mango-ui-v2/components/charting_library/bundles/14.b271e3269de6c25b5d48.js

522 lines
18 KiB
JavaScript

(window.webpackJsonp = window.webpackJsonp || []).push([
[14],
{
'5qpw': function (e, t, n) {
'use strict';
n.r(t),
n.d(t, 'LazyJqueryUI', function () {
return o;
}),
n.d(t, 'lazyJqueryUI', function () {
return s;
});
var r;
n('P5fv');
function i(e) {
return e in $.fn
? Promise.resolve()
: (r ||
(r = new Promise(function (e) {
Promise.all([n.e(87), n.e('lazy-jquery-ui')])
.then(
function (t) {
n('ONnG'), e();
}.bind(null, n),
)
.catch(void 0);
})),
r);
}
var o = (function () {
function e(e) {
this._$elem = e;
}
return (
(e.prototype.draggable = function () {
var e = arguments,
t = this._$elem;
return i('draggable').then(function () {
return t.draggable.apply(t, e);
});
}),
(e.prototype.resizable = function () {
var e = arguments,
t = this._$elem;
return i('resizable').then(function () {
return t.resizable.apply(t, e);
});
}),
(e.prototype.sortable = function () {
var e = arguments,
t = this._$elem;
return i('sortable').then(function () {
return t.sortable.apply(t, e);
});
}),
(e.prototype.datepicker = function () {
var e = arguments,
t = this._$elem;
return i('datepicker').then(function () {
return t.datepicker.apply(t, e);
});
}),
e
);
})();
function s(e) {
return new o(e);
}
},
jAh7: function (e, t, n) {
'use strict';
n.r(t),
n.d(t, 'OverlapManager', function () {
return o;
}),
n.d(t, 'getRootOverlapManager', function () {
return a;
});
var r = n('Eyy1'),
i = (function () {
function e() {
this._storage = [];
}
return (
(e.prototype.add = function (e) {
this._storage.push(e);
}),
(e.prototype.remove = function (e) {
this._storage = this._storage.filter(function (t) {
return e !== t;
});
}),
(e.prototype.has = function (e) {
return this._storage.includes(e);
}),
(e.prototype.getItems = function () {
return this._storage;
}),
e
);
})(),
o = (function () {
function e(e) {
void 0 === e && (e = document),
(this._storage = new i()),
(this._windows = new Map()),
(this._index = 0),
(this._document = e),
(this._container = e.createDocumentFragment());
}
return (
(e.prototype.setContainer = function (e) {
var t = this._container,
n = null === e ? this._document.createDocumentFragment() : e;
!(function (e, t) {
Array.from(e.childNodes).forEach(function (e) {
e.nodeType === Node.ELEMENT_NODE && t.appendChild(e);
});
})(t, n),
(this._container = n);
}),
(e.prototype.registerWindow = function (e) {
this._storage.has(e) || this._storage.add(e);
}),
(e.prototype.ensureWindow = function (e, t) {
void 0 === t && (t = { position: 'fixed', direction: 'normal' });
var n = this._windows.get(e);
if (void 0 !== n) return n;
this.registerWindow(e);
var r = this._document.createElement('div');
if (
((r.style.position = t.position),
(r.style.zIndex = this._index.toString()),
(r.dataset.id = e),
void 0 !== t.index)
) {
var i = this._container.childNodes.length;
if (t.index >= i) this._container.appendChild(r);
else if (t.index <= 0)
this._container.insertBefore(r, this._container.firstChild);
else {
var o = this._container.childNodes[t.index];
this._container.insertBefore(r, o);
}
} else
'reverse' === t.direction
? this._container.insertBefore(r, this._container.firstChild)
: this._container.appendChild(r);
return this._windows.set(e, r), ++this._index, r;
}),
(e.prototype.unregisterWindow = function (e) {
this._storage.remove(e);
var t = this._windows.get(e);
void 0 !== t &&
(null !== t.parentElement && t.parentElement.removeChild(t),
this._windows.delete(e));
}),
(e.prototype.getZindex = function (e) {
var t = this.ensureWindow(e);
return parseInt(t.style.zIndex || '0');
}),
(e.prototype.moveToTop = function (e) {
this.getZindex(e) !== this._index &&
(this.ensureWindow(e).style.zIndex = (++this
._index).toString());
}),
(e.prototype.removeWindow = function (e) {
this.unregisterWindow(e);
}),
e
);
})(),
s = new WeakMap();
function a(e) {
void 0 === e && (e = document);
var t = e.getElementById('overlap-manager-root');
if (null !== t) return Object(r.ensureDefined)(s.get(t));
var n = new o(e),
i = (function (e) {
var t = e.createElement('div');
return (
(t.style.position = 'absolute'),
(t.style.zIndex = (150).toString()),
(t.style.top = '0px'),
(t.style.left = '0px'),
(t.id = 'overlap-manager-root'),
t
);
})(e);
return s.set(i, n), n.setContainer(i), e.body.appendChild(i), n;
}
},
nbsC: function (e, t, n) {
var r, i, o, s;
(s = function (e) {
var t = Object.prototype.toString,
n =
Array.isArray ||
function (e) {
return '[object Array]' === t.call(e);
};
function r(e) {
return 'function' == typeof e;
}
function i(e) {
return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g, '\\$&');
}
function o(e, t) {
return null != e && 'object' == typeof e && t in e;
}
var s = RegExp.prototype.test,
a = /\S/;
function u(e) {
return !(function (e, t) {
return s.call(e, t);
})(a, e);
}
var c = {
'&': '&amp;',
'<': '&lt;',
'>': '&gt;',
'"': '&quot;',
"'": '&#39;',
'/': '&#x2F;',
'`': '&#x60;',
'=': '&#x3D;',
},
p = /\s*/,
l = /\s+/,
h = /\s*=/,
f = /\s*\}/,
d = /#|\^|\/|>|\{|&|=|!/;
function v(e) {
(this.string = e), (this.tail = e), (this.pos = 0);
}
function g(e, t) {
(this.view = e), (this.cache = { '.': this.view }), (this.parent = t);
}
function y() {
this.cache = {};
}
(v.prototype.eos = function () {
return '' === this.tail;
}),
(v.prototype.scan = function (e) {
var t = this.tail.match(e);
if (!t || 0 !== t.index) return '';
var n = t[0];
return (
(this.tail = this.tail.substring(n.length)),
(this.pos += n.length),
n
);
}),
(v.prototype.scanUntil = function (e) {
var t,
n = this.tail.search(e);
switch (n) {
case -1:
(t = this.tail), (this.tail = '');
break;
case 0:
t = '';
break;
default:
(t = this.tail.substring(0, n)),
(this.tail = this.tail.substring(n));
}
return (this.pos += t.length), t;
}),
(g.prototype.push = function (e) {
return new g(e, this);
}),
(g.prototype.lookup = function (e) {
var t,
n = this.cache;
if (n.hasOwnProperty(e)) t = n[e];
else {
for (var i, s, a = this, u = !1; a; ) {
if (e.indexOf('.') > 0)
for (
t = a.view, i = e.split('.'), s = 0;
null != t && s < i.length;
)
s === i.length - 1 && (u = o(t, i[s])), (t = t[i[s++]]);
else (t = a.view[e]), (u = o(a.view, e));
if (u) break;
a = a.parent;
}
n[e] = t;
}
return r(t) && (t = t.call(this.view)), t;
}),
(y.prototype.clearCache = function () {
this.cache = {};
}),
(y.prototype.parse = function (t, r) {
var o = this.cache,
s = o[t];
return (
null == s &&
(s = o[t] = (function (t, r) {
if (!t) return [];
var o,
s,
a,
c = [],
g = [],
y = [],
w = !1,
m = !1;
function _() {
if (w && !m) for (; y.length; ) delete g[y.pop()];
else y = [];
(w = !1), (m = !1);
}
function x(e) {
if (
('string' == typeof e && (e = e.split(l, 2)),
!n(e) || 2 !== e.length)
)
throw new Error('Invalid tags: ' + e);
(o = new RegExp(i(e[0]) + '\\s*')),
(s = new RegExp('\\s*' + i(e[1]))),
(a = new RegExp('\\s*' + i('}' + e[1])));
}
x(r || e.tags);
for (var b, k, E, C, I, T, U = new v(t); !U.eos(); ) {
if (((b = U.pos), (E = U.scanUntil(o))))
for (var z = 0, W = E.length; z < W; ++z)
u((C = E.charAt(z))) ? y.push(g.length) : (m = !0),
g.push(['text', C, b, b + 1]),
(b += 1),
'\n' === C && _();
if (!U.scan(o)) break;
if (
((w = !0),
(k = U.scan(d) || 'name'),
U.scan(p),
'=' === k
? ((E = U.scanUntil(h)), U.scan(h), U.scanUntil(s))
: '{' === k
? ((E = U.scanUntil(a)),
U.scan(f),
U.scanUntil(s),
(k = '&'))
: (E = U.scanUntil(s)),
!U.scan(s))
)
throw new Error('Unclosed tag at ' + U.pos);
if (
((I = [k, E, b, U.pos]),
g.push(I),
'#' === k || '^' === k)
)
c.push(I);
else if ('/' === k) {
if (!(T = c.pop()))
throw new Error('Unopened section "' + E + '" at ' + b);
if (T[1] !== E)
throw new Error(
'Unclosed section "' + T[1] + '" at ' + b,
);
} else
'name' === k || '{' === k || '&' === k
? (m = !0)
: '=' === k && x(E);
}
if ((T = c.pop()))
throw new Error(
'Unclosed section "' + T[1] + '" at ' + U.pos,
);
return (function (e) {
for (
var t, n = [], r = n, i = [], o = 0, s = e.length;
o < s;
++o
)
switch ((t = e[o])[0]) {
case '#':
case '^':
r.push(t), i.push(t), (r = t[4] = []);
break;
case '/':
(i.pop()[5] = t[2]),
(r = i.length > 0 ? i[i.length - 1][4] : n);
break;
default:
r.push(t);
}
return n;
})(
(function (e) {
for (var t, n, r = [], i = 0, o = e.length; i < o; ++i)
(t = e[i]) &&
('text' === t[0] && n && 'text' === n[0]
? ((n[1] += t[1]), (n[3] = t[3]))
: (r.push(t), (n = t)));
return r;
})(g),
);
})(t, r)),
s
);
}),
(y.prototype.render = function (e, t, n) {
var r = this.parse(e),
i = t instanceof g ? t : new g(t);
return this.renderTokens(r, i, n, e);
}),
(y.prototype.renderTokens = function (e, t, n, r) {
for (var i, o, s, a = '', u = 0, c = e.length; u < c; ++u)
(s = void 0),
'#' === (o = (i = e[u])[0])
? (s = this.renderSection(i, t, n, r))
: '^' === o
? (s = this.renderInverted(i, t, n, r))
: '>' === o
? (s = this.renderPartial(i, t, n, r))
: '&' === o
? (s = this.unescapedValue(i, t))
: 'name' === o
? (s = this.escapedValue(i, t))
: 'text' === o && (s = this.rawValue(i)),
void 0 !== s && (a += s);
return a;
}),
(y.prototype.renderSection = function (e, t, i, o) {
var s = this,
a = '',
u = t.lookup(e[1]);
if (u) {
if (n(u))
for (var c = 0, p = u.length; c < p; ++c)
a += this.renderTokens(e[4], t.push(u[c]), i, o);
else if (
'object' == typeof u ||
'string' == typeof u ||
'number' == typeof u
)
a += this.renderTokens(e[4], t.push(u), i, o);
else if (r(u)) {
if ('string' != typeof o)
throw new Error(
'Cannot use higher-order sections without the original template',
);
null !=
(u = u.call(t.view, o.slice(e[3], e[5]), function (e) {
return s.render(e, t, i);
})) && (a += u);
} else a += this.renderTokens(e[4], t, i, o);
return a;
}
}),
(y.prototype.renderInverted = function (e, t, r, i) {
var o = t.lookup(e[1]);
if (!o || (n(o) && 0 === o.length))
return this.renderTokens(e[4], t, r, i);
}),
(y.prototype.renderPartial = function (e, t, n) {
if (n) {
var i = r(n) ? n(e[1]) : n[e[1]];
return null != i
? this.renderTokens(this.parse(i), t, n, i)
: void 0;
}
}),
(y.prototype.unescapedValue = function (e, t) {
var n = t.lookup(e[1]);
if (null != n) return n;
}),
(y.prototype.escapedValue = function (t, n) {
var r = n.lookup(t[1]);
if (null != r) return e.escape(r);
}),
(y.prototype.rawValue = function (e) {
return e[1];
}),
(e.name = 'mustache.js'),
(e.version = '2.2.1'),
(e.tags = ['{{', '}}']);
var w = new y();
(e.clearCache = function () {
return w.clearCache();
}),
(e.parse = function (e, t) {
return w.parse(e, t);
}),
(e.render = function (e, t, r) {
if ('string' != typeof e)
throw new TypeError(
'Invalid template! Template should be a "string" but "' +
(n((i = e)) ? 'array' : typeof i) +
'" was given as the first argument for mustache#render(template, view, partials)',
);
var i;
return w.render(e, t, r);
}),
(e.to_html = function (t, n, i, o) {
var s = e.render(t, n, i);
if (!r(o)) return s;
o(s);
}),
(e.escape = function (e) {
return String(e).replace(/[&<>"'`=\/]/g, function (e) {
return c[e];
});
}),
(e.Scanner = v),
(e.Context = g),
(e.Writer = y);
}),
t && 'string' != typeof t.nodeName
? s(t)
: ((i = [t]),
void 0 === (o = 'function' == typeof (r = s) ? r.apply(t, i) : r) ||
(e.exports = o));
},
},
]);