JavaScript
Executed Scripts (87)
Executed Evals (13)
#1 JavaScript::Eval (size: 132979) - SHA256: 635d63974e31af1095570d5fcb1a89b63ba08af14ed7e57b531bdfb726c05d56
! function(e, t) {
"object" == typeof exports && "object" == typeof module ? module.exports = t() : "function" == typeof define && define.amd ? define([], t) : "object" == typeof exports ? exports.viewerScript = t() : e.viewerScript = t()
}(self, (function() {
return function() {
"use strict";
var e, t, r = {},
n = {};
function i(e) {
var t = n[e];
if (void 0 !== t) return t.exports;
var a = n[e] = {
exports: {}
};
return r[e].call(a.exports, a, a.exports, i), a.exports
}
i.m = r, t = Object.getPrototypeOf ? function(e) {
return Object.getPrototypeOf(e)
} : function(e) {
return e.__proto__
}, i.t = function(r, n) {
if (1 & n && (r = this(r)), 8 & n) return r;
if ("object" == typeof r && r) {
if (4 & n && r.__esModule) return r;
if (16 & n && "function" == typeof r.then) return r
}
var a = Object.create(null);
i.r(a);
var o = {};
e = e || [null, t({}), t([]), t(t)];
for (var s = 2 & n && r;
"object" == typeof s && !~e.indexOf(s); s = t(s)) Object.getOwnPropertyNames(s).forEach((function(e) {
o[e] = function() {
return r[e]
}
}));
return o.default = function() {
return r
}, i.d(a, o), a
}, i.d = function(e, t) {
for (var r in t) i.o(t, r) && !i.o(e, r) && Object.defineProperty(e, r, {
enumerable: !0,
get: t[r]
})
}, i.f = {}, i.e = function(e) {
return Promise.all(Object.keys(i.f).reduce((function(t, r) {
return i.f[r](e, t), t
}), []))
}, i.u = function(e) {
return "web-worker/" + {
200: "wix-i18n-config_intl-pluralrules",
894: "wix-i18n-config_intl-relativetimeformat"
}[e] + ".chunk.min.js"
}, i.o = function(e, t) {
return Object.prototype.hasOwnProperty.call(e, t)
}, i.r = function(e) {
"undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(e, Symbol.toStringTag, {
value: "Module"
}), Object.defineProperty(e, "__esModule", {
value: !0
})
}, i.p = "https://static.parastorage.com/services/wix-vod-widget/83e69296cb78af22d5e6eaedfadeb18e548e00749a9e3ceda74c01e8/",
function() {
var e = {
164: 1
};
i.f.i = function(t, r) {
e[t] || importScripts(i.p + i.u(t))
};
var t = self.webpackJsonp__wix_wix_vod_widget = self.webpackJsonp__wix_wix_vod_widget || [],
r = t.push.bind(t);
t.push = function(t) {
var n = t[0],
a = t[1],
o = t[2];
for (var s in a) i.o(a, s) && (i.m[s] = a[s]);
for (o && o(i); n.length;) e[n.pop()] = 1;
r(t)
}
}();
var a = {};
i.r(a), i.d(a, {
createControllers: function() {
return Yt
},
exports: function() {
return Ut
},
initAppForPage: function() {
return Wt
}
});
var o = "BLOCKS_WIDGET",
s = ["ar", "arc", "bcc", "bqi", "ckb", "dv", "fa", "glk", "ha", "he", "khw", "ks", "ku", "mzn", "pnb", "ps", "sd", "ug", "ur", "yi"];
var c = function(e) {
return e
},
l = function(e) {
return void 0 === e && "undefined" != typeof window && (e = window.location.search), new URLSearchParams(e)
},
u = function(e, t) {
var r, n = (r = e.window.multilingual).isEnabled && r.currentLanguage ? r.currentLanguage : void 0,
i = e.site.language;
if (t) {
var a = l().get("regionalLanguage");
a && (i = a)
}
return n || i || "en"
},
d = function(e) {
return "backend" === e.window.rendering.env
},
p = function(e) {
return e.seo.isInSEO()
},
h = function(e, t, r, n) {
return new(r || (r = Promise))((function(i, a) {
function o(e) {
try {
c(n.next(e))
} catch (e) {
a(e)
}
}
function s(e) {
try {
c(n.throw(e))
} catch (e) {
a(e)
}
}
function c(e) {
var t;
e.done ? i(e.value) : (t = e.value, t instanceof r ? t : new r((function(e) {
e(t)
}))).then(o, s)
}
c((n = n.apply(e, t || [])).next())
}))
},
g = function(e, t) {
var r, n, i, a, o = {
label: 0,
sent: function() {
if (1 & i[0]) throw i[1];
return i[1]
},
trys: [],
ops: []
};
return a = {
next: s(0),
throw: s(1),
return: s(2)
}, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
return this
}), a;
function s(a) {
return function(s) {
return function(a) {
if (r) throw new TypeError("Generator is already executing.");
for (; o;) try {
if (r = 1, n && (i = 2 & a[0] ? n.return : a[0] ? n.throw || ((i = n.return) && i.call(n), 0) : n.next) && !(i = i.call(n, a[1])).done) return i;
switch (n = 0, i && (a = [2 & a[0], i.value]), a[0]) {
case 0:
case 1:
i = a;
break;
case 4:
return o.label++, {
value: a[1],
done: !1
};
case 5:
o.label++, n = a[1], a = [0];
continue;
case 7:
a = o.ops.pop(), o.trys.pop();
continue;
default:
if (!(i = o.trys, (i = i.length > 0 && i[i.length - 1]) || 6 !== a[0] && 2 !== a[0])) {
o = 0;
continue
}
if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
o.label = a[1];
break
}
if (6 === a[0] && o.label < i[1]) {
o.label = i[1], i = a;
break
}
if (i && o.label < i[2]) {
o.label = i[2], o.ops.push(a);
break
}
i[2] && o.ops.pop(), o.trys.pop();
continue
}
a = t.call(e, o)
} catch (e) {
a = [6, e], n = 0
} finally {
r = i = 0
}
if (5 & a[0]) throw a[1];
return {
value: a[0] ? a[1] : void 0,
done: !0
}
}([a, s])
}
}
},
f = function() {
throw new Error("Translations has not been initialized yet")
},
y = function(e) {
var t = e.language,
r = e.defaultTranslations,
n = e.prefix,
a = void 0 === n ? "messages" : n,
o = e.defaultLanguage,
s = e.availableLanguages,
c = e.localeDistPath,
l = e.initI18n,
u = e.basePath,
d = this;
this.t = f, this.all = {}, this.init = function(e) {
var t = void 0 === e ? {} : e,
r = t.prepopulated,
n = t.wait,
a = void 0 !== n && n,
o = t.useSuspense,
s = void 0 !== o && o;
return h(d, void 0, void 0, (function() {
var e, t, n, o = this;
return g(this, (function(c) {
switch (c.label) {
case 0:
if (e = this.config, t = new Set(e.availableLanguages || []), !this._initI18n) throw new Error("Can't initialize i18n without initI18n method.");
return this.i18n = this._initI18n({
locale: e.language,
useSuspense: s,
wait: a,
messages: r,
disableAutoInit: !0,
asyncMessagesLoader: function(r) {
var n;
return "en" === r ? Promise.resolve(e.defaultTranslations) : t.has(r) ? fetch("".concat(null !== (n = o.basePath) && void 0 !== n ? n : i.p).concat(o.localeDistPath, "/").concat(e.prefix, "_").concat(r, ".json")).then((function(t) {
return t.ok ? t.json() : Promise.reject(new Error("Can't load locale: ".concat(e.language)))
})) : Promise.reject(new Error("Locale assets for ".concat(r, " are not provided")))
}
}), [4, this.i18n.init()];
case 1:
if (c.sent(), !(n = this.i18n.getResourceBundle(e.language, "translation")) && t.has(e.language)) throw new Error("Unexpected missing translations for language ".concat(e.language));
return this.all = n || e.defaultTranslations || {}, this.t = function(e, t) {
return o.i18n.t(e, t)
}, [2, this]
}
}))
}))
}, this.config = {
availableLanguages: s,
language: t,
defaultTranslations: r,
prefix: a,
defaultLanguage: o
}, this.localeDistPath = c, this._initI18n = l, this.i18n = null, this.basePath = u
},
v = function(e) {
var t;
this.entry = "viewerScript";
var r, n = e.wixAPI,
i = e.appData;
this.isSSR = "backend" === n.window.rendering.env, this.isSEO = p(n), this.isMobile = "Mobile" === n.window.formFactor, this.isEditor = "Editor" === n.window.viewMode, this.isPreview = "Preview" === n.window.viewMode, this.isViewer = "Site" === n.window.viewMode, this.isBlocksPreview = Boolean(null === (t = null == i ? void 0 : i.appData) || void 0 === t ? void 0 : t.blocksPreviewData), this.language = u(n, this.isEditor), this.isRTL = (r = this.language, s.includes(r)), this.multilingual = n.window.multilingual, this.appDefinitionId = i.appDefinitionId
},
m = function() {
return m = Object.assign || function(e) {
for (var t, r = 1, n = arguments.length; r < n; r++)
for (var i in t = arguments[r]) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
return e
}, m.apply(this, arguments)
},
b = function(e, t) {
var r = {};
return e.visitorId ? r.forSiteVisitors = m(m({}, e), {
visitorId: e.visitorId
}) : r.forSiteOwner = m(m({}, e), {
loggedInUserId: e.loggedInUserId
}), t && (r.overrideCriteria = t), r
},
w = function(e, t, r, n) {
return new(r || (r = Promise))((function(i, a) {
function o(e) {
try {
c(n.next(e))
} catch (e) {
a(e)
}
}
function s(e) {
try {
c(n.throw(e))
} catch (e) {
a(e)
}
}
function c(e) {
var t;
e.done ? i(e.value) : (t = e.value, t instanceof r ? t : new r((function(e) {
e(t)
}))).then(o, s)
}
c((n = n.apply(e, t || [])).next())
}))
},
k = function(e, t) {
var r, n, i, a, o = {
label: 0,
sent: function() {
if (1 & i[0]) throw i[1];
return i[1]
},
trys: [],
ops: []
};
return a = {
next: s(0),
throw: s(1),
return: s(2)
}, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
return this
}), a;
function s(a) {
return function(s) {
return function(a) {
if (r) throw new TypeError("Generator is already executing.");
for (; o;) try {
if (r = 1, n && (i = 2 & a[0] ? n.return : a[0] ? n.throw || ((i = n.return) && i.call(n), 0) : n.next) && !(i = i.call(n, a[1])).done) return i;
switch (n = 0, i && (a = [2 & a[0], i.value]), a[0]) {
case 0:
case 1:
i = a;
break;
case 4:
return o.label++, {
value: a[1],
done: !1
};
case 5:
o.label++, n = a[1], a = [0];
continue;
case 7:
a = o.ops.pop(), o.trys.pop();
continue;
default:
if (!(i = o.trys, (i = i.length > 0 && i[i.length - 1]) || 6 !== a[0] && 2 !== a[0])) {
o = 0;
continue
}
if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
o.label = a[1];
break
}
if (6 === a[0] && o.label < i[1]) {
o.label = i[1], i = a;
break
}
if (i && o.label < i[2]) {
o.label = i[2], o.ops.push(a);
break
}
i[2] && o.ops.pop(), o.trys.pop();
continue
}
a = t.call(e, o)
} catch (e) {
a = [6, e], n = 0
} finally {
r = i = 0
}
if (5 & a[0]) throw a[1];
return {
value: a[0] ? a[1] : void 0,
done: !0
}
}([a, s])
}
}
};
var x, S, C, P = function() {
function e(e) {
var t = e.httpClient;
this.reportError = function(e) {
console.warn("You are trying to report an error, but didn't configure sentry in `.application.json`\n\nPlease read the docs for more information https://bo.wix.com/pages/yoshi/docs/editor-flow/structure-api/app-configuration/#applicationjson", "Error: ", e)
}, this._httpClient = t
}
return Object.defineProperty(e.prototype, "httpClient", {get: function() {
var e = this._httpClient;
return e
},
enumerable: !1,
configurable: !0
}), e
}(),
A = (x = function(e, t) {
return x = Object.setPrototypeOf || {
__proto__: []
}
instanceof Array && function(e, t) {
e.__proto__ = t
} || function(e, t) {
for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && (e[r] = t[r])
}, x(e, t)
}, function(e, t) {
if ("function" != typeof t && null !== t) throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
function r() {
this.constructor = e
}
x(e, t), e.prototype = null === t ? Object.create(t) : (r.prototype = t.prototype, new r)
}),
O = function() {
return O = Object.assign || function(e) {
for (var t, r = 1, n = arguments.length; r < n; r++)
for (var i in t = arguments[r]) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
return e
}, O.apply(this, arguments)
},
L = function(e, t, r, n) {
return new(r || (r = Promise))((function(i, a) {
function o(e) {
try {
c(n.next(e))
} catch (e) {
a(e)
}
}
function s(e) {
try {
c(n.throw(e))
} catch (e) {
a(e)
}
}
function c(e) {
var t;
e.done ? i(e.value) : (t = e.value, t instanceof r ? t : new r((function(e) {
e(t)
}))).then(o, s)
}
c((n = n.apply(e, t || [])).next())
}))
},
D = function(e, t) {
var r, n, i, a, o = {
label: 0,
sent: function() {
if (1 & i[0]) throw i[1];
return i[1]
},
trys: [],
ops: []
};
return a = {
next: s(0),
throw: s(1),
return: s(2)
}, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
return this
}), a;
function s(a) {
return function(s) {
return function(a) {
if (r) throw new TypeError("Generator is already executing.");
for (; o;) try {
if (r = 1, n && (i = 2 & a[0] ? n.return : a[0] ? n.throw || ((i = n.return) && i.call(n), 0) : n.next) && !(i = i.call(n, a[1])).done) return i;
switch (n = 0, i && (a = [2 & a[0], i.value]), a[0]) {
case 0:
case 1:
i = a;
break;
case 4:
return o.label++, {
value: a[1],
done: !1
};
case 5:
o.label++, n = a[1], a = [0];
continue;
case 7:
a = o.ops.pop(), o.trys.pop();
continue;
default:
if (!(i = o.trys, (i = i.length > 0 && i[i.length - 1]) || 6 !== a[0] && 2 !== a[0])) {
o = 0;
continue
}
if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
o.label = a[1];
break
}
if (6 === a[0] && o.label < i[1]) {
o.label = i[1], i = a;
break
}
if (i && o.label < i[2]) {
o.label = i[2], o.ops.push(a);
break
}
i[2] && o.ops.pop(), o.trys.pop();
continue
}
a = t.call(e, o)
} catch (e) {
a = [6, e], n = 0
} finally {
r = i = 0
}
if (5 & a[0]) throw a[1];
return {
value: a[0] ? a[1] : void 0,
done: !0
}
}([a, s])
}
}
},
E = function(e) {
function t(t) {
var r = t.experimentsConfig,
n = t.essentials,
i = t.platformBI,
a = t.biLoggerFactory,
o = t.monitoring,
s = t.sentryConfig,
l = t.wixAPI,
h = t.appData,
g = t.translationsConfig,
f = t.defaultTranslations,
m = void 0 === f ? null : f,
x = t.biLogger,
S = t.projectName,
C = t.appName,
P = t.prepopulatedData,
A = t.optionalDeps,
L = A.createHttpClient,
D = A.initI18n,
E = A.createExperiments,
j = t.localeDistPath,
_ = t.shouldUseEssentials,
R = t.basePath,
T = e.call(this, {
httpClient: _ ? null == n ? void 0 : n.httpClient : null == L ? void 0 : L({
isSSR: d(l),
getAppToken: function() {
var e, t, r;
return null !== (r = null === (t = (e = l.site).getAppToken) || void 0 === t ? void 0 : t.call(e, h.appDefinitionId)) && void 0 !== r ? r : h.instance
}
})
}) || this;
T.essentials = n, T.wixAPI = l, T.appName = C, T.projectName = S, T.prepopulatedData = P, T.basePath = R, T.environment = new v({
appData: h,
wixAPI: l
});
var N = u(l, T.environment.isEditor);
if (T.localeDistPath = j, T.getCurrencyFormatter = null, T.formatCurrency = null, T.formatAddress = null, T.essentials && "formatAddress" in T.essentials && (T.formatAddress = T.essentials.formatAddress), T.essentials && "createCurrencyFormatterWithDefaults" in T.essentials && (T.getCurrencyFormatter = T.essentials.createCurrencyFormatterWithDefaults({
language: N
}), T.getCurrencyFormatter && (T.formatCurrency = T.getCurrencyFormatter())), T.translations = !1 === (null == g ? void 0 : g.enabled) ? null : new y({
language: N,
defaultTranslations: m,
prefix: null == g ? void 0 : g.prefix,
availableLanguages: null == g ? void 0 : g.availableLanguages,
localeDistPath: j,
initI18n: D
}), T.experiments = null, T._experimentsPromise = null, r) {
var F = T.environment.isViewer ? {
siteOwnerId: null == i ? void 0 : i.ownerId,
visitorId: null == i ? void 0 : i.visitorId
} : {
siteOwnerId: null == i ? void 0 : i.ownerId,
loggedInUserId: l.user.currentUser.id
},
M = (null == i ? void 0 : i.metaSiteId) ? {
entityId: null == i ? void 0 : i.metaSiteId
} : void 0;
if (_) T._experimentsPromise = r.centralized && !(null == P ? void 0 : P.experiments) ? Promise.resolve(T.essentials.experiments) : function(e, t, r, n, i, a) {
return w(void 0, void 0, void 0, (function() {
var o, s;
return k(this, (function(c) {
switch (c.label) {
case 0:
return o = e({
useNewApi: !0,
requestContext: b(n, i),
baseUrl: a
}), r ? (o.add(r), [2, o]) : t ? (s = t.scopes.map((function(e) {
return o.load(e)
})), [4, Promise.all(s)]) : [2, o];
case 1:
return c.sent(), [2, o]
}
}))
}))
}(T.essentials.createExperiments, r, null == P ? void 0 : P.experiments, F, M, T.environment.isSSR ? "https://wix.com" : void 0);
else {
var I = E({
prepopulated: null == P ? void 0 : P.experiments,
experimentsConfig: r,
baseUrl: T.environment.isSSR ? "https://wix.com" : void 0,
ctx: F,
overrideCriteria: M
});
T._experimentsPromise = I.init()
}
}
if (null == P ? void 0 : P.biLogger) T.bi = null == P ? void 0 : P.biLogger;
else if (x) {
var V = void 0;
_ ? V = T.essentials.biLoggerFactory() : a && (V = a()), V && (T.bi = x(V)({}))
}
if (T.sentry = null, T.errorMonitor = null, null == P ? void 0 : P.sentryMonitor) T.sentry = null == P ? void 0 : P.sentryMonitor;
else if (null == P ? void 0 : P.errorMonitor) T.errorMonitor = null == P ? void 0 : P.errorMonitor;
else if (s)
if (s.errorMonitor && (null == n ? void 0 : n.createErrorMonitor)) T.errorMonitor = n.createErrorMonitor({
dsn: s.DSN,
environment: "Viewer:Worker",
version: "83e69296cb78af22d5e6eaedfadeb18e548e00749a9e3ceda74c01e8",
tags: {
isSSR: d(l),
isSEO: p(l)
}
});
else {
var B = function(e) {
var t = e.dsn,
r = e.environment,
n = e.artifact,
i = e.withDataCallback,
a = e.tags;
return {
dsn: t,
config: {
enabled: !0,
release: n,
dataCallback: i ? c : void 0,
environment: r,
tags: a
}
}
}({
dsn: s.DSN,
environment: "Viewer:Worker",
artifact: "83e69296cb78af22d5e6eaedfadeb18e548e00749a9e3ceda74c01e8",
withDataCallback: !0,
tags: {
isSSR: d(l),
isSEO: p(l)
}
});
T.sentry = null == o ? void 0 : o.createMonitor(B.dsn, (function(e) {
return O(O({}, e), B.config)
}))
}
return T.sentry && (T.reportError = function(e) {
return "string" == typeof e ? T.sentry.captureMessage(e) : T.sentry.captureException(e), T.sentry.lastEventId()
}), T.errorMonitor && (T.reportError = function(e) {
return "string" == typeof e ? T.errorMonitor.captureMessage(e) : T.errorMonitor.captureException(e)
}), T
}
return A(t, e), t.prototype.init = function() {
var e, t;
return L(this, void 0, void 0, (function() {
var r;
return D(this, (function(n) {
switch (n.label) {
case 0:
return r = this, [4, this._experimentsPromise];
case 1:
return r.experiments = n.sent(), [4, null === (e = this.translations) || void 0 === e ? void 0 : e.init({
prepopulated: null === (t = this.prepopulatedData) || void 0 === t ? void 0 : t.translations
})];
case 2:
return n.sent(), [2]
}
}))
}))
}, t.prototype.createTranslations = function(e, t, r) {
var n, i = e.translationsConfig,
a = e.defaultTranslations,
o = e.localeDistPath;
if (!1 === (null == i ? void 0 : i.enabled)) return null;
if (o === this.localeDistPath && (null == r ? void 0 : r.basePath) === this.basePath) return this.translations;
var s = u(this.wixAPI, this.environment.isEditor);
return new y({
language: s,
defaultTranslations: a,
availableLanguages: null == i ? void 0 : i.availableLanguages,
prefix: null == i ? void 0 : i.prefix,
localeDistPath: o,
initI18n: null == t ? void 0 : t.initI18n,
basePath: null !== (n = null == r ? void 0 : r.basePath) && void 0 !== n ? n : this.basePath
})
}, t
}(P),
j = {},
_ = function(e) {
S = e
},
R = function(e) {
C = e
},
T = function() {
return j
},
N = function(e) {
j = e
},
F = function(e, t, r, n) {
return new(r || (r = Promise))((function(i, a) {
function o(e) {
try {
c(n.next(e))
} catch (e) {
a(e)
}
}
function s(e) {
try {
c(n.throw(e))
} catch (e) {
a(e)
}
}
function c(e) {
var t;
e.done ? i(e.value) : (t = e.value, t instanceof r ? t : new r((function(e) {
e(t)
}))).then(o, s)
}
c((n = n.apply(e, t || [])).next())
}))
},
M = function(e, t) {
var r, n, i, a, o = {
label: 0,
sent: function() {
if (1 & i[0]) throw i[1];
return i[1]
},
trys: [],
ops: []
};
return a = {
next: s(0),
throw: s(1),
return: s(2)
}, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
return this
}), a;
function s(a) {
return function(s) {
return function(a) {
if (r) throw new TypeError("Generator is already executing.");
for (; o;) try {
if (r = 1, n && (i = 2 & a[0] ? n.return : a[0] ? n.throw || ((i = n.return) && i.call(n), 0) : n.next) && !(i = i.call(n, a[1])).done) return i;
switch (n = 0, i && (a = [2 & a[0], i.value]), a[0]) {
case 0:
case 1:
i = a;
break;
case 4:
return o.label++, {
value: a[1],
done: !1
};
case 5:
o.label++, n = a[1], a = [0];
continue;
case 7:
a = o.ops.pop(), o.trys.pop();
continue;
default:
if (!(i = o.trys, (i = i.length > 0 && i[i.length - 1]) || 6 !== a[0] && 2 !== a[0])) {
o = 0;
continue
}
if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
o.label = a[1];
break
}
if (6 === a[0] && o.label < i[1]) {
o.label = i[1], i = a;
break
}
if (i && o.label < i[2]) {
o.label = i[2], o.ops.push(a);
break
}
i[2] && o.ops.pop(), o.trys.pop();
continue
}
a = t.call(e, o)
} catch (e) {
a = [6, e], n = 0
} finally {
r = i = 0
}
if (5 & a[0]) throw a[1];
return {
value: a[0] ? a[1] : void 0,
done: !0
}
}([a, s])
}
}
},
I = function(e) {
return "function" == typeof e
};
function V(e) {
return V = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
return typeof e
} : function(e) {
return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e
}, V(e)
}
function B(e, t, r) {
return t in e ? Object.defineProperty(e, t, {
value: r,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = r, e
}
function z(e) {
for (var t = 1; t < arguments.length; t++) {
var r = null != arguments[t] ? Object(arguments[t]) : {},
n = Object.keys(r);
"function" == typeof Object.getOwnPropertySymbols && n.push.apply(n, Object.getOwnPropertySymbols(r).filter((function(e) {
return Object.getOwnPropertyDescriptor(r, e).enumerable
}))), n.forEach((function(t) {
B(e, t, r[t])
}))
}
return e
}
function U(e, t) {
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function")
}
function W(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), Object.defineProperty(e, n.key, n)
}
}
function H(e, t, r) {
return t && W(e.prototype, t), r && W(e, r), Object.defineProperty(e, "prototype", {
writable: !1
}), e
}
function K(e) {
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
return e
}
function G(e, t) {
if (t && ("object" === V(t) || "function" == typeof t)) return t;
if (void 0 !== t) throw new TypeError("Derived constructors may only return object or undefined");
return K(e)
}
function Y(e) {
return Y = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
return e.__proto__ || Object.getPrototypeOf(e)
}, Y(e)
}
function q(e, t) {
return q = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
return e.__proto__ = t, e
}, q(e, t)
}
function Z(e, t) {
if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function");
e.prototype = Object.create(t && t.prototype, {
constructor: {
value: e,
writable: !0,
configurable: !0
}
}), Object.defineProperty(e, "prototype", {
writable: !1
}), t && q(e, t)
}
var J = {
type: "logger",
log: function(e) {
this.output("log", e)
},
warn: function(e) {
this.output("warn", e)
},
error: function(e) {
this.output("error", e)
},
output: function(e, t) {
console && console[e] && console[e].apply(console, t)
}
},
$ = function() {
function e(t) {
var r = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};
U(this, e), this.init(t, r)
}
return H(e, [{
key: "init",
value: function(e) {
var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};
this.prefix = t.prefix || "i18next:", this.logger = e || J, this.options = t, this.debug = t.debug
}
}, {
key: "setDebug",
value: function(e) {
this.debug = e
}
}, {
key: "log",
value: function() {
for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++) t[r] = arguments[r];
return this.forward(t, "log", "", !0)
}
}, {
key: "warn",
value: function() {
for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++) t[r] = arguments[r];
return this.forward(t, "warn", "", !0)
}
}, {
key: "error",
value: function() {
for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++) t[r] = arguments[r];
return this.forward(t, "error", "")
}
}, {
key: "deprecate",
value: function() {
for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++) t[r] = arguments[r];
return this.forward(t, "warn", "WARNING DEPRECATED: ", !0)
}
}, {
key: "forward",
value: function(e, t, r, n) {
return n && !this.debug ? null : ("string" == typeof e[0] && (e[0] = "".concat(r).concat(this.prefix, " ").concat(e[0])), this.logger[t](e))
}
}, {
key: "create",
value: function(t) {
return new e(this.logger, z({}, {
prefix: "".concat(this.prefix, ":").concat(t, ":")
}, this.options))
}
}]), e
}(),
Q = new $,
X = function() {
function e() {
U(this, e), this.observers = {}
}
return H(e, [{
key: "on",
value: function(e, t) {
var r = this;
return e.split(" ").forEach((function(e) {
r.observers[e] = r.observers[e] || [], r.observers[e].push(t)
})), this
}
}, {
key: "off",
value: function(e, t) {
this.observers[e] && (t ? this.observers[e] = this.observers[e].filter((function(e) {
return e !== t
})) : delete this.observers[e])
}
}, {
key: "emit",
value: function(e) {
for (var t = arguments.length, r = new Array(t > 1 ? t - 1 : 0), n = 1; n < t; n++) r[n - 1] = arguments[n];
if (this.observers[e]) {
var i = [].concat(this.observers[e]);
i.forEach((function(e) {
e.apply(void 0, r)
}))
}
if (this.observers["*"]) {
var a = [].concat(this.observers["*"]);
a.forEach((function(t) {
t.apply(t, [e].concat(r))
}))
}
}
}]), e
}();
function ee() {
var e, t, r = new Promise((function(r, n) {
e = r, t = n
}));
return r.resolve = e, r.reject = t, r
}
function te(e) {
return null == e ? "" : "" + e
}
function re(e, t, r) {
e.forEach((function(e) {
t[e] && (r[e] = t[e])
}))
}
function ne(e, t, r) {
function n(e) {
return e && e.indexOf("###") > -1 ? e.replace(/###/g, ".") : e
}
function i() {
return !e || "string" == typeof e
}
for (var a = "string" != typeof t ? [].concat(t) : t.split("."); a.length > 1;) {
if (i()) return {};
var o = n(a.shift());
!e[o] && r && (e[o] = new r), e = Object.prototype.hasOwnProperty.call(e, o) ? e[o] : {}
}
return i() ? {} : {
obj: e,
k: n(a.shift())
}
}
function ie(e, t, r) {
var n = ne(e, t, Object);
n.obj[n.k] = r
}
function ae(e, t) {
var r = ne(e, t),
n = r.obj,
i = r.k;
if (n) return n[i]
}
function oe(e, t, r) {
var n = ae(e, r);
return void 0 !== n ? n : ae(t, r)
}
function se(e, t, r) {
for (var n in t) "__proto__" !== n && "constructor" !== n && (n in e ? "string" == typeof e[n] || e[n] instanceof String || "string" == typeof t[n] || t[n] instanceof String ? r && (e[n] = t[n]) : se(e[n], t[n], r) : e[n] = t[n]);
return e
}
function ce(e) {
return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&")
}
var le = {
"&": "&",
"<": "<",
">": ">",
'"': """,
"'": "'",
"/": "/"
};
function ue(e) {
return "string" == typeof e ? e.replace(/[&<>"'\/]/g, (function(e) {
return le[e]
})) : e
}
var de = "undefined" != typeof window && window.navigator && window.navigator.userAgent && window.navigator.userAgent.indexOf("MSIE") > -1,
pe = function(e) {
function t(e) {
var r, n = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {
ns: ["translation"],
defaultNS: "translation"
};
return U(this, t), r = G(this, Y(t).call(this)), de && X.call(K(r)), r.data = e || {}, r.options = n, void 0 === r.options.keySeparator && (r.options.keySeparator = "."), r
}
return Z(t, e), H(t, [{
key: "addNamespaces",
value: function(e) {
this.options.ns.indexOf(e) < 0 && this.options.ns.push(e)
}
}, {
key: "removeNamespaces",
value: function(e) {
var t = this.options.ns.indexOf(e);
t > -1 && this.options.ns.splice(t, 1)
}
}, {
key: "getResource",
value: function(e, t, r) {
var n = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : {},
i = void 0 !== n.keySeparator ? n.keySeparator : this.options.keySeparator,
a = [e, t];
return r && "string" != typeof r && (a = a.concat(r)), r && "string" == typeof r && (a = a.concat(i ? r.split(i) : r)), e.indexOf(".") > -1 && (a = e.split(".")), ae(this.data, a)
}
}, {
key: "addResource",
value: function(e, t, r, n) {
var i = arguments.length > 4 && void 0 !== arguments[4] ? arguments[4] : {
silent: !1
},
a = this.options.keySeparator;
void 0 === a && (a = ".");
var o = [e, t];
r && (o = o.concat(a ? r.split(a) : r)), e.indexOf(".") > -1 && (n = t, t = (o = e.split("."))[1]), this.addNamespaces(t), ie(this.data, o, n), i.silent || this.emit("added", e, t, r, n)
}
}, {
key: "addResources",
value: function(e, t, r) {
var n = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : {
silent: !1
};
for (var i in r) "string" != typeof r[i] && "[object Array]" !== Object.prototype.toString.apply(r[i]) || this.addResource(e, t, i, r[i], {
silent: !0
});
n.silent || this.emit("added", e, t, r)
}
}, {
key: "addResourceBundle",
value: function(e, t, r, n, i) {
var a = arguments.length > 5 && void 0 !== arguments[5] ? arguments[5] : {
silent: !1
},
o = [e, t];
e.indexOf(".") > -1 && (n = r, r = t, t = (o = e.split("."))[1]), this.addNamespaces(t);
var s = ae(this.data, o) || {};
n ? se(s, r, i) : s = z({}, s, r), ie(this.data, o, s), a.silent || this.emit("added", e, t, r)
}
}, {
key: "removeResourceBundle",
value: function(e, t) {
this.hasResourceBundle(e, t) && delete this.data[e][t], this.removeNamespaces(t), this.emit("removed", e, t)
}
}, {
key: "hasResourceBundle",
value: function(e, t) {
return void 0 !== this.getResource(e, t)
}
}, {
key: "getResourceBundle",
value: function(e, t) {
return t || (t = this.options.defaultNS), "v1" === this.options.compatibilityAPI ? z({}, {}, this.getResource(e, t)) : this.getResource(e, t)
}
}, {
key: "getDataByLanguage",
value: function(e) {
return this.data[e]
}
}, {
key: "toJSON",
value: function() {
return this.data
}
}]), t
}(X),
he = {
processors: {},
addPostProcessor: function(e) {
this.processors[e.name] = e
},
handle: function(e, t, r, n, i) {
var a = this;
return e.forEach((function(e) {
a.processors[e] && (t = a.processors[e].process(t, r, n, i))
})), t
}
},
ge = {},
fe = function(e) {
function t(e) {
var r, n = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};
return U(this, t), r = G(this, Y(t).call(this)), de && X.call(K(r)), re(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], e, K(r)), r.options = n, void 0 === r.options.keySeparator && (r.options.keySeparator = "."), r.logger = Q.create("translator"), r
}
return Z(t, e), H(t, [{
key: "changeLanguage",
value: function(e) {
e && (this.language = e)
}
}, {
key: "exists",
value: function(e) {
var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {
interpolation: {}
},
r = this.resolve(e, t);
return r && void 0 !== r.res
}
}, {
key: "extractFromKey",
value: function(e, t) {
var r = void 0 !== t.nsSeparator ? t.nsSeparator : this.options.nsSeparator;
void 0 === r && (r = ":");
var n = void 0 !== t.keySeparator ? t.keySeparator : this.options.keySeparator,
i = t.ns || this.options.defaultNS;
if (r && e.indexOf(r) > -1) {
var a = e.match(this.interpolator.nestingRegexp);
if (a && a.length > 0) return {
key: e,
namespaces: i
};
var o = e.split(r);
(r !== n || r === n && this.options.ns.indexOf(o[0]) > -1) && (i = o.shift()), e = o.join(n)
}
return "string" == typeof i && (i = [i]), {
key: e,
namespaces: i
}
}
}, {
key: "translate",
value: function(e, r, n) {
var i = this;
if ("object" !== V(r) && this.options.overloadTranslationOptionHandler && (r = this.options.overloadTranslationOptionHandler(arguments)), r || (r = {}), null == e) return "";
Array.isArray(e) || (e = [String(e)]);
var a = void 0 !== r.keySeparator ? r.keySeparator : this.options.keySeparator,
o = this.extractFromKey(e[e.length - 1], r),
s = o.key,
c = o.namespaces,
l = c[c.length - 1],
u = r.lng || this.language,
d = r.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
if (u && "cimode" === u.toLowerCase()) {
if (d) {
var p = r.nsSeparator || this.options.nsSeparator;
return l + p + s
}
return s
}
var h = this.resolve(e, r),
g = h && h.res,
f = h && h.usedKey || s,
y = h && h.exactUsedKey || s,
v = Object.prototype.toString.apply(g),
m = ["[object Number]", "[object Function]", "[object RegExp]"],
b = void 0 !== r.joinArrays ? r.joinArrays : this.options.joinArrays,
w = !this.i18nFormat || this.i18nFormat.handleAsObject,
k = "string" != typeof g && "boolean" != typeof g && "number" != typeof g;
if (w && g && k && m.indexOf(v) < 0 && ("string" != typeof b || "[object Array]" !== v)) {
if (!r.returnObjects && !this.options.returnObjects) return this.logger.warn("accessing an object - but returnObjects options is not enabled!"), this.options.returnedObjectHandler ? this.options.returnedObjectHandler(f, g, r) : "key '".concat(s, " (").concat(this.language, ")' returned an object instead of string.");
if (a) {
var x = "[object Array]" === v,
S = x ? [] : {},
C = x ? y : f;
for (var P in g)
if (Object.prototype.hasOwnProperty.call(g, P)) {
var A = "".concat(C).concat(a).concat(P);
S[P] = this.translate(A, z({}, r, {
joinArrays: !1,
ns: c
})), S[P] === A && (S[P] = g[P])
}
g = S
}
} else if (w && "string" == typeof b && "[object Array]" === v)(g = g.join(b)) && (g = this.extendTranslation(g, e, r, n));
else {
var O = !1,
L = !1,
D = void 0 !== r.count && "string" != typeof r.count,
E = t.hasDefaultValue(r),
j = D ? this.pluralResolver.getSuffix(u, r.count) : "",
_ = r["defaultValue".concat(j)] || r.defaultValue;
!this.isValidLookup(g) && E && (O = !0, g = _), this.isValidLookup(g) || (L = !0, g = s);
var R = E && _ !== g && this.options.updateMissing;
if (L || O || R) {
if (this.logger.log(R ? "updateKey" : "missingKey", u, l, s, R ? _ : g), a) {
var T = this.resolve(s, z({}, r, {
keySeparator: !1
}));
T && T.res && this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")
}
var N = [],
F = this.languageUtils.getFallbackCodes(this.options.fallbackLng, r.lng || this.language);
if ("fallback" === this.options.saveMissingTo && F && F[0])
for (var M = 0; M < F.length; M++) N.push(F[M]);
else "all" === this.options.saveMissingTo ? N = this.languageUtils.toResolveHierarchy(r.lng || this.language) : N.push(r.lng || this.language);
var I = function(e, t, n) {
i.options.missingKeyHandler ? i.options.missingKeyHandler(e, l, t, R ? n : g, R, r) : i.backendConnector && i.backendConnector.saveMissing && i.backendConnector.saveMissing(e, l, t, R ? n : g, R, r), i.emit("missingKey", e, l, t, g)
};
this.options.saveMissing && (this.options.saveMissingPlurals && D ? N.forEach((function(e) {
i.pluralResolver.getSuffixes(e).forEach((function(t) {
I([e], s + t, r["defaultValue".concat(t)] || _)
}))
})) : I(N, s, _))
}
g = this.extendTranslation(g, e, r, h, n), L && g === s && this.options.appendNamespaceToMissingKey && (g = "".concat(l, ":").concat(s)), L && this.options.parseMissingKeyHandler && (g = this.options.parseMissingKeyHandler(g))
}
return g
}
}, {
key: "extendTranslation",
value: function(e, t, r, n, i) {
var a = this;
if (this.i18nFormat && this.i18nFormat.parse) e = this.i18nFormat.parse(e, r, n.usedLng, n.usedNS, n.usedKey, {
resolved: n
});
else if (!r.skipInterpolation) {
r.interpolation && this.interpolator.init(z({}, r, {
interpolation: z({}, this.options.interpolation, r.interpolation)
}));
var o, s = r.interpolation && r.interpolation.skipOnVariables || this.options.interpolation.skipOnVariables;
if (s) {
var c = e.match(this.interpolator.nestingRegexp);
o = c && c.length
}
var l = r.replace && "string" != typeof r.replace ? r.replace : r;
if (this.options.interpolation.defaultVariables && (l = z({}, this.options.interpolation.defaultVariables, l)), e = this.interpolator.interpolate(e, l, r.lng || this.language, r), s) {
var u = e.match(this.interpolator.nestingRegexp);
o < (u && u.length) && (r.nest = !1)
}!1 !== r.nest && (e = this.interpolator.nest(e, (function() {
for (var e = arguments.length, n = new Array(e), o = 0; o < e; o++) n[o] = arguments[o];
return i && i[0] === n[0] && !r.context ? (a.logger.warn("It seems you are nesting recursively key: ".concat(n[0], " in key: ").concat(t[0])), null) : a.translate.apply(a, n.concat([t]))
}), r)), r.interpolation && this.interpolator.reset()
}
var d = r.postProcess || this.options.postProcess,
p = "string" == typeof d ? [d] : d;
return null != e && p && p.length && !1 !== r.applyPostProcessor && (e = he.handle(p, e, t, this.options && this.options.postProcessPassResolved ? z({
i18nResolved: n
}, r) : r, this)), e
}
}, {
key: "resolve",
value: function(e) {
var t, r, n, i, a, o = this,
s = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};
return "string" == typeof e && (e = [e]), e.forEach((function(e) {
if (!o.isValidLookup(t)) {
var c = o.extractFromKey(e, s),
l = c.key;
r = l;
var u = c.namespaces;
o.options.fallbackNS && (u = u.concat(o.options.fallbackNS));
var d = void 0 !== s.count && "string" != typeof s.count,
p = void 0 !== s.context && "string" == typeof s.context && "" !== s.context,
h = s.lngs ? s.lngs : o.languageUtils.toResolveHierarchy(s.lng || o.language, s.fallbackLng);
u.forEach((function(e) {
o.isValidLookup(t) || (a = e, !ge["".concat(h[0], "-").concat(e)] && o.utils && o.utils.hasLoadedNamespace && !o.utils.hasLoadedNamespace(a) && (ge["".concat(h[0], "-").concat(e)] = !0, o.logger.warn('key "'.concat(r, '" for languages "').concat(h.join(", "), '" won\'t get resolved as namespace "').concat(a, '" was not yet loaded'), "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), h.forEach((function(r) {
if (!o.isValidLookup(t)) {
i = r;
var a, c, u = l,
h = [u];
if (o.i18nFormat && o.i18nFormat.addLookupKeys) o.i18nFormat.addLookupKeys(h, l, r, e, s);
else d && (a = o.pluralResolver.getSuffix(r, s.count)), d && p && h.push(u + a), p && h.push(u += "".concat(o.options.contextSeparator).concat(s.context)), d && h.push(u += a);
for (; c = h.pop();) o.isValidLookup(t) || (n = c, t = o.getResource(r, e, c, s))
}
})))
}))
}
})), {
res: t,
usedKey: r,
exactUsedKey: n,
usedLng: i,
usedNS: a
}
}
}, {
key: "isValidLookup",
value: function(e) {
return !(void 0 === e || !this.options.returnNull && null === e || !this.options.returnEmptyString && "" === e)
}
}, {
key: "getResource",
value: function(e, t, r) {
var n = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : {};
return this.i18nFormat && this.i18nFormat.getResource ? this.i18nFormat.getResource(e, t, r, n) : this.resourceStore.getResource(e, t, r, n)
}
}], [{
key: "hasDefaultValue",
value: function(e) {
var t = "defaultValue";
for (var r in e)
if (Object.prototype.hasOwnProperty.call(e, r) && t === r.substring(0, t.length) && void 0 !== e[r]) return !0;
return !1
}
}]), t
}(X);
function ye(e) {
return e.charAt(0).toUpperCase() + e.slice(1)
}
var ve = function() {
function e(t) {
U(this, e), this.options = t, this.whitelist = this.options.supportedLngs || !1, this.supportedLngs = this.options.supportedLngs || !1, this.logger = Q.create("languageUtils")
}
return H(e, [{
key: "getScriptPartFromCode",
value: function(e) {
if (!e || e.indexOf("-") < 0) return null;
var t = e.split("-");
return 2 === t.length ? null : (t.pop(), "x" === t[t.length - 1].toLowerCase() ? null : this.formatLanguageCode(t.join("-")))
}
}, {
key: "getLanguagePartFromCode",
value: function(e) {
if (!e || e.indexOf("-") < 0) return e;
var t = e.split("-");
return this.formatLanguageCode(t[0])
}
}, {
key: "formatLanguageCode",
value: function(e) {
if ("string" == typeof e && e.indexOf("-") > -1) {
var t = ["hans", "hant", "latn", "cyrl", "cans", "mong", "arab"],
r = e.split("-");
return this.options.lowerCaseLng ? r = r.map((function(e) {
return e.toLowerCase()
})) : 2 === r.length ? (r[0] = r[0].toLowerCase(), r[1] = r[1].toUpperCase(), t.indexOf(r[1].toLowerCase()) > -1 && (r[1] = ye(r[1].toLowerCase()))) : 3 === r.length && (r[0] = r[0].toLowerCase(), 2 === r[1].length && (r[1] = r[1].toUpperCase()), "sgn" !== r[0] && 2 === r[2].length && (r[2] = r[2].toUpperCase()), t.indexOf(r[1].toLowerCase()) > -1 && (r[1] = ye(r[1].toLowerCase())), t.indexOf(r[2].toLowerCase()) > -1 && (r[2] = ye(r[2].toLowerCase()))), r.join("-")
}
return this.options.cleanCode || this.options.lowerCaseLng ? e.toLowerCase() : e
}
}, {
key: "isWhitelisted",
value: function(e) {
return this.logger.deprecate("languageUtils.isWhitelisted", 'function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it\'s usage asap.'), this.isSupportedCode(e)
}
}, {
key: "isSupportedCode",
value: function(e) {
return ("languageOnly" === this.options.load || this.options.nonExplicitSupportedLngs) && (e = this.getLanguagePartFromCode(e)), !this.supportedLngs || !this.supportedLngs.length || this.supportedLngs.indexOf(e) > -1
}
}, {
key: "getBestMatchFromCodes",
value: function(e) {
var t, r = this;
return e ? (e.forEach((function(e) {
if (!t) {
var n = r.formatLanguageCode(e);
r.options.supportedLngs && !r.isSupportedCode(n) || (t = n)
}
})), !t && this.options.supportedLngs && e.forEach((function(e) {
if (!t) {
var n = r.getLanguagePartFromCode(e);
if (r.isSupportedCode(n)) return t = n;
t = r.options.supportedLngs.find((function(e) {
if (0 === e.indexOf(n)) return e
}))
}
})), t || (t = this.getFallbackCodes(this.options.fallbackLng)[0]), t) : null
}
}, {
key: "getFallbackCodes",
value: function(e, t) {
if (!e) return [];
if ("function" == typeof e && (e = e(t)), "string" == typeof e && (e = [e]), "[object Array]" === Object.prototype.toString.apply(e)) return e;
if (!t) return e.default || [];
var r = e[t];
return r || (r = e[this.getScriptPartFromCode(t)]), r || (r = e[this.formatLanguageCode(t)]), r || (r = e[this.getLanguagePartFromCode(t)]), r || (r = e.default), r || []
}
}, {
key: "toResolveHierarchy",
value: function(e, t) {
var r = this,
n = this.getFallbackCodes(t || this.options.fallbackLng || [], e),
i = [],
a = function(e) {
e && (r.isSupportedCode(e) ? i.push(e) : r.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))
};
return "string" == typeof e && e.indexOf("-") > -1 ? ("languageOnly" !== this.options.load && a(this.formatLanguageCode(e)), "languageOnly" !== this.options.load && "currentOnly" !== this.options.load && a(this.getScriptPartFromCode(e)), "currentOnly" !== this.options.load && a(this.getLanguagePartFromCode(e))) : "string" == typeof e && a(this.formatLanguageCode(e)), n.forEach((function(e) {
i.indexOf(e) < 0 && a(r.formatLanguageCode(e))
})), i
}
}]), e
}(),
me = [{
lngs: ["ach", "ak", "am", "arn", "br", "fil", "gun", "ln", "mfe", "mg", "mi", "oc", "pt", "pt-BR", "tg", "tl", "ti", "tr", "uz", "wa"],
nr: [1, 2],
fc: 1
}, {
lngs: ["af", "an", "ast", "az", "bg", "bn", "ca", "da", "de", "dev", "el", "en", "eo", "es", "et", "eu", "fi", "fo", "fur", "fy", "gl", "gu", "ha", "hi", "hu", "hy", "ia", "it", "kn", "ku", "lb", "mai", "ml", "mn", "mr", "nah", "nap", "nb", "ne", "nl", "nn", "no", "nso", "pa", "pap", "pms", "ps", "pt-PT", "rm", "sco", "se", "si", "so", "son", "sq", "sv", "sw", "ta", "te", "tk", "ur", "yo"],
nr: [1, 2],
fc: 2
}, {
lngs: ["ay", "bo", "cgg", "fa", "ht", "id", "ja", "jbo", "ka", "kk", "km", "ko", "ky", "lo", "ms", "sah", "su", "th", "tt", "ug", "vi", "wo", "zh"],
nr: [1],
fc: 3
}, {
lngs: ["be", "bs", "cnr", "dz", "hr", "ru", "sr", "uk"],
nr: [1, 2, 5],
fc: 4
}, {
lngs: ["ar"],
nr: [0, 1, 2, 3, 11, 100],
fc: 5
}, {
lngs: ["cs", "sk"],
nr: [1, 2, 5],
fc: 6
}, {
lngs: ["csb", "pl"],
nr: [1, 2, 5],
fc: 7
}, {
lngs: ["cy"],
nr: [1, 2, 3, 8],
fc: 8
}, {
lngs: ["fr"],
nr: [1, 2],
fc: 9
}, {
lngs: ["ga"],
nr: [1, 2, 3, 7, 11],
fc: 10
}, {
lngs: ["gd"],
nr: [1, 2, 3, 20],
fc: 11
}, {
lngs: ["is"],
nr: [1, 2],
fc: 12
}, {
lngs: ["jv"],
nr: [0, 1],
fc: 13
}, {
lngs: ["kw"],
nr: [1, 2, 3, 4],
fc: 14
}, {
lngs: ["lt"],
nr: [1, 2, 10],
fc: 15
}, {
lngs: ["lv"],
nr: [1, 2, 0],
fc: 16
}, {
lngs: ["mk"],
nr: [1, 2],
fc: 17
}, {
lngs: ["mnk"],
nr: [0, 1, 2],
fc: 18
}, {
lngs: ["mt"],
nr: [1, 2, 11, 20],
fc: 19
}, {
lngs: ["or"],
nr: [2, 1],
fc: 2
}, {
lngs: ["ro"],
nr: [1, 2, 20],
fc: 20
}, {
lngs: ["sl"],
nr: [5, 1, 2, 3],
fc: 21
}, {
lngs: ["he", "iw"],
nr: [1, 2, 20, 21],
fc: 22
}],
be = {
1: function(e) {
return Number(e > 1)
},
2: function(e) {
return Number(1 != e)
},
3: function(e) {
return 0
},
4: function(e) {
return Number(e % 10 == 1 && e % 100 != 11 ? 0 : e % 10 >= 2 && e % 10 <= 4 && (e % 100 < 10 || e % 100 >= 20) ? 1 : 2)
},
5: function(e) {
return Number(0 == e ? 0 : 1 == e ? 1 : 2 == e ? 2 : e % 100 >= 3 && e % 100 <= 10 ? 3 : e % 100 >= 11 ? 4 : 5)
},
6: function(e) {
return Number(1 == e ? 0 : e >= 2 && e <= 4 ? 1 : 2)
},
7: function(e) {
return Number(1 == e ? 0 : e % 10 >= 2 && e % 10 <= 4 && (e % 100 < 10 || e % 100 >= 20) ? 1 : 2)
},
8: function(e) {
return Number(1 == e ? 0 : 2 == e ? 1 : 8 != e && 11 != e ? 2 : 3)
},
9: function(e) {
return Number(e >= 2)
},
10: function(e) {
return Number(1 == e ? 0 : 2 == e ? 1 : e < 7 ? 2 : e < 11 ? 3 : 4)
},
11: function(e) {
return Number(1 == e || 11 == e ? 0 : 2 == e || 12 == e ? 1 : e > 2 && e < 20 ? 2 : 3)
},
12: function(e) {
return Number(e % 10 != 1 || e % 100 == 11)
},
13: function(e) {
return Number(0 !== e)
},
14: function(e) {
return Number(1 == e ? 0 : 2 == e ? 1 : 3 == e ? 2 : 3)
},
15: function(e) {
return Number(e % 10 == 1 && e % 100 != 11 ? 0 : e % 10 >= 2 && (e % 100 < 10 || e % 100 >= 20) ? 1 : 2)
},
16: function(e) {
return Number(e % 10 == 1 && e % 100 != 11 ? 0 : 0 !== e ? 1 : 2)
},
17: function(e) {
return Number(1 == e || e % 10 == 1 && e % 100 != 11 ? 0 : 1)
},
18: function(e) {
return Number(0 == e ? 0 : 1 == e ? 1 : 2)
},
19: function(e) {
return Number(1 == e ? 0 : 0 == e || e % 100 > 1 && e % 100 < 11 ? 1 : e % 100 > 10 && e % 100 < 20 ? 2 : 3)
},
20: function(e) {
return Number(1 == e ? 0 : 0 == e || e % 100 > 0 && e % 100 < 20 ? 1 : 2)
},
21: function(e) {
return Number(e % 100 == 1 ? 1 : e % 100 == 2 ? 2 : e % 100 == 3 || e % 100 == 4 ? 3 : 0)
},
22: function(e) {
return Number(1 == e ? 0 : 2 == e ? 1 : (e < 0 || e > 10) && e % 10 == 0 ? 2 : 3)
}
};
function we() {
var e = {};
return me.forEach((function(t) {
t.lngs.forEach((function(r) {
e[r] = {
numbers: t.nr,
plurals: be[t.fc]
}
}))
})), e
}
var ke = function() {
function e(t) {
var r = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};
U(this, e), this.languageUtils = t, this.options = r, this.logger = Q.create("pluralResolver"), this.rules = we()
}
return H(e, [{
key: "addRule",
value: function(e, t) {
this.rules[e] = t
}
}, {
key: "getRule",
value: function(e) {
return this.rules[e] || this.rules[this.languageUtils.getLanguagePartFromCode(e)]
}
}, {
key: "needsPlural",
value: function(e) {
var t = this.getRule(e);
return t && t.numbers.length > 1
}
}, {
key: "getPluralFormsOfKey",
value: function(e, t) {
return this.getSuffixes(e).map((function(e) {
return t + e
}))
}
}, {
key: "getSuffixes",
value: function(e) {
var t = this,
r = this.getRule(e);
return r ? r.numbers.map((function(r) {
return t.getSuffix(e, r)
})) : []
}
}, {
key: "getSuffix",
value: function(e, t) {
var r = this,
n = this.getRule(e);
if (n) {
var i = n.noAbs ? n.plurals(t) : n.plurals(Math.abs(t)),
a = n.numbers[i];
this.options.simplifyPluralSuffix && 2 === n.numbers.length && 1 === n.numbers[0] && (2 === a ? a = "plural" : 1 === a && (a = ""));
var o = function() {
return r.options.prepend && a.toString() ? r.options.prepend + a.toString() : a.toString()
};
return "v1" === this.options.compatibilityJSON ? 1 === a ? "" : "number" == typeof a ? "_plural_".concat(a.toString()) : o() : "v2" === this.options.compatibilityJSON || this.options.simplifyPluralSuffix && 2 === n.numbers.length && 1 === n.numbers[0] ? o() : this.options.prepend && i.toString() ? this.options.prepend + i.toString() : i.toString()
}
return this.logger.warn("no plural rule found for: ".concat(e)), ""
}
}]), e
}(),
xe = function() {
function e() {
var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {};
U(this, e), this.logger = Q.create("interpolator"), this.options = t, this.format = t.interpolation && t.interpolation.format || function(e) {
return e
}, this.init(t)
}
return H(e, [{
key: "init",
value: function() {
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {};
e.interpolation || (e.interpolation = {
escapeValue: !0
});
var t = e.interpolation;
this.escape = void 0 !== t.escape ? t.escape : ue, this.escapeValue = void 0 === t.escapeValue || t.escapeValue, this.useRawValueToEscape = void 0 !== t.useRawValueToEscape && t.useRawValueToEscape, this.prefix = t.prefix ? ce(t.prefix) : t.prefixEscaped || "{{", this.suffix = t.suffix ? ce(t.suffix) : t.suffixEscaped || "}}", this.formatSeparator = t.formatSeparator ? t.formatSeparator : t.formatSeparator || ",", this.unescapePrefix = t.unescapeSuffix ? "" : t.unescapePrefix || "-", this.unescapeSuffix = this.unescapePrefix ? "" : t.unescapeSuffix || "", this.nestingPrefix = t.nestingPrefix ? ce(t.nestingPrefix) : t.nestingPrefixEscaped || ce("$t("), this.nestingSuffix = t.nestingSuffix ? ce(t.nestingSuffix) : t.nestingSuffixEscaped || ce(")"), this.nestingOptionsSeparator = t.nestingOptionsSeparator ? t.nestingOptionsSeparator : t.nestingOptionsSeparator || ",", this.maxReplaces = t.maxReplaces ? t.maxReplaces : 1e3, this.alwaysFormat = void 0 !== t.alwaysFormat && t.alwaysFormat, this.resetRegExp()
}
}, {
key: "reset",
value: function() {
this.options && this.init(this.options)
}
}, {
key: "resetRegExp",
value: function() {
var e = "".concat(this.prefix, "(.+?)").concat(this.suffix);
this.regexp = new RegExp(e, "g");
var t = "".concat(this.prefix).concat(this.unescapePrefix, "(.+?)").concat(this.unescapeSuffix).concat(this.suffix);
this.regexpUnescape = new RegExp(t, "g");
var r = "".concat(this.nestingPrefix, "(.+?)").concat(this.nestingSuffix);
this.nestingRegexp = new RegExp(r, "g")
}
}, {
key: "interpolate",
value: function(e, t, r, n) {
var i, a, o, s = this,
c = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {};
function l(e) {
return e.replace(/\$/g, "$$$$")
}
var u = function(e) {
if (e.indexOf(s.formatSeparator) < 0) {
var i = oe(t, c, e);
return s.alwaysFormat ? s.format(i, void 0, r) : i
}
var a = e.split(s.formatSeparator),
o = a.shift().trim(),
l = a.join(s.formatSeparator).trim();
return s.format(oe(t, c, o), l, r, n)
};
this.resetRegExp();
var d = n && n.missingInterpolationHandler || this.options.missingInterpolationHandler,
p = n && n.interpolation && n.interpolation.skipOnVariables || this.options.interpolation.skipOnVariables;
return [{
regex: this.regexpUnescape,
safeValue: function(e) {
return l(e)
}
}, {
regex: this.regexp,
safeValue: function(e) {
return s.escapeValue ? l(s.escape(e)) : l(e)
}
}].forEach((function(t) {
for (o = 0; i = t.regex.exec(e);) {
if (void 0 === (a = u(i[1].trim())))
if ("function" == typeof d) {
var r = d(e, i, n);
a = "string" == typeof r ? r : ""
} else {
if (p) {
a = i[0];
continue
}
s.logger.warn("missed to pass in variable ".concat(i[1], " for interpolating ").concat(e)), a = ""
} else "string" == typeof a || s.useRawValueToEscape || (a = te(a));
if (e = e.replace(i[0], t.safeValue(a)), t.regex.lastIndex = 0, ++o >= s.maxReplaces) break
}
})), e
}
}, {
key: "nest",
value: function(e, t) {
var r, n, i = this,
a = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {},
o = z({}, a);
function s(e, t) {
var r = this.nestingOptionsSeparator;
if (e.indexOf(r) < 0) return e;
var n = e.split(new RegExp("".concat(r, "[ ]*{"))),
i = "{".concat(n[1]);
e = n[0], i = (i = this.interpolate(i, o)).replace(/'/g, '"');
try {
o = JSON.parse(i), t && (o = z({}, t, o))
} catch (t) {
return this.logger.warn("failed parsing options string in nesting for key ".concat(e), t), "".concat(e).concat(r).concat(i)
}
return delete o.defaultValue, e
}
for (o.applyPostProcessor = !1, delete o.defaultValue; r = this.nestingRegexp.exec(e);) {
var c = [],
l = !1;
if (r[0].includes(this.formatSeparator) && !/{.*}/.test(r[1])) {
var u = r[1].split(this.formatSeparator).map((function(e) {
return e.trim()
}));
r[1] = u.shift(), c = u, l = !0
}
if ((n = t(s.call(this, r[1].trim(), o), o)) && r[0] === e && "string" != typeof n) return n;
"string" != typeof n && (n = te(n)), n || (this.logger.warn("missed to resolve ".concat(r[1], " for nesting ").concat(e)), n = ""), l && (n = c.reduce((function(e, t) {
return i.format(e, t, a.lng, a)
}), n.trim())), e = e.replace(r[0], n), this.regexp.lastIndex = 0
}
return e
}
}]), e
}();
var Se = function(e) {
function t(e, r, n) {
var i, a = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : {};
return U(this, t), i = G(this, Y(t).call(this)), de && X.call(K(i)), i.backend = e, i.store = r, i.services = n, i.languageUtils = n.languageUtils, i.options = a, i.logger = Q.create("backendConnector"), i.state = {}, i.queue = [], i.backend && i.backend.init && i.backend.init(n, a.backend, a), i
}
return Z(t, e), H(t, [{
key: "queueLoad",
value: function(e, t, r, n) {
var i = this,
a = [],
o = [],
s = [],
c = [];
return e.forEach((function(e) {
var n = !0;
t.forEach((function(t) {
var s = "".concat(e, "|").concat(t);
!r.reload && i.store.hasResourceBundle(e, t) ? i.state[s] = 2 : i.state[s] < 0 || (1 === i.state[s] ? o.indexOf(s) < 0 && o.push(s) : (i.state[s] = 1, n = !1, o.indexOf(s) < 0 && o.push(s), a.indexOf(s) < 0 && a.push(s), c.indexOf(t) < 0 && c.push(t)))
})), n || s.push(e)
})), (a.length || o.length) && this.queue.push({
pending: o,
loaded: {},
errors: [],
callback: n
}), {
toLoad: a,
pending: o,
toLoadLanguages: s,
toLoadNamespaces: c
}
}
}, {
key: "loaded",
value: function(e, t, r) {
var n = e.split("|"),
i = n[0],
a = n[1];
t && this.emit("failedLoading", i, a, t), r && this.store.addResourceBundle(i, a, r), this.state[e] = t ? -1 : 2;
var o = {};
this.queue.forEach((function(r) {
var n, s, c, l, u, d;
n = r.loaded, s = a, l = ne(n, [i], Object), u = l.obj, d = l.k, u[d] = u[d] || [], c && (u[d] = u[d].concat(s)), c || u[d].push(s),
function(e, t) {
for (var r = e.indexOf(t); - 1 !== r;) e.splice(r, 1), r = e.indexOf(t)
}(r.pending, e), t && r.errors.push(t), 0 !== r.pending.length || r.done || (Object.keys(r.loaded).forEach((function(e) {
o[e] || (o[e] = []), r.loaded[e].length && r.loaded[e].forEach((function(t) {
o[e].indexOf(t) < 0 && o[e].push(t)
}))
})), r.done = !0, r.errors.length ? r.callback(r.errors) : r.callback())
})), this.emit("loaded", o), this.queue = this.queue.filter((function(e) {
return !e.done
}))
}
}, {
key: "read",
value: function(e, t, r) {
var n = this,
i = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : 0,
a = arguments.length > 4 && void 0 !== arguments[4] ? arguments[4] : 350,
o = arguments.length > 5 ? arguments[5] : void 0;
return e.length ? this.backend[r](e, t, (function(s, c) {
s && c && i < 5 ? setTimeout((function() {
n.read.call(n, e, t, r, i + 1, 2 * a, o)
}), a) : o(s, c)
})) : o(null, {})
}
}, {
key: "prepareLoading",
value: function(e, t) {
var r = this,
n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {},
i = arguments.length > 3 ? arguments[3] : void 0;
if (!this.backend) return this.logger.warn("No backend was added via i18next.use. Will not load resources."), i && i();
"string" == typeof e && (e = this.languageUtils.toResolveHierarchy(e)), "string" == typeof t && (t = [t]);
var a = this.queueLoad(e, t, n, i);
if (!a.toLoad.length) return a.pending.length || i(), null;
a.toLoad.forEach((function(e) {
r.loadOne(e)
}))
}
}, {
key: "load",
value: function(e, t, r) {
this.prepareLoading(e, t, {}, r)
}
}, {
key: "reload",
value: function(e, t, r) {
this.prepareLoading(e, t, {
reload: !0
}, r)
}
}, {
key: "loadOne",
value: function(e) {
var t = this,
r = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : "",
n = e.split("|"),
i = n[0],
a = n[1];
this.read(i, a, "read", void 0, void 0, (function(n, o) {
n && t.logger.warn("".concat(r, "loading namespace ").concat(a, " for language ").concat(i, " failed"), n), !n && o && t.logger.log("".concat(r, "loaded namespace ").concat(a, " for language ").concat(i), o), t.loaded(e, n, o)
}))
}
}, {
key: "saveMissing",
value: function(e, t, r, n, i) {
var a = arguments.length > 5 && void 0 !== arguments[5] ? arguments[5] : {};
this.services.utils && this.services.utils.hasLoadedNamespace && !this.services.utils.hasLoadedNamespace(t) ? this.logger.warn('did not save key "'.concat(r, '" as the namespace "').concat(t, '" was not yet loaded'), "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!") : null != r && "" !== r && (this.backend && this.backend.create && this.backend.create(e, t, r, n, null, z({}, a, {
isUpdate: i
})), e && e[0] && this.store.addResource(e[0], t, r, n))
}
}]), t
}(X);
function Ce() {
return {
debug: !1,
initImmediate: !0,
ns: ["translation"],
defaultNS: ["translation"],
fallbackLng: ["dev"],
fallbackNS: !1,
whitelist: !1,
nonExplicitWhitelist: !1,
supportedLngs: !1,
nonExplicitSupportedLngs: !1,
load: "all",
preload: !1,
simplifyPluralSuffix: !0,
keySeparator: ".",
nsSeparator: ":",
pluralSeparator: "_",
contextSeparator: "_",
partialBundledLanguages: !1,
saveMissing: !1,
updateMissing: !1,
saveMissingTo: "fallback",
saveMissingPlurals: !0,
missingKeyHandler: !1,
missingInterpolationHandler: !1,
postProcess: !1,
postProcessPassResolved: !1,
returnNull: !0,
returnEmptyString: !0,
returnObjects: !1,
joinArrays: !1,
returnedObjectHandler: !1,
parseMissingKeyHandler: !1,
appendNamespaceToMissingKey: !1,
appendNamespaceToCIMode: !1,
overloadTranslationOptionHandler: function(e) {
var t = {};
if ("object" === V(e[1]) && (t = e[1]), "string" == typeof e[1] && (t.defaultValue = e[1]), "string" == typeof e[2] && (t.tDescription = e[2]), "object" === V(e[2]) || "object" === V(e[3])) {
var r = e[3] || e[2];
Object.keys(r).forEach((function(e) {
t[e] = r[e]
}))
}
return t
},
interpolation: {
escapeValue: !0,
format: function(e, t, r, n) {
return e
},
prefix: "{{",
suffix: "}}",
formatSeparator: ",",
unescapePrefix: "-",
nestingPrefix: "$t(",
nestingSuffix: ")",
nestingOptionsSeparator: ",",
maxReplaces: 1e3,
skipOnVariables: !1
}
}
}
function Pe(e) {
return "string" == typeof e.ns && (e.ns = [e.ns]), "string" == typeof e.fallbackLng && (e.fallbackLng = [e.fallbackLng]), "string" == typeof e.fallbackNS && (e.fallbackNS = [e.fallbackNS]), e.whitelist && (e.whitelist && e.whitelist.indexOf("cimode") < 0 && (e.whitelist = e.whitelist.concat(["cimode"])), e.supportedLngs = e.whitelist), e.nonExplicitWhitelist && (e.nonExplicitSupportedLngs = e.nonExplicitWhitelist), e.supportedLngs && e.supportedLngs.indexOf("cimode") < 0 && (e.supportedLngs = e.supportedLngs.concat(["cimode"])), e
}
function Ae() {}
var Oe = function(e) {
function t() {
var e, r = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {},
n = arguments.length > 1 ? arguments[1] : void 0;
if (U(this, t), e = G(this, Y(t).call(this)), de && X.call(K(e)), e.options = Pe(r), e.services = {}, e.logger = Q, e.modules = {
external: []
}, n && !e.isInitialized && !r.isClone) {
if (!e.options.initImmediate) return e.init(r, n), G(e, K(e));
setTimeout((function() {
e.init(r, n)
}), 0)
}
return e
}
return Z(t, e), H(t, [{
key: "init",
value: function() {
var e = this,
t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {},
r = arguments.length > 1 ? arguments[1] : void 0;
function n(e) {
return e ? "function" == typeof e ? new e : e : null
}
if ("function" == typeof t && (r = t, t = {}), t.whitelist && !t.supportedLngs && this.logger.deprecate("whitelist", 'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'), t.nonExplicitWhitelist && !t.nonExplicitSupportedLngs && this.logger.deprecate("whitelist", 'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'), this.options = z({}, Ce(), this.options, Pe(t)), this.format = this.options.interpolation.format, r || (r = Ae), !this.options.isClone) {
this.modules.logger ? Q.init(n(this.modules.logger), this.options) : Q.init(null, this.options);
var i = new ve(this.options);
this.store = new pe(this.options.resources, this.options);
var a = this.services;
a.logger = Q, a.resourceStore = this.store, a.languageUtils = i, a.pluralResolver = new ke(i, {
prepend: this.options.pluralSeparator,
compatibilityJSON: this.options.compatibilityJSON,
simplifyPluralSuffix: this.options.simplifyPluralSuffix
}), a.interpolator = new xe(this.options), a.utils = {
hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
}, a.backendConnector = new Se(n(this.modules.backend), a.resourceStore, a, this.options), a.backendConnector.on("*", (function(t) {
for (var r = arguments.length, n = new Array(r > 1 ? r - 1 : 0), i = 1; i < r; i++) n[i - 1] = arguments[i];
e.emit.apply(e, [t].concat(n))
})), this.modules.languageDetector && (a.languageDetector = n(this.modules.languageDetector), a.languageDetector.init(a, this.options.detection, this.options)), this.modules.i18nFormat && (a.i18nFormat = n(this.modules.i18nFormat), a.i18nFormat.init && a.i18nFormat.init(this)), this.translator = new fe(this.services, this.options), this.translator.on("*", (function(t) {
for (var r = arguments.length, n = new Array(r > 1 ? r - 1 : 0), i = 1; i < r; i++) n[i - 1] = arguments[i];
e.emit.apply(e, [t].concat(n))
})), this.modules.external.forEach((function(t) {
t.init && t.init(e)
}))
}
if (this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
var o = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
o.length > 0 && "dev" !== o[0] && (this.options.lng = o[0])
}
this.services.languageDetector || this.options.lng || this.logger.warn("init: no languageDetector is used and no lng is defined");
var s = ["getResource", "hasResourceBundle", "getResourceBundle", "getDataByLanguage"];
s.forEach((function(t) {
e[t] = function() {
var r;
return (r = e.store)[t].apply(r, arguments)
}
}));
var c = ["addResource", "addResources", "addResourceBundle", "removeResourceBundle"];
c.forEach((function(t) {
e[t] = function() {
var r;
return (r = e.store)[t].apply(r, arguments), e
}
}));
var l = ee(),
u = function() {
var t = function(t, n) {
e.isInitialized && e.logger.warn("init: i18next is already initialized. You should call init just once!"), e.isInitialized = !0, e.options.isClone || e.logger.log("initialized", e.options), e.emit("initialized", e.options), l.resolve(n), r(t, n)
};
if (e.languages && "v1" !== e.options.compatibilityAPI && !e.isInitialized) return t(null, e.t.bind(e));
e.changeLanguage(e.options.lng, t)
};
return this.options.resources || !this.options.initImmediate ? u() : setTimeout(u, 0), l
}
}, {
key: "loadResources",
value: function(e) {
var t = this,
r = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : Ae,
n = r,
i = "string" == typeof e ? e : this.language;
if ("function" == typeof e && (n = e), !this.options.resources || this.options.partialBundledLanguages) {
if (i && "cimode" === i.toLowerCase()) return n();
var a = [],
o = function(e) {
e && t.services.languageUtils.toResolveHierarchy(e).forEach((function(e) {
a.indexOf(e) < 0 && a.push(e)
}))
};
if (i) o(i);
else {
var s = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
s.forEach((function(e) {
return o(e)
}))
}
this.options.preload && this.options.preload.forEach((function(e) {
return o(e)
})), this.services.backendConnector.load(a, this.options.ns, n)
} else n(null)
}
}, {
key: "reloadResources",
value: function(e, t, r) {
var n = ee();
return e || (e = this.languages), t || (t = this.options.ns), r || (r = Ae), this.services.backendConnector.reload(e, t, (function(e) {
n.resolve(), r(e)
})), n
}
}, {
key: "use",
value: function(e) {
if (!e) throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");
if (!e.type) throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");
return "backend" === e.type && (this.modules.backend = e), ("logger" === e.type || e.log && e.warn && e.error) && (this.modules.logger = e), "languageDetector" === e.type && (this.modules.languageDetector = e), "i18nFormat" === e.type && (this.modules.i18nFormat = e), "postProcessor" === e.type && he.addPostProcessor(e), "3rdParty" === e.type && this.modules.external.push(e), this
}
}, {
key: "changeLanguage",
value: function(e, t) {
var r = this;
this.isLanguageChangingTo = e;
var n = ee();
this.emit("languageChanging", e);
var i = function(e) {
var i = "string" == typeof e ? e : r.services.languageUtils.getBestMatchFromCodes(e);
i && (r.language || (r.language = i, r.languages = r.services.languageUtils.toResolveHierarchy(i)), r.translator.language || r.translator.changeLanguage(i), r.services.languageDetector && r.services.languageDetector.cacheUserLanguage(i)), r.loadResources(i, (function(e) {
! function(e, i) {
i ? (r.language = i, r.languages = r.services.languageUtils.toResolveHierarchy(i), r.translator.changeLanguage(i), r.isLanguageChangingTo = void 0, r.emit("languageChanged", i), r.logger.log("languageChanged", i)) : r.isLanguageChangingTo = void 0, n.resolve((function() {
return r.t.apply(r, arguments)
})), t && t(e, (function() {
return r.t.apply(r, arguments)
}))
}(e, i)
}))
};
return e || !this.services.languageDetector || this.services.languageDetector.async ? !e && this.services.languageDetector && this.services.languageDetector.async ? this.services.languageDetector.detect(i) : i(e) : i(this.services.languageDetector.detect()), n
}
}, {
key: "getFixedT",
value: function(e, t) {
var r = this,
n = function e(t, n) {
var i;
if ("object" !== V(n)) {
for (var a = arguments.length, o = new Array(a > 2 ? a - 2 : 0), s = 2; s < a; s++) o[s - 2] = arguments[s];
i = r.options.overloadTranslationOptionHandler([t, n].concat(o))
} else i = z({}, n);
return i.lng = i.lng || e.lng, i.lngs = i.lngs || e.lngs, i.ns = i.ns || e.ns, r.t(t, i)
};
return "string" == typeof e ? n.lng = e : n.lngs = e, n.ns = t, n
}
}, {
key: "t",
value: function() {
var e;
return this.translator && (e = this.translator).translate.apply(e, arguments)
}
}, {
key: "exists",
value: function() {
var e;
return this.translator && (e = this.translator).exists.apply(e, arguments)
}
}, {
key: "setDefaultNamespace",
value: function(e) {
this.options.defaultNS = e
}
}, {
key: "hasLoadedNamespace",
value: function(e) {
var t = this,
r = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};
if (!this.isInitialized) return this.logger.warn("hasLoadedNamespace: i18next was not initialized", this.languages), !1;
if (!this.languages || !this.languages.length) return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty", this.languages), !1;
var n = this.languages[0],
i = !!this.options && this.options.fallbackLng,
a = this.languages[this.languages.length - 1];
if ("cimode" === n.toLowerCase()) return !0;
var o = function(e, r) {
var n = t.services.backendConnector.state["".concat(e, "|").concat(r)];
return -1 === n || 2 === n
};
if (r.precheck) {
var s = r.precheck(this, o);
if (void 0 !== s) return s
}
return !!this.hasResourceBundle(n, e) || (!this.services.backendConnector.backend || !(!o(n, e) || i && !o(a, e)))
}
}, {
key: "loadNamespaces",
value: function(e, t) {
var r = this,
n = ee();
return this.options.ns ? ("string" == typeof e && (e = [e]), e.forEach((function(e) {
r.options.ns.indexOf(e) < 0 && r.options.ns.push(e)
})), this.loadResources((function(e) {
n.resolve(), t && t(e)
})), n) : (t && t(), Promise.resolve())
}
}, {
key: "loadLanguages",
value: function(e, t) {
var r = ee();
"string" == typeof e && (e = [e]);
var n = this.options.preload || [],
i = e.filter((function(e) {
return n.indexOf(e) < 0
}));
return i.length ? (this.options.preload = n.concat(i), this.loadResources((function(e) {
r.resolve(), t && t(e)
})), r) : (t && t(), Promise.resolve())
}
}, {
key: "dir",
value: function(e) {
if (e || (e = this.languages && this.languages.length > 0 ? this.languages[0] : this.language), !e) return "rtl";
return ["ar", "shu", "sqr", "ssh", "xaa", "yhd", "yud", "aao", "abh", "abv", "acm", "acq", "acw", "acx", "acy", "adf", "ads", "aeb", "aec", "afb", "ajp", "apc", "apd", "arb", "arq", "ars", "ary", "arz", "auz", "avl", "ayh", "ayl", "ayn", "ayp", "bbz", "pga", "he", "iw", "ps", "pbt", "pbu", "pst", "prp", "prd", "ug", "ur", "ydd", "yds", "yih", "ji", "yi", "hbo", "men", "xmn", "fa", "jpr", "peo", "pes", "prs", "dv", "sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e)) >= 0 ? "rtl" : "ltr"
}
}, {
key: "createInstance",
value: function() {
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {},
r = arguments.length > 1 ? arguments[1] : void 0;
return new t(e, r)
}
}, {
key: "cloneInstance",
value: function() {
var e = this,
r = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {},
n = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : Ae,
i = z({}, this.options, r, {
isClone: !0
}),
a = new t(i),
o = ["store", "services", "language"];
return o.forEach((function(t) {
a[t] = e[t]
})), a.services = z({}, this.services), a.services.utils = {
hasLoadedNamespace: a.hasLoadedNamespace.bind(a)
}, a.translator = new fe(a.services, a.options), a.translator.on("*", (function(e) {
for (var t = arguments.length, r = new Array(t > 1 ? t - 1 : 0), n = 1; n < t; n++) r[n - 1] = arguments[n];
a.emit.apply(a, [e].concat(r))
})), a.init(i, n), a.translator.options = a.options, a.translator.backendConnector.services.utils = {
hasLoadedNamespace: a.hasLoadedNamespace.bind(a)
}, a
}
}]), t
}(X),
Le = new Oe;
function De(e, t, r) {
function n(e) {
return e && e.indexOf("###") > -1 ? e.replace(/###/g, ".") : e
}
function i() {
return !e || "string" == typeof e
}
for (var a = "string" != typeof t ? [].concat(t) : t.split("."); a.length > 1;) {
if (i()) return {};
var o = n(a.shift());
!e[o] && r && (e[o] = new r), e = e[o]
}
return i() ? {} : {
obj: e,
k: n(a.shift())
}
}
var Ee, je = [],
_e = je.forEach,
Re = je.slice;
function Te(e) {
return e.type === Ee.literal
}
function Ne(e) {
return e.type === Ee.argument
}
function Fe(e) {
return e.type === Ee.number
}
function Me(e) {
return e.type === Ee.date
}
function Ie(e) {
return e.type === Ee.time
}
function Ve(e) {
return e.type === Ee.select
}
function Be(e) {
return e.type === Ee.plural
}
function ze(e) {
return e.type === Ee.pound
}
function Ue(e) {
return !(!e || "object" != typeof e || 0 !== e.type)
}
function We(e) {
return !(!e || "object" != typeof e || 1 !== e.type)
}! function(e) {
e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound"
}(Ee || (Ee = {}));
var He = function() {
var e = function(t, r) {
return e = Object.setPrototypeOf || {
__proto__: []
}
instanceof Array && function(e, t) {
e.__proto__ = t
} || function(e, t) {
for (var r in t) t.hasOwnProperty(r) && (e[r] = t[r])
}, e(t, r)
};
return function(t, r) {
function n() {
this.constructor = t
}
e(t, r), t.prototype = null === r ? Object.create(r) : (n.prototype = r.prototype, new n)
}
}(),
Ke = function() {
return Ke = Object.assign || function(e) {
for (var t, r = 1, n = arguments.length; r < n; r++)
for (var i in t = arguments[r]) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
return e
}, Ke.apply(this, arguments)
},
Ge = function(e) {
function t(r, n, i, a) {
var o = e.call(this) || this;
return o.message = r, o.expected = n, o.found = i, o.location = a, o.name = "SyntaxError", "function" == typeof Error.captureStackTrace && Error.captureStackTrace(o, t), o
}
return He(t, e), t.buildMessage = function(e, t) {
function r(e) {
return e.charCodeAt(0).toString(16).toUpperCase()
}
function n(e) {
return e.replace(/\\/g, "\\\\").replace(/"/g, '\\"').replace(/\0/g, "\\0").replace(/\t/g, "\\t").replace(/\n/g, "\\n").replace(/\r/g, "\\r").replace(/[\x00-\x0F]/g, (function(e) {
return "\\x0" + r(e)
})).replace(/[\x10-\x1F\x7F-\x9F]/g, (function(e) {
return "\\x" + r(e)
}))
}
function i(e) {
return e.replace(/\\/g, "\\\\").replace(/\]/g, "\\]").replace(/\^/g, "\\^").replace(/-/g, "\\-").replace(/\0/g, "\\0").replace(/\t/g, "\\t").replace(/\n/g, "\\n").replace(/\r/g, "\\r").replace(/[\x00-\x0F]/g, (function(e) {
return "\\x0" + r(e)
})).replace(/[\x10-\x1F\x7F-\x9F]/g, (function(e) {
return "\\x" + r(e)
}))
}
function a(e) {
switch (e.type) {
case "literal":
return '"' + n(e.text) + '"';
case "class":
var t = e.parts.map((function(e) {
return Array.isArray(e) ? i(e[0]) + "-" + i(e[1]) : i(e)
}));
return "[" + (e.inverted ? "^" : "") + t + "]";
case "any":
return "any character";
case "end":
return "end of input";
case "other":
return e.description
}
}
return "Expected " + function(e) {
var t, r, n = e.map(a);
if (n.sort(), n.length > 0) {
for (t = 1, r = 1; t < n.length; t++) n[t - 1] !== n[t] && (n[r] = n[t], r++);
n.length = r
}
switch (n.length) {
case 1:
return n[0];
case 2:
return n[0] + " or " + n[1];
default:
return n.slice(0, -1).join(", ") + ", or " + n[n.length - 1]
}
}(e) + " but " + (((o = t) ? '"' + n(o) + '"' : "end of input") + " found.");
var o
}, t
}(Error);
var Ye = function(e, t) {
t = void 0 !== t ? t : {};
var r, n = {},
i = {
start: Re
},
a = Re,
o = Pe("#", !1),
s = Oe("argumentElement"),
c = "{",
l = Pe("{", !1),
u = "}",
d = Pe("}", !1),
p = Oe("numberSkeletonId"),
h = /^['\/{}]/,
g = Ae(["'", "/", "{", "}"], !1, !1),
f = {
type: "any"
},
y = Oe("numberSkeletonTokenOption"),
v = Pe("/", !1),
m = Oe("numberSkeletonToken"),
b = "::",
w = Pe("::", !1),
k = function(e) {
return rt.pop(), e.replace(/\s*$/, "")
},
x = ",",
S = Pe(",", !1),
C = "number",
P = Pe("number", !1),
A = function(e, t, r) {
return Ke({
type: "number" === t ? Ee.number : "date" === t ? Ee.date : Ee.time,
style: r && r[2],
value: e
}, it())
},
O = "'",
L = Pe("'", !1),
D = /^[^']/,
E = Ae(["'"], !0, !1),
j = /^[^a-zA-Z'{}]/,
_ = Ae([
["a", "z"],
["A", "Z"], "'", "{", "}"
], !0, !1),
R = /^[a-zA-Z]/,
T = Ae([
["a", "z"],
["A", "Z"]
], !1, !1),
N = "date",
F = Pe("date", !1),
M = "time",
I = Pe("time", !1),
V = "plural",
B = Pe("plural", !1),
z = "selectordinal",
U = Pe("selectordinal", !1),
W = "offset:",
H = Pe("offset:", !1),
K = "select",
G = Pe("select", !1),
Y = Pe("=", !1),
q = Oe("whitespace"),
Z = /^[\t-\r \x85\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,
J = Ae([
["\t", "\r"], " ", "\x85", "\xa0", "\u1680", ["\u2000", "\u200a"], "\u2028", "\u2029", "\u202f", "\u205f", "\u3000"
], !1, !1),
$ = Oe("syntax pattern"),
Q = /^[!-\/:-@[-\^`{-~\xA1-\xA7\xA9\xAB\xAC\xAE\xB0\xB1\xB6\xBB\xBF\xD7\xF7\u2010-\u2027\u2030-\u203E\u2041-\u2053\u2055-\u205E\u2190-\u245F\u2500-\u2775\u2794-\u2BFF\u2E00-\u2E7F\u3001-\u3003\u3008-\u3020\u3030\uFD3E\uFD3F\uFE45\uFE46]/,
X = Ae([
["!", "/"],
[":", "@"],
["[", "^"], "`", ["{", "~"],
["\xa1", "\xa7"], "\xa9", "\xab", "\xac", "\xae", "\xb0", "\xb1", "\xb6", "\xbb", "\xbf", "\xd7", "\xf7", ["\u2010", "\u2027"],
["\u2030", "\u203e"],
["\u2041", "\u2053"],
["\u2055", "\u205e"],
["\u2190", "\u245f"],
["\u2500", "\u2775"],
["\u2794", "\u2bff"],
["\u2e00", "\u2e7f"],
["\u3001", "\u3003"],
["\u3008", "\u3020"], "\u3030", "\ufd3e", "\ufd3f", "\ufe45", "\ufe46"
], !1, !1),
ee = Oe("optional whitespace"),
te = Oe("number"),
re = Pe("-", !1),
ne = (Oe("apostrophe"), Oe("double apostrophes")),
ie = "''",
ae = Pe("''", !1),
oe = function(e) {
return !("{" === e || nt() && "#" === e || rt.length > 1 && "}" === e)
},
se = Pe("\n", !1),
ce = Oe("argNameOrNumber"),
le = Oe("argNumber"),
ue = Pe("0", !1),
de = /^[1-9]/,
pe = Ae([
["1", "9"]
], !1, !1),
he = /^[0-9]/,
ge = Ae([
["0", "9"]
], !1, !1),
fe = Oe("argName"),
ye = 0,
ve = 0,
me = [{
line: 1,
column: 1
}],
be = 0,
we = [],
ke = 0;
if (void 0 !== t.startRule) {
if (!(t.startRule in i)) throw new Error("Can't start parsing from rule \"" + t.startRule + '".');
a = i[t.startRule]
}
function xe() {
return e.substring(ve, ye)
}
function Se() {
return De(ve, ye)
}
function Ce(e, t) {
throw
function(e, t) {
return new Ge(e, [], "", t)
}(e, t = void 0 !== t ? t : De(ve, ye))
}
function Pe(e, t) {
return {
type: "literal",
text: e,
ignoreCase: t
}
}
function Ae(e, t, r) {
return {
type: "class",
parts: e,
inverted: t,
ignoreCase: r
}
}
function Oe(e) {
return {
type: "other",
description: e
}
}
function Le(t) {
var r, n = me[t];
if (n) return n;
for (r = t - 1; !me[r];) r--;
for (n = {
line: (n = me[r]).line,
column: n.column
}; r < t;) 10 === e.charCodeAt(r) ? (n.line++, n.column = 1) : n.column++, r++;
return me[t] = n, n
}
function De(e, t) {
var r = Le(e),
n = Le(t);
return {
start: {
offset: e,
line: r.line,
column: r.column
},
end: {
offset: t,
line: n.line,
column: n.column
}
}
}
function je(e) {
ye < be || (ye > be && (be = ye, we = []), we.push(e))
}
function _e(e, t, r) {
return new Ge(Ge.buildMessage(e, t), e, t, r)
}
function Re() {
return Te()
}
function Te() {
var e, t;
for (e = [], t = Ne(); t !== n;) e.push(t), t = Ne();
return e
}
function Ne() {
var t;
return (t = function() {
var e, t;
e = ye, (t = Fe()) !== n && (ve = e, r = t, t = Ke({
type: Ee.literal,
value: r
}, it()));
var r;
return e = t
}()) === n && (t = function() {
var t, r, i, a;
ke++, t = ye, 123 === e.charCodeAt(ye) ? (r = c, ye++) : (r = n, 0 === ke && je(l));
r !== n && qe() !== n && (i = Xe()) !== n && qe() !== n ? (125 === e.charCodeAt(ye) ? (a = u, ye++) : (a = n, 0 === ke && je(d)), a !== n ? (ve = t, o = i, t = r = Ke({
type: Ee.argument,
value: o
}, it())) : (ye = t, t = n)) : (ye = t, t = n);
var o;
ke--, t === n && (r = n, 0 === ke && je(s));
return t
}()) === n && (t = function() {
var t;
(t = function() {
var t, r, i, a, o, s, p, h, g;
t = ye, 123 === e.charCodeAt(ye) ? (r = c, ye++) : (r = n, 0 === ke && je(l));
r !== n && qe() !== n && (i = Xe()) !== n && qe() !== n ? (44 === e.charCodeAt(ye) ? (a = x, ye++) : (a = n, 0 === ke && je(S)), a !== n && qe() !== n ? (e.substr(ye, 6) === C ? (o = C, ye += 6) : (o = n, 0 === ke && je(P)), o !== n && qe() !== n ? (s = ye, 44 === e.charCodeAt(ye) ? (p = x, ye++) : (p = n, 0 === ke && je(S)), p !== n && (h = qe()) !== n ? (g = function() {
var t, r, i;
t = ye, e.substr(ye, 2) === b ? (r = b, ye += 2) : (r = n, 0 === ke && je(w));
r !== n ? (i = function() {
var e, t, r;
if (e = ye, t = [], (r = Ve()) !== n)
for (; r !== n;) t.push(r), r = Ve();
else t = n;
t !== n && (ve = e, t = Ke({
type: 0,
tokens: t
}, it()));
return e = t
}(), i !== n ? (ve = t, t = r = i) : (ye = t, t = n)) : (ye = t, t = n);
t === n && (t = ye, ve = ye, rt.push("numberArgStyle"), (r = (r = !0) ? void 0 : n) !== n && (i = Fe()) !== n ? (ve = t, t = r = k(i)) : (ye = t, t = n));
return t
}(), g !== n ? s = p = [p, h, g] : (ye = s, s = n)) : (ye = s, s = n), s === n && (s = null), s !== n && (p = qe()) !== n ? (125 === e.charCodeAt(ye) ? (h = u, ye++) : (h = n, 0 === ke && je(d)), h !== n ? (ve = t, t = r = A(i, o, s)) : (ye = t, t = n)) : (ye = t, t = n)) : (ye = t, t = n)) : (ye = t, t = n)) : (ye = t, t = n);
return t
}()) === n && (t = function() {
var t, r, i, a, o, s, p, h, g;
t = ye, 123 === e.charCodeAt(ye) ? (r = c, ye++) : (r = n, 0 === ke && je(l));
r !== n && qe() !== n && (i = Xe()) !== n && qe() !== n ? (44 === e.charCodeAt(ye) ? (a = x, ye++) : (a = n, 0 === ke && je(S)), a !== n && qe() !== n ? (e.substr(ye, 4) === N ? (o = N, ye += 4) : (o = n, 0 === ke && je(F)), o === n && (e.substr(ye, 4) === M ? (o = M, ye += 4) : (o = n, 0 === ke && je(I))), o !== n && qe() !== n ? (s = ye, 44 === e.charCodeAt(ye) ? (p = x, ye++) : (p = n, 0 === ke && je(S)), p !== n && (h = qe()) !== n ? (g = function() {
var t, r, i;
t = ye, e.substr(ye, 2) === b ? (r = b, ye += 2) : (r = n, 0 === ke && je(w));
r !== n ? (i = function() {
var t, r, i, a;
t = ye, r = ye, i = [], (a = Be()) === n && (a = ze());
if (a !== n)
for (; a !== n;) i.push(a), (a = Be()) === n && (a = ze());
else i = n;
r = i !== n ? e.substring(r, ye) : i;
r !== n && (ve = t, r = Ke({
type: 1,
pattern: r
}, it()));
return t = r
}(), i !== n ? (ve = t, t = r = i) : (ye = t, t = n)) : (ye = t, t = n);
t === n && (t = ye, ve = ye, rt.push("dateOrTimeArgStyle"), (r = (r = !0) ? void 0 : n) !== n && (i = Fe()) !== n ? (ve = t, t = r = k(i)) : (ye = t, t = n));
return t
}(), g !== n ? s = p = [p, h, g] : (ye = s, s = n)) : (ye = s, s = n), s === n && (s = null), s !== n && (p = qe()) !== n ? (125 === e.charCodeAt(ye) ? (h = u, ye++) : (h = n, 0 === ke && je(d)), h !== n ? (ve = t, t = r = A(i, o, s)) : (ye = t, t = n)) : (ye = t, t = n)) : (ye = t, t = n)) : (ye = t, t = n)) : (ye = t, t = n);
return t
}());
return t
}()) === n && (t = function() {
var t, r, i, a, o, s, p, h, g, f, y;
t = ye, 123 === e.charCodeAt(ye) ? (r = c, ye++) : (r = n, 0 === ke && je(l));
if (r !== n)
if (qe() !== n)
if ((i = Xe()) !== n)
if (qe() !== n)
if (44 === e.charCodeAt(ye) ? (a = x, ye++) : (a = n, 0 === ke && je(S)), a !== n)
if (qe() !== n)
if (e.substr(ye, 6) === V ? (o = V, ye += 6) : (o = n, 0 === ke && je(B)), o === n && (e.substr(ye, 13) === z ? (o = z, ye += 13) : (o = n, 0 === ke && je(U))), o !== n)
if (qe() !== n)
if (44 === e.charCodeAt(ye) ? (s = x, ye++) : (s = n, 0 === ke && je(S)), s !== n)
if (qe() !== n)
if (p = ye, e.substr(ye, 7) === W ? (h = W, ye += 7) : (h = n, 0 === ke && je(H)), h !== n && (g = qe()) !== n && (f = Ze()) !== n ? p = h = [h, g, f] : (ye = p, p = n), p === n && (p = null), p !== n)
if ((h = qe()) !== n) {
if (g = [], (f = We()) !== n)
for (; f !== n;) g.push(f), f = We();
else g = n;
g !== n && (f = qe()) !== n ? (125 === e.charCodeAt(ye) ? (y = u, ye++) : (y = n, 0 === ke && je(d)), y !== n ? (ve = t, r = function(e, t, r, n) {
return Ke({
type: Ee.plural,
pluralType: "plural" === t ? "cardinal" : "ordinal",
value: e,
offset: r ? r[2] : 0,
options: n.reduce((function(e, t) {
var r = t.id,
n = t.value,
i = t.location;
return r in e && Ce('Duplicate option "' + r + '" in plural element: "' + xe() + '"', Se()), e[r] = {
value: n,
location: i
}, e
}), {})
}, it())
}(i, o, p, g), t = r) : (ye = t, t = n)) : (ye = t, t = n)
} else ye = t, t = n;
else ye = t, t = n;
else ye = t, t = n;
else ye = t, t = n;
else ye = t, t = n;
else ye = t, t = n;
else ye = t, t = n;
else ye = t, t = n;
else ye = t, t = n;
else ye = t, t = n;
else ye = t, t = n;
else ye = t, t = n;
return t
}(), t === n && (t = function() {
var t, r, i, a, o, s, p, h, g;
t = ye, 123 === e.charCodeAt(ye) ? (r = c, ye++) : (r = n, 0 === ke && je(l));
if (r !== n)
if (qe() !== n)
if ((i = Xe()) !== n)
if (qe() !== n)
if (44 === e.charCodeAt(ye) ? (a = x, ye++) : (a = n, 0 === ke && je(S)), a !== n)
if (qe() !== n)
if (e.substr(ye, 6) === K ? (o = K, ye += 6) : (o = n, 0 === ke && je(G)), o !== n)
if (qe() !== n)
if (44 === e.charCodeAt(ye) ? (s = x, ye++) : (s = n, 0 === ke && je(S)), s !== n)
if (qe() !== n) {
if (p = [], (h = Ue()) !== n)
for (; h !== n;) p.push(h), h = Ue();
else p = n;
p !== n && (h = qe()) !== n ? (125 === e.charCodeAt(ye) ? (g = u, ye++) : (g = n, 0 === ke && je(d)), g !== n ? (ve = t, r = function(e, t) {
return Ke({
type: Ee.select,
value: e,
options: t.reduce((function(e, t) {
var r = t.id,
n = t.value,
i = t.location;
return r in e && Ce('Duplicate option "' + r + '" in select element: "' + xe() + '"', Se()), e[r] = {
value: n,
location: i
}, e
}), {})
}, it())
}(i, p), t = r) : (ye = t, t = n)) : (ye = t, t = n)
} else ye = t, t = n;
else ye = t, t = n;
else ye = t, t = n;
else ye = t, t = n;
else ye = t, t = n;
else ye = t, t = n;
else ye = t, t = n;
else ye = t, t = n;
else ye = t, t = n;
else ye = t, t = n;
return t
}(), t === n && (t = function() {
var t, r;
t = ye, 35 === e.charCodeAt(ye) ? (r = "#", ye++) : (r = n, 0 === ke && je(o));
r !== n && (ve = t, r = Ke({
type: Ee.pound
}, it()));
return t = r
}()))), t
}
function Fe() {
var e, t, r;
if (e = ye, t = [], (r = Je()) === n && (r = $e()) === n && (r = Qe()), r !== n)
for (; r !== n;) t.push(r), (r = Je()) === n && (r = $e()) === n && (r = Qe());
else t = n;
return t !== n && (ve = e, t = t.join("")), e = t
}
function Me() {
var t, r, i, a, o;
if (ke++, t = ye, r = [], i = ye, a = ye, ke++, (o = He()) === n && (h.test(e.charAt(ye)) ? (o = e.charAt(ye), ye++) : (o = n, 0 === ke && je(g))), ke--, o === n ? a = void 0 : (ye = a, a = n), a !== n ? (e.length > ye ? (o = e.charAt(ye), ye++) : (o = n, 0 === ke && je(f)), o !== n ? i = a = [a, o] : (ye = i, i = n)) : (ye = i, i = n), i !== n)
for (; i !== n;) r.push(i), i = ye, a = ye, ke++, (o = He()) === n && (h.test(e.charAt(ye)) ? (o = e.charAt(ye), ye++) : (o = n, 0 === ke && je(g))), ke--, o === n ? a = void 0 : (ye = a, a = n), a !== n ? (e.length > ye ? (o = e.charAt(ye), ye++) : (o = n, 0 === ke && je(f)), o !== n ? i = a = [a, o] : (ye = i, i = n)) : (ye = i, i = n);
else r = n;
return t = r !== n ? e.substring(t, ye) : r, ke--, t === n && (r = n, 0 === ke && je(p)), t
}
function Ie() {
var t, r, i;
return ke++, t = ye, 47 === e.charCodeAt(ye) ? (r = "/", ye++) : (r = n, 0 === ke && je(v)), r !== n && (i = Me()) !== n ? (ve = t, t = r = i) : (ye = t, t = n), ke--, t === n && (r = n, 0 === ke && je(y)), t
}
function Ve() {
var e, t, r, i, a;
if (ke++, e = ye, (t = qe()) !== n)
if ((r = Me()) !== n) {
for (i = [], a = Ie(); a !== n;) i.push(a), a = Ie();
i !== n ? (ve = e, t = function(e, t) {
return {
stem: e,
options: t
}
}(r, i), e = t) : (ye = e, e = n)
} else ye = e, e = n;
else ye = e, e = n;
return ke--, e === n && (t = n, 0 === ke && je(m)), e
}
function Be() {
var t, r, i, a;
if (t = ye, 39 === e.charCodeAt(ye) ? (r = O, ye++) : (r = n, 0 === ke && je(L)), r !== n) {
if (i = [], (a = Je()) === n && (D.test(e.charAt(ye)) ? (a = e.charAt(ye), ye++) : (a = n, 0 === ke && je(E))), a !== n)
for (; a !== n;) i.push(a), (a = Je()) === n && (D.test(e.charAt(ye)) ? (a = e.charAt(ye), ye++) : (a = n, 0 === ke && je(E)));
else i = n;
i !== n ? (39 === e.charCodeAt(ye) ? (a = O, ye++) : (a = n, 0 === ke && je(L)), a !== n ? t = r = [r, i, a] : (ye = t, t = n)) : (ye = t, t = n)
} else ye = t, t = n;
if (t === n)
if (t = [], (r = Je()) === n && (j.test(e.charAt(ye)) ? (r = e.charAt(ye), ye++) : (r = n, 0 === ke && je(_))), r !== n)
for (; r !== n;) t.push(r), (r = Je()) === n && (j.test(e.charAt(ye)) ? (r = e.charAt(ye), ye++) : (r = n, 0 === ke && je(_)));
else t = n;
return t
}
function ze() {
var t, r;
if (t = [], R.test(e.charAt(ye)) ? (r = e.charAt(ye), ye++) : (r = n, 0 === ke && je(T)), r !== n)
for (; r !== n;) t.push(r), R.test(e.charAt(ye)) ? (r = e.charAt(ye), ye++) : (r = n, 0 === ke && je(T));
else t = n;
return t
}
function Ue() {
var t, r, i, a, o, s, p;
return t = ye, qe() !== n && (r = tt()) !== n && qe() !== n ? (123 === e.charCodeAt(ye) ? (i = c, ye++) : (i = n, 0 === ke && je(l)), i !== n ? (ve = ye, rt.push("select"), (!0 ? void 0 : n) !== n && (a = Te()) !== n ? (125 === e.charCodeAt(ye) ? (o = u, ye++) : (o = n, 0 === ke && je(d)), o !== n ? (ve = t, s = r, p = a, rt.pop(), t = Ke({
id: s,
value: p
}, it())) : (ye = t, t = n)) : (ye = t, t = n)) : (ye = t, t = n)) : (ye = t, t = n), t
}
function We() {
var t, r, i, a, o, s, p;
return t = ye, qe() !== n ? (r = function() {
var t, r, i, a;
return t = ye, r = ye, 61 === e.charCodeAt(ye) ? (i = "=", ye++) : (i = n, 0 === ke && je(Y)), i !== n && (a = Ze()) !== n ? r = i = [i, a] : (ye = r, r = n), (t = r !== n ? e.substring(t, ye) : r) === n && (t = tt()), t
}(), r !== n && qe() !== n ? (123 === e.charCodeAt(ye) ? (i = c, ye++) : (i = n, 0 === ke && je(l)), i !== n ? (ve = ye, rt.push("plural"), (!0 ? void 0 : n) !== n && (a = Te()) !== n ? (125 === e.charCodeAt(ye) ? (o = u, ye++) : (o = n, 0 === ke && je(d)), o !== n ? (ve = t, s = r, p = a, rt.pop(), t = Ke({
id: s,
value: p
}, it())) : (ye = t, t = n)) : (ye = t, t = n)) : (ye = t, t = n)) : (ye = t, t = n)) : (ye = t, t = n), t
}
function He() {
var t;
return ke++, Z.test(e.charAt(ye)) ? (t = e.charAt(ye), ye++) : (t = n, 0 === ke && je(J)), ke--, t === n && (n, 0 === ke && je(q)), t
}
function Ye() {
var t;
return ke++, Q.test(e.charAt(ye)) ? (t = e.charAt(ye), ye++) : (t = n, 0 === ke && je(X)), ke--, t === n && (n, 0 === ke && je($)), t
}
function qe() {
var t, r, i;
for (ke++, t = ye, r = [], i = He(); i !== n;) r.push(i), i = He();
return t = r !== n ? e.substring(t, ye) : r, ke--, t === n && (r = n, 0 === ke && je(ee)), t
}
function Ze() {
var t, r, i, a, o;
return ke++, t = ye, 45 === e.charCodeAt(ye) ? (r = "-", ye++) : (r = n, 0 === ke && je(re)), r === n && (r = null), r !== n && (i = et()) !== n ? (ve = t, a = r, t = r = (o = i) ? a ? -o : o : 0) : (ye = t, t = n), ke--, t === n && (r = n, 0 === ke && je(te)), t
}
function Je() {
var t, r;
return ke++, t = ye, e.substr(ye, 2) === ie ? (r = ie, ye += 2) : (r = n, 0 === ke && je(ae)), r !== n && (ve = t, r = "'"), ke--, (t = r) === n && (r = n, 0 === ke && je(ne)), t
}
function $e() {
var t, r, i, a, o, s;
if (t = ye, 39 === e.charCodeAt(ye) ? (r = O, ye++) : (r = n, 0 === ke && je(L)), r !== n)
if (i = function() {
var t, r, i, a;
t = ye, r = ye, e.length > ye ? (i = e.charAt(ye), ye++) : (i = n, 0 === ke && je(f));
i !== n ? (ve = ye, (a = (a = "{" === (o = i) || "}" === o || nt() && "#" === o) ? void 0 : n) !== n ? r = i = [i, a] : (ye = r, r = n)) : (ye = r, r = n);
var o;
t = r !== n ? e.substring(t, ye) : r;
return t
}(), i !== n) {
for (a = ye, o = [], e.substr(ye, 2) === ie ? (s = ie, ye += 2) : (s = n, 0 === ke && je(ae)), s === n && (D.test(e.charAt(ye)) ? (s = e.charAt(ye), ye++) : (s = n, 0 === ke && je(E))); s !== n;) o.push(s), e.substr(ye, 2) === ie ? (s = ie, ye += 2) : (s = n, 0 === ke && je(ae)), s === n && (D.test(e.charAt(ye)) ? (s = e.charAt(ye), ye++) : (s = n, 0 === ke && je(E)));
(a = o !== n ? e.substring(a, ye) : o) !== n ? (39 === e.charCodeAt(ye) ? (o = O, ye++) : (o = n, 0 === ke && je(L)), o === n && (o = null), o !== n ? (ve = t, t = r = i + a.replace("''", "'")) : (ye = t, t = n)) : (ye = t, t = n)
} else ye = t, t = n;
else ye = t, t = n;
return t
}
function Qe() {
var t, r, i, a;
return t = ye, r = ye, e.length > ye ? (i = e.charAt(ye), ye++) : (i = n, 0 === ke && je(f)), i !== n ? (ve = ye, (a = (a = oe(i)) ? void 0 : n) !== n ? r = i = [i, a] : (ye = r, r = n)) : (ye = r, r = n), r === n && (10 === e.charCodeAt(ye) ? (r = "\n", ye++) : (r = n, 0 === ke && je(se))), t = r !== n ? e.substring(t, ye) : r
}
function Xe() {
var t, r;
return ke++, t = ye, (r = et()) === n && (r = tt()), t = r !== n ? e.substring(t, ye) : r, ke--, t === n && (r = n, 0 === ke && je(ce)), t
}
function et() {
var t, r, i, a, o;
if (ke++, t = ye, 48 === e.charCodeAt(ye) ? (r = "0", ye++) : (r = n, 0 === ke && je(ue)), r !== n && (ve = t, r = 0), (t = r) === n) {
if (t = ye, r = ye, de.test(e.charAt(ye)) ? (i = e.charAt(ye), ye++) : (i = n, 0 === ke && je(pe)), i !== n) {
for (a = [], he.test(e.charAt(ye)) ? (o = e.charAt(ye), ye++) : (o = n, 0 === ke && je(ge)); o !== n;) a.push(o), he.test(e.charAt(ye)) ? (o = e.charAt(ye), ye++) : (o = n, 0 === ke && je(ge));
a !== n ? r = i = [i, a] : (ye = r, r = n)
} else ye = r, r = n;
r !== n && (ve = t, r = parseInt(r.join(""), 10)), t = r
}
return ke--, t === n && (r = n, 0 === ke && je(le)), t
}
function tt() {
var t, r, i, a, o;
if (ke++, t = ye, r = [], i = ye, a = ye, ke++, (o = He()) === n && (o = Ye()), ke--, o === n ? a = void 0 : (ye = a, a = n), a !== n ? (e.length > ye ? (o = e.charAt(ye), ye++) : (o = n, 0 === ke && je(f)), o !== n ? i = a = [a, o] : (ye = i, i = n)) : (ye = i, i = n), i !== n)
for (; i !== n;) r.push(i), i = ye, a = ye, ke++, (o = He()) === n && (o = Ye()), ke--, o === n ? a = void 0 : (ye = a, a = n), a !== n ? (e.length > ye ? (o = e.charAt(ye), ye++) : (o = n, 0 === ke && je(f)), o !== n ? i = a = [a, o] : (ye = i, i = n)) : (ye = i, i = n);
else r = n;
return t = r !== n ? e.substring(t, ye) : r, ke--, t === n && (r = n, 0 === ke && je(fe)), t
}
var rt = ["root"];
function nt() {
return "plural" === rt[rt.length - 1]
}
function it() {
return t && t.captureLocation ? {
location: Se()
} : {}
}
if ((r = a()) !== n && ye === e.length) return r;
throw r !== n && ye < e.length && je({
type: "end"
}), _e(we, be < e.length ? e.charAt(be) : null, be < e.length ? De(be, be + 1) : De(be, be))
},
qe = function() {
for (var e = 0, t = 0, r = arguments.length; t < r; t++) e += arguments[t].length;
var n = Array(e),
i = 0;
for (t = 0; t < r; t++)
for (var a = arguments[t], o = 0, s = a.length; o < s; o++, i++) n[i] = a[o];
return n
},
Ze = /(^|[^\\])#/g;
function Je(e) {
e.forEach((function(e) {
(Be(e) || Ve(e)) && Object.keys(e.options).forEach((function(t) {
for (var r, n = e.options[t], i = -1, a = void 0, o = 0; o < n.value.length; o++) {
var s = n.value[o];
if (Te(s) && Ze.test(s.value)) {
i = o, a = s;
break
}
}
if (a) {
var c = a.value.replace(Ze, "$1{" + e.value + ", number}"),
l = Ye(c);
(r = n.value).splice.apply(r, qe([i, 1], l))
}
Je(n.value)
}))
}))
}
function $e(e, t) {
var r = Ye(e, t);
return t && !1 === t.normalizeHashtagInPlural || Je(r), r
}
var Qe = function() {
for (var e = 0, t = 0, r = arguments.length; t < r; t++) e += arguments[t].length;
var n = Array(e),
i = 0;
for (t = 0; t < r; t++)
for (var a = arguments[t], o = 0, s = a.length; o < s; o++, i++) n[i] = a[o];
return n
};
function Xe(e) {
return JSON.stringify(e.map((function(e) {
return e && "object" == typeof e ? (t = e, Object.keys(t).sort().map((function(e) {
var r;
return (r = {})[e] = t[e], r
}))) : e;
var t
})))
}
var et = function(e, t) {
return void 0 === t && (t = {}),
function() {
for (var r, n = [], i = 0; i < arguments.length; i++) n[i] = arguments[i];
var a = Xe(n),
o = a && t[a];
return o || (o = new((r = e).bind.apply(r, Qe([void 0], n))), a && (t[a] = o)), o
}
},
tt = function() {
return tt = Object.assign || function(e) {
for (var t, r = 1, n = arguments.length; r < n; r++)
for (var i in t = arguments[r]) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
return e
}, tt.apply(this, arguments)
},
rt = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
function nt(e) {
var t = {};
return e.replace(rt, (function(e) {
var r = e.length;
switch (e[0]) {
case "G":
t.era = 4 === r ? "long" : 5 === r ? "narrow" : "short";
break;
case "y":
t.year = 2 === r ? "2-digit" : "numeric";
break;
case "Y":
case "u":
case "U":
case "r":
throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");
case "q":
case "Q":
throw new RangeError("`q/Q` (quarter) patterns are not supported");
case "M":
case "L":
t.month = ["numeric", "2-digit", "short", "long", "narrow"][r - 1];
break;
case "w":
case "W":
throw new RangeError("`w/W` (week) patterns are not supported");
case "d":
t.day = ["numeric", "2-digit"][r - 1];
break;
case "D":
case "F":
case "g":
throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");
case "E":
t.weekday = 4 === r ? "short" : 5 === r ? "narrow" : "short";
break;
case "e":
if (r < 4) throw new RangeError("`e..eee` (weekday) patterns are not supported");
t.weekday = ["short", "long", "narrow", "short"][r - 4];
break;
case "c":
if (r < 4) throw new RangeError("`c..ccc` (weekday) patterns are not supported");
t.weekday = ["short", "long", "narrow", "short"][r - 4];
break;
case "a":
t.hour12 = !0;
break;
case "b":
case "B":
throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");
case "h":
t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][r - 1];
break;
case "H":
t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][r - 1];
break;
case "K":
t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][r - 1];
break;
case "k":
t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][r - 1];
break;
case "j":
case "J":
case "C":
throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");
case "m":
t.minute = ["numeric", "2-digit"][r - 1];
break;
case "s":
t.second = ["numeric", "2-digit"][r - 1];
break;
case "S":
case "A":
throw new RangeError("`S/A` (second) pattenrs are not supported, use `s` instead");
case "z":
t.timeZoneName = r < 4 ? "short" : "long";
break;
case "Z":
case "O":
case "v":
case "V":
case "X":
case "x":
throw new RangeError("`Z/O/v/V/X/x` (timeZone) pattenrs are not supported, use `z` instead")
}
return ""
})), t
}
var it = /^\.(?:(0+)(\+|#+)?)?$/g,
at = /^(@+)?(\+|#+)?$/g;
function ot(e) {
var t = {};
return e.replace(at, (function(e, r, n) {
return "string" != typeof n ? (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length) : "+" === n ? t.minimumSignificantDigits = r.length : "#" === r[0] ? t.maximumSignificantDigits = r.length : (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length + ("string" == typeof n ? n.length : 0)), ""
})), t
}
function st(e) {
switch (e) {
case "sign-auto":
return {
signDisplay: "auto"
};
case "sign-accounting":
return {
currencySign: "accounting"
};
case "sign-always":
return {
signDisplay: "always"
};
case "sign-accounting-always":
return {
signDisplay: "always",
currencySign: "accounting"
};
case "sign-except-zero":
return {
signDisplay: "exceptZero"
};
case "sign-accounting-except-zero":
return {
signDisplay: "exceptZero",
currencySign: "accounting"
};
case "sign-never":
return {
signDisplay: "never"
}
}
}
function ct(e) {
var t = st(e);
return t || {}
}
function lt(e) {
for (var t = {}, r = 0, n = e; r < n.length; r++) {
var i = n[r];
switch (i.stem) {
case "percent":
t.style = "percent";
continue;
case "currency":
t.style = "currency", t.currency = i.options[0];
continue;
case "group-off":
t.useGrouping = !1;
continue;
case "precision-integer":
t.maximumFractionDigits = 0;
continue;
case "measure-unit":
t.style = "unit", t.unit = i.options[0].replace(/^(.*?)-/, "");
continue;
case "compact-short":
t.notation = "compact", t.compactDisplay = "short";
continue;
case "compact-long":
t.notation = "compact", t.compactDisplay = "long";
continue;
case "scientific":
t = tt(tt(tt({}, t), {
notation: "scientific"
}), i.options.reduce((function(e, t) {
return tt(tt({}, e), ct(t))
}), {}));
continue;
case "engineering":
t = tt(tt(tt({}, t), {
notation: "engineering"
}), i.options.reduce((function(e, t) {
return tt(tt({}, e), ct(t))
}), {}));
continue;
case "notation-simple":
t.notation = "standard";
continue;
case "unit-width-narrow":
t.currencyDisplay = "narrowSymbol", t.unitDisplay = "narrow";
continue;
case "unit-width-short":
t.currencyDisplay = "code", t.unitDisplay = "short";
continue;
case "unit-width-full-name":
t.currencyDisplay = "name", t.unitDisplay = "long";
continue;
case "unit-width-iso-code":
t.currencyDisplay = "symbol";
continue
}
if (it.test(i.stem)) {
if (i.options.length > 1) throw new RangeError("Fraction-precision stems only accept a single optional option");
i.stem.replace(it, (function(e, r, n) {
return "." === e ? t.maximumFractionDigits = 0 : "+" === n ? t.minimumFractionDigits = n.length : "#" === r[0] ? t.maximumFractionDigits = r.length : (t.minimumFractionDigits = r.length, t.maximumFractionDigits = r.length + ("string" == typeof n ? n.length : 0)), ""
})), i.options.length && (t = tt(tt({}, t), ot(i.options[0])))
} else if (at.test(i.stem)) t = tt(tt({}, t), ot(i.stem));
else {
var a = st(i.stem);
a && (t = tt(tt({}, t), a))
}
}
return t
}
var ut, dt = function() {
var e = function(t, r) {
return e = Object.setPrototypeOf || {
__proto__: []
}
instanceof Array && function(e, t) {
e.__proto__ = t
} || function(e, t) {
for (var r in t) t.hasOwnProperty(r) && (e[r] = t[r])
}, e(t, r)
};
return function(t, r) {
function n() {
this.constructor = t
}
e(t, r), t.prototype = null === r ? Object.create(r) : (n.prototype = r.prototype, new n)
}
}(),
pt = function() {
for (var e = 0, t = 0, r = arguments.length; t < r; t++) e += arguments[t].length;
var n = Array(e),
i = 0;
for (t = 0; t < r; t++)
for (var a = arguments[t], o = 0, s = a.length; o < s; o++, i++) n[i] = a[o];
return n
},
ht = function(e) {
function t(t, r) {
var n = e.call(this, t) || this;
return n.variableId = r, n
}
return dt(t, e), t
}(Error);
function gt(e, t, r, n, i, a, o) {
if (1 === e.length && Te(e[0])) return [{
type: 0,
value: e[0].value
}];
for (var s, c = [], l = 0, u = e; l < u.length; l++) {
var d = u[l];
if (Te(d)) c.push({
type: 0,
value: d.value
});
else if (ze(d)) "number" == typeof a && c.push({
type: 0,
value: r.getNumberFormat(t).format(a)
});
else {
var p = d.value;
if (!i || !(p in i)) throw new ht('The intl string context variable "' + p + '" was not provided to the string "' + o + '"');
var h = i[p];
if (Ne(d)) h && "string" != typeof h && "number" != typeof h || (h = "string" == typeof h || "number" == typeof h ? String(h) : ""), c.push({
type: 1,
value: h
});
else if (Me(d)) {
var g = "string" == typeof d.style ? n.date[d.style] : void 0;
c.push({
type: 0,
value: r.getDateTimeFormat(t, g).format(h)
})
} else if (Ie(d)) {
g = "string" == typeof d.style ? n.time[d.style] : We(d.style) ? nt(d.style.pattern) : void 0;
c.push({
type: 0,
value: r.getDateTimeFormat(t, g).format(h)
})
} else if (Fe(d)) {
g = "string" == typeof d.style ? n.number[d.style] : Ue(d.style) ? lt(d.style.tokens) : void 0;
c.push({
type: 0,
value: r.getNumberFormat(t, g).format(h)
})
} else if (Ve(d)) {
if (!(f = d.options[h] || d.options.other)) throw new RangeError('Invalid values for "' + d.value + '": "' + h + '". Options are "' + Object.keys(d.options).join('", "') + '"');
c.push.apply(c, gt(f.value, t, r, n, i))
} else if (Be(d)) {
var f;
if (!(f = d.options["=" + h])) {
if (!Intl.PluralRules) throw new ht('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n');
var y = r.getPluralRules(t, {
type: d.pluralType
}).select(h - (d.offset || 0));
f = d.options[y] || d.options.other
}
if (!f) throw new RangeError('Invalid values for "' + d.value + '": "' + h + '". Options are "' + Object.keys(d.options).join('", "') + '"');
c.push.apply(c, gt(f.value, t, r, n, i, h - (d.offset || 0)))
} else;
}
}
return (s = c).length < 2 ? s : s.reduce((function(e, t) {
var r = e[e.length - 1];
return r && 0 === r.type && 0 === t.type ? r.value += t.value : e.push(t), e
}), [])
}
var ft = /@@(\d+_\d+)@@/g,
yt = 0;
function vt(e, t) {
return e.split(ft).filter(Boolean).map((function(e) {
return null != t[e] ? t[e] : e
})).reduce((function(e, t) {
return e.length && "string" == typeof t && "string" == typeof e[e.length - 1] ? e[e.length - 1] += t : e.push(t), e
}), [])
}
var mt = /(<([0-9a-zA-Z-_]*?)>(.*?)<\/([0-9a-zA-Z-_]*?)>)|(<[0-9a-zA-Z-_]*?\/>)/,
bt = Date.now() + "@@",
wt = ["area", "base", "br", "col", "embed", "hr", "img", "input", "link", "meta", "param", "source", "track", "wbr"];
function kt(e, t, r) {
var n = e.tagName,
i = e.outerHTML,
a = e.textContent,
o = e.childNodes;
if (!n) return vt(a || "", t);
n = n.toLowerCase();
var s = ~wt.indexOf(n),
c = r[n];
if (c && s) throw new ht(n + " is a self-closing tag and can not be used, please use another tag name.");
if (!o.length) return [i];
var l = Array.prototype.slice.call(o).reduce((function(e, n) {
return e.concat(kt(n, t, r))
}), []);
return c ? "function" == typeof c ? [c.apply(void 0, l)] : [c] : pt(["<" + n + ">"], l, ["</" + n + ">"])
}
function xt(e, t, r, n, i, a) {
var o = gt(e, t, r, n, i, void 0, a),
s = {},
c = o.reduce((function(e, t) {
if (0 === t.type) return e + t.value;
var r = Date.now() + "_" + ++yt;
return s[r] = t.value, e + "@@" + r + "@@"
}), "");
if (!mt.test(c)) return vt(c, s);
if (!i) throw new ht("Message has placeholders but no values was given");
if ("undefined" == typeof DOMParser) throw new ht("Cannot format XML message without DOMParser");
ut || (ut = new DOMParser);
var l = ut.parseFromString('<formatted-message id="' + bt + '">' + c + "</formatted-message>", "text/html").getElementById(bt);
if (!l) throw new ht("Malformed HTML message " + c);
var u = Object.keys(i).filter((function(e) {
return !!l.getElementsByTagName(e).length
}));
if (!u.length) return vt(c, s);
var d = u.filter((function(e) {
return e !== e.toLowerCase()
}));
if (d.length) throw new ht("HTML tag must be lowercased but the following tags are not: " + d.join(", "));
return Array.prototype.slice.call(l.childNodes).reduce((function(e, t) {
return e.concat(kt(t, s, i))
}), [])
}
var St = function() {
return St = Object.assign || function(e) {
for (var t, r = 1, n = arguments.length; r < n; r++)
for (var i in t = arguments[r]) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
return e
}, St.apply(this, arguments)
};
function Ct(e, t) {
return t ? Object.keys(e).reduce((function(r, n) {
var i, a;
return r[n] = (i = e[n], (a = t[n]) ? St(St(St({}, i || {}), a || {}), Object.keys(i).reduce((function(e, t) {
return e[t] = St(St({}, i[t]), a[t] || {}), e
}), {})) : i), r
}), St({}, e)) : e
}
var Pt = function() {
function e(t, r, n, i) {
var a, o = this;
if (void 0 === r && (r = e.defaultLocale), this.formatterCache = {
number: {},
dateTime: {},
pluralRules: {}
}, this.format = function(e) {
return function(e, t, r, n, i, a) {
var o = gt(e, t, r, n, i, void 0, a);
return 1 === o.length ? o[0].value : o.reduce((function(e, t) {
return e + t.value
}), "")
}(o.ast, o.locales, o.formatters, o.formats, e, o.message)
}, this.formatToParts = function(e) {
return gt(o.ast, o.locales, o.formatters, o.formats, e, void 0, o.message)
}, this.formatHTMLMessage = function(e) {
return xt(o.ast, o.locales, o.formatters, o.formats, e, o.message)
}, this.resolvedOptions = function() {
return {
locale: Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
}
}, this.getAst = function() {
return o.ast
}, "string" == typeof t) {
if (this.message = t, !e.__parse) throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
this.ast = e.__parse(t, {
normalizeHashtagInPlural: !1
})
} else this.ast = t;
if (!Array.isArray(this.ast)) throw new TypeError("A message must be provided as a String or AST.");
this.formats = Ct(e.formats, n), this.locales = r, this.formatters = i && i.formatters || (void 0 === (a = this.formatterCache) && (a = {
number: {},
dateTime: {},
pluralRules: {}
}), {
getNumberFormat: et(Intl.NumberFormat, a.number),
getDateTimeFormat: et(Intl.DateTimeFormat, a.dateTime),
getPluralRules: et(Intl.PluralRules, a.pluralRules)
})
}
return e.defaultLocale = (new Intl.NumberFormat).resolvedOptions().locale, e.__parse = $e, e.formats = {
number: {
currency: {
style: "currency"
},
percent: {
style: "percent"
}
},
date: {
short: {
month: "numeric",
day: "numeric",
year: "2-digit"
},
medium: {
month: "short",
day: "numeric",
year: "numeric"
},
long: {
month: "long",
day: "numeric",
year: "numeric"
},
full: {
weekday: "long",
month: "long",
day: "numeric",
year: "numeric"
}
},
time: {
short: {
hour: "numeric",
minute: "numeric"
},
medium: {
hour: "numeric",
minute: "numeric",
second: "numeric"
},
long: {
hour: "numeric",
minute: "numeric",
second: "numeric",
timeZoneName: "short"
},
full: {
hour: "numeric",
minute: "numeric",
second: "numeric",
timeZoneName: "short"
}
}
}, e
}();
function At(e, t) {
var r = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var n = Object.getOwnPropertySymbols(e);
t && (n = n.filter((function(t) {
return Object.getOwnPropertyDescriptor(e, t).enumerable
}))), r.push.apply(r, n)
}
return r
}
function Ot(e) {
for (var t = 1; t < arguments.length; t++) {
var r = null != arguments[t] ? arguments[t] : {};
t % 2 ? At(Object(r), !0).forEach((function(t) {
Lt(e, t, r[t])
})) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : At(Object(r)).forEach((function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(r, t))
}))
}
return e
}
function Lt(e, t, r) {
return t in e ? Object.defineProperty(e, t, {
value: r,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = r, e
}
var Dt = function() {
function e(e) {
this.type = "i18nFormat", this.mem = {}, this.init(null, e)
}
var t = e.prototype;
return t.init = function(e, t) {
var r = this,
n = e && e.options && e.options.i18nFormat || {};
if (this.options = function(e) {
return _e.call(Re.call(arguments, 1), (function(t) {
if (t)
for (var r in t) void 0 === e[r] && (e[r] = t[r])
})), e
}(n, t, this.options || {}, {
memoize: !0,
memoizeFallback: !1,
bindI18n: "",
bindI18nStore: "",
parseErrorHandler: function(e, t, r) {
return r
}
}), this.formats = this.options.formats, e) {
var i = this.options,
a = i.bindI18n,
o = i.bindI18nStore,
s = i.memoize;
e.IntlMessageFormat = Pt, e.ICU = this, s && (a && e.on(a, (function() {
return r.clearCache()
})), o && e.store.on(o, (function() {
return r.clearCache()
})))
}
this.options.localeData && ("[object Array]" === Object.prototype.toString.apply(this.options.localeData) ? this.options.localeData.forEach((function(e) {
return r.addLocaleData(e)
})) : this.addLocaleData(this.options.localeData))
}, t.addLocaleData = function(e) {
("[object Array]" === Object.prototype.toString.apply(e) ? e : [e]).forEach((function(e) {
e && e.locale && Pt.__addLocaleData(e)
}))
}, t.addUserDefinedFormats = function(e) {
this.formats = this.formats ? Ot(Ot({}, this.formats), e) : e
}, t.parse = function(e, t, r, n, i, a) {
var o, s, c, l, u = a && a.resolved && a.resolved.res,
d = this.options.memoize && r + "." + n + "." + i.replace(/\./g, "###");
this.options.memoize && (o = function(e, t) {
var r = De(e, t),
n = r.obj,
i = r.k;
if (n) return n[i]
}(this.mem, d));
try {
return o || (o = new Pt(e, r, this.formats), this.options.memoize && (this.options.memoizeFallback || !a || u) && (s = this.mem, c = o, (l = De(s, d, Object)).obj[l.k] = c)), o.format(t)
} catch (r) {
return this.options.parseErrorHandler(r, i, e, t)
}
}, t.addLookupKeys = function(e) {
return e
}, t.clearCache = function() {
this.mem = {}
}, e
}();
Dt.type = "i18nFormat";
var Et = Dt;
var jt = ["icuOptions", "parseErrorHandler", "polyfillRelativeTime"];
function _t(e, t) {
var r = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var n = Object.getOwnPropertySymbols(e);
t && (n = n.filter((function(t) {
return Object.getOwnPropertyDescriptor(e, t).enumerable
}))), r.push.apply(r, n)
}
return r
}
function Rt(e) {
for (var t = 1; t < arguments.length; t++) {
var r = null != arguments[t] ? arguments[t] : {};
t % 2 ? _t(Object(r), !0).forEach((function(t) {
Tt(e, t, r[t])
})) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : _t(Object(r)).forEach((function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(r, t))
}))
}
return e
}
function Tt(e, t, r) {
return t in e ? Object.defineProperty(e, t, {
value: r,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = r, e
}
var Nt = function(e) {
var t = e.icuOptions,
r = void 0 === t ? {} : t,
n = e.parseErrorHandler,
a = void 0 === n ? void 0 : n,
o = e.polyfillRelativeTime,
s = void 0 !== o && o,
c = function(e, t) {
if (null == e) return {};
var r, n, i = {},
a = Object.keys(e);
for (n = 0; n < a.length; n++) r = a[n], t.indexOf(r) >= 0 || (i[r] = e[r]);
return i
}(e, jt),
l = new Et(Rt(Rt({}, r), {}, {
bindI18n: c.bindI18n,
parseErrorHandler: a
})),
u = function(e) {
var t = [];
if (e && void 0 === Intl.RelativeTimeFormat && t.push(i.e(894).then(i.t.bind(i, 9440, 23))), void 0 === Intl.PluralRules && t.push(i.e(200).then(i.t.bind(i, 6605, 23))), t.length > 0) {
var r = Promise.all(t),
n = {
isLoading: !0,
promise: r
};
return r.then((function() {
n.isLoading = !1
})).catch((function() {
n.isLoading = !1
})), n
}
return {
isLoading: !1
}
}(s);
return function(e, t) {
var r = e.locale,
n = e.asyncMessagesLoader,
i = e.messages,
a = e.useSuspense,
o = void 0 !== a && a,
s = e.wait,
c = e.disableAutoInit,
l = void 0 !== c && c,
u = e.bindI18n,
d = void 0 === t ? {
polyfill: {
isLoading: !1
}
} : t,
p = d.icu,
h = d.polyfill;
void 0 === n && void 0 === i && console.error("[@wix/wix-i18n-config]seems like you forgot to provide messages loading strategy you must provide one of: asyncMessagesLoader or messages");
var g, f = {
lng: r,
fallbackLng: "en",
keySeparator: !1,
react: {
useSuspense: o,
bindI18n: u,
wait: s
},
_polyfill: h
},
y = Le.createInstance(l ? f : void 0);
return p && y.use(p), n && y.use({
type: "backend",
read: function(e, t, r) {
return n(e).then((function(e) {
return r(null, e)
})).catch((function(e) {
return r(e, null)
}))
}
}), i && (f.resources = ((g = {})[r] = {
translation: i
}, g)), l || y.init(f), y
}(c, {
icu: l,
polyfill: u
})
};
const Ft = e => function(t) {
void 0 === t && (t = {});
const r = "function" == typeof e.factory ? e.factory(t) : e;
return function(e, t) {
return Object.defineProperty(t, "updateDefaults", {
value: function(t) {
return e.updateDefaults(t)
}
}), t
}(r, r.logger())
},
Mt = Ft;
var It = {};
var Vt = {
DSN: "https://89a16a5a463b4b8cabf8b8fd697303da@sentry.wixpress.com/2885",
id: "89a16a5a463b4b8cabf8b8fd697303da",
projectName: "wix-video-widget",
teamName: "media",
errorMonitor: !0
},
Bt = {
icuEnabled: !0,
defaultTranslationsPath: "/home/builduser/work/a166910b96dca70f/wix-vod-widget/src/assets/locales/messages_en.json",
availableLanguages: ["ar", "bg", "ca", "cs", "da", "de", "el", "en", "es", "fi", "fr", "he", "hi", "hu", "id", "it", "ja", "ko", "lt", "ms", "nl", "no", "pl", "pt", "ro", "ru", "sk", "sl", "sv", "th", "tl", "tr", "uk", "vi", "zh", "zu"]
},
zt = {
"actions.purchased": "You have access to this video",
"actions.rented": "Rented until {date}",
"shared.add-reminder": "Add reminder",
"shared.cancel": "Cancel",
"shared.change": "Change",
"shared.channel-feed-types.youtube-feed.channel": "channel",
"shared.channel-feed-types.youtube-feed.playlist": "playlist",
"shared.channel-info": "Channel info",
"shared.channel-types.channel": "Channel",
"shared.channel-types.youtube-feed": "YouTube Feed",
"shared.channels": "Channels",
"shared.content-ratings.all": "All audiences",
"shared.content-ratings.mature": "Mature content",
"shared.continue": "Continue",
"shared.crew-category.academic": "Academic",
"shared.crew-category.animation": "Animation",
"shared.crew-category.art": "Art",
"shared.crew-category.camera": "Camera",
"shared.crew-category.electrics": "Electrics",
"shared.crew-category.grip": "Grip",
"shared.crew-category.popular": "Popular",
"shared.crew-category.post-production": "Post Production",
"shared.crew-category.print-traffic": "Print Traffic",
"shared.crew-category.production": "Production",
"shared.crew-category.representation": "Representation",
"shared.crew-category.sound-and-video": "Sound and video",
"shared.crew-category.specialized": "Specialized",
"shared.crew-category.writing": "Writing",
"shared.crew.2nd-assistant-director": "2nd Assistant Director",
"shared.crew.2nd-unit-dir-of-photography": "2nd Unit Dir of Photography",
"shared.crew.academic-advisor": "Academic Advisor",
"shared.crew.adaptation": "Adaptation",
"shared.crew.additional-grip": "Additional Grip",
"shared.crew.additional-photography": "Additional Photography",
"shared.crew.agent": "Agent",
"shared.crew.animal-trainer": "Animal Trainer",
"shared.crew.animator": "Animator",
"shared.crew.art-director": "Art Director",
"shared.crew.assistant-art-director": "Assistant Art Director",
"shared.crew.assistant-camera": "Assistant Camera",
"shared.crew.assistant-director": "Assistant Director",
"shared.crew.assistant-editor": "Assistant Editor",
"shared.crew.associate-producer": "Associate Producer",
"shared.crew.author-of-adapted-material": "Author of Adapted Material",
"shared.crew.best-boy": "Best Boy",
"shared.crew.boom-operator": "Boom Operator",
"shared.crew.cable-person": "Cable Person",
"shared.crew.camera-operator": "Camera Operator",
"shared.crew.choreographer": "Choreographer",
"shared.crew.cinematographer-dp": "Cinematographer/DP",
"shared.crew.co-director": "Co-Director",
"shared.crew.co-producer": "Co-Producer",
"shared.crew.co-writer": "Co-Writer",
"shared.crew.collaborating-director": "Collaborating Director",
"shared.crew.costume-designer": "Costume Designer",
"shared.crew.costumer": "Costumer",
"shared.crew.digital-effects": "Digital Effects",
"shared.crew.director": "Director",
"shared.crew.dolly-grip": "Dolly Grip",
"shared.crew.editor": "Editor",
"shared.crew.executive-producer": "Executive Producer",
"shared.crew.gaffer": "Gaffer",
"shared.crew.grip": "Grip",
"shared.crew.hairstylist": "Hairstylist",
"shared.crew.key-grip": "Key Grip",
"shared.crew.lead-person": "Lead Person",
"shared.crew.location-manager": "Location Manager",
"shared.crew.makeup-artist": "Makeup Artist",
"shared.crew.makeup-effects": "Makeup Effects",
"shared.crew.manager": "Manager",
"shared.crew.original-music-composer": "Original Music/Composer",
"shared.crew.preview-return": "Preview Return",
"shared.crew.print-return": "Print Return",
"shared.crew.print-shipper": "Print Shipper",
"shared.crew.producer": "Producer",
"shared.crew.production-assistant": "Production Assistant",
"shared.crew.production-coordinator": "Production Coordinator",
"shared.crew.production-designer": "Production Designer",
"shared.crew.production-manager": "Production Manager",
"shared.crew.property-master": "Property Master",
"shared.crew.publicist": "Publicist",
"shared.crew.school-administrator": "School Administrator",
"shared.crew.script-supervisor": "Script Supervisor",
"shared.crew.set-decorator": "Set Decorator",
"shared.crew.set-designer": "Set Designer",
"shared.crew.sound-editor": "Sound Editor",
"shared.crew.sound-mixer": "Sound Mixer",
"shared.crew.special-effects": "Special Effects",
"shared.crew.story": "Story",
"shared.crew.stunt-coordinator": "Stunt Coordinator",
"shared.crew.swing-gang": "Swing Gang",
"shared.crew.technical-advisor": "Technical Advisor",
"shared.crew.video-operator": "Video Operator",
"shared.crew.writer": "Writer",
"shared.currency.aed": "UAE Dirham",
"shared.currency.bgn": "Bulgarian Lev",
"shared.currency.afn": "Afghan Afghani",
"shared.currency.all": "Lek",
"shared.currency.amd": "Armenian Dram",
"shared.currency.ang": "Netherlands Antillan Guilder",
"shared.currency.aoa": "Kwanza",
"shared.currency.ars": "Argentine Peso",
"shared.currency.aud": "Australian Dollar",
"shared.currency.awg": "Aruban Guilder",
"shared.currency.azn": "Azerbaijan Manat",
"shared.currency.bam": "Convertible Mark",
"shared.currency.bbd": "Barbados Dollar",
"shared.currency.bdt": "Taka",
"shared.currency.bgl": "Bulgarian Lev",
"shared.currency.bhd": "Bahraini Dinar",
"shared.currency.bif": "Burundi Franc",
"shared.currency.bmd": "Bermudian Dollar",
"shared.currency.bnd": "Brunei Dollar",
"shared.currency.bob": "Boliviano",
"shared.currency.brl": "Brazilian Real",
"shared.currency.bsd": "Bahamian Dollar",
"shared.currency.btn": "Ngultrum",
"shared.currency.bwp": "Pula",
"shared.currency.byn": "Belarussian Ruble",
"shared.currency.bzd": "Belize Dollar",
"shared.currency.cad": "Canadian Dollar",
"shared.currency.cdf": "Franc Congolais",
"shared.currency.chf": "Swiss Franc",
"shared.currency.clp": "Chilean Peso",
"shared.currency.cny": "Yuan Renminbi",
"shared.currency.cop": "Colombian Peso",
"shared.currency.crc": "Costa Rican Colon",
"shared.currency.cve": "Cape Verde Escudo",
"shared.currency.czk": "Czech Republic Koruna",
"shared.currency.djf": "Djibouti Franc",
"shared.currency.dkk": "Danish Krone",
"shared.currency.dop": "Dominican Peso",
"shared.currency.dzd": "Algerian Dinar",
"shared.currency.egp": "Egyptian Pound",
"shared.currency.ern": "Nakfa",
"shared.currency.etb": "Ethiopian Birr",
"shared.currency.eur": "Euro",
"shared.currency.fjd": "Fiji Dollar",
"shared.currency.fkp": "Falkland Islands Pound",
"shared.currency.gbp": "British Pound",
"shared.currency.gel": "Lari",
"shared.currency.ghs": "Ghanaian Cedi",
"shared.currency.gip": "Gibraltar Pound",
"shared.currency.gmd": "Dalasi",
"shared.currency.gnf": "Guinea Franc",
"shared.currency.gtq": "Quetzal",
"shared.currency.gyd": "Guyana Dollar",
"shared.currency.hkd": "Hong Kong Dollar",
"shared.currency.hnl": "Lempira",
"shared.currency.hrk": "Croatian Kuna",
"shared.currency.htg": "Gourde",
"shared.currency.huf": "Hungarian Forint",
"shared.currency.idr": "Rupiah",
"shared.currency.ils": "Israeli New Sheqel",
"shared.currency.inr": "Indian Rupee",
"shared.currency.iqd": "Iraqi Dinar",
"shared.currency.isk": "Iceland Krona",
"shared.currency.jmd": "Jamaican Dollar",
"shared.currency.jod": "Jordanian Dinar",
"shared.currency.jpy": "Japanese Yen",
"shared.currency.kes": "Kenyan Shilling",
"shared.currency.kgs": "Som",
"shared.currency.khr": "Riel",
"shared.currency.kmf": "Comoro Franc",
"shared.currency.krw": "Korean Won",
"shared.currency.kwd": "Kuwaiti Dinar",
"shared.currency.kyd": "Cayman Islands Dollar",
"shared.currency.kzt": "Tenge",
"shared.currency.lak": "Kip",
"shared.currency.lbp": "Lebanese Pound",
"shared.currency.lkr": "Sri Lanka Rupee",
"shared.currency.lrd": "Liberian Dollar",
"shared.currency.lsl": "Loti",
"shared.currency.lyd": "Libyan dinar",
"shared.currency.mad": "Moroccan Dirham",
"shared.currency.mdl": "Moldovan Leu",
"shared.currency.mga": "Malagasy Ariary",
"shared.currency.mkd": "Macedonian Denar",
"shared.currency.mmk": "Kyat",
"shared.currency.mnt": "Tugrik (Tugrug)",
"shared.currency.mop": "Pataca",
"shared.currency.mro": "Ouguiya",
"shared.currency.mur": "Mauritius Rupee",
"shared.currency.mvr": "Rufiyaa",
"shared.currency.mwk": "Kwacha",
"shared.currency.mxn": "Mexican Peso",
"shared.currency.myr": "Malaysian Ringgit",
"shared.currency.mzn": "Mozambican Metical",
"shared.currency.nad": "Namibian Dollar",
"shared.currency.ngn": "Naira",
"shared.currency.nio": "Cordoba Oro",
"shared.currency.nok": "Norwegian Krone",
"shared.currency.npr": "Nepalese Rupee",
"shared.currency.nzd": "New Zealand Dollar",
"shared.currency.omr": "Rial Omani",
"shared.currency.pab": "Balboa",
"shared.currency.pen": "Nuevo Sol",
"shared.currency.pgk": "Kina",
"shared.currency.php": "Philippine Peso",
"shared.currency.pkr": "Pakistan Rupee",
"shared.currency.pln": "Polish Zloty",
"shared.currency.pyg": "Guarani",
"shared.currency.qar": "Qatari Rial",
"shared.currency.ron": "Romanian Lei",
"shared.currency.rsd": "Serbian Dinar",
"shared.currency.rub": "Russian Ruble",
"shared.currency.rwf": "Rwanda Franc",
"shared.currency.sar": "Saudi Riyal",
"shared.currency.sbd": "Solomon Islands Dollar",
"shared.currency.scr": "Seychelles Rupee",
"shared.currency.sek": "Swedish Krona",
"shared.currency.sgd": "Singapore Dollar",
"shared.currency.shp": "Saint Helena Pound",
"shared.currency.sll": "Leone",
"shared.currency.sos": "Somali Shilling",
"shared.currency.srd": "Surinamese Dollar",
"shared.currency.std": "Dobra",
"shared.currency.szl": "Lilangeni",
"shared.currency.thb": "Thai Baht",
"shared.currency.tjs": "Somoni",
"shared.currency.tmt": "Turkmenistani Manat",
"shared.currency.tnd": "Tunisian Dinar",
"shared.currency.top": "Pa'anga",
"shared.currency.try": "Yeni T\xfcrk Liras (YTL)",
"shared.currency.ttd": "Trinidad and Tobago Dollar",
"shared.currency.twd": "Taiwan New Dollar",
"shared.currency.tzs": "Tanzanian Shilling",
"shared.currency.uah": "Hryvnia",
"shared.currency.ugx": "Uganda Shilling",
"shared.currency.usd": "United States Dollar",
"shared.currency.uyu": "Peso Uruguayo",
"shared.currency.uzs": "Uzbekistan Sum",
"shared.currency.vef": "Bol\xedvar fuerte venezolano",
"shared.currency.vnd": "Dong",
"shared.currency.vuv": "Vatu",
"shared.currency.wst": "Tala",
"shared.currency.xaf": "CFA Franc BEAC",
"shared.currency.xcd": "East Carribbean Dollar",
"shared.currency.xof": "CFA Franc BCEAO",
"shared.currency.xpf": "CFP Franc",
"shared.currency.yer": "Yemeni Rial",
"shared.currency.zar": "Rand",
"shared.currency.zmw": "Zambian Kwacha",
"shared.delete": "Delete",
"shared.duplicate": "Duplicate",
"shared.edit": "Edit",
"shared.email-marketing": "Email Marketing",
"shared.featured-video": "Featured video",
"shared.feedback": "Feedback",
"shared.free": "Free",
"shared.genres.action": "Action",
"shared.genres.adventure": "Adventure",
"shared.genres.african": "African",
"shared.genres.african-american": "African American",
"shared.genres.animation": "Animation",
"shared.genres.asian": "Asian",
"shared.genres.asian-american": "Asian American",
"shared.genres.biography": "Biography",
"shared.genres.black": "Black",
"shared.genres.buddhist": "Buddhist",
"shared.genres.children": "Children",
"shared.genres.christian": "Christian",
"shared.genres.comedy": "Comedy",
"shared.genres.crime": "Crime",
"shared.genres.developing-nations": "Developing Nations",
"shared.genres.disability-culture": "Disability Culture",
"shared.genres.diy": "DIY",
"shared.genres.documentary": "Documentary",
"shared.genres.drama": "Drama",
"shared.genres.education": "Education",
"shared.genres.family": "Family",
"shared.genres.fantasy": "Fantasy",
"shared.genres.film-noir": "Film-Noir",
"shared.genres.game-show": "Game-Show",
"shared.genres.hispanic": "Hispanic",
"shared.genres.history": "History",
"shared.genres.horror": "Horror",
"shared.genres.instructional": "Instructional",
"shared.genres.islamic": "Islamic",
"shared.genres.jewish": "Jewish",
"shared.genres.latino": "Latino",
"shared.genres.lgbtq": "LGBTQ",
"shared.genres.mature-adult": "Mature/Adult",
"shared.genres.music": "Music",
"shared.genres.musical": "Musical",
"shared.genres.mystery": "Mystery",
"shared.genres.native-aboriginal-people": "Native/Aboriginal People",
"shared.genres.native-american": "Native American",
"shared.genres.news": "News",
"shared.genres.personal": "Personal",
"shared.genres.reality-tv": "Reality-TV",
"shared.genres.romance": "Romance",
"shared.genres.sci-fi": "Sci-Fi",
"shared.genres.senior-aging": "Senior/Aging",
"shared.genres.sport": "Sport",
"shared.genres.student": "Student",
"shared.genres.talk-show": "Talk-Show",
"shared.genres.thriller": "Thriller",
"shared.genres.war": "War",
"shared.genres.western": "Western",
"shared.genres.women": "Women",
"shared.genres.youth-teen": "Youth/Teen",
"shared.help": "Help",
"shared.help-and-feedback": "Help and Feedback",
"shared.insights": "Insights",
"shared.learn-more": "Learn More",
"shared.live": "Live",
"shared.live-video-library": "Live Stream",
"shared.member-only": "Free with sign up",
"shared.movies-count": "{moviesCount, plural, =0 {No movies} =1 {1 Movie} other {# Movies}}",
"shared.nVideos": "{videosCount} Videos",
"shared.navigation.next-page": "Next",
"shared.navigation.previous-page": "Prev",
"shared.new": "New",
"shared.no": "No",
"shared.noVideos": "No Videos",
"shared.oneVideo": "1 Video",
"shared.overview": "Overview",
"shared.pending-live": "Live Starts Soon",
"shared.period": "Available for",
"shared.preview": "Preview",
"shared.preview-site": "Preview Site",
"shared.price": "Price",
"shared.remove": "Remove",
"shared.here": "Here",
"shared.rent": "Rent",
"shared.done": "Done",
"shared.confirm": "Confirm",
"shared.rent-with-price": "{price} Rent",
"shared.required": "Required",
"shared.sale": "Buy",
"shared.sale-with-price": "{price} Buy",
"shared.save": "Save",
"shared.search": "Search",
"shared.settings": "Settings",
"shared.site-traffic": "Site Traffic",
"shared.stats": "Get Insights",
"shared.subscription": "Subscription",
"shared.subscription-with-price": "{price} Monthly subscription",
"shared.trailer-types.first-20-sec": "Show first 20 sec of video",
"shared.trailer-types.none": "Don\u2019t show",
"shared.trailer-types.trailer": "Upload a trailer",
"shared.trailer-types.url": "Add trailer URL",
"shared.upgrade": "Upgrade",
"shared.upgrade-now": "Upgrade Now",
"shared.uploading": "Uploading...",
"shared.video": "Video",
"shared.video-library": "Video Library",
"shared.video-sources.computer": "Computer",
"shared.video-sources.dropbox": "Dropbox",
"shared.video-sources.facebook": "Facebook",
"shared.video-sources.google-drive": "Google Drive",
"shared.video-sources.live": "Schedule Live",
"shared.video-sources.vimeo": "Vimeo",
"shared.video-sources.youtube": "YouTube",
"shared.video-types.education": "Education",
"shared.video-types.film": "Film",
"shared.video-types.made-for-video": "Made for Video",
"shared.video-types.movie-theatrical": "Movie (Theatrical)",
"shared.video-types.music": "Music",
"shared.video-types.other": "Other",
"shared.video-types.personal": "Personal",
"shared.video-types.portfolio": "Portfolio / Show Reel",
"shared.video-types.product-demo": "Product Demo",
"shared.video-types.television": "Television",
"shared.video-types.testimonials": "Testimonials",
"shared.video-types.tutorials": "Tutorials & How to's",
"shared.video-types.video-course": "Video Course",
"shared.video-types.vlog": "Vlog",
"shared.video-types.web-series": "Web Series",
"shared.videos": "Videos",
"shared.videosCount": "{videosCount, plural, =0 {No videos} =1 {1 Video} other {# Videos}}",
"shared.wix-video": "Wix Video",
"shared.yes": "Yes",
"widget.accessibility.close-all-cards": "Close all cards",
"widget.accessibility.reminder": "Add to Google Calendar",
"widget.accessibility.scheduled-label": "Scheduled live",
"widget.accessibility.scheduled-soon-label": "Live starts soon",
"widget.accessibility.starts-in": "Starts in",
"widget.action-button-labels.hide-comments-full": "Hide Comments",
"widget.action-button-labels.hide-comments-short": "Hide Comments",
"widget.action-button-labels.share-video-full": "Share Video",
"widget.action-button-labels.share-video-short": "Share",
"widget.action-button-labels.show-all-cards-full": "Related Links",
"widget.action-button-labels.show-all-cards-short": "Related Links",
"widget.action-button-labels.show-comments-full": "Show Comments",
"widget.action-button-labels.show-comments-short": "Show Comments",
"widget.action-button-labels.video-info-full": "Video Info",
"widget.action-button-labels.video-info-short": "Info",
"widget.overlay-buttons.all-videos": "All videos",
"widget.overlay-buttons.buy": "Buy {price}",
"widget.overlay-buttons.buy-from": "Buy from {price}",
"widget.overlay-buttons.buy-from-small": "From {price}",
"widget.overlay-buttons.coming-soon": "Coming Soon",
"widget.overlay-buttons.continue-watching": "Resume Video",
"widget.overlay-buttons.get-subscription": "Subscribe {price}/mo.",
"widget.overlay-buttons.get-subscription-small": "Subscribe",
"widget.overlay-buttons.next-video": "Next Video",
"widget.overlay-buttons.play-video": "Play Video",
"widget.overlay-buttons.rent": "Rent {price}",
"widget.overlay-buttons.start-watching": "Watch Now",
"widget.overlay-buttons.trailer": "Trailer",
"widget.overlay-buttons.watch-live": "Watch Live",
"widget.overlay-buttons.watch-preview": "Watch Preview",
"widget.overlay-buttons.watch-trailer": "Watch Trailer",
"wpm_error.unsupported_audio_codec": "This file is corrupted so it can't be uploaded. Try a different file. ",
"wpm_error.session_expired": "You're signed out of Wix. Please sign in and try again.",
"wpm_error.unsupported_video_codec": "This file is corrupted so it can't be uploaded. Try a different file. ",
"wpm_error.incorrect_file_info": "This file is corrupted so it can't be uploaded. Try a different file. ",
"wpm_error.invalid_file": "This file is corrupted so it can't be uploaded. Try a different file. ",
"wpm_error.invalid_file_video_stream_is_missing": "This file is corrupted so it can't be uploaded. Try a different file. ",
"wpm_error.missing_wix_session": "You're signed out of Wix. Please sign in and try again.",
"wpm_error.invalid_file_video_duration_is_missing": "This file is corrupted so it can't be uploaded. Try a different file. ",
"wpm_error.invalid_session": "You're signed out of Wix. Please sign in and try again.",
"wpm_error.zero_size_file": "This file is corrupted so it can't be uploaded. Try a different file. ",
"dashboard.channel-edit.channel-info.subscriptions.make-channel-free-modal.subtitle2": "This can\u2019t be undone.",
"dashboard.channel-edit.channel-info.subscriptions.to-pricing-plans-modal.description": "Want to cancel subscriptions and change to Pricing Plan?",
"dashboard.channel-edit.channel-info.subscriptions.to-pricing-plans-modal.radio-button-no": "No, I want to keep this channel's active subscriptions.",
"dashboard.channel-edit.channel-info.subscriptions.to-pricing-plans.title": "Cancel subscriptions to this channel?",
"dashboard.channel-edit.channel-info.subscriptions.to-pricing-plans-modal.cta": "Continue",
"dashboard.channel-edit.channel-info.subscriptions.to-pricing-plans-modal.radio-button-yes": "Yes, change to Pricing Plan and cancel active subscriptions.",
"dashboard.channel-edit.channel-info.subscriptions.to-pricing-plans-modal.subtitle": "Changing from Single Channel Subscription to Pricing Plan will cancel all active subscriptions to this channel.",
"dashboard.channel-edit.channel-info.channel-subscription.toast": "Channel Pricing is now set to Single Channel Subscription",
"dashboard.channel-edit.channel-info.channel-pricing-plan.toast": "Channel Pricing is now set to Pricing Plan",
"dashboard.channel-edit.channel-info.subscriptions.to-pricing-plans-modal.subtitle2": "This can\u2019t be undone.",
"dashboard.channel-edit.channel-info.channel-free.toast": "Channel Pricing is now set to Free",
"cashier.error.a11y.label": "Error message",
"cashier.error.default": "Something went wrong",
"cashier.error.payment": "Please contact us to complete your purchase. Thank you.",
"cashier.error.retry-button": "Reload",
"cashier.error.retry-text": "Reload to try again",
"cashier.errorMessages.no_payment_methods": "We're not able to accept online payments",
"lightbox.video-info.cast": "cast",
"lightbox.video-info.crew": "crew",
"mobile-overlay.channel.about.no-description": "This channel has no description",
"mobile-overlay.channel.all-categories": "All Categories",
"mobile-overlay.channel.infoTab": "Info",
"mobile-overlay.channel.input-label": "Select a category",
"mobile-overlay.channel.tagsTab": "Tags",
"mobile-overlay.channel.tagsTab.no-tags": "This channel has no tags",
"mobile-overlay.channel.videosTab": "Videos",
"mobile-overlay.page-header.back-button": "Back",
"mobile-overlay.search.clear-label": "Clear search",
"mobile-overlay.search.input-label": "Search",
"mobile-overlay.search.placeholder": "Search...",
"mobile-overlay.search.submit-label": "Search",
"mobile-overlay.search.view-title": "Search",
"mobile-overlay.video-description.cast": "Cast",
"mobile-overlay.video-description.crew": "Crew",
"mobile-overlay.video-description.read-less": "Read Less",
"mobile-overlay.video-description.read-more": "Read More",
"mobile-overlay.video.description-title": "Video Description",
"mobile-overlay.video.metadata-title": "Video Metadata",
"mobile-overlay.video.more-on-channel-title": "More on this channel",
"mobile.video-list.publisher": "Published by {publisher}",
"player.info-overlay.cast": "cast",
"player.info-overlay.created-by": "By {author}",
"player.info-overlay.crew": "crew",
"share-overlay.embed.copy": "Copy",
"share-overlay.embed.custom": "Custom",
"share-overlay.embed.video.title": "Embed Video",
"share-overlay.social.copy-link": "Copy Link",
"share-overlay.social.embed-video": "Embed Video",
"share-overlay.social.link-copied": "Link Copied",
"share-overlay.social.share": "Share this video",
"share-overlay.social.share-channel": "Whole Channel",
"share-overlay.social.share-video": "This Video",
"share-overlay.social.title": "Share",
"social-button.copy": "Copy",
"social-button.facebook": "Facebook",
"social-button.link": "Link",
"social-button.pinterest": "Pinterest",
"social-button.tumblr": "Tumblr",
"social-button.twitter": "Twitter",
"social-share.network.pinterest": "{title} - {description}",
"social-share.network.tumblr": "{title} - {siteUrl}",
"social-share.network.twitter": 'Watch "{title}" on {siteUrl}',
"thumbnail.now-playing": "Now Playing",
"widget.a11y.grid.more-videos-available": "More videos available.",
"widget.a11y.grid.videos": "{videosCount} videos in channel.",
"widget.a11y.grid.videos-for-category": "{videosCount} videos for category {category}.",
"widget.a11y.video.duration": "Duration: {value}",
"widget.a11y.video.genre": "Genre: {name}",
"widget.a11y.video.published-by": "Published by {name}",
"widget.accessibility.action-cards.all-cards.next-page": "Previous Action Card",
"widget.accessibility.action-cards.all-cards.previous-page": "Next Action Card",
"widget.accessibility.action-cards.all-cards.slide-contents": "Slide with {itemsCount} Action Cards",
"widget.accessibility.action-cards.facebook-like-button": "Facebook Like Button",
"widget.accessibility.action-cards.twitter-follow-button": "Twitter Follow Button",
"widget.accessibility.action-cards.youtube-subscribe-button": "Youtube Subscribe Button",
"widget.accessibility.all-cards": "All cards",
"widget.accessibility.channel-videos": '"{channelTitle}" channel videos',
"widget.accessibility.channel-videos-page-n": '"{channelTitle}" channel videos - page {pageNumber}',
"widget.accessibility.channel-videos-widget": '"{channelTitle}" channel videos widget',
"widget.accessibility.close-account-info": "Close Account info",
"widget.accessibility.close-channel-info": "Close Channel info",
"widget.accessibility.close-embed-form": "Close embed form",
"widget.accessibility.close-expanded-view": "Close expanded view",
"widget.accessibility.close-purchase-info": "Close Purchase info",
"widget.accessibility.close-share": "Close Share",
"widget.accessibility.close-video-info": "Close Video info",
"widget.accessibility.close-video-list": "Close video list",
"widget.accessibility.close-videos-search": "Close videos search",
"widget.accessibility.custom-widget-size": "Custom widget size",
"widget.accessibility.duration": "Duration {durationStr}",
"widget.accessibility.expanded-view": "Expanded view",
"widget.accessibility.get-embed-code": "Get embed code",
"widget.accessibility.get-link": "Get a link",
"widget.accessibility.my-account": "My Account",
"widget.accessibility.next-video": "Next video",
"widget.accessibility.next-videos": "Next videos",
"widget.accessibility.prev-video": "Previous video",
"widget.accessibility.prev-videos": "Previous videos",
"widget.accessibility.purchase-info": "Purchase info",
"widget.accessibility.search-results-for": 'Search results for "{searchQuery}"',
"widget.accessibility.search-results-page-n-for": 'Search results for "{searchQuery}" - page {pageNumber}',
"widget.accessibility.search-videos": "Search videos",
"widget.accessibility.select-category": "Select a category",
"widget.accessibility.share": "Share",
"widget.accessibility.share-on": "Share on {network}",
"widget.accessibility.show-all-videos": "Show all videos",
"widget.accessibility.show-channel-info": "Show Channel info",
"widget.accessibility.show-more": "Show more",
"widget.accessibility.show-video-info": "Show Video info",
"widget.accessibility.subscribe-to-channel": "Subscribe to channel",
"widget.accessibility.video-chat": "Video comments",
"widget.accessibility.video-info": "Video info",
"widget.accessibility.widget-height": "Widget height {height}",
"widget.accessibility.widget-size": "Widget size {size}",
"widget.accessibility.widget-width": "Widget width {width}",
"widget.account.back": "Back",
"widget.account.back-to-sign-in": "Back to sign in",
"widget.account.email": "Email",
"widget.account.forgot-password": "Forgot Password",
"widget.account.forgot-password.got-it": "Got it!",
"widget.account.forgot-password.message1": "Fill in the email address you signed up with and we will email you a reset link.",
"widget.account.forgot-password.message2": "No worries, everything will be here when you return to complete you purchase.",
"widget.account.forgot-password.question": "Forgot password?",
"widget.account.forgot-password.submitted1": 'We\u2019ve emailed a link to reset your password to "{email}".',
"widget.account.forgot-password.submitted2": "We\u2019ll be snacking some popcorn until you are done.",
"widget.account.have-account": "Already have an account?",
"widget.account.logout": "Log out",
"widget.account.modal-close": "Close account info",
"widget.account.modal-title": "Account info",
"widget.account.not-have-account": "Don\u2019t have an account?",
"widget.account.not-your-account": "Not your account?",
"widget.account.password": "Password",
"widget.account.ready-action": "Proceed to Checkout",
"widget.account.reset-password": "Reset Password",
"widget.account.reset-password.button": "Reset password",
"widget.account.reset-password.complete": "You\u2019ve successfully reset your password!",
"widget.account.reset-password.continue-to-site": "Continue to site",
"widget.account.reset-password.enter-new-password": "Enter a new password",
"widget.account.reset-password.linkText": "To set your new password, please enter it in both fields below.",
"widget.account.reset-password.verify-password": "Verify password",
"widget.account.send-link": "Send me a link",
"widget.account.sign-in": "Sign in",
"widget.account.sign-in-to-complete.part-1": "Sign up to complete",
"widget.account.sign-in-to-complete.part-2": "your purchase",
"widget.account.sign-in-to-watch.part-1": "Sign up to watch this video.",
"widget.account.sign-in-to-watch.part-2": "It'll only take a sec.",
"widget.account.sign-up": "Sign up",
"widget.account.signed-as": "You are signed in as:",
"widget.account.signed-as-email": "You are signed in as: {email}",
"widget.categories.all-videos": "All Categories",
"widget.categories.no-videos-in-category": "No videos in category",
"widget.channel-actions.subscribe": "Subscribe {price}/month",
"widget.check-again-later": "Check again later.",
"widget.compact-view.components.action-bar.channel-info-tooltip": "Channel Info",
"widget.compact-view.components.action-bar.close": "Close",
"widget.compact-view.components.action-bar.share-this-channel": "Share this Channel",
"widget.compact-view.components.action-bar.share-tooltip-button": "Share",
"widget.home-view.no-search-results": "No search results",
"widget.load-more": "Load More",
"widget.mobile.overlay-button.sign-in": "Sign in",
"widget.mobile.overlay-button.sign-out": "Sign out",
"widget.mobile.overlay-button.subscribe.short": "Subscribe",
"widget.mobile.overlay-button.visit-channel": "Visit channel",
"widget.mobile.slide-menu-button-accessibility": "menu",
"widget.payments-mobile.a11y.close-purchase": "Close purchase dialog",
"widget.payments-mobile.a11y.close-subscribe": "Close subscribe dialog",
"widget.payments-mobile.confirm-and-pay": "Confirm and Pay",
"widget.payments-mobile.have-account": "Already have an account?",
"widget.payments-mobile.logout": "Log out",
"widget.payments-mobile.member-only-benefits": "Here\u2019s what you\u2019ll get:",
"widget.payments-mobile.not-your-account": "Not your account?",
"widget.payments-mobile.proceed-cashier": "Select a payment method",
"widget.payments-mobile.proceed-paypal": "Proceed with PayPal \u2192",
"widget.payments-mobile.purchase": "Purchase {price}",
"widget.payments-mobile.ready-action": "Proceed to Checkout",
"widget.payments-mobile.reload-button": "Reload",
"widget.payments-mobile.rent": "Rent {price}",
"widget.payments-mobile.sign-in": "Sign in",
"widget.payments-mobile.sign-in-to-complete": "Sign up to complete your purchase",
"widget.payments-mobile.sign-up": "Sign up \u2192",
"widget.payments-mobile.sign-up-to-watch-1": "Sign up to watch this video.",
"widget.payments-mobile.sign-up-to-watch-2": "It\u2019ll only take a sec.",
"widget.payments-mobile.signed-as": "You are signed in as:",
"widget.payments-mobile.subscription-month": "Subscription {price}/month",
"widget.payments.back-button": "Back",
"widget.payments.continue-button": "Continue",
"widget.payments.cancel-subscription": "Cancel subscription",
"widget.payments.confirm-and-pay": "Confirm and Pay",
"widget.payments.downloadAnytime": "Download anytime",
"widget.payments.go-to-video": "Go to video",
"widget.payments.instant-access": "Instant access to new videos",
"widget.payments.member-only-benefits": "Here's what you'll get:",
"widget.payments.monthly-payment": "Recurring monthly payments (cancel anytime)",
"widget.payments.one-payment": "One time payment",
"widget.payments.proceed-checkout": "Proceed to checkout",
"widget.payments.proceed-checkout-cashier-experiment": "Proceed to checkout to complete your purchase",
"widget.payments.proceed-paypal": "Proceed with PayPal",
"widget.payments.purchase": "Purchase {price}",
"widget.payments.reload-button": "Reload",
"widget.payments.rent": "Rent {price}",
"widget.payments.single-video": "1 video",
"widget.payments.single-video-streaming": "1 video streaming",
"widget.payments.streaming-period": "{period} hours streaming period will start once your transaction is complete.",
"widget.payments.subscribe-to-channel": "Subscribe to channel",
"widget.payments.subscribed-since": "Subscribed since {date}. {price}/month",
"widget.payments.subscription-canceled": "Subscription cancelled.",
"widget.payments.subscription-expiration": "You have access to this channel until:",
"widget.payments.subscription-month": "Subscription {price}/month",
"widget.payments.thank-for-purchase": "Thank you for your purchase!",
"widget.payments.thank-for-purchase-short": "Thanks for your purchase!",
"widget.payments.unlimitedDownloads": "Unlimited downloads",
"widget.payments.unlimitedStreaming": "Unlimited streaming",
"widget.payments.video-will-be-available": "Your video will be available in a few minutes. You'll receive a confirmation email when your payment has been processed.",
"widget.payments.video-pending-buyer": "Your video will be available once your payment is received. You'll receive a confirmation email when your payment has been processed.",
"widget.payments.success-payment.close": "Close",
"widget.payments.success-payment.thank-for-purchase": "Thank you!",
"widget.payments.success-payment.thank-for-purchase-short": "Thank you!",
"widget.payments.success-payment.video-is-available-sale": "Enjoy the video. You can watch this video anytime.",
"widget.payments.success-payment.video-is-available-rent": "Enjoy the video. This video is available for {period} hours.",
"widget.payments.success-payment.video-is-available-subscription": "Enjoy the videos. These videos are now available to watch.",
"widget.player.enter-full-screen-label": "Enter full screen mode",
"widget.player.enter-full-screen-tooltip": "Enter full screen mode",
"widget.player.exit-full-screen-label": "Exit full screen mode",
"widget.player.exit-full-screen-tooltip": "Exit full screen mode",
"widget.player.enter_picture_in_picture_tooltip": "Play Picture-in-Picture",
"widget.player.enter_picture_in_picture_label": "Play Picture-in-Picture",
"widget.player.exit_picture_in_picture_tooltip": "Exit Picture-in-Picture",
"widget.player.exit_picture_in_picture_label": "Exit Picture-in-Picture",
"widget.player.live-ended-indicator": "Live Ended",
"widget.player.live-indicator": "Live",
"widget.player.live-sync-label": "Sync to Live",
"widget.player.live-sync-tooltip": "Sync to Live",
"widget.player.mute-control-label": "Mute",
"widget.player.mute-control-tooltip": "Mute",
"widget.player.pause-control-label": "Pause",
"widget.player.play-control-label": "Play",
"widget.player.progress-control-label": "Progress control",
"widget.player.progress-control-value": "Already played {percent}%",
"widget.player.unmute-control-label": "Unmute",
"widget.player.unmute-control-tooltip": "Unmute",
"widget.player.volume-control-label": "Volume control",
"widget.player.volume-control-value": "Volume is {percent}%",
"widget.player.watch-on-site-label": "Watch On Site",
"widget.player.watch-on-site-tooltip": "Watch On Site",
"widget.preview-prompt.got-it": "Got it!",
"widget.preview-prompt.preview-mode": "Preview Mode",
"widget.preview-prompt.you-in-preview.line1": "Hey, you\u2019re in Preview mode.",
"widget.preview-prompt.you-in-preview.line2": "This feature works on your live site once it\u2019s published.",
"widget.search-bar.search-video": "Search video...",
"widget.search.clear-search": "Clear Search",
"widget.share-channel.share": "Share Channel",
"widget.share-channel.share-link": "Channel URL",
"widget.share-video.share": "Share Video",
"widget.share-video.share-link": "Video URL",
"widget.strip-view.all-videos": "All Videos",
"widget.strip-view.close": "Close",
"widget.this-channel-is-coming-soon": "This channel is coming soon!",
"widget.vertical-video-list-mobile.youOwnThis": "You own this",
"widget.video-cards.live-label": "live",
"widget.video-cards.watch-live": "Watch Live",
"widget.video-cards.watch-more": "Watch More",
"widget.video-cards.watch-next": "Watch Next",
"widget.video-is-not-available": "This video isn't available right now.",
App_Manager_Wix_Video_Quick_Action_3: "Manage Channels",
App_Manager_Wix_Video_General_Action_2: "Remove App",
App_Manager_Wix_Video_Quick_Action_4: "Live Stream",
App_Manager_Wix_Video_Main_CTA: "Manage Videos",
App_Manager_Wix_Video_Upgrade_Link: "upgrade now.",
App_Manager_Wix_Video_Quick_Action_1: "Add Video Elements",
App_Manager_Wix_Video_Upgrade_Text: "To get more video and stream time,",
App_Manager_Wix_Video_General_Action_1: "Learn More"
};
const Ut = It.exports,
Wt = function(e) {
var t = e.initAppForPage,
r = e.sentryConfig,
n = void 0 === r ? null : r,
i = e.experimentsConfig,
a = void 0 === i ? null : i,
o = e.inEditor,
s = void 0 !== o && o,
c = e.projectName,
l = e.defaultTranslations,
u = e.translationsConfig,
d = e.biConfig,
p = e.biLogger,
h = e.appName,
g = void 0 === h ? null : h,
f = e.optionalDeps,
y = e.localeDistPath,
v = e.prepopulatedData,
m = e.shouldUseEssentials;
return function(e, r, i, o) {
return F(void 0, void 0, void 0, (function() {
var h, b, w, k;
return M(this, (function(x) {
switch (x.label) {
case 0:
return h = new E({
experimentsConfig: a,
projectName: c,
sentryConfig: n,
platformBI: o.bi,
biLoggerFactory: o.biLoggerFactory,
essentials: o.essentials,
monitoring: o.monitoring,
wixAPI: i,
appData: e,
translationsConfig: u,
defaultTranslations: l,
inEditor: s,
biConfig: d,
biLogger: p,
appName: g,
optionalDeps: f,
localeDistPath: y,
prepopulatedData: v,
shouldUseEssentials: m
}), _(h), b = h.init(), R(b), [4, b];
case 1:
if (x.sent(), !t) return [3, 5];
x.label = 2;
case 2:
return x.trys.push([2, 4, , 5]), [4, t(e, r, i, o, h)];
case 3:
return w = x.sent(), N(w), [3, 5];
case 4:
throw k = x.sent(), s || (console.error('\u2757\ufe0fError \ud83d\udc49 "'.concat(g, '" app \ud83d\udc49 `viewer.app.ts` module \u2757\n'), k), h.reportError(k)), k;
case 5:
return [2, T()]
}
}))
}))
}
}({
initAppForPage: It.initAppForPage,
sentryConfig: Vt,
experimentsConfig: {
scopes: ["vod"],
centralized: !0
},
inEditor: !1,
biLogger: Mt,
multilingualDisabled: false,
projectName: "wix-vod-widget",
biConfig: null,
appName: "Wix Video",
appDefinitionId: "14409595-f076-4753-8303-9a86f9f71469",
fedopsConfig: null,
translationsConfig: Bt,
defaultTranslations: zt,
shouldUseEssentials: !0,
optionalDeps: {
initI18n: Nt,
createHttpClient: null,
createExperiments: null
},
localeDistPath: "assets/locales"
});
var Ht, Kt, Gt;
const Yt = (Ht = {
initI18n: Nt,
blocksControllerService: null,
createHttpClient: null,
createExperiments: null,
velocycleMobx: null
}, Kt = [{
method: null,
wrap: null,
exports: null,
widgetType: "WIDGET_OUT_OF_IFRAME",
translationsConfig: Bt,
multilingualDisabled: !1,
experimentsConfig: {
scopes: ["vod"],
centralized: !0
},
fedopsConfig: null,
sentryConfig: Vt,
persistentAcrossPages: !1,
biLogger: Mt,
shouldUseEssentials: !0,
withErrorBoundary: !0,
biConfig: null,
controllerFileName: "/home/builduser/work/a166910b96dca70f/wix-vod-widget/src/components/WixVideo/controller.ts",
appName: "Wix Video",
appDefinitionId: "14409595-f076-4753-8303-9a86f9f71469",
projectName: "wix-vod-widget",
componentName: "WixVideo",
localeDistPath: "assets/locales",
defaultTranslations: zt,
id: "144097ea-fea0-498e-ade7-e6de40127106"
}], void 0 === (Gt = !1) && (Gt = !1), function(e, t) {
var r = [];
return e.forEach((function(e) {
var n, i = e.type,
a = (n = i, Kt.find((function(e) {
return e.id === n
})));
if (a || function(e) {
var t, r, n;
return (null === (t = e.appParams) || void 0 === t ? void 0 : t.blocksData) || (null === (n = null === (r = e.appParams) || void 0 === r ? void 0 : r.appData) || void 0 === n ? void 0 : n.blocksPreviewData)
}(e) && (a = {
widgetType: o,
method: null,
exports: {}
}), (null == a ? void 0 : a.widgetType) !== o && !Gt) {
var s = null == t ? void 0 : t[i];
if (!s) return;
if (!a) {
var c = function(e) {
return I(e) ? null : e.descriptor
}(s);
if (!c) throw new Error("Can't resolve controller descriptor for \"".concat(i, '" controller.'));
a = c
}
a.method = function(e) {
if (I(e)) return e;
var t = e[Object.keys(e).find((function(e) {
return e.toLowerCase().includes("controller")
})) || "default"];
if ("function" != typeof t) throw new Error("Seems like a bundle you have registered as Controller URL in Dev Center doesn't contain exported controller.\nPlease, verify you are using relevant controller bundle generated by editor flow.");
return t
}(s), a.wrap = function(e) {
return I(e) ? null : e.wrap
}(s) || void 0, a.exports = s
}
a && r.push({
controllerDescriptor: a,
controllerConfig: e
})
})), r.map((function(e) {
var t = e.controllerDescriptor,
r = e.controllerConfig;
if (t.wrap) return t.wrap(Ht, t, r, S, C, T)
}))
});
return a
}()
}));
//# sourceMappingURL=viewerScript.bundle.min.js.map
//# sourceURL=https://static.parastorage.com/services/wix-vod-widget/1.3239.0/viewerScript.bundle.min.js
#2 JavaScript::Eval (size: 118874) - SHA256: fb187d8a55902f51a07a8b8c554cc20f6f2dca0f273a8eee3e50d072ec50726f
! function(e, t) {
"object" == typeof exports && "object" == typeof module ? module.exports = t() : "function" == typeof define && define.amd ? define([], t) : "object" == typeof exports ? exports.viewerScript = t() : e.viewerScript = t()
}(self, (function() {
return function() {
var e = {
186: function(e, t) {
t.qq = t.tt = t.sV = t.dn = void 0, t.dn = "14bcded7-0066-7c35-14d7-466cb3f09103", t.sV = "140603ad-af8d-84a5-2c80-a0f60cb47351", t.tt = "14724f35-6794-cd1a-0244-25fd138f9242", t.qq = "148c2287-c669-d849-d153-463c7486a694";
var n = {}
},
213: function(e) {
e.exports = function(e, t, n) {
return t in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e
}, e.exports.__esModule = !0, e.exports.default = e.exports
},
448: function(e) {
function t() {
return e.exports = t = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
}
return e
}, e.exports.__esModule = !0, e.exports.default = e.exports, t.apply(this, arguments)
}
e.exports = t, e.exports.__esModule = !0, e.exports.default = e.exports
}
},
t = {};
function n(r) {
var i = t[r];
if (void 0 !== i) return i.exports;
var o = t[r] = {
exports: {}
};
return e[r](o, o.exports, n), o.exports
}
n.n = function(e) {
var t = e && e.__esModule ? function() {
return e.default
} : function() {
return e
};
return n.d(t, {
a: t
}), t
}, n.d = function(e, t) {
for (var r in t) n.o(t, r) && !n.o(e, r) && Object.defineProperty(e, r, {
enumerable: !0,
get: t[r]
})
}, n.g = function() {
if ("object" == typeof globalThis) return globalThis;
try {
return this || new Function("return this")()
} catch (e) {
if ("object" == typeof window) return window
}
}(), n.o = function(e, t) {
return Object.prototype.hasOwnProperty.call(e, t)
}, n.r = function(e) {
"undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(e, Symbol.toStringTag, {
value: "Module"
}), Object.defineProperty(e, "__esModule", {
value: !0
})
}, n.p = "https://static.parastorage.com/services/santa-members-viewer-app/af896f6031e59ef577bbe58086fde922ebd496cd53eb4c2dc72560a5/";
var r = {};
return function() {
"use strict";
n.r(r), n.d(r, {
createControllers: function() {
return ta
},
exports: function() {
return $o
},
initAppForPage: function() {
return Xo
}
});
var e = {};
n.r(e), n.d(e, {
default: function() {
return wt
}
});
var t = {};
n.r(t), n.d(t, {
default: function() {
return xt
}
});
var i = {};
n.r(i), n.d(i, {
default: function() {
return Ct
}
});
var o = {};
n.r(o), n.d(o, {
exports: function() {
return Pt
},
initAppForPage: function() {
return Ot
}
});
var a = "BLOCKS_WIDGET",
s = ["ar", "arc", "bcc", "bqi", "ckb", "dv", "fa", "glk", "ha", "he", "khw", "ks", "ku", "mzn", "pnb", "ps", "sd", "ug", "ur", "yi"];
var u = function(e) {
return e
},
l = function(e) {
var t = e.dsn,
n = e.environment,
r = e.artifact,
i = e.withDataCallback,
o = e.tags;
return {
dsn: t,
config: {
enabled: !0,
release: r,
dataCallback: i ? u : void 0,
environment: n,
tags: o
}
}
},
c = function(e) {
return e.isEnabled && e.currentLanguage ? e.currentLanguage : void 0
},
p = function(e) {
return void 0 === e && "undefined" != typeof window && (e = window.location.search), new URLSearchParams(e)
},
f = function(e, t) {
var n = c(e.window.multilingual),
r = e.site.language;
if (t) {
var i = p().get("regionalLanguage");
i && (r = i)
}
return n || r || "en"
},
d = function(e) {
return "backend" === e.window.rendering.env
},
h = function(e) {
return e.seo.isInSEO()
},
v = function(e, t, n, r) {
return new(n || (n = Promise))((function(i, o) {
function a(e) {
try {
u(r.next(e))
} catch (e) {
o(e)
}
}
function s(e) {
try {
u(r.throw(e))
} catch (e) {
o(e)
}
}
function u(e) {
var t;
e.done ? i(e.value) : (t = e.value, t instanceof n ? t : new n((function(e) {
e(t)
}))).then(a, s)
}
u((r = r.apply(e, t || [])).next())
}))
},
g = function(e, t) {
var n, r, i, o, a = {
label: 0,
sent: function() {
if (1 & i[0]) throw i[1];
return i[1]
},
trys: [],
ops: []
};
return o = {
next: s(0),
throw: s(1),
return: s(2)
}, "function" == typeof Symbol && (o[Symbol.iterator] = function() {
return this
}), o;
function s(o) {
return function(s) {
return function(o) {
if (n) throw new TypeError("Generator is already executing.");
for (; a;) try {
if (n = 1, r && (i = 2 & o[0] ? r.return : o[0] ? r.throw || ((i = r.return) && i.call(r), 0) : r.next) && !(i = i.call(r, o[1])).done) return i;
switch (r = 0, i && (o = [2 & o[0], i.value]), o[0]) {
case 0:
case 1:
i = o;
break;
case 4:
return a.label++, {
value: o[1],
done: !1
};
case 5:
a.label++, r = o[1], o = [0];
continue;
case 7:
o = a.ops.pop(), a.trys.pop();
continue;
default:
if (!(i = a.trys, (i = i.length > 0 && i[i.length - 1]) || 6 !== o[0] && 2 !== o[0])) {
a = 0;
continue
}
if (3 === o[0] && (!i || o[1] > i[0] && o[1] < i[3])) {
a.label = o[1];
break
}
if (6 === o[0] && a.label < i[1]) {
a.label = i[1], i = o;
break
}
if (i && a.label < i[2]) {
a.label = i[2], a.ops.push(o);
break
}
i[2] && a.ops.pop(), a.trys.pop();
continue
}
o = t.call(e, a)
} catch (e) {
o = [6, e], r = 0
} finally {
n = i = 0
}
if (5 & o[0]) throw o[1];
return {
value: o[0] ? o[1] : void 0,
done: !0
}
}([o, s])
}
}
},
b = function() {
throw new Error("Translations has not been initialized yet")
},
m = function(e) {
var t = e.language,
r = e.defaultTranslations,
i = e.prefix,
o = void 0 === i ? "messages" : i,
a = e.defaultLanguage,
s = e.availableLanguages,
u = e.localeDistPath,
l = e.initI18n,
c = e.basePath,
p = this;
this.t = b, this.all = {}, this.init = function(e) {
var t = void 0 === e ? {} : e,
r = t.prepopulated,
i = t.wait,
o = void 0 !== i && i,
a = t.useSuspense,
s = void 0 !== a && a;
return v(p, void 0, void 0, (function() {
var e, t, i, a = this;
return g(this, (function(u) {
switch (u.label) {
case 0:
if (e = this.config, t = new Set(e.availableLanguages || []), !this._initI18n) throw new Error("Can't initialize i18n without initI18n method.");
return this.i18n = this._initI18n({
locale: e.language,
useSuspense: s,
wait: o,
messages: r,
disableAutoInit: !0,
asyncMessagesLoader: function(r) {
var i;
return "en" === r ? Promise.resolve(e.defaultTranslations) : t.has(r) ? fetch("".concat(null !== (i = a.basePath) && void 0 !== i ? i : n.p).concat(a.localeDistPath, "/").concat(e.prefix, "_").concat(r, ".json")).then((function(t) {
return t.ok ? t.json() : Promise.reject(new Error("Can't load locale: ".concat(e.language)))
})) : Promise.reject(new Error("Locale assets for ".concat(r, " are not provided")))
}
}), [4, this.i18n.init()];
case 1:
if (u.sent(), !(i = this.i18n.getResourceBundle(e.language, "translation")) && t.has(e.language)) throw new Error("Unexpected missing translations for language ".concat(e.language));
return this.all = i || e.defaultTranslations || {}, this.t = function(e, t) {
return a.i18n.t(e, t)
}, [2, this]
}
}))
}))
}, this.config = {
availableLanguages: s,
language: t,
defaultTranslations: r,
prefix: o,
defaultLanguage: a
}, this.localeDistPath = u, this._initI18n = l, this.i18n = null, this.basePath = c
},
_ = function(e) {
var t;
this.entry = "viewerScript";
var n, r = e.wixAPI,
i = e.appData;
this.isSSR = "backend" === r.window.rendering.env, this.isSEO = h(r), this.isMobile = "Mobile" === r.window.formFactor, this.isEditor = "Editor" === r.window.viewMode, this.isPreview = "Preview" === r.window.viewMode, this.isViewer = "Site" === r.window.viewMode, this.isBlocksPreview = Boolean(null === (t = null == i ? void 0 : i.appData) || void 0 === t ? void 0 : t.blocksPreviewData), this.language = f(r, this.isEditor), this.isRTL = (n = this.language, s.includes(n)), this.multilingual = r.window.multilingual, this.appDefinitionId = i.appDefinitionId
},
y = function() {
return y = Object.assign || function(e) {
for (var t, n = 1, r = arguments.length; n < r; n++)
for (var i in t = arguments[n]) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
return e
}, y.apply(this, arguments)
},
w = function(e, t) {
var n = {};
return e.visitorId ? n.forSiteVisitors = y(y({}, e), {
visitorId: e.visitorId
}) : n.forSiteOwner = y(y({}, e), {
loggedInUserId: e.loggedInUserId
}), t && (n.overrideCriteria = t), n
},
x = function(e, t, n, r) {
return new(n || (n = Promise))((function(i, o) {
function a(e) {
try {
u(r.next(e))
} catch (e) {
o(e)
}
}
function s(e) {
try {
u(r.throw(e))
} catch (e) {
o(e)
}
}
function u(e) {
var t;
e.done ? i(e.value) : (t = e.value, t instanceof n ? t : new n((function(e) {
e(t)
}))).then(a, s)
}
u((r = r.apply(e, t || [])).next())
}))
},
C = function(e, t) {
var n, r, i, o, a = {
label: 0,
sent: function() {
if (1 & i[0]) throw i[1];
return i[1]
},
trys: [],
ops: []
};
return o = {
next: s(0),
throw: s(1),
return: s(2)
}, "function" == typeof Symbol && (o[Symbol.iterator] = function() {
return this
}), o;
function s(o) {
return function(s) {
return function(o) {
if (n) throw new TypeError("Generator is already executing.");
for (; a;) try {
if (n = 1, r && (i = 2 & o[0] ? r.return : o[0] ? r.throw || ((i = r.return) && i.call(r), 0) : r.next) && !(i = i.call(r, o[1])).done) return i;
switch (r = 0, i && (o = [2 & o[0], i.value]), o[0]) {
case 0:
case 1:
i = o;
break;
case 4:
return a.label++, {
value: o[1],
done: !1
};
case 5:
a.label++, r = o[1], o = [0];
continue;
case 7:
o = a.ops.pop(), a.trys.pop();
continue;
default:
if (!(i = a.trys, (i = i.length > 0 && i[i.length - 1]) || 6 !== o[0] && 2 !== o[0])) {
a = 0;
continue
}
if (3 === o[0] && (!i || o[1] > i[0] && o[1] < i[3])) {
a.label = o[1];
break
}
if (6 === o[0] && a.label < i[1]) {
a.label = i[1], i = o;
break
}
if (i && a.label < i[2]) {
a.label = i[2], a.ops.push(o);
break
}
i[2] && a.ops.pop(), a.trys.pop();
continue
}
o = t.call(e, a)
} catch (e) {
o = [6, e], r = 0
} finally {
n = i = 0
}
if (5 & o[0]) throw o[1];
return {
value: o[0] ? o[1] : void 0,
done: !0
}
}([o, s])
}
}
};
var O, P, S = function() {
function e(e) {
var t = e.httpClient;
this.reportError = function(e) {
console.warn("You are trying to report an error, but didn't configure sentry in `.application.json`\n\nPlease read the docs for more information https://bo.wix.com/pages/yoshi/docs/editor-flow/structure-api/app-configuration/#applicationjson", "Error: ", e)
}, this._httpClient = t
}
return Object.defineProperty(e.prototype, "httpClient", {get: function() {
var e = this._httpClient;
return e
},
enumerable: !1,
configurable: !0
}), e
}(),
A = function() {
var e = function(t, n) {
return e = Object.setPrototypeOf || {
__proto__: []
}
instanceof Array && function(e, t) {
e.__proto__ = t
} || function(e, t) {
for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
}, e(t, n)
};
return function(t, n) {
if ("function" != typeof n && null !== n) throw new TypeError("Class extends value " + String(n) + " is not a constructor or null");
function r() {
this.constructor = t
}
e(t, n), t.prototype = null === n ? Object.create(n) : (r.prototype = n.prototype, new r)
}
}(),
I = function() {
return I = Object.assign || function(e) {
for (var t, n = 1, r = arguments.length; n < r; n++)
for (var i in t = arguments[n]) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
return e
}, I.apply(this, arguments)
},
R = function(e, t, n, r) {
return new(n || (n = Promise))((function(i, o) {
function a(e) {
try {
u(r.next(e))
} catch (e) {
o(e)
}
}
function s(e) {
try {
u(r.throw(e))
} catch (e) {
o(e)
}
}
function u(e) {
var t;
e.done ? i(e.value) : (t = e.value, t instanceof n ? t : new n((function(e) {
e(t)
}))).then(a, s)
}
u((r = r.apply(e, t || [])).next())
}))
},
M = function(e, t) {
var n, r, i, o, a = {
label: 0,
sent: function() {
if (1 & i[0]) throw i[1];
return i[1]
},
trys: [],
ops: []
};
return o = {
next: s(0),
throw: s(1),
return: s(2)
}, "function" == typeof Symbol && (o[Symbol.iterator] = function() {
return this
}), o;
function s(o) {
return function(s) {
return function(o) {
if (n) throw new TypeError("Generator is already executing.");
for (; a;) try {
if (n = 1, r && (i = 2 & o[0] ? r.return : o[0] ? r.throw || ((i = r.return) && i.call(r), 0) : r.next) && !(i = i.call(r, o[1])).done) return i;
switch (r = 0, i && (o = [2 & o[0], i.value]), o[0]) {
case 0:
case 1:
i = o;
break;
case 4:
return a.label++, {
value: o[1],
done: !1
};
case 5:
a.label++, r = o[1], o = [0];
continue;
case 7:
o = a.ops.pop(), a.trys.pop();
continue;
default:
if (!(i = a.trys, (i = i.length > 0 && i[i.length - 1]) || 6 !== o[0] && 2 !== o[0])) {
a = 0;
continue
}
if (3 === o[0] && (!i || o[1] > i[0] && o[1] < i[3])) {
a.label = o[1];
break
}
if (6 === o[0] && a.label < i[1]) {
a.label = i[1], i = o;
break
}
if (i && a.label < i[2]) {
a.label = i[2], a.ops.push(o);
break
}
i[2] && a.ops.pop(), a.trys.pop();
continue
}
o = t.call(e, a)
} catch (e) {
o = [6, e], r = 0
} finally {
n = i = 0
}
if (5 & o[0]) throw o[1];
return {
value: o[0] ? o[1] : void 0,
done: !0
}
}([o, s])
}
}
},
E = function(e) {
function t(t) {
var n = t.experimentsConfig,
r = t.essentials,
i = t.platformBI,
o = t.biLoggerFactory,
a = t.monitoring,
s = t.sentryConfig,
u = t.wixAPI,
c = t.appData,
p = t.translationsConfig,
v = t.defaultTranslations,
g = void 0 === v ? null : v,
b = t.biLogger,
y = t.projectName,
O = t.appName,
P = t.prepopulatedData,
S = t.optionalDeps,
A = S.createHttpClient,
R = S.initI18n,
M = S.createExperiments,
E = t.localeDistPath,
k = t.shouldUseEssentials,
D = t.basePath,
j = e.call(this, {
httpClient: k ? null == r ? void 0 : r.httpClient : null == A ? void 0 : A({
isSSR: d(u),
getAppToken: function() {
var e, t, n;
return null !== (n = null === (t = (e = u.site).getAppToken) || void 0 === t ? void 0 : t.call(e, c.appDefinitionId)) && void 0 !== n ? n : c.instance
}
})
}) || this;
j.essentials = r, j.wixAPI = u, j.appName = O, j.projectName = y, j.prepopulatedData = P, j.basePath = D, j.environment = new _({
appData: c,
wixAPI: u
});
var U = f(u, j.environment.isEditor);
if (j.localeDistPath = E, j.getCurrencyFormatter = null, j.formatCurrency = null, j.formatAddress = null, j.essentials && "formatAddress" in j.essentials && (j.formatAddress = j.essentials.formatAddress), j.essentials && "createCurrencyFormatterWithDefaults" in j.essentials && (j.getCurrencyFormatter = j.essentials.createCurrencyFormatterWithDefaults({
language: U
}), j.getCurrencyFormatter && (j.formatCurrency = j.getCurrencyFormatter())), j.translations = !1 === (null == p ? void 0 : p.enabled) ? null : new m({
language: U,
defaultTranslations: g,
prefix: null == p ? void 0 : p.prefix,
availableLanguages: null == p ? void 0 : p.availableLanguages,
localeDistPath: E,
initI18n: R
}), j.experiments = null, j._experimentsPromise = null, n) {
var N = j.environment.isViewer ? {
siteOwnerId: null == i ? void 0 : i.ownerId,
visitorId: null == i ? void 0 : i.visitorId
} : {
siteOwnerId: null == i ? void 0 : i.ownerId,
loggedInUserId: u.user.currentUser.id
},
T = (null == i ? void 0 : i.metaSiteId) ? {
entityId: null == i ? void 0 : i.metaSiteId
} : void 0;
if (k) j._experimentsPromise = n.centralized && !(null == P ? void 0 : P.experiments) ? Promise.resolve(j.essentials.experiments) : function(e, t, n, r, i, o) {
return x(void 0, void 0, void 0, (function() {
var a, s;
return C(this, (function(u) {
switch (u.label) {
case 0:
return a = e({
useNewApi: !0,
requestContext: w(r, i),
baseUrl: o
}), n ? (a.add(n), [2, a]) : t ? (s = t.scopes.map((function(e) {
return a.load(e)
})), [4, Promise.all(s)]) : [2, a];
case 1:
return u.sent(), [2, a]
}
}))
}))
}(j.essentials.createExperiments, n, null == P ? void 0 : P.experiments, N, T, j.environment.isSSR ? "https://wix.com" : void 0);
else {
var L = M({
prepopulated: null == P ? void 0 : P.experiments,
experimentsConfig: n,
baseUrl: j.environment.isSSR ? "https://wix.com" : void 0,
ctx: N,
overrideCriteria: T
});
j._experimentsPromise = L.init()
}
}
if (null == P ? void 0 : P.biLogger) j.bi = null == P ? void 0 : P.biLogger;
else if (b) {
var V = void 0;
k ? V = j.essentials.biLoggerFactory() : o && (V = o()), V && (j.bi = b(V)({}))
}
if (j.sentry = null, j.errorMonitor = null, null == P ? void 0 : P.sentryMonitor) j.sentry = null == P ? void 0 : P.sentryMonitor;
else if (null == P ? void 0 : P.errorMonitor) j.errorMonitor = null == P ? void 0 : P.errorMonitor;
else if (s)
if (s.errorMonitor && (null == r ? void 0 : r.createErrorMonitor)) j.errorMonitor = r.createErrorMonitor({
dsn: s.DSN,
environment: "Viewer:Worker",
version: "af896f6031e59ef577bbe58086fde922ebd496cd53eb4c2dc72560a5",
tags: {
isSSR: d(u),
isSEO: h(u)
}
});
else {
var B = l({
dsn: s.DSN,
environment: "Viewer:Worker",
artifact: "af896f6031e59ef577bbe58086fde922ebd496cd53eb4c2dc72560a5",
withDataCallback: !0,
tags: {
isSSR: d(u),
isSEO: h(u)
}
});
j.sentry = null == a ? void 0 : a.createMonitor(B.dsn, (function(e) {
return I(I({}, e), B.config)
}))
}
return j.sentry && (j.reportError = function(e) {
return "string" == typeof e ? j.sentry.captureMessage(e) : j.sentry.captureException(e), j.sentry.lastEventId()
}), j.errorMonitor && (j.reportError = function(e) {
return "string" == typeof e ? j.errorMonitor.captureMessage(e) : j.errorMonitor.captureException(e)
}), j
}
return A(t, e), t.prototype.init = function() {
var e, t;
return R(this, void 0, void 0, (function() {
var n;
return M(this, (function(r) {
switch (r.label) {
case 0:
return n = this, [4, this._experimentsPromise];
case 1:
return n.experiments = r.sent(), [4, null === (e = this.translations) || void 0 === e ? void 0 : e.init({
prepopulated: null === (t = this.prepopulatedData) || void 0 === t ? void 0 : t.translations
})];
case 2:
return r.sent(), [2]
}
}))
}))
}, t.prototype.createTranslations = function(e, t, n) {
var r, i = e.translationsConfig,
o = e.defaultTranslations,
a = e.localeDistPath;
if (!1 === (null == i ? void 0 : i.enabled)) return null;
if (a === this.localeDistPath && (null == n ? void 0 : n.basePath) === this.basePath) return this.translations;
var s = f(this.wixAPI, this.environment.isEditor);
return new m({
language: s,
defaultTranslations: o,
availableLanguages: null == i ? void 0 : i.availableLanguages,
prefix: null == i ? void 0 : i.prefix,
localeDistPath: a,
initI18n: null == t ? void 0 : t.initI18n,
basePath: null !== (r = null == n ? void 0 : n.basePath) && void 0 !== r ? r : this.basePath
})
}, t
}(S),
k = {},
D = function(e) {
O = e
},
j = function(e) {
P = e
},
U = function() {
return k
},
N = function(e) {
k = e
},
T = function(e, t, n, r) {
return new(n || (n = Promise))((function(i, o) {
function a(e) {
try {
u(r.next(e))
} catch (e) {
o(e)
}
}
function s(e) {
try {
u(r.throw(e))
} catch (e) {
o(e)
}
}
function u(e) {
var t;
e.done ? i(e.value) : (t = e.value, t instanceof n ? t : new n((function(e) {
e(t)
}))).then(a, s)
}
u((r = r.apply(e, t || [])).next())
}))
},
L = function(e, t) {
var n, r, i, o, a = {
label: 0,
sent: function() {
if (1 & i[0]) throw i[1];
return i[1]
},
trys: [],
ops: []
};
return o = {
next: s(0),
throw: s(1),
return: s(2)
}, "function" == typeof Symbol && (o[Symbol.iterator] = function() {
return this
}), o;
function s(o) {
return function(s) {
return function(o) {
if (n) throw new TypeError("Generator is already executing.");
for (; a;) try {
if (n = 1, r && (i = 2 & o[0] ? r.return : o[0] ? r.throw || ((i = r.return) && i.call(r), 0) : r.next) && !(i = i.call(r, o[1])).done) return i;
switch (r = 0, i && (o = [2 & o[0], i.value]), o[0]) {
case 0:
case 1:
i = o;
break;
case 4:
return a.label++, {
value: o[1],
done: !1
};
case 5:
a.label++, r = o[1], o = [0];
continue;
case 7:
o = a.ops.pop(), a.trys.pop();
continue;
default:
if (!(i = a.trys, (i = i.length > 0 && i[i.length - 1]) || 6 !== o[0] && 2 !== o[0])) {
a = 0;
continue
}
if (3 === o[0] && (!i || o[1] > i[0] && o[1] < i[3])) {
a.label = o[1];
break
}
if (6 === o[0] && a.label < i[1]) {
a.label = i[1], i = o;
break
}
if (i && a.label < i[2]) {
a.label = i[2], a.ops.push(o);
break
}
i[2] && a.ops.pop(), a.trys.pop();
continue
}
o = t.call(e, a)
} catch (e) {
o = [6, e], r = 0
} finally {
n = i = 0
}
if (5 & o[0]) throw o[1];
return {
value: o[0] ? o[1] : void 0,
done: !0
}
}([o, s])
}
}
},
V = function(e) {
return "function" == typeof e
};
var B = function() {
return B = Object.assign || function(e) {
for (var t, n = 1, r = arguments.length; n < r; n++)
for (var i in t = arguments[n]) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
return e
}, B.apply(this, arguments)
};
Object.create;
Object.create;
var F, K = function(e, t) {
return e.localeCompare(t)
};
! function(e) {
e.Number = "Number", e.Boolean = "Boolean", e.String = "String", e.Text = "Text", e.Object = "Object"
}(F || (F = {}));
var G = function(e, t) {
var n = t.isMobile,
r = t.language,
i = void 0 === r ? "en" : r;
return "function" == typeof e.dangerousKeyTransformationOverride ? e.dangerousKeyTransformationOverride(e.key, {
isMobile: n,
language: i
}) : function(e, t, n) {
if ("string" != typeof e) throw new Error("`generateKey` expects key to be passed and be a string");
if (!t) throw new Error("`generateKey` expects options to be passed");
return Object.keys(n).sort(K).reduce((function(e, r) {
var i = n[r] === t[r],
o = !t[r] && !n[r];
return i || o ? e : e + "\u25b6\ufe0e" + ("boolean" != typeof t[r] || n[r] ? r + ":" + t[r] : r)
}), e)
}(e.key, {
m: n,
l: i
}, {
m: !1,
l: "en"
})
},
q = function() {
var e, t = this;
this.handlers = ((e = {})[F.Object] = {
serialize: function(e) {
return "string" == typeof e ? (console.error("\u26a0\ufe0f Seems like you are calling `settings.set(param, JSON.stringify(value))`. Please, pass a plain object/array and tpa-settings will serializate it."), e) : JSON.stringify(e)
},
deserialize: function(e) {
return "string" != typeof e ? e : JSON.parse(e)
}
}, e), this.serialize = function(e, n) {
return e.type === F.Object ? t.handlers[F.Object].serialize(n) : n
}, this.deserialize = function(e, n) {
return e.type === F.Object ? t.handlers[F.Object].deserialize(n) : n
}
},
W = new q;
function z(e, t, n) {
void 0 === n && (n = {});
var r, i = function(e) {
return e.type === F.Text
}(t),
o = function(e, t) {
return {
languageAndMobile: G(e, {
isMobile: t.isMobile,
language: t.language
}),
language: G(e, {
isMobile: !1,
language: t.language
}),
mobile: G(e, {
isMobile: t.isMobile
}),
original: e.key
}
}(t, {
isMobile: n.isMobile,
language: i ? n.language : void 0
}),
a = function(e) {
return void 0 === e.inheritDesktop || e.inheritDesktop
}(t);
return i ? void 0 !== e[o.languageAndMobile] ? r = e[o.languageAndMobile] : a && void 0 !== e[o.language] && (r = e[o.language]) : void 0 !== e[o.mobile] ? r = e[o.mobile] : a && void 0 !== e[o.original] && (r = e[o.original]), W.deserialize(t, r)
}
var H = !1;
function J(e, t, n, r) {
void 0 === n && (n = {});
var i = function(e, t) {
var n = {};
for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
if (null != e && "function" == typeof Object.getOwnPropertySymbols) {
var i = 0;
for (r = Object.getOwnPropertySymbols(e); i < r.length; i++) t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]])
}
return n
}(n, []);
void 0 === r && (r = "COMPONENT");
var o = e;
e.COMPONENT || (H || (console.warn("`getSettingsValue` or `getSettingsValues` should accept whole public data object. Probably, data was passed only for one scope."), H = !0), o = {
COMPONENT: e,
APP: {}
});
var a = "COMPONENT" === r && t.inheritFromAppScope,
s = z(o[r], t, i);
return void 0 === s && a && (s = z(o.APP, t, i)), t.getDefaultValue && void 0 === s ? function(e, t, n, r) {
var i, o;
void 0 === r && (r = {});
var a = null !== (i = r.t) && void 0 !== i ? i : function(e) {
var t = e.environmentLabel;
return function(e) {
throw new Error("It is not possible to translate ".concat(e, ". Translate function was not passed to the ").concat(t))
}
}({
environmentLabel: null !== (o = r.environmentLabel) && void 0 !== o ? o : "`getSettingsValue` function"
});
return n.getDefaultValue({
isMobile: r.isMobile,
isRTL: r.isRTL,
isEditorX: r.isEditorX,
t: a,
presetId: r.presetId,
experiments: r.experiments,
getSettingParamValue: function(n, i) {
return void 0 === i && (i = {}), J(e, n, B(B(B({}, r), i), {
t: a
}), t)
}
})
}(o, r, t, i) : s
}
var $ = function() {
var e = function(t, n) {
return e = Object.setPrototypeOf || {
__proto__: []
}
instanceof Array && function(e, t) {
e.__proto__ = t
} || function(e, t) {
for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
}, e(t, n)
};
return function(t, n) {
if ("function" != typeof n && null !== n) throw new TypeError("Class extends value " + String(n) + " is not a constructor or null");
function r() {
this.constructor = t
}
e(t, n), t.prototype = null === n ? Object.create(n) : (r.prototype = n.prototype, new r)
}
}(),
X = function(e) {
function t(t) {
var n, r = this;
(r = e.call(this, t) || this).entry = "viewerScript";
var i, o = t.config,
a = t.widgetId,
s = t.wixAPI.location.query;
return r.isEditorX = function(e) {
var t;
return null !== (t = null == e ? void 0 : e.booleans.responsive) && void 0 !== t && t
}(null === (n = null == o ? void 0 : o.style) || void 0 === n ? void 0 : n.styleParams), r.isADI = (void 0 === (i = s) && (i = {}), "onboarding" === i.dsOrigin), r.isClassicEditor = function(e) {
return void 0 === e && (e = {}), "Editor1.4" === e.dsOrigin
}(s), r.widgetId = a, r
}
return $(t, e), t
}(_),
Y = function(e, t) {
return {
name: e.name,
message: e.message,
stack: e.stack,
errorId: t
}
};
function Q(e, t) {
var n, r, i, o;
this.controllerConfig.wixCodeApi.window.openModal("".concat((n = this.componentName || "", r = e, i = this.controllerConfig.appParams.instance, o = "".concat(n, "/").concat(r), "https://editor.wixapps.net/render/prod/modals/".concat("santa-members-viewer-app", "/").concat("af896f6031e59ef577bbe58086fde922ebd496cd53eb4c2dc72560a5", "/").concat(o, "?instance=").concat(i))), t)
}
var Z = function() {
var e = function(t, n) {
return e = Object.setPrototypeOf || {
__proto__: []
}
instanceof Array && function(e, t) {
e.__proto__ = t
} || function(e, t) {
for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
}, e(t, n)
};
return function(t, n) {
if ("function" != typeof n && null !== n) throw new TypeError("Class extends value " + String(n) + " is not a constructor or null");
function r() {
this.constructor = t
}
e(t, n), t.prototype = null === n ? Object.create(n) : (r.prototype = n.prototype, new r)
}
}(),
ee = function() {
return ee = Object.assign || function(e) {
for (var t, n = 1, r = arguments.length; n < r; n++)
for (var i in t = arguments[n]) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
return e
}, ee.apply(this, arguments)
},
te = function(e, t, n, r) {
return new(n || (n = Promise))((function(i, o) {
function a(e) {
try {
u(r.next(e))
} catch (e) {
o(e)
}
}
function s(e) {
try {
u(r.throw(e))
} catch (e) {
o(e)
}
}
function u(e) {
var t;
e.done ? i(e.value) : (t = e.value, t instanceof n ? t : new n((function(e) {
e(t)
}))).then(a, s)
}
u((r = r.apply(e, t || [])).next())
}))
},
ne = function(e, t) {
var n, r, i, o, a = {
label: 0,
sent: function() {
if (1 & i[0]) throw i[1];
return i[1]
},
trys: [],
ops: []
};
return o = {
next: s(0),
throw: s(1),
return: s(2)
}, "function" == typeof Symbol && (o[Symbol.iterator] = function() {
return this
}), o;
function s(o) {
return function(s) {
return function(o) {
if (n) throw new TypeError("Generator is already executing.");
for (; a;) try {
if (n = 1, r && (i = 2 & o[0] ? r.return : o[0] ? r.throw || ((i = r.return) && i.call(r), 0) : r.next) && !(i = i.call(r, o[1])).done) return i;
switch (r = 0, i && (o = [2 & o[0], i.value]), o[0]) {
case 0:
case 1:
i = o;
break;
case 4:
return a.label++, {
value: o[1],
done: !1
};
case 5:
a.label++, r = o[1], o = [0];
continue;
case 7:
o = a.ops.pop(), a.trys.pop();
continue;
default:
if (!(i = a.trys, (i = i.length > 0 && i[i.length - 1]) || 6 !== o[0] && 2 !== o[0])) {
a = 0;
continue
}
if (3 === o[0] && (!i || o[1] > i[0] && o[1] < i[3])) {
a.label = o[1];
break
}
if (6 === o[0] && a.label < i[1]) {
a.label = i[1], i = o;
break
}
if (i && a.label < i[2]) {
a.label = i[2], a.ops.push(o);
break
}
i[2] && a.ops.pop(), a.trys.pop();
continue
}
o = t.call(e, a)
} catch (e) {
o = [6, e], r = 0
} finally {
n = i = 0
}
if (5 & o[0]) throw o[1];
return {
value: o[0] ? o[1] : void 0,
done: !0
}
}([o, s])
}
}
},
re = function(e, t, n) {
if (n || 2 === arguments.length)
for (var r, i = 0, o = t.length; i < o; i++) !r && i in t || (r || (r = Array.prototype.slice.call(t, 0, i)), r[i] = t[i]);
return e.concat(r || Array.prototype.slice.call(t))
},
ie = function(e) {
function t(t) {
var n, r, i, o, a, s, u, p = t.viewerScriptFlowAPI,
f = t.controllerConfig,
v = t.appDefinitionId,
g = t.widgetId,
b = t.componentId,
m = t.componentName,
_ = t.biLogger,
y = t.prepopulatedData,
w = t.translations,
x = t.fedopsConfig,
C = t.sentryConfig,
O = t.persistentAcrossPages,
P = t.shouldUseEssentials,
S = t.multilingualDisabled,
A = this;
(A = e.call(this, {
httpClient: p._httpClient
}) || this).appLoadStarted = function() {
var e = A.fedops.appLoadStarted;
e.call(A.fedops), A.fedops.appLoadStarted = function() {
for (var t = [], n = 0; n < arguments.length; n++) t[n] = arguments[n];
console.warn("\ud83e\udd7a Seems like you're trying to call `fedopsLogger.appLoadStarted` and `fedopsLogger.appLoaded` in your controller.\nWe are already logging load events for SSR and CSR environments, so you can remove these calls from your project."), e.call.apply(e, re([A.fedops], t, !1))
}
}, A.essentials = f.essentials, A.controllerConfig = f, A.experiments = p.experiments, A.bi = p.bi, A.prepopulatedData = y, A.componentName = m;
var I = f.platformAPIs;
if (A.getCurrencyFormatter = p.getCurrencyFormatter, A.formatCurrency = null === (n = A.getCurrencyFormatter) || void 0 === n ? void 0 : n.call(A), A.formatAddress = p.formatAddress, A.environment = new X({
wixAPI: f.wixCodeApi,
appData: f.appParams,
config: f.config,
widgetId: g
}), !p.bi && _)
if (P) {
var R = A.essentials.biLoggerFactory();
A.bi = _(R)({})
} else(null === (r = f.platformAPIs) || void 0 === r ? void 0 : r.biLoggerFactory) && (A.bi = _(null === (i = f.platformAPIs) || void 0 === i ? void 0 : i.biLoggerFactory())({}));
if (A.sentry = null, A.errorMonitor = null, (null == y ? void 0 : y.sentryMonitor) || (null == y ? void 0 : y.errorMonitor)) A.sentry = null !== (o = null == y ? void 0 : y.sentryMonitor) && void 0 !== o ? o : null, A.errorMonitor = null !== (a = null == y ? void 0 : y.errorMonitor) && void 0 !== a ? a : null;
else if (C)
if (C.errorMonitor && A.essentials.createErrorMonitor) A.errorMonitor = A.essentials.createErrorMonitor({
dsn: C.DSN,
environment: "Viewer:Worker",
version: "af896f6031e59ef577bbe58086fde922ebd496cd53eb4c2dc72560a5",
tags: {
componentId: b,
componentName: m,
isSSR: d(f.wixCodeApi),
isSEO: h(f.wixCodeApi)
}
});
else {
var M = l({
dsn: C.DSN,
environment: "Viewer:Worker",
artifact: "af896f6031e59ef577bbe58086fde922ebd496cd53eb4c2dc72560a5",
withDataCallback: !0,
tags: {
componentId: b,
componentName: m,
isSSR: d(f.wixCodeApi),
isSEO: h(f.wixCodeApi)
}
});
A.sentry = null === (s = I.monitoring) || void 0 === s ? void 0 : s.createMonitor(M.dsn, (function(e) {
return ee(ee({}, e), M.config)
}))
}
if (A.sentry && (A.reportError = function(e) {
return "string" == typeof e ? A.sentry.captureMessage(e) : A.sentry.captureException(e), A.sentry.lastEventId()
}), A.errorMonitor && (A.reportError = function(e) {
return "string" == typeof e ? A.errorMonitor.captureMessage(e) : A.errorMonitor.captureException(e)
}), A.fedops = null, !1 !== (null == x ? void 0 : x.enabled)) {
(null == y ? void 0 : y.fedopsLogger) ? A.fedops = null == y ? void 0 : y.fedopsLogger: A.fedops = P ? A.essentials.fedopsLogger : I.fedOpsLoggerFactory.getLoggerForWidget({
appId: v,
widgetId: g,
paramsOverrides: {
corrId: A.controllerConfig.compId
}
});
var E = !O || 1 === (null === (u = A.controllerConfig.platformAPIs.bi) || void 0 === u ? void 0 : u.pageNumber);
(A.environment.isSSR || E) && A.appLoadStarted()
}
return A.translations = w, A.viewerScriptFlowAPI = p, A.settings = {get: function(e) {
var t, n, r;
return J(null !== (n = null === (t = A.controllerConfig.config) || void 0 === t ? void 0 : t.publicData) && void 0 !== n ? n : {}, e, {
t: null === (r = A.translations) || void 0 === r ? void 0 : r.t,
experiments: A.experiments,
isMobile: A.environment.isMobile,
language: S ? c(A.environment.multilingual) : void 0
})
}
}, A.openModal = Q, A
}
return Z(t, e), t.prototype.init = function() {
var e, t;
return te(this, void 0, void 0, (function() {
return ne(this, (function(n) {
switch (n.label) {
case 0:
return null !== (null === (e = this.translations) || void 0 === e ? void 0 : e.i18n) ? [3, 2] : [4, this.translations.init({
prepopulated: null === (t = this.prepopulatedData) || void 0 === t ? void 0 : t.translations,
useSuspense: this.environment.isEditor || this.environment.isADI
})];
case 1:
n.sent(), n.label = 2;
case 2:
return [2]
}
}))
}))
}, t.prototype.updateControllerConfig = function(e) {
this.controllerConfig.config = e
}, t.prototype.handleError = function(e) {
var t;
this.sentry && (this.reportError(e), t = this.sentry.lastEventId()), this.errorMonitor && (t = this.reportError(e)), this.controllerConfig.setProps({
_workerError: Y(e, t)
})
}, t.prototype.withErrorBoundary = function(e) {
var t = this;
return function() {
for (var n = [], r = 0; r < arguments.length; r++) n[r] = arguments[r];
try {
e.apply(void 0, n)
} catch (e) {
e instanceof Error && t.handleError(e)
}
}
}, t
}(S),
oe = {
language: "_language",
translations: "_translations",
multilingual: "_multilingual",
experiments: "_experiments",
biMethods: "_biMethods",
openModal: "__openModal__",
biUtil: "_biUtil",
mobile: "_mobile",
isRTL: "_isRTL",
isSSR: "_isSSR",
isSEO: "_isSEO",
appDefinitionId: "_appDefinitionId",
widgetId: "_widgetId",
fedopsLogger: "_fedopsLogger",
sentry: "_sentry",
errorMonitor: "_errorMonitor",
publicData: "_publicData",
styles: "__styles",
enabledHOCs: "_enabledHOCs",
onAppLoaded: "_onAppLoaded",
error: "_workerError"
},
ae = function() {
function e() {
this.store = {}
}
return e.prototype.init = function() {}, e.prototype.getProps = function() {
return this.store
}, e.prototype.getProp = function(e) {
var t = this.getPrivateKey(e);
return this.store[t]
}, e.prototype.spreadProp = function(e) {
var t, n = this.getPrivateKey(e);
return (t = {})[n] = this.store[n], t
}, e.prototype.getPrivateKey = function(t) {
return e.PropsMap[t]
}, e.prototype.getFromExternalStore = function(e, t) {
return t[this.getPrivateKey(e)]
}, e.prototype.setProp = function(e, t) {
var n = this.getPrivateKey(e);
this.store[n] = t
}, e.prototype.isHOCEnabled = function(e) {
return this.getProp("enabledHOCs")[e]
}, e.prototype.isFlowPropsReceived = function() {
return !!this.getProp("enabledHOCs")
}, e.PropsMap = oe, e
}(),
se = function(e) {
return function(t) {
var n;
return e.controllerConfig.config.publicData = t, (n = {})[ae.PropsMap.publicData] = t, n
}
},
ue = function() {
return ue = Object.assign || function(e) {
for (var t, n = 1, r = arguments.length; n < r; n++)
for (var i in t = arguments[n]) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
return e
}, ue.apply(this, arguments)
},
le = function(e) {
return function(t) {
var n, r, i;
return e.controllerConfig.config.style.styleParams = (void 0 === (r = e.controllerConfig.config.style.styleParams) && (r = {}), void 0 === (i = t) && (i = {}), ue(ue({}, r), {
colors: ue(ue({}, r.colors), i.colors),
booleans: ue(ue({}, r.booleans), i.booleans),
fonts: ue(ue({}, r.fonts), i.fonts),
numbers: ue(ue({}, r.numbers), i.numbers)
})), (n = {})[ae.PropsMap.styles] = e.controllerConfig.config.style.styleParams, n
}
},
ce = function(e, t, r, i, o, a) {
var s = a(),
u = new ie({
translations: i.createTranslations(t, e, {
basePath: n.p
}),
componentId: t.id,
componentName: t.componentName,
viewerScriptFlowAPI: i,
appDefinitionId: t.appDefinitionId,
widgetId: t.id,
translationsConfig: t.translationsConfig,
persistentAcrossPages: t.persistentAcrossPages,
biLogger: t.biLogger,
fedopsConfig: t.fedopsConfig,
sentryConfig: t.sentryConfig,
controllerConfig: r,
shouldUseEssentials: t.shouldUseEssentials,
multilingualDisabled: t.multilingualDisabled
});
return t.method({
controllerConfig: r,
flowAPI: u,
appData: s,
dangerousPublicDataOverride: se(u),
dangerousStylesOverride: le(u)
})
},
pe = n(448),
fe = n.n(pe);
function de(e) {
if (!e || !e[0]) return [];
return Object.keys(e[0]).includes("isVisible") ? function(e) {
return e.map((e => ({
link: e.link,
isVisibleInMenuBar: e.isVisible,
isVisibleInMobileMenuBar: e.isVisibleMobile,
visibleForRoles: e.visibleForRoles
})))
}(e) : function(e) {
return e.map((e => ({
link: e.l,
isVisibleInMenuBar: !e.hmb,
isVisibleInMobileMenuBar: !e.hmmb,
visibleForRoles: e.vfr || []
})))
}(e)
}
var he = n(186);
const ve = "{userName}",
ge = "{domain}",
be = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12}$/i,
me = [he.dn, he.tt, he.qq, he.sV, "14ebe801-d78a-daa9-c9e5-0286a891e46f", "14dbef06-cc42-5583-32a7-3abd44da4908", "1537b24e-29d1-6d8f-b8e1-d6860f2f70b9", "476dc2dd-e16e-43b0-a0aa-1a486c78fbe2"],
_e = "@members_login",
ye = "@members_menu",
we = "@members-login-bar",
xe = "@members-menu";
let Ce, Oe;
! function(e) {
e.RestrictedMemberPagePermissions = "specs.membersArea.EnableMemberPagePermissions", e.UseWarmupData = "specs.membersArea.UseWarmupDataInViewerScript", e.SampleViewerAppFedopsInteractions = "specs.membersArea.sampleViewerAppFedopsInteractions"
}(Ce || (Ce = {})),
function(e) {
e.InitialData = "initialData"
}(Oe || (Oe = {}));
let Pe, Se, Ae;
const Ie = (e, t) => () => {
try {
! function(e) {
try {
Ae && Se.interactionStarted(e)
} catch (e) {
const t = "Failed to start fedops interaction, reason: " + e;
Pe && Pe.captureException(t)
}
}(e);
const n = t();
return function(e) {
try {
Ae && Se.interactionEnded(e)
} catch (e) {
const t = "Failed to end fedops interaction, reason: " + e;
Pe && Pe.captureException(t)
}
}(e), n
} catch (e) {
throw console.error(e), Pe && Pe.captureException(e.toString()), e
}
};
function Re(e, t) {
var n;
void 0 === t && (t = {}), null != (n = Pe) && n.captureMessage && Pe.captureMessage(e, fe()({
level: "info"
}, t))
}
function Me(e, t) {
var n;
void 0 === t && (t = {}), null != (n = Pe) && n.captureMessage && Pe.captureMessage(e, fe()({
level: "error"
}, t))
}
let Ee;
function ke() {
return Ee
}
class De {
constructor(e) {
this.httpClient = e
}
async get(e) {
try {
return (await this.httpClient.get(e)).data
} catch (e) {
return console.log("error fetching data", e.message), {}
}
}
async post(e, t) {
try {
return (await this.httpClient.post(e, t)).data
} catch (e) {
return console.log("error posting data", e.message), {}
}
}
}
const je = "current-user-slug",
Ue = "current-user-id";
function Ne(e) {
let t, n, r;
return {
getCurrentUser: function() {
var e;
return null != (e = n) ? e : {}
},
setCurrentUser: async
function(t, r) {
const i = await
function(t, n) {
const r = ke(),
i = r.getItem(je),
o = r.getItem(Ue);
if (i && o === t.id) return i;
o && o === t.id || r.setItem(Ue, t.id);
if (!t.loggedIn || "Site" !== e.window.viewMode) return t.id;
return async
function(e) {
var t, n;
const r = new De(e),
i = await r.get("/_api/members/v1/members/my");
return null == (t = i.member) || null == (n = t.profile) ? void 0 : n.slug
}(n).then((e => {
const n = e || t.id;
return r.setItem(je, n), n
})).catch((() => Me("Error while fetching current user slug", {
userDataId: t.id
})))
}(t, r);
n = {
id: t.id,
loggedIn: t.loggedIn,
slug: i
}
},
getViewedUser: function() {
var e;
return null != (e = t) ? e : {}
},
setViewedUser: function(e) {
e && (t = e)
},
fetchRoles: async
function(e, t, n) {
const r = [];
return e && r.push(e), t && r.push(t), new De(n).post("/_api/santa-members-server/temporary/members/roles", r)
},
getRoles: function() {
var e;
return null != (e = r) ? e : {}
},
setRoles: function(e) {
r = e
},
fetchMenuCounters: function(e, t) {
return e && !1 !== e.loggedIn ? new Promise(((n, r) => {
const i = e && e.id;
i && t ? async
function(e, t, n) {
const r = new De(t),
i = await r.get("/_api/santa-members-server/temporary/members/" + e + "/numbers");
n(i)
}(i, t, (e => {
n(e)
})): r(new Error("No user to get menu counters by"))
})) : Promise.resolve({})
},
replaceUserPatternWithSlug: function(e, t) {
return e.replace(ve, t.slug).replace(encodeURI(ve), t.slug)
}
}
}
function Te(e) {
let t = e.location;
const n = t.prefix,
r = t.path,
i = t.query,
o = Object.keys(i).length > 0 ? "?" + (e => Object.keys(e).map((t => t + "=" + e[t])).join("&"))(i) : "";
return "/" + n + "/" + r.join("/") + o
}
let Le;
const Ve = () => Le || [];
function Be(e) {
let t = e.menuItem,
n = e.publicRouterConfig,
r = void 0 === n ? {} : n,
i = e.privateRouterConfig,
o = void 0 === i ? {} : i,
a = e.viewedUser,
s = e.shouldLog,
u = void 0 === s || s,
l = t.link;
a && 0 === l.indexOf("/" + a.slug + "/") && (l = l.replace("/" + a.slug + "/", "/{userName}/"));
const c = l.split("/"),
p = c.indexOf(ve),
f = p > -1 ? "/" + c.splice(p, c.length).join("/") : "/" + c[c.length - 1],
d = r.patterns || {},
h = o.patterns || {},
v = d[f] || h[f];
if (!v && u) {
const e = {
menuItem: t,
publicRouterConfig: r,
privateRouterConfig: o,
viewedUser: a
};
Re("Could not find the pattern for menu item in router configs - probably an invalid (or custom) menu item", {
tags: {
menuItemLink: t.link
},
extra: {
data: JSON.stringify(e)
}
})
}
return v
}
function Fe(e) {
let t = e.menuItems,
n = e.publicRouterPrefix;
const r = t.filter((e => !!e.link || e.items && e.items.length > 0));
return r.forEach((e => {
if (e.link && 0 === e.link.indexOf("undefined/{userName}")) {
const t = e.link.split("/");
e.link = "/" + n + "/" + "{userName}/" + t[2]
}
})), r.forEach((e => {
if (!e.link) return;
if (4 === e.link.split("/").length && -1 === e.link.indexOf(ve)) {
const t = e.link.split("/");
"https:" !== t[0] && "http:" !== t[0] && (e.link = "/" + t[1] + "/" + "{userName}/" + t[3])
}
})), r
}
function Ke(e) {
let t = e.slug,
n = e.options;
const r = function(e, t) {
if (!t) return e;
const n = e.split("/").slice(1);
return n[1].match(be) ? (n[1] = t, "/" + n.join("/")) : e
}(Te(e.wixCodeApi).split("?")[0], t),
i = n.find((e => e.link === r));
return i ? i.value : null
}
function Ge(e) {
let t = e.menu,
n = e.options,
r = e.viewedUser,
i = e.wixCodeApi;
if (!!t.autoNavigation) return;
const o = (r || {}).slug;
t.value = Ke({
slug: o,
options: n,
wixCodeApi: i
}),
function(e) {
let t = e.menu,
n = e.options,
r = e.wixCodeApi;
null == t.onChange || t.onChange((e => {
let i = e.target;
const o = i.value,
a = (n.find((e => e.value === o)) || {}).link;
var s;
a ? r.location.to(a) : Me("Menu navigation request ignored: ", {
menu: t,
target: i,
options: n,
newLink: a,
api: !(null == r || null == (s = r.location) || !s.to)
})
}))
}({
menu: t,
options: n,
wixCodeApi: i
})
}
function qe(e) {
let t = e.menuItems,
n = e.parsedRoutersConfigs,
r = e.userRoles,
i = e.viewedUser,
o = e.appsCounters;
const a = null == n ? void 0 : n.find((e => "public" === e.type)),
s = null == n ? void 0 : n.find((e => "private" === e.type)),
u = function(e) {
let t = e.menuItems,
n = e.publicRouterConfig,
r = e.privateRouterConfig,
i = e.userRoles,
o = void 0 === i ? [] : i,
a = e.viewedUser;
return t.filter((e => {
if (!e.link) return !0;
const t = Be({
menuItem: e,
publicRouterConfig: n,
privateRouterConfig: r,
viewedUser: a
});
if (!t || !t.appData || !t.appData.visibleForRoles || 0 === t.appData.visibleForRoles.length) return !0;
const i = t.appData.visibleForRoles;
return !!(void 0 === i ? [] : i).some((e => o.indexOf(e) > -1))
}))
}({
menuItems: t,
publicRouterConfig: a,
privateRouterConfig: s,
userRoles: r,
viewedUser: i
}),
l = function(e) {
var t;
let n = e.menuItems,
r = e.appsCounters,
i = e.publicRouterConfig,
o = e.privateRouterConfig,
a = e.viewedUser;
return n.forEach((e => {
e.displayCount = null
})), null != r && null != (t = r.apps) && t.length ? (r.apps.forEach((e => {
n.forEach((t => {
if (!t.link) return;
const n = Be({
menuItem: t,
publicRouterConfig: i,
privateRouterConfig: o,
viewedUser: a
});
if (n && n.appData.appDefinitionId === e.appDefId) {
const r = n.appData.numbers && n.appData.numbers.key,
i = e.numbers && r && e.numbers[r];
i && (t.displayCount = i.count)
}
}))
})), n) : n
}({
menuItems: u,
appsCounters: o,
publicRouterConfig: a,
privateRouterConfig: s,
viewedUser: i
});
return function(e) {
let t = e.menuItems,
n = e.viewedUser;
return t.map((e => (e.link && e.link.indexOf(ve) > -1 && (e.link = e.link.replace(ve, n.slug)), e)))
}({
menuItems: l,
viewedUser: i
})
}
function We(e) {
let t = e.menuItems,
n = e.parsedRoutersConfigs,
r = e.viewedUser,
i = e.permittedPagesMap,
o = e.experiments;
if (o && o.enabled(Ce.RestrictedMemberPagePermissions)) {
const e = null == n ? void 0 : n.find((e => "public" === e.type)),
o = null == n ? void 0 : n.find((e => "private" === e.type));
return t.filter((t => {
var n;
const a = Be({
menuItem: t,
publicRouterConfig: e,
privateRouterConfig: o,
viewedUser: r
});
return !a || (null == (n = i[a.page]) || n)
}))
}
return t
}
function ze(e) {
let t = e.menuItems,
n = e.parsedRoutersConfigs,
r = void 0 === n ? [] : n,
i = e.viewedUserRoles,
o = e.viewedUser,
a = e.currentUser,
s = e.appsCounters,
u = e.parsedConfigItems,
l = e.publicRouterPrefix,
c = e.permittedPagesMap,
p = e.experiments;
const f = !o.id && a ? a : o,
d = function(e) {
let t = e.menuItems,
n = e.parsedConfigItems;
if (n) return t.filter((e => {
const t = (n.find((t => t.link === e.link)) || {}).isVisibleInMenuBar;
return "boolean" != typeof t || t
}))
}({
menuItems: Fe({
menuItems: t,
publicRouterPrefix: l
}),
parsedConfigItems: u
}),
h = function(e) {
let t = e.menuItems,
n = e.currentUser,
r = e.viewedUser,
i = e.parsedRoutersConfigs,
o = void 0 === i ? [] : i;
if (!r.id) return t;
if (n && n.id === r.id) return t;
const a = o.find((e => "private" === e.type));
return t.filter((e => !e.link || !Be({
menuItem: e,
viewedUser: r,
privateRouterConfig: a,
shouldLog: !1
})))
}({
menuItems: d || [],
currentUser: a,
viewedUser: o,
parsedRoutersConfigs: r
}),
v = qe({
menuItems: We({
menuItems: h,
parsedRoutersConfigs: r,
permittedPagesMap: c,
viewedUser: o,
experiments: p
}),
parsedRoutersConfigs: r,
userRoles: i,
viewedUser: f,
appsCounters: s
});
return v.forEach((e => {
e.items && e.items.length > 0 && (e.items = ze({
menuItems: e.items,
parsedRoutersConfigs: r,
viewedUserRoles: i,
viewedUser: o,
currentUser: a,
appsCounters: s,
parsedConfigItems: u,
publicRouterPrefix: l
}))
})), {
menuItems: v
}.menuItems.filter((e => !!e.link || e.items && e.items.length > 0))
}
function He(e) {
let t = e.menuItems,
n = e.parsedRoutersConfigs,
r = e.userRoles,
i = e.viewedUser,
o = e.appsCounters,
a = e.publicRouterPrefix,
s = e.permittedPagesMap,
u = e.experiments;
const l = function(e) {
let t = e.menuItems,
n = e.domainUrl;
return t.map((e => (e.link && e.link.indexOf(ge) > -1 && (e.link = e.link.replace(ge, n)), e)))
}({
menuItems: t,
domainUrl: e.domainUrl
});
return qe({
menuItems: We({
menuItems: Fe({
menuItems: l,
publicRouterPrefix: a
}),
parsedRoutersConfigs: n,
permittedPagesMap: s,
viewedUser: i,
experiments: u
}),
parsedRoutersConfigs: n,
userRoles: r,
viewedUser: i,
appsCounters: o
})
}
function Je(e) {
let t = e.menu,
n = e.parsedRoutersConfigs,
r = e.currentUserRoles,
i = e.currentUser,
o = e.appsCounters,
a = e.memoryStorage,
s = e.publicRouterPrefix,
u = e.permittedPagesMap,
l = e.experiments,
c = e.isMobile,
p = e.domainUrl;
const f = Boolean((null == t ? void 0 : t.accountNavBar) && t.accountNavBar.navBarItems && t.accountNavBar.menuItems && c),
d = f ? t.accountNavBar.navBarItems : t.navBarItems || [],
h = f ? null == t ? void 0 : t.accountNavBar.menuItems : t.menuItems || [],
v = "login-dropdown-menu-initial-items-" + t.id;
let g = JSON.parse(a.getItem(v));
if (!g) {
const e = JSON.stringify(h);
a.setItem(v, e), g = h
}
const b = He({
menuItems: d,
parsedRoutersConfigs: n,
userRoles: r,
viewedUser: i,
appsCounters: o,
publicRouterPrefix: s,
permittedPagesMap: u,
experiments: l,
domainUrl: p
}),
m = He({
menuItems: g,
parsedRoutersConfigs: n,
userRoles: r,
viewedUser: i,
appsCounters: o,
publicRouterPrefix: s,
permittedPagesMap: u,
experiments: l,
domainUrl: p
});
f ? (t.accountNavBar.navBarItems = b, t.accountNavBar.menuItems = m) : (t.navBarItems = b, t.menuItems = m)
}
function $e(e) {
let t = e.wixCodeApi,
n = e.menu,
r = e.parsedRoutersConfigs,
i = e.viewedUserRoles,
o = e.currentUser,
a = e.viewedUser,
s = e.appsCounters,
u = e.parsedConfigItems,
l = e.memoryStorage,
c = e.publicRouterPrefix,
p = e.permittedPagesMap,
f = e.experiments;
const d = e.isMobile && void 0 !== n.options && void 0 === n.items,
h = d ? n.options || [] : n.items || [],
v = "members-menu-initial-items-" + n.id;
let g = JSON.parse(l.getItem(v));
if (!g) {
const e = JSON.stringify(h);
l.setItem(v, e), g = h
}
const b = ze({
menuItems: g,
parsedRoutersConfigs: r,
viewedUserRoles: i,
currentUser: o,
viewedUser: a,
appsCounters: s,
parsedConfigItems: u,
publicRouterPrefix: c,
permittedPagesMap: p,
experiments: f
});
d ? (n.options = b, Ge({
menu: n,
options: b,
viewedUser: a,
wixCodeApi: t
})) : n.items = b
}
function Xe(e) {
let t = e.$w,
n = e.parsedRoutersConfigs,
r = void 0 === n ? [] : n,
i = e.currentUserRoles,
o = e.currentUser,
a = e.appsCounters,
s = e.memoryStorage,
u = e.publicRouterPrefix,
l = e.permittedPagesMap,
c = void 0 === l ? {} : l,
p = e.experiments,
f = e.isMobile,
d = e.wixCodeApi;
const h = null == d ? void 0 : d.location.baseUrl;
if (o.loggedIn) {
const e = t(_e),
n = t(we);
e.forEach((e => Je({
menu: e,
parsedRoutersConfigs: r,
currentUserRoles: i,
currentUser: o,
appsCounters: a,
memoryStorage: s,
publicRouterPrefix: u,
permittedPagesMap: c,
experiments: p,
isMobile: f,
domainUrl: h
}))), n.forEach((e => Je({
menu: e,
parsedRoutersConfigs: r,
currentUserRoles: i,
currentUser: o,
appsCounters: a,
memoryStorage: s,
publicRouterPrefix: u,
permittedPagesMap: c,
experiments: p,
isMobile: f,
domainUrl: h
}))), v = [...Ve(), ...e, ...n], Le = v
}
var v
}
function Ye(e) {
let t = e.$w,
n = e.wixCodeApi,
r = e.parsedRoutersConfigs,
i = void 0 === r ? [] : r,
o = e.viewedUserRoles,
a = void 0 === o ? [] : o,
s = e.currentUser,
u = e.viewedUser,
l = e.appsCounters,
c = e.parsedConfigItems,
p = e.memoryStorage,
f = e.publicRouterPrefix,
d = e.permittedPagesMap,
h = void 0 === d ? {} : d,
v = e.experiments,
g = e.isMobile;
const b = t(ye),
m = t(xe);
b.forEach((e => $e({
wixCodeApi: n,
menu: e,
parsedRoutersConfigs: i,
viewedUserRoles: a,
currentUser: s,
viewedUser: u,
appsCounters: l,
parsedConfigItems: c,
memoryStorage: p,
publicRouterPrefix: f,
permittedPagesMap: h,
experiments: v,
isMobile: g
}))), m.forEach((e => $e({
wixCodeApi: n,
menu: e,
parsedRoutersConfigs: i,
viewedUserRoles: a,
currentUser: s,
viewedUser: u,
appsCounters: l,
parsedConfigItems: c,
memoryStorage: p,
publicRouterPrefix: f,
permittedPagesMap: h,
experiments: v,
isMobile: g
})))
}
var Qe = n(213),
Ze = n.n(Qe);
class et {
constructor(e, t) {
this.httpClient = e, this.experiments = t, Ze()(this, "adminGroupId", "00000000-0000-0000-0000-000000000001"), Ze()(this, "restrictedPagesContext", "Pages"), Ze()(this, "permittedPagesExperiment", Ce.RestrictedMemberPagePermissions)
}
async getPermittedPagesMap(e, t) {
const n = Object.values(e);
if (!this.shouldFetchPermittedPages(n, t)) return {};
const r = await this.fetchRestrictedPagesPermission();
if (!this.hasRestrictedPages(r, n)) return this.getPermittedPagesMapFallback(Object.keys(e), !0);
const i = this.getNonRestrictedPages(r, n),
o = this.getRestrictedMemberPages(r, n),
a = await this.checkPermissionsForRestrictedPages(r.id, o);
return this.toPermittedPagesMap(e, i, a)
}
toPermittedPagesMap(e, t, n) {
return Object.entries(e).reduce(((e, r) => {
let i = r[0],
o = r[1];
return t.includes(o) ? fe()({}, e, {
[i]: !0
}) : fe()({}, e, {
[i]: n[o]
})
}), {})
}
getRestrictedMemberPages(e, t) {
return e.resourceIds.filter((e => t.includes(e)))
}
getNonRestrictedPages(e, t) {
return t.filter((t => !e.resourceIds.includes(t)))
}
getPermittedPagesMapFallback(e, t) {
return e.reduce(((e, n) => fe()({}, e, {
[n]: t
})), {})
}
async checkPermissionsForRestrictedPages(e, t) {
var n;
const r = "/_api/members-groups-web/v1/permissions/" + e,
i = {
params: {
resourceId: t
}
},
o = this.getPermittedPagesMapFallback(t, !1),
a = await(null == (n = this.httpClient) ? void 0 : n.get(r, i).then((e => e.data.isPermitted)).catch((() => null)));
return null != a ? a : o
}
async fetchRestrictedPagesPermission() {
var e, t;
const n = "/_api/members-groups-web/v1/groups/" + this.adminGroupId + "/permissions",
r = await(null == (e = this.httpClient) ? void 0 : e.get(n).then((e => e.data.permissions)).catch((() => null)));
return null != (t = null == r ? void 0 : r.find((e => {
let t = e.context;
return this.restrictedPagesContext === t
}))) ? t : null
}
hasRestrictedPages(e, t) {
return !(null == e || !e.resourceIds.length) && t.some((t => e.resourceIds.includes(t)))
}
shouldFetchPermittedPages(e, t) {
var n;
const r = null == (n = this.experiments) ? void 0 : n.enabled(this.permittedPagesExperiment);
return null != r && r && e.length > 0 && "Site" === t
}
}
const tt = e => {
const t = {};
return e.forEach((e => {
var n;
Object.entries(null != (n = e.pages) ? n : {}).forEach((e => {
let n = e[0],
r = e[1];
t[n] = r
}))
})), t
};
class nt {
constructor(e) {
this.storage = e
}
hasCurrentUser(e) {
const t = this.getCurrentUserCacheKey(e);
return this.hasItemInStorage(t)
}
getCurrentUser(e) {
const t = this.getCurrentUserCacheKey(e);
return this.getItemFromStorage(t)
}
setCurrentUser(e, t) {
const n = this.getCurrentUserCacheKey(e);
return this.setItemToStorage(n, t)
}
hasViewedUser(e, t) {
const n = this.getViewedUserCacheKey(e, t);
return this.hasItemInStorage(n)
}
getViewedUser(e, t) {
const n = this.getViewedUserCacheKey(e, t);
return this.getItemFromStorage(n)
}
setViewedUser(e, t, n) {
const r = this.getViewedUserCacheKey(e, t);
return this.setItemToStorage(r, n)
}
hasRoles(e, t) {
const n = this.getRolesCacheKey(e, t);
return this.hasItemInStorage(n)
}
getRoles(e, t) {
const n = this.getRolesCacheKey(e, t);
return this.getItemFromStorage(n)
}
setRoles(e, t, n) {
const r = this.getRolesCacheKey(e, t);
return this.setItemToStorage(r, n)
}
hasNumbers(e, t) {
const n = this.getNumbersCacheKey(e, t);
return this.hasItemInStorage(n)
}
getNumbers(e, t) {
const n = this.getNumbersCacheKey(e, t);
return this.getItemFromStorage(n)
}
setNumbers(e, t, n) {
const r = this.getNumbersCacheKey(e, t);
return this.setItemToStorage(r, n)
}
hasItemInStorage(e) {
return !!this.storage.getItem(e)
}
getItemFromStorage(e) {
const t = this.storage.getItem(e);
return t ? JSON.parse(t) : null
}
setItemToStorage(e, t) {
return this.storage.setItem(e, JSON.stringify(t))
}
getCurrentUserCacheKey(e) {
return "cu-" + e
}
getViewedUserCacheKey(e, t) {
return "vu-" + t + "-" + e
}
getRolesCacheKey(e, t) {
return t ? "roles-" + t + "-" + e : "roles-" + e
}
getNumbersCacheKey(e, t) {
return "numbers-" + t + "-" + e
}
}
function rt(e) {
var t;
const n = e.find((e => "public" === JSON.parse(e.config).type));
if (!n) return;
const r = JSON.parse(n.config),
i = n.prefix,
o = Object.keys(null != (t = r.patterns) ? t : {}),
a = o.find((e => !0 === r.patterns[e].socialHome));
if (a) return {
routerPrefix: i,
patternKey: a,
pageData: r.patterns[a]
};
if (o.length > 0) {
const e = o[0];
return {
routerPrefix: i,
patternKey: e,
pageData: r.patterns[e]
}
}
}
const it = () => {};
class ot {
constructor(e) {
let t = e.appRouters,
n = e.routerReturnedData,
r = e.wixCodeApi,
i = e.cacheService;
Ze()(this, "wixLocation", void 0), Ze()(this, "wixSite", void 0), Ze()(this, "isMobile", void 0), Ze()(this, "appRouters", void 0), Ze()(this, "routerReturnedData", void 0), Ze()(this, "wixCodeApi", void 0), Ze()(this, "cacheService", void 0), this.wixLocation = r.location, this.wixSite = r.site, this.isMobile = "Mobile" === r.window.formFactor, this.appRouters = t, this.routerReturnedData = n, this.wixCodeApi = r, this.cacheService = i
}
async matchRoute(e) {
let t = e.appDefinitionId,
n = e.sectionId,
r = e.onSuccess,
i = void 0 === r ? it : r,
o = e.onError,
a = void 0 === o ? it : o;
t && n || a("Error: please provide app ID and section ID for navigation");
let s = !1;
if (this.appRouters.forEach((e => {
if (s) return;
const r = JSON.parse(e.config);
return r.patterns && Object.keys(r.patterns).forEach((o => {
if (s) return;
const a = r.patterns[o];
a.appData && a.appData.appDefinitionId === t && a.appData.appPageId === n && (s = !0, i(e.prefix, o))
}))
})), !s) {
const e = ((await this.wixSite.getSiteStructure()).pages || []).filter((e => e.applicationId === t && !e.prefix)).pop();
return e ? (s = !0, i("", e.url)) : a("Error: can not resolve route for app " + t + " and page " + n)
}
}
getRouterOptions(e) {
const t = (e.appRouters || []).map((e => fe()({}, e, {
config: JSON.parse(e.config)
}))),
n = t.map((e => e.config));
return {
publicRouterPrefix: t.find((e => "public" === e.config.type)).prefix,
parsedRoutersConfigs: n
}
}
getMenuRenderOptions(e) {
let t = e.config,
n = e.userService,
r = e.appsCounters,
i = e.enablePreview;
const o = t.$w,
a = t.appParams,
s = this.getRouterOptions(a),
u = s.parsedRoutersConfigs,
l = s.publicRouterPrefix,
c = n.getViewedUser();
return {
$w: o,
wixCodeApi: this.wixCodeApi,
publicRouterPrefix: l,
parsedRoutersConfigs: u,
appsCounters: r,
memoryStorage: ke(),
parsedConfigItems: de(t.config),
currentUser: n.getCurrentUser(),
viewedUser: i ? fe()({}, c, {
id: "00000000-0000-0000-0000-000000000000"
}) : c,
viewedUserRoles: n.getRoles()[c.id] || [],
isMobile: this.isMobile,
experiments: t.essentials.experiments
}
}
static hasSocialApp(e) {
const t = e.applicationId;
return me.indexOf(t) > -1
}
async hasSocialPages(e, t) {
if (!this.appRouters) throw t && t("App routers not initialised"), new Error("App routers not initialised");
const n = this.appRouters.filter((e => {
const t = JSON.parse(e.config);
return "public" === t.type && t.patterns && Object.keys(t.patterns).length > 0
})),
r = (await this.wixSite.getSiteStructure()).pages.filter(ot.hasSocialApp);
return e && e(n.length > 0 || r.length > 0), n.length > 0 || r.length > 0
}
async getViewedUser(e, t) {
var n;
const r = null == (n = this.routerReturnedData) ? void 0 : n.memberData.memberContactId;
if (r) return e && e(r), r;
throw t && t("Error getting viewed user"), new Error("Error getting viewed user")
}
async navigateToSection(e, t) {
let n = e.appDefinitionId,
r = e.sectionId,
i = e.tpaInnerRoute,
o = void 0 === i ? "" : i,
a = e.memberId,
s = void 0 === a ? "" : a;
await this.matchRoute({
appDefinitionId: n,
sectionId: r,
onSuccess: (e, t) => {
var n, r;
e && 0 !== e.indexOf("/") && (e = "/" + e), o && "/" !== o.charAt(0) && (o = "/" + o), null == (n = (r = this.wixLocation).to) || n.call(r, "" + e + (s ? t.replace(ve, s) : t) + o)
},
onError: e => {
throw t && t(e), new Error(e)
}
})
}
async getSectionUrl(e, t) {
let n = e.appDefinitionId,
r = e.sectionId,
i = e.memberId,
o = void 0 === i ? "" : i,
a = e.memberSlug;
return new Promise(((e, i) => {
const s = a || o;
this.matchRoute({
appDefinitionId: n,
sectionId: r,
onSuccess: (n, r) => {
n && 0 === n.indexOf("/") && (n = n.substring(1)), n || 0 !== r.indexOf("/") || (r = r.substring(1));
let i = this.wixLocation.baseUrl;
"/" !== i.slice(-1) && (i += "/");
const o = Object.keys(this.wixLocation.query).map((e => e + "=" + this.wixLocation.query[e])).join("&");
t && t("" + i + n + (s ? r.replace(ve, s) : r) + (o ? "?" + o : "")), e("" + i + n + (s ? r.replace(ve, s) : r) + (o ? "?" + o : ""))
},
onError: () => {
console.error("Route not found for app", n, "and section", r), t && t(this.wixLocation.url), i(this.wixLocation.url)
}
})
}))
}
async getNavigatableRoles() {
const e = rt(this.appRouters);
if (e) {
var t, n;
return {
navigatableMembersRoles: null != (t = null == (n = e.pageData.appData) ? void 0 : n.visibleForRoles) ? t : [],
isNavigationAllowed: !0
}
}
return {
navigatableMembersRoles: [],
isNavigationAllowed: !1
}
}
async navigateToMember(e, t) {
let n = e.memberId;
const r = e.memberSlug || n;
if (!n) throw t && t("Error: please provide site member ID"), new Error("Error: please provide site member ID");
const i = rt(this.appRouters);
if (i) {
var o, a;
const e = "/" + i.routerPrefix + i.patternKey.replace(ve, r);
null == (o = (a = this.wixLocation).to) || o.call(a, e)
}
}
async getMemberPagePrefix(e, t, n) {
let r = e.type,
i = void 0 === r ? "public" : r;
if (!this.appRouters) throw n && n("Can not get prefix for type " + i + " - no routers"), new Error("Can not get prefix for type " + i + " - no routers");
const o = this.appRouters.filter((e => JSON.parse(e.config).type === i)).pop();
if (!o) throw n && n("Can not get prefix for type " + i), new Error("Can not get prefix for type " + i);
return t && t({
type: i,
prefix: o.prefix
}), {
type: i,
prefix: o.prefix
}
}
setNotificationCount(e) {
Ve().forEach((t => {
var n;
null != (n = t.navBarItems) && n.length && (t.navBarItems = [fe()({}, t.navBarItems[0], {
displayCount: e
})])
}))
}
async enterPublicProfilePreviewMode(e) {
var t, n;
let r = e.config,
i = e.userService;
const o = r.appParams,
a = r.essentials.httpClient,
s = i.getViewedUser(),
u = null == (t = this.wixCodeApi) || null == (n = t.site) || null == n.getAppToken ? void 0 : n.getAppToken(o.appDefinitionId),
l = this.cacheService.hasNumbers(u, s.id) ? this.cacheService.getNumbers(u, s.id) : i.fetchMenuCounters(s, a),
c = this.getMenuRenderOptions({
config: r,
userService: i,
appsCounters: l,
enablePreview: !0
});
return Ie("renderMembersMenuItems", (() => Ye(c)))()
}
leavePublicProfilePreviewMode(e) {
var t, n;
let r = e.config,
i = e.userService;
const o = r.appParams,
a = r.essentials.httpClient,
s = i.getViewedUser(),
u = null == (t = this.wixCodeApi) || null == (n = t.site) || null == n.getAppToken ? void 0 : n.getAppToken(o.appDefinitionId),
l = this.cacheService.hasNumbers(u, s.id) ? this.cacheService.getNumbers(u, s.id) : i.fetchMenuCounters(s, a),
c = this.getMenuRenderOptions({
config: r,
userService: i,
appsCounters: l,
enablePreview: !1
});
return Ie("renderMembersMenuItems", (() => Ye(c)))()
}
clearMenus(e) {
let t = e.config;
return function(e) {
const t = e(ye),
n = e(xe);
t.forEach((e => {
e.items = []
})), n.forEach((e => {
e.items = []
}))
}(null == t ? void 0 : t.$w)
}
}
let at, st, ut, lt, ct;
const pt = async(e, t, n, r, i) => {
let o = e.appDefinitionId,
a = e.routerReturnedData,
s = e.appRouters,
u = void 0 === s ? [] : s,
l = t.storage;
if (ut = Ne(n), ct = (e => new nt(e.memory))(l), lt = ((e, t) => new et(e, t))(r, i), st = new ot({
appRouters: u,
routerReturnedData: a,
wixCodeApi: n,
cacheService: ct
}), function(e) {
Ee = e
}(l.memory), await ut.setCurrentUser(n.user.currentUser, r), !a) return Promise.resolve();
const c = null == n.site.getAppToken ? void 0 : n.site.getAppToken(o),
p = a.memberData && a.memberData.slugs || [],
f = a.memberData && a.memberData.memberContactId || a.userId,
d = p.find((e => e.primary)),
h = {
id: f,
slug: d && d.name || f
};
ut.setViewedUser(h), ut.setRoles(a.roles || {}), a.roles && ct.setRoles(c, f, a.roles)
},
ft = async(e, t, n) => {
if (t) return {
currentUserCounters: void 0,
viewedUserCounters: void 0
};
const r = ut.getCurrentUser(),
i = ut.getViewedUser(),
o = async t => {
if (ct.hasNumbers(e, t.id)) return ct.getNumbers(e, t.id);
const r = await ut.fetchMenuCounters(t, n);
return ct.setNumbers(e, t.id, r), r
},
a = i.id === r.id,
s = o(r),
u = await Promise.all([s, a ? s : i.id ? o(i) : {}]);
return {
currentUserCounters: u[0],
viewedUserCounters: u[1]
}
},
dt = async(e, t) => {
const n = ut.getCurrentUser(),
r = ut.getViewedUser();
if (ct.hasRoles(e, null == r ? void 0 : r.id)) return ct.getRoles(e, null == r ? void 0 : r.id);
const i = await ut.fetchRoles(r.id, n.id, t);
return ct.setRoles(e, null == r ? void 0 : r.id, i), i
};
function ht(e, t) {
const n = e.wixCodeApi,
r = e.$w,
i = e.essentials.experiments,
o = ut.getViewedUser(),
a = ut.getCurrentUser(),
s = "Mobile" === n.window.formFactor,
u = ke(),
l = t.permittedPagesMap,
c = t.parsedRoutersConfigs,
p = t.viewedUserRoles,
f = t.parsedConfigItems,
d = t.counters.viewedUserCounters,
h = t.publicRouterPrefix;
Ie("renderMembersMenuItems", (() => Ye({
$w: r,
wixCodeApi: n,
parsedRoutersConfigs: c,
viewedUserRoles: p,
viewedUser: o,
currentUser: a,
appsCounters: d,
parsedConfigItems: f,
memoryStorage: u,
publicRouterPrefix: h,
permittedPagesMap: l,
experiments: i,
isMobile: s
})))()
}
function vt(e, t) {
const n = e.$w,
r = e.essentials.experiments,
i = e.wixCodeApi,
o = ut.getCurrentUser(),
a = "Mobile" === i.window.formFactor,
s = ke(),
u = t.permittedPagesMap,
l = t.parsedRoutersConfigs,
c = t.counters.currentUserCounters,
p = t.publicRouterPrefix,
f = t.currentUserRoles;
Ie("renderLoginMenuItems", (() => Xe({
$w: n,
parsedRoutersConfigs: l,
currentUserRoles: f,
currentUser: o,
appsCounters: c,
memoryStorage: s,
publicRouterPrefix: p,
permittedPagesMap: u,
experiments: r,
isMobile: a,
wixCodeApi: i
})))()
}
function gt(e, t) {
vt(e, t), ht(e, t)
}
const bt = e => {
at = e
},
mt = (e, t) => ut.setCurrentUser(e, t),
_t = {
hasSocialPages: (e, t) => Ie("publicApi.hasSocialPages", (() => st.hasSocialPages(e, t)))(),
getViewedUser: (e, t) => Ie("publicApi.getViewedUser", (() => st.getViewedUser(e, t)))(),
navigateToSection: (e, t) => Ie("publicApi.navigateToSection", (() => st.navigateToSection(e, t)))(),
navigateToMember: (e, t) => Ie("publicApi.navigateToMember", (() => st.navigateToMember(e, t)))(),
getNavigatableRoles: e => Ie("publicApi.getNavigatableRoles", (() => st.getNavigatableRoles()))(),
getSectionUrl: (e, t) => Ie("publicApi.getSectionUrl", (() => st.getSectionUrl(e, t)))(),
getMemberPagePrefix: (e, t, n) => Ie("publicApi.getMemberPagePrefix ", (() => st.getMemberPagePrefix(e, t, n)))(),
setNotificationCount: e => Ie("publicApi.setNotificationCount", (() => st.setNotificationCount(e)))(),
enterPublicProfilePreviewMode: () => Ie("publicApi.enterPublicProfilePreviewMode", (() => st.enterPublicProfilePreviewMode({
userService: ut,
config: at
})))(),
leavePublicProfilePreviewMode: () => Ie("publicApi.leavePublicProfilePreviewMode", (() => st.leavePublicProfilePreviewMode({
userService: ut,
config: at
})))(),
clearMenus: () => Ie("publicApi.clearMenus", (() => st.clearMenus({
config: at
})))()
},
yt = (e, t, n) => {
const r = ((e, t) => {
const n = e.location,
r = n.prefix,
i = n.path,
o = t.find((e => "public" === e.config.type));
if ((null == o ? void 0 : o.prefix) === r) return "/" + r + "/{userName}/" + i.slice(1).join("/");
return "/" + r + "/" + i.join("/")
})(t, n),
i = e => {
if (e.onChange) {
var t, n;
const i = null == (t = e.options) ? void 0 : t.find((e => e.link === r));
e.value = null != (n = null == i ? void 0 : i.value) ? n : e.value
}
};
e(ye).forEach(i), e(xe).forEach(i)
};
var wt = async e => {
let t = e.controllerConfig,
n = e.appData,
r = e.flowAPI;
const i = t.wixCodeApi,
o = t.essentials.httpClient,
a = t.$w,
s = !!a(_e).length,
u = !!a(we).length,
l = !!a(ye).length,
c = !!a(xe).length;
if (!(s || u || l || c)) return {
pageReady() {}
};
const p = "Editor" === i.window.viewMode;
return bt(t), i.user.onLogin((e => Ie("onLogin", (() => mt(e, o).then((() => gt(t, n)))))())), {
async pageReady() {
p ? r.environment.isMobile && yt(a, i, n.parsedRouters) : gt(t, n)
}
}
};
var xt = async e => {
let t = e.controllerConfig,
n = e.appData,
r = e.flowAPI;
const i = t.wixCodeApi,
o = t.essentials.httpClient,
a = "Editor" === i.window.viewMode;
return bt(t), i.user.onLogin((e => Ie("onLogin", (() => mt(e, o).then((() => vt(t, n)))))())), {
async pageReady() {
a ? r.environment.isMobile && yt($w, i, n.parsedRouters) : vt(t, n)
}
}
};
var Ct = async e => {
let t = e.controllerConfig,
n = e.appData,
r = e.flowAPI;
const i = t.wixCodeApi,
o = t.essentials.httpClient,
a = "Editor" === i.window.viewMode;
return bt(t), i.user.onLogin((e => Ie("onLogin", (() => mt(e, o).then((() => ht(t, n)))))())), {
async pageReady() {
a ? r.environment.isMobile && yt($w, i, n.parsedRouters) : ht(t, n)
}
}
};
const Ot = async(e, t, n, r, i) => {
((e, t, n) => {
const r = n.enabled(Ce.SampleViewerAppFedopsInteractions),
i = Math.random();
Ae = !r || .1 >= i, Pe = t.monitoring.createMonitor("https://fe0974951f45411fbe57fbbd7c30bbf2@sentry.wixpress.com/28"), Pe && Pe.setUserContext({
msid: t.bi.metaSiteId
}), Se = t.fedOpsLoggerFactory.getLoggerForWidget({
appName: "santa-members-viewer-app",
appId: e.appDefinitionId
})
})(e, r, i.experiments);
const o = i.httpClient;
return await Ie("initAppForPage", (() => pt(e, t, n, o, i.experiments)))(), await((e, t) => {
const n = ut.getViewedUser();
if ("Site" === e.window.viewMode) {
const i = Te(e),
o = ut.replaceUserPatternWithSlug(i, n);
var r;
if (i !== o) return Re("Deprecation check: redirect", {
tags: {
viewerName: null == (r = t.bi) ? void 0 : r.viewerName
},
extra: {
from: i,
to: o
}
}), null == e.location.to ? void 0 : e.location.to(o)
}
})(n, t), async
function(e) {
var t;
let n = e.wixCodeApi,
r = e.appParams,
i = e.flowApi;
const o = i.httpClient,
a = i.experiments,
s = ut.getCurrentUser(),
u = ut.getRoles(),
l = ut.getViewedUser(),
c = s.loggedIn && 0 === Object.keys(u).length,
p = null == n.site.getAppToken ? void 0 : n.site.getAppToken(r.appDefinitionId),
f = "backend" === n.window.rendering.env,
d = (r.appRouters || []).map((e => fe()({}, e, {
config: JSON.parse(e.config)
}))),
h = d.map((e => e.config)),
v = () => Promise.all([ft(p, f, o), c ? dt(p, o) : {}, lt.getPermittedPagesMap(tt(d), n.window.viewMode)]);
let g;
i.environment.isSSR && a.enabled(Ce.UseWarmupData) ? (g = await v(), n.window.warmupData.set(Oe.InitialData, g)) : g = n.window.warmupData.get(Oe.InitialData) || await v();
const b = g,
m = b[0],
_ = b[1],
y = b[2];
c && ut.setRoles(_);
const w = de(r),
x = ut.getRoles()[s.id] || [],
C = ut.getRoles()[l.id] || [],
O = d.find((e => "public" === e.config.type)),
P = null != (t = null == O ? void 0 : O.prefix) ? t : "";
return {
counters: m,
permittedPagesMap: y,
parsedRouters: d,
parsedRoutersConfigs: h,
parsedConfigItems: w,
currentUserRoles: x,
viewedUserRoles: C,
publicRouterPrefix: P
}
}({
appParams: e,
wixCodeApi: n,
flowApi: i
})
},
Pt = () => _t;
var St = {
disabled: {
on: "disable",
off: "enable"
},
hidden: {
on: "hide",
off: "show"
},
collapsed: {
on: "collapse",
off: "expand"
}
},
At = function(e, t, n) {
return function(r, i) {
if (!i) throw new Error("No selector found " + r);
var o = null != n ? n : e(r),
a = "data" in i;
a && function(e, t, n) {
void 0 !== t && e.onItemReady(n.action((function(e, r, i) {
var o = At(e, n),
a = t(r, o, i);
a && It(e, n)(a)
})))
}(o, i.item, t);
var s = function(e) {
return "currentState" in e
}(i);
s && i.currentState && t.reaction(i.currentState, (function(e) {
o.changeState(e)
}));
for (var u = function(n, i) {
return void 0 === i || a && "item" === n || s && "currentState" === n ? "continue" : n.startsWith("on") ? (o[n](t.action(i)), "continue") : function(e) {
return "object" == typeof e
}(i) ? (At(e, t, i)(r, i), "continue") : void(n && t.reaction(i, (function(e) {
if (n in St) {
var t = function(e) {
return St[e]
}(n)[e ? "on" : "off"];
o[t] && o[t]()
} else o[n] = e
}), {
fireImmediately: !0
}))
}, l = 0, c = Object.entries(i); l < c.length; l++) {
var p = c[l];
u(p[0], p[1])
}
}
},
It = function(e, t) {
return function(n) {
for (var r = At(e, t), i = 0, o = Object.entries(n); i < o.length; i++) {
var a = o[i],
s = a[0],
u = a[1];
u && r(s, u)
}
}
},
Rt = function(e) {
return function(t) {
if (!t) throw new Error("Trying to initialize state without $w.");
return {
$bindAll: It(t, e),
$bind: At(t, e)
}
}
},
Mt = function(e, t) {
var n, r;
return null !== (r = null === (n = t.observable) || void 0 === n ? void 0 : n.call(t, e)) && void 0 !== r ? r : e
},
Et = function(e) {
return function(t) {
if (!t) throw new Error("Trying to initialize state without default state.");
return {
state: Mt(t, e)
}
}
};
function kt(e) {
for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++) n[r - 1] = arguments[r];
throw new Error("number" == typeof e ? "[MobX] minified error nr: " + e + (n.length ? " " + n.map(String).join(",") : "") + ". Find the full error at: https://github.com/mobxjs/mobx/blob/main/packages/mobx/src/errors.ts" : "[MobX] " + e)
}
var Dt = {};
function jt() {
return "undefined" != typeof globalThis ? globalThis : "undefined" != typeof window ? window : void 0 !== n.g ? n.g : "undefined" != typeof self ? self : Dt
}
var Ut = Object.assign,
Nt = Object.getOwnPropertyDescriptor,
Tt = Object.defineProperty,
Lt = Object.prototype,
Vt = [];
Object.freeze(Vt);
var Bt = {};
Object.freeze(Bt);
var Ft = "undefined" != typeof Proxy,
Kt = Object.toString();
function Gt() {
Ft || kt("Proxy not available")
}
function qt(e) {
var t = !1;
return function() {
if (!t) return t = !0, e.apply(this, arguments)
}
}
var Wt = function() {};
function zt(e) {
return "function" == typeof e
}
function Ht(e) {
switch (typeof e) {
case "string":
case "symbol":
case "number":
return !0
}
return !1
}
function Jt(e) {
return null !== e && "object" == typeof e
}
function $t(e) {
if (!Jt(e)) return !1;
var t = Object.getPrototypeOf(e);
if (null == t) return !0;
var n = Object.hasOwnProperty.call(t, "constructor") && t.constructor;
return "function" == typeof n && n.toString() === Kt
}
function Xt(e) {
var t = null == e ? void 0 : e.constructor;
return !!t && ("GeneratorFunction" === t.name || "GeneratorFunction" === t.displayName)
}
function Yt(e, t, n) {
Tt(e, t, {
enumerable: !1,
writable: !0,
configurable: !0,
value: n
})
}
function Qt(e, t, n) {
Tt(e, t, {
enumerable: !1,
writable: !1,
configurable: !0,
value: n
})
}
function Zt(e, t) {
var n = "isMobX" + e;
return t.prototype[n] = !0,
function(e) {
return Jt(e) && !0 === e[n]
}
}
function en(e) {
return e instanceof Map
}
function tn(e) {
return e instanceof Set
}
var nn = void 0 !== Object.getOwnPropertySymbols;
var rn = "undefined" != typeof Reflect && Reflect.ownKeys ? Reflect.ownKeys : nn ? function(e) {
return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))
} : Object.getOwnPropertyNames;
function on(e) {
return null === e ? null : "object" == typeof e ? "" + e : e
}
function an(e, t) {
return Lt.hasOwnProperty.call(e, t)
}
var sn = Object.getOwnPropertyDescriptors || function(e) {
var t = {};
return rn(e).forEach((function(n) {
t[n] = Nt(e, n)
})), t
};
function un(e, t) {
for (var n = 0; n < t.length; n++) {
var r = t[n];
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r)
}
}
function ln(e, t, n) {
return t && un(e.prototype, t), n && un(e, n), Object.defineProperty(e, "prototype", {
writable: !1
}), e
}
function cn() {
return cn = Object.assign || function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
}
return e
}, cn.apply(this, arguments)
}
function pn(e, t) {
e.prototype = Object.create(t.prototype), e.prototype.constructor = e, fn(e, t)
}
function fn(e, t) {
return fn = Object.setPrototypeOf || function(e, t) {
return e.__proto__ = t, e
}, fn(e, t)
}
function dn(e) {
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
return e
}
function hn(e, t) {
(null == t || t > e.length) && (t = e.length);
for (var n = 0, r = new Array(t); n < t; n++) r[n] = e[n];
return r
}
function vn(e, t) {
var n = "undefined" != typeof Symbol && e[Symbol.iterator] || e["@@iterator"];
if (n) return (n = n.call(e)).next.bind(n);
if (Array.isArray(e) || (n = function(e, t) {
if (e) {
if ("string" == typeof e) return hn(e, t);
var n = Object.prototype.toString.call(e).slice(8, -1);
return "Object" === n && e.constructor && (n = e.constructor.name), "Map" === n || "Set" === n ? Array.from(e) : "Arguments" === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? hn(e, t) : void 0
}
}(e)) || t && e && "number" == typeof e.length) {
n && (e = n);
var r = 0;
return function() {
return r >= e.length ? {
done: !0
} : {
done: !1,
value: e[r++]
}
}
}
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")
}
var gn = Symbol("mobx-stored-annotations");
function bn(e) {
return Object.assign((function(t, n) {
mn(t, n, e)
}), e)
}
function mn(e, t, n) {
an(e, gn) || Yt(e, gn, cn({}, e[gn])),
function(e) {
return e.annotationType_ === Sn
}(n) || (e[gn][t] = n)
}
var _n = Symbol("mobx administration"),
yn = function() {
function e(e) {
void 0 === e && (e = "Atom"), this.name_ = void 0, this.isPendingUnobservation_ = !1, this.isBeingObserved_ = !1, this.observers_ = new Set, this.diffValue_ = 0, this.lastAccessedBy_ = 0, this.lowestObserverState_ = _r.NOT_TRACKING_, this.onBOL = void 0, this.onBUOL = void 0, this.name_ = e
}
var t = e.prototype;
return t.onBO = function() {
this.onBOL && this.onBOL.forEach((function(e) {
return e()
}))
}, t.onBUO = function() {
this.onBUOL && this.onBUOL.forEach((function(e) {
return e()
}))
}, t.reportObserved = function() {
return qr(this)
}, t.reportChanged = function() {
Kr(), Wr(this), Gr()
}, t.toString = function() {
return this.name_
}, e
}(),
wn = Zt("Atom", yn);
function xn(e, t, n) {
void 0 === t && (t = Wt), void 0 === n && (n = Wt);
var r, i = new yn(e);
return t !== Wt && di(pi, i, t, r), n !== Wt && fi(i, n), i
}
var Cn = {
identity: function(e, t) {
return e === t
},
structural: function(e, t) {
return Mo(e, t)
},
default: function(e, t) {
return Object.is ? Object.is(e, t) : e === t ? 0 !== e || 1 / e == 1 / t : e != e && t != t
},
shallow: function(e, t) {
return Mo(e, t, 1)
}
};
function On(e, t, n) {
return Pi(e) ? e : Array.isArray(e) ? nr.array(e, {
name: n
}) : $t(e) ? nr.object(e, void 0, {
name: n
}) : en(e) ? nr.map(e, {
name: n
}) : tn(e) ? nr.set(e, {
name: n
}) : "function" != typeof e || si(e) || Ci(e) ? e : Xt(e) ? wi(e) : ai(n, e)
}
function Pn(e) {
return e
}
var Sn = "override";
function An(e, t) {
return {
annotationType_: e,
options_: t,
make_: In,
extend_: Rn
}
}
function In(e, t, n, r) {
var i;
if (null != (i = this.options_) && i.bound) return null === this.extend_(e, t, n, !1) ? 0 : 1;
if (r === e.target_) return null === this.extend_(e, t, n, !1) ? 0 : 2;
if (si(n.value)) return 1;
var o = Mn(e, this, t, n, !1);
return Tt(r, t, o), 2
}
function Rn(e, t, n, r) {
var i = Mn(e, this, t, n);
return e.defineProperty_(t, i, r)
}
function Mn(e, t, n, r, i) {
var o, a, s, u, l, c, p, f;
void 0 === i && (i = Lr.safeDescriptors), f = r, t.annotationType_, f.value;
var d, h = r.value;
null != (o = t.options_) && o.bound && (h = h.bind(null != (d = e.proxy_) ? d : e.target_));
return {
value: fr(null != (a = null == (s = t.options_) ? void 0 : s.name) ? a : n.toString(), h, null != (u = null == (l = t.options_) ? void 0 : l.autoAction) && u, null != (c = t.options_) && c.bound ? null != (p = e.proxy_) ? p : e.target_ : void 0),
configurable: !i || e.isPlainObject_,
enumerable: !1,
writable: !i
}
}
function En(e, t) {
return {
annotationType_: e,
options_: t,
make_: kn,
extend_: Dn
}
}
function kn(e, t, n, r) {
var i;
if (r === e.target_) return null === this.extend_(e, t, n, !1) ? 0 : 2;
if (null != (i = this.options_) && i.bound && (!an(e.target_, t) || !Ci(e.target_[t])) && null === this.extend_(e, t, n, !1)) return 0;
if (Ci(n.value)) return 1;
var o = jn(e, this, t, n, !1, !1);
return Tt(r, t, o), 2
}
function Dn(e, t, n, r) {
var i, o = jn(e, this, t, n, null == (i = this.options_) ? void 0 : i.bound);
return e.defineProperty_(t, o, r)
}
function jn(e, t, n, r, i, o) {
var a;
void 0 === o && (o = Lr.safeDescriptors), a = r, t.annotationType_, a.value;
var s, u = r.value;
(Ci(u) || (u = wi(u)), i) && ((u = u.bind(null != (s = e.proxy_) ? s : e.target_)).isMobXFlow = !0);
return {
value: u,
configurable: !o || e.isPlainObject_,
enumerable: !1,
writable: !o
}
}
function Un(e, t) {
return {
annotationType_: e,
options_: t,
make_: Nn,
extend_: Tn
}
}
function Nn(e, t, n) {
return null === this.extend_(e, t, n, !1) ? 0 : 1
}
function Tn(e, t, n, r) {
return function(e, t, n, r) {
t.annotationType_, r.get;
0
}(0, this, 0, n), e.defineComputedProperty_(t, cn({}, this.options_, {get: n.get,
set: n.set
}), r)
}
function Ln(e, t) {
return {
annotationType_: e,
options_: t,
make_: Vn,
extend_: Bn
}
}
function Vn(e, t, n) {
return null === this.extend_(e, t, n, !1) ? 0 : 1
}
function Bn(e, t, n, r) {
var i, o;
return function(e, t, n, r) {
t.annotationType_;
0
}(0, this), e.defineObservableProperty_(t, n.value, null != (i = null == (o = this.options_) ? void 0 : o.enhancer) ? i : On, r)
}
var Fn = Kn();
function Kn(e) {
return {
annotationType_: "true",
options_: e,
make_: Gn,
extend_: qn
}
}
function Gn(e, t, n, r) {
var i, o, a, s;
if (n.get) return ar.make_(e, t, n, r);
if (n.set) {
var u = fr(t.toString(), n.set);
return r === e.target_ ? null === e.defineProperty_(t, {
configurable: !Lr.safeDescriptors || e.isPlainObject_,
set: u
}) ? 0 : 2 : (Tt(r, t, {
configurable: !0,
set: u
}), 2)
}
if (r !== e.target_ && "function" == typeof n.value) return Xt(n.value) ? (null != (s = this.options_) && s.autoBind ? wi.bound : wi).make_(e, t, n, r) : (null != (a = this.options_) && a.autoBind ? ai.bound : ai).make_(e, t, n, r);
var l, c = !1 === (null == (i = this.options_) ? void 0 : i.deep) ? nr.ref : nr;
"function" == typeof n.value && null != (o = this.options_) && o.autoBind && (n.value = n.value.bind(null != (l = e.proxy_) ? l : e.target_));
return c.make_(e, t, n, r)
}
function qn(e, t, n, r) {
var i, o, a;
if (n.get) return ar.extend_(e, t, n, r);
if (n.set) return e.defineProperty_(t, {
configurable: !Lr.safeDescriptors || e.isPlainObject_,
set: fr(t.toString(), n.set)
}, r);
"function" == typeof n.value && null != (i = this.options_) && i.autoBind && (n.value = n.value.bind(null != (a = e.proxy_) ? a : e.target_));
return (!1 === (null == (o = this.options_) ? void 0 : o.deep) ? nr.ref : nr).extend_(e, t, n, r)
}
var Wn = {
deep: !0,
name: void 0,
defaultDecorator: void 0,
proxy: !0
};
function zn(e) {
return e || Wn
}
Object.freeze(Wn);
var Hn = Ln("observable"),
Jn = Ln("observable.ref", {
enhancer: Pn
}),
$n = Ln("observable.shallow", {
enhancer: function(e, t, n) {
return null == e || fo(e) || $i(e) || no(e) || oo(e) ? e : Array.isArray(e) ? nr.array(e, {
name: n,
deep: !1
}) : $t(e) ? nr.object(e, void 0, {
name: n,
deep: !1
}) : en(e) ? nr.map(e, {
name: n,
deep: !1
}) : tn(e) ? nr.set(e, {
name: n,
deep: !1
}) : void 0
}
}),
Xn = Ln("observable.struct", {
enhancer: function(e, t) {
return Mo(e, t) ? t : e
}
}),
Yn = bn(Hn);
function Qn(e) {
return !0 === e.deep ? On : !1 === e.deep ? Pn : (t = e.defaultDecorator) && null != (n = null == (r = t.options_) ? void 0 : r.enhancer) ? n : On;
var t, n, r
}
function Zn(e, t, n) {
if (!Ht(t)) return Pi(e) ? e : $t(e) ? nr.object(e, t, n) : Array.isArray(e) ? nr.array(e, t) : en(e) ? nr.map(e, t) : tn(e) ? nr.set(e, t) : "object" == typeof e && null !== e ? e : nr.box(e, t);
mn(e, t, Hn)
}
Object.assign(Zn, Yn);
var er, tr, nr = Ut(Zn, {
box: function(e, t) {
var n = zn(t);
return new mr(e, Qn(n), n.name, !0, n.equals)
},
array: function(e, t) {
var n = zn(t);
return (!1 === Lr.useProxies || !1 === n.proxy ? Po : Bi)(e, Qn(n), n.name)
},
map: function(e, t) {
var n = zn(t);
return new to(e, Qn(n), n.name)
},
set: function(e, t) {
var n = zn(t);
return new io(e, Qn(n), n.name)
},
object: function(e, t, n) {
return gi(!1 === Lr.useProxies || !1 === (null == n ? void 0 : n.proxy) ? lo({}, n) : function(e, t) {
var n, r;
return Gt(), e = lo(e, t), null != (r = (n = e[_n]).proxy_) ? r : n.proxy_ = new Proxy(e, Ri)
}({}, n), e, t)
},
ref: bn(Jn),
shallow: bn($n),
deep: Yn,
struct: bn(Xn)
}),
rr = "computed",
ir = Un(rr),
or = Un("computed.struct", {
equals: Cn.structural
}),
ar = function(e, t) {
if (Ht(t)) return mn(e, t, ir);
if ($t(e)) return bn(Un(rr, e));
var n = $t(t) ? t : {};
return n.get = e, n.name || (n.name = e.name || ""), new wr(n)
};
Object.assign(ar, ir), ar.struct = bn(or);
var sr, ur = 0,
lr = 1,
cr = null != (er = null == (tr = Nt((function() {}), "name")) ? void 0 : tr.configurable) && er,
pr = {
value: "action",
configurable: !0,
writable: !1,
enumerable: !1
};
function fr(e, t, n, r) {
function i() {
return dr(e, n, t, r || this, arguments)
}
return void 0 === n && (n = !1), i.isMobxAction = !0, cr && (pr.value = e, Object.defineProperty(i, "name", pr)), i
}
function dr(e, t, n, r, i) {
var o = function(e, t, n, r) {
var i = !1,
o = 0;
0;
var a = Lr.trackingDerivation,
s = !t || !a;
Kr();
var u = Lr.allowStateChanges;
s && (Mr(), u = vr(!0));
var l = kr(!0),
c = {
runAsAction_: s,
prevDerivation_: a,
prevAllowStateChanges_: u,
prevAllowStateReads_: l,
notifySpy_: i,
startTime_: o,
actionId_: lr++,
parentActionId_: ur
};
return ur = c.actionId_, c
}(0, t);
try {
return n.apply(r, i)
} catch (e) {
throw o.error_ = e, e
} finally {
! function(e) {
ur !== e.actionId_ && kt(30);
ur = e.parentActionId_, void 0 !== e.error_ && (Lr.suppressReactionErrors = !0);
gr(e.prevAllowStateChanges_), Dr(e.prevAllowStateReads_), Gr(), e.runAsAction_ && Er(e.prevDerivation_);
0;
Lr.suppressReactionErrors = !1
}(o)
}
}
function hr(e, t) {
var n = vr(e);
try {
return t()
} finally {
gr(n)
}
}
function vr(e) {
var t = Lr.allowStateChanges;
return Lr.allowStateChanges = e, t
}
function gr(e) {
Lr.allowStateChanges = e
}
sr = Symbol.toPrimitive;
var br, mr = function(e) {
function t(t, n, r, i, o) {
var a;
return void 0 === r && (r = "ObservableValue"), void 0 === i && (i = !0), void 0 === o && (o = Cn.default), (a = e.call(this, r) || this).enhancer = void 0, a.name_ = void 0, a.equals = void 0, a.hasUnreportedChange_ = !1, a.interceptors_ = void 0, a.changeListeners_ = void 0, a.value_ = void 0, a.dehancer = void 0, a.enhancer = n, a.name_ = r, a.equals = o, a.value_ = n(t, void 0, r), a
}
pn(t, e);
var n = t.prototype;
return n.dehanceValue = function(e) {
return void 0 !== this.dehancer ? this.dehancer(e) : e
}, n.set = function(e) {
this.value_;
if ((e = this.prepareNewValue_(e)) !== Lr.UNCHANGED) {
0, this.setNewValue_(e)
}
}, n.prepareNewValue_ = function(e) {
if (Sr(this), Mi(this)) {
var t = ki(this, {
object: this,
type: Ti,
newValue: e
});
if (!t) return Lr.UNCHANGED;
e = t.newValue
}
return e = this.enhancer(e, this.value_, this.name_), this.equals(this.value_, e) ? Lr.UNCHANGED : e
}, n.setNewValue_ = function(e) {
var t = this.value_;
this.value_ = e, this.reportChanged(), Di(this) && Ui(this, {
type: Ti,
object: this,
newValue: e,
oldValue: t
})
}, n.get = function() {
return this.reportObserved(), this.dehanceValue(this.value_)
}, n.intercept_ = function(e) {
return Ei(this, e)
}, n.observe_ = function(e, t) {
return t && e({
observableKind: "value",
debugObjectName: this.name_,
object: this,
type: Ti,
newValue: this.value_,
oldValue: void 0
}), ji(this, e)
}, n.raw = function() {
return this.value_
}, n.toJSON = function() {
return this.get()
}, n.toString = function() {
return this.name_ + "[" + this.value_ + "]"
}, n.valueOf = function() {
return on(this.get())
}, n[sr] = function() {
return this.valueOf()
}, t
}(yn);
br = Symbol.toPrimitive;
var _r, yr, wr = function() {
function e(e) {
this.dependenciesState_ = _r.NOT_TRACKING_, this.observing_ = [], this.newObserving_ = null, this.isBeingObserved_ = !1, this.isPendingUnobservation_ = !1, this.observers_ = new Set, this.diffValue_ = 0, this.runId_ = 0, this.lastAccessedBy_ = 0, this.lowestObserverState_ = _r.UP_TO_DATE_, this.unboundDepsCount_ = 0, this.value_ = new Cr(null), this.name_ = void 0, this.triggeredBy_ = void 0, this.isComputing_ = !1, this.isRunningSetter_ = !1, this.derivation = void 0, this.setter_ = void 0, this.isTracing_ = yr.NONE, this.scope_ = void 0, this.equals_ = void 0, this.requiresReaction_ = void 0, this.keepAlive_ = void 0, this.onBOL = void 0, this.onBUOL = void 0, e.get || kt(31), this.derivation = e.get, this.name_ = e.name || "ComputedValue", e.set && (this.setter_ = fr("ComputedValue-setter", e.set)), this.equals_ = e.equals || (e.compareStructural || e.struct ? Cn.structural : Cn.default), this.scope_ = e.context, this.requiresReaction_ = e.requiresReaction, this.keepAlive_ = !!e.keepAlive
}
var t = e.prototype;
return t.onBecomeStale_ = function() {
! function(e) {
if (e.lowestObserverState_ !== _r.UP_TO_DATE_) return;
e.lowestObserverState_ = _r.POSSIBLY_STALE_, e.observers_.forEach((function(e) {
e.dependenciesState_ === _r.UP_TO_DATE_ && (e.dependenciesState_ = _r.POSSIBLY_STALE_, e.onBecomeStale_())
}))
}(this)
}, t.onBO = function() {
this.onBOL && this.onBOL.forEach((function(e) {
return e()
}))
}, t.onBUO = function() {
this.onBUOL && this.onBUOL.forEach((function(e) {
return e()
}))
}, t.get = function() {
if (this.isComputing_ && kt(32, this.name_, this.derivation), 0 !== Lr.inBatch || 0 !== this.observers_.size || this.keepAlive_) {
if (qr(this), Pr(this)) {
var e = Lr.trackingContext;
this.keepAlive_ && !e && (Lr.trackingContext = this), this.trackAndCompute() && function(e) {
if (e.lowestObserverState_ === _r.STALE_) return;
e.lowestObserverState_ = _r.STALE_, e.observers_.forEach((function(t) {
t.dependenciesState_ === _r.POSSIBLY_STALE_ ? t.dependenciesState_ = _r.STALE_ : t.dependenciesState_ === _r.UP_TO_DATE_ && (e.lowestObserverState_ = _r.UP_TO_DATE_)
}))
}(this), Lr.trackingContext = e
}
} else Pr(this) && (this.warnAboutUntrackedRead_(), Kr(), this.value_ = this.computeValue_(!1), Gr());
var t = this.value_;
if (Or(t)) throw t.cause;
return t
}, t.set = function(e) {
if (this.setter_) {
this.isRunningSetter_ && kt(33, this.name_), this.isRunningSetter_ = !0;
try {
this.setter_.call(this.scope_, e)
} finally {
this.isRunningSetter_ = !1
}
} else kt(34, this.name_)
}, t.trackAndCompute = function() {
var e = this.value_,
t = this.dependenciesState_ === _r.NOT_TRACKING_,
n = this.computeValue_(!0),
r = t || Or(e) || Or(n) || !this.equals_(e, n);
return r && (this.value_ = n), r
}, t.computeValue_ = function(e) {
this.isComputing_ = !0;
var t, n = vr(!1);
if (e) t = Ar(this, this.derivation, this.scope_);
else if (!0 === Lr.disableErrorBoundaries) t = this.derivation.call(this.scope_);
else try {
t = this.derivation.call(this.scope_)
} catch (e) {
t = new Cr(e)
}
return gr(n), this.isComputing_ = !1, t
}, t.suspend_ = function() {
this.keepAlive_ || (Ir(this), this.value_ = void 0)
}, t.observe_ = function(e, t) {
var n = this,
r = !0,
i = void 0;
return ui((function() {
var o = n.get();
if (!r || t) {
var a = Mr();
e({
observableKind: "computed",
debugObjectName: n.name_,
type: Ti,
object: n,
newValue: o,
oldValue: i
}), Er(a)
}
r = !1, i = o
}))
}, t.warnAboutUntrackedRead_ = function() {}, t.toString = function() {
return this.name_ + "[" + this.derivation.toString() + "]"
}, t.valueOf = function() {
return on(this.get())
}, t[br] = function() {
return this.valueOf()
}, e
}(),
xr = Zt("ComputedValue", wr);
! function(e) {
e[e.NOT_TRACKING_ = -1] = "NOT_TRACKING_", e[e.UP_TO_DATE_ = 0] = "UP_TO_DATE_", e[e.POSSIBLY_STALE_ = 1] = "POSSIBLY_STALE_", e[e.STALE_ = 2] = "STALE_"
}(_r || (_r = {})),
function(e) {
e[e.NONE = 0] = "NONE", e[e.LOG = 1] = "LOG", e[e.BREAK = 2] = "BREAK"
}(yr || (yr = {}));
var Cr = function(e) {
this.cause = void 0, this.cause = e
};
function Or(e) {
return e instanceof Cr
}
function Pr(e) {
switch (e.dependenciesState_) {
case _r.UP_TO_DATE_:
return !1;
case _r.NOT_TRACKING_:
case _r.STALE_:
return !0;
case _r.POSSIBLY_STALE_:
for (var t = kr(!0), n = Mr(), r = e.observing_, i = r.length, o = 0; o < i; o++) {
var a = r[o];
if (xr(a)) {
if (Lr.disableErrorBoundaries) a.get();
else try {
a.get()
} catch (e) {
return Er(n), Dr(t), !0
}
if (e.dependenciesState_ === _r.STALE_) return Er(n), Dr(t), !0
}
}
return jr(e), Er(n), Dr(t), !1
}
}
function Sr(e) {}
function Ar(e, t, n) {
var r = kr(!0);
jr(e), e.newObserving_ = new Array(e.observing_.length + 100), e.unboundDepsCount_ = 0, e.runId_ = ++Lr.runId;
var i, o = Lr.trackingDerivation;
if (Lr.trackingDerivation = e, Lr.inBatch++, !0 === Lr.disableErrorBoundaries) i = t.call(n);
else try {
i = t.call(n)
} catch (e) {
i = new Cr(e)
}
return Lr.inBatch--, Lr.trackingDerivation = o,
function(e) {
for (var t = e.observing_, n = e.observing_ = e.newObserving_, r = _r.UP_TO_DATE_, i = 0, o = e.unboundDepsCount_, a = 0; a < o; a++) {
var s = n[a];
0 === s.diffValue_ && (s.diffValue_ = 1, i !== a && (n[i] = s), i++), s.dependenciesState_ > r && (r = s.dependenciesState_)
}
n.length = i, e.newObserving_ = null, o = t.length;
for (; o--;) {
var u = t[o];
0 === u.diffValue_ && Br(u, e), u.diffValue_ = 0
}
for (; i--;) {
var l = n[i];
1 === l.diffValue_ && (l.diffValue_ = 0, Vr(l, e))
}
r !== _r.UP_TO_DATE_ && (e.dependenciesState_ = r, e.onBecomeStale_())
}(e), Dr(r), i
}
function Ir(e) {
var t = e.observing_;
e.observing_ = [];
for (var n = t.length; n--;) Br(t[n], e);
e.dependenciesState_ = _r.NOT_TRACKING_
}
function Rr(e) {
var t = Mr();
try {
return e()
} finally {
Er(t)
}
}
function Mr() {
var e = Lr.trackingDerivation;
return Lr.trackingDerivation = null, e
}
function Er(e) {
Lr.trackingDerivation = e
}
function kr(e) {
var t = Lr.allowStateReads;
return Lr.allowStateReads = e, t
}
function Dr(e) {
Lr.allowStateReads = e
}
function jr(e) {
if (e.dependenciesState_ !== _r.UP_TO_DATE_) {
e.dependenciesState_ = _r.UP_TO_DATE_;
for (var t = e.observing_, n = t.length; n--;) t[n].lowestObserverState_ = _r.UP_TO_DATE_
}
}
var Ur = function() {
this.version = 6, this.UNCHANGED = {}, this.trackingDerivation = null, this.trackingContext = null, this.runId = 0, this.mobxGuid = 0, this.inBatch = 0, this.pendingUnobservations = [], this.pendingReactions = [], this.isRunningReactions = !1, this.allowStateChanges = !1, this.allowStateReads = !0, this.enforceActions = !0, this.spyListeners = [], this.globalReactionErrorHandlers = [], this.computedRequiresReaction = !1, this.reactionRequiresObservable = !1, this.observableRequiresReaction = !1, this.disableErrorBoundaries = !1, this.suppressReactionErrors = !1, this.useProxies = !0, this.verifyProxies = !1, this.safeDescriptors = !0
},
Nr = !0,
Tr = !1,
Lr = function() {
var e = jt();
return e.__mobxInstanceCount > 0 && !e.__mobxGlobals && (Nr = !1), e.__mobxGlobals && e.__mobxGlobals.version !== (new Ur).version && (Nr = !1), Nr ? e.__mobxGlobals ? (e.__mobxInstanceCount += 1, e.__mobxGlobals.UNCHANGED || (e.__mobxGlobals.UNCHANGED = {}), e.__mobxGlobals) : (e.__mobxInstanceCount = 1, e.__mobxGlobals = new Ur) : (setTimeout((function() {
Tr || kt(35)
}), 1), new Ur)
}();
function Vr(e, t) {
e.observers_.add(t), e.lowestObserverState_ > t.dependenciesState_ && (e.lowestObserverState_ = t.dependenciesState_)
}
function Br(e, t) {
e.observers_.delete(t), 0 === e.observers_.size && Fr(e)
}
function Fr(e) {
!1 === e.isPendingUnobservation_ && (e.isPendingUnobservation_ = !0, Lr.pendingUnobservations.push(e))
}
function Kr() {
Lr.inBatch++
}
function Gr() {
if (0 == --Lr.inBatch) {
Jr();
for (var e = Lr.pendingUnobservations, t = 0; t < e.length; t++) {
var n = e[t];
n.isPendingUnobservation_ = !1, 0 === n.observers_.size && (n.isBeingObserved_ && (n.isBeingObserved_ = !1, n.onBUO()), n instanceof wr && n.suspend_())
}
Lr.pendingUnobservations = []
}
}
function qr(e) {
var t = Lr.trackingDerivation;
return null !== t ? (t.runId_ !== e.lastAccessedBy_ && (e.lastAccessedBy_ = t.runId_, t.newObserving_[t.unboundDepsCount_++] = e, !e.isBeingObserved_ && Lr.trackingContext && (e.isBeingObserved_ = !0, e.onBO())), !0) : (0 === e.observers_.size && Lr.inBatch > 0 && Fr(e), !1)
}
function Wr(e) {
e.lowestObserverState_ !== _r.STALE_ && (e.lowestObserverState_ = _r.STALE_, e.observers_.forEach((function(e) {
e.dependenciesState_ === _r.UP_TO_DATE_ && e.onBecomeStale_(), e.dependenciesState_ = _r.STALE_
})))
}
var zr = function() {
function e(e, t, n, r) {
void 0 === e && (e = "Reaction"), this.name_ = void 0, this.onInvalidate_ = void 0, this.errorHandler_ = void 0, this.requiresObservable_ = void 0, this.observing_ = [], this.newObserving_ = [], this.dependenciesState_ = _r.NOT_TRACKING_, this.diffValue_ = 0, this.runId_ = 0, this.unboundDepsCount_ = 0, this.isDisposed_ = !1, this.isScheduled_ = !1, this.isTrackPending_ = !1, this.isRunning_ = !1, this.isTracing_ = yr.NONE, this.name_ = e, this.onInvalidate_ = t, this.errorHandler_ = n, this.requiresObservable_ = r
}
var t = e.prototype;
return t.onBecomeStale_ = function() {
this.schedule_()
}, t.schedule_ = function() {
this.isScheduled_ || (this.isScheduled_ = !0, Lr.pendingReactions.push(this), Jr())
}, t.isScheduled = function() {
return this.isScheduled_
}, t.runReaction_ = function() {
if (!this.isDisposed_) {
Kr(), this.isScheduled_ = !1;
var e = Lr.trackingContext;
if (Lr.trackingContext = this, Pr(this)) {
this.isTrackPending_ = !0;
try {
this.onInvalidate_()
} catch (e) {
this.reportExceptionInDerivation_(e)
}
}
Lr.trackingContext = e, Gr()
}
}, t.track = function(e) {
if (!this.isDisposed_) {
Kr();
0, this.isRunning_ = !0;
var t = Lr.trackingContext;
Lr.trackingContext = this;
var n = Ar(this, e, void 0);
Lr.trackingContext = t, this.isRunning_ = !1, this.isTrackPending_ = !1, this.isDisposed_ && Ir(this), Or(n) && this.reportExceptionInDerivation_(n.cause), Gr()
}
}, t.reportExceptionInDerivation_ = function(e) {
var t = this;
if (this.errorHandler_) this.errorHandler_(e, this);
else {
if (Lr.disableErrorBoundaries) throw e;
var n = "[mobx] uncaught error in '" + this + "'";
Lr.suppressReactionErrors || console.error(n, e), Lr.globalReactionErrorHandlers.forEach((function(n) {
return n(e, t)
}))
}
}, t.dispose = function() {
this.isDisposed_ || (this.isDisposed_ = !0, this.isRunning_ || (Kr(), Ir(this), Gr()))
}, t.getDisposer_ = function() {
var e = this.dispose.bind(this);
return e[_n] = this, e
}, t.toString = function() {
return "Reaction[" + this.name_ + "]"
}, t.trace = function(e) {
void 0 === e && (e = !1),
function() {
kt("trace() is not available in production builds");
for (var e = !1, t = arguments.length, n = new Array(t), r = 0; r < t; r++) n[r] = arguments[r];
"boolean" == typeof n[n.length - 1] && (e = n.pop());
var i = Si(n);
if (!i) return kt("'trace(break?)' can only be used inside a tracked computed value or a Reaction. Consider passing in the computed value or reaction explicitly");
i.isTracing_ === yr.NONE && console.log("[mobx.trace] '" + i.name_ + "' tracing enabled");
i.isTracing_ = e ? yr.BREAK : yr.LOG
}(this, e)
}, e
}();
var Hr = function(e) {
return e()
};
function Jr() {
Lr.inBatch > 0 || Lr.isRunningReactions || Hr($r)
}
function $r() {
Lr.isRunningReactions = !0;
for (var e = Lr.pendingReactions, t = 0; e.length > 0;) {
100 == ++t && (console.error("[mobx] cycle in reaction: " + e[0]), e.splice(0));
for (var n = e.splice(0), r = 0, i = n.length; r < i; r++) n[r].runReaction_()
}
Lr.isRunningReactions = !1
}
var Xr = Zt("Reaction", zr);
var Yr = "action",
Qr = "autoAction",
Zr = "<unnamed action>",
ei = An(Yr),
ti = An("action.bound", {
bound: !0
}),
ni = An(Qr, {
autoAction: !0
}),
ri = An("autoAction.bound", {
autoAction: !0,
bound: !0
});
function ii(e) {
return function(t, n) {
return zt(t) ? fr(t.name || Zr, t, e) : zt(n) ? fr(t, n, e) : Ht(n) ? mn(t, n, e ? ni : ei) : Ht(t) ? bn(An(e ? Qr : Yr, {
name: t,
autoAction: e
})) : void 0
}
}
var oi = ii(!1);
Object.assign(oi, ei);
var ai = ii(!0);
function si(e) {
return zt(e) && !0 === e.isMobxAction
}
function ui(e, t) {
var n, r;
void 0 === t && (t = Bt);
var i, o = null != (n = null == (r = t) ? void 0 : r.name) ? n : "Autorun";
if (!t.scheduler && !t.delay) i = new zr(o, (function() {
this.track(u)
}), t.onError, t.requiresObservable);
else {
var a = ci(t),
s = !1;
i = new zr(o, (function() {
s || (s = !0, a((function() {
s = !1, i.isDisposed_ || i.track(u)
})))
}), t.onError, t.requiresObservable)
}
function u() {
e(i)
}
return i.schedule_(), i.getDisposer_()
}
Object.assign(ai, ni), oi.bound = bn(ti), ai.bound = bn(ri);
var li = function(e) {
return e()
};
function ci(e) {
return e.scheduler ? e.scheduler : e.delay ? function(t) {
return setTimeout(t, e.delay)
} : li
}
var pi = "onBO";
function fi(e, t, n) {
return di("onBUO", e, t, n)
}
function di(e, t, n, r) {
var i = "function" == typeof r ? So(t, n) : So(t),
o = zt(r) ? r : n,
a = e + "L";
return i[a] ? i[a].add(o) : i[a] = new Set([o]),
function() {
var e = i[a];
e && (e.delete(o), 0 === e.size && delete i[a])
}
}
var hi = "always";
function vi(e) {
!0 === e.isolateGlobalState && function() {
if ((Lr.pendingReactions.length || Lr.inBatch || Lr.isRunningReactions) && kt(36), Tr = !0, Nr) {
var e = jt();
0 == --e.__mobxInstanceCount && (e.__mobxGlobals = void 0), Lr = new Ur
}
}();
var t, n, r = e.useProxies,
i = e.enforceActions;
if (void 0 !== r && (Lr.useProxies = r === hi || "never" !== r && "undefined" != typeof Proxy), "ifavailable" === r && (Lr.verifyProxies = !0), void 0 !== i) {
var o = i === hi ? hi : "observed" === i;
Lr.enforceActions = o, Lr.allowStateChanges = !0 !== o && o !== hi
}["computedRequiresReaction", "reactionRequiresObservable", "observableRequiresReaction", "disableErrorBoundaries", "safeDescriptors"].forEach((function(t) {
t in e && (Lr[t] = !!e[t])
})), Lr.allowStateReads = !Lr.observableRequiresReaction, e.reactionScheduler && (t = e.reactionScheduler, n = Hr, Hr = function(e) {
return t((function() {
return n(e)
}))
})
}
function gi(e, t, n, r) {
var i = sn(t),
o = lo(e, r)[_n];
Kr();
try {
rn(i).forEach((function(e) {
o.extend_(e, i[e], !n || (!(e in n) || n[e]))
}))
} finally {
Gr()
}
return e
}
var bi = 0;
function mi() {
this.message = "FLOW_CANCELLED"
}
mi.prototype = Object.create(Error.prototype);
var _i = En("flow"),
yi = En("flow.bound", {
bound: !0
}),
wi = Object.assign((function(e, t) {
if (Ht(t)) return mn(e, t, _i);
var n = e,
r = n.name || "<unnamed flow>",
i = function() {
var e, t = this,
i = arguments,
o = ++bi,
a = oi(r + " - runid: " + o + " - init", n).apply(t, i),
s = void 0,
u = new Promise((function(t, n) {
var i = 0;
function u(e) {
var t;
s = void 0;
try {
t = oi(r + " - runid: " + o + " - yield " + i++, a.next).call(a, e)
} catch (e) {
return n(e)
}
c(t)
}
function l(e) {
var t;
s = void 0;
try {
t = oi(r + " - runid: " + o + " - yield " + i++, a.throw).call(a, e)
} catch (e) {
return n(e)
}
c(t)
}
function c(e) {
if (!zt(null == e ? void 0 : e.then)) return e.done ? t(e.value) : (s = Promise.resolve(e.value)).then(u, l);
e.then(c, n)
}
e = n, u(void 0)
}));
return u.cancel = oi(r + " - runid: " + o + " - cancel", (function() {
try {
s && xi(s);
var t = a.return(void 0),
n = Promise.resolve(t.value);
n.then(Wt, Wt), xi(n), e(new mi)
} catch (t) {
e(t)
}
})), u
};
return i.isMobXFlow = !0, i
}), _i);
function xi(e) {
zt(e.cancel) && e.cancel()
}
function Ci(e) {
return !0 === (null == e ? void 0 : e.isMobXFlow)
}
function Oi(e, t) {
return !!e && (void 0 !== t ? !!fo(e) && e[_n].values_.has(t) : fo(e) || !!e[_n] || wn(e) || Xr(e) || xr(e))
}
function Pi(e) {
return Oi(e)
}
function Si(e) {
switch (e.length) {
case 0:
return Lr.trackingDerivation;
case 1:
return So(e[0]);
case 2:
return So(e[0], e[1])
}
}
function Ai(e, t) {
void 0 === t && (t = void 0), Kr();
try {
return e.apply(t)
} finally {
Gr()
}
}
function Ii(e) {
return e[_n]
}
wi.bound = bn(yi);
var Ri = {
has: function(e, t) {
return Ii(e).has_(t)
},
get: function(e, t) {
return Ii(e).get_(t)
},
set: function(e, t, n) {
var r;
return !!Ht(t) && (null == (r = Ii(e).set_(t, n, !0)) || r)
},
deleteProperty: function(e, t) {
var n;
return !!Ht(t) && (null == (n = Ii(e).delete_(t, !0)) || n)
},
defineProperty: function(e, t, n) {
var r;
return null == (r = Ii(e).defineProperty_(t, n)) || r
},
ownKeys: function(e) {
return Ii(e).ownKeys_()
},
preventExtensions: function(e) {
kt(13)
}
};
function Mi(e) {
return void 0 !== e.interceptors_ && e.interceptors_.length > 0
}
function Ei(e, t) {
var n = e.interceptors_ || (e.interceptors_ = []);
return n.push(t), qt((function() {
var e = n.indexOf(t); - 1 !== e && n.splice(e, 1)
}))
}
function ki(e, t) {
var n = Mr();
try {
for (var r = [].concat(e.interceptors_ || []), i = 0, o = r.length; i < o && ((t = r[i](t)) && !t.type && kt(14), t); i++);
return t
} finally {
Er(n)
}
}
function Di(e) {
return void 0 !== e.changeListeners_ && e.changeListeners_.length > 0
}
function ji(e, t) {
var n = e.changeListeners_ || (e.changeListeners_ = []);
return n.push(t), qt((function() {
var e = n.indexOf(t); - 1 !== e && n.splice(e, 1)
}))
}
function Ui(e, t) {
var n = Mr(),
r = e.changeListeners_;
if (r) {
for (var i = 0, o = (r = r.slice()).length; i < o; i++) r[i](t);
Er(n)
}
}
var Ni = "splice",
Ti = "update",
Li = {get: function(e, t) {
var n = e[_n];
return t === _n ? n : "length" === t ? n.getArrayLength_() : "string" != typeof t || isNaN(t) ? an(Fi, t) ? Fi[t] : e[t] : n.get_(parseInt(t))
},
set: function(e, t, n) {
var r = e[_n];
return "length" === t && r.setArrayLength_(n), "symbol" == typeof t || isNaN(t) ? e[t] = n : r.set_(parseInt(t), n), !0
},
preventExtensions: function() {
kt(15)
}
},
Vi = function() {
function e(e, t, n, r) {
void 0 === e && (e = "ObservableArray"), this.owned_ = void 0, this.legacyMode_ = void 0, this.atom_ = void 0, this.values_ = [], this.interceptors_ = void 0, this.changeListeners_ = void 0, this.enhancer_ = void 0, this.dehancer = void 0, this.proxy_ = void 0, this.lastKnownLength_ = 0, this.owned_ = n, this.legacyMode_ = r, this.atom_ = new yn(e), this.enhancer_ = function(e, n) {
return t(e, n, "ObservableArray[..]")
}
}
var t = e.prototype;
return t.dehanceValue_ = function(e) {
return void 0 !== this.dehancer ? this.dehancer(e) : e
}, t.dehanceValues_ = function(e) {
return void 0 !== this.dehancer && e.length > 0 ? e.map(this.dehancer) : e
}, t.intercept_ = function(e) {
return Ei(this, e)
}, t.observe_ = function(e, t) {
return void 0 === t && (t = !1), t && e({
observableKind: "array",
object: this.proxy_,
debugObjectName: this.atom_.name_,
type: "splice",
index: 0,
added: this.values_.slice(),
addedCount: this.values_.length,
removed: [],
removedCount: 0
}), ji(this, e)
}, t.getArrayLength_ = function() {
return this.atom_.reportObserved(), this.values_.length
}, t.setArrayLength_ = function(e) {
("number" != typeof e || isNaN(e) || e < 0) && kt("Out of range: " + e);
var t = this.values_.length;
if (e !== t)
if (e > t) {
for (var n = new Array(e - t), r = 0; r < e - t; r++) n[r] = void 0;
this.spliceWithArray_(t, 0, n)
} else this.spliceWithArray_(e, t - e)
}, t.updateArrayLength_ = function(e, t) {
e !== this.lastKnownLength_ && kt(16), this.lastKnownLength_ += t, this.legacyMode_ && t > 0 && Oo(e + t + 1)
}, t.spliceWithArray_ = function(e, t, n) {
var r = this;
this.atom_;
var i = this.values_.length;
if (void 0 === e ? e = 0 : e > i ? e = i : e < 0 && (e = Math.max(0, i + e)), t = 1 === arguments.length ? i - e : null == t ? 0 : Math.max(0, Math.min(t, i - e)), void 0 === n && (n = Vt), Mi(this)) {
var o = ki(this, {
object: this.proxy_,
type: Ni,
index: e,
removedCount: t,
added: n
});
if (!o) return Vt;
t = o.removedCount, n = o.added
}
if (n = 0 === n.length ? n : n.map((function(e) {
return r.enhancer_(e, void 0)
})), this.legacyMode_) {
var a = n.length - t;
this.updateArrayLength_(i, a)
}
var s = this.spliceItemsIntoValues_(e, t, n);
return 0 === t && 0 === n.length || this.notifyArraySplice_(e, n, s), this.dehanceValues_(s)
}, t.spliceItemsIntoValues_ = function(e, t, n) {
var r;
if (n.length < 1e4) return (r = this.values_).splice.apply(r, [e, t].concat(n));
var i = this.values_.slice(e, e + t),
o = this.values_.slice(e + t);
this.values_.length += n.length - t;
for (var a = 0; a < n.length; a++) this.values_[e + a] = n[a];
for (var s = 0; s < o.length; s++) this.values_[e + n.length + s] = o[s];
return i
}, t.notifyArrayChildUpdate_ = function(e, t, n) {
var r = !this.owned_ && !1,
i = Di(this),
o = i || r ? {
observableKind: "array",
object: this.proxy_,
type: Ti,
debugObjectName: this.atom_.name_,
index: e,
newValue: t,
oldValue: n
} : null;
this.atom_.reportChanged(), i && Ui(this, o)
}, t.notifyArraySplice_ = function(e, t, n) {
var r = !this.owned_ && !1,
i = Di(this),
o = i || r ? {
observableKind: "array",
object: this.proxy_,
debugObjectName: this.atom_.name_,
type: Ni,
index: e,
removed: n,
added: t,
removedCount: n.length,
addedCount: t.length
} : null;
this.atom_.reportChanged(), i && Ui(this, o)
}, t.get_ = function(e) {
if (e < this.values_.length) return this.atom_.reportObserved(), this.dehanceValue_(this.values_[e]);
console.warn("[mobx.array] Attempt to read an array index (" + e + ") that is out of bounds (" + this.values_.length + "). Please check length first. Out of bound indices will not be tracked by MobX")
}, t.set_ = function(e, t) {
var n = this.values_;
if (e < n.length) {
this.atom_;
var r = n[e];
if (Mi(this)) {
var i = ki(this, {
type: Ti,
object: this.proxy_,
index: e,
newValue: t
});
if (!i) return;
t = i.newValue
}(t = this.enhancer_(t, r)) !== r && (n[e] = t, this.notifyArrayChildUpdate_(e, t, r))
} else e === n.length ? this.spliceWithArray_(e, 0, [t]) : kt(17, e, n.length)
}, e
}();
function Bi(e, t, n, r) {
void 0 === n && (n = "ObservableArray"), void 0 === r && (r = !1), Gt();
var i = new Vi(n, t, r, !1);
Qt(i.values_, _n, i);
var o = new Proxy(i.values_, Li);
if (i.proxy_ = o, e && e.length) {
var a = vr(!0);
i.spliceWithArray_(0, 0, e), gr(a)
}
return o
}
var Fi = {
clear: function() {
return this.splice(0)
},
replace: function(e) {
var t = this[_n];
return t.spliceWithArray_(0, t.values_.length, e)
},
toJSON: function() {
return this.slice()
},
splice: function(e, t) {
for (var n = arguments.length, r = new Array(n > 2 ? n - 2 : 0), i = 2; i < n; i++) r[i - 2] = arguments[i];
var o = this[_n];
switch (arguments.length) {
case 0:
return [];
case 1:
return o.spliceWithArray_(e);
case 2:
return o.spliceWithArray_(e, t)
}
return o.spliceWithArray_(e, t, r)
},
spliceWithArray: function(e, t, n) {
return this[_n].spliceWithArray_(e, t, n)
},
push: function() {
for (var e = this[_n], t = arguments.length, n = new Array(t), r = 0; r < t; r++) n[r] = arguments[r];
return e.spliceWithArray_(e.values_.length, 0, n), e.values_.length
},
pop: function() {
return this.splice(Math.max(this[_n].values_.length - 1, 0), 1)[0]
},
shift: function() {
return this.splice(0, 1)[0]
},
unshift: function() {
for (var e = this[_n], t = arguments.length, n = new Array(t), r = 0; r < t; r++) n[r] = arguments[r];
return e.spliceWithArray_(0, 0, n), e.values_.length
},
reverse: function() {
return Lr.trackingDerivation && kt(37, "reverse"), this.replace(this.slice().reverse()), this
},
sort: function() {
Lr.trackingDerivation && kt(37, "sort");
var e = this.slice();
return e.sort.apply(e, arguments), this.replace(e), this
},
remove: function(e) {
var t = this[_n],
n = t.dehanceValues_(t.values_).indexOf(e);
return n > -1 && (this.splice(n, 1), !0)
}
};
function Ki(e, t) {
"function" == typeof Array.prototype[e] && (Fi[e] = t(e))
}
function Gi(e) {
return function() {
var t = this[_n];
t.atom_.reportObserved();
var n = t.dehanceValues_(t.values_);
return n[e].apply(n, arguments)
}
}
function qi(e) {
return function(t, n) {
var r = this,
i = this[_n];
return i.atom_.reportObserved(), i.dehanceValues_(i.values_)[e]((function(e, i) {
return t.call(n, e, i, r)
}))
}
}
function Wi(e) {
return function() {
var t = this,
n = this[_n];
n.atom_.reportObserved();
var r = n.dehanceValues_(n.values_),
i = arguments[0];
return arguments[0] = function(e, n, r) {
return i(e, n, r, t)
}, r[e].apply(r, arguments)
}
}
Ki("concat", Gi), Ki("flat", Gi), Ki("includes", Gi), Ki("indexOf", Gi), Ki("join", Gi), Ki("lastIndexOf", Gi), Ki("slice", Gi), Ki("toString", Gi), Ki("toLocaleString", Gi), Ki("every", qi), Ki("filter", qi), Ki("find", qi), Ki("findIndex", qi), Ki("flatMap", qi), Ki("forEach", qi), Ki("map", qi), Ki("some", qi), Ki("reduce", Wi), Ki("reduceRight", Wi);
var zi, Hi, Ji = Zt("ObservableArrayAdministration", Vi);
function $i(e) {
return Jt(e) && Ji(e[_n])
}
var Xi = {},
Yi = "add",
Qi = "delete";
zi = Symbol.iterator, Hi = Symbol.toStringTag;
var Zi, eo, to = function() {
function e(e, t, n) {
var r = this;
void 0 === t && (t = On), void 0 === n && (n = "ObservableMap"), this.enhancer_ = void 0, this.name_ = void 0, this[_n] = Xi, this.data_ = void 0, this.hasMap_ = void 0, this.keysAtom_ = void 0, this.interceptors_ = void 0, this.changeListeners_ = void 0, this.dehancer = void 0, this.enhancer_ = t, this.name_ = n, zt(Map) || kt(18), this.keysAtom_ = xn("ObservableMap.keys()"), this.data_ = new Map, this.hasMap_ = new Map, hr(!0, (function() {
r.merge(e)
}))
}
var t = e.prototype;
return t.has_ = function(e) {
return this.data_.has(e)
}, t.has = function(e) {
var t = this;
if (!Lr.trackingDerivation) return this.has_(e);
var n = this.hasMap_.get(e);
if (!n) {
var r = n = new mr(this.has_(e), Pn, "ObservableMap.key?", !1);
this.hasMap_.set(e, r), fi(r, (function() {
return t.hasMap_.delete(e)
}))
}
return n.get()
}, t.set = function(e, t) {
var n = this.has_(e);
if (Mi(this)) {
var r = ki(this, {
type: n ? Ti : Yi,
object: this,
newValue: t,
name: e
});
if (!r) return this;
t = r.newValue
}
return n ? this.updateValue_(e, t) : this.addValue_(e, t), this
}, t.delete = function(e) {
var t = this;
if ((this.keysAtom_, Mi(this)) && !ki(this, {
type: Qi,
object: this,
name: e
})) return !1;
if (this.has_(e)) {
var n = Di(this),
r = n ? {
observableKind: "map",
debugObjectName: this.name_,
type: Qi,
object: this,
oldValue: this.data_.get(e).value_,
name: e
} : null;
return Ai((function() {
var n;
t.keysAtom_.reportChanged(), null == (n = t.hasMap_.get(e)) || n.setNewValue_(!1), t.data_.get(e).setNewValue_(void 0), t.data_.delete(e)
})), n && Ui(this, r), !0
}
return !1
}, t.updateValue_ = function(e, t) {
var n = this.data_.get(e);
if ((t = n.prepareNewValue_(t)) !== Lr.UNCHANGED) {
var r = Di(this),
i = r ? {
observableKind: "map",
debugObjectName: this.name_,
type: Ti,
object: this,
oldValue: n.value_,
name: e,
newValue: t
} : null;
0, n.setNewValue_(t), r && Ui(this, i)
}
}, t.addValue_ = function(e, t) {
var n = this;
this.keysAtom_, Ai((function() {
var r, i = new mr(t, n.enhancer_, "ObservableMap.key", !1);
n.data_.set(e, i), t = i.value_, null == (r = n.hasMap_.get(e)) || r.setNewValue_(!0), n.keysAtom_.reportChanged()
}));
var r = Di(this),
i = r ? {
observableKind: "map",
debugObjectName: this.name_,
type: Yi,
object: this,
name: e,
newValue: t
} : null;
r && Ui(this, i)
}, t.get = function(e) {
return this.has(e) ? this.dehanceValue_(this.data_.get(e).get()) : this.dehanceValue_(void 0)
}, t.dehanceValue_ = function(e) {
return void 0 !== this.dehancer ? this.dehancer(e) : e
}, t.keys = function() {
return this.keysAtom_.reportObserved(), this.data_.keys()
}, t.values = function() {
var e = this,
t = this.keys();
return Do({
next: function() {
var n = t.next(),
r = n.done,
i = n.value;
return {
done: r,
value: r ? void 0 : e.get(i)
}
}
})
}, t.entries = function() {
var e = this,
t = this.keys();
return Do({
next: function() {
var n = t.next(),
r = n.done,
i = n.value;
return {
done: r,
value: r ? void 0 : [i, e.get(i)]
}
}
})
}, t[zi] = function() {
return this.entries()
}, t.forEach = function(e, t) {
for (var n, r = vn(this); !(n = r()).done;) {
var i = n.value,
o = i[0],
a = i[1];
e.call(t, a, o, this)
}
}, t.merge = function(e) {
var t = this;
return no(e) && (e = new Map(e)), Ai((function() {
$t(e) ? function(e) {
var t = Object.keys(e);
if (!nn) return t;
var n = Object.getOwnPropertySymbols(e);
return n.length ? [].concat(t, n.filter((function(t) {
return Lt.propertyIsEnumerable.call(e, t)
}))) : t
}(e).forEach((function(n) {
return t.set(n, e[n])
})) : Array.isArray(e) ? e.forEach((function(e) {
var n = e[0],
r = e[1];
return t.set(n, r)
})) : en(e) ? (e.constructor !== Map && kt(19, e), e.forEach((function(e, n) {
return t.set(n, e)
}))) : null != e && kt(20, e)
})), this
}, t.clear = function() {
var e = this;
Ai((function() {
Rr((function() {
for (var t, n = vn(e.keys()); !(t = n()).done;) {
var r = t.value;
e.delete(r)
}
}))
}))
}, t.replace = function(e) {
var t = this;
return Ai((function() {
for (var n, r = function(e) {
if (en(e) || no(e)) return e;
if (Array.isArray(e)) return new Map(e);
if ($t(e)) {
var t = new Map;
for (var n in e) t.set(n, e[n]);
return t
}
return kt(21, e)
}(e), i = new Map, o = !1, a = vn(t.data_.keys()); !(n = a()).done;) {
var s = n.value;
if (!r.has(s))
if (t.delete(s)) o = !0;
else {
var u = t.data_.get(s);
i.set(s, u)
}
}
for (var l, c = vn(r.entries()); !(l = c()).done;) {
var p = l.value,
f = p[0],
d = p[1],
h = t.data_.has(f);
if (t.set(f, d), t.data_.has(f)) {
var v = t.data_.get(f);
i.set(f, v), h || (o = !0)
}
}
if (!o)
if (t.data_.size !== i.size) t.keysAtom_.reportChanged();
else
for (var g = t.data_.keys(), b = i.keys(), m = g.next(), _ = b.next(); !m.done;) {
if (m.value !== _.value) {
t.keysAtom_.reportChanged();
break
}
m = g.next(), _ = b.next()
}
t.data_ = i
})), this
}, t.toString = function() {
return "[object ObservableMap]"
}, t.toJSON = function() {
return Array.from(this)
}, t.observe_ = function(e, t) {
return ji(this, e)
}, t.intercept_ = function(e) {
return Ei(this, e)
}, ln(e, [{
key: "size",
get: function() {
return this.keysAtom_.reportObserved(), this.data_.size
}
}, {
key: Hi,
get: function() {
return "Map"
}
}]), e
}(),
no = Zt("ObservableMap", to);
var ro = {};
Zi = Symbol.iterator, eo = Symbol.toStringTag;
var io = function() {
function e(e, t, n) {
void 0 === t && (t = On), void 0 === n && (n = "ObservableSet"), this.name_ = void 0, this[_n] = ro, this.data_ = new Set, this.atom_ = void 0, this.changeListeners_ = void 0, this.interceptors_ = void 0, this.dehancer = void 0, this.enhancer_ = void 0, this.name_ = n, zt(Set) || kt(22), this.atom_ = xn(this.name_), this.enhancer_ = function(e, r) {
return t(e, r, n)
}, e && this.replace(e)
}
var t = e.prototype;
return t.dehanceValue_ = function(e) {
return void 0 !== this.dehancer ? this.dehancer(e) : e
}, t.clear = function() {
var e = this;
Ai((function() {
Rr((function() {
for (var t, n = vn(e.data_.values()); !(t = n()).done;) {
var r = t.value;
e.delete(r)
}
}))
}))
}, t.forEach = function(e, t) {
for (var n, r = vn(this); !(n = r()).done;) {
var i = n.value;
e.call(t, i, i, this)
}
}, t.add = function(e) {
var t = this;
if ((this.atom_, Mi(this)) && !ki(this, {
type: Yi,
object: this,
newValue: e
})) return this;
if (!this.has(e)) {
Ai((function() {
t.data_.add(t.enhancer_(e, void 0)), t.atom_.reportChanged()
}));
var n = !1,
r = Di(this),
i = r ? {
observableKind: "set",
debugObjectName: this.name_,
type: Yi,
object: this,
newValue: e
} : null;
n, r && Ui(this, i)
}
return this
}, t.delete = function(e) {
var t = this;
if (Mi(this) && !ki(this, {
type: Qi,
object: this,
oldValue: e
})) return !1;
if (this.has(e)) {
var n = Di(this),
r = n ? {
observableKind: "set",
debugObjectName: this.name_,
type: Qi,
object: this,
oldValue: e
} : null;
return Ai((function() {
t.atom_.reportChanged(), t.data_.delete(e)
})), n && Ui(this, r), !0
}
return !1
}, t.has = function(e) {
return this.atom_.reportObserved(), this.data_.has(this.dehanceValue_(e))
}, t.entries = function() {
var e = 0,
t = Array.from(this.keys()),
n = Array.from(this.values());
return Do({
next: function() {
var r = e;
return e += 1, r < n.length ? {
value: [t[r], n[r]],
done: !1
} : {
done: !0
}
}
})
}, t.keys = function() {
return this.values()
}, t.values = function() {
this.atom_.reportObserved();
var e = this,
t = 0,
n = Array.from(this.data_.values());
return Do({
next: function() {
return t < n.length ? {
value: e.dehanceValue_(n[t++]),
done: !1
} : {
done: !0
}
}
})
}, t.replace = function(e) {
var t = this;
return oo(e) && (e = new Set(e)), Ai((function() {
Array.isArray(e) || tn(e) ? (t.clear(), e.forEach((function(e) {
return t.add(e)
}))) : null != e && kt("Cannot initialize set from " + e)
})), this
}, t.observe_ = function(e, t) {
return ji(this, e)
}, t.intercept_ = function(e) {
return Ei(this, e)
}, t.toJSON = function() {
return Array.from(this)
}, t.toString = function() {
return "[object ObservableSet]"
}, t[Zi] = function() {
return this.values()
}, ln(e, [{
key: "size",
get: function() {
return this.atom_.reportObserved(), this.data_.size
}
}, {
key: eo,
get: function() {
return "Set"
}
}]), e
}(),
oo = Zt("ObservableSet", io),
ao = Object.create(null),
so = "remove",
uo = function() {
function e(e, t, n, r) {
void 0 === t && (t = new Map), void 0 === r && (r = Fn), this.target_ = void 0, this.values_ = void 0, this.name_ = void 0, this.defaultAnnotation_ = void 0, this.keysAtom_ = void 0, this.changeListeners_ = void 0, this.interceptors_ = void 0, this.proxy_ = void 0, this.isPlainObject_ = void 0, this.appliedAnnotations_ = void 0, this.pendingKeys_ = void 0, this.target_ = e, this.values_ = t, this.name_ = n, this.defaultAnnotation_ = r, this.keysAtom_ = new yn("ObservableObject.keys"), this.isPlainObject_ = $t(this.target_)
}
var t = e.prototype;
return t.getObservablePropValue_ = function(e) {
return this.values_.get(e).get()
}, t.setObservablePropValue_ = function(e, t) {
var n = this.values_.get(e);
if (n instanceof wr) return n.set(t), !0;
if (Mi(this)) {
var r = ki(this, {
type: Ti,
object: this.proxy_ || this.target_,
name: e,
newValue: t
});
if (!r) return null;
t = r.newValue
}
if ((t = n.prepareNewValue_(t)) !== Lr.UNCHANGED) {
var i = Di(this),
o = i ? {
type: Ti,
observableKind: "object",
debugObjectName: this.name_,
object: this.proxy_ || this.target_,
oldValue: n.value_,
name: e,
newValue: t
} : null;
0, n.setNewValue_(t), i && Ui(this, o)
}
return !0
}, t.get_ = function(e) {
return Lr.trackingDerivation && !an(this.target_, e) && this.has_(e), this.target_[e]
}, t.set_ = function(e, t, n) {
return void 0 === n && (n = !1), an(this.target_, e) ? this.values_.has(e) ? this.setObservablePropValue_(e, t) : n ? Reflect.set(this.target_, e, t) : (this.target_[e] = t, !0) : this.extend_(e, {
value: t,
enumerable: !0,
writable: !0,
configurable: !0
}, this.defaultAnnotation_, n)
}, t.has_ = function(e) {
if (!Lr.trackingDerivation) return e in this.target_;
this.pendingKeys_ || (this.pendingKeys_ = new Map);
var t = this.pendingKeys_.get(e);
return t || (t = new mr(e in this.target_, Pn, "ObservableObject.key?", !1), this.pendingKeys_.set(e, t)), t.get()
}, t.make_ = function(e, t) {
if (!0 === t && (t = this.defaultAnnotation_), !1 !== t) {
if (vo(this, t, e), !(e in this.target_)) {
var n;
if (null != (n = this.target_[gn]) && n[e]) return;
kt(1, t.annotationType_, this.name_ + "." + e.toString())
}
for (var r = this.target_; r && r !== Lt;) {
var i = Nt(r, e);
if (i) {
var o = t.make_(this, e, i, r);
if (0 === o) return;
if (1 === o) break
}
r = Object.getPrototypeOf(r)
}
ho(this, t, e)
}
}, t.extend_ = function(e, t, n, r) {
if (void 0 === r && (r = !1), !0 === n && (n = this.defaultAnnotation_), !1 === n) return this.defineProperty_(e, t, r);
vo(this, n, e);
var i = n.extend_(this, e, t, r);
return i && ho(this, n, e), i
}, t.defineProperty_ = function(e, t, n) {
void 0 === n && (n = !1);
try {
Kr();
var r = this.delete_(e);
if (!r) return r;
if (Mi(this)) {
var i = ki(this, {
object: this.proxy_ || this.target_,
name: e,
type: Yi,
newValue: t.value
});
if (!i) return null;
var o = i.newValue;
t.value !== o && (t = cn({}, t, {
value: o
}))
}
if (n) {
if (!Reflect.defineProperty(this.target_, e, t)) return !1
} else Tt(this.target_, e, t);
this.notifyPropertyAddition_(e, t.value)
} finally {
Gr()
}
return !0
}, t.defineObservableProperty_ = function(e, t, n, r) {
void 0 === r && (r = !1);
try {
Kr();
var i = this.delete_(e);
if (!i) return i;
if (Mi(this)) {
var o = ki(this, {
object: this.proxy_ || this.target_,
name: e,
type: Yi,
newValue: t
});
if (!o) return null;
t = o.newValue
}
var a = po(e),
s = {
configurable: !Lr.safeDescriptors || this.isPlainObject_,
enumerable: !0,
get: a.get,
set: a.set
};
if (r) {
if (!Reflect.defineProperty(this.target_, e, s)) return !1
} else Tt(this.target_, e, s);
var u = new mr(t, n, "ObservableObject.key", !1);
this.values_.set(e, u), this.notifyPropertyAddition_(e, u.value_)
} finally {
Gr()
}
return !0
}, t.defineComputedProperty_ = function(e, t, n) {
void 0 === n && (n = !1);
try {
Kr();
var r = this.delete_(e);
if (!r) return r;
if (Mi(this))
if (!ki(this, {
object: this.proxy_ || this.target_,
name: e,
type: Yi,
newValue: void 0
})) return null;
t.name || (t.name = "ObservableObject.key"), t.context = this.proxy_ || this.target_;
var i = po(e),
o = {
configurable: !Lr.safeDescriptors || this.isPlainObject_,
enumerable: !1,
get: i.get,
set: i.set
};
if (n) {
if (!Reflect.defineProperty(this.target_, e, o)) return !1
} else Tt(this.target_, e, o);
this.values_.set(e, new wr(t)), this.notifyPropertyAddition_(e, void 0)
} finally {
Gr()
}
return !0
}, t.delete_ = function(e, t) {
if (void 0 === t && (t = !1), !an(this.target_, e)) return !0;
if (Mi(this) && !ki(this, {
object: this.proxy_ || this.target_,
name: e,
type: so
})) return null;
try {
var n, r;
Kr();
var i, o = Di(this),
a = this.values_.get(e),
s = void 0;
if (!a && o) s = null == (i = Nt(this.target_, e)) ? void 0 : i.value;
if (t) {
if (!Reflect.deleteProperty(this.target_, e)) return !1
} else delete this.target_[e];
if (a && (this.values_.delete(e), a instanceof mr && (s = a.value_), Wr(a)), this.keysAtom_.reportChanged(), null == (n = this.pendingKeys_) || null == (r = n.get(e)) || r.set(e in this.target_), o) {
var u = {
type: so,
observableKind: "object",
object: this.proxy_ || this.target_,
debugObjectName: this.name_,
oldValue: s,
name: e
};
0, o && Ui(this, u)
}
} finally {
Gr()
}
return !0
}, t.observe_ = function(e, t) {
return ji(this, e)
}, t.intercept_ = function(e) {
return Ei(this, e)
}, t.notifyPropertyAddition_ = function(e, t) {
var n, r, i = Di(this);
if (i) {
var o = i ? {
type: Yi,
observableKind: "object",
debugObjectName: this.name_,
object: this.proxy_ || this.target_,
name: e,
newValue: t
} : null;
0, i && Ui(this, o)
}
null == (n = this.pendingKeys_) || null == (r = n.get(e)) || r.set(!0), this.keysAtom_.reportChanged()
}, t.ownKeys_ = function() {
return this.keysAtom_.reportObserved(), rn(this.target_)
}, t.keys_ = function() {
return this.keysAtom_.reportObserved(), Object.keys(this.target_)
}, e
}();
function lo(e, t) {
var n;
if (an(e, _n)) return e;
var r = null != (n = null == t ? void 0 : t.name) ? n : "ObservableObject",
i = new uo(e, new Map, String(r), function(e) {
var t;
return e ? null != (t = e.defaultDecorator) ? t : Kn(e) : void 0
}(t));
return Yt(e, _n, i), e
}
var co = Zt("ObservableObjectAdministration", uo);
function po(e) {
return ao[e] || (ao[e] = {get: function() {
return this[_n].getObservablePropValue_(e)
},
set: function(t) {
return this[_n].setObservablePropValue_(e, t)
}
})
}
function fo(e) {
return !!Jt(e) && co(e[_n])
}
function ho(e, t, n) {
var r;
null == (r = e.target_[gn]) || delete r[n]
}
function vo(e, t, n) {}
var go, bo, mo = xo(0),
_o = 0,
yo = function() {};
go = yo, bo = Array.prototype, Object.setPrototypeOf ? Object.setPrototypeOf(go.prototype, bo) : void 0 !== go.prototype.__proto__ ? go.prototype.__proto__ = bo : go.prototype = bo;
var wo = function(e, t, n) {
function r(t, n, r, i) {
var o;
void 0 === r && (r = "ObservableArray"), void 0 === i && (i = !1), o = e.call(this) || this;
var a = new Vi(r, n, i, !0);
if (a.proxy_ = dn(o), Qt(dn(o), _n, a), t && t.length) {
var s = vr(!0);
o.spliceWithArray(0, 0, t), gr(s)
}
return Object.defineProperty(dn(o), "0", mo), o
}
pn(r, e);
var i = r.prototype;
return i.concat = function() {
this[_n].atom_.reportObserved();
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n];
return Array.prototype.concat.apply(this.slice(), t.map((function(e) {
return $i(e) ? e.slice() : e
})))
}, i[n] = function() {
var e = this,
t = 0;
return Do({
next: function() {
return t < e.length ? {
value: e[t++],
done: !1
} : {
done: !0,
value: void 0
}
}
})
}, ln(r, [{
key: "length",
get: function() {
return this[_n].getArrayLength_()
},
set: function(e) {
this[_n].setArrayLength_(e)
}
}, {
key: t,
get: function() {
return "Array"
}
}]), r
}(yo, Symbol.toStringTag, Symbol.iterator);
function xo(e) {
return {
enumerable: !1,
configurable: !0,
get: function() {
return this[_n].get_(e)
},
set: function(t) {
this[_n].set_(e, t)
}
}
}
function Co(e) {
Tt(wo.prototype, "" + e, xo(e))
}
function Oo(e) {
if (e > _o) {
for (var t = _o; t < e + 100; t++) Co(t);
_o = e
}
}
function Po(e, t, n) {
return new wo(e, t, n)
}
function So(e, t) {
if ("object" == typeof e && null !== e) {
if ($i(e)) return void 0 !== t && kt(23), e[_n].atom_;
if (oo(e)) return e[_n];
if (no(e)) {
if (void 0 === t) return e.keysAtom_;
var n = e.data_.get(t) || e.hasMap_.get(t);
return n || kt(25, t, Io(e)), n
}
if (fo(e)) {
if (!t) return kt(26);
var r = e[_n].values_.get(t);
return r || kt(27, t, Io(e)), r
}
if (wn(e) || xr(e) || Xr(e)) return e
} else if (zt(e) && Xr(e[_n])) return e[_n];
kt(28)
}
function Ao(e, t) {
return e || kt(29), void 0 !== t ? Ao(So(e, t)) : wn(e) || xr(e) || Xr(e) || no(e) || oo(e) ? e : e[_n] ? e[_n] : void kt(24, e)
}
function Io(e, t) {
var n;
if (void 0 !== t) n = So(e, t);
else {
if (si(e)) return e.name;
n = fo(e) || no(e) || oo(e) ? Ao(e) : So(e)
}
return n.name_
}
Object.entries(Fi).forEach((function(e) {
var t = e[0],
n = e[1];
"concat" !== t && Yt(wo.prototype, t, n)
})), Oo(1e3);
var Ro = Lt.toString;
function Mo(e, t, n) {
return void 0 === n && (n = -1), Eo(e, t, n)
}
function Eo(e, t, n, r, i) {
if (e === t) return 0 !== e || 1 / e == 1 / t;
if (null == e || null == t) return !1;
if (e != e) return t != t;
var o = typeof e;
if ("function" !== o && "object" !== o && "object" != typeof t) return !1;
var a = Ro.call(e);
if (a !== Ro.call(t)) return !1;
switch (a) {
case "[object RegExp]":
case "[object String]":
return "" + e == "" + t;
case "[object Number]":
return +e != +e ? +t != +t : 0 == +e ? 1 / +e == 1 / t : +e == +t;
case "[object Date]":
case "[object Boolean]":
return +e == +t;
case "[object Symbol]":
return "undefined" != typeof Symbol && Symbol.valueOf.call(e) === Symbol.valueOf.call(t);
case "[object Map]":
case "[object Set]":
n >= 0 && n++
}
e = ko(e), t = ko(t);
var s = "[object Array]" === a;
if (!s) {
if ("object" != typeof e || "object" != typeof t) return !1;
var u = e.constructor,
l = t.constructor;
if (u !== l && !(zt(u) && u instanceof u && zt(l) && l instanceof l) && "constructor" in e && "constructor" in t) return !1
}
if (0 === n) return !1;
n < 0 && (n = -1), i = i || [];
for (var c = (r = r || []).length; c--;)
if (r[c] === e) return i[c] === t;
if (r.push(e), i.push(t), s) {
if ((c = e.length) !== t.length) return !1;
for (; c--;)
if (!Eo(e[c], t[c], n - 1, r, i)) return !1
} else {
var p, f = Object.keys(e);
if (c = f.length, Object.keys(t).length !== c) return !1;
for (; c--;)
if (!an(t, p = f[c]) || !Eo(e[p], t[p], n - 1, r, i)) return !1
}
return r.pop(), i.pop(), !0
}
function ko(e) {
return $i(e) ? e.slice() : en(e) || no(e) || tn(e) || oo(e) ? Array.from(e.entries()) : e
}
function Do(e) {
return e[Symbol.iterator] = jo, e
}
function jo() {
return this
}["Symbol", "Map", "Set"].forEach((function(e) {
void 0 === jt()[e] && kt("MobX requires global '" + e + "' to be available or polyfilled")
})), "object" == typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__ && __MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({
spy: function(e) {
return console.warn("[mobx.spy] Is a no-op in production builds"),
function() {}
},
extras: {
getDebugName: Io
},
$mobx: _n
});
var Uo, No, To = (No = {
configure: function() {
vi({
isolateGlobalState: !0
})
},
observable: nr,
action: oi,
reaction: function(e, t, n) {
var r;
void 0 === n && (n = Bt);
var i, o, a, s, u = null != (r = n.name) ? r : "Reaction",
l = oi(u, n.onError ? (i = n.onError, o = t, function() {
try {
return o.apply(this, arguments)
} catch (e) {
i.call(this, e)
}
}) : t),
c = !n.scheduler && !n.delay,
p = ci(n),
f = !0,
d = !1,
h = n.compareStructural ? Cn.structural : n.equals || Cn.default,
v = new zr(u, (function() {
f || c ? g() : d || (d = !0, p(g))
}), n.onError, n.requiresObservable);
function g() {
if (d = !1, !v.isDisposed_) {
var t = !1;
v.track((function() {
var n = hr(!1, (function() {
return e(v)
}));
t = f || !h(a, n), s = a, a = n
})), (f && n.fireImmediately || !f && t) && l(a, s, v), f = !1
}
}
return v.schedule_(), v.getDisposer_()
}
}, (Uo = {
initState: Et(No),
initBind: Rt(No)
}).initState);
const Lo = e => function(t) {
void 0 === t && (t = {});
const n = "function" == typeof e.factory ? e.factory(t) : e;
return function(e, t) {
return Object.defineProperty(t, "updateDefaults", {
value: function(t) {
return e.updateDefaults(t)
}
}), t
}(n, n.logger())
},
Vo = Lo;
var Bo = e,
Fo = t,
Ko = i,
Go = {
initState: To,
initBind: Uo.initBind,
observable: nr
};
const qo = !1;
var Wo = null,
zo = {
enabled: !1,
icuEnabled: !1
},
Ho = null,
Jo = null;
const $o = o.exports,
Xo = function(e) {
var t = e.initAppForPage,
n = e.sentryConfig,
r = void 0 === n ? null : n,
i = e.experimentsConfig,
o = void 0 === i ? null : i,
a = e.inEditor,
s = void 0 !== a && a,
u = e.projectName,
l = e.defaultTranslations,
c = e.translationsConfig,
p = e.biConfig,
f = e.biLogger,
d = e.appName,
h = void 0 === d ? null : d,
v = e.optionalDeps,
g = e.localeDistPath,
b = e.prepopulatedData,
m = e.shouldUseEssentials;
return function(e, n, i, a) {
return T(void 0, void 0, void 0, (function() {
var d, _, y, w;
return L(this, (function(x) {
switch (x.label) {
case 0:
return d = new E({
experimentsConfig: o,
projectName: u,
sentryConfig: r,
platformBI: a.bi,
biLoggerFactory: a.biLoggerFactory,
essentials: a.essentials,
monitoring: a.monitoring,
wixAPI: i,
appData: e,
translationsConfig: c,
defaultTranslations: l,
inEditor: s,
biConfig: p,
biLogger: f,
appName: h,
optionalDeps: v,
localeDistPath: g,
prepopulatedData: b,
shouldUseEssentials: m
}), D(d), _ = d.init(), j(_), [4, _];
case 1:
if (x.sent(), !t) return [3, 5];
x.label = 2;
case 2:
return x.trys.push([2, 4, , 5]), [4, t(e, n, i, a, d)];
case 3:
return y = x.sent(), N(y), [3, 5];
case 4:
throw w = x.sent(), s || (console.error('\u2757\ufe0fError \ud83d\udc49 "'.concat(h, '" app \ud83d\udc49 `viewer.app.ts` module \u2757\n'), w), d.reportError(w)), w;
case 5:
return [2, U()]
}
}))
}))
}
}({
initAppForPage: o.initAppForPage,
sentryConfig: Wo,
experimentsConfig: {
scopes: ["members-area"],
centralized: !0
},
inEditor: !1,
biLogger: Vo,
multilingualDisabled: qo,
projectName: "santa-members-viewer-app",
biConfig: null,
appName: "Members Area Viewer Script",
appDefinitionId: "14cc59bc-f0b7-15b8-e1c7-89ce41d0e0c9",
fedopsConfig: Jo,
translationsConfig: zo,
defaultTranslations: Ho,
shouldUseEssentials: !0,
optionalDeps: {
initI18n: null,
createHttpClient: null,
createExperiments: null
},
localeDistPath: "assets/locales"
}),
Yo = (Qo = {
initI18n: null,
blocksControllerService: null,
createHttpClient: null,
createExperiments: null,
velocycleMobx: Go
}, Zo = [{
method: wt,
wrap: ce,
exports: Bo,
widgetType: "PLATFORM_WIDGET",
translationsConfig: zo,
multilingualDisabled: qo,
experimentsConfig: {
scopes: ["members-area"],
centralized: !0
},
fedopsConfig: Jo,
sentryConfig: Wo,
persistentAcrossPages: !1,
biLogger: Vo,
shouldUseEssentials: !0,
withErrorBoundary: !1,
biConfig: null,
controllerFileName: "/home/builduser/work/fa85d65a9160597f/packages/members-viewer-app/src/components/members/controller.ts",
appName: "Members Area Viewer Script",
appDefinitionId: "14cc59bc-f0b7-15b8-e1c7-89ce41d0e0c9",
projectName: "santa-members-viewer-app",
componentName: "members",
localeDistPath: "assets/locales",
defaultTranslations: Ho,
id: "members"
}, {
method: xt,
wrap: ce,
exports: Fo,
widgetType: "PLATFORM_WIDGET",
translationsConfig: zo,
multilingualDisabled: qo,
experimentsConfig: {
scopes: ["members-area"],
centralized: !0
},
fedopsConfig: Jo,
sentryConfig: Wo,
persistentAcrossPages: !1,
biLogger: Vo,
shouldUseEssentials: !0,
withErrorBoundary: !1,
biConfig: null,
controllerFileName: "/home/builduser/work/fa85d65a9160597f/packages/members-viewer-app/src/components/members-login-bar/controller.ts",
appName: "Members Area Viewer Script",
appDefinitionId: "14cc59bc-f0b7-15b8-e1c7-89ce41d0e0c9",
projectName: "santa-members-viewer-app",
componentName: "members-login-bar",
localeDistPath: "assets/locales",
defaultTranslations: Ho,
id: "members-login-bar"
}, {
method: Ct,
wrap: ce,
exports: Ko,
widgetType: "PLATFORM_WIDGET",
translationsConfig: zo,
multilingualDisabled: qo,
experimentsConfig: {
scopes: ["members-area"],
centralized: !0
},
fedopsConfig: Jo,
sentryConfig: Wo,
persistentAcrossPages: !1,
biLogger: Vo,
shouldUseEssentials: !0,
withErrorBoundary: !1,
biConfig: null,
controllerFileName: "/home/builduser/work/fa85d65a9160597f/packages/members-viewer-app/src/components/members-menu/controller.ts",
appName: "Members Area Viewer Script",
appDefinitionId: "14cc59bc-f0b7-15b8-e1c7-89ce41d0e0c9",
projectName: "santa-members-viewer-app",
componentName: "members-menu",
localeDistPath: "assets/locales",
defaultTranslations: Ho,
id: "members-menu"
}], void 0 === (ea = !0) && (ea = !1), function(e, t) {
var n = [];
e.forEach((function(e) {
var r, i = e.type,
o = (r = i, Zo.find((function(e) {
return e.id === r
})));
if (o || function(e) {
var t, n, r;
return (null === (t = e.appParams) || void 0 === t ? void 0 : t.blocksData) || (null === (r = null === (n = e.appParams) || void 0 === n ? void 0 : n.appData) || void 0 === r ? void 0 : r.blocksPreviewData)
}(e) && (o = {
widgetType: a,
method: null,
exports: {}
}), (null == o ? void 0 : o.widgetType) !== a && !ea) {
var s = null == t ? void 0 : t[i];
if (!s) return;
if (!o) {
var u = function(e) {
return V(e) ? null : e.descriptor
}(s);
if (!u) throw new Error("Can't resolve controller descriptor for \"".concat(i, '" controller.'));
o = u
}
o.method = function(e) {
if (V(e)) return e;
var t = e[Object.keys(e).find((function(e) {
return e.toLowerCase().includes("controller")
})) || "default"];
if ("function" != typeof t) throw new Error("Seems like a bundle you have registered as Controller URL in Dev Center doesn't contain exported controller.\nPlease, verify you are using relevant controller bundle generated by editor flow.");
return t
}(s), o.wrap = function(e) {
return V(e) ? null : e.wrap
}(s) || void 0, o.exports = s
}
o && n.push({
controllerDescriptor: o,
controllerConfig: e
})
}));
var r = n.map((function(e) {
var t = e.controllerDescriptor,
n = e.controllerConfig;
if (t.wrap) return t.wrap(Qo, t, n, O, P, U)
}));
return r
});
var Qo, Zo, ea;
const ta = Yo
}(), r
}()
}));
//# sourceMappingURL=viewerScript.bundle.min.js.map
//# sourceURL=https://static.parastorage.com/services/santa-members-viewer-app/1.1083.0/viewerScript.bundle.min.js
#3 JavaScript::Eval (size: 44112) - SHA256: 9af7f7bf0704b99e4645b73d388c5cbde27c631fad234616ebb0f8c33a32ce32
(("undefined" != typeof self ? self : this).webpackJsonp__wix_editor_elements_library = ("undefined" != typeof self ? self : this).webpackJsonp__wix_editor_elements_library || []).push([
[5], {
1312: function(e, t, r) {
"use strict";
r.d(t, "b", (function() {
return j
}));
var a = r(62),
n = r(73),
s = r(994),
o = r(758),
i = r(92),
c = r(1156),
l = r(549),
b = r(1416),
d = r(1366),
p = r(422),
u = r(63);
const g = Object(n.b)(e => {
const {
props: t,
metaData: r
} = e;
return {get type() {
return "$w.Button"
},
toJSON: () => Object.assign(Object.assign({}, Object(a.c)(r)), {
type: "$w.Button",
label: t.label || ""
})
}
}, {
type: ["object"],
properties: {
onClick: {
type: ["function"],
args: [{
type: ["function"]
}]
}
}
}),
f = Object(s.a)({
BackgroundColor: !0,
BorderColor: !0,
BorderWidth: !0,
BorderRadius: !0,
TextColor: !0
}),
O = Object(a.a)(),
h = Object(o.a)({
enableAriaLabel: !0,
enableAriaLabelledBy: !0,
enableAriaDescribedBy: !0,
enableAriaControls: !0,
enableAriaExpanded: !0,
enableAriaPressed: !0,
enableAriaOwns: !0,
enableAriaLive: !0,
enableAriaAtomic: !0,
enableAriaRelevant: !0,
enableAriaHaspopup: !0,
enableTabIndex: !0,
enableScreenReader: !0,
enableLegacyAriaLabel: !0
}),
j = Object(i.a)(O, c.a, l.a, b.b, f, d.a, p.a, h, g);
t.a = Object(u.a)(j)
},
1411: function(e, t, r) {
"use strict";
function a(...e) {
return t => e.reduce((e, t) => t(e), t)
}
r.d(t, "a", (function() {
return a
}))
},
1668: function(e, t, r) {
"use strict";
var a = r(4100),
n = a.OPEN_TAG_START,
s = a.TAG_END,
o = a.SELF_CLOSING,
i = a.CLOSING_TAG_START,
c = a.HTML_END,
l = a.SPACE,
b = r(4101),
d = new Set(b),
p = new Set([n, s, o, i]);
function u(e, t, r, a) {
var n = a || r;
return e.slice(t + 1, n).toLowerCase()
}
function g(e, t, r, a) {
var n = a || r;
return e.slice(n + 1, r)
}
function f(e, t, r, a, s, o) {
var i = u(e, r, a, s);
if (t === n) {
var c = g(e, 0, a, s);
d.has(i) ? o.onSelfClosingTag && o.onSelfClosingTag({
tagName: i,
props: c
}) : o.onOpenTag && o.onOpenTag({
tagName: i,
props: c
})
} else o.onClosingTag && o.onClosingTag({
tagName: i,
props: ""
})
}
function O(e, t) {
var r = void 0;
switch (e[t]) {
case "<":
if ("/" === e[t + 1]) {
r = i, t++;
break
}
r = n;
break;
case ">":
r = s;
break;
case "/":
if (">" === e[t + 1]) {
r = o, t++;
break
}
case " ":
r = l;
break;
default:
r = e[t]
}
return t === e.length && (r = c), r
}
e.exports = {
parseFragment: function(e) {
for (var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, r = void 0, a = void 0, b = void 0, d = void 0, h = void 0, j = void 0, m = e.length, v = 0; v <= m;) {
switch (v = b = (a = v) + (r = O(e, v)).length - 1, r) {
case n:
case i:
var y = e.slice(h + 1, a);
y && t.onText && t.onText(y), j = null;
break;
case s:
f(e, d, h, v, j, t);
break;
case o:
if (!t.onSelfClosingTag) break;
t.onSelfClosingTag({
tagName: u(e, h, a, j),
props: g(e, 0, a, j)
});
break;
case l:
j || d !== n && d !== i || (j = v);
break;
case c:
if (!t.onText) break;
if (!d) return void t.onText(e);
h !== m - 1 && t.onText(e.slice(h + 1, m))
}
p.has(r) && (d = r, h = b, a), v++
}
}
}
},
1779: function(e, t, r) {
"use strict";
r.d(t, "b", (function() {
return b
}));
var a = r(62),
n = r(92),
s = r(1024),
o = r(1366),
i = r(1417),
c = r(63);
const l = Object(a.a)(),
b = Object(n.a)(l, ({
metaData: e
}) => ({get type() {
return "$w.Container"
},
toJSON: () => Object.assign(Object.assign({}, Object(a.c)(e)), {
type: "$w.Container"
})
}), s.a, o.a, i.a);
t.a = Object(c.a)(b)
},
3847: function(e, t, r) {
"use strict";
var a = r(994),
n = r(802),
s = r(1156),
o = r(62),
i = r(73),
c = r(35),
l = r(77),
b = r(94),
d = r(758),
p = r(92),
u = r(379),
g = r(422),
f = r(549),
O = r(1416),
h = r(63);
const j = Object(a.a)({
BackgroundColor: {
withoutDefaultValue: !0,
supportOpacity: !0
},
BorderColor: {
withoutDefaultValue: !0,
supportOpacity: !1
},
BorderRadius: {
withoutDefaultValue: !0
},
BorderWidth: {
withoutDefaultValue: !0
},
TextColor: {
withoutDefaultValue: !0
}
}),
m = Object(o.a)(),
v = Object(i.b)(e => {
const t = Object(s.a)(e),
r = j(e),
{
props: a,
setProps: i,
sdkData: c,
createSdkState: l,
handlers: b
} = e,
[d, p] = l({});
return {get label() {
return t.label
},
set label(e) {
t.label = e
},
get style() {
return {get backgroundColor() {
return r.style.backgroundColor
},
set backgroundColor(t) {
r.style.backgroundColor = t, e.setProps({
corvid: Object.assign(Object.assign({}, e.props.corvid), {
hasBackgroundColor: !0
})
})
},
get borderColor() {
return r.style.borderColor
},
set borderColor(t) {
r.style.borderColor = t, e.setProps({
corvid: Object.assign(Object.assign({}, e.props.corvid), {
hasBorderColor: !0
})
})
},
get borderRadius() {
return r.style.borderRadius
},
set borderRadius(t) {
r.style.borderRadius = t, e.setProps({
corvid: Object.assign(Object.assign({}, e.props.corvid), {
hasBorderRadius: !0
})
})
},
get borderWidth() {
return r.style.borderWidth
},
set borderWidth(t) {
r.style.borderWidth = t, e.setProps({
corvid: Object.assign(Object.assign({}, e.props.corvid), {
hasBorderWidth: !0
})
})
},
get color() {
return r.style.color
},
set color(t) {
r.style.color = t, e.setProps({
corvid: Object.assign(Object.assign({}, e.props.corvid), {
hasColor: !0
})
})
},
removeProperty(t) {
const a = {
backgroundColor: "hasBackgroundColor",
borderWidth: "hasBorderWidth",
borderRadius: "hasBorderRadius",
borderColor: "hasBorderColor",
textColor: "hasColor"
};
if (!a[t]) return;
const n = Object.assign(Object.assign({}, e.props.corvid), {
[a[t]]: !1
});
r.style.removeProperty(t), e.setProps({
corvid: n
})
}
}
},
get icon() {
return d.iconMediaUrl || Object(n.e)(c.svgId, "")
},
set icon(e) {
p({
iconMediaUrl: e
}), i(e ? (async(e, t, r, a) => {
const s = await Object(n.h)(e, t, a);
return {
corvid: Object.assign(Object.assign({}, r), {
iconSvgString: s
})
}
})(e, c.mediaSvgUrl, a.corvid, b.sanitizeSVG) : {
corvid: Object.assign(Object.assign({}, a.corvid), {
iconSvgString: null
})
})
},
get iconCollapsed() {
var e;
return !!(null === (e = a.corvid) || void 0 === e ? void 0 : e.iconCollapsed)
},
set iconCollapsed(e) {
i({
corvid: Object.assign(Object.assign({}, a.corvid), {
iconCollapsed: e
})
})
},
collapseIcon() {
i({
corvid: Object.assign(Object.assign({}, a.corvid), {
iconCollapsed: !0
})
})
},
expandIcon() {
i({
corvid: Object.assign(Object.assign({}, a.corvid), {
iconCollapsed: !1
})
})
},
get type() {
return "$w.Button"
},
toJSON() {
const {
label: a
} = t, {
style: n
} = r;
return Object.assign(Object.assign({}, Object(o.c)(e.metaData)), {
label: a,
style: Object.assign({}, n),
type: "$w.Button"
})
}
}
}, {
type: ["object"],
properties: {
icon: {
type: ["string", "nil"]
}
}
}, {
icon: [e => {
if (e) {
c.a.isSVG(e) || Object(l.d)(b.b.invalidSvgValue(e))
}
return !0
}]
}),
y = Object(d.a)({
enableAriaLabel: !0,
enableAriaLabelledBy: !0,
enableAriaDescribedBy: !0,
enableAriaControls: !0,
enableAriaExpanded: !0,
enableAriaPressed: !0,
enableAriaOwns: !0,
enableAriaLive: !0,
enableAriaAtomic: !0,
enableAriaRelevant: !0,
enableAriaHaspopup: !0,
enableTabIndex: !0,
enableScreenReader: !0
}),
k = Object(p.a)(m, u.a, g.a, f.a, O.b, y, v);
t.a = Object(h.a)(k)
},
3858: function(e, t, r) {
"use strict";
var a = r(62),
n = r(92),
s = r(1565),
o = r(1379),
i = r(63);
const c = Object(n.a)(s.a, Object(o.a)(), ({
props: e,
metaData: t
}) => ({get name() {
return e.name
},
toJSON: () => Object.assign(Object.assign({}, Object(a.c)(t)), {
name: e.name
})
}));
t.a = Object(i.a)(c)
},
3880: function(e, t, r) {
"use strict";
var a = r(62),
n = r(92),
s = r(63);
const o = Object(a.a)({
useHiddenCollapsed: !1
}),
i = Object(n.a)(o, ({
handlers: e,
metaData: t
}) => ({
open() {
e.openMenuContainer(t.compId)
}, close() {
e.closeMenuContainer(t.compId)
}
}));
t.a = Object(s.a)(i)
},
3887: function(e, t, r) {
"use strict";
var a = r(92),
n = r(1417),
s = r(63);
const o = Object(a.a)(n.a);
t.a = Object(s.a)(o)
},
3899: function(e, t, r) {
"use strict";
var a = r(1417),
n = r(62),
s = r(758),
o = r(92),
i = r(1024),
c = r(379),
l = r(422),
b = r(1302),
d = r(1418),
p = r(63),
u = r(1364);
const g = Object(s.a)({
enableRole: !0,
enableAriaHidden: !0,
enableAriaLabel: !0,
enableAriaLabelledBy: !0,
enableAriaDescribedBy: !0,
enableAriaLive: !0,
enableAriaAtomic: !0,
enableAriaRelevant: !0,
enableAriaBusy: !0,
enableTabIndex: !0
}),
f = Object(n.a)(),
O = Object(o.a)(f, e => {
const {
metaData: t,
props: r
} = e, s = Object(a.a)(e), o = () => t.getChildren().filter(e => "$w.Column" === e.type);
return {get background() {
const e = o(),
t = Boolean((null === (a = r.dividers) || void 0 === a ? void 0 : a.hasTopDivider) || (null === (n = r.dividers) || void 0 === n ? void 0 : n.hasBottomDivider));
var a, n;
return {get src() {
const r = s.background.src;
if (!r && 1 === e.length && !t) {
const [t] = e;
return t.background.src
}
return r
},
set src(r) {
if (1 !== e.length || t) s.background.src = r;
else {
const [t] = e;
t.background.src = r
}
}
}
},
get columns() {
return o()
},
get type() {
return u.b
},
toJSON: () => Object.assign(Object.assign({}, Object(n.c)(t)), {
type: u.b
})
}
}, i.a, c.a, g, l.a, b.a, d.a);
t.a = Object(p.a)(O)
},
3912: function(e, t, r) {
"use strict";
var a = r(803),
n = r(306),
s = r(77),
o = r(62),
i = r(73),
c = r(92),
l = r(1366),
b = r(1416),
d = r(63),
p = r(727);
const u = {
none: "disabled",
expand: "zoomMode",
link: "goToLink",
magnified: "zoomAndPanMode"
},
g = {
disabled: "none",
zoomMode: "expand",
goToLink: "link",
zoomAndPanMode: "magnified"
},
f = {
fixedWidth: "fitWidth",
fit: "fit",
fill: "fill"
},
O = {
fitWidth: "fixedWidth",
fit: "fit",
fill: "fill"
},
h = Object(i.b)(({
setProps: e,
setStyles: t,
registerEvent: r,
props: i,
metaData: c,
sdkData: l
}) => {
const b = () => {
const {
uri: e,
height: t,
width: r,
title: n
} = i;
if (Object(p.a)(e)) return e;
const s = Object(a.a)({
mediaId: e,
width: r,
height: t,
title: n,
type: "image"
});
return s.error ? "" : s.item || ""
},
d = () => O[i.displayMode],
h = (e, r) => {
const {
layoutWidth: a,
layoutHeight: n,
paddingBottom: s
} = l, o = a;
let c = n;
if ("fixedWidth" === e) {
const e = ((null == r ? void 0 : r.width) || i.width) / ((null == r ? void 0 : r.height) || i.height);
c = Math.ceil(a / e + s)
}
t({
width: o + "px",
height: c + "px"
})
};
return r("onLoad", () => {
h(d())
}), {get src() {
return b()
},
set src(t) {
if (t) {
const {
height: r,
width: a,
title: o,
mediaId: i,
error: c
} = Object(n.c)(t, "image");
c ? Object(s.d)('The "src" property cannot be set to "src". It must be a valid URL starting with "http://", "https://", or "wix:image://".') : (e(Object.assign(Object.assign(Object.assign(Object.assign({}, void 0 !== r ? {
height: r
} : {}), void 0 !== a ? {
width: a
} : {}), void 0 !== o ? {
title: o
} : {}), {
uri: i,
crop: null
})), d() === O.fitWidth && h(O.fitWidth, {
width: a,
height: r
}))
} else e({
uri: ""
})
},
get alt() {
return i.alt
},
set alt(t) {
e({
alt: t || ""
})
},
get tooltip() {
return i.title
},
set tooltip(t) {
e({
title: t || ""
})
},
get clickAction() {
return g[i.onClickBehavior]
},
set clickAction(t) {
e({
onClickBehavior: u[t] || u.none
})
},
get fitMode() {
return d()
},
set fitMode(t) {
e({
displayMode: f[t]
}), h(t)
},
get type() {
return "$w.Image"
},
toJSON() {
const e = Object(o.c)(c);
return Object.assign(Object.assign({}, e), {
alt: i.alt,
tooltip: i.title,
src: b(),
type: "$w.Image"
})
}
}
}, {
type: ["object"],
properties: {
src: {
type: ["string", "nil"],
warnIfNil: !0
},
description: {
type: ["string", "nil"],
warnIfNil: !0
},
title: {
type: ["string", "nil"],
warnIfNil: !0
},
alt: {
type: ["string", "nil"],
warnIfNil: !0
},
tooltip: {
type: ["string", "nil"],
warnIfNil: !0
},
width: {
type: ["integer"]
},
height: {
type: ["integer"]
},
clickAction: {
type: ["string", "nil"],
enum: Object.keys(u),
warnIfNil: !0
},
fitMode: {
type: ["string"],
enum: Object.keys(f)
}
}
}),
j = Object(o.a)(),
m = Object(c.a)(j, l.a, b.b, h);
t.a = Object(d.a)(m)
},
3913: function(e, t, r) {
"use strict";
var a = r(62),
n = r(92),
s = r(1024),
o = r(379),
i = r(63);
const c = Object(a.a)({
useHiddenCollapsed: !1
}),
l = Object(n.a)(c, s.a, o.a, ({
sdkData: e,
metaData: t,
platformUtils: r
}) => {
const n = () => r.wixCodeNamespacesRegistry.get("seo").title;
return {get description() {
return e.currentPageSEODescription
},
get keywords() {
return e.currentPageSEOKeywords
},
get title() {
return n()
},
get visibleInMenu() {
return e.visibleInMenu
},
toJSON: () => Object.assign(Object.assign({}, Object(a.c)(t)), {
title: n(),
description: e.currentPageSEODescription,
keywords: e.currentPageSEOKeywords,
visibleInMenu: e.visibleInMenu
})
}
});
t.a = Object(i.a)(l)
},
4059: function(e, t, r) {
"use strict";
var a = r(35),
n = r(62),
s = r(73),
o = r(758),
i = r(92),
c = r(379),
l = r(422),
b = r(1302),
d = r(63),
p = r(1278),
u = r(735),
g = r(1411);
const f = /(?:<a.*?href=(["']))(.*?)(?:\1)/i,
O = /<a(.*?((target=["']([^"]+)["']).*?)?)>/i,
h = /<a.*?>/gi,
j = (e, t, r) => {
const a = f.exec(e);
if (a) {
const n = a[0],
s = a[2],
o = t(s),
i = n.replace(s, r(o));
return ((e, t = "_blank") => {
const r = O.exec(e);
if (r) {
const [a, n, s, o, i] = r;
if ("_blank" === i || "_self" === i) return e;
let c;
return o ? (c = n.replace(o, `target="${t}"`), c = a.replace(n, c)) : c = a.replace(n, `${n} target="${t}"`), e.replace(a, c)
}
return e
})(e.replace(n, i), o.target)
}
return e
},
m = (e, t, r = (e => e.href || "")) => {
const a = [];
let n;
do {
if (n = h.exec(e), n) {
const [e] = n, s = j(e, t, r);
a.push([e, s])
}
} while (n);
return a.reduce((e, [t, r]) => e.replace(t, r), e)
},
v = e => e.replace(/<span class="wixGuard">([^<]*)<\/span>/g, (e, t = "") => "​" === t.trim() ? "" : t),
y = /(?:<object.*?>)?<a data-auto-recognition="true".*?>(.*?)<\/a>(?:<\/object>)?/g,
k = e => e.replace(y, (e, t) => t);
var C = r(1668),
w = r.n(C);
const A = {
p: "font_8",
h1: "font_0",
h2: "font_2",
h3: "font_3",
h4: "font_4",
h5: "font_5",
h6: "font_6",
ol: "font_8",
ul: "font_8"
},
x = /<(ol|ul|h[1-6]|p)(.*?)>/g,
$ = /(class\s*=['"][^'"]*?)\bfont_([79])\b/;
function S(e = "") {
return e.replace(x, (e, t, r = "") => {
const a = new RegExp("(class\\s*=['\"].*?)" + A[t]);
return a.test(r) ? e = e.replace(a, "$1") : "p" === t && $.test(r) && (e = e.replace($, (e, t, r) => `${t}${"7"===r?"p1":"p3"}`)), e.replace(/class\s*=(['"])\s*\1/, "").replace(/class\s*=(['"])\s*(.*?)\s*\1/, (e, t, r) => `class=${t}${r}${t}`).replace(/(.+)\s{2,}/g, "$1 ").replace(/\s+>/, ">")
})
}
const T = /<(ol|ul|h[1-6]|p)(.*?)>/g,
B = /class\s*?=\s*["'](.*?)['"]/,
N = /(class\s*?=\s*["'])(.*?)(['"])/;
function _(e, t, r) {
if (!e || t === r) return e;
const a = (e => {
const t = [];
return w.a.parseFragment(e, {
onOpenTag: ({
tagName: e
}) => {
t.push(e)
},
onClosingTag: ({
tagName: e
}) => {
t.push("/" + e)
}
}), t
})(e);
if (0 === a.length || a[0] !== t || a[a.length - 1] !== "/" + t || !((e, t) => {
const r = e.filter(e => e === t || e === "/" + t);
r.shift(), r.pop();
let a = 0;
for (const e of r)
if (a += e === t ? 1 : -1, a < 0) return !1;
return !0
})(a, t)) return e;
const n = new RegExp("<" + t);
return e.substring(0, e.lastIndexOf("</" + t)).concat(`</${r}>`).replace(n, "<" + r)
}
var D = {
ldquo: "\u201c",
lsquo: "\u2018",
rsquo: "\u2019",
laquo: "\xab",
raquo: "\xbb",
lsaquo: "\u2039",
rsaquo: "\u203a",
lt: "<",
gt: ">",
amp: "&",
bull: "\u2022",
deg: "\xb0",
hellip: "\u2026",
trade: "\u2122",
copy: "\xa9",
reg: "\xae",
mdash: "\u2014",
ndash: "\u2013",
nbsp: "\xa0",
emsp: "\u2003",
ensp: "\u2002",
sup2: "\xb2",
sup3: "\xb3",
frac14: "\xbc",
frac12: "\xbd",
frac34: "\xbe"
};
const I = Object.keys(D).sort((e, t) => t.length - e.length);
var R = new RegExp(`&(${I.join("|")});|&#([0-9]+);|&#[xX]([a-fA-F0-9]+);`, "g"),
L = {
0: "\ufffd",
128: "\u20ac",
130: "\u201a",
131: "\u0192",
132: "\u201e",
133: "\u2026",
134: "\u2020",
135: "\u2021",
136: "\u02c6",
137: "\u2030",
138: "\u0160",
139: "\u2039",
140: "\u0152",
142: "\u017d",
145: "\u2018",
146: "\u2019",
147: "\u201c",
148: "\u201d",
149: "\u2022",
150: "\u2013",
151: "\u2014",
152: "\u02dc",
153: "\u2122",
154: "\u0161",
155: "\u203a",
156: "\u0153",
158: "\u017e",
159: "\u0178"
};
function P(e) {
let t = "";
return e in L ? L[e] : (e > 65535 && (e -= 65536, t += String.fromCharCode(e >>> 10 & 1023 | 55296), e = 56320 | 1023 & e), t + String.fromCharCode(e))
}
const E = e => {
if (!e) return e;
if (self.he) return self.he.decode(e);
return function(e) {
const t = [];
let r = [],
a = !1;
for (const n of e) a && ";" !== n && r.push(n), "&" === n && (a = !0), ";" === n && (t.push(r.join("")), a = !1, r = []);
return t
}(e).every(e => e in D || "#" === e[0]) ? e.replace(R, (e, t, r, a) => t ? D[t] : r ? P(parseInt(r, 10)) : a ? P(parseInt(a, 16)) : e) : (self.importScripts("https://static.parastorage.com/unpkg/he@1.2.0/he.js"), E(e))
},
M = {
"&": "&",
"<": "<",
">": ">",
""": '"',
"'": "'"
},
H = /&(?:amp|lt|gt|quot|#(0+)?39);/g,
W = RegExp(H.source);
function G(e, t) {
const r = [];
let a = !1;
return w.a.parseFragment(e, {
onText: () => {
a = !0
},
onOpenTag: e => {
"span" === e.tagName && 'class="wixGuard"' === e.props && (a = !0), a || r.push(e)
},
onClosingTag: () => {
a || r.pop()
}
}),
function(e, t) {
let r = "",
a = "";
for (const {
tagName: t,
props: n
}
of e) r += n ? `<${t} ${n}>` : `<${t}>`, a = `</${t}>${a}`;
return r + t + a
}(r, t)
}
const J = 'data-attr-richtext-marker="true"';
function q(e) {
return `<span ${J}>${e}</span>`
}
function V(e, t) {
const r = U(e);
return r.withMarker ? `${r.before}${q(t)}${r.after}` : e
}
function F(e) {
return U(e).marker
}
function U(e) {
let t = !1,
r = !1;
const a = {
before: "",
marker: "",
after: "",
withMarker: !1
},
n = [];
return w.a.parseFragment(e, {
onText: e => {
t ? a.marker += e : r ? a.after += e : a.before += e
},
onOpenTag: e => {
const s = function(e) {
const t = e.props ? " " + e.props : "";
return `<${e.tagName}${t}>`
}(e);
t && (n.push(e.tagName), a.marker += s), r || "span" !== e.tagName || e.props !== J || (a.withMarker = !0, t = !0), t || (r ? a.after += s : a.before += s)
},
onClosingTag: e => {
const s = `</${e.tagName}>`;
t ? 0 === n.length && "span" === e.tagName ? (r = !0, t = !1) : (a.marker += s, n.pop()) : r ? a.after += s : a.before += s
}
}), a
}
const z = {
"&": "&",
"<": "<",
">": ">",
'"': """,
"'": "'"
},
K = /[&<>"']/g,
X = RegExp(K.source);
const Q = new RegExp(u.b, "mg"),
Y = new RegExp(u.c, "mg"),
Z = new RegExp(u.d, "mg"),
ee = e => a.a.isNil(e) ? "" : e,
te = Object(s.b)(({
setProps: e,
props: t,
platformUtils: {
linkUtils: r
},
metaData: a,
sdkData: s,
createSdkState: o
}) => {
const [i, c] = o(s), l = e => {
if (!i.linkPropsByHref || !i.linkPropsByHref[e]) {
const t = r.getLinkProps(e);
c({
linkPropsByHref: Object.assign(Object.assign({}, i.linkPropsByHref || {}), {
[e]: t
})
})
}
return i.linkPropsByHref[e]
}, b = e => m(e, l), d = e => m(e, l, r.getLink), f = () => Object(g.a)(v, k, S, d)(t.html), O = (e, t) => Object(g.a)(ee, e => ((e = "", {
addDefaultClasses: t
} = {}) => e ? e.replace(T, (e, r, a) => {
const n = a.match(B);
if (!n) return t ? `<${r}${a} class="${A[r]}">` : `<${r}${a}>`;
const s = n[1];
return /(^|\s)font_[0-9]($|\s)/.test(s) ? e : "p" === r && /\bp[13]\b/i.test(s) ? e.replace(/(.*?\bclass\s*?=.*?)\bp([13])\b(.*)/, (e, t, r, a) => `${t}${"1"===r?"font_7":"font_9"}${a}`) : `<${r}${a.replace(N,(e,t,a,n)=>`
$ {
t
}
$ {
A[r]
}
$ {
a
}
$ {
n
}
`)}>`
}) : e)(e, t), b, r.getImpliedLinks, p.a)(e), h = () => {
return t.html ? E((e = k(v(t.html)).replace(/\n/g, "").replace(/<br>/g, "\n").replace(/<br><\/br>/g, "\n").replace(/<br\s*\/?>/g, "\n").replace(Q, "\n").replace(Y, "").replace(Z, "").trim()) && W.test(e) ? e.replace(H, e => M[e] || "'") : e || "") : "";
var e
}, j = () => Object(g.a)(ee, F)(t.html);
return {get type() {
return u.e
},
get html() {
return f()
},
set html(t) {
e({
html: O(t, {
addDefaultClasses: !0
})
})
},
get text() {
return h()
},
set text(a) {
const n = a ? (s = a, s && X.test(s) ? s.replace(K, e => z[e]) : s || "").replace(/\n/g, "<br>") : u.f;
var s;
const o = r.getImpliedLinks(G(k(t.html), n), {
parseEscaped: !0
});
e({
html: o
})
},
get richText() {
return j()
},
set richText(r) {
const a = _(t.html, "p", "div");
if (a.includes(J)) e({
html: V(a, O(r))
});
else {
const t = q(O(r));
e({
html: G(a, t)
})
}
},
toJSON: () => Object.assign(Object.assign({}, Object(n.c)(a)), {
type: u.e,
html: f(),
text: h(),
richText: j()
})
}
}, {
type: ["object"],
properties: {
html: {
type: ["string", "nil"],
warnIfNil: !0
},
text: {
type: ["string", "nil"],
warnIfNil: !0
}
}
}),
re = Object(n.a)(),
ae = Object(o.a)({
enableRole: !0,
enableAriaHidden: !0,
enableAriaLabel: !0,
enableAriaLabelledBy: !0,
enableAriaDescribedBy: !0,
enableAriaRoleDescription: !0,
enableAriaLive: !0,
enableAriaAtomic: !0,
enableAriaRelevant: !0,
enableAriaBusy: !0,
enableTabIndex: !0,
enableScreenReader: !0
}),
ne = Object(i.a)(re, c.a, ae, te, l.a, b.a);
t.a = Object(d.a)(ne)
},
4069: function(e, t, r) {
"use strict";
var a = r(62),
n = r(994),
s = r(92),
o = r(1024),
i = r(379),
c = r(63),
l = r(1187);
const b = Object(n.a)({
BackgroundColor: !0,
BorderColor: !0
}, {
cssVarPrefix: l.b
}),
d = Object(a.a)({
useHiddenCollapsed: !1
}),
p = Object(s.a)(d, ({
metaData: e
}) => ({get type() {
return "$w.Footer"
},
toJSON: () => Object.assign(Object.assign({}, Object(a.c)(e)), {
type: "$w.Footer"
})
}), o.a, i.a, b);
t.a = Object(c.a)(p)
},
4070: function(e, t, r) {
"use strict";
var a = r(62),
n = r(994),
s = r(92),
o = r(1024),
i = r(379),
c = r(63),
l = r(1187);
const b = Object(n.a)({
BackgroundColor: !0,
BorderColor: !0
}, {
cssVarPrefix: l.b
}),
d = Object(a.a)({
useHiddenCollapsed: !1
}),
p = Object(s.a)(d, ({
metaData: e
}) => ({get type() {
return "$w.Header"
},
toJSON: () => Object.assign(Object.assign({}, Object(a.c)(e)), {
type: "$w.Header"
})
}), o.a, i.a, b);
t.a = Object(c.a)(p)
},
4100: function(e, t, r) {
"use strict";
e.exports = {
HTML_END: "HTML_END",
OPEN_TAG_START: "<",
TAG_END: ">",
SELF_CLOSING: "/>",
CLOSING_TAG_START: "</",
SPACE: " "
}
},
4101: function(e, t, r) {
"use strict";
e.exports = ["area", "base", "br", "col", "embed", "hr", "img", "input", "link", "meta", "param", "source", "track", "wbr"]
}
}
]);
//# sourceMappingURL=https://static.parastorage.com/services/editor-elements-library/dist/rb_wixui.corvid~bootstrap.a8bebc20.chunk.min.js.map
// concatenated at RegistryManifestPlugin
var currentGlobal = "undefined" != typeof globalThis ? globalThis : "undefined" != typeof window ? window : "undefined" != typeof self ? self : "undefined" != typeof global ? global : null;
currentGlobal['rb_wixui.corvid_bootstrap_lazy_factory'] = function() {
! function(t, e) {
"object" == typeof exports && "object" == typeof module ? module.exports = e(require("lodash")) : "function" == typeof define && define.amd ? define("rb_wixui.corvid_bootstrap", ["lodash"], e) : "object" == typeof exports ? exports["rb_wixui.corvid_bootstrap"] = e(require("lodash")) : t["rb_wixui.corvid_bootstrap"] = e(t._)
}("undefined" != typeof self ? self : this, (function(t) {
return function(t) {
function e(e) {
for (var n, a, s = e[0], l = e[1], c = e[2], f = 0, d = []; f < s.length; f++) a = s[f], Object.prototype.hasOwnProperty.call(i, a) && i[a] && d.push(i[a][0]), i[a] = 0;
for (n in l) Object.prototype.hasOwnProperty.call(l, n) && (t[n] = l[n]);
for (u && u(e); d.length;) d.shift()();
return o.push.apply(o, c || []), r()
}
function r() {
for (var t, e = 0; e < o.length; e++) {
for (var r = o[e], n = !0, s = 1; s < r.length; s++) {
var l = r[s];
0 !== i[l] && (n = !1)
}
n && (o.splice(e--, 1), t = a(a.s = r[0]))
}
return t
}
var n = {},
i = {
126: 0
},
o = [];
function a(e) {
if (n[e]) return n[e].exports;
var r = n[e] = {
i: e,
l: !1,
exports: {}
};
return t[e].call(r.exports, r, r.exports, a), r.l = !0, r.exports
}
a.m = t, a.c = n, a.d = function(t, e, r) {
a.o(t, e) || Object.defineProperty(t, e, {
enumerable: !0,
get: r
})
}, a.r = function(t) {
"undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(t, Symbol.toStringTag, {
value: "Module"
}), Object.defineProperty(t, "__esModule", {
value: !0
})
}, a.t = function(t, e) {
if (1 & e && (t = a(t)), 8 & e) return t;
if (4 & e && "object" == typeof t && t && t.__esModule) return t;
var r = Object.create(null);
if (a.r(r), Object.defineProperty(r, "default", {
enumerable: !0,
value: t
}), 2 & e && "string" != typeof t)
for (var n in t) a.d(r, n, function(e) {
return t[e]
}.bind(null, n));
return r
}, a.n = function(t) {
var e = t && t.__esModule ? function() {
return t.default
} : function() {
return t
};
return a.d(e, "a", e), e
}, a.o = function(t, e) {
return Object.prototype.hasOwnProperty.call(t, e)
}, a.p = "https://static.parastorage.com/services/editor-elements-library/dist/";
var s = ("undefined" != typeof self ? self : this).webpackJsonp__wix_editor_elements_library = ("undefined" != typeof self ? self : this).webpackJsonp__wix_editor_elements_library || [],
l = s.push.bind(s);
s.push = e, s = s.slice();
for (var c = 0; c < s.length; c++) e(s[c]);
var u = l;
return o.push([4256, 2, 5]), r()
}({
1067: function(t, e, r) {
var n = r(1305),
i = r(1590);
for (var o in (e = t.exports = function(t, e) {
return new i(e).process(t)
}).FilterCSS = i, n) e[o] = n[o];
"undefined" != typeof window && (window.filterCSS = t.exports)
},
1068: function(t, e) {
t.exports = {
indexOf: function(t, e) {
var r, n;
if (Array.prototype.indexOf) return t.indexOf(e);
for (r = 0, n = t.length; r < n; r++)
if (t[r] === e) return r;
return -1
},
forEach: function(t, e, r) {
var n, i;
if (Array.prototype.forEach) return t.forEach(e, r);
for (n = 0, i = t.length; n < i; n++) e.call(r, t[n], n, t)
},
trim: function(t) {
return String.prototype.trim ? t.trim() : t.replace(/(^\s*)|(\s*$)/g, "")
},
spaceIndex: function(t) {
var e = /\s|\n|\t/.exec(t);
return e ? e.index : -1
}
}
},
1187: function(t, e, r) {
"use strict";
r.d(e, "b", (function() {
return n
})), r.d(e, "a", (function() {
return i
}));
const n = "screenwidth",
i = {
screenWidthContainerBg: "screenWidthContainerBg",
screenWidthContainerBgCenter: "screenWidthContainerBgCenter"
}
},
1278: function(t, e, r) {
"use strict";
r.d(e, "a", (function() {
return f
}));
var n = r(752),
i = r.n(n);
const o = ["data", "aria"],
a = ["style", "class", "dir", "wix-comp", "role", "tabindex", "focus"],
s = ["href", "dataquery", "id", "rel", "target"],
l = ["color", "background-color", "font-size", "font-family", "font-style", "text-decoration", "writing-mode", "text-orientation", "line-height", "text-shadow", "direction", "position", "z-index", "top", "left", "overflow", "overflow-x", "overflow-y"];
const c = function() {
const t = Object.assign(Object.assign({}, n.whiteList), {
strike: [],
hatul: [],
wline: [],
object: []
});
return t.a && t.a.push(...s), Object.keys(t).forEach(e => {
t[e] || (t[e] = []), t[e].push(...a)
}), t
}(),
u = l.reduce((t, e) => (t[e] = !0, t), {});
function f(t) {
return i()(t, {
whiteList: c,
stripIgnoreTagBody: ["script", "style"],
stripBlankChar: !0,
css: {
whiteList: Object.assign(Object.assign({}, Object(n.getDefaultCSSWhiteList)()), u)
},
safeAttrValue: function(t, e, r, i) {
const o = function(t, e, r, i) {
return "a" === t && "href" === e && r.startsWith("wix:document") ? r : Object(n.safeAttrValue)(t, e, r, i)
}(t, e, r, i);
return o || ""
},
onIgnoreTagAttr: (t, e, r) => o.some(t => e.startsWith(t)) ? `${e}="${r}"` : "",
onIgnoreTag: () => ""
})
}
},
1304: function(t, e, r) {
var n = r(1067).FilterCSS,
i = r(1067).getDefaultWhiteList,
o = r(1068);
function a() {
return {
a: ["target", "href", "title"],
abbr: ["title"],
address: [],
area: ["shape", "coords", "href", "alt"],
article: [],
aside: [],
audio: ["autoplay", "controls", "crossorigin", "loop", "muted", "preload", "src"],
b: [],
bdi: ["dir"],
bdo: ["dir"],
big: [],
blockquote: ["cite"],
br: [],
caption: [],
center: [],
cite: [],
code: [],
col: ["align", "valign", "span", "width"],
colgroup: ["align", "valign", "span", "width"],
dd: [],
del: ["datetime"],
details: ["open"],
div: [],
dl: [],
dt: [],
em: [],
figcaption: [],
figure: [],
font: ["color", "size", "face"],
footer: [],
h1: [],
h2: [],
h3: [],
h4: [],
h5: [],
h6: [],
header: [],
hr: [],
i: [],
img: ["src", "alt", "title", "width", "height"],
ins: ["datetime"],
li: [],
mark: [],
nav: [],
ol: [],
p: [],
pre: [],
s: [],
section: [],
small: [],
span: [],
sub: [],
summary: [],
sup: [],
strong: [],
strike: [],
table: ["width", "border", "align", "valign"],
tbody: ["align", "valign"],
td: ["width", "rowspan", "colspan", "align", "valign"],
tfoot: ["align", "valign"],
th: ["width", "rowspan", "colspan", "align", "valign"],
thead: ["align", "valign"],
tr: ["rowspan", "align", "valign"],
tt: [],
u: [],
ul: [],
video: ["autoplay", "controls", "crossorigin", "loop", "muted", "playsinline", "poster", "preload", "src", "height", "width"]
}
}
var s = new n;
function l(t) {
return t.replace(c, "<").replace(u, ">")
}
var c = /</g,
u = />/g,
f = /"/g,
d = /"/g,
p = /&#([a-zA-Z0-9]*);?/gim,
g = /:?/gim,
h = /&newline;?/gim,
m = /((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,
b = /e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,
v = /u\s*r\s*l\s*\(.*/gi;
function w(t) {
return t.replace(f, """)
}
function y(t) {
return t.replace(d, '"')
}
function x(t) {
return t.replace(p, (function(t, e) {
return "x" === e[0] || "X" === e[0] ? String.fromCharCode(parseInt(e.substr(1), 16)) : String.fromCharCode(parseInt(e, 10))
}))
}
function k(t) {
return t.replace(g, ":").replace(h, " ")
}
function A(t) {
for (var e = "", r = 0, n = t.length; r < n; r++) e += t.charCodeAt(r) < 32 ? " " : t.charAt(r);
return o.trim(e)
}
function S(t) {
return t = A(t = k(t = x(t = y(t))))
}
function T(t) {
return t = l(t = w(t))
}
e.whiteList = {
a: ["target", "href", "title"],
abbr: ["title"],
address: [],
area: ["shape", "coords", "href", "alt"],
article: [],
aside: [],
audio: ["autoplay", "controls", "crossorigin", "loop", "muted", "preload", "src"],
b: [],
bdi: ["dir"],
bdo: ["dir"],
big: [],
blockquote: ["cite"],
br: [],
caption: [],
center: [],
cite: [],
code: [],
col: ["align", "valign", "span", "width"],
colgroup: ["align", "valign", "span", "width"],
dd: [],
del: ["datetime"],
details: ["open"],
div: [],
dl: [],
dt: [],
em: [],
figcaption: [],
figure: [],
font: ["color", "size", "face"],
footer: [],
h1: [],
h2: [],
h3: [],
h4: [],
h5: [],
h6: [],
header: [],
hr: [],
i: [],
img: ["src", "alt", "title", "width", "height"],
ins: ["datetime"],
li: [],
mark: [],
nav: [],
ol: [],
p: [],
pre: [],
s: [],
section: [],
small: [],
span: [],
sub: [],
summary: [],
sup: [],
strong: [],
strike: [],
table: ["width", "border", "align", "valign"],
tbody: ["align", "valign"],
td: ["width", "rowspan", "colspan", "align", "valign"],
tfoot: ["align", "valign"],
th: ["width", "rowspan", "colspan", "align", "valign"],
thead: ["align", "valign"],
tr: ["rowspan", "align", "valign"],
tt: [],
u: [],
ul: [],
video: ["autoplay", "controls", "crossorigin", "loop", "muted", "playsinline", "poster", "preload", "src", "height", "width"]
}, e.getDefaultWhiteList = a, e.onTag = function(t, e, r) {}, e.onIgnoreTag = function(t, e, r) {}, e.onTagAttr = function(t, e, r) {}, e.onIgnoreTagAttr = function(t, e, r) {}, e.safeAttrValue = function(t, e, r, n) {
if (r = S(r), "href" === e || "src" === e) {
if ("#" === (r = o.trim(r))) return "#";
if ("http://" !== r.substr(0, 7) && "https://" !== r.substr(0, 8) && "mailto:" !== r.substr(0, 7) && "tel:" !== r.substr(0, 4) && "data:image/" !== r.substr(0, 11) && "ftp://" !== r.substr(0, 6) && "./" !== r.substr(0, 2) && "../" !== r.substr(0, 3) && "#" !== r[0] && "/" !== r[0]) return ""
} else if ("background" === e) {
if (m.lastIndex = 0, m.test(r)) return ""
} else if ("style" === e) {
if (b.lastIndex = 0, b.test(r)) return "";
if (v.lastIndex = 0, v.test(r) && (m.lastIndex = 0, m.test(r))) return "";
!1 !== n && (r = (n = n || s).process(r))
}
return r = T(r)
}, e.escapeHtml = l, e.escapeQuote = w, e.unescapeQuote = y, e.escapeHtmlEntities = x, e.escapeDangerHtml5Entities = k, e.clearNonPrintableCharacter = A, e.friendlyAttrValue = S, e.escapeAttrValue = T, e.onIgnoreTagStripAll = function() {
return ""
}, e.StripTagBody = function(t, e) {
"function" != typeof e && (e = function() {});
var r = !Array.isArray(t),
n = [],
i = !1;
return {
onIgnoreTag: function(a, s, l) {
if (function(e) {
return !!r || -1 !== o.indexOf(t, e)
}(a)) {
if (l.isClosing) {
var c = "[/removed]",
u = l.position + c.length;
return n.push([!1 !== i ? i : l.position, u]), i = !1, c
}
return i || (i = l.position), "[removed]"
}
return e(a, s, l)
},
remove: function(t) {
var e = "",
r = 0;
return o.forEach(n, (function(n) {
e += t.slice(r, n[0]), r = n[1]
})), e += t.slice(r)
}
}
}, e.stripCommentTag = function(t) {
for (var e = "", r = 0; r < t.length;) {
var n = t.indexOf("\x3c!--", r);
if (-1 === n) {
e += t.slice(r);
break
}
e += t.slice(r, n);
var i = t.indexOf("--\x3e", n);
if (-1 === i) break;
r = i + 3
}
return e
}, e.stripBlankChar = function(t) {
var e = t.split("");
return (e = e.filter((function(t) {
var e = t.charCodeAt(0);
return 127 !== e && (!(e <= 31) || (10 === e || 13 === e))
}))).join("")
}, e.cssFilter = s, e.getDefaultCSSWhiteList = i
},
1305: function(t, e) {
function r() {
var t = {
"align-content": !1,
"align-items": !1,
"align-self": !1,
"alignment-adjust": !1,
"alignment-baseline": !1,
all: !1,
"anchor-point": !1,
animation: !1,
"animation-delay": !1,
"animation-direction": !1,
"animation-duration": !1,
"animation-fill-mode": !1,
"animation-iteration-count": !1,
"animation-name": !1,
"animation-play-state": !1,
"animation-timing-function": !1,
azimuth: !1,
"backface-visibility": !1,
background: !0,
"background-attachment": !0,
"background-clip": !0,
"background-color": !0,
"background-image": !0,
"background-origin": !0,
"background-position": !0,
"background-repeat": !0,
"background-size": !0,
"baseline-shift": !1,
binding: !1,
bleed: !1,
"bookmark-label": !1,
"bookmark-level": !1,
"bookmark-state": !1,
border: !0,
"border-bottom": !0,
"border-bottom-color": !0,
"border-bottom-left-radius": !0,
"border-bottom-right-radius": !0,
"border-bottom-style": !0,
"border-bottom-width": !0,
"border-collapse": !0,
"border-color": !0,
"border-image": !0,
"border-image-outset": !0,
"border-image-repeat": !0,
"border-image-slice": !0,
"border-image-source": !0,
"border-image-width": !0,
"border-left": !0,
"border-left-color": !0,
"border-left-style": !0,
"border-left-width": !0,
"border-radius": !0,
"border-right": !0,
"border-right-color": !0,
"border-right-style": !0,
"border-right-width": !0,
"border-spacing": !0,
"border-style": !0,
"border-top": !0,
"border-top-color": !0,
"border-top-left-radius": !0,
"border-top-right-radius": !0,
"border-top-style": !0,
"border-top-width": !0,
"border-width": !0,
bottom: !1,
"box-decoration-break": !0,
"box-shadow": !0,
"box-sizing": !0,
"box-snap": !0,
"box-suppress": !0,
"break-after": !0,
"break-before": !0,
"break-inside": !0,
"caption-side": !1,
chains: !1,
clear: !0,
clip: !1,
"clip-path": !1,
"clip-rule": !1,
color: !0,
"color-interpolation-filters": !0,
"column-count": !1,
"column-fill": !1,
"column-gap": !1,
"column-rule": !1,
"column-rule-color": !1,
"column-rule-style": !1,
"column-rule-width": !1,
"column-span": !1,
"column-width": !1,
columns: !1,
contain: !1,
content: !1,
"counter-increment": !1,
"counter-reset": !1,
"counter-set": !1,
crop: !1,
cue: !1,
"cue-after": !1,
"cue-before": !1,
cursor: !1,
direction: !1,
display: !0,
"display-inside": !0,
"display-list": !0,
"display-outside": !0,
"dominant-baseline": !1,
elevation: !1,
"empty-cells": !1,
filter: !1,
flex: !1,
"flex-basis": !1,
"flex-direction": !1,
"flex-flow": !1,
"flex-grow": !1,
"flex-shrink": !1,
"flex-wrap": !1,
float: !1,
"float-offset": !1,
"flood-color": !1,
"flood-opacity": !1,
"flow-from": !1,
"flow-into": !1,
font: !0,
"font-family": !0,
"font-feature-settings": !0,
"font-kerning": !0,
"font-language-override": !0,
"font-size": !0,
"font-size-adjust": !0,
"font-stretch": !0,
"font-style": !0,
"font-synthesis": !0,
"font-variant": !0,
"font-variant-alternates": !0,
"font-variant-caps": !0,
"font-variant-east-asian": !0,
"font-variant-ligatures": !0,
"font-variant-numeric": !0,
"font-variant-position": !0,
"font-weight": !0,
grid: !1,
"grid-area": !1,
"grid-auto-columns": !1,
"grid-auto-flow": !1,
"grid-auto-rows": !1,
"grid-column": !1,
"grid-column-end": !1,
"grid-column-start": !1,
"grid-row": !1,
"grid-row-end": !1,
"grid-row-start": !1,
"grid-template": !1,
"grid-template-areas": !1,
"grid-template-columns": !1,
"grid-template-rows": !1,
"hanging-punctuation": !1,
height: !0,
hyphens: !1,
icon: !1,
"image-orientation": !1,
"image-resolution": !1,
"ime-mode": !1,
"initial-letters": !1,
"inline-box-align": !1,
"justify-content": !1,
"justify-items": !1,
"justify-self": !1,
left: !1,
"letter-spacing": !0,
"lighting-color": !0,
"line-box-contain": !1,
"line-break": !1,
"line-grid": !1,
"line-height": !1,
"line-snap": !1,
"line-stacking": !1,
"line-stacking-ruby": !1,
"line-stacking-shift": !1,
"line-stacking-strategy": !1,
"list-style": !0,
"list-style-image": !0,
"list-style-position": !0,
"list-style-type": !0,
margin: !0,
"margin-bottom": !0,
"margin-left": !0,
"margin-right": !0,
"margin-top": !0,
"marker-offset": !1,
"marker-side": !1,
marks: !1,
mask: !1,
"mask-box": !1,
"mask-box-outset": !1,
"mask-box-repeat": !1,
"mask-box-slice": !1,
"mask-box-source": !1,
"mask-box-width": !1,
"mask-clip": !1,
"mask-image": !1,
"mask-origin": !1,
"mask-position": !1,
"mask-repeat": !1,
"mask-size": !1,
"mask-source-type": !1,
"mask-type": !1,
"max-height": !0,
"max-lines": !1,
"max-width": !0,
"min-height": !0,
"min-width": !0,
"move-to": !1,
"nav-down": !1,
"nav-index": !1,
"nav-left": !1,
"nav-right": !1,
"nav-up": !1,
"object-fit": !1,
"object-position": !1,
opacity: !1,
order: !1,
orphans: !1,
outline: !1,
"outline-color": !1,
"outline-offset": !1,
"outline-style": !1,
"outline-width": !1,
overflow: !1,
"overflow-wrap": !1,
"overflow-x": !1,
"overflow-y": !1,
padding: !0,
"padding-bottom": !0,
"padding-left": !0,
"padding-right": !0,
"padding-top": !0,
page: !1,
"page-break-after": !1,
"page-break-before": !1,
"page-break-inside": !1,
"page-policy": !1,
pause: !1,
"pause-after": !1,
"pause-before": !1,
perspective: !1,
"perspective-origin": !1,
pitch: !1,
"pitch-range": !1,
"play-during": !1,
position: !1,
"presentation-level": !1,
quotes: !1,
"region-fragment": !1,
resize: !1,
rest: !1,
"rest-after": !1,
"rest-before": !1,
richness: !1,
right: !1,
rotation: !1,
"rotation-point": !1,
"ruby-align": !1,
"ruby-merge": !1,
"ruby-position": !1,
"shape-image-threshold": !1,
"shape-outside": !1,
"shape-margin": !1,
size: !1,
speak: !1,
"speak-as": !1,
"speak-header": !1,
"speak-numeral": !1,
"speak-punctuation": !1,
"speech-rate": !1,
stress: !1,
"string-set": !1,
"tab-size": !1,
"table-layout": !1,
"text-align": !0,
"text-align-last": !0,
"text-combine-upright": !0,
"text-decoration": !0,
"text-decoration-color": !0,
"text-decoration-line": !0,
"text-decoration-skip": !0,
"text-decoration-style": !0,
"text-emphasis": !0,
"text-emphasis-color": !0,
"text-emphasis-position": !0,
"text-emphasis-style": !0,
"text-height": !0,
"text-indent": !0,
"text-justify": !0,
"text-orientation": !0,
"text-overflow": !0,
"text-shadow": !0,
"text-space-collapse": !0,
"text-transform": !0,
"text-underline-position": !0,
"text-wrap": !0,
top: !1,
transform: !1,
"transform-origin": !1,
"transform-style": !1,
transition: !1,
"transition-delay": !1,
"transition-duration": !1,
"transition-property": !1,
"transition-timing-function": !1,
"unicode-bidi": !1,
"vertical-align": !1,
visibility: !1,
"voice-balance": !1,
"voice-duration": !1,
"voice-family": !1,
"voice-pitch": !1,
"voice-range": !1,
"voice-rate": !1,
"voice-stress": !1,
"voice-volume": !1,
volume: !1,
"white-space": !1,
widows: !1,
width: !0,
"will-change": !1,
"word-break": !0,
"word-spacing": !0,
"word-wrap": !0,
"wrap-flow": !1,
"wrap-through": !1,
"writing-mode": !1,
"z-index": !1
};
return t
}
var n = /javascript\s*\:/gim;
e.whiteList = r(), e.getDefaultWhiteList = r, e.onAttr = function(t, e, r) {}, e.onIgnoreAttr = function(t, e, r) {}, e.safeAttrValue = function(t, e) {
return n.test(e) ? "" : e
}
},
1306: function(t, e) {
t.exports = {
indexOf: function(t, e) {
var r, n;
if (Array.prototype.indexOf) return t.indexOf(e);
for (r = 0, n = t.length; r < n; r++)
if (t[r] === e) return r;
return -1
},
forEach: function(t, e, r) {
var n, i;
if (Array.prototype.forEach) return t.forEach(e, r);
for (n = 0, i = t.length; n < i; n++) e.call(r, t[n], n, t)
},
trim: function(t) {
return String.prototype.trim ? t.trim() : t.replace(/(^\s*)|(\s*$)/g, "")
},
trimRight: function(t) {
return String.prototype.trimRight ? t.trimRight() : t.replace(/(\s*$)/g, "")
}
}
},
1307: function(t, e, r) {
var n = r(1068);
function i(t) {
var e, r = n.spaceIndex(t);
return e = -1 === r ? t.slice(1, -1) : t.slice(1, r + 1), "/" === (e = n.trim(e).toLowerCase()).slice(0, 1) && (e = e.slice(1)), "/" === e.slice(-1) && (e = e.slice(0, -1)), e
}
function o(t) {
return "</" === t.slice(0, 2)
}
var a = /[^a-zA-Z0-9\\_:.-]/gim;
function s(t, e) {
for (; e < t.length; e++) {
var r = t[e];
if (" " !== r) return "=" === r ? e : -1
}
}
function l(t, e) {
for (; e < t.length; e++) {
var r = t[e];
if (" " !== r) return "'" === r || '"' === r ? e : -1
}
}
function c(t, e) {
for (; e > 0; e--) {
var r = t[e];
if (" " !== r) return "=" === r ? e : -1
}
}
function u(t) {
return function(t) {
return '"' === t[0] && '"' === t[t.length - 1] || "'" === t[0] && "'" === t[t.length - 1]
}(t) ? t.substr(1, t.length - 2) : t
}
e.parseTag = function(t, e, r) {
"use strict";
var n = "",
a = 0,
s = !1,
l = !1,
c = 0,
u = t.length,
f = "",
d = "";
t: for (c = 0; c < u; c++) {
var p = t.charAt(c);
if (!1 === s) {
if ("<" === p) {
s = c;
continue
}
} else if (!1 === l) {
if ("<" === p) {
n += r(t.slice(a, c)), s = c, a = c;
continue
}
if (">" === p || c === u - 1) {
n += r(t.slice(a, s)), f = i(d = t.slice(s, c + 1)), n += e(s, n.length, f, d, o(d)), a = c + 1, s = !1;
continue
}
if ('"' === p || "'" === p)
for (var g = 1, h = t.charAt(c - g);
"" === h.trim() || "=" === h;) {
if ("=" === h) {
l = p;
continue t
}
h = t.charAt(c - ++g)
}
} else if (p === l) {
l = !1;
continue
}
}
return a < u && (n += r(t.substr(a))), n
}, e.parseAttr = function(t, e) {
"use strict";
var r = 0,
i = 0,
o = [],
f = !1,
d = t.length;
function p(t, r) {
if (!((t = (t = n.trim(t)).replace(a, "").toLowerCase()).length < 1)) {
var i = e(t, r || "");
i && o.push(i)
}
}
for (var g = 0; g < d; g++) {
var h, m = t.charAt(g);
if (!1 !== f || "=" !== m)
if (!1 === f || g !== i)
if (/\s|\n|\t/.test(m)) {
if (t = t.replace(/\s|\n|\t/g, " "), !1 === f) {
if (-1 === (h = s(t, g))) {
p(n.trim(t.slice(r, g))), f = !1, r = g + 1;
continue
}
g = h - 1;
continue
}
if (-1 === (h = c(t, g - 1))) {
p(f, u(n.trim(t.slice(r, g)))), f = !1, r = g + 1;
continue
}
} else;
else {
if (-1 === (h = t.indexOf(m, g + 1))) break;
p(f, n.trim(t.slice(i + 1, h))), f = !1, r = (g = h) + 1
} else f = t.slice(r, g), r = g + 1, i = '"' === t.charAt(r) || "'" === t.charAt(r) ? r : l(t, g + 1)
}
return r < t.length && (!1 === f ? p(t.slice(r)) : p(f, u(n.trim(t.slice(r))))), n.trim(o.join(" "))
}
},
1364: function(t, e, r) {
"use strict";
r.d(e, "a", (function() {
return n
})), r.d(e, "b", (function() {
return i
}));
const n = {
columns: "columns"
},
i = "$w.ColumnStrip"
},
1590: function(t, e, r) {
var n = r(1305),
i = r(1591);
r(1306);
function o(t) {
return null == t
}
function a(t) {
(t = function(t) {
var e = {};
for (var r in t) e[r] = t[r];
return e
}(t || {})).whiteList = t.whiteList || n.whiteList, t.onAttr = t.onAttr || n.onAttr, t.onIgnoreAttr = t.onIgnoreAttr || n.onIgnoreAttr, t.safeAttrValue = t.safeAttrValue || n.safeAttrValue, this.options = t
}
a.prototype.process = function(t) {
if (!(t = (t = t || "").toString())) return "";
var e = this.options,
r = e.whiteList,
n = e.onAttr,
a = e.onIgnoreAttr,
s = e.safeAttrValue;
return i(t, (function(t, e, i, l, c) {
var u = r[i],
f = !1;
if (!0 === u ? f = u : "function" == typeof u ? f = u(l) : u instanceof RegExp && (f = u.test(l)), !0 !== f && (f = !1), l = s(i, l)) {
var d, p = {
position: e,
sourcePosition: t,
source: c,
isWhite: f
};
return f ? o(d = n(i, l, p)) ? i + ":" + l : d : o(d = a(i, l, p)) ? void 0 : d
}
}))
}, t.exports = a
},
1591: function(t, e, r) {
var n = r(1306);
t.exports = function(t, e) {
";" !== (t = n.trimRight(t))[t.length - 1] && (t += ";");
var r = t.length,
i = !1,
o = 0,
a = 0,
s = "";
function l() {
if (!i) {
var r = n.trim(t.slice(o, a)),
l = r.indexOf(":");
if (-1 !== l) {
var c = n.trim(r.slice(0, l)),
u = n.trim(r.slice(l + 1));
if (c) {
var f = e(o, s.length, c, u, r);
f && (s += f + "; ")
}
}
}
o = a + 1
}
for (; a < r; a++) {
var c = t[a];
if ("/" === c && "*" === t[a + 1]) {
var u = t.indexOf("*/", a + 2);
if (-1 === u) break;
o = (a = u + 1) + 1, i = !1
} else "(" === c ? i = !0 : ")" === c ? i = !1 : ";" === c ? i || l() : "\n" === c && l()
}
return n.trim(s)
}
},
1592: function(t, e, r) {
var n = r(1067).FilterCSS,
i = r(1304),
o = r(1307),
a = o.parseTag,
s = o.parseAttr,
l = r(1068);
function c(t) {
return null == t
}
function u(t) {
(t = function(t) {
var e = {};
for (var r in t) e[r] = t[r];
return e
}(t || {})).stripIgnoreTag && (t.onIgnoreTag && console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'), t.onIgnoreTag = i.onIgnoreTagStripAll), t.whiteList || t.allowList ? t.whiteList = function(t) {
var e = {};
for (var r in t) Array.isArray(t[r]) ? e[r.toLowerCase()] = t[r].map((function(t) {
return t.toLowerCase()
})) : e[r.toLowerCase()] = t[r];
return e
}(t.whiteList || t.allowList) : t.whiteList = i.whiteList, t.onTag = t.onTag || i.onTag, t.onTagAttr = t.onTagAttr || i.onTagAttr, t.onIgnoreTag = t.onIgnoreTag || i.onIgnoreTag, t.onIgnoreTagAttr = t.onIgnoreTagAttr || i.onIgnoreTagAttr, t.safeAttrValue = t.safeAttrValue || i.safeAttrValue, t.escapeHtml = t.escapeHtml || i.escapeHtml, this.options = t, !1 === t.css ? this.cssFilter = !1 : (t.css = t.css || {}, this.cssFilter = new n(t.css))
}
u.prototype.process = function(t) {
if (!(t = (t = t || "").toString())) return "";
var e = this.options,
r = e.whiteList,
n = e.onTag,
o = e.onIgnoreTag,
u = e.onTagAttr,
f = e.onIgnoreTagAttr,
d = e.safeAttrValue,
p = e.escapeHtml,
g = this.cssFilter;
e.stripBlankChar && (t = i.stripBlankChar(t)), e.allowCommentTag || (t = i.stripCommentTag(t));
var h = !1;
e.stripIgnoreTagBody && (h = i.StripTagBody(e.stripIgnoreTagBody, o), o = h.onIgnoreTag);
var m = a(t, (function(t, e, i, a, h) {
var m = {
sourcePosition: t,
position: e,
isClosing: h,
isWhite: Object.prototype.hasOwnProperty.call(r, i)
},
b = n(i, a, m);
if (!c(b)) return b;
if (m.isWhite) {
if (m.isClosing) return "</" + i + ">";
var v = function(t) {
var e = l.spaceIndex(t);
if (-1 === e) return {
html: "",
closing: "/" === t[t.length - 2]
};
var r = "/" === (t = l.trim(t.slice(e + 1, -1)))[t.length - 1];
return r && (t = l.trim(t.slice(0, -1))), {
html: t,
closing: r
}
}(a),
w = r[i],
y = s(v.html, (function(t, e) {
var r = -1 !== l.indexOf(w, t),
n = u(i, t, e, r);
return c(n) ? r ? (e = d(i, t, e, g)) ? t + '="' + e + '"' : t : c(n = f(i, t, e, r)) ? void 0 : n : n
}));
return a = "<" + i, y && (a += " " + y), v.closing && (a += " /"), a += ">"
}
return c(b = o(i, a, m)) ? p(a) : b
}), p);
return h && (m = h.remove(m)), m
}, t.exports = u
},
4256: function(t, e, r) {
"use strict";
r.r(e), r.d(e, "components", (function() {
return h
})), r.d(e, "version", (function() {
return m
}));
var n = r(3847),
i = r(3858),
o = r(4069),
a = r(4070),
s = r(1779),
l = r(3880),
c = r(3887),
u = r(1312),
f = r(3899),
d = r(3912),
p = r(4059),
g = r(3913);
const h = {
StylableButton: {
sdk: n.a
},
Anchor: {
sdk: i.a
},
FooterContainer: {
sdk: o.a
},
HeaderContainer: {
sdk: a.a
},
MediaContainer: {
sdk: s.a
},
MenuContainer: {
sdk: l.a
},
PageBackground: {
sdk: c.a
},
SiteButton: {
sdk: u.a
},
StripColumnsContainer: {
sdk: f.a
},
WPhoto: {
sdk: d.a
},
WRichText: {
sdk: p.a
},
Page: {
sdk: g.a
}
},
m = "1.0.0"
},
63: function(t, e, r) {
"use strict";
function n(t) {
return {
factory: t
}
}
r.d(e, "a", (function() {
return n
}))
},
7: function(e, r) {
e.exports = t
},
727: function(t, e, r) {
"use strict";
r.d(e, "a", (function() {
return n
}));
const n = t => /(^https?)|(^data)|(^blob)|(^\/\/)/.test(t)
},
735: function(t, e, r) {
"use strict";
r.d(e, "f", (function() {
return n
})), r.d(e, "d", (function() {
return i
})), r.d(e, "c", (function() {
return o
})), r.d(e, "b", (function() {
return a
})), r.d(e, "e", (function() {
return s
})), r.d(e, "a", (function() {
return l
}));
const n = '<span class="wixGuard">​</span>',
i = "<([-A-Za-z0-9_?:]+)((?:\\s+(?:x:)?[-A-Za-z0-9_]+(?:\\s*=\\s*(?:(?:\"[^\"]*\")|(?:'[^']*')|[^>\\s]+))?)*)\\s*(/?)>",
o = "</([-A-Za-z0-9_?:]+)[^>]*>",
a = "</(h[1-6]|p)[^>]*>",
s = "$w.Text",
l = {
richTextElement: "richTextElement",
containerElement: "containerElement",
screenReaderPrefixElement: "screenReaderPrefixElement",
screenReaderSuffixElement: "screenReaderSuffixElement"
}
},
752: function(t, e, r) {
var n = r(1304),
i = r(1307),
o = r(1592);
function a(t, e) {
return new o(e).process(t)
}(e = t.exports = a).filterXSS = a, e.FilterXSS = o,
function() {
for (var t in n) e[t] = n[t];
for (var r in i) e[r] = i[r]
}(), "undefined" != typeof window && (window.filterXSS = t.exports), "undefined" != typeof self && "undefined" != typeof DedicatedWorkerGlobalScope && self instanceof DedicatedWorkerGlobalScope && (self.filterXSS = t.exports)
},
802: function(t, e, r) {
"use strict";
r.d(e, "a", (function() {
return i
})), r.d(e, "b", (function() {
return o
})), r.d(e, "d", (function() {
return a
})), r.d(e, "c", (function() {
return s
})), r.d(e, "e", (function() {
return u
})), r.d(e, "i", (function() {
return d
})), r.d(e, "f", (function() {
return p
})), r.d(e, "h", (function() {
return h
})), r.d(e, "g", (function() {
return m
}));
var n = r(35);
const i = "<svg data-failed />",
o = "inline",
a = "wixMedia",
s = "url",
l = /^wix:vector:\/\/v1\//,
c = /^wix:vector:\/\/v1\/[0-9|a-z|_]+.svg/,
u = (t, e) => `wix:vector://v1/${t}/${e?encodeURIComponent(e):""}`,
f = (t, e) => {
const r = ((t, e) => {
const r = new RegExp(e + "=(\"|')?([-\\w\\s,]+)\\1");
return t.match(r)
})(t, e);
return r ? r[2] : null
},
d = (t, e) => {
if (n.a.isWixSVGShape(t)) return ((t, e) => {
const [r] = t.replace(l, "").split("/"), n = (t => {
const [, e, r, n] = t.replace(/^.*\//, "").split("."), i = "v1" === e ? 1 : 2;
return r.replace(/svg_/i, "") + (1 === i ? "_svgshape.v1." + n : "") + ".svg"
})(r);
return {
type: a,
data: `${e}/${n}`
}
})(t, e);
const r = (t => {
const [e] = c.exec(t) || [];
return e
})(t);
if (r) {
const t = r.replace(l, "");
return {
type: a,
data: `${e}${t}`
}
}
return n.a.isInlineSvg(t) ? {
type: o,
data: t
} : {
type: s,
data: t
}
},
p = async t => {
try {
const e = await fetch(t);
if (e.ok) return e.text()
} catch (t) {}
return i
},
g = async(t, e) => {
const r = (t => {
const e = f(t, "width"),
r = f(t, "height");
return f(t, "viewBox") || e && r
})(t) ? t : t.replace("<svg", '<svg width="300" height="150"');
try {
const {
svg: t
} = await e(r);
return t || i
} catch (t) {
return i
}
},
h = async(t, e, r) => {
const {
type: n,
data: i
} = d(t, e);
if (n === o) return g(i, r);
let s = await p(i);
return m(s) || n === a || (s = await g(s, r)), s
},
m = t => t === i
}
})
}));
//# sourceMappingURL=https://static.parastorage.com/services/editor-elements-library/dist/rb_wixui.corvid_bootstrap.7915f63d.bundle.min.js.map
}
//# sourceMappingURL=https://static.parastorage.com/services/editor-elements-library/dist/rb_wixui.corvid~bootstrap.6a148cf4.chunk.min.js.map
//# sourceURL=webpack-internal://
#4 JavaScript::Eval (size: 3249) - SHA256: dcb1464304f53755647dc7799bcb195de926dc25341bbba9a356175c05a2b722
! function(e, t) {
"object" == typeof exports && "object" == typeof module ? module.exports = t() : "function" == typeof define && define.amd ? define("rb_wixui.corvid[Container]", [], t) : "object" == typeof exports ? exports["rb_wixui.corvid[Container]"] = t() : e["rb_wixui.corvid[Container]"] = t()
}("undefined" != typeof self ? self : this, (function() {
return function(e) {
function t(t) {
for (var n, a, u = t[0], l = t[1], c = t[2], f = 0, b = []; f < u.length; f++) a = u[f], Object.prototype.hasOwnProperty.call(o, a) && o[a] && b.push(o[a][0]), o[a] = 0;
for (n in l) Object.prototype.hasOwnProperty.call(l, n) && (e[n] = l[n]);
for (s && s(t); b.length;) b.shift()();
return i.push.apply(i, c || []), r()
}
function r() {
for (var e, t = 0; t < i.length; t++) {
for (var r = i[t], n = !0, u = 1; u < r.length; u++) {
var l = r[u];
0 !== o[l] && (n = !1)
}
n && (i.splice(t--, 1), e = a(a.s = r[0]))
}
return e
}
var n = {},
o = {
60: 0
},
i = [];
function a(t) {
if (n[t]) return n[t].exports;
var r = n[t] = {
i: t,
l: !1,
exports: {}
};
return e[t].call(r.exports, r, r.exports, a), r.l = !0, r.exports
}
a.m = e, a.c = n, a.d = function(e, t, r) {
a.o(e, t) || Object.defineProperty(e, t, {
enumerable: !0,
get: r
})
}, a.r = function(e) {
"undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(e, Symbol.toStringTag, {
value: "Module"
}), Object.defineProperty(e, "__esModule", {
value: !0
})
}, a.t = function(e, t) {
if (1 & t && (e = a(e)), 8 & t) return e;
if (4 & t && "object" == typeof e && e && e.__esModule) return e;
var r = Object.create(null);
if (a.r(r), Object.defineProperty(r, "default", {
enumerable: !0,
value: e
}), 2 & t && "string" != typeof e)
for (var n in e) a.d(r, n, function(t) {
return e[t]
}.bind(null, n));
return r
}, a.n = function(e) {
var t = e && e.__esModule ? function() {
return e.default
} : function() {
return e
};
return a.d(t, "a", t), t
}, a.o = function(e, t) {
return Object.prototype.hasOwnProperty.call(e, t)
}, a.p = "https://static.parastorage.com/services/editor-elements-library/dist/";
var u = ("undefined" != typeof self ? self : this).webpackJsonp__wix_editor_elements_library = ("undefined" != typeof self ? self : this).webpackJsonp__wix_editor_elements_library || [],
l = u.push.bind(u);
u.push = t, u = u.slice();
for (var c = 0; c < u.length; c++) t(u[c]);
var s = l;
return i.push([4190, 2]), r()
}({
1586: function(e, t, r) {
"use strict";
r.d(t, "b", (function() {
return y
}));
var n = r(62),
o = r(994),
i = r(758),
a = r(92),
u = r(1024),
l = r(1366),
c = r(422),
s = r(1302),
f = r(63);
const b = Object(o.a)({
BackgroundColor: !0,
BorderColor: !0,
BorderWidth: !0
}, {
cssVarPrefix: "container"
}),
d = Object(n.a)(),
p = Object(i.a)({
enableRole: !0,
enableAriaHidden: !0,
enableAriaLabel: !0,
enableAriaLabelledBy: !0,
enableAriaDescribedBy: !0,
enableAriaRoleDescription: !0,
enableAriaCurrent: !0,
enableAriaExpanded: !0,
enableAriaLive: !0,
enableAriaAtomic: !0,
enableAriaRelevant: !0,
enableAriaBusy: !0,
enableTabIndex: !0,
enableAriaControls: !0,
enableAriaOwns: !0
}),
y = Object(a.a)(d, b, u.a, l.a, c.a, p, ({
metaData: e
}) => ({get type() {
return "$w.Box"
},
toJSON: () => Object.assign(Object.assign({}, Object(n.c)(e)), {
type: "$w.Box"
})
}), s.a);
t.a = Object(f.a)(y)
},
4190: function(e, t, r) {
"use strict";
r.r(t), r.d(t, "components", (function() {
return n
})), r.d(t, "version", (function() {
return o
}));
const n = {
Container: {
sdk: r(1586).a
}
},
o = "1.0.0"
},
63: function(e, t, r) {
"use strict";
function n(e) {
return {
factory: e
}
}
r.d(t, "a", (function() {
return n
}))
}
})
}));
//# sourceMappingURL=https://static.parastorage.com/services/editor-elements-library/dist/rb_wixui.corvid[Container].31d8e95c.bundle.min.js.map
//# sourceURL=webpack-internal://
#5 JavaScript::Eval (size: 7314) - SHA256: f03a53f31c3574f20d31022ff7bffed96da80642c2d7b9f79becf89c9d017e5c
! function(e, t) {
"object" == typeof exports && "object" == typeof module ? module.exports = t() : "function" == typeof define && define.amd ? define("rb_wixui.corvid[DropDownMenu]", [], t) : "object" == typeof exports ? exports["rb_wixui.corvid[DropDownMenu]"] = t() : e["rb_wixui.corvid[DropDownMenu]"] = t()
}("undefined" != typeof self ? self : this, (function() {
return function(e) {
function t(t) {
for (var i, o, a = t[0], l = t[1], u = t[2], c = 0, d = []; c < a.length; c++) o = a[c], Object.prototype.hasOwnProperty.call(r, o) && r[o] && d.push(r[o][0]), r[o] = 0;
for (i in l) Object.prototype.hasOwnProperty.call(l, i) && (e[i] = l[i]);
for (p && p(t); d.length;) d.shift()();
return s.push.apply(s, u || []), n()
}
function n() {
for (var e, t = 0; t < s.length; t++) {
for (var n = s[t], i = !0, a = 1; a < n.length; a++) {
var l = n[a];
0 !== r[l] && (i = !1)
}
i && (s.splice(t--, 1), e = o(o.s = n[0]))
}
return e
}
var i = {},
r = {
62: 0
},
s = [];
function o(t) {
if (i[t]) return i[t].exports;
var n = i[t] = {
i: t,
l: !1,
exports: {}
};
return e[t].call(n.exports, n, n.exports, o), n.l = !0, n.exports
}
o.m = e, o.c = i, o.d = function(e, t, n) {
o.o(e, t) || Object.defineProperty(e, t, {
enumerable: !0,
get: n
})
}, o.r = function(e) {
"undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(e, Symbol.toStringTag, {
value: "Module"
}), Object.defineProperty(e, "__esModule", {
value: !0
})
}, o.t = function(e, t) {
if (1 & t && (e = o(e)), 8 & t) return e;
if (4 & t && "object" == typeof e && e && e.__esModule) return e;
var n = Object.create(null);
if (o.r(n), Object.defineProperty(n, "default", {
enumerable: !0,
value: e
}), 2 & t && "string" != typeof e)
for (var i in e) o.d(n, i, function(t) {
return e[t]
}.bind(null, i));
return n
}, o.n = function(e) {
var t = e && e.__esModule ? function() {
return e.default
} : function() {
return e
};
return o.d(t, "a", t), t
}, o.o = function(e, t) {
return Object.prototype.hasOwnProperty.call(e, t)
}, o.p = "https://static.parastorage.com/services/editor-elements-library/dist/";
var a = ("undefined" != typeof self ? self : this).webpackJsonp__wix_editor_elements_library = ("undefined" != typeof self ? self : this).webpackJsonp__wix_editor_elements_library || [],
l = a.push.bind(a);
a.push = t, a = a.slice();
for (var u = 0; u < a.length; u++) t(a[u]);
var p = l;
return s.push([4192, 2]), n()
}({
1428: function(e, t, n) {
"use strict";
n.d(t, "a", (function() {
return h
}));
var i = n(62),
r = n(92),
s = n(494),
o = n(1783),
a = n(35),
l = n(77),
u = n(73),
p = n(94),
c = n(495);
const d = Object(c.a)([c.e, c.b]),
f = /^(http|https):\/\/(.*)/,
b = /^\/([^ ?#]*)[?]?(.*)/,
m = e => f.test(e),
v = Object(u.b)(({
setProps: e,
props: t,
platformUtils: {
linkUtils: n
},
sdkData: i
}) => {
const r = e => a.a.isNil(e) ? e : e.map(e => s(e)),
s = e => {
const t = {
label: "",
link: void 0
},
s = m(e.link) ? "_blank" : "_self",
o = n.getLinkProps(e.link, s);
var u;
o && (t.link = o), e.label ? t.label = e.label : e.link && (u = e.link, b.test(u)) ? t.label = ((e, t) => {
const n = e.slice(1);
return t.hasOwnProperty(n) ? t[n].title : ""
})(e.link, i.pageList) : Object(l.f)("The label parameter that is passed to the set items method cannot be set to null or undefined."), a.a.isBoolean(e.visibleOnDesktop) && (t.isVisible = e.visibleOnDesktop), a.a.isBoolean(e.visibleOnMobile) && (t.isVisibleMobile = e.visibleOnMobile), a.a.isArray(e.items) && (e.items.length ? t.items = r(e.items) : t.items = []), a.a.isNumber(e.displayCount) && (t.displayCount = e.displayCount);
return Object.assign(Object.assign({}, {
isVisible: !0,
isVisibleMobile: !0,
items: []
}), t)
},
o = e => {
const t = {
text: "",
link: void 0,
key: "",
value: ""
},
i = m(e.link) ? "_blank" : "_self",
r = n.getLinkProps(e.link, i);
return r && (t.link = r), e.label && (t.text = e.label), e.value ? (t.value = e.value, t.key = e.value) : Object(l.f)("The value parameter that is passed to the set options method cannot be set to null or undefined."), t
},
u = e => a.a.isNil(e) ? e : e.map(e => p(e)),
p = e => {
const t = e.link ? n.getLink(e.link) : "",
i = e.items ? u(e.items) : [],
r = !!a.a.isNil(e.isVisible) || e.isVisible,
s = !!a.a.isNil(e.isVisibleMobile) || e.isVisibleMobile,
{
label: o,
displayCount: l
} = e;
return {
label: o,
displayCount: l,
items: i,
link: t,
visibleOnDesktop: r,
visibleOnMobile: s
}
},
c = e => {
const t = e.link ? n.getLink(e.link) : "",
{
text: i,
value: r
} = e;
return {
label: i,
value: r,
link: t
}
};
return {get items() {
return u(t.items)
},
set items(t) {
try {
n = t, a.a.isNil(n) || n.forEach(e => {
a.a.isNil(e.items) || e.items.forEach(e => e.items = [])
}), e({
items: r(t)
})
} catch (e) {
a.a.isNil(e.name) || "UnsupportedLinkTypeError" !== e.name || Object(l.d)("A link property that is passed to the link method cannot be set to that value, as this is not a supported link type.")
}
var n
},
get options() {
return e = t.options, a.a.isNil(e) ? e : e.map(e => c(e));
var e
},
set options(t) {
try {
e({
options: (n = t, a.a.isNil(n) ? n : n.map(e => o(e)))
})
} catch (e) {
a.a.isNil(e.name) || "UnsupportedLinkTypeError" !== e.name || Object(l.d)("A link property that is passed to the link method cannot be set to that value, as this is not a supported link type.")
}
var n
},
get type() {
return "$w.Menu"
},
get value() {
let e = "";
if (t.options) {
t.options.some(e => e.value === t.value) && (e = t.value)
}
return e
},
set value(n) {
const i = d(n);
if (t.options) {
const n = t.options.some(e => e.value === i);
e({
value: n ? i : ""
})
}
},
get autoNavigation() {
return !1
}
}
}, {
type: ["object"],
properties: {
items: {
type: ["array", "nil"],
warnIfNil: !0
},
options: {
type: ["array", "nil"],
warnIfNil: !0,
items: {
type: ["object"],
properties: {
value: {
type: ["string", "nil"],
minLength: 0,
maxLength: 400
},
label: {
type: ["string", "nil"],
minLength: 0,
maxLength: 400
}
}
}
}
}
}, {
items: [e => {
const t = void 0 === e || a.a.isArray(e);
return t || Object(l.d)(p.b.invalidTypeMessage({
value: e,
types: ["array", "undefined"],
propertyName: "items",
functionName: "set items",
index: void 0
})), t
}],
options: [e => {
const t = void 0 === e || a.a.isArray(e);
return t || Object(l.d)(p.b.invalidTypeMessage({
value: e,
types: ["array", "undefined"],
propertyName: "options",
functionName: "set options",
index: void 0
})), t
}],
value: [e => {
const t = d(e),
n = void 0 === e || a.a.isString(t);
return n || Object(l.d)(p.b.invalidTypeMessage({
value: e,
types: ["string", "undefined"],
propertyName: "value",
functionName: "set value",
index: void 0
})), n
}]
}),
y = Object(i.a)(),
h = Object(r.a)(y, s.a, v, o.a)
},
1649: function(e, t, n) {
"use strict";
n.d(t, "a", (function() {
return r
})), n.d(t, "b", (function() {
return s
}));
var i = n(94);
class r extends Error {
constructor(e) {
const t = i.b.nilAssignmentMessage(e);
super(t), this.name = "NilAssignmentError", this.message = t
}
}
class s extends Error {
constructor(e) {
const t = i.b.unsupportedLinkType(e);
super(t), this.name = "UnsupportedLinkTypeError", this.message = t
}
}
},
3867: function(e, t, n) {
"use strict";
var i = n(63),
r = n(1428);
t.a = Object(i.a)(r.a)
},
4192: function(e, t, n) {
"use strict";
n.r(t), n.d(t, "components", (function() {
return i
})), n.d(t, "version", (function() {
return r
}));
const i = {
DropDownMenu: {
sdk: n(3867).a
}
},
r = "1.0.0"
},
495: function(e, t, n) {
"use strict";
n.d(t, "e", (function() {
return o
})), n.d(t, "b", (function() {
return a
})), n.d(t, "g", (function() {
return l
})), n.d(t, "c", (function() {
return u
})), n.d(t, "f", (function() {
return p
})), n.d(t, "h", (function() {
return c
})), n.d(t, "d", (function() {
return d
})), n.d(t, "a", (function() {
return f
}));
var i = n(35);
const r = /(\r\n|\n|\r)/gm,
s = /^-?(\d+|\d+\.\d+|\.\d+)([eE][-+]?\d+)?$/,
o = e => i.a.isNumber(e) && isFinite(e) ? e.toString() : e,
a = e => i.a.isString(e) ? e : "",
l = e => e.replace(r, ""),
u = e => t => e ? t.substr(0, e) : t,
p = e => e.trim(),
c = e => s.test(e) ? e : "",
d = e => t => {
if (!t || !t.length || !e) return t;
const n = Number((Math.log(1 / e) / Math.log(10)).toFixed());
return Number(t).toFixed(n)
},
f = e => t => e.reduce((e, t) => t(e), t)
},
63: function(e, t, n) {
"use strict";
function i(e) {
return {
factory: e
}
}
n.d(t, "a", (function() {
return i
}))
}
})
}));
//# sourceMappingURL=https://static.parastorage.com/services/editor-elements-library/dist/rb_wixui.corvid[DropDownMenu].16f462b2.bundle.min.js.map
//# sourceURL=webpack-internal://
#6 JavaScript::Eval (size: 3068) - SHA256: 31ac0b852a5c9b69b7dedc550b5ce709070cee033aedb5a9d599f6bc69f322b2
! function(e, t) {
"object" == typeof exports && "object" == typeof module ? module.exports = t() : "function" == typeof define && define.amd ? define("rb_wixui.corvid[StylableHorizontalMenu]", [], t) : "object" == typeof exports ? exports["rb_wixui.corvid[StylableHorizontalMenu]"] = t() : e["rb_wixui.corvid[StylableHorizontalMenu]"] = t()
}("undefined" != typeof self ? self : this, (function() {
return function(e) {
function t(t) {
for (var n, u, s = t[0], c = t[1], a = t[2], l = 0, p = []; l < s.length; l++) u = s[l], Object.prototype.hasOwnProperty.call(o, u) && o[u] && p.push(o[u][0]), o[u] = 0;
for (n in c) Object.prototype.hasOwnProperty.call(c, n) && (e[n] = c[n]);
for (f && f(t); p.length;) p.shift()();
return i.push.apply(i, a || []), r()
}
function r() {
for (var e, t = 0; t < i.length; t++) {
for (var r = i[t], n = !0, s = 1; s < r.length; s++) {
var c = r[s];
0 !== o[c] && (n = !1)
}
n && (i.splice(t--, 1), e = u(u.s = r[0]))
}
return e
}
var n = {},
o = {
113: 0
},
i = [];
function u(t) {
if (n[t]) return n[t].exports;
var r = n[t] = {
i: t,
l: !1,
exports: {}
};
return e[t].call(r.exports, r, r.exports, u), r.l = !0, r.exports
}
u.m = e, u.c = n, u.d = function(e, t, r) {
u.o(e, t) || Object.defineProperty(e, t, {
enumerable: !0,
get: r
})
}, u.r = function(e) {
"undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(e, Symbol.toStringTag, {
value: "Module"
}), Object.defineProperty(e, "__esModule", {
value: !0
})
}, u.t = function(e, t) {
if (1 & t && (e = u(e)), 8 & t) return e;
if (4 & t && "object" == typeof e && e && e.__esModule) return e;
var r = Object.create(null);
if (u.r(r), Object.defineProperty(r, "default", {
enumerable: !0,
value: e
}), 2 & t && "string" != typeof e)
for (var n in e) u.d(r, n, function(t) {
return e[t]
}.bind(null, n));
return r
}, u.n = function(e) {
var t = e && e.__esModule ? function() {
return e.default
} : function() {
return e
};
return u.d(t, "a", t), t
}, u.o = function(e, t) {
return Object.prototype.hasOwnProperty.call(e, t)
}, u.p = "https://static.parastorage.com/services/editor-elements-library/dist/";
var s = ("undefined" != typeof self ? self : this).webpackJsonp__wix_editor_elements_library = ("undefined" != typeof self ? self : this).webpackJsonp__wix_editor_elements_library || [],
c = s.push.bind(s);
s.push = t, s = s.slice();
for (var a = 0; a < s.length; a++) t(s[a]);
var f = c;
return i.push([4243, 2]), r()
}({
1649: function(e, t, r) {
"use strict";
r.d(t, "a", (function() {
return o
})), r.d(t, "b", (function() {
return i
}));
var n = r(94);
class o extends Error {
constructor(e) {
const t = n.b.nilAssignmentMessage(e);
super(t), this.name = "NilAssignmentError", this.message = t
}
}
class i extends Error {
constructor(e) {
const t = n.b.unsupportedLinkType(e);
super(t), this.name = "UnsupportedLinkTypeError", this.message = t
}
}
},
3848: function(e, t, r) {
"use strict";
var n = r(62),
o = r(92),
i = r(422),
u = r(1783),
s = r(63);
const c = Object(n.a)(),
a = Object(o.a)(c, i.a, u.a);
t.a = Object(s.a)(a)
},
4243: function(e, t, r) {
"use strict";
r.r(t), r.d(t, "components", (function() {
return n
})), r.d(t, "version", (function() {
return o
}));
const n = {
StylableHorizontalMenu: {
sdk: r(3848).a
}
},
o = "1.0.0"
},
63: function(e, t, r) {
"use strict";
function n(e) {
return {
factory: e
}
}
r.d(t, "a", (function() {
return n
}))
}
})
}));
//# sourceMappingURL=https://static.parastorage.com/services/editor-elements-library/dist/rb_wixui.corvid[StylableHorizontalMenu].703374a4.bundle.min.js.map
//# sourceURL=webpack-internal://
#7 JavaScript::Eval (size: 90) - SHA256: 3cd43d86dbeebf58e30163f3ef7c74c46e2fe76a90d971094e18ef0f07de2883
workaround.getRequireFunction = () => typeof require !== 'undefined' ? require : undefined
#8 JavaScript::Eval (size: 0) - SHA256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
#9 JavaScript::Eval (size: 113696) - SHA256: 2f268cffc611800cac17c49743a8173d20bf54b6afdc4b09bfe5fd5244407855
(("undefined" != typeof self ? self : this).webpackJsonp__wix_editor_elements_library = ("undefined" != typeof self ? self : this).webpackJsonp__wix_editor_elements_library || []).push([
[2], {
1024: function(e, t, r) {
"use strict";
r.d(t, "a", (function() {
return n
}));
const n = ({
getChildren: e
}) => ({get children() {
return e()
}
})
},
1038: function(e, t, r) {
"use strict";
var n = r(174);
r.d(t, "a", (function() {
return n.a
})), r.d(t, "b", (function() {
return n.b
})), r.d(t, "c", (function() {
return n.c
})), r.d(t, "d", (function() {
return n.d
})), r.d(t, "e", (function() {
return n.e
})), r.d(t, "f", (function() {
return n.f
})), r.d(t, "g", (function() {
return n.g
})), r.d(t, "h", (function() {
return n.h
}))
},
1051: function(e, t, r) {
"use strict";
r.d(t, "a", (function() {
return n
}));
const n = {
backgroundColor: "background-color",
borderColor: "border-color",
borderRadius: "border-radius",
borderWidth: "border-width",
foregroundColor: "foreground-color",
textColor: "color"
}
},
1052: function(e, t, r) {
"use strict";
r.d(t, "b", (function() {
return n
})), r.d(t, "a", (function() {
return i
})), r.d(t, "e", (function() {
return a
})), r.d(t, "d", (function() {
return o
})), r.d(t, "c", (function() {
return s
}));
const n = ["ariaLabel"];
var i;
! function(e) {
e.ARIA_LABEL_NOT_STRING = "aria-label must be string", e.ARIA_LABEL_EMPTY_STRING = "aria-label can't be an empty string", e.REMOVING_MISSING_ATTRIBUTE = "Cannot remove a non existing attribute"
}(i || (i = {}));
const a = e => `The parameter that is passed to the \u2018${e}\u2019 property must be a selector function of a text element.`,
o = e => `The parameter that is passed to the \u2018${e}\u2019 property must be a selector function of an element.`,
s = e => `The parameter that is passed to the \u2018${e}\u2019 property must be a string or \u2018null\u2019.`
},
1054: function(e, t, r) {
"use strict";
r.d(t, "c", (function() {
return i
})), r.d(t, "a", (function() {
return a
})), r.d(t, "b", (function() {
return o
})), r.d(t, "f", (function() {
return s
})), r.d(t, "e", (function() {
return u
})), r.d(t, "d", (function() {
return c
}));
var n = r(1777);
function i(e) {
return /\b([R][G][B][A][(]\s*([01]?[0-9]?[0-9]|2[0-4][0-9]|25[0-5])\s*,\s*([01]?[0-9]?[0-9]|2[0-4][0-9]|25[0-5])\s*,\s*([01]?[0-9]?[0-9]|2[0-4][0-9]|25[0-5])(\s*,\s*((0\.[0-9]*)|(1\.0)|(1)|(0)))?[)])/i.test(e)
}
function a(e) {
return /^#([a-f0-9]{8}|[a-f0-9]{4})\b$/gi.test(e)
}
function o(e) {
return n.a[e]
}
function s(e) {
return /\b([R][G][B][(]\s*([01]?[0-9]?[0-9]|2[0-4][0-9]|25[0-5])\s*,\s*([01]?[0-9]?[0-9]|2[0-4][0-9]|25[0-5])\s*,\s*([01]?[0-9]?[0-9]|2[0-4][0-9]|25[0-5])(\s*)[)])/i.test(e) || i(e)
}
function u(e) {
return a(e) || /^#(([a-f0-9]){3}){1,2}$/i.test(e)
}
function c(e) {
return u(e) || s(e) || o(e)
}
},
1134: function(e, t, r) {
"use strict";
r.r(t), r.d(t, "isNumber", (function() {
return s
})), r.d(t, "isString", (function() {
return u
})), r.d(t, "isBoolean", (function() {
return c
})), r.d(t, "isDate", (function() {
return d
})), r.d(t, "isFunction", (function() {
return l
})), r.d(t, "isArray", (function() {
return p
})), r.d(t, "isObject", (function() {
return f
})), r.d(t, "isInteger", (function() {
return m
})), r.d(t, "isNil", (function() {
return b
})), r.d(t, "isIn", (function() {
return g
})), r.d(t, "isAbove", (function() {
return v
})), r.d(t, "isBelow", (function() {
return h
})), r.d(t, "isEmail", (function() {
return y
})), r.d(t, "isUrl", (function() {
return _
})), r.d(t, "isInlineSvg", (function() {
return O
})), r.d(t, "isWixSVGShape", (function() {
return j
})), r.d(t, "isWixMediaUrl", (function() {
return w
})), r.d(t, "isSVG", (function() {
return I
})), r.d(t, "is", (function() {
return N
}));
const n = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,
i = /^(?:(?:https?:)\/\/)(?:(?:[\u0400-\uA69F\w][\u0400-\uA69F\w-]*)?[\u0400-\uA69F\w]\.)+(?:[\u0400-\uA69Fa-z]+|\d{1,3})(?::[\d]{1,5})?(?:[/?#].*)?$/i,
a = /^wix:vector:\/\/v1\/svgshape\.v[12]/,
o = /^wix:vector:\/\/v1\/[0-9|a-z|_]+.svg/;
function s(e) {
return "number" == typeof e && !Number.isNaN(e)
}
function u(e) {
return "string" == typeof e
}
function c(e) {
return !0 === e || !1 === e
}
function d(e) {
return e instanceof Date && !Number.isNaN(e.getTime())
}
function l(e) {
return "function" == typeof e
}
function p(e) {
return Array.isArray(e)
}
function f(e) {
return "object" == typeof e && null !== e && !p(e)
}
function m(e) {
return Number.isInteger(e)
}
function b(e) {
return null == e
}
function g(e, t) {
return t.includes(e)
}
function v(e, t) {
return e > t
}
function h(e, t) {
return e < t
}
function y(e) {
return n.test(e)
}
function _(e) {
return i.test(e)
}
function O(e) {
return e.includes("<svg")
}
function j(e) {
return a.test(e)
}
function w(e) {
return o.test(e)
}
function I(e) {
return Boolean(e && (w(e) || _(e) || O(e) || j(e)))
}
function N(e, t) {
return t.every(t => t(e))
}
},
1156: function(e, t, r) {
"use strict";
r.d(t, "a", (function() {
return i
}));
var n = r(73);
const i = Object(n.b)(({
setProps: e,
props: t
}) => ({get label() {
return t.label || ""
},
set label(t) {
e({
label: t || ""
})
}
}), {
type: ["object"],
properties: {
label: {
type: ["string", "nil"],
warnIfNil: !0
}
}
})
},
1157: function(e, t, r) {
"use strict";
r.d(t, "a", (function() {
return i
}));
var n = r(73);
const i = e => Object(n.b)((e => t => ({get required() {
return t.props.required || !1
},
set required(r) {
t.setProps({
required: r
}), e.validate({
viewerSdkAPI: t,
showValidityIndication: !0
})
}
}))(e), {
type: ["object"],
properties: {
required: {
type: ["boolean"]
}
}
})
},
1158: function(e, t, r) {
"use strict";
r.d(t, "a", (function() {
return o
}));
var n = r(1200),
i = r(773),
a = r(73);
const o = e => {
e.onValidate(({
viewerSdkAPI: e,
validationDataResult: t,
showValidityIndication: r
}) => {
const {
setProps: a,
compRef: o
} = e, s = Object(n.a)(e), u = Object(i.b)(s), c = Object(i.b)(t), d = s.htmlValidationMessageOverride.key, l = t.htmlValidationMessageOverride.key;
t.validity.customError ? u !== c && o.setCustomValidity({
type: "message",
message: c
}) : l ? (s.validity.customError || d !== l) && o.setCustomValidity({
type: "key",
key: l
}) : u === c && d === l || o.setCustomValidity({
type: "message",
message: ""
});
const p = Object.assign({
isValid: t.validity.valid
}, r && {
shouldShowValidityIndication: !0
});
Object(n.c)(e, t), a(p)
});
return Object(a.b)(t => {
const {
setProps: r,
props: i,
registerEvent: a,
metaData: {
isRepeaterTemplate: o
}
} = t;
return o || (a("validateValue", () => {
e.validate({
viewerSdkAPI: t
})
}), a("validateValueAndShowIndication", r => {
const n = Object.assign(Object.assign({}, i), r),
a = Object.assign(Object.assign({}, t), {
props: n
});
e.validate({
viewerSdkAPI: a,
showValidityIndication: !0
})
}), a("hideValidityIndication", () => {
r({
shouldShowValidityIndication: !1
})
}), e.validate({
viewerSdkAPI: t,
showValidityIndication: !1
})), {get valid() {
return Object(n.a)(t).validity.valid
},
get validationMessage() {
return Object(n.a)(t).validationMessage
},
get validity() {
return Object(n.a)(t).validity
},
onCustomValidation(r, i = !0) {
Object(n.b)(t, r, i), e.validate({
viewerSdkAPI: t
})
},
updateValidityIndication() {
r({
shouldShowValidityIndication: !0
})
},
resetValidityIndication() {
r({
shouldShowValidityIndication: !1
})
}
}
}, {
type: ["object"],
properties: {
onCustomValidation: {
type: ["function"],
args: [{
type: ["function"]
}, {
type: ["boolean"]
}]
}
}
})
}
},
1178: function(e, t, r) {
"use strict";
r.d(t, "b", (function() {
return s
})), r.d(t, "c", (function() {
return u
})), r.d(t, "a", (function() {
return c
})), r.d(t, "d", (function() {
return d
}));
var n = r(1054),
i = r(1777);
const a = e => parseInt(e.repeat(2 / e.length), 16),
o = e => {
if (!Object(n.e)(e)) return;
const t = (e => {
const t = Math.floor((e.length - 1) / 3);
return e.slice(1).match(new RegExp(`.{${t}}`, "g"))
})(e),
[r, i, o, s] = t.map(a);
return [r, i, o, void 0 !== s ? d(s / 255) : 1]
},
s = e => Object(n.e)(e) ? o(e) : Object(n.f)(e) ? (e => {
if (!Object(n.f)(e)) return;
const t = e.substring(e.indexOf("(")).split(","),
r = parseInt(t[0].substring(1).trim(), 10),
i = parseInt(t[1].trim(), 10),
a = parseInt(t[2].trim(), 10),
o = t[3] && parseFloat(t[3].substring(0, t[3].length - 1).trim());
return [r, i, a, void 0 !== o ? o : 1]
})(e) : Object(n.b)(e) ? o(i.a[e]) : void 0,
u = e => {
const t = s(e);
if (t) return t[3]
},
c = (e, t) => {
const r = s(e);
if (r) {
const [e, n, i] = r;
return `rgba(${e}, ${n}, ${i}, ${t})`
}
},
d = e => Math.round(100 * e) / 100
},
119: function(e, t, r) {
"use strict";
r.d(t, "a", (function() {
return n
}));
const n = {
warning_not_null: ({
propertyName: e,
functionName: t
}) => `The ${e} parameter that is passed to the ${t} method cannot be set to null.`,
warning_non_images_in_gallery: ({
galleryId: e
}) => `Gallery "${e}" cannot contain items that are not images. To also display video and text, choose a gallery that supports those types.`,
warning_invalid_effect_name: ({
propertyName: e,
compName: t,
effectName: r,
infoLink: n
}) => `The "${e}" function called on "${t}" was executed without the "${r}" effect because it is an invalid effectName value. Read more about effects: "${n}"')`,
warning_invalid_effect_option: ({
propertyName: e,
compName: t,
effectName: r,
effectOption: n,
effectOptionRef: i
}) => `The "${e}" function called on "${t}" was executed without the "${r}" effect because it was called with the following invalid effectOptions keys: ${n}. Read more about the effectOptions object: "https://www.wix.com/code/reference/$w.EffectOptions.html#${i}"`,
warning_effect_options_not_set: ({
propertyName: e,
compName: t,
infoLink: r
}) => `The "${e}" function called on "${t}" was executed without the specified effect options because it was called without an effect. Read more about effects: "${r}"')`,
warning_invalid_effect_options: ({
propertyName: e,
compName: t,
effectName: r,
wrongProperty: n,
wrongValue: i,
infoLink: a
}) => `The "${e}" function called on "${t}" was executed without the "${r}" effect because it was called with the following invalid effectOptions ${n}: ${i}. Read more about the effectOptions object: "${a}"')`,
warning_deprecated_effect_name: ({
propertyName: e,
compName: t,
effectName: r,
infoLink: n
}) => `The "${e}" function called on "${t}" was called with the following deprecated effect: "${r}". Read more about effects: "${n}"')`,
warning_deprecated_effect_with_options: ({
propertyName: e,
compName: t,
effectName: r,
infoLink: n
}) => `The "${e}" function called on "${t}" was executed without the specified effect options because it was called with the following deprecated effect: "${r}". Read more about effects: "${n}"`,
warning_invalid_type_effect_options: ({
propertyName: e,
compName: t,
effectName: r,
wrongValue: n,
infoLink: i
}) => `The "${e}" function called on "${t}" was executed without the "${r}" effect because the it was called with the following invalid effectOptions "${n}". The effectOptions must be of type Object. Read more about the effectOptions object: "${i}"'`,
error_bad_image_format_with_index: ({
propertyName: e,
wrongValue: t,
index: r
}) => `The "${e}" property of the item at index ${r} cannot be set to "${t}". It must be a valid URL starting with "http://", "https://", or "wix:image://".`,
error_invalid_type_for_file_limit: ({
propertyName: e
}) => `The ${e} property is not yet supported for Document or Audio file types.`,
warning_not_null_for_comp_name: ({
propertyName: e,
functionName: t,
compName: r
}) => `The ${e} parameter of "${r}" that is passed to the ${t} method cannot be set to null.`,
warning_not_null_with_index: ({
propertyName: e,
functionName: t,
index: r
}) => `The ${e} parameter of item at index ${r} that is passed to the ${t} method cannot be set to null or undefined.`,
warning_invalid_option: ({
propertyName: e,
wrongValue: t,
index: r
}) => `The ${e} parameter at index ${r} that is passed to the options function cannot be set to ${JSON.stringify(t)}. Options must contain either a non-null value or a non-null label.`,
warning_color_casting_performed: ({
propertyName: e,
compName: t,
infoLink: r
}) => ` The value of "${e}" property of "${t}" expects an rgbColor value, but was set to an rgbaColor value. The color value has been set, but the alpha opacity information has been ignored. Read more about rgbColor values: "${r}"`,
warning_value_changed: ({
propertyName: e,
compName: t,
newValue: r,
changedProperty: n
}) => `The ${e} of ${t} was set to ${r}, which is less than ${t}'s ${n} value. ${t} cannot have a ${n} value which is greater than its ${e} value. The value of ${n} has therefore been set to ${r}.`,
warning_at_least: ({
propertyName: e,
wrongValue: t,
minValue: r
}) => `The value of ${e} property should not be set to the value ${t}. It should be at least ${r}.`,
warning_at_most: ({
propertyName: e,
wrongValue: t,
maxValue: r
}) => `The value of ${e} property should not be set to the value ${t}. It should be at most ${r}.`,
error_mandatory_val: ({
propertyName: e,
functionName: t
}) => `The ${e} parameter is required for ${t} method.`,
error_mandatory_val_with_index: ({
propertyName: e,
functionName: t,
index: r
}) => `The ${e} parameter of item at index ${r} is required for ${t} method.`,
error_length_in_range: ({
propertyName: e,
functionName: t,
value: r,
minimum: n,
maximum: i
}) => `The value of ${e} parameter that is passed to the ${t} method cannot be set to the value "${r}". Its length must be between ${n} and ${i}.`,
error_length_in_range_with_index: ({
propertyName: e,
functionName: t,
value: r,
minimum: n,
maximum: i,
index: a
}) => `The ${e} parameter of item at index ${a} that is passed to the ${t} method cannot be set to the value "${r}". Its length must be between ${n} and ${i}.`,
error_length_accept_single_value: ({
propertyName: e,
functionName: t,
value: r,
expectedValue: n
}) => `The value of ${e} parameter that is passed to the ${t} method cannot be set to the value "${r}". Its length must be ${n}.`,
error_length_accept_single_value_with_index: ({
propertyName: e,
functionName: t,
value: r,
expectedValue: n,
index: i
}) => `The ${e} parameter of item at index ${i} that is passed to the ${t} method cannot be set to the value "${r}". Its length must be ${n}.`,
error_length_less_than: ({
propertyName: e,
functionName: t,
value: r,
minimum: n
}) => `The value of ${e} parameter that is passed to the ${t} method cannot be set to the value "${r}" because its length is shorter than ${n}.`,
error_length_less_than_with_index: ({
propertyName: e,
functionName: t,
value: r,
minimum: n,
index: i
}) => `The ${e} parameter of item at index ${i} that is passed to the ${t} method cannot be set to the value "${r}" because its length is shorter than ${n}.`,
error_length_exceeds: ({
propertyName: e,
functionName: t,
value: r,
maximum: n
}) => `The value of ${e} parameter that is passed to the ${t} method cannot be set to the value "${r}" because its length exceeds ${n}.`,
error_length_exceeds_with_index: ({
propertyName: e,
functionName: t,
value: r,
maximum: n,
index: i
}) => `The ${e} parameter of item at index ${i} that is passed to the ${t} method cannot be set to the value "${r}" because its length exceeds ${n}.`,
error_range: ({
propertyName: e,
functionName: t,
value: r,
minimum: n,
maximum: i
}) => `The value of ${e} parameter that is passed to the ${t} method cannot be set to the value "${r}". It must be between ${n} and ${i}.`,
error_range_with_index: ({
propertyName: e,
functionName: t,
value: r,
minimum: n,
maximum: i,
index: a
}) => `The ${e} parameter of item at index ${a} that is passed to the ${t} method cannot be set to the value "${r}". It must be between ${n} and ${i}.`,
error_accept_single_value: ({
propertyName: e,
functionName: t,
value: r,
expectedValue: n
}) => `The value of ${e} parameter that is passed to the ${t} method cannot be set to the value "${r}". It must be ${n}.`,
error_accept_single_value_with_index: ({
propertyName: e,
functionName: t,
value: r,
expectedValue: n,
index: i
}) => `The ${e} parameter of item at index ${i} that is passed to the ${t} method cannot be set to the value "${r}". It must be ${n}.`,
error_larger_than: ({
propertyName: e,
functionName: t,
value: r,
minimum: n
}) => `The value of ${e} parameter that is passed to the ${t} method cannot be set to the value ${r}. It must be larger than ${n}.`,
error_at_least: ({
propertyName: e,
functionName: t,
value: r,
minimum: n
}) => `The value of ${e} parameter that is passed to the ${t} method cannot be set to the value ${r}. It must be at least ${n}.`,
error_larger_than_with_index: ({
propertyName: e,
functionName: t,
value: r,
minimum: n,
index: i
}) => `The value of ${e} parameter of item at ${i} that is passed to the ${t} method cannot be set to the value ${r}. It must be larger than ${n}.`,
error_less_than: ({
propertyName: e,
functionName: t,
value: r,
maximum: n
}) => `The value of ${e} parameter that is passed to the ${t} method cannot be set to the value ${r}. It must be less than ${n}.`,
error_less_than_with_index: ({
propertyName: e,
functionName: t,
value: r,
maximum: n,
index: i
}) => `The value of ${e} parameter of item at index ${i} that is passed to the ${t} method cannot be set to the value ${r}. It must be less than ${n}.`,
error_type: ({
propertyName: e,
functionName: t,
value: r,
expectedType: n
}) => `The ${e} parameter that is passed to the ${t} method cannot be set to the value ${r}. It must be of type ${n}.`,
error_type_with_index: ({
propertyName: e,
functionName: t,
value: r,
expectedType: n,
index: i
}) => `The ${e} parameter of item at index ${i} that is passed to the ${t} method cannot be set to the value ${r}. It must be of type ${n}.`,
error_bad_format: ({
propertyName: e,
functionName: t,
value: r
}) => `The value of ${e} parameter that is passed to the ${t} method cannot be set to the value ${r}. Bad format`,
error_effects_input: ({
functionName: e,
wrongEffects: t,
allowedEffects: r
}) => `Passed effects: "${t.join('", "')}" to the ${e} method are wrong for this element. Allowed effects are: "${r.join('", "')}".`,
error_slide_input: ({
propertyName: e,
functionName: t,
slideShowId: r,
value: n,
minimum: i,
maximum: a
}) => `The "${e}" parameter that is passed to the "${t}" method cannot be set to the value ${n}. It must be a slide from the "${r}" slideshow or an index between ${i} and ${a}`,
error_state_input: ({
propertyName: e,
functionName: t,
stateBoxId: r,
value: n
}) => `The "${e}" parameter that is passed to the "${t}" method cannot be set to the value ${n}. It must be a state from the "${r}" statebox`,
error_bad_format_with_index: ({
propertyName: e,
functionName: t,
value: r,
index: n
}) => `The "${e}" property of the item at index ${n} that is passed to the ${t} method cannot be set to "${r}". Bad format`,
error_bad_format_with_hint: ({
propertyName: e,
functionName: t,
wrongValue: r,
hint: n
}) => `The value of ${e} parameter that is passed to the ${t} method cannot be set to the value ${r}. Bad format, must be ${n} format.`,
error_object_bad_format: ({
keyName: e,
propertyName: t,
functionName: r,
wrongValue: n,
message: i
}) => `The value of ${e} in ${t} parameter that is passed to the ${r} method cannot be set to the value ${n}. ${i}`,
error_object_bad_format_with_index: ({
keyName: e,
propertyName: t,
index: r,
functionName: n,
wrongValue: i,
message: a
}) => `The value of ${e} of item at index ${r} in ${t} parameter that is passed to the ${n} method cannot be set to the value ${i}. ${a}`,
error_bad_svg_format: ({
propertyName: e,
value: t
}) => `The "${e}" property cannot be set to "${t}". It must be a valid SVG XML string or an SVG source starting with "http://", "https://", or "wix:vector://v1/".`,
error_target_w_photo: ({
target: e
}) => `The target parameter that is passed to the target method cannot be set to the value ${e}. It must be of type from (_blank,_self).`,
error_menu_items_target: ({
target: e,
label: t,
index: r
}) => `The target parameter of the item with the label ${t} nested under the item at index ${r} that is passed to the target method cannot be set to the value ${e}. It must be of type from (_blank, _self).`,
error_menu_items_depth: ({
labelValue: e,
maxLevels: t
}) => `The menuItems parameter with the label "${e}" that is passed to the menuItems method cannot be nested at this level. Menus can be ${t} levels deep.`,
error_menu_items_label: ({
index: e
}) => `The value of the label parameter of the item at index ${e} that is passed to the label cannot be set to the value undefined, null, or an empty string, unless a label can be inferred from the item link's page title.`,
error_bad_menu_item_format: ({
propertyName: e,
value: t
}) => `The "${e}" property cannot be set to "${t}". It must be a valid URL starting with "http://", "https://", "image://", "wix:image://v1" or "wix:vector://v1/svgshape.v2".`,
error_bad_menu_item_format_with_index: ({
propertyName: e,
value: t,
index: r
}) => `The "${e}" property of the item at index ${r} cannot be set to "${t}". It must be a valid URL starting with "http://", "https://", "image://", "wix:image://v1" or "wix:vector://v1/svgshape.v2"`,
error_invalid_css_value: ({
propertyName: e,
compName: t,
cssProperty: r,
exampleFormat: n,
infoLink: i
}) => ` The "${e}" property of "${t}" was set to an invalid "${r}" value. The value is expected in the following format:"${n}". Read more about "${r}" values: "${i}"`,
error_invalid_css_value_multiple_expected_formats: ({
propertyName: e,
compName: t,
cssProperty: r,
exampleFormats: n,
infoLink: i
}) => ` The "${e}" property of "${t}" was set to an invalid "${r}" value. The value is expected in one of the following formats:"${n}". Read more about "${r}" values: "${i}"`,
error_invalid_location: ({
propertyName: e,
index: t,
wrongValue: r
}) => `The ${e} parameter at index ${t} that is passed to the markers function cannot be set to ${r}. You need to set either location object {longitude, latitude}, or a valid address - placeId.`,
error_invalid_markers: ({
wrongValue: e
}) => `The markers property cannot be set to ${e}. You need to set at least one marker in the array.`,
error_only_getter: ({
propertyName: e,
compType: t
}) => `Cannot set property ${e} of ${t} which has only a getter.`,
error_invalid_url: ({
url: e,
type: t,
prefix: r
}) => `The "src" property cannot be set to "${e}". It must be a valid URL starting with "http://", "https://", or a valid ${t} URL starting with ${r}.`,
error_supported_link_type_with_index: ({
functionName: e,
wrongValue: t,
index: r
}) => `The link property of item at index ${r} that is passed to the ${e} method cannot be set to the value "${t}" as this is not a supported link type.`,
error_invalid_target_with_index: ({
functionName: e,
wrongValue: t,
index: r
}) => `The target parameter of item at index ${r} that is passed to the ${e} method cannot be set to the value ${t}. It must be of type from (_blank,_self).`,
warning_unsupported_function_for_type: ({
functionName: e,
type: t
}) => `'${e}' is not supported for an element of type: ${t}.`,
error_bad_iana_timezone: ({
timeZoneIANA: e
}) => `Invalid IANA time zone specified: "${e}"`,
error_invalid_option_fields: ({
propertyName: e,
wrongValue: t,
fields: r,
index: n
}) => `The ${e} at index ${n} cannot be set to ${JSON.stringify(t)}. Options must contain at least a non-null ${r[0]} or a non-null ${r[1]}.`,
error_item_external_link: ({
propertyName: e,
functionName: t,
index: r
}) => `The ${e} of the ${t} parameter of item at index ${r} that is passed to the items method cannot be an external link. It must be a link to a page on your site.`,
error_unsupported_property_with_hint: ({
propertyName: e,
hint: t
}) => `The ${e} parameter cannot be set when ${t}`,
error_item_not_found: ({
propertyName: e,
functionName: t,
value: r
}) => `The ${e} parameter with value ${r} that is passed to the ${t} method is not found.`,
error_array_length: ({
propertyName: e,
functionName: t,
value: r,
arrayLength: n
}) => `The value of ${e} parameter that is passed to the ${t} method cannot be set to the value ${r}. Its length must be at least ${n}.`
}
},
1192: function(e, t, r) {
"use strict";
r.d(t, "a", (function() {
return i
})), r.d(t, "b", (function() {
return a
})), r.d(t, "c", (function() {
return o
})), r.d(t, "d", (function() {
return s
})), r.d(t, "e", (function() {
return u
})), r.d(t, "f", (function() {
return c
})), r.d(t, "g", (function() {
return d
}));
const n = {
Image: ".bmp,.gif,.heic,.heif,.jfi,.jfif,.jpe,.jpeg,.jpg,.png,.tif,.tiff,.webp",
Document: ".ai,.cdr,.csv,.doc,.docb,.docx,.dot,.dotx,.dwg,.eps,.epub,.fla,.gpx,.ical,.icalendar,.ics,.ifb,.indd,.ipynb,.key,.kml,.kmz,.mobi,.mtf,.mtx,.numbers,.odg,.odp,.ods,.odt,.otp,.ots,.ott,.oxps,.pages,.pdf,.pdn,.pkg,.pot,.potx,.pps,.ppsx,.ppt,.pptx,.psd,.pub,.rtf,.sldx,.txt,.vcf,.xcf,.xls,.xlsx,.xlt,.xltx,.xlw,.xps",
Video: ".3gp,.avi,.divx,.flv,.m1v,.m2ts,.m4v,.mkv,.mov,.mp4,.mpe,.mpeg,.mpg,.mxf,.ogv,.vob,.webm,.wmv,.xvid",
Audio: ".aac,.aif,.aiff,.flac,.m4a,.mp3,.wav,.wma"
},
i = Object.assign(Object.assign({}, n), {
Gallery: `${n.Image},${n.Video}`
}),
a = {
iOS: {
Image: "image/*",
Document: void 0,
Video: "video/*",
Audio: void 0,
Gallery: "image/*,video/*"
},
other: {
Image: "image/*",
Document: void 0,
Video: "video/*",
Audio: "audio/*",
Gallery: "image/*,video/*"
}
},
o = {
Image: /\.(bmp|gif|hei[cf]|jfif?|jpeg?|jpg|png|tiff?|webp)$/i,
Document: /\.(ai|cdr|csv|doc[xb]?|dotx?|dwg|eps|e?pub|fla|gpx|ical(endar)?|ics|indd|ipynb|key|km[lz]|mobi|mt[fx]|numbers|od[gpst]|ot[pst]|oxps|pages|pd[fn]|pkg|potx?|pp[st]x?|psd|rtf|sldx|txt|vcf|xcf|xl[st]x?|xlw|xps)$/i,
Video: /\.(3gp|avi|divx|flv|m1v|m2ts|m4v|mkv|mov|mp4|mpeg?|mpg|mxf|ogv|vob|webm|wmv|xvid)$/i,
Audio: /\.(aac|aiff?|flac|m4a|mp3|wav|wma)$/i
},
s = (e, t) => "Gallery" === e ? o.Image.test(t) ? "Image" : "Video" : e,
u = (e, t) => ({
Image: "picture",
Document: "document",
Video: "video",
Audio: "music"
}[s(e, t)]),
c = (e, t) => {
var r, n;
switch (s(e, t.file_name)) {
case "Image":
case "Document":
return Object.assign(Object.assign({}, t), {
uri: t.file_name,
filename: t.original_file_name
});
case "Video":
const e = ((null === (r = t.file_output) || void 0 === r ? void 0 : r.image) || [])[1] || {
url: ""
};
return Object.assign(Object.assign({}, t), {
uri: t.file_name,
filename: t.original_file_name,
posterUri: e.url.replace("media/", ""),
width: e.width,
height: e.height
});
case "Audio":
return Object.assign(Object.assign({}, t), {
uri: t.file_name,
filename: t.original_file_name,
duration: (null === (n = t.file_input) || void 0 === n ? void 0 : n.duration) || 0
});
default:
return t
}
},
d = {
picture: "image",
document: "document",
video: "video",
music: "audio"
}
},
1198: function(e, t, r) {
"use strict";
r.d(t, "a", (function() {
return u
})), r.d(t, "b", (function() {
return c
}));
var n = r(1052),
i = r(77),
a = r(94),
o = r(486);
const s = (e, t, r, n, o) => o ? !!r(o) || (Object(i.d)(n), !1) : !!t || (Object(i.d)(a.b.invalidTypeMessage({
value: o,
types: ["object"],
propertyName: e,
functionName: "set " + e,
index: void 0
})), !1),
u = (e, t = !0) => r => s(e, t, o.a, Object(n.d)(e), r),
c = (e, t = !0) => r => s(e, t, o.c, Object(n.e)(e), r)
},
1302: function(e, t, r) {
"use strict";
r.d(t, "a", (function() {
return i
}));
var n = r(174);
const i = e => ({
onKeyUp: t => Object(n.d)("onKeyUp", e, t)
})
},
1366: function(e, t, r) {
"use strict";
r.d(t, "a", (function() {
return i
}));
var n = r(379);
const i = e => {
const t = Object(n.a)(e),
{
setProps: r,
props: i
} = e;
return Object.assign(Object.assign({}, t), {
onClick: e => {
t.onClick(e), i.hasPlatformClickHandler || r({
hasPlatformClickHandler: !0
})
}
})
}
},
1379: function(e, t, r) {
"use strict";
r.d(t, "a", (function() {
return a
}));
var n = r(174),
i = r(73);
const a = e => t => {
const {
metaData: r,
getSdkInstance: a,
create$w: o,
createEvent: s
} = t, u = (e, t) => Object(i.a)(r.role)(e, {
type: ["function"]
}, t);
return {
onViewportEnter: r => u(r, "onViewportEnter") ? (null == e || e("onViewportEnter", () => {
const e = s({
type: "viewportEnter"
}),
t = o();
r(e, t)
}), Object(n.d)("onViewportEnter", t, r)) : a(),
onViewportLeave: r => u(r, "onViewportLeave") ? (null == e || e("onViewportLeave", () => {
const e = s({
type: "viewportLeave"
}),
t = o();
r(e, t)
}), Object(n.d)("onViewportLeave", t, r)) : a()
}
}
},
138: function(e, t, r) {
"use strict";
r.d(t, "b", (function() {
return n
})), r.d(t, "a", (function() {
return i
}));
const n = {
IMAGE: "image",
DOCUMENT: "document",
VIDEO: "video",
AUDIO: "audio",
VECTOR: "vector"
},
i = {
empty_media_id: "empty_media_id",
empty_poster_id: "empty_poster_id",
bad_media_id: "bad_media_id",
unknown_media_type: "unknown_media_type",
missing_width_height: "missing_width_height",
non_string_media_id: "non_string_media_id"
}
},
1416: function(e, t, r) {
"use strict";
r.d(t, "c", (function() {
return s
})), r.d(t, "a", (function() {
return u
})), r.d(t, "b", (function() {
return c
}));
var n = r(35),
i = r(119),
a = r(77),
o = r(73);
const s = (e, t, r, i) => {
if (n.a.isNil(e) || "" === e) i({
link: void 0
});
else try {
i({
link: r.getLinkProps(e, t)
})
} catch (t) {
Object(a.d)(`The link property that is passed to the link method cannot be set to the value "${e}" as this is not a supported link type.`)
}
},
u = (e, t) => e.link ? t.getLink(e.link) : "",
c = Object(o.b)(({
setProps: e,
props: t,
platformUtils: {
linkUtils: r
}
}) => ({set link(n) {
var i;
s(n, null === (i = t.link) || void 0 === i ? void 0 : i.target, r, e)
},
get link() {
return u(t, r)
},
set target(r) {
e({
link: Object.assign(Object.assign({}, t.link), {
target: r
})
})
},
get target() {
var e, r;
return null !== (r = null === (e = t.link) || void 0 === e ? void 0 : e.target) && void 0 !== r ? r : "_blank"
}
}), {
type: ["object"],
properties: {
link: {
type: ["string", "nil"],
warnIfNil: !0
},
target: {
type: ["string", "nil"],
warnIfNil: !0
}
}
}, {
target: [e => "_blank" === e || "_self" === e || (Object(a.d)(i.a.error_target_w_photo({
target: e
})), !!n.a.isNil(e))]
})
},
1417: function(e, t, r) {
"use strict";
r.d(t, "a", (function() {
return u
}));
var n = r(77),
i = r(73),
a = r(807),
o = r(306),
s = r(138);
const u = Object(i.b)(({
setProps: e,
props: t,
metaData: r,
compRef: i
}) => {
const u = Object(a.f)(t);
return {get background() {
return {get src() {
var e, r;
const {
fillLayers: n = {}
} = t;
if (null === (r = null === (e = null == n ? void 0 : n.video) || void 0 === e ? void 0 : e.videoInfo) || void 0 === r ? void 0 : r.videoId) {
const {
videoInfo: e
} = n.video, t = Object(o.a)({
mediaId: e.videoId,
type: s.b.VIDEO,
title: n.video.posterImageInfo.title,
width: e.videoWidth,
height: e.videoHeight,
posterId: n.video.posterImageInfo.uri
});
return t.error ? "" : t.item || ""
}
const i = n.image || n.backgroundImage;
if (i) {
const e = Object(o.a)({
mediaId: i.uri,
type: s.b.IMAGE,
width: i.width,
height: i.height,
title: i.title
});
return e.error ? "" : e.item || ""
}
return ""
},
set src(i) {
var o, s;
const {
fillLayers: u = {}
} = t;
if (!i) return void e({
fillLayers: {
containerId: r.compId
}
});
const c = Object(a.d)(i);
if (!c) return void Object(n.d)(`The "src" property cannot be set to "${i}". It must be a valid URL starting with "http://", "https://", or "wix:image://, or a valid video URL starting with "wix:video://".`);
const {
hasBgScrollEffect: d,
bgEffectName: l
} = Object(a.e)(u);
"WixVideo" === c.type ? (Object(a.b)(c, t => {
if (!t) return;
const n = {
fillLayers: {
containerId: r.compId,
backgroundMedia: d ? Object.assign({
containerId: r.compId
}, u.backgroundMedia) : void 0,
hasBgFullscreenScrollEffect: u.hasBgFullscreenScrollEffect,
video: Object.assign(Object.assign({}, a.a), {
alt: "",
posterImageInfo: Object.assign({
containerId: r.compId,
hasBgScrollEffect: d,
bgEffectName: l
}, c.posterImageRef),
videoInfo: {
containerId: r.compId,
videoId: t.mediaObject.videoId,
videoWidth: t.mediaObject.videoWidth,
videoHeight: t.mediaObject.videoHeight,
qualities: (i = t.mediaObject.qualities, i.filter(e => "storyboard" !== e.quality).sort((e, t) => parseInt(e.quality, 10) - parseInt(t.quality, 10))),
isVideoDataExists: "1",
videoFormat: t.mediaObject.videoFormat,
playbackRate: t.mediaObject.playbackRate,
autoPlay: t.mediaObject.autoPlay,
hasBgScrollEffect: d,
bgEffectName: l
}
})
}
};
var i;
e(n)
}), e({
fillLayers: {
containerId: r.compId,
hasBgFullscreenScrollEffect: u.hasBgFullscreenScrollEffect,
backgroundMedia: d ? Object.assign({
containerId: r.compId
}, u.backgroundMedia) : void 0,
video: Object.assign(Object.assign({}, a.a), {
alt: "",
posterImageInfo: Object.assign({
containerId: r.compId,
hasBgScrollEffect: d,
bgEffectName: l
}, c.posterImageRef),
videoInfo: {
containerId: r.compId,
videoId: c.videoId,
isVideoDataExists: !1
}
})
}
})) : e({
fillLayers: {
containerId: r.compId,
hasBgFullscreenScrollEffect: u.hasBgFullscreenScrollEffect,
backgroundMedia: d ? Object.assign({
containerId: r.compId
}, u.backgroundMedia) : void 0,
image: u.backgroundImage ? null : Object.assign(Object.assign({}, c), {
uri: c.mediaId || "",
displayMode: null === (o = null == u ? void 0 : u.image) || void 0 === o ? void 0 : o.displayMode,
containerId: r.compId,
name: "",
width: c.width || 0,
height: c.height || 0,
alt: "",
hasBgScrollEffect: d,
bgEffectName: l
}),
backgroundImage: u.backgroundImage ? Object.assign(Object.assign({}, c), {
uri: c.mediaId || "",
name: c.name || "",
width: c.width || 0,
height: c.height || 0,
alt: c.name || "",
displayMode: null === (s = null == u ? void 0 : u.backgroundImage) || void 0 === s ? void 0 : s.displayMode
}) : null
}
})
},
get alt() {
var e, r, n, i;
return (null === (r = null === (e = t.fillLayers) || void 0 === e ? void 0 : e.image) || void 0 === r ? void 0 : r.alt) || (null === (i = null === (n = t.fillLayers) || void 0 === n ? void 0 : n.video) || void 0 === i ? void 0 : i.alt) || ""
},
set alt(r) {
if (!t.fillLayers) return;
const {
image: n,
video: i
} = t.fillLayers, a = i ? {
video: Object.assign(Object.assign({}, i), {
alt: r
})
} : {}, o = n ? {
image: Object.assign(Object.assign({}, n), {
alt: r
})
} : {};
e({
fillLayers: Object.assign(Object.assign(Object.assign({}, t.fillLayers), a), o)
})
},
play() {
if (u) return i.play(!0)
},
pause() {
if (u) return i.pause()
},
stop() {
if (u) return i.stop()
}
}
}
}
}, {
type: ["object"],
properties: {
background: {
type: ["object"],
properties: {
src: {
type: ["string", "nil"],
warnIfNil: !0
},
alt: {
type: ["string", "nil"],
warnIfNil: !0
}
}
}
}
})
},
1418: function(e, t, r) {
"use strict";
r.d(t, "a", (function() {
return i
}));
var n = r(174);
const i = e => ({
onKeyDown: t => Object(n.d)("onKeyDown", e, t)
})
},
1419: function(e, t, r) {
"use strict";
r.d(t, "a", (function() {
return o
}));
var n = r(92),
i = r(73),
a = r(494);
const o = (e, t, r) => Object(n.a)(a.a, Object(i.b)(((e, t, r) => n => {
const {
setProps: a,
props: o,
metaData: s
} = n, u = Object(i.a)(s.role);
return {get value() {
return o.value
},
set value(i) {
const o = e(i, n);
u(o, t, "value") && (a({
value: o
}), r.validate({
viewerSdkAPI: n,
showValidityIndication: !0
}))
}
}
})(e, t, r), {
type: ["object"],
properties: {}
}))
},
1483: function(e, t, r) {
"use strict";
var n = r(92);
r.d(t, "a", (function() {
return n.a
}))
},
1563: function(e, t, r) {
"use strict";
var n = this && this.__createBinding || (Object.create ? function(e, t, r, n) {
void 0 === n && (n = r), Object.defineProperty(e, n, {
enumerable: !0,
get: function() {
return t[r]
}
})
} : function(e, t, r, n) {
void 0 === n && (n = r), e[n] = t[r]
}),
i = this && this.__setModuleDefault || (Object.create ? function(e, t) {
Object.defineProperty(e, "default", {
enumerable: !0,
value: t
})
} : function(e, t) {
e.default = t
}),
a = this && this.__importStar || function(e) {
if (e && e.__esModule) return e;
var t = {};
if (null != e)
for (var r in e) "default" !== r && Object.prototype.hasOwnProperty.call(e, r) && n(t, e, r);
return i(t, e), t
};
Object.defineProperty(t, "__esModule", {
value: !0
}), t.types = t.errors = t.parseMediaSrc = t.createMediaSrc = t.isValidMediaSrc = void 0;
const o = a(r(2733)),
s = r(1593);
Object.defineProperty(t, "types", {
enumerable: !0,
get: function() {
return s.types
}
}), Object.defineProperty(t, "errors", {
enumerable: !0,
get: function() {
return s.errors
}
});
const u = {
externalUrl: /(^https?)|(^data)|(^blob)|(^\/\/)/,
inlineSvg: /<svg[\s\S]*>[\s\S]*<\/svg>/im
},
c = {
[o.types.VECTOR]: [u.externalUrl, u.inlineSvg], [o.types.IMAGE]: [u.externalUrl], [o.types.DOCUMENT]: [], [o.types.VIDEO]: [], [o.types.AUDIO]: [u.externalUrl]
};
t.createMediaSrc = function({
mediaId: e,
type: t,
title: r,
width: n,
height: i,
posterId: a,
watermark: s,
duration: u
}) {
var d;
return (null === (d = c[t]) || void 0 === d ? void 0 : d.some(t => t.test(e))) ? {
item: e
} : o.createMediaItemUri({
mediaId: e,
type: t,
title: r,
width: n,
height: i,
posterId: a,
watermark: s,
duration: u
})
}, t.parseMediaSrc = function(e, t) {
if (!Object.values(s.types).includes(t)) return {
error: s.errors.unknown_media_type
};
if (c[t].some(t => t.test(e))) return {
type: t,
mediaId: e
};
const r = o.parseMediaItemUri(e);
return r.error === s.errors.non_string_media_id ? r : r.error === s.errors.unknown_media_type || t !== r.type ? {
error: s.errors.bad_media_id
} : r
}, t.isValidMediaSrc = function(e, t) {
return o.isValidMediaItemUri(e, t) || c[t] && c[t].some(t => t.test(e))
}
},
1565: function(e, t, r) {
"use strict";
r.d(t, "a", (function() {
return n
}));
const n = ({
handlers: e,
metaData: t
}) => {
const {
compId: r,
connection: n,
compType: i,
isGlobal: a,
getParent: o,
role: s,
wixCodeId: u
} = t, c = "$w." + i;
return {get id() {
return u || s
},
get role() {
return s
},
get connectionConfig() {
return null == n ? void 0 : n.config
},
get uniqueId() {
return r
},
get parent() {
return o()
},
get global() {
return a()
},
get type() {
return c
},
scrollTo: () => new Promise(t => e.scrollToComponent(r, t)),
toJSON: () => ({
id: s,
type: c,
global: a()
})
}
}
},
1568: function(e, t, r) {
"use strict";
r.d(t, "a", (function() {
return n
}));
const n = ({
name: e,
prefix: t
}) => t ? `--${t}-corvid-${e}` : "--corvid-" + e
},
1593: function(e, t, r) {
"use strict";
Object.defineProperty(t, "__esModule", {
value: !0
}), t.errors = t.types = void 0, t.types = {
IMAGE: "image",
DOCUMENT: "document",
VIDEO: "video",
AUDIO: "audio",
VECTOR: "vector"
}, t.errors = {
empty_media_id: "empty_media_id",
empty_poster_id: "empty_poster_id",
bad_media_id: "bad_media_id",
unknown_media_type: "unknown_media_type",
missing_width_height: "missing_width_height",
non_string_media_id: "non_string_media_id"
}
},
1667: function(e, t, r) {
"use strict";
r.d(t, "a", (function() {
return i
}));
var n = r(73);
const i = Object(n.b)(({
setProps: e,
props: t
}) => ({get readOnly() {
return t.readOnly || !1
},
set readOnly(t) {
e({
readOnly: t
})
}
}), {
type: ["object"],
properties: {
readOnly: {
type: ["boolean"]
}
}
})
},
1728: function(e, t, r) {
"use strict";
r.d(t, "a", (function() {
return u
})), r.d(t, "b", (function() {
return c
}));
var n = r(35),
i = r(94);
const a = Object.prototype.hasOwnProperty,
o = Object.getOwnPropertyNames;
function s(e) {
return Array.isArray(e)
}
const u = {
Valid: "valid",
Invalid: "invalid",
InvalidType: "invalid-type"
};
function c({
reportError: e,
reportWarning: t
}, r, {
suppressIndexErrors: c = !1
} = {}) {
function d(a, o, s) {
o.warnIfNil && n.a.isNil(a) && t(i.b.nilAssignmentMessage(Object.assign(Object.assign({}, s), {
compName: r
})), Object.assign(Object.assign({}, s), {
value: a
}));
let c = 0;
for (; c < o.type.length; c++) {
const e = (0, l[o.type[c]])(a, o, s);
if (e !== u.InvalidType) return e === u.Valid
}
return c === o.type.length && e(i.b.invalidTypeMessage(Object.assign({
value: a,
types: o.type
}, s)), Object.assign(Object.assign({}, s), {
value: a
})), !1
}
const l = {
object: (t, r, s) => function(e, t, r, s, c, d) {
if (!n.a.isObject(e)) return u.InvalidType;
if (t.required)
for (let r = 0; r < t.required.length; r++)
if (!a.call(e, t.required[r])) return s(i.b.missingFieldMessage({
functionName: d.functionName,
index: d.index,
propertyName: t.required[r]
}), Object.assign(Object.assign({}, d), {
value: e
})), u.Invalid;
if (t.properties) {
const n = o(t.properties);
for (let i = 0; i < n.length; i++) {
const o = n[i];
if (a.call(e, o)) {
const n = t.properties[o];
if (!r(e[o], n, {
functionName: d.functionName,
index: d.index,
propertyName: o
})) return u.Invalid
}
}
}
return u.Valid
}(t, r, d, e, 0, s),
array: (e, t, r) => function(e, t, r, i, a, o = !1) {
if (!n.a.isArray(e)) return u.InvalidType;
let c = u.Valid;
if (t.items) {
const n = s(t.items) ? Math.min(e.length, t.items.length) : e.length;
for (let i = 0; i < n; i++) {
const n = e[i];
let d, l;
s(t.items) ? (d = t.items[i], l = t.items[i].name) : (d = t.items, l = t.name);
r(n, d, {
functionName: a.functionName,
propertyName: l || a.propertyName,
index: o ? void 0 : i
}) || (c = u.Invalid)
}
}
return c
}(e, t, d, 0, r, c),
number: (t, r, a) => function(e, t, r, a) {
const {
minimum: o,
maximum: s,
enum: c
} = t;
return n.a.isNumber(e) ? c && !n.a.isIn(e, c) ? (r(i.b.invalidEnumValueMessage(Object.assign({
value: e,
enum: c
}, a)), Object.assign(Object.assign({}, a), {
value: e
})), u.Invalid) : n.a.isNumber(o) && n.a.isBelow(e, o) || n.a.isNumber(s) && n.a.isAbove(e, s) ? (r(i.b.invalidNumberBoundsMessage(Object.assign({
value: e,
minimum: o,
maximum: s
}, a)), Object.assign(Object.assign({}, a), {
value: e
})), u.Invalid) : u.Valid : u.InvalidType
}(t, r, e, a),
integer: (t, r, a) => function(e, t, r, a) {
const {
minimum: o,
maximum: s,
enum: c
} = t;
return n.a.isInteger(e) ? c && !n.a.isIn(e, c) ? (r(i.b.invalidEnumValueMessage(Object.assign({
value: e,
enum: c
}, a)), Object.assign(Object.assign({}, a), {
value: e
})), u.Invalid) : n.a.isNumber(o) && n.a.isBelow(e, o) || n.a.isNumber(s) && n.a.isAbove(e, s) ? (r(i.b.invalidNumberBoundsMessage(Object.assign({
value: e,
minimum: o,
maximum: s
}, a)), Object.assign(Object.assign({}, a), {
value: e
})), u.Invalid) : u.Valid : u.InvalidType
}(t, r, e, a),
string: (t, r, a) => function(e, t, r, a) {
const {
minLength: o,
maxLength: s,
enum: c,
pattern: d
} = t;
return n.a.isString(e) ? c && !n.a.isIn(e, c) ? (r(i.b.invalidEnumValueMessage(Object.assign({
value: e,
enum: c
}, a)), Object.assign(Object.assign({}, a), {
value: e
})), u.Invalid) : o && n.a.isBelow(e.length, o) || s && n.a.isAbove(e.length, s) ? (r(i.b.invalidStringLengthMessage(Object.assign({
value: e,
minimum: o,
maximum: s
}, a)), Object.assign(Object.assign({}, a), {
value: e
})), u.Invalid) : d && !new RegExp(d).test(e) ? (r(i.b.patternMismatchMessage(Object.assign({
value: e
}, a)), Object.assign(Object.assign({}, a), {
value: e
})), u.Invalid) : u.Valid : u.InvalidType
}(t, r, e, a),
boolean: e => function(e) {
return n.a.isBoolean(e) ? u.Valid : u.InvalidType
}(e),
date: e => function(e) {
return n.a.isDate(e) ? u.Valid : u.InvalidType
}(e),
nil: e => function(e) {
return n.a.isNil(e) ? u.Valid : u.InvalidType
}(e),
function: e => function(e) {
return n.a.isFunction(e) ? u.Valid : u.InvalidType
}(e)
};
return function(e, t, r) {
return d(e, t, {
functionName: r,
propertyName: r,
index: void 0
})
}
}
},
174: function(e, t, r) {
"use strict";
r.d(t, "a", (function() {
return o
})), r.d(t, "c", (function() {
return s
})), r.d(t, "b", (function() {
return u
})), r.d(t, "d", (function() {
return p
})), r.d(t, "h", (function() {
return m
})), r.d(t, "e", (function() {
return b
})), r.d(t, "f", (function() {
return g
})), r.d(t, "g", (function() {
return v
}));
var n = r(73);
const i = {
["click"]: "onClick", ["dblClick"]: "onDblClick", ["mouseenter"]: "onMouseIn", ["mouseleave"]: "onMouseOut", ["change"]: "onChange", ["onInput"]: "onInput", ["blur"]: "onBlur", ["focus"]: "onFocus", ["imageChanged"]: "onCurrentItemChanged", ["imageExpanded"]: void 0, ["itemClicked"]: "onItemClicked", ["cellSelect"]: "onCellSelect", ["cellEdit"]: void 0, ["rowSelect"]: "onRowSelect", ["fetchData"]: void 0, ["dataChange"]: "onDataChange", ["onTimeout"]: "onTimeout", ["onVerified"]: "onVerified", ["onError"]: "onError", ["onPlay"]: "onPlay", ["onPause"]: "onPause", ["onProgress"]: "onProgress", ["onEnded"]: "onEnded", ["autoplayOff"]: "onPause", ["autoplayOn"]: "onPlay", ["playEnded"]: void 0, ["playProgress"]: void 0, ["keyPress"]: "onKeyPress", ["keyUp"]: "onKeyUp", ["keyDown"]: "onKeyDown", ["screenIn"]: void 0, ["viewportEnter"]: "onViewportEnter", ["viewportLeave"]: "onViewportLeave", ["scroll"]: void 0, ["validate"]: void 0, ["setCustomValidity"]: void 0, ["syncValidationData"]: void 0, ["updateValidityIndication"]: void 0, ["message"]: "onMessage", ["uploadComplete"]: void 0, ["itemReady"]: "onItemReady", ["itemRemoved"]: "onItemRemoved", ["tagClick"]: void 0, ["quickActionBarItemClicked"]: "onItemClicked", ["markerClicked"]: "onMarkerClicked", ["mapClicked"]: "onMapClicked", ["iconMouseIn"]: void 0, ["onStateChange"]: "onStateChange", ["itemMouseIn"]: "onItemMouseIn", ["itemMouseOut"]: "onItemMouseOut", ["itemMouseClick"]: "onItemClick", ["itemMouseDblClick"]: "onItemDblClick", ["onColorChange"]: "onColorChange", ["onFontChange"]: "onFontChange", ["onOpacityChange"]: "onOpacityChange"
},
a = {
dblclick: "dblClick",
keydown: "keyPress",
input: "onInput"
},
o = e => {
var t;
const {
target: r,
type: n,
context: i
} = e;
return {
target: r,
type: null !== (t = a[n]) && void 0 !== t ? t : n,
context: i
}
},
s = e => {
const {
clientX: t,
clientY: r,
pageX: n,
pageY: i,
screenX: a,
screenY: o,
nativeEvent: s
} = e, {
offsetX: u,
offsetY: c
} = s;
return {
clientX: t,
clientY: r,
pageX: n,
pageY: i,
screenX: a,
screenY: o,
offsetX: u,
offsetY: c
}
},
u = e => {
const {
altKey: t,
ctrlKey: r,
key: n,
metaKey: i,
shiftKey: a
} = e;
return {
key: n,
altKey: t,
ctrlKey: r,
metaKey: i,
shiftKey: a
}
},
c = {
onMouseEnter: "onMouseIn",
onMouseLeave: "onMouseOut"
},
d = e => e.replace(/^on/i, ""),
l = e => e.createSdkState({
listeners: []
}, "eventListeners"),
p = (e, t, r, i) => {
var a;
const {
create$w: s,
createEvent: u,
registerEvent: d,
getSdkInstance: p,
metaData: f
} = t, m = null !== (a = c[e]) && void 0 !== a ? a : e;
if (!((e, t, r) => Object(n.a)(r)(e, {
type: ["function"]
}, t))(r, m, f.role)) return p();
const [b, g] = l(t), v = d(e, (e, t) => {
const n = u({
type: e.type,
compId: e.compId
}),
a = s({
context: n.context
}),
c = null == i ? void 0 : i({
componentEvent: e,
eventPayload: t
});
r(Object.assign(Object.assign({}, o(n)), c), a)
}), h = {
eventName: e,
compId: f.compId,
cb: r,
unregister: v
};
return g({
listeners: [...b.listeners, h]
}), p()
},
f = (e, t) => {
var r;
const n = (e => {
var t;
const r = Object.entries(c).find(([t, r]) => d(r.toLowerCase()) === d(e.toLowerCase()));
return null !== (t = null == r ? void 0 : r[0]) && void 0 !== t ? t : e
})(null !== (r = i[t]) && void 0 !== r ? r : t);
return e.toLowerCase() === n.toLowerCase()
},
m = (e, t, r) => {
const {
metaData: n,
getSdkInstance: i
} = t, [a, o] = l(t), s = a.listeners.filter(t => f(t.eventName, e) && t.cb === r && t.compId === n.compId);
for (const e of s) e.unregister();
return o({
listeners: a.listeners.filter(e => !s.includes(e))
}), i()
},
b = (e, t, r, n) => p(e, t, r, ({
componentEvent: e,
eventPayload: t
}) => Object.assign(Object.assign({}, u(e)), t && (null == n ? void 0 : n(t)))),
g = (e, t, r, n) => p(e, t, r, ({
componentEvent: e,
eventPayload: t
}) => Object.assign(Object.assign({}, s(e)), t && (null == n ? void 0 : n(t)))),
v = ({
eventName: e,
api: t,
cb: r,
namespace: n
}) => {
const {
registerEvent: i,
createSdkState: a
} = t, [o, s] = a({
wasInvoked: !1
}, n);
o.wasInvoked || (i(e, r), s({
wasInvoked: !0
}))
}
},
1753: function(e, t, r) {
"use strict";
var n = r(2871);
r.d(t, "e", (function() {
return n.a
}));
var i = r(2872);
r.d(t, "d", (function() {
return i.a
}));
var a = r(2873);
r.d(t, "f", (function() {
return a.a
}));
var o = r(2874);
r.d(t, "c", (function() {
return o.a
}));
var s = r(2875);
r.d(t, "g", (function() {
return s.a
}));
var u = r(2876);
r.d(t, "h", (function() {
return u.a
}));
var c = r(1052);
r.d(t, "a", (function() {
return c.a
})), r.d(t, "b", (function() {
return c.b
})), r.d(t, "v", (function() {
return c.c
})), r.d(t, "w", (function() {
return c.d
})), r.d(t, "x", (function() {
return c.e
}));
var d = r(2877);
r.d(t, "j", (function() {
return d.a
}));
var l = r(2878);
r.d(t, "k", (function() {
return l.a
}));
var p = r(2879);
r.d(t, "l", (function() {
return p.a
}));
var f = r(2880);
r.d(t, "m", (function() {
return f.a
}));
var m = r(2881);
r.d(t, "n", (function() {
return m.a
}));
var b = r(2882);
r.d(t, "y", (function() {
return b.a
}));
var g = r(2883);
r.d(t, "o", (function() {
return g.a
}));
var v = r(2884);
r.d(t, "p", (function() {
return v.a
}));
var h = r(2885);
r.d(t, "i", (function() {
return h.a
}));
var y = r(2886);
r.d(t, "r", (function() {
return y.a
}));
var _ = r(2887);
r.d(t, "q", (function() {
return _.a
}));
var O = r(2888);
r.d(t, "s", (function() {
return O.a
}));
var j = r(2889);
r.d(t, "t", (function() {
return j.a
})), r.d(t, "z", (function() {
return j.b
}));
var w = r(2890);
r.d(t, "u", (function() {
return w.a
}))
},
1766: function(e, t, r) {
"use strict";
r.d(t, "a", (function() {
return o
}));
var n = r(92),
i = r(1767),
a = r(1379);
const o = e => t => ((e, t = !1) => {
const [r, o] = e.createSdkState({
onViewportEnter: [],
onViewportLeave: []
}, "viewport"), s = Object(i.a)({
viewportState: r,
hasPortal: t
}), u = Object(a.a)((e, t) => {
o({
[e]: [...r[e], t]
})
});
return Object(n.a)(s, u)(e)
})(t, e)
},
1767: function(e, t, r) {
"use strict";
r.d(t, "a", (function() {
return g
}));
var n = r(77),
i = r(119);
const a = {
duration: 1200,
delay: 0
},
o = {
arc: Object.assign(Object.assign({}, a), {
direction: "left"
}),
bounce: Object.assign(Object.assign({}, a), {
direction: "topLeft",
intensity: "medium"
}),
puff: Object.assign({}, a),
zoom: Object.assign({}, a),
fade: Object.assign({}, a),
flip: Object.assign(Object.assign({}, a), {
direction: "right"
}),
float: Object.assign(Object.assign({}, a), {
direction: "right"
}),
fly: Object.assign(Object.assign({}, a), {
direction: "right"
}),
fold: Object.assign(Object.assign({}, a), {
direction: "left"
}),
glide: Object.assign(Object.assign({}, a), {
angle: 0,
distance: 0
}),
roll: Object.assign(Object.assign({}, a), {
direction: "left"
}),
slide: Object.assign(Object.assign({}, a), {
direction: "left"
}),
spin: Object.assign(Object.assign({}, a), {
direction: "cw",
cycles: 5
}),
turn: Object.assign(Object.assign({}, a), {
direction: "right"
}),
ArcIn: Object.assign(Object.assign({}, a), {
direction: "right"
}),
ArcOut: Object.assign(Object.assign({}, a), {
direction: "right"
}),
BounceIn: Object.assign(Object.assign({}, a), {
direction: "topLeft",
intensity: "medium"
}),
BounceOut: Object.assign(Object.assign({}, a), {
direction: "topLeft",
intensity: "medium"
}),
ExpandIn: Object.assign(Object.assign({}, a), {
direction: "right"
}),
CollapseOut: Object.assign({}, a),
Conceal: Object.assign(Object.assign({}, a), {
direction: "right"
}),
Reveal: Object.assign(Object.assign({}, a), {
direction: "left"
}),
FadeIn: Object.assign({}, a),
FadeOut: Object.assign({}, a),
FlipIn: Object.assign(Object.assign({}, a), {
direction: "left"
}),
FlipOut: Object.assign(Object.assign({}, a), {
direction: "left"
}),
FloatIn: Object.assign(Object.assign({}, a), {
direction: "right"
}),
FloatOut: Object.assign(Object.assign({}, a), {
direction: "right"
}),
FlyIn: Object.assign(Object.assign({}, a), {
direction: "right"
}),
FlyOut: Object.assign(Object.assign({}, a), {
direction: "right"
}),
FoldIn: Object.assign(Object.assign({}, a), {
direction: "left"
}),
FoldOut: Object.assign(Object.assign({}, a), {
direction: "left"
}),
GlideIn: Object.assign(Object.assign({}, a), {
angle: 0,
distance: 150
}),
GlideOut: Object.assign(Object.assign({}, a), {
angle: 0,
distance: 150
}),
DropIn: Object.assign({}, a),
PopOut: Object.assign({}, a),
SlideIn: Object.assign(Object.assign({}, a), {
direction: "left"
}),
SlideOut: Object.assign(Object.assign({}, a), {
direction: "left"
}),
SpinIn: Object.assign(Object.assign({}, a), {
direction: "cw",
cycles: 2
}),
SpinOut: Object.assign(Object.assign({}, a), {
direction: "cw",
cycles: 2
}),
TurnIn: Object.assign(Object.assign({}, a), {
direction: "right"
}),
TurnOut: Object.assign(Object.assign({}, a), {
direction: "right"
})
},
s = {
HIDE: {
suffix: "out",
deprecatedValues: ["ArcOut", "BounceOut", "CollapseOut", "Conceal", "FadeOut", "FlipOut", "FloatOut", "FlyOut", "FoldOut", "GlideOut", "PopOut", "SlideOut", "SpinOut", "TurnOut"]
},
SHOW: {
suffix: "in",
deprecatedValues: ["ArcIn", "BounceIn", "DropIn", "ExpandIn", "FadeIn", "FlipIn", "FloatIn", "FlyIn", "FoldIn", "GlideIn", "Reveal", "SlideIn", "SpinIn", "TurnIn"]
}
},
u = e => "https://www.wix.com/corvid/reference/$w/hiddenmixin/" + e,
c = {
type: ["number", "nil"],
minimum: 0,
maximum: 4e3
},
d = {
type: ["number", "nil"],
minimum: 0,
maximum: 8e3
},
l = {
type: ["string", "nil"],
enum: ["left", "right", "top", "bottom"]
},
p = {
arc: {
type: ["object"],
properties: {
duration: c,
delay: d,
direction: {
type: ["string", "nil"],
enum: ["left", "right"]
}
}
},
bounce: {
type: ["object"],
properties: {
duration: c,
delay: d,
direction: {
type: ["string", "nil"],
enum: ["topLeft", "topRight", "bottomRight", "bottomLeft", "center"]
},
intensity: {
type: ["string", "nil"],
enum: ["soft", "medium", "hard"]
}
}
},
puff: {
type: ["object"],
properties: {
duration: c,
delay: d
}
},
zoom: {
type: ["object"],
properties: {
duration: c,
delay: d
}
},
fade: {
type: ["object"],
properties: {
duration: c,
delay: d
}
},
flip: {
type: ["object"],
properties: {
duration: c,
delay: d,
direction: l
}
},
float: {
type: ["object"],
properties: {
duration: c,
delay: d,
direction: l
}
},
fly: {
type: ["object"],
properties: {
duration: c,
delay: d,
direction: l
}
},
fold: {
type: ["object"],
properties: {
duration: c,
delay: d,
direction: l
}
},
glide: {
type: ["object"],
properties: {
duration: c,
delay: d,
angle: {
type: ["number", "nil"],
minimum: 0,
maximum: 360
},
distance: {
type: ["number", "nil"],
minimum: 0,
maximum: 300
}
}
},
roll: {
type: ["object"],
properties: {
duration: c,
delay: d,
direction: l
}
},
slide: {
type: ["object"],
properties: {
duration: c,
delay: d,
direction: l
}
},
spin: {
type: ["object"],
properties: {
duration: c,
delay: d,
direction: {
type: ["string", "nil"],
enum: ["cw", "ccw"]
},
cycles: {
type: ["number", "nil"],
minimum: 1,
maximum: 15
}
}
},
turn: {
type: ["object"],
properties: {
duration: c,
delay: d,
direction: {
type: ["string", "nil"],
enum: ["right", "left"]
}
}
}
};
var f = r(1728);
const m = ({
propertyName: e,
compName: t
}) => (r, a) => {
if (!r) return !1;
if (void 0 === a) return !0;
const o = (({
effectName: e,
propertyName: t,
compName: r
}) => (a, o) => {
Object(n.f)(i.a.warning_invalid_type_effect_options({
propertyName: t,
compName: r,
effectName: e,
wrongValue: "" + (null == o ? void 0 : o.value),
infoLink: u(t)
}))
})({
effectName: r,
propertyName: e,
compName: t
});
if (!Object(f.b)({
reportError: o,
reportWarning: () => ({})
}, t)(a, {
type: ["object"]
}, e)) return !1;
const s = (({
effectName: e,
propertyName: t,
compName: r
}) => (a, o) => {
Object(n.f)(i.a.warning_invalid_effect_options({
propertyName: t,
compName: r,
effectName: e,
wrongProperty: "value",
wrongValue: `the key "${null==o?void 0:o.propertyName}" cannot be set to the value "${null==o?void 0:o.value}"`,
infoLink: u(t)
}))
})({
effectName: r,
propertyName: e,
compName: t
});
return !!Object(f.b)({
reportError: s,
reportWarning: () => ({})
}, t)(a, p[r], e)
},
b = e => 0 === Object.keys(e).length,
g = ({
viewportState: e,
hasPortal: t = !1
} = {}) => ({
setStyles: r,
portal: c,
metaData: d,
getSdkInstance: l,
runAnimation: f,
createSdkState: g,
styleUtils: v,
setProps: h
}) => {
const y = (({
compName: e
}) => ({
effectName: t,
effectOptions: r,
propertyName: a
}) => {
var o;
const c = m({
propertyName: a,
compName: e
});
if (!t && !r) return !1;
if (!t && r && !b(r)) return Object(n.f)(i.a.warning_effect_options_not_set({
propertyName: a,
compName: e,
infoLink: u(a)
})), !1;
const d = null === (o = s["hide" === a ? "HIDE" : "SHOW"]) || void 0 === o ? void 0 : o.deprecatedValues;
return t && r && d && d.find(e => e === t) && !b(r) ? (Object(n.f)(i.a.warning_deprecated_effect_with_options({
compName: e,
effectName: t,
propertyName: a,
infoLink: u(a)
})), !1) : !!d.find(e => e === t) || (t && !(t in p) ? (Object(n.f)(i.a.warning_invalid_effect_name({
propertyName: a,
compName: e,
effectName: t,
infoLink: u(a)
})), !1) : !!c(t, r))
})({
compName: d.role
}),
[_, O] = g({
hidden: d.hiddenOnLoad,
collapsed: d.collapsedOnLoad
}, "hidden-collapsed");
return {
hide: async(n, i) => {
var u;
if (h({
hidden: !0
}), _.collapsed || _.hidden) O({
hidden: !0
});
else {
if (y({
effectName: n,
effectOptions: i,
propertyName: "hide"
})) {
const e = {
animationDirection: s.HIDE.suffix,
effectName: n,
effectOptions: Object.assign(Object.assign({}, (null == o ? void 0 : o[n]) || a), i)
};
await Promise.all([f(e), t ? c.runAnimation(e) : void 0])
} else r(v.getHiddenStyles()), t && c.setStyles(v.getHiddenStyles());
O({
hidden: !0
}), null === (u = null == e ? void 0 : e.onViewportLeave) || void 0 === u || u.forEach(e => e())
}
},
show: async(n, i) => {
var u;
if (h({
hidden: !1
}), !_.collapsed && _.hidden) {
if (y({
effectName: n,
effectOptions: i,
propertyName: "show"
})) {
const e = {
animationDirection: s.SHOW.suffix,
effectName: n,
effectOptions: Object.assign(Object.assign({}, (null == o ? void 0 : o[n]) || a), i)
};
await Promise.all([f(e), t ? c.runAnimation(e) : void 0])
} else r(v.getShownStyles()), t && c.setStyles(v.getShownStyles());
O({
hidden: !1
}), null === (u = null == e ? void 0 : e.onViewportEnter) || void 0 === u || u.forEach(e => e())
} else O({
hidden: !1
})
},
collapse: async() => {
var n;
h({
collapsed: !0
}), _.collapsed || (r(v.getCollapsedStyles()), t && c.setStyles(v.getCollapsedStyles()), O({
collapsed: !0
}), _.hidden || null === (n = null == e ? void 0 : e.onViewportLeave) || void 0 === n || n.forEach(e => e()))
},
expand: async() => {
var n;
if (h({
collapsed: !1
}), _.collapsed) {
const i = Object.assign(Object.assign({}, v.getExpandedStyles()), {
visibility: _.hidden ? "hidden" : null
});
r(i), t && c.setStyles(i), O({
collapsed: !1
}), _.hidden || null === (n = null == e ? void 0 : e.onViewportEnter) || void 0 === n || n.forEach(e => e())
}
},
get collapsed() {
return _.collapsed
},
get hidden() {
return Boolean(_.hidden)
},
get isVisible() {
if (!d.isRendered()) return !1;
let e = l();
for (; e;) {
if (e.hidden || e.collapsed) return !1;
e = e.parent
}
return !0
},
get isAnimatable() {
return !0
}
}
}
},
1774: function(e, t, r) {
"use strict";
r.d(t, "a", (function() {
return o
}));
var n = r(35),
i = r(94),
a = r(77);
const o = (e, t) => {
const [r] = e, o = n.a.isObject(r), s = t.getChildren();
let u = -1;
if (n.a.isObject(r)) {
if (!Object.keys(s[0]).every(e => r.hasOwnProperty(e))) return Object(a.d)(i.b.invalidTypeMessage({
propertyName: "stateReference",
functionName: "changeState",
value: r,
types: ["state", "string"],
index: void 0
})), !1;
u = s.findIndex(e => e.uniqueId === r.uniqueId)
}
return n.a.isString(r) && (u = s.findIndex(e => e.role === r)), !(u < 0) || (Object(a.d)(i.b.invalidStateInputMessage({
value: o ? r.role : r,
propertyName: "stateReference",
functionName: "changeState",
stateBoxId: t.metaData.role
})), !1)
}
},
1775: function(e, t, r) {
"use strict";
r.d(t, "a", (function() {
return a
}));
var n = r(73),
i = r(174);
const a = Object(n.b)(e => ({get isPlaying() {
return e.props.isPlaying
},
play: () => (e.compRef.play(), e.getSdkInstance()),
pause: () => (e.compRef.pause(), e.getSdkInstance()),
onPlay: t => Object(i.d)("onPlay", e, t),
onPause: t => Object(i.d)("onPause", e, t),
next: () => new Promise((e, t) => {
t("sdk method not implemented")
}),
previous: () => new Promise((e, t) => {
t("sdk method not implemented")
})
}), {
type: ["object"],
properties: {}
})
},
1776: function(e, t, r) {
"use strict";
r.d(t, "a", (function() {
return a
}));
var n = r(73),
i = r(174);
const a = Object(n.b)(e => ({get placeholder() {
return e.props.placeholder || ""
},
set placeholder(t) {
const r = t || "";
e.setProps({
placeholder: r
})
},
get maxLength() {
return e.props.maxLength
},
set maxLength(t) {
const r = null == t ? null : t;
e.setProps({
maxLength: r
})
},
onKeyPress: t => Object(i.e)("onKeyPress", e, t),
onInput: t => Object(i.d)("onInput", e, t)
}), {
type: ["object"],
properties: {
placeholder: {
type: ["string", "nil"],
warnIfNil: !0
},
maxLength: {
type: ["integer", "nil"],
warnIfNil: !0,
minimum: 0
}
}
})
},
1777: function(e, t, r) {
"use strict";
r.d(t, "a", (function() {
return n
}));
const n = Object.assign(Object.assign(Object.assign(Object.assign({}, {
black: "#000000",
silver: "#c0c0c0",
gray: "#808080",
white: "#ffffff",
maroon: "#800000",
red: "#ff0000",
purple: "#800080",
fuchsia: "#ff00ff",
green: "#008000",
lime: "#00ff00",
olive: "#808000",
yellow: "#ffff00",
navy: "#000080",
blue: "#0000ff",
teal: "#008080",
aqua: "#00ffff"
}), {
orange: "#ffa500",
aliceblue: "#f0f8ff",
antiquewhite: "#faebd7",
aquamarine: "#7fffd4",
azure: "#f0ffff",
beige: "#f5f5dc",
bisque: "#ffe4c4",
blanchedalmond: "#ffebcd",
blueviolet: "#8a2be2",
brown: "#a52a2a",
burlywood: "#deb887",
cadetblue: "#5f9ea0",
chartreuse: "#7fff00",
chocolate: "#d2691e",
coral: "#ff7f50",
cornflowerblue: "#6495ed",
cornsilk: "#fff8dc",
crimson: "#dc143c",
cyan: "#00ffff",
darkblue: "#00008b",
darkcyan: "#008b8b",
darkgoldenrod: "#b8860b",
darkgray: "#a9a9a9",
darkgreen: "#006400",
darkgrey: "#a9a9a9",
darkkhaki: "#bdb76b",
darkmagenta: "#8b008b",
darkolivegreen: "#556b2f",
darkorange: "#ff8c00",
darkorchid: "#9932cc",
darkred: "#8b0000",
darksalmon: "#e9967a",
darkseagreen: "#8fbc8f",
darkslateblue: "#483d8b",
darkslategray: "#2f4f4f",
darkslategrey: "#2f4f4f",
darkturquoise: "#00ced1",
darkviolet: "#9400d3",
deeppink: "#ff1493",
deepskyblue: "#00bfff",
dimgray: "#696969",
dimgrey: "#696969",
dodgerblue: "#1e90ff",
firebrick: "#b22222",
floralwhite: "#fffaf0",
forestgreen: "#228b22",
gainsboro: "#dcdcdc",
ghostwhite: "#f8f8ff",
gold: "#ffd700",
goldenrod: "#daa520",
greenyellow: "#adff2f",
grey: "#808080",
honeydew: "#f0fff0",
hotpink: "#ff69b4",
indianred: "#cd5c5c",
indigo: "#4b0082",
ivory: "#fffff0",
khaki: "#f0e68c",
lavender: "#e6e6fa",
lavenderblush: "#fff0f5",
lawngreen: "#7cfc00",
lemonchiffon: "#fffacd",
lightblue: "#add8e6",
lightcoral: "#f08080",
lightcyan: "#e0ffff",
lightgoldenrodyellow: "#fafad2"
}), {
lightgray: "#d3d3d3",
lightgreen: "#90ee90",
lightgrey: "#d3d3d3",
lightpink: "#ffb6c1",
lightsalmon: "#ffa07a",
lightseagreen: "#20b2aa",
lightskyblue: "#87cefa",
lightslategray: "#778899",
lightslategrey: "#778899",
lightsteelblue: "#b0c4de",
lightyellow: "#ffffe0",
limegreen: "#32cd32",
linen: "#faf0e6",
magenta: "#ff00ff",
mediumaquamarine: "#66cdaa",
mediumblue: "#0000cd",
mediumorchid: "#ba55d3",
mediumpurple: "#9370db",
mediumseagreen: "#3cb371",
mediumslateblue: "#7b68ee",
mediumspringgreen: "#00fa9a",
mediumturquoise: "#48d1cc",
mediumvioletred: "#c71585",
midnightblue: "#191970",
mintcream: "#f5fffa",
mistyrose: "#ffe4e1",
moccasin: "#ffe4b5",
navajowhite: "#ffdead",
oldlace: "#fdf5e6",
olivedrab: "#6b8e23",
orangered: "#ff4500",
orchid: "#da70d6",
palegoldenrod: "#eee8aa",
palegreen: "#98fb98",
paleturquoise: "#afeeee",
palevioletred: "#db7093",
papayawhip: "#ffefd5",
peachpuff: "#ffdab9",
peru: "#cd853f",
pink: "#ffc0cb",
plum: "#dda0dd",
powderblue: "#b0e0e6",
rosybrown: "#bc8f8f",
royalblue: "#4169e1",
saddlebrown: "#8b4513",
salmon: "#fa8072",
sandybrown: "#f4a460",
seagreen: "#2e8b57",
seashell: "#fff5ee",
sienna: "#a0522d",
skyblue: "#87ceeb",
slateblue: "#6a5acd",
slategray: "#708090",
slategrey: "#708090",
snow: "#fffafa",
springgreen: "#00ff7f",
steelblue: "#4682b4",
tan: "#d2b48c",
thistle: "#d8bfd8",
tomato: "#ff6347",
turquoise: "#40e0d0",
violet: "#ee82ee",
wheat: "#f5deb3",
whitesmoke: "#f5f5f5",
yellowgreen: "#9acd32"
}), {
rebeccapurple: "#663399"
})
},
1778: function(e, t, r) {
"use strict";
r.d(t, "a", (function() {
return i
}));
var n = r(73);
const i = e => Object(n.b)((e => t => {
const {
props: r,
setProps: n
} = t;
return {get checked() {
return r.checked || !1
},
set checked(r) {
n({
checked: r || !1
}), e.validate({
viewerSdkAPI: t,
showValidityIndication: !0
})
}
}
})(e), {
type: ["object"],
properties: {
checked: {
type: ["boolean", "nil"]
}
}
})
},
1783: function(e, t, r) {
"use strict";
r.d(t, "a", (function() {
return w
}));
var n = r(35),
i = r(73),
a = r(174),
o = r(77);
const s = /^(http|https):\/\/(.*)/,
u = /^\/([^ ?#]*)[?]?(.*)/,
c = ({
link: e,
target: t,
linkUtils: r
}) => {
if (!n.a.isNil(e)) {
const n = t || (i = e, s.test(i) ? "_blank" : "_self");
return r.getLinkProps(e, n)
}
var i;
return {}
},
d = ({
link: e,
label: t,
pageList: r
}) => {
return n.a.isNil(t) ? !n.a.isNil(e) && (i = e, u.test(i)) ? ((e, t) => {
var r;
const n = e.slice(1);
if (t.hasOwnProperty(n)) return null === (r = t[n]) || void 0 === r ? void 0 : r.title
})(e, r) : void 0 : t;
var i
};
var l = r(1649),
p = r(119);
class f extends l.a {
constructor(e) {
super({
functionName: "menuItems",
propertyName: "label",
index: e
}), this.name = "InvalidLabelError"
}
}
class m extends Error {
constructor({
index: e,
label: t,
target: r
}) {
super(p.a.error_menu_items_target({
index: e,
label: t,
target: r
})), this.name = "InvalidTargetError"
}
}
class b extends Error {
constructor(e, t) {
super(p.a.error_menu_items_depth({
labelValue: t,
maxLevels: e
})), this.name = "InvalidMenuDepth"
}
}
class g extends l.b {
constructor(e, t) {
super({
functionName: "menuItems",
propertyName: "link",
wrongValue: e,
index: t
})
}
}
const v = e => Object.entries(e).reduce((e, [t, r]) => {
if (n.a.isNil(r)) return e;
if (!n.a.isDate(r)) {
if (n.a.isObject(r)) return Object.assign(Object.assign({}, e), {
[t]: v(r)
});
if (n.a.isArray(r)) return Object.assign(Object.assign({}, e), {
[t]: r.map(v)
})
}
return Object.assign(Object.assign({}, e), {
[t]: r
})
}, {}),
h = e => {
var t, r, n;
return v({
label: e.label,
link: null === (t = e.link) || void 0 === t ? void 0 : t.href,
selected: e.selected,
target: null === (r = e.link) || void 0 === r ? void 0 : r.target,
menuItems: null === (n = e.items) || void 0 === n ? void 0 : n.map(h)
})
},
y = e => {
var t;
return v({
label: e.label || "",
link: {
href: e.link,
target: e.target
},
isVisible: !0,
isVisibleMobile: !0,
selected: e.selected,
items: null === (t = e.menuItems) || void 0 === t ? void 0 : t.map(y)
})
},
_ = {
type: ["object"],
properties: {
link: {
type: ["string", "nil"]
},
label: {
type: ["string", "nil"],
minLength: 1,
maxLength: 40
},
target: {
type: ["string", "nil"]
},
selected: {
type: ["boolean", "nil"]
},
menuItems: {
type: ["array", "nil"]
}
}
},
O = e => {
if (!e) return !0;
const t = (e, r) => {
var n;
return null === (n = null == e ? void 0 : e.every(({
target: e,
link: n = "",
label: i = n,
menuItems: a
}, o) => {
if (null != e && "_blank" !== e && "_self" !== e) throw new m({
index: void 0 === r ? o : r,
label: i,
target: e
});
return t(a, o)
})) || void 0 === n || n
};
try {
return t(e)
} catch (e) {
return Object(o.d)(e.message), !1
}
},
j = e => {
const {
setProps: t,
props: r,
platformUtils: {
linkUtils: i
},
sdkData: {
pageList: s
} = {}
} = e;
s || Object(o.d)("Page list is not passed into sdkData. Provide it in component mapper to use menuItems SDK properly.");
const u = (e, t) => {
const r = {};
try {
const t = c({
linkUtils: i,
link: e.link,
target: e.target || "_self"
});
t.href && (r.link = t.href, r.target = t.target || "_self")
} catch (r) {
throw new g(e.link || "", t)
}
const a = d({
label: e.label,
link: e.link,
pageList: s
});
if (n.a.isNil(a)) throw new f(t);
return r.label = a, n.a.isNil(e.selected) || (r.selected = e.selected), Object.assign(Object.assign({}, r), {
menuItems: (o = e.menuItems, n.a.isArray(o) ? o.map(u) : [])
});
var o
};
return {get menuItems() {
var e, t, n;
const i = null !== (t = null === (e = r.items) || void 0 === e ? void 0 : e.map(h)) && void 0 !== t ? t : [];
return null !== (n = null == i ? void 0 : i.map(u)) && void 0 !== n ? n : []
},
set menuItems(e) {
var r;
try {
t({
items: null !== (r = null == e ? void 0 : e.map(u).map(y)) && void 0 !== r ? r : []
})
} catch (e) {
Object(o.d)(e.message)
}
},
onItemMouseIn: t => Object(a.f)("onItemMouseIn", e, t, e => ({
item: h(e),
type: "itemMouseIn"
})),
onItemMouseOut: t => Object(a.f)("onItemMouseOut", e, t, e => ({
item: h(e),
type: "itemMouseOut"
})),
onItemClick: t => Object(a.f)("onItemClick", e, t, e => ({
item: h(e),
type: "itemMouseClick"
})),
onItemDblClick: t => Object(a.f)("onItemDblClick", e, t, e => ({
item: h(e),
type: "itemMouseDblClick"
}))
}
};
function w(e) {
const {
sdkData: {
isSubSubEnabled: t = !1
} = {}
} = e, r = t ? 2 : 1;
return Object(i.b)(j, (a = r, {
type: ["object"],
properties: Object.assign({}, new Array(a + 1).fill(null).reduce(e => ({
menuItems: {
type: ["array", "nil"],
items: Object.assign(Object.assign({}, _), {
properties: Object.assign(Object.assign({}, _.properties), e)
})
}
}), {
menuItems: _.properties.menuItems
}))
}), {
menuItems: [(n = r, e => {
if (!e) return !0;
const t = ({
currentLevel: e,
items: r
}) => !r || 0 === r.length || !(e < 0) && r.every(({
menuItems: r,
label: i,
link: a
}) => {
if (void 0 === r) return !0;
const o = t({
items: r,
currentLevel: e - 1
});
if (!o) throw new b(n + 1, i || a || "");
return o
});
return e.every(({
menuItems: e,
label: r,
link: i
}) => {
try {
if (!1 === t({
items: e,
currentLevel: n - 1
})) throw new b(n + 1, r || i || "")
} catch (e) {
return Object(o.d)(e.message), !1
}
return !0
})
}), O]
})(e);
var n, a
}
},
1785: function(e, t, r) {
"use strict";
r.d(t, "a", (function() {
return o
}));
var n, i = r(35),
a = r(73);
! function(e) {
e.none = "disabled", e.expand = "zoomMode", e.link = "goToLink"
}(n || (n = {}));
const o = Object(a.b)(({
setProps: e,
props: t
}) => ({get clickAction() {
const {
imageOnClickAction: e
} = t;
switch (e) {
case "disabled":
return "none";
case "goToLink":
return "link";
default:
case "zoomMode":
return "expand"
}
},
set clickAction(t) {
const r = i.a.isNil(t) ? n.none : n[t];
e({
imageOnClickAction: r
})
}
}), {
type: ["object"],
properties: {
clickAction: {
warnIfNil: !0,
type: ["string"],
enum: Object.keys(n)
}
}
})
},
1786: function(e, t, r) {
"use strict";
r.d(t, "a", (function() {
return a
}));
var n = r(174),
i = r(420);
const a = e => ({
onItemClicked(t) {
Object(n.d)("onItemClicked", e, t, ({
componentEvent: t
}) => {
const r = Object(i.a)([e.props.items[t.itemIndex]], e.platformUtils.linkUtils)[0];
return Object.assign(Object.assign({}, t), {
item: r
})
})
}
})
},
2731: function(e, t, r) {
"use strict";
var n = r(3501);
r.d(t, "a", (function() {
return n.a
}));
var i = r(3502);
r.d(t, "b", (function() {
return i.a
}));
var a = r(3505);
r.d(t, "c", (function() {
return a.a
}));
var o = r(3503);
r.d(t, "d", (function() {
return o.a
}));
var s = r(3504);
r.d(t, "f", (function() {
return s.a
}));
var u = r(3506);
r.d(t, "h", (function() {
return u.a
}));
var c = r(965);
r.d(t, "e", (function() {
return c.a
})), r.d(t, "g", (function() {
return c.b
})), r.d(t, "i", (function() {
return c.c
}))
},
2732: function(e, t, r) {
"use strict";
var n = r(138);
r.d(t, "e", (function() {
return n.a
})), r.d(t, "u", (function() {
return n.b
}));
var i = r(807);
r.d(t, "a", (function() {
return i.a
})), r.d(t, "k", (function() {
return i.b
})), r.d(t, "l", (function() {
return i.c
})), r.d(t, "m", (function() {
return i.d
})), r.d(t, "n", (function() {
return i.e
})), r.d(t, "o", (function() {
return i.f
}));
var a = r(803);
r.d(t, "c", (function() {
return a.a
})), r.d(t, "p", (function() {
return a.b
})), r.d(t, "s", (function() {
return a.c
}));
var o = r(306);
r.d(t, "d", (function() {
return o.a
})), r.d(t, "q", (function() {
return o.b
})), r.d(t, "t", (function() {
return o.c
}));
var s = r(1192);
r.d(t, "b", (function() {
return s.a
})), r.d(t, "f", (function() {
return s.b
})), r.d(t, "g", (function() {
return s.c
})), r.d(t, "h", (function() {
return s.d
})), r.d(t, "i", (function() {
return s.e
})), r.d(t, "j", (function() {
return s.f
})), r.d(t, "r", (function() {
return s.g
}))
},
2733: function(e, t, r) {
"use strict";
Object.defineProperty(t, "__esModule", {
value: !0
}), t.types = t.errors = t.parseMediaItemUri = t.createMediaItemUri = t.isValidMediaItemUri = void 0;
const n = r(1593);
Object.defineProperty(t, "types", {
enumerable: !0,
get: function() {
return n.types
}
}), Object.defineProperty(t, "errors", {
enumerable: !0,
get: function() {
return n.errors
}
});
const i = (e, t) => `wix:vector://v1/${e}/${t}`,
a = (e, t, r, n, i) => `wix:image://v1/${e}/${t}#originWidth=${r}&originHeight=${n}${i?"&watermark="+i:""}`,
o = (e, t) => `wix:document://v1/${e}/${t}`,
s = (e, t, r, n = 0, i = 0) => `wix:video://v1/${e}/${r}#posterUri=${t}&posterWidth=${n}&posterHeight=${i}`,
u = (e, t, r) => `wix:audio://v1/${e}/${t}#duration=${r}`,
c = {
vector: /^wix:vector:\/\/v1\/([^\/]+)\/([^\/]*)$/,
image: /^wix:image:\/\/v1\/([^\/]+)\/([^\/]*)#originWidth=([0-9]+)&originHeight=([0-9]+)(?:&watermark=([^\/]+))?$/,
document: /^wix:document:\/\/v1\/([^\/]+)\/([^\/]+)$/,
video: /^wix:video:\/\/v1\/([^\/]+)\/([^\/]+)#posterUri=([^\/]+)&posterWidth=([0-9]+)&posterHeight=([0-9]+)$/,
audio: /^wix:audio:\/\/v1\/([^\/]+)\/([^\/]+)#duration=([0-9]+)$/,
deprecated_video: /^wix:video:\/\/v1\/([^\/]+)\/([^\/]+)\/#posterUri=([^\/]+)&posterWidth=([0-9]+)&posterHeight=([0-9]+)$/,
deprecated_image: /^image:\/\/v1\/([^\/]+)\/([0-9]+)_([0-9]+)\/([^\/]*)$/,
deprecated_type: /^(image):/,
type: /^wix:(\w+):/,
splitExtension: /\.(?=[^.]+$)/,
emptyTitle: /^_\./
},
d = {
vector: [c.vector],
image: [c.image, c.deprecated_image],
document: [c.document],
video: [c.video, c.deprecated_video],
audio: [c.audio]
};
function l(e, t = "", r) {
const [i, a] = r.split(c.splitExtension), [o, s] = t.split(c.splitExtension);
let u;
switch (e) {
case n.types.IMAGE:
u = `${o||"_"}.${s||a}`;
break;
case n.types.DOCUMENT:
u = `${o||i}.${s||a}`;
break;
case n.types.VIDEO:
u = `${o||"_"}${s?"."+s:""}`;
break;
case n.types.AUDIO:
case n.types.VECTOR:
u = `${o||i}.${s||a}`;
break;
default:
u = ""
}
return encodeURI(u)
}
function p(e) {
return c.emptyTitle.test(e) ? "" : decodeURI(e)
}
t.createMediaItemUri = function({
mediaId: e,
type: t,
title: r,
width: c,
height: d,
posterId: p,
watermark: f,
duration: m
}) {
switch (t) {
case n.types.IMAGE:
return function({
mediaId: e,
title: t,
width: r,
height: i,
watermark: o
}) {
if (!e) return {
error: n.errors.empty_media_id
};
if ("number" != typeof i || "number" != typeof r) return {
error: n.errors.missing_width_height
};
const s = l(n.types.IMAGE, t, e);
return {
item: a(e, s, r, i, o)
}
}({
mediaId: e,
title: r,
width: c,
height: d,
watermark: f
});
case n.types.DOCUMENT:
return function({
mediaId: e,
title: t
}) {
if (!e) return {
error: n.errors.empty_media_id
};
const r = l(n.types.DOCUMENT, t, e);
return {
item: o(e, r)
}
}({
mediaId: e,
title: r
});
case n.types.VECTOR:
return function({
mediaId: e,
title: t
}) {
if (!e) return {
error: n.errors.empty_media_id
};
const r = l(n.types.VECTOR, t, e);
return {
item: i(e, r)
}
}({
mediaId: e,
title: r
});
case n.types.VIDEO:
return function({
mediaId: e,
title: t,
width: r,
height: i,
posterId: a
}) {
if (!e) return {
error: n.errors.empty_media_id
};
if (!a) return {
error: n.errors.empty_poster_id
};
if (isNaN(i || NaN) || isNaN(r || NaN)) return {
error: n.errors.missing_width_height
};
const o = e.replace("video/", ""),
u = l(n.types.VIDEO, t, o);
return {
item: s(o, a, u, r, i)
}
}({
mediaId: e,
title: r,
width: c,
height: d,
posterId: p
});
case n.types.AUDIO:
return function({
mediaId: e,
title: t,
duration: r
}) {
if (!e) return {
error: n.errors.empty_media_id
};
const i = l(n.types.AUDIO, t, e);
return {
item: u(e, i, r || 0)
}
}({
mediaId: e,
title: r,
duration: m
});
default:
return {
error: n.errors.unknown_media_type
}
}
}, t.parseMediaItemUri = function(e = "") {
if ("string" != typeof e) return {
error: n.errors.non_string_media_id
};
const [, t] = e.match(c.type) || [];
switch (t) {
case n.types.IMAGE:
return function(e) {
const [, t, r, i, a, o] = e.match(c.image) || [], s = p(r);
if (t) {
return {
type: n.types.IMAGE,
mediaId: t,
title: s,
width: parseInt(i, 10),
height: parseInt(a, 10),
watermark: o
}
}
return {
error: n.errors.bad_media_id
}
}(e);
case n.types.DOCUMENT:
return function(e) {
const [, t, r] = e.match(c.document) || [], i = p(r);
return t ? {
type: n.types.DOCUMENT,
mediaId: t,
title: i
} : {
error: n.errors.bad_media_id
}
}(e);
case n.types.VECTOR:
return function(e) {
const [, t, r] = e.match(c.vector) || [], i = p(r);
return t ? {
type: n.types.VECTOR,
mediaId: t,
title: i
} : {
error: n.errors.bad_media_id
}
}(e);
case n.types.VIDEO:
return function(e) {
const t = c.deprecated_video.test(e) ? c.deprecated_video : c.video,
[, r, i, a, o, s] = e.match(t) || [],
u = p(i);
return r && a ? {
type: n.types.VIDEO,
mediaId: r,
posterId: a,
width: parseInt(o, 10),
height: parseInt(s, 10),
title: u
} : {
error: n.errors.bad_media_id
}
}(e);
case n.types.AUDIO:
return function(e) {
const [, t, r, i] = e.match(c.audio) || [], a = p(r);
return t ? {
type: n.types.AUDIO,
mediaId: t,
title: a,
duration: parseInt(i, 10)
} : {
error: n.errors.bad_media_id
}
}(e);
default:
const [, t] = e.match(c.deprecated_type) || [];
return t ? function(e) {
const [, t, r, i, a] = e.match(c.deprecated_image) || [], o = p(a);
return t ? {
type: n.types.IMAGE,
mediaId: t,
title: o,
width: parseInt(r, 10),
height: parseInt(i, 10)
} : {
error: n.errors.bad_media_id
}
}(e) : {
error: n.errors.unknown_media_type
}
}
}, t.isValidMediaItemUri = function(e = "", t) {
const r = d[t];
return r && r.some(t => t.test(e))
}
},
275: function(e, t, r) {
"use strict";
var n = r(1774);
r.d(t, "b", (function() {
return n.a
}));
var i = r(73);
r.d(t, "a", (function() {
return i.a
})), r.d(t, "c", (function() {
return i.b
}))
},
2871: function(e, t, r) {
"use strict";
r.d(t, "a", (function() {
return a
}));
var n = r(73),
i = r(486);
const a = Object(n.b)(({
setProps: e,
props: t
}) => ({get label() {
var e;
return null === (e = t.ariaAttributes) || void 0 === e ? void 0 : e.label
},
set label(r) {
e({
ariaAttributes: Object.assign(Object.assign({}, t.ariaAttributes), {
label: Object(i.b)(r) ? void 0 : r
})
})
}
}), {
type: ["object"],
properties: {
label: {
type: ["string"],
minLength: 1,
maxLength: 1e3
}
}
})
},
2872: function(e, t, r) {
"use strict";
r.d(t, "a", (function() {
return a
}));
var n = r(35),
i = r(73);
const a = Object(i.b)(({
setProps: e,
props: t
}) => ({get hidden() {
var e;
return null === (e = t.ariaAttributes) || void 0 === e ? void 0 : e.hidden
},
set hidden(r) {
e({
ariaAttributes: Object.assign(Object.assign({}, t.ariaAttributes), {
hidden: n.a.isNil(r) ? void 0 : r
})
})
}
}), {
type: ["object"],
properties: {
hidden: {
type: ["boolean"]
}
}
})
},
2873: function(e, t, r) {
"use strict";
r.d(t, "a", (function() {
return a
}));
var n = r(35),
i = r(73);
const a = Object(i.b)(({
setProps: e,
props: t
}) => ({get pressed() {
var e;
return null === (e = t.ariaAttributes) || void 0 === e ? void 0 : e.pressed
},
set pressed(r) {
e({
ariaAttributes: Object.assign(Object.assign({}, t.ariaAttributes), {
pressed: n.a.isNil(r) ? void 0 : r
})
})
}
}), {
type: ["object"],
properties: {
pressed: {
type: ["string"],
enum: ["false", "true", "mixed"]
}
}
})
},
2874: function(e, t, r) {
"use strict";
r.d(t, "a", (function() {
return a
}));
var n = r(35),
i = r(73);
const a = Object(i.b)(({
setProps: e,
props: t
}) => ({get haspopup() {
var e;
return null === (e = t.ariaAttributes) || void 0 === e ? void 0 : e.haspopup
},
set haspopup(r) {
e({
ariaAttributes: Object.assign(Object.assign({}, t.ariaAttributes), {
haspopup: n.a.isNil(r) ? void 0 : r
})
})
}
}), {
type: ["object"],
properties: {
haspopup: {
type: ["string"],
enum: ["false", "true"]
}
}
})
},
2875: function(e, t, r) {
"use strict";
r.d(t, "a", (function() {
return a
}));
var n = r(73),
i = r(486);
const a = Object(n.b)(({
setProps: e,
props: t
}) => ({get atomic() {
var e;
return null === (e = t.ariaAttributes) || void 0 === e ? void 0 : e.atomic
},
set atomic(r) {
e({
ariaAttributes: Object.assign(Object.assign({}, t.ariaAttributes), {
atomic: Object(i.b)(r) ? void 0 : r
})
})
}
}), {
type: ["object"],
properties: {
atomic: {
type: ["boolean"]
}
}
})
},
2876: function(e, t, r) {
"use strict";
r.d(t, "a", (function() {
return a
}));
var n = r(73),
i = r(486);
const a = Object(n.b)(({
setProps: e,
props: t
}) => ({get busy() {
var e;
return null === (e = t.ariaAttributes) || void 0 === e ? void 0 : e.busy
},
set busy(r) {
e({
ariaAttributes: Object.assign(Object.assign({}, t.ariaAttributes), {
busy: Object(i.b)(r) ? void 0 : r
})
})
}
}), {
type: ["object"],
properties: {
busy: {
type: ["boolean"]
}
}
})
},
2877: function(e, t, r) {
"use strict";
r.d(t, "a", (function() {
return a
}));
var n = r(73),
i = r(486);
const a = Object(n.b)(({
setProps: e,
props: t
}) => ({get current() {
var e;
return null === (e = t.ariaAttributes) || void 0 === e ? void 0 : e.current
},
set current(r) {
e({
ariaAttributes: Object.assign(Object.assign({}, t.ariaAttributes), {
current: Object(i.b)(r) ? void 0 : r
})
})
}
}), {
type: ["object"],
properties: {
current: {
type: ["string"],
enum: ["step", "page", "true", "false", "location", "date", "time"]
}
}
})
},
2878: function(e, t, r) {
"use strict";
r.d(t, "a", (function() {
return o
}));
var n = r(73),
i = r(1198);
const a = {
describedBy: [Object(i.b)("describedBy")]
},
o = Object(n.b)(({
setProps: e,
props: t,
create$w: r
}) => ({get describedBy() {
var e;
if (!(null === (e = t.ariaAttributes) || void 0 === e ? void 0 : e.describedBy)) return;
return r()("#" + t.ariaAttributes.describedBy)
},
set describedBy(r) {
e(r ? {
ariaAttributes: Object.assign(Object.assign({}, t.ariaAttributes), {
describedBy: r.uniqueId
})
} : {
ariaAttributes: Object.assign(Object.assign({}, t.ariaAttributes), {
describedBy: void 0
})
})
}
}), {
type: ["object"],
properties: {
describedBy: {
type: ["object", "nil"]
}
}
}, a)
},
2879: function(e, t, r) {
"use strict";
r.d(t, "a", (function() {
return o
}));
var n = r(73),
i = r(1198);
const a = {
errorMessage: [Object(i.b)("errorMessage")]
},
o = Object(n.b)(({
setProps: e,
props: t,
create$w: r
}) => ({get errorMessage() {
var e;
if (!(null === (e = t.ariaAttributes) || void 0 === e ? void 0 : e.errorMessage)) return;
return r()("#" + t.ariaAttributes.errorMessage)
},
set errorMessage(r) {
e(r ? {
ariaAttributes: Object.assign(Object.assign({}, t.ariaAttributes), {
errorMessage: r.uniqueId
})
} : {
ariaAttributes: Object.assign(Object.assign({}, t.ariaAttributes), {
errorMessage: void 0
})
})
}
}), {
type: ["object"],
properties: {
errorMessage: {
type: ["object", "nil"]
}
}
}, a)
},
2880: function(e, t, r) {
"use strict";
r.d(t, "a", (function() {
return a
}));
var n = r(73),
i = r(486);
const a = Object(n.b)(({
setProps: e,
props: t
}) => ({get expanded() {
var e;
return null === (e = t.ariaAttributes) || void 0 === e ? void 0 : e.expanded
},
set expanded(r) {
e({
ariaAttributes: Object.assign(Object.assign({}, t.ariaAttributes), {
expanded: Object(i.b)(r) ? void 0 : r
})
})
}
}), {
type: ["object"],
properties: {
expanded: {
type: ["boolean"]
}
}
})
},
2881: function(e, t, r) {
"use strict";
r.d(t, "a", (function() {
return o
}));
var n = r(73),
i = r(1198);
const a = {
labelledBy: [Object(i.b)("labelledBy")]
},
o = Object(n.b)(({
setProps: e,
props: t,
create$w: r
}) => ({get labelledBy() {
var e;
if (!(null === (e = t.ariaAttributes) || void 0 === e ? void 0 : e.labelledBy)) return;
return r()("#" + t.ariaAttributes.labelledBy)
},
set labelledBy(r) {
e(r ? {
ariaAttributes: Object.assign(Object.assign({}, t.ariaAttributes), {
labelledBy: r.uniqueId
})
} : {
ariaAttributes: Object.assign(Object.assign({}, t.ariaAttributes), {
labelledBy: void 0
})
})
}
}), {
type: ["object"],
properties: {
labelledBy: {
type: ["object", "nil"]
}
}
}, a)
},
2882: function(e, t, r) {
"use strict";
r.d(t, "a", (function() {
return o
}));
var n = r(35),
i = r(77),
a = r(1052);
const o = ({
setProps: e,
props: t
}) => ({get ariaLabel() {
return t.ariaLabel
},
set ariaLabel(t) {
n.a.isString(t) ? t.length ? e({
ariaLabel: t
}) : Object(i.d)(a.a.ARIA_LABEL_EMPTY_STRING) : Object(i.d)(a.a.ARIA_LABEL_NOT_STRING)
},
remove(t) {
a.b.includes(t) ? e({
[t]: void 0
}) : Object(i.d)(a.a.REMOVING_MISSING_ATTRIBUTE)
}
})
},
2883: function(e, t, r) {
"use strict";
r.d(t, "a", (function() {
return a
}));
var n = r(73),
i = r(486);
const a = Object(n.b)(({
setProps: e,
props: t
}) => ({get live() {
var e;
return null === (e = t.ariaAttributes) || void 0 === e ? void 0 : e.live
},
set live(r) {
e({
ariaAttributes: Object.assign(Object.assign({}, t.ariaAttributes), {
live: Object(i.b)(r) ? void 0 : r
})
})
}
}), {
type: ["object"],
properties: {
live: {
type: ["string"],
enum: ["polite", "assertive"]
}
}
})
},
2884: function(e, t, r) {
"use strict";
r.d(t, "a", (function() {
return o
}));
var n = r(73),
i = r(1198);
const a = {
owns: [Object(i.a)("owns")]
},
o = Object(n.b)(({
setProps: e,
props: t,
create$w: r
}) => ({get owns() {
var e;
if (!(null === (e = t.ariaAttributes) || void 0 === e ? void 0 : e.owns)) return;
return r()("#" + t.ariaAttributes.owns)
},
set owns(r) {
e(r ? {
ariaAttributes: Object.assign(Object.assign({}, t.ariaAttributes), {
owns: r.uniqueId
})
} : {
ariaAttributes: Object.assign(Object.assign({}, t.ariaAttributes), {
owns: void 0
})
})
}
}), {
type: ["object"],
properties: {
owns: {
type: ["object", "nil"]
}
}
}, a)
},
2885: function(e, t, r) {
"use strict";
r.d(t, "a", (function() {
return o
}));
var n = r(73),
i = r(1198);
const a = {
controls: [Object(i.a)("controls")]
},
o = Object(n.b)(({
setProps: e,
props: t,
create$w: r
}) => ({get controls() {
var e;
if (!(null === (e = t.ariaAttributes) || void 0 === e ? void 0 : e.controls)) return;
return r()("#" + t.ariaAttributes.controls)
},
set controls(r) {
e(r ? {
ariaAttributes: Object.assign(Object.assign({}, t.ariaAttributes), {
controls: r.uniqueId
})
} : {
ariaAttributes: Object.assign(Object.assign({}, t.ariaAttributes), {
controls: void 0
})
})
}
}), {
type: ["object"],
properties: {
controls: {
type: ["object", "nil"]
}
}
}, a)
},
2886: function(e, t, r) {
"use strict";
r.d(t, "a", (function() {
return a
}));
var n = r(73),
i = r(486);
const a = Object(n.b)(({
setProps: e,
props: t
}) => ({get roleDescription() {
var e;
return null === (e = t.ariaAttributes) || void 0 === e ? void 0 : e.roleDescription
},
set roleDescription(r) {
e({
ariaAttributes: Object.assign(Object.assign({}, t.ariaAttributes), {
roleDescription: Object(i.b)(r) ? void 0 : r
})
})
}
}), {
type: ["object"],
properties: {
roleDescription: {
type: ["string"],
minLength: 1,
maxLength: 100
}
}
})
},
2887: function(e, t, r) {
"use strict";
r.d(t, "a", (function() {
return a
}));
var n = r(73),
i = r(486);
const a = Object(n.b)(({
setProps: e,
props: t
}) => ({get relevant() {
var e;
return null === (e = t.ariaAttributes) || void 0 === e ? void 0 : e.relevant
},
set relevant(r) {
e({
ariaAttributes: Object.assign(Object.assign({}, t.ariaAttributes), {
relevant: Object(i.b)(r) ? void 0 : r
})
})
}
}), {
type: ["object"],
properties: {
relevant: {
type: ["string"],
enum: ["additions", "additions text", "all", "removals", "text"]
}
}
})
},
2888: function(e, t, r) {
"use strict";
r.d(t, "a", (function() {
return a
}));
var n = r(73),
i = r(486);
const a = Object(n.b)(({
setProps: e,
props: t
}) => ({get role() {
return t.role
},
set role(t) {
e({
role: Object(i.b)(t) ? void 0 : t
})
}
}), {
type: ["object"],
properties: {
role: {
type: ["string"]
}
}
})
},
2889: function(e, t, r) {
"use strict";
r.d(t, "b", (function() {
return s
})), r.d(t, "a", (function() {
return u
}));
var n = r(73),
i = r(35),
a = r(77),
o = r(1052);
const s = ({
setProps: e,
props: t
}) => ({
screenReader: {get prefix() {
var e;
return null === (e = t.screenReader) || void 0 === e ? void 0 : e.prefix
},
set prefix(r) {
null === r || i.a.isString(r) ? e({
screenReader: Object.assign(Object.assign({}, t.screenReader), {
prefix: r
})
}) : Object(a.d)(Object(o.c)("prefix"))
},
get suffix() {
var e;
return null === (e = t.screenReader) || void 0 === e ? void 0 : e.suffix
},
set suffix(r) {
null === r || i.a.isString(r) ? e({
screenReader: Object.assign(Object.assign({}, t.screenReader), {
suffix: r
})
}) : Object(a.d)(Object(o.c)("suffix"))
}
}
}),
u = Object(n.b)(s, {
type: ["object"],
properties: {
prefix: {
type: ["string"],
minLength: 1,
maxLength: 1e3
},
suffix: {
type: ["string"],
minLength: 1,
maxLength: 1e3
}
}
})
},
2890: function(e, t, r) {
"use strict";
r.d(t, "a", (function() {
return a
}));
var n = r(73),
i = r(486);
const a = Object(n.b)(({
setProps: e,
props: t
}) => ({get tabIndex() {
return t.tabIndex
},
set tabIndex(t) {
e({
tabIndex: Object(i.b)(t) ? void 0 : t
})
}
}), {
type: ["object"],
properties: {
tabIndex: {
type: ["number"],
enum: [0, -1]
}
}
})
},
2943: function(e, t, r) {
"use strict";
r.d(t, "a", (function() {
return i
}));
var n = r(420);
const i = ({
metaData: e
}) => {
const t = e.compType,
r = Object(n.c)(t);
return {get currentIndex() {
return r("currentIndex")
},
get currentItem() {
return r("currentItem")
},
onCurrentItemChanged: () => r("onCurrentItemChanged")
}
}
},
306: function(e, t, r) {
"use strict";
r.d(t, "b", (function() {
return c
})), r.d(t, "a", (function() {
return s
})), r.d(t, "c", (function() {
return u
}));
var n = r(138),
i = r(803);
const a = {
externalUrl: /(^https?)|(^data)|(^blob)|(^\/\/)/,
inlineSvg: /<svg[\s\S]*>[\s\S]*<\/svg>/im
},
o = {
[n.b.VECTOR]: [a.externalUrl, a.inlineSvg], [n.b.IMAGE]: [a.externalUrl], [n.b.DOCUMENT]: [], [n.b.VIDEO]: [], [n.b.AUDIO]: [a.externalUrl]
};
function s({
mediaId: e,
type: t,
title: r,
width: n,
height: a,
posterId: s,
watermark: u,
duration: c
}) {
var d;
return (null === (d = o[t]) || void 0 === d ? void 0 : d.some(t => t.test(e))) ? {
item: e
} : i.a({
mediaId: e,
type: t,
title: r,
width: n,
height: a,
posterId: s,
watermark: u,
duration: c
})
}
function u(e, t) {
if (!Object.values(n.b).includes(t)) return {
error: n.a.unknown_media_type
};
if (o[t].some(t => t.test(e))) return {
type: t,
mediaId: e
};
const r = i.c(e);
return r.error === n.a.non_string_media_id ? r : r.error === n.a.unknown_media_type || t !== r.type ? {
error: n.a.bad_media_id
} : r
}
function c(e, t) {
return i.b(e, t) || o[t] && o[t].some(t => t.test(e))
}
},
35: function(e, t, r) {
"use strict";
var n = r(1134);
r.d(t, "a", (function() {
return n
})), r.d(t, "b", (function() {
return n.is
})), r.d(t, "c", (function() {
return n.isAbove
})), r.d(t, "d", (function() {
return n.isArray
})), r.d(t, "e", (function() {
return n.isBelow
})), r.d(t, "f", (function() {
return n.isBoolean
})), r.d(t, "g", (function() {
return n.isDate
})), r.d(t, "h", (function() {
return n.isEmail
})), r.d(t, "i", (function() {
return n.isFunction
})), r.d(t, "j", (function() {
return n.isIn
})), r.d(t, "k", (function() {
return n.isInlineSvg
})), r.d(t, "l", (function() {
return n.isInteger
})), r.d(t, "m", (function() {
return n.isNil
})), r.d(t, "n", (function() {
return n.isNumber
})), r.d(t, "o", (function() {
return n.isObject
})), r.d(t, "p", (function() {
return n.isSVG
})), r.d(t, "q", (function() {
return n.isString
})), r.d(t, "r", (function() {
return n.isUrl
})), r.d(t, "s", (function() {
return n.isWixMediaUrl
})), r.d(t, "t", (function() {
return n.isWixSVGShape
}))
},
3500: function(e, t, r) {
"use strict";
var n = r(1417);
r.d(t, "c", (function() {
return n.a
}));
var i = r(1565);
r.d(t, "d", (function() {
return i.a
}));
var a = r(62);
r.d(t, "y", (function() {
return a.a
})), r.d(t, "U", (function() {
return a.b
})), r.d(t, "mb", (function() {
return a.c
}));
var o = r(1379);
r.d(t, "R", (function() {
return o.a
}));
var s = r(1024);
r.d(t, "f", (function() {
return s.a
}));
var u = r(1766);
r.d(t, "S", (function() {
return u.a
}));
var c = r(494);
r.d(t, "e", (function() {
return c.a
}));
var d = r(379);
r.d(t, "g", (function() {
return d.a
}));
var l = r(1366);
r.d(t, "h", (function() {
return l.a
}));
var p = r(549);
r.d(t, "T", (function() {
return p.a
}));
var f = r(422);
r.d(t, "V", (function() {
return f.a
}));
var m = r(1156);
r.d(t, "cb", (function() {
return m.a
}));
var b = r(1783);
r.d(t, "fb", (function() {
return b.a
}));
var g = r(1775);
r.d(t, "gb", (function() {
return g.a
}));
var v = r(1667);
r.d(t, "hb", (function() {
return v.a
}));
var h = r(1776);
r.d(t, "lb", (function() {
return h.a
}));
var y = r(994);
r.d(t, "M", (function() {
return y.a
}));
var _ = r(1753);
r.d(t, "a", (function() {
return _.a
})), r.d(t, "b", (function() {
return _.b
})), r.d(t, "j", (function() {
return _.c
})), r.d(t, "k", (function() {
return _.d
})), r.d(t, "l", (function() {
return _.e
})), r.d(t, "m", (function() {
return _.f
})), r.d(t, "n", (function() {
return _.g
})), r.d(t, "s", (function() {
return _.h
})), r.d(t, "v", (function() {
return _.i
})), r.d(t, "w", (function() {
return _.j
})), r.d(t, "x", (function() {
return _.k
})), r.d(t, "z", (function() {
return _.l
})), r.d(t, "A", (function() {
return _.m
})), r.d(t, "D", (function() {
return _.n
})), r.d(t, "E", (function() {
return _.o
})), r.d(t, "F", (function() {
return _.p
})), r.d(t, "H", (function() {
return _.q
})), r.d(t, "J", (function() {
return _.r
})), r.d(t, "K", (function() {
return _.s
})), r.d(t, "L", (function() {
return _.t
})), r.d(t, "N", (function() {
return _.u
})), r.d(t, "W", (function() {
return _.v
})), r.d(t, "Y", (function() {
return _.w
})), r.d(t, "Z", (function() {
return _.x
})), r.d(t, "db", (function() {
return _.y
})), r.d(t, "jb", (function() {
return _.z
}));
var O = r(2731);
r.d(t, "o", (function() {
return O.a
})), r.d(t, "p", (function() {
return O.b
})), r.d(t, "q", (function() {
return O.c
})), r.d(t, "r", (function() {
return O.d
})), r.d(t, "u", (function() {
return O.e
})), r.d(t, "B", (function() {
return O.f
})), r.d(t, "G", (function() {
return O.g
})), r.d(t, "O", (function() {
return O.h
})), r.d(t, "ib", (function() {
return O.i
}));
var j = r(758);
r.d(t, "i", (function() {
return j.a
}));
var w = r(1767);
r.d(t, "C", (function() {
return w.a
}));
var I = r(1418);
r.d(t, "ab", (function() {
return I.a
}));
var N = r(1302);
r.d(t, "bb", (function() {
return N.a
}));
var x = r(1416);
r.d(t, "X", (function() {
return x.a
})), r.d(t, "eb", (function() {
return x.b
})), r.d(t, "kb", (function() {
return x.c
}));
var $ = r(1157);
r.d(t, "I", (function() {
return $.a
}));
var k = r(1158);
r.d(t, "P", (function() {
return k.a
}));
var A = r(1419);
r.d(t, "Q", (function() {
return A.a
}));
var E = r(1778);
r.d(t, "t", (function() {
return E.a
}))
},
3501: function(e, t, r) {
"use strict";
r.d(t, "a", (function() {
return c
}));
var n = r(73),
i = r(965),
a = r(1051),
o = r(1568),
s = r(1178),
u = r(1054);
const c = (e = {
supportOpacity: !0
}) => {
const {
prefix: t,
supportOpacity: r,
withoutDefaultValue: c
} = e, d = Object(o.a)({
name: a.a.backgroundColor,
prefix: t
}), l = Object(i.a)({
propertyName: "backgroundColor",
cssProperty: r ? "rgbaColor" : "rgbColor",
supportAlpha: r
});
return Object(n.b)(({
setStyles: e,
sdkData: t,
createSdkState: n
}) => {
var i;
const a = null === (i = null == t ? void 0 : t.initialSdkStyles) || void 0 === i ? void 0 : i.backgroundColor,
o = Object(s.c)(a),
[l, p] = n({
backgroundColor: c ? void 0 : a
}, "backgroundColor");
return {set backgroundColor(t) {
let n = t;
if (!r && (Object(u.a)(t) || Object(u.c)(t))) {
const [e, r, i] = Object(s.b)(t);
n = `rgb(${e}, ${r}, ${i})`
}
if ("number" == typeof o && 1 !== o) {
const e = Object(s.c)(t),
r = e ? Object(s.d)(o * e) : o;
n = Object(s.a)(n, r)
}
p({
backgroundColor: n
}), e({
[d]: n
})
},
get backgroundColor() {
return l.backgroundColor
},
reset() {
p({
backgroundColor: c ? void 0 : a
}), e({
[d]: void 0
})
}
}
}, {
type: ["object"],
properties: {
backgroundColor: {
type: ["string", "nil"]
}
}
}, {
backgroundColor: [l]
})
}
},
3502: function(e, t, r) {
"use strict";
r.d(t, "a", (function() {
return c
}));
var n = r(73),
i = r(965),
a = r(1568),
o = r(1178),
s = r(1054),
u = r(1051);
const c = (e = {
supportOpacity: !0
}) => {
const {
prefix: t,
supportOpacity: r,
withoutDefaultValue: c
} = e, d = Object(a.a)({
name: u.a.borderColor,
prefix: t
}), l = Object(i.a)({
propertyName: "borderColor",
cssProperty: r ? "rgbaColor" : "rgbColor",
supportAlpha: r
});
return Object(n.b)(({
setStyles: e,
sdkData: t,
createSdkState: n
}) => {
var i;
const a = null === (i = null == t ? void 0 : t.initialSdkStyles) || void 0 === i ? void 0 : i.borderColor,
u = Object(o.c)(a),
[l, p] = n({
borderColor: c ? void 0 : a
}, "borderColor");
return {set borderColor(t) {
let n = t;
if (!r && (Object(s.a)(t) || Object(s.c)(t))) {
const [e, r, i] = Object(o.b)(t);
n = `rgb(${e}, ${r}, ${i})`
}
if ("number" == typeof u && 1 !== u) {
const e = Object(o.c)(t),
r = e ? Object(o.d)(u * e) : u;
n = Object(o.a)(n, r)
}
p({
borderColor: n
}), e({
[d]: n
})
},
get borderColor() {
return l.borderColor
},
reset() {
p({
borderColor: c ? void 0 : a
}), e({
[d]: void 0
})
}
}
}, {
type: ["object"],
properties: {
borderColor: {
type: ["string", "nil"]
}
}
}, {
borderColor: [l]
})
}
},
3503: function(e, t, r) {
"use strict";
r.d(t, "a", (function() {
return s
}));
var n = r(73),
i = r(965),
a = r(1568),
o = r(1051);
const s = (e = {}) => {
const {
prefix: t,
withoutDefaultValue: r
} = e, s = Object(a.a)({
name: o.a.borderWidth,
prefix: t
}), u = Object(i.b)({
propertyName: "borderWidth",
cssProperty: "width"
});
return Object(n.b)(({
setStyles: e,
sdkData: t,
createSdkState: n
}) => {
var i;
const a = null === (i = null == t ? void 0 : t.initialSdkStyles) || void 0 === i ? void 0 : i.borderWidth,
[o, u] = n({
borderWidth: r ? void 0 : a
}, "borderWidth");
return {set borderWidth(t) {
u({
borderWidth: t
}), e({
[s]: t
})
},
get borderWidth() {
return o.borderWidth
},
reset() {
u({
borderWidth: a
}), e({
[s]: void 0
})
}
}
}, {
type: ["object"],
properties: {
borderWidth: {
type: ["string", "nil"]
}
}
}, {
borderWidth: [u]
})
}
},
3504: function(e, t, r) {
"use strict";
r.d(t, "a", (function() {
return s
}));
var n = r(73),
i = r(1568),
a = r(965),
o = r(1051);
const s = (e = {}) => {
const {
prefix: t,
withoutDefaultValue: r
} = e, s = Object(i.a)({
name: o.a.foregroundColor,
prefix: t
}), u = Object(a.a)({
propertyName: "foregroundColor",
cssProperty: "rgbaColor",
supportAlpha: !0
});
return Object(n.b)(({
setStyles: e,
sdkData: t,
createSdkState: n
}) => {
var i;
const [a, o] = n({
foregroundColor: r || null === (i = null == t ? void 0 : t.initialSdkStyles) || void 0 === i ? void 0 : i.foregroundColor
}, "foregroundColor");
return {set foregroundColor(t) {
o({
foregroundColor: t
}), e({
[s]: t
})
},
get foregroundColor() {
return a.foregroundColor
},
reset() {
var n;
o({
foregroundColor: r || null === (n = null == t ? void 0 : t.initialSdkStyles) || void 0 === n ? void 0 : n.foregroundColor
}), e({
[s]: void 0
})
}
}
}, {
type: ["object"],
properties: {
foregroundColor: {
type: ["string", "nil"]
}
}
}, {
foregroundColor: [u]
})
}
},
3505: function(e, t, r) {
"use strict";
r.d(t, "a", (function() {
return s
}));
var n = r(73),
i = r(965),
a = r(1568),
o = r(1051);
const s = (e = {}) => {
const {
prefix: t,
withoutDefaultValue: r
} = e, s = Object(a.a)({
name: o.a.borderRadius,
prefix: t
}), u = Object(i.b)({
propertyName: "borderRadius",
cssProperty: "radius"
});
return Object(n.b)(({
setStyles: e,
sdkData: t,
createSdkState: n
}) => {
var i;
const a = null === (i = null == t ? void 0 : t.initialSdkStyles) || void 0 === i ? void 0 : i.borderRadius,
[o, u] = n({
borderRadius: r ? void 0 : a
}, "borderRadius");
return {set borderRadius(t) {
u({
borderRadius: t
}), e({
[s]: t
})
},
get borderRadius() {
return o.borderRadius
},
reset() {
u({
borderRadius: a
}), e({
[s]: void 0
})
}
}
}, {
type: ["object"],
properties: {
borderRadius: {
type: ["string", "nil"]
}
}
}, {
borderRadius: [u]
})
}
},
3506: function(e, t, r) {
"use strict";
r.d(t, "a", (function() {
return c
}));
var n = r(73),
i = r(1568),
a = r(1054),
o = r(1178),
s = r(965),
u = r(1051);
const c = (e = {}) => {
const {
prefix: t,
withoutDefaultValue: r
} = e, c = Object(i.a)({
name: u.a.textColor,
prefix: t
}), d = Object(s.a)({
propertyName: "color",
cssProperty: "rgbColor",
supportAlpha: !1
});
return Object(n.b)(({
setStyles: e,
sdkData: t,
createSdkState: n
}) => {
var i;
const s = null === (i = null == t ? void 0 : t.initialSdkStyles) || void 0 === i ? void 0 : i.color,
[u, d] = n({
textColor: r ? void 0 : s
}, "textColor");
return {set color(t) {
let r = t;
if (Object(a.a)(t) || Object(a.c)(t)) {
const [e, n, i] = Object(o.b)(t);
r = `rgb(${e}, ${n}, ${i})`
}
d({
textColor: r
}), e({
[c]: r
})
},
get color() {
return u.textColor
},
reset() {
d({
textColor: r ? void 0 : s
}), e({
[c]: void 0
})
}
}
}, {
type: ["object"],
properties: {
color: {
type: ["string", "nil"]
}
}
}, {
color: [d]
})
}
},
379: function(e, t, r) {
"use strict";
r.d(t, "a", (function() {
return i
}));
var n = r(174);
const i = e => ({
onClick: t => Object(n.f)("onClick", e, t),
onDblClick: t => Object(n.f)("onDblClick", e, t)
})
},
4085: function(e, t, r) {
"use strict";
r.d(t, "a", (function() {
return a
}));
var n = r(73),
i = r(420);
const a = Object(n.b)(({
metaData: e
}) => {
const t = e.compType,
r = Object(i.c)(t);
return {get isPlaying() {
return r("isPlaying"), !1
},
play: () => r("play"),
pause: () => r("pause"),
onPlay: () => r("onPlay"),
onPause: () => r("onPause"),
next: () => (r("next"), Promise.reject(`next is not supported for an element of type: ${t}.`)),
previous: () => (r("previous"), Promise.reject(`previous is not supported for an element of type: ${t}.`))
}
}, {
type: ["object"],
properties: {}
})
},
4086: function(e, t, r) {
"use strict";
r.d(t, "a", (function() {
return i
}));
var n = r(73);
const i = Object(n.b)(({
props: e,
setProps: t
}) => ({get showNavigationButtons() {
return e.showNavigation
},
set showNavigationButtons(e) {
t({
showNavigation: e
})
}
}), {
type: ["object"],
properties: {
showNavigationButtons: {
type: ["boolean"]
}
}
})
},
4108: function(e, t, r) {
"use strict";
r.d(t, "a", (function() {
return a
}));
var n = r(73),
i = r(420);
const a = Object(n.b)(({
registerEvent: e,
platformUtils: {
linkUtils: t
},
props: r
}) => ({get currentItem() {
if (!r.items || 0 === r.items.length) return;
const e = r.items[r.currentIndex];
return Object(i.a)([e], t)[0]
},
get currentIndex() {
return r.currentIndex
},
onCurrentItemChanged(n) {
e("onCurrentItemChanged", e => {
const a = r.items[e.itemIndex];
[e.item] = Object(i.a)([a], t), n(e)
})
}
}), {
type: ["object"],
properties: {
onCurrentItemChanged: {
type: ["function"],
args: [{
type: ["function"]
}]
}
}
})
},
422: function(e, t, r) {
"use strict";
r.d(t, "a", (function() {
return i
}));
var n = r(174);
const i = e => ({
focus: () => e.compRef.focus(),
blur: () => e.compRef.blur(),
onFocus: t => Object(n.d)("onFocus", e, t),
onBlur: t => Object(n.d)("onBlur", e, t)
})
},
486: function(e, t, r) {
"use strict";
r.d(t, "c", (function() {
return n
})), r.d(t, "a", (function() {
return i
})), r.d(t, "b", (function() {
return a
}));
const n = e => i(e) && ("$w.Text" === e.type || "$w.CollapsibleText" === e.type),
i = e => Boolean(e.id && e.uniqueId && e.type),
a = e => null == e
},
494: function(e, t, r) {
"use strict";
r.d(t, "a", (function() {
return i
}));
var n = r(174);
const i = e => ({
onChange: t => Object(n.d)("onChange", e, t)
})
},
549: function(e, t, r) {
"use strict";
r.d(t, "a", (function() {
return n
}));
const n = ({
setProps: e,
props: t
}) => ({get enabled() {
return void 0 === t.isDisabled || !t.isDisabled
},
disable: () => (e({
isDisabled: !0
}), Promise.resolve()),
enable: () => (e({
isDisabled: !1
}), Promise.resolve())
})
},
62: function(e, t, r) {
"use strict";
r.d(t, "c", (function() {
return p
})), r.d(t, "b", (function() {
return b
})), r.d(t, "a", (function() {
return g
}));
var n = r(174),
i = r(92),
a = r(119),
o = r(77),
s = r(1565),
u = r(1379),
c = r(1766);
const d = (e, t, r) => {
const n = t.filter(t => !e.includes(t));
n.length && Object(o.d)(a.a.error_effects_input({
functionName: r,
wrongEffects: n,
allowedEffects: e
}))
},
l = e => {
const t = () => {
var t;
return (null === (t = e.effectsTriggersApi) || void 0 === t ? void 0 : t.getEffects()) || []
};
return {
effects: {get effects() {
return t()
},
get activeEffects() {
var t;
return (null === (t = e.effectsTriggersApi) || void 0 === t ? void 0 : t.getActiveEffects()) || []
},
applyEffects: r => {
var n;
d(t(), r, "applyEffects"), null === (n = e.effectsTriggersApi) || void 0 === n || n.applyEffects(...r)
},
removeEffects: r => {
var n;
d(t(), r, "removeEffects"), null === (n = e.effectsTriggersApi) || void 0 === n || n.removeEffects(...r)
},
toggleEffects: r => {
var n;
d(t(), r, "toggleEffects"), null === (n = e.effectsTriggersApi) || void 0 === n || n.toggleEffects(...r)
},
removeAllEffects: () => {
var t;
return null === (t = e.effectsTriggersApi) || void 0 === t ? void 0 : t.removeAllEffects()
}
}
}
},
p = ({
role: e,
compType: t,
isGlobal: r,
isRendered: n
}) => ({
id: e,
type: "$w." + t,
global: r(),
rendered: n()
}),
f = e => ({
onMouseIn: t => Object(n.f)("onMouseEnter", e, t),
onMouseOut: t => Object(n.f)("onMouseLeave", e, t),
removeEventHandler: (t, r) => {
const {
getSdkInstance: i
} = e;
return "string" != typeof t ? (Object(o.d)(a.a.error_type({
propertyName: "type",
functionName: "removeEventHandler",
value: t,
expectedType: "string"
})), i()) : "function" != typeof r ? (Object(o.d)(a.a.error_type({
propertyName: "handler",
functionName: "removeEventHandler",
value: r,
expectedType: "function"
})), i()) : Object(n.h)(t, e, r)
},
get rendered() {
return e.metaData.isRendered()
},
toJSON: () => p(e.metaData)
}),
m = Object(u.a)(),
b = Object(i.a)(s.a, m, f, l),
g = ({
useHiddenCollapsed: e = !0,
hasPortal: t = !1
} = {}) => Object(i.a)(s.a, f, l, e ? Object(c.a)(t) : m)
},
73: function(e, t, r) {
"use strict";
r.d(t, "a", (function() {
return a
})), r.d(t, "b", (function() {
return o
}));
var n = r(77),
i = r(1728);
function a(e, {
suppressIndexErrors: t = !1
} = {}) {
return Object(i.b)({
reportError: n.d,
reportWarning: n.f
}, e, {
suppressIndexErrors: t
})
}
function o(e, t, r = {}) {
return n => {
const i = e(n),
o = a(n.metaData.role),
s = a(n.metaData.role, {
suppressIndexErrors: !0
});
return Object.keys(i).reduce((e, a) => {
const u = Object.getOwnPropertyDescriptor(i, a),
c = {
enumerable: !0,
configurable: !0
};
return u.value ? "function" == typeof u.value ? c.value = (...e) => {
const i = t.properties[a] && t.properties[a].args,
o = r[a];
let c = !0;
return i && (c = s(e, {
type: ["array"],
items: i
}, a)), c && o && (c = o.every(t => t(e, n))), c ? u.value(...e) : void 0
} : c.value = u.value : (u.get && (c.get = () => i[a]), u.set && (c.set = e => {
const s = r[a];
let u = !0;
t.properties[a] && (u = o(e, t.properties[a], a)), u && s && (u = s.every(t => t(e, n))), u && (i[a] = e)
})), Object.defineProperty(e, a, c), e
}, {})
}
}
},
738: function(e, t, r) {
"use strict";
var n = r(77);
r.d(t, "a", (function() {
return n.a
})), r.d(t, "b", (function() {
return n.b
})), r.d(t, "c", (function() {
return n.c
})), r.d(t, "d", (function() {
return n.d
})), r.d(t, "e", (function() {
return n.e
})), r.d(t, "f", (function() {
return n.f
}))
},
758: function(e, t, r) {
"use strict";
r.d(t, "a", (function() {
return x
}));
var n = r(92),
i = r(2871),
a = r(2878),
o = r(2881),
s = r(2875),
u = r(2876),
c = r(2877),
d = r(2880),
l = r(2883),
p = r(2884),
f = r(2885),
m = r(2886),
b = r(2887),
g = r(2879),
v = r(2872),
h = r(2873),
y = r(2874),
_ = r(2882),
O = r(2889),
j = r(2888),
w = r(2890);
const I = {
enableAriaLabel: i.a,
enableAriaDescribedBy: a.a,
enableAriaLabelledBy: o.a,
enableAriaAtomic: s.a,
enableAriaBusy: u.a,
enableAriaCurrent: c.a,
enableAriaExpanded: d.a,
enableAriaLive: l.a,
enableAriaOwns: p.a,
enableAriaControls: f.a,
enableAriaRoleDescription: m.a,
enableAriaRelevant: b.a,
enableAriaErrorMessage: g.a,
enableAriaHidden: v.a,
enableAriaPressed: h.a,
enableAriaHaspopup: y.a
},
N = {
enableLegacyAriaLabel: _.a,
enableScreenReader: O.b,
enableRole: j.a,
enableTabIndex: w.a
},
x = ({
enableLegacyAriaLabel: e = !1,
enableAriaLabel: t = !0,
enableAriaDescribedBy: r = !0,
enableAriaLabelledBy: i = !0,
enableAriaAtomic: a = !1,
enableAriaBusy: o = !1,
enableAriaHidden: s = !1,
enableAriaPressed: u = !1,
enableAriaHaspopup: c = !1,
enableAriaCurrent: d = !1,
enableAriaExpanded: l = !1,
enableAriaLive: p = !1,
enableAriaOwns: f = !1,
enableAriaControls: m = !1,
enableAriaRoleDescription: b = !1,
enableAriaRelevant: g = !1,
enableRole: v = !1,
enableTabIndex: h = !1,
enableAriaErrorMessage: y = !1,
enableScreenReader: _ = !1
} = {}) => O => {
const j = [],
w = {
enableAriaLabel: t,
enableAriaDescribedBy: r,
enableAriaLabelledBy: i,
enableAriaAtomic: a,
enableAriaBusy: o,
enableAriaCurrent: d,
enableAriaExpanded: l,
enableAriaLive: p,
enableAriaOwns: f,
enableAriaControls: m,
enableAriaRoleDescription: b,
enableAriaRelevant: g,
enableAriaErrorMessage: y,
enableAriaHidden: s,
enableAriaPressed: u,
enableAriaHaspopup: c
},
x = {
enableLegacyAriaLabel: e,
enableScreenReader: _,
enableRole: v,
enableTabIndex: h
};
if (Object.values(w).some(e => e)) {
const e = (e => {
const t = [];
Object.entries(e).forEach(([e, r]) => r && I[e] && t.push(I[e]));
return e => ({
ariaAttributes: Object(n.a)(...t)(e)
})
})(w);
j.push(e)
}
Object.entries(x).forEach(([e, t]) => t && N[e] && j.push(N[e]));
return {
accessibility: Object(n.a)(...j)(O)
}
}
},
77: function(e, t, r) {
"use strict";
r.d(t, "a", (function() {
return n
})), r.d(t, "c", (function() {
return i
})), r.d(t, "b", (function() {
return a
})), r.d(t, "d", (function() {
return o
})), r.d(t, "f", (function() {
return s
})), r.d(t, "e", (function() {
return u
}));
const n = "Wix code SDK error:",
i = "Wix code SDK warning:",
a = "Wix code SDK message:",
o = e => {
console.error(`${n} ${e}`)
},
s = e => {
console.warn(`${i} ${e}`)
},
u = e => {
console.log(`${a} ${e}`)
}
},
803: function(e, t, r) {
"use strict";
r.d(t, "b", (function() {
return b
})), r.d(t, "a", (function() {
return f
})), r.d(t, "c", (function() {
return m
}));
var n = r(138);
const i = (e, t) => `wix:vector://v1/${e}/${t}`,
a = (e, t, r, n, i) => `wix:image://v1/${e}/${t}#originWidth=${r}&originHeight=${n}${i?"&watermark="+i:""}`,
o = (e, t) => `wix:document://v1/${e}/${t}`,
s = (e, t, r, n = 0, i = 0) => `wix:video://v1/${e}/${r}#posterUri=${t}&posterWidth=${n}&posterHeight=${i}`,
u = (e, t, r) => `wix:audio://v1/${e}/${t}#duration=${r}`,
c = {
vector: /^wix:vector:\/\/v1\/([^\/]+)\/([^\/]*)$/,
image: /^wix:image:\/\/v1\/([^\/]+)\/([^\/]*)#originWidth=([0-9]+)&originHeight=([0-9]+)(?:&watermark=([^\/]+))?$/,
document: /^wix:document:\/\/v1\/([^\/]+)\/([^\/]+)$/,
video: /^wix:video:\/\/v1\/([^\/]+)\/([^\/]+)#posterUri=([^\/]+)&posterWidth=([0-9]+)&posterHeight=([0-9]+)$/,
audio: /^wix:audio:\/\/v1\/([^\/]+)\/([^\/]+)#duration=([0-9]+)$/,
deprecated_video: /^wix:video:\/\/v1\/([^\/]+)\/([^\/]+)\/#posterUri=([^\/]+)&posterWidth=([0-9]+)&posterHeight=([0-9]+)$/,
deprecated_image: /^image:\/\/v1\/([^\/]+)\/([0-9]+)_([0-9]+)\/([^\/]*)$/,
deprecated_type: /^(image):/,
type: /^wix:(\w+):/,
splitExtension: /\.(?=[^.]+$)/,
emptyTitle: /^_\./
},
d = {
vector: [c.vector],
image: [c.image, c.deprecated_image],
document: [c.document],
video: [c.video, c.deprecated_video],
audio: [c.audio]
};
function l(e, t = "", r) {
const [i, a] = r.split(c.splitExtension), [o, s] = t.split(c.splitExtension);
let u;
switch (e) {
case n.b.IMAGE:
u = `${o||"_"}.${s||a}`;
break;
case n.b.DOCUMENT:
u = `${o||i}.${s||a}`;
break;
case n.b.VIDEO:
u = `${o||"_"}${s?"."+s:""}`;
break;
case n.b.AUDIO:
case n.b.VECTOR:
u = `${o||i}.${s||a}`;
break;
default:
u = ""
}
return encodeURI(u)
}
function p(e) {
return c.emptyTitle.test(e) ? "" : decodeURI(e)
}
function f({
mediaId: e,
type: t,
title: r,
width: c,
height: d,
posterId: p,
watermark: f,
duration: m
}) {
switch (t) {
case n.b.IMAGE:
return function({
mediaId: e,
title: t,
width: r,
height: i,
watermark: o
}) {
if (!e) return {
error: n.a.empty_media_id
};
if ("number" != typeof i || "number" != typeof r) return {
error: n.a.missing_width_height
};
const s = l(n.b.IMAGE, t, e);
return {
item: a(e, s, r, i, o)
}
}({
mediaId: e,
title: r,
width: c,
height: d,
watermark: f
});
case n.b.DOCUMENT:
return function({
mediaId: e,
title: t
}) {
if (!e) return {
error: n.a.empty_media_id
};
const r = l(n.b.DOCUMENT, t, e);
return {
item: o(e, r)
}
}({
mediaId: e,
title: r
});
case n.b.VECTOR:
return function({
mediaId: e,
title: t
}) {
if (!e) return {
error: n.a.empty_media_id
};
const r = l(n.b.VECTOR, t, e);
return {
item: i(e, r)
}
}({
mediaId: e,
title: r
});
case n.b.VIDEO:
return function({
mediaId: e,
title: t,
width: r,
height: i,
posterId: a
}) {
if (!e) return {
error: n.a.empty_media_id
};
if (!a) return {
error: n.a.empty_poster_id
};
if (isNaN(i || NaN) || isNaN(r || NaN)) return {
error: n.a.missing_width_height
};
const o = e.replace("video/", ""),
u = l(n.b.VIDEO, t, o);
return {
item: s(o, a, u, r, i)
}
}({
mediaId: e,
title: r,
width: c,
height: d,
posterId: p
});
case n.b.AUDIO:
return function({
mediaId: e,
title: t,
duration: r
}) {
if (!e) return {
error: n.a.empty_media_id
};
const i = l(n.b.AUDIO, t, e);
return {
item: u(e, i, r || 0)
}
}({
mediaId: e,
title: r,
duration: m
});
default:
return {
error: n.a.unknown_media_type
}
}
}
function m(e = "") {
if ("string" != typeof e) return {
error: n.a.non_string_media_id
};
const [, t] = e.match(c.type) || [];
switch (t) {
case n.b.IMAGE:
return function(e) {
const [, t, r, i, a, o] = e.match(c.image) || [], s = p(r);
if (t) {
return {
type: n.b.IMAGE,
mediaId: t,
title: s,
width: parseInt(i, 10),
height: parseInt(a, 10),
watermark: o
}
}
return {
error: n.a.bad_media_id
}
}(e);
case n.b.DOCUMENT:
return function(e) {
const [, t, r] = e.match(c.document) || [], i = p(r);
return t ? {
type: n.b.DOCUMENT,
mediaId: t,
title: i
} : {
error: n.a.bad_media_id
}
}(e);
case n.b.VECTOR:
return function(e) {
const [, t, r] = e.match(c.vector) || [], i = p(r);
return t ? {
type: n.b.VECTOR,
mediaId: t,
title: i
} : {
error: n.a.bad_media_id
}
}(e);
case n.b.VIDEO:
return function(e) {
const t = c.deprecated_video.test(e) ? c.deprecated_video : c.video,
[, r, i, a, o, s] = e.match(t) || [],
u = p(i);
return r && a ? {
type: n.b.VIDEO,
mediaId: r,
posterId: a,
width: parseInt(o, 10),
height: parseInt(s, 10),
title: u
} : {
error: n.a.bad_media_id
}
}(e);
case n.b.AUDIO:
return function(e) {
const [, t, r, i] = e.match(c.audio) || [], a = p(r);
return t ? {
type: n.b.AUDIO,
mediaId: t,
title: a,
duration: parseInt(i, 10)
} : {
error: n.a.bad_media_id
}
}(e);
default:
const [, t] = e.match(c.deprecated_type) || [];
return t ? function(e) {
const [, t, r, i, a] = e.match(c.deprecated_image) || [], o = p(a);
return t ? {
type: n.b.IMAGE,
mediaId: t,
title: o,
width: parseInt(r, 10),
height: parseInt(i, 10)
} : {
error: n.a.bad_media_id
}
}(e) : {
error: n.a.unknown_media_type
}
}
}
function b(e = "", t) {
const r = d[t];
return r && r.some(t => t.test(e))
}
},
807: function(e, t, r) {
"use strict";
r.d(t, "a", (function() {
return o
})), r.d(t, "e", (function() {
return s
})), r.d(t, "f", (function() {
return u
})), r.d(t, "c", (function() {
return c
})), r.d(t, "d", (function() {
return b
})), r.d(t, "b", (function() {
return g
}));
var n = r(7),
i = r.n(n),
a = r(306);
const o = {
loop: !0,
preload: "auto",
muted: !0,
isVideoEnabled: !0
},
s = (e = {}) => {
const {
bgEffectName: t = ""
} = e.backgroundMedia || {};
return {
hasBgScrollEffect: t ? "true" : "",
bgEffectName: t
}
},
u = e => {
var t, r;
const {
fillLayers: n = {}
} = e;
return null === (r = null === (t = null == n ? void 0 : n.video) || void 0 === t ? void 0 : t.videoInfo) || void 0 === r ? void 0 : r.videoId
},
c = e => {
const t = e.match(/(?:\/|^)([0-9a-fA-F_]+)(?:\/|$)/);
return t && t.length > 1 ? t[1] : ""
},
d = (e, t) => e[t] || e[i.a.camelCase(t)],
l = e => e.replace(/^(.*[\/])/, ""),
p = e => i.a.map(e.image, e => l(e.url)),
f = (e, t) => {
const r = d(e, "file_input"),
n = d(e, "file_output"),
a = c(e.fileUrl || e.file_name),
o = ((e, t) => {
if (e.length <= t) return e;
const r = e.split(""),
n = e.length - t + "...".length,
i = (e.lastIndexOf(".") > e.length - n - 3 ? e.lastIndexOf(".") : e.length - 1) - n - 3;
return r.splice(i, n, "..."), r.join("")
})(e.title, 100),
s = (e => {
const t = i.a.filter(e.video, {
format: "mp4"
}),
r = i.a.find(e.storyboard, {
format: "mp4"
}),
n = i.a.map(t, (function(e) {
return i.a.pick(e, ["width", "height", "quality", "url"])
}));
return r && n.push({
quality: "storyboard",
width: r.width,
height: r.height,
url: r.url
}), n
})(n),
u = (e => {
const t = d(e, "adaptive_video");
return i.a.map(t, e => ({
format: e.format,
url: e.url
}))
})(n),
f = (e => {
const t = [];
return e.tags && i.a.includes(e.tags, "_mp4_alpha") && t.push("alpha"), i.a.isEmpty(t) ? null : t
})(e),
m = i.a.head(n.image),
b = {
type: "Image",
width: m.width,
height: m.height,
uri: l(m.url),
description: t.path ? t.path : void 0
};
return {
type: "WixVideo",
title: o,
videoId: a,
duration: +(r.duration / 1e3).toFixed(2),
posterImageRef: b,
generatedPosters: p(n),
qualities: s,
adaptiveVideo: u,
artist: {
name: e.vendor || "",
id: e.reference || ""
},
hasAudio: -1 !== d(i.a.head(n.video), "audio_bitrate"),
fps: i.a.get(i.a.head(n.video), "fps", "").toString(),
mediaFeatures: f || []
}
},
m = (e, t) => {
e = (e => e.replace("video/", ""))(e);
fetch(`https://files.wix.com/site/media/files/${e}/info`).then(e => e.json()).then(e => {
const r = ((e, t) => {
const r = {
animatePoster: "none",
autoPlay: !0,
playbackRate: 1,
fittingType: "fill",
hasBgScrollEffect: "",
bgEffectName: "",
isVideoDataExists: "1",
alignType: "center",
videoFormat: "mp4",
playerType: "html5",
isEditorMode: !1,
isViewerMode: !0,
videoHeight: e.file_input.height,
videoWidth: e.file_input.width
},
n = f(e, t);
return Object.assign({
mediaObject: Object.assign(Object.assign({}, r), n)
}, o)
})(e, {});
t(r)
})
},
b = e => {
if (Object(a.b)(e, "video")) {
const t = Object(a.c)(e, "video");
return t.error ? null : Object.assign(Object.assign({}, (({
mediaId: e,
posterId: t,
width: r,
height: n,
title: i
}) => ({
type: "WixVideo",
videoId: e,
posterImageRef: {
type: "Image",
uri: t,
width: r,
height: n,
title: i
}
}))(t)), {
name: t.title,
fileName: t.title,
type: "WixVideo"
})
} {
const t = Object(a.c)(e, "image");
return t.error ? null : Object.assign(Object.assign({}, t), {
name: t.title,
type: "Image"
})
}
},
g = (e, t) => {
e.videoId ? m(e.videoId, t) : t()
}
},
92: function(e, t, r) {
"use strict";
function n(...e) {
return t => {
const r = {};
for (let n = 0; n < e.length; n++) {
const i = e[n](t),
a = Object.keys(i);
for (let e = 0; e < a.length; e++) {
const t = a[e],
n = Object.getOwnPropertyDescriptor(i, t);
Object.defineProperty(r, t, n)
}
}
return r
}
}
r.d(t, "a", (function() {
return n
}))
},
94: function(e, t, r) {
"use strict";
r.d(t, "b", (function() {
return n
})), r.d(t, "a", (function() {
return a.a
}));
var n = {};
r.r(n), r.d(n, "nilAssignmentMessage", (function() {
return o
})), r.d(n, "missingFieldMessage", (function() {
return s
})), r.d(n, "invalidStringLengthMessage", (function() {
return u
})), r.d(n, "invalidNumberBoundsMessage", (function() {
return c
})), r.d(n, "invalidTypeMessage", (function() {
return d
})), r.d(n, "invalidEnumValueMessage", (function() {
return l
})), r.d(n, "patternMismatchMessage", (function() {
return p
})), r.d(n, "noneImageInGallery", (function() {
return f
})), r.d(n, "invalidSlideInputMessage", (function() {
return m
})), r.d(n, "invalidStateInputMessage", (function() {
return b
})), r.d(n, "invalidImageInGalleryWithIndex", (function() {
return g
})), r.d(n, "invalidFileTypeForFileLimit", (function() {
return v
})), r.d(n, "unsupportedLinkType", (function() {
return h
})), r.d(n, "invalidTargetWithIndex", (function() {
return y
})), r.d(n, "unsupportedFunctionForType", (function() {
return _
})), r.d(n, "invalidSvgValue", (function() {
return O
})), r.d(n, "invalidMenuItemMessage", (function() {
return j
})), r.d(n, "invalidOption", (function() {
return w
})), r.d(n, "onlyGetter", (function() {
return I
})), r.d(n, "invalidFormatMessageWithHint", (function() {
return N
})), r.d(n, "invalidObjectFormatWithCustomMessage", (function() {
return x
})), r.d(n, "invalidOptionFields", (function() {
return $
})), r.d(n, "invalidItemLink", (function() {
return k
})), r.d(n, "unsupportedPropertyMessageWithHint", (function() {
return A
})), r.d(n, "nonExistingItem", (function() {
return E
})), r.d(n, "invalidArrayLength", (function() {
return C
}));
var i = r(35),
a = r(119);
const o = ({
compName: e,
functionName: t,
propertyName: r,
index: n
}) => i.a.isNumber(n) ? a.a.warning_not_null_with_index({
propertyName: r,
functionName: t,
index: n
}) : e ? a.a.warning_not_null_for_comp_name({
compName: e,
functionName: t,
propertyName: r
}) : a.a.warning_not_null({
functionName: t,
propertyName: r
}),
s = ({
functionName: e,
propertyName: t,
index: r
}) => i.a.isNumber(r) ? a.a.error_mandatory_val_with_index({
functionName: e,
propertyName: t,
index: r
}) : a.a.error_mandatory_val({
functionName: e,
propertyName: t
}),
u = ({
functionName: e,
propertyName: t,
value: r,
maximum: n,
minimum: o,
index: s
}) => o && n ? o === n ? i.a.isNumber(s) ? a.a.error_length_accept_single_value_with_index({
functionName: e,
propertyName: t,
value: r,
expectedValue: o,
index: s
}) : a.a.error_length_accept_single_value({
functionName: e,
propertyName: t,
value: r,
expectedValue: o
}) : i.a.isNumber(s) ? a.a.error_length_in_range_with_index({
functionName: e,
propertyName: t,
value: r,
maximum: n,
minimum: o,
index: s
}) : a.a.error_length_in_range({
functionName: e,
propertyName: t,
value: r,
maximum: n,
minimum: o
}) : !o && n ? i.a.isNumber(s) ? a.a.error_length_exceeds_with_index({
functionName: e,
propertyName: t,
value: r,
maximum: n,
index: s
}) : a.a.error_length_exceeds({
functionName: e,
propertyName: t,
value: r,
maximum: n
}) : i.a.isNumber(s) ? a.a.error_length_less_than_with_index({
functionName: e,
propertyName: t,
value: r,
minimum: o,
index: s
}) : a.a.error_length_less_than({
functionName: e,
propertyName: t,
value: r,
minimum: o
}),
c = ({
functionName: e,
propertyName: t,
value: r,
minimum: n,
maximum: o,
index: s
}) => n && o ? n === o ? i.a.isNumber(s) ? a.a.error_accept_single_value_with_index({
functionName: e,
propertyName: t,
expectedValue: n,
value: r,
index: s
}) : a.a.error_accept_single_value({
functionName: e,
propertyName: t,
expectedValue: n,
value: r
}) : i.a.isNumber(s) ? a.a.error_range_with_index({
functionName: e,
propertyName: t,
value: r,
maximum: o,
minimum: n,
index: s
}) : a.a.error_range({
functionName: e,
propertyName: t,
value: r,
maximum: o,
minimum: n
}) : !n && o ? i.a.isNumber(s) ? a.a.error_less_than_with_index({
functionName: e,
propertyName: t,
maximum: o,
value: r,
index: s
}) : a.a.error_less_than({
functionName: e,
propertyName: t,
maximum: o,
value: r
}) : i.a.isNumber(s) ? a.a.error_larger_than_with_index({
functionName: e,
propertyName: t,
value: r,
minimum: n,
index: s
}) : a.a.error_larger_than({
functionName: e,
propertyName: t,
value: r,
minimum: n
}),
d = ({
functionName: e,
propertyName: t,
types: r,
value: n,
index: o
}) => {
const s = r.map(e => "nil" === e ? "null" : e).join(",");
return i.a.isNumber(o) ? a.a.error_type_with_index({
functionName: e,
index: o,
propertyName: t,
value: n,
expectedType: s
}) : a.a.error_type({
functionName: e,
propertyName: t,
value: n,
expectedType: s
})
},
l = ({
functionName: e,
propertyName: t,
value: r,
enum: n,
index: o
}) => {
const s = `from (${n.join(",")})`;
return i.a.isNumber(o) ? a.a.error_type_with_index({
functionName: e,
propertyName: t,
value: r,
expectedType: s,
index: o
}) : a.a.error_type({
functionName: e,
propertyName: t,
value: r,
expectedType: s
})
},
p = ({
functionName: e,
propertyName: t,
value: r,
index: n
}) => i.a.isNumber(n) ? a.a.error_bad_format_with_index({
functionName: e,
propertyName: t,
value: r,
index: n
}) : a.a.error_bad_format({
functionName: e,
propertyName: t,
value: r
}),
f = e => a.a.warning_non_images_in_gallery({
galleryId: e
}),
m = ({
functionName: e,
propertyName: t,
slideShowId: r,
value: n,
minimum: i,
maximum: o
}) => a.a.error_slide_input({
functionName: e,
propertyName: t,
slideShowId: r,
value: n,
maximum: o,
minimum: i
}),
b = ({
functionName: e,
propertyName: t,
stateBoxId: r,
value: n
}) => a.a.error_state_input({
functionName: e,
propertyName: t,
stateBoxId: r,
value: n
}),
g = ({
wrongValue: e,
propertyName: t,
index: r
}) => a.a.error_bad_image_format_with_index({
propertyName: t,
index: r,
wrongValue: e
}),
v = ({
propertyName: e
}) => a.a.error_invalid_type_for_file_limit({
propertyName: e
}),
h = ({
functionName: e,
wrongValue: t,
index: r
}) => a.a.error_supported_link_type_with_index({
functionName: e,
wrongValue: t,
index: r
}),
y = ({
functionName: e,
wrongValue: t,
index: r
}) => a.a.error_invalid_target_with_index({
functionName: e,
wrongValue: t,
index: r
}),
_ = ({
functionName: e,
type: t
}) => a.a.warning_unsupported_function_for_type({
functionName: e,
type: t
}),
O = e => a.a.error_bad_svg_format({
propertyName: "src",
value: e
}),
j = ({
propertyName: e,
value: t,
index: r
}) => i.a.isNumber(r) ? a.a.error_bad_menu_item_format_with_index({
propertyName: e,
value: t,
index: r
}) : a.a.error_bad_menu_item_format({
propertyName: e,
value: t
}),
w = ({
propertyName: e,
wrongValue: t,
index: r
}) => a.a.warning_invalid_option({
propertyName: e,
wrongValue: t,
index: r
}),
I = ({
propertyName: e,
compType: t
}) => a.a.error_only_getter({
propertyName: e,
compType: t
}),
N = ({
propertyName: e,
functionName: t,
wrongValue: r,
hint: n
}) => a.a.error_bad_format_with_hint({
propertyName: e,
functionName: t,
wrongValue: r,
hint: n
}),
x = ({
keyName: e,
propertyName: t,
functionName: r,
wrongValue: n,
message: i
}) => a.a.error_object_bad_format({
keyName: e,
propertyName: t,
functionName: r,
wrongValue: n,
message: i
}),
$ = ({
propertyName: e,
wrongValue: t,
fields: r,
index: n
}) => a.a.error_invalid_option_fields({
propertyName: e,
wrongValue: t,
fields: r,
index: n
}),
k = ({
functionName: e,
propertyName: t,
index: r
}) => a.a.error_item_external_link({
propertyName: t,
functionName: e,
index: r
}),
A = ({
propertyName: e,
hint: t
}) => a.a.error_unsupported_property_with_hint({
propertyName: e,
hint: t
}),
E = ({
functionName: e,
propertyName: t,
value: r
}) => a.a.error_item_not_found({
propertyName: t,
functionName: e,
value: r
}),
C = ({
functionName: e,
propertyName: t,
value: r,
arrayLength: n
}) => a.a.error_array_length({
propertyName: t,
functionName: e,
value: r,
arrayLength: n
})
},
965: function(e, t, r) {
"use strict";
r.d(t, "a", (function() {
return s
})), r.d(t, "b", (function() {
return u
})), r.d(t, "c", (function() {
return c
}));
var n = r(119),
i = r(77),
a = r(1054),
o = r(35);
const s = ({
propertyName: e,
cssProperty: t,
supportAlpha: r
}) => (o, s) => Object(a.d)(o) ? (r || c({
propertyName: e,
color: o,
api: s
}), !0) : (Object(i.d)(n.a.error_invalid_css_value_multiple_expected_formats({
propertyName: e,
cssProperty: t,
infoLink: "https://www.wix.com/corvid/new-reference/$w/style/" + e.toLowerCase(),
compName: s.metaData.role,
exampleFormats: r ? '"red", "#FF0000", "#FF000000", "rgb(225, 0, 0)" or "rgba(225, 0, 0, 0)"' : '"red", "#FF0000", or "rgb(225, 0, 0)"'
})), !1),
u = ({
propertyName: e,
cssProperty: t
}) => (r, a) => !! function(e) {
if (o.a.isString(e)) {
const t = e.endsWith("px"),
r = e.slice(0, e.length - 2),
n = /^\d*$/.test(r);
return t && n && parseInt(r, 10)
}
return !1
}(r) || (Object(i.d)(n.a.error_invalid_css_value({
propertyName: e,
cssProperty: t,
infoLink: "https://www.wix.com/corvid/new-reference/$w/style/" + e.toLowerCase(),
compName: a.metaData.role,
exampleFormat: "1px"
})), !1),
c = ({
propertyName: e,
color: t,
api: r
}) => {
(Object(a.a)(t) || Object(a.c)(t)) && Object(i.f)(n.a.warning_color_casting_performed({
propertyName: e,
compName: r.metaData.role,
infoLink: "https://www.wix.com/corvid/new-reference/$w/style/" + e.toLowerCase()
}))
}
},
994: function(e, t, r) {
"use strict";
r.d(t, "a", (function() {
return b
}));
var n = r(73),
i = r(77),
a = r(94),
o = r(3501),
s = r(3502),
u = r(3503),
c = r(3504),
d = r(3505),
l = r(3506);
function p(...e) {
const t = (r = "reset", (...e) => {
const t = {},
n = {
[r](e) {
if ("function" == typeof t[e]) return t[e](e)
}
};
return e.forEach(e => {
Object.keys(e).filter(e => e !== r).map(t => ({
key: t,
descriptor: Object.getOwnPropertyDescriptor(e, t)
})).forEach(({
key: i,
descriptor: a
}) => {
"function" == typeof e[r] && (t[i] = e[r]), Object.defineProperty(n, i, a)
})
}), n
});
var r;
return r => {
const n = e.map(e => e(r)),
i = t(...n);
return Object.defineProperty(i, "reset", {
enumerable: !1
}), i
}
}
const f = {
BackgroundColor: o.a,
BorderColor: s.a,
BorderWidth: u.a,
ForegroundColor: c.a,
BorderRadius: d.a,
TextColor: l.a
},
m = {
BackgroundColor: {
supportOpacity: !0
},
BorderColor: {
supportOpacity: !0
},
BorderWidth: {},
ForegroundColor: {
supportOpacity: !0
},
BorderRadius: {},
TextColor: {}
},
b = (e, t) => {
const r = Object.keys(e).filter(t => e[t]).map(r => {
const n = "boolean" != typeof e[r] ? e[r] : m[r];
return f[r]({
prefix: null == t ? void 0 : t.cssVarPrefix,
withoutDefaultValue: n.withoutDefaultValue,
supportOpacity: n.supportOpacity
})
});
return Object(n.b)((e => t => {
const r = e(t);
return r.removeProperty = e => {
var t;
if (e in r) null === (t = r.reset) || void 0 === t || t.call(r, e);
else {
const t = Object.keys(r).filter(e => "removeProperty" !== e);
Object(i.d)(a.b.invalidEnumValueMessage({
functionName: "removeProperty",
propertyName: "propertyName",
value: e,
enum: t,
index: void 0
}))
}
}, {get style() {
return r
}
}
})(p(...r)), {
type: ["object"],
properties: {
style: {
type: ["object"]
}
}
})
}
}
}
]);
//# sourceMappingURL=https://static.parastorage.com/services/editor-elements-library/dist/rb_wixui.corvid~core.2329348a.chunk.min.js.map
//# sourceURL=webpack-internal://
#10 JavaScript::Eval (size: 3274) - SHA256: 4d4c1c52c87c2c79c7f631b0a9fd57f3ca8a11857551cea302a91ca62615bb36
! function(e, t) {
"object" == typeof exports && "object" == typeof module ? module.exports = t() : "function" == typeof define && define.amd ? define("rb_wixui.corvid[HtmlComponent]", [], t) : "object" == typeof exports ? exports["rb_wixui.corvid[HtmlComponent]"] = t() : e["rb_wixui.corvid[HtmlComponent]"] = t()
}("undefined" != typeof self ? self : this, (function() {
return function(e) {
function t(t) {
for (var n, i, u = t[0], c = t[1], l = t[2], a = 0, p = []; a < u.length; a++) i = u[a], Object.prototype.hasOwnProperty.call(o, i) && o[i] && p.push(o[i][0]), o[i] = 0;
for (n in c) Object.prototype.hasOwnProperty.call(c, n) && (e[n] = c[n]);
for (f && f(t); p.length;) p.shift()();
return s.push.apply(s, l || []), r()
}
function r() {
for (var e, t = 0; t < s.length; t++) {
for (var r = s[t], n = !0, u = 1; u < r.length; u++) {
var c = r[u];
0 !== o[c] && (n = !1)
}
n && (s.splice(t--, 1), e = i(i.s = r[0]))
}
return e
}
var n = {},
o = {
72: 0
},
s = [];
function i(t) {
if (n[t]) return n[t].exports;
var r = n[t] = {
i: t,
l: !1,
exports: {}
};
return e[t].call(r.exports, r, r.exports, i), r.l = !0, r.exports
}
i.m = e, i.c = n, i.d = function(e, t, r) {
i.o(e, t) || Object.defineProperty(e, t, {
enumerable: !0,
get: r
})
}, i.r = function(e) {
"undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(e, Symbol.toStringTag, {
value: "Module"
}), Object.defineProperty(e, "__esModule", {
value: !0
})
}, i.t = function(e, t) {
if (1 & t && (e = i(e)), 8 & t) return e;
if (4 & t && "object" == typeof e && e && e.__esModule) return e;
var r = Object.create(null);
if (i.r(r), Object.defineProperty(r, "default", {
enumerable: !0,
value: e
}), 2 & t && "string" != typeof e)
for (var n in e) i.d(r, n, function(t) {
return e[t]
}.bind(null, n));
return r
}, i.n = function(e) {
var t = e && e.__esModule ? function() {
return e.default
} : function() {
return e
};
return i.d(t, "a", t), t
}, i.o = function(e, t) {
return Object.prototype.hasOwnProperty.call(e, t)
}, i.p = "https://static.parastorage.com/services/editor-elements-library/dist/";
var u = ("undefined" != typeof self ? self : this).webpackJsonp__wix_editor_elements_library = ("undefined" != typeof self ? self : this).webpackJsonp__wix_editor_elements_library || [],
c = u.push.bind(u);
u.push = t, u = u.slice();
for (var l = 0; l < u.length; l++) t(u[l]);
var f = c;
return s.push([4202, 2]), r()
}({
3874: function(e, t, r) {
"use strict";
var n = r(73),
o = r(174),
s = r(62),
i = r(92),
u = r(63);
const c = Object(n.b)(e => {
const {
setProps: t,
props: r,
compRef: s,
metaData: i,
getSdkInstance: u
} = e;
return {get scrolling() {
return r.scrolling
},
set scrolling(e) {
t({
scrolling: e
})
},
get src() {
return r.url
},
set src(e) {
t({
url: e
})
},
allowFullScreen: () => (t({
allow: "fullscreen"
}), u()),
onMessage: t => Object(o.d)("onMessage", e, t, ({
componentEvent: e
}) => e),
postMessage: e => {
return t = e, r = "postMessage", Object(n.a)(i.role)(t, {
type: ["string", "function", "number", "boolean", "array", "object"]
}, r) ? (s.postMessage(e), u()) : u();
var t, r
}
}
}, {
type: ["object"],
properties: {
src: {
type: ["string"]
},
scrolling: {
type: ["string"],
enum: ["yes", "no", "auto"]
},
allowFullScreen: {
type: ["function"]
}
}
}),
l = Object(s.a)(),
f = Object(i.a)(l, c);
t.a = Object(u.a)(f)
},
4202: function(e, t, r) {
"use strict";
r.r(t), r.d(t, "components", (function() {
return n
})), r.d(t, "version", (function() {
return o
}));
const n = {
HtmlComponent: {
sdk: r(3874).a
}
},
o = "1.0.0"
},
63: function(e, t, r) {
"use strict";
function n(e) {
return {
factory: e
}
}
r.d(t, "a", (function() {
return n
}))
}
})
}));
//# sourceMappingURL=https://static.parastorage.com/services/editor-elements-library/dist/rb_wixui.corvid[HtmlComponent].f50c6200.bundle.min.js.map
//# sourceURL=webpack-internal://
#11 JavaScript::Eval (size: 5683) - SHA256: f23c260977c5f6ac3ca2c8abe2723afb548e03c606da2d3f37be5e4fc13afdcc
! function(e, t) {
"object" == typeof exports && "object" == typeof module ? module.exports = t() : "function" == typeof define && define.amd ? define("rb_wixui.corvid[MusicPlayer]", [], t) : "object" == typeof exports ? exports["rb_wixui.corvid[MusicPlayer]"] = t() : e["rb_wixui.corvid[MusicPlayer]"] = t()
}("undefined" != typeof self ? self : this, (function() {
return function(e) {
function t(t) {
for (var i, o, s = t[0], u = t[1], l = t[2], d = 0, p = []; d < s.length; d++) o = s[d], Object.prototype.hasOwnProperty.call(n, o) && n[o] && p.push(n[o][0]), n[o] = 0;
for (i in u) Object.prototype.hasOwnProperty.call(u, i) && (e[i] = u[i]);
for (c && c(t); p.length;) p.shift()();
return a.push.apply(a, l || []), r()
}
function r() {
for (var e, t = 0; t < a.length; t++) {
for (var r = a[t], i = !0, s = 1; s < r.length; s++) {
var u = r[s];
0 !== n[u] && (i = !1)
}
i && (a.splice(t--, 1), e = o(o.s = r[0]))
}
return e
}
var i = {},
n = {
83: 0
},
a = [];
function o(t) {
if (i[t]) return i[t].exports;
var r = i[t] = {
i: t,
l: !1,
exports: {}
};
return e[t].call(r.exports, r, r.exports, o), r.l = !0, r.exports
}
o.m = e, o.c = i, o.d = function(e, t, r) {
o.o(e, t) || Object.defineProperty(e, t, {
enumerable: !0,
get: r
})
}, o.r = function(e) {
"undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(e, Symbol.toStringTag, {
value: "Module"
}), Object.defineProperty(e, "__esModule", {
value: !0
})
}, o.t = function(e, t) {
if (1 & t && (e = o(e)), 8 & t) return e;
if (4 & t && "object" == typeof e && e && e.__esModule) return e;
var r = Object.create(null);
if (o.r(r), Object.defineProperty(r, "default", {
enumerable: !0,
value: e
}), 2 & t && "string" != typeof e)
for (var i in e) o.d(r, i, function(t) {
return e[t]
}.bind(null, i));
return r
}, o.n = function(e) {
var t = e && e.__esModule ? function() {
return e.default
} : function() {
return e
};
return o.d(t, "a", t), t
}, o.o = function(e, t) {
return Object.prototype.hasOwnProperty.call(e, t)
}, o.p = "https://static.parastorage.com/services/editor-elements-library/dist/";
var s = ("undefined" != typeof self ? self : this).webpackJsonp__wix_editor_elements_library = ("undefined" != typeof self ? self : this).webpackJsonp__wix_editor_elements_library || [],
u = s.push.bind(s);
s.push = t, s = s.slice();
for (var l = 0; l < s.length; l++) t(s[l]);
var c = u;
return a.push([4213, 2]), r()
}({
3882: function(e, t, r) {
"use strict";
var i = r(35),
n = r(77),
a = r(119),
o = r(174),
s = r(62),
u = r(73),
l = r(92),
c = r(63),
d = r(306),
p = r(803);
const m = {
src: [e => (e = i.a.isNil(e) ? "" : e, !!Object(d.b)(e, "audio") || (Object(n.d)(a.a.error_invalid_url({
url: e,
type: "audio",
prefix: "wix:audio://"
})), !1))],
coverImage: [e => (e = i.a.isNil(e) ? "" : e, !!Object(d.b)(e, "image") || (Object(n.d)(a.a.error_invalid_url({
url: e,
type: "image",
prefix: "wix:image://"
})), !1))]
},
f = /(^https?)|(^data)|(^blob)|(^\/\/)/,
y = Object(u.b)(e => {
const {
setProps: t,
props: r,
sdkData: n,
compRef: a,
metaData: u
} = e;
return {get artistName() {
return r.playlist[0].artistName
},
set artistName(e) {
t({
playlist: [Object.assign(Object.assign({}, r.playlist[0]), {
artistName: e
})]
})
},
get trackName() {
return r.playlist[0].trackName
},
set trackName(e) {
t({
playlist: [Object.assign(Object.assign({}, r.playlist[0]), {
trackName: e
})]
})
},
get coverImage() {
if (r.rawCover) return r.rawCover;
const {
uri: e,
height: t,
width: i,
title: a
} = (null == n ? void 0 : n.coverData) || {};
if (!e) return "";
if (f.test(e)) return e;
const o = Object(p.a)({
mediaId: e,
width: i,
height: t,
title: a,
type: "image"
});
return o.error ? "" : o.item || ""
},
set coverImage(e) {
const i = Object(p.c)(e),
n = "mediaId" in i ? "https://static.wixstatic.com/media/" + i.mediaId : e;
t({
playlist: [Object.assign(Object.assign({}, r.playlist[0]), {
cover: n
})],
rawCover: e
})
},
get src() {
if (r.rawSrc) return r.rawSrc;
const e = r.duration ? Math.round(r.duration) : void 0,
{
title: t,
uri: i
} = (null == n ? void 0 : n.audioData) || {};
if (!i) return "";
if (f.test(i)) return i;
const a = Object(p.a)({
mediaId: i,
duration: e,
title: t,
type: "audio