text
stringlengths 2
1.05M
|
|---|
/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
*/
import { DOCUMENT } from '@angular/common';
import { Inject, Injectable } from '@angular/core';
import { isNotNil } from '../util/check';
var NzMeasureScrollbarService = /** @class */ (function () {
// tslint:disable-next-line:no-any
function NzMeasureScrollbarService(document) {
this.document = document;
this.scrollbarMeasure = {
position: 'absolute',
top: '-9999px',
width: '50px',
height: '50px',
overflow: 'scroll'
};
this.initScrollBarWidth();
}
Object.defineProperty(NzMeasureScrollbarService.prototype, "scrollBarWidth", {
get: /**
* @return {?}
*/
function () {
if (isNotNil(this._scrollbarWidth)) {
return this._scrollbarWidth;
}
this.initScrollBarWidth();
return this._scrollbarWidth;
},
enumerable: true,
configurable: true
});
/**
* @return {?}
*/
NzMeasureScrollbarService.prototype.initScrollBarWidth = /**
* @return {?}
*/
function () {
var /** @type {?} */ scrollDiv = this.document.createElement('div');
for (var /** @type {?} */ scrollProp in this.scrollbarMeasure) {
if (this.scrollbarMeasure.hasOwnProperty(scrollProp)) {
scrollDiv.style[scrollProp] = this.scrollbarMeasure[scrollProp];
}
}
this.document.body.appendChild(scrollDiv);
var /** @type {?} */ width = scrollDiv.offsetWidth - scrollDiv.clientWidth;
this.document.body.removeChild(scrollDiv);
this._scrollbarWidth = width;
};
NzMeasureScrollbarService.decorators = [
{ type: Injectable },
];
/** @nocollapse */
NzMeasureScrollbarService.ctorParameters = function () { return [
{ type: undefined, decorators: [{ type: Inject, args: [DOCUMENT,] },] },
]; };
return NzMeasureScrollbarService;
}());
export { NzMeasureScrollbarService };
function NzMeasureScrollbarService_tsickle_Closure_declarations() {
/** @type {!Array<{type: !Function, args: (undefined|!Array<?>)}>} */
NzMeasureScrollbarService.decorators;
/**
* @nocollapse
* @type {function(): !Array<(null|{type: ?, decorators: (undefined|!Array<{type: !Function, args: (undefined|!Array<?>)}>)})>}
*/
NzMeasureScrollbarService.ctorParameters;
/** @type {?} */
NzMeasureScrollbarService.prototype._scrollbarWidth;
/** @type {?} */
NzMeasureScrollbarService.prototype.scrollbarMeasure;
/** @type {?} */
NzMeasureScrollbarService.prototype.document;
}
//# sourceMappingURL=nz-measure-scrollbar.service.js.map
|
const socket = io();
let connectionsUsers = [];
let connectionInSupport = [];
socket.on('admin_list_all_users', (connections) => {
connectionsUsers = connections;
document.getElementById('list_users').innerHTML = '';
let template = document.getElementById('template').innerHTML;
connections.forEach((connection) => {
const rendered = Mustache.render(template, {
email: connection.user.email,
id: connection.socket_id,
});
document.getElementById('list_users').innerHTML += rendered;
});
});
function call(id) {
const connection = connectionsUsers.find(
(connection) => connection.socket_id === id
);
connectionInSupport.push(connection);
const template = document.getElementById('admin_template').innerHTML;
const rendered = Mustache.render(template, {
email: connection.user.email,
id: connection.user_id,
});
document.getElementById('supports').innerHTML += rendered;
const params = {
user_id: connection.user_id,
};
socket.emit('admin_user_in_support', params);
socket.emit('admin_list_messages_by_user', params, (messages) => {
const divMessages = document.getElementById(
`allMessages${connection.user_id}`
);
messages.forEach((message) => {
const createDiv = document.createElement('div');
if (message.admin_id === null) {
createDiv.className = 'admin_message_client';
createDiv.innerHTML = `<span>${connection.user.email}</span`;
createDiv.innerHTML += `<span>${message.text}</span`;
createDiv.innerHTML += `<span class="admin_date">${dayjs(
message.created_at
).format('DD/MM/YYYY HH:mm:ss')}</span>`;
} else {
createDiv.className = 'admin_message_admin';
createDiv.innerHTML = `Atendente: <span>${message.text}</span`;
createDiv.innerHTML += `<span class="admin_date">${dayjs(
message.created_at
).format('DD/MM/YYYY HH:mm:ss')}</span>`;
}
divMessages.appendChild(createDiv);
});
});
}
function sendMessage(id) {
const text = document.getElementById(`send_message_${id}`);
const params = {
text: text.value,
user_id: id,
};
socket.emit('admin_send_message', params);
const divMessages = document.getElementById(`allMessages${id}`);
const createDiv = document.createElement('div');
createDiv.className = 'admin_message_admin';
createDiv.innerHTML = `Atendente: <span>${params.text}</span`;
createDiv.innerHTML += `<span class="admin_date">${dayjs().format(
'DD/MM/YYYY HH:mm:ss'
)}</span>`;
divMessages.appendChild(createDiv);
text.value = '';
}
socket.on('admin_receive_message', (data) => {
const connection = connectionInSupport.find(
(connection) => connection.socket_id === data.socket_id
);
const divMessages = document.getElementById(
`allMessages${connection.user_id}`
);
const createDiv = document.createElement('div');
createDiv.className = 'admin_message_client';
createDiv.innerHTML = `<span>${connection.user.email}</span`;
createDiv.innerHTML += `<span>${data.message.text}</span`;
createDiv.innerHTML += `<span class="admin_date">${dayjs(
data.message.created_at
).format('DD/MM/YYYY HH:mm:ss')}</span>`;
divMessages.appendChild(createDiv);
});
|
const chai = require('chai');
const assert = chai.assert;
const sinon = require('sinon');
import { afterEach } from 'mocha';
import { Iframe } from '../../src/services/iframe';
import { IframeHelpers, GenericHelpers } from '../../src/utilities/helpers';
import { ViewGroupPreloading, ViewUrlDecorator } from '../../src/services';
import { LuigiConfig } from '../../src/core-api';
describe('Iframe', () => {
let component;
let preloadingAllowed;
let clock;
let container;
let iframes;
let viewGroupSettings;
beforeEach(() => {
clock = sinon.useFakeTimers();
let lastObj = {};
component = {
set: obj => {
Object.assign(lastObj, obj);
},
get: () => lastObj,
prepareInternalData: () => {}
};
preloadingAllowed = false;
sinon.stub(GenericHelpers);
GenericHelpers.getRandomId.returns('abc');
sinon.stub(LuigiConfig, 'getConfigValue').callsFake(key => {
if (key === 'navigation.preloadViewGroups') {
return preloadingAllowed ? undefined : false;
}
});
sinon.stub(ViewUrlDecorator);
ViewUrlDecorator.applyDecorators.callsFake(url => url);
iframes = [
{
src: 'http://luigi.url.de',
vg: 'tets1',
luigi: {
viewUrl: 'http://luigi.url.de'
},
style: { display: 'block' }
}
];
container = {
appendChild: child => {
iframes.push(child);
}
};
viewGroupSettings = {
ham: {
preloadUrl: 'ham.html'
},
cheese: {
preloadUrl: 'cheese.html'
},
ananas: {
preloadUrl: 'ananas.html'
}
};
sinon.stub(Iframe, 'getAllViewGroupSettings').callsFake(() => {
return viewGroupSettings;
});
sinon.stub(IframeHelpers, 'getIframeContainer').callsFake(() => {
return container;
});
sinon.stub(IframeHelpers, 'getMainIframes').callsFake(() => {
return [...iframes];
});
});
afterEach(() => {
clock.restore();
if (document.createElement.restore) {
document.createElement.restore();
}
sinon.restore();
});
describe('preload view groups', () => {
it('preloading disabled', () => {
ViewGroupPreloading.preloadViewGroups(2);
assert.equal(iframes.length, 1);
assert.equal(iframes[0].src, 'http://luigi.url.de');
assert.equal(iframes[0].luigi.viewUrl, 'http://luigi.url.de');
assert.equal(iframes[0].luigi.preloading, undefined);
assert.equal(iframes[0].style.display, 'block');
assert.equal(iframes[0].vg, 'tets1');
});
it('preloading with no view group settings', () => {
preloadingAllowed = true;
viewGroupSettings = [];
ViewGroupPreloading.preloadViewGroups(2);
assert.equal(iframes.length, 1);
assert.equal(iframes[0].src, 'http://luigi.url.de');
assert.equal(iframes[0].luigi.viewUrl, 'http://luigi.url.de');
assert.equal(iframes[0].luigi.preloading, undefined);
assert.equal(iframes[0].style.display, 'block');
assert.equal(iframes[0].vg, 'tets1');
});
it('initial preloading', () => {
preloadingAllowed = true;
ViewGroupPreloading.preloadViewGroups(2);
assert.equal(iframes.length, 3);
assert.equal(iframes[0].src, 'http://luigi.url.de');
assert.equal(iframes[0].luigi.viewUrl, 'http://luigi.url.de');
assert.equal(iframes[0].luigi.preloading, undefined);
assert.equal(iframes[0].style.display, 'block');
assert.equal(iframes[0].vg, 'tets1');
assert.equal(iframes[1].src, 'ham.html');
assert.equal(iframes[1].luigi.viewUrl, 'ham.html');
assert.equal(iframes[1].luigi.preloading, true);
assert.equal(iframes[1].style.display, 'none');
assert.equal(iframes[1].vg, 'ham');
assert.equal(iframes[2].src, 'cheese.html');
assert.equal(iframes[2].luigi.viewUrl, 'cheese.html');
assert.equal(iframes[2].luigi.preloading, true);
assert.equal(iframes[2].style.display, 'none');
assert.equal(iframes[2].vg, 'cheese');
});
it('preloading with partially already existing frames', () => {
preloadingAllowed = true;
iframes.push({
vg: 'ham',
src: 'ham2.html',
luigi: {
viewUrl: 'ham2.html'
}
});
iframes.push({
vg: 'cheese',
src: 'cheese2.html',
luigi: {
viewUrl: 'cheese2.html'
}
});
ViewGroupPreloading.preloadViewGroups(2);
assert.equal(iframes.length, 4);
assert.equal(iframes[0].src, 'http://luigi.url.de');
assert.equal(iframes[0].luigi.viewUrl, 'http://luigi.url.de');
assert.equal(iframes[0].luigi.preloading, undefined);
assert.equal(iframes[0].style.display, 'block');
assert.equal(iframes[0].vg, 'tets1');
assert.equal(iframes[1].vg, 'ham');
assert.equal(iframes[1].luigi.viewUrl, 'ham2.html');
assert.equal(iframes[1].src, 'ham2.html');
assert.equal(iframes[1].luigi.preloading, undefined);
assert.equal(iframes[2].src, 'cheese2.html');
assert.equal(iframes[2].luigi.viewUrl, 'cheese2.html');
assert.equal(iframes[2].luigi.preloading, undefined);
assert.equal(iframes[2].vg, 'cheese');
assert.equal(iframes[3].src, 'ananas.html');
assert.equal(iframes[3].luigi.viewUrl, 'ananas.html');
assert.equal(iframes[3].luigi.preloading, true);
assert.equal(iframes[3].style.display, 'none');
assert.equal(iframes[3].vg, 'ananas');
});
it('preloading with an iframe in preloading state ', () => {
preloadingAllowed = true;
iframes.push({
vg: 'sandwich',
src: 'sandwich.html',
luigi: {
viewUrl: 'sandwich.html',
preloading: true,
createdAt: new Date().getTime() - 500
}
});
ViewGroupPreloading.preloadViewGroups(2);
assert.equal(iframes.length, 2);
assert.equal(iframes[0].src, 'http://luigi.url.de');
assert.equal(iframes[0].luigi.viewUrl, 'http://luigi.url.de');
assert.equal(iframes[0].luigi.preloading, undefined);
assert.equal(iframes[0].style.display, 'block');
assert.equal(iframes[0].vg, 'tets1');
assert.equal(iframes[1].vg, 'sandwich');
assert.equal(iframes[1].luigi.viewUrl, 'sandwich.html');
assert.equal(iframes[1].src, 'sandwich.html');
assert.equal(iframes[1].luigi.preloading, true);
});
it('preloading with an iframe in preloading state but old', () => {
preloadingAllowed = true;
iframes.push({
vg: 'sandwich',
src: 'sandwich.html',
luigi: {
viewUrl: 'sandwich.html',
preloading: true,
createdAt: new Date().getTime() - 35000
}
});
ViewGroupPreloading.preloadViewGroups(4);
assert.equal(iframes[0].src, 'http://luigi.url.de');
assert.equal(iframes[0].luigi.viewUrl, 'http://luigi.url.de');
assert.equal(iframes[0].luigi.preloading, undefined);
assert.equal(iframes[0].style.display, 'block');
assert.equal(iframes[0].vg, 'tets1');
assert.equal(iframes[1].vg, 'sandwich');
assert.equal(iframes[1].luigi.viewUrl, 'sandwich.html');
assert.equal(iframes[1].src, 'sandwich.html');
assert.equal(iframes[1].luigi.preloading, true);
assert.equal(iframes[2].src, 'ham.html');
assert.equal(iframes[2].luigi.viewUrl, 'ham.html');
assert.equal(iframes[2].luigi.preloading, true);
assert.equal(iframes[2].style.display, 'none');
assert.equal(iframes[2].vg, 'ham');
assert.equal(iframes[3].src, 'cheese.html');
assert.equal(iframes[3].luigi.viewUrl, 'cheese.html');
assert.equal(iframes[3].luigi.preloading, true);
assert.equal(iframes[3].style.display, 'none');
assert.equal(iframes[3].vg, 'cheese');
});
it('preload, set shouldPreload to true if it was false', () => {
assert.equal(ViewGroupPreloading.shouldPreload, false);
ViewGroupPreloading.preload();
assert.equal(ViewGroupPreloading.shouldPreload, true);
});
it('preload, call preloadViewGroups and extend iframes', () => {
ViewGroupPreloading.preloadBatchSize = 4;
ViewGroupPreloading.shouldPreload = true;
assert.equal(iframes.length, 1);
preloadingAllowed = true;
ViewGroupPreloading.preload();
clock.tick(1);
assert.equal(iframes.length, 4);
});
it('loaded', () => {
const iframe = {
src: 'http://luigi.url.de',
vg: 'tets1',
luigi: {
viewUrl: 'http://luigi.url.de',
preloading: true,
createdAt: new Date().getTime() - 600
},
style: { display: 'block' }
};
ViewGroupPreloading.viewGroupLoaded(iframe);
assert.equal(ViewGroupPreloading.preloadBatchSize, 2);
assert.equal(iframe.luigi.preloading, true);
clock.tick(1100);
assert.equal(iframe.luigi.preloading, false);
});
});
});
|
module.exports = {
conditions: [''],
name: 'BitwiseORExpression',
rules: [
'BitwiseXORExpression',
'BitwiseORExpression | BitwiseXORExpression',
],
handlers: [
'$$ = $1;',
'$$ = new (require(\'./ast/BitwiseExpression\').BitwiseORExpressionNode)($2, $1, $3, { loc: this._$, yy })',
],
subRules: [
require('./BitwiseXORExpression'),
],
};
|
if ($.fn.pagination){
$.fn.pagination.defaults.beforePageText = '页';
$.fn.pagination.defaults.afterPageText = '/{pages}';
$.fn.pagination.defaults.displayMsg = '显示{from}到{to}页,共{total}记录';
}
if ($.fn.datagrid){
$.fn.datagrid.defaults.loadMsg = '正在处理,请稍待。。。';
}
if ($.fn.treegrid && $.fn.datagrid){
$.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg;
}
if ($.messager){
$.messager.defaults.ok = '确定';
$.messager.defaults.cancel = '取消';
}
$.map(['validatebox','textbox','passwordbox','filebox','searchbox',
'combo','combobox','combogrid','combotree',
'datebox','datetimebox','numberbox',
'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){
if ($.fn[plugin]){
$.fn[plugin].defaults.missingMessage = '该输入项为必输项';
}
});
if ($.fn.validatebox){
$.fn.validatebox.defaults.rules.email.message = '请输入有效的电子邮件地址';
$.fn.validatebox.defaults.rules.url.message = '请输入有效的URL地址';
$.fn.validatebox.defaults.rules.length.message = '输入内容长度必须介于{0}和{1}之间';
$.fn.validatebox.defaults.rules.remote.message = '请修正该字段';
}
if ($.fn.calendar){
$.fn.calendar.defaults.weeks = ['日','一','二','三','四','五','六'];
$.fn.calendar.defaults.months = ['一月','二月','三月','四月','五月','六月','七月','八月','九月','十月','十一月','十二月'];
}
if ($.fn.datebox){
$.fn.datebox.defaults.currentText = '今天';
$.fn.datebox.defaults.closeText = '关闭';
$.fn.datebox.defaults.okText = '确定';
$.fn.datebox.defaults.formatter = function(date){
var y = date.getFullYear();
var m = date.getMonth()+1;
var d = date.getDate();
return y+'-'+(m<10?('0'+m):m)+'-'+(d<10?('0'+d):d);
};
$.fn.datebox.defaults.parser = function(s){
if (!s) return new Date();
var ss = s.split('-');
var y = parseInt(ss[0],10);
var m = parseInt(ss[1],10);
var d = parseInt(ss[2],10);
if (!isNaN(y) && !isNaN(m) && !isNaN(d)){
return new Date(y,m-1,d);
} else {
return new Date();
}
};
}
if ($.fn.datetimebox && $.fn.datebox){
$.extend($.fn.datetimebox.defaults,{
currentText: $.fn.datebox.defaults.currentText,
closeText: $.fn.datebox.defaults.closeText,
okText: $.fn.datebox.defaults.okText
});
}
if ($.fn.datetimespinner){
$.fn.datetimespinner.defaults.selections = [[0,4],[5,7],[8,10],[11,13],[14,16],[17,19]]
}
|
/* eslint-disable no-unused-vars, node/no-unsupported-features/es-syntax */
/* eslint comma-dangle: [2, 'always-multiline'] */
// @ts-nocheck
/*
Prettier trailigComma:es5 is quivalent to
comma-dangle: [2, {
arrays: 'always-multiline'
objects: 'always-multiline',
importa: 'always-multiline',
exports: 'always-multiline',
functions: 'never'
} and
*/
import { writeFile, writeFileSync } from 'fs'
import {
basename,
dirname,
extname,
format,
isAbsolute,
normalize,
parse,
relative,
resolve,
} from 'path'
var a
a = {
a: 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',
b: 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',
}
a = ['a', 'b', 'c']
a = [
'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',
'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb',
'cccccccccccccccccccccccccccccccccccccccccccccccccccccc',
]
a = function (x, y) {}
a = function (
xxxxxxxxxxxxxxxxxxxxxxxxxx,
yyyyyyyyyyyyyyyyyyyyyyyyyy,
zzzzzzzzzzzzzzzzzzzzzzzzzz
) {
//
}
|
/*
* Copyright (C) 2007, 2008 Apple Inc. All rights reserved.
* Copyright (C) IBM Corp. 2009 All rights reserved.
* Copyright (C) 2010 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. Neither the name of Apple Computer, Inc. ("Apple") nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
/**
* @unrestricted
*/
Network.RequestHeadersView = class extends UI.VBox {
/**
* @param {!SDK.NetworkRequest} request
*/
constructor(request) {
super();
this.registerRequiredCSS('network/requestHeadersView.css');
this.element.classList.add('request-headers-view');
this._request = request;
this._decodeRequestParameters = true;
this._showRequestHeadersText = false;
this._showResponseHeadersText = false;
var root = new UI.TreeOutlineInShadow();
root.registerRequiredCSS('network/requestHeadersTree.css');
root.element.classList.add('request-headers-tree');
root.setFocusable(false);
root.makeDense();
root.expandTreeElementsWhenArrowing = true;
this.element.appendChild(root.element);
var generalCategory = new Network.RequestHeadersView.Category(root, 'general', Common.UIString('General'));
generalCategory.hidden = false;
this._urlItem = generalCategory.createLeaf();
this._requestMethodItem = generalCategory.createLeaf();
this._statusCodeItem = generalCategory.createLeaf();
this._remoteAddressItem = generalCategory.createLeaf();
this._remoteAddressItem.hidden = true;
this._referrerPolicyItem = generalCategory.createLeaf();
this._referrerPolicyItem.hidden = true;
this._responseHeadersCategory = new Network.RequestHeadersView.Category(root, 'responseHeaders', '');
this._requestHeadersCategory = new Network.RequestHeadersView.Category(root, 'requestHeaders', '');
this._queryStringCategory = new Network.RequestHeadersView.Category(root, 'queryString', '');
this._formDataCategory = new Network.RequestHeadersView.Category(root, 'formData', '');
this._requestPayloadCategory =
new Network.RequestHeadersView.Category(root, 'requestPayload', Common.UIString('Request Payload'));
}
/**
* @override
*/
wasShown() {
this._request.addEventListener(SDK.NetworkRequest.Events.RemoteAddressChanged, this._refreshRemoteAddress, this);
this._request.addEventListener(SDK.NetworkRequest.Events.RequestHeadersChanged, this._refreshRequestHeaders, this);
this._request.addEventListener(
SDK.NetworkRequest.Events.ResponseHeadersChanged, this._refreshResponseHeaders, this);
this._request.addEventListener(SDK.NetworkRequest.Events.FinishedLoading, this._refreshHTTPInformation, this);
this._refreshURL();
this._refreshQueryString();
this._refreshRequestHeaders();
this._refreshResponseHeaders();
this._refreshHTTPInformation();
this._refreshRemoteAddress();
this._refreshReferrerPolicy();
}
/**
* @override
*/
willHide() {
this._request.removeEventListener(SDK.NetworkRequest.Events.RemoteAddressChanged, this._refreshRemoteAddress, this);
this._request.removeEventListener(
SDK.NetworkRequest.Events.RequestHeadersChanged, this._refreshRequestHeaders, this);
this._request.removeEventListener(
SDK.NetworkRequest.Events.ResponseHeadersChanged, this._refreshResponseHeaders, this);
this._request.removeEventListener(SDK.NetworkRequest.Events.FinishedLoading, this._refreshHTTPInformation, this);
}
/**
* @param {string} name
* @param {string} value
* @return {!DocumentFragment}
*/
_formatHeader(name, value) {
var fragment = createDocumentFragment();
fragment.createChild('div', 'header-name').textContent = name + ':';
fragment.createChild('div', 'header-value source-code').textContent = value;
return fragment;
}
/**
* @param {string} value
* @param {string} className
* @param {boolean} decodeParameters
* @return {!Element}
*/
_formatParameter(value, className, decodeParameters) {
var errorDecoding = false;
if (decodeParameters) {
value = value.replace(/\+/g, ' ');
if (value.indexOf('%') >= 0) {
try {
value = decodeURIComponent(value);
} catch (e) {
errorDecoding = true;
}
}
}
var div = createElementWithClass('div', className);
if (value === '')
div.classList.add('empty-value');
if (errorDecoding)
div.createChild('span', 'header-decode-error').textContent = Common.UIString('(unable to decode value)');
else
div.textContent = value;
return div;
}
_refreshURL() {
this._urlItem.title = this._formatHeader(Common.UIString('Request URL'), this._request.url());
}
_refreshQueryString() {
var queryString = this._request.queryString();
var queryParameters = this._request.queryParameters;
this._queryStringCategory.hidden = !queryParameters;
if (queryParameters) {
this._refreshParams(
Common.UIString('Query String Parameters'), queryParameters, queryString, this._queryStringCategory);
}
}
_refreshFormData() {
this._formDataCategory.hidden = true;
this._requestPayloadCategory.hidden = true;
var formData = this._request.requestFormData;
if (!formData)
return;
var formParameters = this._request.formParameters;
if (formParameters) {
this._formDataCategory.hidden = false;
this._refreshParams(Common.UIString('Form Data'), formParameters, formData, this._formDataCategory);
} else {
this._requestPayloadCategory.hidden = false;
try {
var json = JSON.parse(formData);
this._refreshRequestJSONPayload(json, formData);
} catch (e) {
this._populateTreeElementWithSourceText(this._requestPayloadCategory, formData);
}
}
}
/**
* @param {!UI.TreeElement} treeElement
* @param {?string} sourceText
*/
_populateTreeElementWithSourceText(treeElement, sourceText) {
var sourceTextElement = createElementWithClass('span', 'header-value source-code');
sourceTextElement.textContent = String(sourceText || '').trim();
var sourceTreeElement = new UI.TreeElement(sourceTextElement);
sourceTreeElement.selectable = false;
treeElement.removeChildren();
treeElement.appendChild(sourceTreeElement);
}
/**
* @param {string} title
* @param {?Array.<!SDK.NetworkRequest.NameValue>} params
* @param {?string} sourceText
* @param {!UI.TreeElement} paramsTreeElement
*/
_refreshParams(title, params, sourceText, paramsTreeElement) {
paramsTreeElement.removeChildren();
paramsTreeElement.listItemElement.removeChildren();
paramsTreeElement.listItemElement.createTextChild(title);
var headerCount = createElementWithClass('span', 'header-count');
headerCount.textContent = Common.UIString('\u00A0(%d)', params.length);
paramsTreeElement.listItemElement.appendChild(headerCount);
/**
* @param {!Event} event
* @this {Network.RequestHeadersView}
*/
function toggleViewSource(event) {
paramsTreeElement[Network.RequestHeadersView._viewSourceSymbol] =
!paramsTreeElement[Network.RequestHeadersView._viewSourceSymbol];
this._refreshParams(title, params, sourceText, paramsTreeElement);
event.consume();
}
paramsTreeElement.listItemElement.appendChild(this._createViewSourceToggle(
paramsTreeElement[Network.RequestHeadersView._viewSourceSymbol], toggleViewSource.bind(this)));
if (paramsTreeElement[Network.RequestHeadersView._viewSourceSymbol]) {
this._populateTreeElementWithSourceText(paramsTreeElement, sourceText);
return;
}
var toggleTitle =
this._decodeRequestParameters ? Common.UIString('view URL encoded') : Common.UIString('view decoded');
var toggleButton = this._createToggleButton(toggleTitle);
toggleButton.addEventListener('click', this._toggleURLDecoding.bind(this), false);
paramsTreeElement.listItemElement.appendChild(toggleButton);
for (var i = 0; i < params.length; ++i) {
var paramNameValue = createDocumentFragment();
if (params[i].name !== '') {
var name = this._formatParameter(params[i].name + ':', 'header-name', this._decodeRequestParameters);
var value = this._formatParameter(params[i].value, 'header-value source-code', this._decodeRequestParameters);
paramNameValue.appendChild(name);
paramNameValue.appendChild(value);
} else {
paramNameValue.appendChild(
this._formatParameter(Common.UIString('(empty)'), 'empty-request-header', this._decodeRequestParameters));
}
var paramTreeElement = new UI.TreeElement(paramNameValue);
paramTreeElement.selectable = false;
paramsTreeElement.appendChild(paramTreeElement);
}
}
/**
* @param {*} parsedObject
* @param {string} sourceText
*/
_refreshRequestJSONPayload(parsedObject, sourceText) {
var treeElement = this._requestPayloadCategory;
treeElement.removeChildren();
var listItem = this._requestPayloadCategory.listItemElement;
listItem.removeChildren();
listItem.createTextChild(this._requestPayloadCategory.title);
/**
* @param {!Event} event
* @this {Network.RequestHeadersView}
*/
function toggleViewSource(event) {
treeElement[Network.RequestHeadersView._viewSourceSymbol] =
!treeElement[Network.RequestHeadersView._viewSourceSymbol];
this._refreshRequestJSONPayload(parsedObject, sourceText);
event.consume();
}
listItem.appendChild(this._createViewSourceToggle(
treeElement[Network.RequestHeadersView._viewSourceSymbol], toggleViewSource.bind(this)));
if (treeElement[Network.RequestHeadersView._viewSourceSymbol]) {
this._populateTreeElementWithSourceText(this._requestPayloadCategory, sourceText);
} else {
var object = SDK.RemoteObject.fromLocalObject(parsedObject);
var section = new ObjectUI.ObjectPropertiesSection(object, object.description);
section.expand();
section.editable = false;
treeElement.appendChild(new UI.TreeElement(section.element));
}
}
/**
* @param {boolean} viewSource
* @param {function(!Event)} handler
* @return {!Element}
*/
_createViewSourceToggle(viewSource, handler) {
var viewSourceToggleTitle = viewSource ? Common.UIString('view parsed') : Common.UIString('view source');
var viewSourceToggleButton = this._createToggleButton(viewSourceToggleTitle);
viewSourceToggleButton.addEventListener('click', handler, false);
return viewSourceToggleButton;
}
/**
* @param {!Event} event
*/
_toggleURLDecoding(event) {
this._decodeRequestParameters = !this._decodeRequestParameters;
this._refreshQueryString();
this._refreshFormData();
event.consume();
}
_refreshRequestHeaders() {
var treeElement = this._requestHeadersCategory;
var headers = this._request.requestHeaders().slice();
headers.sort(function(a, b) {
return a.name.toLowerCase().compareTo(b.name.toLowerCase());
});
var headersText = this._request.requestHeadersText();
if (this._showRequestHeadersText && headersText)
this._refreshHeadersText(Common.UIString('Request Headers'), headers.length, headersText, treeElement);
else
this._refreshHeaders(Common.UIString('Request Headers'), headers, treeElement, headersText === undefined);
if (headersText) {
var toggleButton = this._createHeadersToggleButton(this._showRequestHeadersText);
toggleButton.addEventListener('click', this._toggleRequestHeadersText.bind(this), false);
treeElement.listItemElement.appendChild(toggleButton);
}
this._refreshFormData();
}
_refreshResponseHeaders() {
var treeElement = this._responseHeadersCategory;
var headers = this._request.sortedResponseHeaders.slice();
var headersText = this._request.responseHeadersText;
if (this._showResponseHeadersText)
this._refreshHeadersText(Common.UIString('Response Headers'), headers.length, headersText, treeElement);
else
this._refreshHeaders(Common.UIString('Response Headers'), headers, treeElement);
if (headersText) {
var toggleButton = this._createHeadersToggleButton(this._showResponseHeadersText);
toggleButton.addEventListener('click', this._toggleResponseHeadersText.bind(this), false);
treeElement.listItemElement.appendChild(toggleButton);
}
}
_refreshHTTPInformation() {
var requestMethodElement = this._requestMethodItem;
requestMethodElement.hidden = !this._request.statusCode;
var statusCodeElement = this._statusCodeItem;
statusCodeElement.hidden = !this._request.statusCode;
if (this._request.statusCode) {
var statusCodeFragment = createDocumentFragment();
statusCodeFragment.createChild('div', 'header-name').textContent = Common.UIString('Status Code') + ':';
var statusCodeImage = statusCodeFragment.createChild('label', 'resource-status-image', 'dt-icon-label');
statusCodeImage.title = this._request.statusCode + ' ' + this._request.statusText;
if (this._request.statusCode < 300 || this._request.statusCode === 304)
statusCodeImage.type = 'smallicon-green-ball';
else if (this._request.statusCode < 400)
statusCodeImage.type = 'smallicon-orange-ball';
else
statusCodeImage.type = 'smallicon-red-ball';
requestMethodElement.title = this._formatHeader(Common.UIString('Request Method'), this._request.requestMethod);
var statusTextElement = statusCodeFragment.createChild('div', 'header-value source-code');
var statusText = this._request.statusCode + ' ' + this._request.statusText;
if (this._request.fetchedViaServiceWorker) {
statusText += ' ' + Common.UIString('(from ServiceWorker)');
statusTextElement.classList.add('status-from-cache');
} else if (this._request.cached()) {
if (this._request.cachedInMemory())
statusText += ' ' + Common.UIString('(from memory cache)');
else
statusText += ' ' + Common.UIString('(from disk cache)');
statusTextElement.classList.add('status-from-cache');
}
statusTextElement.textContent = statusText;
statusCodeElement.title = statusCodeFragment;
}
}
/**
* @param {string} title
* @param {!UI.TreeElement} headersTreeElement
* @param {number} headersLength
*/
_refreshHeadersTitle(title, headersTreeElement, headersLength) {
headersTreeElement.listItemElement.removeChildren();
headersTreeElement.listItemElement.createTextChild(title);
var headerCount = Common.UIString('\u00A0(%d)', headersLength);
headersTreeElement.listItemElement.createChild('span', 'header-count').textContent = headerCount;
}
/**
* @param {string} title
* @param {!Array.<!SDK.NetworkRequest.NameValue>} headers
* @param {!UI.TreeElement} headersTreeElement
* @param {boolean=} provisionalHeaders
*/
_refreshHeaders(title, headers, headersTreeElement, provisionalHeaders) {
headersTreeElement.removeChildren();
var length = headers.length;
this._refreshHeadersTitle(title, headersTreeElement, length);
if (provisionalHeaders) {
var cautionText = Common.UIString('Provisional headers are shown');
var cautionFragment = createDocumentFragment();
cautionFragment.createChild('label', '', 'dt-icon-label').type = 'smallicon-warning';
cautionFragment.createChild('div', 'caution').textContent = cautionText;
var cautionTreeElement = new UI.TreeElement(cautionFragment);
cautionTreeElement.selectable = false;
headersTreeElement.appendChild(cautionTreeElement);
}
headersTreeElement.hidden = !length && !provisionalHeaders;
for (var i = 0; i < length; ++i) {
var headerTreeElement = new UI.TreeElement(this._formatHeader(headers[i].name, headers[i].value));
headerTreeElement.selectable = false;
headersTreeElement.appendChild(headerTreeElement);
}
}
/**
* @param {string} title
* @param {number} count
* @param {string} headersText
* @param {!UI.TreeElement} headersTreeElement
*/
_refreshHeadersText(title, count, headersText, headersTreeElement) {
this._populateTreeElementWithSourceText(headersTreeElement, headersText);
this._refreshHeadersTitle(title, headersTreeElement, count);
}
_refreshRemoteAddress() {
var remoteAddress = this._request.remoteAddress();
var treeElement = this._remoteAddressItem;
treeElement.hidden = !remoteAddress;
if (remoteAddress)
treeElement.title = this._formatHeader(Common.UIString('Remote Address'), remoteAddress);
}
_refreshReferrerPolicy() {
var referrerPolicy = this._request.referrerPolicy();
var treeElement = this._referrerPolicyItem;
treeElement.hidden = !referrerPolicy;
if (referrerPolicy)
treeElement.title = this._formatHeader(Common.UIString('Referrer Policy'), referrerPolicy);
}
/**
* @param {!Event} event
*/
_toggleRequestHeadersText(event) {
this._showRequestHeadersText = !this._showRequestHeadersText;
this._refreshRequestHeaders();
event.consume();
}
/**
* @param {!Event} event
*/
_toggleResponseHeadersText(event) {
this._showResponseHeadersText = !this._showResponseHeadersText;
this._refreshResponseHeaders();
event.consume();
}
/**
* @param {string} title
* @return {!Element}
*/
_createToggleButton(title) {
var button = createElementWithClass('span', 'header-toggle');
button.textContent = title;
return button;
}
/**
* @param {boolean} isHeadersTextShown
* @return {!Element}
*/
_createHeadersToggleButton(isHeadersTextShown) {
var toggleTitle = isHeadersTextShown ? Common.UIString('view parsed') : Common.UIString('view source');
return this._createToggleButton(toggleTitle);
}
};
Network.RequestHeadersView._viewSourceSymbol = Symbol('ViewSource');
/**
* @unrestricted
*/
Network.RequestHeadersView.Category = class extends UI.TreeElement {
/**
* @param {!UI.TreeOutline} root
* @param {string} name
* @param {string=} title
*/
constructor(root, name, title) {
super(title || '', true);
this.selectable = false;
this.toggleOnClick = true;
this.hidden = true;
this._expandedSetting = Common.settings.createSetting('request-info-' + name + '-category-expanded', true);
this.expanded = this._expandedSetting.get();
root.appendChild(this);
}
/**
* @return {!UI.TreeElement}
*/
createLeaf() {
var leaf = new UI.TreeElement();
leaf.selectable = false;
this.appendChild(leaf);
return leaf;
}
/**
* @override
*/
onexpand() {
this._expandedSetting.set(true);
}
/**
* @override
*/
oncollapse() {
this._expandedSetting.set(false);
}
};
|
'use strict';
const fs = require('fs');
const path = require('path');
const resolve = require('resolve');
const webpack = require('webpack');
const PnpWebpackPlugin = require('pnp-webpack-plugin');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const CaseSensitivePathsPlugin = require('case-sensitive-paths-webpack-plugin');
const InterpolateHtmlPlugin = require('react-dev-utils/InterpolateHtmlPlugin');
const WatchMissingNodeModulesPlugin = require('react-dev-utils/WatchMissingNodeModulesPlugin');
const ModuleScopePlugin = require('react-dev-utils/ModuleScopePlugin');
const getCSSModuleLocalIdent = require('react-dev-utils/getCSSModuleLocalIdent');
const getClientEnvironment = require('./env');
const paths = require('./paths');
const ManifestPlugin = require('webpack-manifest-plugin');
const ModuleNotFoundPlugin = require('react-dev-utils/ModuleNotFoundPlugin');
const ForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin-alt');
const typescriptFormatter = require('react-dev-utils/typescriptFormatter');
// Webpack uses `publicPath` to determine where the app is being served from.
// In development, we always serve from the root. This makes config easier.
const publicPath = '/';
// `publicUrl` is just like `publicPath`, but we will provide it to our app
// as %PUBLIC_URL% in `index.html` and `process.env.PUBLIC_URL` in JavaScript.
// Omit trailing slash as %PUBLIC_PATH%/xyz looks better than %PUBLIC_PATH%xyz.
const publicUrl = '';
// Get environment variables to inject into our app.
const env = getClientEnvironment(publicUrl);
// Check if TypeScript is setup
const useTypeScript = fs.existsSync(paths.appTsConfig);
// style files regexes
const cssRegex = /\.css$/;
const cssModuleRegex = /\.module\.css$/;
const lessRegex = /\.less$/;
const sassRegex = /\.(scss|sass)$/;
const sassModuleRegex = /\.module\.(scss|sass)$/;
// common function to get style loaders
const getStyleLoaders = (cssOptions, preProcessor) => {
const loaders = [
require.resolve('style-loader'),
{
loader: require.resolve('css-loader'),
options: cssOptions,
},
{
// Options for PostCSS as we reference these options twice
// Adds vendor prefixing based on your specified browser support in
// package.json
loader: require.resolve('postcss-loader'),
options: {
// Necessary for external CSS imports to work
// https://github.com/facebook/create-react-app/issues/2677
ident: 'postcss',
plugins: () => [
require('postcss-flexbugs-fixes'),
require('postcss-preset-env')({
autoprefixer: {
flexbox: 'no-2009',
},
stage: 3,
}),
],
},
},
];
if (preProcessor) {
loaders.push(require.resolve(preProcessor));
}
return loaders;
};
// This is the development configuration.
// It is focused on developer experience and fast rebuilds.
// The production configuration is different and lives in a separate file.
module.exports = {
mode: 'development',
// You may want 'eval' instead if you prefer to see the compiled output in DevTools.
// See the discussion in https://github.com/facebook/create-react-app/issues/343
devtool: 'cheap-module-source-map',
// These are the "entry points" to our application.
// This means they will be the "root" imports that are included in JS bundle.
entry: [
// Include an alternative client for WebpackDevServer. A client's job is to
// connect to WebpackDevServer by a socket and get notified about changes.
// When you save a file, the client will either apply hot updates (in case
// of CSS changes), or refresh the page (in case of JS changes). When you
// make a syntax error, this client will display a syntax error overlay.
// Note: instead of the default WebpackDevServer client, we use a custom one
// to bring better experience for Create React App users. You can replace
// the line below with these two lines if you prefer the stock client:
// require.resolve('webpack-dev-server/client') + '?/',
// require.resolve('webpack/hot/dev-server'),
require.resolve('react-dev-utils/webpackHotDevClient'),
// Finally, this is your app's code:
paths.appIndexJs,
// We include the app code last so that if there is a runtime error during
// initialization, it doesn't blow up the WebpackDevServer client, and
// changing JS code would still trigger a refresh.
],
output: {
// Add /* filename */ comments to generated require()s in the output.
pathinfo: true,
// This does not produce a real file. It's just the virtual path that is
// served by WebpackDevServer in development. This is the JS bundle
// containing code from all our entry points, and the Webpack runtime.
filename: 'static/js/bundle.js',
// There are also additional JS chunk files if you use code splitting.
chunkFilename: 'static/js/[name].chunk.js',
// This is the URL that app is served from. We use "/" in development.
publicPath: publicPath,
// Point sourcemap entries to original disk location (format as URL on Windows)
devtoolModuleFilenameTemplate: info =>
path.resolve(info.absoluteResourcePath).replace(/\\/g, '/'),
},
optimization: {
// Automatically split vendor and commons
// https://twitter.com/wSokra/status/969633336732905474
// https://medium.com/webpack/webpack-4-code-splitting-chunk-graph-and-the-splitchunks-optimization-be739a861366
splitChunks: {
chunks: 'all',
name: false,
},
// Keep the runtime chunk seperated to enable long term caching
// https://twitter.com/wSokra/status/969679223278505985
runtimeChunk: true,
},
resolve: {
// This allows you to set a fallback for where Webpack should look for modules.
// We placed these paths second because we want `node_modules` to "win"
// if there are any conflicts. This matches Node resolution mechanism.
// https://github.com/facebook/create-react-app/issues/253
modules: ['node_modules'].concat(
// It is guaranteed to exist because we tweak it in `env.js`
process.env.NODE_PATH.split(path.delimiter).filter(Boolean),
),
// These are the reasonable defaults supported by the Node ecosystem.
// We also include JSX as a common component filename extension to support
// some tools, although we do not recommend using it, see:
// https://github.com/facebook/create-react-app/issues/290
// `web` extension prefixes have been added for better support
// for React Native Web.
extensions: paths.moduleFileExtensions
.map(ext => `.${ext}`)
.filter(ext => useTypeScript || !ext.includes('ts')),
alias: {
// Support React Native Web
// https://www.smashingmagazine.com/2016/08/a-glimpse-into-the-future-with-react-native-for-web/
'react-native': 'react-native-web',
},
plugins: [
// Adds support for installing with Plug'n'Play, leading to faster installs and adding
// guards against forgotten dependencies and such.
PnpWebpackPlugin,
// Prevents users from importing files from outside of src/ (or node_modules/).
// This often causes confusion because we only process files within src/ with babel.
// To fix this, we prevent you from importing files out of src/ -- if you'd like to,
// please link the files into your node_modules/ and let module-resolution kick in.
// Make sure your source files are compiled, as they will not be processed in any way.
new ModuleScopePlugin(paths.appSrc, [paths.appPackageJson]),
],
},
resolveLoader: {
plugins: [
// Also related to Plug'n'Play, but this time it tells Webpack to load its loaders
// from the current package.
PnpWebpackPlugin.moduleLoader(module),
],
},
module: {
strictExportPresence: true,
rules: [
// Disable require.ensure as it's not a standard language feature.
{ parser: { requireEnsure: false } },
// First, run the linter.
// It's important to do this before Babel processes the JS.
{
test: /\.(js|mjs|jsx)$/,
enforce: 'pre',
use: [
{
options: {
formatter: require.resolve('react-dev-utils/eslintFormatter'),
eslintPath: require.resolve('eslint'),
},
loader: require.resolve('eslint-loader'),
},
],
include: paths.appSrc,
},
{
// "oneOf" will traverse all following loaders until one will
// match the requirements. When no loader matches it will fall
// back to the "file" loader at the end of the loader list.
oneOf: [
// "url" loader works like "file" loader except that it embeds assets
// smaller than specified limit in bytes as data URLs to avoid requests.
// A missing `test` is equivalent to a match.
{
test: [/\.bmp$/, /\.gif$/, /\.jpe?g$/, /\.png$/],
loader: require.resolve('url-loader'),
options: {
limit: 10000,
name: 'static/media/[name].[hash:8].[ext]',
},
},
// Process application JS with Babel.
// The preset includes JSX, Flow, and some ESnext features.
{
test: /\.(js|mjs|jsx|ts|tsx)$/,
include: paths.appSrc,
loader: require.resolve('babel-loader'),
options: {
customize: require.resolve(
'babel-preset-react-app/webpack-overrides',
),
plugins: [
[
require.resolve('babel-plugin-named-asset-import'),
{
loaderMap: {
svg: {
ReactComponent: '@svgr/webpack?-prettier,-svgo![path]',
},
},
},
],
],
// This is a feature of `babel-loader` for webpack (not Babel itself).
// It enables caching results in ./node_modules/.cache/babel-loader/
// directory for faster rebuilds.
cacheDirectory: true,
// Don't waste time on Gzipping the cache
cacheCompression: false,
},
},
// Process any JS outside of the app with Babel.
// Unlike the application JS, we only compile the standard ES features.
{
test: /\.(js|mjs)$/,
exclude: /@babel(?:\/|\\{1,2})runtime/,
loader: require.resolve('babel-loader'),
options: {
babelrc: false,
configFile: false,
compact: false,
presets: [
[
require.resolve('babel-preset-react-app/dependencies'),
{ helpers: true },
],
],
cacheDirectory: true,
// Don't waste time on Gzipping the cache
cacheCompression: false,
// If an error happens in a package, it's possible to be
// because it was compiled. Thus, we don't want the browser
// debugger to show the original code. Instead, the code
// being evaluated would be much more helpful.
sourceMaps: false,
},
},
// "postcss" loader applies autoprefixer to our CSS.
// "css" loader resolves paths in CSS and adds assets as dependencies.
// "style" loader turns CSS into JS modules that inject <style> tags.
// In production, we use a plugin to extract that CSS to a file, but
// in development "style" loader enables hot editing of CSS.
// By default we support CSS Modules with the extension .module.css
{
test: cssRegex,
exclude: cssModuleRegex,
use: getStyleLoaders({
importLoaders: 1,
}),
},
// Adds support for CSS Modules (https://github.com/css-modules/css-modules)
// using the extension .module.css
{
test: cssModuleRegex,
use: getStyleLoaders({
importLoaders: 1,
modules: true,
getLocalIdent: getCSSModuleLocalIdent,
}),
},
// Opt-in support for SASS (using .scss or .sass extensions).
// Chains the sass-loader with the css-loader and the style-loader
// to immediately apply all styles to the DOM.
// By default we support SASS Modules with the
// extensions .module.scss or .module.sass
{
test: sassRegex,
exclude: sassModuleRegex,
use: getStyleLoaders({ importLoaders: 2 }, 'sass-loader'),
},
// Adds support for CSS Modules, but using SASS
// using the extension .module.scss or .module.sass
{
test: sassModuleRegex,
use: getStyleLoaders(
{
importLoaders: 2,
modules: true,
getLocalIdent: getCSSModuleLocalIdent,
},
'sass-loader',
),
},
// Adds support for LESS files, using `less-loader`
{
test: lessRegex,
use: getStyleLoaders({ javascriptEnabled: true }, 'less-loader'),
},
// "file" loader makes sure those assets get served by WebpackDevServer.
// When you `import` an asset, you get its (virtual) filename.
// In production, they would get copied to the `build` folder.
// This loader doesn't use a "test" so it will catch all modules
// that fall through the other loaders.
{
// Exclude `js` files to keep "css" loader working as it injects
// its runtime that would otherwise be processed through "file" loader.
// Also exclude `html` and `json` extensions so they get processed
// by webpacks internal loaders.
exclude: [/\.(js|mjs|jsx|ts|tsx|less)$/, /\.html$/, /\.json$/],
loader: require.resolve('file-loader'),
options: {
name: 'static/media/[name].[hash:8].[ext]',
},
},
],
},
// ** STOP ** Are you adding a new loader?
// Make sure to add the new loader(s) before the "file" loader.
],
},
plugins: [
// Generates an `index.html` file with the <script> injected.
new HtmlWebpackPlugin({
inject: true,
template: paths.appHtml,
}),
// Makes some environment variables available in index.html.
// The public URL is available as %PUBLIC_URL% in index.html, e.g.:
// <link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico">
// In development, this will be an empty string.
new InterpolateHtmlPlugin(HtmlWebpackPlugin, env.raw),
// This gives some necessary context to module not found errors, such as
// the requesting resource.
new ModuleNotFoundPlugin(paths.appPath),
// Makes some environment variables available to the JS code, for example:
// if (process.env.NODE_ENV === 'development') { ... }. See `./env.js`.
new webpack.DefinePlugin(env.stringified),
// This is necessary to emit hot updates (currently CSS only):
new webpack.HotModuleReplacementPlugin(),
// Watcher doesn't work well if you mistype casing in a path so we use
// a plugin that prints an error when you attempt to do this.
// See https://github.com/facebook/create-react-app/issues/240
new CaseSensitivePathsPlugin(),
// If you require a missing module and then `npm install` it, you still have
// to restart the development server for Webpack to discover it. This plugin
// makes the discovery automatic so you don't have to restart.
// See https://github.com/facebook/create-react-app/issues/186
new WatchMissingNodeModulesPlugin(paths.appNodeModules),
// Moment.js is an extremely popular library that bundles large locale files
// by default due to how Webpack interprets its code. This is a practical
// solution that requires the user to opt into importing specific locales.
// https://github.com/jmblog/how-to-optimize-momentjs-with-webpack
// You can remove this if you don't use Moment.js:
new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/),
// Generate a manifest file which contains a mapping of all asset filenames
// to their corresponding output file so that tools can pick it up without
// having to parse `index.html`.
new ManifestPlugin({
fileName: 'asset-manifest.json',
publicPath: publicPath,
}),
// TypeScript type checking
useTypeScript &&
new ForkTsCheckerWebpackPlugin({
typescript: resolve.sync('typescript', {
basedir: paths.appNodeModules,
}),
async: false,
checkSyntacticErrors: true,
tsconfig: paths.appTsConfig,
compilerOptions: {
module: 'esnext',
moduleResolution: 'node',
resolveJsonModule: true,
isolatedModules: true,
noEmit: true,
jsx: 'preserve',
},
reportFiles: [
'**',
'!**/*.json',
'!**/__tests__/**',
'!**/?(*.)(spec|test).*',
'!src/setupProxy.js',
'!src/setupTests.*',
],
watch: paths.appSrc,
silent: true,
formatter: typescriptFormatter,
}),
].filter(Boolean),
// Some libraries import Node modules but don't use them in the browser.
// Tell Webpack to provide empty mocks for them so importing them works.
node: {
dgram: 'empty',
fs: 'empty',
net: 'empty',
tls: 'empty',
child_process: 'empty',
},
// Turn off performance processing because we utilize
// our own hints via the FileSizeReporter
performance: false,
};
|
import { expect } from 'chai';
import request from 'supertest';
import app from '../../../config/express';
import * as UserController from '../user/userController';
import { USER_MOCK } from '../../../../test/mocks';
describe('Auth', () => {
before((done) => {
UserController.deleteUserByEmail(USER_MOCK.email)
.then(() => UserController.addUser(USER_MOCK)
.then(() => done()));
});
after((done) => {
UserController.deleteUserByEmail(USER_MOCK.email)
.then(() => done());
});
describe('POST /api/auth/login', () => {
it('Should login', (done) => {
request(app)
.post('/api/auth/login')
.send({
email: USER_MOCK.email,
password: USER_MOCK.password,
})
.expect(200)
.expect((res) => {
expect(res.body.status).to.be.equal('ok');
expect(res.body.message).to.haveOwnProperty('token');
})
// eslint-disable-next-line no-unused-vars
.end((err, res) => {
if (err) {
return done(err);
}
return done();
});
});
});
});
|
/* eslint-disable no-console */
const chalk = require('chalk');
const webpack = require('webpack');
const paths = require('../internals/paths');
const config = require('../internals/webpack/webpack.prod');
const checkRequiredFiles = require('../utils/checkRequiredFiles');
const FileSizeReporter = require('../utils/FileSizeReporter');
const { measureFileSizesBeforeBuild, printFileSizesAfterBuild } = FileSizeReporter;
// These sizes are pretty large. We'll warn for bundles exceeding them.
const WARN_AFTER_BUNDLE_GZIP_SIZE = 512 * 1024;
const WARN_AFTER_CHUNK_GZIP_SIZE = 1024 * 1024;
// Warn and crash if required files are missing
if (!checkRequiredFiles([paths.appHtml, paths.appIndexJs])) {
process.exit(1);
}
const args = process.argv.slice(2);
const compiler = webpack(config);
console.log('Creating an optimized production build...');
compiler.run((err, stats) => {
if (err) {
console.log(chalk.red('An error occured during compilation.'));
return false;
}
console.log(chalk.green('Compiled successfully.'));
if (args.includes('--silent')) {
return true;
}
measureFileSizesBeforeBuild(paths.appBuild)
.then((previousFileSizes) => {
console.log();
console.log('File sizes after gzip:');
console.log();
printFileSizesAfterBuild(
stats,
previousFileSizes,
paths.appBuild,
WARN_AFTER_BUNDLE_GZIP_SIZE,
WARN_AFTER_CHUNK_GZIP_SIZE
);
console.log();
});
return true;
});
|
var browserSync = require("../../../../");
var request = require("supertest");
var assert = require("chai").assert;
describe("E2E server test", function() {
this.timeout(5000);
var instance;
before(function(done) {
browserSync.reset();
var config = {
server: {
baseDir: "test/fixtures",
index: "index.htm"
},
ghostMode: {
clicks: false,
scroll: false
},
logLevel: "silent",
open: false,
files: ["*.html"]
};
instance = browserSync(config, function(err) {
if (err) {
throw err;
}
done();
}).instance;
});
after(function() {
instance.cleanup();
});
it("serves files with the snippet added", function(done) {
assert.isString(instance.options.get("snippet"));
request(instance.server)
.get("/index.html")
.set("accept", "text/html")
.expect(200)
.end(function(err, res) {
assert.include(res.text, instance.options.get("snippet"));
done();
});
});
it("serves the client script", function(done) {
request(instance.server)
.get(instance.options.getIn(["scriptPaths", "versioned"]))
.expect(200)
.end(function(err, res) {
assert.include(res.text, "Connected to BrowserSync");
done();
});
});
});
|
export { default as timeFormatDefaultLocale, timeFormat, timeParse, utcFormat, utcParse } from "./src/defaultLocale.js";
export { default as timeFormatLocale } from "./src/locale.js";
export { default as isoFormat } from "./src/isoFormat.js";
export { default as isoParse } from "./src/isoParse.js";
|
function objectifyForm(formArray) {//serialize data function
var returnArray = {};
for (var i = 0; i < formArray.length; i++) {
returnArray[formArray[i]['name']] = formArray[i]['value'];
}
return returnArray;
}
function populateMembersSelect(membersArr) {
let $members_select = $("#members_select")
for(let i = 0; i < membersArr.length; i++){
$members_select.append(`<option value="${membersArr[i]}">${membersArr[i]}</option>`)
}
}
$(document).ready(function () {
$(function () {
$.ajax({
type: "GET",
url: "/bot/members",
contentType: "application/json",
success: function(data, textStatus, xhr) {
let $form = $("form#send-form")
let $cont = $("#no_members_container")
membersArr = data.members
if(membersArr.length == 0) {
$form.hide()
$cont.show()
}else{
$cont.hide()
$form.show()
populateMembersSelect(membersArr)
}
}
})
var frm = $('#send-form');
frm.submit(function (ev) {
ev.preventDefault();
obj = objectifyForm(frm.serializeArray())
if (obj.text.length > 250) {
alert("Texto muy grande")
return;
}
$.ajax({
type: frm.attr('method'),
url: frm.attr('action'),
data: JSON.stringify(obj),
contentType: "application/json",
success: function (data, textStatus, xhr) {
$("input#text").val("")
$("input#member_name").val("")
alert(data.message)
}
});
});
});
})
|
var Typer = {
text: '',
accessCountimer: null,
index: 0,
speed: 2,
file: '',
accessCount: 0,
deniedCount: 0,
init: function () {
accessCountimer = setInterval(function () {
Typer.updLstChr();
}, 500);
$.get(Typer.file, function (data) {
Typer.text = data;
Typer.text = Typer.text.slice(0, Typer.text.length - 1);
});
},
content: function () {
return $('#console').html();
},
write: function (str) {
$('#console').append(str);
return false;
},
addText: function (key) {
if (key.keyCode == 18) {
Typer.accessCount++;
if (Typer.accessCount >= 3) {
Typer.makeAccess();
}
} else if (key.keyCode == 20) {
Typer.deniedCount++;
if (Typer.deniedCount >= 3) {
Typer.makeDenied();
}
} else if (key.keyCode == 27) {
Typer.hidepop();
} else if (Typer.text) {
var cont = Typer.content();
if (cont.substring(cont.length - 1, cont.length) == '|')
$('#console').html(
$('#console')
.html()
.substring(0, cont.length - 1),
);
if (key.keyCode != 8) {
Typer.index += Typer.speed;
} else {
if (Typer.index > 0) Typer.index -= Typer.speed;
}
var text = Typer.text.substring(0, Typer.index);
var rtn = new RegExp('\n', 'g');
$('#console').html(text.replace(rtn, '<br/>'));
window.scrollBy(0, 50);
}
if (key.preventDefault && key.keyCode != 122) {
key.preventDefault();
}
if (key.keyCode != 122) {
// otherway prevent keys default behavior
key.returnValue = false;
}
},
updLstChr: function () {
var cont = this.content();
if (cont.substring(cont.length - 1, cont.length) == '|')
$('#console').html(
$('#console')
.html()
.substring(0, cont.length - 1),
);
else this.write('|'); // else write it
},
};
function replaceUrls(text) {
var http = text.indexOf('http://');
var space = text.indexOf('.me ', http);
if (space != -1) {
var url = text.slice(http, space - 1);
return text.replace(url, '<a href="' + url + '">' + url + '</a>');
} else {
return text;
}
}
Typer.speed = 3;
Typer.file = 'vovacha.txt';
Typer.init();
var timer = setInterval('t();', 30);
function t() {
Typer.addText({ keyCode: 123748 });
if (Typer.index > Typer.text.length) {
clearInterval(timer);
}
}
|
'use strict';
requireApp('homescreen/test/unit/mock_app.js');
// import both MockPage and MockDock
requireApp('homescreen/test/unit/mock_page.js');
require('/shared/js/screen_layout.js');
requireApp('homescreen/js/dock.js');
var mocksHelper = new MocksHelper([
'Page',
'Dock'
]);
mocksHelper.init();
suite('dock.js >', function() {
var wrapperNode;
var dock;
var dockContainer;
var iconsContainer;
var tapThreshold = 10;
var defaultGridGetIcon;
var tinyImage = 'data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///' +
'ywAAAAAAQABAAACAUwAOw==';
suiteSetup(function() {
mocksHelper.suiteSetup();
});
suiteTeardown(function() {
mocksHelper.suiteTeardown();
});
setup(function() {
mocksHelper.setup();
setupDom();
});
teardown(function() {
mocksHelper.teardown();
});
function setupDom() {
var fakeMarkup =
'<div id="fake-icon-name-wrapper">' +
'<div id="fake-icon-name">' +
'</div>' +
'<div class="dockWrapper"></div>';
wrapperNode = document.createElement('div');
wrapperNode.id = 'footer';
wrapperNode.innerHTML = fakeMarkup;
document.body.appendChild(wrapperNode);
iconsContainer = document.createElement('ol');
dockContainer = document.querySelector('.dockWrapper');
}
function teardownDom() {
wrapperNode.parentNode.removeChild(wrapperNode);
}
suite('with 1 icon >', function() {
setup(function() {
MockPage.mIcons = [new MockIcon()];
dock = new MockDock(dockContainer);
DockManager.init(dockContainer, dock, tapThreshold);
});
teardown(teardownDom);
test('looks ok', function() {
assert.isFalse(DockManager.isFull());
});
test('#calculateDimentions', function() {
DockManager.calculateDimentions(dock.getNumIcons());
console.log('The dock width should be equal to 16 according to mockup: ' +
DockManager.cellWidth);
assert.isTrue(DockManager.cellWidth > 0);
});
test('dock is not scrollable', function() {
assert.isFalse(dockContainer.classList.contains('scrollable'));
});
test('moveBy was called', function() {
assert.ok(MockDock.mMoveByArg);
});
});
suite('with 0 icons >', function() {
setup(function() {
MockPage.mIcons = [];
dock = new MockDock(dockContainer);
DockManager.init(dockContainer, dock, tapThreshold);
});
teardown(teardownDom);
test('looks ok', function() {
assert.isFalse(DockManager.isFull());
assert.equal(dock.getNumIcons(), 0);
});
test('#calculateDimentions', function() {
DockManager.calculateDimentions(dock.getNumIcons());
assert.equal(DockManager.cellWidth, 0);
});
test('dock is not scrollable', function() {
assert.isFalse(dockContainer.classList.contains('scrollable'));
});
test('moveBy was called', function() {
assert.ok(MockDock.mMoveByArg);
});
});
suite('with more than 4 icons >', function() {
setup(function() {
MockPage.mIcons = [
new MockIcon(),
new MockIcon(),
new MockIcon(),
new MockIcon(),
new MockIcon()
];
dock = new MockDock(dockContainer);
DockManager.init(dockContainer, dock, tapThreshold);
});
test('dock is scrollable', function() {
assert.ok(dockContainer.classList.contains('scrollable'));
});
test('moveBy was not called', function() {
assert.isUndefined(MockDock.mMoveByArg);
});
});
});
|
import { GET_CATEGORY } from "./types";
import { getCategories } from "../services/categoryService";
export const getCategoriesAction = () => (dispatch) => {
return new Promise((resolve, reject) => {
getCategories()
.then((res) => {
dispatch({
type: GET_CATEGORY,
payload: res.data
});
resolve(res);
})
.catch((err) => reject(err));
});
};
|
/*!
* CanJS - 2.3.27
* http://canjs.com/
* Copyright (c) 2016 Bitovi
* Thu, 15 Sep 2016 21:14:18 GMT
* Licensed MIT
*/
/*can@2.3.27#map/delegate/delegate*/
var can = require('../../util/util.js');
require('../map.js');
var delegateMatches = function (parts, props) {
var len = parts.length, i = 0, matchedProps = [], prop;
for (i; i < len; i++) {
prop = props[i];
if (typeof prop !== 'string') {
return null;
} else if (parts[i] === '**') {
return props.join('.');
} else if (parts[i] === '*') {
matchedProps.push(prop);
} else if (prop === parts[i]) {
matchedProps.push(prop);
} else {
return null;
}
}
return matchedProps.join('.');
}, delegateHandler = function (event, prop, how, newVal, oldVal) {
var props = prop.split('.'), delegates = (this._observe_delegates || []).slice(0), delegate, attr, matchedAttr, hasMatch, valuesEqual;
event.attr = prop;
event.lastAttr = props[props.length - 1];
for (var i = 0; delegate = delegates[i++];) {
if (event.batchNum && delegate.batchNum === event.batchNum || delegate.undelegated) {
continue;
}
hasMatch = undefined;
valuesEqual = true;
for (var a = 0; a < delegate.attrs.length; a++) {
attr = delegate.attrs[a];
matchedAttr = delegateMatches(attr.parts, props);
if (matchedAttr) {
hasMatch = matchedAttr;
}
if (attr.value && valuesEqual) {
valuesEqual = attr.value === '' + this.attr(attr.attr);
} else if (valuesEqual && delegate.attrs.length > 1) {
valuesEqual = this.attr(attr.attr) !== undefined;
}
}
if (hasMatch && valuesEqual) {
var from = prop.replace(hasMatch + '.', '');
if (event.batchNum) {
delegate.batchNum = event.batchNum;
}
if (delegate.event === 'change') {
prop = from;
event.curAttr = hasMatch;
delegate.callback.apply(this.attr(hasMatch), can.makeArray(arguments));
} else if (delegate.event === how) {
delegate.callback.apply(this.attr(hasMatch), [
event,
newVal,
oldVal,
from
]);
} else if (delegate.event === 'set' && how === 'add') {
delegate.callback.apply(this.attr(hasMatch), [
event,
newVal,
oldVal,
from
]);
}
}
}
};
can.extend(can.Map.prototype, {
delegate: function (selector, event, handler) {
selector = can.trim(selector);
var delegates = this._observe_delegates || (this._observe_delegates = []), attrs = [], selectorRegex = /([^\s=,]+)(?:=("[^",]*"|'[^',]*'|[^\s"',]*))?(,?)\s*/g, matches;
while ((matches = selectorRegex.exec(selector)) !== null) {
if (matches[2] && can.inArray(matches[2].substr(0, 1), [
'"',
'\''
]) >= 0) {
matches[2] = matches[2].substr(1, -1);
}
attrs.push({
attr: matches[1],
parts: matches[1].split('.'),
value: matches[2],
or: matches[3] === ','
});
}
delegates.push({
selector: selector,
attrs: attrs,
callback: handler,
event: event
});
if (delegates.length === 1) {
this.bind('change', delegateHandler);
}
return this;
},
undelegate: function (selector, event, handler) {
selector = selector && can.trim(selector);
var i = 0, delegates = this._observe_delegates || [], delegateOb;
if (selector) {
while (i < delegates.length) {
delegateOb = delegates[i];
if (delegateOb.callback === handler || !handler && delegateOb.selector === selector) {
delegateOb.undelegated = true;
delegates.splice(i, 1);
} else {
i++;
}
}
} else {
delegates = [];
}
if (!delegates.length) {
this.unbind('change', delegateHandler);
}
return this;
}
});
can.Map.prototype.delegate.matches = delegateMatches;
module.exports = can.Map;
|
'use strict';
const webpack = require('webpack');
const webpackMiddleware = require('webpack-dev-middleware');
const webpackHotMiddleware = require('webpack-hot-middleware');
const webpackConfig = require('./webpack.config.js');
module.exports = function (app) {
const compiler = webpack(webpackConfig);
const middleware = webpackMiddleware(compiler, {
publicPath: webpackConfig.output.publicPath,
contentBase: 'src',
stats: {
colors: true,
hash: false,
timings: true,
chunks: false,
chunkModules: false,
modules: false
}
});
app.use(middleware);
app.use(webpackHotMiddleware(compiler));
};
|
Package.describe({
name: 'kit:cssnext',
version: '1.0.2',
summary: 'Transpile CSS4 to CSS3',
git: 'https://github.com/cwaring/meteor-cssnext',
documentation: 'README.md'
});
Package.onUse(function(api) {
api.versionsFrom('1.2.0.2');
api.use('isobuild:compiler-plugin@1.0.0');
api.use(['ecmascript'], ['server']);
api.addFiles('compiler.js', 'server');
api.export('CssnextCompiler', 'server');
});
var npmDependencies = {
"cssnext": "1.8.4"
}
Npm.depends(npmDependencies)
Package.registerBuildPlugin({
name: 'cssnext',
use: ['ecmascript'],
sources: [
'compiler.js',
'plugin/cssnext.js'
],
npmDependencies: npmDependencies
});
|
import { Stepper, Step, StepLabel, Typography } from "@mui/material";
const steps = ['Select', 'Checkout', 'Done'];
const BookStepper = ({ active }) => {
return (
<Stepper activeStep={active} sx={{py:"10px"}}>
{steps.map((label, index) => {
return (
<Step key={label}>
<StepLabel sx={{
'.css-1vghyz3-MuiSvgIcon-root-MuiStepIcon-root': {
fontSize:'2.5em'
}
}}><Typography variant='h6' color='primary'>{label}</Typography></StepLabel>
</Step>
);
})}
</Stepper>
)
}
export default BookStepper;
|
const path = require('path')
const webpack = require('webpack')
module.exports = {
entry: {
app: './js/app.js',
},
output: {
path: path.resolve(__dirname, 'js'),
filename: 'build.js',
},
resolveLoader: {
root: path.join(__dirname, 'node_modules'),
},
resolve: {
extensions: ['', '.js', '.vue'],
fallback: [path.join(__dirname, 'node_modules')],
alias: {
bulma: path.resolve(__dirname, 'node_modules/bulma/css/bulma.css'),
fa: path.resolve(__dirname, './node_modules/font-awesome/css/font-awesome.min.css')
}
},
module: {
loaders: [
{
test: /\.vue$/,
loader: 'vue',
},
{
test: /\.js$/,
loader: 'babel',
exclude: /node_modules/,
},
{
test: /\.css$/,
loader: "style-loader!css-loader"
},
{
test: /\.(png|jpg|gif|woff|woff2|eot|ttf|svg)$/,
loader: 'url-loader',
},
{
test: /\.(png|jpg|gif|woff|woff2|eot|ttf|svg)\?.*$/,
loader: 'url-loader',
},
]
},
babel: {
presets: ['es2015'],
plugins: ['transform-runtime'],
},
}
|
function ages(num) {
let person = "";
if (num >= 0 && num <= 2) {
person = "baby";
} else if (num >= 3 && num <= 13) {
person = "child";
} else if (num >= 14 && num <= 19) {
person = "teenager";
} else if (num >= 20 && num <= 65) {
person = "adult";
} else {
person = "elder";
}
console.log(person);
}
ages(20)
|
export function register(app, updateSettings) {
game.settings.register(app,'ignorePassiveFeats', {
name: game.i18n.localize('tokenactionhud.settings.dnd5e.ignorePassiveFeats.name'),
hint: game.i18n.localize('tokenactionhud.settings.dnd5e.ignorePassiveFeats.hint'),
scope: "client",
config: true,
type: Boolean,
default: false,
onChange: value => { updateSettings(value); }
});
game.settings.register(app,'abbreviateSkills', {
name: game.i18n.localize('tokenactionhud.settings.dnd5e.abbreviateSkills.name'),
hint: game.i18n.localize('tokenactionhud.settings.dnd5e.abbreviateSkills.hint'),
scope: "client",
config: true,
type: Boolean,
default: false,
onChange: value => { updateSettings(value); }
});
game.settings.register(app,'showEmptyItems', {
name: game.i18n.localize('tokenactionhud.settings.dnd5e.showEmptyItems.name'),
hint: game.i18n.localize('tokenactionhud.settings.dnd5e.showEmptyItems.hint'),
scope: "client",
config: true,
type: Boolean,
default: false,
onChange: value => { updateSettings(value); }
});
}
|
// 加载评论
$.getJSON("getStockAppraiseList.php?stockId=" + _stockId + "&index=0&length=3", function(data) {
if (data.status = "0") {
//$("#commentCount").html(data.result.count);
var comStr = "";
$.each(data.result.appraiseStockVoList, function(i, e) {
comStr += '<div class="item">\
<div class="wbox">\
<img src="' + (e.customer.avatar ? e.customer.avatar : "http://static.qiakr.com/mall/default-photo.png") + '" class="size43 round mr10">\
<div class="wbox-1 lh22">\
<div>\
' + (e.customer.name ? e.customer.name : "匿名") + '<div class="appProgress ml5"><span class="val" style="width:' + (e.appraiseStock.stars * 20).toFixed(2) + '%"></span></div>\
</div>\
<div class="fc-grey fs12">' + getLocalTime(e.appraiseStock.gmtCreate) + '</div>\
</div>\
</div>\
<div class="fc-grey pt5">' + e.appraiseStock.comment + '</div>\
</div>';
});
$(".appriseBox .cont").html(comStr);
}
});
|
const _ = require('lodash');
const UiApp = require('./UiApp');
const Collection = require('requirefrom')('src')('utils/Collection');
const byIdCache = Symbol('byId');
module.exports = class UiAppCollection extends Collection {
constructor(uiExports, parent) {
super();
this.uiExports = uiExports;
if (!parent) {
this.claimedIds = [];
this.hidden = new UiAppCollection(uiExports, this);
} else {
this.claimedIds = parent.claimedIds;
}
}
new(spec) {
if (this.hidden && spec.hidden) {
return this.hidden.new(spec);
}
const app = new UiApp(this.uiExports, spec);
if (_.includes(this.claimedIds, app.id)) {
throw new Error('Unable to create two apps with the id ' + app.id + '.');
} else {
this.claimedIds.push(app.id);
}
this[byIdCache] = null;
this.add(app);
return app;
}
get byId() {
return this[byIdCache] || (this[byIdCache] = _.indexBy([...this], 'id'));
}
};
|
import Vue from 'vue'
import router from './router'
import Popup from './Popup.vue'
let popup = new Vue({
el: '#popup',
render: (createElement) => createElement(Popup),
router
})
|
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const React = require("react");
const wrapIcon_1 = require("../utils/wrapIcon");
const rawSvg = (iconProps) => {
const { className, primaryFill } = iconProps;
return React.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", className: className },
React.createElement("path", { d: "M9 1.75a.75.75 0 011.5 0v1.27a2 2 0 011.24.57l3.53 3.54a2 2 0 010 2.83l-4.24 4.24a2 2 0 01-2.83 0l-3.54-3.54a2 2 0 010-2.82l4.25-4.25.09-.08V1.75zm0 4.5v-.63l-2.89 2.9h8.25a.5.5 0 00-.15-.33l-3.54-3.54a.5.5 0 00-.17-.11v1.71a.75.75 0 11-1.5 0zm-2.87 3.76l3.13 3.13c.2.2.51.2.7 0L13.1 10H6.13z", fill: primaryFill }),
React.createElement("path", { d: "M6.59 14H4.5A2.5 2.5 0 002 16.5v3A2.5 2.5 0 004.5 22h15a2.5 2.5 0 002.5-2.5v-3a2.5 2.5 0 00-2.02-2.45 3.5 3.5 0 01-.17 1.5c.4.13.69.5.69.95v3a1 1 0 01-1 1h-15a1 1 0 01-1-1v-3a1 1 0 011-1h3.83a3 3 0 01-.84-.6l-.9-.9z", fill: primaryFill }),
React.createElement("path", { d: "M14 14.38c0-.5.15-.98.34-1.39.2-.41.44-.8.68-1.13.23-.33.47-.61.64-.81l.3-.32.01-.01c.3-.3.77-.3 1.06 0l.3.33A6.98 6.98 0 0118.66 13c.2.4.35.88.35 1.38 0 1.39-1.03 2.62-2.5 2.62S14 15.77 14 14.37zm2.77-1.65a8.42 8.42 0 00-.27-.35 8.42 8.42 0 00-.8 1.24c-.14.3-.2.56-.2.76 0 .69.48 1.12 1 1.12s1-.43 1-1.13c0-.19-.06-.44-.2-.75a5.5 5.5 0 00-.53-.89z", fill: primaryFill }));
};
const ColorFill24Regular = wrapIcon_1.default(rawSvg({}), 'ColorFill24Regular');
exports.default = ColorFill24Regular;
|
/**!
* RedRaphael 1.0.0 - JavaScript Vector Library SVG Module
* Copyright (c) 2012-2013 FusionCharts Technologies <http://www.fusioncharts.com>
*
* Raphael 2.1.0 - JavaScript Vector Library SVG Module
* Copyright (c) 2008-2012 Dmitry Baranovskiy <http://raphaeljs.com>
* Copyright © 2008-2012 Sencha Labs <http://sencha.com>
*
* Licensed under the MIT license.
*/
window.Raphael && window.Raphael.svg && function(R) {
var has = "hasOwnProperty",
Str = String,
toFloat = parseFloat,
toInt = parseInt,
math = Math,
mmax = math.max,
abs = math.abs,
pow = math.pow,
sqrt = math.sqrt,
separator = /[, ]+/,
zeroStrokeFix = !!(/AppleWebKit/.test(R._g.win.navigator.userAgent) &&
(!/Chrome/.test(R._g.win.navigator.userAgent) ||
R._g.win.navigator.appVersion.match(/Chrome\/(\d+)\./)[1] < 29)),
eve = R.eve,
E = "",
S = " ",
xlink = "http://www.w3.org/1999/xlink",
markers = {
block: "M5,0 0,2.5 5,5z",
classic: "M5,0 0,2.5 5,5 3.5,3 3.5,2z",
diamond: "M2.5,0 5,2.5 2.5,5 0,2.5z",
open: "M6,1 1,3.5 6,6",
oval: "M2.5,0A2.5,2.5,0,0,1,2.5,5 2.5,2.5,0,0,1,2.5,0z"
},
markerCounter = {},
updateReferenceUrl = function () {
return R._url = R._g.win.location.href.replace(/#.*?$/, E);
};
R.toString = function() {
return "Your browser supports SVG.\nYou are running Rapha\xebl " + this.version;
};
// Code commented as resources will now be referenced using relative urls.
// @todo Remove once we have acertained that there are no issues in any environment.
// Automatic gradient and other reference update on state change
// R._url = (/msie/i.test(navigator.userAgent) && !window.opera) ?
// E : updateReferenceUrl();
// if (R._url && R._g.win.history.pushState) {
// R._g.win.history.pushState = (function () {
// var fn = R._g.win.history.pushState;
// return function () {
// var ret = fn.apply(R._g.win.history, arguments);
// return updateReferenceUrl(), ret;
// };
// }());
// R._g.win.addEventListener("popstate", updateReferenceUrl, false);
// }
R._url = E;
var updateGradientReference = function (element, newGradient) {
var gradient = element.gradient;
if (gradient) {
if (gradient === newGradient) {
return; // no change
}
// else gradient is specified and it is not same as newGradient, implying a dereference
gradient.refCount--;
if (!gradient.refCount) {
gradient.parentNode.removeChild(gradient);
}
delete element.gradient;
}
if (newGradient) { // add new gradient
element.gradient = newGradient;
newGradient.refCount++;
}
};
var $ = R._createNode = function(el, attr) {
if (attr) {
if (typeof el == "string") {
el = $(el);
}
for (var key in attr)
if (attr[has](key)) {
if (key.substring(0, 6) == "xlink:") {
el.setAttributeNS(xlink, key.substring(6), Str(attr[key]));
} else {
el.setAttribute(key, Str(attr[key]));
}
}
} else {
el = R._g.doc.createElementNS("http://www.w3.org/2000/svg", el);
}
return el;
},
gradientUnitNames = {
userSpaceOnUse: 'userSpaceOnUse',
objectBoundingBox: 'objectBoundingBox'
},
gradientSpreadNames = {
pad: 'pad',
redlect: 'reflect',
repeat: 'repeat'
},
addGradientFill = function(element, gradient) {
if (!element.paper || !element.paper.defs) {
return 0;
}
var type = "linear",
SVG = element.paper,
id = (SVG.id + '-' + gradient).replace(/[\(\)\s%:,\xb0#]/g, "_"),
fx = .5, fy = .5, r, cx, cy, units, spread,
o = element.node,
s = o.style,
el = R._g.doc.getElementById(id);
if (!el) {
gradient = Str(gradient).replace(R._radial_gradient, function(all, opts) {
type = "radial";
opts = opts && opts.split(',') || [];
units = opts[5];
spread = opts[6];
var _fx = opts[0],
_fy = opts[1],
_r = opts[2],
_cx = opts[3],
_cy = opts[4],
shifted = (_fx && _fy),
dir,
sqx;
if (_r) {
r = /\%/.test(_r) ? _r : toFloat(_r);
}
if (units === gradientUnitNames.userSpaceOnUse) {
if (shifted) {
fx = _fx;
fy = _fy;
}
if (_cx && _cy) {
cx = _cx;
cy = _cy;
if (!shifted) {
fx = cx;
fy = cy;
}
}
return E;
}
if (shifted) {
fx = toFloat(_fx);
fy = toFloat(_fy);
dir = ((fy > .5) * 2 - 1);
(sqx = pow(fx - .5, 2)) + pow(fy - .5, 2) > .25 &&
(sqx < .25) && (fy = sqrt(.25 - sqx) * dir + .5) &&
fy !== .5 &&
(fy = fy.toFixed(5) - 1e-5 * dir);
}
if (_cx && _cy) {
cx = toFloat(_cx);
cy = toFloat(_cy);
dir = ((cy > .5) * 2 - 1);
(sqx = pow(cx - .5, 2)) + pow(cy - .5, 2) > .25 &&
(sqx < .25) && (cy = sqrt(.25 - sqx) * dir + .5) &&
cy !== .5 &&
(cy = cy.toFixed(5) - 1e-5 * dir);
if (!shifted) {
fx = cx;
fy = cy;
}
}
return E;
});
gradient = gradient.split(/\s*\-\s*/);
if (type == "linear") {
var angle = gradient.shift(),
specs = angle.match(/\((.*)\)/),
vector,
max;
specs = specs && specs[1] && specs[1].split(/\s*\,\s*/);
angle = -toFloat(angle);
if (isNaN(angle)) {
return null;
}
if (specs && specs.length) {
if (specs[0] in gradientUnitNames) {
units = specs.shift();
(specs[0] in gradientSpreadNames) &&
(spread = specs.shift());
}
else {
specs[4] && (units = specs[4]);
specs[5] && (spread = specs[5]);
}
/** @todo apply angle rotation and validation */
vector = [
specs[0] || "0%", specs[1] || "0%",
specs[2] || "100%", specs[3] || "0%"
];
}
else {
vector = [0, 0, math.cos(R.rad(angle)), math.sin(R.rad(angle))];
max = 1 / (mmax(abs(vector[2]), abs(vector[3])) || 1);
vector[2] *= max;
vector[3] *= max;
if (vector[2] < 0) {
vector[0] = -vector[2];
vector[2] = 0;
}
if (vector[3] < 0) {
vector[1] = -vector[3];
vector[3] = 0;
}
}
}
var dots = R._parseDots(gradient);
if (!dots) {
return null;
}
el = $(type + "Gradient", {
id: id
});
el.refCount = 0;
(units in gradientUnitNames) &&
el.setAttribute('gradientUnits', Str(units));
(spread in gradientSpreadNames) &&
el.setAttribute('spreadMethod', Str(spread));
if (type === "radial") {
(r !== undefined) && el.setAttribute('r', Str(r));
if (cx !== undefined && cy !== undefined) {
el.setAttribute('cx', Str(cx));
el.setAttribute('cy', Str(cy));
}
el.setAttribute('fx', Str(fx));
el.setAttribute('fy', Str(fy));
}
else {
$(el, {
x1: vector[0],
y1: vector[1],
x2: vector[2],
y2: vector[3]
});
}
for (var i = 0, ii = dots.length; i < ii; i++) {
el.appendChild($("stop", {
offset: dots[i].offset ? dots[i].offset : i ? "100%" : "0%",
"stop-color": dots[i].color || "#fff",
//add stop opacity information
"stop-opacity": dots[i].opacity === undefined ? 1 : dots[i].opacity
}));
}
SVG.defs.appendChild(el);
}
updateGradientReference(element, el);
$(o, {
fill: "url('" + R._url + "#" + id + "')",
opacity: 1,
"fill-opacity": 1
});
s.fill = E;
s.opacity = 1;
s.fillOpacity = 1;
return 1;
},
updatePosition = function(o) {
var bbox = o.getBBox(1);
$(o.pattern, {
patternTransform: o.matrix.invert() + " translate(" + bbox.x + "," + bbox.y + ")"
});
},
addArrow = function(o, value, isEnd) {
if (o.type == "path") {
var values = Str(value).toLowerCase().split("-"),
p = o.paper,
se = isEnd ? "end" : "start",
node = o.node,
attrs = o.attrs,
stroke = attrs["stroke-width"],
i = values.length,
type = "classic",
from,
to,
dx,
refX,
attr,
w = 3,
h = 3,
t = 5;
while (i--) {
switch (values[i]) {
case "block":
case "classic":
case "oval":
case "diamond":
case "open":
case "none":
type = values[i];
break;
case "wide":
h = 5;
break;
case "narrow":
h = 2;
break;
case "long":
w = 5;
break;
case "short":
w = 2;
break;
}
}
if (type == "open") {
w += 2;
h += 2;
t += 2;
dx = 1;
refX = isEnd ? 4 : 1;
attr = {
fill: "none",
stroke: attrs.stroke
};
} else {
refX = dx = w / 2;
attr = {
fill: attrs.stroke,
stroke: "none"
};
}
if (o._.arrows) {
if (isEnd) {
o._.arrows.endPath && markerCounter[o._.arrows.endPath]--;
o._.arrows.endMarker && markerCounter[o._.arrows.endMarker]--;
} else {
o._.arrows.startPath && markerCounter[o._.arrows.startPath]--;
o._.arrows.startMarker && markerCounter[o._.arrows.startMarker]--;
}
} else {
o._.arrows = {};
}
if (type != "none") {
var pathId = "raphael-marker-" + type,
markerId = "raphael-marker-" + se + type + w + h + "-obj" + o.id;
if (!R._g.doc.getElementById(pathId)) {
p.defs.appendChild($($("path"), {
"stroke-linecap": "round",
d: markers[type],
id: pathId
}));
markerCounter[pathId] = 1;
} else {
markerCounter[pathId]++;
}
var marker = R._g.doc.getElementById(markerId),
use;
if (!marker) {
marker = $($("marker"), {
id: markerId,
markerHeight: h,
markerWidth: w,
orient: "auto",
refX: refX,
refY: h / 2
});
use = $($("use"), {
"xlink:href": "#" + pathId,
transform: (isEnd ? "rotate(180 " + w / 2 + " " + h / 2 + ") " : E) + "scale(" + w / t + "," + h / t + ")",
"stroke-width": (1 / ((w / t + h / t) / 2)).toFixed(4)
});
marker.appendChild(use);
p.defs.appendChild(marker);
markerCounter[markerId] = 1;
} else {
markerCounter[markerId]++;
use = marker.getElementsByTagName("use")[0];
}
$(use, attr);
var delta = dx * (type != "diamond" && type != "oval");
if (isEnd) {
from = o._.arrows.startdx * stroke || 0;
to = R.getTotalLength(attrs.path) - delta * stroke;
} else {
from = delta * stroke;
to = R.getTotalLength(attrs.path) - (o._.arrows.enddx * stroke || 0);
}
attr = {};
attr["marker-" + se] = "url('" + R._url + "#" + markerId + "')";
if (to || from) {
attr.d = R.getSubpath(attrs.path, from, to);
}
$(node, attr);
o._.arrows[se + "Path"] = pathId;
o._.arrows[se + "Marker"] = markerId;
o._.arrows[se + "dx"] = delta;
o._.arrows[se + "Type"] = type;
o._.arrows[se + "String"] = value;
} else {
if (isEnd) {
from = o._.arrows.startdx * stroke || 0;
to = R.getTotalLength(attrs.path) - from;
} else {
from = 0;
to = R.getTotalLength(attrs.path) - (o._.arrows.enddx * stroke || 0);
}
o._.arrows[se + "Path"] && $(node, {
d: R.getSubpath(attrs.path, from, to)
});
delete o._.arrows[se + "Path"];
delete o._.arrows[se + "Marker"];
delete o._.arrows[se + "dx"];
delete o._.arrows[se + "Type"];
delete o._.arrows[se + "String"];
}
for (attr in markerCounter)
if (markerCounter[has](attr) && !markerCounter[attr]) {
var item = R._g.doc.getElementById(attr);
item && item.parentNode.removeChild(item);
}
}
},
dasharray = {
"": [0],
"none": [0],
"-": [3, 1],
".": [1, 1],
"-.": [3, 1, 1, 1],
"-..": [3, 1, 1, 1, 1, 1],
". ": [1, 3],
"- ": [4, 3],
"--": [8, 3],
"- .": [4, 3, 1, 3],
"--.": [8, 3, 1, 3],
"--..": [8, 3, 1, 3, 1, 3]
},
addDashes = function(o, value, params) {
var predefValue = dasharray[Str(value).toLowerCase()],
calculatedValues,
width,
butt,
i,
l,
widthFactor;
value = predefValue || ((value !== undefined) && [].concat(value));
if (value) {
width = o.attrs["stroke-width"] || 1;
butt = {
round: width,
square: width,
butt: 0
}[o.attrs["stroke-linecap"] || params["stroke-linecap"]] || 0;
l = i = value.length;
widthFactor = predefValue ? width : 1;
calculatedValues = [];
while (i--) {
calculatedValues[i] = value[i] * widthFactor + ((i % 2) ? 1 : -1) * butt;
calculatedValues[i] < 0 && (calculatedValues[i] = 0);
}
if (R.is(value, 'array')) {
$(o.node, {
"stroke-dasharray": calculatedValues.join(",")
});
}
}
},
applyCustomAttributes = function (o, attrs) {
for (var key in attrs) {
eve("raphael.attr." + key + "." + o.id, o, attrs[key], key);
o.ca[key] && o.attr(key, attrs[key]);
}
},
setFillAndStroke = R._setFillAndStroke = function(o, params) {
if (!o.paper.canvas) {
return;
}
var node = o.node,
attrs = o.attrs,
paper = o.paper,
s = node.style,
vis = s.visibility;
s.visibility = "hidden";
for (var att in params) {
if (params[has](att)) {
if (!R._availableAttrs[has](att)) {
continue;
}
var value = params[att];
attrs[att] = value;
switch (att) {
case "blur":
o.blur(value);
break;
case "href":
case "title":
case "target":
var pn = node.parentNode;
if (pn.tagName.toLowerCase() != "a") {
if (value == E) { break; }
var hl = $("a");
hl.raphael = true;
hl.raphaelid = node.raphaelid;
pn.insertBefore(hl, node);
hl.appendChild(node);
pn = hl;
}
if (att == "target") {
pn.setAttributeNS(xlink, "show", value == "blank" ? "new" : value);
} else {
pn.setAttributeNS(xlink, att, value);
}
node.titleNode = pn;
break;
case "cursor":
s.cursor = value;
break;
case "transform":
o.transform(value);
break;
case "rotation":
if (R.is(value, "array")) {
o.rotate.apply(o, value);
}
else {
o.rotate(value);
}
break;
case "arrow-start":
addArrow(o, value);
break;
case "arrow-end":
addArrow(o, value, 1);
break;
case "clip-path":
var pathClip = true;
case "clip-rect":
var rect = !pathClip && Str(value).split(separator);
o._.clipispath = !!pathClip;
if (pathClip || rect.length == 4) {
o.clip && o.clip.parentNode.parentNode.removeChild(o.clip.parentNode);
var el = $("clipPath"),
rc = $(pathClip ? "path" : "rect");
el.id = R.createUUID();
$(rc, pathClip ? {
d: value ? attrs['clip-path'] = R._pathToAbsolute(value) : R._availableAttrs.path,
fill: 'none'
} : {
x: rect[0],
y: rect[1],
width: rect[2],
height: rect[3],
transform: o.matrix.invert()
});
el.appendChild(rc);
paper.defs.appendChild(el);
$(node, {
"clip-path": "url('" + R._url +"#" + el.id + "')"
});
o.clip = rc;
}
if (!value) {
var path = node.getAttribute("clip-path");
if (path) {
var clip = R._g.doc.getElementById(path.replace(/(^url\(#|\)$)/g, E));
clip && clip.parentNode.removeChild(clip);
$(node, {
"clip-path": E
});
delete o.clip;
}
}
break;
case "path":
if (o.type == "path") {
$(node, {
d: value ? attrs.path = R._pathToAbsolute(value) : R._availableAttrs.path
});
o._.dirty = 1;
if (o._.arrows) {
"startString" in o._.arrows && addArrow(o, o._.arrows.startString);
"endString" in o._.arrows && addArrow(o, o._.arrows.endString, 1);
}
}
break;
case "width":
node.setAttribute(att, value);
o._.dirty = 1;
if (attrs.fx) {
att = "x";
value = attrs.x;
} else {
break;
}
case "x":
if (attrs.fx) {
value = -attrs.x - (attrs.width || 0);
}
case "rx":
if (att == "rx" && o.type == "rect") {
break;
}
case "cx":
node.setAttribute(att, value);
o.pattern && updatePosition(o);
o._.dirty = 1;
break;
case "height":
node.setAttribute(att, value);
o._.dirty = 1;
if (attrs.fy) {
att = "y";
value = attrs.y;
} else {
break;
}
case "y":
if (attrs.fy) {
value = -attrs.y - (attrs.height || 0);
}
case "ry":
if (att == "ry" && o.type == "rect") {
break;
}
case "cy":
node.setAttribute(att, value);
o.pattern && updatePosition(o);
o._.dirty = 1;
break;
case "r":
if (o.type == "rect") {
$(node, {
rx: value,
ry: value
});
} else {
node.setAttribute(att, value);
}
o._.dirty = 1;
break;
case "src":
if (o.type == "image") {
node.setAttributeNS(xlink, "href", value);
}
break;
case "stroke-width":
if (o._.sx != 1 || o._.sy != 1) {
value /= mmax(abs(o._.sx), abs(o._.sy)) || 1;
}
if (paper._vbSize) {
value *= paper._vbSize;
}
if (zeroStrokeFix && value === 0) {
value = 0.000001;
}
node.setAttribute(att, value);
if (attrs["stroke-dasharray"]) {
addDashes(o, attrs["stroke-dasharray"], params);
}
if (o._.arrows) {
"startString" in o._.arrows && addArrow(o, o._.arrows.startString);
"endString" in o._.arrows && addArrow(o, o._.arrows.endString, 1);
}
break;
case "stroke-dasharray":
addDashes(o, value, params);
break;
case "fill":
var isURL = Str(value).match(R._ISURL);
if (isURL) {
el = $("pattern");
var ig = $("image");
el.id = R.createUUID();
$(el, {
x: 0,
y: 0,
patternUnits: "userSpaceOnUse",
height: 1,
width: 1
});
$(ig, {
x: 0,
y: 0,
"xlink:href": isURL[1]
});
el.appendChild(ig);
(function(el) {
R._preload(isURL[1], function() {
var w = this.offsetWidth,
h = this.offsetHeight;
$(el, {
width: w,
height: h
});
$(ig, {
width: w,
height: h
});
paper.safari();
});
})(el);
paper.defs.appendChild(el);
s.fill = "url('" + R._url + "#" + el.id + "')";
$(node, {
fill: s.fill
});
o.pattern = el;
o.pattern && updatePosition(o);
break;
}
var clr = R.getRGB(value);
if (!clr.error) {
delete params.gradient;
delete attrs.gradient;
!R.is(attrs.opacity, "undefined") &&
R.is(params.opacity, "undefined") &&
$(node, {
opacity: attrs.opacity
});
!R.is(attrs["fill-opacity"], "undefined") &&
R.is(params["fill-opacity"], "undefined") &&
$(node, {
"fill-opacity": attrs["fill-opacity"]
});
o.gradient && updateGradientReference(o);
}
else if ((o.type == "circle" || o.type == "ellipse" || Str(value).charAt() != "r") && addGradientFill(o, value)) {
if ("opacity" in attrs || "fill-opacity" in attrs) {
var gradient = R._g.doc.getElementById(node.getAttribute("fill").replace(/^url\(#|\)$/g, E));
if (gradient) {
var stops = gradient.getElementsByTagName("stop");
$(stops[stops.length - 1], {
"stop-opacity": ("opacity" in attrs ? attrs.opacity : 1) * ("fill-opacity" in attrs ? attrs["fill-opacity"] : 1)
});
}
}
attrs.gradient = value;
attrs.fill = "none";
s.fill = E;
break;
}
if (clr[has]("opacity")) {
$(node, {
"fill-opacity": (s.fillOpacity =
(clr.opacity > 1 ? clr.opacity / 100 : clr.opacity))
});
o._.fillOpacityDirty = true;
}
else if (o._.fillOpacityDirty && R.is(attrs['fill-opacity'], "undefined") &&
R.is(params["fill-opacity"], "undefined")) {
node.removeAttribute('fill-opacity');
s.fillOpacity = E;
delete o._.fillOpacityDirty;
}
case "stroke":
clr = R.getRGB(value);
node.setAttribute(att, clr.hex);
s[att] = clr.hex;
if (att == "stroke") { // remove stroke opacity when stroke is set to none
if (clr[has]("opacity")) {
$(node, {
"stroke-opacity": (s.strokeOpacity =
(clr.opacity > 1 ? clr.opacity / 100 : clr.opacity))
});
o._.strokeOpacityDirty = true;
}
else if (o._.strokeOpacityDirty && R.is(attrs['stroke-opacity'], "undefined") &&
R.is(params["stroke-opacity"], "undefined")) {
node.removeAttribute('stroke-opacity');
s.strokeOpacity = E;
delete o._.strokeOpacityDirty;
}
if (o._.arrows) {
"startString" in o._.arrows && addArrow(o, o._.arrows.startString);
"endString" in o._.arrows && addArrow(o, o._.arrows.endString, 1);
}
}
break;
case "gradient":
(o.type == "circle" || o.type == "ellipse" || Str(value).charAt() != "r") && addGradientFill(o, value);
break;
case 'line-height': // do not apply
case 'vertical-align': // do not apply
break;
case "visibility":
value === 'hidden' ? o.hide() : o.show();
break;
case "opacity":
if (attrs.gradient && !attrs[has]("stroke-opacity")) {
$(node, {
"stroke-opacity": value > 1 ? value / 100 : value
});
}
// fall
case "fill-opacity":
if (attrs.gradient) {
gradient = R._g.doc.getElementById(node.getAttribute("fill").replace(/^url\(#|\)$/g, E));
if (gradient) {
stops = gradient.getElementsByTagName("stop");
$(stops[stops.length - 1], {
"stop-opacity": value
});
}
break;
}
default:
att == "font-size" && (value = toInt(value, 10) + "px");
var cssrule = att.replace(/(\-.)/g, function(w) {
return w.substring(1).toUpperCase();
});
s[cssrule] = value;
o._.dirty = 1;
node.setAttribute(att, value);
break;
}
}
}
(o.type === 'text') && tuneText(o, params);
s.visibility = vis;
},
leading = 1.2,
tuneText = function(el, params) {
if (el.type != "text" || !(params[has]("text") || params[has]("font") ||
params[has]("font-size") || params[has]("x") || params[has]("y") ||
params[has]("line-height") || params[has]("vertical-align"))) {
return;
}
var a = el.attrs,
node = el.node,
computedStyle = node.firstChild && R._g.doc.defaultView.getComputedStyle(node.firstChild, E),
fontSize = computedStyle ?
toFloat(R._g.doc.defaultView.getComputedStyle(node.firstChild, E).getPropertyValue("font-size")) : 10,
lineHeight = toFloat(params['line-height'] || a['line-height']) || fontSize * leading,
valign = a[has]("vertical-align") ? a["vertical-align"] : "middle";
if (isNaN(lineHeight)) {
lineHeight = fontSize * leading;
}
if (R.is(params.text, 'array')) {
params.text = params.text.join('<br>');
}
valign = valign === 'top' ? -0.5 : (valign === 'bottom' ? 0.5 : 0);
if (params[has]("text") && (params.text !== a.text || el._textdirty)) {
a.text = params.text;
while (node.firstChild) {
node.removeChild(node.firstChild);
}
var texts = Str(params.text).split(/\n|<br\s*?\/?>/ig),
tspans = [],
tspan;
for (var i = 0, ii = texts.length; i < ii; i++) {
tspan = $("tspan");
if (i) {
$(tspan, {
dy: lineHeight,
x: a.x
});
} else {
$(tspan, {
dy: lineHeight * texts.length * valign,
x: a.x
});
}
if (!texts[i]) { // preserve blank lines
tspan.setAttributeNS("http://www.w3.org/XML/1998/namespace",
"xml:space","preserve");
texts[i] = " ";
}
tspan.appendChild(R._g.doc.createTextNode(texts[i]));
node.appendChild(tspan);
tspans[i] = tspan;
}
el._textdirty = false;
} else {
tspans = node.getElementsByTagName("tspan");
for (i = 0, ii = tspans.length; i < ii; i++)
if (i) {
$(tspans[i], {
dy: lineHeight,
x: a.x
});
} else {
$(tspans[0], {
dy: lineHeight * tspans.length * valign,
x: a.x
});
}
}
$(node, {
x: a.x,
y: a.y
});
el._.dirty = 1;
var bb = el._getBBox(),
dif = a.y - (bb.y + bb.height / 2);
// If the bbox is calculated then we need to make additional adjustments,
// to account for the fact that the calculated bbox already has the
// text alignment, both horizontal and vertical, included in the calculation.
if (bb.isCalculated) {
switch (a['vertical-align']) {
case "top":
dif = bb.height * .75;
break;
case "bottom":
dif = - (bb.height * .25);
break;
default:
dif = a.y - (bb.y + bb.height * .25);
break;
};
}
dif && R.is(dif, "finite") && tspans[0] && $(tspans[0], {
dy: dif
});
},
Element = function(node, svg, group) {
var o = this,
parent = group || svg;
parent.canvas && parent.canvas.appendChild(node);
o.node = o[0] = node;
node.raphael = true;
node.raphaelid = o.id = R._oid++;
o.matrix = R.matrix();
o.realPath = null;
o.attrs = o.attrs || {};
o.followers = o.followers || [];
o.paper = svg;
o.ca = o.customAttributes = o.customAttributes ||
new svg._CustomAttributes();
o._ = {
transform: [],
sx: 1,
sy: 1,
deg: 0,
dx: 0,
dy: 0,
dirty: 1
};
o.parent = parent;
!parent.bottom && (parent.bottom = o);
o.prev = parent.top;
parent.top && (parent.top.next = o);
parent.top = o;
o.next = null;
},
elproto = R.el;
Element.prototype = elproto;
elproto.constructor = Element;
R._engine.getNode = function (el) {
var node = el.node || el[0].node;
return node.titleNode || node;
};
R._engine.getLastNode = function (el) {
var node = el.node || el[el.length - 1].node;
return node.titleNode || node;
};
elproto.rotate = function(deg, cx, cy) {
var o = this,
bbox;
if (o.removed) {
return o;
}
deg = Str(deg).split(separator);
if (deg.length - 1) {
cx = toFloat(deg[1]);
cy = toFloat(deg[2]);
}
deg = toFloat(deg[0]);
(cy == null) && (cx = cy);
if (cx == null || cy == null) {
bbox = o.getBBox(1);
cx = bbox.x + bbox.width / 2;
cy = bbox.y + bbox.height / 2;
}
o.transform(o._.transform.concat([["r", deg, cx, cy]]));
return o;
};
elproto.scale = function(sx, sy, cx, cy) {
var o = this,
bbox;
if (o.removed) {
return o;
}
sx = Str(sx).split(separator);
if (sx.length - 1) {
sy = toFloat(sx[1]);
cx = toFloat(sx[2]);
cy = toFloat(sx[3]);
}
sx = toFloat(sx[0]);
(sy == null) && (sy = sx);
(cy == null) && (cx = cy);
if (cx == null || cy == null) {
bbox = o.getBBox(1);
}
cx = cx == null ? bbox.x + bbox.width / 2 : cx;
cy = cy == null ? bbox.y + bbox.height / 2 : cy;
o.transform(o._.transform.concat([["s", sx, sy, cx, cy]]));
return o;
};
elproto.translate = function(dx, dy) {
var o = this;
if (o.removed) {
return o;
}
dx = Str(dx).split(separator);
if (dx.length - 1) {
dy = toFloat(dx[1]);
}
dx = toFloat(dx[0]) || 0;
dy = +dy || 0;
o.transform(o._.transform.concat([["t", dx, dy]]));
return o;
};
elproto.transform = function(tstr) {
var o = this,
_ = o._,
sw;
if (tstr == null) {
return _.transform;
}
R._extractTransform(o, tstr);
o.clip && !_.clipispath && $(o.clip, {
transform: o.matrix.invert()
});
o.pattern && updatePosition(o);
o.node && $(o.node, {
transform: o.matrix
});
if (_.sx != 1 || _.sy != 1) {
sw = o.attrs[has]("stroke-width") ? o.attrs["stroke-width"] : 1;
o.attr({
"stroke-width": sw
});
}
return o;
};
elproto.hide = function() {
var o = this;
!o.removed && o.paper.safari(o.node.style.display = "none");
return o;
};
elproto.show = function() {
var o = this;
!o.removed && o.paper.safari(o.node.style.display = E);
return o;
};
elproto.remove = function() {
if (this.removed || !this.parent.canvas) {
return;
}
var o = this,
node = R._engine.getNode(o),
paper = o.paper,
defs = paper.defs,
i;
paper.__set__ && paper.__set__.exclude(o);
eve.unbind("raphael.*.*." + o.id);
if (o.gradient && defs) {
updateGradientReference(o);
}
while (i = o.followers.pop()) {
i.el.remove();
}
while (i = o.bottom) {
i.remove();
}
if (o._drag) {
o.undrag();
}
if (o.events) {
while (i = o.events.pop()) {
i.unbind();
}
}
o.parent.canvas.removeChild(node);
o.removeData();
delete paper._elementsById[o.id]; // remove from lookup hash
R._tear(o, o.parent);
for (i in o) {
o[i] = typeof o[i] === "function" ? R._removedFactory(i) : null;
}
o.removed = true;
};
elproto._getBBox = function() {
var o = this,
node = o.node,
bbox = {},
a = o.attrs,
align,
hide;
if (node.style.display === "none") {
o.show();
hide = true;
}
try {
bbox = node.getBBox();
if (o.type == "text") {
// If bbox does not have x / y, which is possible in certain
// environments, we mathematically calculate these values by
// using x, y (adjusted using the values of text-anchor, and
// vertical-align attributes), of the element along with the
// width and height provided by the getBBox().
if (bbox.x === undefined) {
bbox.isCalculated = true;
align = a['text-anchor'];
bbox.x = (a.x || 0) - (bbox.width * ((align === "start") ?
0 : (align === "middle") ? 0.5 : 1));
}
if (bbox.y === undefined) {
bbox.isCalculated = true;
align = a['vertical-align'];
bbox.y = (a.y || 0) - (bbox.height * ((align === "bottom") ?
1 : (align === "middle") ? 0.5 : 0));
}
}
} catch (e) {
// Firefox 3.0.x plays badly here
} finally {
bbox = bbox || {};
}
hide && o.hide();
return bbox;
};
elproto.attr = function(name, value) {
if (this.removed) {
return this;
}
if (name == null) {
var res = {};
for (var a in this.attrs)
if (this.attrs[has](a)) {
res[a] = this.attrs[a];
}
res.gradient && res.fill == "none" && (res.fill = res.gradient) && delete res.gradient;
res.transform = this._.transform;
res.visibility = this.node.style.display === "none" ? "hidden" : "visible";
return res;
}
if (value == null && R.is(name, "string")) {
if (name == "fill" && this.attrs.fill == "none" && this.attrs.gradient) {
return this.attrs.gradient;
}
if (name == "transform") {
return this._.transform;
}
if (name == "visibility") {
return this.node.style.display === "none" ? "hidden" : "visible";
}
var names = name.split(separator),
out = {};
for (var i = 0, ii = names.length; i < ii; i++) {
name = names[i];
if (name in this.attrs) {
out[name] = this.attrs[name];
} else if (R.is(this.ca[name], "function")) {
out[name] = this.ca[name].def;
} else {
out[name] = R._availableAttrs[name];
}
}
return ii - 1 ? out : out[names[0]];
}
if (value == null && R.is(name, "array")) {
out = {};
for (i = 0, ii = name.length; i < ii; i++) {
out[name[i]] = this.attr(name[i]);
}
return out;
}
if (value != null) {
var params = {};
params[name] = value;
} else if (name != null && R.is(name, "object")) {
params = name;
}
for (var key in params) {
eve("raphael.attr." + key + "." + this.id, this, params[key], key);
}
var todel = {};
for (key in this.ca) {
if (this.ca[key] && params[has](key) && R.is(this.ca[key], "function") && !this.ca['_invoked' + key]) {
this.ca['_invoked'+key] = true; // prevent recursion
var par = this.ca[key].apply(this, [].concat(params[key]));
delete this.ca['_invoked'+key];
for (var subkey in par) {
if (par[has](subkey)) {
params[subkey] = par[subkey];
}
}
this.attrs[key] = params[key];
if (par === false) {
todel[key] = params[key];
delete params[key];
}
}
}
setFillAndStroke(this, params);
var follower;
for (i = 0, ii = this.followers.length; i < ii; i++) {
follower = this.followers[i];
(follower.cb && !follower.cb.call(follower.el, params, this)) ||
follower.el.attr(params);
}
for (subkey in todel) {
params[subkey] = todel[subkey];
}
return this;
};
elproto.blur = function(size) {
// Experimental. No Safari support. Use it on your own risk.
var t = this;
if (+size !== 0) {
var fltr = $("filter"),
blur = $("feGaussianBlur");
t.attrs.blur = size;
fltr.id = R.createUUID();
$(blur, {
stdDeviation: +size || 1.5
});
fltr.appendChild(blur);
t.paper.defs.appendChild(fltr);
t._blur = fltr;
$(t.node, {
filter: "url('" + R._url + "#" + fltr.id + "')"
});
} else {
if (t._blur) {
t._blur.parentNode.removeChild(t._blur);
delete t._blur;
delete t.attrs.blur;
}
t.node.removeAttribute("filter");
}
};
elproto.on = function(eventType, handler) {
if (this.removed) {
return this;
}
var fn = handler;
if (R.supportsTouch) {
eventType = R._touchMap[eventType] ||
(eventType === 'click' && 'touchstart') || eventType;
fn = function(e) {
e.preventDefault();
handler();
};
}
this.node['on'+ eventType] = fn;
return this;
};
R._engine.path = function(svg, attrs, group) {
var el = $("path"),
res = new Element(el, svg, group);
res.type = "path";
setFillAndStroke(res, attrs);
applyCustomAttributes(res, attrs);
return res;
};
R._engine.group = function(svg, id, group) {
var el = $("g"),
res = new Element(el, svg, group);
res.type = "group";
res.canvas = res.node;
res.top = res.bottom = null;
res._id = id || E;
id && el.setAttribute('class', 'raphael-group-' + res.id + '-' + id);
return res;
};
R._engine.circle = function(svg, attrs, group) {
var el = $("circle"),
res = new Element(el, svg, group);
res.type = "circle";
setFillAndStroke(res, attrs);
applyCustomAttributes(res, attrs);
return res;
};
R._engine.rect = function(svg, attrs, group) {
var el = $("rect"),
res = new Element(el, svg, group);
res.type = "rect";
attrs.rx = attrs.ry = attrs.r;
setFillAndStroke(res, attrs);
applyCustomAttributes(res, attrs);
return res;
};
R._engine.ellipse = function(svg, attrs, group) {
var el = $("ellipse"),
res = new Element(el, svg, group);
res.type = "ellipse";
setFillAndStroke(res, attrs);
applyCustomAttributes(res, attrs);
return res;
};
R._engine.image = function(svg, attrs, group) {
var el = $("image"),
src = attrs.src,
res = new Element(el, svg, group);
res.type = "image";
el.setAttribute("preserveAspectRatio", "none");
setFillAndStroke(res, attrs);
applyCustomAttributes(res, attrs);
return res;
};
R._engine.text = function(svg, attrs, group) {
var el = $("text"),
res = new Element(el, svg, group);
res.type = "text";
res._textdirty = true;
setFillAndStroke(res, attrs);
applyCustomAttributes(res, attrs);
return res;
};
R._engine.setSize = function(width, height) {
this.width = width || this.width;
this.height = height || this.height;
this.canvas.setAttribute("width", this.width);
this.canvas.setAttribute("height", this.height);
if (this._viewBox) {
this.setViewBox.apply(this, this._viewBox);
}
return this;
};
R._engine.create = function() {
var con = R._getContainer.apply(0, arguments),
container = con && con.container,
x = con.x,
y = con.y,
width = con.width,
height = con.height;
if (!container) {
throw new Error("SVG container not found.");
}
var cnvs = $("svg"),
css = "overflow:hidden;-webkit-tap-highlight-color:rgba(0,0,0,0);"+
"-webkit-user-select:none;-moz-user-select:-moz-none;-khtml-user-select:none;"+
"-ms-user-select:none;user-select:none;-o-user-select:none;cursor:default;",
isFloating;
x = x || 0;
y = y || 0;
width = width || 512;
height = height || 342;
$(cnvs, {
height: height,
version: 1.1,
width: width,
xmlns: "http://www.w3.org/2000/svg"
});
if (container == 1) {
cnvs.style.cssText = css + "position:absolute;left:" + x + "px;top:" + y + "px";
R._g.doc.body.appendChild(cnvs);
isFloating = 1;
} else {
cnvs.style.cssText = css + "position:relative";
if (container.firstChild) {
container.insertBefore(cnvs, container.firstChild);
} else {
container.appendChild(cnvs);
}
}
container = new R._Paper;
container.width = width;
container.height = height;
container.canvas = cnvs;
$(cnvs, {
id: "raphael-paper-" + container.id
});
container.clear();
container._left = container._top = 0;
isFloating && (container.renderfix = function() {
});
container.renderfix();
return container;
};
R._engine.setViewBox = function(x, y, w, h, fit) {
eve("raphael.setViewBox", this, this._viewBox, [x, y, w, h, fit]);
var size = mmax(w / this.width, h / this.height),
top = this.top,
aspectRatio = fit ? "meet" : "xMinYMin",
vb,
sw;
if (x == null) {
if (this._vbSize) {
size = 1;
}
delete this._vbSize;
vb = "0 0 " + this.width + S + this.height;
} else {
this._vbSize = size;
vb = x + S + y + S + w + S + h;
}
$(this.canvas, {
viewBox: vb,
preserveAspectRatio: aspectRatio
});
while (size && top) {
sw = "stroke-width" in top.attrs ? top.attrs["stroke-width"] : 1;
top.attr({
"stroke-width": sw
});
top._.dirty = 1;
top._.dirtyT = 1;
top = top.prev;
}
this._viewBox = [x, y, w, h, !!fit];
return this;
};
R.prototype.renderfix = function() {
var cnvs = this.canvas,
s = cnvs.style,
pos;
try {
pos = cnvs.getScreenCTM() || cnvs.createSVGMatrix();
} catch (e) {
pos = cnvs.createSVGMatrix();
}
var left = -pos.e % 1,
top = - pos.f % 1;
if (left || top) {
if (left) {
this._left = (this._left + left) % 1;
s.left = this._left + "px";
}
if (top) {
this._top = (this._top + top) % 1;
s.top = this._top + "px";
}
}
};
R.prototype._desc = function (txt) {
var desc = this.desc;
if (!desc) {
this.desc = desc = $("desc");
this.canvas.appendChild(desc);
}
else {
while (desc.firstChild) {
desc.removeChild(desc.firstChild);
}
}
desc.appendChild(R._g.doc.createTextNode(R.is(txt, "string") ? txt : ("Created with Red Rapha\xebl " +
R.version)));
};
R.prototype.clear = function() {
var c;
eve("raphael.clear", this);
while (c = this.bottom) {
c.remove();
}
c = this.canvas;
while (c.firstChild) {
c.removeChild(c.firstChild);
}
this.bottom = this.top = null;
c.appendChild(this.desc = $("desc"));
c.appendChild(this.defs = $("defs"));
};
R.prototype.remove = function() {
var i;
eve("raphael.remove", this);
while (i = this.bottom) {
i.remove();
}
this.defs && this.defs.parentNode.removeChild(this.defs);
this.desc && this.desc.parentNode.removeChild(this.desc);
this.canvas.parentNode && this.canvas.parentNode.removeChild(this.canvas);
for (i in this) {
this[i] = typeof this[i] == "function" ? R._removedFactory(i) : null;
}
this.removed = true;
};
var setproto = R.st;
for (var method in elproto)
if (elproto[has](method) && !setproto[has](method)) {
setproto[method] = (function(methodname) {
return function() {
var arg = arguments;
return this.forEach(function(el) {
el[methodname].apply(el, arg);
});
};
})(method);
}
}(window.Raphael);
|
export default {
name: "comment",
title: "Comment",
type: "document",
fields: [
{
name: "name",
type: "string",
},
{
name: "approved",
title: "Approved",
type: "boolean",
description: "Comment won't show on the site without approval",
},
{
name: "email",
type: "string",
},
{
name: "comment",
type: "text",
},
{
name: "post",
type: "reference",
to: [{ type: "post" }],
},
],
};
|
(window.webpackJsonp=window.webpackJsonp||[]).push([[43],{1389:function(e,a,t){"use strict";t.r(a);var n=t(68),l=t(69),r=t(71),c=t(70),s=t(72),m=t(109),o=t(1),i=t.n(o),u=t(4),E=function(e){function a(e){var t;return Object(n.a)(this,a),(t=Object(r.a)(this,Object(c.a)(a).call(this,e))).toggle=t.toggle.bind(Object(m.a)(Object(m.a)(t))),t.toggleNavbar=t.toggleNavbar.bind(Object(m.a)(Object(m.a)(t))),t.state={isOpen:!1,collapsed:!0},t}return Object(s.a)(a,e),Object(l.a)(a,[{key:"toggle",value:function(){this.setState({isOpen:!this.state.isOpen})}},{key:"toggleNavbar",value:function(){this.setState({collapsed:!this.state.collapsed})}},{key:"render",value:function(){return i.a.createElement("div",{className:"animated fadeIn"},i.a.createElement(u.i,null,i.a.createElement(u.n,null,i.a.createElement("i",{className:"fa fa-align-justify"}),i.a.createElement("strong",null,"Navbar"),i.a.createElement("div",{className:"card-header-actions"},i.a.createElement("a",{href:"https://reactstrap.github.io/components/navbar/",rel:"noreferrer noopener",target:"_blank",className:"card-header-action"},i.a.createElement("small",{className:"text-muted"},"docs")))),i.a.createElement(u.j,null,i.a.createElement(u.Y,{color:"info",light:!0,expand:"md"},i.a.createElement(u.Z,{href:"/"},"Bootstrap"),i.a.createElement(u.ab,{onClick:this.toggle}),i.a.createElement(u.u,{isOpen:this.state.isOpen,navbar:!0},i.a.createElement(u.V,{className:"ml-auto",navbar:!0},i.a.createElement(u.W,null,i.a.createElement(u.X,{href:"#/components/navbars"},"Components")),i.a.createElement(u.W,null,i.a.createElement(u.X,{href:"https://github.com/reactstrap/reactstrap",target:"_blank"},"Github")),i.a.createElement(u.nb,{nav:!0,inNavbar:!0},i.a.createElement(u.A,{nav:!0,caret:!0},"Options"),i.a.createElement(u.z,null,i.a.createElement(u.y,null,"Option 1"),i.a.createElement(u.y,null,"Option 2"),i.a.createElement(u.y,{divider:!0}),i.a.createElement(u.y,null,"Reset")))))))),i.a.createElement(u.i,null,i.a.createElement(u.n,null,i.a.createElement("i",{className:"fa fa-align-justify"}),i.a.createElement("strong",null,"Navbar Toggler")),i.a.createElement(u.j,null,i.a.createElement(u.Y,{color:"success",light:!0},i.a.createElement(u.Z,{href:"/",className:"mr-auto"},"Bootstrap"),i.a.createElement(u.ab,{onClick:this.toggleNavbar,className:"mr-2"}),i.a.createElement(u.u,{isOpen:!this.state.collapsed,navbar:!0},i.a.createElement(u.V,{navbar:!0},i.a.createElement(u.W,null,i.a.createElement(u.X,{href:"#/components/navbars"},"Components")),i.a.createElement(u.W,null,i.a.createElement(u.X,{href:"https://github.com/reactstrap/reactstrap"},"Github"))))))))}}]),a}(o.Component);a.default=E}}]);
//# sourceMappingURL=43.2f3c2ce6.chunk.js.map
|
const initialState = {
username: ''
};
export default (state = initialState, action) => {
switch(action.type) {
case "FETCH_USER_AFTER_LOGIN":
return {
...state,
username: action.username
};
default:
return state;
}
};
|
/*! jQuery Migrate v3.3.2 | (c) OpenJS Foundation and other contributors | jquery.org/license */
"undefined"==typeof jQuery.migrateMute&&(jQuery.migrateMute=!0),function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],function(e){return t(e,window)}):"object"==typeof module&&module.exports?module.exports=t(require("jquery"),window):t(jQuery,window)}(function(s,n){"use strict";function e(e){return 0<=function(e,t){for(var r=/^(\d+)\.(\d+)\.(\d+)/,n=r.exec(e)||[],o=r.exec(t)||[],i=1;i<=3;i++){if(+o[i]<+n[i])return 1;if(+n[i]<+o[i])return-1}return 0}(s.fn.jquery,e)}s.migrateVersion="3.3.2",n.console&&n.console.log&&(s&&e("3.0.0")||n.console.log("JQMIGRATE: jQuery 3.0.0+ REQUIRED"),s.migrateWarnings&&n.console.log("JQMIGRATE: Migrate plugin loaded multiple times"),n.console.log("JQMIGRATE: Migrate is installed"+(s.migrateMute?"":" with logging active")+", version "+s.migrateVersion));var r={};function u(e){var t=n.console;s.migrateDeduplicateWarnings&&r[e]||(r[e]=!0,s.migrateWarnings.push(e),t&&t.warn&&!s.migrateMute&&(t.warn("JQMIGRATE: "+e),s.migrateTrace&&t.trace&&t.trace()))}function t(e,t,r,n){Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){return u(n),r},set:function(e){u(n),r=e}})}function o(e,t,r,n){e[t]=function(){return u(n),r.apply(this,arguments)}}s.migrateDeduplicateWarnings=!0,s.migrateWarnings=[],void 0===s.migrateTrace&&(s.migrateTrace=!0),s.migrateReset=function(){r={},s.migrateWarnings.length=0},"BackCompat"===n.document.compatMode&&u("jQuery is not compatible with Quirks Mode");var i,a,c,d={},l=s.fn.init,p=s.find,f=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/,y=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/g,m=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;for(i in s.fn.init=function(e){var t=Array.prototype.slice.call(arguments);return"string"==typeof e&&"#"===e&&(u("jQuery( '#' ) is not a valid selector"),t[0]=[]),l.apply(this,t)},s.fn.init.prototype=s.fn,s.find=function(t){var r=Array.prototype.slice.call(arguments);if("string"==typeof t&&f.test(t))try{n.document.querySelector(t)}catch(e){t=t.replace(y,function(e,t,r,n){return"["+t+r+'"'+n+'"]'});try{n.document.querySelector(t),u("Attribute selector with '#' must be quoted: "+r[0]),r[0]=t}catch(e){u("Attribute selector with '#' was not fixed: "+r[0])}}return p.apply(this,r)},p)Object.prototype.hasOwnProperty.call(p,i)&&(s.find[i]=p[i]);o(s.fn,"size",function(){return this.length},"jQuery.fn.size() is deprecated and removed; use the .length property"),o(s,"parseJSON",function(){return JSON.parse.apply(null,arguments)},"jQuery.parseJSON is deprecated; use JSON.parse"),o(s,"holdReady",s.holdReady,"jQuery.holdReady is deprecated"),o(s,"unique",s.uniqueSort,"jQuery.unique is deprecated; use jQuery.uniqueSort"),t(s.expr,"filters",s.expr.pseudos,"jQuery.expr.filters is deprecated; use jQuery.expr.pseudos"),t(s.expr,":",s.expr.pseudos,"jQuery.expr[':'] is deprecated; use jQuery.expr.pseudos"),e("3.1.1")&&o(s,"trim",function(e){return null==e?"":(e+"").replace(m,"")},"jQuery.trim is deprecated; use String.prototype.trim"),e("3.2.0")&&(o(s,"nodeName",function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},"jQuery.nodeName is deprecated"),o(s,"isArray",Array.isArray,"jQuery.isArray is deprecated; use Array.isArray")),e("3.3.0")&&(o(s,"isNumeric",function(e){var t=typeof e;return("number"==t||"string"==t)&&!isNaN(e-parseFloat(e))},"jQuery.isNumeric() is deprecated"),s.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){d["[object "+t+"]"]=t.toLowerCase()}),o(s,"type",function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?d[Object.prototype.toString.call(e)]||"object":typeof e},"jQuery.type is deprecated"),o(s,"isFunction",function(e){return"function"==typeof e},"jQuery.isFunction() is deprecated"),o(s,"isWindow",function(e){return null!=e&&e===e.window},"jQuery.isWindow() is deprecated")),s.ajax&&(a=s.ajax,c=/(=)\?(?=&|$)|\?\?/,s.ajax=function(){var e=a.apply(this,arguments);return e.promise&&(o(e,"success",e.done,"jQXHR.success is deprecated and removed"),o(e,"error",e.fail,"jQXHR.error is deprecated and removed"),o(e,"complete",e.always,"jQXHR.complete is deprecated and removed")),e},e("4.0.0")||s.ajaxPrefilter("+json",function(e){!1!==e.jsonp&&(c.test(e.url)||"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&c.test(e.data))&&u("JSON-to-JSONP auto-promotion is deprecated")}));var g=s.fn.removeAttr,h=s.fn.toggleClass,v=/\S+/g;function j(e){return e.replace(/-([a-z])/g,function(e,t){return t.toUpperCase()})}s.fn.removeAttr=function(e){var r=this;return s.each(e.match(v),function(e,t){s.expr.match.bool.test(t)&&(u("jQuery.fn.removeAttr no longer sets boolean properties: "+t),r.prop(t,!1))}),g.apply(this,arguments)};var Q,b=!(s.fn.toggleClass=function(t){return void 0!==t&&"boolean"!=typeof t?h.apply(this,arguments):(u("jQuery.fn.toggleClass( boolean ) is deprecated"),this.each(function(){var e=this.getAttribute&&this.getAttribute("class")||"";e&&s.data(this,"__className__",e),this.setAttribute&&this.setAttribute("class",!e&&!1!==t&&s.data(this,"__className__")||"")}))}),w=/^[a-z]/,x=/^(?:Border(?:Top|Right|Bottom|Left)?(?:Width|)|(?:Margin|Padding)?(?:Top|Right|Bottom|Left)?|(?:Min|Max)?(?:Width|Height))$/;s.swap&&s.each(["height","width","reliableMarginRight"],function(e,t){var r=s.cssHooks[t]&&s.cssHooks[t].get;r&&(s.cssHooks[t].get=function(){var e;return b=!0,e=r.apply(this,arguments),b=!1,e})}),s.swap=function(e,t,r,n){var o,i,a={};for(i in b||u("jQuery.swap() is undocumented and deprecated"),t)a[i]=e.style[i],e.style[i]=t[i];for(i in o=r.apply(e,n||[]),t)e.style[i]=a[i];return o},e("3.4.0")&&"undefined"!=typeof Proxy&&(s.cssProps=new Proxy(s.cssProps||{},{set:function(){return u("JQMIGRATE: jQuery.cssProps is deprecated"),Reflect.set.apply(this,arguments)}})),s.cssNumber||(s.cssNumber={}),Q=s.fn.css,s.fn.css=function(e,t){var r,n,o=this;return e&&"object"==typeof e&&!Array.isArray(e)?(s.each(e,function(e,t){s.fn.css.call(o,e,t)}),this):("number"==typeof t&&(r=j(e),n=r,w.test(n)&&x.test(n[0].toUpperCase()+n.slice(1))||s.cssNumber[r]||u('Number-typed values are deprecated for jQuery.fn.css( "'+e+'", value )')),Q.apply(this,arguments))};var A,k,S,M,N=s.data;s.data=function(e,t,r){var n,o,i;if(t&&"object"==typeof t&&2===arguments.length){for(i in n=s.hasData(e)&&N.call(this,e),o={},t)i!==j(i)?(u("jQuery.data() always sets/gets camelCased names: "+i),n[i]=t[i]):o[i]=t[i];return N.call(this,e,o),t}return t&&"string"==typeof t&&t!==j(t)&&(n=s.hasData(e)&&N.call(this,e))&&t in n?(u("jQuery.data() always sets/gets camelCased names: "+t),2<arguments.length&&(n[t]=r),n[t]):N.apply(this,arguments)},s.fx&&(S=s.Tween.prototype.run,M=function(e){return e},s.Tween.prototype.run=function(){1<s.easing[this.easing].length&&(u("'jQuery.easing."+this.easing.toString()+"' should use only one argument"),s.easing[this.easing]=M),S.apply(this,arguments)},A=s.fx.interval||13,k="jQuery.fx.interval is deprecated",n.requestAnimationFrame&&Object.defineProperty(s.fx,"interval",{configurable:!0,enumerable:!0,get:function(){return n.document.hidden||u(k),A},set:function(e){u(k),A=e}}));var R=s.fn.load,H=s.event.add,C=s.event.fix;s.event.props=[],s.event.fixHooks={},t(s.event.props,"concat",s.event.props.concat,"jQuery.event.props.concat() is deprecated and removed"),s.event.fix=function(e){var t,r=e.type,n=this.fixHooks[r],o=s.event.props;if(o.length){u("jQuery.event.props are deprecated and removed: "+o.join());while(o.length)s.event.addProp(o.pop())}if(n&&!n._migrated_&&(n._migrated_=!0,u("jQuery.event.fixHooks are deprecated and removed: "+r),(o=n.props)&&o.length))while(o.length)s.event.addProp(o.pop());return t=C.call(this,e),n&&n.filter?n.filter(t,e):t},s.event.add=function(e,t){return e===n&&"load"===t&&"complete"===n.document.readyState&&u("jQuery(window).on('load'...) called after load event occurred"),H.apply(this,arguments)},s.each(["load","unload","error"],function(e,t){s.fn[t]=function(){var e=Array.prototype.slice.call(arguments,0);return"load"===t&&"string"==typeof e[0]?R.apply(this,e):(u("jQuery.fn."+t+"() is deprecated"),e.splice(0,0,t),arguments.length?this.on.apply(this,e):(this.triggerHandler.apply(this,e),this))}}),s.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,r){s.fn[r]=function(e,t){return u("jQuery.fn."+r+"() event shorthand is deprecated"),0<arguments.length?this.on(r,null,e,t):this.trigger(r)}}),s(function(){s(n.document).triggerHandler("ready")}),s.event.special.ready={setup:function(){this===n.document&&u("'ready' event is deprecated")}},s.fn.extend({bind:function(e,t,r){return u("jQuery.fn.bind() is deprecated"),this.on(e,null,t,r)},unbind:function(e,t){return u("jQuery.fn.unbind() is deprecated"),this.off(e,null,t)},delegate:function(e,t,r,n){return u("jQuery.fn.delegate() is deprecated"),this.on(t,e,r,n)},undelegate:function(e,t,r){return u("jQuery.fn.undelegate() is deprecated"),1===arguments.length?this.off(e,"**"):this.off(t,e||"**",r)},hover:function(e,t){return u("jQuery.fn.hover() is deprecated"),this.on("mouseenter",e).on("mouseleave",t||e)}});function T(e){var t=n.document.implementation.createHTMLDocument("");return t.body.innerHTML=e,t.body&&t.body.innerHTML}function P(e){var t=e.replace(O,"<$1></$2>");t!==e&&T(e)!==T(t)&&u("HTML tags must be properly nested and closed: "+e)}var O=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,q=s.htmlPrefilter;s.UNSAFE_restoreLegacyHtmlPrefilter=function(){s.htmlPrefilter=function(e){return P(e),e.replace(O,"<$1></$2>")}},s.htmlPrefilter=function(e){return P(e),q(e)};var D,_=s.fn.offset;s.fn.offset=function(){var e=this[0];return!e||e.nodeType&&e.getBoundingClientRect?_.apply(this,arguments):(u("jQuery.fn.offset() requires a valid DOM element"),arguments.length?this:void 0)},s.ajax&&(D=s.param,s.param=function(e,t){var r=s.ajaxSettings&&s.ajaxSettings.traditional;return void 0===t&&r&&(u("jQuery.param() no longer uses jQuery.ajaxSettings.traditional"),t=r),D.call(this,e,t)});var E,F,J=s.fn.andSelf||s.fn.addBack;return s.fn.andSelf=function(){return u("jQuery.fn.andSelf() is deprecated and removed, use jQuery.fn.addBack()"),J.apply(this,arguments)},s.Deferred&&(E=s.Deferred,F=[["resolve","done",s.Callbacks("once memory"),s.Callbacks("once memory"),"resolved"],["reject","fail",s.Callbacks("once memory"),s.Callbacks("once memory"),"rejected"],["notify","progress",s.Callbacks("memory"),s.Callbacks("memory")]],s.Deferred=function(e){var i=E(),a=i.promise();return i.pipe=a.pipe=function(){var o=arguments;return u("deferred.pipe() is deprecated"),s.Deferred(function(n){s.each(F,function(e,t){var r="function"==typeof o[e]&&o[e];i[t[1]](function(){var e=r&&r.apply(this,arguments);e&&"function"==typeof e.promise?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[t[0]+"With"](this===a?n.promise():this,r?[e]:arguments)})}),o=null}).promise()},e&&e.call(i,i),i},s.Deferred.exceptionHook=E.exceptionHook),s});
var BP_Confirm={"are_you_sure":"Are you sure?"};
jQuery(document).ready(function(){jQuery("#buddypress").on("click","a.confirm",function(){return!!confirm(BP_Confirm.are_you_sure)})});
function member_widget_click_handler(){jQuery(".widget div#members-list-options a").on("click",function(){var e=this;return jQuery(e).addClass("loading"),jQuery(".widget div#members-list-options a").removeClass("selected"),jQuery(this).addClass("selected"),jQuery.post(ajaxurl,{action:"widget_members",cookie:encodeURIComponent(document.cookie),_wpnonce:jQuery("input#_wpnonce-members").val(),"max-members":jQuery("input#members_widget_max").val(),filter:jQuery(this).attr("id")},function(t){jQuery(e).removeClass("loading"),member_widget_response(t)}),!1})}function member_widget_response(e){e=e.substr(0,e.length-1),"-1"!==(e=e.split("[[SPLIT]]"))[0]?jQuery(".widget ul#members-list").fadeOut(200,function(){jQuery(".widget ul#members-list").html(e[1]),jQuery(".widget ul#members-list").fadeIn(200)}):jQuery(".widget ul#members-list").fadeOut(200,function(){var t="<p>"+e[1]+"</p>";jQuery(".widget ul#members-list").html(t),jQuery(".widget ul#members-list").fadeIn(200)})}jQuery(document).ready(function(){member_widget_click_handler(),"undefined"!=typeof wp&&wp.customize&&wp.customize.selectiveRefresh&&wp.customize.selectiveRefresh.bind("partial-content-rendered",function(){member_widget_click_handler()})});
function bp_get_querystring(n){var t=location.search.split(n+"=")[1];return t?decodeURIComponent(t.split("&")[0]):null};
!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e("object"==typeof exports?require("jquery"):jQuery)}(function(e){function n(e){return u.raw?e:encodeURIComponent(e)}function o(e){return u.raw?e:decodeURIComponent(e)}function i(e){return n(u.json?JSON.stringify(e):String(e))}function r(e){0===e.indexOf('"')&&(e=e.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return e=decodeURIComponent(e.replace(c," ")),u.json?JSON.parse(e):e}catch(e){}}function t(n,o){var i=u.raw?n:r(n);return e.isFunction(o)?o(i):i}var c=/\+/g,u=e.cookie=function(r,c,f){if(void 0!==c&&!e.isFunction(c)){if("number"==typeof(f=e.extend({},u.defaults,f)).expires){var a=f.expires,d=f.expires=new Date;d.setTime(+d+864e5*a)}return document.cookie=[n(r),"=",i(c),f.expires?"; expires="+f.expires.toUTCString():"",f.path?"; path="+f.path:"",f.domain?"; domain="+f.domain:"",f.secure?"; secure":""].join("")}for(var p=r?void 0:{},s=document.cookie?document.cookie.split("; "):[],m=0,x=s.length;m<x;m++){var v=s[m].split("="),k=o(v.shift()),l=v.join("=");if(r&&r===k){p=t(l,c);break}r||void 0===(l=t(l))||(p[k]=l)}return p};u.defaults={},e.removeCookie=function(n,o){return void 0!==e.cookie(n)&&(e.cookie(n,"",e.extend({},o,{expires:-1})),!e.cookie(n))}});
!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e("object"==typeof exports?require("jquery"):jQuery)}(function(e){function t(t){return e.isFunction(t)||"object"==typeof t?t:{top:t,left:t}}var n=e.scrollTo=function(t,n,o){return e(window).scrollTo(t,n,o)};return n.defaults={axis:"xy",duration:parseFloat(e.fn.jquery)>=1.3?0:1,limit:!0},n.window=function(){return e(window)._scrollable()},e.fn._scrollable=function(){return this.map(function(){var t=this;if(!(!t.nodeName||-1!==e.inArray(t.nodeName.toLowerCase(),["iframe","#document","html","body"])))return t;var n=(t.contentWindow||t).document||t.ownerDocument||t;return/webkit/i.test(navigator.userAgent)||"BackCompat"===n.compatMode?n.body:n.documentElement})},e.fn.scrollTo=function(o,r,i){return"object"==typeof r&&(i=r,r=0),"function"==typeof i&&(i={onAfter:i}),"max"===o&&(o=9e9),i=e.extend({},n.defaults,i),r=r||i.duration,i.queue=i.queue&&i.axis.length>1,i.queue&&(r/=2),i.offset=t(i.offset),i.over=t(i.over),this._scrollable().each(function(){function s(e){u.animate(l,r,i.easing,e&&function(){e.call(this,c,i)})}if(null!==o){var a,f=this,u=e(f),c=o,l={},d=u.is("html,body");switch(typeof c){case"number":case"string":if(/^([+-]=?)?\d+(\.\d+)?(px|%)?$/.test(c)){c=t(c);break}if(!(c=d?e(c):e(c,this)).length)return;case"object":(c.is||c.style)&&(a=(c=e(c)).offset())}var m=e.isFunction(i.offset)&&i.offset(f,c)||i.offset;e.each(i.axis.split(""),function(e,t){var o="x"===t?"Left":"Top",r=o.toLowerCase(),h="scroll"+o,p=f[h],y=n.max(f,t);if(a)l[h]=a[r]+(d?0:p-u.offset()[r]),i.margin&&(l[h]-=parseInt(c.css("margin"+o))||0,l[h]-=parseInt(c.css("border"+o+"Width"))||0),l[h]+=m[r]||0,i.over[r]&&(l[h]+=c["x"===t?"width":"height"]()*i.over[r]);else{var b=c[r];l[h]=b.slice&&"%"===b.slice(-1)?parseFloat(b)/100*y:b}i.limit&&/^\d+$/.test(l[h])&&(l[h]=l[h]<=0?0:Math.min(l[h],y)),!e&&i.queue&&(p!==l[h]&&s(i.onAfterFirst),delete l[h])}),s(i.onAfter)}}).end()},n.max=function(t,n){var o="x"===n?"Width":"Height",r="scroll"+o;if(!e(t).is("html,body"))return t[r]-e(t)[o.toLowerCase()]();var i="client"+o,s=t.ownerDocument.documentElement,a=t.ownerDocument.body;return Math.max(s[r],a[r])-Math.min(s[i],a[i])},n});
var BP_DTheme={"accepted":"Accepted","close":"Close","comments":"comments","leave_group_confirm":"Are you sure you want to leave this group?","mark_as_fav":"Favorite","my_favs":"My Favorites","rejected":"Rejected","remove_fav":"Remove Favorite","show_all":"Show all","show_all_comments":"Show all comments for this thread","show_x_comments":"Show all comments (%d)","unsaved_changes":"Your profile has unsaved changes. If you leave the page, the changes will be lost.","view":"View","store_filter_settings":""};
function bp_get_directory_preference(e,t){var i={filter:"",scope:"",extras:""};if(!directoryPreferences.hasOwnProperty(e)){var a={};for(var s in i)i.hasOwnProperty(s)&&(a[s]=i[s]);directoryPreferences[e]=a}return BP_DTheme.store_filter_settings&&(directoryPreferences[e][t]=jq.cookie("bp-"+e+"-"+t)),directoryPreferences[e][t]}function bp_set_directory_preference(e,t,i){var a={filter:"",scope:"",extras:""};if(!directoryPreferences.hasOwnProperty(e)){var s={};for(var r in a)a.hasOwnProperty(r)&&(s[r]=a[r]);directoryPreferences[e]=s}BP_DTheme.store_filter_settings&&jq.cookie("bp-"+e+"-"+t,i,{path:"/",secure:"https:"===window.location.protocol}),directoryPreferences[e][t]=i}function bp_init_activity(){var e=bp_get_directory_preference("activity","scope"),t=bp_get_directory_preference("activity","filter");void 0!==t&&jq("#activity-filter-select").length&&jq('#activity-filter-select select option[value="'+t+'"]').prop("selected",!0),void 0!==e&&jq(".activity-type-tabs").length&&(jq(".activity-type-tabs li").each(function(){jq(this).removeClass("selected")}),jq("#activity-"+e+", .item-list-tabs li.current").addClass("selected"))}function bp_init_objects(e){jq(e).each(function(t){var i=bp_get_directory_preference(e[t],"scope"),a=bp_get_directory_preference(e[t],"filter");void 0!==a&&jq("#"+e[t]+"-order-select select").length&&jq("#"+e[t]+'-order-select select option[value="'+a+'"]').prop("selected",!0),void 0!==i&&jq("div."+e[t]).length&&(jq(".item-list-tabs li").each(function(){jq(this).removeClass("selected")}),jq("#"+e[t]+"-"+i+", #object-nav li.current").addClass("selected"))})}function bp_filter_request(e,t,i,a,s,r,n,o,c){if("activity"===e)return!1;null===i&&(i="all"),bp_set_directory_preference(e,"scope",i),bp_set_directory_preference(e,"filter",t),bp_set_directory_preference(e,"extras",n),jq(".item-list-tabs li").each(function(){jq(this).removeClass("selected")}),jq("#"+e+"-"+i+", #object-nav li.current").addClass("selected"),jq(".item-list-tabs li.selected").addClass("loading"),jq('.item-list-tabs select option[value="'+t+'"]').prop("selected",!0),"friends"!==e&&"group_members"!==e||(e="members"),bp_ajax_request&&bp_ajax_request.abort();var l={};l["bp-"+e+"-filter"]=bp_get_directory_preference(e,"filter"),l["bp-"+e+"-scope"]=bp_get_directory_preference(e,"scope");var d=encodeURIComponent(jq.param(l));bp_ajax_request=jq.post(ajaxurl,{action:e+"_filter",cookie:d,object:e,filter:t,search_terms:s,scope:i,page:r,extras:n,template:c},function(e){if("pag-bottom"===o&&jq("#subnav").length){var t=jq("#subnav").parent();jq("html,body").animate({scrollTop:t.offset().top},"slow",function(){jq(a).fadeOut(100,function(){jq(this).html(e),jq(this).fadeIn(100)})})}else jq(a).fadeOut(100,function(){jq(this).html(e),jq(this).fadeIn(100)});jq(".item-list-tabs li.selected").removeClass("loading")})}function bp_activity_request(e,t){bp_set_directory_preference("activity","scope",e),bp_set_directory_preference("activity","filter",t),jq(".item-list-tabs li").each(function(){jq(this).removeClass("selected loading")}),jq("#activity-"+e+", .item-list-tabs li.current").addClass("selected"),jq("#object-nav.item-list-tabs li.selected, div.activity-type-tabs li.selected").addClass("loading"),jq('#activity-filter-select select option[value="'+t+'"]').prop("selected",!0),jq(".widget_bp_activity_widget h2 span.ajax-loader").show(),bp_ajax_request&&bp_ajax_request.abort();var i={"bp-activity-filter":bp_get_directory_preference("activity","filter"),"bp-activity-scope":bp_get_directory_preference("activity","scope")},a=encodeURIComponent(jq.param(i));bp_ajax_request=jq.post(ajaxurl,{action:"activity_widget_filter",cookie:a,_wpnonce_activity_filter:jq("#_wpnonce_activity_filter").val(),scope:e,filter:t},function(e){jq(".widget_bp_activity_widget h2 span.ajax-loader").hide(),jq("div.activity").fadeOut(100,function(){jq(this).html(e.contents),jq(this).fadeIn(100),bp_legacy_theme_hide_comments()}),void 0!==e.feed_url&&jq(".directory #subnav li.feed a, .home-page #subnav li.feed a").attr("href",e.feed_url),jq(".item-list-tabs li.selected").removeClass("loading")},"json")}function bp_legacy_theme_hide_comments(){var e,t,i,a=jq("div.activity-comments");if(!a.length)return!1;a.each(function(){jq(this).children("ul").children("li").length<5||(comments_div=jq(this),e=comments_div.parents("#activity-stream > li"),t=jq(this).children("ul").children("li"),i=" ",jq("#"+e.attr("id")+" li").length&&(i=jq("#"+e.attr("id")+" li").length),t.each(function(a){a<t.length-5&&(jq(this).hide(),a||jq(this).before('<li class="show-all"><a href="#'+e.attr("id")+'/show-all/">'+BP_DTheme.show_x_comments.replace("%d",i)+"</a></li>"))}))})}function checkAll(){var e,t=document.getElementsByTagName("input");for(e=0;e<t.length;e++)"checkbox"===t[e].type&&(""===$("check_all").checked?t[e].checked="":t[e].checked="checked")}function clear(e){if(e=document.getElementById(e)){var t=e.getElementsByTagName("INPUT"),i=e.getElementsByTagName("OPTION"),a=0;if(t)for(a=0;a<t.length;a++)t[a].checked="";if(i)for(a=0;a<i.length;a++)i[a].selected=!1}}function bp_get_cookies(){var e,t,i,a,s,r=document.cookie.split(";"),n={};for(e=0;e<r.length;e++)i=(t=r[e]).indexOf("="),a=jq.trim(unescape(t.slice(0,i))),s=unescape(t.slice(i+1)),0===a.indexOf("bp-")&&(n[a]=s);return encodeURIComponent(jq.param(n))}function bp_get_query_var(e,t){var i={};return(t=void 0===t?location.search.substr(1).split("&"):t.split("?")[1].split("&")).forEach(function(e){i[e.split("=")[0]]=e.split("=")[1]&&decodeURIComponent(e.split("=")[1])}),!(!i.hasOwnProperty(e)||null==i[e])&&i[e]}var jq=jQuery,bp_ajax_request=null,newest_activities="",activity_last_recorded=0,directoryPreferences={};jq(document).ready(function(){var e=1;bp_init_activity();var t=["members","groups","blogs","group_members"],i=jq("#whats-new");if(bp_init_objects(t),i.length&&bp_get_querystring("r")){var a=i.val();jq("#whats-new-options").slideDown(),i.animate({height:"3.8em"}),jq.scrollTo(i,500,{offset:-125,easing:"swing"}),i.val("").focus().val(a)}else jq("#whats-new-options").hide();if(i.focus(function(){jq("#whats-new-options").slideDown(),jq(this).animate({height:"3.8em"}),jq("#aw-whats-new-submit").prop("disabled",!1),jq(this).parent().addClass("active"),jq("#whats-new-content").addClass("active");var e=jq("form#whats-new-form"),t=jq("#activity-all");e.hasClass("submitted")&&e.removeClass("submitted"),t.length&&(t.hasClass("selected")?"-1"!==jq("#activity-filter-select select").val()&&(jq("#activity-filter-select select").val("-1"),jq("#activity-filter-select select").trigger("change")):(jq("#activity-filter-select select").val("-1"),t.children("a").trigger("click")))}),jq("#whats-new-form").on("focusout",function(e){var t=jq(this);setTimeout(function(){if(!t.find(":hover").length){if(""!==i.val())return;i.animate({height:"2.2em"}),jq("#whats-new-options").slideUp(),jq("#aw-whats-new-submit").prop("disabled",!0),jq("#whats-new-content").removeClass("active"),i.parent().removeClass("active")}},0)}),jq("#aw-whats-new-submit").on("click",function(){var e,t=0,i=jq(this),a=i.closest("form#whats-new-form"),s={};return jq.each(a.serializeArray(),function(e,t){"_"!==t.name.substr(0,1)&&"whats-new"!==t.name.substr(0,9)&&(s[t.name]?jq.isArray(s[t.name])?s[t.name].push(t.value):s[t.name]=new Array(s[t.name],t.value):s[t.name]=t.value)}),a.find("*").each(function(){(jq.nodeName(this,"textarea")||jq.nodeName(this,"input"))&&jq(this).prop("disabled",!0)}),jq("div.error").remove(),i.addClass("loading"),i.prop("disabled",!0),a.addClass("submitted"),object="",item_id=jq("#whats-new-post-in").val(),content=jq("#whats-new").val(),firstrow=jq("#buddypress ul.activity-list li").first(),activity_row=firstrow,timestamp=null,firstrow.length&&(activity_row.hasClass("load-newest")&&(activity_row=firstrow.next()),timestamp=activity_row.prop("class").match(/date-recorded-([0-9]+)/)),timestamp&&(t=timestamp[1]),item_id>0&&(object=jq("#whats-new-post-object").val()),e=jq.extend({action:"post_update",cookie:bp_get_cookies(),_wpnonce_post_update:jq("#_wpnonce_post_update").val(),content:content,object:object,item_id:item_id,since:t,_bp_as_nonce:jq("#_bp_as_nonce").val()||""},s),jq.post(ajaxurl,e,function(e){if(a.find("*").each(function(){(jq.nodeName(this,"textarea")||jq.nodeName(this,"input"))&&jq(this).prop("disabled",!1)}),e[0]+e[1]==="-1")a.prepend(e.substr(2,e.length)),jq("#"+a.attr("id")+" div.error").hide().fadeIn(200);else{if(0===jq("ul.activity-list").length&&(jq("div.error").slideUp(100).remove(),jq("#message").slideUp(100).remove(),jq("div.activity").append('<ul id="activity-stream" class="activity-list item-list">')),firstrow.hasClass("load-newest")&&firstrow.remove(),jq("#activity-stream").prepend(e),t||jq("#activity-stream li:first").addClass("new-update just-posted"),0!==jq("#latest-update").length){var i=jq("#activity-stream li.new-update .activity-content .activity-inner p").html(),s=jq("#activity-stream li.new-update .activity-content .activity-header p a.view").attr("href"),r="";""!==jq("#activity-stream li.new-update .activity-content .activity-inner p").text()&&(r=i+" "),r+='<a href="'+s+'" rel="nofollow">'+BP_DTheme.view+"</a>",jq("#latest-update").slideUp(300,function(){jq("#latest-update").html(r),jq("#latest-update").slideDown(300)})}jq("li.new-update").hide().slideDown(300),jq("li.new-update").removeClass("new-update"),jq("#whats-new").val(""),a.get(0).reset(),newest_activities="",activity_last_recorded=0}jq("#whats-new-options").slideUp(),jq("#whats-new-form textarea").animate({height:"2.2em"}),jq("#aw-whats-new-submit").prop("disabled",!0).removeClass("loading"),jq("#whats-new-content").removeClass("active")}),!1}),jq("div.activity-type-tabs").on("click",function(e){var t,i,a=jq(e.target).parent();if("STRONG"===e.target.nodeName||"SPAN"===e.target.nodeName)a=a.parent();else if("A"!==e.target.nodeName)return!1;return t=a.attr("id").substr(9,a.attr("id").length),i=jq("#activity-filter-select select").val(),"mentions"===t&&jq("#"+a.attr("id")+" a strong").remove(),bp_activity_request(t,i),!1}),jq("#activity-filter-select select").change(function(){var e,t=jq("div.activity-type-tabs li.selected"),i=jq(this).val();return e=t.length?t.attr("id").substr(9,t.attr("id").length):null,bp_activity_request(e,i),!1}),jq("div.activity").on("click",function(t){var i,a,s,r,n,o,c,l,d,p,u=jq(t.target);return u.hasClass("fav")||u.hasClass("unfav")?!u.hasClass("loading")&&(i=u.hasClass("fav")?"fav":"unfav",a=u.closest(".activity-item"),s=a.attr("id").substr(9,a.attr("id").length),c=bp_get_query_var("_wpnonce",u.attr("href")),u.addClass("loading"),jq.post(ajaxurl,{action:"activity_mark_"+i,cookie:bp_get_cookies(),id:s,nonce:c},function(e){u.removeClass("loading"),u.fadeOut(200,function(){jq(this).html(e),jq(this).attr("title","fav"===i?BP_DTheme.remove_fav:BP_DTheme.mark_as_fav),jq(this).fadeIn(200)}),"fav"===i?(jq(".item-list-tabs #activity-favs-personal-li").length||(jq(".item-list-tabs #activity-favorites").length||jq(".item-list-tabs ul #activity-mentions").before('<li id="activity-favorites"><a href="#">'+BP_DTheme.my_favs+" <span>0</span></a></li>"),jq(".item-list-tabs ul #activity-favorites span").html(Number(jq(".item-list-tabs ul #activity-favorites span").html())+1)),u.removeClass("fav"),u.addClass("unfav")):(u.removeClass("unfav"),u.addClass("fav"),jq(".item-list-tabs ul #activity-favorites span").html(Number(jq(".item-list-tabs ul #activity-favorites span").html())-1),Number(jq(".item-list-tabs ul #activity-favorites span").html())||(jq(".item-list-tabs ul #activity-favorites").hasClass("selected")&&bp_activity_request(null,null),jq(".item-list-tabs ul #activity-favorites").remove())),"activity-favorites"===jq(".item-list-tabs li.selected").attr("id")&&u.closest(".activity-item").slideUp(100)}),!1):u.hasClass("delete-activity")?(r=u.parents("div.activity ul li"),n=r.attr("id").substr(9,r.attr("id").length),o=u.attr("href"),c=o.split("_wpnonce="),l=r.prop("class").match(/date-recorded-([0-9]+)/),c=c[1],u.addClass("loading"),jq.post(ajaxurl,{action:"delete_activity",cookie:bp_get_cookies(),id:n,_wpnonce:c},function(e){e[0]+e[1]==="-1"?(r.prepend(e.substr(2,e.length)),r.children("#message").hide().fadeIn(300)):(r.slideUp(300),l&&activity_last_recorded===l[1]&&(newest_activities="",activity_last_recorded=0))}),!1):u.hasClass("spam-activity")?(r=u.parents("div.activity ul li"),l=r.prop("class").match(/date-recorded-([0-9]+)/),u.addClass("loading"),jq.post(ajaxurl,{action:"bp_spam_activity",cookie:encodeURIComponent(document.cookie),id:r.attr("id").substr(9,r.attr("id").length),_wpnonce:u.attr("href").split("_wpnonce=")[1]},function(e){e[0]+e[1]==="-1"?(r.prepend(e.substr(2,e.length)),r.children("#message").hide().fadeIn(300)):(r.slideUp(300),l&&activity_last_recorded===l[1]&&(newest_activities="",activity_last_recorded=0))}),!1):u.parent().hasClass("load-more")?(bp_ajax_request&&bp_ajax_request.abort(),jq("#buddypress li.load-more").addClass("loading"),d=e+1,p=[],jq(".activity-list li.just-posted").each(function(){p.push(jq(this).attr("id").replace("activity-",""))}),load_more_args={action:"activity_get_older_updates",cookie:bp_get_cookies(),page:d,exclude_just_posted:p.join(",")},load_more_search=bp_get_querystring("s"),load_more_search&&(load_more_args.search_terms=load_more_search),bp_ajax_request=jq.post(ajaxurl,load_more_args,function(t){jq("#buddypress li.load-more").removeClass("loading"),e=d,jq("#buddypress ul.activity-list").append(t.contents),u.parent().hide()},"json"),!1):void(u.parent().hasClass("load-newest")&&(t.preventDefault(),u.parent().hide(),activity_html=jq.parseHTML(newest_activities),jq.each(activity_html,function(e,t){"LI"===t.nodeName&&jq(t).hasClass("just-posted")&&jq("#"+jq(t).attr("id")).length&&jq("#"+jq(t).attr("id")).remove()}),jq("#buddypress ul.activity-list").prepend(newest_activities),newest_activities=""))}),jq("div.activity").on("click",".activity-read-more a",function(e){var t,i,a=jq(e.target),s=a.parent().attr("id").split("-"),r=s[3],n=s[0];return t="acomment"===n?"acomment-content":"activity-inner",i=jq("#"+n+"-"+r+" ."+t+":first"),jq(a).addClass("loading"),jq.post(ajaxurl,{action:"get_single_activity_content",activity_id:r},function(e){jq(i).slideUp(300).html(e).slideDown(300)}),!1}),jq("form.ac-form").hide(),jq(".activity-comments").length&&bp_legacy_theme_hide_comments(),jq("div.activity").on("click",function(e){var t,i,a,s,r,n,o,c,l,d,p,u,m,h,_,v=jq(e.target);return v.hasClass("acomment-reply")||v.parent().hasClass("acomment-reply")?(v.parent().hasClass("acomment-reply")&&(v=v.parent()),t=v.attr("id"),i=t.split("-"),a=i[2],s=v.attr("href").substr(10,v.attr("href").length),(r=jq("#ac-form-"+a)).css("display","none"),r.removeClass("root"),jq(".ac-form").hide(),r.children("div").each(function(){jq(this).hasClass("error")&&jq(this).hide()}),"comment"!==i[1]?jq("#acomment-"+s).append(r):jq("#activity-"+a+" .activity-comments").append(r),r.parent().hasClass("activity-comments")&&r.addClass("root"),r.slideDown(200),jq.scrollTo(r,500,{offset:-100,easing:"swing"}),jq("#ac-form-"+i[2]+" textarea").focus(),!1):"ac_form_submit"===v.attr("name")?(r=v.parents("form"),n=r.parent(),o=r.attr("id").split("-"),c=n.hasClass("activity-comments")?o[2]:n.attr("id").split("-")[1],content=jq("#"+r.attr("id")+" textarea"),jq("#"+r.attr("id")+" div.error").hide(),v.addClass("loading").prop("disabled",!0),content.addClass("loading").prop("disabled",!0),l={action:"new_activity_comment",cookie:bp_get_cookies(),_wpnonce_new_activity_comment:jq("#_wpnonce_new_activity_comment_"+o[2]).val(),comment_id:c,form_id:o[2],content:content.val()},(d=jq("#_bp_as_nonce_"+c).val())&&(l["_bp_as_nonce_"+c]=d),jq.post(ajaxurl,l,function(e){if(v.removeClass("loading"),content.removeClass("loading"),e[0]+e[1]==="-1")r.append(jq(e.substr(2,e.length)).hide().fadeIn(200));else{var t=r.parent();r.fadeOut(200,function(){0===t.children("ul").length&&(t.hasClass("activity-comments")?t.prepend("<ul></ul>"):t.append("<ul></ul>"));var i=jq.trim(e);t.children("ul").append(jq(i).hide().fadeIn(200)),r.children("textarea").val(""),t.parent().addClass("has-comments")}),jq("#"+r.attr("id")+" textarea").val(""),u=Number(jq("#activity-"+o[2]+" a.acomment-reply span").html())+1,jq("#activity-"+o[2]+" a.acomment-reply span").html(u),(p=t.parents(".activity-comments").find(".show-all a"))&&p.html(BP_DTheme.show_x_comments.replace("%d",u))}jq(v).prop("disabled",!1),jq(content).prop("disabled",!1)}),!1):v.hasClass("acomment-delete")?(m=v.attr("href"),h=v.parent().parent(),r=h.parents("div.activity-comments").children("form"),_=m.split("_wpnonce="),_=_[1],c=m.split("cid="),c=c[1].split("&"),c=c[0],v.addClass("loading"),jq(".activity-comments ul .error").remove(),h.parents(".activity-comments").append(r),jq.post(ajaxurl,{action:"delete_activity_comment",cookie:bp_get_cookies(),_wpnonce:_,id:c},function(e){if(e[0]+e[1]==="-1")h.prepend(jq(e.substr(2,e.length)).hide().fadeIn(200));else{var t,i,a,s=jq("#"+h.attr("id")+" ul").children("li"),r=0;jq(s).each(function(){jq(this).is(":hidden")||r++}),h.fadeOut(200,function(){h.remove()}),i=(t=jq("#"+h.parents("#activity-stream > li").attr("id")+" a.acomment-reply span")).html()-(1+r),t.html(i),(a=h.parents(".activity-comments").find(".show-all a"))&&a.html(BP_DTheme.show_x_comments.replace("%d",i)),0===i&&jq(h.parents("#activity-stream > li")).removeClass("has-comments")}}),!1):v.hasClass("spam-activity-comment")?(m=v.attr("href"),h=v.parent().parent(),v.addClass("loading"),jq(".activity-comments ul div.error").remove(),h.parents(".activity-comments").append(h.parents(".activity-comments").children("form")),jq.post(ajaxurl,{action:"bp_spam_activity_comment",cookie:encodeURIComponent(document.cookie),_wpnonce:m.split("_wpnonce=")[1],id:m.split("cid=")[1].split("&")[0]},function(e){if(e[0]+e[1]==="-1")h.prepend(jq(e.substr(2,e.length)).hide().fadeIn(200));else{var t,i=jq("#"+h.attr("id")+" ul").children("li"),a=0;jq(i).each(function(){jq(this).is(":hidden")||a++}),h.fadeOut(200),t=h.parents("#activity-stream > li"),jq("#"+t.attr("id")+" a.acomment-reply span").html(jq("#"+t.attr("id")+" a.acomment-reply span").html()-(1+a))}}),!1):v.parent().hasClass("show-all")?(v.parent().addClass("loading"),setTimeout(function(){v.parent().parent().children("li").fadeIn(200,function(){v.parent().remove()})},600),!1):v.hasClass("ac-reply-cancel")?(jq(v).closest(".ac-form").slideUp(200),!1):void 0}),jq(document).keydown(function(e){(e=e||window.event).target?element=e.target:e.srcElement&&(element=e.srcElement),3===element.nodeType&&(element=element.parentNode),!0!==e.ctrlKey&&!0!==e.altKey&&!0!==e.metaKey&&27===(e.keyCode?e.keyCode:e.which)&&"TEXTAREA"===element.tagName&&jq(element).hasClass("ac-input")&&jq(element).parent().parent().parent().slideUp(200)}),jq(".dir-search, .groups-members-search").on("click",function(e){if(!jq(this).hasClass("no-ajax")){var t,i,a,s=jq(e.target);if("submit"===s.attr("type")){t=jq(".item-list-tabs li.selected").attr("id").split("-")[0],i=null,a=s.parent().find("#"+t+"_search").val(),"groups-members-search"===e.currentTarget.className&&(t="group_members",i="groups/single/members");var r=bp_get_directory_preference(t,"scope");return bp_filter_request(t,bp_get_directory_preference(t,"filter"),r,"div."+t,a,1,bp_get_directory_preference(t,"extras"),null,i),!1}}}),jq("div.item-list-tabs").on("click",function(e){if(jq("body").hasClass("type")&&jq("body").hasClass("directory")&&jq(this).addClass("no-ajax"),!jq(this).hasClass("no-ajax")&&!jq(e.target).hasClass("no-ajax")){var t,i,a,s="SPAN"===e.target.nodeName?e.target.parentNode:e.target,r=jq(s).parent();return"LI"!==r[0].nodeName||r.hasClass("last")?void 0:(t=r.attr("id").split("-"),"activity"!==(i=t[0])&&(a=t[1],bp_filter_request(i,jq("#"+i+"-order-select select").val(),a,"div."+i,jq("#"+i+"_search").val(),1,bp_get_directory_preference(i,"extras")),!1))}}),jq("li.filter select").change(function(){var e,t,i,a,s,r,n;return t=(e=jq(jq(".item-list-tabs li.selected").length?".item-list-tabs li.selected":this).attr("id").split("-"))[0],i=e[1],a=jq(this).val(),s=!1,r=null,jq(".dir-search input").length&&(s=jq(".dir-search input").val()),(n=jq(".groups-members-search input")).length&&(s=n.val(),t="members",i="groups"),"members"===t&&"groups"===i&&(t="group_members",r="groups/single/members"),"friends"===t&&(t="members"),bp_filter_request(t,a,i,"div."+t,s,1,bp_get_directory_preference(t,"extras"),null,r),!1}),jq("#buddypress").on("click",function(e){var t,i,a,s,r,n,o,c,l=jq(e.target);if(l.hasClass("button"))return!0;if(l.parent().parent().hasClass("pagination")&&!l.parent().parent().hasClass("no-ajax")){if(l.hasClass("dots")||l.hasClass("current"))return!1;i=(t=jq(jq(".item-list-tabs li.selected").length?".item-list-tabs li.selected":"li.filter select").attr("id").split("-"))[0],a=!1,s=jq(l).closest(".pagination-links").attr("id"),r=null,jq("div.dir-search input").length&&(a=!(a=jq(".dir-search input")).val()&&bp_get_querystring(a.attr("name"))?jq(".dir-search input").prop("placeholder"):a.val()),n=jq(l).hasClass("next")||jq(l).hasClass("prev")?jq(".pagination span.current").html():jq(l).html(),n=Number(n.replace(/\D/g,"")),jq(l).hasClass("next")?n++:jq(l).hasClass("prev")&&n--,(o=jq(".groups-members-search input")).length&&(a=o.val(),i="members"),"members"===i&&"groups"===t[1]&&(i="group_members",r="groups/single/members"),"admin"===i&&jq("body").hasClass("membership-requests")&&(i="requests"),c=-1!==s.indexOf("pag-bottom")?"pag-bottom":null;var d=bp_get_directory_preference(i,"scope");return bp_filter_request(i,bp_get_directory_preference(i,"filter"),d,"div."+i,a,n,bp_get_directory_preference(i,"extras"),c,r),!1}}),jq("#send-invite-form").on("click","#invite-list input",function(){var e,t,i=jq("#send-invite-form > .invite").length;jq(".ajax-loader").toggle(),i&&jq(this).parents("ul").find("input").prop("disabled",!0),e=jq(this).val(),t=!0===jq(this).prop("checked")?"invite":"uninvite",i||jq(".item-list-tabs li.selected").addClass("loading"),jq.post(ajaxurl,{action:"groups_invite_user",friend_action:t,cookie:bp_get_cookies(),_wpnonce:jq("#_wpnonce_invite_uninvite_user").val(),friend_id:e,group_id:jq("#group_id").val()},function(a){jq("#message")&&jq("#message").hide(),i?bp_filter_request("invite","bp-invite-filter","bp-invite-scope","div.invite",!1,1,"","",""):(jq(".ajax-loader").toggle(),"invite"===t?jq("#friend-list").append(a):"uninvite"===t&&jq("#friend-list li#uid-"+e).remove(),jq(".item-list-tabs li.selected").removeClass("loading"))})}),jq("#send-invite-form").on("click","a.remove",function(){var e=jq("#send-invite-form > .invite").length,t=jq(this).attr("id");return jq(".ajax-loader").toggle(),t=t.split("-"),t=t[1],jq.post(ajaxurl,{action:"groups_invite_user",friend_action:"uninvite",cookie:bp_get_cookies(),_wpnonce:jq("#_wpnonce_invite_uninvite_user").val(),friend_id:t,group_id:jq("#group_id").val()},function(i){e?bp_filter_request("invite","bp-invite-filter","bp-invite-scope","div.invite",!1,1,"","",""):(jq(".ajax-loader").toggle(),jq("#friend-list #uid-"+t).remove(),jq("#invite-list #f-"+t).prop("checked",!1))}),!1}),jq(".visibility-toggle-link").on("click",function(e){e.preventDefault(),jq(this).attr("aria-expanded","true").parent().hide().addClass("field-visibility-settings-hide").siblings(".field-visibility-settings").show().addClass("field-visibility-settings-open")}),jq(".field-visibility-settings-close").on("click",function(e){e.preventDefault(),jq(".visibility-toggle-link").attr("aria-expanded","false");var t=jq(this).parent(),i=t.find("input:checked").parent().text();t.hide().removeClass("field-visibility-settings-open").siblings(".field-visibility-settings-toggle").find(".current-visibility-level").text(i).end().show().removeClass("field-visibility-settings-hide")}),jq("#profile-edit-form input:not(:submit), #profile-edit-form textarea, #profile-edit-form select, #signup_form input:not(:submit), #signup_form textarea, #signup_form select").change(function(){var e=!0;jq("#profile-edit-form input:submit, #signup_form input:submit").on("click",function(){e=!1}),window.onbeforeunload=function(t){if(e)return BP_DTheme.unsaved_changes}}),jq("#friend-list a.accept, #friend-list a.reject").on("click",function(){var e,t=jq(this),i=jq(this).parents("#friend-list li"),a=jq(this).parents("li div.action"),s=i.attr("id").substr(11,i.attr("id").length),r=t.attr("href").split("_wpnonce=")[1];return!jq(this).hasClass("accepted")&&!jq(this).hasClass("rejected")&&(jq(this).hasClass("accept")?(e="accept_friendship",a.children("a.reject").css("visibility","hidden")):(e="reject_friendship",a.children("a.accept").css("visibility","hidden")),t.addClass("loading"),jq.post(ajaxurl,{action:e,cookie:bp_get_cookies(),id:s,_wpnonce:r},function(e){t.removeClass("loading"),e[0]+e[1]==="-1"?(i.prepend(e.substr(2,e.length)),i.children("#message").hide().fadeIn(200)):t.fadeOut(100,function(){jq(this).hasClass("accept")?(a.children("a.reject").hide(),jq(this).html(BP_DTheme.accepted).contents().unwrap()):(a.children("a.accept").hide(),jq(this).html(BP_DTheme.rejected).contents().unwrap())})}),!1)}),jq("#members-dir-list, #members-group-list, #item-header").on("click",".friendship-button a",function(){jq(this).parent().addClass("loading");var e=jq(this).attr("id"),t=jq(this).attr("href"),i=jq(this);return e=e.split("-"),e=e[1],t=t.split("?_wpnonce="),t=t[1].split("&"),t=t[0],jq.post(ajaxurl,{action:"addremove_friend",cookie:bp_get_cookies(),fid:e,_wpnonce:t},function(e){var t=i.attr("rel");parentdiv=i.parent(),"add"===t?jq(parentdiv).fadeOut(200,function(){parentdiv.removeClass("add_friend"),parentdiv.removeClass("loading"),parentdiv.addClass("pending_friend"),parentdiv.fadeIn(200).html(e)}):"remove"===t&&jq(parentdiv).fadeOut(200,function(){parentdiv.removeClass("remove_friend"),parentdiv.removeClass("loading"),parentdiv.addClass("add"),parentdiv.fadeIn(200).html(e)})}),!1}),jq("#buddypress").on("click",".group-button .leave-group",function(){if(!1===confirm(BP_DTheme.leave_group_confirm))return!1}),jq("#groups-dir-list").on("click",".group-button a",function(){var e=jq(this).parent().attr("id"),t=jq(this).attr("href"),i=jq(this);return e=e.split("-"),e=e[1],t=t.split("?_wpnonce="),t=t[1].split("&"),t=t[0],(!i.hasClass("leave-group")||!1!==confirm(BP_DTheme.leave_group_confirm))&&(jq.post(ajaxurl,{action:"joinleave_group",cookie:bp_get_cookies(),gid:e,_wpnonce:t},function(e){var t=i.parent();jq("body.directory").length?jq(t).fadeOut(200,function(){t.fadeIn(200).html(e);var a=jq("#groups-personal span"),s=1;i.hasClass("leave-group")?(t.hasClass("hidden")&&t.closest("li").slideUp(200),s=0):i.hasClass("request-membership")&&(s=!1),a.length&&!1!==s&&(s?a.text(1+(a.text()>>0)):a.text((a.text()>>0)-1))}):window.location.reload()}),!1)}),jq("#groups-list li.hidden").each(function(){"none"===jq(this).css("display")&&jq(this).css("cssText","display: list-item !important")}),jq("#buddypress").on("click",".pending",function(){return!1}),jq("body").hasClass("register")){var s=jq("#signup_with_blog");s.prop("checked")||jq("#blog-details").toggle(),s.change(function(){jq("#blog-details").toggle()})}jq(".message-search").on("click",function(e){if(!jq(this).hasClass("no-ajax")){var t,i=jq(e.target);if("submit"===i.attr("type")||"button"===i.attr("type")){var a=bp_get_directory_preference(t="messages","scope"),s=bp_get_directory_preference(t,"filter"),r=bp_get_directory_preference(t,"extras");return bp_filter_request(t,s,a,"div."+t,jq("#messages_search").val(),1,r),!1}}}),jq("#send_reply_button").click(function(){var e=jq("#messages_order").val()||"ASC",t=jq("#message-recipients").offset(),i=jq("#send_reply_button");return jq(i).addClass("loading").prop("disabled",!0),jq.post(ajaxurl,{action:"messages_send_reply",cookie:bp_get_cookies(),_wpnonce:jq("#send_message_nonce").val(),content:jq("#message_content").val(),send_to:jq("#send_to").val(),subject:jq("#subject").val(),thread_id:jq("#thread_id").val()},function(a){a[0]+a[1]==="-1"?jq("#send-reply").prepend(a.substr(2,a.length)):(jq("#send-reply #message").remove(),jq("#message_content").val(""),"ASC"===e?jq("#send-reply").before(a):(jq("#message-recipients").after(a),jq(window).scrollTop(t.top)),jq(".new-message").hide().slideDown(200,function(){jq(".new-message").removeClass("new-message")})),jq(i).removeClass("loading").prop("disabled",!1)}),!1}),jq("body.messages #item-body div.messages").on("change","#message-type-select",function(){var e=this.value,t=jq('td input[type="checkbox"]'),i="checked";switch(t.each(function(e){t[e].checked=""}),e){case"unread":t=jq('tr.unread td input[type="checkbox"]');break;case"read":t=jq('tr.read td input[type="checkbox"]');break;case"":i=""}t.each(function(e){t[e].checked=i})}),jq("#select-all-messages").click(function(e){this.checked?jq(".message-check").each(function(){this.checked=!0}):jq(".message-check").each(function(){this.checked=!1})}),jq("#messages-bulk-manage").attr("disabled","disabled"),jq("#messages-select").on("change",function(){jq("#messages-bulk-manage").attr("disabled",jq(this).val().length<=0)}),starAction=function(){var e=jq(this);return jq.post(ajaxurl,{action:"messages_star",message_id:e.data("message-id"),star_status:e.data("star-status"),nonce:e.data("star-nonce"),bulk:e.data("star-bulk")},function(t){1===parseInt(t,10)&&("unstar"===e.data("star-status")?(e.data("star-status","star"),e.removeClass("message-action-unstar").addClass("message-action-star"),e.find(".bp-screen-reader-text").text(BP_PM_Star.strings.text_star),1===BP_PM_Star.is_single_thread?e.attr("data-bp-tooltip",BP_PM_Star.strings.title_star):e.attr("data-bp-tooltip",BP_PM_Star.strings.title_star_thread)):(e.data("star-status","unstar"),e.removeClass("message-action-star").addClass("message-action-unstar"),e.find(".bp-screen-reader-text").text(BP_PM_Star.strings.text_unstar),1===BP_PM_Star.is_single_thread?e.attr("data-bp-tooltip",BP_PM_Star.strings.title_unstar):e.attr("data-bp-tooltip",BP_PM_Star.strings.title_unstar_thread)))}),!1},jq("#message-threads").on("click","td.thread-star a",starAction),jq("#message-thread").on("click",".message-star-actions a",starAction),jq("#message-threads td.bulk-select-check :checkbox").on("change",function(){var e=jq(this),t=e.closest("tr").find(".thread-star a");e.prop("checked")?"unstar"===t.data("star-status")?BP_PM_Star.star_counter++:BP_PM_Star.unstar_counter++:"unstar"===t.data("star-status")?BP_PM_Star.star_counter--:BP_PM_Star.unstar_counter--,BP_PM_Star.star_counter>0&&0===parseInt(BP_PM_Star.unstar_counter,10)?jq('option[value="star"]').hide():jq('option[value="star"]').show(),BP_PM_Star.unstar_counter>0&&0===parseInt(BP_PM_Star.star_counter,10)?jq('option[value="unstar"]').hide():jq('option[value="unstar"]').show()}),jq("#select-all-notifications").click(function(e){this.checked?jq(".notification-check").each(function(){this.checked=!0}):jq(".notification-check").each(function(){this.checked=!1})}),jq("#notification-bulk-manage").attr("disabled","disabled"),jq("#notification-select").on("change",function(){jq("#notification-bulk-manage").attr("disabled",jq(this).val().length<=0)}),jq("#close-notice").on("click",function(){return jq(this).addClass("loading"),jq("#sidebar div.error").remove(),jq.post(ajaxurl,{action:"messages_close_notice",notice_id:jq(".notice").attr("rel").substr(2,jq(".notice").attr("rel").length),nonce:jq("#close-notice-nonce").val()},function(e){jq("#close-notice").removeClass("loading"),e[0]+e[1]==="-1"?(jq(".notice").prepend(e.substr(2,e.length)),jq("#sidebar div.error").hide().fadeIn(200)):jq(".notice").slideUp(100)}),!1}),jq("#wp-admin-bar ul.main-nav li, #nav li").mouseover(function(){jq(this).addClass("sfhover")}),jq("#wp-admin-bar ul.main-nav li, #nav li").mouseout(function(){jq(this).removeClass("sfhover")}),jq("#wp-admin-bar-logout, a.logout").on("click",function(){jq.removeCookie("bp-activity-scope",{path:"/",secure:"https:"===window.location.protocol}),jq.removeCookie("bp-activity-filter",{path:"/",secure:"https:"===window.location.protocol}),jq.removeCookie("bp-activity-oldestpage",{path:"/",secure:"https:"===window.location.protocol});var e=["members","groups","blogs","forums"];jq(e).each(function(t){jq.removeCookie("bp-"+e[t]+"-scope",{path:"/",secure:"https:"===window.location.protocol}),jq.removeCookie("bp-"+e[t]+"-filter",{path:"/",secure:"https:"===window.location.protocol}),jq.removeCookie("bp-"+e[t]+"-extras",{path:"/",secure:"https:"===window.location.protocol})})}),jq("body").hasClass("no-js")&&jq("body").attr("class",jq("body").attr("class").replace(/no-js/,"js")),"undefined"!=typeof wp&&void 0!==wp.heartbeat&&void 0!==BP_DTheme.pulse&&(wp.heartbeat.interval(Number(BP_DTheme.pulse)),jq.fn.extend({"heartbeat-send":function(){return this.bind("heartbeat-send.buddypress")}}));var r=0;jq(document).on("heartbeat-send.buddypress",function(e,t){r=0,jq("#buddypress ul.activity-list li").first().prop("id")&&(timestamp=jq("#buddypress ul.activity-list li").first().prop("class").match(/date-recorded-([0-9]+)/),timestamp&&(r=timestamp[1])),(0===activity_last_recorded||Number(r)>activity_last_recorded)&&(activity_last_recorded=Number(r)),t.bp_activity_last_recorded=activity_last_recorded,last_recorded_search=bp_get_querystring("s"),last_recorded_search&&(t.bp_activity_last_recorded_search_terms=last_recorded_search)}),jq(document).on("heartbeat-tick",function(e,t){t.bp_activity_newest_activities&&(newest_activities=t.bp_activity_newest_activities.activities+newest_activities,activity_last_recorded=Number(t.bp_activity_newest_activities.last_recorded),jq("#buddypress ul.activity-list li").first().hasClass("load-newest")||jq("#buddypress ul.activity-list").prepend('<li class="load-newest"><a href="#newest">'+BP_DTheme.newest+"</a></li>"))})});
jQuery.ajax({type:"GET",url:postviewvar.rhpost_ajax_url,data:"postviews_id="+encodeURIComponent(postviewvar.post_id)+"&action="+encodeURIComponent('rehubpostviews'),cache:!1});
var ajaxurl='https://redeal.lookmetrics.co/wp-admin/admin-ajax.php';
/*! This file is auto-generated */
window.addComment=function(v){var I,C,h,E=v.document,b={commentReplyClass:"comment-reply-link",commentReplyTitleId:"reply-title",cancelReplyId:"cancel-comment-reply-link",commentFormId:"commentform",temporaryFormId:"wp-temp-form-div",parentIdFieldId:"comment_parent",postIdFieldId:"comment_post_ID"},e=v.MutationObserver||v.WebKitMutationObserver||v.MozMutationObserver,r="querySelector"in E&&"addEventListener"in v,n=!!E.documentElement.dataset;function t(){d(),e&&new e(o).observe(E.body,{childList:!0,subtree:!0})}function d(e){if(r&&(I=g(b.cancelReplyId),C=g(b.commentFormId),I)){I.addEventListener("touchstart",l),I.addEventListener("click",l);var t=function(e){if((e.metaKey||e.ctrlKey)&&13===e.keyCode)return C.removeEventListener("keydown",t),e.preventDefault(),C.submit.click(),!1};C&&C.addEventListener("keydown",t);for(var n,d=function(e){var t=b.commentReplyClass;e&&e.childNodes||(e=E);t=E.getElementsByClassName?e.getElementsByClassName(t):e.querySelectorAll("."+t);return t}(e),o=0,i=d.length;o<i;o++)(n=d[o]).addEventListener("touchstart",a),n.addEventListener("click",a)}}function l(e){var t,n,d=g(b.temporaryFormId);d&&h&&(g(b.parentIdFieldId).value="0",t=d.textContent,d.parentNode.replaceChild(h,d),this.style.display="none",n=(d=(n=g(b.commentReplyTitleId))&&n.firstChild)&&d.nextSibling,d&&d.nodeType===Node.TEXT_NODE&&t&&(n&&"A"===n.nodeName&&n.id!==b.cancelReplyId&&(n.style.display=""),d.textContent=t),e.preventDefault())}function a(e){var t=g(b.commentReplyTitleId),n=t&&t.firstChild.textContent,d=this,o=m(d,"belowelement"),i=m(d,"commentid"),r=m(d,"respondelement"),t=m(d,"postid"),n=m(d,"replyto")||n;o&&i&&r&&t&&!1===v.addComment.moveForm(o,i,r,t,n)&&e.preventDefault()}function o(e){for(var t=e.length;t--;)if(e[t].addedNodes.length)return void d()}function m(e,t){return n?e.dataset[t]:e.getAttribute("data-"+t)}function g(e){return E.getElementById(e)}return r&&"loading"!==E.readyState?t():r&&v.addEventListener("DOMContentLoaded",t,!1),{init:d,moveForm:function(e,t,n,d,o){var i=g(e);h=g(n);var r,l,a,m,c,s=g(b.parentIdFieldId),y=g(b.postIdFieldId),p=(c=g(b.commentReplyTitleId))&&c.firstChild,u=p&&p.nextSibling;if(i&&h&&s){void 0===o&&(o=p&&p.textContent),m=h,e=b.temporaryFormId,n=g(e),c=(c=g(b.commentReplyTitleId))?c.firstChild.textContent:"",n||((n=E.createElement("div")).id=e,n.style.display="none",n.textContent=c,m.parentNode.insertBefore(n,m)),d&&y&&(y.value=d),s.value=t,I.style.display="",i.parentNode.insertBefore(h,i.nextSibling),p&&p.nodeType===Node.TEXT_NODE&&(u&&"A"===u.nodeName&&u.id!==b.cancelReplyId&&(u.style.display="none"),p.textContent=o),I.onclick=function(){return!1};try{for(var f=0;f<C.elements.length;f++)if(r=C.elements[f],l=!1,"getComputedStyle"in v?a=v.getComputedStyle(r):E.documentElement.currentStyle&&(a=r.currentStyle),(r.offsetWidth<=0&&r.offsetHeight<=0||"hidden"===a.visibility)&&(l=!0),"hidden"!==r.type&&!r.disabled&&!l){r.focus();break}}catch(e){}return!1}}}}(window);
var wpcf7={"api":{"root":"https:\/\/redeal.lookmetrics.co\/wp-json\/","namespace":"contact-form-7\/v1"},"cached":"1"};
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=3)}([function(e,t){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.default=e.exports,e.exports.__esModule=!0},function(e,t,n){var r=n(2);e.exports=function(e,t){if(null==e)return{};var n,o,c=r(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(c[n]=e[n])}return c},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=function(e,t){if(null==e)return{};var n,r,o={},c=Object.keys(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||(o[n]=e[n]);return o},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r),c=function(e){return Math.abs(parseInt(e,10))},a=function(e,t){var n=new Map([["init","init"],["validation_failed","invalid"],["acceptance_missing","unaccepted"],["spam","spam"],["aborted","aborted"],["mail_sent","sent"],["mail_failed","failed"],["submitting","submitting"],["resetting","resetting"]]);n.has(t)&&(t=n.get(t)),Array.from(n.values()).includes(t)||(t=(t=t.replace(/[^0-9a-z]+/i," ").trim()).replace(/\s+/,"-"),t="custom-".concat(t));var r=e.getAttribute("data-status");return e.wpcf7.status=t,e.setAttribute("data-status",t),e.classList.add(t),r&&r!==t&&e.classList.remove(r),t},i=function(e,t,n){var r=new CustomEvent("wpcf7".concat(t),{bubbles:!0,detail:n});"string"==typeof e&&(e=document.querySelector(e)),e.dispatchEvent(r)},s=n(1),u=n.n(s);function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var p=function(e){var t=wpcf7.api,n=t.root,r=t.namespace,o=void 0===r?"contact-form-7/v1":r;return d.reduceRight((function(e,t){return function(n){return t(n,e)}}),(function(e){var t,r,c=e.url,a=e.path,i=e.endpoint,s=e.headers,f=e.body,p=e.data,d=u()(e,["url","path","endpoint","headers","body","data"]);"string"==typeof i&&(t=o.replace(/^\/|\/$/g,""),a=(r=i.replace(/^\//,""))?t+"/"+r:t),"string"==typeof a&&(-1!==n.indexOf("?")&&(a=a.replace("?","&")),a=a.replace(/^\//,""),c=n+a),delete(s=l({Accept:"application/json, */*;q=0.1"},s))["X-WP-Nonce"],p&&(f=JSON.stringify(p),s["Content-Type"]="application/json");var v={code:"fetch_error",message:"You are probably offline."},b={code:"invalid_json",message:"The response is not a valid JSON response."};return window.fetch(c||a||window.location.href,l(l({},d),{},{headers:s,body:f})).then((function(e){return Promise.resolve(e).then((function(e){if(e.status>=200&&e.status<300)return e;throw e})).then((function(e){if(204===e.status)return null;if(e&&e.json)return e.json().catch((function(){throw b}));throw b}))}),(function(){throw v}))}))(e)},d=[];function v(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=new FormData(e);t.submitter&&t.submitter.name&&n.append(t.submitter.name,t.submitter.value);var r={contactFormId:e.wpcf7.id,pluginVersion:e.wpcf7.pluginVersion,contactFormLocale:e.wpcf7.locale,unitTag:e.wpcf7.unitTag,containerPostId:e.wpcf7.containerPost,status:e.wpcf7.status,inputs:Array.from(n,(function(e){var t=e[0],n=e[1];return!t.match(/^_/)&&{name:t,value:n}})).filter((function(e){return!1!==e})),formData:n},o=function(t){var n=document.createElement("li");n.setAttribute("id",t.error_id),t.idref?n.insertAdjacentHTML("beforeend",'<a href="#'.concat(t.idref,'">').concat(t.message,"</a>")):n.insertAdjacentText("beforeend",t.message),e.wpcf7.parent.querySelector(".screen-reader-response ul").appendChild(n)},c=function(t){var n=e.querySelector(t.into),r=n.querySelector(".wpcf7-form-control");r.classList.add("wpcf7-not-valid"),r.setAttribute("aria-invalid","true"),r.setAttribute("aria-describedby",t.error_id);var o=document.createElement("span");o.setAttribute("class","wpcf7-not-valid-tip"),o.setAttribute("aria-hidden","true"),o.insertAdjacentText("beforeend",t.message),n.appendChild(o),r.closest(".use-floating-validation-tip")&&(r.addEventListener("focus",(function(e){o.setAttribute("style","display: none")})),o.addEventListener("mouseover",(function(e){o.setAttribute("style","display: none")})))};p({endpoint:"contact-forms/".concat(e.wpcf7.id,"/feedback"),method:"POST",body:n,wpcf7:{endpoint:"feedback",form:e,detail:r}}).then((function(t){var n=a(e,t.status);return r.status=t.status,r.apiResponse=t,["invalid","unaccepted","spam","aborted"].includes(n)?i(e,n,r):["sent","failed"].includes(n)&&i(e,"mail".concat(n),r),i(e,"submit",r),t})).then((function(t){t.posted_data_hash&&(e.querySelector('input[name="_wpcf7_posted_data_hash"]').value=t.posted_data_hash),"mail_sent"===t.status&&(e.reset(),e.wpcf7.resetOnMailSent=!0),t.invalid_fields&&(t.invalid_fields.forEach(o),t.invalid_fields.forEach(c)),e.wpcf7.parent.querySelector('.screen-reader-response [role="status"]').insertAdjacentText("beforeend",t.message),e.querySelectorAll(".wpcf7-response-output").forEach((function(e){e.innerText=t.message}))})).catch((function(e){return console.error(e)}))}p.use=function(e){d.unshift(e)},p.use((function(e,t){if(e.wpcf7&&"feedback"===e.wpcf7.endpoint){var n=e.wpcf7,r=n.form,o=n.detail;b(r),i(r,"beforesubmit",o),a(r,"submitting")}return t(e)}));var b=function(e){e.wpcf7.parent.querySelector('.screen-reader-response [role="status"]').innerText="",e.wpcf7.parent.querySelector(".screen-reader-response ul").innerText="",e.querySelectorAll(".wpcf7-not-valid-tip").forEach((function(e){e.remove()})),e.querySelectorAll(".wpcf7-form-control").forEach((function(e){e.setAttribute("aria-invalid","false"),e.removeAttribute("aria-describedby"),e.classList.remove("wpcf7-not-valid")})),e.querySelectorAll(".wpcf7-response-output").forEach((function(e){e.innerText=""}))};function m(e){var t=new FormData(e),n={contactFormId:e.wpcf7.id,pluginVersion:e.wpcf7.pluginVersion,contactFormLocale:e.wpcf7.locale,unitTag:e.wpcf7.unitTag,containerPostId:e.wpcf7.containerPost,status:e.wpcf7.status,inputs:Array.from(t,(function(e){var t=e[0],n=e[1];return!t.match(/^_/)&&{name:t,value:n}})).filter((function(e){return!1!==e})),formData:t};p({endpoint:"contact-forms/".concat(e.wpcf7.id,"/refill"),method:"GET",wpcf7:{endpoint:"refill",form:e,detail:n}}).then((function(t){e.wpcf7.resetOnMailSent?(delete e.wpcf7.resetOnMailSent,a(e,"mail_sent")):a(e,"init"),n.apiResponse=t,i(e,"reset",n)})).catch((function(e){return console.error(e)}))}p.use((function(e,t){if(e.wpcf7&&"refill"===e.wpcf7.endpoint){var n=e.wpcf7,r=n.form;n.detail,b(r),a(r,"resetting")}return t(e)}));var w=function(e,t){var n=function(n){var r=t[n];e.querySelectorAll('input[name="'.concat(n,'"]')).forEach((function(e){e.value=""})),e.querySelectorAll("img.wpcf7-captcha-".concat(n)).forEach((function(e){e.setAttribute("src",r)}));var o=/([0-9]+)\.(png|gif|jpeg)$/.exec(r);o&&e.querySelectorAll('input[name="_wpcf7_captcha_challenge_'.concat(n,'"]')).forEach((function(e){e.value=o[1]}))};for(var r in t)n(r)},y=function(e,t){var n=function(n){var r=t[n][0],o=t[n][1];e.querySelectorAll(".wpcf7-form-control-wrap.".concat(n)).forEach((function(e){e.querySelector('input[name="'.concat(n,'"]')).value="",e.querySelector(".wpcf7-quiz-label").textContent=r,e.querySelector('input[name="_wpcf7_quiz_answer_'.concat(n,'"]')).value=o}))};for(var r in t)n(r)};function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){var t=new FormData(e);e.wpcf7={id:c(t.get("_wpcf7")),status:e.getAttribute("data-status"),pluginVersion:t.get("_wpcf7_version"),locale:t.get("_wpcf7_locale"),unitTag:t.get("_wpcf7_unit_tag"),containerPost:c(t.get("_wpcf7_container_post")),parent:e.closest(".wpcf7")},e.querySelectorAll(".wpcf7-submit").forEach((function(e){e.insertAdjacentHTML("afterend",'<span class="ajax-loader"></span>')})),function(e){e.querySelectorAll(".wpcf7-exclusive-checkbox").forEach((function(t){t.addEventListener("change",(function(t){var n=t.target.getAttribute("name");e.querySelectorAll('input[type="checkbox"][name="'.concat(n,'"]')).forEach((function(e){e!==t.target&&(e.checked=!1)}))}))}))}(e),function(e){e.querySelectorAll(".has-free-text").forEach((function(t){var n=t.querySelector("input.wpcf7-free-text"),r=t.querySelector('input[type="checkbox"], input[type="radio"]');n.disabled=!r.checked,e.addEventListener("change",(function(e){n.disabled=!r.checked,e.target===r&&r.checked&&n.focus()}))}))}(e),function(e){e.querySelectorAll(".wpcf7-validates-as-url").forEach((function(e){e.addEventListener("change",(function(t){var n=e.value.trim();n&&!n.match(/^[a-z][a-z0-9.+-]*:/i)&&-1!==n.indexOf(".")&&(n="http://"+(n=n.replace(/^\/+/,""))),e.value=n}))}))}(e),function(e){if(e.querySelector(".wpcf7-acceptance")&&!e.classList.contains("wpcf7-acceptance-as-validation")){var t=function(){var t=!0;e.querySelectorAll(".wpcf7-acceptance").forEach((function(e){if(t&&!e.classList.contains("optional")){var n=e.querySelector('input[type="checkbox"]');(e.classList.contains("invert")&&n.checked||!e.classList.contains("invert")&&!n.checked)&&(t=!1)}})),e.querySelectorAll(".wpcf7-submit").forEach((function(e){e.disabled=!t}))};t(),e.addEventListener("change",(function(e){t()})),e.addEventListener("wpcf7reset",(function(e){t()}))}}(e),function(e){var t=function(e,t){var n=c(e.getAttribute("data-starting-value")),r=c(e.getAttribute("data-maximum-value")),o=c(e.getAttribute("data-minimum-value")),a=e.classList.contains("down")?n-t.value.length:t.value.length;e.setAttribute("data-current-value",a),e.innerText=a,r&&r<t.value.length?e.classList.add("too-long"):e.classList.remove("too-long"),o&&t.value.length<o?e.classList.add("too-short"):e.classList.remove("too-short")},n=function(n){n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({init:!1},n),e.querySelectorAll(".wpcf7-character-count").forEach((function(r){var o=r.getAttribute("data-target-name"),c=e.querySelector('[name="'.concat(o,'"]'));c&&(c.value=c.defaultValue,t(r,c),n.init&&c.addEventListener("keyup",(function(e){t(r,c)})))}))};n({init:!0}),e.addEventListener("wpcf7reset",(function(e){n()}))}(e),window.addEventListener("load",(function(t){wpcf7.cached&&e.reset()})),e.addEventListener("reset",(function(t){wpcf7.reset(e)})),e.addEventListener("submit",(function(t){var n=t.submitter;wpcf7.submit(e,{submitter:n}),t.preventDefault()})),e.addEventListener("wpcf7submit",(function(t){t.detail.apiResponse.captcha&&w(e,t.detail.apiResponse.captcha),t.detail.apiResponse.quiz&&y(e,t.detail.apiResponse.quiz)})),e.addEventListener("wpcf7reset",(function(t){t.detail.apiResponse.captcha&&w(e,t.detail.apiResponse.captcha),t.detail.apiResponse.quiz&&y(e,t.detail.apiResponse.quiz)}))}function O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}document.addEventListener("DOMContentLoaded",(function(e){var t;if("undefined"!=typeof wpcf7)if(void 0!==wpcf7.api){var n=document.querySelectorAll(".wpcf7 > form");"function"==typeof n.forEach?(wpcf7=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?O(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({init:g,submit:v,reset:m},null!==(t=wpcf7)&&void 0!==t?t:{}),n.forEach((function(e){return wpcf7.init(e)}))):console.error("Your browser doesn't support NodeList.forEach().")}else console.error("wpcf7.api is not defined.");else console.error("wpcf7 is not defined.")}))}]);
!function(t){function e(){var e,i,n={height:a.innerHeight,width:a.innerWidth};return n.height||(e=r.compatMode,(e||!t.support.boxModel)&&(i="CSS1Compat"===e?f:r.body,n={height:i.clientHeight,width:i.clientWidth})),n}function i(){return{top:a.pageYOffset||f.scrollTop||r.body.scrollTop,left:a.pageXOffset||f.scrollLeft||r.body.scrollLeft}}function n(){var n,l=t(),r=0;if(t.each(d,function(t,e){var i=e.data.selector,n=e.$element;l=l.add(i?n.find(i):n)}),n=l.length)for(o=o||e(),h=h||i();n>r;r++)if(t.contains(f,l[r])){var a,c,p,s=t(l[r]),u={height:s.height(),width:s.width()},g=s.offset(),v=s.data("inview");if(!h||!o)return;g.top+u.height>h.top&&g.top<h.top+o.height&&g.left+u.width>h.left&&g.left<h.left+o.width?(a=h.left>g.left?"right":h.left+o.width<g.left+u.width?"left":"both",c=h.top>g.top?"bottom":h.top+o.height<g.top+u.height?"top":"both",p=a+"-"+c,v&&v===p||s.data("inview",p).trigger("inview",[!0,a,c])):v&&s.data("inview",!1).trigger("inview",[!1])}}var o,h,l,d={},r=document,a=window,f=r.documentElement,c=t.expando;t.event.special.inview={add:function(e){d[e.guid+"-"+this[c]]={data:e,$element:t(this)},l||t.isEmptyObject(d)||(l=setInterval(n,250))},remove:function(e){try{delete d[e.guid+"-"+this[c]]}catch(i){}t.isEmptyObject(d)&&(clearInterval(l),l=null)}},t(a).on("scroll resize scrollstop",function(){o=h=null}),!f.addEventListener&&f.attachEvent&&f.attachEvent("onfocusin",function(){h=null})}(jQuery);
(function(a){a.pgwModal=function(i){var c={};var g={mainClassName:"pgwModal",backdropClassName:"pgwModalBackdrop",maxWidth:500,titleBar:true,closable:true,closeOnEscape:true,closeOnBackgroundClick:true,closeContent:'<i class="rhicon rhi-times whitebg roundborder50p rh-shadow4 abdposleft"></i>',loadingContent:'<span class="re_loadingbefore"></span>',errorContent:"An error has occured. Please try again in a few moments."};if(typeof window.pgwModalObject!="undefined"){c=window.pgwModalObject}if((typeof i=="object")&&(!i.pushContent)){if(!i.url&&!i.target&&!i.content){throw new Error('PgwModal - There is no content to display, please provide a config parameter : "url", "target" or "content"')}c.config={};c.config=a.extend({},g,i);window.pgwModalObject=c}var k=function(){var o='<div id="pgwModalBackdrop"></div><div id="pgwModal"><div class="pm-container"><div class="pm-body"><span class="pm-close rh-close-btn"></span><div class="pm-title"></div><div class="pm-content"></div></div></div></div>';a("body").append(o);a(document).trigger("PgwModal::Create");return true};var l=function(){a("#pgwModal .pm-title, #pgwModal .pm-content").html("");a("#pgwModal .pm-close").html("").unbind("click");return true};var f=function(){angular.element('body').injector().invoke(function($compile){var scope=angular.element($('#pgwModal .pm-content')).scope();$compile($('#pgwModal .pm-content'))(scope);scope.$digest()});return true};var d=function(o){a("#pgwModal .pm-content").html(o);if(c.config.angular){f()}m();a(document).trigger("PgwModal::PushContent");return true};var m=function(){a("#pgwModal, #pgwModalBackdrop").show();var q=a(window).height();var o=a("#pgwModal .pm-body").height();var p=Math.round((q-o)/3);if(p<=0){p=0}a("#pgwModal .pm-body").animate({marginTop:p},200);return true};var h=function(){return c.config.modalData};var e=function(){var o=a('<div style="width:50px;height:50px;overflow:auto"><div></div></div>').appendTo("body");var q=o.children();if(typeof q.innerWidth!="function"){return 0}var p=q.innerWidth()-q.height(90).innerWidth();o.remove();return p};var b=function(){return a("body").hasClass("pgwModalOpen")};var n=function(){a("#pgwModal, #pgwModalBackdrop").removeClass().hide();a("body").css("padding-right","").removeClass("pgwModalOpen");l();a(window).unbind("resize.PgwModal");a(document).unbind("keyup.PgwModal");a("#pgwModal").unbind("click.PgwModalBackdrop");try{delete window.pgwModalObject}catch(o){window.pgwModalObject=undefined}a(document).trigger("PgwModal::Close");return true};var j=function(){if(a("#pgwModal").length==0){k()}else{l()}a("#pgwModal").removeClass().addClass(c.config.mainClassName);a("#pgwModalBackdrop").removeClass().addClass(c.config.backdropClassName);if(!c.config.closable){a("#pgwModal .pm-close").html("").unbind("click").hide()}else{a("#pgwModal .pm-close").html(c.config.closeContent).click(function(){n()}).show()}if(!c.config.titleBar){a("#pgwModal .pm-title").hide()}else{a("#pgwModal .pm-title").show()}if(c.config.title){a("#pgwModal .pm-title").text(c.config.title)}if(c.config.maxWidth){a("#pgwModal .pm-body").css("max-width",c.config.maxWidth)}if(c.config.url){if(c.config.loadingContent){a("#pgwModal .pm-content").html(c.config.loadingContent)}var o={url:i.url,success:function(q){d(q)},error:function(){a("#pgwModal .pm-content").html(c.config.errorContent)}};if(c.config.ajaxOptions){o=a.extend({},o,c.config.ajaxOptions)}a.ajax(o)}else{if(c.config.target){d(a(c.config.target).html())}else{if(c.config.content){d(c.config.content)}}}if(c.config.closeOnEscape&&c.config.closable){a(document).bind("keyup.PgwModal",function(q){if(q.keyCode==27){n()}})}if(c.config.closeOnBackgroundClick&&c.config.closable){a("#pgwModal").bind("click.PgwModalBackdrop",function(s){var r=a(s.target).hasClass("pm-container");var q=a(s.target).attr("id");if(r||q=="pgwModal"){n()}})}a("body").addClass("pgwModalOpen");var p=e();if(p>0){a("body").css("padding-right",p)}a(window).bind("resize.PgwModal",function(){m()});a(document).trigger("PgwModal::Open");return true};if((typeof i=="string")&&(i=="close")){return n()}else{if((typeof i=="string")&&(i=="reposition")){return m()}else{if((typeof i=="string")&&(i=="getData")){return h()}else{if((typeof i=="string")&&(i=="isOpen")){return b()}else{if((typeof i=="object")&&(i.pushContent)){return d(i.pushContent)}else{if(typeof i=="object"){return j()}}}}}}}})(window.Zepto||window.jQuery);
/*! lazysizes - v5.2.0 */
!function(a,b){var c=b(a,a.document,Date);a.lazySizes=c,"object"==typeof module&&module.exports&&(module.exports=c)}("undefined"!=typeof window?window:{},function(a,b,c){"use strict";var d,e;if(function(){var b,c={lazyClass:"lazyload",loadedClass:"lazyloaded",loadingClass:"lazyloading",preloadClass:"lazypreload",errorClass:"lazyerror",autosizesClass:"lazyautosizes",srcAttr:"data-src",srcsetAttr:"data-srcset",sizesAttr:"data-sizes",minSize:40,customMedia:{},init:!0,expFactor:1.5,hFac:.8,loadMode:2,loadHidden:!0,ricTimeout:0,throttleDelay:125};e=a.lazySizesConfig||a.lazysizesConfig||{};for(b in c)b in e||(e[b]=c[b])}(),!b||!b.getElementsByClassName)return{init:function(){},cfg:e,noSupport:!0};var f=b.documentElement,g=a.HTMLPictureElement,h="addEventListener",i="getAttribute",j=a[h].bind(a),k=a.setTimeout,l=a.requestAnimationFrame||k,m=a.requestIdleCallback,n=/^picture$/i,o=["load","error","lazyincluded","_lazyloaded"],p={},q=Array.prototype.forEach,r=function(a,b){return p[b]||(p[b]=new RegExp("(\\s|^)"+b+"(\\s|$)")),p[b].test(a[i]("class")||"")&&p[b]},s=function(a,b){r(a,b)||a.setAttribute("class",(a[i]("class")||"").trim()+" "+b)},t=function(a,b){var c;(c=r(a,b))&&a.setAttribute("class",(a[i]("class")||"").replace(c," "))},u=function(a,b,c){var d=c?h:"removeEventListener";c&&u(a,b),o.forEach(function(c){a[d](c,b)})},v=function(a,c,e,f,g){var h=b.createEvent("Event");return e||(e={}),e.instance=d,h.initEvent(c,!f,!g),h.detail=e,a.dispatchEvent(h),h},w=function(b,c){var d;!g&&(d=a.picturefill||e.pf)?(c&&c.src&&!b[i]("srcset")&&b.setAttribute("srcset",c.src),d({reevaluate:!0,elements:[b]})):c&&c.src&&(b.src=c.src)},x=function(a,b){return(getComputedStyle(a,null)||{})[b]},y=function(a,b,c){for(c=c||a.offsetWidth;c<e.minSize&&b&&!a._lazysizesWidth;)c=b.offsetWidth,b=b.parentNode;return c},z=function(){var a,c,d=[],e=[],f=d,g=function(){var b=f;for(f=d.length?e:d,a=!0,c=!1;b.length;)b.shift()();a=!1},h=function(d,e){a&&!e?d.apply(this,arguments):(f.push(d),c||(c=!0,(b.hidden?k:l)(g)))};return h._lsFlush=g,h}(),A=function(a,b){return b?function(){z(a)}:function(){var b=this,c=arguments;z(function(){a.apply(b,c)})}},B=function(a){var b,d=0,f=e.throttleDelay,g=e.ricTimeout,h=function(){b=!1,d=c.now(),a()},i=m&&g>49?function(){m(h,{timeout:g}),g!==e.ricTimeout&&(g=e.ricTimeout)}:A(function(){k(h)},!0);return function(a){var e;(a=!0===a)&&(g=33),b||(b=!0,e=f-(c.now()-d),e<0&&(e=0),a||e<9?i():k(i,e))}},C=function(a){var b,d,e=99,f=function(){b=null,a()},g=function(){var a=c.now()-d;a<e?k(g,e-a):(m||f)(f)};return function(){d=c.now(),b||(b=k(g,e))}},D=function(){var g,m,o,p,y,D,F,G,H,I,J,K,L=/^img$/i,M=/^iframe$/i,N="onscroll"in a&&!/(gle|ing)bot/.test(navigator.userAgent),O=0,P=0,Q=0,R=-1,S=function(a){Q--,(!a||Q<0||!a.target)&&(Q=0)},T=function(a){return null==K&&(K="hidden"==x(b.body,"visibility")),K||!("hidden"==x(a.parentNode,"visibility")&&"hidden"==x(a,"visibility"))},U=function(a,c){var d,e=a,g=T(a);for(G-=c,J+=c,H-=c,I+=c;g&&(e=e.offsetParent)&&e!=b.body&&e!=f;)(g=(x(e,"opacity")||1)>0)&&"visible"!=x(e,"overflow")&&(d=e.getBoundingClientRect(),g=I>d.left&&H<d.right&&J>d.top-1&&G<d.bottom+1);return g},V=function(){var a,c,h,j,k,l,n,o,q,r,s,t,u=d.elements;if((p=e.loadMode)&&Q<8&&(a=u.length)){for(c=0,R++;c<a;c++)if(u[c]&&!u[c]._lazyRace)if(!N||d.prematureUnveil&&d.prematureUnveil(u[c]))ba(u[c]);else if((o=u[c][i]("data-expand"))&&(l=1*o)||(l=P),r||(r=!e.expand||e.expand<1?f.clientHeight>500&&f.clientWidth>500?500:370:e.expand,d._defEx=r,s=r*e.expFactor,t=e.hFac,K=null,P<s&&Q<1&&R>2&&p>2&&!b.hidden?(P=s,R=0):P=p>1&&R>1&&Q<6?r:O),q!==l&&(D=innerWidth+l*t,F=innerHeight+l,n=-1*l,q=l),h=u[c].getBoundingClientRect(),(J=h.bottom)>=n&&(G=h.top)<=F&&(I=h.right)>=n*t&&(H=h.left)<=D&&(J||I||H||G)&&(e.loadHidden||T(u[c]))&&(m&&Q<3&&!o&&(p<3||R<4)||U(u[c],l))){if(ba(u[c]),k=!0,Q>9)break}else!k&&m&&!j&&Q<4&&R<4&&p>2&&(g[0]||e.preloadAfterLoad)&&(g[0]||!o&&(J||I||H||G||"auto"!=u[c][i](e.sizesAttr)))&&(j=g[0]||u[c]);j&&!k&&ba(j)}},W=B(V),X=function(a){var b=a.target;if(b._lazyCache)return void delete b._lazyCache;S(a),s(b,e.loadedClass),t(b,e.loadingClass),u(b,Z),v(b,"lazyloaded")},Y=A(X),Z=function(a){Y({target:a.target})},$=function(a,b){try{a.contentWindow.location.replace(b)}catch(c){a.src=b}},_=function(a){var b,c=a[i](e.srcsetAttr);(b=e.customMedia[a[i]("data-media")||a[i]("media")])&&a.setAttribute("media",b),c&&a.setAttribute("srcset",c)},aa=A(function(a,b,c,d,f){var g,h,j,l,m,p;(m=v(a,"lazybeforeunveil",b)).defaultPrevented||(d&&(c?s(a,e.autosizesClass):a.setAttribute("sizes",d)),h=a[i](e.srcsetAttr),g=a[i](e.srcAttr),f&&(j=a.parentNode,l=j&&n.test(j.nodeName||"")),p=b.firesLoad||"src"in a&&(h||g||l),m={target:a},s(a,e.loadingClass),p&&(clearTimeout(o),o=k(S,2500),u(a,Z,!0)),l&&q.call(j.getElementsByTagName("source"),_),h?a.setAttribute("srcset",h):g&&!l&&(M.test(a.nodeName)?$(a,g):a.src=g),f&&(h||l)&&w(a,{src:g})),a._lazyRace&&delete a._lazyRace,t(a,e.lazyClass),z(function(){var b=a.complete&&a.naturalWidth>1;p&&!b||(b&&s(a,"ls-is-cached"),X(m),a._lazyCache=!0,k(function(){"_lazyCache"in a&&delete a._lazyCache},9)),"lazy"==a.loading&&Q--},!0)}),ba=function(a){if(!a._lazyRace){var b,c=L.test(a.nodeName),d=c&&(a[i](e.sizesAttr)||a[i]("sizes")),f="auto"==d;(!f&&m||!c||!a[i]("src")&&!a.srcset||a.complete||r(a,e.errorClass)||!r(a,e.lazyClass))&&(b=v(a,"lazyunveilread").detail,f&&E.updateElem(a,!0,a.offsetWidth),a._lazyRace=!0,Q++,aa(a,b,f,d,c))}},ca=C(function(){e.loadMode=3,W()}),da=function(){3==e.loadMode&&(e.loadMode=2),ca()},ea=function(){if(!m){if(c.now()-y<999)return void k(ea,999);m=!0,e.loadMode=3,W(),j("scroll",da,!0)}};return{_:function(){y=c.now(),d.elements=b.getElementsByClassName(e.lazyClass),g=b.getElementsByClassName(e.lazyClass+" "+e.preloadClass),j("scroll",W,!0),j("resize",W,!0),j("pageshow",function(a){if(a.persisted){var c=b.querySelectorAll("."+e.loadingClass);c.length&&c.forEach&&l(function(){c.forEach(function(a){a.complete&&ba(a)})})}}),a.MutationObserver?new MutationObserver(W).observe(f,{childList:!0,subtree:!0,attributes:!0}):(f[h]("DOMNodeInserted",W,!0),f[h]("DOMAttrModified",W,!0),setInterval(W,999)),j("hashchange",W,!0),["focus","mouseover","click","load","transitionend","animationend"].forEach(function(a){b[h](a,W,!0)}),/d$|^c/.test(b.readyState)?ea():(j("load",ea),b[h]("DOMContentLoaded",W),k(ea,2e4)),d.elements.length?(V(),z._lsFlush()):W()},checkElems:W,unveil:ba,_aLSL:da}}(),E=function(){var a,c=A(function(a,b,c,d){var e,f,g;if(a._lazysizesWidth=d,d+="px",a.setAttribute("sizes",d),n.test(b.nodeName||""))for(e=b.getElementsByTagName("source"),f=0,g=e.length;f<g;f++)e[f].setAttribute("sizes",d);c.detail.dataAttr||w(a,c.detail)}),d=function(a,b,d){var e,f=a.parentNode;f&&(d=y(a,f,d),e=v(a,"lazybeforesizes",{width:d,dataAttr:!!b}),e.defaultPrevented||(d=e.detail.width)&&d!==a._lazysizesWidth&&c(a,f,e,d))},f=function(){var b,c=a.length;if(c)for(b=0;b<c;b++)d(a[b])},g=C(f);return{_:function(){a=b.getElementsByClassName(e.autosizesClass),j("resize",g)},checkElems:g,updateElem:d}}(),F=function(){!F.i&&b.getElementsByClassName&&(F.i=!0,E._(),D._())};return k(function(){e.init&&F()}),d={cfg:e,autoSizer:E,loader:D,init:F,uP:w,aC:s,rC:t,hC:r,fire:v,gW:y,rAF:z}});
!function(factory){"use strict";"function"==typeof define&&define.amd?define(["jquery"],factory):jQuery&&!jQuery.fn.hoverIntent&&factory(jQuery)}(function($){"use strict";var cX,cY,_cfg={interval:100,sensitivity:6,timeout:0},INSTANCE_COUNT=0,track=function(ev){cX=ev.pageX,cY=ev.pageY},compare=function(ev,$el,s,cfg){if(Math.sqrt((s.pX-cX)*(s.pX-cX)+(s.pY-cY)*(s.pY-cY))<cfg.sensitivity)return $el.off(s.event,track),delete s.timeoutId,s.isActive=!0,ev.pageX=cX,ev.pageY=cY,delete s.pX,delete s.pY,cfg.over.apply($el[0],[ev]);s.pX=cX,s.pY=cY,s.timeoutId=setTimeout(function(){compare(ev,$el,s,cfg)},cfg.interval)},delay=function(ev,$el,s,out){return delete $el.data("hoverIntent")[s.id],out.apply($el[0],[ev])};$.fn.hoverIntent=function(handlerIn,handlerOut,selector){var instanceId=INSTANCE_COUNT++,cfg=$.extend({},_cfg);$.isPlainObject(handlerIn)?(cfg=$.extend(cfg,handlerIn),$.isFunction(cfg.out)||(cfg.out=cfg.over)):cfg=$.isFunction(handlerOut)?$.extend(cfg,{over:handlerIn,out:handlerOut,selector:selector}):$.extend(cfg,{over:handlerIn,out:handlerIn,selector:handlerOut});var handleHover=function(e){var ev=$.extend({},e),$el=$(this),hoverIntentData=$el.data("hoverIntent");hoverIntentData||$el.data("hoverIntent",hoverIntentData={});var state=hoverIntentData[instanceId];state||(hoverIntentData[instanceId]=state={id:instanceId}),state.timeoutId&&(state.timeoutId=clearTimeout(state.timeoutId));var mousemove=state.event="mousemove.hoverIntent.hoverIntent"+instanceId;if("mouseenter"===e.type){if(state.isActive)return;state.pX=ev.pageX,state.pY=ev.pageY,$el.off(mousemove,track).on(mousemove,track),state.timeoutId=setTimeout(function(){compare(ev,$el,state,cfg)},cfg.interval)}else{if(!state.isActive)return;$el.off(mousemove,track),state.timeoutId=setTimeout(function(){delay(ev,$el,state,cfg.out)},cfg.timeout)}};return this.on({"mouseenter.hoverIntent":handleHover,"mouseleave.hoverIntent":handleHover},cfg.selector)}});
/*!
* jQuery Countdown plugin v1.0
* http://www.littlewebthings.com/projects/countdown/
*
* Copyright 2010, Vassilis Dourdounis
* Copyright 2010, Marcello Barnaba <marcello.barnaba@gmail.com>
*
*/
(function($){$.fn.countDown=function(options){if(typeof options=='string'){return $(this).data('countDown')[options].apply(this)||this;}
return this.each(function(){var element=$(this),targetTime=new Date(),timer;if(element.data('countDown'))
return;if(options.targetDate)
{targetTime=new Date(options.targetDate.month+'/'+options.targetDate.day+'/'+options.targetDate.year+' '+
options.targetDate.hour+':'+options.targetDate.min+':'+options.targetDate.sec+
(options.targetDate.utc?' UTC':''));}
else if(options.targetOffset)
{targetTime.setFullYear(options.targetOffset.year+targetTime.getFullYear());targetTime.setMonth(options.targetOffset.month+targetTime.getMonth());targetTime.setDate(options.targetOffset.day+targetTime.getDate());targetTime.setHours(options.targetOffset.hour+targetTime.getHours());targetTime.setMinutes(options.targetOffset.min+targetTime.getMinutes());targetTime.setSeconds(options.targetOffset.sec+targetTime.getSeconds());}
element.find('.digit').html('<div class="top"></div><div class="bottom"></div>');element.data('countDown',{stop:function(){if(timer==undefined)
return;clearInterval(timer);timer=undefined},start:function(){if(timer!=undefined)
return;if(options.currenttime){var currenttime=new Date(options.currenttime);}else{var currenttime=new Date();}
var diffSecs=Math.floor((+targetTime-currenttime)/1000);var duration=500;if(diffSecs<0)
diffSecs=0;var loop=function(){render(diffSecs,duration);diffSecs-=1;}
loop();if(diffSecs>0)
timer=setInterval(loop,1000)}});function render(diffSecs,duration){secs=diffSecs%60;mins=Math.floor(diffSecs/60)%60;hours=Math.floor(diffSecs/60/60)%24;if(options.omitWeeks)
{days=Math.floor(diffSecs/60/60/24);weeks=Math.floor(diffSecs/60/60/24/7);}
else
{days=Math.floor(diffSecs/60/60/24)%7;weeks=Math.floor(diffSecs/60/60/24/7);}
dashChangeTo('.seconds_dash',secs,duration);dashChangeTo('.minutes_dash',mins,duration);dashChangeTo('.hours_dash',hours,duration);dashChangeTo('.days_dash',days,duration);dashChangeTo('.weeks_dash',weeks,duration);if(diffSecs<=0)
complete();}
function complete(){element.data('countDown').stop();if(options.onComplete)
options.onComplete.apply(element);return true;}
function dashChangeTo(selector,n,duration){element.find(selector+' .digit').each(function(i){digitChangeTo($(this),i==0?Math.floor(n/10):n%10,duration);})};function digitChangeTo(digit,n,duration){var top=digit.find('.top'),bot=digit.find('.bottom');if(top.html()!=n+'')
{top.html(n||'0').slideDown(duration);bot.animate({height:0},duration,function(){bot.html(n||'0').css({height:'100%'});top.hide();});}};element.data('countDown').start();});};})(jQuery);
function reshowNav(){'use strict';jQuery(this).addClass('hovered');}
function rehideNav(){'use strict';jQuery(this).removeClass('hovered');}
(function(b,c){var $=b.jQuery||b.Cowboy||(b.Cowboy={}),a;$.throttle=a=function(e,f,j,i){var h,d=0;if(typeof f!=="boolean"){i=j;j=f;f=c}function g(){var o=this,m=+new Date()-d,n=arguments;function l(){d=+new Date();j.apply(o,n)}function k(){h=c}if(i&&!h){l()}h&&clearTimeout(h);if(i===c&&m>e){l()}else{if(f!==true){h=setTimeout(i?k:l,i===c?e-m:e)}}}if($.guid){g.guid=j.guid=j.guid||$.guid++}return g};$.debounce=function(d,e,f){return f===c?a(d,e,false):a(d,f,e!==false)}})(this);var re_main_search={_is_search_open:false,init:function init(){jQuery(document).on('click','.icon-search-onclick',function(e){e.stopPropagation();jQuery('.main-nav').toggleClass('top-search-onclick-open');if(jQuery(this).parent().parent().hasClass('elementor-widget-container')){jQuery(this).closest('.elementor-section').toggleClass('top-search-onclick-open');jQuery(this).closest('.elementor-widget').addClass('position-static');jQuery(this).closest('.elementor-widget-wrap').addClass('position-static');jQuery(this).closest('.elementor-column-wrap').addClass('position-static');jQuery(this).closest('.elementor-column').addClass('position-static');}
if(re_main_search._is_search_open===true){re_main_search._is_search_open=false;}
else{re_main_search._is_search_open=true;if(jQuery('html').hasClass('flash')){setTimeout(function(){jQuery('.main-nav .search-header-contents input[name="s"]').focus();},200);}}});jQuery(document).on("click",function(e){if(jQuery(e.target).closest(".head_search").length||jQuery(e.target).closest(".custom_search_box").length)
return;jQuery('.head_search .re-aj-search-wrap').removeClass('re-aj-search-open').empty();jQuery('.custom_search_box .re-aj-search-wrap').removeClass('re-aj-search-open').empty();e.stopPropagation();if(re_main_search._is_search_open===true){re_main_search._is_search_open=false;}});jQuery(document).on("click",function(e){if(jQuery(e.target).closest(".search-header-contents").length)
return;jQuery('.main-nav').removeClass('top-search-onclick-open');e.stopPropagation();if(re_main_search._is_search_open===true){re_main_search._is_search_open=false;}});}};var NavOverlayRemoved=true;var revMenuStyle=function(){var menu=jQuery('.rh_mobile_menu'),openMenu=menu.find('#dl-trigger'),navMenu=menu.find('#slide-menu-mobile'),menuList=menu.find('#slide-menu-mobile > .menu'),subMenu=menu.find('.sub-menu'),mobilecustomheader=jQuery('#rhmobpnlcustom'),mobsidebar=jQuery('#rh_woo_mbl_sidebar'),mobsidebartrigger=jQuery('#mobile-trigger-sidebar');menuList.addClass('off-canvas');if(menuList.find('.close-menu').length===0){menuList.append('<li class="close-menu rh-close-btn position-relative text-center cursorpointer rh-circular-hover"><span><i class="rhicon rhi-times whitebg roundborder50p rh-shadow4 abdposleft" aria-hidden="true"></i></span></li>');}
if(mobilecustomheader.length>0){menuList.prepend('<li id="mobtopheaderpnl">'+mobilecustomheader.html()+'</li>');}
jQuery('#slide-menu-mobile .menu-item-has-children').children('a').after('<span class="submenu-toggle"><i class="rhicon rhi-angle-right"></i></span>');jQuery('#slide-menu-mobile .menu-item-has-children:not(.rh-mobile-linkable)').children('a').addClass('submenu-toggle');menuList.on('click','.submenu-toggle',function(evt){evt.preventDefault();jQuery(this).siblings('.sub-menu').addClass('sub-menu-active');});subMenu.each(function(){var $this=jQuery(this);if($this.find('.back-mb').length===0){$this.prepend('<li class="back-mb"><span class="rehub-main-color"><i class="rhicon rhi-chevron-left mr10"></i> '+rhscriptvars.back+'</span></li>');}
menu.on('click','.back-mb span',function(evt){evt.preventDefault();jQuery(this).parent().parent().removeClass('sub-menu-active');});});openMenu.on('click',function(e){e.preventDefault();e.stopPropagation();jQuery('#wpadminbar').css('z-index','999');navMenu.fadeIn(100);menuList.addClass('off-canvas-active');jQuery(this).addClass('toggle-active');if(NavOverlayRemoved){jQuery('body').append(jQuery('<div class="offsetnav-overlay"></div>').hide().fadeIn());NavOverlayRemoved=false;}});mobsidebartrigger.on('click',function(e){e.preventDefault();e.stopPropagation();mobsidebar.toggleClass('activeslide');if(NavOverlayRemoved){jQuery('body').append(jQuery('<div class="offsetnav-overlay"></div>').hide().fadeIn());NavOverlayRemoved=false;}});jQuery(document).on('click touchstart','.close-menu, .offsetnav-overlay',function(event){event.stopPropagation();setTimeout(function(){menuList.removeClass('off-canvas-active');openMenu.removeClass('toggle-active');jQuery('.sub-menu').removeClass('sub-menu-active');mobsidebar.removeClass('activeslide');if(!NavOverlayRemoved){jQuery('.offsetnav-overlay').remove();NavOverlayRemoved=true;}
return false;},100);});}
jQuery(document).ready(function($){'use strict';(function(){$.simplyToast=function(e,t,n){function u(){$.simplyToast.remove(o)}n=$.extend(true,{},$.simplyToast.defaultOptions,n);var r='<div class="simply-toast rh-toast rh-toast-'+(t?t:n.type)+" "+(n.customClass?n.customClass:"")+'">';if(n.allowDismiss)r+='<span class="rh-toast-close" data-dismiss="alert">×</span>';r+=e;r+="</div>";var i=n.offset.amount;$(".simply-toast").each(function(){return i=Math.max(i,parseInt($(this).css(n.offset.from))+this.offsetHeight+n.spacing)});var s={position:n.appendTo==="body"?"fixed":"absolute",margin:0,"z-index":"999999",display:"none","min-width":n.minWidth,"max-width":n.maxWidth};s[n.offset.from]=i+"px";var o=$(r).css(s).appendTo(n.appendTo);switch(n.align){case"center":o.css({left:"50%","margin-left":"-"+o.outerWidth()/2+"px"});break;case"left":o.css("left","20px");break;default:o.css("right","20px")}if(o.fadeIn)o.fadeIn();else o.css({display:"block",opacity:1});if(n.delay>0){setTimeout(u,n.delay)}o.find('[data-dismiss="alert"]').removeAttr("data-dismiss").click(u);return o};$.simplyToast.remove=function(e){if(e.fadeOut){return e.fadeOut(function(){return e.remove()})}else{return e.remove()}};$.simplyToast.defaultOptions={appendTo:"body",customClass:false,type:"info",offset:{from:"top",amount:20},align:"right",minWidth:250,maxWidth:450,delay:4e3,allowDismiss:true,spacing:10}})();var res_nav=$("#main_header .top_menu").html();$("#slide-menu-mobile").html(res_nav);if($('#re_menu_near_logo').length>0){var header_responsive_menu=$("#re_menu_near_logo ul").html();$("#main_header .responsive_nav_wrap ul.menu").prepend(header_responsive_menu);}
if($('#main_header .top-nav ul.menu').length>0){var header_top_menu_add=$("#main_header .top-nav ul.menu").html();$("#main_header .responsive_nav_wrap ul.menu").append(header_top_menu_add);}
if($('#main_header .top_custom_content').length>0){var header_top_menu_add=$("#main_header .top_custom_content").html();$("#main_header .responsive_nav_wrap ul.menu").append('<li><div class="pt15 pb15 pl15 pr15 top_custom_content_mobile font80">'+header_top_menu_add+'</div></li>');}
const rhtoolicons=document.getElementById("rhNavToolbar");const rhtooldiv="<div class='rh-flex-center-align rh-flex-grow1 rh-flex-justify-center'></div>";if($('.rh_woocartmenu_cell').length>0){let prep=$(".rh_woocartmenu_cell").html();if(rhtoolicons){rhtoolicons.insertAdjacentHTML('afterbegin',rhtooldiv.replace("div","div id='rhWoocartTool'"));$("#rhWoocartTool").prepend(prep);}else{$("#main_header .responsive_nav_wrap #mobile-menu-icons").append(prep);}}
const mobileinmenu=document.querySelectorAll('.mobileinmenu');if(mobileinmenu.length){if(rhtoolicons){mobileinmenu.forEach((item,index)=>{let clone=item.cloneNode(true);let toolwrap=rhtooldiv.replace("div","div id='rhToolicon"+index+"'");rhtoolicons.insertAdjacentHTML('afterbegin',toolwrap);document.getElementById("rhToolicon"+index+"").prepend(clone);});}else{$("#main_header .responsive_nav_wrap #mobile-menu-icons").append($(".logo-section .mobileinmenu").clone());let rtltrue=(jQuery('body').hasClass('rtl'))?true:false;var mobilelogo=document.querySelector("a.logo_image_mobile img");if(mobilelogo.length>0){if(rtltrue){mobilelogo.setAttribute("style","right:55px; left:auto; transform:none;");}else{mobilelogo.setAttribute("style","left:55px; transform:none;");}}}}
if($('#logo_mobile_wrapper').length>0){$(".responsive_nav_wrap #dl-trigger").after($('#logo_mobile_wrapper').html());$(".logo_image_insticky, header .logo").addClass('hideontablet');}
if($('.main-nav .logo-inmenu').length>0){$("#main_header .responsive_nav_wrap #dl-menu .menu-item.logo-inmenu").remove();}
$("nav.top_menu > ul li.menu-item-has-children").hoverIntent({over:reshowNav,out:rehideNav,timeout:120,interval:100});$("#main_header .top-nav > ul li.menu-item-has-children").hoverIntent({over:reshowNav,out:rehideNav,timeout:120,interval:100});revMenuStyle();re_main_search.init();$(document).on('click','.rehub_scroll, #kcmenu a, .kc-gotop',function(e){e.preventDefault();if(typeof $(this).data('scrollto')!=='undefined'){var target=$(this).data('scrollto');var hash=$(this).data('scrollto');}
else{var target=$(this.hash+', a[name="'+this.hash.replace(/#/,"")+'"]').first();var hash=this.hash;}
var $target=$(target);if($target.length!==0){$('html, body').stop().animate({'scrollTop':$target.offset().top-45},500,'swing',function(){if(history.pushState){history.pushState(null,null,hash);}
else{window.location.hash=hash;}});}});if($('.wpsm-bar').length>0){$('.wpsm-bar').each(function(){$(this).find('.wpsm-bar-bar').animate({width:$(this).attr('data-percent')},1500);});}
if($(".countdown_dashboard").length>0){$(".countdown_dashboard").each(function(){$(this).show();var id=$(this).attr("id");var day=$(this).attr("data-day");var month=$(this).attr("data-month");var year=$(this).attr("data-year");var hour=$(this).attr("data-hour");var min=$(this).attr("data-min");$(this).countDown({targetDate:{"day":day,"month":month,"year":year,"hour":hour,"min":min,"sec":0},omitWeeks:true,onComplete:function(){$("#"+id).hide()}});});}
$(document).on('click','.r_offer_details .r_show_hide',function(e){$(this).closest('.r_offer_details').find('.open_dls_onclk').toggleClass('rh_collapse_in');$(this).closest('.r_offer_details').find('.hide_dls_onclk').toggleClass('rhhidden');$(this).toggleClass('r_show_active');});$('.rh-sslide-panel').on('click',function(event){if($(event.target).is('.rh-sslide-panel')||$(event.target).is('.rh-sslide-close-btn')){$('.rh-sslide-panel').removeClass('active');$('.rh-sslide-panel').find('.widget_shopping_cart').html("");event.preventDefault();}});$(document).on('click','.expand_all_offers',function(){var $expand=$(this).closest('.widget_merchant_list');if($expand.hasClass('expandme')){$expand.removeClass('expandme');$(this).find('.expandme').html('-');}
else{$expand.addClass('expandme');$(this).find('.expandme').html('+');}});$('.rh-container').find('iframe[src*="player.vimeo.com"], iframe[src*="youtube.com"]').each(function(){var $video=$(this);if($video.parents('object').length)return;if($video.parent().hasClass('rhpb-video-wrapper'))return;if($video.parent().hasClass('video-container'))return;if($video.parent().hasClass('wp-block-embed__wrapper'))return;if($video.parent().parent().hasClass('slides'))return;if(!$video.prop('id'))$video.attr('id','rvw'+Math.floor(Math.random()*999999));$video.wrap('<div class="video-container"></div>');});$(document).on("click",".masked_coupon:not(.expired_coupon)",function(e){e.preventDefault();var $this=$(this);var codeid=$this.data('codeid');var codetext=$this.data('codetext');var issearch=window.location.search;if(issearch){var codeidtext="&codeid=";var codetexttext="&codetext=";if(typeof URLSearchParams!=='undefined'){let params=new URLSearchParams(issearch.substring(1));params.delete('codeid');params.delete('codetext');issearch='?'+params.toString();}}else{var codeidtext="?codeid=";var codetexttext="?codetext=";}
if(typeof $this.data('codeid')!=='undefined'){var couponpage=window.location.pathname+issearch+codeidtext+codeid;}
if(typeof $this.data('codetext')!=='undefined'){var couponpage=window.location.pathname+issearch+codetexttext+codetext;}
var couponcode=$this.data('clipboard-text');var destination=$this.data('dest');window.open(couponpage);if(destination!=""||destination!="#"){window.location.href=destination;}});if($('#coupon_code_in_modal').length>0){var codeid=$('#coupon_code_in_modal').data('couponid');var $change_code=$(".rehub_offer_coupon.masked_coupon:not(.expired_coupon)[data-codeid='"+codeid+"']");var couponcode=$change_code.data("clipboard-text");$change_code.removeClass("rh-deal-compact-btn masked_coupon woo_loop_btn coupon_btn btn_offer_block wpsm-button").addClass("not_masked_coupon").html("<i class=\'rhicon rhi-scissors fa-rotate-180\'></i><span class=\'coupon_text\'>"+couponcode+"</span>");$change_code.closest(".reveal_enabled").removeClass("reveal_enabled");$.pgwModal({titleBar:false,maxWidth:650,target:"#coupon_code_in_modal",mainClassName:"pgwModal coupon-reveal-popup",});}
$(document).on("click","a.not_masked_coupon",function(e){e.preventDefault();});$(document).on("click",".csspopuptrigger",function(e){e.preventDefault();var destination='#'+$(this).data('popup');$(destination).toggleClass('active');$('body').addClass('flowhidden');});$(document).on("click",".csspopup .cpopupclose",function(e){e.preventDefault();$(this).closest('.csspopup').removeClass('active');$('body').removeClass('flowhidden');});$(document).on("click",".toggle-this-table",function(e){e.preventDefault();$(this).closest('.rh-tabletext-block').toggleClass('closedtable');});if($(".rehub_offer_coupon.masked_coupon.expired_coupon").length>0){$(".rehub_offer_coupon.masked_coupon.expired_coupon").each(function(){var couponcode=$(this).data('clipboard-text');$(this).removeClass('masked_coupon woo_loop_btn coupon_btn btn_offer_block wpsm-button').addClass('not_masked_coupon').text(couponcode);$(this).closest('.reveal_enabled').removeClass('reveal_enabled');});}
$('.ext-source').replaceWith(function(){return'<a href="'+$(this).data('dest')+'" target="_blank" rel="nofollow sponsored">'+$(this).html()+'</a>';});$('.int-source').replaceWith(function(){return'<a href="'+$(this).data('dest')+'">'+$(this).html()+'</a>';});jQuery(document).on('click','.share-link-image',function(event){var href=jQuery(this).data("href"),service=jQuery(this).data('service'),width='pinterest'==service?750:600,height='twitter'==service?250:'pinterest'==service?320:300,top=(screen.height/2)-height/2,left=(screen.width/2)-width/2;var options='top='+top+',left='+left+',width='+width+',height='+height;event.preventDefault();event.stopPropagation();window.open(href,service,options);});$(window).on("resize",function(){var w=$(window).width();if(w>1023){$('#slide-menu-mobile').hide();$('.offsetnav-overlay').hide();}});});jQuery(function($){'use strict';$(document).ready(function(){$(document).on('inview','.rate_bar_wrap',function(event,visible){if(visible){$('.rate-bar').each(function(){$(this).find('.rate-bar-bar').animate({width:$(this).attr('data-percent')},1500);});$(document).off('inview','.rate_bar_wrap');}});$(document).on('inview','.review_visible_circle, .top_table_block, .top_chart',function(event,visible){if(visible){$('.radial-progress').each(function(){$(this).find('.circle .mask.full, .circle .fill:not(.fix)').animate({borderSpacing:$(this).attr('data-rating')*18},{step:function(now,fx){$(this).css('-webkit-transform','rotate('+now+'deg)');$(this).css('-moz-transform','rotate('+now+'deg)');$(this).css('transform','rotate('+now+'deg)');},duration:'slow'},'linear');$(this).find('.circle .fill.fix').animate({borderSpacing:$(this).attr('data-rating')*36},{step:function(now,fx){$(this).css('-webkit-transform','rotate('+now+'deg)');$(this).css('-moz-transform','rotate('+now+'deg)');$(this).css('transform','rotate('+now+'deg)');},duration:'slow'},'linear');});}});});});if(jQuery('.post-inner').length>0){var postheight=jQuery('.post-inner').height()+jQuery('#main_header').height()-100;jQuery(window).on('scroll',jQuery.throttle(250,function(){'use strict';if(jQuery(this).scrollTop()>500){jQuery('#topcontrol, #float-posts-nav').addClass('scrollvisible');}else{jQuery('#topcontrol').removeClass('scrollvisible');jQuery('#float-posts-nav').removeClass('scrollvisible');}
if(jQuery(this).scrollTop()>postheight){jQuery('#float-posts-nav').addClass('openedprevnext');}else{jQuery('#float-posts-nav').removeClass('openedprevnext');}}));}
window.onload=function(){if(jQuery("#rhLoader").length){jQuery("#rhLoader").fadeOut();}};
var re_ajax_cache={data:{},remove:function(cache_id){delete re_ajax_cache.data[cache_id];},exist:function(cache_id){if(jQuery('.custom_search_box').length){return false;}
return re_ajax_cache.data.hasOwnProperty(cache_id)&&re_ajax_cache.data[cache_id]!==null;},get:function(cache_id){return re_ajax_cache.data[cache_id];},set:function(cache_id,cachedData){re_ajax_cache.remove(cache_id);re_ajax_cache.data[cache_id]=cachedData;}};var re_ajax_search={_current_selection_index:0,_last_request_results_count:0,_first_down_up:true,_is_search_open:false,init:function init(){jQuery('.re-ajax-search').on("keydown",jQuery.debounce(250,function(event){var ajaxsearchitem=jQuery(this);if((event.which&&event.which==39)||(event.keyCode&&event.keyCode==39)||(event.which&&event.which==37)||(event.keyCode&&event.keyCode==37))
{re_ajax_search.re_ajax_set_focus(ajaxsearchitem);return;}
if((event.which&&event.which==13)||(event.keyCode&&event.keyCode==13)){var re_ajax_search_cur=jQuery(this).parent().parent().find('.re-sch-cur-element');if(re_ajax_search_cur.length>0){var re_searchopen_url=re_ajax_search_cur.find('.re-search-result-title a').attr('href');window.location=re_searchopen_url;}else{jQuery(this).parent().submit();}
return false;}else{if((event.which&&event.which==40)||(event.keyCode&&event.keyCode==40)){re_ajax_search.re_aj_search_move_key_down(ajaxsearchitem);return false;}else if((event.which&&event.which==38)||(event.keyCode&&event.keyCode==38)){re_ajax_search.re_aj_search_move_key_up(ajaxsearchitem);return false;}else{if((event.which&&event.which==8)||(event.keyCode&&event.keyCode==8)){var search_query=jQuery(this).val();if(search_query.length==1){jQuery(this).parent().parent().find('.re-aj-search-wrap').removeClass('re-aj-search-open').empty();}}
re_ajax_search.re_ajax_set_focus(ajaxsearchitem);setTimeout(function(){re_ajax_search.do_ajax_call(ajaxsearchitem);},100);}
return true;}}));},re_aj_search_move_key_up:function re_aj_search_move_key_up(elem){if(re_ajax_search._first_down_up===true){re_ajax_search._first_down_up=false;if(re_ajax_search._current_selection_index===0){re_ajax_search._current_selection_index=re_ajax_search._last_request_results_count-1;}else{re_ajax_search._current_selection_index--;}}else{if(re_ajax_search._current_selection_index===0){re_ajax_search._current_selection_index=re_ajax_search._last_request_results_count;}else{re_ajax_search._current_selection_index--;}}
elem.parent().parent().find('.re-search-result-div').removeClass('re-sch-cur-element');if(re_ajax_search._current_selection_index>re_ajax_search._last_request_results_count-1){elem.closest('form').fadeTo(100,1);}else{re_ajax_search.re_search_input_remove_focus(elem);elem.parent().parent().find('.re-search-result-div').eq(re_ajax_search._current_selection_index).addClass('re-sch-cur-element');}},re_aj_search_move_key_down:function re_aj_search_move_key_down(elem){if(re_ajax_search._first_down_up===true){re_ajax_search._first_down_up=false;}else{if(re_ajax_search._current_selection_index===re_ajax_search._last_request_results_count){re_ajax_search._current_selection_index=0;}else{re_ajax_search._current_selection_index++;}}
elem.parent().parent().find('.re-search-result-div').removeClass('re-sch-cur-element');if(re_ajax_search._current_selection_index>re_ajax_search._last_request_results_count-1){elem.closest('form').fadeTo(100,1);}else{re_ajax_search.re_search_input_remove_focus(elem);elem.parent().parent().find('.re-search-result-div').eq(re_ajax_search._current_selection_index).addClass('re-sch-cur-element');}},re_ajax_set_focus:function re_ajax_set_focus(elem){re_ajax_search._current_selection_index=0;re_ajax_search._first_down_up=true;elem.closest('form').fadeTo(100,1);elem.parent().parent().find('.re-search-result-div').removeClass('re-sch-cur-element');},re_search_input_remove_focus:function re_search_input_remove_focus(elem){if(re_ajax_search._last_request_results_count!==0){elem.closest('form').css('opacity',0.5);}},process_ajax_response:function(data,callelem){var current_query=callelem.val().trim();if(current_query==''){callelem.parent().parent().find('.re-aj-search-wrap').empty();return;}
var td_data_object=JSON.parse(data);if(td_data_object.re_search_query!==current_query){return;}
re_ajax_search._current_selection_index=0;re_ajax_search._last_request_results_count=td_data_object.re_total_inlist;re_ajax_search._first_down_up=true;callelem.parent().parent().find('.re-aj-search-wrap').addClass('re-aj-search-open').html(td_data_object.re_data);var iconsearch=callelem.parent().find('.rhi-sync');iconsearch.removeClass('rhi-sync fa-spin').addClass('rhi-search');callelem.removeClass('searching-now');var winheight=jQuery(window).height();if(winheight<700){callelem.parent().parent().find('.re-aj-search-wrap').addClass('re-aj-search-overflow');}},do_ajax_call:function do_ajax_call(elem){var posttypes=elem.data('posttype');var enable_compare=elem.data('enable_compare');var aff=elem.data('aff');if(elem.prevObject==undefined){var catid=elem.data('catid');}else{var catid=elem.attr('data-catid');}
var callelem=elem;if(elem.val()==''){re_ajax_search.re_ajax_set_focus(callelem);return;}
var search_query=elem.val();if(re_ajax_cache.exist(search_query)){re_ajax_search.process_ajax_response(re_ajax_cache.get(search_query),callelem);return;}
var iconsearch=elem.parent().find('.rhi-search');iconsearch.removeClass('rhi-search').addClass('rhi-sync fa-spin');elem.addClass('searching-now');jQuery.ajax({type:'POST',url:rhscriptvars.ajax_url,data:{action:'rehub_ajax_search',re_string:search_query,posttypesearch:posttypes,enable_compare:enable_compare,aff_link:aff,catid:catid,security:rhscriptvars.searchnonce,}}).done(function(data,textStatus,XMLHttpRequest){re_ajax_cache.set(search_query,data);re_ajax_search.process_ajax_response(data,callelem);});}};jQuery(document).ready(function($){'use strict';re_ajax_search.init();});
/*! This file is auto-generated */
!function(c,d){"use strict";var e=!1,n=!1;if(d.querySelector)if(c.addEventListener)e=!0;if(c.wp=c.wp||{},!c.wp.receiveEmbedMessage)if(c.wp.receiveEmbedMessage=function(e){var t=e.data;if(t)if(t.secret||t.message||t.value)if(!/[^a-zA-Z0-9]/.test(t.secret)){for(var r,a,i,s=d.querySelectorAll('iframe[data-secret="'+t.secret+'"]'),n=d.querySelectorAll('blockquote[data-secret="'+t.secret+'"]'),o=0;o<n.length;o++)n[o].style.display="none";for(o=0;o<s.length;o++)if(r=s[o],e.source===r.contentWindow){if(r.removeAttribute("style"),"height"===t.message){if(1e3<(i=parseInt(t.value,10)))i=1e3;else if(~~i<200)i=200;r.height=i}if("link"===t.message)if(a=d.createElement("a"),i=d.createElement("a"),a.href=r.getAttribute("src"),i.href=t.value,i.host===a.host)if(d.activeElement===r)c.top.location.href=t.value}}},e)c.addEventListener("message",c.wp.receiveEmbedMessage,!1),d.addEventListener("DOMContentLoaded",t,!1),c.addEventListener("load",t,!1);function t(){if(!n){n=!0;for(var e,t,r=-1!==navigator.appVersion.indexOf("MSIE 10"),a=!!navigator.userAgent.match(/Trident.*rv:11\./),i=d.querySelectorAll("iframe.wp-embedded-content"),s=0;s<i.length;s++){if(!(e=i[s]).getAttribute("data-secret"))t=Math.random().toString(36).substr(2,10),e.src+="#?secret="+t,e.setAttribute("data-secret",t);if(r||a)(t=e.cloneNode(!0)).removeAttribute("security"),e.parentNode.replaceChild(t,e)}}}}(window,document);
jQuery(document).ready(function($){'use strict';if($('#respond .must-log-in a').length>0){if($('#rehub-login-popup').length>0){$("#respond .must-log-in a").addClass('act-rehub-login-popup');}}
if($('#comments .comment-reply-login').length>0){if($('#rehub-login-popup').length>0){$(".comment-reply-login").addClass('act-rehub-login-popup');}}
$(document).on('click','body:not(.logged-in) .act-rehub-login-popup',function(e){e.preventDefault();var acttype=$(this).data('type');if(acttype=='login'){$.pgwModal({titleBar:false,target:'#rehub-login-popup',mainClassName:'pgwModal re-user-popup-wrap',});$('.re-user-popup-wrap .rehub-errors').html('');}
else if(acttype=='register'){$.pgwModal({titleBar:false,target:'#rehub-register-popup',mainClassName:'pgwModal re-user-popup-wrap',});$('.re-user-popup-wrap .rehub-errors').html('');$('.re-user-popup-wrap .recaptchamodail').attr('id','recaptchamodail');}
else if(acttype=='resetpass'){$.pgwModal({titleBar:false,target:'#rehub-reset-popup',mainClassName:'pgwModal re-user-popup-wrap',});$('.re-user-popup-wrap .rehub-errors').html('');}
else if(acttype=='restrict'){$.pgwModal({titleBar:false,target:'#rehub-restrict-login-popup',mainClassName:'pgwModal re-user-popup-wrap',});}
else if(acttype=='url'){if($(this).attr('href')){var gocustomurl=$(this).attr('href');}else{var gocustomurl=$(this).data('customurl');}
window.location.href=gocustomurl;}
else{if($('#rehub-custom-login-url').length>0){var gocustomurl=$('#rehub-custom-login-url').data('customloginurl');window.location.href=gocustomurl;}else{if(typeof $(this).data("cashbacknotice")!=="undefined"&&typeof $(this).data("merchant")!=="undefined"){var cashbacknotice=$(this).data('cashbacknotice');var merchant=$(this).data('merchant');var murl=$(this).data('url');$('#rh-ca-login').removeClass('rhhidden');$('#rh-ca-login-n').html(cashbacknotice);$('#rh-ca-login-m').html(merchant);$('#rh-ca-login-a').attr("href",murl);}
$.pgwModal({titleBar:false,target:'#rehub-login-popup',mainClassName:'pgwModal re-user-popup-wrap',});$('.re-user-popup-wrap .rehub-errors').html('');}}});$(document).on('submit','.re-user-popup-wrap #rehub_login_form_modal',function(e){e.preventDefault();var button=$(this).find('button.rehub_main_btn');button.addClass('loading');$.post(rhscriptvars.ajax_url,$(this).serialize(),function(data){var obj=$.parseJSON(data);$('.rehub-login-popup .rehub-errors').html(obj.message);if(obj.error==false){if(obj.redirecturl){window.setTimeout(function(){window.location.href=obj.redirecturl;},200);}
else{window.setTimeout(function(){location.reload()},200);}
button.hide();}
button.removeClass('loading');});});$(document).on('submit','.re-user-popup-wrap #rehub_registration_form_modal',function(e){e.preventDefault();var button=$(this).find('button.rehub_main_btn');button.addClass('loading');$.post(rhscriptvars.ajax_url,$(this).serialize(),function(data){var obj=$.parseJSON(data);$('.rehub-register-popup .rehub-errors').html(obj.message);if(obj.error==false){$('.rehub-register-popup').addClass('registration-complete');if(obj.redirecturl){window.setTimeout(function(){window.location.href=obj.redirecturl;},4000);}
else{window.setTimeout(function(){location.reload()},4000);}}
$('.rehub-register-popup').removeClass('registration-complete');button.removeClass('loading');});});$(document).on('submit','.re-user-popup-wrap #rehub_reset_password_form_modal',function(e){e.preventDefault();var button=$(this).find('button.rehub_main_btn');button.addClass('loading');$.post(rhscriptvars.ajax_url,$(this).serialize(),function(data){var obj=$.parseJSON(data);$('.rehub-reset-popup .rehub-errors').html(obj.message);if(obj.error==false){window.setTimeout(function(){location.reload()},3000);}
button.removeClass('loading');});});$(document).on('click','.user-ava-intop',function(e){e.stopPropagation();$(this).parent().find('.user-dropdown-intop-menu').toggleClass('user-dropdown-intop-open');$(this).toggleClass('user-ava-intop-open');});$(document).on('click','.user-dropdown-intop-menu',function(e){e.stopPropagation();});$(document).on('click',function(){$('.user-dropdown-intop-menu').removeClass('user-dropdown-intop-open');$('.user-ava-intop').removeClass('user-ava-intop-open');$('.re_tax_dropdown').removeClass('active');});});
jQuery(document).ready(function($){'use strict';$(document).on("click",".heart_thumb_wrap .heartplus",function(e){e.preventDefault();var $this=$(this);if($this.hasClass("restrict_for_guests")){return false;}
var post_id=$(this).data("post_id");var informer=parseInt($(this).attr("data-informer"));$(this).addClass("loading");if($this.hasClass('alreadywish')){var wishlink=$this.data("wishlink");if(typeof $this.data("wishlink")!=="undefined"&&$this.data("wishlink")!=''&&$('.re-favorites-posts').length==0){window.location.href=$this.data("wishlink");return false;}
var actionwishlist='remove';}else{var actionwishlist='add';}
$.ajax({type:"post",url:rhscriptvars.ajax_url,data:"action=rhwishlist&wishnonce="+rhscriptvars.wishnonce+"&wish_count="+actionwishlist+"&post_id="+post_id}).done(function(count){$this.removeClass("loading");if($this.hasClass('alreadywish')){$this.removeClass('alreadywish');informer=informer-1;$this.closest('.heart_thumb_wrap').find('#wishcount'+post_id+'').text(informer);if($('.rh-wishlistmenu-link .rh-icon-notice').length){var overallcount=parseInt($('.rh-wishlistmenu-link .rh-icon-notice').html());$('.rh-wishlistmenu-link .rh-icon-notice').text(overallcount-1);}
$this.attr("data-informer",informer);if($('#wishremoved'+post_id+'').length>0){$.simplyToast($('#wishremoved'+post_id+'').html(),'danger');}}else{$this.addClass('alreadywish');informer=informer+1;$this.closest('.heart_thumb_wrap').find('#wishcount'+post_id+'').text(informer);if($('.rh-wishlistmenu-link .rh-icon-notice').length){if($('.rh-wishlistmenu-link .rh-icon-notice').hasClass('rhhidden')){$('.rh-wishlistmenu-link .rh-icon-notice').removeClass('rhhidden');$('.rh-wishlistmenu-link .rh-icon-notice').text(1);}else{var overallcount=parseInt($('.rh-wishlistmenu-link .rh-icon-notice').html());$('.rh-wishlistmenu-link .rh-icon-notice').text(overallcount+1);}}
$this.attr("data-informer",informer);if($('#wishadded'+post_id+'').length>0){$.simplyToast($('#wishadded'+post_id+'').html(),'success');}}});return false;});if(typeof wishcached!=='undefined'){var favListed=$(".heartplus");if(favListed.length!=0){$.ajax({type:"get",url:wishcached.rh_ajax_url,data:"action=refreshwishes&userid="+wishcached.userid,cache:!1}).done(function(data){var wishlistids=data.wishlistids.split(',');if(wishlistids.length!=0){favListed.each(function(){var postID=$(this).attr("data-post_id");if($.inArray(postID,wishlistids)!=-1){if($(this).hasClass('alreadywish')==false){$(this).addClass('alreadywish');var informer=parseInt($(this).attr("data-informer"));informer=informer+1;$(this).attr("data-informer",informer);$(this).closest('.heart_thumb_wrap').find('#wishcount'+postID+'').text(informer);}}});if($('.rh-wishlistmenu-link .rh-icon-notice').length){if($('.rh-wishlistmenu-link .rh-icon-notice').hasClass('rhhidden')){$('.rh-wishlistmenu-link .rh-icon-notice').removeClass('rhhidden');}
$('.rh-wishlistmenu-link .rh-icon-notice').text(data.wishcounter);}}});}}});;
jQuery(document).ready(function($){'use strict';$(document).on("click",".hotcountbtn:not(.alreadyhot)",function(e){e.preventDefault();var $this=$(this);if($this.hasClass('restrict_for_guests')){return false;}
var post_id=$(this).data("post_id");var informer=parseInt($(this).attr("data-informer"));if($this.hasClass('thumbplus')){var actioncounter='hot';$this.addClass("loading");$this.addClass('alreadyhot').parent().find('.thumbminus').addClass('alreadyhot');}else if($this.hasClass('hotplus')){var actioncounter='hot';$this.addClass('alreadyhot').parent().parent().find('.hotminus').addClass('alreadyhot');$('#textinfo'+post_id+'').html("<i class='rhicon rhi-spinner fa-spin'></i>");}else if($this.hasClass('thumbminus')){var actioncounter='cold';$this.addClass("loading");$this.addClass('alreadyhot').parent().find('.thumbplus').addClass('alreadyhot');}else if($this.hasClass('hotminus')){var actioncounter='cold';$this.addClass('alreadyhot').parent().parent().find('.hotplus').addClass('alreadyhot');$('#textinfo'+post_id+'').html("<i class='rhicon rhi-spinner fa-spin'></i>");}
$.ajax({type:"post",url:rhscriptvars.ajax_url,data:"action=hot-count&hotnonce="+rhscriptvars.hotnonce+"&hot_count="+actioncounter+"&post_id="+post_id}).done(function(count){if($this.hasClass('thumbplus')){$this.removeClass("loading");informer=informer+1;$this.closest('.post_thumbs_wrap').find('#thumbscount'+post_id+'').text(informer);$this.attr("data-informer",informer);}else if($this.hasClass('hotplus')){$('#textinfo'+post_id+'').html('');informer=informer+1;$('#temperatur'+post_id+'').text(informer+"°");if(informer>rhscriptvars.max_temp){informer=rhscriptvars.max_temp;}
if(informer<rhscriptvars.min_temp){informer=rhscriptvars.min_temp;}
if(informer>=0){$('#scaleperc'+post_id+'').css("width",informer/rhscriptvars.max_temp*100+'%').removeClass('cold_bar');$('#temperatur'+post_id+'').removeClass('cold_temp');}
else{$('#scaleperc'+post_id+'').css("width",informer/rhscriptvars.min_temp*100+'%');}}else if($this.hasClass('thumbminus')){$this.removeClass("loading");informer=informer-1;$this.closest('.post_thumbs_wrap').find('#thumbscount'+post_id+'').text(informer);}else if($this.hasClass('hotminus')){$('#textinfo'+post_id+'').html('');informer=informer-1;$('#temperatur'+post_id+'').text(informer+"°");if(informer<rhscriptvars.min_temp){informer=rhscriptvars.min_temp;}
if(informer>rhscriptvars.max_temp){informer=rhscriptvars.max_temp;}
if(informer<0){$('#scaleperc'+post_id+'').css("width",informer/rhscriptvars.min_temp*100+'%').addClass('cold_bar');$('#temperatur'+post_id+'').addClass('cold_temp');}
else{$('#scaleperc'+post_id+'').css("width",informer/rhscriptvars.max_temp*100+'%');}}});return false;});});;
jQuery(document).ready(function($){'use strict';var widthwindow=$(window).width();if(widthwindow<1024&&$('.float-panel-woo-info').length>0){var floatpanellinks=$('.float-panel-woo-info').clone(true).addClass('wpsm_pretty_colored float-panel-top-links pt10 pl15 pr15 pb10 rh-float-panel');$('body').prepend(floatpanellinks);$('.float-panel-top-links').removeClass('rh-line-left ml15');$('.float-panel-top-links .float-panel-woo-links').removeClass('font80').addClass('font90 scroll-on-mobile');if($('.re-stickyheader').length>0){var stickyheight=$('.re-stickyheader').outerHeight();floatpanellinks.css("top",stickyheight);}}
var lastId='';var topMenu=$(".float-panel-woo-links");var topTabs=$(".float-panel-woo-tabs");var topMenuHeight=$("#float-panel-woo-area").outerHeight()+15;var sidecontents=$(".sidecontents");var imagedotcontoller=$("#rh-product-images-dots");if(topMenu.length>0){var menuItems=topMenu.find("a");var scrollItems=menuItems.map(function(){var elem=$(this).attr("href");var item=$(elem);if(item.length){return item;}});menuItems.click(function(e){var href=$(this).attr("href"),offsetTop=href==="#"?0:$(href).offset().top-topMenuHeight+1;$('html, body').stop().animate({scrollTop:offsetTop},500);e.preventDefault();});$('#contents-section-woo-area .contents-woo-area a').click(function(e){var href=$(this).attr("href"),offsetTop=href==="#"?0:$(href).offset().top-topMenuHeight+1;$('html, body').stop().animate({scrollTop:offsetTop},500);e.preventDefault();});$(window).on("scroll",$.throttle(250,function(){var fromTop=$(this).scrollTop()+topMenuHeight;var cur=scrollItems.map(function(){if($(this).offset().top<fromTop)
return this;});cur=cur[cur.length-1];var id=cur&&cur.length?cur[0].id:"";if(lastId!==id){lastId=id;var currentmenuItem=menuItems.filter("[href='#"+id+"']");var currentmenuIteml=currentmenuItem.offset();menuItems.parent().removeClass("current");currentmenuItem.parent().addClass("current");if(typeof currentmenuIteml!=="undefined"){$('.float-panel-top-links .float-panel-woo-links').stop().animate({scrollLeft:currentmenuIteml.left-20},500);}}}));}
if(topTabs.length>0){var tabItems=topTabs.find("a");tabItems.click(function(e){e.preventDefault();var href=$(this).attr("href"),offsetTop=href==="#"?0:$('.woocommerce-tabs').offset().top-topMenuHeight+1;$('.tabs a[href="'+href+'"]').trigger('click');return false;});var tabsWooitems=$('.wc-tabs a');tabsWooitems.click(function(e){var href=$(this).attr("href"),offsetTop=href==="#"?0:$('.woocommerce-tabs').offset().top-topMenuHeight+1;;tabItems.parent().removeClass('current');topTabs.find('a[href="'+href+'"]').parent().addClass('current');$('html, body').stop().animate({scrollTop:offsetTop},500);});}
if(sidecontents.length>0){var sidecontentsItems=sidecontents.find('a');var sidelastId='';var sidescrollItems=sidecontentsItems.map(function(){var elem=jQuery(this).attr('href');var item=jQuery(elem);if(item.length){return item;}});sidecontentsItems.click(function(e){var href=$(this).attr("href"),offsetTop=href==="#"?0:$(href).offset().top-topMenuHeight-20;$('html, body').stop().animate({scrollTop:offsetTop},500);e.preventDefault();});jQuery(window).on("scroll",jQuery.throttle(350,function(){var sidefromTop=jQuery(this).scrollTop()+55;var sidecur=sidescrollItems.map(function(){if((jQuery(this).offset().top-55)<sidefromTop)
return this;});sidecur=sidecur[sidecur.length-1];var id=sidecur&&sidecur.length?sidecur[0].id:'';if(sidelastId!==id){sidelastId=id;var currentmenuItem=sidecontentsItems.filter('[href=\"#'+id+'\"]');sidecontentsItems.addClass('greycolor').removeClass('fontbold').parent().removeClass('current');currentmenuItem.removeClass('greycolor').addClass('fontbold').parent().addClass('current');}}));}
if(imagedotcontoller.length>0){var heightpost=$('#photo_stack_main_img').offset().top;imagedotcontoller.css('top',heightpost+20);var imdotItems=imagedotcontoller.find('.rhdot');var imdotlastId='';var imdotscrollItems=imdotItems.map(function(){var elem=jQuery(this).data('scrollto');var item=jQuery(elem);if(item.length){return item;}});imdotItems.on('click',function(e){jQuery(this).addClass('current');});jQuery(window).on("scroll",jQuery.throttle(350,function(){var imdotfromTop=jQuery(this).scrollTop()+55;var imdotcur=imdotscrollItems.map(function(){if((jQuery(this).offset().top-55)<imdotfromTop)
return this;});imdotcur=imdotcur[imdotcur.length-1];var id=imdotcur&&imdotcur.length?imdotcur[0].id:'';if(imdotlastId!==id){imdotlastId=id;var currentimdotItem=imdotItems.filter('[data-scrollto=\"#'+id+'\"]');imdotItems.removeClass('current');currentimdotItem.addClass('current');}}));}
var lastScrollTop=0;let rhVideoScrollPanel=function(){if($('.rh-video-scroll-copy').length&&!$('.rh-video-scroll-copy').hasClass('active')&&$('.rh-video-scroll-cont .rh_lazy_load_video').hasClass('video-container')){let videocopy=$('.rh-video-scroll-copy').offset();let videocopywidth=$('.rh-video-scroll-copy').width();let videoorigheight=$('.rh-video-scroll-cont').outerHeight();$('.rh-video-scroll-wrap').height(videoorigheight);$('.rh-video-scroll-cont').css("top",videocopy.top-$(document).scrollTop());$('.rh-video-scroll-cont').css("left",videocopy.left);$('.rh-video-scroll-cont').css("position","fixed");$('.rh-video-scroll-cont').css("z-index",9999999);$('.rh-video-scroll-cont').css("width",videocopywidth);$('.rh-video-scroll-cont').css("height",200);$('.rh-video-scroll-copy').addClass('active').css("height",200);}}
$(window).on("scroll",$.throttle(250,function(){var st=$(this).scrollTop();if($('#contents-section-woo-area').length>0){var theight=$('#contents-section-woo-area').offset();if(st>theight.top){$('#float-panel-woo-area, .float-panel-woo-info').addClass('floating');$('.float_p_trigger').addClass('floatactive');if($('.float_trigger_clr_change').length){$('.float_trigger_clr_change').addClass('whitebg rh-shadow3').removeClass('darkbgl woo_white_text_layout whitecolorinner');}
imagedotcontoller.addClass('rhhidden');rhVideoScrollPanel();}
else{$('#float-panel-woo-area, .float-panel-woo-info').removeClass('floating');$('.float_p_trigger').removeClass('floatactive');if($('.float_trigger_clr_change').length){$('.float_trigger_clr_change').removeClass('whitebg rh-shadow3').addClass('darkbgl woo_white_text_layout whitecolorinner');}
if($('.rh-video-scroll-copy').length&&$('.rh-video-scroll-copy').hasClass('active')&&$('.rh-video-scroll-cont .rh_lazy_load_video').hasClass('video-container')){$('.rh-video-scroll-cont').removeAttr('style');$('.rh-video-scroll-copy').removeClass('active').removeAttr('style');$('.rh-video-scroll-wrap').removeAttr('style');}
imagedotcontoller.removeClass('rhhidden');}
if(st>lastScrollTop){$('#float-panel-woo-area, .float-panel-woo-info').addClass('scrollingDown').removeClass('scrollingUp');}else{$('#float-panel-woo-area, .float-panel-woo-info').addClass('scrollingUp').removeClass('scrollingDown');}
lastScrollTop=st;}}));$(window).on("resize",$.throttle(550,function(){if($('.rh-video-scroll-copy').length&&$('.rh-video-scroll-cont .rh_lazy_load_video').hasClass('video-container')){if($('.rh-video-scroll-copy').hasClass('active')){let videocopy=$('.rh-video-scroll-copy').offset();let videocopywidth=$('.rh-video-scroll-copy').width();$('.rh-video-scroll-cont').css("top",videocopy.top-$(document).scrollTop());$('.rh-video-scroll-cont').css("left",videocopy.left);$('.rh-video-scroll-cont').css("width",videocopywidth);}else{let videoorigheight=$('.rh-video-scroll-cont').outerHeight();$('.rh-video-scroll-wrap').height(videoorigheight);}}}));});
jQuery(document).ready(function($){$('.tabs-menu').on('click','li:not(.current)',function(){var tabcontainer=$(this).closest('.tabs');if(tabcontainer.length==0){var tabcontainer=$(this).closest('.elementor-widget-wrap');}
$(this).addClass('current elementor-active').siblings().removeClass('current elementor-active');tabcontainer.find('.tabs-item').hide().removeClass('stuckMoveDownOpacity').eq($(this).index()).show().addClass('stuckMoveDownOpacity');});$('.tabs-menu li:first-child').trigger('click');});
jQuery(document).ready(function($){'use strict';$('.re_filter_panel').on('click','.re_filtersort_btn:not(.active)',function(e){e.preventDefault();var $this=$(this);var containerid=$this.data('containerid');var activecontainer=$('#'+containerid);var sorttype=$this.data('sorttype');var filterPanel=activecontainer.siblings('.re_filter_panel');var choosenTax=filterPanel.find('.re_tax_dropdown .rh_choosed_tax');var tax;if(choosenTax.length>0&&choosenTax.html()!=''){tax=choosenTax.attr('data-taxdata');if(tax){tax=JSON.parse(tax);}}
var filterargs=activecontainer.data('filterargs');var innerargs=activecontainer.data('innerargs');var template=activecontainer.data('template');var data={'action':'re_filterpost','sorttype':sorttype,'filterargs':filterargs,'tax':tax,'template':template,'containerid':containerid,'innerargs':innerargs,'security':rhscriptvars.filternonce};$this.closest('ul').addClass('activeul');$this.addClass('re_loadingbefore');activecontainer.addClass('sortingloading');$.ajax({type:"POST",url:rhscriptvars.ajax_url,data:data}).done(function(response){if(response!=='fail'){if(activecontainer.parent().hasClass('rh-gsap-wrap')||activecontainer.parent().parent().hasClass('rh-gsap-wrap')){var elapend=$(response);activecontainer.html(elapend);var current=activecontainer.closest('.rh-gsap-wrap');var $batchobj=elapend.filter('.col_item');var anargs=RHGetBasicTween(current);RHBatchScrollTrigger(current,anargs,$batchobj);}else{activecontainer.html($(response).hide().fadeIn(1000));}
activecontainer.find('.radial-progress').each(function(){$(this).find('.circle .mask.full, .circle .fill:not(.fix)').animate({borderSpacing:$(this).attr('data-rating')*18},{step:function(now,fx){$(this).css('-webkit-transform','rotate('+now+'deg)');$(this).css('-moz-transform','rotate('+now+'deg)');$(this).css('transform','rotate('+now+'deg)');},duration:'slow'},'linear');$(this).find('.circle .fill.fix').animate({borderSpacing:$(this).attr('data-rating')*36},{step:function(now,fx){$(this).css('-webkit-transform','rotate('+now+'deg)');$(this).css('-moz-transform','rotate('+now+'deg)');$(this).css('transform','rotate('+now+'deg)');},duration:'slow'},'linear');});activecontainer.find('.wpsm-tooltip').each(function(){$(this).tipsy({gravity:"s",fade:true,html:true});});activecontainer.find('.wpsm-bar').each(function(){$(this).find('.wpsm-bar-bar').animate({width:$(this).attr('data-percent')},1500);});activecontainer.find('.countdown_dashboard').each(function(){$(this).show();var id=$(this).attr("id");var day=$(this).attr("data-day");var month=$(this).attr("data-month");var year=$(this).attr("data-year");var hour=$(this).attr("data-hour");var min=$(this).attr("data-min");$(this).countDown({targetDate:{"day":day,"month":month,"year":year,"hour":hour,"min":min,"sec":0},omitWeeks:true,onComplete:function(){$("#"+id).hide()}});});}
$this.closest('.re_filter_panel').find('span').removeClass('active');$this.removeClass('re_loadingbefore').addClass('active');activecontainer.removeClass('sortingloading');$this.closest('ul').removeClass('activeul');if($this.closest('ul').hasClass('re_tax_dropdown')){var taxDropdown=$this.closest('.re_tax_dropdown');taxDropdown.find('.rh_choosed_tax').html($this.html()).show().attr('data-taxdata',$this.attr('data-sorttype'));taxDropdown.find('.rh_tax_placeholder').hide();filterPanel.find('.re_filter_ul li:first-child span').addClass('active');}});});$('.re_filter_panel').on('click','.re_filter_ul .re_filtersort_btn.active',function(e){e.preventDefault();$(this).closest('.re_filter_panel').find('ul.re_filter_ul span').toggleClass('showfiltermobile');});$('.re_tax_dropdown').on('click','.label',function(e){e.stopPropagation();e.preventDefault();$(this).closest('.re_tax_dropdown').toggleClass('active');});});;
|
'use strict';
/*global require,describe,xdescribe,it,expect,beforeEach*/
var Cartographic = require('terriajs-cesium/Source/Core/Cartographic');
var Cesium = require('../../lib/Models/Cesium');
var CesiumMath = require('terriajs-cesium/Source/Core/Math');
var CesiumWidget = require('terriajs-cesium/Source/Widgets/CesiumWidget/CesiumWidget');
var Color = require('terriajs-cesium/Source/Core/Color');
var Ellipsoid = require('terriajs-cesium/Source/Core/Ellipsoid');
var Entity = require('terriajs-cesium/Source/DataSources/Entity');
var GeoJsonDataSource = require('terriajs-cesium/Source/DataSources/GeoJsonDataSource');
var ImageryLayer = require('terriajs-cesium/Source/Scene/ImageryLayer');
var ImageryLayerFeatureInfo = require('terriajs-cesium/Source/Scene/ImageryLayerFeatureInfo');
var loadJson = require('terriajs-cesium/Source/Core/loadJson');
var Rectangle = require('terriajs-cesium/Source/Core/Rectangle');
var SceneTransforms = require('terriajs-cesium/Source/Scene/SceneTransforms');
var supportsWebGL = require('../../lib/Core/supportsWebGL');
var Terria = require('../../lib/Models/Terria');
var TileBoundingBox = require('terriajs-cesium/Source/Scene/TileBoundingBox');
var TileCoordinatesImageryProvider = require('terriajs-cesium/Source/Scene/TileCoordinatesImageryProvider');
var when = require('terriajs-cesium/Source/ThirdParty/when');
var describeIfSupported = supportsWebGL() ? describe : xdescribe;
describeIfSupported('Cesium Model', function() {
var terria;
var cesium;
var container;
var LAT_DEGREES = 50;
var LONG_DEGREES = 100;
var HEIGHT = 1000;
var LAT_RAD = CesiumMath.toRadians(LAT_DEGREES);
var LONG_RAD = CesiumMath.toRadians(LONG_DEGREES);
var EXPECTED_POS = Ellipsoid.WGS84.cartographicToCartesian(Cartographic.fromDegrees(LONG_DEGREES, LAT_DEGREES, HEIGHT));
var RECTANGLE_CONTAINING_EXPECTED_POS = new Rectangle(LONG_RAD - 0.1, LAT_RAD - 0.1, LONG_RAD + 0.1, LAT_RAD + 0.1);
var expectedPosScreenCoords;
var imageryLayers, imageryLayerPromises;
beforeEach(function() {
terria = new Terria({
baseUrl: './'
});
container = document.createElement('div');
container.id = 'container';
document.body.appendChild(container);
spyOn(terria.tileLoadProgressEvent, 'raiseEvent');
var cesiumWidget = new CesiumWidget(container);
spyOn(cesiumWidget.screenSpaceEventHandler, 'setInputAction');
cesium = new Cesium(terria, cesiumWidget);
cesium.scene.globe._imageryLayerCollection.removeAll(true);
expectedPosScreenCoords = SceneTransforms.wgs84ToWindowCoordinates(cesium.scene, EXPECTED_POS);
imageryLayers = [];
imageryLayerPromises = [];
var IMAGERY_PROVIDER_URLS = ['http://example.com/1', 'http://example.com/2'];
IMAGERY_PROVIDER_URLS.forEach(function(url) {
var provider = new TileCoordinatesImageryProvider();
provider.url = url;
var deferred = when.defer();
spyOn(provider, 'pickFeatures').and.returnValue(deferred.promise);
imageryLayerPromises.push(deferred);
var layer = new ImageryLayer(provider);
layer._rectangle = RECTANGLE_CONTAINING_EXPECTED_POS;
imageryLayers.push(layer);
cesium.scene.globe._imageryLayerCollection.add(layer);
});
terria.cesium = cesium;
});
afterEach(function() {
cesium.viewer.destroy();
document.body.removeChild(container);
});
it('should be able to reference its container', function() {
expect(cesium.getContainer()).toBe(container);
});
it('should trigger terria.tileLoadProgressEvent on globe tileLoadProgressEvent', function() {
cesium.scene.globe.tileLoadProgressEvent.raiseEvent(3);
expect(terria.tileLoadProgressEvent.raiseEvent).toHaveBeenCalledWith(3, 3);
});
it('should retain the maximum length of tiles to be loaded', function() {
cesium.scene.globe.tileLoadProgressEvent.raiseEvent(3);
cesium.scene.globe.tileLoadProgressEvent.raiseEvent(7);
cesium.scene.globe.tileLoadProgressEvent.raiseEvent(4);
cesium.scene.globe.tileLoadProgressEvent.raiseEvent(2);
expect(terria.tileLoadProgressEvent.raiseEvent).toHaveBeenCalledWith(2, 7);
});
it('should reset maximum length when the number of tiles to be loaded reaches 0', function() {
cesium.scene.globe.tileLoadProgressEvent.raiseEvent(3);
cesium.scene.globe.tileLoadProgressEvent.raiseEvent(7);
cesium.scene.globe.tileLoadProgressEvent.raiseEvent(4);
cesium.scene.globe.tileLoadProgressEvent.raiseEvent(0);
expect(terria.tileLoadProgressEvent.raiseEvent.calls.mostRecent().args).toEqual([0, 0]);
cesium.scene.globe.tileLoadProgressEvent.raiseEvent(2);
expect(terria.tileLoadProgressEvent.raiseEvent.calls.mostRecent().args).toEqual([2, 2]);
});
describe('feature picking', function() {
describe('via pickFromLocation', function() {
it('should populate terria.pickedFeatures', function() {
expect(terria.pickedFeatures).toBeUndefined();
cesium.pickFromLocation({lat: LAT_DEGREES, lng: LONG_DEGREES, height: HEIGHT}, {});
expect(terria.pickedFeatures).not.toBeUndefined();
expect(terria.pickedFeatures.pickPosition).toEqual(EXPECTED_POS);
expect(terria.pickedFeatures.allFeaturesAvailablePromise).not.toBeUndefined();
});
it('should pass tile coordinates to associated imagery provider', function() {
cesium.pickFromLocation({lat: LAT_DEGREES, lng: LONG_DEGREES, height: HEIGHT}, {
'http://example.com/1': {x: 1, y: 2, level: 3},
'http://example.com/2': {x: 4, y: 5, level: 6}
});
expect(imageryLayers[0]._imageryProvider.pickFeatures.calls.argsFor(0)).toEqual([1, 2, 3, LONG_RAD, LAT_RAD]);
expect(imageryLayers[1]._imageryProvider.pickFeatures.calls.argsFor(0)).toEqual([4, 5, 6, LONG_RAD, LAT_RAD]);
});
testFeatureInfoProcessing(function() {
cesium.pickFromLocation({lat: LAT_DEGREES, lng: LONG_DEGREES, height: HEIGHT}, {
'http://example.com/1': {x: 1, y: 2, level: 3},
'http://example.com/2': {x: 4, y: 5, level: 6}
});
});
it('existing features are included in pickFeatures along with ones got from imagery layers', function(done) {
var existingFeatures = [new ImageryLayerFeatureInfo(), new ImageryLayerFeatureInfo()];
existingFeatures[0].name = '1';
existingFeatures[1].name = '2';
cesium.pickFromLocation({lat: LAT_DEGREES, lng: LONG_DEGREES, height: HEIGHT}, {
'http://example.com/1': {
x: 1,
y: 2,
level: 3
}
}, existingFeatures);
var imageryLayerFeatureInfo = new ImageryLayerFeatureInfo();
imageryLayerFeatureInfo.name = '3';
imageryLayerPromises[0].resolve([imageryLayerFeatureInfo]);
terria.pickedFeatures.allFeaturesAvailablePromise.then(function() {
expect(terria.pickedFeatures.features[0].name).toBe('1');
expect(terria.pickedFeatures.features[1].name).toBe('2');
expect(terria.pickedFeatures.features[2].name).toBe('3');
}).then(done).otherwise(done.fail);
});
stateTests(function() {
cesium.pickFromLocation({lat: LAT_DEGREES, lng: LONG_DEGREES, height: HEIGHT}, {
'http://example.com/1': {
x: 1,
y: 2,
level: 3
}
});
});
});
describe('via clicking the screen', function() {
var doClick;
beforeEach(function() {
// There should be some way to make this work without cheating like this but I can't figure out how.
spyOn(cesium.scene.globe, 'pick').and.returnValue(EXPECTED_POS);
doClick = cesium.viewer.screenSpaceEventHandler.setInputAction.calls.argsFor(0)[0];
var tile = new TileBoundingBox({
rectangle: RECTANGLE_CONTAINING_EXPECTED_POS
});
tile.data = {
imagery: imageryLayers.map(function(layer, i) {
return {
readyImagery: {
imageryLayer: layer,
rectangle: RECTANGLE_CONTAINING_EXPECTED_POS,
x: i + 1,
y: i + 2,
level: i + 3
},
textureCoordinateRectangle: {
x: 0.5,
z: 0.5,
y: 0.5,
w: 0.5
}
};
})
};
cesium.scene.globe._surface._tilesToRender = [tile];
});
stateTests(function() {
doClick({position: expectedPosScreenCoords});
});
testFeatureInfoProcessing(function() {
doClick({position: expectedPosScreenCoords});
});
it('includes vector features alongside raster ones', function(done) {
var vectorFeatures = [{
id: new Entity({
name: 'entity1'
})
}, {
primitive: {
id: new Entity({
name: 'entity2'
})
}
}];
spyOn(cesium.scene, 'drillPick').and.returnValue(vectorFeatures);
var rasterFeature = new ImageryLayerFeatureInfo();
rasterFeature.name = 'entity3';
imageryLayerPromises[0].resolve([rasterFeature]);
imageryLayerPromises[1].resolve([]);
doClick({position: expectedPosScreenCoords});
terria.pickedFeatures.allFeaturesAvailablePromise.then(function() {
expect(cesium.scene.drillPick).toHaveBeenCalledWith(expectedPosScreenCoords);
expect(terria.pickedFeatures.features[0].name).toBe('entity1');
expect(terria.pickedFeatures.features[1].name).toBe('entity2');
expect(terria.pickedFeatures.features[2].name).toBe('entity3');
}).then(done).otherwise(done.fail);
});
it('records tile coordinates when getting raster features', function(done) {
doClick({position: expectedPosScreenCoords});
imageryLayerPromises[0].resolve([]);
imageryLayerPromises[1].resolve([]);
terria.pickedFeatures.allFeaturesAvailablePromise.then(function() {
expect(terria.pickedFeatures.providerCoords['http://example.com/1']).toEqual({
x: 1,
y: 2,
level: 3
});
expect(terria.pickedFeatures.providerCoords['http://example.com/2']).toEqual({
x: 2,
y: 3,
level: 4
});
}).then(done).otherwise(done.fail);
});
});
});
it('should create GeoJSON for polygon when a rasterized polygon feature is selected', function(done) {
loadJson('test/GeoJSON/polygon.geojson').then(function(polygonGeoJson) {
var entity = new Entity();
entity.data = polygonGeoJson;
terria.selectedFeature = entity;
expect(terria.cesium._highlightPromise).toBeDefined();
expect(terria.cesium._removeHighlightCallback).toBeDefined();
return terria.cesium._highlightPromise.then(function() {
expect(terria.dataSources.length).toBe(1);
expect(terria.dataSources.get(0) instanceof GeoJsonDataSource).toBe(true);
});
}).then(done).otherwise(done.fail);
});
it('should create GeoJSON for polyline when a rasterized polyline feature is selected', function(done) {
loadJson('test/GeoJSON/polyline.geojson').then(function(polylineGeoJson) {
var entity = new Entity();
entity.data = polylineGeoJson;
terria.selectedFeature = entity;
expect(terria.cesium._highlightPromise).toBeDefined();
expect(terria.cesium._removeHighlightCallback).toBeDefined();
return terria.cesium._highlightPromise.then(function() {
expect(terria.dataSources.length).toBe(1);
expect(terria.dataSources.get(0) instanceof GeoJsonDataSource).toBe(true);
});
}).then(done).otherwise(done.fail);
});
it('should update the style of a vector polygon when selected', function(done) {
GeoJsonDataSource.load('test/GeoJSON/polygon.geojson').then(function(dataSource) {
terria.dataSources.add(dataSource);
var entity = dataSource.entities.values[0];
terria.selectedFeature = entity;
expect(entity.polygon.outlineColor.getValue()).toEqual(Color.WHITE);
terria.selectedFeature = undefined;
expect(entity.polygon.outlineColor.getValue()).not.toEqual(Color.WHITE);
}).then(done).otherwise(done.fail);
});
it('should update the style of a vector polyline when selected', function(done) {
GeoJsonDataSource.load('test/GeoJSON/polyline.geojson').then(function(dataSource) {
terria.dataSources.add(dataSource);
var entity = dataSource.entities.values[0];
terria.selectedFeature = entity;
expect(entity.polyline.width.getValue()).toEqual(2);
terria.selectedFeature = undefined;
expect(entity.polyline.width.getValue()).not.toEqual(2);
}).then(done).otherwise(done.fail);
});
function testFeatureInfoProcessing(beforeFn) {
describe('correctly processes feature info', function() {
beforeEach(beforeFn);
it('from imagery providers to a single list of entities', function(done) {
var featureInfo1 = new ImageryLayerFeatureInfo();
var featureInfo2 = new ImageryLayerFeatureInfo();
var featureInfo3 = new ImageryLayerFeatureInfo();
featureInfo1.name = 'name1';
featureInfo2.name = 'name2';
featureInfo3.name = 'name3';
imageryLayerPromises[0].resolve([featureInfo1]);
imageryLayerPromises[1].resolve([featureInfo2, featureInfo3]);
terria.pickedFeatures.allFeaturesAvailablePromise.then(function() {
expect(terria.pickedFeatures.features[0].name).toBe('name2');
expect(terria.pickedFeatures.features[1].name).toBe('name3');
expect(terria.pickedFeatures.features[2].name).toBe('name1');
expect(terria.pickedFeatures.features[0].imageryLayer).toBe(imageryLayers[1]);
expect(terria.pickedFeatures.features[1].imageryLayer).toBe(imageryLayers[1]);
expect(terria.pickedFeatures.features[2].imageryLayer).toBe(imageryLayers[0]);
}).then(done).otherwise(done.fail);
});
it('from an ImageryLayerFeatureInfo into an Entity', function(done) {
var featureInfo = new ImageryLayerFeatureInfo();
featureInfo.name = 'name1';
featureInfo.description = 'a description';
featureInfo.properties = {};
featureInfo.position = Cartographic.fromDegrees(LONG_DEGREES, LAT_DEGREES, HEIGHT);
featureInfo.coords = {x: 1, y: 2, level: 3};
imageryLayerPromises[0].resolve([featureInfo]);
imageryLayerPromises[1].resolve([]);
terria.pickedFeatures.allFeaturesAvailablePromise.then(function() {
var entity = terria.pickedFeatures.features[0];
expect(entity.id).toBe('name1');
expect(entity.name).toBe('name1');
expect(entity.properties).toBe(featureInfo.properties);
expect(entity.imageryLayer).toBe(imageryLayers[0]);
expect(entity.position._value).toEqual(EXPECTED_POS);
expect(entity.coords).toEqual({x: 1, y: 2, level: 3});
done();
}).otherwise(done.fail);
});
});
}
function stateTests(beforeFn) {
describe('sets state', function() {
beforeEach(beforeFn);
it('to loading while load is in progress', function(done) {
expect(terria.pickedFeatures.isLoading).toBe(true);
imageryLayerPromises[0].resolve([]);
imageryLayerPromises[1].resolve([]);
terria.pickedFeatures.allFeaturesAvailablePromise.then(function() {
expect(terria.pickedFeatures.isLoading).toBe(false);
done();
});
});
it('to not loading and error if error occurs', function(done) {
imageryLayerPromises[0].reject(new Error('test'));
terria.pickedFeatures.allFeaturesAvailablePromise.then(function() {
expect(terria.pickedFeatures.isLoading).toBe(false);
expect(terria.pickedFeatures.error).toBeDefined();
done();
});
});
});
}
});
|
(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t():"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports["chart"]=t():e["chart"]=t()})("undefined"!==typeof self?self:this,(function(){return function(e){var t={};function a(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,a),r.l=!0,r.exports}return a.m=e,a.c=t,a.d=function(e,t,n){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},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 n=Object.create(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)a.d(n,r,function(t){return e[t]}.bind(null,r));return n},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="",a(a.s="fb15")}({"010e":function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}});return t}))},"017e":function(e,t,a){"use strict";var n=a("0832"),r=a("2b61"),i=a("4438"),s=a("7c42"),o=i.noop;function d(e,t){return e.usePointStyle?t*Math.SQRT2:e.boxWidth}n._set("global",{legend:{display:!0,position:"top",fullWidth:!0,reverse:!1,weight:1e3,onClick:function(e,t){var a=t.datasetIndex,n=this.chart,r=n.getDatasetMeta(a);r.hidden=null===r.hidden?!n.data.datasets[a].hidden:null,n.update()},onHover:null,labels:{boxWidth:40,padding:10,generateLabels:function(e){var t=e.data;return i.isArray(t.datasets)?t.datasets.map((function(t,a){return{text:t.label,fillStyle:i.isArray(t.backgroundColor)?t.backgroundColor[0]:t.backgroundColor,hidden:!e.isDatasetVisible(a),lineCap:t.borderCapStyle,lineDash:t.borderDash,lineDashOffset:t.borderDashOffset,lineJoin:t.borderJoinStyle,lineWidth:t.borderWidth,strokeStyle:t.borderColor,pointStyle:t.pointStyle,datasetIndex:a}}),this):[]}}},legendCallback:function(e){var t=[];t.push('<ul class="'+e.id+'-legend">');for(var a=0;a<e.data.datasets.length;a++)t.push('<li><span style="background-color:'+e.data.datasets[a].backgroundColor+'"></span>'),e.data.datasets[a].label&&t.push(e.data.datasets[a].label),t.push("</li>");return t.push("</ul>"),t.join("")}});var u=r.extend({initialize:function(e){i.extend(this,e),this.legendHitBoxes=[],this.doughnutMode=!1},beforeUpdate:o,update:function(e,t,a){var n=this;return n.beforeUpdate(),n.maxWidth=e,n.maxHeight=t,n.margins=a,n.beforeSetDimensions(),n.setDimensions(),n.afterSetDimensions(),n.beforeBuildLabels(),n.buildLabels(),n.afterBuildLabels(),n.beforeFit(),n.fit(),n.afterFit(),n.afterUpdate(),n.minSize},afterUpdate:o,beforeSetDimensions:o,setDimensions:function(){var e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(e.height=e.maxHeight,e.top=0,e.bottom=e.height),e.paddingLeft=0,e.paddingTop=0,e.paddingRight=0,e.paddingBottom=0,e.minSize={width:0,height:0}},afterSetDimensions:o,beforeBuildLabels:o,buildLabels:function(){var e=this,t=e.options.labels||{},a=i.callback(t.generateLabels,[e.chart],e)||[];t.filter&&(a=a.filter((function(a){return t.filter(a,e.chart.data)}))),e.options.reverse&&a.reverse(),e.legendItems=a},afterBuildLabels:o,beforeFit:o,fit:function(){var e=this,t=e.options,a=t.labels,r=t.display,s=e.ctx,o=n.global,u=i.valueOrDefault,l=u(a.fontSize,o.defaultFontSize),_=u(a.fontStyle,o.defaultFontStyle),c=u(a.fontFamily,o.defaultFontFamily),m=i.fontString(l,_,c),h=e.legendHitBoxes=[],f=e.minSize,M=e.isHorizontal();if(M?(f.width=e.maxWidth,f.height=r?10:0):(f.width=r?10:0,f.height=e.maxHeight),r)if(s.font=m,M){var p=e.lineWidths=[0],y=e.legendItems.length?l+a.padding:0;s.textAlign="left",s.textBaseline="top",i.each(e.legendItems,(function(t,n){var r=d(a,l),i=r+l/2+s.measureText(t.text).width;p[p.length-1]+i+a.padding>=e.width&&(y+=l+a.padding,p[p.length]=e.left),h[n]={left:0,top:0,width:i,height:l},p[p.length-1]+=i+a.padding})),f.height+=y}else{var g=a.padding,L=e.columnWidths=[],v=a.padding,Y=0,b=0,k=l+g;i.each(e.legendItems,(function(e,t){var n=d(a,l),r=n+l/2+s.measureText(e.text).width;b+k>f.height&&(v+=Y+a.padding,L.push(Y),Y=0,b=0),Y=Math.max(Y,r),b+=k,h[t]={left:0,top:0,width:r,height:l}})),v+=Y,L.push(Y),f.width+=v}e.width=f.width,e.height=f.height},afterFit:o,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var e=this,t=e.options,a=t.labels,r=n.global,s=r.elements.line,o=e.width,u=e.lineWidths;if(t.display){var l,_=e.ctx,c=i.valueOrDefault,m=c(a.fontColor,r.defaultFontColor),h=c(a.fontSize,r.defaultFontSize),f=c(a.fontStyle,r.defaultFontStyle),M=c(a.fontFamily,r.defaultFontFamily),p=i.fontString(h,f,M);_.textAlign="left",_.textBaseline="middle",_.lineWidth=.5,_.strokeStyle=m,_.fillStyle=m,_.font=p;var y=d(a,h),g=e.legendHitBoxes,L=function(e,a,n){if(!(isNaN(y)||y<=0)){_.save(),_.fillStyle=c(n.fillStyle,r.defaultColor),_.lineCap=c(n.lineCap,s.borderCapStyle),_.lineDashOffset=c(n.lineDashOffset,s.borderDashOffset),_.lineJoin=c(n.lineJoin,s.borderJoinStyle),_.lineWidth=c(n.lineWidth,s.borderWidth),_.strokeStyle=c(n.strokeStyle,r.defaultColor);var o=0===c(n.lineWidth,s.borderWidth);if(_.setLineDash&&_.setLineDash(c(n.lineDash,s.borderDash)),t.labels&&t.labels.usePointStyle){var d=h*Math.SQRT2/2,u=d/Math.SQRT2,l=e+u,m=a+u;i.canvas.drawPoint(_,n.pointStyle,d,l,m)}else o||_.strokeRect(e,a,y,h),_.fillRect(e,a,y,h);_.restore()}},v=function(e,t,a,n){var r=h/2,i=y+r+e,s=t+r;_.fillText(a.text,i,s),a.hidden&&(_.beginPath(),_.lineWidth=2,_.moveTo(i,s),_.lineTo(i+n,s),_.stroke())},Y=e.isHorizontal();l=Y?{x:e.left+(o-u[0])/2,y:e.top+a.padding,line:0}:{x:e.left+a.padding,y:e.top+a.padding,line:0};var b=h+a.padding;i.each(e.legendItems,(function(t,n){var r=_.measureText(t.text).width,i=y+h/2+r,s=l.x,d=l.y;Y?s+i>=o&&(d=l.y+=b,l.line++,s=l.x=e.left+(o-u[l.line])/2):d+b>e.bottom&&(s=l.x=s+e.columnWidths[l.line]+a.padding,d=l.y=e.top+a.padding,l.line++),L(s,d,t),g[n].left=s,g[n].top=d,v(s,d,t,r),Y?l.x+=i+a.padding:l.y+=b}))}},handleEvent:function(e){var t=this,a=t.options,n="mouseup"===e.type?"click":e.type,r=!1;if("mousemove"===n){if(!a.onHover)return}else{if("click"!==n)return;if(!a.onClick)return}var i=e.x,s=e.y;if(i>=t.left&&i<=t.right&&s>=t.top&&s<=t.bottom)for(var o=t.legendHitBoxes,d=0;d<o.length;++d){var u=o[d];if(i>=u.left&&i<=u.left+u.width&&s>=u.top&&s<=u.top+u.height){if("click"===n){a.onClick.call(t,e.native,t.legendItems[d]),r=!0;break}if("mousemove"===n){a.onHover.call(t,e.native,t.legendItems[d]),r=!0;break}}}return r}});function l(e,t){var a=new u({ctx:e.ctx,options:t,chart:e});s.configure(e,a,t),s.addBox(e,a),e.legend=a}e.exports={id:"legend",_element:u,beforeInit:function(e){var t=e.options.legend;t&&l(e,t)},beforeUpdate:function(e){var t=e.options.legend,a=e.legend;t?(i.mergeIf(t,n.global.legend),a?(s.configure(e,a,t),a.options=t):l(e,t)):a&&(s.removeBox(e,a),delete e.legend)},afterEvent:function(e,t){var a=e.legend;a&&a.handleEvent(t)}}},"02cd":function(e,t,a){"use strict";var n=a("4c2d");e.exports={toLineHeight:function(e,t){var a=(""+e).match(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/);if(!a||"normal"===a[1])return 1.2*t;switch(e=+a[2],a[3]){case"px":return e;case"%":e/=100;break;default:break}return t*e},toPadding:function(e){var t,a,r,i;return n.isObject(e)?(t=+e.top||0,a=+e.right||0,r=+e.bottom||0,i=+e.left||0):t=a=r=i=+e||0,{top:t,right:a,bottom:r,left:i,height:t+r,width:i+a}},resolve:function(e,t,a){var r,i,s;for(r=0,i=e.length;r<i;++r)if(s=e[r],void 0!==s&&(void 0!==t&&"function"===typeof s&&(s=s(t)),void 0!==a&&n.isArray(s)&&(s=s[a]),void 0!==s))return s}}},"02fb":function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("ml",{months:"ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ".split("_"),monthsShort:"ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.".split("_"),monthsParseExact:!0,weekdays:"ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച".split("_"),weekdaysShort:"ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി".split("_"),weekdaysMin:"ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ".split("_"),longDateFormat:{LT:"A h:mm -നു",LTS:"A h:mm:ss -നു",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -നു",LLLL:"dddd, D MMMM YYYY, A h:mm -നു"},calendar:{sameDay:"[ഇന്ന്] LT",nextDay:"[നാളെ] LT",nextWeek:"dddd, LT",lastDay:"[ഇന്നലെ] LT",lastWeek:"[കഴിഞ്ഞ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s കഴിഞ്ഞ്",past:"%s മുൻപ്",s:"അൽപ നിമിഷങ്ങൾ",ss:"%d സെക്കൻഡ്",m:"ഒരു മിനിറ്റ്",mm:"%d മിനിറ്റ്",h:"ഒരു മണിക്കൂർ",hh:"%d മണിക്കൂർ",d:"ഒരു ദിവസം",dd:"%d ദിവസം",M:"ഒരു മാസം",MM:"%d മാസം",y:"ഒരു വർഷം",yy:"%d വർഷം"},meridiemParse:/രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,meridiemHour:function(e,t){return 12===e&&(e=0),"രാത്രി"===t&&e>=4||"ഉച്ച കഴിഞ്ഞ്"===t||"വൈകുന്നേരം"===t?e+12:e},meridiem:function(e,t,a){return e<4?"രാത്രി":e<12?"രാവിലെ":e<17?"ഉച്ച കഴിഞ്ഞ്":e<20?"വൈകുന്നേരം":"രാത്രി"}});return t}))},"039b":function(e,t,a){"use strict";var n=a("2b61");t=e.exports=n.extend({chart:null,currentStep:0,numSteps:60,easing:"",render:null,onAnimationProgress:null,onAnimationComplete:null});Object.defineProperty(t.prototype,"animationObject",{get:function(){return this}}),Object.defineProperty(t.prototype,"chartInstance",{get:function(){return this.chart},set:function(e){this.chart=e}})},"03ec":function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("cv",{months:"кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав".split("_"),monthsShort:"кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш".split("_"),weekdays:"вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун".split("_"),weekdaysShort:"выр_тун_ытл_юн_кӗҫ_эрн_шӑм".split("_"),weekdaysMin:"вр_тн_ыт_юн_кҫ_эр_шм".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]",LLL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm",LLLL:"dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm"},calendar:{sameDay:"[Паян] LT [сехетре]",nextDay:"[Ыран] LT [сехетре]",lastDay:"[Ӗнер] LT [сехетре]",nextWeek:"[Ҫитес] dddd LT [сехетре]",lastWeek:"[Иртнӗ] dddd LT [сехетре]",sameElse:"L"},relativeTime:{future:function(e){var t=/сехет$/i.exec(e)?"рен":/ҫул$/i.exec(e)?"тан":"ран";return e+t},past:"%s каялла",s:"пӗр-ик ҫеккунт",ss:"%d ҫеккунт",m:"пӗр минут",mm:"%d минут",h:"пӗр сехет",hh:"%d сехет",d:"пӗр кун",dd:"%d кун",M:"пӗр уйӑх",MM:"%d уйӑх",y:"пӗр ҫул",yy:"%d ҫул"},dayOfMonthOrdinalParse:/\d{1,2}-мӗш/,ordinal:"%d-мӗш",week:{dow:1,doy:7}});return t}))},"0558":function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
function t(e){return e%100===11||e%10!==1}function a(e,a,n,r){var i=e+" ";switch(n){case"s":return a||r?"nokkrar sekúndur":"nokkrum sekúndum";case"ss":return t(e)?i+(a||r?"sekúndur":"sekúndum"):i+"sekúnda";case"m":return a?"mínúta":"mínútu";case"mm":return t(e)?i+(a||r?"mínútur":"mínútum"):a?i+"mínúta":i+"mínútu";case"hh":return t(e)?i+(a||r?"klukkustundir":"klukkustundum"):i+"klukkustund";case"d":return a?"dagur":r?"dag":"degi";case"dd":return t(e)?a?i+"dagar":i+(r?"daga":"dögum"):a?i+"dagur":i+(r?"dag":"degi");case"M":return a?"mánuður":r?"mánuð":"mánuði";case"MM":return t(e)?a?i+"mánuðir":i+(r?"mánuði":"mánuðum"):a?i+"mánuður":i+(r?"mánuð":"mánuði");case"y":return a||r?"ár":"ári";case"yy":return t(e)?i+(a||r?"ár":"árum"):i+(a||r?"ár":"ári")}}var n=e.defineLocale("is",{months:"janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember".split("_"),monthsShort:"jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des".split("_"),weekdays:"sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur".split("_"),weekdaysShort:"sun_mán_þri_mið_fim_fös_lau".split("_"),weekdaysMin:"Su_Má_Þr_Mi_Fi_Fö_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[í dag kl.] LT",nextDay:"[á morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[í gær kl.] LT",lastWeek:"[síðasta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s síðan",s:a,ss:a,m:a,mm:a,h:"klukkustund",hh:a,d:a,dd:a,M:a,MM:a,y:a,yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return n}))},"0721":function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("fo",{months:"januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur".split("_"),weekdaysShort:"sun_mán_týs_mik_hós_frí_ley".split("_"),weekdaysMin:"su_má_tý_mi_hó_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[Í dag kl.] LT",nextDay:"[Í morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[Í gjár kl.] LT",lastWeek:"[síðstu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s síðani",s:"fá sekund",ss:"%d sekundir",m:"ein minuttur",mm:"%d minuttir",h:"ein tími",hh:"%d tímar",d:"ein dagur",dd:"%d dagar",M:"ein mánaður",MM:"%d mánaðir",y:"eitt ár",yy:"%d ár"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return t}))},"079e":function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("ja",{eras:[{since:"2019-05-01",offset:1,name:"令和",narrow:"㋿",abbr:"R"},{since:"1989-01-08",until:"2019-04-30",offset:1,name:"平成",narrow:"㍻",abbr:"H"},{since:"1926-12-25",until:"1989-01-07",offset:1,name:"昭和",narrow:"㍼",abbr:"S"},{since:"1912-07-30",until:"1926-12-24",offset:1,name:"大正",narrow:"㍽",abbr:"T"},{since:"1873-01-01",until:"1912-07-29",offset:6,name:"明治",narrow:"㍾",abbr:"M"},{since:"0001-01-01",until:"1873-12-31",offset:1,name:"西暦",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"紀元前",narrow:"BC",abbr:"BC"}],eraYearOrdinalRegex:/(元|\d+)年/,eraYearOrdinalParse:function(e,t){return"元"===t[1]?1:parseInt(t[1]||e,10)},months:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日(ddd) HH:mm"},meridiemParse:/午前|午後/i,isPM:function(e){return"午後"===e},meridiem:function(e,t,a){return e<12?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:function(e){return e.week()!==this.week()?"[来週]dddd LT":"dddd LT"},lastDay:"[昨日] LT",lastWeek:function(e){return this.week()!==e.week()?"[先週]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}日/,ordinal:function(e,t){switch(t){case"y":return 1===e?"元年":e+"年";case"d":case"D":case"DDD":return e+"日";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"数秒",ss:"%d秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}});return t}))},"0832":function(e,t,a){"use strict";var n=a("4438");e.exports={_set:function(e,t){return n.merge(this[e]||(this[e]={}),t)}}},"0a3c":function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),a="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),n=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],r=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,i=e.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,n){return e?/-MMM-/.test(n)?a[e.month()]:t[e.month()]:t},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}});return i}))},"0a84":function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("ar-ma",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}});return t}))},"0caa":function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
function t(e,t,a,n){var r={s:["thoddea sekondamni","thodde sekond"],ss:[e+" sekondamni",e+" sekond"],m:["eka mintan","ek minut"],mm:[e+" mintamni",e+" mintam"],h:["eka voran","ek vor"],hh:[e+" voramni",e+" voram"],d:["eka disan","ek dis"],dd:[e+" disamni",e+" dis"],M:["eka mhoinean","ek mhoino"],MM:[e+" mhoineamni",e+" mhoine"],y:["eka vorsan","ek voros"],yy:[e+" vorsamni",e+" vorsam"]};return n?r[a][0]:r[a][1]}var a=e.defineLocale("gom-latn",{months:{standalone:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),format:"Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Fuddlo] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fattlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(e,t){switch(t){case"D":return e+"er";default:case"M":case"Q":case"DDD":case"d":case"w":case"W":return e}},week:{dow:0,doy:3},meridiemParse:/rati|sokallim|donparam|sanje/,meridiemHour:function(e,t){return 12===e&&(e=0),"rati"===t?e<4?e:e+12:"sokallim"===t?e:"donparam"===t?e>12?e:e+12:"sanje"===t?e+12:void 0},meridiem:function(e,t,a){return e<4?"rati":e<12?"sokallim":e<16?"donparam":e<20?"sanje":"rati"}});return a}))},"0d58":function(e,t,a){var n=a("ce10"),r=a("e11e");e.exports=Object.keys||function(e){return n(e,r)}},"0e49":function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("fr-ch",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}});return t}))},"0e6b":function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,a=1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+a},week:{dow:0,doy:4}});return t}))},"0e81":function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"},a=e.defineLocale("tr",{months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_Çar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),meridiem:function(e,t,a){return e<12?a?"öö":"ÖÖ":a?"ös":"ÖS"},meridiemParse:/öö|ÖÖ|ös|ÖS/,isPM:function(e){return"ös"===e||"ÖS"===e},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[yarın saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[dün] LT",lastWeek:"[geçen] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",w:"bir hafta",ww:"%d hafta",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinal:function(e,a){switch(a){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'ıncı";var n=e%10,r=e%100-n,i=e>=100?100:null;return e+(t[n]||t[r]||t[i])}},week:{dow:1,doy:7}});return a}))},"0f14":function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn_man_tir_ons_tor_fre_lør".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"på dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"få sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en måned",MM:"%d måneder",y:"et år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return t}))},"0f38":function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}});return t}))},"0ff2":function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});return t}))},"10e8":function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("th",{months:"มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม".split("_"),monthsShort:"ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.".split("_"),monthsParseExact:!0,weekdays:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์".split("_"),weekdaysShort:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์".split("_"),weekdaysMin:"อา._จ._อ._พ._พฤ._ศ._ส.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY เวลา H:mm",LLLL:"วันddddที่ D MMMM YYYY เวลา H:mm"},meridiemParse:/ก่อนเที่ยง|หลังเที่ยง/,isPM:function(e){return"หลังเที่ยง"===e},meridiem:function(e,t,a){return e<12?"ก่อนเที่ยง":"หลังเที่ยง"},calendar:{sameDay:"[วันนี้ เวลา] LT",nextDay:"[พรุ่งนี้ เวลา] LT",nextWeek:"dddd[หน้า เวลา] LT",lastDay:"[เมื่อวานนี้ เวลา] LT",lastWeek:"[วัน]dddd[ที่แล้ว เวลา] LT",sameElse:"L"},relativeTime:{future:"อีก %s",past:"%sที่แล้ว",s:"ไม่กี่วินาที",ss:"%d วินาที",m:"1 นาที",mm:"%d นาที",h:"1 ชั่วโมง",hh:"%d ชั่วโมง",d:"1 วัน",dd:"%d วัน",w:"1 สัปดาห์",ww:"%d สัปดาห์",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"}});return t}))},"11e9":function(e,t,a){var n=a("52a7"),r=a("4630"),i=a("6821"),s=a("6a99"),o=a("69a8"),d=a("c69a"),u=Object.getOwnPropertyDescriptor;t.f=a("9e1e")?u:function(e,t){if(e=i(e),t=s(t,!0),d)try{return u(e,t)}catch(a){}if(o(e,t))return r(!n.f.call(e,t),e[t])}},"13e9":function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t={words:{ss:["секунда","секунде","секунди"],m:["један минут","једне минуте"],mm:["минут","минуте","минута"],h:["један сат","једног сата"],hh:["сат","сата","сати"],dd:["дан","дана","дана"],MM:["месец","месеца","месеци"],yy:["година","године","година"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,a,n){var r=t.words[n];return 1===n.length?a?r[0]:r[1]:e+" "+t.correctGrammaticalCase(e,r)}},a=e.defineLocale("sr-cyrl",{months:"јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар".split("_"),monthsShort:"јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.".split("_"),monthsParseExact:!0,weekdays:"недеља_понедељак_уторак_среда_четвртак_петак_субота".split("_"),weekdaysShort:"нед._пон._уто._сре._чет._пет._суб.".split("_"),weekdaysMin:"не_по_ут_ср_че_пе_су".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[данас у] LT",nextDay:"[сутра у] LT",nextWeek:function(){switch(this.day()){case 0:return"[у] [недељу] [у] LT";case 3:return"[у] [среду] [у] LT";case 6:return"[у] [суботу] [у] LT";case 1:case 2:case 4:case 5:return"[у] dddd [у] LT"}},lastDay:"[јуче у] LT",lastWeek:function(){var e=["[прошле] [недеље] [у] LT","[прошлог] [понедељка] [у] LT","[прошлог] [уторка] [у] LT","[прошле] [среде] [у] LT","[прошлог] [четвртка] [у] LT","[прошлог] [петка] [у] LT","[прошле] [суботе] [у] LT"];return e[this.day()]},sameElse:"L"},relativeTime:{future:"за %s",past:"пре %s",s:"неколико секунди",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"дан",dd:t.translate,M:"месец",MM:t.translate,y:"годину",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});return a}))},1495:function(e,t,a){var n=a("86cc"),r=a("cb7c"),i=a("0d58");e.exports=a("9e1e")?Object.defineProperties:function(e,t){r(e);var a,s=i(t),o=s.length,d=0;while(o>d)n.f(e,a=s[d++],t[a]);return e}},"167b":function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("oc-lnc",{months:{standalone:"genièr_febrièr_març_abril_mai_junh_julhet_agost_setembre_octòbre_novembre_decembre".split("_"),format:"de genièr_de febrièr_de març_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'octòbre_de novembre_de decembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._mai_junh_julh._ago._set._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"dimenge_diluns_dimars_dimècres_dijòus_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dm._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dm_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:"[uèi a] LT",nextDay:"[deman a] LT",nextWeek:"dddd [a] LT",lastDay:"[ièr a] LT",lastWeek:"dddd [passat a] LT",sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"unas segondas",ss:"%d segondas",m:"una minuta",mm:"%d minutas",h:"una ora",hh:"%d oras",d:"un jorn",dd:"%d jorns",M:"un mes",MM:"%d meses",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(e,t){var a=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"è";return"w"!==t&&"W"!==t||(a="a"),e+a},week:{dow:1,doy:4}});return t}))},"1b44":function(e,t,a){"use strict";var n=a("0832"),r=a("bef1"),i=a("4438");n._set("line",{showLines:!0,spanGaps:!1,hover:{mode:"label"},scales:{xAxes:[{type:"category",id:"x-axis-0"}],yAxes:[{type:"linear",id:"y-axis-0"}]}}),e.exports=function(e){function t(e,t){return i.valueOrDefault(e.showLine,t.showLines)}e.controllers.line=e.DatasetController.extend({datasetElementType:r.Line,dataElementType:r.Point,update:function(e){var a,n,r,s=this,o=s.getMeta(),d=o.dataset,u=o.data||[],l=s.chart.options,_=l.elements.line,c=s.getScaleForId(o.yAxisID),m=s.getDataset(),h=t(m,l);for(h&&(r=d.custom||{},void 0!==m.tension&&void 0===m.lineTension&&(m.lineTension=m.tension),d._scale=c,d._datasetIndex=s.index,d._children=u,d._model={spanGaps:m.spanGaps?m.spanGaps:l.spanGaps,tension:r.tension?r.tension:i.valueOrDefault(m.lineTension,_.tension),backgroundColor:r.backgroundColor?r.backgroundColor:m.backgroundColor||_.backgroundColor,borderWidth:r.borderWidth?r.borderWidth:m.borderWidth||_.borderWidth,borderColor:r.borderColor?r.borderColor:m.borderColor||_.borderColor,borderCapStyle:r.borderCapStyle?r.borderCapStyle:m.borderCapStyle||_.borderCapStyle,borderDash:r.borderDash?r.borderDash:m.borderDash||_.borderDash,borderDashOffset:r.borderDashOffset?r.borderDashOffset:m.borderDashOffset||_.borderDashOffset,borderJoinStyle:r.borderJoinStyle?r.borderJoinStyle:m.borderJoinStyle||_.borderJoinStyle,fill:r.fill?r.fill:void 0!==m.fill?m.fill:_.fill,steppedLine:r.steppedLine?r.steppedLine:i.valueOrDefault(m.steppedLine,_.stepped),cubicInterpolationMode:r.cubicInterpolationMode?r.cubicInterpolationMode:i.valueOrDefault(m.cubicInterpolationMode,_.cubicInterpolationMode)},d.pivot()),a=0,n=u.length;a<n;++a)s.updateElement(u[a],a,e);for(h&&0!==d._model.tension&&s.updateBezierControlPoints(),a=0,n=u.length;a<n;++a)u[a].pivot()},getPointBackgroundColor:function(e,t){var a=this.chart.options.elements.point.backgroundColor,n=this.getDataset(),r=e.custom||{};return r.backgroundColor?a=r.backgroundColor:n.pointBackgroundColor?a=i.valueAtIndexOrDefault(n.pointBackgroundColor,t,a):n.backgroundColor&&(a=n.backgroundColor),a},getPointBorderColor:function(e,t){var a=this.chart.options.elements.point.borderColor,n=this.getDataset(),r=e.custom||{};return r.borderColor?a=r.borderColor:n.pointBorderColor?a=i.valueAtIndexOrDefault(n.pointBorderColor,t,a):n.borderColor&&(a=n.borderColor),a},getPointBorderWidth:function(e,t){var a=this.chart.options.elements.point.borderWidth,n=this.getDataset(),r=e.custom||{};return isNaN(r.borderWidth)?!isNaN(n.pointBorderWidth)||i.isArray(n.pointBorderWidth)?a=i.valueAtIndexOrDefault(n.pointBorderWidth,t,a):isNaN(n.borderWidth)||(a=n.borderWidth):a=r.borderWidth,a},getPointRotation:function(e,t){var a=this.chart.options.elements.point.rotation,n=this.getDataset(),r=e.custom||{};return isNaN(r.rotation)?isNaN(n.pointRotation)&&!i.isArray(n.pointRotation)||(a=i.valueAtIndexOrDefault(n.pointRotation,t,a)):a=r.rotation,a},updateElement:function(e,t,a){var n,r,s=this,o=s.getMeta(),d=e.custom||{},u=s.getDataset(),l=s.index,_=u.data[t],c=s.getScaleForId(o.yAxisID),m=s.getScaleForId(o.xAxisID),h=s.chart.options.elements.point;void 0!==u.radius&&void 0===u.pointRadius&&(u.pointRadius=u.radius),void 0!==u.hitRadius&&void 0===u.pointHitRadius&&(u.pointHitRadius=u.hitRadius),n=m.getPixelForValue("object"===typeof _?_:NaN,t,l),r=a?c.getBasePixel():s.calculatePointY(_,t,l),e._xScale=m,e._yScale=c,e._datasetIndex=l,e._index=t,e._model={x:n,y:r,skip:d.skip||isNaN(n)||isNaN(r),radius:d.radius||i.valueAtIndexOrDefault(u.pointRadius,t,h.radius),pointStyle:d.pointStyle||i.valueAtIndexOrDefault(u.pointStyle,t,h.pointStyle),rotation:s.getPointRotation(e,t),backgroundColor:s.getPointBackgroundColor(e,t),borderColor:s.getPointBorderColor(e,t),borderWidth:s.getPointBorderWidth(e,t),tension:o.dataset._model?o.dataset._model.tension:0,steppedLine:!!o.dataset._model&&o.dataset._model.steppedLine,hitRadius:d.hitRadius||i.valueAtIndexOrDefault(u.pointHitRadius,t,h.hitRadius)}},calculatePointY:function(e,t,a){var n,r,i,s=this,o=s.chart,d=s.getMeta(),u=s.getScaleForId(d.yAxisID),l=0,_=0;if(u.options.stacked){for(n=0;n<a;n++)if(r=o.data.datasets[n],i=o.getDatasetMeta(n),"line"===i.type&&i.yAxisID===u.id&&o.isDatasetVisible(n)){var c=Number(u.getRightValue(r.data[t]));c<0?_+=c||0:l+=c||0}var m=Number(u.getRightValue(e));return m<0?u.getPixelForValue(_+m):u.getPixelForValue(l+m)}return u.getPixelForValue(e)},updateBezierControlPoints:function(){var e,t,a,n,r,s=this,o=s.getMeta(),d=s.chart.chartArea,u=o.data||[];function l(e,t,a){return Math.max(Math.min(e,a),t)}if(o.dataset._model.spanGaps&&(u=u.filter((function(e){return!e._model.skip}))),"monotone"===o.dataset._model.cubicInterpolationMode)i.splineCurveMonotone(u);else for(e=0,t=u.length;e<t;++e)a=u[e],n=a._model,r=i.splineCurve(i.previousItem(u,e)._model,n,i.nextItem(u,e)._model,o.dataset._model.tension),n.controlPointPreviousX=r.previous.x,n.controlPointPreviousY=r.previous.y,n.controlPointNextX=r.next.x,n.controlPointNextY=r.next.y;if(s.chart.options.elements.line.capBezierPoints)for(e=0,t=u.length;e<t;++e)n=u[e]._model,n.controlPointPreviousX=l(n.controlPointPreviousX,d.left,d.right),n.controlPointPreviousY=l(n.controlPointPreviousY,d.top,d.bottom),n.controlPointNextX=l(n.controlPointNextX,d.left,d.right),n.controlPointNextY=l(n.controlPointNextY,d.top,d.bottom)},draw:function(){var e,a=this,n=a.chart,r=a.getMeta(),s=r.data||[],o=n.chartArea,d=s.length,u=0;for(t(a.getDataset(),n.options)&&(e=(r.dataset._model.borderWidth||0)/2,i.canvas.clipArea(n.ctx,{left:o.left,right:o.right,top:o.top-e,bottom:o.bottom+e}),r.dataset.draw(),i.canvas.unclipArea(n.ctx));u<d;++u)s[u].draw(o)},setHoverStyle:function(e){var t=this.chart.data.datasets[e._datasetIndex],a=e._index,n=e.custom||{},r=e._model;e.$previousStyle={backgroundColor:r.backgroundColor,borderColor:r.borderColor,borderWidth:r.borderWidth,radius:r.radius},r.backgroundColor=n.hoverBackgroundColor||i.valueAtIndexOrDefault(t.pointHoverBackgroundColor,a,i.getHoverColor(r.backgroundColor)),r.borderColor=n.hoverBorderColor||i.valueAtIndexOrDefault(t.pointHoverBorderColor,a,i.getHoverColor(r.borderColor)),r.borderWidth=n.hoverBorderWidth||i.valueAtIndexOrDefault(t.pointHoverBorderWidth,a,r.borderWidth),r.radius=n.hoverRadius||i.valueAtIndexOrDefault(t.pointHoverRadius,a,this.chart.options.elements.point.hoverRadius)}})}},"1b45":function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ".split("_"),weekdays:"Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt".split("_"),weekdaysShort:"Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib".split("_"),weekdaysMin:"Ħa_Tn_Tl_Er_Ħa_Ġi_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[Għada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-bieraħ fil-]LT",lastWeek:"dddd [li għadda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f’ %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"siegħa",hh:"%d siegħat",d:"ġurnata",dd:"%d ġranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}});return t}))},"1cfd":function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},a=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},n={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},r=function(e){return function(t,r,i,s){var o=a(t),d=n[e][a(t)];return 2===o&&(d=d[r?0:1]),d.replace(/%d/i,t)}},i=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"],s=e.defineLocale("ar-ly",{months:i,monthsShort:i,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,a){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:r("s"),ss:r("s"),m:r("m"),mm:r("m"),h:r("h"),hh:r("h"),d:r("d"),dd:r("d"),M:r("M"),MM:r("M"),y:r("y"),yy:r("y")},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}});return s}))},"1e0e":function(e,t){e.exports={acquireContext:function(e){return e&&e.canvas&&(e=e.canvas),e&&e.getContext("2d")||null}}},"1fc1":function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
function t(e,t){var a=e.split("_");return t%10===1&&t%100!==11?a[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?a[1]:a[2]}function a(e,a,n){var r={ss:a?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:a?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:a?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"};return"m"===n?a?"хвіліна":"хвіліну":"h"===n?a?"гадзіна":"гадзіну":e+" "+t(r[n],+e)}var n=e.defineLocale("be",{months:{format:"студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня".split("_"),standalone:"студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань".split("_")},monthsShort:"студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж".split("_"),weekdays:{format:"нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу".split("_"),standalone:"нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота".split("_"),isFormat:/\[ ?[Ууў] ?(?:мінулую|наступную)? ?\] ?dddd/},weekdaysShort:"нд_пн_ат_ср_чц_пт_сб".split("_"),weekdaysMin:"нд_пн_ат_ср_чц_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., HH:mm",LLLL:"dddd, D MMMM YYYY г., HH:mm"},calendar:{sameDay:"[Сёння ў] LT",nextDay:"[Заўтра ў] LT",lastDay:"[Учора ў] LT",nextWeek:function(){return"[У] dddd [ў] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[У мінулую] dddd [ў] LT";case 1:case 2:case 4:return"[У мінулы] dddd [ў] LT"}},sameElse:"L"},relativeTime:{future:"праз %s",past:"%s таму",s:"некалькі секунд",m:a,mm:a,h:a,hh:a,d:"дзень",dd:a,M:"месяц",MM:a,y:"год",yy:a},meridiemParse:/ночы|раніцы|дня|вечара/,isPM:function(e){return/^(дня|вечара)$/.test(e)},meridiem:function(e,t,a){return e<4?"ночы":e<12?"раніцы":e<17?"дня":"вечара"},dayOfMonthOrdinalParse:/\d{1,2}-(і|ы|га)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e%10!==2&&e%10!==3||e%100===12||e%100===13?e+"-ы":e+"-і";case"D":return e+"-га";default:return e}},week:{dow:1,doy:7}});return n}))},"201b":function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("ka",{months:"იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი".split("_"),monthsShort:"იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ".split("_"),weekdays:{standalone:"კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი".split("_"),format:"კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს".split("_"),isFormat:/(წინა|შემდეგ)/},weekdaysShort:"კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ".split("_"),weekdaysMin:"კვ_ორ_სა_ოთ_ხუ_პა_შა".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[დღეს] LT[-ზე]",nextDay:"[ხვალ] LT[-ზე]",lastDay:"[გუშინ] LT[-ზე]",nextWeek:"[შემდეგ] dddd LT[-ზე]",lastWeek:"[წინა] dddd LT-ზე",sameElse:"L"},relativeTime:{future:function(e){return e.replace(/(წამ|წუთ|საათ|წელ|დღ|თვ)(ი|ე)/,(function(e,t,a){return"ი"===a?t+"ში":t+a+"ში"}))},past:function(e){return/(წამი|წუთი|საათი|დღე|თვე)/.test(e)?e.replace(/(ი|ე)$/,"ის წინ"):/წელი/.test(e)?e.replace(/წელი$/,"წლის წინ"):e},s:"რამდენიმე წამი",ss:"%d წამი",m:"წუთი",mm:"%d წუთი",h:"საათი",hh:"%d საათი",d:"დღე",dd:"%d დღე",M:"თვე",MM:"%d თვე",y:"წელი",yy:"%d წელი"},dayOfMonthOrdinalParse:/0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,ordinal:function(e){return 0===e?e:1===e?e+"-ლი":e<20||e<=100&&e%20===0||e%100===0?"მე-"+e:e+"-ე"},week:{dow:1,doy:7}});return t}))},"22f8":function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("ko",{months:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),monthsShort:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),weekdays:"일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),weekdaysShort:"일_월_화_수_목_금_토".split("_"),weekdaysMin:"일_월_화_수_목_금_토".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY년 MMMM D일",LLL:"YYYY년 MMMM D일 A h:mm",LLLL:"YYYY년 MMMM D일 dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY년 MMMM D일",lll:"YYYY년 MMMM D일 A h:mm",llll:"YYYY년 MMMM D일 dddd A h:mm"},calendar:{sameDay:"오늘 LT",nextDay:"내일 LT",nextWeek:"dddd LT",lastDay:"어제 LT",lastWeek:"지난주 dddd LT",sameElse:"L"},relativeTime:{future:"%s 후",past:"%s 전",s:"몇 초",ss:"%d초",m:"1분",mm:"%d분",h:"한 시간",hh:"%d시간",d:"하루",dd:"%d일",M:"한 달",MM:"%d달",y:"일 년",yy:"%d년"},dayOfMonthOrdinalParse:/\d{1,2}(일|월|주)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"일";case"M":return e+"월";case"w":case"W":return e+"주";default:return e}},meridiemParse:/오전|오후/,isPM:function(e){return"오후"===e},meridiem:function(e,t,a){return e<12?"오전":"오후"}});return t}))},"230e":function(e,t,a){var n=a("d3f4"),r=a("7726").document,i=n(r)&&n(r.createElement);e.exports=function(e){return i?r.createElement(e):{}}},2350:function(e,t){function a(e,t){var a=e[1]||"",r=e[3];if(!r)return a;if(t&&"function"===typeof btoa){var i=n(r),s=r.sources.map((function(e){return"/*# sourceURL="+r.sourceRoot+e+" */"}));return[a].concat(s).concat([i]).join("\n")}return[a].join("\n")}function n(e){var t=btoa(unescape(encodeURIComponent(JSON.stringify(e)))),a="sourceMappingURL=data:application/json;charset=utf-8;base64,"+t;return"/*# "+a+" */"}e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=a(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n})).join("")},t.i=function(e,a){"string"===typeof e&&(e=[[null,e,""]]);for(var n={},r=0;r<this.length;r++){var i=this[r][0];"number"===typeof i&&(n[i]=!0)}for(r=0;r<e.length;r++){var s=e[r];"number"===typeof s[0]&&n[s[0]]||(a&&!s[2]?s[2]=a:a&&(s[2]="("+s[2]+") and ("+a+")"),t.push(s))}},t}},2421:function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},a={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},n=["کانونی دووەم","شوبات","ئازار","نیسان","ئایار","حوزەیران","تەمموز","ئاب","ئەیلوول","تشرینی یەكەم","تشرینی دووەم","كانونی یەکەم"],r=e.defineLocale("ku",{months:n,monthsShort:n,weekdays:"یهكشهممه_دووشهممه_سێشهممه_چوارشهممه_پێنجشهممه_ههینی_شهممه".split("_"),weekdaysShort:"یهكشهم_دووشهم_سێشهم_چوارشهم_پێنجشهم_ههینی_شهممه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ه_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/ئێواره|بهیانی/,isPM:function(e){return/ئێواره/.test(e)},meridiem:function(e,t,a){return e<12?"بهیانی":"ئێواره"},calendar:{sameDay:"[ئهمرۆ كاتژمێر] LT",nextDay:"[بهیانی كاتژمێر] LT",nextWeek:"dddd [كاتژمێر] LT",lastDay:"[دوێنێ كاتژمێر] LT",lastWeek:"dddd [كاتژمێر] LT",sameElse:"L"},relativeTime:{future:"له %s",past:"%s",s:"چهند چركهیهك",ss:"چركه %d",m:"یهك خولهك",mm:"%d خولهك",h:"یهك كاتژمێر",hh:"%d كاتژمێر",d:"یهك ڕۆژ",dd:"%d ڕۆژ",M:"یهك مانگ",MM:"%d مانگ",y:"یهك ساڵ",yy:"%d ساڵ"},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return a[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}});return r}))},2554:function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
function t(e,t,a){var n=e+" ";switch(a){case"ss":return n+=1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi",n;case"m":return t?"jedna minuta":"jedne minute";case"mm":return n+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta",n;case"h":return t?"jedan sat":"jednog sata";case"hh":return n+=1===e?"sat":2===e||3===e||4===e?"sata":"sati",n;case"dd":return n+=1===e?"dan":"dana",n;case"MM":return n+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci",n;case"yy":return n+=1===e?"godina":2===e||3===e||4===e?"godine":"godina",n}}var a=e.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:t,m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});return a}))},"26f9":function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t={ss:"sekundė_sekundžių_sekundes",m:"minutė_minutės_minutę",mm:"minutės_minučių_minutes",h:"valanda_valandos_valandą",hh:"valandos_valandų_valandas",d:"diena_dienos_dieną",dd:"dienos_dienų_dienas",M:"mėnuo_mėnesio_mėnesį",MM:"mėnesiai_mėnesių_mėnesius",y:"metai_metų_metus",yy:"metai_metų_metus"};function a(e,t,a,n){return t?"kelios sekundės":n?"kelių sekundžių":"kelias sekundes"}function n(e,t,a,n){return t?i(a)[0]:n?i(a)[1]:i(a)[2]}function r(e){return e%10===0||e>10&&e<20}function i(e){return t[e].split("_")}function s(e,t,a,s){var o=e+" ";return 1===e?o+n(e,t,a[0],s):t?o+(r(e)?i(a)[1]:i(a)[0]):s?o+i(a)[1]:o+(r(e)?i(a)[1]:i(a)[2])}var o=e.defineLocale("lt",{months:{format:"sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_Šeš".split("_"),weekdaysMin:"S_P_A_T_K_Pn_Š".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[Šiandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Praėjusį] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prieš %s",s:a,ss:s,m:n,mm:s,h:n,hh:s,d:n,dd:s,M:n,MM:s,y:n,yy:s},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(e){return e+"-oji"},week:{dow:1,doy:4}});return o}))},2804:function(e,t,a){"use strict";var n=a("4438");e.exports=function(e){var t=["push","pop","shift","splice","unshift"];function a(e,a){e._chartjs?e._chartjs.listeners.push(a):(Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[a]}}),t.forEach((function(t){var a="onData"+t.charAt(0).toUpperCase()+t.slice(1),r=e[t];Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:function(){var t=Array.prototype.slice.call(arguments),i=r.apply(this,t);return n.each(e._chartjs.listeners,(function(e){"function"===typeof e[a]&&e[a].apply(e,t)})),i}})})))}function r(e,a){var n=e._chartjs;if(n){var r=n.listeners,i=r.indexOf(a);-1!==i&&r.splice(i,1),r.length>0||(t.forEach((function(t){delete e[t]})),delete e._chartjs)}}e.DatasetController=function(e,t){this.initialize(e,t)},n.extend(e.DatasetController.prototype,{datasetElementType:null,dataElementType:null,initialize:function(e,t){var a=this;a.chart=e,a.index=t,a.linkScales(),a.addElements()},updateIndex:function(e){this.index=e},linkScales:function(){var e=this,t=e.getMeta(),a=e.getDataset();null!==t.xAxisID&&t.xAxisID in e.chart.scales||(t.xAxisID=a.xAxisID||e.chart.options.scales.xAxes[0].id),null!==t.yAxisID&&t.yAxisID in e.chart.scales||(t.yAxisID=a.yAxisID||e.chart.options.scales.yAxes[0].id)},getDataset:function(){return this.chart.data.datasets[this.index]},getMeta:function(){return this.chart.getDatasetMeta(this.index)},getScaleForId:function(e){return this.chart.scales[e]},reset:function(){this.update(!0)},destroy:function(){this._data&&r(this._data,this)},createMetaDataset:function(){var e=this,t=e.datasetElementType;return t&&new t({_chart:e.chart,_datasetIndex:e.index})},createMetaData:function(e){var t=this,a=t.dataElementType;return a&&new a({_chart:t.chart,_datasetIndex:t.index,_index:e})},addElements:function(){var e,t,a=this,n=a.getMeta(),r=a.getDataset().data||[],i=n.data;for(e=0,t=r.length;e<t;++e)i[e]=i[e]||a.createMetaData(e);n.dataset=n.dataset||a.createMetaDataset()},addElementAndReset:function(e){var t=this.createMetaData(e);this.getMeta().data.splice(e,0,t),this.updateElement(t,e,!0)},buildOrUpdateElements:function(){var e=this,t=e.getDataset(),n=t.data||(t.data=[]);e._data!==n&&(e._data&&r(e._data,e),a(n,e),e._data=n),e.resyncElements()},update:n.noop,transition:function(e){for(var t=this.getMeta(),a=t.data||[],n=a.length,r=0;r<n;++r)a[r].transition(e);t.dataset&&t.dataset.transition(e)},draw:function(){var e=this.getMeta(),t=e.data||[],a=t.length,n=0;for(e.dataset&&e.dataset.draw();n<a;++n)t[n].draw()},removeHoverStyle:function(e){n.merge(e._model,e.$previousStyle||{}),delete e.$previousStyle},setHoverStyle:function(e){var t=this.chart.data.datasets[e._datasetIndex],a=e._index,r=e.custom||{},i=n.valueAtIndexOrDefault,s=n.getHoverColor,o=e._model;e.$previousStyle={backgroundColor:o.backgroundColor,borderColor:o.borderColor,borderWidth:o.borderWidth},o.backgroundColor=r.hoverBackgroundColor?r.hoverBackgroundColor:i(t.hoverBackgroundColor,a,s(o.backgroundColor)),o.borderColor=r.hoverBorderColor?r.hoverBorderColor:i(t.hoverBorderColor,a,s(o.borderColor)),o.borderWidth=r.hoverBorderWidth?r.hoverBorderWidth:i(t.hoverBorderWidth,a,o.borderWidth)},resyncElements:function(){var e=this,t=e.getMeta(),a=e.getDataset().data,n=t.data.length,r=a.length;r<n?t.data.splice(r,n-r):r>n&&e.insertElements(n,r-n)},insertElements:function(e,t){for(var a=0;a<t;++a)this.addElementAndReset(e+a)},onDataPush:function(){this.insertElements(this.getDataset().data.length-1,arguments.length)},onDataPop:function(){this.getMeta().data.pop()},onDataShift:function(){this.getMeta().data.shift()},onDataSplice:function(e,t){this.getMeta().data.splice(e,t),this.insertElements(e,arguments.length-2)},onDataUnshift:function(){this.insertElements(0,arguments.length)}}),e.DatasetController.extend=n.inherits}},2921:function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("vi",{months:"tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),monthsShort:"Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12".split("_"),monthsParseExact:!0,weekdays:"chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(e){return/^ch$/i.test(e)},meridiem:function(e,t,a){return e<12?a?"sa":"SA":a?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [năm] YYYY",LLL:"D MMMM [năm] YYYY HH:mm",LLLL:"dddd, D MMMM [năm] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[Hôm nay lúc] LT",nextDay:"[Ngày mai lúc] LT",nextWeek:"dddd [tuần tới lúc] LT",lastDay:"[Hôm qua lúc] LT",lastWeek:"dddd [tuần trước lúc] LT",sameElse:"L"},relativeTime:{future:"%s tới",past:"%s trước",s:"vài giây",ss:"%d giây",m:"một phút",mm:"%d phút",h:"một giờ",hh:"%d giờ",d:"một ngày",dd:"%d ngày",w:"một tuần",ww:"%d tuần",M:"một tháng",MM:"%d tháng",y:"một năm",yy:"%d năm"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}});return t}))},"293c":function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,a,n){var r=t.words[n];return 1===n.length?a?r[0]:r[1]:e+" "+t.correctGrammaticalCase(e,r)}},a=e.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){var e=["[prošle] [nedjelje] [u] LT","[prošlog] [ponedjeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srijede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"];return e[this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mjesec",MM:t.translate,y:"godinu",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});return a}))},"2aba":function(e,t,a){var n=a("7726"),r=a("32e9"),i=a("69a8"),s=a("ca5a")("src"),o=a("fa5b"),d="toString",u=(""+o).split(d);a("8378").inspectSource=function(e){return o.call(e)},(e.exports=function(e,t,a,o){var d="function"==typeof a;d&&(i(a,"name")||r(a,"name",t)),e[t]!==a&&(d&&(i(a,s)||r(a,s,e[t]?""+e[t]:u.join(String(t)))),e===n?e[t]=a:o?e[t]?e[t]=a:r(e,t,a):(delete e[t],r(e,t,a)))})(Function.prototype,d,(function(){return"function"==typeof this&&this[s]||o.call(this)}))},"2aeb":function(e,t,a){var n=a("cb7c"),r=a("1495"),i=a("e11e"),s=a("613b")("IE_PROTO"),o=function(){},d="prototype",u=function(){var e,t=a("230e")("iframe"),n=i.length,r="<",s=">";t.style.display="none",a("fab2").appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(r+"script"+s+"document.F=Object"+r+"/script"+s),e.close(),u=e.F;while(n--)delete u[d][i[n]];return u()};e.exports=Object.create||function(e,t){var a;return null!==e?(o[d]=n(e),a=new o,o[d]=null,a[s]=e):a=u(),void 0===t?a:r(a,t)}},"2b61":function(e,t,a){"use strict";var n=a("eb0c"),r=a("4438");function i(e,t,a,r){var i,s,o,d,u,l,_,c,m,h=Object.keys(a);for(i=0,s=h.length;i<s;++i)if(o=h[i],l=a[o],t.hasOwnProperty(o)||(t[o]=l),d=t[o],d!==l&&"_"!==o[0]){if(e.hasOwnProperty(o)||(e[o]=d),u=e[o],_=typeof l,_===typeof u)if("string"===_){if(c=n(u),c.valid&&(m=n(l),m.valid)){t[o]=m.mix(c,r).rgbString();continue}}else if("number"===_&&isFinite(u)&&isFinite(l)){t[o]=u+(l-u)*r;continue}t[o]=l}}var s=function(e){r.extend(this,e),this.initialize.apply(this,arguments)};r.extend(s.prototype,{initialize:function(){this.hidden=!1},pivot:function(){var e=this;return e._view||(e._view=r.clone(e._model)),e._start={},e},transition:function(e){var t=this,a=t._model,n=t._start,r=t._view;return a&&1!==e?(r||(r=t._view={}),n||(n=t._start={}),i(n,r,a,e),t):(t._view=a,t._start=null,t)},tooltipPosition:function(){return{x:this._model.x,y:this._model.y}},hasValue:function(){return r.isNumber(this._model.x)&&r.isNumber(this._model.y)}}),s.extend=r.inherits,e.exports=s},"2bfb":function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(e){return/^nm$/i.test(e)},meridiem:function(e,t,a){return e<12?a?"vm":"VM":a?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[Môre om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}});return t}))},"2d00":function(e,t){e.exports=!1},"2d95":function(e,t){var a={}.toString;e.exports=function(e){return a.call(e).slice(8,-1)}},"2e8c":function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("uz",{months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба".split("_"),weekdaysShort:"Якш_Душ_Сеш_Чор_Пай_Жум_Шан".split("_"),weekdaysMin:"Як_Ду_Се_Чо_Па_Жу_Ша".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Бугун соат] LT [да]",nextDay:"[Эртага] LT [да]",nextWeek:"dddd [куни соат] LT [да]",lastDay:"[Кеча соат] LT [да]",lastWeek:"[Утган] dddd [куни соат] LT [да]",sameElse:"L"},relativeTime:{future:"Якин %s ичида",past:"Бир неча %s олдин",s:"фурсат",ss:"%d фурсат",m:"бир дакика",mm:"%d дакика",h:"бир соат",hh:"%d соат",d:"бир кун",dd:"%d кун",M:"бир ой",MM:"%d ой",y:"бир йил",yy:"%d йил"},week:{dow:1,doy:7}});return t}))},"32e9":function(e,t,a){var n=a("86cc"),r=a("4630");e.exports=a("9e1e")?function(e,t,a){return n.f(e,t,r(1,a))}:function(e,t,a){return e[t]=a,e}},3837:function(e,t,a){"use strict";e.exports=function(e){e.Bar=function(t,a){return a.type="bar",new e(t,a)}}},3886:function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,a=1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+a}});return t}))},3976:function(e,t,a){"use strict";var n=a("0832"),r=a("2b61"),i=a("4438"),s=n.global.defaultColor;function o(e){var t=this._view;return!!t&&Math.abs(e-t.x)<t.radius+t.hitRadius}function d(e){var t=this._view;return!!t&&Math.abs(e-t.y)<t.radius+t.hitRadius}n._set("global",{elements:{point:{radius:3,pointStyle:"circle",backgroundColor:s,borderColor:s,borderWidth:1,hitRadius:1,hoverRadius:4,hoverBorderWidth:1}}}),e.exports=r.extend({inRange:function(e,t){var a=this._view;return!!a&&Math.pow(e-a.x,2)+Math.pow(t-a.y,2)<Math.pow(a.hitRadius+a.radius,2)},inLabelRange:o,inXRange:o,inYRange:d,getCenterPoint:function(){var e=this._view;return{x:e.x,y:e.y}},getArea:function(){return Math.PI*Math.pow(this._view.radius,2)},tooltipPosition:function(){var e=this._view;return{x:e.x,y:e.y,padding:e.radius+e.borderWidth}},draw:function(e){var t=this._view,a=this._model,r=this._chart.ctx,o=t.pointStyle,d=t.rotation,u=t.radius,l=t.x,_=t.y,c=1.01;t.skip||(void 0===e||a.x>=e.left&&e.right*c>=a.x&&a.y>=e.top&&e.bottom*c>=a.y)&&(r.strokeStyle=t.borderColor||s,r.lineWidth=i.valueOrDefault(t.borderWidth,n.global.elements.point.borderWidth),r.fillStyle=t.backgroundColor||s,i.canvas.drawPoint(r,o,u,l,_,d))}})},"39a6":function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,a=1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+a},week:{dow:1,doy:4}});return t}))},"39bd":function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},a={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};function n(e,t,a,n){var r="";if(t)switch(a){case"s":r="काही सेकंद";break;case"ss":r="%d सेकंद";break;case"m":r="एक मिनिट";break;case"mm":r="%d मिनिटे";break;case"h":r="एक तास";break;case"hh":r="%d तास";break;case"d":r="एक दिवस";break;case"dd":r="%d दिवस";break;case"M":r="एक महिना";break;case"MM":r="%d महिने";break;case"y":r="एक वर्ष";break;case"yy":r="%d वर्षे";break}else switch(a){case"s":r="काही सेकंदां";break;case"ss":r="%d सेकंदां";break;case"m":r="एका मिनिटा";break;case"mm":r="%d मिनिटां";break;case"h":r="एका तासा";break;case"hh":r="%d तासां";break;case"d":r="एका दिवसा";break;case"dd":r="%d दिवसां";break;case"M":r="एका महिन्या";break;case"MM":r="%d महिन्यां";break;case"y":r="एका वर्षा";break;case"yy":r="%d वर्षां";break}return r.replace(/%d/i,e)}var r=e.defineLocale("mr",{months:"जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),monthsShort:"जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm वाजता",LTS:"A h:mm:ss वाजता",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm वाजता",LLLL:"dddd, D MMMM YYYY, A h:mm वाजता"},calendar:{sameDay:"[आज] LT",nextDay:"[उद्या] LT",nextWeek:"dddd, LT",lastDay:"[काल] LT",lastWeek:"[मागील] dddd, LT",sameElse:"L"},relativeTime:{future:"%sमध्ये",past:"%sपूर्वी",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return a[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/पहाटे|सकाळी|दुपारी|सायंकाळी|रात्री/,meridiemHour:function(e,t){return 12===e&&(e=0),"पहाटे"===t||"सकाळी"===t?e:"दुपारी"===t||"सायंकाळी"===t||"रात्री"===t?e>=12?e:e+12:void 0},meridiem:function(e,t,a){return e>=0&&e<6?"पहाटे":e<12?"सकाळी":e<17?"दुपारी":e<20?"सायंकाळी":"रात्री"},week:{dow:0,doy:6}});return r}))},"3a39":function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},a={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"},n=e.defineLocale("ne",{months:"जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर".split("_"),monthsShort:"जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.".split("_"),monthsParseExact:!0,weekdays:"आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार".split("_"),weekdaysShort:"आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.".split("_"),weekdaysMin:"आ._सो._मं._बु._बि._शु._श.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"Aको h:mm बजे",LTS:"Aको h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, Aको h:mm बजे",LLLL:"dddd, D MMMM YYYY, Aको h:mm बजे"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return a[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/राति|बिहान|दिउँसो|साँझ/,meridiemHour:function(e,t){return 12===e&&(e=0),"राति"===t?e<4?e:e+12:"बिहान"===t?e:"दिउँसो"===t?e>=10?e:e+12:"साँझ"===t?e+12:void 0},meridiem:function(e,t,a){return e<3?"राति":e<12?"बिहान":e<16?"दिउँसो":e<20?"साँझ":"राति"},calendar:{sameDay:"[आज] LT",nextDay:"[भोलि] LT",nextWeek:"[आउँदो] dddd[,] LT",lastDay:"[हिजो] LT",lastWeek:"[गएको] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%sमा",past:"%s अगाडि",s:"केही क्षण",ss:"%d सेकेण्ड",m:"एक मिनेट",mm:"%d मिनेट",h:"एक घण्टा",hh:"%d घण्टा",d:"एक दिन",dd:"%d दिन",M:"एक महिना",MM:"%d महिना",y:"एक बर्ष",yy:"%d बर्ष"},week:{dow:0,doy:6}});return n}))},"3a6c":function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("zh-mo",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"D/M/YYYY",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,a){var n=100*e+t;return n<600?"凌晨":n<900?"早上":n<1130?"上午":n<1230?"中午":n<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}});return t}))},"3b1b":function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t={0:"-ум",1:"-ум",2:"-юм",3:"-юм",4:"-ум",5:"-ум",6:"-ум",7:"-ум",8:"-ум",9:"-ум",10:"-ум",12:"-ум",13:"-ум",20:"-ум",30:"-юм",40:"-ум",50:"-ум",60:"-ум",70:"-ум",80:"-ум",90:"-ум",100:"-ум"},a=e.defineLocale("tg",{months:{format:"январи_феврали_марти_апрели_майи_июни_июли_августи_сентябри_октябри_ноябри_декабри".split("_"),standalone:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_")},monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе".split("_"),weekdaysShort:"яшб_дшб_сшб_чшб_пшб_ҷум_шнб".split("_"),weekdaysMin:"яш_дш_сш_чш_пш_ҷм_шб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Имрӯз соати] LT",nextDay:"[Фардо соати] LT",lastDay:"[Дирӯз соати] LT",nextWeek:"dddd[и] [ҳафтаи оянда соати] LT",lastWeek:"dddd[и] [ҳафтаи гузашта соати] LT",sameElse:"L"},relativeTime:{future:"баъди %s",past:"%s пеш",s:"якчанд сония",m:"як дақиқа",mm:"%d дақиқа",h:"як соат",hh:"%d соат",d:"як рӯз",dd:"%d рӯз",M:"як моҳ",MM:"%d моҳ",y:"як сол",yy:"%d сол"},meridiemParse:/шаб|субҳ|рӯз|бегоҳ/,meridiemHour:function(e,t){return 12===e&&(e=0),"шаб"===t?e<4?e:e+12:"субҳ"===t?e:"рӯз"===t?e>=11?e:e+12:"бегоҳ"===t?e+12:void 0},meridiem:function(e,t,a){return e<4?"шаб":e<11?"субҳ":e<16?"рӯз":e<19?"бегоҳ":"шаб"},dayOfMonthOrdinalParse:/\d{1,2}-(ум|юм)/,ordinal:function(e){var a=e%10,n=e>=100?100:null;return e+(t[e]||t[a]||t[n])},week:{dow:1,doy:7}});return a}))},"3c0d":function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t="leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),a="led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_"),n=[/^led/i,/^úno/i,/^bře/i,/^dub/i,/^kvě/i,/^(čvn|červen$|června)/i,/^(čvc|červenec|července)/i,/^srp/i,/^zář/i,/^říj/i,/^lis/i,/^pro/i],r=/^(leden|únor|březen|duben|květen|červenec|července|červen|června|srpen|září|říjen|listopad|prosinec|led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i;function i(e){return e>1&&e<5&&1!==~~(e/10)}function s(e,t,a,n){var r=e+" ";switch(a){case"s":return t||n?"pár sekund":"pár sekundami";case"ss":return t||n?r+(i(e)?"sekundy":"sekund"):r+"sekundami";case"m":return t?"minuta":n?"minutu":"minutou";case"mm":return t||n?r+(i(e)?"minuty":"minut"):r+"minutami";case"h":return t?"hodina":n?"hodinu":"hodinou";case"hh":return t||n?r+(i(e)?"hodiny":"hodin"):r+"hodinami";case"d":return t||n?"den":"dnem";case"dd":return t||n?r+(i(e)?"dny":"dní"):r+"dny";case"M":return t||n?"měsíc":"měsícem";case"MM":return t||n?r+(i(e)?"měsíce":"měsíců"):r+"měsíci";case"y":return t||n?"rok":"rokem";case"yy":return t||n?r+(i(e)?"roky":"let"):r+"lety"}}var o=e.defineLocale("cs",{months:t,monthsShort:a,monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(leden|ledna|února|únor|březen|března|duben|dubna|květen|května|červenec|července|červen|června|srpen|srpna|září|říjen|října|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,weekdays:"neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"),weekdaysShort:"ne_po_út_st_čt_pá_so".split("_"),weekdaysMin:"ne_po_út_st_čt_pá_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[zítra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v neděli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve středu v] LT";case 4:return"[ve čtvrtek v] LT";case 5:return"[v pátek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[včera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou neděli v] LT";case 1:case 2:return"[minulé] dddd [v] LT";case 3:return"[minulou středu v] LT";case 4:case 5:return"[minulý] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"před %s",s:s,ss:s,m:s,mm:s,h:s,hh:s,d:s,dd:s,M:s,MM:s,y:s,yy:s},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return o}))},"3de5":function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t={1:"௧",2:"௨",3:"௩",4:"௪",5:"௫",6:"௬",7:"௭",8:"௮",9:"௯",0:"௦"},a={"௧":"1","௨":"2","௩":"3","௪":"4","௫":"5","௬":"6","௭":"7","௮":"8","௯":"9","௦":"0"},n=e.defineLocale("ta",{months:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),monthsShort:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),weekdays:"ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை".split("_"),weekdaysShort:"ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி".split("_"),weekdaysMin:"ஞா_தி_செ_பு_வி_வெ_ச".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[இன்று] LT",nextDay:"[நாளை] LT",nextWeek:"dddd, LT",lastDay:"[நேற்று] LT",lastWeek:"[கடந்த வாரம்] dddd, LT",sameElse:"L"},relativeTime:{future:"%s இல்",past:"%s முன்",s:"ஒரு சில விநாடிகள்",ss:"%d விநாடிகள்",m:"ஒரு நிமிடம்",mm:"%d நிமிடங்கள்",h:"ஒரு மணி நேரம்",hh:"%d மணி நேரம்",d:"ஒரு நாள்",dd:"%d நாட்கள்",M:"ஒரு மாதம்",MM:"%d மாதங்கள்",y:"ஒரு வருடம்",yy:"%d ஆண்டுகள்"},dayOfMonthOrdinalParse:/\d{1,2}வது/,ordinal:function(e){return e+"வது"},preparse:function(e){return e.replace(/[௧௨௩௪௫௬௭௮௯௦]/g,(function(e){return a[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,meridiem:function(e,t,a){return e<2?" யாமம்":e<6?" வைகறை":e<10?" காலை":e<14?" நண்பகல்":e<18?" எற்பாடு":e<22?" மாலை":" யாமம்"},meridiemHour:function(e,t){return 12===e&&(e=0),"யாமம்"===t?e<2?e:e+12:"வைகறை"===t||"காலை"===t||"நண்பகல்"===t&&e>=10?e:e+12},week:{dow:0,doy:6}});return n}))},"3e92":function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t={1:"೧",2:"೨",3:"೩",4:"೪",5:"೫",6:"೬",7:"೭",8:"೮",9:"೯",0:"೦"},a={"೧":"1","೨":"2","೩":"3","೪":"4","೫":"5","೬":"6","೭":"7","೮":"8","೯":"9","೦":"0"},n=e.defineLocale("kn",{months:"ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್".split("_"),monthsShort:"ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ".split("_"),monthsParseExact:!0,weekdays:"ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ".split("_"),weekdaysShort:"ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ".split("_"),weekdaysMin:"ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[ಇಂದು] LT",nextDay:"[ನಾಳೆ] LT",nextWeek:"dddd, LT",lastDay:"[ನಿನ್ನೆ] LT",lastWeek:"[ಕೊನೆಯ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ನಂತರ",past:"%s ಹಿಂದೆ",s:"ಕೆಲವು ಕ್ಷಣಗಳು",ss:"%d ಸೆಕೆಂಡುಗಳು",m:"ಒಂದು ನಿಮಿಷ",mm:"%d ನಿಮಿಷ",h:"ಒಂದು ಗಂಟೆ",hh:"%d ಗಂಟೆ",d:"ಒಂದು ದಿನ",dd:"%d ದಿನ",M:"ಒಂದು ತಿಂಗಳು",MM:"%d ತಿಂಗಳು",y:"ಒಂದು ವರ್ಷ",yy:"%d ವರ್ಷ"},preparse:function(e){return e.replace(/[೧೨೩೪೫೬೭೮೯೦]/g,(function(e){return a[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,meridiemHour:function(e,t){return 12===e&&(e=0),"ರಾತ್ರಿ"===t?e<4?e:e+12:"ಬೆಳಿಗ್ಗೆ"===t?e:"ಮಧ್ಯಾಹ್ನ"===t?e>=10?e:e+12:"ಸಂಜೆ"===t?e+12:void 0},meridiem:function(e,t,a){return e<4?"ರಾತ್ರಿ":e<10?"ಬೆಳಿಗ್ಗೆ":e<17?"ಮಧ್ಯಾಹ್ನ":e<20?"ಸಂಜೆ":"ರಾತ್ರಿ"},dayOfMonthOrdinalParse:/\d{1,2}(ನೇ)/,ordinal:function(e){return e+"ನೇ"},week:{dow:0,doy:6}});return n}))},"41ec":function(e,t,a){"use strict";e.exports=function(e){e.Bubble=function(t,a){return a.type="bubble",new e(t,a)}}},"423e":function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("ar-kw",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:0,doy:12}});return t}))},"440c":function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
function t(e,t,a,n){var r={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return t?r[a][0]:r[a][1]}function a(e){var t=e.substr(0,e.indexOf(" "));return r(t)?"a "+e:"an "+e}function n(e){var t=e.substr(0,e.indexOf(" "));return r(t)?"viru "+e:"virun "+e}function r(e){if(e=parseInt(e,10),isNaN(e))return!1;if(e<0)return!0;if(e<10)return 4<=e&&e<=7;if(e<100){var t=e%10,a=e/10;return r(0===t?a:t)}if(e<1e4){while(e>=10)e/=10;return r(e)}return e/=1e3,r(e)}var i=e.defineLocale("lb",{months:"Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._Mé._Dë._Më._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mé_Dë_Më_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[Gëschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:a,past:n,s:"e puer Sekonnen",ss:"%d Sekonnen",m:t,mm:"%d Minutten",h:t,hh:"%d Stonnen",d:t,dd:"%d Deeg",M:t,MM:"%d Méint",y:t,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return i}))},4421:function(e,t,a){"use strict";var n=a("c1df");n="function"===typeof n?n:window.moment;var r=a("0832"),i=a("4438"),s=a("71db"),o=a("b631"),d=Number.MIN_SAFE_INTEGER||-9007199254740991,u=Number.MAX_SAFE_INTEGER||9007199254740991,l={millisecond:{common:!0,size:1,steps:[1,2,5,10,20,50,100,250,500]},second:{common:!0,size:1e3,steps:[1,2,5,10,15,30]},minute:{common:!0,size:6e4,steps:[1,2,5,10,15,30]},hour:{common:!0,size:36e5,steps:[1,2,3,6,12]},day:{common:!0,size:864e5,steps:[1,2,5]},week:{common:!1,size:6048e5,steps:[1,2,3,4]},month:{common:!0,size:2628e6,steps:[1,2,3]},quarter:{common:!1,size:7884e6,steps:[1,2,3,4]},year:{common:!0,size:3154e7}},_=Object.keys(l);function c(e,t){return e-t}function m(e){var t,a,n,r={},i=[];for(t=0,a=e.length;t<a;++t)n=e[t],r[n]||(r[n]=!0,i.push(n));return i}function h(e,t,a,n){if("linear"===n||!e.length)return[{time:t,pos:0},{time:a,pos:1}];var r,i,s,o,d,u=[],l=[t];for(r=0,i=e.length;r<i;++r)o=e[r],o>t&&o<a&&l.push(o);for(l.push(a),r=0,i=l.length;r<i;++r)d=l[r+1],s=l[r-1],o=l[r],void 0!==s&&void 0!==d&&Math.round((d+s)/2)===o||u.push({time:o,pos:r/(i-1)});return u}function f(e,t,a){var n,r,i,s=0,o=e.length-1;while(s>=0&&s<=o){if(n=s+o>>1,r=e[n-1]||null,i=e[n],!r)return{lo:null,hi:i};if(i[t]<a)s=n+1;else{if(!(r[t]>a))return{lo:r,hi:i};o=n-1}}return{lo:i,hi:null}}function M(e,t,a,n){var r=f(e,t,a),i=r.lo?r.hi?r.lo:e[e.length-2]:e[0],s=r.lo?r.hi?r.hi:e[e.length-1]:e[1],o=s[t]-i[t],d=o?(a-i[t])/o:0,u=(s[n]-i[n])*d;return i[n]+u}function p(e,t){var a=t.parser,r=t.parser||t.format;return"function"===typeof a?a(e):"string"===typeof e&&"string"===typeof r?n(e,r):(e instanceof n||(e=n(e)),e.isValid()?e:"function"===typeof r?r(e):e)}function y(e,t){if(i.isNullOrUndef(e))return null;var a=t.options.time,n=p(t.getRightValue(e),a);return n.isValid()?(a.round&&n.startOf(a.round),n.valueOf()):null}function g(e,t,a,n){var r,i,s,o=t-e,d=l[a],u=d.size,_=d.steps;if(!_)return Math.ceil(o/(n*u));for(r=0,i=_.length;r<i;++r)if(s=_[r],Math.ceil(o/(u*s))<=n)break;return s}function L(e,t,a,n){var r,i,s,o=_.length;for(r=_.indexOf(e);r<o-1;++r)if(i=l[_[r]],s=i.steps?i.steps[i.steps.length-1]:u,i.common&&Math.ceil((a-t)/(s*i.size))<=n)return _[r];return _[o-1]}function v(e,t,a,r){var i,s,o=n.duration(n(r).diff(n(a))),d=_.length;for(i=d-1;i>=_.indexOf(t);i--)if(s=_[i],l[s].common&&o.as(s)>=e.length)return s;return _[t?_.indexOf(t):0]}function Y(e){for(var t=_.indexOf(e)+1,a=_.length;t<a;++t)if(l[_[t]].common)return _[t]}function b(e,t,a,r){var s,o=r.time,d=o.unit||L(o.minUnit,e,t,a),u=Y(d),_=i.valueOrDefault(o.stepSize,o.unitStepSize),c="week"===d&&o.isoWeekday,m=r.ticks.major.enabled,h=l[d],f=n(e),M=n(t),p=[];for(_||(_=g(e,t,d,a)),c&&(f=f.isoWeekday(c),M=M.isoWeekday(c)),f=f.startOf(c?"day":d),M=M.startOf(c?"day":d),M<t&&M.add(1,d),s=n(f),m&&u&&!c&&!o.round&&(s.startOf(u),s.add(~~((f-s)/(h.size*_))*_,d));s<M;s.add(_,d))p.push(+s);return p.push(+s),p}function k(e,t,a,n,r){var i,s,o=0,d=0;return r.offset&&t.length&&(r.time.min||(i=t.length>1?t[1]:n,s=t[0],o=(M(e,"time",i,"pos")-M(e,"time",s,"pos"))/2),r.time.max||(i=t[t.length-1],s=t.length>1?t[t.length-2]:a,d=(M(e,"time",i,"pos")-M(e,"time",s,"pos"))/2)),{left:o,right:d}}function D(e,t){var a,r,i,s,o=[];for(a=0,r=e.length;a<r;++a)i=e[a],s=!!t&&i===+n(i).startOf(t),o.push({value:i,major:s});return o}function w(e,t){var a,n,r,i=e.length;for(a=0;a<i;a++){if(n=p(e[a],t),0!==n.millisecond())return"MMM D, YYYY h:mm:ss.SSS a";0===n.second()&&0===n.minute()&&0===n.hour()||(r=!0)}return r?"MMM D, YYYY h:mm:ss a":"MMM D, YYYY"}e.exports=function(){var e={position:"bottom",distribution:"linear",bounds:"data",time:{parser:!1,format:!1,unit:!1,round:!1,displayFormat:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm a",hour:"hA",day:"MMM D",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"}},ticks:{autoSkip:!1,source:"auto",major:{enabled:!1}}},t=s.extend({initialize:function(){if(!n)throw new Error("Chart.js - Moment.js could not be found! You must include it before Chart.js to use the time scale. Download at https://momentjs.com");this.mergeTicksOptions(),s.prototype.initialize.call(this)},update:function(){var e=this,t=e.options;return t.time&&t.time.format&&console.warn("options.time.format is deprecated and replaced by options.time.parser."),s.prototype.update.apply(e,arguments)},getRightValue:function(e){return e&&void 0!==e.t&&(e=e.t),s.prototype.getRightValue.call(this,e)},determineDataLimits:function(){var e,t,a,r,s,o,l=this,_=l.chart,h=l.options.time,f=h.unit||"day",M=u,p=d,g=[],L=[],v=[];for(e=0,a=_.data.labels.length;e<a;++e)v.push(y(_.data.labels[e],l));for(e=0,a=(_.data.datasets||[]).length;e<a;++e)if(_.isDatasetVisible(e))if(s=_.data.datasets[e].data,i.isObject(s[0]))for(L[e]=[],t=0,r=s.length;t<r;++t)o=y(s[t],l),g.push(o),L[e][t]=o;else g.push.apply(g,v),L[e]=v.slice(0);else L[e]=[];v.length&&(v=m(v).sort(c),M=Math.min(M,v[0]),p=Math.max(p,v[v.length-1])),g.length&&(g=m(g).sort(c),M=Math.min(M,g[0]),p=Math.max(p,g[g.length-1])),M=y(h.min,l)||M,p=y(h.max,l)||p,M=M===u?+n().startOf(f):M,p=p===d?+n().endOf(f)+1:p,l.min=Math.min(M,p),l.max=Math.max(M+1,p),l._horizontal=l.isHorizontal(),l._table=[],l._timestamps={data:g,datasets:L,labels:v}},buildTicks:function(){var e,t,a,n=this,r=n.min,i=n.max,s=n.options,o=s.time,d=[],u=[];switch(s.ticks.source){case"data":d=n._timestamps.data;break;case"labels":d=n._timestamps.labels;break;case"auto":default:d=b(r,i,n.getLabelCapacity(r),s)}for("ticks"===s.bounds&&d.length&&(r=d[0],i=d[d.length-1]),r=y(o.min,n)||r,i=y(o.max,n)||i,e=0,t=d.length;e<t;++e)a=d[e],a>=r&&a<=i&&u.push(a);return n.min=r,n.max=i,n._unit=o.unit||v(u,o.minUnit,n.min,n.max),n._majorUnit=Y(n._unit),n._table=h(n._timestamps.data,r,i,s.distribution),n._offsets=k(n._table,u,r,i,s),n._labelFormat=w(n._timestamps.data,o),D(u,n._majorUnit)},getLabelForIndex:function(e,t){var a=this,n=a.chart.data,r=a.options.time,s=n.labels&&e<n.labels.length?n.labels[e]:"",o=n.datasets[t].data[e];return i.isObject(o)&&(s=a.getRightValue(o)),r.tooltipFormat?p(s,r).format(r.tooltipFormat):"string"===typeof s?s:p(s,r).format(a._labelFormat)},tickFormatFunction:function(e,t,a,n){var r=this,s=r.options,o=e.valueOf(),d=s.time.displayFormats,u=d[r._unit],l=r._majorUnit,_=d[l],c=e.clone().startOf(l).valueOf(),m=s.ticks.major,h=m.enabled&&l&&_&&o===c,f=e.format(n||(h?_:u)),M=h?m:s.ticks.minor,p=i.valueOrDefault(M.callback,M.userCallback);return p?p(f,t,a):f},convertTicksToLabels:function(e){var t,a,r=[];for(t=0,a=e.length;t<a;++t)r.push(this.tickFormatFunction(n(e[t].value),t,e));return r},getPixelForOffset:function(e){var t=this,a=t._horizontal?t.width:t.height,n=t._horizontal?t.left:t.top,r=M(t._table,"time",e,"pos");return n+a*(t._offsets.left+r)/(t._offsets.left+1+t._offsets.right)},getPixelForValue:function(e,t,a){var n=this,r=null;if(void 0!==t&&void 0!==a&&(r=n._timestamps.datasets[a][t]),null===r&&(r=y(e,n)),null!==r)return n.getPixelForOffset(r)},getPixelForTick:function(e){var t=this.getTicks();return e>=0&&e<t.length?this.getPixelForOffset(t[e].value):null},getValueForPixel:function(e){var t=this,a=t._horizontal?t.width:t.height,r=t._horizontal?t.left:t.top,i=(a?(e-r)/a:0)*(t._offsets.left+1+t._offsets.left)-t._offsets.right,s=M(t._table,"pos",i,"time");return n(s)},getLabelWidth:function(e){var t=this,a=t.options.ticks,n=t.ctx.measureText(e).width,s=i.toRadians(a.maxRotation),o=Math.cos(s),d=Math.sin(s),u=i.valueOrDefault(a.fontSize,r.global.defaultFontSize);return n*o+u*d},getLabelCapacity:function(e){var t=this,a=t.options.time.displayFormats.millisecond,r=t.tickFormatFunction(n(e),0,[],a),i=t.getLabelWidth(r),s=t.isHorizontal()?t.width:t.height,o=Math.floor(s/i);return o>0?o:1}});o.registerScaleType("time",t,e)}},4438:function(e,t,a){"use strict";e.exports=a("4c2d"),e.exports.easing=a("bb43"),e.exports.canvas=a("49fa"),e.exports.options=a("02cd")},4588:function(e,t){var a=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:a)(e)}},4630:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},4678:function(e,t,a){var n={"./af":"2bfb","./af.js":"2bfb","./ar":"8e73","./ar-dz":"a356","./ar-dz.js":"a356","./ar-kw":"423e","./ar-kw.js":"423e","./ar-ly":"1cfd","./ar-ly.js":"1cfd","./ar-ma":"0a84","./ar-ma.js":"0a84","./ar-sa":"8230","./ar-sa.js":"8230","./ar-tn":"6d83","./ar-tn.js":"6d83","./ar.js":"8e73","./az":"485c","./az.js":"485c","./be":"1fc1","./be.js":"1fc1","./bg":"84aa","./bg.js":"84aa","./bm":"a7fa","./bm.js":"a7fa","./bn":"9043","./bn-bd":"9686","./bn-bd.js":"9686","./bn.js":"9043","./bo":"d26a","./bo.js":"d26a","./br":"6887","./br.js":"6887","./bs":"2554","./bs.js":"2554","./ca":"d716","./ca.js":"d716","./cs":"3c0d","./cs.js":"3c0d","./cv":"03ec","./cv.js":"03ec","./cy":"9797","./cy.js":"9797","./da":"0f14","./da.js":"0f14","./de":"b469","./de-at":"b3eb","./de-at.js":"b3eb","./de-ch":"bb71","./de-ch.js":"bb71","./de.js":"b469","./dv":"598a","./dv.js":"598a","./el":"8d47","./el.js":"8d47","./en-au":"0e6b","./en-au.js":"0e6b","./en-ca":"3886","./en-ca.js":"3886","./en-gb":"39a6","./en-gb.js":"39a6","./en-ie":"e1d3","./en-ie.js":"e1d3","./en-il":"7333","./en-il.js":"7333","./en-in":"ec2e","./en-in.js":"ec2e","./en-nz":"6f50","./en-nz.js":"6f50","./en-sg":"b7e9","./en-sg.js":"b7e9","./eo":"65db","./eo.js":"65db","./es":"898b","./es-do":"0a3c","./es-do.js":"0a3c","./es-mx":"b5b7","./es-mx.js":"b5b7","./es-us":"55c9","./es-us.js":"55c9","./es.js":"898b","./et":"ec18","./et.js":"ec18","./eu":"0ff2","./eu.js":"0ff2","./fa":"8df4","./fa.js":"8df4","./fi":"81e9","./fi.js":"81e9","./fil":"d69a","./fil.js":"d69a","./fo":"0721","./fo.js":"0721","./fr":"9f26","./fr-ca":"d9f8","./fr-ca.js":"d9f8","./fr-ch":"0e49","./fr-ch.js":"0e49","./fr.js":"9f26","./fy":"7118","./fy.js":"7118","./ga":"5120","./ga.js":"5120","./gd":"f6b4","./gd.js":"f6b4","./gl":"8840","./gl.js":"8840","./gom-deva":"aaf2","./gom-deva.js":"aaf2","./gom-latn":"0caa","./gom-latn.js":"0caa","./gu":"e0c5","./gu.js":"e0c5","./he":"c7aa","./he.js":"c7aa","./hi":"dc4d","./hi.js":"dc4d","./hr":"4ba9","./hr.js":"4ba9","./hu":"5b14","./hu.js":"5b14","./hy-am":"d6b6","./hy-am.js":"d6b6","./id":"5038","./id.js":"5038","./is":"0558","./is.js":"0558","./it":"6e98","./it-ch":"6f12","./it-ch.js":"6f12","./it.js":"6e98","./ja":"079e","./ja.js":"079e","./jv":"b540","./jv.js":"b540","./ka":"201b","./ka.js":"201b","./kk":"6d79","./kk.js":"6d79","./km":"e81d","./km.js":"e81d","./kn":"3e92","./kn.js":"3e92","./ko":"22f8","./ko.js":"22f8","./ku":"2421","./ku.js":"2421","./ky":"9609","./ky.js":"9609","./lb":"440c","./lb.js":"440c","./lo":"b29d","./lo.js":"b29d","./lt":"26f9","./lt.js":"26f9","./lv":"b97c","./lv.js":"b97c","./me":"293c","./me.js":"293c","./mi":"688b","./mi.js":"688b","./mk":"6909","./mk.js":"6909","./ml":"02fb","./ml.js":"02fb","./mn":"958b","./mn.js":"958b","./mr":"39bd","./mr.js":"39bd","./ms":"ebe4","./ms-my":"6403","./ms-my.js":"6403","./ms.js":"ebe4","./mt":"1b45","./mt.js":"1b45","./my":"8689","./my.js":"8689","./nb":"6ce3","./nb.js":"6ce3","./ne":"3a39","./ne.js":"3a39","./nl":"facd","./nl-be":"db29","./nl-be.js":"db29","./nl.js":"facd","./nn":"b84c","./nn.js":"b84c","./oc-lnc":"167b","./oc-lnc.js":"167b","./pa-in":"f3ff","./pa-in.js":"f3ff","./pl":"8d57","./pl.js":"8d57","./pt":"f260","./pt-br":"d2d4","./pt-br.js":"d2d4","./pt.js":"f260","./ro":"972c","./ro.js":"972c","./ru":"957c","./ru.js":"957c","./sd":"6784","./sd.js":"6784","./se":"ffff","./se.js":"ffff","./si":"eda5","./si.js":"eda5","./sk":"7be6","./sk.js":"7be6","./sl":"8155","./sl.js":"8155","./sq":"c8f3","./sq.js":"c8f3","./sr":"cf1e","./sr-cyrl":"13e9","./sr-cyrl.js":"13e9","./sr.js":"cf1e","./ss":"52bd","./ss.js":"52bd","./sv":"5fbd","./sv.js":"5fbd","./sw":"74dc","./sw.js":"74dc","./ta":"3de5","./ta.js":"3de5","./te":"5cbb","./te.js":"5cbb","./tet":"576c","./tet.js":"576c","./tg":"3b1b","./tg.js":"3b1b","./th":"10e8","./th.js":"10e8","./tk":"5aff","./tk.js":"5aff","./tl-ph":"0f38","./tl-ph.js":"0f38","./tlh":"cf75","./tlh.js":"cf75","./tr":"0e81","./tr.js":"0e81","./tzl":"cf51","./tzl.js":"cf51","./tzm":"c109","./tzm-latn":"b53d","./tzm-latn.js":"b53d","./tzm.js":"c109","./ug-cn":"6117","./ug-cn.js":"6117","./uk":"ada2","./uk.js":"ada2","./ur":"5294","./ur.js":"5294","./uz":"2e8c","./uz-latn":"010e","./uz-latn.js":"010e","./uz.js":"2e8c","./vi":"2921","./vi.js":"2921","./x-pseudo":"fd7e","./x-pseudo.js":"fd7e","./yo":"7f33","./yo.js":"7f33","./zh-cn":"5c3a","./zh-cn.js":"5c3a","./zh-hk":"49ab","./zh-hk.js":"49ab","./zh-mo":"3a6c","./zh-mo.js":"3a6c","./zh-tw":"90ea","./zh-tw.js":"90ea"};function r(e){var t=i(e);return a(t)}function i(e){if(!a.o(n,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n[e]}r.keys=function(){return Object.keys(n)},r.resolve=i,e.exports=r,r.id="4678"},"485c":function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-üncü",4:"-üncü",100:"-üncü",6:"-ncı",9:"-uncu",10:"-uncu",30:"-uncu",60:"-ıncı",90:"-ıncı"},a=e.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə".split("_"),weekdaysShort:"Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən".split("_"),weekdaysMin:"Bz_BE_ÇA_Çə_CA_Cü_Şə".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[gələn həftə] dddd [saat] LT",lastDay:"[dünən] LT",lastWeek:"[keçən həftə] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s əvvəl",s:"bir neçə saniyə",ss:"%d saniyə",m:"bir dəqiqə",mm:"%d dəqiqə",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gecə|səhər|gündüz|axşam/,isPM:function(e){return/^(gündüz|axşam)$/.test(e)},meridiem:function(e,t,a){return e<4?"gecə":e<12?"səhər":e<17?"gündüz":"axşam"},dayOfMonthOrdinalParse:/\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,ordinal:function(e){if(0===e)return e+"-ıncı";var a=e%10,n=e%100-a,r=e>=100?100:null;return e+(t[a]||t[n]||t[r])},week:{dow:1,doy:7}});return a}))},"499e":function(e,t,a){"use strict";function n(e,t){for(var a=[],n={},r=0;r<t.length;r++){var i=t[r],s=i[0],o=i[1],d=i[2],u=i[3],l={id:e+":"+r,css:o,media:d,sourceMap:u};n[s]?n[s].parts.push(l):a.push(n[s]={id:s,parts:[l]})}return a}a.r(t),a.d(t,"default",(function(){return h}));var r="undefined"!==typeof document;if("undefined"!==typeof DEBUG&&DEBUG&&!r)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var i={},s=r&&(document.head||document.getElementsByTagName("head")[0]),o=null,d=0,u=!1,l=function(){},_=null,c="data-vue-ssr-id",m="undefined"!==typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function h(e,t,a,r){u=a,_=r||{};var s=n(e,t);return f(s),function(t){for(var a=[],r=0;r<s.length;r++){var o=s[r],d=i[o.id];d.refs--,a.push(d)}t?(s=n(e,t),f(s)):s=[];for(r=0;r<a.length;r++){d=a[r];if(0===d.refs){for(var u=0;u<d.parts.length;u++)d.parts[u]();delete i[d.id]}}}}function f(e){for(var t=0;t<e.length;t++){var a=e[t],n=i[a.id];if(n){n.refs++;for(var r=0;r<n.parts.length;r++)n.parts[r](a.parts[r]);for(;r<a.parts.length;r++)n.parts.push(p(a.parts[r]));n.parts.length>a.parts.length&&(n.parts.length=a.parts.length)}else{var s=[];for(r=0;r<a.parts.length;r++)s.push(p(a.parts[r]));i[a.id]={id:a.id,refs:1,parts:s}}}}function M(){var e=document.createElement("style");return e.type="text/css",s.appendChild(e),e}function p(e){var t,a,n=document.querySelector("style["+c+'~="'+e.id+'"]');if(n){if(u)return l;n.parentNode.removeChild(n)}if(m){var r=d++;n=o||(o=M()),t=g.bind(null,n,r,!1),a=g.bind(null,n,r,!0)}else n=M(),t=L.bind(null,n),a=function(){n.parentNode.removeChild(n)};return t(e),function(n){if(n){if(n.css===e.css&&n.media===e.media&&n.sourceMap===e.sourceMap)return;t(e=n)}else a()}}var y=function(){var e=[];return function(t,a){return e[t]=a,e.filter(Boolean).join("\n")}}();function g(e,t,a,n){var r=a?"":n.css;if(e.styleSheet)e.styleSheet.cssText=y(t,r);else{var i=document.createTextNode(r),s=e.childNodes;s[t]&&e.removeChild(s[t]),s.length?e.insertBefore(i,s[t]):e.appendChild(i)}}function L(e,t){var a=t.css,n=t.media,r=t.sourceMap;if(n&&e.setAttribute("media",n),_.ssrId&&e.setAttribute(c,t.id),r&&(a+="\n/*# sourceURL="+r.sources[0]+" */",a+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */"),e.styleSheet)e.styleSheet.cssText=a;else{while(e.firstChild)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(a))}}},"49ab":function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("zh-hk",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,a){var n=100*e+t;return n<600?"凌晨":n<900?"早上":n<1200?"上午":1200===n?"中午":n<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}});return t}))},"49fa":function(e,t,a){"use strict";var n=a("4c2d");t=e.exports={clear:function(e){e.ctx.clearRect(0,0,e.width,e.height)},roundedRect:function(e,t,a,n,r,i){if(i){var s=1e-7,o=Math.min(i,r/2-s,n/2-s);e.moveTo(t+o,a),e.lineTo(t+n-o,a),e.arcTo(t+n,a,t+n,a+o,o),e.lineTo(t+n,a+r-o),e.arcTo(t+n,a+r,t+n-o,a+r,o),e.lineTo(t+o,a+r),e.arcTo(t,a+r,t,a+r-o,o),e.lineTo(t,a+o),e.arcTo(t,a,t+o,a,o),e.closePath(),e.moveTo(t,a)}else e.rect(t,a,n,r)},drawPoint:function(e,t,a,n,r,i){var s,o,d,u,l,_;if(i=i||0,t&&"object"===typeof t&&(s=t.toString(),"[object HTMLImageElement]"===s||"[object HTMLCanvasElement]"===s))e.drawImage(t,n-t.width/2,r-t.height/2,t.width,t.height);else if(!(isNaN(a)||a<=0)){switch(e.save(),e.translate(n,r),e.rotate(i*Math.PI/180),e.beginPath(),t){default:e.arc(0,0,a,0,2*Math.PI),e.closePath();break;case"triangle":o=3*a/Math.sqrt(3),l=o*Math.sqrt(3)/2,e.moveTo(-o/2,l/3),e.lineTo(o/2,l/3),e.lineTo(0,-2*l/3),e.closePath();break;case"rect":_=1/Math.SQRT2*a,e.rect(-_,-_,2*_,2*_);break;case"rectRounded":var c=a/Math.SQRT2,m=-c,h=-c,f=Math.SQRT2*a;this.roundedRect(e,m,h,f,f,.425*a);break;case"rectRot":_=1/Math.SQRT2*a,e.moveTo(-_,0),e.lineTo(0,_),e.lineTo(_,0),e.lineTo(0,-_),e.closePath();break;case"cross":e.moveTo(0,a),e.lineTo(0,-a),e.moveTo(-a,0),e.lineTo(a,0);break;case"crossRot":d=Math.cos(Math.PI/4)*a,u=Math.sin(Math.PI/4)*a,e.moveTo(-d,-u),e.lineTo(d,u),e.moveTo(-d,u),e.lineTo(d,-u);break;case"star":e.moveTo(0,a),e.lineTo(0,-a),e.moveTo(-a,0),e.lineTo(a,0),d=Math.cos(Math.PI/4)*a,u=Math.sin(Math.PI/4)*a,e.moveTo(-d,-u),e.lineTo(d,u),e.moveTo(-d,u),e.lineTo(d,-u);break;case"line":e.moveTo(-a,0),e.lineTo(a,0);break;case"dash":e.moveTo(0,0),e.lineTo(a,0);break}e.fill(),e.stroke(),e.restore()}},clipArea:function(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()},unclipArea:function(e){e.restore()},lineTo:function(e,t,a,n){if(a.steppedLine)return"after"===a.steppedLine&&!n||"after"!==a.steppedLine&&n?e.lineTo(t.x,a.y):e.lineTo(a.x,t.y),void e.lineTo(a.x,a.y);a.tension?e.bezierCurveTo(n?t.controlPointPreviousX:t.controlPointNextX,n?t.controlPointPreviousY:t.controlPointNextY,n?a.controlPointNextX:a.controlPointPreviousX,n?a.controlPointNextY:a.controlPointPreviousY,a.x,a.y):e.lineTo(a.x,a.y)}};n.clear=t.clear,n.drawRoundedRectangle=function(e){e.beginPath(),t.roundedRect.apply(t,arguments)}},"4b7f":function(e,t,a){"use strict";e.exports=function(e){e.Scatter=function(t,a){return a.type="scatter",new e(t,a)}}},"4ba9":function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
function t(e,t,a){var n=e+" ";switch(a){case"ss":return n+=1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi",n;case"m":return t?"jedna minuta":"jedne minute";case"mm":return n+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta",n;case"h":return t?"jedan sat":"jednog sata";case"hh":return n+=1===e?"sat":2===e||3===e||4===e?"sata":"sati",n;case"dd":return n+=1===e?"dan":"dana",n;case"MM":return n+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci",n;case"yy":return n+=1===e?"godina":2===e||3===e||4===e?"godine":"godina",n}}var a=e.defineLocale("hr",{months:{format:"siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM YYYY",LLL:"Do MMMM YYYY H:mm",LLLL:"dddd, Do MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:return"[prošlu] [nedjelju] [u] LT";case 3:return"[prošlu] [srijedu] [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:t,m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});return a}))},"4bb3":function(e,t,a){"use strict";e.exports=function(e){e.Doughnut=function(t,a){return a.type="doughnut",new e(t,a)}}},"4c2d":function(e,t,a){"use strict";var n={noop:function(){},uid:function(){var e=0;return function(){return e++}}(),isNullOrUndef:function(e){return null===e||"undefined"===typeof e},isArray:Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},isObject:function(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)},valueOrDefault:function(e,t){return"undefined"===typeof e?t:e},valueAtIndexOrDefault:function(e,t,a){return n.valueOrDefault(n.isArray(e)?e[t]:e,a)},callback:function(e,t,a){if(e&&"function"===typeof e.call)return e.apply(a,t)},each:function(e,t,a,r){var i,s,o;if(n.isArray(e))if(s=e.length,r)for(i=s-1;i>=0;i--)t.call(a,e[i],i);else for(i=0;i<s;i++)t.call(a,e[i],i);else if(n.isObject(e))for(o=Object.keys(e),s=o.length,i=0;i<s;i++)t.call(a,e[o[i]],o[i])},arrayEquals:function(e,t){var a,r,i,s;if(!e||!t||e.length!==t.length)return!1;for(a=0,r=e.length;a<r;++a)if(i=e[a],s=t[a],i instanceof Array&&s instanceof Array){if(!n.arrayEquals(i,s))return!1}else if(i!==s)return!1;return!0},clone:function(e){if(n.isArray(e))return e.map(n.clone);if(n.isObject(e)){for(var t={},a=Object.keys(e),r=a.length,i=0;i<r;++i)t[a[i]]=n.clone(e[a[i]]);return t}return e},_merger:function(e,t,a,r){var i=t[e],s=a[e];n.isObject(i)&&n.isObject(s)?n.merge(i,s,r):t[e]=n.clone(s)},_mergerIf:function(e,t,a){var r=t[e],i=a[e];n.isObject(r)&&n.isObject(i)?n.mergeIf(r,i):t.hasOwnProperty(e)||(t[e]=n.clone(i))},merge:function(e,t,a){var r,i,s,o,d,u=n.isArray(t)?t:[t],l=u.length;if(!n.isObject(e))return e;for(a=a||{},r=a.merger||n._merger,i=0;i<l;++i)if(t=u[i],n.isObject(t))for(s=Object.keys(t),d=0,o=s.length;d<o;++d)r(s[d],e,t,a);return e},mergeIf:function(e,t){return n.merge(e,t,{merger:n._mergerIf})},extend:function(e){for(var t=function(t,a){e[a]=t},a=1,r=arguments.length;a<r;++a)n.each(arguments[a],t);return e},inherits:function(e){var t=this,a=e&&e.hasOwnProperty("constructor")?e.constructor:function(){return t.apply(this,arguments)},r=function(){this.constructor=a};return r.prototype=t.prototype,a.prototype=new r,a.extend=n.inherits,e&&n.extend(a.prototype,e),a.__super__=t.prototype,a}};e.exports=n,n.callCallback=n.callback,n.indexOf=function(e,t,a){return Array.prototype.indexOf.call(e,t,a)},n.getValueOrDefault=n.valueOrDefault,n.getValueAtIndexOrDefault=n.valueAtIndexOrDefault},"4f4d":function(e,t,a){"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},5038:function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"siang"===t?e>=11?e:e+12:"sore"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,a){return e<11?"pagi":e<15?"siang":e<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:0,doy:6}});return t}))},5120:function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=["Eanáir","Feabhra","Márta","Aibreán","Bealtaine","Meitheamh","Iúil","Lúnasa","Meán Fómhair","Deireadh Fómhair","Samhain","Nollaig"],a=["Ean","Feabh","Márt","Aib","Beal","Meith","Iúil","Lún","M.F.","D.F.","Samh","Noll"],n=["Dé Domhnaigh","Dé Luain","Dé Máirt","Dé Céadaoin","Déardaoin","Dé hAoine","Dé Sathairn"],r=["Domh","Luan","Máirt","Céad","Déar","Aoine","Sath"],i=["Do","Lu","Má","Cé","Dé","A","Sa"],s=e.defineLocale("ga",{months:t,monthsShort:a,monthsParseExact:!0,weekdays:n,weekdaysShort:r,weekdaysMin:i,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Inniu ag] LT",nextDay:"[Amárach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inné ag] LT",lastWeek:"dddd [seo caite] [ag] LT",sameElse:"L"},relativeTime:{future:"i %s",past:"%s ó shin",s:"cúpla soicind",ss:"%d soicind",m:"nóiméad",mm:"%d nóiméad",h:"uair an chloig",hh:"%d uair an chloig",d:"lá",dd:"%d lá",M:"mí",MM:"%d míonna",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){var t=1===e?"d":e%10===2?"na":"mh";return e+t},week:{dow:1,doy:4}});return s}))},5294:function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=["جنوری","فروری","مارچ","اپریل","مئی","جون","جولائی","اگست","ستمبر","اکتوبر","نومبر","دسمبر"],a=["اتوار","پیر","منگل","بدھ","جمعرات","جمعہ","ہفتہ"],n=e.defineLocale("ur",{months:t,monthsShort:t,weekdays:a,weekdaysShort:a,weekdaysMin:a,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(e){return"شام"===e},meridiem:function(e,t,a){return e<12?"صبح":"شام"},calendar:{sameDay:"[آج بوقت] LT",nextDay:"[کل بوقت] LT",nextWeek:"dddd [بوقت] LT",lastDay:"[گذشتہ روز بوقت] LT",lastWeek:"[گذشتہ] dddd [بوقت] LT",sameElse:"L"},relativeTime:{future:"%s بعد",past:"%s قبل",s:"چند سیکنڈ",ss:"%d سیکنڈ",m:"ایک منٹ",mm:"%d منٹ",h:"ایک گھنٹہ",hh:"%d گھنٹے",d:"ایک دن",dd:"%d دن",M:"ایک ماہ",MM:"%d ماہ",y:"ایک سال",yy:"%d سال"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:4}});return n}))},"52a7":function(e,t){t.f={}.propertyIsEnumerable},"52a9":function(e,t,a){"use strict";var n=a("0832"),r=a("2b61"),i=a("4438"),s=n.global;n._set("global",{elements:{line:{tension:.4,backgroundColor:s.defaultColor,borderWidth:3,borderColor:s.defaultColor,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0}}}),e.exports=r.extend({draw:function(){var e,t,a,n,r=this,o=r._view,d=r._chart.ctx,u=o.spanGaps,l=r._children.slice(),_=s.elements.line,c=-1;for(r._loop&&l.length&&l.push(l[0]),d.save(),d.lineCap=o.borderCapStyle||_.borderCapStyle,d.setLineDash&&d.setLineDash(o.borderDash||_.borderDash),d.lineDashOffset=o.borderDashOffset||_.borderDashOffset,d.lineJoin=o.borderJoinStyle||_.borderJoinStyle,d.lineWidth=o.borderWidth||_.borderWidth,d.strokeStyle=o.borderColor||s.defaultColor,d.beginPath(),c=-1,e=0;e<l.length;++e)t=l[e],a=i.previousItem(l,e),n=t._view,0===e?n.skip||(d.moveTo(n.x,n.y),c=e):(a=-1===c?a:l[c],n.skip||(c!==e-1&&!u||-1===c?d.moveTo(n.x,n.y):i.canvas.lineTo(d,a._view,t._view),c=e));d.stroke(),d.restore()}})},"52bd":function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(e,t,a){return e<11?"ekuseni":e<15?"emini":e<19?"entsambama":"ebusuku"},meridiemHour:function(e,t){return 12===e&&(e=0),"ekuseni"===t?e:"emini"===t?e>=11?e:e+12:"entsambama"===t||"ebusuku"===t?0===e?0:e+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}});return t}))},5537:function(e,t,a){var n=a("8378"),r=a("7726"),i="__core-js_shared__",s=r[i]||(r[i]={});(e.exports=function(e,t){return s[e]||(s[e]=void 0!==t?t:{})})("versions",[]).push({version:n.version,mode:a("2d00")?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"55c9":function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),a="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),n=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],r=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,i=e.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,n){return e?/-MMM-/.test(n)?a[e.month()]:t[e.month()]:t},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:6}});return i}))},5603:function(e,t,a){"use strict";var n=a("0832"),r=a("4438");n._set("global",{plugins:{}}),e.exports={_plugins:[],_cacheId:0,register:function(e){var t=this._plugins;[].concat(e).forEach((function(e){-1===t.indexOf(e)&&t.push(e)})),this._cacheId++},unregister:function(e){var t=this._plugins;[].concat(e).forEach((function(e){var a=t.indexOf(e);-1!==a&&t.splice(a,1)})),this._cacheId++},clear:function(){this._plugins=[],this._cacheId++},count:function(){return this._plugins.length},getAll:function(){return this._plugins},notify:function(e,t,a){var n,r,i,s,o,d=this.descriptors(e),u=d.length;for(n=0;n<u;++n)if(r=d[n],i=r.plugin,o=i[t],"function"===typeof o&&(s=[e].concat(a||[]),s.push(r.options),!1===o.apply(i,s)))return!1;return!0},descriptors:function(e){var t=e.$plugins||(e.$plugins={});if(t.id===this._cacheId)return t.descriptors;var a=[],i=[],s=e&&e.config||{},o=s.options&&s.options.plugins||{};return this._plugins.concat(s.plugins||[]).forEach((function(e){var t=a.indexOf(e);if(-1===t){var s=e.id,d=o[s];!1!==d&&(!0===d&&(d=r.clone(n.global.plugins[s])),a.push(e),i.push({plugin:e,options:d||{}}))}})),t.descriptors=i,t.id=this._cacheId,i},_invalidate:function(e){delete e.$plugins}}},"576c":function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"segundu balun",ss:"segundu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,a=1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+a},week:{dow:1,doy:4}});return t}))},"598a":function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=["ޖެނުއަރީ","ފެބްރުއަރީ","މާރިޗު","އޭޕްރީލު","މޭ","ޖޫން","ޖުލައި","އޯގަސްޓު","ސެޕްޓެމްބަރު","އޮކްޓޯބަރު","ނޮވެމްބަރު","ޑިސެމްބަރު"],a=["އާދިއްތަ","ހޯމަ","އަންގާރަ","ބުދަ","ބުރާސްފަތި","ހުކުރު","ހޮނިހިރު"],n=e.defineLocale("dv",{months:t,monthsShort:t,weekdays:a,weekdaysShort:a,weekdaysMin:"އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/މކ|މފ/,isPM:function(e){return"މފ"===e},meridiem:function(e,t,a){return e<12?"މކ":"މފ"},calendar:{sameDay:"[މިއަދު] LT",nextDay:"[މާދަމާ] LT",nextWeek:"dddd LT",lastDay:"[އިއްޔެ] LT",lastWeek:"[ފާއިތުވި] dddd LT",sameElse:"L"},relativeTime:{future:"ތެރޭގައި %s",past:"ކުރިން %s",s:"ސިކުންތުކޮޅެއް",ss:"d% ސިކުންތު",m:"މިނިޓެއް",mm:"މިނިޓު %d",h:"ގަޑިއިރެއް",hh:"ގަޑިއިރު %d",d:"ދުވަހެއް",dd:"ދުވަސް %d",M:"މަހެއް",MM:"މަސް %d",y:"އަހަރެއް",yy:"އަހަރު %d"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:7,doy:12}});return n}))},"5aff":function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t={1:"'inji",5:"'inji",8:"'inji",70:"'inji",80:"'inji",2:"'nji",7:"'nji",20:"'nji",50:"'nji",3:"'ünji",4:"'ünji",100:"'ünji",6:"'njy",9:"'unjy",10:"'unjy",30:"'unjy",60:"'ynjy",90:"'ynjy"},a=e.defineLocale("tk",{months:"Ýanwar_Fewral_Mart_Aprel_Maý_Iýun_Iýul_Awgust_Sentýabr_Oktýabr_Noýabr_Dekabr".split("_"),monthsShort:"Ýan_Few_Mar_Apr_Maý_Iýn_Iýl_Awg_Sen_Okt_Noý_Dek".split("_"),weekdays:"Ýekşenbe_Duşenbe_Sişenbe_Çarşenbe_Penşenbe_Anna_Şenbe".split("_"),weekdaysShort:"Ýek_Duş_Siş_Çar_Pen_Ann_Şen".split("_"),weekdaysMin:"Ýk_Dş_Sş_Çr_Pn_An_Şn".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün sagat] LT",nextDay:"[ertir sagat] LT",nextWeek:"[indiki] dddd [sagat] LT",lastDay:"[düýn] LT",lastWeek:"[geçen] dddd [sagat] LT",sameElse:"L"},relativeTime:{future:"%s soň",past:"%s öň",s:"birnäçe sekunt",m:"bir minut",mm:"%d minut",h:"bir sagat",hh:"%d sagat",d:"bir gün",dd:"%d gün",M:"bir aý",MM:"%d aý",y:"bir ýyl",yy:"%d ýyl"},ordinal:function(e,a){switch(a){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'unjy";var n=e%10,r=e%100-n,i=e>=100?100:null;return e+(t[n]||t[r]||t[i])}},week:{dow:1,doy:7}});return a}))},"5b14":function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t="vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton".split(" ");function a(e,t,a,n){var r=e;switch(a){case"s":return n||t?"néhány másodperc":"néhány másodperce";case"ss":return r+(n||t)?" másodperc":" másodperce";case"m":return"egy"+(n||t?" perc":" perce");case"mm":return r+(n||t?" perc":" perce");case"h":return"egy"+(n||t?" óra":" órája");case"hh":return r+(n||t?" óra":" órája");case"d":return"egy"+(n||t?" nap":" napja");case"dd":return r+(n||t?" nap":" napja");case"M":return"egy"+(n||t?" hónap":" hónapja");case"MM":return r+(n||t?" hónap":" hónapja");case"y":return"egy"+(n||t?" év":" éve");case"yy":return r+(n||t?" év":" éve")}return""}function n(e){return(e?"":"[múlt] ")+"["+t[this.day()]+"] LT[-kor]"}var r=e.defineLocale("hu",{months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan._feb._márc._ápr._máj._jún._júl._aug._szept._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(e){return"u"===e.charAt(1).toLowerCase()},meridiem:function(e,t,a){return e<12?!0===a?"de":"DE":!0===a?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return n.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return n.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s múlva",past:"%s",s:a,ss:a,m:a,mm:a,h:a,hh:a,d:a,dd:a,M:a,MM:a,y:a,yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return r}))},"5b20":function(e,t,a){var n=a("c8f30")();n.helpers=a("4438"),a("9c35")(n),n.Animation=a("039b"),n.animationService=a("7699"),n.defaults=a("0832"),n.Element=a("2b61"),n.elements=a("bef1"),n.Interaction=a("9a5a"),n.layouts=a("7c42"),n.platform=a("88ce"),n.plugins=a("5603"),n.Scale=a("71db"),n.scaleService=a("b631"),n.Ticks=a("83cb"),n.Tooltip=a("c7cb"),a("eaba")(n),a("2804")(n),a("a5a3")(n),a("f13b")(n),a("612b")(n),a("6384")(n),a("f3ffe")(n),a("4421")(n),a("64037")(n),a("6e27")(n),a("5d08")(n),a("1b44")(n),a("e596")(n),a("681d")(n),a("df9c")(n),a("3837")(n),a("41ec")(n),a("4bb3")(n),a("ecee")(n),a("ab36")(n),a("8981")(n),a("4b7f")(n);var r=a("8d72");for(var i in r)r.hasOwnProperty(i)&&n.plugins.register(r[i]);n.platform.initialize(),e.exports=n,"undefined"!==typeof window&&(window.Chart=n),n.Legend=r.legend._element,n.Title=r.title._element,n.pluginService=n.plugins,n.PluginBase=n.Element.extend({}),n.canvasHelpers=n.helpers.canvas,n.layoutService=n.layouts},"5c3a":function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"下午"===t||"晚上"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,a){var n=100*e+t;return n<600?"凌晨":n<900?"早上":n<1130?"上午":n<1230?"中午":n<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:function(e){return e.week()!==this.week()?"[下]dddLT":"[本]dddLT"},lastDay:"[昨天]LT",lastWeek:function(e){return this.week()!==e.week()?"[上]dddLT":"[本]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|周)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"周";default:return e}},relativeTime:{future:"%s后",past:"%s前",s:"几秒",ss:"%d 秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",w:"1 周",ww:"%d 周",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},week:{dow:1,doy:4}});return t}))},"5ca1":function(e,t,a){var n=a("7726"),r=a("8378"),i=a("32e9"),s=a("2aba"),o=a("9b43"),d="prototype",u=function(e,t,a){var l,_,c,m,h=e&u.F,f=e&u.G,M=e&u.S,p=e&u.P,y=e&u.B,g=f?n:M?n[t]||(n[t]={}):(n[t]||{})[d],L=f?r:r[t]||(r[t]={}),v=L[d]||(L[d]={});for(l in f&&(a=t),a)_=!h&&g&&void 0!==g[l],c=(_?g:a)[l],m=y&&_?o(c,n):p&&"function"==typeof c?o(Function.call,c):c,g&&s(g,l,c,e&u.U),L[l]!=c&&i(L,l,m),p&&v[l]!=c&&(v[l]=c)};n.core=r,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},"5cbb":function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("te",{months:"జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జులై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్".split("_"),monthsShort:"జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జులై_ఆగ._సెప్._అక్టో._నవ._డిసె.".split("_"),monthsParseExact:!0,weekdays:"ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం".split("_"),weekdaysShort:"ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని".split("_"),weekdaysMin:"ఆ_సో_మం_బు_గు_శు_శ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[నేడు] LT",nextDay:"[రేపు] LT",nextWeek:"dddd, LT",lastDay:"[నిన్న] LT",lastWeek:"[గత] dddd, LT",sameElse:"L"},relativeTime:{future:"%s లో",past:"%s క్రితం",s:"కొన్ని క్షణాలు",ss:"%d సెకన్లు",m:"ఒక నిమిషం",mm:"%d నిమిషాలు",h:"ఒక గంట",hh:"%d గంటలు",d:"ఒక రోజు",dd:"%d రోజులు",M:"ఒక నెల",MM:"%d నెలలు",y:"ఒక సంవత్సరం",yy:"%d సంవత్సరాలు"},dayOfMonthOrdinalParse:/\d{1,2}వ/,ordinal:"%dవ",meridiemParse:/రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,meridiemHour:function(e,t){return 12===e&&(e=0),"రాత్రి"===t?e<4?e:e+12:"ఉదయం"===t?e:"మధ్యాహ్నం"===t?e>=10?e:e+12:"సాయంత్రం"===t?e+12:void 0},meridiem:function(e,t,a){return e<4?"రాత్రి":e<10?"ఉదయం":e<17?"మధ్యాహ్నం":e<20?"సాయంత్రం":"రాత్రి"},week:{dow:0,doy:6}});return t}))},"5d08":function(e,t,a){"use strict";var n=a("0832"),r=a("bef1"),i=a("4438");n._set("doughnut",{animation:{animateRotate:!0,animateScale:!1},hover:{mode:"single"},legendCallback:function(e){var t=[];t.push('<ul class="'+e.id+'-legend">');var a=e.data,n=a.datasets,r=a.labels;if(n.length)for(var i=0;i<n[0].data.length;++i)t.push('<li><span style="background-color:'+n[0].backgroundColor[i]+'"></span>'),r[i]&&t.push(r[i]),t.push("</li>");return t.push("</ul>"),t.join("")},legend:{labels:{generateLabels:function(e){var t=e.data;return t.labels.length&&t.datasets.length?t.labels.map((function(a,n){var r=e.getDatasetMeta(0),s=t.datasets[0],o=r.data[n],d=o&&o.custom||{},u=i.valueAtIndexOrDefault,l=e.options.elements.arc,_=d.backgroundColor?d.backgroundColor:u(s.backgroundColor,n,l.backgroundColor),c=d.borderColor?d.borderColor:u(s.borderColor,n,l.borderColor),m=d.borderWidth?d.borderWidth:u(s.borderWidth,n,l.borderWidth);return{text:a,fillStyle:_,strokeStyle:c,lineWidth:m,hidden:isNaN(s.data[n])||r.data[n].hidden,index:n}})):[]}},onClick:function(e,t){var a,n,r,i=t.index,s=this.chart;for(a=0,n=(s.data.datasets||[]).length;a<n;++a)r=s.getDatasetMeta(a),r.data[i]&&(r.data[i].hidden=!r.data[i].hidden);s.update()}},cutoutPercentage:50,rotation:-.5*Math.PI,circumference:2*Math.PI,tooltips:{callbacks:{title:function(){return""},label:function(e,t){var a=t.labels[e.index],n=": "+t.datasets[e.datasetIndex].data[e.index];return i.isArray(a)?(a=a.slice(),a[0]+=n):a+=n,a}}}}),n._set("pie",i.clone(n.doughnut)),n._set("pie",{cutoutPercentage:0}),e.exports=function(e){e.controllers.doughnut=e.controllers.pie=e.DatasetController.extend({dataElementType:r.Arc,linkScales:i.noop,getRingIndex:function(e){for(var t=0,a=0;a<e;++a)this.chart.isDatasetVisible(a)&&++t;return t},update:function(e){var t=this,a=t.chart,n=a.chartArea,r=a.options,s=r.elements.arc,o=n.right-n.left-s.borderWidth,d=n.bottom-n.top-s.borderWidth,u=Math.min(o,d),l={x:0,y:0},_=t.getMeta(),c=r.cutoutPercentage,m=r.circumference;if(m<2*Math.PI){var h=r.rotation%(2*Math.PI);h+=2*Math.PI*(h>=Math.PI?-1:h<-Math.PI?1:0);var f=h+m,M={x:Math.cos(h),y:Math.sin(h)},p={x:Math.cos(f),y:Math.sin(f)},y=h<=0&&f>=0||h<=2*Math.PI&&2*Math.PI<=f,g=h<=.5*Math.PI&&.5*Math.PI<=f||h<=2.5*Math.PI&&2.5*Math.PI<=f,L=h<=-Math.PI&&-Math.PI<=f||h<=Math.PI&&Math.PI<=f,v=h<=.5*-Math.PI&&.5*-Math.PI<=f||h<=1.5*Math.PI&&1.5*Math.PI<=f,Y=c/100,b={x:L?-1:Math.min(M.x*(M.x<0?1:Y),p.x*(p.x<0?1:Y)),y:v?-1:Math.min(M.y*(M.y<0?1:Y),p.y*(p.y<0?1:Y))},k={x:y?1:Math.max(M.x*(M.x>0?1:Y),p.x*(p.x>0?1:Y)),y:g?1:Math.max(M.y*(M.y>0?1:Y),p.y*(p.y>0?1:Y))},D={width:.5*(k.x-b.x),height:.5*(k.y-b.y)};u=Math.min(o/D.width,d/D.height),l={x:-.5*(k.x+b.x),y:-.5*(k.y+b.y)}}a.borderWidth=t.getMaxBorderWidth(_.data),a.outerRadius=Math.max((u-a.borderWidth)/2,0),a.innerRadius=Math.max(c?a.outerRadius/100*c:0,0),a.radiusLength=(a.outerRadius-a.innerRadius)/a.getVisibleDatasetCount(),a.offsetX=l.x*a.outerRadius,a.offsetY=l.y*a.outerRadius,_.total=t.calculateTotal(),t.outerRadius=a.outerRadius-a.radiusLength*t.getRingIndex(t.index),t.innerRadius=Math.max(t.outerRadius-a.radiusLength,0),i.each(_.data,(function(a,n){t.updateElement(a,n,e)}))},updateElement:function(e,t,a){var n=this,r=n.chart,s=r.chartArea,o=r.options,d=o.animation,u=(s.left+s.right)/2,l=(s.top+s.bottom)/2,_=o.rotation,c=o.rotation,m=n.getDataset(),h=a&&d.animateRotate||e.hidden?0:n.calculateCircumference(m.data[t])*(o.circumference/(2*Math.PI)),f=a&&d.animateScale?0:n.innerRadius,M=a&&d.animateScale?0:n.outerRadius,p=i.valueAtIndexOrDefault;i.extend(e,{_datasetIndex:n.index,_index:t,_model:{x:u+r.offsetX,y:l+r.offsetY,startAngle:_,endAngle:c,circumference:h,outerRadius:M,innerRadius:f,label:p(m.label,t,r.data.labels[t])}});var y=e._model,g=e.custom||{},L=i.valueAtIndexOrDefault,v=this.chart.options.elements.arc;y.backgroundColor=g.backgroundColor?g.backgroundColor:L(m.backgroundColor,t,v.backgroundColor),y.borderColor=g.borderColor?g.borderColor:L(m.borderColor,t,v.borderColor),y.borderWidth=g.borderWidth?g.borderWidth:L(m.borderWidth,t,v.borderWidth),a&&d.animateRotate||(y.startAngle=0===t?o.rotation:n.getMeta().data[t-1]._model.endAngle,y.endAngle=y.startAngle+y.circumference),e.pivot()},calculateTotal:function(){var e,t=this.getDataset(),a=this.getMeta(),n=0;return i.each(a.data,(function(a,r){e=t.data[r],isNaN(e)||a.hidden||(n+=Math.abs(e))})),n},calculateCircumference:function(e){var t=this.getMeta().total;return t>0&&!isNaN(e)?2*Math.PI*(Math.abs(e)/t):0},getMaxBorderWidth:function(e){for(var t,a,n=0,r=this.index,i=e.length,s=0;s<i;s++)t=e[s]._model?e[s]._model.borderWidth:0,a=e[s]._chart?e[s]._chart.config.data.datasets[r].hoverBorderWidth:0,n=t>n?t:n,n=a>n?a:n;return n}})}},"5dbc":function(e,t,a){var n=a("d3f4"),r=a("8b97").set;e.exports=function(e,t,a){var i,s=t.constructor;return s!==a&&"function"==typeof s&&(i=s.prototype)!==a.prototype&&n(i)&&r&&r(e,i),e}},"5fbd":function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag".split("_"),weekdaysShort:"sön_mån_tis_ons_tor_fre_lör".split("_"),weekdaysMin:"sö_må_ti_on_to_fr_lö".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Igår] LT",nextWeek:"[På] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"för %s sedan",s:"några sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en månad",MM:"%d månader",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}(\:e|\:a)/,ordinal:function(e){var t=e%10,a=1===~~(e%100/10)?":e":1===t||2===t?":a":":e";return e+a},week:{dow:1,doy:4}});return t}))},"5fc0":function(e,t,a){"use strict";var n=a("0832"),r=a("2b61"),i=a("4438");n._set("global",{elements:{arc:{backgroundColor:n.global.defaultColor,borderColor:"#fff",borderWidth:2}}}),e.exports=r.extend({inLabelRange:function(e){var t=this._view;return!!t&&Math.pow(e-t.x,2)<Math.pow(t.radius+t.hoverRadius,2)},inRange:function(e,t){var a=this._view;if(a){var n=i.getAngleFromPoint(a,{x:e,y:t}),r=n.angle,s=n.distance,o=a.startAngle,d=a.endAngle;while(d<o)d+=2*Math.PI;while(r>d)r-=2*Math.PI;while(r<o)r+=2*Math.PI;var u=r>=o&&r<=d,l=s>=a.innerRadius&&s<=a.outerRadius;return u&&l}return!1},getCenterPoint:function(){var e=this._view,t=(e.startAngle+e.endAngle)/2,a=(e.innerRadius+e.outerRadius)/2;return{x:e.x+Math.cos(t)*a,y:e.y+Math.sin(t)*a}},getArea:function(){var e=this._view;return Math.PI*((e.endAngle-e.startAngle)/(2*Math.PI))*(Math.pow(e.outerRadius,2)-Math.pow(e.innerRadius,2))},tooltipPosition:function(){var e=this._view,t=e.startAngle+(e.endAngle-e.startAngle)/2,a=(e.outerRadius-e.innerRadius)/2+e.innerRadius;return{x:e.x+Math.cos(t)*a,y:e.y+Math.sin(t)*a}},draw:function(){var e=this._chart.ctx,t=this._view,a=t.startAngle,n=t.endAngle;e.beginPath(),e.arc(t.x,t.y,t.outerRadius,a,n),e.arc(t.x,t.y,t.innerRadius,n,a,!0),e.closePath(),e.strokeStyle=t.borderColor,e.lineWidth=t.borderWidth,e.fillStyle=t.backgroundColor,e.fill(),e.lineJoin="bevel",t.borderWidth&&e.stroke()}})},6117:function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("ug-cn",{months:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),monthsShort:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),weekdays:"يەكشەنبە_دۈشەنبە_سەيشەنبە_چارشەنبە_پەيشەنبە_جۈمە_شەنبە".split("_"),weekdaysShort:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),weekdaysMin:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-يىلىM-ئاينىڭD-كۈنى",LLL:"YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm",LLLL:"dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm"},meridiemParse:/يېرىم كېچە|سەھەر|چۈشتىن بۇرۇن|چۈش|چۈشتىن كېيىن|كەچ/,meridiemHour:function(e,t){return 12===e&&(e=0),"يېرىم كېچە"===t||"سەھەر"===t||"چۈشتىن بۇرۇن"===t?e:"چۈشتىن كېيىن"===t||"كەچ"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,a){var n=100*e+t;return n<600?"يېرىم كېچە":n<900?"سەھەر":n<1130?"چۈشتىن بۇرۇن":n<1230?"چۈش":n<1800?"چۈشتىن كېيىن":"كەچ"},calendar:{sameDay:"[بۈگۈن سائەت] LT",nextDay:"[ئەتە سائەت] LT",nextWeek:"[كېلەركى] dddd [سائەت] LT",lastDay:"[تۆنۈگۈن] LT",lastWeek:"[ئالدىنقى] dddd [سائەت] LT",sameElse:"L"},relativeTime:{future:"%s كېيىن",past:"%s بۇرۇن",s:"نەچچە سېكونت",ss:"%d سېكونت",m:"بىر مىنۇت",mm:"%d مىنۇت",h:"بىر سائەت",hh:"%d سائەت",d:"بىر كۈن",dd:"%d كۈن",M:"بىر ئاي",MM:"%d ئاي",y:"بىر يىل",yy:"%d يىل"},dayOfMonthOrdinalParse:/\d{1,2}(-كۈنى|-ئاي|-ھەپتە)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"-كۈنى";case"w":case"W":return e+"-ھەپتە";default:return e}},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:7}});return t}))},"612b":function(e,t,a){"use strict";var n=a("0832"),r=a("4438"),i=a("b631"),s=a("83cb");e.exports=function(e){var t={position:"left",ticks:{callback:s.formatters.linear}},a=e.LinearScaleBase.extend({determineDataLimits:function(){var e=this,t=e.options,a=e.chart,n=a.data,i=n.datasets,s=e.isHorizontal(),o=0,d=1;function u(t){return s?t.xAxisID===e.id:t.yAxisID===e.id}e.min=null,e.max=null;var l=t.stacked;if(void 0===l&&r.each(i,(function(e,t){if(!l){var n=a.getDatasetMeta(t);a.isDatasetVisible(t)&&u(n)&&void 0!==n.stack&&(l=!0)}})),t.stacked||l){var _={};r.each(i,(function(n,i){var s=a.getDatasetMeta(i),o=[s.type,void 0===t.stacked&&void 0===s.stack?i:"",s.stack].join(".");void 0===_[o]&&(_[o]={positiveValues:[],negativeValues:[]});var d=_[o].positiveValues,l=_[o].negativeValues;a.isDatasetVisible(i)&&u(s)&&r.each(n.data,(function(a,n){var r=+e.getRightValue(a);isNaN(r)||s.data[n].hidden||(d[n]=d[n]||0,l[n]=l[n]||0,t.relativePoints?d[n]=100:r<0?l[n]+=r:d[n]+=r)}))})),r.each(_,(function(t){var a=t.positiveValues.concat(t.negativeValues),n=r.min(a),i=r.max(a);e.min=null===e.min?n:Math.min(e.min,n),e.max=null===e.max?i:Math.max(e.max,i)}))}else r.each(i,(function(t,n){var i=a.getDatasetMeta(n);a.isDatasetVisible(n)&&u(i)&&r.each(t.data,(function(t,a){var n=+e.getRightValue(t);isNaN(n)||i.data[a].hidden||((null===e.min||n<e.min)&&(e.min=n),(null===e.max||n>e.max)&&(e.max=n))}))}));e.min=isFinite(e.min)&&!isNaN(e.min)?e.min:o,e.max=isFinite(e.max)&&!isNaN(e.max)?e.max:d,this.handleTickRangeOptions()},getTickLimit:function(){var e,t=this,a=t.options.ticks;if(t.isHorizontal())e=Math.min(a.maxTicksLimit?a.maxTicksLimit:11,Math.ceil(t.width/50));else{var i=r.valueOrDefault(a.fontSize,n.global.defaultFontSize);e=Math.min(a.maxTicksLimit?a.maxTicksLimit:11,Math.ceil(t.height/(2*i)))}return e},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(e,t){return+this.getRightValue(this.chart.data.datasets[t].data[e])},getPixelForValue:function(e){var t,a=this,n=a.start,r=+a.getRightValue(e),i=a.end-n;return t=a.isHorizontal()?a.left+a.width/i*(r-n):a.bottom-a.height/i*(r-n),t},getValueForPixel:function(e){var t=this,a=t.isHorizontal(),n=a?t.width:t.height,r=(a?e-t.left:t.bottom-e)/n;return t.start+(t.end-t.start)*r},getPixelForTick:function(e){return this.getPixelForValue(this.ticksAsNumbers[e])}});i.registerScaleType("linear",a,t)}},"613b":function(e,t,a){var n=a("5537")("keys"),r=a("ca5a");e.exports=function(e){return n[e]||(n[e]=r(e))}},"61a6":function(e,t,a){var n=a("6827");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var r=a("499e").default;r("d53f9f84",n,!0,{sourceMap:!1,shadowMode:!1})},"626a":function(e,t,a){var n=a("2d95");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==n(e)?e.split(""):Object(e)}},"62e4":function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},6384:function(e,t,a){"use strict";var n=a("4438"),r=a("71db"),i=a("b631"),s=a("83cb");function o(e,t){var a,r,i=[],s=n.valueOrDefault,o=s(e.min,Math.pow(10,Math.floor(n.log10(t.min)))),d=Math.floor(n.log10(t.max)),u=Math.ceil(t.max/Math.pow(10,d));0===o?(a=Math.floor(n.log10(t.minNotZero)),r=Math.floor(t.minNotZero/Math.pow(10,a)),i.push(o),o=r*Math.pow(10,a)):(a=Math.floor(n.log10(o)),r=Math.floor(o/Math.pow(10,a)));var l=a<0?Math.pow(10,Math.abs(a)):1;do{i.push(o),++r,10===r&&(r=1,++a,l=a>=0?1:l),o=Math.round(r*Math.pow(10,a)*l)/l}while(a<d||a===d&&r<u);var _=s(e.max,o);return i.push(_),i}e.exports=function(e){var t={position:"left",ticks:{callback:s.formatters.logarithmic}},a=r.extend({determineDataLimits:function(){var e=this,t=e.options,a=e.chart,r=a.data,i=r.datasets,s=e.isHorizontal();function o(t){return s?t.xAxisID===e.id:t.yAxisID===e.id}e.min=null,e.max=null,e.minNotZero=null;var d=t.stacked;if(void 0===d&&n.each(i,(function(e,t){if(!d){var n=a.getDatasetMeta(t);a.isDatasetVisible(t)&&o(n)&&void 0!==n.stack&&(d=!0)}})),t.stacked||d){var u={};n.each(i,(function(r,i){var s=a.getDatasetMeta(i),d=[s.type,void 0===t.stacked&&void 0===s.stack?i:"",s.stack].join(".");a.isDatasetVisible(i)&&o(s)&&(void 0===u[d]&&(u[d]=[]),n.each(r.data,(function(t,a){var n=u[d],r=+e.getRightValue(t);isNaN(r)||s.data[a].hidden||r<0||(n[a]=n[a]||0,n[a]+=r)})))})),n.each(u,(function(t){if(t.length>0){var a=n.min(t),r=n.max(t);e.min=null===e.min?a:Math.min(e.min,a),e.max=null===e.max?r:Math.max(e.max,r)}}))}else n.each(i,(function(t,r){var i=a.getDatasetMeta(r);a.isDatasetVisible(r)&&o(i)&&n.each(t.data,(function(t,a){var n=+e.getRightValue(t);isNaN(n)||i.data[a].hidden||n<0||((null===e.min||n<e.min)&&(e.min=n),(null===e.max||n>e.max)&&(e.max=n),0!==n&&(null===e.minNotZero||n<e.minNotZero)&&(e.minNotZero=n))}))}));this.handleTickRangeOptions()},handleTickRangeOptions:function(){var e=this,t=e.options,a=t.ticks,r=n.valueOrDefault,i=1,s=10;e.min=r(a.min,e.min),e.max=r(a.max,e.max),e.min===e.max&&(0!==e.min&&null!==e.min?(e.min=Math.pow(10,Math.floor(n.log10(e.min))-1),e.max=Math.pow(10,Math.floor(n.log10(e.max))+1)):(e.min=i,e.max=s)),null===e.min&&(e.min=Math.pow(10,Math.floor(n.log10(e.max))-1)),null===e.max&&(e.max=0!==e.min?Math.pow(10,Math.floor(n.log10(e.min))+1):s),null===e.minNotZero&&(e.min>0?e.minNotZero=e.min:e.max<1?e.minNotZero=Math.pow(10,Math.floor(n.log10(e.max))):e.minNotZero=i)},buildTicks:function(){var e=this,t=e.options,a=t.ticks,r=!e.isHorizontal(),i={min:a.min,max:a.max},s=e.ticks=o(i,e);e.max=n.max(s),e.min=n.min(s),a.reverse?(r=!r,e.start=e.max,e.end=e.min):(e.start=e.min,e.end=e.max),r&&s.reverse()},convertTicksToLabels:function(){this.tickValues=this.ticks.slice(),r.prototype.convertTicksToLabels.call(this)},getLabelForIndex:function(e,t){return+this.getRightValue(this.chart.data.datasets[t].data[e])},getPixelForTick:function(e){return this.getPixelForValue(this.tickValues[e])},_getFirstTickValue:function(e){var t=Math.floor(n.log10(e)),a=Math.floor(e/Math.pow(10,t));return a*Math.pow(10,t)},getPixelForValue:function(t){var a,r,i,s,o,d=this,u=d.options.ticks.reverse,l=n.log10,_=d._getFirstTickValue(d.minNotZero),c=0;return t=+d.getRightValue(t),u?(i=d.end,s=d.start,o=-1):(i=d.start,s=d.end,o=1),d.isHorizontal()?(a=d.width,r=u?d.right:d.left):(a=d.height,o*=-1,r=u?d.top:d.bottom),t!==i&&(0===i&&(c=n.getValueOrDefault(d.options.ticks.fontSize,e.defaults.global.defaultFontSize),a-=c,i=_),0!==t&&(c+=a/(l(s)-l(i))*(l(t)-l(i))),r+=o*c),r},getValueForPixel:function(t){var a,r,i,s,o=this,d=o.options.ticks.reverse,u=n.log10,l=o._getFirstTickValue(o.minNotZero);if(d?(r=o.end,i=o.start):(r=o.start,i=o.end),o.isHorizontal()?(a=o.width,s=d?o.right-t:t-o.left):(a=o.height,s=d?t-o.top:o.bottom-t),s!==r){if(0===r){var _=n.getValueOrDefault(o.options.ticks.fontSize,e.defaults.global.defaultFontSize);s-=_,a-=_,r=l}s*=u(i)-u(r),s/=a,s=Math.pow(10,u(r)+s)}return s}});i.registerScaleType("logarithmic",a,t)}},6403:function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,a){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}});return t}))},64037:function(e,t,a){"use strict";var n=a("0832"),r=a("bef1"),i=a("4438");function s(e,t){var a,n,r,i,s=e.isHorizontal()?e.width:e.height,o=e.getTicks();for(r=1,i=t.length;r<i;++r)s=Math.min(s,t[r]-t[r-1]);for(r=0,i=o.length;r<i;++r)n=e.getPixelForTick(r),s=r>0?Math.min(s,n-a):s,a=n;return s}function o(e,t,a){var n,r,s=a.barThickness,o=t.stackCount,d=t.pixels[e];return i.isNullOrUndef(s)?(n=t.min*a.categoryPercentage,r=a.barPercentage):(n=s*o,r=1),{chunk:n/o,ratio:r,start:d-n/2}}function d(e,t,a){var n,r,i=t.pixels,s=i[e],o=e>0?i[e-1]:null,d=e<i.length-1?i[e+1]:null,u=a.categoryPercentage;return null===o&&(o=s-(null===d?t.end-s:d-s)),null===d&&(d=s+s-o),n=s-(s-o)/2*u,r=(d-o)/2*u,{chunk:r/t.stackCount,ratio:a.barPercentage,start:n}}n._set("bar",{hover:{mode:"label"},scales:{xAxes:[{type:"category",categoryPercentage:.8,barPercentage:.9,offset:!0,gridLines:{offsetGridLines:!0}}],yAxes:[{type:"linear"}]}}),n._set("horizontalBar",{hover:{mode:"index",axis:"y"},scales:{xAxes:[{type:"linear",position:"bottom"}],yAxes:[{position:"left",type:"category",categoryPercentage:.8,barPercentage:.9,offset:!0,gridLines:{offsetGridLines:!0}}]},elements:{rectangle:{borderSkipped:"left"}},tooltips:{callbacks:{title:function(e,t){var a="";return e.length>0&&(e[0].yLabel?a=e[0].yLabel:t.labels.length>0&&e[0].index<t.labels.length&&(a=t.labels[e[0].index])),a},label:function(e,t){var a=t.datasets[e.datasetIndex].label||"";return a+": "+e.xLabel}},mode:"index",axis:"y"}}),e.exports=function(e){e.controllers.bar=e.DatasetController.extend({dataElementType:r.Rectangle,initialize:function(){var t,a=this;e.DatasetController.prototype.initialize.apply(a,arguments),t=a.getMeta(),t.stack=a.getDataset().stack,t.bar=!0},update:function(e){var t,a,n=this,r=n.getMeta().data;for(n._ruler=n.getRuler(),t=0,a=r.length;t<a;++t)n.updateElement(r[t],t,e)},updateElement:function(e,t,a){var n=this,r=n.chart,s=n.getMeta(),o=n.getDataset(),d=e.custom||{},u=r.options.elements.rectangle;e._xScale=n.getScaleForId(s.xAxisID),e._yScale=n.getScaleForId(s.yAxisID),e._datasetIndex=n.index,e._index=t,e._model={datasetLabel:o.label,label:r.data.labels[t],borderSkipped:d.borderSkipped?d.borderSkipped:u.borderSkipped,backgroundColor:d.backgroundColor?d.backgroundColor:i.valueAtIndexOrDefault(o.backgroundColor,t,u.backgroundColor),borderColor:d.borderColor?d.borderColor:i.valueAtIndexOrDefault(o.borderColor,t,u.borderColor),borderWidth:d.borderWidth?d.borderWidth:i.valueAtIndexOrDefault(o.borderWidth,t,u.borderWidth)},n.updateElementGeometry(e,t,a),e.pivot()},updateElementGeometry:function(e,t,a){var n=this,r=e._model,i=n.getValueScale(),s=i.getBasePixel(),o=i.isHorizontal(),d=n._ruler||n.getRuler(),u=n.calculateBarValuePixels(n.index,t),l=n.calculateBarIndexPixels(n.index,t,d);r.horizontal=o,r.base=a?s:u.base,r.x=o?a?s:u.head:l.center,r.y=o?l.center:a?s:u.head,r.height=o?l.size:void 0,r.width=o?void 0:l.size},getValueScaleId:function(){return this.getMeta().yAxisID},getIndexScaleId:function(){return this.getMeta().xAxisID},getValueScale:function(){return this.getScaleForId(this.getValueScaleId())},getIndexScale:function(){return this.getScaleForId(this.getIndexScaleId())},_getStacks:function(e){var t,a,n=this,r=n.chart,i=n.getIndexScale(),s=i.options.stacked,o=void 0===e?r.data.datasets.length:e+1,d=[];for(t=0;t<o;++t)a=r.getDatasetMeta(t),a.bar&&r.isDatasetVisible(t)&&(!1===s||!0===s&&-1===d.indexOf(a.stack)||void 0===s&&(void 0===a.stack||-1===d.indexOf(a.stack)))&&d.push(a.stack);return d},getStackCount:function(){return this._getStacks().length},getStackIndex:function(e,t){var a=this._getStacks(e),n=void 0!==t?a.indexOf(t):-1;return-1===n?a.length-1:n},getRuler:function(){var e,t,a,n=this,r=n.getIndexScale(),o=n.getStackCount(),d=n.index,u=r.isHorizontal(),l=u?r.left:r.top,_=l+(u?r.width:r.height),c=[];for(e=0,t=n.getMeta().data.length;e<t;++e)c.push(r.getPixelForValue(null,e,d));return a=i.isNullOrUndef(r.options.barThickness)?s(r,c):-1,{min:a,pixels:c,start:l,end:_,stackCount:o,scale:r}},calculateBarValuePixels:function(e,t){var a,n,r,i,s,o,d=this,u=d.chart,l=d.getMeta(),_=d.getValueScale(),c=u.data.datasets,m=_.getRightValue(c[e].data[t]),h=_.options.stacked,f=l.stack,M=0;if(h||void 0===h&&void 0!==f)for(a=0;a<e;++a)n=u.getDatasetMeta(a),n.bar&&n.stack===f&&n.controller.getValueScaleId()===_.id&&u.isDatasetVisible(a)&&(r=_.getRightValue(c[a].data[t]),(m<0&&r<0||m>=0&&r>0)&&(M+=r));return i=_.getPixelForValue(M),s=_.getPixelForValue(M+m),o=(s-i)/2,{size:o,base:i,head:s,center:s+o/2}},calculateBarIndexPixels:function(e,t,a){var n=this,r=a.scale.options,s="flex"===r.barThickness?d(t,a,r):o(t,a,r),u=n.getStackIndex(e,n.getMeta().stack),l=s.start+s.chunk*u+s.chunk/2,_=Math.min(i.valueOrDefault(r.maxBarThickness,1/0),s.chunk*s.ratio);return{base:l-_/2,head:l+_/2,center:l,size:_}},draw:function(){var e=this,t=e.chart,a=e.getValueScale(),n=e.getMeta().data,r=e.getDataset(),s=n.length,o=0;for(i.canvas.clipArea(t.ctx,t.chartArea);o<s;++o)isNaN(a.getRightValue(r.data[o]))||n[o].draw();i.canvas.unclipArea(t.ctx)}}),e.controllers.horizontalBar=e.controllers.bar.extend({getValueScaleId:function(){return this.getMeta().xAxisID},getIndexScaleId:function(){return this.getMeta().yAxisID}})}},"65db":function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mart_apr_maj_jun_jul_aŭg_sept_okt_nov_dec".split("_"),weekdays:"dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_ĵaŭ_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_ĵa_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"[la] D[-an de] MMMM, YYYY",LLL:"[la] D[-an de] MMMM, YYYY HH:mm",LLLL:"dddd[n], [la] D[-an de] MMMM, YYYY HH:mm",llll:"ddd, [la] D[-an de] MMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(e){return"p"===e.charAt(0).toLowerCase()},meridiem:function(e,t,a){return e>11?a?"p.t.m.":"P.T.M.":a?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodiaŭ je] LT",nextDay:"[Morgaŭ je] LT",nextWeek:"dddd[n je] LT",lastDay:"[Hieraŭ je] LT",lastWeek:"[pasintan] dddd[n je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"antaŭ %s",s:"kelkaj sekundoj",ss:"%d sekundoj",m:"unu minuto",mm:"%d minutoj",h:"unu horo",hh:"%d horoj",d:"unu tago",dd:"%d tagoj",M:"unu monato",MM:"%d monatoj",y:"unu jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}});return t}))},6784:function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=["جنوري","فيبروري","مارچ","اپريل","مئي","جون","جولاءِ","آگسٽ","سيپٽمبر","آڪٽوبر","نومبر","ڊسمبر"],a=["آچر","سومر","اڱارو","اربع","خميس","جمع","ڇنڇر"],n=e.defineLocale("sd",{months:t,monthsShort:t,weekdays:a,weekdaysShort:a,weekdaysMin:a,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(e){return"شام"===e},meridiem:function(e,t,a){return e<12?"صبح":"شام"},calendar:{sameDay:"[اڄ] LT",nextDay:"[سڀاڻي] LT",nextWeek:"dddd [اڳين هفتي تي] LT",lastDay:"[ڪالهه] LT",lastWeek:"[گزريل هفتي] dddd [تي] LT",sameElse:"L"},relativeTime:{future:"%s پوء",past:"%s اڳ",s:"چند سيڪنڊ",ss:"%d سيڪنڊ",m:"هڪ منٽ",mm:"%d منٽ",h:"هڪ ڪلاڪ",hh:"%d ڪلاڪ",d:"هڪ ڏينهن",dd:"%d ڏينهن",M:"هڪ مهينو",MM:"%d مهينا",y:"هڪ سال",yy:"%d سال"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:4}});return n}))},"681d":function(e,t,a){"use strict";var n=a("0832"),r=a("bef1"),i=a("4438");n._set("radar",{scale:{type:"radialLinear"},elements:{line:{tension:0}}}),e.exports=function(e){e.controllers.radar=e.DatasetController.extend({datasetElementType:r.Line,dataElementType:r.Point,linkScales:i.noop,update:function(e){var t=this,a=t.getMeta(),n=a.dataset,r=a.data,s=n.custom||{},o=t.getDataset(),d=t.chart.options.elements.line,u=t.chart.scale;void 0!==o.tension&&void 0===o.lineTension&&(o.lineTension=o.tension),i.extend(a.dataset,{_datasetIndex:t.index,_scale:u,_children:r,_loop:!0,_model:{tension:s.tension?s.tension:i.valueOrDefault(o.lineTension,d.tension),backgroundColor:s.backgroundColor?s.backgroundColor:o.backgroundColor||d.backgroundColor,borderWidth:s.borderWidth?s.borderWidth:o.borderWidth||d.borderWidth,borderColor:s.borderColor?s.borderColor:o.borderColor||d.borderColor,fill:s.fill?s.fill:void 0!==o.fill?o.fill:d.fill,borderCapStyle:s.borderCapStyle?s.borderCapStyle:o.borderCapStyle||d.borderCapStyle,borderDash:s.borderDash?s.borderDash:o.borderDash||d.borderDash,borderDashOffset:s.borderDashOffset?s.borderDashOffset:o.borderDashOffset||d.borderDashOffset,borderJoinStyle:s.borderJoinStyle?s.borderJoinStyle:o.borderJoinStyle||d.borderJoinStyle}}),a.dataset.pivot(),i.each(r,(function(a,n){t.updateElement(a,n,e)}),t),t.updateBezierControlPoints()},updateElement:function(e,t,a){var n=this,r=e.custom||{},s=n.getDataset(),o=n.chart.scale,d=n.chart.options.elements.point,u=o.getPointPositionForValue(t,s.data[t]);void 0!==s.radius&&void 0===s.pointRadius&&(s.pointRadius=s.radius),void 0!==s.hitRadius&&void 0===s.pointHitRadius&&(s.pointHitRadius=s.hitRadius),i.extend(e,{_datasetIndex:n.index,_index:t,_scale:o,_model:{x:a?o.xCenter:u.x,y:a?o.yCenter:u.y,tension:r.tension?r.tension:i.valueOrDefault(s.lineTension,n.chart.options.elements.line.tension),radius:r.radius?r.radius:i.valueAtIndexOrDefault(s.pointRadius,t,d.radius),backgroundColor:r.backgroundColor?r.backgroundColor:i.valueAtIndexOrDefault(s.pointBackgroundColor,t,d.backgroundColor),borderColor:r.borderColor?r.borderColor:i.valueAtIndexOrDefault(s.pointBorderColor,t,d.borderColor),borderWidth:r.borderWidth?r.borderWidth:i.valueAtIndexOrDefault(s.pointBorderWidth,t,d.borderWidth),pointStyle:r.pointStyle?r.pointStyle:i.valueAtIndexOrDefault(s.pointStyle,t,d.pointStyle),rotation:r.rotation?r.rotation:i.valueAtIndexOrDefault(s.pointRotation,t,d.rotation),hitRadius:r.hitRadius?r.hitRadius:i.valueAtIndexOrDefault(s.pointHitRadius,t,d.hitRadius)}}),e._model.skip=r.skip?r.skip:isNaN(e._model.x)||isNaN(e._model.y)},updateBezierControlPoints:function(){var e=this.chart.chartArea,t=this.getMeta();i.each(t.data,(function(a,n){var r=a._model,s=i.splineCurve(i.previousItem(t.data,n,!0)._model,r,i.nextItem(t.data,n,!0)._model,r.tension);r.controlPointPreviousX=Math.max(Math.min(s.previous.x,e.right),e.left),r.controlPointPreviousY=Math.max(Math.min(s.previous.y,e.bottom),e.top),r.controlPointNextX=Math.max(Math.min(s.next.x,e.right),e.left),r.controlPointNextY=Math.max(Math.min(s.next.y,e.bottom),e.top),a.pivot()}))},setHoverStyle:function(e){var t=this.chart.data.datasets[e._datasetIndex],a=e.custom||{},n=e._index,r=e._model;e.$previousStyle={backgroundColor:r.backgroundColor,borderColor:r.borderColor,borderWidth:r.borderWidth,radius:r.radius},r.radius=a.hoverRadius?a.hoverRadius:i.valueAtIndexOrDefault(t.pointHoverRadius,n,this.chart.options.elements.point.hoverRadius),r.backgroundColor=a.hoverBackgroundColor?a.hoverBackgroundColor:i.valueAtIndexOrDefault(t.pointHoverBackgroundColor,n,i.getHoverColor(r.backgroundColor)),r.borderColor=a.hoverBorderColor?a.hoverBorderColor:i.valueAtIndexOrDefault(t.pointHoverBorderColor,n,i.getHoverColor(r.borderColor)),r.borderWidth=a.hoverBorderWidth?a.hoverBorderWidth:i.valueAtIndexOrDefault(t.pointHoverBorderWidth,n,r.borderWidth)}})}},6821:function(e,t,a){var n=a("626a"),r=a("be13");e.exports=function(e){return n(r(e))}},6827:function(e,t,a){t=e.exports=a("2350")(!1),t.push([e.i,".p-chart{position:relative}",""])},6887:function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
function t(e,t,a){var n={mm:"munutenn",MM:"miz",dd:"devezh"};return e+" "+r(n[a],e)}function a(e){switch(n(e)){case 1:case 3:case 4:case 5:case 9:return e+" bloaz";default:return e+" vloaz"}}function n(e){return e>9?n(e%10):e}function r(e,t){return 2===t?i(e):e}function i(e){var t={m:"v",b:"v",d:"z"};return void 0===t[e.charAt(0)]?e:t[e.charAt(0)]+e.substring(1)}var s=[/^gen/i,/^c[ʼ\']hwe/i,/^meu/i,/^ebr/i,/^mae/i,/^(mez|eve)/i,/^gou/i,/^eos/i,/^gwe/i,/^her/i,/^du/i,/^ker/i],o=/^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,d=/^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,u=/^(gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,l=[/^sul/i,/^lun/i,/^meurzh/i,/^merc[ʼ\']her/i,/^yaou/i,/^gwener/i,/^sadorn/i],_=[/^Sul/i,/^Lun/i,/^Meu/i,/^Mer/i,/^Yao/i,/^Gwe/i,/^Sad/i],c=[/^Su/i,/^Lu/i,/^Me([^r]|$)/i,/^Mer/i,/^Ya/i,/^Gw/i,/^Sa/i],m=e.defineLocale("br",{months:"Genver_Cʼhwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_Cʼhwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Mercʼher_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParse:c,fullWeekdaysParse:l,shortWeekdaysParse:_,minWeekdaysParse:c,monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:d,monthsShortStrictRegex:u,monthsParse:s,longMonthsParse:s,shortMonthsParse:s,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY HH:mm",LLLL:"dddd, D [a viz] MMMM YYYY HH:mm"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warcʼhoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Decʼh da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s ʼzo",s:"un nebeud segondennoù",ss:"%d eilenn",m:"ur vunutenn",mm:t,h:"un eur",hh:"%d eur",d:"un devezh",dd:t,M:"ur miz",MM:t,y:"ur bloaz",yy:a},dayOfMonthOrdinalParse:/\d{1,2}(añ|vet)/,ordinal:function(e){var t=1===e?"añ":"vet";return e+t},week:{dow:1,doy:4},meridiemParse:/a.m.|g.m./,isPM:function(e){return"g.m."===e},meridiem:function(e,t,a){return e<12?"a.m.":"g.m."}});return m}))},"688b":function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("mi",{months:"Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei".split("_"),weekdaysShort:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),weekdaysMin:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te hēkona ruarua",ss:"%d hēkona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}});return t}))},6909:function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("mk",{months:"јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември".split("_"),monthsShort:"јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек".split("_"),weekdays:"недела_понеделник_вторник_среда_четврток_петок_сабота".split("_"),weekdaysShort:"нед_пон_вто_сре_чет_пет_саб".split("_"),weekdaysMin:"нe_пo_вт_ср_че_пе_сa".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Денес во] LT",nextDay:"[Утре во] LT",nextWeek:"[Во] dddd [во] LT",lastDay:"[Вчера во] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Изминатата] dddd [во] LT";case 1:case 2:case 4:case 5:return"[Изминатиот] dddd [во] LT"}},sameElse:"L"},relativeTime:{future:"за %s",past:"пред %s",s:"неколку секунди",ss:"%d секунди",m:"една минута",mm:"%d минути",h:"еден час",hh:"%d часа",d:"еден ден",dd:"%d дена",M:"еден месец",MM:"%d месеци",y:"една година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,a=e%100;return 0===e?e+"-ев":0===a?e+"-ен":a>10&&a<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}});return t}))},"69a8":function(e,t){var a={}.hasOwnProperty;e.exports=function(e,t){return a.call(e,t)}},"6a99":function(e,t,a){var n=a("d3f4");e.exports=function(e,t){if(!n(e))return e;var a,r;if(t&&"function"==typeof(a=e.toString)&&!n(r=a.call(e)))return r;if("function"==typeof(a=e.valueOf)&&!n(r=a.call(e)))return r;if(!t&&"function"==typeof(a=e.toString)&&!n(r=a.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},"6ce3":function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"sø._ma._ti._on._to._fr._lø.".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",w:"en uke",ww:"%d uker",M:"en måned",MM:"%d måneder",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return t}))},"6d79":function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t={0:"-ші",1:"-ші",2:"-ші",3:"-ші",4:"-ші",5:"-ші",6:"-шы",7:"-ші",8:"-ші",9:"-шы",10:"-шы",20:"-шы",30:"-шы",40:"-шы",50:"-ші",60:"-шы",70:"-ші",80:"-ші",90:"-шы",100:"-ші"},a=e.defineLocale("kk",{months:"қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан".split("_"),monthsShort:"қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел".split("_"),weekdays:"жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі".split("_"),weekdaysShort:"жек_дүй_сей_сәр_бей_жұм_сен".split("_"),weekdaysMin:"жк_дй_сй_ср_бй_жм_сн".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгін сағат] LT",nextDay:"[Ертең сағат] LT",nextWeek:"dddd [сағат] LT",lastDay:"[Кеше сағат] LT",lastWeek:"[Өткен аптаның] dddd [сағат] LT",sameElse:"L"},relativeTime:{future:"%s ішінде",past:"%s бұрын",s:"бірнеше секунд",ss:"%d секунд",m:"бір минут",mm:"%d минут",h:"бір сағат",hh:"%d сағат",d:"бір күн",dd:"%d күн",M:"бір ай",MM:"%d ай",y:"бір жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(ші|шы)/,ordinal:function(e){var a=e%10,n=e>=100?100:null;return e+(t[e]||t[a]||t[n])},week:{dow:1,doy:7}});return a}))},"6d83":function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("ar-tn",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}});return t}))},"6e27":function(e,t,a){"use strict";var n=a("0832"),r=a("bef1"),i=a("4438");n._set("bubble",{hover:{mode:"single"},scales:{xAxes:[{type:"linear",position:"bottom",id:"x-axis-0"}],yAxes:[{type:"linear",position:"left",id:"y-axis-0"}]},tooltips:{callbacks:{title:function(){return""},label:function(e,t){var a=t.datasets[e.datasetIndex].label||"",n=t.datasets[e.datasetIndex].data[e.index];return a+": ("+e.xLabel+", "+e.yLabel+", "+n.r+")"}}}}),e.exports=function(e){e.controllers.bubble=e.DatasetController.extend({dataElementType:r.Point,update:function(e){var t=this,a=t.getMeta(),n=a.data;i.each(n,(function(a,n){t.updateElement(a,n,e)}))},updateElement:function(e,t,a){var n=this,r=n.getMeta(),i=e.custom||{},s=n.getScaleForId(r.xAxisID),o=n.getScaleForId(r.yAxisID),d=n._resolveElementOptions(e,t),u=n.getDataset().data[t],l=n.index,_=a?s.getPixelForDecimal(.5):s.getPixelForValue("object"===typeof u?u:NaN,t,l),c=a?o.getBasePixel():o.getPixelForValue(u,t,l);e._xScale=s,e._yScale=o,e._options=d,e._datasetIndex=l,e._index=t,e._model={backgroundColor:d.backgroundColor,borderColor:d.borderColor,borderWidth:d.borderWidth,hitRadius:d.hitRadius,pointStyle:d.pointStyle,rotation:d.rotation,radius:a?0:d.radius,skip:i.skip||isNaN(_)||isNaN(c),x:_,y:c},e.pivot()},setHoverStyle:function(e){var t=e._model,a=e._options;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth,radius:t.radius},t.backgroundColor=i.valueOrDefault(a.hoverBackgroundColor,i.getHoverColor(a.backgroundColor)),t.borderColor=i.valueOrDefault(a.hoverBorderColor,i.getHoverColor(a.borderColor)),t.borderWidth=i.valueOrDefault(a.hoverBorderWidth,a.borderWidth),t.radius=a.radius+a.hoverRadius},_resolveElementOptions:function(e,t){var a,n,r,s=this,o=s.chart,d=o.data.datasets,u=d[s.index],l=e.custom||{},_=o.options.elements.point,c=i.options.resolve,m=u.data[t],h={},f={chart:o,dataIndex:t,dataset:u,datasetIndex:s.index},M=["backgroundColor","borderColor","borderWidth","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth","hoverRadius","hitRadius","pointStyle","rotation"];for(a=0,n=M.length;a<n;++a)r=M[a],h[r]=c([l[r],u[r],_[r]],f,t);return h.radius=c([l.radius,m?m.r:void 0,u.radius,_.radius],f,t),h}})}},"6e98":function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:function(){return"[Oggi a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextDay:function(){return"[Domani a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextWeek:function(){return"dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastDay:function(){return"[Ieri a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastWeek:function(){switch(this.day()){case 0:return"[La scorsa] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT";default:return"[Lo scorso] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"}},sameElse:"L"},relativeTime:{future:"tra %s",past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",w:"una settimana",ww:"%d settimane",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}});return t}))},"6f12":function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("it-ch",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(e){return(/^[0-9].+$/.test(e)?"tra":"in")+" "+e},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}});return t}))},"6f50":function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,a=1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+a},week:{dow:1,doy:4}});return t}))},7118:function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),a="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),n=e.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(e,n){return e?/-MMM-/.test(n)?a[e.month()]:t[e.month()]:t},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[ôfrûne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien minút",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}});return n}))},"71db":function(e,t,a){"use strict";var n=a("0832"),r=a("2b61"),i=a("4438"),s=a("83cb");function o(e){var t,a,n=[];for(t=0,a=e.length;t<a;++t)n.push(e[t].label);return n}function d(e,t,a){var n=e.getPixelForTick(t);return a&&(n-=0===t?(e.getPixelForTick(1)-n)/2:(n-e.getPixelForTick(t-1))/2),n}function u(e,t,a){return i.isArray(t)?i.longestText(e,a,t):e.measureText(t).width}function l(e){var t=i.valueOrDefault,a=n.global,r=t(e.fontSize,a.defaultFontSize),s=t(e.fontStyle,a.defaultFontStyle),o=t(e.fontFamily,a.defaultFontFamily);return{size:r,style:s,family:o,font:i.fontString(r,s,o)}}function _(e){return i.options.toLineHeight(i.valueOrDefault(e.lineHeight,1.2),i.valueOrDefault(e.fontSize,n.global.defaultFontSize))}n._set("scale",{display:!0,position:"left",offset:!1,gridLines:{display:!0,color:"rgba(0, 0, 0, 0.1)",lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickMarkLength:10,zeroLineWidth:1,zeroLineColor:"rgba(0,0,0,0.25)",zeroLineBorderDash:[],zeroLineBorderDashOffset:0,offsetGridLines:!1,borderDash:[],borderDashOffset:0},scaleLabel:{display:!1,labelString:"",lineHeight:1.2,padding:{top:4,bottom:4}},ticks:{beginAtZero:!1,minRotation:0,maxRotation:50,mirror:!1,padding:0,reverse:!1,display:!0,autoSkip:!0,autoSkipPadding:0,labelOffset:0,callback:s.formatters.values,minor:{},major:{}}}),e.exports=r.extend({getPadding:function(){var e=this;return{left:e.paddingLeft||0,top:e.paddingTop||0,right:e.paddingRight||0,bottom:e.paddingBottom||0}},getTicks:function(){return this._ticks},mergeTicksOptions:function(){var e=this.options.ticks;for(var t in!1===e.minor&&(e.minor={display:!1}),!1===e.major&&(e.major={display:!1}),e)"major"!==t&&"minor"!==t&&("undefined"===typeof e.minor[t]&&(e.minor[t]=e[t]),"undefined"===typeof e.major[t]&&(e.major[t]=e[t]))},beforeUpdate:function(){i.callback(this.options.beforeUpdate,[this])},update:function(e,t,a){var n,r,s,o,d,u,l=this;for(l.beforeUpdate(),l.maxWidth=e,l.maxHeight=t,l.margins=i.extend({left:0,right:0,top:0,bottom:0},a),l.longestTextCache=l.longestTextCache||{},l.beforeSetDimensions(),l.setDimensions(),l.afterSetDimensions(),l.beforeDataLimits(),l.determineDataLimits(),l.afterDataLimits(),l.beforeBuildTicks(),d=l.buildTicks()||[],l.afterBuildTicks(),l.beforeTickToLabelConversion(),s=l.convertTicksToLabels(d)||l.ticks,l.afterTickToLabelConversion(),l.ticks=s,n=0,r=s.length;n<r;++n)o=s[n],u=d[n],u?u.label=o:d.push(u={label:o,major:!1});return l._ticks=d,l.beforeCalculateTickRotation(),l.calculateTickRotation(),l.afterCalculateTickRotation(),l.beforeFit(),l.fit(),l.afterFit(),l.afterUpdate(),l.minSize},afterUpdate:function(){i.callback(this.options.afterUpdate,[this])},beforeSetDimensions:function(){i.callback(this.options.beforeSetDimensions,[this])},setDimensions:function(){var e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(e.height=e.maxHeight,e.top=0,e.bottom=e.height),e.paddingLeft=0,e.paddingTop=0,e.paddingRight=0,e.paddingBottom=0},afterSetDimensions:function(){i.callback(this.options.afterSetDimensions,[this])},beforeDataLimits:function(){i.callback(this.options.beforeDataLimits,[this])},determineDataLimits:i.noop,afterDataLimits:function(){i.callback(this.options.afterDataLimits,[this])},beforeBuildTicks:function(){i.callback(this.options.beforeBuildTicks,[this])},buildTicks:i.noop,afterBuildTicks:function(){i.callback(this.options.afterBuildTicks,[this])},beforeTickToLabelConversion:function(){i.callback(this.options.beforeTickToLabelConversion,[this])},convertTicksToLabels:function(){var e=this,t=e.options.ticks;e.ticks=e.ticks.map(t.userCallback||t.callback,this)},afterTickToLabelConversion:function(){i.callback(this.options.afterTickToLabelConversion,[this])},beforeCalculateTickRotation:function(){i.callback(this.options.beforeCalculateTickRotation,[this])},calculateTickRotation:function(){var e=this,t=e.ctx,a=e.options.ticks,n=o(e._ticks),r=l(a);t.font=r.font;var s=a.minRotation||0;if(n.length&&e.options.display&&e.isHorizontal()){var d,u,_=i.longestText(t,r.font,n,e.longestTextCache),c=_,m=e.getPixelForTick(1)-e.getPixelForTick(0)-6;while(c>m&&s<a.maxRotation){var h=i.toRadians(s);if(d=Math.cos(h),u=Math.sin(h),u*_>e.maxHeight){s--;break}s++,c=d*_}}e.labelRotation=s},afterCalculateTickRotation:function(){i.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){i.callback(this.options.beforeFit,[this])},fit:function(){var e=this,t=e.minSize={width:0,height:0},a=o(e._ticks),n=e.options,r=n.ticks,s=n.scaleLabel,d=n.gridLines,c=n.display,m=e.isHorizontal(),h=l(r),f=n.gridLines.tickMarkLength;if(t.width=m?e.isFullWidth()?e.maxWidth-e.margins.left-e.margins.right:e.maxWidth:c&&d.drawTicks?f:0,t.height=m?c&&d.drawTicks?f:0:e.maxHeight,s.display&&c){var M=_(s),p=i.options.toPadding(s.padding),y=M+p.height;m?t.height+=y:t.width+=y}if(r.display&&c){var g=i.longestText(e.ctx,h.font,a,e.longestTextCache),L=i.numberOfLabelLines(a),v=.5*h.size,Y=e.options.ticks.padding;if(m){e.longestLabelWidth=g;var b=i.toRadians(e.labelRotation),k=Math.cos(b),D=Math.sin(b),w=D*g+h.size*L+v*(L-1)+v;t.height=Math.min(e.maxHeight,t.height+w+Y),e.ctx.font=h.font;var x=u(e.ctx,a[0],h.font),T=u(e.ctx,a[a.length-1],h.font);0!==e.labelRotation?(e.paddingLeft="bottom"===n.position?k*x+3:k*v+3,e.paddingRight="bottom"===n.position?k*v+3:k*T+3):(e.paddingLeft=x/2+3,e.paddingRight=T/2+3)}else r.mirror?g=0:g+=Y+v,t.width=Math.min(e.maxWidth,t.width+g),e.paddingTop=h.size/2,e.paddingBottom=h.size/2}e.handleMargins(),e.width=t.width,e.height=t.height},handleMargins:function(){var e=this;e.margins&&(e.paddingLeft=Math.max(e.paddingLeft-e.margins.left,0),e.paddingTop=Math.max(e.paddingTop-e.margins.top,0),e.paddingRight=Math.max(e.paddingRight-e.margins.right,0),e.paddingBottom=Math.max(e.paddingBottom-e.margins.bottom,0))},afterFit:function(){i.callback(this.options.afterFit,[this])},isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(e){if(i.isNullOrUndef(e))return NaN;if("number"===typeof e&&!isFinite(e))return NaN;if(e)if(this.isHorizontal()){if(void 0!==e.x)return this.getRightValue(e.x)}else if(void 0!==e.y)return this.getRightValue(e.y);return e},getLabelForIndex:i.noop,getPixelForValue:i.noop,getValueForPixel:i.noop,getPixelForTick:function(e){var t=this,a=t.options.offset;if(t.isHorizontal()){var n=t.width-(t.paddingLeft+t.paddingRight),r=n/Math.max(t._ticks.length-(a?0:1),1),i=r*e+t.paddingLeft;a&&(i+=r/2);var s=t.left+Math.round(i);return s+=t.isFullWidth()?t.margins.left:0,s}var o=t.height-(t.paddingTop+t.paddingBottom);return t.top+e*(o/(t._ticks.length-1))},getPixelForDecimal:function(e){var t=this;if(t.isHorizontal()){var a=t.width-(t.paddingLeft+t.paddingRight),n=a*e+t.paddingLeft,r=t.left+Math.round(n);return r+=t.isFullWidth()?t.margins.left:0,r}return t.top+e*t.height},getBasePixel:function(){return this.getPixelForValue(this.getBaseValue())},getBaseValue:function(){var e=this,t=e.min,a=e.max;return e.beginAtZero?0:t<0&&a<0?a:t>0&&a>0?t:0},_autoSkip:function(e){var t,a,n,r,s,o=this,d=o.isHorizontal(),u=o.options.ticks.minor,l=e.length,_=i.toRadians(o.labelRotation),c=Math.cos(_),m=o.longestLabelWidth*c,h=[];for(u.maxTicksLimit&&(s=u.maxTicksLimit),d&&(t=!1,(m+u.autoSkipPadding)*l>o.width-(o.paddingLeft+o.paddingRight)&&(t=1+Math.floor((m+u.autoSkipPadding)*l/(o.width-(o.paddingLeft+o.paddingRight)))),s&&l>s&&(t=Math.max(t,Math.floor(l/s)))),a=0;a<l;a++)n=e[a],r=t>1&&a%t>0||a%t===0&&a+t>=l,r&&a!==l-1&&delete n.label,h.push(n);return h},draw:function(e){var t=this,a=t.options;if(a.display){var r=t.ctx,s=n.global,o=a.ticks.minor,u=a.ticks.major||o,c=a.gridLines,m=a.scaleLabel,h=0!==t.labelRotation,f=t.isHorizontal(),M=o.autoSkip?t._autoSkip(t.getTicks()):t.getTicks(),p=i.valueOrDefault(o.fontColor,s.defaultFontColor),y=l(o),g=i.valueOrDefault(u.fontColor,s.defaultFontColor),L=l(u),v=c.drawTicks?c.tickMarkLength:0,Y=i.valueOrDefault(m.fontColor,s.defaultFontColor),b=l(m),k=i.options.toPadding(m.padding),D=i.toRadians(t.labelRotation),w=[],x=t.options.gridLines.lineWidth,T="right"===a.position?t.left:t.right-x-v,S="right"===a.position?t.left+v:t.right,H="bottom"===a.position?t.top+x:t.bottom-v-x,j="bottom"===a.position?t.top+x+v:t.bottom+x;if(i.each(M,(function(n,r){if(!i.isNullOrUndef(n.label)){var u,l,_,m,p,y,g,L,Y,b,k,P,O,A,F=n.label;r===t.zeroLineIndex&&a.offset===c.offsetGridLines?(u=c.zeroLineWidth,l=c.zeroLineColor,_=c.zeroLineBorderDash,m=c.zeroLineBorderDashOffset):(u=i.valueAtIndexOrDefault(c.lineWidth,r),l=i.valueAtIndexOrDefault(c.color,r),_=i.valueOrDefault(c.borderDash,s.borderDash),m=i.valueOrDefault(c.borderDashOffset,s.borderDashOffset));var W="middle",C="middle",E=o.padding;if(f){var I=v+E;"bottom"===a.position?(C=h?"middle":"top",W=h?"right":"center",A=t.top+I):(C=h?"middle":"bottom",W=h?"left":"center",A=t.bottom-I);var z=d(t,r,c.offsetGridLines&&M.length>1);z<t.left&&(l="rgba(0,0,0,0)"),z+=i.aliasPixel(u),O=t.getPixelForTick(r)+o.labelOffset,p=g=Y=k=z,y=H,L=j,b=e.top,P=e.bottom+x}else{var N,R="left"===a.position;o.mirror?(W=R?"left":"right",N=E):(W=R?"right":"left",N=v+E),O=R?t.right-N:t.left+N;var B=d(t,r,c.offsetGridLines&&M.length>1);B<t.top&&(l="rgba(0,0,0,0)"),B+=i.aliasPixel(u),A=t.getPixelForTick(r)+o.labelOffset,p=T,g=S,Y=e.left,k=e.right+x,y=L=b=P=B}w.push({tx1:p,ty1:y,tx2:g,ty2:L,x1:Y,y1:b,x2:k,y2:P,labelX:O,labelY:A,glWidth:u,glColor:l,glBorderDash:_,glBorderDashOffset:m,rotation:-1*D,label:F,major:n.major,textBaseline:C,textAlign:W})}})),i.each(w,(function(e){if(c.display&&(r.save(),r.lineWidth=e.glWidth,r.strokeStyle=e.glColor,r.setLineDash&&(r.setLineDash(e.glBorderDash),r.lineDashOffset=e.glBorderDashOffset),r.beginPath(),c.drawTicks&&(r.moveTo(e.tx1,e.ty1),r.lineTo(e.tx2,e.ty2)),c.drawOnChartArea&&(r.moveTo(e.x1,e.y1),r.lineTo(e.x2,e.y2)),r.stroke(),r.restore()),o.display){r.save(),r.translate(e.labelX,e.labelY),r.rotate(e.rotation),r.font=e.major?L.font:y.font,r.fillStyle=e.major?g:p,r.textBaseline=e.textBaseline,r.textAlign=e.textAlign;var a=e.label;if(i.isArray(a))for(var n=a.length,s=1.5*y.size,d=t.isHorizontal()?0:-s*(n-1)/2,u=0;u<n;++u)r.fillText(""+a[u],0,d),d+=s;else r.fillText(a,0,0);r.restore()}})),m.display){var P,O,A=0,F=_(m)/2;if(f)P=t.left+(t.right-t.left)/2,O="bottom"===a.position?t.bottom-F-k.bottom:t.top+F+k.top;else{var W="left"===a.position;P=W?t.left+F+k.top:t.right-F-k.top,O=t.top+(t.bottom-t.top)/2,A=W?-.5*Math.PI:.5*Math.PI}r.save(),r.translate(P,O),r.rotate(A),r.textAlign="center",r.textBaseline="middle",r.fillStyle=Y,r.font=b.font,r.fillText(m.labelString,0,0),r.restore()}if(c.drawBorder){r.lineWidth=i.valueAtIndexOrDefault(c.lineWidth,0),r.strokeStyle=i.valueAtIndexOrDefault(c.color,0);var C=t.left,E=t.right+x,I=t.top,z=t.bottom+x,N=i.aliasPixel(r.lineWidth);f?(I=z="top"===a.position?t.bottom:t.top,I+=N,z+=N):(C=E="left"===a.position?t.right:t.left,C+=N,E+=N),r.beginPath(),r.moveTo(C,I),r.lineTo(E,z),r.stroke()}}}})},7333:function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,a=1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+a}});return t}))},"74dc":function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"hh:mm A",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"siku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}});return t}))},7699:function(e,t,a){"use strict";var n=a("0832"),r=a("4438");n._set("global",{animation:{duration:1e3,easing:"easeOutQuart",onProgress:r.noop,onComplete:r.noop}}),e.exports={frameDuration:17,animations:[],dropFrames:0,request:null,addAnimation:function(e,t,a,n){var r,i,s=this.animations;for(t.chart=e,n||(e.animating=!0),r=0,i=s.length;r<i;++r)if(s[r].chart===e)return void(s[r]=t);s.push(t),1===s.length&&this.requestAnimationFrame()},cancelAnimation:function(e){var t=r.findIndex(this.animations,(function(t){return t.chart===e}));-1!==t&&(this.animations.splice(t,1),e.animating=!1)},requestAnimationFrame:function(){var e=this;null===e.request&&(e.request=r.requestAnimFrame.call(window,(function(){e.request=null,e.startDigest()})))},startDigest:function(){var e=this,t=Date.now(),a=0;e.dropFrames>1&&(a=Math.floor(e.dropFrames),e.dropFrames=e.dropFrames%1),e.advance(1+a);var n=Date.now();e.dropFrames+=(n-t)/e.frameDuration,e.animations.length>0&&e.requestAnimationFrame()},advance:function(e){var t,a,n=this.animations,i=0;while(i<n.length)t=n[i],a=t.chart,t.currentStep=(t.currentStep||0)+e,t.currentStep=Math.min(t.currentStep,t.numSteps),r.callback(t.render,[a,t],a),r.callback(t.onAnimationProgress,[t],a),t.currentStep>=t.numSteps?(r.callback(t.onAnimationComplete,[t],a),a.animating=!1,n.splice(i,1)):++i}}},7726:function(e,t){var a=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=a)},"77f1":function(e,t,a){var n=a("4588"),r=Math.max,i=Math.min;e.exports=function(e,t){return e=n(e),e<0?r(e+t,0):i(e,t)}},"79e5":function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},"7be6":function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t="január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split("_"),a="jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_");function n(e){return e>1&&e<5}function r(e,t,a,r){var i=e+" ";switch(a){case"s":return t||r?"pár sekúnd":"pár sekundami";case"ss":return t||r?i+(n(e)?"sekundy":"sekúnd"):i+"sekundami";case"m":return t?"minúta":r?"minútu":"minútou";case"mm":return t||r?i+(n(e)?"minúty":"minút"):i+"minútami";case"h":return t?"hodina":r?"hodinu":"hodinou";case"hh":return t||r?i+(n(e)?"hodiny":"hodín"):i+"hodinami";case"d":return t||r?"deň":"dňom";case"dd":return t||r?i+(n(e)?"dni":"dní"):i+"dňami";case"M":return t||r?"mesiac":"mesiacom";case"MM":return t||r?i+(n(e)?"mesiace":"mesiacov"):i+"mesiacmi";case"y":return t||r?"rok":"rokom";case"yy":return t||r?i+(n(e)?"roky":"rokov"):i+"rokmi"}}var i=e.defineLocale("sk",{months:t,monthsShort:a,weekdays:"nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_št_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_št_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nedeľu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo štvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[včera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulú nedeľu o] LT";case 1:case 2:return"[minulý] dddd [o] LT";case 3:return"[minulú stredu o] LT";case 4:case 5:return"[minulý] dddd [o] LT";case 6:return"[minulú sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:r,ss:r,m:r,mm:r,h:r,hh:r,d:r,dd:r,M:r,MM:r,y:r,yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return i}))},"7c42":function(e,t,a){"use strict";var n=a("4438");function r(e,t){return n.where(e,(function(e){return e.position===t}))}function i(e,t){e.forEach((function(e,t){return e._tmpIndex_=t,e})),e.sort((function(e,a){var n=t?a:e,r=t?e:a;return n.weight===r.weight?n._tmpIndex_-r._tmpIndex_:n.weight-r.weight})),e.forEach((function(e){delete e._tmpIndex_}))}e.exports={defaults:{},addBox:function(e,t){e.boxes||(e.boxes=[]),t.fullWidth=t.fullWidth||!1,t.position=t.position||"top",t.weight=t.weight||0,e.boxes.push(t)},removeBox:function(e,t){var a=e.boxes?e.boxes.indexOf(t):-1;-1!==a&&e.boxes.splice(a,1)},configure:function(e,t,a){for(var n,r=["fullWidth","position","weight"],i=r.length,s=0;s<i;++s)n=r[s],a.hasOwnProperty(n)&&(t[n]=a[n])},update:function(e,t,a){if(e){var s=e.options.layout||{},o=n.options.toPadding(s.padding),d=o.left,u=o.right,l=o.top,_=o.bottom,c=r(e.boxes,"left"),m=r(e.boxes,"right"),h=r(e.boxes,"top"),f=r(e.boxes,"bottom"),M=r(e.boxes,"chartArea");i(c,!0),i(m,!1),i(h,!0),i(f,!1);var p=t-d-u,y=a-l-_,g=p/2,L=y/2,v=(t-g)/(c.length+m.length),Y=(a-L)/(h.length+f.length),b=p,k=y,D=[];n.each(c.concat(m,h,f),z);var w=0,x=0,T=0,S=0;n.each(h.concat(f),(function(e){if(e.getPadding){var t=e.getPadding();w=Math.max(w,t.left),x=Math.max(x,t.right)}})),n.each(c.concat(m),(function(e){if(e.getPadding){var t=e.getPadding();T=Math.max(T,t.top),S=Math.max(S,t.bottom)}}));var H=d,j=u,P=l,O=_;n.each(c.concat(m),N),n.each(c,(function(e){H+=e.width})),n.each(m,(function(e){j+=e.width})),n.each(h.concat(f),N),n.each(h,(function(e){P+=e.height})),n.each(f,(function(e){O+=e.height})),n.each(c.concat(m),R),H=d,j=u,P=l,O=_,n.each(c,(function(e){H+=e.width})),n.each(m,(function(e){j+=e.width})),n.each(h,(function(e){P+=e.height})),n.each(f,(function(e){O+=e.height}));var A=Math.max(w-H,0);H+=A,j+=Math.max(x-j,0);var F=Math.max(T-P,0);P+=F,O+=Math.max(S-O,0);var W=a-P-O,C=t-H-j;C===b&&W===k||(n.each(c,(function(e){e.height=W})),n.each(m,(function(e){e.height=W})),n.each(h,(function(e){e.fullWidth||(e.width=C)})),n.each(f,(function(e){e.fullWidth||(e.width=C)})),k=W,b=C);var E=d+A,I=l+F;n.each(c.concat(h),B),E+=b,I+=k,n.each(m,B),n.each(f,B),e.chartArea={left:H,top:P,right:H+b,bottom:P+k},n.each(M,(function(t){t.left=e.chartArea.left,t.top=e.chartArea.top,t.right=e.chartArea.right,t.bottom=e.chartArea.bottom,t.update(b,k)}))}function z(e){var t,a=e.isHorizontal();a?(t=e.update(e.fullWidth?p:b,Y),k-=t.height):(t=e.update(v,k),b-=t.width),D.push({horizontal:a,minSize:t,box:e})}function N(e){var t=n.findNextWhere(D,(function(t){return t.box===e}));if(t)if(e.isHorizontal()){var a={left:Math.max(H,w),right:Math.max(j,x),top:0,bottom:0};e.update(e.fullWidth?p:b,y/2,a)}else e.update(t.minSize.width,k)}function R(e){var t=n.findNextWhere(D,(function(t){return t.box===e})),a={left:0,right:0,top:P,bottom:O};t&&e.update(t.minSize.width,k,a)}function B(e){e.isHorizontal()?(e.left=e.fullWidth?d:H,e.right=e.fullWidth?t-u:H+b,e.top=I,e.bottom=I+e.height,I=e.bottom):(e.left=E,e.right=E+e.width,e.top=P,e.bottom=P+k,E=e.right)}}}},"7f33":function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("yo",{months:"Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀".split("_"),monthsShort:"Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀".split("_"),weekdays:"Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta".split("_"),weekdaysShort:"Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá".split("_"),weekdaysMin:"Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Ònì ni] LT",nextDay:"[Ọ̀la ni] LT",nextWeek:"dddd [Ọsẹ̀ tón'bọ] [ni] LT",lastDay:"[Àna ni] LT",lastWeek:"dddd [Ọsẹ̀ tólọ́] [ni] LT",sameElse:"L"},relativeTime:{future:"ní %s",past:"%s kọjá",s:"ìsẹjú aayá die",ss:"aayá %d",m:"ìsẹjú kan",mm:"ìsẹjú %d",h:"wákati kan",hh:"wákati %d",d:"ọjọ́ kan",dd:"ọjọ́ %d",M:"osù kan",MM:"osù %d",y:"ọdún kan",yy:"ọdún %d"},dayOfMonthOrdinalParse:/ọjọ́\s\d{1,2}/,ordinal:"ọjọ́ %d",week:{dow:1,doy:4}});return t}))},8155:function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
function t(e,t,a,n){var r=e+" ";switch(a){case"s":return t||n?"nekaj sekund":"nekaj sekundami";case"ss":return r+=1===e?t?"sekundo":"sekundi":2===e?t||n?"sekundi":"sekundah":e<5?t||n?"sekunde":"sekundah":"sekund",r;case"m":return t?"ena minuta":"eno minuto";case"mm":return r+=1===e?t?"minuta":"minuto":2===e?t||n?"minuti":"minutama":e<5?t||n?"minute":"minutami":t||n?"minut":"minutami",r;case"h":return t?"ena ura":"eno uro";case"hh":return r+=1===e?t?"ura":"uro":2===e?t||n?"uri":"urama":e<5?t||n?"ure":"urami":t||n?"ur":"urami",r;case"d":return t||n?"en dan":"enim dnem";case"dd":return r+=1===e?t||n?"dan":"dnem":2===e?t||n?"dni":"dnevoma":t||n?"dni":"dnevi",r;case"M":return t||n?"en mesec":"enim mesecem";case"MM":return r+=1===e?t||n?"mesec":"mesecem":2===e?t||n?"meseca":"mesecema":e<5?t||n?"mesece":"meseci":t||n?"mesecev":"meseci",r;case"y":return t||n?"eno leto":"enim letom";case"yy":return r+=1===e?t||n?"leto":"letom":2===e?t||n?"leti":"letoma":e<5?t||n?"leta":"leti":t||n?"let":"leti",r}}var a=e.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._čet._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_če_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[včeraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prejšnjo] [nedeljo] [ob] LT";case 3:return"[prejšnjo] [sredo] [ob] LT";case 6:return"[prejšnjo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prejšnji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"čez %s",past:"pred %s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});return a}))},"81e9":function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t="nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän".split(" "),a=["nolla","yhden","kahden","kolmen","neljän","viiden","kuuden",t[7],t[8],t[9]];function n(e,t,a,n){var i="";switch(a){case"s":return n?"muutaman sekunnin":"muutama sekunti";case"ss":i=n?"sekunnin":"sekuntia";break;case"m":return n?"minuutin":"minuutti";case"mm":i=n?"minuutin":"minuuttia";break;case"h":return n?"tunnin":"tunti";case"hh":i=n?"tunnin":"tuntia";break;case"d":return n?"päivän":"päivä";case"dd":i=n?"päivän":"päivää";break;case"M":return n?"kuukauden":"kuukausi";case"MM":i=n?"kuukauden":"kuukautta";break;case"y":return n?"vuoden":"vuosi";case"yy":i=n?"vuoden":"vuotta";break}return i=r(e,n)+" "+i,i}function r(e,n){return e<10?n?a[e]:t[e]:e}var i=e.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[tänään] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s päästä",past:"%s sitten",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return i}))},8230:function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},a={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},n=e.defineLocale("ar-sa",{months:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,a){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return a[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:0,doy:6}});return n}))},8378:function(e,t){var a=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=a)},"83cb":function(e,t,a){"use strict";var n=a("4438");e.exports={formatters:{values:function(e){return n.isArray(e)?e:""+e},linear:function(e,t,a){var r=a.length>3?a[2]-a[1]:a[1]-a[0];Math.abs(r)>1&&e!==Math.floor(e)&&(r=e-Math.floor(e));var i=n.log10(Math.abs(r)),s="";if(0!==e){var o=Math.max(Math.abs(a[0]),Math.abs(a[a.length-1]));if(o<1e-4){var d=n.log10(Math.abs(e));s=e.toExponential(Math.floor(d)-Math.floor(i))}else{var u=-1*Math.floor(i);u=Math.max(Math.min(u,20),0),s=e.toFixed(u)}}else s="0";return s},logarithmic:function(e,t,a){var r=e/Math.pow(10,Math.floor(n.log10(e)));return 0===e?"0":1===r||2===r||5===r||0===t||t===a.length-1?e.toExponential():""}}}},"84aa":function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("bg",{months:"януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември".split("_"),monthsShort:"яну_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек".split("_"),weekdays:"неделя_понеделник_вторник_сряда_четвъртък_петък_събота".split("_"),weekdaysShort:"нед_пон_вто_сря_чет_пет_съб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Днес в] LT",nextDay:"[Утре в] LT",nextWeek:"dddd [в] LT",lastDay:"[Вчера в] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Миналата] dddd [в] LT";case 1:case 2:case 4:case 5:return"[Миналия] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"след %s",past:"преди %s",s:"няколко секунди",ss:"%d секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дена",w:"седмица",ww:"%d седмици",M:"месец",MM:"%d месеца",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,a=e%100;return 0===e?e+"-ев":0===a?e+"-ен":a>10&&a<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}});return t}))},8689:function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t={1:"၁",2:"၂",3:"၃",4:"၄",5:"၅",6:"၆",7:"၇",8:"၈",9:"၉",0:"၀"},a={"၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","၀":"0"},n=e.defineLocale("my",{months:"ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ".split("_"),monthsShort:"ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ".split("_"),weekdays:"တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ".split("_"),weekdaysShort:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),weekdaysMin:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ယနေ.] LT [မှာ]",nextDay:"[မနက်ဖြန်] LT [မှာ]",nextWeek:"dddd LT [မှာ]",lastDay:"[မနေ.က] LT [မှာ]",lastWeek:"[ပြီးခဲ့သော] dddd LT [မှာ]",sameElse:"L"},relativeTime:{future:"လာမည့် %s မှာ",past:"လွန်ခဲ့သော %s က",s:"စက္ကန်.အနည်းငယ်",ss:"%d စက္ကန့်",m:"တစ်မိနစ်",mm:"%d မိနစ်",h:"တစ်နာရီ",hh:"%d နာရီ",d:"တစ်ရက်",dd:"%d ရက်",M:"တစ်လ",MM:"%d လ",y:"တစ်နှစ်",yy:"%d နှစ်"},preparse:function(e){return e.replace(/[၁၂၃၄၅၆၇၈၉၀]/g,(function(e){return a[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},week:{dow:1,doy:4}});return n}))},"86cc":function(e,t,a){var n=a("cb7c"),r=a("c69a"),i=a("6a99"),s=Object.defineProperty;t.f=a("9e1e")?Object.defineProperty:function(e,t,a){if(n(e),t=i(t,!0),n(a),r)try{return s(e,t,a)}catch(o){}if("get"in a||"set"in a)throw TypeError("Accessors not supported!");return"value"in a&&(e[t]=a.value),e}},8840:function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_mércores_xoves_venres_sábado".split("_"),weekdaysShort:"dom._lun._mar._mér._xov._ven._sáb.".split("_"),weekdaysMin:"do_lu_ma_mé_xo_ve_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"ás":"á")+"] LT"},nextDay:function(){return"[mañá "+(1!==this.hours()?"ás":"á")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"ás":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"á":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"ás":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(e){return 0===e.indexOf("un")?"n"+e:"en "+e},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}});return t}))},"88ce":function(e,t,a){"use strict";var n=a("4438"),r=a("1e0e"),i=a("abc1"),s=i._enabled?i:r;e.exports=n.extend({initialize:function(){},acquireContext:function(){},releaseContext:function(){},addEventListener:function(){},removeEventListener:function(){}},s)},8981:function(e,t,a){"use strict";e.exports=function(e){e.Radar=function(t,a){return a.type="radar",new e(t,a)}}},"898b":function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),a="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),n=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],r=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,i=e.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,n){return e?/-MMM-/.test(n)?a[e.month()]:t[e.month()]:t},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4},invalidDate:"Fecha inválida"});return i}))},"8b97":function(e,t,a){var n=a("d3f4"),r=a("cb7c"),i=function(e,t){if(r(e),!n(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,n){try{n=a("9b43")(Function.call,a("11e9").f(Object.prototype,"__proto__").set,2),n(e,[]),t=!(e instanceof Array)}catch(r){t=!0}return function(e,a){return i(e,a),t?e.__proto__=a:n(e,a),e}}({},!1):void 0),check:i}},"8d47":function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
function t(e){return"undefined"!==typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}var a=e.defineLocale("el",{monthsNominativeEl:"Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος".split("_"),monthsGenitiveEl:"Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου".split("_"),months:function(e,t){return e?"string"===typeof t&&/D/.test(t.substring(0,t.indexOf("MMMM")))?this._monthsGenitiveEl[e.month()]:this._monthsNominativeEl[e.month()]:this._monthsNominativeEl},monthsShort:"Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ".split("_"),weekdays:"Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο".split("_"),weekdaysShort:"Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ".split("_"),weekdaysMin:"Κυ_Δε_Τρ_Τε_Πε_Πα_Σα".split("_"),meridiem:function(e,t,a){return e>11?a?"μμ":"ΜΜ":a?"πμ":"ΠΜ"},isPM:function(e){return"μ"===(e+"").toLowerCase()[0]},meridiemParse:/[ΠΜ]\.?Μ?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[Σήμερα {}] LT",nextDay:"[Αύριο {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[Χθες {}] LT",lastWeek:function(){switch(this.day()){case 6:return"[το προηγούμενο] dddd [{}] LT";default:return"[την προηγούμενη] dddd [{}] LT"}},sameElse:"L"},calendar:function(e,a){var n=this._calendarEl[e],r=a&&a.hours();return t(n)&&(n=n.apply(a)),n.replace("{}",r%12===1?"στη":"στις")},relativeTime:{future:"σε %s",past:"%s πριν",s:"λίγα δευτερόλεπτα",ss:"%d δευτερόλεπτα",m:"ένα λεπτό",mm:"%d λεπτά",h:"μία ώρα",hh:"%d ώρες",d:"μία μέρα",dd:"%d μέρες",M:"ένας μήνας",MM:"%d μήνες",y:"ένας χρόνος",yy:"%d χρόνια"},dayOfMonthOrdinalParse:/\d{1,2}η/,ordinal:"%dη",week:{dow:1,doy:4}});return a}))},"8d57":function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),a="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_"),n=[/^sty/i,/^lut/i,/^mar/i,/^kwi/i,/^maj/i,/^cze/i,/^lip/i,/^sie/i,/^wrz/i,/^paź/i,/^lis/i,/^gru/i];function r(e){return e%10<5&&e%10>1&&~~(e/10)%10!==1}function i(e,t,a){var n=e+" ";switch(a){case"ss":return n+(r(e)?"sekundy":"sekund");case"m":return t?"minuta":"minutę";case"mm":return n+(r(e)?"minuty":"minut");case"h":return t?"godzina":"godzinę";case"hh":return n+(r(e)?"godziny":"godzin");case"ww":return n+(r(e)?"tygodnie":"tygodni");case"MM":return n+(r(e)?"miesiące":"miesięcy");case"yy":return n+(r(e)?"lata":"lat")}}var s=e.defineLocale("pl",{months:function(e,n){return e?/D MMMM/.test(n)?a[e.month()]:t[e.month()]:t},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),monthsParse:n,longMonthsParse:n,shortMonthsParse:n,weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_śr_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_Śr_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dziś o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedzielę o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W środę o] LT";case 6:return"[W sobotę o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zeszłą niedzielę o] LT";case 3:return"[W zeszłą środę o] LT";case 6:return"[W zeszłą sobotę o] LT";default:return"[W zeszły] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:i,m:i,mm:i,h:i,hh:i,d:"1 dzień",dd:"%d dni",w:"tydzień",ww:i,M:"miesiąc",MM:i,y:"rok",yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return s}))},"8d72":function(e,t,a){"use strict";e.exports={},e.exports.filler=a("be93"),e.exports.legend=a("017e"),e.exports.title=a("9a36")},"8df4":function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t={1:"۱",2:"۲",3:"۳",4:"۴",5:"۵",6:"۶",7:"۷",8:"۸",9:"۹",0:"۰"},a={"۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","۰":"0"},n=e.defineLocale("fa",{months:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),monthsShort:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),weekdays:"یکشنبه_دوشنبه_سهشنبه_چهارشنبه_پنجشنبه_جمعه_شنبه".split("_"),weekdaysShort:"یکشنبه_دوشنبه_سهشنبه_چهارشنبه_پنجشنبه_جمعه_شنبه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ج_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/قبل از ظهر|بعد از ظهر/,isPM:function(e){return/بعد از ظهر/.test(e)},meridiem:function(e,t,a){return e<12?"قبل از ظهر":"بعد از ظهر"},calendar:{sameDay:"[امروز ساعت] LT",nextDay:"[فردا ساعت] LT",nextWeek:"dddd [ساعت] LT",lastDay:"[دیروز ساعت] LT",lastWeek:"dddd [پیش] [ساعت] LT",sameElse:"L"},relativeTime:{future:"در %s",past:"%s پیش",s:"چند ثانیه",ss:"%d ثانیه",m:"یک دقیقه",mm:"%d دقیقه",h:"یک ساعت",hh:"%d ساعت",d:"یک روز",dd:"%d روز",M:"یک ماه",MM:"%d ماه",y:"یک سال",yy:"%d سال"},preparse:function(e){return e.replace(/[۰-۹]/g,(function(e){return a[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},dayOfMonthOrdinalParse:/\d{1,2}م/,ordinal:"%dم",week:{dow:6,doy:12}});return n}))},"8e73":function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},a={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},n=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},r={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},i=function(e){return function(t,a,i,s){var o=n(t),d=r[e][n(t)];return 2===o&&(d=d[a?0:1]),d.replace(/%d/i,t)}},s=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"],o=e.defineLocale("ar",{months:s,monthsShort:s,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,a){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:i("s"),ss:i("s"),m:i("m"),mm:i("m"),h:i("h"),hh:i("h"),d:i("d"),dd:i("d"),M:i("M"),MM:i("M"),y:i("y"),yy:i("y")},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return a[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}});return o}))},9043:function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},a={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"},n=e.defineLocale("bn",{months:"জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি".split("_"),weekdaysMin:"রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সময়",LLLL:"dddd, D MMMM YYYY, A h:mm সময়"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",ss:"%d সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(e){return e.replace(/[১২৩৪৫৬৭৮৯০]/g,(function(e){return a[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/রাত|সকাল|দুপুর|বিকাল|রাত/,meridiemHour:function(e,t){return 12===e&&(e=0),"রাত"===t&&e>=4||"দুপুর"===t&&e<5||"বিকাল"===t?e+12:e},meridiem:function(e,t,a){return e<4?"রাত":e<10?"সকাল":e<17?"দুপুর":e<20?"বিকাল":"রাত"},week:{dow:0,doy:6}});return n}))},9093:function(e,t,a){var n=a("ce10"),r=a("e11e").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,r)}},"90ea":function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,a){var n=100*e+t;return n<600?"凌晨":n<900?"早上":n<1130?"上午":n<1230?"中午":n<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}});return t}))},"957c":function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
function t(e,t){var a=e.split("_");return t%10===1&&t%100!==11?a[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?a[1]:a[2]}function a(e,a,n){var r={ss:a?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:a?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",ww:"неделя_недели_недель",MM:"месяц_месяца_месяцев",yy:"год_года_лет"};return"m"===n?a?"минута":"минуту":e+" "+t(r[n],+e)}var n=[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i],r=e.defineLocale("ru",{months:{format:"января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),standalone:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_")},monthsShort:{format:"янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),standalone:"янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_")},weekdays:{standalone:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),format:"воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу".split("_"),isFormat:/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?] ?dddd/},weekdaysShort:"вс_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),monthsParse:n,longMonthsParse:n,shortMonthsParse:n,monthsRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsShortRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsStrictRegex:/^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,monthsShortStrictRegex:/^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},calendar:{sameDay:"[Сегодня, в] LT",nextDay:"[Завтра, в] LT",lastDay:"[Вчера, в] LT",nextWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";switch(this.day()){case 0:return"[В следующее] dddd, [в] LT";case 1:case 2:case 4:return"[В следующий] dddd, [в] LT";case 3:case 5:case 6:return"[В следующую] dddd, [в] LT"}},lastWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";switch(this.day()){case 0:return"[В прошлое] dddd, [в] LT";case 1:case 2:case 4:return"[В прошлый] dddd, [в] LT";case 3:case 5:case 6:return"[В прошлую] dddd, [в] LT"}},sameElse:"L"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",ss:a,m:a,mm:a,h:"час",hh:a,d:"день",dd:a,w:"неделя",ww:a,M:"месяц",MM:a,y:"год",yy:a},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(e){return/^(дня|вечера)$/.test(e)},meridiem:function(e,t,a){return e<4?"ночи":e<12?"утра":e<17?"дня":"вечера"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го|я)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":return e+"-й";case"D":return e+"-го";case"w":case"W":return e+"-я";default:return e}},week:{dow:1,doy:4}});return r}))},"958b":function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
function t(e,t,a,n){switch(a){case"s":return t?"хэдхэн секунд":"хэдхэн секундын";case"ss":return e+(t?" секунд":" секундын");case"m":case"mm":return e+(t?" минут":" минутын");case"h":case"hh":return e+(t?" цаг":" цагийн");case"d":case"dd":return e+(t?" өдөр":" өдрийн");case"M":case"MM":return e+(t?" сар":" сарын");case"y":case"yy":return e+(t?" жил":" жилийн");default:return e}}var a=e.defineLocale("mn",{months:"Нэгдүгээр сар_Хоёрдугаар сар_Гуравдугаар сар_Дөрөвдүгээр сар_Тавдугаар сар_Зургадугаар сар_Долдугаар сар_Наймдугаар сар_Есдүгээр сар_Аравдугаар сар_Арван нэгдүгээр сар_Арван хоёрдугаар сар".split("_"),monthsShort:"1 сар_2 сар_3 сар_4 сар_5 сар_6 сар_7 сар_8 сар_9 сар_10 сар_11 сар_12 сар".split("_"),monthsParseExact:!0,weekdays:"Ням_Даваа_Мягмар_Лхагва_Пүрэв_Баасан_Бямба".split("_"),weekdaysShort:"Ням_Дав_Мяг_Лха_Пүр_Баа_Бям".split("_"),weekdaysMin:"Ня_Да_Мя_Лх_Пү_Ба_Бя".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY оны MMMMын D",LLL:"YYYY оны MMMMын D HH:mm",LLLL:"dddd, YYYY оны MMMMын D HH:mm"},meridiemParse:/ҮӨ|ҮХ/i,isPM:function(e){return"ҮХ"===e},meridiem:function(e,t,a){return e<12?"ҮӨ":"ҮХ"},calendar:{sameDay:"[Өнөөдөр] LT",nextDay:"[Маргааш] LT",nextWeek:"[Ирэх] dddd LT",lastDay:"[Өчигдөр] LT",lastWeek:"[Өнгөрсөн] dddd LT",sameElse:"L"},relativeTime:{future:"%s дараа",past:"%s өмнө",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2} өдөр/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+" өдөр";default:return e}}});return a}))},9609:function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t={0:"-чү",1:"-чи",2:"-чи",3:"-чү",4:"-чү",5:"-чи",6:"-чы",7:"-чи",8:"-чи",9:"-чу",10:"-чу",20:"-чы",30:"-чу",40:"-чы",50:"-чү",60:"-чы",70:"-чи",80:"-чи",90:"-чу",100:"-чү"},a=e.defineLocale("ky",{months:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),monthsShort:"янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек".split("_"),weekdays:"Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби".split("_"),weekdaysShort:"Жек_Дүй_Шей_Шар_Бей_Жум_Ише".split("_"),weekdaysMin:"Жк_Дй_Шй_Шр_Бй_Жм_Иш".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгүн саат] LT",nextDay:"[Эртең саат] LT",nextWeek:"dddd [саат] LT",lastDay:"[Кечээ саат] LT",lastWeek:"[Өткөн аптанын] dddd [күнү] [саат] LT",sameElse:"L"},relativeTime:{future:"%s ичинде",past:"%s мурун",s:"бирнече секунд",ss:"%d секунд",m:"бир мүнөт",mm:"%d мүнөт",h:"бир саат",hh:"%d саат",d:"бир күн",dd:"%d күн",M:"бир ай",MM:"%d ай",y:"бир жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(чи|чы|чү|чу)/,ordinal:function(e){var a=e%10,n=e>=100?100:null;return e+(t[e]||t[a]||t[n])},week:{dow:1,doy:7}});return a}))},9686:function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},a={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"},n=e.defineLocale("bn-bd",{months:"জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি".split("_"),weekdaysMin:"রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সময়",LLLL:"dddd, D MMMM YYYY, A h:mm সময়"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",ss:"%d সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(e){return e.replace(/[১২৩৪৫৬৭৮৯০]/g,(function(e){return a[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/রাত|ভোর|সকাল|দুপুর|বিকাল|সন্ধ্যা|রাত/,meridiemHour:function(e,t){return 12===e&&(e=0),"রাত"===t?e<4?e:e+12:"ভোর"===t||"সকাল"===t?e:"দুপুর"===t?e>=3?e:e+12:"বিকাল"===t||"সন্ধ্যা"===t?e+12:void 0},meridiem:function(e,t,a){return e<4?"রাত":e<6?"ভোর":e<12?"সকাল":e<15?"দুপুর":e<18?"বিকাল":e<20?"সন্ধ্যা":"রাত"},week:{dow:0,doy:6}});return n}))},"972c":function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
function t(e,t,a){var n={ss:"secunde",mm:"minute",hh:"ore",dd:"zile",ww:"săptămâni",MM:"luni",yy:"ani"},r=" ";return(e%100>=20||e>=100&&e%100===0)&&(r=" de "),e+r+n[a]}var a=e.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminică_luni_marți_miercuri_joi_vineri_sâmbătă".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_Sâm".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_Sâ".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[mâine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s în urmă",s:"câteva secunde",ss:t,m:"un minut",mm:t,h:"o oră",hh:t,d:"o zi",dd:t,w:"o săptămână",ww:t,M:"o lună",MM:t,y:"un an",yy:t},week:{dow:1,doy:7}});return a}))},9797:function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn ôl",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(e){var t=e,a="",n=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"];return t>20?a=40===t||50===t||60===t||80===t||100===t?"fed":"ain":t>0&&(a=n[t]),e+a},week:{dow:1,doy:4}});return t}))},"9a02":function(e,t,a){var n=a("4f4d");function r(e){if(e){var t=/^#([a-fA-F0-9]{3,4})$/i,a=/^#([a-fA-F0-9]{6}([a-fA-F0-9]{2})?)$/i,r=/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i,i=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i,s=/(\w+)/,o=[0,0,0],d=1,u=e.match(t),l="";if(u){u=u[1],l=u[3];for(var _=0;_<o.length;_++)o[_]=parseInt(u[_]+u[_],16);l&&(d=Math.round(parseInt(l+l,16)/255*100)/100)}else if(u=e.match(a)){l=u[2],u=u[1];for(_=0;_<o.length;_++)o[_]=parseInt(u.slice(2*_,2*_+2),16);l&&(d=Math.round(parseInt(l,16)/255*100)/100)}else if(u=e.match(r)){for(_=0;_<o.length;_++)o[_]=parseInt(u[_+1]);d=parseFloat(u[4])}else if(u=e.match(i)){for(_=0;_<o.length;_++)o[_]=Math.round(2.55*parseFloat(u[_+1]));d=parseFloat(u[4])}else if(u=e.match(s)){if("transparent"==u[1])return[0,0,0,0];if(o=n[u[1]],!o)return}for(_=0;_<o.length;_++)o[_]=g(o[_],0,255);return d=d||0==d?g(d,0,1):1,o[3]=d,o}}function i(e){if(e){var t=/^hsla?\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/,a=e.match(t);if(a){var n=parseFloat(a[4]),r=g(parseInt(a[1]),0,360),i=g(parseFloat(a[2]),0,100),s=g(parseFloat(a[3]),0,100),o=g(isNaN(n)?1:n,0,1);return[r,i,s,o]}}}function s(e){if(e){var t=/^hwb\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/,a=e.match(t);if(a){var n=parseFloat(a[4]),r=g(parseInt(a[1]),0,360),i=g(parseFloat(a[2]),0,100),s=g(parseFloat(a[3]),0,100),o=g(isNaN(n)?1:n,0,1);return[r,i,s,o]}}}function o(e){var t=r(e);return t&&t.slice(0,3)}function d(e){var t=i(e);return t&&t.slice(0,3)}function u(e){var t=r(e);return t||(t=i(e))||(t=s(e))?t[3]:void 0}function l(e,t){t=void 0!==t&&3===e.length?t:e[3];return"#"+L(e[0])+L(e[1])+L(e[2])+(t>=0&&t<1?L(Math.round(255*t)):"")}function _(e,t){return t<1||e[3]&&e[3]<1?c(e,t):"rgb("+e[0]+", "+e[1]+", "+e[2]+")"}function c(e,t){return void 0===t&&(t=void 0!==e[3]?e[3]:1),"rgba("+e[0]+", "+e[1]+", "+e[2]+", "+t+")"}function m(e,t){if(t<1||e[3]&&e[3]<1)return h(e,t);var a=Math.round(e[0]/255*100),n=Math.round(e[1]/255*100),r=Math.round(e[2]/255*100);return"rgb("+a+"%, "+n+"%, "+r+"%)"}function h(e,t){var a=Math.round(e[0]/255*100),n=Math.round(e[1]/255*100),r=Math.round(e[2]/255*100);return"rgba("+a+"%, "+n+"%, "+r+"%, "+(t||e[3]||1)+")"}function f(e,t){return t<1||e[3]&&e[3]<1?M(e,t):"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)"}function M(e,t){return void 0===t&&(t=void 0!==e[3]?e[3]:1),"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+t+")"}function p(e,t){return void 0===t&&(t=void 0!==e[3]?e[3]:1),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+(void 0!==t&&1!==t?", "+t:"")+")"}function y(e){return v[e.slice(0,3)]}function g(e,t,a){return Math.min(Math.max(t,e),a)}function L(e){var t=e.toString(16).toUpperCase();return t.length<2?"0"+t:t}e.exports={getRgba:r,getHsla:i,getRgb:o,getHsl:d,getHwb:s,getAlpha:u,hexString:l,rgbString:_,rgbaString:c,percentString:m,percentaString:h,hslString:f,hslaString:M,hwbString:p,keyword:y};var v={};for(var Y in n)v[n[Y]]=Y},"9a36":function(e,t,a){"use strict";var n=a("0832"),r=a("2b61"),i=a("4438"),s=a("7c42"),o=i.noop;n._set("global",{title:{display:!1,fontStyle:"bold",fullWidth:!0,lineHeight:1.2,padding:10,position:"top",text:"",weight:2e3}});var d=r.extend({initialize:function(e){var t=this;i.extend(t,e),t.legendHitBoxes=[]},beforeUpdate:o,update:function(e,t,a){var n=this;return n.beforeUpdate(),n.maxWidth=e,n.maxHeight=t,n.margins=a,n.beforeSetDimensions(),n.setDimensions(),n.afterSetDimensions(),n.beforeBuildLabels(),n.buildLabels(),n.afterBuildLabels(),n.beforeFit(),n.fit(),n.afterFit(),n.afterUpdate(),n.minSize},afterUpdate:o,beforeSetDimensions:o,setDimensions:function(){var e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(e.height=e.maxHeight,e.top=0,e.bottom=e.height),e.paddingLeft=0,e.paddingTop=0,e.paddingRight=0,e.paddingBottom=0,e.minSize={width:0,height:0}},afterSetDimensions:o,beforeBuildLabels:o,buildLabels:o,afterBuildLabels:o,beforeFit:o,fit:function(){var e=this,t=i.valueOrDefault,a=e.options,r=a.display,s=t(a.fontSize,n.global.defaultFontSize),o=e.minSize,d=i.isArray(a.text)?a.text.length:1,u=i.options.toLineHeight(a.lineHeight,s),l=r?d*u+2*a.padding:0;e.isHorizontal()?(o.width=e.maxWidth,o.height=l):(o.width=l,o.height=e.maxHeight),e.width=o.width,e.height=o.height},afterFit:o,isHorizontal:function(){var e=this.options.position;return"top"===e||"bottom"===e},draw:function(){var e=this,t=e.ctx,a=i.valueOrDefault,r=e.options,s=n.global;if(r.display){var o,d,u,l=a(r.fontSize,s.defaultFontSize),_=a(r.fontStyle,s.defaultFontStyle),c=a(r.fontFamily,s.defaultFontFamily),m=i.fontString(l,_,c),h=i.options.toLineHeight(r.lineHeight,l),f=h/2+r.padding,M=0,p=e.top,y=e.left,g=e.bottom,L=e.right;t.fillStyle=a(r.fontColor,s.defaultFontColor),t.font=m,e.isHorizontal()?(d=y+(L-y)/2,u=p+f,o=L-y):(d="left"===r.position?y+f:L-f,u=p+(g-p)/2,o=g-p,M=Math.PI*("left"===r.position?-.5:.5)),t.save(),t.translate(d,u),t.rotate(M),t.textAlign="center",t.textBaseline="middle";var v=r.text;if(i.isArray(v))for(var Y=0,b=0;b<v.length;++b)t.fillText(v[b],0,Y,o),Y+=h;else t.fillText(v,0,0,o);t.restore()}}});function u(e,t){var a=new d({ctx:e.ctx,options:t,chart:e});s.configure(e,a,t),s.addBox(e,a),e.titleBlock=a}e.exports={id:"title",_element:d,beforeInit:function(e){var t=e.options.title;t&&u(e,t)},beforeUpdate:function(e){var t=e.options.title,a=e.titleBlock;t?(i.mergeIf(t,n.global.title),a?(s.configure(e,a,t),a.options=t):u(e,t)):a&&(s.removeBox(e,a),delete e.titleBlock)}}},"9a5a":function(e,t,a){"use strict";var n=a("4438");function r(e,t){return e.native?{x:e.x,y:e.y}:n.getRelativePosition(e,t)}function i(e,t){var a,n,r,i,s,o=e.data.datasets;for(n=0,i=o.length;n<i;++n)if(e.isDatasetVisible(n))for(a=e.getDatasetMeta(n),r=0,s=a.data.length;r<s;++r){var d=a.data[r];d._view.skip||t(d)}}function s(e,t){var a=[];return i(e,(function(e){e.inRange(t.x,t.y)&&a.push(e)})),a}function o(e,t,a,n){var r=Number.POSITIVE_INFINITY,s=[];return i(e,(function(e){if(!a||e.inRange(t.x,t.y)){var i=e.getCenterPoint(),o=n(t,i);o<r?(s=[e],r=o):o===r&&s.push(e)}})),s}function d(e){var t=-1!==e.indexOf("x"),a=-1!==e.indexOf("y");return function(e,n){var r=t?Math.abs(e.x-n.x):0,i=a?Math.abs(e.y-n.y):0;return Math.sqrt(Math.pow(r,2)+Math.pow(i,2))}}function u(e,t,a){var n=r(t,e);a.axis=a.axis||"x";var i=d(a.axis),u=a.intersect?s(e,n):o(e,n,!1,i),l=[];return u.length?(e.data.datasets.forEach((function(t,a){if(e.isDatasetVisible(a)){var n=e.getDatasetMeta(a),r=n.data[u[0]._index];r&&!r._view.skip&&l.push(r)}})),l):[]}e.exports={modes:{single:function(e,t){var a=r(t,e),n=[];return i(e,(function(e){if(e.inRange(a.x,a.y))return n.push(e),n})),n.slice(0,1)},label:u,index:u,dataset:function(e,t,a){var n=r(t,e);a.axis=a.axis||"xy";var i=d(a.axis),u=a.intersect?s(e,n):o(e,n,!1,i);return u.length>0&&(u=e.getDatasetMeta(u[0]._datasetIndex).data),u},"x-axis":function(e,t){return u(e,t,{intersect:!1})},point:function(e,t){var a=r(t,e);return s(e,a)},nearest:function(e,t,a){var n=r(t,e);a.axis=a.axis||"xy";var i=d(a.axis),s=o(e,n,a.intersect,i);return s.length>1&&s.sort((function(e,t){var a=e.getArea(),n=t.getArea(),r=a-n;return 0===r&&(r=e._datasetIndex-t._datasetIndex),r})),s.slice(0,1)},x:function(e,t,a){var n=r(t,e),s=[],o=!1;return i(e,(function(e){e.inXRange(n.x)&&s.push(e),e.inRange(n.x,n.y)&&(o=!0)})),a.intersect&&!o&&(s=[]),s},y:function(e,t,a){var n=r(t,e),s=[],o=!1;return i(e,(function(e){e.inYRange(n.y)&&s.push(e),e.inRange(n.x,n.y)&&(o=!0)})),a.intersect&&!o&&(s=[]),s}}}},"9b43":function(e,t,a){var n=a("d8e8");e.exports=function(e,t,a){if(n(e),void 0===t)return e;switch(a){case 1:return function(a){return e.call(t,a)};case 2:return function(a,n){return e.call(t,a,n)};case 3:return function(a,n,r){return e.call(t,a,n,r)}}return function(){return e.apply(t,arguments)}}},"9c35":function(e,t,a){"use strict";var n=a("eb0c"),r=a("0832"),i=a("4438"),s=a("b631");e.exports=function(){function e(e,t,a){var n;return"string"===typeof e?(n=parseInt(e,10),-1!==e.indexOf("%")&&(n=n/100*t.parentNode[a])):n=e,n}function t(e){return void 0!==e&&null!==e&&"none"!==e}function a(a,n,r){var s=document.defaultView,o=i._getParentNode(a),d=s.getComputedStyle(a)[n],u=s.getComputedStyle(o)[n],l=t(d),_=t(u),c=Number.POSITIVE_INFINITY;return l||_?Math.min(l?e(d,a,r):c,_?e(u,o,r):c):"none"}i.configMerge=function(){return i.merge(i.clone(arguments[0]),[].slice.call(arguments,1),{merger:function(e,t,a,n){var r=t[e]||{},o=a[e];"scales"===e?t[e]=i.scaleMerge(r,o):"scale"===e?t[e]=i.merge(r,[s.getScaleDefaults(o.type),o]):i._merger(e,t,a,n)}})},i.scaleMerge=function(){return i.merge(i.clone(arguments[0]),[].slice.call(arguments,1),{merger:function(e,t,a,n){if("xAxes"===e||"yAxes"===e){var r,o,d,u=a[e].length;for(t[e]||(t[e]=[]),r=0;r<u;++r)d=a[e][r],o=i.valueOrDefault(d.type,"xAxes"===e?"category":"linear"),r>=t[e].length&&t[e].push({}),!t[e][r].type||d.type&&d.type!==t[e][r].type?i.merge(t[e][r],[s.getScaleDefaults(o),d]):i.merge(t[e][r],d)}else i._merger(e,t,a,n)}})},i.where=function(e,t){if(i.isArray(e)&&Array.prototype.filter)return e.filter(t);var a=[];return i.each(e,(function(e){t(e)&&a.push(e)})),a},i.findIndex=Array.prototype.findIndex?function(e,t,a){return e.findIndex(t,a)}:function(e,t,a){a=void 0===a?e:a;for(var n=0,r=e.length;n<r;++n)if(t.call(a,e[n],n,e))return n;return-1},i.findNextWhere=function(e,t,a){i.isNullOrUndef(a)&&(a=-1);for(var n=a+1;n<e.length;n++){var r=e[n];if(t(r))return r}},i.findPreviousWhere=function(e,t,a){i.isNullOrUndef(a)&&(a=e.length);for(var n=a-1;n>=0;n--){var r=e[n];if(t(r))return r}},i.isNumber=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},i.almostEquals=function(e,t,a){return Math.abs(e-t)<a},i.almostWhole=function(e,t){var a=Math.round(e);return a-t<e&&a+t>e},i.max=function(e){return e.reduce((function(e,t){return isNaN(t)?e:Math.max(e,t)}),Number.NEGATIVE_INFINITY)},i.min=function(e){return e.reduce((function(e,t){return isNaN(t)?e:Math.min(e,t)}),Number.POSITIVE_INFINITY)},i.sign=Math.sign?function(e){return Math.sign(e)}:function(e){return e=+e,0===e||isNaN(e)?e:e>0?1:-1},i.log10=Math.log10?function(e){return Math.log10(e)}:function(e){var t=Math.log(e)*Math.LOG10E,a=Math.round(t),n=e===Math.pow(10,a);return n?a:t},i.toRadians=function(e){return e*(Math.PI/180)},i.toDegrees=function(e){return e*(180/Math.PI)},i.getAngleFromPoint=function(e,t){var a=t.x-e.x,n=t.y-e.y,r=Math.sqrt(a*a+n*n),i=Math.atan2(n,a);return i<-.5*Math.PI&&(i+=2*Math.PI),{angle:i,distance:r}},i.distanceBetweenPoints=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},i.aliasPixel=function(e){return e%2===0?0:.5},i.splineCurve=function(e,t,a,n){var r=e.skip?t:e,i=t,s=a.skip?t:a,o=Math.sqrt(Math.pow(i.x-r.x,2)+Math.pow(i.y-r.y,2)),d=Math.sqrt(Math.pow(s.x-i.x,2)+Math.pow(s.y-i.y,2)),u=o/(o+d),l=d/(o+d);u=isNaN(u)?0:u,l=isNaN(l)?0:l;var _=n*u,c=n*l;return{previous:{x:i.x-_*(s.x-r.x),y:i.y-_*(s.y-r.y)},next:{x:i.x+c*(s.x-r.x),y:i.y+c*(s.y-r.y)}}},i.EPSILON=Number.EPSILON||1e-14,i.splineCurveMonotone=function(e){var t,a,n,r,s,o,d,u,l,_=(e||[]).map((function(e){return{model:e._model,deltaK:0,mK:0}})),c=_.length;for(t=0;t<c;++t)if(n=_[t],!n.model.skip){if(a=t>0?_[t-1]:null,r=t<c-1?_[t+1]:null,r&&!r.model.skip){var m=r.model.x-n.model.x;n.deltaK=0!==m?(r.model.y-n.model.y)/m:0}!a||a.model.skip?n.mK=n.deltaK:!r||r.model.skip?n.mK=a.deltaK:this.sign(a.deltaK)!==this.sign(n.deltaK)?n.mK=0:n.mK=(a.deltaK+n.deltaK)/2}for(t=0;t<c-1;++t)n=_[t],r=_[t+1],n.model.skip||r.model.skip||(i.almostEquals(n.deltaK,0,this.EPSILON)?n.mK=r.mK=0:(s=n.mK/n.deltaK,o=r.mK/n.deltaK,u=Math.pow(s,2)+Math.pow(o,2),u<=9||(d=3/Math.sqrt(u),n.mK=s*d*n.deltaK,r.mK=o*d*n.deltaK)));for(t=0;t<c;++t)n=_[t],n.model.skip||(a=t>0?_[t-1]:null,r=t<c-1?_[t+1]:null,a&&!a.model.skip&&(l=(n.model.x-a.model.x)/3,n.model.controlPointPreviousX=n.model.x-l,n.model.controlPointPreviousY=n.model.y-l*n.mK),r&&!r.model.skip&&(l=(r.model.x-n.model.x)/3,n.model.controlPointNextX=n.model.x+l,n.model.controlPointNextY=n.model.y+l*n.mK))},i.nextItem=function(e,t,a){return a?t>=e.length-1?e[0]:e[t+1]:t>=e.length-1?e[e.length-1]:e[t+1]},i.previousItem=function(e,t,a){return a?t<=0?e[e.length-1]:e[t-1]:t<=0?e[0]:e[t-1]},i.niceNum=function(e,t){var a,n=Math.floor(i.log10(e)),r=e/Math.pow(10,n);return a=t?r<1.5?1:r<3?2:r<7?5:10:r<=1?1:r<=2?2:r<=5?5:10,a*Math.pow(10,n)},i.requestAnimFrame=function(){return"undefined"===typeof window?function(e){e()}:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e){return window.setTimeout(e,1e3/60)}}(),i.getRelativePosition=function(e,t){var a,n,r=e.originalEvent||e,s=e.target||e.srcElement,o=s.getBoundingClientRect(),d=r.touches;d&&d.length>0?(a=d[0].clientX,n=d[0].clientY):(a=r.clientX,n=r.clientY);var u=parseFloat(i.getStyle(s,"padding-left")),l=parseFloat(i.getStyle(s,"padding-top")),_=parseFloat(i.getStyle(s,"padding-right")),c=parseFloat(i.getStyle(s,"padding-bottom")),m=o.right-o.left-u-_,h=o.bottom-o.top-l-c;return a=Math.round((a-o.left-u)/m*s.width/t.currentDevicePixelRatio),n=Math.round((n-o.top-l)/h*s.height/t.currentDevicePixelRatio),{x:a,y:n}},i.getConstraintWidth=function(e){return a(e,"max-width","clientWidth")},i.getConstraintHeight=function(e){return a(e,"max-height","clientHeight")},i._calculatePadding=function(e,t,a){return t=i.getStyle(e,t),t.indexOf("%")>-1?a/parseInt(t,10):parseInt(t,10)},i._getParentNode=function(e){var t=e.parentNode;return t&&t.host&&(t=t.host),t},i.getMaximumWidth=function(e){var t=i._getParentNode(e);if(!t)return e.clientWidth;var a=t.clientWidth,n=i._calculatePadding(t,"padding-left",a),r=i._calculatePadding(t,"padding-right",a),s=a-n-r,o=i.getConstraintWidth(e);return isNaN(o)?s:Math.min(s,o)},i.getMaximumHeight=function(e){var t=i._getParentNode(e);if(!t)return e.clientHeight;var a=t.clientHeight,n=i._calculatePadding(t,"padding-top",a),r=i._calculatePadding(t,"padding-bottom",a),s=a-n-r,o=i.getConstraintHeight(e);return isNaN(o)?s:Math.min(s,o)},i.getStyle=function(e,t){return e.currentStyle?e.currentStyle[t]:document.defaultView.getComputedStyle(e,null).getPropertyValue(t)},i.retinaScale=function(e,t){var a=e.currentDevicePixelRatio=t||"undefined"!==typeof window&&window.devicePixelRatio||1;if(1!==a){var n=e.canvas,r=e.height,i=e.width;n.height=r*a,n.width=i*a,e.ctx.scale(a,a),n.style.height||n.style.width||(n.style.height=r+"px",n.style.width=i+"px")}},i.fontString=function(e,t,a){return t+" "+e+"px "+a},i.longestText=function(e,t,a,n){n=n||{};var r=n.data=n.data||{},s=n.garbageCollect=n.garbageCollect||[];n.font!==t&&(r=n.data={},s=n.garbageCollect=[],n.font=t),e.font=t;var o=0;i.each(a,(function(t){void 0!==t&&null!==t&&!0!==i.isArray(t)?o=i.measureText(e,r,s,o,t):i.isArray(t)&&i.each(t,(function(t){void 0===t||null===t||i.isArray(t)||(o=i.measureText(e,r,s,o,t))}))}));var d=s.length/2;if(d>a.length){for(var u=0;u<d;u++)delete r[s[u]];s.splice(0,d)}return o},i.measureText=function(e,t,a,n,r){var i=t[r];return i||(i=t[r]=e.measureText(r).width,a.push(r)),i>n&&(n=i),n},i.numberOfLabelLines=function(e){var t=1;return i.each(e,(function(e){i.isArray(e)&&e.length>t&&(t=e.length)})),t},i.color=n?function(e){return e instanceof CanvasGradient&&(e=r.global.defaultColor),n(e)}:function(e){return console.error("Color.js not found!"),e},i.getHoverColor=function(e){return e instanceof CanvasPattern?e:i.color(e).saturate(.5).darken(.1).rgbString()}}},"9def":function(e,t,a){var n=a("4588"),r=Math.min;e.exports=function(e){return e>0?r(n(e),9007199254740991):0}},"9e1e":function(e,t,a){e.exports=!a("79e5")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},"9f26":function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,a=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,n=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,r=[/^janv/i,/^févr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^août/i,/^sept/i,/^oct/i,/^nov/i,/^déc/i],i=e.defineLocale("fr",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsRegex:n,monthsShortRegex:n,monthsStrictRegex:t,monthsShortStrictRegex:a,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",w:"une semaine",ww:"%d semaines",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(e,t){switch(t){case"D":return e+(1===e?"er":"");default:case"M":case"Q":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}});return i}))},a279:function(e,t,a){var n=a("b753");function r(){for(var e={},t=Object.keys(n),a=t.length,r=0;r<a;r++)e[t[r]]={distance:-1,parent:null};return e}function i(e){var t=r(),a=[e];t[e].distance=0;while(a.length)for(var i=a.pop(),s=Object.keys(n[i]),o=s.length,d=0;d<o;d++){var u=s[d],l=t[u];-1===l.distance&&(l.distance=t[i].distance+1,l.parent=i,a.unshift(u))}return t}function s(e,t){return function(a){return t(e(a))}}function o(e,t){var a=[t[e].parent,e],r=n[t[e].parent][e],i=t[e].parent;while(t[i].parent)a.unshift(t[i].parent),r=s(n[t[i].parent][i],r),i=t[i].parent;return r.conversion=a,r}e.exports=function(e){for(var t=i(e),a={},n=Object.keys(t),r=n.length,s=0;s<r;s++){var d=n[s],u=t[d];null!==u.parent&&(a[d]=o(d,t))}return a}},a356:function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},a={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},n=function(e){return function(n,r,i,s){var o=t(n),d=a[e][t(n)];return 2===o&&(d=d[r?0:1]),d.replace(/%d/i,n)}},r=["جانفي","فيفري","مارس","أفريل","ماي","جوان","جويلية","أوت","سبتمبر","أكتوبر","نوفمبر","ديسمبر"],i=e.defineLocale("ar-dz",{months:r,monthsShort:r,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,a){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:n("s"),ss:n("s"),m:n("m"),mm:n("m"),h:n("h"),hh:n("h"),d:n("d"),dd:n("d"),M:n("M"),MM:n("M"),y:n("y"),yy:n("y")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:0,doy:4}});return i}))},a5a3:function(e,t,a){"use strict";var n=a("4438"),r=a("71db");function i(e,t){var a,r,i,s=[];if(e.stepSize&&e.stepSize>0)i=e.stepSize;else{var o=n.niceNum(t.max-t.min,!1);i=n.niceNum(o/(e.maxTicks-1),!0),r=e.precision,void 0!==r&&(a=Math.pow(10,r),i=Math.ceil(i*a)/a)}var d=Math.floor(t.min/i)*i,u=Math.ceil(t.max/i)*i;n.isNullOrUndef(e.min)||n.isNullOrUndef(e.max)||!e.stepSize||n.almostWhole((e.max-e.min)/e.stepSize,i/1e3)&&(d=e.min,u=e.max);var l=(u-d)/i;l=n.almostEquals(l,Math.round(l),i/1e3)?Math.round(l):Math.ceil(l),r=1,i<1&&(r=Math.pow(10,1-Math.floor(n.log10(i))),d=Math.round(d*r)/r,u=Math.round(u*r)/r),s.push(void 0!==e.min?e.min:d);for(var _=1;_<l;++_)s.push(Math.round((d+_*i)*r)/r);return s.push(void 0!==e.max?e.max:u),s}e.exports=function(e){var t=n.noop;e.LinearScaleBase=r.extend({getRightValue:function(e){return"string"===typeof e?+e:r.prototype.getRightValue.call(this,e)},handleTickRangeOptions:function(){var e=this,t=e.options,a=t.ticks;if(a.beginAtZero){var r=n.sign(e.min),i=n.sign(e.max);r<0&&i<0?e.max=0:r>0&&i>0&&(e.min=0)}var s=void 0!==a.min||void 0!==a.suggestedMin,o=void 0!==a.max||void 0!==a.suggestedMax;void 0!==a.min?e.min=a.min:void 0!==a.suggestedMin&&(null===e.min?e.min=a.suggestedMin:e.min=Math.min(e.min,a.suggestedMin)),void 0!==a.max?e.max=a.max:void 0!==a.suggestedMax&&(null===e.max?e.max=a.suggestedMax:e.max=Math.max(e.max,a.suggestedMax)),s!==o&&e.min>=e.max&&(s?e.max=e.min+1:e.min=e.max-1),e.min===e.max&&(e.max++,a.beginAtZero||e.min--)},getTickLimit:t,handleDirectionalChanges:t,buildTicks:function(){var e=this,t=e.options,a=t.ticks,r=e.getTickLimit();r=Math.max(2,r);var s={maxTicks:r,min:a.min,max:a.max,precision:a.precision,stepSize:n.valueOrDefault(a.fixedStepSize,a.stepSize)},o=e.ticks=i(s,e);e.handleDirectionalChanges(),e.max=n.max(o),e.min=n.min(o),a.reverse?(o.reverse(),e.start=e.max,e.end=e.min):(e.start=e.min,e.end=e.max)},convertTicksToLabels:function(){var e=this;e.ticksAsNumbers=e.ticks.slice(),e.zeroLineIndex=e.ticks.indexOf(0),r.prototype.convertTicksToLabels.call(e)}})}},a7fa:function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des".split("_"),weekdays:"Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm"},calendar:{sameDay:"[Bi lɛrɛ] LT",nextDay:"[Sini lɛrɛ] LT",nextWeek:"dddd [don lɛrɛ] LT",lastDay:"[Kunu lɛrɛ] LT",lastWeek:"dddd [tɛmɛnen lɛrɛ] LT",sameElse:"L"},relativeTime:{future:"%s kɔnɔ",past:"a bɛ %s bɔ",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"lɛrɛ kelen",hh:"lɛrɛ %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}});return t}))},aa77:function(e,t,a){var n=a("5ca1"),r=a("be13"),i=a("79e5"),s=a("fdef"),o="["+s+"]",d="
",u=RegExp("^"+o+o+"*"),l=RegExp(o+o+"*$"),_=function(e,t,a){var r={},o=i((function(){return!!s[e]()||d[e]()!=d})),u=r[e]=o?t(c):s[e];a&&(r[a]=u),n(n.P+n.F*o,"String",r)},c=_.trim=function(e,t){return e=String(r(e)),1&t&&(e=e.replace(u,"")),2&t&&(e=e.replace(l,"")),e};e.exports=_},aaf2:function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
function t(e,t,a,n){var r={s:["थोडया सॅकंडांनी","थोडे सॅकंड"],ss:[e+" सॅकंडांनी",e+" सॅकंड"],m:["एका मिणटान","एक मिनूट"],mm:[e+" मिणटांनी",e+" मिणटां"],h:["एका वरान","एक वर"],hh:[e+" वरांनी",e+" वरां"],d:["एका दिसान","एक दीस"],dd:[e+" दिसांनी",e+" दीस"],M:["एका म्हयन्यान","एक म्हयनो"],MM:[e+" म्हयन्यानी",e+" म्हयने"],y:["एका वर्सान","एक वर्स"],yy:[e+" वर्सांनी",e+" वर्सां"]};return n?r[a][0]:r[a][1]}var a=e.defineLocale("gom-deva",{months:{standalone:"जानेवारी_फेब्रुवारी_मार्च_एप्रील_मे_जून_जुलय_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),format:"जानेवारीच्या_फेब्रुवारीच्या_मार्चाच्या_एप्रीलाच्या_मेयाच्या_जूनाच्या_जुलयाच्या_ऑगस्टाच्या_सप्टेंबराच्या_ऑक्टोबराच्या_नोव्हेंबराच्या_डिसेंबराच्या".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"जाने._फेब्रु._मार्च_एप्री._मे_जून_जुल._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"आयतार_सोमार_मंगळार_बुधवार_बिरेस्तार_सुक्रार_शेनवार".split("_"),weekdaysShort:"आयत._सोम._मंगळ._बुध._ब्रेस्त._सुक्र._शेन.".split("_"),weekdaysMin:"आ_सो_मं_बु_ब्रे_सु_शे".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [वाजतां]",LTS:"A h:mm:ss [वाजतां]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [वाजतां]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [वाजतां]",llll:"ddd, D MMM YYYY, A h:mm [वाजतां]"},calendar:{sameDay:"[आयज] LT",nextDay:"[फाल्यां] LT",nextWeek:"[फुडलो] dddd[,] LT",lastDay:"[काल] LT",lastWeek:"[फाटलो] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s आदीं",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}(वेर)/,ordinal:function(e,t){switch(t){case"D":return e+"वेर";default:case"M":case"Q":case"DDD":case"d":case"w":case"W":return e}},week:{dow:0,doy:3},meridiemParse:/राती|सकाळीं|दनपारां|सांजे/,meridiemHour:function(e,t){return 12===e&&(e=0),"राती"===t?e<4?e:e+12:"सकाळीं"===t?e:"दनपारां"===t?e>12?e:e+12:"सांजे"===t?e+12:void 0},meridiem:function(e,t,a){return e<4?"राती":e<12?"सकाळीं":e<16?"दनपारां":e<20?"सांजे":"राती"}});return a}))},ab36:function(e,t,a){"use strict";e.exports=function(e){e.PolarArea=function(t,a){return a.type="polarArea",new e(t,a)}}},abc1:function(e,t,a){"use strict";var n=a("4438"),r="$chartjs",i="chartjs-",s=i+"render-monitor",o=i+"render-animation",d=["animationstart","webkitAnimationStart"],u={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"};function l(e,t){var a=n.getStyle(e,t),r=a&&a.match(/^(\d+)(\.\d+)?px$/);return r?Number(r[1]):void 0}function _(e,t){var a=e.style,n=e.getAttribute("height"),i=e.getAttribute("width");if(e[r]={initial:{height:n,width:i,style:{display:a.display,height:a.height,width:a.width}}},a.display=a.display||"block",null===i||""===i){var s=l(e,"width");void 0!==s&&(e.width=s)}if(null===n||""===n)if(""===e.style.height)e.height=e.width/(t.options.aspectRatio||2);else{var o=l(e,"height");void 0!==s&&(e.height=o)}return e}var c=function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("e",null,t)}catch(a){}return e}(),m=!!c&&{passive:!0};function h(e,t,a){e.addEventListener(t,a,m)}function f(e,t,a){e.removeEventListener(t,a,m)}function M(e,t,a,n,r){return{type:e,chart:t,native:r||null,x:void 0!==a?a:null,y:void 0!==n?n:null}}function p(e,t){var a=u[e.type]||e.type,r=n.getRelativePosition(e,t);return M(a,t,r.x,r.y,e)}function y(e,t){var a=!1,r=[];return function(){r=Array.prototype.slice.call(arguments),t=t||this,a||(a=!0,n.requestAnimFrame.call(window,(function(){a=!1,e.apply(t,r)})))}}function g(e){var t=document.createElement("div"),a=i+"size-monitor",n=1e6,r="position:absolute;left:0;top:0;right:0;bottom:0;overflow:hidden;pointer-events:none;visibility:hidden;z-index:-1;";t.style.cssText=r,t.className=a,t.innerHTML='<div class="'+a+'-expand" style="'+r+'"><div style="position:absolute;width:'+n+"px;height:"+n+'px;left:0;top:0"></div></div><div class="'+a+'-shrink" style="'+r+'"><div style="position:absolute;width:200%;height:200%;left:0; top:0"></div></div>';var s=t.childNodes[0],o=t.childNodes[1];t._reset=function(){s.scrollLeft=n,s.scrollTop=n,o.scrollLeft=n,o.scrollTop=n};var d=function(){t._reset(),e()};return h(s,"scroll",d.bind(s,"expand")),h(o,"scroll",d.bind(o,"shrink")),t}function L(e,t){var a=e[r]||(e[r]={}),i=a.renderProxy=function(e){e.animationName===o&&t()};n.each(d,(function(t){h(e,t,i)})),a.reflow=!!e.offsetParent,e.classList.add(s)}function v(e){var t=e[r]||{},a=t.renderProxy;a&&(n.each(d,(function(t){f(e,t,a)})),delete t.renderProxy),e.classList.remove(s)}function Y(e,t,a){var n=e[r]||(e[r]={}),i=n.resizer=g(y((function(){if(n.resizer)return t(M("resize",a))})));L(e,(function(){if(n.resizer){var t=e.parentNode;t&&t!==i.parentNode&&t.insertBefore(i,t.firstChild),i._reset()}}))}function b(e){var t=e[r]||{},a=t.resizer;delete t.resizer,v(e),a&&a.parentNode&&a.parentNode.removeChild(a)}function k(e,t){var a=e._style||document.createElement("style");e._style||(e._style=a,t="/* Chart.js */\n"+t,a.setAttribute("type","text/css"),document.getElementsByTagName("head")[0].appendChild(a)),a.appendChild(document.createTextNode(t))}e.exports={_enabled:"undefined"!==typeof window&&"undefined"!==typeof document,initialize:function(){var e="from{opacity:0.99}to{opacity:1}";k(this,"@-webkit-keyframes "+o+"{"+e+"}@keyframes "+o+"{"+e+"}."+s+"{-webkit-animation:"+o+" 0.001s;animation:"+o+" 0.001s;}")},acquireContext:function(e,t){"string"===typeof e?e=document.getElementById(e):e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas);var a=e&&e.getContext&&e.getContext("2d");return a&&a.canvas===e?(_(e,t),a):null},releaseContext:function(e){var t=e.canvas;if(t[r]){var a=t[r].initial;["height","width"].forEach((function(e){var r=a[e];n.isNullOrUndef(r)?t.removeAttribute(e):t.setAttribute(e,r)})),n.each(a.style||{},(function(e,a){t.style[a]=e})),t.width=t.width,delete t[r]}},addEventListener:function(e,t,a){var n=e.canvas;if("resize"!==t){var i=a[r]||(a[r]={}),s=i.proxies||(i.proxies={}),o=s[e.id+"_"+t]=function(t){a(p(t,e))};h(n,t,o)}else Y(n,a,e)},removeEventListener:function(e,t,a){var n=e.canvas;if("resize"!==t){var i=a[r]||{},s=i.proxies||{},o=s[e.id+"_"+t];o&&f(n,t,o)}else b(n,a)}},n.addEvent=h,n.removeEvent=f},ada2:function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
function t(e,t){var a=e.split("_");return t%10===1&&t%100!==11?a[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?a[1]:a[2]}function a(e,a,n){var r={ss:a?"секунда_секунди_секунд":"секунду_секунди_секунд",mm:a?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:a?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"};return"m"===n?a?"хвилина":"хвилину":"h"===n?a?"година":"годину":e+" "+t(r[n],+e)}function n(e,t){var a,n={nominative:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split("_"),genitive:"неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split("_")};return!0===e?n["nominative"].slice(1,7).concat(n["nominative"].slice(0,1)):e?(a=/(\[[ВвУу]\]) ?dddd/.test(t)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(t)?"genitive":"nominative",n[a][e.day()]):n["nominative"]}function r(e){return function(){return e+"о"+(11===this.hours()?"б":"")+"] LT"}}var i=e.defineLocale("uk",{months:{format:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),standalone:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_")},monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekdays:n,weekdaysShort:"нд_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY р.",LLL:"D MMMM YYYY р., HH:mm",LLLL:"dddd, D MMMM YYYY р., HH:mm"},calendar:{sameDay:r("[Сьогодні "),nextDay:r("[Завтра "),lastDay:r("[Вчора "),nextWeek:r("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return r("[Минулої] dddd [").call(this);case 1:case 2:case 4:return r("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",ss:a,m:a,mm:a,h:"годину",hh:a,d:"день",dd:a,M:"місяць",MM:a,y:"рік",yy:a},meridiemParse:/ночі|ранку|дня|вечора/,isPM:function(e){return/^(дня|вечора)$/.test(e)},meridiem:function(e,t,a){return e<4?"ночі":e<12?"ранку":e<17?"дня":"вечора"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e+"-й";case"D":return e+"-го";default:return e}},week:{dow:1,doy:7}});return i}))},b29d:function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("lo",{months:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),monthsShort:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),weekdays:"ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysShort:"ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysMin:"ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"ວັນdddd D MMMM YYYY HH:mm"},meridiemParse:/ຕອນເຊົ້າ|ຕອນແລງ/,isPM:function(e){return"ຕອນແລງ"===e},meridiem:function(e,t,a){return e<12?"ຕອນເຊົ້າ":"ຕອນແລງ"},calendar:{sameDay:"[ມື້ນີ້ເວລາ] LT",nextDay:"[ມື້ອື່ນເວລາ] LT",nextWeek:"[ວັນ]dddd[ໜ້າເວລາ] LT",lastDay:"[ມື້ວານນີ້ເວລາ] LT",lastWeek:"[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT",sameElse:"L"},relativeTime:{future:"ອີກ %s",past:"%sຜ່ານມາ",s:"ບໍ່ເທົ່າໃດວິນາທີ",ss:"%d ວິນາທີ",m:"1 ນາທີ",mm:"%d ນາທີ",h:"1 ຊົ່ວໂມງ",hh:"%d ຊົ່ວໂມງ",d:"1 ມື້",dd:"%d ມື້",M:"1 ເດືອນ",MM:"%d ເດືອນ",y:"1 ປີ",yy:"%d ປີ"},dayOfMonthOrdinalParse:/(ທີ່)\d{1,2}/,ordinal:function(e){return"ທີ່"+e}});return t}))},b3eb:function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
function t(e,t,a,n){var r={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?r[a][0]:r[a][1]}var a=e.defineLocale("de-at",{months:"Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return a}))},b469:function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
function t(e,t,a,n){var r={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?r[a][0]:r[a][1]}var a=e.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return a}))},b53d:function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("tzm-latn",{months:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minuḍ",mm:"%d minuḍ",h:"saɛa",hh:"%d tassaɛin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}});return t}))},b540:function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(e,t){return 12===e&&(e=0),"enjing"===t?e:"siyang"===t?e>=11?e:e+12:"sonten"===t||"ndalu"===t?e+12:void 0},meridiem:function(e,t,a){return e<11?"enjing":e<15?"siyang":e<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}});return t}))},b5b7:function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),a="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),n=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],r=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,i=e.defineLocale("es-mx",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,n){return e?/-MMM-/.test(n)?a[e.month()]:t[e.month()]:t},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:4},invalidDate:"Fecha inválida"});return i}))},b631:function(e,t,a){"use strict";var n=a("0832"),r=a("4438"),i=a("7c42");e.exports={constructors:{},defaults:{},registerScaleType:function(e,t,a){this.constructors[e]=t,this.defaults[e]=r.clone(a)},getScaleConstructor:function(e){return this.constructors.hasOwnProperty(e)?this.constructors[e]:void 0},getScaleDefaults:function(e){return this.defaults.hasOwnProperty(e)?r.merge({},[n.scale,this.defaults[e]]):{}},updateScaleDefaults:function(e,t){var a=this;a.defaults.hasOwnProperty(e)&&(a.defaults[e]=r.extend(a.defaults[e],t))},addScalesToLayout:function(e){r.each(e.scales,(function(t){t.fullWidth=t.options.fullWidth,t.position=t.options.position,t.weight=t.options.weight,i.addBox(e,t)}))}}},b753:function(e,t,a){var n=a("4f4d"),r={};for(var i in n)n.hasOwnProperty(i)&&(r[n[i]]=i);var s=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var o in s)if(s.hasOwnProperty(o)){if(!("channels"in s[o]))throw new Error("missing channels property: "+o);if(!("labels"in s[o]))throw new Error("missing channel labels property: "+o);if(s[o].labels.length!==s[o].channels)throw new Error("channel and label counts mismatch: "+o);var d=s[o].channels,u=s[o].labels;delete s[o].channels,delete s[o].labels,Object.defineProperty(s[o],"channels",{value:d}),Object.defineProperty(s[o],"labels",{value:u})}function l(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)+Math.pow(e[2]-t[2],2)}s.rgb.hsl=function(e){var t,a,n,r=e[0]/255,i=e[1]/255,s=e[2]/255,o=Math.min(r,i,s),d=Math.max(r,i,s),u=d-o;return d===o?t=0:r===d?t=(i-s)/u:i===d?t=2+(s-r)/u:s===d&&(t=4+(r-i)/u),t=Math.min(60*t,360),t<0&&(t+=360),n=(o+d)/2,a=d===o?0:n<=.5?u/(d+o):u/(2-d-o),[t,100*a,100*n]},s.rgb.hsv=function(e){var t,a,n,r,i,s=e[0]/255,o=e[1]/255,d=e[2]/255,u=Math.max(s,o,d),l=u-Math.min(s,o,d),_=function(e){return(u-e)/6/l+.5};return 0===l?r=i=0:(i=l/u,t=_(s),a=_(o),n=_(d),s===u?r=n-a:o===u?r=1/3+t-n:d===u&&(r=2/3+a-t),r<0?r+=1:r>1&&(r-=1)),[360*r,100*i,100*u]},s.rgb.hwb=function(e){var t=e[0],a=e[1],n=e[2],r=s.rgb.hsl(e)[0],i=1/255*Math.min(t,Math.min(a,n));return n=1-1/255*Math.max(t,Math.max(a,n)),[r,100*i,100*n]},s.rgb.cmyk=function(e){var t,a,n,r,i=e[0]/255,s=e[1]/255,o=e[2]/255;return r=Math.min(1-i,1-s,1-o),t=(1-i-r)/(1-r)||0,a=(1-s-r)/(1-r)||0,n=(1-o-r)/(1-r)||0,[100*t,100*a,100*n,100*r]},s.rgb.keyword=function(e){var t=r[e];if(t)return t;var a,i=1/0;for(var s in n)if(n.hasOwnProperty(s)){var o=n[s],d=l(e,o);d<i&&(i=d,a=s)}return a},s.keyword.rgb=function(e){return n[e]},s.rgb.xyz=function(e){var t=e[0]/255,a=e[1]/255,n=e[2]/255;t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92,a=a>.04045?Math.pow((a+.055)/1.055,2.4):a/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92;var r=.4124*t+.3576*a+.1805*n,i=.2126*t+.7152*a+.0722*n,s=.0193*t+.1192*a+.9505*n;return[100*r,100*i,100*s]},s.rgb.lab=function(e){var t,a,n,r=s.rgb.xyz(e),i=r[0],o=r[1],d=r[2];return i/=95.047,o/=100,d/=108.883,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,o=o>.008856?Math.pow(o,1/3):7.787*o+16/116,d=d>.008856?Math.pow(d,1/3):7.787*d+16/116,t=116*o-16,a=500*(i-o),n=200*(o-d),[t,a,n]},s.hsl.rgb=function(e){var t,a,n,r,i,s=e[0]/360,o=e[1]/100,d=e[2]/100;if(0===o)return i=255*d,[i,i,i];a=d<.5?d*(1+o):d+o-d*o,t=2*d-a,r=[0,0,0];for(var u=0;u<3;u++)n=s+1/3*-(u-1),n<0&&n++,n>1&&n--,i=6*n<1?t+6*(a-t)*n:2*n<1?a:3*n<2?t+(a-t)*(2/3-n)*6:t,r[u]=255*i;return r},s.hsl.hsv=function(e){var t,a,n=e[0],r=e[1]/100,i=e[2]/100,s=r,o=Math.max(i,.01);return i*=2,r*=i<=1?i:2-i,s*=o<=1?o:2-o,a=(i+r)/2,t=0===i?2*s/(o+s):2*r/(i+r),[n,100*t,100*a]},s.hsv.rgb=function(e){var t=e[0]/60,a=e[1]/100,n=e[2]/100,r=Math.floor(t)%6,i=t-Math.floor(t),s=255*n*(1-a),o=255*n*(1-a*i),d=255*n*(1-a*(1-i));switch(n*=255,r){case 0:return[n,d,s];case 1:return[o,n,s];case 2:return[s,n,d];case 3:return[s,o,n];case 4:return[d,s,n];case 5:return[n,s,o]}},s.hsv.hsl=function(e){var t,a,n,r=e[0],i=e[1]/100,s=e[2]/100,o=Math.max(s,.01);return n=(2-i)*s,t=(2-i)*o,a=i*o,a/=t<=1?t:2-t,a=a||0,n/=2,[r,100*a,100*n]},s.hwb.rgb=function(e){var t,a,n,r,i,s,o,d=e[0]/360,u=e[1]/100,l=e[2]/100,_=u+l;switch(_>1&&(u/=_,l/=_),t=Math.floor(6*d),a=1-l,n=6*d-t,0!==(1&t)&&(n=1-n),r=u+n*(a-u),t){default:case 6:case 0:i=a,s=r,o=u;break;case 1:i=r,s=a,o=u;break;case 2:i=u,s=a,o=r;break;case 3:i=u,s=r,o=a;break;case 4:i=r,s=u,o=a;break;case 5:i=a,s=u,o=r;break}return[255*i,255*s,255*o]},s.cmyk.rgb=function(e){var t,a,n,r=e[0]/100,i=e[1]/100,s=e[2]/100,o=e[3]/100;return t=1-Math.min(1,r*(1-o)+o),a=1-Math.min(1,i*(1-o)+o),n=1-Math.min(1,s*(1-o)+o),[255*t,255*a,255*n]},s.xyz.rgb=function(e){var t,a,n,r=e[0]/100,i=e[1]/100,s=e[2]/100;return t=3.2406*r+-1.5372*i+-.4986*s,a=-.9689*r+1.8758*i+.0415*s,n=.0557*r+-.204*i+1.057*s,t=t>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,a=a>.0031308?1.055*Math.pow(a,1/2.4)-.055:12.92*a,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,t=Math.min(Math.max(0,t),1),a=Math.min(Math.max(0,a),1),n=Math.min(Math.max(0,n),1),[255*t,255*a,255*n]},s.xyz.lab=function(e){var t,a,n,r=e[0],i=e[1],s=e[2];return r/=95.047,i/=100,s/=108.883,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,s=s>.008856?Math.pow(s,1/3):7.787*s+16/116,t=116*i-16,a=500*(r-i),n=200*(i-s),[t,a,n]},s.lab.xyz=function(e){var t,a,n,r=e[0],i=e[1],s=e[2];a=(r+16)/116,t=i/500+a,n=a-s/200;var o=Math.pow(a,3),d=Math.pow(t,3),u=Math.pow(n,3);return a=o>.008856?o:(a-16/116)/7.787,t=d>.008856?d:(t-16/116)/7.787,n=u>.008856?u:(n-16/116)/7.787,t*=95.047,a*=100,n*=108.883,[t,a,n]},s.lab.lch=function(e){var t,a,n,r=e[0],i=e[1],s=e[2];return t=Math.atan2(s,i),a=360*t/2/Math.PI,a<0&&(a+=360),n=Math.sqrt(i*i+s*s),[r,n,a]},s.lch.lab=function(e){var t,a,n,r=e[0],i=e[1],s=e[2];return n=s/360*2*Math.PI,t=i*Math.cos(n),a=i*Math.sin(n),[r,t,a]},s.rgb.ansi16=function(e){var t=e[0],a=e[1],n=e[2],r=1 in arguments?arguments[1]:s.rgb.hsv(e)[2];if(r=Math.round(r/50),0===r)return 30;var i=30+(Math.round(n/255)<<2|Math.round(a/255)<<1|Math.round(t/255));return 2===r&&(i+=60),i},s.hsv.ansi16=function(e){return s.rgb.ansi16(s.hsv.rgb(e),e[2])},s.rgb.ansi256=function(e){var t=e[0],a=e[1],n=e[2];if(t===a&&a===n)return t<8?16:t>248?231:Math.round((t-8)/247*24)+232;var r=16+36*Math.round(t/255*5)+6*Math.round(a/255*5)+Math.round(n/255*5);return r},s.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];var a=.5*(1+~~(e>50)),n=(1&t)*a*255,r=(t>>1&1)*a*255,i=(t>>2&1)*a*255;return[n,r,i]},s.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var a;e-=16;var n=Math.floor(e/36)/5*255,r=Math.floor((a=e%36)/6)/5*255,i=a%6/5*255;return[n,r,i]},s.rgb.hex=function(e){var t=((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2])),a=t.toString(16).toUpperCase();return"000000".substring(a.length)+a},s.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var a=t[0];3===t[0].length&&(a=a.split("").map((function(e){return e+e})).join(""));var n=parseInt(a,16),r=n>>16&255,i=n>>8&255,s=255&n;return[r,i,s]},s.rgb.hcg=function(e){var t,a,n=e[0]/255,r=e[1]/255,i=e[2]/255,s=Math.max(Math.max(n,r),i),o=Math.min(Math.min(n,r),i),d=s-o;return t=d<1?o/(1-d):0,a=d<=0?0:s===n?(r-i)/d%6:s===r?2+(i-n)/d:4+(n-r)/d+4,a/=6,a%=1,[360*a,100*d,100*t]},s.hsl.hcg=function(e){var t=e[1]/100,a=e[2]/100,n=1,r=0;return n=a<.5?2*t*a:2*t*(1-a),n<1&&(r=(a-.5*n)/(1-n)),[e[0],100*n,100*r]},s.hsv.hcg=function(e){var t=e[1]/100,a=e[2]/100,n=t*a,r=0;return n<1&&(r=(a-n)/(1-n)),[e[0],100*n,100*r]},s.hcg.rgb=function(e){var t=e[0]/360,a=e[1]/100,n=e[2]/100;if(0===a)return[255*n,255*n,255*n];var r=[0,0,0],i=t%1*6,s=i%1,o=1-s,d=0;switch(Math.floor(i)){case 0:r[0]=1,r[1]=s,r[2]=0;break;case 1:r[0]=o,r[1]=1,r[2]=0;break;case 2:r[0]=0,r[1]=1,r[2]=s;break;case 3:r[0]=0,r[1]=o,r[2]=1;break;case 4:r[0]=s,r[1]=0,r[2]=1;break;default:r[0]=1,r[1]=0,r[2]=o}return d=(1-a)*n,[255*(a*r[0]+d),255*(a*r[1]+d),255*(a*r[2]+d)]},s.hcg.hsv=function(e){var t=e[1]/100,a=e[2]/100,n=t+a*(1-t),r=0;return n>0&&(r=t/n),[e[0],100*r,100*n]},s.hcg.hsl=function(e){var t=e[1]/100,a=e[2]/100,n=a*(1-t)+.5*t,r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],100*r,100*n]},s.hcg.hwb=function(e){var t=e[1]/100,a=e[2]/100,n=t+a*(1-t);return[e[0],100*(n-t),100*(1-n)]},s.hwb.hcg=function(e){var t=e[1]/100,a=e[2]/100,n=1-a,r=n-t,i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],100*r,100*i]},s.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},s.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},s.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},s.gray.hsl=s.gray.hsv=function(e){return[0,0,e[0]]},s.gray.hwb=function(e){return[0,100,e[0]]},s.gray.cmyk=function(e){return[0,0,0,e[0]]},s.gray.lab=function(e){return[e[0],0,0]},s.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),a=(t<<16)+(t<<8)+t,n=a.toString(16).toUpperCase();return"000000".substring(n.length)+n},s.rgb.gray=function(e){var t=(e[0]+e[1]+e[2])/3;return[t/255*100]}},b7e9:function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("en-sg",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,a=1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+a},week:{dow:1,doy:4}});return t}))},b84c:function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"su._må._ty._on._to._fr._lau.".split("_"),weekdaysMin:"su_må_ty_on_to_fr_la".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I går klokka] LT",lastWeek:"[Føregåande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",w:"ei veke",ww:"%d veker",M:"ein månad",MM:"%d månader",y:"eit år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return t}))},b97c:function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t={ss:"sekundes_sekundēm_sekunde_sekundes".split("_"),m:"minūtes_minūtēm_minūte_minūtes".split("_"),mm:"minūtes_minūtēm_minūte_minūtes".split("_"),h:"stundas_stundām_stunda_stundas".split("_"),hh:"stundas_stundām_stunda_stundas".split("_"),d:"dienas_dienām_diena_dienas".split("_"),dd:"dienas_dienām_diena_dienas".split("_"),M:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),MM:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};function a(e,t,a){return a?t%10===1&&t%100!==11?e[2]:e[3]:t%10===1&&t%100!==11?e[0]:e[1]}function n(e,n,r){return e+" "+a(t[r],e,n)}function r(e,n,r){return a(t[r],e,n)}function i(e,t){return t?"dažas sekundes":"dažām sekundēm"}var s=e.defineLocale("lv",{months:"janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec".split("_"),weekdays:"svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[Šodien pulksten] LT",nextDay:"[Rīt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pagājušā] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"pēc %s",past:"pirms %s",s:i,ss:n,m:r,mm:n,h:r,hh:n,d:r,dd:n,M:r,MM:n,y:r,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return s}))},bb15:function(e,t,a){var n=a("b753"),r=a("a279"),i={},s=Object.keys(n);function o(e){var t=function(t){return void 0===t||null===t?t:(arguments.length>1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}function d(e){var t=function(t){if(void 0===t||null===t)return t;arguments.length>1&&(t=Array.prototype.slice.call(arguments));var a=e(t);if("object"===typeof a)for(var n=a.length,r=0;r<n;r++)a[r]=Math.round(a[r]);return a};return"conversion"in e&&(t.conversion=e.conversion),t}s.forEach((function(e){i[e]={},Object.defineProperty(i[e],"channels",{value:n[e].channels}),Object.defineProperty(i[e],"labels",{value:n[e].labels});var t=r(e),a=Object.keys(t);a.forEach((function(a){var n=t[a];i[e][a]=d(n),i[e][a].raw=o(n)}))})),e.exports=i},bb43:function(e,t,a){"use strict";var n=a("4c2d"),r={linear:function(e){return e},easeInQuad:function(e){return e*e},easeOutQuad:function(e){return-e*(e-2)},easeInOutQuad:function(e){return(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1)},easeInCubic:function(e){return e*e*e},easeOutCubic:function(e){return(e-=1)*e*e+1},easeInOutCubic:function(e){return(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},easeInQuart:function(e){return e*e*e*e},easeOutQuart:function(e){return-((e-=1)*e*e*e-1)},easeInOutQuart:function(e){return(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},easeInQuint:function(e){return e*e*e*e*e},easeOutQuint:function(e){return(e-=1)*e*e*e*e+1},easeInOutQuint:function(e){return(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},easeInSine:function(e){return 1-Math.cos(e*(Math.PI/2))},easeOutSine:function(e){return Math.sin(e*(Math.PI/2))},easeInOutSine:function(e){return-.5*(Math.cos(Math.PI*e)-1)},easeInExpo:function(e){return 0===e?0:Math.pow(2,10*(e-1))},easeOutExpo:function(e){return 1===e?1:1-Math.pow(2,-10*e)},easeInOutExpo:function(e){return 0===e?0:1===e?1:(e/=.5)<1?.5*Math.pow(2,10*(e-1)):.5*(2-Math.pow(2,-10*--e))},easeInCirc:function(e){return e>=1?e:-(Math.sqrt(1-e*e)-1)},easeOutCirc:function(e){return Math.sqrt(1-(e-=1)*e)},easeInOutCirc:function(e){return(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},easeInElastic:function(e){var t=1.70158,a=0,n=1;return 0===e?0:1===e?1:(a||(a=.3),n<1?(n=1,t=a/4):t=a/(2*Math.PI)*Math.asin(1/n),-n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/a))},easeOutElastic:function(e){var t=1.70158,a=0,n=1;return 0===e?0:1===e?1:(a||(a=.3),n<1?(n=1,t=a/4):t=a/(2*Math.PI)*Math.asin(1/n),n*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/a)+1)},easeInOutElastic:function(e){var t=1.70158,a=0,n=1;return 0===e?0:2===(e/=.5)?1:(a||(a=.45),n<1?(n=1,t=a/4):t=a/(2*Math.PI)*Math.asin(1/n),e<1?n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/a)*-.5:n*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/a)*.5+1)},easeInBack:function(e){var t=1.70158;return e*e*((t+1)*e-t)},easeOutBack:function(e){var t=1.70158;return(e-=1)*e*((t+1)*e+t)+1},easeInOutBack:function(e){var t=1.70158;return(e/=.5)<1?e*e*((1+(t*=1.525))*e-t)*.5:.5*((e-=2)*e*((1+(t*=1.525))*e+t)+2)},easeInBounce:function(e){return 1-r.easeOutBounce(1-e)},easeOutBounce:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:function(e){return e<.5?.5*r.easeInBounce(2*e):.5*r.easeOutBounce(2*e-1)+.5}};e.exports={effects:r},n.easingEffects=r},bb71:function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
function t(e,t,a,n){var r={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?r[a][0]:r[a][1]}var a=e.defineLocale("de-ch",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return a}))},be13:function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},be93:function(e,t,a){"use strict";var n=a("0832"),r=a("bef1"),i=a("4438");n._set("global",{plugins:{filler:{propagate:!0}}});var s={dataset:function(e){var t=e.fill,a=e.chart,n=a.getDatasetMeta(t),r=n&&a.isDatasetVisible(t),i=r&&n.dataset._children||[],s=i.length||0;return s?function(e,t){return t<s&&i[t]._view||null}:null},boundary:function(e){var t=e.boundary,a=t?t.x:null,n=t?t.y:null;return function(e){return{x:null===a?e.x:a,y:null===n?e.y:n}}}};function o(e,t,a){var n,r=e._model||{},i=r.fill;if(void 0===i&&(i=!!r.backgroundColor),!1===i||null===i)return!1;if(!0===i)return"origin";if(n=parseFloat(i,10),isFinite(n)&&Math.floor(n)===n)return"-"!==i[0]&&"+"!==i[0]||(n=t+n),!(n===t||n<0||n>=a)&&n;switch(i){case"bottom":return"start";case"top":return"end";case"zero":return"origin";case"origin":case"start":case"end":return i;default:return!1}}function d(e){var t,a=e.el._model||{},n=e.el._scale||{},r=e.fill,i=null;if(isFinite(r))return null;if("start"===r?i=void 0===a.scaleBottom?n.bottom:a.scaleBottom:"end"===r?i=void 0===a.scaleTop?n.top:a.scaleTop:void 0!==a.scaleZero?i=a.scaleZero:n.getBasePosition?i=n.getBasePosition():n.getBasePixel&&(i=n.getBasePixel()),void 0!==i&&null!==i){if(void 0!==i.x&&void 0!==i.y)return i;if("number"===typeof i&&isFinite(i))return t=n.isHorizontal(),{x:t?i:null,y:t?null:i}}return null}function u(e,t,a){var n,r=e[t],i=r.fill,s=[t];if(!a)return i;while(!1!==i&&-1===s.indexOf(i)){if(!isFinite(i))return i;if(n=e[i],!n)return!1;if(n.visible)return i;s.push(i),i=n.fill}return!1}function l(e){var t=e.fill,a="dataset";return!1===t?null:(isFinite(t)||(a="boundary"),s[a](e))}function _(e){return e&&!e.skip}function c(e,t,a,n,r){var s;if(n&&r){for(e.moveTo(t[0].x,t[0].y),s=1;s<n;++s)i.canvas.lineTo(e,t[s-1],t[s]);for(e.lineTo(a[r-1].x,a[r-1].y),s=r-1;s>0;--s)i.canvas.lineTo(e,a[s],a[s-1],!0)}}function m(e,t,a,n,r,i){var s,o,d,u,l,m,h,f=t.length,M=n.spanGaps,p=[],y=[],g=0,L=0;for(e.beginPath(),s=0,o=f+!!i;s<o;++s)d=s%f,u=t[d]._view,l=a(u,d,n),m=_(u),h=_(l),m&&h?(g=p.push(u),L=y.push(l)):g&&L&&(M?(m&&p.push(u),h&&y.push(l)):(c(e,p,y,g,L),g=L=0,p=[],y=[]));c(e,p,y,g,L),e.closePath(),e.fillStyle=r,e.fill()}e.exports={id:"filler",afterDatasetsUpdate:function(e,t){var a,n,i,s,_=(e.data.datasets||[]).length,c=t.propagate,m=[];for(n=0;n<_;++n)a=e.getDatasetMeta(n),i=a.dataset,s=null,i&&i._model&&i instanceof r.Line&&(s={visible:e.isDatasetVisible(n),fill:o(i,n,_),chart:e,el:i}),a.$filler=s,m.push(s);for(n=0;n<_;++n)s=m[n],s&&(s.fill=u(m,n,c),s.boundary=d(s),s.mapper=l(s))},beforeDatasetDraw:function(e,t){var a=t.meta.$filler;if(a){var r=e.ctx,s=a.el,o=s._view,d=s._children||[],u=a.mapper,l=o.backgroundColor||n.global.defaultColor;u&&l&&d.length&&(i.canvas.clipArea(r,e.chartArea),m(r,d,u,o,l,s._loop),i.canvas.unclipArea(r))}}}},bef1:function(e,t,a){"use strict";e.exports={},e.exports.Arc=a("5fc0"),e.exports.Line=a("52a9"),e.exports.Point=a("3976"),e.exports.Rectangle=a("d945")},c09b:function(e,t,a){"use strict";a("61a6")},c109:function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("tzm",{months:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),monthsShort:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),weekdays:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysShort:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysMin:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ⴰⵙⴷⵅ ⴴ] LT",nextDay:"[ⴰⵙⴽⴰ ⴴ] LT",nextWeek:"dddd [ⴴ] LT",lastDay:"[ⴰⵚⴰⵏⵜ ⴴ] LT",lastWeek:"dddd [ⴴ] LT",sameElse:"L"},relativeTime:{future:"ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s",past:"ⵢⴰⵏ %s",s:"ⵉⵎⵉⴽ",ss:"%d ⵉⵎⵉⴽ",m:"ⵎⵉⵏⵓⴺ",mm:"%d ⵎⵉⵏⵓⴺ",h:"ⵙⴰⵄⴰ",hh:"%d ⵜⴰⵙⵙⴰⵄⵉⵏ",d:"ⴰⵙⵙ",dd:"%d oⵙⵙⴰⵏ",M:"ⴰⵢoⵓⵔ",MM:"%d ⵉⵢⵢⵉⵔⵏ",y:"ⴰⵙⴳⴰⵙ",yy:"%d ⵉⵙⴳⴰⵙⵏ"},week:{dow:6,doy:12}});return t}))},c1df:function(e,t,a){(function(e){var t;//! moment.js
//! version : 2.29.1
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
//! license : MIT
//! momentjs.com
(function(t,a){e.exports=a()})(0,(function(){"use strict";var n,r;function i(){return n.apply(null,arguments)}function s(e){n=e}function o(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function d(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function u(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function l(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(u(e,t))return!1;return!0}function _(e){return void 0===e}function c(e){return"number"===typeof e||"[object Number]"===Object.prototype.toString.call(e)}function m(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function h(e,t){var a,n=[];for(a=0;a<e.length;++a)n.push(t(e[a],a));return n}function f(e,t){for(var a in t)u(t,a)&&(e[a]=t[a]);return u(t,"toString")&&(e.toString=t.toString),u(t,"valueOf")&&(e.valueOf=t.valueOf),e}function M(e,t,a,n){return qa(e,t,a,n,!0).utc()}function p(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function y(e){return null==e._pf&&(e._pf=p()),e._pf}function g(e){if(null==e._isValid){var t=y(e),a=r.call(t.parsedDateParts,(function(e){return null!=e})),n=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&a);if(e._strict&&(n=n&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return n;e._isValid=n}return e._isValid}function L(e){var t=M(NaN);return null!=e?f(y(t),e):y(t).userInvalidated=!0,t}r=Array.prototype.some?Array.prototype.some:function(e){var t,a=Object(this),n=a.length>>>0;for(t=0;t<n;t++)if(t in a&&e.call(this,a[t],t,a))return!0;return!1};var v=i.momentProperties=[],Y=!1;function b(e,t){var a,n,r;if(_(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),_(t._i)||(e._i=t._i),_(t._f)||(e._f=t._f),_(t._l)||(e._l=t._l),_(t._strict)||(e._strict=t._strict),_(t._tzm)||(e._tzm=t._tzm),_(t._isUTC)||(e._isUTC=t._isUTC),_(t._offset)||(e._offset=t._offset),_(t._pf)||(e._pf=y(t)),_(t._locale)||(e._locale=t._locale),v.length>0)for(a=0;a<v.length;a++)n=v[a],r=t[n],_(r)||(e[n]=r);return e}function k(e){b(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===Y&&(Y=!0,i.updateOffset(this),Y=!1)}function D(e){return e instanceof k||null!=e&&null!=e._isAMomentObject}function w(e){!1===i.suppressDeprecationWarnings&&"undefined"!==typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function x(e,t){var a=!0;return f((function(){if(null!=i.deprecationHandler&&i.deprecationHandler(null,e),a){var n,r,s,o=[];for(r=0;r<arguments.length;r++){if(n="","object"===typeof arguments[r]){for(s in n+="\n["+r+"] ",arguments[0])u(arguments[0],s)&&(n+=s+": "+arguments[0][s]+", ");n=n.slice(0,-2)}else n=arguments[r];o.push(n)}w(e+"\nArguments: "+Array.prototype.slice.call(o).join("")+"\n"+(new Error).stack),a=!1}return t.apply(this,arguments)}),t)}var T,S={};function H(e,t){null!=i.deprecationHandler&&i.deprecationHandler(e,t),S[e]||(w(t),S[e]=!0)}function j(e){return"undefined"!==typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function P(e){var t,a;for(a in e)u(e,a)&&(t=e[a],j(t)?this[a]=t:this["_"+a]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function O(e,t){var a,n=f({},e);for(a in t)u(t,a)&&(d(e[a])&&d(t[a])?(n[a]={},f(n[a],e[a]),f(n[a],t[a])):null!=t[a]?n[a]=t[a]:delete n[a]);for(a in e)u(e,a)&&!u(t,a)&&d(e[a])&&(n[a]=f({},n[a]));return n}function A(e){null!=e&&this.set(e)}i.suppressDeprecationWarnings=!1,i.deprecationHandler=null,T=Object.keys?Object.keys:function(e){var t,a=[];for(t in e)u(e,t)&&a.push(t);return a};var F={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function W(e,t,a){var n=this._calendar[e]||this._calendar["sameElse"];return j(n)?n.call(t,a):n}function C(e,t,a){var n=""+Math.abs(e),r=t-n.length,i=e>=0;return(i?a?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+n}var E=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,I=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,z={},N={};function R(e,t,a,n){var r=n;"string"===typeof n&&(r=function(){return this[n]()}),e&&(N[e]=r),t&&(N[t[0]]=function(){return C(r.apply(this,arguments),t[1],t[2])}),a&&(N[a]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function B(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function V(e){var t,a,n=e.match(E);for(t=0,a=n.length;t<a;t++)N[n[t]]?n[t]=N[n[t]]:n[t]=B(n[t]);return function(t){var r,i="";for(r=0;r<a;r++)i+=j(n[r])?n[r].call(t,e):n[r];return i}}function J(e,t){return e.isValid()?(t=U(t,e.localeData()),z[t]=z[t]||V(t),z[t](e)):e.localeData().invalidDate()}function U(e,t){var a=5;function n(e){return t.longDateFormat(e)||e}I.lastIndex=0;while(a>=0&&I.test(e))e=e.replace(I,n),I.lastIndex=0,a-=1;return e}var G={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function q(e){var t=this._longDateFormat[e],a=this._longDateFormat[e.toUpperCase()];return t||!a?t:(this._longDateFormat[e]=a.match(E).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])}var K="Invalid date";function $(){return this._invalidDate}var Z="%d",X=/\d{1,2}/;function Q(e){return this._ordinal.replace("%d",e)}var ee={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function te(e,t,a,n){var r=this._relativeTime[a];return j(r)?r(e,t,a,n):r.replace(/%d/i,e)}function ae(e,t){var a=this._relativeTime[e>0?"future":"past"];return j(a)?a(t):a.replace(/%s/i,t)}var ne={};function re(e,t){var a=e.toLowerCase();ne[a]=ne[a+"s"]=ne[t]=e}function ie(e){return"string"===typeof e?ne[e]||ne[e.toLowerCase()]:void 0}function se(e){var t,a,n={};for(a in e)u(e,a)&&(t=ie(a),t&&(n[t]=e[a]));return n}var oe={};function de(e,t){oe[e]=t}function ue(e){var t,a=[];for(t in e)u(e,t)&&a.push({unit:t,priority:oe[t]});return a.sort((function(e,t){return e.priority-t.priority})),a}function le(e){return e%4===0&&e%100!==0||e%400===0}function _e(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function ce(e){var t=+e,a=0;return 0!==t&&isFinite(t)&&(a=_e(t)),a}function me(e,t){return function(a){return null!=a?(fe(this,e,a),i.updateOffset(this,t),this):he(this,e)}}function he(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function fe(e,t,a){e.isValid()&&!isNaN(a)&&("FullYear"===t&&le(e.year())&&1===e.month()&&29===e.date()?(a=ce(a),e._d["set"+(e._isUTC?"UTC":"")+t](a,e.month(),tt(a,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](a))}function Me(e){return e=ie(e),j(this[e])?this[e]():this}function pe(e,t){if("object"===typeof e){e=se(e);var a,n=ue(e);for(a=0;a<n.length;a++)this[n[a].unit](e[n[a].unit])}else if(e=ie(e),j(this[e]))return this[e](t);return this}var ye,ge=/\d/,Le=/\d\d/,ve=/\d{3}/,Ye=/\d{4}/,be=/[+-]?\d{6}/,ke=/\d\d?/,De=/\d\d\d\d?/,we=/\d\d\d\d\d\d?/,xe=/\d{1,3}/,Te=/\d{1,4}/,Se=/[+-]?\d{1,6}/,He=/\d+/,je=/[+-]?\d+/,Pe=/Z|[+-]\d\d:?\d\d/gi,Oe=/Z|[+-]\d\d(?::?\d\d)?/gi,Ae=/[+-]?\d+(\.\d{1,3})?/,Fe=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function We(e,t,a){ye[e]=j(t)?t:function(e,n){return e&&a?a:t}}function Ce(e,t){return u(ye,e)?ye[e](t._strict,t._locale):new RegExp(Ee(e))}function Ee(e){return Ie(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,a,n,r){return t||a||n||r})))}function Ie(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}ye={};var ze={};function Ne(e,t){var a,n=t;for("string"===typeof e&&(e=[e]),c(t)&&(n=function(e,a){a[t]=ce(e)}),a=0;a<e.length;a++)ze[e[a]]=n}function Re(e,t){Ne(e,(function(e,a,n,r){n._w=n._w||{},t(e,n._w,n,r)}))}function Be(e,t,a){null!=t&&u(ze,e)&&ze[e](t,a._a,a,e)}var Ve,Je=0,Ue=1,Ge=2,qe=3,Ke=4,$e=5,Ze=6,Xe=7,Qe=8;function et(e,t){return(e%t+t)%t}function tt(e,t){if(isNaN(e)||isNaN(t))return NaN;var a=et(t,12);return e+=(t-a)/12,1===a?le(e)?29:28:31-a%7%2}Ve=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},R("M",["MM",2],"Mo",(function(){return this.month()+1})),R("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),R("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),re("month","M"),de("month",8),We("M",ke),We("MM",ke,Le),We("MMM",(function(e,t){return t.monthsShortRegex(e)})),We("MMMM",(function(e,t){return t.monthsRegex(e)})),Ne(["M","MM"],(function(e,t){t[Ue]=ce(e)-1})),Ne(["MMM","MMMM"],(function(e,t,a,n){var r=a._locale.monthsParse(e,n,a._strict);null!=r?t[Ue]=r:y(a).invalidMonth=e}));var at="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),nt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),rt=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,it=Fe,st=Fe;function ot(e,t){return e?o(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||rt).test(t)?"format":"standalone"][e.month()]:o(this._months)?this._months:this._months["standalone"]}function dt(e,t){return e?o(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[rt.test(t)?"format":"standalone"][e.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort["standalone"]}function ut(e,t,a){var n,r,i,s=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)i=M([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(i,"").toLocaleLowerCase();return a?"MMM"===t?(r=Ve.call(this._shortMonthsParse,s),-1!==r?r:null):(r=Ve.call(this._longMonthsParse,s),-1!==r?r:null):"MMM"===t?(r=Ve.call(this._shortMonthsParse,s),-1!==r?r:(r=Ve.call(this._longMonthsParse,s),-1!==r?r:null)):(r=Ve.call(this._longMonthsParse,s),-1!==r?r:(r=Ve.call(this._shortMonthsParse,s),-1!==r?r:null))}function lt(e,t,a){var n,r,i;if(this._monthsParseExact)return ut.call(this,e,t,a);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(r=M([2e3,n]),a&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),a||this._monthsParse[n]||(i="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[n]=new RegExp(i.replace(".",""),"i")),a&&"MMMM"===t&&this._longMonthsParse[n].test(e))return n;if(a&&"MMM"===t&&this._shortMonthsParse[n].test(e))return n;if(!a&&this._monthsParse[n].test(e))return n}}function _t(e,t){var a;if(!e.isValid())return e;if("string"===typeof t)if(/^\d+$/.test(t))t=ce(t);else if(t=e.localeData().monthsParse(t),!c(t))return e;return a=Math.min(e.date(),tt(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,a),e}function ct(e){return null!=e?(_t(this,e),i.updateOffset(this,!0),this):he(this,"Month")}function mt(){return tt(this.year(),this.month())}function ht(e){return this._monthsParseExact?(u(this,"_monthsRegex")||Mt.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(u(this,"_monthsShortRegex")||(this._monthsShortRegex=it),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function ft(e){return this._monthsParseExact?(u(this,"_monthsRegex")||Mt.call(this),e?this._monthsStrictRegex:this._monthsRegex):(u(this,"_monthsRegex")||(this._monthsRegex=st),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function Mt(){function e(e,t){return t.length-e.length}var t,a,n=[],r=[],i=[];for(t=0;t<12;t++)a=M([2e3,t]),n.push(this.monthsShort(a,"")),r.push(this.months(a,"")),i.push(this.months(a,"")),i.push(this.monthsShort(a,""));for(n.sort(e),r.sort(e),i.sort(e),t=0;t<12;t++)n[t]=Ie(n[t]),r[t]=Ie(r[t]);for(t=0;t<24;t++)i[t]=Ie(i[t]);this._monthsRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+n.join("|")+")","i")}function pt(e){return le(e)?366:365}R("Y",0,0,(function(){var e=this.year();return e<=9999?C(e,4):"+"+e})),R(0,["YY",2],0,(function(){return this.year()%100})),R(0,["YYYY",4],0,"year"),R(0,["YYYYY",5],0,"year"),R(0,["YYYYYY",6,!0],0,"year"),re("year","y"),de("year",1),We("Y",je),We("YY",ke,Le),We("YYYY",Te,Ye),We("YYYYY",Se,be),We("YYYYYY",Se,be),Ne(["YYYYY","YYYYYY"],Je),Ne("YYYY",(function(e,t){t[Je]=2===e.length?i.parseTwoDigitYear(e):ce(e)})),Ne("YY",(function(e,t){t[Je]=i.parseTwoDigitYear(e)})),Ne("Y",(function(e,t){t[Je]=parseInt(e,10)})),i.parseTwoDigitYear=function(e){return ce(e)+(ce(e)>68?1900:2e3)};var yt=me("FullYear",!0);function gt(){return le(this.year())}function Lt(e,t,a,n,r,i,s){var o;return e<100&&e>=0?(o=new Date(e+400,t,a,n,r,i,s),isFinite(o.getFullYear())&&o.setFullYear(e)):o=new Date(e,t,a,n,r,i,s),o}function vt(e){var t,a;return e<100&&e>=0?(a=Array.prototype.slice.call(arguments),a[0]=e+400,t=new Date(Date.UTC.apply(null,a)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Yt(e,t,a){var n=7+t-a,r=(7+vt(e,0,n).getUTCDay()-t)%7;return-r+n-1}function bt(e,t,a,n,r){var i,s,o=(7+a-n)%7,d=Yt(e,n,r),u=1+7*(t-1)+o+d;return u<=0?(i=e-1,s=pt(i)+u):u>pt(e)?(i=e+1,s=u-pt(e)):(i=e,s=u),{year:i,dayOfYear:s}}function kt(e,t,a){var n,r,i=Yt(e.year(),t,a),s=Math.floor((e.dayOfYear()-i-1)/7)+1;return s<1?(r=e.year()-1,n=s+Dt(r,t,a)):s>Dt(e.year(),t,a)?(n=s-Dt(e.year(),t,a),r=e.year()+1):(r=e.year(),n=s),{week:n,year:r}}function Dt(e,t,a){var n=Yt(e,t,a),r=Yt(e+1,t,a);return(pt(e)-n+r)/7}function wt(e){return kt(e,this._week.dow,this._week.doy).week}R("w",["ww",2],"wo","week"),R("W",["WW",2],"Wo","isoWeek"),re("week","w"),re("isoWeek","W"),de("week",5),de("isoWeek",5),We("w",ke),We("ww",ke,Le),We("W",ke),We("WW",ke,Le),Re(["w","ww","W","WW"],(function(e,t,a,n){t[n.substr(0,1)]=ce(e)}));var xt={dow:0,doy:6};function Tt(){return this._week.dow}function St(){return this._week.doy}function Ht(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function jt(e){var t=kt(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function Pt(e,t){return"string"!==typeof e?e:isNaN(e)?(e=t.weekdaysParse(e),"number"===typeof e?e:null):parseInt(e,10)}function Ot(e,t){return"string"===typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function At(e,t){return e.slice(t,7).concat(e.slice(0,t))}R("d",0,"do","day"),R("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),R("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),R("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),R("e",0,0,"weekday"),R("E",0,0,"isoWeekday"),re("day","d"),re("weekday","e"),re("isoWeekday","E"),de("day",11),de("weekday",11),de("isoWeekday",11),We("d",ke),We("e",ke),We("E",ke),We("dd",(function(e,t){return t.weekdaysMinRegex(e)})),We("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),We("dddd",(function(e,t){return t.weekdaysRegex(e)})),Re(["dd","ddd","dddd"],(function(e,t,a,n){var r=a._locale.weekdaysParse(e,n,a._strict);null!=r?t.d=r:y(a).invalidWeekday=e})),Re(["d","e","E"],(function(e,t,a,n){t[n]=ce(e)}));var Ft="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Wt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ct="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Et=Fe,It=Fe,zt=Fe;function Nt(e,t){var a=o(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?At(a,this._week.dow):e?a[e.day()]:a}function Rt(e){return!0===e?At(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Bt(e){return!0===e?At(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Vt(e,t,a){var n,r,i,s=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)i=M([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(i,"").toLocaleLowerCase();return a?"dddd"===t?(r=Ve.call(this._weekdaysParse,s),-1!==r?r:null):"ddd"===t?(r=Ve.call(this._shortWeekdaysParse,s),-1!==r?r:null):(r=Ve.call(this._minWeekdaysParse,s),-1!==r?r:null):"dddd"===t?(r=Ve.call(this._weekdaysParse,s),-1!==r?r:(r=Ve.call(this._shortWeekdaysParse,s),-1!==r?r:(r=Ve.call(this._minWeekdaysParse,s),-1!==r?r:null))):"ddd"===t?(r=Ve.call(this._shortWeekdaysParse,s),-1!==r?r:(r=Ve.call(this._weekdaysParse,s),-1!==r?r:(r=Ve.call(this._minWeekdaysParse,s),-1!==r?r:null))):(r=Ve.call(this._minWeekdaysParse,s),-1!==r?r:(r=Ve.call(this._weekdaysParse,s),-1!==r?r:(r=Ve.call(this._shortWeekdaysParse,s),-1!==r?r:null)))}function Jt(e,t,a){var n,r,i;if(this._weekdaysParseExact)return Vt.call(this,e,t,a);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(r=M([2e3,1]).day(n),a&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(i="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[n]=new RegExp(i.replace(".",""),"i")),a&&"dddd"===t&&this._fullWeekdaysParse[n].test(e))return n;if(a&&"ddd"===t&&this._shortWeekdaysParse[n].test(e))return n;if(a&&"dd"===t&&this._minWeekdaysParse[n].test(e))return n;if(!a&&this._weekdaysParse[n].test(e))return n}}function Ut(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=Pt(e,this.localeData()),this.add(e-t,"d")):t}function Gt(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function qt(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=Ot(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function Kt(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Xt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(u(this,"_weekdaysRegex")||(this._weekdaysRegex=Et),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function $t(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Xt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(u(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=It),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Zt(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Xt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(u(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=zt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Xt(){function e(e,t){return t.length-e.length}var t,a,n,r,i,s=[],o=[],d=[],u=[];for(t=0;t<7;t++)a=M([2e3,1]).day(t),n=Ie(this.weekdaysMin(a,"")),r=Ie(this.weekdaysShort(a,"")),i=Ie(this.weekdays(a,"")),s.push(n),o.push(r),d.push(i),u.push(n),u.push(r),u.push(i);s.sort(e),o.sort(e),d.sort(e),u.sort(e),this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+d.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+s.join("|")+")","i")}function Qt(){return this.hours()%12||12}function ea(){return this.hours()||24}function ta(e,t){R(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function aa(e,t){return t._meridiemParse}function na(e){return"p"===(e+"").toLowerCase().charAt(0)}R("H",["HH",2],0,"hour"),R("h",["hh",2],0,Qt),R("k",["kk",2],0,ea),R("hmm",0,0,(function(){return""+Qt.apply(this)+C(this.minutes(),2)})),R("hmmss",0,0,(function(){return""+Qt.apply(this)+C(this.minutes(),2)+C(this.seconds(),2)})),R("Hmm",0,0,(function(){return""+this.hours()+C(this.minutes(),2)})),R("Hmmss",0,0,(function(){return""+this.hours()+C(this.minutes(),2)+C(this.seconds(),2)})),ta("a",!0),ta("A",!1),re("hour","h"),de("hour",13),We("a",aa),We("A",aa),We("H",ke),We("h",ke),We("k",ke),We("HH",ke,Le),We("hh",ke,Le),We("kk",ke,Le),We("hmm",De),We("hmmss",we),We("Hmm",De),We("Hmmss",we),Ne(["H","HH"],qe),Ne(["k","kk"],(function(e,t,a){var n=ce(e);t[qe]=24===n?0:n})),Ne(["a","A"],(function(e,t,a){a._isPm=a._locale.isPM(e),a._meridiem=e})),Ne(["h","hh"],(function(e,t,a){t[qe]=ce(e),y(a).bigHour=!0})),Ne("hmm",(function(e,t,a){var n=e.length-2;t[qe]=ce(e.substr(0,n)),t[Ke]=ce(e.substr(n)),y(a).bigHour=!0})),Ne("hmmss",(function(e,t,a){var n=e.length-4,r=e.length-2;t[qe]=ce(e.substr(0,n)),t[Ke]=ce(e.substr(n,2)),t[$e]=ce(e.substr(r)),y(a).bigHour=!0})),Ne("Hmm",(function(e,t,a){var n=e.length-2;t[qe]=ce(e.substr(0,n)),t[Ke]=ce(e.substr(n))})),Ne("Hmmss",(function(e,t,a){var n=e.length-4,r=e.length-2;t[qe]=ce(e.substr(0,n)),t[Ke]=ce(e.substr(n,2)),t[$e]=ce(e.substr(r))}));var ra=/[ap]\.?m?\.?/i,ia=me("Hours",!0);function sa(e,t,a){return e>11?a?"pm":"PM":a?"am":"AM"}var oa,da={calendar:F,longDateFormat:G,invalidDate:K,ordinal:Z,dayOfMonthOrdinalParse:X,relativeTime:ee,months:at,monthsShort:nt,week:xt,weekdays:Ft,weekdaysMin:Ct,weekdaysShort:Wt,meridiemParse:ra},ua={},la={};function _a(e,t){var a,n=Math.min(e.length,t.length);for(a=0;a<n;a+=1)if(e[a]!==t[a])return a;return n}function ca(e){return e?e.toLowerCase().replace("_","-"):e}function ma(e){var t,a,n,r,i=0;while(i<e.length){r=ca(e[i]).split("-"),t=r.length,a=ca(e[i+1]),a=a?a.split("-"):null;while(t>0){if(n=ha(r.slice(0,t).join("-")),n)return n;if(a&&a.length>=t&&_a(r,a)>=t-1)break;t--}i++}return oa}function ha(n){var r=null;if(void 0===ua[n]&&"undefined"!==typeof e&&e&&e.exports)try{r=oa._abbr,t,a("4678")("./"+n),fa(r)}catch(i){ua[n]=null}return ua[n]}function fa(e,t){var a;return e&&(a=_(t)?ya(e):Ma(e,t),a?oa=a:"undefined"!==typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),oa._abbr}function Ma(e,t){if(null!==t){var a,n=da;if(t.abbr=e,null!=ua[e])H("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=ua[e]._config;else if(null!=t.parentLocale)if(null!=ua[t.parentLocale])n=ua[t.parentLocale]._config;else{if(a=ha(t.parentLocale),null==a)return la[t.parentLocale]||(la[t.parentLocale]=[]),la[t.parentLocale].push({name:e,config:t}),null;n=a._config}return ua[e]=new A(O(n,t)),la[e]&&la[e].forEach((function(e){Ma(e.name,e.config)})),fa(e),ua[e]}return delete ua[e],null}function pa(e,t){if(null!=t){var a,n,r=da;null!=ua[e]&&null!=ua[e].parentLocale?ua[e].set(O(ua[e]._config,t)):(n=ha(e),null!=n&&(r=n._config),t=O(r,t),null==n&&(t.abbr=e),a=new A(t),a.parentLocale=ua[e],ua[e]=a),fa(e)}else null!=ua[e]&&(null!=ua[e].parentLocale?(ua[e]=ua[e].parentLocale,e===fa()&&fa(e)):null!=ua[e]&&delete ua[e]);return ua[e]}function ya(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return oa;if(!o(e)){if(t=ha(e),t)return t;e=[e]}return ma(e)}function ga(){return T(ua)}function La(e){var t,a=e._a;return a&&-2===y(e).overflow&&(t=a[Ue]<0||a[Ue]>11?Ue:a[Ge]<1||a[Ge]>tt(a[Je],a[Ue])?Ge:a[qe]<0||a[qe]>24||24===a[qe]&&(0!==a[Ke]||0!==a[$e]||0!==a[Ze])?qe:a[Ke]<0||a[Ke]>59?Ke:a[$e]<0||a[$e]>59?$e:a[Ze]<0||a[Ze]>999?Ze:-1,y(e)._overflowDayOfYear&&(t<Je||t>Ge)&&(t=Ge),y(e)._overflowWeeks&&-1===t&&(t=Xe),y(e)._overflowWeekday&&-1===t&&(t=Qe),y(e).overflow=t),e}var va=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Ya=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ba=/Z|[+-]\d\d(?::?\d\d)?/,ka=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Da=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],wa=/^\/?Date\((-?\d+)/i,xa=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Ta={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Sa(e){var t,a,n,r,i,s,o=e._i,d=va.exec(o)||Ya.exec(o);if(d){for(y(e).iso=!0,t=0,a=ka.length;t<a;t++)if(ka[t][1].exec(d[1])){r=ka[t][0],n=!1!==ka[t][2];break}if(null==r)return void(e._isValid=!1);if(d[3]){for(t=0,a=Da.length;t<a;t++)if(Da[t][1].exec(d[3])){i=(d[2]||" ")+Da[t][0];break}if(null==i)return void(e._isValid=!1)}if(!n&&null!=i)return void(e._isValid=!1);if(d[4]){if(!ba.exec(d[4]))return void(e._isValid=!1);s="Z"}e._f=r+(i||"")+(s||""),Na(e)}else e._isValid=!1}function Ha(e,t,a,n,r,i){var s=[ja(e),nt.indexOf(t),parseInt(a,10),parseInt(n,10),parseInt(r,10)];return i&&s.push(parseInt(i,10)),s}function ja(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Pa(e){return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Oa(e,t,a){if(e){var n=Wt.indexOf(e),r=new Date(t[0],t[1],t[2]).getDay();if(n!==r)return y(a).weekdayMismatch=!0,a._isValid=!1,!1}return!0}function Aa(e,t,a){if(e)return Ta[e];if(t)return 0;var n=parseInt(a,10),r=n%100,i=(n-r)/100;return 60*i+r}function Fa(e){var t,a=xa.exec(Pa(e._i));if(a){if(t=Ha(a[4],a[3],a[2],a[5],a[6],a[7]),!Oa(a[1],t,e))return;e._a=t,e._tzm=Aa(a[8],a[9],a[10]),e._d=vt.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),y(e).rfc2822=!0}else e._isValid=!1}function Wa(e){var t=wa.exec(e._i);null===t?(Sa(e),!1===e._isValid&&(delete e._isValid,Fa(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:i.createFromInputFallback(e)))):e._d=new Date(+t[1])}function Ca(e,t,a){return null!=e?e:null!=t?t:a}function Ea(e){var t=new Date(i.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function Ia(e){var t,a,n,r,i,s=[];if(!e._d){for(n=Ea(e),e._w&&null==e._a[Ge]&&null==e._a[Ue]&&za(e),null!=e._dayOfYear&&(i=Ca(e._a[Je],n[Je]),(e._dayOfYear>pt(i)||0===e._dayOfYear)&&(y(e)._overflowDayOfYear=!0),a=vt(i,0,e._dayOfYear),e._a[Ue]=a.getUTCMonth(),e._a[Ge]=a.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=n[t];for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[qe]&&0===e._a[Ke]&&0===e._a[$e]&&0===e._a[Ze]&&(e._nextDay=!0,e._a[qe]=0),e._d=(e._useUTC?vt:Lt).apply(null,s),r=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[qe]=24),e._w&&"undefined"!==typeof e._w.d&&e._w.d!==r&&(y(e).weekdayMismatch=!0)}}function za(e){var t,a,n,r,i,s,o,d,u;t=e._w,null!=t.GG||null!=t.W||null!=t.E?(i=1,s=4,a=Ca(t.GG,e._a[Je],kt(Ka(),1,4).year),n=Ca(t.W,1),r=Ca(t.E,1),(r<1||r>7)&&(d=!0)):(i=e._locale._week.dow,s=e._locale._week.doy,u=kt(Ka(),i,s),a=Ca(t.gg,e._a[Je],u.year),n=Ca(t.w,u.week),null!=t.d?(r=t.d,(r<0||r>6)&&(d=!0)):null!=t.e?(r=t.e+i,(t.e<0||t.e>6)&&(d=!0)):r=i),n<1||n>Dt(a,i,s)?y(e)._overflowWeeks=!0:null!=d?y(e)._overflowWeekday=!0:(o=bt(a,n,r,i,s),e._a[Je]=o.year,e._dayOfYear=o.dayOfYear)}function Na(e){if(e._f!==i.ISO_8601)if(e._f!==i.RFC_2822){e._a=[],y(e).empty=!0;var t,a,n,r,s,o,d=""+e._i,u=d.length,l=0;for(n=U(e._f,e._locale).match(E)||[],t=0;t<n.length;t++)r=n[t],a=(d.match(Ce(r,e))||[])[0],a&&(s=d.substr(0,d.indexOf(a)),s.length>0&&y(e).unusedInput.push(s),d=d.slice(d.indexOf(a)+a.length),l+=a.length),N[r]?(a?y(e).empty=!1:y(e).unusedTokens.push(r),Be(r,a,e)):e._strict&&!a&&y(e).unusedTokens.push(r);y(e).charsLeftOver=u-l,d.length>0&&y(e).unusedInput.push(d),e._a[qe]<=12&&!0===y(e).bigHour&&e._a[qe]>0&&(y(e).bigHour=void 0),y(e).parsedDateParts=e._a.slice(0),y(e).meridiem=e._meridiem,e._a[qe]=Ra(e._locale,e._a[qe],e._meridiem),o=y(e).era,null!==o&&(e._a[Je]=e._locale.erasConvertYear(o,e._a[Je])),Ia(e),La(e)}else Fa(e);else Sa(e)}function Ra(e,t,a){var n;return null==a?t:null!=e.meridiemHour?e.meridiemHour(t,a):null!=e.isPM?(n=e.isPM(a),n&&t<12&&(t+=12),n||12!==t||(t=0),t):t}function Ba(e){var t,a,n,r,i,s,o=!1;if(0===e._f.length)return y(e).invalidFormat=!0,void(e._d=new Date(NaN));for(r=0;r<e._f.length;r++)i=0,s=!1,t=b({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[r],Na(t),g(t)&&(s=!0),i+=y(t).charsLeftOver,i+=10*y(t).unusedTokens.length,y(t).score=i,o?i<n&&(n=i,a=t):(null==n||i<n||s)&&(n=i,a=t,s&&(o=!0));f(e,a||t)}function Va(e){if(!e._d){var t=se(e._i),a=void 0===t.day?t.date:t.day;e._a=h([t.year,t.month,a,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)})),Ia(e)}}function Ja(e){var t=new k(La(Ua(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function Ua(e){var t=e._i,a=e._f;return e._locale=e._locale||ya(e._l),null===t||void 0===a&&""===t?L({nullInput:!0}):("string"===typeof t&&(e._i=t=e._locale.preparse(t)),D(t)?new k(La(t)):(m(t)?e._d=t:o(a)?Ba(e):a?Na(e):Ga(e),g(e)||(e._d=null),e))}function Ga(e){var t=e._i;_(t)?e._d=new Date(i.now()):m(t)?e._d=new Date(t.valueOf()):"string"===typeof t?Wa(e):o(t)?(e._a=h(t.slice(0),(function(e){return parseInt(e,10)})),Ia(e)):d(t)?Va(e):c(t)?e._d=new Date(t):i.createFromInputFallback(e)}function qa(e,t,a,n,r){var i={};return!0!==t&&!1!==t||(n=t,t=void 0),!0!==a&&!1!==a||(n=a,a=void 0),(d(e)&&l(e)||o(e)&&0===e.length)&&(e=void 0),i._isAMomentObject=!0,i._useUTC=i._isUTC=r,i._l=a,i._i=e,i._f=t,i._strict=n,Ja(i)}function Ka(e,t,a,n){return qa(e,t,a,n,!1)}i.createFromInputFallback=x("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),i.ISO_8601=function(){},i.RFC_2822=function(){};var $a=x("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Ka.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:L()})),Za=x("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Ka.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:L()}));function Xa(e,t){var a,n;if(1===t.length&&o(t[0])&&(t=t[0]),!t.length)return Ka();for(a=t[0],n=1;n<t.length;++n)t[n].isValid()&&!t[n][e](a)||(a=t[n]);return a}function Qa(){var e=[].slice.call(arguments,0);return Xa("isBefore",e)}function en(){var e=[].slice.call(arguments,0);return Xa("isAfter",e)}var tn=function(){return Date.now?Date.now():+new Date},an=["year","quarter","month","week","day","hour","minute","second","millisecond"];function nn(e){var t,a,n=!1;for(t in e)if(u(e,t)&&(-1===Ve.call(an,t)||null!=e[t]&&isNaN(e[t])))return!1;for(a=0;a<an.length;++a)if(e[an[a]]){if(n)return!1;parseFloat(e[an[a]])!==ce(e[an[a]])&&(n=!0)}return!0}function rn(){return this._isValid}function sn(){return Sn(NaN)}function on(e){var t=se(e),a=t.year||0,n=t.quarter||0,r=t.month||0,i=t.week||t.isoWeek||0,s=t.day||0,o=t.hour||0,d=t.minute||0,u=t.second||0,l=t.millisecond||0;this._isValid=nn(t),this._milliseconds=+l+1e3*u+6e4*d+1e3*o*60*60,this._days=+s+7*i,this._months=+r+3*n+12*a,this._data={},this._locale=ya(),this._bubble()}function dn(e){return e instanceof on}function un(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function ln(e,t,a){var n,r=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),s=0;for(n=0;n<r;n++)(a&&e[n]!==t[n]||!a&&ce(e[n])!==ce(t[n]))&&s++;return s+i}function _n(e,t){R(e,0,0,(function(){var e=this.utcOffset(),a="+";return e<0&&(e=-e,a="-"),a+C(~~(e/60),2)+t+C(~~e%60,2)}))}_n("Z",":"),_n("ZZ",""),We("Z",Oe),We("ZZ",Oe),Ne(["Z","ZZ"],(function(e,t,a){a._useUTC=!0,a._tzm=mn(Oe,e)}));var cn=/([\+\-]|\d\d)/gi;function mn(e,t){var a,n,r,i=(t||"").match(e);return null===i?null:(a=i[i.length-1]||[],n=(a+"").match(cn)||["-",0,0],r=60*n[1]+ce(n[2]),0===r?0:"+"===n[0]?r:-r)}function hn(e,t){var a,n;return t._isUTC?(a=t.clone(),n=(D(e)||m(e)?e.valueOf():Ka(e).valueOf())-a.valueOf(),a._d.setTime(a._d.valueOf()+n),i.updateOffset(a,!1),a):Ka(e).local()}function fn(e){return-Math.round(e._d.getTimezoneOffset())}function Mn(e,t,a){var n,r=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"===typeof e){if(e=mn(Oe,e),null===e)return this}else Math.abs(e)<16&&!a&&(e*=60);return!this._isUTC&&t&&(n=fn(this)),this._offset=e,this._isUTC=!0,null!=n&&this.add(n,"m"),r!==e&&(!t||this._changeInProgress?An(this,Sn(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,i.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?r:fn(this)}function pn(e,t){return null!=e?("string"!==typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function yn(e){return this.utcOffset(0,e)}function gn(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(fn(this),"m")),this}function Ln(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"===typeof this._i){var e=mn(Pe,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function vn(e){return!!this.isValid()&&(e=e?Ka(e).utcOffset():0,(this.utcOffset()-e)%60===0)}function Yn(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function bn(){if(!_(this._isDSTShifted))return this._isDSTShifted;var e,t={};return b(t,this),t=Ua(t),t._a?(e=t._isUTC?M(t._a):Ka(t._a),this._isDSTShifted=this.isValid()&&ln(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function kn(){return!!this.isValid()&&!this._isUTC}function Dn(){return!!this.isValid()&&this._isUTC}function wn(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}i.updateOffset=function(){};var xn=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Tn=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Sn(e,t){var a,n,r,i=e,s=null;return dn(e)?i={ms:e._milliseconds,d:e._days,M:e._months}:c(e)||!isNaN(+e)?(i={},t?i[t]=+e:i.milliseconds=+e):(s=xn.exec(e))?(a="-"===s[1]?-1:1,i={y:0,d:ce(s[Ge])*a,h:ce(s[qe])*a,m:ce(s[Ke])*a,s:ce(s[$e])*a,ms:ce(un(1e3*s[Ze]))*a}):(s=Tn.exec(e))?(a="-"===s[1]?-1:1,i={y:Hn(s[2],a),M:Hn(s[3],a),w:Hn(s[4],a),d:Hn(s[5],a),h:Hn(s[6],a),m:Hn(s[7],a),s:Hn(s[8],a)}):null==i?i={}:"object"===typeof i&&("from"in i||"to"in i)&&(r=Pn(Ka(i.from),Ka(i.to)),i={},i.ms=r.milliseconds,i.M=r.months),n=new on(i),dn(e)&&u(e,"_locale")&&(n._locale=e._locale),dn(e)&&u(e,"_isValid")&&(n._isValid=e._isValid),n}function Hn(e,t){var a=e&&parseFloat(e.replace(",","."));return(isNaN(a)?0:a)*t}function jn(e,t){var a={};return a.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(a.months,"M").isAfter(t)&&--a.months,a.milliseconds=+t-+e.clone().add(a.months,"M"),a}function Pn(e,t){var a;return e.isValid()&&t.isValid()?(t=hn(t,e),e.isBefore(t)?a=jn(e,t):(a=jn(t,e),a.milliseconds=-a.milliseconds,a.months=-a.months),a):{milliseconds:0,months:0}}function On(e,t){return function(a,n){var r,i;return null===n||isNaN(+n)||(H(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=a,a=n,n=i),r=Sn(a,n),An(this,r,e),this}}function An(e,t,a,n){var r=t._milliseconds,s=un(t._days),o=un(t._months);e.isValid()&&(n=null==n||n,o&&_t(e,he(e,"Month")+o*a),s&&fe(e,"Date",he(e,"Date")+s*a),r&&e._d.setTime(e._d.valueOf()+r*a),n&&i.updateOffset(e,s||o))}Sn.fn=on.prototype,Sn.invalid=sn;var Fn=On(1,"add"),Wn=On(-1,"subtract");function Cn(e){return"string"===typeof e||e instanceof String}function En(e){return D(e)||m(e)||Cn(e)||c(e)||zn(e)||In(e)||null===e||void 0===e}function In(e){var t,a,n=d(e)&&!l(e),r=!1,i=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"];for(t=0;t<i.length;t+=1)a=i[t],r=r||u(e,a);return n&&r}function zn(e){var t=o(e),a=!1;return t&&(a=0===e.filter((function(t){return!c(t)&&Cn(e)})).length),t&&a}function Nn(e){var t,a,n=d(e)&&!l(e),r=!1,i=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<i.length;t+=1)a=i[t],r=r||u(e,a);return n&&r}function Rn(e,t){var a=e.diff(t,"days",!0);return a<-6?"sameElse":a<-1?"lastWeek":a<0?"lastDay":a<1?"sameDay":a<2?"nextDay":a<7?"nextWeek":"sameElse"}function Bn(e,t){1===arguments.length&&(arguments[0]?En(arguments[0])?(e=arguments[0],t=void 0):Nn(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var a=e||Ka(),n=hn(a,this).startOf("day"),r=i.calendarFormat(this,n)||"sameElse",s=t&&(j(t[r])?t[r].call(this,a):t[r]);return this.format(s||this.localeData().calendar(r,this,Ka(a)))}function Vn(){return new k(this)}function Jn(e,t){var a=D(e)?e:Ka(e);return!(!this.isValid()||!a.isValid())&&(t=ie(t)||"millisecond","millisecond"===t?this.valueOf()>a.valueOf():a.valueOf()<this.clone().startOf(t).valueOf())}function Un(e,t){var a=D(e)?e:Ka(e);return!(!this.isValid()||!a.isValid())&&(t=ie(t)||"millisecond","millisecond"===t?this.valueOf()<a.valueOf():this.clone().endOf(t).valueOf()<a.valueOf())}function Gn(e,t,a,n){var r=D(e)?e:Ka(e),i=D(t)?t:Ka(t);return!!(this.isValid()&&r.isValid()&&i.isValid())&&(n=n||"()",("("===n[0]?this.isAfter(r,a):!this.isBefore(r,a))&&(")"===n[1]?this.isBefore(i,a):!this.isAfter(i,a)))}function qn(e,t){var a,n=D(e)?e:Ka(e);return!(!this.isValid()||!n.isValid())&&(t=ie(t)||"millisecond","millisecond"===t?this.valueOf()===n.valueOf():(a=n.valueOf(),this.clone().startOf(t).valueOf()<=a&&a<=this.clone().endOf(t).valueOf()))}function Kn(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function $n(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Zn(e,t,a){var n,r,i;if(!this.isValid())return NaN;if(n=hn(e,this),!n.isValid())return NaN;switch(r=6e4*(n.utcOffset()-this.utcOffset()),t=ie(t),t){case"year":i=Xn(this,n)/12;break;case"month":i=Xn(this,n);break;case"quarter":i=Xn(this,n)/3;break;case"second":i=(this-n)/1e3;break;case"minute":i=(this-n)/6e4;break;case"hour":i=(this-n)/36e5;break;case"day":i=(this-n-r)/864e5;break;case"week":i=(this-n-r)/6048e5;break;default:i=this-n}return a?i:_e(i)}function Xn(e,t){if(e.date()<t.date())return-Xn(t,e);var a,n,r=12*(t.year()-e.year())+(t.month()-e.month()),i=e.clone().add(r,"months");return t-i<0?(a=e.clone().add(r-1,"months"),n=(t-i)/(i-a)):(a=e.clone().add(r+1,"months"),n=(t-i)/(a-i)),-(r+n)||0}function Qn(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function er(e){if(!this.isValid())return null;var t=!0!==e,a=t?this.clone().utc():this;return a.year()<0||a.year()>9999?J(a,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):j(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",J(a,"Z")):J(a,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function tr(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,a,n,r="moment",i="";return this.isLocal()||(r=0===this.utcOffset()?"moment.utc":"moment.parseZone",i="Z"),e="["+r+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",a="-MM-DD[T]HH:mm:ss.SSS",n=i+'[")]',this.format(e+t+a+n)}function ar(e){e||(e=this.isUtc()?i.defaultFormatUtc:i.defaultFormat);var t=J(this,e);return this.localeData().postformat(t)}function nr(e,t){return this.isValid()&&(D(e)&&e.isValid()||Ka(e).isValid())?Sn({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function rr(e){return this.from(Ka(),e)}function ir(e,t){return this.isValid()&&(D(e)&&e.isValid()||Ka(e).isValid())?Sn({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function sr(e){return this.to(Ka(),e)}function or(e){var t;return void 0===e?this._locale._abbr:(t=ya(e),null!=t&&(this._locale=t),this)}i.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",i.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var dr=x("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?this.localeData():this.locale(e)}));function ur(){return this._locale}var lr=1e3,_r=60*lr,cr=60*_r,mr=3506328*cr;function hr(e,t){return(e%t+t)%t}function fr(e,t,a){return e<100&&e>=0?new Date(e+400,t,a)-mr:new Date(e,t,a).valueOf()}function Mr(e,t,a){return e<100&&e>=0?Date.UTC(e+400,t,a)-mr:Date.UTC(e,t,a)}function pr(e){var t,a;if(e=ie(e),void 0===e||"millisecond"===e||!this.isValid())return this;switch(a=this._isUTC?Mr:fr,e){case"year":t=a(this.year(),0,1);break;case"quarter":t=a(this.year(),this.month()-this.month()%3,1);break;case"month":t=a(this.year(),this.month(),1);break;case"week":t=a(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=a(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=a(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=hr(t+(this._isUTC?0:this.utcOffset()*_r),cr);break;case"minute":t=this._d.valueOf(),t-=hr(t,_r);break;case"second":t=this._d.valueOf(),t-=hr(t,lr);break}return this._d.setTime(t),i.updateOffset(this,!0),this}function yr(e){var t,a;if(e=ie(e),void 0===e||"millisecond"===e||!this.isValid())return this;switch(a=this._isUTC?Mr:fr,e){case"year":t=a(this.year()+1,0,1)-1;break;case"quarter":t=a(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=a(this.year(),this.month()+1,1)-1;break;case"week":t=a(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=a(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=a(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=cr-hr(t+(this._isUTC?0:this.utcOffset()*_r),cr)-1;break;case"minute":t=this._d.valueOf(),t+=_r-hr(t,_r)-1;break;case"second":t=this._d.valueOf(),t+=lr-hr(t,lr)-1;break}return this._d.setTime(t),i.updateOffset(this,!0),this}function gr(){return this._d.valueOf()-6e4*(this._offset||0)}function Lr(){return Math.floor(this.valueOf()/1e3)}function vr(){return new Date(this.valueOf())}function Yr(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function br(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function kr(){return this.isValid()?this.toISOString():null}function Dr(){return g(this)}function wr(){return f({},y(this))}function xr(){return y(this).overflow}function Tr(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Sr(e,t){var a,n,r,s=this._eras||ya("en")._eras;for(a=0,n=s.length;a<n;++a){switch(typeof s[a].since){case"string":r=i(s[a].since).startOf("day"),s[a].since=r.valueOf();break}switch(typeof s[a].until){case"undefined":s[a].until=1/0;break;case"string":r=i(s[a].until).startOf("day").valueOf(),s[a].until=r.valueOf();break}}return s}function Hr(e,t,a){var n,r,i,s,o,d=this.eras();for(e=e.toUpperCase(),n=0,r=d.length;n<r;++n)if(i=d[n].name.toUpperCase(),s=d[n].abbr.toUpperCase(),o=d[n].narrow.toUpperCase(),a)switch(t){case"N":case"NN":case"NNN":if(s===e)return d[n];break;case"NNNN":if(i===e)return d[n];break;case"NNNNN":if(o===e)return d[n];break}else if([i,s,o].indexOf(e)>=0)return d[n]}function jr(e,t){var a=e.since<=e.until?1:-1;return void 0===t?i(e.since).year():i(e.since).year()+(t-e.offset)*a}function Pr(){var e,t,a,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e){if(a=this.clone().startOf("day").valueOf(),n[e].since<=a&&a<=n[e].until)return n[e].name;if(n[e].until<=a&&a<=n[e].since)return n[e].name}return""}function Or(){var e,t,a,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e){if(a=this.clone().startOf("day").valueOf(),n[e].since<=a&&a<=n[e].until)return n[e].narrow;if(n[e].until<=a&&a<=n[e].since)return n[e].narrow}return""}function Ar(){var e,t,a,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e){if(a=this.clone().startOf("day").valueOf(),n[e].since<=a&&a<=n[e].until)return n[e].abbr;if(n[e].until<=a&&a<=n[e].since)return n[e].abbr}return""}function Fr(){var e,t,a,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(a=r[e].since<=r[e].until?1:-1,n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return(this.year()-i(r[e].since).year())*a+r[e].offset;return this.year()}function Wr(e){return u(this,"_erasNameRegex")||Br.call(this),e?this._erasNameRegex:this._erasRegex}function Cr(e){return u(this,"_erasAbbrRegex")||Br.call(this),e?this._erasAbbrRegex:this._erasRegex}function Er(e){return u(this,"_erasNarrowRegex")||Br.call(this),e?this._erasNarrowRegex:this._erasRegex}function Ir(e,t){return t.erasAbbrRegex(e)}function zr(e,t){return t.erasNameRegex(e)}function Nr(e,t){return t.erasNarrowRegex(e)}function Rr(e,t){return t._eraYearOrdinalRegex||He}function Br(){var e,t,a=[],n=[],r=[],i=[],s=this.eras();for(e=0,t=s.length;e<t;++e)n.push(Ie(s[e].name)),a.push(Ie(s[e].abbr)),r.push(Ie(s[e].narrow)),i.push(Ie(s[e].name)),i.push(Ie(s[e].abbr)),i.push(Ie(s[e].narrow));this._erasRegex=new RegExp("^("+i.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+n.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+a.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+r.join("|")+")","i")}function Vr(e,t){R(0,[e,e.length],0,t)}function Jr(e){return Zr.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Ur(e){return Zr.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Gr(){return Dt(this.year(),1,4)}function qr(){return Dt(this.isoWeekYear(),1,4)}function Kr(){var e=this.localeData()._week;return Dt(this.year(),e.dow,e.doy)}function $r(){var e=this.localeData()._week;return Dt(this.weekYear(),e.dow,e.doy)}function Zr(e,t,a,n,r){var i;return null==e?kt(this,n,r).year:(i=Dt(e,n,r),t>i&&(t=i),Xr.call(this,e,t,a,n,r))}function Xr(e,t,a,n,r){var i=bt(e,t,a,n,r),s=vt(i.year,0,i.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}function Qr(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}R("N",0,0,"eraAbbr"),R("NN",0,0,"eraAbbr"),R("NNN",0,0,"eraAbbr"),R("NNNN",0,0,"eraName"),R("NNNNN",0,0,"eraNarrow"),R("y",["y",1],"yo","eraYear"),R("y",["yy",2],0,"eraYear"),R("y",["yyy",3],0,"eraYear"),R("y",["yyyy",4],0,"eraYear"),We("N",Ir),We("NN",Ir),We("NNN",Ir),We("NNNN",zr),We("NNNNN",Nr),Ne(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,a,n){var r=a._locale.erasParse(e,n,a._strict);r?y(a).era=r:y(a).invalidEra=e})),We("y",He),We("yy",He),We("yyy",He),We("yyyy",He),We("yo",Rr),Ne(["y","yy","yyy","yyyy"],Je),Ne(["yo"],(function(e,t,a,n){var r;a._locale._eraYearOrdinalRegex&&(r=e.match(a._locale._eraYearOrdinalRegex)),a._locale.eraYearOrdinalParse?t[Je]=a._locale.eraYearOrdinalParse(e,r):t[Je]=parseInt(e,10)})),R(0,["gg",2],0,(function(){return this.weekYear()%100})),R(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),Vr("gggg","weekYear"),Vr("ggggg","weekYear"),Vr("GGGG","isoWeekYear"),Vr("GGGGG","isoWeekYear"),re("weekYear","gg"),re("isoWeekYear","GG"),de("weekYear",1),de("isoWeekYear",1),We("G",je),We("g",je),We("GG",ke,Le),We("gg",ke,Le),We("GGGG",Te,Ye),We("gggg",Te,Ye),We("GGGGG",Se,be),We("ggggg",Se,be),Re(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,a,n){t[n.substr(0,2)]=ce(e)})),Re(["gg","GG"],(function(e,t,a,n){t[n]=i.parseTwoDigitYear(e)})),R("Q",0,"Qo","quarter"),re("quarter","Q"),de("quarter",7),We("Q",ge),Ne("Q",(function(e,t){t[Ue]=3*(ce(e)-1)})),R("D",["DD",2],"Do","date"),re("date","D"),de("date",9),We("D",ke),We("DD",ke,Le),We("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),Ne(["D","DD"],Ge),Ne("Do",(function(e,t){t[Ge]=ce(e.match(ke)[0])}));var ei=me("Date",!0);function ti(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}R("DDD",["DDDD",3],"DDDo","dayOfYear"),re("dayOfYear","DDD"),de("dayOfYear",4),We("DDD",xe),We("DDDD",ve),Ne(["DDD","DDDD"],(function(e,t,a){a._dayOfYear=ce(e)})),R("m",["mm",2],0,"minute"),re("minute","m"),de("minute",14),We("m",ke),We("mm",ke,Le),Ne(["m","mm"],Ke);var ai=me("Minutes",!1);R("s",["ss",2],0,"second"),re("second","s"),de("second",15),We("s",ke),We("ss",ke,Le),Ne(["s","ss"],$e);var ni,ri,ii=me("Seconds",!1);for(R("S",0,0,(function(){return~~(this.millisecond()/100)})),R(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),R(0,["SSS",3],0,"millisecond"),R(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),R(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),R(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),R(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),R(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),R(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),re("millisecond","ms"),de("millisecond",16),We("S",xe,ge),We("SS",xe,Le),We("SSS",xe,ve),ni="SSSS";ni.length<=9;ni+="S")We(ni,He);function si(e,t){t[Ze]=ce(1e3*("0."+e))}for(ni="S";ni.length<=9;ni+="S")Ne(ni,si);function oi(){return this._isUTC?"UTC":""}function di(){return this._isUTC?"Coordinated Universal Time":""}ri=me("Milliseconds",!1),R("z",0,0,"zoneAbbr"),R("zz",0,0,"zoneName");var ui=k.prototype;function li(e){return Ka(1e3*e)}function _i(){return Ka.apply(null,arguments).parseZone()}function ci(e){return e}ui.add=Fn,ui.calendar=Bn,ui.clone=Vn,ui.diff=Zn,ui.endOf=yr,ui.format=ar,ui.from=nr,ui.fromNow=rr,ui.to=ir,ui.toNow=sr,ui.get=Me,ui.invalidAt=xr,ui.isAfter=Jn,ui.isBefore=Un,ui.isBetween=Gn,ui.isSame=qn,ui.isSameOrAfter=Kn,ui.isSameOrBefore=$n,ui.isValid=Dr,ui.lang=dr,ui.locale=or,ui.localeData=ur,ui.max=Za,ui.min=$a,ui.parsingFlags=wr,ui.set=pe,ui.startOf=pr,ui.subtract=Wn,ui.toArray=Yr,ui.toObject=br,ui.toDate=vr,ui.toISOString=er,ui.inspect=tr,"undefined"!==typeof Symbol&&null!=Symbol.for&&(ui[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),ui.toJSON=kr,ui.toString=Qn,ui.unix=Lr,ui.valueOf=gr,ui.creationData=Tr,ui.eraName=Pr,ui.eraNarrow=Or,ui.eraAbbr=Ar,ui.eraYear=Fr,ui.year=yt,ui.isLeapYear=gt,ui.weekYear=Jr,ui.isoWeekYear=Ur,ui.quarter=ui.quarters=Qr,ui.month=ct,ui.daysInMonth=mt,ui.week=ui.weeks=Ht,ui.isoWeek=ui.isoWeeks=jt,ui.weeksInYear=Kr,ui.weeksInWeekYear=$r,ui.isoWeeksInYear=Gr,ui.isoWeeksInISOWeekYear=qr,ui.date=ei,ui.day=ui.days=Ut,ui.weekday=Gt,ui.isoWeekday=qt,ui.dayOfYear=ti,ui.hour=ui.hours=ia,ui.minute=ui.minutes=ai,ui.second=ui.seconds=ii,ui.millisecond=ui.milliseconds=ri,ui.utcOffset=Mn,ui.utc=yn,ui.local=gn,ui.parseZone=Ln,ui.hasAlignedHourOffset=vn,ui.isDST=Yn,ui.isLocal=kn,ui.isUtcOffset=Dn,ui.isUtc=wn,ui.isUTC=wn,ui.zoneAbbr=oi,ui.zoneName=di,ui.dates=x("dates accessor is deprecated. Use date instead.",ei),ui.months=x("months accessor is deprecated. Use month instead",ct),ui.years=x("years accessor is deprecated. Use year instead",yt),ui.zone=x("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",pn),ui.isDSTShifted=x("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",bn);var mi=A.prototype;function hi(e,t,a,n){var r=ya(),i=M().set(n,t);return r[a](i,e)}function fi(e,t,a){if(c(e)&&(t=e,e=void 0),e=e||"",null!=t)return hi(e,t,a,"month");var n,r=[];for(n=0;n<12;n++)r[n]=hi(e,n,a,"month");return r}function Mi(e,t,a,n){"boolean"===typeof e?(c(t)&&(a=t,t=void 0),t=t||""):(t=e,a=t,e=!1,c(t)&&(a=t,t=void 0),t=t||"");var r,i=ya(),s=e?i._week.dow:0,o=[];if(null!=a)return hi(t,(a+s)%7,n,"day");for(r=0;r<7;r++)o[r]=hi(t,(r+s)%7,n,"day");return o}function pi(e,t){return fi(e,t,"months")}function yi(e,t){return fi(e,t,"monthsShort")}function gi(e,t,a){return Mi(e,t,a,"weekdays")}function Li(e,t,a){return Mi(e,t,a,"weekdaysShort")}function vi(e,t,a){return Mi(e,t,a,"weekdaysMin")}mi.calendar=W,mi.longDateFormat=q,mi.invalidDate=$,mi.ordinal=Q,mi.preparse=ci,mi.postformat=ci,mi.relativeTime=te,mi.pastFuture=ae,mi.set=P,mi.eras=Sr,mi.erasParse=Hr,mi.erasConvertYear=jr,mi.erasAbbrRegex=Cr,mi.erasNameRegex=Wr,mi.erasNarrowRegex=Er,mi.months=ot,mi.monthsShort=dt,mi.monthsParse=lt,mi.monthsRegex=ft,mi.monthsShortRegex=ht,mi.week=wt,mi.firstDayOfYear=St,mi.firstDayOfWeek=Tt,mi.weekdays=Nt,mi.weekdaysMin=Bt,mi.weekdaysShort=Rt,mi.weekdaysParse=Jt,mi.weekdaysRegex=Kt,mi.weekdaysShortRegex=$t,mi.weekdaysMinRegex=Zt,mi.isPM=na,mi.meridiem=sa,fa("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,a=1===ce(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+a}}),i.lang=x("moment.lang is deprecated. Use moment.locale instead.",fa),i.langData=x("moment.langData is deprecated. Use moment.localeData instead.",ya);var Yi=Math.abs;function bi(){var e=this._data;return this._milliseconds=Yi(this._milliseconds),this._days=Yi(this._days),this._months=Yi(this._months),e.milliseconds=Yi(e.milliseconds),e.seconds=Yi(e.seconds),e.minutes=Yi(e.minutes),e.hours=Yi(e.hours),e.months=Yi(e.months),e.years=Yi(e.years),this}function ki(e,t,a,n){var r=Sn(t,a);return e._milliseconds+=n*r._milliseconds,e._days+=n*r._days,e._months+=n*r._months,e._bubble()}function Di(e,t){return ki(this,e,t,1)}function wi(e,t){return ki(this,e,t,-1)}function xi(e){return e<0?Math.floor(e):Math.ceil(e)}function Ti(){var e,t,a,n,r,i=this._milliseconds,s=this._days,o=this._months,d=this._data;return i>=0&&s>=0&&o>=0||i<=0&&s<=0&&o<=0||(i+=864e5*xi(Hi(o)+s),s=0,o=0),d.milliseconds=i%1e3,e=_e(i/1e3),d.seconds=e%60,t=_e(e/60),d.minutes=t%60,a=_e(t/60),d.hours=a%24,s+=_e(a/24),r=_e(Si(s)),o+=r,s-=xi(Hi(r)),n=_e(o/12),o%=12,d.days=s,d.months=o,d.years=n,this}function Si(e){return 4800*e/146097}function Hi(e){return 146097*e/4800}function ji(e){if(!this.isValid())return NaN;var t,a,n=this._milliseconds;if(e=ie(e),"month"===e||"quarter"===e||"year"===e)switch(t=this._days+n/864e5,a=this._months+Si(t),e){case"month":return a;case"quarter":return a/3;case"year":return a/12}else switch(t=this._days+Math.round(Hi(this._months)),e){case"week":return t/7+n/6048e5;case"day":return t+n/864e5;case"hour":return 24*t+n/36e5;case"minute":return 1440*t+n/6e4;case"second":return 86400*t+n/1e3;case"millisecond":return Math.floor(864e5*t)+n;default:throw new Error("Unknown unit "+e)}}function Pi(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*ce(this._months/12):NaN}function Oi(e){return function(){return this.as(e)}}var Ai=Oi("ms"),Fi=Oi("s"),Wi=Oi("m"),Ci=Oi("h"),Ei=Oi("d"),Ii=Oi("w"),zi=Oi("M"),Ni=Oi("Q"),Ri=Oi("y");function Bi(){return Sn(this)}function Vi(e){return e=ie(e),this.isValid()?this[e+"s"]():NaN}function Ji(e){return function(){return this.isValid()?this._data[e]:NaN}}var Ui=Ji("milliseconds"),Gi=Ji("seconds"),qi=Ji("minutes"),Ki=Ji("hours"),$i=Ji("days"),Zi=Ji("months"),Xi=Ji("years");function Qi(){return _e(this.days()/7)}var es=Math.round,ts={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function as(e,t,a,n,r){return r.relativeTime(t||1,!!a,e,n)}function ns(e,t,a,n){var r=Sn(e).abs(),i=es(r.as("s")),s=es(r.as("m")),o=es(r.as("h")),d=es(r.as("d")),u=es(r.as("M")),l=es(r.as("w")),_=es(r.as("y")),c=i<=a.ss&&["s",i]||i<a.s&&["ss",i]||s<=1&&["m"]||s<a.m&&["mm",s]||o<=1&&["h"]||o<a.h&&["hh",o]||d<=1&&["d"]||d<a.d&&["dd",d];return null!=a.w&&(c=c||l<=1&&["w"]||l<a.w&&["ww",l]),c=c||u<=1&&["M"]||u<a.M&&["MM",u]||_<=1&&["y"]||["yy",_],c[2]=t,c[3]=+e>0,c[4]=n,as.apply(null,c)}function rs(e){return void 0===e?es:"function"===typeof e&&(es=e,!0)}function is(e,t){return void 0!==ts[e]&&(void 0===t?ts[e]:(ts[e]=t,"s"===e&&(ts.ss=t-1),!0))}function ss(e,t){if(!this.isValid())return this.localeData().invalidDate();var a,n,r=!1,i=ts;return"object"===typeof e&&(t=e,e=!1),"boolean"===typeof e&&(r=e),"object"===typeof t&&(i=Object.assign({},ts,t),null!=t.s&&null==t.ss&&(i.ss=t.s-1)),a=this.localeData(),n=ns(this,!r,i,a),r&&(n=a.pastFuture(+this,n)),a.postformat(n)}var os=Math.abs;function ds(e){return(e>0)-(e<0)||+e}function us(){if(!this.isValid())return this.localeData().invalidDate();var e,t,a,n,r,i,s,o,d=os(this._milliseconds)/1e3,u=os(this._days),l=os(this._months),_=this.asSeconds();return _?(e=_e(d/60),t=_e(e/60),d%=60,e%=60,a=_e(l/12),l%=12,n=d?d.toFixed(3).replace(/\.?0+$/,""):"",r=_<0?"-":"",i=ds(this._months)!==ds(_)?"-":"",s=ds(this._days)!==ds(_)?"-":"",o=ds(this._milliseconds)!==ds(_)?"-":"",r+"P"+(a?i+a+"Y":"")+(l?i+l+"M":"")+(u?s+u+"D":"")+(t||e||d?"T":"")+(t?o+t+"H":"")+(e?o+e+"M":"")+(d?o+n+"S":"")):"P0D"}var ls=on.prototype;return ls.isValid=rn,ls.abs=bi,ls.add=Di,ls.subtract=wi,ls.as=ji,ls.asMilliseconds=Ai,ls.asSeconds=Fi,ls.asMinutes=Wi,ls.asHours=Ci,ls.asDays=Ei,ls.asWeeks=Ii,ls.asMonths=zi,ls.asQuarters=Ni,ls.asYears=Ri,ls.valueOf=Pi,ls._bubble=Ti,ls.clone=Bi,ls.get=Vi,ls.milliseconds=Ui,ls.seconds=Gi,ls.minutes=qi,ls.hours=Ki,ls.days=$i,ls.weeks=Qi,ls.months=Zi,ls.years=Xi,ls.humanize=ss,ls.toISOString=us,ls.toString=us,ls.toJSON=us,ls.locale=or,ls.localeData=ur,ls.toIsoString=x("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",us),ls.lang=dr,R("X",0,0,"unix"),R("x",0,0,"valueOf"),We("x",je),We("X",Ae),Ne("X",(function(e,t,a){a._d=new Date(1e3*parseFloat(e))})),Ne("x",(function(e,t,a){a._d=new Date(ce(e))})),
//! moment.js
i.version="2.29.1",s(Ka),i.fn=ui,i.min=Qa,i.max=en,i.now=tn,i.utc=M,i.unix=li,i.months=pi,i.isDate=m,i.locale=fa,i.invalid=L,i.duration=Sn,i.isMoment=D,i.weekdays=gi,i.parseZone=_i,i.localeData=ya,i.isDuration=dn,i.monthsShort=yi,i.weekdaysMin=vi,i.defineLocale=Ma,i.updateLocale=pa,i.locales=ga,i.weekdaysShort=Li,i.normalizeUnits=ie,i.relativeTimeRounding=rs,i.relativeTimeThreshold=is,i.calendarFormat=Rn,i.prototype=ui,i.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},i}))}).call(this,a("62e4")(e))},c366:function(e,t,a){var n=a("6821"),r=a("9def"),i=a("77f1");e.exports=function(e){return function(t,a,s){var o,d=n(t),u=r(d.length),l=i(s,u);if(e&&a!=a){while(u>l)if(o=d[l++],o!=o)return!0}else for(;u>l;l++)if((e||l in d)&&d[l]===a)return e||l||0;return!e&&-1}}},c5f6:function(e,t,a){"use strict";var n=a("7726"),r=a("69a8"),i=a("2d95"),s=a("5dbc"),o=a("6a99"),d=a("79e5"),u=a("9093").f,l=a("11e9").f,_=a("86cc").f,c=a("aa77").trim,m="Number",h=n[m],f=h,M=h.prototype,p=i(a("2aeb")(M))==m,y="trim"in String.prototype,g=function(e){var t=o(e,!1);if("string"==typeof t&&t.length>2){t=y?t.trim():c(t,3);var a,n,r,i=t.charCodeAt(0);if(43===i||45===i){if(a=t.charCodeAt(2),88===a||120===a)return NaN}else if(48===i){switch(t.charCodeAt(1)){case 66:case 98:n=2,r=49;break;case 79:case 111:n=8,r=55;break;default:return+t}for(var s,d=t.slice(2),u=0,l=d.length;u<l;u++)if(s=d.charCodeAt(u),s<48||s>r)return NaN;return parseInt(d,n)}}return+t};if(!h(" 0o1")||!h("0b1")||h("+0x1")){h=function(e){var t=arguments.length<1?0:e,a=this;return a instanceof h&&(p?d((function(){M.valueOf.call(a)})):i(a)!=m)?s(new f(g(t)),a,h):g(t)};for(var L,v=a("9e1e")?u(f):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),Y=0;v.length>Y;Y++)r(f,L=v[Y])&&!r(h,L)&&_(h,L,l(f,L));h.prototype=M,M.constructor=h,a("2aba")(n,m,h)}},c69a:function(e,t,a){e.exports=!a("9e1e")&&!a("79e5")((function(){return 7!=Object.defineProperty(a("230e")("div"),"a",{get:function(){return 7}}).a}))},c7aa:function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("he",{months:"ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר".split("_"),monthsShort:"ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳".split("_"),weekdays:"ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת".split("_"),weekdaysShort:"א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳".split("_"),weekdaysMin:"א_ב_ג_ד_ה_ו_ש".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [ב]MMMM YYYY",LLL:"D [ב]MMMM YYYY HH:mm",LLLL:"dddd, D [ב]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[היום ב־]LT",nextDay:"[מחר ב־]LT",nextWeek:"dddd [בשעה] LT",lastDay:"[אתמול ב־]LT",lastWeek:"[ביום] dddd [האחרון בשעה] LT",sameElse:"L"},relativeTime:{future:"בעוד %s",past:"לפני %s",s:"מספר שניות",ss:"%d שניות",m:"דקה",mm:"%d דקות",h:"שעה",hh:function(e){return 2===e?"שעתיים":e+" שעות"},d:"יום",dd:function(e){return 2===e?"יומיים":e+" ימים"},M:"חודש",MM:function(e){return 2===e?"חודשיים":e+" חודשים"},y:"שנה",yy:function(e){return 2===e?"שנתיים":e%10===0&&10!==e?e+" שנה":e+" שנים"}},meridiemParse:/אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,isPM:function(e){return/^(אחה"צ|אחרי הצהריים|בערב)$/.test(e)},meridiem:function(e,t,a){return e<5?"לפנות בוקר":e<10?"בבוקר":e<12?a?'לפנה"צ':"לפני הצהריים":e<18?a?'אחה"צ':"אחרי הצהריים":"בערב"}});return t}))},c7cb:function(e,t,a){"use strict";var n=a("0832"),r=a("2b61"),i=a("4438");n._set("global",{tooltips:{enabled:!0,custom:null,mode:"nearest",position:"average",intersect:!0,backgroundColor:"rgba(0,0,0,0.8)",titleFontStyle:"bold",titleSpacing:2,titleMarginBottom:6,titleFontColor:"#fff",titleAlign:"left",bodySpacing:2,bodyFontColor:"#fff",bodyAlign:"left",footerFontStyle:"bold",footerSpacing:2,footerMarginTop:6,footerFontColor:"#fff",footerAlign:"left",yPadding:6,xPadding:6,caretPadding:2,caretSize:5,cornerRadius:6,multiKeyBackground:"#fff",displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:0,callbacks:{beforeTitle:i.noop,title:function(e,t){var a="",n=t.labels,r=n?n.length:0;if(e.length>0){var i=e[0];i.xLabel?a=i.xLabel:r>0&&i.index<r&&(a=n[i.index])}return a},afterTitle:i.noop,beforeBody:i.noop,beforeLabel:i.noop,label:function(e,t){var a=t.datasets[e.datasetIndex].label||"";return a&&(a+=": "),a+=e.yLabel,a},labelColor:function(e,t){var a=t.getDatasetMeta(e.datasetIndex),n=a.data[e.index],r=n._view;return{borderColor:r.borderColor,backgroundColor:r.backgroundColor}},labelTextColor:function(){return this._options.bodyFontColor},afterLabel:i.noop,afterBody:i.noop,beforeFooter:i.noop,footer:i.noop,afterFooter:i.noop}}});var s={average:function(e){if(!e.length)return!1;var t,a,n=0,r=0,i=0;for(t=0,a=e.length;t<a;++t){var s=e[t];if(s&&s.hasValue()){var o=s.tooltipPosition();n+=o.x,r+=o.y,++i}}return{x:Math.round(n/i),y:Math.round(r/i)}},nearest:function(e,t){var a,n,r,s=t.x,o=t.y,d=Number.POSITIVE_INFINITY;for(a=0,n=e.length;a<n;++a){var u=e[a];if(u&&u.hasValue()){var l=u.getCenterPoint(),_=i.distanceBetweenPoints(t,l);_<d&&(d=_,r=u)}}if(r){var c=r.tooltipPosition();s=c.x,o=c.y}return{x:s,y:o}}};function o(e,t){var a=i.color(e);return a.alpha(t*a.alpha()).rgbaString()}function d(e,t){return t&&(i.isArray(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function u(e){return("string"===typeof e||e instanceof String)&&e.indexOf("\n")>-1?e.split("\n"):e}function l(e){var t=e._xScale,a=e._yScale||e._scale,n=e._index,r=e._datasetIndex;return{xLabel:t?t.getLabelForIndex(n,r):"",yLabel:a?a.getLabelForIndex(n,r):"",index:n,datasetIndex:r,x:e._model.x,y:e._model.y}}function _(e){var t=n.global,a=i.valueOrDefault;return{xPadding:e.xPadding,yPadding:e.yPadding,xAlign:e.xAlign,yAlign:e.yAlign,bodyFontColor:e.bodyFontColor,_bodyFontFamily:a(e.bodyFontFamily,t.defaultFontFamily),_bodyFontStyle:a(e.bodyFontStyle,t.defaultFontStyle),_bodyAlign:e.bodyAlign,bodyFontSize:a(e.bodyFontSize,t.defaultFontSize),bodySpacing:e.bodySpacing,titleFontColor:e.titleFontColor,_titleFontFamily:a(e.titleFontFamily,t.defaultFontFamily),_titleFontStyle:a(e.titleFontStyle,t.defaultFontStyle),titleFontSize:a(e.titleFontSize,t.defaultFontSize),_titleAlign:e.titleAlign,titleSpacing:e.titleSpacing,titleMarginBottom:e.titleMarginBottom,footerFontColor:e.footerFontColor,_footerFontFamily:a(e.footerFontFamily,t.defaultFontFamily),_footerFontStyle:a(e.footerFontStyle,t.defaultFontStyle),footerFontSize:a(e.footerFontSize,t.defaultFontSize),_footerAlign:e.footerAlign,footerSpacing:e.footerSpacing,footerMarginTop:e.footerMarginTop,caretSize:e.caretSize,cornerRadius:e.cornerRadius,backgroundColor:e.backgroundColor,opacity:0,legendColorBackground:e.multiKeyBackground,displayColors:e.displayColors,borderColor:e.borderColor,borderWidth:e.borderWidth}}function c(e,t){var a=e._chart.ctx,n=2*t.yPadding,r=0,s=t.body,o=s.reduce((function(e,t){return e+t.before.length+t.lines.length+t.after.length}),0);o+=t.beforeBody.length+t.afterBody.length;var d=t.title.length,u=t.footer.length,l=t.titleFontSize,_=t.bodyFontSize,c=t.footerFontSize;n+=d*l,n+=d?(d-1)*t.titleSpacing:0,n+=d?t.titleMarginBottom:0,n+=o*_,n+=o?(o-1)*t.bodySpacing:0,n+=u?t.footerMarginTop:0,n+=u*c,n+=u?(u-1)*t.footerSpacing:0;var m=0,h=function(e){r=Math.max(r,a.measureText(e).width+m)};return a.font=i.fontString(l,t._titleFontStyle,t._titleFontFamily),i.each(t.title,h),a.font=i.fontString(_,t._bodyFontStyle,t._bodyFontFamily),i.each(t.beforeBody.concat(t.afterBody),h),m=t.displayColors?_+2:0,i.each(s,(function(e){i.each(e.before,h),i.each(e.lines,h),i.each(e.after,h)})),m=0,a.font=i.fontString(c,t._footerFontStyle,t._footerFontFamily),i.each(t.footer,h),r+=2*t.xPadding,{width:r,height:n}}function m(e,t){var a,n,r,i,s,o=e._model,d=e._chart,u=e._chart.chartArea,l="center",_="center";o.y<t.height?_="top":o.y>d.height-t.height&&(_="bottom");var c=(u.left+u.right)/2,m=(u.top+u.bottom)/2;"center"===_?(a=function(e){return e<=c},n=function(e){return e>c}):(a=function(e){return e<=t.width/2},n=function(e){return e>=d.width-t.width/2}),r=function(e){return e+t.width+o.caretSize+o.caretPadding>d.width},i=function(e){return e-t.width-o.caretSize-o.caretPadding<0},s=function(e){return e<=m?"top":"bottom"},a(o.x)?(l="left",r(o.x)&&(l="center",_=s(o.y))):n(o.x)&&(l="right",i(o.x)&&(l="center",_=s(o.y)));var h=e._options;return{xAlign:h.xAlign?h.xAlign:l,yAlign:h.yAlign?h.yAlign:_}}function h(e,t,a,n){var r=e.x,i=e.y,s=e.caretSize,o=e.caretPadding,d=e.cornerRadius,u=a.xAlign,l=a.yAlign,_=s+o,c=d+o;return"right"===u?r-=t.width:"center"===u&&(r-=t.width/2,r+t.width>n.width&&(r=n.width-t.width),r<0&&(r=0)),"top"===l?i+=_:i-="bottom"===l?t.height+_:t.height/2,"center"===l?"left"===u?r+=_:"right"===u&&(r-=_):"left"===u?r-=c:"right"===u&&(r+=c),{x:r,y:i}}function f(e){return d([],u(e))}t=e.exports=r.extend({initialize:function(){this._model=_(this._options),this._lastActive=[]},getTitle:function(){var e=this,t=e._options,a=t.callbacks,n=a.beforeTitle.apply(e,arguments),r=a.title.apply(e,arguments),i=a.afterTitle.apply(e,arguments),s=[];return s=d(s,u(n)),s=d(s,u(r)),s=d(s,u(i)),s},getBeforeBody:function(){return f(this._options.callbacks.beforeBody.apply(this,arguments))},getBody:function(e,t){var a=this,n=a._options.callbacks,r=[];return i.each(e,(function(e){var i={before:[],lines:[],after:[]};d(i.before,u(n.beforeLabel.call(a,e,t))),d(i.lines,n.label.call(a,e,t)),d(i.after,u(n.afterLabel.call(a,e,t))),r.push(i)})),r},getAfterBody:function(){return f(this._options.callbacks.afterBody.apply(this,arguments))},getFooter:function(){var e=this,t=e._options.callbacks,a=t.beforeFooter.apply(e,arguments),n=t.footer.apply(e,arguments),r=t.afterFooter.apply(e,arguments),i=[];return i=d(i,u(a)),i=d(i,u(n)),i=d(i,u(r)),i},update:function(e){var t,a,n=this,r=n._options,o=n._model,d=n._model=_(r),u=n._active,f=n._data,M={xAlign:o.xAlign,yAlign:o.yAlign},p={x:o.x,y:o.y},y={width:o.width,height:o.height},g={x:o.caretX,y:o.caretY};if(u.length){d.opacity=1;var L=[],v=[];g=s[r.position].call(n,u,n._eventPosition);var Y=[];for(t=0,a=u.length;t<a;++t)Y.push(l(u[t]));r.filter&&(Y=Y.filter((function(e){return r.filter(e,f)}))),r.itemSort&&(Y=Y.sort((function(e,t){return r.itemSort(e,t,f)}))),i.each(Y,(function(e){L.push(r.callbacks.labelColor.call(n,e,n._chart)),v.push(r.callbacks.labelTextColor.call(n,e,n._chart))})),d.title=n.getTitle(Y,f),d.beforeBody=n.getBeforeBody(Y,f),d.body=n.getBody(Y,f),d.afterBody=n.getAfterBody(Y,f),d.footer=n.getFooter(Y,f),d.x=Math.round(g.x),d.y=Math.round(g.y),d.caretPadding=r.caretPadding,d.labelColors=L,d.labelTextColors=v,d.dataPoints=Y,y=c(this,d),M=m(this,y),p=h(d,y,M,n._chart)}else d.opacity=0;return d.xAlign=M.xAlign,d.yAlign=M.yAlign,d.x=p.x,d.y=p.y,d.width=y.width,d.height=y.height,d.caretX=g.x,d.caretY=g.y,n._model=d,e&&r.custom&&r.custom.call(n,d),n},drawCaret:function(e,t){var a=this._chart.ctx,n=this._view,r=this.getCaretPosition(e,t,n);a.lineTo(r.x1,r.y1),a.lineTo(r.x2,r.y2),a.lineTo(r.x3,r.y3)},getCaretPosition:function(e,t,a){var n,r,i,s,o,d,u=a.caretSize,l=a.cornerRadius,_=a.xAlign,c=a.yAlign,m=e.x,h=e.y,f=t.width,M=t.height;if("center"===c)o=h+M/2,"left"===_?(n=m,r=n-u,i=n,s=o+u,d=o-u):(n=m+f,r=n+u,i=n,s=o-u,d=o+u);else if("left"===_?(r=m+l+u,n=r-u,i=r+u):"right"===_?(r=m+f-l-u,n=r-u,i=r+u):(r=a.caretX,n=r-u,i=r+u),"top"===c)s=h,o=s-u,d=s;else{s=h+M,o=s+u,d=s;var p=i;i=n,n=p}return{x1:n,x2:r,x3:i,y1:s,y2:o,y3:d}},drawTitle:function(e,t,a,n){var r=t.title;if(r.length){a.textAlign=t._titleAlign,a.textBaseline="top";var s,d,u=t.titleFontSize,l=t.titleSpacing;for(a.fillStyle=o(t.titleFontColor,n),a.font=i.fontString(u,t._titleFontStyle,t._titleFontFamily),s=0,d=r.length;s<d;++s)a.fillText(r[s],e.x,e.y),e.y+=u+l,s+1===r.length&&(e.y+=t.titleMarginBottom-l)}},drawBody:function(e,t,a,n){var r=t.bodyFontSize,s=t.bodySpacing,d=t.body;a.textAlign=t._bodyAlign,a.textBaseline="top",a.font=i.fontString(r,t._bodyFontStyle,t._bodyFontFamily);var u=0,l=function(t){a.fillText(t,e.x+u,e.y),e.y+=r+s};a.fillStyle=o(t.bodyFontColor,n),i.each(t.beforeBody,l);var _=t.displayColors;u=_?r+2:0,i.each(d,(function(s,d){var u=o(t.labelTextColors[d],n);a.fillStyle=u,i.each(s.before,l),i.each(s.lines,(function(i){_&&(a.fillStyle=o(t.legendColorBackground,n),a.fillRect(e.x,e.y,r,r),a.lineWidth=1,a.strokeStyle=o(t.labelColors[d].borderColor,n),a.strokeRect(e.x,e.y,r,r),a.fillStyle=o(t.labelColors[d].backgroundColor,n),a.fillRect(e.x+1,e.y+1,r-2,r-2),a.fillStyle=u),l(i)})),i.each(s.after,l)})),u=0,i.each(t.afterBody,l),e.y-=s},drawFooter:function(e,t,a,n){var r=t.footer;r.length&&(e.y+=t.footerMarginTop,a.textAlign=t._footerAlign,a.textBaseline="top",a.fillStyle=o(t.footerFontColor,n),a.font=i.fontString(t.footerFontSize,t._footerFontStyle,t._footerFontFamily),i.each(r,(function(n){a.fillText(n,e.x,e.y),e.y+=t.footerFontSize+t.footerSpacing})))},drawBackground:function(e,t,a,n,r){a.fillStyle=o(t.backgroundColor,r),a.strokeStyle=o(t.borderColor,r),a.lineWidth=t.borderWidth;var i=t.xAlign,s=t.yAlign,d=e.x,u=e.y,l=n.width,_=n.height,c=t.cornerRadius;a.beginPath(),a.moveTo(d+c,u),"top"===s&&this.drawCaret(e,n),a.lineTo(d+l-c,u),a.quadraticCurveTo(d+l,u,d+l,u+c),"center"===s&&"right"===i&&this.drawCaret(e,n),a.lineTo(d+l,u+_-c),a.quadraticCurveTo(d+l,u+_,d+l-c,u+_),"bottom"===s&&this.drawCaret(e,n),a.lineTo(d+c,u+_),a.quadraticCurveTo(d,u+_,d,u+_-c),"center"===s&&"left"===i&&this.drawCaret(e,n),a.lineTo(d,u+c),a.quadraticCurveTo(d,u,d+c,u),a.closePath(),a.fill(),t.borderWidth>0&&a.stroke()},draw:function(){var e=this._chart.ctx,t=this._view;if(0!==t.opacity){var a={width:t.width,height:t.height},n={x:t.x,y:t.y},r=Math.abs(t.opacity<.001)?0:t.opacity,i=t.title.length||t.beforeBody.length||t.body.length||t.afterBody.length||t.footer.length;this._options.enabled&&i&&(this.drawBackground(n,t,e,a,r),n.x+=t.xPadding,n.y+=t.yPadding,this.drawTitle(n,t,e,r),this.drawBody(n,t,e,r),this.drawFooter(n,t,e,r))}},handleEvent:function(e){var t=this,a=t._options,n=!1;return t._lastActive=t._lastActive||[],"mouseout"===e.type?t._active=[]:t._active=t._chart.getElementsAtEventForMode(e,a.mode,a),n=!i.arrayEquals(t._active,t._lastActive),n&&(t._lastActive=t._active,(a.enabled||a.custom)&&(t._eventPosition={x:e.x,y:e.y},t.update(!0),t.pivot())),n}});t.positioners=s},c8f3:function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj".split("_"),weekdays:"E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë".split("_"),weekdaysShort:"Die_Hën_Mar_Mër_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_Më_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(e){return"M"===e.charAt(0)},meridiem:function(e,t,a){return e<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot në] LT",nextDay:"[Nesër në] LT",nextWeek:"dddd [në] LT",lastDay:"[Dje në] LT",lastWeek:"dddd [e kaluar në] LT",sameElse:"L"},relativeTime:{future:"në %s",past:"%s më parë",s:"disa sekonda",ss:"%d sekonda",m:"një minutë",mm:"%d minuta",h:"një orë",hh:"%d orë",d:"një ditë",dd:"%d ditë",M:"një muaj",MM:"%d muaj",y:"një vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return t}))},c8f30:function(e,t,a){"use strict";var n=a("0832");n._set("global",{responsive:!0,responsiveAnimationDuration:0,maintainAspectRatio:!0,events:["mousemove","mouseout","click","touchstart","touchmove"],hover:{onHover:null,mode:"nearest",intersect:!0,animationDuration:400},onClick:null,defaultColor:"rgba(0,0,0,0.1)",defaultFontColor:"#666",defaultFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",defaultFontSize:12,defaultFontStyle:"normal",showLines:!0,elements:{},layout:{padding:{top:0,right:0,bottom:0,left:0}}}),e.exports=function(){var e=function(e,t){return this.construct(e,t),this};return e.Chart=e,e}},ca5a:function(e,t){var a=0,n=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++a+n).toString(36))}},cb7c:function(e,t,a){var n=a("d3f4");e.exports=function(e){if(!n(e))throw TypeError(e+" is not an object!");return e}},ce10:function(e,t,a){var n=a("69a8"),r=a("6821"),i=a("c366")(!1),s=a("613b")("IE_PROTO");e.exports=function(e,t){var a,o=r(e),d=0,u=[];for(a in o)a!=s&&n(o,a)&&u.push(a);while(t.length>d)n(o,a=t[d++])&&(~i(u,a)||u.push(a));return u}},cf1e:function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jedne minute"],mm:["minut","minute","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mesec","meseca","meseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,a,n){var r=t.words[n];return 1===n.length?a?r[0]:r[1]:e+" "+t.correctGrammaticalCase(e,r)}},a=e.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){var e=["[prošle] [nedelje] [u] LT","[prošlog] [ponedeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"];return e[this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mesec",MM:t.translate,y:"godinu",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});return a}))},cf51:function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("tzl",{months:"Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi".split("_"),weekdaysShort:"Súl_Lún_Mai_Már_Xhú_Vié_Sát".split("_"),weekdaysMin:"Sú_Lú_Ma_Má_Xh_Vi_Sá".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(e){return"d'o"===e.toLowerCase()},meridiem:function(e,t,a){return e>11?a?"d'o":"D'O":a?"d'a":"D'A"},calendar:{sameDay:"[oxhi à] LT",nextDay:"[demà à] LT",nextWeek:"dddd [à] LT",lastDay:"[ieiri à] LT",lastWeek:"[sür el] dddd [lasteu à] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:a,ss:a,m:a,mm:a,h:a,hh:a,d:a,dd:a,M:a,MM:a,y:a,yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});function a(e,t,a,n){var r={s:["viensas secunds","'iensas secunds"],ss:[e+" secunds",e+" secunds"],m:["'n míut","'iens míut"],mm:[e+" míuts",e+" míuts"],h:["'n þora","'iensa þora"],hh:[e+" þoras",e+" þoras"],d:["'n ziua","'iensa ziua"],dd:[e+" ziuas",e+" ziuas"],M:["'n mes","'iens mes"],MM:[e+" mesen",e+" mesen"],y:["'n ar","'iens ar"],yy:[e+" ars",e+" ars"]};return n||t?r[a][0]:r[a][1]}return t}))},cf75:function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t="pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function a(e){var t=e;return t=-1!==e.indexOf("jaj")?t.slice(0,-3)+"leS":-1!==e.indexOf("jar")?t.slice(0,-3)+"waQ":-1!==e.indexOf("DIS")?t.slice(0,-3)+"nem":t+" pIq",t}function n(e){var t=e;return t=-1!==e.indexOf("jaj")?t.slice(0,-3)+"Hu’":-1!==e.indexOf("jar")?t.slice(0,-3)+"wen":-1!==e.indexOf("DIS")?t.slice(0,-3)+"ben":t+" ret",t}function r(e,t,a,n){var r=i(e);switch(a){case"ss":return r+" lup";case"mm":return r+" tup";case"hh":return r+" rep";case"dd":return r+" jaj";case"MM":return r+" jar";case"yy":return r+" DIS"}}function i(e){var a=Math.floor(e%1e3/100),n=Math.floor(e%100/10),r=e%10,i="";return a>0&&(i+=t[a]+"vatlh"),n>0&&(i+=(""!==i?" ":"")+t[n]+"maH"),r>0&&(i+=(""!==i?" ":"")+t[r]),""===i?"pagh":i}var s=e.defineLocale("tlh",{months:"tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’".split("_"),monthsShort:"jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa’leS] LT",nextWeek:"LLL",lastDay:"[wa’Hu’] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:a,past:n,s:"puS lup",ss:r,m:"wa’ tup",mm:r,h:"wa’ rep",hh:r,d:"wa’ jaj",dd:r,M:"wa’ jar",MM:r,y:"wa’ DIS",yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return s}))},d26a:function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t={1:"༡",2:"༢",3:"༣",4:"༤",5:"༥",6:"༦",7:"༧",8:"༨",9:"༩",0:"༠"},a={"༡":"1","༢":"2","༣":"3","༤":"4","༥":"5","༦":"6","༧":"7","༨":"8","༩":"9","༠":"0"},n=e.defineLocale("bo",{months:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),monthsShort:"ཟླ་1_ཟླ་2_ཟླ་3_ཟླ་4_ཟླ་5_ཟླ་6_ཟླ་7_ཟླ་8_ཟླ་9_ཟླ་10_ཟླ་11_ཟླ་12".split("_"),monthsShortRegex:/^(ཟླ་\d{1,2})/,monthsParseExact:!0,weekdays:"གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་".split("_"),weekdaysShort:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),weekdaysMin:"ཉི_ཟླ_མིག_ལྷག_ཕུར_སངས_སྤེན".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[དི་རིང] LT",nextDay:"[སང་ཉིན] LT",nextWeek:"[བདུན་ཕྲག་རྗེས་མ], LT",lastDay:"[ཁ་སང] LT",lastWeek:"[བདུན་ཕྲག་མཐའ་མ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ལ་",past:"%s སྔན་ལ",s:"ལམ་སང",ss:"%d སྐར་ཆ།",m:"སྐར་མ་གཅིག",mm:"%d སྐར་མ",h:"ཆུ་ཚོད་གཅིག",hh:"%d ཆུ་ཚོད",d:"ཉིན་གཅིག",dd:"%d ཉིན་",M:"ཟླ་བ་གཅིག",MM:"%d ཟླ་བ",y:"ལོ་གཅིག",yy:"%d ལོ"},preparse:function(e){return e.replace(/[༡༢༣༤༥༦༧༨༩༠]/g,(function(e){return a[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,meridiemHour:function(e,t){return 12===e&&(e=0),"མཚན་མོ"===t&&e>=4||"ཉིན་གུང"===t&&e<5||"དགོང་དག"===t?e+12:e},meridiem:function(e,t,a){return e<4?"མཚན་མོ":e<10?"ཞོགས་ཀས":e<17?"ཉིན་གུང":e<20?"དགོང་དག":"མཚན་མོ"},week:{dow:0,doy:6}});return n}))},d2d4:function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("pt-br",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_sáb".split("_"),weekdaysMin:"do_2ª_3ª_4ª_5ª_6ª_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",invalidDate:"Data inválida"});return t}))},d3f4:function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},d69a:function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("fil",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}});return t}))},d6b6:function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("hy-am",{months:{format:"հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի".split("_"),standalone:"հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր".split("_")},monthsShort:"հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ".split("_"),weekdays:"կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ".split("_"),weekdaysShort:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),weekdaysMin:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY թ.",LLL:"D MMMM YYYY թ., HH:mm",LLLL:"dddd, D MMMM YYYY թ., HH:mm"},calendar:{sameDay:"[այսօր] LT",nextDay:"[վաղը] LT",lastDay:"[երեկ] LT",nextWeek:function(){return"dddd [օրը ժամը] LT"},lastWeek:function(){return"[անցած] dddd [օրը ժամը] LT"},sameElse:"L"},relativeTime:{future:"%s հետո",past:"%s առաջ",s:"մի քանի վայրկյան",ss:"%d վայրկյան",m:"րոպե",mm:"%d րոպե",h:"ժամ",hh:"%d ժամ",d:"օր",dd:"%d օր",M:"ամիս",MM:"%d ամիս",y:"տարի",yy:"%d տարի"},meridiemParse:/գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,isPM:function(e){return/^(ցերեկվա|երեկոյան)$/.test(e)},meridiem:function(e){return e<4?"գիշերվա":e<12?"առավոտվա":e<17?"ցերեկվա":"երեկոյան"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(ին|րդ)/,ordinal:function(e,t){switch(t){case"DDD":case"w":case"W":case"DDDo":return 1===e?e+"-ին":e+"-րդ";default:return e}},week:{dow:1,doy:7}});return t}))},d716:function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("ca",{months:{standalone:"gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de març_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[demà a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(e,t){var a=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"è";return"w"!==t&&"W"!==t||(a="a"),e+a},week:{dow:1,doy:4}});return t}))},d8e8:function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},d945:function(e,t,a){"use strict";var n=a("0832"),r=a("2b61");function i(e){return void 0!==e._view.width}function s(e){var t,a,n,r,s=e._view;if(i(e)){var o=s.width/2;t=s.x-o,a=s.x+o,n=Math.min(s.y,s.base),r=Math.max(s.y,s.base)}else{var d=s.height/2;t=Math.min(s.x,s.base),a=Math.max(s.x,s.base),n=s.y-d,r=s.y+d}return{left:t,top:n,right:a,bottom:r}}n._set("global",{elements:{rectangle:{backgroundColor:n.global.defaultColor,borderColor:n.global.defaultColor,borderSkipped:"bottom",borderWidth:0}}}),e.exports=r.extend({draw:function(){var e,t,a,n,r,i,s,o=this._chart.ctx,d=this._view,u=d.borderWidth;if(d.horizontal?(e=d.base,t=d.x,a=d.y-d.height/2,n=d.y+d.height/2,r=t>e?1:-1,i=1,s=d.borderSkipped||"left"):(e=d.x-d.width/2,t=d.x+d.width/2,a=d.y,n=d.base,r=1,i=n>a?1:-1,s=d.borderSkipped||"bottom"),u){var l=Math.min(Math.abs(e-t),Math.abs(a-n));u=u>l?l:u;var _=u/2,c=e+("left"!==s?_*r:0),m=t+("right"!==s?-_*r:0),h=a+("top"!==s?_*i:0),f=n+("bottom"!==s?-_*i:0);c!==m&&(a=h,n=f),h!==f&&(e=c,t=m)}o.beginPath(),o.fillStyle=d.backgroundColor,o.strokeStyle=d.borderColor,o.lineWidth=u;var M=[[e,n],[e,a],[t,a],[t,n]],p=["bottom","left","top","right"],y=p.indexOf(s,0);function g(e){return M[(y+e)%4]}-1===y&&(y=0);var L=g(0);o.moveTo(L[0],L[1]);for(var v=1;v<4;v++)L=g(v),o.lineTo(L[0],L[1]);o.fill(),u&&o.stroke()},height:function(){var e=this._view;return e.base-e.y},inRange:function(e,t){var a=!1;if(this._view){var n=s(this);a=e>=n.left&&e<=n.right&&t>=n.top&&t<=n.bottom}return a},inLabelRange:function(e,t){var a=this;if(!a._view)return!1;var n=!1,r=s(a);return n=i(a)?e>=r.left&&e<=r.right:t>=r.top&&t<=r.bottom,n},inXRange:function(e){var t=s(this);return e>=t.left&&e<=t.right},inYRange:function(e){var t=s(this);return e>=t.top&&e<=t.bottom},getCenterPoint:function(){var e,t,a=this._view;return i(this)?(e=a.x,t=(a.y+a.base)/2):(e=(a.x+a.base)/2,t=a.y),{x:e,y:t}},getArea:function(){var e=this._view;return e.width*Math.abs(e.y-e.base)},tooltipPosition:function(){var e=this._view;return{x:e.x,y:e.y}}})},d9f8:function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("fr-ca",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}}});return t}))},db29:function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),a="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),n=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],r=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,i=e.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,n){return e?/-MMM-/.test(n)?a[e.month()]:t[e.month()]:t},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}});return i}))},dc4d:function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},a={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"},n=[/^जन/i,/^फ़र|फर/i,/^मार्च/i,/^अप्रै/i,/^मई/i,/^जून/i,/^जुल/i,/^अग/i,/^सितं|सित/i,/^अक्टू/i,/^नव|नवं/i,/^दिसं|दिस/i],r=[/^जन/i,/^फ़र/i,/^मार्च/i,/^अप्रै/i,/^मई/i,/^जून/i,/^जुल/i,/^अग/i,/^सित/i,/^अक्टू/i,/^नव/i,/^दिस/i],i=e.defineLocale("hi",{months:{format:"जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर".split("_"),standalone:"जनवरी_फरवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितंबर_अक्टूबर_नवंबर_दिसंबर".split("_")},monthsShort:"जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.".split("_"),weekdays:"रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm बजे",LTS:"A h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm बजे",LLLL:"dddd, D MMMM YYYY, A h:mm बजे"},monthsParse:n,longMonthsParse:n,shortMonthsParse:r,monthsRegex:/^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,monthsShortRegex:/^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,monthsStrictRegex:/^(जनवरी?|फ़रवरी|फरवरी?|मार्च?|अप्रैल?|मई?|जून?|जुलाई?|अगस्त?|सितम्बर|सितंबर|सित?\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर?|दिसम्बर|दिसंबर?)/i,monthsShortStrictRegex:/^(जन\.?|फ़र\.?|मार्च?|अप्रै\.?|मई?|जून?|जुल\.?|अग\.?|सित\.?|अक्टू\.?|नव\.?|दिस\.?)/i,calendar:{sameDay:"[आज] LT",nextDay:"[कल] LT",nextWeek:"dddd, LT",lastDay:"[कल] LT",lastWeek:"[पिछले] dddd, LT",sameElse:"L"},relativeTime:{future:"%s में",past:"%s पहले",s:"कुछ ही क्षण",ss:"%d सेकंड",m:"एक मिनट",mm:"%d मिनट",h:"एक घंटा",hh:"%d घंटे",d:"एक दिन",dd:"%d दिन",M:"एक महीने",MM:"%d महीने",y:"एक वर्ष",yy:"%d वर्ष"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return a[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/रात|सुबह|दोपहर|शाम/,meridiemHour:function(e,t){return 12===e&&(e=0),"रात"===t?e<4?e:e+12:"सुबह"===t?e:"दोपहर"===t?e>=10?e:e+12:"शाम"===t?e+12:void 0},meridiem:function(e,t,a){return e<4?"रात":e<10?"सुबह":e<17?"दोपहर":e<20?"शाम":"रात"},week:{dow:0,doy:6}});return i}))},df9c:function(e,t,a){"use strict";var n=a("0832");n._set("scatter",{hover:{mode:"single"},scales:{xAxes:[{id:"x-axis-1",type:"linear",position:"bottom"}],yAxes:[{id:"y-axis-1",type:"linear",position:"left"}]},showLines:!1,tooltips:{callbacks:{title:function(){return""},label:function(e){return"("+e.xLabel+", "+e.yLabel+")"}}}}),e.exports=function(e){e.controllers.scatter=e.controllers.line}},e0c5:function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t={1:"૧",2:"૨",3:"૩",4:"૪",5:"૫",6:"૬",7:"૭",8:"૮",9:"૯",0:"૦"},a={"૧":"1","૨":"2","૩":"3","૪":"4","૫":"5","૬":"6","૭":"7","૮":"8","૯":"9","૦":"0"},n=e.defineLocale("gu",{months:"જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર".split("_"),monthsShort:"જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.".split("_"),monthsParseExact:!0,weekdays:"રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર".split("_"),weekdaysShort:"રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ".split("_"),weekdaysMin:"ર_સો_મં_બુ_ગુ_શુ_શ".split("_"),longDateFormat:{LT:"A h:mm વાગ્યે",LTS:"A h:mm:ss વાગ્યે",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm વાગ્યે",LLLL:"dddd, D MMMM YYYY, A h:mm વાગ્યે"},calendar:{sameDay:"[આજ] LT",nextDay:"[કાલે] LT",nextWeek:"dddd, LT",lastDay:"[ગઇકાલે] LT",lastWeek:"[પાછલા] dddd, LT",sameElse:"L"},relativeTime:{future:"%s મા",past:"%s પહેલા",s:"અમુક પળો",ss:"%d સેકંડ",m:"એક મિનિટ",mm:"%d મિનિટ",h:"એક કલાક",hh:"%d કલાક",d:"એક દિવસ",dd:"%d દિવસ",M:"એક મહિનો",MM:"%d મહિનો",y:"એક વર્ષ",yy:"%d વર્ષ"},preparse:function(e){return e.replace(/[૧૨૩૪૫૬૭૮૯૦]/g,(function(e){return a[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/રાત|બપોર|સવાર|સાંજ/,meridiemHour:function(e,t){return 12===e&&(e=0),"રાત"===t?e<4?e:e+12:"સવાર"===t?e:"બપોર"===t?e>=10?e:e+12:"સાંજ"===t?e+12:void 0},meridiem:function(e,t,a){return e<4?"રાત":e<10?"સવાર":e<17?"બપોર":e<20?"સાંજ":"રાત"},week:{dow:0,doy:6}});return n}))},e11e:function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},e1d3:function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,a=1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+a},week:{dow:1,doy:4}});return t}))},e596:function(e,t,a){"use strict";var n=a("0832"),r=a("bef1"),i=a("4438");n._set("polarArea",{scale:{type:"radialLinear",angleLines:{display:!1},gridLines:{circular:!0},pointLabels:{display:!1},ticks:{beginAtZero:!0}},animation:{animateRotate:!0,animateScale:!0},startAngle:-.5*Math.PI,legendCallback:function(e){var t=[];t.push('<ul class="'+e.id+'-legend">');var a=e.data,n=a.datasets,r=a.labels;if(n.length)for(var i=0;i<n[0].data.length;++i)t.push('<li><span style="background-color:'+n[0].backgroundColor[i]+'"></span>'),r[i]&&t.push(r[i]),t.push("</li>");return t.push("</ul>"),t.join("")},legend:{labels:{generateLabels:function(e){var t=e.data;return t.labels.length&&t.datasets.length?t.labels.map((function(a,n){var r=e.getDatasetMeta(0),s=t.datasets[0],o=r.data[n],d=o.custom||{},u=i.valueAtIndexOrDefault,l=e.options.elements.arc,_=d.backgroundColor?d.backgroundColor:u(s.backgroundColor,n,l.backgroundColor),c=d.borderColor?d.borderColor:u(s.borderColor,n,l.borderColor),m=d.borderWidth?d.borderWidth:u(s.borderWidth,n,l.borderWidth);return{text:a,fillStyle:_,strokeStyle:c,lineWidth:m,hidden:isNaN(s.data[n])||r.data[n].hidden,index:n}})):[]}},onClick:function(e,t){var a,n,r,i=t.index,s=this.chart;for(a=0,n=(s.data.datasets||[]).length;a<n;++a)r=s.getDatasetMeta(a),r.data[i].hidden=!r.data[i].hidden;s.update()}},tooltips:{callbacks:{title:function(){return""},label:function(e,t){return t.labels[e.index]+": "+e.yLabel}}}}),e.exports=function(e){e.controllers.polarArea=e.DatasetController.extend({dataElementType:r.Arc,linkScales:i.noop,update:function(e){var t,a,n,r=this,s=r.getDataset(),o=r.getMeta(),d=r.chart.options.startAngle||0,u=r._starts=[],l=r._angles=[];for(r._updateRadius(),o.count=r.countVisibleElements(),t=0,a=s.data.length;t<a;t++)u[t]=d,n=r._computeAngle(t),l[t]=n,d+=n;i.each(o.data,(function(t,a){r.updateElement(t,a,e)}))},_updateRadius:function(){var e=this,t=e.chart,a=t.chartArea,n=t.options,r=n.elements.arc,i=Math.min(a.right-a.left,a.bottom-a.top);t.outerRadius=Math.max((i-r.borderWidth/2)/2,0),t.innerRadius=Math.max(n.cutoutPercentage?t.outerRadius/100*n.cutoutPercentage:1,0),t.radiusLength=(t.outerRadius-t.innerRadius)/t.getVisibleDatasetCount(),e.outerRadius=t.outerRadius-t.radiusLength*e.index,e.innerRadius=e.outerRadius-t.radiusLength},updateElement:function(e,t,a){var n=this,r=n.chart,s=n.getDataset(),o=r.options,d=o.animation,u=r.scale,l=r.data.labels,_=u.xCenter,c=u.yCenter,m=o.startAngle,h=e.hidden?0:u.getDistanceFromCenterForValue(s.data[t]),f=n._starts[t],M=f+(e.hidden?0:n._angles[t]),p=d.animateScale?0:u.getDistanceFromCenterForValue(s.data[t]);i.extend(e,{_datasetIndex:n.index,_index:t,_scale:u,_model:{x:_,y:c,innerRadius:0,outerRadius:a?p:h,startAngle:a&&d.animateRotate?m:f,endAngle:a&&d.animateRotate?m:M,label:i.valueAtIndexOrDefault(l,t,l[t])}});var y=this.chart.options.elements.arc,g=e.custom||{},L=i.valueAtIndexOrDefault,v=e._model;v.backgroundColor=g.backgroundColor?g.backgroundColor:L(s.backgroundColor,t,y.backgroundColor),v.borderColor=g.borderColor?g.borderColor:L(s.borderColor,t,y.borderColor),v.borderWidth=g.borderWidth?g.borderWidth:L(s.borderWidth,t,y.borderWidth),e.pivot()},countVisibleElements:function(){var e=this.getDataset(),t=this.getMeta(),a=0;return i.each(t.data,(function(t,n){isNaN(e.data[n])||t.hidden||a++})),a},_computeAngle:function(e){var t=this,a=this.getMeta().count,n=t.getDataset(),r=t.getMeta();if(isNaN(n.data[e])||r.data[e].hidden)return 0;var s={chart:t.chart,dataIndex:e,dataset:n,datasetIndex:t.index};return i.options.resolve([t.chart.options.elements.arc.angle,2*Math.PI/a],s,e)}})}},e81d:function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t={1:"១",2:"២",3:"៣",4:"៤",5:"៥",6:"៦",7:"៧",8:"៨",9:"៩",0:"០"},a={"១":"1","២":"2","៣":"3","៤":"4","៥":"5","៦":"6","៧":"7","៨":"8","៩":"9","០":"0"},n=e.defineLocale("km",{months:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),monthsShort:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),weekdays:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysShort:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysMin:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/ព្រឹក|ល្ងាច/,isPM:function(e){return"ល្ងាច"===e},meridiem:function(e,t,a){return e<12?"ព្រឹក":"ល្ងាច"},calendar:{sameDay:"[ថ្ងៃនេះ ម៉ោង] LT",nextDay:"[ស្អែក ម៉ោង] LT",nextWeek:"dddd [ម៉ោង] LT",lastDay:"[ម្សិលមិញ ម៉ោង] LT",lastWeek:"dddd [សប្តាហ៍មុន] [ម៉ោង] LT",sameElse:"L"},relativeTime:{future:"%sទៀត",past:"%sមុន",s:"ប៉ុន្មានវិនាទី",ss:"%d វិនាទី",m:"មួយនាទី",mm:"%d នាទី",h:"មួយម៉ោង",hh:"%d ម៉ោង",d:"មួយថ្ងៃ",dd:"%d ថ្ងៃ",M:"មួយខែ",MM:"%d ខែ",y:"មួយឆ្នាំ",yy:"%d ឆ្នាំ"},dayOfMonthOrdinalParse:/ទី\d{1,2}/,ordinal:"ទី%d",preparse:function(e){return e.replace(/[១២៣៤៥៦៧៨៩០]/g,(function(e){return a[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},week:{dow:1,doy:4}});return n}))},eaba:function(e,t,a){"use strict";var n=a("039b"),r=a("7699"),i=a("0832"),s=a("4438"),o=a("9a5a"),d=a("7c42"),u=a("88ce"),l=a("5603"),_=a("b631"),c=a("c7cb");e.exports=function(e){function t(e){e=e||{};var t=e.data=e.data||{};return t.datasets=t.datasets||[],t.labels=t.labels||[],e.options=s.configMerge(i.global,i[e.type],e.options||{}),e}function a(t){var a=t.options;s.each(t.scales,(function(e){d.removeBox(t,e)})),a=s.configMerge(e.defaults.global,e.defaults[t.config.type],a),t.options=t.config.options=a,t.ensureScalesHaveIDs(),t.buildOrUpdateScales(),t.tooltip._options=a.tooltips,t.tooltip.initialize()}function m(e){return"top"===e||"bottom"===e}e.types={},e.instances={},e.controllers={},s.extend(e.prototype,{construct:function(a,n){var r=this;n=t(n);var i=u.acquireContext(a,n),o=i&&i.canvas,d=o&&o.height,l=o&&o.width;r.id=s.uid(),r.ctx=i,r.canvas=o,r.config=n,r.width=l,r.height=d,r.aspectRatio=d?l/d:null,r.options=n.options,r._bufferedRender=!1,r.chart=r,r.controller=r,e.instances[r.id]=r,Object.defineProperty(r,"data",{get:function(){return r.config.data},set:function(e){r.config.data=e}}),i&&o?(r.initialize(),r.update()):console.error("Failed to create chart: can't acquire context from the given item")},initialize:function(){var e=this;return l.notify(e,"beforeInit"),s.retinaScale(e,e.options.devicePixelRatio),e.bindEvents(),e.options.responsive&&e.resize(!0),e.ensureScalesHaveIDs(),e.buildOrUpdateScales(),e.initToolTip(),l.notify(e,"afterInit"),e},clear:function(){return s.canvas.clear(this),this},stop:function(){return r.cancelAnimation(this),this},resize:function(e){var t=this,a=t.options,n=t.canvas,r=a.maintainAspectRatio&&t.aspectRatio||null,i=Math.max(0,Math.floor(s.getMaximumWidth(n))),o=Math.max(0,Math.floor(r?i/r:s.getMaximumHeight(n)));if((t.width!==i||t.height!==o)&&(n.width=t.width=i,n.height=t.height=o,n.style.width=i+"px",n.style.height=o+"px",s.retinaScale(t,a.devicePixelRatio),!e)){var d={width:i,height:o};l.notify(t,"resize",[d]),t.options.onResize&&t.options.onResize(t,d),t.stop(),t.update({duration:t.options.responsiveAnimationDuration})}},ensureScalesHaveIDs:function(){var e=this.options,t=e.scales||{},a=e.scale;s.each(t.xAxes,(function(e,t){e.id=e.id||"x-axis-"+t})),s.each(t.yAxes,(function(e,t){e.id=e.id||"y-axis-"+t})),a&&(a.id=a.id||"scale")},buildOrUpdateScales:function(){var e=this,t=e.options,a=e.scales||{},n=[],r=Object.keys(a).reduce((function(e,t){return e[t]=!1,e}),{});t.scales&&(n=n.concat((t.scales.xAxes||[]).map((function(e){return{options:e,dtype:"category",dposition:"bottom"}})),(t.scales.yAxes||[]).map((function(e){return{options:e,dtype:"linear",dposition:"left"}})))),t.scale&&n.push({options:t.scale,dtype:"radialLinear",isDefault:!0,dposition:"chartArea"}),s.each(n,(function(t){var n=t.options,i=n.id,o=s.valueOrDefault(n.type,t.dtype);m(n.position)!==m(t.dposition)&&(n.position=t.dposition),r[i]=!0;var d=null;if(i in a&&a[i].type===o)d=a[i],d.options=n,d.ctx=e.ctx,d.chart=e;else{var u=_.getScaleConstructor(o);if(!u)return;d=new u({id:i,type:o,options:n,ctx:e.ctx,chart:e}),a[d.id]=d}d.mergeTicksOptions(),t.isDefault&&(e.scale=d)})),s.each(r,(function(e,t){e||delete a[t]})),e.scales=a,_.addScalesToLayout(this)},buildOrUpdateControllers:function(){var t=this,a=[],n=[];return s.each(t.data.datasets,(function(r,i){var s=t.getDatasetMeta(i),o=r.type||t.config.type;if(s.type&&s.type!==o&&(t.destroyDatasetMeta(i),s=t.getDatasetMeta(i)),s.type=o,a.push(s.type),s.controller)s.controller.updateIndex(i),s.controller.linkScales();else{var d=e.controllers[s.type];if(void 0===d)throw new Error('"'+s.type+'" is not a chart type.');s.controller=new d(t,i),n.push(s.controller)}}),t),n},resetElements:function(){var e=this;s.each(e.data.datasets,(function(t,a){e.getDatasetMeta(a).controller.reset()}),e)},reset:function(){this.resetElements(),this.tooltip.initialize()},update:function(e){var t=this;if(e&&"object"===typeof e||(e={duration:e,lazy:arguments[1]}),a(t),l._invalidate(t),!1!==l.notify(t,"beforeUpdate")){t.tooltip._data=t.data;var n=t.buildOrUpdateControllers();s.each(t.data.datasets,(function(e,a){t.getDatasetMeta(a).controller.buildOrUpdateElements()}),t),t.updateLayout(),t.options.animation&&t.options.animation.duration&&s.each(n,(function(e){e.reset()})),t.updateDatasets(),t.tooltip.initialize(),t.lastActive=[],l.notify(t,"afterUpdate"),t._bufferedRender?t._bufferedRequest={duration:e.duration,easing:e.easing,lazy:e.lazy}:t.render(e)}},updateLayout:function(){var e=this;!1!==l.notify(e,"beforeLayout")&&(d.update(this,this.width,this.height),l.notify(e,"afterScaleUpdate"),l.notify(e,"afterLayout"))},updateDatasets:function(){var e=this;if(!1!==l.notify(e,"beforeDatasetsUpdate")){for(var t=0,a=e.data.datasets.length;t<a;++t)e.updateDataset(t);l.notify(e,"afterDatasetsUpdate")}},updateDataset:function(e){var t=this,a=t.getDatasetMeta(e),n={meta:a,index:e};!1!==l.notify(t,"beforeDatasetUpdate",[n])&&(a.controller.update(),l.notify(t,"afterDatasetUpdate",[n]))},render:function(e){var t=this;e&&"object"===typeof e||(e={duration:e,lazy:arguments[1]});var a=e.duration,i=e.lazy;if(!1!==l.notify(t,"beforeRender")){var o=t.options.animation,d=function(e){l.notify(t,"afterRender"),s.callback(o&&o.onComplete,[e],t)};if(o&&("undefined"!==typeof a&&0!==a||"undefined"===typeof a&&0!==o.duration)){var u=new n({numSteps:(a||o.duration)/16.66,easing:e.easing||o.easing,render:function(e,t){var a=s.easing.effects[t.easing],n=t.currentStep,r=n/t.numSteps;e.draw(a(r),r,n)},onAnimationProgress:o.onProgress,onAnimationComplete:d});r.addAnimation(t,u,a,i)}else t.draw(),d(new n({numSteps:0,chart:t}));return t}},draw:function(e){var t=this;t.clear(),s.isNullOrUndef(e)&&(e=1),t.transition(e),t.width<=0||t.height<=0||!1!==l.notify(t,"beforeDraw",[e])&&(s.each(t.boxes,(function(e){e.draw(t.chartArea)}),t),t.scale&&t.scale.draw(),t.drawDatasets(e),t._drawTooltip(e),l.notify(t,"afterDraw",[e]))},transition:function(e){for(var t=this,a=0,n=(t.data.datasets||[]).length;a<n;++a)t.isDatasetVisible(a)&&t.getDatasetMeta(a).controller.transition(e);t.tooltip.transition(e)},drawDatasets:function(e){var t=this;if(!1!==l.notify(t,"beforeDatasetsDraw",[e])){for(var a=(t.data.datasets||[]).length-1;a>=0;--a)t.isDatasetVisible(a)&&t.drawDataset(a,e);l.notify(t,"afterDatasetsDraw",[e])}},drawDataset:function(e,t){var a=this,n=a.getDatasetMeta(e),r={meta:n,index:e,easingValue:t};!1!==l.notify(a,"beforeDatasetDraw",[r])&&(n.controller.draw(t),l.notify(a,"afterDatasetDraw",[r]))},_drawTooltip:function(e){var t=this,a=t.tooltip,n={tooltip:a,easingValue:e};!1!==l.notify(t,"beforeTooltipDraw",[n])&&(a.draw(),l.notify(t,"afterTooltipDraw",[n]))},getElementAtEvent:function(e){return o.modes.single(this,e)},getElementsAtEvent:function(e){return o.modes.label(this,e,{intersect:!0})},getElementsAtXAxis:function(e){return o.modes["x-axis"](this,e,{intersect:!0})},getElementsAtEventForMode:function(e,t,a){var n=o.modes[t];return"function"===typeof n?n(this,e,a):[]},getDatasetAtEvent:function(e){return o.modes.dataset(this,e,{intersect:!0})},getDatasetMeta:function(e){var t=this,a=t.data.datasets[e];a._meta||(a._meta={});var n=a._meta[t.id];return n||(n=a._meta[t.id]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null}),n},getVisibleDatasetCount:function(){for(var e=0,t=0,a=this.data.datasets.length;t<a;++t)this.isDatasetVisible(t)&&e++;return e},isDatasetVisible:function(e){var t=this.getDatasetMeta(e);return"boolean"===typeof t.hidden?!t.hidden:!this.data.datasets[e].hidden},generateLegend:function(){return this.options.legendCallback(this)},destroyDatasetMeta:function(e){var t=this.id,a=this.data.datasets[e],n=a._meta&&a._meta[t];n&&(n.controller.destroy(),delete a._meta[t])},destroy:function(){var t,a,n=this,r=n.canvas;for(n.stop(),t=0,a=n.data.datasets.length;t<a;++t)n.destroyDatasetMeta(t);r&&(n.unbindEvents(),s.canvas.clear(n),u.releaseContext(n.ctx),n.canvas=null,n.ctx=null),l.notify(n,"destroy"),delete e.instances[n.id]},toBase64Image:function(){return this.canvas.toDataURL.apply(this.canvas,arguments)},initToolTip:function(){var e=this;e.tooltip=new c({_chart:e,_chartInstance:e,_data:e.data,_options:e.options.tooltips},e)},bindEvents:function(){var e=this,t=e._listeners={},a=function(){e.eventHandler.apply(e,arguments)};s.each(e.options.events,(function(n){u.addEventListener(e,n,a),t[n]=a})),e.options.responsive&&(a=function(){e.resize()},u.addEventListener(e,"resize",a),t.resize=a)},unbindEvents:function(){var e=this,t=e._listeners;t&&(delete e._listeners,s.each(t,(function(t,a){u.removeEventListener(e,a,t)})))},updateHoverStyle:function(e,t,a){var n,r,i,s=a?"setHoverStyle":"removeHoverStyle";for(r=0,i=e.length;r<i;++r)n=e[r],n&&this.getDatasetMeta(n._datasetIndex).controller[s](n)},eventHandler:function(e){var t=this,a=t.tooltip;if(!1!==l.notify(t,"beforeEvent",[e])){t._bufferedRender=!0,t._bufferedRequest=null;var n=t.handleEvent(e);a&&(n=a._start?a.handleEvent(e):n|a.handleEvent(e)),l.notify(t,"afterEvent",[e]);var r=t._bufferedRequest;return r?t.render(r):n&&!t.animating&&(t.stop(),t.render({duration:t.options.hover.animationDuration,lazy:!0})),t._bufferedRender=!1,t._bufferedRequest=null,t}},handleEvent:function(e){var t=this,a=t.options||{},n=a.hover,r=!1;return t.lastActive=t.lastActive||[],"mouseout"===e.type?t.active=[]:t.active=t.getElementsAtEventForMode(e,n.mode,n),s.callback(a.onHover||a.hover.onHover,[e.native,t.active],t),"mouseup"!==e.type&&"click"!==e.type||a.onClick&&a.onClick.call(t,e.native,t.active),t.lastActive.length&&t.updateHoverStyle(t.lastActive,n.mode,!1),t.active.length&&n.mode&&t.updateHoverStyle(t.active,n.mode,!0),r=!s.arrayEquals(t.active,t.lastActive),t.lastActive=t.active,r}}),e.Controller=e}},eb0c:function(e,t,a){var n=a("bb15"),r=a("9a02"),i=function(e){return e instanceof i?e:this instanceof i?(this.valid=!1,this.values={rgb:[0,0,0],hsl:[0,0,0],hsv:[0,0,0],hwb:[0,0,0],cmyk:[0,0,0,0],alpha:1},void("string"===typeof e?(t=r.getRgba(e),t?this.setValues("rgb",t):(t=r.getHsla(e))?this.setValues("hsl",t):(t=r.getHwb(e))&&this.setValues("hwb",t)):"object"===typeof e&&(t=e,void 0!==t.r||void 0!==t.red?this.setValues("rgb",t):void 0!==t.l||void 0!==t.lightness?this.setValues("hsl",t):void 0!==t.v||void 0!==t.value?this.setValues("hsv",t):void 0!==t.w||void 0!==t.whiteness?this.setValues("hwb",t):void 0===t.c&&void 0===t.cyan||this.setValues("cmyk",t)))):new i(e);var t};i.prototype={isValid:function(){return this.valid},rgb:function(){return this.setSpace("rgb",arguments)},hsl:function(){return this.setSpace("hsl",arguments)},hsv:function(){return this.setSpace("hsv",arguments)},hwb:function(){return this.setSpace("hwb",arguments)},cmyk:function(){return this.setSpace("cmyk",arguments)},rgbArray:function(){return this.values.rgb},hslArray:function(){return this.values.hsl},hsvArray:function(){return this.values.hsv},hwbArray:function(){var e=this.values;return 1!==e.alpha?e.hwb.concat([e.alpha]):e.hwb},cmykArray:function(){return this.values.cmyk},rgbaArray:function(){var e=this.values;return e.rgb.concat([e.alpha])},hslaArray:function(){var e=this.values;return e.hsl.concat([e.alpha])},alpha:function(e){return void 0===e?this.values.alpha:(this.setValues("alpha",e),this)},red:function(e){return this.setChannel("rgb",0,e)},green:function(e){return this.setChannel("rgb",1,e)},blue:function(e){return this.setChannel("rgb",2,e)},hue:function(e){return e&&(e%=360,e=e<0?360+e:e),this.setChannel("hsl",0,e)},saturation:function(e){return this.setChannel("hsl",1,e)},lightness:function(e){return this.setChannel("hsl",2,e)},saturationv:function(e){return this.setChannel("hsv",1,e)},whiteness:function(e){return this.setChannel("hwb",1,e)},blackness:function(e){return this.setChannel("hwb",2,e)},value:function(e){return this.setChannel("hsv",2,e)},cyan:function(e){return this.setChannel("cmyk",0,e)},magenta:function(e){return this.setChannel("cmyk",1,e)},yellow:function(e){return this.setChannel("cmyk",2,e)},black:function(e){return this.setChannel("cmyk",3,e)},hexString:function(){return r.hexString(this.values.rgb)},rgbString:function(){return r.rgbString(this.values.rgb,this.values.alpha)},rgbaString:function(){return r.rgbaString(this.values.rgb,this.values.alpha)},percentString:function(){return r.percentString(this.values.rgb,this.values.alpha)},hslString:function(){return r.hslString(this.values.hsl,this.values.alpha)},hslaString:function(){return r.hslaString(this.values.hsl,this.values.alpha)},hwbString:function(){return r.hwbString(this.values.hwb,this.values.alpha)},keyword:function(){return r.keyword(this.values.rgb,this.values.alpha)},rgbNumber:function(){var e=this.values.rgb;return e[0]<<16|e[1]<<8|e[2]},luminosity:function(){for(var e=this.values.rgb,t=[],a=0;a<e.length;a++){var n=e[a]/255;t[a]=n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4)}return.2126*t[0]+.7152*t[1]+.0722*t[2]},contrast:function(e){var t=this.luminosity(),a=e.luminosity();return t>a?(t+.05)/(a+.05):(a+.05)/(t+.05)},level:function(e){var t=this.contrast(e);return t>=7.1?"AAA":t>=4.5?"AA":""},dark:function(){var e=this.values.rgb,t=(299*e[0]+587*e[1]+114*e[2])/1e3;return t<128},light:function(){return!this.dark()},negate:function(){for(var e=[],t=0;t<3;t++)e[t]=255-this.values.rgb[t];return this.setValues("rgb",e),this},lighten:function(e){var t=this.values.hsl;return t[2]+=t[2]*e,this.setValues("hsl",t),this},darken:function(e){var t=this.values.hsl;return t[2]-=t[2]*e,this.setValues("hsl",t),this},saturate:function(e){var t=this.values.hsl;return t[1]+=t[1]*e,this.setValues("hsl",t),this},desaturate:function(e){var t=this.values.hsl;return t[1]-=t[1]*e,this.setValues("hsl",t),this},whiten:function(e){var t=this.values.hwb;return t[1]+=t[1]*e,this.setValues("hwb",t),this},blacken:function(e){var t=this.values.hwb;return t[2]+=t[2]*e,this.setValues("hwb",t),this},greyscale:function(){var e=this.values.rgb,t=.3*e[0]+.59*e[1]+.11*e[2];return this.setValues("rgb",[t,t,t]),this},clearer:function(e){var t=this.values.alpha;return this.setValues("alpha",t-t*e),this},opaquer:function(e){var t=this.values.alpha;return this.setValues("alpha",t+t*e),this},rotate:function(e){var t=this.values.hsl,a=(t[0]+e)%360;return t[0]=a<0?360+a:a,this.setValues("hsl",t),this},mix:function(e,t){var a=this,n=e,r=void 0===t?.5:t,i=2*r-1,s=a.alpha()-n.alpha(),o=((i*s===-1?i:(i+s)/(1+i*s))+1)/2,d=1-o;return this.rgb(o*a.red()+d*n.red(),o*a.green()+d*n.green(),o*a.blue()+d*n.blue()).alpha(a.alpha()*r+n.alpha()*(1-r))},toJSON:function(){return this.rgb()},clone:function(){var e,t,a=new i,n=this.values,r=a.values;for(var s in n)n.hasOwnProperty(s)&&(e=n[s],t={}.toString.call(e),"[object Array]"===t?r[s]=e.slice(0):"[object Number]"===t?r[s]=e:console.error("unexpected color value:",e));return a}},i.prototype.spaces={rgb:["red","green","blue"],hsl:["hue","saturation","lightness"],hsv:["hue","saturation","value"],hwb:["hue","whiteness","blackness"],cmyk:["cyan","magenta","yellow","black"]},i.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]},i.prototype.getValues=function(e){for(var t=this.values,a={},n=0;n<e.length;n++)a[e.charAt(n)]=t[e][n];return 1!==t.alpha&&(a.a=t.alpha),a},i.prototype.setValues=function(e,t){var a,r,i=this.values,s=this.spaces,o=this.maxes,d=1;if(this.valid=!0,"alpha"===e)d=t;else if(t.length)i[e]=t.slice(0,e.length),d=t[e.length];else if(void 0!==t[e.charAt(0)]){for(a=0;a<e.length;a++)i[e][a]=t[e.charAt(a)];d=t.a}else if(void 0!==t[s[e][0]]){var u=s[e];for(a=0;a<e.length;a++)i[e][a]=t[u[a]];d=t.alpha}if(i.alpha=Math.max(0,Math.min(1,void 0===d?i.alpha:d)),"alpha"===e)return!1;for(a=0;a<e.length;a++)r=Math.max(0,Math.min(o[e][a],i[e][a])),i[e][a]=Math.round(r);for(var l in s)l!==e&&(i[l]=n[e][l](i[e]));return!0},i.prototype.setSpace=function(e,t){var a=t[0];return void 0===a?this.getValues(e):("number"===typeof a&&(a=Array.prototype.slice.call(t)),this.setValues(e,a),this)},i.prototype.setChannel=function(e,t,a){var n=this.values[e];return void 0===a?n[t]:(a===n[t]||(n[t]=a,this.setValues(e,n)),this)},"undefined"!==typeof window&&(window.Color=i),e.exports=i},ebe4:function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,a){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}});return t}))},ec18:function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
function t(e,t,a,n){var r={s:["mõne sekundi","mõni sekund","paar sekundit"],ss:[e+"sekundi",e+"sekundit"],m:["ühe minuti","üks minut"],mm:[e+" minuti",e+" minutit"],h:["ühe tunni","tund aega","üks tund"],hh:[e+" tunni",e+" tundi"],d:["ühe päeva","üks päev"],M:["kuu aja","kuu aega","üks kuu"],MM:[e+" kuu",e+" kuud"],y:["ühe aasta","aasta","üks aasta"],yy:[e+" aasta",e+" aastat"]};return t?r[a][2]?r[a][2]:r[a][1]:n?r[a][0]:r[a][1]}var a=e.defineLocale("et",{months:"jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[Täna,] LT",nextDay:"[Homme,] LT",nextWeek:"[Järgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s pärast",past:"%s tagasi",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:"%d päeva",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return a}))},ec2e:function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("en-in",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,a=1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+a},week:{dow:0,doy:6}});return t}))},ecee:function(e,t,a){"use strict";e.exports=function(e){e.Line=function(t,a){return a.type="line",new e(t,a)}}},eda5:function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("si",{months:"ජනවාරි_පෙබරවාරි_මාර්තු_අප්රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්".split("_"),monthsShort:"ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ".split("_"),weekdays:"ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා".split("_"),weekdaysShort:"ඉරි_සඳු_අඟ_බදා_බ්රහ_සිකු_සෙන".split("_"),weekdaysMin:"ඉ_ස_අ_බ_බ්ර_සි_සෙ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [වැනි] dddd, a h:mm:ss"},calendar:{sameDay:"[අද] LT[ට]",nextDay:"[හෙට] LT[ට]",nextWeek:"dddd LT[ට]",lastDay:"[ඊයේ] LT[ට]",lastWeek:"[පසුගිය] dddd LT[ට]",sameElse:"L"},relativeTime:{future:"%sකින්",past:"%sකට පෙර",s:"තත්පර කිහිපය",ss:"තත්පර %d",m:"මිනිත්තුව",mm:"මිනිත්තු %d",h:"පැය",hh:"පැය %d",d:"දිනය",dd:"දින %d",M:"මාසය",MM:"මාස %d",y:"වසර",yy:"වසර %d"},dayOfMonthOrdinalParse:/\d{1,2} වැනි/,ordinal:function(e){return e+" වැනි"},meridiemParse:/පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,isPM:function(e){return"ප.ව."===e||"පස් වරු"===e},meridiem:function(e,t,a){return e>11?a?"ප.ව.":"පස් වරු":a?"පෙ.ව.":"පෙර වරු"}});return t}))},f13b:function(e,t,a){"use strict";var n=a("71db"),r=a("b631");e.exports=function(){var e={position:"bottom"},t=n.extend({getLabels:function(){var e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels},determineDataLimits:function(){var e,t=this,a=t.getLabels();t.minIndex=0,t.maxIndex=a.length-1,void 0!==t.options.ticks.min&&(e=a.indexOf(t.options.ticks.min),t.minIndex=-1!==e?e:t.minIndex),void 0!==t.options.ticks.max&&(e=a.indexOf(t.options.ticks.max),t.maxIndex=-1!==e?e:t.maxIndex),t.min=a[t.minIndex],t.max=a[t.maxIndex]},buildTicks:function(){var e=this,t=e.getLabels();e.ticks=0===e.minIndex&&e.maxIndex===t.length-1?t:t.slice(e.minIndex,e.maxIndex+1)},getLabelForIndex:function(e,t){var a=this,n=a.chart.data,r=a.isHorizontal();return n.yLabels&&!r?a.getRightValue(n.datasets[t].data[e]):a.ticks[e-a.minIndex]},getPixelForValue:function(e,t){var a,n=this,r=n.options.offset,i=Math.max(n.maxIndex+1-n.minIndex-(r?0:1),1);if(void 0!==e&&null!==e&&(a=n.isHorizontal()?e.x:e.y),void 0!==a||void 0!==e&&isNaN(t)){var s=n.getLabels();e=a||e;var o=s.indexOf(e);t=-1!==o?o:t}if(n.isHorizontal()){var d=n.width/i,u=d*(t-n.minIndex);return r&&(u+=d/2),n.left+Math.round(u)}var l=n.height/i,_=l*(t-n.minIndex);return r&&(_+=l/2),n.top+Math.round(_)},getPixelForTick:function(e){return this.getPixelForValue(this.ticks[e],e+this.minIndex,null)},getValueForPixel:function(e){var t,a=this,n=a.options.offset,r=Math.max(a._ticks.length-(n?0:1),1),i=a.isHorizontal(),s=(i?a.width:a.height)/r;return e-=i?a.left:a.top,n&&(e-=s/2),t=e<=0?0:Math.round(e/s),t+a.minIndex},getBasePixel:function(){return this.bottom}});r.registerScaleType("category",t,e)}},f260:function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("pt",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",w:"uma semana",ww:"%d semanas",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}});return t}))},f3ff:function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t={1:"੧",2:"੨",3:"੩",4:"੪",5:"੫",6:"੬",7:"੭",8:"੮",9:"੯",0:"੦"},a={"੧":"1","੨":"2","੩":"3","੪":"4","੫":"5","੬":"6","੭":"7","੮":"8","੯":"9","੦":"0"},n=e.defineLocale("pa-in",{months:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),monthsShort:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),weekdays:"ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ".split("_"),weekdaysShort:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),weekdaysMin:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),longDateFormat:{LT:"A h:mm ਵਜੇ",LTS:"A h:mm:ss ਵਜੇ",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm ਵਜੇ",LLLL:"dddd, D MMMM YYYY, A h:mm ਵਜੇ"},calendar:{sameDay:"[ਅਜ] LT",nextDay:"[ਕਲ] LT",nextWeek:"[ਅਗਲਾ] dddd, LT",lastDay:"[ਕਲ] LT",lastWeek:"[ਪਿਛਲੇ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ਵਿੱਚ",past:"%s ਪਿਛਲੇ",s:"ਕੁਝ ਸਕਿੰਟ",ss:"%d ਸਕਿੰਟ",m:"ਇਕ ਮਿੰਟ",mm:"%d ਮਿੰਟ",h:"ਇੱਕ ਘੰਟਾ",hh:"%d ਘੰਟੇ",d:"ਇੱਕ ਦਿਨ",dd:"%d ਦਿਨ",M:"ਇੱਕ ਮਹੀਨਾ",MM:"%d ਮਹੀਨੇ",y:"ਇੱਕ ਸਾਲ",yy:"%d ਸਾਲ"},preparse:function(e){return e.replace(/[੧੨੩੪੫੬੭੮੯੦]/g,(function(e){return a[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,meridiemHour:function(e,t){return 12===e&&(e=0),"ਰਾਤ"===t?e<4?e:e+12:"ਸਵੇਰ"===t?e:"ਦੁਪਹਿਰ"===t?e>=10?e:e+12:"ਸ਼ਾਮ"===t?e+12:void 0},meridiem:function(e,t,a){return e<4?"ਰਾਤ":e<10?"ਸਵੇਰ":e<17?"ਦੁਪਹਿਰ":e<20?"ਸ਼ਾਮ":"ਰਾਤ"},week:{dow:0,doy:6}});return n}))},f3ffe:function(e,t,a){"use strict";var n=a("0832"),r=a("4438"),i=a("b631"),s=a("83cb");e.exports=function(e){var t=n.global,a={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,color:"rgba(0, 0, 0, 0.1)",lineWidth:1},gridLines:{circular:!1},ticks:{showLabelBackdrop:!0,backdropColor:"rgba(255,255,255,0.75)",backdropPaddingY:2,backdropPaddingX:2,callback:s.formatters.linear},pointLabels:{display:!0,fontSize:10,callback:function(e){return e}}};function o(e){var t=e.options;return t.angleLines.display||t.pointLabels.display?e.chart.data.labels.length:0}function d(e){var a=e.options.pointLabels,n=r.valueOrDefault(a.fontSize,t.defaultFontSize),i=r.valueOrDefault(a.fontStyle,t.defaultFontStyle),s=r.valueOrDefault(a.fontFamily,t.defaultFontFamily),o=r.fontString(n,i,s);return{size:n,style:i,family:s,font:o}}function u(e,t,a){return r.isArray(a)?{w:r.longestText(e,e.font,a),h:a.length*t+1.5*(a.length-1)*t}:{w:e.measureText(a).width,h:t}}function l(e,t,a,n,r){return e===n||e===r?{start:t-a/2,end:t+a/2}:e<n||e>r?{start:t-a-5,end:t}:{start:t,end:t+a+5}}function _(e){var t,a,n,i=d(e),s=Math.min(e.height/2,e.width/2),_={r:e.width,l:0,t:e.height,b:0},c={};e.ctx.font=i.font,e._pointLabelSizes=[];var m=o(e);for(t=0;t<m;t++){n=e.getPointPosition(t,s),a=u(e.ctx,i.size,e.pointLabels[t]||""),e._pointLabelSizes[t]=a;var h=e.getIndexAngle(t),f=r.toDegrees(h)%360,M=l(f,n.x,a.w,0,180),p=l(f,n.y,a.h,90,270);M.start<_.l&&(_.l=M.start,c.l=h),M.end>_.r&&(_.r=M.end,c.r=h),p.start<_.t&&(_.t=p.start,c.t=h),p.end>_.b&&(_.b=p.end,c.b=h)}e.setReductions(s,_,c)}function c(e){var t=Math.min(e.height/2,e.width/2);e.drawingArea=Math.round(t),e.setCenterPoint(0,0,0,0)}function m(e){return 0===e||180===e?"center":e<180?"left":"right"}function h(e,t,a,n){if(r.isArray(t))for(var i=a.y,s=1.5*n,o=0;o<t.length;++o)e.fillText(t[o],a.x,i),i+=s;else e.fillText(t,a.x,a.y)}function f(e,t,a){90===e||270===e?a.y-=t.h/2:(e>270||e<90)&&(a.y-=t.h)}function M(e){var a=e.ctx,n=e.options,i=n.angleLines,s=n.pointLabels;a.lineWidth=i.lineWidth,a.strokeStyle=i.color;var u=e.getDistanceFromCenterForValue(n.ticks.reverse?e.min:e.max),l=d(e);a.textBaseline="top";for(var _=o(e)-1;_>=0;_--){if(i.display){var c=e.getPointPosition(_,u);a.beginPath(),a.moveTo(e.xCenter,e.yCenter),a.lineTo(c.x,c.y),a.stroke(),a.closePath()}if(s.display){var M=e.getPointPosition(_,u+5),p=r.valueAtIndexOrDefault(s.fontColor,_,t.defaultFontColor);a.font=l.font,a.fillStyle=p;var y=e.getIndexAngle(_),g=r.toDegrees(y);a.textAlign=m(g),f(g,e._pointLabelSizes[_],M),h(a,e.pointLabels[_]||"",M,l.size)}}}function p(e,t,a,n){var i=e.ctx;if(i.strokeStyle=r.valueAtIndexOrDefault(t.color,n-1),i.lineWidth=r.valueAtIndexOrDefault(t.lineWidth,n-1),e.options.gridLines.circular)i.beginPath(),i.arc(e.xCenter,e.yCenter,a,0,2*Math.PI),i.closePath(),i.stroke();else{var s=o(e);if(0===s)return;i.beginPath();var d=e.getPointPosition(0,a);i.moveTo(d.x,d.y);for(var u=1;u<s;u++)d=e.getPointPosition(u,a),i.lineTo(d.x,d.y);i.closePath(),i.stroke()}}function y(e){return r.isNumber(e)?e:0}var g=e.LinearScaleBase.extend({setDimensions:function(){var e=this,a=e.options,n=a.ticks;e.width=e.maxWidth,e.height=e.maxHeight,e.xCenter=Math.round(e.width/2),e.yCenter=Math.round(e.height/2);var i=r.min([e.height,e.width]),s=r.valueOrDefault(n.fontSize,t.defaultFontSize);e.drawingArea=a.display?i/2-(s/2+n.backdropPaddingY):i/2},determineDataLimits:function(){var e=this,t=e.chart,a=Number.POSITIVE_INFINITY,n=Number.NEGATIVE_INFINITY;r.each(t.data.datasets,(function(i,s){if(t.isDatasetVisible(s)){var o=t.getDatasetMeta(s);r.each(i.data,(function(t,r){var i=+e.getRightValue(t);isNaN(i)||o.data[r].hidden||(a=Math.min(i,a),n=Math.max(i,n))}))}})),e.min=a===Number.POSITIVE_INFINITY?0:a,e.max=n===Number.NEGATIVE_INFINITY?0:n,e.handleTickRangeOptions()},getTickLimit:function(){var e=this.options.ticks,a=r.valueOrDefault(e.fontSize,t.defaultFontSize);return Math.min(e.maxTicksLimit?e.maxTicksLimit:11,Math.ceil(this.drawingArea/(1.5*a)))},convertTicksToLabels:function(){var t=this;e.LinearScaleBase.prototype.convertTicksToLabels.call(t),t.pointLabels=t.chart.data.labels.map(t.options.pointLabels.callback,t)},getLabelForIndex:function(e,t){return+this.getRightValue(this.chart.data.datasets[t].data[e])},fit:function(){this.options.pointLabels.display?_(this):c(this)},setReductions:function(e,t,a){var n=this,r=t.l/Math.sin(a.l),i=Math.max(t.r-n.width,0)/Math.sin(a.r),s=-t.t/Math.cos(a.t),o=-Math.max(t.b-n.height,0)/Math.cos(a.b);r=y(r),i=y(i),s=y(s),o=y(o),n.drawingArea=Math.min(Math.round(e-(r+i)/2),Math.round(e-(s+o)/2)),n.setCenterPoint(r,i,s,o)},setCenterPoint:function(e,t,a,n){var r=this,i=r.width-t-r.drawingArea,s=e+r.drawingArea,o=a+r.drawingArea,d=r.height-n-r.drawingArea;r.xCenter=Math.round((s+i)/2+r.left),r.yCenter=Math.round((o+d)/2+r.top)},getIndexAngle:function(e){var t=2*Math.PI/o(this),a=this.chart.options&&this.chart.options.startAngle?this.chart.options.startAngle:0,n=a*Math.PI*2/360;return e*t+n},getDistanceFromCenterForValue:function(e){var t=this;if(null===e)return 0;var a=t.drawingArea/(t.max-t.min);return t.options.ticks.reverse?(t.max-e)*a:(e-t.min)*a},getPointPosition:function(e,t){var a=this,n=a.getIndexAngle(e)-Math.PI/2;return{x:Math.round(Math.cos(n)*t)+a.xCenter,y:Math.round(Math.sin(n)*t)+a.yCenter}},getPointPositionForValue:function(e,t){return this.getPointPosition(e,this.getDistanceFromCenterForValue(t))},getBasePosition:function(){var e=this,t=e.min,a=e.max;return e.getPointPositionForValue(0,e.beginAtZero?0:t<0&&a<0?a:t>0&&a>0?t:0)},draw:function(){var e=this,a=e.options,n=a.gridLines,i=a.ticks,s=r.valueOrDefault;if(a.display){var o=e.ctx,d=this.getIndexAngle(0),u=s(i.fontSize,t.defaultFontSize),l=s(i.fontStyle,t.defaultFontStyle),_=s(i.fontFamily,t.defaultFontFamily),c=r.fontString(u,l,_);r.each(e.ticks,(function(a,r){if(r>0||i.reverse){var l=e.getDistanceFromCenterForValue(e.ticksAsNumbers[r]);if(n.display&&0!==r&&p(e,n,l,r),i.display){var _=s(i.fontColor,t.defaultFontColor);if(o.font=c,o.save(),o.translate(e.xCenter,e.yCenter),o.rotate(d),i.showLabelBackdrop){var m=o.measureText(a).width;o.fillStyle=i.backdropColor,o.fillRect(-m/2-i.backdropPaddingX,-l-u/2-i.backdropPaddingY,m+2*i.backdropPaddingX,u+2*i.backdropPaddingY)}o.textAlign="center",o.textBaseline="middle",o.fillStyle=_,o.fillText(a,0,-l),o.restore()}}})),(a.angleLines.display||a.pointLabels.display)&&M(e)}}});i.registerScaleType("radialLinear",g,a)}},f6b4:function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=["Am Faoilleach","An Gearran","Am Màrt","An Giblean","An Cèitean","An t-Ògmhios","An t-Iuchar","An Lùnastal","An t-Sultain","An Dàmhair","An t-Samhain","An Dùbhlachd"],a=["Faoi","Gear","Màrt","Gibl","Cèit","Ògmh","Iuch","Lùn","Sult","Dàmh","Samh","Dùbh"],n=["Didòmhnaich","Diluain","Dimàirt","Diciadain","Diardaoin","Dihaoine","Disathairne"],r=["Did","Dil","Dim","Dic","Dia","Dih","Dis"],i=["Dò","Lu","Mà","Ci","Ar","Ha","Sa"],s=e.defineLocale("gd",{months:t,monthsShort:a,monthsParseExact:!0,weekdays:n,weekdaysShort:r,weekdaysMin:i,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-màireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-dè aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"mìos",MM:"%d mìosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){var t=1===e?"d":e%10===2?"na":"mh";return e+t},week:{dow:1,doy:4}});return s}))},f6fd:function(e,t){(function(e){var t="currentScript",a=e.getElementsByTagName("script");t in e||Object.defineProperty(e,t,{get:function(){try{throw new Error}catch(n){var e,t=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(n.stack)||[!1])[1];for(e in a)if(a[e].src==t||"interactive"==a[e].readyState)return a[e];return null}}})})(document)},fa5b:function(e,t,a){e.exports=a("5537")("native-function-to-string",Function.toString)},fab2:function(e,t,a){var n=a("7726").document;e.exports=n&&n.documentElement},facd:function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),a="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),n=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],r=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,i=e.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,n){return e?/-MMM-/.test(n)?a[e.month()]:t[e.month()]:t},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",w:"één week",ww:"%d weken",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}});return i}))},fb15:function(e,t,a){"use strict";var n;(a.r(t),"undefined"!==typeof window)&&(a("f6fd"),(n=window.document.currentScript)&&(n=n.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(a.p=n[1]));var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"p-chart"},[a("canvas",{ref:"canvas",attrs:{width:e.width,height:e.height},on:{click:function(t){return e.onCanvasClick(t)}}})])},i=[],s=(a("c5f6"),a("5b20")),o={props:{type:String,data:null,options:null,width:Number,height:Number},chart:null,mounted:function(){this.initChart()},beforeDestroy:function(){this.chart&&(this.chart.destroy(),this.chart=null)},watch:{data:function(){this.reinit()},type:function(){this.reinit()},options:function(){this.reinit()}},methods:{initChart:function(){this.chart=new s(this.$refs.canvas,{type:this.type,data:this.data,options:this.options})},getCanvas:function(){return this.$canvas},getBase64Image:function(){return this.chart.toBase64Image()},refresh:function(){this.chart&&this.chart.update()},reinit:function(){this.chart&&(this.chart.destroy(),this.initChart())},onCanvasClick:function(e){if(this.chart){var t=this.chart.getElementAtEvent(e),a=this.chart.getDatasetAtEvent(e);t&&t[0]&&a&&this.$emit("select",{originalEvent:e,element:t[0],dataset:a})}},generateLegend:function(){if(this.chart)return this.chart.generateLegend()}}},d=o;a("c09b");function u(e,t,a,n,r,i,s,o){var d,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=a,u._compiled=!0),n&&(u.functional=!0),i&&(u._scopeId="data-v-"+i),s?(d=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},u._ssrRegister=d):r&&(d=o?function(){r.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:r),d)if(u.functional){u._injectStyles=d;var l=u.render;u.render=function(e,t){return d.call(t),l(e,t)}}else{var _=u.beforeCreate;u.beforeCreate=_?[].concat(_,d):[d]}return{exports:e,options:u}}var l=u(d,r,i,!1,null,null,null),_=l.exports;t["default"]=_},fd7e:function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("x-pseudo",{months:"J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér".split("_"),monthsShort:"J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc".split("_"),monthsParseExact:!0,weekdays:"S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý".split("_"),weekdaysShort:"S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát".split("_"),weekdaysMin:"S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~ódá~ý át] LT",nextDay:"[T~ómó~rró~w át] LT",nextWeek:"dddd [át] LT",lastDay:"[Ý~ést~érdá~ý át] LT",lastWeek:"[L~ást] dddd [át] LT",sameElse:"L"},relativeTime:{future:"í~ñ %s",past:"%s á~gó",s:"á ~féw ~sécó~ñds",ss:"%d s~écóñ~ds",m:"á ~míñ~úté",mm:"%d m~íñú~tés",h:"á~ñ hó~úr",hh:"%d h~óúrs",d:"á ~dáý",dd:"%d d~áýs",M:"á ~móñ~th",MM:"%d m~óñt~hs",y:"á ~ýéár",yy:"%d ý~éárs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,a=1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+a},week:{dow:1,doy:4}});return t}))},fdef:function(e,t){e.exports="\t\n\v\f\r \u2028\u2029\ufeff"},ffff:function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("se",{months:"ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu".split("_"),monthsShort:"ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov".split("_"),weekdays:"sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat".split("_"),weekdaysShort:"sotn_vuos_maŋ_gask_duor_bear_láv".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s geažes",past:"maŋit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta mánnu",MM:"%d mánut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return t}))}})["default"]}));
|
const mongoClient = require('mongodb').MongoClient;
const jwt = require('jsonwebtoken');
const SECRET = process.env.SECRET || 'secret';
const isLoggedIn = async (req, res, next) => {
try {
const { authorization } = req.headers;
if (!authorization) {
return res.status(401).send({
result: null,
message: 'Token not found'
});
}
const [, token] = authorization.split(' ');
if (!token) {
return res.status(401).send({
result: null,
message: 'Token not found'
});
}
const decodedToken = jwt.verify(token, SECRET);
const con = await getConnection();
const result = await con.collection('users').findOne({
username: decodedToken.username,
name: decodedToken.name
});
req['user'] = result;
next();
} catch (ex) {
console.log(`Ex`, ex);
return res.status(403).send({
result: null,
message: 'Forbidden error'
});
}
};
const getConnection = () => {
return new Promise((resolve, reject) => {
const url = `mongodb://127.0.0.1:27017`;
mongoClient
.connect(url, {
useNewUrlParser: true,
useUnifiedTopology: true
})
.then(async con => {
con = con.db('to-do-app');
resolve(con);
})
.catch(err => {
reject(err);
});
});
};
class User {
name;
username;
password;
constructor({ name, username, password }) {
this.name = name;
this.username = username;
this.password = password;
}
getDetails() {
return {
name: this.name,
username: this.username,
password: this.password
};
}
}
class Todo {
title;
description;
constructor({ title, description }) {
this.title = title;
this.description = description;
}
getDetails() {
return {
title: this.title,
description: this.description
};
}
}
module.exports = {
getConnection,
SECRET,
isLoggedIn,
User,
Todo
};
|
import * as React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M10 7.5l7.5 7.5-1.41 1.41L15 15.33V20h-4v-5H9v5H5v-4.67l-1.09 1.09L2.5 15 10 7.5zm12-1h-1.19l.75-.75-.71-.71-1.46 1.46h-.89v-.89l1.45-1.45-.71-.71-.74.74V3h-1v1.19l-.75-.75-.71.71 1.45 1.45v.9h-.89l-1.45-1.45-.71.71.75.75H14v1h1.19l-.75.75.71.71 1.45-1.45h.89v.89l-1.45 1.45.71.71.75-.75V11h1V9.81l.75.75.71-.71-1.46-1.46V7.5h.89l1.45 1.45.71-.71-.74-.74H22v-1z" />
, 'Chalet');
|
"use strict";
function resourceSrc(businessElementsApi) {
return {
restrict: "A",
scope: {
resourceSrc: "@",
onErrorCallback: "&"
},
link: ($scope, $element, attrs) => {
$scope.$watch("resourceSrc", function() {
const qualifier = attrs.resourceQualifier;
const isPublic = attrs.resourcePublic || false;
const uri = isPublic ? businessElementsApi.getPublicDownloadUri(attrs.resourceSrc, qualifier) : businessElementsApi.getDownloadUri(attrs.resourceSrc, qualifier);
$element.attr("src", uri);
$element.on("error", function() {
if ($scope.onErrorCallback) {
$scope.onErrorCallback();
}
});
});
}
};
}
resourceSrc.$inject = ["businessElementsApi"];
export default resourceSrc;
|
/**
* @license Angular v6.1.6
* (c) 2010-2018 Google, Inc. https://angular.io/
* License: MIT
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/animations'), require('@angular/core'), require('@angular/platform-browser'), require('@angular/animations/browser'), require('@angular/common')) :
typeof define === 'function' && define.amd ? define('@angular/platform-browser/animations', ['exports', '@angular/animations', '@angular/core', '@angular/platform-browser', '@angular/animations/browser', '@angular/common'], factory) :
(factory((global.ng = global.ng || {}, global.ng.platformBrowser = global.ng.platformBrowser || {}, global.ng.platformBrowser.animations = {}),global.ng.animations,global.ng.core,global.ng.platformBrowser,global.ng.animations.browser,global.ng.common));
}(this, (function (exports,animations,core,platformBrowser,browser,common) { 'use strict';
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/* global Reflect, Promise */
var extendStatics = function(d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return extendStatics(d, b);
};
function __extends(d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
}
function __read(o, n) {
var m = typeof Symbol === "function" && o[Symbol.iterator];
if (!m) return o;
var i = m.call(o), r, ar = [], e;
try {
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
}
catch (error) { e = { error: error }; }
finally {
try {
if (r && !r.done && (m = i["return"])) m.call(i);
}
finally { if (e) throw e.error; }
}
return ar;
}
function __spread() {
for (var ar = [], i = 0; i < arguments.length; i++)
ar = ar.concat(__read(arguments[i]));
return ar;
}
var BrowserAnimationBuilder = /** @class */ (function (_super) {
__extends(BrowserAnimationBuilder, _super);
function BrowserAnimationBuilder(rootRenderer, doc) {
var _this = _super.call(this) || this;
_this._nextAnimationId = 0;
var typeData = {
id: '0',
encapsulation: core.ViewEncapsulation.None,
styles: [],
data: { animation: [] }
};
_this._renderer = rootRenderer.createRenderer(doc.body, typeData);
return _this;
}
BrowserAnimationBuilder.prototype.build = function (animation) {
var id = this._nextAnimationId.toString();
this._nextAnimationId++;
var entry = Array.isArray(animation) ? animations.sequence(animation) : animation;
issueAnimationCommand(this._renderer, null, id, 'register', [entry]);
return new BrowserAnimationFactory(id, this._renderer);
};
BrowserAnimationBuilder.decorators = [
{ type: core.Injectable }
];
/** @nocollapse */
BrowserAnimationBuilder.ctorParameters = function () { return [
{ type: core.RendererFactory2 },
{ type: undefined, decorators: [{ type: core.Inject, args: [platformBrowser.DOCUMENT,] }] }
]; };
return BrowserAnimationBuilder;
}(animations.AnimationBuilder));
var BrowserAnimationFactory = /** @class */ (function (_super) {
__extends(BrowserAnimationFactory, _super);
function BrowserAnimationFactory(_id, _renderer) {
var _this = _super.call(this) || this;
_this._id = _id;
_this._renderer = _renderer;
return _this;
}
BrowserAnimationFactory.prototype.create = function (element, options) {
return new RendererAnimationPlayer(this._id, element, options || {}, this._renderer);
};
return BrowserAnimationFactory;
}(animations.AnimationFactory));
var RendererAnimationPlayer = /** @class */ (function () {
function RendererAnimationPlayer(id, element, options, _renderer) {
this.id = id;
this.element = element;
this._renderer = _renderer;
this.parentPlayer = null;
this._started = false;
this.totalTime = 0;
this._command('create', options);
}
RendererAnimationPlayer.prototype._listen = function (eventName, callback) {
return this._renderer.listen(this.element, "@@" + this.id + ":" + eventName, callback);
};
RendererAnimationPlayer.prototype._command = function (command) {
var args = [];
for (var _i = 1; _i < arguments.length; _i++) {
args[_i - 1] = arguments[_i];
}
return issueAnimationCommand(this._renderer, this.element, this.id, command, args);
};
RendererAnimationPlayer.prototype.onDone = function (fn) { this._listen('done', fn); };
RendererAnimationPlayer.prototype.onStart = function (fn) { this._listen('start', fn); };
RendererAnimationPlayer.prototype.onDestroy = function (fn) { this._listen('destroy', fn); };
RendererAnimationPlayer.prototype.init = function () { this._command('init'); };
RendererAnimationPlayer.prototype.hasStarted = function () { return this._started; };
RendererAnimationPlayer.prototype.play = function () {
this._command('play');
this._started = true;
};
RendererAnimationPlayer.prototype.pause = function () { this._command('pause'); };
RendererAnimationPlayer.prototype.restart = function () { this._command('restart'); };
RendererAnimationPlayer.prototype.finish = function () { this._command('finish'); };
RendererAnimationPlayer.prototype.destroy = function () { this._command('destroy'); };
RendererAnimationPlayer.prototype.reset = function () { this._command('reset'); };
RendererAnimationPlayer.prototype.setPosition = function (p) { this._command('setPosition', p); };
RendererAnimationPlayer.prototype.getPosition = function () { return 0; };
return RendererAnimationPlayer;
}());
function issueAnimationCommand(renderer, element, id, command, args) {
return renderer.setProperty(element, "@@" + id + ":" + command, args);
}
var ANIMATION_PREFIX = '@';
var DISABLE_ANIMATIONS_FLAG = '@.disabled';
var AnimationRendererFactory = /** @class */ (function () {
function AnimationRendererFactory(delegate, engine, _zone) {
this.delegate = delegate;
this.engine = engine;
this._zone = _zone;
this._currentId = 0;
this._microtaskId = 1;
this._animationCallbacksBuffer = [];
this._rendererCache = new Map();
this._cdRecurDepth = 0;
this.promise = Promise.resolve(0);
engine.onRemovalComplete = function (element, delegate) {
// Note: if an component element has a leave animation, and the component
// a host leave animation, the view engine will call `removeChild` for the parent
// component renderer as well as for the child component renderer.
// Therefore, we need to check if we already removed the element.
if (delegate && delegate.parentNode(element)) {
delegate.removeChild(element.parentNode, element);
}
};
}
AnimationRendererFactory.prototype.createRenderer = function (hostElement, type) {
var _this = this;
var EMPTY_NAMESPACE_ID = '';
// cache the delegates to find out which cached delegate can
// be used by which cached renderer
var delegate = this.delegate.createRenderer(hostElement, type);
if (!hostElement || !type || !type.data || !type.data['animation']) {
var renderer = this._rendererCache.get(delegate);
if (!renderer) {
renderer = new BaseAnimationRenderer(EMPTY_NAMESPACE_ID, delegate, this.engine);
// only cache this result when the base renderer is used
this._rendererCache.set(delegate, renderer);
}
return renderer;
}
var componentId = type.id;
var namespaceId = type.id + '-' + this._currentId;
this._currentId++;
this.engine.register(namespaceId, hostElement);
var animationTriggers = type.data['animation'];
animationTriggers.forEach(function (trigger) { return _this.engine.registerTrigger(componentId, namespaceId, hostElement, trigger.name, trigger); });
return new AnimationRenderer(this, namespaceId, delegate, this.engine);
};
AnimationRendererFactory.prototype.begin = function () {
this._cdRecurDepth++;
if (this.delegate.begin) {
this.delegate.begin();
}
};
AnimationRendererFactory.prototype._scheduleCountTask = function () {
var _this = this;
// always use promise to schedule microtask instead of use Zone
this.promise.then(function () { _this._microtaskId++; });
};
/** @internal */
AnimationRendererFactory.prototype.scheduleListenerCallback = function (count, fn, data) {
var _this = this;
if (count >= 0 && count < this._microtaskId) {
this._zone.run(function () { return fn(data); });
return;
}
if (this._animationCallbacksBuffer.length == 0) {
Promise.resolve(null).then(function () {
_this._zone.run(function () {
_this._animationCallbacksBuffer.forEach(function (tuple) {
var _a = __read(tuple, 2), fn = _a[0], data = _a[1];
fn(data);
});
_this._animationCallbacksBuffer = [];
});
});
}
this._animationCallbacksBuffer.push([fn, data]);
};
AnimationRendererFactory.prototype.end = function () {
var _this = this;
this._cdRecurDepth--;
// this is to prevent animations from running twice when an inner
// component does CD when a parent component insted has inserted it
if (this._cdRecurDepth == 0) {
this._zone.runOutsideAngular(function () {
_this._scheduleCountTask();
_this.engine.flush(_this._microtaskId);
});
}
if (this.delegate.end) {
this.delegate.end();
}
};
AnimationRendererFactory.prototype.whenRenderingDone = function () { return this.engine.whenRenderingDone(); };
AnimationRendererFactory.decorators = [
{ type: core.Injectable }
];
/** @nocollapse */
AnimationRendererFactory.ctorParameters = function () { return [
{ type: core.RendererFactory2 },
{ type: browser.ɵAnimationEngine },
{ type: core.NgZone }
]; };
return AnimationRendererFactory;
}());
var BaseAnimationRenderer = /** @class */ (function () {
function BaseAnimationRenderer(namespaceId, delegate, engine) {
this.namespaceId = namespaceId;
this.delegate = delegate;
this.engine = engine;
this.destroyNode = this.delegate.destroyNode ? function (n) { return delegate.destroyNode(n); } : null;
}
Object.defineProperty(BaseAnimationRenderer.prototype, "data", {
get: function () { return this.delegate.data; },
enumerable: true,
configurable: true
});
BaseAnimationRenderer.prototype.destroy = function () {
this.engine.destroy(this.namespaceId, this.delegate);
this.delegate.destroy();
};
BaseAnimationRenderer.prototype.createElement = function (name, namespace) {
return this.delegate.createElement(name, namespace);
};
BaseAnimationRenderer.prototype.createComment = function (value) { return this.delegate.createComment(value); };
BaseAnimationRenderer.prototype.createText = function (value) { return this.delegate.createText(value); };
BaseAnimationRenderer.prototype.appendChild = function (parent, newChild) {
this.delegate.appendChild(parent, newChild);
this.engine.onInsert(this.namespaceId, newChild, parent, false);
};
BaseAnimationRenderer.prototype.insertBefore = function (parent, newChild, refChild) {
this.delegate.insertBefore(parent, newChild, refChild);
this.engine.onInsert(this.namespaceId, newChild, parent, true);
};
BaseAnimationRenderer.prototype.removeChild = function (parent, oldChild) {
this.engine.onRemove(this.namespaceId, oldChild, this.delegate);
};
BaseAnimationRenderer.prototype.selectRootElement = function (selectorOrNode) { return this.delegate.selectRootElement(selectorOrNode); };
BaseAnimationRenderer.prototype.parentNode = function (node) { return this.delegate.parentNode(node); };
BaseAnimationRenderer.prototype.nextSibling = function (node) { return this.delegate.nextSibling(node); };
BaseAnimationRenderer.prototype.setAttribute = function (el, name, value, namespace) {
this.delegate.setAttribute(el, name, value, namespace);
};
BaseAnimationRenderer.prototype.removeAttribute = function (el, name, namespace) {
this.delegate.removeAttribute(el, name, namespace);
};
BaseAnimationRenderer.prototype.addClass = function (el, name) { this.delegate.addClass(el, name); };
BaseAnimationRenderer.prototype.removeClass = function (el, name) { this.delegate.removeClass(el, name); };
BaseAnimationRenderer.prototype.setStyle = function (el, style, value, flags) {
this.delegate.setStyle(el, style, value, flags);
};
BaseAnimationRenderer.prototype.removeStyle = function (el, style, flags) {
this.delegate.removeStyle(el, style, flags);
};
BaseAnimationRenderer.prototype.setProperty = function (el, name, value) {
if (name.charAt(0) == ANIMATION_PREFIX && name == DISABLE_ANIMATIONS_FLAG) {
this.disableAnimations(el, !!value);
}
else {
this.delegate.setProperty(el, name, value);
}
};
BaseAnimationRenderer.prototype.setValue = function (node, value) { this.delegate.setValue(node, value); };
BaseAnimationRenderer.prototype.listen = function (target, eventName, callback) {
return this.delegate.listen(target, eventName, callback);
};
BaseAnimationRenderer.prototype.disableAnimations = function (element, value) {
this.engine.disableAnimations(element, value);
};
return BaseAnimationRenderer;
}());
var AnimationRenderer = /** @class */ (function (_super) {
__extends(AnimationRenderer, _super);
function AnimationRenderer(factory, namespaceId, delegate, engine) {
var _this = _super.call(this, namespaceId, delegate, engine) || this;
_this.factory = factory;
_this.namespaceId = namespaceId;
return _this;
}
AnimationRenderer.prototype.setProperty = function (el, name, value) {
if (name.charAt(0) == ANIMATION_PREFIX) {
if (name.charAt(1) == '.' && name == DISABLE_ANIMATIONS_FLAG) {
value = value === undefined ? true : !!value;
this.disableAnimations(el, value);
}
else {
this.engine.process(this.namespaceId, el, name.substr(1), value);
}
}
else {
this.delegate.setProperty(el, name, value);
}
};
AnimationRenderer.prototype.listen = function (target, eventName, callback) {
var _this = this;
var _a;
if (eventName.charAt(0) == ANIMATION_PREFIX) {
var element = resolveElementFromTarget(target);
var name_1 = eventName.substr(1);
var phase = '';
// @listener.phase is for trigger animation callbacks
// @@listener is for animation builder callbacks
if (name_1.charAt(0) != ANIMATION_PREFIX) {
_a = __read(parseTriggerCallbackName(name_1), 2), name_1 = _a[0], phase = _a[1];
}
return this.engine.listen(this.namespaceId, element, name_1, phase, function (event) {
var countId = event['_data'] || -1;
_this.factory.scheduleListenerCallback(countId, callback, event);
});
}
return this.delegate.listen(target, eventName, callback);
};
return AnimationRenderer;
}(BaseAnimationRenderer));
function resolveElementFromTarget(target) {
switch (target) {
case 'body':
return document.body;
case 'document':
return document;
case 'window':
return window;
default:
return target;
}
}
function parseTriggerCallbackName(triggerName) {
var dotIndex = triggerName.indexOf('.');
var trigger = triggerName.substring(0, dotIndex);
var phase = triggerName.substr(dotIndex + 1);
return [trigger, phase];
}
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var InjectableAnimationEngine = /** @class */ (function (_super) {
__extends(InjectableAnimationEngine, _super);
function InjectableAnimationEngine(doc, driver, normalizer) {
return _super.call(this, doc.body, driver, normalizer) || this;
}
InjectableAnimationEngine.decorators = [
{ type: core.Injectable }
];
/** @nocollapse */
InjectableAnimationEngine.ctorParameters = function () { return [
{ type: undefined, decorators: [{ type: core.Inject, args: [common.DOCUMENT,] }] },
{ type: browser.AnimationDriver },
{ type: browser.ɵAnimationStyleNormalizer }
]; };
return InjectableAnimationEngine;
}(browser.ɵAnimationEngine));
function instantiateSupportedAnimationDriver() {
return browser.ɵsupportsWebAnimations() ? new browser.ɵWebAnimationsDriver() : new browser.ɵCssKeyframesDriver();
}
function instantiateDefaultStyleNormalizer() {
return new browser.ɵWebAnimationsStyleNormalizer();
}
function instantiateRendererFactory(renderer, engine, zone) {
return new AnimationRendererFactory(renderer, engine, zone);
}
/**
* @experimental Animation support is experimental.
*/
var ANIMATION_MODULE_TYPE = new core.InjectionToken('AnimationModuleType');
var SHARED_ANIMATION_PROVIDERS = [
{ provide: animations.AnimationBuilder, useClass: BrowserAnimationBuilder },
{ provide: browser.ɵAnimationStyleNormalizer, useFactory: instantiateDefaultStyleNormalizer },
{ provide: browser.ɵAnimationEngine, useClass: InjectableAnimationEngine }, {
provide: core.RendererFactory2,
useFactory: instantiateRendererFactory,
deps: [platformBrowser.ɵDomRendererFactory2, browser.ɵAnimationEngine, core.NgZone]
}
];
/**
* Separate providers from the actual module so that we can do a local modification in Google3 to
* include them in the BrowserModule.
*/
var BROWSER_ANIMATIONS_PROVIDERS = __spread([
{ provide: browser.AnimationDriver, useFactory: instantiateSupportedAnimationDriver },
{ provide: ANIMATION_MODULE_TYPE, useValue: 'BrowserAnimations' }
], SHARED_ANIMATION_PROVIDERS);
/**
* Separate providers from the actual module so that we can do a local modification in Google3 to
* include them in the BrowserTestingModule.
*/
var BROWSER_NOOP_ANIMATIONS_PROVIDERS = __spread([
{ provide: browser.AnimationDriver, useClass: browser.ɵNoopAnimationDriver },
{ provide: ANIMATION_MODULE_TYPE, useValue: 'NoopAnimations' }
], SHARED_ANIMATION_PROVIDERS);
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/**
* @experimental Animation support is experimental.
*/
var BrowserAnimationsModule = /** @class */ (function () {
function BrowserAnimationsModule() {
}
BrowserAnimationsModule.decorators = [
{ type: core.NgModule, args: [{
exports: [platformBrowser.BrowserModule],
providers: BROWSER_ANIMATIONS_PROVIDERS,
},] }
];
return BrowserAnimationsModule;
}());
/**
* @experimental Animation support is experimental.
*/
var NoopAnimationsModule = /** @class */ (function () {
function NoopAnimationsModule() {
}
NoopAnimationsModule.decorators = [
{ type: core.NgModule, args: [{
exports: [platformBrowser.BrowserModule],
providers: BROWSER_NOOP_ANIMATIONS_PROVIDERS,
},] }
];
return NoopAnimationsModule;
}());
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/**
* Generated bundle index. Do not edit.
*/
exports.ɵangular_packages_platform_browser_animations_animations_g = BaseAnimationRenderer;
exports.ɵangular_packages_platform_browser_animations_animations_e = BROWSER_ANIMATIONS_PROVIDERS;
exports.ɵangular_packages_platform_browser_animations_animations_f = BROWSER_NOOP_ANIMATIONS_PROVIDERS;
exports.ɵangular_packages_platform_browser_animations_animations_a = InjectableAnimationEngine;
exports.ɵangular_packages_platform_browser_animations_animations_c = instantiateDefaultStyleNormalizer;
exports.ɵangular_packages_platform_browser_animations_animations_d = instantiateRendererFactory;
exports.ɵangular_packages_platform_browser_animations_animations_b = instantiateSupportedAnimationDriver;
exports.BrowserAnimationsModule = BrowserAnimationsModule;
exports.NoopAnimationsModule = NoopAnimationsModule;
exports.ANIMATION_MODULE_TYPE = ANIMATION_MODULE_TYPE;
exports.ɵBrowserAnimationBuilder = BrowserAnimationBuilder;
exports.ɵBrowserAnimationFactory = BrowserAnimationFactory;
exports.ɵAnimationRenderer = AnimationRenderer;
exports.ɵAnimationRendererFactory = AnimationRendererFactory;
Object.defineProperty(exports, '__esModule', { value: true });
})));
//# sourceMappingURL=platform-browser-animations.umd.js.map
|
let http = require('http');
let url = require('url');
let util = require('util');
let fs = require('fs');
let path = require("path")
const {spawn} = require('child_process');
const process = require("process");
const pour = (cmd, args, opts = {
encoding: 'utf8'
}, stdout = process.stdout, stderr = process.stderr) => {
return new Promise((resolve, reject) => {
const p = spawn(cmd, args, opts);
p.stdout.setEncoding('utf-8');
p.stdout.on('data', data => {
stdout.write(data, "utf8");
});
p.stderr.on('data', data => {
stderr.write(data);
});
p.on('close', code => {
resolve(code);
});
});
}
async function exec(shell, args, opt) {
console.log(`${shell} ${
args.join(" ")
}`)
await pour(shell, args, opt);
}
let server = http.createServer((req, res) => {
var pathname = url.parse(req.url).pathname; // 获取url的pathname (/index.html)
// console.log("file:" + pathname.substring(1)) // 将‘/’去掉
// console.log(__dirname, __filename)
let curPath = path.join(__dirname, pathname)
// console.log(curPath)
fs.readFile(curPath, function (err, data) { // fs模块加载文件
if (err) {
res.writeHead(404, {'Content-Type': 'text/html'});
} else {
res.writeHead(200, {'Content-Type': 'text/html'});
res.write(data.toString());
}
res.end();
});
});
server.listen(3000, '127.0.0.1', async () => {
console.log("服务器已经运行,请打开浏览,输入:http://127.0.0.1:3000/ 来进行访问.")
await exec(process.platform === 'win32' ? 'npm.cmd' : "npm", ["run", "test"])
process.exit(0);
});
|
"use strict";
const net = require('net');
const url = require('url');
const consts = require('./consts.js')
const EventEmitter = require('events').EventEmitter;
// Client can read/write messages from a TCP server
class Client {
// init initializes the Client
init(addr) {
let u = url.parse("tcp://" + addr, false, false);
this.socket = new net.Socket()
this.hsok = false
//try handshake counts limit
this.hsCounts = 10
this.socket.connect(u.port, u.hostname, () => {
this.handshake()
});
this.socket.on('close', function() {
process.exit()
})
return this
}
handshake(d) {
if( this.hsok || consts.handshake.nihaoAck == d){
this.hsok = true
// send appEventReady
this.emit(consts.eventNames.appEventReady, consts.targetIds.app)
return
}
if (this.hsCounts-- > 0) {
this.socket.write(consts.handshake.nihao)
}
}
// write writes an event to the server
write(targetID, eventName, payload) {
let data = {name: eventName, targetID: targetID}
if (typeof payload !== "undefined") Object.assign(data, payload)
try {
this.socket.write(JSON.stringify(data) + "\n")
} catch(e) {
}
}
}
// inherits the event emitter
require('util').inherits(Client, EventEmitter);
module.exports = new Client()
|
import styled from 'styled-components'
export const Wrapper = styled.div`
padding: 0.75rem 0;
align-items: center;
display: flex;
justify-content: space-between;
a {
color: #212121;
}
`
export const Brand = styled.div`
display: flex;
align-items: center;
`
export const Icon = styled.div`
margin: 0;
margin-right: 0.5rem;
`
|
/* globals jQuery */
/**
* Numerous tools for working with the editor's "canvas".
* @module svgcanvas
*
* @license MIT
*
* @copyright 2010 Alexis Deveria, 2010 Pavol Rusnak, 2010 Jeff Schiller
*
*/
/* Dependencies:
1. Also expects jQuery UI for `svgCanvasToString` and
`convertToGroup` use of `:data()` selector
*/
import {Canvg as canvg} from 'canvg';
import 'pathseg';
import jQueryPluginSVG from '../common/jQuery.attr.js'; // Needed for SVG attribute setting and array form with `attr`
import jQueryPluginDBox from './dbox.js';
import * as pathModule from './path.js';
import * as hstry from './history.js';
import * as draw from './draw.js';
import {
init as pasteInit, pasteElementsMethod
} from './paste-elem.js';
// eslint-disable-next-line no-duplicate-imports
import {
identifyLayers, createLayer, cloneLayer, deleteCurrentLayer,
setCurrentLayer, renameCurrentLayer, setCurrentLayerPosition,
setLayerVisibility, moveSelectedToLayer, mergeLayer, mergeAllLayers,
leaveContext, setContext
} from './draw.js';
import {svgRootElement} from './svgroot.js';
import {
init as undoInit, getUndoManager, changeSelectedAttributeNoUndoMethod,
changeSelectedAttributeMethod, ffClone
} from './undo.js';
import {
init as selectionInit, clearSelectionMethod, addToSelectionMethod, getMouseTargetMethod,
getIntersectionListMethod, runExtensionsMethod, groupSvgElem, prepareSvg,
recalculateAllSelectedDimensions, setRotationAngle
} from './selection.js';
import {
init as textActionsInit, textActionsMethod
} from './text-actions.js';
import {
init as eventInit, mouseMoveEvent, mouseUpEvent,
dblClickEvent, mouseDownEvent, DOMMouseScrollEvent
} from './event.js';
import {init as jsonInit, getJsonFromSvgElements, addSVGElementsFromJson} from './json.js';
import {
init as elemInit, getResolutionMethod, getTitleMethod, setGroupTitleMethod,
setDocumentTitleMethod, setResolutionMethod, getEditorNSMethod, setBBoxZoomMethod,
setZoomMethod, setColorMethod, setGradientMethod, findDuplicateGradient, setPaintMethod,
setStrokeWidthMethod, setStrokeAttrMethod, getBoldMethod, setBoldMethod, getItalicMethod,
setItalicMethod, hasTextDecorationMethod, addTextDecorationMethod, removeTextDecorationMethod, setLetterSpacingMethod,
getLetterSpacingMethod, setWordSpacingMethod, getWordSpacingMethod, setTextLengthMethod, getTextLengthMethod,
setLengthAdjustMethod, getLengthAdjustMethod, setTextAnchorMethod,
getFontFamilyMethod, setFontFamilyMethod, setFontColorMethod, getFontColorMethod,
getFontSizeMethod, setFontSizeMethod, getTextMethod, setTextContentMethod,
setImageURLMethod, setLinkURLMethod, setRectRadiusMethod, makeHyperlinkMethod,
removeHyperlinkMethod, setSegTypeMethod, setBackgroundMethod
} from './elem-get-set.js';
import {
init as selectedElemInit, moveToTopSelectedElem, moveToBottomSelectedElem,
moveUpDownSelected, moveSelectedElements, cloneSelectedElements, alignSelectedElements,
deleteSelectedElements, copySelectedElements, groupSelectedElements, pushGroupProperty,
ungroupSelectedElement, cycleElement, updateCanvas
} from './selected-elem.js';
import {
init as blurInit, setBlurNoUndo, setBlurOffsets, setBlur
} from './blur-event.js';
import {sanitizeSvg} from './sanitize.js';
import {getReverseNS, NS} from '../common/namespaces.js';
import {
text2xml, assignAttributes, cleanupElement, getElem, getUrlFromAttr,
findDefs, getHref, setHref, getRefElem, getRotationAngle, getPathBBox,
preventClickDefault, walkTree, getBBoxOfElementAsPath, convertToPath, encode64, decode64,
getVisibleElements, dropXMLInternalSubset, init as utilsInit,
getBBox as utilsGetBBox, getStrokedBBoxDefaultVisible, isNullish
} from '../common/utilities.js';
import {
transformPoint, matrixMultiply, hasMatrixTransform, transformListToTransform,
isIdentity, transformBox
} from '../common/math.js';
import {
convertToNum, getTypeMap, init as unitsInit
} from '../common/units.js';
import {
svgCanvasToString, svgToString, setSvgString, save, exportPDF, setUseDataMethod,
init as svgInit, importSvgString, embedImage, rasterExport,
uniquifyElemsMethod, removeUnusedDefElemsMethod, convertGradientsMethod
} from './svg-exec.js';
import {
isChrome, isIE, isWebkit
} from '../common/browser.js'; // , supportsEditableText
import {
getTransformList, SVGTransformList as SVGEditTransformList
} from '../common/svgtransformlist.js';
import {
remapElement,
init as coordsInit
} from './coords.js';
import {
recalculateDimensions,
init as recalculateInit
} from './recalculate.js';
import {
getSelectorManager,
Selector,
init as selectInit
} from './select.js';
import {
clearSvgContentElementInit,
init as clearInit
} from './clear.js';
let $ = jQueryPluginSVG(jQuery);
const {
MoveElementCommand, InsertElementCommand, RemoveElementCommand,
ChangeElementCommand, BatchCommand
} = hstry;
const visElems = 'a,circle,ellipse,foreignObject,g,image,line,path,polygon,polyline,rect,svg,text,tspan,use';
const refAttrs = ['clip-path', 'fill', 'filter', 'marker-end', 'marker-mid', 'marker-start', 'mask', 'stroke'];
if (!window.console) {
window.console = {};
window.console.log = function (str) { /* empty fn */ };
window.console.dir = function (str) { /* empty fn */ };
}
if (window.opera) {
window.console.log = function (str) { window.opera.postError(str); };
window.console.dir = function (str) { /* empty fn */ };
}
// Reenable after fixing eslint-plugin-jsdoc to handle
/**
* The main SvgCanvas class that manages all SVG-related functions.
* @memberof module:svgcanvas
*
* @borrows module:coords.remapElement as #remapElement
* @borrows module:recalculate.recalculateDimensions as #recalculateDimensions
*
* @borrows module:utilities.cleanupElement as #cleanupElement
* @borrows module:utilities.getStrokedBBoxDefaultVisible as #getStrokedBBox
* @borrows module:utilities.getVisibleElements as #getVisibleElements
* @borrows module:utilities.findDefs as #findDefs
* @borrows module:utilities.getUrlFromAttr as #getUrlFromAttr
* @borrows module:utilities.getHref as #getHref
* @borrows module:utilities.setHref as #setHref
* @borrows module:utilities.getRotationAngle as #getRotationAngle
* @borrows module:utilities.getBBox as #getBBox
* @borrows module:utilities.getElem as #getElem
* @borrows module:utilities.getRefElem as #getRefElem
* @borrows module:utilities.assignAttributes as #assignAttributes
*
* @borrows module:SVGTransformList.getTransformList as #getTransformList
* @borrows module:math.matrixMultiply as #matrixMultiply
* @borrows module:math.hasMatrixTransform as #hasMatrixTransform
* @borrows module:math.transformListToTransform as #transformListToTransform
* @borrows module:units.convertToNum as #convertToNum
* @borrows module:sanitize.sanitizeSvg as #sanitizeSvg
* @borrows module:path.pathActions.linkControlPoints as #linkControlPoints
*/
class SvgCanvas {
/**
* @param {HTMLElement} container - The container HTML element that should hold the SVG root element
* @param {module:SVGEditor.curConfig} config - An object that contains configuration data
*/
constructor (container, config) {
// Alias Namespace constants
// Default configuration options
const curConfig = {
show_outside_canvas: true,
selectNew: true,
dimensions: [640, 480]
};
// Update config with new one if given
if (config) {
$.extend(curConfig, config);
}
// Array with width/height of canvas
const {dimensions} = curConfig;
const canvas = this;
// "document" element associated with the container (same as window.document using default svg-editor.js)
// NOTE: This is not actually a SVG document, but an HTML document.
// JFH const svgdoc = container.ownerDocument;
const svgdoc = window.document;
// This is a container for the document being edited, not the document itself.
/**
* @name module:svgcanvas~svgroot
* @type {SVGSVGElement}
*/
const svgroot = svgRootElement(svgdoc, dimensions);
const getSVGRoot = () => svgroot;
container.append(svgroot);
/**
* The actual element that represents the final output SVG element.
* @name module:svgcanvas~svgcontent
* @type {SVGSVGElement}
*/
let svgcontent = svgdoc.createElementNS(NS.SVG, 'svg');
/**
* This should really be an intersection implementing all rather than a union.
* @type {module:draw.DrawCanvasInit#getSVGContent|module:utilities.EditorContext#getSVGContent}
*/
const getSVGContent = () => { return svgcontent; };
clearInit(
/**
* @implements {module:utilities.EditorContext}
*/
{
getSVGContent,
getDOMDocument () { return svgdoc; },
getDOMContainer () { return container; },
getSVGRoot,
getCurConfig () { return curConfig; }
}
);
/**
* This function resets the svgcontent element while keeping it in the DOM.
* @function module:svgcanvas.SvgCanvas#clearSvgContentElement
* @returns {void}
*/
const clearSvgContentElement = canvas.clearSvgContentElement = clearSvgContentElementInit;
clearSvgContentElement();
// Prefix string for element IDs
let idprefix = 'svg_';
/**
* Changes the ID prefix to the given value.
* @function module:svgcanvas.SvgCanvas#setIdPrefix
* @param {string} p - String with the new prefix
* @returns {void}
*/
canvas.setIdPrefix = function (p) {
idprefix = p;
};
/**
* Current `draw.Drawing` object.
* @type {module:draw.Drawing}
* @name module:svgcanvas.SvgCanvas#current_drawing_
*/
canvas.current_drawing_ = new draw.Drawing(svgcontent, idprefix);
/**
* Returns the current Drawing.
* @name module:svgcanvas.SvgCanvas#getCurrentDrawing
* @type {module:draw.DrawCanvasInit#getCurrentDrawing}
*/
const getCurrentDrawing = canvas.getCurrentDrawing = function () {
return canvas.current_drawing_;
};
/**
* Float displaying the current zoom level (1 = 100%, .5 = 50%, etc.).
* @type {Float}
*/
let currentZoom = 1;
// pointer to current group (for in-group editing)
let currentGroup = null;
// Object containing data for the currently selected styles
const allProperties = {
shape: {
fill: (curConfig.initFill.color === 'none' ? '' : '#') + curConfig.initFill.color,
fill_paint: null,
fill_opacity: curConfig.initFill.opacity,
stroke: '#' + curConfig.initStroke.color,
stroke_paint: null,
stroke_opacity: curConfig.initStroke.opacity,
stroke_width: curConfig.initStroke.width,
stroke_dasharray: 'none',
stroke_linejoin: 'miter',
stroke_linecap: 'butt',
opacity: curConfig.initOpacity
}
};
allProperties.text = $.extend(true, {}, allProperties.shape);
$.extend(allProperties.text, {
fill: '#000000',
stroke_width: curConfig.text && curConfig.text.stroke_width,
font_size: curConfig.text && curConfig.text.font_size,
font_family: curConfig.text && curConfig.text.font_family
});
// Current shape style properties
const curShape = allProperties.shape;
// Array with all the currently selected elements
// default size of 1 until it needs to grow bigger
let selectedElements = [];
jsonInit(
/**
* @implements {module:json.jsonContext}
*/
{
getDOMDocument () { return svgdoc; },
getDrawing () { return getCurrentDrawing(); },
getCurShape () { return curShape; },
getCurrentGroup () { return currentGroup; }
}
);
/**
* @typedef {PlainObject} module:svgcanvas.SVGAsJSON
* @property {string} element
* @property {PlainObject<string, string>} attr
* @property {module:svgcanvas.SVGAsJSON[]} children
*/
/**
* @function module:svgcanvas.SvgCanvas#getContentElem
* @param {Text|Element} data
* @returns {module:svgcanvas.SVGAsJSON}
*/
const getJsonFromSvgElement = this.getJsonFromSvgElement = getJsonFromSvgElements;
/**
* This should really be an intersection implementing all rather than a union.
* @name module:svgcanvas.SvgCanvas#addSVGElementFromJson
* @type {module:utilities.EditorContext#addSVGElementFromJson|module:path.EditorContext#addSVGElementFromJson}
*/
const addSVGElementFromJson = this.addSVGElementFromJson = addSVGElementsFromJson;
canvas.getTransformList = getTransformList;
canvas.matrixMultiply = matrixMultiply;
canvas.hasMatrixTransform = hasMatrixTransform;
canvas.transformListToTransform = transformListToTransform;
/**
* @type {module:utilities.EditorContext#getBaseUnit}
*/
const getBaseUnit = () => { return curConfig.baseUnit; };
/**
* Initialize from units.js.
* Send in an object implementing the ElementContainer interface (see units.js).
*/
unitsInit(
/**
* @implements {module:units.ElementContainer}
*/
{
getBaseUnit,
getElement: getElem,
getHeight () { return svgcontent.getAttribute('height') / currentZoom; },
getWidth () { return svgcontent.getAttribute('width') / currentZoom; },
getRoundDigits () { return saveOptions.round_digits; }
}
);
canvas.convertToNum = convertToNum;
/**
* Should really be an intersection with all needing to apply rather than a union.
* @name module:svgcanvas.SvgCanvas#getSelectedElements
* @type {module:utilities.EditorContext#getSelectedElements|module:draw.DrawCanvasInit#getSelectedElements|module:path.EditorContext#getSelectedElements}
*/
const getSelectedElements = this.getSelectedElems = function () {
return selectedElements;
};
this.setSelectedElements = function (key, value) {
selectedElements[key] = value;
};
this.setEmptySelectedElements = function () {
selectedElements = [];
};
const {pathActions} = pathModule;
/**
* This should actually be an intersection as all interfaces should be met.
* @type {module:utilities.EditorContext#getSVGRoot|module:recalculate.EditorContext#getSVGRoot|module:coords.EditorContext#getSVGRoot|module:path.EditorContext#getSVGRoot}
*/
utilsInit(
/**
* @implements {module:utilities.EditorContext}
*/
{
pathActions, // Ok since not modifying
getSVGContent,
addSVGElementFromJson,
getSelectedElements,
getDOMDocument () { return svgdoc; },
getDOMContainer () { return container; },
getSVGRoot,
// TODO: replace this mostly with a way to get the current drawing.
getBaseUnit,
getSnappingStep () { return curConfig.snappingStep; }
}
);
canvas.findDefs = findDefs;
canvas.getUrlFromAttr = getUrlFromAttr;
canvas.getHref = getHref;
canvas.setHref = setHref;
/* const getBBox = */ canvas.getBBox = utilsGetBBox;
canvas.getRotationAngle = getRotationAngle;
canvas.getElem = getElem;
canvas.getRefElem = getRefElem;
canvas.assignAttributes = assignAttributes;
this.cleanupElement = cleanupElement;
/**
* This should actually be an intersection not a union as all should apply.
* @type {module:coords.EditorContext#getGridSnapping|module:path.EditorContext#getGridSnapping}
*/
const getGridSnapping = () => { return curConfig.gridSnapping; };
coordsInit(
/**
* @implements {module:coords.EditorContext}
*/
{
getDrawing () { return getCurrentDrawing(); },
getSVGRoot,
getGridSnapping
}
);
this.remapElement = remapElement;
recalculateInit(
/**
* @implements {module:recalculate.EditorContext}
*/
{
getSVGRoot,
getStartTransform () { return startTransform; },
setStartTransform (transform) { startTransform = transform; }
}
);
this.recalculateDimensions = recalculateDimensions;
// import from sanitize.js
const nsMap = getReverseNS();
canvas.sanitizeSvg = sanitizeSvg;
/**
* This should really be an intersection applying to all types rather than a union.
* @name module:svgcanvas.SvgCanvas#getZoom
* @type {module:path.EditorContext#getCurrentZoom|module:select.SVGFactory#getCurrentZoom}
*/
const getCurrentZoom = this.getZoom = function () { return currentZoom; };
/**
* This method rounds the incoming value to the nearest value based on the `currentZoom`
* @name module:svgcanvas.SvgCanvas#round
* @type {module:path.EditorContext#round}
*/
const round = this.round = function (val) {
return Number.parseInt(val * currentZoom) / currentZoom;
};
selectInit(
curConfig,
/**
* Export to select.js.
* @implements {module:select.SVGFactory}
*/
{
createSVGElement (jsonMap) { return canvas.addSVGElementFromJson(jsonMap); },
svgRoot () { return svgroot; },
svgContent () { return svgcontent; },
getCurrentZoom
}
);
/**
* This object manages selectors for us.
* @name module:svgcanvas.SvgCanvas#selectorManager
* @type {module:select.SelectorManager}
*/
const selectorManager = this.selectorManager = getSelectorManager();
/**
* @name module:svgcanvas.SvgCanvas#getNextId
* @type {module:path.EditorContext#getNextId}
*/
const getNextId = canvas.getNextId = function () {
return getCurrentDrawing().getNextId();
};
/**
* @name module:svgcanvas.SvgCanvas#getId
* @type {module:path.EditorContext#getId}
*/
const getId = canvas.getId = function () {
return getCurrentDrawing().getId();
};
/**
* The "implements" should really be an intersection applying to all types rather than a union.
* @name module:svgcanvas.SvgCanvas#call
* @type {module:draw.DrawCanvasInit#call|module:path.EditorContext#call}
*/
const call = function (ev, arg) {
if (events[ev]) {
return events[ev](window, arg);
}
return undefined;
};
const restoreRefElems = function (elem) {
// Look for missing reference elements, restore any found
const attrs = $(elem).attr(refAttrs);
Object.values(attrs).forEach((val) => {
if (val && val.startsWith('url(')) {
const id = getUrlFromAttr(val).substr(1);
const ref = getElem(id);
if (!ref) {
findDefs().append(removedElements[id]);
delete removedElements[id];
}
}
});
const childs = elem.getElementsByTagName('*');
if (childs.length) {
for (let i = 0, l = childs.length; i < l; i++) {
restoreRefElems(childs[i]);
}
}
};
undoInit(
/**
* @implements {module:undo.undoContext}
*/
{
call,
restoreRefElems,
getSVGContent,
getCanvas () { return canvas; },
getCurrentMode () { return currentMode; },
getCurrentZoom,
getSVGRoot,
getSelectedElements
}
);
/**
* @name undoMgr
* @memberof module:svgcanvas.SvgCanvas#
* @type {module:history.HistoryEventHandler}
*/
const undoMgr = canvas.undoMgr = getUndoManager();
/**
* This should really be an intersection applying to all types rather than a union.
* @name module:svgcanvas~addCommandToHistory
* @type {module:path.EditorContext#addCommandToHistory|module:draw.DrawCanvasInit#addCommandToHistory}
*/
const addCommandToHistory = function (cmd) {
canvas.undoMgr.addCommandToHistory(cmd);
};
selectionInit(
/**
* @implements {module:selection.selectionContext}
*/
{
getCanvas () { return canvas; },
getCurrentGroup () { return currentGroup; },
getSelectedElements,
getSVGRoot,
getSVGContent,
getDOMContainer () { return container; },
getExtensions () { return extensions; },
setExtensions (key, value) { extensions[key] = value; },
getCurrentZoom,
isIE,
getRubberBox () { return rubberBox; },
setCurBBoxes (value) { curBBoxes = value; },
getCurBBoxes (value) { return curBBoxes; },
getCurrentResizeMode () { return currentResizeMode; },
addCommandToHistory,
getSelector () { return Selector; }
}
);
/**
* Clears the selection. The 'selected' handler is then optionally called.
* This should really be an intersection applying to all types rather than a union.
* @name module:svgcanvas.SvgCanvas#clearSelection
* @type {module:draw.DrawCanvasInit#clearSelection|module:path.EditorContext#clearSelection}
* @fires module:svgcanvas.SvgCanvas#event:selected
*/
const clearSelection = this.clearSelection = clearSelectionMethod;
/**
* Adds a list of elements to the selection. The 'selected' handler is then called.
* @name module:svgcanvas.SvgCanvas#addToSelection
* @type {module:path.EditorContext#addToSelection}
* @fires module:svgcanvas.SvgCanvas#event:selected
*/
const addToSelection = this.addToSelection = addToSelectionMethod;
/**
* @type {module:path.EditorContext#getOpacity}
*/
const getOpacity = function () {
return curShape.opacity;
};
/**
* @name module:svgcanvas.SvgCanvas#getMouseTarget
* @type {module:path.EditorContext#getMouseTarget}
*/
const getMouseTarget = this.getMouseTarget = getMouseTargetMethod;
/**
* @namespace {module:path.pathActions} pathActions
* @memberof module:svgcanvas.SvgCanvas#
* @see module:path.pathActions
*/
canvas.pathActions = pathActions;
/**
* @type {module:path.EditorContext#resetD}
*/
function resetD (p) {
if (typeof pathActions.convertPath === 'function') {
p.setAttribute('d', pathActions.convertPath(p));
} else if (typeof pathActions.convertPaths === 'function') {
p.setAttribute('d', pathActions.convertPaths(p));
}
}
pathModule.init(
/**
* @implements {module:path.EditorContext}
*/
{
selectorManager, // Ok since not changing
canvas, // Ok since not changing
call,
resetD,
round,
clearSelection,
addToSelection,
addCommandToHistory,
remapElement,
addSVGElementFromJson,
getGridSnapping,
getOpacity,
getSelectedElements,
getContainer () {
return container;
},
setStarted (s) {
started = s;
},
getRubberBox () {
return rubberBox;
},
setRubberBox (rb) {
rubberBox = rb;
return rubberBox;
},
/**
* @param {PlainObject} ptsInfo
* @param {boolean} ptsInfo.closedSubpath
* @param {SVGCircleElement[]} ptsInfo.grips
* @fires module:svgcanvas.SvgCanvas#event:pointsAdded
* @fires module:svgcanvas.SvgCanvas#event:selected
* @returns {void}
*/
addPtsToSelection ({closedSubpath, grips}) {
// TODO: Correct this:
pathActions.canDeleteNodes = true;
pathActions.closed_subpath = closedSubpath;
call('pointsAdded', {closedSubpath, grips});
call('selected', grips);
},
/**
* @param {PlainObject} changes
* @param {ChangeElementCommand} changes.cmd
* @param {SVGPathElement} changes.elem
* @fires module:svgcanvas.SvgCanvas#event:changed
* @returns {void}
*/
endChanges ({cmd, elem}) {
addCommandToHistory(cmd);
call('changed', [elem]);
},
getCurrentZoom,
getId,
getNextId,
getMouseTarget,
getCurrentMode () {
return currentMode;
},
setCurrentMode (cm) {
currentMode = cm;
return currentMode;
},
getDrawnPath () {
return drawnPath;
},
setDrawnPath (dp) {
drawnPath = dp;
return drawnPath;
},
getSVGRoot
}
);
// Interface strings, usually for title elements
const uiStrings = {};
const elData = $.data;
// Animation element to change the opacity of any newly created element
const opacAni = document.createElementNS(NS.SVG, 'animate');
$(opacAni).attr({
attributeName: 'opacity',
begin: 'indefinite',
dur: 1,
fill: 'freeze'
}).appendTo(svgroot);
// (function () {
// TODO For Issue 208: this is a start on a thumbnail
// const svgthumb = svgdoc.createElementNS(NS.SVG, 'use');
// svgthumb.setAttribute('width', '100');
// svgthumb.setAttribute('height', '100');
// setHref(svgthumb, '#svgcontent');
// svgroot.append(svgthumb);
// }());
/**
* @typedef {PlainObject} module:svgcanvas.SaveOptions
* @property {boolean} apply
* @property {"embed"} [image]
* @property {Integer} round_digits
*/
// Object to contain image data for raster images that were found encodable
const encodableImages = {},
// Object with save options
/**
* @type {module:svgcanvas.SaveOptions}
*/
saveOptions = {round_digits: 5},
// Object with IDs for imported files, to see if one was already added
importIds = {},
// Current text style properties
curText = allProperties.text,
// Object to contain all included extensions
extensions = {},
// Map of deleted reference elements
removedElements = {};
let
// String with image URL of last loadable image
lastGoodImgUrl = curConfig.imgPath + 'logo.png',
// Boolean indicating whether or not a draw action has been started
started = false,
// String with an element's initial transform attribute value
startTransform = null,
// String indicating the current editor mode
currentMode = 'select',
// String with the current direction in which an element is being resized
currentResizeMode = 'none',
// Current general properties
curProperties = curShape,
// Array with selected elements' Bounding box object
// selectedBBoxes = new Array(1),
// The DOM element that was just selected
justSelected = null,
// DOM element for selection rectangle drawn by the user
rubberBox = null,
// Array of current BBoxes, used in getIntersectionList().
curBBoxes = [],
// Canvas point for the most recent right click
lastClickPoint = null;
this.runExtension = function (name, action, vars) {
return this.runExtensions(action, vars, false, (n) => n === name);
};
/**
* @todo Consider: Should this return an array by default, so extension results aren't overwritten?
* @todo Would be easier to document if passing in object with key of action and vars as value; could then define an interface which tied both together
* @function module:svgcanvas.SvgCanvas#runExtensions
* @param {"mouseDown"|"mouseMove"|"mouseUp"|"zoomChanged"|"IDsUpdated"|"canvasUpdated"|"toolButtonStateUpdate"|"selectedChanged"|"elementTransition"|"elementChanged"|"langReady"|"langChanged"|"addLangData"|"onNewDocument"|"workareaResized"} action
* @param {module:svgcanvas.SvgCanvas#event:ext_mouseDown|module:svgcanvas.SvgCanvas#event:ext_mouseMove|module:svgcanvas.SvgCanvas#event:ext_mouseUp|module:svgcanvas.SvgCanvas#event:ext_zoomChanged|module:svgcanvas.SvgCanvas#event:ext_IDsUpdated|module:svgcanvas.SvgCanvas#event:ext_canvasUpdated|module:svgcanvas.SvgCanvas#event:ext_toolButtonStateUpdate|module:svgcanvas.SvgCanvas#event:ext_selectedChanged|module:svgcanvas.SvgCanvas#event:ext_elementTransition|module:svgcanvas.SvgCanvas#event:ext_elementChanged|module:svgcanvas.SvgCanvas#event:ext_langReady|module:svgcanvas.SvgCanvas#event:ext_langChanged|module:svgcanvas.SvgCanvas#event:ext_addLangData|module:svgcanvas.SvgCanvas#event:ext_onNewDocument|module:svgcanvas.SvgCanvas#event:ext_workareaResized|module:svgcanvas.ExtensionVarBuilder} [vars]
* @param {boolean} [returnArray]
* @param {module:svgcanvas.ExtensionNameFilter} nameFilter
* @returns {GenericArray<module:svgcanvas.ExtensionStatus>|module:svgcanvas.ExtensionStatus|false} See {@tutorial ExtensionDocs} on the ExtensionStatus.
*/
this.runExtensions = runExtensionsMethod;
/**
* Add an extension to the editor.
* @function module:svgcanvas.SvgCanvas#addExtension
* @param {string} name - String with the ID of the extension. Used internally; no need for i18n.
* @param {module:svgcanvas.ExtensionInitCallback} [extInitFunc] - Function supplied by the extension with its data
* @param {module:svgcanvas.ExtensionInitArgs} initArgs
* @fires module:svgcanvas.SvgCanvas#event:extension_added
* @throws {TypeError|Error} `TypeError` if `extInitFunc` is not a function, `Error`
* if extension of supplied name already exists
* @returns {Promise<void>} Resolves to `undefined`
*/
this.addExtension = async function (name, extInitFunc, {$: jq, importLocale}) {
if (typeof extInitFunc !== 'function') {
throw new TypeError('Function argument expected for `svgcanvas.addExtension`');
}
if (name in extensions) {
throw new Error('Cannot add extension "' + name + '", an extension by that name already exists.');
}
// Provide private vars/funcs here. Is there a better way to do this?
/**
* @typedef {module:svgcanvas.PrivateMethods} module:svgcanvas.ExtensionArgumentObject
* @property {SVGSVGElement} svgroot See {@link module:svgcanvas~svgroot}
* @property {SVGSVGElement} svgcontent See {@link module:svgcanvas~svgcontent}
* @property {!(string|Integer)} nonce See {@link module:draw.Drawing#getNonce}
* @property {module:select.SelectorManager} selectorManager
* @property {module:SVGEditor~ImportLocale} importLocale
*/
/**
* @type {module:svgcanvas.ExtensionArgumentObject}
* @see {@link module:svgcanvas.PrivateMethods} source for the other methods/properties
*/
const argObj = $.extend(canvas.getPrivateMethods(), {
$: jq,
importLocale,
svgroot,
svgcontent,
nonce: getCurrentDrawing().getNonce(),
selectorManager
});
const extObj = await extInitFunc(argObj);
if (extObj) {
extObj.name = name;
}
extensions[name] = extObj;
return call('extension_added', extObj);
};
/**
* This method sends back an array or a NodeList full of elements that
* intersect the multi-select rubber-band-box on the currentLayer only.
*
* We brute-force `getIntersectionList` for browsers that do not support it (Firefox).
*
* Reference:
* Firefox does not implement `getIntersectionList()`, see {@link https://bugzilla.mozilla.org/show_bug.cgi?id=501421}.
* @function module:svgcanvas.SvgCanvas#getIntersectionList
* @param {SVGRect} rect
* @returns {Element[]|NodeList} Bbox elements
*/
const getIntersectionList = this.getIntersectionList = getIntersectionListMethod;
this.getStrokedBBox = getStrokedBBoxDefaultVisible;
this.getVisibleElements = getVisibleElements;
/**
* Wrap an SVG element into a group element, mark the group as 'gsvg'.
* @function module:svgcanvas.SvgCanvas#groupSvgElem
* @param {Element} elem - SVG element to wrap
* @returns {void}
*/
this.groupSvgElem = groupSvgElem;
// Set scope for these functions
// Object to contain editor event names and callback functions
const events = {};
canvas.call = call;
/**
* Array of what was changed (elements, layers).
* @event module:svgcanvas.SvgCanvas#event:changed
* @type {Element[]}
*/
/**
* Array of selected elements.
* @event module:svgcanvas.SvgCanvas#event:selected
* @type {Element[]}
*/
/**
* Array of selected elements.
* @event module:svgcanvas.SvgCanvas#event:transition
* @type {Element[]}
*/
/**
* The Element is always `SVGGElement`?
* If not `null`, will be the set current group element.
* @event module:svgcanvas.SvgCanvas#event:contextset
* @type {null|Element}
*/
/**
* @event module:svgcanvas.SvgCanvas#event:pointsAdded
* @type {PlainObject}
* @property {boolean} closedSubpath
* @property {SVGCircleElement[]} grips Grips elements
*/
/**
* @event module:svgcanvas.SvgCanvas#event:zoomed
* @type {PlainObject}
* @property {Float} x
* @property {Float} y
* @property {Float} width
* @property {Float} height
* @property {0.5|2} factor
* @see module:SVGEditor.BBoxObjectWithFactor
*/
/**
* @event module:svgcanvas.SvgCanvas#event:updateCanvas
* @type {PlainObject}
* @property {false} center
* @property {module:math.XYObject} newCtr
*/
/**
* @typedef {PlainObject} module:svgcanvas.ExtensionInitResponsePlusName
* @implements {module:svgcanvas.ExtensionInitResponse}
* @property {string} name The extension's resolved ID (whether explicit or based on file name)
*/
/**
* Generalized extension object response of
* [`init()`]{@link module:svgcanvas.ExtensionInitCallback}
* along with the name of the extension.
* @event module:svgcanvas.SvgCanvas#event:extension_added
* @type {module:svgcanvas.ExtensionInitResponsePlusName|void}
*/
/**
* @event module:svgcanvas.SvgCanvas#event:extensions_added
* @type {void}
*/
/**
* @typedef {PlainObject} module:svgcanvas.Message
* @property {any} data The data
* @property {string} origin The origin
*/
/**
* @event module:svgcanvas.SvgCanvas#event:message
* @type {module:svgcanvas.Message}
*/
/**
* SVG canvas converted to string.
* @event module:svgcanvas.SvgCanvas#event:saved
* @type {string}
*/
/**
* @event module:svgcanvas.SvgCanvas#event:setnonce
* @type {!(string|Integer)}
*/
/**
* @event module:svgcanvas.SvgCanvas#event:unsetnonce
* @type {void}
*/
/**
* @event module:svgcanvas.SvgCanvas#event:zoomDone
* @type {void}
*/
/**
* @event module:svgcanvas.SvgCanvas#event:cleared
* @type {void}
*/
/**
* @event module:svgcanvas.SvgCanvas#event:exported
* @type {module:svgcanvas.ImageExportedResults}
*/
/**
* @event module:svgcanvas.SvgCanvas#event:exportedPDF
* @type {module:svgcanvas.PDFExportedResults}
*/
/**
* Creating a cover-all class until {@link https://github.com/jsdoc3/jsdoc/issues/1545} may be supported.
* `undefined` may be returned by {@link module:svgcanvas.SvgCanvas#event:extension_added} if the extension's `init` returns `undefined` It is also the type for the following events "zoomDone", "unsetnonce", "cleared", and "extensions_added".
* @event module:svgcanvas.SvgCanvas#event:GenericCanvasEvent
* @type {module:svgcanvas.SvgCanvas#event:selected|module:svgcanvas.SvgCanvas#event:changed|module:svgcanvas.SvgCanvas#event:contextset|module:svgcanvas.SvgCanvas#event:pointsAdded|module:svgcanvas.SvgCanvas#event:extension_added|module:svgcanvas.SvgCanvas#event:extensions_added|module:svgcanvas.SvgCanvas#event:message|module:svgcanvas.SvgCanvas#event:transition|module:svgcanvas.SvgCanvas#event:zoomed|module:svgcanvas.SvgCanvas#event:updateCanvas|module:svgcanvas.SvgCanvas#event:saved|module:svgcanvas.SvgCanvas#event:exported|module:svgcanvas.SvgCanvas#event:exportedPDF|module:svgcanvas.SvgCanvas#event:setnonce|module:svgcanvas.SvgCanvas#event:unsetnonce|void}
*/
/**
* The promise return, if present, resolves to `undefined`
* (`extension_added`, `exported`, `saved`).
* @typedef {Promise<void>|void} module:svgcanvas.EventHandlerReturn
*/
/**
* @callback module:svgcanvas.EventHandler
* @param {external:Window} win
* @param {module:svgcanvas.SvgCanvas#event:GenericCanvasEvent} arg
* @listens module:svgcanvas.SvgCanvas#event:GenericCanvasEvent
* @returns {module:svgcanvas.EventHandlerReturn}
*/
/**
* Attaches a callback function to an event.
* @function module:svgcanvas.SvgCanvas#bind
* @param {"changed"|"contextset"|"selected"|"pointsAdded"|"extension_added"|"extensions_added"|"message"|"transition"|"zoomed"|"updateCanvas"|"zoomDone"|"saved"|"exported"|"exportedPDF"|"setnonce"|"unsetnonce"|"cleared"} ev - String indicating the name of the event
* @param {module:svgcanvas.EventHandler} f - The callback function to bind to the event
* @returns {module:svgcanvas.EventHandler} The previous event
*/
canvas.bind = function (ev, f) {
const old = events[ev];
events[ev] = f;
return old;
};
/**
* Runs the SVG Document through the sanitizer and then updates its paths.
* @function module:svgcanvas.SvgCanvas#prepareSvg
* @param {XMLDocument} newDoc - The SVG DOM document
* @returns {void}
*/
this.prepareSvg = prepareSvg;
/**
* Removes any old rotations if present, prepends a new rotation at the
* transformed center.
* @function module:svgcanvas.SvgCanvas#setRotationAngle
* @param {string|Float} val - The new rotation angle in degrees
* @param {boolean} preventUndo - Indicates whether the action should be undoable or not
* @fires module:svgcanvas.SvgCanvas#event:changed
* @returns {void}
*/
this.setRotationAngle = setRotationAngle;
/**
* Runs `recalculateDimensions` on the selected elements,
* adding the changes to a single batch command.
* @function module:svgcanvas.SvgCanvas#recalculateAllSelectedDimensions
* @fires module:svgcanvas.SvgCanvas#event:changed
* @returns {void}
*/
this.recalculateAllSelectedDimensions = recalculateAllSelectedDimensions;
/**
* Debug tool to easily see the current matrix in the browser's console.
* @function module:svgcanvas~logMatrix
* @param {SVGMatrix} m The matrix
* @returns {void}
*/
const logMatrix = function (m) {
console.log([m.a, m.b, m.c, m.d, m.e, m.f]); // eslint-disable-line no-console
};
// Root Current Transformation Matrix in user units
let rootSctm = null;
/**
* Group: Selection.
*/
// TODO: do we need to worry about selectedBBoxes here?
/**
* Selects only the given elements, shortcut for `clearSelection(); addToSelection()`.
* @function module:svgcanvas.SvgCanvas#selectOnly
* @param {Element[]} elems - an array of DOM elements to be selected
* @param {boolean} showGrips - Indicates whether the resize grips should be shown
* @returns {void}
*/
const selectOnly = this.selectOnly = function (elems, showGrips) {
clearSelection(true);
addToSelection(elems, showGrips);
};
// TODO: could use slice here to make this faster?
// TODO: should the 'selected' handler
/**
* Removes elements from the selection.
* @function module:svgcanvas.SvgCanvas#removeFromSelection
* @param {Element[]} elemsToRemove - An array of elements to remove from selection
* @returns {void}
*/
/* const removeFromSelection = */ this.removeFromSelection = function (elemsToRemove) {
if (isNullish(selectedElements[0])) { return; }
if (!elemsToRemove.length) { return; }
// find every element and remove it from our array copy
const newSelectedItems = [],
len = selectedElements.length;
for (let i = 0; i < len; ++i) {
const elem = selectedElements[i];
if (elem) {
// keep the item
if (!elemsToRemove.includes(elem)) {
newSelectedItems.push(elem);
} else { // remove the item and its selector
selectorManager.releaseSelector(elem);
}
}
}
// the copy becomes the master now
selectedElements = newSelectedItems;
};
/**
* Clears the selection, then adds all elements in the current layer to the selection.
* @function module:svgcanvas.SvgCanvas#selectAllInCurrentLayer
* @returns {void}
*/
this.selectAllInCurrentLayer = function () {
const currentLayer = getCurrentDrawing().getCurrentLayer();
if (currentLayer) {
currentMode = 'select';
selectOnly($(currentGroup || currentLayer).children());
}
};
let drawnPath = null;
// Mouse events
(function () {
const freehand = {
minx: null,
miny: null,
maxx: null,
maxy: null
};
const THRESHOLD_DIST = 0.8,
STEP_COUNT = 10;
let dAttr = null;
let startX = null;
let startY = null;
let rStartX = null;
let rStartY = null;
let initBbox = {};
let sumDistance = 0;
const controllPoint2 = {x: 0, y: 0};
const controllPoint1 = {x: 0, y: 0};
let start = {x: 0, y: 0};
const end = {x: 0, y: 0};
let bSpline = {x: 0, y: 0};
let nextPos = {x: 0, y: 0};
let parameter;
let nextParameter;
/**
* @function eventInit Initialize from event.js
* @returns {void}
*/
eventInit(
/**
* @implements {module:event.eventContext_}
*/
{
getStarted () { return started; },
getCanvas () { return canvas; },
getCurConfig () { return curConfig; },
getCurrentMode () { return currentMode; },
getrootSctm () { return rootSctm; },
getStartX () { return startX; },
setStartX (value) { startX = value; },
getStartY () { return startY; },
setStartY (value) { startY = value; },
getRStartX () { return rStartX; },
getRStartY () { return rStartY; },
getRubberBox () { return rubberBox; },
getInitBbox () { return initBbox; },
getCurrentResizeMode () { return currentResizeMode; },
getCurrentGroup () { return currentGroup; },
getDrawnPath () { return drawnPath; },
getJustSelected () { return justSelected; },
getOpacAni () { return opacAni; },
getParameter () { return parameter; },
getNextParameter () { return nextParameter; },
getStepCount () { return STEP_COUNT; },
getThreSholdDist () { return THRESHOLD_DIST; },
getSumDistance () { return sumDistance; },
getStart (key) { return start[key]; },
getEnd (key) { return end[key]; },
getbSpline (key) { return bSpline[key]; },
getNextPos (key) { return nextPos[key]; },
getControllPoint1 (key) { return controllPoint1[key]; },
getControllPoint2 (key) { return controllPoint2[key]; },
getFreehand (key) { return freehand[key]; },
getDrawing () { return getCurrentDrawing(); },
getCurShape () { return curShape; },
getDAttr () { return dAttr; },
getLastGoodImgUrl () { return lastGoodImgUrl; },
getCurText (key) { return curText[key]; },
setDAttr (value) { dAttr = value; },
setEnd (key, value) { end[key] = value; },
setControllPoint1 (key, value) { controllPoint1[key] = value; },
setControllPoint2 (key, value) { controllPoint2[key] = value; },
setJustSelected (value) { justSelected = value; },
setParameter (value) { parameter = value; },
setStart (value) { start = value; },
setRStartX (value) { rStartX = value; },
setRStartY (value) { rStartY = value; },
setSumDistance (value) { sumDistance = value; },
setbSpline (value) { bSpline = value; },
setNextPos (value) { nextPos = value; },
setNextParameter (value) { nextParameter = value; },
setCurProperties (key, value) { curProperties[key] = value; },
setCurText (key, value) { curText[key] = value; },
setStarted (s) { started = s; },
setStartTransform (transform) { startTransform = transform; },
setCurrentMode (cm) {
currentMode = cm;
return currentMode;
},
setFreehand (key, value) { freehand[key] = value; },
setCurBBoxes (value) { curBBoxes = value; },
setRubberBox (value) { rubberBox = value; },
setInitBbox (value) { initBbox = value; },
setRootSctm (value) { rootSctm = value; },
setCurrentResizeMode (value) { currentResizeMode = value; },
setLastClickPoint (value) { lastClickPoint = value; },
getSelectedElements,
getCurrentZoom,
getId,
addCommandToHistory,
getSVGRoot,
getSVGContent,
call,
elData,
getIntersectionList
}
);
/**
* Follows these conditions:
* - When we are in a create mode, the element is added to the canvas but the
* action is not recorded until mousing up.
* - When we are in select mode, select the element, remember the position
* and do nothing else.
* @param {MouseEvent} evt
* @fires module:svgcanvas.SvgCanvas#event:ext_mouseDown
* @returns {void}
*/
const mouseDown = mouseDownEvent;
// in this function we do not record any state changes yet (but we do update
// any elements that are still being created, moved or resized on the canvas)
/**
*
* @param {MouseEvent} evt
* @fires module:svgcanvas.SvgCanvas#event:transition
* @fires module:svgcanvas.SvgCanvas#event:ext_mouseMove
* @returns {void}
*/
const mouseMove = mouseMoveEvent;
// - in create mode, the element's opacity is set properly, we create an InsertElementCommand
// and store it on the Undo stack
// - in move/resize mode, the element's attributes which were affected by the move/resize are
// identified, a ChangeElementCommand is created and stored on the stack for those attrs
// this is done in when we recalculate the selected dimensions()
/**
*
* @param {MouseEvent} evt
* @fires module:svgcanvas.SvgCanvas#event:zoomed
* @fires module:svgcanvas.SvgCanvas#event:changed
* @fires module:svgcanvas.SvgCanvas#event:ext_mouseUp
* @returns {void}
*/
const mouseUp = mouseUpEvent;
const dblClick = dblClickEvent;
// prevent links from being followed in the canvas
const handleLinkInCanvas = function (e) {
e.preventDefault();
return false;
};
// Added mouseup to the container here.
// TODO(codedread): Figure out why after the Closure compiler, the window mouseup is ignored.
$(container).mousedown(mouseDown).mousemove(mouseMove).click(handleLinkInCanvas).dblclick(dblClick).mouseup(mouseUp);
// $(window).mouseup(mouseUp);
// TODO(rafaelcastrocouto): User preference for shift key and zoom factor
$(container).bind('mousewheel DOMMouseScroll', DOMMouseScrollEvent);
}());
textActionsInit(
/**
* @implements {module:text-actions.textActionsContext}
*/
{
getCanvas () { return canvas; },
getrootSctm () { return rootSctm; },
getSelectedElements,
getCurrentZoom,
getCurrentMode () {
return currentMode;
},
setCurrentMode (cm) {
currentMode = cm;
return currentMode;
},
getSVGRoot,
call
}
);
const textActions = canvas.textActions = textActionsMethod;
/**
* Group: Serialization.
*/
svgInit(
/**
* @implements {module:elem-get-set.elemInit}
*/
{
getCanvas () { return canvas; },
getSVGContent,
getSVGRoot,
getUIStrings () { return uiStrings; },
getCurrentGroup () { return currentGroup; },
getCurConfig () { return curConfig; },
getNsMap () { return nsMap; },
getSvgOption () { return saveOptions; },
setSvgOption (key, value) { saveOptions[key] = value; },
getSvgOptionApply () { return saveOptions.apply; },
getSvgOptionImages () { return saveOptions.images; },
getEncodableImages (key) { return encodableImages[key]; },
setEncodableImages (key, value) { encodableImages[key] = value; },
call,
getDOMDocument () { return svgdoc; },
getVisElems () { return visElems; },
getIdPrefix () { return idprefix; },
setCurrentZoom (value) { currentZoom = value; },
getImportIds (key) { return importIds[key]; },
setImportIds (key, value) { importIds[key] = value; },
setRemovedElements (key, value) { removedElements[key] = value; },
setSVGContent (value) { svgcontent = value; },
getrefAttrs () { return refAttrs; },
getcanvg () { return canvg; },
addCommandToHistory
}
);
/**
* Looks at DOM elements inside the `<defs>` to see if they are referred to,
* removes them from the DOM if they are not.
* @function module:svgcanvas.SvgCanvas#removeUnusedDefElems
* @returns {Integer} The number of elements that were removed
*/
this.removeUnusedDefElems = removeUnusedDefElemsMethod;
/**
* Main function to set up the SVG content for output.
* @function module:svgcanvas.SvgCanvas#svgCanvasToString
* @returns {string} The SVG image for output
*/
this.svgCanvasToString = svgCanvasToString;
/**
* Sub function ran on each SVG element to convert it to a string as desired.
* @function module:svgcanvas.SvgCanvas#svgToString
* @param {Element} elem - The SVG element to convert
* @param {Integer} indent - Number of spaces to indent this tag
* @returns {string} The given element as an SVG tag
*/
this.svgToString = svgToString;
/**
* Function to run when image data is found.
* @callback module:svgcanvas.ImageEmbeddedCallback
* @param {string|false} result Data URL
* @returns {void}
*/
/**
* Converts a given image file to a data URL when possible, then runs a given callback.
* @function module:svgcanvas.SvgCanvas#embedImage
* @param {string} src - The path/URL of the image
* @returns {Promise<string|false>} Resolves to a Data URL (string|false)
*/
this.embedImage = embedImage;
/**
* Sets a given URL to be a "last good image" URL.
* @function module:svgcanvas.SvgCanvas#setGoodImage
* @param {string} val
* @returns {void}
*/
this.setGoodImage = function (val) {
lastGoodImgUrl = val;
};
/**
* Does nothing by default, handled by optional widget/extension.
* @function module:svgcanvas.SvgCanvas#open
* @returns {void}
*/
this.open = function () {
/* empty fn */
};
/**
* Serializes the current drawing into SVG XML text and passes it to the 'saved' handler.
* This function also includes the XML prolog. Clients of the `SvgCanvas` bind their save
* function to the 'saved' event.
* @function module:svgcanvas.SvgCanvas#save
* @param {module:svgcanvas.SaveOptions} opts
* @fires module:svgcanvas.SvgCanvas#event:saved
* @returns {void}
*/
this.save = save;
/**
* @typedef {PlainObject} module:svgcanvas.IssuesAndCodes
* @property {string[]} issueCodes The locale-independent code names
* @property {string[]} issues The localized descriptions
*/
/**
* @typedef {"feGaussianBlur"|"foreignObject"|"[stroke-dasharray]"|"text"} module:svgcanvas.IssueCode
*/
/**
* @typedef {PlainObject} module:svgcanvas.ImageExportedResults
* @property {string} datauri Contents as a Data URL
* @property {string} bloburl May be the empty string
* @property {string} svg The SVG contents as a string
* @property {string[]} issues The localization messages of `issueCodes`
* @property {module:svgcanvas.IssueCode[]} issueCodes CanVG issues found with the SVG
* @property {"PNG"|"JPEG"|"BMP"|"WEBP"|"ICO"} type The chosen image type
* @property {"image/png"|"image/jpeg"|"image/bmp"|"image/webp"} mimeType The image MIME type
* @property {Float} quality A decimal between 0 and 1 (for use with JPEG or WEBP)
* @property {string} exportWindowName A convenience for passing along a `window.name` to target a window on which the export could be added
*/
/**
* Generates a PNG (or JPG, BMP, WEBP) Data URL based on the current image,
* then calls "exported" with an object including the string, image
* information, and any issues found.
* @function module:svgcanvas.SvgCanvas#rasterExport
* @param {"PNG"|"JPEG"|"BMP"|"WEBP"|"ICO"} [imgType="PNG"]
* @param {Float} [quality] Between 0 and 1
* @param {string} [exportWindowName]
* @param {PlainObject} [opts]
* @param {boolean} [opts.avoidEvent]
* @fires module:svgcanvas.SvgCanvas#event:exported
* @todo Confirm/fix ICO type
* @returns {Promise<module:svgcanvas.ImageExportedResults>} Resolves to {@link module:svgcanvas.ImageExportedResults}
*/
this.rasterExport = rasterExport;
/**
* @typedef {void|"save"|"arraybuffer"|"blob"|"datauristring"|"dataurlstring"|"dataurlnewwindow"|"datauri"|"dataurl"} external:jsPDF.OutputType
* @todo Newer version to add also allows these `outputType` values "bloburi"|"bloburl" which return strings, so document here and for `outputType` of `module:svgcanvas.PDFExportedResults` below if added
*/
/**
* @typedef {PlainObject} module:svgcanvas.PDFExportedResults
* @property {string} svg The SVG PDF output
* @property {string|ArrayBuffer|Blob|window} output The output based on the `outputType`;
* if `undefined`, "datauristring", "dataurlstring", "datauri",
* or "dataurl", will be a string (`undefined` gives a document, while the others
* build as Data URLs; "datauri" and "dataurl" change the location of the current page); if
* "arraybuffer", will return `ArrayBuffer`; if "blob", returns a `Blob`;
* if "dataurlnewwindow", will change the current page's location and return a string
* if in Safari and no window object is found; otherwise opens in, and returns, a new `window`
* object; if "save", will have the same return as "dataurlnewwindow" if
* `navigator.getUserMedia` support is found without `URL.createObjectURL` support; otherwise
* returns `undefined` but attempts to save
* @property {external:jsPDF.OutputType} outputType
* @property {string[]} issues The human-readable localization messages of corresponding `issueCodes`
* @property {module:svgcanvas.IssueCode[]} issueCodes
* @property {string} exportWindowName
*/
/**
* Generates a PDF based on the current image, then calls "exportedPDF" with
* an object including the string, the data URL, and any issues found.
* @function module:svgcanvas.SvgCanvas#exportPDF
* @param {string} [exportWindowName] Will also be used for the download file name here
* @param {external:jsPDF.OutputType} [outputType="dataurlstring"]
* @fires module:svgcanvas.SvgCanvas#event:exportedPDF
* @returns {Promise<module:svgcanvas.PDFExportedResults>} Resolves to {@link module:svgcanvas.PDFExportedResults}
*/
this.exportPDF = exportPDF;
/**
* Returns the current drawing as raw SVG XML text.
* @function module:svgcanvas.SvgCanvas#getSvgString
* @returns {string} The current drawing as raw SVG XML text.
*/
this.getSvgString = function () {
saveOptions.apply = false;
return this.svgCanvasToString();
};
/**
* This function determines whether to use a nonce in the prefix, when
* generating IDs for future documents in SVG-Edit.
* If you're controlling SVG-Edit externally, and want randomized IDs, call
* this BEFORE calling `svgCanvas.setSvgString`.
* @function module:svgcanvas.SvgCanvas#randomizeIds
* @param {boolean} [enableRandomization] If true, adds a nonce to the prefix. Thus
* `svgCanvas.randomizeIds() <==> svgCanvas.randomizeIds(true)`
* @returns {void}
*/
this.randomizeIds = function (enableRandomization) {
if (arguments.length > 0 && enableRandomization === false) {
draw.randomizeIds(false, getCurrentDrawing());
} else {
draw.randomizeIds(true, getCurrentDrawing());
}
};
/**
* Ensure each element has a unique ID.
* @function module:svgcanvas.SvgCanvas#uniquifyElems
* @param {Element} g - The parent element of the tree to give unique IDs
* @returns {void}
*/
const uniquifyElems = this.uniquifyElems = uniquifyElemsMethod;
/**
* Assigns reference data for each use element.
* @function module:svgcanvas.SvgCanvas#setUseData
* @param {Element} parent
* @returns {void}
*/
const setUseData = this.setUseData = setUseDataMethod;
/**
* Converts gradients from userSpaceOnUse to objectBoundingBox.
* @function module:svgcanvas.SvgCanvas#convertGradients
* @param {Element} elem
* @returns {void}
*/
const convertGradients = this.convertGradients = convertGradientsMethod;
/**
* This function sets the current drawing as the input SVG XML.
* @function module:svgcanvas.SvgCanvas#setSvgString
* @param {string} xmlString - The SVG as XML text.
* @param {boolean} [preventUndo=false] - Indicates if we want to do the
* changes without adding them to the undo stack - e.g. for initializing a
* drawing on page load.
* @fires module:svgcanvas.SvgCanvas#event:setnonce
* @fires module:svgcanvas.SvgCanvas#event:unsetnonce
* @fires module:svgcanvas.SvgCanvas#event:changed
* @returns {boolean} This function returns `false` if the set was
* unsuccessful, `true` otherwise.
*/
this.setSvgString = setSvgString;
/**
* This function imports the input SVG XML as a `<symbol>` in the `<defs>`, then adds a
* `<use>` to the current layer.
* @function module:svgcanvas.SvgCanvas#importSvgString
* @param {string} xmlString - The SVG as XML text.
* @fires module:svgcanvas.SvgCanvas#event:changed
* @returns {null|Element} This function returns null if the import was unsuccessful, or the element otherwise.
* @todo
* - properly handle if namespace is introduced by imported content (must add to svgcontent
* and update all prefixes in the imported node)
* - properly handle recalculating dimensions, `recalculateDimensions()` doesn't handle
* arbitrary transform lists, but makes some assumptions about how the transform list
* was obtained
*/
this.importSvgString = importSvgString;
// Could deprecate, but besides external uses, their usage makes clear that
// canvas is a dependency for all of these
const dr = {
identifyLayers, createLayer, cloneLayer, deleteCurrentLayer,
setCurrentLayer, renameCurrentLayer, setCurrentLayerPosition,
setLayerVisibility, moveSelectedToLayer, mergeLayer, mergeAllLayers,
leaveContext, setContext
};
Object.entries(dr).forEach(([prop, propVal]) => {
canvas[prop] = propVal;
});
draw.init(
/**
* @implements {module:draw.DrawCanvasInit}
*/
{
pathActions,
getCurrentGroup () {
return currentGroup;
},
setCurrentGroup (cg) {
currentGroup = cg;
},
getSelectedElements,
getSVGContent,
undoMgr,
elData,
getCurrentDrawing,
clearSelection,
call,
addCommandToHistory,
/**
* @fires module:svgcanvas.SvgCanvas#event:changed
* @returns {void}
*/
changeSVGContent () {
call('changed', [svgcontent]);
}
}
);
/**
* Group: Document functions.
*/
/**
* Clears the current document. This is not an undoable action.
* @function module:svgcanvas.SvgCanvas#clear
* @fires module:svgcanvas.SvgCanvas#event:cleared
* @returns {void}
*/
this.clear = function () {
pathActions.clear();
clearSelection();
// clear the svgcontent node
canvas.clearSvgContentElement();
// create new document
canvas.current_drawing_ = new draw.Drawing(svgcontent);
// create empty first layer
canvas.createLayer('Layer 1');
// clear the undo stack
canvas.undoMgr.resetUndoStack();
// reset the selector manager
selectorManager.initGroup();
// reset the rubber band box
rubberBox = selectorManager.getRubberBandBox();
call('cleared');
};
// Alias function
this.linkControlPoints = pathActions.linkControlPoints;
/**
* @function module:svgcanvas.SvgCanvas#getContentElem
* @returns {Element} The content DOM element
*/
this.getContentElem = function () { return svgcontent; };
/**
* @function module:svgcanvas.SvgCanvas#getRootElem
* @returns {SVGSVGElement} The root DOM element
*/
this.getRootElem = function () { return svgroot; };
elemInit(
/**
* @implements {module:elem-get-set.elemInit}
*/
{
addCommandToHistory,
getCurrentZoom,
getSVGContent,
getSelectedElements,
call,
changeSelectedAttributeNoUndoMethod,
getDOMDocument () { return svgdoc; },
getCanvas () { return canvas; },
setCanvas (key, value) { canvas[key] = value; },
setCurrentZoom (value) { currentZoom = value; },
setCurProperties (key, value) { curProperties[key] = value; },
getCurProperties (key) { return curProperties[key]; },
setCurShape (key, value) { curShape[key] = value; },
getCurText (key) { return curText[key]; },
setCurText (key, value) { curText[key] = value; }
}
);
/**
* @typedef {PlainObject} DimensionsAndZoom
* @property {Float} w Width
* @property {Float} h Height
* @property {Float} zoom Zoom
*/
/**
* @function module:svgcanvas.SvgCanvas#getResolution
* @returns {DimensionsAndZoom} The current dimensions and zoom level in an object
*/
const getResolution = this.getResolution = getResolutionMethod;
/**
* @function module:svgcanvas.SvgCanvas#getSnapToGrid
* @returns {boolean} The current snap to grid setting
*/
this.getSnapToGrid = function () { return curConfig.gridSnapping; };
/**
* @function module:svgcanvas.SvgCanvas#getVersion
* @returns {string} A string which describes the revision number of SvgCanvas.
*/
this.getVersion = function () {
return 'svgcanvas.js ($Rev$)';
};
/**
* Update interface strings with given values.
* @function module:svgcanvas.SvgCanvas#setUiStrings
* @param {module:path.uiStrings} strs - Object with strings (see the [locales API]{@link module:locale.LocaleStrings} and the [tutorial]{@tutorial LocaleDocs})
* @returns {void}
*/
this.setUiStrings = function (strs) {
Object.assign(uiStrings, strs.notification);
$ = jQueryPluginDBox($, strs.common);
pathModule.setUiStrings(strs);
};
/**
* Update configuration options with given values.
* @function module:svgcanvas.SvgCanvas#setConfig
* @param {module:SVGEditor.Config} opts - Object with options
* @returns {void}
*/
this.setConfig = function (opts) {
Object.assign(curConfig, opts);
};
/**
* @function module:svgcanvas.SvgCanvas#getTitle
* @param {Element} [elem]
* @returns {string|void} the current group/SVG's title contents or
* `undefined` if no element is passed nd there are no selected elements.
*/
this.getTitle = getTitleMethod;
/**
* Sets the group/SVG's title content.
* @function module:svgcanvas.SvgCanvas#setGroupTitle
* @param {string} val
* @todo Combine this with `setDocumentTitle`
* @returns {void}
*/
this.setGroupTitle = setGroupTitleMethod;
/**
* @function module:svgcanvas.SvgCanvas#getDocumentTitle
* @returns {string|void} The current document title or an empty string if not found
*/
this.getDocumentTitle = function () {
return canvas.getTitle(svgcontent);
};
/**
* Adds/updates a title element for the document with the given name.
* This is an undoable action.
* @function module:svgcanvas.SvgCanvas#setDocumentTitle
* @param {string} newTitle - String with the new title
* @returns {void}
*/
this.setDocumentTitle = setDocumentTitleMethod;
/**
* Returns the editor's namespace URL, optionally adding it to the root element.
* @function module:svgcanvas.SvgCanvas#getEditorNS
* @param {boolean} [add] - Indicates whether or not to add the namespace value
* @returns {string} The editor's namespace URL
*/
this.getEditorNS = getEditorNSMethod;
/**
* Changes the document's dimensions to the given size.
* @function module:svgcanvas.SvgCanvas#setResolution
* @param {Float|"fit"} x - Number with the width of the new dimensions in user units.
* Can also be the string "fit" to indicate "fit to content".
* @param {Float} y - Number with the height of the new dimensions in user units.
* @fires module:svgcanvas.SvgCanvas#event:changed
* @returns {boolean} Indicates if resolution change was successful.
* It will fail on "fit to content" option with no content to fit to.
*/
this.setResolution = setResolutionMethod;
/**
* @typedef {module:jQueryAttr.Attributes} module:svgcanvas.ElementPositionInCanvas
* @property {Float} x
* @property {Float} y
*/
/**
* @function module:svgcanvas.SvgCanvas#getOffset
* @returns {module:svgcanvas.ElementPositionInCanvas} An object with `x`, `y` values indicating the svgcontent element's
* position in the editor's canvas.
*/
this.getOffset = function () {
return $(svgcontent).attr(['x', 'y']);
};
/**
* @typedef {PlainObject} module:svgcanvas.ZoomAndBBox
* @property {Float} zoom
* @property {module:utilities.BBoxObject} bbox
*/
/**
* Sets the zoom level on the canvas-side based on the given value.
* @function module:svgcanvas.SvgCanvas#setBBoxZoom
* @param {"selection"|"canvas"|"content"|"layer"|module:SVGEditor.BBoxObjectWithFactor} val - Bounding box object to zoom to or string indicating zoom option. Note: the object value type is defined in `svg-editor.js`
* @param {Integer} editorW - The editor's workarea box's width
* @param {Integer} editorH - The editor's workarea box's height
* @returns {module:svgcanvas.ZoomAndBBox|void}
*/
this.setBBoxZoom = setBBoxZoomMethod;
/**
* The zoom level has changed. Supplies the new zoom level as a number (not percentage).
* @event module:svgcanvas.SvgCanvas#event:ext_zoomChanged
* @type {Float}
*/
/**
* The bottom panel was updated.
* @event module:svgcanvas.SvgCanvas#event:ext_toolButtonStateUpdate
* @type {PlainObject}
* @property {boolean} nofill Indicates fill is disabled
* @property {boolean} nostroke Indicates stroke is disabled
*/
/**
* The element selection has changed (elements were added/removed from selection).
* @event module:svgcanvas.SvgCanvas#event:ext_selectedChanged
* @type {PlainObject}
* @property {Element[]} elems Array of the newly selected elements
* @property {Element|null} selectedElement The single selected element
* @property {boolean} multiselected Indicates whether one or more elements were selected
*/
/**
* Called when part of element is in process of changing, generally on
* mousemove actions like rotate, move, etc.
* @event module:svgcanvas.SvgCanvas#event:ext_elementTransition
* @type {PlainObject}
* @property {Element[]} elems Array of transitioning elements
*/
/**
* One or more elements were changed.
* @event module:svgcanvas.SvgCanvas#event:ext_elementChanged
* @type {PlainObject}
* @property {Element[]} elems Array of the affected elements
*/
/**
* Invoked as soon as the locale is ready.
* @event module:svgcanvas.SvgCanvas#event:ext_langReady
* @type {PlainObject}
* @property {string} lang The two-letter language code
* @property {module:SVGEditor.uiStrings} uiStrings
* @property {module:SVGEditor~ImportLocale} importLocale
*/
/**
* The language was changed. Two-letter code of the new language.
* @event module:svgcanvas.SvgCanvas#event:ext_langChanged
* @type {string}
*/
/**
* Means for an extension to add locale data. The two-letter language code.
* @event module:svgcanvas.SvgCanvas#event:ext_addLangData
* @type {PlainObject}
* @property {string} lang
* @property {module:SVGEditor~ImportLocale} importLocale
*/
/**
* Called when new image is created.
* @event module:svgcanvas.SvgCanvas#event:ext_onNewDocument
* @type {void}
*/
/**
* Called when sidepanel is resized or toggled.
* @event module:svgcanvas.SvgCanvas#event:ext_workareaResized
* @type {void}
*/
/**
* Called upon addition of the extension, or, if svgicons are set,
* after the icons are ready when extension SVG icons have loaded.
* @event module:svgcanvas.SvgCanvas#event:ext_callback
* @type {void}
*/
/**
* Sets the zoom to the given level.
* @function module:svgcanvas.SvgCanvas#setZoom
* @param {Float} zoomLevel - Float indicating the zoom level to change to
* @fires module:svgcanvas.SvgCanvas#event:ext_zoomChanged
* @returns {void}
*/
this.setZoom = setZoomMethod;
/**
* @function module:svgcanvas.SvgCanvas#getMode
* @returns {string} The current editor mode string
*/
this.getMode = function () {
return currentMode;
};
/**
* Sets the editor's mode to the given string.
* @function module:svgcanvas.SvgCanvas#setMode
* @param {string} name - String with the new mode to change to
* @returns {void}
*/
this.setMode = function (name) {
pathActions.clear(true);
textActions.clear();
curProperties = (selectedElements[0] && selectedElements[0].nodeName === 'text') ? curText : curShape;
currentMode = name;
};
/**
* Group: Element Styling.
*/
/**
* @typedef {PlainObject} module:svgcanvas.PaintOptions
* @property {"solidColor"} type
*/
/**
* @function module:svgcanvas.SvgCanvas#getColor
* @param {string} type
* @returns {string|module:svgcanvas.PaintOptions|Float|module:jGraduate~Paint} The current fill/stroke option
*/
this.getColor = function (type) {
return curProperties[type];
};
/**
* Change the current stroke/fill color/gradient value.
* @function module:svgcanvas.SvgCanvas#setColor
* @param {string} type - String indicating fill or stroke
* @param {string} val - The value to set the stroke attribute to
* @param {boolean} preventUndo - Boolean indicating whether or not this should be an undoable option
* @fires module:svgcanvas.SvgCanvas#event:changed
* @returns {void}
*/
this.setColor = setColorMethod;
/**
* Apply the current gradient to selected element's fill or stroke.
* @function module:svgcanvas.SvgCanvas#setGradient
* @param {"fill"|"stroke"} type - String indicating "fill" or "stroke" to apply to an element
* @returns {void}
*/
this.setGradient = setGradientMethod;
/**
* Set a color/gradient to a fill/stroke.
* @function module:svgcanvas.SvgCanvas#setPaint
* @param {"fill"|"stroke"} type - String with "fill" or "stroke"
* @param {module:jGraduate.jGraduatePaintOptions} paint - The jGraduate paint object to apply
* @returns {void}
*/
this.setPaint = setPaintMethod;
/**
* @function module:svgcanvas.SvgCanvas#setStrokePaint
* @param {module:jGraduate~Paint} paint
* @returns {void}
*/
this.setStrokePaint = function (paint) {
this.setPaint('stroke', paint);
};
/**
* @function module:svgcanvas.SvgCanvas#setFillPaint
* @param {module:jGraduate~Paint} paint
* @returns {void}
*/
this.setFillPaint = function (paint) {
this.setPaint('fill', paint);
};
/**
* @function module:svgcanvas.SvgCanvas#getStrokeWidth
* @returns {Float|string} The current stroke-width value
*/
this.getStrokeWidth = function () {
return curProperties.stroke_width;
};
/**
* Sets the stroke width for the current selected elements.
* When attempting to set a line's width to 0, this changes it to 1 instead.
* @function module:svgcanvas.SvgCanvas#setStrokeWidth
* @param {Float} val - A Float indicating the new stroke width value
* @fires module:svgcanvas.SvgCanvas#event:changed
* @returns {void}
*/
this.setStrokeWidth = setStrokeWidthMethod;
/**
* Set the given stroke-related attribute the given value for selected elements.
* @function module:svgcanvas.SvgCanvas#setStrokeAttr
* @param {string} attr - String with the attribute name
* @param {string|Float} val - String or number with the attribute value
* @fires module:svgcanvas.SvgCanvas#event:changed
* @returns {void}
*/
this.setStrokeAttr = setStrokeAttrMethod;
/**
* @typedef {PlainObject} module:svgcanvas.StyleOptions
* @property {string} fill
* @property {Float} fill_opacity
* @property {string} stroke
* @property {Float} stroke_width
* @property {string} stroke_dasharray
* @property {string} stroke_linejoin
* @property {string} stroke_linecap
* @property {Float} stroke_opacity
* @property {Float} opacity
*/
/**
* @function module:svgcanvas.SvgCanvas#getStyle
* @returns {module:svgcanvas.StyleOptions} current style options
*/
this.getStyle = function () {
return curShape;
};
/**
* @function module:svgcanvas.SvgCanvas#getOpacity
* @returns {Float} the current opacity
*/
this.getOpacity = getOpacity;
/**
* Sets the given opacity on the current selected elements.
* @function module:svgcanvas.SvgCanvas#setOpacity
* @param {string} val
* @returns {void}
*/
this.setOpacity = function (val) {
curShape.opacity = val;
changeSelectedAttribute('opacity', val);
};
/**
* @function module:svgcanvas.SvgCanvas#getFillOpacity
* @returns {Float} the current fill opacity
*/
this.getFillOpacity = function () {
return curShape.fill_opacity;
};
/**
* @function module:svgcanvas.SvgCanvas#getStrokeOpacity
* @returns {string} the current stroke opacity
*/
this.getStrokeOpacity = function () {
return curShape.stroke_opacity;
};
/**
* Sets the current fill/stroke opacity.
* @function module:svgcanvas.SvgCanvas#setPaintOpacity
* @param {string} type - String with "fill" or "stroke"
* @param {Float} val - Float with the new opacity value
* @param {boolean} preventUndo - Indicates whether or not this should be an undoable action
* @returns {void}
*/
this.setPaintOpacity = function (type, val, preventUndo) {
curShape[type + '_opacity'] = val;
if (!preventUndo) {
changeSelectedAttribute(type + '-opacity', val);
} else {
changeSelectedAttributeNoUndo(type + '-opacity', val);
}
};
/**
* Gets the current fill/stroke opacity.
* @function module:svgcanvas.SvgCanvas#getPaintOpacity
* @param {"fill"|"stroke"} type - String with "fill" or "stroke"
* @returns {Float} Fill/stroke opacity
*/
this.getPaintOpacity = function (type) {
return type === 'fill' ? this.getFillOpacity() : this.getStrokeOpacity();
};
/**
* Gets the `stdDeviation` blur value of the given element.
* @function module:svgcanvas.SvgCanvas#getBlur
* @param {Element} elem - The element to check the blur value for
* @returns {string} stdDeviation blur attribute value
*/
this.getBlur = function (elem) {
let val = 0;
// const elem = selectedElements[0];
if (elem) {
const filterUrl = elem.getAttribute('filter');
if (filterUrl) {
const blur = getElem(elem.id + '_blur');
if (blur) {
val = blur.firstChild.getAttribute('stdDeviation');
}
}
}
return val;
};
(function () {
let curCommand = null;
let filter = null;
let filterHidden = false;
blurInit(
/**
* @implements {module:elem-get-set.elemInit}
*/
{
getCanvas () { return canvas; },
getCurCommand () { return curCommand; },
setCurCommand (value) { curCommand = value; },
getFilter () { return filter; },
setFilter (value) { filter = value; },
getFilterHidden () { return filterHidden; },
setFilterHidden (value) { filterHidden = value; },
changeSelectedAttributeNoUndoMethod,
changeSelectedAttributeMethod,
isWebkit,
addCommandToHistory,
getSelectedElements
}
);
/**
* Sets the `stdDeviation` blur value on the selected element without being undoable.
* @function module:svgcanvas.SvgCanvas#setBlurNoUndo
* @param {Float} val - The new `stdDeviation` value
* @returns {void}
*/
canvas.setBlurNoUndo = setBlurNoUndo;
/**
* Sets the `x`, `y`, `width`, `height` values of the filter element in order to
* make the blur not be clipped. Removes them if not neeeded.
* @function module:svgcanvas.SvgCanvas#setBlurOffsets
* @param {Element} filterElem - The filter DOM element to update
* @param {Float} stdDev - The standard deviation value on which to base the offset size
* @returns {void}
*/
canvas.setBlurOffsets = setBlurOffsets;
/**
* Adds/updates the blur filter to the selected element.
* @function module:svgcanvas.SvgCanvas#setBlur
* @param {Float} val - Float with the new `stdDeviation` blur value
* @param {boolean} complete - Whether or not the action should be completed (to add to the undo manager)
* @returns {void}
*/
canvas.setBlur = setBlur;
}());
/**
* Check whether selected element is bold or not.
* @function module:svgcanvas.SvgCanvas#getBold
* @returns {boolean} Indicates whether or not element is bold
*/
this.getBold = getBoldMethod;
/**
* Make the selected element bold or normal.
* @function module:svgcanvas.SvgCanvas#setBold
* @param {boolean} b - Indicates bold (`true`) or normal (`false`)
* @returns {void}
*/
this.setBold = setBoldMethod;
/**
* Check whether selected element is in italics or not.
* @function module:svgcanvas.SvgCanvas#getItalic
* @returns {boolean} Indicates whether or not element is italic
*/
this.getItalic = getItalicMethod;
/**
* Make the selected element italic or normal.
* @function module:svgcanvas.SvgCanvas#setItalic
* @param {boolean} i - Indicates italic (`true`) or normal (`false`)
* @returns {void}
*/
this.setItalic = setItalicMethod;
/**
* Check whether selected element has the given text decoration or not.
* @function module:svgcanvas.SvgCanvas#hasTextDecoration
* @param {string} value - The value that should be checked
* @returns {boolean} Indicates whether the element has the given text decoration
*/
this.hasTextDecoration = hasTextDecorationMethod;
/**
* Adds the given value to the text decoration.
* @function module:svgcanvas.SvgCanvas#addTextDecoration
* @param {string} value - The value that should be added
* @returns {void}
*/
this.addTextDecoration = addTextDecorationMethod;
/**
* Removes the given value from the text decoration.
* @function module:svgcanvas.SvgCanvas#removeTextDecoration
* @param {string} value - The value that should be removed
* @returns {void}
*/
this.removeTextDecoration = removeTextDecorationMethod;
/**
* Returns the letter spacing.
* @function module:svgcanvas.SvgCanvas#getLetterSpacing
* @param {string} value - The value that should be set
* @returns {string} The letter spacing value
*/
this.getLetterSpacing = getLetterSpacingMethod;
/**
* Changes the letter spacing.
* @function module:svgcanvas.SvgCanvas#setLetterSpacing
* @param {string} value - The value that should be set
* @returns {void}
*/
this.setLetterSpacing = setLetterSpacingMethod;
/**
* Returns the word spacing.
* @function module:svgcanvas.SvgCanvas#getWordSpacing
* @param {string} value - The value that should be set
* @returns {string} The word spacing value
*/
this.getWordSpacing = getWordSpacingMethod;
/**
* Changes the word spacing.
* @function module:svgcanvas.SvgCanvas#setWordSpacing
* @param {string} value - The value that should be set
* @returns {void}
*/
this.setWordSpacing = setWordSpacingMethod;
/**
* Returns the text length.
* @function module:svgcanvas.SvgCanvas#getTextLength
* @param {string} value - The value that should be set
* @returns {string} The text length value
*/
this.getTextLength = getTextLengthMethod;
/**
* Changes the text length.
* @function module:svgcanvas.SvgCanvas#setTextLength
* @param {string} value - The value that should be set
* @returns {void}
*/
this.setTextLength = setTextLengthMethod;
/**
* Returns the length adjust.
* @function module:svgcanvas.SvgCanvas#getLengthAdjust
* @param {string} value - The value that should be set
* @returns {string} The length adjust value
*/
this.getLengthAdjust = getLengthAdjustMethod;
/**
* Changes the length adjust.
* @function module:svgcanvas.SvgCanvas#setLengthAdjust
* @param {string} value - The value that should be set
* @returns {void}
*/
this.setLengthAdjust = setLengthAdjustMethod;
/**
* Set the new text anchor.
* @function module:svgcanvas.SvgCanvas#setTextAnchor
* @param {string} textAnchor - The value of the text anchor (start, middle or end)
* @returns {void}
*/
this.setTextAnchor = setTextAnchorMethod;
/**
* @function module:svgcanvas.SvgCanvas#getFontFamily
* @returns {string} The current font family
*/
this.getFontFamily = getFontFamilyMethod;
/**
* Set the new font family.
* @function module:svgcanvas.SvgCanvas#setFontFamily
* @param {string} val - String with the new font family
* @returns {void}
*/
this.setFontFamily = setFontFamilyMethod;
/**
* Set the new font color.
* @function module:svgcanvas.SvgCanvas#setFontColor
* @param {string} val - String with the new font color
* @returns {void}
*/
this.setFontColor = setFontColorMethod;
/**
* @function module:svgcanvas.SvgCanvas#getFontColor
* @returns {string} The current font color
*/
this.getFontColor = getFontColorMethod;
/**
* @function module:svgcanvas.SvgCanvas#getFontSize
* @returns {Float} The current font size
*/
this.getFontSize = getFontSizeMethod;
/**
* Applies the given font size to the selected element.
* @function module:svgcanvas.SvgCanvas#setFontSize
* @param {Float} val - Float with the new font size
* @returns {void}
*/
this.setFontSize = setFontSizeMethod;
/**
* @function module:svgcanvas.SvgCanvas#getText
* @returns {string} The current text (`textContent`) of the selected element
*/
this.getText = getTextMethod;
/**
* Updates the text element with the given string.
* @function module:svgcanvas.SvgCanvas#setTextContent
* @param {string} val - String with the new text
* @returns {void}
*/
this.setTextContent = setTextContentMethod;
/**
* Sets the new image URL for the selected image element. Updates its size if
* a new URL is given.
* @function module:svgcanvas.SvgCanvas#setImageURL
* @param {string} val - String with the image URL/path
* @fires module:svgcanvas.SvgCanvas#event:changed
* @returns {void}
*/
this.setImageURL = setImageURLMethod;
/**
* Sets the new link URL for the selected anchor element.
* @function module:svgcanvas.SvgCanvas#setLinkURL
* @param {string} val - String with the link URL/path
* @returns {void}
*/
this.setLinkURL = setLinkURLMethod;
/**
* Sets the `rx` and `ry` values to the selected `rect` element
* to change its corner radius.
* @function module:svgcanvas.SvgCanvas#setRectRadius
* @param {string|Float} val - The new radius
* @fires module:svgcanvas.SvgCanvas#event:changed
* @returns {void}
*/
this.setRectRadius = setRectRadiusMethod;
/**
* Wraps the selected element(s) in an anchor element or converts group to one.
* @function module:svgcanvas.SvgCanvas#makeHyperlink
* @param {string} url
* @returns {void}
*/
this.makeHyperlink = makeHyperlinkMethod;
/**
* @function module:svgcanvas.SvgCanvas#removeHyperlink
* @returns {void}
*/
this.removeHyperlink = removeHyperlinkMethod;
/**
* Group: Element manipulation.
*/
/**
* Sets the new segment type to the selected segment(s).
* @function module:svgcanvas.SvgCanvas#setSegType
* @param {Integer} newType - New segment type. See {@link https://www.w3.org/TR/SVG/paths.html#InterfaceSVGPathSeg} for list
* @returns {void}
*/
this.setSegType = setSegTypeMethod;
/**
* Convert selected element to a path, or get the BBox of an element-as-path.
* @function module:svgcanvas.SvgCanvas#convertToPath
* @todo (codedread): Remove the getBBox argument and split this function into two.
* @param {Element} elem - The DOM element to be converted
* @param {boolean} getBBox - Boolean on whether or not to only return the path's BBox
* @returns {void|DOMRect|false|SVGPathElement|null} If the getBBox flag is true, the resulting path's bounding box object.
* Otherwise the resulting path element is returned.
*/
this.convertToPath = function (elem, getBBox) {
if (isNullish(elem)) {
const elems = selectedElements;
$.each(elems, function (i, el) {
if (el) { canvas.convertToPath(el); }
});
return undefined;
}
if (getBBox) {
return getBBoxOfElementAsPath(elem, addSVGElementFromJson, pathActions);
}
// TODO: Why is this applying attributes from curShape, then inside utilities.convertToPath it's pulling addition attributes from elem?
// TODO: If convertToPath is called with one elem, curShape and elem are probably the same; but calling with multiple is a bug or cool feature.
const attrs = {
fill: curShape.fill,
'fill-opacity': curShape.fill_opacity,
stroke: curShape.stroke,
'stroke-width': curShape.stroke_width,
'stroke-dasharray': curShape.stroke_dasharray,
'stroke-linejoin': curShape.stroke_linejoin,
'stroke-linecap': curShape.stroke_linecap,
'stroke-opacity': curShape.stroke_opacity,
opacity: curShape.opacity,
visibility: 'hidden'
};
return convertToPath(
elem, attrs, addSVGElementFromJson, pathActions,
clearSelection, addToSelection, hstry, addCommandToHistory
);
};
/**
* This function makes the changes to the elements. It does not add the change
* to the history stack.
* @param {string} attr - Attribute name
* @param {string|Float} newValue - String or number with the new attribute value
* @param {Element[]} elems - The DOM elements to apply the change to
* @returns {void}
*/
const changeSelectedAttributeNoUndo = changeSelectedAttributeNoUndoMethod;
/**
* Change the given/selected element and add the original value to the history stack.
* If you want to change all `selectedElements`, ignore the `elems` argument.
* If you want to change only a subset of `selectedElements`, then send the
* subset to this function in the `elems` argument.
* @function module:svgcanvas.SvgCanvas#changeSelectedAttribute
* @param {string} attr - String with the attribute name
* @param {string|Float} val - String or number with the new attribute value
* @param {Element[]} elems - The DOM elements to apply the change to
* @returns {void}
*/
const changeSelectedAttribute = this.changeSelectedAttribute = changeSelectedAttributeMethod;
/**
* Initialize from select-elem.js.
* Send in an object implementing the ElementContainer interface (see select-elem.js).
*/
selectedElemInit(
/**
* @implements {module:selected-elem.elementContext}
*/
{
getSelectedElements,
addCommandToHistory,
getJsonFromSvgElement,
addSVGElementFromJson,
changeSelectedAttribute,
flashStorage,
call,
getIntersectionList,
setCurBBoxes (value) { curBBoxes = value; },
getSVGRoot,
gettingSelectorManager () { return selectorManager; },
getCurrentZoom,
getDrawing () { return getCurrentDrawing(); },
getCurrentGroup () { return currentGroup; },
addToSelection,
getContentW () { return canvas.contentW; },
getContentH () { return canvas.contentH; },
getClipboardID () { return CLIPBOARD_ID; },
getDOMDocument () { return svgdoc; },
clearSelection,
getNextId,
selectOnly,
uniquifyElems,
setUseData,
convertGradients,
getSVGContent,
getCanvas () { return canvas; },
getVisElems () { return visElems; }
}
);
/**
* Removes all selected elements from the DOM and adds the change to the
* history stack.
* @function module:svgcanvas.SvgCanvas#deleteSelectedElements
* @fires module:svgcanvas.SvgCanvas#event:changed
* @returns {void}
*/
this.deleteSelectedElements = deleteSelectedElements;
/**
* Removes all selected elements from the DOM and adds the change to the
* history stack. Remembers removed elements on the clipboard.
* @function module:svgcanvas.SvgCanvas#cutSelectedElements
* @returns {void}
*/
this.cutSelectedElements = function () {
canvas.copySelectedElements();
canvas.deleteSelectedElements();
};
const CLIPBOARD_ID = 'svgedit_clipboard';
/**
* Flash the clipboard data momentarily on localStorage so all tabs can see.
* @returns {void}
*/
function flashStorage () {
const data = sessionStorage.getItem(CLIPBOARD_ID);
localStorage.setItem(CLIPBOARD_ID, data);
setTimeout(function () {
localStorage.removeItem(CLIPBOARD_ID);
}, 1);
}
/**
* Transfers sessionStorage from one tab to another.
* @param {!Event} ev Storage event.
* @returns {void}
*/
function storageChange (ev) {
if (!ev.newValue) return; // This is a call from removeItem.
if (ev.key === CLIPBOARD_ID + '_startup') {
// Another tab asked for our sessionStorage.
localStorage.removeItem(CLIPBOARD_ID + '_startup');
flashStorage();
} else if (ev.key === CLIPBOARD_ID) {
// Another tab sent data.
sessionStorage.setItem(CLIPBOARD_ID, ev.newValue);
}
}
// Listen for changes to localStorage.
window.addEventListener('storage', storageChange, false);
// Ask other tabs for sessionStorage (this is ONLY to trigger event).
localStorage.setItem(CLIPBOARD_ID + '_startup', Math.random());
/**
* Remembers the current selected elements on the clipboard.
* @function module:svgcanvas.SvgCanvas#copySelectedElements
* @returns {void}
*/
this.copySelectedElements = copySelectedElements;
/**
* @function pasteInit Initialize from paste-elem.js.
* @returns {void}
* paste element functionality
*/
pasteInit(
/**
* @implements {module:event.eventContext_}
*/
{
getCanvas () { return canvas; },
getClipBoardID () { return CLIPBOARD_ID; },
getLastClickPoint (key) { return lastClickPoint[key]; },
addCommandToHistory,
restoreRefElems
}
);
/**
* @function module:svgcanvas.SvgCanvas#pasteElements
* @param {"in_place"|"point"|void} type
* @param {Integer|void} x Expected if type is "point"
* @param {Integer|void} y Expected if type is "point"
* @fires module:svgcanvas.SvgCanvas#event:changed
* @fires module:svgcanvas.SvgCanvas#event:ext_IDsUpdated
* @returns {void}
*/
this.pasteElements = pasteElementsMethod;
/**
* Wraps all the selected elements in a group (`g`) element.
* @function module:svgcanvas.SvgCanvas#groupSelectedElements
* @param {"a"|"g"} [type="g"] - type of element to group into, defaults to `<g>`
* @param {string} [urlArg]
* @returns {void}
*/
this.groupSelectedElements = groupSelectedElements;
/**
* Pushes all appropriate parent group properties down to its children, then
* removes them from the group.
* @function module:svgcanvas.SvgCanvas#pushGroupProperties
* @param {SVGAElement|SVGGElement} g
* @param {boolean} undoable
* @returns {BatchCommand|void}
*/
this.pushGroupProperties = pushGroupProperty;
/**
* Unwraps all the elements in a selected group (`g`) element. This requires
* significant recalculations to apply group's transforms, etc. to its children.
* @function module:svgcanvas.SvgCanvas#ungroupSelectedElement
* @returns {void}
*/
this.ungroupSelectedElement = ungroupSelectedElement;
/**
* Repositions the selected element to the bottom in the DOM to appear on top of
* other elements.
* @function module:svgcanvas.SvgCanvas#moveToTopSelectedElement
* @fires module:svgcanvas.SvgCanvas#event:changed
* @returns {void}
*/
this.moveToTopSelectedElement = moveToTopSelectedElem;
/**
* Repositions the selected element to the top in the DOM to appear under
* other elements.
* @function module:svgcanvas.SvgCanvas#moveToBottomSelectedElement
* @fires module:svgcanvas.SvgCanvas#event:changed
* @returns {void}
*/
this.moveToBottomSelectedElement = moveToBottomSelectedElem;
/**
* Moves the select element up or down the stack, based on the visibly
* intersecting elements.
* @function module:svgcanvas.SvgCanvas#moveUpDownSelected
* @param {"Up"|"Down"} dir - String that's either 'Up' or 'Down'
* @fires module:svgcanvas.SvgCanvas#event:changed
* @returns {void}
*/
this.moveUpDownSelected = moveUpDownSelected;
/**
* Moves selected elements on the X/Y axis.
* @function module:svgcanvas.SvgCanvas#moveSelectedElements
* @param {Float} dx - Float with the distance to move on the x-axis
* @param {Float} dy - Float with the distance to move on the y-axis
* @param {boolean} undoable - Boolean indicating whether or not the action should be undoable
* @fires module:svgcanvas.SvgCanvas#event:changed
* @returns {BatchCommand|void} Batch command for the move
*/
this.moveSelectedElements = moveSelectedElements;
/**
* Create deep DOM copies (clones) of all selected elements and move them slightly
* from their originals.
* @function module:svgcanvas.SvgCanvas#cloneSelectedElements
* @param {Float} x Float with the distance to move on the x-axis
* @param {Float} y Float with the distance to move on the y-axis
* @returns {void}
*/
this.cloneSelectedElements = cloneSelectedElements;
/**
* Aligns selected elements.
* @function module:svgcanvas.SvgCanvas#alignSelectedElements
* @param {string} type - String with single character indicating the alignment type
* @param {"selected"|"largest"|"smallest"|"page"} relativeTo
* @returns {void}
*/
this.alignSelectedElements = alignSelectedElements;
/**
* Group: Additional editor tools.
*/
/**
* @name module:svgcanvas.SvgCanvas#contentW
* @type {Float}
*/
this.contentW = getResolution().w;
/**
* @name module:svgcanvas.SvgCanvas#contentH
* @type {Float}
*/
this.contentH = getResolution().h;
/**
* @typedef {PlainObject} module:svgcanvas.CanvasInfo
* @property {Float} x - The canvas' new x coordinate
* @property {Float} y - The canvas' new y coordinate
* @property {string} oldX - The canvas' old x coordinate
* @property {string} oldY - The canvas' old y coordinate
* @property {Float} d_x - The x position difference
* @property {Float} d_y - The y position difference
*/
/**
* Updates the editor canvas width/height/position after a zoom has occurred.
* @function module:svgcanvas.SvgCanvas#updateCanvas
* @param {Float} w - Float with the new width
* @param {Float} h - Float with the new height
* @fires module:svgcanvas.SvgCanvas#event:ext_canvasUpdated
* @returns {module:svgcanvas.CanvasInfo}
*/
this.updateCanvas = updateCanvas;
/**
* Set the background of the editor (NOT the actual document).
* @function module:svgcanvas.SvgCanvas#setBackground
* @param {string} color - String with fill color to apply
* @param {string} url - URL or path to image to use
* @returns {void}
*/
this.setBackground = setBackgroundMethod;
/**
* Select the next/previous element within the current layer.
* @function module:svgcanvas.SvgCanvas#cycleElement
* @param {boolean} next - true = next and false = previous element
* @fires module:svgcanvas.SvgCanvas#event:selected
* @returns {void}
*/
this.cycleElement = cycleElement;
this.clear();
/**
* @interface module:svgcanvas.PrivateMethods
* @type {PlainObject}
* @property {module:svgcanvas~addCommandToHistory} addCommandToHistory
* @property {module:history.HistoryCommand} BatchCommand
* @property {module:history.HistoryCommand} ChangeElementCommand
* @property {module:utilities.decode64} decode64
* @property {module:utilities.dropXMLInternalSubset} dropXMLInternalSubset
* @property {module:utilities.encode64} encode64
* @property {module:svgcanvas~ffClone} ffClone
* @property {module:svgcanvas~findDuplicateGradient} findDuplicateGradient
* @property {module:utilities.getPathBBox} getPathBBox
* @property {module:units.getTypeMap} getTypeMap
* @property {module:draw.identifyLayers} identifyLayers
* @property {module:history.HistoryCommand} InsertElementCommand
* @property {module:browser.isChrome} isChrome
* @property {module:math.isIdentity} isIdentity
* @property {module:browser.isIE} isIE
* @property {module:svgcanvas~logMatrix} logMatrix
* @property {module:history.HistoryCommand} MoveElementCommand
* @property {module:namespaces.NS} NS
* @property {module:utilities.preventClickDefault} preventClickDefault
* @property {module:history.HistoryCommand} RemoveElementCommand
* @property {module:SVGTransformList.SVGEditTransformList} SVGEditTransformList
* @property {module:utilities.text2xml} text2xml
* @property {module:math.transformBox} transformBox
* @property {module:math.transformPoint} transformPoint
* @property {module:utilities.walkTree} walkTree
*/
/**
* @deprecated getPrivateMethods
* Since all methods are/should be public somehow, this function should be removed;
* we might require `import` in place of this in the future once ES6 Modules
* widespread
* Being able to access private methods publicly seems wrong somehow,
* but currently appears to be the best way to allow testing and provide
* access to them to plugins.
* @function module:svgcanvas.SvgCanvas#getPrivateMethods
* @returns {module:svgcanvas.PrivateMethods}
*/
this.getPrivateMethods = function () {
const obj = {
addCommandToHistory,
BatchCommand,
ChangeElementCommand,
decode64,
dropXMLInternalSubset,
encode64,
ffClone,
findDefs,
findDuplicateGradient,
getElem,
getPathBBox,
getTypeMap,
getUrlFromAttr,
identifyLayers: draw.identifyLayers,
InsertElementCommand,
isChrome,
isIdentity,
isIE,
logMatrix,
MoveElementCommand,
NS,
preventClickDefault,
RemoveElementCommand,
SVGEditTransformList,
text2xml,
transformBox,
transformPoint,
walkTree
};
return obj;
};
} // End constructor
} // End class
export default SvgCanvas;
|
// @flow
import { buildExchangeRates } from '../Core/selectors.js'
import type { Dispatch, GetState } from '../ReduxTypes.js'
export const updateExchangeRates = () => async (dispatch: Dispatch, getState: GetState) => {
const state = getState()
const exchangeRates = await buildExchangeRates(state)
dispatch({
type: 'EXCHANGE_RATES/UPDATE_EXCHANGE_RATES',
data: { exchangeRates }
})
}
|
module.exports = {
redirects: [
{
source: "/contributors/form",
destination:
"https://docs.google.com/forms/d/e/1FAIpQLSe-YqgNrgjPKW2EsrJAGSuwWuSq8lC7LVhVgQ_DYNeKm3m38A/viewform",
permanent: false,
},
{
source: "/translation-form",
destination:
"https://docs.google.com/forms/d/11OymP2TZsyjOfcNYbUV3XHsNAEsRMUlAiZz5ozeIQgg/viewform",
permanent: false,
},
{
source: "/online-events",
destination:
"https://calendar.google.com/calendar/embed?src=8foc89p19god8uqdtg1828hrhs%40group.calendar.google.com&ctz=Australia%2FSydney",
permanent: false,
},
{
source: "/foundation/constitution.pdf",
destination:
"https://github.com/Couchers-org/couchers/raw/develop/foundation/constitution/constitution.pdf",
permanent: false,
},
{
source: "/contributors/backend-meeting.ics",
destination:
"https://github.com/Couchers-org/couchers/raw/develop/docs/meetings/backend-meeting.ics",
permanent: false,
},
{
source: "/contributors/web-meeting.ics",
destination:
"https://github.com/Couchers-org/couchers/raw/develop/docs/meetings/web-meeting.ics",
permanent: false,
},
{
source: "/contributors/product-meeting.ics",
destination:
"https://github.com/Couchers-org/couchers/raw/develop/docs/meetings/product-meeting.ics",
permanent: false,
},
{
source: "/contributors/guide.pdf",
destination: "https://couchers.org/contributors/guide/",
permanent: false,
},
{
source: "/contributors/caa.pdf",
destination: "https://couchers.org/contributors/caa/",
permanent: false,
},
{
source: "/community-builder-form",
destination:
"https://docs.google.com/forms/d/e/1FAIpQLSeactITjrAUVjUg80gFIjxweK3-oPsgwoBmaAe0RJcjdL2xGw/viewform",
permanent: false,
},
{
source: "/community-builder-chat",
destination: "https://calendly.com/couchers/community-builder-chat",
permanent: false,
},
{
source: "/backend-developer-chat",
destination: "https://calendly.com/couchers/backend-developer-chat",
permanent: false,
},
{
source: "/chat-aapeli",
destination: "https://calendly.com/couchers/backend-developer-chat",
permanent: false,
},
{
source: "/chat-itsi",
destination: "https://calendly.com/couchers/chat-with-itsi",
permanent: false,
},
{
source: "/frontend-developer-chat",
destination: "https://calendly.com/couchers/frontend-developer-chat",
permanent: false,
},
{
source: "/chat-translations",
destination: "https://calendly.com/couchers/translation-chat",
permanent: false,
},
{
source: "/community-creation-form",
destination:
"https://docs.google.com/forms/d/e/1FAIpQLSdM4J8QxlTH8fF4HF_SNeA8hsuq-iz0Hx-qVF1VYVNcKpI2pQ/viewform",
permanent: false,
},
{ source: "/solutions", destination: "/plan", permanent: true },
{
source: "/solutions/profit-and-incentives",
destination: "/plan/profit-and-incentives",
permanent: true,
},
{
source: "/solutions/communities-and-trust",
destination: "/plan/communities-and-trust",
permanent: true,
},
{
source: "/solutions/creeps-and-freeloaders",
destination: "/plan/creeps-and-freeloaders",
permanent: true,
},
{
source: "/solutions/reviews",
destination: "/plan/reviews",
permanent: true,
},
{
source: "/solutions/host-matching",
destination: "/plan/host-matching",
permanent: true,
},
{
source: "/solutions/the-build",
destination: "/plan/the-build",
permanent: true,
},
{
source: "/weekly-social",
destination:
"https://zoom.us/j/2482842880?pwd=UWxJWFQvZ0xpOTN1SlE4aFcxS3JPUT09",
permanent: false,
},
{
source: "/town-hall",
destination:
"https://zoom.us/j/2482842880?pwd=UWxJWFQvZ0xpOTN1SlE4aFcxS3JPUT09",
permanent: false,
},
{
source: "/zoom",
destination:
"https://zoom.us/j/2482842880?pwd=UWxJWFQvZ0xpOTN1SlE4aFcxS3JPUT09",
permanent: false,
},
{
source: "/zoom/general",
destination:
"https://zoom.us/j/2482842880?pwd=UWxJWFQvZ0xpOTN1SlE4aFcxS3JPUT09",
permanent: false,
},
{
source: "/zoom/recruiting",
destination:
"https://zoom.us/j/2482842881?pwd=NWt3dit6cXRvbmcycUt0Mm1TMVdydz09",
permanent: false,
},
],
};
|
export default {
title: 'Components/Message Strip',
parameters: {
description: `The message strip displays information bars with semantic colors and icons, indicating different levels of urgency and/or action required by the user. The message strip is fully responsive, with an icon and close button on opposite sides of the message text. Text and links behave differently, and wrap if space is limited.
**The following semantic types are available:**
- Information
- Warning
- Error
- Success
##Usage
**Use the message strip if:**
- You want to provide information within the detail area of an object.
- You want to inform your user about a status of an object.
- You want to warn your user about an issue.
**Do not use the message strip if:**
- You want to display information within the object page header, a control, in the master list, or above the page header.
`,
tags: ['f3', 'a11y', 'theme'],
components: ['button', 'message-strip', 'icon']
}
};
const messageStripHeight = 64;
export const defaultStrip = () => `<div class="fd-message-strip fd-message-strip--dismissible" role="alert" id="ZvPBg609" >
<p class="fd-message-strip__text">
Vivamus sagittis diam in vehicula lobortis sapien arcu mattis erat vel aliquet sem urna et.
</p>
<button class="fd-button fd-button--transparent fd-button--compact fd-message-strip__close" aria-controls="ZvPBg609" aria-label="Close">
<i class="sap-icon--decline"></i>
</button>
</div>
`;
defaultStrip.storyName = 'Default';
defaultStrip.parameters = {
docs: {
iframeHeight: messageStripHeight,
storyDescription: `
The default message strip can be used for general messages that don’t fit into any of the semantic type use cases. The user should be able to dismiss the message strip (in most cases), so be sure to include the close button and add the <code>fd-message-strip--dismissible</code> modifier class to the main element.
`
}
};
export const information = () => `<div class="fd-message-strip fd-message-strip--information fd-message-strip--dismissible" role="alert" id="JwPcf464" >
<p class="fd-message-strip__text">
Vivamus sagittis diam in vehicula lobortis sapien arcu mattis erat vel aliquet sem urna et.
</p>
<button class="fd-button fd-button--transparent fd-button--compact fd-message-strip__close" aria-controls="JwPcf464" aria-label="Close">
<i class="sap-icon--decline"></i>
</button>
</div>
`;
information.storyName = 'Information';
information.parameters = {
docs: {
iframeHeight: messageStripHeight,
storyDescription: 'The information message strip simply relays useful information to the users. To display an information message strip, add the <code>fd-message-strip--information</code> modifier class to the main element.'
}
};
export const success = () => `<div class="fd-message-strip fd-message-strip--success fd-message-strip--dismissible" role="alert" id="ulr5z216">
<p class="fd-message-strip__text">
Vivamus sagittis diam in vehicula lobortis sapien arcu mattis erat vel aliquet sem urna et.
</p>
<button class="fd-button fd-button--transparent fd-button--compact fd-message-strip__close" aria-controls="ulr5z216" aria-label="Close">
<i class="sap-icon--decline"></i>
</button>
</div>
`;
success.storyName = 'Success';
success.parameters = {
docs: {
iframeHeight: messageStripHeight,
storyDescription: 'The success message strip communicates to the user that an action they’ve completed was successful. To display a success message strip, add the <code>fd-message-strip--success</code> modifier class to the main element.'
}
};
export const warning = () => `<div class="fd-message-strip fd-message-strip--warning fd-message-strip--dismissible" role="alert" id="fwYq4606">
<p class="fd-message-strip__text">
Vivamus sagittis diam in vehicula lobortis sapien arcu mattis erat vel aliquet sem urna et.
</p>
<button class="fd-button fd-button--transparent fd-button--compact fd-message-strip__close" aria-controls="fwYq4606" aria-label="Close">
<i class="sap-icon--decline"></i>
</button>
</div>
`;
warning.storyName = 'Warning';
warning.parameters = {
docs: {
iframeHeight: messageStripHeight,
storyDescription: `
The warning message strip warns the user of potential issues; however, the user can still dismiss the message and continue. To display a warning message strip, add the <code>fd-message-strip--warning</code> modifier class to the main element.
`
}
};
export const error = () => `<div class="fd-message-strip fd-message-strip--error fd-message-strip--dismissible" role="alert" id="SsoiW591">
<p class="fd-message-strip__text">
Vivamus sagittis diam in vehicula lobortis sapien arcu mattis erat vel aliquet sem urna et.
</p>
<button class="fd-button fd-button--transparent fd-button--compact fd-message-strip__close" aria-controls="SsoiW591" aria-label="Close">
<i class="sap-icon--decline"></i>
</button>
</div>
`;
error.storyName = 'Error';
error.parameters = {
docs: {
iframeHeight: messageStripHeight,
storyDescription: `
The error message strip is triggered after the user enters data incorrectly or when a system error occurs. It should interrupt the user, blocking them from performing any final actions (such as _Submit_) until the error has been rectified. To display the error message strip, add the <code>fd-message-strip--error</code> modifier class to the main element.
`
}
};
export const noIcons = () => `<div class="fd-message-strip fd-message-strip--information fd-message-strip--no-icon fd-message-strip--dismissible"
role="alert" id="SsoiW592">
<p class="fd-message-strip__text">
Vivamus sagittis diam in vehicula lobortis sapien arcu mattis erat vel aliquet sem urna et.
</p>
<button class="fd-button fd-button--transparent fd-button--compact fd-message-strip__close" aria-controls="SsoiW592" aria-label="Close">
<i class="sap-icon--decline"></i>
</button>
</div>
<br />
<div class="fd-message-strip fd-message-strip--success fd-message-strip--no-icon fd-message-strip--dismissible"
role="alert" id="SsoiW593">
<p class="fd-message-strip__text">
Vivamus sagittis diam in vehicula lobortis sapien arcu mattis erat vel aliquet sem urna et.
</p>
<button class="fd-button fd-button--transparent fd-button--compact fd-message-strip__close" aria-controls="SsoiW593" aria-label="Close">
<i class="sap-icon--decline"></i>
</button>
</div>
<br />
<div class="fd-message-strip fd-message-strip--warning fd-message-strip--no-icon fd-message-strip--dismissible"
role="alert" id="SsoiW594">
<p class="fd-message-strip__text">
Vivamus sagittis diam in vehicula lobortis sapien arcu mattis erat vel aliquet sem urna et.
</p>
<button class="fd-button fd-button--transparent fd-button--compact fd-message-strip__close" aria-controls="SsoiW594" aria-label="Close">
<i class="sap-icon--decline"></i>
</button>
</div>
<br />
<div class="fd-message-strip fd-message-strip--error fd-message-strip--no-icon fd-message-strip--dismissible"
role="alert" id="SsoiW595">
<p class="fd-message-strip__text">
Vivamus sagittis diam in vehicula lobortis sapien arcu mattis erat vel aliquet sem urna et.
</p>
<button class="fd-button fd-button--transparent fd-button--compact fd-message-strip__close" aria-controls="SsoiW595" aria-label="Close">
<i class="sap-icon--decline"></i>
</button>
</div>
`;
noIcons.storyName = 'No icon';
noIcons.parameters = {
docs: {
iframeHeight: messageStripHeight * 4,
storyDescription: 'To display message strip without an icon, add the <code>fd-message-strip--no-icon</code> modifier class to the main element.'
}
};
|
const COUNTRY_CODE_REQUEST_HEADER_NAME = 'CF-IPCountry';
const EUROPEAN_UNION_COUNTRY_CODES = [
'AT', 'IT', 'BE', 'LV', 'BG', 'LT', 'HR', 'LU', 'CY', 'MT', 'CZ', 'NL', 'DK',
'PL', 'EE', 'PT', 'FI', 'RO', 'FR', 'SK', 'DE', 'SI', 'EL', 'ES', 'HU', 'SE',
'IE', 'UK', 'GB',
];
const UNDETERMINED_COUNTRY_CODE = 'XX';
export const inEuropeanUnion = countryCode =>
countryCode === UNDETERMINED_COUNTRY_CODE || EUROPEAN_UNION_COUNTRY_CODES.includes(countryCode);
export default function userLocation(req, _, next) {
const countryCode =
req.headers[COUNTRY_CODE_REQUEST_HEADER_NAME]
|| req.headers[COUNTRY_CODE_REQUEST_HEADER_NAME.toLowerCase()]
|| req.headers[COUNTRY_CODE_REQUEST_HEADER_NAME.toUpperCase()]
|| UNDETERMINED_COUNTRY_CODE;
req.userLocation = {
countryCode,
inEuropeanUnion: inEuropeanUnion(countryCode),
};
next();
}
|
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
*/
'use strict';
const path = require('path');
const fs = require('fs');
const cp = require('child_process');
const jscodeshiftFlowParser = require('jscodeshift/parser/flow');
const jscodeshift = require('jscodeshift').withParser('flow');
const transform = require('../codemod');
const FIXTURES_DIR = path.join(__dirname, './fixtures');
fs.readdirSync(FIXTURES_DIR).forEach(fixture => {
test(fixture, () => {
const file = path.join(FIXTURES_DIR, fixture);
const source = fs.readFileSync(file, 'utf8');
const root = jscodeshift(source);
const skipped = !transform(jscodeshift, root);
expect(skipped ? null : root.toSource()).toMatchSnapshot();
});
});
|
const HtmlWebpackPlugin = require('html-webpack-plugin')
const { CleanWebpackPlugin } = require('clean-webpack-plugin')
const CopyWebpackPlugin = require('copy-webpack-plugin')
const path = require('path')
const targetFolderName = 'dist'
const outputPath = path.resolve(__dirname, targetFolderName)
const packageJSON = require('./package.json')
module.exports = {
mode: 'development',
entry: {
app: packageJSON.main
},
devServer: {
static: outputPath,
compress: true,
},
resolve: {
modules: [
path.resolve('./src'),
path.resolve('./node_modules')
],
extensions: ['.js']
},
output: {
filename: 'js/[name].[contenthash].bundle.js',
chunkFilename: 'js/[name].[contenthash].bundle.js',
path: outputPath
},
optimization: {
splitChunks: {
chunks: 'all',
cacheGroups: {
// make separate 'vendor' chunk that contains any dependencies
// allows for smaller file sizes and faster builds
vendor: {
test: /[\\/]node_modules[\\/]/,
chunks: 'initial',
name: 'vendor',
priority: -10,
reuseExistingChunk: true,
},
}
},
runtimeChunk: 'single'
},
plugins: [
new CleanWebpackPlugin(),
new HtmlWebpackPlugin({
title: "app",
filename: path.resolve(__dirname, 'dist', 'index.html')
}),
new CopyWebpackPlugin({
patterns: [
{ from: './assets/**/*', to: `./examples/assets/${packageJSON.lightningChart.eID}/[name][ext]`, noErrorOnMissing: true },
{ from: './node_modules/@arction/lcjs/dist/resources', to: 'resources', noErrorOnMissing: true },
]
})
]
}
|
webpackHotUpdate("main",{
/***/ "./frontend/src/containers/LandingPage.js":
/*!************************************************!*\
!*** ./frontend/src/containers/LandingPage.js ***!
\************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var reactstrap__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! reactstrap */ \"./node_modules/reactstrap/dist/reactstrap.module.js\");\n/* harmony import */ var react_redux__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react-redux */ \"./node_modules/react-redux/es/index.js\");\n/* harmony import */ var _redux_example__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../redux/example */ \"./frontend/src/redux/example.js\");\nvar _dec, _class;\n\nfunction _typeof(obj) { if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n\n\n\n\nvar LandingPage = (_dec = Object(react_redux__WEBPACK_IMPORTED_MODULE_2__[\"connect\"])(function (store) {\n return {\n // linking the redux store with this component\n examples: store.example.exampleList\n };\n}), _dec(_class =\n/*#__PURE__*/\nfunction (_React$Component) {\n _inherits(LandingPage, _React$Component);\n\n function LandingPage() {\n _classCallCheck(this, LandingPage);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(LandingPage).apply(this, arguments));\n }\n\n _createClass(LandingPage, [{\n key: \"componentDidMount\",\n value: function componentDidMount() {\n this.props.dispatch(Object(_redux_example__WEBPACK_IMPORTED_MODULE_3__[\"getExamples\"])());\n }\n }, {\n key: \"pageHeader\",\n value: function pageHeader() {\n var pageHeader = react__WEBPACK_IMPORTED_MODULE_0___default.a.createRef();\n return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_0___default.a.Fragment, null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(\"div\", {\n style: {\n backgroundColor: \"black\",\n //backgroundImage:\n // \"url(\" + backgroundImageUrl + \")\",\n minHeight: \"30vh\",\n maxHeight: \"120px\",\n overflow: \"hidden\",\n position: \"relative\",\n width: \"100%\",\n zIndex: \"1\",\n display: \"flex\"\n },\n \"data-parallax\": true,\n ref: pageHeader\n }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(reactstrap__WEBPACK_IMPORTED_MODULE_1__[\"Row\"], {\n className: \"mx-auto text-center\"\n }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(reactstrap__WEBPACK_IMPORTED_MODULE_1__[\"Col\"], {\n sm: \"10\",\n md: \"10\",\n lg: \"9\",\n xl: \"9\"\n }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(reactstrap__WEBPACK_IMPORTED_MODULE_1__[\"Row\"], null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(reactstrap__WEBPACK_IMPORTED_MODULE_1__[\"Col\"], {\n sm: \"6\",\n md: \"6\",\n lg: \"6\",\n xl: \"6\"\n }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(\"span\", {\n style: {\n color: \"white\",\n fontSize: \"30px\",\n fontWeight: \"500px\"\n }\n }, \"Accentron\")), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(reactstrap__WEBPACK_IMPORTED_MODULE_1__[\"Col\"], {\n sm: \"6\",\n md: \"6\",\n lg: \"6\",\n xl: \"6\"\n }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(\"span\", {\n style: {\n color: \"white\",\n fontSize: \"30px\",\n fontWeight: \"500px\"\n }\n }, \"Accent Conversion\")))))));\n }\n }, {\n key: \"render\",\n value: function render() {\n return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_0___default.a.Fragment, null, this.pageHeader());\n }\n }]);\n\n return LandingPage;\n}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component)) || _class);\n/* harmony default export */ __webpack_exports__[\"default\"] = (LandingPage);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9mcm9udGVuZC9zcmMvY29udGFpbmVycy9MYW5kaW5nUGFnZS5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL2Zyb250ZW5kL3NyYy9jb250YWluZXJzL0xhbmRpbmdQYWdlLmpzPzY1NjQiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IFJlYWN0IGZyb20gXCJyZWFjdFwiXG5pbXBvcnQgeyBCdXR0b24sIENvbnRhaW5lciwgQ29sLCBSb3cgfSBmcm9tIFwicmVhY3RzdHJhcFwiO1xuaW1wb3J0IHsgY29ubmVjdCB9IGZyb20gXCJyZWFjdC1yZWR1eFwiXG5pbXBvcnQgeyBnZXRFeGFtcGxlcyB9IGZyb20gXCIuLi9yZWR1eC9leGFtcGxlXCJcblxuQGNvbm5lY3Qoc3RvcmUgPT4gKHtcbiAgICAvLyBsaW5raW5nIHRoZSByZWR1eCBzdG9yZSB3aXRoIHRoaXMgY29tcG9uZW50XG4gICAgZXhhbXBsZXM6IHN0b3JlLmV4YW1wbGUuZXhhbXBsZUxpc3QsXG59KSlcblxuY2xhc3MgTGFuZGluZ1BhZ2UgZXh0ZW5kcyBSZWFjdC5Db21wb25lbnQge1xuXG4gICAgY29tcG9uZW50RGlkTW91bnQoKSB7XG4gICAgICAgIHRoaXMucHJvcHMuZGlzcGF0Y2goZ2V0RXhhbXBsZXMoKSlcbiAgICB9XG5cbiAgICBwYWdlSGVhZGVyKCl7XG4gICAgICAgIGxldCBwYWdlSGVhZGVyID0gUmVhY3QuY3JlYXRlUmVmKCk7XG4gICAgICAgIHJldHVybihcbiAgICAgICAgICAgIDw+XG4gICAgICAgICAgICAgICAgPGRpdlxuICAgICAgICAgICAgICAgICAgICBzdHlsZT17e1xuICAgICAgICAgICAgICAgICAgICAgICAgYmFja2dyb3VuZENvbG9yOlwiYmxhY2tcIixcbiAgICAgICAgICAgICAgICAgICAgICAgIC8vYmFja2dyb3VuZEltYWdlOlxuICAgICAgICAgICAgICAgICAgICAgICAgLy8gIFwidXJsKFwiICsgYmFja2dyb3VuZEltYWdlVXJsICsgXCIpXCIsXG4gICAgICAgICAgICAgICAgICAgICAgICBtaW5IZWlnaHQ6IFwiMzB2aFwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgbWF4SGVpZ2h0OiBcIjEyMHB4XCIsXG4gICAgICAgICAgICAgICAgICAgICAgICBvdmVyZmxvdzogXCJoaWRkZW5cIixcbiAgICAgICAgICAgICAgICAgICAgICAgIHBvc2l0aW9uOiBcInJlbGF0aXZlXCIsXG4gICAgICAgICAgICAgICAgICAgICAgICB3aWR0aDogXCIxMDAlXCIsXG4gICAgICAgICAgICAgICAgICAgICAgICB6SW5kZXg6IFwiMVwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgZGlzcGxheTogXCJmbGV4XCJcbiAgICAgICAgICAgICAgICAgICAgfX1cbiAgICAgICAgICAgICAgICAgICAgZGF0YS1wYXJhbGxheD17dHJ1ZX1cbiAgICAgICAgICAgICAgICAgICAgcmVmPXtwYWdlSGVhZGVyfVxuICAgICAgICAgICAgICAgID5cbiAgICAgICAgICAgICAgICAgICAgPFJvdyBjbGFzc05hbWU9XCJteC1hdXRvIHRleHQtY2VudGVyXCI+XG4gICAgICAgICAgICAgICAgICAgICAgICA8Q29sIHNtPVwiMTBcIiBtZD1cIjEwXCIgbGc9XCI5XCIgeGw9XCI5XCI+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPFJvdz5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPENvbCBzbT1cIjZcIiBtZD1cIjZcIiBsZz1cIjZcIiB4bD1cIjZcIj5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxzcGFuIHN0eWxlPXt7Y29sb3I6IFwid2hpdGVcIiwgZm9udFNpemU6XCIzMHB4XCIsIGZvbnRXZWlnaHQ6XCI1MDBweFwifX0+QWNjZW50cm9uPC9zcGFuPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L0NvbD5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPENvbCBzbT1cIjZcIiBtZD1cIjZcIiBsZz1cIjZcIiB4bD1cIjZcIj5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxzcGFuIHN0eWxlPXt7Y29sb3I6IFwid2hpdGVcIiwgZm9udFNpemU6XCIzMHB4XCIsIGZvbnRXZWlnaHQ6XCI1MDBweFwifX0+QWNjZW50IENvbnZlcnNpb248L3NwYW4+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvQ29sPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvUm93PlxuICAgICAgICAgICAgICAgICAgICAgICAgPC9Db2w+XG4gICAgICAgICAgICAgICAgICAgIDwvUm93PlxuICAgICAgICAgICAgICAgIDwvZGl2PlxuXG4gICAgICAgICAgICA8Lz5cbiAgICAgICAgKVxuICAgIH1cblxuICAgIHJlbmRlcigpIHtcbiAgICAgICAgcmV0dXJuIChcbiAgICAgICAgICAgIDw+XG4gICAgICAgICAgICAgICAge3RoaXMucGFnZUhlYWRlcigpfVxuXG4gICAgICAgICAgICA8Lz5cbiAgICAgICAgKVxuICAgIH1cbn1cblxuZXhwb3J0IGRlZmF1bHQgTGFuZGluZ1BhZ2VcbiJdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQU9BO0FBTEE7QUFDQTtBQUNBO0FBRkE7QUFBQTs7Ozs7Ozs7Ozs7OztBQU9BO0FBQ0E7QUFDQTs7O0FBRUE7QUFDQTtBQUNBO0FBR0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQVZBO0FBWUE7QUFDQTtBQWRBO0FBZ0JBO0FBQUE7QUFDQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBRUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUNBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUVBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFDQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFTQTs7O0FBRUE7QUFDQTtBQU1BOzs7O0FBbkRBO0FBc0RBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./frontend/src/containers/LandingPage.js\n");
/***/ })
})
|
/*
数码加购京豆
脚本会给内置的码进行助力
共计25京豆,一天运行一次即可
活动时间:2020-12-4 到 2020-12-11
活动入口:https://prodev.m.jd.com/mall/active/nKxVyPnuLwAsQSTfidZ9z4RKVZy/index.html#/
更新地址:jd_digital_floor.js
已支持IOS双京东账号, Node.js支持N个京东账号
脚本兼容: QuantumultX, Surge, Loon, 小火箭,JSBox, Node.js
============Quantumultx===============
[task_local]
#数码加购京豆
10 7 * * * jd_digital_floor.js, tag=数码加购京豆, img-url=https://raw.githubusercontent.com/58xinian/icon/master/jd_redPacket.png, enabled=true
================Loon==============
[Script]
cron "10 7 * * *" script-path=jd_digital_floor.js, tag=数码加购京豆
===============Surge=================
数码加购京豆 = type=cron,cronexp="10 7 * * *",wake-system=1,timeout=3600,script-path=jd_digital_floor.js
============小火箭=========
数码加购京豆 = type=cron,script-path=jd_digital_floor.js, cronexpr="10 7 * * *", timeout=3600, enable=true
*/
const $ = new Env('数码加购京豆');
const notify = $.isNode() ? require('../sendNotify') : '';
//Node.js用户请在jdCookie.js处填写京东ck;
const jdCookieNode = $.isNode() ? require('../jdCookie.js') : '';
const jdNotify = $.isNode() && process.env.JD_CLOSE_NOTIFY && process.env.JD_CLOSE_NOTIFY == "true" ? true : false;//是否关闭通知,false打开通知推送,true关闭通知推送
const randomCount = $.isNode() ? 20 : 5;
const inviteCodes = [`40cd108f-9eed-4897-b795-45a5b221cd6b@49efb480-d6d7-456b-a4e0-14b170b161e0@`,'9d4262a5-1a02-4ae7-8a86-8d070d531464@687b14e0-ce0a-45eb-bf46-71aa0da05f18'];
//IOS等用户直接用NobyDa的jd cookie
let cookiesArr = [], cookie = '', message;
if ($.isNode()) {
Object.keys(jdCookieNode).forEach((item) => {
cookiesArr.push(jdCookieNode[item])
})
if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {};
} else {
cookiesArr = [$.getdata('CookieJD'), $.getdata('CookieJD2'), ...jsonParse($.getdata('CookiesJD') || "[]").map(item => item.cookie)].filter(item => !!item);
}
const JD_API_HOST = 'https://digital-floor.m.jd.com/adf/index/';
!(async () => {
await requireConfig()
if (!cookiesArr[0]) {
$.msg($.name, '【提示】请先获取京东账号一cookie\n直接使用NobyDa的京东签到获取', 'https://bean.m.jd.com/bean/signIndex.action', {"open-url": "https://bean.m.jd.com/bean/signIndex.action"});
return;
}
for (let i = 0; i < cookiesArr.length; i++) {
if (cookiesArr[i]) {
cookie = cookiesArr[i];
$.UserName = decodeURIComponent(cookie.match(/pt_pin=([^; ]+)(?=;?)/) && cookie.match(/pt_pin=([^; ]+)(?=;?)/)[1])
$.index = i + 1;
$.isLogin = true;
$.nickName = '';
message = '';
await TotalBean();
console.log(`\n******开始【京东账号${$.index}】${$.nickName || $.UserName}*********\n`);
if (!$.isLogin) {
$.msg($.name, `【提示】cookie已失效`, `京东账号${$.index} ${$.nickName || $.UserName}\n请重新登录获取\nhttps://bean.m.jd.com/bean/signIndex.action`, {"open-url": "https://bean.m.jd.com/bean/signIndex.action"});
if ($.isNode()) {
await notify.sendNotify(`${$.name}cookie已失效 - ${$.UserName}`, `京东账号${$.index} ${$.UserName}\n请重新登录获取cookie`);
}
continue
}
await shareCodesFormat()
await jdDigitalFloor()
}
}
})()
.catch((e) => {
$.log('', `❌ ${$.name}, 失败! 原因: ${e}!`, '')
})
.finally(() => {
$.done();
})
async function jdDigitalFloor() {
$.bean = 0
await helpFriends()
await getUserInfo()
await getTaskList()
await showMsg()
}
async function helpFriends() {
for (let code of $.newShareCodes) {
if (!code) continue
let res = await doSupport(code);
await $.wait(500)
if (res===5) {
// 助力次数已用完
break
}
}
}
function doSupport(shareId) {
return new Promise(resolve => {
$.post(taskPostUrl('doSupport',`shareId=${shareId}`), async (err, resp, data) => {
try {
if (err) {
console.log(`${JSON.stringify(err)}`)
console.log(`${$.name} API请求失败,请检查网路重试`)
} else {
if (safeGet(data)) {
data = JSON.parse(data);
if (data.code === 200) {
console.log(`助力好友${shareId}成功`)
await supportCheck(shareId)
}else{
console.log(`助力好友失败,${data.msg}`)
}
}
}
} catch (e) {
$.logErr(e, resp)
} finally {
resolve(data.data);
}
})
})
}
function supportCheck(shareId) {
return new Promise(resolve => {
$.post(taskPostUrl('supportCheck',`shareId=${shareId}`), (err, resp, data) => {
try {
if (err) {
console.log(`${JSON.stringify(err)}`)
console.log(`${$.name} API请求失败,请检查网路重试`)
} else {
if (safeGet(data)) {
data = JSON.parse(data);
if (data.code === 200) {
console.log(`检查助力,助力好友${shareId}成功`)
}else{
console.log(`检查助力失败,${data.msg}`)
}
}
}
} catch (e) {
$.logErr(e, resp)
} finally {
resolve();
}
})
})
}
function showMsg() {
return new Promise(resolve => {
$.msg($.name, '', `【京东账号${$.index}】${$.nickName}\n${message}`);
resolve()
})
}
function getUserInfo() {
return new Promise(resolve => {
$.get(taskUrl('shareInfo'), async (err, resp, data) => {
try {
if (err) {
console.log(`${JSON.stringify(err)}`)
console.log(`${$.name} API请求失败,请检查网路重试`)
} else {
if (safeGet(data)) {
data = JSON.parse(data);
if (data.code === 200) {
$.shareId = data.data.shareId
console.log(`\n您的${$.name}好友助力邀请码:${data.data.shareId}\n`)
message += `\n您的${$.name}好友助力邀请码:${data.data.shareId}\n`
}
}
}
} catch (e) {
$.logErr(e, resp)
} finally {
resolve();
}
})
})
}
function getTaskList() {
return new Promise(resolve => {
$.get(taskUrl('indexInfo'), async (err, resp, data) => {
try {
if (err) {
console.log(`${JSON.stringify(err)}`)
console.log(`${$.name} API请求失败,请检查网路重试`)
} else {
if (safeGet(data)) {
data = JSON.parse(data);
if (data.code === 200) {
const tasks = data.data
for(let i = 0; i < tasks.length; ++i){
const task = tasks[i]
console.log(`去加购物车:${task['skuName']}`)
await browseSku(task['skuId'])
}
message += `共获得${$.bean}个京豆\n`
}
}
}
} catch (e) {
$.logErr(e, resp)
} finally {
resolve();
}
})
})
}
function getPrize(skuId) {
return new Promise(resolve => {
$.post(taskPostUrl('getPrize',`skuId=${skuId}`), (err, resp, data) => {
try {
if (err) {
console.log(`${JSON.stringify(err)}`)
console.log(`${$.name} API请求失败,请检查网路重试`)
} else {
if (safeGet(data)) {
data = JSON.parse(data);
if (data.code === 200) {
$.bean += data.data
console.log(`任务领奖成功,获得${data.data}个京豆`)
}else{
console.log(`任务领奖失败,${data.msg}`)
}
}
}
} catch (e) {
$.logErr(e, resp)
} finally {
resolve();
}
})
})
}
function browseSku(skuId) {
return new Promise(resolve => {
$.post(taskPostUrl('browseSku',`skuId=${skuId}`), async (err, resp, data) => {
try {
if (err) {
console.log(`${JSON.stringify(err)}`)
console.log(`${$.name} API请求失败,请检查网路重试`)
} else {
if (safeGet(data)) {
data = JSON.parse(data);
if (data.code === 200) {
console.log(`任务领取成功`)
await $.wait(5000)
await getPrize(skuId)
} else{
console.log(data)
}
}
}
} catch (e) {
$.logErr(e, resp)
} finally {
resolve();
}
})
})
}
//格式化助力码
function shareCodesFormat() {
return new Promise(async resolve => {
// console.log(`第${$.index}个京东账号的助力码:::${$.shareCodesArr[$.index - 1]}`)
$.newShareCodes = [];
if ($.shareCodesArr[$.index - 1]) {
$.newShareCodes = $.shareCodesArr[$.index - 1].split('@');
} else {
console.log(`由于您第${$.index}个京东账号未提供shareCode,将采纳本脚本自带的助力码\n`)
const tempIndex = $.index > inviteCodes.length ? (inviteCodes.length - 1) : ($.index - 1);
$.newShareCodes = inviteCodes[tempIndex].split('@');
}
const readShareCodeRes = null //await readShareCode();
if (readShareCodeRes && readShareCodeRes.code === 200) {
$.newShareCodes = [...new Set([...$.newShareCodes, ...(readShareCodeRes.data || [])])];
}
console.log(`第${$.index}个京东账号将要助力的好友${JSON.stringify($.newShareCodes)}`)
resolve();
})
}
function requireConfig() {
return new Promise(async resolve => {
await getAuthorShareCode()
console.log(`开始获取${$.name}配置文件\n`);
//Node.js用户请在jdCookie.js处填写京东ck;
const shareCodes = [] //$.isNode() ? require('./jdSplitShareCodes.js') : '';
console.log(`共${cookiesArr.length}个京东账号\n`);
$.shareCodesArr = [];
if ($.isNode()) {
Object.keys(shareCodes).forEach((item) => {
if (shareCodes[item]) {
$.shareCodesArr.push(shareCodes[item])
}
})
}
console.log(`您提供了${$.shareCodesArr.length}个账号的${$.name}助力码\n`);
resolve()
})
}
function getAuthorShareCode() {
return new Promise(resolve => {
$.get({url: "https://cdn.jsdelivr.net/gh/shylocks/updateTeam@main/jd_digital_floor"}, async (err, resp, data) => {
try {
if (err) {
} else {
inviteCodes[0] = data.replace('\n', '')
}
} catch (e) {
$.logErr(e, resp)
} finally {
resolve();
}
})
})
}
function taskPostUrl(function_id, body) {
return {
url: `${JD_API_HOST}${function_id}?t=${new Date().getTime() + new Date().getTimezoneOffset()*60*1000 + 8*60*60*1000}`,
body: body,
headers: {
'Host': 'digital-floor.m.jd.com',
'pragma': 'no-cache',
'cache-control': 'no-cache',
'accept': 'application/json, text/plain, */*',
'dnt': '1',
'content-type': 'application/x-www-form-urlencoded',
'origin': 'https://pro.m.jd.com',
'sec-fetch-site': 'same-site',
'sec-fetch-mode': 'cors',
'sec-fetch-dest': 'empty',
'referer': 'https://pro.m.jd.com/',
'accept-language': 'zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6',
'Cookie': cookie,
'user-agent': 'jdapp;iPhone;9.2.0;14.0;53f4d9c70c1c81f1c8769d2fe2fef0190a3f60d2;network/wifi;supportApplePay/3;hasUPPay/1;pushNoticeIsOpen/0;model/iPhone10,2;addressid/138413818;hasOCPay/0;appBuild/167408;supportBestPay/1;jdSupportDarkMode/0;pv/1710.16;apprpd/WorthBuy_List;ref/JDWebViewController;psq/2;ads/;psn/53f4d9c70c1c81f1c8769d2fe2fef0190a3f60d2|5870;jdv/0|kong|t_1000089893_|tuiguang|9a75f97593f344eb9c46b99e196608d2|1605846323;adk/;app_device/IOS;pap/JA2015_311210|9.2.0|IOS 14.0;Mozilla/5.0 (iPhone; CPU iPhone OS 14_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148;supportJDSHWK/1',}
}
}
function taskUrl(function_id) {
return {
url: `${JD_API_HOST}${function_id}?t=${new Date().getTime() + new Date().getTimezoneOffset()*60*1000 + 8*60*60*1000}`,
headers: {
'Host': 'digital-floor.m.jd.com',
'pragma': 'no-cache',
'cache-control': 'no-cache',
'accept': 'application/json, text/plain, */*',
'dnt': '1',
'content-type': 'application/x-www-form-urlencoded',
'origin': 'https://pro.m.jd.com',
'sec-fetch-site': 'same-site',
'sec-fetch-mode': 'cors',
'sec-fetch-dest': 'empty',
'referer': 'https://pro.m.jd.com/',
'accept-language': 'zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6',
'Cookie': cookie,
'user-agent': 'jdapp;iPhone;9.2.0;14.0;53f4d9c70c1c81f1c8769d2fe2fef0190a3f60d2;network/wifi;supportApplePay/3;hasUPPay/1;pushNoticeIsOpen/0;model/iPhone10,2;addressid/138413818;hasOCPay/0;appBuild/167408;supportBestPay/1;jdSupportDarkMode/0;pv/1710.16;apprpd/WorthBuy_List;ref/JDWebViewController;psq/2;ads/;psn/53f4d9c70c1c81f1c8769d2fe2fef0190a3f60d2|5870;jdv/0|kong|t_1000089893_|tuiguang|9a75f97593f344eb9c46b99e196608d2|1605846323;adk/;app_device/IOS;pap/JA2015_311210|9.2.0|IOS 14.0;Mozilla/5.0 (iPhone; CPU iPhone OS 14_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148;supportJDSHWK/1',}
}
}
function TotalBean() {
return new Promise(async resolve => {
const options = {
"url": `https://wq.jd.com/user/info/QueryJDUserInfo?sceneval=2`,
"headers": {
"Accept": "application/json,text/plain, */*",
"Content-Type": "application/x-www-form-urlencoded",
"Accept-Encoding": "gzip, deflate, br",
"Accept-Language": "zh-cn",
"Connection": "keep-alive",
"Cookie": cookie,
"Referer": "https://wqs.jd.com/my/jingdou/my.shtml?sceneval=2",
"User-Agent": $.isNode() ? (process.env.JD_USER_AGENT ? process.env.JD_USER_AGENT : (require('./USER_AGENTS').USER_AGENT)) : ($.getdata('JDUA') ? $.getdata('JDUA') : "jdapp;iPhone;9.4.4;14.3;network/4g;Mozilla/5.0 (iPhone; CPU iPhone OS 14_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148;supportJDSHWK/1")
}
}
$.post(options, (err, resp, data) => {
try {
if (err) {
console.log(`${JSON.stringify(err)}`)
console.log(`${$.name} API请求失败,请检查网路重试`)
} else {
if (data) {
data = JSON.parse(data);
if (data['retcode'] === 13) {
$.isLogin = false; //cookie过期
return
}
if (data['retcode'] === 0) {
$.nickName = (data['base'] && data['base'].nickname) || $.UserName;
} else {
$.nickName = $.UserName
}
} else {
console.log(`京东服务器返回空数据`)
}
}
} catch (e) {
$.logErr(e, resp)
} finally {
resolve();
}
})
})
}
function safeGet(data) {
try {
if (typeof JSON.parse(data) == "object") {
return true;
}
} catch (e) {
console.log(e);
console.log(`京东服务器访问数据为空,请检查自身设备网络情况`);
return false;
}
}
function jsonParse(str) {
if (typeof str == "string") {
try {
return JSON.parse(str);
} catch (e) {
console.log(e);
$.msg($.name, '', '请勿随意在BoxJs输入框修改内容\n建议通过脚本去获取cookie')
return [];
}
}
}
// prettier-ignore
function Env(t,e){"undefined"!=typeof process&&JSON.stringify(process.env).indexOf("GITHUB")>-1&&process.exit(0);class s{constructor(t){this.env=t}send(t,e="GET"){t="string"==typeof t?{url:t}:t;let s=this.get;return"POST"===e&&(s=this.post),new Promise((e,i)=>{s.call(this,t,(t,s,r)=>{t?i(t):e(s)})})}get(t){return this.send.call(this.env,t)}post(t){return this.send.call(this.env,t,"POST")}}return new class{constructor(t,e){this.name=t,this.http=new s(this),this.data=null,this.dataFile="box.dat",this.logs=[],this.isMute=!1,this.isNeedRewrite=!1,this.logSeparator="\n",this.startTime=(new Date).getTime(),Object.assign(this,e),this.log("",`🔔${this.name}, 开始!`)}isNode(){return"undefined"!=typeof module&&!!module.exports}isQuanX(){return"undefined"!=typeof $task}isSurge(){return"undefined"!=typeof $httpClient&&"undefined"==typeof $loon}isLoon(){return"undefined"!=typeof $loon}toObj(t,e=null){try{return JSON.parse(t)}catch{return e}}toStr(t,e=null){try{return JSON.stringify(t)}catch{return e}}getjson(t,e){let s=e;const i=this.getdata(t);if(i)try{s=JSON.parse(this.getdata(t))}catch{}return s}setjson(t,e){try{return this.setdata(JSON.stringify(t),e)}catch{return!1}}getScript(t){return new Promise(e=>{this.get({url:t},(t,s,i)=>e(i))})}runScript(t,e){return new Promise(s=>{let i=this.getdata("@chavy_boxjs_userCfgs.httpapi");i=i?i.replace(/\n/g,"").trim():i;let r=this.getdata("@chavy_boxjs_userCfgs.httpapi_timeout");r=r?1*r:20,r=e&&e.timeout?e.timeout:r;const[o,h]=i.split("@"),n={url:`http://${h}/v1/scripting/evaluate`,body:{script_text:t,mock_type:"cron",timeout:r},headers:{"X-Key":o,Accept:"*/*"}};this.post(n,(t,e,i)=>s(i))}).catch(t=>this.logErr(t))}loaddata(){if(!this.isNode())return{};{this.fs=this.fs?this.fs:require("fs"),this.path=this.path?this.path:require("path");const t=this.path.resolve(this.dataFile),e=this.path.resolve(process.cwd(),this.dataFile),s=this.fs.existsSync(t),i=!s&&this.fs.existsSync(e);if(!s&&!i)return{};{const i=s?t:e;try{return JSON.parse(this.fs.readFileSync(i))}catch(t){return{}}}}}writedata(){if(this.isNode()){this.fs=this.fs?this.fs:require("fs"),this.path=this.path?this.path:require("path");const t=this.path.resolve(this.dataFile),e=this.path.resolve(process.cwd(),this.dataFile),s=this.fs.existsSync(t),i=!s&&this.fs.existsSync(e),r=JSON.stringify(this.data);s?this.fs.writeFileSync(t,r):i?this.fs.writeFileSync(e,r):this.fs.writeFileSync(t,r)}}lodash_get(t,e,s){const i=e.replace(/\[(\d+)\]/g,".$1").split(".");let r=t;for(const t of i)if(r=Object(r)[t],void 0===r)return s;return r}lodash_set(t,e,s){return Object(t)!==t?t:(Array.isArray(e)||(e=e.toString().match(/[^.[\]]+/g)||[]),e.slice(0,-1).reduce((t,s,i)=>Object(t[s])===t[s]?t[s]:t[s]=Math.abs(e[i+1])>>0==+e[i+1]?[]:{},t)[e[e.length-1]]=s,t)}getdata(t){let e=this.getval(t);if(/^@/.test(t)){const[,s,i]=/^@(.*?)\.(.*?)$/.exec(t),r=s?this.getval(s):"";if(r)try{const t=JSON.parse(r);e=t?this.lodash_get(t,i,""):e}catch(t){e=""}}return e}setdata(t,e){let s=!1;if(/^@/.test(e)){const[,i,r]=/^@(.*?)\.(.*?)$/.exec(e),o=this.getval(i),h=i?"null"===o?null:o||"{}":"{}";try{const e=JSON.parse(h);this.lodash_set(e,r,t),s=this.setval(JSON.stringify(e),i)}catch(e){const o={};this.lodash_set(o,r,t),s=this.setval(JSON.stringify(o),i)}}else s=this.setval(t,e);return s}getval(t){return this.isSurge()||this.isLoon()?$persistentStore.read(t):this.isQuanX()?$prefs.valueForKey(t):this.isNode()?(this.data=this.loaddata(),this.data[t]):this.data&&this.data[t]||null}setval(t,e){return this.isSurge()||this.isLoon()?$persistentStore.write(t,e):this.isQuanX()?$prefs.setValueForKey(t,e):this.isNode()?(this.data=this.loaddata(),this.data[e]=t,this.writedata(),!0):this.data&&this.data[e]||null}initGotEnv(t){this.got=this.got?this.got:require("got"),this.cktough=this.cktough?this.cktough:require("tough-cookie"),this.ckjar=this.ckjar?this.ckjar:new this.cktough.CookieJar,t&&(t.headers=t.headers?t.headers:{},void 0===t.headers.Cookie&&void 0===t.cookieJar&&(t.cookieJar=this.ckjar))}get(t,e=(()=>{})){t.headers&&(delete t.headers["Content-Type"],delete t.headers["Content-Length"]),this.isSurge()||this.isLoon()?(this.isSurge()&&this.isNeedRewrite&&(t.headers=t.headers||{},Object.assign(t.headers,{"X-Surge-Skip-Scripting":!1})),$httpClient.get(t,(t,s,i)=>{!t&&s&&(s.body=i,s.statusCode=s.status),e(t,s,i)})):this.isQuanX()?(this.isNeedRewrite&&(t.opts=t.opts||{},Object.assign(t.opts,{hints:!1})),$task.fetch(t).then(t=>{const{statusCode:s,statusCode:i,headers:r,body:o}=t;e(null,{status:s,statusCode:i,headers:r,body:o},o)},t=>e(t))):this.isNode()&&(this.initGotEnv(t),this.got(t).on("redirect",(t,e)=>{try{if(t.headers["set-cookie"]){const s=t.headers["set-cookie"].map(this.cktough.Cookie.parse).toString();s&&this.ckjar.setCookieSync(s,null),e.cookieJar=this.ckjar}}catch(t){this.logErr(t)}}).then(t=>{const{statusCode:s,statusCode:i,headers:r,body:o}=t;e(null,{status:s,statusCode:i,headers:r,body:o},o)},t=>{const{message:s,response:i}=t;e(s,i,i&&i.body)}))}post(t,e=(()=>{})){if(t.body&&t.headers&&!t.headers["Content-Type"]&&(t.headers["Content-Type"]="application/x-www-form-urlencoded"),t.headers&&delete t.headers["Content-Length"],this.isSurge()||this.isLoon())this.isSurge()&&this.isNeedRewrite&&(t.headers=t.headers||{},Object.assign(t.headers,{"X-Surge-Skip-Scripting":!1})),$httpClient.post(t,(t,s,i)=>{!t&&s&&(s.body=i,s.statusCode=s.status),e(t,s,i)});else if(this.isQuanX())t.method="POST",this.isNeedRewrite&&(t.opts=t.opts||{},Object.assign(t.opts,{hints:!1})),$task.fetch(t).then(t=>{const{statusCode:s,statusCode:i,headers:r,body:o}=t;e(null,{status:s,statusCode:i,headers:r,body:o},o)},t=>e(t));else if(this.isNode()){this.initGotEnv(t);const{url:s,...i}=t;this.got.post(s,i).then(t=>{const{statusCode:s,statusCode:i,headers:r,body:o}=t;e(null,{status:s,statusCode:i,headers:r,body:o},o)},t=>{const{message:s,response:i}=t;e(s,i,i&&i.body)})}}time(t,e=null){const s=e?new Date(e):new Date;let i={"M+":s.getMonth()+1,"d+":s.getDate(),"H+":s.getHours(),"m+":s.getMinutes(),"s+":s.getSeconds(),"q+":Math.floor((s.getMonth()+3)/3),S:s.getMilliseconds()};/(y+)/.test(t)&&(t=t.replace(RegExp.$1,(s.getFullYear()+"").substr(4-RegExp.$1.length)));for(let e in i)new RegExp("("+e+")").test(t)&&(t=t.replace(RegExp.$1,1==RegExp.$1.length?i[e]:("00"+i[e]).substr((""+i[e]).length)));return t}msg(e=t,s="",i="",r){const o=t=>{if(!t)return t;if("string"==typeof t)return this.isLoon()?t:this.isQuanX()?{"open-url":t}:this.isSurge()?{url:t}:void 0;if("object"==typeof t){if(this.isLoon()){let e=t.openUrl||t.url||t["open-url"],s=t.mediaUrl||t["media-url"];return{openUrl:e,mediaUrl:s}}if(this.isQuanX()){let e=t["open-url"]||t.url||t.openUrl,s=t["media-url"]||t.mediaUrl;return{"open-url":e,"media-url":s}}if(this.isSurge()){let e=t.url||t.openUrl||t["open-url"];return{url:e}}}};if(this.isMute||(this.isSurge()||this.isLoon()?$notification.post(e,s,i,o(r)):this.isQuanX()&&$notify(e,s,i,o(r))),!this.isMuteLog){let t=["","==============📣系统通知📣=============="];t.push(e),s&&t.push(s),i&&t.push(i),console.log(t.join("\n")),this.logs=this.logs.concat(t)}}log(...t){t.length>0&&(this.logs=[...this.logs,...t]),console.log(t.join(this.logSeparator))}logErr(t,e){const s=!this.isSurge()&&!this.isQuanX()&&!this.isLoon();s?this.log("",`❗️${this.name}, 错误!`,t.stack):this.log("",`❗️${this.name}, 错误!`,t)}wait(t){return new Promise(e=>setTimeout(e,t))}done(t={}){const e=(new Date).getTime(),s=(e-this.startTime)/1e3;this.log("",`🔔${this.name}, 结束! 🕛 ${s} 秒`),this.log(),(this.isSurge()||this.isQuanX()||this.isLoon())&&$done(t)}}(t,e)}
|
// 获取品牌管理数据
import request from '@/utils/request'
// 接口地址 /admin/product/baseTrademark/{page}/{limit}
export const reqTradeMarkList = (page, limit) => request({
url: `/admin/product/baseTrademark/${page}/${limit}`,
method: 'get'
})
// 添加品牌,/admin/product/baseTrademark/save,method: 'post',携带两个参数:品牌名称、品牌LOGO
// 修改品牌,/admin/product/baseTrademark/update,method: 'put',携带三个参数:品牌id、品牌名称、品牌LOGO
export const reqAddOrUpdateTradeMark = tradeMark => {
if (tradeMark.id) {
return request({ url: '/admin/product/baseTrademark/update', method: 'put', data: tradeMark })
} else {
return request({ url: '/admin/product/baseTrademark/save', method: 'post', data: tradeMark })
}
}
// 删除品牌,/admin/product/baseTrademark/remove/{id},method: 'delete',携带一个参数:品牌id
export const reqDeleteTradeMark = id => request({ url: `/admin/product/baseTrademark/remove/${id}`, method: 'delete' })
|
// const User = require("./user");
const bcrypt = require("bcryptjs");
const LocalStrategy = require("passport-local").Strategy;
const mongoose = require('mongoose');
const User = require('../models/User');
const passport = require("passport");
module.exports = function(passport) {
passport.use(
new LocalStrategy({ usernameField: 'username'}, (username,password, done) => {
console.log(username)
User.findOne({ username: username })
.then(user => {
if(!user){
return done(null, false, { message: 'That user is not registered' });
}
bcrypt.compare(password, user.password, (err, isMatch) => {
if(err) {
console.log(err);
throw err
}
if(isMatch) {
console.log("Match!")
return done(null, user);
} else {
console.log("incorrect password")
return done(null, false, { message: 'Password incorrect'});
}
});
})
.catch(err => console.log(err))
})
)
}
passport.serializeUser((user, done) => {
console.log("serializing", user.username)
done(null, user.username);
});
passport.deserializeUser((username, done) => {
console.log("deserializing", username)
User.findOne({username}, (err, user) => {
if (err) {
console.log("error", err)
return err
}
done(err, user);
})
})
|
var express = require('express')
var path = require('path')
var serveStatic = require('serve-static')
var app = express()
app.use(serveStatic(path.join(__dirname, 'dist')))
var port = process.env.PORT || 8000
app.listen(port)
console.log('server started ' + port)
"start": "node server.js"
|
'use strict';
const getChannelURL = require('ember-source-channel-url');
module.exports = async function() {
return {
useYarn: true,
scenarios: [
{
name: 'ember-lts-2.12',
env: {
EMBER_OPTIONAL_FEATURES: JSON.stringify({ 'jquery-integration': true })
},
npm: {
devDependencies: {
'ember-source': '~2.12.0'
}
}
},
{
name: 'ember-lts-2.16',
env: {
EMBER_OPTIONAL_FEATURES: JSON.stringify({ 'jquery-integration': true })
},
npm: {
devDependencies: {
'ember-source': '~2.16.0'
}
}
},
{
name: 'ember-lts-2.18',
env: {
EMBER_OPTIONAL_FEATURES: JSON.stringify({ 'jquery-integration': true })
},
npm: {
devDependencies: {
'@ember/jquery': '^0.5.1',
'ember-source': '~2.18.0'
}
}
},
{
name: 'ember-lts-3.4',
npm: {
devDependencies: {
'ember-source': '~3.4.0'
}
}
},
{
name: 'ember-lts-3.8',
npm: {
devDependencies: {
'ember-source': '~3.8.0'
}
}
},
{
name: 'ember-lts-3.12',
npm: {
devDependencies: {
'ember-source': '~3.12.0'
}
}
},
{
name: 'ember-lts-3.16',
npm: {
devDependencies: {
'ember-source': '~3.16.0'
}
}
},
{
name: 'ember-release',
npm: {
devDependencies: {
'ember-source': await getChannelURL('release')
}
}
},
{
name: 'ember-beta',
npm: {
devDependencies: {
'ember-source': await getChannelURL('beta')
}
}
},
{
name: 'ember-canary',
npm: {
devDependencies: {
'ember-source': await getChannelURL('canary')
}
}
},
// The default `.travis.yml` runs this scenario via `yarn test`,
// not via `ember try`. It's still included here so that running
// `ember try:each` manually or from a customized CI config will run it
// along with all the other scenarios.
{
name: 'ember-default',
npm: {
devDependencies: {}
}
},
{
name: 'ember-default-with-jquery',
env: {
EMBER_OPTIONAL_FEATURES: JSON.stringify({
'jquery-integration': true
})
},
npm: {
devDependencies: {
'@ember/jquery': '^0.5.1'
}
}
},
{
name: 'ember-classic',
env: {
EMBER_OPTIONAL_FEATURES: JSON.stringify({
'application-template-wrapper': true,
'default-async-observers': false,
'template-only-glimmer-components': false
})
},
npm: {
ember: {
edition: 'classic'
}
}
}
]
};
};
|
import React from 'react';
const Envelope = () => {
return (
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
<g id="vuesax_outline_sms-edit" data-name="vuesax/outline/sms-edit" transform="translate(-748 -252)">
<g id="sms-edit">
<path id="Vector" d="M10.75,18.5h-5C2.1,18.5,0,16.4,0,12.75v-7C0,2.1,2.1,0,5.75,0h10C19.4,0,21.5,2.1,21.5,5.75v3a.75.75,0,0,1-1.5,0v-3c0-2.86-1.39-4.25-4.25-4.25h-10C2.89,1.5,1.5,2.89,1.5,5.75v7C1.5,15.61,2.89,17,5.75,17h5a.75.75,0,0,1,0,1.5Z" transform="translate(749.25 254.75)" fill="CurrentColor" />
<path id="Vector-2" data-name="Vector" d="M5.753,4.626a3.717,3.717,0,0,1-2.34-.79l-3.13-2.5A.748.748,0,0,1,.163.286a.757.757,0,0,1,1.05-.12l3.13,2.5a2.386,2.386,0,0,0,2.81,0l3.13-2.5a.739.739,0,0,1,1.05.12.738.738,0,0,1-.12,1.05l-3.13,2.5A3.67,3.67,0,0,1,5.753,4.626Z" transform="translate(754.247 260.244)" fill="CurrentColor" />
<path id="Vector-3" data-name="Vector" d="M1.4,8.328a1.406,1.406,0,0,1-1-.4A1.423,1.423,0,0,1,.018,6.7l.19-1.35a1.981,1.981,0,0,1,.51-1.02L4.258.788a2.382,2.382,0,0,1,1.46-.78,2.264,2.264,0,0,1,1.82.78,2.252,2.252,0,0,1,.78,1.82,2.46,2.46,0,0,1-.78,1.46L4,7.608a1.981,1.981,0,0,1-1.02.51l-1.35.19A1.785,1.785,0,0,1,1.4,8.328ZM5.888,1.5h-.03a1.049,1.049,0,0,0-.54.35l-3.54,3.54a.381.381,0,0,0-.08.17l-.18,1.25,1.25-.18a.556.556,0,0,0,.17-.09L6.478,3a1.089,1.089,0,0,0,.35-.54c.02-.2-.18-.44-.35-.61A1.02,1.02,0,0,0,5.888,1.5Z" transform="translate(762.422 265.452)" fill="CurrentColor" />
<path id="Vector-4" data-name="Vector" d="M2.967,3.727a.645.645,0,0,1-.2-.03A3.977,3.977,0,0,1,.027.957a.76.76,0,0,1,.52-.93.745.745,0,0,1,.92.52,2.465,2.465,0,0,0,1.7,1.7.755.755,0,0,1,.52.93A.747.747,0,0,1,2.967,3.727Z" transform="translate(765.953 266.522)" fill="CurrentColor" />
<path id="Vector-5" data-name="Vector" d="M0,0H24V24H0Z" transform="translate(748 252)" fill="none" opacity="0" />
</g>
</g>
</svg>
);
};
export default Envelope;
|
/*
Encryption Service.
This service is responsible for encrypting and decrypting text.
*/
var crypto = require('crypto');
var algorithm = require('../../config').crypto.algorithm;
var secret = require('../../config').crypto.secret;
var service = {};
service.encrypt = encrypt;
service.decrypt = decrypt;
module.exports = service;
function encrypt(text) {
var cipher = crypto.createCipher(algorithm, secret);
var crypted = cipher.update(text, 'utf8', 'hex');
crypted += cipher.final('hex');
return crypted || null;
}
function decrypt(text) {
var decipher = crypto.createDecipher(algorithm, secret);
var dec = decipher.update(text, 'hex', 'utf8');
dec += decipher.final('utf8');
return dec || null;
}
|
// Generated by CoffeeScript 1.4.0
(function() {
var events, isEmpty, sax,
__hasProp = {}.hasOwnProperty,
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
__bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; };
sax = require('sax');
events = require('events');
isEmpty = function(thing) {
return typeof thing === "object" && (thing != null) && Object.keys(thing).length === 0;
};
exports.defaults = {
"0.1": {
explicitCharkey: false,
trim: true,
normalize: true,
normalizeTags: false,
attrkey: "@",
charkey: "#",
explicitArray: false,
ignoreAttrs: false,
mergeAttrs: false,
explicitRoot: false,
validator: null,
xmlns: false
},
"0.2": {
explicitCharkey: false,
trim: false,
normalize: false,
normalizeTags: false,
attrkey: "$",
charkey: "_",
explicitArray: true,
ignoreAttrs: false,
mergeAttrs: false,
explicitRoot: true,
validator: null,
xmlns: false
}
};
exports.ValidationError = (function(_super) {
__extends(ValidationError, _super);
function ValidationError(message) {
this.message = message;
}
return ValidationError;
})(Error);
exports.Parser = (function(_super) {
__extends(Parser, _super);
function Parser(opts) {
this.parseString = __bind(this.parseString, this);
this.reset = __bind(this.reset, this);
var key, value, _ref;
this.options = {};
_ref = exports.defaults["0.2"];
for (key in _ref) {
if (!__hasProp.call(_ref, key)) continue;
value = _ref[key];
this.options[key] = value;
}
for (key in opts) {
if (!__hasProp.call(opts, key)) continue;
value = opts[key];
this.options[key] = value;
}
if (this.options.xmlns) {
this.options.xmlnskey = this.options.attrkey + "ns";
}
this.reset();
}
Parser.prototype.reset = function() {
var attrkey, charkey, err, stack,
_this = this;
this.removeAllListeners();
this.saxParser = sax.parser(true, {
trim: false,
normalize: false,
xmlns: this.options.xmlns
});
err = false;
this.saxParser.onerror = function(error) {
if (!err) {
err = true;
return _this.emit("error", error);
}
};
this.EXPLICIT_CHARKEY = this.options.explicitCharkey;
this.resultObject = null;
stack = [];
attrkey = this.options.attrkey;
charkey = this.options.charkey;
this.saxParser.onopentag = function(node) {
var key, obj, _ref;
obj = {};
obj[charkey] = "";
if (!_this.options.ignoreAttrs) {
_ref = node.attributes;
for (key in _ref) {
if (!__hasProp.call(_ref, key)) continue;
if (!(attrkey in obj) && !_this.options.mergeAttrs) {
obj[attrkey] = {};
}
if (_this.options.mergeAttrs) {
obj[key] = node.attributes[key];
} else {
obj[attrkey][key] = node.attributes[key];
}
}
}
obj["#name"] = _this.options.normalizeTags ? node.name.toLowerCase() : node.name;
if (_this.options.xmlns) {
obj[_this.options.xmlnskey] = {
uri: node.uri,
local: node.local
};
}
return stack.push(obj);
};
this.saxParser.onclosetag = function() {
var node, nodeName, obj, old, s, xpath;
obj = stack.pop();
nodeName = obj["#name"];
delete obj["#name"];
s = stack[stack.length - 1];
if (obj[charkey].match(/^\s*$/)) {
delete obj[charkey];
} else {
if (_this.options.trim) {
obj[charkey] = obj[charkey].trim();
}
if (_this.options.normalize) {
obj[charkey] = obj[charkey].replace(/\s{2,}/g, " ").trim();
}
if (Object.keys(obj).length === 1 && charkey in obj && !_this.EXPLICIT_CHARKEY) {
obj = obj[charkey];
}
}
if (_this.options.emptyTag !== void 0 && isEmpty(obj)) {
obj = _this.options.emptyTag;
}
if (_this.options.validator != null) {
xpath = "/" + ((function() {
var _i, _len, _results;
_results = [];
for (_i = 0, _len = stack.length; _i < _len; _i++) {
node = stack[_i];
_results.push(node["#name"]);
}
return _results;
})()).concat(nodeName).join("/");
obj = _this.options.validator(xpath, s && s[nodeName], obj);
}
if (stack.length > 0) {
if (!_this.options.explicitArray) {
if (!(nodeName in s)) {
return s[nodeName] = obj;
} else if (s[nodeName] instanceof Array) {
return s[nodeName].push(obj);
} else {
old = s[nodeName];
s[nodeName] = [old];
return s[nodeName].push(obj);
}
} else {
if (!(s[nodeName] instanceof Array)) {
s[nodeName] = [];
}
return s[nodeName].push(obj);
}
} else {
if (_this.options.explicitRoot) {
old = obj;
obj = {};
obj[nodeName] = old;
}
_this.resultObject = obj;
return _this.emit("end", _this.resultObject);
}
};
return this.saxParser.ontext = this.saxParser.oncdata = function(text) {
var s;
s = stack[stack.length - 1];
if (s) {
return s[charkey] += text;
}
};
};
Parser.prototype.parseString = function(str, cb) {
if ((cb != null) && typeof cb === "function") {
this.on("end", function(result) {
this.reset();
return cb(null, result);
});
this.on("error", function(err) {
this.reset();
return cb(err);
});
}
if (str.toString().trim() === '') {
this.emit("end", null);
return true;
}
try {
return this.saxParser.write(str.toString());
} catch (ex) {
return this.emit("error", ex.message);
}
};
return Parser;
})(events.EventEmitter);
exports.parseString = function(str, a, b) {
var cb, options, parser;
if (b != null) {
if (typeof b === 'function') {
cb = b;
}
if (typeof a === 'object') {
options = a;
}
} else {
if (typeof a === 'function') {
cb = a;
}
options = {};
}
parser = new exports.Parser(options);
return parser.parseString(str, cb);
};
}).call(this);
|
'use strict';
var gulp = require('gulp');
var gutil = require('gulp-util');
var gmux = require('gulp-mux');
var helper = require('../common/helper');
var constants = require('../common/constants')();
var webpack = require('webpack');
var transform = require('vinyl-transform');
var gulpif = require('gulp-if');
var mkdirp = require('mkdirp');
var _ = require('lodash');
var path = require('path');
var exorcist = require('exorcist');
var webpackConfig = require(path.join(__dirname, '../../webpack.config.js'));
var webpackShare = function(shouldWatch, constants, done) {
var version = helper.readJsonFile('./package.json').version;
var dest = constants.dist.distFolder;
dest = helper.isMobile(constants) ? dest + '/www/' + constants.script.dest : dest + '/' + constants.script.dest;
var mode = constants.mode;
var target = constants.targetName;
var bundleName = constants.bundleName || 'bundle.js';
var releaseName = target + '-v' + version;
var sourceMap = releaseName + constants.exorcist.mapExtension;
//webpackConfig.entry = ['babel/polyfill', constants.webpack.src];
webpackConfig.entry = constants.webpack.src;
webpackConfig.output.path = dest;
webpackConfig.output.filename = bundleName;
webpackConfig.output.sourceMapFilename = sourceMap;
webpackConfig.debug = mode === 'prod' ? false : true;
webpackConfig.output.pathinfo = mode === 'prod' ? false : true;
webpackConfig.devtool = mode === 'prod' ? 'inline-source-map' : 'cheap-module-eval-source-map';
var webpackHandler = function(err, stats) {
var rootUrl = '';
var basePath = path.join(constants.clientFolder, constants.script.dest);
gulp.src(dest + '/' + bundleName)
.pipe(gulpif(mode === 'prod', transform(function() {
// in prod mode we save the source map file in a special folder
// we first need to make sure the destination folder exists
mkdirp.sync(constants.exorcist.dest);
var normalizedURL = helper.resolveSentryNormalizedUrl(constants);
if (normalizedURL.length > 0) {
var sourceMapURL = normalizedURL + '/' + sourceMap;
return exorcist(path.join(constants.exorcist.dest, sourceMap), sourceMapURL, rootUrl, constants.clientFolder);
} else {
// when no normalizedURL we copy the source map along with the bundle
return exorcist(path.join(dest, sourceMap), sourceMap, rootUrl, basePath);
}
}), gutil.noop()))
.pipe(gulp.dest(dest))
.on('end', function() {
if (done) {
done();
}
});
if (err) {
gutil.beep();
gutil.log(gutil.colors.red('Webpack failed'));
gutil.log(gutil.colors.red(err));
}
var info = stats.toString({
colors: true,
hash: false,
modulesSort: 'name'
}).split('/~/').join('/node_modules/'); // replaceAll
if (global.webpackQuiet !== true) {
gutil.log(info);
}
if (stats.hasErrors() || stats.hasWarnings()) {
gutil.beep();
}
};
var envifyVars = helper.getEnvifyVars(constants);
if (mode === 'prod') {
webpackConfig.plugins.push(new webpack.optimize.UglifyJsPlugin({
comments: false,
compress: {
warnings: false
}
}));
}
if (require('yargs').argv.coverage) {
webpackConfig.cache = true;
webpackConfig.devtool = 'eval'; //'inline-source-map';
webpackConfig.module.preLoaders = webpackConfig.module.preLoaders || [];
webpackConfig.module.preLoaders.push({
test: /\.js$/,
exclude: /\.webpack\.js|node_modules|bower_components|\.test\.js/,
loader: 'istanbul-instrumenter'
});
}
// webpackConfig.plugins.push(new webpack.DefinePlugin({
// 'process.env': Object.keys(envifyVars).reduce(function(o, k) {
// o[k] = JSON.stringify(envifyVars[k]);
// console.log(o);
// return o;
// }, {})
// }));
_.extend(process.env, envifyVars);
var compiler = webpack(webpackConfig);
if (shouldWatch) {
compiler.watch({
aggregateTimeout: 300 // wait so long for more changes
}, webpackHandler);
} else {
compiler.run(webpackHandler);
}
};
var taskWebpackRun = function(constants, done) {
webpackShare(false, constants, done);
};
var taskWebpackWatch = function(constants) {
webpackShare(true, constants);
};
gulp.task('webpack:run', 'Generates a bundle javascript file with webpack run.', function(done) {
var taskname = 'webpack:run';
gmux.targets.setClientFolder(constants.clientFolder);
if (global.options === null) {
global.options = gmux.targets.askForMultipleTargets(taskname);
}
return gmux.createAndRunTasks(gulp, taskWebpackRun, taskname, global.options.target, global.options.mode, constants, done);
});
gulp.task('webpack:watch', 'Generates a bundle javascript file with webpack watch.', function() {
var taskname = 'webpack:watch';
gmux.targets.setClientFolder(constants.clientFolder);
if (global.options === null) {
global.options = gmux.targets.askForSingleTarget(taskname);
}
return gmux.createAndRunTasks(gulp, taskWebpackWatch, taskname, global.options.target, global.options.mode, constants);
});
|
// This event executes when a guild (server) is left.
module.exports = class {
constructor(client) {
this.client = client;
}
async run(guild) {
this.client.user.setActivity(`for @${this.client.user.username} help | ${this.client.guilds.size} Servers`, { type: "WATCHING" });
// Well they're gone. Let's remove them from the settings!
this.client.settings.delete(guild.id);
}
};
|
import svelte from 'rollup-plugin-svelte';
import resolve from '@rollup/plugin-node-resolve';
import commonjs from '@rollup/plugin-commonjs';
import livereload from 'rollup-plugin-livereload';
import { terser } from 'rollup-plugin-terser';
import path from 'path';
import postcss from "rollup-plugin-postcss";
import autoPreprocess from'svelte-preprocess';
const production = !process.env.ROLLUP_WATCH;
function serve() {
let server;
function toExit() {
if (server) server.kill(0);
}
return {
writeBundle() {
if (server) return;
server = require('child_process').spawn('npm', ['run', 'start', '--', '--dev'], {
stdio: ['ignore', 'inherit', 'inherit'],
shell: true
});
process.on('SIGTERM', toExit);
process.on('exit', toExit);
}
};
}
export default {
input: path.resolve(__dirname, 'main.js'),
output: {
sourcemap: true,
format: 'iife',
name: 'app',
file: 'public/build/bundle_q30.js'
},
plugins: [
svelte({
// enable run-time checks when not in production
compilerOptions: {
dev: !production,
},
// we'll extract any component CSS out into
// a separate file - better for performance
emitCss: false,
preprocess: autoPreprocess(),
}),
// If you have external dependencies installed from
// npm, you'll most likely need these plugins. In
// some cases you'll need additional configuration -
// consult the documentation for details:
// https://github.com/rollup/plugins/tree/master/packages/commonjs
resolve({
browser: true,
dedupe: ['svelte']
}),
commonjs(),
postcss({
plugins: []
}),
// In dev mode, call `npm run start` once
// the bundle has been generated
!production && serve(),
// Watch the `public` directory and refresh the
// browser on changes when not in production
!production && livereload('public'),
// If we're building for production (npm run build
// instead of npm run dev), minify
production && terser()
],
watch: {
clearScreen: false
}
};
|
/*
* Copyright (c) 2020 MariaDB Corporation Ab
*
* Use of this software is governed by the Business Source License included
* in the LICENSE.TXT file and at www.mariadb.com/bsl11.
*
* Change Date: 2025-05-25
*
* On the date above, in accordance with the Business Source License, use
* of this software will be governed by version 2 or later of the General
* Public License.
*/
import { expect } from 'chai'
import mount from '@tests/unit/setup'
import PageWrapper from '@/components/common/PageWrapper'
describe('PageWrapper.vue', () => {
let wrapper
beforeEach(async () => {
localStorage.clear()
wrapper = mount({
shallow: false,
component: PageWrapper,
})
})
it(`Should render accurate content when default slot is used`, async () => {
wrapper = mount({
shallow: true,
component: PageWrapper,
slots: {
default: '<div class="dashboard-page">dashboard-page</div>',
},
})
expect(wrapper.find('.dashboard-page').text()).to.be.equal('dashboard-page')
})
})
|
import React, { Component } from 'react';
import './App.css';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import { faChevronCircleRight } from '@fortawesome/free-solid-svg-icons'
import Map from './mapContainer'
class App extends Component {
state = {
sidebar:'open',
}
openCloseMenu = () => {
//Open and close sidebar function
let ul = document.querySelector('.side-nav')
if(this.state.sidebar === 'open'){
ul.classList.add('response');
this.setState({sidebar: 'closed'})
}else{
ul.classList.remove('response');
this.setState({sidebar: 'open'})
}
}
render() {
return (
<div className="App">
<header className="header">
<span className="open-slide" aria-label="Open">
<a className="angle-right tooltip" onClick={this.openCloseMenu}>
<FontAwesomeIcon icon={faChevronCircleRight} /><span className="tooltiptext position">Expand Side Panel</span>
</a>
</span>
<div className="">
<ul className="header-nav">
<h1>Waterloo Coffee Places</h1>
</ul>
</div>
</header>
<Map google={this.props.google} openCloseMenu={this.openCloseMenu}/>
</div>
);
}
}
export default App;
|
positionForPages[49]={page:49,positions:[{w:"",p:[0.905586,0.149197,0.911531,0.149197,0.911531,0.130652,0.905586,0.130652,0.000000]},{w:" ",p:[0.169059,0.166532,0.175005,0.166532,0.175005,0.147988,0.169059,0.147988,0.000000]},{w:" ",p:[0.169059,0.883048,0.175005,0.883048,0.175005,0.864503,0.169059,0.864503,0.000000]},{w:" ",p:[0.814651,0.905624,0.820596,0.905624,0.820596,0.887079,0.814651,0.887079,0.000000]},{w:"48",p:[0.855543,0.928200,0.882321,0.928200,0.882321,0.909655,0.855543,0.909655,0.000000,0.000000]},{w:" ",p:[0.882137,0.928200,0.888083,0.928200,0.888083,0.909655,0.882137,0.909655,0.000000]},{w:"No ",p:[0.169631,0.197710,0.208110,0.197710,0.208110,0.178186,0.169631,0.178186,0.000000,0.000000,0.000000]},{w:"Uraian ",p:[0.313459,0.197710,0.400622,0.197710,0.400622,0.178186,0.313459,0.178186,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000]},{w:"2012 2013 2014 2015 2016 ",p:[0.504837,0.197710,0.906318,0.197710,0.906318,0.178186,0.504837,0.178186,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000]},{w:"1 ",p:[0.169059,0.248104,0.191524,0.248104,0.191524,0.228579,0.169059,0.228579,0.000000,0.000000]},{w:"Singkong(Kg/Kap/Th) ",p:[0.224535,0.248104,0.489556,0.248104,0.489556,0.228579,0.224535,0.228579,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000]},{w:"4,4 ",p:[0.517134,0.248104,0.561951,0.248104,0.561951,0.228579,0.517134,0.228579,0.000000,0.000000,0.000000,0.000000]},{w:"17,3 ",p:[0.594962,0.248104,0.654602,0.248104,0.654602,0.228579,0.594962,0.228579,0.000000,0.000000,0.000000,0.000000,0.000000]},{w:"4,5 ",p:[0.687327,0.248104,0.732097,0.248104,0.732097,0.228579,0.687327,0.228579,0.000000,0.000000,0.000000,0.000000]},{w:"5,9 ",p:[0.769469,0.248104,0.814239,0.248104,0.814239,0.228579,0.769469,0.228579,0.000000,0.000000,0.000000,0.000000]},{w:"6,0 ",p:[0.851825,0.248104,0.896595,0.248104,0.896595,0.228579,0.851825,0.228579,0.000000,0.000000,0.000000,0.000000]},{w:"2 ",p:[0.169059,0.298698,0.191524,0.298698,0.191524,0.279174,0.169059,0.279174,0.000000,0.000000]},{w:"Ubi Jalar(Kg/Kap/Th) ",p:[0.224535,0.298698,0.488984,0.298698,0.488984,0.279174,0.224535,0.279174,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000]},{w:"6,7 ",p:[0.517134,0.298698,0.561951,0.298698,0.561951,0.279174,0.517134,0.279174,0.000000,0.000000,0.000000,0.000000]},{w:"7,7 ",p:[0.602397,0.298698,0.647167,0.298698,0.647167,0.279174,0.602397,0.279174,0.000000,0.000000,0.000000,0.000000]},{w:"0,7 ",p:[0.687327,0.298698,0.732097,0.298698,0.732097,0.279174,0.687327,0.279174,0.000000,0.000000,0.000000,0.000000]},{w:"2,6 ",p:[0.769469,0.298698,0.814239,0.298698,0.814239,0.279174,0.769469,0.279174,0.000000,0.000000,0.000000,0.000000]},{w:"2,8 ",p:[0.851825,0.298698,0.896595,0.298698,0.896595,0.279174,0.851825,0.279174,0.000000,0.000000,0.000000,0.000000]},{w:"3 ",p:[0.169059,0.349343,0.191524,0.349343,0.191524,0.329819,0.169059,0.329819,0.000000,0.000000]},{w:"Kentang(Kg/Kap/Th) ",p:[0.224535,0.349343,0.478117,0.349343,0.478117,0.329819,0.224535,0.329819,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000]},{w:"0,8 ",p:[0.517134,0.349343,0.561951,0.349343,0.561951,0.329819,0.517134,0.329819,0.000000,0.000000,0.000000,0.000000]},{w:"0,6 ",p:[0.602397,0.349343,0.647167,0.349343,0.647167,0.329819,0.602397,0.329819,0.000000,0.000000,0.000000,0.000000]},{w:"1,4 ",p:[0.687327,0.349343,0.732097,0.349343,0.732097,0.329819,0.687327,0.329819,0.000000,0.000000,0.000000,0.000000]},{w:"0,9 ",p:[0.769469,0.349343,0.814239,0.349343,0.814239,0.329819,0.769469,0.329819,0.000000,0.000000,0.000000,0.000000]},{w:"1,0 ",p:[0.851825,0.349343,0.896595,0.349343,0.896595,0.329819,0.851825,0.329819,0.000000,0.000000,0.000000,0.000000]},{w:"4 ",p:[0.169059,0.399938,0.191524,0.399938,0.191524,0.380413,0.169059,0.380413,0.000000,0.000000]},{w:"Sagu(Kg/Kap/Th) ",p:[0.224535,0.399938,0.440085,0.399938,0.440085,0.380413,0.224535,0.380413,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000]},{w:"0,1 ",p:[0.517134,0.399938,0.561951,0.399938,0.561951,0.380413,0.517134,0.380413,0.000000,0.000000,0.000000,0.000000]},{w:"1,6 ",p:[0.602397,0.399938,0.647167,0.399938,0.647167,0.380413,0.602397,0.380413,0.000000,0.000000,0.000000,0.000000]},{w:"0,1 ",p:[0.687327,0.399938,0.732097,0.399938,0.732097,0.380413,0.687327,0.380413,0.000000,0.000000,0.000000,0.000000]},{w:"0,6 ",p:[0.769469,0.399938,0.814239,0.399938,0.814239,0.380413,0.769469,0.380413,0.000000,0.000000,0.000000,0.000000]},{w:"0,7 ",p:[0.851825,0.399938,0.896595,0.399938,0.896595,0.380413,0.851825,0.380413,0.000000,0.000000,0.000000,0.000000]},{w:"5 ",p:[0.169059,0.450532,0.191524,0.450532,0.191524,0.431008,0.169059,0.431008,0.000000,0.000000]},{w:"Umbi ",p:[0.224535,0.450532,0.294695,0.450532,0.294695,0.431008,0.224535,0.431008,0.000000,0.000000,0.000000,0.000000,0.000000]},{w:"Lainnya(Kg/Kap/Th) ",p:[0.224535,0.480164,0.474686,0.480164,0.474686,0.460639,0.224535,0.460639,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000]},{w:"3,0 ",p:[0.517134,0.450532,0.561951,0.450532,0.561951,0.431008,0.517134,0.431008,0.000000,0.000000,0.000000,0.000000]},{w:"5,1 ",p:[0.602397,0.450532,0.647167,0.450532,0.647167,0.431008,0.602397,0.431008,0.000000,0.000000,0.000000,0.000000]},{w:"1,3 ",p:[0.687327,0.450532,0.732097,0.450532,0.732097,0.431008,0.687327,0.431008,0.000000,0.000000,0.000000,0.000000]},{w:"3,0 ",p:[0.769469,0.450532,0.814239,0.450532,0.814239,0.431008,0.769469,0.431008,0.000000,0.000000,0.000000,0.000000]},{w:"3,1 ",p:[0.851825,0.450532,0.896595,0.450532,0.896595,0.431008,0.851825,0.431008,0.000000,0.000000,0.000000,0.000000]},{w:"Sumber : Data Diolah",p:[0.169059,0.518981,0.388955,0.518981,0.388955,0.501263,0.169059,0.501263,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000]},{w:" ",p:[0.389596,0.519640,0.398541,0.519640,0.398541,0.498035,0.389596,0.498035,0.000000]},{w:" ",p:[0.169059,0.549271,0.178004,0.549271,0.178004,0.527666,0.169059,0.527666,0.000000]},{w:" ",p:[0.169059,0.581758,0.178004,0.581758,0.178004,0.560153,0.169059,0.560153,0.000000]},{w:" ",p:[0.169059,0.614211,0.178004,0.614211,0.178004,0.592606,0.169059,0.592606,0.000000]},{w:"Tabel 19. ",p:[0.490825,0.646903,0.627974,0.646903,0.627974,0.625261,0.490825,0.625261,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000]},{w:" ",p:[0.609260,0.646624,0.616574,0.646624,0.616574,0.625947,0.609260,0.625947,0.000000]},{w:"Konsumsi Penduduk Terhadap Pangan Hewani ",p:[0.230826,0.679356,0.845374,0.679356,0.845374,0.657714,0.230826,0.657714,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000]},{w:"di Kabupaten Bangka Tengah Tahun 2012-2016 ",p:[0.222534,0.712010,0.853667,0.712010,0.853667,0.690369,0.222534,0.690369,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000]},{w:"N",p:[0.175350,0.753328,0.192914,0.753328,0.192914,0.733803,0.175350,0.733803,0.000000]},{w:"o ",p:[0.177638,0.782959,0.198673,0.782959,0.198673,0.763434,0.177638,0.763434,0.000000,0.000000]},{w:"Uraian ",p:[0.325827,0.768244,0.412919,0.768244,0.412919,0.748720,0.325827,0.748720,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000]},{w:"201",p:[0.536293,0.753328,0.580439,0.753328,0.580439,0.733803,0.536293,0.733803,0.000000,0.000000,0.000000]},{w:"2 ",p:[0.550925,0.782959,0.573390,0.782959,0.573390,0.763434,0.550925,0.763434,0.000000,0.000000]},{w:"201",p:[0.619269,0.753328,0.663415,0.753328,0.663415,0.733803,0.619269,0.733803,0.000000,0.000000,0.000000]},{w:"3 ",p:[0.633853,0.782959,0.656318,0.782959,0.656318,0.763434,0.633853,0.763434,0.000000,0.000000]},{w:"201",p:[0.695906,0.753328,0.740052,0.753328,0.740052,0.733803,0.695906,0.733803,0.000000,0.000000,0.000000]},{w:"4 ",p:[0.710490,0.782959,0.732955,0.782959,0.732955,0.763434,0.710490,0.763434,0.000000,0.000000]},{w:"201",p:[0.772901,0.753328,0.817047,0.753328,0.817047,0.733803,0.772901,0.733803,0.000000,0.000000,0.000000]},{w:"5 ",p:[0.787485,0.782959,0.809949,0.782959,0.809949,0.763434,0.787485,0.763434,0.000000,0.000000]},{w:"201",p:[0.849538,0.753328,0.893684,0.753328,0.893684,0.733803,0.849538,0.733803,0.000000,0.000000,0.000000]},{w:"6 ",p:[0.864122,0.782959,0.886587,0.782959,0.886587,0.763434,0.864122,0.763434,0.000000,0.000000]},{w:"1 ",p:[0.169059,0.833604,0.191524,0.833604,0.191524,0.814079,0.169059,0.814079,0.000000,0.000000]},{w:"Daging ",p:[0.222820,0.833604,0.311540,0.833604,0.311540,0.814079,0.222820,0.814079,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000]},{w:"4,1 ",p:[0.541202,0.833604,0.585972,0.833604,0.585972,0.814079,0.541202,0.814079,0.000000,0.000000,0.000000,0.000000]},{w:"6,8 ",p:[0.620985,0.833604,0.665754,0.833604,0.665754,0.814079,0.620985,0.814079,0.000000,0.000000,0.000000,0.000000]},{w:"1,4 ",p:[0.700767,0.833604,0.745537,0.833604,0.745537,0.814079,0.700767,0.814079,0.000000,0.000000,0.000000,0.000000]},{w:"2,3 ",p:[0.777762,0.833604,0.822532,0.833604,0.822532,0.814079,0.777762,0.814079,0.000000,0.000000,0.000000,0.000000]},{w:"2,7 ",p:[0.854399,0.833604,0.899169,0.833604,0.899169,0.814079,0.854399,0.814079,0.000000,0.000000,0.000000,0.000000]}]};
|
import express from "express";
import constructRootWordCtrl from "../controllers/constructRootWord.controller";
import userCtrl from "../controllers/user.controller";
import authCtrl from "../controllers/auth.controller";
const router = express.Router();
router
.route("/api/constructs/rootWords/by/:userId")
.post(
authCtrl.requireSignin,
authCtrl.hasAuthorization,
constructRootWordCtrl.create
)
.put(
authCtrl.requireSignin,
authCtrl.hasAuthorization,
constructRootWordCtrl.update
)
.get(
authCtrl.requireSignin,
authCtrl.hasAuthorization,
constructRootWordCtrl.listByOwner
);
router
.route("/api/constructs/rootWords/byId/:userId")
.get(
authCtrl.requireSignin,
authCtrl.hasAuthorization,
constructRootWordCtrl.readById)
router
.route("/api/constructs/rootWords/byMaxUpdateDate/:userId")
.get(
authCtrl.requireSignin,
authCtrl.hasAuthorization,
constructRootWordCtrl.getCurrentConstructByMaxUpdateDateAndUserId
);
router
.route("/api/constructs/rootWords/byCriteria/:userId")
.get(
authCtrl.requireSignin,
authCtrl.hasAuthorization,
constructRootWordCtrl.listByCriteria
);
router
.route("/api/constructs/rootWords/photo/:constructRootWordId")
.get(constructRootWordCtrl.photo, constructRootWordCtrl.defaultPhoto);
router
.route("/api/constructs/rootWords/defaultphoto")
.get(constructRootWordCtrl.defaultPhoto);
router
.route("/api/constructs/rootWords/:constructRootWordId")
.get(
authCtrl.requireSignin,
//authCtrl.hasAuthorization,
constructRootWordCtrl.readById)
router
.route("/api/constructs/rootWords/load/by/:userId")
.put(
authCtrl.requireSignin,
authCtrl.hasAuthorization,
authCtrl.requireSignin, constructRootWordCtrl.loadGutenbergRootWordData);
router.param(
"constructRootWordId",
constructRootWordCtrl.constructRootWordById
);
router.param("userId", userCtrl.userById);
export default router;
|
/*
* Copyright (C) 2007, 2008 Apple Inc. All rights reserved.
* Copyright (C) 2009 Joseph Pecoraro
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. Neither the name of Apple Computer, Inc. ("Apple") nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
/**
* @constructor
* @extends {WebInspector.VBox}
* @implements {WebInspector.Searchable}
* @implements {WebInspector.TargetManager.Observer}
* @implements {WebInspector.ViewportControl.Provider}
*/
WebInspector.ConsoleView = function()
{
WebInspector.VBox.call(this);
this.setMinimumSize(0, 35);
this.registerRequiredCSS("console/consoleView.css");
this._searchableView = new WebInspector.SearchableView(this);
this._searchableView.setPlaceholder(WebInspector.UIString("Find string in logs"));
this._searchableView.setMinimalSearchQuerySize(0);
this._searchableView.show(this.element);
this._contentsElement = this._searchableView.element;
this._contentsElement.classList.add("console-view");
/** @type {!Array.<!WebInspector.ConsoleViewMessage>} */
this._visibleViewMessages = [];
this._urlToMessageCount = {};
this._hiddenByFilterCount = 0;
/**
* @type {!Array.<!WebInspector.ConsoleView.RegexMatchRange>}
*/
this._regexMatchRanges = [];
this._executionContextComboBox = new WebInspector.ToolbarComboBox(null, "console-context");
this._executionContextComboBox.setMaxWidth(200);
this._executionContextModel = new WebInspector.ConsoleContextSelector(this._executionContextComboBox.selectElement());
this._filter = new WebInspector.ConsoleViewFilter(this);
this._filter.addEventListener(WebInspector.ConsoleViewFilter.Events.FilterChanged, this._updateMessageList.bind(this));
this._filterBar = new WebInspector.FilterBar("consoleView");
this._preserveLogCheckbox = new WebInspector.ToolbarCheckbox(WebInspector.UIString("Preserve log"), WebInspector.UIString("Do not clear log on page reload / navigation"), WebInspector.moduleSetting("preserveConsoleLog"));
this._progressToolbarItem = new WebInspector.ToolbarItem(createElement("div"));
var toolbar = new WebInspector.Toolbar("", this._contentsElement);
toolbar.appendToolbarItem(WebInspector.Toolbar.createActionButton(/** @type {!WebInspector.Action }*/ (WebInspector.actionRegistry.action("console.clear"))));
toolbar.appendToolbarItem(this._filterBar.filterButton());
toolbar.appendToolbarItem(this._executionContextComboBox);
toolbar.appendToolbarItem(this._preserveLogCheckbox);
toolbar.appendToolbarItem(this._progressToolbarItem);
this._filterBar.show(this._contentsElement);
this._filter.addFilters(this._filterBar);
this._viewport = new WebInspector.ViewportControl(this);
this._viewport.setStickToBottom(true);
this._viewport.contentElement().classList.add("console-group", "console-group-messages");
this._contentsElement.appendChild(this._viewport.element);
this._messagesElement = this._viewport.element;
this._messagesElement.id = "console-messages";
this._messagesElement.classList.add("monospace");
this._messagesElement.addEventListener("click", this._messagesClicked.bind(this), true);
this._viewportThrottler = new WebInspector.Throttler(50);
this._filterStatusMessageElement = createElementWithClass("div", "console-message");
this._messagesElement.insertBefore(this._filterStatusMessageElement, this._messagesElement.firstChild);
this._filterStatusTextElement = this._filterStatusMessageElement.createChild("span", "console-info");
this._filterStatusMessageElement.createTextChild(" ");
var resetFiltersLink = this._filterStatusMessageElement.createChild("span", "console-info link");
resetFiltersLink.textContent = WebInspector.UIString("Show all messages.");
resetFiltersLink.addEventListener("click", this._filter.reset.bind(this._filter), true);
this._topGroup = WebInspector.ConsoleGroup.createTopGroup();
this._currentGroup = this._topGroup;
this._promptElement = this._messagesElement.createChild("div", "source-code");
this._promptElement.id = "console-prompt";
this._promptElement.spellcheck = false;
this._searchableView.setDefaultFocusedElement(this._promptElement);
// FIXME: This is a workaround for the selection machinery bug. See crbug.com/410899
var selectAllFixer = this._messagesElement.createChild("div", "console-view-fix-select-all");
selectAllFixer.textContent = ".";
this._showAllMessagesCheckbox = new WebInspector.ToolbarCheckbox(WebInspector.UIString("Show all messages"));
this._showAllMessagesCheckbox.inputElement.checked = true;
this._showAllMessagesCheckbox.inputElement.addEventListener("change", this._updateMessageList.bind(this), false);
this._showAllMessagesCheckbox.element.classList.add("hidden");
toolbar.appendToolbarItem(this._showAllMessagesCheckbox);
this._registerShortcuts();
this._messagesElement.addEventListener("contextmenu", this._handleContextMenuEvent.bind(this), false);
WebInspector.moduleSetting("monitoringXHREnabled").addChangeListener(this._monitoringXHREnabledSettingChanged, this);
this._linkifier = new WebInspector.Linkifier();
/** @type {!Array.<!WebInspector.ConsoleViewMessage>} */
this._consoleMessages = [];
this._viewMessageSymbol = Symbol("viewMessage");
this._prompt = new WebInspector.TextPromptWithHistory(WebInspector.ExecutionContextSelector.completionsForTextPromptInCurrentContext);
this._prompt.setSuggestBoxEnabled(true);
this._prompt.setAutocompletionTimeout(0);
this._prompt.renderAsBlock();
var proxyElement = this._prompt.attach(this._promptElement);
proxyElement.addEventListener("keydown", this._promptKeyDown.bind(this), false);
this._consoleHistorySetting = WebInspector.settings.createLocalSetting("consoleHistory", []);
var historyData = this._consoleHistorySetting.get();
this._prompt.setHistoryData(historyData);
this._consoleHistoryAutocompleteSetting = WebInspector.moduleSetting("consoleHistoryAutocomplete");
this._consoleHistoryAutocompleteSetting.addChangeListener(this._consoleHistoryAutocompleteChanged, this);
this._consoleHistoryAutocompleteChanged();
this._updateFilterStatus();
WebInspector.moduleSetting("consoleTimestampsEnabled").addChangeListener(this._consoleTimestampsSettingChanged, this);
this._registerWithMessageSink();
WebInspector.targetManager.observeTargets(this);
WebInspector.targetManager.addEventListener(WebInspector.TargetManager.Events.MainFrameNavigated, this._onMainFrameNavigated, this);
this._initConsoleMessages();
WebInspector.context.addFlavorChangeListener(WebInspector.ExecutionContext, this._executionContextChanged, this);
}
WebInspector.ConsoleView.persistedHistorySize = 300;
WebInspector.ConsoleView.prototype = {
/**
* @return {!WebInspector.SearchableView}
*/
searchableView: function()
{
return this._searchableView;
},
_clearHistory: function()
{
this._consoleHistorySetting.set([]);
this._prompt.setHistoryData([]);
},
_consoleHistoryAutocompleteChanged: function()
{
this._prompt.setAddCompletionsFromHistory(this._consoleHistoryAutocompleteSetting.get());
},
/**
* @param {!WebInspector.Event} event
*/
_onMainFrameNavigated: function(event)
{
if (!WebInspector.moduleSetting("preserveConsoleLog").get())
return;
var frame = /** @type {!WebInspector.ResourceTreeFrame} */(event.data);
WebInspector.console.log(WebInspector.UIString("Navigated to %s", frame.url));
},
_initConsoleMessages: function()
{
var mainTarget = WebInspector.targetManager.mainTarget();
if (!mainTarget || !mainTarget.resourceTreeModel.cachedResourcesLoaded()) {
WebInspector.targetManager.addModelListener(WebInspector.ResourceTreeModel, WebInspector.ResourceTreeModel.EventTypes.CachedResourcesLoaded, this._onResourceTreeModelLoaded, this);
return;
}
this._fetchMultitargetMessages();
},
/**
* @param {!WebInspector.Event} event
*/
_onResourceTreeModelLoaded: function(event)
{
var resourceTreeModel = event.target;
if (resourceTreeModel.target() !== WebInspector.targetManager.mainTarget())
return;
WebInspector.targetManager.removeModelListener(WebInspector.ResourceTreeModel, WebInspector.ResourceTreeModel.EventTypes.CachedResourcesLoaded, this._onResourceTreeModelLoaded, this);
this._fetchMultitargetMessages();
},
_fetchMultitargetMessages: function()
{
WebInspector.multitargetConsoleModel.addEventListener(WebInspector.ConsoleModel.Events.ConsoleCleared, this._consoleCleared, this);
WebInspector.multitargetConsoleModel.addEventListener(WebInspector.ConsoleModel.Events.MessageAdded, this._onConsoleMessageAdded, this);
WebInspector.multitargetConsoleModel.addEventListener(WebInspector.ConsoleModel.Events.MessageUpdated, this._onConsoleMessageUpdated, this);
WebInspector.multitargetConsoleModel.addEventListener(WebInspector.ConsoleModel.Events.CommandEvaluated, this._commandEvaluated, this);
WebInspector.multitargetConsoleModel.messages().forEach(this._addConsoleMessage, this);
},
/**
* @override
* @return {number}
*/
itemCount: function()
{
return this._visibleViewMessages.length;
},
/**
* @override
* @param {number} index
* @return {?WebInspector.ViewportElement}
*/
itemElement: function(index)
{
return this._visibleViewMessages[index];
},
/**
* @override
* @param {number} index
* @return {number}
*/
fastHeight: function(index)
{
return this._visibleViewMessages[index].fastHeight();
},
/**
* @override
* @return {number}
*/
minimumRowHeight: function()
{
return 16;
},
/**
* @override
* @param {!WebInspector.Target} target
*/
targetAdded: function(target)
{
this._viewport.invalidate();
if (WebInspector.targetManager.targets().length > 1 && WebInspector.targetManager.mainTarget().isPage())
this._showAllMessagesCheckbox.element.classList.toggle("hidden", false);
},
/**
* @override
* @param {!WebInspector.Target} target
*/
targetRemoved: function(target)
{
},
_registerWithMessageSink: function()
{
WebInspector.console.messages().forEach(this._addSinkMessage, this);
WebInspector.console.addEventListener(WebInspector.Console.Events.MessageAdded, messageAdded, this);
/**
* @param {!WebInspector.Event} event
* @this {WebInspector.ConsoleView}
*/
function messageAdded(event)
{
this._addSinkMessage(/** @type {!WebInspector.Console.Message} */ (event.data));
}
},
/**
* @param {!WebInspector.Console.Message} message
*/
_addSinkMessage: function(message)
{
var level = WebInspector.ConsoleMessage.MessageLevel.Debug;
switch (message.level) {
case WebInspector.Console.MessageLevel.Error:
level = WebInspector.ConsoleMessage.MessageLevel.Error;
break;
case WebInspector.Console.MessageLevel.Warning:
level = WebInspector.ConsoleMessage.MessageLevel.Warning;
break;
}
var consoleMessage = new WebInspector.ConsoleMessage(null, WebInspector.ConsoleMessage.MessageSource.Other, level, message.text,
undefined, undefined, undefined, undefined, undefined, undefined, undefined, message.timestamp);
this._addConsoleMessage(consoleMessage);
},
/**
* @param {!WebInspector.Event} event
*/
_consoleTimestampsSettingChanged: function(event)
{
var enabled = /** @type {boolean} */ (event.data);
this._updateMessageList();
this._consoleMessages.forEach(function(viewMessage) {
viewMessage.updateTimestamp(enabled);
});
},
/**
* @override
* @return {!Element}
*/
defaultFocusedElement: function()
{
return this._promptElement;
},
_executionContextChanged: function()
{
this._prompt.clearAutoComplete(true);
if (!this._showAllMessagesCheckbox.checked())
this._updateMessageList();
},
willHide: function()
{
this._hidePromptSuggestBox();
},
wasShown: function()
{
this._viewport.refresh();
if (!this._prompt.isCaretInsidePrompt())
this._prompt.moveCaretToEndOfPrompt();
},
focus: function()
{
if (this._promptElement === WebInspector.currentFocusElement())
return;
// Set caret position before setting focus in order to avoid scrolling
// by focus().
this._prompt.moveCaretToEndOfPrompt();
WebInspector.setCurrentFocusElement(this._promptElement);
},
restoreScrollPositions: function()
{
if (this._viewport.scrolledToBottom())
this._immediatelyScrollToBottom();
else
WebInspector.Widget.prototype.restoreScrollPositions.call(this);
},
onResize: function()
{
this._scheduleViewportRefresh();
this._hidePromptSuggestBox();
if (this._viewport.scrolledToBottom())
this._immediatelyScrollToBottom();
for (var i = 0; i < this._visibleViewMessages.length; ++i)
this._visibleViewMessages[i].onResize();
},
_hidePromptSuggestBox: function()
{
this._prompt.hideSuggestBox();
this._prompt.clearAutoComplete(true);
},
_scheduleViewportRefresh: function()
{
/**
* @this {WebInspector.ConsoleView}
* @return {!Promise.<undefined>}
*/
function invalidateViewport()
{
if (this._needsFullUpdate) {
this._updateMessageList();
delete this._needsFullUpdate;
} else {
this._viewport.invalidate();
}
return Promise.resolve();
}
this._viewportThrottler.schedule(invalidateViewport.bind(this));
},
_immediatelyScrollToBottom: function()
{
// This will scroll viewport and trigger its refresh.
this._promptElement.scrollIntoView(true);
},
_updateFilterStatus: function()
{
this._filterStatusTextElement.textContent = WebInspector.UIString(this._hiddenByFilterCount === 1 ? "%d message is hidden by filters." : "%d messages are hidden by filters.", this._hiddenByFilterCount);
this._filterStatusMessageElement.style.display = this._hiddenByFilterCount ? "" : "none";
},
/**
* @param {!WebInspector.Event} event
*/
_onConsoleMessageAdded: function(event)
{
var message = /** @type {!WebInspector.ConsoleMessage} */ (event.data);
this._addConsoleMessage(message);
},
/**
* @param {!WebInspector.ConsoleMessage} message
*/
_addConsoleMessage: function(message)
{
/**
* @param {!WebInspector.ConsoleViewMessage} viewMessage1
* @param {!WebInspector.ConsoleViewMessage} viewMessage2
* @return {number}
*/
function compareTimestamps(viewMessage1, viewMessage2)
{
return WebInspector.ConsoleMessage.timestampComparator(viewMessage1.consoleMessage(), viewMessage2.consoleMessage());
}
if (message.type === WebInspector.ConsoleMessage.MessageType.Command || message.type === WebInspector.ConsoleMessage.MessageType.Result)
message.timestamp = this._consoleMessages.length ? this._consoleMessages.peekLast().consoleMessage().timestamp : 0;
var viewMessage = this._createViewMessage(message);
message[this._viewMessageSymbol] = viewMessage;
var insertAt = this._consoleMessages.upperBound(viewMessage, compareTimestamps)
var insertedInMiddle = insertAt < this._consoleMessages.length;
this._consoleMessages.splice(insertAt, 0, viewMessage);
if (this._urlToMessageCount[message.url])
++this._urlToMessageCount[message.url];
else
this._urlToMessageCount[message.url] = 1;
if (!insertedInMiddle) {
this._appendMessageToEnd(viewMessage);
this._updateFilterStatus();
this._searchableView.updateSearchMatchesCount(this._regexMatchRanges.length);
} else {
this._needsFullUpdate = true;
}
this._scheduleViewportRefresh();
this._consoleMessageAddedForTest(viewMessage);
},
/**
* @param {!WebInspector.Event} event
*/
_onConsoleMessageUpdated: function(event)
{
var message = /** @type {!WebInspector.ConsoleMessage} */ (event.data);
var viewMessage = message[this._viewMessageSymbol];
if (viewMessage) {
viewMessage.updateMessageElement();
this._updateMessageList();
}
},
/**
* @param {!WebInspector.ConsoleViewMessage} viewMessage
*/
_consoleMessageAddedForTest: function(viewMessage) { },
/**
* @param {!WebInspector.ConsoleViewMessage} viewMessage
*/
_appendMessageToEnd: function(viewMessage)
{
if (!this._filter.shouldBeVisible(viewMessage)) {
this._hiddenByFilterCount++;
return;
}
if (this._tryToCollapseMessages(viewMessage, this._visibleViewMessages.peekLast()))
return;
var lastMessage = this._visibleViewMessages.peekLast();
if (viewMessage.consoleMessage().type === WebInspector.ConsoleMessage.MessageType.EndGroup) {
if (lastMessage && !this._currentGroup.messagesHidden())
lastMessage.incrementCloseGroupDecorationCount();
this._currentGroup = this._currentGroup.parentGroup();
return;
}
if (!this._currentGroup.messagesHidden()) {
var originatingMessage = viewMessage.consoleMessage().originatingMessage();
if (lastMessage && originatingMessage && lastMessage.consoleMessage() === originatingMessage)
lastMessage.toMessageElement().classList.add("console-adjacent-user-command-result");
this._visibleViewMessages.push(viewMessage);
this._searchMessage(this._visibleViewMessages.length - 1);
}
if (viewMessage.consoleMessage().isGroupStartMessage())
this._currentGroup = new WebInspector.ConsoleGroup(this._currentGroup, viewMessage);
this._messageAppendedForTests();
},
_messageAppendedForTests: function()
{
// This method is sniffed in tests.
},
/**
* @param {!WebInspector.ConsoleMessage} message
* @return {!WebInspector.ConsoleViewMessage}
*/
_createViewMessage: function(message)
{
var nestingLevel = this._currentGroup.nestingLevel();
switch (message.type) {
case WebInspector.ConsoleMessage.MessageType.Command:
return new WebInspector.ConsoleCommand(message, this._linkifier, nestingLevel);
case WebInspector.ConsoleMessage.MessageType.Result:
return new WebInspector.ConsoleCommandResult(message, this._linkifier, nestingLevel);
case WebInspector.ConsoleMessage.MessageType.StartGroupCollapsed:
case WebInspector.ConsoleMessage.MessageType.StartGroup:
return new WebInspector.ConsoleGroupViewMessage(message, this._linkifier, nestingLevel);
default:
return new WebInspector.ConsoleViewMessage(message, this._linkifier, nestingLevel);
}
},
_consoleCleared: function()
{
this._currentMatchRangeIndex = -1;
this._consoleMessages = [];
this._updateMessageList();
this._hidePromptSuggestBox();
this._linkifier.reset();
},
_handleContextMenuEvent: function(event)
{
if (event.target.enclosingNodeOrSelfWithNodeName("a"))
return;
var contextMenu = new WebInspector.ContextMenu(event);
if (event.target.isSelfOrDescendant(this._promptElement)) {
contextMenu.show()
return;
}
function monitoringXHRItemAction()
{
WebInspector.moduleSetting("monitoringXHREnabled").set(!WebInspector.moduleSetting("monitoringXHREnabled").get());
}
contextMenu.appendCheckboxItem(WebInspector.UIString("Log XMLHttpRequests"), monitoringXHRItemAction, WebInspector.moduleSetting("monitoringXHREnabled").get());
var sourceElement = event.target.enclosingNodeOrSelfWithClass("console-message-wrapper");
var consoleMessage = sourceElement ? sourceElement.message.consoleMessage() : null;
var filterSubMenu = contextMenu.appendSubMenuItem(WebInspector.UIString("Filter"));
if (consoleMessage && consoleMessage.url) {
var menuTitle = WebInspector.UIString.capitalize("Hide ^messages from %s", new WebInspector.ParsedURL(consoleMessage.url).displayName);
filterSubMenu.appendItem(menuTitle, this._filter.addMessageURLFilter.bind(this._filter, consoleMessage.url));
}
filterSubMenu.appendSeparator();
var unhideAll = filterSubMenu.appendItem(WebInspector.UIString.capitalize("Unhide ^all"), this._filter.removeMessageURLFilter.bind(this._filter));
filterSubMenu.appendSeparator();
var hasFilters = false;
for (var url in this._filter.messageURLFilters) {
filterSubMenu.appendCheckboxItem(String.sprintf("%s (%d)", new WebInspector.ParsedURL(url).displayName, this._urlToMessageCount[url]), this._filter.removeMessageURLFilter.bind(this._filter, url), true);
hasFilters = true;
}
filterSubMenu.setEnabled(hasFilters || (consoleMessage && consoleMessage.url));
unhideAll.setEnabled(hasFilters);
contextMenu.appendSeparator();
contextMenu.appendAction("console.clear");
contextMenu.appendAction("console.clear.history");
contextMenu.appendItem(WebInspector.UIString("Save as..."), this._saveConsole.bind(this));
var request = consoleMessage ? consoleMessage.request : null;
if (request && request.resourceType() === WebInspector.resourceTypes.XHR) {
contextMenu.appendSeparator();
contextMenu.appendItem(WebInspector.UIString("Replay XHR"), request.replayXHR.bind(request));
}
contextMenu.show();
},
_saveConsole: function()
{
var filename = String.sprintf("%s-%d.log", WebInspector.targetManager.inspectedPageDomain(), Date.now());
var stream = new WebInspector.FileOutputStream();
var progressIndicator = new WebInspector.ProgressIndicator();
progressIndicator.setTitle(WebInspector.UIString("Writing file…"));
progressIndicator.setTotalWork(this.itemCount());
/** @const */
var chunkSize = 350;
var messageIndex = 0;
stream.open(filename, openCallback.bind(this));
/**
* @param {boolean} accepted
* @this {WebInspector.ConsoleView}
*/
function openCallback(accepted)
{
if (!accepted)
return;
this._progressToolbarItem.element.appendChild(progressIndicator.element);
writeNextChunk.call(this, stream);
}
/**
* @param {!WebInspector.OutputStream} stream
* @param {string=} error
* @this {WebInspector.ConsoleView}
*/
function writeNextChunk(stream, error)
{
if (messageIndex >= this.itemCount() || error) {
stream.close();
progressIndicator.done();
return;
}
var lines = [];
for (var i = 0; i < chunkSize && i + messageIndex < this.itemCount(); ++i) {
var message = this.itemElement(messageIndex + i);
lines.push(message.searchableElement().deepTextContent());
}
messageIndex += i;
stream.write(lines.join("\n") + "\n", writeNextChunk.bind(this));
progressIndicator.setWorked(messageIndex);
}
},
/**
* @param {!WebInspector.ConsoleViewMessage} lastMessage
* @param {?WebInspector.ConsoleViewMessage=} viewMessage
* @return {boolean}
*/
_tryToCollapseMessages: function(lastMessage, viewMessage)
{
if (!WebInspector.moduleSetting("consoleTimestampsEnabled").get() && viewMessage && !lastMessage.consoleMessage().isGroupMessage() && lastMessage.consoleMessage().isEqual(viewMessage.consoleMessage())) {
viewMessage.incrementRepeatCount();
return true;
}
return false;
},
_updateMessageList: function()
{
this._topGroup = WebInspector.ConsoleGroup.createTopGroup();
this._currentGroup = this._topGroup;
this._regexMatchRanges = [];
this._hiddenByFilterCount = 0;
for (var i = 0; i < this._visibleViewMessages.length; ++i) {
this._visibleViewMessages[i].resetCloseGroupDecorationCount();
this._visibleViewMessages[i].resetIncrementRepeatCount();
}
this._visibleViewMessages = [];
for (var i = 0; i < this._consoleMessages.length; ++i)
this._appendMessageToEnd(this._consoleMessages[i]);
this._updateFilterStatus();
this._searchableView.updateSearchMatchesCount(this._regexMatchRanges.length);
this._viewport.invalidate();
},
/**
* @param {!WebInspector.Event} event
*/
_monitoringXHREnabledSettingChanged: function(event)
{
var enabled = /** @type {boolean} */ (event.data);
WebInspector.targetManager.targets().forEach(function(target) {target.networkAgent().setMonitoringXHREnabled(enabled);});
},
/**
* @param {!Event} event
*/
_messagesClicked: function(event)
{
var targetElement = event.deepElementFromPoint();
if (!this._prompt.isCaretInsidePrompt() && (!targetElement || targetElement.isComponentSelectionCollapsed()))
this._prompt.moveCaretToEndOfPrompt();
var groupMessage = event.target.enclosingNodeOrSelfWithClass("console-group-title");
if (!groupMessage)
return;
var consoleGroupViewMessage = groupMessage.parentElement.message;
consoleGroupViewMessage.setCollapsed(!consoleGroupViewMessage.collapsed());
this._updateMessageList();
},
_registerShortcuts: function()
{
this._shortcuts = {};
var shortcut = WebInspector.KeyboardShortcut;
var section = WebInspector.shortcutsScreen.section(WebInspector.UIString("Console"));
var shortcutL = shortcut.makeDescriptor("l", WebInspector.KeyboardShortcut.Modifiers.Ctrl);
var keys = [shortcutL];
if (WebInspector.isMac()) {
var shortcutK = shortcut.makeDescriptor("k", WebInspector.KeyboardShortcut.Modifiers.Meta);
keys.unshift(shortcutK);
}
section.addAlternateKeys(keys, WebInspector.UIString("Clear console"));
section.addKey(shortcut.makeDescriptor(shortcut.Keys.Tab), WebInspector.UIString("Autocomplete common prefix"));
section.addKey(shortcut.makeDescriptor(shortcut.Keys.Right), WebInspector.UIString("Accept suggestion"));
var shortcutU = shortcut.makeDescriptor("u", WebInspector.KeyboardShortcut.Modifiers.Ctrl);
this._shortcuts[shortcutU.key] = this._clearPromptBackwards.bind(this);
section.addAlternateKeys([shortcutU], WebInspector.UIString("Clear console prompt"));
keys = [
shortcut.makeDescriptor(shortcut.Keys.Down),
shortcut.makeDescriptor(shortcut.Keys.Up)
];
section.addRelatedKeys(keys, WebInspector.UIString("Next/previous line"));
if (WebInspector.isMac()) {
keys = [
shortcut.makeDescriptor("N", shortcut.Modifiers.Alt),
shortcut.makeDescriptor("P", shortcut.Modifiers.Alt)
];
section.addRelatedKeys(keys, WebInspector.UIString("Next/previous command"));
}
section.addKey(shortcut.makeDescriptor(shortcut.Keys.Enter), WebInspector.UIString("Execute command"));
},
_clearPromptBackwards: function()
{
this._prompt.setText("");
},
_promptKeyDown: function(event)
{
if (isEnterKey(event)) {
this._enterKeyPressed(event);
return;
}
var shortcut = WebInspector.KeyboardShortcut.makeKeyFromEvent(event);
var handler = this._shortcuts[shortcut];
if (handler) {
handler();
event.preventDefault();
}
},
_enterKeyPressed: function(event)
{
if (event.altKey || event.ctrlKey || event.shiftKey)
return;
event.consume(true);
this._prompt.clearAutoComplete(true);
var str = this._prompt.text();
if (!str.length)
return;
this._appendCommand(str, true);
},
/**
* @param {?WebInspector.RemoteObject} result
* @param {boolean} wasThrown
* @param {!WebInspector.ConsoleMessage} originatingConsoleMessage
* @param {?RuntimeAgent.ExceptionDetails=} exceptionDetails
*/
_printResult: function(result, wasThrown, originatingConsoleMessage, exceptionDetails)
{
if (!result)
return;
var level = wasThrown ? WebInspector.ConsoleMessage.MessageLevel.Error : WebInspector.ConsoleMessage.MessageLevel.Log;
var message;
if (!wasThrown)
message = new WebInspector.ConsoleMessage(result.target(), WebInspector.ConsoleMessage.MessageSource.JS, level, "", WebInspector.ConsoleMessage.MessageType.Result, undefined, undefined, undefined, undefined, [result]);
else
message = new WebInspector.ConsoleMessage(result.target(), WebInspector.ConsoleMessage.MessageSource.JS, level, exceptionDetails.text, WebInspector.ConsoleMessage.MessageType.Result, exceptionDetails.url, exceptionDetails.line, exceptionDetails.column, undefined, [WebInspector.UIString("Uncaught"), result], exceptionDetails.stack, undefined, undefined, exceptionDetails.scriptId);
message.setOriginatingMessage(originatingConsoleMessage);
result.target().consoleModel.addMessage(message);
},
/**
* @param {string} text
* @param {boolean} useCommandLineAPI
*/
_appendCommand: function(text, useCommandLineAPI)
{
this._prompt.setText("");
var currentExecutionContext = WebInspector.context.flavor(WebInspector.ExecutionContext);
if (currentExecutionContext) {
WebInspector.ConsoleModel.evaluateCommandInConsole(currentExecutionContext, text, useCommandLineAPI);
if (WebInspector.inspectorView.currentPanel() && WebInspector.inspectorView.currentPanel().name === "console")
WebInspector.userMetrics.actionTaken(WebInspector.UserMetrics.Action.CommandEvaluatedInConsolePanel);
}
},
/**
* @param {!WebInspector.Event} event
*/
_commandEvaluated: function(event)
{
var data = /** @type {{result: ?WebInspector.RemoteObject, wasThrown: boolean, text: string, commandMessage: !WebInspector.ConsoleMessage}} */ (event.data);
this._prompt.pushHistoryItem(data.text);
this._consoleHistorySetting.set(this._prompt.historyData().slice(-WebInspector.ConsoleView.persistedHistorySize));
this._printResult(data.result, data.wasThrown, data.commandMessage, data.exceptionDetails);
},
/**
* @override
* @return {!Array.<!Element>}
*/
elementsToRestoreScrollPositionsFor: function()
{
return [this._messagesElement];
},
/**
* @override
*/
searchCanceled: function()
{
this._cleanupAfterSearch();
for (var i = 0; i < this._visibleViewMessages.length; ++i) {
var message = this._visibleViewMessages[i];
message.setSearchRegex(null);
}
this._currentMatchRangeIndex = -1;
this._regexMatchRanges = [];
delete this._searchRegex;
this._viewport.refresh();
},
/**
* @override
* @param {!WebInspector.SearchableView.SearchConfig} searchConfig
* @param {boolean} shouldJump
* @param {boolean=} jumpBackwards
*/
performSearch: function(searchConfig, shouldJump, jumpBackwards)
{
this.searchCanceled();
this._searchableView.updateSearchMatchesCount(0);
this._searchRegex = searchConfig.toSearchRegex(true);
this._regexMatchRanges = [];
this._currentMatchRangeIndex = -1;
if (shouldJump)
this._searchShouldJumpBackwards = !!jumpBackwards;
this._searchProgressIndicator = new WebInspector.ProgressIndicator();
this._searchProgressIndicator.setTitle(WebInspector.UIString("Searching…"));
this._searchProgressIndicator.setTotalWork(this._visibleViewMessages.length);
this._progressToolbarItem.element.appendChild(this._searchProgressIndicator.element);
this._innerSearch(0);
},
_cleanupAfterSearch: function()
{
delete this._searchShouldJumpBackwards;
if (this._innerSearchTimeoutId) {
clearTimeout(this._innerSearchTimeoutId);
delete this._innerSearchTimeoutId;
}
if (this._searchProgressIndicator) {
this._searchProgressIndicator.done();
delete this._searchProgressIndicator;
}
},
_searchFinishedForTests: function()
{
// This method is sniffed in tests.
},
/**
* @param {number} index
*/
_innerSearch: function(index)
{
delete this._innerSearchTimeoutId;
if (this._searchProgressIndicator.isCanceled()) {
this._cleanupAfterSearch();
return;
}
var startTime = Date.now();
for (; index < this._visibleViewMessages.length && Date.now() - startTime < 100; ++index)
this._searchMessage(index);
this._searchableView.updateSearchMatchesCount(this._regexMatchRanges.length);
if (typeof this._searchShouldJumpBackwards !== "undefined" && this._regexMatchRanges.length) {
this._jumpToMatch(this._searchShouldJumpBackwards ? -1 : 0);
delete this._searchShouldJumpBackwards;
}
if (index === this._visibleViewMessages.length) {
this._cleanupAfterSearch();
setTimeout(this._searchFinishedForTests.bind(this), 0);
return;
}
this._innerSearchTimeoutId = setTimeout(this._innerSearch.bind(this, index), 100);
this._searchProgressIndicator.setWorked(index);
},
/**
* @param {number} index
*/
_searchMessage: function(index)
{
var message = this._visibleViewMessages[index];
message.setSearchRegex(this._searchRegex);
for (var i = 0; i < message.searchCount(); ++i) {
this._regexMatchRanges.push({
messageIndex: index,
matchIndex: i
});
}
},
/**
* @override
*/
jumpToNextSearchResult: function()
{
this._jumpToMatch(this._currentMatchRangeIndex + 1);
},
/**
* @override
*/
jumpToPreviousSearchResult: function()
{
this._jumpToMatch(this._currentMatchRangeIndex - 1);
},
/**
* @override
* @return {boolean}
*/
supportsCaseSensitiveSearch: function()
{
return true;
},
/**
* @override
* @return {boolean}
*/
supportsRegexSearch: function()
{
return true;
},
/**
* @param {number} index
*/
_jumpToMatch: function(index)
{
if (!this._regexMatchRanges.length)
return;
var matchRange;
if (this._currentMatchRangeIndex >= 0) {
matchRange = this._regexMatchRanges[this._currentMatchRangeIndex];
var message = this._visibleViewMessages[matchRange.messageIndex];
message.searchHighlightNode(matchRange.matchIndex).classList.remove(WebInspector.highlightedCurrentSearchResultClassName);
}
index = mod(index, this._regexMatchRanges.length);
this._currentMatchRangeIndex = index;
this._searchableView.updateCurrentMatchIndex(index);
matchRange = this._regexMatchRanges[index];
var message = this._visibleViewMessages[matchRange.messageIndex];
var highlightNode = message.searchHighlightNode(matchRange.matchIndex);
highlightNode.classList.add(WebInspector.highlightedCurrentSearchResultClassName);
this._viewport.scrollItemIntoView(matchRange.messageIndex);
highlightNode.scrollIntoViewIfNeeded();
},
__proto__: WebInspector.VBox.prototype
}
/**
* @constructor
* @extends {WebInspector.Object}
* @param {!WebInspector.ConsoleView} view
*/
WebInspector.ConsoleViewFilter = function(view)
{
this._messageURLFiltersSetting = WebInspector.settings.createSetting("messageURLFilters", {});
this._messageLevelFiltersSetting = WebInspector.settings.createSetting("messageLevelFilters", {});
this._view = view;
this._messageURLFilters = this._messageURLFiltersSetting.get();
this._filterChanged = this.dispatchEventToListeners.bind(this, WebInspector.ConsoleViewFilter.Events.FilterChanged);
};
WebInspector.ConsoleViewFilter.Events = {
FilterChanged: "FilterChanged"
};
WebInspector.ConsoleViewFilter.prototype = {
addFilters: function(filterBar)
{
this._textFilterUI = new WebInspector.TextFilterUI(true);
this._textFilterUI.addEventListener(WebInspector.FilterUI.Events.FilterChanged, this._textFilterChanged, this);
filterBar.addFilter(this._textFilterUI);
this._hideNetworkMessagesCheckbox = new WebInspector.CheckboxFilterUI("hide-network-messages", WebInspector.UIString("Hide network messages"), true, WebInspector.moduleSetting("hideNetworkMessages"));
this._hideNetworkMessagesCheckbox.addEventListener(WebInspector.FilterUI.Events.FilterChanged, this._filterChanged.bind(this), this);
filterBar.addFilter(this._hideNetworkMessagesCheckbox);
var levels = [
{name: WebInspector.ConsoleMessage.MessageLevel.Error, label: WebInspector.UIString("Errors")},
{name: WebInspector.ConsoleMessage.MessageLevel.Warning, label: WebInspector.UIString("Warnings")},
{name: WebInspector.ConsoleMessage.MessageLevel.Info, label: WebInspector.UIString("Info")},
{name: WebInspector.ConsoleMessage.MessageLevel.Log, label: WebInspector.UIString("Logs")},
{name: WebInspector.ConsoleMessage.MessageLevel.Debug, label: WebInspector.UIString("Debug")},
{name: WebInspector.ConsoleMessage.MessageLevel.RevokedError, label: WebInspector.UIString("Handled")}
];
this._levelFilterUI = new WebInspector.NamedBitSetFilterUI(levels, this._messageLevelFiltersSetting);
this._levelFilterUI.addEventListener(WebInspector.FilterUI.Events.FilterChanged, this._filterChanged, this);
filterBar.addFilter(this._levelFilterUI);
},
_textFilterChanged: function(event)
{
this._filterRegex = this._textFilterUI.regex();
this._filterChanged();
},
/**
* @param {string} url
*/
addMessageURLFilter: function(url)
{
this._messageURLFilters[url] = true;
this._messageURLFiltersSetting.set(this._messageURLFilters);
this._filterChanged();
},
/**
* @param {string} url
*/
removeMessageURLFilter: function(url)
{
if (!url)
this._messageURLFilters = {};
else
delete this._messageURLFilters[url];
this._messageURLFiltersSetting.set(this._messageURLFilters);
this._filterChanged();
},
/**
* @returns {!Object}
*/
get messageURLFilters()
{
return this._messageURLFilters;
},
/**
* @param {!WebInspector.ConsoleViewMessage} viewMessage
* @return {boolean}
*/
shouldBeVisible: function(viewMessage)
{
var message = viewMessage.consoleMessage();
var executionContext = WebInspector.context.flavor(WebInspector.ExecutionContext);
if (!message.target())
return true;
if (!this._view._showAllMessagesCheckbox.checked() && executionContext) {
if (message.target() !== executionContext.target())
return false;
if (message.executionContextId && message.executionContextId !== executionContext.id) {
return false;
}
}
if (WebInspector.moduleSetting("hideNetworkMessages").get() && viewMessage.consoleMessage().source === WebInspector.ConsoleMessage.MessageSource.Network)
return false;
if (viewMessage.consoleMessage().isGroupMessage())
return true;
if (message.type === WebInspector.ConsoleMessage.MessageType.Result || message.type === WebInspector.ConsoleMessage.MessageType.Command)
return true;
if (message.url && this._messageURLFilters[message.url])
return false;
if (message.level && !this._levelFilterUI.accept(message.level))
return false;
if (this._filterRegex) {
this._filterRegex.lastIndex = 0;
if (!viewMessage.matchesFilterRegex(this._filterRegex))
return false;
}
return true;
},
reset: function()
{
this._messageURLFilters = {};
this._messageURLFiltersSetting.set(this._messageURLFilters);
this._messageLevelFiltersSetting.set({});
this._view._showAllMessagesCheckbox.inputElement.checked = true;
WebInspector.moduleSetting("hideNetworkMessages").set(false);
this._textFilterUI.setValue("");
this._filterChanged();
},
__proto__: WebInspector.Object.prototype
};
/**
* @constructor
* @extends {WebInspector.ConsoleViewMessage}
* @param {!WebInspector.ConsoleMessage} message
* @param {!WebInspector.Linkifier} linkifier
* @param {number} nestingLevel
*/
WebInspector.ConsoleCommand = function(message, linkifier, nestingLevel)
{
WebInspector.ConsoleViewMessage.call(this, message, linkifier, nestingLevel);
}
WebInspector.ConsoleCommand.prototype = {
/**
* @override
* @return {!Element})
*/
searchableElement: function()
{
return this.contentElement();
},
/**
* @override
* @return {!Element}
*/
contentElement: function()
{
if (!this._element) {
this._element = createElementWithClass("div", "console-user-command");
this._element.message = this;
this._formattedCommand = createElementWithClass("span", "console-message-text source-code");
this._formattedCommand.textContent = this.text.replaceControlCharacters();
this._element.appendChild(this._formattedCommand);
if (this._formattedCommand.textContent.length < WebInspector.ConsoleCommand.MaxLengthToIgnoreHighlighter) {
var javascriptSyntaxHighlighter = new WebInspector.DOMSyntaxHighlighter("text/javascript", true);
javascriptSyntaxHighlighter.syntaxHighlightNode(this._formattedCommand).then(this._updateSearch.bind(this))
} else {
this._updateSearch();
}
}
return this._element;
},
_updateSearch: function()
{
this.setSearchRegex(this.searchRegex());
},
__proto__: WebInspector.ConsoleViewMessage.prototype
}
/**
* The maximum length before strings are considered too long for syntax highlighting.
* @const
* @type {number}
*/
WebInspector.ConsoleCommand.MaxLengthToIgnoreHighlighter = 10000;
/**
* @constructor
* @extends {WebInspector.ConsoleViewMessage}
* @param {!WebInspector.ConsoleMessage} message
* @param {!WebInspector.Linkifier} linkifier
* @param {number} nestingLevel
*/
WebInspector.ConsoleCommandResult = function(message, linkifier, nestingLevel)
{
WebInspector.ConsoleViewMessage.call(this, message, linkifier, nestingLevel);
}
WebInspector.ConsoleCommandResult.prototype = {
/**
* @override
* @param {!WebInspector.RemoteObject} array
* @return {boolean}
*/
useArrayPreviewInFormatter: function(array)
{
return false;
},
/**
* @override
* @return {!Element}
*/
contentElement: function()
{
var element = WebInspector.ConsoleViewMessage.prototype.contentElement.call(this);
element.classList.add("console-user-command-result");
this.updateTimestamp(false);
return element;
},
__proto__: WebInspector.ConsoleViewMessage.prototype
}
/**
* @constructor
* @param {?WebInspector.ConsoleGroup} parentGroup
* @param {?WebInspector.ConsoleViewMessage} groupMessage
*/
WebInspector.ConsoleGroup = function(parentGroup, groupMessage)
{
this._parentGroup = parentGroup;
this._nestingLevel = parentGroup ? parentGroup.nestingLevel() + 1 : 0;
this._messagesHidden = groupMessage && groupMessage.collapsed() || this._parentGroup && this._parentGroup.messagesHidden();
}
/**
* @return {!WebInspector.ConsoleGroup}
*/
WebInspector.ConsoleGroup.createTopGroup = function()
{
return new WebInspector.ConsoleGroup(null, null);
}
WebInspector.ConsoleGroup.prototype = {
/**
* @return {boolean}
*/
messagesHidden: function()
{
return this._messagesHidden;
},
/**
* @return {number}
*/
nestingLevel: function()
{
return this._nestingLevel;
},
/**
* @return {?WebInspector.ConsoleGroup}
*/
parentGroup: function()
{
return this._parentGroup || this;
},
}
/**
* @return {!WebInspector.ConsoleView}
*/
WebInspector.ConsoleView.instance = function()
{
if (!WebInspector.ConsoleView._instance)
WebInspector.ConsoleView._instance = new WebInspector.ConsoleView();
return WebInspector.ConsoleView._instance;
}
/**
* @constructor
* @implements {WebInspector.ActionDelegate}
*/
WebInspector.ConsoleView.ActionDelegate = function()
{
}
WebInspector.ConsoleView.ActionDelegate.prototype = {
/**
* @override
* @param {!WebInspector.Context} context
* @param {string} actionId
* @return {boolean}
*/
handleAction: function(context, actionId)
{
switch (actionId) {
case "console.show":
WebInspector.console.show();
return true;
case "console.clear":
WebInspector.ConsoleModel.clearConsole();
return true;
case "console.clear.history":
WebInspector.ConsoleView.instance()._clearHistory();
return true;
}
return false;
}
}
/**
* @typedef {{messageIndex: number, matchIndex: number}}
*/
WebInspector.ConsoleView.RegexMatchRange;
|
import { runQuery } from "test/utils"
import gql from "test/gql"
describe("Artists", () => {
it("returns a list of artists", async () => {
const query = gql`
{
artists(page: 1, size: 1) {
name
}
}
`
const artistsLoader = ({ page, size }) => {
if (page === 1 && size === 1) {
return Promise.resolve([
{
id: "han-myung-ok",
name: "Han Myung-Ok",
birthday: "1958",
artworks_count: 12,
},
])
}
throw new Error("Unexpected invocation")
}
const { artists } = await runQuery(query, { artistsLoader })
expect(artists).toEqual([{ name: "Han Myung-Ok" }])
})
it("returns a list of artists matching array of ids", async () => {
const artistsLoader = ({ ids }) => {
if (ids) {
return Promise.resolve(
ids.map(_id => ({ _id }))
)
}
throw new Error("Unexpected invocation")
}
const query = gql`
{
artists(ids: ["52c721e5b202a3edf1000072"]) {
_id
}
}
`
const { artists } = await runQuery(query, { artistsLoader })
expect(artists[0]._id).toEqual("52c721e5b202a3edf1000072")
})
})
|
exports.id = "main";
exports.modules = {
/***/ "./src/server/server.js":
/*!******************************!*\
!*** ./src/server/server.js ***!
\******************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _build_contracts_FlightSuretyApp_json__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../build/contracts/FlightSuretyApp.json */ \"./build/contracts/FlightSuretyApp.json\");\nvar _build_contracts_FlightSuretyApp_json__WEBPACK_IMPORTED_MODULE_0___namespace = /*#__PURE__*/__webpack_require__.t(/*! ../../build/contracts/FlightSuretyApp.json */ \"./build/contracts/FlightSuretyApp.json\", 1);\n/* harmony import */ var _config_json__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./config.json */ \"./src/server/config.json\");\nvar _config_json__WEBPACK_IMPORTED_MODULE_1___namespace = /*#__PURE__*/__webpack_require__.t(/*! ./config.json */ \"./src/server/config.json\", 1);\n/* harmony import */ var web3__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! web3 */ \"web3\");\n/* harmony import */ var web3__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(web3__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var express__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! express */ \"express\");\n/* harmony import */ var express__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(express__WEBPACK_IMPORTED_MODULE_3__);\nfunction asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\n\nfunction _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\n\n\n\n\n\nvar config = _config_json__WEBPACK_IMPORTED_MODULE_1__['localhost'];\nvar web3 = new web3__WEBPACK_IMPORTED_MODULE_2___default.a(config.url);\nweb3.eth.defaultAccount = web3.eth.accounts[0];\nvar flightSuretyApp = new web3.eth.Contract(_build_contracts_FlightSuretyApp_json__WEBPACK_IMPORTED_MODULE_0__.abi, config.appAddress);\nvar statusCodes = [0, 10, 20, 30, 40, 50];\nvar oracleCount = config.oracleCount;\n\nfunction getRandomStatus() {\n var randomIndex = Math.floor(Math.random() * 6);\n return statusCodes[randomIndex];\n}\n\nfunction registerOracles() {\n return _registerOracles.apply(this, arguments);\n}\n\nfunction _registerOracles() {\n _registerOracles = _asyncToGenerator(\n /*#__PURE__*/\n regeneratorRuntime.mark(function _callee() {\n var accounts, oracleFee, a, result;\n return regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return web3.eth.getAccounts();\n\n case 2:\n accounts = _context.sent;\n _context.next = 5;\n return flightSuretyApp.methods.REGISTRATION_FEE().call();\n\n case 5:\n oracleFee = _context.sent;\n a = 1;\n\n case 7:\n if (!(a <= oracleCount)) {\n _context.next = 17;\n break;\n }\n\n _context.next = 10;\n return flightSuretyApp.methods.registerOracle().send({\n from: accounts[a],\n value: oracleFee,\n gas: 4700000,\n gasPrice: 8000000000\n });\n\n case 10:\n _context.next = 12;\n return flightSuretyApp.methods.getOracle(accounts[a]).call();\n\n case 12:\n result = _context.sent;\n console.log(\"Oracle registred: \".concat(result[0], \", \").concat(result[1], \", \").concat(result[2]));\n\n case 14:\n a++;\n _context.next = 7;\n break;\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee);\n }));\n return _registerOracles.apply(this, arguments);\n}\n\nflightSuretyApp.events.OracleRequest({\n fromBlock: 0\n}, function (error, event) {\n if (error) {\n console.log(error);\n } else {\n var flightStatus = getRandomStatus();\n console.log(\"flighStatus: \" + flightStatus);\n console.log(\"Event.args: \" + event.args); // flightSuretyApp.submitOracleResponse(event.args.index, event.args.airline, event.args.flight, event.args.timestamp, flightStatus, { from: accounts[a] });\n }\n\n console.log(event);\n});\nvar app = express__WEBPACK_IMPORTED_MODULE_3___default()();\napp.get('/api', function (req, res) {\n res.send({\n message: 'An API for use with your Dapp!'\n });\n}); // console.log('********* test *********');\n\nregisterOracles().then(function () {\n console.log(\"** registerOracles called **\");\n})[\"catch\"](function (error) {\n console.log(\"Error: \" + error);\n});\n/* harmony default export */ __webpack_exports__[\"default\"] = (app);\n\n//# sourceURL=webpack:///./src/server/server.js?");
/***/ })
};
|
/**
* Copyright IBM Corp. 2019, 2020
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*
* Code generated by @carbon/icon-build-helpers. DO NOT EDIT.
*/
'use strict';
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var Icon = require('../Icon-e8f71a9c.js');
require('@carbon/icon-helpers');
require('prop-types');
var React = _interopDefault(require('react'));
var _ref2 =
/*#__PURE__*/
/*#__PURE__*/
React.createElement("path", {
d: "M16,20a4,4,0,1,1,4-4A4.0045,4.0045,0,0,1,16,20Zm0-6a2,2,0,1,0,2,2A2.0021,2.0021,0,0,0,16,14Z"
});
var _ref3 =
/*#__PURE__*/
/*#__PURE__*/
React.createElement("path", {
d: "M24,24H8a2.0021,2.0021,0,0,1-2-2V10A2.0021,2.0021,0,0,1,8,8H24a2.0021,2.0021,0,0,1,2,2V22A2.0021,2.0021,0,0,1,24,24ZM8,10V22H24V10Z"
});
var _ref4 =
/*#__PURE__*/
/*#__PURE__*/
React.createElement("path", {
d: "M28,28H4a2.0021,2.0021,0,0,1-2-2V6A2.0021,2.0021,0,0,1,4,4H28a2.0021,2.0021,0,0,1,2,2V26A2.0021,2.0021,0,0,1,28,28ZM4,6V26H28V6Z"
});
var NavaidDme32 = /*#__PURE__*/React.forwardRef(function NavaidDme32(_ref, ref) {
var children = _ref.children,
rest = Icon._objectWithoutProperties(_ref, ["children"]);
return /*#__PURE__*/React.createElement(Icon.Icon, Icon._extends({
width: 32,
height: 32,
viewBox: "0 0 32 32",
xmlns: "http://www.w3.org/2000/svg",
fill: "currentColor",
ref: ref
}, rest), _ref2, _ref3, _ref4, children);
});
module.exports = NavaidDme32;
|
module.exports = function(tracks, length, settings) {
let text = '';
let title = '';
if (tracks.length > 0) {
title = `Next ${tracks.length} tracks of ${length}`;
tracks.forEach(function(tlTrack, index) {
let formatted = settings.formatTrack(tlTrack.track);
text = `${text}\nTrack ${tlTrack.index}: ${formatted.track} from ${
formatted.album
} by ${formatted.artists}`;
});
} else {
title = 'Tracklist empty';
}
return [
{
fallback: title,
color: settings.color,
title: title,
text: text
}
];
};
|
module.exports = {
title: 'KenAdmin',
/**
* @type {boolean} true | false
* @description Whether fix the header
*/
fixedHeader: true,
/**
* @type {boolean} true | false
* @description Whether show the logo in sidebar
*/
sidebarLogo: false
}
|
'use strict';
describe('ngMessages', function() {
beforeEach(inject.strictDi());
beforeEach(module('ngMessages'));
function messageChildren(element) {
return (element.length ? element[0] : element).querySelectorAll('[ng-message], [ng-message-exp]');
}
function s(str) {
return str.replace(/\s+/g,'');
}
function trim(value) {
return isString(value) ? value.trim() : value;
}
var element;
afterEach(function() {
dealoc(element);
});
it('should render based off of a hashmap collection', inject(function($rootScope, $compile) {
element = $compile('<div ng-messages="col">' +
' <div ng-message="val">Message is set</div>' +
'</div>')($rootScope);
$rootScope.$digest();
expect(element.text()).not.toContain('Message is set');
$rootScope.$apply(function() {
$rootScope.col = { val: true };
});
expect(element.text()).toContain('Message is set');
}));
it('should render the same message if multiple message keys match', inject(function($rootScope, $compile) {
element = $compile('<div ng-messages="col">' +
' <div ng-message="one, two, three">Message is set</div>' +
'</div>')($rootScope);
$rootScope.$digest();
expect(element.text()).not.toContain('Message is set');
$rootScope.$apply(function() {
$rootScope.col = { one: true };
});
expect(element.text()).toContain('Message is set');
$rootScope.$apply(function() {
$rootScope.col = { two: true, one: false };
});
expect(element.text()).toContain('Message is set');
$rootScope.$apply(function() {
$rootScope.col = { three: true, two: false };
});
expect(element.text()).toContain('Message is set');
$rootScope.$apply(function() {
$rootScope.col = { three: false };
});
expect(element.text()).not.toContain('Message is set');
}));
it('should use the when attribute when an element directive is used',
inject(function($rootScope, $compile) {
element = $compile('<ng-messages for="col">' +
' <ng-message when="val">Message is set</div>' +
'</ng-messages>')($rootScope);
$rootScope.$digest();
expect(element.text()).not.toContain('Message is set');
$rootScope.$apply(function() {
$rootScope.col = { val: true };
});
expect(element.text()).toContain('Message is set');
}));
it('should render the same message if multiple message keys match based on the when attribute', inject(function($rootScope, $compile) {
element = $compile('<ng-messages for="col">' +
' <ng-message when=" one two three ">Message is set</div>' +
'</ng-messages>')($rootScope);
$rootScope.$digest();
expect(element.text()).not.toContain('Message is set');
$rootScope.$apply(function() {
$rootScope.col = { one: true };
});
expect(element.text()).toContain('Message is set');
$rootScope.$apply(function() {
$rootScope.col = { two: true, one: false };
});
expect(element.text()).toContain('Message is set');
$rootScope.$apply(function() {
$rootScope.col = { three: true, two: false };
});
expect(element.text()).toContain('Message is set');
$rootScope.$apply(function() {
$rootScope.col = { three: false };
});
expect(element.text()).not.toContain('Message is set');
}));
it('should allow a dynamic expression to be set when ng-message-exp is used',
inject(function($rootScope, $compile) {
element = $compile('<div ng-messages="col">' +
' <div ng-message-exp="variable">Message is crazy</div>' +
'</div>')($rootScope);
$rootScope.$digest();
expect(element.text()).not.toContain('Message is crazy');
$rootScope.$apply(function() {
$rootScope.variable = 'error';
$rootScope.col = { error: true };
});
expect(element.text()).toContain('Message is crazy');
$rootScope.$apply(function() {
$rootScope.col = { error: false, failure: true };
});
expect(element.text()).not.toContain('Message is crazy');
$rootScope.$apply(function() {
$rootScope.variable = ['failure'];
});
expect(element.text()).toContain('Message is crazy');
$rootScope.$apply(function() {
$rootScope.variable = null;
});
expect(element.text()).not.toContain('Message is crazy');
}));
it('should allow a dynamic expression to be set when the when-exp attribute is used',
inject(function($rootScope, $compile) {
element = $compile('<ng-messages for="col">' +
' <ng-message when-exp="variable">Message is crazy</ng-message>' +
'</ng-messages>')($rootScope);
$rootScope.$digest();
expect(element.text()).not.toContain('Message is crazy');
$rootScope.$apply(function() {
$rootScope.variable = 'error, failure';
$rootScope.col = { error: true };
});
expect(element.text()).toContain('Message is crazy');
$rootScope.$apply(function() {
$rootScope.col = { error: false, failure: true };
});
expect(element.text()).toContain('Message is crazy');
$rootScope.$apply(function() {
$rootScope.variable = [];
});
expect(element.text()).not.toContain('Message is crazy');
$rootScope.$apply(function() {
$rootScope.variable = null;
});
expect(element.text()).not.toContain('Message is crazy');
}));
they('should render empty when $prop is used as a collection value',
{ 'null': null,
'false': false,
'0': 0,
'[]': [],
'[{}]': [{}],
'': '',
'{ val2 : true }': { val2: true } },
function(prop) {
inject(function($rootScope, $compile) {
element = $compile('<div ng-messages="col">' +
' <div ng-message="val">Message is set</div>' +
'</div>')($rootScope);
$rootScope.$digest();
$rootScope.$apply(function() {
$rootScope.col = prop;
});
expect(element.text()).not.toContain('Message is set');
});
});
they('should insert and remove matching inner elements when $prop is used as a value',
{ 'true': true,
'1': 1,
'{}': {},
'[]': [],
'[null]': [null] },
function(prop) {
inject(function($rootScope, $compile) {
element = $compile('<div ng-messages="col">' +
' <div ng-message="blue">This message is blue</div>' +
' <div ng-message="red">This message is red</div>' +
'</div>')($rootScope);
$rootScope.$apply(function() {
$rootScope.col = {};
});
expect(messageChildren(element).length).toBe(0);
expect(trim(element.text())).toEqual('');
$rootScope.$apply(function() {
$rootScope.col = {
blue: true,
red: false
};
});
expect(messageChildren(element).length).toBe(1);
expect(trim(element.text())).toEqual('This message is blue');
$rootScope.$apply(function() {
$rootScope.col = {
red: prop
};
});
expect(messageChildren(element).length).toBe(1);
expect(trim(element.text())).toEqual('This message is red');
$rootScope.$apply(function() {
$rootScope.col = null;
});
expect(messageChildren(element).length).toBe(0);
expect(trim(element.text())).toEqual('');
$rootScope.$apply(function() {
$rootScope.col = {
blue: 0,
red: null
};
});
expect(messageChildren(element).length).toBe(0);
expect(trim(element.text())).toEqual('');
});
});
it('should display the elements in the order defined in the DOM',
inject(function($rootScope, $compile) {
element = $compile('<div ng-messages="col">' +
' <div ng-message="one">Message#one</div>' +
' <div ng-message="two">Message#two</div>' +
' <div ng-message="three">Message#three</div>' +
'</div>')($rootScope);
$rootScope.$apply(function() {
$rootScope.col = {
three: true,
one: true,
two: true
};
});
angular.forEach(['one','two','three'], function(key) {
expect(s(element.text())).toEqual('Message#' + key);
$rootScope.$apply(function() {
$rootScope.col[key] = false;
});
});
expect(s(element.text())).toEqual('');
}));
it('should add ng-active/ng-inactive CSS classes to the element when errors are/aren\'t displayed',
inject(function($rootScope, $compile) {
element = $compile('<div ng-messages="col">' +
' <div ng-message="ready">This message is ready</div>' +
'</div>')($rootScope);
$rootScope.$apply(function() {
$rootScope.col = {};
});
expect(element.hasClass('ng-active')).toBe(false);
expect(element.hasClass('ng-inactive')).toBe(true);
$rootScope.$apply(function() {
$rootScope.col = { ready: true };
});
expect(element.hasClass('ng-active')).toBe(true);
expect(element.hasClass('ng-inactive')).toBe(false);
}));
it('should automatically re-render the messages when other directives dynmically change them',
inject(function($rootScope, $compile) {
element = $compile('<div ng-messages="col">' +
' <div ng-message="primary">Enter something</div>' +
' <div ng-repeat="item in items">' +
' <div ng-message-exp="item.name">{{ item.text }}</div>' +
' </div>' +
'</div>')($rootScope);
$rootScope.$apply(function() {
$rootScope.col = {};
$rootScope.items = [
{ text: 'Your age is incorrect', name: 'age' },
{ text: 'You\'re too tall man!', name: 'height' },
{ text: 'Your hair is too long', name: 'hair' }
];
});
expect(messageChildren(element).length).toBe(0);
expect(trim(element.text())).toEqual("");
$rootScope.$apply(function() {
$rootScope.col = { hair: true };
});
expect(messageChildren(element).length).toBe(1);
expect(trim(element.text())).toEqual("Your hair is too long");
$rootScope.$apply(function() {
$rootScope.col = { age: true, hair: true};
});
expect(messageChildren(element).length).toBe(1);
expect(trim(element.text())).toEqual("Your age is incorrect");
$rootScope.$apply(function() {
// remove the age!
$rootScope.items.shift();
});
expect(messageChildren(element).length).toBe(1);
expect(trim(element.text())).toEqual("Your hair is too long");
$rootScope.$apply(function() {
// remove the hair!
$rootScope.items.length = 0;
$rootScope.col.primary = true;
});
expect(messageChildren(element).length).toBe(1);
expect(trim(element.text())).toEqual("Enter something");
}));
it('should be compatible with ngBind',
inject(function($rootScope, $compile) {
element = $compile('<div ng-messages="col">' +
' <div ng-message="required" ng-bind="errorMessages.required"></div>' +
' <div ng-message="extra" ng-bind="errorMessages.extra"></div>' +
'</div>')($rootScope);
$rootScope.$apply(function() {
$rootScope.col = {
required: true,
extra: true
};
$rootScope.errorMessages = {
required: 'Fill in the text field.',
extra: 'Extra error message.'
};
});
expect(messageChildren(element).length).toBe(1);
expect(trim(element.text())).toEqual('Fill in the text field.');
$rootScope.$apply(function() {
$rootScope.col.required = false;
$rootScope.col.extra = true;
});
expect(messageChildren(element).length).toBe(1);
expect(trim(element.text())).toEqual('Extra error message.');
$rootScope.$apply(function() {
$rootScope.errorMessages.extra = 'New error message.';
});
expect(messageChildren(element).length).toBe(1);
expect(trim(element.text())).toEqual('New error message.');
}));
// issue #12856
it('should only detach the message object that is associated with the message node being removed',
inject(function($rootScope, $compile, $animate) {
// We are going to spy on the `leave` method to give us control over
// when the element is actually removed
spyOn($animate, 'leave');
// Create a basic ng-messages set up
element = $compile('<div ng-messages="col">' +
' <div ng-message="primary">Enter something</div>' +
'</div>')($rootScope);
// Trigger the message to be displayed
$rootScope.col = { primary: true };
$rootScope.$digest();
expect(messageChildren(element).length).toEqual(1);
var oldMessageNode = messageChildren(element)[0];
// Remove the message
$rootScope.col = { primary: undefined };
$rootScope.$digest();
// Since we have spied on the `leave` method, the message node is still in the DOM
expect($animate.leave).toHaveBeenCalledOnce();
var nodeToRemove = $animate.leave.calls.mostRecent().args[0][0];
expect(nodeToRemove).toBe(oldMessageNode);
$animate.leave.calls.reset();
// Add the message back in
$rootScope.col = { primary: true };
$rootScope.$digest();
// Simulate the animation completing on the node
jqLite(nodeToRemove).remove();
// We should not get another call to `leave`
expect($animate.leave).not.toHaveBeenCalled();
// There should only be the new message node
expect(messageChildren(element).length).toEqual(1);
var newMessageNode = messageChildren(element)[0];
expect(newMessageNode).not.toBe(oldMessageNode);
}));
it('should render animations when the active/inactive classes are added/removed', function() {
module('ngAnimate');
module('ngAnimateMock');
inject(function($rootScope, $compile, $animate) {
element = $compile('<div ng-messages="col">' +
' <div ng-message="ready">This message is ready</div>' +
'</div>')($rootScope);
$rootScope.$apply(function() {
$rootScope.col = {};
});
var event = $animate.queue.pop();
expect(event.event).toBe('setClass');
expect(event.args[1]).toBe('ng-inactive');
expect(event.args[2]).toBe('ng-active');
$rootScope.$apply(function() {
$rootScope.col = { ready: true };
});
event = $animate.queue.pop();
expect(event.event).toBe('setClass');
expect(event.args[1]).toBe('ng-active');
expect(event.args[2]).toBe('ng-inactive');
});
});
describe('ngMessage nested nested inside elements', function() {
it('should not crash or leak memory when the messages are transcluded, the first message is ' +
'visible, and ngMessages is removed by ngIf', function() {
module(function($compileProvider) {
$compileProvider.directive('messageWrap', function() {
return {
transclude: true,
scope: {
col: '=col'
},
template: '<div ng-messages="col"><ng-transclude></ng-transclude></div>'
};
});
});
inject(function($rootScope, $compile) {
element = $compile('<div><div ng-if="show"><div message-wrap col="col">' +
' <div ng-message="a">A</div>' +
' <div ng-message="b">B</div>' +
'</div></div></div>')($rootScope);
$rootScope.$apply(function() {
$rootScope.show = true;
$rootScope.col = {
a: true,
b: true
};
});
expect(messageChildren(element).length).toBe(1);
expect(trim(element.text())).toEqual('A');
$rootScope.$apply('show = false');
expect(messageChildren(element).length).toBe(0);
});
});
it('should not crash when the first of two nested messages is removed', function() {
inject(function($rootScope, $compile) {
element = $compile(
'<div ng-messages="col">' +
'<div class="wrapper">' +
'<div remove-me ng-message="a">A</div>' +
'<div ng-message="b">B</div>' +
'</div>' +
'</div>'
)($rootScope);
$rootScope.$apply(function() {
$rootScope.col = {
a: true,
b: false
};
});
expect(messageChildren(element).length).toBe(1);
expect(trim(element.text())).toEqual('A');
var ctrl = element.controller('ngMessages');
var deregisterSpy = spyOn(ctrl, 'deregister').and.callThrough();
var nodeA = element[0].querySelector('[ng-message="a"]');
jqLite(nodeA).remove();
$rootScope.$digest(); // The next digest triggers the error
// Make sure removing the element triggers the deregistration in ngMessages
expect(trim(deregisterSpy.calls.mostRecent().args[0].nodeValue)).toBe('ngMessage: a');
expect(messageChildren(element).length).toBe(0);
});
});
it('should not crash, but show deeply nested messages correctly after a message ' +
'has been removed', function() {
inject(function($rootScope, $compile) {
element = $compile(
'<div ng-messages="col" ng-messages-multiple>' +
'<div class="another-wrapper">' +
'<div ng-message="a">A</div>' +
'<div class="wrapper">' +
'<div ng-message="b">B</div>' +
'<div ng-message="c">C</div>' +
'</div>' +
'<div ng-message="d">D</div>' +
'</div>' +
'</div>'
)($rootScope);
$rootScope.$apply(function() {
$rootScope.col = {
a: true,
b: true
};
});
expect(messageChildren(element).length).toBe(2);
expect(trim(element.text())).toEqual('AB');
var ctrl = element.controller('ngMessages');
var deregisterSpy = spyOn(ctrl, 'deregister').and.callThrough();
var nodeB = element[0].querySelector('[ng-message="b"]');
jqLite(nodeB).remove();
$rootScope.$digest(); // The next digest triggers the error
// Make sure removing the element triggers the deregistration in ngMessages
expect(trim(deregisterSpy.calls.mostRecent().args[0].nodeValue)).toBe('ngMessage: b');
expect(messageChildren(element).length).toBe(1);
expect(trim(element.text())).toEqual('A');
});
});
});
describe('when including templates', function() {
they('should work with a dynamic collection model which is managed by ngRepeat',
{'<div ng-messages-include="...">': '<div ng-messages="item">' +
'<div ng-messages-include="abc.html"></div>' +
'</div>',
'<ng-messages-include src="...">': '<ng-messages for="item">' +
'<ng-messages-include src="abc.html"></ng-messages-include>' +
'</ng-messages>'},
function(html) {
inject(function($compile, $rootScope, $templateCache) {
$templateCache.put('abc.html', '<div ng-message="a">A</div>' +
'<div ng-message="b">B</div>' +
'<div ng-message="c">C</div>');
html = '<div><div ng-repeat="item in items">' + html + '</div></div>';
$rootScope.items = [{},{},{}];
element = $compile(html)($rootScope);
$rootScope.$apply(function() {
$rootScope.items[0].a = true;
$rootScope.items[1].b = true;
$rootScope.items[2].c = true;
});
var elements = element[0].querySelectorAll('[ng-repeat]');
// all three collections should have at least one error showing up
expect(messageChildren(element).length).toBe(3);
expect(messageChildren(elements[0]).length).toBe(1);
expect(messageChildren(elements[1]).length).toBe(1);
expect(messageChildren(elements[2]).length).toBe(1);
// this is the standard order of the displayed error messages
expect(element.text().trim()).toBe('ABC');
$rootScope.$apply(function() {
$rootScope.items[0].a = false;
$rootScope.items[0].c = true;
$rootScope.items[1].b = false;
$rootScope.items[2].c = false;
$rootScope.items[2].a = true;
});
// with the 2nd item gone and the values changed
// we should see both 1 and 3 changed
expect(element.text().trim()).toBe('CA');
$rootScope.$apply(function() {
// add the value for the 2nd item back
$rootScope.items[1].b = true;
$rootScope.items.reverse();
});
// when reversed we get back to our original value
expect(element.text().trim()).toBe('ABC');
});
});
they('should remove the $prop element and place a comment anchor node where it used to be',
{'<div ng-messages-include="...">': '<div ng-messages="data">' +
'<div ng-messages-include="abc.html"></div>' +
'</div>',
'<ng-messages-include src="...">': '<ng-messages for="data">' +
'<ng-messages-include src="abc.html"></ng-messages-include>' +
'</ng-messages>'},
function(html) {
inject(function($compile, $rootScope, $templateCache) {
$templateCache.put('abc.html', '<div></div>');
element = $compile(html)($rootScope);
$rootScope.$digest();
var includeElement = element[0].querySelector('[ng-messages-include], ng-messages-include');
expect(includeElement).toBeFalsy();
var comment = element[0].childNodes[0];
expect(comment.nodeType).toBe(8);
expect(comment.nodeValue).toBe(' ngMessagesInclude: abc.html ');
});
});
they('should load a remote template using $prop',
{'<div ng-messages-include="...">': '<div ng-messages="data">' +
'<div ng-messages-include="abc.html"></div>' +
'</div>',
'<ng-messages-include src="...">': '<ng-messages for="data">' +
'<ng-messages-include src="abc.html"></ng-messages-include>' +
'</ng-messages>'},
function(html) {
inject(function($compile, $rootScope, $templateCache) {
$templateCache.put('abc.html', '<div ng-message="a">A</div>' +
'<div ng-message="b">B</div>' +
'<div ng-message="c">C</div>');
element = $compile(html)($rootScope);
$rootScope.$apply(function() {
$rootScope.data = {
'a': 1,
'b': 2,
'c': 3
};
});
expect(messageChildren(element).length).toBe(1);
expect(trim(element.text())).toEqual("A");
$rootScope.$apply(function() {
$rootScope.data = {
'c': 3
};
});
expect(messageChildren(element).length).toBe(1);
expect(trim(element.text())).toEqual("C");
});
});
it('should cache the template after download',
inject(function($rootScope, $compile, $templateCache, $httpBackend) {
$httpBackend.expect('GET', 'tpl').respond(201, '<div>abc</div>');
expect($templateCache.get('tpl')).toBeUndefined();
element = $compile('<div ng-messages="data"><div ng-messages-include="tpl"></div></div>')($rootScope);
$rootScope.$digest();
$httpBackend.flush();
expect($templateCache.get('tpl')).toBeDefined();
}));
it('should re-render the messages after download without an extra digest',
inject(function($rootScope, $compile, $httpBackend) {
$httpBackend.expect('GET', 'my-messages').respond(201,
'<div ng-message="required">You did not enter a value</div>');
element = $compile('<div ng-messages="data">' +
' <div ng-messages-include="my-messages"></div>' +
' <div ng-message="failed">Your value is that of failure</div>' +
'</div>')($rootScope);
$rootScope.data = {
required: true,
failed: true
};
$rootScope.$digest();
expect(messageChildren(element).length).toBe(1);
expect(trim(element.text())).toEqual("Your value is that of failure");
$httpBackend.flush();
$rootScope.$digest();
expect(messageChildren(element).length).toBe(1);
expect(trim(element.text())).toEqual("You did not enter a value");
}));
it('should allow for overriding the remote template messages within the element depending on where the remote template is placed',
inject(function($compile, $rootScope, $templateCache) {
$templateCache.put('abc.html', '<div ng-message="a">A</div>' +
'<div ng-message="b">B</div>' +
'<div ng-message="c">C</div>');
element = $compile('<div ng-messages="data">' +
' <div ng-message="a">AAA</div>' +
' <div ng-messages-include="abc.html"></div>' +
' <div ng-message="c">CCC</div>' +
'</div>')($rootScope);
$rootScope.$apply(function() {
$rootScope.data = {
'a': 1,
'b': 2,
'c': 3
};
});
expect(messageChildren(element).length).toBe(1);
expect(trim(element.text())).toEqual("AAA");
$rootScope.$apply(function() {
$rootScope.data = {
'b': 2,
'c': 3
};
});
expect(messageChildren(element).length).toBe(1);
expect(trim(element.text())).toEqual("B");
$rootScope.$apply(function() {
$rootScope.data = {
'c': 3
};
});
expect(messageChildren(element).length).toBe(1);
expect(trim(element.text())).toEqual("C");
}));
it('should properly detect a previous message, even if it was registered later',
inject(function($compile, $rootScope, $templateCache) {
$templateCache.put('include.html', '<div ng-message="a">A</div>');
var html =
'<div ng-messages="items">' +
'<div ng-include="\'include.html\'"></div>' +
'<div ng-message="b">B</div>' +
'<div ng-message="c">C</div>' +
'</div>';
element = $compile(html)($rootScope);
$rootScope.$apply('items = {b: true, c: true}');
expect(element.text()).toBe('B');
var ctrl = element.controller('ngMessages');
var deregisterSpy = spyOn(ctrl, 'deregister').and.callThrough();
var nodeB = element[0].querySelector('[ng-message="b"]');
jqLite(nodeB).remove();
// Make sure removing the element triggers the deregistration in ngMessages
expect(trim(deregisterSpy.calls.mostRecent().args[0].nodeValue)).toBe('ngMessage: b');
$rootScope.$apply('items.a = true');
expect(element.text()).toBe('A');
})
);
it('should not throw if scope has been destroyed when template request is ready',
inject(function($rootScope, $httpBackend, $compile) {
$httpBackend.expectGET('messages.html').respond('<div ng-message="a">A</div>');
$rootScope.show = true;
var html =
'<div ng-if="show">' +
'<div ng-messages="items">' +
'<div ng-messages-include="messages.html"></div>' +
'</div>' +
'</div>';
element = $compile(html)($rootScope);
$rootScope.$digest();
$rootScope.show = false;
$rootScope.$digest();
expect(function() {
$httpBackend.flush();
}).not.toThrow();
}));
it('should not throw if the template is empty',
inject(function($compile, $rootScope, $templateCache) {
var html =
'<div ng-messages="items">' +
'<div ng-messages-include="messages1.html"></div>' +
'<div ng-messages-include="messages2.html"></div>' +
'</div>';
$templateCache.put('messages1.html', '');
$templateCache.put('messages2.html', ' ');
element = $compile(html)($rootScope);
$rootScope.$digest();
expect(element.text()).toBe('');
expect(element.children().length).toBe(0);
expect(element.contents().length).toBe(2);
})
);
});
describe('when multiple', function() {
they('should show all truthy messages when the $prop attr is present',
{ 'multiple': 'multiple',
'ng-messages-multiple': 'ng-messages-multiple' },
function(prop) {
inject(function($rootScope, $compile) {
element = $compile('<div ng-messages="data" ' + prop + '>' +
' <div ng-message="one">1</div>' +
' <div ng-message="two">2</div>' +
' <div ng-message="three">3</div>' +
'</div>')($rootScope);
$rootScope.$apply(function() {
$rootScope.data = {
'one': true,
'two': false,
'three': true
};
});
expect(messageChildren(element).length).toBe(2);
expect(s(element.text())).toContain("13");
});
});
it('should render all truthy messages from a remote template',
inject(function($rootScope, $compile, $templateCache) {
$templateCache.put('xyz.html', '<div ng-message="x">X</div>' +
'<div ng-message="y">Y</div>' +
'<div ng-message="z">Z</div>');
element = $compile('<div ng-messages="data" ng-messages-multiple="true">' +
'<div ng-messages-include="xyz.html"></div>' +
'</div>')($rootScope);
$rootScope.$apply(function() {
$rootScope.data = {
'x': 'a',
'y': null,
'z': true
};
});
expect(messageChildren(element).length).toBe(2);
expect(s(element.text())).toEqual("XZ");
$rootScope.$apply(function() {
$rootScope.data.y = {};
});
expect(messageChildren(element).length).toBe(3);
expect(s(element.text())).toEqual("XYZ");
}));
it('should render and override all truthy messages from a remote template',
inject(function($rootScope, $compile, $templateCache) {
$templateCache.put('xyz.html', '<div ng-message="x">X</div>' +
'<div ng-message="y">Y</div>' +
'<div ng-message="z">Z</div>');
element = $compile('<div ng-messages="data" ng-messages-multiple="true">' +
'<div ng-message="y">YYY</div>' +
'<div ng-message="z">ZZZ</div>' +
'<div ng-messages-include="xyz.html"></div>' +
'</div>')($rootScope);
$rootScope.$apply(function() {
$rootScope.data = {
'x': 'a',
'y': null,
'z': true
};
});
expect(messageChildren(element).length).toBe(2);
expect(s(element.text())).toEqual("ZZZX");
$rootScope.$apply(function() {
$rootScope.data.y = {};
});
expect(messageChildren(element).length).toBe(3);
expect(s(element.text())).toEqual("YYYZZZX");
}));
});
});
|
import { is } from '@wp-g2/utils';
export const TRUNCATE_ELLIPSIS = '…';
export const TRUNCATE_TYPE = {
auto: 'auto',
head: 'head',
middle: 'middle',
tail: 'tail',
none: 'none',
};
export const TRUNCATE_DEFAULT_PROPS = {
ellipsis: TRUNCATE_ELLIPSIS,
ellipsizeMode: TRUNCATE_TYPE.auto,
limit: 0,
numberOfLines: 0,
};
// Source
// https://github.com/kahwee/truncate-middle
export function truncateMiddle(word, headLength, tailLength, ellipsis) {
if (typeof word !== 'string') {
return '';
}
const wordLength = word.length;
// Setting default values
const frontLength = ~~headLength; // will cast to integer
const backLength = ~~tailLength;
/* istanbul ignore next */
const truncateStr = is.defined(ellipsis) ? ellipsis : TRUNCATE_ELLIPSIS;
if (
(frontLength === 0 && backLength === 0) ||
frontLength >= wordLength ||
backLength >= wordLength ||
frontLength + backLength >= wordLength
) {
return word;
} else if (backLength === 0) {
return word.slice(0, frontLength) + truncateStr;
} else {
return (
word.slice(0, frontLength) +
truncateStr +
word.slice(wordLength - backLength)
);
}
}
export function truncateContent(words = '', props) {
const mergedProps = { ...TRUNCATE_DEFAULT_PROPS, ...props };
const { ellipsis, ellipsizeMode, limit } = mergedProps;
if (ellipsizeMode === TRUNCATE_TYPE.none) {
return words;
}
let truncateHead;
let truncateTail;
switch (ellipsizeMode) {
case TRUNCATE_TYPE.head:
truncateHead = 0;
truncateTail = limit;
break;
case TRUNCATE_TYPE.middle:
truncateHead = Math.floor(limit / 2);
truncateTail = Math.floor(limit / 2);
break;
default:
truncateHead = limit;
truncateTail = 0;
}
const truncatedContent =
ellipsizeMode !== TRUNCATE_TYPE.auto
? truncateMiddle(words, truncateHead, truncateTail, ellipsis)
: words;
return truncatedContent;
}
|
"use strict;"
const _configDefaults = {
debug: false,
clientCertPEM: '',
clientKeyPEM: '',
caPEMList: [],
cipherSuites: null,
remoteURL: 'ws://localhost:9000/jrpcsec',
methods: [],
idString: 'jrpcsec-client',
verifyPeer: undefined
};
JRPCSec = function () {
if (!(this instanceof JRPCSec)) {
//return new JRPCSec (arguments);
var ret = Object.create(JRPCSec.prototype);
JRPCSec.apply(ret, arguments);
return ret;
}
var _self = this;
if (arguments.length == 1) {
_self.config = arguments[0];
} else if ( arguments.length == 2) {
if (!_.isFunction (arguments[1])) {
throw TypeError ("JRPCSec -- second argument must be a callback function.");
}
_self.config = arguments[0];
_self.readyCB = arguments[1];
} else if (arguments.length == 4) {
if (!_.isFunction (arguments[3])) {
throw TypeError ("JRPCSec -- fourth argument must be a callback function.");
}
_self.config = arguments[0];
_self.config.oneShot = true;
var method = arguments[1],
params = arguments[2],
cb = arguments[3];
_self.readyCB = function (rpc) {
return rpc.call (method, params, cb);
};
} else {
throw TypeError ("JRPCSec -- expecting 1, 2 or 4 arguments.");
}
_self.config = _.defaults (_self.config, _configDefaults);
if (!_.has (_self.config.methods, 'ping')) {
_self.config.methods['ping'] = function (params, next) {
return next (false, _self.config.idString);
};
}
if (_.isFunction (_self.config.logger)) {
_self.logger = _self.config.logger;
} else {
_self.logger = function () {};
}
//_self.logger ('[JPRCSec] config:', _self.config);
//
// TLS client instance communicates with peer over tlsStream, a
// binaryJS websocket;
_self.tlsClient = undefined;
_self.tlsStream = undefined;
_self.binaryjsClient = undefined;
//
// We expose the secured json RPC client in a
// 'call' method later
_self.jrpcClient = undefined;
var tlsOptions = {
server: false,
verify: function(connection, verified, depth, certs) {
if(depth === 0) {
if (_.isFunction (_self.config.verifyPeer)) {
var verifyStatus = verified===true?
{valid:true} : { valid:false, info:verified};
var cbStatus = _self.config.verifyPeer (certs[0],verifyStatus);
if (cbStatus === true) {
return true;
} else if (cbStatus && cbStatus.alert && cbStatus.message) {
return {
alert: cbStatus.alert,
message: cbStatus.message
};
} else {
return {
alert: Forge.tls.Alert.Description.bad_certificate,
message: "unknown application error validating certificate"
}
}
}
}
return verified;
},
connected: function(connection) {
//_self.logger('[jrpcsec/tls connected]');
_self.jrpcClient = new JRPC ({client:true});
_self.jrpcClient.setTransmitter (function (msg, next) {
//_self.logger ('[rpcTransmitter]',msg);
try {
_self.tlsClient.prepare (Forge.util.encodeUtf8(msg));
return next (false);
} catch (e) {
_self.logger ('[rpcTransmitter]',e);
return next (true);
}
});
//
// negotiate extended capabilities, because ... why, exactly?
_self.jrpcClient.upgrade();
if (_self.readyCB) {
_self.readyCB(_self);
}
},
dataReady: function(connection) {
// clear data from the server is ready
var data = Forge.util.decodeUtf8(connection.data.getBytes());
// _self.logger('[tlsClient dataReady] data received from the server: ' + data);
_self.jrpcClient.receive(data);
},
closed: function() {
_self.logger('[tlsClient disconnected]');
},
error: function(connection, error) {
_self.logger('[tlsClient error]', error);
connection.close();
}
}
if (_self.config.clientCertPEM && _self.config.clientKeyPEM) {
tlsOptions.getCertificate = function (connection, hint) { return _self.config.clientCertPEM };
tlsOptions.getPrivateKey = function (connection, cert) { return _self.config.clientKeyPEM };
}
if (_self.config.caPEMList.length>0) {
tlsOptions.caStore = Forge.pki.createCaStore (_self.config.caPEMList);
}
_self.binaryjsClient = new BinaryClient (_self.config.remoteURL);
_self.binaryjsClient.on ('error', function (error){
_self.logger('JRPCSec net error:', error);
_self.logger ('remoteURL:', _self.config.remoteURL);
if ( _self.config.debug === true ) {
_self.logger ('config:', _self.config);
}
_self.close ();
});
_self.binaryjsClient.on ('open', function (){
//_self.logger ('[jrpcsec/binaryjsClient onopen] client.streams:', _self.binaryjsClient.streams);
_self.tlsStream = _self.binaryjsClient.createStream ({ type:'JRPCSec-TLS-Stream' });
tlsOptions.tlsDataReady = function(connection) {
// encrypted data is ready to be sent to the server
var data = connection.tlsData.getBytes();
//_self.logger('[tlsClient tlsDataReady] data length: ', data.length);
_self.tlsStream.write(data);
},
_self.tlsStream.on ('data', function (data) {
//_self.logger ('[onData] len, typeof data:', data.length, typeof data);
_self.tlsClient.process(data);
});
_self.tlsStream.on ('end', function () {
_self.tlsClient.reset (true);
});
_self.tlsStream.on ('error', function (error) {
_self.logger ('[jrpcsec/tlsStream onerror]', error);
_self.tlsClient.reset (true);
});
_self.tlsClient = Forge.tls.createConnection(tlsOptions);
_self.tlsClient.handshake();
});
}
JRPCSec.prototype.close = function () {
var _self = this;
if (_self.binaryjsClient) {
if ( _self.jrpcClient !== undefined ) {
_self.jrpcClient.shutdown().setTransmitter(null);
}
if ( _self.tlsClient !== undefined ) {
_self.tlsClient.reset(true);
}
if ( _self.tlsStream !== undefined ) {
_self.tlsStream.destroy();
}
if ( _self.binaryjsClient !== undefined ) {
_self.binaryjsClient.close();
}
_self.tlsClient = undefined;
_self.tlsStream = undefined;
_self.binaryjsClient = undefined;
_self.jrpcClient = undefined;
}
}
JRPCSec.prototype.call = function (method, args, cb) {
var _self = this;
//_self.logger ('[jrpcsec/call]', method, args, _.isFunction(cb)?cb.name:'<no callback>');
if (!this.jrpcClient) {
throw new TypeError ('JRPCSec -- Underlying RPC object undefined.');
}
this.jrpcClient.call (method, args, function (err, result) {
if (_.isFunction(cb)) {
if (_self.config.oneShot) {
_self.close();
}
return cb (err, result);
}
_self.logger ('[jrpcsec/call cb] method/args:', method, args);
if (err) {
_self.logger ('[jrpcsec/call cb]', err);
} else {
_self.logger ('[jrpcsec/call cb]', result);
}
});
};
|
define({main:{lt:{identity:{version:{_cldrVersion:"38"},language:"lt"},numbers:{defaultNumberingSystem:"latn",otherNumberingSystems:{native:"latn"},"symbols-numberSystem-latn":{decimal:",",group:" ",percentSign:"%",plusSign:"+",minusSign:"−",exponential:"×10^",perMille:"‰",infinity:"∞",nan:"NaN"},"decimalFormats-numberSystem-latn":{standard:"#,##0.###",long:{decimalFormat:{"1000-count-one":"0 tūkstantis","1000-count-few":"0 tūkstančiai","1000-count-many":"0 tūkstančio","1000-count-other":"0 tūkstančių","10000-count-one":"00 tūkstantis","10000-count-few":"00 tūkstančiai","10000-count-many":"00 tūkstančio","10000-count-other":"00 tūkstančių","100000-count-one":"000 tūkstantis","100000-count-few":"000 tūkstančiai","100000-count-many":"000 tūkstančio","100000-count-other":"000 tūkstančių","1000000-count-one":"0 milijonas","1000000-count-few":"0 milijonai","1000000-count-many":"0 milijono","1000000-count-other":"0 milijonų","10000000-count-one":"00 milijonas","10000000-count-few":"00 milijonai","10000000-count-many":"00 milijono","10000000-count-other":"00 milijonų","100000000-count-one":"000 milijonas","100000000-count-few":"000 milijonai","100000000-count-many":"000 milijono","100000000-count-other":"000 milijonų","1000000000-count-one":"0 milijardas","1000000000-count-few":"0 milijardai","1000000000-count-many":"0 milijardo","1000000000-count-other":"0 milijardų","10000000000-count-one":"00 milijardas","10000000000-count-few":"00 milijardai","10000000000-count-many":"00 milijardo","10000000000-count-other":"00 milijardų","100000000000-count-one":"000 milijardas","100000000000-count-few":"000 milijardai","100000000000-count-many":"000 milijardo","100000000000-count-other":"000 milijardų","1000000000000-count-one":"0 trilijonas","1000000000000-count-few":"0 trilijonai","1000000000000-count-many":"0 trilijono","1000000000000-count-other":"0 trilijonų","10000000000000-count-one":"00 trilijonas","10000000000000-count-few":"00 trilijonai","10000000000000-count-many":"00 trilijono","10000000000000-count-other":"00 trilijonų","100000000000000-count-one":"000 trilijonas","100000000000000-count-few":"000 trilijonai","100000000000000-count-many":"000 trilijono","100000000000000-count-other":"000 trilijonų"}},short:{decimalFormat:{"1000-count-one":"0 tūkst'.'","1000-count-few":"0 tūkst'.'","1000-count-many":"0 tūkst'.'","1000-count-other":"0 tūkst'.'","10000-count-one":"00 tūkst'.'","10000-count-few":"00 tūkst'.'","10000-count-many":"00 tūkst'.'","10000-count-other":"00 tūkst'.'","100000-count-one":"000 tūkst'.'","100000-count-few":"000 tūkst'.'","100000-count-many":"000 tūkst'.'","100000-count-other":"000 tūkst'.'","1000000-count-one":"0 mln'.'","1000000-count-few":"0 mln'.'","1000000-count-many":"0 mln'.'","1000000-count-other":"0 mln'.'","10000000-count-one":"00 mln'.'","10000000-count-few":"00 mln'.'","10000000-count-many":"00 mln'.'","10000000-count-other":"00 mln'.'","100000000-count-one":"000 mln'.'","100000000-count-few":"000 mln'.'","100000000-count-many":"000 mln'.'","100000000-count-other":"000 mln'.'","1000000000-count-one":"0 mlrd'.'","1000000000-count-few":"0 mlrd'.'","1000000000-count-many":"0 mlrd'.'","1000000000-count-other":"0 mlrd'.'","10000000000-count-one":"00 mlrd'.'","10000000000-count-few":"00 mlrd'.'","10000000000-count-many":"00 mlrd'.'","10000000000-count-other":"00 mlrd'.'","100000000000-count-one":"000 mlrd'.'","100000000000-count-few":"000 mlrd'.'","100000000000-count-many":"000 mlrd'.'","100000000000-count-other":"000 mlrd'.'","1000000000000-count-one":"0 trln'.'","1000000000000-count-few":"0 trln'.'","1000000000000-count-many":"0 trln'.'","1000000000000-count-other":"0 trln'.'","10000000000000-count-one":"00 trln'.'","10000000000000-count-few":"00 trln'.'","10000000000000-count-many":"00 trln'.'","10000000000000-count-other":"00 trln'.'","100000000000000-count-one":"000 trln'.'","100000000000000-count-few":"000 trln'.'","100000000000000-count-many":"000 trln'.'","100000000000000-count-other":"000 trln'.'"}}},"percentFormats-numberSystem-latn":{standard:"#,##0 %"},"currencyFormats-numberSystem-latn":{standard:"#,##0.00 ¤","unitPattern-count-one":"{0} {1}","unitPattern-count-few":"{0} {1}","unitPattern-count-many":"{0} {1}","unitPattern-count-other":"{0} {1}"},currencies:{AUD:{displayName:"Australijos doleris",symbol:"AUD"},BRL:{displayName:"Brazilijos realas",symbol:"BRL"},CAD:{displayName:"Kanados doleris",symbol:"CAD"},CHF:{displayName:"Šveicarijos frankas",symbol:"CHF"},CNY:{displayName:"Kinijos ženminbi juanis",symbol:"CNY"},CZK:{displayName:"Čekijos krona",symbol:"CZK"},DKK:{displayName:"Danijos krona",symbol:"DKK"},EUR:{displayName:"Euras",symbol:"€"},GBP:{displayName:"Didžiosios Britanijos svaras",symbol:"GBP"},HKD:{displayName:"Honkongo doleris",symbol:"HKD"},HUF:{displayName:"Vengrijos forintas",symbol:"HUF"},IDR:{displayName:"Indonezijos rupija",symbol:"IDR"},INR:{displayName:"Indijos rupija",symbol:"INR"},JPY:{displayName:"Japonijos jena",symbol:"JPY"},KRW:{displayName:"Pietų Korėjos vonas",symbol:"KRW"},MXN:{displayName:"Meksikos pesas",symbol:"MXN"},NOK:{displayName:"Norvegijos krona",symbol:"NOK"},PLN:{displayName:"Lenkijos zlotas",symbol:"PLN"},RUB:{displayName:"Rusijos rublis",symbol:"RUB"},SAR:{displayName:"Saudo Arabijos rijalas",symbol:"SAR"},SEK:{displayName:"Švedijos krona",symbol:"SEK"},THB:{displayName:"Tailando batas",symbol:"THB"},TRY:{displayName:"Turkijos lira",symbol:"TRY"},TWD:{displayName:"Taivano naujasis doleris",symbol:"TWD"},USD:{displayName:"JAV doleris",symbol:"USD"},ZAR:{displayName:"Pietų Afrikos Respublikos randas",symbol:"ZAR"}}},units:{narrow:{"digital-terabyte":{"unitPattern-count-one":"{0} TB","unitPattern-count-few":"{0} TB","unitPattern-count-many":"{0} TB","unitPattern-count-other":"{0} TB"},"digital-terabit":{"unitPattern-count-one":"{0} Tb","unitPattern-count-few":"{0} Tb","unitPattern-count-many":"{0} Tb","unitPattern-count-other":"{0} Tb"},"digital-gigabyte":{"unitPattern-count-one":"{0} GB","unitPattern-count-few":"{0} GB","unitPattern-count-many":"{0} GB","unitPattern-count-other":"{0} GB"},"digital-gigabit":{"unitPattern-count-one":"{0} Gb","unitPattern-count-few":"{0} Gb","unitPattern-count-many":"{0} Gb","unitPattern-count-other":"{0} Gb"},"digital-megabyte":{"unitPattern-count-one":"{0} MB","unitPattern-count-few":"{0} MB","unitPattern-count-many":"{0} MB","unitPattern-count-other":"{0} MB"},"digital-megabit":{"unitPattern-count-one":"{0} Mb","unitPattern-count-few":"{0} Mb","unitPattern-count-many":"{0} Mb","unitPattern-count-other":"{0} Mb"},"digital-kilobyte":{"unitPattern-count-one":"{0} kB","unitPattern-count-few":"{0} kB","unitPattern-count-many":"{0} kB","unitPattern-count-other":"{0} kB"},"digital-kilobit":{"unitPattern-count-one":"{0} kb","unitPattern-count-few":"{0} kb","unitPattern-count-many":"{0} kb","unitPattern-count-other":"{0} kb"},"digital-byte":{"unitPattern-count-one":"{0} B","unitPattern-count-few":"{0} B","unitPattern-count-many":"{0} B","unitPattern-count-other":"{0} B"},"digital-bit":{"unitPattern-count-one":"{0} b","unitPattern-count-few":"{0} b","unitPattern-count-many":"{0} b","unitPattern-count-other":"{0} b"}}}}}});
|
var bitcoin = require('@bitcoin-dot-com/bitcoincashjs2-lib');
var bip32 = require("bip32");
var bip39 = require("bip39");
var path = require("./path");
var sign = require("./sign");
// BIP 32 - Hierarchical deterministic (HD) wallets
// BIP 39 - Mnemonic phrases
module.exports = {
Path: path,
Sign: sign,
Util: require("./util"),
/**
* @returns {ECPair}
*/
GenKey: function () {
return bitcoin.ECPair.makeRandom();
},
/**
* @returns {string}
*/
GenerateMnemonic: function () {
return bip39.generateMnemonic();
},
/**
* @param {string} mnemonic
* @returns {ECPair}
*/
GetECPairFromMnemonic: function (mnemonic) {
var seed = bip39.mnemonicToSeedSync(mnemonic);
var node = bip32.fromSeed(seed);
return bitcoin.ECPair.fromWIF(node.toWIF());
},
/**
* @param {string} mnemonic
* @param {string} path
* @returns {ECPair}
*/
GetHDChild: function (mnemonic, path) {
var seed = bip39.mnemonicToSeedSync(mnemonic);
var node = bip32.fromSeed(seed);
var child = node.derivePath(path);
return bitcoin.ECPair.fromWIF(child.toWIF());
},
/**
* @param {ECPair} keyPair
* @returns {string}
*/
GetWIF: function (keyPair) {
return keyPair.toWIF();
}
};
|
import React, { useState } from 'react'
import Navbar from 'react-bootstrap/Navbar'
import { NavLink, useHistory } from "react-router-dom"
import { Nav, Form, Button, FormControl } from 'react-bootstrap'
const LeagueHeroNav = () => {
const [searchTerm, setSearchTerm] = useState("")
let history = useHistory()
const handleSubmit = (e) => {
e.preventDefault()
history.push(`/results/${searchTerm}`)
setSearchTerm("")
}
return (
<Navbar className="league-hero-nav"
expand="sm"
variant="dark"
sticky="top">
<Navbar.Brand>
<NavLink to="/" exact >League Hero</NavLink>
</Navbar.Brand>
<Navbar.Toggle aria-controls="lh-nav"/>
<Navbar.Collapse id="lh-nav">
<Nav className="mr-auto">
<Nav.Link>
<NavLink to="/leagues" exact >Leagues</NavLink>
</Nav.Link>
<Nav.Link>
<NavLink to="/teams" exact >Teams</NavLink>
</Nav.Link>
</Nav>
<Form inline onSubmit={handleSubmit}>
<FormControl onChange={(e) => setSearchTerm(e.target.value)}
value={searchTerm}
type="text"
name="query"
placeholder="Search"
className="mr-sm-2" />
<Button disabled={searchTerm === ""}
type="submit"
variant="outline-success">Search</Button>
</Form>
</Navbar.Collapse>
</Navbar>
)
}
export default LeagueHeroNav
|
'use strict';
var GetIntrinsic = require('get-intrinsic');
var $TypeError = GetIntrinsic('%TypeError%');
var isNaN = require('../../helpers/isNaN');
var Type = require('../Type');
// https://262.ecma-international.org/11.0/#sec-numeric-types-number-unaryMinus
module.exports = function NumberUnaryMinus(x) {
if (Type(x) !== 'Number') {
throw new $TypeError('Assertion failed: `x` argument must be a Number');
}
if (isNaN(x)) {
return NaN;
}
return -x;
};
|
import React, { Component } from 'react'
import { connect } from 'react-redux'
import { getWeather } from '../../actions/weather'
import { saveFavourite, deleteFavourite, getFavourites } from '../../actions/favourite'
import { withRouter } from 'react-router-dom'
import Weather from './WeatherComponent'
class WeatherContainer extends Component {
componentDidMount () {
if (this.props.match.params.query)
getWeather(this.props.match.params.query)
if (this.props.authorized && this.props.favourites.length === 0)
getFavourites()
}
componentWillUpdate (nextProps) {
if (this.props.match.params.query !== nextProps.match.params.query && nextProps.match.params.query)
getWeather(nextProps.match.params.query)
}
searchWeather = (values) => {
this.props.history.push("/weather/" + values.query);
}
saveFavourite = () => {
let w = this.props.weather
let f = this.props.favourites
if (f.filter(i => (i.city + "" + i.country) === (w.city + "" + w.country)).length === 0) {
saveFavourite(w)
} else {
console.log("Favourite already exists!")
}
}
deleteFavourite(id) {
deleteFavourite(id)
}
render () {
return (
<Weather
{...this.props}
saveFavourite={this.saveFavourite}
searchWeather={this.searchWeather}
deleteFavourite={this.deleteFavourite}
/>
)
}
}
const mapStateToProps = (state) => ({
weather: state.weather.weather,
favourites: state.favourite.favourites,
authorized: state.auth.authorized
})
export default withRouter(connect(mapStateToProps)(WeatherContainer))
|
/*!
* Font Awesome Pro 5.13.1 by @fontawesome - https://fontawesome.com
* License - https://fontawesome.com/license (Commercial License)
*/
!function(){"use strict";var c={},e={};try{"undefined"!=typeof window&&(c=window),"undefined"!=typeof document&&(e=document)}catch(c){}var t=(c.navigator||{}).userAgent,n=void 0===t?"":t,r=c,o=(r.document,!e.documentElement||!e.head||"function"!=typeof e.addEventListener||e.createElement,~n.indexOf("MSIE")||n.indexOf("Trident/"),"___FONT_AWESOME___"),v=function(){try{return!0}catch(c){return!1}}();function h(e,c){var t,n=Object.keys(e);return Object.getOwnPropertySymbols&&(t=Object.getOwnPropertySymbols(e),c&&(t=t.filter(function(c){return Object.getOwnPropertyDescriptor(e,c).enumerable})),n.push.apply(n,t)),n}function i(r){for(var c=1;c<arguments.length;c++){var o=null!=arguments[c]?arguments[c]:{};c%2?h(Object(o),!0).forEach(function(c){var e,t,n;e=r,n=o[t=c],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):h(Object(o)).forEach(function(c){Object.defineProperty(r,c,Object.getOwnPropertyDescriptor(o,c))})}return r}var a=r||{};a[o]||(a[o]={}),a[o].styles||(a[o].styles={}),a[o].hooks||(a[o].hooks={}),a[o].shims||(a[o].shims=[]);var s=a[o];var u={abacus:[576,512,[],"f640","M552 0c-13.25 0-24 10.74-24 24v48h-48V48c0-8.84-7.16-16-16-16h-16c-8.84 0-16 7.16-16 16v24H240V48c0-8.84-7.16-16-16-16h-16c-8.84 0-16 7.16-16 16v24h-48V48c0-8.84-7.16-16-16-16h-16c-8.84 0-16 7.16-16 16v24H48V24C48 10.74 37.25 0 24 0S0 10.74 0 24v476c0 6.63 5.37 12 12 12h24c6.63 0 12-5.37 12-12v-60h48v24c0 8.84 7.16 16 16 16h16c8.84 0 16-7.16 16-16v-24h48v24c0 8.84 7.16 16 16 16h16c8.84 0 16-7.16 16-16v-24h192v24c0 8.84 7.16 16 16 16h16c8.84 0 16-7.16 16-16v-24h48v60c0 6.63 5.37 12 12 12h24c6.63 0 12-5.37 12-12V24c0-13.26-10.75-24-24-24zM96 120v24c0 8.84 7.16 16 16 16h16c8.84 0 16-7.16 16-16v-24h48v24c0 8.84 7.16 16 16 16h16c8.84 0 16-7.16 16-16v-24h192v24c0 8.84 7.16 16 16 16h16c8.84 0 16-7.16 16-16v-24h48v112H336v-24c0-8.84-7.16-16-16-16h-16c-8.84 0-16 7.16-16 16v24h-48v-24c0-8.84-7.16-16-16-16h-16c-8.84 0-16 7.16-16 16v24h-48v-24c0-8.84-7.16-16-16-16h-16c-8.84 0-16 7.16-16 16v24H48V120h48zm384 272v-24c0-8.84-7.16-16-16-16h-16c-8.84 0-16 7.16-16 16v24H240v-24c0-8.84-7.16-16-16-16h-16c-8.84 0-16 7.16-16 16v24h-48v-24c0-8.84-7.16-16-16-16h-16c-8.84 0-16 7.16-16 16v24H48V280h48v24c0 8.84 7.16 16 16 16h16c8.84 0 16-7.16 16-16v-24h48v24c0 8.84 7.16 16 16 16h16c8.84 0 16-7.16 16-16v-24h48v24c0 8.84 7.16 16 16 16h16c8.84 0 16-7.16 16-16v-24h192v112h-48z"]};!function(c){try{c()}catch(c){if(!v)throw c}}(function(){!function c(e,n,t){var r=(2<arguments.length&&void 0!==t?t:{}).skipHooks,o=void 0!==r&&r,v=Object.keys(n).reduce(function(c,e){var t=n[e];return t.icon?c[t.iconName]=t.icon:c[e]=t,c},{});"function"!=typeof s.hooks.addPack||o?s.styles[e]=i(i({},s.styles[e]||{}),v):s.hooks.addPack(e,v),"fas"===e&&c("fa",n)}("far",u)})}();
|
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.External = void 0;
const base_1 = require("./base");
class External extends base_1.Code {
build(ctx, out) {
out.push(`int ${this.ref.name}(`);
out.push(` ${ctx.prefix}_t* s, const unsigned char* p,`);
if (this.ref.signature === 'value') {
out.push(' const unsigned char* endp,');
out.push(' int value);');
}
else {
out.push(' const unsigned char* endp);');
}
}
}
exports.External = External;
//# sourceMappingURL=external.js.map
|
// Copyright 2010 the V8 project authors. All rights reserved.
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// * Redistributions in binary form must reproduce the above
// copyright notice, this list of conditions and the following
// disclaimer in the documentation and/or other materials provided
// with the distribution.
// * Neither the name of Google Inc. nor the names of its
// contributors may be used to endorse or promote products derived
// from this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
const SMI_MAX = (1 << 29) - 1 + (1 << 29); // Create without overflowing.
const SMI_MIN = -SMI_MAX - 1; // Create without overflowing.
const ONE = 1;
const ONE_HUNDRED = 100;
const OBJ_42 = new (function() {
this.valueOf = function() { return 42; };
})();
assertEquals(42, OBJ_42.valueOf());
function Add1(x) {
return x + 1;
}
function Add100(x) {
return x + 100;
}
function Add1Reversed(x) {
return 1 + x;
}
function Add100Reversed(x) {
return 100 + x;
}
assertEquals(1, Add1(0)); // fast case
assertEquals(1, Add1Reversed(0)); // fast case
assertEquals(SMI_MAX + ONE, Add1(SMI_MAX), "smimax + 1");
assertEquals(SMI_MAX + ONE, Add1Reversed(SMI_MAX), "1 + smimax");
assertEquals(42 + ONE, Add1(OBJ_42)); // non-smi
assertEquals(42 + ONE, Add1Reversed(OBJ_42)); // non-smi
assertEquals(100, Add100(0)); // fast case
assertEquals(100, Add100Reversed(0)); // fast case
assertEquals(SMI_MAX + ONE_HUNDRED, Add100(SMI_MAX), "smimax + 100");
assertEquals(SMI_MAX + ONE_HUNDRED, Add100Reversed(SMI_MAX), " 100 + smimax");
assertEquals(42 + ONE_HUNDRED, Add100(OBJ_42)); // non-smi
assertEquals(42 + ONE_HUNDRED, Add100Reversed(OBJ_42)); // non-smi
function Sub1(x) {
return x - 1;
}
function Sub100(x) {
return x - 100;
}
function Sub1Reversed(x) {
return 1 - x;
}
function Sub100Reversed(x) {
return 100 - x;
}
assertEquals(0, Sub1(1)); // fast case
assertEquals(-1, Sub1Reversed(2)); // fast case
assertEquals(SMI_MIN - ONE, Sub1(SMI_MIN)); // overflow
assertEquals(ONE - SMI_MIN, Sub1Reversed(SMI_MIN)); // overflow
assertEquals(42 - ONE, Sub1(OBJ_42)); // non-smi
assertEquals(ONE - 42, Sub1Reversed(OBJ_42)); // non-smi
assertEquals(0, Sub100(100)); // fast case
assertEquals(1, Sub100Reversed(99)); // fast case
assertEquals(SMI_MIN - ONE_HUNDRED, Sub100(SMI_MIN)); // overflow
assertEquals(ONE_HUNDRED - SMI_MIN, Sub100Reversed(SMI_MIN)); // overflow
assertEquals(42 - ONE_HUNDRED, Sub100(OBJ_42)); // non-smi
assertEquals(ONE_HUNDRED - 42, Sub100Reversed(OBJ_42)); // non-smi
function Shr1(x) {
return x >>> 1;
}
function Shr100(x) {
return x >>> 100;
}
function Shr1Reversed(x) {
return 1 >>> x;
}
function Shr100Reversed(x) {
return 100 >>> x;
}
function Sar1(x) {
return x >> 1;
}
function Sar100(x) {
return x >> 100;
}
function Sar1Reversed(x) {
return 1 >> x;
}
function Sar100Reversed(x) {
return 100 >> x;
}
assertEquals(0, Shr1(1));
assertEquals(0, Sar1(1));
assertEquals(0, Shr1Reversed(2));
assertEquals(0, Sar1Reversed(2));
assertEquals(1610612736, Shr1(SMI_MIN));
assertEquals(-536870912, Sar1(SMI_MIN));
assertEquals(1, Shr1Reversed(SMI_MIN));
assertEquals(1, Sar1Reversed(SMI_MIN));
assertEquals(21, Shr1(OBJ_42));
assertEquals(21, Sar1(OBJ_42));
assertEquals(0, Shr1Reversed(OBJ_42));
assertEquals(0, Sar1Reversed(OBJ_42));
assertEquals(6, Shr100(100), "100 >>> 100");
assertEquals(6, Sar100(100), "100 >> 100");
assertEquals(12, Shr100Reversed(99));
assertEquals(12, Sar100Reversed(99));
assertEquals(201326592, Shr100(SMI_MIN));
assertEquals(-67108864, Sar100(SMI_MIN));
assertEquals(100, Shr100Reversed(SMI_MIN));
assertEquals(100, Sar100Reversed(SMI_MIN));
assertEquals(2, Shr100(OBJ_42));
assertEquals(2, Sar100(OBJ_42));
assertEquals(0, Shr100Reversed(OBJ_42));
assertEquals(0, Sar100Reversed(OBJ_42));
function Xor1(x) {
return x ^ 1;
}
function Xor100(x) {
return x ^ 100;
}
function Xor1Reversed(x) {
return 1 ^ x;
}
function Xor100Reversed(x) {
return 100 ^ x;
}
assertEquals(0, Xor1(1));
assertEquals(3, Xor1Reversed(2));
assertEquals(SMI_MIN + 1, Xor1(SMI_MIN));
assertEquals(SMI_MIN + 1, Xor1Reversed(SMI_MIN));
assertEquals(43, Xor1(OBJ_42));
assertEquals(43, Xor1Reversed(OBJ_42));
assertEquals(0, Xor100(100));
assertEquals(7, Xor100Reversed(99));
assertEquals(-1073741724, Xor100(SMI_MIN));
assertEquals(-1073741724, Xor100Reversed(SMI_MIN));
assertEquals(78, Xor100(OBJ_42));
assertEquals(78, Xor100Reversed(OBJ_42));
var x = 0x23; var y = 0x35;
assertEquals(0x16, x ^ y);
// Bitwise not.
var v = 0;
assertEquals(-1, ~v);
v = SMI_MIN;
assertEquals(0x3fffffff, ~v, "~smimin");
v = SMI_MAX;
assertEquals(-0x40000000, ~v, "~smimax");
// Overflowing ++ and --.
v = SMI_MAX;
v++;
assertEquals(0x40000000, v, "smimax++");
v = SMI_MIN;
v--;
assertEquals(-0x40000001, v, "smimin--");
// Check that comparisons of numbers separated by MIN_SMI work.
assertFalse(SMI_MIN > 0);
assertFalse(SMI_MIN + 1 > 1);
assertFalse(SMI_MIN + 1 > 2);
assertFalse(SMI_MIN + 2 > 1);
assertFalse(0 < SMI_MIN);
assertTrue(-1 < SMI_MAX);
assertFalse(SMI_MAX < -1);
// Not actually Smi operations.
// Check that relations on unary ops work.
var v = -1.2;
assertTrue(v == v);
assertTrue(v === v);
assertTrue(v <= v);
assertTrue(v >= v);
assertFalse(v < v);
assertFalse(v > v);
assertFalse(v != v);
assertFalse(v !== v);
// Right hand side of unary minus is overwritable.
v = 1.5
assertEquals(-2.25, -(v * v));
// Smi input to bitop gives non-smi result where the rhs is a float that
// can be overwritten.
var x1 = 0x10000000;
var x2 = 0x40000002;
var x3 = 0x40000000;
assertEquals(0x40000000, x1 << (x2 - x3), "0x10000000<<1(1)");
// Smi input to bitop gives non-smi result where the rhs could be overwritten
// if it were a float, but it isn't.
x1 = 0x10000000
x2 = 4
x3 = 2
assertEquals(0x40000000, x1 << (x2 - x3), "0x10000000<<2(2)");
// Test shift operators on non-smi inputs, giving smi and non-smi results.
function testShiftNonSmis() {
var pos_non_smi = 2000000000;
var neg_non_smi = -pos_non_smi;
var pos_smi = 1000000000;
var neg_smi = -pos_smi;
// Begin block A
assertEquals(pos_non_smi, (pos_non_smi) >> 0);
assertEquals(pos_non_smi, (pos_non_smi) >>> 0);
assertEquals(pos_non_smi, (pos_non_smi) << 0);
assertEquals(neg_non_smi, (neg_non_smi) >> 0);
assertEquals(neg_non_smi + 0x100000000, (neg_non_smi) >>> 0);
assertEquals(neg_non_smi, (neg_non_smi) << 0);
assertEquals(pos_smi, (pos_smi) >> 0, "possmi >> 0");
assertEquals(pos_smi, (pos_smi) >>> 0, "possmi >>>0");
assertEquals(pos_smi, (pos_smi) << 0, "possmi << 0");
assertEquals(neg_smi, (neg_smi) >> 0, "negsmi >> 0");
assertEquals(neg_smi + 0x100000000, (neg_smi) >>> 0, "negsmi >>> 0");
assertEquals(neg_smi, (neg_smi) << 0), "negsmi << 0";
assertEquals(pos_non_smi / 2, (pos_non_smi) >> 1);
assertEquals(pos_non_smi / 2, (pos_non_smi) >>> 1);
assertEquals(-0x1194D800, (pos_non_smi) << 1);
assertEquals(pos_non_smi / 8, (pos_non_smi) >> 3);
assertEquals(pos_non_smi / 8, (pos_non_smi) >>> 3);
assertEquals(-0x46536000, (pos_non_smi) << 3);
assertEquals(0x73594000, (pos_non_smi) << 4);
assertEquals(pos_non_smi, (pos_non_smi + 0.5) >> 0);
assertEquals(pos_non_smi, (pos_non_smi + 0.5) >>> 0);
assertEquals(pos_non_smi, (pos_non_smi + 0.5) << 0);
assertEquals(pos_non_smi / 2, (pos_non_smi + 0.5) >> 1);
assertEquals(pos_non_smi / 2, (pos_non_smi + 0.5) >>> 1);
assertEquals(-0x1194D800, (pos_non_smi + 0.5) << 1);
assertEquals(pos_non_smi / 8, (pos_non_smi + 0.5) >> 3);
assertEquals(pos_non_smi / 8, (pos_non_smi + 0.5) >>> 3);
assertEquals(-0x46536000, (pos_non_smi + 0.5) << 3);
assertEquals(0x73594000, (pos_non_smi + 0.5) << 4);
assertEquals(neg_non_smi / 2, (neg_non_smi) >> 1, "negnonsmi >> 1");
assertEquals(neg_non_smi / 2 + 0x100000000 / 2, (neg_non_smi) >>> 1,
"negnonsmi >>> 1");
assertEquals(0x1194D800, (neg_non_smi) << 1);
assertEquals(neg_non_smi / 8, (neg_non_smi) >> 3);
assertEquals(neg_non_smi / 8 + 0x100000000 / 8, (neg_non_smi) >>> 3);
assertEquals(0x46536000, (neg_non_smi) << 3);
assertEquals(-0x73594000, (neg_non_smi) << 4);
assertEquals(neg_non_smi, (neg_non_smi - 0.5) >> 0);
assertEquals(neg_non_smi + 0x100000000, (neg_non_smi - 0.5) >>> 0,
"negnonsmi.5 >>> 0");
assertEquals(neg_non_smi, (neg_non_smi - 0.5) << 0);
assertEquals(neg_non_smi / 2, (neg_non_smi - 0.5) >> 1);
assertEquals(neg_non_smi / 2 + 0x100000000 / 2, (neg_non_smi - 0.5) >>> 1,
"negnonsmi.5 >>> 1");
assertEquals(0x1194D800, (neg_non_smi - 0.5) << 1);
assertEquals(neg_non_smi / 8, (neg_non_smi - 0.5) >> 3);
assertEquals(neg_non_smi / 8 + 0x100000000 / 8, (neg_non_smi - 0.5) >>> 3);
assertEquals(0x46536000, (neg_non_smi - 0.5) << 3);
assertEquals(-0x73594000, (neg_non_smi - 0.5) << 4);
assertEquals(pos_smi / 2, (pos_smi) >> 1);
assertEquals(pos_smi / 2, (pos_smi) >>> 1);
assertEquals(pos_non_smi, (pos_smi) << 1);
assertEquals(pos_smi / 8, (pos_smi) >> 3);
assertEquals(pos_smi / 8, (pos_smi) >>> 3);
assertEquals(-0x2329b000, (pos_smi) << 3);
assertEquals(0x73594000, (pos_smi) << 5);
assertEquals(pos_smi, (pos_smi + 0.5) >> 0, "possmi.5 >> 0");
assertEquals(pos_smi, (pos_smi + 0.5) >>> 0, "possmi.5 >>> 0");
assertEquals(pos_smi, (pos_smi + 0.5) << 0, "possmi.5 << 0");
assertEquals(pos_smi / 2, (pos_smi + 0.5) >> 1);
assertEquals(pos_smi / 2, (pos_smi + 0.5) >>> 1);
assertEquals(pos_non_smi, (pos_smi + 0.5) << 1);
assertEquals(pos_smi / 8, (pos_smi + 0.5) >> 3);
assertEquals(pos_smi / 8, (pos_smi + 0.5) >>> 3);
assertEquals(-0x2329b000, (pos_smi + 0.5) << 3);
assertEquals(0x73594000, (pos_smi + 0.5) << 5);
assertEquals(neg_smi / 2, (neg_smi) >> 1);
assertEquals(neg_smi / 2 + 0x100000000 / 2, (neg_smi) >>> 1);
assertEquals(neg_non_smi, (neg_smi) << 1);
assertEquals(neg_smi / 8, (neg_smi) >> 3);
assertEquals(neg_smi / 8 + 0x100000000 / 8, (neg_smi) >>> 3);
assertEquals(0x46536000, (neg_smi) << 4);
assertEquals(-0x73594000, (neg_smi) << 5);
assertEquals(neg_smi, (neg_smi - 0.5) >> 0, "negsmi.5 >> 0");
assertEquals(neg_smi + 0x100000000, (neg_smi - 0.5) >>> 0, "negsmi.5 >>> 0");
assertEquals(neg_smi, (neg_smi - 0.5) << 0, "negsmi.5 << 0");
assertEquals(neg_smi / 2, (neg_smi - 0.5) >> 1);
assertEquals(neg_smi / 2 + 0x100000000 / 2, (neg_smi - 0.5) >>> 1);
assertEquals(neg_non_smi, (neg_smi - 0.5) << 1);
assertEquals(neg_smi / 8, (neg_smi - 0.5) >> 3);
assertEquals(neg_smi / 8 + 0x100000000 / 8, (neg_smi - 0.5) >>> 3);
assertEquals(0x46536000, (neg_smi - 0.5) << 4);
assertEquals(-0x73594000, (neg_smi - 0.5) << 5);
// End block A
// Repeat block A with 2^32 added to positive numbers and
// 2^32 subtracted from negative numbers.
// Begin block A repeat 1
var two_32 = 0x100000000;
var neg_32 = -two_32;
assertEquals(pos_non_smi, (two_32 + pos_non_smi) >> 0);
assertEquals(pos_non_smi, (two_32 + pos_non_smi) >>> 0);
assertEquals(pos_non_smi, (two_32 + pos_non_smi) << 0);
assertEquals(neg_non_smi, (neg_32 + neg_non_smi) >> 0);
assertEquals(neg_non_smi + 0x100000000, (neg_32 + neg_non_smi) >>> 0);
assertEquals(neg_non_smi, (neg_32 + neg_non_smi) << 0);
assertEquals(pos_smi, (two_32 + pos_smi) >> 0, "2^32+possmi >> 0");
assertEquals(pos_smi, (two_32 + pos_smi) >>> 0, "2^32+possmi >>> 0");
assertEquals(pos_smi, (two_32 + pos_smi) << 0, "2^32+possmi << 0");
assertEquals(neg_smi, (neg_32 + neg_smi) >> 0, "2^32+negsmi >> 0");
assertEquals(neg_smi + 0x100000000, (neg_32 + neg_smi) >>> 0);
assertEquals(neg_smi, (neg_32 + neg_smi) << 0, "2^32+negsmi << 0");
assertEquals(pos_non_smi / 2, (two_32 + pos_non_smi) >> 1);
assertEquals(pos_non_smi / 2, (two_32 + pos_non_smi) >>> 1);
assertEquals(-0x1194D800, (two_32 + pos_non_smi) << 1);
assertEquals(pos_non_smi / 8, (two_32 + pos_non_smi) >> 3);
assertEquals(pos_non_smi / 8, (two_32 + pos_non_smi) >>> 3);
assertEquals(-0x46536000, (two_32 + pos_non_smi) << 3);
assertEquals(0x73594000, (two_32 + pos_non_smi) << 4);
assertEquals(pos_non_smi, (two_32 + pos_non_smi + 0.5) >> 0);
assertEquals(pos_non_smi, (two_32 + pos_non_smi + 0.5) >>> 0);
assertEquals(pos_non_smi, (two_32 + pos_non_smi + 0.5) << 0);
assertEquals(pos_non_smi / 2, (two_32 + pos_non_smi + 0.5) >> 1);
assertEquals(pos_non_smi / 2, (two_32 + pos_non_smi + 0.5) >>> 1);
assertEquals(-0x1194D800, (two_32 + pos_non_smi + 0.5) << 1);
assertEquals(pos_non_smi / 8, (two_32 + pos_non_smi + 0.5) >> 3);
assertEquals(pos_non_smi / 8, (two_32 + pos_non_smi + 0.5) >>> 3);
assertEquals(-0x46536000, (two_32 + pos_non_smi + 0.5) << 3);
assertEquals(0x73594000, (two_32 + pos_non_smi + 0.5) << 4);
assertEquals(neg_non_smi / 2, (neg_32 + neg_non_smi) >> 1);
assertEquals(neg_non_smi / 2 + 0x100000000 / 2, (neg_32 + neg_non_smi) >>> 1);
assertEquals(0x1194D800, (neg_32 + neg_non_smi) << 1);
assertEquals(neg_non_smi / 8, (neg_32 + neg_non_smi) >> 3);
assertEquals(neg_non_smi / 8 + 0x100000000 / 8, (neg_32 + neg_non_smi) >>> 3);
assertEquals(0x46536000, (neg_32 + neg_non_smi) << 3);
assertEquals(-0x73594000, (neg_32 + neg_non_smi) << 4);
assertEquals(neg_non_smi, (neg_32 + neg_non_smi - 0.5) >> 0);
assertEquals(neg_non_smi + 0x100000000, (neg_32 + neg_non_smi - 0.5) >>> 0);
assertEquals(neg_non_smi, (neg_32 + neg_non_smi - 0.5) << 0);
assertEquals(neg_non_smi / 2, (neg_32 + neg_non_smi - 0.5) >> 1);
assertEquals(neg_non_smi / 2 + 0x100000000 / 2, (neg_32 + neg_non_smi - 0.5)
>>> 1);
assertEquals(0x1194D800, (neg_32 + neg_non_smi - 0.5) << 1);
assertEquals(neg_non_smi / 8, (neg_32 + neg_non_smi - 0.5) >> 3);
assertEquals(neg_non_smi / 8 + 0x100000000 / 8, (neg_32 + neg_non_smi - 0.5)
>>> 3);
assertEquals(0x46536000, (neg_32 + neg_non_smi - 0.5) << 3);
assertEquals(-0x73594000, (neg_32 + neg_non_smi - 0.5) << 4);
assertEquals(pos_smi / 2, (two_32 + pos_smi) >> 1);
assertEquals(pos_smi / 2, (two_32 + pos_smi) >>> 1);
assertEquals(pos_non_smi, (two_32 + pos_smi) << 1);
assertEquals(pos_smi / 8, (two_32 + pos_smi) >> 3);
assertEquals(pos_smi / 8, (two_32 + pos_smi) >>> 3);
assertEquals(-0x2329b000, (two_32 + pos_smi) << 3);
assertEquals(0x73594000, (two_32 + pos_smi) << 5);
assertEquals(pos_smi, (two_32 + pos_smi + 0.5) >> 0);
assertEquals(pos_smi, (two_32 + pos_smi + 0.5) >>> 0);
assertEquals(pos_smi, (two_32 + pos_smi + 0.5) << 0);
assertEquals(pos_smi / 2, (two_32 + pos_smi + 0.5) >> 1);
assertEquals(pos_smi / 2, (two_32 + pos_smi + 0.5) >>> 1);
assertEquals(pos_non_smi, (two_32 + pos_smi + 0.5) << 1);
assertEquals(pos_smi / 8, (two_32 + pos_smi + 0.5) >> 3);
assertEquals(pos_smi / 8, (two_32 + pos_smi + 0.5) >>> 3);
assertEquals(-0x2329b000, (two_32 + pos_smi + 0.5) << 3);
assertEquals(0x73594000, (two_32 + pos_smi + 0.5) << 5);
assertEquals(neg_smi / 2, (neg_32 + neg_smi) >> 1);
assertEquals(neg_smi / 2 + 0x100000000 / 2, (neg_32 + neg_smi) >>> 1);
assertEquals(neg_non_smi, (neg_32 + neg_smi) << 1);
assertEquals(neg_smi / 8, (neg_32 + neg_smi) >> 3);
assertEquals((neg_smi + 0x100000000) / 8, (neg_32 + neg_smi) >>> 3);
assertEquals(0x46536000, (neg_32 + neg_smi) << 4);
assertEquals(-0x73594000, (neg_32 + neg_smi) << 5);
assertEquals(neg_smi, (neg_32 + neg_smi - 0.5) >> 0, "-2^32+negsmi.5 >> 0");
assertEquals(neg_smi + 0x100000000, (neg_32 + neg_smi - 0.5) >>> 0);
assertEquals(neg_smi, (neg_32 + neg_smi - 0.5) << 0, "-2^32+negsmi.5 << 0");
assertEquals(neg_smi / 2, (neg_32 + neg_smi - 0.5) >> 1);
assertEquals(neg_smi / 2 + 0x100000000 / 2, (neg_32 + neg_smi - 0.5) >>> 1);
assertEquals(neg_non_smi, (neg_32 + neg_smi - 0.5) << 1);
assertEquals(neg_smi / 8, (neg_32 + neg_smi - 0.5) >> 3);
assertEquals(neg_smi / 8 + 0x100000000 / 8, (neg_32 + neg_smi - 0.5) >>> 3);
assertEquals(0x46536000, (neg_32 + neg_smi - 0.5) << 4);
assertEquals(-0x73594000, (neg_32 + neg_smi - 0.5) << 5);
// End block A repeat 1
// Repeat block A with shift amounts in variables intialized with
// a constant.
var zero = 0;
var one = 1;
var three = 3;
var four = 4;
var five = 5;
// Begin block A repeat 2
assertEquals(pos_non_smi, (pos_non_smi) >> zero);
assertEquals(pos_non_smi, (pos_non_smi) >>> zero);
assertEquals(pos_non_smi, (pos_non_smi) << zero);
assertEquals(neg_non_smi, (neg_non_smi) >> zero);
assertEquals(neg_non_smi + 0x100000000, (neg_non_smi) >>> zero);
assertEquals(neg_non_smi, (neg_non_smi) << zero);
assertEquals(pos_smi, (pos_smi) >> zero);
assertEquals(pos_smi, (pos_smi) >>> zero);
assertEquals(pos_smi, (pos_smi) << zero);
assertEquals(neg_smi, (neg_smi) >> zero, "negsmi >> zero");
assertEquals(neg_smi + 0x100000000, (neg_smi) >>> zero);
assertEquals(neg_smi, (neg_smi) << zero, "negsmi << zero");
assertEquals(pos_non_smi / 2, (pos_non_smi) >> one);
assertEquals(pos_non_smi / 2, (pos_non_smi) >>> one);
assertEquals(-0x1194D800, (pos_non_smi) << one);
assertEquals(pos_non_smi / 8, (pos_non_smi) >> three);
assertEquals(pos_non_smi / 8, (pos_non_smi) >>> three);
assertEquals(-0x46536000, (pos_non_smi) << three);
assertEquals(0x73594000, (pos_non_smi) << four);
assertEquals(pos_non_smi, (pos_non_smi + 0.5) >> zero);
assertEquals(pos_non_smi, (pos_non_smi + 0.5) >>> zero);
assertEquals(pos_non_smi, (pos_non_smi + 0.5) << zero);
assertEquals(pos_non_smi / 2, (pos_non_smi + 0.5) >> one);
assertEquals(pos_non_smi / 2, (pos_non_smi + 0.5) >>> one);
assertEquals(-0x1194D800, (pos_non_smi + 0.5) << one);
assertEquals(pos_non_smi / 8, (pos_non_smi + 0.5) >> three);
assertEquals(pos_non_smi / 8, (pos_non_smi + 0.5) >>> three);
assertEquals(-0x46536000, (pos_non_smi + 0.5) << three);
assertEquals(0x73594000, (pos_non_smi + 0.5) << four);
assertEquals(neg_non_smi / 2, (neg_non_smi) >> one);
assertEquals(neg_non_smi / 2 + 0x100000000 / 2, (neg_non_smi) >>> one);
assertEquals(0x1194D800, (neg_non_smi) << one);
assertEquals(neg_non_smi / 8, (neg_non_smi) >> three);
assertEquals(neg_non_smi / 8 + 0x100000000 / 8, (neg_non_smi) >>> three);
assertEquals(0x46536000, (neg_non_smi) << three);
assertEquals(-0x73594000, (neg_non_smi) << four);
assertEquals(neg_non_smi, (neg_non_smi - 0.5) >> zero);
assertEquals(neg_non_smi + 0x100000000, (neg_non_smi - 0.5) >>> zero);
assertEquals(neg_non_smi, (neg_non_smi - 0.5) << zero);
assertEquals(neg_non_smi / 2, (neg_non_smi - 0.5) >> one);
assertEquals(neg_non_smi / 2 + 0x100000000 / 2, (neg_non_smi - 0.5) >>> one);
assertEquals(0x1194D800, (neg_non_smi - 0.5) << one);
assertEquals(neg_non_smi / 8, (neg_non_smi - 0.5) >> three);
assertEquals(neg_non_smi / 8 + 0x100000000 / 8, (neg_non_smi - 0.5)
>>> three);
assertEquals(0x46536000, (neg_non_smi - 0.5) << three);
assertEquals(-0x73594000, (neg_non_smi - 0.5) << four);
assertEquals(pos_smi / 2, (pos_smi) >> one);
assertEquals(pos_smi / 2, (pos_smi) >>> one);
assertEquals(pos_non_smi, (pos_smi) << one);
assertEquals(pos_smi / 8, (pos_smi) >> three);
assertEquals(pos_smi / 8, (pos_smi) >>> three);
assertEquals(-0x2329b000, (pos_smi) << three);
assertEquals(0x73594000, (pos_smi) << five);
assertEquals(pos_smi, (pos_smi + 0.5) >> zero);
assertEquals(pos_smi, (pos_smi + 0.5) >>> zero);
assertEquals(pos_smi, (pos_smi + 0.5) << zero);
assertEquals(pos_smi / 2, (pos_smi + 0.5) >> one);
assertEquals(pos_smi / 2, (pos_smi + 0.5) >>> one);
assertEquals(pos_non_smi, (pos_smi + 0.5) << one);
assertEquals(pos_smi / 8, (pos_smi + 0.5) >> three);
assertEquals(pos_smi / 8, (pos_smi + 0.5) >>> three);
assertEquals(-0x2329b000, (pos_smi + 0.5) << three);
assertEquals(0x73594000, (pos_smi + 0.5) << five);
assertEquals(neg_smi / 2, (neg_smi) >> one);
assertEquals(neg_smi / 2 + 0x100000000 / 2, (neg_smi) >>> one);
assertEquals(neg_non_smi, (neg_smi) << one);
assertEquals(neg_smi / 8, (neg_smi) >> three);
assertEquals(neg_smi / 8 + 0x100000000 / 8, (neg_smi) >>> three);
assertEquals(0x46536000, (neg_smi) << four);
assertEquals(-0x73594000, (neg_smi) << five);
assertEquals(neg_smi, (neg_smi - 0.5) >> zero);
assertEquals(neg_smi + 0x100000000, (neg_smi - 0.5) >>> zero);
assertEquals(neg_smi, (neg_smi - 0.5) << zero);
assertEquals(neg_smi / 2, (neg_smi - 0.5) >> one);
assertEquals(neg_smi / 2 + 0x100000000 / 2, (neg_smi - 0.5) >>> one);
assertEquals(neg_non_smi, (neg_smi - 0.5) << one);
assertEquals(neg_smi / 8, (neg_smi - 0.5) >> three);
assertEquals(neg_smi / 8 + 0x100000000 / 8, (neg_smi - 0.5) >>> three);
assertEquals(0x46536000, (neg_smi - 0.5) << four);
assertEquals(-0x73594000, (neg_smi - 0.5) << five);
// End block A repeat 2
// Repeat previous block, with computed values in the shift variables.
five = 0;
while (five < 5 ) ++five;
four = five - one;
three = four - one;
one = four - three;
zero = one - one;
// Begin block A repeat 3
assertEquals(pos_non_smi, (pos_non_smi) >> zero);
assertEquals(pos_non_smi, (pos_non_smi) >>> zero);
assertEquals(pos_non_smi, (pos_non_smi) << zero);
assertEquals(neg_non_smi, (neg_non_smi) >> zero);
assertEquals(neg_non_smi + 0x100000000, (neg_non_smi) >>> zero);
assertEquals(neg_non_smi, (neg_non_smi) << zero);
assertEquals(pos_smi, (pos_smi) >> zero);
assertEquals(pos_smi, (pos_smi) >>> zero);
assertEquals(pos_smi, (pos_smi) << zero);
assertEquals(neg_smi, (neg_smi) >> zero, "negsmi >> zero(2)");
assertEquals(neg_smi + 0x100000000, (neg_smi) >>> zero);
assertEquals(neg_smi, (neg_smi) << zero, "negsmi << zero(2)");
assertEquals(pos_non_smi / 2, (pos_non_smi) >> one);
assertEquals(pos_non_smi / 2, (pos_non_smi) >>> one);
assertEquals(-0x1194D800, (pos_non_smi) << one);
assertEquals(pos_non_smi / 8, (pos_non_smi) >> three);
assertEquals(pos_non_smi / 8, (pos_non_smi) >>> three);
assertEquals(-0x46536000, (pos_non_smi) << three);
assertEquals(0x73594000, (pos_non_smi) << four);
assertEquals(pos_non_smi, (pos_non_smi + 0.5) >> zero);
assertEquals(pos_non_smi, (pos_non_smi + 0.5) >>> zero);
assertEquals(pos_non_smi, (pos_non_smi + 0.5) << zero);
assertEquals(pos_non_smi / 2, (pos_non_smi + 0.5) >> one);
assertEquals(pos_non_smi / 2, (pos_non_smi + 0.5) >>> one);
assertEquals(-0x1194D800, (pos_non_smi + 0.5) << one);
assertEquals(pos_non_smi / 8, (pos_non_smi + 0.5) >> three);
assertEquals(pos_non_smi / 8, (pos_non_smi + 0.5) >>> three);
assertEquals(-0x46536000, (pos_non_smi + 0.5) << three);
assertEquals(0x73594000, (pos_non_smi + 0.5) << four);
assertEquals(neg_non_smi / 2, (neg_non_smi) >> one);
assertEquals(neg_non_smi / 2 + 0x100000000 / 2, (neg_non_smi) >>> one);
assertEquals(0x1194D800, (neg_non_smi) << one);
assertEquals(neg_non_smi / 8, (neg_non_smi) >> three);
assertEquals(neg_non_smi / 8 + 0x100000000 / 8, (neg_non_smi) >>> three);
assertEquals(0x46536000, (neg_non_smi) << three);
assertEquals(-0x73594000, (neg_non_smi) << four);
assertEquals(neg_non_smi, (neg_non_smi - 0.5) >> zero);
assertEquals(neg_non_smi + 0x100000000, (neg_non_smi - 0.5) >>> zero);
assertEquals(neg_non_smi, (neg_non_smi - 0.5) << zero);
assertEquals(neg_non_smi / 2, (neg_non_smi - 0.5) >> one);
assertEquals(neg_non_smi / 2 + 0x100000000 / 2, (neg_non_smi - 0.5) >>> one);
assertEquals(0x1194D800, (neg_non_smi - 0.5) << one);
assertEquals(neg_non_smi / 8, (neg_non_smi - 0.5) >> three);
assertEquals(neg_non_smi / 8 + 0x100000000 / 8, (neg_non_smi - 0.5)
>>> three);
assertEquals(0x46536000, (neg_non_smi - 0.5) << three);
assertEquals(-0x73594000, (neg_non_smi - 0.5) << four);
assertEquals(pos_smi / 2, (pos_smi) >> one);
assertEquals(pos_smi / 2, (pos_smi) >>> one);
assertEquals(pos_non_smi, (pos_smi) << one);
assertEquals(pos_smi / 8, (pos_smi) >> three);
assertEquals(pos_smi / 8, (pos_smi) >>> three);
assertEquals(-0x2329b000, (pos_smi) << three);
assertEquals(0x73594000, (pos_smi) << five);
assertEquals(pos_smi, (pos_smi + 0.5) >> zero);
assertEquals(pos_smi, (pos_smi + 0.5) >>> zero);
assertEquals(pos_smi, (pos_smi + 0.5) << zero);
assertEquals(pos_smi / 2, (pos_smi + 0.5) >> one);
assertEquals(pos_smi / 2, (pos_smi + 0.5) >>> one);
assertEquals(pos_non_smi, (pos_smi + 0.5) << one);
assertEquals(pos_smi / 8, (pos_smi + 0.5) >> three);
assertEquals(pos_smi / 8, (pos_smi + 0.5) >>> three);
assertEquals(-0x2329b000, (pos_smi + 0.5) << three);
assertEquals(0x73594000, (pos_smi + 0.5) << five);
assertEquals(neg_smi / 2, (neg_smi) >> one);
assertEquals(neg_smi / 2 + 0x100000000 / 2, (neg_smi) >>> one);
assertEquals(neg_non_smi, (neg_smi) << one);
assertEquals(neg_smi / 8, (neg_smi) >> three);
assertEquals(neg_smi / 8 + 0x100000000 / 8, (neg_smi) >>> three);
assertEquals(0x46536000, (neg_smi) << four);
assertEquals(-0x73594000, (neg_smi) << five);
assertEquals(neg_smi, (neg_smi - 0.5) >> zero, "negsmi.5 >> zero");
assertEquals(neg_smi + 0x100000000, (neg_smi - 0.5) >>> zero);
assertEquals(neg_smi, (neg_smi - 0.5) << zero, "negsmi.5 << zero");
assertEquals(neg_smi / 2, (neg_smi - 0.5) >> one);
assertEquals(neg_smi / 2 + 0x100000000 / 2, (neg_smi - 0.5) >>> one);
assertEquals(neg_non_smi, (neg_smi - 0.5) << one);
assertEquals(neg_smi / 8, (neg_smi - 0.5) >> three);
assertEquals(neg_smi / 8 + 0x100000000 / 8, (neg_smi - 0.5) >>> three);
assertEquals(0x46536000, (neg_smi - 0.5) << four);
assertEquals(-0x73594000, (neg_smi - 0.5) << five);
// End block A repeat 3
// Test non-integer shift value
assertEquals(5, 20.5 >> 2.4);
assertEquals(5, 20.5 >> 2.7);
var shift = 2.4;
assertEquals(5, 20.5 >> shift);
assertEquals(5, 20.5 >> shift + 0.3);
shift = shift + zero;
assertEquals(5, 20.5 >> shift);
assertEquals(5, 20.5 >> shift + 0.3);
}
testShiftNonSmis();
function intConversion() {
function foo(x) {
assertEquals(x, (x * 1.0000000001) | 0, "foo more " + x);
assertEquals(x, x | 0, "foo " + x);
if (x > 0) {
assertEquals(x - 1, (x * 0.9999999999) | 0, "foo less " + x);
} else {
assertEquals(x + 1, (x * 0.9999999999) | 0, "foo less " + x);
}
}
for (var i = 1; i < 0x80000000; i *= 2) {
foo(i);
foo(-i);
}
for (var i = 1; i < 1/0; i *= 2) {
assertEquals(i | 0, (i * 1.0000000000000001) | 0, "b" + i);
assertEquals(-i | 0, (i * -1.0000000000000001) | 0, "c" + i);
}
for (var i = 0.5; i > 0; i /= 2) {
assertEquals(0, i | 0, "d" + i);
assertEquals(0, -i | 0, "e" + i);
}
}
intConversion();
// Verify that we handle the (optimized) corner case of shifting by
// zero even for non-smis.
function shiftByZero(n) { return n << 0; }
assertEquals(3, shiftByZero(3.1415));
// Verify that the static type information of x >>> 32 is computed correctly.
function LogicalShiftRightByMultipleOf32(x) {
x = x >>> 32;
return x + x;
}
assertEquals(4589934592, LogicalShiftRightByMultipleOf32(-2000000000));
assertEquals(4589934592, LogicalShiftRightByMultipleOf32(-2000000000));
// Verify that the shift amount is reduced modulo 32, not modulo 64.
function LeftShiftThreeBy(x) {return 3 << x;}
assertEquals(24, LeftShiftThreeBy(3));
assertEquals(24, LeftShiftThreeBy(35));
assertEquals(24, LeftShiftThreeBy(67));
assertEquals(24, LeftShiftThreeBy(-29));
// Regression test for a bug in the ARM code generator. For some register
// allocations we got the Smi overflow case wrong.
function f(x, y) { return y + ( 1 << (x & 31)); }
assertEquals(-2147483647, f(31, 1));
// Regression test for correct handling of overflow in smi comparison.
assertTrue(-0x40000000 < 42);
|
/*
ESTRUTURA DE REPETIÇÃO - FOR IN
*/
/*
const student = {
name: 'Carlos',
age: 25,
genre: 'male'
}
for(let propety in student){
console.log(`${propety}: ${student[propety]}`)
}
*/
let peaple = {
name: 'José',
age: 50,
genre: 'male',
height: 1.7,
address: 'Rua 2 de Julho',
nationality: 'Brasileiro'
}
for(let propety in peaple) {
console.log(`${propety}: ${peaple[propety]}`)
}
|
// Simple websocket server demo
var response = require("ringo/jsgi/response");
var arrays = require("ringo/utils/arrays");
var connections = [];
exports.app = function(req) {
return response.static(module.resolve("html/websocket.html"), "text/html");
};
function onconnect(conn) {
conn.addListener("open", function() {
connections.push(conn);
console.info("Opening connection, " + connections.length + " open");
});
conn.addListener("message", function(message) {
connections.forEach(function(conn) {
conn.send(message);
});
console.info("Sending message");
});
conn.addListener("close", function() {
arrays.remove(connections, conn);
console.info("Closing connection, " + connections.length + " remaining");
})
}
if (require.main == module) {
var server = require("ringo/httpserver").main(module.id);
server.getDefaultContext().addWebSocket("/websocket", onconnect);
}
|
import { sum } from './sum.js'
describe('sum', () => {
it('sums numbers', () => {
expect(sum(1, 2, 3)).toEqual(6)
})
})
|
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.lang['km']={"editor":"ឧបករណ៍សរសេរអត្ថបទសម្បូរបែប","common":{"editorHelp":"ចុច ALT 0 សម្រាប់ជំនួយ","browseServer":"រកមើលក្នុងម៉ាស៊ីនបម្រើ","url":"URL","protocol":"ពិធីការ","upload":"ផ្ទុកឡើង","uploadSubmit":"បញ្ជូនទៅកាន់ម៉ាស៊ីនបម្រើ","image":"រូបភាព","flash":"Flash","form":"បែបបទ","checkbox":"ប្រអប់ធីក","radio":"ប៊ូតុងមូល","textField":"វាលអត្ថបទ","textarea":"Textarea","hiddenField":"វាលកំបាំង","button":"ប៊ូតុង","select":"វាលជម្រើស","imageButton":"ប៊ូតុងរូបភាព","notSet":"<មិនកំណត់>","id":"Id","name":"ឈ្មោះ","langDir":"ទិសដៅភាសា","langDirLtr":"ពីឆ្វេងទៅស្តាំ (LTR)","langDirRtl":"ពីស្តាំទៅឆ្វេង (RTL)","langCode":"លេខកូដភាសា","longDescr":"URL អធិប្បាយវែង","cssClass":"Stylesheet Classes","advisoryTitle":"ចំណងជើងណែនាំ","cssStyle":"រចនាបថ","ok":"ព្រម","cancel":"បោះបង់","close":"បិទ","preview":"មើលជាមុន","resize":"ប្ដូរទំហំ","generalTab":"ទូទៅ","advancedTab":"កម្រិតខ្ពស់","validateNumberFailed":"តម្លៃនេះពុំមែនជាលេខទេ។","confirmNewPage":"រាល់បន្លាស់ប្ដូរនានាដែលមិនទាន់រក្សាទុកក្នុងមាតិកានេះ នឹងត្រូវបាត់បង់។ តើអ្នកពិតជាចង់ផ្ទុកទំព័រថ្មីមែនទេ?","confirmCancel":"ការកំណត់មួយចំនួនត្រូវបានផ្លាស់ប្ដូរ។ តើអ្នកពិតជាចង់បិទប្រអប់នេះមែនទេ?","options":"ការកំណត់","target":"គោលដៅ","targetNew":"វីនដូថ្មី (_blank)","targetTop":"វីនដូលើគេ (_top)","targetSelf":"វីនដូដូចគ្នា (_self)","targetParent":"វីនដូមេ (_parent)","langDirLTR":"ពីឆ្វេងទៅស្តាំ(LTR)","langDirRTL":"ពីស្តាំទៅឆ្វេង(RTL)","styles":"រចនាបថ","cssClasses":"Stylesheet Classes","width":"ទទឹង","height":"កំពស់","align":"កំណត់ទីតាំង","alignLeft":"ខាងឆ្វង","alignRight":"ខាងស្តាំ","alignCenter":"កណ្តាល","alignTop":"ខាងលើ","alignMiddle":"កណ្តាល","alignBottom":"ខាងក្រោម","invalidValue":"តម្លៃមិនត្រឹមត្រូវ។","invalidHeight":"តម្លៃកំពស់ត្រូវតែជាលេខ។","invalidWidth":"តម្លៃទទឹងត្រូវតែជាលេខ។","invalidCssLength":"តម្លៃកំណត់សម្រាប់វាល \"%1\" ត្រូវតែជាលេខវិជ្ជមាន ដោយភ្ជាប់ឬមិនភ្ជាប់ជាមួយនឹងឯកតារង្វាស់របស់ CSS (px, %, in, cm, mm, em, ex, pt ឬ pc) ។","invalidHtmlLength":"តម្លៃកំណត់សម្រាប់វាល \"%1\" ត្រូវតែជាលេខវិជ្ជមាន ដោយភ្ជាប់ឬមិនភ្ជាប់ជាមួយនឹងឯកតារង្វាស់របស់ HTML (px ឬ %) ។","invalidInlineStyle":"តម្លៃកំណត់សម្រាប់រចនាបថក្នុងតួ ត្រូវតែមានមួយឬធាតុច្រើនដោយមានទ្រង់ទ្រាយជា \"ឈ្មោះ : តម្លៃ\" ហើយញែកចេញពីគ្នាដោយចុចក្បៀស។","cssLengthTooltip":"បញ្ចូលលេខសម្រាប់តម្លៃជាភិចសែល ឬលេខដែលមានឯកតាត្រឹមត្រូវរបស់ CSS (px, %, in, cm, mm, em, ex, pt ឬ pc) ។","unavailable":"%1<span class=\"cke_accessibility\">, មិនមាន</span>"},"about":{"copy":"រក្សាសិទ្ធិ © $1។ រក្សាសិទ្ធិគ្រប់បែបយ៉ាង។","dlgTitle":"អំពី CKEditor","help":"ពិនិត្យ $1 សម្រាប់ជំនួយ។","moreInfo":"សម្រាប់ព័ត៌មានអំពីអាជ្ញាបណញណ សូមមើលក្នុងគេហទំព័ររបស់យើង៖","title":"អំពី CKEditor","userGuide":"វិធីប្រើប្រាស់ CKEditor"},"basicstyles":{"bold":"ក្រាស់","italic":"ទ្រេត","strike":"គូសបន្ទាត់ចំកណ្ដាល","subscript":"អក្សរតូចក្រោម","superscript":"អក្សរតូចលើ","underline":"គូសបន្ទាត់ក្រោម"},"bidi":{"ltr":"Text direction from left to right","rtl":"Text direction from right to left"},"blockquote":{"toolbar":"Block Quote"},"clipboard":{"copy":"ចំលងយក","copyError":"ការកំណត់សុវត្ថភាពរបស់កម្មវិធីរុករករបស់លោកអ្នក នេះមិនអាចធ្វើកម្មវិធីតាក់តែងអត្ថបទ ចំលងអត្ថបទយកដោយស្វ័យប្រវត្តបានឡើយ ។ សូមប្រើប្រាស់បន្សំ ឃីដូចនេះ (Ctrl/Cmd+C)។","cut":"កាត់យក","cutError":"ការកំណត់សុវត្ថភាពរបស់កម្មវិធីរុករករបស់លោកអ្នក នេះមិនអាចធ្វើកម្មវិធីតាក់តែងអត្ថបទ កាត់អត្ថបទយកដោយស្វ័យប្រវត្តបានឡើយ ។ សូមប្រើប្រាស់បន្សំ ឃីដូចនេះ (Ctrl/Cmd+X) ។","paste":"ចំលងដាក់","pasteArea":"Paste Area","pasteMsg":"សូមចំលងអត្ថបទទៅដាក់ក្នុងប្រអប់ដូចខាងក្រោមដោយប្រើប្រាស់ ឃី (<STRONG>Ctrl/Cmd+V</STRONG>) ហើយចុច <STRONG>OK</STRONG> ។","securityMsg":"Because of your browser security settings, the editor is not able to access your clipboard data directly. You are required to paste it again in this window.","title":"ចំលងដាក់"},"colorbutton":{"auto":"ស្វ័យប្រវត្តិ","bgColorTitle":"ពណ៌ផ្ទៃខាងក្រោយ","colors":{"000":"ខ្មៅ","800000":"ត្នោតចាស់","8B4513":"Saddle Brown","2F4F4F":"Dark Slate Gray","008080":"Teal","000080":"ខៀវចាស់","4B0082":"ធ្លះ","696969":"ប្រផេះក្រាស់","B22222":"Fire Brick","A52A2A":"ត្នោត","DAA520":"Golden Rod","006400":"បៃតងចាស់","40E0D0":"Turquoise","0000CD":"Medium Blue","800080":"Purple","808080":"ប្រផេះ","F00":"ក្រហម","FF8C00":"ទឹកក្រូចចាស់","FFD700":"មាស","008000":"បៃតង","0FF":"Cyan","00F":"ខៀវ","EE82EE":"ស្វាយ","A9A9A9":"Dim Gray","FFA07A":"Light Salmon","FFA500":"ទឹកក្រូច","FFFF00":"លឿង","00FF00":"ក្រូចឆ្មារ","AFEEEE":"Pale Turquoise","ADD8E6":"Light Blue","DDA0DD":"Plum","D3D3D3":"Light Grey","FFF0F5":"Lavender Blush","FAEBD7":"Antique White","FFFFE0":"លឿងស្ដើង","F0FFF0":"Honeydew","F0FFFF":"ផ្ទៃមេឃ","F0F8FF":"Alice Blue","E6E6FA":"ឡាវិនដឺ","FFF":"ស"},"more":"ពណ៌ផ្សេងទៀត..","panelTitle":"ពណ៌","textColorTitle":"ពណ៌អក្សរ"},"colordialog":{"clear":"Clear","highlight":"Highlight","options":"Color Options","selected":"Selected Color","title":"Select color"},"templates":{"button":"ពុម្ពគំរូ","emptyListMsg":"(មិនមានពុម្ពគំរូត្រូវបានកំណត់)","insertOption":"ជំនួសក្នុងមាតិកាបច្ចុប្បន្ន","options":"ជម្រើសពុម្ពគំរូ","selectPromptMsg":"សូមរើសពុម្ពគំរូដើម្បីបើកក្នុងកម្មវិធីសរសេរអត្ថបទ","title":"ពុម្ពគំរូមាតិកា"},"contextmenu":{"options":"Context Menu Options"},"div":{"IdInputLabel":"Id","advisoryTitleInputLabel":"ចំណងជើង ប្រឹក្សា","cssClassInputLabel":"Stylesheet Classes","edit":"Edit Div","inlineStyleInputLabel":"Inline Style","langDirLTRLabel":"ពីឆ្វេងទៅស្តាំ(LTR)","langDirLabel":"ទិសដៅភាសា","langDirRTLLabel":"ពីស្តាំទៅឆ្វេង(RTL)","languageCodeInputLabel":" Language Code","remove":"Remove Div","styleSelectLabel":"ម៉ូត","title":"Create Div Container","toolbar":"Create Div Container"},"toolbar":{"toolbarCollapse":"បង្រួមរបារឧបករណ៍","toolbarExpand":"ពង្រីករបារឧបករណ៍","toolbarGroups":{"document":"ឯកសារ","clipboard":"Clipboard/មិនធ្វើវិញ","editing":"ការកែសម្រួល","forms":"បែបបទ","basicstyles":"រចនាបថមូលដ្ឋាន","paragraph":"កថាខណ្ឌ","links":"តំណ","insert":"បញ្ចូល","styles":"រចនាបថ","colors":"ពណ៌","tools":"ឧបករណ៍"},"toolbars":"របារឧបករណ៍កែសម្រួល"},"elementspath":{"eleLabel":"Elements path","eleTitle":"%1 element"},"find":{"find":"ស្វែងរក","findOptions":"Find Options","findWhat":"ស្វែងរកអ្វី:","matchCase":"ករណ៉ត្រូវរក","matchCyclic":"Match cyclic","matchWord":"ត្រូវពាក្យទាំងអស់","notFoundMsg":"ពាក្យនេះ រកមិនឃើញទេ ។","replace":"ជំនួស","replaceAll":"ជំនួសទាំងអស់","replaceSuccessMsg":"%1 occurrence(s) replaced.","replaceWith":"ជំនួសជាមួយ:","title":"Find and Replace"},"fakeobjects":{"anchor":"បន្ថែម/កែប្រែ យុថ្កា","flash":"Flash Animation","hiddenfield":"ជួរលាក់","iframe":"IFrame","unknown":"Unknown Object"},"flash":{"access":"Script Access","accessAlways":"Always","accessNever":"Never","accessSameDomain":"Same domain","alignAbsBottom":"Abs Bottom","alignAbsMiddle":"Abs Middle","alignBaseline":"បន្ទាត់ជាមូលដ្ឋាន","alignTextTop":"លើអត្ថបទ","bgcolor":"ពណ៌ផ្ទៃខាងក្រោយ","chkFull":"Allow Fullscreen","chkLoop":"ចំនួនដង","chkMenu":"បង្ហាញ មឺនុយរបស់ Flash","chkPlay":"លេងដោយស្វ័យប្រវត្ត","flashvars":"Variables for Flash","hSpace":"គំលាតទទឹង","properties":"ការកំណត់ Flash","propertiesTab":"Properties","quality":"Quality","qualityAutoHigh":"Auto High","qualityAutoLow":"Auto Low","qualityBest":"Best","qualityHigh":"High","qualityLow":"Low","qualityMedium":"Medium","scale":"ទំហំ","scaleAll":"បង្ហាញទាំងអស់","scaleFit":"ត្រូវល្មម","scaleNoBorder":"មិនបង្ហាញស៊ុម","title":"ការកំណត់ Flash","vSpace":"គំលាតបណ្តោយ","validateHSpace":"HSpace must be a number.","validateSrc":"សូមសរសេរ អាស័យដ្ឋាន URL","validateVSpace":"VSpace must be a number.","windowMode":"Window mode","windowModeOpaque":"Opaque","windowModeTransparent":"Transparent","windowModeWindow":"Window"},"font":{"fontSize":{"label":"ទំហំ","voiceLabel":"Font Size","panelTitle":"ទំហំ"},"label":"ហ្វុង","panelTitle":"ហ្វុង","voiceLabel":"ហ្វុង"},"forms":{"button":{"title":"ការកំណត់ ប៉ូតុន","text":"អត្ថបទ(តំលៃ)","type":"ប្រភេទ","typeBtn":"Button","typeSbm":"Submit","typeRst":"Reset"},"checkboxAndRadio":{"checkboxTitle":"ការកំណត់ប្រអប់ជ្រើសរើស","radioTitle":"ការកំណត់ប៉ូតុនរង្វង់","value":"តំលៃ","selected":"បានជ្រើសរើស"},"form":{"title":"ការកំណត់បែបបទ","menu":"ការកំណត់បែបបទ","action":"សកម្មភាព","method":"វិធី","encoding":"Encoding"},"hidden":{"title":"ការកំណត់ជួរលាក់","name":"ឈ្មោះ","value":"តំលៃ"},"select":{"title":"ការកំណត់ជួរជ្រើសរើស","selectInfo":"ពត៌មាន","opAvail":"ការកំណត់ជ្រើសរើស ដែលអាចកំណត់បាន","value":"តំលៃ","size":"ទំហំ","lines":"បន្ទាត់","chkMulti":"អនុញ្ញាតអោយជ្រើសរើសច្រើន","opText":"ពាក្យ","opValue":"តំលៃ","btnAdd":"បន្ថែម","btnModify":"ផ្លាស់ប្តូរ","btnUp":"លើ","btnDown":"ក្រោម","btnSetValue":"Set as selected value","btnDelete":"លប់"},"textarea":{"title":"ការកំណត់កន្លែងសរសេរអត្ថបទ","cols":"ជូរឈរ","rows":"ជូរផ្តេក"},"textfield":{"title":"ការកំណត់ជួរអត្ថបទ","name":"ឈ្មោះ","value":"តំលៃ","charWidth":"ទទឹង អក្សរ","maxChars":"អក្សរអតិបរិមា","type":"ប្រភេទ","typeText":"ពាក្យ","typePass":"ពាក្យសំងាត់","typeEmail":"Email","typeSearch":"Search","typeTel":"Telephone Number","typeUrl":"URL"}},"format":{"label":"រចនា","panelTitle":"រចនា","tag_address":"Address","tag_div":"Normal (DIV)","tag_h1":"Heading 1","tag_h2":"Heading 2","tag_h3":"Heading 3","tag_h4":"Heading 4","tag_h5":"Heading 5","tag_h6":"Heading 6","tag_p":"Normal","tag_pre":"Formatted"},"horizontalrule":{"toolbar":"បន្ថែមបន្ទាត់ផ្តេក"},"iframe":{"border":"Show frame border","noUrl":"Please type the iframe URL","scrolling":"Enable scrollbars","title":"IFrame Properties","toolbar":"IFrame"},"image":{"alertUrl":"សូមសរសេរងាស័យដ្ឋានរបស់រូបភាព","alt":"អត្ថបទជំនួស","border":"ស៊ុម","btnUpload":"បញ្ជូនទៅកាន់ម៉ាស៊ីនផ្តល់សេវា","button2Img":"Do you want to transform the selected image button on a simple image?","hSpace":"គំលាតទទឹង","img2Button":"Do you want to transform the selected image on a image button?","infoTab":"ពត៌មានអំពីរូបភាព","linkTab":"ឈ្នាប់","lockRatio":"អត្រាឡុក","menu":"ការកំណត់រូបភាព","resetSize":"កំណត់ទំហំឡើងវិញ","title":"ការកំណត់រូបភាព","titleButton":"ការកំណត់ប៉ូតុនរូបភាព","upload":"ទាញយក","urlMissing":"Image source URL is missing.","vSpace":"គំលាតបណ្តោយ","validateBorder":"Border must be a whole number.","validateHSpace":"HSpace must be a whole number.","validateVSpace":"VSpace must be a whole number."},"indent":{"indent":"បន្ថែមការចូលបន្ទាត់","outdent":"បន្ថយការចូលបន្ទាត់"},"smiley":{"options":"ជម្រើសរូបសញ្ញាអារម្មណ៍","title":"បញ្ចូលរូបសញ្ញាអារម្មណ៍","toolbar":"រូបសញ្ញអារម្មណ៍"},"justify":{"block":"តំរឹមសងខាង","center":"តំរឹមកណ្តាល","left":"តំរឹមឆ្វេង","right":"តំរឹមស្តាំ"},"link":{"acccessKey":"ឃី សំរាប់ចូល","advanced":"កំរិតខ្ពស់","advisoryContentType":"ប្រភេទអត្ថបទ ប្រឹក្សា","advisoryTitle":"ចំណងជើង ប្រឹក្សា","anchor":{"toolbar":"បន្ថែម/កែប្រែ យុថ្កា","menu":"ការកំណត់យុថ្កា","title":"ការកំណត់យុថ្កា","name":"ឈ្មោះយុទ្ធថ្កា","errorName":"សូមសរសេរ ឈ្មោះយុទ្ធថ្កា","remove":"Remove Anchor"},"anchorId":"តាម Id","anchorName":"តាមឈ្មោះរបស់យុថ្កា","charset":"លេខកូតអក្សររបស់ឈ្នាប់","cssClasses":"Stylesheet Classes","emailAddress":"អ៊ីមែល","emailBody":"អត្ថបទ","emailSubject":"ចំណងជើងអត្ថបទ","id":"Id","info":"ពត៌មានអំពីឈ្នាប់","langCode":"ទិសដៅភាសា","langDir":"ទិសដៅភាសា","langDirLTR":"ពីឆ្វេងទៅស្តាំ(LTR)","langDirRTL":"ពីស្តាំទៅឆ្វេង(RTL)","menu":"កែប្រែឈ្នាប់","name":"ឈ្មោះ","noAnchors":"(No anchors available in the document)","noEmail":"សូមសរសេរ អាស័យដ្ឋាន អ៊ីមែល","noUrl":"សូមសរសេរ អាស័យដ្ឋាន URL","other":"<other>","popupDependent":"អាស្រ័យលើ (Netscape)","popupFeatures":"លក្ខណះរបស់វីនដូលលោត","popupFullScreen":"អេក្រុងពេញ(IE)","popupLeft":"ទីតាំងខាងឆ្វេង","popupLocationBar":"របា ទីតាំង","popupMenuBar":"របា មឺនុយ","popupResizable":"Resizable","popupScrollBars":"របា ទាញ","popupStatusBar":"របា ពត៌មាន","popupToolbar":"របា ឩបករណ៍","popupTop":"ទីតាំងខាងលើ","rel":"Relationship","selectAnchor":"ជ្រើសរើសយុថ្កា","styles":"ម៉ូត","tabIndex":"លេខ Tab","target":"គោលដៅ","targetFrame":"<ហ្វ្រេម>","targetFrameName":"ឈ្មោះហ្រ្វេមដែលជាគោលដៅ","targetPopup":"<វីនដូវ លោត>","targetPopupName":"ឈ្មោះវីនដូវលោត","title":"ឈ្នាប់","toAnchor":"យុថ្កានៅក្នុងទំព័រនេះ","toEmail":"អ៊ីមែល","toUrl":"URL","toolbar":"បន្ថែម/កែប្រែ ឈ្នាប់","type":"ប្រភេទឈ្នាប់","unlink":"លប់ឈ្នាប់","upload":"ទាញយក"},"list":{"bulletedlist":"បញ្ជីជារង្វង់មូល","numberedlist":"បញ្ជីជាអក្សរ"},"liststyle":{"armenian":"លេខអារមេនី","bulletedTitle":"Bulleted List Properties","circle":"Circle","decimal":"Decimal (1, 2, 3, etc.)","decimalLeadingZero":"Decimal leading zero (01, 02, 03, etc.)","disc":"Disc","georgian":"Georgian numbering (an, ban, gan, etc.)","lowerAlpha":"Lower Alpha (a, b, c, d, e, etc.)","lowerGreek":"Lower Greek (alpha, beta, gamma, etc.)","lowerRoman":"Lower Roman (i, ii, iii, iv, v, etc.)","none":"None","notset":"<not set>","numberedTitle":"Numbered List Properties","square":"Square","start":"ចាប់ផ្ដើម","type":"ប្រភេទ","upperAlpha":"អក្សរធំ (A, B, C, D, E, ...)","upperRoman":"លេខរ៉ូម៉ាំងធំ (I, II, III, IV, V, ...)","validateStartNumber":"List start number must be a whole number."},"magicline":{"title":"Insert paragraph here"},"maximize":{"maximize":"ពង្រីកអតិបរមា","minimize":"បង្រួមអប្បបរមា"},"newpage":{"toolbar":"ទំព័រថ្មី"},"pagebreak":{"alt":"បំបែកទំព័រ","toolbar":"បន្ថែមការបំបែកទំព័រមុនបោះពុម្ព"},"pastetext":{"button":"បិទភ្ជាប់ជាអត្ថបទធម្មតា","title":"បិទភ្ជាប់ជាអត្ថបទធម្មតា"},"pastefromword":{"confirmCleanup":"អត្ថបទដែលអ្នកចង់បិទភ្ជាប់នេះ ទំនងដូចជាចម្លងមកពី Word។ តើអ្នកចង់សម្អាតវាមុនបិទភ្ជាប់ទេ?","error":"ដោយសារមានបញ្ហាផ្នែកក្នុងធ្វើឲ្យមិនអាចសម្អាតទិន្នន័យដែលបានបិទភ្ជាប់","title":"បិទភ្ជាប់ពី Word","toolbar":"បិទភ្ជាប់ពី Word"},"preview":{"preview":"មើលសាកល្បង"},"print":{"toolbar":"បោះពុម្ព"},"removeformat":{"toolbar":"ជម្រះទ្រង់ទ្រាយ"},"save":{"toolbar":"រក្សាទុក"},"selectall":{"toolbar":"រើសទាំងអស់"},"showblocks":{"toolbar":"បង្ហាញប្លក់"},"sourcearea":{"toolbar":"អក្សរកូដ"},"specialchar":{"options":"ជម្រើសតួអក្សរពិសេស","title":"រើសតួអក្សរពិសេស","toolbar":"បន្ថែមអក្សរពិសេស"},"scayt":{"about":"About SCAYT","aboutTab":"About","addWord":"Add Word","allCaps":"Ignore All-Caps Words","dic_create":"Create","dic_delete":"Delete","dic_field_name":"Dictionary name","dic_info":"Initially the User Dictionary is stored in a Cookie. However, Cookies are limited in size. When the User Dictionary grows to a point where it cannot be stored in a Cookie, then the dictionary may be stored on our server. To store your personal dictionary on our server you should specify a name for your dictionary. If you already have a stored dictionary, please type its name and click the Restore button.","dic_rename":"Rename","dic_restore":"Restore","dictionariesTab":"Dictionaries","disable":"Disable SCAYT","emptyDic":"Dictionary name should not be empty.","enable":"Enable SCAYT","ignore":"Ignore","ignoreAll":"Ignore All","ignoreDomainNames":"Ignore Domain Names","langs":"Languages","languagesTab":"Languages","mixedCase":"Ignore Words with Mixed Case","mixedWithDigits":"Ignore Words with Numbers","moreSuggestions":"More suggestions","opera_title":"Not supported by Opera","options":"Options","optionsTab":"Options","title":"Spell Check As You Type","toggle":"Toggle SCAYT","noSuggestions":"No suggestion"},"stylescombo":{"label":"រចនាបថ","panelTitle":"ទ្រង់ទ្រាយរចនាបថ","panelTitle1":"រចនាបថប្លក់","panelTitle2":"រចនាបថក្នុងជួរ","panelTitle3":"រចនាបថវត្ថុ"},"table":{"border":"ទំហំបន្ទាត់ស៊ុម","caption":"ចំណងជើង","cell":{"menu":"ក្រឡា","insertBefore":"បញ្ចូលក្រឡាពីមុខ","insertAfter":"បញ្ចូលក្រឡាពីក្រោយ","deleteCell":"លុបក្រឡា","merge":"បញ្ចូលក្រឡាចូលគ្នា","mergeRight":"បញ្ចូលគ្នាខាងស្ដាំ","mergeDown":"បញ្ចូលគ្នាចុះក្រោម","splitHorizontal":"ពុះក្រឡាផ្ដេក","splitVertical":"ពុះក្រឡាបញ្ឈរ","title":"លក្ខណៈក្រឡា","cellType":"ប្រភេទក្រឡា","rowSpan":"ចំនួនជួរដេកលាយចូលគ្នា","colSpan":"ចំនួនជួរឈរលាយចូលគ្នា","wordWrap":"រុំពាក្យ","hAlign":"ការតម្រឹមផ្ដេក","vAlign":"ការតម្រឹមបញ្ឈរ","alignBaseline":"ខ្សែបន្ទាត់គោល","bgColor":"ពណ៌ផ្ទៃក្រោយ","borderColor":"ពណ៌បន្ទាត់ស៊ុម","data":"ទិន្នន័យ","header":"ក្បាល","yes":"ព្រម","no":"ទេ","invalidWidth":"ទទឹងក្រឡាត្រូវតែជាលេខ។","invalidHeight":"កម្ពស់ក្រឡាត្រូវតែជាលេខ។","invalidRowSpan":"ចំនួនជួរដេកលាយចូលគ្នាត្រូវតែជាលេខទាំងអស់។","invalidColSpan":"ចំនួនជួរឈរលាយចូលគ្នាត្រូវតែជាលេខទាំងអស់។","chooseColor":"រើស"},"cellPad":"ចន្លោះក្រឡា","cellSpace":"គម្លាតក្រឡា","column":{"menu":"ជួរឈរ","insertBefore":"បញ្ចូលជួរឈរពីមុខ","insertAfter":"បញ្ចូលជួរឈរពីក្រោយ","deleteColumn":"លុបជួរឈរ"},"columns":"ជួរឈរ","deleteTable":"លុបតារាង","headers":"ក្បាល","headersBoth":"ទាំងពីរ","headersColumn":"ជួរឈរដំបូង","headersNone":"មិនមាន","headersRow":"ជួរដេកដំបូង","invalidBorder":"ទំហំបន្ទាត់ស៊ុមត្រូវតែជាលេខ។","invalidCellPadding":"ចន្លោះក្រឡាត្រូវតែជាលេខវិជ្ជមាន។","invalidCellSpacing":"គម្លាតក្រឡាត្រូវតែជាលេខវិជ្ជមាន។","invalidCols":"ចំនួនជួរឈរត្រូវតែជាលេខធំជាង 0។","invalidHeight":"កម្ពស់តារាងត្រូវតែជាលេខ","invalidRows":"ចំនួនជួរដេកត្រូវតែជាលេខធំជាង 0។","invalidWidth":"ទទឹងតារាងត្រូវតែជាលេខ។","menu":"លក្ខណៈតារាង","row":{"menu":"ជួរដេក","insertBefore":"បញ្ចូលជួរដេកពីមុខ","insertAfter":"បញ្ចូលជួរដេកពីក្រោយ","deleteRow":"លុបជួរដេក"},"rows":"ជួរដេក","summary":"សេចក្តីសង្ខេប","title":"លក្ខណៈតារាង","toolbar":"តារាង","widthPc":"ភាគរយ","widthPx":"ភីកសែល","widthUnit":"ឯកតាទទឹង"},"undo":{"redo":"ធ្វើឡើងវិញ","undo":"មិនធ្វើវិញ"},"wsc":{"btnIgnore":"មិនផ្លាស់ប្តូរ","btnIgnoreAll":"មិនផ្លាស់ប្តូរ ទាំងអស់","btnReplace":"ជំនួស","btnReplaceAll":"ជំនួសទាំងអស់","btnUndo":"សារឡើងវិញ","changeTo":"ផ្លាស់ប្តូរទៅ","errorLoading":"Error loading application service host: %s.","ieSpellDownload":"ពុំមានកម្មវិធីពិនិត្យអក្ខរាវិរុទ្ធ ។ តើចង់ទាញយកពីណា?","manyChanges":"ការពិនិត្យអក្ខរាវិរុទ្ធបានចប់: %1 ពាក្យបានផ្លាស់ប្តូរ","noChanges":"ការពិនិត្យអក្ខរាវិរុទ្ធបានចប់: ពុំមានផ្លាស់ប្តូរ","noMispell":"ការពិនិត្យអក្ខរាវិរុទ្ធបានចប់: គ្មានកំហុស","noSuggestions":"- គ្មានសំណើរ -","notAvailable":"Sorry, but service is unavailable now.","notInDic":"គ្មានក្នុងវចនានុក្រម","oneChange":"ការពិនិត្យអក្ខរាវិរុទ្ធបានចប់: ពាក្យមួយត្រូចបានផ្លាស់ប្តូរ","progress":"កំពុងពិនិត្យអក្ខរាវិរុទ្ធ...","title":"Spell Check","toolbar":"ពិនិត្យអក្ខរាវិរុទ្ធ"},"youtube":{"button":"Embed Youtube Video","title":"Embed Youtube Video","txtEmbed":"Paste Embed Code Here","txtUrl":"Paste Youtube Video URL","txtWidth":"Width","txtHeight":"Height","chkRelated":"Show suggested videos at the video's end","txtStartAt":"Start at (ss or mm:ss or hh:mm:ss)","chkPrivacy":"Enable privacy-enhanced mode","chkOlderCode":"Use old embed code","noCode":"You must input an embed code or URL","invalidEmbed":"The embed code you've entered doesn't appear to be valid","invalidUrl":"The URL you've entered doesn't appear to be valid","or":"or","noWidth":"You must inform the width","invalidWidth":"Inform a valid width","noHeight":"You must inform the height","invalidHeight":"Inform a valid height","invalidTime":"Inform a valid start time"}};
|
const CACHE_VERSION = "v2";
const CACHE_FILES = ["/styles/style.css", "/main.js", "/offline"];
self.addEventListener("install", (event) => {
console.log("Installing service worker");
event.waitUntil(
caches.open(CACHE_VERSION).then((cache) => {
//update service worker if possible to newest version
return cache.addAll(CACHE_FILES).then(() => self.skipWaiting());
})
);
});
self.addEventListener("activate", (event) => {
console.log("Activating service worker");
// event.waitUntil(clients.claim());
});
self.addEventListener("fetch", (event) => {
console.log("Fetch event: ", event.request.url);
if (isCoreGetRequest(event.request)) {
console.log("Core get request: ", event.request.url);
//get css and js files
event.respondWith(
caches.open(CACHE_VERSION).then((cache) => cache.match(event.request.url))
);
} else if (isHtmlGetRequest(event.request)) {
console.log("html get request", event.request.url);
// get html files if not show offline page
event.respondWith(
caches
.open("html-cache")
.then((cache) => cache.match(event.request.url))
.then((response) =>
response ? response : fetchAndCache(event.request, "html-cache")
)
.catch((e) => {
return caches
.open(CACHE_VERSION)
.then((cache) => cache.match("/offline"));
})
);
}
});
const fetchAndCache = (request, cacheName) => {
return fetch(request).then((response) => {
if (!response.ok) {
throw new TypeError("Bad response status");
}
const clone = response.clone();
caches.open(cacheName).then((cache) => cache.put(request, clone));
return response;
});
};
const isHtmlGetRequest = (request) => {
return (
request.method === "GET" &&
request.headers.get("accept") !== null &&
request.headers.get("accept").includes("text/html")
);
};
const isCoreGetRequest = (request) => {
// return files defined in CACHE_FILES
return (
request.method === "GET" && CACHE_FILES.includes(getPathName(request.url))
);
};
const getPathName = (requestUrl) => {
const url = new URL(requestUrl);
return url.pathname;
};
|
import React, { useRef, useState, useEffect } from "react"
import DropdownArrowBlue from "../Icons/DropdownArrowBlue.js"
import SearchSVG from "../Icons/Search.js"
import ListItems from "./ListItems.js"
import ListTable from "./ListTable.js"
// import paymentStyles from "./payments.module.scss"
const Payments = ({ containerStyle, spinnerStyle }) => {
const spanOneRef = useRef()
const spanTwoRef = useRef()
const svgRef = useRef()
const listItemRef = useRef()
const [isOpen, toggleOpen] = useState(false)
const [showText, setText] = useState("All")
const handleOpenList = event => {
if (
event.target === spanOneRef.current ||
event.target === spanTwoRef.current ||
event.target === svgRef.current
) {
return toggleOpen(prevState => !prevState)
} else {
setText(event.target.textContent)
return toggleOpen(false)
}
}
return (
<section className={containerStyle}>
<div>Payments</div>
<div>
<span>Showing</span>
<span>
20 <DropdownArrowBlue />
</span>
<span>out of 500 payments</span>
<span>
<SearchSVG />
<input type="text" placeholder="Search payments" />
</span>
<span>Show</span>
<div onClick={handleOpenList}>
<div>
<span ref={spanOneRef}>{showText}</span>
<span ref={spanTwoRef}>
<DropdownArrowBlue
svgreference={svgRef}
className={!isOpen ? spinnerStyle : ""}
/>
</span>
</div>
{isOpen && <ListItems listref={listItemRef} />}
</div>
</div>
<ListTable />
</section>
)
}
export default Payments
|
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
// Copyright 2016-2017 AdlerTech
var Graphene;
(function (Graphene) {
var Config = /** @class */ (function () {
function Config() {
// Performance
this.AutoAdjustAtomCount = true;
this.Density = 0.5;
this.MaxAtoms = 200;
this.MaxLinkLength = 150;
this.MaxLinksPerAtom = 0;
// Renderer
this.AlphaBackground = false;
this.DrawLinks = true;
this.DrawQuadTree = false;
this.LinkWidth = 1.5;
this.AtomMinSize = 4;
this.AtomMaxSize = 8;
this.MaxFPS = 60;
// Colors
this.BackgroundColor = undefined;
this.LinkColor = undefined;
this.AtomColor = undefined;
this.AtomBorderColor = undefined;
// Dimensions
this.Height = 0;
this.Width = 0;
this.MaxHeight = 0;
this.MaxWidth = 0;
this.UserInterface = true;
// Physics
this.TPS = 60;
this.ElectricalForce = 0; // electrical force constant, acts between atoms. (1000 is a good value)
this.Gravity = { X: 0, Y: 0 }; // Applies force to all atoms
this.AtomCollisions = true;
this.WallCollisions = true;
this.WallFriction = 0.9; // How much energy is preserved when bouncing atoms at walls
this.AtomFriction = 0.9; // How much energy is preserved when colliding atoms
}
Config.parse = function (config) {
var c = new Config();
console.log('Parsing config: ' + JSON.stringify(config));
// tslint:disable-next-line:forin
for (var key in c) {
if (c.hasOwnProperty(key) && config[key] != null) {
var value = config[key];
if (key === 'AtomColor') {
if (value.constructor === Array.constructor) {
c[key] = value;
}
else {
c[key] = [value];
}
}
else {
console.log('Setting value ' + key + ' : ' + value);
c[key] = value;
}
}
}
return c;
};
return Config;
}());
Graphene.Config = Config;
})(Graphene || (Graphene = {}));
// Copyright 2017 AdlerTech
var Graphene;
(function (Graphene) {
var RECORD_LENGTH = 1000;
var TIME_SECOND = 1000;
var DROP_THRESHOLD = 5 * TIME_SECOND;
var AVERAGE_LENGTH = 100; // The samples over which to accumulate the average
var Control = /** @class */ (function () {
function Control() {
this._frameTimes = new Array(RECORD_LENGTH);
this._frameTimesIdx = 0;
this._frameCount = 0;
this._physicsTimes = new Array(RECORD_LENGTH);
this._physicsTimesIdx = 0;
this._physicsCount = 0;
this._frameStart = 0;
this._physicsStart = 0;
}
Control.prototype.onFrameStart = function () {
this._frameStart = window.performance.now();
};
Control.prototype.onFrameStop = function () {
var now = window.performance.now();
var duration = now - this._frameStart;
if (this._frameStart > 0 && duration < DROP_THRESHOLD) {
this._frameCount++;
this._frameTimesIdx = ++this._frameTimesIdx < RECORD_LENGTH ? this._frameTimesIdx : 0;
this._frameTimes[this._frameTimesIdx] = duration;
}
};
Control.prototype.onPhysicsStart = function () {
this._physicsStart = window.performance.now();
};
Control.prototype.onPhysicsStop = function () {
var now = window.performance.now();
var duration = now - this._physicsStart;
if (this._physicsStart > 0 && duration < DROP_THRESHOLD) {
this._physicsCount++;
this._physicsTimesIdx = ++this._physicsTimesIdx < RECORD_LENGTH ? this._physicsTimesIdx : 0;
this._physicsTimes[this._physicsTimesIdx] = duration;
}
};
Control.prototype.onRenderStart = function () {
};
Control.prototype.onRenderStop = function () {
};
Object.defineProperty(Control.prototype, "AveragePhysicsTime", {
get: function () {
var time = 0;
var times = 0;
for (var i = 0; i < 5; ++i) {
var idx = this._physicsTimesIdx - i;
if (idx < 0) {
idx = RECORD_LENGTH - idx;
}
var t = this._physicsTimes[idx];
if (t != null && t > 0) {
times++;
time += t;
}
}
if (times > 0) {
return time / times;
}
return 0;
},
enumerable: true,
configurable: true
});
Object.defineProperty(Control.prototype, "AverageFrameTime", {
get: function () {
var time = 0;
var times = 0;
for (var i = 0; i < 5; ++i) {
var idx = this._frameTimesIdx - i;
if (idx < 0) {
idx = RECORD_LENGTH - idx;
}
var t = this._frameTimes[idx];
if (t != null && t > 0) {
times++;
time += t;
}
}
if (times > 0) {
return time / times;
}
return 0;
},
enumerable: true,
configurable: true
});
Object.defineProperty(Control.prototype, "LastFrameTime", {
get: function () {
return this._frameTimes[this._frameTimesIdx];
},
enumerable: true,
configurable: true
});
Object.defineProperty(Control.prototype, "LastPhysicsTime", {
get: function () {
return this._physicsTimes[this._physicsTimesIdx];
},
enumerable: true,
configurable: true
});
return Control;
}());
Graphene.Control = Control;
})(Graphene || (Graphene = {}));
// Copyright 2016-2017 AdlerTech
var Graphene;
(function (Graphene) {
var InstanceManager = /** @class */ (function () {
function InstanceManager() {
}
InstanceManager.createInstance = function (canvas, config, useroverlay) {
if (useroverlay === void 0) { useroverlay = null; }
console.log('Creating instance...');
var i = new Graphene.Instance(this.generateId(), canvas, config, useroverlay);
this._instances.push(i);
return i;
};
InstanceManager.generateId = function () {
return '1'; // TODO
};
InstanceManager._instances = new Array();
return InstanceManager;
}());
Graphene.InstanceManager = InstanceManager;
})(Graphene || (Graphene = {}));
// Copyright 2016-2017 AdlerTech
var Graphene;
(function (Graphene) {
var Instance = /** @class */ (function () {
function Instance(id, canvas, config, useroverlay) {
if (useroverlay === void 0) { useroverlay = null; }
var _this = this;
this._activeAtomCount = 0;
this._atoms = new Array();
this._height = 0;
this._width = 0;
this._loopId = 0;
this._lastRunTimeStamp = 0;
this._cyclesExceeded = 0;
this._autoAtomLimit = 0;
this._framesBetweenControl = 0;
this._control = new Graphene.Control();
this.Links = new Array();
this.mainLoop = function (timestamp) {
_this._control.onFrameStart();
_this.controlAtomPopulation();
_this._physics.update(timestamp);
if (_this._lastRunTimeStamp === 0 ||
_this.Config.MaxFPS === 0 ||
_this._lastRunTimeStamp < timestamp - (1000 / _this.Config.MaxFPS)) {
_this._renderer.doRenderCycle();
_this._lastRunTimeStamp = timestamp;
}
if (_this._userInterface != null) {
_this._userInterface.onUpdateCycle(_this._physics);
}
_this._loopId = window.requestAnimationFrame(_this.mainLoop);
_this._control.onFrameStop();
};
this.onWindowResize = function (ev) {
_this.updateCanvasDimensions();
};
this._id = id;
this._canvas = canvas;
this._config = Graphene.Config.parse(config);
if (this._config.UserInterface) {
this._userInterface = new Graphene.UserInterface(this, this._canvas);
this._userInterface.bindTo(useroverlay != null ? useroverlay : canvas);
}
this.updateCanvasDimensions();
this._renderer = new Graphene.Renderer(this._canvas, this);
this._physics = new Graphene.Physics(this, this._control);
window.addEventListener('resize', this.onWindowResize);
}
Instance.prototype.start = function () {
if (this._loopId === 0) {
this._loopId = window.requestAnimationFrame(this.mainLoop);
}
};
Instance.prototype.stop = function () {
if (this._loopId !== 0) {
window.cancelAnimationFrame(this._loopId);
}
};
Instance.prototype.controlAtomPopulation = function () {
var densityAtomCount = Math.round(this.Config.Density !== 0 ?
(this._width * this._height) / 1000 * this.Config.Density : 0);
var maxAtoms = this.Config.MaxAtoms;
var maxFrameTime = 1000 / this.Config.MaxFPS;
var averageFrameTime = this._control.AverageFrameTime;
var maxPhysicsTime = 1000 / this.Config.TPS * 0.5;
var averagePhysicsTime = this._control.AveragePhysicsTime;
var targetAtomCount = 0;
if (densityAtomCount > 0 && maxAtoms > 0) {
targetAtomCount = densityAtomCount > maxAtoms ? maxAtoms : densityAtomCount;
}
else if (densityAtomCount > 0 && maxAtoms === 0) {
targetAtomCount = densityAtomCount;
}
else if (densityAtomCount === 0 && maxAtoms > 0) {
targetAtomCount = maxAtoms;
}
if (this.Config.AutoAdjustAtomCount) {
var atoms = this._activeAtomCount; // > 0 ? this._activeAtomCount : maxAtoms;
if (this._control.LastFrameTime > 500) {
targetAtomCount = (atoms * 0.2) | 0;
this._autoAtomLimit = targetAtomCount;
console.log('PopulationControl:', 'Panic, reducing atom count from ' + atoms + ' to ' + targetAtomCount);
}
else if (this._framesBetweenControl <= 0 && averageFrameTime > maxFrameTime * 1.5) {
var f = maxFrameTime / averageFrameTime;
if (f < 0.8) {
f = 0.8;
}
targetAtomCount = Math.round(atoms * f);
if (targetAtomCount <= 1) {
targetAtomCount = 2;
}
this._autoAtomLimit = targetAtomCount;
this._framesBetweenControl = 100;
console.log('PopulationControl:', 'Reducing atom count from ' + atoms + ' to ' + targetAtomCount + ' Factor is:' + f);
console.log('AverageFrameTime: ', averageFrameTime, 'MaxFrameTime', maxFrameTime);
}
else if (this._framesBetweenControl <= 0
&& averageFrameTime > 0 && averageFrameTime < maxFrameTime * 0.5
&& (maxAtoms === 0 || atoms < maxAtoms)
&& (densityAtomCount === 0 || atoms < densityAtomCount)) {
var f = maxFrameTime / averageFrameTime;
if (f > 1.2) {
f = 1.2;
}
targetAtomCount = Math.round(atoms * f);
if (targetAtomCount - atoms > 250) {
targetAtomCount = atoms + 250;
}
if (targetAtomCount === atoms) {
targetAtomCount++;
}
if (densityAtomCount > 0 && targetAtomCount > densityAtomCount) {
targetAtomCount = densityAtomCount;
}
if (maxAtoms > 0 && targetAtomCount > maxAtoms) {
targetAtomCount = maxAtoms;
}
this._autoAtomLimit = targetAtomCount;
this._framesBetweenControl = 100;
console.log('PopulationControl:', 'Increasing atom count from ' + atoms + ' to ' + targetAtomCount + ' Factor is:' + f);
console.log('AverageFrameTime: ', averageFrameTime, 'MaxFrameTime', maxFrameTime);
}
else if (this._autoAtomLimit > 0) {
targetAtomCount = this._autoAtomLimit;
}
this._framesBetweenControl--;
}
if (this._atoms.length < targetAtomCount) {
this._atoms.length = targetAtomCount;
}
else if (this._atoms.length > targetAtomCount) {
this._atoms.splice(targetAtomCount, this._atoms.length - targetAtomCount);
}
for (var i = 0; i < this._atoms.length; ++i) {
if (this._atoms[i] == null) {
// tslint:disable-next-line:max-line-length
this._atoms[i] = new Graphene.Atom(i, this.Config.AtomMinSize, this.Config.AtomMaxSize, this.getRandomPosition(), this.getRandomVector());
}
}
this._activeAtomCount = this._atoms.length;
};
Instance.prototype.getRandomPosition = function () {
return new Graphene.Point(Math.random() * this.Width, Math.random() * this.Height);
};
Instance.prototype.getRandomVector = function () {
var v = new Graphene.Vector(1, 1).scaleTo(Math.random() * 200);
return v.rotate(Math.random() * 2 * Math.PI);
};
Instance.prototype.updateCanvasDimensions = function () {
var c = this._config;
var p = this._canvas.parentElement;
if (c.Width === 0) {
if (c.MaxWidth > 0) {
this._width = p.clientWidth > c.MaxWidth ? c.MaxWidth : p.clientWidth;
}
else {
this._width = p.clientWidth;
}
}
else {
this._width = c.Width;
}
if (c.Height === 0) {
if (c.MaxHeight > 0) {
this._height = p.clientHeight > c.MaxHeight ? c.MaxHeight : p.clientHeight;
}
else {
this._height = p.clientHeight;
}
}
else {
this._height = c.Height;
}
this._canvas.setAttribute('width', this._width.toString(10));
this._canvas.setAttribute('height', this._height.toString(10));
};
Object.defineProperty(Instance.prototype, "Config", {
get: function () {
return this._config;
},
enumerable: true,
configurable: true
});
Object.defineProperty(Instance.prototype, "Atoms", {
get: function () {
return this._atoms;
},
enumerable: true,
configurable: true
});
Object.defineProperty(Instance.prototype, "Physics", {
get: function () {
return this._physics;
},
enumerable: true,
configurable: true
});
Object.defineProperty(Instance.prototype, "Height", {
get: function () {
return this._height;
},
enumerable: true,
configurable: true
});
Object.defineProperty(Instance.prototype, "Width", {
get: function () {
return this._width;
},
enumerable: true,
configurable: true
});
return Instance;
}());
Graphene.Instance = Instance;
var Dimensions = /** @class */ (function () {
function Dimensions() {
}
return Dimensions;
}());
Graphene.Dimensions = Dimensions;
})(Graphene || (Graphene = {}));
// Copyright 2016-2017 AdlerTech
var Graphene;
(function (Graphene) {
var Physics = /** @class */ (function () {
function Physics(instance, control) {
this._lastRunTimestamp = 0;
this._quadTree = null;
this._instance = instance;
this._config = instance.Config;
this._control = control;
}
Physics.prototype.update = function (timestamp) {
var step = 1000 / this._config.TPS;
var delta = this._lastRunTimestamp === 0 ? step : timestamp - this._lastRunTimestamp;
if (delta > step * 100) {
console.log('Physics could not keep up. Skipping ' + Math.floor(delta / step) + ' Physics ticks.');
delta = step * 100;
}
for (; delta >= step; delta -= step) {
this._control.onPhysicsStart();
this._quadTree = null;
this.applyForce();
this.applyAtomWallCollisions();
this.checkAtomAtomCollisions();
this.moveAtoms();
this.applyLinks();
this._control.onPhysicsStop();
}
this._lastRunTimestamp = timestamp - delta; // If we skip parts of a step run it next time
};
Physics.prototype.applyAtomWallCollisions = function () {
if (!this._config.WallCollisions) {
return;
}
var friction = this._config.WallFriction;
var width = this._instance.Width;
var height = this._instance.Height;
var outSideBoxX = function (atom) {
return (atom.Position.X - atom.Size < 0 && atom.Vector.X < 0)
|| (atom.Position.X + atom.Size >= width && atom.Vector.X > 0);
};
var outSideBoxY = function (atom) {
return (atom.Position.Y - atom.Size < 0 && atom.Vector.Y < 0)
|| (atom.Position.Y + atom.Size >= height && atom.Vector.Y > 0);
};
for (var _i = 0, _a = this._instance.Atoms; _i < _a.length; _i++) {
var atom = _a[_i];
if (outSideBoxX(atom)) {
atom.Vector = new Graphene.Vector(atom.Vector.X * -1, atom.Vector.Y);
}
if (outSideBoxY(atom)) {
atom.Vector = new Graphene.Vector(atom.Vector.X, atom.Vector.Y * -1);
}
while (outSideBoxX(atom) || outSideBoxY(atom)) {
var v = atom.Vector.scaleBy(this.getSpeedFactor() * 0.1);
atom.Position.X += v.X;
atom.Position.Y += v.Y;
}
}
};
Physics.prototype.applyAtomAtomCollision = function (atom1, atom2) {
var dist = atom1.Size + atom2.Size;
var cnt = 0;
while (dist > atom1.distanceTo(atom2)) {
atom1.Position.X += -atom1.Vector.X * this.getSpeedFactor() * 0.1;
atom1.Position.Y += -atom1.Vector.Y * this.getSpeedFactor() * 0.1;
atom2.Position.X += -atom2.Vector.X * this.getSpeedFactor() * 0.1;
atom2.Position.Y += -atom2.Vector.Y * this.getSpeedFactor() * 0.1;
++cnt;
}
var calcVsAndVe = function (nd1, nd2) {
var n = Graphene.Vector.fromAtoms(nd1, nd2);
n = n.scaleTo(nd1.Size);
var alph = nd1.Vector.angle(n);
var vS = new Graphene.Vector(n.X, n.Y);
vS = vS.scaleTo(nd1.Vector.length() * Math.cos(alph));
var x = nd1.Vector.X - vS.X;
var y = nd1.Vector.Y - vS.X / n.X * n.Y;
var vE = new Graphene.Vector(x, y);
return { vS: vS, vE: vE };
};
var obj1 = calcVsAndVe(atom1, atom2);
var vS1 = obj1.vS;
var vE1 = obj1.vE;
var obj2 = calcVsAndVe(atom2, atom1);
var vS2 = obj2.vS;
var vE2 = obj2.vE;
// Resultierender Vektor parallel zu Stoßnormalen
var friction = this._config.AtomFriction;
var calcU = function (v1, v2, m1, m2) {
var X = (m1 * v1.X + m2 * (2 * v2.X - v1.X)) / (m1 + m2);
var Y = (m1 * v1.Y + m2 * (2 * v2.Y - v1.Y)) / (m1 + m2);
return new Graphene.Vector(X, Y).scaleBy(friction);
};
var uS1 = calcU(vS1, vS2, atom1.Mass, atom2.Mass);
var uS2 = calcU(vS2, vS1, atom2.Mass, atom1.Mass);
atom1.Vector = uS1.add(vE1);
atom2.Vector = uS2.add(vE2);
};
Physics.prototype.applyForce = function () {
var g = new Graphene.Vector(this._instance.Config.Gravity.X, this._instance.Config.Gravity.Y);
if (g.length() > 0) {
for (var _i = 0, _a = this._instance.Atoms; _i < _a.length; _i++) {
var atom = _a[_i];
atom.Vector = atom.Vector.add(g.scaleBy(this.getSpeedFactor()));
}
}
var electricalForce = this._config.ElectricalForce;
if (electricalForce > 0 || electricalForce < 0) {
for (var _b = 0, _c = this._instance.Atoms; _b < _c.length; _b++) {
var a = _c[_b];
for (var i = a.Id + 1; i < this._instance.Atoms.length; ++i) {
var a2 = this._instance.Atoms[i];
var v = Graphene.Vector.fromAtoms(a, a2).invert();
var d = v.length();
var f = electricalForce * a.Charge * a2.Charge / Math.pow(d, 2);
var v1 = v.scaleTo(f);
var v2 = v1.invert();
a.Vector = a.Vector.add(v1);
a2.Vector = a2.Vector.add(v2);
}
}
}
};
Physics.prototype.applyLinks = function () {
var len = this._instance.Atoms.length;
var maxLinkLength = this._config.MaxLinkLength;
var maxLinks = this._config.MaxLinksPerAtom > 0 ? this._config.MaxLinksPerAtom : Number.MAX_VALUE;
if (this._instance.Links.length !== len) {
this._instance.Links.length = len;
}
this._instance.Atoms.forEach(function (atom) { return atom.Links = 0; });
for (var _i = 0, _a = this._instance.Atoms; _i < _a.length; _i++) {
var a1 = _a[_i];
for (var i = a1.Id + 1; i < len; ++i) {
var a2 = this._instance.Atoms[i];
if (this._instance.Links[a1.Id] == null || this._instance.Links[a1.Id].length !== len) {
this._instance.Links[a1.Id] = new Array(len);
}
if (a1.distanceTo(a2) <= maxLinkLength && a1.Links < maxLinks && a2.Links < maxLinks) {
a1.Links++;
a2.Links++;
this._instance.Links[a1.Id][a2.Id] = true;
}
else {
this._instance.Links[a1.Id][a2.Id] = false;
}
}
}
};
Physics.prototype.checkAtomAtomCollisions = function () {
if (!this._config.AtomCollisions) {
return;
}
var q = this.QuadTree;
for (var _i = 0, _a = this._instance.Atoms; _i < _a.length; _i++) {
var nd = _a[_i];
var collisionNds = q.getItems(nd.Position.X, nd.Position.Y);
for (var _b = 0, collisionNds_1 = collisionNds; _b < collisionNds_1.length; _b++) {
var colNd = collisionNds_1[_b];
if (colNd.Id > nd.Id && nd.collidesWith(colNd)) {
this.applyAtomAtomCollision(nd, colNd);
}
}
}
};
Physics.prototype.getSpeedFactor = function () {
return 1 / this._config.TPS;
};
Physics.prototype.moveAtoms = function () {
var sf = this.getSpeedFactor();
for (var _i = 0, _a = this._instance.Atoms; _i < _a.length; _i++) {
var atom = _a[_i];
if (!atom.PhysicsLocked) {
atom.Position.X += atom.Vector.X * sf;
atom.Position.Y += atom.Vector.Y * sf;
}
}
};
Object.defineProperty(Physics.prototype, "QuadTree", {
get: function () {
if (this._quadTree == null) {
this._quadTree = new Graphene.QuadTree(0, new Graphene.Rectangle(0, 0, this._instance.Width, this._instance.Height));
this._quadTree.addItems(this._instance.Atoms);
}
return this._quadTree;
},
enumerable: true,
configurable: true
});
return Physics;
}());
Graphene.Physics = Physics;
})(Graphene || (Graphene = {}));
// Copyright 2016-2017 AdlerTech
var Graphene;
(function (Graphene) {
var Renderer = /** @class */ (function () {
function Renderer(canvas, instance) {
this._canvas = canvas;
this._ctx = canvas.getContext('2d', { alpha: instance.Config.AlphaBackground });
this._instance = instance;
}
Renderer.prototype.doRenderCycle = function () {
this.drawBackground();
if (this._instance.Config.DrawQuadTree) {
this.drawQuadTree();
}
this.applyOcclusionCulling();
if (this._instance.Config.MaxLinkLength > 0) {
this.drawLinks();
}
this.drawAtoms();
};
Renderer.prototype.applyOcclusionCulling = function () {
for (var _i = 0, _a = this._instance.Atoms; _i < _a.length; _i++) {
var atom = _a[_i];
if ((atom.Size + atom.Position.X < 0 || atom.Position.X - atom.Size > this._instance.Width)
&& (atom.Size + atom.Position.Y < 0 || atom.Position.Y - atom.Size > this._instance.Height)) {
atom.Visible = false;
}
else {
atom.Visible = true;
}
}
};
Renderer.prototype.drawAtoms = function () {
var atomBorderColor = this._instance.Config.AtomBorderColor;
var atomColor = this._instance.Config.AtomColor;
// Because fill seems to be magnitudes faster than stroke fill border and inner
// First draw `Border` below atom then draw atom inner color
for (var _i = 0, _a = this._instance.Atoms; _i < _a.length; _i++) {
var atom = _a[_i];
if (!atom.Visible) {
continue;
}
this._ctx.fillStyle = atomBorderColor;
this._ctx.beginPath();
this._ctx.arc(atom.Position.X, atom.Position.Y, atom.Size, 0, Math.PI * 2);
this._ctx.fill();
this._ctx.fillStyle = atomColor[0];
this._ctx.beginPath();
this._ctx.arc(atom.Position.X, atom.Position.Y, atom.Size - 1.5, 0, Math.PI * 2);
this._ctx.fill();
}
};
Renderer.prototype.drawBackground = function () {
var i = this._instance;
this._ctx.clearRect(0, 0, i.Width, i.Height);
this._ctx.fillStyle = i.Config.BackgroundColor;
this._ctx.fillRect(0, 0, i.Width, i.Height);
};
Renderer.prototype.drawLinks = function () {
var len = this._instance.Atoms.length;
var links = this._instance.Links;
for (var _i = 0, _a = this._instance.Atoms; _i < _a.length; _i++) {
var a1 = _a[_i];
if (a1.Links > 0) {
for (var i = a1.Id + 1; i < len; ++i) {
var a2 = this._instance.Atoms[i];
if (links[a1.Id][a2.Id] && (a1.Visible || a2.Visible)) {
this.drawLink(a1, a2);
}
}
}
}
};
Renderer.prototype.drawLink = function (atom1, atom2) {
var dist = atom1.distanceTo(atom2);
var v = Graphene.Vector.fromAtoms(atom1, atom2);
var p1 = atom1.Position.clone();
var p2 = atom2.Position.clone();
var v1 = v.scaleTo(atom1.Size);
p1.X += v1.X;
p1.Y += v1.Y;
var v2 = v.invert().scaleTo(atom2.Size);
p2.X += v2.X;
p2.Y += v2.Y;
var fac = (1 - (dist * dist) / Math.pow(this._instance.Config.MaxLinkLength, 2));
if (fac < 0) {
fac = 0;
}
this._ctx.lineWidth = this._instance.Config.LinkWidth * fac;
this._ctx.strokeStyle = this._instance.Config.LinkColor;
this._ctx.beginPath();
this._ctx.moveTo(p1.X, p1.Y);
this._ctx.lineTo(p2.X, p2.Y);
this._ctx.stroke();
};
Renderer.prototype.drawQuadTree = function (tree) {
if (tree === void 0) { tree = this._instance.Physics.QuadTree; }
this._ctx.font = '14px Arial';
this._ctx.textAlign = 'center';
this._ctx.fillStyle = '#ff00f2';
if (tree !== null) {
if (tree.IsSplit) {
var b = tree.Bounds;
// const c: Color = Color.fromHSV(120 + 40 * tree.Level, 1, 1);
this._ctx.strokeStyle = '#ff00f2'; // c.toRGBString();
this._ctx.lineWidth = 1;
{
this._ctx.beginPath();
this._ctx.moveTo(b.XMid, b.Y1);
this._ctx.lineTo(b.XMid, b.Y2);
this._ctx.stroke();
this._ctx.beginPath();
this._ctx.moveTo(b.X1, b.YMid);
this._ctx.lineTo(b.X2, b.YMid);
this._ctx.stroke();
}
this._ctx.fillText('Spares:' + tree.Spares, b.XMid, b.YMid);
for (var _i = 0, _a = tree.Sectors; _i < _a.length; _i++) {
var sector = _a[_i];
this.drawQuadTree(sector);
}
}
else {
this._ctx.fillText('Objects:' + tree.Objects, tree.Bounds.XMid, tree.Bounds.YMid);
}
}
};
return Renderer;
}());
Graphene.Renderer = Renderer;
})(Graphene || (Graphene = {}));
// Copyright 2017 AdlerTech
var Graphene;
(function (Graphene) {
var Point = /** @class */ (function () {
function Point(x, y) {
if (x === void 0) { x = 0; }
if (y === void 0) { y = 0; }
this._x = x;
this._y = y;
}
Point.prototype.clone = function () {
return new Point(this._x, this._y);
};
Object.defineProperty(Point.prototype, "X", {
get: function () {
return this._x;
},
set: function (value) {
this._x = value;
},
enumerable: true,
configurable: true
});
Object.defineProperty(Point.prototype, "Y", {
get: function () {
return this._y;
},
set: function (value) {
this._y = value;
},
enumerable: true,
configurable: true
});
return Point;
}());
Graphene.Point = Point;
})(Graphene || (Graphene = {}));
// Copyright 2017 AdlerTech
/// <reference path="types/point.ts" />
var Graphene;
(function (Graphene) {
var UserInterface = /** @class */ (function () {
function UserInterface(instance, canvas) {
var _this = this;
this._pendingMouseAction = MouseAction.NONE;
this._mouseDown = false;
this._mousePosition = new MousePosition();
this._lastMousePosition = new MousePosition();
this._mouseMove = new Graphene.Vector();
this._focusedAtom = null;
this.onMouseDown = function (event) {
_this._mouseDown = true;
_this._mousePosition.X = _this.translateX(event.clientX);
_this._mousePosition.Y = _this.translateY(event.clientY);
_this._mousePosition.updateRecordTime();
_this._pendingMouseAction = MouseAction.CLICK;
};
this.onMouseMove = function (event) {
_this._lastMousePosition.X = _this.MousePosition.X;
_this._lastMousePosition.Y = _this.MousePosition.Y;
_this._lastMousePosition.updateRecordTime(_this.MousePosition.Time);
_this._mousePosition.X = _this.translateX(event.clientX);
_this._mousePosition.Y = _this.translateY(event.clientY);
_this._mousePosition.updateRecordTime();
};
this.onMouseUp = function (event) {
_this._mousePosition.X = _this.translateX(event.clientX);
_this._mousePosition.Y = _this.translateY(event.clientY);
_this._mousePosition.updateRecordTime();
_this._mouseDown = false;
_this._pendingMouseAction = MouseAction.RELEASE;
};
console.log('Constructing User Interface');
this._instance = instance;
this._canvas = canvas;
}
UserInterface.prototype.bindTo = function (element) {
if (this._boundElement != null) {
this._boundElement.removeEventListener('mousedown', this.onMouseDown);
this._boundElement.removeEventListener('mousemove', this.onMouseMove);
this._boundElement.removeEventListener('mouseup', this.onMouseUp);
this._boundElement = null;
}
if (element != null) {
this._boundElement = element;
this._boundElement.addEventListener('mousedown', this.onMouseDown);
this._boundElement.addEventListener('mousemove', this.onMouseMove);
this._boundElement.addEventListener('mouseup', this.onMouseUp);
}
};
UserInterface.prototype.onUpdateCycle = function (physics) {
var targetedAtom = this.findTargetedAtom(physics.QuadTree, this.MousePosition);
if (this._pendingMouseAction === MouseAction.CLICK) {
// Find atom and do physics lock
if (targetedAtom != null) {
this._focusedAtom = targetedAtom;
this._focusedAtom.PhysicsLocked = true;
var vector = Graphene.Vector.fromPoints(this._lastMousePosition, this._mousePosition);
this._focusedAtom.Vector = vector.scaleBy(1000 / (this.MousePosition.Time - this._lastMousePosition.Time));
this._boundElement.style.cursor = 'move';
}
}
else if (this._pendingMouseAction === MouseAction.RELEASE) {
// If has atom, set atom vector and relase physics lock
if (this._focusedAtom != null) {
this._focusedAtom.PhysicsLocked = false;
// Set Vector
var vector = Graphene.Vector.fromPoints(this._lastMousePosition, this._mousePosition);
this._focusedAtom.Vector = vector.scaleBy(1000 / (this.MousePosition.Time - this._lastMousePosition.Time));
this._focusedAtom = null;
}
this._boundElement.style.cursor = 'default';
}
else if (this._mouseDown && this._focusedAtom != null) {
// Update Atom position
this._focusedAtom.Position.X = this.MousePosition.X;
this._focusedAtom.Position.Y = this.MousePosition.Y;
this._boundElement.style.cursor = 'move';
}
else {
// Update cursor
this._boundElement.style.cursor = targetedAtom != null ? 'pointer' : 'default';
}
this._pendingMouseAction = MouseAction.NONE;
};
UserInterface.prototype.findTargetedAtom = function (quadTree, point) {
for (var _i = 0, _a = quadTree.getItems(point.X, point.Y); _i < _a.length; _i++) {
var atom = _a[_i];
if (Math.abs(atom.Position.X - point.X) < atom.Size + 2 && Math.abs(atom.Position.Y - point.Y) < atom.Size + 2) {
return atom;
}
}
return null;
};
UserInterface.prototype.translateX = function (x) {
var canvasRect = this._canvas.getBoundingClientRect();
return x - canvasRect.left;
};
UserInterface.prototype.translateY = function (y) {
var canvasRect = this._canvas.getBoundingClientRect();
return y - canvasRect.top;
};
Object.defineProperty(UserInterface.prototype, "MousePosition", {
get: function () {
return this._mousePosition;
},
enumerable: true,
configurable: true
});
Object.defineProperty(UserInterface.prototype, "MouseDown", {
get: function () {
return this._mouseDown;
},
enumerable: true,
configurable: true
});
return UserInterface;
}());
Graphene.UserInterface = UserInterface;
var MouseAction;
(function (MouseAction) {
MouseAction[MouseAction["NONE"] = 0] = "NONE";
MouseAction[MouseAction["CLICK"] = 1] = "CLICK";
MouseAction[MouseAction["RELEASE"] = 2] = "RELEASE";
})(MouseAction = Graphene.MouseAction || (Graphene.MouseAction = {}));
var MousePosition = /** @class */ (function (_super) {
__extends(MousePosition, _super);
function MousePosition(x, y) {
if (x === void 0) { x = 0; }
if (y === void 0) { y = 0; }
var _this = _super.call(this, x, y) || this;
_this._timestamp = 0;
_this.updateRecordTime();
return _this;
}
MousePosition.prototype.updateRecordTime = function (timestamp) {
if (timestamp === void 0) { timestamp = 0; }
if (timestamp === 0) {
this._timestamp = Date.now();
}
else {
this._timestamp = timestamp;
}
};
Object.defineProperty(MousePosition.prototype, "Time", {
get: function () {
return this._timestamp;
},
enumerable: true,
configurable: true
});
return MousePosition;
}(Graphene.Point));
Graphene.MousePosition = MousePosition;
})(Graphene || (Graphene = {}));
// Copyright 2016-2017 AdlerTech
var Graphene;
(function (Graphene) {
var Atom = /** @class */ (function () {
function Atom(id, minSize, maxSize, pos, vec) {
this._physicsLock = false;
this.Links = 0;
this._id = id;
this._position = pos;
this._charge = Math.random() > 0.5 ? 1 : -1;
this._size = Math.random() * Math.abs(maxSize - minSize) + Math.abs(minSize);
this._mass = (4 / 3) * Math.PI * Math.pow(this._size, 3);
this._vector = vec;
}
Atom.prototype.collidesWith = function (atom) {
return this.Id !== atom.Id
&& this.distanceTo(atom) < this.Size + atom.Size;
};
Atom.prototype.distanceTo = function (atom) {
var x = atom.Position.X - this.Position.X;
var y = atom.Position.Y - this.Position.Y;
return Math.sqrt(x * x + y * y);
};
Object.defineProperty(Atom.prototype, "Charge", {
get: function () {
return this._charge;
},
enumerable: true,
configurable: true
});
Object.defineProperty(Atom.prototype, "Color", {
get: function () {
return this._color;
},
enumerable: true,
configurable: true
});
Object.defineProperty(Atom.prototype, "Id", {
get: function () {
return this._id;
},
enumerable: true,
configurable: true
});
Object.defineProperty(Atom.prototype, "Mass", {
get: function () {
return this._mass;
},
enumerable: true,
configurable: true
});
Object.defineProperty(Atom.prototype, "PhysicsLocked", {
get: function () {
return this._physicsLock;
},
set: function (value) {
this._physicsLock = value;
},
enumerable: true,
configurable: true
});
Object.defineProperty(Atom.prototype, "Position", {
get: function () {
return this._position;
},
enumerable: true,
configurable: true
});
Object.defineProperty(Atom.prototype, "Size", {
get: function () {
return this._size;
},
enumerable: true,
configurable: true
});
Object.defineProperty(Atom.prototype, "Vector", {
get: function () {
return this._vector;
},
set: function (value) {
this._vector = value;
},
enumerable: true,
configurable: true
});
return Atom;
}());
Graphene.Atom = Atom;
})(Graphene || (Graphene = {}));
// Copyright 2016-2017 AdlerTech
var Graphene;
(function (Graphene) {
var MAX_LEVEL = 5;
var MAX_OBJECTS = 10;
var QuadTree = /** @class */ (function () {
function QuadTree(level, rect) {
this._objects = new Array();
this._spares = new Array();
this._isSplit = false;
this._level = level;
this._bounds = rect;
}
QuadTree.prototype.addItem = function (atom) {
if (!this._isSplit) {
if (this._objects.length > MAX_OBJECTS && this._level < MAX_LEVEL) {
this.split();
this.addItem(atom);
}
else {
this._objects.push(atom);
}
}
else {
if (this.isSpare(atom)) {
this._spares.push(atom);
}
else {
var sector = this.getSector(atom.Position.X, atom.Position.Y);
sector.addItem(atom);
}
}
};
QuadTree.prototype.addItems = function (atoms) {
for (var _i = 0, atoms_1 = atoms; _i < atoms_1.length; _i++) {
var p = atoms_1[_i];
this.addItem(p);
}
};
QuadTree.prototype.getItems = function (x, y) {
if (this._isSplit) {
var sec = this.getSector(x, y);
var res = sec.getItems(x, y);
return res.concat(this._spares);
}
else {
return this._objects;
}
};
QuadTree.prototype.getSector = function (x, y) {
/* Sectors are placed this way:
1 | 2
--|--
4 | 3
*/
var secId = 0;
if (x > this._bounds.X1 && x < this._bounds.XMid) {
if (y > this._bounds.Y1 && y < this._bounds.YMid) {
secId = 0;
}
else {
secId = 3;
}
}
else {
if (y > this._bounds.Y1 && y < this._bounds.YMid) {
secId = 1;
}
else {
secId = 2;
}
}
return this._sectors[secId];
};
QuadTree.prototype.isSpare = function (atom) {
var spareDist = atom.Size;
if (atom.Position.X >= this._bounds.XMid - spareDist && atom.Position.X <= this._bounds.XMid + spareDist) {
return true;
}
if (atom.Position.Y >= this._bounds.YMid - spareDist && atom.Position.Y <= this._bounds.YMid + spareDist) {
return true;
}
return false;
};
QuadTree.prototype.split = function () {
if (!this._isSplit) {
this._sectors = new Array(4);
var b = this._bounds;
this._sectors[0] = new QuadTree(this._level + 1, new Rectangle(b.X1, b.Y1, b.XMid, b.YMid));
this._sectors[1] = new QuadTree(this._level + 1, new Rectangle(b.XMid, b.Y1, b.X2, b.YMid));
this._sectors[2] = new QuadTree(this._level + 1, new Rectangle(b.XMid, b.YMid, b.X2, b.Y2));
this._sectors[3] = new QuadTree(this._level + 1, new Rectangle(b.X1, b.YMid, b.XMid, b.Y2));
for (var _i = 0, _a = this._objects; _i < _a.length; _i++) {
var obj = _a[_i];
if (this.isSpare(obj)) {
this._spares.push(obj);
}
else {
var sec = this.getSector(obj.Position.X, obj.Position.Y);
sec.addItem(obj);
}
}
this._objects = [];
}
this._isSplit = true;
};
Object.defineProperty(QuadTree.prototype, "Bounds", {
get: function () {
return this._bounds;
},
enumerable: true,
configurable: true
});
Object.defineProperty(QuadTree.prototype, "IsSplit", {
get: function () {
return this._isSplit;
},
enumerable: true,
configurable: true
});
Object.defineProperty(QuadTree.prototype, "Level", {
get: function () {
return this._level;
},
enumerable: true,
configurable: true
});
Object.defineProperty(QuadTree.prototype, "Objects", {
get: function () {
return this._objects.length;
},
enumerable: true,
configurable: true
});
Object.defineProperty(QuadTree.prototype, "Spares", {
get: function () {
return this._spares.length;
},
enumerable: true,
configurable: true
});
Object.defineProperty(QuadTree.prototype, "Sectors", {
get: function () {
return this._sectors;
},
enumerable: true,
configurable: true
});
return QuadTree;
}());
Graphene.QuadTree = QuadTree;
var Rectangle = /** @class */ (function () {
function Rectangle(x1, y1, x2, y2) {
this._x1 = x1;
this._x2 = x2;
this._xMid = Math.floor(x2 - x1) / 2 + x1;
this._y1 = y1;
this._y2 = y2;
this._yMid = Math.floor(y2 - y1) / 2 + y1;
}
Object.defineProperty(Rectangle.prototype, "X1", {
get: function () {
return this._x1;
},
enumerable: true,
configurable: true
});
Object.defineProperty(Rectangle.prototype, "X2", {
get: function () {
return this._x2;
},
enumerable: true,
configurable: true
});
Object.defineProperty(Rectangle.prototype, "XMid", {
get: function () {
return this._xMid;
},
enumerable: true,
configurable: true
});
Object.defineProperty(Rectangle.prototype, "Y1", {
get: function () {
return this._y1;
},
enumerable: true,
configurable: true
});
Object.defineProperty(Rectangle.prototype, "Y2", {
get: function () {
return this._y2;
},
enumerable: true,
configurable: true
});
Object.defineProperty(Rectangle.prototype, "YMid", {
get: function () {
return this._yMid;
},
enumerable: true,
configurable: true
});
return Rectangle;
}());
Graphene.Rectangle = Rectangle;
})(Graphene || (Graphene = {}));
// Copyright 2016-2017 AdlerTech
var Graphene;
(function (Graphene) {
var Vector = /** @class */ (function () {
function Vector(x, y) {
if (x === void 0) { x = 0; }
if (y === void 0) { y = 0; }
this._x = x;
this._y = y;
}
Object.defineProperty(Vector.prototype, "X", {
get: function () {
return this._x;
},
enumerable: true,
configurable: true
});
Object.defineProperty(Vector.prototype, "Y", {
get: function () {
return this._y;
},
enumerable: true,
configurable: true
});
Vector.fromAtoms = function (atom1, atom2) {
return new Vector(atom2.Position.X - atom1.Position.X, atom2.Position.Y - atom1.Position.Y);
};
Vector.fromPoints = function (point1, point2) {
return new Vector(point2.X - point1.X, point2.Y - point1.Y);
};
Vector.prototype.add = function (v) {
return new Vector(this._x + v._x, this._y + v._y);
};
Vector.prototype.angle = function (v) {
var sc = this.scalar(v);
var l = this.length() * v.length();
if (l === 0) {
return 0;
}
var c = sc / l;
if (c < -1) {
c = -1;
}
else if (c > 1) {
c = 1;
}
return Math.acos(c);
};
Vector.prototype.invert = function () {
return this.scaleBy(-1);
};
Vector.prototype.length = function () {
return Math.sqrt(this._x * this._x + this._y * this._y);
};
Vector.prototype.rotate = function (angle) {
var x = Math.cos(angle) * this._x - Math.sin(angle) * this._y;
var y = Math.sin(angle) * this._x + Math.cos(angle) * this._y;
return new Vector(x, y);
};
Vector.prototype.scalar = function (v) {
return this._x * v._x + this._y * v._y;
};
Vector.prototype.scaleBy = function (scale) {
return new Vector(this._x * scale, this._y * scale);
};
Vector.prototype.scaleTo = function (length) {
var l = this.length();
if (l !== 0) {
var factor = length / l;
return new Vector(this._x * factor, this._y * factor);
}
return new Vector(0, 0);
};
return Vector;
}());
Graphene.Vector = Vector;
})(Graphene || (Graphene = {}));
//# sourceMappingURL=graphene.js.map
|
$.components.register("animsition",{mode:"manual",defaults:{inClass:"fade-in",outClass:"fade-out",inDuration:800,outDuration:500,linkElement:".animsition-link",loading:!0,loadingParentElement:"body",loadingClass:"loader",loadingType:"default",timeout:!1,timeoutCountdown:5e3,onLoadEvent:!0,browser:["animation-duration","-webkit-animation-duration"],overlay:!1,overlayClass:"animsition-overlay-slide",overlayParentElement:"body",inDefaults:["fade-in","fade-in-up-sm","fade-in-up","fade-in-up-lg","fade-in-down-sm","fade-in-down","fade-in-down-lg","fade-in-left-sm","fade-in-left","fade-in-left-lg","fade-in-right-sm","fade-in-right","fade-in-right-lg","zoom-in-sm","zoom-in","zoom-in-lg"],outDefaults:["fade-out","fade-out-up-sm","fade-out-up","fade-out-up-lg","fade-out-down-sm","fade-out-down","fade-out-down-lg","fade-out-left-sm","fade-out-left","fade-out-left-lg","fade-out-right-sm","fade-out-right","fade-out-right-lg","zoom-out-sm","zoom-out","zoom-out-lg"]},init:function(context,callback){var options=$.components.getDefaults("animsition");if(options.random){var li=options.inDefaults.length,lo=options.outDefaults.length,ni=parseInt(li*Math.random(),0),no=parseInt(lo*Math.random(),0);options.inClass=options.inDefaults[ni],options.outClass=options.outDefaults[no]}var $this=$(".animsition",context);return $this.animsition(options),$("."+options.loadingClass).addClass("loader-"+options.loadingType),$this.animsition("supportCheck",options)?($.isFunction(callback)&&$this.one("animsition.end",function(){callback.call()}),!0):($.isFunction(callback)&&callback.call(),!1)}});
|
_N_E=(window.webpackJsonp_N_E=window.webpackJsonp_N_E||[]).push([[14],{"/0+H":function(e,t,r){"use strict";t.__esModule=!0,t.isInAmpMode=c,t.useAmp=function(){return c(o.default.useContext(a.AmpStateContext))};var n,o=(n=r("q1tI"))&&n.__esModule?n:{default:n},a=r("lwAK");function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.ampFirst,r=void 0!==t&&t,n=e.hybrid,o=void 0!==n&&n,a=e.hasQuery,c=void 0!==a&&a;return r||o&&c}},0:function(e,t,r){r("74v/"),e.exports=r("nOHt")},"2mql":function(e,t,r){"use strict";var n=r("TOwV"),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},c={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};function u(e){return n.isMemo(e)?c:i[e.$$typeof]||o}i[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i[n.Memo]=c;var s=Object.defineProperty,f=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,y=Object.prototype;e.exports=function e(t,r,n){if("string"!==typeof r){if(y){var o=d(r);o&&o!==y&&e(t,o,n)}var c=f(r);l&&(c=c.concat(l(r)));for(var i=u(t),b=u(r),h=0;h<c.length;++h){var m=c[h];if(!a[m]&&(!n||!n[m])&&(!b||!b[m])&&(!i||!i[m])){var v=p(r,m);try{s(t,m,v)}catch(O){}}}}return t}},"4qKB":function(e,t,r){"use strict";var n;!function(e){var t,r;e.MIN_SONG_VERSION=1,e.MAX_SONG_VERSION=2;(r=t||(t=e.StoreKeys||(e.StoreKeys={}))).SONG_VERSION="songVersion",r.FILE_TIMESTAMP="fileTimestamp",r.UPDATED_TRACKS_LIST="updatedTracks",r.UPDATED_TRACKS_TIMESTAMP="updatedTracksTimestamp",r.TRACK_NUMBER="trackNumber",r.CHECKBOX_VALUE="checkboxValue",r.TRACK_NUMBER_TO_CHECKBOX_VALUE="trackNumber=>checkboxValue",r.PLAYED_NOTEGROUP_ID="playedNoteGroupID",r.PIANO_TYPE="pianoType",r.GUITAR_TYPE="guitarType";var n,o;e.DEFAULT_DOWNLOAD_DATA="8J+OtQ==";(o=n||(n=e.Instrument||(e.Instrument={}))).GUITAR="guitar",o.UKULELE_HIGH_G="ukulele_high_g",o.UKULELE_LOW_G="ukulele_low_g";e.Messages={COMPUTER_KEYBOARD_INPUT_1:"Click here to use your computer's keyboard to play notes.",COMPUTER_KEYBOARD_INPUT_2:"Type ASDFGHJKL;' to play music. To change octaves, press ctrl+alt+shift ArrowLeft or ArrowRight."}}(n||(n={})),t.a=n},"74v/":function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return r("cha2")}])},"7W2i":function(e,t,r){var n=r("SksO");e.exports=function(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}}),t&&n(e,t)}},"8Kt/":function(e,t,r){"use strict";r("lSNA");t.__esModule=!0,t.defaultHead=f,t.default=void 0;var n,o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=n?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}r.default=e,t&&t.set(e,r);return r}(r("q1tI")),a=(n=r("Xuae"))&&n.__esModule?n:{default:n},c=r("lwAK"),i=r("FYa8"),u=r("/0+H");function s(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function f(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=[o.default.createElement("meta",{charSet:"utf-8"})];return e||t.push(o.default.createElement("meta",{name:"viewport",content:"width=device-width"})),t}function l(e,t){return"string"===typeof t||"number"===typeof t?e:t.type===o.default.Fragment?e.concat(o.default.Children.toArray(t.props.children).reduce((function(e,t){return"string"===typeof t||"number"===typeof t?e:e.concat(t)}),[])):e.concat(t)}var p=["name","httpEquiv","charSet","itemProp"];function d(e,t){return e.reduce((function(e,t){var r=o.default.Children.toArray(t.props.children);return e.concat(r)}),[]).reduce(l,[]).reverse().concat(f(t.inAmpMode)).filter(function(){var e=new Set,t=new Set,r=new Set,n={};return function(o){var a=!0;if(o.key&&"number"!==typeof o.key&&o.key.indexOf("$")>0){var c=o.key.slice(o.key.indexOf("$")+1);e.has(c)?a=!1:e.add(c)}switch(o.type){case"title":case"base":t.has(o.type)?a=!1:t.add(o.type);break;case"meta":for(var i=0,u=p.length;i<u;i++){var s=p[i];if(o.props.hasOwnProperty(s))if("charSet"===s)r.has(s)?a=!1:r.add(s);else{var f=o.props[s],l=n[s]||new Set;l.has(f)?a=!1:(l.add(f),n[s]=l)}}}return a}}()).reverse().map((function(e,t){var r=e.key||t;return o.default.cloneElement(e,{key:r})}))}function y(e){var t=e.children,r=(0,o.useContext)(c.AmpStateContext),n=(0,o.useContext)(i.HeadManagerContext);return o.default.createElement(a.default,{reduceComponentsToState:d,headManager:n,inAmpMode:(0,u.isInAmpMode)(r)},t)}y.rewind=function(){};var b=y;t.default=b},Bnag:function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},EbDI:function(e,t){e.exports=function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},FYa8:function(e,t,r){"use strict";var n;t.__esModule=!0,t.HeadManagerContext=void 0;var o=((n=r("q1tI"))&&n.__esModule?n:{default:n}).default.createContext({});t.HeadManagerContext=o},Ijbi:function(e,t,r){var n=r("WkPL");e.exports=function(e){if(Array.isArray(e))return n(e)}},Nsbk:function(e,t){function r(t){return e.exports=r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},r(t)}e.exports=r},PJYZ:function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},RIqP:function(e,t,r){var n=r("Ijbi"),o=r("EbDI"),a=r("ZhPi"),c=r("Bnag");e.exports=function(e){return n(e)||o(e)||a(e)||c()}},TOwV:function(e,t,r){"use strict";e.exports=r("qT12")},Xuae:function(e,t,r){"use strict";var n=r("RIqP"),o=r("lwsE"),a=r("W8MJ"),c=(r("PJYZ"),r("7W2i")),i=r("a1gu"),u=r("Nsbk");function s(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=u(e);if(t){var o=u(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return i(this,r)}}t.__esModule=!0,t.default=void 0;var f=r("q1tI"),l=function(e){c(r,e);var t=s(r);function r(e){var a;return o(this,r),(a=t.call(this,e))._hasHeadManager=void 0,a.emitChange=function(){a._hasHeadManager&&a.props.headManager.updateHead(a.props.reduceComponentsToState(n(a.props.headManager.mountedInstances),a.props))},a._hasHeadManager=a.props.headManager&&a.props.headManager.mountedInstances,a}return a(r,[{key:"componentDidMount",value:function(){this._hasHeadManager&&this.props.headManager.mountedInstances.add(this),this.emitChange()}},{key:"componentDidUpdate",value:function(){this.emitChange()}},{key:"componentWillUnmount",value:function(){this._hasHeadManager&&this.props.headManager.mountedInstances.delete(this),this.emitChange()}},{key:"render",value:function(){return null}}]),r}(f.Component);t.default=l},YFqc:function(e,t,r){e.exports=r("cTJO")},a1gu:function(e,t,r){var n=r("cDf5"),o=r("PJYZ");e.exports=function(e,t){return!t||"object"!==n(t)&&"function"!==typeof t?o(e):t}},cTJO:function(e,t,r){"use strict";var n=r("J4zp"),o=r("284h");t.__esModule=!0,t.default=void 0;var a=o(r("q1tI")),c=r("elyg"),i=r("nOHt"),u=r("vNVm"),s={};function f(e,t,r,n){if((0,c.isLocalURL)(t)){e.prefetch(t,r,n).catch((function(e){0}));var o=n&&"undefined"!==typeof n.locale?n.locale:e&&e.locale;s[t+"%"+r+(o?"%"+o:"")]=!0}}var l=function(e){var t=!1!==e.prefetch,r=(0,i.useRouter)(),o=r&&r.pathname||"/",l=a.default.useMemo((function(){var t=(0,c.resolveHref)(o,e.href,!0),r=n(t,2),a=r[0],i=r[1];return{href:a,as:e.as?(0,c.resolveHref)(o,e.as):i||a}}),[o,e.href,e.as]),p=l.href,d=l.as,y=e.children,b=e.replace,h=e.shallow,m=e.scroll,v=e.locale;"string"===typeof y&&(y=a.default.createElement("a",null,y));var O=a.Children.only(y),g=O&&"object"===typeof O&&O.ref,_=(0,u.useIntersection)({rootMargin:"200px"}),S=n(_,2),E=S[0],j=S[1],P=a.default.useCallback((function(e){E(e),g&&("function"===typeof g?g(e):"object"===typeof g&&(g.current=e))}),[g,E]);(0,a.useEffect)((function(){var e=j&&t&&(0,c.isLocalURL)(p),n="undefined"!==typeof v?v:r&&r.locale,o=s[p+"%"+d+(n?"%"+n:"")];e&&!o&&f(r,p,d,{locale:n})}),[d,p,j,v,t,r]);var T={ref:P,onClick:function(e){O.props&&"function"===typeof O.props.onClick&&O.props.onClick(e),e.defaultPrevented||function(e,t,r,n,o,a,i,u){("A"!==e.currentTarget.nodeName||!function(e){var t=e.currentTarget.target;return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)&&(0,c.isLocalURL)(r))&&(e.preventDefault(),null==i&&(i=n.indexOf("#")<0),t[o?"replace":"push"](r,n,{shallow:a,locale:u}).then((function(e){e&&i&&(window.scrollTo(0,0),document.body.focus())})))}(e,r,p,d,b,h,m,v)},onMouseEnter:function(e){(0,c.isLocalURL)(p)&&(O.props&&"function"===typeof O.props.onMouseEnter&&O.props.onMouseEnter(e),f(r,p,d,{priority:!0}))}};return(e.passHref||"a"===O.type&&!("href"in O.props))&&(T.href=(0,c.addBasePath)((0,c.addLocale)(d,"undefined"!==typeof v?v:r&&r.locale,r&&r.defaultLocale))),a.default.cloneElement(O,T)};t.default=l},cha2:function(e,t,r){"use strict";r.r(t);var n=r("rePB"),o=r("nKUr"),a=r("4qKB"),c=r("qO+3"),i=function(e){return function(t){return function(r){var n;return console.group("REDUX DISPATCH => "+r.type),console.log("action"),console.dir(r),n=t(r),console.log("state"),console.dir(e.getState()),console.groupEnd(),n}}},u=r("q1tI"),s=r("ANjH");function f(e){return function(t){var r=t.dispatch,n=t.getState;return function(t){return function(o){return"function"===typeof o?o(r,n,e):t(o)}}}}var l=f();l.withExtraArgument=f;var p=l;function d(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 y(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach((function(t){Object(n.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var b=a.a.StoreKeys,h=null,m={};m[b.SONG_VERSION]=1,m[b.FILE_TIMESTAMP]=0,m[b.UPDATED_TRACKS_LIST]=[],m[b.UPDATED_TRACKS_TIMESTAMP]=0,m[b.TRACK_NUMBER_TO_CHECKBOX_VALUE]={},m[b.PLAYED_NOTEGROUP_ID]="";var v=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:m,t=arguments.length>1?arguments[1]:void 0,r=y({},e);switch(t.type){case c.a.Toggle.onSongVersionFormatChanged:var n=t.payload[b.SONG_VERSION];("number"!==typeof n||n<a.a.MIN_SONG_VERSION||n>a.a.MAX_SONG_VERSION)&&(n=m[b.SONG_VERSION]),r[b.SONG_VERSION]=n;break;case c.a.FileChooser.onFileLoaded:r[b.FILE_TIMESTAMP]=(new Date).getTime();break;case c.a.Song.onTracksUpdated:r[b.UPDATED_TRACKS_LIST]=t.payload[b.UPDATED_TRACKS_LIST],r[b.UPDATED_TRACKS_TIMESTAMP]=(new Date).getTime();break;case c.a.Toggle.onCheckboxChanged:var o=t.payload[b.TRACK_NUMBER],i=t.payload[b.CHECKBOX_VALUE],u=r[b.TRACK_NUMBER_TO_CHECKBOX_VALUE];u[o]=i;break;case c.a.Song.onPlayNoteGroup:r[b.PLAYED_NOTEGROUP_ID]=t.payload[b.PLAYED_NOTEGROUP_ID]}return r};function O(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:m;return Object(s.c)(v,e,Object(s.a)(i,p))}function g(e){return Object(u.useMemo)((function(){return t=e,h?t&&(h=O(y(y({},h.getState()),t))):h=O(t),h;var t}),[e])}var _=r("MX0m"),S=r.n(_),E=r("8Kt/"),j=r.n(E),P=r("YFqc"),T=r.n(P),w=function(e){var t=e.title,r=e.children;return Object(o.jsxs)(o.Fragment,{children:[Object(o.jsx)(j.a,{children:Object(o.jsx)("title",{className:"jsx-2526262285",children:t})}),Object(o.jsx)("header",{className:"jsx-2526262285",children:Object(o.jsx)("nav",{className:"jsx-2526262285",children:Object(o.jsx)(T.a,{href:"/",children:Object(o.jsx)("a",{className:"jsx-2526262285",children:"sqpt"})})})}),Object(o.jsx)("main",{className:"jsx-2526262285",children:r}),Object(o.jsx)("footer",{className:"jsx-2526262285",children:"\xa9 2021 SquarePoet"}),Object(o.jsx)(S.a,{id:"2526262285",children:["html,body{background-color:#232323;}",'body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";color:#bbb;margin:20px;font-size:16pt;line-height:150%;}',"a{color:#7cd;-webkit-text-decoration:none;text-decoration:none;}","a:hover{-webkit-text-decoration:underline;text-decoration:underline;}","nav{border-bottom:1px solid #555;margin-bottom:10px;}","footer{text-align:left;position:fixed;font-size:12pt;bottom:10px;right:10px;}",".DEBUG_LAYOUT{border:1px solid pink;}"]})]})},M=r("/MKj");function x(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 A(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?x(Object(r),!0).forEach((function(t){Object(n.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):x(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}t.default=function(e){var t=e.Component,r=e.pageProps;console.log("Props:"),console.log(r),r.title||(r.title="Default Title");var n=g(r.initialReduxState);return Object(o.jsx)(M.a,{store:n,children:Object(o.jsx)(w,{title:r.title,children:Object(o.jsx)(t,A({},r))})})}},lSNA:function(e,t){e.exports=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},lwAK:function(e,t,r){"use strict";var n;t.__esModule=!0,t.AmpStateContext=void 0;var o=((n=r("q1tI"))&&n.__esModule?n:{default:n}).default.createContext({});t.AmpStateContext=o},"qO+3":function(e,t,r){"use strict";var n,o;(o=n||(n={})).FileChooser={onFileLoaded:"onFileLoaded"},o.Toggle={onSongVersionFormatChanged:"onSongVersionFormatChanged",onCheckboxChanged:"onCheckboxChanged"},o.Song={onTracksUpdated:"onTracksUpdated",onPlayNoteGroup:"onPlayNoteGroup"},t.a=n},qT12:function(e,t,r){"use strict";var n="function"===typeof Symbol&&Symbol.for,o=n?Symbol.for("react.element"):60103,a=n?Symbol.for("react.portal"):60106,c=n?Symbol.for("react.fragment"):60107,i=n?Symbol.for("react.strict_mode"):60108,u=n?Symbol.for("react.profiler"):60114,s=n?Symbol.for("react.provider"):60109,f=n?Symbol.for("react.context"):60110,l=n?Symbol.for("react.async_mode"):60111,p=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,y=n?Symbol.for("react.suspense"):60113,b=n?Symbol.for("react.suspense_list"):60120,h=n?Symbol.for("react.memo"):60115,m=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,O=n?Symbol.for("react.fundamental"):60117,g=n?Symbol.for("react.responder"):60118,_=n?Symbol.for("react.scope"):60119;function S(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case l:case p:case c:case u:case i:case y:return e;default:switch(e=e&&e.$$typeof){case f:case d:case m:case h:case s:return e;default:return t}}case a:return t}}}function E(e){return S(e)===p}t.AsyncMode=l,t.ConcurrentMode=p,t.ContextConsumer=f,t.ContextProvider=s,t.Element=o,t.ForwardRef=d,t.Fragment=c,t.Lazy=m,t.Memo=h,t.Portal=a,t.Profiler=u,t.StrictMode=i,t.Suspense=y,t.isAsyncMode=function(e){return E(e)||S(e)===l},t.isConcurrentMode=E,t.isContextConsumer=function(e){return S(e)===f},t.isContextProvider=function(e){return S(e)===s},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return S(e)===d},t.isFragment=function(e){return S(e)===c},t.isLazy=function(e){return S(e)===m},t.isMemo=function(e){return S(e)===h},t.isPortal=function(e){return S(e)===a},t.isProfiler=function(e){return S(e)===u},t.isStrictMode=function(e){return S(e)===i},t.isSuspense=function(e){return S(e)===y},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===c||e===p||e===u||e===i||e===y||e===b||"object"===typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===h||e.$$typeof===s||e.$$typeof===f||e.$$typeof===d||e.$$typeof===O||e.$$typeof===g||e.$$typeof===_||e.$$typeof===v)},t.typeOf=S},rePB:function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,"a",(function(){return n}))},vNVm:function(e,t,r){"use strict";var n=r("J4zp"),o=r("TqRt");t.__esModule=!0,t.useIntersection=function(e){var t=e.rootMargin,r=e.disabled||!i,o=(0,a.useRef)(),s=(0,a.useState)(!1),f=n(s,2),l=f[0],p=f[1],d=(0,a.useCallback)((function(e){o.current&&(o.current(),o.current=void 0),r||l||e&&e.tagName&&(o.current=function(e,t,r){var n=function(e){var t=e.rootMargin||"",r=u.get(t);if(r)return r;var n=new Map,o=new IntersectionObserver((function(e){e.forEach((function(e){var t=n.get(e.target),r=e.isIntersecting||e.intersectionRatio>0;t&&r&&t(r)}))}),e);return u.set(t,r={id:t,observer:o,elements:n}),r}(r),o=n.id,a=n.observer,c=n.elements;return c.set(e,t),a.observe(e),function(){a.unobserve(e),0===c.size&&(a.disconnect(),u.delete(o))}}(e,(function(e){return e&&p(e)}),{rootMargin:t}))}),[r,t,l]);return(0,a.useEffect)((function(){i||l||(0,c.default)((function(){return p(!0)}))}),[l]),[d,l]};var a=r("q1tI"),c=o(r("0G5g")),i="undefined"!==typeof IntersectionObserver;var u=new Map},wx14:function(e,t,r){"use strict";function n(){return(n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}r.d(t,"a",(function(){return n}))},yLpj:function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(n){"object"===typeof window&&(r=window)}e.exports=r},zLVn:function(e,t,r){"use strict";function n(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}r.d(t,"a",(function(){return n}))}},[[0,0,1,4,8,10,9]]]);
|
import _ from 'lodash';
export class MetaQueryDatasource {
constructor(instanceSettings, $q, datasourceSrv) {
this.instanceSettings = instanceSettings;
this.$q = $q;
this.datasourceSrv = datasourceSrv;
}
query(options) {
var sets = _.groupBy(options.targets, 'datasource');
var promises = _.map(sets, targets => {
var dsName = targets[0].datasource;
if (dsName === 'Meta Query') {
return this.$q.when({ data: [] });
}
return this.datasourceSrv.get(dsName).then(ds => {
var opt = angular.copy(options);
opt.targets = targets.map(t => {
// temporal fix
t.hide = false;
return t;
});
return ds.query(opt).then(results => {
_.each(results.data, (result, idx) => {
result.refId = opt.targets[idx].refId;
});
return results;
});
});
});
return this.$q.all(promises).then(results => {
let data = _.flatten(_.map(results, 'data'));
let indexedData = _.keyBy(data, 'refId');
let referencedRefId = {};
_.each(options.targets, target => {
let dsName = target.datasource;
if (dsName === 'Meta Query') {
let expr = target.expression.split(/ /);
let opRefId = expr[0].replace(/#/, '');
referencedRefId[opRefId] = true;
let datapoints = _.map(indexedData[opRefId].datapoints, d => {
if (!d[0]) {
return [d[0], d[1]];
}
expr[2] = parseFloat(expr[2]);
var r = d[0]
switch (expr[1]) {
case '+':
r += expr[2];
break;
case '-':
r -= expr[2];
break;
case '*':
r *= expr[2];
break;
case '/':
r /= expr[2];
break;
}
return [r, d[1]];
});
data.push({
refId: target.refId,
target: target.expression,
datapoints: datapoints
})
}
});
data = _.filter(data, d => {
return !referencedRefId[d.refId];
});
return { data: data };
});
}
}
|
import { moduleForComponent, test } from 'ember-qunit';
import hbs from 'htmlbars-inline-precompile';
moduleForComponent('meetup-details', 'Integration | Component | meetup details', {
integration: true
});
test('it renders', function(assert) {
// Set any properties with this.set('myProperty', 'value');
// Handle any actions with this.on('myAction', function(val) { ... });
this.render(hbs`{{meetup-details}}`);
assert.equal(this.$().text().trim(), '');
// Template block usage:
this.render(hbs`
{{#meetup-details}}
template block text
{{/meetup-details}}
`);
assert.equal(this.$().text().trim(), 'template block text');
});
|
var mysql = require('mysql');
const bulkcontactsModel = require('../models/bulkprofilecreateModel');
const crypto = require("crypto");
const db = require('../services/database');
const bcrypt = require('bcrypt');
const saltRounds = 10;
const request = require('request');
var database = mysql.createConnection({
host: 'localhost',
user: 'smsdba_smsdba2',
password: 'nnv9I^b7KantGk',
database: 'smsdba_ntsmsdb',
debug: false,
});
// module.exports.createbulkprofiles = async (req, res) => {
// const password = '121212'
// const hash = bcrypt.hashSync(password, saltRounds);
// const { formdata } = req.body;
// var count = '';
// var promiseSaveArr = [];
// if (Array.isArray(formdata)) {
// formdata.forEach(obj => {
// count = formdata.length
// const smsportal_authkey = crypto.randomBytes(16).toString("hex");
// const agent_id = crypto.randomBytes(4).toString("hex");
// // create excel model
// var newTemplate = {
// agent_id: agent_id,
// smsportal_authkey: smsportal_authkey,
// firstname: obj.firstname,
// lastname: obj.lastname,
// email: obj.email,
// mobilenumber: obj.mobilenumber,
// country_code: '91',
// profession: obj.profession,
// pin: hash,
// password:password
// };
// const query = "INSERT INTO portal_bulk_account_db SET ?"
// database.query(query,newTemplate, function (err, result, fields) {
// if (err) throw err;
// promiseSaveArr.push(newTemplate)
// });
// });
// }
// return await Promise.all(promiseSaveArr).then(result => {
// res.status(200).send({ success: true, message: count + ' ' + 'profiles created sucessfully' });
// }).catch((err) => {
// res.status(400).send({ success: false, message: err.message })
// });
// };
module.exports.createbulkprofiles = async (req, res) => {
const api = 'https://www.portalapi.nutansms.in/addNewClient.php?sales_channel=smsportal';
const { formdata } = req.body;
var count = '';
var promiseSaveArr = [];
if (Array.isArray(formdata)) {
formdata.forEach(obj => {
count = formdata.length
const smsportal_authkey = crypto.randomBytes(16).toString("hex");
const agent_id = crypto.randomBytes(4).toString("hex");
const options = {
url: api,
body: {
client_id: agent_id,
client_authkey: smsportal_authkey,
client_firstname: obj.firstname,
client_lastname: obj.lastname,
client_mobile_number: obj.mobilenumber,
client_role: obj.profession
},
headers: {
'Authorization': 'bh#xg6sf(gs67nsbsf99gsf%nn'
},
json: true,
method: 'POST',
}
promiseSaveArr.push(options)
request(options, (err, response, body) => {
if (err) {
res.json(err)
} else {
console.log(body)
}
});
});
}
return await Promise.all(promiseSaveArr).then(result => {
// console.log(result,'result')
res.status(200).send({ success: true, message: count + ' ' + 'profiles created sucessfully' });
}).catch((err) => {
res.status(400).send({ success: false, message: err.message })
});
}
|
/* =========================================================
* bootstrap-modal.js v1.4.0
* http://twitter.github.com/bootstrap/javascript.html#modal
* =========================================================
* Copyright 2011 Twitter, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* ========================================================= */
!function( $ ){
"use strict"
/* CSS TRANSITION SUPPORT (https://gist.github.com/373874)
* ======================================================= */
var transitionEnd
$(document).ready(function () {
$.support.transition = (function () {
var thisBody = document.body || document.documentElement
, thisStyle = thisBody.style
, support = thisStyle.transition !== undefined || thisStyle.WebkitTransition !== undefined || thisStyle.MozTransition !== undefined || thisStyle.MsTransition !== undefined || thisStyle.OTransition !== undefined
return support
})()
// set CSS transition event type
if ( $.support.transition ) {
transitionEnd = "TransitionEnd"
if ( $.browser.webkit ) {
transitionEnd = "webkitTransitionEnd"
} else if ( $.browser.mozilla ) {
transitionEnd = "transitionend"
} else if ( $.browser.opera ) {
transitionEnd = "oTransitionEnd"
}
}
})
/* MODAL PUBLIC CLASS DEFINITION
* ============================= */
var Modal = function ( content, options ) {
this.settings = $.extend({}, $.fn.modal.defaults, options)
this.$element = $(content)
.delegate('.close', 'click.modal', $.proxy(this.hide, this))
if ( this.settings.show ) {
this.show()
}
return this
}
Modal.prototype = {
toggle: function () {
/* TODO */
// return this[!this.isShown ? 'show' : 'hide']()
if (this.isShown) {
if ($('#main').html() !== '') {
return this['hide']()
}
return
} else {
return this['show']()
}
}
, show: function () {
var that = this
this.isShown = true
this.$element.trigger('show')
escape.call(this)
backdrop.call(this, function () {
var transition = $.support.transition && that.$element.hasClass('fade')
that.$element
.appendTo(document.body)
.show()
if (transition) {
that.$element[0].offsetWidth // force reflow
}
that.$element.addClass('in')
transition ?
that.$element.one(transitionEnd, function () { that.$element.trigger('shown') }) :
that.$element.trigger('shown')
})
return this
}
, hide: function (e) {
e && e.preventDefault()
if ( !this.isShown ) {
return this
}
var that = this
this.isShown = false
escape.call(this)
this.$element
.trigger('hide')
.removeClass('in')
$.support.transition && this.$element.hasClass('fade') ?
hideWithTransition.call(this) :
hideModal.call(this)
return this
}
}
/* MODAL PRIVATE METHODS
* ===================== */
function hideWithTransition() {
// firefox drops transitionEnd events :{o
var that = this
, timeout = setTimeout(function () {
that.$element.unbind(transitionEnd)
hideModal.call(that)
}, 500)
this.$element.one(transitionEnd, function () {
clearTimeout(timeout)
hideModal.call(that)
})
}
function hideModal (that) {
this.$element
.hide()
.trigger('hidden')
backdrop.call(this)
}
function backdrop ( callback ) {
var that = this
, animate = this.$element.hasClass('fade') ? 'fade' : ''
if ( this.isShown && this.settings.backdrop ) {
var doAnimate = $.support.transition && animate
this.$backdrop = $('<div class="modal-backdrop ' + animate + '" />')
.appendTo(document.body)
if ( this.settings.backdrop != 'static' ) {
this.$backdrop.click($.proxy(this.hide, this))
}
if ( doAnimate ) {
this.$backdrop[0].offsetWidth // force reflow
}
this.$backdrop.addClass('in')
doAnimate ?
this.$backdrop.one(transitionEnd, callback) :
callback()
} else if ( !this.isShown && this.$backdrop ) {
this.$backdrop.removeClass('in')
$.support.transition && this.$element.hasClass('fade')?
this.$backdrop.one(transitionEnd, $.proxy(removeBackdrop, this)) :
removeBackdrop.call(this)
} else if ( callback ) {
callback()
}
}
function removeBackdrop() {
this.$backdrop.remove()
this.$backdrop = null
}
function escape() {
var that = this
if ( this.isShown && this.settings.keyboard ) {
$(document).bind('keyup.modal', function ( e ) {
if ( e.which == 27 ) {
that.hide()
}
})
} else if ( !this.isShown ) {
$(document).unbind('keyup.modal')
}
}
/* MODAL PLUGIN DEFINITION
* ======================= */
$.fn.modal = function ( options ) {
var modal = this.data('modal')
if (!modal) {
if (typeof options == 'string') {
options = {
show: /show|toggle/.test(options)
}
}
return this.each(function () {
$(this).data('modal', new Modal(this, options))
})
}
if ( options === true ) {
return modal
}
if ( typeof options == 'string' ) {
modal[options]()
} else if ( modal ) {
modal.toggle()
}
return this
}
$.fn.modal.Modal = Modal
$.fn.modal.defaults = {
backdrop: false
, keyboard: false
, show: false
}
/* MODAL DATA- IMPLEMENTATION
* ========================== */
$(document).ready(function () {
$('body').delegate('[data-controls-modal]', 'click', function (e) {
e.preventDefault()
var $this = $(this).data('show', true)
$('#' + $this.attr('data-controls-modal')).modal( $this.data() )
})
})
}( window.jQuery || window.ender );
|
/**
* Module dependencies.
*/
var fs = require('fs');
var url = require('url');
var net = require('net');
var tls = require('tls');
var http = require('http');
var https = require('https');
var WebSocket = require('ws');
var assert = require('assert');
var events = require('events');
var inherits = require('util').inherits;
var Agent = require('../');
var PassthroughAgent = Agent(function(req, opts) {
return opts.secureEndpoint ? https.globalAgent : http.globalAgent;
});
describe('Agent', function() {
describe('subclass', function() {
it('should be subclassable', function(done) {
function MyAgent() {
Agent.call(this);
}
inherits(MyAgent, Agent);
MyAgent.prototype.callback = function(req, opts, fn) {
assert.equal(req.path, '/foo');
assert.equal(req.getHeader('host'), '127.0.0.1:1234');
assert.equal(opts.secureEndpoint, true);
done();
};
var info = url.parse('https://127.0.0.1:1234/foo');
info.agent = new MyAgent();
https.get(info);
});
});
describe('options', function() {
it('should support an options Object as first argument', function() {
var agent = new Agent({ timeout: 1000 });
assert.equal(1000, agent.timeout);
});
it('should support an options Object as second argument', function() {
var agent = new Agent(function() {}, { timeout: 1000 });
assert.equal(1000, agent.timeout);
});
it('should be mixed in with HTTP request options', function(done) {
var agent = new Agent({
host: 'my-proxy.com',
port: 3128,
foo: 'bar'
});
agent.callback = function(req, opts, fn) {
assert.equal('bar', opts.foo);
assert.equal('a', opts.b);
// `host` and `port` are special-cases, and should always be
// overwritten in the request `opts` inside the agent-base callback
assert.equal('localhost', opts.host);
assert.equal(80, opts.port);
done();
};
var opts = {
b: 'a',
agent: agent
};
http.get(opts);
});
});
describe('`this` context', function() {
it('should be the Agent instance', function(done) {
var called = false;
var agent = new Agent();
agent.callback = function() {
called = true;
assert.equal(this, agent);
};
var info = url.parse('http://127.0.0.1/foo');
info.agent = agent;
var req = http.get(info);
req.on('error', function(err) {
assert(/no Duplex stream was returned/.test(err.message));
done();
});
});
it('should be the Agent instance with callback signature', function(done) {
var called = false;
var agent = new Agent();
agent.callback = function(req, opts, fn) {
called = true;
assert.equal(this, agent);
fn();
};
var info = url.parse('http://127.0.0.1/foo');
info.agent = agent;
var req = http.get(info);
req.on('error', function(err) {
assert(/no Duplex stream was returned/.test(err.message));
done();
});
});
});
describe('"error" event', function() {
it('should be invoked on `http.ClientRequest` instance if `callback()` has not been defined', function(
done
) {
var agent = new Agent();
var info = url.parse('http://127.0.0.1/foo');
info.agent = agent;
var req = http.get(info);
req.on('error', function(err) {
assert.equal(
'"agent-base" has no default implementation, you must subclass and override `callback()`',
err.message
);
done();
});
});
it('should be invoked on `http.ClientRequest` instance if Error passed to callback function on the first tick', function(
done
) {
var agent = new Agent(function(req, opts, fn) {
fn(new Error('is this caught?'));
});
var info = url.parse('http://127.0.0.1/foo');
info.agent = agent;
var req = http.get(info);
req.on('error', function(err) {
assert.equal('is this caught?', err.message);
done();
});
});
it('should be invoked on `http.ClientRequest` instance if Error passed to callback function after the first tick', function(
done
) {
var agent = new Agent(function(req, opts, fn) {
setTimeout(function() {
fn(new Error('is this caught?'));
}, 10);
});
var info = url.parse('http://127.0.0.1/foo');
info.agent = agent;
var req = http.get(info);
req.on('error', function(err) {
assert.equal('is this caught?', err.message);
done();
});
});
});
describe('artificial "streams"', function() {
it('should send a GET request', function(done) {
var stream = new events.EventEmitter();
// needed for the `http` module to call .write() on the stream
stream.writable = true;
stream.write = function(str) {
assert(0 == str.indexOf('GET / HTTP/1.1'));
done();
};
// needed for `http` module in Node.js 4
stream.cork = function() {};
stream.uncork = function() {};
var opts = {
method: 'GET',
host: '127.0.0.1',
path: '/',
port: 80,
agent: new Agent(function(req, opts, fn) {
fn(null, stream);
})
};
var req = http.request(opts);
req.end();
});
it('should receive a GET response', function(done) {
var stream = new events.EventEmitter();
var opts = {
method: 'GET',
host: '127.0.0.1',
path: '/',
port: 80,
agent: new Agent(function(req, opts, fn) {
fn(null, stream);
})
};
var req = http.request(opts, function(res) {
assert.equal('1.0', res.httpVersion);
assert.equal(200, res.statusCode);
assert.equal('bar', res.headers.foo);
assert.deepEqual(['1', '2'], res.headers['set-cookie']);
done();
});
// have to wait for the "socket" event since `http.ClientRequest`
// doesn't *actually* attach the listeners to the "stream" until
// this happens
req.once('socket', function() {
var buf = Buffer.from(
'HTTP/1.0 200\r\n' +
'Foo: bar\r\n' +
'Set-Cookie: 1\r\n' +
'Set-Cookie: 2\r\n\r\n'
);
stream.emit('data', buf);
});
req.end();
});
});
});
describe('"http" module', function() {
var server;
var port;
// setup test HTTP server
before(function(done) {
server = http.createServer();
server.listen(0, function() {
port = server.address().port;
done();
});
});
// shut down test HTTP server
after(function(done) {
server.once('close', function() {
done();
});
server.close();
});
it('should work for basic HTTP requests', function(done) {
var called = false;
var agent = new Agent(function(req, opts, fn) {
called = true;
var socket = net.connect(opts);
fn(null, socket);
});
// add HTTP server "request" listener
var gotReq = false;
server.once('request', function(req, res) {
gotReq = true;
res.setHeader('X-Foo', 'bar');
res.setHeader('X-Url', req.url);
res.end();
});
var info = url.parse('http://127.0.0.1:' + port + '/foo');
info.agent = agent;
http.get(info, function(res) {
assert.equal('bar', res.headers['x-foo']);
assert.equal('/foo', res.headers['x-url']);
assert(gotReq);
assert(called);
done();
});
});
it('should support direct return in `connect()`', function(done) {
var called = false;
var agent = new Agent(function(req, opts) {
called = true;
return net.connect(opts);
});
// add HTTP server "request" listener
var gotReq = false;
server.once('request', function(req, res) {
gotReq = true;
res.setHeader('X-Foo', 'bar');
res.setHeader('X-Url', req.url);
res.end();
});
var info = url.parse('http://127.0.0.1:' + port + '/foo');
info.agent = agent;
http.get(info, function(res) {
assert.equal('bar', res.headers['x-foo']);
assert.equal('/foo', res.headers['x-url']);
assert(gotReq);
assert(called);
done();
});
});
it('should support returning a Promise in `connect()`', function(done) {
var called = false;
var agent = new Agent(function(req, opts) {
return new Promise(function(resolve, reject) {
called = true;
resolve(net.connect(opts));
});
});
// add HTTP server "request" listener
var gotReq = false;
server.once('request', function(req, res) {
gotReq = true;
res.setHeader('X-Foo', 'bar');
res.setHeader('X-Url', req.url);
res.end();
});
var info = url.parse('http://127.0.0.1:' + port + '/foo');
info.agent = agent;
http.get(info, function(res) {
assert.equal('bar', res.headers['x-foo']);
assert.equal('/foo', res.headers['x-url']);
assert(gotReq);
assert(called);
done();
});
});
it('should set the `Connection: close` response header', function(done) {
var called = false;
var agent = new Agent(function(req, opts, fn) {
called = true;
var socket = net.connect(opts);
fn(null, socket);
});
// add HTTP server "request" listener
var gotReq = false;
server.once('request', function(req, res) {
gotReq = true;
res.setHeader('X-Url', req.url);
assert.equal('close', req.headers.connection);
res.end();
});
var info = url.parse('http://127.0.0.1:' + port + '/bar');
info.agent = agent;
http.get(info, function(res) {
assert.equal('/bar', res.headers['x-url']);
assert.equal('close', res.headers.connection);
assert(gotReq);
assert(called);
done();
});
});
it('should pass through options from `http.request()`', function(done) {
var agent = new Agent(function(req, opts, fn) {
assert.equal('google.com', opts.host);
assert.equal('bar', opts.foo);
done();
});
http.get({
host: 'google.com',
foo: 'bar',
agent: agent
});
});
it('should default to port 80', function(done) {
var agent = new Agent(function(req, opts, fn) {
assert.equal(80, opts.port);
done();
});
// (probably) not hitting a real HTTP server here,
// so no need to add a httpServer request listener
http.get({
host: '127.0.0.1',
path: '/foo',
agent: agent
});
});
it('should support the "timeout" option', function(done) {
// ensure we timeout after the "error" event had a chance to trigger
this.timeout(1000);
this.slow(800);
var agent = new Agent(
function(req, opts, fn) {
// this function will time out
},
{ timeout: 100 }
);
var opts = url.parse('http://nodejs.org');
opts.agent = agent;
var req = http.get(opts);
req.once('error', function(err) {
assert.equal('ETIMEOUT', err.code);
req.abort();
done();
});
});
it('should free sockets after use', function(done) {
var agent = new Agent(function(req, opts, fn) {
var socket = net.connect(opts);
fn(null, socket);
});
// add HTTP server "request" listener
var gotReq = false;
server.once('request', function(req, res) {
gotReq = true;
res.end();
});
var info = url.parse('http://127.0.0.1:' + port + '/foo');
info.agent = agent;
http.get(info, function(res) {
res.socket.emit('free');
assert.equal(true, res.socket.destroyed);
assert(gotReq);
done();
});
});
describe('PassthroughAgent', function() {
it('should pass through to `http.globalAgent`', function(done) {
// add HTTP server "request" listener
var gotReq = false;
server.once('request', function(req, res) {
gotReq = true;
res.setHeader('X-Foo', 'bar');
res.setHeader('X-Url', req.url);
res.end();
});
var info = url.parse('http://127.0.0.1:' + port + '/foo');
info.agent = PassthroughAgent;
http.get(info, function(res) {
assert.equal('bar', res.headers['x-foo']);
assert.equal('/foo', res.headers['x-url']);
assert(gotReq);
done();
});
});
});
});
describe('"https" module', function() {
var server;
var port;
// setup test HTTPS server
before(function(done) {
var options = {
key: fs.readFileSync(__dirname + '/ssl-cert-snakeoil.key'),
cert: fs.readFileSync(__dirname + '/ssl-cert-snakeoil.pem')
};
server = https.createServer(options);
server.listen(443, function() {
port = server.address().port;
done();
});
});
// shut down test HTTP server
after(function(done) {
server.once('close', function() {
done();
});
server.close();
});
it('should not modify the passed in Options object', function(done) {
var called = false;
var agent = new Agent(function(req, opts, fn) {
called = true;
assert.equal(true, opts.secureEndpoint);
assert.equal(443, opts.port);
assert.equal('localhost', opts.host);
});
var opts = { agent: agent };
var req = https.request(opts);
assert.equal(true, called);
assert.equal(false, 'secureEndpoint' in opts);
assert.equal(false, 'port' in opts);
done();
});
it('should work with a String URL', function(done) {
var endpoint = 'https://127.0.0.1:' + port;
var req = https.get(endpoint);
// it's gonna error out since `rejectUnauthorized` is not being passed in
req.on('error', function(err) {
assert.equal(err.code, 'DEPTH_ZERO_SELF_SIGNED_CERT');
done();
});
});
it('should not silently fail on request', function(done) {
// this has failed silently by connecting to localhost:443
// check to make sure this never happens again
var req = https.get(new url.URL("https://0.0.0.1"), {
method: "GET",
});
req.on('error', function(err) {
assert.equal(err.code, 'EHOSTUNREACH');
assert.equal(err.address, '0.0.0.1');
done();
});
});
it('should work with all of these request permutations', function(done) {
var req = https.request("https://127.0.0.1", {
method: "GET",
}).end();
req.on('error', function(err) {
assert.equal(err.code, 'DEPTH_ZERO_SELF_SIGNED_CERT');
});
req = https.request("https://127.0.0.1", {
method: "GET",
}, () => {}).end();
req.on('error', function(err) {
assert.equal(err.code, 'DEPTH_ZERO_SELF_SIGNED_CERT');
});
req = https.request("https://127.0.0.1", () => {}).end();
req.on('error', function(err) {
assert.equal(err.code, 'DEPTH_ZERO_SELF_SIGNED_CERT');
});
req = https.request(new url.URL("/", "https://127.0.0.1"), {
method: "GET",
}).end();
req.on('error', function(err) {
assert.equal(err.code, 'DEPTH_ZERO_SELF_SIGNED_CERT');
});
req = https.request(new url.URL("/", "https://127.0.0.1"), {
method: "GET",
}, () => {}).end();
req.on('error', function(err) {
assert.equal(err.code, 'DEPTH_ZERO_SELF_SIGNED_CERT');
});
req = https.request(new url.URL("/", "https://127.0.0.1"), () => {}).end();
req.on('error', function(err) {
assert.equal(err.code, 'DEPTH_ZERO_SELF_SIGNED_CERT');
});
done();
});
it('should work for basic HTTPS requests', function(done) {
var called = false;
var agent = new Agent(function(req, opts, fn) {
called = true;
assert(opts.secureEndpoint);
var socket = tls.connect(opts);
fn(null, socket);
});
// add HTTPS server "request" listener
var gotReq = false;
server.once('request', function(req, res) {
gotReq = true;
res.setHeader('X-Foo', 'bar');
res.setHeader('X-Url', req.url);
res.end();
});
var info = url.parse('https://127.0.0.1:' + port + '/foo');
info.agent = agent;
info.rejectUnauthorized = false;
https.get(info, function(res) {
assert.equal('bar', res.headers['x-foo']);
assert.equal('/foo', res.headers['x-url']);
assert(gotReq);
assert(called);
done();
});
});
it('should pass through options from `https.request()`', function(done) {
var agent = new Agent(function(req, opts, fn) {
assert.equal('google.com', opts.host);
assert.equal('bar', opts.foo);
done();
});
https.get({
host: 'google.com',
foo: 'bar',
agent: agent
});
});
it('should support the 3-argument `https.get()`', function(done) {
var agent = new Agent(function(req, opts, fn) {
assert.equal('google.com', opts.host);
assert.equal('/q', opts.pathname || opts.path);
assert.equal('881', opts.port);
assert.equal('bar', opts.foo);
done();
});
https.get(
'https://google.com:881/q',
{
host: 'google.com',
foo: 'bar',
agent: agent
}
);
});
it('should default to port 443', function(done) {
var agent = new Agent(function(req, opts, fn) {
assert.equal(true, opts.secureEndpoint);
assert.equal(false, opts.rejectUnauthorized);
assert.equal(443, opts.port);
done();
});
// (probably) not hitting a real HTTPS server here,
// so no need to add a httpsServer request listener
https.get({
host: '127.0.0.1',
path: '/foo',
agent: agent,
rejectUnauthorized: false
});
});
it('should not re-patch https.request', () => {
var patchModulePath = "../patch-core";
var patchedRequest = https.request;
delete require.cache[require.resolve(patchModulePath)];
require(patchModulePath);
assert.equal(patchedRequest, https.request);
assert.equal(true, https.request.__agent_base_https_request_patched__);
});
describe('PassthroughAgent', function() {
it('should pass through to `https.globalAgent`', function(done) {
// add HTTP server "request" listener
var gotReq = false;
server.once('request', function(req, res) {
gotReq = true;
res.setHeader('X-Foo', 'bar');
res.setHeader('X-Url', req.url);
res.end();
});
var info = url.parse('https://127.0.0.1:' + port + '/foo');
info.agent = PassthroughAgent;
info.rejectUnauthorized = false;
https.get(info, function(res) {
assert.equal('bar', res.headers['x-foo']);
assert.equal('/foo', res.headers['x-url']);
assert(gotReq);
done();
});
});
});
});
describe('"ws" server', function() {
var wss;
var server;
var port;
// setup test HTTP server
before(function(done) {
server = http.createServer();
wss = new WebSocket.Server({ server: server });
server.listen(0, function() {
port = server.address().port;
done();
});
});
// shut down test HTTP server
after(function(done) {
server.once('close', function() {
done();
});
server.close();
});
it('should work for basic WebSocket connections', function(done) {
function onconnection(ws) {
ws.on('message', function(data) {
assert.equal('ping', data);
ws.send('pong');
});
}
wss.on('connection', onconnection);
var agent = new Agent(function(req, opts, fn) {
var socket = net.connect(opts);
fn(null, socket);
});
var client = new WebSocket('ws://127.0.0.1:' + port + '/', {
agent: agent
});
client.on('open', function() {
client.send('ping');
});
client.on('message', function(data) {
assert.equal('pong', data);
client.close();
wss.removeListener('connection', onconnection);
done();
});
});
});
describe('"wss" server', function() {
var wss;
var server;
var port;
// setup test HTTP server
before(function(done) {
var options = {
key: fs.readFileSync(__dirname + '/ssl-cert-snakeoil.key'),
cert: fs.readFileSync(__dirname + '/ssl-cert-snakeoil.pem')
};
server = https.createServer(options);
wss = new WebSocket.Server({ server: server });
server.listen(0, function() {
port = server.address().port;
done();
});
});
// shut down test HTTP server
after(function(done) {
server.once('close', function() {
done();
});
server.close();
});
it('should work for secure WebSocket connections', function(done) {
function onconnection(ws) {
ws.on('message', function(data) {
assert.equal('ping', data);
ws.send('pong');
});
}
wss.on('connection', onconnection);
var agent = new Agent(function(req, opts, fn) {
var socket = tls.connect(opts);
fn(null, socket);
});
var client = new WebSocket('wss://127.0.0.1:' + port + '/', {
agent: agent,
rejectUnauthorized: false
});
client.on('open', function() {
client.send('ping');
});
client.on('message', function(data) {
assert.equal('pong', data);
client.close();
wss.removeListener('connection', onconnection);
done();
});
});
});
|
import React, { useEffect, useState } from "react";
import { Button } from "react-bootstrap";
import { useWeb3React } from "@web3-react/core";
import { useContract } from "../../hooks";
import Color from "../../contracts/Color.json";
const DummyNFT = () => {
const [mintedColors, setMintedColors] = useState([]);
const [color, setColor] = useState("");
const { account } = useWeb3React();
const colorContract = useContract(
"0x42F94aEBBD548AF5F62304AeA2d895F300511dB6",
Color.abi,
false
);
const onMintClick = () => {
colorContract.methods
.mint(color)
.send({
from: account,
})
.on("transactionHash", (receipt) => {
console.log({ receipt });
});
setColor("");
};
useEffect(() => {
const loadColors = async () => {
const totalSupply = await colorContract.methods
.totalSupply()
.call({ from: account });
// Load Colors
for (var i = 1; i <= totalSupply; i++) {
const color = await colorContract.methods.colors(i - 1).call();
setMintedColors((oldState) => [...oldState, color]);
}
};
loadColors();
}, []);
return (
<div className="container-fluid mt-5">
<div className="row">
<main role="main" className="col-lg-12 d-flex text-center">
<div className="content mr-auto ml-auto">
<h1>Issue Token</h1>
<input
type="text"
value={color}
className="form-control mb-1"
placeholder="e.g. #FFFFFF"
onChange={(event) => setColor(event.target.value)}
/>
<Button
variant="outline-primary"
disabled={!color}
onClick={onMintClick}
>
MINT
</Button>
</div>
</main>
</div>
<hr />
<div className="row text-center">
{mintedColors
? mintedColors.map((color, key) => {
return (
<div key={key} className="col-md-3 mb-3">
<div
className="token"
style={{ backgroundColor: color }}
></div>
<div>{color}</div>
</div>
);
})
: null}
</div>
</div>
);
};
export default DummyNFT;
|
var {
GraphQLSchema,
GraphQLObjectType,
GraphQLString,
GraphQLList,
GraphQLInt,
GraphQLFloat,
GraphQLBoolean
} = require('graphql');
const youtubeThumbnailType = module.exports = new GraphQLObjectType({
name:'youtubeThumbnailType',
fields:()=>({
url: {type:GraphQLString},
width: {type:GraphQLInt},
height: {type:GraphQLInt},
})
});
|
class TTSItem {
constructor({ type = 'text', text }){
this.type = type;
this.text = text;
}
}
module.exports = TTSItem;
|
import React from "react";
import Svg, { Path } from "react-native-svg";
const ArrowRightSm = ({ color, ...props }) => (
<Svg viewBox="0 0 63 32" {...props}>
<Path
d="M61.5 13.7L48.8 1c-1.2-1.2-3.1-1.2-4.2 0-1.2 1.2-1.2 3.1 0 4.2l7.8 7.8H3c-1.7 0-3 1.3-3 3s1.3 3 3 3h49l-7.4 7.4c-1.2 1.2-1.2 3.1 0 4.2 1.2 1.2 3.1 1.2 4.2 0l12.7-12.7c.6-.5.9-1.3.9-2.1s-.3-1.5-.9-2.1z"
fill={color}
/>
</Svg>
);
export default ArrowRightSm;
|
import React, {useState, useEffect} from 'react'
import { CCard, CCardBody, CButton, CRow, CInput, CModal } from '@coreui/react'
import { useMoralis } from "react-moralis"
import get from 'lodash/get'
import isEmpty from 'lodash/isEmpty'
import { StakingContract } from '../../contracts/StakingContract.js'
import MintButton from '../crystals/MintButton.js'
const AvailableBalance = () => {
const { Moralis, web3, user, isAuthenticated } = useMoralis()
const { stakingContract, stakingSymbol } = StakingContract()
const [showModal, setShowModal] = useState()
const [stakeValue, setStakeValue] = useState(0)
const {message, setMessage, operation, setOperation, available, setAvailable, staked, crystals} = global.context
const setMaxStakeValue = () => {
setStakeValue(available)
}
useEffect(() => {
loadUnstakedBalances()
}, [message, operation, isAuthenticated, available, crystals, staked])
useEffect(() => {
loadUnstakedBalances()
}, [])
const toggleModal = () => setShowModal(!showModal)
const loadUnstakedBalances = async () => {
if (!isAuthenticated)
return
Moralis.Cloud.run("getTokenBalances", {ticker:stakingSymbol}).then((data) =>{
const item = get(data, 'data.data.items', []).filter((item) => item.contract_address.toLowerCase() === process.env.REACT_APP_STAKE_CONTRACT.toLowerCase())
console.log(item)
if (!isEmpty(item)) {
const itemBalance = item[0]
setAvailable(web3.utils.fromWei(itemBalance.balance.toString()))
} else {
setAvailable(0)
}
})
}
const createStake = () => {
setShowModal(false)
setMessage("We will notify when the operation completes!")
stakingContract.methods.createStake(web3.utils.toWei(stakeValue.toString())).send({
from:user.get('ethAddress')
}).then((operation) => {
setOperation(operation.transactionHash)
})
}
const onStakingValueChange = (evt) => setStakeValue(evt.target.value)
const hasBalance = () => available > 0
const stakingModal = (
<CModal
title="Modal title"
onClose={toggleModal}
show={showModal}>
<CCard>
<CCardBody>
<CRow className="card-item">
<h3 className="title">Amount to stake for yield</h3>
</CRow>
<CRow className="staking-card-body">
<CButton onClick={setMaxStakeValue}>{`Balance: ${available}`}</CButton>
<CInput type="number" id="amount" value={stakeValue} onChange={onStakingValueChange} placeholder="Your amount to stake for rewards" required />
</CRow>
<CRow>
<CButton color="primary" size="md" className="mr-3 mb-xl-0 text-center main-action-button card-action-button" onClick={toggleModal}>
CANCEL
</CButton>
<CButton color="primary" size="md" className="mr-3 mb-xl-0 text-center main-action-button card-action-button" onClick={createStake}>
STAKE
</CButton>
</CRow>
</CCardBody>
</CCard>
</CModal>
)
const mintButton = () => {
return !hasCrystals() && (<MintButton />)
}
const stakeButton = () => {
return hasCrystals() && (<CButton className="staking-button" disabled={!hasBalance()} onClick={toggleModal}>Stake</CButton>)
}
const hasCrystals = () => {
return staked > 0 || available > 0
}
const contentCard = isAuthenticated && (
<CCard className="text-white text-right balance-widget balance-widget-item separated-card">
<CCardBody>
<blockquote className="card-bodyquote">
<h5>Available Balance to Stake</h5>
<h3>{stakingSymbol && `${stakingSymbol}`}{AvailableBalance && ` ${available}`}</h3>
{ mintButton() }
{ stakeButton() }
</blockquote>
</CCardBody>
{showModal && stakingModal}
</CCard>
)
const emptyCard = (
<CCard className="text-white text-right empty-widget balance-widget-item separated-card">
<CCardBody>
<blockquote>
<h5> Buy and stake {stakingSymbol} to earn daily USDT dividends from the liquidity pools!</h5>
</blockquote>
</CCardBody>
</CCard>
)
return isAuthenticated ? contentCard : emptyCard
}
export default AvailableBalance
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.