text
stringlengths 2
1.05M
|
|---|
(function () {
'use strict';
var View = function (options, controller) {
var _default = this._default,
context = this,
$left, $right,
$contextMenu,
$tabCtn,
queryString, windowId, windowOptions;
$.extend(true, context, _default, options);
context.controller = controller;
context.$ctn = $(context.ctn).addClass('hidden');
context.$contextMenu = $contextMenu = $(context.contextMenuTemp);
context.$ctn.prepend($contextMenu);
context.$tabs = $(context.tabs, context.$ctn);
context.$left = $left = $(context.leftBtnTemp);
context.$right = $right = $(context.rightBtnTemp);
context.$moveBtns = context.$left.add(context.$right);
context.pagePopInstance = {};
context.$tabs.wrap(context.tabCtnTemp);
context.$tabCtn = $tabCtn = context.$tabs.parent();
$tabCtn.prepend($left);
$tabCtn.append($right);
context.$ctt = $(context.ctt, context.$ctn);
context.$tabs.on({
'click.view': function (e) {
var $target = $(e.target || window.event.srcElement),
$item = $target.closest('[data-dom-id]'),
domID = $item.attr('data-dom-id');
if (domID) {
if ($target.attr('data-role') === 'close') {
context.close(domID);
} else {
context.switchView(domID);
}
return false;
}
}
});
if (context.contextMenuOption) {
context.$tabs.on({
'contextmenu.view': function (e) {
var $li = $(e.target || event.srcElement).closest('[data-dom-id]'),
$tabs = $li.parent(),
$contextMenu = context.$contextMenu,
contextMenuOption = context.contextMenuOption,
contextMenuCallback = context.contextMenuCallback,
html = '',
lineTemp,
index, menuList, menu, length;
if ($li.length) {
length = $tabs.children().length;
lineTemp = contextMenuOption.lineTemp;
index = $li.index();
if ($li.hasClass('active')) {
switch(length){
case 1:
menuList = contextMenuOption.ONLY;
break;
default:
menuList = contextMenuOption.CURRENT;
}
} else {
switch (index) {
case 0:
menuList = contextMenuOption.FIRST;
break;
case length - 1:
menuList = contextMenuOption.LAST;
break;
default:
menuList = contextMenuOption._DEFAULT;
}
}
menuList = ([].concat(menuList)).reverse();
for (length = menuList.length;
(menu = contextMenuOption[menuList[--length]]);) {
html += lineTemp
.replace('_action_', menu.action)
.replace('_filter_', menu.filter)
.replace('_name_', menu.name);
}
$contextMenu
.empty().append(html.replace(/_index_/g, index))
.css(app.position(e, $(window), $contextMenu), -15, 0).removeClass('hide')
.off('.viewContextMenu')
.one({
'click.viewContextMenu': function (e) {
var $target = $(e.target || event.srcElement),
action = $target.attr('data-action');
if (action && action !== "undefined") {
contextMenuCallback.doAction.call(context, $li, action);
} else {
contextMenuCallback.closeTab.call(context, $target.attr('data-filter'));
}
$contextMenu.addClass('hide');
},
'mouseleave.viewContextMenu': function () {
$contextMenu.addClass('hide');
}
});
$tabs.off('.viewContextMenu').one('mouseleave.viewContextMenu', function (e) {
if (!$(e.relatedTarget).closest('ul').hasClass('aweb-tab-content-menu')) {
$contextMenu.addClass('hide');
}
});
}
return false;
}
});
}
context.$moveBtns.on({
'click.view': function () {
context.focusTab(undefined, $(this));
}
});
app.screen.addResizeHandler({
uid: app.getUID(),
isGlobal: options.isGlobal,
timeout: 500,
callback: function () {
context.focusTab(context.$tabs.children('.active'));
}
});
queryString = app.getQueryStringMap();
if ((windowId = queryString[this.windowKey]) && (windowOptions = app.getData(windowId))) {
windowOptions = JSON.parse(windowOptions);
windowOptions.type = this.TYPE.BLANK;
this.controller.open(windowOptions);
}
},
Model = function (options, controller) {
$.extend(true, this, options, {
currentStep: -1,
intervals: {},
timeouts: {},
_data: {
scope: {}
}
});
this.controller = controller;
this.uid = this.pageId = this.cacheId = this.domID;
},
Controller = function (options) {
var context = this,
_default = this._default,
eventController;
$.extend(true, this, _default, options);
options.view.controller = this;
this.context = this;
this.event = app.dispatcher();
this.Model = this.Model || Model;
this.tab = new (options.View || View)(options.view, this);
this.pages = {};
};
View.prototype = {
version: 'AWOS 4.4_20171127',
constructor: View,
_default: {
ctn: '[data-role=container]',
tabs: '#tabs',
ctt: '#spa-page-main',
count: {},
stack: [],
contextMenuTemp: '<ul class="aweb-tab-content-menu hide"></ul>',
tabCtnTemp: '<div class="aweb-tabs-container"></div>',
tabTemp: '<li class="active" data-dom-id="_domID_" data-tab-id="_id_" data-href="_href_" title="_title_"><a>_title_</a>_button_</li>',
leftBtnTemp: '<button type="button" title="左移标签" class="btn aweb-tabs-left hidden" data-role="left"><i class="fa fa-chevron-left"></i>',
rightBtnTemp: '<button type="button" title="右移标签" class="btn aweb-tabs-right hidden" data-role="right"><i class="fa fa-chevron-right"></i></button>',
closeButtonTemp: '<button type="button" data-role="close" class="close">×</button>',
untitled: '未定义',
cttTemp: '<div id="_domID_" />',
ctnFullClassName: 'aweb-spa-ctn-full',
cttFullClassName: 'aweb-spa-ctt-full',
hideNavClass: 'hide',
pathKeyInURL: 'page',
fullscreenKeyInURL: 'fullscreen',
displayNavKeyInURL: 'displayNav',
windowKey: 'windowId',
toUpdateTitle: true
},
TYPE: {
BLANK: 'BLANK',
SUB: 'SUB',
SELF: 'SELF',
WINDOW: 'WINDOW',
POPOVER: 'POPOVER'
},
popOption: {
popSwitch: false
},
open: function (options) {
var TYPE = this.TYPE,
ret = false,
title = options.title || this.untitled,
id = options.id,
fixed = options.fixed,
domID,
href = $.camelCase(options.sections.join('-')),
handler,context,
$tabs = this.$tabs.children(),
$tab, $renderTo;
if (!this.stack.length && options.type === TYPE.SELF) {
options.type = TYPE.BLANK;
}
if (!options.type || options.type === TYPE.BLANK) {
$tab = id ? $tabs.filter('[data-tab-id="' + id + '"][data-href="' + href + '"]') : $tabs.filter('[data-href="' + href + '"]');
if ($tab.length) {
domID = $tab.attr('data-dom-id');
this.switchView(domID, !$tab.length);
} else {
if (this.stack.length > 1 && (handler = this.controller.getCacheHandler(this.stack[this.stack.length - 1])) && (handler.type === TYPE.SUB || handler.type === TYPE.POPOVER)) {
switch (handler.type) {
case TYPE.SUB:
app.alert('系统错误 0x01:子页面下不能打开新页面!', app.alert.ERROR, '0x01');
break;
case TYPE.POPOVER:
app.alert('系统错误 0x01:气泡页面下不能打开新页面!', app.alert.ERROR, '0x01');
break;
}
} else {
domID = this.getUID(id || href);
this.$tabs.append(this.tabTemp.replace(/_domID_/, domID).replace(/_id_/, id).replace(/_href_/, href)
.replace(/_title_/g, title)
.replace(/_button_/, fixed ? '' : this.closeButtonTemp)
);
$renderTo = $(this.cttTemp.replace(/_domID_/, domID));
this.$ctt.append($renderTo);
ret = {
domID: domID,
$renderTo: $renderTo,
type: TYPE.BLANK
};
}
}
} else {
switch (options.type) {
case TYPE.SELF:
//暂时阻止气泡页面下自身打开页面
if (this.stack.length > 1 && (handler = this.controller.getCacheHandler(this.stack[this.stack.length - 1])) && (handler.type === TYPE.POPOVER)) {
app.alert('系统错误 0x01:气泡页面下不能打开自身页面!', app.alert.ERROR, '0x01');
} else {
handler = this.controller.getCurrentHandler();
this.controller.unload(handler.domID, true);
domID = this.getUID(id || href);
$renderTo = handler.$renderTo = this.updateTitleAndID(handler.type, handler.domID, domID, title, id, href, handler.$renderTo);
ret = {
$renderTo: handler.$renderTo,
domID: domID,
type: handler.type
};
}
break;
case TYPE.SUB:
if (this.stack.length > 1 && (handler = this.controller.getCacheHandler(this.stack[this.stack.length - 1])) && (handler.type === TYPE.POPOVER)) {
app.alert('系统错误 0x01:气泡页面下不能打开子页面!', app.alert.ERROR, '0x01');
} else {
domID = this.getUID(id || href);
$renderTo = $(this.cttTemp.replace(/_domID_/, domID));
ret = {
$renderTo: $renderTo,
domID: domID,
type: TYPE.SUB
};
app.modal({
title: title,
content: '',
btnConfirm: options.btnConfirm || '关闭',
btnCancel: options.btnCancel || '取消',
init: function (controller) {
var $body = $(this),
$close = $('<button title="关闭子页面" type="button" class="close iconfont icon-topbar-close"></button>');
$body.prev().prepend($close);
$body.append($renderTo);
$close.one('click', function () {
controller.unload();
$(this).closest('.modal').modal('hide');
controller.tab.resumeView();
});
},
confirmHandler: function (controller) {
controller.unload();
$(this).closest('.modal').modal('hide');
controller.tab.resumeView();
},
cancelHandler: function (controller) {
controller.unload();
$(this).closest('.modal').modal('hide');
controller.tab.resumeView();
},
width: options.width,
height: options.height,
args: [this.controller],
isLargeModal: true,
isDialog: true,
backdrop: 'static',
noFooter: !options.hasFooter,
noHeader: !options.title
});
}
break;
case TYPE.POPOVER:
if (this.stack.length > 1 && (handler = this.controller.getCacheHandler(this.stack[this.stack.length - 1])) && (handler.type === TYPE.POPOVER)) {
app.alert('系统错误 0x01:气泡页面下不能打开新气泡页面!', app.alert.ERROR, '0x01');
} else {
domID = this.getUID(id || href);
$renderTo = $(this.cttTemp.replace(/_domID_/, domID));
ret = {
$renderTo: $renderTo,
domID: domID,
type: TYPE.POPOVER
};
context = this;
/* //需要阻止第二次点击的时候仍然进行 popover 动作
if (this.popOption.popSwitch) {
this.popOption.popSwitch = !this.popOption.popSwitch;
} else {*/
app.popover({
$elem: options.$elem,
title: title,
content: '',
placement: 'auto left',
init: function (popIns, controller) {
var $body = $(this).find('.aweb-popover-content');
$body.append($renderTo);
context.pagePopInstance = popIns;
},
confirmHandler: function (popIns, controller, popOption) {
if (!popIns.popInstance.inState.click) {
popOption.popSwitch = !popOption.popSwitch;
}
controller.unload();
controller.tab.resumeView();
},
width: options.width,
height: options.height,
args: [this.controller, this.popOption]
});
/* }*/
}
break;
}
}
if (typeof options.fullscreen === 'boolean') {
this.fullscreen(options.fullscreen);
}
if (typeof options.displayNav === 'boolean') {
this.displayNav(options.displayNav);
}
return ret;
},
openWindow: function (options) {
var optionStr = JSON.stringify(options || {}),
windowId = app.getUID(),
location = window.location || document.location,
url = (location.origin || '') + location.pathname,
a = document.createElement("a");
app.setData(windowId, optionStr);
window.open(url + '?' + app.getNewQueryStringURL({
windowId: windowId
}));
},
close: function (domID, _doNotResume) {
var handler,
controller = this.controller,
currentViewID = this.getCurrentView();
handler = controller.getCacheHandler(domID) || controller.getCurrentHandler();
domID = domID || currentViewID;
if (handler) {
if (handler.type === this.TYPE.SUB) {
controller.unload(domID, true);
handler.$renderTo.closest('.modal').modal('hide');
} else {
if(/MSIE|Trident\/7\.0/i.test(navigator.userAgent)&& handler.type === this.TYPE.POPOVER){
this.pagePopInstance.close && this.pagePopInstance.close();
}
controller.unload(domID);
this.$tabs.children('[data-dom-id="' + domID + '"]').remove();
this.$ctt.children('#' + domID).remove();
}
if (!_doNotResume && domID === currentViewID) {
this.resumeView();
}
}
return this;
},
getUID: function (domID) {
if (this.count[domID]) {
domID += (++this.count[domID]);
} else {
this.count[domID] = 1;
}
return domID;
},
updateTitleAndID: function (type, oldID, newID, title, id, href, $renderTo) {
var TYPE = this.TYPE;
title = title || this.untitled;
switch (type) {
case TYPE.SUB:
$renderTo.closest('.modal').children('.modal-header').children(':not(button)').text(title);
break;
case TYPE.POPOVER:
$renderTo.closest('.aweb-popover').children('.aweb-popover-header').children('.aweb-popover-title').text(title);
break;
default:
this.$tabs
.children('[data-dom-id="' + oldID + '"]')
.attr({
title: title,
'data-dom-id': newID,
'data-tab-id': id,
'data-href': href
})
.children('a').text(title);
break;
}
return $renderTo.attr('id', newID);
},
setTitle: function (uid, newTitle) {
var TYPE = this.TYPE,
model = this.controller.getCacheHandler(uid),
$view;
if (model && ($view = model.$renderTo)) {
newTitle = newTitle || this.untitled;
switch (model.type) {
case TYPE.SUB:
$view.closest('.modal').children('.modal-header').children(':not(button)').text(newTitle);
break;
default:
this.$tabs
.children('[data-dom-id="' + uid + '"]')
.attr({
title: newTitle
})
.children('a').text(newTitle);
break;
}
}
},
setCurrentView: function (domID) {
if (domID) {
var stack = [],
_stack = this.stack,
i, id;
for (i = _stack.length; id = _stack[--i];) {
if (domID !== id) {
stack.push(id);
}
}
this.stack = stack.reverse();
this.stack.push(domID);
this.$ctn.removeClass('hidden');
}
},
getCurrentView: function () {
//字符串化
return this.stack[this.stack.length - 1] + '';
},
removeView: function (domID) {
if (domID) {
var stack = [],
_stack = this.stack,
i, id;
for (i = _stack.length; id = _stack[--i];) {
if (domID !== id) {
stack.push(id);
}
}
this.stack = stack.reverse();
if (!stack.length) {
this.$ctn.addClass('hidden');
this.fullscreen(false);
this.displayNav(true);
}
}
},
switchView: function (domID, isLoad) {
var
lastDomID = this.getCurrentView(),
$tab, $ctt, $page,
model;
if (isLoad || lastDomID !== domID) {
model = this.controller.getCacheHandler(domID);
if (model) {
this.controller.pause();
if ((model.type !== this.TYPE.SUB) && (model.type !== this.TYPE.POPOVER)) {
$tab = this.$tabs.children()
.removeClass('active')
.filter('[data-dom-id="' + domID + '"]').addClass('active');
$ctt = this.$ctt;
$page = $ctt.children('#' + lastDomID);
$page.attr('data-scroll-top', $page.parent().scrollTop()).addClass('hide');
$page = $ctt.children('#' + domID);
$page.removeClass('hide');
$page.parent().scrollTop($page.attr('data-scroll-top') || 0);
//因为弹窗和气泡已经trigger了
$(window).trigger('resize');
} else {
$ctt = this.$ctt;
$page = $ctt.children('#' + lastDomID);
$page.attr('data-scroll-top', $page.parent().scrollTop());
$page = model.$renderTo;
$page.removeClass('hide');
}
!isLoad && this.controller.resume(domID);
this.setCurrentView(domID);
this.focusTab($tab);
}
}
},
resumeView: function () {
var TYPE = this.TYPE,
lastDomID = this.getCurrentView(),
handler = this.controller.getCurrentHandler(),
domID,
$tab, $ctt, $page, model;
if (handler) {
domID = handler.domID;
model = this.controller.getCacheHandler(domID);
if ((model.type !== this.TYPE.SUB) && (model.type !== this.TYPE.POPOVER)) {
$tab = this.$tabs.children()
.removeClass('active')
.filter('[data-dom-id="' + domID + '"]').addClass('active');
$ctt = this.$ctt;
$page = $ctt.children('#' + lastDomID);
$page.attr('data-scroll-top', $page.parent().scrollTop()).addClass('hide');
$page = $ctt.children('#' + domID);
$page.removeClass('hide');
$page.parent().scrollTop($page.attr('data-scroll-top') || 0);
//因为弹窗和气泡已经trigger了
$(window).trigger('resize');
}
this.controller.resume(domID);
this.focusTab($tab);
}
},
focusTab: (function () {
var _focusTab = function ($tab, $btn) {
var widths = 0,
totalWidths = 0,
$tabCtn = this.$tabCtn,
$tabs = this.$tabs,
$lis = $tabs.children($tab ? ':lt(' + ($tab.index() + 1) + ')' : undefined),
$tabBtn = $btn || this.$left,
marginLeft,
tabsContainerWidth = $tabCtn.innerWidth() - $tabBtn.outerWidth() * 4.2,
tabsOffsetLeft = parseInt($tabs.css('left'), 10);
$lis.each(function (index, elem) {
widths += $(elem).outerWidth();
});
if (!$tab) {
totalWidths = widths;
} else {
$tabs.children().each(function (index, elem) {
totalWidths += $(elem).outerWidth();
});
}
this.$moveBtns[totalWidths < tabsContainerWidth ? 'addClass' : 'removeClass']('hidden');
if ($btn) {
if ($btn.attr('data-role') === 'left') {
tabsOffsetLeft += tabsContainerWidth;
} else {
tabsOffsetLeft -= tabsContainerWidth;
}
} else {
tabsOffsetLeft = tabsContainerWidth - widths;
}
if (tabsContainerWidth - widths > tabsOffsetLeft) {
tabsOffsetLeft = tabsContainerWidth - widths;
} else if (tabsOffsetLeft > 0) {
marginLeft = totalWidths < tabsContainerWidth ? 0 : $tabBtn.outerWidth();
tabsOffsetLeft = tabsOffsetLeft > marginLeft ? marginLeft : tabsOffsetLeft;
}
$tabs.animate({
'left': tabsOffsetLeft + 'px'
}, 500);
},
focusTabHandler = null;
return function ($tab, $btn) {
var context = this;
if (focusTabHandler) {
clearTimeout(focusTabHandler);
focusTabHandler = null;
}
focusTabHandler = setTimeout(function () {
_focusTab.call(context, $tab, $btn);
}, 200);
}
}()),
fullscreen: function (fullscreen) {
this.$ctn[fullscreen ? 'addClass' : 'removeClass'](this.ctnFullClassName);
app.shelter[fullscreen ? 'upperZIndex' : 'lowerZIndex']();
this.focusTab();
},
isFullScreen: function () {
return this.$ctn.hasClass(this.ctnFullClassName);
},
displayNav: function (show) {
this.$tabCtn[show ? 'removeClass' : 'addClass'](this.hideNavClass);
this.$ctt[show ? 'removeClass' : 'addClass'](this.cttFullClassName);
this.focusTab();
},
isDisplayNav: function () {
return !this.$tabCtn.hasClass(this.hideNavClass);
}
};
Model.prototype = {
version: 'AWOS 4.4_20171127',
constructor: Model,
load: function () {
return this.stepTo(0);
},
pause: function () {
var data = this._data;
try {
if (data && data.bootstrap && data.bootstrap.pause) {
this.controller.trigger(this.controller.STATUS.BEFORE_PAUSE, this);
data.bootstrap.pause.call(this, data.$el, data.scope, this);
this.controller.trigger(this.controller.STATUS.AFTER_PAUSE, this);
}
} catch (e) {
if (window.aweb.error) {
app.alert(e.message, app.alert.ERROR);
}
if (window.aweb.log) {
console.error(e);
}
}
this.stopAsyncEvent();
return this;
},
resume: function () {
var data = this._data;
try {
if (data && data.bootstrap && data.bootstrap.resume) {
this.controller.trigger(this.controller.STATUS.BEFORE_RESUME, this);
data.bootstrap.resume.call(this, data.$el, data.scope, this);
this.controller.trigger(this.controller.STATUS.AFTER_RESUME, this);
}
} catch (e) {
if (window.aweb.error) {
app.alert(e.message, app.alert.ERROR);
}
if (window.aweb.log) {
console.error(e);
}
}
this.startAsyncEvent();
return this;
},
unload: function (keepDom) {
if (this.currentStep !== -1) {
var data = this._data;
try {
if (data && data.bootstrap && data.bootstrap.unload) {
this.controller.trigger(this.controller.STATUS.BEFORE_UNLOAD, this);
data.bootstrap.unload.call(this, data.$el, data.scope, this);
this.controller.trigger(this.controller.STATUS.AFTER_UNLOAD, this);
}
} catch (e) {
if (window.aweb.error) {
app.alert(e.message, app.alert.ERROR);
}
if (window.aweb.log) {
console.error(e);
}
} finally {
this.undelegateEvents();
this.stopAsyncEvent(true);
if (!keepDom) {
data.$el.remove();
delete this._data.$el;
if (window.$AW) {
delete window.$AW._css[this.domID];
}
} else {
data.$el.empty();
}
delete this.timeouts;
delete this.intervals;
this.timeouts = {};
this.intervals = {};
}
}
return this;
},
stepTo: function (step) {
var
handler = this,
cache = handler._data && handler._data.scope,
module = handler.conf,
modulePath = handler.path,
oFlow = module.flows[step],
oView = module.views[oFlow.id],
dtd = $.Deferred();
//防止刷新时,pageParams不一致
if (cache && !$.isEmptyObject(cache)) {
app.domain.exports('page', cache);
}
this.unload(true);
require([this.getTextURL(modulePath + oView.template, handler.server), this.getJavascriptURL(modulePath + oView.js, handler.server)],
function (template, bootstrap) {
var data = handler._data,
$div = $('<div/>'),
$el;
handler.$renderTo.empty().append($div);
template && $div.append(template);
$el = data.$el = handler.$renderTo;
if($.isFunction(bootstrap)){
bootstrap=bootstrap();
}
if($.isFunction(bootstrap)){
bootstrap=bootstrap();
}
data.bootstrap = bootstrap;
try {
if (data && data.bootstrap && data.bootstrap.load) {
bootstrap.load.call(handler, $el, data.scope, handler);
}
handler.currentStep = step;
handler.controller.trigger(handler.controller.STATUS.AFTER_LOAD, handler);
if (window.aweb.log) {
console.log(new Date().toTimeString() + ':加载' + handler.path + '完毕,唯一ID(domID):' + handler.domID + ',页面ID(id):' + handler.id + ',当前步数(currentStep):' + step + '');
}
} catch (e) {
if (window.aweb.error) {
app.alert(e.message, app.alert.ERROR);
}
if (window.aweb.log) {
console.error(e);
}
} finally {
dtd.resolve();
}
});
return dtd.promise();
},
setTimeout: function (option) {
var handler = this;
if (option.immediate) {
option.callback ? option.callback() : option.func();
}
option.clock = option.clock || 0;
option.uniqueId = option.uniqueId || app.getUID();
option.windowId = window.setTimeout(function () {
option.callback ? option.callback() : option.func();
handler.removeAsyncEvent(handler.timeouts, option.uniqueId);
}, option.clock);
handler.timeouts[option.uniqueId] = option;
return option.uniqueId;
},
clearTimeout: function (uniqueId) {
var e = this.timeouts[uniqueId];
if (e) {
window.clearTimeout(e.windowId);
this.removeAsyncEvent(this.timeouts, e.uniqueId);
}
},
setInterval: function (option) {
var handler = this;
if (option.immediate) {
option.callback ? option.callback() : option.func();
}
option.clock = option.clock || 0;
option.uniqueId = option.uniqueId || app.getUID();
option.windowId = window.setInterval(option.times ? function () {
if (option.times) {
option.times--;
option.callback ? option.callback() : option.func();
} else {
handler.removeAsyncEvent(handler.timeouts, option.uniqueId);
}
} : (option.callback || option.func), option.clock);
handler.intervals[option.uniqueId] = option;
return option.uniqueId;
},
clearInterval: function (uniqueId) {
var e = this.intervals[uniqueId];
if (e) {
window.clearInterval(e.windowId);
this.removeAsyncEvent(this.intervals, e.uniqueId);
}
},
updateInterval: function (uniqueId, option) {
var handler = this,
e = handler.intervals[uniqueId];
if (e) {
this.clearInterval(e.uniqueId);
return this.setInterval($.extend(true, e, option));
}
},
startAsyncEvent: function () {
var i, map, item,
handler = this;
map = this.intervals;
for (i in map) {
if ((item = map[i]) && item.isPause) {
item.windowId = window.setInterval(item.times ? (function (item, handler) {
return function () {
if (item.times) {
item.times--;
item.callback ? item.callback() : item.func();
} else {
handler.removeAsyncEvent(handler.timeouts, item.uniqueId);
}
};
}(item, handler)) : (item.callback || item.func), item.clock);
}
}
map = this.timeouts;
for (i in map) {
if ((item = map[i]) && item.isPause) {
item.windowId = window.setTimeout((function (item, handler) {
return function () {
item.callback ? item.callback() : item.func();
handler.removeAsyncEvent(handler.timeouts, item.uniqueId);
}
}(item, handler)), item.clock);
}
}
i = null, item = null, map = null;
},
stopAsyncEvent: function (isUnload) {
var i, map, item;
map = this.intervals;
for (i in map) {
if ((item = map[i]) && (isUnload || item.isPause)) {
window.clearInterval(map[i].windowId);
}
}
map = this.timeouts;
for (i in map) {
if ((item = map[i]) && (isUnload || item.isPause)) {
window.clearTimeout(map[i].windowId);
}
}
},
removeAsyncEvent: function (arr, uniqueId) {
if (arr[uniqueId]) {
arr[uniqueId] = null;
delete arr[uniqueId];
}
},
delegateEvents: function (events) {
var context = this,
$el = context._data.$el || context.$renderTo,
method, match, eventName, selector, $selector, key, touchName,
map = {},
intercept,
$ = jQuery;
this.undelegateEvents();
for (key in events) {
if (events.hasOwnProperty(key)) {
method = events[key];
if (!this.isFunction(method)) method = this[events[key]];
if (!method) continue;
match = key.match(this.delegateEventSplitter);
eventName = match[1];
selector = match[2];
eventName += '.previewEvents';
if (selector === '') {
$el.on(eventName, method);
} else {
$selector = $(selector, $el);
if ($selector.length) {
// (touchName = eventName.split(".")[0]) && touchType[touchName] && $selector.addClass("waves-effect");
$selector
.on(eventName, method)
.attr('data-aweb-event', true);
}
if (!map[eventName]) {
map[eventName] = {};
$el.on(eventName, {
eventName: eventName
}, function (e) {
var $e = $(e.target || window.event.srcElement),
$selector,
selector, items = map[e.data.eventName];
for (selector in items) {
if (items.hasOwnProperty(selector)) {
$selector = $e.closest($(selector, $el));
if ($selector.attr('data-aweb-event')) {
break;
} else if ($selector.length) {
return items[selector].apply($e[0], arguments);
}
}
}
});
}
map[eventName][selector] = method;
}
}
}
if (window.aweb && window.aweb.headless && window.aweb.headless.on) {
intercept = function (e) {
var $target = $(e.target || event.srcElement);
console.log(new Date().toString() + ':' + context.path + '触发了' + e.type + ',元素是:' + $target);
};
$el.on({
'click.debug': intercept,
'focus.debug': intercept,
'keydown.debug': intercept
});
}
},
undelegateEvents: function () {
this._data.$el && this._data.$el.off();
},
isFunction: function (obj) {
return ((typeof obj === 'function') || false);
},
delegateEventSplitter: /^(\S+)\s*(.*)$/,
getController: function () {
return this.controller;
},
getTextURL : function (mvvmConfPath, server) {
return "text!./" + (server || '') + mvvmConfPath + (aweb.debug?("?timestamp=" + new Date().getTime()):'');
},
getJavascriptURL : function (mvvmConfPath, server) {
return (server || '') + mvvmConfPath + "?timestamp=" + (aweb.debug?("?timestamp=" + new Date().getTime()):'');
},
validateModule : function (module) {
var error = [],
flows = module.flows,
views = module.views,
i, flow;
if (!views) {
error.push("views必需定义!");
}
if (flows && flows.length) {
for (i = -1; flow = flows[++i];) {
if (!flow.id) {
error.push("flows中位置为" + i + "的流程需包含关联view的id!");
} else {
if (views && !views[flow.id]) {
error.push("flows中位置为" + i + "的流程id关联的view未在views中定义!");
}
}
}
} else {
error.push("flows必需为长度大于0的数组!");
}
return error;
}
};
Controller.prototype = {
version: 'AWOS 4.4_20171127',
constructor: Controller,
_default: {
conf: {},
cache: {},
modulesPath: "module",
separator: "/",
mvvmConfName: "mvvm.json",
modulePath404: "module/error/404/"
},
STATUS: {
AFTER_LOAD: 'afterLoad',
BEFORE_PAUSE: 'beforePause',
AFTER_PAUSE: 'afterPause',
BEFORE_RESUME: 'beforeResume',
AFTER_RESUME: 'afterResume',
BEFORE_UNLOAD: 'beforeUnload',
AFTER_UNLOAD: 'afterUnload'
},
getDefaultModulesPath: function () {
return this.modulesPath;
},
getDefaultMVVMConfName: function () {
return this.mvvmConfName;
},
getDefaultSeparator: function () {
return this.separator;
},
getCurrentHandler: function () {
return this.cache[this.tab.getCurrentView()];
},
getMVVM404: function () {
return {
path: this.modulePath404,
conf: this.conf[this.modulePath404]
};
},
getCacheHandler: function (domID) {
return this.cache[domID];
},
addCacheHandler: function (handler) {
this.cache[handler.domID] = handler;
},
removeCacheHandler: function (domID) {
if (this.cache[domID]) {
delete this.cache[domID];
this.tab.removeView(domID);
}
},
load: function (options) {
var modulePath = this.getDefaultModulesPath() + this.getDefaultSeparator(),
$renderTo,
id, domID,
result, type,
handler,
context = this,
sections = [];
if (options.sections instanceof Array) {
sections = sections.concat(options.sections);
}
if (sections.length) {
modulePath += (sections.join(this.getDefaultSeparator()) + this.getDefaultSeparator());
id = options.id;
if (options.type !== View.prototype.TYPE.WINDOW) {
app.shelter.show('正在加载页面,请稍候…');
require([context.Model.prototype.getTextURL(modulePath + this.getDefaultMVVMConfName(), options.server)], function (mvvmConf) {
try {
var error;
if (!mvvmConf) {
app.alert('系统错误 0x05:获取页面失败!', app.alert.ERROR, '0x05');
} else {
mvvmConf = JSON.parse(mvvmConf);
if ((error = context.Model.prototype.validateModule(mvvmConf)).length) {
app.alert(error, app.alert.ERROR);
} else {
if (result = context.tab.open(options)) {
domID = result.domID;
$renderTo = result.$renderTo;
type = result.type;
context.pages[domID] = options;
try {
handler = new context.Model({
conf: mvvmConf,
path: modulePath,
$renderTo: $renderTo,
id: id,
domID: domID,
controller: context,
type: type,
server: options.server,
option: options
}, context);
} catch (e) {
error = context.getMVVM404();
handler = new context.Model({
conf: error.conf,
path: error.path,
$renderTo: $renderTo,
id: id,
domID: domID,
controller: context,
type: type,
errorMsg: e.message,
server: options.server,
option: options
}, context);
} finally {
context.addCacheHandler(handler);
//如果是SELF的时候,handler指的是上一次的type,而不是这一次的type
if (options.type === context.tab.TYPE.SELF) {
context.tab.setCurrentView(handler.domID);
} else {
context.tab.switchView(handler.domID, true);
}
$.when(handler.load()).done(function () {
app.shelter.hide();
});
}
} else {
app.shelter.hide();
}
}
}
} catch (e) {
if (window.aweb.log) {
console.error(e);
}
if (window.aweb.error) {
app.alert('系统错误 0x04:内容运行报错,详情见控制台!', app.alert.ERROR, '0x04');
}
app.shelter.hide();
}
});
} else {
this.tab.openWindow(options);
}
} else {
if (window.aweb.error) {
app.alert('系统错误 0x01:页面路径为空!', app.alert.ERROR, '0x01');
}
}
},
pause: function () {
var handler = this.getCurrentHandler();
if (handler) {
handler.pause();
}
},
resume: function (domID) {
if (!domID) {
debugger;
}
var
handler = this.getCacheHandler(domID);
if (handler) {
handler.resume();
}
},
unload: function (domID, keepDom) {
var handler = domID ? this.getCacheHandler(domID) : this.getCurrentHandler();
if (handler) {
handler.unload(keepDom);
this.removeCacheHandler(handler.domID);
}
},
open: function (options) {
if (options.status) {
app.domain.exports('page', options.content);
options.sections = options.page.split("#");
this.load(options);
} else if (options.errorMsg) {
app.alert(options.errorMsg, app.alert.ERROR);
}
},
getView: function () {
return this.tab;
},
on: function () {
this.event.on.apply(this.event, arguments);
},
off: function () {
this.event.off.apply(this.event, arguments);
},
trigger: function () {
this.event.trigger.apply(this.event, arguments);
}
};
Controller.View = View;
Controller.Model = Model;
return Controller;
});
|
const path = require('path');
const HtmlWebpackPlugin = require(`html-webpack-plugin`);
const CircularDependencyPlugin = require('circular-dependency-plugin');
module.exports = {
devtool: 'source-map',
entry: {
guide: './index.js'
},
context: path.resolve(__dirname, 'src'),
output: {
path: path.resolve(__dirname, '../docs'),
filename: 'bundle.js'
},
module: {
loaders: [{
test: /\.js$/,
loader: 'babel-loader',
exclude: /node_modules/
}, {
test: /\.scss$/,
loaders: ['style-loader/useable', 'css-loader', 'postcss-loader', 'sass-loader'],
exclude: /node_modules/
}, {
test: /\.css$/,
loaders: ['style-loader/useable', 'css-loader'],
exclude: /node_modules/
}, {
test: /\.(woff|woff2|ttf|eot|ico|png|gif|jpg|jpeg)(\?|$)/,
loader: 'file-loader',
}]
},
plugins: [
new HtmlWebpackPlugin({
template: 'index.html',
favicon: 'favicon.ico',
inject: 'body',
cache: true,
showErrors: true
}),
new CircularDependencyPlugin({
exclude: /node_modules/,
failOnError: true,
}),
],
devServer: {
contentBase: 'src-docs/build',
host: 'localhost',
port: 8030,
disableHostCheck: true
}
};
|
/*
* Kendo UI v2015.3.930 (http://www.telerik.com/kendo-ui)
* Copyright 2015 Telerik AD. All rights reserved.
*
* Kendo UI commercial licenses may be obtained at
* http://www.telerik.com/purchase/license-agreement/kendo-ui-complete
* If you do not own a commercial license, this file shall be governed by the trial license terms.
*/
!function(e,define){define([],e)}(function(){return function(e){var t=e.kendo||(e.kendo={cultures:{}});t.cultures["en-MY"]={name:"en-MY",numberFormat:{pattern:["-n"],decimals:2,",":",",".":".",groupSize:[3],percent:{pattern:["-n%","n%"],decimals:2,",":",",".":".",groupSize:[3],symbol:"%"},currency:{name:"Malaysian Ringgit",abbr:"MYR",pattern:["($n)","$n"],decimals:2,",":",",".":".",groupSize:[3],symbol:"RM"}},calendars:{standard:{days:{names:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],namesAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],namesShort:["S","M","T","W","T","F","S"]},months:{names:["January","February","March","April","May","June","July","August","September","October","November","December"],namesAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]},AM:["AM","am","AM"],PM:["PM","pm","PM"],patterns:{d:"d/M/yyyy",D:"dddd, d MMMM, yyyy",F:"dddd, d MMMM, yyyy h:mm:ss tt",g:"d/M/yyyy h:mm tt",G:"d/M/yyyy h:mm:ss tt",m:"d MMMM",M:"d MMMM",s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",t:"h:mm tt",T:"h:mm:ss tt",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'",y:"MMMM, yyyy",Y:"MMMM, yyyy"},"/":"/",":":":",firstDay:0}}}}(this),window.kendo},"function"==typeof define&&define.amd?define:function(e,t){t()});
|
import router from './router'
import store from './store'
import { Message } from 'element-ui'
import NProgress from 'nprogress' // progress bar
import 'nprogress/nprogress.css' // progress bar style
import { getToken } from '@/utils/auth' // get token from cookie
import getPageTitle from '@/utils/get-page-title'
NProgress.configure({ showSpinner: false }) // NProgress Configuration
const whiteList = ['/login'] // no redirect whitelist
router.beforeEach(async(to, from, next) => {
// start progress bar
NProgress.start()
// set page title
document.title = getPageTitle(to.meta.title)
// determine whether the user has logged in
const hasToken = getToken()
if (hasToken) {
if (to.path === '/login') {
// if is logged in, redirect to the home page
next({ path: '/' })
NProgress.done()
} else {
const hasGetUserInfo = store.getters.name
if (hasGetUserInfo) {
next()
} else {
try {
// get user info
await store.dispatch('user/getInfo')
// let toName = to.path.split('/').pop()
// toName = toName.charAt(0).toUpperCase() + toName.slice(1)
// console.log(store.state.user.routes)
// console.log(toName)
// if (store.state.user.routes.indexOf(toName) === -1) {
// next({ path: '/' })
// } else {
// next()
// }
next({ path: '/' })
} catch (error) {
// remove token and go to login page to re-login
await store.dispatch('user/resetToken')
Message.error(error || 'Has Error')
next(`/login?redirect=${to.path}`)
NProgress.done()
}
}
}
} else {
/* has no token*/
if (whiteList.indexOf(to.path) !== -1) {
// in the free login whitelist, go directly
next()
} else {
// other pages that do not have permission to access are redirected to the login page.
next(`/login?redirect=${to.path}`)
NProgress.done()
}
}
})
router.afterEach(() => {
// finish progress bar
NProgress.done()
})
|
// flow-typed signature: 7681eeaec1bbd20e82016db6dc323a54
// flow-typed version: <<STUB>>/ember-deep-set_vx.x.x/flow_v0.61.0
/**
* This is an autogenerated libdef stub for:
*
* 'ember-deep-set'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* https://github.com/flowtype/flow-typed
*/
declare module 'ember-deep-set' {
declare module.exports: any;
}
/**
* We include stubs for each file inside this npm package in case you need to
* require those files directly. Feel free to delete any files that aren't
* needed.
*/
declare module 'ember-deep-set/addon/index' {
declare module.exports: any;
}
declare module 'ember-deep-set/config/ember-try' {
declare module.exports: any;
}
declare module 'ember-deep-set/config/environment' {
declare module.exports: any;
}
declare module 'ember-deep-set/ember-cli-build' {
declare module.exports: any;
}
declare module 'ember-deep-set/testem' {
declare module.exports: any;
}
declare module 'ember-deep-set/tests/dummy/app/app' {
declare module.exports: any;
}
declare module 'ember-deep-set/tests/dummy/app/resolver' {
declare module.exports: any;
}
declare module 'ember-deep-set/tests/dummy/app/router' {
declare module.exports: any;
}
declare module 'ember-deep-set/tests/dummy/config/environment' {
declare module.exports: any;
}
declare module 'ember-deep-set/tests/helpers/destroy-app' {
declare module.exports: any;
}
declare module 'ember-deep-set/tests/helpers/get-path-from' {
declare module.exports: any;
}
declare module 'ember-deep-set/tests/helpers/module-for-acceptance' {
declare module.exports: any;
}
declare module 'ember-deep-set/tests/helpers/resolver' {
declare module.exports: any;
}
declare module 'ember-deep-set/tests/helpers/start-app' {
declare module.exports: any;
}
declare module 'ember-deep-set/tests/test-helper' {
declare module.exports: any;
}
declare module 'ember-deep-set/tests/unit/ember-deep-set-test' {
declare module.exports: any;
}
// Filename aliases
declare module 'ember-deep-set/addon/index.js' {
declare module.exports: $Exports<'ember-deep-set/addon/index'>;
}
declare module 'ember-deep-set/config/ember-try.js' {
declare module.exports: $Exports<'ember-deep-set/config/ember-try'>;
}
declare module 'ember-deep-set/config/environment.js' {
declare module.exports: $Exports<'ember-deep-set/config/environment'>;
}
declare module 'ember-deep-set/ember-cli-build.js' {
declare module.exports: $Exports<'ember-deep-set/ember-cli-build'>;
}
declare module 'ember-deep-set/index' {
declare module.exports: $Exports<'ember-deep-set'>;
}
declare module 'ember-deep-set/index.js' {
declare module.exports: $Exports<'ember-deep-set'>;
}
declare module 'ember-deep-set/testem.js' {
declare module.exports: $Exports<'ember-deep-set/testem'>;
}
declare module 'ember-deep-set/tests/dummy/app/app.js' {
declare module.exports: $Exports<'ember-deep-set/tests/dummy/app/app'>;
}
declare module 'ember-deep-set/tests/dummy/app/resolver.js' {
declare module.exports: $Exports<'ember-deep-set/tests/dummy/app/resolver'>;
}
declare module 'ember-deep-set/tests/dummy/app/router.js' {
declare module.exports: $Exports<'ember-deep-set/tests/dummy/app/router'>;
}
declare module 'ember-deep-set/tests/dummy/config/environment.js' {
declare module.exports: $Exports<'ember-deep-set/tests/dummy/config/environment'>;
}
declare module 'ember-deep-set/tests/helpers/destroy-app.js' {
declare module.exports: $Exports<'ember-deep-set/tests/helpers/destroy-app'>;
}
declare module 'ember-deep-set/tests/helpers/get-path-from.js' {
declare module.exports: $Exports<'ember-deep-set/tests/helpers/get-path-from'>;
}
declare module 'ember-deep-set/tests/helpers/module-for-acceptance.js' {
declare module.exports: $Exports<'ember-deep-set/tests/helpers/module-for-acceptance'>;
}
declare module 'ember-deep-set/tests/helpers/resolver.js' {
declare module.exports: $Exports<'ember-deep-set/tests/helpers/resolver'>;
}
declare module 'ember-deep-set/tests/helpers/start-app.js' {
declare module.exports: $Exports<'ember-deep-set/tests/helpers/start-app'>;
}
declare module 'ember-deep-set/tests/test-helper.js' {
declare module.exports: $Exports<'ember-deep-set/tests/test-helper'>;
}
declare module 'ember-deep-set/tests/unit/ember-deep-set-test.js' {
declare module.exports: $Exports<'ember-deep-set/tests/unit/ember-deep-set-test'>;
}
|
function testPrefixIncrement_0() {
var x = 1;
assertEquals(2, ++x);
}
function testPrefixIncrement_1() {
var x = 1;
//Using eval because of bug that causes a syntax error here
assertEquals(2, eval("++(x)"));
}
testPrefixIncrement_1.metadata = {
bug:"CARAKAN-174"
};
function testPrefixIncrement_2() {
var x = 1;
var y = ++x;
assertEquals(2, y);
}
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["tab3-tab3-module"], {
/***/
"./src/app/tab3/tab3.module.ts":
/*!*************************************!*\
!*** ./src/app/tab3/tab3.module.ts ***!
\*************************************/
/*! exports provided: Tab3PageModule */
/***/
function srcAppTab3Tab3ModuleTs(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "Tab3PageModule", function () {
return Tab3PageModule;
});
/* harmony import */
var _ionic_angular__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! @ionic/angular */
"./node_modules/@ionic/angular/__ivy_ngcc__/fesm2015/ionic-angular.js");
/* harmony import */
var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! @angular/router */
"./node_modules/@angular/router/__ivy_ngcc__/fesm2015/router.js");
/* harmony import */
var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
/*! @angular/core */
"./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
/* harmony import */
var _angular_common__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
/*! @angular/common */
"./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js");
/* harmony import */
var _angular_forms__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
/*! @angular/forms */
"./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js");
/* harmony import */
var _tab3_page__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
/*! ./tab3.page */
"./src/app/tab3/tab3.page.ts");
/* harmony import */
var _explore_container_explore_container_module__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
/*! ../explore-container/explore-container.module */
"./src/app/explore-container/explore-container.module.ts");
var Tab3PageModule = function Tab3PageModule() {
_classCallCheck(this, Tab3PageModule);
};
Tab3PageModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineNgModule"]({
type: Tab3PageModule
});
Tab3PageModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineInjector"]({
factory: function Tab3PageModule_Factory(t) {
return new (t || Tab3PageModule)();
},
imports: [[_ionic_angular__WEBPACK_IMPORTED_MODULE_0__["IonicModule"], _angular_common__WEBPACK_IMPORTED_MODULE_3__["CommonModule"], _angular_forms__WEBPACK_IMPORTED_MODULE_4__["FormsModule"], _explore_container_explore_container_module__WEBPACK_IMPORTED_MODULE_6__["ExploreContainerComponentModule"], _angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"].forChild([{
path: '',
component: _tab3_page__WEBPACK_IMPORTED_MODULE_5__["Tab3Page"]
}])]]
});
(function () {
(typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsetNgModuleScope"](Tab3PageModule, {
declarations: [_tab3_page__WEBPACK_IMPORTED_MODULE_5__["Tab3Page"]],
imports: [_ionic_angular__WEBPACK_IMPORTED_MODULE_0__["IonicModule"], _angular_common__WEBPACK_IMPORTED_MODULE_3__["CommonModule"], _angular_forms__WEBPACK_IMPORTED_MODULE_4__["FormsModule"], _explore_container_explore_container_module__WEBPACK_IMPORTED_MODULE_6__["ExploreContainerComponentModule"], _angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"]]
});
})();
/*@__PURE__*/
(function () {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵsetClassMetadata"](Tab3PageModule, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["NgModule"],
args: [{
imports: [_ionic_angular__WEBPACK_IMPORTED_MODULE_0__["IonicModule"], _angular_common__WEBPACK_IMPORTED_MODULE_3__["CommonModule"], _angular_forms__WEBPACK_IMPORTED_MODULE_4__["FormsModule"], _explore_container_explore_container_module__WEBPACK_IMPORTED_MODULE_6__["ExploreContainerComponentModule"], _angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"].forChild([{
path: '',
component: _tab3_page__WEBPACK_IMPORTED_MODULE_5__["Tab3Page"]
}])],
declarations: [_tab3_page__WEBPACK_IMPORTED_MODULE_5__["Tab3Page"]]
}]
}], null, null);
})();
/***/
},
/***/
"./src/app/tab3/tab3.page.ts":
/*!***********************************!*\
!*** ./src/app/tab3/tab3.page.ts ***!
\***********************************/
/*! exports provided: Tab3Page */
/***/
function srcAppTab3Tab3PageTs(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "Tab3Page", function () {
return Tab3Page;
});
/* harmony import */
var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! @angular/core */
"./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
/* harmony import */
var _ionic_angular__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! @ionic/angular */
"./node_modules/@ionic/angular/__ivy_ngcc__/fesm2015/ionic-angular.js");
/* harmony import */
var _explore_container_explore_container_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
/*! ../explore-container/explore-container.component */
"./src/app/explore-container/explore-container.component.ts");
var Tab3Page = function Tab3Page() {
_classCallCheck(this, Tab3Page);
};
Tab3Page.ɵfac = function Tab3Page_Factory(t) {
return new (t || Tab3Page)();
};
Tab3Page.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({
type: Tab3Page,
selectors: [["app-tab3"]],
decls: 10,
vars: 0,
consts: [["collapse", "condense"], ["size", "large"], ["name", "Tab 3 page"]],
template: function Tab3Page_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "ion-header");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "ion-toolbar");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "ion-title");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, " Tab 3 ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "ion-content");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "ion-header", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "ion-toolbar");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "ion-title", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8, "Tab 3");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](9, "app-explore-container", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
}
},
directives: [_ionic_angular__WEBPACK_IMPORTED_MODULE_1__["IonHeader"], _ionic_angular__WEBPACK_IMPORTED_MODULE_1__["IonToolbar"], _ionic_angular__WEBPACK_IMPORTED_MODULE_1__["IonTitle"], _ionic_angular__WEBPACK_IMPORTED_MODULE_1__["IonContent"], _explore_container_explore_container_component__WEBPACK_IMPORTED_MODULE_2__["ExploreContainerComponent"]],
styles: ["ion-content[_ngcontent-%COMP%] ion-toolbar[_ngcontent-%COMP%] {\n --background: translucent;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9Vc2Vycy9jaGF3L1dvcmtzcGFjZXMvd3d3L2ludGVyc2VjdGl2ZS9hcHBmbG93LXRlc3Qvc3JjL2FwcC90YWIzL3RhYjMucGFnZS5zY3NzIiwic3JjL2FwcC90YWIzL3RhYjMucGFnZS5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0UseUJBQUE7QUNDRiIsImZpbGUiOiJzcmMvYXBwL3RhYjMvdGFiMy5wYWdlLnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyJpb24tY29udGVudCBpb24tdG9vbGJhciB7XG4gIC0tYmFja2dyb3VuZDogdHJhbnNsdWNlbnQ7XG59XG4iLCJpb24tY29udGVudCBpb24tdG9vbGJhciB7XG4gIC0tYmFja2dyb3VuZDogdHJhbnNsdWNlbnQ7XG59Il19 */"]
});
/*@__PURE__*/
(function () {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](Tab3Page, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'app-tab3',
templateUrl: 'tab3.page.html',
styleUrls: ['tab3.page.scss']
}]
}], function () {
return [];
}, null);
})();
/***/
}
}]);
//# sourceMappingURL=tab3-tab3-module-es5.js.map
|
const CachedRequest = require("../");
const request = require("request");
const nock = require("nock");
const temp = require('temp').track();
const { Readable } = require("stream");
const zlib = require("zlib");
class MockedResponseStream extends Readable {
constructor(options, response) {
super(options);
this.response = response;
}
_read() {
this.push(this.response);
this.push(null);
}
}
describe("CachedRequest", () => {
function mock(method, times, response, headers) {
method = method.toLowerCase();
times = times || 1;
nock("http://ping.com")
.filteringPath(/.+/, "/")
[method]("/")
.times(times)
.reply(200, response, headers);
};
before(() => {
nock.disableNetConnect();
});
beforeEach(function () {
const cacheDir = temp.mkdirSync("cache");
this.cachedRequest = CachedRequest(request);
this.cachedRequest.setCacheDirectory(cacheDir);
nock.cleanAll();
});
afterEach((done) => {
temp.cleanup(done);
})
describe("caching", () => {
it("makes the request when the response isn't cached", function (done) {
mock("GET", 1, () => {
return new MockedResponseStream({}, "pong");
});
this.cachedRequest({uri: "http://ping.com/", ttl: 0}, (error, response, body) => {
if (error) return done(error);
expect(response.statusCode).to.equal(200);
expect(response.headers["x-from-cache"]).to.not.exist;
expect(body).to.equal("pong");
done();
});
});
it("makes the request when the response isn't cached using the get extension method", function (done) {
mock("GET", 1, () => {
return new MockedResponseStream({}, "pong");
});
this.cachedRequest.get({uri: "http://ping.com/", ttl: 0, method: 'GET'}, (error, response, body) => {
if (error) return done(error);
expect(response.statusCode).to.equal(200);
expect(response.headers["x-from-cache"]).to.not.exist;
expect(body).to.equal("pong");
done();
});
});
it("responds from the cache", function (done) {
const responseBody = "pong";
const options = {
uri: "http://ping.com/",
method: "GET",
ttl: 1000,
};
mock(options.method, 1, () => new MockedResponseStream({}, responseBody));
this.cachedRequest(options, (error, response, body) => {
if (error) return done(error);
expect(response.statusCode).to.equal(200);
expect(response.headers["x-from-cache"]).to.not.exist;
expect(body).to.equal(responseBody);
this.cachedRequest(options, (error, response, body) => {
if (error) return done(error);
expect(response.statusCode).to.equal(200);
expect(response.headers["x-from-cache"]).to.equal(1);
expect(body).to.equal(responseBody);
done();
});
});
});
it("parses JSON objects from the cache", function (done) {
const responseBody = {"a": 1, "b": {"c": 2}};
const options = {
uri: "http://ping.com/",
method: "POST",
json: true,
ttl: 5000
};
mock(options.method, 1, () => {
return new MockedResponseStream({}, JSON.stringify(responseBody));
});
this.cachedRequest(options, (error, response, body) => {
if (error) return done(error);
expect(response.statusCode).to.equal(200);
expect(response.headers["x-from-cache"]).to.not.exist;
expect(body).to.deep.equal(responseBody);
this.cachedRequest(options, (error, response, body) => {
if (error) return done(error);
expect(response.statusCode).to.equal(200);
expect(response.headers["x-from-cache"]).to.equal(1);
expect(body).to.deep.equal(responseBody);
done();
});
});
});
it("responds from the cache using get extension method", function (done) {
const responseBody = {"a": 1, "b": {"c": 2}};
const options = {
uri: "http://ping.com/",
method: "GET",
json: true,
ttl: 5000
};
mock(options.method, 1, () => {
return new MockedResponseStream({}, JSON.stringify(responseBody));
});
this.cachedRequest.get(options, (error, response, body) => {
if (error) return done(error);
expect(response.statusCode).to.equal(200);
expect(response.headers["x-from-cache"]).to.not.exist;
expect(body).to.deep.equal(responseBody);
this.cachedRequest.get(options, (error, response, body) => {
if (error) return done(error);
expect(response.statusCode).to.equal(200);
expect(response.headers["x-from-cache"]).to.equal(1);
expect(body).to.deep.equal(responseBody);
done();
});
});
});
it("responds the same from the cache if gzipped", function (done) {
const responseBody = 'foo';
const options = {
url: "http://ping.com/",
ttl: 5000,
gzip: true,
};
//Return gzip compressed response with valid content encoding header
mock("GET", 1, () => {
return new MockedResponseStream({}, responseBody).pipe(zlib.createGzip());
},
{
"Content-Encoding": "gzip"
});
this.cachedRequest(options, (error, response, body) => {
if (error) return done(error);
expect(response.statusCode).to.equal(200);
expect(response.headers["x-from-cache"]).to.not.exist;
expect(body).to.deep.equal(responseBody);
this.cachedRequest(options, (error, response, body) => {
if (error) return done(error);
expect(response.statusCode).to.equal(200);
expect(response.headers["x-from-cache"]).to.equal(1);
expect(body).to.deep.equal(responseBody);
done();
});
});
});
it("responds a buffer from the cache", function (done) {
const responseBody = 'foo';
const options = {
url: "http://ping.com/",
ttl: 5000,
encoding: null // body will be returned as a buffer
};
//Return gzip compressed response with valid content encoding header
mock("GET", 1, () => {
return new MockedResponseStream({}, responseBody).pipe(zlib.createGzip());
},
{
"Content-Encoding": "gzip"
});
this.cachedRequest(options, (error, response, body) => {
if (error) return done(error);
expect(response.statusCode).to.equal(200);
expect(response.headers["x-from-cache"]).to.not.exist;
zlib.gunzip(body, (error, buffer) => {
if (error) return done(error);
expect(buffer).to.be.an.instanceof(Buffer);
expect(buffer.toString()).to.deep.equal(responseBody);
this.cachedRequest(options, (error, response, body) => {
if (error) return done(error);
expect(response.statusCode).to.equal(200);
expect(response.headers["x-from-cache"]).to.equal(1);
zlib.gunzip(body, (error, buffer) => {
if (error) done(error);
expect(buffer).to.be.an.instanceof(Buffer);
expect(buffer.toString()).to.deep.equal(responseBody);
done();
});
});
});
});
});
describe('when cannot parse the cached response headers', () => {
after(function () {
if (this._parseHeaders) {
this.cachedRequest.setValue('parseHeaders', this._parseHeaders);
}
});
it("makes the request", function (done) {
const options = {uri: "http://ping.com/", ttl: 5000};
mock("GET", 2, () => {
return new MockedResponseStream({}, "pong");
}, {foo: 'bar'});
this.cachedRequest(options, (error, response, body) => {
if (error) return done(error);
expect(response.statusCode).to.equal(200);
expect(response.headers["x-from-cache"]).to.not.exist;
expect(body).to.equal("pong");
this._parseHeaders = this.cachedRequest.getValue('parseHeaders');
this.cachedRequest.setValue('parseHeaders', () => {
throw new Error('Cannot parse headers');
});
this.cachedRequest(options, (error, response, body) => {
if (error) return done(error);
expect(response.statusCode).to.equal(200);
expect(response.headers["x-from-cache"]).to.not.exist;
expect(body).to.equal("pong");
done();
});
});
});
});
});
describe("streaming", () => {
it("allows to use request as a stream", function (done) {
let responseBody = "";
for (let i = 0; i < 1000; i++) {
responseBody += "this is a long response body";
};
mock("GET", 1, () => {
return new MockedResponseStream({}, responseBody);
});
const options = {url: "http://ping.com/", ttl: 5000};
let body = "";
//Make fresh request
this.cachedRequest(options)
.on("data", (data) => {
body += data;
})
.on("end", () => {
expect(body).to.equal(responseBody);
body = "";
//Make cached request
this.cachedRequest(options)
.on("response", (response) => {
expect(response.statusCode).to.equal(200);
expect(response.headers["x-from-cache"]).to.equal(1);
response.on("data", (data) => {
body += data;
})
.on("end", () => {
expect(body).to.equal(responseBody);
done();
});
});
});
});
it("allows to use request with get extension method as a stream", function (done) {
let responseBody = "";
for (let i = 0; i < 1000; i++) {
responseBody += "this is a long response body";
};
mock("GET", 1, () => {
return new MockedResponseStream({}, responseBody);
});
const options = {url: "http://ping.com/", ttl: 5000};
let body = "";
//Make fresh request
this.cachedRequest.get(options)
.on("data", (data) => {
body += data;
})
.on("end", () => {
expect(body).to.equal(responseBody);
body = "";
//Make cached request
this.cachedRequest(options)
.on("response", (response) => {
expect(response.statusCode).to.equal(200);
expect(response.headers["x-from-cache"]).to.equal(1);
response.on("data", (data) => {
body += data;
})
.on("end", () => {
expect(body).to.equal(responseBody);
done();
});
});
});
});
it("handles gzip response", function (done) {
let responseBody = "";
for (let i = 0; i < 1000; i++) {
responseBody += "this is a long response body";
};
//Return gzip compressed response with valid content encoding header
mock("GET", 1, () => {
return new MockedResponseStream({}, responseBody).pipe(zlib.createGzip());
},
{
"Content-Encoding": "gzip"
});
const options = {url: "http://ping.com/", ttl: 5000};
let body = "";
//Make fresh request
this.cachedRequest(options)
.on("data", (data) => {
//Ignore first reply
})
.on("end", () => {
//Make cached request
this.cachedRequest(options)
.on("response", (response) => {
expect(response.statusCode).to.equal(200);
expect(response.headers["x-from-cache"]).to.equal(1);
expect(response.headers["content-encoding"]).to.equal("gzip");
const gunzip = zlib.createGunzip();
gunzip.on("data", (data) => {
body += data.toString();
});
gunzip.on("end", () => {
expect(body).to.equal(responseBody);
done();
});
gunzip.on('error', (error) => {
done(error);
});
response.pipe(gunzip);
});
});
});
});
});
|
import React from 'react';
import { StyledIcon } from '../StyledIcon';
export const Checkmark = props => (
<StyledIcon viewBox='0 0 24 24' a11yTitle='Checkmark' {...props}>
<path fill='none' stroke='#000' strokeWidth='2' d='m2 14 7 6L22 4' />
</StyledIcon>
);
|
'use strict';
/**
* Module dependencies.
*/
const util = require('util');
const createError = require('http-errors');
const httpAssert = require('http-assert');
const delegate = require('delegates');
const statuses = require('statuses');
const Cookies = require('cookies');
const COOKIES = Symbol('context#cookies');
/**
* Context prototype.
*/
const proto = module.exports = {
/**
* util.inspect() implementation, which
* just returns the JSON output.
*
* @return {Object}
* @api public
*/
inspect() {
if (this === proto) return this;
return this.toJSON();
},
/**
* Return JSON representation.
*
* Here we explicitly invoke .toJSON() on each
* object, as iteration will otherwise fail due
* to the getters and cause utilities such as
* clone() to fail.
*
* @return {Object}
* @api public
*/
toJSON() {
return {
request: this.request.toJSON(),
response: this.response.toJSON(),
app: this.app.toJSON(),
originalUrl: this.originalUrl,
req: '<original node req>',
res: '<original node res>',
socket: '<original node socket>'
};
},
/**
* Similar to .throw(), adds assertion.
*
* this.assert(this.user, 401, 'Please login!');
*
* See: https://github.com/jshttp/http-assert
*
* @param {Mixed} test
* @param {Number} status
* @param {String} message
* @api public
*/
assert: httpAssert,
/**
* Throw an error with `status` (default 500) and
* `msg`. Note that these are user-level
* errors, and the message may be exposed to the client.
*
* this.throw(403)
* this.throw(400, 'name required')
* this.throw('something exploded')
* this.throw(new Error('invalid'))
* this.throw(400, new Error('invalid'))
*
* See: https://github.com/jshttp/http-errors
*
* Note: `status` should only be passed as the first parameter.
*
* @param {String|Number|Error} err, msg or status
* @param {String|Number|Error} [err, msg or status]
* @param {Object} [props]
* @api public
*/
throw(...args) {
throw createError(...args);
},
/**
* Default error handling.
*
* @param {Error} err
* @api private
*/
onerror(err) {
// don't do anything if there is no error.
// this allows you to pass `this.onerror`
// to node-style callbacks.
// 没有错误则忽略, 不执行下面的逻辑
if (null == err) return;
// 将错误转化为 Error 实例
if (!(err instanceof Error)) err = new Error(util.format('non-error thrown: %j', err));
let headerSent = false;
if (this.headerSent || !this.writable) {
headerSent = err.headerSent = true;
}
// delegate
// 触发 koa 实例对象的 error 事件, application 上的 onerror 函数会执行
this.app.emit('error', err, this);
// nothing we can do here other
// than delegate to the app-level
// handler and log.
if (headerSent) {
return;
}
const { res } = this;
// first unset all headers
/* istanbul ignore else */
// 根据文档 res.getHeaderNames 函数是 7.7.0 版本后添加的, 这里为了兼容做了一个判断
// 如果出错那么之前中间件或者其他地方设置的 HTTP 头部就无效了, 应该清空设置
if (typeof res.getHeaderNames === 'function') {
res.getHeaderNames().forEach(name => res.removeHeader(name));
} else {
res._headers = {}; // Node < 7.7
}
// then set those specified
this.set(err.headers);
// force text/plain
this.type = 'text'; // 出错后响应类型为 text/plain
// ENOENT support 对 ENOENT 错误进行处理, ENOENT 的错误 message 是文件或者路径不存在, 所以状态码应该是 404
if ('ENOENT' == err.code) err.status = 404;
// default to 500 默认设置状态码为 500
if ('number' != typeof err.status || !statuses[err.status]) err.status = 500;
// respond
const code = statuses[err.status];
const msg = err.expose ? err.message : code;
// 设置响应状态码
this.status = err.status;
// 设置响应 body 长度
this.length = Buffer.byteLength(msg);
// 返回 message
res.end(msg);
},
get cookies() {
if (!this[COOKIES]) {
this[COOKIES] = new Cookies(this.req, this.res, {
keys: this.app.keys,
secure: this.request.secure
});
}
return this[COOKIES];
},
set cookies(_cookies) {
this[COOKIES] = _cookies;
}
};
/**
* Custom inspection implementation for newer Node.js versions.
*
* @return {Object}
* @api public
*/
/* istanbul ignore else */
if (util.inspect.custom) {
module.exports[util.inspect.custom] = module.exports.inspect;
}
/**
* Response delegation.
*/
delegate(proto, 'response')
.method('attachment')
.method('redirect')
.method('remove')
.method('vary')
.method('set')
.method('append')
.method('flushHeaders')
.access('status')
.access('message')
.access('body')
.access('length')
.access('type')
.access('lastModified')
.access('etag')
.getter('headerSent')
.getter('writable');
/**
* Request delegation.
*/
delegate(proto, 'request')
.method('acceptsLanguages')
.method('acceptsEncodings')
.method('acceptsCharsets')
.method('accepts')
.method('get')
.method('is')
.access('querystring')
.access('idempotent')
.access('socket')
.access('search')
.access('method')
.access('query')
.access('path')
.access('url')
.access('accept')
.getter('origin')
.getter('href')
.getter('subdomains')
.getter('protocol')
.getter('host')
.getter('hostname')
.getter('URL')
.getter('header')
.getter('headers')
.getter('secure')
.getter('stale')
.getter('fresh')
.getter('ips')
.getter('ip');
|
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[28],{
/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/pages/reader/live/go-live.vue?vue&type=script&lang=js&":
/*!*************************************************************************************************************************************************************************!*\
!*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/pages/reader/live/go-live.vue?vue&type=script&lang=js& ***!
\*************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vuex */ \"./node_modules/vuex/dist/vuex.esm.js\");\n/* harmony import */ var vue_star_rating__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vue-star-rating */ \"./node_modules/vue-star-rating/dist/VueStarRating.common.js\");\n/* harmony import */ var vue_star_rating__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(vue_star_rating__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../helpers */ \"./resources/js/helpers/index.js\");\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n\n\nvar moment = __webpack_require__(/*! moment */ \"./node_modules/moment/moment.js\");\n\nvar axios = __webpack_require__(/*! axios */ \"./node_modules/axios/index.js\");\n\nvar _ = __webpack_require__(/*! lodash */ \"./node_modules/lodash/lodash.js\");\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: 'VideoChat',\n components: {\n StarRating: vue_star_rating__WEBPACK_IMPORTED_MODULE_1___default.a\n },\n data: function data() {\n return {\n tc: {\n accessManager: null,\n messagingClient: null,\n channel: [],\n username: '',\n channelArray: [],\n currentChannel: null,\n generalChannel: null,\n activeChannelIndex: null,\n messagesArray: []\n },\n username: '',\n connected: false,\n selected: false,\n showMessages: false,\n moment: moment,\n message: null,\n userNotJoined: true,\n newChannel: '',\n showAddChannelInput: false,\n notification: false,\n notificationMsg: '',\n accessToken: '',\n roomSid: '',\n dataSid: '',\n name: this.$route.params.roomName,\n currentStatus: 'not-started',\n videoRoom: [],\n viewerCount: 0,\n showRateModal: false,\n ratingCount: 0,\n roomId: '',\n loggedUser: ''\n };\n },\n computed: Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapGetters\"])({\n user: 'auth/user'\n }),\n beforeMount: function beforeMount() {\n var _this$user,\n _this$user2,\n _this = this;\n\n console.log('this.user.username', this.user); // ASSIGNING USERNAME\n\n this.loggedUser = (_this$user = this.user) !== null && _this$user !== void 0 && _this$user.username ? (_this$user2 = this.user) === null || _this$user2 === void 0 ? void 0 : _this$user2.username : '';\n this.user ? this.connectClientWithUsername() : this.joinAsParticipant(); // CHECKING IF BROADCAST IS ONGOING\n\n axios.get('/api/video/' + this.name).then(function (response) {\n if (response.data.success) {\n _this.roomId = response.data.data.id;\n _this.dataSid = response.data.data.room_sid;\n _this.currentStatus = response.data.data.room_status; // vm.username !== vm.name ? this.joinAsParticipant() : this.joinAsParticipant();\n }\n })[\"catch\"](function (err) {\n console.log(err.response);\n }); // this.connectClientWithUsername();\n },\n methods: {\n // MODAL METHODS\n resetRatingForms: function resetRatingForms() {\n var vm = this;\n vm.ratingCount = 0;\n },\n handleSubmitRating: function handleSubmitRating() {\n var _this2 = this;\n\n var vm = this;\n\n if (!this.user) {\n Object(_helpers__WEBPACK_IMPORTED_MODULE_2__[\"swalOops\"])('You have to login for you to rate the host.');\n }\n\n var data = {\n 'reference_id': vm.roomId,\n 'category': 'LIVE',\n 'rate': vm.ratingCount\n };\n axios.post(\"/api/rating/save\", data).then(function (response) {\n Object(_helpers__WEBPACK_IMPORTED_MODULE_2__[\"swalSuccess\"])('Rating submitted!');\n\n _this2.resetRatingForms();\n });\n },\n // CHAT METHODS\n connectClientWithUsername: function connectClientWithUsername() {\n if (this.loggedUser) {\n this.tc.username = this.loggedUser;\n this.userNotJoined = false;\n axios.get('/api/video/view/' + this.name);\n this.fetchAccessToken(this.tc.username, this.connectMessagingClient);\n console.log('USERNAME', this.tc.username);\n } else {\n alert('NOT LOGGED IN');\n }\n },\n fetchAccessToken: function fetchAccessToken(username, handler) {\n axios.post('/api/video/chat', {\n identity: username,\n device: 'browser'\n }).then(function (response) {\n handler(response.data);\n })[\"catch\"](function (error) {\n console.log(error);\n });\n },\n connectMessagingClient: function connectMessagingClient(token) {\n // Initialize the Chat messaging client\n var vm = this;\n vm.tc.accessManager = new Twilio.AccessManager(token);\n Twilio.Chat.Client.create(token).then(function (client) {\n vm.tc.messagingClient = client;\n vm.updateConnectedUI();\n vm.loadChannelList(vm.joinGeneralChannel);\n vm.tc.messagingClient.on('channelAdded', _.throttle(vm.loadChannelList));\n vm.tc.messagingClient.on('channelRemoved', _.throttle(vm.loadChannelList));\n vm.tc.messagingClient.on('tokenExpired', vm.refreshToken);\n });\n },\n updateConnectedUI: function updateConnectedUI() {\n this.connected = true;\n },\n refreshToken: function refreshToken() {\n this.fetchAccessToken(this.tc.username, this.setNewToken);\n },\n setNewToken: function setNewToken(tokenResponse) {\n this.tc.accessManager.updateToken(tokenResponse.token);\n },\n loadChannelList: function loadChannelList(handler) {\n if (this.tc.messagingClient === undefined) {\n console.log('Client is not initialized');\n return;\n }\n\n this.getVisibleChannels(this.tc.messagingClient, handler);\n },\n getVisibleChannels: function getVisibleChannels(messagingClient, handler) {\n var vm = this;\n messagingClient.getPublicChannelDescriptors().then(function (channels) {\n vm.tc.channelArray = vm.sortChannelsByName(channels.items);\n vm.tc.channelArray.forEach(vm.addChannel);\n\n if (typeof handler === 'function') {\n handler();\n }\n });\n },\n sortChannelsByName: function sortChannelsByName(channels) {\n var vm = this;\n return channels.sort(function (a, b) {\n if (a.friendlyName === vm.name) {\n return -1;\n }\n\n if (b.friendlyName === vm.name) {\n return 1;\n }\n\n return a.friendlyName.localeCompare(b.friendlyName);\n });\n },\n joinGeneralChannel: function joinGeneralChannel() {\n var vm = this;\n console.log('Attempting to join \"general\" chat channel...', vm.name);\n\n if (vm.tc.generalChannel === null) {\n // If it doesn't exist, let's create it\n vm.tc.messagingClient.createChannel({\n uniqueName: vm.name,\n friendlyName: vm.name\n }).then(function (channel) {\n vm.tc.generalChannel = channel;\n vm.loadChannelList(vm.joinGeneralChannel);\n });\n } else {\n console.log('Found general channel:', vm.tc.generalChannel);\n vm.setupChannel(vm.tc.generalChannel);\n }\n },\n addChannel: function addChannel(channel) {\n var vm = this;\n\n if (channel.uniqueName === vm.name) {\n this.tc.generalChannel = channel;\n }\n },\n setupChannel: function setupChannel(channel) {\n var vm = this;\n return vm.leaveCurrentChannel().then(function () {\n return vm.initChannel(channel);\n }).then(function (_channel) {\n vm.tc.currentChannel = _channel;\n vm.loadMessages();\n return vm.joinChannel(_channel);\n }).then(vm.initChannelEvents);\n },\n leaveCurrentChannel: function leaveCurrentChannel() {\n var vm = this;\n\n if (this.tc.currentChannel) {\n return this.tc.currentChannel.leave().then(function (leftChannel) {\n console.log('left ' + leftChannel.friendlyName);\n leftChannel.removeListener('messageAdded', vm.addMessageToList);\n leftChannel.removeListener('typingStarted', vm.showTypingStarted);\n leftChannel.removeListener('typingEnded', vm.hideTypingStarted);\n leftChannel.removeListener('memberJoined', vm.notifyMemberJoined);\n leftChannel.removeListener('memberLeft', vm.notifyMemberLeft);\n });\n } else {\n console.log('resolving');\n return Promise.resolve();\n }\n },\n initChannel: function initChannel(channel) {\n console.log('Initialized channel ' + channel.friendlyName);\n return this.tc.messagingClient.getChannelBySid(channel.sid);\n },\n initChannelEvents: function initChannelEvents() {\n console.log(this.tc.currentChannel.friendlyName + ' ready.');\n this.tc.currentChannel.on('messageAdded', this.addMessageToList);\n this.tc.currentChannel.on('typingStarted', this.showTypingStarted);\n this.tc.currentChannel.on('typingEnded', this.hideTypingStarted);\n this.tc.currentChannel.on('memberJoined', this.notifyMemberJoined);\n this.tc.currentChannel.on('memberLeft', this.notifyMemberLeft); // $inputText.prop('disabled', false).focus();\n },\n showTypingStarted: function showTypingStarted(member) {\n console.log(member.identity + ' is typing...');\n this.notificationMsg = member.identity + ' is typing...';\n this.notification = true;\n },\n hideTypingStarted: function hideTypingStarted(member) {\n this.notificationMsg = '';\n this.notification = false;\n },\n notifyMemberJoined: function notifyMemberJoined(member) {\n console.log('joining');\n console.log(member.identity + ' joined the channel'); // notify(member.identity + ' joined the channel')\n },\n notifyMemberLeft: function notifyMemberLeft(member) {\n console.log('leaving');\n console.log(member);\n console.log(member.identity + ' left the channel'); // notify(member.identity + ' left the channel');\n },\n notify: function notify(message) {\n var row = $('<div>').addClass('col-md-12');\n row.loadTemplate('#member-notification-template', {\n status: message\n });\n this.tc.$messageList.append(row);\n },\n joinChannel: function joinChannel(_channel) {\n var vm = this;\n return _channel.join().then(function (joinedChannel) {\n console.log('Joined channel ' + joinedChannel.friendlyName); // vm.updateChannelUI(_channel);\n\n vm.tc.currentChannel = _channel;\n vm.loadMessages();\n return joinedChannel;\n })[\"catch\"](function (err) {\n console.warn('couldt join channel' + _channel.friendlyName + ' because ' + err); // alert(\"Couldn't join channel \" + _channel.friendlyName + ' because ' + err);\n });\n },\n // updateChannelUI(selectedChannel) {\n // let channelLists = this.$refs.channelList;\n // let activeChannelList = channelLists.filter(function(element) {\n // return element.dataset.sid === selectedChannel.sid;\n // });\n // activeChannelList = activeChannelList[0];\n // if (this.tc.currentChannelContainer === undefined && selectedChannel.friendlyName === vm.name) {\n // this.tc.currentChannelContainer = activeChannelList;\n // }\n // this.tc.currentChannelContainer.classList.remove('selected-channel');\n // this.tc.currentChannelContainer = activeChannelList;\n // this.tc.currentChannelContainer.classList.add('selected-channel');\n // },\n loadMessages: function loadMessages() {\n var vm = this;\n this.tc.currentChannel.getMessages(50).then(function (messages) {\n vm.showMessages = true;\n vm.tc.messagesArray = messages.items; // vm.userNotJoined = false\n\n messages.items.forEach(vm.addMessageToList);\n });\n },\n addMessageToList: function addMessageToList(message) {\n console.log(message);\n this.loadMessages();\n },\n handleInputTextKeypress: function handleInputTextKeypress() {\n this.tc.currentChannel.sendMessage(this.message);\n this.message = '';\n setTimeout(function () {\n this.loadMessages();\n }, 3000);\n },\n handleNewChannelInputKeypress: function handleNewChannelInputKeypress(event) {\n var vm = this;\n\n if (this.newChannel == '') {\n alert('Channel name cannot be empty');\n return;\n }\n\n this.tc.messagingClient.createChannel({\n friendlyName: this.newChannel\n }).then(function (channel) {\n console.log('Created channel');\n vm.loadChannelList(channel);\n }).then(this.hideAddChannelInput);\n this.newChannel = '';\n },\n selectChannel: function selectChannel(channel) {\n var channelSid = channel.sid;\n var selectedChannel = this.tc.channelArray.filter(function (channel) {\n return channel.sid === channelSid;\n })[0];\n\n if (selectedChannel === this.tc.currentChannel) {\n return;\n }\n\n this.setupChannel(selectedChannel);\n },\n hideAddChannelInput: function hideAddChannelInput() {\n this.showAddChannelInput = false;\n },\n createChannel: function createChannel() {\n this.showAddChannelInput = true;\n },\n deleteChannel: function deleteChannel() {\n // if (this.tc.currentChannel.sid === this.tc.generalChannel.sid) {\n // alert('You cannot delete the general channel');\n // return;\n // }\n this.tc.currentChannel[\"delete\"]().then(function (channel) {\n console.log('channel: ' + channel.friendlyName + ' deleted'); // setupChannel(this.tc.generalChannel);\n });\n },\n // VIDEO METHODS\n getVideoToken: function getVideoToken() {\n console.log('Video chat room loading...');\n var vm = this; // Request a new token\n\n axios.get(\"/api/video/access_token/\".concat(this.name)).then(function (response) {\n vm.accessToken = response.data;\n vm.currentStatus = 'ON_GOING';\n })[\"catch\"](function (error) {\n console.log(error);\n }).then(function () {\n vm.connectToRoom();\n });\n },\n joinAsParticipant: function joinAsParticipant() {\n console.log('Video chat room loading...');\n var vm = this;\n vm.tc.username = vm.name; // vm.fetchAccessToken(vm.name, vm.connectMessagingClient)\n\n console.log('USERNAME', vm.name); // Request a new token\n\n axios.get(\"/api/video/access_token/\".concat(vm.name)).then(function (response) {\n vm.accessToken = response.data;\n })[\"catch\"](function (error) {\n console.log(error);\n }).then(function () {\n vm.joinToRoom();\n });\n },\n connectToRoom: function connectToRoom() {\n var _this3 = this;\n\n var axios = __webpack_require__(/*! axios */ \"./node_modules/axios/index.js\");\n\n var _require = __webpack_require__(/*! twilio-video */ \"./node_modules/twilio-video/es5/index.js\"),\n connect = _require.connect,\n createLocalTracks = _require.createLocalTracks;\n\n connect(this.accessToken, {\n name: this.name\n }).then(function (room) {\n console.log(\"Successfully joined a Room: \".concat(room));\n console.log('Data::', room.sid);\n _this3.dataSid = room.sid;\n _this3.videoRoom = room;\n var request = {\n room_name: _this3.name,\n room_sid: room.sid,\n room_status: 'ON_GOING'\n };\n axios.post(\"/api/video/history/save\", request).then(function (response) {\n console.log(response);\n })[\"catch\"](function (err) {\n console.log(err);\n });\n var videoChatWindow = document.getElementById('my-video-chat-window');\n _this3.viewerCount = room.participants.size;\n var localTrack;\n createLocalTracks().then(function (track) {\n console.log(track);\n localTrack = track;\n track.forEach(function (media) {\n videoChatWindow.appendChild(media.attach());\n });\n });\n room.on('participantConnected', function (participant) {\n console.log(\"Participant \\\"\".concat(participant.identity, \"\\\" connected\"));\n _this3.viewerCount = room.participants.size; // participant.tracks.forEach(publication => {\n // if (publication.isSubscribed) {\n // const track = publication.track;\n // videoChatWindow.appendChild(track.attach());\n // }\n // });\n // participant.on('trackSubscribed', track => {\n // videoChatWindow.appendChild(track.attach());\n // });\n });\n room.on('disconnected', function (room) {\n // Detach the local media elements\n console.log('Host disconnected');\n console.log('localParticipant', room.localParticipant);\n console.log('videoChatWindow', videoChatWindow.childNodes[0]);\n _this3.viewerCount = room.participants.size;\n var child = videoChatWindow.lastElementChild;\n videoChatWindow.removeChild(child); // videoChatWindow.innerHTML =\"\";\n\n console.log('DC TRACKS', localTrack);\n localTrack.forEach(function (track) {\n track.stop();\n track.detach();\n });\n });\n room.on('participantDisconnected', function (room) {\n // Detach the local media elements\n console.log('Someone disconnected'); // this.viewerCount = this.viewerCount - 1\n\n _this3.viewerCount = room.participants.size;\n room.localParticipant.tracks.forEach(function (publication) {\n var attachedElements = publication.track.detach();\n attachedElements.forEach(function (element) {\n return element.remove();\n });\n });\n });\n }, function (error) {\n console.error(\"Unable to connect to Room: \".concat(error.message));\n Object(_helpers__WEBPACK_IMPORTED_MODULE_2__[\"swalOops\"])(\"Please make sure that your camera and microphone is connected, and have permissions\");\n\n _this3.stopBroadcasting();\n });\n },\n joinToRoom: function joinToRoom() {\n var _this4 = this;\n\n var _require2 = __webpack_require__(/*! twilio-video */ \"./node_modules/twilio-video/es5/index.js\"),\n connect = _require2.connect;\n\n connect(this.accessToken, {\n name: this.name,\n video: false,\n audio: false\n }).then(function (room) {\n console.log(\"Successfully joined a Room: \".concat(room));\n console.log('Data::', room.sid);\n _this4.dataSid = room.sid;\n var videoChatWindow = document.getElementById('my-video-chat-window');\n var localParticipant = room.localParticipant;\n console.log(\"Connected to the Room as LocalParticipant \\\"\".concat(localParticipant.identity, \"\\\"\"));\n room.participants.forEach(function (participant) {\n participant.tracks.forEach(function (publication) {\n if (publication.track) {\n videoChatWindow.appendChild(publication.track.attach());\n }\n });\n participant.on('trackSubscribed', function (track) {\n videoChatWindow.appendChild(track.attach());\n _this4.viewerCount = room.participants.size;\n });\n _this4.viewerCount = room.participants.size;\n });\n room.on('participantConnected', function (participant) {\n console.log('new');\n _this4.viewerCount = room.participants.size;\n console.log(\"Participant \\\"\".concat(participant.identity, \"\\\" connected\"));\n participant.tracks.forEach(function (publication) {\n if (publication.isSubscribed) {\n var track = publication.track;\n videoChatWindow.appendChild(track.attach());\n }\n });\n participant.on('trackSubscribed', function (track) {\n videoChatWindow.appendChild(track.attach());\n });\n });\n room.on('participantDisconnected', function (room) {\n // Detach the local media elements\n console.log('Someone disconnected');\n _this4.viewerCount = _this4.viewerCount - 1;\n room.participants.tracks.forEach(function (publication) {\n var attachedElements = publication.track.detach();\n attachedElements.forEach(function (element) {\n return element.remove();\n });\n });\n });\n }, function (error) {\n console.error(\"Unable to connect to Room: \".concat(error.message));\n });\n },\n stopBroadcasting: function stopBroadcasting() {\n var vm = this;\n vm.accessToken = '';\n vm.currentStatus = 'COMPLETED';\n vm.userNotJoined = true;\n vm.showMessages = false;\n vm.deleteChannel();\n vm.tc.accessManager = null;\n vm.tc.messagingClient = null;\n vm.tc.channel = [];\n vm.tc.channelArray = null;\n vm.tc.generalChannel = null;\n vm.tc.activeChannelIndex = null;\n vm.tc.messagesArray = [];\n var request = {\n room_name: vm.name,\n room_sid: vm.dataSid,\n room_status: 'COMPLETED'\n };\n axios.post(\"/api/video/history/save\", request).then(function (response) {\n console.log(response); // vm.currentStatus = 'COMPLETED'\n // vm.userNotJoined = true\n // vm.showMessages = false\n\n vm.videoRoom.disconnect(); // vm.deleteChannel()\n // vm.username = vm.user?.username ? vm.user?.username : ''\n // vm.tc.accessManager = null\n // vm.tc.messagingClient = null\n // vm.tc.channel = []\n // vm.tc.username = '';\n // vm.tc.channelArray = null\n // vm.tc.generalChannel = null\n // vm.tc.activeChannelIndex = null\n // vm.tc.messagesArray = []\n // list.removeChild(list.childNodes);\n // console.log(\"CONSOLE LIST\", list.childNodes);\n })[\"catch\"](function (err) {\n console.log(err);\n });\n }\n }\n});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vcmVzb3VyY2VzL2pzL3BhZ2VzL3JlYWRlci9saXZlL2dvLWxpdmUudnVlPzBlMzAiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBeUlBO0FBQ0E7QUFDQTs7QUFDQTs7QUFDQTs7QUFDQTs7QUFFQTtBQUNBLG1CQURBO0FBR0E7QUFDQTtBQURBLEdBSEE7QUFPQTtBQUNBO0FBQ0E7QUFDQSwyQkFEQTtBQUVBLDZCQUZBO0FBR0EsbUJBSEE7QUFJQSxvQkFKQTtBQUtBLHdCQUxBO0FBTUEsNEJBTkE7QUFPQSw0QkFQQTtBQVFBLGdDQVJBO0FBU0E7QUFUQSxPQURBO0FBWUEsa0JBWkE7QUFhQSxzQkFiQTtBQWNBLHFCQWRBO0FBZUEseUJBZkE7QUFnQkEsb0JBaEJBO0FBaUJBLG1CQWpCQTtBQWtCQSx5QkFsQkE7QUFtQkEsb0JBbkJBO0FBb0JBLGdDQXBCQTtBQXFCQSx5QkFyQkE7QUFzQkEseUJBdEJBO0FBdUJBLHFCQXZCQTtBQXdCQSxpQkF4QkE7QUF5QkEsaUJBekJBO0FBMEJBLHVDQTFCQTtBQTJCQSxrQ0EzQkE7QUE0QkEsbUJBNUJBO0FBNkJBLG9CQTdCQTtBQThCQSwwQkE5QkE7QUErQkEsb0JBL0JBO0FBZ0NBLGdCQWhDQTtBQWlDQTtBQWpDQTtBQW1DQSxHQTNDQTtBQTZDQTtBQUNBO0FBREEsSUE3Q0E7QUFpREE7QUFBQTtBQUFBO0FBQUE7O0FBQ0EsaURBREEsQ0FFQTs7QUFDQTtBQUNBLDRFQUpBLENBTUE7O0FBRUEseUNBQ0EsSUFEQSxDQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EsNkRBSEEsQ0FJQTtBQUNBO0FBQ0EsS0FSQSxXQVNBO0FBQ0E7QUFDQSxLQVhBLEVBUkEsQ0FvQkE7QUFDQSxHQXRFQTtBQXdFQTtBQUVBO0FBRUEsb0JBSkEsOEJBSUE7QUFDQTtBQUNBO0FBQ0EsS0FQQTtBQVNBLHNCQVRBLGdDQVNBO0FBQUE7O0FBQ0E7O0FBRUE7QUFDQTtBQUNBOztBQUVBO0FBQ0EsaUNBREE7QUFFQSwwQkFGQTtBQUdBO0FBSEE7QUFNQTtBQUNBOztBQUNBO0FBQ0EsT0FIQTtBQUlBLEtBMUJBO0FBNEJBO0FBQ0EsNkJBN0JBLHVDQTZCQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBLE9BUEEsTUFPQTtBQUNBO0FBQ0E7QUFDQSxLQXhDQTtBQXlDQSxvQkF6Q0EsNEJBeUNBLFFBekNBLEVBeUNBLE9BekNBLEVBeUNBO0FBQ0E7QUFDQSwwQkFEQTtBQUVBO0FBRkEsU0FJQSxJQUpBLENBSUE7QUFDQTtBQUNBLE9BTkEsV0FPQTtBQUNBO0FBQ0EsT0FUQTtBQVVBLEtBcERBO0FBcURBLDBCQXJEQSxrQ0FxREEsS0FyREEsRUFxREE7QUFDQTtBQUNBO0FBRUE7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBLE9BUEE7QUFRQSxLQW5FQTtBQW9FQSxxQkFwRUEsK0JBb0VBO0FBQ0E7QUFDQSxLQXRFQTtBQXVFQSxnQkF2RUEsMEJBdUVBO0FBQ0E7QUFDQSxLQXpFQTtBQTBFQSxlQTFFQSx1QkEwRUEsYUExRUEsRUEwRUE7QUFDQTtBQUNBLEtBNUVBO0FBNkVBLG1CQTdFQSwyQkE2RUEsT0E3RUEsRUE2RUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7QUFDQTtBQUNBLEtBbkZBO0FBb0ZBLHNCQXBGQSw4QkFvRkEsZUFwRkEsRUFvRkEsT0FwRkEsRUFvRkE7QUFDQTtBQUVBO0FBQ0E7QUFFQTs7QUFDQTtBQUNBO0FBQ0E7QUFDQSxPQVBBO0FBUUEsS0EvRkE7QUFnR0Esc0JBaEdBLDhCQWdHQSxRQWhHQSxFQWdHQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7O0FBQ0E7QUFDQTtBQUNBOztBQUNBO0FBQ0EsT0FSQTtBQVNBLEtBNUdBO0FBNkdBLHNCQTdHQSxnQ0E2R0E7QUFDQTtBQUNBOztBQUNBO0FBQ0E7QUFDQTtBQUNBLDZCQURBO0FBRUE7QUFGQSxXQUdBLElBSEEsQ0FHQTtBQUNBO0FBQ0E7QUFDQSxTQU5BO0FBT0EsT0FUQSxNQVNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EsS0E3SEE7QUE4SEEsY0E5SEEsc0JBOEhBLE9BOUhBLEVBOEhBO0FBQ0E7O0FBQ0E7QUFDQTtBQUNBO0FBQ0EsS0FuSUE7QUFvSUEsZ0JBcElBLHdCQW9JQSxPQXBJQSxFQW9JQTtBQUNBO0FBQ0Esc0NBQ0EsSUFEQSxDQUNBO0FBQ0E7QUFDQSxPQUhBLEVBSUEsSUFKQSxDQUlBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EsT0FSQSxFQVNBLElBVEEsQ0FTQSxvQkFUQTtBQVVBLEtBaEpBO0FBaUpBLHVCQWpKQSxpQ0FpSkE7QUFDQTs7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EsU0FQQTtBQVFBLE9BVEEsTUFTQTtBQUNBO0FBQ0E7QUFDQTtBQUNBLEtBaEtBO0FBaUtBLGVBaktBLHVCQWlLQSxPQWpLQSxFQWlLQTtBQUNBO0FBQ0E7QUFDQSxLQXBLQTtBQXFLQSxxQkFyS0EsK0JBcUtBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBLHFFQU5BLENBT0E7QUFDQSxLQTdLQTtBQThLQSxxQkE5S0EsNkJBOEtBLE1BOUtBLEVBOEtBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EsS0FsTEE7QUFtTEEscUJBbkxBLDZCQW1MQSxNQW5MQSxFQW1MQTtBQUNBO0FBQ0E7QUFDQSxLQXRMQTtBQXVMQSxzQkF2TEEsOEJBdUxBLE1BdkxBLEVBdUxBO0FBQ0E7QUFDQSwyREFGQSxDQUdBO0FBQ0EsS0EzTEE7QUE0TEEsb0JBNUxBLDRCQTRMQSxNQTVMQSxFQTRMQTtBQUNBO0FBQ0E7QUFDQSx5REFIQSxDQUlBO0FBQ0EsS0FqTUE7QUFrTUEsVUFsTUEsa0JBa01BLE9BbE1BLEVBa01BO0FBQ0E7QUFDQTtBQUNBO0FBREE7QUFHQTtBQUNBLEtBeE1BO0FBeU1BLGVBek1BLHVCQXlNQSxRQXpNQSxFQXlNQTtBQUNBO0FBQ0EsNkJBQ0EsSUFEQSxDQUNBO0FBQ0Esb0VBREEsQ0FFQTs7QUFDQTtBQUNBO0FBQ0E7QUFDQSxPQVBBLFdBUUE7QUFDQSx3RkFEQSxDQUVBO0FBQ0EsT0FYQTtBQVlBLEtBdk5BO0FBd05BO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBRUE7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EsZ0JBek9BLDBCQXlPQTtBQUNBO0FBQ0E7QUFDQTtBQUNBLDZDQUZBLENBR0E7O0FBQ0E7QUFDQSxPQUxBO0FBTUEsS0FqUEE7QUFrUEEsb0JBbFBBLDRCQWtQQSxPQWxQQSxFQWtQQTtBQUNBO0FBQ0E7QUFDQSxLQXJQQTtBQXNQQSwyQkF0UEEscUNBc1BBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSxPQUZBLEVBRUEsSUFGQTtBQUdBLEtBNVBBO0FBNlBBLGlDQTdQQSx5Q0E2UEEsS0E3UEEsRUE2UEE7QUFDQTs7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7QUFDQTtBQUNBO0FBREEsU0FFQSxJQUZBLENBRUE7QUFDQTtBQUNBO0FBQ0EsT0FMQSxFQUtBLElBTEEsQ0FLQSx3QkFMQTtBQU1BO0FBQ0EsS0ExUUE7QUEyUUEsaUJBM1FBLHlCQTJRQSxPQTNRQSxFQTJRQTtBQUNBO0FBQ0E7QUFDQTtBQUNBLE9BRkEsRUFFQSxDQUZBOztBQUdBO0FBQ0E7QUFDQTs7QUFDQTtBQUNBLEtBcFJBO0FBcVJBLHVCQXJSQSxpQ0FxUkE7QUFDQTtBQUNBLEtBdlJBO0FBd1JBLGlCQXhSQSwyQkF3UkE7QUFDQTtBQUNBLEtBMVJBO0FBMlJBLGlCQTNSQSwyQkEyUkE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EscUVBREEsQ0FFQTtBQUNBLE9BSEE7QUFJQSxLQXBTQTtBQXNTQTtBQUNBO0FBQ0E7QUFFQSxvQkFIQSxDQUtBOztBQUNBLDhEQUNBLElBREEsQ0FDQTtBQUNBO0FBQ0E7QUFDQSxPQUpBLFdBS0E7QUFDQTtBQUNBLE9BUEEsRUFRQSxJQVJBLENBUUE7QUFDQTtBQUNBLE9BVkE7QUFXQSxLQXhUQTtBQXlUQTtBQUNBO0FBRUE7QUFDQSwrQkFKQSxDQUtBOztBQUNBLHVDQU5BLENBUUE7O0FBQ0EsNERBQ0EsSUFEQSxDQUNBO0FBQ0E7QUFDQSxPQUhBLFdBSUE7QUFDQTtBQUNBLE9BTkEsRUFPQSxJQVBBLENBT0E7QUFDQTtBQUNBLE9BVEE7QUFVQSxLQTVVQTtBQTZVQTtBQUFBOztBQUNBOztBQUVBO0FBQUE7QUFBQTs7QUFFQTtBQUFBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0EsZ0NBREE7QUFFQSw0QkFGQTtBQUdBO0FBSEE7QUFNQSx1REFDQSxJQURBLENBQ0E7QUFDQTtBQUNBLFNBSEEsV0FJQTtBQUNBO0FBQ0EsU0FOQTtBQVFBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSxXQUZBO0FBR0EsU0FOQTtBQVFBO0FBQ0E7QUFDQSxzREFGQSxDQUlBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBLFNBZEE7QUFnQkE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSw2Q0FQQSxDQVFBOztBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EsV0FIQTtBQUlBLFNBZEE7QUFnQkE7QUFDQTtBQUNBLDhDQUZBLENBR0E7O0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUFBO0FBQ0EsV0FIQTtBQUlBLFNBVEE7QUFVQSxPQTFFQSxFQTBFQTtBQUNBO0FBQ0E7O0FBQ0E7QUFDQSxPQTlFQTtBQStFQSxLQWphQTtBQW1hQTtBQUFBOztBQUNBO0FBQUE7O0FBRUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBRUE7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFFQSxXQUxBO0FBT0E7QUFFQTtBQUNBO0FBRUEsV0FMQTtBQU9BO0FBQ0EsU0FoQkE7QUFrQkE7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EsV0FMQTtBQU9BO0FBQ0E7QUFDQSxXQUZBO0FBR0EsU0FmQTtBQWlCQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQUE7QUFDQSxXQUhBO0FBSUEsU0FSQTtBQVNBLE9BdERBLEVBc0RBO0FBQ0E7QUFDQSxPQXhEQTtBQXlEQSxLQS9kQTtBQWllQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFDQSwwQkFEQTtBQUVBLDRCQUZBO0FBR0E7QUFIQTtBQU1BLHFEQUNBLElBREEsQ0FDQTtBQUNBLDhCQURBLENBRUE7QUFDQTtBQUNBOztBQUNBLGtDQUxBLENBTUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0EsT0FwQkEsV0FxQkE7QUFDQTtBQUNBLE9BdkJBO0FBd0JBO0FBOWdCQTtBQXhFQSIsImZpbGUiOiIuL25vZGVfbW9kdWxlcy9iYWJlbC1sb2FkZXIvbGliL2luZGV4LmpzPyEuL25vZGVfbW9kdWxlcy92dWUtbG9hZGVyL2xpYi9pbmRleC5qcz8hLi9yZXNvdXJjZXMvanMvcGFnZXMvcmVhZGVyL2xpdmUvZ28tbGl2ZS52dWU/dnVlJnR5cGU9c2NyaXB0Jmxhbmc9anMmLmpzIiwic291cmNlc0NvbnRlbnQiOlsiPHRlbXBsYXRlPlxuICA8Y2FyZCBjbGFzcz1cInAtNiBtLTRcIj5cbiAgICA8ZGl2IGNsYXNzPVwicm93XCI+XG4gICAgICA8ZGl2IGNsYXNzPVwiY29sLWxnLTEyXCI+XG4gICAgICAgIDxoNCBjbGFzcz1cIm1iLTNcIj5cbiAgICAgICAgICBHbyBMaXZlXG4gICAgICAgIDwvaDQ+XG4gICAgICAgIDxwIGNsYXNzPVwibWItNVwiPlxuICAgICAgICAgIE5lY2Vzc2l0YXRpYnVzIGVpdXMgY29uc2VxdWF0dXIgZXggYWxpcXVpZCBmdWdhIGV1bSBxdWlkZW0uXG4gICAgICAgIDwvcD5cbiAgICAgIDwvZGl2PlxuICAgIDwvZGl2PlxuICAgIDxkaXYgY2xhc3M9XCJtYi0yXCI+XG4gICAgICA8ZGl2IGNsYXNzPVwidGV4dC1jZW50ZXJcIj5cbiAgICAgICAgPCEtLSBjaGF0IGJveCBzdGFydHMgaGVyZSAtLT5cbiAgICAgICAgPGRpdiBjbGFzcz1cImNvbnRhaW5lciBwYi0yXCI+XG4gICAgICAgICAgPGRpdiBjbGFzcz1cInJvdyBqdXN0aWZ5LWNvbnRlbnQtY2VudGVyXCI+XG4gICAgICAgICAgICA8ZGl2IGNsYXNzPVwiY29sLW1kLTEyXCI+XG4gICAgICAgICAgICAgIDxkaXYgY2xhc3M9XCJyb3dcIj5cbiAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPVwiY29sLW1kLTcgdmlkZW8tZGl2XCI+XG4gICAgICAgICAgICAgICAgICA8IS0tIHZpZGVvIGNoYXQgZGl2IGhlcmUgLS0+XG4gICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPVwidmlkZW8gZ3JpZCBncmlkLWZsb3ctcm93IGJnLWJsYWNrXCI+XG4gICAgICAgICAgICAgICAgICAgIDxkaXYgaWQ9XCJteS12aWRlby1jaGF0LXdpbmRvd1wiIC8+XG4gICAgICAgICAgICAgICAgICA8L2Rpdj5cbiAgICAgICAgICAgICAgICA8L2Rpdj5cbiAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPVwiY29sLW1kLTVcIj5cbiAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9XCJjYXJkXCI+XG4gICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9XCJ2aWV3ZXItaGVhZGVyIHB4LTIgcHktMVwiPlxuICAgICAgICAgICAgICAgICAgICAgIDxwIGNsYXNzPVwibS0wIHB4LTIgdmlld2Vyc1wiPlxuICAgICAgICAgICAgICAgICAgICAgICAgPHNwYW4gdi1zaG93PVwiY3VycmVudFN0YXR1cyA9PT0nT05fR09JTkcnXCI+IDxmYSBpY29uPVwiZXllXCIgLz4ge3sgdmlld2VyQ291bnQgfX0gPC9zcGFuPlxuICAgICAgICAgICAgICAgICAgICAgICAgPHNwYW4gdi1zaG93PVwiY3VycmVudFN0YXR1cyAhPT0nT05fR09JTkcnXCI+IE9mZmxpbmUgPC9zcGFuPlxuICAgICAgICAgICAgICAgICAgICAgIDwvcD5cbiAgICAgICAgICAgICAgICAgICAgPC9kaXY+XG4gICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9XCJjYXJkLWJvZHkgcC0wXCI+XG4gICAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz1cIm1lc3NhZ2UtYm94XCI+XG4gICAgICAgICAgICAgICAgICAgICAgICA8ZGl2IHYtc2hvdz1cInNob3dNZXNzYWdlc1wiIGNsYXNzPVwibWVzc2FnZS1kaXYgcC00XCI+XG4gICAgICAgICAgICAgICAgICAgICAgICAgIDxkaXYgdi1mb3I9XCJtZXNzYWdlIGluIHRjLm1lc3NhZ2VzQXJyYXlcIiA6a2V5PVwibWVzc2FnZS5pZFwiIGNsYXNzPVwicm93IG1zZ1wiPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxkaXYgdi1pZj1cIm1lc3NhZ2UuYXV0aG9yID09IHVzZXIudXNlcm5hbWVcIiBjbGFzcz1cIm1lZGlhLWJvZHlcIj5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxwIGNsYXNzPVwibWVzc2FnZS1ob3N0LWF1dGhvclwiPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB7eyBtZXNzYWdlLmF1dGhvciB9fVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9wPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPGJyPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHAgY2xhc3M9XCJtZXNzYWdlLWhvc3QtYm9keVwiPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB7eyBtZXNzYWdlLmJvZHkgfX1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvcD5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L2Rpdj5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8ZGl2IHYtZWxzZSBjbGFzcz1cIm1lZGlhLWJvZHlcIj5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxwIGNsYXNzPVwibWVzc2FnZS1hdXRob3JcIj5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAge3sgbWVzc2FnZS5hdXRob3IgfX1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvcD5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxicj5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxwIGNsYXNzPVwibWVzc2FnZS1ib2R5XCI+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHt7IG1lc3NhZ2UuYm9keSB9fVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9wPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvZGl2PlxuICAgICAgICAgICAgICAgICAgICAgICAgICA8L2Rpdj5cbiAgICAgICAgICAgICAgICAgICAgICAgIDwvZGl2PlxuICAgICAgICAgICAgICAgICAgICAgICAgPHAgdi1pZj1cIm5vdGlmaWNhdGlvblwiPlxuICAgICAgICAgICAgICAgICAgICAgICAgICB7eyBub3RpZmljYXRpb25Nc2cgfX1cbiAgICAgICAgICAgICAgICAgICAgICAgIDwvcD5cbiAgICAgICAgICAgICAgICAgICAgICA8L2Rpdj5cbiAgICAgICAgICAgICAgICAgICAgICA8IS0tIDxpbnB1dCB2LWlmPVwidXNlck5vdEpvaW5lZFwiIGNsYXNzPVwiZm9ybS1jb250cm9sXCIgdHlwZT1cInRleHRcIiB2LW1vZGVsPVwidXNlcm5hbWVcIiB2LW9uOmtleXVwLjEzPVwiY29ubmVjdENsaWVudFdpdGhVc2VybmFtZVwiIHBsYWNlaG9sZGVyPVwiWW91ciB1c2VybmFtZVwiPiAtLT5cbiAgICAgICAgICAgICAgICAgICAgICA8aW5wdXQgdi1pZj1cIiF1c2VyTm90Sm9pbmVkICYmIGN1cnJlbnRTdGF0dXMgPT09J09OX0dPSU5HJ1wiIHYtbW9kZWw9XCJtZXNzYWdlXCIgY2xhc3M9XCJmb3JtLWNvbnRyb2xcIiB0eXBlPVwidGV4dFwiIHBsYWNlaG9sZGVyPVwiWW91ciBtZXNzYWdlXCIgQGtleXVwLjEzPVwiaGFuZGxlSW5wdXRUZXh0S2V5cHJlc3NcIj5cbiAgICAgICAgICAgICAgICAgICAgPC9kaXY+XG4gICAgICAgICAgICAgICAgICA8L2Rpdj5cbiAgICAgICAgICAgICAgICA8L2Rpdj5cbiAgICAgICAgICAgICAgPC9kaXY+XG4gICAgICAgICAgICA8L2Rpdj5cbiAgICAgICAgICA8L2Rpdj5cbiAgICAgICAgPC9kaXY+XG4gICAgICAgIDwhLS0gPHN0YXItcmF0aW5nLz4gLS0+XG4gICAgICAgIDxkaXYgY2xhc3M9XCJtLTNcIj5cbiAgICAgICAgICA8Yi1idXR0b24gdi1pZj1cIiF1c2VyTm90Sm9pbmVkICYmIChsb2dnZWRVc2VyICE9PSB1c2VybmFtZSkgJiYgY3VycmVudFN0YXR1cyA9PT0nT05fR09JTkcnXCIgdmFyaWFudD1cInByaW1hcnlcIiBAY2xpY2s9XCIkYnZNb2RhbC5zaG93KCdyYXRlLW1vZGFsJyk7XCI+XG4gICAgICAgICAgICA8Yi1pY29uLXN0YXItZmlsbCAvPiBSYXRlIG1lXG4gICAgICAgICAgPC9iLWJ1dHRvbj5cbiAgICAgICAgPC9kaXY+XG4gICAgICAgIDxkaXY+XG4gICAgICAgICAgPGJ1dHRvblxuICAgICAgICAgICAgdi1zaG93PVwiY3VycmVudFN0YXR1cyAhPT0nT05fR09JTkcnICYmIChsb2dnZWRVc2VyID09PSB0Yy51c2VybmFtZSlcIlxuICAgICAgICAgICAgY2xhc3M9XCJicm9hZGNhc3QgYnRuIGJ0bi1kYW5nZXIgYnRuLWxnXCJcbiAgICAgICAgICAgIEBjbGljaz1cImdldFZpZGVvVG9rZW4oKTsgY29ubmVjdENsaWVudFdpdGhVc2VybmFtZSgpO1wiXG4gICAgICAgICAgPlxuICAgICAgICAgICAgU3RhcnQgQnJvYWRjYXN0aW5nXG4gICAgICAgICAgPC9idXR0b24+XG4gICAgICAgICAgPGJ1dHRvblxuICAgICAgICAgICAgdi1pZj1cImN1cnJlbnRTdGF0dXMgPT09J09OX0dPSU5HJyAmJiAhdXNlck5vdEpvaW5lZFwiXG4gICAgICAgICAgICBjbGFzcz1cImJ0biBidG4tZGFuZ2VyIGJ0bi1sZ1wiXG4gICAgICAgICAgICBAY2xpY2s9XCJzdG9wQnJvYWRjYXN0aW5nKCk7XCJcbiAgICAgICAgICA+XG4gICAgICAgICAgICBTdG9wIEJyb2FkY2FzdGluZ1xuICAgICAgICAgIDwvYnV0dG9uPlxuICAgICAgICA8L2Rpdj5cbiAgICAgIDwvZGl2PlxuICAgIDwvZGl2PlxuXG4gICAgPCEtLSBNT0RBTCBIRVJFIC0tPlxuICAgIDxiLW1vZGFsIGlkPVwicmF0ZS1tb2RhbFwiIGhpZGUtZm9vdGVyPlxuICAgICAgPHRlbXBsYXRlICNtb2RhbC10aXRsZT5cbiAgICAgICAgPHNwYW4gY2xhc3M9XCJoMyB0ZXh0LWNlbnRlclwiPiBSYXRlICA8c3Ryb25nPiB7eyB1c2VybmFtZSB9fSA8L3N0cm9uZz4gPC9zcGFuPlxuICAgICAgPC90ZW1wbGF0ZT5cbiAgICAgIDxkaXYgY2xhc3M9XCJkLWJsb2NrIHRleHQtY2VudGVyXCI+XG4gICAgICAgIDxiLXJvdyBjbGFzcz1cInAtMyB0ZXh0LWNlbnRlclwiPlxuICAgICAgICAgIDxiLWNvbD5cbiAgICAgICAgICAgIDxzdGFyLXJhdGluZyB2LW1vZGVsPVwicmF0aW5nQ291bnRcIiAvPlxuICAgICAgICAgIDwvYi1jb2w+XG4gICAgICAgIDwvYi1yb3c+XG4gICAgICAgIDxiLXJvdyBjbGFzcz1cInAtMlwiPlxuICAgICAgICAgIDxiLWNvbCBjbGFzcz1cImQtZmxleCBqdXN0aWZ5LWNvbnRlbnQtY2VudGVyXCI+XG4gICAgICAgICAgICA8Yi1idXR0b25cbiAgICAgICAgICAgICAgdmFyaWFudD1cImxpbmtcIlxuICAgICAgICAgICAgICBzaXplPVwic21cIlxuICAgICAgICAgICAgICBAY2xpY2s9XCIoKT0+e1xuICAgICAgICAgICAgICAgICRidk1vZGFsLmhpZGUoJ3JhdGUtbW9kYWwnKTtcbiAgICAgICAgICAgICAgfVwiXG4gICAgICAgICAgICA+XG4gICAgICAgICAgICAgIENhbmNlbFxuICAgICAgICAgICAgPC9iLWJ1dHRvbj5cblxuICAgICAgICAgICAgPGItYnV0dG9uXG4gICAgICAgICAgICAgIHZhcmlhbnQ9XCJkYW5nZXJcIlxuICAgICAgICAgICAgICBzaXplPVwic21cIlxuICAgICAgICAgICAgICBjbGFzcz1cImZsb2F0LXJpZ2h0XCJcbiAgICAgICAgICAgICAgQGNsaWNrPVwiKCk9PntcbiAgICAgICAgICAgICAgICBoYW5kbGVTdWJtaXRSYXRpbmcoKTtcbiAgICAgICAgICAgICAgICAkYnZNb2RhbC5oaWRlKCdyYXRlLW1vZGFsJyk7XG4gICAgICAgICAgICAgIH1cIlxuICAgICAgICAgICAgPlxuICAgICAgICAgICAgICBTdWJtaXRcbiAgICAgICAgICAgIDwvYi1idXR0b24+XG4gICAgICAgICAgPC9iLWNvbD5cbiAgICAgICAgPC9iLXJvdz5cbiAgICAgIDwvZGl2PlxuICAgIDwvYi1tb2RhbD5cbiAgPC9jYXJkPlxuPC90ZW1wbGF0ZT5cblxuPHNjcmlwdD5cbmltcG9ydCB7IG1hcEdldHRlcnMgfSBmcm9tICd2dWV4J1xuaW1wb3J0IFN0YXJSYXRpbmcgZnJvbSAndnVlLXN0YXItcmF0aW5nJ1xuaW1wb3J0IHsgc3dhbE9vcHMsIHN3YWxTdWNjZXNzIH0gZnJvbSAnLi4vLi4vLi4vaGVscGVycydcbnZhciBtb21lbnQgPSByZXF1aXJlKCdtb21lbnQnKVxuY29uc3QgYXhpb3MgPSByZXF1aXJlKCdheGlvcycpXG5jb25zdCBfID0gcmVxdWlyZSgnbG9kYXNoJylcblxuZXhwb3J0IGRlZmF1bHQge1xuICBuYW1lOiAnVmlkZW9DaGF0JyxcblxuICBjb21wb25lbnRzOiB7XG4gICAgU3RhclJhdGluZ1xuICB9LFxuXG4gIGRhdGE6IGZ1bmN0aW9uICgpIHtcbiAgICByZXR1cm4ge1xuICAgICAgdGM6IHtcbiAgICAgICAgYWNjZXNzTWFuYWdlcjogbnVsbCxcbiAgICAgICAgbWVzc2FnaW5nQ2xpZW50OiBudWxsLFxuICAgICAgICBjaGFubmVsOiBbXSxcbiAgICAgICAgdXNlcm5hbWU6ICcnLFxuICAgICAgICBjaGFubmVsQXJyYXk6IFtdLFxuICAgICAgICBjdXJyZW50Q2hhbm5lbDogbnVsbCxcbiAgICAgICAgZ2VuZXJhbENoYW5uZWw6IG51bGwsXG4gICAgICAgIGFjdGl2ZUNoYW5uZWxJbmRleDogbnVsbCxcbiAgICAgICAgbWVzc2FnZXNBcnJheTogW11cbiAgICAgIH0sXG4gICAgICB1c2VybmFtZTogJycsXG4gICAgICBjb25uZWN0ZWQ6IGZhbHNlLFxuICAgICAgc2VsZWN0ZWQ6IGZhbHNlLFxuICAgICAgc2hvd01lc3NhZ2VzOiBmYWxzZSxcbiAgICAgIG1vbWVudDogbW9tZW50LFxuICAgICAgbWVzc2FnZTogbnVsbCxcbiAgICAgIHVzZXJOb3RKb2luZWQ6IHRydWUsXG4gICAgICBuZXdDaGFubmVsOiAnJyxcbiAgICAgIHNob3dBZGRDaGFubmVsSW5wdXQ6IGZhbHNlLFxuICAgICAgbm90aWZpY2F0aW9uOiBmYWxzZSxcbiAgICAgIG5vdGlmaWNhdGlvbk1zZzogJycsXG4gICAgICBhY2Nlc3NUb2tlbjogJycsXG4gICAgICByb29tU2lkOiAnJyxcbiAgICAgIGRhdGFTaWQ6ICcnLFxuICAgICAgbmFtZTogdGhpcy4kcm91dGUucGFyYW1zLnJvb21OYW1lLFxuICAgICAgY3VycmVudFN0YXR1czogJ25vdC1zdGFydGVkJyxcbiAgICAgIHZpZGVvUm9vbTogW10sXG4gICAgICB2aWV3ZXJDb3VudDogMCxcbiAgICAgIHNob3dSYXRlTW9kYWw6IGZhbHNlLFxuICAgICAgcmF0aW5nQ291bnQ6IDAsXG4gICAgICByb29tSWQ6ICcnLFxuICAgICAgbG9nZ2VkVXNlcjogJydcbiAgICB9XG4gIH0sXG5cbiAgY29tcHV0ZWQ6IG1hcEdldHRlcnMoe1xuICAgIHVzZXI6ICdhdXRoL3VzZXInXG4gIH0pLFxuXG4gIGJlZm9yZU1vdW50OiBmdW5jdGlvbiAoKSB7XG4gICAgY29uc29sZS5sb2coJ3RoaXMudXNlci51c2VybmFtZScsIHRoaXMudXNlcilcbiAgICAvLyBBU1NJR05JTkcgVVNFUk5BTUVcbiAgICB0aGlzLmxvZ2dlZFVzZXIgPSB0aGlzLnVzZXI/LnVzZXJuYW1lID8gdGhpcy51c2VyPy51c2VybmFtZSA6ICcnXG4gICAgdGhpcy51c2VyID8gdGhpcy5jb25uZWN0Q2xpZW50V2l0aFVzZXJuYW1lKCkgOiB0aGlzLmpvaW5Bc1BhcnRpY2lwYW50KClcblxuICAgIC8vIENIRUNLSU5HIElGIEJST0FEQ0FTVCBJUyBPTkdPSU5HXG5cbiAgICBheGlvcy5nZXQoJy9hcGkvdmlkZW8vJyArIHRoaXMubmFtZSlcbiAgICAgIC50aGVuKChyZXNwb25zZSkgPT4ge1xuICAgICAgICBpZiAocmVzcG9uc2UuZGF0YS5zdWNjZXNzKSB7XG4gICAgICAgICAgdGhpcy5yb29tSWQgPSByZXNwb25zZS5kYXRhLmRhdGEuaWRcbiAgICAgICAgICB0aGlzLmRhdGFTaWQgPSByZXNwb25zZS5kYXRhLmRhdGEucm9vbV9zaWRcbiAgICAgICAgICB0aGlzLmN1cnJlbnRTdGF0dXMgPSByZXNwb25zZS5kYXRhLmRhdGEucm9vbV9zdGF0dXNcbiAgICAgICAgICAvLyB2bS51c2VybmFtZSAhPT0gdm0ubmFtZSA/IHRoaXMuam9pbkFzUGFydGljaXBhbnQoKSA6IHRoaXMuam9pbkFzUGFydGljaXBhbnQoKTtcbiAgICAgICAgfVxuICAgICAgfSlcbiAgICAgIC5jYXRjaCgoZXJyKSA9PiB7XG4gICAgICAgIGNvbnNvbGUubG9nKGVyci5yZXNwb25zZSlcbiAgICAgIH0pXG4gICAgICAvLyB0aGlzLmNvbm5lY3RDbGllbnRXaXRoVXNlcm5hbWUoKTtcbiAgfSxcblxuICBtZXRob2RzOiB7XG5cbiAgICAvLyBNT0RBTCBNRVRIT0RTXG5cbiAgICByZXNldFJhdGluZ0Zvcm1zICgpIHtcbiAgICAgIGxldCB2bSA9IHRoaXNcbiAgICAgIHZtLnJhdGluZ0NvdW50ID0gMFxuICAgIH0sXG5cbiAgICBoYW5kbGVTdWJtaXRSYXRpbmcgKCkge1xuICAgICAgbGV0IHZtID0gdGhpc1xuXG4gICAgICBpZiAoIXRoaXMudXNlcikge1xuICAgICAgICBzd2FsT29wcygnWW91IGhhdmUgdG8gbG9naW4gZm9yIHlvdSB0byByYXRlIHRoZSBob3N0LicpXG4gICAgICB9XG5cbiAgICAgIGxldCBkYXRhID0ge1xuICAgICAgICAncmVmZXJlbmNlX2lkJzogdm0ucm9vbUlkLFxuICAgICAgICAnY2F0ZWdvcnknOiAnTElWRScsXG4gICAgICAgICdyYXRlJzogdm0ucmF0aW5nQ291bnRcbiAgICAgIH1cblxuICAgICAgYXhpb3MucG9zdChgL2FwaS9yYXRpbmcvc2F2ZWAsIGRhdGEpLnRoZW4oKHJlc3BvbnNlKSA9PiB7XG4gICAgICAgIHN3YWxTdWNjZXNzKCdSYXRpbmcgc3VibWl0dGVkIScpXG4gICAgICAgIHRoaXMucmVzZXRSYXRpbmdGb3JtcygpXG4gICAgICB9KVxuICAgIH0sXG5cbiAgICAvLyBDSEFUIE1FVEhPRFNcbiAgICBjb25uZWN0Q2xpZW50V2l0aFVzZXJuYW1lICgpIHtcbiAgICAgIGlmICh0aGlzLmxvZ2dlZFVzZXIpIHtcbiAgICAgICAgdGhpcy50Yy51c2VybmFtZSA9IHRoaXMubG9nZ2VkVXNlclxuICAgICAgICB0aGlzLnVzZXJOb3RKb2luZWQgPSBmYWxzZVxuICAgICAgICBheGlvcy5nZXQoJy9hcGkvdmlkZW8vdmlldy8nICsgdGhpcy5uYW1lKVxuXG4gICAgICAgIHRoaXMuZmV0Y2hBY2Nlc3NUb2tlbih0aGlzLnRjLnVzZXJuYW1lLCB0aGlzLmNvbm5lY3RNZXNzYWdpbmdDbGllbnQpXG4gICAgICAgIGNvbnNvbGUubG9nKCdVU0VSTkFNRScsIHRoaXMudGMudXNlcm5hbWUpXG4gICAgICB9IGVsc2Uge1xuICAgICAgICBhbGVydCgnTk9UIExPR0dFRCBJTicpXG4gICAgICB9XG4gICAgfSxcbiAgICBmZXRjaEFjY2Vzc1Rva2VuICh1c2VybmFtZSwgaGFuZGxlcikge1xuICAgICAgYXhpb3MucG9zdCgnL2FwaS92aWRlby9jaGF0Jywge1xuICAgICAgICBpZGVudGl0eTogdXNlcm5hbWUsXG4gICAgICAgIGRldmljZTogJ2Jyb3dzZXInXG4gICAgICB9KVxuICAgICAgICAudGhlbihmdW5jdGlvbiAocmVzcG9uc2UpIHtcbiAgICAgICAgICBoYW5kbGVyKHJlc3BvbnNlLmRhdGEpXG4gICAgICAgIH0pXG4gICAgICAgIC5jYXRjaChmdW5jdGlvbiAoZXJyb3IpIHtcbiAgICAgICAgICBjb25zb2xlLmxvZyhlcnJvcilcbiAgICAgICAgfSlcbiAgICB9LFxuICAgIGNvbm5lY3RNZXNzYWdpbmdDbGllbnQgKHRva2VuKSB7XG4gICAgICAvLyBJbml0aWFsaXplIHRoZSBDaGF0IG1lc3NhZ2luZyBjbGllbnRcbiAgICAgIGxldCB2bSA9IHRoaXNcblxuICAgICAgdm0udGMuYWNjZXNzTWFuYWdlciA9IG5ldyBUd2lsaW8uQWNjZXNzTWFuYWdlcih0b2tlbilcblxuICAgICAgVHdpbGlvLkNoYXQuQ2xpZW50LmNyZWF0ZSh0b2tlbikudGhlbihmdW5jdGlvbiAoY2xpZW50KSB7XG4gICAgICAgIHZtLnRjLm1lc3NhZ2luZ0NsaWVudCA9IGNsaWVudFxuICAgICAgICB2bS51cGRhdGVDb25uZWN0ZWRVSSgpXG4gICAgICAgIHZtLmxvYWRDaGFubmVsTGlzdCh2bS5qb2luR2VuZXJhbENoYW5uZWwpXG4gICAgICAgIHZtLnRjLm1lc3NhZ2luZ0NsaWVudC5vbignY2hhbm5lbEFkZGVkJywgXy50aHJvdHRsZSh2bS5sb2FkQ2hhbm5lbExpc3QpKVxuICAgICAgICB2bS50Yy5tZXNzYWdpbmdDbGllbnQub24oJ2NoYW5uZWxSZW1vdmVkJywgXy50aHJvdHRsZSh2bS5sb2FkQ2hhbm5lbExpc3QpKVxuICAgICAgICB2bS50Yy5tZXNzYWdpbmdDbGllbnQub24oJ3Rva2VuRXhwaXJlZCcsIHZtLnJlZnJlc2hUb2tlbilcbiAgICAgIH0pXG4gICAgfSxcbiAgICB1cGRhdGVDb25uZWN0ZWRVSSAoKSB7XG4gICAgICB0aGlzLmNvbm5lY3RlZCA9IHRydWVcbiAgICB9LFxuICAgIHJlZnJlc2hUb2tlbiAoKSB7XG4gICAgICB0aGlzLmZldGNoQWNjZXNzVG9rZW4odGhpcy50Yy51c2VybmFtZSwgdGhpcy5zZXROZXdUb2tlbilcbiAgICB9LFxuICAgIHNldE5ld1Rva2VuICh0b2tlblJlc3BvbnNlKSB7XG4gICAgICB0aGlzLnRjLmFjY2Vzc01hbmFnZXIudXBkYXRlVG9rZW4odG9rZW5SZXNwb25zZS50b2tlbilcbiAgICB9LFxuICAgIGxvYWRDaGFubmVsTGlzdCAoaGFuZGxlcikge1xuICAgICAgaWYgKHRoaXMudGMubWVzc2FnaW5nQ2xpZW50ID09PSB1bmRlZmluZWQpIHtcbiAgICAgICAgY29uc29sZS5sb2coJ0NsaWVudCBpcyBub3QgaW5pdGlhbGl6ZWQnKVxuICAgICAgICByZXR1cm5cbiAgICAgIH1cbiAgICAgIHRoaXMuZ2V0VmlzaWJsZUNoYW5uZWxzKHRoaXMudGMubWVzc2FnaW5nQ2xpZW50LCBoYW5kbGVyKVxuICAgIH0sXG4gICAgZ2V0VmlzaWJsZUNoYW5uZWxzIChtZXNzYWdpbmdDbGllbnQsIGhhbmRsZXIpIHtcbiAgICAgIGxldCB2bSA9IHRoaXNcblxuICAgICAgbWVzc2FnaW5nQ2xpZW50LmdldFB1YmxpY0NoYW5uZWxEZXNjcmlwdG9ycygpLnRoZW4oZnVuY3Rpb24gKGNoYW5uZWxzKSB7XG4gICAgICAgIHZtLnRjLmNoYW5uZWxBcnJheSA9IHZtLnNvcnRDaGFubmVsc0J5TmFtZShjaGFubmVscy5pdGVtcylcblxuICAgICAgICB2bS50Yy5jaGFubmVsQXJyYXkuZm9yRWFjaCh2bS5hZGRDaGFubmVsKVxuICAgICAgICBpZiAodHlwZW9mIGhhbmRsZXIgPT09ICdmdW5jdGlvbicpIHtcbiAgICAgICAgICBoYW5kbGVyKClcbiAgICAgICAgfVxuICAgICAgfSlcbiAgICB9LFxuICAgIHNvcnRDaGFubmVsc0J5TmFtZSAoY2hhbm5lbHMpIHtcbiAgICAgIGxldCB2bSA9IHRoaXNcblxuICAgICAgcmV0dXJuIGNoYW5uZWxzLnNvcnQoZnVuY3Rpb24gKGEsIGIpIHtcbiAgICAgICAgaWYgKGEuZnJpZW5kbHlOYW1lID09PSB2bS5uYW1lKSB7XG4gICAgICAgICAgcmV0dXJuIC0xXG4gICAgICAgIH1cbiAgICAgICAgaWYgKGIuZnJpZW5kbHlOYW1lID09PSB2bS5uYW1lKSB7XG4gICAgICAgICAgcmV0dXJuIDFcbiAgICAgICAgfVxuICAgICAgICByZXR1cm4gYS5mcmllbmRseU5hbWUubG9jYWxlQ29tcGFyZShiLmZyaWVuZGx5TmFtZSlcbiAgICAgIH0pXG4gICAgfSxcbiAgICBqb2luR2VuZXJhbENoYW5uZWwgKCkge1xuICAgICAgbGV0IHZtID0gdGhpc1xuICAgICAgY29uc29sZS5sb2coJ0F0dGVtcHRpbmcgdG8gam9pbiBcImdlbmVyYWxcIiBjaGF0IGNoYW5uZWwuLi4nLCB2bS5uYW1lKVxuICAgICAgaWYgKHZtLnRjLmdlbmVyYWxDaGFubmVsID09PSBudWxsKSB7XG4gICAgICAgIC8vIElmIGl0IGRvZXNuJ3QgZXhpc3QsIGxldCdzIGNyZWF0ZSBpdFxuICAgICAgICB2bS50Yy5tZXNzYWdpbmdDbGllbnQuY3JlYXRlQ2hhbm5lbCh7XG4gICAgICAgICAgdW5pcXVlTmFtZTogdm0ubmFtZSxcbiAgICAgICAgICBmcmllbmRseU5hbWU6IHZtLm5hbWVcbiAgICAgICAgfSkudGhlbihmdW5jdGlvbiAoY2hhbm5lbCkge1xuICAgICAgICAgIHZtLnRjLmdlbmVyYWxDaGFubmVsID0gY2hhbm5lbFxuICAgICAgICAgIHZtLmxvYWRDaGFubmVsTGlzdCh2bS5qb2luR2VuZXJhbENoYW5uZWwpXG4gICAgICAgIH0pXG4gICAgICB9IGVsc2Uge1xuICAgICAgICBjb25zb2xlLmxvZygnRm91bmQgZ2VuZXJhbCBjaGFubmVsOicsIHZtLnRjLmdlbmVyYWxDaGFubmVsKVxuICAgICAgICB2bS5zZXR1cENoYW5uZWwodm0udGMuZ2VuZXJhbENoYW5uZWwpXG4gICAgICB9XG4gICAgfSxcbiAgICBhZGRDaGFubmVsIChjaGFubmVsKSB7XG4gICAgICBsZXQgdm0gPSB0aGlzXG4gICAgICBpZiAoY2hhbm5lbC51bmlxdWVOYW1lID09PSB2bS5uYW1lKSB7XG4gICAgICAgIHRoaXMudGMuZ2VuZXJhbENoYW5uZWwgPSBjaGFubmVsXG4gICAgICB9XG4gICAgfSxcbiAgICBzZXR1cENoYW5uZWwgKGNoYW5uZWwpIHtcbiAgICAgIGxldCB2bSA9IHRoaXNcbiAgICAgIHJldHVybiB2bS5sZWF2ZUN1cnJlbnRDaGFubmVsKClcbiAgICAgICAgLnRoZW4oZnVuY3Rpb24gKCkge1xuICAgICAgICAgIHJldHVybiB2bS5pbml0Q2hhbm5lbChjaGFubmVsKVxuICAgICAgICB9KVxuICAgICAgICAudGhlbihmdW5jdGlvbiAoX2NoYW5uZWwpIHtcbiAgICAgICAgICB2bS50Yy5jdXJyZW50Q2hhbm5lbCA9IF9jaGFubmVsXG4gICAgICAgICAgdm0ubG9hZE1lc3NhZ2VzKClcbiAgICAgICAgICByZXR1cm4gdm0uam9pbkNoYW5uZWwoX2NoYW5uZWwpXG4gICAgICAgIH0pXG4gICAgICAgIC50aGVuKHZtLmluaXRDaGFubmVsRXZlbnRzKVxuICAgIH0sXG4gICAgbGVhdmVDdXJyZW50Q2hhbm5lbCAoKSB7XG4gICAgICBsZXQgdm0gPSB0aGlzXG4gICAgICBpZiAodGhpcy50Yy5jdXJyZW50Q2hhbm5lbCkge1xuICAgICAgICByZXR1cm4gdGhpcy50Yy5jdXJyZW50Q2hhbm5lbC5sZWF2ZSgpLnRoZW4oZnVuY3Rpb24gKGxlZnRDaGFubmVsKSB7XG4gICAgICAgICAgY29uc29sZS5sb2coJ2xlZnQgJyArIGxlZnRDaGFubmVsLmZyaWVuZGx5TmFtZSlcbiAgICAgICAgICBsZWZ0Q2hhbm5lbC5yZW1vdmVMaXN0ZW5lcignbWVzc2FnZUFkZGVkJywgdm0uYWRkTWVzc2FnZVRvTGlzdClcbiAgICAgICAgICBsZWZ0Q2hhbm5lbC5yZW1vdmVMaXN0ZW5lcigndHlwaW5nU3RhcnRlZCcsIHZtLnNob3dUeXBpbmdTdGFydGVkKVxuICAgICAgICAgIGxlZnRDaGFubmVsLnJlbW92ZUxpc3RlbmVyKCd0eXBpbmdFbmRlZCcsIHZtLmhpZGVUeXBpbmdTdGFydGVkKVxuICAgICAgICAgIGxlZnRDaGFubmVsLnJlbW92ZUxpc3RlbmVyKCdtZW1iZXJKb2luZWQnLCB2bS5ub3RpZnlNZW1iZXJKb2luZWQpXG4gICAgICAgICAgbGVmdENoYW5uZWwucmVtb3ZlTGlzdGVuZXIoJ21lbWJlckxlZnQnLCB2bS5ub3RpZnlNZW1iZXJMZWZ0KVxuICAgICAgICB9KVxuICAgICAgfSBlbHNlIHtcbiAgICAgICAgY29uc29sZS5sb2coJ3Jlc29sdmluZycpXG4gICAgICAgIHJldHVybiBQcm9taXNlLnJlc29sdmUoKVxuICAgICAgfVxuICAgIH0sXG4gICAgaW5pdENoYW5uZWwgKGNoYW5uZWwpIHtcbiAgICAgIGNvbnNvbGUubG9nKCdJbml0aWFsaXplZCBjaGFubmVsICcgKyBjaGFubmVsLmZyaWVuZGx5TmFtZSlcbiAgICAgIHJldHVybiB0aGlzLnRjLm1lc3NhZ2luZ0NsaWVudC5nZXRDaGFubmVsQnlTaWQoY2hhbm5lbC5zaWQpXG4gICAgfSxcbiAgICBpbml0Q2hhbm5lbEV2ZW50cyAoKSB7XG4gICAgICBjb25zb2xlLmxvZyh0aGlzLnRjLmN1cnJlbnRDaGFubmVsLmZyaWVuZGx5TmFtZSArICcgcmVhZHkuJylcbiAgICAgIHRoaXMudGMuY3VycmVudENoYW5uZWwub24oJ21lc3NhZ2VBZGRlZCcsIHRoaXMuYWRkTWVzc2FnZVRvTGlzdClcbiAgICAgIHRoaXMudGMuY3VycmVudENoYW5uZWwub24oJ3R5cGluZ1N0YXJ0ZWQnLCB0aGlzLnNob3dUeXBpbmdTdGFydGVkKVxuICAgICAgdGhpcy50Yy5jdXJyZW50Q2hhbm5lbC5vbigndHlwaW5nRW5kZWQnLCB0aGlzLmhpZGVUeXBpbmdTdGFydGVkKVxuICAgICAgdGhpcy50Yy5jdXJyZW50Q2hhbm5lbC5vbignbWVtYmVySm9pbmVkJywgdGhpcy5ub3RpZnlNZW1iZXJKb2luZWQpXG4gICAgICB0aGlzLnRjLmN1cnJlbnRDaGFubmVsLm9uKCdtZW1iZXJMZWZ0JywgdGhpcy5ub3RpZnlNZW1iZXJMZWZ0KVxuICAgICAgLy8gJGlucHV0VGV4dC5wcm9wKCdkaXNhYmxlZCcsIGZhbHNlKS5mb2N1cygpO1xuICAgIH0sXG4gICAgc2hvd1R5cGluZ1N0YXJ0ZWQgKG1lbWJlcikge1xuICAgICAgY29uc29sZS5sb2cobWVtYmVyLmlkZW50aXR5ICsgJyBpcyB0eXBpbmcuLi4nKVxuICAgICAgdGhpcy5ub3RpZmljYXRpb25Nc2cgPSBtZW1iZXIuaWRlbnRpdHkgKyAnIGlzIHR5cGluZy4uLidcbiAgICAgIHRoaXMubm90aWZpY2F0aW9uID0gdHJ1ZVxuICAgIH0sXG4gICAgaGlkZVR5cGluZ1N0YXJ0ZWQgKG1lbWJlcikge1xuICAgICAgdGhpcy5ub3RpZmljYXRpb25Nc2cgPSAnJ1xuICAgICAgdGhpcy5ub3RpZmljYXRpb24gPSBmYWxzZVxuICAgIH0sXG4gICAgbm90aWZ5TWVtYmVySm9pbmVkIChtZW1iZXIpIHtcbiAgICAgIGNvbnNvbGUubG9nKCdqb2luaW5nJylcbiAgICAgIGNvbnNvbGUubG9nKG1lbWJlci5pZGVudGl0eSArICcgam9pbmVkIHRoZSBjaGFubmVsJylcbiAgICAgIC8vIG5vdGlmeShtZW1iZXIuaWRlbnRpdHkgKyAnIGpvaW5lZCB0aGUgY2hhbm5lbCcpXG4gICAgfSxcbiAgICBub3RpZnlNZW1iZXJMZWZ0IChtZW1iZXIpIHtcbiAgICAgIGNvbnNvbGUubG9nKCdsZWF2aW5nJylcbiAgICAgIGNvbnNvbGUubG9nKG1lbWJlcilcbiAgICAgIGNvbnNvbGUubG9nKG1lbWJlci5pZGVudGl0eSArICcgbGVmdCB0aGUgY2hhbm5lbCcpXG4gICAgICAvLyBub3RpZnkobWVtYmVyLmlkZW50aXR5ICsgJyBsZWZ0IHRoZSBjaGFubmVsJyk7XG4gICAgfSxcbiAgICBub3RpZnkgKG1lc3NhZ2UpIHtcbiAgICAgIHZhciByb3cgPSAkKCc8ZGl2PicpLmFkZENsYXNzKCdjb2wtbWQtMTInKVxuICAgICAgcm93LmxvYWRUZW1wbGF0ZSgnI21lbWJlci1ub3RpZmljYXRpb24tdGVtcGxhdGUnLCB7XG4gICAgICAgIHN0YXR1czogbWVzc2FnZVxuICAgICAgfSlcbiAgICAgIHRoaXMudGMuJG1lc3NhZ2VMaXN0LmFwcGVuZChyb3cpXG4gICAgfSxcbiAgICBqb2luQ2hhbm5lbCAoX2NoYW5uZWwpIHtcbiAgICAgIGxldCB2bSA9IHRoaXNcbiAgICAgIHJldHVybiBfY2hhbm5lbC5qb2luKClcbiAgICAgICAgLnRoZW4oZnVuY3Rpb24gKGpvaW5lZENoYW5uZWwpIHtcbiAgICAgICAgICBjb25zb2xlLmxvZygnSm9pbmVkIGNoYW5uZWwgJyArIGpvaW5lZENoYW5uZWwuZnJpZW5kbHlOYW1lKVxuICAgICAgICAgIC8vIHZtLnVwZGF0ZUNoYW5uZWxVSShfY2hhbm5lbCk7XG4gICAgICAgICAgdm0udGMuY3VycmVudENoYW5uZWwgPSBfY2hhbm5lbFxuICAgICAgICAgIHZtLmxvYWRNZXNzYWdlcygpXG4gICAgICAgICAgcmV0dXJuIGpvaW5lZENoYW5uZWxcbiAgICAgICAgfSlcbiAgICAgICAgLmNhdGNoKGZ1bmN0aW9uIChlcnIpIHtcbiAgICAgICAgICBjb25zb2xlLndhcm4oJ2NvdWxkdCBqb2luIGNoYW5uZWwnICsgX2NoYW5uZWwuZnJpZW5kbHlOYW1lICsgJyBiZWNhdXNlICcgKyBlcnIpXG4gICAgICAgICAgLy8gYWxlcnQoXCJDb3VsZG4ndCBqb2luIGNoYW5uZWwgXCIgKyBfY2hhbm5lbC5mcmllbmRseU5hbWUgKyAnIGJlY2F1c2UgJyArIGVycik7XG4gICAgICAgIH0pXG4gICAgfSxcbiAgICAvLyB1cGRhdGVDaGFubmVsVUkoc2VsZWN0ZWRDaGFubmVsKSB7XG4gICAgLy8gICAgIGxldCBjaGFubmVsTGlzdHMgPSB0aGlzLiRyZWZzLmNoYW5uZWxMaXN0O1xuXG4gICAgLy8gICAgIGxldCBhY3RpdmVDaGFubmVsTGlzdCA9IGNoYW5uZWxMaXN0cy5maWx0ZXIoZnVuY3Rpb24oZWxlbWVudCkge1xuICAgIC8vICAgICByZXR1cm4gZWxlbWVudC5kYXRhc2V0LnNpZCA9PT0gc2VsZWN0ZWRDaGFubmVsLnNpZDtcbiAgICAvLyAgICAgfSk7XG5cbiAgICAvLyAgICAgYWN0aXZlQ2hhbm5lbExpc3QgPSBhY3RpdmVDaGFubmVsTGlzdFswXTtcbiAgICAvLyAgICAgaWYgKHRoaXMudGMuY3VycmVudENoYW5uZWxDb250YWluZXIgPT09IHVuZGVmaW5lZCAmJiBzZWxlY3RlZENoYW5uZWwuZnJpZW5kbHlOYW1lID09PSB2bS5uYW1lKSB7XG5cbiAgICAvLyAgICAgdGhpcy50Yy5jdXJyZW50Q2hhbm5lbENvbnRhaW5lciA9IGFjdGl2ZUNoYW5uZWxMaXN0O1xuICAgIC8vICAgICB9XG5cbiAgICAvLyAgICAgdGhpcy50Yy5jdXJyZW50Q2hhbm5lbENvbnRhaW5lci5jbGFzc0xpc3QucmVtb3ZlKCdzZWxlY3RlZC1jaGFubmVsJyk7XG4gICAgLy8gICAgIHRoaXMudGMuY3VycmVudENoYW5uZWxDb250YWluZXIgPSBhY3RpdmVDaGFubmVsTGlzdDtcbiAgICAvLyAgICAgdGhpcy50Yy5jdXJyZW50Q2hhbm5lbENvbnRhaW5lci5jbGFzc0xpc3QuYWRkKCdzZWxlY3RlZC1jaGFubmVsJyk7XG4gICAgLy8gfSxcbiAgICBsb2FkTWVzc2FnZXMgKCkge1xuICAgICAgbGV0IHZtID0gdGhpc1xuICAgICAgdGhpcy50Yy5jdXJyZW50Q2hhbm5lbC5nZXRNZXNzYWdlcyg1MCkudGhlbihmdW5jdGlvbiAobWVzc2FnZXMpIHtcbiAgICAgICAgdm0uc2hvd01lc3NhZ2VzID0gdHJ1ZVxuICAgICAgICB2bS50Yy5tZXNzYWdlc0FycmF5ID0gbWVzc2FnZXMuaXRlbXNcbiAgICAgICAgLy8gdm0udXNlck5vdEpvaW5lZCA9IGZhbHNlXG4gICAgICAgIG1lc3NhZ2VzLml0ZW1zLmZvckVhY2godm0uYWRkTWVzc2FnZVRvTGlzdClcbiAgICAgIH0pXG4gICAgfSxcbiAgICBhZGRNZXNzYWdlVG9MaXN0IChtZXNzYWdlKSB7XG4gICAgICBjb25zb2xlLmxvZyhtZXNzYWdlKVxuICAgICAgdGhpcy5sb2FkTWVzc2FnZXMoKVxuICAgIH0sXG4gICAgaGFuZGxlSW5wdXRUZXh0S2V5cHJlc3MgKCkge1xuICAgICAgdGhpcy50Yy5jdXJyZW50Q2hhbm5lbC5zZW5kTWVzc2FnZSh0aGlzLm1lc3NhZ2UpXG4gICAgICB0aGlzLm1lc3NhZ2UgPSAnJ1xuICAgICAgc2V0VGltZW91dChmdW5jdGlvbiAoKSB7XG4gICAgICAgIHRoaXMubG9hZE1lc3NhZ2VzKClcbiAgICAgIH0sIDMwMDApXG4gICAgfSxcbiAgICBoYW5kbGVOZXdDaGFubmVsSW5wdXRLZXlwcmVzcyAoZXZlbnQpIHtcbiAgICAgIGxldCB2bSA9IHRoaXNcbiAgICAgIGlmICh0aGlzLm5ld0NoYW5uZWwgPT0gJycpIHtcbiAgICAgICAgYWxlcnQoJ0NoYW5uZWwgbmFtZSBjYW5ub3QgYmUgZW1wdHknKVxuICAgICAgICByZXR1cm5cbiAgICAgIH1cbiAgICAgIHRoaXMudGMubWVzc2FnaW5nQ2xpZW50LmNyZWF0ZUNoYW5uZWwoe1xuICAgICAgICBmcmllbmRseU5hbWU6IHRoaXMubmV3Q2hhbm5lbFxuICAgICAgfSkudGhlbihmdW5jdGlvbiAoY2hhbm5lbCkge1xuICAgICAgICBjb25zb2xlLmxvZygnQ3JlYXRlZCBjaGFubmVsJylcbiAgICAgICAgdm0ubG9hZENoYW5uZWxMaXN0KGNoYW5uZWwpXG4gICAgICB9KS50aGVuKHRoaXMuaGlkZUFkZENoYW5uZWxJbnB1dClcbiAgICAgIHRoaXMubmV3Q2hhbm5lbCA9ICcnXG4gICAgfSxcbiAgICBzZWxlY3RDaGFubmVsIChjaGFubmVsKSB7XG4gICAgICBsZXQgY2hhbm5lbFNpZCA9IGNoYW5uZWwuc2lkXG4gICAgICB2YXIgc2VsZWN0ZWRDaGFubmVsID0gdGhpcy50Yy5jaGFubmVsQXJyYXkuZmlsdGVyKGZ1bmN0aW9uIChjaGFubmVsKSB7XG4gICAgICAgIHJldHVybiBjaGFubmVsLnNpZCA9PT0gY2hhbm5lbFNpZFxuICAgICAgfSlbMF1cbiAgICAgIGlmIChzZWxlY3RlZENoYW5uZWwgPT09IHRoaXMudGMuY3VycmVudENoYW5uZWwpIHtcbiAgICAgICAgcmV0dXJuXG4gICAgICB9XG4gICAgICB0aGlzLnNldHVwQ2hhbm5lbChzZWxlY3RlZENoYW5uZWwpXG4gICAgfSxcbiAgICBoaWRlQWRkQ2hhbm5lbElucHV0ICgpIHtcbiAgICAgIHRoaXMuc2hvd0FkZENoYW5uZWxJbnB1dCA9IGZhbHNlXG4gICAgfSxcbiAgICBjcmVhdGVDaGFubmVsICgpIHtcbiAgICAgIHRoaXMuc2hvd0FkZENoYW5uZWxJbnB1dCA9IHRydWVcbiAgICB9LFxuICAgIGRlbGV0ZUNoYW5uZWwgKCkge1xuICAgICAgLy8gaWYgKHRoaXMudGMuY3VycmVudENoYW5uZWwuc2lkID09PSB0aGlzLnRjLmdlbmVyYWxDaGFubmVsLnNpZCkge1xuICAgICAgLy8gICAgIGFsZXJ0KCdZb3UgY2Fubm90IGRlbGV0ZSB0aGUgZ2VuZXJhbCBjaGFubmVsJyk7XG4gICAgICAvLyAgICAgcmV0dXJuO1xuICAgICAgLy8gfVxuICAgICAgdGhpcy50Yy5jdXJyZW50Q2hhbm5lbC5kZWxldGUoKS50aGVuKGZ1bmN0aW9uIChjaGFubmVsKSB7XG4gICAgICAgIGNvbnNvbGUubG9nKCdjaGFubmVsOiAnICsgY2hhbm5lbC5mcmllbmRseU5hbWUgKyAnIGRlbGV0ZWQnKVxuICAgICAgICAvLyBzZXR1cENoYW5uZWwodGhpcy50Yy5nZW5lcmFsQ2hhbm5lbCk7XG4gICAgICB9KVxuICAgIH0sXG5cbiAgICAvLyBWSURFTyBNRVRIT0RTXG4gICAgZ2V0VmlkZW9Ub2tlbjogZnVuY3Rpb24gKCkge1xuICAgICAgY29uc29sZS5sb2coJ1ZpZGVvIGNoYXQgcm9vbSBsb2FkaW5nLi4uJylcblxuICAgICAgY29uc3Qgdm0gPSB0aGlzXG5cbiAgICAgIC8vIFJlcXVlc3QgYSBuZXcgdG9rZW5cbiAgICAgIGF4aW9zLmdldChgL2FwaS92aWRlby9hY2Nlc3NfdG9rZW4vJHt0aGlzLm5hbWV9YClcbiAgICAgICAgLnRoZW4oZnVuY3Rpb24gKHJlc3BvbnNlKSB7XG4gICAgICAgICAgdm0uYWNjZXNzVG9rZW4gPSByZXNwb25zZS5kYXRhXG4gICAgICAgICAgdm0uY3VycmVudFN0YXR1cyA9ICdPTl9HT0lORydcbiAgICAgICAgfSlcbiAgICAgICAgLmNhdGNoKGZ1bmN0aW9uIChlcnJvcikge1xuICAgICAgICAgIGNvbnNvbGUubG9nKGVycm9yKVxuICAgICAgICB9KVxuICAgICAgICAudGhlbihmdW5jdGlvbiAoKSB7XG4gICAgICAgICAgdm0uY29ubmVjdFRvUm9vbSgpXG4gICAgICAgIH0pXG4gICAgfSxcbiAgICBqb2luQXNQYXJ0aWNpcGFudDogZnVuY3Rpb24gKCkge1xuICAgICAgY29uc29sZS5sb2coJ1ZpZGVvIGNoYXQgcm9vbSBsb2FkaW5nLi4uJylcblxuICAgICAgY29uc3Qgdm0gPSB0aGlzXG4gICAgICB2bS50Yy51c2VybmFtZSA9IHZtLm5hbWVcbiAgICAgIC8vIHZtLmZldGNoQWNjZXNzVG9rZW4odm0ubmFtZSwgdm0uY29ubmVjdE1lc3NhZ2luZ0NsaWVudClcbiAgICAgIGNvbnNvbGUubG9nKCdVU0VSTkFNRScsIHZtLm5hbWUpXG5cbiAgICAgIC8vIFJlcXVlc3QgYSBuZXcgdG9rZW5cbiAgICAgIGF4aW9zLmdldChgL2FwaS92aWRlby9hY2Nlc3NfdG9rZW4vJHt2bS5uYW1lfWApXG4gICAgICAgIC50aGVuKGZ1bmN0aW9uIChyZXNwb25zZSkge1xuICAgICAgICAgIHZtLmFjY2Vzc1Rva2VuID0gcmVzcG9uc2UuZGF0YVxuICAgICAgICB9KVxuICAgICAgICAuY2F0Y2goZnVuY3Rpb24gKGVycm9yKSB7XG4gICAgICAgICAgY29uc29sZS5sb2coZXJyb3IpXG4gICAgICAgIH0pXG4gICAgICAgIC50aGVuKGZ1bmN0aW9uICgpIHtcbiAgICAgICAgICB2bS5qb2luVG9Sb29tKClcbiAgICAgICAgfSlcbiAgICB9LFxuICAgIGNvbm5lY3RUb1Jvb206IGZ1bmN0aW9uICgpIHtcbiAgICAgIGNvbnN0IGF4aW9zID0gcmVxdWlyZSgnYXhpb3MnKVxuXG4gICAgICBjb25zdCB7IGNvbm5lY3QsIGNyZWF0ZUxvY2FsVHJhY2tzIH0gPSByZXF1aXJlKCd0d2lsaW8tdmlkZW8nKVxuXG4gICAgICBjb25uZWN0KHRoaXMuYWNjZXNzVG9rZW4sIHsgbmFtZTogdGhpcy5uYW1lIH0pLnRoZW4ocm9vbSA9PiB7XG4gICAgICAgIGNvbnNvbGUubG9nKGBTdWNjZXNzZnVsbHkgam9pbmVkIGEgUm9vbTogJHtyb29tfWApXG4gICAgICAgIGNvbnNvbGUubG9nKCdEYXRhOjonLCByb29tLnNpZClcbiAgICAgICAgdGhpcy5kYXRhU2lkID0gcm9vbS5zaWRcbiAgICAgICAgdGhpcy52aWRlb1Jvb20gPSByb29tXG5cbiAgICAgICAgbGV0IHJlcXVlc3QgPSB7XG4gICAgICAgICAgcm9vbV9uYW1lOiB0aGlzLm5hbWUsXG4gICAgICAgICAgcm9vbV9zaWQ6IHJvb20uc2lkLFxuICAgICAgICAgIHJvb21fc3RhdHVzOiAnT05fR09JTkcnXG4gICAgICAgIH1cblxuICAgICAgICBheGlvcy5wb3N0KGAvYXBpL3ZpZGVvL2hpc3Rvcnkvc2F2ZWAsIHJlcXVlc3QpXG4gICAgICAgICAgLnRoZW4oKHJlc3BvbnNlKSA9PiB7XG4gICAgICAgICAgICBjb25zb2xlLmxvZyhyZXNwb25zZSlcbiAgICAgICAgICB9KVxuICAgICAgICAgIC5jYXRjaCgoZXJyKSA9PiB7XG4gICAgICAgICAgICBjb25zb2xlLmxvZyhlcnIpXG4gICAgICAgICAgfSlcblxuICAgICAgICBjb25zdCB2aWRlb0NoYXRXaW5kb3cgPSBkb2N1bWVudC5nZXRFbGVtZW50QnlJZCgnbXktdmlkZW8tY2hhdC13aW5kb3cnKVxuICAgICAgICB0aGlzLnZpZXdlckNvdW50ID0gcm9vbS5wYXJ0aWNpcGFudHMuc2l6ZVxuXG4gICAgICAgIGxldCBsb2NhbFRyYWNrXG4gICAgICAgIGNyZWF0ZUxvY2FsVHJhY2tzKCkudGhlbih0cmFjayA9PiB7XG4gICAgICAgICAgY29uc29sZS5sb2codHJhY2spXG4gICAgICAgICAgbG9jYWxUcmFjayA9IHRyYWNrXG4gICAgICAgICAgdHJhY2suZm9yRWFjaCgobWVkaWEpID0+IHtcbiAgICAgICAgICAgIHZpZGVvQ2hhdFdpbmRvdy5hcHBlbmRDaGlsZChtZWRpYS5hdHRhY2goKSlcbiAgICAgICAgICB9KVxuICAgICAgICB9KVxuXG4gICAgICAgIHJvb20ub24oJ3BhcnRpY2lwYW50Q29ubmVjdGVkJywgcGFydGljaXBhbnQgPT4ge1xuICAgICAgICAgIGNvbnNvbGUubG9nKGBQYXJ0aWNpcGFudCBcIiR7cGFydGljaXBhbnQuaWRlbnRpdHl9XCIgY29ubmVjdGVkYClcbiAgICAgICAgICB0aGlzLnZpZXdlckNvdW50ID0gcm9vbS5wYXJ0aWNpcGFudHMuc2l6ZVxuXG4gICAgICAgICAgLy8gcGFydGljaXBhbnQudHJhY2tzLmZvckVhY2gocHVibGljYXRpb24gPT4ge1xuICAgICAgICAgIC8vICAgICBpZiAocHVibGljYXRpb24uaXNTdWJzY3JpYmVkKSB7XG4gICAgICAgICAgLy8gICAgICAgICBjb25zdCB0cmFjayA9IHB1YmxpY2F0aW9uLnRyYWNrO1xuICAgICAgICAgIC8vICAgICAgICAgdmlkZW9DaGF0V2luZG93LmFwcGVuZENoaWxkKHRyYWNrLmF0dGFjaCgpKTtcbiAgICAgICAgICAvLyAgICAgfVxuICAgICAgICAgIC8vIH0pO1xuXG4gICAgICAgICAgLy8gcGFydGljaXBhbnQub24oJ3RyYWNrU3Vic2NyaWJlZCcsIHRyYWNrID0+IHtcbiAgICAgICAgICAvLyAgICAgdmlkZW9DaGF0V2luZG93LmFwcGVuZENoaWxkKHRyYWNrLmF0dGFjaCgpKTtcbiAgICAgICAgICAvLyB9KTtcbiAgICAgICAgfSlcblxuICAgICAgICByb29tLm9uKCdkaXNjb25uZWN0ZWQnLCByb29tID0+IHtcbiAgICAgICAgICAvLyBEZXRhY2ggdGhlIGxvY2FsIG1lZGlhIGVsZW1lbnRzXG4gICAgICAgICAgY29uc29sZS5sb2coJ0hvc3QgZGlzY29ubmVjdGVkJylcbiAgICAgICAgICBjb25zb2xlLmxvZygnbG9jYWxQYXJ0aWNpcGFudCcsIHJvb20ubG9jYWxQYXJ0aWNpcGFudClcbiAgICAgICAgICBjb25zb2xlLmxvZygndmlkZW9DaGF0V2luZG93JywgdmlkZW9DaGF0V2luZG93LmNoaWxkTm9kZXNbMF0pXG4gICAgICAgICAgdGhpcy52aWV3ZXJDb3VudCA9IHJvb20ucGFydGljaXBhbnRzLnNpemVcbiAgICAgICAgICBjb25zdCBjaGlsZCA9IHZpZGVvQ2hhdFdpbmRvdy5sYXN0RWxlbWVudENoaWxkXG4gICAgICAgICAgdmlkZW9DaGF0V2luZG93LnJlbW92ZUNoaWxkKGNoaWxkKVxuICAgICAgICAgIC8vIHZpZGVvQ2hhdFdpbmRvdy5pbm5lckhUTUwgPVwiXCI7XG4gICAgICAgICAgY29uc29sZS5sb2coJ0RDIFRSQUNLUycsIGxvY2FsVHJhY2spXG4gICAgICAgICAgbG9jYWxUcmFjay5mb3JFYWNoKHRyYWNrID0+IHtcbiAgICAgICAgICAgIHRyYWNrLnN0b3AoKVxuICAgICAgICAgICAgdHJhY2suZGV0YWNoKClcbiAgICAgICAgICB9KVxuICAgICAgICB9KVxuXG4gICAgICAgIHJvb20ub24oJ3BhcnRpY2lwYW50RGlzY29ubmVjdGVkJywgcm9vbSA9PiB7XG4gICAgICAgICAgLy8gRGV0YWNoIHRoZSBsb2NhbCBtZWRpYSBlbGVtZW50c1xuICAgICAgICAgIGNvbnNvbGUubG9nKCdTb21lb25lIGRpc2Nvbm5lY3RlZCcpXG4gICAgICAgICAgLy8gdGhpcy52aWV3ZXJDb3VudCA9IHRoaXMudmlld2VyQ291bnQgLSAxXG4gICAgICAgICAgdGhpcy52aWV3ZXJDb3VudCA9IHJvb20ucGFydGljaXBhbnRzLnNpemVcbiAgICAgICAgICByb29tLmxvY2FsUGFydGljaXBhbnQudHJhY2tzLmZvckVhY2gocHVibGljYXRpb24gPT4ge1xuICAgICAgICAgICAgY29uc3QgYXR0YWNoZWRFbGVtZW50cyA9IHB1YmxpY2F0aW9uLnRyYWNrLmRldGFjaCgpXG4gICAgICAgICAgICBhdHRhY2hlZEVsZW1lbnRzLmZvckVhY2goZWxlbWVudCA9PiBlbGVtZW50LnJlbW92ZSgpKVxuICAgICAgICAgIH0pXG4gICAgICAgIH0pXG4gICAgICB9LCBlcnJvciA9PiB7XG4gICAgICAgIGNvbnNvbGUuZXJyb3IoYFVuYWJsZSB0byBjb25uZWN0IHRvIFJvb206ICR7ZXJyb3IubWVzc2FnZX1gKVxuICAgICAgICBzd2FsT29wcyhgUGxlYXNlIG1ha2Ugc3VyZSB0aGF0IHlvdXIgY2FtZXJhIGFuZCBtaWNyb3Bob25lIGlzIGNvbm5lY3RlZCwgYW5kIGhhdmUgcGVybWlzc2lvbnNgKVxuICAgICAgICB0aGlzLnN0b3BCcm9hZGNhc3RpbmcoKVxuICAgICAgfSlcbiAgICB9LFxuXG4gICAgam9pblRvUm9vbTogZnVuY3Rpb24gKCkge1xuICAgICAgY29uc3QgeyBjb25uZWN0IH0gPSByZXF1aXJlKCd0d2lsaW8tdmlkZW8nKVxuXG4gICAgICBjb25uZWN0KHRoaXMuYWNjZXNzVG9rZW4sIHsgbmFtZTogdGhpcy5uYW1lLCB2aWRlbzogZmFsc2UsIGF1ZGlvOiBmYWxzZSB9KS50aGVuKHJvb20gPT4ge1xuICAgICAgICBjb25zb2xlLmxvZyhgU3VjY2Vzc2Z1bGx5IGpvaW5lZCBhIFJvb206ICR7cm9vbX1gKVxuICAgICAgICBjb25zb2xlLmxvZygnRGF0YTo6Jywgcm9vbS5zaWQpXG4gICAgICAgIHRoaXMuZGF0YVNpZCA9IHJvb20uc2lkXG5cbiAgICAgICAgY29uc3QgdmlkZW9DaGF0V2luZG93ID0gZG9jdW1lbnQuZ2V0RWxlbWVudEJ5SWQoJ215LXZpZGVvLWNoYXQtd2luZG93JylcblxuICAgICAgICBjb25zdCBsb2NhbFBhcnRpY2lwYW50ID0gcm9vbS5sb2NhbFBhcnRpY2lwYW50XG4gICAgICAgIGNvbnNvbGUubG9nKGBDb25uZWN0ZWQgdG8gdGhlIFJvb20gYXMgTG9jYWxQYXJ0aWNpcGFudCBcIiR7bG9jYWxQYXJ0aWNpcGFudC5pZGVudGl0eX1cImApXG5cbiAgICAgICAgcm9vbS5wYXJ0aWNpcGFudHMuZm9yRWFjaChwYXJ0aWNpcGFudCA9PiB7XG4gICAgICAgICAgcGFydGljaXBhbnQudHJhY2tzLmZvckVhY2gocHVibGljYXRpb24gPT4ge1xuICAgICAgICAgICAgaWYgKHB1YmxpY2F0aW9uLnRyYWNrKSB7XG4gICAgICAgICAgICAgIHZpZGVvQ2hhdFdpbmRvdy5hcHBlbmRDaGlsZChwdWJsaWNhdGlvbi50cmFjay5hdHRhY2goKSlcbiAgICAgICAgICAgIH1cblxuICAgICAgICAgIH0pXG5cbiAgICAgICAgICBwYXJ0aWNpcGFudC5vbigndHJhY2tTdWJzY3JpYmVkJywgdHJhY2sgPT4ge1xuXG4gICAgICAgICAgICB2aWRlb0NoYXRXaW5kb3cuYXBwZW5kQ2hpbGQodHJhY2suYXR0YWNoKCkpXG4gICAgICAgICAgICB0aGlzLnZpZXdlckNvdW50ID0gcm9vbS5wYXJ0aWNpcGFudHMuc2l6ZVxuXG4gICAgICAgICAgfSlcblxuICAgICAgICAgIHRoaXMudmlld2VyQ291bnQgPSByb29tLnBhcnRpY2lwYW50cy5zaXplXG4gICAgICAgIH0pXG5cbiAgICAgICAgcm9vbS5vbigncGFydGljaXBhbnRDb25uZWN0ZWQnLCBwYXJ0aWNpcGFudCA9PiB7XG4gICAgICAgICAgY29uc29sZS5sb2coJ25ldycpXG4gICAgICAgICAgdGhpcy52aWV3ZXJDb3VudCA9IHJvb20ucGFydGljaXBhbnRzLnNpemVcbiAgICAgICAgICBjb25zb2xlLmxvZyhgUGFydGljaXBhbnQgXCIke3BhcnRpY2lwYW50LmlkZW50aXR5fVwiIGNvbm5lY3RlZGApXG5cbiAgICAgICAgICBwYXJ0aWNpcGFudC50cmFja3MuZm9yRWFjaChwdWJsaWNhdGlvbiA9PiB7XG4gICAgICAgICAgICBpZiAocHVibGljYXRpb24uaXNTdWJzY3JpYmVkKSB7XG4gICAgICAgICAgICAgIGNvbnN0IHRyYWNrID0gcHVibGljYXRpb24udHJhY2tcbiAgICAgICAgICAgICAgdmlkZW9DaGF0V2luZG93LmFwcGVuZENoaWxkKHRyYWNrLmF0dGFjaCgpKVxuICAgICAgICAgICAgfVxuICAgICAgICAgIH0pXG5cbiAgICAgICAgICBwYXJ0aWNpcGFudC5vbigndHJhY2tTdWJzY3JpYmVkJywgdHJhY2sgPT4ge1xuICAgICAgICAgICAgdmlkZW9DaGF0V2luZG93LmFwcGVuZENoaWxkKHRyYWNrLmF0dGFjaCgpKVxuICAgICAgICAgIH0pXG4gICAgICAgIH0pXG5cbiAgICAgICAgcm9vbS5vbigncGFydGljaXBhbnREaXNjb25uZWN0ZWQnLCByb29tID0+IHtcbiAgICAgICAgICAvLyBEZXRhY2ggdGhlIGxvY2FsIG1lZGlhIGVsZW1lbnRzXG4gICAgICAgICAgY29uc29sZS5sb2coJ1NvbWVvbmUgZGlzY29ubmVjdGVkJylcbiAgICAgICAgICB0aGlzLnZpZXdlckNvdW50ID0gdGhpcy52aWV3ZXJDb3VudCAtIDFcbiAgICAgICAgICByb29tLnBhcnRpY2lwYW50cy50cmFja3MuZm9yRWFjaChwdWJsaWNhdGlvbiA9PiB7XG4gICAgICAgICAgICBjb25zdCBhdHRhY2hlZEVsZW1lbnRzID0gcHVibGljYXRpb24udHJhY2suZGV0YWNoKClcbiAgICAgICAgICAgIGF0dGFjaGVkRWxlbWVudHMuZm9yRWFjaChlbGVtZW50ID0+IGVsZW1lbnQucmVtb3ZlKCkpXG4gICAgICAgICAgfSlcbiAgICAgICAgfSlcbiAgICAgIH0sIGVycm9yID0+IHtcbiAgICAgICAgY29uc29sZS5lcnJvcihgVW5hYmxlIHRvIGNvbm5lY3QgdG8gUm9vbTogJHtlcnJvci5tZXNzYWdlfWApXG4gICAgICB9KVxuICAgIH0sXG5cbiAgICBzdG9wQnJvYWRjYXN0aW5nOiBmdW5jdGlvbiAoKSB7XG4gICAgICBsZXQgdm0gPSB0aGlzXG4gICAgICB2bS5hY2Nlc3NUb2tlbiA9ICcnXG4gICAgICB2bS5jdXJyZW50U3RhdHVzID0gJ0NPTVBMRVRFRCdcbiAgICAgIHZtLnVzZXJOb3RKb2luZWQgPSB0cnVlXG4gICAgICB2bS5zaG93TWVzc2FnZXMgPSBmYWxzZVxuICAgICAgdm0uZGVsZXRlQ2hhbm5lbCgpXG4gICAgICB2bS50Yy5hY2Nlc3NNYW5hZ2VyID0gbnVsbFxuICAgICAgdm0udGMubWVzc2FnaW5nQ2xpZW50ID0gbnVsbFxuICAgICAgdm0udGMuY2hhbm5lbCA9IFtdXG4gICAgICB2bS50Yy5jaGFubmVsQXJyYXkgPSBudWxsXG4gICAgICB2bS50Yy5nZW5lcmFsQ2hhbm5lbCA9IG51bGxcbiAgICAgIHZtLnRjLmFjdGl2ZUNoYW5uZWxJbmRleCA9IG51bGxcbiAgICAgIHZtLnRjLm1lc3NhZ2VzQXJyYXkgPSBbXVxuXG4gICAgICBsZXQgcmVxdWVzdCA9IHtcbiAgICAgICAgcm9vbV9uYW1lOiB2bS5uYW1lLFxuICAgICAgICByb29tX3NpZDogdm0uZGF0YVNpZCxcbiAgICAgICAgcm9vbV9zdGF0dXM6ICdDT01QTEVURUQnXG4gICAgICB9XG5cbiAgICAgIGF4aW9zLnBvc3QoYC9hcGkvdmlkZW8vaGlzdG9yeS9zYXZlYCwgcmVxdWVzdClcbiAgICAgICAgLnRoZW4oKHJlc3BvbnNlKSA9PiB7XG4gICAgICAgICAgY29uc29sZS5sb2cocmVzcG9uc2UpXG4gICAgICAgICAgLy8gdm0uY3VycmVudFN0YXR1cyA9ICdDT01QTEVURUQnXG4gICAgICAgICAgLy8gdm0udXNlck5vdEpvaW5lZCA9IHRydWVcbiAgICAgICAgICAvLyB2bS5zaG93TWVzc2FnZXMgPSBmYWxzZVxuICAgICAgICAgIHZtLnZpZGVvUm9vbS5kaXNjb25uZWN0KClcbiAgICAgICAgICAvLyB2bS5kZWxldGVDaGFubmVsKClcbiAgICAgICAgICAvLyB2bS51c2VybmFtZSA9IHZtLnVzZXI/LnVzZXJuYW1lID8gdm0udXNlcj8udXNlcm5hbWUgOiAnJ1xuICAgICAgICAgIC8vIHZtLnRjLmFjY2Vzc01hbmFnZXIgPSBudWxsXG4gICAgICAgICAgLy8gdm0udGMubWVzc2FnaW5nQ2xpZW50ID0gbnVsbFxuICAgICAgICAgIC8vIHZtLnRjLmNoYW5uZWwgPSBbXVxuICAgICAgICAgIC8vIHZtLnRjLnVzZXJuYW1lID0gJyc7XG4gICAgICAgICAgLy8gdm0udGMuY2hhbm5lbEFycmF5ID0gbnVsbFxuICAgICAgICAgIC8vIHZtLnRjLmdlbmVyYWxDaGFubmVsID0gbnVsbFxuICAgICAgICAgIC8vIHZtLnRjLmFjdGl2ZUNoYW5uZWxJbmRleCA9IG51bGxcbiAgICAgICAgICAvLyB2bS50Yy5tZXNzYWdlc0FycmF5ID0gW11cblxuICAgICAgICAgIC8vIGxpc3QucmVtb3ZlQ2hpbGQobGlzdC5jaGlsZE5vZGVzKTtcbiAgICAgICAgICAvLyBjb25zb2xlLmxvZyhcIkNPTlNPTEUgTElTVFwiLCBsaXN0LmNoaWxkTm9kZXMpO1xuICAgICAgICB9KVxuICAgICAgICAuY2F0Y2goKGVycikgPT4ge1xuICAgICAgICAgIGNvbnNvbGUubG9nKGVycilcbiAgICAgICAgfSlcbiAgICB9XG5cbiAgfVxufVxuPC9zY3JpcHQ+XG48c3R5bGU+XG4udmlkZW97XG4gICAgZmxvYXQ6bGVmdDtcbn1cblxuLm1lc3NhZ2UtYm94e1xuICAgIGhlaWdodDogNDEwcHg7XG59XG5cbi5tZXNzYWdlLWRpdntcbiAgICBoZWlnaHQ6IDQxMHB4O1xuICAgIHdpZHRoOjEwMCU7XG4gICAgb3ZlcmZsb3cteTogc2Nyb2xsO1xufVxuXG4uYnJvYWRjYXN0e1xuICAgIGRpc3BsYXk6Z3JpZDtcbiAgICBtYXJnaW46YXV0bztcbn1cblxuLnZpZGVvLWRpdntcbiAgICB0ZXh0LWFsaWduOiBjZW50ZXI7XG4gICAgaGVpZ2h0OiA1MDBweDtcbn1cblxuLm1lc3NhZ2UtaG9zdC1ib2R5e1xuICAgIGZvbnQtc2l6ZTogMTRweDtcbiAgICBjb2xvcjp3aGl0ZTtcbiAgICBiYWNrZ3JvdW5kLWNvbG9yOiAjMzczRTRDO1xuICAgIGJvcmRlci1yYWRpdXM6IDEwcHg7XG4gICAgZmxvYXQ6cmlnaHQ7XG4gICAgcGFkZGluZzogNXB4IDE1cHg7XG4gICAgdGV4dC1hbGlnbjpsZWZ0O1xuICAgIG1hcmdpbi1ib3R0b206IDIwcHg7XG59XG5cbi5tZXNzYWdlLWhvc3QtYXV0aG9ye1xuICAgIGZvbnQtc2l6ZTogMTJweDtcbiAgICBjb2xvcjpncmF5O1xuICAgIGZsb2F0OnJpZ2h0O1xuICAgIG1hcmdpbi1ib3R0b206IDBweDtcbn1cblxuLm1lc3NhZ2UtdGltZXtcbiAgICBmb250LXNpemU6IDEycHg7XG4gICAgY29sb3I6Z3JheTtcbiAgICBmbG9hdDpyaWdodDtcbiAgICBtYXJnaW4tYm90dG9tOiAyMHB4O1xufVxuXG4ubWVzc2FnZS1ib2R5e1xuICAgIGZvbnQtc2l6ZTogMTRweDtcbiAgICBjb2xvcjpibGFjaztcbiAgICBiYWNrZ3JvdW5kLWNvbG9yOiAjRTRFNkVCO1xuICAgIGJvcmRlci1yYWRpdXM6IDEwcHg7XG4gICAgZmxvYXQ6bGVmdDtcbiAgICBwYWRkaW5nOiA1cHggMTVweDtcbiAgICB0ZXh0LWFsaWduOmxlZnQ7XG4gICAgbWFyZ2luLWJvdHRvbTogMjBweDtcbn1cblxuLm1lc3NhZ2UtYXV0aG9ye1xuICAgIGZvbnQtc2l6ZTogMTJweDtcbiAgICBjb2xvcjpncmF5O1xuICAgIGZsb2F0OmxlZnQ7XG4gICAgbWFyZ2luLWJvdHRvbTogMHB4O1xufVxuXG4ubWVzc2FnZS10aW1le1xuICAgIGZvbnQtc2l6ZTogMTJweDtcbiAgICBjb2xvcjpncmF5O1xuICAgIGZsb2F0OmxlZnQ7XG4gICAgbWFyZ2luLWJvdHRvbTogMjBweDtcbn1cblxuLnZpZGVve1xuICAgIGNvbnRhaW46Y292ZXI7XG59XG5cbi52aWV3ZXItaGVhZGVye1xuICAgIGJvcmRlci1ib3R0b206IDFweCBzb2xpZCAjREZERkRGO1xuICAgIHRleHQtYWxpZ246IGxlZnQ7XG59XG5cbi52aWV3ZXJze1xuICAgIGNvbG9yOndoaXRlO1xuICAgIGJhY2tncm91bmQtY29sb3I6ICNEQzM1NDU7XG4gICAgd2lkdGg6IDcwcHg7XG4gICAgdGV4dC1hbGlnbjpjZW50ZXI7XG4gICAgYm9yZGVyLXJhZGl1czogNXB4O1xufVxuXG4vKiB3aWR0aCAqL1xuOjotd2Via2l0LXNjcm9sbGJhciB7XG4gIHdpZHRoOiAxMHB4O1xufVxuXG4vKiBUcmFjayAqL1xuOjotd2Via2l0LXNjcm9sbGJhci10cmFjayB7XG4gIGJhY2tncm91bmQ6ICNmMWYxZjE7XG59XG5cbi8qIEhhbmRsZSAqL1xuOjotd2Via2l0LXNjcm9sbGJhci10aHVtYiB7XG4gIGJhY2tncm91bmQ6ICM4ODg7XG59XG5cbi8qIEhhbmRsZSBvbiBob3ZlciAqL1xuOjotd2Via2l0LXNjcm9sbGJhci10aHVtYjpob3ZlciB7XG4gIGJhY2tncm91bmQ6ICM1NTU7XG59XG5cbjwvc3R5bGU+XG4iXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/pages/reader/live/go-live.vue?vue&type=script&lang=js&\n");
/***/ }),
/***/ "./node_modules/css-loader/index.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/pages/reader/live/go-live.vue?vue&type=style&index=0&lang=css&":
/*!********************************************************************************************************************************************************************************************************************************************************************************!*\
!*** ./node_modules/css-loader??ref--6-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--6-2!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/pages/reader/live/go-live.vue?vue&type=style&index=0&lang=css& ***!
\********************************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
eval("exports = module.exports = __webpack_require__(/*! ../../../../../node_modules/css-loader/lib/css-base.js */ \"./node_modules/css-loader/lib/css-base.js\")(false);\n// imports\n\n\n// module\nexports.push([module.i, \"\\n.video{\\n float:left;\\n}\\n.message-box{\\n height: 410px;\\n}\\n.message-div{\\n height: 410px;\\n width:100%;\\n overflow-y: scroll;\\n}\\n.broadcast{\\n display:grid;\\n margin:auto;\\n}\\n.video-div{\\n text-align: center;\\n height: 500px;\\n}\\n.message-host-body{\\n font-size: 14px;\\n color:white;\\n background-color: #373E4C;\\n border-radius: 10px;\\n float:right;\\n padding: 5px 15px;\\n text-align:left;\\n margin-bottom: 20px;\\n}\\n.message-host-author{\\n font-size: 12px;\\n color:gray;\\n float:right;\\n margin-bottom: 0px;\\n}\\n.message-time{\\n font-size: 12px;\\n color:gray;\\n float:right;\\n margin-bottom: 20px;\\n}\\n.message-body{\\n font-size: 14px;\\n color:black;\\n background-color: #E4E6EB;\\n border-radius: 10px;\\n float:left;\\n padding: 5px 15px;\\n text-align:left;\\n margin-bottom: 20px;\\n}\\n.message-author{\\n font-size: 12px;\\n color:gray;\\n float:left;\\n margin-bottom: 0px;\\n}\\n.message-time{\\n font-size: 12px;\\n color:gray;\\n float:left;\\n margin-bottom: 20px;\\n}\\n.video{\\n contain:cover;\\n}\\n.viewer-header{\\n border-bottom: 1px solid #DFDFDF;\\n text-align: left;\\n}\\n.viewers{\\n color:white;\\n background-color: #DC3545;\\n width: 70px;\\n text-align:center;\\n border-radius: 5px;\\n}\\n\\n/* width */\\n::-webkit-scrollbar {\\n width: 10px;\\n}\\n\\n/* Track */\\n::-webkit-scrollbar-track {\\n background: #f1f1f1;\\n}\\n\\n/* Handle */\\n::-webkit-scrollbar-thumb {\\n background: #888;\\n}\\n\\n/* Handle on hover */\\n::-webkit-scrollbar-thumb:hover {\\n background: #555;\\n}\\n\\n\", \"\"]);\n\n// exports\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9yZXNvdXJjZXMvanMvcGFnZXMvcmVhZGVyL2xpdmUvZ28tbGl2ZS52dWU/ZmZjNCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSwyQkFBMkIsbUJBQU8sQ0FBQyx5R0FBd0Q7QUFDM0Y7OztBQUdBO0FBQ0EsY0FBYyxRQUFTLFlBQVksaUJBQWlCLEdBQUcsZUFBZSxvQkFBb0IsR0FBRyxlQUFlLG9CQUFvQixpQkFBaUIseUJBQXlCLEdBQUcsYUFBYSxtQkFBbUIsa0JBQWtCLEdBQUcsYUFBYSx5QkFBeUIsb0JBQW9CLEdBQUcscUJBQXFCLHNCQUFzQixrQkFBa0IsZ0NBQWdDLDBCQUEwQixrQkFBa0Isd0JBQXdCLHNCQUFzQiwwQkFBMEIsR0FBRyx1QkFBdUIsc0JBQXNCLGlCQUFpQixrQkFBa0IseUJBQXlCLEdBQUcsZ0JBQWdCLHNCQUFzQixpQkFBaUIsa0JBQWtCLDBCQUEwQixHQUFHLGdCQUFnQixzQkFBc0Isa0JBQWtCLGdDQUFnQywwQkFBMEIsaUJBQWlCLHdCQUF3QixzQkFBc0IsMEJBQTBCLEdBQUcsa0JBQWtCLHNCQUFzQixpQkFBaUIsaUJBQWlCLHlCQUF5QixHQUFHLGdCQUFnQixzQkFBc0IsaUJBQWlCLGlCQUFpQiwwQkFBMEIsR0FBRyxTQUFTLG9CQUFvQixHQUFHLGlCQUFpQix1Q0FBdUMsdUJBQXVCLEdBQUcsV0FBVyxrQkFBa0IsZ0NBQWdDLGtCQUFrQix3QkFBd0IseUJBQXlCLEdBQUcsc0NBQXNDLGdCQUFnQixHQUFHLDRDQUE0Qyx3QkFBd0IsR0FBRyw2Q0FBNkMscUJBQXFCLEdBQUcsNERBQTRELHFCQUFxQixHQUFHOztBQUU1bUQiLCJmaWxlIjoiLi9ub2RlX21vZHVsZXMvY3NzLWxvYWRlci9pbmRleC5qcz8hLi9ub2RlX21vZHVsZXMvdnVlLWxvYWRlci9saWIvbG9hZGVycy9zdHlsZVBvc3RMb2FkZXIuanMhLi9ub2RlX21vZHVsZXMvcG9zdGNzcy1sb2FkZXIvc3JjL2luZGV4LmpzPyEuL25vZGVfbW9kdWxlcy92dWUtbG9hZGVyL2xpYi9pbmRleC5qcz8hLi9yZXNvdXJjZXMvanMvcGFnZXMvcmVhZGVyL2xpdmUvZ28tbGl2ZS52dWU/dnVlJnR5cGU9c3R5bGUmaW5kZXg9MCZsYW5nPWNzcyYuanMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnRzID0gbW9kdWxlLmV4cG9ydHMgPSByZXF1aXJlKFwiLi4vLi4vLi4vLi4vLi4vbm9kZV9tb2R1bGVzL2Nzcy1sb2FkZXIvbGliL2Nzcy1iYXNlLmpzXCIpKGZhbHNlKTtcbi8vIGltcG9ydHNcblxuXG4vLyBtb2R1bGVcbmV4cG9ydHMucHVzaChbbW9kdWxlLmlkLCBcIlxcbi52aWRlb3tcXG4gICAgZmxvYXQ6bGVmdDtcXG59XFxuLm1lc3NhZ2UtYm94e1xcbiAgICBoZWlnaHQ6IDQxMHB4O1xcbn1cXG4ubWVzc2FnZS1kaXZ7XFxuICAgIGhlaWdodDogNDEwcHg7XFxuICAgIHdpZHRoOjEwMCU7XFxuICAgIG92ZXJmbG93LXk6IHNjcm9sbDtcXG59XFxuLmJyb2FkY2FzdHtcXG4gICAgZGlzcGxheTpncmlkO1xcbiAgICBtYXJnaW46YXV0bztcXG59XFxuLnZpZGVvLWRpdntcXG4gICAgdGV4dC1hbGlnbjogY2VudGVyO1xcbiAgICBoZWlnaHQ6IDUwMHB4O1xcbn1cXG4ubWVzc2FnZS1ob3N0LWJvZHl7XFxuICAgIGZvbnQtc2l6ZTogMTRweDtcXG4gICAgY29sb3I6d2hpdGU7XFxuICAgIGJhY2tncm91bmQtY29sb3I6ICMzNzNFNEM7XFxuICAgIGJvcmRlci1yYWRpdXM6IDEwcHg7XFxuICAgIGZsb2F0OnJpZ2h0O1xcbiAgICBwYWRkaW5nOiA1cHggMTVweDtcXG4gICAgdGV4dC1hbGlnbjpsZWZ0O1xcbiAgICBtYXJnaW4tYm90dG9tOiAyMHB4O1xcbn1cXG4ubWVzc2FnZS1ob3N0LWF1dGhvcntcXG4gICAgZm9udC1zaXplOiAxMnB4O1xcbiAgICBjb2xvcjpncmF5O1xcbiAgICBmbG9hdDpyaWdodDtcXG4gICAgbWFyZ2luLWJvdHRvbTogMHB4O1xcbn1cXG4ubWVzc2FnZS10aW1le1xcbiAgICBmb250LXNpemU6IDEycHg7XFxuICAgIGNvbG9yOmdyYXk7XFxuICAgIGZsb2F0OnJpZ2h0O1xcbiAgICBtYXJnaW4tYm90dG9tOiAyMHB4O1xcbn1cXG4ubWVzc2FnZS1ib2R5e1xcbiAgICBmb250LXNpemU6IDE0cHg7XFxuICAgIGNvbG9yOmJsYWNrO1xcbiAgICBiYWNrZ3JvdW5kLWNvbG9yOiAjRTRFNkVCO1xcbiAgICBib3JkZXItcmFkaXVzOiAxMHB4O1xcbiAgICBmbG9hdDpsZWZ0O1xcbiAgICBwYWRkaW5nOiA1cHggMTVweDtcXG4gICAgdGV4dC1hbGlnbjpsZWZ0O1xcbiAgICBtYXJnaW4tYm90dG9tOiAyMHB4O1xcbn1cXG4ubWVzc2FnZS1hdXRob3J7XFxuICAgIGZvbnQtc2l6ZTogMTJweDtcXG4gICAgY29sb3I6Z3JheTtcXG4gICAgZmxvYXQ6bGVmdDtcXG4gICAgbWFyZ2luLWJvdHRvbTogMHB4O1xcbn1cXG4ubWVzc2FnZS10aW1le1xcbiAgICBmb250LXNpemU6IDEycHg7XFxuICAgIGNvbG9yOmdyYXk7XFxuICAgIGZsb2F0OmxlZnQ7XFxuICAgIG1hcmdpbi1ib3R0b206IDIwcHg7XFxufVxcbi52aWRlb3tcXG4gICAgY29udGFpbjpjb3ZlcjtcXG59XFxuLnZpZXdlci1oZWFkZXJ7XFxuICAgIGJvcmRlci1ib3R0b206IDFweCBzb2xpZCAjREZERkRGO1xcbiAgICB0ZXh0LWFsaWduOiBsZWZ0O1xcbn1cXG4udmlld2Vyc3tcXG4gICAgY29sb3I6d2hpdGU7XFxuICAgIGJhY2tncm91bmQtY29sb3I6ICNEQzM1NDU7XFxuICAgIHdpZHRoOiA3MHB4O1xcbiAgICB0ZXh0LWFsaWduOmNlbnRlcjtcXG4gICAgYm9yZGVyLXJhZGl1czogNXB4O1xcbn1cXG5cXG4vKiB3aWR0aCAqL1xcbjo6LXdlYmtpdC1zY3JvbGxiYXIge1xcbiAgd2lkdGg6IDEwcHg7XFxufVxcblxcbi8qIFRyYWNrICovXFxuOjotd2Via2l0LXNjcm9sbGJhci10cmFjayB7XFxuICBiYWNrZ3JvdW5kOiAjZjFmMWYxO1xcbn1cXG5cXG4vKiBIYW5kbGUgKi9cXG46Oi13ZWJraXQtc2Nyb2xsYmFyLXRodW1iIHtcXG4gIGJhY2tncm91bmQ6ICM4ODg7XFxufVxcblxcbi8qIEhhbmRsZSBvbiBob3ZlciAqL1xcbjo6LXdlYmtpdC1zY3JvbGxiYXItdGh1bWI6aG92ZXIge1xcbiAgYmFja2dyb3VuZDogIzU1NTtcXG59XFxuXFxuXCIsIFwiXCJdKTtcblxuLy8gZXhwb3J0c1xuIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./node_modules/css-loader/index.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/pages/reader/live/go-live.vue?vue&type=style&index=0&lang=css&\n");
/***/ }),
/***/ "./node_modules/style-loader/index.js!./node_modules/css-loader/index.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/pages/reader/live/go-live.vue?vue&type=style&index=0&lang=css&":
/*!************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** ./node_modules/style-loader!./node_modules/css-loader??ref--6-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--6-2!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/pages/reader/live/go-live.vue?vue&type=style&index=0&lang=css& ***!
\************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
eval("\nvar content = __webpack_require__(/*! !../../../../../node_modules/css-loader??ref--6-1!../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/postcss-loader/src??ref--6-2!../../../../../node_modules/vue-loader/lib??vue-loader-options!./go-live.vue?vue&type=style&index=0&lang=css& */ \"./node_modules/css-loader/index.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/pages/reader/live/go-live.vue?vue&type=style&index=0&lang=css&\");\n\nif(typeof content === 'string') content = [[module.i, content, '']];\n\nvar transform;\nvar insertInto;\n\n\n\nvar options = {\"hmr\":true}\n\noptions.transform = transform\noptions.insertInto = undefined;\n\nvar update = __webpack_require__(/*! ../../../../../node_modules/style-loader/lib/addStyles.js */ \"./node_modules/style-loader/lib/addStyles.js\")(content, options);\n\nif(content.locals) module.exports = content.locals;\n\nif(false) {}//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9yZXNvdXJjZXMvanMvcGFnZXMvcmVhZGVyL2xpdmUvZ28tbGl2ZS52dWU/MTgzZCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQ0EsY0FBYyxtQkFBTyxDQUFDLHNpQkFBNFQ7O0FBRWxWLDRDQUE0QyxRQUFTOztBQUVyRDtBQUNBOzs7O0FBSUEsZUFBZTs7QUFFZjtBQUNBOztBQUVBLGFBQWEsbUJBQU8sQ0FBQywrR0FBNEQ7O0FBRWpGOztBQUVBLEdBQUcsS0FBVSxFQUFFIiwiZmlsZSI6Ii4vbm9kZV9tb2R1bGVzL3N0eWxlLWxvYWRlci9pbmRleC5qcyEuL25vZGVfbW9kdWxlcy9jc3MtbG9hZGVyL2luZGV4LmpzPyEuL25vZGVfbW9kdWxlcy92dWUtbG9hZGVyL2xpYi9sb2FkZXJzL3N0eWxlUG9zdExvYWRlci5qcyEuL25vZGVfbW9kdWxlcy9wb3N0Y3NzLWxvYWRlci9zcmMvaW5kZXguanM/IS4vbm9kZV9tb2R1bGVzL3Z1ZS1sb2FkZXIvbGliL2luZGV4LmpzPyEuL3Jlc291cmNlcy9qcy9wYWdlcy9yZWFkZXIvbGl2ZS9nby1saXZlLnZ1ZT92dWUmdHlwZT1zdHlsZSZpbmRleD0wJmxhbmc9Y3NzJi5qcyIsInNvdXJjZXNDb250ZW50IjpbIlxudmFyIGNvbnRlbnQgPSByZXF1aXJlKFwiISEuLi8uLi8uLi8uLi8uLi9ub2RlX21vZHVsZXMvY3NzLWxvYWRlci9pbmRleC5qcz8/cmVmLS02LTEhLi4vLi4vLi4vLi4vLi4vbm9kZV9tb2R1bGVzL3Z1ZS1sb2FkZXIvbGliL2xvYWRlcnMvc3R5bGVQb3N0TG9hZGVyLmpzIS4uLy4uLy4uLy4uLy4uL25vZGVfbW9kdWxlcy9wb3N0Y3NzLWxvYWRlci9zcmMvaW5kZXguanM/P3JlZi0tNi0yIS4uLy4uLy4uLy4uLy4uL25vZGVfbW9kdWxlcy92dWUtbG9hZGVyL2xpYi9pbmRleC5qcz8/dnVlLWxvYWRlci1vcHRpb25zIS4vZ28tbGl2ZS52dWU/dnVlJnR5cGU9c3R5bGUmaW5kZXg9MCZsYW5nPWNzcyZcIik7XG5cbmlmKHR5cGVvZiBjb250ZW50ID09PSAnc3RyaW5nJykgY29udGVudCA9IFtbbW9kdWxlLmlkLCBjb250ZW50LCAnJ11dO1xuXG52YXIgdHJhbnNmb3JtO1xudmFyIGluc2VydEludG87XG5cblxuXG52YXIgb3B0aW9ucyA9IHtcImhtclwiOnRydWV9XG5cbm9wdGlvbnMudHJhbnNmb3JtID0gdHJhbnNmb3JtXG5vcHRpb25zLmluc2VydEludG8gPSB1bmRlZmluZWQ7XG5cbnZhciB1cGRhdGUgPSByZXF1aXJlKFwiIS4uLy4uLy4uLy4uLy4uL25vZGVfbW9kdWxlcy9zdHlsZS1sb2FkZXIvbGliL2FkZFN0eWxlcy5qc1wiKShjb250ZW50LCBvcHRpb25zKTtcblxuaWYoY29udGVudC5sb2NhbHMpIG1vZHVsZS5leHBvcnRzID0gY29udGVudC5sb2NhbHM7XG5cbmlmKG1vZHVsZS5ob3QpIHtcblx0bW9kdWxlLmhvdC5hY2NlcHQoXCIhIS4uLy4uLy4uLy4uLy4uL25vZGVfbW9kdWxlcy9jc3MtbG9hZGVyL2luZGV4LmpzPz9yZWYtLTYtMSEuLi8uLi8uLi8uLi8uLi9ub2RlX21vZHVsZXMvdnVlLWxvYWRlci9saWIvbG9hZGVycy9zdHlsZVBvc3RMb2FkZXIuanMhLi4vLi4vLi4vLi4vLi4vbm9kZV9tb2R1bGVzL3Bvc3Rjc3MtbG9hZGVyL3NyYy9pbmRleC5qcz8/cmVmLS02LTIhLi4vLi4vLi4vLi4vLi4vbm9kZV9tb2R1bGVzL3Z1ZS1sb2FkZXIvbGliL2luZGV4LmpzPz92dWUtbG9hZGVyLW9wdGlvbnMhLi9nby1saXZlLnZ1ZT92dWUmdHlwZT1zdHlsZSZpbmRleD0wJmxhbmc9Y3NzJlwiLCBmdW5jdGlvbigpIHtcblx0XHR2YXIgbmV3Q29udGVudCA9IHJlcXVpcmUoXCIhIS4uLy4uLy4uLy4uLy4uL25vZGVfbW9kdWxlcy9jc3MtbG9hZGVyL2luZGV4LmpzPz9yZWYtLTYtMSEuLi8uLi8uLi8uLi8uLi9ub2RlX21vZHVsZXMvdnVlLWxvYWRlci9saWIvbG9hZGVycy9zdHlsZVBvc3RMb2FkZXIuanMhLi4vLi4vLi4vLi4vLi4vbm9kZV9tb2R1bGVzL3Bvc3Rjc3MtbG9hZGVyL3NyYy9pbmRleC5qcz8/cmVmLS02LTIhLi4vLi4vLi4vLi4vLi4vbm9kZV9tb2R1bGVzL3Z1ZS1sb2FkZXIvbGliL2luZGV4LmpzPz92dWUtbG9hZGVyLW9wdGlvbnMhLi9nby1saXZlLnZ1ZT92dWUmdHlwZT1zdHlsZSZpbmRleD0wJmxhbmc9Y3NzJlwiKTtcblxuXHRcdGlmKHR5cGVvZiBuZXdDb250ZW50ID09PSAnc3RyaW5nJykgbmV3Q29udGVudCA9IFtbbW9kdWxlLmlkLCBuZXdDb250ZW50LCAnJ11dO1xuXG5cdFx0dmFyIGxvY2FscyA9IChmdW5jdGlvbihhLCBiKSB7XG5cdFx0XHR2YXIga2V5LCBpZHggPSAwO1xuXG5cdFx0XHRmb3Ioa2V5IGluIGEpIHtcblx0XHRcdFx0aWYoIWIgfHwgYVtrZXldICE9PSBiW2tleV0pIHJldHVybiBmYWxzZTtcblx0XHRcdFx0aWR4Kys7XG5cdFx0XHR9XG5cblx0XHRcdGZvcihrZXkgaW4gYikgaWR4LS07XG5cblx0XHRcdHJldHVybiBpZHggPT09IDA7XG5cdFx0fShjb250ZW50LmxvY2FscywgbmV3Q29udGVudC5sb2NhbHMpKTtcblxuXHRcdGlmKCFsb2NhbHMpIHRocm93IG5ldyBFcnJvcignQWJvcnRpbmcgQ1NTIEhNUiBkdWUgdG8gY2hhbmdlZCBjc3MtbW9kdWxlcyBsb2NhbHMuJyk7XG5cblx0XHR1cGRhdGUobmV3Q29udGVudCk7XG5cdH0pO1xuXG5cdG1vZHVsZS5ob3QuZGlzcG9zZShmdW5jdGlvbigpIHsgdXBkYXRlKCk7IH0pO1xufSJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./node_modules/style-loader/index.js!./node_modules/css-loader/index.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/pages/reader/live/go-live.vue?vue&type=style&index=0&lang=css&\n");
/***/ }),
/***/ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/pages/reader/live/go-live.vue?vue&type=template&id=65275b81&":
/*!*****************************************************************************************************************************************************************************************************************!*\
!*** ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/pages/reader/live/go-live.vue?vue&type=template&id=65275b81& ***!
\*****************************************************************************************************************************************************************************************************************/
/*! exports provided: render, staticRenderFns */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return render; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return staticRenderFns; });\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\n \"card\",\n { staticClass: \"p-6 m-4\" },\n [\n _c(\"div\", { staticClass: \"row\" }, [\n _c(\"div\", { staticClass: \"col-lg-12\" }, [\n _c(\"h4\", { staticClass: \"mb-3\" }, [\n _vm._v(\"\\n Go Live\\n \")\n ]),\n _vm._v(\" \"),\n _c(\"p\", { staticClass: \"mb-5\" }, [\n _vm._v(\n \"\\n Necessitatibus eius consequatur ex aliquid fuga eum quidem.\\n \"\n )\n ])\n ])\n ]),\n _vm._v(\" \"),\n _c(\"div\", { staticClass: \"mb-2\" }, [\n _c(\"div\", { staticClass: \"text-center\" }, [\n _c(\"div\", { staticClass: \"container pb-2\" }, [\n _c(\"div\", { staticClass: \"row justify-content-center\" }, [\n _c(\"div\", { staticClass: \"col-md-12\" }, [\n _c(\"div\", { staticClass: \"row\" }, [\n _c(\"div\", { staticClass: \"col-md-7 video-div\" }, [\n _c(\n \"div\",\n { staticClass: \"video grid grid-flow-row bg-black\" },\n [_c(\"div\", { attrs: { id: \"my-video-chat-window\" } })]\n )\n ]),\n _vm._v(\" \"),\n _c(\"div\", { staticClass: \"col-md-5\" }, [\n _c(\"div\", { staticClass: \"card\" }, [\n _c(\"div\", { staticClass: \"viewer-header px-2 py-1\" }, [\n _c(\"p\", { staticClass: \"m-0 px-2 viewers\" }, [\n _c(\n \"span\",\n {\n directives: [\n {\n name: \"show\",\n rawName: \"v-show\",\n value: _vm.currentStatus === \"ON_GOING\",\n expression: \"currentStatus ==='ON_GOING'\"\n }\n ]\n },\n [\n _c(\"fa\", { attrs: { icon: \"eye\" } }),\n _vm._v(\" \" + _vm._s(_vm.viewerCount) + \" \")\n ],\n 1\n ),\n _vm._v(\" \"),\n _c(\n \"span\",\n {\n directives: [\n {\n name: \"show\",\n rawName: \"v-show\",\n value: _vm.currentStatus !== \"ON_GOING\",\n expression: \"currentStatus !=='ON_GOING'\"\n }\n ]\n },\n [_vm._v(\" Offline \")]\n )\n ])\n ]),\n _vm._v(\" \"),\n _c(\"div\", { staticClass: \"card-body p-0\" }, [\n _c(\"div\", { staticClass: \"message-box\" }, [\n _c(\n \"div\",\n {\n directives: [\n {\n name: \"show\",\n rawName: \"v-show\",\n value: _vm.showMessages,\n expression: \"showMessages\"\n }\n ],\n staticClass: \"message-div p-4\"\n },\n _vm._l(_vm.tc.messagesArray, function(message) {\n return _c(\n \"div\",\n { key: message.id, staticClass: \"row msg\" },\n [\n message.author == _vm.user.username\n ? _c(\"div\", { staticClass: \"media-body\" }, [\n _c(\n \"p\",\n {\n staticClass: \"message-host-author\"\n },\n [\n _vm._v(\n \"\\n \" +\n _vm._s(message.author) +\n \"\\n \"\n )\n ]\n ),\n _vm._v(\" \"),\n _c(\"br\"),\n _vm._v(\" \"),\n _c(\n \"p\",\n { staticClass: \"message-host-body\" },\n [\n _vm._v(\n \"\\n \" +\n _vm._s(message.body) +\n \"\\n \"\n )\n ]\n )\n ])\n : _c(\"div\", { staticClass: \"media-body\" }, [\n _c(\n \"p\",\n { staticClass: \"message-author\" },\n [\n _vm._v(\n \"\\n \" +\n _vm._s(message.author) +\n \"\\n \"\n )\n ]\n ),\n _vm._v(\" \"),\n _c(\"br\"),\n _vm._v(\" \"),\n _c(\n \"p\",\n { staticClass: \"message-body\" },\n [\n _vm._v(\n \"\\n \" +\n _vm._s(message.body) +\n \"\\n \"\n )\n ]\n )\n ])\n ]\n )\n }),\n 0\n ),\n _vm._v(\" \"),\n _vm.notification\n ? _c(\"p\", [\n _vm._v(\n \"\\n \" +\n _vm._s(_vm.notificationMsg) +\n \"\\n \"\n )\n ])\n : _vm._e()\n ]),\n _vm._v(\" \"),\n !_vm.userNotJoined && _vm.currentStatus === \"ON_GOING\"\n ? _c(\"input\", {\n directives: [\n {\n name: \"model\",\n rawName: \"v-model\",\n value: _vm.message,\n expression: \"message\"\n }\n ],\n staticClass: \"form-control\",\n attrs: {\n type: \"text\",\n placeholder: \"Your message\"\n },\n domProps: { value: _vm.message },\n on: {\n keyup: function($event) {\n if (\n !$event.type.indexOf(\"key\") &&\n $event.keyCode !== 13\n ) {\n return null\n }\n return _vm.handleInputTextKeypress.apply(\n null,\n arguments\n )\n },\n input: function($event) {\n if ($event.target.composing) {\n return\n }\n _vm.message = $event.target.value\n }\n }\n })\n : _vm._e()\n ])\n ])\n ])\n ])\n ])\n ])\n ]),\n _vm._v(\" \"),\n _c(\n \"div\",\n { staticClass: \"m-3\" },\n [\n !_vm.userNotJoined &&\n _vm.loggedUser !== _vm.username &&\n _vm.currentStatus === \"ON_GOING\"\n ? _c(\n \"b-button\",\n {\n attrs: { variant: \"primary\" },\n on: {\n click: function($event) {\n return _vm.$bvModal.show(\"rate-modal\")\n }\n }\n },\n [_c(\"b-icon-star-fill\"), _vm._v(\" Rate me\\n \")],\n 1\n )\n : _vm._e()\n ],\n 1\n ),\n _vm._v(\" \"),\n _c(\"div\", [\n _c(\n \"button\",\n {\n directives: [\n {\n name: \"show\",\n rawName: \"v-show\",\n value:\n _vm.currentStatus !== \"ON_GOING\" &&\n _vm.loggedUser === _vm.tc.username,\n expression:\n \"currentStatus !=='ON_GOING' && (loggedUser === tc.username)\"\n }\n ],\n staticClass: \"broadcast btn btn-danger btn-lg\",\n on: {\n click: function($event) {\n _vm.getVideoToken()\n _vm.connectClientWithUsername()\n }\n }\n },\n [_vm._v(\"\\n Start Broadcasting\\n \")]\n ),\n _vm._v(\" \"),\n _vm.currentStatus === \"ON_GOING\" && !_vm.userNotJoined\n ? _c(\n \"button\",\n {\n staticClass: \"btn btn-danger btn-lg\",\n on: {\n click: function($event) {\n return _vm.stopBroadcasting()\n }\n }\n },\n [_vm._v(\"\\n Stop Broadcasting\\n \")]\n )\n : _vm._e()\n ])\n ])\n ]),\n _vm._v(\" \"),\n _c(\n \"b-modal\",\n {\n attrs: { id: \"rate-modal\", \"hide-footer\": \"\" },\n scopedSlots: _vm._u([\n {\n key: \"modal-title\",\n fn: function() {\n return [\n _c(\"span\", { staticClass: \"h3 text-center\" }, [\n _vm._v(\" Rate \"),\n _c(\"strong\", [_vm._v(\" \" + _vm._s(_vm.username) + \" \")])\n ])\n ]\n },\n proxy: true\n }\n ])\n },\n [\n _vm._v(\" \"),\n _c(\n \"div\",\n { staticClass: \"d-block text-center\" },\n [\n _c(\n \"b-row\",\n { staticClass: \"p-3 text-center\" },\n [\n _c(\n \"b-col\",\n [\n _c(\"star-rating\", {\n model: {\n value: _vm.ratingCount,\n callback: function($$v) {\n _vm.ratingCount = $$v\n },\n expression: \"ratingCount\"\n }\n })\n ],\n 1\n )\n ],\n 1\n ),\n _vm._v(\" \"),\n _c(\n \"b-row\",\n { staticClass: \"p-2\" },\n [\n _c(\n \"b-col\",\n { staticClass: \"d-flex justify-content-center\" },\n [\n _c(\n \"b-button\",\n {\n attrs: { variant: \"link\", size: \"sm\" },\n on: {\n click: function() {\n _vm.$bvModal.hide(\"rate-modal\")\n }\n }\n },\n [_vm._v(\"\\n Cancel\\n \")]\n ),\n _vm._v(\" \"),\n _c(\n \"b-button\",\n {\n staticClass: \"float-right\",\n attrs: { variant: \"danger\", size: \"sm\" },\n on: {\n click: function() {\n _vm.handleSubmitRating()\n _vm.$bvModal.hide(\"rate-modal\")\n }\n }\n },\n [_vm._v(\"\\n Submit\\n \")]\n )\n ],\n 1\n )\n ],\n 1\n )\n ],\n 1\n )\n ]\n )\n ],\n 1\n )\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9yZXNvdXJjZXMvanMvcGFnZXMvcmVhZGVyL2xpdmUvZ28tbGl2ZS52dWU/ZWQ2NCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtBQUFBO0FBQUE7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSxLQUFLLHlCQUF5QjtBQUM5QjtBQUNBLGlCQUFpQixxQkFBcUI7QUFDdEMsbUJBQW1CLDJCQUEyQjtBQUM5QyxvQkFBb0Isc0JBQXNCO0FBQzFDO0FBQ0E7QUFDQTtBQUNBLG1CQUFtQixzQkFBc0I7QUFDekM7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSxpQkFBaUIsc0JBQXNCO0FBQ3ZDLG1CQUFtQiw2QkFBNkI7QUFDaEQscUJBQXFCLGdDQUFnQztBQUNyRCx1QkFBdUIsNENBQTRDO0FBQ25FLHlCQUF5QiwyQkFBMkI7QUFDcEQsMkJBQTJCLHFCQUFxQjtBQUNoRCw2QkFBNkIsb0NBQW9DO0FBQ2pFO0FBQ0E7QUFDQSx1QkFBdUIsbURBQW1EO0FBQzFFLGtDQUFrQyxTQUFTLDZCQUE2QixFQUFFO0FBQzFFO0FBQ0E7QUFDQTtBQUNBLDZCQUE2QiwwQkFBMEI7QUFDdkQsK0JBQStCLHNCQUFzQjtBQUNyRCxpQ0FBaUMseUNBQXlDO0FBQzFFLGlDQUFpQyxrQ0FBa0M7QUFDbkU7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBLDZCQUE2QjtBQUM3QjtBQUNBLHdDQUF3QyxTQUFTLGNBQWMsRUFBRTtBQUNqRTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBLDZCQUE2QjtBQUM3QjtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EsaUNBQWlDLCtCQUErQjtBQUNoRSxtQ0FBbUMsNkJBQTZCO0FBQ2hFO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBLDZCQUE2QjtBQUM3QjtBQUNBO0FBQ0E7QUFDQSxpQ0FBaUMsMENBQTBDO0FBQzNFO0FBQ0E7QUFDQSxpREFBaUQsNEJBQTRCO0FBQzdFO0FBQ0E7QUFDQTtBQUNBO0FBQ0EsMkNBQTJDO0FBQzNDO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EsMkNBQTJDLG1DQUFtQztBQUM5RTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSxpREFBaUQsNEJBQTRCO0FBQzdFO0FBQ0E7QUFDQSwyQ0FBMkMsZ0NBQWdDO0FBQzNFO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EsMkNBQTJDLDhCQUE4QjtBQUN6RTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EsNkJBQTZCO0FBQzdCO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EsK0JBQStCO0FBQy9CLHlDQUF5QyxxQkFBcUI7QUFDOUQ7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EsaUNBQWlDO0FBQ2pDO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EsNkJBQTZCO0FBQzdCO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSxhQUFhLHFCQUFxQjtBQUNsQztBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBLDhCQUE4QixxQkFBcUI7QUFDbkQ7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBLHFCQUFxQjtBQUNyQjtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSxlQUFlO0FBQ2Y7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSxtQkFBbUI7QUFDbkI7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSxrQkFBa0Isc0NBQXNDO0FBQ3hEO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSw4QkFBOEIsZ0NBQWdDO0FBQzlEO0FBQ0E7QUFDQTtBQUNBO0FBQ0EsZUFBZTtBQUNmO0FBQ0E7QUFDQTtBQUNBLFNBQVM7QUFDVDtBQUNBO0FBQ0E7QUFDQTtBQUNBLGFBQWEscUNBQXFDO0FBQ2xEO0FBQ0E7QUFDQTtBQUNBLGlCQUFpQixpQ0FBaUM7QUFDbEQ7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EsMkJBQTJCO0FBQzNCO0FBQ0E7QUFDQSx1QkFBdUI7QUFDdkI7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EsaUJBQWlCLHFCQUFxQjtBQUN0QztBQUNBO0FBQ0E7QUFDQSxxQkFBcUIsK0NBQStDO0FBQ3BFO0FBQ0E7QUFDQTtBQUNBO0FBQ0Esa0NBQWtDLDhCQUE4QjtBQUNoRTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EseUJBQXlCO0FBQ3pCO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0Esa0NBQWtDLGdDQUFnQztBQUNsRTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSx5QkFBeUI7QUFDekI7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EiLCJmaWxlIjoiLi9ub2RlX21vZHVsZXMvdnVlLWxvYWRlci9saWIvbG9hZGVycy90ZW1wbGF0ZUxvYWRlci5qcz8hLi9ub2RlX21vZHVsZXMvdnVlLWxvYWRlci9saWIvaW5kZXguanM/IS4vcmVzb3VyY2VzL2pzL3BhZ2VzL3JlYWRlci9saXZlL2dvLWxpdmUudnVlP3Z1ZSZ0eXBlPXRlbXBsYXRlJmlkPTY1Mjc1YjgxJi5qcyIsInNvdXJjZXNDb250ZW50IjpbInZhciByZW5kZXIgPSBmdW5jdGlvbigpIHtcbiAgdmFyIF92bSA9IHRoaXNcbiAgdmFyIF9oID0gX3ZtLiRjcmVhdGVFbGVtZW50XG4gIHZhciBfYyA9IF92bS5fc2VsZi5fYyB8fCBfaFxuICByZXR1cm4gX2MoXG4gICAgXCJjYXJkXCIsXG4gICAgeyBzdGF0aWNDbGFzczogXCJwLTYgbS00XCIgfSxcbiAgICBbXG4gICAgICBfYyhcImRpdlwiLCB7IHN0YXRpY0NsYXNzOiBcInJvd1wiIH0sIFtcbiAgICAgICAgX2MoXCJkaXZcIiwgeyBzdGF0aWNDbGFzczogXCJjb2wtbGctMTJcIiB9LCBbXG4gICAgICAgICAgX2MoXCJoNFwiLCB7IHN0YXRpY0NsYXNzOiBcIm1iLTNcIiB9LCBbXG4gICAgICAgICAgICBfdm0uX3YoXCJcXG4gICAgICAgIEdvIExpdmVcXG4gICAgICBcIilcbiAgICAgICAgICBdKSxcbiAgICAgICAgICBfdm0uX3YoXCIgXCIpLFxuICAgICAgICAgIF9jKFwicFwiLCB7IHN0YXRpY0NsYXNzOiBcIm1iLTVcIiB9LCBbXG4gICAgICAgICAgICBfdm0uX3YoXG4gICAgICAgICAgICAgIFwiXFxuICAgICAgICBOZWNlc3NpdGF0aWJ1cyBlaXVzIGNvbnNlcXVhdHVyIGV4IGFsaXF1aWQgZnVnYSBldW0gcXVpZGVtLlxcbiAgICAgIFwiXG4gICAgICAgICAgICApXG4gICAgICAgICAgXSlcbiAgICAgICAgXSlcbiAgICAgIF0pLFxuICAgICAgX3ZtLl92KFwiIFwiKSxcbiAgICAgIF9jKFwiZGl2XCIsIHsgc3RhdGljQ2xhc3M6IFwibWItMlwiIH0sIFtcbiAgICAgICAgX2MoXCJkaXZcIiwgeyBzdGF0aWNDbGFzczogXCJ0ZXh0LWNlbnRlclwiIH0sIFtcbiAgICAgICAgICBfYyhcImRpdlwiLCB7IHN0YXRpY0NsYXNzOiBcImNvbnRhaW5lciBwYi0yXCIgfSwgW1xuICAgICAgICAgICAgX2MoXCJkaXZcIiwgeyBzdGF0aWNDbGFzczogXCJyb3cganVzdGlmeS1jb250ZW50LWNlbnRlclwiIH0sIFtcbiAgICAgICAgICAgICAgX2MoXCJkaXZcIiwgeyBzdGF0aWNDbGFzczogXCJjb2wtbWQtMTJcIiB9LCBbXG4gICAgICAgICAgICAgICAgX2MoXCJkaXZcIiwgeyBzdGF0aWNDbGFzczogXCJyb3dcIiB9LCBbXG4gICAgICAgICAgICAgICAgICBfYyhcImRpdlwiLCB7IHN0YXRpY0NsYXNzOiBcImNvbC1tZC03IHZpZGVvLWRpdlwiIH0sIFtcbiAgICAgICAgICAgICAgICAgICAgX2MoXG4gICAgICAgICAgICAgICAgICAgICAgXCJkaXZcIixcbiAgICAgICAgICAgICAgICAgICAgICB7IHN0YXRpY0NsYXNzOiBcInZpZGVvIGdyaWQgZ3JpZC1mbG93LXJvdyBiZy1ibGFja1wiIH0sXG4gICAgICAgICAgICAgICAgICAgICAgW19jKFwiZGl2XCIsIHsgYXR0cnM6IHsgaWQ6IFwibXktdmlkZW8tY2hhdC13aW5kb3dcIiB9IH0pXVxuICAgICAgICAgICAgICAgICAgICApXG4gICAgICAgICAgICAgICAgICBdKSxcbiAgICAgICAgICAgICAgICAgIF92bS5fdihcIiBcIiksXG4gICAgICAgICAgICAgICAgICBfYyhcImRpdlwiLCB7IHN0YXRpY0NsYXNzOiBcImNvbC1tZC01XCIgfSwgW1xuICAgICAgICAgICAgICAgICAgICBfYyhcImRpdlwiLCB7IHN0YXRpY0NsYXNzOiBcImNhcmRcIiB9LCBbXG4gICAgICAgICAgICAgICAgICAgICAgX2MoXCJkaXZcIiwgeyBzdGF0aWNDbGFzczogXCJ2aWV3ZXItaGVhZGVyIHB4LTIgcHktMVwiIH0sIFtcbiAgICAgICAgICAgICAgICAgICAgICAgIF9jKFwicFwiLCB7IHN0YXRpY0NsYXNzOiBcIm0tMCBweC0yIHZpZXdlcnNcIiB9LCBbXG4gICAgICAgICAgICAgICAgICAgICAgICAgIF9jKFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIFwic3BhblwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGRpcmVjdGl2ZXM6IFtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG5hbWU6IFwic2hvd1wiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJhd05hbWU6IFwidi1zaG93XCIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdmFsdWU6IF92bS5jdXJyZW50U3RhdHVzID09PSBcIk9OX0dPSU5HXCIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZXhwcmVzc2lvbjogXCJjdXJyZW50U3RhdHVzID09PSdPTl9HT0lORydcIlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICBdXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBbXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfYyhcImZhXCIsIHsgYXR0cnM6IHsgaWNvbjogXCJleWVcIiB9IH0pLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgX3ZtLl92KFwiIFwiICsgX3ZtLl9zKF92bS52aWV3ZXJDb3VudCkgKyBcIiBcIilcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBdLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDFcbiAgICAgICAgICAgICAgICAgICAgICAgICAgKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgX3ZtLl92KFwiIFwiKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgX2MoXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgXCJzcGFuXCIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZGlyZWN0aXZlczogW1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbmFtZTogXCJzaG93XCIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmF3TmFtZTogXCJ2LXNob3dcIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB2YWx1ZTogX3ZtLmN1cnJlbnRTdGF0dXMgIT09IFwiT05fR09JTkdcIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBleHByZXNzaW9uOiBcImN1cnJlbnRTdGF0dXMgIT09J09OX0dPSU5HJ1wiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIFtfdm0uX3YoXCIgT2ZmbGluZSBcIildXG4gICAgICAgICAgICAgICAgICAgICAgICAgIClcbiAgICAgICAgICAgICAgICAgICAgICAgIF0pXG4gICAgICAgICAgICAgICAgICAgICAgXSksXG4gICAgICAgICAgICAgICAgICAgICAgX3ZtLl92KFwiIFwiKSxcbiAgICAgICAgICAgICAgICAgICAgICBfYyhcImRpdlwiLCB7IHN0YXRpY0NsYXNzOiBcImNhcmQtYm9keSBwLTBcIiB9LCBbXG4gICAgICAgICAgICAgICAgICAgICAgICBfYyhcImRpdlwiLCB7IHN0YXRpY0NsYXNzOiBcIm1lc3NhZ2UtYm94XCIgfSwgW1xuICAgICAgICAgICAgICAgICAgICAgICAgICBfYyhcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBcImRpdlwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGRpcmVjdGl2ZXM6IFtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG5hbWU6IFwic2hvd1wiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJhd05hbWU6IFwidi1zaG93XCIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdmFsdWU6IF92bS5zaG93TWVzc2FnZXMsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZXhwcmVzc2lvbjogXCJzaG93TWVzc2FnZXNcIlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICBdLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc3RhdGljQ2xhc3M6IFwibWVzc2FnZS1kaXYgcC00XCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIF92bS5fbChfdm0udGMubWVzc2FnZXNBcnJheSwgZnVuY3Rpb24obWVzc2FnZSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIF9jKFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcImRpdlwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB7IGtleTogbWVzc2FnZS5pZCwgc3RhdGljQ2xhc3M6IFwicm93IG1zZ1wiIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBtZXNzYWdlLmF1dGhvciA9PSBfdm0udXNlci51c2VybmFtZVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPyBfYyhcImRpdlwiLCB7IHN0YXRpY0NsYXNzOiBcIm1lZGlhLWJvZHlcIiB9LCBbXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgX2MoXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcInBcIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc3RhdGljQ2xhc3M6IFwibWVzc2FnZS1ob3N0LWF1dGhvclwiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgW1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfdm0uX3YoXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXCJcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcIiArXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfdm0uX3MobWVzc2FnZS5hdXRob3IpICtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFwiXFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIFwiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIClcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICApLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF92bS5fdihcIiBcIiksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgX2MoXCJiclwiKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfdm0uX3YoXCIgXCIpLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF9jKFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXCJwXCIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB7IHN0YXRpY0NsYXNzOiBcIm1lc3NhZ2UtaG9zdC1ib2R5XCIgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgX3ZtLl92KFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFwiXFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXCIgK1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgX3ZtLl9zKG1lc3NhZ2UuYm9keSkgK1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXCJcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgXCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIClcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXSlcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDogX2MoXCJkaXZcIiwgeyBzdGF0aWNDbGFzczogXCJtZWRpYS1ib2R5XCIgfSwgW1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF9jKFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXCJwXCIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB7IHN0YXRpY0NsYXNzOiBcIm1lc3NhZ2UtYXV0aG9yXCIgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgX3ZtLl92KFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFwiXFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXCIgK1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgX3ZtLl9zKG1lc3NhZ2UuYXV0aG9yKSArXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcIlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBcIlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICApXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBdXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfdm0uX3YoXCIgXCIpLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF9jKFwiYnJcIiksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgX3ZtLl92KFwiIFwiKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfYyhcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFwicFwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgeyBzdGF0aWNDbGFzczogXCJtZXNzYWdlLWJvZHlcIiB9LFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgW1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfdm0uX3YoXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXCJcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcIiArXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfdm0uX3MobWVzc2FnZS5ib2R5KSArXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcIlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBcIlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICApXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBdXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBdKVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBdXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICApXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfSksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgMFxuICAgICAgICAgICAgICAgICAgICAgICAgICApLFxuICAgICAgICAgICAgICAgICAgICAgICAgICBfdm0uX3YoXCIgXCIpLFxuICAgICAgICAgICAgICAgICAgICAgICAgICBfdm0ubm90aWZpY2F0aW9uXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPyBfYyhcInBcIiwgW1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfdm0uX3YoXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXCJcXG4gICAgICAgICAgICAgICAgICAgICAgICBcIiArXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfdm0uX3MoX3ZtLm5vdGlmaWNhdGlvbk1zZykgK1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXCJcXG4gICAgICAgICAgICAgICAgICAgICAgXCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXSlcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA6IF92bS5fZSgpXG4gICAgICAgICAgICAgICAgICAgICAgICBdKSxcbiAgICAgICAgICAgICAgICAgICAgICAgIF92bS5fdihcIiBcIiksXG4gICAgICAgICAgICAgICAgICAgICAgICAhX3ZtLnVzZXJOb3RKb2luZWQgJiYgX3ZtLmN1cnJlbnRTdGF0dXMgPT09IFwiT05fR09JTkdcIlxuICAgICAgICAgICAgICAgICAgICAgICAgICA/IF9jKFwiaW5wdXRcIiwge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZGlyZWN0aXZlczogW1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbmFtZTogXCJtb2RlbFwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJhd05hbWU6IFwidi1tb2RlbFwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZhbHVlOiBfdm0ubWVzc2FnZSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBleHByZXNzaW9uOiBcIm1lc3NhZ2VcIlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICBdLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc3RhdGljQ2xhc3M6IFwiZm9ybS1jb250cm9sXCIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICBhdHRyczoge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0eXBlOiBcInRleHRcIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcGxhY2Vob2xkZXI6IFwiWW91ciBtZXNzYWdlXCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICBkb21Qcm9wczogeyB2YWx1ZTogX3ZtLm1lc3NhZ2UgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG9uOiB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGtleXVwOiBmdW5jdGlvbigkZXZlbnQpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAoXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAhJGV2ZW50LnR5cGUuaW5kZXhPZihcImtleVwiKSAmJlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgJGV2ZW50LmtleUNvZGUgIT09IDEzXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gbnVsbFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gX3ZtLmhhbmRsZUlucHV0VGV4dEtleXByZXNzLmFwcGx5KFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbnVsbCxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGFyZ3VtZW50c1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIClcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaW5wdXQ6IGZ1bmN0aW9uKCRldmVudCkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmICgkZXZlbnQudGFyZ2V0LmNvbXBvc2luZykge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF92bS5tZXNzYWdlID0gJGV2ZW50LnRhcmdldC52YWx1ZVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfSlcbiAgICAgICAgICAgICAgICAgICAgICAgICAgOiBfdm0uX2UoKVxuICAgICAgICAgICAgICAgICAgICAgIF0pXG4gICAgICAgICAgICAgICAgICAgIF0pXG4gICAgICAgICAgICAgICAgICBdKVxuICAgICAgICAgICAgICAgIF0pXG4gICAgICAgICAgICAgIF0pXG4gICAgICAgICAgICBdKVxuICAgICAgICAgIF0pLFxuICAgICAgICAgIF92bS5fdihcIiBcIiksXG4gICAgICAgICAgX2MoXG4gICAgICAgICAgICBcImRpdlwiLFxuICAgICAgICAgICAgeyBzdGF0aWNDbGFzczogXCJtLTNcIiB9LFxuICAgICAgICAgICAgW1xuICAgICAgICAgICAgICAhX3ZtLnVzZXJOb3RKb2luZWQgJiZcbiAgICAgICAgICAgICAgX3ZtLmxvZ2dlZFVzZXIgIT09IF92bS51c2VybmFtZSAmJlxuICAgICAgICAgICAgICBfdm0uY3VycmVudFN0YXR1cyA9PT0gXCJPTl9HT0lOR1wiXG4gICAgICAgICAgICAgICAgPyBfYyhcbiAgICAgICAgICAgICAgICAgICAgXCJiLWJ1dHRvblwiLFxuICAgICAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgICAgYXR0cnM6IHsgdmFyaWFudDogXCJwcmltYXJ5XCIgfSxcbiAgICAgICAgICAgICAgICAgICAgICBvbjoge1xuICAgICAgICAgICAgICAgICAgICAgICAgY2xpY2s6IGZ1bmN0aW9uKCRldmVudCkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gX3ZtLiRidk1vZGFsLnNob3coXCJyYXRlLW1vZGFsXCIpXG4gICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICBbX2MoXCJiLWljb24tc3Rhci1maWxsXCIpLCBfdm0uX3YoXCIgUmF0ZSBtZVxcbiAgICAgICAgXCIpXSxcbiAgICAgICAgICAgICAgICAgICAgMVxuICAgICAgICAgICAgICAgICAgKVxuICAgICAgICAgICAgICAgIDogX3ZtLl9lKClcbiAgICAgICAgICAgIF0sXG4gICAgICAgICAgICAxXG4gICAgICAgICAgKSxcbiAgICAgICAgICBfdm0uX3YoXCIgXCIpLFxuICAgICAgICAgIF9jKFwiZGl2XCIsIFtcbiAgICAgICAgICAgIF9jKFxuICAgICAgICAgICAgICBcImJ1dHRvblwiLFxuICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgZGlyZWN0aXZlczogW1xuICAgICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgICBuYW1lOiBcInNob3dcIixcbiAgICAgICAgICAgICAgICAgICAgcmF3TmFtZTogXCJ2LXNob3dcIixcbiAgICAgICAgICAgICAgICAgICAgdmFsdWU6XG4gICAgICAgICAgICAgICAgICAgICAgX3ZtLmN1cnJlbnRTdGF0dXMgIT09IFwiT05fR09JTkdcIiAmJlxuICAgICAgICAgICAgICAgICAgICAgIF92bS5sb2dnZWRVc2VyID09PSBfdm0udGMudXNlcm5hbWUsXG4gICAgICAgICAgICAgICAgICAgIGV4cHJlc3Npb246XG4gICAgICAgICAgICAgICAgICAgICAgXCJjdXJyZW50U3RhdHVzICE9PSdPTl9HT0lORycgJiYgKGxvZ2dlZFVzZXIgPT09IHRjLnVzZXJuYW1lKVwiXG4gICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgXSxcbiAgICAgICAgICAgICAgICBzdGF0aWNDbGFzczogXCJicm9hZGNhc3QgYnRuIGJ0bi1kYW5nZXIgYnRuLWxnXCIsXG4gICAgICAgICAgICAgICAgb246IHtcbiAgICAgICAgICAgICAgICAgIGNsaWNrOiBmdW5jdGlvbigkZXZlbnQpIHtcbiAgICAgICAgICAgICAgICAgICAgX3ZtLmdldFZpZGVvVG9rZW4oKVxuICAgICAgICAgICAgICAgICAgICBfdm0uY29ubmVjdENsaWVudFdpdGhVc2VybmFtZSgpXG4gICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICBbX3ZtLl92KFwiXFxuICAgICAgICAgIFN0YXJ0IEJyb2FkY2FzdGluZ1xcbiAgICAgICAgXCIpXVxuICAgICAgICAgICAgKSxcbiAgICAgICAgICAgIF92bS5fdihcIiBcIiksXG4gICAgICAgICAgICBfdm0uY3VycmVudFN0YXR1cyA9PT0gXCJPTl9HT0lOR1wiICYmICFfdm0udXNlck5vdEpvaW5lZFxuICAgICAgICAgICAgICA/IF9jKFxuICAgICAgICAgICAgICAgICAgXCJidXR0b25cIixcbiAgICAgICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgICAgc3RhdGljQ2xhc3M6IFwiYnRuIGJ0bi1kYW5nZXIgYnRuLWxnXCIsXG4gICAgICAgICAgICAgICAgICAgIG9uOiB7XG4gICAgICAgICAgICAgICAgICAgICAgY2xpY2s6IGZ1bmN0aW9uKCRldmVudCkge1xuICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIF92bS5zdG9wQnJvYWRjYXN0aW5nKClcbiAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICBbX3ZtLl92KFwiXFxuICAgICAgICAgIFN0b3AgQnJvYWRjYXN0aW5nXFxuICAgICAgICBcIildXG4gICAgICAgICAgICAgICAgKVxuICAgICAgICAgICAgICA6IF92bS5fZSgpXG4gICAgICAgICAgXSlcbiAgICAgICAgXSlcbiAgICAgIF0pLFxuICAgICAgX3ZtLl92KFwiIFwiKSxcbiAgICAgIF9jKFxuICAgICAgICBcImItbW9kYWxcIixcbiAgICAgICAge1xuICAgICAgICAgIGF0dHJzOiB7IGlkOiBcInJhdGUtbW9kYWxcIiwgXCJoaWRlLWZvb3RlclwiOiBcIlwiIH0sXG4gICAgICAgICAgc2NvcGVkU2xvdHM6IF92bS5fdShbXG4gICAgICAgICAgICB7XG4gICAgICAgICAgICAgIGtleTogXCJtb2RhbC10aXRsZVwiLFxuICAgICAgICAgICAgICBmbjogZnVuY3Rpb24oKSB7XG4gICAgICAgICAgICAgICAgcmV0dXJuIFtcbiAgICAgICAgICAgICAgICAgIF9jKFwic3BhblwiLCB7IHN0YXRpY0NsYXNzOiBcImgzIHRleHQtY2VudGVyXCIgfSwgW1xuICAgICAgICAgICAgICAgICAgICBfdm0uX3YoXCIgUmF0ZSAgXCIpLFxuICAgICAgICAgICAgICAgICAgICBfYyhcInN0cm9uZ1wiLCBbX3ZtLl92KFwiIFwiICsgX3ZtLl9zKF92bS51c2VybmFtZSkgKyBcIiBcIildKVxuICAgICAgICAgICAgICAgICAgXSlcbiAgICAgICAgICAgICAgICBdXG4gICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgIHByb3h5OiB0cnVlXG4gICAgICAgICAgICB9XG4gICAgICAgICAgXSlcbiAgICAgICAgfSxcbiAgICAgICAgW1xuICAgICAgICAgIF92bS5fdihcIiBcIiksXG4gICAgICAgICAgX2MoXG4gICAgICAgICAgICBcImRpdlwiLFxuICAgICAgICAgICAgeyBzdGF0aWNDbGFzczogXCJkLWJsb2NrIHRleHQtY2VudGVyXCIgfSxcbiAgICAgICAgICAgIFtcbiAgICAgICAgICAgICAgX2MoXG4gICAgICAgICAgICAgICAgXCJiLXJvd1wiLFxuICAgICAgICAgICAgICAgIHsgc3RhdGljQ2xhc3M6IFwicC0zIHRleHQtY2VudGVyXCIgfSxcbiAgICAgICAgICAgICAgICBbXG4gICAgICAgICAgICAgICAgICBfYyhcbiAgICAgICAgICAgICAgICAgICAgXCJiLWNvbFwiLFxuICAgICAgICAgICAgICAgICAgICBbXG4gICAgICAgICAgICAgICAgICAgICAgX2MoXCJzdGFyLXJhdGluZ1wiLCB7XG4gICAgICAgICAgICAgICAgICAgICAgICBtb2RlbDoge1xuICAgICAgICAgICAgICAgICAgICAgICAgICB2YWx1ZTogX3ZtLnJhdGluZ0NvdW50LFxuICAgICAgICAgICAgICAgICAgICAgICAgICBjYWxsYmFjazogZnVuY3Rpb24oJCR2KSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgX3ZtLnJhdGluZ0NvdW50ID0gJCR2XG4gICAgICAgICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICAgIGV4cHJlc3Npb246IFwicmF0aW5nQ291bnRcIlxuICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgIH0pXG4gICAgICAgICAgICAgICAgICAgIF0sXG4gICAgICAgICAgICAgICAgICAgIDFcbiAgICAgICAgICAgICAgICAgIClcbiAgICAgICAgICAgICAgICBdLFxuICAgICAgICAgICAgICAgIDFcbiAgICAgICAgICAgICAgKSxcbiAgICAgICAgICAgICAgX3ZtLl92KFwiIFwiKSxcbiAgICAgICAgICAgICAgX2MoXG4gICAgICAgICAgICAgICAgXCJiLXJvd1wiLFxuICAgICAgICAgICAgICAgIHsgc3RhdGljQ2xhc3M6IFwicC0yXCIgfSxcbiAgICAgICAgICAgICAgICBbXG4gICAgICAgICAgICAgICAgICBfYyhcbiAgICAgICAgICAgICAgICAgICAgXCJiLWNvbFwiLFxuICAgICAgICAgICAgICAgICAgICB7IHN0YXRpY0NsYXNzOiBcImQtZmxleCBqdXN0aWZ5LWNvbnRlbnQtY2VudGVyXCIgfSxcbiAgICAgICAgICAgICAgICAgICAgW1xuICAgICAgICAgICAgICAgICAgICAgIF9jKFxuICAgICAgICAgICAgICAgICAgICAgICAgXCJiLWJ1dHRvblwiLFxuICAgICAgICAgICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgICAgICAgICBhdHRyczogeyB2YXJpYW50OiBcImxpbmtcIiwgc2l6ZTogXCJzbVwiIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICAgIG9uOiB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgY2xpY2s6IGZ1bmN0aW9uKCkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgX3ZtLiRidk1vZGFsLmhpZGUoXCJyYXRlLW1vZGFsXCIpXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICAgICAgW192bS5fdihcIlxcbiAgICAgICAgICAgIENhbmNlbFxcbiAgICAgICAgICBcIildXG4gICAgICAgICAgICAgICAgICAgICAgKSxcbiAgICAgICAgICAgICAgICAgICAgICBfdm0uX3YoXCIgXCIpLFxuICAgICAgICAgICAgICAgICAgICAgIF9jKFxuICAgICAgICAgICAgICAgICAgICAgICAgXCJiLWJ1dHRvblwiLFxuICAgICAgICAgICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgICAgICAgICBzdGF0aWNDbGFzczogXCJmbG9hdC1yaWdodFwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICBhdHRyczogeyB2YXJpYW50OiBcImRhbmdlclwiLCBzaXplOiBcInNtXCIgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgb246IHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBjbGljazogZnVuY3Rpb24oKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfdm0uaGFuZGxlU3VibWl0UmF0aW5nKClcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF92bS4kYnZNb2RhbC5oaWRlKFwicmF0ZS1tb2RhbFwiKVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgIFtfdm0uX3YoXCJcXG4gICAgICAgICAgICBTdWJtaXRcXG4gICAgICAgICAgXCIpXVxuICAgICAgICAgICAgICAgICAgICAgIClcbiAgICAgICAgICAgICAgICAgICAgXSxcbiAgICAgICAgICAgICAgICAgICAgMVxuICAgICAgICAgICAgICAgICAgKVxuICAgICAgICAgICAgICAgIF0sXG4gICAgICAgICAgICAgICAgMVxuICAgICAgICAgICAgICApXG4gICAgICAgICAgICBdLFxuICAgICAgICAgICAgMVxuICAgICAgICAgIClcbiAgICAgICAgXVxuICAgICAgKVxuICAgIF0sXG4gICAgMVxuICApXG59XG52YXIgc3RhdGljUmVuZGVyRm5zID0gW11cbnJlbmRlci5fd2l0aFN0cmlwcGVkID0gdHJ1ZVxuXG5leHBvcnQgeyByZW5kZXIsIHN0YXRpY1JlbmRlckZucyB9Il0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/pages/reader/live/go-live.vue?vue&type=template&id=65275b81&\n");
/***/ }),
/***/ "./resources/js/pages/reader/live/go-live.vue":
/*!****************************************************!*\
!*** ./resources/js/pages/reader/live/go-live.vue ***!
\****************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _go_live_vue_vue_type_template_id_65275b81___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./go-live.vue?vue&type=template&id=65275b81& */ \"./resources/js/pages/reader/live/go-live.vue?vue&type=template&id=65275b81&\");\n/* harmony import */ var _go_live_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./go-live.vue?vue&type=script&lang=js& */ \"./resources/js/pages/reader/live/go-live.vue?vue&type=script&lang=js&\");\n/* empty/unused harmony star reexport *//* harmony import */ var _go_live_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./go-live.vue?vue&type=style&index=0&lang=css& */ \"./resources/js/pages/reader/live/go-live.vue?vue&type=style&index=0&lang=css&\");\n/* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ \"./node_modules/vue-loader/lib/runtime/componentNormalizer.js\");\n\n\n\n\n\n\n/* normalize component */\n\nvar component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(\n _go_live_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[\"default\"],\n _go_live_vue_vue_type_template_id_65275b81___WEBPACK_IMPORTED_MODULE_0__[\"render\"],\n _go_live_vue_vue_type_template_id_65275b81___WEBPACK_IMPORTED_MODULE_0__[\"staticRenderFns\"],\n false,\n null,\n null,\n null\n \n)\n\n/* hot reload */\nif (false) { var api; }\ncomponent.options.__file = \"resources/js/pages/reader/live/go-live.vue\"\n/* harmony default export */ __webpack_exports__[\"default\"] = (component.exports);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9yZXNvdXJjZXMvanMvcGFnZXMvcmVhZGVyL2xpdmUvZ28tbGl2ZS52dWU/ZDZmNCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQXNGO0FBQzNCO0FBQ0w7QUFDYTs7O0FBR25FO0FBQ21HO0FBQ25HLGdCQUFnQiwyR0FBVTtBQUMxQixFQUFFLDZFQUFNO0FBQ1IsRUFBRSxrRkFBTTtBQUNSLEVBQUUsMkZBQWU7QUFDakI7QUFDQTtBQUNBO0FBQ0E7O0FBRUE7O0FBRUE7QUFDQSxJQUFJLEtBQVUsRUFBRSxZQWlCZjtBQUNEO0FBQ2UsZ0YiLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvcGFnZXMvcmVhZGVyL2xpdmUvZ28tbGl2ZS52dWUuanMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyByZW5kZXIsIHN0YXRpY1JlbmRlckZucyB9IGZyb20gXCIuL2dvLWxpdmUudnVlP3Z1ZSZ0eXBlPXRlbXBsYXRlJmlkPTY1Mjc1YjgxJlwiXG5pbXBvcnQgc2NyaXB0IGZyb20gXCIuL2dvLWxpdmUudnVlP3Z1ZSZ0eXBlPXNjcmlwdCZsYW5nPWpzJlwiXG5leHBvcnQgKiBmcm9tIFwiLi9nby1saXZlLnZ1ZT92dWUmdHlwZT1zY3JpcHQmbGFuZz1qcyZcIlxuaW1wb3J0IHN0eWxlMCBmcm9tIFwiLi9nby1saXZlLnZ1ZT92dWUmdHlwZT1zdHlsZSZpbmRleD0wJmxhbmc9Y3NzJlwiXG5cblxuLyogbm9ybWFsaXplIGNvbXBvbmVudCAqL1xuaW1wb3J0IG5vcm1hbGl6ZXIgZnJvbSBcIiEuLi8uLi8uLi8uLi8uLi9ub2RlX21vZHVsZXMvdnVlLWxvYWRlci9saWIvcnVudGltZS9jb21wb25lbnROb3JtYWxpemVyLmpzXCJcbnZhciBjb21wb25lbnQgPSBub3JtYWxpemVyKFxuICBzY3JpcHQsXG4gIHJlbmRlcixcbiAgc3RhdGljUmVuZGVyRm5zLFxuICBmYWxzZSxcbiAgbnVsbCxcbiAgbnVsbCxcbiAgbnVsbFxuICBcbilcblxuLyogaG90IHJlbG9hZCAqL1xuaWYgKG1vZHVsZS5ob3QpIHtcbiAgdmFyIGFwaSA9IHJlcXVpcmUoXCIvVXNlcnMvYXphL0RvY3VtZW50cy9HaXRIdWIvdGlrLXRvay10YXJvdC9ub2RlX21vZHVsZXMvdnVlLWhvdC1yZWxvYWQtYXBpL2Rpc3QvaW5kZXguanNcIilcbiAgYXBpLmluc3RhbGwocmVxdWlyZSgndnVlJykpXG4gIGlmIChhcGkuY29tcGF0aWJsZSkge1xuICAgIG1vZHVsZS5ob3QuYWNjZXB0KClcbiAgICBpZiAoIWFwaS5pc1JlY29yZGVkKCc2NTI3NWI4MScpKSB7XG4gICAgICBhcGkuY3JlYXRlUmVjb3JkKCc2NTI3NWI4MScsIGNvbXBvbmVudC5vcHRpb25zKVxuICAgIH0gZWxzZSB7XG4gICAgICBhcGkucmVsb2FkKCc2NTI3NWI4MScsIGNvbXBvbmVudC5vcHRpb25zKVxuICAgIH1cbiAgICBtb2R1bGUuaG90LmFjY2VwdChcIi4vZ28tbGl2ZS52dWU/dnVlJnR5cGU9dGVtcGxhdGUmaWQ9NjUyNzViODEmXCIsIGZ1bmN0aW9uICgpIHtcbiAgICAgIGFwaS5yZXJlbmRlcignNjUyNzViODEnLCB7XG4gICAgICAgIHJlbmRlcjogcmVuZGVyLFxuICAgICAgICBzdGF0aWNSZW5kZXJGbnM6IHN0YXRpY1JlbmRlckZuc1xuICAgICAgfSlcbiAgICB9KVxuICB9XG59XG5jb21wb25lbnQub3B0aW9ucy5fX2ZpbGUgPSBcInJlc291cmNlcy9qcy9wYWdlcy9yZWFkZXIvbGl2ZS9nby1saXZlLnZ1ZVwiXG5leHBvcnQgZGVmYXVsdCBjb21wb25lbnQuZXhwb3J0cyJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./resources/js/pages/reader/live/go-live.vue\n");
/***/ }),
/***/ "./resources/js/pages/reader/live/go-live.vue?vue&type=script&lang=js&":
/*!*****************************************************************************!*\
!*** ./resources/js/pages/reader/live/go-live.vue?vue&type=script&lang=js& ***!
\*****************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_go_live_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../node_modules/babel-loader/lib??ref--4-0!../../../../../node_modules/vue-loader/lib??vue-loader-options!./go-live.vue?vue&type=script&lang=js& */ \"./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/pages/reader/live/go-live.vue?vue&type=script&lang=js&\");\n/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__[\"default\"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_go_live_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__[\"default\"]); //# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9yZXNvdXJjZXMvanMvcGFnZXMvcmVhZGVyL2xpdmUvZ28tbGl2ZS52dWU/ZjZiYiJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtBQUFBO0FBQUEsd0NBQW1NLENBQWdCLG1QQUFHLEVBQUMiLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvcGFnZXMvcmVhZGVyL2xpdmUvZ28tbGl2ZS52dWU/dnVlJnR5cGU9c2NyaXB0Jmxhbmc9anMmLmpzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IG1vZCBmcm9tIFwiLSEuLi8uLi8uLi8uLi8uLi9ub2RlX21vZHVsZXMvYmFiZWwtbG9hZGVyL2xpYi9pbmRleC5qcz8/cmVmLS00LTAhLi4vLi4vLi4vLi4vLi4vbm9kZV9tb2R1bGVzL3Z1ZS1sb2FkZXIvbGliL2luZGV4LmpzPz92dWUtbG9hZGVyLW9wdGlvbnMhLi9nby1saXZlLnZ1ZT92dWUmdHlwZT1zY3JpcHQmbGFuZz1qcyZcIjsgZXhwb3J0IGRlZmF1bHQgbW9kOyBleHBvcnQgKiBmcm9tIFwiLSEuLi8uLi8uLi8uLi8uLi9ub2RlX21vZHVsZXMvYmFiZWwtbG9hZGVyL2xpYi9pbmRleC5qcz8/cmVmLS00LTAhLi4vLi4vLi4vLi4vLi4vbm9kZV9tb2R1bGVzL3Z1ZS1sb2FkZXIvbGliL2luZGV4LmpzPz92dWUtbG9hZGVyLW9wdGlvbnMhLi9nby1saXZlLnZ1ZT92dWUmdHlwZT1zY3JpcHQmbGFuZz1qcyZcIiJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./resources/js/pages/reader/live/go-live.vue?vue&type=script&lang=js&\n");
/***/ }),
/***/ "./resources/js/pages/reader/live/go-live.vue?vue&type=style&index=0&lang=css&":
/*!*************************************************************************************!*\
!*** ./resources/js/pages/reader/live/go-live.vue?vue&type=style&index=0&lang=css& ***!
\*************************************************************************************/
/*! no static exports found */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _node_modules_style_loader_index_js_node_modules_css_loader_index_js_ref_6_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_2_node_modules_vue_loader_lib_index_js_vue_loader_options_go_live_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../node_modules/style-loader!../../../../../node_modules/css-loader??ref--6-1!../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/postcss-loader/src??ref--6-2!../../../../../node_modules/vue-loader/lib??vue-loader-options!./go-live.vue?vue&type=style&index=0&lang=css& */ \"./node_modules/style-loader/index.js!./node_modules/css-loader/index.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/pages/reader/live/go-live.vue?vue&type=style&index=0&lang=css&\");\n/* harmony import */ var _node_modules_style_loader_index_js_node_modules_css_loader_index_js_ref_6_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_2_node_modules_vue_loader_lib_index_js_vue_loader_options_go_live_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_index_js_node_modules_css_loader_index_js_ref_6_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_2_node_modules_vue_loader_lib_index_js_vue_loader_options_go_live_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0__);\n/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_style_loader_index_js_node_modules_css_loader_index_js_ref_6_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_2_node_modules_vue_loader_lib_index_js_vue_loader_options_go_live_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0__) if([\"default\"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_style_loader_index_js_node_modules_css_loader_index_js_ref_6_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_2_node_modules_vue_loader_lib_index_js_vue_loader_options_go_live_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9yZXNvdXJjZXMvanMvcGFnZXMvcmVhZGVyL2xpdmUvZ28tbGl2ZS52dWU/OGJmYiJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtBQUFBO0FBQUE7QUFBQSIsImZpbGUiOiIuL3Jlc291cmNlcy9qcy9wYWdlcy9yZWFkZXIvbGl2ZS9nby1saXZlLnZ1ZT92dWUmdHlwZT1zdHlsZSZpbmRleD0wJmxhbmc9Y3NzJi5qcyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gXCItIS4uLy4uLy4uLy4uLy4uL25vZGVfbW9kdWxlcy9zdHlsZS1sb2FkZXIvaW5kZXguanMhLi4vLi4vLi4vLi4vLi4vbm9kZV9tb2R1bGVzL2Nzcy1sb2FkZXIvaW5kZXguanM/P3JlZi0tNi0xIS4uLy4uLy4uLy4uLy4uL25vZGVfbW9kdWxlcy92dWUtbG9hZGVyL2xpYi9sb2FkZXJzL3N0eWxlUG9zdExvYWRlci5qcyEuLi8uLi8uLi8uLi8uLi9ub2RlX21vZHVsZXMvcG9zdGNzcy1sb2FkZXIvc3JjL2luZGV4LmpzPz9yZWYtLTYtMiEuLi8uLi8uLi8uLi8uLi9ub2RlX21vZHVsZXMvdnVlLWxvYWRlci9saWIvaW5kZXguanM/P3Z1ZS1sb2FkZXItb3B0aW9ucyEuL2dvLWxpdmUudnVlP3Z1ZSZ0eXBlPXN0eWxlJmluZGV4PTAmbGFuZz1jc3MmXCIiXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./resources/js/pages/reader/live/go-live.vue?vue&type=style&index=0&lang=css&\n");
/***/ }),
/***/ "./resources/js/pages/reader/live/go-live.vue?vue&type=template&id=65275b81&":
/*!***********************************************************************************!*\
!*** ./resources/js/pages/reader/live/go-live.vue?vue&type=template&id=65275b81& ***!
\***********************************************************************************/
/*! exports provided: render, staticRenderFns */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_go_live_vue_vue_type_template_id_65275b81___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../node_modules/vue-loader/lib??vue-loader-options!./go-live.vue?vue&type=template&id=65275b81& */ \"./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/pages/reader/live/go-live.vue?vue&type=template&id=65275b81&\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_go_live_vue_vue_type_template_id_65275b81___WEBPACK_IMPORTED_MODULE_0__[\"render\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_go_live_vue_vue_type_template_id_65275b81___WEBPACK_IMPORTED_MODULE_0__[\"staticRenderFns\"]; });\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9yZXNvdXJjZXMvanMvcGFnZXMvcmVhZGVyL2xpdmUvZ28tbGl2ZS52dWU/ZmQzOCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUEiLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvcGFnZXMvcmVhZGVyL2xpdmUvZ28tbGl2ZS52dWU/dnVlJnR5cGU9dGVtcGxhdGUmaWQ9NjUyNzViODEmLmpzIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSBcIi0hLi4vLi4vLi4vLi4vLi4vbm9kZV9tb2R1bGVzL3Z1ZS1sb2FkZXIvbGliL2xvYWRlcnMvdGVtcGxhdGVMb2FkZXIuanM/P3Z1ZS1sb2FkZXItb3B0aW9ucyEuLi8uLi8uLi8uLi8uLi9ub2RlX21vZHVsZXMvdnVlLWxvYWRlci9saWIvaW5kZXguanM/P3Z1ZS1sb2FkZXItb3B0aW9ucyEuL2dvLWxpdmUudnVlP3Z1ZSZ0eXBlPXRlbXBsYXRlJmlkPTY1Mjc1YjgxJlwiIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./resources/js/pages/reader/live/go-live.vue?vue&type=template&id=65275b81&\n");
/***/ })
}]);
|
var Batch = require('./Batch');
/****************************************************************************
BatchLighting
var BatchLighting = Batch
BatchLighting.create()
- BatchLighting only records the occluder verts/uv per light, and always matches the maximum number of lights.
- Uses the global FX lights array buffers to supply per light info, which saves space and centralizes.
****************************************************************************/
var BatchLighting = Batch.extend({
// sprite that will use the lights to calculate lighting or shadows
occluder: null,
// default vertex attributes:
// a_position -> occluder pos(xyz)
// a_texCoord -> occluder tex(uv)
attributeCount: 5,
stride: 5 * Float32Array.BYTES_PER_ELEMENT,
release: function () {
Batch.prototype.release.call(this);
this.occluder = null;
},
setOccluder: function (occluder) {
this.occluder = occluder;
this.setDirty();
},
// rebuilding buffers
getBatchSize: function () {
var fx = this.getFX();
if (fx) {
return Math.max(0, fx.batchLights.getBatchSize(), fx.batchShadowCastingLights.getBatchSize());
} else {
return 0;
}
},
insertObjects: function () {
var batchSize = this.getBatchSize();
var attributeCount = this.attributeCount;
for(var i = 0; i < batchSize; i++) {
this.insertObjectVertices(this.occluder, i * attributeCount * 4);
}
},
insertObjectVertices: function (occluder, offset) {
var attributeCount = this.attributeCount;
var quad = occluder.getQuad();
var tl = quad.tl;
var tr = quad.tr;
var bl = quad.bl;
var br = quad.br;
this.insertVertexAttributes( offset + attributeCount * 0, tl.vertices.x, tl.vertices.y, tl.vertices.z, tl.texCoords.u, tl.texCoords.v); // tl
this.insertVertexAttributes( offset + attributeCount * 1, bl.vertices.x, bl.vertices.y, bl.vertices.z, bl.texCoords.u, bl.texCoords.v); // bl
this.insertVertexAttributes( offset + attributeCount * 2, tr.vertices.x, tr.vertices.y, tr.vertices.z, tr.texCoords.u, tr.texCoords.v); // tr
this.insertVertexAttributes( offset + attributeCount * 3, br.vertices.x, br.vertices.y, br.vertices.z, br.texCoords.u, br.texCoords.v); // br
},
insertVertexAttributes: function (offset, x, y, z, u, v) {
var vertices = this.vertices;
vertices[offset + 0] = x;
vertices[offset + 1] = y;
vertices[offset + 2] = z;
vertices[offset + 3] = u;
vertices[offset + 4] = v;
},
// drawing
renderWithLights: function (batchSize, offset) {
this.render(this.getFX().batchLights, batchSize, offset);
},
renderWithShadowCastingLights: function (batchSize, offset) {
this.render(this.getFX().batchShadowCastingLights, batchSize, offset);
},
render:function (sharedBatch, batchSize, offset) {
if(sharedBatch) {
if (sharedBatch.getDirty()) {
sharedBatch.rebuild();
}
var batchSizeMax = sharedBatch.getBatchSize();
batchSize = Math.min(batchSize || batchSizeMax, batchSizeMax);
if(batchSize > 0 && this.occluder) {
offset || ( offset = 0 );
var gl = cc._renderContext;
if (this.getDirty() || batchSize > (this.indices.length / 6)) {
this.rebuild();
}
cc.glEnableVertexAttribs(cc.VERTEX_ATTRIB_FLAG_POS_COLOR_TEX);
// have to enable custom attributes manually
gl.enableVertexAttribArray(cc.VERTEX_ATTRIB_ORIGIN_RADIUS);
// use own vertices and texture coords
gl.bindBuffer(gl.ARRAY_BUFFER, this.verticesBuffer);
gl.vertexAttribPointer(cc.VERTEX_ATTRIB_POSITION, 3, gl.FLOAT, false, this.stride, 0);
gl.vertexAttribPointer(cc.VERTEX_ATTRIB_TEX_COORDS, 2, gl.FLOAT, false, this.stride, 3 * Float32Array.BYTES_PER_ELEMENT);
// get colors and properties from shared batch lights
gl.bindBuffer(gl.ARRAY_BUFFER, sharedBatch.verticesBuffer);
gl.vertexAttribPointer(cc.VERTEX_ATTRIB_COLOR, 4, gl.FLOAT, false, sharedBatch.stride, 5 * Float32Array.BYTES_PER_ELEMENT);
gl.vertexAttribPointer(cc.VERTEX_ATTRIB_ORIGIN_RADIUS, 4, gl.FLOAT, false, sharedBatch.stride, 9 * Float32Array.BYTES_PER_ELEMENT);
gl.bindBuffer(gl.ELEMENT_ARRAY_BUFFER, this.indicesBuffer);
gl.drawElements(gl.TRIANGLES, batchSize * 6, gl.UNSIGNED_SHORT, offset * 6 * this.indices.BYTES_PER_ELEMENT);
cc.incrementGLDraws(1);
// and don't forget to disable custom attributes manually
gl.disableVertexAttribArray(cc.VERTEX_ATTRIB_ORIGIN_RADIUS);
}
}
}
});
BatchLighting.create = function (occluder, batch) {
var batch = Batch.create(batch || new BatchLighting());
if(batch) {
batch.setOccluder(occluder);
return batch;
}
};
module.exports = BatchLighting;
|
export const VNodeFlags = {
// html 标签
ELEMENT_HTML: 1 << 0,
// svg 标签
ELEMENT_SVG: 1 << 1,
// 普通的带状态组件
COMPONENT_STATEFUL_NORMAL: 1 << 2,
// 需要被 keepAlive 的带状态组件
COMPONENT_STATEFUL_SHOULD_KEEP_ALIVE: 1 << 3,
// 已经被 keepAlive 的带状态组件
COMPONENT_STATEFUL_KEPT_ALIVE: 1 << 4,
// 函数式组件
COMPONENT_FUNCTIONAL: 1 << 5,
// 纯文本
TEXT: 1 << 6,
// Fragment
FRAGMENT: 1 << 7,
// Portal
PORTAL: 1 << 8
}
// html 和 svg 都是标签元素,可以用 ELEMENT 表示
VNodeFlags.ELEMENT = VNodeFlags.ELEMENT_HTML | VNodeFlags.ELEMENT_SVG
// 普通带状态组件、需要被 keepAlive 的带状态组件、已经被 keepAlive 的带状态组件
// 都是“带状态组件”,统一用 COMPONENT_STATEFUL 表示
VNodeFlags.COMPONENT_STATEFUL =
VNodeFlags.COMPONENT_STATEFUL_NORMAL |
VNodeFlags.COMPONENT_STATEFUL_SHOULD_KEEP_ALIVE |
VNodeFlags.COMPONENT_STATEFUL_KEPT_ALIVE
// 带状态组件 和 函数式组件都是“组件”,用 COMPONENT 表示
VNodeFlags.COMPONENT = VNodeFlags.COMPONENT_STATEFUL | VNodeFlags.COMPONENT_FUNCTIONAL
// 对 VNodeFlags 的描述
export const VNodeFlagsDescription = {
[VNodeFlags.ELEMENT_HTML]: 'ELEMENT_HTML',
[VNodeFlags.ELEMENT_SVG]: 'ELEMENT_SVG',
[VNodeFlags.COMPONENT_STATEFUL_NORMAL]: 'COMPONENT_STATEFUL_NORMAL',
[VNodeFlags.COMPONENT_STATEFUL_SHOULD_KEEP_ALIVE]: 'COMPONENT_STATEFUL_SHOULD_KEEP_ALIVE',
[VNodeFlags.COMPONENT_STATEFUL_KEPT_ALIVE]: 'COMPONENT_STATEFUL_KEPT_ALIVE',
[VNodeFlags.COMPONENT_FUNCTIONAL]: 'COMPONENT_FUNCTIONAL',
[VNodeFlags.TEXT]: 'TEXT',
[VNodeFlags.FRAGMENT]: 'FRAGMENT',
[VNodeFlags.PORTAL]: 'PORTAL',
[VNodeFlags.ELEMENT]: 'ELEMENT',
[VNodeFlags.COMPONENT_STATEFUL]: 'COMPONENT_STATEFUL',
[VNodeFlags.COMPONENT]: 'COMPONENT'
}
export const ChildrenFlags = {
// 未知的 children 类型
UNKNOWN_CHILDREN: 0,
// 没有 children
NO_CHILDREN: 1 << 0,
// children 是单个 VNode
SINGLE_VNODE: 1 << 1,
// children 是多个拥有 key 的 VNode
KEYED_VNODES: 1 << 2,
// children 是多个没有 key 的 VNode
NONE_KEYED_VNODES: 1 << 3,
}
ChildrenFlags.MULTIPLE_VNODES = ChildrenFlags.KEYED_VNODES | ChildrenFlags.NONE_KEYED_VNODES
export const ChildrenFlagsDescription = {
[ChildrenFlags.NO_CHILDREN]: 'NO_CHILDREN',
[ChildrenFlags.SINGLE_VNODE]: 'SINGLE_VNODE',
[ChildrenFlags.KEYED_VNODES]: 'KEYED_VNODES',
[ChildrenFlags.NONE_KEYED_VNODES]: 'NONE_KEYED_VNODES',
[ChildrenFlags.UNKNOWN_CHILDREN]: 'UNKNOWN_CHILDREN',
[ChildrenFlags.MULTIPLE_VNODES]: 'MULTIPLE_VNODES'
}
|
import React from 'react';
export default function (props) {
return (
<div style={{position: "absolute", top: "0", bottom: "0", left: "0", right: "0", margin: "auto", width: '60%', height: '60%'}}>
<svg style={props.style} fill="white" height="100%" viewBox="0 0 24 24" width="100%" xmlns="http://www.w3.org/2000/svg">
<path d="M0 0h24v24H0z" fill="none"/>
<path d="M16.01 7L16 3h-2v4h-4V3H8v4h-.01C7 6.99 6 7.99 6 8.99v5.49L9.5 18v3h5v-3l3.5-3.51v-5.5c0-1-1-2-1.99-1.99z"/>
</svg>
</div>
);
};
|
const path = require("path");
const themeEntries = require('./themes.js').themeEntries;
const extractThemesPlugin = require('./themes.js').extractThemesPlugin;
const HtmlWebpackPlugin = require('html-webpack-plugin');
const ModuleFederationPlugin = require('./moduleFederation').plugin;
const paths = {
base: path.join(__dirname, ".."),
dist: path.join(__dirname, "..", "web", "client", "dist"),
framework: path.join(__dirname, "..", "web", "client"),
code: path.join(__dirname, "..", "web", "client")
};
module.exports = require('./buildConfig')(
{
"mapstore2": path.join(paths.code, "product", "app"),
"embedded": path.join(paths.code, "product", "embedded"),
"ms2-api": path.join(paths.code, "product", "api"),
"dashboard-embedded": path.join(paths.code, "product", "dashboardEmbedded"),
"geostory-embedded": path.join(paths.code, "product", "geostoryEmbedded")
},
themeEntries,
paths,
[extractThemesPlugin, ModuleFederationPlugin],
true,
"dist/",
undefined,
[
new HtmlWebpackPlugin({
template: path.join(paths.framework, 'indexTemplate.html'),
chunks: ['mapstore2'],
inject: "body",
hash: true
}),
new HtmlWebpackPlugin({
template: path.join(paths.framework, 'embeddedTemplate.html'),
chunks: ['embedded'],
inject: "body",
hash: true,
filename: 'embedded.html'
}),
new HtmlWebpackPlugin({
template: path.join(paths.framework, 'apiTemplate.html'),
chunks: ['ms2-api'],
inject: 'head',
hash: true,
filename: 'api.html'
}),
new HtmlWebpackPlugin({
template: path.join(paths.framework, 'geostory-embedded-template.html'),
chunks: ['geostory-embedded'],
inject: "body",
hash: true,
filename: 'geostory-embedded.html'
}),
new HtmlWebpackPlugin({
template: path.join(paths.framework, 'dashboard-embedded-template.html'),
chunks: ['dashboard-embedded'],
inject: 'body',
hash: true,
filename: 'dashboard-embedded.html'
})
]
);
|
const iconBase64 = {
arrowLeftDark: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADsAAABRCAYAAABsSt6PAAAABHNCSVQICAgIfAhkiAAAB9RJREFUeF7dnH9oU1cUx+99r62t2gqCIBM7dMhwY4zBJujmLG1qqTaJa41ih5ImXYfbnMOtzP3CqhuKWFznhPkjrVNRpP5o2kqxiaUycOA/DjYmKP5g0m0gc7Oj1TbJOzs3NbGtSfPeeS/JywJC2/fOveeT8+6933PveXL2P/hY7DVljEn1nLGSCA4w+JkBP+Bv93wb+Rtez9xPWZl7upLLjiLBsvgUcFuR5LILZw9ey1jYUpvrZcbZGcb47EThAoCbwX7l+YyEtdjc73HO9iaCHHNdUaozCnbp0rVTlLwcDzq9WhMo3oxj+JOMgS2tcM4DWWrjjD+nFVTcD4qyIiNgLVbXKiZxEdGpJFDGrvm9nmdND2uxu77BaG6gQIYjCtCnSKElPW3f3zAtbHHFulmynI2zLVtABmXgHxqG6h+6Wu6KNkwJW2J3WSTGT6J/04mgCkZ0u7+9cBtjDYpZRQW32FxbOOdfoIMSCRTgrsJZ9QVvs3+8vWkiK9RQKBdO4vi0kCDDRnApFAqu6uk80herDVPAFle4F0gSnMGIziKDAjQG+m9u7u3tDcZrI+2wuKxswGWlER3JpoACY/c5wDpfe3N7Ivu0wQo1BHnZh3GOXJnIyXjXAdgVCXhVd8ehW2raSAusZXntfC4rXsb5PDVOxrlnf9bw5I1dXXuH1LaRctgSe81KnISO4L88tU6OuQ9gADivQ0V0XKt9ymCfczhynhoq+BqzlfVanYzcj+PzKgvyKv+5Q1cpbaQE1lKxtpBJOW0I+hLFyfCiwthx6cFwXXf30QFqG0mHFWoIH9lT2NE0kpPAhlDnbfR5PftJ9qOMkgjbIFlsd7ZiTD7D9ZPWD7BbGNEq3Ee6ohdU2NOcSNDz4vKaGbnZvBVn2yVUJ1HbtrPBrHV+/4H71DbG2xkO+0gNeTGYMylO4toZ5Aw2o0hopNhPZGMoLKqhD1AN7SKrIZF7cljV4225ZDSoYY/xqzZXPi6axzCaNqqTuEc0JvektpPUyI6oITiHo38O0cGYuSexrQnNdD3GFru7GmfbQzrUUNzc0zSwI2oofy8+tnV0pybOPentxrfUHFkj1BDugiXMPdMOW2x1lUsSP0FVQ1pyzzTCNkiltjtf4oy5maqGtOaeaYE1Qg2h45pzz5TDFttrFuFOwGmqGsKxSc49UwqLR4IfAuM7UcJnUTrWm3tS+kxk88RsbIwa0p97JnKccn0MrMXufIGDjHtDRDVkYO5JgUlkE4UttbqcKOJbEhnEvY65J5NClb62wz+R20iyIS8qcuZmTZO7kXqxjr46YEBea2TuqcOXuKYcJ6JGTLI3URvHiaged/p2U+1TacdL7e6/sEPNp2W4k/A75p6OZOWeyfgSOB72DlKyFozoHowo+YlIBkyiNsVj3EveKwLogsGsNWYfq5EvgRfb3K/LnF1M9K3Evw63GVfeMPMsHIUVP2B0bXikgLUL7GkyNMB63CT7jmyfAsPoOrvQ4cibOpx/RNepGu7aD+T01/7Y2vogBb5r7uIJuVhid78jMdiD0DmaW0MDoYl5KGT3dR6+TrFPpk3MnQosl8MzGeggn4RjtoNOV6s5IE4m3Pi2427LGFLjAKwp0H/jo4mO/k0B+8gJXmJzfS5x3oC/06pXGLscCgUq4xV1mAk27EuptWYJkyRRgKVZaT2CuccUpdLX0aJjidP/tajeXTSg4kwUX23Fo8ftI/NY6j+qYYVrRUVFWdkFz+wW56VUV8Uxh/yQrz5/3nOP2gbVThNspBMhQvDn4ygzp1A6FsWTuLRZjTp3VesDCTY8jsP1v7IXG5ivtrOx98Ew/r7J523eR7PXbkWGFV0J1TVluADPehie+VA/cIo/CDj11Eqo7VkXbPSxtrvfximnCcfyJLUdj7kP4DrO1suTrboMgRWOj6guJipiConAA7gZ4LzgbTlFsldhZBhsGNhSN41PDp7AiatcRd+xbwHY1zfp302/traKMW3ox1DY6GNtdX2KegsLm7lM8VacCylKwGq06koKbHi2FqqLhytmZlCA0eaewmB1rCJpYnvJKQ2KOFO0zDkzO1s6jRFeRHEQ12PcU+Dbfd7ZW0eXv1PaEjZJi2zEIYfDIf8zlL9Lz3YtHpBdlIZ4pV7VlXTY6DgWWz8jFTX5lMiEX1lROGZPnssU+5REdrRjS621cxQJzlFVF35ZAQ6s3tfuaaIApyyyEeeMUF2i1E96GKjWqrpSDht9rO3uWnRaVNzkUqKE4/g6hCS7ltrjtMGGRQgekTKQO6mqC9NF3MXktWqrytMKa5jqwpqNvpz+9xOprrTDjnqsP8YNjK/0qC6mDK/wdx79Ld6wMA2scFAUrMjA26iqS9RZKQqs6elo7ooFbCpY4aAxqovt8HkL8X2+xy8dpnydVTvrCtX191D+Dpyp69XaPHEfqq6HAXBEXic1LWzE8XD5IGcndaiuPzFHroocmJvuMR4fIaG6gCtncRy/qCPKdnEUY3rYCCC+V3sAI/wWCRjYoML43IyBFZB6ypdwh/7djIJ9rLrwv3DgfK6WKCtM2ZhxsAKwvPzNgmBO7jH80aoWOABsXkbCjlVdbKcK4C14xrQto2EFZInV+QqXpCYsb1oYA/oPzKy2+NubD5p+nVURsegtlgrXayDxxfi2l9iox4SI/eLvaMb9r8ef/wCR/ugzVU9a4AAAAABJRU5ErkJggg==',
arrowLeftLight: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADsAAABRCAYAAABsSt6PAAAABHNCSVQICAgIfAhkiAAABfhJREFUeF7dnGvIZWMUgB13uZVSSoiahCSFIswPJAqTS4MoaZQyGXfzTWbGDBlyv5XGJUUk91tT8oM/fkhRppRJQoqUSMj18zzT+53ON9+57L3evc/e26rVHHPOevd6zvvufdbN9Lb7H8js7OzpYNyInjKAs5nXG3u93sNzf9frMiuQ++D/M+iZYzi+4r3TgN7SWVhAjwHiFfSAAhv2ObCHdhIW0OUA9o9nAVg/cmGnYIHcHaefRJcWBBz82ExnYAFdhOevoYcHQDVZ0glYQN3JJ9A9gqDduGcB9d70Ho3Ktxgu5gH1RWt3Fsj9cfJN9OgoJXbvoxcA+oNrtBIW0FPx7QXU39GI/IvRbeh6QH29VVoFC+T2+LQWvQX1dUR+xGgpkO9ua9wa2BQNGSQsjhAmmw/581xAvU8XSCtgAT0OzwT1Po3KvRiuBPTvUQs0DgvoCpy7G90pSPkLdpcA+cYk+8ZgUzT0HA6ePcnJMe9/ynvnAPplkTUagQX0MJx7HTUqispGDK8G9I+iC0wdFtCLcc5oaLeiTm7zud/572VAeipKydRggdwZzx5Eryzl4fwPb0nH9rPIGlOBBfRAnDOIz4mGXsL+Mnb01wioNrXDAnoG13ke3TvopPfkNUA+FrTvm9UGm6IhQ7aZjC/1a2yXAPpxLmhtOwvoviz+IpoTDW3C/iJAf64CtBZYQE9g4ZfR/YJOGgHNAHlP0H6kWaXHGNDruNJd6I5BR7/D7jxAPwjajzWrBBbIPbnKs2hONDQv92wlLKBH4pjR0MFBB4fmnsG16tvZFA09xRV2CTo3MvcMrlc9LJDCPYIuy3BqbO6ZsW51D6gUDb3Fih7fqEzMPaMLj7Mr9YCqIBoqnHs2BgvkDlz8DtROWakvaMDpUrlnI7ApGjKIN1iISuncM3qh8DGuIBoK555ThQX0pnR0PcIRyco9IxecZLPg/kvRkAVqU7OoZOee0QsXPsYVREOV5Z61wgJ6ORew9xkVK3wWqD+JLlC3XQ9IC1/voCdmXMwG1KVV5p4Zvow0FfYB3rVQHRWr8KZ1rRdhf8LLSH3o+3Rsa8k96/jmhP2NhSM13PvZUZP1zoiw7+FttFZkW9D2oKla60XYk/HSKkFUvknH+aPoAtOy2xpUAGw55SH0oIwL23cpO5uUcbnypv0IKnXVnmaJ88sv07ewbWj70FSudTIsXLwKL+9D7c1ExODCNqIpXatkaG7KLtuTMVCIdsLNdpYDbH2qNTIyEQfYSRUTAidXomJb0fai8I3L2KoDwL6/GnWCJTq9YnvRY23K16gUKrEA7e+wAx7RuSTbjLYbTf0ak0Kwegew96/ATrZExfLr9UD/GV0gx64wbAK2h2PDKSdxsP1oG9J25FSlFOycZykI8eHj/G9EbEPajrQtOTUJwaZddtLFHo+TLxGZxehOdDXQ/0QWKGsThk3AZktOvjgBExVTRNuUtitrlSzYOc841k7AWASINrgckXVUNichmfhFVQKbdtmoy2K6kzER8SivQTcA7RGvXCqDTcBWPPwtzYm6asuRK4VNwK65Cl2HRgvsjtBaqbStWZlUDjtwHxt1OTHj5ExE/sLoBoDNsyuR2mDTLjsx489TTtRVWY5cK2wCNuqy1JpTnKskR64dduBYW/pxosbJmohk58hTg0277ETN22g06nKZcI48VdgEXEXUFcqRpw47cKyv4LVP2l0jZxqb0jlyY7Bpl524cfImGnW5TOEcuVHYBGzU5TxyTvO7UI7cOOzAsV7J69vRaNQ1MUduDWzaZSdyTCaiUdfYHLlVsAnYqMt55ZxRpKE5cutgE7BHeQPqkFlUFuTIrYQduI/P4rVR115RYuxWkUz4xYVH8zKuXc6UKohR16voUeUs5316HcC3tnpnB90F2kkeJ3qickRnYNO9LOyjaCTqurZTsAnYqMufp0NKbvGKzsEmYKMu/00ZH2BFZVEnYefouI9v5rWF9kmylgfU+k7Dpl0+lj/9vzePH0Js4X0NoI/7XudhB3bZccSTUAv1ho2bgTQS68t/8t7XllogUcMAAAAASUVORK5CYII=',
arrowRightDark: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADsAAABRCAYAAABsSt6PAAAABHNCSVQICAgIfAhkiAAAB/VJREFUeF7dnGtsFFUUx++d3T6wvCTBoAQCGj6gIcYvJEIIBbZgpbuLwIZHgLS7FTSmKkIQiQI+gfAICJGI3W0DhoctxN0tNrTbpohigjEYSeQDIU0wEAymSCul7Xbn+r9TFgt9zZyZfdRJNt2299xzfnMf87+v4ez+NavA+7zdxrYIxvM4Y0Pln4Vg1wQXx9o723b8cPro7XjawfoTXIw5nN5tXOEb+4IQTPzNVLYmEg58M1hBZdw8z+0rxs+v9EAAen8kGHhTT9p0TANYbyOYJxgI7kIsFl1YX3X4ugGbtEgqS1YYjkSw22jQS2vDgRrDtik04A639zfO+BRSDEJ8XBsKbCbZpsCIz3EWrVYU5Uuyb8FqlXa29MwZfxM5jyQZar1xnsu3g3G2gepTCHFdCPWVunD5z9Q8kmGnwcprjrtosSJ4OeM8h+IYDT/KVLEOj6f9FPtk2DyA1Uq4oHCSsNmC+ONkunNRye9FC2tqjtyl55EYy4dgpYsXPZ4hOR3DS/GP5WSXQlwRMcUdOV16mZxHAgx7wD6o1ui4OOf78Mmm+IUAuYfPqrpgWSXFPhE2fcJKZw534RQubEF0XhOpzqGvD97Ian7794qKDmoeVtn1CyudTHd5hw1h7GuUsIvqFMAXmdqxIFJ15Bo1DyvsBoR9UK1d3ncgPnZwzuwUx+it76BaL64LBiIUeytsdMNKZ7MLfFMVRZxCKY+lOMfzGMz800ho3BbGtqqUPMzYGIKVjubN842KZYsTKGUH2bEQZ9uiwnOuuuwWOQ+CoWHY+z64w+XdjBKWulgh+MU4QtxUVe6ur/JfoNhTbKiwmq88Z9FMKK4KfEZTnN9XXRuguvZS7I3amIKVznJfLhyTkaGcRFucZtR5PD1KOXSPsRU/hgIt1Dz02JmGlU48Ho/tdsfw7chsvR6nvaYRrFHE+PxEqi5LYOPBz3Z68xWFH0OmIyjQUnWhhhRHgv6jFPuBbCyFlc4cBSvHMyXzWzyPXxjIeV//R7U+dCOrpcRq1WU5rAR41uPJHNsx/HN8XUMHtl51JQQ2Duhw+zByEhhBcShO45dUXaoqltWHA9XGrXtaJBRWq9bziydzm4rBBJ9ECViqLtys7bWhce+bVV0Jh5WAc+euzBFDMsrR+SymAGs2FqiupMDGATFtu4YJtg9DxiwKtKa6uFhUHyw7T7FPKqxWrV0+2UvL3no8JWAMJTo5ExsxhbvbqH3SYTVgx+oR/LHOY2jH+UYDjqenqK6UwHbrrdejWm+jjpFh2yh4zB0Jll/Sc9NSCisDnO0umoYp3JMYQY3RE3CPNIK1o7v26lFdKYeVwc/ILxqdnaGNnmaSgLt6a789mvNGdfX+9r7ySAvYruC2Kg7XNTlG/gC/0MbITFxSVMVdEy7FymTPK41gu4Kb4/Y6FMZP4OsoSimj42pRBVvSm+pKO1itHResGmuzZZzC16lEYKm6do7Mat5UUVERi+eRlrDx4PJc3l1ox+sowFozZuwcxKanLlT6p/w9rWFlgHPdPiemIY9Qx8gyD1VVnXXhsqq0h9WAncUTIRPxeKKNkWU7bo+KZwYFbLwaY0bzIHrr1yjVGsCrBxVsVwmr50kCRLB3Bw0sOisXOhy55jSMVLIxMWNQwJrtlXFzwrVBvyutYectXP2k2hmDjGTTKaWp2QhxvEnYfb+ED7WmLazZ1QZgNqlMLOm+apiOsNibVbQJCuhDyAAbsUR73YWXVrByUM9yOivNrBBiJuNAZ/PVtQ0NDZ2P3qi0gTU7XYO2eRfCo7C/PRxpAYveFkKB7yVPxDF2mcdi7tqq8iv9VfuUwsptSEM7hh02NcXKROU/mS2rfqqowDpR/1fKYM1vMBMdKuNr64L+LwaCTOkQz/TWQeyVRG1wRkL+i3pBkz7Ey83NtdtHPL0HvW2JkSC7p8WyZsTWxpdQdsEmrRqbnX3QhqVCbK0LBT7pGpcbv5ICa3ZeSaohoC6sDZedNY74n0WiYU3vqkGolp1JSBisNful2L5o89X1vakhSgknBNbsTjiphgCzHItXIQpUXzaWw+JAVAlT+G5knEEJFD2PLjVEydsyWCsWnAF69G5mc7EeNZQyWLNbCfAgaYcufguzCfRTKDroTZesVEMQCYfJm0RwuBFxLjCqhnSw9UhChpXbf55qH74Xc7mvUxxrNkJUi1b7skjk0B1yHgYMSbDmN3aJGE5tbsbxts8MxGo6qWFYqYZQZTGbQNuyh9K8hY/HrBqikBuAxfqp+4+PEOgmzN0asHtIxp+PRtVFDd+V36QEa9ZGV9AWrYzvGZnVsqH7EqLZ4I3aDwh7Xw0FSUsOWh8kWuBkhdVqyCioTN8v7BzzJz4uKyqf39eyPyVgMza9wlpylifBaogC3QPW7CktVNs2VPkSqKFSSkCJtHkIVm6Z5YIFyFOaUg3xWIHeTViJBOstbw02P78kqzOz9QC+yjcb0K4kqyFKkDw3tzDbPsJWA+oZlAw01cfEe3ilw3aqfbLsuJm1T6yr/IXNHYvqQ/7vkxWwGT+A9TWhjT5uNJNHt90YtU9FehIsetydkVCA/EKAVIBqogI98HG01yV6ApAHFLCpcGVN0B/Wkz7d0nA5XOO2DLxygT8xQHC/cpUvTBc1RLmR2qMnd0HhhAxhk+dwnD0yEawVbXoXRALOvA7u6yFRMcv56nN2HnsJ1VXbfoN3QzW2x+6F/g/vgpI8/wIAKApud0ziBgAAAABJRU5ErkJggg==',
arrowRightLight: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADsAAABRCAYAAABsSt6PAAAABHNCSVQICAgIfAhkiAAABg9JREFUeF7VnF2oVUUUx88xySIkCvqASozooSiilx6E6CWCCM3SsKQiTEzQpLTMIjNQSdGgVIq+QCj6/lQhqF6i6CGDoB566CEKgiIwwrLs6/r/6ZzLud57ztl7rbXnzFkwzDmXvWbmt2fOnrVmrX3brSRjY2OX6eN6lWtUZqY/f6/6TZXN7Xb71861o1q3GbhAH1O1rg8EoMsF/PqogjLutkCXqn6uIsROAa+qeG1xlwH7nUY1u8bIPte1Nwr6xxo6RVwK7JhhJCzrmwX8gUF3aCrAfqXeLzWOYKOAHzHqZlcDdpl6fcbR84dplg842sii2nkab1Vvax098vu9QbO839FG46pHYRHN8EJVu1VOMfb6j/TWCHinUb9xtXHYBHyh6vdULnL0jBFyh6D/cLTRiOoE2AR8surnVRY7evxWutcL+BtHG+Gqk2C7ljUPridVTjL2+qf0bhcwM12E9IRNs8yWxLI+3zHap6V7j6D/drQRotoXNgHjFLykMs/R45fSnS/gHxxtuFUHwnYt69X6zBY13djrb9JbKOCPjPputcqwaZavUP22yjnGnjFNN6tsEPT/xjbMarVgE/Dpql9Tudrca6v1sXRvEvAvjjZqq9aGTcDoYRNTptXu9ZjCTypsT3hRWcQE2xmZrK6r9PkNlTOMo8XqWivgJ4z6tdRcsGmWz1b9lsqcWj1PvHiPvt4q6IOONgaqumET8Amqt6jcN7DH3hdwiHBdk1ZXCGzXsr5Wn19ROdUIjdW1VMAvG/X7qoXCplmepfpdlcsdA35WundHW13hsAn4RNU7VO5yAIdbXY3Adi1rPCc8KDwpi2B13aIZft+ifLxOo7BplvGNcSbwlS2C1cXD72Gv1dU4bALm9GO3CqchVnFbXVlgu5Y1v2F85BlGYqyuBZrhzyz6WWHTLPOU5mnNU9si/0ppnYAfr6ucHTYBsw+zH7MvW6W21TUU2K5ljcVFUM3qI2N14Ux8XeWODRU2zTI2NbY1NrZFDktpSRWra+iwCRivCe8JL8oqL0hxhaCBn1KKgE3A+MX4xwTErT4yy5llzfKeJMXAdkYmH5kTEE5COBGxCG7ioqmsruJg0yxzxsVZF2deFsHq2qbykKD/6zRQJGzXLG/X5zUW2qTziWrOun7me9GwaZbnqn5Rxeoj08xcAe8rHjYBE5Fge7L6yPyOLxgJ2K5lTShluXFZLxs1WGYYJ8BigDwwMrDakog1EXPqJKTVneArRwJWoLiFnvyrvXpAzSsaVpDnCZL4rnW/ZfZfVblTsIeKhQ2wpMjewZIajxoWBytI7OKNKg867ABOJtlbJ2ThFQUr0AjvZ5dAydqZFOkvBlagXr+W7ByydHrmcBQBK1CWLEuXmJFFyM4hTkTdU4YKK8iIs6jKeVdDgxWo95SR3+S9ms2nqi6FocAKdKUGyFEoMSGL8JTlactTt7JkhRVkRGSAfZP9s3YWbDZYgXpjPmTXPKqySaCWhPA8zrtAvdE8ZpFUfeI9Zml0ZgVJTIcHyBLzCFutsHcSGoMVKL4noUprSj73hyya+zWjxHfc0ghsgO+JNbRYkMRzwiQUVpDEbNhSPL4nOcocdPe1hix3IAxWoN6zXsZPlgzZMmTNhEsIbIDvSXxmlSDJkmlMXLBBvic5yOQi17KGLHfEDBvke5IFQzYMWTGNiwk2wPck/rJekASis0lt2ADfkxxj4i8ua8hyhyrDBvmeHHCT7ULWS3apBBvgewJGRI4sl/EQYm7agbABvidBJXKJQ60hy43qCRvke/YN+1sG7NGZEjbA92RMWENksfRM6PAM3KI7CTbA9/xLA1kpSLJXipJx2CDfs1YSVu47cRQ2+Z48QC5xDGCvdG/LZQ1Zxslr4OdK8QuVsywNJB22FF5dK1qAfUcjnG8cJVkovF/3qVE/qxqwv6tHy6vfWEN4K1lfMfPcHWA5uTutZiNbBEl8ZqQEWCLTiyqOGlcMa2hfxeuLugxYMrr5lwtnDhhZ+Ksnue9EZ+uZrY5J0pjq7edD+vt2zeaG3IOL7m+CBaVZvlgdkMreSb/BSNgj0JH/X1DcuCNkb9+Brume8QAAAABJRU5ErkJggg==',
hdr: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGkAAABECAYAAACCsBvSAAAABHNCSVQICAgIfAhkiAAAA7xJREFUeF7tnU9y2jAUxqVg9u0JWmaANSQHKL1BcoKmu86EBT1B6AkaZiDTJTlB6QnqHgDG3ZbOhJ6gHABblT2hGGLp2RKxDflYIj8s3k9P+vTn2fysOxdM8ZEFn2bDRl9Vrvv+tDvvc8auVddMhw1ZnPyhbE3qs2UjhCcYdwPfGXhfaou0v6fzVdrf0Ph6KR3iMsEn01H9Ln4df5aQton1psPmII2TnxLSbiPy/erFugEBkvSOjKrBbFjvUaBygxTViS2DldMOQQHSfzL8YjqsT3Sg8oQU1UN2y9NRsw1ID1SEEIvZqFkrFaSQUyDeA1KMih+Itnfb9FSgco+kKJrYN0CKERGCfZyNGjdlghSOTQcJKZwaUIO8qlw3LaCmHIQS/iHv6RrWqyPr9UZZ50OU4Lo5FuUkm/9rY6urFzUvPMhIAqR4H13SFQdAAqS+iXCgxjN0d9RAFCu3GVdsbAEJkMq3Co4xCWMSxqR1G7DZT0IkIZIQSYikxyoHKw47PrGR0Ta2kOCQ4JDg6zaASIpFA9VHQ91B3UHdQd1B3ZESwmZcsbGFuiPRbC6wcbSNLSABEiQ4JHhCFECCbztFexAlQy+S+dJjWwXP7IAMBoCUYV5YxAlWwcRPQCo9JD4ApJJD8ldODZBKDGl9Nh2QSgopntgGSCWDJKPnD+dcpohuEtqos+BPlilwbBJcnmDV+UqbNRHZCjYJhHCT8qMoSKXMPj+0/aRWd96pMPZdOTV6SLtUlQPSnro76iz46dV8wTl7pQKhyzIEpPwg9SSkz5poupNJzJdJ5YCUE6RW7/5FZbX6q4IUPRLAcWreTW25ew0g5QQpvM3Z1a8x4/ydEpTMNJ/dNseAZPGYHttNP1MBgUjKMZLCW5kICEDKH1JmAQFIOUMyERCAlDMkEwEBSAVAyiogAKkASFkFBCAVBym1gACkgiBlERCAVBCkNALCZ+ytN2y4gFQkpO7vc/lAu6/KlXFAeuwaarvBdllo946UykMkJTRfQNpxyhFun2fexUYkKTp6my7LxjapOoAESCo9svneJjPCxpaqmU002Ng+u0iiQJiWQzjsUTiYQqDt9E/ZRyTFPEh1d7Szza7wHedl0kGQ9a8BUtGQhFAeqQKkhEafdySF56+DqtPSRVG01mZxiAXCwax3i6wiQEKc695RgUgqMpJkF+dXqz0qggqHFHYtqoYYyHcvhEvlJg01nE2fMNZR2epeQ0fZmtQnbsMZ93yn4qaFs7bdt69aH+5fnzirS6X/V844fMnVP7l6qFbcTPqPAAAAAElFTkSuQmCC',
lifeOff: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFgAAABNCAYAAAAijqMcAAAABHNCSVQICAgIfAhkiAAAB0VJREFUeF7tnI+VEzcQxnEFgQpiKghUEFNBuAriqyBQQUwFgQqyVABXQXwVABXEVJCjgsv3+Y381vbuaj5ppd0z6L19Xjj9Gf12djQzkr14NFK5v7//FV2t7Aq9PsPN49YQO9zz+myft4vFgvfFCuSiDJRtiYv3/OQVyp3JE/69xc0Wct2OIdQitRMITnC/43qJa5XaD9pxgh9xvRsLNmSjPEG29gNWxSRsyvYeslFOuciAITyf/p+41vJo8QY7VNlgMu/jVc9rQDZC3eCijGOXBh2+gWyU0V3cgAuDPRWYk3iNyVB7oqUw2NPxCZqyuTTaBRgToBn4G1fO6xYF1VFhi/+77tMae+iUa5XSeUYbwqVcUQUYBGx2lubgVYYwuU05mStMhrAPZcKH3hbjLeR6PTTBXsAG9x805so7h0KN4ev5CLKt7Y2ag1z0gl70mYxOwPbqfZgR3ADy2m5oFuZUeiGfAZ6h5s4J5JAsnZC7AH8aQXO/oY8QQPCTi+PS+v1pYmJBth3koH0PJpCfubJ9hql43p7fEWBo7wZ/5KKWUr6iUYPr41DAYOaHi+Z6hAl55aRsXPG5KBFsZ7Gojx4TZfvZ2/lJPfrK5LgvB8AW/XBRUws14lVYgLyNzRRxMm8Lgk6SjXOwhTRVtudBydqACXflBWT1GK+/9DrdXX0b6AZ/+00cO1b9hpqYKdsSfVA25jKUwlzGi4MGJ2ov4/O1MupQXfNrOZlcO0itJdhoEOCVHbJRLobhSqHrtt1rMDqgMIoGjQo3SG3avMW/f1Fm0qr7BferHK3tGzcB8p7Rwib1nzAhLhjPSkzCHjY9jhTIxeC25KJHpCx+TwiYCw2DCm/Zq763ckq9BE0uCrf1hqmsrgiYK+UfThBfALdK6GyQd5ArZpOLvlGnXCAXtdhrwt4RMLXRu0oyTccHUqU4367ib1R7spCJPvxfTgC3BEz7601DVp2M2b6hN+zIqXdOOqua6HHdEfC9MOKTUovbkAw9ZoxbTNXTqBaJ/utlJgHGhFwJeu/gSj2b2NraNEMhr9JvSl1FKR8M4BQQpdqogN2r4pQaXApWSr8C4P0i5/YifgDeR710CLyB2Q0Bb9DAm6Ks7kWkaFjJNqIX8UaN5Kq7RSVhpfQtK6Ss8osFw8XvtgiJsW8wqY9TsmmT+MJzeKIpyhgAK+HfNZ5MM4cJ15YBgOmHe3e095wCYGVlPGTra09w6vEA2Lvrw6T/klFve8tISbof9pymnnSt8QGXWUTuuHvKYUOiDVjJdRbZ0fBIPlUdcUfjfNOTgqOTHT68GfunU+YDaoIWEzxHOfPTcxGKEf9utFjU3iMn4BQwFztqcWwXISjQxWuxqL1f8VYv229X19GpDSp4Q2ee4rmq+brWHkvwHCja2Y5P3+E/RYsvNj8h5h3OtJfE+46vKoHHDlr8tLZm1RgPgLlzcfTKD4zbGYANHcBWPIqLSwKJSZ1O7e3VYHPZFL+YTS4m+BCDCs6910zGvqOhRHcXE0IDsHJG+gYmsjfDGANM+8MtJa/bVvXcRAk7LJqGQ86hT5boLjEGVBa8B20qEkxDVKGigM0eb/HpPf3DxZH2+K6EhpXq03K9NA1er+EWc1zF5PECViO8BxeAADAPQHp3a6KmIYB3AU70KqKvT+zp1/p7ghnkFyNdB7zdgA1yg0/lpPfsXTezu0yke8/nSUkuFbB6OHrW9tjsrvJtVvkcsgTYtFjJ7LMJz5Fd13rdlXEAmPtra2cb2l1+PYFuq7vIgA2y6rrNbqNU3MDktJPmkATYICtRHl02hpPS03eriVgxwe4ORmtDw+cApj0mMO8W09nXTEUuo1UXQ+GsrygkA060x5Mcmm4/GcAdOjHf9RCzPKEswIn22O1Djqay1hHgqhnCbF8+G7BBbvDp9Y9pj7mXVzWUtr01hsJF/N0+ZRgLsOofV09tinZX9neLAjYtXtqi501tVrPHNfzd4oANsmrjknxLxTYn+LujrhGjmIiTVXqDf3u3/Yv6xwn53dH3FkcHPJdFL2FRSw4migQaQ51aEmWLOt7v9DJgYaQ3imdRI4njNVNFNNi0WE3SjwI5AS6TOPx5hp0XmlKvGGCDzMwbNdnrWWRBToQrZ8hmA9ggr/Cp/NgSzQS9C9eOQZisHXNi+pHuorcU92KKanBr8mvce7/bEJo1uOGqPvjq2mJGr4VjKKU4XApTBbBpcgpkNqUm8+Iu7h62QeUu9yoBLLuoArcq4EzIimbG6laDWx3wDCBXhTsJYIPMkLrB5fUuYlrp+Xt1uJMBNsiqC+eB2FUnabMydbDTdtUWuS6BbbHiAuaN+NR5c7uHP/042V7gpIBNkxnxcRvHm7D3Qs7+7UrvQEP1JgcchLPtHIL2bqL2zWv0367MAT0bwC3QG9zz3IW6ABIsHxB/I3iUpFEO2NB2doBboNcGOmafub1DsDzRORuwswfcAk0bTbduiYv3AeJurlDbmv8/syQ/I9Q4riYAAAAASUVORK5CYII=',
lifeOffDark: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFgAAABNCAYAAAAijqMcAAAABHNCSVQICAgIfAhkiAAACGlJREFUeF7tXc1u20YQ3pUiH5oAddE41yq3tk5R5wkiP0EVIDZ6i/IEtZ8gzhNUeQIrt8IOEPUJYj+BXTRue4tyjVPEBeIepEjbbyiSpW3+zCzJJe2WQGAbXO7OfDs7OzM7O9GqoOfmN2v3GkZ3jDKdSJcrWunF8G+jRkabkTL6UNHPmdo//m33sCASYrtZ+nptRTXUPYzZxpgr2vup2kFj0HuC30MaQO/eTJu9d7/u7hdBl7btZLHdXWzdaD3E910QFQVV1KXHoFFD/HtaFNg37zzoAMiHAJJo+3eCRZQpkGT28Mlw8mHy7GQ0pIkQP2KAF7/8vt1qTh9rrXvi0bI+IAlXauv4aOdZVtO490vL6w/B0FZUQm36ifvGGDOYTJtPTv74aSTpkw1wqcCepxhAT2dq88/fd4YcZsoE9gJpBPTpZJMr0SyAP/9qvdtomu08y40D1EWczd7kY/NRktR4k35tSnRZqyhLuk5mU/2IIwCpAHt69voC1IHasCGkiG9IR+Pf/XevnpM+DJ+qJj1KgzGqD3W2mcZnIsBzcFsvoWtXigAqbx9mZh5hExxQP7AMerqht/P2WcT30M2HUBmrSSojFmBf376oC7gBEAQy/V4XcEO6UkC+AHDdJLcIKXPRR5IkXwB4aXntIK/kQmf+Babmxruhn7BFtWnjL3I8PnXBcNIYIW1Gj0DcCUy6QAXmpo1APj7avRsd+wzAt+6sb+HlYysAjHmjtB5gGQ/THAZf/WyAsZ4zsEEb7Osh7Nh+mh1LXh/UT1cZ0wMvX1jhoNSTt692CEfvCQEm76ehGi+lnXoSMVMbwQbE/d5TRZ+0unBj+2UBbUsb8UAbqS1tELK7gZCFAC/dWXsptSfBwD7cyC7X6I4Dn4BeuN4aQGK+404Oq50xP49PJ71ctM3t7AFwucca029ELvbxq93VUIJtpBc24DPYgD3JwGltfbuWmMmlo0lq4QT0OE4Al3Z4igP4AhR3YT8zNVsl292T4FvLa0OJBBUNbkC179jsgZlv2ZxEGoKuXyan404eqU0aVwpygJH2luiNhfdshrBhYOmtlMEE0WALcpngBnRBlSHMyt/8xh/Gn2lams2mesEFOBB9bnubdlKQywY34EGK1XSq7mvYvX3YvT9wgCBGoHeduM5+vHmUqZNLXlHncYGqOOSqMNjFTzWsByhi3i45M7PNd0fP+5zJKKINR2JcrKgoLzeXH2w0dONHDn9kZRHA77lhSNfMEBMZK+yMUc9hOm8bicVFkUAN7w1ODu8hpV3W5pZGQRzItPzgljoPo5InunBt9pqHGDw5CcBwAVkBeu7gknY+Yz36ZvyxMZAe3UjGymorwezSAJzFtMv3IoAlu2KVEuwSwKyxuAAHmxzbivgf4LkjxHbMEA8hFbGFGWOFKKuwIrKkyfV7iRUB2p5IPTnnZpFrALPGkwqkLBYBkX97tNvNIuIqv+cGxiiqh5DlojiaVpUtXIdJk+pfEkYPYJH7Fzk+rwPTLmmQpAsEaQYewJKZiUbrXTJXh7G4pz6kHnDS0yavN/TMuLqFGI2eOdWBcRc0+AeiB5yxogcSIcCcyFXQeVknGhziq2ojOdGIPfQkwiHFI27EHvGA21XGA1wCLQnwnI+ZnwneiJR4wYeeLgGTjiWU3jCHjsY5AzD7FMGn8L8gxRLpRcLKG5hm7egEXgg/SjwVdDREfOK+VCIuU3uu5UA8xZ34xCf/3Whln4X5KF3l+IQo7hAjvRdURCBZEscDyX2jt0c7ty+TVHJpvbW8/pp73yOav5yqIoKXEosC31y5IJBIVSZIb6IE0wuJXUztr5LzIXEqPN3rp0nFrYzUMzaRdxdJeOMuwbq2E+VIZ0QY0y/BzLMLDzOTP4INz3HeRBkTJFEN0ZhDEi2Zp8SiDe+SqwqxamAIVCbANDOS7B+yKsan47tV5E/kkeh5nvLCAdtqQNYOAuqdrDFZAEs9vMvogEA1UAIk67SGoxoC4FkA21gVrvPYsiQp7b1UDVLWJDfBmw2wpyqEmd6XwXTzyx3Q9QnWrXxpqFYEsDRvt+76WHon0CYPWQSwJ8Xzq06syL7ngOB2OpL0vBuadXtg725zyzL4N5Y60poWYoAJJKnOSvLTqwRcEvv2BMXysNcKYBpQ6OWdwJ9clc5+WRMg1btYhtb5INYA+/fb2JdC4q6ZlgVgVr9CVzjXpR9rgC31cSVJ01HAJXdSfNUQ3trMmri497kAttHHEhvShqG0b6QRwiJs+dwAS+1jureApIzbrl1pv/zMQVn2btLEFgKw1D6uIjtIondt7N1SAabOfQlhhzZdXmJxYe+WDjANINVxtralRDdL7d2i94hCVESUYWHAulT7WOp1go/CzxYLB7gum550U8vjTKStqFIAFm96GaWxJCrB2w+EJcmK3NTO01oKwCGTggSWrPpjXJDF4FIu78fmSlmJjKUBHHh6qHtD18RYVUzygmwDLmIk4ggZd7KpXakAe56esNgSOSLcupBRRr1xTGObe6bmu8FnMiElwHHblg6wL8niUojccrK2VWFdmIhOJDiYaak9GpGQITYh1Dxr7Ad6cg7qDJWgTIcbMI9KnCtwnQJsK8ncpcht5xJc5wBXDbJrcCsBmAYtqkYaV2pdbWhx9DjZ5OIG9o9t2CacBMwz+nZe+rFUUyyNtsoAJqL8zWrIreIkBpmKghrVrfIssFKAPZDnZcxRWkxWujAT7AJqV2aOwWhQOcABjV6os2H63Ht6SbyVUbuSgWNik9oAHFBI4U6AtMF1r4PvCFh800c1gL7r46ja6uA0wrz6vVpvZOlnioQh1Nif/D0Z1gnYgLfaSfB50INCzkjXasN9XoTn5v2XN7BpR3UFNcrDP8KDHFgyeCmSAAAAAElFTkSuQmCC',
lifeOn: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFsAAABNCAYAAADJuRgfAAAABHNCSVQICAgIfAhkiAAACUdJREFUeF7tXWtIVncY/5+xQRsjDYvaElJqzSIqkz4E2QWWfhih3dwGld0+5Acr60tbQQW1NbausmxMu1CwpTJNg0gHvWkUEXb5pJZLJS2IKBW6jMXOzu+8vq/nfX3fc57n3NP+IJbv//L8f+c5v+fyf855JWFTk/fvnytGj84XY8ZkiPHjU8PTZmQkRizR0vJKvHjxj+jubhd9fR3iyZNz0rZt52wSI+408tGjm8S4cUtEQkKySEoaLcaO/VgkJ78fHtDbK4u2tt7w/x88uCOePr0unj37Vdq5s9MO+SQrk8jHjn0vJk5cIaZOTYkQnDspNnrjxt+itfUXadOmw9zhsfrLe/dOUMDdKSZP/lJkZn5iaU4oyL17LcrF+NGKYpgCWy4t/U1kZ6+xBHC83Xd1vRGBQK3o7Cwyo1HqHZaeflJkZU2yBHC8wU1NPeLatT1mlIIFtlxeflnZxHzlVmSNM7VpaHttbbW0atVSynhVk2fP/ssxkKOFgFJcuPCzVFDwLUU+9CGBpmpLTk6dSEv7kDqxbf1wC9fXf6enSfKZM3+KxYtzXVGC6I3V1bWJmze/oNyFhmB7uhHtxioqAlJe3kLtn1RtnjfvumVOtqoZ0PLy8pVGfK4Ltnzp0n3XbkvKhhsbH4uGhjnQIvnAga9EXt5ZR+wGRZZYfU6cKJPWr98Qb3hMsFWNWbas2RPaMNpoP62I1asPekIbRvLV1NyWcnJmxeoWG+zm5pe+BNpoo375vKLiikJ5C6LFGQS2bdTRqcQBHR3B9QIBIWbOFCJRiW/mz/cHJCH5IGNPT1A+NPxOSLAuYwxKiQBbMYZVYuXKXNMrXbkixKlTQXBDQMeaDBtasyb4Y8fGqAID4MNKzFRdbSzfAkUxt2wRYsIE6uyR/eC6lpV9ozWaYbBV927jxgZTPHj+vBC7dwtx5w5PMGg6NoQfJ0G/ezcIMhSB23IV3cPeZszgjhRCsS/SlCkfhQYOgN3Q8IjtQvUqqQQIgo1YaQAdQOTkWJkl9tg9e4IyWmmQD3Ns3syf5exZBGZLMFAFW0nSbBGFhYdYMwFo3GpcbdZbBPMBdLO3rnZuUBpoSo/OWBtWOmO+kyd5oxQ6kRIT3xsAu67uvli0iJ5LcALo0BagReB8M7dtaI7Tp4PAONHMAN5vLCXVp96xo4Ml1xLlroCRcaoBcFBTfj5/hbVrzXEzZyXIxqGUW7d6pIyMUZJcUvKDYhi3k9eCMYTRcKOBUjiAuwE09g1lAH1y6G7fvhRJrqm5pSRx0snYpStd7eRpo4WxFoVSioqsG2ojWbSfw4M6xDBzx4/vl+Smpudi1qzI05R4i8JPTUnhiGS9L9YD4HquIYwhjKubDXK1t9NXRFQp9/T8R/at7XCj6OIN9ARtVVXFHgljjY0jCnS7Ue86yHX16mNJVhpZRq/AhoDwAmCYtBqOYAV/d5PWtGDBa6KmH2AkWWA77YUYXXUYJoCL3/CfzUSERmtwPud4JWywFyq5e1zNdy2IAKLKXbtoaKhgt7S8FJ9/Tjvu8lqzadtyrxfHNVUNZGPjIzF3Lu2o30vOdg9C+koczkaORDkxD4gVK2hJZifDYPoW/dMTrh/VFT548GuJlYSC1UdQ864FjfTz52QkJDT0Znkko0Z549OSt+VSR05CCj52ZuanQbA5vO1W/sElzEwvg0QcNf8eyvqpYJeVlYp169aTFn5HJWwKEUhCKeUXQc1GmrWwsF2MHGlYtKNekNRUe5PypKvso04cCqmvb5Oysj6D9APHYpwDhOHulXC8EGT7+usBB8BGhdHWrX+Q9We4Gkq9pFg0eN3db6Tk5A9Cf44sZeCkW4drgHP79kCNiZFmRhXrRILNMZTDkbs5XN3XJ4vi4lRtdevgiqiurn+VxzQGHn/Qu3rDjbs5XB2jBG0w2FztdvuYzOjWdepzzjFYDK2O8Ea0MrIygUjGIPU6lBvyH+BqhOiURi2sVP1ubtHOUI8qcSRHrSiIo9VxNVsFnOOZ4PwPgY4X54AUTbPSBwfJly/TZ9ApiI8bMaqFlgUFDeSoErkCHC4MpQbaAH1Q06itra+ktLRwIWU0FLrhOSvXjZmHGp1w6AP7R85a5wFaw1wIy1iCRuCd2FnM6NWdwokUIWMco6gV3xhsbhg/FLKCXO9DCcuVk/5JRo/nGYKtGkvuEwlHjgQL3N/GBp6GQQw99kHZgwF9hKYggc32Tt5m/kb9NafcWFPsbnRd6GBzc97gbwQ7XlUrGe081uec3AfG95cCU5cig61qNzfYAdAA/G3wv0EboA9qlKgTvMQDnwW2Cjin9AEDUMgCl9DPzQxPFxcXcd/MwAbbFH+7XTvNvbBcnia4ebFEMAc2l7+xsl+zg1ye7i9L4F5P9DcFtin+RqADwP3E3+BphOPURvSnbeNs7URs/9tP+RNu3gMbJ/rTjoCtajinwAcD/MLf3LwHw592Dmzw9/LlzeSyYz/wN+fUBfJqaj+ojGObgYyeSH3RyoYNv5PTsV7yNzc/raRNRWXlFKO8B+UimDaQgwDnPk/pBX+Dp3FoywlcSkrmSdu3X6WAadTHNrBV/uYGPG7XnnBqPrAhE4GLHuC2gq0CziljwwC3Dhy4gYsNBjEaePvB5hpMNxJWHhlEx8FWtZsbYToJODdCNDhHNOJlV2kktBjbQ3EiQ+ih5+GY6xfvarLf+GAn4GZSpqWlEe90sqLFroOtUgq3nM0OSuFSB3LTDgMNLGw3kLGuqCnA8fQszjK5Da+l4J5/agrWuctx+rsCtikNxyDUEcIXpzzCjZfA4AJRC2pCKBm80pMDplFf18A2DTgGgstx4oP3imjPNPFGBNR34IcLMuZ1EWjXaER7xdmUYqQuZj4HR1dWntB7Sa2ZaY3GuKrZIWE8BdwlYxgLeE/AtkQpRuqj97mHQHtCIxGUwk3NWgEaqdLq6iy7MnhmRPFMs8OUgtLk3Nw61uEDd6dKMY24eHGmHTlp7tLa/p6DrVIKcinTp1exXnlH3bXJsgPq9Jx+vgA7rOWouFq69Cfy02p6O4U2BwIbjb6HgAOW1b6+AjvCW8nOzjcFOsoNamtZX2liFUTqeF+CHQYdR23TpuUbvlYJXga+wamlxbZvcKICyOnna7AjPBcAn5Q0R/3biBEjxevXfeq/Hz4s8RNV6IH/P9M/HvHQMwwzAAAAAElFTkSuQmCC',
light: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGkAAABpCAYAAAA5gg06AAAABHNCSVQICAgIfAhkiAAACcpJREFUeF7tnc9vVEUcwGfe7kINhBZIJB4MrbY1QQ3b9qQxaSEhYqKx8R+wXFBpCUUl6onlJAaUElokXCgnb1KjiRoS2SbGg0nLGn8kdqst8WDEoK3BUNjdN35nd1/ZrvvezLyZeW9e9+2lgZ39zsz3M/Od73znF0YR//QczvdbBGXdqmFjNHD9XNd0lKuJo1x4WvYYUgQIxpBiSEZoIDZ3RmDwLkQMKYakXwPxmKRfx9I5xJCkVahfQAxJv46lc4ghSatQv4AYkn4dS+cQQ+JUYfvQQgtNujjZscL5E2XJTIWkUifS86TOw/mNrTb5lGr9Dml76afzD95WRoBDkImQdh26ufkBvPQxLf6yhV+YP9d1l6MqrkmkIK0CwngfzYEQ9M0KaX02SFCmQaKAWvDylxijp8taJ+SqLCjfkOoBOc0gaFAmQfofoPtKkQLlC5IboDBAmQLJFZACUMKQVu1t1cS5GdKgepQJkJiAJEH5hfQ5wvgZ1mAYBKjdw790J1DpDbeylFDi/e8mHp1jldXv90++dmNryrr32eoY5CWIkK9v/ZvaJ+oFC0OiZaj2Jm5QBXvD899/uPNvv4ow9XcU0Abr7lfQYNPMMgIg8H6f8+NU+YIkCgo8nNw9e+Pe9QQqKEBU174hNTOoIAFJQ2pGUEEDUgKpmUA9ceTXHRuLxS90j0H145uUuasVJuJMRHGMqgKaBkCP6XQSGslWBul+j1qGiqBejorkwB19StQdZcrVkIAGS7dvKuTCAKTM3NXq5fGjv21rubdylQ0KH5sZ7zytQadaRPaN5N8Gwe96Cpdws73kKu1JTkYcoN6ZGe86qUWbGoX2juQzoLDjDbMgaPYOae33Mw9iFVkLJJqpKyiC3puZ6KKtMpKfvuH8SbASb60pPABa2dCy78czD/+lo1LaIDUCRRA5PTvefUxHRYKU2Tsydwoj/GY5T82AtIxJ9cpyehTBaGZ2vOugKmWmD82lExbqh/hgGmPcDnIHamUThJagBeYIIYsQV8uVbDSdO9+dU5U/mL6LmKA+nT3IKavWnuRkAksbW+a3d95GGWzLKCn96kK7lSgegeY7WAUjJI4CAw9t0i4mL+cudCwK/bg+cYZYnbfmN8Oq6z9Scjh+HAgkjnJ4JqnAKRwHMEOyspzfA7BJu5Q6IQ1LVYE85BgNKT260GYVi0egkBldugCzmLGTybO5sY4lXXnIyjUWUnnMwegSVwhGVgsQpS8RdEDlmCVbpNrfGwkpPZIfsBC6AoVrU1lZL1nU0bBtssdEUMZB6j00N4QtfCkoOPX5EJscmD3fPRlW/o3yNQoS7UEJhK6JKgjmX9/B0hiMKRhcbEL/Qg8ksFpK2mA+s1tUXskmPSb1KGMg0THIsvA1XhMH5mkaJpJTdik55eWhVd32QYgSDILsfh5gZdNXTPaY4vkZAYl6cYlC4RqPkwCT1xtw7H8oN96V5VF4bZq+kflBcL3HYHK7k/lbcCZmJrp7mOkCSGAEJM/AZY0SCMJnZ8c7R2X10jc8NwkN4mWWHOhRJyBKos39Z+XvfB86JGqOEsniAqvAqgd0XgelVEx2hG32QofE06pVA3IaBBcoQi6D2RtiNSKd34cKiacXqTJxbkrkaSRh96ZQIfWOzI9hRCBg2vhDnYTZia52na2Uyu4dztNIuaszEfbYFC6k4bkFr2h2CaE9frw4UajU64M51RX3xkIWZye6O0TlqkofGqTKehC+7qoYmAeBZzWgqqIsOeBhZr3mUWFOcEODBCZmFEzMGVdIAYdnmOUh6CiY3jEWbB3fY3p0RIVg27Z+Fzm9wBqwgx6smU6MoJdHT3tYlv2QCt1i2KoE46L8B2byF8Fuv8Irycu80Fgc7IVgn1TgzYwzHexdyLnF+mgYSsT89g7PXYDxllsfXkUMDZJX4xBVCCcDZjLvhoOWANJWppBqgiaApCb8w6tQJx1rSgB7BbnH8CaAFE7MjBVDjCHVNHvdUQa3Hhb3pDrNwE7QJVjjaW2kMBPHJFi7Woadt9zL+evC3HlOHkNay4FpwXW3NS3RhqMUUjxPqvRlo+dJoh6QqvSmzfBNK0+tnrldSlVwHDms2B2ky4I3tUd1vm7yYN5GN8AMuH3flLE7qgzWEoE5UfBglkzcGkhoPakMibmeFMwSAQzynksmTb2exBysASTdWA8xwQO6zB4AusQ6CBB0sLe+rqH2JFoYVjScpon3OOhqopxyeXqTDlBcm1Ag47B7Ea176D2pMjZ5HBiuga3K9PGYuHLDiPfd3dd+5RxSAZav2fu2K8crraNwvcAUZ2ddTVbZwWqf4TklGNaaVqM6GdGTaMEq55Fw1i2e16DwWWjrU6Vi6hPWXvBEsvAiGA3YbOI+D1ojH+J0pVIyHfamSKdMxkBaBeWxOcW150CsD2JuS7AFDP6iJbBTbbB/Ig2uYRvP/vJ6uWFOXI3uSU7heAd0UVPHm16XJ8mbfyQglXsUPacEx1oETJ+MDiq/pSaOkAGTziUZae5qNV05r4QmeZwJWULUSbCLqUFTxqD6+hg1JtUXrnr6fBQK2fg+H1k65Q4UzlK9SNGNhuRUpDzhTRQyPGeKuCsP++hKpVTG1N5TW49AICm9ESVZHILmP8R1Wq+OGD0AAOMcvRFlUgWccr3Ww40oOu8WsjAegFMZaYJxO9zzk17jaIAjAPcZ5TBMfmFjS84mJKvSKShfAkXw3sjfLVR/ndp6uaVrzXVqUb6lq3Ina4OrPiN+313DOKNmUFrGJNaluVHwqBo5IJ5XfGoEpRwSC1BN5SN1xScEZ+ESQnLK03vUBEopJAFAdMn1Z7jNOB2F24z7DpIUSuW/5YoDagClDJIooLvJZP8PZx/5g3teE3JCsZv11V6aqwTSegfktA8xUP5feVEeFhIElIMetD9KPaheYWGAkupJooDWy/M8QYPyDalZAdWaPpEXyPw+cEXz8wWp+nYDPHXAfjIuio+H8Poo3G/5lder/I9RwpAooG2bilcgwLmfWZkAXiCrvun3ultZ4E2/D0ROxTPrVJcgCFDCkFjPlzp1oI8uBvGWX5Rex/T7EKUwJAqBBcpvYURbMU1vAiRaDmaPgpeb/T477guSF6ggAZkEyROU5NPaviE1AhU0INMgOaDKj9M7jyVLAvLt3dWaJWr6ttjkI3AUdwT9OL2JkNY0XviH7OP0SiCVgWVIctfNP1t0PPDEGqdMGZPqy0m9YPp/KgLIUuaOpcAgvjcVksq6x5BUalOTrBiSJsWqFBtDUqlNTbJiSJoUq1JsDEmlNjXJiiFpUqxKsTEkldrUJCuGpEmxKsXGkFRqU5OsGJImxaoUG0NSqU1Nsv4D9uLKgw52PoIAAAAASUVORK5CYII=',
tv: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHkAAABmCAYAAADvej4HAAAABHNCSVQICAgIfAhkiAAABLRJREFUeF7tnU9O20AYxWdisy69AZFI1hY5QOkJgBO07BBEKpwAOEGDFNiW3oAbkAsQwpZUghtA1ySZjl0FhT9xIDxnXunzBhHZ73t5P3/j8cSSrRmzJVvdlZJxq9aYxFibjNtPn4dLwDl3ba3tGONa/XjuZ6dRvn3OjWf4cEvq3eXIue8CGw7eNJWdMbfWuL2zZvXg8fEPIC9tXn61JftjmiI6hiMB393H7cPq+qibe8gCzAEJ5OLkrFlZG2plkJPNy6RUsqf+n3lQEckETsA5s9M+rDRSGxnkWr176v8sB/al8sAE0mv0II7L6WTMpl0clew5UF9SJAl40PvtZmXPLtV/Nfys7BuJL9kAJpDeYvlJWNlD7rb8mP0pT9sZ66fl7tl7MKAnSb0yAevMtr/gfsg7rN+LM8g3eRMuN3Dr7aPq8Svra/cZJJBsXC1EUa+TB7pvzGfrJ11+6B6/+an4kwWTGfhXiRcmMGkkFuQXBsm8myAz0wF5E2RQkMwygsxMB+RNkEFBMssIMjMdkDdBBgXJLCPIzHRA3gQZFCSzjCAz0wF5E2RQkMwygsxMB+RNkEFBMssIMjMdkDdBBgXJLCPIzHRA3gQZFCSzjCAz0wF5E2RQkMwygsxMB+RNkEFBMssIMjMdkDdBBgXJLCPIzHRA3gQZFCSzjCAz0wF5E2RQkMwygsxMB+RNkEFBMssIMjMdkDdBBgXJLCPIzHRA3gQZFCSzjCAz0wF5E2RQkMwygsxMB+RNkEFBMssIMjMdkDdBBgXJLCPIzHRA3gQZFCSzjCAz0wF5E2RQkMwygsxMB+RNkEFBMssIMjMdkDdBBgXJLCPIzHRA3gQZFCSzjCAz0wF5E2RQkMwygsxMB+RNkEFBMssIMjMdkDdBBgXJLCPIzHRA3gQZFCSzjCAz0wF5E2RQkMwygsxMB+RNkEFBMssIMjMdkDdBBgXJLAOB3I/jj51GWW9BJyX9Mshb3du8N2n7N2jvt5uVPdLv+F/bSjYvk6hkz/NCyF6SPelMyASc869Ut+pmslPKN2DiX1M/nwvZj8Qp5D2/4y6Zf9kBJOCMu2g3q4lNNq4Worh3BdCUBFkCzpmd9mGl4ZvYmNrW5bEfjr+QeZSdtyTgzO/+XLyQTpozyMn21Xx017vOm4C9pZ6ODZGAXTtrLp6klTPIGeh6dzky5jSEHdXEJuCMPWg3F7eHqveQM9DplNzaljoaG/os1YbX4dGaDyBnoNOJWNRreNArszSnWm9LIJ1JD4zd7jQrrcdKTyDfD98edinqrXrYq28rH/Zo60ySv9jjLvxV6x9eA7CdgXEnz8F9drgOi6OY6pMWe9IVobyAinE1W9WxnTxbG8VVE+SR2XVxMYdVFmRBNhquwzYhpLo6WZ2sToa0UmARdbI6WZ08iyZMfxwp3fV2rfWLFgVsE39YL+iBCOfc9cCZg85RtVPA13qVZPD75NpW9+S9LqH6E+x2EMfl0M/IBYfsr5k3kx5hedVpS7Yzwy1acMi1etef8O93E2TPVpCLP8HVyQVnrE5WJxd8iv2VD9/J73h2bUYeppsJzTFFgkMePonibP5D4iFDmra2NbYxfJhuWg3EcX8AlAMdn7pUXrIAAAAASUVORK5CYII=',
}
export default iconBase64
|
var api = sc2.Initialize({
app: 'busy.app',
callbackURL: 'https://steemit.github.io/example-steemconnect-angular',
scope: ['vote', 'comment']
});
angular.module('app', [])
.config(['$locationProvider', function($locationProvider){
$locationProvider.html5Mode(true);
}])
.controller('Main', function($scope, $location, $http) {
$scope.loading = false;
$scope.parentAuthor = 'siol';
$scope.parentPermlink = '5vdmjq-test';
$scope.accessToken = $location.search().access_token;
$scope.expiresIn = $location.search().expires_in;
$scope.loginURL = api.getLoginURL();
if ($scope.accessToken) {
api.setAccessToken($scope.accessToken);
api.me(function (err, result) {
console.log('/me', err, result);
if (!err) {
$scope.user = result.account;
$scope.metadata = JSON.stringify(result.user_metadata, null, 2);
$scope.$apply();
}
});
}
$scope.isAuth = function() {
return !!$scope.user;
};
$scope.loadComments = function() {
steem.api.getContentReplies($scope.parentAuthor, $scope.parentPermlink, function(err, result) {
if (!err) {
$scope.comments = result.slice(-5);
$scope.$apply();
}
});
};
$scope.comment = function() {
$scope.loading = true;
var permlink = steem.formatter.commentPermlink($scope.parentAuthor, $scope.parentPermlink);
api.comment($scope.parentAuthor, $scope.parentPermlink, $scope.user.name, permlink, '', $scope.message, '', function(err, result) {
console.log(err, result);
$scope.message = '';
$scope.loading = false;
$scope.$apply();
$scope.loadComments();
});
};
$scope.vote = function(author, permlink, weight) {
api.vote($scope.user.name, author, permlink, weight, function (err, result) {
if (!err) {
alert('You successfully voted for @' + author + '/' + permlink);
console.log('You successfully voted for @' + author + '/' + permlink, err, result);
$scope.loadComments();
} else {
console.log(err);
}
});
};
$scope.updateUserMetadata = function(metadata) {
api.updateUserMetadata(metadata, function (err, result) {
if (!err) {
alert('You successfully updated user_metadata');
console.log('You successfully updated user_metadata', result);
if (!err) {
$scope.user = result.account;
$scope.metadata = JSON.stringify(result.user_metadata, null, 2);
$scope.$apply();
}
} else {
console.log(err);
}
});
};
$scope.logout = function() {
api.revokeToken(function (err, result) {
console.log('You successfully logged out', err, result);
delete $scope.user;
delete $scope.accessToken;
$scope.$apply();
});
};
});
|
/**
* freee API
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: v1.0
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
*
* Swagger Codegen version: 2.4.0-SNAPSHOT
*
* Do not edit the class manually.
*
*/
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD.
define(['expect.js', '../../src/index'], factory);
} else if (typeof module === 'object' && module.exports) {
// CommonJS-like environments that support module.exports, like Node.
factory(require('expect.js'), require('../../src/index'));
} else {
// Browser globals (root is window)
factory(root.expect, root.FreeeAccountingClient);
}
}(this, function(expect, FreeeAccountingClient) {
'use strict';
var instance;
beforeEach(function() {
instance = new FreeeAccountingClient.SegmentTagParams();
});
var getProperty = function(object, getter, property) {
// Use getter method if present; otherwise, get the property directly.
if (typeof object[getter] === 'function')
return object[getter]();
else
return object[property];
}
var setProperty = function(object, setter, property, value) {
// Use setter method if present; otherwise, set the property directly.
if (typeof object[setter] === 'function')
object[setter](value);
else
object[property] = value;
}
describe('SegmentTagParams', function() {
it('should create an instance of SegmentTagParams', function() {
// uncomment below and update the code to test SegmentTagParams
//var instance = new FreeeAccountingClient.SegmentTagParams();
//expect(instance).to.be.a(FreeeAccountingClient.SegmentTagParams);
});
it('should have the property companyId (base name: "company_id")', function() {
// uncomment below and update the code to test the property companyId
//var instance = new FreeeAccountingClient.SegmentTagParams();
//expect(instance).to.be();
});
it('should have the property name (base name: "name")', function() {
// uncomment below and update the code to test the property name
//var instance = new FreeeAccountingClient.SegmentTagParams();
//expect(instance).to.be();
});
it('should have the property description (base name: "description")', function() {
// uncomment below and update the code to test the property description
//var instance = new FreeeAccountingClient.SegmentTagParams();
//expect(instance).to.be();
});
it('should have the property shortcut1 (base name: "shortcut1")', function() {
// uncomment below and update the code to test the property shortcut1
//var instance = new FreeeAccountingClient.SegmentTagParams();
//expect(instance).to.be();
});
it('should have the property shortcut2 (base name: "shortcut2")', function() {
// uncomment below and update the code to test the property shortcut2
//var instance = new FreeeAccountingClient.SegmentTagParams();
//expect(instance).to.be();
});
});
}));
|
/*
@constructor
@params: title - string containing title of message
@params: participants - array containing a collection of particpants
*/
function MercurioChatParticipant(userId, participantReadyCallback){
var self = this;
firebase.database().ref('account/' + userId).on('value', function(snapshot) {
if(snapshot.exists()){
if(!self.userId){
// var picture = null;
// if(snapshot.val().picture === "" || snapshot.val().picture == null){
// picture = "https://firebasestorage.googleapis.com/v0/b/mercurio-39a44.appspot.com/o/system%2Fic_profile_color_200dp.png?alt=media&token=38e55453-3aa6-48e3-b2eb-f33978fc4a7b";
// }
// else{
// picture = snapshot.val().picture;
// }
AbstractAccount.apply(self, [snapshot.key, snapshot.val().firstName,
snapshot.val().lastName, snapshot.val().phone, snapshot.val().picture,
snapshot.val().status, snapshot.val().availability, snapshot.val().email,
snapshot.val().extension]);
participantReadyCallback(self);
}
else{
self.firstName = snapshot.val().firstName;
self.lastName = snapshot.val().lastName;
self.email = snapshot.val().email;
self.status = snapshot.val().status;
self.availability = snapshot.val().availability;
}
}
});
}
MercurioChatParticipant.prototype = Object.create(AbstractAccount.prototype);
MercurioChatParticipant.prototype.constructor = MercurioChatParticipant;
|
var ghPages = require('gh-pages');
var path = require('path');
ghPages.publish(path.join(process.cwd(), 'dist'), {
depth: 1,
logger: function (message) {
console.log(message);
}
}, function (err) {
if (err) {
throw err;
}
console.log('Site has been published!');
});
|
import React from "react"
import Layout from "../components/layout"
import Hero from "../components/hero"
import Header from '../components/header'
const IndexPage = ({ data }) => {
return (
<Layout>
<Header />
<Hero />
</Layout>
)
}
export default IndexPage
|
window.config = { publicPath: '' }
|
!function(){"use strict";var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var t,r=(function(e,t){function r(e,t){for(var r=0;r<e.length;++r)if(e[r]===t)return r;return-1}function n(e,t){var n=[],i=[];return null==t&&(t=function(e,t){return n[0]===t?"[Circular ~]":"[Circular ~."+i.slice(0,r(n,t)).join(".")+"]"}),function(o,a){if(n.length>0){var s=r(n,this);~s?n.splice(s+1):n.push(this),~s?i.splice(s,1/0,o):i.push(o),~r(n,a)&&(a=t.call(this,o,a))}else n.push(a);return null==e?a instanceof Error?function(e){var t={stack:e.stack,message:e.message,name:e.name};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}(a):a:e.call(this,o,a)}}(e.exports=function(e,t,r,i){return JSON.stringify(e,n(t,i),r)}).getSerialize=n}(t={exports:{}},t.exports),t.exports),n=r.getSerialize,i=Object.freeze({default:r,__moduleExports:r,getSerialize:n}),o=i&&r||i,a="undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{};function s(e){return void 0===e}function c(e){return"[object Object]"===Object.prototype.toString.call(e)}function l(e){return"[object String]"===Object.prototype.toString.call(e)}function u(e){return"[object Array]"===Object.prototype.toString.call(e)}function p(){try{return new ErrorEvent(""),!0}catch(e){return!1}}function h(){if(!("fetch"in a))return!1;try{return new Headers,new Request(""),new Response,!0}catch(e){return!1}}function f(e,t){var r,n;if(s(e.length))for(r in e)g(e,r)&&t.call(null,r,e[r]);else if(n=e.length)for(r=0;r<n;r++)t.call(null,r,e[r])}function d(e,t){if("number"!=typeof t)throw new Error("2nd argument to `truncate` function should be a number");return"string"!=typeof e||0===t?e:e.length<=t?e:e.substr(0,t)+"…"}function g(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function _(e){for(var t,r=[],n=0,i=e.length;n<i;n++)l(t=e[n])?r.push(t.replace(/([.*+?^=!:${}()|\[\]\/\\])/g,"\\$1")):t&&t.source&&r.push(t.source);return new RegExp(r.join("|"),"i")}function v(e){var t,r,n,i,o,a=[];if(!e||!e.tagName)return"";if(a.push(e.tagName.toLowerCase()),e.id&&a.push("#"+e.id),(t=e.className)&&l(t))for(r=t.split(/\s+/),o=0;o<r.length;o++)a.push("."+r[o]);var s=["type","name","title","alt"];for(o=0;o<s.length;o++)n=s[o],(i=e.getAttribute(n))&&a.push("["+n+'="'+i+'"]');return a.join("")}function m(e,t){return!!(!!e^!!t)}function b(e,t){if(m(e,t))return!1;var r,n,i=e.frames,o=t.frames;if(i.length!==o.length)return!1;for(var a=0;a<i.length;a++)if(r=i[a],n=o[a],r.filename!==n.filename||r.lineno!==n.lineno||r.colno!==n.colno||r.function!==n.function)return!1;return!0}var y=3,E=51200,w=40;function x(e){return function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(e))}function k(e){if("string"==typeof e){return d(e,40)}if("number"==typeof e||"boolean"==typeof e||void 0===e)return e;var t=Object.prototype.toString.call(e);return"[object Object]"===t?"[Object]":"[object Array]"===t?"[Array]":"[object Function]"===t?e.name?"[Function: "+e.name+"]":"[Function]":e}var S={isObject:function(e){return"object"==typeof e&&null!==e},isError:function(e){switch({}.toString.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return e instanceof Error}},isErrorEvent:function(e){return p()&&"[object ErrorEvent]"==={}.toString.call(e)},isUndefined:s,isFunction:function(e){return"function"==typeof e},isPlainObject:c,isString:l,isArray:u,isEmptyObject:function(e){if(!c(e))return!1;for(var t in e)if(e.hasOwnProperty(t))return!1;return!0},supportsErrorEvent:p,supportsFetch:h,supportsReferrerPolicy:function(){if(!h())return!1;try{return new Request("pickleRick",{referrerPolicy:"origin"}),!0}catch(e){return!1}},supportsPromiseRejectionEvent:function(){return"function"==typeof PromiseRejectionEvent},wrappedCallback:function(e){return function(t,r){var n=e(t)||t;return r&&r(n)||n}},each:f,objectMerge:function(e,t){return t?(f(t,function(t,r){e[t]=r}),e):e},truncate:d,objectFrozen:function(e){return!!Object.isFrozen&&Object.isFrozen(e)},hasKey:g,joinRegExp:_,urlencode:function(e){var t=[];return f(e,function(e,r){t.push(encodeURIComponent(e)+"="+encodeURIComponent(r))}),t.join("&")},uuid4:function(){var e=a.crypto||a.msCrypto;if(!s(e)&&e.getRandomValues){var t=new Uint16Array(8);e.getRandomValues(t),t[3]=4095&t[3]|16384,t[4]=16383&t[4]|32768;var r=function(e){for(var t=e.toString(16);t.length<4;)t="0"+t;return t};return r(t[0])+r(t[1])+r(t[2])+r(t[3])+r(t[4])+r(t[5])+r(t[6])+r(t[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})},htmlTreeAsString:function(e){for(var t,r=[],n=0,i=0,o=" > ".length;e&&n++<5&&!("html"===(t=v(e))||n>1&&i+r.length*o+t.length>=80);)r.push(t),i+=t.length,e=e.parentNode;return r.reverse().join(" > ")},htmlElementAsString:v,isSameException:function(e,t){return!m(e,t)&&(e=e.values[0],t=t.values[0],e.type===t.type&&e.value===t.value&&(r=e.stacktrace,n=t.stacktrace,(!s(r)||!s(n))&&b(e.stacktrace,t.stacktrace)));var r,n},isSameStacktrace:b,parseUrl:function(e){if("string"!=typeof e)return{};var t=e.match(/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/),r=t[6]||"",n=t[8]||"";return{protocol:t[2],host:t[4],path:t[5],relative:t[5]+r+n}},fill:function(e,t,r,n){if(null!=e){var i=e[t];e[t]=r(i),e[t].__raven__=!0,e[t].__orig__=i,n&&n.push([e,t,i])}},safeJoin:function(e,t){if(!u(e))return"";for(var r=[],n=0;n<e.length;n++)try{r.push(String(e[n]))}catch(e){r.push("[value cannot be serialized]")}return r.join(t)},serializeException:function e(t,r,n){if(!c(t))return t;n="number"!=typeof(r="number"!=typeof r?y:r)?E:n;var i=function e(t,r){return 0===r?k(t):c(t)?Object.keys(t).reduce(function(n,i){return n[i]=e(t[i],r-1),n},{}):Array.isArray(t)?t.map(function(t){return e(t,r-1)}):k(t)}(t,r);return x(o(i))>n?e(t,r-1):i},serializeKeysForMessage:function(e,t){if("number"==typeof e||"string"==typeof e)return e.toString();if(!Array.isArray(e))return"";if(0===(e=e.filter(function(e){return"string"==typeof e})).length)return"[object has no keys]";if(t="number"!=typeof t?w:t,e[0].length>=t)return e[0];for(var r=e.length;r>0;r--){var n=e.slice(0,r).join(", ");if(!(n.length>t))return r===e.length?n:n+"…"}return""},sanitize:function(e,t){if(!u(t)||u(t)&&0===t.length)return e;var r,n=_(t),i="********";try{r=JSON.parse(o(e))}catch(t){return e}return function e(t){return u(t)?t.map(function(t){return e(t)}):c(t)?Object.keys(t).reduce(function(r,o){return n.test(o)?r[o]=i:r[o]=e(t[o]),r},{}):t}(r)}},O=S.isObject,j=S.isError,C=S.isErrorEvent,R=S.isUndefined,T=S.isFunction,F=S.isPlainObject,A=S.isString,B=S.isArray,P=S.isEmptyObject,D=S.supportsErrorEvent,M=S.supportsFetch,U=S.supportsReferrerPolicy,H=S.supportsPromiseRejectionEvent,L=S.wrappedCallback,I=S.each,N=S.objectMerge,z=S.truncate,q=S.objectFrozen,K=S.hasKey,W=S.joinRegExp,V=S.urlencode,J=S.uuid4,$=S.htmlTreeAsString,X=S.htmlElementAsString,G=S.isSameException,Y=S.isSameStacktrace,Z=S.parseUrl,Q=S.fill,ee=S.safeJoin,te=S.serializeException,re=S.serializeKeysForMessage,ne=S.sanitize,ie=Object.freeze({default:S,__moduleExports:S,isObject:O,isError:j,isErrorEvent:C,isUndefined:R,isFunction:T,isPlainObject:F,isString:A,isArray:B,isEmptyObject:P,supportsErrorEvent:D,supportsFetch:M,supportsReferrerPolicy:U,supportsPromiseRejectionEvent:H,wrappedCallback:L,each:I,objectMerge:N,truncate:z,objectFrozen:q,hasKey:K,joinRegExp:W,urlencode:V,uuid4:J,htmlTreeAsString:$,htmlElementAsString:X,isSameException:G,isSameStacktrace:Y,parseUrl:Z,fill:Q,safeJoin:ee,serializeException:te,serializeKeysForMessage:re,sanitize:ne}),oe=ie&&S||ie,ae={collectWindowErrors:!0,debug:!1},se="undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},ce=[].slice,le="?",ue=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/;function pe(){return"undefined"==typeof document||null==document.location?"":document.location.href}ae.report=function(){var e,t,r=[],n=null,i=null,o=null;function a(e,t){var n=null;if(!t||ae.collectWindowErrors){for(var i in r)if(r.hasOwnProperty(i))try{r[i].apply(null,[e].concat(ce.call(arguments,2)))}catch(e){n=e}if(n)throw n}}function s(t,r,n,i,s){var l=oe.isErrorEvent(s)?s.error:s,u=oe.isErrorEvent(t)?t.message:t;if(o)ae.computeStackTrace.augmentStackTraceWithInitialElement(o,r,n,u),c();else if(l&&oe.isError(l))a(ae.computeStackTrace(l),!0);else{var p,h={url:r,line:n,column:i},f=void 0;if("[object String]"==={}.toString.call(u))(p=u.match(ue))&&(f=p[1],u=p[2]);h.func=le,a({name:f,message:u,url:pe(),stack:[h]},!0)}return!!e&&e.apply(this,arguments)}function c(){var e=o,t=n;n=null,o=null,i=null,a.apply(null,[e,!1].concat(t))}function l(e,t){var r=ce.call(arguments,1);if(o){if(i===e)return;c()}var a=ae.computeStackTrace(e);if(o=a,i=e,n=r,setTimeout(function(){i===e&&c()},a.incomplete?2e3:0),!1!==t)throw e}return l.subscribe=function(n){t||(e=se.onerror,se.onerror=s,t=!0),r.push(n)},l.unsubscribe=function(e){for(var t=r.length-1;t>=0;--t)r[t]===e&&r.splice(t,1)},l.uninstall=function(){t&&(se.onerror=e,t=!1,e=void 0),r=[]},l}(),ae.computeStackTrace=function(){function e(e){if(void 0!==e.stack&&e.stack){for(var t,r,n,i=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|native|eval|webpack|<anonymous>|[a-z]:|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,o=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx(?:-web)|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,a=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,s=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,c=/\((\S*)(?::(\d+))(?::(\d+))\)/,l=e.stack.split("\n"),u=[],p=(/^(.*) is undefined$/.exec(e.message),0),h=l.length;p<h;++p){if(r=i.exec(l[p])){var f=r[2]&&0===r[2].indexOf("native");r[2]&&0===r[2].indexOf("eval")&&(t=c.exec(r[2]))&&(r[2]=t[1],r[3]=t[2],r[4]=t[3]),n={url:f?null:r[2],func:r[1]||le,args:f?[r[2]]:[],line:r[3]?+r[3]:null,column:r[4]?+r[4]:null}}else if(r=o.exec(l[p]))n={url:r[2],func:r[1]||le,args:[],line:+r[3],column:r[4]?+r[4]:null};else{if(!(r=a.exec(l[p])))continue;r[3]&&r[3].indexOf(" > eval")>-1&&(t=s.exec(r[3]))?(r[3]=t[1],r[4]=t[2],r[5]=null):0!==p||r[5]||void 0===e.columnNumber||(u[0].column=e.columnNumber+1),n={url:r[3],func:r[1]||le,args:r[2]?r[2].split(","):[],line:r[4]?+r[4]:null,column:r[5]?+r[5]:null}}!n.func&&n.line&&(n.func=le),u.push(n)}return u.length?{name:e.name,message:e.message,url:pe(),stack:u}:null}}function t(e,t,r,n){var i={url:t,line:r};if(i.url&&i.line){if(e.incomplete=!1,i.func||(i.func=le),e.stack.length>0&&e.stack[0].url===i.url){if(e.stack[0].line===i.line)return!1;if(!e.stack[0].line&&e.stack[0].func===i.func)return e.stack[0].line=i.line,!1}return e.stack.unshift(i),e.partial=!0,!0}return e.incomplete=!0,!1}function r(e,i){for(var o,a,s=/function\s+([_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*)?\s*\(/i,c=[],l={},u=!1,p=r.caller;p&&!u;p=p.caller)if(p!==n&&p!==ae.report){if(a={url:null,func:le,line:null,column:null},p.name?a.func=p.name:(o=s.exec(p.toString()))&&(a.func=o[1]),void 0===a.func)try{a.func=o.input.substring(0,o.input.indexOf("{"))}catch(e){}l[""+p]?u=!0:l[""+p]=!0,c.push(a)}i&&c.splice(0,i);var h={name:e.name,message:e.message,url:pe(),stack:c};return t(h,e.sourceURL||e.fileName,e.line||e.lineNumber,e.message||e.description),h}function n(t,n){var i=null;n=null==n?0:+n;try{if(i=e(t))return i}catch(e){if(ae.debug)throw e}try{if(i=r(t,n+1))return i}catch(e){if(ae.debug)throw e}return{name:t.name,message:t.message,url:pe()}}return n.augmentStackTraceWithInitialElement=t,n.computeStackTraceFromStackProp=e,n}();var he=ae,fe=Object.freeze({default:he,__moduleExports:he});function de(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function ge(e,t,r,n,i,o){return de((a=de(de(t,e),de(n,o)))<<(s=i)|a>>>32-s,r);var a,s}function _e(e,t,r,n,i,o,a){return ge(t&r|~t&n,e,t,i,o,a)}function ve(e,t,r,n,i,o,a){return ge(t&n|r&~n,e,t,i,o,a)}function me(e,t,r,n,i,o,a){return ge(t^r^n,e,t,i,o,a)}function be(e,t,r,n,i,o,a){return ge(r^(t|~n),e,t,i,o,a)}function ye(e,t){var r,n,i,o,a;e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;var s=1732584193,c=-271733879,l=-1732584194,u=271733878;for(r=0;r<e.length;r+=16)n=s,i=c,o=l,a=u,c=be(c=be(c=be(c=be(c=me(c=me(c=me(c=me(c=ve(c=ve(c=ve(c=ve(c=_e(c=_e(c=_e(c=_e(c,l=_e(l,u=_e(u,s=_e(s,c,l,u,e[r],7,-680876936),c,l,e[r+1],12,-389564586),s,c,e[r+2],17,606105819),u,s,e[r+3],22,-1044525330),l=_e(l,u=_e(u,s=_e(s,c,l,u,e[r+4],7,-176418897),c,l,e[r+5],12,1200080426),s,c,e[r+6],17,-1473231341),u,s,e[r+7],22,-45705983),l=_e(l,u=_e(u,s=_e(s,c,l,u,e[r+8],7,1770035416),c,l,e[r+9],12,-1958414417),s,c,e[r+10],17,-42063),u,s,e[r+11],22,-1990404162),l=_e(l,u=_e(u,s=_e(s,c,l,u,e[r+12],7,1804603682),c,l,e[r+13],12,-40341101),s,c,e[r+14],17,-1502002290),u,s,e[r+15],22,1236535329),l=ve(l,u=ve(u,s=ve(s,c,l,u,e[r+1],5,-165796510),c,l,e[r+6],9,-1069501632),s,c,e[r+11],14,643717713),u,s,e[r],20,-373897302),l=ve(l,u=ve(u,s=ve(s,c,l,u,e[r+5],5,-701558691),c,l,e[r+10],9,38016083),s,c,e[r+15],14,-660478335),u,s,e[r+4],20,-405537848),l=ve(l,u=ve(u,s=ve(s,c,l,u,e[r+9],5,568446438),c,l,e[r+14],9,-1019803690),s,c,e[r+3],14,-187363961),u,s,e[r+8],20,1163531501),l=ve(l,u=ve(u,s=ve(s,c,l,u,e[r+13],5,-1444681467),c,l,e[r+2],9,-51403784),s,c,e[r+7],14,1735328473),u,s,e[r+12],20,-1926607734),l=me(l,u=me(u,s=me(s,c,l,u,e[r+5],4,-378558),c,l,e[r+8],11,-2022574463),s,c,e[r+11],16,1839030562),u,s,e[r+14],23,-35309556),l=me(l,u=me(u,s=me(s,c,l,u,e[r+1],4,-1530992060),c,l,e[r+4],11,1272893353),s,c,e[r+7],16,-155497632),u,s,e[r+10],23,-1094730640),l=me(l,u=me(u,s=me(s,c,l,u,e[r+13],4,681279174),c,l,e[r],11,-358537222),s,c,e[r+3],16,-722521979),u,s,e[r+6],23,76029189),l=me(l,u=me(u,s=me(s,c,l,u,e[r+9],4,-640364487),c,l,e[r+12],11,-421815835),s,c,e[r+15],16,530742520),u,s,e[r+2],23,-995338651),l=be(l,u=be(u,s=be(s,c,l,u,e[r],6,-198630844),c,l,e[r+7],10,1126891415),s,c,e[r+14],15,-1416354905),u,s,e[r+5],21,-57434055),l=be(l,u=be(u,s=be(s,c,l,u,e[r+12],6,1700485571),c,l,e[r+3],10,-1894986606),s,c,e[r+10],15,-1051523),u,s,e[r+1],21,-2054922799),l=be(l,u=be(u,s=be(s,c,l,u,e[r+8],6,1873313359),c,l,e[r+15],10,-30611744),s,c,e[r+6],15,-1560198380),u,s,e[r+13],21,1309151649),l=be(l,u=be(u,s=be(s,c,l,u,e[r+4],6,-145523070),c,l,e[r+11],10,-1120210379),s,c,e[r+2],15,718787259),u,s,e[r+9],21,-343485551),s=de(s,n),c=de(c,i),l=de(l,o),u=de(u,a);return[s,c,l,u]}function Ee(e){var t,r="",n=32*e.length;for(t=0;t<n;t+=8)r+=String.fromCharCode(e[t>>5]>>>t%32&255);return r}function we(e){var t,r=[];for(r[(e.length>>2)-1]=void 0,t=0;t<r.length;t+=1)r[t]=0;var n=8*e.length;for(t=0;t<n;t+=8)r[t>>5]|=(255&e.charCodeAt(t/8))<<t%32;return r}function xe(e){var t,r,n="";for(r=0;r<e.length;r+=1)t=e.charCodeAt(r),n+="0123456789abcdef".charAt(t>>>4&15)+"0123456789abcdef".charAt(15&t);return n}function ke(e){return unescape(encodeURIComponent(e))}function Se(e){return function(e){return Ee(ye(we(e),8*e.length))}(ke(e))}function Oe(e,t){return function(e,t){var r,n,i=we(e),o=[],a=[];for(o[15]=a[15]=void 0,i.length>16&&(i=ye(i,8*e.length)),r=0;r<16;r+=1)o[r]=909522486^i[r],a[r]=1549556828^i[r];return n=ye(o.concat(we(t)),512+8*t.length),Ee(ye(a.concat(n),640))}(ke(e),ke(t))}var je=function(e,t,r){return t?r?Oe(t,e):xe(Oe(t,e)):r?Se(e):xe(Se(e))},Ce=Object.freeze({default:je,__moduleExports:je});function Re(e){this.name="RavenConfigError",this.message=e}Re.prototype=new Error,Re.prototype.constructor=Re;var Te=Re,Fe=Object.freeze({default:Te,__moduleExports:Te}),Ae={wrapMethod:function(e,t,r){var n=e[t],i=e;if(t in e){var o="warn"===t?"warning":t;e[t]=function(){var e=[].slice.call(arguments),a=oe.safeJoin(e," "),s={level:o,logger:"console",extra:{arguments:e}};"assert"===t?!1===e[0]&&(a="Assertion failed: "+(oe.safeJoin(e.slice(1)," ")||"console.assert"),s.extra.arguments=e.slice(1),r&&r(a,s)):r&&r(a,s),n&&Function.prototype.apply.call(n,i,e)}}}},Be=Ae.wrapMethod,Pe=Object.freeze({default:Ae,__moduleExports:Ae,wrapMethod:Be}),De=fe&&he||fe,Me=Ce&&je||Ce,Ue=Fe&&Te||Fe,He=Pe&&Ae||Pe,Le=oe.isError,Ie=oe.isObject,Ne=oe.isPlainObject,ze=oe.isErrorEvent,qe=oe.isUndefined,Ke=oe.isFunction,We=oe.isString,Ve=oe.isArray,Je=oe.isEmptyObject,$e=oe.each,Xe=oe.objectMerge,Ge=oe.truncate,Ye=oe.objectFrozen,Ze=oe.hasKey,Qe=oe.joinRegExp,et=oe.urlencode,tt=oe.uuid4,rt=oe.htmlTreeAsString,nt=oe.isSameException,it=oe.isSameStacktrace,ot=oe.parseUrl,at=oe.fill,st=oe.supportsFetch,ct=oe.supportsReferrerPolicy,lt=oe.serializeKeysForMessage,ut=oe.serializeException,pt=oe.sanitize,ht=He.wrapMethod,ft="source protocol user pass host port path".split(" "),dt=/^(?:(\w+):)?\/\/(?:(\w+)(:\w+)?@)?([\w\.-]+)(?::(\d+))?(\/.*)/;function gt(){return+new Date}var _t="undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},vt=_t.document,mt=_t.navigator;function bt(e,t){return Ke(t)?function(r){return t(r,e)}:t}function yt(){for(var e in this._hasJSON=!("object"!=typeof JSON||!JSON.stringify),this._hasDocument=!qe(vt),this._hasNavigator=!qe(mt),this._lastCapturedException=null,this._lastData=null,this._lastEventId=null,this._globalServer=null,this._globalKey=null,this._globalProject=null,this._globalContext={},this._globalOptions={release:_t.SENTRY_RELEASE&&_t.SENTRY_RELEASE.id,logger:"javascript",ignoreErrors:[],ignoreUrls:[],whitelistUrls:[],includePaths:[],headers:null,collectWindowErrors:!0,captureUnhandledRejections:!0,maxMessageLength:0,maxUrlLength:250,stackTraceLimit:50,autoBreadcrumbs:!0,instrument:!0,sampleRate:1,sanitizeKeys:[]},this._fetchDefaults={method:"POST",keepalive:!0,referrerPolicy:ct()?"origin":""},this._ignoreOnError=0,this._isRavenInstalled=!1,this._originalErrorStackTraceLimit=Error.stackTraceLimit,this._originalConsole=_t.console||{},this._originalConsoleMethods={},this._plugins=[],this._startTime=gt(),this._wrappedBuiltIns=[],this._breadcrumbs=[],this._lastCapturedEvent=null,this._keypressTimeout,this._location=_t.location,this._lastHref=this._location&&this._location.href,this._resetBackoff(),this._originalConsole)this._originalConsoleMethods[e]=this._originalConsole[e]}yt.prototype={VERSION:"3.24.2",debug:!1,TraceKit:De,config:function(e,t){var r=this;if(r._globalServer)return this._logDebug("error","Error: Raven has already been configured"),r;if(!e)return r;var n=r._globalOptions;t&&$e(t,function(e,t){"tags"===e||"extra"===e||"user"===e?r._globalContext[e]=t:n[e]=t}),r.setDSN(e),n.ignoreErrors.push(/^Script error\.?$/),n.ignoreErrors.push(/^Javascript error: Script error\.? on line 0$/),n.ignoreErrors=Qe(n.ignoreErrors),n.ignoreUrls=!!n.ignoreUrls.length&&Qe(n.ignoreUrls),n.whitelistUrls=!!n.whitelistUrls.length&&Qe(n.whitelistUrls),n.includePaths=Qe(n.includePaths),n.maxBreadcrumbs=Math.max(0,Math.min(n.maxBreadcrumbs||100,100));var i={xhr:!0,console:!0,dom:!0,location:!0,sentry:!0},o=n.autoBreadcrumbs;"[object Object]"==={}.toString.call(o)?o=Xe(i,o):!1!==o&&(o=i),n.autoBreadcrumbs=o;var a={tryCatch:!0},s=n.instrument;return"[object Object]"==={}.toString.call(s)?s=Xe(a,s):!1!==s&&(s=a),n.instrument=s,De.collectWindowErrors=!!n.collectWindowErrors,r},install:function(){var e=this;return e.isSetup()&&!e._isRavenInstalled&&(De.report.subscribe(function(){e._handleOnErrorStackInfo.apply(e,arguments)}),e._globalOptions.captureUnhandledRejections&&e._attachPromiseRejectionHandler(),e._patchFunctionToString(),e._globalOptions.instrument&&e._globalOptions.instrument.tryCatch&&e._instrumentTryCatch(),e._globalOptions.autoBreadcrumbs&&e._instrumentBreadcrumbs(),e._drainPlugins(),e._isRavenInstalled=!0),Error.stackTraceLimit=e._globalOptions.stackTraceLimit,this},setDSN:function(e){var t=this._parseDSN(e),r=t.path.lastIndexOf("/"),n=t.path.substr(1,r);this._dsn=e,this._globalKey=t.user,this._globalSecret=t.pass&&t.pass.substr(1),this._globalProject=t.path.substr(r+1),this._globalServer=this._getGlobalServer(t),this._globalEndpoint=this._globalServer+"/"+n+"api/"+this._globalProject+"/store/",this._resetBackoff()},context:function(e,t,r){return Ke(e)&&(r=t||[],t=e,e=void 0),this.wrap(e,t).apply(this,r)},wrap:function(e,t,r){var n=this;if(qe(t)&&!Ke(e))return e;if(Ke(e)&&(t=e,e=void 0),!Ke(t))return t;try{if(t.__raven__)return t;if(t.__raven_wrapper__)return t.__raven_wrapper__}catch(e){return t}function i(){var i=[],o=arguments.length,a=!e||e&&!1!==e.deep;for(r&&Ke(r)&&r.apply(this,arguments);o--;)i[o]=a?n.wrap(e,arguments[o]):arguments[o];try{return t.apply(this,i)}catch(t){throw n._ignoreNextOnError(),n.captureException(t,e),t}}for(var o in t)Ze(t,o)&&(i[o]=t[o]);return i.prototype=t.prototype,t.__raven_wrapper__=i,i.__raven__=!0,i.__orig__=t,i},uninstall:function(){return De.report.uninstall(),this._detachPromiseRejectionHandler(),this._unpatchFunctionToString(),this._restoreBuiltIns(),this._restoreConsole(),Error.stackTraceLimit=this._originalErrorStackTraceLimit,this._isRavenInstalled=!1,this},_promiseRejectionHandler:function(e){this._logDebug("debug","Raven caught unhandled promise rejection:",e),this.captureException(e.reason,{extra:{unhandledPromiseRejection:!0}})},_attachPromiseRejectionHandler:function(){return this._promiseRejectionHandler=this._promiseRejectionHandler.bind(this),_t.addEventListener&&_t.addEventListener("unhandledrejection",this._promiseRejectionHandler),this},_detachPromiseRejectionHandler:function(){return _t.removeEventListener&&_t.removeEventListener("unhandledrejection",this._promiseRejectionHandler),this},captureException:function(e,t){if(t=Xe({trimHeadFrames:0},t||{}),ze(e)&&e.error)e=e.error;else if(Le(e))e=e;else{if(!Ne(e))return this.captureMessage(e,Xe(t,{stacktrace:!0,trimHeadFrames:t.trimHeadFrames+1}));t=this._getCaptureExceptionOptionsFromPlainObject(t,e),e=new Error(t.message)}this._lastCapturedException=e;try{var r=De.computeStackTrace(e);this._handleStackInfo(r,t)}catch(t){if(e!==t)throw t}return this},_getCaptureExceptionOptionsFromPlainObject:function(e,t){var r=Object.keys(t).sort(),n=Xe(e,{message:"Non-Error exception captured with keys: "+lt(r),fingerprint:[Me(r)],extra:e.extra||{}});return n.extra.__serialized__=ut(t),n},captureMessage:function(e,t){if(!this._globalOptions.ignoreErrors.test||!this._globalOptions.ignoreErrors.test(e)){var r,n=Xe({message:e+=""},t=t||{});try{throw new Error(e)}catch(e){r=e}r.name=null;var i=De.computeStackTrace(r),o=Ve(i.stack)&&i.stack[1];o&&"Raven.captureException"===o.func&&(o=i.stack[2]);var a=o&&o.url||"";if((!this._globalOptions.ignoreUrls.test||!this._globalOptions.ignoreUrls.test(a))&&(!this._globalOptions.whitelistUrls.test||this._globalOptions.whitelistUrls.test(a))){if(this._globalOptions.stacktrace||t&&t.stacktrace){n.fingerprint=null==n.fingerprint?e:n.fingerprint,(t=Xe({trimHeadFrames:0},t)).trimHeadFrames+=1;var s=this._prepareFrames(i,t);n.stacktrace={frames:s.reverse()}}return n.fingerprint&&(n.fingerprint=Ve(n.fingerprint)?n.fingerprint:[n.fingerprint]),this._send(n),this}}},captureBreadcrumb:function(e){var t=Xe({timestamp:gt()/1e3},e);if(Ke(this._globalOptions.breadcrumbCallback)){var r=this._globalOptions.breadcrumbCallback(t);if(Ie(r)&&!Je(r))t=r;else if(!1===r)return this}return this._breadcrumbs.push(t),this._breadcrumbs.length>this._globalOptions.maxBreadcrumbs&&this._breadcrumbs.shift(),this},addPlugin:function(e){var t=[].slice.call(arguments,1);return this._plugins.push([e,t]),this._isRavenInstalled&&this._drainPlugins(),this},setUserContext:function(e){return this._globalContext.user=e,this},setExtraContext:function(e){return this._mergeContext("extra",e),this},setTagsContext:function(e){return this._mergeContext("tags",e),this},clearContext:function(){return this._globalContext={},this},getContext:function(){return JSON.parse(o(this._globalContext))},setEnvironment:function(e){return this._globalOptions.environment=e,this},setRelease:function(e){return this._globalOptions.release=e,this},setDataCallback:function(e){var t=this._globalOptions.dataCallback;return this._globalOptions.dataCallback=bt(t,e),this},setBreadcrumbCallback:function(e){var t=this._globalOptions.breadcrumbCallback;return this._globalOptions.breadcrumbCallback=bt(t,e),this},setShouldSendCallback:function(e){var t=this._globalOptions.shouldSendCallback;return this._globalOptions.shouldSendCallback=bt(t,e),this},setTransport:function(e){return this._globalOptions.transport=e,this},lastException:function(){return this._lastCapturedException},lastEventId:function(){return this._lastEventId},isSetup:function(){return!!this._hasJSON&&(!!this._globalServer||(this.ravenNotConfiguredError||(this.ravenNotConfiguredError=!0,this._logDebug("error","Error: Raven has not been configured.")),!1))},afterLoad:function(){var e=_t.RavenConfig;e&&this.config(e.dsn,e.config).install()},showReportDialog:function(e){if(vt){var t=(e=e||{}).eventId||this.lastEventId();if(!t)throw new Ue("Missing eventId");var r=e.dsn||this._dsn;if(!r)throw new Ue("Missing DSN");var n=encodeURIComponent,i="";i+="?eventId="+n(t),i+="&dsn="+n(r);var o=e.user||this._globalContext.user;o&&(o.name&&(i+="&name="+n(o.name)),o.email&&(i+="&email="+n(o.email)));var a=this._getGlobalServer(this._parseDSN(r)),s=vt.createElement("script");s.async=!0,s.src=a+"/api/embed/error-page/"+i,(vt.head||vt.body).appendChild(s)}},_ignoreNextOnError:function(){var e=this;this._ignoreOnError+=1,setTimeout(function(){e._ignoreOnError-=1})},_triggerEvent:function(e,t){var r,n;if(this._hasDocument){for(n in t=t||{},e="raven"+e.substr(0,1).toUpperCase()+e.substr(1),vt.createEvent?(r=vt.createEvent("HTMLEvents")).initEvent(e,!0,!0):(r=vt.createEventObject()).eventType=e,t)Ze(t,n)&&(r[n]=t[n]);if(vt.createEvent)vt.dispatchEvent(r);else try{vt.fireEvent("on"+r.eventType.toLowerCase(),r)}catch(e){}}},_breadcrumbEventHandler:function(e){var t=this;return function(r){if(t._keypressTimeout=null,t._lastCapturedEvent!==r){var n;t._lastCapturedEvent=r;try{n=rt(r.target)}catch(e){n="<unknown>"}t.captureBreadcrumb({category:"ui."+e,message:n})}}},_keypressEventHandler:function(){var e=this;return function(t){var r;try{r=t.target}catch(e){return}var n=r&&r.tagName;if(n&&("INPUT"===n||"TEXTAREA"===n||r.isContentEditable)){var i=e._keypressTimeout;i||e._breadcrumbEventHandler("input")(t),clearTimeout(i),e._keypressTimeout=setTimeout(function(){e._keypressTimeout=null},1e3)}}},_captureUrlChange:function(e,t){var r=ot(this._location.href),n=ot(t),i=ot(e);this._lastHref=t,r.protocol===n.protocol&&r.host===n.host&&(t=n.relative),r.protocol===i.protocol&&r.host===i.host&&(e=i.relative),this.captureBreadcrumb({category:"navigation",data:{to:t,from:e}})},_patchFunctionToString:function(){var e=this;e._originalFunctionToString=Function.prototype.toString,Function.prototype.toString=function(){return"function"==typeof this&&this.__raven__?e._originalFunctionToString.apply(this.__orig__,arguments):e._originalFunctionToString.apply(this,arguments)}},_unpatchFunctionToString:function(){this._originalFunctionToString&&(Function.prototype.toString=this._originalFunctionToString)},_instrumentTryCatch:function(){var e=this,t=e._wrappedBuiltIns;function r(t){return function(r,n){for(var i=new Array(arguments.length),o=0;o<i.length;++o)i[o]=arguments[o];var a=i[0];return Ke(a)&&(i[0]=e.wrap(a)),t.apply?t.apply(this,i):t(i[0],i[1])}}var n=this._globalOptions.autoBreadcrumbs;function i(r){var i=_t[r]&&_t[r].prototype;i&&i.hasOwnProperty&&i.hasOwnProperty("addEventListener")&&(at(i,"addEventListener",function(t){return function(i,o,a,s){try{o&&o.handleEvent&&(o.handleEvent=e.wrap(o.handleEvent))}catch(e){}var c,l,u;return n&&n.dom&&("EventTarget"===r||"Node"===r)&&(l=e._breadcrumbEventHandler("click"),u=e._keypressEventHandler(),c=function(e){if(e){var t;try{t=e.type}catch(e){return}return"click"===t?l(e):"keypress"===t?u(e):void 0}}),t.call(this,i,e.wrap(o,void 0,c),a,s)}},t),at(i,"removeEventListener",function(e){return function(t,r,n,i){try{r=r&&(r.__raven_wrapper__?r.__raven_wrapper__:r)}catch(e){}return e.call(this,t,r,n,i)}},t))}at(_t,"setTimeout",r,t),at(_t,"setInterval",r,t),_t.requestAnimationFrame&&at(_t,"requestAnimationFrame",function(t){return function(r){return t(e.wrap(r))}},t);for(var o=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],a=0;a<o.length;a++)i(o[a])},_instrumentBreadcrumbs:function(){var e=this,t=this._globalOptions.autoBreadcrumbs,r=e._wrappedBuiltIns;function n(t,r){t in r&&Ke(r[t])&&at(r,t,function(t){return e.wrap(t)})}if(t.xhr&&"XMLHttpRequest"in _t){var i=_t.XMLHttpRequest&&_t.XMLHttpRequest.prototype;at(i,"open",function(t){return function(r,n){return We(n)&&-1===n.indexOf(e._globalKey)&&(this.__raven_xhr={method:r,url:n,status_code:null}),t.apply(this,arguments)}},r),at(i,"send",function(t){return function(){var r=this;function i(){if(r.__raven_xhr&&4===r.readyState){try{r.__raven_xhr.status_code=r.status}catch(e){}e.captureBreadcrumb({type:"http",category:"xhr",data:r.__raven_xhr})}}for(var o=["onload","onerror","onprogress"],a=0;a<o.length;a++)n(o[a],r);return"onreadystatechange"in r&&Ke(r.onreadystatechange)?at(r,"onreadystatechange",function(t){return e.wrap(t,void 0,i)}):r.onreadystatechange=i,t.apply(this,arguments)}},r)}t.xhr&&st()&&at(_t,"fetch",function(t){return function(){for(var r=new Array(arguments.length),n=0;n<r.length;++n)r[n]=arguments[n];var i,o=r[0],a="GET";if("string"==typeof o?i=o:"Request"in _t&&o instanceof _t.Request?(i=o.url,o.method&&(a=o.method)):i=""+o,-1!==i.indexOf(e._globalKey))return t.apply(this,r);r[1]&&r[1].method&&(a=r[1].method);var s={method:a,url:i,status_code:null};return t.apply(this,r).then(function(t){return s.status_code=t.status,e.captureBreadcrumb({type:"http",category:"fetch",data:s}),t}).catch(function(t){throw e.captureBreadcrumb({type:"http",category:"fetch",data:s,level:"error"}),t})}},r),t.dom&&this._hasDocument&&(vt.addEventListener?(vt.addEventListener("click",e._breadcrumbEventHandler("click"),!1),vt.addEventListener("keypress",e._keypressEventHandler(),!1)):vt.attachEvent&&(vt.attachEvent("onclick",e._breadcrumbEventHandler("click")),vt.attachEvent("onkeypress",e._keypressEventHandler())));var o=_t.chrome,a=!(o&&o.app&&o.app.runtime)&&_t.history&&history.pushState&&history.replaceState;if(t.location&&a){var s=_t.onpopstate;_t.onpopstate=function(){var t=e._location.href;if(e._captureUrlChange(e._lastHref,t),s)return s.apply(this,arguments)};var c=function(t){return function(){var r=arguments.length>2?arguments[2]:void 0;return r&&e._captureUrlChange(e._lastHref,r+""),t.apply(this,arguments)}};at(history,"pushState",c,r),at(history,"replaceState",c,r)}if(t.console&&"console"in _t&&console.log){var l=function(t,r){e.captureBreadcrumb({message:t,level:r.level,category:"console"})};$e(["debug","info","warn","error","log"],function(e,t){ht(console,t,l)})}},_restoreBuiltIns:function(){for(var e;this._wrappedBuiltIns.length;){var t=(e=this._wrappedBuiltIns.shift())[0],r=e[1],n=e[2];t[r]=n}},_restoreConsole:function(){for(var e in this._originalConsoleMethods)this._originalConsole[e]=this._originalConsoleMethods[e]},_drainPlugins:function(){var e=this;$e(this._plugins,function(t,r){var n=r[0],i=r[1];n.apply(e,[e].concat(i))})},_parseDSN:function(e){var t=dt.exec(e),r={},n=7;try{for(;n--;)r[ft[n]]=t[n]||""}catch(t){throw new Ue("Invalid DSN: "+e)}if(r.pass&&!this._globalOptions.allowSecretKey)throw new Ue("Do not specify your secret key in the DSN. See: http://bit.ly/raven-secret-key");return r},_getGlobalServer:function(e){var t="//"+e.host+(e.port?":"+e.port:"");return e.protocol&&(t=e.protocol+":"+t),t},_handleOnErrorStackInfo:function(){this._ignoreOnError||this._handleStackInfo.apply(this,arguments)},_handleStackInfo:function(e,t){var r=this._prepareFrames(e,t);this._triggerEvent("handle",{stackInfo:e,options:t}),this._processException(e.name,e.message,e.url,e.lineno,r,t)},_prepareFrames:function(e,t){var r=this,n=[];if(e.stack&&e.stack.length&&($e(e.stack,function(t,i){var o=r._normalizeFrame(i,e.url);o&&n.push(o)}),t&&t.trimHeadFrames))for(var i=0;i<t.trimHeadFrames&&i<n.length;i++)n[i].in_app=!1;return n=n.slice(0,this._globalOptions.stackTraceLimit)},_normalizeFrame:function(e,t){var r={filename:e.url,lineno:e.line,colno:e.column,function:e.func||"?"};return e.url||(r.filename=t),r.in_app=!(this._globalOptions.includePaths.test&&!this._globalOptions.includePaths.test(r.filename)||/(Raven|TraceKit)\./.test(r.function)||/raven\.(min\.)?js$/.test(r.filename)),r},_processException:function(e,t,r,n,i,o){var a,s=(e?e+": ":"")+(t||"");if((!this._globalOptions.ignoreErrors.test||!this._globalOptions.ignoreErrors.test(t)&&!this._globalOptions.ignoreErrors.test(s))&&(i&&i.length?(r=i[0].filename||r,i.reverse(),a={frames:i}):r&&(a={frames:[{filename:r,lineno:n,in_app:!0}]}),(!this._globalOptions.ignoreUrls.test||!this._globalOptions.ignoreUrls.test(r))&&(!this._globalOptions.whitelistUrls.test||this._globalOptions.whitelistUrls.test(r)))){var c=Xe({exception:{values:[{type:e,value:t,stacktrace:a}]},culprit:r},o);this._send(c)}},_trimPacket:function(e){var t=this._globalOptions.maxMessageLength;if(e.message&&(e.message=Ge(e.message,t)),e.exception){var r=e.exception.values[0];r.value=Ge(r.value,t)}var n=e.request;return n&&(n.url&&(n.url=Ge(n.url,this._globalOptions.maxUrlLength)),n.Referer&&(n.Referer=Ge(n.Referer,this._globalOptions.maxUrlLength))),e.breadcrumbs&&e.breadcrumbs.values&&this._trimBreadcrumbs(e.breadcrumbs),e},_trimBreadcrumbs:function(e){for(var t,r,n,i=["to","from","url"],o=0;o<e.values.length;++o)if((r=e.values[o]).hasOwnProperty("data")&&Ie(r.data)&&!Ye(r.data)){n=Xe({},r.data);for(var a=0;a<i.length;++a)t=i[a],n.hasOwnProperty(t)&&n[t]&&(n[t]=Ge(n[t],this._globalOptions.maxUrlLength));e.values[o].data=n}},_getHttpData:function(){if(this._hasNavigator||this._hasDocument){var e={};return this._hasNavigator&&mt.userAgent&&(e.headers={"User-Agent":navigator.userAgent}),_t.location&&_t.location.href&&(e.url=_t.location.href),this._hasDocument&&vt.referrer&&(e.headers||(e.headers={}),e.headers.Referer=vt.referrer),e}},_resetBackoff:function(){this._backoffDuration=0,this._backoffStart=null},_shouldBackoff:function(){return this._backoffDuration&>()-this._backoffStart<this._backoffDuration},_isRepeatData:function(e){var t=this._lastData;return!(!t||e.message!==t.message||e.culprit!==t.culprit)&&(e.stacktrace||t.stacktrace?it(e.stacktrace,t.stacktrace):!e.exception&&!t.exception||nt(e.exception,t.exception))},_setBackoffState:function(e){if(!this._shouldBackoff()){var t=e.status;if(400===t||401===t||429===t){var r;try{r=st()?e.headers.get("Retry-After"):e.getResponseHeader("Retry-After"),r=1e3*parseInt(r,10)}catch(e){}this._backoffDuration=r||(2*this._backoffDuration||1e3),this._backoffStart=gt()}}},_send:function(e){var t=this._globalOptions,r={project:this._globalProject,logger:t.logger,platform:"javascript"},n=this._getHttpData();n&&(r.request=n),e.trimHeadFrames&&delete e.trimHeadFrames,(e=Xe(r,e)).tags=Xe(Xe({},this._globalContext.tags),e.tags),e.extra=Xe(Xe({},this._globalContext.extra),e.extra),e.extra["session:duration"]=gt()-this._startTime,this._breadcrumbs&&this._breadcrumbs.length>0&&(e.breadcrumbs={values:[].slice.call(this._breadcrumbs,0)}),this._globalContext.user&&(e.user=this._globalContext.user),t.environment&&(e.environment=t.environment),t.release&&(e.release=t.release),t.serverName&&(e.server_name=t.serverName),e=this._sanitizeData(e),Object.keys(e).forEach(function(t){(null==e[t]||""===e[t]||Je(e[t]))&&delete e[t]}),Ke(t.dataCallback)&&(e=t.dataCallback(e)||e),e&&!Je(e)&&(Ke(t.shouldSendCallback)&&!t.shouldSendCallback(e)||(this._shouldBackoff()?this._logDebug("warn","Raven dropped error due to backoff: ",e):"number"==typeof t.sampleRate?Math.random()<t.sampleRate&&this._sendProcessedPayload(e):this._sendProcessedPayload(e)))},_sanitizeData:function(e){return pt(e,this._globalOptions.sanitizeKeys)},_getUuid:function(){return tt()},_sendProcessedPayload:function(e,t){var r=this,n=this._globalOptions;if(this.isSetup())if(e=this._trimPacket(e),this._globalOptions.allowDuplicates||!this._isRepeatData(e)){this._lastEventId=e.event_id||(e.event_id=this._getUuid()),this._lastData=e,this._logDebug("debug","Raven about to send:",e);var i={sentry_version:"7",sentry_client:"raven-js/"+this.VERSION,sentry_key:this._globalKey};this._globalSecret&&(i.sentry_secret=this._globalSecret);var o=e.exception&&e.exception.values[0];this._globalOptions.autoBreadcrumbs&&this._globalOptions.autoBreadcrumbs.sentry&&this.captureBreadcrumb({category:"sentry",message:o?(o.type?o.type+": ":"")+o.value:e.message,event_id:e.event_id,level:e.level||"error"});var a=this._globalEndpoint;(n.transport||this._makeRequest).call(this,{url:a,auth:i,data:e,options:n,onSuccess:function(){r._resetBackoff(),r._triggerEvent("success",{data:e,src:a}),t&&t()},onError:function(n){r._logDebug("error","Raven transport failed to send: ",n),n.request&&r._setBackoffState(n.request),r._triggerEvent("failure",{data:e,src:a}),n=n||new Error("Raven send failed (no additional details provided)"),t&&t(n)}})}else this._logDebug("warn","Raven dropped repeat event: ",e)},_makeRequest:function(e){var t=e.url+"?"+et(e.auth),r=null,n={};if(e.options.headers&&(r=this._evaluateHash(e.options.headers)),e.options.fetchParameters&&(n=this._evaluateHash(e.options.fetchParameters)),st()){n.body=o(e.data);var i=Xe({},this._fetchDefaults),a=Xe(i,n);return r&&(a.headers=r),_t.fetch(t,a).then(function(t){if(t.ok)e.onSuccess&&e.onSuccess();else{var r=new Error("Sentry error code: "+t.status);r.request=t,e.onError&&e.onError(r)}}).catch(function(){e.onError&&e.onError(new Error("Sentry error code: network unavailable"))})}var s=_t.XMLHttpRequest&&new _t.XMLHttpRequest;s&&(("withCredentials"in s||"undefined"!=typeof XDomainRequest)&&("withCredentials"in s?s.onreadystatechange=function(){if(4===s.readyState)if(200===s.status)e.onSuccess&&e.onSuccess();else if(e.onError){var t=new Error("Sentry error code: "+s.status);t.request=s,e.onError(t)}}:(s=new XDomainRequest,t=t.replace(/^https?:/,""),e.onSuccess&&(s.onload=e.onSuccess),e.onError&&(s.onerror=function(){var t=new Error("Sentry error code: XDomainRequest");t.request=s,e.onError(t)})),s.open("POST",t),r&&$e(r,function(e,t){s.setRequestHeader(e,t)}),s.send(o(e.data))))},_evaluateHash:function(e){var t={};for(var r in e)if(e.hasOwnProperty(r)){var n=e[r];t[r]="function"==typeof n?n():n}return t},_logDebug:function(e){this._originalConsoleMethods[e]&&(this.debug||this._globalOptions.debug)&&Function.prototype.apply.call(this._originalConsoleMethods[e],this._originalConsole,[].slice.call(arguments,1))},_mergeContext:function(e,t){qe(t)?delete this._globalContext[e]:this._globalContext[e]=Xe(this._globalContext[e]||{},t)}},yt.prototype.setUser=yt.prototype.setUserContext,yt.prototype.setReleaseContext=yt.prototype.setRelease;var Et=yt,wt=Object.freeze({default:Et,__moduleExports:Et}),xt=wt&&Et||wt,kt="undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},St=kt.Raven,Ot=new xt;Ot.noConflict=function(){return kt.Raven=St,Ot},Ot.afterLoad();var jt,Ct,Rt,Tt,Ft,At,Bt,Pt=Ot,Dt=xt;Pt.Client=Dt,(Bt="plyr.io"===window.location.host)&&Pt.config("https://d4ad9866ad834437a4754e23937071e4@sentry.io/305555").install(),document.addEventListener("DOMContentLoaded",function(){Pt.context(function(){window.shr&&window.shr.setup({count:{classname:"button__count"}}),document.addEventListener("focusout",function(e){e.target.classList.remove("tab-focus")}),document.addEventListener("keydown",function(e){9===e.keyCode&&setTimeout(function(){document.activeElement.classList.add("tab-focus")},0)});var e=new Plyr("#player",{debug:!0,title:"View From A Blue Moon",iconUrl:"../dist/plyr.svg",keyboard:{global:!0},tooltips:{controls:!0},captions:{active:!0},keys:{google:"AIzaSyDrNwtN3nLH_8rjCmu5Wq3ZCm4MNAVdc0c"},ads:{enabled:!0,publisherId:"918848828995742"}});window.player=e;var t=document.querySelectorAll("[data-source]"),r={video:"video",audio:"audio",youtube:"youtube",vimeo:"vimeo"},n=window.location.hash.replace("#",""),i=window.history&&window.history.pushState;function o(e,t,r){e&&e.classList[r?"add":"remove"](t)}function a(i,a){if(i in r&&(a||i!==n)&&(n.length||i!==r.video)){switch(i){case r.video:e.source={type:"video",title:"View From A Blue Moon",sources:[{src:"https://cdn.plyr.io/static/demo/View_From_A_Blue_Moon_Trailer-576p.mp4",type:"video/mp4",size:576},{src:"https://cdn.plyr.io/static/demo/View_From_A_Blue_Moon_Trailer-720p.mp4",type:"video/mp4",size:720},{src:"https://cdn.plyr.io/static/demo/View_From_A_Blue_Moon_Trailer-1080p.mp4",type:"video/mp4",size:1080},{src:"https://cdn.plyr.io/static/demo/View_From_A_Blue_Moon_Trailer-1440p.mp4",type:"video/mp4",size:1440}],poster:"https://cdn.plyr.io/static/demo/View_From_A_Blue_Moon_Trailer-HD.jpg",tracks:[{kind:"captions",label:"English",srclang:"en",src:"https://cdn.plyr.io/static/demo/View_From_A_Blue_Moon_Trailer-HD.en.vtt",default:!0},{kind:"captions",label:"French",srclang:"fr",src:"https://cdn.plyr.io/static/demo/View_From_A_Blue_Moon_Trailer-HD.fr.vtt"}]};break;case r.audio:e.source={type:"audio",title:"Kishi Bashi – “It All Began With A Burst”",sources:[{src:"https://cdn.plyr.io/static/demo/Kishi_Bashi_-_It_All_Began_With_a_Burst.mp3",type:"audio/mp3"},{src:"https://cdn.plyr.io/static/demo/Kishi_Bashi_-_It_All_Began_With_a_Burst.ogg",type:"audio/ogg"}]};break;case r.youtube:e.source={type:"video",sources:[{src:"https://youtube.com/watch?v=bTqVqk7FSmY",provider:"youtube"}]};break;case r.vimeo:e.source={type:"video",sources:[{src:"https://vimeo.com/76979871",provider:"vimeo"}]}}n=i,Array.from(t).forEach(function(e){return o(e.parentElement,"active",!1)}),o(document.querySelector('[data-source="'+i+'"]'),"active",!0),Array.from(document.querySelectorAll(".plyr__cite")).forEach(function(e){e.setAttribute("hidden","")}),document.querySelector(".plyr__cite--"+i).removeAttribute("hidden")}}if(Array.from(t).forEach(function(e){e.addEventListener("click",function(){var t=e.getAttribute("data-source");a(t),i&&window.history.pushState({type:t},"","#"+t)})}),window.addEventListener("popstate",function(e){e.state&&"type"in e.state&&a(e.state.type)}),i){var s=!n.length;s&&(n=r.video),n in r&&window.history.replaceState({type:n},"",s?"":"#"+n),n!==r.video&&a(n,!0)}})}),Bt&&(jt=window,Ct=document,Rt="script",Tt="ga",jt.GoogleAnalyticsObject=Tt,jt.ga=jt.ga||function(){(jt.ga.q=jt.ga.q||[]).push(arguments)},jt.ga.l=1*new Date,Ft=Ct.createElement(Rt),At=Ct.getElementsByTagName(Rt)[0],Ft.async=1,Ft.src="https://www.google-analytics.com/analytics.js",At.parentNode.insertBefore(Ft,At),window.ga("create","UA-40881672-11","auto"),window.ga("send","pageview"))}();
//# sourceMappingURL=demo.min.js.map
|
import './article.scss';
import $ from 'jquery';
(function () {
let pageHeight = document.documentElement.scrollHeight;
window.addEventListener('scroll', function () {
let winScroll = document.body.scrollTop || document.documentElement.scrollTop,
height = document.documentElement.scrollHeight - document.documentElement.clientHeight,
percent = (winScroll / height) * 100;
document.getElementById('progress-bar').style.width = percent + '%';
});
}());
|
angular.module('timeApp').service('IndexedDBService', function (Activity, TimeLine, $q, ngDexie) {
this.getActivity = function (activityId) {
return ngDexie.get('activities', activityId);
}
this.saveActivity = function (activity) {
return ngDexie.put('activities', activity);
}
this.getActiveActivities = function () {
return ngDexie.listByIndex('activities', 'finalized', false);
}
});
|
// 1) add your route(s) here ⬇️
const routes = [
{ name: 'landing-page', path: '/' },
{ name: 'questions-1', path: '/questions-1' },
{ name: 'agreement-1', path: '/agreement-1' },
{ name: 'feedback', path: '/feedback' },
{ name: 'feedback-thanks', path: '/feedback-thanks' },
{ name: 'email-link', path: '/email-link' },
]
const locales = ['en', 'fr']
// note: you can define and export a custom configRoutes function here
// see route.helpers.js which is where the default one is defined
// if configRoutes is defined here it will be used in pacle of the default
module.exports = {
routes,
locales,
}
|
$(document).ready(function(){
$('#formPasantias').validate({
rules: {
titulo: {
required: true,
maxlength: 255,
},
lugar: {
required: true,
maxlength: 255,
},
descripcion: {
required: true,
},
tutores: {
required: true,
maxlength: 255,
},
duracion: {
required: true,
number: true,
range: [1,12],
},
fecha_fin: {
required: true,
},
}
});
});
|
//! moment.js locale configuration
//! locale : Talossan [tzl]
//! author : Robin van der Vliet : https://github.com/robin0van0der0v
//! author : Iustì Canun
import moment from '../moment';
// After the year there should be a slash and the amount of years since December 26, 1979 in Roman numerals.
// This is currently too difficult (maybe even impossible) to add.
export default moment.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',
LS : 'DD.MM.YY',
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 (input) {
return 'd\'o' === input.toLowerCase();
},
meridiem : function (hours, minutes, isLower) {
if (hours > 11) {
return isLower ? 'd\'o' : 'D\'O';
} else {
return isLower ? '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 : processRelativeTime,
ss : processRelativeTime,
m : processRelativeTime,
mm : processRelativeTime,
h : processRelativeTime,
hh : processRelativeTime,
d : processRelativeTime,
dd : processRelativeTime,
M : processRelativeTime,
MM : processRelativeTime,
y : processRelativeTime,
yy : processRelativeTime
},
dayOfMonthOrdinalParse: /\d{1,2}\./,
ordinal : '%d.',
week : {
dow : 1, // Monday is the first day of the week.
doy : 4 // The week that contains Jan 4th is the first week of the year.
}
});
function processRelativeTime(number, withoutSuffix, key, isFuture) {
var format = {
's': ['viensas secunds', '\'iensas secunds'],
'ss': [number + ' secunds', '' + number + ' secunds'],
'm': ['\'n míut', '\'iens míut'],
'mm': [number + ' míuts', '' + number + ' míuts'],
'h': ['\'n þora', '\'iensa þora'],
'hh': [number + ' þoras', '' + number + ' þoras'],
'd': ['\'n ziua', '\'iensa ziua'],
'dd': [number + ' ziuas', '' + number + ' ziuas'],
'M': ['\'n mes', '\'iens mes'],
'MM': [number + ' mesen', '' + number + ' mesen'],
'y': ['\'n ar', '\'iens ar'],
'yy': [number + ' ars', '' + number + ' ars']
};
return isFuture ? format[key][0] : (withoutSuffix ? format[key][0] : format[key][1]);
}
|
/**
* Helper to test CodeMirror highlighting modes. It pretty prints output of the
* highlighter and can check against expected styles.
*
* Mode tests are registered by calling test.mode(testName, mode,
* tokens), where mode is a mode object as returned by
* CodeMirror.getMode, and tokens is an array of lines that make up
* the test.
*
* These lines are strings, in which styled stretches of code are
* enclosed in brackets `[]`, and prefixed by their style. For
* example, `[keyword if]`. Brackets in the code itself must be
* duplicated to prevent them from being interpreted as token
* boundaries. For example `a[[i]]` for `a[i]`. If a token has
* multiple styles, the styles must be separated by ampersands, for
* example `[tag&error </hmtl>]`.
*
* See the test.js files in the css, markdown, gfm, and stex mode
* directories for examples.
*/
(function() {
function findSingle(str, pos, ch) {
for (;;) {
var found = str.indexOf(ch, pos);
if (found == -1) return null;
if (str.charAt(found + 1) != ch) return found;
pos = found + 2;
}
}
var styleName = /[\w&-_]+/g;
function parseTokens(strs) {
var tokens = [], plain = "";
for (var i = 0; i < strs.length; ++i) {
if (i) plain += "\n";
var str = strs[i], pos = 0;
while (pos < str.length) {
var style = null, text;
if (str.charAt(pos) == "[" && str.charAt(pos+1) != "[") {
styleName.lastIndex = pos + 1;
var m = styleName.exec(str);
style = m[0].replace(/&/g, " ");
var textStart = pos + style.length + 2;
var end = findSingle(str, textStart, "]");
if (end == null) throw new Error("Unterminated token at " + pos + " in '" + str + "'" + style);
text = str.slice(textStart, end);
pos = end + 1;
} else {
var end = findSingle(str, pos, "[");
if (end == null) end = str.length;
text = str.slice(pos, end);
pos = end;
}
text = text.replace(/\[\[|\]\]/g, function(s) {return s.charAt(0);});
tokens.push({style: style, text: text});
plain += text;
}
}
return {tokens: tokens, plain: plain};
}
test.mode = function(name, mode, tokens, modeName) {
var data = parseTokens(tokens);
if (name == "extend_type") console.log("set", (modeName || mode.name) + "_" + name)
return test((modeName || mode.name) + "_" + name, function() {
return compare(data.plain, data.tokens, mode);
});
};
function esc(str) {
return str.replace('&', '&').replace('<', '<').replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
;
}
function compare(text, expected, mode) {
var expectedOutput = [];
for (var i = 0; i < expected.length; ++i) {
var sty = expected[i].style;
if (sty && sty.indexOf(" ")) sty = sty.split(' ').sort().join(' ');
expectedOutput.push({style: sty, text: expected[i].text});
}
var observedOutput = highlight(text, mode);
var s = "";
var diff = highlightOutputsDifferent(expectedOutput, observedOutput);
if (diff != null) {
s += '<div class="mt-test mt-fail">';
s += '<pre>' + esc(text) + '</pre>';
s += '<div class="cm-s-default">';
s += 'expected:';
s += prettyPrintOutputTable(expectedOutput, diff);
s += 'observed: [<a onclick="this.parentElement.className+=\' mt-state-unhide\'">display states</a>]';
s += prettyPrintOutputTable(observedOutput, diff);
s += '</div>';
s += '</div>';
}
if (observedOutput.indentFailures) {
for (var i = 0; i < observedOutput.indentFailures.length; i++)
s += "<div class='mt-test mt-fail'>" + esc(observedOutput.indentFailures[i]) + "</div>";
}
if (s) throw new Failure(s);
}
function stringify(obj) {
function replacer(key, obj) {
if (typeof obj == "function") {
var m = obj.toString().match(/function\s*[^\s(]*/);
return m ? m[0] : "function";
}
return obj;
}
if (window.JSON && JSON.stringify)
return JSON.stringify(obj, replacer, 2);
return "[unsupported]"; // Fail safely if no native JSON.
}
function highlight(string, mode) {
var state = mode.startState();
var lines = string.replace(/\r\n/g,'\n').split('\n');
var st = [], pos = 0;
for (var i = 0; i < lines.length; ++i) {
var line = lines[i], newLine = true;
if (mode.indent) {
var ws = line.match(/^\s*/)[0];
var indent = mode.indent(state, line.slice(ws.length));
if (indent != CodeMirror.Pass && indent != ws.length)
(st.indentFailures || (st.indentFailures = [])).push(
"Indentation of line " + (i + 1) + " is " + indent + " (expected " + ws.length + ")");
}
var stream = new CodeMirror.StringStream(line);
if (line == "" && mode.blankLine) mode.blankLine(state);
/* Start copied code from CodeMirror.highlight */
while (!stream.eol()) {
for (var j = 0; j < 10 && stream.start >= stream.pos; j++)
var compare = mode.token(stream, state);
if (j == 10)
throw new Failure("Failed to advance the stream." + stream.string + " " + stream.pos);
var substr = stream.current();
if (compare && compare.indexOf(" ") > -1) compare = compare.split(' ').sort().join(' ');
stream.start = stream.pos;
if (pos && st[pos-1].style == compare && !newLine) {
st[pos-1].text += substr;
} else if (substr) {
st[pos++] = {style: compare, text: substr, state: stringify(state)};
}
// Give up when line is ridiculously long
if (stream.pos > 5000) {
st[pos++] = {style: null, text: this.text.slice(stream.pos)};
break;
}
newLine = false;
}
}
return st;
}
function highlightOutputsDifferent(o1, o2) {
var minLen = Math.min(o1.length, o2.length);
for (var i = 0; i < minLen; ++i)
if (o1[i].style != o2[i].style || o1[i].text != o2[i].text) return i;
if (o1.length > minLen || o2.length > minLen) return minLen;
}
function prettyPrintOutputTable(output, diffAt) {
var s = '<table class="mt-output">';
s += '<tr>';
for (var i = 0; i < output.length; ++i) {
var style = output[i].style, val = output[i].text;
s +=
'<td class="mt-token"' + (i == diffAt ? " style='background: pink'" : "") + '>' +
'<span class="cm-' + esc(String(style)) + '">' +
esc(val.replace(/ /g,'\xb7')) + // · MIDDLE DOT
'</span>' +
'</td>';
}
s += '</tr><tr>';
for (var i = 0; i < output.length; ++i) {
s += '<td class="mt-style"><span>' + (output[i].style || null) + '</span></td>';
}
if(output[0].state) {
s += '</tr><tr class="mt-state-row" title="State AFTER each token">';
for (var i = 0; i < output.length; ++i) {
s += '<td class="mt-state"><pre>' + esc(output[i].state) + '</pre></td>';
}
}
s += '</tr></table>';
return s;
}
})();
|
import React from 'react';
import { graphql } from 'gatsby';
import {
Button,
HeaderBack,
HeadingXL,
Image,
Layout,
SEO,
TextBody,
} from '../components';
const About = ({ data }) => {
return (
<>
<SEO title="About" />
<HeaderBack />
<Layout>
<HeadingXL>About</HeadingXL>
<Image fluid={data.MyPhoto.childImageSharp.fluid} />
<TextBody>
Software Engineering Manager based in NYC with a background in Data Engineering
and building micro-services using Python Flask and a keen follower of the
Apache Airflow Project.
<br />
<br />
An Agile Software Development Methodology proponent and advocate for scalable,
healthy SDLC practices.
</TextBody>
<Button href="mailto:sachetpatil89@gmail.com">Get in touch</Button>
</Layout>
</>
);
};
export default About;
export const query = graphql`
query {
MyPhoto: file(relativePath: { eq: "Sachet.jpg" }) {
childImageSharp {
fluid(maxWidth: 1400) {
...GatsbyImageSharpFluid_withWebp
}
}
}
}
`;
|
import React from 'react'
import Project1 from '../assets/case1.svg'
import Project2 from '../assets/case2.svg'
const Project = () => {
return (
<section className="work" id="work">
<div className="container">
<div className="section-heading">
<h1>Work</h1>
<h6>My Portfolio</h6>
</div>
<div className="my-projects">
<div className="project">
<Project1 />
</div>
<div className="project">
<Project2 />
</div>
<div className="project">
<img src="https://via.placeholder.com/150" alt="privada 14" />
</div>
</div>
</div>
</section>
)
}
export default Project
|
webpackJsonp([0],{261:function(a,s,t){"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.default={name:"color",data:function(){return{txt:"I have to remind myself that some birds don’t mean to be caged . Their feathers are just too bright. And when they fly away, the part of you that knows it was a sin to lock them up. DOES rejoice. Still, the place you live in is that much more drab and empty that they’re gone. I guess I just miss my friend. "}}}},294:function(a,s,t){s=a.exports=t(60)(),s.push([a.i,".card-item[data-v-71f86a1e]{display:-ms-flexbox;display:flex;margin-bottom:30px}.card-item .card[data-v-71f86a1e]{-ms-flex:1;flex:1}.card-item .card[data-v-71f86a1e]:first-child{margin-right:50px}.color-palette[data-v-71f86a1e]{padding-bottom:60px;line-height:1;overflow:hidden}.color-palette .color-group[data-v-71f86a1e]{float:left;margin-left:5%;padding-bottom:40px;width:28%}.color-palette .color-group[data-v-71f86a1e]:nth-child(3n+1){clear:left;margin-left:0}.color-palette .color-group li[data-v-71f86a1e]{padding:10px 15px 11px;margin:0}.color-palette .color-group li.divide[data-v-71f86a1e]{border-top:4px solid #fafafa}.color-palette .color-group span[data-v-71f86a1e]{color:hsla(0,0%,100%,.87);font-size:14px;font-weight:500}.color-palette .color-group .dark span[data-v-71f86a1e]{color:rgba(0,0,0,.87)}.color-palette .color-group .hex[data-v-71f86a1e]{float:right;text-transform:uppercase;display:block}","",{version:3,sources:["/./example/views/Color.vue"],names:[],mappings:"AACA,4BACE,oBAAqB,AACrB,aAAc,AACd,kBAAoB,CACrB,AACD,kCACE,WAAY,AACR,MAAQ,CACb,AACD,8CACE,iBAAmB,CACpB,AACD,gCACE,oBAAqB,AACrB,cAAe,AACf,eAAiB,CAClB,AACD,6CACE,WAAY,AACZ,eAAgB,AAChB,oBAAqB,AACrB,SAAW,CACZ,AACD,6DACE,WAAY,AACZ,aAAe,CAChB,AACD,gDACE,uBAAwB,AACxB,QAAU,CACX,AACD,uDACE,4BAA8B,CAC/B,AACD,kDACE,0BAA8B,AAC9B,eAAgB,AAChB,eAAiB,CAClB,AACD,wDACE,qBAAwB,CACzB,AACD,kDACE,YAAa,AACb,yBAA0B,AAC1B,aAAe,CAChB",file:"Color.vue",sourcesContent:["\n.card-item[data-v-71f86a1e] {\n display: -ms-flexbox;\n display: flex;\n margin-bottom: 30px;\n}\n.card-item .card[data-v-71f86a1e] {\n -ms-flex: 1;\n flex: 1;\n}\n.card-item .card[data-v-71f86a1e]:first-child {\n margin-right: 50px;\n}\n.color-palette[data-v-71f86a1e] {\n padding-bottom: 60px;\n line-height: 1;\n overflow: hidden;\n}\n.color-palette .color-group[data-v-71f86a1e] {\n float: left;\n margin-left: 5%;\n padding-bottom: 40px;\n width: 28%;\n}\n.color-palette .color-group[data-v-71f86a1e]:nth-child(3n+1) {\n clear: left;\n margin-left: 0;\n}\n.color-palette .color-group li[data-v-71f86a1e] {\n padding: 10px 15px 11px;\n margin: 0;\n}\n.color-palette .color-group li.divide[data-v-71f86a1e] {\n border-top: 4px solid #fafafa;\n}\n.color-palette .color-group span[data-v-71f86a1e] {\n color: rgba(255,255,255,0.87);\n font-size: 14px;\n font-weight: 500;\n}\n.color-palette .color-group .dark span[data-v-71f86a1e] {\n color: rgba(0,0,0,0.87);\n}\n.color-palette .color-group .hex[data-v-71f86a1e] {\n float: right;\n text-transform: uppercase;\n display: block;\n}"],sourceRoot:"webpack://"}])},317:function(a,s,t){var c=t(294);"string"==typeof c&&(c=[[a.i,c,""]]),c.locals&&(a.exports=c.locals);t(228)("0ee1fbcf",c,!0)},342:function(a,s){a.exports={render:function(){var a=this,s=a.$createElement,t=a._self._c||s;return t("article",[t("h1",[a._v("颜色 Color")]),a._v(" "),a._m(0),a._v(" "),t("h3",[a._v("背景色")]),a._v(" "),t("p",[a._v("\n 使用背景色需要在 class 中添加颜色名和深浅(light/darkness)\n ")]),a._v(" "),t("section",{staticClass:"card-item default"},[t("r-card",{staticClass:"green accent-3"},[t("r-card-text",[t("p",[a._v(a._s(a.txt))])])],1),a._v(" "),t("r-card",{staticClass:"red lighten-3"},[t("r-card-text",[t("p",[a._v(a._s(a.txt))])])],1)],1),a._v(" "),t("Markup",{attrs:{lang:"html"}},[a._v('\n <div class="green accent-3">this is background-color</div>\n <div class="red lighten-3">this is background-color</div>\n ')]),a._v(" "),t("h3",[a._v("文字颜色")]),a._v(" "),a._m(1),a._v(" "),t("section",{staticClass:"card-item default"},[t("r-card",{staticClass:"blue-text text-accent-3"},[t("r-card-text",[t("p",[a._v(a._s(a.txt))])])],1),a._v(" "),t("r-card",{staticClass:"orange-text text-lighten-1"},[t("r-card-text",[t("p",[a._v(a._s(a.txt))])])],1)],1),a._v(" "),t("Markup",{attrs:{lang:"html"}},[a._v('\n <div class="blue-text text-accent-3">this is text-color</div>\n <div class="orange-text text-lighten-1">this is text-color</div>\n ')]),a._v(" "),t("h3",[a._v("after 伪类颜色")]),a._v(" "),t("p",[a._v('badge 组件徽标在伪类 after 上, 使用 class="red-after" 给 after 伪类添加颜色 ')]),a._v(" "),t("r-icon",{directives:[{name:"badge",rawName:"v-badge:10.inner",arg:"10",modifiers:{inner:!0}}],staticClass:"badge-icons red-after",attrs:{large:""}},[a._v("call")]),a._v(" "),t("Markup",{attrs:{lang:"html"}},[a._v('\n <r-icon class="badge-icons red-after" large v-badge:10.inner>call</r-icon>\n ')]),a._v(" "),t("h2",[a._v("调色板")]),a._v(" "),a._m(2)],1)},staticRenderFns:[function(){var a=this,s=a.$createElement,t=a._self._c||s;return t("p",[a._v("\n 颜色规范直接采用 Material Design 官方提供的\n "),t("a",{staticClass:"demo-link",attrs:{href:"https://material.io/guidelines/style/color.html#color-color-palette",target:"_blank"}},[a._v("调色板")])])},function(){var a=this,s=a.$createElement,t=a._self._c||s;return t("p",[a._v("\n 文字添加颜色需要在 class 中添加文字的颜色名和深浅(light/darkness) 如:"),t("br"),a._v('\n class="blue-text text-accent-3" \n ')])},function(){var a=this,s=a.$createElement,t=a._self._c||s;return t("div",{staticClass:"color-palette"},[t("section",{staticClass:"color-group"},[t("ul",[t("li",{staticClass:"color main-color",staticStyle:{"background-color":"#f44336"}},[t("span",{staticClass:"name light-strong"},[a._v("Red")]),a._v(" "),t("span",{staticClass:"shade light-strong"},[a._v("500")]),a._v(" "),t("span",{staticClass:"hex light-strong"},[a._v("#f44336")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#ffebee"}},[t("span",{staticClass:"shade expanded"},[a._v("50")]),t("span",{staticClass:"hex"},[a._v("#ffebee")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#ffcdd2"}},[t("span",{staticClass:"shade"},[a._v("100")]),t("span",{staticClass:"hex"},[a._v("#ffcdd2")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#ef9a9a"}},[t("span",{staticClass:"shade expanded"},[a._v("200")]),t("span",{staticClass:"hex"},[a._v("#ef9a9a")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#e57373"}},[t("span",{staticClass:"shade"},[a._v("300")]),t("span",{staticClass:"hex"},[a._v("#e57373")])]),a._v(" "),t("li",{staticClass:"color",staticStyle:{"background-color":"#ef5350"}},[t("span",{staticClass:"shade expanded"},[a._v("400")]),t("span",{staticClass:"hex"},[a._v("#ef5350")])]),a._v(" "),t("li",{staticClass:"color",staticStyle:{"background-color":"#f44336"}},[t("span",{staticClass:"shade"},[a._v("500")]),t("span",{staticClass:"hex"},[a._v("#f44336")])]),a._v(" "),t("li",{staticClass:"color",staticStyle:{"background-color":"#e53935"}},[t("span",{staticClass:"shade expanded"},[a._v("600")]),t("span",{staticClass:"hex"},[a._v("#e53935")])]),a._v(" "),t("li",{staticClass:"color",staticStyle:{"background-color":"#d32f2f"}},[t("span",{staticClass:"shade"},[a._v("700")]),t("span",{staticClass:"hex"},[a._v("#d32f2f")])]),a._v(" "),t("li",{staticClass:"color",staticStyle:{"background-color":"#c62828"}},[t("span",{staticClass:"shade expanded"},[a._v("800")]),t("span",{staticClass:"hex"},[a._v("#c62828")])]),a._v(" "),t("li",{staticClass:"color",staticStyle:{"background-color":"#b71c1c"}},[t("span",{staticClass:"shade expanded"},[a._v("900")]),t("span",{staticClass:"hex"},[a._v("#b71c1c")])]),a._v(" "),t("li",{staticClass:"color dark divide",staticStyle:{"background-color":"#ff8a80"}},[t("span",{staticClass:"shade accent"},[a._v("A100")]),t("span",{staticClass:"hex"},[a._v("#ff8a80")])]),a._v(" "),t("li",{staticClass:"color light-strong",staticStyle:{"background-color":"#ff5252"}},[t("span",{staticClass:"shade accent expanded"},[a._v("A200")]),t("span",{staticClass:"hex"},[a._v("#ff5252")])]),a._v(" "),t("li",{staticClass:"color",staticStyle:{"background-color":"#ff1744"}},[t("span",{staticClass:"shade accent expanded"},[a._v("A400")]),t("span",{staticClass:"hex"},[a._v("#ff1744")])]),a._v(" "),t("li",{staticClass:"color",staticStyle:{"background-color":"#d50000"}},[t("span",{staticClass:"shade accent"},[a._v("A700")]),t("span",{staticClass:"hex"},[a._v("#d50000")])])])]),a._v(" "),t("section",{staticClass:"color-group"},[t("ul",[t("li",{staticClass:"color main-color",staticStyle:{"background-color":"#E91E63"}},[t("span",{staticClass:"name light-strong"},[a._v("Pink")]),a._v(" "),t("span",{staticClass:"shade light-strong"},[a._v("500")]),a._v(" "),t("span",{staticClass:"hex light-strong"},[a._v("#e91e63")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#fce4ec"}},[t("span",{staticClass:"shade expanded"},[a._v("50")]),t("span",{staticClass:"hex"},[a._v("#fce4ec")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#f8bbd0"}},[t("span",{staticClass:"shade"},[a._v("100")]),t("span",{staticClass:"hex"},[a._v("#f8bbd0")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#f48fb1"}},[t("span",{staticClass:"shade expanded"},[a._v("200")]),t("span",{staticClass:"hex"},[a._v("#f48fb1")])]),a._v(" "),t("li",{staticClass:"color light-strong",staticStyle:{"background-color":"#f06292"}},[t("span",{staticClass:"shade"},[a._v("300")]),t("span",{staticClass:"hex"},[a._v("#f06292")])]),a._v(" "),t("li",{staticClass:"color ",staticStyle:{"background-color":"#ec407a"}},[t("span",{staticClass:"shade expanded"},[a._v("400")]),t("span",{staticClass:"hex"},[a._v("#ec407a")])]),a._v(" "),t("li",{staticClass:"color",staticStyle:{"background-color":"#e91e63"}},[t("span",{staticClass:"shade"},[a._v("500")]),t("span",{staticClass:"hex"},[a._v("#e91e63")])]),a._v(" "),t("li",{staticClass:"color",staticStyle:{"background-color":"#d81b60"}},[t("span",{staticClass:"shade expanded"},[a._v("600")]),t("span",{staticClass:"hex"},[a._v("#d81b60")])]),a._v(" "),t("li",{staticClass:"color",staticStyle:{"background-color":"#c2185b"}},[t("span",{staticClass:"shade"},[a._v("700")]),t("span",{staticClass:"hex"},[a._v("#c2185b")])]),a._v(" "),t("li",{staticClass:"color",staticStyle:{"background-color":"#ad1457"}},[t("span",{staticClass:"shade"},[a._v("800")]),t("span",{staticClass:"hex"},[a._v("#ad1457")])]),a._v(" "),t("li",{staticClass:"color",staticStyle:{"background-color":"#880e4f"}},[t("span",{staticClass:"shade"},[a._v("900")]),t("span",{staticClass:"hex"},[a._v("#880e4f")])]),a._v(" "),t("li",{staticClass:"color dark divide",staticStyle:{"background-color":"#ff80ab"}},[t("span",{staticClass:"shade accent"},[a._v("A100")]),t("span",{staticClass:"hex"},[a._v("#ff80ab")])]),a._v(" "),t("li",{staticClass:"color light-strong",staticStyle:{"background-color":"#ff4081"}},[t("span",{staticClass:"shade accent expanded"},[a._v("A200")]),t("span",{staticClass:"hex"},[a._v("#ff4081")])]),a._v(" "),t("li",{staticClass:"color",staticStyle:{"background-color":"#f50057"}},[t("span",{staticClass:"shade accent expanded"},[a._v("A400")]),t("span",{staticClass:"hex"},[a._v("#f50057")])]),a._v(" "),t("li",{staticClass:"color",staticStyle:{"background-color":"#c51162"}},[t("span",{staticClass:"shade accent"},[a._v("A700")]),t("span",{staticClass:"hex"},[a._v("#c51162")])])])]),a._v(" "),t("section",{staticClass:"color-group"},[t("ul",[t("li",{staticClass:"color main-color",staticStyle:{"background-color":"#9c27b0"}},[t("span",{staticClass:"name"},[a._v("Purple")]),a._v(" "),t("span",{staticClass:"shade"},[a._v("500")]),a._v(" "),t("span",{staticClass:"hex"},[a._v("#9c27b0")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#f3e5f5"}},[t("span",{staticClass:"shade expanded"},[a._v("50")]),t("span",{staticClass:"hex"},[a._v("#f3e5f5")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#e1bee7"}},[t("span",{staticClass:"shade"},[a._v("100")]),t("span",{staticClass:"hex"},[a._v("#e1bee7")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#ce93d8"}},[t("span",{staticClass:"shade expanded"},[a._v("200")]),t("span",{staticClass:"hex"},[a._v("#ce93d8")])]),a._v(" "),t("li",{staticClass:"color light-strong",staticStyle:{"background-color":"#ba68c8"}},[t("span",{staticClass:"shade"},[a._v("300")]),t("span",{staticClass:"hex"},[a._v("#ba68c8")])]),a._v(" "),t("li",{staticClass:"color light-strong",staticStyle:{"background-color":"#ab47bc"}},[t("span",{staticClass:"shade expanded"},[a._v("400")]),t("span",{staticClass:"hex"},[a._v("#ab47bc")])]),a._v(" "),t("li",{staticClass:"color",staticStyle:{"background-color":"#9c27b0"}},[t("span",{staticClass:"shade"},[a._v("500")]),t("span",{staticClass:"hex"},[a._v("#9c27b0")])]),a._v(" "),t("li",{staticClass:"color",staticStyle:{"background-color":"#8e24aa"}},[t("span",{staticClass:"shade expanded"},[a._v("600")]),t("span",{staticClass:"hex"},[a._v("#8e24aa")])]),a._v(" "),t("li",{staticClass:"color",staticStyle:{"background-color":"#7b1fa2"}},[t("span",{staticClass:"shade"},[a._v("700")]),t("span",{staticClass:"hex"},[a._v("#7b1fa2")])]),a._v(" "),t("li",{staticClass:"color",staticStyle:{"background-color":"#6a1b9a"}},[t("span",{staticClass:"shade expanded"},[a._v("800")]),t("span",{staticClass:"hex"},[a._v("#6a1b9a")])]),a._v(" "),t("li",{staticClass:"color",staticStyle:{"background-color":"#4a148c"}},[t("span",{staticClass:"shade expanded"},[a._v("900")]),t("span",{staticClass:"hex"},[a._v("#4a148c")])]),a._v(" "),t("li",{staticClass:"color dark divide",staticStyle:{"background-color":"#ea80fc"}},[t("span",{staticClass:"shade accent"},[a._v("A100")]),t("span",{staticClass:"hex"},[a._v("#ea80fc")])]),a._v(" "),t("li",{staticClass:"color light-strong",staticStyle:{"background-color":"#e040fb"}},[t("span",{staticClass:"shade accent expanded"},[a._v("A200")]),t("span",{staticClass:"hex"},[a._v("#e040fb")])]),a._v(" "),t("li",{staticClass:"color",staticStyle:{"background-color":"#d500f9"}},[t("span",{staticClass:"shade accent expanded"},[a._v("A400")]),t("span",{staticClass:"hex"},[a._v("#d500f9")])]),a._v(" "),t("li",{staticClass:"color",staticStyle:{"background-color":"#aa00ff"}},[t("span",{staticClass:"shade accent"},[a._v("A700")]),t("span",{staticClass:"hex"},[a._v("#aa00ff")])])])]),a._v(" "),t("section",{staticClass:"color-group"},[t("ul",[t("li",{staticClass:"color main-color",staticStyle:{"background-color":"#673ab7"}},[t("span",{staticClass:"name"},[a._v("Deep Purple")]),a._v(" "),t("span",{staticClass:"shade"},[a._v("500")]),a._v(" "),t("span",{staticClass:"hex"},[a._v("#673ab7")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#ede7f6"}},[t("span",{staticClass:"shade expanded"},[a._v("50")]),t("span",{staticClass:"hex"},[a._v("#ede7f6")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#d1c4e9"}},[t("span",{staticClass:"shade"},[a._v("100")]),t("span",{staticClass:"hex"},[a._v("#d1c4e9")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#b39ddb"}},[t("span",{staticClass:"shade expanded"},[a._v("200")]),t("span",{staticClass:"hex"},[a._v("#b39ddb")])]),a._v(" "),t("li",{staticClass:"color",staticStyle:{"background-color":"#9575cd"}},[t("span",{staticClass:"shade"},[a._v("300")]),t("span",{staticClass:"hex"},[a._v("#9575cd")])]),a._v(" "),t("li",{staticClass:"color",staticStyle:{"background-color":"#7e57c2"}},[t("span",{staticClass:"shade expanded"},[a._v("400")]),t("span",{staticClass:"hex"},[a._v("#7e57c2")])]),a._v(" "),t("li",{staticClass:"color",staticStyle:{"background-color":"#673ab7"}},[t("span",{staticClass:"shade"},[a._v("500")]),t("span",{staticClass:"hex"},[a._v("#673ab7")])]),a._v(" "),t("li",{staticClass:"color",staticStyle:{"background-color":"#5e35b1"}},[t("span",{staticClass:"shade expanded"},[a._v("600")]),t("span",{staticClass:"hex"},[a._v("#5e35b1")])]),a._v(" "),t("li",{staticClass:"color",staticStyle:{"background-color":"#512da8"}},[t("span",{staticClass:"shade"},[a._v("700")]),t("span",{staticClass:"hex"},[a._v("#512da8")])]),a._v(" "),t("li",{staticClass:"color",staticStyle:{"background-color":"#4527a0"}},[t("span",{staticClass:"shade expanded"},[a._v("800")]),t("span",{staticClass:"hex"},[a._v("#4527a0")])]),a._v(" "),t("li",{staticClass:"color",staticStyle:{"background-color":"#311b92"}},[t("span",{staticClass:"shade expanded"},[a._v("900")]),t("span",{staticClass:"hex"},[a._v("#311b92")])]),a._v(" "),t("li",{staticClass:"color dark divide",staticStyle:{"background-color":"#b388ff"}},[t("span",{staticClass:"shade accent"},[a._v("A100")]),t("span",{staticClass:"hex"},[a._v("#b388ff")])]),a._v(" "),t("li",{staticClass:"color light-strong",staticStyle:{"background-color":"#7c4dff"}},[t("span",{staticClass:"shade accent expanded"},[a._v("A200")]),t("span",{staticClass:"hex"},[a._v("#7c4dff")])]),a._v(" "),t("li",{staticClass:"color",staticStyle:{"background-color":"#651fff"}},[t("span",{staticClass:"shade accent expanded"},[a._v("A400")]),t("span",{staticClass:"hex"},[a._v("#651fff")])]),a._v(" "),t("li",{staticClass:"color",staticStyle:{"background-color":"#6200ea"}},[t("span",{staticClass:"shade accent"},[a._v("A700")]),t("span",{staticClass:"hex"},[a._v("#6200ea")])])])]),a._v(" "),t("section",{staticClass:"color-group"},[t("ul",[t("li",{staticClass:"color main-color",staticStyle:{"background-color":"#3f51b5"}},[t("span",{staticClass:"name"},[a._v("Indigo")]),a._v(" "),t("span",{staticClass:"shade"},[a._v("500")]),a._v(" "),t("span",{staticClass:"hex"},[a._v("#3f51b5")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#e8eaf6"}},[t("span",{staticClass:"shade expanded"},[a._v("50")]),t("span",{staticClass:"hex"},[a._v("#e8eaf6")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#c5cae9"}},[t("span",{staticClass:"shade"},[a._v("100")]),t("span",{staticClass:"hex"},[a._v("#c5cae9")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#9fa8da"}},[t("span",{staticClass:"shade expanded"},[a._v("200")]),t("span",{staticClass:"hex"},[a._v("#9fa8da")])]),a._v(" "),t("li",{staticClass:"color",staticStyle:{"background-color":"#7986cb"}},[t("span",{staticClass:"shade"},[a._v("300")]),t("span",{staticClass:"hex"},[a._v("#7986cb")])]),a._v(" "),t("li",{staticClass:"color",staticStyle:{"background-color":"#5c6bc0"}},[t("span",{staticClass:"shade expanded"},[a._v("400")]),t("span",{staticClass:"hex"},[a._v("#5c6bc0")])]),a._v(" "),t("li",{staticClass:"color",staticStyle:{"background-color":"#3f51b5"}},[t("span",{staticClass:"shade"},[a._v("500")]),t("span",{staticClass:"hex"},[a._v("#3f51b5")])]),a._v(" "),t("li",{staticClass:"color",staticStyle:{"background-color":"#3949ab"}},[t("span",{staticClass:"shade expanded"},[a._v("600")]),t("span",{staticClass:"hex"},[a._v("#3949ab")])]),a._v(" "),t("li",{staticClass:"color",staticStyle:{"background-color":"#303f9f"}},[t("span",{staticClass:"shade"},[a._v("700")]),t("span",{staticClass:"hex"},[a._v("#303f9f")])]),a._v(" "),t("li",{staticClass:"color",staticStyle:{"background-color":"#283593"}},[t("span",{staticClass:"shade expanded"},[a._v("800")]),t("span",{staticClass:"hex"},[a._v("#283593")])]),a._v(" "),t("li",{staticClass:"color",staticStyle:{"background-color":"#1a237e"}},[t("span",{staticClass:"shade expanded"},[a._v("900")]),t("span",{staticClass:"hex"},[a._v("#1a237e")])]),a._v(" "),t("li",{staticClass:"color dark divide",staticStyle:{"background-color":"#8c9eff"}},[t("span",{staticClass:"shade accent"},[a._v("A100")]),t("span",{staticClass:"hex"},[a._v("#8c9eff")])]),a._v(" "),t("li",{staticClass:"color",staticStyle:{"background-color":"#536dfe"}},[t("span",{staticClass:"shade accent expanded"},[a._v("A200")]),t("span",{staticClass:"hex"},[a._v("#536dfe")])]),a._v(" "),t("li",{staticClass:"color",staticStyle:{"background-color":"#3d5afe"}},[t("span",{staticClass:"shade accent expanded"},[a._v("A400")]),t("span",{staticClass:"hex"},[a._v("#3d5afe")])]),a._v(" "),t("li",{staticClass:"color",staticStyle:{"background-color":"#304ffe"}},[t("span",{staticClass:"shade accent"},[a._v("A700")]),t("span",{staticClass:"hex"},[a._v("#304ffe")])])])]),a._v(" "),t("section",{staticClass:"color-group"},[t("ul",[t("li",{staticClass:"color main-color",staticStyle:{"background-color":"#2196F3"}},[t("span",{staticClass:"name light-strong"},[a._v("Blue")]),a._v(" "),t("span",{staticClass:"shade light-strong"},[a._v("500")]),a._v(" "),t("span",{staticClass:"hex light-strong"},[a._v("#2196f3")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#e3f2fd"}},[t("span",{staticClass:"shade expanded"},[a._v("50")]),t("span",{staticClass:"hex"},[a._v("#e3f2fd")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#bbdefb"}},[t("span",{staticClass:"shade"},[a._v("100")]),t("span",{staticClass:"hex"},[a._v("#bbdefb")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#90caf9"}},[t("span",{staticClass:"shade expanded"},[a._v("200")]),t("span",{staticClass:"hex"},[a._v("#90caf9")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#64b5f6"}},[t("span",{staticClass:"shade"},[a._v("300")]),t("span",{staticClass:"hex"},[a._v("#64b5f6")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#42a5f5"}},[t("span",{staticClass:"shade expanded"},[a._v("400")]),t("span",{staticClass:"hex"},[a._v("#42a5f5")])]),a._v(" "),t("li",{staticClass:"color light-strong",staticStyle:{"background-color":"#2196f3"}},[t("span",{staticClass:"shade"},[a._v("500")]),t("span",{staticClass:"hex"},[a._v("#2196f3")])]),a._v(" "),t("li",{staticClass:"color",staticStyle:{"background-color":"#1e88e5"}},[t("span",{staticClass:"shade expanded"},[a._v("600")]),t("span",{staticClass:"hex"},[a._v("#1e88e5")])]),a._v(" "),t("li",{staticClass:"color",staticStyle:{"background-color":"#1976d2"}},[t("span",{staticClass:"shade"},[a._v("700")]),t("span",{staticClass:"hex"},[a._v("#1976d2")])]),a._v(" "),t("li",{staticClass:"color",staticStyle:{"background-color":"#1565c0"}},[t("span",{staticClass:"shade expanded"},[a._v("800")]),t("span",{staticClass:"hex"},[a._v("#1565c0")])]),a._v(" "),t("li",{staticClass:"color",staticStyle:{"background-color":"#0d47a1"}},[t("span",{staticClass:"shade expanded"},[a._v("900")]),t("span",{staticClass:"hex"},[a._v("#0d47a1")])]),a._v(" "),t("li",{staticClass:"color dark divide",staticStyle:{"background-color":"#82b1ff"}},[t("span",{staticClass:"shade accent"},[a._v("A100")]),t("span",{staticClass:"hex"},[a._v("#82b1ff")])]),a._v(" "),t("li",{staticClass:"color light-strong",staticStyle:{"background-color":"#448aff"}},[t("span",{staticClass:"shade accent expanded"},[a._v("A200")]),t("span",{staticClass:"hex"},[a._v("#448aff")])]),a._v(" "),t("li",{staticClass:"color",staticStyle:{"background-color":"#2979ff"}},[t("span",{staticClass:"shade accent expanded"},[a._v("A400")]),t("span",{staticClass:"hex"},[a._v("#2979ff")])]),a._v(" "),t("li",{staticClass:"color",staticStyle:{"background-color":"#2962ff"}},[t("span",{staticClass:"shade accent"},[a._v("A700")]),t("span",{staticClass:"hex"},[a._v("#2962ff")])])])]),a._v(" "),t("section",{staticClass:"color-group"},[t("ul",[t("li",{staticClass:"color main-color",staticStyle:{"background-color":"#03a9f4"}},[t("span",{staticClass:"name dark"},[a._v("Light Blue")]),a._v(" "),t("span",{staticClass:"shade dark"},[a._v("500")]),a._v(" "),t("span",{staticClass:"hex dark"},[a._v("#03a9f4")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#e1f5fe"}},[t("span",{staticClass:"shade expanded"},[a._v("50")]),t("span",{staticClass:"hex"},[a._v("#e1f5fe")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#b3e5fc"}},[t("span",{staticClass:"shade"},[a._v("100")]),t("span",{staticClass:"hex"},[a._v("#b3e5fc")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#81d4fa"}},[t("span",{staticClass:"shade expanded"},[a._v("200")]),t("span",{staticClass:"hex"},[a._v("#81d4fa")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#4fc3f7"}},[t("span",{staticClass:"shade"},[a._v("300")]),t("span",{staticClass:"hex"},[a._v("#4fc3f7")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#29b6f6"}},[t("span",{staticClass:"shade expanded"},[a._v("400")]),t("span",{staticClass:"hex"},[a._v("#29b6f6")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#03a9f4"}},[t("span",{staticClass:"shade"},[a._v("500")]),t("span",{staticClass:"hex"},[a._v("#03a9f4")])]),a._v(" "),t("li",{staticClass:"color light-strong",staticStyle:{"background-color":"#039be5"}},[t("span",{staticClass:"shade expanded"},[a._v("600")]),t("span",{staticClass:"hex"},[a._v("#039be5")])]),a._v(" "),t("li",{staticClass:"color",staticStyle:{"background-color":"#0288d1"}},[t("span",{staticClass:"shade"},[a._v("700")]),t("span",{staticClass:"hex"},[a._v("#0288d1")])]),a._v(" "),t("li",{staticClass:"color",staticStyle:{"background-color":"#0277bd"}},[t("span",{staticClass:"shade expanded"},[a._v("800")]),t("span",{staticClass:"hex"},[a._v("#0277bd")])]),a._v(" "),t("li",{staticClass:"color",staticStyle:{"background-color":"#01579b"}},[t("span",{staticClass:"shade expanded"},[a._v("900")]),t("span",{staticClass:"hex"},[a._v("#01579b")])]),a._v(" "),t("li",{staticClass:"color dark divide",staticStyle:{"background-color":"#80d8ff"}},[t("span",{staticClass:"shade accent"},[a._v("A100")]),t("span",{staticClass:"hex"},[a._v("#80d8ff")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#40c4ff"}},[t("span",{staticClass:"shade accent expanded"},[a._v("A200")]),t("span",{staticClass:"hex"},[a._v("#40c4ff")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#00b0ff"}},[t("span",{staticClass:"shade accent expanded"},[a._v("A400")]),t("span",{staticClass:"hex"},[a._v("#00b0ff")])]),a._v(" "),t("li",{staticClass:"color light-strong",staticStyle:{"background-color":"#0091ea"}},[t("span",{staticClass:"shade accent"},[a._v("A700")]),t("span",{staticClass:"hex"},[a._v("#0091ea")])])])]),a._v(" "),t("section",{staticClass:"color-group"},[t("ul",[t("li",{staticClass:"color main-color",staticStyle:{"background-color":"#00bcd4"}},[t("span",{staticClass:"name dark"},[a._v("Cyan")]),a._v(" "),t("span",{staticClass:"shade dark"},[a._v("500")]),a._v(" "),t("span",{staticClass:"hex dark"},[a._v("#00bcd4")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#e0f7fa"}},[t("span",{staticClass:"shade expanded"},[a._v("50")]),t("span",{staticClass:"hex"},[a._v("#e0f7fa")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#b2ebf2"}},[t("span",{staticClass:"shade"},[a._v("100")]),t("span",{staticClass:"hex"},[a._v("#b2ebf2")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#80deea"}},[t("span",{staticClass:"shade expanded"},[a._v("200")]),t("span",{staticClass:"hex"},[a._v("#80deea")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#4dd0e1"}},[t("span",{staticClass:"shade"},[a._v("300")]),t("span",{staticClass:"hex"},[a._v("#4dd0e1")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#26c6da"}},[t("span",{staticClass:"shade expanded"},[a._v("400")]),t("span",{staticClass:"hex"},[a._v("#26c6da")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#00bcd4"}},[t("span",{staticClass:"shade"},[a._v("500")]),t("span",{staticClass:"hex"},[a._v("#00bcd4")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#00acc1"}},[t("span",{staticClass:"shade expanded"},[a._v("600")]),t("span",{staticClass:"hex"},[a._v("#00acc1")])]),a._v(" "),t("li",{staticClass:"color",staticStyle:{"background-color":"#0097a7"}},[t("span",{staticClass:"shade"},[a._v("700")]),t("span",{staticClass:"hex"},[a._v("#0097a7")])]),a._v(" "),t("li",{staticClass:"color",staticStyle:{"background-color":"#00838f"}},[t("span",{staticClass:"shade expanded"},[a._v("800")]),t("span",{staticClass:"hex"},[a._v("#00838f")])]),a._v(" "),t("li",{staticClass:"color",staticStyle:{"background-color":"#006064"}},[t("span",{staticClass:"shade expanded"},[a._v("900")]),t("span",{staticClass:"hex"},[a._v("#006064")])]),a._v(" "),t("li",{staticClass:"color dark divide",staticStyle:{"background-color":"#84ffff"}},[t("span",{staticClass:"shade accent"},[a._v("A100")]),t("span",{staticClass:"hex"},[a._v("#84ffff")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#18ffff"}},[t("span",{staticClass:"shade accent expanded"},[a._v("A200")]),t("span",{staticClass:"hex"},[a._v("#18ffff")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#00e5ff"}},[t("span",{staticClass:"shade accent expanded"},[a._v("A400")]),t("span",{staticClass:"hex"},[a._v("#00e5ff")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#00b8d4"}},[t("span",{staticClass:"shade accent"},[a._v("A700")]),t("span",{staticClass:"hex"},[a._v("#00b8d4")])])])]),a._v(" "),t("section",{staticClass:"color-group"},[t("ul",[t("li",{staticClass:"color main-color",staticStyle:{"background-color":"#009688"}},[t("span",{staticClass:"name light-strong"},[a._v("Teal")]),a._v(" "),t("span",{staticClass:"shade light-strong"},[a._v("500")]),a._v(" "),t("span",{staticClass:"hex light-strong"},[a._v("#009688")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#e0f2f1"}},[t("span",{staticClass:"shade expanded"},[a._v("50")]),t("span",{staticClass:"hex"},[a._v("#e0f2f1")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#b2dfdb"}},[t("span",{staticClass:"shade"},[a._v("100")]),t("span",{staticClass:"hex"},[a._v("#b2dfdb")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#80cbc4"}},[t("span",{staticClass:"shade expanded"},[a._v("200")]),t("span",{staticClass:"hex"},[a._v("#80cbc4")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#4db6ac"}},[t("span",{staticClass:"shade"},[a._v("300")]),t("span",{staticClass:"hex"},[a._v("#4db6ac")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#26a69a"}},[t("span",{staticClass:"shade expanded"},[a._v("400")]),t("span",{staticClass:"hex"},[a._v("#26a69a")])]),a._v(" "),t("li",{staticClass:"color light-strong",staticStyle:{"background-color":"#009688"}},[t("span",{staticClass:"shade"},[a._v("500")]),t("span",{staticClass:"hex"},[a._v("#009688")])]),a._v(" "),t("li",{staticClass:"color light-strong",staticStyle:{"background-color":"#00897b"}},[t("span",{staticClass:"shade expanded"},[a._v("600")]),t("span",{staticClass:"hex"},[a._v("#00897b")])]),a._v(" "),t("li",{staticClass:"color light-strong",staticStyle:{"background-color":"#00796b"}},[t("span",{staticClass:"shade"},[a._v("700")]),t("span",{staticClass:"hex"},[a._v("#00796b")])]),a._v(" "),t("li",{staticClass:"color",staticStyle:{"background-color":"#00695c"}},[t("span",{staticClass:"shade expanded"},[a._v("800")]),t("span",{staticClass:"hex"},[a._v("#00695c")])]),a._v(" "),t("li",{staticClass:"color",staticStyle:{"background-color":"#004d40"}},[t("span",{staticClass:"shade expanded"},[a._v("900")]),t("span",{staticClass:"hex"},[a._v("#004d40")])]),a._v(" "),t("li",{staticClass:"color dark divide",staticStyle:{"background-color":"#a7ffeb"}},[t("span",{staticClass:"shade accent"},[a._v("A100")]),t("span",{staticClass:"hex"},[a._v("#a7ffeb")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#64ffda"}},[t("span",{staticClass:"shade accent expanded"},[a._v("A200")]),t("span",{staticClass:"hex"},[a._v("#64ffda")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#1de9b6"}},[t("span",{staticClass:"shade accent expanded"},[a._v("A400")]),t("span",{staticClass:"hex"},[a._v("#1de9b6")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#00bfa5"}},[t("span",{staticClass:"shade accent"},[a._v("A700")]),t("span",{staticClass:"hex"},[a._v("#00bfa5")])])])]),a._v(" "),t("section",{staticClass:"color-group"},[t("ul",[t("li",{staticClass:"color main-color",staticStyle:{"background-color":"#4caf50"}},[t("span",{staticClass:"name dark"},[a._v("Green")]),a._v(" "),t("span",{staticClass:"shade dark"},[a._v("500")]),a._v(" "),t("span",{staticClass:"hex dark"},[a._v("#4caf50")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#e8f5e9"}},[t("span",{staticClass:"shade expanded"},[a._v("50")]),t("span",{staticClass:"hex"},[a._v("#e8f5e9")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#c8e6c9"}},[t("span",{staticClass:"shade"},[a._v("100")]),t("span",{staticClass:"hex"},[a._v("#c8e6c9")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#a5d6a7"}},[t("span",{staticClass:"shade expanded"},[a._v("200")]),t("span",{staticClass:"hex"},[a._v("#a5d6a7")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#81c784"}},[t("span",{staticClass:"shade"},[a._v("300")]),t("span",{staticClass:"hex"},[a._v("#81c784")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#66bb6a"}},[t("span",{staticClass:"shade expanded"},[a._v("400")]),t("span",{staticClass:"hex"},[a._v("#66bb6a")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#4caf50"}},[t("span",{staticClass:"shade"},[a._v("500")]),t("span",{staticClass:"hex"},[a._v("#4caf50")])]),a._v(" "),t("li",{staticClass:"color light-strong",staticStyle:{"background-color":"#43a047"}},[t("span",{staticClass:"shade expanded"},[a._v("600")]),t("span",{staticClass:"hex"},[a._v("#43a047")])]),a._v(" "),t("li",{staticClass:"color",staticStyle:{"background-color":"#388e3c"}},[t("span",{staticClass:"shade"},[a._v("700")]),t("span",{staticClass:"hex"},[a._v("#388e3c")])]),a._v(" "),t("li",{staticClass:"color",staticStyle:{"background-color":"#2e7d32"}},[t("span",{staticClass:"shade expanded"},[a._v("800")]),t("span",{staticClass:"hex"},[a._v("#2e7d32")])]),a._v(" "),t("li",{staticClass:"color",staticStyle:{"background-color":"#1b5e20"}},[t("span",{staticClass:"shade expanded"},[a._v("900")]),t("span",{staticClass:"hex"},[a._v("#1b5e20")])]),a._v(" "),t("li",{staticClass:"color dark divide",staticStyle:{"background-color":"#b9f6ca"}},[t("span",{staticClass:"shade accent"},[a._v("A100")]),t("span",{staticClass:"hex"},[a._v("#b9f6ca")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#69f0ae"}},[t("span",{staticClass:"shade accent expanded"},[a._v("A200")]),t("span",{staticClass:"hex"},[a._v("#69f0ae")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#00e676"}},[t("span",{staticClass:"shade accent expanded"},[a._v("A400")]),t("span",{staticClass:"hex"},[a._v("#00e676")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#00c853"}},[t("span",{staticClass:"shade accent"},[a._v("A700")]),t("span",{staticClass:"hex"},[a._v("#00c853")])])])]),a._v(" "),t("section",{staticClass:"color-group"},[t("ul",[t("li",{staticClass:"color main-color",staticStyle:{"background-color":"#8bc34a"}},[t("span",{staticClass:"name dark"},[a._v("Light Green")]),a._v(" "),t("span",{staticClass:"shade dark"},[a._v("500")]),a._v(" "),t("span",{staticClass:"hex dark"},[a._v("#8bc34a")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#f1f8e9"}},[t("span",{staticClass:"shade expanded"},[a._v("50")]),t("span",{staticClass:"hex"},[a._v("#f1f8e9")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#dcedc8"}},[t("span",{staticClass:"shade"},[a._v("100")]),t("span",{staticClass:"hex"},[a._v("#dcedc8")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#c5e1a5"}},[t("span",{staticClass:"shade expanded"},[a._v("200")]),t("span",{staticClass:"hex"},[a._v("#c5e1a5")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#aed581"}},[t("span",{staticClass:"shade"},[a._v("300")]),t("span",{staticClass:"hex"},[a._v("#aed581")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#9ccc65"}},[t("span",{staticClass:"shade expanded"},[a._v("400")]),t("span",{staticClass:"hex"},[a._v("#9ccc65")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#8bc34a"}},[t("span",{staticClass:"shade"},[a._v("500")]),t("span",{staticClass:"hex"},[a._v("#8bc34a")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#7cb342"}},[t("span",{staticClass:"shade expanded"},[a._v("600")]),t("span",{staticClass:"hex"},[a._v("#7cb342")])]),a._v(" "),t("li",{staticClass:"color light-strong",staticStyle:{"background-color":"#689f38"}},[t("span",{staticClass:"shade"},[a._v("700")]),t("span",{staticClass:"hex"},[a._v("#689f38")])]),a._v(" "),t("li",{staticClass:"color",staticStyle:{"background-color":"#558b2f"}},[t("span",{staticClass:"shade expanded"},[a._v("800")]),t("span",{staticClass:"hex"},[a._v("#558b2f")])]),a._v(" "),t("li",{staticClass:"color",staticStyle:{"background-color":"#33691e"}},[t("span",{staticClass:"shade expanded"},[a._v("900")]),t("span",{staticClass:"hex"},[a._v("#33691e")])]),a._v(" "),t("li",{staticClass:"color dark divide",staticStyle:{"background-color":"#ccff90"}},[t("span",{staticClass:"shade accent"},[a._v("A100")]),t("span",{staticClass:"hex"},[a._v("#ccff90")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#b2ff59"}},[t("span",{staticClass:"shade accent expanded"},[a._v("A200")]),t("span",{staticClass:"hex"},[a._v("#b2ff59")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#76ff03"}},[t("span",{staticClass:"shade accent expanded"},[a._v("A400")]),t("span",{staticClass:"hex"},[a._v("#76ff03")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#64dd17"}},[t("span",{staticClass:"shade accent"},[a._v("A700")]),t("span",{staticClass:"hex"},[a._v("#64dd17")])])])]),a._v(" "),t("section",{staticClass:"color-group"},[t("ul",[t("li",{staticClass:"color main-color",staticStyle:{"background-color":"#cddc39"}},[t("span",{staticClass:"name dark"},[a._v("Lime")]),a._v(" "),t("span",{staticClass:"shade dark"},[a._v("500")]),a._v(" "),t("span",{staticClass:"hex dark"},[a._v("#cddc39")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#f9fbe7"}},[t("span",{staticClass:"shade expanded"},[a._v("50")]),t("span",{staticClass:"hex"},[a._v("#f9fbe7")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#f0f4c3"}},[t("span",{staticClass:"shade"},[a._v("100")]),t("span",{staticClass:"hex"},[a._v("#f0f4c3")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#e6ee9c"}},[t("span",{staticClass:"shade expanded"},[a._v("200")]),t("span",{staticClass:"hex"},[a._v("#e6ee9c")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#dce775"}},[t("span",{staticClass:"shade"},[a._v("300")]),t("span",{staticClass:"hex"},[a._v("#dce775")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#d4e157"}},[t("span",{staticClass:"shade expanded"},[a._v("400")]),t("span",{staticClass:"hex"},[a._v("#d4e157")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#cddc39"}},[t("span",{staticClass:"shade"},[a._v("500")]),t("span",{staticClass:"hex"},[a._v("#cddc39")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#c0ca33"}},[t("span",{staticClass:"shade expanded"},[a._v("600")]),t("span",{staticClass:"hex"},[a._v("#c0ca33")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#afb42b"}},[t("span",{staticClass:"shade"},[a._v("700")]),t("span",{staticClass:"hex"},[a._v("#afb42b")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#9e9d24"}},[t("span",{staticClass:"shade expanded"},[a._v("800")]),t("span",{staticClass:"hex"},[a._v("#9e9d24")])]),a._v(" "),t("li",{staticClass:"color",staticStyle:{"background-color":"#827717"}},[t("span",{staticClass:"shade expanded"},[a._v("900")]),t("span",{staticClass:"hex"},[a._v("#827717")])]),a._v(" "),t("li",{staticClass:"color dark divide",staticStyle:{"background-color":"#f4ff81"}},[t("span",{staticClass:"shade accent"},[a._v("A100")]),t("span",{staticClass:"hex"},[a._v("#f4ff81")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#eeff41"}},[t("span",{staticClass:"shade accent expanded"},[a._v("A200")]),t("span",{staticClass:"hex"},[a._v("#eeff41")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#c6ff00"}},[t("span",{staticClass:"shade accent expanded"},[a._v("A400")]),t("span",{staticClass:"hex"},[a._v("#c6ff00")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#aeea00"}},[t("span",{staticClass:"shade accent"},[a._v("A700")]),t("span",{staticClass:"hex"},[a._v("#aeea00")])])])]),a._v(" "),t("section",{staticClass:"color-group"},[t("ul",[t("li",{staticClass:"color main-color",staticStyle:{"background-color":"#ffeb3b"}},[t("span",{staticClass:"name dark"},[a._v("Yellow")]),a._v(" "),t("span",{staticClass:"shade dark"},[a._v("500")]),a._v(" "),t("span",{staticClass:"hex dark"},[a._v("#ffeb3b")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#fffde7"}},[t("span",{staticClass:"shade expanded"},[a._v("50")]),t("span",{staticClass:"hex"},[a._v("#fffde7")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#fff9c4"}},[t("span",{staticClass:"shade"},[a._v("100")]),t("span",{staticClass:"hex"},[a._v("#fff9c4")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#fff59d"}},[t("span",{staticClass:"shade expanded"},[a._v("200")]),t("span",{staticClass:"hex"},[a._v("#fff59d")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#fff176"}},[t("span",{staticClass:"shade"},[a._v("300")]),t("span",{staticClass:"hex"},[a._v("#fff176")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#ffee58"}},[t("span",{staticClass:"shade expanded"},[a._v("400")]),t("span",{staticClass:"hex"},[a._v("#ffee58")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#ffeb3b"}},[t("span",{staticClass:"shade"},[a._v("500")]),t("span",{staticClass:"hex"},[a._v("#ffeb3b")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#fdd835"}},[t("span",{staticClass:"shade expanded"},[a._v("600")]),t("span",{staticClass:"hex"},[a._v("#fdd835")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#fbc02d"}},[t("span",{staticClass:"shade"},[a._v("700")]),t("span",{staticClass:"hex"},[a._v("#fbc02d")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#f9a825"}},[t("span",{staticClass:"shade expanded"},[a._v("800")]),t("span",{staticClass:"hex"},[a._v("#f9a825")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#f57f17"}},[t("span",{staticClass:"shade expanded"},[a._v("900")]),t("span",{staticClass:"hex"},[a._v("#f57f17")])]),a._v(" "),t("li",{staticClass:"color dark divide",staticStyle:{"background-color":"#ffff8d"}},[t("span",{staticClass:"shade accent"},[a._v("A100")]),t("span",{staticClass:"hex"},[a._v("#ffff8d")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#ffff00"}},[t("span",{staticClass:"shade accent expanded"},[a._v("A200")]),t("span",{staticClass:"hex"},[a._v("#ffff00")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#ffea00"}},[t("span",{staticClass:"shade accent expanded"},[a._v("A400")]),t("span",{staticClass:"hex"},[a._v("#ffea00")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#ffd600"}},[t("span",{staticClass:"shade accent"},[a._v("A700")]),t("span",{staticClass:"hex"},[a._v("#ffd600")])])])]),a._v(" "),t("section",{staticClass:"color-group"},[t("ul",[t("li",{staticClass:"color main-color",staticStyle:{"background-color":"#ffc107"}},[t("span",{staticClass:"name dark"},[a._v("Amber")]),a._v(" "),t("span",{staticClass:"shade dark"},[a._v("500")]),a._v(" "),t("span",{staticClass:"hex dark"},[a._v("#ffc107")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#fff8e1"}},[t("span",{staticClass:"shade expanded"},[a._v("50")]),t("span",{staticClass:"hex"},[a._v("#fff8e1")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#ffecb3"}},[t("span",{staticClass:"shade"},[a._v("100")]),t("span",{staticClass:"hex"},[a._v("#ffecb3")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#ffe082"}},[t("span",{staticClass:"shade expanded"},[a._v("200")]),t("span",{staticClass:"hex"},[a._v("#ffe082")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#ffd54f"}},[t("span",{staticClass:"shade"},[a._v("300")]),t("span",{staticClass:"hex"},[a._v("#ffd54f")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#ffca28"}},[t("span",{staticClass:"shade expanded"},[a._v("400")]),t("span",{staticClass:"hex"},[a._v("#ffca28")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#ffc107"}},[t("span",{staticClass:"shade"},[a._v("500")]),t("span",{staticClass:"hex"},[a._v("#ffc107")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#ffb300"}},[t("span",{staticClass:"shade expanded"},[a._v("600")]),t("span",{staticClass:"hex"},[a._v("#ffb300")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#ffa000"}},[t("span",{staticClass:"shade"},[a._v("700")]),t("span",{staticClass:"hex"},[a._v("#ffa000")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#ff8f00"}},[t("span",{staticClass:"shade expanded"},[a._v("800")]),t("span",{staticClass:"hex"},[a._v("#ff8f00")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#ff6f00"}},[t("span",{staticClass:"shade expanded"},[a._v("900")]),t("span",{staticClass:"hex"},[a._v("#ff6f00")])]),a._v(" "),t("li",{staticClass:"color dark divide",staticStyle:{"background-color":"#ffe57f"}},[t("span",{staticClass:"shade accent"},[a._v("A100")]),t("span",{staticClass:"hex"},[a._v("#ffe57f")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#ffd740"}},[t("span",{staticClass:"shade accent expanded"},[a._v("A200")]),t("span",{staticClass:"hex"},[a._v("#ffd740")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#ffc400"}},[t("span",{staticClass:"shade accent expanded"},[a._v("A400")]),t("span",{staticClass:"hex"},[a._v("#ffc400")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#ffab00"}},[t("span",{staticClass:"shade accent"},[a._v("A700")]),t("span",{staticClass:"hex"},[a._v("#ffab00")])])])]),a._v(" "),t("section",{staticClass:"color-group"},[t("ul",[t("li",{staticClass:"color main-color",staticStyle:{"background-color":"#ff9800"}},[t("span",{staticClass:"name dark-when-small"},[a._v("Orange")]),a._v(" "),t("span",{staticClass:"shade dark-when-small"},[a._v("500")]),a._v(" "),t("span",{staticClass:"hex dark-when-small"},[a._v("#ff9800")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#fff3e0"}},[t("span",{staticClass:"shade expanded"},[a._v("50")]),t("span",{staticClass:"hex"},[a._v("#fff3e0")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#ffe0b2"}},[t("span",{staticClass:"shade"},[a._v("100")]),t("span",{staticClass:"hex"},[a._v("#ffe0b2")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#ffcc80"}},[t("span",{staticClass:"shade expanded"},[a._v("200")]),t("span",{staticClass:"hex"},[a._v("#ffcc80")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#ffb74d"}},[t("span",{staticClass:"shade"},[a._v("300")]),t("span",{staticClass:"hex"},[a._v("#ffb74d")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#ffa726"}},[t("span",{staticClass:"shade expanded"},[a._v("400")]),t("span",{staticClass:"hex"},[a._v("#ffa726")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#ff9800"}},[t("span",{staticClass:"shade"},[a._v("500")]),t("span",{staticClass:"hex"},[a._v("#ff9800")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#fb8c00"}},[t("span",{staticClass:"shade expanded"},[a._v("600")]),t("span",{staticClass:"hex"},[a._v("#fb8c00")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#f57c00"}},[t("span",{staticClass:"shade"},[a._v("700")]),t("span",{staticClass:"hex"},[a._v("#f57c00")])]),a._v(" "),t("li",{staticClass:"color light-strong",staticStyle:{"background-color":"#ef6c00"}},[t("span",{staticClass:"shade expanded"},[a._v("800")]),t("span",{staticClass:"hex"},[a._v("#ef6c00")])]),a._v(" "),t("li",{staticClass:"color",staticStyle:{"background-color":"#e65100"}},[t("span",{staticClass:"shade expanded"},[a._v("900")]),t("span",{staticClass:"hex"},[a._v("#e65100")])]),a._v(" "),t("li",{staticClass:"color dark divide",staticStyle:{"background-color":"#ffd180"}},[t("span",{staticClass:"shade accent"},[a._v("A100")]),t("span",{staticClass:"hex"},[a._v("#ffd180")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#ffab40"}},[t("span",{staticClass:"shade accent expanded"},[a._v("A200")]),t("span",{staticClass:"hex"},[a._v("#ffab40")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#ff9100"}},[t("span",{staticClass:"shade accent expanded"},[a._v("A400")]),t("span",{staticClass:"hex"},[a._v("#ff9100")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#ff6d00"}},[t("span",{staticClass:"shade accent"},[a._v("A700")]),t("span",{staticClass:"hex"},[a._v("#ff6d00")])])])]),a._v(" "),t("section",{staticClass:"color-group"},[t("ul",[t("li",{staticClass:"color main-color",staticStyle:{"background-color":"#ff5722"}},[t("span",{staticClass:"name light-strong"},[a._v("Deep Orange")]),a._v(" "),t("span",{staticClass:"shade light-strong"},[a._v("500")]),a._v(" "),t("span",{staticClass:"hex light-strong"},[a._v("#ff5722")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#fbe9e7"}},[t("span",{staticClass:"shade expanded"},[a._v("50")]),t("span",{staticClass:"hex"},[a._v("#fbe9e7")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#ffccbc"}},[t("span",{staticClass:"shade"},[a._v("100")]),t("span",{staticClass:"hex"},[a._v("#ffccbc")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#ffab91"}},[t("span",{staticClass:"shade expanded"},[a._v("200")]),t("span",{staticClass:"hex"},[a._v("#ffab91")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#ff8a65"}},[t("span",{staticClass:"shade"},[a._v("300")]),t("span",{staticClass:"hex"},[a._v("#ff8a65")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#ff7043"}},[t("span",{staticClass:"shade expanded"},[a._v("400")]),t("span",{staticClass:"hex"},[a._v("#ff7043")])]),a._v(" "),t("li",{staticClass:"color light-strong",staticStyle:{"background-color":"#ff5722"}},[t("span",{staticClass:"shade"},[a._v("500")]),t("span",{staticClass:"hex"},[a._v("#ff5722")])]),a._v(" "),t("li",{staticClass:"color",staticStyle:{"background-color":"#f4511e"}},[t("span",{staticClass:"shade expanded"},[a._v("600")]),t("span",{staticClass:"hex"},[a._v("#f4511e")])]),a._v(" "),t("li",{staticClass:"color",staticStyle:{"background-color":"#e64a19"}},[t("span",{staticClass:"shade"},[a._v("700")]),t("span",{staticClass:"hex"},[a._v("#e64a19")])]),a._v(" "),t("li",{staticClass:"color",staticStyle:{"background-color":"#d84315"}},[t("span",{staticClass:"shade expanded"},[a._v("800")]),t("span",{staticClass:"hex"},[a._v("#d84315")])]),a._v(" "),t("li",{staticClass:"color",staticStyle:{"background-color":"#bf360c"}},[t("span",{staticClass:"shade expanded"},[a._v("900")]),t("span",{staticClass:"hex"},[a._v("#bf360c")])]),a._v(" "),t("li",{staticClass:"color dark divide",staticStyle:{"background-color":"#ff9e80"}},[t("span",{staticClass:"shade accent"},[a._v("A100")]),t("span",{staticClass:"hex"},[a._v("#ff9e80")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#ff6e40"}},[t("span",{staticClass:"shade accent expanded"},[a._v("A200")]),t("span",{staticClass:"hex"},[a._v("#ff6e40")])]),a._v(" "),t("li",{staticClass:"color",staticStyle:{"background-color":"#ff3d00"}},[t("span",{staticClass:"shade accent expanded"},[a._v("A400")]),t("span",{staticClass:"hex"},[a._v("#ff3d00")])]),a._v(" "),t("li",{staticClass:"color",staticStyle:{"background-color":"#dd2c00"}},[t("span",{staticClass:"shade accent"},[a._v("A700")]),t("span",{staticClass:"hex"},[a._v("#dd2c00")])])])]),a._v(" "),t("section",{staticClass:"color-group"},[t("ul",[t("li",{staticClass:"color main-color",staticStyle:{"background-color":"#795548"}},[t("span",{staticClass:"name"},[a._v("Brown")]),a._v(" "),t("span",{staticClass:"shade"},[a._v("500")]),a._v(" "),t("span",{staticClass:"hex"},[a._v("#795548")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#efebe9"}},[t("span",{staticClass:"shade expanded"},[a._v("50")]),t("span",{staticClass:"hex"},[a._v("#efebe9")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#d7ccc8"}},[t("span",{staticClass:"shade"},[a._v("100")]),t("span",{staticClass:"hex"},[a._v("#d7ccc8")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#bcaaa4"}},[t("span",{staticClass:"shade expanded"},[a._v("200")]),t("span",{staticClass:"hex"},[a._v("#bcaaa4")])]),a._v(" "),t("li",{staticClass:"color light-strong",staticStyle:{"background-color":"#a1887f"}},[t("span",{staticClass:"shade"},[a._v("300")]),t("span",{staticClass:"hex"},[a._v("#a1887f")])]),a._v(" "),t("li",{staticClass:"color",staticStyle:{"background-color":"#8d6e63"}},[t("span",{staticClass:"shade expanded"},[a._v("400")]),t("span",{staticClass:"hex"},[a._v("#8d6e63")])]),a._v(" "),t("li",{staticClass:"color",staticStyle:{"background-color":"#795548"}},[t("span",{staticClass:"shade"},[a._v("500")]),t("span",{staticClass:"hex"},[a._v("#795548")])]),a._v(" "),t("li",{staticClass:"color",staticStyle:{"background-color":"#6d4c41"}},[t("span",{staticClass:"shade expanded"},[a._v("600")]),t("span",{staticClass:"hex"},[a._v("#6d4c41")])]),a._v(" "),t("li",{staticClass:"color",staticStyle:{"background-color":"#5d4037"}},[t("span",{staticClass:"shade"},[a._v("700")]),t("span",{staticClass:"hex"},[a._v("#5d4037")])]),a._v(" "),t("li",{staticClass:"color",staticStyle:{"background-color":"#4e342e"}},[t("span",{staticClass:"shade expanded"},[a._v("800")]),t("span",{staticClass:"hex"},[a._v("#4e342e")])]),a._v(" "),t("li",{staticClass:"color",staticStyle:{"background-color":"#3e2723"}},[t("span",{staticClass:"shade expanded"},[a._v("900")]),t("span",{staticClass:"hex"},[a._v("#3e2723")])])])]),a._v(" "),t("section",{staticClass:"color-group"},[t("ul",[t("li",{staticClass:"color main-color",staticStyle:{"background-color":"#9e9e9e"}},[t("span",{staticClass:"name dark-when-small"},[a._v("Grey")]),a._v(" "),t("span",{staticClass:"shade dark-when-small"},[a._v("500")]),a._v(" "),t("span",{staticClass:"hex dark-when-small"},[a._v("#9e9e9e")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#fafafa"}},[t("span",{staticClass:"shade expanded"},[a._v("50")]),t("span",{staticClass:"hex"},[a._v("#fafafa")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#f5f5f5"}},[t("span",{staticClass:"shade"},[a._v("100")]),t("span",{staticClass:"hex"},[a._v("#f5f5f5")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#eeeeee"}},[t("span",{staticClass:"shade expanded"},[a._v("200")]),t("span",{staticClass:"hex"},[a._v("#eeeeee")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#e0e0e0"}},[t("span",{staticClass:"shade"},[a._v("300")]),t("span",{staticClass:"hex"},[a._v("#e0e0e0")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#bdbdbd"}},[t("span",{staticClass:"shade expanded"},[a._v("400")]),t("span",{staticClass:"hex"},[a._v("#bdbdbd")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#9e9e9e"}},[t("span",{staticClass:"shade"},[a._v("500")]),t("span",{staticClass:"hex"},[a._v("#9e9e9e")])]),a._v(" "),t("li",{staticClass:"color",staticStyle:{"background-color":"#757575"}},[t("span",{staticClass:"shade expanded"},[a._v("600")]),t("span",{staticClass:"hex"},[a._v("#757575")])]),a._v(" "),t("li",{staticClass:"color",staticStyle:{"background-color":"#616161"}},[t("span",{staticClass:"shade"},[a._v("700")]),t("span",{staticClass:"hex"},[a._v("#616161")])]),a._v(" "),t("li",{staticClass:"color",staticStyle:{"background-color":"#424242"}},[t("span",{staticClass:"shade expanded"},[a._v("800")]),t("span",{staticClass:"hex"},[a._v("#424242")])]),a._v(" "),t("li",{staticClass:"color",staticStyle:{"background-color":"#212121"}},[t("span",{staticClass:"shade expanded"},[a._v("900")]),t("span",{staticClass:"hex"},[a._v("#212121")])])])]),a._v(" "),t("section",{staticClass:"color-group"},[t("ul",[t("li",{staticClass:"color main-color",staticStyle:{"background-color":"#607d8b"}},[t("span",{staticClass:"name light-strong"},[a._v("Blue Grey")]),a._v(" "),t("span",{staticClass:"shade light-strong"},[a._v("500")]),a._v(" "),t("span",{staticClass:"hex light-strong"},[a._v("#607d8b")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#eceff1"}},[t("span",{staticClass:"shade expanded"},[a._v("50")]),t("span",{staticClass:"hex"},[a._v("#eceff1")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#cfd8dc"}},[t("span",{staticClass:"shade"},[a._v("100")]),t("span",{staticClass:"hex"},[a._v("#cfd8dc")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#b0bec5"}},[t("span",{staticClass:"shade expanded"},[a._v("200")]),t("span",{staticClass:"hex"},[a._v("#b0bec5")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#90a4ae"}},[t("span",{staticClass:"shade"},[a._v("300")]),t("span",{staticClass:"hex"},[a._v("#90a4ae")])]),a._v(" "),t("li",{staticClass:"color light-strong",staticStyle:{"background-color":"#78909c"}},[t("span",{staticClass:"shade expanded"},[a._v("400")]),t("span",{staticClass:"hex"},[a._v("#78909c")])]),a._v(" "),t("li",{staticClass:"color",staticStyle:{"background-color":"#607d8b"}},[t("span",{staticClass:"shade"},[a._v("500")]),t("span",{staticClass:"hex"},[a._v("#607d8b")])]),a._v(" "),t("li",{staticClass:"color",staticStyle:{"background-color":"#546e7a"}},[t("span",{staticClass:"shade expanded"},[a._v("600")]),t("span",{staticClass:"hex"},[a._v("#546e7a")])]),a._v(" "),t("li",{staticClass:"color",staticStyle:{"background-color":"#455a64"}},[t("span",{staticClass:"shade"},[a._v("700")]),t("span",{staticClass:"hex"},[a._v("#455a64")])]),a._v(" "),t("li",{staticClass:"color",staticStyle:{"background-color":"#37474f"}},[t("span",{staticClass:"shade expanded"},[a._v("800")]),t("span",{staticClass:"hex"},[a._v("#37474f")])]),a._v(" "),t("li",{staticClass:"color",staticStyle:{"background-color":"#263238"}},[t("span",{staticClass:"shade expanded"},[a._v("900")]),t("span",{staticClass:"hex"},[a._v("#263238")])])])]),a._v(" "),t("section",{staticClass:"color-group"},[t("ul",[t("li",{staticClass:"color",staticStyle:{"background-color":"#000000"}},[t("span",{staticClass:"shade accent"},[a._v("Black")]),t("span",{staticClass:"hex"},[a._v("#000000")])]),a._v(" "),t("li",{staticClass:"color dark",staticStyle:{"background-color":"#ffffff"}},[t("span",{staticClass:"shade accent expanded"},[a._v("White")]),t("span",{staticClass:"hex"},[a._v("#ffffff")])])])])])}]}},61:function(a,s,t){t(317);var c=t(0)(t(261),t(342),"data-v-71f86a1e",null);a.exports=c.exports}});
|
import renderer from 'react-test-renderer';
import { BusinessCard } from "./BusinessCard";
describe("<BusinessCard />", () => {
it("snapshot check", () => {
const tree = renderer.create(<BusinessCard
isSender={true}
name='Rishabh Controls'
gst= '24ABNPN1124A1ZA'
address= {`Address #1
Address #2`}
phone={1234567890}
/>).toJSON();
expect(tree).toMatchSnapshot();
});
});
|
export default {
html: `
<div class='SHOUTY'>YELL</div>
<svg viewBox='0 0 100 100' id='one'>
<text textLength=100>hellooooo</text>
</svg>
<svg viewBox='0 0 100 100' id='two'>
<text textLength=100>hellooooo</text>
</svg>
`,
test({ assert, target }) {
const attr = sel => target.querySelector(sel).attributes[0].name;
assert.equal(attr('div'), 'class');
assert.equal(attr('svg#one'), 'viewBox');
assert.equal(attr('svg#one text'), 'textLength');
assert.equal(attr('svg#two'), 'viewBox');
assert.equal(attr('svg#two text'), 'textLength');
}
};
|
/* */
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
require("rxjs-compat/add/operator/map");
//# sourceMappingURL=map.js.map
|
let WriteHandler = require("../tools/writehandler.js");
let ReadHandler = require("../tools/readhandler.js");
const optimize = require("../tools/optimizer.js");
class Relations{
constructor(dbPath, history){
this.id2Ids = {}
this.id2IdsNoRel = {}
this.id2IdsReverse = {}
this.id2IdsReverseNoRel = {}
this.idSet = new Set();
this.dbPath = dbPath || "rels.data"
this.history = history
}
async init(){
await this.readDB()
return this;
}
async write(data){
if(this.writeHandler === undefined)
this.writeHandler = new WriteHandler(this.dbPath);
await this.writeHandler.write(data)
}
async readDB(){
let numDeletes = 0, numInserts = 0;
let rd = new ReadHandler();
await rd.read(this.dbPath, (data) => {
let id1 = data.id1;
let id2 = data.id2;
let rel = data.rel;
if(data.o == 1){
if(this.id2Ids[id1] === undefined){
this.id2Ids[id1] = {}
this.id2IdsNoRel[id1] = []
}
if(this.id2Ids[id1][rel] === undefined){
this.id2Ids[id1][rel] = []
}
this.id2Ids[id1][rel].push(id2)
if(this.id2IdsNoRel[id1].indexOf(id2) < 0){
this.id2IdsNoRel[id1].push(id2)
}
// reverse index
if(this.id2IdsReverse[id2] === undefined){
this.id2IdsReverse[id2] = {}
this.id2IdsReverseNoRel[id2] = []
}
if(this.id2IdsReverse[id2][rel] === undefined){
this.id2IdsReverse[id2][rel] = []
}
this.id2IdsReverse[id2][rel].push(id1)
this.id2IdsReverseNoRel[id2].push(id1)
this.idSet.add(id1)
this.idSet.add(id2)
numInserts++;
} else if(this.id2Ids[id1] !== undefined) {
this.id2Ids[id1][rel] = this.id2Ids[id1][rel].filter(id => id != id2)
if(this.id2Ids[id1][rel].length == 0) {
delete this.id2Ids[id1][rel];
}
if(Object.keys(this.id2Ids[id1]).length === 0) {
delete this.id2Ids[id1];
this.id2IdsNoRel[id1] = [];
} else if(Object.values(this.id2Ids[id1]).reduce((total, cur) => total + (cur.includes(id2) ? 1 : 0), 0) == 0){
this.id2IdsNoRel[id1] = this.id2IdsNoRel[id1].filter(id => id != id2)
}
if(this.id2IdsNoRel[id1].length == 0)
delete this.id2IdsNoRel[id1];
this.id2IdsReverse[id2][rel] = this.id2IdsReverse[id2][rel].filter(id => id != id1)
if(this.id2IdsReverse[id2][rel].length == 0) {
delete this.id2IdsReverse[id2][rel];
if(Object.keys(this.id2IdsReverse[id2]).length < 1)
delete this.id2IdsReverse[id2];
}
if(!this.id2IdsReverse[id2]){
delete this.id2IdsReverseNoRel[id2];
} else if(Object.values(this.id2IdsReverse[id2]).reduce((total, cur) => total + (cur.includes(id1) ? 1 : 0), 0) == 0){
this.id2IdsReverseNoRel[id2] = this.id2IdsReverseNoRel[id2].filter(id => id != id1)
if(this.id2IdsReverseNoRel[id2].length == 0)
delete this.id2IdsReverseNoRel[id2];
}
if(this.id2IdsNoRel[id1] === undefined && this.id2IdsReverseNoRel[id1] === undefined)
this.idSet.delete(id1)
if(this.id2IdsNoRel[id2] === undefined && this.id2IdsReverseNoRel[id2] === undefined)
this.idSet.delete(id2)
numDeletes++;
}
})
if(numDeletes / numInserts > 0.2 && numDeletes > 1000){
console.log(`Relations has a delete-to-insert ratio of ${numDeletes / numInserts}. Optimizing the file.`)
await optimize(this.dbPath, this.idSet, id1 => Object.entries(this.id2Ids[id1]||{}).reduce((res, cur) => {
let [rel, ids] = cur;
res.push(...ids.map(id2 => ({o: 1, id1, id2, rel})))
return res
}, []))
}
}
getMaxId(){
return Math.max(Object.values(this.id2IdsNoRel).reduce((max, e) => Math.max(max, Math.max(...e)), 0),
Object.values(this.id2IdsReverseNoRel).reduce((max, e) => Math.max(max, Math.max(...e)), 0));
}
getAllIds(){
return this.idSet.values()
}
add(id1, id2, rel){
id1 = parseInt(id1)
id2 = parseInt(id2)
if(!rel || typeof rel !== "string")
rel = "" //No rel
rel = rel.toLowerCase();
if(this.id2Ids[id1] !== undefined && this.id2Ids[id1][rel] !== undefined && this.id2Ids[id1][rel].indexOf(id2) >= 0)
return;
if(this.id2Ids[id1] === undefined){
this.id2Ids[id1] = {}
this.id2IdsNoRel[id1] = []
}
if(this.id2Ids[id1][rel] === undefined){
this.id2Ids[id1][rel] = []
}
this.id2Ids[id1][rel].push(id2)
if(this.id2IdsNoRel[id1].indexOf(id2) < 0){
this.id2IdsNoRel[id1].push(id2)
}
// reverse index
if(this.id2IdsReverse[id2] === undefined){
this.id2IdsReverse[id2] = {}
this.id2IdsReverseNoRel[id2] = []
}
if(this.id2IdsReverse[id2][rel] === undefined){
this.id2IdsReverse[id2][rel] = []
}
this.id2IdsReverse[id2][rel].push(id1)
if(this.id2IdsReverseNoRel[id2].indexOf(id1) < 0){
this.id2IdsReverseNoRel[id2].push(id1)
}
this.idSet.add(id1)
this.idSet.add(id2)
this.history?.addEntry(id1, "rel", {operation: "add", rel, id1, id2})
this.history?.addEntry(id2, "rel", {operation: "add-rev", rel, id1, id2})
this.write({o: 1, id1, id2, rel})
}
remove(id1, id2, rel){
id1 = parseInt(id1)
id2 = parseInt(id2)
if(!rel)
rel = "" //No rel
if(this.id2Ids[id1] === undefined || this.id2Ids[id1][rel] === undefined || this.id2Ids[id1][rel].indexOf(id2) < 0)
return;
this.id2Ids[id1][rel] = this.id2Ids[id1][rel].filter(id => id != id2)
if(this.id2Ids[id1][rel].length == 0){
delete this.id2Ids[id1][rel];
}
if(Object.keys(this.id2Ids[id1]).length === 0) {
delete this.id2Ids[id1];
this.id2IdsNoRel[id1] = [];
} else if(Object.values(this.id2Ids[id1]).reduce((total, cur) => total + (cur.includes(id2) ? 1 : 0), 0) == 0){
this.id2IdsNoRel[id1] = this.id2IdsNoRel[id1].filter(id => id != id2)
}
if(this.id2IdsNoRel[id1].length == 0)
delete this.id2IdsNoRel[id1];
this.id2IdsReverse[id2][rel] = this.id2IdsReverse[id2][rel].filter(id => id != id1)
if(this.id2IdsReverse[id2][rel].length == 0) {
delete this.id2IdsReverse[id2][rel];
if(Object.keys(this.id2IdsReverse[id2]).length < 1)
delete this.id2IdsReverse[id2];
}
if(!this.id2IdsReverse[id2]){
delete this.id2IdsReverseNoRel[id2];
} else if(Object.values(this.id2IdsReverse[id2]).reduce((total, cur) => total + (cur.includes(id1) ? 1 : 0), 0) == 0){
this.id2IdsReverseNoRel[id2] = this.id2IdsReverseNoRel[id2].filter(id => id != id1)
if(this.id2IdsReverseNoRel[id2].length == 0)
delete this.id2IdsReverseNoRel[id2];
}
if(this.id2IdsNoRel[id1] === undefined && this.id2IdsReverseNoRel[id1] === undefined)
this.idSet.delete(id1)
if(this.id2IdsNoRel[id2] === undefined && this.id2IdsReverseNoRel[id2] === undefined)
this.idSet.delete(id2)
this.history?.addEntry(id1, "rel", {operation: "remove", rel, id1, id2})
this.history?.addEntry(id2, "rel", {operation: "remove-rev", rel, id1, id2})
this.write({o: 0, id1, id2, rel})
}
getRelated(id, rel){
if(rel){
return (this.id2Ids[id]||{})[rel] || [];
} else {
return this.id2IdsNoRel[id] || [];
}
}
getRelatedReverse(id, rel){
if(rel){
return (this.id2IdsReverse[id]||{})[rel] || [];
} else {
return this.id2IdsReverseNoRel[id] || [];
}
}
getRelations(id){
return this.id2Ids[id] || {};
}
getRelationsReverse(id){
return this.id2IdsReverse[id] || {};
}
}
module.exports = Relations
|
/* eslint-disable no-bitwise */
/* eslint-disable import/prefer-default-export */
// from https://stackoverflow.com/a/21648508/1720985
export const hexToRgbA = (hex) => {
if (/^#([A-Fa-f0-9]{3}){1,2}$/.test(hex)) {
let c = hex.substring(1).split('');
if (c.length === 3) {
c = [c[0], c[0], c[1], c[1], c[2], c[2]];
}
c = `0x${c.join('')}`;
return `rgba(${[(c >> 16) & 255, (c >> 8) & 255, c & 255].join(',')},0.5)`;
}
return false;
};
|
import React from "react"
import PropTypes from "prop-types"
import { StaticQuery, graphql, Link } from "gatsby"
import Menu from "./menu"
import SEO from "./seo"
import "./layout.css"
import Footer from "./footer"
const Layout = ({ children }) => (
<StaticQuery
query={graphql`
{
allContentfulSeosite {
edges {
node {
menu {
name
slug
}
email
domain
footerjs {
footerjs
}
headerjs {
headerjs
}
aboutAutor {
aboutAutor
}
aboutSite {
aboutSite
}
}
}
}
}
`}
render={({ allContentfulSeosite: { edges } }) => {
return (
<>
<SEO />
<div className="wrap">
<div className="container">
<div className="row justify-content-between">
<div className="col"></div>
<div className="col d-flex justify-content-end">
<div className="social-media">
<p className="mb-0 d-flex">
<Link
to="/"
className="d-flex align-items-center justify-content-center"
></Link>
</p>
</div>
</div>
</div>
</div>
</div>
<Menu menu={edges[0].node} />
<main>{children}</main>
<Footer data={edges[0].node} />
<script
defer
src="https://code.jquery.com/jquery-2.2.4.min.js"
integrity="sha256-BbhdlvQf/xTY9gja0Dq3HiwQF8LaCRTXxZKRutelT44="
crossOrigin="anonymous"
></script>
<script
defer
src="https://cdnjs.cloudflare.com/ajax/libs/stellar-base/3.0.2/stellar-base.min.js"
></script>
<script defer src="/js/main.js"></script>
</>
)
}}
/>
)
Layout.propTypes = {
children: PropTypes.node.isRequired,
}
export default Layout
|
/**
* 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: "M22.5,23A4.5,4.5,0,1,1,27,18.5,4.505,4.505,0,0,1,22.5,23Zm0-7A2.5,2.5,0,1,0,25,18.5,2.5026,2.5026,0,0,0,22.5,16Z"
});
var _ref3 =
/*#__PURE__*/
/*#__PURE__*/
React.createElement("path", {
d: "M28 8H26V3H19V8H17a2.002 2.002 0 00-2 2V28a2.0023 2.0023 0 002 2H28a2.0027 2.0027 0 002-2V10A2.0023 2.0023 0 0028 8zM21 5h3V8H21zM17 28V10H28l.002 18zM2 14H5V17H2zM7 9H10V12H7zM2 9H5V12H2zM12 4H15V7H12zM7 4H10V7H7zM2 4H5V7H2z"
});
var SprayPaint24 = /*#__PURE__*/React.forwardRef(function SprayPaint24(_ref, ref) {
var children = _ref.children,
rest = Icon._objectWithoutProperties(_ref, ["children"]);
return /*#__PURE__*/React.createElement(Icon.Icon, Icon._extends({
width: 24,
height: 24,
viewBox: "0 0 32 32",
xmlns: "http://www.w3.org/2000/svg",
fill: "currentColor",
ref: ref
}, rest), _ref2, _ref3, children);
});
module.exports = SprayPaint24;
|
"use strict";
/* Generated from:
* ap-northeast-1 (https://d33vqc0rt9ld30.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json), version 4.3.0,
* ap-northeast-2 (https://d1ane3fvebulky.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json), version 4.3.0,
* ap-northeast-3 (https://d2zq80gdmjim8k.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json), version 4.3.0,
* ap-south-1 (https://d2senuesg1djtx.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json), version 4.3.0,
* ap-southeast-1 (https://doigdx0kgq9el.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json), version 4.3.0,
* ap-southeast-2 (https://d2stg8d246z9di.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json), version 4.3.0,
* ca-central-1 (https://d2s8ygphhesbe7.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json), version 4.3.0,
* eu-central-1 (https://d1mta8qj7i28i2.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json), version 4.3.0,
* eu-west-1 (https://d3teyb21fexa9r.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json), version 4.3.0,
* eu-west-2 (https://d1742qcu2c1ncx.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json), version 4.3.0,
* eu-west-3 (https://d2d0mfegowb3wk.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json), version 4.3.0,
* sa-east-1 (https://d3c9jyj3w509b0.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json), version 4.3.0,
* us-east-1 (https://d1uauaxba7bl26.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json), version 4.3.0,
* us-east-2 (https://dnwj8swjjbsbt.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json), version 4.3.0,
* us-west-1 (https://d68hl49wbnanq.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json), version 4.3.0,
* us-west-2 (https://d201a2mn26r7lk.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json), version 4.3.0
*/
Object.defineProperty(exports, "__esModule", { value: true });
const index_namespace_1 = require("./index.namespace");
exports.default = index_namespace_1.ApplicationAutoScaling;
|
/*
Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.plugins.setLang( 'flash', 'sr-latn', {
access: 'Script Access', // MISSING
accessAlways: 'Always', // MISSING
accessNever: 'Never', // MISSING
accessSameDomain: 'Same domain', // MISSING
alignAbsBottom: 'Abs dole',
alignAbsMiddle: 'Abs sredina',
alignBaseline: 'Bazno',
alignTextTop: 'Vrh teksta',
bgcolor: 'Boja pozadine',
chkFull: 'Allow Fullscreen', // MISSING
chkLoop: 'Ponavljaj',
chkMenu: 'Uključi fleš meni',
chkPlay: 'Automatski start',
flashvars: 'Variables for Flash', // MISSING
hSpace: 'HSpace',
properties: 'Osobine fleša',
propertiesTab: 'Properties', // MISSING
quality: 'Quality', // MISSING
qualityAutoHigh: 'Auto High', // MISSING
qualityAutoLow: 'Auto Low', // MISSING
qualityBest: 'Best', // MISSING
qualityHigh: 'High', // MISSING
qualityLow: 'Low', // MISSING
qualityMedium: 'Medium', // MISSING
scale: 'Skaliraj',
scaleAll: 'Prikaži sve',
scaleFit: 'Popuni površinu',
scaleNoBorder: 'Bez ivice',
title: 'Osobine fleša',
vSpace: 'VSpace',
validateHSpace: 'HSpace must be a number.', // MISSING
validateSrc: 'Unesite URL linka',
validateVSpace: 'VSpace must be a number.', // MISSING
windowMode: 'Window mode', // MISSING
windowModeOpaque: 'Opaque', // MISSING
windowModeTransparent: 'Transparent', // MISSING
windowModeWindow: 'Window' // MISSING
} );
|
// @flow
/* eslint-env mocha */
/* global suite, benchmark */
import addHours from '.'
import moment from 'moment'
suite('addHours', function () {
benchmark('date-fns', function () {
return addHours(this.date, 3)
})
benchmark('Moment.js', function () {
return this.moment.add(3, 'hours')
})
}, {
setup: function () {
this.date = new Date()
this.moment = moment()
}
})
|
function helloWorld() {
for (let i = 3; i > 0; i--) {
console.log(i);
}
console.log("...");
console.log("Hello World!");
}
helloWorld();
|
declare module '@react-navigation/material-bottom-tabs' {
//---------------------------------------------------------------------------
// SECTION 1: IDENTICAL TYPE DEFINITIONS
// This section is identical across all React Navigation libdefs and contains
// shared definitions. We wish we could make it DRY and import from a shared
// definition, but that isn't yet possible.
//---------------------------------------------------------------------------
/**
* We start with some definitions that we have copy-pasted from React Native
* source files.
*/
// This is a bastardization of the true StyleObj type located in
// react-native/Libraries/StyleSheet/StyleSheetTypes. We unfortunately can't
// import that here, and it's too lengthy (and consequently too brittle) to
// copy-paste here either.
declare type StyleObj =
| null
| void
| number
| false
| ''
| $ReadOnlyArray<StyleObj>
| { [name: string]: any, ... };
declare type ViewStyleProp = StyleObj;
declare type TextStyleProp = StyleObj;
declare type AnimatedViewStyleProp = StyleObj;
declare type AnimatedTextStyleProp = StyleObj;
// Vaguely copied from
// react-native/Libraries/Animated/src/animations/Animation.js
declare type EndResult = { finished: boolean, ... };
declare type EndCallback = (result: EndResult) => void;
declare interface Animation {
start(
fromValue: number,
onUpdate: (value: number) => void,
onEnd: ?EndCallback,
previousAnimation: ?Animation,
animatedValue: AnimatedValue,
): void;
stop(): void;
}
declare type AnimationConfig = {
isInteraction?: boolean,
useNativeDriver: boolean,
onComplete?: ?EndCallback,
iterations?: number,
...
};
// Vaguely copied from
// react-native/Libraries/Animated/src/nodes/AnimatedTracking.js
declare interface AnimatedTracking {
constructor(
value: AnimatedValue,
parent: any,
animationClass: any,
animationConfig: Object,
callback?: ?EndCallback,
): void;
update(): void;
}
// Vaguely copied from
// react-native/Libraries/Animated/src/nodes/AnimatedValue.js
declare type ValueListenerCallback = (state: { value: number, ... }) => void;
declare interface AnimatedValue {
constructor(value: number): void;
setValue(value: number): void;
setOffset(offset: number): void;
flattenOffset(): void;
extractOffset(): void;
addListener(callback: ValueListenerCallback): string;
removeListener(id: string): void;
removeAllListeners(): void;
stopAnimation(callback?: ?(value: number) => void): void;
resetAnimation(callback?: ?(value: number) => void): void;
interpolate(config: InterpolationConfigType): AnimatedInterpolation;
animate(animation: Animation, callback: ?EndCallback): void;
stopTracking(): void;
track(tracking: AnimatedTracking): void;
}
// Copied from
// react-native/Libraries/Animated/src/animations/TimingAnimation.js
declare type TimingAnimationConfigSingle = AnimationConfig & {
toValue: number | AnimatedValue,
easing?: (value: number) => number,
duration?: number,
delay?: number,
...
};
// Copied from
// react-native/Libraries/Animated/src/animations/SpringAnimation.js
declare type SpringAnimationConfigSingle = AnimationConfig & {
toValue: number | AnimatedValue,
overshootClamping?: boolean,
restDisplacementThreshold?: number,
restSpeedThreshold?: number,
velocity?: number,
bounciness?: number,
speed?: number,
tension?: number,
friction?: number,
stiffness?: number,
damping?: number,
mass?: number,
delay?: number,
...
};
// Copied from react-native/Libraries/Types/CoreEventTypes.js
declare type SyntheticEvent<T> = $ReadOnly<{|
bubbles: ?boolean,
cancelable: ?boolean,
currentTarget: number,
defaultPrevented: ?boolean,
dispatchConfig: $ReadOnly<{|
registrationName: string,
|}>,
eventPhase: ?number,
preventDefault: () => void,
isDefaultPrevented: () => boolean,
stopPropagation: () => void,
isPropagationStopped: () => boolean,
isTrusted: ?boolean,
nativeEvent: T,
persist: () => void,
target: ?number,
timeStamp: number,
type: ?string,
|}>;
declare type Layout = $ReadOnly<{|
x: number,
y: number,
width: number,
height: number,
|}>;
declare type LayoutEvent = SyntheticEvent<
$ReadOnly<{|
layout: Layout,
|}>,
>;
declare type BlurEvent = SyntheticEvent<
$ReadOnly<{|
target: number,
|}>,
>;
declare type FocusEvent = SyntheticEvent<
$ReadOnly<{|
target: number,
|}>,
>;
declare type ResponderSyntheticEvent<T> = $ReadOnly<{|
...SyntheticEvent<T>,
touchHistory: $ReadOnly<{|
indexOfSingleActiveTouch: number,
mostRecentTimeStamp: number,
numberActiveTouches: number,
touchBank: $ReadOnlyArray<
$ReadOnly<{|
touchActive: boolean,
startPageX: number,
startPageY: number,
startTimeStamp: number,
currentPageX: number,
currentPageY: number,
currentTimeStamp: number,
previousPageX: number,
previousPageY: number,
previousTimeStamp: number,
|}>,
>,
|}>,
|}>;
declare type PressEvent = ResponderSyntheticEvent<
$ReadOnly<{|
changedTouches: $ReadOnlyArray<$PropertyType<PressEvent, 'nativeEvent'>>,
force: number,
identifier: number,
locationX: number,
locationY: number,
pageX: number,
pageY: number,
target: ?number,
timestamp: number,
touches: $ReadOnlyArray<$PropertyType<PressEvent, 'nativeEvent'>>,
|}>,
>;
// Vaguely copied from
// react-native/Libraries/Animated/src/nodes/AnimatedInterpolation.js
declare type ExtrapolateType = 'extend' | 'identity' | 'clamp';
declare type InterpolationConfigType = {
inputRange: Array<number>,
outputRange: Array<number> | Array<string>,
easing?: (input: number) => number,
extrapolate?: ExtrapolateType,
extrapolateLeft?: ExtrapolateType,
extrapolateRight?: ExtrapolateType,
...
};
declare interface AnimatedInterpolation {
interpolate(config: InterpolationConfigType): AnimatedInterpolation;
}
// Copied from react-native/Libraries/Components/View/ViewAccessibility.js
declare type AccessibilityRole =
| 'none'
| 'button'
| 'link'
| 'search'
| 'image'
| 'keyboardkey'
| 'text'
| 'adjustable'
| 'imagebutton'
| 'header'
| 'summary'
| 'alert'
| 'checkbox'
| 'combobox'
| 'menu'
| 'menubar'
| 'menuitem'
| 'progressbar'
| 'radio'
| 'radiogroup'
| 'scrollbar'
| 'spinbutton'
| 'switch'
| 'tab'
| 'tablist'
| 'timer'
| 'toolbar';
declare type AccessibilityActionInfo = $ReadOnly<{
name: string,
label?: string,
...
}>;
declare type AccessibilityActionEvent = SyntheticEvent<
$ReadOnly<{actionName: string, ...}>,
>;
declare type AccessibilityState = {
disabled?: boolean,
selected?: boolean,
checked?: ?boolean | 'mixed',
busy?: boolean,
expanded?: boolean,
...
};
declare type AccessibilityValue = $ReadOnly<{|
min?: number,
max?: number,
now?: number,
text?: string,
|}>;
// Copied from
// react-native/Libraries/Components/Touchable/TouchableWithoutFeedback.js
declare type Stringish = string;
declare type EdgeInsetsProp = $ReadOnly<$Shape<EdgeInsets>>;
declare type TouchableWithoutFeedbackProps = $ReadOnly<{|
accessibilityActions?: ?$ReadOnlyArray<AccessibilityActionInfo>,
accessibilityElementsHidden?: ?boolean,
accessibilityHint?: ?Stringish,
accessibilityIgnoresInvertColors?: ?boolean,
accessibilityLabel?: ?Stringish,
accessibilityLiveRegion?: ?('none' | 'polite' | 'assertive'),
accessibilityRole?: ?AccessibilityRole,
accessibilityState?: ?AccessibilityState,
accessibilityValue?: ?AccessibilityValue,
accessibilityViewIsModal?: ?boolean,
accessible?: ?boolean,
children?: ?React$Node,
delayLongPress?: ?number,
delayPressIn?: ?number,
delayPressOut?: ?number,
disabled?: ?boolean,
focusable?: ?boolean,
hitSlop?: ?EdgeInsetsProp,
importantForAccessibility?: ?('auto' | 'yes' | 'no' | 'no-hide-descendants'),
nativeID?: ?string,
onAccessibilityAction?: ?(event: AccessibilityActionEvent) => mixed,
onBlur?: ?(event: BlurEvent) => mixed,
onFocus?: ?(event: FocusEvent) => mixed,
onLayout?: ?(event: LayoutEvent) => mixed,
onLongPress?: ?(event: PressEvent) => mixed,
onPress?: ?(event: PressEvent) => mixed,
onPressIn?: ?(event: PressEvent) => mixed,
onPressOut?: ?(event: PressEvent) => mixed,
pressRetentionOffset?: ?EdgeInsetsProp,
rejectResponderTermination?: ?boolean,
testID?: ?string,
touchSoundDisabled?: ?boolean,
|}>;
// Copied from react-native/Libraries/Image/ImageSource.js
declare type ImageURISource = $ReadOnly<{
uri?: ?string,
bundle?: ?string,
method?: ?string,
headers?: ?Object,
body?: ?string,
cache?: ?('default' | 'reload' | 'force-cache' | 'only-if-cached'),
width?: ?number,
height?: ?number,
scale?: ?number,
...
}>;
/**
* The following is copied from react-native-gesture-handler's libdef
*/
declare type $EventHandlers<ExtraProps: {...}> = {|
onGestureEvent?: ($Event<ExtraProps>) => mixed,
onHandlerStateChange?: ($Event<ExtraProps>) => mixed,
onBegan?: ($Event<ExtraProps>) => mixed,
onFailed?: ($Event<ExtraProps>) => mixed,
onCancelled?: ($Event<ExtraProps>) => mixed,
onActivated?: ($Event<ExtraProps>) => mixed,
onEnded?: ($Event<ExtraProps>) => mixed,
|};
declare type HitSlop =
| number
| {|
left?: number,
top?: number,
right?: number,
bottom?: number,
vertical?: number,
horizontal?: number,
width?: number,
height?: number,
|}
| {|
width: number,
left: number,
|}
| {|
width: number,
right: number,
|}
| {|
height: number,
top: number,
|}
| {|
height: number,
bottom: number,
|};
declare type $GestureHandlerProps<
AdditionalProps: {...},
ExtraEventsProps: {...}
> = $ReadOnly<{|
...$Exact<AdditionalProps>,
...$EventHandlers<ExtraEventsProps>,
id?: string,
enabled?: boolean,
waitFor?: React$Ref<any> | Array<React$Ref<any>>,
simultaneousHandlers?: React$Ref<any> | Array<React$Ref<any>>,
shouldCancelWhenOutside?: boolean,
minPointers?: number,
hitSlop?: HitSlop,
children?: React$Node,
|}>;
declare type PanGestureHandlerProps = $GestureHandlerProps<
{
activeOffsetY?: number | [number, number],
activeOffsetX?: number | [number, number],
failOffsetY?: number | [number, number],
failOffsetX?: number | [number, number],
minDist?: number,
minVelocity?: number,
minVelocityX?: number,
minVelocityY?: number,
minPointers?: number,
maxPointers?: number,
avgTouches?: boolean,
...
},
{
x: number,
y: number,
absoluteX: number,
absoluteY: number,
translationX: number,
translationY: number,
velocityX: number,
velocityY: number,
...
}
>;
/**
* MAGIC
*/
declare type $If<Test: boolean, Then, Else = empty> = $Call<
((true, Then, Else) => Then) & ((false, Then, Else) => Else),
Test,
Then,
Else,
>;
declare type $IsA<X, Y> = $Call<
(Y => true) & (mixed => false),
X,
>;
declare type $IsUndefined<X> = $IsA<X, void>;
declare type $Partial<T> = $Rest<T, {...}>;
/**
* Actions, state, etc.
*/
declare export type ScreenParams = { +[key: string]: mixed, ... };
declare export type BackAction = {|
+type: 'GO_BACK',
+source?: string,
+target?: string,
|};
declare export type NavigateAction = {|
+type: 'NAVIGATE',
+payload:
| {| +key: string, +params?: ScreenParams |}
| {| +name: string, +key?: string, +params?: ScreenParams |},
+source?: string,
+target?: string,
|};
declare export type ResetAction = {|
+type: 'RESET',
+payload: StaleNavigationState,
+source?: string,
+target?: string,
|};
declare export type SetParamsAction = {|
+type: 'SET_PARAMS',
+payload: {| +params?: ScreenParams |},
+source?: string,
+target?: string,
|};
declare export type CommonAction =
| BackAction
| NavigateAction
| ResetAction
| SetParamsAction;
declare type NavigateActionCreator = {|
(routeName: string, params?: ScreenParams): NavigateAction,
(
| {| +key: string, +params?: ScreenParams |}
| {| +name: string, +key?: string, +params?: ScreenParams |},
): NavigateAction,
|};
declare export type CommonActionsType = {|
+navigate: NavigateActionCreator,
+goBack: () => BackAction,
+reset: (state: PossiblyStaleNavigationState) => ResetAction,
+setParams: (params: ScreenParams) => SetParamsAction,
|};
declare export type GenericNavigationAction = {|
+type: string,
+payload?: { +[key: string]: mixed, ... },
+source?: string,
+target?: string,
|};
declare export type LeafRoute<RouteName: string = string> = {|
+key: string,
+name: RouteName,
+params?: ScreenParams,
|};
declare export type StateRoute<RouteName: string = string> = {|
...LeafRoute<RouteName>,
+state: NavigationState | StaleNavigationState,
|};
declare export type Route<RouteName: string = string> =
| LeafRoute<RouteName>
| StateRoute<RouteName>;
declare export type NavigationState = {|
+key: string,
+index: number,
+routeNames: $ReadOnlyArray<string>,
+history?: $ReadOnlyArray<mixed>,
+routes: $ReadOnlyArray<Route<>>,
+type: string,
+stale: false,
|};
declare export type StaleLeafRoute<RouteName: string = string> = {|
+key?: string,
+name: RouteName,
+params?: ScreenParams,
|};
declare export type StaleStateRoute<RouteName: string = string> = {|
...StaleLeafRoute<RouteName>,
+state: StaleNavigationState,
|};
declare export type StaleRoute<RouteName: string = string> =
| StaleLeafRoute<RouteName>
| StaleStateRoute<RouteName>;
declare export type StaleNavigationState = {|
// It's possible to pass React Nav a StaleNavigationState with an undefined
// index, but React Nav will always return one with the index set. This is
// the same as for the type property below, but in the case of index we tend
// to rely on it being set more...
+index: number,
+history?: $ReadOnlyArray<mixed>,
+routes: $ReadOnlyArray<StaleRoute<>>,
+type?: string,
+stale?: true,
|};
declare export type PossiblyStaleNavigationState =
| NavigationState
| StaleNavigationState;
declare export type PossiblyStaleRoute<RouteName: string = string> =
| Route<RouteName>
| StaleRoute<RouteName>;
/**
* Routers
*/
declare type ActionCreators<
State: NavigationState,
Action: GenericNavigationAction,
> = {
+[key: string]: (...args: any) => (Action | State => Action),
...
};
declare export type DefaultRouterOptions = {
+initialRouteName?: string,
...
};
declare export type RouterFactory<
State: NavigationState,
Action: GenericNavigationAction,
RouterOptions: DefaultRouterOptions,
> = (options: RouterOptions) => Router<State, Action>;
declare export type ParamListBase = { +[key: string]: ?ScreenParams, ... };
declare export type RouterConfigOptions = {|
+routeNames: $ReadOnlyArray<string>,
+routeParamList: ParamListBase,
|};
declare export type Router<
State: NavigationState,
Action: GenericNavigationAction,
> = {|
+type: $PropertyType<State, 'type'>,
+getInitialState: (options: RouterConfigOptions) => State,
+getRehydratedState: (
partialState: PossibleStaleNavigationState,
options: RouterConfigOptions,
) => State,
+getStateForRouteNamesChange: (
state: State,
options: RouterConfigOptions,
) => State,
+getStateForRouteFocus: (state: State, key: string) => State,
+getStateForAction: (
state: State,
action: Action,
options: RouterConfigOptions,
) => ?PossiblyStaleNavigationState;
+shouldActionChangeFocus: (action: GenericNavigationAction) => boolean,
+actionCreators?: ActionCreators<State, Action>,
|};
/**
* Stack actions and router
*/
declare export type StackNavigationState = {|
...NavigationState,
+type: 'stack',
|};
declare export type ReplaceAction = {|
+type: 'REPLACE',
+payload: {| +name: string, +key?: ?string, +params?: ScreenParams |},
+source?: string,
+target?: string,
|};
declare export type PushAction = {|
+type: 'PUSH',
+payload: {| +name: string, +key?: ?string, +params?: ScreenParams |},
+source?: string,
+target?: string,
|};
declare export type PopAction = {|
+type: 'POP',
+payload: {| +count: number |},
+source?: string,
+target?: string,
|};
declare export type PopToTopAction = {|
+type: 'POP_TO_TOP',
+source?: string,
+target?: string,
|};
declare export type StackAction =
| CommonAction
| ReplaceAction
| PushAction
| PopAction
| PopToTopAction;
declare export type StackActionsType = {|
+replace: (routeName: string, params?: ScreenParams) => ReplaceAction,
+push: (routeName: string, params?: ScreenParams) => PushAction,
+pop: (count?: number) => PopAction,
+popToTop: () => PopToTopAction,
|};
declare export type StackRouterOptions = $Exact<DefaultRouterOptions>;
/**
* Tab actions and router
*/
declare export type TabNavigationState = {|
...NavigationState,
+type: 'tab',
+history: $ReadOnlyArray<{| type: 'route', key: string |}>,
|};
declare export type JumpToAction = {|
+type: 'JUMP_TO',
+payload: {| +name: string, +params?: ScreenParams |},
+source?: string,
+target?: string,
|};
declare export type TabAction =
| CommonAction
| JumpToAction;
declare export type TabActionsType = {|
+jumpTo: string => JumpToAction,
|};
declare export type TabRouterOptions = {|
...$Exact<DefaultRouterOptions>,
+backBehavior?: 'initialRoute' | 'order' | 'history' | 'none',
|};
/**
* Drawer actions and router
*/
declare type DrawerHistoryEntry =
| {| +type: 'route', +key: string |}
| {| +type: 'drawer' |};
declare export type DrawerNavigationState = {|
...NavigationState,
+type: 'drawer',
+history: $ReadOnlyArray<DrawerHistoryEntry>,
|};
declare export type OpenDrawerAction = {|
+type: 'OPEN_DRAWER',
+source?: string,
+target?: string,
|};
declare export type CloseDrawerAction = {|
+type: 'CLOSE_DRAWER',
+source?: string,
+target?: string,
|};
declare export type ToggleDrawerAction = {|
+type: 'TOGGLE_DRAWER',
+source?: string,
+target?: string,
|};
declare export type DrawerAction =
| TabAction
| OpenDrawerAction
| CloseDrawerAction
| ToggleDrawerAction;
declare export type DrawerActionsType = {|
...TabActionsType,
+openDrawer: () => OpenDrawerAction,
+closeDrawer: () => CloseDrawerAction,
+toggleDrawer: () => ToggleDrawerAction,
|};
declare export type DrawerRouterOptions = {|
...TabRouterOptions,
+openByDefault?: boolean,
|};
/**
* Events
*/
declare export type EventMapBase = {
+[name: string]: {|
+data?: mixed,
+canPreventDefault?: boolean,
|},
...
};
declare type EventPreventDefaultProperties<Test: boolean> = $If<
Test,
{| +defaultPrevented: boolean, +preventDefault: () => void |},
{| |},
>;
declare type EventDataProperties<Data> = $If<
$IsUndefined<Data>,
{| |},
{| +data: Data |},
>;
declare type EventArg<
EventName: string,
CanPreventDefault: ?boolean = false,
Data = void,
> = {|
...EventPreventDefaultProperties<CanPreventDefault>,
...EventDataProperties<Data>,
+type: EventName,
+target?: string,
|};
declare type GlobalEventMap<State: PossiblyStaleNavigationState> = {|
+state: {| +data: {| +state: State |}, +canPreventDefault: false |},
|};
declare type EventMapCore<State: PossiblyStaleNavigationState> = {|
...GlobalEventMap<State>,
+focus: {| +data: void, +canPreventDefault: false |},
+blur: {| +data: void, +canPreventDefault: false |},
|};
declare type EventListenerCallback<
EventName: string,
State: NavigationState = NavigationState,
EventMap: EventMapBase = EventMapCore<State>,
> = (e: EventArg<
EventName,
$PropertyType<
$ElementType<
{| ...EventMap, ...EventMapCore<State> |},
EventName,
>,
'canPreventDefault',
>,
$PropertyType<
$ElementType<
{| ...EventMap, ...EventMapCore<State> |},
EventName,
>,
'data',
>,
>) => mixed;
/**
* Navigation prop
*/
declare export type SimpleNavigate<ParamList> =
<DestinationRouteName: $Keys<ParamList>>(
routeName: DestinationRouteName,
params: $ElementType<ParamList, DestinationRouteName>,
) => void;
declare export type Navigate<ParamList> =
& SimpleNavigate<ParamList>
& <DestinationRouteName: $Keys<ParamList>>(
route:
| {|
key: string,
params?: $ElementType<ParamList, DestinationRouteName>,
|}
| {|
name: DestinationRouteName,
key?: string,
params?: $ElementType<ParamList, DestinationRouteName>,
|},
) => void;
declare type NavigationHelpers<
ParamList: ParamListBase,
State: PossiblyStaleNavigationState = PossiblyStaleNavigationState,
EventMap: EventMapBase = EventMapCore<State>,
> = {
+navigate: Navigate<ParamList>,
+dispatch: (
action:
| GenericNavigationAction
| (State => GenericNavigationAction),
) => void,
+reset: PossiblyStaleNavigationState => void,
+goBack: () => void,
+isFocused: () => boolean,
+canGoBack: () => boolean,
+dangerouslyGetParent: <Parent: NavigationProp<ParamListBase>>() => ?Parent,
+dangerouslyGetState: () => NavigationState,
+addListener: <EventName: $Keys<
{| ...EventMap, ...EventMapCore<State> |},
>>(
name: EventName,
callback: EventListenerCallback<EventName, State, EventMap>,
) => () => void,
+removeListener: <EventName: $Keys<
{| ...EventMap, ...EventMapCore<State> |},
>>(
name: EventName,
callback: EventListenerCallback<EventName, State, EventMap>,
) => void,
...
};
declare export type NavigationProp<
ParamList: ParamListBase,
RouteName: $Keys<ParamList> = $Keys<ParamList>,
State: PossiblyStaleNavigationState = PossiblyStaleNavigationState,
ScreenOptions: {...} = {...},
EventMap: EventMapBase = EventMapCore<State>,
> = {
...$Exact<NavigationHelpers<
ParamList,
State,
EventMap,
>>,
+setOptions: (options: $Shape<ScreenOptions>) => void,
+setParams: (
params: $If<
$IsUndefined<$ElementType<ParamList, RouteName>>,
empty,
$Shape<$NonMaybeType<$ElementType<ParamList, RouteName>>>,
>,
) => void,
...
};
/**
* CreateNavigator
*/
declare export type RouteProp<
ParamList: ParamListBase,
RouteName: $Keys<ParamList>,
> = {|
...LeafRoute<RouteName>,
+params: $ElementType<ParamList, RouteName>,
|};
declare export type ScreenListeners<
EventMap: EventMapBase = EventMapCore<State>,
State: NavigationState = NavigationState,
> = $ObjMapi<
{| [name: $Keys<EventMap>]: empty |},
<K: $Keys<EventMap>>(K, empty) => EventListenerCallback<K, State, EventMap>,
>;
declare type BaseScreenProps<
ParamList: ParamListBase,
NavProp,
RouteName: $Keys<ParamList> = $Keys<ParamList>,
State: NavigationState = NavigationState,
ScreenOptions: {...} = {...},
EventMap: EventMapBase = EventMapCore<State>,
> = {|
+name: RouteName,
+options?:
| ScreenOptions
| ({|
route: RouteProp<ParamList, RouteName>,
navigation: NavProp,
|}) => ScreenOptions,
+listeners?:
| ScreenListeners<EventMap, State>
| ({|
route: RouteProp<ParamList, RouteName>,
navigation: NavProp,
|}) => ScreenListeners<EventMap, State>,
+initialParams?: $Shape<$ElementType<ParamList, RouteName>>,
|};
declare export type ScreenProps<
ParamList: ParamListBase,
NavProp,
RouteName: $Keys<ParamList> = $Keys<ParamList>,
State: NavigationState = NavigationState,
ScreenOptions: {...} = {...},
EventMap: EventMapBase = EventMapCore<State>,
> =
| {|
...BaseScreenProps<
ParamList,
NavProp,
RouteName,
State,
ScreenOptions,
EventMap,
>,
+component: React$ComponentType<{|
route: RouteProp<ParamList, RouteName>,
navigation: NavProp,
|}>,
|}
| {|
...BaseScreenProps<
ParamList,
NavProp,
RouteName,
State,
ScreenOptions,
EventMap,
>,
+children: ({|
route: RouteProp<ParamList, RouteName>,
navigation: NavProp,
|}) => React$Node,
|};
declare export type ScreenComponent<
GlobalParamList: ParamListBase,
ParamList: ParamListBase,
State: NavigationState = NavigationState,
ScreenOptions: {...} = {...},
EventMap: EventMapBase = EventMapCore<State>,
> = <
RouteName: $Keys<ParamList>,
NavProp: NavigationProp<
GlobalParamList,
RouteName,
State,
ScreenOptions,
EventMap,
>,
>(props: ScreenProps<
ParamList,
NavProp,
RouteName,
State,
ScreenOptions,
EventMap,
>) => React$Node;
declare type ScreenOptionsProp<ScreenOptions: {...}, NavProp> = {|
+screenOptions?:
| ScreenOptions
| ({| route: LeafRoute<>, navigation: NavProp |}) => ScreenOptions,
|};
declare export type ExtraNavigatorPropsBase = {
...$Exact<DefaultRouterOptions>,
+children?: React$Node,
...
};
declare export type NavigatorPropsBase<ScreenOptions: {...}, NavProp> = {
...$Exact<ExtraNavigatorPropsBase>,
...ScreenOptionsProp<ScreenOptions, NavProp>,
...
};
declare export type CreateNavigator<
State: NavigationState,
ScreenOptions: {...},
EventMap: EventMapBase,
ExtraNavigatorProps: ExtraNavigatorPropsBase,
> = <
GlobalParamList: ParamListBase,
ParamList: ParamListBase,
NavProp: NavigationHelpers<
GlobalParamList,
State,
EventMap,
>,
>() => {|
+Screen: ScreenComponent<
GlobalParamList,
ParamList,
State,
ScreenOptions,
EventMap,
>,
+Navigator: React$ComponentType<{|
...$Exact<ExtraNavigatorProps>,
...ScreenOptionsProp<ScreenOptions, NavProp>,
|}>,
|};
declare export type CreateNavigatorFactory = <
State: NavigationState,
ScreenOptions: {...},
EventMap: EventMapBase,
NavProp: NavigationHelpers<
ParamListBase,
State,
EventMap,
>,
ExtraNavigatorProps: ExtraNavigatorPropsBase,
>(
navigator: React$ComponentType<{|
...$Exact<ExtraNavigatorPropsBase>,
...ScreenOptionsProp<ScreenOptions, NavProp>,
|}>,
) => CreateNavigator<State, ScreenOptions, EventMap, ExtraNavigatorProps>;
/**
* useNavigationBuilder
*/
declare export type Descriptor<
NavProp,
ScreenOptions: {...} = {...},
> = {|
+render: () => React$Node,
+options: $ReadOnly<ScreenOptions>,
+navigation: NavProp,
|};
declare export type UseNavigationBuilder = <
State: NavigationState,
Action: GenericNavigationAction,
ScreenOptions: {...},
RouterOptions: DefaultRouterOptions,
NavProp,
>(
routerFactory: RouterFactory<State, Action, RouterOptions>,
options: {|
...$Exact<RouterOptions>,
...ScreenOptionsProp<ScreenOptions, NavProp>,
+children?: React$Node,
|},
) => {|
+state: State,
+descriptors: {| +[key: string]: Descriptor<NavProp, ScreenOptions> |},
+navigation: NavProp,
|};
/**
* EdgeInsets
*/
declare type EdgeInsets = {|
+top: number,
+right: number,
+bottom: number,
+left: number,
|};
/**
* TransitionPreset
*/
declare export type TransitionSpec =
| {|
animation: 'spring',
config: $Diff<
SpringAnimationConfigSingle,
{ toValue: number | AnimatedValue, ... },
>,
|}
| {|
animation: 'timing',
config: $Diff<
TimingAnimationConfigSingle,
{ toValue: number | AnimatedValue, ... },
>,
|};
declare export type StackCardInterpolationProps = {|
+current: {|
+progress: AnimatedInterpolation,
|},
+next?: {|
+progress: AnimatedInterpolation,
|},
+index: number,
+closing: AnimatedInterpolation,
+swiping: AnimatedInterpolation,
+inverted: AnimatedInterpolation,
+layouts: {|
+screen: {| +width: number, +height: number |},
|},
+insets: EdgeInsets,
|};
declare export type StackCardInterpolatedStyle = {|
containerStyle?: AnimatedViewStyleProp,
cardStyle?: AnimatedViewStyleProp,
overlayStyle?: AnimatedViewStyleProp,
shadowStyle?: AnimatedViewStyleProp,
|};
declare export type StackCardStyleInterpolator = (
props: StackCardInterpolationProps,
) => StackCardInterpolatedStyle;
declare export type StackHeaderInterpolationProps = {|
+current: {|
+progress: AnimatedInterpolation,
|},
+next?: {|
+progress: AnimatedInterpolation,
|},
+layouts: {|
+header: {| +width: number, +height: number |},
+screen: {| +width: number, +height: number |},
+title?: {| +width: number, +height: number |},
+leftLabel?: {| +width: number, +height: number |},
|},
|};
declare export type StackHeaderInterpolatedStyle = {|
leftLabelStyle?: AnimatedViewStyleProp,
leftButtonStyle?: AnimatedViewStyleProp,
rightButtonStyle?: AnimatedViewStyleProp,
titleStyle?: AnimatedViewStyleProp,
backgroundStyle?: AnimatedViewStyleProp,
|};
declare export type StackHeaderStyleInterpolator = (
props: StackHeaderInterpolationProps,
) => StackHeaderInterpolatedStyle;
declare type GestureDirection =
| 'horizontal'
| 'horizontal-inverted'
| 'vertical'
| 'vertical-inverted';
declare export type TransitionPreset = {|
+gestureDirection: GestureDirection,
+transitionSpec: {|
+open: TransitionSpec,
+close: TransitionSpec,
|},
+cardStyleInterpolator: StackCardStyleInterpolator,
+headerStyleInterpolator: StackHeaderStyleInterpolator,
|};
/**
* Stack options
*/
declare export type StackDescriptor = Descriptor<
StackNavigationProp<>,
StackOptions,
>;
declare type Scene<T> = {|
+route: T,
+descriptor: StackDescriptor,
+progress: {|
+current: AnimatedInterpolation,
+next?: AnimatedInterpolation,
+previous?: AnimatedInterpolation,
|},
|};
declare export type StackHeaderProps = {|
+mode: 'float' | 'screen',
+layout: {| +width: number, +height: number |},
+insets: EdgeInsets,
+scene: Scene<Route<>>,
+previous?: Scene<Route<>>,
+navigation: StackNavigationProp<ParamListBase>,
+styleInterpolator: StackHeaderStyleInterpolator,
|};
declare export type StackHeaderLeftButtonProps = $Shape<{|
+onPress: (() => void),
+pressColorAndroid: string;
+backImage: (props: {| tintColor: string |}) => React$Node,
+tintColor: string,
+label: string,
+truncatedLabel: string,
+labelVisible: boolean,
+labelStyle: AnimatedTextStyleProp,
+allowFontScaling: boolean,
+onLabelLayout: LayoutEvent => void,
+screenLayout: {| +width: number, +height: number |},
+titleLayout: {| +width: number, +height: number |},
+canGoBack: boolean,
|}>;
declare type StackHeaderTitleInputBase = {
+onLayout: LayoutEvent => void,
+children: string,
+allowFontScaling: ?boolean,
+tintColor: ?string,
+style: ?AnimatedTextStyleProp,
...
};
declare export type StackHeaderTitleInputProps =
$Exact<StackHeaderTitleInputBase>;
declare export type StackOptions = $Shape<{|
+title: string,
+header: StackHeaderProps => React$Node,
+headerShown: boolean,
+cardShadowEnabled: boolean,
+cardOverlayEnabled: boolean,
+cardOverlay: {| style: ViewStyleProp |} => React$Node,
+cardStyle: ViewStyleProp,
+animationEnabled: boolean,
+animationTypeForReplace: 'push' | 'pop',
+gestureEnabled: boolean,
+gestureResponseDistance: {| vertical?: number, horizontal?: number |},
+gestureVelocityImpact: number,
+safeAreaInsets: $Shape<EdgeInsets>,
// Transition
...TransitionPreset,
// Header
+headerTitle: string | (StackHeaderTitleInputProps => React$Node),
+headerTitleAlign: 'left' | 'center',
+headerTitleStyle: AnimatedTextStyleProp,
+headerTitleContainerStyle: ViewStyleProp,
+headerTintColor: string,
+headerTitleAllowFontScaling: boolean,
+headerBackAllowFontScaling: boolean,
+headerBackTitle: string | null,
+headerBackTitleStyle: TextStyleProp,
+headerBackTitleVisible: boolean,
+headerTruncatedBackTitle: string,
+headerLeft: StackHeaderLeftButtonProps => React$Node,
+headerLeftContainerStyle: ViewStyleProp,
+headerRight: {| tintColor?: string |} => React$Node,
+headerRightContainerStyle: ViewStyleProp,
+headerBackImage: $PropertyType<StackHeaderLeftButtonProps, 'backImage'>,
+headerPressColorAndroid: string,
+headerBackground: ({| style: ViewStyleProp |}) => React$Node,
+headerStyle: ViewStyleProp,
+headerTransparent: boolean,
+headerStatusBarHeight: number,
|}>;
/**
* Stack navigation prop
*/
declare export type StackNavigationEventMap = {|
...EventMapCore<StackNavigationState>,
+transitionStart: {|
+data: {| +closing: boolean |},
+canPreventDefault: false,
|},
+transitionEnd: {|
+data: {| +closing: boolean |},
+canPreventDefault: false,
|},
|};
declare type InexactStackNavigationProp<
ParamList: ParamListBase = ParamListBase,
RouteName: $Keys<ParamList> = $Keys<ParamList>,
Options: {...} = StackOptions,
EventMap: EventMapBase = StackNavigationEventMap,
> = {
...$Exact<NavigationProp<
ParamList,
RouteName,
StackNavigationState,
Options,
EventMap,
>>,
+replace: SimpleNavigate<ParamList>,
+push: SimpleNavigate<ParamList>,
+pop: (count?: number) => void,
+popToTop: () => void,
...
};
declare export type StackNavigationProp<
ParamList: ParamListBase = ParamListBase,
RouteName: $Keys<ParamList> = $Keys<ParamList>,
Options: {...} = StackOptions,
EventMap: EventMapBase = StackNavigationEventMap,
> = $Exact<InexactStackNavigationProp<
ParamList,
RouteName,
Options,
EventMap,
>>;
/**
* Miscellaneous stack exports
*/
declare type StackNavigationConfig = {|
+mode?: 'card' | 'modal',
+headerMode?: 'float' | 'screen' | 'none',
+keyboardHandlingEnabled?: boolean,
|};
declare export type ExtraStackNavigatorProps = {|
...$Exact<ExtraNavigatorPropsBase>,
...StackRouterOptions,
...StackNavigationConfig,
|};
declare export type StackNavigatorProps<
NavProp: InexactStackNavigationProp<> = StackNavigationProp<>,
> = {|
...ExtraStackNavigatorProps,
...ScreenOptionsProp<StackOptions, NavProp>,
|};
/**
* Bottom tab options
*/
declare export type BottomTabBarButtonProps = {|
...$Diff<
TouchableWithoutFeedbackProps,
{| onPress?: ?(event: PressEvent) => mixed |},
>,
+to?: string,
+children: React$Node,
+onPress?: (MouseEvent | PressEvent) => void,
|};
declare export type BottomTabOptions = $Shape<{|
+title: string,
+tabBarLabel:
| string
| ({| focused: boolean, color: string |}) => React$Node,
+tabBarIcon: ({|
focused: boolean,
color: string,
size: number,
|}) => React$Node,
+tabBarAccessibilityLabel: string,
+tabBarTestID: string,
+tabBarVisible: boolean,
+tabBarButton: BottomTabBarButtonProps => React$Node,
+unmountOnBlur: boolean,
|}>;
/**
* Bottom tab navigation prop
*/
declare export type BottomTabNavigationEventMap = {|
...EventMapCore<TabNavigationState>,
+tabPress: {| +data: void, +canPreventDefault: true |},
+tabLongPress: {| +data: void, +canPreventDefault: false |},
|};
declare type InexactTabNavigationProp<
ParamList: ParamListBase,
RouteName: $Keys<ParamList>,
Options: {...},
EventMap: EventMapBase,
> = {
...$Exact<NavigationProp<
ParamList,
RouteName,
TabNavigationState,
Options,
EventMap,
>>,
+jumpTo: SimpleNavigate<ParamList>,
...
};
declare export type InexactBottomTabNavigationProp<
ParamList: ParamListBase = ParamListBase,
RouteName: $Keys<ParamList> = $Keys<ParamList>,
Options: {...} = BottomTabOptions,
EventMap: EventMapBase = BottomTabNavigationEventMap,
> = InexactTabNavigationProp<
ParamList,
RouteName,
Options,
EventMap,
>;
declare export type BottomTabNavigationProp<
ParamList: ParamListBase = ParamListBase,
RouteName: $Keys<ParamList> = $Keys<ParamList>,
Options: {...} = BottomTabOptions,
EventMap: EventMapBase = BottomTabNavigationEventMap,
> = $Exact<InexactBottomTabNavigationProp<
ParamList,
RouteName,
Options,
EventMap,
>>;
/**
* Miscellaneous bottom tab exports
*/
declare export type BottomTabDescriptor = Descriptor<
BottomTabNavigationProp<>,
BottomTabOptions,
>;
declare export type BottomTabBarOptions = $Shape<{|
+keyboardHidesTabBar: boolean,
+activeTintColor: string,
+inactiveTintColor: string,
+activeBackgroundColor: string,
+inactiveBackgroundColor: string,
+allowFontScaling: boolean,
+showLabel: boolean,
+showIcon: boolean,
+labelStyle: TextStyleProp,
+tabStyle: ViewStyleProp,
+labelPosition: 'beside-icon' | 'below-icon',
+adaptive: boolean,
+safeAreaInsets: $Shape<EdgeInsets>,
+style: ViewStyleProp,
|}>;
declare type BottomTabNavigationBuilderResult = {|
+state: TabNavigationState,
+navigation: BottomTabNavigationProp<>,
+descriptors: {| +[key: string]: BottomTabDescriptor |},
|};
declare export type BottomTabBarProps = {|
...BottomTabBarOptions,
...BottomTabNavigationBuilderResult,
|}
declare type BottomTabNavigationConfig = {|
+lazy?: boolean,
+tabBar?: BottomTabBarProps => React$Node,
+tabBarOptions?: BottomTabBarOptions,
|};
declare export type ExtraBottomTabNavigatorProps = {|
...$Exact<ExtraNavigatorPropsBase>,
...TabRouterOptions,
...BottomTabNavigationConfig,
|};
declare export type BottomTabNavigatorProps<
NavProp: InexactBottomTabNavigationProp<> = BottomTabNavigationProp<>,
> = {|
...ExtraBottomTabNavigatorProps,
...ScreenOptionsProp<BottomTabOptions, NavProp>,
|};
/**
* Material bottom tab options
*/
declare export type MaterialBottomTabOptions = $Shape<{|
+title: string,
+tabBarColor: string,
+tabBarLabel: string,
+tabBarIcon:
| string
| ({| +focused: boolean, +color: string |}) => React$Node,
+tabBarBadge: boolean | number | string,
+tabBarAccessibilityLabel: string,
+tabBarTestID: string,
|}>;
/**
* Material bottom tab navigation prop
*/
declare export type MaterialBottomTabNavigationEventMap = {|
...EventMapCore<TabNavigationState>,
+tabPress: {| +data: void, +canPreventDefault: true |},
|};
declare export type InexactMaterialBottomTabNavigationProp<
ParamList: ParamListBase = ParamListBase,
RouteName: $Keys<ParamList> = $Keys<ParamList>,
Options: {...} = MaterialBottomTabOptions,
EventMap: EventMapBase = MaterialBottomTabNavigationEventMap,
> = InexactTabNavigationProp<
ParamList,
RouteName,
Options,
EventMap,
>;
declare export type MaterialBottomTabNavigationProp<
ParamList: ParamListBase = ParamListBase,
RouteName: $Keys<ParamList> = $Keys<ParamList>,
Options: {...} = MaterialBottomTabOptions,
EventMap: EventMapBase = MaterialBottomTabNavigationEventMap,
> = $Exact<InexactMaterialBottomTabNavigationProp<
ParamList,
RouteName,
Options,
EventMap,
>>;
/**
* Miscellaneous material bottom tab exports
*/
declare export type PaperFont = {|
+fontFamily: string,
+fontWeight?:
| 'normal'
| 'bold'
| '100'
| '200'
| '300'
| '400'
| '500'
| '600'
| '700'
| '800'
| '900',
|};
declare export type PaperFonts = {|
+regular: Font,
+medium: Font,
+light: Font,
+thin: Font,
|};
declare export type PaperTheme = {|
+dark: boolean,
+mode?: 'adaptive' | 'exact',
+roundness: number,
+colors: {|
+primary: string,
+background: string,
+surface: string,
+accent: string,
+error: string,
+text: string,
+onSurface: string,
+onBackground: string,
+disabled: string,
+placeholder: string,
+backdrop: string,
+notification: string,
|},
+fonts: PaperFonts,
+animation: {|
+scale: number,
|},
|};
declare export type PaperRoute = {|
+key: string,
+title?: string,
+icon?: any,
+badge?: string | number | boolean,
+color?: string,
+accessibilityLabel?: string,
+testID?: string,
|};
declare export type PaperTouchableProps = {|
...TouchableWithoutFeedbackProps,
+key: string,
+route: PaperRoute,
+children: React$Node,
+borderless?: boolean,
+centered?: boolean,
+rippleColor?: string,
|};
declare export type MaterialBottomTabNavigationConfig = {|
+shifting?: boolean,
+labeled?: boolean,
+renderTouchable?: PaperTouchableProps => React$Node,
+activeColor?: string,
+inactiveColor?: string,
+sceneAnimationEnabled?: boolean,
+keyboardHidesNavigationBar?: boolean,
+barStyle?: ViewStyleProp,
+style?: ViewStyleProp,
+theme?: PaperTheme,
|};
declare export type ExtraMaterialBottomTabNavigatorProps = {|
...$Exact<ExtraNavigatorPropsBase>,
...TabRouterOptions,
...MaterialBottomTabNavigationConfig,
|};
declare export type MaterialBottomTabNavigatorProps<
NavProp: InexactMaterialBottomTabNavigationProp<> =
MaterialBottomTabNavigationProp<>,
> = {|
...ExtraMaterialBottomTabNavigatorProps,
...ScreenOptionsProp<MaterialBottomTabOptions, NavProp>,
|};
/**
* Material top tab options
*/
declare export type MaterialTopTabOptions = $Shape<{|
+title: string,
+tabBarLabel:
| string
| ({| +focused: boolean, +color: string |}) => React$Node,
+tabBarIcon: ({| +focused: boolean, +color: string |}) => React$Node,
+tabBarAccessibilityLabel: string,
+tabBarTestID: string,
|}>;
/**
* Material top tab navigation prop
*/
declare export type MaterialTopTabNavigationEventMap = {|
...EventMapCore<TabNavigationState>,
+tabPress: {| +data: void, +canPreventDefault: true |},
+tabLongPress: {| +data: void, +canPreventDefault: false |},
+swipeStart: {| +data: void, +canPreventDefault: false |},
+swipeEnd: {| +data: void, +canPreventDefault: false |},
|};
declare export type InexactMaterialTopTabNavigationProp<
ParamList: ParamListBase = ParamListBase,
RouteName: $Keys<ParamList> = $Keys<ParamList>,
Options: {...} = MaterialTopTabOptions,
EventMap: EventMapBase = MaterialTopTabNavigationEventMap,
> = InexactTabNavigationProp<
ParamList,
RouteName,
Options,
EventMap,
>;
declare export type MaterialTopTabNavigationProp<
ParamList: ParamListBase = ParamListBase,
RouteName: $Keys<ParamList> = $Keys<ParamList>,
Options: {...} = MaterialTopTabOptions,
EventMap: EventMapBase = MaterialTopTabNavigationEventMap,
> = $Exact<InexactMaterialTopTabNavigationProp<
ParamList,
RouteName,
Options,
EventMap,
>>;
/**
* Miscellaneous material top tab exports
*/
declare type MaterialTopTabPagerCommonProps = {|
+keyboardDismissMode: 'none' | 'on-drag' | 'auto',
+swipeEnabled: boolean,
+swipeVelocityImpact?: number,
+springVelocityScale?: number,
+springConfig: $Shape<{|
+damping: number,
+mass: number,
+stiffness: number,
+restSpeedThreshold: number,
+restDisplacementThreshold: number,
|}>,
+timingConfig: $Shape<{|
+duration: number,
|}>,
|};
declare export type MaterialTopTabPagerProps = {|
...MaterialTopTabPagerCommonProps,
+onSwipeStart?: () => void,
+onSwipeEnd?: () => void,
+onIndexChange: (index: number) => void,
+navigationState: TabNavigationState,
+layout: {| +width: number, +height: number |},
+removeClippedSubviews: boolean,
+children: ({|
+addListener: (type: 'enter', listener: number => void) => void,
+removeListener: (type: 'enter', listener: number => void) => void,
+position: any, // Reanimated.Node<number>
+render: React$Node => React$Node,
+jumpTo: string => void,
|}) => React$Node,
+gestureHandlerProps: PanGestureHandlerProps,
|};
declare export type MaterialTopTabBarIndicatorProps = {|
+navigationState: TabNavigationState,
+width: string,
+style?: ViewStyleProp,
+getTabWidth: number => number,
|};
declare export type MaterialTopTabBarOptions = $Shape<{|
+scrollEnabled: boolean,
+bounces: boolean,
+pressColor: string,
+pressOpacity: number,
+getAccessible: ({| +route: Route<> |}) => boolean,
+renderBadge: ({| +route: Route<> |}) => React$Node,
+renderIndicator: MaterialTopTabBarIndicatorProps => React$Node,
+tabStyle: ViewStyleProp,
+indicatorStyle: ViewStyleProp,
+indicatorContainerStyle: ViewStyleProp,
+labelStyle: TextStyleProp,
+contentContainerStyle: ViewStyleProp,
+style: ViewStyleProp,
+activeTintColor: string,
+inactiveTintColor: string,
+iconStyle: ViewStyleProp,
+labelStyle: TextStyleProp,
+showLabel: boolean,
+showIcon: boolean,
+allowFontScaling: boolean,
|}>;
declare export type MaterialTopTabDescriptor = Descriptor<
MaterialBottomTabNavigationProp<>,
MaterialBottomTabOptions,
>;
declare type MaterialTopTabNavigationBuilderResult = {|
+state: TabNavigationState,
+navigation: MaterialTopTabNavigationProp<>,
+descriptors: {| +[key: string]: MaterialTopTabDescriptor |},
|};
declare export type MaterialTopTabBarProps = {|
...MaterialTopTabBarOptions,
...MaterialTopTabNavigationBuilderResult,
+layout: {| +width: number, +height: number |},
+position: any, // Reanimated.Node<number>
+jumpTo: string => void,
|};
declare export type MaterialTopTabNavigationConfig = {|
...$Partial<MaterialTopTabPagerCommonProps>,
+position?: any, // Reanimated.Value<number>
+tabBarPosition?: 'top' | 'bottom',
+initialLayout?: $Shape<{| +width: number, +height: number |}>,
+lazy?: boolean,
+lazyPreloadDistance?: number,
+removeClippedSubviews?: boolean,
+sceneContainerStyle?: ViewStyleProp,
+style?: ViewStyleProp,
+gestureHandlerProps?: PanGestureHandlerProps,
+pager?: MaterialTopTabPagerProps => React$Node,
+lazyPlaceholder?: ({| +route: Route<> |}) => React$Node,
+tabBar?: MaterialTopTabBarProps => React$Node,
+tabBarOptions?: MaterialTopTabBarOptions,
|};
declare export type ExtraMaterialTopTabNavigatorProps = {|
...$Exact<ExtraNavigatorPropsBase>,
...TabRouterOptions,
...MaterialTopTabNavigationConfig,
|};
declare export type MaterialTopTabNavigatorProps<
NavProp: InexactMaterialTopTabNavigationProp<> =
MaterialTopTabNavigationProp<>,
> = {|
...ExtraMaterialTopTabNavigatorProps,
...ScreenOptionsProp<MaterialTopTabOptions, NavProp>,
|};
/**
* Drawer options
*/
declare export type DrawerOptions = $Shape<{|
title: string,
drawerLabel:
| string
| ({| +color: string, +focused: boolean |}) => React$Node,
drawerIcon: ({|
+color: string,
+size: number,
+focused: boolean,
|}) => React$Node,
gestureEnabled: boolean,
swipeEnabled: boolean,
unmountOnBlur: boolean,
|}>;
/**
* Drawer navigation prop
*/
declare export type DrawerNavigationEventMap = {|
...EventMapCore<DrawerNavigationState>,
+drawerOpen: {| +data: void, +canPreventDefault: false |},
+drawerClose: {| +data: void, +canPreventDefault: false |},
|};
declare export type InexactDrawerNavigationProp<
ParamList: ParamListBase = ParamListBase,
RouteName: $Keys<ParamList> = $Keys<ParamList>,
Options: {...} = DrawerOptions,
EventMap: EventMapBase = DrawerNavigationEventMap,
> = {
...$Exact<NavigationProp<
ParamList,
RouteName,
DrawerNavigationState,
Options,
EventMap,
>>,
+jumpTo: SimpleNavigate<ParamList>,
+openDrawer: () => void,
+closeDrawer: () => void,
+toggleDrawer: () => void,
...
};
declare export type DrawerNavigationProp<
ParamList: ParamListBase = ParamListBase,
RouteName: $Keys<ParamList> = $Keys<ParamList>,
Options: {...} = DrawerOptions,
EventMap: EventMapBase = DrawerNavigationEventMap,
> = $Exact<InexactDrawerNavigationProp<
ParamList,
RouteName,
Options,
EventMap,
>>;
/**
* Miscellaneous drawer exports
*/
declare export type DrawerDescriptor = Descriptor<
DrawerNavigationProp<>,
DrawerOptions,
>;
declare export type DrawerItemListBaseOptions = $Shape<{|
+activeTintColor: string,
+activeBackgroundColor: string,
+inactiveTintColor: string,
+inactiveBackgroundColor: string,
+itemStyle: ViewStyleProp,
+labelStyle: TextStyleProp,
|}>;
declare export type DrawerContentOptions = $Shape<{|
...DrawerItemListBaseOptions,
+contentContainerStyle: ViewStyleProp,
+style: ViewStyleProp,
|}>;
declare type DrawerNavigationBuilderResult = {|
+state: DrawerNavigationState,
+navigation: DrawerNavigationProp<>,
+descriptors: {| +[key: string]: DrawerDescriptor |},
|};
declare export type DrawerContentProps = {|
...DrawerContentOptions,
...DrawerNavigationBuilderResult,
+progress: any, // Reanimated.Node<number>
|};
declare export type DrawerNavigationConfig = {|
+drawerPosition?: 'left' | 'right',
+drawerType?: 'front' | 'back' | 'slide' | 'permanent',
+edgeWidth?: number,
+hideStatusBar?: boolean,
+keyboardDismissMode?: 'on-drag' | 'none',
+minSwipeDistance?: number,
+overlayColor?: string,
+statusBarAnimation?: 'slide' | 'none' | 'fade',
+gestureHandlerProps?: PanGestureHandlerProps,
+lazy?: boolean,
+drawerContent?: DrawerContentProps => React$Node,
+drawerContentOptions?: DrawerContentOptions,
+sceneContainerStyle?: ViewStyleProp,
+drawerStyle?: ViewStyleProp,
|};
declare export type ExtraDrawerNavigatorProps = {|
...$Exact<ExtraNavigatorPropsBase>,
...DrawerRouterOptions,
...DrawerNavigationConfig,
|};
declare export type DrawerNavigatorProps<
NavProp: InexactDrawerNavigationProp<> = DrawerNavigationProp<>,
> = {|
...ExtraDrawerNavigatorProps,
...ScreenOptionsProp<DrawerOptions, NavProp>,
|};
/**
* BaseNavigationContainer
*/
declare export type BaseNavigationContainerProps = {|
+children: React$Node,
+initialState?: PossiblyStaleNavigationState,
+onStateChange?: (state: ?PossiblyStaleNavigationState) => void,
+independent?: boolean,
|};
declare export type BaseNavigationContainerInterface = {|
...$Exact<NavigationHelpers<
ParamListBase,
PossiblyStaleNavigationState,
GlobalEventMap<PossiblyStaleNavigationState>,
>>,
+setParams: (params: ScreenParams) => void,
+resetRoot: (state?: ?PossiblyStaleNavigationState) => void,
+getRootState: () => PossiblyStaleNavigationState,
|};
/**
* State / path conversion
*/
declare export type LinkingConfig = {|
+[routeName: string]:
| string
| {|
+path?: string,
+parse?: {| +[param: string]: string => mixed |},
+screens?: LinkingConfig,
+initialRouteName?: string,
|},
|};
declare export type GetPathFromStateOptions = {|
+[routeName: string]:
| string
| {|
+path?: string,
+stringify?: {| +[param: string]: mixed => string |},
+screens?: GetPathFromStateOptions,
|},
|};
//---------------------------------------------------------------------------
// SECTION 2: EXPORTED MODULE
// This section defines the module exports and contains exported types that
// are not present in any other React Navigation libdef.
//---------------------------------------------------------------------------
/**
* createMaterialBottomTabNavigator
*/
declare export var createMaterialBottomTabNavigator: CreateNavigator<
TabNavigationState,
MaterialBottomTabOptions,
MaterialBottomTabNavigationEventMap,
ExtraMaterialBottomTabNavigatorProps,
>;
/**
* MaterialBottomTabView
*/
declare export type MaterialBottomTabDescriptor = Descriptor<
MaterialBottomTabNavigationProp<>,
MaterialBottomTabOptions,
>;
declare export type MaterialBottomTabViewProps = {|
...MaterialBottomTabNavigationConfig,
+state: TabNavigationState,
+navigation: MaterialBottomTabNavigationProp<>,
+descriptors: {| +[key: string]: MaterialBottomTabDescriptor |},
|};
declare export var MaterialBottomTabView: React$ComponentType<
MaterialBottomTabViewProps,
>;
}
|
import { login } from '@/api/user'
import { getToken, setToken, removeToken } from '@/utils/auth'
import { resetRouter } from '@/router'
const state = {
token: getToken(),
name: '',
id: 0
}
const mutations = {
SET_TOKEN: (state, token) => {
state.token = token
},
SET_NAME: (state, name) => {
state.name = name
},
SET_AVATAR: (state, id) => {
state.id = id
}
}
const actions = {
// user login
login({ commit }, userInfo) {
const { username, password, authCode } = userInfo
return new Promise((resolve, reject) => {
login({ adminAccount: username.trim(), adminPwd: password, authCode: authCode }).then(response => {
const { data } = response
localStorage.clear()
localStorage.setItem('user', JSON.stringify(data))
commit('SET_NAME', data.adminAccount)
commit('SET_AVATAR', data.id)
setToken(data.adminAccount)
resolve()
}).catch(error => {
reject(error)
})
})
},
// get user info
getInfo({ commit, state }) {
return new Promise((resolve, reject) => {
const user = JSON.parse(localStorage.getItem('user'))
if (user) {
commit('SET_NAME', user.adminAccount)
commit('SET_AVATAR', user.id)
resolve(user)
} else {
reject()
}
})
},
// user logout
logout({ commit, state }) {
return new Promise((resolve, reject) => {
localStorage.clear()
commit('SET_TOKEN', '')
removeToken()
resetRouter()
resolve()
})
},
// remove token
resetToken({ commit }) {
return new Promise(resolve => {
commit('SET_TOKEN', '')
removeToken()
resolve()
})
}
}
export default {
namespaced: true,
state,
mutations,
actions
}
|
module.exports = require('./webpack/webpack.develop');
|
;(function()
{
if (window.BXMainMailConfirm)
return;
var options = {};
var mailboxes = [];
var listParams = {};
var action;
var BXMainMailConfirm = {
init: function(params)
{
mailboxes = params.mailboxes;
action = params.action;
delete params.mailboxes;
options = params;
},
getMailboxes: function()
{
return mailboxes;
},
showList: function(id, bind, params)
{
if (!BX.type.isNotEmptyString(params.placeholder))
{
params.placeholder = BX.message(params.required ? 'MAIN_MAIL_CONFIRM_MENU_UNKNOWN' : 'MAIN_MAIL_CONFIRM_MENU_PLACEHOLDER');
}
if (!(params.settings && params.settings.length))
{
params.settings = [];
}
if (!BX.type.isFunction(params.callback))
{
params.callback = function() {};
}
if((typeof params.popupSettings) != "object")
{
params.popupSettings = {};
}
params.popupSettings.className = 'main-mail-confirm-menu-content';
params.popupSettings.offsetLeft = 40;
params.popupSettings.angle = true;
params.popupSettings.closeByEsc = true;
listParams[id] = params;
var items = [];
var handler = function(event, item)
{
var action = 'apply';
if (event && event.target)
{
var deleteIconClass = 'main-mail-confirm-menu-delete-icon';
if (BX.hasClass(event.target, deleteIconClass) || BX.findParent(event.target, { class: deleteIconClass }, item.layout.item))
{
action = 'delete';
}
if (BX.hasClass(event.target, "sender-hint") || BX.findParent(event.target, { class: "sender-hint" }, item.layout.item))
{
action = 'edit';
}
}
if ('delete' == action)
{
BXMainMailConfirm.deleteSender(
item.id, function()
{
mailboxes = mailboxes.filter(function(value, index)
{
return item.id !== value.id
});
item.menuWindow.removeMenuItem(item.id);
if (listParams[id].selected == item.title)
{
listParams[id].callback('', listParams[id].placeholder);
}
}
);
}
else if ('edit' === action)
{
BXMainMailConfirm.showEditForm(item.id);
}
else
{
listParams[id].callback(item.title, item.text);
item.menuWindow.close();
}
};
if (!params.required)
{
items.push({
text: BX.util.htmlspecialchars(params.placeholder),
title: '',
onclick: handler
});
items.push({ delimiter: true });
}
if (mailboxes && mailboxes.length > 0)
{
var itemText, itemClass;
for (var i in mailboxes)
{
itemClass = 'menu-popup-no-icon';
itemText = BX.util.htmlspecialchars(mailboxes[i].formated);
if (mailboxes[i]['can_delete'] && mailboxes[i].id > 0)
{
itemText += '<span class="main-mail-confirm-menu-delete-icon popup-window-close-icon popup-window-titlebar-close-icon"\
title="' + BX.util.htmlspecialchars(BX.message('MAIN_MAIL_CONFIRM_DELETE')) + '"></span>';
itemClass = 'menu-popup-no-icon menu-popup-right-icon';
itemText += '<span data-role="sender-hint" class="sender-hint main-mail-edit-icon"\
title="' + BX.util.htmlspecialchars(BX.message('MAIN_MAIL_CONFIRM_EDIT')) + '"></span>';
itemClass = 'menu-popup-no-icon menu-popup-right-icon';
}
items.push({
html: itemText,
title: mailboxes[i].formated,
mailbox: mailboxes[i],
onclick: handler,
className: itemClass,
id: mailboxes[i].id
});
}
items.push({ delimiter: true });
}
items.push({
text: BX.util.htmlspecialchars(BX.message('MAIN_MAIL_CONFIRM_MENU')),
onclick: function(event, item)
{
item.menuWindow.close();
BXMainMailConfirm.showForm(function(mailbox, formated)
{
mailboxes.push({
email: mailbox.email,
name: mailbox.name,
id: mailbox.id,
formated: formated,
can_delete: true
});
listParams[id].callback(formated, BX.util.htmlspecialchars(formated));
BX.PopupMenu.destroy(id + '-menu');
});
}
});
//additional settings
if (params.settings.length > 0)
{
items = items.concat(params.settings);
}
BX.PopupMenu.show(
id + '-menu',
bind,
items,
params.popupSettings
);
},
showForm: function(callback, params)
{
window.step = 'email';
var senderId;
window.mode = params && params.mode ? params.mode : 'add';
var dlg = new BX.PopupWindow('add_from_email', null, {
titleBar: BX.message('MAIN_MAIL_CONFIRM_TITLE'),
draggable: true,
closeIcon: true,
lightShadow: true,
contentColor: 'white',
contentNoPaddings: true,
cacheable: false,
content: BX('new_from_email_dialog_content').innerHTML,
buttons: this.prepareDialogButtons(null, 'add', params, callback)
});
this.prepareDialog(dlg);
},
prepareDialog: function(dlg)
{
dlg.formFieldHint = function(field, type, text)
{
if (!field)
{
return;
}
var container = BX.findParent(field, { 'class': 'new-from-email-dialog-cell' });
var hint = BX.findChildByClassName(container, 'new-from-email-dialog-field-hint', true);
BX.removeClass(container, 'new-from-email-dialog-field-error');
BX.removeClass(container, 'new-from-email-dialog-field-warning');
switch (type)
{
case 'error':
BX.addClass(container, 'new-from-email-dialog-field-error');
break;
case 'warning':
BX.addClass(container, 'new-from-email-dialog-field-warning');
break;
}
if (typeof text != 'undefined' && text.length > 0)
{
BX.adjust(hint, { 'html': text });
BX.show(hint, 'block');
}
else
{
BX.hide(hint, 'block');
}
};
dlg.hideNotify = function()
{
var error = BX.findChild(dlg.contentContainer, { class: 'new-from-email-dialog-error' }, true);
if (error)
{
BX.hide(error, 'block');
}
};
dlg.showNotify = function(text)
{
var error = BX.findChild(dlg.contentContainer, { class: 'new-from-email-dialog-error' }, true);
if (error)
{
error.innerHTML = text;
BX.show(error, 'block');
}
};
dlg.switchBlock = function(block, immediately)
{
var emailBlock = BX.findChildByClassName(dlg.contentContainer, 'new-from-email-dialog-email-block', true);
var codeBlock = BX.findChildByClassName(dlg.contentContainer, 'new-from-email-dialog-code-block', true);
var hideBlock, showBlock;
if ('code' != step && 'code' == block)
{
hideBlock = emailBlock;
showBlock = codeBlock;
dlg.buttons[0].setName(BX.message('MAIN_MAIL_CONFIRM_SAVE'));
dlg.buttons[1].setName(BX.message('MAIN_MAIL_CONFIRM_BACK'));
}
else if ('code' == step && 'code' != block)
{
hideBlock = codeBlock;
showBlock = emailBlock;
dlg.buttons[0].setName(BX.message(
'smtp' == block && options.canCheckSmtp
? 'MAIN_MAIL_CONFIRM_SAVE'
: 'MAIN_MAIL_CONFIRM_GET_CODE'
));
dlg.buttons[1].setName(BX.message('MAIN_MAIL_CONFIRM_CANCEL'));
}
step = block;
if (hideBlock && showBlock)
{
if (immediately)
{
showBlock.style.position = '';
showBlock.style.height = '';
showBlock.style.display = '';
hideBlock.style.display = 'none';
}
else
{
hideBlock.style.height = hideBlock.offsetHeight + 'px';
hideBlock.offsetHeight;
hideBlock.style.height = '0px';
showBlock.style.position = 'absolute';
showBlock.style.height = '';
showBlock.style.display = '';
var showBlockHeight = showBlock.offsetHeight;
showBlock.style.height = '0px';
showBlock.style.position = '';
showBlock.offsetHeight;
showBlock.style.height = showBlockHeight + 'px';
}
}
};
var smtpLink = BX.findChildByClassName(dlg.contentContainer, 'new-from-email-dialog-smtp-link', true);
var smtpBlock = BX.findChildByClassName(dlg.contentContainer, 'new-from-email-dialog-smtp-block', true);
var useLimitCheckbox = BX.findChildByClassName(dlg.contentContainer, 'new-from-email-smtp-use-limit', true);
if (useLimitCheckbox)
{
BX.bind(
useLimitCheckbox,
'click',
function()
{
var useLimitCheckbox = BX.findChildByClassName(dlg.contentContainer, 'new-from-email-smtp-use-limit', true);
var emailBlock = BX.findChildByClassName(dlg.contentContainer, 'new-from-email-dialog-email-block', true);
var smtpLimitField = BX.findChild(emailBlock, { attr: { 'data-name': 'smtp-limit' } }, true);
smtpLimitField.disabled = !useLimitCheckbox.checked;
}
)
}
if (smtpLink && smtpBlock)
{
BX.bind(
smtpLink,
'click',
function(event)
{
var emailBlock = BX.findChildByClassName(dlg.contentContainer, 'new-from-email-dialog-email-block', true);
emailBlock.style.height = '';
if ('smtp' == step)
{
step = 'email';
BX.hide(smtpBlock, 'table-row-group');
dlg.buttons[0].setName(BX.message('MAIN_MAIL_CONFIRM_GET_CODE'));
}
else
{
step = 'smtp';
BX.show(smtpBlock, 'table-row-group');
dlg.buttons[0].setName(BX.message(
options.canCheckSmtp ? 'MAIN_MAIL_CONFIRM_SAVE' : 'MAIN_MAIL_CONFIRM_GET_CODE'
));
}
event.preventDefault();
}
);
}
if ('confirm' == window.mode)
{
dlg.switchBlock('code', true);
dlg.setOverlay(true);
}
dlg.show();
var emailBlock = BX.findChildByClassName(dlg.contentContainer, 'new-from-email-dialog-email-block', true);
var nameField = BX.findChild(emailBlock, { attr: { 'data-name': 'name' } }, true);
var emailField = BX.findChild(emailBlock, { attr: { 'data-name': 'email' } }, true);
if (nameField.value.length > 0)
{
emailField.focus();
}
else
{
nameField.focus();
}
},
showEditForm: function(senderId)
{
window.step = 'email';
window.mode = 'edit';
var dlg = new BX.PopupWindow('edit_from_email', null, {
titleBar: BX.message('MAIN_MAIL_CONFIRM_EDIT_TITLE'),
draggable: true,
closeIcon: true,
lightShadow: true,
contentColor: 'white',
contentNoPaddings: true,
cacheable: false,
content: BX('new_from_email_dialog_content').innerHTML,
events: {
onPopupShow: function () {
BX.ajax({
'url': BX.util.add_url_param(action, {
'act': 'info',
senderId: senderId,
}),
'method': 'GET',
'dataType': 'json',
onsuccess: function (data)
{
var emailBlock = BX.findChildByClassName(dlg.contentContainer, 'new-from-email-dialog-email-block', true);
var smtpLink = BX.findChildByClassName(dlg.contentContainer, 'new-from-email-dialog-smtp-link', true);
var useLimitCheckbox = BX.findChildByClassName(dlg.contentContainer, 'new-from-email-smtp-use-limit', true);
var nameField = BX.findChild(emailBlock, { attr: { 'data-name': 'name' } }, true);
var emailField = BX.findChild(emailBlock, { attr: { 'data-name': 'email' } }, true);
var smtpServerField = BX.findChild(emailBlock, { attr: { 'data-name': 'smtp-server' } }, true);
var smtpPortField = BX.findChild(emailBlock, { attr: { 'data-name': 'smtp-port' } }, true);
var smtpSslField = BX.findChild(emailBlock, { attr: { 'data-name': 'smtp-ssl' } }, true);
var smtpLoginField = BX.findChild(emailBlock, { attr: { 'data-name': 'smtp-login' } }, true);
var smtpLimitField = BX.findChild(emailBlock, { attr: { 'data-name': 'smtp-limit' } }, true);
nameField.value = data.name || '';
emailField.value = BX.util.htmlspecialchars(data.email);
smtpServerField.value = BX.util.htmlspecialchars(data.server || '');
smtpPortField.value = BX.util.htmlspecialchars(data.port || '');
smtpLoginField.value = BX.util.htmlspecialchars(data.login || '');
var hasNoLimit = typeof data.limit === 'undefined' || data.limit === null;
smtpLimitField.value = hasNoLimit ? smtpLimitField.value : data.limit;
if (!hasNoLimit)
{
useLimitCheckbox.checked = true;
smtpLimitField.disabled = false;
}
if (data.protocol === 'smtps')
{
smtpSslField.checked = true;
}
if (data.server)
{
BX.fireEvent(smtpLink, 'click');
}
},
onfailure: function (data)
{
},
})
}
},
buttons: this.prepareDialogButtons(senderId, 'edit')
});
this.prepareDialog(dlg);
},
prepareDialogButtons: function(senderId, act, params, callback)
{
return [
new BX.PopupWindowButton({
text: BX.message('MAIN_MAIL_CONFIRM_GET_CODE'),
className: 'popup-window-button-create',
events: {
click: function(event, popup)
{
var btn = this;
var dlg = btn.popupWindow;
if (BX.hasClass(btn.buttonNode, 'popup-window-button-wait'))
return;
var emailBlock = BX.findChildByClassName(dlg.contentContainer, 'new-from-email-dialog-email-block', true);
var codeBlock = BX.findChildByClassName(dlg.contentContainer, 'new-from-email-dialog-code-block', true);
var nameField = BX.findChild(emailBlock, { attr: { 'data-name': 'name' } }, true);
var emailField = BX.findChild(emailBlock, { attr: { 'data-name': 'email' } }, true);
var codeField = BX.findChild(codeBlock, { attr: { 'data-name': 'code' } }, true);
var publicField = BX.findChild(dlg.contentContainer, { attr: { 'data-name': 'public' } }, true);
var smtpServerField = BX.findChild(emailBlock, { attr: { 'data-name': 'smtp-server' } }, true);
var smtpPortField = BX.findChild(emailBlock, { attr: { 'data-name': 'smtp-port' } }, true);
var smtpSslField = BX.findChild(emailBlock, { attr: { 'data-name': 'smtp-ssl' } }, true);
var smtpLoginField = BX.findChild(emailBlock, { attr: { 'data-name': 'smtp-login' } }, true);
var smtpPassField = BX.findChild(emailBlock, { attr: { 'data-name': 'smtp-password' } }, true);
var smtpLimit = BX.findChild(emailBlock, { attr: { 'data-name': 'smtp-limit' } }, true);
dlg.formFieldHint(smtpPassField);
if ('email' == window.step || 'smtp' == window.step)
{
codeField.value = '';
var atom = "[=a-z0-9_+~'!$&*^`|#%/?{}-]";
var pattern = new RegExp('^' + atom + '+(\\.' + atom + '+)*@([a-z0-9-]+\\.)+[a-z0-9-]{2,20}$', 'i');
if (!emailField.value.match(pattern))
{
dlg.showNotify(BX.message(emailField.value.length > 0
? 'MAIN_MAIL_CONFIRM_INVALID_EMAIL'
: 'MAIN_MAIL_CONFIRM_EMPTY_EMAIL'
));
return;
}
}
if ('smtp' == window.step)
{
if (!smtpServerField.value.match(/^([a-z0-9-]+\.)+[a-z0-9-]{2,20}$/))
{
dlg.showNotify(BX.message(smtpServerField.value.length > 0
? 'MAIN_MAIL_CONFIRM_INVALID_SMTP_SERVER'
: 'MAIN_MAIL_CONFIRM_EMPTY_SMTP_SERVER'
));
return;
}
if (!smtpPortField.value.match(/^[0-9]+$/) || smtpPortField.value < 1 || smtpPortField.value > 65535)
{
dlg.showNotify(BX.message(smtpPortField.value.length > 0
? 'MAIN_MAIL_CONFIRM_INVALID_SMTP_PORT'
: 'MAIN_MAIL_CONFIRM_EMPTY_SMTP_PORT'
));
return;
}
if (!(smtpLoginField.value.length > 0))
{
dlg.showNotify(BX.message('MAIN_MAIL_CONFIRM_EMPTY_SMTP_LOGIN'));
return;
}
if (!senderId && smtpPassField.value.length > 0)
{
if (smtpPassField.value.match(/^\^/))
{
dlg.showNotify(BX.message('MAIN_MAIL_CONFIRM_INVALID_SMTP_PASSWORD_CARET'));
return;
}
else if (smtpPassField.value.match(/\x00/))
{
dlg.showNotify(BX.message('MAIN_MAIL_CONFIRM_INVALID_SMTP_PASSWORD_NULL'));
return;
}
else if (smtpPassField.value.match(/^\s|\s$/))
{
dlg.formFieldHint(smtpPassField, 'warning', BX.message('MAIN_MAIL_CONFIRM_SPACE_SMTP_PASSWORD'));
}
}
else if (!senderId)
{
dlg.showNotify(BX.message('MAIN_MAIL_CONFIRM_EMPTY_SMTP_PASSWORD'));
return;
}
}
if ('code' == window.step)
{
if (codeField.value.length == 0)
{
dlg.showNotify(BX.message('MAIN_MAIL_CONFIRM_EMPTY_CODE'));
return;
}
}
dlg.hideNotify();
BX.addClass(btn.buttonNode, 'popup-window-button-wait');
var data = {
id: senderId,
name: nameField.value,
email: emailField.value,
smtp: {},
code: '',
public: publicField.checked ? publicField.value : ''
};
if ('smtp' == window.step)
{
data.smtp = {
server: smtpServerField.value,
port: smtpPortField.value,
ssl: smtpSslField.checked ? smtpSslField.value : '',
login: smtpLoginField.value,
password: smtpPassField.value,
limit: smtpLimit.disabled ? null : smtpLimit.value
};
}
if ('code' == window.step)
{
data.code = codeField.value;
}
if (params && params.data)
{
for (var i in params.data)
{
if (params.data.hasOwnProperty(i))
{
data[i] = params.data[i];
}
}
}
BX.ajax({
'url': BX.util.add_url_param(action, {
'act': act
}),
'method': 'POST',
'dataType': 'json',
'data': data,
onsuccess: function(data)
{
BX.removeClass(btn.buttonNode, 'popup-window-button-wait');
if (data.senderId)
{
senderId = data.senderId;
}
if (data.result == 'error')
{
dlg.showNotify(data.error);
}
else if (('email' == window.step || 'smtp' == window.step) && !data.confirmed)
{
dlg.formFieldHint(smtpPassField);
dlg.switchBlock('code');
}
else
{
btn.popupWindow.close();
if (callback && BX.type.isFunction(callback))
{
var mailboxName = nameField.value.length > 0
? nameField.value
: BX.message('MAIN_MAIL_CONFIRM_USER_FULL_NAME');
callback(
{
name: mailboxName,
email: emailField.value,
id: senderId
},
mailboxName.length > 0 ? mailboxName + ' <' + emailField.value + '>' : emailField.value
);
}
}
},
onfailure: function()
{
BX.removeClass(btn.buttonNode, 'popup-window-button-wait');
dlg.showNotify(BX.message('MAIN_MAIL_CONFIRM_AJAX_ERROR'));
}
});
}
}
}),
new BX.PopupWindowButton({
text: BX.message('MAIN_MAIL_CONFIRM_CANCEL'),
className: 'popup-window-button-link',
events: {
click: function()
{
var dlg = this.popupWindow;
if ('code' == window.step && 'confirm' != window.mode)
{
var smtpBlock = BX.findChildByClassName(dlg.contentContainer, 'new-from-email-dialog-smtp-block', true);
dlg.switchBlock(smtpBlock && smtpBlock.offsetHeight > 0 ? 'smtp' : 'email');
}
else
{
this.popupWindow.close();
}
}
}
})
]
},
updateListCanDel: function(id)
{
BX.ajax({
'url':BX.util.add_url_param(action, {
'act': 'sendersListCanDel',
}),
'method': 'POST',
'dataType': 'json',
'data': {},
onsuccess: function(data)
{
if (data.result == 'error')
{
BX.UI.Notification.Center.notify({
content: BX.message('MAIN_MAIL_DELETE_SENDER_ERROR')
});
}
else
{
mailboxes = mailboxes.filter(function(value, index)
{
if (!value.can_delete)
{
return true;
}
for (var i in data.mailboxes)
{
if (data.mailboxes[i].id == value.id)
{
return true;
}
}
return false;
});
BX.PopupMenu.destroy(id + '-menu');
}
},
onfailure: function(data)
{
BX.UI.Notification.Center.notify({
content: BX.message('MAIN_MAIL_DELETE_SENDER_ERROR')
});
}
});
},
deleteSender: function(senderId, callback)
{
BX.UI.Dialogs.MessageBox.show({
message: BX.message('MAIN_MAIL_CONFIRM_DELETE_SENDER_CONFIRM'),
modal: true,
buttons: BX.UI.Dialogs.MessageBoxButtons.OK_CANCEL,
onOk: function(messageBox)
{
return new Promise(
function(resolve,reject)
{
BX.ajax({
'url': BX.util.add_url_param(action, {
'act': 'delete',
}),
'method': 'POST',
'dataType': 'json',
'data': {
senderId: senderId
},
onsuccess: function(data)
{
if (data.result == 'error')
{
BX.UI.Notification.Center.notify({
content: BX.message('MAIN_MAIL_DELETE_SENDER_ERROR')
});
reject(data);
}
else
{
if (BX.type.isFunction(callback))
{
callback();
}
resolve(data);
}
},
onfailure: function(data)
{
BX.UI.Notification.Center.notify({
content: BX.message('MAIN_MAIL_DELETE_SENDER_ERROR')
});
reject(data);
}
});
}
);
},
onCancel: function(messageBox)
{
messageBox.close();
}
});
}
};
window.BXMainMailConfirm = BXMainMailConfirm;
})();
|
//
// Engagement chart
//
'use strict';
var ApexOrdersChart = (function() {
// Variables
var $chart = document.querySelector("#apex-orders"),
$legendItem = $('.legend input'),
chart;
var colorPalette = [
PurposeStyle.colors.theme['primary'],
PurposeStyle.colors.theme['warning']
]
function init() {
var options = {
chart: {
type: 'bar',
stacked: false,
zoom: {
enabled: false
},
toolbar: {
show: false
},
shadow: {
enabled: false,
},
animations: {
enabled: true,
easing: 'easeinout',
speed: 800,
animateGradually: {
enabled: true,
delay: 150
},
dynamicAnimation: {
enabled: true,
speed: 350
}
}
},
colors: colorPalette,
plotOptions: {
bar: {
columnWidth: '20%',
endingShape: 'rounded'
}
},
stroke: {
width: 0,
curve: 'smooth'
},
series: [{
name: 'Delivered',
type: 'bar',
data: [50, 30, 40, 60, 80, 100, 90, 90, 70, 90, 100]
}, {
name: 'Rejected',
type: 'bar',
data: [15, 20, 20, 15, 15, 30, 20, 15, 30, 20, 30]
}],
markers: {
size: 0
},
xaxis: {
axisBorder: {
show: false
},
axisTicks: {
show: false
},
categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
labels: {
style: {
colors: PurposeStyle.colors.gray[500],
fontSize: '13px',
fontFamily: PurposeStyle.fonts.base,
cssClass: 'apexcharts-xaxis-label',
}
}
},
yaxis: {
axisBorder: {
show: false
},
axisTicks: {
show: false
},
labels: {
style: {
color: PurposeStyle.colors.gray[500],
fontSize: '13px',
fontFamily: PurposeStyle.fonts.base,
cssClass: 'apexcharts-xaxis-label',
}
}
},
legend: {
show: false
},
grid: {
borderColor: PurposeStyle.colors.gray[200],
strokeDashArray: 3,
},
dataLabels: {
enabled: false
},
tooltip: {
shared: true,
intersect: false,
y: {
formatter: function(y) {
if (typeof y !== "undefined") {
return y.toFixed(0) + " orders";
}
return y;
}
}
}
}
// Get data from data attributes
var height = $chart.dataset.height;
// Inject synamic properties
options.colors = colorPalette;
options.chart.height = height ? height : 350;
chart = new ApexCharts($chart, options);
// Draw chart
setTimeout(function() {
chart.render();
checkLegends()
}, 300);
}
// check if the checkbox has any unchecked item
// checkLegends()
function checkLegends() {
var allLegends = document.querySelectorAll(".legend input[type='checkbox']")
for (var i = 0; i < allLegends.length; i++) {
if (!allLegends[i].checked) {
chart.toggleSeries(allLegends[i].value)
}
}
}
// toggleSeries accepts a single argument which should match the series name you're trying to toggle
function toggleSeries(checkbox) {
chart.toggleSeries(checkbox.value)
}
if ($chart) {
init();
return {
toggleSeries: toggleSeries
};
}
})();
|
import React from 'react';
import styles from './OffTopicFilter.css';
import { t } from 'plugin-api/beta/client/services';
export default class OffTopicFilter extends React.Component {
tag = 'OFF_TOPIC';
className = 'talk-plugin-off-topic-comment';
cn = { [this.className]: { tags: [this.tag] } };
handleChange = e => {
if (e.target.checked) {
this.props.addCommentClassName(this.cn);
this.props.toggleCheckbox();
} else {
const idx = this.props.commentClassNames.findIndex(
i => i[this.className]
);
this.props.removeCommentClassName(idx);
this.props.toggleCheckbox();
}
};
render() {
return (
<label className={styles.label}>
<input
type="checkbox"
onChange={this.handleChange}
checked={this.props.checked}
className={styles.input}
/>
{t('hide_off_topic')}
</label>
);
}
}
|
import { mount, tag2 as tag } from 'riot';
import compiler from 'riot-compiler';
import { alreadyCompiledMarker, getRidOfRiotNoise } from '../compileStageFunctions';
export default function renderRaw(sourceCode) {
const tag2 = tag;
// eslint-disable-next-line no-eval
eval(
getRidOfRiotNoise(
`${compiler.compile(sourceCode.replace(alreadyCompiledMarker, '').trim(), {})}`
)
);
mount('root', /tag2\s*\(\s*'([^']+)'/.exec(sourceCode)[1], {});
}
|
const AppMenu = () => {
return (
<div>
<h2>{'AppMenu'}</h2>
<p>{'Find me in ./web/src/components/AppMenu/AppMenu.js'}</p>
</div>
)
}
export default AppMenu
|
"use strict";
var assert = require("assert");
var testFulfilled = require("./helpers/testThreeCases").testFulfilled;
var adapter = global.adapter;
var resolved = adapter.resolved;
var deferred = adapter.deferred;
var dummy = { dummy: "dummy" }; // we fulfill or reject with this when we don't intend to test against it
var sentinel = { sentinel: "sentinel" }; // a sentinel fulfillment value to test for with strict equality
describe("2.2.2: If `onFulfilled` is a function,", function () {
describe("2.2.2.1: it must be called after `promise` is fulfilled, with `promise`’s fulfillment value as its " +
"first argument.", function () {
testFulfilled(sentinel, function (promise, done) {
promise.then(function onFulfilled(value) {
assert.strictEqual(value, sentinel);
done();
});
});
});
describe("2.2.2.2: it must not be called before `promise` is fulfilled", function () {
specify("fulfilled after a delay", function (done) {
var d = deferred();
var isFulfilled = false;
d.promise.then(function onFulfilled() {
assert.strictEqual(isFulfilled, true);
done();
});
setTimeout(function () {
d.resolve(dummy);
isFulfilled = true;
}, 50);
});
specify("never fulfilled", function (done) {
var d = deferred();
var onFulfilledCalled = false;
d.promise.then(function onFulfilled() {
onFulfilledCalled = true;
done();
});
setTimeout(function () {
assert.strictEqual(onFulfilledCalled, false);
done();
}, 150);
});
});
describe("2.2.2.3: it must not be called more than once.", function () {
specify("already-fulfilled", function (done) {
var timesCalled = 0;
resolved(dummy).then(function onFulfilled() {
assert.strictEqual(++timesCalled, 1);
done();
});
});
specify("trying to fulfill a pending promise more than once, immediately", function (done) {
var d = deferred();
var timesCalled = 0;
d.promise.then(function onFulfilled() {
assert.strictEqual(++timesCalled, 1);
done();
});
d.resolve(dummy);
d.resolve(dummy);
});
specify("trying to fulfill a pending promise more than once, delayed", function (done) {
var d = deferred();
var timesCalled = 0;
d.promise.then(function onFulfilled() {
assert.strictEqual(++timesCalled, 1);
done();
});
setTimeout(function () {
d.resolve(dummy);
d.resolve(dummy);
}, 50);
});
specify("trying to fulfill a pending promise more than once, immediately then delayed", function (done) {
var d = deferred();
var timesCalled = 0;
d.promise.then(function onFulfilled() {
assert.strictEqual(++timesCalled, 1);
done();
});
d.resolve(dummy);
setTimeout(function () {
d.resolve(dummy);
}, 50);
});
specify("when multiple `then` calls are made, spaced apart in time", function (done) {
var d = deferred();
var timesCalled = [0, 0, 0];
d.promise.then(function onFulfilled() {
assert.strictEqual(++timesCalled[0], 1);
});
setTimeout(function () {
d.promise.then(function onFulfilled() {
assert.strictEqual(++timesCalled[1], 1);
});
}, 50);
setTimeout(function () {
d.promise.then(function onFulfilled() {
assert.strictEqual(++timesCalled[2], 1);
done();
});
}, 100);
setTimeout(function () {
d.resolve(dummy);
}, 150);
});
specify("when `then` is interleaved with fulfillment", function (done) {
var d = deferred();
var timesCalled = [0, 0];
d.promise.then(function onFulfilled() {
assert.strictEqual(++timesCalled[0], 1);
});
d.resolve(dummy);
d.promise.then(function onFulfilled() {
assert.strictEqual(++timesCalled[1], 1);
done();
});
});
});
});
|
/* @flow */
import React from 'react';
import classNames from 'classnames';
import {
compose,
getContext,
pure,
} from 'recompose';
import { createStyleSheet } from 'jss-theme-reactor';
import { type AppStyleManager } from '~/src/shared/styles/createStyleManager';
import { DownArrow } from '~/src/shared/components/transaction/lib';
const styleSheet = createStyleSheet('TransactionSplitSummaryBodyDense', (theme) => ({
root: {
display: 'flex',
flexDirection: 'column',
},
col: {
display: 'flex',
flex: '1 1 auto',
},
arrow: {
alignItems: 'center',
display: 'flex',
flex: '0 0 auto',
justifyContent: 'center',
marginBottom: theme.spacing.unit / 2,
marginTop: theme.spacing.unit / 2,
},
divider: {
backgroundColor: theme.palette.text.lightDivider,
flex: '1 1 auto',
marginLeft: theme.spacing.unit,
marginRight: theme.spacing.unit,
height: 1,
},
right: {
justifyContent: 'flex-end',
},
extraRight: {
alignItems: 'flex-end',
display: 'flex',
flexDirection: 'column',
minWidth: '0',
},
}));
type ExternalProps = {|
left: any,
right: any,
extraRight?: any,
className?: string,
|};
// eslint-disable-next-line
type InternalProps = {|
styleManager: AppStyleManager,
|};
/* ::
type Props = {|
...ExternalProps,
...InternalProps,
|};
*/
function TransactionSplitSummaryBodyDense({
left,
right: rightIn,
extraRight,
className,
styleManager,
}: Props): React.Element<*> {
const classes = styleManager.render(styleSheet);
let right = rightIn;
if (extraRight != null) {
right = (
<div className={classes.extraRight}>
{right}
{extraRight}
</div>
);
}
return (
<div className={classNames(className, classes.root)}>
<div className={classes.col}>
{left}
</div>
<div className={classes.arrow}>
<div className={classes.divider} />
<DownArrow />
<div className={classes.divider} />
</div>
<div className={classNames(classes.col, classes.right)}>
{right}
</div>
</div>
);
}
export default (compose(
getContext({ styleManager: () => null }),
pure,
)(TransactionSplitSummaryBodyDense): Class<React.Component<void, ExternalProps, void>>);
|
import React from 'react';
import { connect } from 'react-redux';
import withStyles from 'isomorphic-style-loader/lib/withStyles';
import TaskForm from '../components/TaskForm';
import TaskList from '../components/TaskList';
import TaskStats from '../components/TaskStats';
import selector from '../selector';
import { taskAdd, taskDone, taskUndone } from '../actions';
// import './style.css';
import s from './style.css';
class App extends React.Component {
handleTaskAdd = name => {
// eslint-disable-next-line
this.props.dispatch(taskAdd(name));
};
handleTaskDone = id => {
this.props.dispatch(taskDone(id));
};
handleTaskUndone = id => {
this.props.dispatch(taskUndone(id));
};
render() {
// eslint-disable-next-line
const { tasks, taskCount, doneTaskCount } = this.props;
return (
<div className={s.viewport}>
<TaskForm onSave={this.handleTaskAdd} />
<TaskList
onTaskDone={this.handleTaskDone}
onTaskUndone={this.handleTaskUndone}
tasks={tasks}
/>
<TaskStats
taskCount={taskCount}
undoneTaskCount={taskCount - doneTaskCount}
/>
</div>
);
}
}
export default withStyles(s)(connect(selector)(App));
|
// cached date formatting instance.
// See https://github.com/hypothesis/h/issues/2820#issuecomment-166285361
let formatter;
/**
* Returns a standard human-readable representation
* of a date and time.
*/
export function format(date) {
if (typeof Intl !== 'undefined' && Intl.DateTimeFormat) {
if (!formatter) {
formatter = new Intl.DateTimeFormat(undefined, {
year: 'numeric',
month: 'short',
day: '2-digit',
weekday: 'long',
hour: '2-digit',
minute: '2-digit',
});
}
return formatter.format(date);
} else {
// IE < 11, Safari <= 9.0.
// In English, this generates the string most similar to
// the toLocaleDateString() result above.
return date.toDateString() + ' ' + date.toLocaleTimeString();
}
}
|
import React, { useMemo } from 'react'
import { find, has, map } from 'lodash'
import classnames from 'classnames'
import PropTypes from 'prop-types'
import ActionsMenu from '../../common/ActionsMenu/ActionsMenu'
import EditableVolumesRow from '../EditableVolumesRow/EditableVolumesRow'
import Input from '../../common/Input/Input'
import Select from '../../common/Select/Select'
import Tip from '../../common/Tip/Tip'
import { Tooltip, TextTooltipTemplate } from 'igz-controls/components'
import {
getVolumeTypeInput,
isPathNotUnique,
selectTypeOptions,
tableHeaders,
V3IO
} from './volumesTable.util'
import { joinDataOfArrayOrObject } from '../../utils'
import { isNameNotUnique } from '../../components/JobsPanel/jobsPanel.util'
import { ReactComponent as Plus } from 'igz-controls/images/plus.svg'
import { ReactComponent as Delete } from 'igz-controls/images/delete.svg'
import './volumesTable.scss'
const VolumesTableView = ({
addVolume,
className,
editVolume,
generateActionsMenu,
newVolume,
volumeMounts,
resetVolumesData,
selectedVolume,
setNewVolume,
setSelectedVolume,
setShowAddNewVolumeRow,
setValidation,
showAddNewVolumeRow,
validation
}) => {
const volumeTypeInput = useMemo(() => getVolumeTypeInput(newVolume.type), [
newVolume.type
])
const tableClassNames = classnames(
'new-item-side-panel__table',
'volumes-table',
showAddNewVolumeRow && 'no-border',
className
)
const volumeTypeInputRowWrapperClassNames = classnames(
'input-row-wrapper',
newVolume.type === V3IO && 'no-border'
)
return (
<div className={tableClassNames}>
<div className="table__header table__row no-hover">
{tableHeaders.map((header, index) => (
<div className="table__cell" key={index}>
{header.label}
</div>
))}
<div className="table__cell-actions" />
</div>
{volumeMounts?.map((contentItem, index) => {
if (
selectedVolume &&
selectedVolume.data.name === contentItem.data.name
) {
return (
<EditableVolumesRow
content={volumeMounts}
handleEdit={editVolume}
key={index}
selectedVolume={selectedVolume}
setSelectedVolume={setSelectedVolume}
/>
)
} else {
return (
<div className="table__row" key={index}>
{map(contentItem.data, (value, property) => {
const tableCellClassName = classnames(
'table__cell',
((property === 'name' && has(contentItem.data, 'value')) ||
property === 'valueType') &&
contentItem.isDefault &&
'table__cell_disabled'
)
const tooltipClassNames = classnames(
property === 'name' && 'parameter-name'
)
return (
<div className={tableCellClassName} key={property}>
<Tooltip
className={tooltipClassNames}
template={
<TextTooltipTemplate
text={joinDataOfArrayOrObject(value, ', ')}
/>
}
>
{joinDataOfArrayOrObject(value, ', ')}
</Tooltip>
{property === 'name' && contentItem.doc && (
<Tip text={contentItem.doc} />
)}
</div>
)
})}
<div className="table__cell table__cell-actions">
<ActionsMenu
menu={generateActionsMenu(contentItem)}
dataItem={contentItem}
/>
</div>
</div>
)
}
})}
{showAddNewVolumeRow ? (
<div className="table__body">
<div className="table__body-column">
<div className="input-row-wrapper no-border">
<Select
onClick={type => {
setNewVolume(state => ({
...state,
type: find(selectTypeOptions.volumeType, ['id', type]).id
}))
setValidation(state => ({
...state,
isTypeValid: true,
isAccessKeyValid: true
}))
}}
options={selectTypeOptions.volumeType}
selectedId={newVolume.type}
/>
<Input
className="input-row__item"
floatingLabel
invalid={
isNameNotUnique(newVolume.name, volumeMounts) ||
!validation.isNameValid
}
invalidText={
isNameNotUnique(newVolume.name, volumeMounts)
? 'Name already exists'
: 'This field is invalid'
}
label="Volume Name"
onChange={name => setNewVolume(state => ({ ...state, name }))}
required
requiredText="This field is required"
setInvalid={value =>
setValidation(state => ({ ...state, isNameValid: value }))
}
type="text"
/>
<Input
className="input-row__item input-row__item_edit"
floatingLabel
invalid={
isPathNotUnique(newVolume.path, volumeMounts) ||
!validation.isPathValid
}
invalidText={
isPathNotUnique(newVolume.path, volumeMounts)
? 'Multiple volumes cannot share the same path'
: 'This field is invalid'
}
label="Path"
onChange={path => setNewVolume(state => ({ ...state, path }))}
required
requiredText="This field is required"
setInvalid={value =>
setValidation(state => ({ ...state, isPathValid: value }))
}
tip="A mount path for referencing the data from the function"
type="text"
/>
</div>
<div className={volumeTypeInputRowWrapperClassNames}>
<Input
className="input-row__item"
disabled={newVolume.type.length === 0}
floatingLabel
invalid={!validation.isTypeNameValid}
label={volumeTypeInput.label}
onChange={typeName =>
setNewVolume(state => ({ ...state, typeName }))
}
required={newVolume.type !== V3IO}
requiredText="This field is required"
setInvalid={value =>
setValidation(state => ({ ...state, isTypeNameValid: value }))
}
tip={volumeTypeInput.tip}
type="text"
/>
{newVolume.type === V3IO && (
<Input
className="input-row__item"
floatingLabel
invalid={!validation.isAccessKeyValid}
label="Access Key"
onChange={accessKey =>
setNewVolume(state => ({ ...state, accessKey }))
}
required
requiredText="This field is required"
setInvalid={value =>
setValidation(state => ({
...state,
isAccessKeyValid: value
}))
}
tip="A platform data-access key"
type="text"
/>
)}
</div>
{newVolume.type === V3IO && (
<div className="input-row-wrapper">
<Input
className="input-row__item"
floatingLabel
label="Resource path"
onChange={subPath =>
setNewVolume(state => ({ ...state, subPath }))
}
tip="A relative directory path within the data container"
type="text"
/>
</div>
)}
</div>
<button
className="btn-add"
disabled={
isNameNotUnique(newVolume.name, volumeMounts) ||
isPathNotUnique(newVolume.path, volumeMounts)
}
onClick={addVolume}
>
<Tooltip template={<TextTooltipTemplate text="Add item" />}>
<Plus />
</Tooltip>
</button>
<button onClick={resetVolumesData}>
<Tooltip template={<TextTooltipTemplate text="Discard changes" />}>
<Delete />
</Tooltip>
</button>
</div>
) : (
<div className="table__row no-hover">
<div
className="table__cell"
onClick={() => setShowAddNewVolumeRow(true)}
>
<button className="add-input">
<Plus />
Add volume
</button>
</div>
</div>
)}
</div>
)
}
VolumesTableView.propTypes = {
addVolume: PropTypes.func.isRequired,
className: PropTypes.string.isRequired,
editVolume: PropTypes.func.isRequired,
generateActionsMenu: PropTypes.func.isRequired,
newVolume: PropTypes.shape({}).isRequired,
volumeMounts: PropTypes.arrayOf(PropTypes.shape({})).isRequired,
resetVolumesData: PropTypes.func.isRequired,
selectedVolume: PropTypes.shape({}),
setNewVolume: PropTypes.func.isRequired,
setSelectedVolume: PropTypes.func.isRequired,
setShowAddNewVolumeRow: PropTypes.func.isRequired,
setValidation: PropTypes.func.isRequired,
showAddNewVolumeRow: PropTypes.bool.isRequired,
validation: PropTypes.shape({}).isRequired
}
export default VolumesTableView
|
// Copyright (C) 2015 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 22.1.3.3
description: >
Copy values with non-negative target and start positions.
info: >
22.1.3.3 Array.prototype.copyWithin (target, start [ , end ] )
...
7. If relativeTarget < 0, let to be max((len + relativeTarget),0); else let to
be min(relativeTarget, len).
...
10. If relativeStart < 0, let from be max((len + relativeStart),0); else let
from be min(relativeStart, len).
11. If end is undefined, let relativeEnd be len; else let relativeEnd be
ToInteger(end).
...
14. Let count be min(final-from, len-to).
15. If from<to and to<from+count
...
16. Else,
a. Let direction = 1.
17. Repeat, while count > 0
...
a. If fromPresent is true, then
i. Let fromVal be Get(O, fromKey).
...
iii. Let setStatus be Set(O, toKey, fromVal, true).
...
includes: [compareArray.js]
---*/
assert(
compareArray(
['a', 'b', 'c', 'd', 'e', 'f'].copyWithin(0, 0),
['a', 'b', 'c', 'd', 'e', 'f']
)
);
assert(
compareArray(
['a', 'b', 'c', 'd', 'e', 'f'].copyWithin(0, 2),
['c', 'd', 'e', 'f', 'e', 'f']
)
);
assert(
compareArray(
['a', 'b', 'c', 'd', 'e', 'f'].copyWithin(3, 0),
['a', 'b', 'c', 'a', 'b', 'c']
)
);
assert(
compareArray(
[0, 1, 2, 3, 4, 5].copyWithin(1, 4),
[0, 4, 5, 3, 4, 5]
)
);
|
/*
Cet exemple en tant que tel n'est pas directement matière à examen. Toutefois,
je vous suggère de l'analyser puisque les concepts auxquels il réfère le sont.
Il est fourni à titre informatif pour illustrer une technique pour réaliser l'héritage
prototypal au moyen d'une hiérarchie d'objets créée avec Object.create
(une hiérarchie semblable à shapes.js est créée).
Fonctionnement:
- Nous modélisons chacun des trois objets, puis nous établissons la hiérarchie
avec l'enchaînement des [[Prototypes]] via l'appel à Object.create
- Remarquez qu'il n'y a aucune fonction constructeur -- les [[Prototypes]] sont donc
enchaînés directement, et ne sont pas liés au champ "prototype" du constructeur
- La création d'une "instance" d'un des trois objets se fait également via l'appel
à Object.create: nous créons un nouvel objet, et son [[Prototype]] est
lié au [[Prototype]] de l'objet Point/Circle/Ellipse.
- Puisqu'aucun constructeur n'est invoqué lors de la création d'objets avec
Object.create, nous implémentons une fonction init dans chacun des objets, qui
permet d'initialiser les paramètres. L'utilisateur doit donc manuellement invoquer init
après avoir créé l'objet. Vous pouvez imaginer comme analogie l'initialisation
d'une "structure" en C++ vs une classe.
*/
var Point = {
init: function(x, y) {
this.x = x;
this.y = y;
},
area : function() {
return 0;
},
toString: function() {
return "(" + this.x + "," + this.y + ")";
}
};
var Circle = Object.create(Point);
Circle.init = function(x, y, r) {
Point.init.call(this, x, y);
this.r = r;
};
Circle.area = function () {
return 3.14 * this.r * this.r;
};
Circle.toString = function() {
return "(" + this.x + "," + this.y + ", " + this.r + ")";
};
var Ellipse = Object.create(Circle);
Ellipse.init = function(x, y, r, r2) {
Circle.init.call(this, x, y, r);
this.r2 = r2;
};
Ellipse.area = function() {
return 3.14 * this.r * this.r2;
};
Ellipse.toString = function() {
return "(" + this.x + "," + this.y + ", " + this.r + " , " + this.r2 + ")";
};
var p = Object.create(Point);
p.init(10, 20);
console.log( "Point p = " + p );
console.log( "p's area = " + p.area() );
console.log( Object.getPrototypeOf(p) );
var c = Object.create(Circle);
c.init(20, 30, 5);
console.log( "Circle c = " + c );
console.log( "c's area = " + c.area() );
console.log( Object.getPrototypeOf(c) );
var e = Object.create(Ellipse);
e.init(5, 10, 5, 2);
console.log( "Ellipse e = " + e );
console.log( "e's area = " + e.area() );
console.log( Object.getPrototypeOf(e) );
console.log( Object.getPrototypeOf( Object.getPrototypeOf(e) ) );
var e2 = Object.create(Ellipse);
e2.init(0, 0, 0, 0);
console.log( "Ellipse e = " + e );
console.log( "Ellipse e2 = " + e2 );
console.log( Object.getPrototypeOf(e2) );
console.log( Object.getPrototypeOf( Object.getPrototypeOf(e2) ) );
function iterateOverProperties(obj) {
var e; var str = "{ ";
var proto = Object.getPrototypeOf(obj);
console.log(proto);
for (e in obj) {
if ( ( obj.hasOwnProperty(e) )
&& ( typeof(obj[e]) != "function")
&& (e in proto ) ) {
str = str + e + " = " + obj[e] + " , ";
}
}
str = str + " } ";
return str;
}
console.log( "p's properties " + iterateOverProperties(p) );
console.log( "c's properties " + iterateOverProperties(c) );
console.log( "e's properties " + iterateOverProperties(e) );
|
var SimpleWebRTC=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},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 i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},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=93)}([function(e,t,n){"use strict";e.exports=n(65)},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));function i(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{l(i.next(e))}catch(e){o(e)}}function s(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))}},function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return tt})),n.d(t,"c",(function(){return ye})),n.d(t,"e",(function(){return it})),n.d(t,"a",(function(){return We}));var i=n(30),r=n.n(i),o=n(44),a=n.n(o),s=n(0),l=n.n(s),c=n(45),u=n(11),d=n(31),p=(n(18),n(64)),m=n(63),h=function(e,t){for(var n=[e[0]],i=0,r=t.length;i<r;i+=1)n.push(t[i],e[i+1]);return n},f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},v=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),b=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},y=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},k=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},w=function(e){return"object"===(void 0===e?"undefined":f(e))&&e.constructor===Object},S=Object.freeze([]),C=Object.freeze({});function x(e){return"function"==typeof e}function E(e){return e.displayName||e.name||"Component"}function T(e){return e&&"string"==typeof e.styledComponentId}var _=void 0!==e&&(e.env.REACT_APP_SC_ATTR||e.env.SC_ATTR)||"data-styled",j="undefined"!=typeof window&&"HTMLElement"in window,O="boolean"==typeof SC_DISABLE_SPEEDY&&SC_DISABLE_SPEEDY||void 0!==e&&(e.env.REACT_APP_SC_DISABLE_SPEEDY||e.env.SC_DISABLE_SPEEDY)||!1,R={};var P=function(e){function t(n){g(this,t);for(var i=arguments.length,r=Array(i>1?i-1:0),o=1;o<i;o++)r[o-1]=arguments[o];var a=k(this,e.call(this,"An error occurred. See https://github.com/styled-components/styled-components/blob/master/packages/styled-components/src/utils/errors.md#"+n+" for more information."+(r.length>0?" Additional arguments: "+r.join(", "):"")));return k(a)}return y(t,e),t}(Error),I=/^[^\S\n]*?\/\* sc-component-id:\s*(\S+)\s+\*\//gm,A=function(e){var t=""+(e||""),n=[];return t.replace(I,(function(e,t,i){return n.push({componentId:t,matchIndex:i}),e})),n.map((function(e,i){var r=e.componentId,o=e.matchIndex,a=n[i+1];return{componentId:r,cssFromDOM:a?t.slice(o,a.matchIndex):t.slice(o)}}))},M=/^\s*\/\/.*$/gm,N=new r.a({global:!1,cascade:!0,keyframe:!1,prefix:!1,compress:!1,semicolon:!0}),D=new r.a({global:!1,cascade:!0,keyframe:!1,prefix:!0,compress:!1,semicolon:!1}),L=[],q=function(e){if(-2===e){var t=L;return L=[],t}},F=a()((function(e){L.push(e)})),z=void 0,U=void 0,B=void 0,V=function(e,t,n){return t>0&&-1!==n.slice(0,t).indexOf(U)&&n.slice(t-U.length,t)!==U?"."+z:e};D.use([function(e,t,n){2===e&&n.length&&n[0].lastIndexOf(U)>0&&(n[0]=n[0].replace(B,V))},F,q]),N.use([F,q]);var $=function(e){return N("",e)};function H(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"&",r=e.join("").replace(M,""),o=t&&n?n+" "+t+" { "+r+" }":r;return z=i,U=t,B=new RegExp("\\"+U+"\\b","g"),D(n||!t?"":t,o)}var W=function(){return n.nc},G=function(e,t,n){n&&((e[t]||(e[t]=Object.create(null)))[n]=!0)},Q=function(e,t){e[t]=Object.create(null)},J=function(e){return function(t,n){return void 0!==e[t]&&e[t][n]}},K=function(e){var t="";for(var n in e)t+=Object.keys(e[n]).join(" ")+" ";return t.trim()},Y=function(e){if(e.sheet)return e.sheet;for(var t=e.ownerDocument.styleSheets.length,n=0;n<t;n+=1){var i=e.ownerDocument.styleSheets[n];if(i.ownerNode===e)return i}throw new P(10)},X=function(e,t,n){if(!t)return!1;var i=e.cssRules.length;try{e.insertRule(t,n<=i?n:i)}catch(e){return!1}return!0},Z=function(e){return"\n/* sc-component-id: "+e+" */\n"},ee=function(e,t){for(var n=0,i=0;i<=t;i+=1)n+=e[i];return n},te=function(e,t){return function(n){var i=W();return"<style "+[i&&'nonce="'+i+'"',_+'="'+K(t)+'"','data-styled-version="4.4.1"',n].filter(Boolean).join(" ")+">"+e()+"</style>"}},ne=function(e,t){return function(){var n,i=((n={})[_]=K(t),n["data-styled-version"]="4.4.1",n),r=W();return r&&(i.nonce=r),l.a.createElement("style",b({},i,{dangerouslySetInnerHTML:{__html:e()}}))}},ie=function(e){return function(){return Object.keys(e)}},re=function(e,t){return e.createTextNode(Z(t))},oe=function e(t,n){var i=void 0===t?Object.create(null):t,r=void 0===n?Object.create(null):n,o=function(e){var t=r[e];return void 0!==t?t:r[e]=[""]},a=function(){var e="";for(var t in r){var n=r[t][0];n&&(e+=Z(t)+n)}return e};return{clone:function(){var t=function(e){var t=Object.create(null);for(var n in e)t[n]=b({},e[n]);return t}(i),n=Object.create(null);for(var o in r)n[o]=[r[o][0]];return e(t,n)},css:a,getIds:ie(r),hasNameForId:J(i),insertMarker:o,insertRules:function(e,t,n){o(e)[0]+=t.join(" "),G(i,e,n)},removeRules:function(e){var t=r[e];void 0!==t&&(t[0]="",Q(i,e))},sealed:!1,styleTag:null,toElement:ne(a,i),toHTML:te(a,i)}},ae=function(e,t,n,i,r){if(j&&!n){var o=function(e,t,n){var i=document;e?i=e.ownerDocument:t&&(i=t.ownerDocument);var r=i.createElement("style");r.setAttribute(_,""),r.setAttribute("data-styled-version","4.4.1");var o=W();if(o&&r.setAttribute("nonce",o),r.appendChild(i.createTextNode("")),e&&!t)e.appendChild(r);else{if(!t||!e||!t.parentNode)throw new P(6);t.parentNode.insertBefore(r,n?t:t.nextSibling)}return r}(e,t,i);return O?function(e,t){var n=Object.create(null),i=Object.create(null),r=void 0!==t,o=!1,a=function(t){var r=i[t];return void 0!==r?r:(i[t]=re(e.ownerDocument,t),e.appendChild(i[t]),n[t]=Object.create(null),i[t])},s=function(){var e="";for(var t in i)e+=i[t].data;return e};return{clone:function(){throw new P(5)},css:s,getIds:ie(i),hasNameForId:J(n),insertMarker:a,insertRules:function(e,i,s){for(var l=a(e),c=[],u=i.length,d=0;d<u;d+=1){var p=i[d],m=r;if(m&&-1!==p.indexOf("@import"))c.push(p);else{m=!1;var h=d===u-1?"":" ";l.appendData(""+p+h)}}G(n,e,s),r&&c.length>0&&(o=!0,t().insertRules(e+"-import",c))},removeRules:function(a){var s=i[a];if(void 0!==s){var l=re(e.ownerDocument,a);e.replaceChild(l,s),i[a]=l,Q(n,a),r&&o&&t().removeRules(a+"-import")}},sealed:!1,styleTag:e,toElement:ne(s,n),toHTML:te(s,n)}}(o,r):function(e,t){var n=Object.create(null),i=Object.create(null),r=[],o=void 0!==t,a=!1,s=function(e){var t=i[e];return void 0!==t?t:(i[e]=r.length,r.push(0),Q(n,e),i[e])},l=function(){var t=Y(e).cssRules,n="";for(var o in i){n+=Z(o);for(var a=i[o],s=ee(r,a),l=s-r[a];l<s;l+=1){var c=t[l];void 0!==c&&(n+=c.cssText)}}return n};return{clone:function(){throw new P(5)},css:l,getIds:ie(i),hasNameForId:J(n),insertMarker:s,insertRules:function(i,l,c){for(var u=s(i),d=Y(e),p=ee(r,u),m=0,h=[],f=l.length,g=0;g<f;g+=1){var v=l[g],b=o;b&&-1!==v.indexOf("@import")?h.push(v):X(d,v,p+m)&&(b=!1,m+=1)}o&&h.length>0&&(a=!0,t().insertRules(i+"-import",h)),r[u]+=m,G(n,i,c)},removeRules:function(s){var l=i[s];if(void 0!==l&&!1!==e.isConnected){var c=r[l];!function(e,t,n){for(var i=t-n,r=t;r>i;r-=1)e.deleteRule(r)}(Y(e),ee(r,l)-1,c),r[l]=0,Q(n,s),o&&a&&t().removeRules(s+"-import")}},sealed:!1,styleTag:e,toElement:ne(l,n),toHTML:te(l,n)}}(o,r)}return oe()},se=/\s+/,le=void 0;le=j?O?40:1e3:-1;var ce=0,ue=void 0,de=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:j?document.head:null,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];g(this,e),this.getImportRuleTag=function(){var e=t.importRuleTag;if(void 0!==e)return e;var n=t.tags[0];return t.importRuleTag=ae(t.target,n?n.styleTag:null,t.forceServer,!0)},ce+=1,this.id=ce,this.forceServer=i,this.target=i?null:n,this.tagMap={},this.deferred={},this.rehydratedNames={},this.ignoreRehydratedNames={},this.tags=[],this.capacity=1,this.clones=[]}return e.prototype.rehydrate=function(){if(!j||this.forceServer)return this;var e=[],t=[],n=!1,i=document.querySelectorAll("style["+_+'][data-styled-version="4.4.1"]'),r=i.length;if(!r)return this;for(var o=0;o<r;o+=1){var a=i[o];n||(n=!!a.getAttribute("data-styled-streamed"));for(var s,l=(a.getAttribute(_)||"").trim().split(se),c=l.length,u=0;u<c;u+=1)s=l[u],this.rehydratedNames[s]=!0;t.push.apply(t,A(a.textContent)),e.push(a)}var d=t.length;if(!d)return this;var p=this.makeTag(null);!function(e,t,n){for(var i=0,r=n.length;i<r;i+=1){var o=n[i],a=o.componentId,s=o.cssFromDOM,l=$(s);e.insertRules(a,l)}for(var c=0,u=t.length;c<u;c+=1){var d=t[c];d.parentNode&&d.parentNode.removeChild(d)}}(p,e,t),this.capacity=Math.max(1,le-d),this.tags.push(p);for(var m=0;m<d;m+=1)this.tagMap[t[m].componentId]=p;return this},e.reset=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];ue=new e(void 0,t).rehydrate()},e.prototype.clone=function(){var t=new e(this.target,this.forceServer);return this.clones.push(t),t.tags=this.tags.map((function(e){for(var n=e.getIds(),i=e.clone(),r=0;r<n.length;r+=1)t.tagMap[n[r]]=i;return i})),t.rehydratedNames=b({},this.rehydratedNames),t.deferred=b({},this.deferred),t},e.prototype.sealAllTags=function(){this.capacity=1,this.tags.forEach((function(e){e.sealed=!0}))},e.prototype.makeTag=function(e){var t=e?e.styleTag:null;return ae(this.target,t,this.forceServer,!1,this.getImportRuleTag)},e.prototype.getTagForId=function(e){var t=this.tagMap[e];if(void 0!==t&&!t.sealed)return t;var n=this.tags[this.tags.length-1];return this.capacity-=1,0===this.capacity&&(this.capacity=le,n=this.makeTag(n),this.tags.push(n)),this.tagMap[e]=n},e.prototype.hasId=function(e){return void 0!==this.tagMap[e]},e.prototype.hasNameForId=function(e,t){if(void 0===this.ignoreRehydratedNames[e]&&this.rehydratedNames[t])return!0;var n=this.tagMap[e];return void 0!==n&&n.hasNameForId(e,t)},e.prototype.deferredInject=function(e,t){if(void 0===this.tagMap[e]){for(var n=this.clones,i=0;i<n.length;i+=1)n[i].deferredInject(e,t);this.getTagForId(e).insertMarker(e),this.deferred[e]=t}},e.prototype.inject=function(e,t,n){for(var i=this.clones,r=0;r<i.length;r+=1)i[r].inject(e,t,n);var o=this.getTagForId(e);if(void 0!==this.deferred[e]){var a=this.deferred[e].concat(t);o.insertRules(e,a,n),this.deferred[e]=void 0}else o.insertRules(e,t,n)},e.prototype.remove=function(e){var t=this.tagMap[e];if(void 0!==t){for(var n=this.clones,i=0;i<n.length;i+=1)n[i].remove(e);t.removeRules(e),this.ignoreRehydratedNames[e]=!0,this.deferred[e]=void 0}},e.prototype.toHTML=function(){return this.tags.map((function(e){return e.toHTML()})).join("")},e.prototype.toReactElements=function(){var e=this.id;return this.tags.map((function(t,n){var i="sc-"+e+"-"+n;return Object(s.cloneElement)(t.toElement(),{key:i})}))},v(e,null,[{key:"master",get:function(){return ue||(ue=(new e).rehydrate())}},{key:"instance",get:function(){return e.master}}]),e}(),pe=function(){function e(t,n){var i=this;g(this,e),this.inject=function(e){e.hasNameForId(i.id,i.name)||e.inject(i.id,i.rules,i.name)},this.toString=function(){throw new P(12,String(i.name))},this.name=t,this.rules=n,this.id="sc-keyframes-"+t}return e.prototype.getName=function(){return this.name},e}(),me=/([A-Z])/g,he=/^ms-/;function fe(e){return e.replace(me,"-$1").toLowerCase().replace(he,"-ms-")}var ge=function(e){return null==e||!1===e||""===e},ve=function e(t,n){var i=[];return Object.keys(t).forEach((function(n){if(!ge(t[n])){if(w(t[n]))return i.push.apply(i,e(t[n],n)),i;if(x(t[n]))return i.push(fe(n)+":",t[n],";"),i;i.push(fe(n)+": "+(r=n,(null==(o=t[n])||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||r in c.a?String(o).trim():o+"px")+";"))}var r,o;return i})),n?[n+" {"].concat(i,["}"]):i};function be(e,t,n){if(Array.isArray(e)){for(var i,r=[],o=0,a=e.length;o<a;o+=1)null!==(i=be(e[o],t,n))&&(Array.isArray(i)?r.push.apply(r,i):r.push(i));return r}return ge(e)?null:T(e)?"."+e.styledComponentId:x(e)?"function"!=typeof(s=e)||s.prototype&&s.prototype.isReactComponent||!t?e:be(e(t),t,n):e instanceof pe?n?(e.inject(n),e.getName()):e:w(e)?ve(e):e.toString();var s}function ye(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return x(e)||w(e)?be(h(S,[e].concat(n))):be(h(e,n))}function ke(e){for(var t,n=0|e.length,i=0|n,r=0;n>=4;)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+((1540483477*(t>>>16)&65535)<<16),i=1540483477*(65535&i)+((1540483477*(i>>>16)&65535)<<16)^(t=1540483477*(65535&(t^=t>>>24))+((1540483477*(t>>>16)&65535)<<16)),n-=4,++r;switch(n){case 3:i^=(255&e.charCodeAt(r+2))<<16;case 2:i^=(255&e.charCodeAt(r+1))<<8;case 1:i=1540483477*(65535&(i^=255&e.charCodeAt(r)))+((1540483477*(i>>>16)&65535)<<16)}return((i=1540483477*(65535&(i^=i>>>13))+((1540483477*(i>>>16)&65535)<<16))^i>>>15)>>>0}var we=function(e){return String.fromCharCode(e+(e>25?39:97))};function Se(e){var t="",n=void 0;for(n=e;n>52;n=Math.floor(n/52))t=we(n%52)+t;return we(n%52)+t}function Ce(e,t){for(var n=0;n<e.length;n+=1){var i=e[n];if(Array.isArray(i)&&!Ce(i,t))return!1;if(x(i)&&!T(i))return!1}return!t.some((function(e){return x(e)||function(e){for(var t in e)if(x(e[t]))return!0;return!1}(e)}))}var xe,Ee=function(e){return Se(ke(e))},Te=function(){function e(t,n,i){g(this,e),this.rules=t,this.isStatic=Ce(t,n),this.componentId=i,de.master.hasId(i)||de.master.deferredInject(i,[])}return e.prototype.generateAndInjectStyles=function(e,t){var n=this.isStatic,i=this.componentId,r=this.lastClassName;if(j&&n&&"string"==typeof r&&t.hasNameForId(i,r))return r;var o=be(this.rules,e,t),a=Ee(this.componentId+o.join(""));return t.hasNameForId(i,a)||t.inject(this.componentId,H(o,"."+a,void 0,i),a),this.lastClassName=a,a},e.generateName=function(e){return Ee(e)},e}(),_e=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:C,i=!!n&&e.theme===n.theme,r=e.theme&&!i?e.theme:t||n.theme;return r},je=/[[\].#*$><+~=|^:(),"'`-]+/g,Oe=/(^-|-$)/g;function Re(e){return e.replace(je,"-").replace(Oe,"")}function Pe(e){return"string"==typeof e&&!0}var Ie={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDerivedStateFromProps:!0,propTypes:!0,type:!0},Ae={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Me=((xe={})[u.ForwardRef]={$$typeof:!0,render:!0},xe),Ne=Object.defineProperty,De=Object.getOwnPropertyNames,Le=Object.getOwnPropertySymbols,qe=void 0===Le?function(){return[]}:Le,Fe=Object.getOwnPropertyDescriptor,ze=Object.getPrototypeOf,Ue=Object.prototype,Be=Array.prototype;function Ve(e,t,n){if("string"!=typeof t){var i=ze(t);i&&i!==Ue&&Ve(e,i,n);for(var r=Be.concat(De(t),qe(t)),o=Me[e.$$typeof]||Ie,a=Me[t.$$typeof]||Ie,s=r.length,l=void 0,c=void 0;s--;)if(c=r[s],!(Ae[c]||n&&n[c]||a&&a[c]||o&&o[c])&&(l=Fe(t,c)))try{Ne(e,c,l)}catch(e){}return e}return e}var $e=Object(s.createContext)(),He=$e.Consumer,We=function(e){function t(n){g(this,t);var i=k(this,e.call(this,n));return i.getContext=Object(d.a)(i.getContext.bind(i)),i.renderInner=i.renderInner.bind(i),i}return y(t,e),t.prototype.render=function(){return this.props.children?l.a.createElement($e.Consumer,null,this.renderInner):null},t.prototype.renderInner=function(e){var t=this.getContext(this.props.theme,e);return l.a.createElement($e.Provider,{value:t},this.props.children)},t.prototype.getTheme=function(e,t){if(x(e))return e(t);if(null===e||Array.isArray(e)||"object"!==(void 0===e?"undefined":f(e)))throw new P(8);return b({},t,e)},t.prototype.getContext=function(e,t){return this.getTheme(e,t)},t}(s.Component),Ge=(function(){function e(){g(this,e),this.masterSheet=de.master,this.instance=this.masterSheet.clone(),this.sealed=!1}e.prototype.seal=function(){if(!this.sealed){var e=this.masterSheet.clones.indexOf(this.instance);this.masterSheet.clones.splice(e,1),this.sealed=!0}},e.prototype.collectStyles=function(e){if(this.sealed)throw new P(2);return l.a.createElement(Je,{sheet:this.instance},e)},e.prototype.getStyleTags=function(){return this.seal(),this.instance.toHTML()},e.prototype.getStyleElement=function(){return this.seal(),this.instance.toReactElements()},e.prototype.interleaveWithNodeStream=function(e){throw new P(3)}}(),Object(s.createContext)()),Qe=Ge.Consumer,Je=function(e){function t(n){g(this,t);var i=k(this,e.call(this,n));return i.getContext=Object(d.a)(i.getContext),i}return y(t,e),t.prototype.getContext=function(e,t){if(e)return e;if(t)return new de(t);throw new P(4)},t.prototype.render=function(){var e=this.props,t=e.children,n=e.sheet,i=e.target;return l.a.createElement(Ge.Provider,{value:this.getContext(n,i)},t)},t}(s.Component),Ke={};var Ye=function(e){function t(){g(this,t);var n=k(this,e.call(this));return n.attrs={},n.renderOuter=n.renderOuter.bind(n),n.renderInner=n.renderInner.bind(n),n}return y(t,e),t.prototype.render=function(){return l.a.createElement(Qe,null,this.renderOuter)},t.prototype.renderOuter=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:de.master;return this.styleSheet=e,this.props.forwardedComponent.componentStyle.isStatic?this.renderInner():l.a.createElement(He,null,this.renderInner)},t.prototype.renderInner=function(e){var t=this.props.forwardedComponent,n=t.componentStyle,i=t.defaultProps,r=(t.displayName,t.foldedComponentIds),o=t.styledComponentId,a=t.target,l=void 0;l=n.isStatic?this.generateAndInjectStyles(C,this.props):this.generateAndInjectStyles(_e(this.props,e,i)||C,this.props);var c=this.props.as||this.attrs.as||a,u=Pe(c),d={},m=b({},this.props,this.attrs),h=void 0;for(h in m)"forwardedComponent"!==h&&"as"!==h&&("forwardedRef"===h?d.ref=m[h]:"forwardedAs"===h?d.as=m[h]:u&&!Object(p.a)(h)||(d[h]=m[h]));return this.props.style&&this.attrs.style&&(d.style=b({},this.attrs.style,this.props.style)),d.className=Array.prototype.concat(r,o,l!==o?l:null,this.props.className,this.attrs.className).filter(Boolean).join(" "),Object(s.createElement)(c,d)},t.prototype.buildExecutionContext=function(e,t,n){var i=this,r=b({},t,{theme:e});return n.length?(this.attrs={},n.forEach((function(e){var t,n=e,o=!1,a=void 0,s=void 0;for(s in x(n)&&(n=n(r),o=!0),n)a=n[s],o||!x(a)||(t=a)&&t.prototype&&t.prototype.isReactComponent||T(a)||(a=a(r)),i.attrs[s]=a,r[s]=a})),r):r},t.prototype.generateAndInjectStyles=function(e,t){var n=t.forwardedComponent,i=n.attrs,r=n.componentStyle;n.warnTooManyClasses;return r.isStatic&&!i.length?r.generateAndInjectStyles(C,this.styleSheet):r.generateAndInjectStyles(this.buildExecutionContext(e,t,i),this.styleSheet)},t}(s.Component);function Xe(e,t,n){var i=T(e),r=!Pe(e),o=t.displayName,a=void 0===o?function(e){return Pe(e)?"styled."+e:"Styled("+E(e)+")"}(e):o,s=t.componentId,c=void 0===s?function(e,t,n){var i="string"!=typeof t?"sc":Re(t),r=(Ke[i]||0)+1;Ke[i]=r;var o=i+"-"+e.generateName(i+r);return n?n+"-"+o:o}(Te,t.displayName,t.parentComponentId):s,u=t.ParentComponent,d=void 0===u?Ye:u,p=t.attrs,h=void 0===p?S:p,f=t.displayName&&t.componentId?Re(t.displayName)+"-"+t.componentId:t.componentId||c,g=i&&e.attrs?Array.prototype.concat(e.attrs,h).filter(Boolean):h,v=new Te(i?e.componentStyle.rules.concat(n):n,g,f),y=void 0,k=function(e,t){return l.a.createElement(d,b({},e,{forwardedComponent:y,forwardedRef:t}))};return k.displayName=a,(y=l.a.forwardRef(k)).displayName=a,y.attrs=g,y.componentStyle=v,y.foldedComponentIds=i?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):S,y.styledComponentId=f,y.target=i?e.target:e,y.withComponent=function(e){var i=t.componentId,r=function(e,t){var n={};for(var i in e)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}(t,["componentId"]),o=i&&i+"-"+(Pe(e)?e:Re(E(e)));return Xe(e,b({},r,{attrs:g,componentId:o,ParentComponent:d}),n)},Object.defineProperty(y,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=i?Object(m.a)(e.defaultProps,t):t}}),y.toString=function(){return"."+y.styledComponentId},r&&Ve(y,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,styledComponentId:!0,target:!0,withComponent:!0}),y}var Ze=function(e){return function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:C;if(!Object(u.isValidElementType)(n))throw new P(1,String(n));var r=function(){return t(n,i,ye.apply(void 0,arguments))};return r.withConfig=function(r){return e(t,n,b({},i,r))},r.attrs=function(r){return e(t,n,b({},i,{attrs:Array.prototype.concat(i.attrs,r).filter(Boolean)}))},r}(Xe,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){Ze[e]=Ze(e)}));var et=function(){function e(t,n){g(this,e),this.rules=t,this.componentId=n,this.isStatic=Ce(t,S),de.master.hasId(n)||de.master.deferredInject(n,[])}return e.prototype.createStyles=function(e,t){var n=H(be(this.rules,e,t),"");t.inject(this.componentId,n)},e.prototype.removeStyles=function(e){var t=this.componentId;e.hasId(t)&&e.remove(t)},e.prototype.renderStyles=function(e,t){this.removeStyles(t),this.createStyles(e,t)},e}();function tt(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];var r=ye.apply(void 0,[e].concat(n)),o="sc-global-"+ke(JSON.stringify(r)),a=new et(r,o),s=function(e){function t(n){g(this,t);var i=k(this,e.call(this,n)),r=i.constructor,o=r.globalStyle,a=r.styledComponentId;return j&&(window.scCGSHMRCache[a]=(window.scCGSHMRCache[a]||0)+1),i.state={globalStyle:o,styledComponentId:a},i}return y(t,e),t.prototype.componentWillUnmount=function(){window.scCGSHMRCache[this.state.styledComponentId]&&(window.scCGSHMRCache[this.state.styledComponentId]-=1),0===window.scCGSHMRCache[this.state.styledComponentId]&&this.state.globalStyle.removeStyles(this.styleSheet)},t.prototype.render=function(){var e=this;return l.a.createElement(Qe,null,(function(t){e.styleSheet=t||de.master;var n=e.state.globalStyle;return n.isStatic?(n.renderStyles(R,e.styleSheet),null):l.a.createElement(He,null,(function(t){var i=e.constructor.defaultProps,r=b({},e.props);return void 0!==t&&(r.theme=_e(e.props,t,i)),n.renderStyles(r,e.styleSheet),null}))}))},t}(l.a.Component);return s.globalStyle=a,s.styledComponentId=o,s}j&&(window.scCGSHMRCache={});var nt=function(e){return e.replace(/\s|\\n/g,"")};function it(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];var r=ye.apply(void 0,[e].concat(n)),o=Se(ke(nt(JSON.stringify(r))));return new pe(o,H(r,o,"@keyframes"))}t.d=Ze}).call(this,n(14))},function(e,t,n){"use strict";(function(e,i){n.d(t,"a",(function(){return po})),n.d(t,"b",(function(){return X})),n.d(t,"c",(function(){return vi})),n.d(t,"d",(function(){return oi})),n.d(t,"e",(function(){return Ls})),n.d(t,"f",(function(){return jr})),n.d(t,"g",(function(){return qs}));var r=n(1),o=n(8),a=n(5),s=n(6),l=n.n(s),c=n(13),u=n(4);const d=Math.pow(2,32),p=(e,t)=>(e%t+t)%t;class m extends a.EventEmitter{constructor(){super(),this.allowResume=!0,this.lastAck=0,this.handled=0,this.unacked=[],this.inboundStarted=!1,this.outboundStarted=!1,this.id=void 0,this.jid=void 0,this.allowResume=!0,this.started=!1,this.cacheHandler=()=>{},this._reset()}get started(){return this.outboundStarted&&this.inboundStarted}set started(e){e||(this.outboundStarted=!1,this.inboundStarted=!1)}get resumable(){return this.started&&this.allowResume}load(e){var t;this.id=e.id,this.allowResume=null===(t=e.allowResume)||void 0===t||t,this.handled=e.handled,this.lastAck=e.lastAck,this.unacked=e.unacked,this.emit("prebound",e.jid)}cache(e){this.cacheHandler=e}bind(e){return Object(r.a)(this,void 0,void 0,(function*(){this.jid=e,yield this._cache()}))}enable(){return Object(r.a)(this,void 0,void 0,(function*(){this.emit("send",{allowResumption:this.allowResume,type:"enable"})}))}resume(){return Object(r.a)(this,void 0,void 0,(function*(){this.emit("send",{handled:this.handled,previousSession:this.id,type:"resume"})}))}enabled(e){return Object(r.a)(this,void 0,void 0,(function*(){this.id=e.id,this.handled=0,this.inboundStarted=!0,yield this._cache()}))}resumed(e){return Object(r.a)(this,void 0,void 0,(function*(){this.id=e.previousSession,this.inboundStarted=!0,yield this.process(e,!0),yield this._cache()}))}failed(e){return Object(r.a)(this,void 0,void 0,(function*(){yield this.process(e);for(const[e,t]of this.unacked)this.emit("failed",{kind:e,stanza:t});this._reset(),yield this._cache()}))}ack(){this.emit("send",{handled:this.handled,type:"ack"})}request(){this.emit("send",{type:"request"})}process(e,t=!1){return Object(r.a)(this,void 0,void 0,(function*(){if(void 0===e.handled)return;const n=p(e.handled-this.lastAck,d);for(let e=0;e<n&&this.unacked.length>0;e++){const[e,t]=this.unacked.shift();this.emit("acked",{kind:e,stanza:t})}if(this.lastAck=e.handled,t){const e=this.unacked;if(this.unacked=[],e.length){this.emit("begin-resend");for(const[t,n]of e)this.emit("resend",{kind:t,stanza:n});this.emit("end-resend")}}yield this._cache()}))}track(e,t){return Object(r.a)(this,void 0,void 0,(function*(){return"sm"!==e||"enable"!==t.type&&"resume"!==t.type?!!this.outboundStarted&&(("message"===e||"presence"===e||"iq"===e)&&(this.unacked.push([e,t]),yield this._cache(),!0)):(this.handled=0,this.outboundStarted=!0,yield this._cache(),!1)}))}handle(){return Object(r.a)(this,void 0,void 0,(function*(){this.inboundStarted&&(this.handled=p(this.handled+1,d),yield this._cache())}))}hibernate(){return Object(r.a)(this,void 0,void 0,(function*(){if(!this.resumable)return this.shutdown();for(const[e,t]of this.unacked)this.emit("hibernated",{kind:e,stanza:t})}))}shutdown(){return Object(r.a)(this,void 0,void 0,(function*(){return this.failed({type:"failed"})}))}_cache(){return Object(r.a)(this,void 0,void 0,(function*(){try{yield this.cacheHandler({allowResume:this.allowResume,handled:this.handled,id:this.id,jid:this.jid,lastAck:this.lastAck,unacked:this.unacked})}catch(e){console.error("Failed to cache stream state",e)}}))}_reset(){this.id="",this.inboundStarted=!1,this.outboundStarted=!1,this.lastAck=0,this.handled=0,this.unacked=[]}}const h={"A.1":{r:"hk:if|le:lf|nf:nv|qg:qv|rg:rj|rm:rp|rr:rt|rv:s3|vn:vv|17m:17n|17q:17v|18g:19g|1an:1ao|1cb:1cg|1e5:1ef|1fb:1ff|1fl:1gb|1gd:1gq|1gs:1gu|1hr:1hv|1im:1iv|1ne:1nf|1pd:1pf|1qb:1rv|1ti:280|29q:29r|2ae:2af|2al:2an|2bh:2c0|2cd:2ce|2ch:2ci|2dj:2dl|2dq:2dr|2e5:2e6|2e9:2ea|2ee:2em|2eo:2er|2f4:2f5|2fr:2g1|2g3:2g4|2gb:2ge|2gh:2gi|2hq:2hr|2i3:2i6|2i9:2ia|2ie:2io|2iv:2j5|2jl:2k0|2lq:2lr|2me:2mf|2mh:2mv|2n1:2n5|2ng:2o0|2od:2oe|2oh:2oi|2pk:2pl|2pq:2pr|2q4:2q6|2q9:2qa|2qe:2ql|2qo:2qr|2r2:2r5|2rh:2s1|2sb:2sd|2sm:2so|2t0:2t2|2t5:2t7|2tb:2td|2tq:2tt|2u3:2u5|2ue:2um|2uo:2v6|2vj:300|31q:31t|32e:32k|32n:32v|332:335|33g:341|35q:35t|36e:36k|36n:36t|372:375|37g:381|39q:39t|3a4:3a5|3ae:3am|3ao:3av|3b2:3b5|3bg:3c1|3cn:3cp|3du:3dv|3e7:3e9|3eb:3ee|3f0:3fh|3fl:3g0|3hr:3hu|3is:3k0|3k5:3k6|3kb:3kc|3ke:3kj|3l8:3l9|3lu:3lv|3me:3mf|3mq:3mr|3mu:3nv|3rb:3rg|3sc:3sf|3ud:3ue|3ug:3vv|41j:41l|41q:41v|42q:44v|466:46f|47p:47q|47s:47v|4aq:4au|4d3:4d7|4fq:4fv|4ie:4if|4iu:4iv|4ke:4kf|4lm:4ln|4m6:4m7|4om:4on|4qr:4r0|4rt:4sv|4vl:500|5jn:5jv|5kt:5kv|5nh:5nv|5ol:5ov|5pn:5pv|5qk:5qv|5rk:5rv|5ut:5uv|5va:5vv|60q:60v|63o:63v|65a:7fv|7ks:7kv|7nq:7nv|7om:7on|7ou:7ov|7q6:7q7|7qe:7qf|7ru:7rv|7uk:7ul|7vg:7vh|82j:82m|82o:82u|834:839|83i:83j|84f:84v|85i:86f|87b:87v|89r:89s|8ac:8ai|8c4:8cf|8uf:8vv|917:91v|92b:92v|9gk:9gl|9ju:9jv|9ka:9o0|9oa:9ob|9qj:9ql|9qv:9r0|9sl:9sn|9tv:9uf|9vc:9vf|ao0:bjv|bnk:bnv|bum:bvf|bvs:bvv|c4n:c4o|c80:c84|c9d:c9g|cdo:cff|cgt:cgv|ci4:cig|cjs:cju|cmc:cmf|crn:crq|cuu:cuv|jdm:jfv|17t6:17vv|194d:194f|1967:1avv|1lt4:1lvv|1uhe:1uhf|1ujb:1unv|1uo7:1uoi|1uoo:1uos|1uti:1uui|1va0:1vaf|1vcg:1vch|1ve8:1vef|1vft:1vfv|1vgg:1vgv|1vh4:1vhf|1vi7:1vi8|1vjc:1vjf|1vnt:1vnu|1vtv:1vu1|1vu8:1vu9|1vug:1vuh|1vuo:1vup|1vut:1vuv|1vvf:1vvo|2000:20nv|20p4:20pf|20qb:20vv|2116:2117|212e:3jvv|3k7m:3k7v|3k97:3k99|3keu:3kvv|3l50:3l51|3l53:3l54|3l57:3l58|3l8b:3l8c|3la7:3la9|3ll4:3ll7|3lua:3lud|3m00:3vvt|59mn:5tvv|5ugu:5vvt|6000:7vvt|8000:9vvt|a000:bvvt|c000:dvvt|e000:fvvt|g000:hvvt|i000:jvvt|k000:lvvt|m000:nvvt|o000:pvvt|q000:rvvt|s002:s00v|s040:tvvt",s:"9p8|9qc|9qe|9qn|9tg|147|bkq|3l2l|3l4t|3l5d|3l5q|3l5s|3l61|3l64|3l86|3l8l|3l8t|3l9q|3l9v|3la5|3lah|16f|c20|ccf|cnv|cvv|1b0|1c8|1d2|1dq|1h0|1nv|1oe|284|2c4|2d9|2dh|2dt|2eu|2h9|2hh|2hk|2hn|2ht|2it|2k4|2kc|2ke|2ki|2l9|2lh|2lk|2m6|2ma|2o4|2p9|2ph|2qu|2s4|2sh|2sr|2st|2tm|2u9|304|30d|30h|319|31k|325|329|344|34d|34h|359|35k|365|369|36v|384|38d|38h|399|3a9|3c4|3di|3ds|3el|3en|3k3|3k9|3ko|3l0|3l4|3l6|3lc|3lq|3m5|3m7|3q8|3so|3tt|412|418|41b|4g7|4i7|4i9|4in|4ip|4k7|4k9|4lf|4lh|4lv|4m1|4mf|4mn|4nf|4of|4oh|4ov|4q7|h1|5od|5rd|5rh|60f|1upn|1upt|1upv|1uq2|1uq5|1vij|1vj7|1vjl|1vo0|1vv7|20ov|7qo|7qq|7qs|7qu|7tl|7u5|7us|7vl|7vv|sb|sd|s000|t2|97v|uf|9go|9o5"},"B.1":{r:"60b:60d|80b:80d|1vg0:1vgf",s:"5d|606|1vnv|830|qf"},"B.2":{m:"5l:ts|6v:3j;3j|9g:39;o7|a9:ls;3e|bv:3j|fg:3a;oc|q5:tp|rq:10;tp|sg:tp;o8;o1|tg:u5;o8;o1|u2:u3|ug:ti|uh:to|ui:u5|uj:ud|uk:ub|ul:u6|um:u0|vg:tq|vh:u1|vi:u3|vl:tl|1c7:1b5;1c2|7km:38;ph|7kn:3k;o8|7ko:3n;oa|7kp:3p;oa|7kq:31;lu|7kr:7j1|7qg:u5;oj|7qi:u5;oj;o0|7qk:u5;oj;o1|7qm:u5;oj;q2|7s0:7o0;tp|7s1:7o1;tp|7s2:7o2;tp|7s3:7o3;tp|7s4:7o4;tp|7s5:7o5;tp|7s6:7o6;tp|7s7:7o7;tp|7s8:7o0;tp|7s9:7o1;tp|7sa:7o2;tp|7sb:7o3;tp|7sc:7o4;tp|7sd:7o5;tp|7se:7o6;tp|7sf:7o7;tp|7sg:7p0;tp|7sh:7p1;tp|7si:7p2;tp|7sj:7p3;tp|7sk:7p4;tp|7sl:7p5;tp|7sm:7p6;tp|7sn:7p7;tp|7so:7p0;tp|7sp:7p1;tp|7sq:7p2;tp|7sr:7p3;tp|7ss:7p4;tp|7st:7p5;tp|7su:7p6;tp|7sv:7p7;tp|7t0:7r0;tp|7t1:7r1;tp|7t2:7r2;tp|7t3:7r3;tp|7t4:7r4;tp|7t5:7r5;tp|7t6:7r6;tp|7t7:7r7;tp|7t8:7r0;tp|7t9:7r1;tp|7ta:7r2;tp|7tb:7r3;tp|7tc:7r4;tp|7td:7r5;tp|7te:7r6;tp|7tf:7r7;tp|7ti:7rg;tp|7tj:th;tp|7tk:tc;tp|7tm:th;q2|7tn:th;q2;tp|7ts:th;tp|7tu:tp|7u2:7rk;tp|7u3:tn;tp|7u4:te;tp|7u6:tn;q2|7u7:tn;q2;tp|7uc:tn;tp|7ui:tp;o8;o0|7uj:tp;o8;o1|7um:tp;q2|7un:tp;o8;q2|7v2:u5;o8;o0|7v3:u5;o8;o1|7v4:u1;oj|7v6:u5;q2|7v7:u5;o8;q2|7vi:7rs;tp|7vj:u9;tp|7vk:ue;tp|7vm:u9;q2|7vn:u9;q2;tp|7vs:u9;tp|858:3i;3j|882:33|883:5g;33|887:ir|889:5g;36|88b:38|88c:38|88d:38|88g:39|88h:39|88i:3c|88l:3e|88m:3e;3f|88p:3g|88q:3h|88r:3i|88s:3i|88t:3i|890:3j;3d|891:3k;35;3c|892:3k;3d|894:3q|898:3q|89c:32|89d:33|89g:35|89h:36|89j:3d|89u:tj|89v:u0|8a5:34|crh:38;3g;31|crj:31;3l|crl:3f;3m|cs0:3g;31|cs1:3e;31|cs2:ts;31|cs3:3d;31|cs4:3b;31|cs5:3b;32|cs6:3d;32|cs7:37;32|csa:3g;36|csb:3e;36|csc:ts;36|csg:38;3q|csh:3b;38;3q|csi:3d;38;3q|csj:37;38;3q|csk:3k;38;3q|ct9:3g;31|cta:3b;3g;31|ctb:3d;3g;31|ctc:37;3g;31|ctk:3g;3m|ctl:3e;3m|ctm:ts;3m|ctn:3d;3m|cto:3b;3m|ctp:3d;3m|ctq:3g;3n|ctr:3e;3n|cts:ts;3n|ctt:3d;3n|ctu:3b;3n|ctv:3d;3n|cu0:3b;u9|cu1:3d;u9|cu3:32;3h|cu6:33;8gl;3b;37|cu7:33;3f;1e|cu8:34;32|cu9:37;3p|cub:38;3g|cud:3b;3b|cue:3b;3d|cun:3g;38|cup:3g;3g;3d|cuq:3g;3i|cus:3j;3m|cut:3n;32|1uo0:36;36|1uo1:36;39|1uo2:36;3c|1uo3:36;36;39|1uo4:36;36;3c|1uo5:3j;3k|1uo6:3j;3k|1uoj:1bk;1bm|1uok:1bk;1b5|1uol:1bk;1bb|1uom:1bu;1bm|1uon:1bk;1bd|3l00:31|3l01:32|3l02:33|3l03:34|3l04:35|3l05:36|3l06:37|3l07:38|3l08:39|3l09:3a|3l0a:3b|3l0b:3c|3l0c:3d|3l0d:3e|3l0e:3f|3l0f:3g|3l0g:3h|3l0h:3i|3l0i:3j|3l0j:3k|3l0k:3l|3l0l:3m|3l0m:3n|3l0n:3o|3l0o:3p|3l0p:3q|3l1k:31|3l1l:32|3l1m:33|3l1n:34|3l1o:35|3l1p:36|3l1q:37|3l1r:38|3l1s:39|3l1t:3a|3l1u:3b|3l1v:3c|3l20:3d|3l21:3e|3l22:3f|3l23:3g|3l24:3h|3l25:3i|3l26:3j|3l27:3k|3l28:3l|3l29:3m|3l2a:3n|3l2b:3o|3l2c:3p|3l2d:3q|3l38:31|3l39:32|3l3a:33|3l3b:34|3l3c:35|3l3d:36|3l3e:37|3l3f:38|3l3g:39|3l3h:3a|3l3i:3b|3l3j:3c|3l3k:3d|3l3l:3e|3l3m:3f|3l3n:3g|3l3o:3h|3l3p:3i|3l3q:3j|3l3r:3k|3l3s:3l|3l3t:3m|3l3u:3n|3l3v:3o|3l40:3p|3l41:3q|3l4s:31|3l4u:33|3l4v:34|3l52:37|3l55:3a|3l56:3b|3l59:3e|3l5a:3f|3l5b:3g|3l5c:3h|3l5e:3j|3l5f:3k|3l5g:3l|3l5h:3m|3l5i:3n|3l5j:3o|3l5k:3p|3l5l:3q|3l6g:31|3l6h:32|3l6i:33|3l6j:34|3l6k:35|3l6l:36|3l6m:37|3l6n:38|3l6o:39|3l6p:3a|3l6q:3b|3l6r:3c|3l6s:3d|3l6t:3e|3l6u:3f|3l6v:3g|3l70:3h|3l71:3i|3l72:3j|3l73:3k|3l74:3l|3l75:3m|3l76:3n|3l77:3o|3l78:3p|3l79:3q|3l84:31|3l85:32|3l87:34|3l88:35|3l89:36|3l8a:37|3l8d:3a|3l8e:3b|3l8f:3c|3l8g:3d|3l8h:3e|3l8i:3f|3l8j:3g|3l8k:3h|3l8m:3j|3l8n:3k|3l8o:3l|3l8p:3m|3l8q:3n|3l8r:3o|3l8s:3p|3l9o:31|3l9p:32|3l9r:34|3l9s:35|3l9t:36|3l9u:37|3la0:39|3la1:3a|3la2:3b|3la3:3c|3la4:3d|3la6:3f|3laa:3j|3lab:3k|3lac:3l|3lad:3m|3lae:3n|3laf:3o|3lag:3p|3lbc:31|3lbd:32|3lbe:33|3lbf:34|3lbg:35|3lbh:36|3lbi:37|3lbj:38|3lbk:39|3lbl:3a|3lbm:3b|3lbn:3c|3lbo:3d|3lbp:3e|3lbq:3f|3lbr:3g|3lbs:3h|3lbt:3i|3lbu:3j|3lbv:3k|3lc0:3l|3lc1:3m|3lc2:3n|3lc3:3o|3lc4:3p|3lc5:3q|3ld0:31|3ld1:32|3ld2:33|3ld3:34|3ld4:35|3ld5:36|3ld6:37|3ld7:38|3ld8:39|3ld9:3a|3lda:3b|3ldb:3c|3ldc:3d|3ldd:3e|3lde:3f|3ldf:3g|3ldg:3h|3ldh:3i|3ldi:3j|3ldj:3k|3ldk:3l|3ldl:3m|3ldm:3n|3ldn:3o|3ldo:3p|3ldp:3q|3lek:31|3lel:32|3lem:33|3len:34|3leo:35|3lep:36|3leq:37|3ler:38|3les:39|3let:3a|3leu:3b|3lev:3c|3lf0:3d|3lf1:3e|3lf2:3f|3lf3:3g|3lf4:3h|3lf5:3i|3lf6:3j|3lf7:3k|3lf8:3l|3lf9:3m|3lfa:3n|3lfb:3o|3lfc:3p|3lfd:3q|3lg8:31|3lg9:32|3lga:33|3lgb:34|3lgc:35|3lgd:36|3lge:37|3lgf:38|3lgg:39|3lgh:3a|3lgi:3b|3lgj:3c|3lgk:3d|3lgl:3e|3lgm:3f|3lgn:3g|3lgo:3h|3lgp:3i|3lgq:3j|3lgr:3k|3lgs:3l|3lgt:3m|3lgu:3n|3lgv:3o|3lh0:3p|3lh1:3q|3lhs:31|3lht:32|3lhu:33|3lhv:34|3li0:35|3li1:36|3li2:37|3li3:38|3li4:39|3li5:3a|3li6:3b|3li7:3c|3li8:3d|3li9:3e|3lia:3f|3lib:3g|3lic:3h|3lid:3i|3lie:3j|3lif:3k|3lig:3l|3lih:3m|3lii:3n|3lij:3o|3lik:3p|3lil:3q|3ljg:31|3ljh:32|3lji:33|3ljj:34|3ljk:35|3ljl:36|3ljm:37|3ljn:38|3ljo:39|3ljp:3a|3ljq:3b|3ljr:3c|3ljs:3d|3ljt:3e|3lju:3f|3ljv:3g|3lk0:3h|3lk1:3i|3lk2:3j|3lk3:3k|3lk4:3l|3lk5:3m|3lk6:3n|3lk7:3o|3lk8:3p|3lk9:3q|3ll8:th|3ll9:ti|3lla:tj|3llb:tk|3llc:tl|3lld:tm|3lle:tn|3llf:to|3llg:tp|3llh:tq|3lli:tr|3llj:ts|3llk:tt|3lll:tu|3llm:tv|3lln:u0|3llo:u1|3llp:to|3llq:u3|3llr:u4|3lls:u5|3llt:u6|3llu:u7|3llv:u8|3lm0:u9|3lmj:u3|3ln2:th|3ln3:ti|3ln4:tj|3ln5:tk|3ln6:tl|3ln7:tm|3ln8:tn|3ln9:to|3lna:tp|3lnb:tq|3lnc:tr|3lnd:ts|3lne:tt|3lnf:tu|3lng:tv|3lnh:u0|3lni:u1|3lnj:to|3lnk:u3|3lnl:u4|3lnm:u5|3lnn:u6|3lno:u7|3lnp:u8|3lnq:u9|3lod:u3|3los:th|3lot:ti|3lou:tj|3lov:tk|3lp0:tl|3lp1:tm|3lp2:tn|3lp3:to|3lp4:tp|3lp5:tq|3lp6:tr|3lp7:ts|3lp8:tt|3lp9:tu|3lpa:tv|3lpb:u0|3lpc:u1|3lpd:to|3lpe:u3|3lpf:u4|3lpg:u5|3lph:u6|3lpi:u7|3lpj:u8|3lpk:u9|3lq7:u3|3lqm:th|3lqn:ti|3lqo:tj|3lqp:tk|3lqq:tl|3lqr:tm|3lqs:tn|3lqt:to|3lqu:tp|3lqv:tq|3lr0:tr|3lr1:ts|3lr2:tt|3lr3:tu|3lr4:tv|3lr5:u0|3lr6:u1|3lr7:to|3lr8:u3|3lr9:u4|3lra:u5|3lrb:u6|3lrc:u7|3lrd:u8|3lre:u9|3ls1:u3|3lsg:th|3lsh:ti|3lsi:tj|3lsj:tk|3lsk:tl|3lsl:tm|3lsm:tn|3lsn:to|3lso:tp|3lsp:tq|3lsq:tr|3lsr:ts|3lss:tt|3lst:tu|3lsu:tv|3lsv:u0|3lt0:u1|3lt1:to|3lt2:u3|3lt3:u4|3lt4:u5|3lt5:u6|3lt6:u7|3lt7:u8|3lt8:u9|3ltr:u3",r:"23:2c|2i:2k|2m:2q|60:6m|6o:6u|bo:bp|c1:c2|c6:c7|c9:cb|ce:ch|cj:ck|cm:co|cs:ct|cv:d0|d6:d7|de:df|dh:dj|dn:do|e4:e5|e7:e8|ea:eb|fh:fi|fm:fo|s8:sa|se:sf|sh:t1|t3:tb|100:11f|19h:1am|7o8:7of|7oo:7ot|7p8:7pf|7po:7pv|7q8:7qd|7r8:7rf|7to:7tr|7u8:7ub|7uo:7ur|7v8:7vc|7vo:7vr|89a:89b|8b0:8bf|95m:96f|1vp1:1vpq|2100:2115",s:"v8|va|vc|ve|vk|130|132|134|136|138|13a|13c|13e|13g|13i|13k|13m|13o|13q|13s|13u|140|14a|14c|14e|14g|14i|14k|14m|14o|14q|14s|14u|150|152|154|156|158|15a|15c|15e|15g|15i|15k|15m|15o|15q|15s|15u|161|163|165|167|169|16b|16d|16g|16i|16k|16m|16o|16q|16s|16u|170|172|174|176|178|17a|17c|17e|17g|17i|17k|17o|180|182|184|186|188|18a|18c|18e|80|82|84|86|88|8a|8c|8e|8g|8i|8k|8m|8o|8q|8s|8u|90|92|94|96|98|9a|9c|9e|9i|9k|9m|9p|9r|9t|9v|a1|a3|a5|a7|aa|ac|ae|ag|ai|ak|am|ao|aq|as|au|b0|b2|b4|b6|b8|ba|bc|be|bg|bi|bk|bm|br|bt|c4|d2|d4|d9|dc|dl|ds|ed|ef|eh|ej|el|en|ep|er|eu|f0|f2|f4|f6|f8|fa|fc|fe|fk|fq|fs|fu|g0|g2|g4|g6|g8|ga|gc|ge|gg|gi|gk|gm|go|gq|gs|gu|h0|h2|h4|h6|h8|ha|hc|he|hg|hi|21|22|7g0|7g2|7g4|7g6|7g8|7ga|7gc|7ge|7gg|7gi|2d|7gk|7gm|7go|7gq|7gs|7gu|7h0|7h2|7h4|7h6|7h8|7ha|7hc|7he|7hg|7hi|7hk|7hm|7ho|7hq|7hs|7hu|7i0|7i2|7i4|7i6|7i8|7ia|7ic|7ie|7ig|7ii|7ik|7im|7io|7iq|7is|7iu|7j0|7j2|7j4|7j6|7j8|7ja|7jc|7je|7jg|7ji|7jk|7jm|2e|7jo|7jq|7js|7ju|7k0|7k2|7k4|7k6|7k8|7ka|7kc|7ke|7kg|7ki|7kk|7l0|7l2|7l4|7l6|7l8|7la|7lc|7le|7lg|7li|7lk|7lm|7lo|7lq|7ls|7lu|7m0|7m2|7m4|7m6|7m8|7ma|7mc|7me|7mg|7mi|7mk|7mm|7mo|7mq|2f|7ms|7mu|7n0|7n2|7n4|7n6|7n8|7na|7nc|7ne|7ng|7ni|7nk|7nm|7no|2g|7qp|7qr|7qt|7qv|2h|896|2l|s6|sc|uo|uq|us|uu|v0|v2|v4|v6"},"B.3":{m:"5l:ts|6v:3j;3j|9g:39;o7|a9:ls;3e|bv:3j|fg:3a;oc|q5:tp|sg:tp;o8;o1|tg:u5;o8;o1|u2:u3|ug:ti|uh:to|ul:u6|um:u0|vg:tq|vh:u1|vi:u3|vl:tl|1c7:1b5;1c2|7km:38;ph|7kn:3k;o8|7ko:3n;oa|7kp:3p;oa|7kq:31;lu|7kr:7j1|7qg:u5;oj|7qi:u5;oj;o0|7qk:u5;oj;o1|7qm:u5;oj;q2|7s0:7o0;tp|7s1:7o1;tp|7s2:7o2;tp|7s3:7o3;tp|7s4:7o4;tp|7s5:7o5;tp|7s6:7o6;tp|7s7:7o7;tp|7s8:7o0;tp|7s9:7o1;tp|7sa:7o2;tp|7sb:7o3;tp|7sc:7o4;tp|7sd:7o5;tp|7se:7o6;tp|7sf:7o7;tp|7sg:7p0;tp|7sh:7p1;tp|7si:7p2;tp|7sj:7p3;tp|7sk:7p4;tp|7sl:7p5;tp|7sm:7p6;tp|7sn:7p7;tp|7so:7p0;tp|7sp:7p1;tp|7sq:7p2;tp|7sr:7p3;tp|7ss:7p4;tp|7st:7p5;tp|7su:7p6;tp|7sv:7p7;tp|7t0:7r0;tp|7t1:7r1;tp|7t2:7r2;tp|7t3:7r3;tp|7t4:7r4;tp|7t5:7r5;tp|7t6:7r6;tp|7t7:7r7;tp|7t8:7r0;tp|7t9:7r1;tp|7ta:7r2;tp|7tb:7r3;tp|7tc:7r4;tp|7td:7r5;tp|7te:7r6;tp|7tf:7r7;tp|7ti:7rg;tp|7tj:th;tp|7tk:tc;tp|7tm:th;q2|7tn:th;q2;tp|7ts:th;tp|7tu:tp|7u2:7rk;tp|7u3:tn;tp|7u4:te;tp|7u6:tn;q2|7u7:tn;q2;tp|7uc:tn;tp|7ui:tp;o8;o0|7uj:tp;o8;o1|7um:tp;q2|7un:tp;o8;q2|7v2:u5;o8;o0|7v3:u5;o8;o1|7v4:u1;oj|7v6:u5;q2|7v7:u5;o8;q2|7vi:7rs;tp|7vj:u9;tp|7vk:ue;tp|7vm:u9;q2|7vn:u9;q2;tp|7vs:u9;tp|1uo0:36;36|1uo1:36;39|1uo2:36;3c|1uo3:36;36;39|1uo4:36;36;3c|1uo5:3j;3k|1uo6:3j;3k|1uoj:1bk;1bm|1uok:1bk;1b5|1uol:1bk;1bb|1uom:1bu;1bm|1uon:1bk;1bd",r:"23:2c|2i:2k|2m:2q|60:6m|6o:6u|bo:bp|c1:c2|c6:c7|c9:cb|ce:ch|cj:ck|cm:co|cs:ct|cv:d0|d6:d7|de:df|dh:dj|dn:do|e4:e5|e7:e8|ea:eb|fh:fi|fm:fo|s8:sa|se:sf|sh:t1|t3:tb|100:11f|19h:1am|7o8:7of|7oo:7ot|7p8:7pf|7po:7pv|7q8:7qd|7r8:7rf|7to:7tr|7u8:7ub|7uo:7ur|7v8:7vc|7vo:7vr|89a:89b|8b0:8bf|95m:96f|1vp1:1vpq|2100:2115",s:"v8|va|vc|ve|vk|130|132|134|136|138|13a|13c|13e|13g|13i|13k|13m|13o|13q|13s|13u|140|14a|14c|14e|14g|14i|14k|14m|14o|14q|14s|14u|150|152|154|156|158|15a|15c|15e|15g|15i|15k|15m|15o|15q|15s|15u|161|163|165|167|169|16b|16d|16g|16i|16k|16m|16o|16q|16s|16u|170|172|174|176|178|17a|17c|17e|17g|17i|17k|17o|180|182|184|186|188|18a|18c|18e|80|82|84|86|88|8a|8c|8e|8g|8i|8k|8m|8o|8q|8s|8u|90|92|94|96|98|9a|9c|9e|9i|9k|9m|9p|9r|9t|9v|a1|a3|a5|a7|aa|ac|ae|ag|ai|ak|am|ao|aq|as|au|b0|b2|b4|b6|b8|ba|bc|be|bg|bi|bk|bm|br|bt|c4|d2|d4|d9|dc|dl|ds|ed|ef|eh|ej|el|en|ep|er|eu|f0|f2|f4|f6|f8|fa|fc|fe|fk|fq|fs|fu|g0|g2|g4|g6|g8|ga|gc|ge|gg|gi|gk|gm|go|gq|gs|gu|h0|h2|h4|h6|h8|ha|hc|he|hg|hi|21|22|7g0|7g2|7g4|7g6|7g8|7ga|7gc|7ge|7gg|7gi|2d|7gk|7gm|7go|7gq|7gs|7gu|7h0|7h2|7h4|7h6|7h8|7ha|7hc|7he|7hg|7hi|7hk|7hm|7ho|7hq|7hs|7hu|7i0|7i2|7i4|7i6|7i8|7ia|7ic|7ie|7ig|7ii|7ik|7im|7io|7iq|7is|7iu|7j0|7j2|7j4|7j6|7j8|7ja|7jc|7je|7jg|7ji|7jk|7jm|2e|7jo|7jq|7js|7ju|7k0|7k2|7k4|7k6|7k8|7ka|7kc|7ke|7kg|7ki|7kk|7l0|7l2|7l4|7l6|7l8|7la|7lc|7le|7lg|7li|7lk|7lm|7lo|7lq|7ls|7lu|7m0|7m2|7m4|7m6|7m8|7ma|7mc|7me|7mg|7mi|7mk|7mm|7mo|7mq|2f|7ms|7mu|7n0|7n2|7n4|7n6|7n8|7na|7nc|7ne|7ng|7ni|7nk|7nm|7no|2g|7qp|7qr|7qt|7qv|2h|896|2l|s6|sc|uo|uq|us|uu|v0|v2|v4|v6"},"C.1.1":{s:"10"},"C.1.2":{r:"800:80b",s:"c00|50|5k0|81f|82v"},"C.2.1":{r:"0:v",s:"3v"},"C.2.2":{r:"40:4v|80c:80d|818:819|830:833|83a:83f|1vvp:1vvs|3kbj:3kbq",s:"1mt|1of|60e|1vnv"},"C.3":{r:"1o00:1u7v|u000:vvvt|10000:11vvt"},"C.4":{r:"1veg:1vff|1vvu:1vvv|3vvu:3vvv|5vvu:5vvv|7vvu:7vvv|9vvu:9vvv|bvvu:bvvv|dvvu:dvvv|fvvu:fvvv|hvvu:hvvv|jvvu:jvvv|lvvu:lvvv|nvvu:nvvv|pvvu:pvvv|rvvu:rvvv|tvvu:tvvv|vvvu:vvvv|11vvu:11vvv"},"C.5":{r:"1m00:1nvv"},"C.6":{r:"1vvp:1vvt"},"C.7":{r:"bvg:bvr"},"C.8":{r:"q0:q1|80e:80f|81a:81e|83a:83f"},"C.9":{r:"s010:s03v",s:"s001"},"D.1":{r:"1eg:1fa|1fg:1fk|1h1:1hq|1i0:1ia|1jd:1jf|1jh:1ml|1n5:1n6|1nq:1nu|1o0:1od|1oi:1pc|1s0:1t5|1uov:1up8|1upa:1upm|1upo:1ups|1uq0:1uq1|1uq3:1uq4|1uq6:1uth|1uuj:1v9t|1vag:1vcf|1vci:1ve7|1vfg:1vfs|1vjg:1vjk|1vjm:1vns",s:"1du|1e0|1e3|1gr|1gv|1mt|1og|1th|1uot|1upu|80f"},"D.2":{r:"21:2q|31:3q|60:6m|6o:7m|7o:h0|h2:hj|ig:ld|lg:lo|lr:m1|mg:mh|n0:n4|s8:sa|se:t1|t3:ue|ug:vl|100:142|14a:16e|16g:17l|17o:17p|180:18f|19h:1am|1ap:1av|1b1:1c7|285:29p|29t:2a0|2a9:2ac|2ao:2b1|2b4:2bg|2c2:2c3|2c5:2cc|2cf:2cg|2cj:2d8|2da:2dg|2dm:2dp|2du:2e0|2e7:2e8|2eb:2ec|2es:2et|2ev:2f1|2f6:2fh|2fk:2fq|2g5:2ga|2gf:2gg|2gj:2h8|2ha:2hg|2hi:2hj|2hl:2hm|2ho:2hp|2hu:2i0|2ip:2is|2j6:2jf|2ji:2jk|2k5:2kb|2kf:2kh|2kj:2l8|2la:2lg|2li:2lj|2ll:2lp|2lt:2m0|2mb:2mc|2n6:2nf|2o2:2o3|2o5:2oc|2of:2og|2oj:2p8|2pa:2pg|2pi:2pj|2pm:2pp|2pt:2pu|2q7:2q8|2qb:2qc|2qs:2qt|2qv:2r1|2r6:2rg|2s5:2sa|2se:2sg|2si:2sl|2sp:2sq|2su:2sv|2t3:2t4|2t8:2ta|2te:2tl|2tn:2tp|2tu:2tv|2u1:2u2|2u6:2u8|2ua:2uc|2v7:2vi|301:303|305:30c|30e:30g|30i:318|31a:31j|31l:31p|321:324|330:331|336:33f|342:343|345:34c|34e:34g|34i:358|35a:35j|35l:35p|360:364|367:368|36a:36b|36l:36m|370:371|376:37f|382:383|385:38c|38e:38g|38i:398|39a:39p|39u:3a0|3a6:3a8|3aa:3ac|3b0:3b1|3b6:3bf|3c2:3c3|3c5:3cm|3cq:3dh|3dj:3dr|3e0:3e6|3ef:3eh|3eo:3ev|3fi:3fk|3g1:3hg|3hi:3hj|3i0:3i6|3if:3ir|3k1:3k2|3k7:3k8|3kk:3kn|3kp:3kv|3l1:3l3|3la:3lb|3ld:3lg|3li:3lj|3m0:3m4|3mg:3mp|3ms:3mt|3o0:3on|3oq:3pk|3pu:3q7|3q9:3ra|3s8:3sb|3tu:3u5|3u7:3uc|400:411|413:417|419:41a|420:42n|450:465|46g:47o|480:4ap|4av:4d2|4d8:4fp|4g0:4g6|4g8:4i6|4ia:4id|4ig:4im|4iq:4it|4j0:4k6|4ka:4kd|4kg:4le|4li:4ll|4lo:4lu|4m2:4m5|4m8:4me|4mg:4mm|4mo:4ne|4ng:4oe|4oi:4ol|4oo:4ou|4p0:4q6|4q8:4qq|4r1:4rs|4t0:4vk|501:5jm|5k1:5kq|5l0:5ng|5o0:5oc|5oe:5oh|5p0:5ph|5pl:5pm|5q0:5qh|5r0:5rc|5re:5rg|5s0:5tm|5tu:5u5|5u7:5u8|5uk:5uq|5v0:5v9|60g:60p|610:63n|640:658|7g0:7kr|7l0:7np|7o0:7ol|7oo:7ot|7p0:7q5|7q8:7qd|7qg:7qn|7qv:7rt|7s0:7tk|7tm:7ts|7u2:7u4|7u6:7uc|7ug:7uj|7um:7ur|7v0:7vc|7vi:7vk|7vm:7vs|88a:88j|88p:88t|89a:89d|89f:89h|89j:89p|89t:89v|8a5:8a9|8b0:8c3|8pm:8rq|94s:979|c05:c07|c11:c19|c1h:c1l|c1o:c1s|c21:c4m|c4t:c4v|c51:c7q|c7s:c7v|c85:c9c|c9h:cce|ccg:cdn|cfg:cgs|ch0:ci3|cj0:cjr|cjv:clg|cm0:cmb|cmg:cnu|co0:crm|crr:cut|cv0:cvu|d00:jdl|jg0:17t5|1800:194c|1b00:1lt3|1m00:1uhd|1uhg:1uja|1uo0:1uo6|1uoj:1uon|1vp1:1vpq|1vq1:1vqq|1vr6:1vtu|1vu2:1vu7|1vua:1vuf|1vui:1vun|1vuq:1vus|20o0:20ou|20p0:20p3|20pg:20qa|2100:2115|2118:212d|3k00:3k7l|3k80:3k96|3k9a:3kb6|3kba:3kbi|3kc3:3kc4|3kcc:3kd9|3kde:3ket|3l00:3l2k|3l2m:3l4s|3l4u:3l4v|3l55:3l56|3l59:3l5c|3l5e:3l5p|3l5t:3l60|3l62:3l63|3l65:3l85|3l87:3l8a|3l8d:3l8k|3l8m:3l8s|3l8u:3l9p|3l9r:3l9u|3la0:3la4|3laa:3lag|3lai:3ll3|3ll8:3lu9|4000:59mm|5u00:5ugt|u000:vvvt|10000:11vvt",s:"3l52|3l5r|3la6|1c9|5a|5l|5q|283|2ag|2di|2en|2iu|2k3|2kd|2m9|2mg|2n0|2q0|2qn|2s3|2ss|2un|35u|36u|3an|3dt|3k4|3ka|3kd|3l5|3l7|3lt|3m6|3pm|3po|3rv|3s5|3uf|41c|41h|41o|47r|4i8|4io|4k8|4lg|4m0|4og|5us|ne|7qp|7qr|7qt|7tu|80e|83h|83v|882|887|88l|894|896|898|rq|s6|sc|8sl"}};class f{constructor(e,t){this.singles=new Set,this.ranges=[],this.mappings=new Map;const n=h[e];this.name=e,n?(n.s&&(this.singles=new Set(n.s.split("|").map(e=>parseInt(e,32)))),n.r&&(this.ranges=n.r.split("|").map(e=>{const[t,n]=e.split(":");return[parseInt(t,32),parseInt(n,32)]})),n.m&&(this.mappings=new Map(n.m.split("|").map(e=>{const[t,n]=e.split(":"),i=n.split(";").map(e=>parseInt(e,32));return[parseInt(t,32),i]})))):t&&(this.singles=new Set(t))}contains(e){if(this.singles.has(e))return!0;let t=0,n=this.ranges.length-1;for(;t<=n;){const i=Math.floor((t+n)/2),r=this.ranges[i];if(e<r[0])n=i-1;else{if(!(e>r[1]))return!0;t=i+1}}return!1}hasMapping(e){return this.mappings.has(e)||this.contains(e)}map(e){return this.contains(e)&&!this.mappings.has(e)?String.fromCodePoint(e).toLowerCase().codePointAt(0):this.mappings.get(e)||null}}const g=new f("A.1"),v=new f("B.1"),b=new f("B.2"),y=(new f("B.3"),new f("C.1.1")),k=new f("C.1.2"),w=new f("C.2.1"),S=new f("C.2.2"),C=new f("C.3"),x=new f("C.4"),E=new f("C.5"),T=new f("C.6"),_=new f("C.7"),j=new f("C.8"),O=new f("C.9"),R=new f("D.1"),P=new f("D.2");function I(e,t,n=""){const i=l.a.ucs2.decode(n);let r=[];for(const n of i){if(!t&&e.unassigned.contains(n))throw new Error("Unassigned code point: x"+n.toString(16));let i=!1;for(const t of e.mappings){if(!t.hasMapping(n))continue;i=!0;const e=t.map(n);e&&(Array.isArray(e)?r=r.concat(e):r.push(e))}i||r.push(n)}let o=r;if(e.normalize){const e=l.a.ucs2.encode(r).normalize("NFKC");o=l.a.ucs2.decode(e)}let a=!1,s=!1;for(const n of o){for(const t of e.prohibited)if(t.contains(n))throw new Error("Prohibited code point: x"+n.toString(16));if(!t&&e.unassigned.contains(n))throw new Error("Prohibited code point: x"+n.toString(16));e.bidirectional&&(a=a||R.contains(n),s=s||P.contains(n))}if(e.bidirectional){if(a&&s)throw new Error("String contained both LCat and RandALCat code points");if(a&&(!R.contains(o[0])||!R.contains(o[o.length-1])))throw new Error("String containing RandALCat code points must start and end with RandALCat code points")}return l.a.ucs2.encode(o)}v.map=()=>null,y.contains=e=>32===e,k.map=e=>k.contains(e)?32:null;const A={bidirectional:!0,mappings:[v,b],normalize:!0,prohibited:[k,S,C,x,E,T,_,j,O],unassigned:g};const M=new f("NodePrepProhibited",[34,38,39,47,58,60,62,64]),N={bidirectional:!0,mappings:[v,b],normalize:!0,prohibited:[y,k,w,S,C,x,E,T,_,j,O,M],unassigned:g};const D={bidirectional:!0,mappings:[v],normalize:!0,prohibited:[k,w,S,C,x,E,T,_,j,O],unassigned:g};const L={bidirectional:!0,mappings:[k,v],normalize:!0,prohibited:[k,w,S,C,x,E,T,_,j,O],unassigned:g};function q(e,t=!1){return I(L,t,e)}function F(e=""){return e.replace(/^\s+|\s+$/g,"").replace(/\\5c/g,"\\5c5c").replace(/\\20/g,"\\5c20").replace(/\\22/g,"\\5c22").replace(/\\26/g,"\\5c26").replace(/\\27/g,"\\5c27").replace(/\\2f/g,"\\5c2f").replace(/\\3a/g,"\\5c3a").replace(/\\3c/g,"\\5c3c").replace(/\\3e/g,"\\5c3e").replace(/\\40/g,"\\5c40").replace(/ /g,"\\20").replace(/"/g,"\\22").replace(/&/g,"\\26").replace(/'/g,"\\27").replace(/\//g,"\\2f").replace(/:/g,"\\3a").replace(/</g,"\\3c").replace(/>/g,"\\3e").replace(/@/g,"\\40")}function z(e){return e.replace(/\\20/g," ").replace(/\\22/g,'"').replace(/\\26/g,"&").replace(/\\27/g,"'").replace(/\\2f/g,"/").replace(/\\3a/g,":").replace(/\\3c/g,"<").replace(/\\3e/g,">").replace(/\\40/g,"@").replace(/\\5c/g,"\\")}function U(e){let t=e.local||"",n=e.domain,i=e.resource||"";return t&&(t=function(e,t=!0){return I(N,t,e)}(t)),i&&(i=function(e,t=!0){return I(D,t,e)}(i)),"."===n[n.length-1]&&(n=n.slice(0,n.length-1)),n=function(e,t=!0){return I(A,t,e)}(n.split(".").map(l.a.toUnicode).join(".")),{domain:n,local:t,resource:i}}function B(e,t={}){let n=e.local;t.escaped||(n=F(e.local));const i=t.prepared?e:U({local:n,domain:e.domain,resource:e.resource}),r=n?`${n}@${i.domain}`:i.domain;return i.resource?`${r}/${i.resource}`:r}function V(e,t){return t?`${K(e)}/${t}`:K(e)}function $(e=""){let t="",n="",i="";const r=e.indexOf("/");r>0&&(i=e.slice(r+1),e=e.slice(0,r));const o=e.indexOf("@");o>0&&(t=e.slice(0,o),e=e.slice(o+1)),n=e;const a=U({domain:n,local:t,resource:i});return{bare:B({local:a.local,domain:a.domain},{escaped:!0,prepared:!0}),domain:a.domain,full:B(a,{escaped:!0,prepared:!0}),local:z(a.local),resource:a.resource}}function H(e,t){const n=new Set;if(n.add(void 0),n.add(""),e){const t=$(e);n.add(t.full),n.add(t.bare),n.add(t.domain)}if(t){const e=$(t);n.add(e.domain),n.add(e.bare),n.add(e.full)}return n}function W(e,t){if(!e||!t)return!1;const n=$(e),i=$(t);return n.local===i.local&&n.domain===i.domain}function G(e){return!!$(e).resource}function Q(e=""){return $(e).domain}function J(e=""){return $(e).resource}function K(e=""){return $(e).bare}var Y,X=Object.freeze({__proto__:null,escapeLocal:F,unescapeLocal:z,prepare:U,create:B,createFull:V,parse:$,allowedResponders:H,equal:function(e,t){if(!e||!t)return!1;const n=$(e),i=$(t);return n.local===i.local&&n.domain===i.domain&&n.resource===i.resource},equalBare:W,isFull:G,isBare:function(e){return!G(e)},getLocal:function(e=""){return $(e).local},getDomain:Q,getResource:J,toBare:K,parseURI:function(e){const t=new URL(e);if("xmpp:"!==t.protocol)throw new Error("Invalid XMPP URI, wrong protocol: "+t.protocol);const n=t.hostname?t.username?B({domain:decodeURIComponent(t.hostname),local:decodeURIComponent(t.username)},{escaped:!0}):decodeURIComponent(t.hostname):void 0,i=$(decodeURIComponent(n?t.pathname.substr(1):t.pathname)).full,r=t.search&&t.search.indexOf(";")>=1,o=r?t.search.substr(t.search.indexOf(";")+1):"",a=t.search?decodeURIComponent(t.search.substr(1,r?t.search.indexOf(";")-1:void 0)):void 0,s={};for(const e of o.split(";")){const[t,n]=e.split("=").map(decodeURIComponent);if(s[t]){const e=s[t];Array.isArray(e)?e.push(n):s[t]=[e,n]}else s[t]=n}return{action:a,identity:n,jid:i,parameters:s}},toURI:function(e){const t=["xmpp:"],n=(e,n)=>{const i=$(e);i.local&&(t.push(encodeURIComponent(F(i.local))),t.push("@")),t.push(encodeURIComponent(i.domain)),n&&i.resource&&(t.push("/"),t.push(encodeURIComponent(i.resource)))};e.identity&&(t.push("//"),n(e.identity,!1),e.jid&&t.push("/")),e.jid&&n(e.jid,!0),e.action&&(t.push("?"),t.push(encodeURIComponent(e.action)));for(const[n,i]of Object.entries(e.parameters||{}))for(const e of Array.isArray(i)?i:[i])t.push(";"),t.push(encodeURIComponent(n)),void 0!==e&&(t.push("="),t.push(encodeURIComponent(e)));return t.join("")}});!function(e){e.NotWellFormed="not-well-formed",e.RestrictedXML="restricted-xml",e.AlreadyClosed="already-closed",e.UnknownRoot="unknown-stream-root"}(Y||(Y={}));class Z extends Error{constructor(e){super(e.text),this.isJXTError=!0,this.condition=e.condition,this.text=e.text}static notWellFormed(e){return new Z({condition:Y.NotWellFormed,text:e})}static restrictedXML(e){return new Z({condition:Y.RestrictedXML,text:e})}static alreadyClosed(e){return new Z({condition:Y.AlreadyClosed,text:e})}static unknownRoot(e){return new Z({condition:Y.UnknownRoot,text:e})}}const ee={'"':""","&":"&","'":"'","<":"<",">":">"},te={"&":"&","'":"'",">":">","<":"<",""":'"'},ne=/&([a-zA-Z0-9]+|#[0-9]+|#x[0-9a-fA-F]+);/g,ie=/&|<|>|"|'/g,re=/&|<|>/g;function oe(e){return ee[e]}function ae(e){return e.replace(ie,oe)}function se(e){return e.replace(ne,e=>function(e){if(te[e])return te[e];const t=e.startsWith("&#x"),n=parseInt(e.substring(t?3:2,e.length-1),t?16:10);if(9===n||10===n||13===n||32<=n&&n<=55295||57344<=n&&n<=65533||65536<=n&&n<=1114111)return String.fromCodePoint(n);throw Z.restrictedXML("Prohibited entity: "+e)}(e))}function le(e){return e.replace(re,oe)}function ce(e,t=[],n=""){const i=new Set(e.map(e=>e.toLowerCase()));for(let e of t.map(e=>e.toLowerCase()))if("*"!==e)for(;e.length>0;){if(i.has(e))return e;e=e.substring(0,e.lastIndexOf("-")).toLowerCase(),e.lastIndexOf("-")===e.length-2&&(e=e.substring(0,e.lastIndexOf("-")))}return n}class ue{constructor(e,t={},n=[]){this.name=e,this.attributes=t,this.children=[],this.optionalNamespaces={};for(const e of n)if("string"!=typeof e){const t=new ue(e.name,e.attributes,e.children);t.parent=this,this.children.push(t)}else this.children.push(e)}getName(){return this.name.indexOf(":")>=0?this.name.substr(this.name.indexOf(":")+1):this.name}getNamespace(){if(this.name.indexOf(":")>=0){const e=this.name.substr(0,this.name.indexOf(":"));return this.findNamespaceForPrefix(e)}return this.findNamespaceForPrefix()}getNamespaceContext(){let e={};this.parent&&(e=this.parent.getNamespaceContext());for(const[t,n]of Object.entries(this.attributes))if(t.startsWith("xmlns:")){const i=t.substr(6);e[n]=i}return e}getDefaultNamespace(){return this.attributes.xmlns?this.attributes.xmlns:this.parent?this.parent.getDefaultNamespace():""}getNamespaceRoot(e){if(this.parent){const t=this.parent.getNamespaceRoot(e);if(t)return t}for(const[t,n]of Object.entries(this.attributes))if(t.startsWith("xmlns:")&&n===e)return this;if(this.optionalNamespaces[e])return this}getAttribute(e,t){if(!t)return this.attributes[e];const n=this.getNamespaceContext();return n[t]?this.attributes[[n[t],e].join(":")]:void 0}getChild(e,t){return this.getChildren(e,t)[0]}getChildren(e,t){const n=[];for(const i of this.children)"string"==typeof i||i.getName()!==e||t&&i.getNamespace()!==t||n.push(i);return n}getText(){let e="";for(const t of this.children)"string"==typeof t&&(e+=t);return e}appendChild(e){return this.children.push(e),"string"!=typeof e&&(e.parent=this),e}setAttribute(e,t,n=!1){this.attributes[e]=t||void 0,""===t&&n&&(this.attributes[e]=t)}addOptionalNamespace(e,t){this.optionalNamespaces[t]=e}useNamespace(e,t){return this.optionalNamespaces[t]&&(e=this.optionalNamespaces[t]),this.setAttribute("xmlns:"+e,t),e}toJSON(){const e=this.children.map(e=>"string"==typeof e?e:e?e.toJSON():void 0).filter(e=>!!e),t={};for(const[e,n]of Object.entries(this.attributes))null!=n&&(t[e]=n);return{attributes:t,children:e,name:this.name}}toString(){let e=this.openTag(!0);if(this.children.length){for(const t of this.children)"string"==typeof t?e+=le(t):t&&(e+=t.toString());e+=this.closeTag()}return e}openTag(e=!1){let t="";t+="<"+this.name;for(const[e,n]of Object.entries(this.attributes))void 0!==n&&(t+=` ${e}="${ae(n.toString())}"`);return e&&0===this.children.length?t+="/>":t+=">",t}closeTag(){return`</${this.name}>`}findNamespaceForPrefix(e){if(e){const t="xmlns:"+e;if(this.attributes[t])return this.attributes[t];if(this.parent)return this.parent.findNamespaceForPrefix(e)}else{if(this.attributes.xmlns)return this.attributes.xmlns;if(this.parent)return this.parent.findNamespaceForPrefix()}return""}}const de=new Set(["a","blockquote","br","cite","em","img","li","ol","p","span","strong","ul"]),pe=new Set(["style"]),me=new Map([["a",new Set(["href","style"])],["body",new Set(["style","xml:lang"])],["blockquote",pe],["br",pe],["cite",pe],["em",pe],["img",new Set(["alt","height","src","style","width"])],["li",pe],["ol",pe],["p",pe],["span",pe],["strong",pe],["ul",pe]]),he=new Map([["font-style",/normal|italic|oblique|inherit/i],["font-weight",/normal|bold|bolder|lighter|inherit|\d\d\d/i],["text-decoration",/none|underline|overline|line-through|blink|inherit/i]]),fe=e=>!!e.match(/^(https?|xmpp|cid|mailto|ftps?|im|ircs?|sips?|tel|geo|bitcoin|magnet):/i)&&e,ge=e=>!!e.match(/^[0-9]*$/)&&e,ve={alt:e=>e,height:ge,href:fe,src:fe,style:e=>{const t=(";"+e).replace(/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,"").replace(/\/\*.*/,"").replace(/\\([a-fA-F0-9]{1,6})\s?/,(e,t)=>String.fromCharCode(parseInt(t,16))).match(/;\s*([a-z-]+)\s*:\s*([^;]*[^\s;])\s*/g),n=[];if(!t)return!1;for(const e of t){const t=e.match(/^;\s*([a-z-]+)\s*:\s*([^;]*[^\s])\s*$/);if(!t)continue;const i=he.get(t[1]);if(i){const e=t[2].match(i);e&&n.push(`${t[1]}:${e[0]}`)}}return!!n.length&&n.join("")},width:ge};function be(e){if("string"==typeof e)return e;if(!de.has(e.name)){if("script"===e.name)return;return function(e){let t=[];for(const n of e.children)if("string"==typeof n)t.push(n);else{const e=be(n);e&&(Array.isArray(e)?t=t.concat(e):t.push(e))}return t}(e)}const t=e.children.map(be).filter(e=>void 0!==e),n={};for(const[t,i]of Object.entries(e.attributes)){const r=me.get(e.name);if(!r||!r.has(t))continue;if(!i)continue;const o=ve[t](i);o&&(n[t]=o)}return{attributes:n,children:t,name:e.name}}function ye(e){if("string"==typeof e)return;let t=[];for(const n of e.children){if(!n)continue;if("string"==typeof n){t.push(n);continue}const e=be(n);Array.isArray(e)?t=t.concat(e):e&&t.push(e)}const n={};return"body"===e.name?(void 0!==e.attributes.xmlns&&(n.xmlns=e.attributes.xmlns),e.attributes.style&&(n.style=e.attributes.style),void 0!==e.attributes["xml:lang"]&&(n["xml:lang"]=e.attributes["xml:lang"]),{attributes:n,children:t,name:"body"}):void 0}function ke(e){return 97<=e&&e<=122||65<=e&&e<=90||58===e||95===e}function we(e){return 192<=e&&e<=214||216<=e&&e<=246||248<=e&&e<=767||880<=e&&e<=893||895<=e&&e<=8191||8204<=e&&e<=8205||8304<=e&&e<=8591||11264<=e&&e<=12271||12289<=e&&e<=55295||65008<=e&&e<=65533||65536<=e&&e<=983039}function Se(e){return ke(e)||we(e)}function Ce(e){return ke(e)||45===e||46===e||48<=e&&e<=57||183===e||768<=e&&e<=879||8255<=e&&e<=8256||we(e)}function xe(e){return 32===e||10===e||13===e||9===e}class Ee extends a.EventEmitter{constructor(e={}){super(),this.allowComments=!0,this.attributes={},this.state=34,this.tagName="",this.haveDeclaration=!1,this.recordBuffer=[],void 0!==e.allowComments&&(this.allowComments=e.allowComments)}write(e){for(const t of e){const e=t.codePointAt(0);switch(this.state){case 34:if(60===e){let e;try{e=se(this.endRecord())}catch(e){return void this.emit("error",e)}e&&this.emit("text",e),this.transition(31);continue}this.record(t);continue;case 31:if(47===e){this.transition(7);continue}if(33===e){this.transition(24);continue}if(63===e){this.haveDeclaration&&this.restrictedXML(),this.transition(25);continue}if(Se(e)){this.transition(30),this.startRecord(t);continue}return this.notWellFormed();case 30:if(Ce(e)){this.record(t);continue}if(xe(e)){this.startTag(),this.transition(32);continue}if(47===e){this.startTag(),this.transition(29);continue}if(62===e){this.startTag(),this.transition(34),this.emit("startElement",this.tagName,this.attributes);continue}return this.notWellFormed();case 29:if(62===e){this.emit("startElement",this.tagName,this.attributes),this.emit("endElement",this.tagName),this.transition(34);continue}return this.notWellFormed();case 33:if(xe(e)){this.transition(32);continue}if(47===e){this.transition(29);continue}if(62===e){this.emit("startElement",this.tagName,this.attributes),this.transition(34);continue}return this.notWellFormed();case 32:if(xe(e))continue;if(Se(e)){this.startRecord(t),this.transition(0);continue}if(47===e){this.transition(29);continue}if(62===e){this.emit("startElement",this.tagName,this.attributes),this.transition(34);continue}return this.notWellFormed();case 7:if(Se(e)){this.startRecord(t),this.transition(6);continue}return this.notWellFormed();case 6:if(Ce(e)){this.record(t);continue}if(xe(e)){this.transition(8);continue}if(62===e){const e=this.endRecord();this.emit("endElement",e,this.attributes),this.transition(34);continue}return this.notWellFormed();case 8:if(xe(e))continue;if(62===e){const e=this.endRecord();this.emit("endElement",e,this.attributes),this.transition(34);continue}return this.notWellFormed();case 0:if(Ce(e)){this.record(t);continue}if(61===e){this.addAttribute(),this.transition(4);continue}if(xe(e)){this.addAttribute(),this.transition(3);continue}return this.notWellFormed();case 3:if(61===e){this.transition(4);continue}if(xe(e))continue;return this.notWellFormed();case 4:if(34===e){this.startRecord(),this.transition(1);continue}if(39===e){this.startRecord(),this.transition(2);continue}if(xe(e))continue;return this.notWellFormed();case 1:case 2:if(34===e&&1===this.state||39===e&&2===this.state){const e=this.endRecord();this.attributes[this.attributeName]=se(e),this.transition(33);continue}if(60===e)return this.notWellFormed();this.record(t);continue;case 24:if(45===e){this.allowComments||this.restrictedXML(),this.transition(23);continue}if(91===e){this.transition(21);continue}return this.notWellFormed();case 23:if(45===e){this.transition(14);continue}return this.notWellFormed();case 14:45===e&&this.transition(12);continue;case 12:45===e?this.transition(11):this.transition(14);continue;case 11:62===e?this.transition(34):this.transition(14);continue;case 25:if(88===e||120===e){this.transition(28);continue}return this.notWellFormed();case 28:if(77===e||109===e){this.transition(27);continue}return this.notWellFormed();case 27:if(76===e||108===e){this.transition(26);continue}return this.notWellFormed();case 26:if(xe(e)){this.haveDeclaration=!0,this.transition(15);continue}return this.notWellFormed();case 13:if(62===e){this.transition(34);continue}return this.notWellFormed();case 15:63===e&&this.transition(13);continue;case 21:this.wait(e,67,20);continue;case 20:this.wait(e,68,19);continue;case 19:this.wait(e,65,18);continue;case 18:this.wait(e,84,17);continue;case 17:this.wait(e,65,16);continue;case 16:this.wait(e,91,5);continue;case 5:if(93===e){this.transition(10);continue}this.record(t);continue;case 10:93===e?this.transition(9):(this.record(String.fromCodePoint(93)),this.record(t),this.transition(5));continue;case 9:if(62===e){const e=this.endRecord();e&&this.emit("text",e),this.transition(34)}else this.record(String.fromCodePoint(93)),this.record(String.fromCodePoint(93)),this.record(t),this.transition(5);continue}}}end(e){e&&this.write(e),this.write=()=>{}}record(e){this.recordBuffer.push(e)}startRecord(e){this.recordBuffer=[],e&&this.recordBuffer.push(e)}endRecord(){const e=this.recordBuffer;return this.recordBuffer=[],e.join("")}startTag(){this.tagName=this.endRecord(),this.attributes={}}addAttribute(){const e=this.endRecord();if(void 0!==this.attributes[e])return this.notWellFormed();this.attributeName=e,this.attributes[e]=""}wait(e,t,n){if(e!==t)return this.notWellFormed();this.transition(n)}transition(e){this.state=e,34===e&&this.startRecord()}notWellFormed(e){this.emit("error",Z.notWellFormed(e))}restrictedXML(e){this.emit("error",Z.restrictedXML(e))}}function Te(e,t={}){const n=new Ee(t);let i,r,o=null;if(n.on("text",e=>{r&&r.children.push(e)}),n.on("startElement",(e,t)=>{const n=new ue(e,t);i||(i=n),r=r?r.appendChild(n):n}),n.on("endElement",e=>{r?e===r.name?r.parent&&(r=r.parent):n.emit("error",Z.notWellFormed("b")):n.emit("error",Z.notWellFormed("a"))}),n.on("error",e=>{o=e}),n.write(e),n.end(),o)throw o;return i}function _e(e,t,n,i){if(i){e=e||i.getNamespace();const n=i.getNamespaceRoot(e);if(n){t=`${n.useNamespace("",e)}:${t}`}}const r=new ue(t);return t.indexOf(":")<0&&(!n||e!==n)&&r.setAttribute("xmlns",e),r}function je(e,t){return(e.getAttribute("xml:lang")||t||"").toLowerCase()}function Oe(e,t){const n=[];for(const i of e)n.push(je(i,t.lang));let i;return i=t.resolveLanguage?t.resolveLanguage(n,t.acceptLanguages||[],t.lang):t.lang,i||""}function Re(e,t,n,i){const r=e.getChildren(n,t),o=je(e);return r.length?i?r.filter(e=>{if(je(e,o)===i)return!0}):r:[]}function Pe(e,t,n,i){t=t||e.getNamespace();const r=Re(e,t,n,i);if(r.length)return r[0];const o=_e(t,n,e.getDefaultNamespace(),e),a=je(e,i);return i&&a!==i&&o.setAttribute("xml:lang",i),e.appendChild(o),o}function Ie(e){return{importer(t){const n=t.getAttribute(e.name,e.namespace);return n?e.parseValue(n):e.dynamicDefault?e.dynamicDefault(n):e.staticDefault},exporter(t,n){if(void 0===n||n===e.staticDefault)return;const i=e.writeValue(n);if(i||e.emitEmpty)if(e.namespace&&e.prefix){let n;const r=t.getNamespaceRoot(e.namespace);if(r)n=r.useNamespace(e.prefix,e.namespace);else{const i=t.getNamespaceContext();i[e.namespace]||(n=t.useNamespace(e.prefix,e.namespace),i[e.namespace]=n)}t.setAttribute(`${n}:${e.name}`,i,e.emitEmpty)}else t.setAttribute(e.name,i,e.emitEmpty)}}}function Ae(e,t){return(n,i,r={})=>(r=Object.assign({staticDefault:i},r),Ie(Object.assign(Object.assign({name:n},e),t?t(r):r)))}function Me(e,t){return(n,i,r,o,a={})=>(a=Object.assign({staticDefault:o},a),Ie(Object.assign(Object.assign({name:r,namespace:i,prefix:n},e),t?t(a):a)))}function Ne(e){const t=e.converter||Ie(Object.assign(Object.assign({},e),{namespace:e.attributeNamespace}));return{importer(n,i){const r=n.getChild(e.element,e.namespace||n.getNamespace());return r?t.importer(r,i):e.dynamicDefault?e.dynamicDefault():e.staticDefault},exporter(n,i,r){if(void 0!==i&&i!==e.staticDefault){const o=Pe(n,e.namespace||n.getNamespace(),e.element);t.exporter(o,i,r)}}}}function De(e,t){return(n,i,r,o,a={})=>(a=Object.assign({staticDefault:o},a),Ne(Object.assign(Object.assign({element:i,name:r,namespace:n},e),t?t(a):a)))}function Le(e){return{importer(t){const n=t.getText();return n?e.parseValue(n):e.dynamicDefault?e.dynamicDefault(n):e.staticDefault},exporter(t,n){if(!n&&e.emitEmpty)return void t.children.push("");if(void 0===n||n===e.staticDefault)return;const i=e.writeValue(n);i&&t.children.push(i)}}}function qe(e){const t=Le(e);return{importer(n,i){const r=Re(n,e.namespace||n.getNamespace(),e.element),o=Oe(r,i);if(!r.length)return e.dynamicDefault?e.dynamicDefault():e.staticDefault;if(e.matchLanguage)for(const e of r)if(je(e,i.lang)===o)return t.importer(e,i);return t.importer(r[0],i)},exporter(n,i,r){if(i||!e.emitEmpty){if(void 0!==i&&i!==e.staticDefault){const o=Pe(n,e.namespace||n.getNamespace(),e.element,e.matchLanguage?r.lang:void 0);t.exporter(o,i,r)}}else Pe(n,e.namespace||n.getNamespace(),e.element,e.matchLanguage?r.lang:void 0)}}}const Fe={parseValue:e=>e,writeValue:e=>e},ze={parseValue:e=>parseInt(e,10),writeValue:e=>e.toString()},Ue={parseValue:e=>parseFloat(e),writeValue:e=>e.toString()},Be={parseValue:e=>"true"===e||"1"===e||"false"!==e&&"0"!==e&&void 0,writeValue:e=>e?"1":"0"},Ve={parseValue:e=>new Date(e),writeValue:e=>"string"==typeof e?e:e.toISOString()},$e={parseValue:e=>JSON.parse(e),writeValue:e=>JSON.stringify(e)},He=(t="utf8")=>({parseValue:n=>("base64"===t&&"="===n&&(n=""),e.from(n.trim(),t)),writeValue:n=>{let i;return i="string"==typeof n?e.from(n).toString(t):n?n.toString(t):"","base64"===t&&(i=i||"="),i}}),We={parseValue:e=>{let t=-1;"-"===e.charAt(0)&&(t=1,e=e.slice(1));const n=e.split(":");return(60*parseInt(n[0],10)+parseInt(n[1],10))*t},writeValue:e=>{if("string"==typeof e)return e;{let t="-";e<0&&(e=-e,t="+");const n=e/60,i=e%60;return t+=(n<10?"0":"")+n+":"+(i<10?"0":"")+i,t}}},Ge=Ae(Fe,e=>Object.assign({dynamicDefault:e.emitEmpty?t=>""===t?"":e.staticDefault:void 0},e)),Qe=Ae(Be),Je=Ae(ze),Ke=Ae(Ue),Ye=Ae(Ve),Xe=Me(Fe),Ze=Me(Be),et=Me(ze),tt=Me(Ue),nt=Me(Ve),it=De(Fe),rt=De(Be),ot=De(ze),at=De(Ue),st=De(Ve),lt=e=>Le(Object.assign({staticDefault:e},Fe)),ct=()=>Le(Object.assign({},$e)),ut=(e="utf8")=>Le(Object.assign({},He(e)));function dt(){return{importer:(e,t)=>je(e,t.lang),exporter(e,t,n){t&&t.toLowerCase()!==n.lang?e.setAttribute("xml:lang",t):e.setAttribute("xml:lang",void 0)}}}const pt=(e,t,n,i=!1)=>qe(Object.assign({element:t,emitEmpty:i,matchLanguage:!0,namespace:e,staticDefault:n},Fe)),mt=(e,t,n="utf8")=>qe(Object.assign({element:t,matchLanguage:!0,namespace:e},He(n))),ht=(e,t)=>qe(Object.assign({element:t,namespace:e},Ve)),ft=(e,t,n)=>qe(Object.assign({element:t,namespace:e,staticDefault:n},ze)),gt=(e,t,n)=>qe(Object.assign({element:t,namespace:e,staticDefault:n},Ue)),vt=(e,t)=>qe(Object.assign({element:t,namespace:e},$e));function bt(e,t){return qe(Object.assign({element:t,namespace:e,staticDefault:0},We))}function yt(e,t){return{importer(n){if(n.getChild(t,e||n.getNamespace()))return!0},exporter(n,i){i&&Pe(n,e||n.getNamespace(),t)}}}const kt=(e,t,n)=>{if(!n)return;let i=t;for(const t of e)i=Pe(i,t.namespace||i.getNamespace(),t.element);i.children.push(n.toString())};function wt(e,t){return{importer(n){let i=n;for(const n of e)if(i=i.getChild(n.element,n.namespace||i.getNamespace()),!i)return t;return i.getText()||t},exporter(t,n){kt(e,t,n)}}}function St(e,t){return{importer(n){let i=n;for(const t of e)if(i=i.getChild(t.element,t.namespace||i.getNamespace()),!i)return;const r=i.getText();return r?parseInt(r,10):t||void 0},exporter(t,n){kt(e,t,n)}}}function Ct(e){return{importer(t){let n=t;for(const t of e)if(n=n.getChild(t.element,t.namespace||n.getNamespace()),!n)return!1;return!0},exporter(t,n){if(!n)return;let i=t;for(const t of e)i=Pe(i,t.namespace||i.getNamespace(),t.element)}}}function xt(e){const t=e.pop();return{importer(n,i){let r=n;for(const t of e)if(r=r.getChild(t.element,t.namespace||r.getNamespace()),!r)return[];const o=[],a=Re(r,t.namespace||r.getNamespace(),t.element),s=Oe(a,i);for(const e of a)je(e,i.lang)===s&&o.push(e.getText());return o},exporter(n,i,r){if(!i.length)return;let o=n;for(const t of e)o=Pe(o,t.namespace||o.getNamespace(),t.element);const{namespace:a,element:s}=t;for(const e of i){const t=_e(a||o.getNamespace(),s,r.namespace,o);t.children.push(e),o.appendChild(t)}}}}function Et(e,t,n){const i=new Map,r=new Map;for(const e of t)"string"==typeof e?(i.set(e,e),r.set(e,e)):(i.set(e[1],e[0]),r.set(e[0],e[1]));return{importer(t){for(const n of t.children)if("string"!=typeof n&&n.getNamespace()===(e||t.getNamespace())&&i.has(n.getName()))return i.get(n.getName());return n},exporter(t,n){r.has(n)&&Pe(t,e,r.get(n))}}}function Tt(e,t,n,i){const r=new Set(t),o=new Set(n);return{importer(t){for(const n of t.children)if("string"!=typeof n&&n.getNamespace()===(e||t.getNamespace())&&r.has(n.getName())){for(const i of n.children)if("string"!=typeof i&&i.getNamespace()===(e||t.getNamespace())&&o.has(i.getName()))return[n.getName(),i.getName()];return[n.getName()]}return i},exporter(t,n){const i=Pe(t,e,n[0]);n[1]&&Pe(i,e,n[1])}}}function _t(e,t){return{importer(n,i){const r=[],o=Re(n,e||n.getNamespace(),t),a=Oe(o,i);for(const e of o)je(e,i.lang)===a&&r.push(e.getText());return r},exporter(n,i,r){for(const o of i){const i=_e(e||n.getNamespace(),t,r.namespace,n);i.children.push(o),n.appendChild(i)}}}}function jt(e,t,n){return{importer(i){const r=[],o=i.getChildren(t,e||i.getNamespace());for(const e of o){const t=e.getAttribute(n);void 0!==t&&r.push(t)}return r},exporter(i,r,o){for(const a of r){const r=_e(e||i.getNamespace(),t,o.namespace,i);r.setAttribute(n,a),i.appendChild(r)}}}}function Ot(e,t,n){return{importer(i){const r=[],o=i.getChildren(t,e||i.getNamespace());for(const e of o){const t=e.getAttribute(n);void 0!==t&&r.push(parseInt(t,10))}return r},exporter(i,r,o){for(const a of r){const r=_e(e||i.getNamespace(),t,o.namespace,i);r.setAttribute(n,a.toString()),i.appendChild(r)}}}}function Rt(e,t){return{importer(n,i){const r=[],o=Re(n,e||n.getNamespace(),t),a=new Set;for(const e of o){const t=e.getText();if(t){const n=je(e,i.lang);if(a.has(n))continue;r.push({lang:n,value:t}),a.add(n)}}return a.size>0?r:void 0},exporter(n,i,r){for(const o of i){const i=o.value;if(i){const a=_e(e||n.getNamespace(),t,r.namespace,n);o.lang!==r.lang&&a.setAttribute("xml:lang",o.lang),a.children.push(i),n.appendChild(a)}}}}}function Pt(e,t){const n=new Map,i=new Map;for(const e of t)"string"==typeof e?(n.set(e,e),i.set(e,e)):(n.set(e[1],e[0]),i.set(e[0],e[1]));return{importer(t){const i=[];for(const r of t.children)"string"!=typeof r&&r.getNamespace()===(e||t.getNamespace())&&n.has(r.getName())&&i.push(n.get(r.getName()));return i},exporter(t,n){for(const r of n)Pe(t,e,i.get(r))}}}function It(e,t,n,i=!1){return{importer(r,o){const a=r.getChild(t,e||r.getNamespace());if(!a)return;const s=[];for(const e of a.children)if("string"!=typeof e&&o.registry.getImportKey(e)===n){const t=o.registry.import(e);t&&s.push(t)}return i?s:s[0]},exporter(i,r,o){let a=[];a=Array.isArray(r)?r:[r];const s=[];for(const t of a){const r=o.registry.export(n,t,Object.assign(Object.assign({},o),{namespace:e||i.getNamespace()||void 0}));r&&s.push(r)}if(s.length){const n=Pe(i,e||i.getNamespace(),t);for(const e of s)n.appendChild(e)}}}}function At(e){return{exporter:()=>{},importer:()=>e}}function Mt(e,t,n){return{importer(i,r){if(n&&(!r.sanitizers||!r.sanitizers[n]))return;const o=Re(i,e||i.getNamespace(),t),a=Oe(o,r);for(const e of o)if(je(e,r.lang)===a)return n?r.sanitizers[n](e.toJSON()):e.toJSON();return o[0]?n?r.sanitizers[n](o[0].toJSON()):o[0].toJSON():void 0},exporter(i,r,o){if("string"==typeof r){r=Te(`<${t} xmlns="${e||i.getNamespace()}">${r}</${t}>`).toJSON()}if(r&&n){if(!o.sanitizers||!o.sanitizers[n])return;r=o.sanitizers[n](r)}if(!r)return;const a=Pe(i,e||i.getNamespace(),t,o.lang);for(const e of r.children)"string"==typeof e?a.appendChild(e):e&&a.appendChild(new ue(e.name,e.attributes,e.children))}}}function Nt(e,t,n){return{importer(i,r){if(n&&(!r.sanitizers||!r.sanitizers[n]))return;const o=[],a=new Set,s=Re(i,e||i.getNamespace(),t);for(const e of s){let t=e.toJSON();if(n&&(t=r.sanitizers[n](t)),t){const n=je(e,r.lang);if(a.has(n))continue;o.push({lang:n,value:t}),a.add(n)}}return a.size>0?o:void 0},exporter(i,r,o){for(const a of r){let r=a.value;if("string"==typeof r){r=Te(`<${t} xmlns="${e||i.getNamespace()}">${r}</${t}>`).toJSON()}if(r&&n){if(!o.sanitizers||!o.sanitizers[n])continue;r=o.sanitizers[n](r)}if(r){const n=_e(e||i.getNamespace(),t,o.namespace,i);i.appendChild(n),a.lang!==o.lang&&n.setAttribute("xml:lang",a.lang);for(const e of r.children)"string"==typeof e?n.appendChild(e):n.appendChild(new ue(e.name,e.attributes,e.children))}}}}}function Dt(e,t,n,i){return{importer(r,o){const a={},s=Re(r,e,t),l=Ge(n).importer,c=Ge(i).importer;for(const e of s)a[l(e,o)]=c(e,o);return a},exporter(r,o,a){const s=Ge(n).exporter,l=Ge(i).exporter,c=e||r.getNamespace();for(const[e,n]of Object.entries(o)){const i=_e(c,t,a.namespace,r);s(i,e,a),o[e]&&l(i,n,a),r.appendChild(i)}}}}class Lt{constructor(){this.parents=new Set,this.placeholder=!1,this.typeField="",this.versionField="",this.defaultType="",this.defaultVersion="",this.languageField="lang",this.typeValues=new Map,this.typeOrders=new Map,this.importers=new Map,this.exporters=new Map,this.children=new Map,this.childrenIndex=new Map,this.implicitChildren=new Set,this.contexts=new Map}addChild(e,t,n=!1,i,r){const o={multiple:n||!1,name:e,selector:i,translator:t},a=this.children.get(e);if(!a){o.translator.parents.add(this),this.children.set(e,o);for(const[n]of t.importers)this.implicitChildren.has(n)||this.childrenIndex.set(n,e);return void(r&&this.implicitChildren.add(r))}const s=a.translator;a.multiple=n,i&&a.selector&&i!==a.selector&&(a.selector=void 0);for(const[n,i]of t.importers){const[r,o]=(s.typeValues.get(n)||"").split("__v__");s.updateDefinition({contexts:t.contexts,element:i.element,exporterOrdering:new Map,exporters:new Map,importerOrdering:i.fieldOrders,importers:i.fields,namespace:i.namespace,optionalNamespaces:new Map,type:r,version:o}),this.implicitChildren.has(n)||this.childrenIndex.set(n,e)}for(const[e,n]of t.exporters){const[i,r]=e.split("__v__");s.updateDefinition({contexts:t.contexts,element:n.element,exporterOrdering:n.fieldOrders,exporters:n.fields,importerOrdering:new Map,importers:new Map,namespace:n.namespace,optionalNamespaces:n.optionalNamespaces,type:i,version:r})}}addContext(e,t,n,i,r,o){t&&(e=`${e}[${t}]`);let a=this.contexts.get(e);a||(a={typeField:"",versionField:"",typeValues:new Map}),o&&(a.impliedType=r),a.typeField=n||"",a.typeValues.set(i,r),this.contexts.set(e,a)}getChild(e){const t=this.children.get(e);if(t)return t.translator}getImportKey(e){return this.childrenIndex.get(`{${e.getNamespace()}}${e.getName()}`)}updateDefinition(e){const t=`{${e.namespace}}${e.element}`,n=e.type||this.defaultType,i=e.version||this.defaultVersion,r=i?`${n}__v__${i}`:n,o=this.importers.get(t)||{element:e.element,fieldOrders:new Map,fields:new Map,namespace:e.namespace};for(const[t,n]of e.importers)o.fields.set(t,n);for(const[t,n]of e.importerOrdering)o.fieldOrders.set(t,n);this.importers.set(t,o);const a=this.exporters.get(r)||{element:e.element,fieldOrders:new Map,fields:new Map,namespace:e.namespace,optionalNamespaces:e.optionalNamespaces};for(const[t,n]of e.exporters)a.fields.set(t,n);for(const[t,n]of e.exporterOrdering)a.fieldOrders.set(t,n);for(const[t,n]of e.optionalNamespaces)a.optionalNamespaces.set(t,n);this.exporters.set(r,a);for(const[t,n]of e.contexts){const e=this.contexts.get(t)||{impliedType:void 0,typeField:n.typeField,versionField:n.versionField,typeValues:new Map};e.typeField||(e.typeField=n.typeField),e.versionField||(e.versionField=n.versionField),e.impliedType||(e.impliedType=n.impliedType);for(const[t,i]of n.typeValues)e.typeValues.set(t,i);this.contexts.set(t,e)}if(e.type)this.typeValues.set(t,r),e.typeOrder&&e.type&&this.typeOrders.set(e.type,e.typeOrder);else if(this.typeField&&!e.type){for(const[,t]of this.importers){for(const[n,i]of e.importers)t.fields.set(n,i);for(const[n,i]of e.importerOrdering)t.fieldOrders.set(n,i)}for(const[,t]of this.exporters){for(const[n,i]of e.exporters)t.fields.set(n,i);for(const[n,i]of e.exporterOrdering)t.fieldOrders.set(n,i)}}}replaceWith(e){for(const[t,n]of this.children)e.children.set(t,n);for(const[t,n]of this.childrenIndex)e.childrenIndex.set(t,n);for(const[t,n]of this.contexts)e.contexts.set(t,n);for(const t of this.implicitChildren)e.implicitChildren.add(t);for(const t of this.parents)for(const n of t.children.values())n.translator===this&&(n.translator=e);this.parents=new Set}import(e,t){const n=`{${e.getNamespace()}}${e.getName()}`,i={},r=this.importers.get(n);if(!r)return;const o=this.typeValues.get(n)||"",[a,s]=o.split("__v__"),l=t.path||"";let c;if(t.pathSelector&&(c=this.contexts.get(`${l}[${t.pathSelector}]`)),c||(c=this.contexts.get(l)),c){if(!c.impliedType){const e=c.typeValues.get(n)||"";e&&(i[c.typeField]=e)}}else this.typeField&&a&&a!==this.defaultType&&(i[this.typeField]=a);this.versionField&&s&&s!==this.defaultVersion&&(i[this.versionField]=s);const u=Object.assign(Object.assign({},t),{data:i,importer:r,lang:(e.getAttribute("xml:lang")||t.lang||"").toLowerCase(),pathSelector:a,translator:this}),d=[...r.fieldOrders.entries()].sort((e,t)=>e[1]>t[1]?-1:e[1]<t[1]?1:0),p=d.filter(e=>e[1]>=0),m=d.filter(e=>e[1]<0);for(const[n]of p){const o=r.fields.get(n);u.path=`${t.path}.${n}`;const a=o(e,u);null!=a&&(i[n]=a)}for(const n of e.children){if("string"==typeof n)continue;const e=`{${n.getNamespace()}}${n.getName()}`,r=this.childrenIndex.get(e);if(!r)continue;u.path=`${t.path}.${r}`;const{translator:o,multiple:s,selector:l}=this.children.get(r);if(!l||l===a){const e=o.import(n,u);void 0!==e&&(s?(i[r]||(i[r]=[]),i[r].push(e)):i[r]?i[r]=o.resolveCollision(i[r],e):i[r]=e)}}for(const[n]of m){const o=r.fields.get(n);u.path=`${t.path}.${n}`;const a=o(e,u);null!=a&&(i[n]=a)}return i}export(e,t){if(!e)return;let n=this.defaultType,i=this.defaultVersion;const r=t.path||"";let o;t.pathSelector&&(o=this.contexts.get(`${r}[${t.pathSelector}]`)),o||(o=this.contexts.get(r)),o?n=o.impliedType||e[o.typeField]||this.defaultType:this.typeField&&(n=e[this.typeField]||this.defaultType),this.versionField&&(i=e[this.versionField]||this.defaultVersion);const a=i?`${n}__v__${i}`:n,s=this.exporters.get(a);if(!s)return;const l=_e(s.namespace,s.element,t.namespace,t.element);t.element&&(l.parent=t.element);for(const[e,t]of s.optionalNamespaces)l.addOptionalNamespace(e,t);const c=Object.assign(Object.assign({},t),{data:e,element:l,exporter:s,lang:(e[this.languageField]||t.lang||"").toLowerCase(),namespace:l.getDefaultNamespace(),pathSelector:n,translator:this}),u=s.fields.get(this.languageField);u&&u(l,e[this.languageField],t);const d=Object.keys(e);d.sort((e,t)=>(s.fieldOrders.get(e)||1e5)-(s.fieldOrders.get(t)||1e5));for(const i of d){if(i===this.languageField)continue;const r=e[i],o=s.fields.get(i);if(o){o(l,r,c);continue}const a=this.children.get(i);if(!a)continue;c.path=`${t.path?t.path+".":""}${i}`;const{translator:u,multiple:d,selector:p}=a;if(!p||p===n){let e;e=d?r:[r];for(const t of e){const e=u.export(t,c);e&&l.appendChild(e)}}}return l}resolveCollision(e,t){return(this.typeOrders.get(e[this.typeField]||this.defaultType)||0)<=(this.typeOrders.get(t[this.typeField]||this.defaultType)||0)?e:t}}class qt{constructor(){this.translators=new Map,this.root=new Lt,this.setLanguageResolver(ce)}setLanguageResolver(e){this.languageResolver=e}import(e,t={registry:this}){if(!this.hasTranslator(e.getNamespace(),e.getName()))return;t.acceptLanguages||(t.acceptLanguages=[]),t.acceptLanguages=t.acceptLanguages.map(e=>e.toLowerCase()),t.lang&&(t.lang=t.lang.toLowerCase()),t.resolveLanguage||(t.resolveLanguage=this.languageResolver),t.path=this.getImportKey(e),t.sanitizers||(t.sanitizers={xhtmlim:ye});return this.getOrCreateTranslator(e.getNamespace(),e.getName()).import(e,Object.assign(Object.assign({},t),{registry:this}))}export(e,t,n={registry:this}){n.acceptLanguages||(n.acceptLanguages=[]),n.acceptLanguages=n.acceptLanguages.map(e=>e.toLowerCase()),n.lang&&(n.lang=n.lang.toLowerCase()),n.sanitizers||(n.sanitizers={xhtmlim:ye}),n.path=e;const i=e.split(".").filter(e=>""!==e);let r=this.root;for(const e of i){const t=r.getChild(e);if(!t)return;r=t}return r.export(t,Object.assign(Object.assign({},n),{registry:this}))}getImportKey(e,t=""){const n=t?this.walkToTranslator(t.split(".")):this.root;if(n)return n.getImportKey(e)}define(e){if(Array.isArray(e)){for(const t of e)"object"==typeof t?this.define(t):t(this);return}if("object"!=typeof e)return void e(this);const t=e;t.aliases=t.aliases||[],t.path&&!t.aliases.includes(t.path)&&t.aliases.push(t.path);const n=t.aliases.map(e=>"string"==typeof e?{path:e}:e).sort((e,t)=>{const n=e.path.split(".").length;return t.path.split(".").length-n});let i;if(this.hasTranslator(t.namespace,t.element)&&(i=this.getOrCreateTranslator(t.namespace,t.element)),!i){let e;for(const t of n){const n=this.walkToTranslator(t.path.split("."));if(n&&!n.placeholder){i=n;break}n&&(e=n)}e&&!i&&(i=e,i.placeholder=!1)}i||(i=this.getOrCreateTranslator(t.namespace,t.element)),this.indexTranslator(t.namespace,t.element,i);const r=t.fields||{},o=new Map,a=new Map,s=new Map,l=new Map;t.typeField&&(i.typeField=t.typeField),t.defaultType&&(i.defaultType=t.defaultType),t.versionField&&(i.versionField=t.versionField),t.defaultVersion&&(i.defaultVersion=t.defaultVersion),t.languageField&&(i.languageField=t.languageField);for(const[e,t]of Object.entries(r))o.set(e,t.importer),s.set(e,t.importOrder||t.order||0),a.set(e,t.exporter),l.set(e,t.exportOrder||t.order||0);if(t.childrenExportOrder)for(const[e,n]of Object.entries(t.childrenExportOrder))l.set(e,n||0);const c=new Map;for(const[e,n]of Object.entries(t.optionalNamespaces||{}))c.set(e,n);i.updateDefinition({contexts:new Map,element:t.element,exporterOrdering:l,exporters:a,importerOrdering:s,importers:o,namespace:t.namespace,optionalNamespaces:c,type:t.type,version:t.version,typeOrder:t.typeOrder});for(const e of n)this.alias(t.namespace,t.element,e.path,e.multiple,e.selector,e.contextField,t.type,e.impliedType);for(const e of n){const t=this.walkToTranslator(e.path.split("."));t&&t!==i&&t.replaceWith(i)}}alias(e,t,n,i=!1,r,o,a,s=!1){const l=this.getOrCreateTranslator(e,t);l.placeholder=!1;const c=n.split(".").filter(e=>""!==e),u=c.pop(),d=this.walkToTranslator(c,!0),p=`{${e}}${t}`;a&&(o||s)&&l.addContext(n,r,o,p,a,s),d.addChild(u,l,i,r,p)}walkToTranslator(e,t=!1){let n=this.root;for(const i of e){let e=n.getChild(i);if(!e){if(!t)return;e=new Lt,e.placeholder=!0,n.addChild(i,e)}n=e}return n}hasTranslator(e,t){return this.translators.has(`{${e}}${t}`)}getOrCreateTranslator(e,t){let n=this.translators.get(`{${e}}${t}`);return n||(n=new Lt,this.indexTranslator(e,t,n)),n}indexTranslator(e,t,n){this.translators.set(`{${e}}${t}`,n)}}const Ft="http://www.w3.org/2005/Atom",zt="urn:ietf:params:xml:ns:xmpp-bind",Ut="jabber:client",Bt="urn:ietf:params:xml:ns:xmpp-sasl",Vt="urn:ietf:params:xml:ns:xmpp-session",$t="urn:ietf:params:xml:ns:xmpp-stanzas",Ht="http://etherx.jabber.org/streams",Wt="urn:ietf:params:xml:ns:xmpp-streams",Gt="urn:ietf:params:xml:ns:xmpp-tls",Qt="urn:ietf:params:xml:ns:xmpp-framing",Jt="jabber:x:data",Kt="jabber:iq:privacy",Yt="http://jabber.org/protocol/disco#info",Xt="http://jabber.org/protocol/disco#items",Zt="http://jabber.org/protocol/address",en="http://jabber.org/protocol/muc",tn="http://jabber.org/protocol/muc#admin",nn="http://jabber.org/protocol/muc#owner",rn="http://jabber.org/protocol/muc#user",on="http://jabber.org/protocol/ibb",an="http://jabber.org/protocol/commands",sn="http://jabber.org/protocol/rsm",ln="http://jabber.org/protocol/pubsub",cn="http://jabber.org/protocol/pubsub#errors",un="http://jabber.org/protocol/pubsub#event",dn="http://jabber.org/protocol/pubsub#owner",pn="http://jabber.org/protocol/bytestreams",mn="jabber:x:oob",hn="http://www.w3.org/1999/xhtml",fn="http://jabber.org/protocol/xhtml-im",gn="http://jabber.org/protocol/geoloc",vn="urn:xmpp:avatar:data",bn="urn:xmpp:avatar:metadata",yn="http://jabber.org/protocol/chatstates",kn="http://jabber.org/protocol/mood",wn="http://jabber.org/protocol/activity",Sn="http://jabber.org/protocol/tune",Cn="http://jabber.org/protocol/xdata-validate",xn="http://jabber.org/protocol/httpbind",En="http://jabber.org/protocol/shim",Tn="http://jabber.org/protocol/compress",_n="http://jabber.org/protocol/xdata-layout",jn="http://jabber.org/protocol/rosterx",On=e=>e+"+notify",Rn="urn:xmpp:jingle:1",Pn="urn:xmpp:jingle:apps:rtp:1",In="urn:xmpp:jingle:apps:rtp:info:1",An="http://jabber.org/protocol/nick",Mn="urn:xmpp:jingle:transports:ice-udp:1",Nn="urn:xmpp:jingle:transports:raw-udp:1",Dn="urn:xmpp:sm:3",Ln="urn:xmpp:delay",qn="urn:xmpp:bob",Fn="urn:xmpp:jingle:apps:file-transfer:5",zn="urn:xmpp:jingle:apps:xmlstream:0",Un="urn:xmpp:jingle:transports:s5b:1",Bn="urn:xmpp:jingle:transports:ibb:1",Vn="urn:xmpp:carbons:2",$n="urn:xmpp:jingle:apps:rtp:rtcp-fb:0",Hn="urn:xmpp:jingle:apps:rtp:rtp-hdrext:0",Wn="urn:xmpp:forward:0",Gn="urn:xmpp:hashes:2",Qn=e=>"urn:xmpp:hash-function-text-names:"+e,Jn="urn:xmpp:rtt:0",Kn="urn:xmpp:hats:0",Yn="urn:xmpp:chat-markers:0",Xn="urn:xmpp:hints",Zn="urn:xmpp:json:0",ei="urn:xmpp:push:0",ti="urn:xmpp:http:upload:0",ni="urn:xmpp:jingle:transports:ice:0",ii="eu.siacs.conversations.axolotl",ri="http://docs.oasis-open.org/ns/xri/xrd-1.0";var oi=Object.freeze({__proto__:null,NS_ATOM:Ft,NS_BIND:zt,NS_CLIENT:Ut,NS_SASL:Bt,NS_SERVER:"jabber:server",NS_SESSION:Vt,NS_STANZAS:$t,NS_STREAM:Ht,NS_STREAMS:Wt,NS_STARTTLS:Gt,NS_ROSTER:"jabber:iq:roster",NS_ROSTER_VERSIONING:"urn:xmpp:features:rosterver",NS_SUBSCRIPTION_PREAPPROVAL:"urn:xmpp:features:pre-approval",NS_FRAMING:Qt,NS_DATAFORM:Jt,NS_RPC:"jabber:iq:rpc",NS_LAST_ACTIVITY:"jabber:iq:last",NS_PRIVACY:Kt,NS_LEGACY_CHAT_EVENTS:"jabber:x:event",NS_DISCO_INFO:Yt,NS_DISCO_ITEMS:Xt,NS_ADDRESS:Zt,NS_MUC:en,NS_MUC_ADMIN:tn,NS_MUC_OWNER:nn,NS_MUC_USER:rn,NS_IBB:on,NS_BOOKMARKS:"storage:bookmarks",NS_PRIVATE:"jabber:iq:private",NS_ADHOC_COMMANDS:an,NS_VCARD_TEMP:"vcard-temp",NS_SEARCH:"jabber:iq:search",NS_RSM:sn,NS_PUBSUB:ln,NS_PUBSUB_ERRORS:cn,NS_PUBSUB_EVENT:un,NS_PUBSUB_OWNER:dn,NS_SOCKS5:pn,NS_OOB:mn,NS_OOB_TRANSFER:"jabber:iq:oob",NS_HTTP_AUTH:"http://jabber.org/protocol/http-auth",NS_XHTML:hn,NS_XHTML_IM:fn,NS_REGISTER:"jabber:iq:register",NS_INBAND_REGISTRATION:"http://jabber.org/features/iq-register",NS_AMP:"http://jabber.org/protocol/amp",NS_GEOLOC:gn,NS_ROSTER_DELIMITER:"roster:delimiter",NS_AVATAR_DATA:vn,NS_AVATAR_METADATA:bn,NS_CHAT_STATES:yn,NS_VERSION:"jabber:iq:version",NS_MOOD:kn,NS_ACTIVITY:wn,NS_COMPONENT:"jabber:component:accept",NS_DISCO_LEGACY_CAPS:"http://jabber.org/protocol/caps",NS_TUNE:Sn,NS_DATAFORM_VALIDATION:Cn,NS_BOSH:xn,NS_SHIM:En,NS_COMPRESSION_FEATURE:"http://jabber.org/features/compress",NS_COMPRESSION:Tn,NS_DATAFORM_LAYOUT:_n,NS_ROSTER_EXCHANGE:jn,NS_ROSTER_NOTES:"storage:rosternotes",NS_REACH_0:"urn:xmpp:reach:0",NS_VCARD_TEMP_UPDATE:"vcard-temp:x:update",NS_ALT_CONNECTIONS_WEBSOCKET:"urn:xmpp:alt-connections:websocket",NS_ALT_CONNECTIONS_XBOSH:"urn:xmpp:alt-connections:xbosh",NS_CAPTCHA:"urn:xmpp:captcha",NS_PEP_NOTIFY:On,NS_JINGLE_1:Rn,NS_JINGLE_ERRORS_1:"urn:xmpp:jingle:errors:1",NS_JINGLE_RTP_1:Pn,NS_JINGLE_RTP_ERRORS_1:"urn:xmpp:jingle:apps:rtp:errors:1",NS_JINGLE_RTP_INFO_1:In,NS_JINGLE_RTP_AUDIO:"urn:xmpp:jingle:apps:rtp:audio",NS_JINGLE_RTP_VIDEO:"urn:xmpp:jingle:apps:rtp:video",NS_LANG_TRANS:"urn:xmpp:langtrans",NS_LANG_TRANS_ITEMS:"urn:xmpp:langtrans:items",NS_NICK:An,NS_JINGLE_ICE_UDP_1:Mn,NS_JINGLE_RAW_UDP_1:Nn,NS_RECEIPTS:"urn:xmpp:receipts",NS_INVISIBLE_0:"urn:xmpp:invisible:0",NS_BLOCKING:"urn:xmpp:blocking",NS_BLOCKING_ERRORS:"urn:xmpp:blocking:errors",NS_SMACKS_3:Dn,NS_PING:"urn:xmpp:ping",NS_TIME:"urn:xmpp:time",NS_DELAY:Ln,NS_BOSH_XMPP:"urn:xmpp:xbosh",NS_DISCO_EXTERNAL_1:"urn:xmpp:extdisco:1",NS_DISCO_EXTERNAL_2:"urn:xmpp:extdisco:2",NS_DATAFORM_MEDIA:"urn:xmpp:media-element",NS_ATTENTION_0:"urn:xmpp:attention:0",NS_BOB:qn,NS_SOFTWARE_INFO:"urn:xmpp:dataforms:softwareinfo",NS_JINGLE_FILE_TRANSFER_3:"urn:xmpp:jingle:apps:file-transfer:3",NS_JINGLE_FILE_TRANSFER_4:"urn:xmpp:jingle:apps:file-transfer:4",NS_JINGLE_FILE_TRANSFER_5:Fn,NS_JINGLE_XML_0:zn,NS_MUC_DIRECT_INVITE:"jabber:x:conference",NS_SEC_LABEL_0:"urn:xmpp:sec-label:0",NS_SEC_LABEL_CATALOG_2:"urn:xmpp:sec-label:catalog:2",NS_SEC_LABEL_ESS_0:"urn:xmpp:sec-label:ess:0",NS_JINGLE_SOCKS5_1:Un,NS_JINGLE_IBB_1:Bn,NS_JINGLE_RTP_ZRTP_1:"urn:xmpp:jingle:apps:rtp:zrtp:1",NS_THUMBS_0:"urn:xmpp:thumbs:0",NS_THUMBS_1:"urn:xmpp:thumbs:1",NS_DECLOAKING_0:"urn:xmpp:decloaking:0",NS_CARBONS_2:Vn,NS_JINGLE_RTP_RTCP_FB_0:$n,NS_JINGLE_RTP_HDREXT_0:Hn,NS_FORWARD_0:Wn,NS_HASHES_1:"urn:xmpp:hashes:1",NS_HASHES_2:Gn,NS_HASH_NAME:Qn,NS_RTT_0:Jn,NS_MUC_UNIQUE:"http://jabber.org/protocol/muc#unique",NS_CORRECTION_0:"urn:xmpp:message-correct:0",NS_PSA:"urn:xmpp:psa",NS_MAM_TMP:"urn:xmpp:mam:tmp",NS_MAM_0:"urn:xmpp:mam:0",NS_MAM_1:"urn:xmpp:mam:1",NS_MAM_2:"urn:xmpp:mam:2",NS_HATS_0:Kn,NS_IDLE_1:"urn:xmpp:idle:1",NS_JINGLE_DTLS_0:"urn:xmpp:jingle:apps:dtls:0",NS_CHAT_MARKERS_0:Yn,NS_HINTS:Xn,NS_JSON_0:Zn,NS_JINGLE_GROUPING_0:"urn:xmpp:jingle:apps:grouping:0",NS_JINGLE_RTP_SSMA_0:"urn:xmpp:jingle:apps:rtp:ssma:0",NS_JINGLE_DTLS_SCTP_1:"urn:xmpp:jingle:transports:dtls-sctp:1",NS_CSI_0:"urn:xmpp:csi:0",NS_JINGLE_MSG_INITIATE_0:"urn:xmpp:jingle:jingle-message:0",NS_DELEGATION_1:"urn:xmpp:delegation:1",NS_PUSH_0:ei,NS_JINGLE_PUB_1:"urn:xmpp:jinglepub:1",NS_SID_0:"urn:xmpp:sid:0",NS_HTTP_UPLOAD_0:ti,NS_JINGLE_HTTP_0:"urn:xmpp:jingle:transports:http:0",NS_JINGLE_HTTP_UPLOAD_0:"urn:xmpp:jingle:transports:http:upload:0",NS_JINGLE_ICE_0:ni,NS_REFERENCE_0:"urn:xmpp:reference:0",NS_EME_0:"urn:xmpp:eme:0",NS_SPOILER_0:"urn:xmpp:spoiler:0",NS_OMEMO_AXOLOTL:ii,NS_OMEMO_AXOLOTL_DEVICELIST:"eu.siacs.conversations.axolotl.devicelist",NS_OMEMO_AXOLOTL_BUNDLES:"eu.siacs.conversations.axolotl.bundles",NS_OMEMO_AXOLOTL_BUNDLE:e=>"eu.siacs.conversations.axolotl.bundles:"+e,NS_JSON_MESSAGE_0:"urn:xmpp:json-msg:0",NS_XRD:ri,NS_JINGLE_RTP_MSID_0:"urn:xmpp:jingle:apps:rtp:msid:0"});const ai=Ge,si=it,li=pt;function ci(e,t,n){return{aliases:Array.isArray(n)?n:[n],element:t,fields:{},namespace:e}}function ui(e){return{element:"message",fields:e,namespace:Ut}}function di(e){return{element:"presence",fields:e,namespace:Ut}}function pi(e){return{element:"iq",fields:e,namespace:Ut}}function mi(e){return{element:"features",fields:e,namespace:Ht}}function hi(e){return{element:"error",fields:e,namespace:$t,path:"stanzaError"}}function fi(){return[{path:"pubsubcontent",contextField:"itemType"},{path:"pubsubitem.content",contextField:"itemType"},{path:"pubsubeventitem.content",contextField:"itemType"},{path:"iq.pubsub.publish.items",contextField:"itemType"}]}class gi extends c.Transform{constructor(e){super({objectMode:!0}),this.closedStream=!1,this.wrappedStream=!1,this.registry=e.registry,this.acceptLanguages=e.acceptLanguages||[],e.wrappedStream&&(this.wrappedStream=!0,this.rootImportKey=e.rootKey),this.parser=new Ee({allowComments:e.allowComments}),this.parser.on("error",e=>{this.destroy(e)}),this.parser.on("startElement",(e,t)=>{if(this.destroyed)return;if(this.closedStream)return this.destroy(Z.alreadyClosed());const n=new ue(e,t),i=this.registry.getImportKey(n);if(this.wrappedStream&&!this.rootElement){if(this.rootImportKey&&i!==this.rootImportKey)return this.destroy(Z.unknownRoot());const e=this.registry.import(n,{acceptLanguages:this.acceptLanguages,lang:this.lang});return e?(this.rootElement=n,void this.push({event:"stream-start",kind:i,stanza:e,xml:n})):this.destroy(Z.notWellFormed())}this.currentElement?this.currentElement=this.currentElement.appendChild(n):this.currentElement=n}),this.parser.on("endElement",e=>{if(!this.destroyed){if(this.wrappedStream&&!this.currentElement)return this.rootElement&&e===this.rootElement.name?(this.closedStream=!0,this.push({event:"stream-end",kind:this.rootImportKey,stanza:{},xml:this.rootElement}),this.end()):(this.closedStream=!0,this.destroy(Z.notWellFormed()));if(!this.currentElement||e!==this.currentElement.name)return this.closedStream=!0,this.destroy(Z.notWellFormed());if(this.currentElement.parent)this.currentElement=this.currentElement.parent;else{this.wrappedStream&&(this.currentElement.parent=this.rootElement);const e=this.registry.getImportKey(this.currentElement),t=this.registry.import(this.currentElement,{acceptLanguages:this.acceptLanguages,lang:this.lang});t&&this.push({kind:e,stanza:t,xml:this.currentElement}),this.currentElement=void 0}}}),this.parser.on("text",e=>{this.currentElement&&this.currentElement.children.push(e)})}_transform(e,t,n){this.parser.write(e.toString()),n()}}var vi=Object.freeze({__proto__:null,Registry:qt,Translator:Lt,XMLElement:ue,define:function(e){return t=>{t.define(e)}},Parser:Ee,parse:Te,StreamParser:gi,escapeXML:ae,unescapeXML:se,escapeXMLText:le,basicLanguageResolver:ce,createElement:_e,getLang:je,getTargetLang:Oe,findAll:Re,findOrCreate:Pe,attribute:Ge,booleanAttribute:Qe,integerAttribute:Je,floatAttribute:Ke,dateAttribute:Ye,namespacedAttribute:Xe,namespacedBooleanAttribute:Ze,namespacedIntegerAttribute:et,namespacedFloatAttribute:tt,namespacedDateAttribute:nt,childAttribute:it,childBooleanAttribute:rt,childIntegerAttribute:ot,childFloatAttribute:at,childDateAttribute:st,text:lt,textJSON:ct,textBuffer:ut,languageAttribute:dt,childLanguageAttribute:(e,t)=>Ne(Object.assign({converter:dt(),element:t,name:"xml:lang",namespace:e},Fe)),childText:pt,childTextBuffer:mt,childDate:ht,childInteger:ft,childFloat:gt,childJSON:vt,childTimezoneOffset:bt,childBoolean:yt,deepChildText:wt,deepChildInteger:St,deepChildBoolean:Ct,deepMultipleChildText:xt,childEnum:Et,childDoubleEnum:Tt,multipleChildText:_t,multipleChildAttribute:jt,multipleChildIntegerAttribute:Ot,childAlternateLanguageText:Rt,multipleChildAlternateLanguageText:function(e,t){return{importer(n,i){const r=[],o=new Map;let a=!1;const s=Re(n,e||n.getNamespace(),t);for(const e of s){const t=e.getText();if(t){const n=je(e,i.lang);let s=o.get(n);s||(s=[],o.set(n,s),r.push({lang:n,value:s})),s.push(t),a=!0}}return a?r:void 0},exporter(n,i,r){for(const o of i)for(const i of o.value){const a=_e(e||n.getNamespace(),t,r.namespace,n);o.lang!==r.lang&&a.setAttribute("xml:lang",o.lang),a.children.push(i),n.appendChild(a)}}}},multipleChildEnum:Pt,splicePath:It,staticValue:At,childRawElement:function(e,t,n){return{importer(i,r){if(n&&(!r.sanitizers||!r.sanitizers[n]))return;const o=i.getChild(t,e||i.getNamespace());return o?n?r.sanitizers[n](o.toJSON()):o.toJSON():void 0},exporter(i,r,o){if("string"==typeof r){r=Te(`<${t} xmlns="${e||i.getNamespace()}">${r}</${t}>`).toJSON()}if(n){if(!o.sanitizers||!o.sanitizers[n])return;r=o.sanitizers[n](r)}r&&i.appendChild(new ue(r.name,r.attributes,r.children))}}},childLanguageRawElement:Mt,childAlternateLanguageRawElement:Nt,parameterMap:Dt,JIDAttribute:ai,childJIDAttribute:si,childJID:li,addAlias:ci,extendMessage:ui,extendPresence:di,extendIQ:pi,extendStreamFeatures:mi,extendStanzaError:hi,pubsubItemContentAliases:fi});class bi extends c.Transform{constructor(t,n,i="be"){super(),this._block=e.alloc(t),this._finalSize=n,this._blockSize=t,this._bigEndian="be"===i,this._len=0}_transform(e,t,n){let i=null;try{this.update(e,t)}catch(e){i=e}n(i)}_flush(e){let t=null;try{this.push(this.digest())}catch(e){t=e}e(t)}update(t,n){"string"==typeof t&&(n=n||"utf8",t=e.from(t,n));const i=this._block,r=this._blockSize,o=t.length;let a=this._len;for(let e=0;e<o;){const n=a%r,s=Math.min(o-e,r-n);for(let r=0;r<s;r++)i[n+r]=t[e+r];a+=s,e+=s,a%r==0&&this._update(i)}return this._len+=o,this}digest(e){const t=this._len%this._blockSize;this._block[t]=128,this._block.fill(0,t+1),t>=this._finalSize&&(this._update(this._block),this._block.fill(0));const n=8*this._len;if(n<=4294967295)this._bigEndian?(this._block.writeUInt32BE(0,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)):(this._block.writeUInt32LE(n,this._blockSize-8),this._block.writeUInt32LE(0,this._blockSize-4));else{const e=(4294967295&n)>>>0,t=(n-e)/4294967296;this._bigEndian?(this._block.writeUInt32BE(t,this._blockSize-8),this._block.writeUInt32BE(e,this._blockSize-4)):(this._block.writeUInt32LE(e,this._blockSize-8),this._block.writeUInt32LE(t,this._blockSize-4))}this._update(this._block);const i=this._hash();return e?i.toString(e):i}_update(e){throw new Error("_update must be implemented by subclass")}_hash(){throw new Error("_update must be implemented by subclass")}}function yi(e,t){return e<<t|e>>>32-t}function ki(e,t,n,i,r,o,a){return yi(e+(t&n|~t&i)+r+o|0,a)+t|0}function wi(e,t,n,i,r,o,a){return yi(e+(t&i|n&~i)+r+o|0,a)+t|0}function Si(e,t,n,i,r,o,a){return yi(e+(t^n^i)+r+o|0,a)+t|0}function Ci(e,t,n,i,r,o,a){return yi(e+(n^(t|~i))+r+o|0,a)+t|0}const xi=[1518500249,1859775393,-1894007588,-899497514];function Ei(e){return e<<5|e>>>27}function Ti(e){return e<<30|e>>>2}function _i(e,t,n,i){return 0===e?t&n|~t&i:2===e?t&n|t&i|n&i:t^n^i}class ji extends bi{constructor(){super(64,56),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this._w=new Array(80)}_update(e){const t=this._w;let n,i=0|this._a,r=0|this._b,o=0|this._c,a=0|this._d,s=0|this._e;for(n=0;n<16;++n)t[n]=e.readInt32BE(4*n);for(;n<80;++n)t[n]=(l=t[n-3]^t[n-8]^t[n-14]^t[n-16])<<1|l>>>31;var l;for(let e=0;e<80;++e){const n=~~(e/20),l=Ei(i)+_i(n,r,o,a)+s+t[e]+xi[n]|0;s=a,a=o,o=Ti(r),r=i,i=l}this._a=i+this._a|0,this._b=r+this._b|0,this._c=o+this._c|0,this._d=a+this._d|0,this._e=s+this._e|0}_hash(){const t=e.allocUnsafe(20);return t.writeInt32BE(0|this._a,0),t.writeInt32BE(0|this._b,4),t.writeInt32BE(0|this._c,8),t.writeInt32BE(0|this._d,12),t.writeInt32BE(0|this._e,16),t}}const Oi=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function Ri(e,t,n){return n^e&(t^n)}function Pi(e,t,n){return e&t|n&(e|t)}function Ii(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function Ai(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function Mi(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}class Ni extends bi{constructor(){super(64,56),this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this._w=new Array(64)}_update(e){const t=this._w;let n,i=0|this._a,r=0|this._b,o=0|this._c,a=0|this._d,s=0|this._e,l=0|this._f,c=0|this._g,u=0|this._h;for(n=0;n<16;++n)t[n]=e.readInt32BE(4*n);for(;n<64;++n)t[n]=0|(((d=t[n-2])>>>17|d<<15)^(d>>>19|d<<13)^d>>>10)+t[n-7]+Mi(t[n-15])+t[n-16];var d;for(let e=0;e<64;++e){const n=u+Ai(s)+Ri(s,l,c)+Oi[e]+t[e]|0,d=Ii(i)+Pi(i,r,o)|0;u=c,c=l,l=s,s=a+n|0,a=o,o=r,r=i,i=n+d|0}this._a=i+this._a|0,this._b=r+this._b|0,this._c=o+this._c|0,this._d=a+this._d|0,this._e=s+this._e|0,this._f=l+this._f|0,this._g=c+this._g|0,this._h=u+this._h|0}_hash(){const t=e.allocUnsafe(32);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t.writeInt32BE(this._h,28),t}}const Di=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function Li(e,t,n){return n^e&(t^n)}function qi(e,t,n){return e&t|n&(e|t)}function Fi(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function zi(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function Ui(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function Bi(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function Vi(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function $i(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function Hi(e,t){return e>>>0<t>>>0?1:0}class Wi extends bi{constructor(){super(128,112),this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this._w=new Array(160)}_update(e){const t=this._w;let n,i,r=0|this._ah,o=0|this._bh,a=0|this._ch,s=0|this._dh,l=0|this._eh,c=0|this._fh,u=0|this._gh,d=0|this._hh,p=0|this._al,m=0|this._bl,h=0|this._cl,f=0|this._dl,g=0|this._el,v=0|this._fl,b=0|this._gl,y=0|this._hl,k=0;for(k=0;k<32;k+=2)t[k]=e.readInt32BE(4*k),t[k+1]=e.readInt32BE(4*k+4);for(;k<160;k+=2){let e=t[k-30],r=t[k-30+1];const o=Ui(e,r),a=Bi(r,e);e=t[k-4],r=t[k-4+1];const s=Vi(e,r),l=$i(r,e),c=t[k-14],u=t[k-14+1],d=t[k-32],p=t[k-32+1];i=a+u|0,n=o+c+Hi(i,a)|0,i=i+l|0,n=n+s+Hi(i,l)|0,i=i+p|0,n=n+d+Hi(i,p)|0,t[k]=n,t[k+1]=i}for(let e=0;e<160;e+=2){n=t[e],i=t[e+1];const k=qi(r,o,a),w=qi(p,m,h),S=Fi(r,p),C=Fi(p,r),x=zi(l,g),E=zi(g,l),T=Di[e],_=Di[e+1],j=Li(l,c,u),O=Li(g,v,b);let R=y+E|0,P=d+x+Hi(R,y)|0;R=R+O|0,P=P+j+Hi(R,O)|0,R=R+_|0,P=P+T+Hi(R,_)|0,R=R+i|0,P=P+n+Hi(R,i)|0;const I=C+w|0,A=S+k+Hi(I,C)|0;d=u,y=b,u=c,b=v,c=l,v=g,g=f+R|0,l=s+P+Hi(g,f)|0,s=a,f=h,a=o,h=m,o=r,m=p,p=R+I|0,r=P+A+Hi(p,R)|0}this._al=this._al+p|0,this._bl=this._bl+m|0,this._cl=this._cl+h|0,this._dl=this._dl+f|0,this._el=this._el+g|0,this._fl=this._fl+v|0,this._gl=this._gl+b|0,this._hl=this._hl+y|0,this._ah=this._ah+r+Hi(this._al,p)|0,this._bh=this._bh+o+Hi(this._bl,m)|0,this._ch=this._ch+a+Hi(this._cl,h)|0,this._dh=this._dh+s+Hi(this._dl,f)|0,this._eh=this._eh+l+Hi(this._el,g)|0,this._fh=this._fh+c+Hi(this._fl,v)|0,this._gh=this._gh+u+Hi(this._gl,b)|0,this._hh=this._hh+d+Hi(this._hl,y)|0}_hash(){const t=e.allocUnsafe(64);function n(e,n,i){t.writeInt32BE(e,i),t.writeInt32BE(n,i+4)}return n(this._ah,this._al,0),n(this._bh,this._bl,8),n(this._ch,this._cl,16),n(this._dh,this._dl,24),n(this._eh,this._el,32),n(this._fh,this._fl,40),n(this._gh,this._gl,48),n(this._hh,this._hl,56),t}}const Gi=new Map([["md5",class extends bi{constructor(){super(64,56,"le"),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._m=new Array(16)}_update(e){const t=this._m;for(let n=0;n<16;++n)t[n]=e.readInt32LE(4*n);let n=this._a,i=this._b,r=this._c,o=this._d;n=ki(n,i,r,o,t[0],3614090360,7),o=ki(o,n,i,r,t[1],3905402710,12),r=ki(r,o,n,i,t[2],606105819,17),i=ki(i,r,o,n,t[3],3250441966,22),n=ki(n,i,r,o,t[4],4118548399,7),o=ki(o,n,i,r,t[5],1200080426,12),r=ki(r,o,n,i,t[6],2821735955,17),i=ki(i,r,o,n,t[7],4249261313,22),n=ki(n,i,r,o,t[8],1770035416,7),o=ki(o,n,i,r,t[9],2336552879,12),r=ki(r,o,n,i,t[10],4294925233,17),i=ki(i,r,o,n,t[11],2304563134,22),n=ki(n,i,r,o,t[12],1804603682,7),o=ki(o,n,i,r,t[13],4254626195,12),r=ki(r,o,n,i,t[14],2792965006,17),i=ki(i,r,o,n,t[15],1236535329,22),n=wi(n,i,r,o,t[1],4129170786,5),o=wi(o,n,i,r,t[6],3225465664,9),r=wi(r,o,n,i,t[11],643717713,14),i=wi(i,r,o,n,t[0],3921069994,20),n=wi(n,i,r,o,t[5],3593408605,5),o=wi(o,n,i,r,t[10],38016083,9),r=wi(r,o,n,i,t[15],3634488961,14),i=wi(i,r,o,n,t[4],3889429448,20),n=wi(n,i,r,o,t[9],568446438,5),o=wi(o,n,i,r,t[14],3275163606,9),r=wi(r,o,n,i,t[3],4107603335,14),i=wi(i,r,o,n,t[8],1163531501,20),n=wi(n,i,r,o,t[13],2850285829,5),o=wi(o,n,i,r,t[2],4243563512,9),r=wi(r,o,n,i,t[7],1735328473,14),i=wi(i,r,o,n,t[12],2368359562,20),n=Si(n,i,r,o,t[5],4294588738,4),o=Si(o,n,i,r,t[8],2272392833,11),r=Si(r,o,n,i,t[11],1839030562,16),i=Si(i,r,o,n,t[14],4259657740,23),n=Si(n,i,r,o,t[1],2763975236,4),o=Si(o,n,i,r,t[4],1272893353,11),r=Si(r,o,n,i,t[7],4139469664,16),i=Si(i,r,o,n,t[10],3200236656,23),n=Si(n,i,r,o,t[13],681279174,4),o=Si(o,n,i,r,t[0],3936430074,11),r=Si(r,o,n,i,t[3],3572445317,16),i=Si(i,r,o,n,t[6],76029189,23),n=Si(n,i,r,o,t[9],3654602809,4),o=Si(o,n,i,r,t[12],3873151461,11),r=Si(r,o,n,i,t[15],530742520,16),i=Si(i,r,o,n,t[2],3299628645,23),n=Ci(n,i,r,o,t[0],4096336452,6),o=Ci(o,n,i,r,t[7],1126891415,10),r=Ci(r,o,n,i,t[14],2878612391,15),i=Ci(i,r,o,n,t[5],4237533241,21),n=Ci(n,i,r,o,t[12],1700485571,6),o=Ci(o,n,i,r,t[3],2399980690,10),r=Ci(r,o,n,i,t[10],4293915773,15),i=Ci(i,r,o,n,t[1],2240044497,21),n=Ci(n,i,r,o,t[8],1873313359,6),o=Ci(o,n,i,r,t[15],4264355552,10),r=Ci(r,o,n,i,t[6],2734768916,15),i=Ci(i,r,o,n,t[13],1309151649,21),n=Ci(n,i,r,o,t[4],4149444226,6),o=Ci(o,n,i,r,t[11],3174756917,10),r=Ci(r,o,n,i,t[2],718787259,15),i=Ci(i,r,o,n,t[9],3951481745,21),this._a=this._a+n|0,this._b=this._b+i|0,this._c=this._c+r|0,this._d=this._d+o|0}_hash(){const t=e.allocUnsafe(16);return t.writeInt32LE(this._a,0),t.writeInt32LE(this._b,4),t.writeInt32LE(this._c,8),t.writeInt32LE(this._d,12),t}}],["sha-1",ji],["sha-256",Ni],["sha-512",Wi],["sha1",ji],["sha256",Ni],["sha512",Wi]]);function Qi(e){e=e.toLowerCase();const t=Gi.get(e);if(t)return new t;throw new Error("Unsupported hash algorithm: "+e)}const Ji=e.alloc(128);class Ki extends c.Transform{constructor(t,n){super(),"string"==typeof n&&(n=e.from(n));const i="sha512"===t?128:64;this._alg=t,n.length>i?n=Qi(t).update(n).digest():n.length<i&&(n=e.concat([n,Ji],i)),this._ipad=e.alloc(i),this._opad=e.alloc(i);for(let e=0;e<i;e++)this._ipad[e]=54^n[e],this._opad[e]=92^n[e];this._hash=Qi(t).update(this._ipad)}_transform(e,t,n){let i;try{this.update(e,t)}catch(e){i=e}finally{n(i)}}_flush(e){let t;try{this.push(this._final())}catch(e){t=e}e(t)}_final(){const e=this._hash.digest();return Qi(this._alg).update(this._opad).update(e).digest()}update(e,t){return this._hash.update(e,t),this}digest(t){const n=this._final()||e.alloc(0);return t?n.toString(t):n}}let Yi;function Xi(t){const n=new Uint8Array(t);return t>0&&(Yi.crypto||Yi.msCrypto).getRandomValues(n),e.from(n.buffer)}"undefined"!=typeof window?Yi=window:void 0!==i&&(Yi=i);const Zi=fetch,er=WebSocket,tr=Yi.RTCPeerConnection;class nr{constructor(e){this.authenticated=!1,this.mutuallyAuthenticated=!1,this.name=e}getCacheableCredentials(){return null}processChallenge(e){}processSuccess(e){this.authenticated=!0}finalize(){const e={authenticated:this.authenticated,mutuallyAuthenticated:this.mutuallyAuthenticated};return this.errorData&&(e.errorData=this.errorData),e}}class ir{constructor(){this.mechanisms=[]}register(e,t,n){this.mechanisms.push({constructor:t,name:e.toUpperCase(),priority:n||this.mechanisms.length}),this.mechanisms.sort((e,t)=>t.priority-e.priority)}disable(e){const t=e.toUpperCase();this.mechanisms=this.mechanisms.filter(e=>e.name!==t)}createMechanism(e){const t=e.map(e=>e.toUpperCase());for(const e of this.mechanisms)for(const n of t)if(n===e.name)return new e.constructor(e.name);return null}}function rr(e=32){return Xi(e).toString("hex")}function or(t,n){const i=[];for(let e=0;e<t.length;e++)i.push(t[e]^n[e]);return e.from(i)}function ar(e,t){return Qi(t).update(e).digest()}function sr(e,t,n){return function(e,t){return new Ki(e.toLowerCase(),t)}(n,e).update(t).digest()}function lr(t,n,i,r){let o=sr(t,e.concat([n,e.from("00000001","hex")]),r),a=o;for(let e=0;e<i-1;e++)o=sr(t,o,r),a=or(a,o);return a}function cr(e){const t={},n=e.toString().split(/,(?=(?:[^"]|"[^"]*")*$)/);for(let e=0,i=n.length;e<i;e++){const i=/(\w+)=["]?([^"]+)["]?$/.exec(n[e]);i&&(t[i[1]]=i[2])}return t}function ur(e){const t=[];for(const n of e)","===n?t.push("=2C"):"="===n?t.push("=3D"):t.push(n);return t.join("")}class dr extends nr{getExpectedCredentials(){return{optional:["trace"],required:[]}}createResponse(t){return e.from(t.trace||"")}}class pr extends nr{getExpectedCredentials(){return{optional:["authzid"],required:[]}}createResponse(t){return e.from(t.authzid||"")}}class mr extends nr{getExpectedCredentials(){return{optional:["authzid"],required:["username","password"]}}createResponse(t){return e.from((t.authzid||"")+"\0"+t.username+"\0"+(t.password||t.token))}}class hr extends nr{constructor(e){super(e),this.failed=!1,this.name=e}getExpectedCredentials(){return{optional:["authzid"],required:["token"]}}createResponse(t){if(this.failed)return e.from("");const n=`n,${ur(q(t.authzid))},`,i=`auth=Bearer ${t.token}`;return e.from(n+""+i+"","utf8")}processChallenge(e){this.failed=!0,this.errorData=JSON.parse(e.toString("utf8"))}}class fr extends nr{constructor(e){super(e),this.providesMutualAuthentication=!1,this.state="INITIAL",this.name=e}processChallenge(e){this.state="CHALLENGE";const t=cr(e);this.authenticated=!!t.rspauth,this.realm=t.realm,this.nonce=t.nonce,this.charset=t.charset}getExpectedCredentials(){return{optional:["authzid","clientNonce","realm"],required:["host","password","serviceName","serviceType","username"]}}createResponse(t){if("INITIAL"===this.state||this.authenticated)return null;let n=t.serviceType+"/"+t.host;t.serviceName&&t.host!==t.serviceName&&(n+="/"+t.serviceName);const i=t.realm||this.realm||"",r=t.clientNonce||rr(16),o="00000001";let a="";a+='username="'+t.username+'"',i&&(a+=',realm="'+i+'"'),a+=',nonce="'+this.nonce+'"',a+=',cnonce="'+r+'"',a+=",nc="+o,a+=",qop=auth",a+=',digest-uri="'+n+'"';const s=Qi("md5").update(t.username).update(":").update(i).update(":").update(t.password).digest(),l=Qi("md5").update(s).update(":").update(this.nonce).update(":").update(r);t.authzid&&l.update(":").update(t.authzid);const c=l.digest("hex"),u=Qi("md5").update("AUTHENTICATE:").update(n).digest("hex");return a+=",response="+Qi("md5").update(c).update(":").update(this.nonce).update(":").update(o).update(":").update(r).update(":").update("auth").update(":").update(u).digest("hex"),"utf-8"===this.charset&&(a+=",charset=utf-8"),t.authzid&&(a+=',authzid="'+t.authzid+'"'),e.from(a)}}class gr{constructor(e){this.providesMutualAuthentication=!0,this.name=e,this.state="INITIAL",this.useChannelBinding=this.name.toLowerCase().endsWith("-plus"),this.algorithm=this.name.toLowerCase().split("scram-")[1].split("-plus")[0]}getExpectedCredentials(){const e=["username","password"];return this.useChannelBinding&&e.push("tlsUnique"),{optional:["authzid","clientNonce"],required:e}}getCacheableCredentials(){return this.cache}createResponse(e){return"INITIAL"===this.state?this.initialResponse(e):this.challengeResponse(e)}processChallenge(t){const n=cr(t);this.salt=e.from(n.s||"","base64"),this.iterationCount=parseInt(n.i,10),this.nonce=n.r,this.verifier=n.v,this.error=n.e,this.challenge=t}processSuccess(e){this.processChallenge(e)}finalize(){return this.verifier?this.serverSignature.toString("base64")!==this.verifier?{authenticated:!1,error:"Mutual authentication failed",mutuallyAuthenticated:!1}:{authenticated:!0,mutuallyAuthenticated:!0}:{authenticated:!1,error:this.error,mutuallyAuthenticated:!1}}initialResponse(t){const n=ur(q(t.authzid)),i=ur(q(t.username));this.clientNonce=t.clientNonce||rr();let r="n";t.tlsUnique&&(r=this.useChannelBinding?"p=tls-unique":"y"),this.gs2Header=e.from(n?`${r},a=${n},`:r+",,"),this.clientFirstMessageBare=e.from(`n=${i},r=${this.clientNonce}`);const o=e.concat([this.gs2Header,this.clientFirstMessageBare]);return this.state="CHALLENGE",o}challengeResponse(t){const n=e.from("Client Key"),i=e.from("Server Key"),r=e.concat([this.gs2Header,t.tlsUnique||e.from("")]).toString("base64"),o=e.from(`c=${r},r=${this.nonce}`);let a,s,l;const c=t.salt&&0===e.compare(t.salt,this.salt);c&&t.clientKey&&t.serverKey?(s=e.from(t.clientKey),l=e.from(t.serverKey)):c&&t.saltedPassword?(a=e.from(t.saltedPassword),s=sr(a,n,this.algorithm),l=sr(a,i,this.algorithm)):(a=lr(e.from(q(t.password)),this.salt,this.iterationCount,this.algorithm),s=sr(a,n,this.algorithm),l=sr(a,i,this.algorithm));const u=ar(s,this.algorithm),d=e.from(","),p=e.concat([this.clientFirstMessageBare,d,this.challenge,d,o]),m=or(s,sr(u,p,this.algorithm)).toString("base64");this.serverSignature=sr(l,p,this.algorithm);const h=e.concat([o,e.from(",p="+m)]);return this.state="FINAL",this.cache={clientKey:s,salt:this.salt,saltedPassword:a,serverKey:l},h}}function vr(e){e.getAccountInfo=t=>Object(r.a)(this,void 0,void 0,(function*(){return(yield e.sendIQ({account:{},to:t,type:"get"})).account})),e.updateAccount=(t,n)=>e.sendIQ({account:n,to:t,type:"set"}),e.deleteAccount=t=>e.sendIQ({account:{remove:!0},to:t,type:"set"}),e.getPrivateData=t=>Object(r.a)(this,void 0,void 0,(function*(){return(yield e.sendIQ({privateStorage:{[t]:{}},type:"get"})).privateStorage[t]})),e.setPrivateData=(t,n)=>Object(r.a)(this,void 0,void 0,(function*(){return e.sendIQ({privateStorage:{[t]:n},type:"set"})})),e.getVCard=t=>Object(r.a)(this,void 0,void 0,(function*(){return(yield e.sendIQ({to:t,type:"get",vcard:{format:"vcard-temp"}})).vcard})),e.publishVCard=t=>Object(r.a)(this,void 0,void 0,(function*(){yield e.sendIQ({type:"set",vcard:t})})),e.enableNotifications=(t,n,i=[])=>e.sendIQ({push:{action:"enable",form:{fields:[{name:"FORM_TYPE",type:"hidden",value:"http://jabber.org/protocol/pubsub#publish-options"},...i],type:"submit"},jid:t,node:n},type:"set"}),e.disableNotifications=(t,n)=>e.sendIQ({push:{action:"disable",jid:t,node:n},type:"set"})}function br(e){e.disco.addFeature(On(bn)),e.on("pubsub:published",t=>{if(t.pubsub.items.node!==bn)return;const n=t.pubsub.items.published[0].content;e.emit("avatar",{avatars:n.versions||[],jid:t.from,source:"pubsub"})}),e.on("presence",t=>{t.vcardAvatar&&"string"==typeof t.vcardAvatar&&e.emit("avatar",{avatars:[{id:t.vcardAvatar}],jid:t.from,source:"vcard"})}),e.publishAvatar=(t,n)=>e.publish("",vn,{data:n,itemType:vn},t),e.useAvatars=(t,n=[])=>e.publish("",bn,{itemType:bn,pointers:n,versions:t},"current"),e.getAvatar=(t,n)=>e.getItem(t,vn,n)}function yr(e){e.registerFeature("bind",300,(t,n)=>Object(r.a)(this,void 0,void 0,(function*(){try{const i=yield e.sendIQ({bind:{resource:e.config.resource},type:"set"});e.features.negotiated.bind=!0,e.emit("session:prebind",i.bind.jid);const r=!t.legacySession||t.legacySession&&t.legacySession.optional;return!e.sessionStarted&&r&&e.emit("session:started",e.jid),n()}catch(e){return console.error(e),n("disconnect","JID binding failed")}}))),e.registerFeature("legacySession",1e3,(t,n)=>Object(r.a)(this,void 0,void 0,(function*(){if(e.sessionStarted||t.legacySession&&t.legacySession.optional)return e.features.negotiated.session=!0,n();try{return yield e.sendIQ({legacySession:!0,type:"set"}),e.features.negotiated.session=!0,e.sessionStarted||(e.sessionStarted=!0,e.emit("session:started",e.jid)),n()}catch(e){return n("disconnect","Session requeset failed")}}))),e.on("session:started",()=>{e.sessionStarted=!0}),e.on("session:prebind",t=>{e.jid=t,e.emit("session:bound",e.jid)}),e.on("--reset-stream-features",()=>{e.sessionStarted=!1,e.features.negotiated.bind=!1,e.features.negotiated.session=!1})}function kr(e){e.disco.addFeature(an),e.disco.addItem({name:"Ad-Hoc Commands",node:an}),e.getCommands=t=>e.getDiscoItems(t,an)}const wr=[];for(let e=0;e<256;++e)wr[e]=(e+256).toString(16).substr(1);function Sr(e,t,n=(()=>{})){return Object(r.a)(this,void 0,void 0,(function*(){let i;const r=yield Promise.race([e,new Promise((e,r)=>{i=setTimeout(()=>r(n()),t)})]);return clearTimeout(i),r}))}function Cr(e){return Object(r.a)(this,void 0,void 0,(function*(){return new Promise(t=>{setTimeout(()=>t(),e)})}))}function xr(t,n){const i="string"==typeof t?e.from(t,"utf8"):t,r="string"==typeof n?e.from(n,"utf8"):n;return i.compare(r)}function Er(){const e=Xi(16);e[6]=15&e[6]|64,e[8]=63&e[8]|128;let t=0;return[wr[e[t++]],wr[e[t++]],wr[e[t++]],wr[e[t++]],"-",wr[e[t++]],wr[e[t++]],"-",wr[e[t++]],wr[e[t++]],"-",wr[e[t++]],wr[e[t++]],"-",wr[e[t++]],wr[e[t++]],wr[e[t++]],wr[e[t++]],wr[e[t++]],wr[e[15]]].join("")}const Tr=new Set(["date","expires","httpUploadRetry","idleSince","published","since","stamp","timestamp","updated","utc"]),_r=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*)?)(?:Z|((\+|-)([\d|:]*)))?$/;var jr=Object.freeze({__proto__:null,timeoutPromise:Sr,sleep:Cr,octetCompare:xr,uuid:Er,reviveData:function(t,n){return Tr.has(t)&&n&&"string"==typeof n&&_r.test(n)?new Date(n):n&&"object"==typeof n&&"Buffer"===n.type&&Array.isArray(n.data)?e.from(n):n}});function Or(e,t){e.features.negotiated.clientStateIndication&&e.send("csi",{type:t})}function Rr(e){e.disco.addFeature("urn:xmpp:ping"),e.on("iq:get:ping",t=>{e.sendIQResult(t)}),e.on("--reset-stream-features",()=>{e.disableKeepAlive(),e.features.negotiated.streamManagement=!1,e.features.negotiated.clientStateIndication=!1}),e.markActive=()=>Or(e,"active"),e.markInactive=()=>Or(e,"inactive"),e.ping=t=>Object(r.a)(this,void 0,void 0,(function*(){yield e.sendIQ({ping:!0,to:t,type:"get"})})),e.enableKeepAlive=(t={})=>{const n=t.interval||300,i=t.timeout||e.config.timeout||15;e._keepAliveInterval=setInterval((function(){return Object(r.a)(this,void 0,void 0,(function*(){if(e.sessionStarted)try{yield Sr(function(e){return Object(r.a)(this,void 0,void 0,(function*(){if(e.sm.started)return new Promise(t=>{e.once("stream:management:ack",()=>t()),e.sm.request()});try{yield e.ping()}catch(e){if(e.error&&"timeout"!==e.error.condition)return;throw e}}))}(e),1e3*i)}catch(t){e.emit("stream:error",{condition:"connection-timeout",text:"Server did not respond in "+i+" seconds"}),e.transport&&(e.transport.hasStream=!1,e.transport.disconnect())}}))}),1e3*n)},e.disableKeepAlive=()=>{e._keepAliveInterval&&(clearInterval(e._keepAliveInterval),delete e._keepAliveInterval)};const t=(t,n)=>Object(r.a)(this,void 0,void 0,(function*(){if(!e.config.useStreamManagement)return n();const t=i=>Object(r.a)(this,void 0,void 0,(function*(){switch(i.type){case"enabled":return yield e.sm.enabled(i),e.features.negotiated.streamManagement=!0,e.off("sm",t),n();case"resumed":return yield e.sm.resumed(i),e.features.negotiated.streamManagement=!0,e.features.negotiated.bind=!0,e.sessionStarted=!0,e.off("sm",t),e.emit("stream:management:resumed",i),n("break");case"failed":yield e.sm.failed(i),e.off("sm",t),e.emit("session:end"),n()}}));e.on("sm",t),e.sm.id?e.sm.id&&e.sm.allowResume?yield e.sm.resume():(e.off("sm",t),n()):e.features.negotiated.bind?yield e.sm.enable():(e.off("sm",t),n())}));e.registerFeature("streamManagement",200,t),e.registerFeature("streamManagement",500,t),e.registerFeature("clientStateIndication",400,(t,n)=>{e.features.negotiated.clientStateIndication=!0,n()})}function Pr(t){return e.from(t.replace(/</g,"<"),"utf-8")}function Ir(e=[]){const t=[];for(const n of e)"FORM_TYPE"!==n.name&&(n.rawValues?t.push({name:Pr(n.name),values:n.rawValues.map(e=>Pr(e)).sort(xr)}):Array.isArray(n.value)?t.push({name:Pr(n.name),values:n.value.map(e=>Pr(e)).sort(xr)}):!0===n.value||!1===n.value?t.push({name:Pr(n.name),values:[Pr(n.value?"1":"0")]}):t.push({name:Pr(n.name),values:[Pr(n.value||"")]}));t.sort((e,t)=>xr(e.name,t.name));const n=[];for(const e of t){n.push(e.name);for(const t of e.values)n.push(t)}return n}function Ar(t,n){const i=[],r=e.from("<","utf8"),o=e=>{i.push(e),i.push(r)},a=function(e=[]){const t=[],n=new Set;for(const{category:i,type:r,lang:o,name:a}of e){const e=`${i}/${r}/${o||""}/${a||""}`;if(n.has(e))return null;n.add(e),t.push(Pr(e))}return t.sort(xr),t}(t.identities),s=function(e=[]){const t=[],n=new Set;for(const i of e){if(n.has(i))return null;n.add(i),t.push(Pr(i))}return t.sort(xr),t}(t.features),l=function(e=[]){const t=[],n=new Set;for(const i of e){let e;for(const t of i.fields||[])if("FORM_TYPE"===t.name&&"hidden"===t.type){if(t.rawValues&&1===t.rawValues.length){e=Pr(t.rawValues[0]);break}if(t.value&&"string"==typeof t.value){e=Pr(t.value);break}}if(e){if(n.has(e.toString()))return null;n.add(e.toString()),t.push({type:e,form:i})}}t.sort((e,t)=>xr(e.type,t.type));const i=[];for(const e of t){i.push(e.type);const t=Ir(e.form.fields);for(const e of t)i.push(e)}return i}(t.extensions);if(!a||!s||!l)return null;for(const e of a)o(e);for(const e of s)o(e);for(const e of l)o(e);return Qi(n).update(e.concat(i)).digest("base64")}class Mr{constructor(){this.capsAlgorithms=["sha-1"],this.features=new Map,this.identities=new Map,this.extensions=new Map,this.items=new Map,this.caps=new Map,this.features.set("",new Set),this.identities.set("",[]),this.extensions.set("",[])}getNodeInfo(e){return{extensions:[...this.extensions.get(e)||[]],features:[...this.features.get(e)||[]],identities:[...this.identities.get(e)||[]]}}addFeature(e,t=""){this.features.has(t)||this.features.set(t,new Set),this.features.get(t).add(e)}addIdentity(e,t=""){this.identities.has(t)||this.identities.set(t,[]),this.identities.get(t).push(e)}addItem(e,t=""){this.items.has(t)||this.items.set(t,[]),this.items.get(t).push(e)}addExtension(e,t=""){this.extensions.has(t)||this.extensions.set(t,[]),this.extensions.get(t).push(e)}updateCaps(e,t=this.capsAlgorithms){const n={extensions:[...this.extensions.get("")],features:[...this.features.get("")],identities:[...this.identities.get("")],type:"info"};for(const i of t){const t=Ar(n,i);if(!t){this.caps.delete(i);continue}this.caps.set(i,{algorithm:i,node:e,value:t});const r=`${e}#${t}`;for(const e of n.features)this.addFeature(e,r);for(const e of n.identities)this.addIdentity(e,r);for(const e of n.extensions)this.addExtension(e,r);this.identities.set(r,n.identities),this.features.set(r,new Set(n.features)),this.extensions.set(r,n.extensions)}return[...this.caps.values()]}getCaps(){return[...this.caps.values()]}}function Nr(e){e.disco=new Mr,e.disco.addFeature(Yt),e.disco.addFeature(Xt),e.disco.addIdentity({category:"client",type:"web"}),e.registerFeature("caps",100,(t,n)=>{const i=Q(e.jid)||e.config.server;e.emit("disco:caps",{caps:t.legacyCapabilities||[],jid:i}),e.features.negotiated.caps=!0,n()}),e.getDiscoInfo=(t,n)=>Object(r.a)(this,void 0,void 0,(function*(){const i=yield e.sendIQ({disco:{node:n,type:"info"},to:t,type:"get"});return Object.assign({extensions:[],features:[],identities:[]},i.disco)})),e.getDiscoItems=(t,n)=>Object(r.a)(this,void 0,void 0,(function*(){const i=yield e.sendIQ({disco:{node:n,type:"items"},to:t,type:"get"});return Object.assign({items:[]},i.disco)})),e.updateCaps=()=>{const t=e.config.capsNode||"https://stanzajs.org";return e.disco.updateCaps(t)},e.getCurrentCaps=()=>{const t=e.disco.getCaps();if(!t)return;const n=`${t[0].node}#${t[0].value}`;return{info:e.disco.getNodeInfo(n),legacyCapabilities:t}},e.on("presence",t=>{t.legacyCapabilities&&e.emit("disco:caps",{caps:t.legacyCapabilities,jid:t.from})}),e.on("iq:get:disco",t=>{const{type:n,node:i}=t.disco;"info"===n&&e.sendIQResult(t,{disco:Object.assign(Object.assign({},e.disco.getNodeInfo(i||"")),{node:i,type:"info"})}),"items"===n&&e.sendIQResult(t,{disco:{items:e.disco.items.get(i||"")||[],type:"items"}})})}const Dr={Bosh:xn,Client:Ut,Component:"jabber:component:accept",Server:"jabber:server"},Lr={AccountDisabled:"account-disabled",CredentialsExpired:"credentials-expired",EncryptionRequired:"encryption-required",IncorrectEncoding:"incorrect-encoding",InvalidAuthzid:"invalid-authzid",InvalidMechanism:"invalid-mechanism",MalformedRequest:"malformed-request",MechanismTooWeak:"mechanism-too-weak",NotAuthorized:"not-authorized",TemporaryAuthFailure:"temporary-auth-failure"},qr={BadFormat:"bad-format",BadNamespacePrefix:"bad-namespace-prefix",Conflict:"conflict",ConnectionTimeout:"connection-timeout",HostGone:"host-gone",HostUnknown:"host-unknown",ImproperAddressing:"improper-addressing",InternalServerError:"internal-server-error",InvalidFrom:"invalid-from",InvalidId:"invalid-id",InvalidNamespace:"invalid-namespace",InvalidXML:"invalid-xml",NotAuthorized:"not-authorized",NotWellFormed:"not-well-formed",PolicyViolation:"policy-violation",RemoteConnectionFailed:"remote-connection-failed",Reset:"reset",ResourceConstraint:"resource-constraint",RestrictedXML:"restricted-xml",SeeOtherHost:"see-other-host",SystemShutdown:"system-shutdown",UndefinedCondition:"undefined-condition",UnsupportedEncoding:"unsupported-encoding",UnsupportedStanzaType:"unsupported-stanza-type",UnsupportedVersion:"unsupported-version"},Fr={BadRequest:"bad-request",Conflict:"conflict",FeatureNotImplemented:"feature-not-implemented",Forbidden:"forbidden",Gone:"gone",InternalServerError:"internal-server-error",ItemNotFound:"item-not-found",JIDMalformed:"jid-malformed",NotAcceptable:"not-acceptable",NotAllowed:"not-allowed",NotAuthorized:"not-authorized",PolicyViolation:"policy-violation",RecipientUnavailable:"recipient-unavailable",Redirect:"redirect",RegistrationRequired:"registration-required",RemoteServerNotFound:"remote-server-not-found",RemoteServerTimeout:"remote-server-timeout",ResourceConstraint:"resource-constraint",ServiceUnavailable:"service-unavailable",SubscriptionRequired:"subscription-required",UndefinedCondition:"undefined-condition",UnexpectedRequest:"unexpected-request"},zr={Available:void 0,Error:"error",Probe:"probe",Subscribe:"subscribe",Subscribed:"subscribed",Unavailable:"unavailable",Unsubscribe:"unsubscribe",Unsubscribed:"unsubscribed"},Ur={Boolean:"boolean",Fixed:"fixed",Hidden:"hidden",JID:"jid-single",JIDMultiple:"jid-multi",List:"list-single",ListMultiple:"list-multi",Password:"text-private",Text:"text-single",TextMultiple:"text-multi",TextPrivate:"text-private"},Br={AffiliationChanged:"101",AffiliationLost:"321",Banned:"301",Error:"333",Kicked:"307",LoggingDisabled:"171",LoggingEnabled:"170",MembershipLost:"322",NickChanged:"303",NickChangedByService:"210",NonAnonymous:"172",NonAnonymousRoom:"100",NonPrivacyConfigurationChange:"104",RoomCreated:"201",SelfPresence:"110",SemiAnonymous:"173",Shutdown:"332",UnavailableMembersListed:"102",UnavailableMembersNotListed:"103"},Vr={ClosedNode:"closed-node",ConfigurationRequired:"configuration-required",InvalidJID:"invalid-jid",InvalidOptions:"invalid-options",InvalidPayload:"invalid-payload",InvalidSubscriptionId:"invalid-subid",ItemForbidden:"item-forbidden",ItemRequired:"item-required",JIDRequired:"jid-required",MaxItemsExceeded:"max-items-exceeded",MaxNodesExceeded:"max-nodes-exceeded",NodeIdRequired:"nodeid-required",NotInRosterGroup:"not-in-roster-group",NotSubscribed:"not-subscribed",PayloadRequired:"payload-required",PayloadTooBig:"payload-too-big",PendingSubscription:"pending-subscription",PresenceSubscriptionRequired:"presence-subscription-required",SubscriptionIdRequired:"subid-required",TooManySubscriptions:"too-many-subscriptions",Unsupported:"unsupported",UnsupportedAccessModel:"unsupported-access-model"},$r={Active:"active",Composing:"composing",Gone:"gone",Inactive:"inactive",Paused:"paused"},Hr={Initiator:"initiator",Responder:"responder"},Wr={Inactive:"inactive",Receive:"recvonly",Send:"sendonly",SendReceive:"sendrecv"},Gr={Both:"both",Initiator:"initiator",None:"none",Responder:"responder"},Qr={ContentAccept:"content-accept",ContentAdd:"content-add",ContentModify:"content-modify",ContentReject:"content-reject",ContentRemove:"content-remove",DescriptionInfo:"description-info",SecurityInfo:"security-info",SessionAccept:"session-accept",SessionInfo:"session-info",SessionInitiate:"session-initiate",SessionTerminate:"session-terminate",TransportAccept:"transport-accept",TransportInfo:"transport-info",TransportReject:"transport-reject",TransportReplace:"transport-replace"},Jr={OutOfOrder:"out-of-order",TieBreak:"tie-break",UnknownContent:"unknown-content",UnknownSession:"unknown-session",UnsupportedInfo:"unsupported-info"},Kr={AlternativeSession:"alternative-session",Busy:"busy",Cancel:"cancel",ConnectivityError:"connectivity-error",Decline:"decline",Expired:"expired",FailedApplication:"failed-application",FailedTransport:"failed-transport",GeneralError:"general-error",Gone:"gone",IncompatibleParameters:"incompatible-parameters",MediaError:"media-error",SecurityError:"security-error",Success:"success",Timeout:"timeout",UnsupportedApplications:"unsupported-applications",UnsupportedTransports:"unsupported-transports"},Yr=["afraid","amazed","amorous","angry","annoyed","anxious","aroused","ashamed","bored","brave","calm","cautious","cold","confident","confused","contemplative","contented","cranky","crazy","creative","curious","dejected","depressed","disappointed","disgusted","dismayed","distracted","embarrassed","envious","excited","flirtatious","frustrated","grateful","grieving","grumpy","guilty","happy","hopeful","hot","humbled","humiliated","hungry","hurt","impressed","in_awe","in_love","indignant","interested","intoxicated","invincible","jealous","lonely","lost","lucky","mean","moody","nervous","neutral","offended","outraged","playful","proud","relaxed","relieved","remorseful","restless","sad","sarcastic","satisfied","serious","shocked","shy","sick","sleepy","spontaneous","stressed","strong","surprised","thankful","thirsty","tired","undefined","weak","worried"],Xr=["doing_chores","drinking","eating","exercising","grooming","having_appointment","inactive","relaxing","talking","traveling","undefined","working"],Zr=["at_the_spa","brushing_teeth","buying_groceries","cleaning","coding","commuting","cooking","cycling","cycling","dancing","day_off","doing_maintenance","doing_the_dishes","doing_the_laundry","driving","fishing","gaming","gardening","getting_a_haircut","going_out","hanging_out","having_a_beer","having_a_snack","having_breakfast","having_coffee","having_dinner","having_lunch","having_tea","hiding","hiking","in_a_car","in_a_meeting","in_real_life","jogging","on_a_bus","on_a_plane","on_a_train","on_a_trip","on_the_phone","on_vacation","on_video_phone","other","partying","playing_sports","praying","reading","rehearsing","running","running_an_errand","scheduled_holiday","shaving","shopping","skiing","sleeping","smoking","socializing","studying","sunbathing","swimming","taking_a_bath","taking_a_shower","thinking","walking","walking_the_dog","watching_a_movie","watching_tv","working_out","writing"],eo=(e,t)=>`{${e}}${t}`,to=eo(In,"mute"),no=eo(In,"unmute"),io=eo(In,"hold"),ro=eo(In,"unhold"),oo=eo(In,"active"),ao=eo(In,"ringing"),so=eo(Fn,"checksum"),lo=eo(Fn,"received");function co(e,t=Gr.Both){const n=e===Hr.Initiator;switch(t){case Gr.Initiator:return n?Wr.Send:Wr.Receive;case Gr.Responder:return n?Wr.Receive:Wr.Send;case Gr.Both:return Wr.SendReceive}return Wr.Inactive}function uo(e,t=Wr.SendReceive){const n=e===Hr.Initiator;switch(t){case Wr.Send:return n?Gr.Initiator:Gr.Responder;case Wr.Receive:return n?Gr.Responder:Gr.Initiator;case Wr.SendReceive:return Gr.Both}return Gr.None}var po=Object.freeze({__proto__:null,VERSION:"12.13.0",StreamType:Dr,SASLFailureCondition:Lr,StreamErrorCondition:qr,StanzaErrorCondition:Fr,MessageType:{Chat:"chat",Error:"error",GroupChat:"groupchat",Headline:"headline",Normal:"normal"},PresenceType:zr,IQType:{Error:"error",Get:"get",Result:"result",Set:"set"},PresenceShow:{Away:"away",Chat:"chat",DoNotDisturb:"dnd",ExtendedAway:"xa"},RosterSubscription:{Both:"both",From:"from",None:"none",ReceivePresenceOnly:"to",Remove:"remove",SendAndReceivePresence:"both",SendPresenceOnly:"from",To:"to"},DataFormType:{Cancel:"cancel",Form:"form",Result:"result",Submit:"submit"},DataFormFieldType:Ur,MUCAffiliation:{Admin:"admin",Banned:"outcast",Member:"member",None:"none",Outcast:"outcast",Owner:"owner"},MUCRole:{Moderator:"moderator",None:"none",Participant:"participant",Visitor:"visitor"},MUCStatusCode:Br,PubsubErrorCondition:Vr,ChatState:$r,JingleSessionRole:Hr,JingleApplicationDirection:Wr,JingleContentSenders:Gr,JingleAction:Qr,JingleErrorCondition:Jr,JingleReasonCondition:Kr,USER_MOODS:Yr,USER_ACTIVITY_GENERAL:Xr,USER_ACTIVITY_SPECIFIC:Zr,JINGLE_INFO:eo,JINGLE_INFO_MUTE:to,JINGLE_INFO_UNMUTE:no,JINGLE_INFO_HOLD:io,JINGLE_INFO_UNHOLD:ro,JINGLE_INFO_ACTIVE:oo,JINGLE_INFO_RINGING:ao,JINGLE_INFO_CHECKSUM_5:so,JINGLE_INFO_RECEIVED_5:lo,sendersToDirection:co,directionToSenders:uo});function mo(e){e.disco.addFeature("jid\\20escaping"),e.disco.addFeature(Ln),e.disco.addFeature("urn:xmpp:eme:0"),e.disco.addFeature(Wn),e.disco.addFeature(Gn),e.disco.addFeature("urn:xmpp:hashes:1"),e.disco.addFeature("urn:xmpp:idle:1"),e.disco.addFeature(Zn),e.disco.addFeature(mn),e.disco.addFeature("urn:xmpp:psa"),e.disco.addFeature("urn:xmpp:reference:0"),e.disco.addFeature(En),e.disco.addFeature(Jt),e.disco.addFeature("urn:xmpp:media-element"),e.disco.addFeature(Cn),e.disco.addFeature(_n);const t=["sha-1","sha-256","sha-512","md5"];for(const n of t)e.disco.addFeature(Qn(n));e.disco.addFeature("urn:xmpp:time"),e.disco.addFeature("jabber:iq:version"),e.on("iq:get:softwareVersion",t=>e.sendIQResult(t,{softwareVersion:e.config.softwareVersion||{name:"stanzajs.org",version:"12.13.0"}})),e.on("iq:get:time",t=>{const n=new Date;e.sendIQResult(t,{time:{tzo:n.getTimezoneOffset(),utc:n}})}),e.getSoftwareVersion=t=>Object(r.a)(this,void 0,void 0,(function*(){return(yield e.sendIQ({softwareVersion:{},to:t,type:"get"})).softwareVersion})),e.getTime=t=>Object(r.a)(this,void 0,void 0,(function*(){return(yield e.sendIQ({time:{},to:t,type:"get"})).time})),e.getLastActivity=t=>Object(r.a)(this,void 0,void 0,(function*(){return(yield e.sendIQ({lastActivity:{},to:t,type:"get"})).lastActivity}))}function ho(e){e.features={handlers:Object.create(null),negotiated:Object.create(null),order:[]},e.registerFeature=function(t,n,i){this.features.order.push({name:t,priority:n}),this.features.order.sort((e,t)=>e.priority-t.priority),this.features.handlers[t]=i.bind(e)},e.on("features",t=>Object(r.a)(this,void 0,void 0,(function*(){const n=e.features.negotiated,i=e.features.handlers,r=[];for(const{name:o}of e.features.order)t[o]&&i[o]&&!n[o]&&r.push(o);function o(e){return new Promise(n=>{i[e](t,(e,t)=>{e?n({command:e,message:t}):n()})})}for(const t of r){if(n[t])continue;let i="",r="";try{const e=yield o(t);e&&(i=e.command,r=e.message||"")}catch(e){i="disconnect",r=e.message,console.error(e)}if(i)return"restart"===i&&e.transport&&e.transport.restart(),void("disconnect"===i&&(e.emit("stream:error",{condition:"policy-violation",text:"Failed to negotiate stream features: "+r}),e.disconnect()))}})))}function fo(e,t){return Object(r.a)(this,void 0,void 0,(function*(){"string"==typeof t&&(t={host:t});const n=Object.assign({json:!0,ssl:!0,xrd:!0},t),i=n.ssl?"https://":"http://";return function(e){return Object(r.a)(this,void 0,void 0,(function*(){try{const t=yield Promise.all(e.map(e=>e.then(e=>Promise.reject(e),e=>Promise.resolve(e))));return Promise.reject(t)}catch(e){return Promise.resolve(e)}}))}([Zi(`${i}${n.host}/.well-known/host-meta.json`).then(e=>Object(r.a)(this,void 0,void 0,(function*(){if(!e.ok)throw new Error("could-not-fetch-json");return e.json()}))),Zi(`${i}${n.host}/.well-known/host-meta`).then(t=>Object(r.a)(this,void 0,void 0,(function*(){if(!t.ok)throw new Error("could-not-fetch-xml");const n=Te(yield t.text());if(n)return e.import(n)})))])}))}function go(e,t){e.discoverBindings=e=>Object(r.a)(this,void 0,void 0,(function*(){try{const n=yield fo(t,e),i={bosh:[],websocket:[]},r=n.links||[];for(const e of r)e.href&&"urn:xmpp:alt-connections:websocket"===e.rel&&i.websocket.push(e.href),e.href&&"urn:xmpp:alt-connections:xbosh"===e.rel&&i.bosh.push(e.href);return i}catch(e){return{}}}))}function vo(e){const t=Object(u.getMediaSections)(e),n=Object(u.getDescription)(e),i={groups:[],media:[]};Object(u.matchPrefix)(n,"a=ice-lite").length>0&&(i.iceLite=!0);for(const e of Object(u.matchPrefix)(n,"a=group:")){const t=e.split(" "),n=t.shift().substr(8);i.groups.push({mids:t,semantics:n})}for(const e of t){const t=Object(u.getKind)(e),r=Object(u.isRejected)(e),o=Object(u.parseMLine)(e),a={direction:Object(u.getDirection)(e,n),kind:t,mid:Object(u.getMid)(e),protocol:o.protocol};if(r||(i.iceLite&&(a.iceLite=!0),a.iceParameters=Object(u.getIceParameters)(e,n),a.dtlsParameters=Object(u.getDtlsParameters)(e,n),a.setup=Object(u.matchPrefix)(e,"a=setup:")[0].substr(8)),"audio"===t||"video"===t){a.rtpParameters=Object(u.parseRtpParameters)(e),a.rtpEncodingParameters=Object(u.parseRtpEncodingParameters)(e),a.rtcpParameters=Object(u.parseRtcpParameters)(e);const t=Object(u.parseMsid)(e);a.streams=t?[t]:[]}else"application"===t&&(a.sctp=Object(u.parseSctpDescription)(e));a.candidates=Object(u.matchPrefix)(e,"a=candidate:").map(u.parseCandidate),i.media.push(a)}return i}function bo(e){const t=[];t.push(Object(u.writeSessionBoilerplate)(e.sessionId,e.sessionVersion),"a=msid-semantic:WMS *\r\n"),(e.iceLite||e.media.filter(e=>e.iceLite).length>0)&&t.push("a=ice-lite\r\n");for(const n of e.groups||[])t.push(`a=group:${n.semantics} ${n.mids.join(" ")}\r\n`);for(const n of e.media||[]){const e=!(n.iceParameters&&n.dtlsParameters);if("application"===n.kind&&n.sctp)t.push(Object(u.writeSctpDescription)(n,n.sctp));else if(n.rtpParameters){let i=Object(u.writeRtpDescription)(n.kind,n.rtpParameters);e&&(i=i.replace(`m=${n.kind} 9 `,`m=${n.kind} 0 `)),t.push(i),t.push(`a=${n.direction||"sendrecv"}\r\n`);for(const e of n.streams||[])t.push(`a=msid:${e.stream} ${e.track}\r\n`);if(n.rtcpParameters&&(n.rtcpParameters.reducedSize&&-1===i.indexOf("a=rtcp-rsize")&&t.push("a=rtcp-rsize\r\n"),n.rtcpParameters.cname&&(t.push(`a=ssrc:${n.rtcpParameters.ssrc} cname:${n.rtcpParameters.cname}\r\n`),n.rtpEncodingParameters&&n.rtpEncodingParameters[0].rtx))){const e=n.rtpEncodingParameters[0];t.push(`a=ssrc-group:FID ${e.ssrc} ${e.rtx.ssrc}\r\n`),t.push(`a=ssrc:${e.rtx.ssrc} cname:${n.rtcpParameters.cname}\r\n`)}}if(void 0!==n.mid&&t.push(`a=mid:${n.mid}\r\n`),n.iceParameters&&t.push(Object(u.writeIceParameters)(n.iceParameters)),n.dtlsParameters&&n.setup&&t.push(Object(u.writeDtlsParameters)(n.dtlsParameters,n.setup)),n.candidates&&n.candidates.length)for(const e of n.candidates)t.push(`a=${Object(u.writeCandidate)(e)}\r\n`)}return t.join("")}function yo(e,t){const n=e.rtpParameters,i=e.rtcpParameters||{},r=e.rtpEncodingParameters||[];let o=!1;r&&r.length&&(o=!!r[0].ssrc);const a={applicationType:Pn,codecs:[],headerExtensions:[],media:e.kind,rtcpMux:i.mux,rtcpReducedSize:i.reducedSize,sourceGroups:[],sources:[],ssrc:o?r[0].ssrc.toString():void 0,streams:[]};for(const e of n.headerExtensions||[]){const n={id:e.id,uri:e.uri};e.direction&&"sendrecv"!==e.direction&&(n.senders=uo(t,e.direction)),a.headerExtensions.push(n)}i.ssrc&&i.cname&&(a.sources=[{parameters:{cname:i.cname},ssrc:i.ssrc.toString()}]),o&&r[0]&&r[0].rtx&&(a.sourceGroups=[{semantics:"FID",sources:[r[0].ssrc.toString(),r[0].rtx.ssrc.toString()]}]);for(const t of e.streams||[])a.streams.push({id:t.stream,track:t.track});for(const e of n.codecs||[]){const t={channels:e.channels,clockRate:e.clockRate,id:e.payloadType.toString(),name:e.name,parameters:e.parameters,rtcpFeedback:e.rtcpFeedback};e.maxptime&&(t.maxptime=e.maxptime),e.parameters&&e.parameters.ptime&&(t.ptime=parseInt(e.parameters.ptime,10)),a.codecs.push(t)}return a}function ko(e){return{component:e.component,foundation:e.foundation,generation:void 0,id:void 0,ip:e.ip,network:void 0,port:e.port,priority:e.priority,protocol:e.protocol,relatedAddress:e.relatedAddress,relatedPort:e.relatedPort,tcpType:e.tcpType,type:e.type}}function wo(e){return{address:e.ip,component:e.component,foundation:e.foundation,ip:e.ip,port:e.port,priority:e.priority,protocol:e.protocol,relatedAddress:e.relatedAddress,relatedPort:e.relatedPort,tcpType:e.tcpType,type:e.type}}function So(e,t){const n=e.iceParameters,i=e.dtlsParameters,r={candidates:[],transportType:t};n&&(r.usernameFragment=n.usernameFragment,r.password=n.password,e.iceLite&&(r.iceLite=!0)),i&&(r.fingerprints=i.fingerprints.map(t=>({algorithm:t.algorithm,setup:e.setup,value:t.value}))),e.sctp&&(r.sctp=e.sctp);for(const t of e.candidates||[])r.candidates.push(ko(t));return r}function Co(e,t,n){return{contents:e.media.map(e=>({application:"audio"===e.kind||"video"===e.kind?yo(e,t):{applicationType:"datachannel",protocol:e.protocol},creator:Hr.Initiator,name:e.mid,senders:uo(t,e.direction),transport:So(e,n)})),groups:e.groups?e.groups.map(e=>({contents:e.mids,semantics:e.semantics})):[]}}function xo(e,t){const n=e.application||{},i=e.transport,r=n&&n.applicationType===Pn,o={direction:co(t,e.senders),kind:n.media||"application",mid:e.name,protocol:r?"UDP/TLS/RTP/SAVPF":"UDP/DTLS/SCTP"};if(r){if(o.rtcpParameters={compound:!n.rtcpReducedSize,mux:n.rtcpMux,reducedSize:n.rtcpReducedSize},n.sources&&n.sources.length){const e=n.sources[0];o.rtcpParameters.ssrc=parseInt(e.ssrc,10),e.parameters&&(o.rtcpParameters.cname=e.parameters.cname)}if(o.rtpParameters={codecs:[],fecMechanisms:[],headerExtensions:[],rtcp:[]},n.streams){o.streams=[];for(const e of n.streams)o.streams.push({stream:e.id,track:e.track})}if(n.ssrc&&(o.rtpEncodingParameters=[{ssrc:parseInt(n.ssrc,10)}],n.sourceGroups&&n.sourceGroups.length)){const e=n.sourceGroups[0];o.rtpEncodingParameters[0].rtx={ssrc:parseInt(e.sources[1],10)}}let e=!1,i=!1;for(const t of n.codecs||[]){const n=t.parameters||{},r=[];for(const e of t.rtcpFeedback||[])r.push({parameter:e.parameter,type:e.type});if("red"===t.name||"ulpfec"===t.name){e=e||"red"===t.name,i=i||"ulpfec"===t.name;const n=t.name.toUpperCase();o.rtpParameters.fecMechanisms.includes(n)||o.rtpParameters.fecMechanisms.push(n)}o.rtpParameters.codecs.push({channels:t.channels,clockRate:t.clockRate,name:t.name,numChannels:t.channels,parameters:n,payloadType:parseInt(t.id,10),rtcpFeedback:r})}for(const e of n.headerExtensions||[])o.rtpParameters.headerExtensions.push({direction:co(t,e.senders||"both"),id:e.id,uri:e.uri})}if(i){if(i.usernameFragment&&i.password&&(o.iceParameters={password:i.password,usernameFragment:i.usernameFragment},i.iceLite&&(o.iceLite=!0)),i.fingerprints&&i.fingerprints.length){o.dtlsParameters={fingerprints:[],role:"auto"};for(const e of i.fingerprints)o.dtlsParameters.fingerprints.push({algorithm:e.algorithm,value:e.value});i.sctp&&(o.sctp=i.sctp),o.setup=i.fingerprints[0].setup}o.candidates=(i.candidates||[]).map(wo)}return o}function Eo(e,t){const n={groups:[],media:[]};for(const t of e.groups||[])n.groups.push({mids:t.contents,semantics:t.semantics});for(const i of e.contents||[])n.media.push(xo(i,t));return n}const To={condition:Fr.BadRequest},_o={condition:Fr.FeatureNotImplemented,jingleError:Jr.UnsupportedInfo,type:"modify"};class jo{constructor(e){this.parent=e.parent,this.sid=e.sid||Er(),this.peerID=e.peerID,this.role=e.initiator?Hr.Initiator:Hr.Responder,this._sessionState="starting",this._connectionState="starting",this.pendingApplicationTypes=e.applicationTypes||[],this.pendingAction=void 0,this.processingQueue=Object(o.a)((e,t)=>Object(r.a)(this,void 0,void 0,(function*(){if("ended"===this.state)return"local"===e.type&&e.reject&&e.reject(new Error("Session ended")),void(t&&t());if("local"===e.type){this._log("debug","Processing local action:",e.name);try{const t=yield e.handler();e.resolve(t)}catch(t){e.reject(t)}return void(t&&t())}const{action:n,changes:i,cb:r}=e;return this._log("debug","Processing remote action:",n),new Promise(e=>{const o=(n,i)=>{r(n,i),t&&t(),e()};switch(n){case Qr.ContentAccept:return this.onContentAccept(i,o);case Qr.ContentAdd:return this.onContentAdd(i,o);case Qr.ContentModify:return this.onContentModify(i,o);case Qr.ContentReject:return this.onContentReject(i,o);case Qr.ContentRemove:return this.onContentRemove(i,o);case Qr.DescriptionInfo:return this.onDescriptionInfo(i,o);case Qr.SecurityInfo:return this.onSecurityInfo(i,o);case Qr.SessionAccept:return this.onSessionAccept(i,o);case Qr.SessionInfo:return this.onSessionInfo(i,o);case Qr.SessionInitiate:return this.onSessionInitiate(i,o);case Qr.SessionTerminate:return this.onSessionTerminate(i,o);case Qr.TransportAccept:return this.onTransportAccept(i,o);case Qr.TransportInfo:return this.onTransportInfo(i,o);case Qr.TransportReject:return this.onTransportReject(i,o);case Qr.TransportReplace:return this.onTransportReplace(i,o);default:this._log("error","Invalid or unsupported action: "+n),o({condition:Fr.BadRequest})}})})),1)}get isInitiator(){return this.role===Hr.Initiator}get peerRole(){return this.isInitiator?Hr.Responder:Hr.Initiator}get state(){return this._sessionState}set state(e){e!==this._sessionState&&(this._log("info","Changing session state to: "+e),this._sessionState=e,this.parent&&this.parent.emit("sessionState",this,e))}get connectionState(){return this._connectionState}set connectionState(e){e!==this._connectionState&&(this._log("info","Changing connection state to: "+e),this._connectionState=e,this.parent&&this.parent.emit("connectionState",this,e))}send(e,t){(t=t||{}).sid=this.sid,t.action=e;new Set([Qr.ContentAccept,Qr.ContentAdd,Qr.ContentModify,Qr.ContentReject,Qr.ContentRemove,Qr.SessionAccept,Qr.SessionInitiate,Qr.TransportAccept,Qr.TransportReject,Qr.TransportReplace]).has(e)?this.pendingAction=e:this.pendingAction=void 0,this.parent.signal(this,{id:Er(),jingle:t,to:this.peerID,type:"set"})}processLocal(e,t){return new Promise((n,i)=>{this.processingQueue.push({handler:t,name:e,reject:i,resolve:n,type:"local"},1)})}process(e,t,n){this.processingQueue.push({action:e,cb:n,changes:t,type:"remote"},2)}start(e,t){this._log("error","Can not start base sessions"),this.end("unsupported-applications",!0)}accept(e,t){this._log("error","Can not accept base sessions"),this.end("unsupported-applications")}cancel(){this.end("cancel")}decline(){this.end("decline")}end(e="success",t=!1){this.state="ended",this.processingQueue.kill(),"string"==typeof e&&(e={condition:e}),t||this.send("session-terminate",{reason:e}),this.parent.emit("terminated",this,e),this.parent.forgetSession(this)}_log(e,t,...n){this.parent&&(t=this.sid+": "+t,this.parent.emit("log",e,t,...n),this.parent.emit("log:"+e,t,...n))}onSessionInitiate(e,t){t()}onSessionAccept(e,t){t()}onSessionTerminate(e,t){this.end(e.reason,!0),t()}onSessionInfo(e,t){e.info?t(_o):t()}onSecurityInfo(e,t){t(_o)}onDescriptionInfo(e,t){t(_o)}onTransportInfo(e,t){t(_o)}onContentAdd(e,t){t(),this.send(Qr.ContentReject,{reason:{condition:Kr.FailedApplication,text:"content-add is not supported"}})}onContentAccept(e,t){t(To)}onContentReject(e,t){t(To)}onContentModify(e,t){t(To)}onContentRemove(e,t){t(To)}onTransportReplace(e,t){t(),this.send(Qr.TransportReject,{reason:{condition:Kr.FailedTransport,text:"transport-replace is not supported"}})}onTransportAccept(e,t){t(To)}onTransportReject(e,t){t(To)}}class Oo extends jo{constructor(e){super(e),this.bitrateLimit=0,this.candidateBuffer=[],this.transportType=Mn,this.restartingIce=!1,this.usingRelay=!1,this.maxRelayBandwidth=e.maxRelayBandwidth,this.pc=this.parent.createPeerConnection(this,Object.assign(Object.assign({},e.config),{iceServers:e.iceServers})),this.pc.oniceconnectionstatechange=()=>{this.onIceStateChange()},this.pc.onicecandidate=e=>{e.candidate?this.onIceCandidate(e):this.onIceEndOfCandidates()},this.restrictRelayBandwidth()}end(e="success",t=!1){this.pc.close(),super.end(e,t)}restartIce(){return Object(r.a)(this,void 0,void 0,(function*(){if(this.isInitiator){void 0!==this._maybeRestartingIce&&clearTimeout(this._maybeRestartingIce),this.restartingIce=!0;try{yield this.processLocal("restart-ice",()=>Object(r.a)(this,void 0,void 0,(function*(){const e=yield this.pc.createOffer({iceRestart:!0}),t=vo(e.sdp);this.send(Qr.TransportInfo,{contents:t.media.map(e=>({creator:Hr.Initiator,name:e.mid,transport:So(e,this.transportType)})),sid:this.sid}),yield this.pc.setLocalDescription(e)})))}catch(e){this._log("error","Could not create WebRTC offer",e),this.end(Kr.FailedTransport,!0)}}}))}setMaximumBitrate(e){return Object(r.a)(this,void 0,void 0,(function*(){this.maximumBitrate&&(e=Math.min(e,this.maximumBitrate)),this.currentBitrate=e;const t=this.pc.getSenders().find(e=>!!e.track&&"video"===e.track.kind);if(t&&t.getParameters)try{yield this.processLocal("set-bitrate",()=>Object(r.a)(this,void 0,void 0,(function*(){const n=t.getParameters();n.encodings&&n.encodings.length||(n.encodings=[{}]),0===e?delete n.encodings[0].maxBitrate:n.encodings[0].maxBitrate=e,yield t.setParameters(n)})))}catch(e){this._log("error","Set maximumBitrate failed",e)}}))}onTransportInfo(e,t){return Object(r.a)(this,void 0,void 0,(function*(){if(e.contents&&e.contents[0]&&e.contents[0].transport.gatheringComplete){try{"stable"===this.pc.signalingState?yield this.pc.addIceCandidate(null):this.candidateBuffer.push(null)}catch(e){this._log("debug","Could not add null ICE candidate")}finally{t()}return}if(this.pc.remoteDescription){const n=this.pc.remoteDescription,i=vo(n.sdp),r=i.media.find(t=>t.mid===e.contents[0].name).iceParameters.usernameFragment,o=e.contents[0].transport.usernameFragment;if(o&&r!==o){for(const[t,n]of e.contents.entries()){const e=n.transport;i.media[t].iceParameters={password:e.password,usernameFragment:e.usernameFragment},i.media[t].candidates=[]}if("offer"===n.type){try{yield this.pc.setRemoteDescription(n),yield this.processBufferedCandidates();const e=yield this.pc.createAnswer(),i=vo(e.sdp);this.send(Qr.TransportInfo,{contents:i.media.map(e=>({creator:Hr.Initiator,name:e.mid,transport:So(e,this.transportType)})),sid:this.sid}),yield this.pc.setLocalDescription(e),t()}catch(e){this._log("error","Could not do remote ICE restart",e),t(e),this.end(Kr.FailedTransport)}return}try{yield this.pc.setRemoteDescription(n),yield this.processBufferedCandidates(),t()}catch(e){this._log("error","Could not do local ICE restart",e),t(e),this.end(Kr.FailedTransport)}return}}const n=(e.contents||[]).map(e=>{const t=e.name,n=(e.transport.candidates||[]).map(e=>Object(r.a)(this,void 0,void 0,(function*(){const n=Object(u.writeCandidate)(wo(e));if(this.pc.remoteDescription&&"stable"===this.pc.signalingState)try{yield this.pc.addIceCandidate({sdpMid:t,candidate:n})}catch(e){this._log("error","Could not add ICE candidate",e)}else this.candidateBuffer.push({sdpMid:t,candidate:n})})));return Promise.all(n)});try{yield Promise.all(n),t()}catch(e){this._log("error","Could not process transport-info: "+e),t(e)}}))}onSessionAccept(e,t){return Object(r.a)(this,void 0,void 0,(function*(){this.state="active";const n=bo(Eo(e,this.peerRole));try{yield this.pc.setRemoteDescription({type:"answer",sdp:n}),yield this.processBufferedCandidates(),this.parent.emit("accepted",this,void 0),t()}catch(e){this._log("error","Could not process WebRTC answer: "+e),t({condition:"general-error"})}}))}onSessionTerminate(e,t){this._log("info","Terminating session"),this.pc.close(),super.end(e.reason,!0),t()}onIceCandidate(e){if(!e.candidate||!e.candidate.candidate)return;const t=Object(u.parseCandidate)(e.candidate.candidate),n={contents:[{creator:Hr.Initiator,name:e.candidate.sdpMid,transport:{candidates:[ko(t)],transportType:this.transportType,usernameFragment:t.usernameFragment}}]};this._log("info","Discovered new ICE candidate",n),this.send(Qr.TransportInfo,n)}onIceEndOfCandidates(){this._log("info","ICE end of candidates");const e=vo(this.pc.localDescription.sdp).media[0];this.send(Qr.TransportInfo,{contents:[{creator:Hr.Initiator,name:e.mid,transport:{gatheringComplete:!0,transportType:this.transportType,usernameFragment:e.iceParameters.usernameFragment}}]})}onIceStateChange(){switch(this.pc.iceConnectionState){case"checking":this.connectionState="connecting";break;case"completed":case"connected":this.connectionState="connected",this.restartingIce=!1;break;case"disconnected":if("stable"===this.pc.signalingState?this.connectionState="interrupted":this.connectionState="disconnected",this.restartingIce)return void this.end(Kr.FailedTransport);this.maybeRestartIce();break;case"failed":if("failed"===this.connectionState||this.restartingIce)return void this.end(Kr.FailedTransport);this.connectionState="failed",this.restartIce();break;case"closed":this.connectionState="disconnected",this.restartingIce?this.end(Kr.FailedTransport):this.end()}}processBufferedCandidates(){return Object(r.a)(this,void 0,void 0,(function*(){for(const e of this.candidateBuffer)try{yield this.pc.addIceCandidate(e)}catch(e){this._log("error","Could not add ICE candidate",e)}this.candidateBuffer=[]}))}restrictRelayBandwidth(){this.pc.addEventListener("iceconnectionstatechange",()=>Object(r.a)(this,void 0,void 0,(function*(){if("completed"!==this.pc.iceConnectionState&&"connected"!==this.pc.iceConnectionState)return;const e=yield this.pc.getStats();let t;if(e.forEach(n=>{"transport"===n.type&&(t=e.get(n.selectedCandidatePairId))}),t||e.forEach(e=>{"candidate-pair"===e.type&&e.selected&&(t=e)}),!t)return;let n=!1,i="",r="";if(t.remoteCandidateId){const n=e.get(t.remoteCandidateId);n&&(r=n.candidateType)}if(t.localCandidateId){const n=e.get(t.localCandidateId);n&&(i=n.candidateType)}"relay"!==i&&"relay"!==r||(n=!0),this.usingRelay=n,this.parent.emit("iceConnectionType",this,{localCandidateType:i,relayed:n,remoteCandidateType:r}),n&&(this.maximumBitrate=this.maxRelayBandwidth,this.currentBitrate?this.setMaximumBitrate(Math.min(this.currentBitrate,this.maximumBitrate)):this.setMaximumBitrate(this.maximumBitrate))})))}maybeRestartIce(){this.isInitiator&&(void 0!==this._maybeRestartingIce&&clearTimeout(this._maybeRestartingIce),this._maybeRestartingIce=setTimeout(()=>{this._maybeRestartingIce=void 0,"disconnected"===this.pc.iceConnectionState&&this.restartIce()},2e3))}}class Ro extends a.EventEmitter{constructor(e={}){super(),this.config=Object.assign({chunkSize:16384,hash:"sha-1"},e),this.file=void 0,this.channel=void 0,this.hash=Qi(this.config.hash)}send(e,t){if(this.file&&this.channel)return;this.file=e,this.channel=t,this.channel.binaryType="arraybuffer";const n=new FileReader;let i=0,r=!1;const o=()=>{if(r||i>=e.size)return;r=!0;const t=e.slice(i,i+this.config.chunkSize);n.readAsArrayBuffer(t)};t.bufferedAmountLowThreshold=8*this.config.chunkSize,t.onbufferedamountlow=()=>{o()},n.addEventListener("load",t=>{const n=t.target.result;r=!1,i+=n.byteLength,this.channel.send(n),this.hash.update(new Uint8Array(n)),this.emit("progress",i,e.size,n),i<e.size?this.channel.bufferedAmount<=this.channel.bufferedAmountLowThreshold&&o():(this.emit("progress",e.size,e.size,null),this.emit("sentFile",{algorithm:this.config.hash,name:e.name,size:e.size,value:this.hash.digest()}))}),o()}}class Po extends a.EventEmitter{constructor(e={}){super(),this.config=Object.assign({hash:"sha-1"},e),this.receiveBuffer=[],this.received=0,this.channel=void 0,this.hash=Qi(this.config.hash)}receive(e,t){this.metadata=e,this.channel=t,this.channel.binaryType="arraybuffer",this.channel.onmessage=e=>{const t=e.data.byteLength;this.received+=t,this.receiveBuffer.push(e.data),e.data&&this.hash.update(new Uint8Array(e.data)),this.emit("progress",this.received,this.metadata.size,e.data),this.received===this.metadata.size?(this.metadata.actualhash=this.hash.digest("hex"),this.emit("receivedFile",new Blob(this.receiveBuffer),this.metadata),this.receiveBuffer=[]):this.received>this.metadata.size&&(console.error("received more than expected, discarding..."),this.receiveBuffer=[])}}}class Io extends Oo{constructor(e){super(e),this.sender=void 0,this.receiver=void 0,this.file=void 0}start(e,t){return Object(r.a)(this,void 0,void 0,(function*(){if(t=t||(()=>{}),!e||"function"==typeof e)throw new Error("File object required");this.state="pending",this.role="initiator",this.file=e,this.sender=new Ro,this.sender.on("progress",(e,t)=>{this._log("info","Send progress "+e+"/"+t)}),this.sender.on("sentFile",e=>{this._log("info","Sent file",e.name),this.send(Qr.SessionInfo,{info:{creator:Hr.Initiator,file:{hashes:[{algorithm:e.algorithm,value:e.value}]},infoType:so,name:this.contentName}}),this.parent.emit("sentFile",this,e)}),this.channel=this.pc.createDataChannel("filetransfer",{ordered:!0}),this.channel.onopen=()=>{this.sender.send(this.file,this.channel)};try{yield this.processLocal(Qr.SessionInitiate,()=>Object(r.a)(this,void 0,void 0,(function*(){const t=yield this.pc.createOffer({offerToReceiveAudio:!1,offerToReceiveVideo:!1}),n=Co(vo(t.sdp),this.role,this.transportType);this.contentName=n.contents[0].name,n.sid=this.sid,n.action=Qr.SessionInitiate,n.contents[0].application={applicationType:Fn,file:{date:e.lastModified?new Date(e.lastModified):void 0,hashesUsed:[{algorithm:"sha-1"}],name:e.name,size:e.size}},this.send("session-initiate",n),yield this.pc.setLocalDescription(t)}))),t()}catch(e){return this._log("error","Could not create WebRTC offer",e),this.end("failed-application",!0)}}))}accept(e){return Object(r.a)(this,void 0,void 0,(function*(){this._log("info","Accepted incoming session"),this.role="responder",this.state="active",e=e||(()=>{});try{yield this.processLocal(Qr.SessionAccept,()=>Object(r.a)(this,void 0,void 0,(function*(){const e=yield this.pc.createAnswer(),t=Co(vo(e.sdp),this.role,this.transportType);t.sid=this.sid,t.action="session-accept";for(const e of t.contents)e.creator="initiator";this.contentName=t.contents[0].name,this.send("session-accept",t),yield this.pc.setLocalDescription(e),yield this.processBufferedCandidates()}))),e()}catch(e){this._log("error","Could not create WebRTC answer",e),this.end("failed-application")}}))}onSessionInitiate(e,t){return Object(r.a)(this,void 0,void 0,(function*(){this._log("info","Initiating incoming session"),this.role="responder",this.state="pending",this.transportType=e.contents[0].transport.transportType;const n=bo(Eo(e,this.peerRole)),i=e.contents[0].application,r=i.file.hashesUsed?i.file.hashesUsed:i.file.hashes||[];this.receiver=new Po({hash:r[0]&&r[0].algorithm}),this.receiver.on("progress",(e,t)=>{this._log("info","Receive progress "+e+"/"+t)}),this.receiver.on("receivedFile",e=>{this.receivedFile=e,this._maybeReceivedFile()}),this.receiver.metadata=i.file,this.pc.addEventListener("datachannel",e=>{this.channel=e.channel,this.receiver.receive(this.receiver.metadata,e.channel)});try{yield this.pc.setRemoteDescription({type:"offer",sdp:n}),yield this.processBufferedCandidates(),t()}catch(e){this._log("error","Could not create WebRTC answer",e),t({condition:"general-error"})}}))}onSessionInfo(e,t){const n=e.info;n&&n.file&&n.file.hashes&&(this.receiver.metadata.hashes=n.file.hashes,this.receiver.metadata.actualhash&&this._maybeReceivedFile(),t())}_maybeReceivedFile(){if(this.receiver.metadata.hashes&&this.receiver.metadata.hashes.length){for(const e of this.receiver.metadata.hashes||[])if(e.value&&e.value.toString("hex")===this.receiver.metadata.actualhash)return this._log("info","File hash matches"),this.parent.emit("receivedFile",this,this.receivedFile,this.receiver.metadata),void this.end("success");this._log("error","File hash does not match"),this.end("media-error")}}}function Ao(e){const t=e.application;if(t.streams&&t.streams.length&&t.sources&&t.sources.length){const e=t.streams[0];t.sources[0].parameters.msid=`${e.id} ${e.track}`,t.sourceGroups&&t.sourceGroups.length>0&&t.sources.push({parameters:{cname:t.sources[0].parameters.cname,msid:`${e.id} ${e.track}`},ssrc:t.sourceGroups[0].sources[1]})}}class Mo extends Oo{constructor(e){if(super(e),this.includesAudio=!1,this.includesVideo=!1,this._ringing=!1,this.pc.addEventListener("track",e=>{this.onAddTrack(e.track,e.streams[0])}),e.stream)for(const t of e.stream.getTracks())this.addTrack(t,e.stream)}get ringing(){return this._ringing}set ringing(e){e!==this._ringing&&(this._ringing=e)}get streams(){return"closed"!==this.pc.signalingState?this.pc.getRemoteStreams():[]}start(e,t){return Object(r.a)(this,arguments,void 0,(function*(){this.state="pending",1===arguments.length&&"function"==typeof e&&(t=e,e={}),t=t||(()=>{}),e=e||{},this.role="initiator",this.offerOptions=e;try{yield this.processLocal(Qr.SessionInitiate,()=>Object(r.a)(this,void 0,void 0,(function*(){const t=yield this.pc.createOffer(e),n=Co(vo(t.sdp),this.role,this.transportType);n.sid=this.sid,n.action=Qr.SessionInitiate;for(const e of n.contents||[])e.creator="initiator",Ao(e);yield this.pc.setLocalDescription(t),this.send("session-initiate",n)}))),t()}catch(e){this._log("error","Could not create WebRTC offer",e),this.end("failed-application",!0)}}))}accept(e,t){return Object(r.a)(this,arguments,void 0,(function*(){1===arguments.length&&"function"==typeof e&&(t=e,e={}),t=t||(()=>{}),e=e||{},this._log("info","Accepted incoming session"),this.state="active",this.role="responder";try{yield this.processLocal(Qr.SessionAccept,()=>Object(r.a)(this,void 0,void 0,(function*(){const t=yield this.pc.createAnswer(e),n=Co(vo(t.sdp),this.role,this.transportType);n.sid=this.sid,n.action=Qr.SessionAccept;for(const e of n.contents||[])e.creator="initiator";yield this.pc.setLocalDescription(t),yield this.processBufferedCandidates(),this.send("session-accept",n)}))),t()}catch(e){this._log("error","Could not create WebRTC answer",e),this.end("failed-application")}}))}end(e="success",t=!1){for(const e of this.pc.getReceivers())this.onRemoveTrack(e.track);super.end(e,t)}ring(){return this.processLocal("ring",()=>Object(r.a)(this,void 0,void 0,(function*(){this._log("info","Ringing on incoming session"),this.ringing=!0,this.send(Qr.SessionInfo,{info:{infoType:ao}})})))}mute(e,t){return this.processLocal("mute",()=>Object(r.a)(this,void 0,void 0,(function*(){this._log("info","Muting",t),this.send(Qr.SessionInfo,{info:{creator:e,infoType:to,name:t}})})))}unmute(e,t){return this.processLocal("unmute",()=>Object(r.a)(this,void 0,void 0,(function*(){this._log("info","Unmuting",t),this.send(Qr.SessionInfo,{info:{creator:e,infoType:no,name:t}})})))}hold(){return this.processLocal("hold",()=>Object(r.a)(this,void 0,void 0,(function*(){this._log("info","Placing on hold"),this.send("session-info",{info:{infoType:io}})})))}resume(){return this.processLocal("resume",()=>Object(r.a)(this,void 0,void 0,(function*(){this._log("info","Resuming from hold"),this.send("session-info",{info:{infoType:oo}})})))}addTrack(e,t,n){return"audio"===e.kind&&(this.includesAudio=!0),"video"===e.kind&&(this.includesVideo=!0),this.processLocal("addtrack",()=>Object(r.a)(this,void 0,void 0,(function*(){this.pc.addTrack?this.pc.addTrack(e,t):this.pc.addStream(t),n&&n()})))}removeTrack(e,t){return Object(r.a)(this,void 0,void 0,(function*(){return this.processLocal("removetrack",()=>Object(r.a)(this,void 0,void 0,(function*(){if(this.pc.removeTrack(e),t)return t()})))}))}onAddTrack(e,t){this._log("info","Track added"),this.parent.emit("peerTrackAdded",this,e,t)}onRemoveTrack(e){this._log("info","Track removed"),this.parent.emit("peerTrackRemoved",this,e)}onSessionInitiate(e,t){return Object(r.a)(this,void 0,void 0,(function*(){this._log("info","Initiating incoming session"),this.state="pending",this.role="responder",this.transportType=e.contents[0].transport.transportType;const n=Eo(e,this.peerRole);for(const e of n.media)"audio"===e.kind&&(this.includesAudio=!0),"video"===e.kind&&(this.includesVideo=!0),e.streams||(e.streams=[{stream:"legacy",track:e.kind}]);const i=bo(n);try{return yield this.pc.setRemoteDescription({type:"offer",sdp:i}),yield this.processBufferedCandidates(),t()}catch(e){return this._log("error","Could not create WebRTC answer",e),t({condition:"general-error"})}}))}onSessionTerminate(e,t){for(const e of this.pc.getReceivers())this.onRemoveTrack(e.track);super.onSessionTerminate(e,t)}onSessionInfo(e,t){const n=e.info||{infoType:""};switch(n.infoType){case ao:return this._log("info","Outgoing session is ringing"),this.ringing=!0,this.parent.emit("ringing",this),t();case io:return this._log("info","On hold"),this.parent.emit("hold",this),t();case ro:case oo:return this._log("info","Resuming from hold"),this.parent.emit("resumed",this),t();case to:return this._log("info","Muting",n),this.parent.emit("mute",this,n),t();case no:return this._log("info","Unmuting",n),this.parent.emit("unmute",this,n),t()}return t()}}class No extends a.EventEmitter{constructor(e={}){super(),e=e||{},this.selfID=e.selfID,this.sessions={},this.peers={},this.iceServers=e.iceServers||[],this.prepareSession=e.prepareSession||(e=>{if(this.config.hasRTCPeerConnection)return e.applicationTypes.indexOf(Pn)>=0?new Mo(e):e.applicationTypes.indexOf(Fn)>=0?new Io(e):void 0}),this.performTieBreak=e.performTieBreak||((e,t)=>{const n=(t.jingle.contents||[]).map(e=>{if(e.application)return e.application.applicationType});return(e.pendingApplicationTypes||[]).filter(e=>n.includes(e)).length>0}),this.createPeerConnection=e.createPeerConnection||((e,t)=>{if(tr)return new tr(t)}),this.config=Object.assign({debug:!1,hasRTCPeerConnection:!!tr,peerConnectionConfig:{bundlePolicy:e.bundlePolicy||"balanced",iceTransportPolicy:e.iceTransportPolicy||"all",rtcpMuxPolicy:e.rtcpMuxPolicy||"require",sdpSemantics:e.sdpSemantics||"plan-b"},peerConnectionConstraints:{optional:[{DtlsSrtpKeyAgreement:!0},{RtpDataChannels:!1}]}},e)}addICEServer(e){if("string"==typeof e)return void this.iceServers.push({urls:e});if(!(t=e).type&&(t.urls||t.url))return void this.iceServers.push(e);var t;let n=e.host||"";n.indexOf(":")>=0&&(n=`[${n}]`);let i=`${e.type}:${n}`;e.port&&(i+=":"+e.port),e.transport&&(i+="?transport="+e.transport),"turn"===e.type||"turns"===e.type?this.iceServers.push({credential:e.password,urls:[i],username:e.username}):"stun"!==e.type&&"stuns"!==e.type||this.iceServers.push({urls:[i]})}resetICEServers(){this.iceServers=[]}addSession(e){e.parent=this;const t=e.sid,n=e.peerID;return this.sessions[t]=e,this.peers[n]||(this.peers[n]=[]),this.peers[n].push(e),this.emit("createdSession",e),e}forgetSession(e){const t=this.peers[e.peerID]||[];t.length&&t.splice(t.indexOf(e),1),delete this.sessions[e.sid]}createMediaSession(e,t,n){const i=new Mo({config:this.config.peerConnectionConfig,constraints:this.config.peerConnectionConstraints,iceServers:this.iceServers,initiator:!0,maxRelayBandwidth:786432,parent:this,peerID:e,sid:t,stream:n});return this.addSession(i),i}createFileTransferSession(e,t){const n=new Io({config:this.config.peerConnectionConfig,constraints:this.config.peerConnectionConstraints,iceServers:this.iceServers,initiator:!0,maxRelayBandwidth:786432,parent:this,peerID:e,sid:t});return this.addSession(n),n}endPeerSessions(e,t,n=!1){const i=this.peers[e]||[];delete this.peers[e];for(const e of i)e.end(t||"gone",n)}endAllSessions(e,t=!1){for(const n of Object.keys(this.peers))this.endPeerSessions(n,e,t)}process(e){const t=e.jingle?e.jingle.sid:void 0;let n=t?this.sessions[t]:void 0;const i=e.id,r=e.from;if(!r)return;if("error"===e.type){if(this._log("error","Received error response",e),n&&e.error&&"unknown-session"===e.error.jingleError)return n.end("gone",!0);const t=e.error&&"tie-break"===e.error.jingleError;return n&&"pending"===n.state&&t?n.end("alternative-session",!0):void(n&&(n.pendingAction=void 0))}if("result"===e.type)return void(n&&(n.pendingAction=void 0));const o=e.jingle.action,a=e.jingle.contents||[],s=a.map(e=>e.application?e.application.applicationType:void 0),l=a.map(e=>e.transport?e.transport.transportType:void 0);if(o!==Qr.SessionInitiate){if(!n)return"session-terminate"===o?void this.emit("send",{id:i,to:r,type:"result"}):(this._log("error","Unknown session",t),this._sendError(r,i,{condition:"item-not-found",jingleError:"unknown-session"}));if(n.peerID!==r||"ended"===n.state)return this._log("error","Session has ended, or action has wrong sender"),this._sendError(r,i,{condition:"item-not-found",jingleError:"unknown-session"});if("session-accept"===o&&"pending"!==n.state)return this._log("error","Tried to accept session twice",t),this._sendError(r,i,{condition:"unexpected-request",jingleError:"out-of-order"});if("session-terminate"!==o&&o===n.pendingAction&&(this._log("error","Tie break during pending request"),n.isInitiator))return this._sendError(r,i,{condition:"conflict",jingleError:"tie-break"})}else if(n){if(n.peerID!==r)return this._log("error","Duplicate sid from new sender"),this._sendError(r,i,{condition:"service-unavailable"});if("pending"!==n.state)return this._log("error","Someone is doing this wrong"),this._sendError(r,i,{condition:"unexpected-request",jingleError:"out-of-order"});if(this.selfID&&this.selfID>n.peerID&&this.performTieBreak(n,e))return this._log("error","Tie break new session because of duplicate sids"),this._sendError(r,i,{condition:"conflict",jingleError:"tie-break"})}else if(this.peers[r]&&this.peers[r].length)for(let n=0,o=this.peers[r].length;n<o;n++){const o=this.peers[r][n];if(o&&"pending"===o.state&&t&&xr(o.sid,t)>0&&this.performTieBreak(o,e))return this._log("info","Tie break session-initiate"),this._sendError(r,i,{condition:"conflict",jingleError:"tie-break"})}if("session-initiate"===o){if(!a.length)return this._sendError(r,i,{condition:"bad-request"});n=this._createIncomingSession({applicationTypes:s,config:this.config.peerConnectionConfig,constraints:this.config.peerConnectionConstraints,iceServers:this.iceServers,initiator:!1,parent:this,peerID:r,sid:t,transportTypes:l},e)}n.process(o,e.jingle,t=>{t?(this._log("error","Could not process request",e,t),this._sendError(r,i,t)):(this.emit("send",{id:i,to:r,type:"result"}),"session-initiate"===o&&this.emit("incoming",n))})}signal(e,t){const n=t.jingle&&t.jingle.action;e.isInitiator&&n===Qr.SessionInitiate&&this.emit("outgoing",e),this.emit("send",t)}_createIncomingSession(e,t){let n;return this.prepareSession&&(n=this.prepareSession(e,t)),n||(n=new jo(e)),this.addSession(n),n}_sendError(e,t,n){n.type||(n.type="cancel"),this.emit("send",{error:n,id:t,to:e,type:"error"})}_log(e,t,...n){this.emit("log",e,t,...n),this.emit("log:"+e,t,...n)}}function Do(e){const t=!!tr,n={advertiseAudio:t,advertiseFileTransfer:t,advertiseVideo:t,bundlePolicy:"balanced",hasRTCPeerConnection:t,iceServers:[{urls:"stun:stun.l.google.com:19302"}],iceTransportPolicy:"all",rtcpMuxPolicy:"require",trickleIce:!0},i=e.config.jingle,o=Object.assign(Object.assign({},n),i),a=e.jingle=new No(o),s=[Rn];o.hasRTCPeerConnection&&(s.push(ni,Mn,"urn:xmpp:jingle:transports:dtls-sctp:1","urn:xmpp:jingle:apps:dtls:0","urn:ietf:rfc:5888"),!1===o.trickleIce&&s.push("urn:ietf:rfc:3264"),(o.advertiseAudio||o.advertiseVideo)&&s.push(Pn,$n,Hn,"urn:ietf:rfc:5576"),o.advertiseAudio&&s.push("urn:xmpp:jingle:apps:rtp:audio"),o.advertiseVideo&&s.push("urn:xmpp:jingle:apps:rtp:video"),o.advertiseFileTransfer&&s.push("urn:xmpp:jingle:apps:file-transfer:4",Fn));for(const t of s)e.disco.addFeature(t);const l=["outgoing","incoming","accepted","terminated","ringing","mute","unmute","hold","resumed"];for(const t of l)a.on(t,(n,i)=>{e.emit("jingle:"+t,n,i)});a.on("createdSession",t=>{e.emit("jingle:created",t)}),a.on("send",t=>Object(r.a)(this,void 0,void 0,(function*(){try{if("set"===t.type){const n=yield e.sendIQ(t);n.jingle||(n.jingle={}),n.jingle.sid=t.jingle.sid,a.process(n)}"result"===t.type&&e.sendIQResult({type:"set",id:t.id,from:t.to},t),"error"===t.type&&e.sendIQError({type:"set",id:t.id,from:t.to},t)}catch(e){e.jingle||(e.jingle=t.jingle),e.jingle.sid=t.jingle.sid,a.process(e)}}))),e.on("session:bound",e=>{a.selfID=e}),e.on("iq:set:jingle",e=>{a.process(e)}),e.on("unavailable",e=>{a.endPeerSessions(e.from,void 0,!0)}),e.getServices=(t,n,i)=>Object(r.a)(this,void 0,void 0,(function*(){const r=(yield e.sendIQ({externalServices:{type:n,version:i},to:t,type:"get"})).externalServices;return r.services=r.services||[],r})),e.getServiceCredentials=(t,n,i,o,a)=>Object(r.a)(this,void 0,void 0,(function*(){return(yield e.sendIQ({externalServiceCredentials:{host:n,port:o,type:i,version:a},to:t,type:"get"})).externalServiceCredentials})),e.discoverICEServers=(t={})=>Object(r.a)(this,void 0,void 0,(function*(){try{const n=(yield e.getServices(e.config.server,void 0,t.version)).services||[],i=[];for(const t of n)e.jingle.addICEServer(t);return i}catch(e){return[]}}))}function Lo(e){e.getHistorySearchForm=(t,n={})=>Object(r.a)(this,void 0,void 0,(function*(){return(yield e.sendIQ({archive:{type:"query",version:n.version},to:t,type:"get"})).archive.form})),e.searchHistory=(t,n={})=>Object(r.a)(this,void 0,void 0,(function*(){const i=e.nextId();let r="";"string"==typeof t?r=t:(r=t.to||"",n=t),n.queryId=i;const o=n.form||{};o.type="submit";const a=o.fields||[],s=[{name:"FORM_TYPE",type:"hidden",value:"urn:xmpp:mam:2"}];n.with&&s.push({name:"with",type:"text-single",value:n.with}),n.start&&s.push({name:"start",type:"text-single",value:n.start.toISOString()}),n.end&&s.push({name:"end",type:"text-single",value:n.end.toISOString()}),o.fields=function(e,t){const n=[],i=new Map;for(const e of t)e.name&&i.set(e.name,e);const r=new Set;for(const t of e)t.name&&i.has(t.name)?(n.push(Object.assign(Object.assign({},t),i.get(t.name))),r.add(t.name)):n.push(Object.assign({},t));for(const e of t)(!e.name||e.name&&!r.has(e.name))&&n.push(Object.assign({},e));return n}(s,a),n.form=o;const l=H(e.jid,r),c=[],u=e=>{l.has(e.from)&&e.archive&&e.archive.queryId===i&&c.push(e.archive)};e.on("mam:item",u);try{const t=yield e.sendIQ({archive:n,id:i,to:r,type:"set"});return Object.assign(Object.assign({},t.archive),{results:c})}finally{e.off("mam:item",u)}})),e.getHistoryPreferences=()=>Object(r.a)(this,void 0,void 0,(function*(){return(yield e.sendIQ({archive:{type:"preferences"},type:"get"})).archive})),e.setHistoryPreferences=t=>e.sendIQ({archive:Object.assign({type:"preferences"},t),type:"set"}),e.on("message",t=>{t.archive&&e.emit("mam:item",t)})}const qo=new Set(["chat","headline","normal"]),Fo=new Set(["chat","groupchat","normal"]),zo=(e,t)=>e.marker&&"markable"===e.marker.type&&!1!==t.config.chatMarkers;function Uo(e,t){return Object(r.a)(this,void 0,void 0,(function*(){yield e.sendIQ({carbons:{action:t},type:"set"})}))}function Bo(e,t,n){if(zo(t,e)){const i="groupchat"===t.type?K(t.from):t.from;e.sendMessage({body:"",marker:{id:t.id,type:n},to:i,type:t.type})}}function Vo(e){e.disco.addFeature("urn:xmpp:attention:0"),e.disco.addFeature(Yn),e.disco.addFeature(yn),e.disco.addFeature("urn:xmpp:message-correct:0"),e.disco.addFeature("urn:xmpp:receipts"),e.disco.addFeature(Jn),e.enableCarbons=()=>Uo(e,"enable"),e.disableCarbons=()=>Uo(e,"disable"),e.markReceived=t=>Bo(e,t,"received"),e.markDisplayed=t=>Bo(e,t,"displayed"),e.markAcknowledged=t=>Bo(e,t,"acknowledged"),e.getAttention=(t,n={})=>e.sendMessage(Object.assign(Object.assign({},n),{requestingAttention:!0,to:t,type:"headline"})),e.on("message",t=>{if(t.carbon&&W(t.from,e.jid)){const n=t.carbon.forward.message;n.delay||(n.delay=t.carbon.forward.delay||{timestamp:new Date(Date.now())}),(e=>!!e.carbon&&"received"===e.carbon.type)(t)&&(e.emit("carbon:received",t),e.emit("message",n)),(e=>!!e.carbon&&"sent"===e.carbon.type)(t)&&(e.emit("carbon:sent",t),e.emit("message:sent",n,!0))}if((e=>!!e.forms&&e.forms.length>0)(t)&&e.emit("dataform",t),t.requestingAttention&&e.emit("attention",t),(e=>!!e.rtt)(t)&&e.emit("rtt",t),(e=>!!e.replace)(t)&&e.emit("replace",t),(e=>!!e.chatState)(t)&&Fo.has(t.type||"normal")&&e.emit("chat:state",t),zo(t,e)&&e.markReceived(t),t.marker&&"markable"!==t.marker.type&&e.emit("marker:"+t.marker.type,t),(e=>!!e.receipt)(t)){!1!==e.config.sendReceipts&&qo.has(t.type||"normal")&&"request"===t.receipt.type&&e.sendMessage({id:t.id,receipt:{id:t.id,type:"received"},to:t.from,type:t.type}),"received"===t.receipt.type&&e.emit("receipt",t)}})}function $o(e){function t(){const t=e.joiningRooms;e.joiningRooms=new Map;for(const[n,i]of t)e.joinRoom(n,i);const n=e.joinedRooms;e.joinedRooms=new Map;for(const[t,i]of n)e.joinRoom(t,i)}e.disco.addFeature(en),e.disco.addFeature("jabber:x:conference"),e.disco.addFeature(Kn),e.joinedRooms=new Map,e.joiningRooms=new Map,e.leavingRooms=new Map,e.on("session:started",t),e.on("stream:management:resumed",t),e.on("message",t=>{if("groupchat"===t.type&&t.hasSubject)e.emit("muc:topic",{from:t.from,room:K(t.from),topic:t.subject||""});else if(t.muc)if("direct-invite"===t.muc.type||!t.muc.invite&&t.legacyMUC){const n="direct-invite"===t.muc.type?t.muc:t.legacyMUC;e.emit("muc:invite",{from:t.from,password:n.password,reason:n.reason,room:n.jid,thread:n.thread,type:"direct"})}else t.muc.invite?e.emit("muc:invite",{from:t.muc.invite[0].from,password:t.muc.password,reason:t.muc.invite[0].reason,room:t.from,thread:t.muc.invite[0].thread,type:"mediated"}):t.muc.decline?e.emit("muc:declined",{from:t.muc.decline.from,reason:t.muc.decline.reason,room:t.from}):e.emit("muc:other",t)}),e.on("presence",t=>{const n=K(t.from);if(e.joiningRooms.has(n)&&"error"===t.type)return e.joiningRooms.delete(n),e.emit("muc:failed",t),void e.emit("muc:error",t);if(!function(e){return!!e.muc}(t))return;const i=t.muc.statusCodes&&t.muc.statusCodes.indexOf(Br.SelfPresence)>=0,r=t.muc.statusCodes&&t.muc.statusCodes.indexOf(Br.NickChanged)>=0;if("error"===t.type)return void e.emit("muc:error",t);if("unavailable"===t.type)return e.emit("muc:unavailable",t),i&&(r?e.joinedRooms.set(n,t.muc.nick):(e.emit("muc:leave",t),e.joinedRooms.delete(n),e.leavingRooms.delete(n))),void(t.muc.destroy&&e.emit("muc:destroyed",{newRoom:t.muc.destroy.jid,password:t.muc.destroy.password,reason:t.muc.destroy.reason,room:n}));e.emit("muc:available",t);const o=e.joiningRooms.has(n)||!e.joinedRooms.has(n);i&&(e.joinedRooms.set(n,J(t.from)),o&&(e.joiningRooms.delete(n),e.emit("muc:join",t)))}),e.joinRoom=(t,n,i={})=>Object(r.a)(this,void 0,void 0,(function*(){if(t=K(t),e.joiningRooms.set(t,n||""),!n)try{n=yield e.getReservedNick(t),e.joiningRooms.set(t,n)}catch(e){throw new Error("Room nick required")}return new Promise((r,o)=>{function a(n){W(n.from,t)&&(e.off("muc:join",a),e.off("muc:failed",s),r(n))}function s(n){W(n.from,t)&&(e.off("muc:join",a),e.off("muc:failed",s),o(n))}e.on("muc:join",a),e.on("muc:failed",s),e.sendPresence(Object.assign(Object.assign({},i),{muc:Object.assign(Object.assign({},i.muc),{type:"join"}),to:V(t,n)}))})})),e.leaveRoom=(t,n,i={})=>(t=K(t),n=n||e.joinedRooms.get(t),e.leavingRooms.set(t,n),new Promise((r,o)=>{const a=i.id||Er();function s(n){W(n.from,t)&&(e.off("muc:leave",s),e.off("presence:error",l),r(n))}function l(n){n.id===a&&H(t)&&(e.joinedRooms.has(t)||e.leavingRooms.delete(t),e.off("muc:leave",s),e.off("presence:error",l),o(n))}e.on("muc:leave",s),e.on("presence:error",l),e.sendPresence(Object.assign(Object.assign({},i),{id:a,to:V(t,n),type:"unavailable"}))})),e.ban=(t,n,i)=>e.setRoomAffiliation(t,n,"outcast",i),e.kick=(t,n,i)=>e.setRoomRole(t,n,"none",i),e.invite=(t,n=[])=>{Array.isArray(n)||(n=[n]),e.sendMessage({muc:{invite:n,type:"info"},to:t})},e.directInvite=(t,n,i={})=>{e.sendMessage({muc:Object.assign(Object.assign({},i),{jid:t,type:"direct-invite"}),to:n})},e.declineInvite=(t,n,i)=>{e.sendMessage({muc:{decline:{reason:i,to:n},type:"info"},to:t})},e.changeNick=(t,n)=>{const i=Er(),r=V(t,n),o=H(t);return new Promise((t,n)=>{function a(n){o.has(K(n.from))&&n.muc.statusCodes&&n.muc.statusCodes.includes(Br.SelfPresence)&&(e.off("muc:available",a),e.off("presence:id:"+i,s),t(n))}function s(r){o.has(K(r.from))&&r.id===i&&(e.off("muc:available",a),e.off("presence:id:"+i,s),"error"===r.type?n(r):t(r))}e.on("muc:available",a),e.on("presence:id:"+i,s),e.sendPresence({id:i,to:r})})},e.setSubject=(t,n)=>{e.sendMessage({subject:n,to:t,type:"groupchat"})},e.getReservedNick=t=>Object(r.a)(this,void 0,void 0,(function*(){try{const n=(yield e.getDiscoInfo(t,"x-roomuser-item")).identities[0];if(n.name)return n.name;throw new Error("No nickname reserved")}catch(e){throw new Error("No nickname reserved")}})),e.requestRoomVoice=t=>{e.sendMessage({forms:[{fields:[{name:"FORM_TYPE",type:"hidden",value:"http://jabber.org/protocol/muc#request"},{name:"muc#role",type:"text-single",value:"participant"}],type:"submit"}],to:t})},e.setRoomAffiliation=(t,n,i,r)=>e.sendIQ({muc:{type:"user-list",users:[{affiliation:i,jid:n,reason:r}]},to:t,type:"set"}),e.setRoomRole=(t,n,i,r)=>e.sendIQ({muc:{type:"user-list",users:[{nick:n,reason:r,role:i}]},to:t,type:"set"}),e.getRoomMembers=(t,n={affiliation:"member"})=>e.sendIQ({muc:{type:"user-list",users:[n]},to:t,type:"get"}),e.getRoomConfig=t=>Object(r.a)(this,void 0,void 0,(function*(){const n=yield e.sendIQ({muc:{type:"configure"},to:t,type:"get"});if(!n.muc.form)throw new Error("No configuration form returned");return n.muc.form})),e.configureRoom=(t,n={})=>e.sendIQ({muc:{form:Object.assign(Object.assign({},n),{type:"submit"}),type:"configure"},to:t,type:"set"}),e.destroyRoom=(t,n={})=>e.sendIQ({muc:{destroy:n,type:"configure"},to:t,type:"set"}),e.getUniqueRoomName=function(e){return Object(r.a)(this,void 0,void 0,(function*(){const t=yield this.sendIQ({muc:{type:"unique"},to:e,type:"get"});if(!t.muc.name)throw new Error("No unique name returned");return t.muc.name}))},e.getBookmarks=()=>Object(r.a)(this,void 0,void 0,(function*(){const t=yield e.getPrivateData("bookmarks");return t&&t.rooms?t.rooms:[]})),e.setBookmarks=t=>e.setPrivateData("bookmarks",{rooms:t}),e.addBookmark=t=>Object(r.a)(this,void 0,void 0,(function*(){const n=yield e.getBookmarks(),i=[];let r=!1;for(const e of n)W(e.jid,t.jid)?(i.push(Object.assign(Object.assign({},e),t)),r=!0):i.push(e);return r||i.push(t),e.setBookmarks(i)})),e.removeBookmark=t=>Object(r.a)(this,void 0,void 0,(function*(){const n=(yield e.getBookmarks()).filter(e=>!W(e.jid,t));return e.setBookmarks(n)}))}function Ho(e){e.disco.addFeature(wn),e.disco.addFeature(gn),e.disco.addFeature(kn),e.disco.addFeature(An),e.disco.addFeature(Sn),e.disco.addFeature(On(wn)),e.disco.addFeature(On(gn)),e.disco.addFeature(On(kn)),e.disco.addFeature(On(An)),e.disco.addFeature(On(Sn)),e.publishActivity=t=>e.publish("",wn,Object.assign({itemType:wn},t)),e.publishGeoLoc=t=>e.publish("",gn,Object.assign({itemType:gn},t)),e.publishMood=t=>e.publish("",kn,Object.assign({itemType:kn},t)),e.publishNick=t=>e.publish("",An,{itemType:An,nick:t}),e.publishTune=t=>e.publish("",Sn,Object.assign({itemType:Sn},t)),e.on("pubsub:published",t=>{const n=t.pubsub.items.published[0].content;switch(t.pubsub.items.node){case wn:return e.emit("activity",{activity:n,jid:t.from});case gn:return e.emit("geoloc",{geoloc:n,jid:t.from});case kn:return e.emit("mood",{jid:t.from,mood:n});case An:return e.emit("nick",{jid:t.from,nick:n.nick});case Sn:return e.emit("tune",{jid:t.from,tune:t.pubsub.items.published[0].content})}})}function Wo(e){e.disco.addFeature(En+"#SubID",En),e.on("message",t=>{!function(e){return!!e.pubsub&&!(e.pubsub.context&&"user"!==e.pubsub.context||!e.pubsub.affiliations)}(t)?function(e){return!!e.pubsub}(t)&&(e.emit("pubsub:event",t),!function(e){return!!e.pubsub.items&&!!e.pubsub.items.published}(t)?!function(e){return!!e.pubsub.items&&!!e.pubsub.items.retracted}(t)?!function(e){return"purge"===e.pubsub.eventType}(t)?!function(e){return"purge"===e.pubsub.eventType}(t)?!function(e){return"subscription"===e.pubsub.eventType}(t)?function(e){return"configuration"===e.pubsub.eventType}(t)&&e.emit("pubsub:config",t):e.emit("pubsub:subscription",t):e.emit("pubsub:deleted",t):e.emit("pubsub:purged",t):e.emit("pubsub:retracted",t):e.emit("pubsub:published",t)):e.emit("pubsub:affiliations",t)}),e.subscribeToNode=(t,n)=>Object(r.a)(this,void 0,void 0,(function*(){const i={};let r;"string"==typeof n?(i.node=n,i.jid=K(e.jid)):(i.node=n.node,i.jid=n.jid||(n.useBareJID?K(e.jid):e.jid),r=n.options);const o=yield e.sendIQ({pubsub:{context:"user",subscribe:i,subscriptionOptions:r?{form:r}:void 0},to:t,type:"set"}),a=o.pubsub.subscription||{};return o.pubsub.subscriptionOptions&&(a.options=o.pubsub.subscriptionOptions.form),a})),e.unsubscribeFromNode=(t,n)=>Object(r.a)(this,void 0,void 0,(function*(){const i={};"string"==typeof n?(i.node=n,i.jid=K(e.jid)):(i.node=n.node,i.subid=n.subid,i.jid=n.jid||(n.useBareJID?K(e.jid):e.jid));const r=yield e.sendIQ({pubsub:{context:"user",unsubscribe:i},to:t,type:"set"});return r.pubsub&&r.pubsub.subscription?r.pubsub.subscription:Object.assign(Object.assign({},i),{state:"none"})})),e.publish=(t,n,i,r)=>e.sendIQ({pubsub:{context:"user",publish:{item:{content:i,id:r},node:n}},to:t,type:"set"}),e.getItem=(t,n,i)=>Object(r.a)(this,void 0,void 0,(function*(){return(yield e.sendIQ({pubsub:{context:"user",fetch:{items:[{id:i}],node:n}},to:t,type:"get"})).pubsub.fetch.items[0]})),e.getItems=(t,n,i={})=>Object(r.a)(this,void 0,void 0,(function*(){return(yield e.sendIQ({pubsub:{context:"user",fetch:{max:i.max,node:n},paging:i},to:t,type:"get"})).pubsub.fetch})),e.retract=(t,n,i,r)=>e.sendIQ({pubsub:{context:"user",retract:{id:i,node:n,notify:r}},to:t,type:"set"}),e.purgeNode=(t,n)=>e.sendIQ({pubsub:{context:"owner",purge:n},to:t,type:"set"}),e.deleteNode=(t,n,i)=>e.sendIQ({pubsub:{context:"owner",destroy:{node:n,redirect:i}},to:t,type:"set"}),e.createNode=(t,n,i)=>Object(r.a)(this,void 0,void 0,(function*(){const r=yield e.sendIQ({pubsub:{configure:i?{form:i}:void 0,context:"user",create:{node:n}},to:t,type:"set"});return r.pubsub&&r.pubsub.create?r.pubsub.create:{node:n}})),e.getSubscriptions=(t,n={})=>Object(r.a)(this,void 0,void 0,(function*(){return(yield e.sendIQ({pubsub:{context:"user",subscriptions:n},to:t,type:"get"})).pubsub.subscriptions})),e.getAffiliations=(t,n)=>e.sendIQ({pubsub:{affiliations:{node:n}},to:t,type:"get"}),e.getNodeSubscribers=(t,n,i={})=>("string"==typeof n?i.node=n:i=Object.assign(Object.assign({},i),n),e.sendIQ({pubsub:{context:"owner",subscriptions:i},to:t,type:"get"})),e.updateNodeSubscriptions=(t,n,i)=>e.sendIQ({pubsub:{context:"owner",subscriptions:{items:i,node:n}},to:t,type:"set"}),e.getNodeAffiliations=(t,n)=>Object(r.a)(this,void 0,void 0,(function*(){return(yield e.sendIQ({pubsub:{affiliations:{node:n},context:"owner"},to:t,type:"get"})).pubsub.affiliations})),e.updateNodeAffiliations=(t,n,i)=>e.sendIQ({pubsub:{affiliations:{items:i,node:n},context:"owner"},to:t,type:"set"}),e.getNodeConfig=(t,n)=>Object(r.a)(this,void 0,void 0,(function*(){return(yield e.sendIQ({pubsub:{configure:{node:n},context:"owner"},to:t,type:"get"})).pubsub.configure.form||{}})),e.getDefaultNodeConfig=t=>Object(r.a)(this,void 0,void 0,(function*(){return(yield e.sendIQ({pubsub:{context:"owner",defaultConfiguration:{}},to:t,type:"get"})).pubsub.defaultConfiguration.form||{}})),e.configureNode=(t,n,i)=>Object(r.a)(this,void 0,void 0,(function*(){return e.sendIQ({pubsub:{configure:{form:i,node:n},context:"owner"},to:t,type:"set"})})),e.getDefaultSubscriptionOptions=t=>Object(r.a)(this,void 0,void 0,(function*(){return(yield e.sendIQ({pubsub:{defaultSubscriptionOptions:{}},to:t,type:"get"})).pubsub.defaultSubscriptionOptions.form||{}}))}function Go(e){function t(t,n){return Object(r.a)(this,void 0,void 0,(function*(){yield e.sendIQ({blockList:{action:t,jids:[n]},type:"set"})}))}e.on("iq:set:roster",t=>{if(!H(e.jid).has(t.from))return e.sendIQError(t,{error:{condition:"service-unavailable",type:"cancel"}});e.emit("roster:update",t),e.sendIQResult(t)}),e.on("iq:set:blockList",t=>{if(!H(e.jid).has(t.from))return e.sendIQError(t,{error:{condition:"service-unavailable",type:"cancel"}});const n=t.blockList;e.emit(n.action,{jids:n.jids||[]}),e.sendIQResult(t)}),e.getRoster=()=>Object(r.a)(this,void 0,void 0,(function*(){const t=yield e.sendIQ({roster:{version:e.config.rosterVer},type:"get"});if(t.roster){const n=t.roster.version;return n&&(e.config.rosterVer=n,e.emit("roster:ver",n)),t.roster.items=t.roster.items||[],t.roster}return{items:[]}})),e.updateRosterItem=t=>Object(r.a)(this,void 0,void 0,(function*(){yield e.sendIQ({roster:{items:[t]},type:"set"})})),e.removeRosterItem=t=>e.updateRosterItem({jid:t,subscription:"remove"}),e.subscribe=t=>{e.sendPresence({type:"subscribe",to:t})},e.unsubscribe=t=>{e.sendPresence({type:"unsubscribe",to:t})},e.acceptSubscription=t=>{e.sendPresence({type:"subscribed",to:t})},e.denySubscription=t=>{e.sendPresence({type:"unsubscribed",to:t})},e.getBlocked=()=>Object(r.a)(this,void 0,void 0,(function*(){const t=yield e.sendIQ({blockList:{action:"list"},type:"get"});return Object.assign({jids:[]},t.blockList)})),e.block=e=>Object(r.a)(this,void 0,void 0,(function*(){return t("block",e)})),e.unblock=e=>Object(r.a)(this,void 0,void 0,(function*(){return t("unblock",e)})),e.goInvisible=(t=!1)=>Object(r.a)(this,void 0,void 0,(function*(){yield e.sendIQ({type:"set",visiblity:{probe:t,type:"invisible"}})})),e.goVisible=()=>Object(r.a)(this,void 0,void 0,(function*(){yield e.sendIQ({type:"set",visiblity:{type:"visible"}})}))}function Qo(e){e.registerFeature("sasl",100,(t,n)=>Object(r.a)(this,void 0,void 0,(function*(){const i=e.sasl.createMechanism(t.sasl.mechanisms),o=t=>Object(r.a)(this,void 0,void 0,(function*(){if(i)switch(t.type){case"success":return e.features.negotiated.sasl=!0,e.off("sasl",o),e.emit("auth:success",e.config.credentials),e.transport&&(e.transport.authenticated=!0),void n("restart");case"challenge":i.processChallenge(t.value);try{const t=yield e.getCredentials(),n=i.createResponse(t);n||""===n?e.send("sasl",{type:"response",value:n}):e.send("sasl",{type:"response"});const r=i.getCacheableCredentials();r&&(e.config.credentials||(e.config.credentials={}),e.config.credentials=Object.assign(Object.assign({},e.config.credentials),r),e.emit("credentials:update",e.config.credentials))}catch(t){console.error(t),e.send("sasl",{type:"abort"})}return;case"failure":case"abort":return e.off("sasl",o),e.emit("auth:failed"),void n("disconnect","authentication failed")}}));if(!i)return e.off("sasl",o),e.emit("auth:failed"),n("disconnect","authentication failed");e.on("sasl",o),e.once("--reset-stream-features",()=>{e.features.negotiated.sasl=!1,e.off("sasl",o)});try{const t=yield e.getCredentials();e.send("sasl",{mechanism:i.name,type:"auth",value:i.createResponse(t)})}catch(t){console.error(t),e.send("sasl",{type:"abort"})}})))}function Jo(e){function t(t){return Object(r.a)(this,void 0,void 0,(function*(){const n=yield e.getDiscoInfo(t);if(!n.features||!n.features.includes(ti))return;let i;for(const e of n.extensions||[]){const n=e.fields||[];if(n.some(e=>"FORM_TYPE"===e.name&&e.value===ti)){const e=n.find(e=>"max-file-size"===e.name);return e&&(i=parseInt(e.value,10)),{jid:t,maxSize:i}}}}))}e.disco.addFeature(qn),e.getBits=(t,n)=>Object(r.a)(this,void 0,void 0,(function*(){return(yield e.sendIQ({bits:{cid:n},to:t,type:"get"})).bits})),e.getUploadService=(n=Q(e.jid))=>Object(r.a)(this,void 0,void 0,(function*(){const i=yield t(n);if(i)return i;const r=yield e.getDiscoItems(n);for(const e of r.items||[]){if(!e.jid)continue;const n=yield t(e.jid);if(n)return n}throw new Error("No upload service discovered on: "+n)})),e.getUploadSlot=(t,n)=>Object(r.a)(this,void 0,void 0,(function*(){return(yield e.sendIQ({httpUpload:Object.assign({type:"request"},n),to:t,type:"get"})).httpUpload}))}function Ko(e){e.use(ho),e.use(Nr),e.use(yr),e.use(Rr),e.use(go),e.use(Qo)}function Yo(e){e.use(vr),e.use(Vo),e.use(br),e.use(kr),e.use(mo),e.use(Do),e.use(Lo),e.use($o),e.use(Ho),e.use(Wo),e.use(Go),e.use(Jo)}const Xo={aliases:["features.legacySession","iq.legacySession"],element:"session",fields:{optional:yt(null,"optional")},namespace:Vt},Zo=[{aliases:["atomentry",{path:"pubsubcontent",contextField:"itemType"},{path:"pubsubitem.content",contextField:"itemType"},{path:"pubsubeventitem.content",contextField:"itemType"},{path:"iq.pubsub.publish.items",contextField:"itemType"}],element:"entry",fields:{id:pt(null,"id"),published:ht(null,"published"),updated:ht(null,"updated")},namespace:Ft,type:Ft,typeField:"itemType"},{element:"summary",fields:{text:lt(),type:Ge("type","text")},namespace:Ft,path:"atomentry.summary"},{element:"title",fields:{text:lt(),type:Ge("type","text")},namespace:Ft,path:"atomentry.title"},{aliases:[{path:"atomentry.links",multiple:!0}],element:"link",fields:{href:Ge("href"),mediaType:Ge("type"),rel:Ge("rel")},namespace:Ft},{aliases:[{path:"atomentry.authors",multiple:!0}],element:"author",fields:{name:pt(null,"name"),uri:pt(null,"uri"),email:pt(null,"email")},namespace:Ft},{aliases:[{path:"atomentry.contributors",multiple:!0}],element:"contributor",fields:{name:pt(null,"name"),uri:pt(null,"uri"),email:pt(null,"email")},namespace:Ft},{aliases:[{path:"atomentry.categories",multiple:!0}],element:"category",fields:{term:Ge("term"),scheme:Ge("scheme"),label:Ge("label")},namespace:Ft},{element:"content",fields:{text:lt(),type:Ge("type","text")},namespace:Ft,path:"atomentry.content"},{element:"rights",fields:{text:lt(),type:Ge("type","text")},namespace:Ft,path:"atomentry.rights"}],ea={defaultType:"stream",element:"stream",fields:{from:Ge("from"),id:Ge("id"),lang:dt(),to:Ge("to"),version:Ge("version")},namespace:Ht,path:"stream",type:"stream",typeField:"action"},ta={element:"features",namespace:Ht,path:"features"},na={element:"error",fields:{alternateLanguageText:Rt(Wt,"text"),condition:Et(Wt,Object.values(qr),qr.UndefinedCondition),seeOtherHost:pt(Wt,qr.SeeOtherHost),text:pt(Wt,"text")},namespace:Ht,path:"streamError"},ia=Object.values(Dr).map(e=>({aliases:["stanzaError","message.error","presence.error","iq.error"],defaultType:Ut,element:"error",fields:{alternateLanguageText:Rt($t,"text"),by:ai("by"),condition:Et($t,Object.values(Fr),Fr.UndefinedCondition),gone:pt($t,Fr.Gone),redirect:pt($t,Fr.Redirect),text:pt($t,"text"),type:Ge("type")},namespace:e,type:e,typeField:"streamType"})),ra=new Set(["from","id","lang","to","type","payloadType","error","streamType"]),oa=Object.values(Dr).map(e=>({childrenExportOrder:{error:2e5},defaultType:Ut,element:"iq",fields:{from:ai("from"),id:Ge("id"),lang:dt(),payloadType:{order:-1e4,importer(e,t){if("get"!==t.data.type&&"set"!==t.data.type)return;if(1!==e.children.filter(e=>"string"!=typeof e).length)return"invalid-payload-count";const n=Object.keys(t.data).filter(e=>!ra.has(e));return 1!==n.length?"unknown-payload":n[0]}},to:ai("to"),type:Ge("type")},namespace:e,path:"iq",type:e,typeField:"streamType"})),aa=Object.values(Dr).map(e=>({childrenExportOrder:{error:2e5},defaultType:Ut,element:"message",fields:{from:ai("from"),id:Ge("id"),lang:dt(),to:ai("to")},namespace:e,path:"message",type:e,typeField:"streamType"})),sa=Object.values(Dr).map(e=>({childrenExportOrder:{error:2e5},defaultType:Ut,element:"presence",fields:{from:ai("from"),id:Ge("id"),lang:dt(),to:ai("to")},namespace:e,path:"presence",type:e,typeField:"streamType"})),la=[ea,ta,na,...ia,...[{element:"mechanisms",fields:{mechanisms:_t(null,"mechanism")},namespace:Bt,path:"features.sasl"},{element:"abort",namespace:Bt,path:"sasl",type:"abort",typeField:"type"},{element:"auth",fields:{mechanism:Ge("mechanism"),value:ut("base64")},namespace:Bt,path:"sasl",type:"auth",typeField:"type"},{element:"challenge",fields:{value:ut("base64")},namespace:Bt,path:"sasl",type:"challenge",typeField:"type"},{element:"response",fields:{value:ut("base64")},namespace:Bt,path:"sasl",type:"response",typeField:"type"},{element:"success",fields:{value:ut("base64")},namespace:Bt,path:"sasl",type:"success",typeField:"type"},{element:"failure",fields:{alternateLanguageText:Rt(Bt,"text"),condition:Et(Bt,Object.values(Lr)),text:pt(Bt,"text")},namespace:Bt,path:"sasl",type:"failure",typeField:"type"}],...[{aliases:["features.tls"],defaultType:"start",element:"starttls",fields:{required:yt(null,"required")},namespace:Gt,path:"tls",type:"start",typeField:"type"},{element:"proceed",namespace:Gt,path:"tls",type:"proceed",typeField:"type"},{element:"failure",namespace:Gt,path:"tls",type:"failure",typeField:"type"}],...oa,...aa,...sa,{aliases:["features.bind","iq.bind"],element:"bind",fields:{jid:pt(null,"jid"),resource:pt(null,"resource")},namespace:zt}],ca=[mi({rosterPreApproval:yt("urn:xmpp:features:pre-approval","sub"),rosterVersioning:yt("urn:xmpp:features:rosterver","ver")}),ui({alternateLanguageBodies:Rt(null,"body"),alternateLanguageSubjects:Rt(null,"subject"),body:pt(null,"body"),hasSubject:yt(null,"subject"),parentThread:it(null,"thread","parent"),subject:pt(null,"subject"),thread:pt(null,"thread"),type:Ge("type")}),di({alternateLanguageStatuses:Rt(null,"status"),priority:ft(null,"priority",0),show:pt(null,"show"),status:pt(null,"status"),type:Ge("type")}),{element:"query",fields:{version:Ge("ver",void 0,{emitEmpty:!0})},namespace:"jabber:iq:roster",path:"iq.roster"},{aliases:[{path:"iq.roster.items",multiple:!0}],element:"item",fields:{groups:_t(null,"group"),jid:ai("jid"),name:Ge("name"),pending:Ge("ask"),preApproved:Qe("approved"),subscription:Ge("subscription")},namespace:"jabber:iq:roster"}],ua=[{element:"open",fields:{from:Ge("from"),id:Ge("id"),lang:dt(),to:Ge("to"),version:Ge("version")},namespace:Qt,path:"stream",type:"open"},{element:"close",fields:{seeOtherURI:Ge("see-other-uri")},namespace:Qt,path:"stream",type:"close"}],da=[{aliases:[{path:"message.forms",multiple:!0}],element:"x",fields:{instructions:Object.assign(Object.assign({},_t(null,"instructions")),{exportOrder:2}),reported:Object.assign(Object.assign({},It(null,"reported","dataformField",!0)),{exportOrder:3}),title:Object.assign(Object.assign({},pt(null,"title")),{exportOrder:1}),type:Ge("type")},namespace:Jt,optionalNamespaces:{xdv:Cn},path:"dataform"},{aliases:[{path:"dataform.fields",multiple:!0},{path:"dataform.items.fields",multiple:!0}],element:"field",fields:{description:pt(null,"desc"),label:Ge("label"),name:Ge("var"),rawValues:Object.assign(Object.assign({},_t(null,"value")),{exporter:()=>null}),required:yt(null,"required"),type:Ge("type"),value:{importer(e,t){const n=e.getAttribute("type"),i=_t(Jt,"value").importer(e,t),r=i[0];switch(n){case Ur.TextMultiple:case Ur.ListMultiple:case Ur.JIDMultiple:return i;case Ur.Hidden:case Ur.Fixed:return 1===i.length?r:i;case Ur.Boolean:if(r)return"1"===r||"true"===r;break;default:return r}},exporter(e,t,n){const i=_t(null,"value");let r=[];const o=n.data&&n.data.rawValues?n.data.rawValues[0]:void 0;if("boolean"==typeof t)r="true"===o||"false"===o?[o]:[t?"1":"0"];else if(Array.isArray(t))for(const e of t)r.push(e.toString());else r=[t.toString()];i.exporter(e,r,Object.assign({},n,{namespace:Jt}))}}},namespace:Jt,path:"dataformField"},{aliases:[{path:"dataform.fields.options",multiple:!0}],element:"option",fields:{label:Ge("label"),value:pt(null,"value")},namespace:Jt},{aliases:[{path:"dataform.items",multiple:!0}],element:"item",namespace:Jt},{element:"validate",fields:{listMax:ot(null,"list-range","max"),listMin:ot(null,"list-range","min"),method:Et(null,["basic","open","range","regex"],"basic"),rangeMax:it(null,"range","max"),rangeMin:it(null,"range","min"),regex:pt(null,"regex"),type:Ge("datatype","xs:string")},namespace:Cn,path:"dataform.fields.validation"}],pa=[{aliases:["presence.legacyLastActivity","iq.lastActivity"],element:"query",fields:{seconds:Je("seconds"),status:lt()},namespace:"jabber:iq:last"}],ma=[{element:"query",fields:{activeList:it(null,"active","name"),defaultList:it(null,"default","name")},namespace:Kt,path:"iq.privacy"},{aliases:[{path:"iq.privacy.lists",multiple:!0}],element:"list",fields:{name:Ge("name")},namespace:Kt},{aliases:[{path:"iq.privacy.lists.items",multiple:!0}],element:"item",fields:{action:Ge("action"),incomingPresence:yt(null,"presence-in"),iq:yt(null,"iq"),messages:yt(null,"message"),order:Je("order"),outgoingPresence:yt(null,"presence-out"),type:Ge("type"),value:Ge("value")},namespace:Kt}],ha=[{aliases:["iq.disco","message.disco","features.disco"],childrenExportOrder:{identities:100},element:"query",fields:{features:jt(null,"feature","var"),node:Ge("node")},namespace:Yt,path:"disco",type:"info",typeField:"type"},{aliases:[{path:"disco.identities",selector:"info",multiple:!0}],element:"identity",fields:{category:Ge("category"),lang:dt(),name:Ge("name"),type:Ge("type")},namespace:Yt},{aliases:[{path:"disco.items",multiple:!0,selector:"items"}],element:"item",fields:{jid:ai("jid"),name:Ge("name"),node:Ge("node")},namespace:Xt},{aliases:[{path:"disco.items",multiple:!0,selector:"info"}],element:"item",fields:{category:ai("category"),lang:dt(),name:Ge("name"),type:Ge("type")},namespace:Yt},ci(Jt,"x",[{path:"disco.extensions",multiple:!0,selector:"info"}]),ci(sn,"set",[{path:"disco.paging",selector:"items"}]),{aliases:["iq.disco","message.disco","features.disco"],element:"query",fields:{node:Ge("node")},namespace:Xt,path:"disco",type:"items",typeField:"type"}],fa=[ui({addresses:It(Zt,"addresses","extendedAddress",!0)}),di({addresses:It(Zt,"addresses","extendedAddress",!0)}),{element:"address",fields:{alternateLanguageDescriptions:Rt(null,"desc"),delivered:Qe("delivered"),description:Ge("desc"),jid:ai("jid"),node:Ge("node"),type:Ge("type"),uri:Ge("uri")},namespace:Zt,path:"extendedAddress"}],ga=[ci(Jt,"x",[{path:"iq.muc.form",selector:"configure"}]),{defaultType:"info",element:"x",fields:{password:pt(null,"password")},namespace:en,path:"presence.muc",type:"join",typeField:"type"},{aliases:[{path:"presence.muc.history",selector:"join"}],element:"history",fields:{maxCharacters:Je("maxchars"),maxStanzas:Je("maxstanzas"),seconds:Je("seconds"),since:Ye("since")},namespace:en},{aliases:["presence.muc","message.muc"],defaultType:"info",element:"x",fields:{action:Et(null,["invite","decline","destroy"]),actor:It(null,"item","mucactor"),affiliation:it(null,"item","affiliation"),jid:si(null,"item","jid"),nick:it(null,"item","nick"),password:pt(null,"password"),reason:wt([{namespace:null,element:"item"},{namespace:null,element:"reason"}]),role:it(null,"item","role"),statusCodes:jt(null,"status","code")},namespace:rn,type:"info",typeField:"type",typeOrder:1},{element:"actor",fields:{jid:ai("jid"),nick:Ge("nick")},namespace:rn,path:"mucactor"},{element:"destroy",fields:{jid:ai("jid"),password:pt(null,"password"),reason:pt(null,"reason")},namespace:rn,path:"presence.muc.destroy"},{aliases:[{path:"message.muc.invite",multiple:!0}],element:"invite",fields:{continue:yt(null,"continue"),from:ai("from"),reason:pt(null,"reason"),thread:it(null,"continue","thread"),to:ai("to")},namespace:rn},{element:"decline",fields:{from:ai("from"),reason:pt(null,"reason"),to:ai("to")},namespace:rn,path:"message.muc",type:"decline"},{element:"query",namespace:tn,path:"iq.muc",type:"user-list",typeField:"type"},{aliases:[{path:"iq.muc.users",multiple:!0,selector:"user-list"}],element:"item",fields:{affiliation:Ge("affiliation"),jid:ai("jid"),nick:Ge("nick"),reason:pt(null,"reason"),role:Ge("role")},namespace:tn},{aliases:["iq.muc.users.actor"],element:"actor",fields:{jid:ai("jid"),nick:Ge("nick")},namespace:tn},{element:"query",namespace:nn,path:"iq.muc",type:"configure",typeField:"type"},{aliases:[{path:"iq.muc.destroy",selector:"configure"}],element:"destroy",fields:{jid:ai("jid"),password:pt(null,"password"),reason:pt(null,"reason")},namespace:nn},{element:"x",fields:{action:At("invite"),continue:Qe("continue"),jid:ai("jid"),legacyReason:lt(),password:Ge("password"),reason:Ge("reason"),thread:Ge("thread")},namespace:"jabber:x:conference",path:"message.muc",type:"direct-invite",typeOrder:2},{element:"unique",fields:{name:lt()},namespace:"http://jabber.org/protocol/muc#unique",path:"iq.muc",type:"unique"},ui({legacyMUC:{exporter(e,t,n){const i=n.registry?n.registry.export("message.muc",Object.assign(Object.assign({},t),{type:"direct-invite"})):void 0;i&&e.appendChild(i)},exportOrder:100001,importer(e,t){if(!Re(e,rn,"x")[0])return;const n=Re(e,"jabber:x:conference","x")[0];return n&&t.registry?t.registry.import(n,Object.assign(Object.assign({},t),{path:"message"})):void 0},importOrder:-1}})],va=[{aliases:["iq.ibb","message.ibb"],element:"open",fields:{ack:{importer:(e,t)=>"message"!==Ge("stanza","iq").importer(e,t),exporter(e,t,n){Ge("stanza").exporter(e,t?"iq":"message",n)}},blockSize:Je("block-size"),sid:Ge("sid")},namespace:on,type:"open",typeField:"action"},{aliases:["iq.ibb","message.ibb"],element:"close",fields:{sid:Ge("sid")},namespace:on,type:"close",typeField:"action"},{aliases:["iq.ibb","message.ibb"],element:"data",fields:{data:ut("base64"),seq:Je("seq"),sid:Ge("sid")},namespace:on,type:"data",typeField:"action"}],ba=[{aliases:[{path:"bookmarkStorage",impliedType:!0},{path:"iq.privateStorage.bookmarks",impliedType:!0},{path:"pubsubcontent",contextField:"itemType"},{path:"pubsubitem.content",contextField:"itemType"},{path:"pubsubeventitem.content",contextField:"itemType"},{path:"iq.pubsub.publish.items",contextField:"itemType"}],element:"storage",namespace:"storage:bookmarks",type:"storage:bookmarks",typeField:"itemType"},{aliases:[{path:"bookmarkStorage.rooms",multiple:!0}],element:"conference",fields:{autoJoin:Qe("autojoin"),jid:ai("jid"),name:Ge("name"),nick:pt(null,"nick"),password:pt(null,"password")},namespace:"storage:bookmarks"}],ya={element:"query",namespace:"jabber:iq:private",path:"iq.privateStorage"},ka=[ci(Jt,"x",["iq.command.form"]),hi({commandError:Et(an,["bad-action","bad-locale","bad-payload","bad-sessionid","malformed-action","session-expired"])}),{element:"command",fields:{action:Ge("action"),node:Ge("node"),sid:Ge("sessionid"),status:Ge("status")},namespace:an,path:"iq.command"},{element:"actions",fields:{complete:yt(null,"complete"),execute:Ge("execute"),next:yt(null,"next"),prev:yt(null,"prev")},namespace:an,path:"iq.command.availableActions"},{aliases:[{path:"iq.command.notes",multiple:!0}],element:"note",fields:{type:Ge("type"),value:lt()},namespace:an}],wa="vcardTemp.records";function Sa(e,t){return{aliases:[{multiple:!0,path:wa}],element:e,fields:{value:lt()},namespace:"vcard-temp",type:t,typeField:"type"}}const Ca=[{aliases:[{path:"iq.vcard"}],defaultType:"vcard-temp",element:"vCard",fields:{fullName:pt(null,"FN")},namespace:"vcard-temp",path:"vcardTemp",type:"vcard-temp",typeField:"format"},{element:"N",fields:{additional:Object.assign(Object.assign({},pt(null,"MIDDLE")),{order:3}),family:Object.assign(Object.assign({},pt(null,"FAMILY")),{order:1}),given:Object.assign(Object.assign({},pt(null,"GIVEN")),{order:2}),prefix:Object.assign(Object.assign({},pt(null,"PREFIX")),{order:4}),suffix:Object.assign(Object.assign({},pt(null,"SUFFIX")),{order:5})},namespace:"vcard-temp",path:"vcardTemp.name"},Sa("NICKNAME","nickname"),Sa("BDAY","birthday"),Sa("JABBERID","jid"),Sa("TZ","timezone"),Sa("TITLE","title"),Sa("ROLE","role"),Sa("URL","url"),Sa("NOTE","note"),Sa("SORT-STRING","sort"),Sa("UID","uid"),Sa("REV","revision"),Sa("PRODID","productId"),Sa("DESC","description"),{aliases:[{multiple:!0,path:wa}],element:"EMAIL",fields:{preferred:yt(null,"PREF"),types:Pt(null,[["home","HOME"],["work","WORK"],["internet","INTERNET"]]),value:pt(null,"USERID")},namespace:"vcard-temp",type:"email"},{aliases:[{path:wa,multiple:!0}],element:"ORG",fields:{units:Object.assign(Object.assign({},_t(null,"ORGUNIT")),{order:2}),value:Object.assign(Object.assign({},pt(null,"ORGNAME")),{order:1})},namespace:"vcard-temp",type:"organization",typeField:"type"},{aliases:[{multiple:!0,path:wa}],element:"ADR",fields:{city:pt(null,"LOCALITY"),code:pt(null,"PCODE"),country:pt(null,"CTRY"),pobox:pt(null,"POBOX"),preferred:yt(null,"PREF"),region:pt(null,"REGION"),street:pt(null,"STREET"),street2:pt(null,"EXTADD"),types:Pt(null,[["home","HOME"],["work","WORK"],["domestic","DOM"],["international","INTL"],["postal","POSTAL"],["parcel","PARCEL"]])},namespace:"vcard-temp",type:"address",typeField:"type"},{aliases:[{multiple:!0,path:wa}],element:"LABEL",fields:{lines:_t(null,"LINE"),preferred:yt(null,"PREF"),types:Pt(null,[["home","HOME"],["work","WORK"]])},namespace:"vcard-temp",type:"addressLabel",typeField:"type"},{aliases:[{multiple:!0,path:wa}],element:"TEL",fields:{preferred:yt(null,"PREF"),types:Pt(null,[["home","HOME"],["work","WORK"],["cell","CELL"],["fax","FAX"],["voice","VOICE"],["msg","MSG"]]),value:pt(null,"NUMBER","",!0)},namespace:"vcard-temp",type:"tel",typeField:"type"},{aliases:[{multiple:!0,path:wa}],element:"PHOTO",fields:{data:pt(null,"BINVAL"),mediaType:pt(null,"TYPE"),url:pt(null,"EXTVAL")},namespace:"vcard-temp",type:"photo",typeField:"type"},{aliases:[{multiple:!0,path:wa}],element:"LOGO",fields:{data:pt(null,"BINVAL"),mediaType:pt(null,"TYPE"),url:pt(null,"EXTVAL")},namespace:"vcard-temp",type:"logo",typeField:"type"},{aliases:[{multiple:!0,path:wa}],element:"CATEGORIES",fields:{value:_t(null,"KEYWORD")},namespace:"vcard-temp",type:"categories",typeField:"type"}],xa=[ci(Jt,"x",["iq.search.form"]),ci(sn,"set",["iq.search.paging"]),{element:"query",fields:{email:pt(null,"email"),familyName:pt(null,"last"),givenName:pt(null,"first"),instructions:pt(null,"instructions"),nick:pt(null,"nick")},namespace:"jabber:iq:search",path:"iq.search"},{aliases:[{path:"iq.search.items",multiple:!0}],element:"item",fields:{email:pt(null,"email"),familyName:pt(null,"last"),givenName:pt(null,"first"),jid:ai("jid"),nick:pt(null,"nick")},namespace:"jabber:iq:search"}],Ea={aliases:["iq.pubsub.paging"],element:"set",fields:{after:pt(null,"after"),before:pt(null,"before"),count:ft(null,"count"),first:pt(null,"first"),firstIndex:ot(null,"first","index"),index:ft(null,"index"),last:pt(null,"last"),max:ft(null,"max")},namespace:sn,path:"paging"},Ta={configurable:yt(null,"subscribe-options"),configurationRequired:Ct([{namespace:null,element:"subscribe-options"},{namespace:null,element:"required"}]),jid:ai("jid"),node:Ge("node"),state:Ge("subscription"),subid:Ge("subid")},_a={node:Ge("node")},ja=[{aliases:["pubsub","iq.pubsub","message.pubsub"],childrenExportOrder:{configure:0,create:100,publish:100,subscribe:100,subscriptionOptions:0},defaultType:"user",element:"pubsub",fields:{publishOptions:It(null,"publish-options","dataform")},namespace:ln,type:"user",typeField:"context"},{aliases:["pubsub","iq.pubsub","message.pubsub"],defaultType:"user",element:"pubsub",fields:{purge:it(null,"purge","node")},namespace:dn,type:"owner",typeField:"context"},ci(Jt,"x",["iq.pubsub.configure.form","iq.pubsub.defaultConfiguration.form","iq.pubsub.defaultSubscriptionOptions.form","iq.pubsub.subscriptionOptions.form","message.pubsub.configuration.form"]),ci(sn,"set",["iq.pubsub.fetch.paging"]),hi({pubsubError:Et(cn,Object.values(Vr)),pubsubUnsupportedFeature:it(cn,"unsupported","feature")}),{element:"subscribe",fields:{jid:ai("jid"),node:Ge("node")},namespace:ln,path:"iq.pubsub.subscribe"},{element:"unsubscribe",fields:{jid:ai("jid"),node:Ge("node"),subid:Ge("subid")},namespace:ln,path:"iq.pubsub.unsubscribe"},{element:"options",fields:{jid:ai("jid"),node:Ge("node"),subid:Ge("subid")},namespace:ln,path:"iq.pubsub.subscriptionOptions"},{aliases:[{path:"iq.pubsub.subscriptions",selector:"user",impliedType:!0}],element:"subscriptions",fields:{jid:ai("jid"),node:Ge("node")},namespace:ln,type:"user"},{aliases:[{path:"iq.pubsub.subscriptions",selector:"owner",impliedType:!0}],element:"subscriptions",fields:{jid:ai("jid"),node:Ge("node")},namespace:dn,type:"owner"},{aliases:[{path:"iq.pubsub.subscription",selector:"owner"},{impliedType:!0,multiple:!0,path:"iq.pubsub.subscriptions.items",selector:"owner"}],element:"subscription",fields:Ta,namespace:ln},{aliases:[{path:"iq.pubsub.subscription",selector:"user"},{impliedType:!0,multiple:!0,path:"iq.pubsub.subscriptions.items",selector:"user"}],element:"subscription",fields:Ta,namespace:ln,type:"user"},{aliases:[{impliedType:!0,multiple:!0,path:"iq.pubsub.subscriptions.items",selector:"owner"}],element:"subscription",fields:Ta,namespace:dn,type:"owner"},{aliases:[{path:"iq.pubsub.affiliations",selector:"user",impliedType:!0},{path:"message.pubsub.affiliations",selector:"user",impliedType:!0}],element:"affiliations",fields:_a,namespace:ln,type:"user"},{aliases:[{path:"iq.pubsub.affiliations",selector:"owner",impliedType:!0}],element:"affiliations",fields:_a,namespace:dn,type:"owner"},{aliases:[{impliedType:!0,multiple:!0,path:"iq.pubsub.affiliations.items",selector:"user"},{impliedType:!0,multiple:!0,path:"message.pubsub.affiliations.items",selector:"user"}],element:"affiliation",fields:{affiliation:Ge("affiliation"),jid:ai("jid"),node:Ge("node")},namespace:ln,type:"user"},{aliases:[{impliedType:!0,multiple:!0,path:"iq.pubsub.affiliations.items",selector:"owner"}],element:"affiliation",fields:{affiliation:Ge("affiliation"),jid:ai("jid"),node:Ge("node")},namespace:dn,type:"owner"},{element:"create",fields:_a,namespace:ln,path:"iq.pubsub.create"},{aliases:[{path:"iq.pubsub.destroy",selector:"owner"}],element:"delete",fields:{node:Ge("node"),redirect:it(null,"redirect","uri")},namespace:dn},{aliases:[{path:"iq.pubsub.configure",selector:"owner",impliedType:!0}],element:"configure",fields:_a,namespace:dn,type:"owner"},{aliases:[{path:"iq.pubsub.configure",selector:"user",impliedType:!0}],element:"configure",fields:_a,namespace:ln,type:"user"},{element:"default",fields:{node:Ge("node")},namespace:ln,path:"iq.pubsub.defaultSubscriptionOptions"},{element:"default",fields:{},namespace:dn,path:"iq.pubsub.defaultConfiguration"},{element:"publish",fields:_a,namespace:ln,path:"iq.pubsub.publish"},{element:"retract",fields:{id:it(null,"item","id"),node:Ge("node"),notify:Qe("notify")},namespace:ln,path:"iq.pubsub.retract"},{element:"items",fields:{max:Je("max_items"),node:Ge("node")},namespace:ln,path:"iq.pubsub.fetch"},{aliases:["pubsubitem","iq.pubsub.publish.item",{multiple:!0,path:"iq.pubsub.fetch.items"}],element:"item",fields:{id:Ge("id"),publisher:ai("publisher")},namespace:ln},{element:"event",fields:{eventType:Et(null,["purge","delete","subscription","configuration","items"])},namespace:un,path:"message.pubsub",type:"event",typeField:"context"},{aliases:[{path:"message.pubsub.items.published",multiple:!0}],element:"item",fields:{id:Ge("id"),publisher:ai("publisher")},namespace:un,path:"pubsubeventitem"},{element:"purge",fields:_a,namespace:un,path:"message.pubsub.purge"},{element:"delete",fields:{node:Ge("node"),redirect:it(null,"redirect","uri")},namespace:un,path:"message.pubsub.delete"},{aliases:[{path:"message.pubsub.subscription",selector:"event",impliedType:!0}],element:"subscription",fields:{expires:(Oa="expiry",{importer(e){const t=e.getAttribute(Oa);return"presence"===t?t:t?new Date(t):void 0},exporter(e,t){let n;n="string"==typeof t?t:t.toISOString(),e.setAttribute(Oa,n)}}),jid:ai("jid"),node:Ge("node"),subid:Ge("subid"),type:Ge("subscription")},namespace:un,type:"event"},{element:"configuration",fields:_a,namespace:un,path:"message.pubsub.configuration"},{element:"items",fields:{node:Ge("node"),retracted:jt(null,"retract","id")},namespace:un,path:"message.pubsub.items"}];var Oa;const Ra=[{element:"query",fields:{activate:pt(null,"activate"),address:Ge("dstaddr"),candidateUsed:si(null,"streamhost-used","jid"),mode:Ge("mode","tcp"),sid:Ge("sid"),udpSuccess:it(null,"udpsuccess","dstaddr")},namespace:pn,path:"iq.socks5"},{aliases:[{multiple:!0,path:"iq.socks5.candidates"}],element:"streamhost",fields:{host:Ge("host"),jid:ai("jid"),port:Je("port"),uri:Ge("uri")},namespace:pn}],Pa=[{aliases:[{multiple:!0,path:"message.links"}],element:"x",fields:{description:pt(null,"desc"),url:pt(null,"url")},namespace:mn},{element:"query",fields:{description:pt(null,"desc"),url:pt(null,"url")},namespace:"jabber:iq:oob",path:"iq.transferLink"}],Ia={element:"html",fields:{alternateLanguageBodies:Nt(hn,"body","xhtmlim"),body:Mt(hn,"body","xhtmlim")},namespace:fn,path:"message.html"},Aa=[mi({inbandRegistration:yt("http://jabber.org/features/iq-register","register")}),ci(Jt,"x",["iq.account.form"]),ci(mn,"x",["iq.account.registrationLink"]),{element:"query",fields:{address:pt(null,"address"),date:ht(null,"date"),email:pt(null,"email"),familyName:pt(null,"last"),fullName:pt(null,"name"),givenName:pt(null,"first"),instructions:pt(null,"instructions"),key:pt(null,"key"),locality:pt(null,"city"),misc:pt(null,"misc"),nick:pt(null,"nick"),password:pt(null,"password"),phone:pt(null,"phone"),postalCode:pt(null,"zip"),region:pt(null,"state"),registered:yt(null,"registered"),remove:yt(null,"remove"),text:pt(null,"text"),uri:pt(null,"uri"),username:pt(null,"username")},namespace:"jabber:iq:register",path:"iq.account"}],Ma={aliases:[{path:"message.geoloc",impliedType:!0},{path:"dataform.fields.geoloc",impliedType:!0},{path:"pubsubcontent",contextField:"itemType"},{path:"pubsubitem.content",contextField:"itemType"},{path:"pubsubeventitem.content",contextField:"itemType"},{path:"iq.pubsub.publish.items",contextField:"itemType"}],element:"geoloc",fields:{accuracy:gt(null,"accuracy"),altitude:gt(null,"alt"),altitudeAccuracy:gt(null,"altaccuracy"),area:pt(null,"area"),building:pt(null,"building"),country:pt(null,"country"),countryCode:pt(null,"countrycode"),datum:pt(null,"datum"),description:pt(null,"description"),error:gt(null,"error"),floor:pt(null,"floor"),heading:gt(null,"bearing"),lang:dt(),latitude:gt(null,"lat"),locality:pt(null,"locality"),longitude:gt(null,"lon"),postalCode:pt(null,"postalcode"),region:pt(null,"region"),room:pt(null,"room"),speed:gt(null,"speed"),street:pt(null,"street"),text:pt(null,"text"),timestamp:ht(null,"timestamp"),tzo:bt(null,"tzo"),uri:pt(null,"uri")},namespace:gn,type:gn},Na=[{aliases:[{path:"pubsubcontent",contextField:"itemType"},{path:"pubsubitem.content",contextField:"itemType"},{path:"pubsubeventitem.content",contextField:"itemType"},{path:"iq.pubsub.publish.items",contextField:"itemType"}],element:"data",fields:{data:ut("base64")},namespace:vn,path:"avatar",type:vn,typeField:"itemType"},{aliases:[{path:"pubsubcontent",contextField:"itemType"},{path:"pubsubitem.content",contextField:"itemType"},{path:"pubsubeventitem.content",contextField:"itemType"},{path:"iq.pubsub.publish.items",contextField:"itemType"}],element:"metadata",namespace:bn,path:"avatar",type:bn,typeField:"itemType"},{aliases:[{multiple:!0,path:"avatar.versions",selector:bn}],element:"info",fields:{bytes:Je("bytes"),height:Je("height"),id:Ge("id"),mediaType:Ge("type"),uri:Ge("url"),width:Je("width")},namespace:bn},{aliases:[{multiple:!0,path:"avatar.pointers",selector:bn}],element:"pointer",fields:{bytes:Je("bytes"),height:Je("height"),id:Ge("id"),mediaType:Ge("type"),uri:Ge("url"),width:Je("width")},namespace:bn}];var Da=ui({chatState:Et(yn,Object.values($r))});const La={element:"query",fields:{name:pt(null,"name"),os:pt(null,"os"),version:pt(null,"version")},namespace:"jabber:iq:version",path:"iq.softwareVersion"},qa={aliases:[{path:"message.mood",impliedType:!0},{path:"pubsubcontent",contextField:"itemType"},{path:"pubsubitem.content",contextField:"itemType"},{path:"pubsubeventitem.content",contextField:"itemType"},{path:"iq.pubsub.publish.items",contextField:"itemType"}],element:"mood",fields:{alternateLanguageText:Rt(null,"text"),text:pt(null,"text"),value:Et(null,Yr)},namespace:kn,type:kn},Fa={aliases:[{path:"activity",impliedType:!0},{path:"pubsubcontent",contextField:"itemType"},{path:"pubsubitem.content",contextField:"itemType"},{path:"pubsubeventitem.content",contextField:"itemType"},{path:"iq.pubsub.publish.items",contextField:"itemType"}],element:"activity",fields:{activity:Tt(null,Xr,Zr),alternateLanguageText:Rt(null,"text"),text:pt(null,"text")},namespace:wn,type:wn},za={element:"handshake",fields:{value:ut("hex")},namespace:"jabber:component:accept",path:"handshake"},Ua={aliases:[{path:"presence.legacyCapabilities",multiple:!0},{path:"features.legacyCapabilities",multiple:!0}],element:"c",fields:{algorithm:Ge("hash"),legacy:At(!0),node:Ge("node"),value:Ge("ver")},namespace:"http://jabber.org/protocol/caps"},Ba={aliases:[{impliedType:!0,path:"tune"},{path:"pubsubcontent",contextField:"itemType"},{path:"pubsubitem.content",contextField:"itemType"},{path:"pubsubeventitem.content",contextField:"itemType"},{path:"iq.pubsub.publish.items",contextField:"itemType"}],element:"tune",fields:{artist:pt(null,"artist"),length:ft(null,"length"),rating:ft(null,"rating"),source:pt(null,"source"),title:pt(null,"title"),track:pt(null,"track"),uri:pt(null,"uri")},namespace:Sn,type:Sn},Va=["dataformLayout",{multiple:!0,path:"dataformLayout.contents"},{multiple:!0,path:"dataform.layout.contents"}],$a=[{aliases:[{multiple:!0,path:"dataform.layout"}],element:"page",fields:{label:Ge("label")},namespace:_n},{aliases:Va,element:"section",fields:{label:Ge("label")},namespace:_n,type:"section",typeField:"type"},{aliases:Va,element:"text",fields:{value:lt()},namespace:_n,type:"text",typeField:"type"},{aliases:Va,element:"fieldref",fields:{field:Ge("var")},namespace:_n,type:"fieldref",typeField:"type"},{aliases:Va,element:"reportedref",namespace:_n,type:"reportedref",typeField:"type"}],Ha={element:"body",fields:{acceptMediaTypes:Ge("accept"),ack:Je("ack"),authId:Ge("authid"),characterSets:Ge("charsets"),condition:Ge("condition"),from:ai("from"),key:Ge("key"),lang:dt(),maxClientRequests:Je("requests"),maxHoldOpen:Je("hold"),maxInactivityTime:Je("inactivity"),maxSessionPause:Je("maxpause"),maxWaitTime:Je("wait"),mediaType:Ge("content"),minPollingInterval:Je("polling"),newKey:Ge("newkey"),pauseSession:Je("pause"),report:Je("report"),rid:Je("rid"),route:Ge("string"),seeOtherURI:pt(null,"uri"),sid:Ge("sid"),stream:Ge("stream"),time:Je("time"),to:ai("to"),type:Ge("type"),version:Ge("ver"),xmppRestart:Ze("xmpp","urn:xmpp:xbosh","restart",void 0,{writeValue:e=>e?"true":"false"}),xmppRestartLogic:Ze("xmpp","urn:xmpp:xbosh","restartlogic",void 0,{writeValue:e=>e?"true":"false"}),xmppVersion:Xe("xmpp","urn:xmpp:xbosh","version")},namespace:xn,path:"bosh"},Wa=[ui({headers:It(En,"headers","header",!0)}),di({headers:It(En,"headers","header",!0)}),{element:"header",fields:{name:Ge("name"),value:lt()},namespace:En,path:"header"}],Ga=[{element:"compression",fields:{methods:_t(null,"method")},namespace:"http://jabber.org/features/compress",path:"features.compression"},{element:"compress",fields:{method:pt(null,"method")},namespace:Tn,path:"compression",type:"start",typeField:"type"},{aliases:["error.compressionError"],element:"failure",fields:{condition:Et(null,["unsupported-method","setup-failed","processing-failed"])},namespace:Tn,path:"compression",type:"failure",typeField:"type"},{element:"compressed",namespace:Tn,path:"compression",type:"success",typeField:"type"}],Qa=[ui({rosterExchange:It(jn,"x","rosterExchange",!0)}),pi({rosterExchange:It(jn,"x","rosterExchange",!0)}),{element:"item",fields:{action:Ge("action"),groups:_t(null,"group"),jid:ai("jid"),name:Ge("name")},namespace:jn,path:"rosterExchange"}];var Ja=di({vcardAvatar:{importer(e){const t=Re(e,"vcard-temp:x:update","x");if(!t.length)return;const n=Re(t[0],"vcard-temp:x:update","photo");return!n.length||n[0].getText()},exporter(e,t){const n=Pe(e,"vcard-temp:x:update","x");if(""===t)Pe(n,"vcard-temp:x:update","photo");else{if(!0===t)return;if(t){Pe(n,"vcard-temp:x:update","photo").children.push(t)}}}}});const Ka=[ui({captcha:It("urn:xmpp:captcha","captcha","dataform")}),pi({captcha:It("urn:xmpp:captcha","captcha","dataform")})],Ya=[hi({jingleError:Et("urn:xmpp:jingle:errors:1",Object.values(Jr))}),{element:"jingle",fields:{action:Ge("action"),initiator:ai("initiator"),responder:ai("responder"),sid:Ge("sid")},namespace:Rn,path:"iq.jingle"},{aliases:[{multiple:!0,path:"iq.jingle.contents"}],element:"content",fields:{creator:Ge("creator"),disposition:Ge("disposition","session"),name:Ge("name"),senders:Ge("senders","both")},namespace:Rn},{element:"reason",fields:{alternativeSession:pt(null,"alternative-session"),condition:Et(null,Object.values(Kr)),text:pt(null,"text")},namespace:Rn,path:"iq.jingle.reason"}];function Xa(){return{importer(e,t){let n=Re(e,$n,"rtcp-fb");const i=Ge("type").importer,r=Ge("subtype").importer,o=Ge("value").importer,a=[];for(const e of n){const n=i(e,t),o=r(e,t);a.push(o?{type:n,parameter:o}:{type:n})}n=Re(e,$n,"rtcp-fb-trr-int");for(const e of n){const n=o(e,t);a.push(n?{type:"trr-int",parameter:n}:{type:"trr-int"})}return a},exporter(e,t,n){const i=Ge("type").exporter,r=Ge("subtype").exporter,o=Ge("value").exporter;for(const a of t){let t;"trr-int"===a.type?(t=_e($n,"rtcp-fb-trr-int",n.namespace,e),a.parameter&&o(t,a.parameter,n)):(t=_e($n,"rtcp-fb",n.namespace,e),i(t,a.type,n),a.parameter&&r(t,a.parameter,n)),e.appendChild(t)}}}}const Za="iq.jingle.info",es=[{aliases:["iq.jingle.contents.application"],childrenExportOrder:{codecs:4,encryption:5,headerExtensions:6,sourceGroups:8,sources:7,streams:9},element:"description",fields:{media:Ge("media"),rtcpFeedback:Object.assign(Object.assign({},Xa()),{exportOrder:3}),rtcpMux:Object.assign(Object.assign({},yt(null,"rtcp-mux")),{exportOrder:1}),rtcpReducedSize:Object.assign(Object.assign({},yt(null,"rtcp-reduced-size")),{exportOrder:2}),ssrc:Ge("ssrc")},namespace:Pn,optionalNamespaces:{rtcpf:$n,rtph:Hn},type:Pn},{aliases:[{multiple:!0,path:"iq.jingle.contents.application.headerExtensions",selector:Pn}],element:"rtp-hdrext",fields:{id:Je("id"),senders:Ge("senders"),uri:Ge("uri")},namespace:Hn},{aliases:[{multiple:!0,path:"iq.jingle.contents.application.codecs",selector:Pn},"rtpcodec"],element:"payload-type",fields:{channels:Je("channels"),clockRate:Je("clockrate"),id:Ge("id"),maxptime:Je("maxptime"),name:Ge("name"),parameters:Dt(Pn,"parameter","name","value"),ptime:Je("ptime"),rtcpFeedback:Xa()},namespace:Pn},{aliases:[{multiple:!0,path:"iq.jingle.contents.application.sources",selector:Pn}],element:"source",fields:{parameters:Dt("urn:xmpp:jingle:apps:rtp:ssma:0","parameter","name","value"),ssrc:Ge("ssrc")},namespace:"urn:xmpp:jingle:apps:rtp:ssma:0"},{aliases:[{multiple:!0,path:"iq.jingle.contents.application.sourceGroups",selector:Pn}],element:"ssrc-group",fields:{semantics:Ge("semantics"),sources:jt(null,"source","ssrc")},namespace:"urn:xmpp:jingle:apps:rtp:ssma:0"},{aliases:[{multiple:!0,path:"iq.jingle.contents.application.streams",selector:Pn}],element:"stream",fields:{id:Ge("id"),track:Ge("track")},namespace:"urn:xmpp:jingle:apps:rtp:msid:0"},{aliases:[{path:"iq.jingle.contents.application.encryption",selector:Pn}],element:"encryption",fields:{required:Qe("required")},namespace:Pn},{aliases:[{multiple:!0,path:"iq.jingle.contents.application.encryption.sdes",selector:Pn}],element:"crypto",fields:{cryptoSuite:Ge("crypto-suite"),keyParameters:Ge("key-params"),sessionParameters:Ge("session-params"),tag:Je("tag")},namespace:Pn},{aliases:[{path:"iq.jingle.contents.application.encryption.zrtp",selector:Pn}],element:"zrtp-hash",fields:{value:ut("hex"),version:Ge("version")},namespace:Pn},{element:"mute",fields:{creator:Ge("creator"),name:Ge("name")},namespace:In,path:Za,type:to},{element:"unmute",fields:{creator:Ge("creator"),name:Ge("name")},namespace:In,path:Za,type:no},{element:"hold",namespace:In,path:Za,type:io},{element:"unhold",namespace:In,path:Za,type:ro},{element:"active",namespace:In,path:Za,type:oo},{element:"ringing",namespace:In,path:Za,type:ao}],ts=[ui({nick:pt(An,"nick")}),di({nick:pt(An,"nick")}),{aliases:[{path:"pubsubcontent",contextField:"itemType"},{path:"pubsubitem.content",contextField:"itemType"},{path:"pubsubeventitem.content",contextField:"itemType"},{path:"iq.pubsub.publish.items",contextField:"itemType"}],element:"nick",fields:{nick:lt()},namespace:An,type:An}],ns=e=>[{element:"transport",fields:{gatheringComplete:yt(null,"gathering-complete"),password:Ge("pwd"),usernameFragment:Ge("ufrag")},namespace:e,path:"iq.jingle.contents.transport",type:e,typeField:"transportType"},{aliases:[{impliedType:!0,path:"iq.jingle.contents.transport.remoteCandidate",selector:e}],element:"remote-candidate",fields:{component:Je("component"),ip:Ge("ip"),port:Je("port")},namespace:e,type:e,typeField:"transportType"},{aliases:[{impliedType:!0,multiple:!0,path:"iq.jingle.contents.transport.candidates",selector:e}],element:"candidate",fields:{component:Je("component"),foundation:Ge("foundation"),generation:Je("generation"),id:Ge("id"),ip:Ge("ip"),network:Je("network"),port:Je("port"),priority:Je("priority"),protocol:Ge("protocol"),relatedAddress:Ge("rel-addr"),relatedPort:Ge("rel-port"),tcpType:Ge("tcptype"),type:Ge("type")},namespace:e,type:e,typeField:"transportType"}],is=[...ns(ni),...ns(Mn)],rs=[{element:"transport",fields:{gatheringComplete:yt(null,"gathering-complete"),password:Ge("pwd"),usernameFragment:Ge("ufrag")},namespace:Nn,path:"iq.jingle.contents.transport",type:Nn,typeField:"transportType"},{aliases:[{impliedType:!0,multiple:!0,path:"iq.jingle.contents.transport.candidates",selector:Nn}],element:"candidate",fields:{component:Je("component"),foundation:Ge("foundation"),generation:Je("generation"),id:Ge("id"),ip:Ge("ip"),port:Je("port"),type:Ge("type")},namespace:Nn,type:Nn,typeField:"transportType"}],os=[{element:"request",namespace:"urn:xmpp:receipts",path:"message.receipt",type:"request",typeField:"type"},{element:"received",fields:{id:Ge("id")},namespace:"urn:xmpp:receipts",path:"message.receipt",type:"received",typeField:"type"}],as=[{element:"invisible",fields:{probe:Qe("probe")},namespace:"urn:xmpp:invisible:0",path:"iq.visibility",type:"invisible",typeField:"type"},{element:"visible",namespace:"urn:xmpp:invisible:0",path:"iq.visibility",type:"visible"}],ss=[hi({blocked:yt("urn:xmpp:blocking:errors","blocked")}),{element:"blocklist",fields:{jids:jt(null,"item","jid")},namespace:"urn:xmpp:blocking",path:"iq.blockList",type:"list",typeField:"action"},{element:"block",fields:{jids:jt(null,"item","jid")},namespace:"urn:xmpp:blocking",path:"iq.blockList",type:"block",typeField:"action"},{element:"unblock",fields:{jids:jt(null,"item","jid")},namespace:"urn:xmpp:blocking",path:"iq.blockList",type:"unblock",typeField:"action"}],ls=[mi({streamManagement:yt(Dn,"sm")}),{element:"a",fields:{handled:Je("h")},namespace:Dn,path:"sm",type:"ack",typeField:"type"},{element:"r",namespace:Dn,path:"sm",type:"request",typeField:"type"},{element:"enable",fields:{allowResumption:Qe("resume")},namespace:Dn,path:"sm",type:"enable",typeField:"type"},{element:"enabled",fields:{id:Ge("id"),resume:Qe("resume")},namespace:Dn,path:"sm",type:"enabled",typeField:"type"},{element:"resume",fields:{handled:Je("h"),previousSession:Ge("previd")},namespace:Dn,path:"sm",type:"resume",typeField:"type"},{element:"resumed",fields:{handled:Je("h"),previousSession:Ge("previd")},namespace:Dn,path:"sm",type:"resumed",typeField:"type"},{element:"failed",fields:{handled:Je("h")},namespace:Dn,path:"sm",type:"failed",typeField:"type"}];var cs=pi({ping:yt("urn:xmpp:ping","ping")});const us={element:"time",fields:{tzo:bt(null,"tzo"),utc:ht(null,"utc")},namespace:"urn:xmpp:time",path:"iq.time"},ds={aliases:["message.delay","presence.delay"],element:"delay",fields:{from:ai("from"),reason:lt(),timestamp:Ye("stamp")},namespace:Ln},ps={2:"urn:xmpp:extdisco:2",1:"urn:xmpp:extdisco:1"},ms=[];for(const[e,t]of Object.entries(ps))ms.push({aliases:["iq.externalServiceCredentials"],defaultType:"2",element:"credentials",fields:{expires:st(null,"service","expires"),host:it(null,"service","host"),name:it(null,"service","name"),password:it(null,"service","password"),port:ot(null,"service","port"),restricted:rt(null,"service","restricted"),transport:it(null,"service","transport"),type:it(null,"service","type"),username:it(null,"service","username")},namespace:t,type:e,typeField:"version"},{aliases:["iq.externalServices"],defaultType:"2",element:"services",fields:{type:Ge("type")},namespace:t,type:e,typeField:"version"},{aliases:[{path:"iq.externalServices.services",multiple:!0}],defaultType:"2",element:"service",fields:{expires:Ye("expires"),host:Ge("host"),name:Ge("name"),password:Ge("password"),port:Je("port"),restricted:Qe("restricted"),transport:Ge("transport"),type:Ge("type"),username:Ge("username")},namespace:t,type:e,typeField:"version"});const hs=[{element:"media",fields:{height:Je("height"),width:Je("width")},namespace:"urn:xmpp:media-element",path:"dataform.fields.media"},{aliases:[{multiple:!0,path:"dataform.fields.media.sources"}],element:"uri",fields:{mediaType:Ge("type"),uri:lt()},namespace:"urn:xmpp:media-element"}];var fs=ui({requestingAttention:yt("urn:xmpp:attention:0","attention")});const gs={aliases:["iq.bits",{path:"message.bits",multiple:!0},{path:"presence.bits",multiple:!0},{path:"iq.jingle.bits",multiple:!0}],element:"data",fields:{cid:Ge("cid"),data:ut("base64"),maxAge:Je("max-age"),mediaType:Ge("type")},namespace:qn};let vs=[ci(Gn,"hash",[{path:"file.hashes",multiple:!0},{path:"file.range.hashes",multiple:!0}]),ci("urn:xmpp:hashes:1","hash",[{path:"file.hashes",multiple:!0},{path:"file.range.hashes",multiple:!0}]),ci(Gn,"hash-used",[{path:"file.hashesUsed",multiple:!0}]),ci("urn:xmpp:thumbs:1","thumbnail",[{path:"file.thumbnails",multiple:!0}])];for(const e of["urn:xmpp:jingle:apps:file-transfer:4",Fn])vs=vs.concat([{aliases:["file",{impliedType:!0,path:"iq.jingle.contents.application.file",selector:e},{impliedType:!0,path:"iq.jingle.info.file",selector:`{${e}}checksum`}],defaultType:Fn,element:"file",fields:{date:ht(null,"date"),description:pt(null,"desc"),mediaType:pt(null,"media-type"),name:pt(null,"name"),size:ft(null,"size")},namespace:e,type:e,typeField:"version"},{aliases:[{impliedType:!0,path:"file.range",selector:e}],defaultType:Fn,element:"range",fields:{length:Je("length"),offset:Je("offset",0)},namespace:e,type:e,typeField:"version"},{element:"description",namespace:e,path:"iq.jingle.contents.application",type:e,typeField:"applicationType"},{element:"received",fields:{creator:Ge("creator"),name:Ge("name")},namespace:e,path:"iq.jingle.info",type:`{${e}}received`,typeField:"infoType"},{element:"checksum",fields:{creator:Ge("creator"),name:Ge("name")},namespace:e,path:"iq.jingle.info",type:`{${e}}checksum`,typeField:"infoType"}]);var bs=vs;const ys={element:"description",namespace:zn,path:"iq.jingle.contents.application",type:zn,typeField:"applicationType"},ks=[{element:"transport",fields:{activated:it(null,"activated","cid"),address:Ge("dstaddr"),candidateError:yt(null,"candidate-error"),candidateUsed:it(null,"candidate-used","cid"),mode:Ge("mode","tcp"),proxyError:yt(null,"proxy-error"),sid:Ge("sid")},namespace:Un,path:"iq.jingle.contents.transport",type:Un,typeField:"transportType"},{aliases:[{multiple:!0,path:"iq.jingle.contents.transport.candidates",selector:Un}],element:"candidate",fields:{cid:Ge("cid"),host:Ge("host"),jid:ai("jid"),port:Je("port"),priority:Je("priority"),type:Ge("type"),uri:Ge("uri")},namespace:Un}],ws={element:"transport",fields:{ack:{importer:(e,t)=>"message"!==Ge("stanza","iq").importer(e,t),exporter(e,t,n){!1===t&&Ge("stanza").exporter(e,"message",n)}},blockSize:Je("block-size"),sid:Ge("sid")},namespace:Bn,path:"iq.jingle.contents.transport",type:Bn,typeField:"transportType"},Ss=[ci(qn,"data",[{path:"iq.jingle.bits",multiple:!0}]),{element:"thumbnail",fields:{height:Je("height"),mediaType:Ge("media-type"),uri:Ge("uri"),width:Je("width")},namespace:"urn:xmpp:thumbs:1",path:"thumbnail"}],Cs=[ci(Wn,"forwarded",["message.carbon.forward"]),{element:"enable",namespace:Vn,path:"iq.carbons",type:"enable",typeField:"action"},{element:"disable",namespace:Vn,path:"iq.carbons",type:"disable",typeField:"action"},{element:"sent",namespace:Vn,path:"message.carbon",type:"sent",typeField:"type"},{element:"received",namespace:Vn,path:"message.carbon",type:"received",typeField:"type"}],xs=[...Object.values(Dr).map(e=>ci(e,"message",["forward.message"])),...Object.values(Dr).map(e=>ci(e,"presence",["forward.presence"])),...Object.values(Dr).map(e=>ci(e,"iq",["forward.iq"])),ci(Ln,"delay",["forward.delay"]),{aliases:["message.forward"],element:"forwarded",namespace:Wn,path:"forward"}],Es=[{defaultType:"2",element:"hash",fields:{algorithm:Ge("algo"),value:ut("base64"),version:At("2")},namespace:Gn,path:"hash",type:"2",typeField:"version"},{element:"hash-used",fields:{algorithm:Ge("algo"),version:At("2")},namespace:Gn,path:"hashUsed"},{element:"hash",fields:{algorithm:Ge("algo"),value:ut("hex"),version:At("1")},namespace:"urn:xmpp:hashes:1",path:"hash",type:"1",typeField:"version"}],Ts=[{element:"rtt",fields:{event:Ge("event","edit"),id:Ge("id"),seq:Je("seq")},namespace:Jn,path:"message.rtt"},{aliases:[{path:"message.rtt.actions",multiple:!0}],element:"t",fields:{position:Je("p"),text:lt()},namespace:Jn,type:"insert",typeField:"type"},{aliases:[{path:"message.rtt.actions",multiple:!0}],element:"e",fields:{length:Je("n",1),position:Je("p")},namespace:Jn,type:"erase",typeField:"type"},{aliases:[{multiple:!0,path:"message.rtt.actions"}],element:"w",fields:{duration:Je("n",0)},namespace:Jn,type:"wait",typeField:"type"}];var _s=ui({replace:it("urn:xmpp:message-correct:0","replace","id")});const js={2:"urn:xmpp:mam:2",1:"urn:xmpp:mam:1"},Os=[ci(Jt,"x",["iq.archive.form"]),ci(Wn,"forwarded",["message.archive.item"]),ci(sn,"set",["iq.archive.paging"])];for(const[e,t]of Object.entries(js))Os.push({defaultType:"query",defaultVersion:"2",element:"query",fields:{queryId:Ge("queryid")},namespace:t,path:"iq.archive",type:"query",typeField:"type",version:e,versionField:"version"},{element:"fin",fields:{complete:Qe("complete"),stable:Qe("stable")},namespace:t,path:"iq.archive",type:"result",version:e},{element:"prefs",fields:{default:Ge("default"),always:xt([{namespace:null,element:"always"},{namespace:null,element:"jid"}]),never:xt([{namespace:null,element:"never"},{namespace:null,element:"jid"}])},namespace:t,path:"iq.archive",type:"preferences",version:e},{element:"result",defaultType:"2",fields:{id:Ge("id"),queryId:Ge("queryid")},namespace:t,path:"message.archive",type:e,typeField:"version"});const Rs="message.marker";const Ps=[Xo,Zo,la,ca,ua,da,pa,ma,ha,fa,ga,va,ba,ya,ka,Ca,xa,Ea,ja,Ra,Pa,Ia,Aa,Ma,Na,Da,La,qa,Fa,za,Ua,Ba,Ha,Wa,Ga,$a,Qa,Ja,Ka,Ya,es,ts,is,rs,os,as,ss,ls,cs,us,ds,ms,hs,fs,gs,bs,ys,ks,ws,Ss,Cs,xs,Es,Ts,_s,Os,[di({hats:It(Kn,"hats","hat",!0)}),{element:"hat",fields:{id:Ge("name"),name:Ge("displayName")},namespace:Kn,path:"hat"}],di({idleSince:ht("urn:xmpp:idle:1","since")}),{aliases:[{multiple:!0,path:"iq.jingle.contents.transport.fingerprints",selector:Mn},{multiple:!0,path:"iq.jingle.contents.transport.fingerprints",selector:ni},{multiple:!0,path:"iq.jingle.contents.application.encryption.dtls",selector:Pn}],element:"fingerprint",fields:{algorithm:Ge("hash"),setup:Ge("setup"),value:lt()},namespace:"urn:xmpp:jingle:apps:dtls:0"},[{element:"markable",namespace:Yn,path:Rs,type:"markable",typeField:"type"},{element:"received",fields:{id:Ge("id")},namespace:Yn,path:Rs,type:"received"},{element:"displayed",fields:{id:Ge("id")},namespace:Yn,path:Rs,type:"displayed"},{element:"acknowledged",fields:{id:Ge("id")},namespace:Yn,path:Rs,type:"acknowledged"}],ui({processingHints:{importer(e){const t={};let n=!1;for(const i of e.children)if("string"!=typeof i&&i.getNamespace()===Xn)switch(i.getName()){case"no-copy":t.noCopy=!0,n=!0;break;case"no-permanent-store":t.noPermanentStore=!0,n=!0;break;case"no-store":t.noStore=!0,n=!0;break;case"store":t.store=!0,n=!0}return n?t:void 0},exporter(e,t,n){t.noCopy&&e.appendChild(_e(Xn,"no-copy",n.namespace,e)),t.noPermanentStore&&e.appendChild(_e(Xn,"no-permanent-store",n.namespace,e)),t.noStore&&e.appendChild(_e(Xn,"no-store",n.namespace,e)),t.store&&e.appendChild(_e(Xn,"store",n.namespace,e))}}}),[ui({json:vt(Zn,"json")}),{aliases:[{path:"pubsubcontent",contextField:"itemType"},{path:"pubsubitem.content",contextField:"itemType"},{path:"pubsubeventitem.content",contextField:"itemType"},{path:"iq.pubsub.publish.items",contextField:"itemType"}],element:"json",fields:{json:ct()},namespace:Zn,type:Zn},{aliases:[{path:"message.jsonPayloads",multiple:!0}],element:"payload",fields:{type:Ge("datatype"),data:vt(Zn,"json")},namespace:"urn:xmpp:json-msg:0"}],[{aliases:[{path:"iq.jingle.groups",multiple:!0}],element:"group",fields:{contents:jt(null,"content","name"),semantics:Ge("semantics")},namespace:"urn:xmpp:jingle:apps:grouping:0"}],{aliases:[{path:"iq.jingle.contents.transport.sctp",selector:Mn},{path:"iq.jingle.contents.transport.sctp",selector:ni}],element:"sctpmap",fields:{port:Je("number"),protocol:Ge("protocol"),streams:Ge("streams")},namespace:"urn:xmpp:jingle:transports:dtls-sctp:1"},[{element:"active",namespace:"urn:xmpp:csi:0",path:"csi",type:"active",typeField:"state"},{element:"inactive",namespace:"urn:xmpp:csi:0",path:"csi",type:"inactive",typeField:"state"}],[ci(Jt,"x",["iq.push.form","pushNotification.form"]),{element:"enable",fields:{jid:ai("jid"),node:Ge("node")},namespace:ei,path:"iq.push",type:"enable",typeField:"action"},{element:"disable",fields:{jid:ai("jid"),node:Ge("node")},namespace:ei,path:"iq.push",type:"disable",typeField:"action"},{aliases:[{path:"pubsubcontent",contextField:"itemType"},{path:"pubsubitem.content",contextField:"itemType"},{path:"pubsubeventitem.content",contextField:"itemType"},{path:"iq.pubsub.publish.items",contextField:"itemType"}],element:"notification",namespace:ei,path:"pushNotification",type:ei,typeField:"itemType"}],[ui({originId:it("urn:xmpp:sid:0","origin-id","id")}),{aliases:[{path:"message.stanzaIds",multiple:!0}],element:"stanza-id",fields:{by:ai("by"),id:Ge("id")},namespace:"urn:xmpp:sid:0"}],[hi({httpUploadError:Et(ti,["file-too-large","retry"]),httpUploadMaxFileSize:St([{namespace:ti,element:"file-too-large"},{namespace:ti,element:"max-file-size"}]),httpUploadRetry:st(ti,"retry","stamp")}),{element:"request",fields:{mediaType:Ge("content-type"),name:Ge("filename"),size:Je("size")},namespace:ti,path:"iq.httpUpload",type:"request",typeField:"type"},{element:"slot",fields:{download:it(null,"get","url")},namespace:ti,path:"iq.httpUpload",type:"slot"},{aliases:[{path:"iq.httpUpload.upload",selector:"slot"}],element:"put",fields:{url:Ge("url")},namespace:ti},{aliases:[{path:"iq.httpUpload.upload.headers",multiple:!0}],element:"header",fields:{name:Ge("name"),value:lt()},namespace:ti}],{element:"encryption",fields:{id:Ge("namespace"),name:Ge("name")},namespace:"urn:xmpp:eme:0",path:"message.encryptionMethod"},[{aliases:["message.omemo"],element:"encrypted",fields:{payload:mt(null,"payload","base64")},namespace:ii,path:"omemo"},{element:"header",fields:{iv:mt(null,"iv","base64"),sid:Je("sid")},namespace:ii,path:"omemo.header"},{aliases:[{path:"omemo.header.keys",multiple:!0}],element:"key",fields:{preKey:Qe("prekey"),rid:Je("rid"),value:ut("base64")},namespace:ii},{aliases:[{path:"pubsubcontent",contextField:"itemType"},{path:"pubsubitem.content",contextField:"itemType"},{path:"pubsubeventitem.content",contextField:"itemType"},{path:"iq.pubsub.publish.items",contextField:"itemType"}],element:"list",fields:{devices:Ot(null,"device","id")},namespace:ii,type:"eu.siacs.conversations.axolotl.devicelist",typeField:"itemType"},{element:"preKeyPublic",fields:{id:Je("preKeyId"),value:ut("base64")},namespace:ii,path:"omemoPreKey"},{element:"signedPreKeyPublic",fields:{id:Je("signedPreKeyId"),value:ut("base64")},namespace:ii,path:"omemoDevice.signedPreKeyPublic"},{aliases:[{path:"pubsubcontent",contextField:"itemType"},{path:"pubsubitem.content",contextField:"itemType"},{path:"pubsubeventitem.content",contextField:"itemType"},{path:"iq.pubsub.publish.items",contextField:"itemType"}],element:"bundle",fields:{identityKey:mt(null,"identityKey","base64"),preKeys:It(null,"prekeys","omemoPreKey",!0),signedPreKeySignature:mt(null,"signedPreKeySignature","base64")},namespace:ii,path:"omemoDevice",type:"eu.siacs.conversations.axolotl.bundles",typeField:"itemType"}],[{element:"XRD",fields:{subject:pt(null,"Subject")},namespace:ri,path:"xrd"},{aliases:[{path:"xrd.links",multiple:!0}],element:"Link",fields:{href:Ge("href"),rel:Ge("rel"),type:Ge("type")},namespace:ri}]];class Is{constructor(e){this.active=!1,this.maxRetries=5,this.stream=e,this.maxTimeout=1100*this.stream.maxWaitTime}send(e,t){return Object(r.a)(this,void 0,void 0,(function*(){this.rid=e,this.active=!0;let n=0;for(;n<=this.maxRetries;){n+=1;try{const e=yield Sr(Zi(this.stream.url,{body:t,headers:{"Content-Type":this.stream.contentType},method:"POST"}),this.maxTimeout,()=>new Error("Request timed out"));if(!e.ok)throw new Error("HTTP Status Error: "+e.status);const n=yield e.text();return this.active=!1,n}catch(e){if(1===n)continue;if(n<this.maxRetries){const e=Math.min(this.maxTimeout,1e3*Math.pow(n,2));yield Cr(e+1e3*Math.random());continue}throw this.active=!1,e}}throw new Error("Request failed")}))}}class As extends c.Duplex{constructor(e,t,n){super({objectMode:!0}),this.rid=Math.floor(4294967295*Math.random()),this.sid="",this.maxHoldOpen=2,this.maxWaitTime=30,this.contentType="text/xml; charset=utf-8",this.channels=[new Is(this),new Is(this)],this.activeChannelID=0,this.queue=[],this.isEnded=!1,this.client=e,this.sm=t,this.stanzas=n,this.on("data",e=>{this.client.emit("stream:data",e.stanza,e.kind)}),this.on("end",()=>{this.isEnded=!0,clearTimeout(this.idleTimeout),this.client.emit("--transport-disconnected")})}_write(e,t,n){this.queue.push([e,n]),this.scheduleRequests()}_writev(e,t){this.queue.push([e.map(e=>e.chunk).join(""),t]),this.scheduleRequests()}_read(){}process(e){const t=new gi({acceptLanguages:this.config.acceptLanguages,allowComments:!1,lang:this.config.lang,registry:this.stanzas,rootKey:"bosh",wrappedStream:!0});t.on("error",e=>{const t={condition:qr.InvalidXML};return this.client.emit("stream:error",t,e),this.send("error",t),this.disconnect()}),t.on("data",e=>{if("stream-start"===e.event)return this.stream=e.stanza,void("terminate"===e.stanza.type?(this.hasStream=!1,this.rid=void 0,this.sid=void 0,this.isEnded||(this.isEnded=!0,this.client.emit("bosh:terminate",e.stanza),this.client.emit("stream:end"),this.push(null))):this.hasStream||(this.hasStream=!0,this.stream=e.stanza,this.sid=e.stanza.sid||this.sid,this.maxWaitTime=e.stanza.maxWaitTime||this.maxWaitTime,this.client.emit("stream:start",e.stanza)));e.event||this.push({kind:e.kind,stanza:e.stanza})}),this.client.emit("raw","incoming",e),t.write(e),this.scheduleRequests()}connect(e){if(this.config=e,this.url=e.url,e.rid&&(this.rid=e.rid),e.sid&&(this.sid=e.sid),e.wait&&(this.maxWaitTime=e.wait),this.sid)return this.hasStream=!0,this.stream={},this.client.emit("connected"),this.client.emit("session:prebind",this.config.jid),void this.client.emit("session:started");this._send({lang:e.lang,maxHoldOpen:this.maxHoldOpen,maxWaitTime:this.maxWaitTime,to:e.server,version:"1.6",xmppVersion:"1.0"})}restart(){this.hasStream=!1,this._send({to:this.config.server,xmppRestart:!0})}disconnect(){this.hasStream?this._send({type:"terminate"}):(this.stream=void 0,this.sid=void 0,this.rid=void 0,this.client.emit("--transport-disconnected"))}send(e,t){var n;return Object(r.a)(this,void 0,void 0,(function*(){let i;if(t&&(i=null===(n=this.stanzas.export(e,t))||void 0===n?void 0:n.toString()),i)return new Promise((e,t)=>{this.write(i,"utf8",n=>n?t(n):e())})}))}get sendingChannel(){return this.channels[this.activeChannelID]}get pollingChannel(){return this.channels[0===this.activeChannelID?1:0]}toggleChannel(){this.activeChannelID=0===this.activeChannelID?1:0}_send(e,t=""){return Object(r.a)(this,void 0,void 0,(function*(){if(this.isEnded)return;const n=this.rid++,i=this.stanzas.export("bosh",Object.assign(Object.assign({},e),{rid:n,sid:this.sid}));let r;r=t?[i.openTag(),t,i.closeTag()].join(""):i.toString(),this.client.emit("raw","outgoing",r),this.sendingChannel.send(n,r).then(e=>{this.process(e)}).catch(e=>{this.end(e)}),this.toggleChannel()}))}_poll(){return Object(r.a)(this,void 0,void 0,(function*(){if(this.isEnded)return;const e=this.rid++,t=this.stanzas.export("bosh",{rid:e,sid:this.sid}).toString();this.client.emit("raw","outgoing",t),this.pollingChannel.send(e,t).then(e=>{this.process(e)}).catch(e=>{this.end(e)})}))}scheduleRequests(){clearTimeout(this.idleTimeout),this.idleTimeout=setTimeout(()=>{this.fireRequests()},10)}fireRequests(){if(!this.isEnded)if(this.queue.length)if(this.sendingChannel.active)this.scheduleRequests();else{const[e,t]=this.queue.shift();this._send({},e),t()}else!this.authenticated||this.channels[0].active||this.channels[1].active||this._poll()}}class Ms extends c.Duplex{constructor(e,t,n){super({objectMode:!0}),this.sm=t,this.stanzas=n,this.closing=!1,this.client=e,this.on("data",e=>{this.client.emit("stream:data",e.stanza,e.kind)}),this.on("error",()=>{this.end()}),this.on("end",()=>{this.client.emit("--transport-disconnected")})}_read(){}_write(t,n,i){if(!this.socket||1!==this.socket.readyState)return i(new Error("Socket closed"));const r=e.from(t,"utf8").toString();this.client.emit("raw","outgoing",r),this.socket.send(r),i()}connect(t){this.config=t,this.hasStream=!1,this.closing=!1,this.parser=new gi({acceptLanguages:this.config.acceptLanguages,allowComments:!1,lang:this.config.lang,registry:this.stanzas,wrappedStream:!1}),this.parser.on("data",e=>{const t=e.kind,n=e.stanza;if("stream"===t){if("open"===n.action)return this.hasStream=!0,this.stream=n,this.client.emit("stream:start",n);if("close"===n.action)return this.client.emit("stream:end"),this.disconnect()}this.push({kind:e.kind,stanza:e.stanza})}),this.parser.on("error",e=>{const t={condition:qr.InvalidXML};return this.client.emit("stream:error",t,e),this.write(this.stanzas.export("error",t).toString()),this.disconnect()}),this.socket=new er(t.url,"xmpp"),this.socket.onopen=()=>{this.emit("connect"),this.sm.started=!1,this.client.emit("connected"),this.write(this.startHeader())},this.socket.onmessage=t=>{const n=e.from(t.data,"utf8").toString();this.client.emit("raw","incoming",n),this.parser&&this.parser.write(n)},this.socket.onclose=()=>{this.push(null)}}disconnect(){this.socket&&!this.closing&&this.hasStream?(this.closing=!0,this.write(this.closeHeader())):(this.hasStream=!1,this.stream=void 0,this.socket&&this.end(),this.socket=void 0)}send(e,t){var n;return Object(r.a)(this,void 0,void 0,(function*(){let i;if(t&&(i=null===(n=this.stanzas.export(e,t))||void 0===n?void 0:n.toString()),i)return new Promise((e,t)=>{this.write(i,"utf8",n=>n?t(n):e())})}))}restart(){this.hasStream=!1,this.write(this.startHeader())}startHeader(){return this.stanzas.export("stream",{action:"open",lang:this.config.lang,to:this.config.server,version:"1.0"}).toString()}closeHeader(){return this.stanzas.export("stream",{action:"close"}).toString()}}class Ns extends a.EventEmitter{constructor(e={}){super(),this.setMaxListeners(100),this.off=this.removeListener,this.updateConfig(e),this.jid="",this.sasl=new ir,this.sasl.register("EXTERNAL",pr,1e3),this.sasl.register("SCRAM-SHA-256-PLUS",gr,350),this.sasl.register("SCRAM-SHA-256",gr,300),this.sasl.register("SCRAM-SHA-1-PLUS",gr,250),this.sasl.register("SCRAM-SHA-1",gr,200),this.sasl.register("DIGEST-MD5",fr,100),this.sasl.register("OAUTHBEARER",hr,100),this.sasl.register("X-OAUTH2",mr,50),this.sasl.register("PLAIN",mr,1),this.sasl.register("ANONYMOUS",dr,0),this.stanzas=new qt,this.stanzas.define(Ps),this.use(Ko),this.sm=new m,void 0!==this.config.allowResumption&&(this.sm.allowResume=this.config.allowResumption),this.sm.on("prebound",e=>{this.jid=e,this.emit("session:bound",e)}),this.on("session:bound",e=>this.sm.bind(e)),this.sm.on("send",e=>this.send("sm",e)),this.sm.on("acked",e=>this.emit("stanza:acked",e)),this.sm.on("failed",e=>this.emit("stanza:failed",e)),this.sm.on("hibernated",e=>this.emit("stanza:hibernated",e)),this.sm.on("begin-resend",()=>this.outgoingDataQueue.pause()),this.sm.on("resend",({kind:e,stanza:t})=>this.send(e,t,!0)),this.sm.on("end-resend",()=>this.outgoingDataQueue.resume());for(const e of["acked","hibernated","failed"])this.on("stanza:"+e,t=>{"message"===t.kind&&this.emit("message:"+e,t.stanza)});this.transports={bosh:As,websocket:Ms},this.incomingDataQueue=Object(o.a)((e,t)=>Object(r.a)(this,void 0,void 0,(function*(){const{kind:n,stanza:i}=e;this.emit(n,i),i.id&&this.emit(n+":id:"+i.id,i),"message"===n||"presence"===n||"iq"===n?(this.emit("stanza",i),yield this.sm.handle()):"sm"===n&&("ack"===i.type&&(yield this.sm.process(i),this.emit("stream:management:ack",i)),"request"===i.type&&this.sm.ack()),t&&t()})),1),this.outgoingDataQueue=Object(o.a)((e,t)=>Object(r.a)(this,void 0,void 0,(function*(){var n;const{kind:i,stanza:r,replay:o}=e,a=o||(yield this.sm.track(i,r));"message"===i&&(o?this.emit("message:retry",r):this.emit("message:sent",r,!1));try{if(!this.transport)throw new Error("Missing transport");yield this.transport.send(i,r),a&&(null===(n=this.transport)||void 0===n||n.send("sm",{type:"request"}))}catch(e){!this.sm.started&&["message","presence","iq"].includes(i)&&this.emit("stanza:failed",{kind:i,stanza:r})}t&&t()})),1),this.on("stream:data",(e,t)=>{this.incomingDataQueue.push({kind:t,stanza:e},0)}),this.on("--transport-disconnected",()=>Object(r.a)(this,void 0,void 0,(function*(){this.transport&&delete this.transport;const e=[];this.incomingDataQueue.idle()||e.push(this.incomingDataQueue.drain()),this.outgoingDataQueue.idle()||e.push(this.outgoingDataQueue.drain()),yield Promise.all(e),yield this.sm.hibernate(),this.emit("--reset-stream-features"),this.emit("disconnected")}))),this.on("iq",e=>{const t=e.type,n=e.payloadType,i="iq:"+t+":"+n;if("get"===t||"set"===t){if("invalid-payload-count"===n)return this.sendIQError(e,{error:{condition:"bad-request",type:"modify"}});if("unknown-payload"===n||0===this.listenerCount(i))return this.sendIQError(e,{error:{condition:"service-unavailable",type:"cancel"}});this.emit(i,e)}}),this.on("message",e=>{const t=e.alternateLanguageBodies&&e.alternateLanguageBodies.length||e.links&&e.links.length,n=e.marker&&"markable"!==e.marker.type;t&&!n&&("chat"===e.type||"normal"===e.type?this.emit("chat",e):"groupchat"===e.type&&this.emit("groupchat",e)),"error"===e.type&&this.emit("message:error",e)}),this.on("presence",e=>{let t=e.type||"available";"error"===t&&(t="presence:error"),this.emit(t,e)})}updateConfig(e={}){const t=this.config||{};this.config=Object.assign(Object.assign({allowResumption:!0,jid:"",transports:{bosh:!0,websocket:!0},useStreamManagement:!0},t),e),this.config.server||(this.config.server=Q(this.config.jid)),this.config.password&&(this.config.credentials=this.config.credentials||{},this.config.credentials.password=this.config.password,delete this.config.password)}get stream(){return this.transport?this.transport.stream:void 0}emit(e,...t){const n=super.emit(e,...t);return"raw"===e?(super.emit("raw:"+t[0],t[1]),super.emit("raw:*","raw:"+t[0],t[1]),super.emit("*","raw:"+t[0],t[1])):super.emit("*",e,...t),n}use(e){"function"==typeof e&&e(this,this.stanzas,this.config)}nextId(){return Er()}getCredentials(){return Object(r.a)(this,void 0,void 0,(function*(){return this._getConfiguredCredentials()}))}connect(){return Object(r.a)(this,void 0,void 0,(function*(){this.emit("--reset-stream-features");const e=["websocket","bosh"];let t;for(const n of e){let e=this.config.transports[n];if(e){if("string"==typeof e)e={url:e};else if(!0===e){if(!t)try{t=yield this.discoverBindings(this.config.server)}catch(e){console.error(e);continue}if(t[n]=(t[n]||[]).filter(e=>e.startsWith("wss:")||e.startsWith("https:")),!t[n]||!t[n].length)continue;e={url:t[n][0]}}return this.transport=new this.transports[n](this,this.sm,this.stanzas),void this.transport.connect(Object.assign({acceptLanguages:this.config.acceptLanguages||["en"],jid:this.config.jid,lang:this.config.lang||"en",server:this.config.server,url:e.url},e))}}return console.error("No endpoints found for the requested transports."),this.disconnect()}))}disconnect(){return Object(r.a)(this,void 0,void 0,(function*(){this.outgoingDataQueue.pause(),this.sessionStarted&&!this.sm.started&&this.emit("session:end"),this.emit("--reset-stream-features"),this.sessionStarted=!1,this.transport?this.transport.disconnect():this.emit("--transport-disconnected"),this.outgoingDataQueue.resume(),this.outgoingDataQueue.idle()||(yield this.outgoingDataQueue.drain()),yield this.sm.shutdown()}))}send(e,t,n=!1){return Object(r.a)(this,void 0,void 0,(function*(){return new Promise((i,r)=>{this.outgoingDataQueue.push({kind:e,stanza:t,replay:n},n?0:1,e=>e?r(e):i())})}))}sendMessage(e){const t=e.id||this.nextId(),n=Object.assign({id:t,originId:t},e);return this.send("message",n),n.id}sendPresence(e={}){const t=Object.assign({id:this.nextId()},e);return this.send("presence",t),t.id}sendIQ(e){const t=Object.assign({id:this.nextId()},e),n=H(this.jid,e.to),i="iq:id:"+t.id,r=new Promise((e,t)=>{const r=o=>{n.has(o.from)&&("result"!==o.type&&"error"!==o.type||(this.off(i,r),"result"===o.type?e(o):t(o)))};this.on(i,r)});return this.send("iq",t),Sr(r,1e3*(this.config.timeout||15),()=>({error:{condition:"timeout"},id:t.id,type:"error"}))}sendIQResult(e,t){this.send("iq",Object.assign(Object.assign({},t),{id:e.id,to:e.from,type:"result"}))}sendIQError(e,t){this.send("iq",Object.assign(Object.assign({},t),{id:e.id,to:e.from,type:"error"}))}sendStreamError(e){this.emit("stream:error",e),this.send("error",e),this.disconnect()}_getConfiguredCredentials(){const e=this.config.credentials||{},t=$(this.config.jid||""),n=e.username||t.local,i=e.host||t.domain;return Object.assign({host:i,password:this.config.password,realm:i,serviceName:i,serviceType:"xmpp",username:n},e)}}function Ds(e,t){const n=e.length,i=t.length,r=Math.min(n,i);let o=0;for(o=0;o<r&&e[o]===t[o];o++);let a=0;for(a=0;a<r-o&&e[n-a-1]===t[i-a-1];a++);const s=o+a,c=[];if(s<n&&c.push({length:n-s,position:n-a,type:"erase"}),s<i){const e=t.slice(o,o+i-s);c.push({position:o,text:l.a.ucs2.encode(e),type:"insert"})}return c}var Ls=Object.freeze({__proto__:null,diff:Ds,DisplayBuffer:class{constructor(e,t=!1){this.synced=!1,this.cursorPosition=0,this.ignoreWaits=!1,this.timeDeficit=0,this.sequenceNumber=0,this.onStateChange=e||function(){},this.ignoreWaits=t,this.buffer=[],this.resetActionQueue()}get text(){return l.a.ucs2.encode(this.buffer.slice())}commit(){this.resetActionQueue()}process(e){if("cancel"!==e.event&&"init"!==e.event){if("reset"===e.event||"new"===e.event?(this.resetActionQueue(),void 0!==e.seq&&(this.sequenceNumber=e.seq)):e.seq!==this.sequenceNumber&&(this.synced=!1),e.actions){const t=Date.now();let n=0;for(const i of e.actions)i.baseTime=t+n,"wait"===i.type&&(n+=i.duration),this.actionQueue.push(i,0)}this.sequenceNumber=this.sequenceNumber+1}else this.resetActionQueue()}insert(e="",t=this.buffer.length){e=e.normalize("NFC");const n=l.a.ucs2.decode(e);this.buffer.splice(t,0,...n),this.cursorPosition=t+n.length,this.emitState()}erase(e=1,t=this.buffer.length){t=Math.max(Math.min(t,this.buffer.length),0),e=Math.max(Math.min(e,this.text.length),0),this.buffer.splice(Math.max(t-e,0),e),this.cursorPosition=Math.max(t-e,0),this.emitState()}emitState(e={}){this.onStateChange(Object.assign({cursorPosition:this.cursorPosition,synced:this.synced,text:this.text},e))}resetActionQueue(){this.actionQueue&&this.actionQueue.kill(),this.sequenceNumber=0,this.synced=!0,this.buffer=[],this.timeDeficit=0,this.actionQueue=Object(o.a)((e,t)=>{const n=Date.now();if("insert"===e.type)return this.insert(e.text,e.position),t();if("erase"===e.type)return this.erase(e.length,e.position),t();if("wait"!==e.type)return t();{if(this.ignoreWaits)return t();e.duration>700&&(e.duration=700);const i=e.duration-(n-e.baseTime)+this.timeDeficit;if(i<=0)return this.timeDeficit=i,t();this.timeDeficit=0,setTimeout(()=>t(),i)}},1),this.emitState()}},InputBuffer:class{constructor(e,t=!1){this.resetInterval=1e4,this.ignoreWaits=!1,this.isStarting=!1,this.isReset=!1,this.changedBetweenResets=!1,this.onStateChange=e||function(){},this.ignoreWaits=t,this.buffer=[],this.actionQueue=[],this.sequenceNumber=0}get text(){return l.a.ucs2.encode(this.buffer.slice())}update(e){let t=[];if(void 0!==e){e=e.normalize("NFC");const n=l.a.ucs2.decode(e);t=Ds(this.buffer,n.slice()),this.buffer=n,this.emitState()}const n=Date.now();if(this.changedBetweenResets&&n-this.lastResetTime>this.resetInterval)this.actionQueue=[],this.actionQueue.push({position:0,text:this.text,type:"insert"}),this.isReset=!0,this.lastActionTime=n,this.lastResetTime=n,this.changedBetweenResets=!1;else if(t.length){const e=n-(this.lastActionTime||n);e>0&&!this.ignoreWaits&&this.actionQueue.push({duration:e,type:"wait"});for(const e of t)this.actionQueue.push(e);this.lastActionTime=n,this.changedBetweenResets=!0}else this.lastActionTime=n}start(e=this.resetInterval){return this.commit(),this.isStarting=!0,this.resetInterval=e,this.sequenceNumber=Math.floor(1e4*Math.random()+1),{event:"init"}}stop(){return this.commit(),{event:"cancel"}}diff(){if(this.update(),!this.actionQueue.length)return null;const e={actions:this.actionQueue,seq:this.sequenceNumber++};return this.isStarting?(e.event="new",this.isStarting=!1,this.lastResetTime=Date.now()):this.isReset&&(e.event="reset",this.isReset=!1),this.actionQueue=[],e}commit(){this.sequenceNumber=0,this.lastActionTime=0,this.actionQueue=[],this.buffer=[]}emitState(){this.onStateChange({text:this.text})}}});function qs(e){const t=new Ns(e);return t.use(Yo),t}}).call(this,n(19).Buffer,n(7))},function(e,t,n){"use strict";var i={generateIdentifier:function(){return Math.random().toString(36).substr(2,10)}};i.localCName=i.generateIdentifier(),i.splitLines=function(e){return e.trim().split("\n").map((function(e){return e.trim()}))},i.splitSections=function(e){return e.split("\nm=").map((function(e,t){return(t>0?"m="+e:e).trim()+"\r\n"}))},i.getDescription=function(e){var t=i.splitSections(e);return t&&t[0]},i.getMediaSections=function(e){var t=i.splitSections(e);return t.shift(),t},i.matchPrefix=function(e,t){return i.splitLines(e).filter((function(e){return 0===e.indexOf(t)}))},i.parseCandidate=function(e){for(var t,n={foundation:(t=0===e.indexOf("a=candidate:")?e.substring(12).split(" "):e.substring(10).split(" "))[0],component:parseInt(t[1],10),protocol:t[2].toLowerCase(),priority:parseInt(t[3],10),ip:t[4],address:t[4],port:parseInt(t[5],10),type:t[7]},i=8;i<t.length;i+=2)switch(t[i]){case"raddr":n.relatedAddress=t[i+1];break;case"rport":n.relatedPort=parseInt(t[i+1],10);break;case"tcptype":n.tcpType=t[i+1];break;case"ufrag":n.ufrag=t[i+1],n.usernameFragment=t[i+1];break;default:n[t[i]]=t[i+1]}return n},i.writeCandidate=function(e){var t=[];t.push(e.foundation),t.push(e.component),t.push(e.protocol.toUpperCase()),t.push(e.priority),t.push(e.address||e.ip),t.push(e.port);var n=e.type;return t.push("typ"),t.push(n),"host"!==n&&e.relatedAddress&&e.relatedPort&&(t.push("raddr"),t.push(e.relatedAddress),t.push("rport"),t.push(e.relatedPort)),e.tcpType&&"tcp"===e.protocol.toLowerCase()&&(t.push("tcptype"),t.push(e.tcpType)),(e.usernameFragment||e.ufrag)&&(t.push("ufrag"),t.push(e.usernameFragment||e.ufrag)),"candidate:"+t.join(" ")},i.parseIceOptions=function(e){return e.substr(14).split(" ")},i.parseRtpMap=function(e){var t=e.substr(9).split(" "),n={payloadType:parseInt(t.shift(),10)};return t=t[0].split("/"),n.name=t[0],n.clockRate=parseInt(t[1],10),n.channels=3===t.length?parseInt(t[2],10):1,n.numChannels=n.channels,n},i.writeRtpMap=function(e){var t=e.payloadType;void 0!==e.preferredPayloadType&&(t=e.preferredPayloadType);var n=e.channels||e.numChannels||1;return"a=rtpmap:"+t+" "+e.name+"/"+e.clockRate+(1!==n?"/"+n:"")+"\r\n"},i.parseExtmap=function(e){var t=e.substr(9).split(" ");return{id:parseInt(t[0],10),direction:t[0].indexOf("/")>0?t[0].split("/")[1]:"sendrecv",uri:t[1]}},i.writeExtmap=function(e){return"a=extmap:"+(e.id||e.preferredId)+(e.direction&&"sendrecv"!==e.direction?"/"+e.direction:"")+" "+e.uri+"\r\n"},i.parseFmtp=function(e){for(var t,n={},i=e.substr(e.indexOf(" ")+1).split(";"),r=0;r<i.length;r++)n[(t=i[r].trim().split("="))[0].trim()]=t[1];return n},i.writeFmtp=function(e){var t="",n=e.payloadType;if(void 0!==e.preferredPayloadType&&(n=e.preferredPayloadType),e.parameters&&Object.keys(e.parameters).length){var i=[];Object.keys(e.parameters).forEach((function(t){e.parameters[t]?i.push(t+"="+e.parameters[t]):i.push(t)})),t+="a=fmtp:"+n+" "+i.join(";")+"\r\n"}return t},i.parseRtcpFb=function(e){var t=e.substr(e.indexOf(" ")+1).split(" ");return{type:t.shift(),parameter:t.join(" ")}},i.writeRtcpFb=function(e){var t="",n=e.payloadType;return void 0!==e.preferredPayloadType&&(n=e.preferredPayloadType),e.rtcpFeedback&&e.rtcpFeedback.length&&e.rtcpFeedback.forEach((function(e){t+="a=rtcp-fb:"+n+" "+e.type+(e.parameter&&e.parameter.length?" "+e.parameter:"")+"\r\n"})),t},i.parseSsrcMedia=function(e){var t=e.indexOf(" "),n={ssrc:parseInt(e.substr(7,t-7),10)},i=e.indexOf(":",t);return i>-1?(n.attribute=e.substr(t+1,i-t-1),n.value=e.substr(i+1)):n.attribute=e.substr(t+1),n},i.parseSsrcGroup=function(e){var t=e.substr(13).split(" ");return{semantics:t.shift(),ssrcs:t.map((function(e){return parseInt(e,10)}))}},i.getMid=function(e){var t=i.matchPrefix(e,"a=mid:")[0];if(t)return t.substr(6)},i.parseFingerprint=function(e){var t=e.substr(14).split(" ");return{algorithm:t[0].toLowerCase(),value:t[1]}},i.getDtlsParameters=function(e,t){return{role:"auto",fingerprints:i.matchPrefix(e+t,"a=fingerprint:").map(i.parseFingerprint)}},i.writeDtlsParameters=function(e,t){var n="a=setup:"+t+"\r\n";return e.fingerprints.forEach((function(e){n+="a=fingerprint:"+e.algorithm+" "+e.value+"\r\n"})),n},i.parseCryptoLine=function(e){var t=e.substr(9).split(" ");return{tag:parseInt(t[0],10),cryptoSuite:t[1],keyParams:t[2],sessionParams:t.slice(3)}},i.writeCryptoLine=function(e){return"a=crypto:"+e.tag+" "+e.cryptoSuite+" "+("object"==typeof e.keyParams?i.writeCryptoKeyParams(e.keyParams):e.keyParams)+(e.sessionParams?" "+e.sessionParams.join(" "):"")+"\r\n"},i.parseCryptoKeyParams=function(e){if(0!==e.indexOf("inline:"))return null;var t=e.substr(7).split("|");return{keyMethod:"inline",keySalt:t[0],lifeTime:t[1],mkiValue:t[2]?t[2].split(":")[0]:void 0,mkiLength:t[2]?t[2].split(":")[1]:void 0}},i.writeCryptoKeyParams=function(e){return e.keyMethod+":"+e.keySalt+(e.lifeTime?"|"+e.lifeTime:"")+(e.mkiValue&&e.mkiLength?"|"+e.mkiValue+":"+e.mkiLength:"")},i.getCryptoParameters=function(e,t){return i.matchPrefix(e+t,"a=crypto:").map(i.parseCryptoLine)},i.getIceParameters=function(e,t){var n=i.matchPrefix(e+t,"a=ice-ufrag:")[0],r=i.matchPrefix(e+t,"a=ice-pwd:")[0];return n&&r?{usernameFragment:n.substr(12),password:r.substr(10)}:null},i.writeIceParameters=function(e){return"a=ice-ufrag:"+e.usernameFragment+"\r\na=ice-pwd:"+e.password+"\r\n"},i.parseRtpParameters=function(e){for(var t={codecs:[],headerExtensions:[],fecMechanisms:[],rtcp:[]},n=i.splitLines(e)[0].split(" "),r=3;r<n.length;r++){var o=n[r],a=i.matchPrefix(e,"a=rtpmap:"+o+" ")[0];if(a){var s=i.parseRtpMap(a),l=i.matchPrefix(e,"a=fmtp:"+o+" ");switch(s.parameters=l.length?i.parseFmtp(l[0]):{},s.rtcpFeedback=i.matchPrefix(e,"a=rtcp-fb:"+o+" ").map(i.parseRtcpFb),t.codecs.push(s),s.name.toUpperCase()){case"RED":case"ULPFEC":t.fecMechanisms.push(s.name.toUpperCase())}}}return i.matchPrefix(e,"a=extmap:").forEach((function(e){t.headerExtensions.push(i.parseExtmap(e))})),t},i.writeRtpDescription=function(e,t){var n="";n+="m="+e+" ",n+=t.codecs.length>0?"9":"0",n+=" UDP/TLS/RTP/SAVPF ",n+=t.codecs.map((function(e){return void 0!==e.preferredPayloadType?e.preferredPayloadType:e.payloadType})).join(" ")+"\r\n",n+="c=IN IP4 0.0.0.0\r\n",n+="a=rtcp:9 IN IP4 0.0.0.0\r\n",t.codecs.forEach((function(e){n+=i.writeRtpMap(e),n+=i.writeFmtp(e),n+=i.writeRtcpFb(e)}));var r=0;return t.codecs.forEach((function(e){e.maxptime>r&&(r=e.maxptime)})),r>0&&(n+="a=maxptime:"+r+"\r\n"),n+="a=rtcp-mux\r\n",t.headerExtensions&&t.headerExtensions.forEach((function(e){n+=i.writeExtmap(e)})),n},i.parseRtpEncodingParameters=function(e){var t,n=[],r=i.parseRtpParameters(e),o=-1!==r.fecMechanisms.indexOf("RED"),a=-1!==r.fecMechanisms.indexOf("ULPFEC"),s=i.matchPrefix(e,"a=ssrc:").map((function(e){return i.parseSsrcMedia(e)})).filter((function(e){return"cname"===e.attribute})),l=s.length>0&&s[0].ssrc,c=i.matchPrefix(e,"a=ssrc-group:FID").map((function(e){return e.substr(17).split(" ").map((function(e){return parseInt(e,10)}))}));c.length>0&&c[0].length>1&&c[0][0]===l&&(t=c[0][1]),r.codecs.forEach((function(e){if("RTX"===e.name.toUpperCase()&&e.parameters.apt){var i={ssrc:l,codecPayloadType:parseInt(e.parameters.apt,10)};l&&t&&(i.rtx={ssrc:t}),n.push(i),o&&((i=JSON.parse(JSON.stringify(i))).fec={ssrc:l,mechanism:a?"red+ulpfec":"red"},n.push(i))}})),0===n.length&&l&&n.push({ssrc:l});var u=i.matchPrefix(e,"b=");return u.length&&(u=0===u[0].indexOf("b=TIAS:")?parseInt(u[0].substr(7),10):0===u[0].indexOf("b=AS:")?1e3*parseInt(u[0].substr(5),10)*.95-16e3:void 0,n.forEach((function(e){e.maxBitrate=u}))),n},i.parseRtcpParameters=function(e){var t={},n=i.matchPrefix(e,"a=ssrc:").map((function(e){return i.parseSsrcMedia(e)})).filter((function(e){return"cname"===e.attribute}))[0];n&&(t.cname=n.value,t.ssrc=n.ssrc);var r=i.matchPrefix(e,"a=rtcp-rsize");t.reducedSize=r.length>0,t.compound=0===r.length;var o=i.matchPrefix(e,"a=rtcp-mux");return t.mux=o.length>0,t},i.parseMsid=function(e){var t,n=i.matchPrefix(e,"a=msid:");if(1===n.length)return{stream:(t=n[0].substr(7).split(" "))[0],track:t[1]};var r=i.matchPrefix(e,"a=ssrc:").map((function(e){return i.parseSsrcMedia(e)})).filter((function(e){return"msid"===e.attribute}));return r.length>0?{stream:(t=r[0].value.split(" "))[0],track:t[1]}:void 0},i.parseSctpDescription=function(e){var t,n=i.parseMLine(e),r=i.matchPrefix(e,"a=max-message-size:");r.length>0&&(t=parseInt(r[0].substr(19),10)),isNaN(t)&&(t=65536);var o=i.matchPrefix(e,"a=sctp-port:");if(o.length>0)return{port:parseInt(o[0].substr(12),10),protocol:n.fmt,maxMessageSize:t};if(i.matchPrefix(e,"a=sctpmap:").length>0){var a=i.matchPrefix(e,"a=sctpmap:")[0].substr(10).split(" ");return{port:parseInt(a[0],10),protocol:a[1],maxMessageSize:t}}},i.writeSctpDescription=function(e,t){var n=[];return n="DTLS/SCTP"!==e.protocol?["m="+e.kind+" 9 "+e.protocol+" "+t.protocol+"\r\n","c=IN IP4 0.0.0.0\r\n","a=sctp-port:"+t.port+"\r\n"]:["m="+e.kind+" 9 "+e.protocol+" "+t.port+"\r\n","c=IN IP4 0.0.0.0\r\n","a=sctpmap:"+t.port+" "+t.protocol+" 65535\r\n"],void 0!==t.maxMessageSize&&n.push("a=max-message-size:"+t.maxMessageSize+"\r\n"),n.join("")},i.generateSessionId=function(){return Math.random().toString().substr(2,21)},i.writeSessionBoilerplate=function(e,t,n){var r=void 0!==t?t:2;return"v=0\r\no="+(n||"thisisadapterortc")+" "+(e||i.generateSessionId())+" "+r+" IN IP4 127.0.0.1\r\ns=-\r\nt=0 0\r\n"},i.writeMediaSection=function(e,t,n,r){var o=i.writeRtpDescription(e.kind,t);if(o+=i.writeIceParameters(e.iceGatherer.getLocalParameters()),o+=i.writeDtlsParameters(e.dtlsTransport.getLocalParameters(),"offer"===n?"actpass":"active"),o+="a=mid:"+e.mid+"\r\n",e.direction?o+="a="+e.direction+"\r\n":e.rtpSender&&e.rtpReceiver?o+="a=sendrecv\r\n":e.rtpSender?o+="a=sendonly\r\n":e.rtpReceiver?o+="a=recvonly\r\n":o+="a=inactive\r\n",e.rtpSender){var a="msid:"+r.id+" "+e.rtpSender.track.id+"\r\n";o+="a="+a,o+="a=ssrc:"+e.sendEncodingParameters[0].ssrc+" "+a,e.sendEncodingParameters[0].rtx&&(o+="a=ssrc:"+e.sendEncodingParameters[0].rtx.ssrc+" "+a,o+="a=ssrc-group:FID "+e.sendEncodingParameters[0].ssrc+" "+e.sendEncodingParameters[0].rtx.ssrc+"\r\n")}return o+="a=ssrc:"+e.sendEncodingParameters[0].ssrc+" cname:"+i.localCName+"\r\n",e.rtpSender&&e.sendEncodingParameters[0].rtx&&(o+="a=ssrc:"+e.sendEncodingParameters[0].rtx.ssrc+" cname:"+i.localCName+"\r\n"),o},i.getDirection=function(e,t){for(var n=i.splitLines(e),r=0;r<n.length;r++)switch(n[r]){case"a=sendrecv":case"a=sendonly":case"a=recvonly":case"a=inactive":return n[r].substr(2)}return t?i.getDirection(t):"sendrecv"},i.getKind=function(e){return i.splitLines(e)[0].split(" ")[0].substr(2)},i.isRejected=function(e){return"0"===e.split(" ",2)[1]},i.parseMLine=function(e){var t=i.splitLines(e)[0].substr(2).split(" ");return{kind:t[0],port:parseInt(t[1],10),protocol:t[2],fmt:t.slice(3).join(" ")}},i.parseOLine=function(e){var t=i.matchPrefix(e,"o=")[0].substr(2).split(" ");return{username:t[0],sessionId:t[1],sessionVersion:parseInt(t[2],10),netType:t[3],addressType:t[4],address:t[5]}},i.isValidSDP=function(e){if("string"!=typeof e||0===e.length)return!1;for(var t=i.splitLines(e),n=0;n<t.length;n++)if(t[n].length<2||"="!==t[n].charAt(1))return!1;return!0},e.exports=i},function(e,t,n){"use strict";var i,r="object"==typeof Reflect?Reflect:null,o=r&&"function"==typeof r.apply?r.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};i=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var a=Number.isNaN||function(e){return e!=e};function s(){s.init.call(this)}e.exports=s,s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var l=10;function c(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function u(e){return void 0===e._maxListeners?s.defaultMaxListeners:e._maxListeners}function d(e,t,n,i){var r,o,a,s;if(c(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),a=o[t]),void 0===a)a=o[t]=n,++e._eventsCount;else if("function"==typeof a?a=o[t]=i?[n,a]:[a,n]:i?a.unshift(n):a.push(n),(r=u(e))>0&&a.length>r&&!a.warned){a.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=a.length,s=l,console&&console.warn&&console.warn(s)}return e}function p(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function m(e,t,n){var i={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},r=p.bind(i);return r.listener=n,i.wrapFn=r,r}function h(e,t,n){var i=e._events;if(void 0===i)return[];var r=i[t];return void 0===r?[]:"function"==typeof r?n?[r.listener||r]:[r]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(r):g(r,r.length)}function f(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function g(e,t){for(var n=new Array(t),i=0;i<t;++i)n[i]=e[i];return n}Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return l},set:function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");l=e}}),s.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},s.prototype.getMaxListeners=function(){return u(this)},s.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var i="error"===e,r=this._events;if(void 0!==r)i=i&&void 0===r.error;else if(!i)return!1;if(i){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var l=r[e];if(void 0===l)return!1;if("function"==typeof l)o(l,this,t);else{var c=l.length,u=g(l,c);for(n=0;n<c;++n)o(u[n],this,t)}return!0},s.prototype.addListener=function(e,t){return d(this,e,t,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(e,t){return d(this,e,t,!0)},s.prototype.once=function(e,t){return c(t),this.on(e,m(this,e,t)),this},s.prototype.prependOnceListener=function(e,t){return c(t),this.prependListener(e,m(this,e,t)),this},s.prototype.removeListener=function(e,t){var n,i,r,o,a;if(c(t),void 0===(i=this._events))return this;if(void 0===(n=i[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete i[e],i.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(r=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){a=n[o].listener,r=o;break}if(r<0)return this;0===r?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,r),1===n.length&&(i[e]=n[0]),void 0!==i.removeListener&&this.emit("removeListener",e,a||t)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(e){var t,n,i;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var r,o=Object.keys(n);for(i=0;i<o.length;++i)"removeListener"!==(r=o[i])&&this.removeAllListeners(r);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(i=t.length-1;i>=0;i--)this.removeListener(e,t[i]);return this},s.prototype.listeners=function(e){return h(this,e,!0)},s.prototype.rawListeners=function(e){return h(this,e,!1)},s.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):f.call(e,t)},s.prototype.listenerCount=f,s.prototype.eventNames=function(){return this._eventsCount>0?i(this._events):[]}},function(e,t,n){(function(e,i){var r;/*! https://mths.be/punycode v1.4.1 by @mathias */!function(o){t&&t.nodeType,e&&e.nodeType;var a="object"==typeof i&&i;a.global!==a&&a.window!==a&&a.self;var s,l=2147483647,c=/^xn--/,u=/[^\x20-\x7E]/,d=/[\x2E\u3002\uFF0E\uFF61]/g,p={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},m=Math.floor,h=String.fromCharCode;function f(e){throw new RangeError(p[e])}function g(e,t){for(var n=e.length,i=[];n--;)i[n]=t(e[n]);return i}function v(e,t){var n=e.split("@"),i="";return n.length>1&&(i=n[0]+"@",e=n[1]),i+g((e=e.replace(d,".")).split("."),t).join(".")}function b(e){for(var t,n,i=[],r=0,o=e.length;r<o;)(t=e.charCodeAt(r++))>=55296&&t<=56319&&r<o?56320==(64512&(n=e.charCodeAt(r++)))?i.push(((1023&t)<<10)+(1023&n)+65536):(i.push(t),r--):i.push(t);return i}function y(e){return g(e,(function(e){var t="";return e>65535&&(t+=h((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=h(e)})).join("")}function k(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function w(e,t,n){var i=0;for(e=n?m(e/700):e>>1,e+=m(e/t);e>455;i+=36)e=m(e/35);return m(i+36*e/(e+38))}function S(e){var t,n,i,r,o,a,s,c,u,d,p,h=[],g=e.length,v=0,b=128,k=72;for((n=e.lastIndexOf("-"))<0&&(n=0),i=0;i<n;++i)e.charCodeAt(i)>=128&&f("not-basic"),h.push(e.charCodeAt(i));for(r=n>0?n+1:0;r<g;){for(o=v,a=1,s=36;r>=g&&f("invalid-input"),((c=(p=e.charCodeAt(r++))-48<10?p-22:p-65<26?p-65:p-97<26?p-97:36)>=36||c>m((l-v)/a))&&f("overflow"),v+=c*a,!(c<(u=s<=k?1:s>=k+26?26:s-k));s+=36)a>m(l/(d=36-u))&&f("overflow"),a*=d;k=w(v-o,t=h.length+1,0==o),m(v/t)>l-b&&f("overflow"),b+=m(v/t),v%=t,h.splice(v++,0,b)}return y(h)}function C(e){var t,n,i,r,o,a,s,c,u,d,p,g,v,y,S,C=[];for(g=(e=b(e)).length,t=128,n=0,o=72,a=0;a<g;++a)(p=e[a])<128&&C.push(h(p));for(i=r=C.length,r&&C.push("-");i<g;){for(s=l,a=0;a<g;++a)(p=e[a])>=t&&p<s&&(s=p);for(s-t>m((l-n)/(v=i+1))&&f("overflow"),n+=(s-t)*v,t=s,a=0;a<g;++a)if((p=e[a])<t&&++n>l&&f("overflow"),p==t){for(c=n,u=36;!(c<(d=u<=o?1:u>=o+26?26:u-o));u+=36)S=c-d,y=36-d,C.push(h(k(d+S%y,0))),c=m(S/y);C.push(h(k(c,0))),o=w(n,v,i==r),n=0,++i}++n,++t}return C.join("")}s={version:"1.4.1",ucs2:{decode:b,encode:y},decode:S,encode:C,toASCII:function(e){return v(e,(function(e){return u.test(e)?"xn--"+C(e):e}))},toUnicode:function(e){return v(e,(function(e){return c.test(e)?S(e.slice(4).toLowerCase()):e}))}},void 0===(r=function(){return s}.call(t,n,t,e))||(e.exports=r)}()}).call(this,n(75)(e),n(7))},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";function i(e){return function(...t){var n=t.pop();return e.call(this,t,n)}}n.d(t,"a",(function(){return J}));var r="function"==typeof setImmediate&&setImmediate,o="object"==typeof process&&"function"==typeof process.nextTick;function a(e){setTimeout(e,0)}function s(e){return(t,...n)=>e(()=>t(...n))}var l=s(r?setImmediate:o?process.nextTick:a);function c(e){return p(e)?function(...t){const n=t.pop();return u(e.apply(this,t),n)}:i((function(t,n){var i;try{i=e.apply(this,t)}catch(e){return n(e)}if(i&&"function"==typeof i.then)return u(i,n);n(null,i)}))}function u(e,t){return e.then(e=>{d(t,null,e)},e=>{d(t,e&&e.message?e:new Error(e))})}function d(e,t,n){try{e(t,n)}catch(e){l(e=>{throw e},e)}}function p(e){return"AsyncFunction"===e[Symbol.toStringTag]}function m(e){if("function"!=typeof e)throw new Error("expected a function");return p(e)?c(e):e}function h(e,t=e.length){if(!t)throw new Error("arity is undefined");return function(...n){return"function"==typeof n[t-1]?e.apply(this,n):new Promise((i,r)=>{n[t-1]=(e,...t)=>{if(e)return r(e);i(t.length>1?t:t[0])},e.apply(this,n)})}}function f(e){return function(t,...n){return h((function(i){var r=this;return e(t,(e,t)=>{m(e).apply(r,n.concat(t))},i)}))}}function g(e,t,n,i){t=t||[];var r=[],o=0,a=m(n);return e(t,(e,t,n)=>{var i=o++;a(e,(e,t)=>{r[i]=t,n(e)})},e=>{i(e,r)})}function v(e){return e&&"number"==typeof e.length&&e.length>=0&&e.length%1==0}const b={};function y(e){function t(...t){if(null!==e){var n=e;e=null,n.apply(this,t)}}return Object.assign(t,e),t}function k(e){if(v(e))return function(e){var t=-1,n=e.length;return function(){return++t<n?{value:e[t],key:t}:null}}(e);var t,n,i,r,o=function(e){return e[Symbol.iterator]&&e[Symbol.iterator]()}(e);return o?function(e){var t=-1;return function(){var n=e.next();return n.done?null:(t++,{value:n.value,key:t})}}(o):(n=(t=e)?Object.keys(t):[],i=-1,r=n.length,function(){var e=n[++i];return i<r?{value:t[e],key:e}:null})}function w(e){return function(...t){if(null===e)throw new Error("Callback was already called.");var n=e;e=null,n.apply(this,t)}}function S(e,t,n,i){let r=!1,o=!1,a=!1,s=0,l=0;function c(){s>=t||a||r||(a=!0,e.next().then(({value:e,done:t})=>{if(!o&&!r){if(a=!1,t)return r=!0,void(s<=0&&i(null));s++,n(e,l,u),l++,c()}}).catch(d))}function u(e,t){if(s-=1,!o)return e?d(e):!1===e?(r=!0,void(o=!0)):t===b||r&&s<=0?(r=!0,i(null)):void c()}function d(e){o||(a=!1,r=!0,i(e))}c()}var C=e=>(t,n,i)=>{if(i=y(i),e<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!t)return i(null);if("AsyncGenerator"===t[Symbol.toStringTag])return S(t,e,n,i);if(function(e){return"function"==typeof e[Symbol.asyncIterator]}(t))return S(t[Symbol.asyncIterator](),e,n,i);var r=k(t),o=!1,a=!1,s=0,l=!1;function c(e,t){if(!a)if(s-=1,e)o=!0,i(e);else if(!1===e)o=!0,a=!0;else{if(t===b||o&&s<=0)return o=!0,i(null);l||u()}}function u(){for(l=!0;s<e&&!o;){var t=r();if(null===t)return o=!0,void(s<=0&&i(null));s+=1,n(t.value,t.key,w(c))}l=!1}u()};var x=h((function(e,t,n,i){return C(t)(e,m(n),i)}),4);function E(e,t,n){n=y(n);var i=0,r=0,{length:o}=e,a=!1;function s(e,t){!1===e&&(a=!0),!0!==a&&(e?n(e):++r!==o&&t!==b||n(null))}for(0===o&&n(null);i<o;i++)t(e[i],i,w(s))}function T(e,t,n){return x(e,1/0,t,n)}var _=h((function(e,t,n){return(v(e)?E:T)(e,m(t),n)}),3);var j=h((function(e,t,n){return g(_,e,t,n)}),3);f(j);var O=h((function(e,t,n){return x(e,1,t,n)}),3);var R=h((function(e,t,n){return g(O,e,t,n)}),3);f(R);Symbol("promiseCallback");class P{constructor(){this.head=this.tail=null,this.length=0}removeLink(e){return e.prev?e.prev.next=e.next:this.head=e.next,e.next?e.next.prev=e.prev:this.tail=e.prev,e.prev=e.next=null,this.length-=1,e}empty(){for(;this.head;)this.shift();return this}insertAfter(e,t){t.prev=e,t.next=e.next,e.next?e.next.prev=t:this.tail=t,e.next=t,this.length+=1}insertBefore(e,t){t.prev=e.prev,t.next=e,e.prev?e.prev.next=t:this.head=t,e.prev=t,this.length+=1}unshift(e){this.head?this.insertBefore(this.head,e):I(this,e)}push(e){this.tail?this.insertAfter(this.tail,e):I(this,e)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var e=this.head;e;)yield e.data,e=e.next}remove(e){for(var t=this.head;t;){var{next:n}=t;e(t)&&this.removeLink(t),t=n}return this}}function I(e,t){e.length=1,e.head=e.tail=t}function A(e,t,n){if(null==t)t=1;else if(0===t)throw new RangeError("Concurrency must not be zero");var i=m(e),r=0,o=[];const a={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function s(e,t){return e?t?void(a[e]=a[e].filter(e=>e!==t)):a[e]=[]:Object.keys(a).forEach(e=>a[e]=[])}function c(e,...t){a[e].forEach(e=>e(...t))}var u=!1;function d(e,t,n,i){if(null!=i&&"function"!=typeof i)throw new Error("task callback must be a function");var r,o;function a(e,...t){return e?n?o(e):r():t.length<=1?r(t[0]):void r(t)}v.started=!0;var s={data:e,callback:n?a:i||a};if(t?v._tasks.unshift(s):v._tasks.push(s),u||(u=!0,l(()=>{u=!1,v.process()})),n||!i)return new Promise((e,t)=>{r=e,o=t})}function p(e){return function(t,...n){r-=1;for(var i=0,a=e.length;i<a;i++){var s=e[i],l=o.indexOf(s);0===l?o.shift():l>0&&o.splice(l,1),s.callback(t,...n),null!=t&&c("error",t,s.data)}r<=v.concurrency-v.buffer&&c("unsaturated"),v.idle()&&c("drain"),v.process()}}function h(e){return!(0!==e.length||!v.idle())&&(l(()=>c("drain")),!0)}const f=e=>t=>{if(!t)return new Promise((t,n)=>{!function(e,t){const n=(...i)=>{s(e,n),t(...i)};a[e].push(n)}(e,(e,i)=>{if(e)return n(e);t(i)})});s(e),function(e,t){a[e].push(t)}(e,t)};var g=!1,v={_tasks:new P,*[Symbol.iterator](){yield*v._tasks[Symbol.iterator]()},concurrency:t,payload:n,buffer:t/4,started:!1,paused:!1,push(e,t){if(Array.isArray(e)){if(h(e))return;return e.map(e=>d(e,!1,!1,t))}return d(e,!1,!1,t)},pushAsync(e,t){if(Array.isArray(e)){if(h(e))return;return e.map(e=>d(e,!1,!0,t))}return d(e,!1,!0,t)},kill(){s(),v._tasks.empty()},unshift(e,t){if(Array.isArray(e)){if(h(e))return;return e.map(e=>d(e,!0,!1,t))}return d(e,!0,!1,t)},unshiftAsync(e,t){if(Array.isArray(e)){if(h(e))return;return e.map(e=>d(e,!0,!0,t))}return d(e,!0,!0,t)},remove(e){v._tasks.remove(e)},process(){if(!g){for(g=!0;!v.paused&&r<v.concurrency&&v._tasks.length;){var e=[],t=[],n=v._tasks.length;v.payload&&(n=Math.min(n,v.payload));for(var a=0;a<n;a++){var s=v._tasks.shift();e.push(s),o.push(s),t.push(s.data)}r+=1,0===v._tasks.length&&c("empty"),r===v.concurrency&&c("saturated");var l=w(p(e));i(t,l)}g=!1}},length:()=>v._tasks.length,running:()=>r,workersList:()=>o,idle:()=>v._tasks.length+r===0,pause(){v.paused=!0},resume(){!1!==v.paused&&(v.paused=!1,l(v.process))}};return Object.defineProperties(v,{saturated:{writable:!1,value:f("saturated")},unsaturated:{writable:!1,value:f("unsaturated")},empty:{writable:!1,value:f("empty")},drain:{writable:!1,value:f("drain")},error:{writable:!1,value:f("error")}}),v}h((function(e,t,n,i){i=y(i);var r=m(n);return O(e,(e,n,i)=>{r(t,e,(e,n)=>{t=n,i(e)})},e=>i(e,t))}),4);var M=h((function(e,t,n,i){return g(C(t),e,n,i)}),4);var N=h((function(e,t,n,i){var r=m(n);return M(e,t,(e,t)=>{r(e,(e,...n)=>e?t(e):t(e,n))},(e,t)=>{for(var n=[],r=0;r<t.length;r++)t[r]&&(n=n.concat(...t[r]));return i(e,n)})}),4);h((function(e,t,n){return N(e,1/0,t,n)}),3);h((function(e,t,n){return N(e,1,t,n)}),3);function D(e,t){return(n,i,r,o)=>{var a,s=!1;const l=m(r);n(i,(n,i,r)=>{l(n,(i,o)=>i||!1===i?r(i):e(o)&&!a?(s=!0,a=t(!0,n),r(null,b)):void r())},e=>{if(e)return o(e);o(null,s?a:t(!1))})}}h((function(e,t,n){return D(e=>e,(e,t)=>t)(_,e,t,n)}),3);h((function(e,t,n,i){return D(e=>e,(e,t)=>t)(C(t),e,n,i)}),4);h((function(e,t,n){return D(e=>e,(e,t)=>t)(C(1),e,t,n)}),3);function L(e){return(t,...n)=>m(t)(...n,(t,...n)=>{"object"==typeof console&&(t?console.error&&console.error(t):console[e]&&n.forEach(t=>console[e](t)))})}L("dir");h((function(e,t,n){n=w(n);var i,r=m(e),o=m(t);function a(e,...t){if(e)return n(e);!1!==e&&(i=t,o(...t,s))}function s(e,t){return e?n(e):!1!==e?t?void r(a):n(null,...i):void 0}return s(null,!0)}),3);function q(e){return(t,n,i)=>e(t,i)}h((function(e,t,n){return _(e,q(m(t)),n)}),3);var F=h((function(e,t,n,i){return C(t)(e,q(m(n)),i)}),4);var z=h((function(e,t,n){return F(e,1,t,n)}),3);function U(e){return p(e)?e:function(...t){var n=t.pop(),i=!0;t.push((...e)=>{i?l(()=>n(...e)):n(...e)}),e.apply(this,t),i=!1}}h((function(e,t,n){return D(e=>!e,e=>!e)(_,e,t,n)}),3);h((function(e,t,n,i){return D(e=>!e,e=>!e)(C(t),e,n,i)}),4);h((function(e,t,n){return D(e=>!e,e=>!e)(O,e,t,n)}),3);function B(e,t,n,i){var r=new Array(t.length);e(t,(e,t,i)=>{n(e,(e,n)=>{r[t]=!!n,i(e)})},e=>{if(e)return i(e);for(var n=[],o=0;o<t.length;o++)r[o]&&n.push(t[o]);i(null,n)})}function V(e,t,n,i){var r=[];e(t,(e,t,i)=>{n(e,(n,o)=>{if(n)return i(n);o&&r.push({index:t,value:e}),i(n)})},e=>{if(e)return i(e);i(null,r.sort((e,t)=>e.index-t.index).map(e=>e.value))})}function $(e,t,n,i){return(v(t)?B:V)(e,t,m(n),i)}h((function(e,t,n){return $(_,e,t,n)}),3);h((function(e,t,n,i){return $(C(t),e,n,i)}),4);h((function(e,t,n){return $(O,e,t,n)}),3);h((function(e,t){var n=w(t),i=m(U(e));return function e(t){if(t)return n(t);!1!==t&&i(e)}()}),2);h((function(e,t,n,i){var r=m(n);return M(e,t,(e,t)=>{r(e,(n,i)=>n?t(n):t(n,{key:i,val:e}))},(e,t)=>{for(var n={},{hasOwnProperty:r}=Object.prototype,o=0;o<t.length;o++)if(t[o]){var{key:a}=t[o],{val:s}=t[o];r.call(n,a)?n[a].push(s):n[a]=[s]}return i(e,n)})}),4);L("log");h((function(e,t,n,i){i=y(i);var r={},o=m(n);return C(t)(e,(e,t,n)=>{o(e,t,(e,i)=>{if(e)return n(e);r[t]=i,n(e)})},e=>i(e,r))}),4);s(o?process.nextTick:r?setImmediate:a),h((e,t,n)=>{var i=v(t)?[]:{};e(t,(e,t,n)=>{m(e)((e,...r)=>{r.length<2&&([r]=r),i[t]=r,n(e)})},e=>n(e,i))},3);function H(e,t){var n=m(e);return A((e,t)=>{n(e[0],t)},t,1)}class W{constructor(){this.heap=[],this.pushCount=Number.MIN_SAFE_INTEGER}get length(){return this.heap.length}empty(){return this.heap=[],this}percUp(e){let t;for(;e>0&&Q(this.heap[e],this.heap[t=G(e)]);){let n=this.heap[e];this.heap[e]=this.heap[t],this.heap[t]=n,e=t}}percDown(e){let t;for(;(t=1+(e<<1))<this.heap.length&&(t+1<this.heap.length&&Q(this.heap[t+1],this.heap[t])&&(t+=1),!Q(this.heap[e],this.heap[t]));){let n=this.heap[e];this.heap[e]=this.heap[t],this.heap[t]=n,e=t}}push(e){e.pushCount=++this.pushCount,this.heap.push(e),this.percUp(this.heap.length-1)}unshift(e){return this.heap.push(e)}shift(){let[e]=this.heap;return this.heap[0]=this.heap[this.heap.length-1],this.heap.pop(),this.percDown(0),e}toArray(){return[...this]}*[Symbol.iterator](){for(let e=0;e<this.heap.length;e++)yield this.heap[e].data}remove(e){let t=0;for(let n=0;n<this.heap.length;n++)e(this.heap[n])||(this.heap[t]=this.heap[n],t++);this.heap.splice(t);for(let e=G(this.heap.length-1);e>=0;e--)this.percDown(e);return this}}function G(e){return(e+1>>1)-1}function Q(e,t){return e.priority!==t.priority?e.priority<t.priority:e.pushCount<t.pushCount}function J(e,t){var n=H(e,t);return n._tasks=new W,n.push=function(e,t=0,i=(()=>{})){if("function"!=typeof i)throw new Error("task callback must be a function");if(n.started=!0,Array.isArray(e)||(e=[e]),0===e.length&&n.idle())return l(()=>n.drain());for(var r=0,o=e.length;r<o;r++){var a={data:e[r],priority:t,callback:i};n._tasks.push(a)}l(n.process)},delete n.unshift,n}h((function(e,t){if(t=y(t),!Array.isArray(e))return t(new TypeError("First argument to race must be an array of functions"));if(!e.length)return t();for(var n=0,i=e.length;n<i;n++)m(e[n])(t)}),2);function K(e,t,n,i){const r=m(n);return $(e,t,(e,t)=>{r(e,(e,n)=>{t(e,!n)})},i)}h((function(e,t,n){return K(_,e,t,n)}),3);h((function(e,t,n,i){return K(C(t),e,n,i)}),4);h((function(e,t,n){return K(O,e,t,n)}),3);h((function(e,t,n){return D(Boolean,e=>e)(_,e,t,n)}),3);h((function(e,t,n,i){return D(Boolean,e=>e)(C(t),e,n,i)}),4);h((function(e,t,n){return D(Boolean,e=>e)(O,e,t,n)}),3);h((function(e,t,n){var i=m(t);return j(e,(e,t)=>{i(e,(n,i)=>{if(n)return t(n);t(n,{value:e,criteria:i})})},(e,t)=>{if(e)return n(e);n(null,t.sort(r).map(e=>e.value))});function r(e,t){var n=e.criteria,i=t.criteria;return n<i?-1:n>i?1:0}}),3);h((function(e,t){var n,i=null;return z(e,(e,t)=>{m(e)((e,...r)=>{if(!1===e)return t(e);r.length<2?[n]=r:n=r,i=e,t(e?null:{})})},()=>t(i,n))}));h((function(e,t,n){n=w(n);var i=m(t),r=m(e),o=[];function a(e,...t){if(e)return n(e);o=t,!1!==e&&r(s)}function s(e,t){return e?n(e):!1!==e?t?void i(a):n(null,...o):void 0}return r(s)}),3);h((function(e,t){if(t=y(t),!Array.isArray(e))return t(new Error("First argument to waterfall must be an array of functions"));if(!e.length)return t();var n=0;function i(t){m(e[n++])(...t,w(r))}function r(r,...o){if(!1!==r)return r||n===e.length?t(r,...o):void i(o)}i([])}))},function(e,t,n){"use strict";var i=n(20),r=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=d;var o=Object.create(n(15));o.inherits=n(16);var a=n(34),s=n(37);o.inherits(d,a);for(var l=r(s.prototype),c=0;c<l.length;c++){var u=l[c];d.prototype[u]||(d.prototype[u]=s.prototype[u])}function d(e){if(!(this instanceof d))return new d(e);a.call(this,e),s.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",p)}function p(){this.allowHalfOpen||this._writableState.ended||i.nextTick(m,this)}function m(e){e.end()}Object.defineProperty(d.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(d.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),d.prototype._destroy=function(e,t){this.push(null),this.end(),i.nextTick(t,e)}},function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}}(),e.exports=n(66)},function(e,t,n){"use strict";e.exports=n(71)},function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(0));t.default=e=>r.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",width:"1em",height:"1em"},e),r.default.createElement("path",{d:"M3 9v6h4l5 5V4L7 9H3zm13.5 3A4.5 4.5 0 0 0 14 7.97v8.05c1.48-.73 2.5-2.25 2.5-4.02zM14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77z"}),r.default.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}))},function(e,t,n){(t=e.exports=n(34)).Stream=t,t.Readable=t,t.Writable=n(37),t.Duplex=n(9),t.Transform=n(39),t.PassThrough=n(83)},function(e,t){var n,i,r=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{i="function"==typeof clearTimeout?clearTimeout:a}catch(e){i=a}}();var l,c=[],u=!1,d=-1;function p(){u&&l&&(u=!1,l.length?c=l.concat(c):d=-1,c.length&&m())}function m(){if(!u){var e=s(p);u=!0;for(var t=c.length;t;){for(l=c,c=[];++d<t;)l&&l[d].run();d=-1,t=c.length}l=null,u=!1,function(e){if(i===clearTimeout)return clearTimeout(e);if((i===a||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(e);try{i(e)}catch(t){try{return i.call(null,e)}catch(t){return i.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function f(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new h(e,t)),1!==c.length||u||s(m)},h.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=f,r.addListener=f,r.once=f,r.off=f,r.removeListener=f,r.removeAllListeners=f,r.emit=f,r.prependListener=f,r.prependOnceListener=f,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},function(e,t,n){(function(e){function n(e){return Object.prototype.toString.call(e)}t.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===n(e)},t.isBoolean=function(e){return"boolean"==typeof e},t.isNull=function(e){return null===e},t.isNullOrUndefined=function(e){return null==e},t.isNumber=function(e){return"number"==typeof e},t.isString=function(e){return"string"==typeof e},t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=function(e){return void 0===e},t.isRegExp=function(e){return"[object RegExp]"===n(e)},t.isObject=function(e){return"object"==typeof e&&null!==e},t.isDate=function(e){return"[object Date]"===n(e)},t.isError=function(e){return"[object Error]"===n(e)||e instanceof Error},t.isFunction=function(e){return"function"==typeof e},t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=e.isBuffer}).call(this,n(19).Buffer)},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(0));t.default=e=>r.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",width:"1em",height:"1em"},e),r.default.createElement("path",{d:"M16.5 12A4.5 4.5 0 0 0 14 7.97v2.21l2.45 2.45c.03-.2.05-.41.05-.63zm2.5 0c0 .94-.2 1.82-.54 2.64l1.51 1.51A8.796 8.796 0 0 0 21 12c0-4.28-2.99-7.86-7-8.77v2.06c2.89.86 5 3.54 5 6.71zM4.27 3L3 4.27 7.73 9H3v6h4l5 5v-6.73l4.25 4.25c-.67.52-1.42.93-2.25 1.18v2.06a8.99 8.99 0 0 0 3.69-1.81L19.73 21 21 19.73l-9-9L4.27 3zM12 4L9.91 6.09 12 8.18V4z"}),r.default.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}))},function(e,t,n){e.exports=n(69)()},function(e,t,n){"use strict";(function(e){
/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <http://feross.org>
* @license MIT
*/
var i=n(73),r=n(74),o=n(33);function a(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()<t)throw new RangeError("Invalid typed array length");return l.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=l.prototype:(null===e&&(e=new l(t)),e.length=t),e}function l(e,t,n){if(!(l.TYPED_ARRAY_SUPPORT||this instanceof l))return new l(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return d(this,e)}return c(this,e,t,n)}function c(e,t,n,i){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,i){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(i||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===i?new Uint8Array(t):void 0===i?new Uint8Array(t,n):new Uint8Array(t,n,i);l.TYPED_ARRAY_SUPPORT?(e=t).__proto__=l.prototype:e=p(e,t);return e}(e,t,n,i):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!l.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var i=0|h(t,n),r=(e=s(e,i)).write(t,n);r!==i&&(e=e.slice(0,r));return e}(e,t,n):function(e,t){if(l.isBuffer(t)){var n=0|m(t.length);return 0===(e=s(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(i=t.length)!=i?s(e,0):p(e,t);if("Buffer"===t.type&&o(t.data))return p(e,t.data)}var i;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function d(e,t){if(u(t),e=s(e,t<0?0:0|m(t)),!l.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function p(e,t){var n=t.length<0?0:0|m(t.length);e=s(e,n);for(var i=0;i<n;i+=1)e[i]=255&t[i];return e}function m(e){if(e>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function h(e,t){if(l.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return z(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return U(e).length;default:if(i)return z(e).length;t=(""+t).toLowerCase(),i=!0}}function f(e,t,n){var i=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return O(this,t,n);case"utf8":case"utf-8":return T(this,t,n);case"ascii":return _(this,t,n);case"latin1":case"binary":return j(this,t,n);case"base64":return E(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,t,n);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}function g(e,t,n){var i=e[t];e[t]=e[n],e[n]=i}function v(e,t,n,i,r){if(0===e.length)return-1;if("string"==typeof n?(i=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=r?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(r)return-1;n=e.length-1}else if(n<0){if(!r)return-1;n=0}if("string"==typeof t&&(t=l.from(t,i)),l.isBuffer(t))return 0===t.length?-1:b(e,t,n,i,r);if("number"==typeof t)return t&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):b(e,[t],n,i,r);throw new TypeError("val must be string, number or Buffer")}function b(e,t,n,i,r){var o,a=1,s=e.length,l=t.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(r){var u=-1;for(o=n;o<s;o++)if(c(e,o)===c(t,-1===u?0:o-u)){if(-1===u&&(u=o),o-u+1===l)return u*a}else-1!==u&&(o-=o-u),u=-1}else for(n+l>s&&(n=s-l),o=n;o>=0;o--){for(var d=!0,p=0;p<l;p++)if(c(e,o+p)!==c(t,p)){d=!1;break}if(d)return o}return-1}function y(e,t,n,i){n=Number(n)||0;var r=e.length-n;i?(i=Number(i))>r&&(i=r):i=r;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");i>o/2&&(i=o/2);for(var a=0;a<i;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[n+a]=s}return a}function k(e,t,n,i){return B(z(t,e.length-n),e,n,i)}function w(e,t,n,i){return B(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,i)}function S(e,t,n,i){return w(e,t,n,i)}function C(e,t,n,i){return B(U(t),e,n,i)}function x(e,t,n,i){return B(function(e,t){for(var n,i,r,o=[],a=0;a<e.length&&!((t-=2)<0);++a)n=e.charCodeAt(a),i=n>>8,r=n%256,o.push(r),o.push(i);return o}(t,e.length-n),e,n,i)}function E(e,t,n){return 0===t&&n===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,n))}function T(e,t,n){n=Math.min(e.length,n);for(var i=[],r=t;r<n;){var o,a,s,l,c=e[r],u=null,d=c>239?4:c>223?3:c>191?2:1;if(r+d<=n)switch(d){case 1:c<128&&(u=c);break;case 2:128==(192&(o=e[r+1]))&&(l=(31&c)<<6|63&o)>127&&(u=l);break;case 3:o=e[r+1],a=e[r+2],128==(192&o)&&128==(192&a)&&(l=(15&c)<<12|(63&o)<<6|63&a)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:o=e[r+1],a=e[r+2],s=e[r+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(l=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(u=l)}null===u?(u=65533,d=1):u>65535&&(u-=65536,i.push(u>>>10&1023|55296),u=56320|1023&u),i.push(u),r+=d}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var n="",i=0;for(;i<t;)n+=String.fromCharCode.apply(String,e.slice(i,i+=4096));return n}(i)}t.Buffer=l,t.SlowBuffer=function(e){+e!=e&&(e=0);return l.alloc(+e)},t.INSPECT_MAX_BYTES=50,l.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=a(),l.poolSize=8192,l._augment=function(e){return e.__proto__=l.prototype,e},l.from=function(e,t,n){return c(null,e,t,n)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.alloc=function(e,t,n){return function(e,t,n,i){return u(t),t<=0?s(e,t):void 0!==n?"string"==typeof i?s(e,t).fill(n,i):s(e,t).fill(n):s(e,t)}(null,e,t,n)},l.allocUnsafe=function(e){return d(null,e)},l.allocUnsafeSlow=function(e){return d(null,e)},l.isBuffer=function(e){return!(null==e||!e._isBuffer)},l.compare=function(e,t){if(!l.isBuffer(e)||!l.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,i=t.length,r=0,o=Math.min(n,i);r<o;++r)if(e[r]!==t[r]){n=e[r],i=t[r];break}return n<i?-1:i<n?1:0},l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(e,t){if(!o(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var i=l.allocUnsafe(t),r=0;for(n=0;n<e.length;++n){var a=e[n];if(!l.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(i,r),r+=a.length}return i},l.byteLength=h,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)g(this,t,t+1);return this},l.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)g(this,t,t+3),g(this,t+1,t+2);return this},l.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},l.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?T(this,0,e):f.apply(this,arguments)},l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},l.prototype.compare=function(e,t,n,i,r){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===i&&(i=0),void 0===r&&(r=this.length),t<0||n>e.length||i<0||r>this.length)throw new RangeError("out of range index");if(i>=r&&t>=n)return 0;if(i>=r)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(r>>>=0)-(i>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(o,a),c=this.slice(i,r),u=e.slice(t,n),d=0;d<s;++d)if(c[d]!==u[d]){o=c[d],a=u[d];break}return o<a?-1:a<o?1:0},l.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},l.prototype.indexOf=function(e,t,n){return v(this,e,t,n,!0)},l.prototype.lastIndexOf=function(e,t,n){return v(this,e,t,n,!1)},l.prototype.write=function(e,t,n,i){if(void 0===t)i="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)i=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===i&&(i="utf8")):(i=n,n=void 0)}var r=this.length-t;if((void 0===n||n>r)&&(n=r),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var o=!1;;)switch(i){case"hex":return y(this,e,t,n);case"utf8":case"utf-8":return k(this,e,t,n);case"ascii":return w(this,e,t,n);case"latin1":case"binary":return S(this,e,t,n);case"base64":return C(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function _(e,t,n){var i="";n=Math.min(e.length,n);for(var r=t;r<n;++r)i+=String.fromCharCode(127&e[r]);return i}function j(e,t,n){var i="";n=Math.min(e.length,n);for(var r=t;r<n;++r)i+=String.fromCharCode(e[r]);return i}function O(e,t,n){var i=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>i)&&(n=i);for(var r="",o=t;o<n;++o)r+=F(e[o]);return r}function R(e,t,n){for(var i=e.slice(t,n),r="",o=0;o<i.length;o+=2)r+=String.fromCharCode(i[o]+256*i[o+1]);return r}function P(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function I(e,t,n,i,r,o){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>r||t<o)throw new RangeError('"value" argument is out of bounds');if(n+i>e.length)throw new RangeError("Index out of range")}function A(e,t,n,i){t<0&&(t=65535+t+1);for(var r=0,o=Math.min(e.length-n,2);r<o;++r)e[n+r]=(t&255<<8*(i?r:1-r))>>>8*(i?r:1-r)}function M(e,t,n,i){t<0&&(t=4294967295+t+1);for(var r=0,o=Math.min(e.length-n,4);r<o;++r)e[n+r]=t>>>8*(i?r:3-r)&255}function N(e,t,n,i,r,o){if(n+i>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function D(e,t,n,i,o){return o||N(e,0,n,4),r.write(e,t,n,i,23,4),n+4}function L(e,t,n,i,o){return o||N(e,0,n,8),r.write(e,t,n,i,52,8),n+8}l.prototype.slice=function(e,t){var n,i=this.length;if((e=~~e)<0?(e+=i)<0&&(e=0):e>i&&(e=i),(t=void 0===t?i:~~t)<0?(t+=i)<0&&(t=0):t>i&&(t=i),t<e&&(t=e),l.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=l.prototype;else{var r=t-e;n=new l(r,void 0);for(var o=0;o<r;++o)n[o]=this[o+e]}return n},l.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var i=this[e],r=1,o=0;++o<t&&(r*=256);)i+=this[e+o]*r;return i},l.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var i=this[e+--t],r=1;t>0&&(r*=256);)i+=this[e+--t]*r;return i},l.prototype.readUInt8=function(e,t){return t||P(e,1,this.length),this[e]},l.prototype.readUInt16LE=function(e,t){return t||P(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUInt16BE=function(e,t){return t||P(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUInt32LE=function(e,t){return t||P(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUInt32BE=function(e,t){return t||P(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var i=this[e],r=1,o=0;++o<t&&(r*=256);)i+=this[e+o]*r;return i>=(r*=128)&&(i-=Math.pow(2,8*t)),i},l.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var i=t,r=1,o=this[e+--i];i>0&&(r*=256);)o+=this[e+--i]*r;return o>=(r*=128)&&(o-=Math.pow(2,8*t)),o},l.prototype.readInt8=function(e,t){return t||P(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){t||P(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){t||P(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return t||P(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return t||P(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return t||P(e,4,this.length),r.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return t||P(e,4,this.length),r.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return t||P(e,8,this.length),r.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return t||P(e,8,this.length),r.read(this,e,!1,52,8)},l.prototype.writeUIntLE=function(e,t,n,i){(e=+e,t|=0,n|=0,i)||I(this,e,t,n,Math.pow(2,8*n)-1,0);var r=1,o=0;for(this[t]=255&e;++o<n&&(r*=256);)this[t+o]=e/r&255;return t+n},l.prototype.writeUIntBE=function(e,t,n,i){(e=+e,t|=0,n|=0,i)||I(this,e,t,n,Math.pow(2,8*n)-1,0);var r=n-1,o=1;for(this[t+r]=255&e;--r>=0&&(o*=256);)this[t+r]=e/o&255;return t+n},l.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,1,255,0),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):A(this,e,t,!0),t+2},l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):A(this,e,t,!1),t+2},l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):M(this,e,t,!0),t+4},l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):M(this,e,t,!1),t+4},l.prototype.writeIntLE=function(e,t,n,i){if(e=+e,t|=0,!i){var r=Math.pow(2,8*n-1);I(this,e,t,n,r-1,-r)}var o=0,a=1,s=0;for(this[t]=255&e;++o<n&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},l.prototype.writeIntBE=function(e,t,n,i){if(e=+e,t|=0,!i){var r=Math.pow(2,8*n-1);I(this,e,t,n,r-1,-r)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,1,127,-128),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):A(this,e,t,!0),t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):A(this,e,t,!1),t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):M(this,e,t,!0),t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):M(this,e,t,!1),t+4},l.prototype.writeFloatLE=function(e,t,n){return D(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return D(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return L(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return L(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,i){if(n||(n=0),i||0===i||(i=this.length),t>=e.length&&(t=e.length),t||(t=0),i>0&&i<n&&(i=n),i===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-t<i-n&&(i=e.length-t+n);var r,o=i-n;if(this===e&&n<t&&t<i)for(r=o-1;r>=0;--r)e[r+t]=this[r+n];else if(o<1e3||!l.TYPED_ARRAY_SUPPORT)for(r=0;r<o;++r)e[r+t]=this[r+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+o),t);return o},l.prototype.fill=function(e,t,n,i){if("string"==typeof e){if("string"==typeof t?(i=t,t=0,n=this.length):"string"==typeof n&&(i=n,n=this.length),1===e.length){var r=e.charCodeAt(0);r<256&&(e=r)}if(void 0!==i&&"string"!=typeof i)throw new TypeError("encoding must be a string");if("string"==typeof i&&!l.isEncoding(i))throw new TypeError("Unknown encoding: "+i)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o<n;++o)this[o]=e;else{var a=l.isBuffer(e)?e:z(new l(e,i).toString()),s=a.length;for(o=0;o<n-t;++o)this[o+t]=a[o%s]}return this};var q=/[^+\/0-9A-Za-z-_]/g;function F(e){return e<16?"0"+e.toString(16):e.toString(16)}function z(e,t){var n;t=t||1/0;for(var i=e.length,r=null,o=[],a=0;a<i;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!r){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===i){(t-=3)>-1&&o.push(239,191,189);continue}r=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),r=n;continue}n=65536+(r-55296<<10|n-56320)}else r&&(t-=3)>-1&&o.push(239,191,189);if(r=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function U(e){return i.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(q,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function B(e,t,n,i){for(var r=0;r<i&&!(r+n>=t.length||r>=e.length);++r)t[r+n]=e[r];return r}}).call(this,n(7))},function(e,t,n){"use strict";(function(t){void 0===t||!t.version||0===t.version.indexOf("v0.")||0===t.version.indexOf("v1.")&&0!==t.version.indexOf("v1.8.")?e.exports={nextTick:function(e,n,i,r){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var o,a,s=arguments.length;switch(s){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick((function(){e.call(null,n)}));case 3:return t.nextTick((function(){e.call(null,n,i)}));case 4:return t.nextTick((function(){e.call(null,n,i,r)}));default:for(o=new Array(s-1),a=0;a<o.length;)o[a++]=arguments[a];return t.nextTick((function(){e.apply(null,o)}))}}}:e.exports=t}).call(this,n(14))},function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(0));t.default=e=>r.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",width:"1em",height:"1em"},e),r.default.createElement("path",{d:"M12 14c1.66 0 2.99-1.34 2.99-3L15 5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3zm5.3-3c0 3-2.54 5.1-5.3 5.1S6.7 14 6.7 11H5c0 3.41 2.72 6.23 6 6.72V21h2v-3.28c3.28-.48 6-3.3 6-6.72h-1.7z"}),r.default.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}))},function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(0));t.default=e=>r.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",width:"1em",height:"1em"},e),r.default.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),r.default.createElement("path",{d:"M17 10.5V7c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h12c.55 0 1-.45 1-1v-3.5l4 4v-11l-4 4z"}))},function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(0));t.default=e=>r.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",width:"1em",height:"1em"},e),r.default.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),r.default.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"}))},function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(0));t.default=e=>r.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",width:"1em",height:"1em"},e),r.default.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),r.default.createElement("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"}))},function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(0));t.default=e=>r.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",width:"1em",height:"1em"},e),r.default.createElement("path",{d:"M0 0h24v24H0zm0 0h24v24H0z",fill:"none"}),r.default.createElement("path",{d:"M21 6.5l-4 4V7c0-.55-.45-1-1-1H9.82L21 17.18V6.5zM3.27 2L2 3.27 4.73 6H4c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h12c.21 0 .39-.08.54-.18L19.73 21 21 19.73 3.27 2z"}))},function(e,t,n){var i=n(19),r=i.Buffer;function o(e,t){for(var n in e)t[n]=e[n]}function a(e,t,n){return r(e,t,n)}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?e.exports=i:(o(i,t),t.Buffer=a),o(r,a),a.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return r(e,t,n)},a.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var i=r(e);return void 0!==t?"string"==typeof n?i.fill(t,n):i.fill(t):i.fill(0),i},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i.SlowBuffer(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canUseDOM=void 0;var i,r=n(89);var o=((i=r)&&i.__esModule?i:{default:i}).default,a=o.canUseDOM?window.HTMLElement:{};t.canUseDOM=o.canUseDOM;t.default=a},function(e,t,n){"use strict";var i=n(11),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return i.isMemo(e)?a:s[e.$$typeof]||r}s[i.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[i.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,m=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,i){if("string"!=typeof n){if(h){var r=m(n);r&&r!==h&&e(t,r,i)}var a=u(n);d&&(a=a.concat(d(n)));for(var s=l(t),f=l(n),g=0;g<a.length;++g){var v=a[g];if(!(o[v]||i&&i[v]||f&&f[v]||s&&s[v])){var b=p(n,v);try{c(t,v,b)}catch(e){}}}}return t}},function(e,t,n){"use strict";(function(e,i){var r,o=n(43);r="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:i;var a=Object(o.a)(r);t.a=a}).call(this,n(7),n(72)(e))},function(e,t,n){e.exports=function e(t){"use strict";var n=/^\0+/g,i=/[\0\r\f]/g,r=/: */g,o=/zoo|gra/,a=/([,: ])(transform)/g,s=/,+\s*(?![^(]*[)])/g,l=/ +\s*(?![^(]*[)])/g,c=/ *[\0] */g,u=/,\r+?/g,d=/([\t\r\n ])*\f?&/g,p=/:global\(((?:[^\(\)\[\]]*|\[.*\]|\([^\(\)]*\))*)\)/g,m=/\W+/g,h=/@(k\w+)\s*(\S*)\s*/,f=/::(place)/g,g=/:(read-only)/g,v=/\s+(?=[{\];=:>])/g,b=/([[}=:>])\s+/g,y=/(\{[^{]+?);(?=\})/g,k=/\s{2,}/g,w=/([^\(])(:+) */g,S=/[svh]\w+-[tblr]{2}/,C=/\(\s*(.*)\s*\)/g,x=/([\s\S]*?);/g,E=/-self|flex-/g,T=/[^]*?(:[rp][el]a[\w-]+)[^]*/,_=/stretch|:\s*\w+\-(?:conte|avail)/,j=/([^-])(image-set\()/,O="-webkit-",R="-moz-",P="-ms-",I=59,A=125,M=123,N=40,D=41,L=10,q=13,F=32,z=45,U=42,B=44,V=58,$=47,H=1,W=1,G=0,Q=1,J=1,K=1,Y=0,X=0,Z=0,ee=[],te=[],ne=0,ie=null,re=0,oe=1,ae="",se="",le="";function ce(e,t,r,o,a){for(var s,l,u=0,d=0,p=0,m=0,v=0,b=0,y=0,k=0,S=0,x=0,E=0,T=0,_=0,j=0,R=0,P=0,Y=0,te=0,ie=0,de=r.length,ve=de-1,be="",ye="",ke="",we="",Se="",Ce="";R<de;){if(y=r.charCodeAt(R),R===ve&&d+m+p+u!==0&&(0!==d&&(y=d===$?L:$),m=p=u=0,de++,ve++),d+m+p+u===0){if(R===ve&&(P>0&&(ye=ye.replace(i,"")),ye.trim().length>0)){switch(y){case F:case 9:case I:case q:case L:break;default:ye+=r.charAt(R)}y=I}if(1===Y)switch(y){case M:case A:case I:case 34:case 39:case N:case D:case B:Y=0;case 9:case q:case L:case F:break;default:for(Y=0,ie=R,v=y,R--,y=I;ie<de;)switch(r.charCodeAt(ie++)){case L:case q:case I:++R,y=v,ie=de;break;case V:P>0&&(++R,y=v);case M:ie=de}}switch(y){case M:for(v=(ye=ye.trim()).charCodeAt(0),E=1,ie=++R;R<de;){switch(y=r.charCodeAt(R)){case M:E++;break;case A:E--;break;case $:switch(b=r.charCodeAt(R+1)){case U:case $:R=ge(b,R,ve,r)}break;case 91:y++;case N:y++;case 34:case 39:for(;R++<ve&&r.charCodeAt(R)!==y;);}if(0===E)break;R++}switch(ke=r.substring(ie,R),0===v&&(v=(ye=ye.replace(n,"").trim()).charCodeAt(0)),v){case 64:switch(P>0&&(ye=ye.replace(i,"")),b=ye.charCodeAt(1)){case 100:case 109:case 115:case z:s=t;break;default:s=ee}if(ie=(ke=ce(t,s,ke,b,a+1)).length,Z>0&&0===ie&&(ie=ye.length),ne>0&&(l=fe(3,ke,s=ue(ee,ye,te),t,W,H,ie,b,a,o),ye=s.join(""),void 0!==l&&0===(ie=(ke=l.trim()).length)&&(b=0,ke="")),ie>0)switch(b){case 115:ye=ye.replace(C,he);case 100:case 109:case z:ke=ye+"{"+ke+"}";break;case 107:ke=(ye=ye.replace(h,"$1 $2"+(oe>0?ae:"")))+"{"+ke+"}",ke=1===J||2===J&&me("@"+ke,3)?"@"+O+ke+"@"+ke:"@"+ke;break;default:ke=ye+ke,112===o&&(we+=ke,ke="")}else ke="";break;default:ke=ce(t,ue(t,ye,te),ke,o,a+1)}Se+=ke,T=0,Y=0,j=0,P=0,te=0,_=0,ye="",ke="",y=r.charCodeAt(++R);break;case A:case I:if((ie=(ye=(P>0?ye.replace(i,""):ye).trim()).length)>1)switch(0===j&&((v=ye.charCodeAt(0))===z||v>96&&v<123)&&(ie=(ye=ye.replace(" ",":")).length),ne>0&&void 0!==(l=fe(1,ye,t,e,W,H,we.length,o,a,o))&&0===(ie=(ye=l.trim()).length)&&(ye="\0\0"),v=ye.charCodeAt(0),b=ye.charCodeAt(1),v){case 0:break;case 64:if(105===b||99===b){Ce+=ye+r.charAt(R);break}default:if(ye.charCodeAt(ie-1)===V)break;we+=pe(ye,v,b,ye.charCodeAt(2))}T=0,Y=0,j=0,P=0,te=0,ye="",y=r.charCodeAt(++R)}}switch(y){case q:case L:if(d+m+p+u+X===0)switch(x){case D:case 39:case 34:case 64:case 126:case 62:case U:case 43:case $:case z:case V:case B:case I:case M:case A:break;default:j>0&&(Y=1)}d===$?d=0:Q+T===0&&107!==o&&ye.length>0&&(P=1,ye+="\0"),ne*re>0&&fe(0,ye,t,e,W,H,we.length,o,a,o),H=1,W++;break;case I:case A:if(d+m+p+u===0){H++;break}default:switch(H++,be=r.charAt(R),y){case 9:case F:if(m+u+d===0)switch(k){case B:case V:case 9:case F:be="";break;default:y!==F&&(be=" ")}break;case 0:be="\\0";break;case 12:be="\\f";break;case 11:be="\\v";break;case 38:m+d+u===0&&Q>0&&(te=1,P=1,be="\f"+be);break;case 108:if(m+d+u+G===0&&j>0)switch(R-j){case 2:112===k&&r.charCodeAt(R-3)===V&&(G=k);case 8:111===S&&(G=S)}break;case V:m+d+u===0&&(j=R);break;case B:d+p+m+u===0&&(P=1,be+="\r");break;case 34:case 39:0===d&&(m=m===y?0:0===m?y:m);break;case 91:m+d+p===0&&u++;break;case 93:m+d+p===0&&u--;break;case D:m+d+u===0&&p--;break;case N:if(m+d+u===0){if(0===T)switch(2*k+3*S){case 533:break;default:E=0,T=1}p++}break;case 64:d+p+m+u+j+_===0&&(_=1);break;case U:case $:if(m+u+p>0)break;switch(d){case 0:switch(2*y+3*r.charCodeAt(R+1)){case 235:d=$;break;case 220:ie=R,d=U}break;case U:y===$&&k===U&&ie+2!==R&&(33===r.charCodeAt(ie+2)&&(we+=r.substring(ie,R+1)),be="",d=0)}}if(0===d){if(Q+m+u+_===0&&107!==o&&y!==I)switch(y){case B:case 126:case 62:case 43:case D:case N:if(0===T){switch(k){case 9:case F:case L:case q:be+="\0";break;default:be="\0"+be+(y===B?"":"\0")}P=1}else switch(y){case N:j+7===R&&108===k&&(j=0),T=++E;break;case D:0==(T=--E)&&(P=1,be+="\0")}break;case 9:case F:switch(k){case 0:case M:case A:case I:case B:case 12:case 9:case F:case L:case q:break;default:0===T&&(P=1,be+="\0")}}ye+=be,y!==F&&9!==y&&(x=y)}}S=k,k=y,R++}if(ie=we.length,Z>0&&0===ie&&0===Se.length&&0===t[0].length==0&&(109!==o||1===t.length&&(Q>0?se:le)===t[0])&&(ie=t.join(",").length+2),ie>0){if(s=0===Q&&107!==o?function(e){for(var t,n,r=0,o=e.length,a=Array(o);r<o;++r){for(var s=e[r].split(c),l="",u=0,d=0,p=0,m=0,h=s.length;u<h;++u)if(!(0===(d=(n=s[u]).length)&&h>1)){if(p=l.charCodeAt(l.length-1),m=n.charCodeAt(0),t="",0!==u)switch(p){case U:case 126:case 62:case 43:case F:case N:break;default:t=" "}switch(m){case 38:n=t+se;case 126:case 62:case 43:case F:case D:case N:break;case 91:n=t+n+se;break;case V:switch(2*n.charCodeAt(1)+3*n.charCodeAt(2)){case 530:if(K>0){n=t+n.substring(8,d-1);break}default:(u<1||s[u-1].length<1)&&(n=t+se+n)}break;case B:t="";default:n=d>1&&n.indexOf(":")>0?t+n.replace(w,"$1"+se+"$2"):t+n+se}l+=n}a[r]=l.replace(i,"").trim()}return a}(t):t,ne>0&&void 0!==(l=fe(2,we,s,e,W,H,ie,o,a,o))&&0===(we=l).length)return Ce+we+Se;if(we=s.join(",")+"{"+we+"}",J*G!=0){switch(2!==J||me(we,2)||(G=0),G){case 111:we=we.replace(g,":-moz-$1")+we;break;case 112:we=we.replace(f,"::"+O+"input-$1")+we.replace(f,"::-moz-$1")+we.replace(f,":-ms-input-$1")+we}G=0}}return Ce+we+Se}function ue(e,t,n){var i=t.trim().split(u),r=i,o=i.length,a=e.length;switch(a){case 0:case 1:for(var s=0,l=0===a?"":e[0]+" ";s<o;++s)r[s]=de(l,r[s],n,a).trim();break;default:s=0;var c=0;for(r=[];s<o;++s)for(var d=0;d<a;++d)r[c++]=de(e[d]+" ",i[s],n,a).trim()}return r}function de(e,t,n,i){var r=t,o=r.charCodeAt(0);switch(o<33&&(o=(r=r.trim()).charCodeAt(0)),o){case 38:switch(Q+i){case 0:case 1:if(0===e.trim().length)break;default:return r.replace(d,"$1"+e.trim())}break;case V:switch(r.charCodeAt(1)){case 103:if(K>0&&Q>0)return r.replace(p,"$1").replace(d,"$1"+le);break;default:return e.trim()+r.replace(d,"$1"+e.trim())}default:if(n*Q>0&&r.indexOf("\f")>0)return r.replace(d,(e.charCodeAt(0)===V?"":"$1")+e.trim())}return e+r}function pe(e,t,n,i){var c,u=0,d=e+";",p=2*t+3*n+4*i;if(944===p)return function(e){var t=e.length,n=e.indexOf(":",9)+1,i=e.substring(0,n).trim(),r=e.substring(n,t-1).trim();switch(e.charCodeAt(9)*oe){case 0:break;case z:if(110!==e.charCodeAt(10))break;default:var o=r.split((r="",s)),a=0;for(n=0,t=o.length;a<t;n=0,++a){for(var c=o[a],u=c.split(l);c=u[n];){var d=c.charCodeAt(0);if(1===oe&&(d>64&&d<90||d>96&&d<123||95===d||d===z&&c.charCodeAt(1)!==z))switch(isNaN(parseFloat(c))+(-1!==c.indexOf("("))){case 1:switch(c){case"infinite":case"alternate":case"backwards":case"running":case"normal":case"forwards":case"both":case"none":case"linear":case"ease":case"ease-in":case"ease-out":case"ease-in-out":case"paused":case"reverse":case"alternate-reverse":case"inherit":case"initial":case"unset":case"step-start":case"step-end":break;default:c+=ae}}u[n++]=c}r+=(0===a?"":",")+u.join(" ")}}return r=i+r+";",1===J||2===J&&me(r,1)?O+r+r:r}(d);if(0===J||2===J&&!me(d,1))return d;switch(p){case 1015:return 97===d.charCodeAt(10)?O+d+d:d;case 951:return 116===d.charCodeAt(3)?O+d+d:d;case 963:return 110===d.charCodeAt(5)?O+d+d:d;case 1009:if(100!==d.charCodeAt(4))break;case 969:case 942:return O+d+d;case 978:return O+d+R+d+d;case 1019:case 983:return O+d+R+d+P+d+d;case 883:return d.charCodeAt(8)===z?O+d+d:d.indexOf("image-set(",11)>0?d.replace(j,"$1"+O+"$2")+d:d;case 932:if(d.charCodeAt(4)===z)switch(d.charCodeAt(5)){case 103:return O+"box-"+d.replace("-grow","")+O+d+P+d.replace("grow","positive")+d;case 115:return O+d+P+d.replace("shrink","negative")+d;case 98:return O+d+P+d.replace("basis","preferred-size")+d}return O+d+P+d+d;case 964:return O+d+P+"flex-"+d+d;case 1023:if(99!==d.charCodeAt(8))break;return c=d.substring(d.indexOf(":",15)).replace("flex-","").replace("space-between","justify"),O+"box-pack"+c+O+d+P+"flex-pack"+c+d;case 1005:return o.test(d)?d.replace(r,":"+O)+d.replace(r,":"+R)+d:d;case 1e3:switch(u=(c=d.substring(13).trim()).indexOf("-")+1,c.charCodeAt(0)+c.charCodeAt(u)){case 226:c=d.replace(S,"tb");break;case 232:c=d.replace(S,"tb-rl");break;case 220:c=d.replace(S,"lr");break;default:return d}return O+d+P+c+d;case 1017:if(-1===d.indexOf("sticky",9))return d;case 975:switch(u=(d=e).length-10,p=(c=(33===d.charCodeAt(u)?d.substring(0,u):d).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|c.charCodeAt(7))){case 203:if(c.charCodeAt(8)<111)break;case 115:d=d.replace(c,O+c)+";"+d;break;case 207:case 102:d=d.replace(c,O+(p>102?"inline-":"")+"box")+";"+d.replace(c,O+c)+";"+d.replace(c,P+c+"box")+";"+d}return d+";";case 938:if(d.charCodeAt(5)===z)switch(d.charCodeAt(6)){case 105:return c=d.replace("-items",""),O+d+O+"box-"+c+P+"flex-"+c+d;case 115:return O+d+P+"flex-item-"+d.replace(E,"")+d;default:return O+d+P+"flex-line-pack"+d.replace("align-content","").replace(E,"")+d}break;case 973:case 989:if(d.charCodeAt(3)!==z||122===d.charCodeAt(4))break;case 931:case 953:if(!0===_.test(e))return 115===(c=e.substring(e.indexOf(":")+1)).charCodeAt(0)?pe(e.replace("stretch","fill-available"),t,n,i).replace(":fill-available",":stretch"):d.replace(c,O+c)+d.replace(c,R+c.replace("fill-",""))+d;break;case 962:if(d=O+d+(102===d.charCodeAt(5)?P+d:"")+d,n+i===211&&105===d.charCodeAt(13)&&d.indexOf("transform",10)>0)return d.substring(0,d.indexOf(";",27)+1).replace(a,"$1"+O+"$2")+d}return d}function me(e,t){var n=e.indexOf(1===t?":":"{"),i=e.substring(0,3!==t?n:10),r=e.substring(n+1,e.length-1);return ie(2!==t?i:i.replace(T,"$1"),r,t)}function he(e,t){var n=pe(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(x," or ($1)").substring(4):"("+t+")"}function fe(e,t,n,i,r,o,a,s,l,c){for(var u,d=0,p=t;d<ne;++d)switch(u=te[d].call(be,e,p,n,i,r,o,a,s,l,c)){case void 0:case!1:case!0:case null:break;default:p=u}if(p!==t)return p}function ge(e,t,n,i){for(var r=t+1;r<n;++r)switch(i.charCodeAt(r)){case $:if(e===U&&i.charCodeAt(r-1)===U&&t+2!==r)return r+1;break;case L:if(e===$)return r+1}return r}function ve(e){for(var t in e){var n=e[t];switch(t){case"keyframe":oe=0|n;break;case"global":K=0|n;break;case"cascade":Q=0|n;break;case"compress":Y=0|n;break;case"semicolon":X=0|n;break;case"preserve":Z=0|n;break;case"prefix":ie=null,n?"function"!=typeof n?J=1:(J=2,ie=n):J=0}}return ve}function be(t,n){if(void 0!==this&&this.constructor===be)return e(t);var r=t,o=r.charCodeAt(0);o<33&&(o=(r=r.trim()).charCodeAt(0)),oe>0&&(ae=r.replace(m,91===o?"":"-")),o=1,1===Q?le=r:se=r;var a,s=[le];ne>0&&void 0!==(a=fe(-1,n,s,s,W,H,0,0,0,0))&&"string"==typeof a&&(n=a);var l=ce(ee,s,n,0,0);return ne>0&&void 0!==(a=fe(-2,l,s,s,W,H,l.length,0,0,0))&&"string"!=typeof(l=a)&&(o=0),ae="",le="",se="",G=0,W=1,H=1,Y*o==0?l:l.replace(i,"").replace(v,"").replace(b,"$1").replace(y,"$1").replace(k," ")}return be.use=function e(t){switch(t){case void 0:case null:ne=te.length=0;break;default:if("function"==typeof t)te[ne++]=t;else if("object"==typeof t)for(var n=0,i=t.length;n<i;++n)e(t[n]);else re=0|!!t}return e},be.set=ve,void 0!==t&&ve(t),be}(null)},function(e,t,n){"use strict";function i(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}t.a=function(e,t){var n;void 0===t&&(t=i);var r,o=[],a=!1;return function(){for(var i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];return a&&n===this&&t(i,o)||(r=e.apply(this,i),a=!0,n=this,o=i),r}}},function(e,t,n){"use strict";
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/var i=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function a(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach((function(e){i[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},i)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,s,l=a(e),c=1;c<arguments.length;c++){for(var u in n=Object(arguments[c]))r.call(n,u)&&(l[u]=n[u]);if(i){s=i(n);for(var d=0;d<s.length;d++)o.call(n,s[d])&&(l[s[d]]=n[s[d]])}}return l}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){"use strict";(function(t,i){var r=n(20);e.exports=y;var o,a=n(33);y.ReadableState=b;n(5).EventEmitter;var s=function(e,t){return e.listeners(t).length},l=n(35),c=n(26).Buffer,u=t.Uint8Array||function(){};var d=Object.create(n(15));d.inherits=n(16);var p=n(76),m=void 0;m=p&&p.debuglog?p.debuglog("stream"):function(){};var h,f=n(77),g=n(36);d.inherits(y,l);var v=["error","close","destroy","pause","resume"];function b(e,t){e=e||{};var i=t instanceof(o=o||n(9));this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var r=e.highWaterMark,a=e.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:i&&(a||0===a)?a:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new f,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(h||(h=n(38).StringDecoder),this.decoder=new h(e.encoding),this.encoding=e.encoding)}function y(e){if(o=o||n(9),!(this instanceof y))return new y(e);this._readableState=new b(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),l.call(this)}function k(e,t,n,i,r){var o,a=e._readableState;null===t?(a.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,C(e)}(e,a)):(r||(o=function(e,t){var n;i=t,c.isBuffer(i)||i instanceof u||"string"==typeof t||void 0===t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk"));var i;return n}(a,t)),o?e.emit("error",o):a.objectMode||t&&t.length>0?("string"==typeof t||a.objectMode||Object.getPrototypeOf(t)===c.prototype||(t=function(e){return c.from(e)}(t)),i?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):w(e,a,t,!0):a.ended?e.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!n?(t=a.decoder.write(t),a.objectMode||0!==t.length?w(e,a,t,!1):E(e,a)):w(e,a,t,!1))):i||(a.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(a)}function w(e,t,n,i){t.flowing&&0===t.length&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,i?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&C(e)),E(e,t)}Object.defineProperty(y.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),y.prototype.destroy=g.destroy,y.prototype._undestroy=g.undestroy,y.prototype._destroy=function(e,t){this.push(null),t(e)},y.prototype.push=function(e,t){var n,i=this._readableState;return i.objectMode?n=!0:"string"==typeof e&&((t=t||i.defaultEncoding)!==i.encoding&&(e=c.from(e,t),t=""),n=!0),k(this,e,t,!1,n)},y.prototype.unshift=function(e){return k(this,e,null,!0,!1)},y.prototype.isPaused=function(){return!1===this._readableState.flowing},y.prototype.setEncoding=function(e){return h||(h=n(38).StringDecoder),this._readableState.decoder=new h(e),this._readableState.encoding=e,this};function S(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=8388608?e=8388608:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function C(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(m("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?r.nextTick(x,e):x(e))}function x(e){m("emit readable"),e.emit("readable"),O(e)}function E(e,t){t.readingMore||(t.readingMore=!0,r.nextTick(T,e,t))}function T(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(m("maybeReadMore read 0"),e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}function _(e){m("readable nexttick read 0"),e.read(0)}function j(e,t){t.reading||(m("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),O(e),t.flowing&&!t.reading&&e.read(0)}function O(e){var t=e._readableState;for(m("flow",t.flowing);t.flowing&&null!==e.read(););}function R(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=function(e,t,n){var i;e<t.head.data.length?(i=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):i=e===t.head.data.length?t.shift():n?function(e,t){var n=t.head,i=1,r=n.data;e-=r.length;for(;n=n.next;){var o=n.data,a=e>o.length?o.length:e;if(a===o.length?r+=o:r+=o.slice(0,e),0===(e-=a)){a===o.length?(++i,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(a));break}++i}return t.length-=i,r}(e,t):function(e,t){var n=c.allocUnsafe(e),i=t.head,r=1;i.data.copy(n),e-=i.data.length;for(;i=i.next;){var o=i.data,a=e>o.length?o.length:e;if(o.copy(n,n.length-e,0,a),0===(e-=a)){a===o.length?(++r,i.next?t.head=i.next:t.head=t.tail=null):(t.head=i,i.data=o.slice(a));break}++r}return t.length-=r,n}(e,t);return i}(e,t.buffer,t.decoder),n);var n}function P(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,r.nextTick(I,t,e))}function I(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function A(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1}y.prototype.read=function(e){m("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return m("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?P(this):C(this),null;if(0===(e=S(e,t))&&t.ended)return 0===t.length&&P(this),null;var i,r=t.needReadable;return m("need readable",r),(0===t.length||t.length-e<t.highWaterMark)&&m("length less than watermark",r=!0),t.ended||t.reading?m("reading or ended",r=!1):r&&(m("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=S(n,t))),null===(i=e>0?R(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&P(this)),null!==i&&this.emit("data",i),i},y.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},y.prototype.pipe=function(e,t){var n=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1,m("pipe count=%d opts=%j",o.pipesCount,t);var l=(!t||!1!==t.end)&&e!==i.stdout&&e!==i.stderr?u:y;function c(t,i){m("onunpipe"),t===n&&i&&!1===i.hasUnpiped&&(i.hasUnpiped=!0,m("cleanup"),e.removeListener("close",v),e.removeListener("finish",b),e.removeListener("drain",d),e.removeListener("error",g),e.removeListener("unpipe",c),n.removeListener("end",u),n.removeListener("end",y),n.removeListener("data",f),p=!0,!o.awaitDrain||e._writableState&&!e._writableState.needDrain||d())}function u(){m("onend"),e.end()}o.endEmitted?r.nextTick(l):n.once("end",l),e.on("unpipe",c);var d=function(e){return function(){var t=e._readableState;m("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&s(e,"data")&&(t.flowing=!0,O(e))}}(n);e.on("drain",d);var p=!1;var h=!1;function f(t){m("ondata"),h=!1,!1!==e.write(t)||h||((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==A(o.pipes,e))&&!p&&(m("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,h=!0),n.pause())}function g(t){m("onerror",t),y(),e.removeListener("error",g),0===s(e,"error")&&e.emit("error",t)}function v(){e.removeListener("finish",b),y()}function b(){m("onfinish"),e.removeListener("close",v),y()}function y(){m("unpipe"),n.unpipe(e)}return n.on("data",f),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?a(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",g),e.once("close",v),e.once("finish",b),e.emit("pipe",n),o.flowing||(m("pipe resume"),n.resume()),e},y.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var i=t.pipes,r=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<r;o++)i[o].emit("unpipe",this,n);return this}var a=A(t.pipes,e);return-1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n)),this},y.prototype.on=function(e,t){var n=l.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var i=this._readableState;i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.emittedReadable=!1,i.reading?i.length&&C(this):r.nextTick(_,this))}return n},y.prototype.addListener=y.prototype.on,y.prototype.resume=function(){var e=this._readableState;return e.flowing||(m("resume"),e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,r.nextTick(j,e,t))}(this,e)),this},y.prototype.pause=function(){return m("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(m("pause"),this._readableState.flowing=!1,this.emit("pause")),this},y.prototype.wrap=function(e){var t=this,n=this._readableState,i=!1;for(var r in e.on("end",(function(){if(m("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(r){(m("wrapped data"),n.decoder&&(r=n.decoder.write(r)),n.objectMode&&null==r)||(n.objectMode||r&&r.length)&&(t.push(r)||(i=!0,e.pause()))})),e)void 0===this[r]&&"function"==typeof e[r]&&(this[r]=function(t){return function(){return e[t].apply(e,arguments)}}(r));for(var o=0;o<v.length;o++)e.on(v[o],this.emit.bind(this,v[o]));return this._read=function(t){m("wrapped _read",t),i&&(i=!1,e.resume())},this},Object.defineProperty(y.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),y._fromList=R}).call(this,n(7),n(14))},function(e,t,n){e.exports=n(5).EventEmitter},function(e,t,n){"use strict";var i=n(20);function r(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var n=this,o=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return o||a?(t?t(e):!e||this._writableState&&this._writableState.errorEmitted||i.nextTick(r,this,e),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?(i.nextTick(r,n,e),n._writableState&&(n._writableState.errorEmitted=!0)):t&&t(e)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},function(e,t,n){"use strict";(function(t,i,r){var o=n(20);function a(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,n){var i=e.entry;e.entry=null;for(;i;){var r=i.callback;t.pendingcb--,r(n),i=i.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}(t,e)}}e.exports=b;var s,l=!t.browser&&["v0.10","v0.9."].indexOf(t.version.slice(0,5))>-1?i:o.nextTick;b.WritableState=v;var c=Object.create(n(15));c.inherits=n(16);var u={deprecate:n(81)},d=n(35),p=n(26).Buffer,m=r.Uint8Array||function(){};var h,f=n(36);function g(){}function v(e,t){s=s||n(9),e=e||{};var i=t instanceof s;this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var r=e.highWaterMark,c=e.writableHighWaterMark,u=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:i&&(c||0===c)?c:u,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var d=!1===e.decodeStrings;this.decodeStrings=!d,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,i=n.sync,r=n.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,i,r){--t.pendingcb,n?(o.nextTick(r,i),o.nextTick(x,e,t),e._writableState.errorEmitted=!0,e.emit("error",i)):(r(i),e._writableState.errorEmitted=!0,e.emit("error",i),x(e,t))}(e,n,i,t,r);else{var a=S(n);a||n.corked||n.bufferProcessing||!n.bufferedRequest||w(e,n),i?l(k,e,n,a,r):k(e,n,a,r)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}function b(e){if(s=s||n(9),!(h.call(b,this)||this instanceof s))return new b(e);this._writableState=new v(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),d.call(this)}function y(e,t,n,i,r,o,a){t.writelen=i,t.writecb=a,t.writing=!0,t.sync=!0,n?e._writev(r,t.onwrite):e._write(r,o,t.onwrite),t.sync=!1}function k(e,t,n,i){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,i(),x(e,t)}function w(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var i=t.bufferedRequestCount,r=new Array(i),o=t.corkedRequestsFree;o.entry=n;for(var s=0,l=!0;n;)r[s]=n,n.isBuf||(l=!1),n=n.next,s+=1;r.allBuffers=l,y(e,t,!0,t.length,r,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new a(t),t.bufferedRequestCount=0}else{for(;n;){var c=n.chunk,u=n.encoding,d=n.callback;if(y(e,t,!1,t.objectMode?1:c.length,c,u,d),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function S(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function C(e,t){e._final((function(n){t.pendingcb--,n&&e.emit("error",n),t.prefinished=!0,e.emit("prefinish"),x(e,t)}))}function x(e,t){var n=S(t);return n&&(!function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,o.nextTick(C,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),n}c.inherits(b,d),v.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(v.prototype,"buffer",{get:u.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(h=Function.prototype[Symbol.hasInstance],Object.defineProperty(b,Symbol.hasInstance,{value:function(e){return!!h.call(this,e)||this===b&&(e&&e._writableState instanceof v)}})):h=function(e){return e instanceof this},b.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},b.prototype.write=function(e,t,n){var i,r=this._writableState,a=!1,s=!r.objectMode&&(i=e,p.isBuffer(i)||i instanceof m);return s&&!p.isBuffer(e)&&(e=function(e){return p.from(e)}(e)),"function"==typeof t&&(n=t,t=null),s?t="buffer":t||(t=r.defaultEncoding),"function"!=typeof n&&(n=g),r.ended?function(e,t){var n=new Error("write after end");e.emit("error",n),o.nextTick(t,n)}(this,n):(s||function(e,t,n,i){var r=!0,a=!1;return null===n?a=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||t.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(e.emit("error",a),o.nextTick(i,a),r=!1),r}(this,r,e,n))&&(r.pendingcb++,a=function(e,t,n,i,r,o){if(!n){var a=function(e,t,n){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=p.from(t,n));return t}(t,i,r);i!==a&&(n=!0,r="buffer",i=a)}var s=t.objectMode?1:i.length;t.length+=s;var l=t.length<t.highWaterMark;l||(t.needDrain=!0);if(t.writing||t.corked){var c=t.lastBufferedRequest;t.lastBufferedRequest={chunk:i,encoding:r,isBuf:n,callback:o,next:null},c?c.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else y(e,t,!1,s,i,r,o);return l}(this,r,s,e,t,n)),a},b.prototype.cork=function(){this._writableState.corked++},b.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||w(this,e))},b.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(b.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),b.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},b.prototype._writev=null,b.prototype.end=function(e,t,n){var i=this._writableState;"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||i.finished||function(e,t,n){t.ending=!0,x(e,t),n&&(t.finished?o.nextTick(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,i,n)},Object.defineProperty(b.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),b.prototype.destroy=f.destroy,b.prototype._undestroy=f.undestroy,b.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,n(14),n(79).setImmediate,n(7))},function(e,t,n){"use strict";var i=n(82).Buffer,r=i.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(i.isEncoding===r||!r(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=l,this.end=c,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=u,this.end=d,t=3;break;default:return this.write=p,void(this.end=m)}this.lastNeed=0,this.lastTotal=0,this.lastChar=i.allocUnsafe(t)}function a(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,n=function(e,t,n){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function l(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var i=n.charCodeAt(n.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function c(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function u(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function d(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function p(e){return e.toString(this.encoding)}function m(e){return e&&e.length?this.write(e):""}t.StringDecoder=o,o.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||""},o.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},o.prototype.text=function(e,t){var n=function(e,t,n){var i=t.length-1;if(i<n)return 0;var r=a(t[i]);if(r>=0)return r>0&&(e.lastNeed=r-1),r;if(--i<n||-2===r)return 0;if((r=a(t[i]))>=0)return r>0&&(e.lastNeed=r-2),r;if(--i<n||-2===r)return 0;if((r=a(t[i]))>=0)return r>0&&(2===r?r=0:e.lastNeed=r-3),r;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var i=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,i),e.toString("utf8",t,i)},o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},function(e,t,n){"use strict";e.exports=a;var i=n(9),r=Object.create(n(15));function o(e,t){var n=this._transformState;n.transforming=!1;var i=n.writecb;if(!i)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!=t&&this.push(t),i(e);var r=this._readableState;r.reading=!1,(r.needReadable||r.length<r.highWaterMark)&&this._read(r.highWaterMark)}function a(e){if(!(this instanceof a))return new a(e);i.call(this,e),this._transformState={afterTransform:o.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",s)}function s(){var e=this;"function"==typeof this._flush?this._flush((function(t,n){l(e,t,n)})):l(this,null,null)}function l(e,t,n){if(t)return e.emit("error",t);if(null!=n&&e.push(n),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}r.inherits=n(16),r.inherits(a,i),a.prototype.push=function(e,t){return this._transformState.needTransform=!1,i.prototype.push.call(this,e,t)},a.prototype._transform=function(e,t,n){throw new Error("_transform() is not implemented")},a.prototype._write=function(e,t,n){var i=this._transformState;if(i.writecb=n,i.writechunk=e,i.writeencoding=t,!i.transforming){var r=this._readableState;(i.needTransform||r.needReadable||r.length<r.highWaterMark)&&this._read(r.highWaterMark)}},a.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},a.prototype._destroy=function(e,t){var n=this;i.prototype._destroy.call(this,e,(function(e){t(e),n.emit("close")}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return[].slice.call(e.querySelectorAll("*"),0).filter(a)};
/*!
* Adapted from jQuery UI core
*
* http://jqueryui.com
*
* Copyright 2014 jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*
* http://api.jqueryui.com/category/ui-core/
*/
var i=/input|select|textarea|button|object/;function r(e){var t=e.offsetWidth<=0&&e.offsetHeight<=0;if(t&&!e.innerHTML)return!0;var n=window.getComputedStyle(e);return t?"visible"!==n.getPropertyValue("overflow")||e.scrollWidth<=0&&e.scrollHeight<=0:"none"==n.getPropertyValue("display")}function o(e,t){var n=e.nodeName.toLowerCase();return(i.test(n)&&!e.disabled||"a"===n&&e.href||t)&&function(e){for(var t=e;t&&t!==document.body;){if(r(t))return!1;t=t.parentNode}return!0}(e)}function a(e){var t=e.getAttribute("tabindex");null===t&&(t=void 0);var n=isNaN(t);return(n||t>=0)&&o(e,!n)}e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertNodeList=l,t.setElement=function(e){var t=e;if("string"==typeof t&&a.canUseDOM){var n=document.querySelectorAll(t);l(n,t),t="length"in n?n[0]:n}return s=t||s},t.validateElement=c,t.hide=function(e){c(e)&&(e||s).setAttribute("aria-hidden","true")},t.show=function(e){c(e)&&(e||s).removeAttribute("aria-hidden")},t.documentNotReadyOrSSRTesting=function(){s=null},t.resetForTesting=function(){s=null};var i,r=n(88),o=(i=r)&&i.__esModule?i:{default:i},a=n(27);var s=null;function l(e,t){if(!e||!e.length)throw new Error("react-modal: No elements were found for selector "+t+".")}function c(e){return!(!e&&!s)||((0,o.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),!1)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=new function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.register=function(e){-1===t.openInstances.indexOf(e)&&(t.openInstances.push(e),t.emit("register"))},this.deregister=function(e){var n=t.openInstances.indexOf(e);-1!==n&&(t.openInstances.splice(n,1),t.emit("deregister"))},this.subscribe=function(e){t.subscribers.push(e)},this.emit=function(e){t.subscribers.forEach((function(n){return n(e,t.openInstances.slice())}))},this.openInstances=[],this.subscribers=[]};t.default=i,e.exports=t.default},function(e,t,n){"use strict";function i(e){var t,n=e.Symbol;return"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}n.d(t,"a",(function(){return i}))},function(e,t,n){e.exports=function(){"use strict";return function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,i,r,o,a,s,l,c,u,d){switch(n){case 1:if(0===u&&64===i.charCodeAt(0))return e(i+";"),"";break;case 2:if(0===c)return i+"/*|*/";break;case 3:switch(c){case 102:case 112:return e(r[0]+i),"";default:return i+(0===d?"/*|*/":"")}case-2:i.split("/*|*/}").forEach(t)}}}}()},function(e,t,n){"use strict";t.a={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1}},function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(0));t.default=e=>r.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",width:"1em",height:"1em"},e),r.default.createElement("path",{d:"M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"}),r.default.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}))},function(e,t,n){"use strict";var i=n(4);function r(e,t,n,r,o){var a=i.writeRtpDescription(e.kind,t);if(a+=i.writeIceParameters(e.iceGatherer.getLocalParameters()),a+=i.writeDtlsParameters(e.dtlsTransport.getLocalParameters(),"offer"===n?"actpass":o||"active"),a+="a=mid:"+e.mid+"\r\n",e.rtpSender&&e.rtpReceiver?a+="a=sendrecv\r\n":e.rtpSender?a+="a=sendonly\r\n":e.rtpReceiver?a+="a=recvonly\r\n":a+="a=inactive\r\n",e.rtpSender){var s=e.rtpSender._initialTrackId||e.rtpSender.track.id;e.rtpSender._initialTrackId=s;var l="msid:"+(r?r.id:"-")+" "+s+"\r\n";a+="a="+l,a+="a=ssrc:"+e.sendEncodingParameters[0].ssrc+" "+l,e.sendEncodingParameters[0].rtx&&(a+="a=ssrc:"+e.sendEncodingParameters[0].rtx.ssrc+" "+l,a+="a=ssrc-group:FID "+e.sendEncodingParameters[0].ssrc+" "+e.sendEncodingParameters[0].rtx.ssrc+"\r\n")}return a+="a=ssrc:"+e.sendEncodingParameters[0].ssrc+" cname:"+i.localCName+"\r\n",e.rtpSender&&e.sendEncodingParameters[0].rtx&&(a+="a=ssrc:"+e.sendEncodingParameters[0].rtx.ssrc+" cname:"+i.localCName+"\r\n"),a}function o(e,t){var n={codecs:[],headerExtensions:[],fecMechanisms:[]},i=function(e,t){e=parseInt(e,10);for(var n=0;n<t.length;n++)if(t[n].payloadType===e||t[n].preferredPayloadType===e)return t[n]},r=function(e,t,n,r){var o=i(e.parameters.apt,n),a=i(t.parameters.apt,r);return o&&a&&o.name.toLowerCase()===a.name.toLowerCase()};return e.codecs.forEach((function(i){for(var o=0;o<t.codecs.length;o++){var a=t.codecs[o];if(i.name.toLowerCase()===a.name.toLowerCase()&&i.clockRate===a.clockRate){if("rtx"===i.name.toLowerCase()&&i.parameters&&a.parameters.apt&&!r(i,a,e.codecs,t.codecs))continue;(a=JSON.parse(JSON.stringify(a))).numChannels=Math.min(i.numChannels,a.numChannels),n.codecs.push(a),a.rtcpFeedback=a.rtcpFeedback.filter((function(e){for(var t=0;t<i.rtcpFeedback.length;t++)if(i.rtcpFeedback[t].type===e.type&&i.rtcpFeedback[t].parameter===e.parameter)return!0;return!1}));break}}})),e.headerExtensions.forEach((function(e){for(var i=0;i<t.headerExtensions.length;i++){var r=t.headerExtensions[i];if(e.uri===r.uri){n.headerExtensions.push(r);break}}})),n}function a(e,t,n){return-1!=={offer:{setLocalDescription:["stable","have-local-offer"],setRemoteDescription:["stable","have-remote-offer"]},answer:{setLocalDescription:["have-remote-offer","have-local-pranswer"],setRemoteDescription:["have-local-offer","have-remote-pranswer"]}}[t][e].indexOf(n)}function s(e,t){var n=e.getRemoteCandidates().find((function(e){return t.foundation===e.foundation&&t.ip===e.ip&&t.port===e.port&&t.priority===e.priority&&t.protocol===e.protocol&&t.type===e.type}));return n||e.addRemoteCandidate(t),!n}function l(e,t){var n=new Error(t);return n.name=e,n.code={NotSupportedError:9,InvalidStateError:11,InvalidAccessError:15,TypeError:void 0,OperationError:void 0}[e],n}e.exports=function(e,t){function n(t,n){n.addTrack(t),n.dispatchEvent(new e.MediaStreamTrackEvent("addtrack",{track:t}))}function c(t,n,i,r){var o=new Event("track");o.track=n,o.receiver=i,o.transceiver={receiver:i},o.streams=r,e.setTimeout((function(){t._dispatchEvent("track",o)}))}var u=function(n){var r=this,o=document.createDocumentFragment();if(["addEventListener","removeEventListener","dispatchEvent"].forEach((function(e){r[e]=o[e].bind(o)})),this.canTrickleIceCandidates=null,this.needNegotiation=!1,this.localStreams=[],this.remoteStreams=[],this._localDescription=null,this._remoteDescription=null,this.signalingState="stable",this.iceConnectionState="new",this.connectionState="new",this.iceGatheringState="new",n=JSON.parse(JSON.stringify(n||{})),this.usingBundle="max-bundle"===n.bundlePolicy,"negotiate"===n.rtcpMuxPolicy)throw l("NotSupportedError","rtcpMuxPolicy 'negotiate' is not supported");switch(n.rtcpMuxPolicy||(n.rtcpMuxPolicy="require"),n.iceTransportPolicy){case"all":case"relay":break;default:n.iceTransportPolicy="all"}switch(n.bundlePolicy){case"balanced":case"max-compat":case"max-bundle":break;default:n.bundlePolicy="balanced"}if(n.iceServers=function(e,t){var n=!1;return(e=JSON.parse(JSON.stringify(e))).filter((function(e){if(e&&(e.urls||e.url)){var i=e.urls||e.url;e.url&&!e.urls&&console.warn("RTCIceServer.url is deprecated! Use urls instead.");var r="string"==typeof i;return r&&(i=[i]),i=i.filter((function(e){return 0===e.indexOf("turn:")&&-1!==e.indexOf("transport=udp")&&-1===e.indexOf("turn:[")&&!n?(n=!0,!0):0===e.indexOf("stun:")&&t>=14393&&-1===e.indexOf("?transport=udp")})),delete e.url,e.urls=r?i[0]:i,!!i.length}}))}(n.iceServers||[],t),this._iceGatherers=[],n.iceCandidatePoolSize)for(var a=n.iceCandidatePoolSize;a>0;a--)this._iceGatherers.push(new e.RTCIceGatherer({iceServers:n.iceServers,gatherPolicy:n.iceTransportPolicy}));else n.iceCandidatePoolSize=0;this._config=n,this.transceivers=[],this._sdpSessionId=i.generateSessionId(),this._sdpSessionVersion=0,this._dtlsRole=void 0,this._isClosed=!1};Object.defineProperty(u.prototype,"localDescription",{configurable:!0,get:function(){return this._localDescription}}),Object.defineProperty(u.prototype,"remoteDescription",{configurable:!0,get:function(){return this._remoteDescription}}),u.prototype.onicecandidate=null,u.prototype.onaddstream=null,u.prototype.ontrack=null,u.prototype.onremovestream=null,u.prototype.onsignalingstatechange=null,u.prototype.oniceconnectionstatechange=null,u.prototype.onconnectionstatechange=null,u.prototype.onicegatheringstatechange=null,u.prototype.onnegotiationneeded=null,u.prototype.ondatachannel=null,u.prototype._dispatchEvent=function(e,t){this._isClosed||(this.dispatchEvent(t),"function"==typeof this["on"+e]&&this["on"+e](t))},u.prototype._emitGatheringStateChange=function(){var e=new Event("icegatheringstatechange");this._dispatchEvent("icegatheringstatechange",e)},u.prototype.getConfiguration=function(){return this._config},u.prototype.getLocalStreams=function(){return this.localStreams},u.prototype.getRemoteStreams=function(){return this.remoteStreams},u.prototype._createTransceiver=function(e,t){var n=this.transceivers.length>0,i={track:null,iceGatherer:null,iceTransport:null,dtlsTransport:null,localCapabilities:null,remoteCapabilities:null,rtpSender:null,rtpReceiver:null,kind:e,mid:null,sendEncodingParameters:null,recvEncodingParameters:null,stream:null,associatedRemoteMediaStreams:[],wantReceive:!0};if(this.usingBundle&&n)i.iceTransport=this.transceivers[0].iceTransport,i.dtlsTransport=this.transceivers[0].dtlsTransport;else{var r=this._createIceAndDtlsTransports();i.iceTransport=r.iceTransport,i.dtlsTransport=r.dtlsTransport}return t||this.transceivers.push(i),i},u.prototype.addTrack=function(t,n){if(this._isClosed)throw l("InvalidStateError","Attempted to call addTrack on a closed peerconnection.");var i;if(this.transceivers.find((function(e){return e.track===t})))throw l("InvalidAccessError","Track already exists.");for(var r=0;r<this.transceivers.length;r++)this.transceivers[r].track||this.transceivers[r].kind!==t.kind||(i=this.transceivers[r]);return i||(i=this._createTransceiver(t.kind)),this._maybeFireNegotiationNeeded(),-1===this.localStreams.indexOf(n)&&this.localStreams.push(n),i.track=t,i.stream=n,i.rtpSender=new e.RTCRtpSender(t,i.dtlsTransport),i.rtpSender},u.prototype.addStream=function(e){var n=this;if(t>=15025)e.getTracks().forEach((function(t){n.addTrack(t,e)}));else{var i=e.clone();e.getTracks().forEach((function(e,t){var n=i.getTracks()[t];e.addEventListener("enabled",(function(e){n.enabled=e.enabled}))})),i.getTracks().forEach((function(e){n.addTrack(e,i)}))}},u.prototype.removeTrack=function(t){if(this._isClosed)throw l("InvalidStateError","Attempted to call removeTrack on a closed peerconnection.");if(!(t instanceof e.RTCRtpSender))throw new TypeError("Argument 1 of RTCPeerConnection.removeTrack does not implement interface RTCRtpSender.");var n=this.transceivers.find((function(e){return e.rtpSender===t}));if(!n)throw l("InvalidAccessError","Sender was not created by this connection.");var i=n.stream;n.rtpSender.stop(),n.rtpSender=null,n.track=null,n.stream=null,-1===this.transceivers.map((function(e){return e.stream})).indexOf(i)&&this.localStreams.indexOf(i)>-1&&this.localStreams.splice(this.localStreams.indexOf(i),1),this._maybeFireNegotiationNeeded()},u.prototype.removeStream=function(e){var t=this;e.getTracks().forEach((function(e){var n=t.getSenders().find((function(t){return t.track===e}));n&&t.removeTrack(n)}))},u.prototype.getSenders=function(){return this.transceivers.filter((function(e){return!!e.rtpSender})).map((function(e){return e.rtpSender}))},u.prototype.getReceivers=function(){return this.transceivers.filter((function(e){return!!e.rtpReceiver})).map((function(e){return e.rtpReceiver}))},u.prototype._createIceGatherer=function(t,n){var i=this;if(n&&t>0)return this.transceivers[0].iceGatherer;if(this._iceGatherers.length)return this._iceGatherers.shift();var r=new e.RTCIceGatherer({iceServers:this._config.iceServers,gatherPolicy:this._config.iceTransportPolicy});return Object.defineProperty(r,"state",{value:"new",writable:!0}),this.transceivers[t].bufferedCandidateEvents=[],this.transceivers[t].bufferCandidates=function(e){var n=!e.candidate||0===Object.keys(e.candidate).length;r.state=n?"completed":"gathering",null!==i.transceivers[t].bufferedCandidateEvents&&i.transceivers[t].bufferedCandidateEvents.push(e)},r.addEventListener("localcandidate",this.transceivers[t].bufferCandidates),r},u.prototype._gather=function(t,n){var r=this,o=this.transceivers[n].iceGatherer;if(!o.onlocalcandidate){var a=this.transceivers[n].bufferedCandidateEvents;this.transceivers[n].bufferedCandidateEvents=null,o.removeEventListener("localcandidate",this.transceivers[n].bufferCandidates),o.onlocalcandidate=function(e){if(!(r.usingBundle&&n>0)){var a=new Event("icecandidate");a.candidate={sdpMid:t,sdpMLineIndex:n};var s=e.candidate,l=!s||0===Object.keys(s).length;if(l)"new"!==o.state&&"gathering"!==o.state||(o.state="completed");else{"new"===o.state&&(o.state="gathering"),s.component=1,s.ufrag=o.getLocalParameters().usernameFragment;var c=i.writeCandidate(s);a.candidate=Object.assign(a.candidate,i.parseCandidate(c)),a.candidate.candidate=c,a.candidate.toJSON=function(){return{candidate:a.candidate.candidate,sdpMid:a.candidate.sdpMid,sdpMLineIndex:a.candidate.sdpMLineIndex,usernameFragment:a.candidate.usernameFragment}}}var u=i.getMediaSections(r._localDescription.sdp);u[a.candidate.sdpMLineIndex]+=l?"a=end-of-candidates\r\n":"a="+a.candidate.candidate+"\r\n",r._localDescription.sdp=i.getDescription(r._localDescription.sdp)+u.join("");var d=r.transceivers.every((function(e){return e.iceGatherer&&"completed"===e.iceGatherer.state}));"gathering"!==r.iceGatheringState&&(r.iceGatheringState="gathering",r._emitGatheringStateChange()),l||r._dispatchEvent("icecandidate",a),d&&(r._dispatchEvent("icecandidate",new Event("icecandidate")),r.iceGatheringState="complete",r._emitGatheringStateChange())}},e.setTimeout((function(){a.forEach((function(e){o.onlocalcandidate(e)}))}),0)}},u.prototype._createIceAndDtlsTransports=function(){var t=this,n=new e.RTCIceTransport(null);n.onicestatechange=function(){t._updateIceConnectionState(),t._updateConnectionState()};var i=new e.RTCDtlsTransport(n);return i.ondtlsstatechange=function(){t._updateConnectionState()},i.onerror=function(){Object.defineProperty(i,"state",{value:"failed",writable:!0}),t._updateConnectionState()},{iceTransport:n,dtlsTransport:i}},u.prototype._disposeIceAndDtlsTransports=function(e){var t=this.transceivers[e].iceGatherer;t&&(delete t.onlocalcandidate,delete this.transceivers[e].iceGatherer);var n=this.transceivers[e].iceTransport;n&&(delete n.onicestatechange,delete this.transceivers[e].iceTransport);var i=this.transceivers[e].dtlsTransport;i&&(delete i.ondtlsstatechange,delete i.onerror,delete this.transceivers[e].dtlsTransport)},u.prototype._transceive=function(e,n,r){var a=o(e.localCapabilities,e.remoteCapabilities);n&&e.rtpSender&&(a.encodings=e.sendEncodingParameters,a.rtcp={cname:i.localCName,compound:e.rtcpParameters.compound},e.recvEncodingParameters.length&&(a.rtcp.ssrc=e.recvEncodingParameters[0].ssrc),e.rtpSender.send(a)),r&&e.rtpReceiver&&a.codecs.length>0&&("video"===e.kind&&e.recvEncodingParameters&&t<15019&&e.recvEncodingParameters.forEach((function(e){delete e.rtx})),e.recvEncodingParameters.length?a.encodings=e.recvEncodingParameters:a.encodings=[{}],a.rtcp={compound:e.rtcpParameters.compound},e.rtcpParameters.cname&&(a.rtcp.cname=e.rtcpParameters.cname),e.sendEncodingParameters.length&&(a.rtcp.ssrc=e.sendEncodingParameters[0].ssrc),e.rtpReceiver.receive(a))},u.prototype.setLocalDescription=function(e){var t,n,r=this;if(-1===["offer","answer"].indexOf(e.type))return Promise.reject(l("TypeError",'Unsupported type "'+e.type+'"'));if(!a("setLocalDescription",e.type,r.signalingState)||r._isClosed)return Promise.reject(l("InvalidStateError","Can not set local "+e.type+" in state "+r.signalingState));if("offer"===e.type)t=i.splitSections(e.sdp),n=t.shift(),t.forEach((function(e,t){var n=i.parseRtpParameters(e);r.transceivers[t].localCapabilities=n})),r.transceivers.forEach((function(e,t){r._gather(e.mid,t)}));else if("answer"===e.type){t=i.splitSections(r._remoteDescription.sdp),n=t.shift();var s=i.matchPrefix(n,"a=ice-lite").length>0;t.forEach((function(e,t){var a=r.transceivers[t],l=a.iceGatherer,c=a.iceTransport,u=a.dtlsTransport,d=a.localCapabilities,p=a.remoteCapabilities;if(!(i.isRejected(e)&&0===i.matchPrefix(e,"a=bundle-only").length)&&!a.rejected){var m=i.getIceParameters(e,n),h=i.getDtlsParameters(e,n);s&&(h.role="server"),r.usingBundle&&0!==t||(r._gather(a.mid,t),"new"===c.state&&c.start(l,m,s?"controlling":"controlled"),"new"===u.state&&u.start(h));var f=o(d,p);r._transceive(a,f.codecs.length>0,!1)}}))}return r._localDescription={type:e.type,sdp:e.sdp},"offer"===e.type?r._updateSignalingState("have-local-offer"):r._updateSignalingState("stable"),Promise.resolve()},u.prototype.setRemoteDescription=function(r){var u=this;if(-1===["offer","answer"].indexOf(r.type))return Promise.reject(l("TypeError",'Unsupported type "'+r.type+'"'));if(!a("setRemoteDescription",r.type,u.signalingState)||u._isClosed)return Promise.reject(l("InvalidStateError","Can not set remote "+r.type+" in state "+u.signalingState));var d={};u.remoteStreams.forEach((function(e){d[e.id]=e}));var p=[],m=i.splitSections(r.sdp),h=m.shift(),f=i.matchPrefix(h,"a=ice-lite").length>0,g=i.matchPrefix(h,"a=group:BUNDLE ").length>0;u.usingBundle=g;var v=i.matchPrefix(h,"a=ice-options:")[0];return u.canTrickleIceCandidates=!!v&&v.substr(14).split(" ").indexOf("trickle")>=0,m.forEach((function(a,l){var c=i.splitLines(a),m=i.getKind(a),v=i.isRejected(a)&&0===i.matchPrefix(a,"a=bundle-only").length,b=c[0].substr(2).split(" ")[2],y=i.getDirection(a,h),k=i.parseMsid(a),w=i.getMid(a)||i.generateIdentifier();if(v||"application"===m&&("DTLS/SCTP"===b||"UDP/DTLS/SCTP"===b))u.transceivers[l]={mid:w,kind:m,protocol:b,rejected:!0};else{var S,C,x,E,T,_,j,O,R;!v&&u.transceivers[l]&&u.transceivers[l].rejected&&(u.transceivers[l]=u._createTransceiver(m,!0));var P,I,A=i.parseRtpParameters(a);v||(P=i.getIceParameters(a,h),(I=i.getDtlsParameters(a,h)).role="client"),j=i.parseRtpEncodingParameters(a);var M=i.parseRtcpParameters(a),N=i.matchPrefix(a,"a=end-of-candidates",h).length>0,D=i.matchPrefix(a,"a=candidate:").map((function(e){return i.parseCandidate(e)})).filter((function(e){return 1===e.component}));if(("offer"===r.type||"answer"===r.type)&&!v&&g&&l>0&&u.transceivers[l]&&(u._disposeIceAndDtlsTransports(l),u.transceivers[l].iceGatherer=u.transceivers[0].iceGatherer,u.transceivers[l].iceTransport=u.transceivers[0].iceTransport,u.transceivers[l].dtlsTransport=u.transceivers[0].dtlsTransport,u.transceivers[l].rtpSender&&u.transceivers[l].rtpSender.setTransport(u.transceivers[0].dtlsTransport),u.transceivers[l].rtpReceiver&&u.transceivers[l].rtpReceiver.setTransport(u.transceivers[0].dtlsTransport)),"offer"!==r.type||v){if("answer"===r.type&&!v){C=(S=u.transceivers[l]).iceGatherer,x=S.iceTransport,E=S.dtlsTransport,T=S.rtpReceiver,_=S.sendEncodingParameters,O=S.localCapabilities,u.transceivers[l].recvEncodingParameters=j,u.transceivers[l].remoteCapabilities=A,u.transceivers[l].rtcpParameters=M,D.length&&"new"===x.state&&(!f&&!N||g&&0!==l?D.forEach((function(e){s(S.iceTransport,e)})):x.setRemoteCandidates(D)),g&&0!==l||("new"===x.state&&x.start(C,P,"controlling"),"new"===E.state&&E.start(I)),!o(S.localCapabilities,S.remoteCapabilities).codecs.filter((function(e){return"rtx"===e.name.toLowerCase()})).length&&S.sendEncodingParameters[0].rtx&&delete S.sendEncodingParameters[0].rtx,u._transceive(S,"sendrecv"===y||"recvonly"===y,"sendrecv"===y||"sendonly"===y),!T||"sendrecv"!==y&&"sendonly"!==y?delete S.rtpReceiver:(R=T.track,k?(d[k.stream]||(d[k.stream]=new e.MediaStream),n(R,d[k.stream]),p.push([R,T,d[k.stream]])):(d.default||(d.default=new e.MediaStream),n(R,d.default),p.push([R,T,d.default])))}}else{(S=u.transceivers[l]||u._createTransceiver(m)).mid=w,S.iceGatherer||(S.iceGatherer=u._createIceGatherer(l,g)),D.length&&"new"===S.iceTransport.state&&(!N||g&&0!==l?D.forEach((function(e){s(S.iceTransport,e)})):S.iceTransport.setRemoteCandidates(D)),O=e.RTCRtpReceiver.getCapabilities(m),t<15019&&(O.codecs=O.codecs.filter((function(e){return"rtx"!==e.name}))),_=S.sendEncodingParameters||[{ssrc:1001*(2*l+2)}];var L,q=!1;if("sendrecv"===y||"sendonly"===y){if(q=!S.rtpReceiver,T=S.rtpReceiver||new e.RTCRtpReceiver(S.dtlsTransport,m),q)R=T.track,k&&"-"===k.stream||(k?(d[k.stream]||(d[k.stream]=new e.MediaStream,Object.defineProperty(d[k.stream],"id",{get:function(){return k.stream}})),Object.defineProperty(R,"id",{get:function(){return k.track}}),L=d[k.stream]):(d.default||(d.default=new e.MediaStream),L=d.default)),L&&(n(R,L),S.associatedRemoteMediaStreams.push(L)),p.push([R,T,L])}else S.rtpReceiver&&S.rtpReceiver.track&&(S.associatedRemoteMediaStreams.forEach((function(t){var n=t.getTracks().find((function(e){return e.id===S.rtpReceiver.track.id}));n&&function(t,n){n.removeTrack(t),n.dispatchEvent(new e.MediaStreamTrackEvent("removetrack",{track:t}))}(n,t)})),S.associatedRemoteMediaStreams=[]);S.localCapabilities=O,S.remoteCapabilities=A,S.rtpReceiver=T,S.rtcpParameters=M,S.sendEncodingParameters=_,S.recvEncodingParameters=j,u._transceive(u.transceivers[l],!1,q)}}})),void 0===u._dtlsRole&&(u._dtlsRole="offer"===r.type?"active":"passive"),u._remoteDescription={type:r.type,sdp:r.sdp},"offer"===r.type?u._updateSignalingState("have-remote-offer"):u._updateSignalingState("stable"),Object.keys(d).forEach((function(t){var n=d[t];if(n.getTracks().length){if(-1===u.remoteStreams.indexOf(n)){u.remoteStreams.push(n);var i=new Event("addstream");i.stream=n,e.setTimeout((function(){u._dispatchEvent("addstream",i)}))}p.forEach((function(e){var t=e[0],i=e[1];n.id===e[2].id&&c(u,t,i,[n])}))}})),p.forEach((function(e){e[2]||c(u,e[0],e[1],[])})),e.setTimeout((function(){u&&u.transceivers&&u.transceivers.forEach((function(e){e.iceTransport&&"new"===e.iceTransport.state&&e.iceTransport.getRemoteCandidates().length>0&&(console.warn("Timeout for addRemoteCandidate. Consider sending an end-of-candidates notification"),e.iceTransport.addRemoteCandidate({}))}))}),4e3),Promise.resolve()},u.prototype.close=function(){this.transceivers.forEach((function(e){e.iceTransport&&e.iceTransport.stop(),e.dtlsTransport&&e.dtlsTransport.stop(),e.rtpSender&&e.rtpSender.stop(),e.rtpReceiver&&e.rtpReceiver.stop()})),this._isClosed=!0,this._updateSignalingState("closed")},u.prototype._updateSignalingState=function(e){this.signalingState=e;var t=new Event("signalingstatechange");this._dispatchEvent("signalingstatechange",t)},u.prototype._maybeFireNegotiationNeeded=function(){var t=this;"stable"===this.signalingState&&!0!==this.needNegotiation&&(this.needNegotiation=!0,e.setTimeout((function(){if(t.needNegotiation){t.needNegotiation=!1;var e=new Event("negotiationneeded");t._dispatchEvent("negotiationneeded",e)}}),0))},u.prototype._updateIceConnectionState=function(){var e,t={new:0,closed:0,checking:0,connected:0,completed:0,disconnected:0,failed:0};if(this.transceivers.forEach((function(e){e.iceTransport&&!e.rejected&&t[e.iceTransport.state]++})),e="new",t.failed>0?e="failed":t.checking>0?e="checking":t.disconnected>0?e="disconnected":t.new>0?e="new":t.connected>0?e="connected":t.completed>0&&(e="completed"),e!==this.iceConnectionState){this.iceConnectionState=e;var n=new Event("iceconnectionstatechange");this._dispatchEvent("iceconnectionstatechange",n)}},u.prototype._updateConnectionState=function(){var e,t={new:0,closed:0,connecting:0,connected:0,completed:0,disconnected:0,failed:0};if(this.transceivers.forEach((function(e){e.iceTransport&&e.dtlsTransport&&!e.rejected&&(t[e.iceTransport.state]++,t[e.dtlsTransport.state]++)})),t.connected+=t.completed,e="new",t.failed>0?e="failed":t.connecting>0?e="connecting":t.disconnected>0?e="disconnected":t.new>0?e="new":t.connected>0&&(e="connected"),e!==this.connectionState){this.connectionState=e;var n=new Event("connectionstatechange");this._dispatchEvent("connectionstatechange",n)}},u.prototype.createOffer=function(){var n=this;if(n._isClosed)return Promise.reject(l("InvalidStateError","Can not call createOffer after close"));var o=n.transceivers.filter((function(e){return"audio"===e.kind})).length,a=n.transceivers.filter((function(e){return"video"===e.kind})).length,s=arguments[0];if(s){if(s.mandatory||s.optional)throw new TypeError("Legacy mandatory/optional constraints not supported.");void 0!==s.offerToReceiveAudio&&(o=!0===s.offerToReceiveAudio?1:!1===s.offerToReceiveAudio?0:s.offerToReceiveAudio),void 0!==s.offerToReceiveVideo&&(a=!0===s.offerToReceiveVideo?1:!1===s.offerToReceiveVideo?0:s.offerToReceiveVideo)}for(n.transceivers.forEach((function(e){"audio"===e.kind?--o<0&&(e.wantReceive=!1):"video"===e.kind&&--a<0&&(e.wantReceive=!1)}));o>0||a>0;)o>0&&(n._createTransceiver("audio"),o--),a>0&&(n._createTransceiver("video"),a--);var c=i.writeSessionBoilerplate(n._sdpSessionId,n._sdpSessionVersion++);n.transceivers.forEach((function(r,o){var a=r.track,s=r.kind,l=r.mid||i.generateIdentifier();r.mid=l,r.iceGatherer||(r.iceGatherer=n._createIceGatherer(o,n.usingBundle));var c=e.RTCRtpSender.getCapabilities(s);t<15019&&(c.codecs=c.codecs.filter((function(e){return"rtx"!==e.name}))),c.codecs.forEach((function(e){"H264"===e.name&&void 0===e.parameters["level-asymmetry-allowed"]&&(e.parameters["level-asymmetry-allowed"]="1"),r.remoteCapabilities&&r.remoteCapabilities.codecs&&r.remoteCapabilities.codecs.forEach((function(t){e.name.toLowerCase()===t.name.toLowerCase()&&e.clockRate===t.clockRate&&(e.preferredPayloadType=t.payloadType)}))})),c.headerExtensions.forEach((function(e){(r.remoteCapabilities&&r.remoteCapabilities.headerExtensions||[]).forEach((function(t){e.uri===t.uri&&(e.id=t.id)}))}));var u=r.sendEncodingParameters||[{ssrc:1001*(2*o+1)}];a&&t>=15019&&"video"===s&&!u[0].rtx&&(u[0].rtx={ssrc:u[0].ssrc+1}),r.wantReceive&&(r.rtpReceiver=new e.RTCRtpReceiver(r.dtlsTransport,s)),r.localCapabilities=c,r.sendEncodingParameters=u})),"max-compat"!==n._config.bundlePolicy&&(c+="a=group:BUNDLE "+n.transceivers.map((function(e){return e.mid})).join(" ")+"\r\n"),c+="a=ice-options:trickle\r\n",n.transceivers.forEach((function(e,t){c+=r(e,e.localCapabilities,"offer",e.stream,n._dtlsRole),c+="a=rtcp-rsize\r\n",!e.iceGatherer||"new"===n.iceGatheringState||0!==t&&n.usingBundle||(e.iceGatherer.getLocalCandidates().forEach((function(e){e.component=1,c+="a="+i.writeCandidate(e)+"\r\n"})),"completed"===e.iceGatherer.state&&(c+="a=end-of-candidates\r\n"))}));var u=new e.RTCSessionDescription({type:"offer",sdp:c});return Promise.resolve(u)},u.prototype.createAnswer=function(){var n=this;if(n._isClosed)return Promise.reject(l("InvalidStateError","Can not call createAnswer after close"));if("have-remote-offer"!==n.signalingState&&"have-local-pranswer"!==n.signalingState)return Promise.reject(l("InvalidStateError","Can not call createAnswer in signalingState "+n.signalingState));var a=i.writeSessionBoilerplate(n._sdpSessionId,n._sdpSessionVersion++);n.usingBundle&&(a+="a=group:BUNDLE "+n.transceivers.map((function(e){return e.mid})).join(" ")+"\r\n"),a+="a=ice-options:trickle\r\n";var s=i.getMediaSections(n._remoteDescription.sdp).length;n.transceivers.forEach((function(e,i){if(!(i+1>s)){if(e.rejected)return"application"===e.kind?"DTLS/SCTP"===e.protocol?a+="m=application 0 DTLS/SCTP 5000\r\n":a+="m=application 0 "+e.protocol+" webrtc-datachannel\r\n":"audio"===e.kind?a+="m=audio 0 UDP/TLS/RTP/SAVPF 0\r\na=rtpmap:0 PCMU/8000\r\n":"video"===e.kind&&(a+="m=video 0 UDP/TLS/RTP/SAVPF 120\r\na=rtpmap:120 VP8/90000\r\n"),void(a+="c=IN IP4 0.0.0.0\r\na=inactive\r\na=mid:"+e.mid+"\r\n");var l;if(e.stream)"audio"===e.kind?l=e.stream.getAudioTracks()[0]:"video"===e.kind&&(l=e.stream.getVideoTracks()[0]),l&&t>=15019&&"video"===e.kind&&!e.sendEncodingParameters[0].rtx&&(e.sendEncodingParameters[0].rtx={ssrc:e.sendEncodingParameters[0].ssrc+1});var c=o(e.localCapabilities,e.remoteCapabilities);!c.codecs.filter((function(e){return"rtx"===e.name.toLowerCase()})).length&&e.sendEncodingParameters[0].rtx&&delete e.sendEncodingParameters[0].rtx,a+=r(e,c,"answer",e.stream,n._dtlsRole),e.rtcpParameters&&e.rtcpParameters.reducedSize&&(a+="a=rtcp-rsize\r\n")}}));var c=new e.RTCSessionDescription({type:"answer",sdp:a});return Promise.resolve(c)},u.prototype.addIceCandidate=function(e){var t,n=this;return e&&void 0===e.sdpMLineIndex&&!e.sdpMid?Promise.reject(new TypeError("sdpMLineIndex or sdpMid required")):new Promise((function(r,o){if(!n._remoteDescription)return o(l("InvalidStateError","Can not add ICE candidate without a remote description"));if(e&&""!==e.candidate){var a=e.sdpMLineIndex;if(e.sdpMid)for(var c=0;c<n.transceivers.length;c++)if(n.transceivers[c].mid===e.sdpMid){a=c;break}var u=n.transceivers[a];if(!u)return o(l("OperationError","Can not add ICE candidate"));if(u.rejected)return r();var d=Object.keys(e.candidate).length>0?i.parseCandidate(e.candidate):{};if("tcp"===d.protocol&&(0===d.port||9===d.port))return r();if(d.component&&1!==d.component)return r();if((0===a||a>0&&u.iceTransport!==n.transceivers[0].iceTransport)&&!s(u.iceTransport,d))return o(l("OperationError","Can not add ICE candidate"));var p=e.candidate.trim();0===p.indexOf("a=")&&(p=p.substr(2)),(t=i.getMediaSections(n._remoteDescription.sdp))[a]+="a="+(d.type?p:"end-of-candidates")+"\r\n",n._remoteDescription.sdp=i.getDescription(n._remoteDescription.sdp)+t.join("")}else for(var m=0;m<n.transceivers.length&&(n.transceivers[m].rejected||(n.transceivers[m].iceTransport.addRemoteCandidate({}),(t=i.getMediaSections(n._remoteDescription.sdp))[m]+="a=end-of-candidates\r\n",n._remoteDescription.sdp=i.getDescription(n._remoteDescription.sdp)+t.join(""),!n.usingBundle));m++);r()}))},u.prototype.getStats=function(t){if(t&&t instanceof e.MediaStreamTrack){var n=null;if(this.transceivers.forEach((function(e){e.rtpSender&&e.rtpSender.track===t?n=e.rtpSender:e.rtpReceiver&&e.rtpReceiver.track===t&&(n=e.rtpReceiver)})),!n)throw l("InvalidAccessError","Invalid selector.");return n.getStats()}var i=[];return this.transceivers.forEach((function(e){["rtpSender","rtpReceiver","iceGatherer","iceTransport","dtlsTransport"].forEach((function(t){e[t]&&i.push(e[t].getStats())}))})),Promise.all(i).then((function(e){var t=new Map;return e.forEach((function(e){e.forEach((function(e){t.set(e.id,e)}))})),t}))};["RTCRtpSender","RTCRtpReceiver","RTCIceGatherer","RTCIceTransport","RTCDtlsTransport"].forEach((function(t){var n=e[t];if(n&&n.prototype&&n.prototype.getStats){var i=n.prototype.getStats;n.prototype.getStats=function(){return i.apply(this).then((function(e){var t=new Map;return Object.keys(e).forEach((function(n){var i;e[n].type={inboundrtp:"inbound-rtp",outboundrtp:"outbound-rtp",candidatepair:"candidate-pair",localcandidate:"local-candidate",remotecandidate:"remote-candidate"}[(i=e[n]).type]||i.type,t.set(n,e[n])})),t}))}}}));var d=["createOffer","createAnswer"];return d.forEach((function(e){var t=u.prototype[e];u.prototype[e]=function(){var e=arguments;return"function"==typeof e[0]||"function"==typeof e[1]?t.apply(this,[arguments[2]]).then((function(t){"function"==typeof e[0]&&e[0].apply(null,[t])}),(function(t){"function"==typeof e[1]&&e[1].apply(null,[t])})):t.apply(this,arguments)}})),(d=["setLocalDescription","setRemoteDescription","addIceCandidate"]).forEach((function(e){var t=u.prototype[e];u.prototype[e]=function(){var e=arguments;return"function"==typeof e[1]||"function"==typeof e[2]?t.apply(this,arguments).then((function(){"function"==typeof e[1]&&e[1].apply(null)}),(function(t){"function"==typeof e[2]&&e[2].apply(null,[t])})):t.apply(this,arguments)}})),["getStats"].forEach((function(e){var t=u.prototype[e];u.prototype[e]=function(){var e=arguments;return"function"==typeof e[1]?t.apply(this,arguments).then((function(){"function"==typeof e[1]&&e[1].apply(null)})):t.apply(this,arguments)}})),u}},function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(0));t.default=e=>r.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",width:"1em",height:"1em"},e),r.default.createElement("path",{d:"M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z"}),r.default.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}))},function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(0));t.default=e=>r.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",width:"1em",height:"1em"},e),r.default.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),r.default.createElement("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}))},function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(0));t.default=e=>r.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",width:"1em",height:"1em"},e),r.default.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),r.default.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"}))},function(e,t,n){"use strict";(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.a=n}).call(this,n(7))},function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(0));t.default=e=>r.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",width:"1em",height:"1em"},e),r.default.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),r.default.createElement("path",{d:"M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"}))},function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(0));t.default=e=>r.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",width:"1em",height:"1em"},e),r.default.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),r.default.createElement("path",{d:"M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z"}))},function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(0));t.default=e=>r.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",width:"1em",height:"1em"},e),r.default.createElement("path",{d:"M15.73 3H8.27L3 8.27v7.46L8.27 21h7.46L21 15.73V8.27L15.73 3zM12 17.3c-.72 0-1.3-.58-1.3-1.3 0-.72.58-1.3 1.3-1.3.72 0 1.3.58 1.3 1.3 0 .72-.58 1.3-1.3 1.3zm1-4.3h-2V7h2v6z"}),r.default.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}))},function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(0));t.default=e=>r.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",width:"1em",height:"1em"},e),r.default.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),r.default.createElement("path",{d:"M12 9c-1.6 0-3.15.25-4.6.72v3.1c0 .39-.23.74-.56.9-.98.49-1.87 1.12-2.66 1.85-.18.18-.43.28-.7.28-.28 0-.53-.11-.71-.29L.29 13.08a.956.956 0 0 1-.29-.7c0-.28.11-.53.29-.71C3.34 8.78 7.46 7 12 7s8.66 1.78 11.71 4.67c.18.18.29.43.29.71 0 .28-.11.53-.29.71l-2.48 2.48c-.18.18-.43.29-.71.29-.27 0-.52-.11-.7-.28a11.27 11.27 0 0 0-2.67-1.85.996.996 0 0 1-.56-.9v-3.1C15.15 9.25 13.6 9 12 9z"}))},function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(0));t.default=e=>r.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",width:"1em",height:"1em"},e),r.default.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),r.default.createElement("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z"}))},function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(0));t.default=e=>r.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",width:"1em",height:"1em"},e),r.default.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),r.default.createElement("path",{d:"M12 17c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm6-9h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6h1.9c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm0 12H6V10h12v10z"}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=n(84),o=(i=r)&&i.__esModule?i:{default:i};t.default=o.default,e.exports=t.default},function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(0));t.default=e=>r.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",width:"1em",height:"1em"},e),r.default.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),r.default.createElement("path",{d:"M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z"}))},function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(0));t.default=e=>r.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",width:"1em",height:"1em"},e),r.default.createElement("path",{d:"M0 0h24v24H0zm0 0h24v24H0zm0 0h24v24H0zm0 0h24v24H0z",fill:"none"}),r.default.createElement("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46A11.804 11.804 0 0 0 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"}))},function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(0));t.default=e=>r.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",width:"1em",height:"1em"},e),r.default.createElement("path",{d:"M0 0h24v24H0zm0 0h24v24H0z",fill:"none"}),r.default.createElement("path",{d:"M19 11h-1.7c0 .74-.16 1.43-.43 2.05l1.23 1.23c.56-.98.9-2.09.9-3.28zm-4.02.17c0-.06.02-.11.02-.17V5c0-1.66-1.34-3-3-3S9 3.34 9 5v.18l5.98 5.99zM4.27 3L3 4.27l6.01 6.01V11c0 1.66 1.33 3 2.99 3 .22 0 .44-.03.65-.08l1.66 1.66c-.71.33-1.5.52-2.31.52-2.76 0-5.3-2.1-5.3-5.1H5c0 3.41 2.72 6.23 6 6.72V21h2v-3.28c.91-.13 1.77-.45 2.54-.9L19.73 21 21 19.73 4.27 3z"}))},function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(0));t.default=e=>r.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",width:"1em",height:"1em"},e),r.default.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),r.default.createElement("path",{d:"M20 18c1.1 0 1.99-.9 1.99-2L22 6a2 2 0 0 0-2-2H4c-1.11 0-2 .89-2 2v10a2 2 0 0 0 2 2H0v2h24v-2h-4zm-7-3.53v-2.19c-2.78 0-4.61.85-6 2.72.56-2.67 2.11-5.33 6-5.87V7l4 3.73-4 3.74z"}))},function(e,t,n){"use strict";function i(e){return Object.prototype.toString.call(e).slice(8,-1)}function r(e){return"Object"===i(e)&&(e.constructor===Object&&Object.getPrototypeOf(e)===Object.prototype)}function o(e){return"Array"===i(e)}function a(e){return"Symbol"===i(e)}
/*! *****************************************************************************
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.
***************************************************************************** */
function s(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),r=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,r++)i[r]=o[a];return i}function l(e,t,n,i){var r=i.propertyIsEnumerable(t)?"enumerable":"nonenumerable";"enumerable"===r&&(e[t]=n),"nonenumerable"===r&&Object.defineProperty(e,t,{value:n,enumerable:!1,writable:!0,configurable:!0})}function c(e,t,n){if(!r(t))return n&&o(n)&&n.forEach((function(n){t=n(e,t)})),t;var i={};r(e)&&(i=s(Object.getOwnPropertyNames(e),Object.getOwnPropertySymbols(e)).reduce((function(n,i){var r=e[i];return(!a(i)&&!Object.getOwnPropertyNames(t).includes(i)||a(i)&&!Object.getOwnPropertySymbols(t).includes(i))&&l(n,i,r,e),n}),{}));return s(Object.getOwnPropertyNames(t),Object.getOwnPropertySymbols(t)).reduce((function(i,a){var s=t[a],u=r(e)?e[a]:void 0;return n&&o(n)&&n.forEach((function(e){s=e(u,s)})),void 0!==u&&r(s)&&(s=c(u,s,n)),l(i,a,s,t),i}),i)}t.a=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var i=null,o=e;return r(e)&&e.extensions&&1===Object.keys(e).length&&(o={},i=e.extensions),t.reduce((function(e,t){return c(e,t,i)}),o)}},function(e,t,n){"use strict";var i=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,r=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){return i.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));t.a=r},function(e,t,n){"use strict";
/** @license React v16.13.1
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var i=n(32),r="function"==typeof Symbol&&Symbol.for,o=r?Symbol.for("react.element"):60103,a=r?Symbol.for("react.portal"):60106,s=r?Symbol.for("react.fragment"):60107,l=r?Symbol.for("react.strict_mode"):60108,c=r?Symbol.for("react.profiler"):60114,u=r?Symbol.for("react.provider"):60109,d=r?Symbol.for("react.context"):60110,p=r?Symbol.for("react.forward_ref"):60112,m=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.memo"):60115,f=r?Symbol.for("react.lazy"):60116,g="function"==typeof Symbol&&Symbol.iterator;function v(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},y={};function k(e,t,n){this.props=e,this.context=t,this.refs=y,this.updater=n||b}function w(){}function S(e,t,n){this.props=e,this.context=t,this.refs=y,this.updater=n||b}k.prototype.isReactComponent={},k.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(v(85));this.updater.enqueueSetState(this,e,t,"setState")},k.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},w.prototype=k.prototype;var C=S.prototype=new w;C.constructor=S,i(C,k.prototype),C.isPureReactComponent=!0;var x={current:null},E=Object.prototype.hasOwnProperty,T={key:!0,ref:!0,__self:!0,__source:!0};function _(e,t,n){var i,r={},a=null,s=null;if(null!=t)for(i in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)E.call(t,i)&&!T.hasOwnProperty(i)&&(r[i]=t[i]);var l=arguments.length-2;if(1===l)r.children=n;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];r.children=c}if(e&&e.defaultProps)for(i in l=e.defaultProps)void 0===r[i]&&(r[i]=l[i]);return{$$typeof:o,type:e,key:a,ref:s,props:r,_owner:x.current}}function j(e){return"object"==typeof e&&null!==e&&e.$$typeof===o}var O=/\/+/g,R=[];function P(e,t,n,i){if(R.length){var r=R.pop();return r.result=e,r.keyPrefix=t,r.func=n,r.context=i,r.count=0,r}return{result:e,keyPrefix:t,func:n,context:i,count:0}}function I(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>R.length&&R.push(e)}function A(e,t,n){return null==e?0:function e(t,n,i,r){var s=typeof t;"undefined"!==s&&"boolean"!==s||(t=null);var l=!1;if(null===t)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(t.$$typeof){case o:case a:l=!0}}if(l)return i(r,t,""===n?"."+M(t,0):n),1;if(l=0,n=""===n?".":n+":",Array.isArray(t))for(var c=0;c<t.length;c++){var u=n+M(s=t[c],c);l+=e(s,u,i,r)}else if(null===t||"object"!=typeof t?u=null:u="function"==typeof(u=g&&t[g]||t["@@iterator"])?u:null,"function"==typeof u)for(t=u.call(t),c=0;!(s=t.next()).done;)l+=e(s=s.value,u=n+M(s,c++),i,r);else if("object"===s)throw i=""+t,Error(v(31,"[object Object]"===i?"object with keys {"+Object.keys(t).join(", ")+"}":i,""));return l}(e,"",t,n)}function M(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,(function(e){return t[e]}))}(e.key):t.toString(36)}function N(e,t){e.func.call(e.context,t,e.count++)}function D(e,t,n){var i=e.result,r=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?L(e,i,n,(function(e){return e})):null!=e&&(j(e)&&(e=function(e,t){return{$$typeof:o,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,r+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(O,"$&/")+"/")+n)),i.push(e))}function L(e,t,n,i,r){var o="";null!=n&&(o=(""+n).replace(O,"$&/")+"/"),A(e,D,t=P(t,o,i,r)),I(t)}var q={current:null};function F(){var e=q.current;if(null===e)throw Error(v(321));return e}var z={ReactCurrentDispatcher:q,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:x,IsSomeRendererActing:{current:!1},assign:i};t.Children={map:function(e,t,n){if(null==e)return e;var i=[];return L(e,i,null,t,n),i},forEach:function(e,t,n){if(null==e)return e;A(e,N,t=P(null,null,t,n)),I(t)},count:function(e){return A(e,(function(){return null}),null)},toArray:function(e){var t=[];return L(e,t,null,(function(e){return e})),t},only:function(e){if(!j(e))throw Error(v(143));return e}},t.Component=k,t.Fragment=s,t.Profiler=c,t.PureComponent=S,t.StrictMode=l,t.Suspense=m,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=z,t.cloneElement=function(e,t,n){if(null==e)throw Error(v(267,e));var r=i({},e.props),a=e.key,s=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,l=x.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(u in t)E.call(t,u)&&!T.hasOwnProperty(u)&&(r[u]=void 0===t[u]&&void 0!==c?c[u]:t[u])}var u=arguments.length-2;if(1===u)r.children=n;else if(1<u){c=Array(u);for(var d=0;d<u;d++)c[d]=arguments[d+2];r.children=c}return{$$typeof:o,type:e.type,key:a,ref:s,props:r,_owner:l}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:d,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:u,_context:e},e.Consumer=e},t.createElement=_,t.createFactory=function(e){var t=_.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:p,render:e}},t.isValidElement=j,t.lazy=function(e){return{$$typeof:f,_ctor:e,_status:-1,_result:null}},t.memo=function(e,t){return{$$typeof:h,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return F().useCallback(e,t)},t.useContext=function(e,t){return F().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return F().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return F().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return F().useLayoutEffect(e,t)},t.useMemo=function(e,t){return F().useMemo(e,t)},t.useReducer=function(e,t,n){return F().useReducer(e,t,n)},t.useRef=function(e){return F().useRef(e)},t.useState=function(e){return F().useState(e)},t.version="16.13.1"},function(e,t,n){"use strict";
/** @license React v16.13.1
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var i=n(0),r=n(32),o=n(67);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!i)throw Error(a(227));function s(e,t,n,i,r,o,a,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(e){this.onError(e)}}var l=!1,c=null,u=!1,d=null,p={onError:function(e){l=!0,c=e}};function m(e,t,n,i,r,o,a,u,d){l=!1,c=null,s.apply(p,arguments)}var h=null,f=null,g=null;function v(e,t,n){var i=e.type||"unknown-event";e.currentTarget=g(n),function(e,t,n,i,r,o,s,p,h){if(m.apply(this,arguments),l){if(!l)throw Error(a(198));var f=c;l=!1,c=null,u||(u=!0,d=f)}}(i,t,void 0,e),e.currentTarget=null}var b=null,y={};function k(){if(b)for(var e in y){var t=y[e],n=b.indexOf(e);if(!(-1<n))throw Error(a(96,e));if(!S[n]){if(!t.extractEvents)throw Error(a(97,e));for(var i in S[n]=t,n=t.eventTypes){var r=void 0,o=n[i],s=t,l=i;if(C.hasOwnProperty(l))throw Error(a(99,l));C[l]=o;var c=o.phasedRegistrationNames;if(c){for(r in c)c.hasOwnProperty(r)&&w(c[r],s,l);r=!0}else o.registrationName?(w(o.registrationName,s,l),r=!0):r=!1;if(!r)throw Error(a(98,i,e))}}}}function w(e,t,n){if(x[e])throw Error(a(100,e));x[e]=t,E[e]=t.eventTypes[n].dependencies}var S=[],C={},x={},E={};function T(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var i=e[t];if(!y.hasOwnProperty(t)||y[t]!==i){if(y[t])throw Error(a(102,t));y[t]=i,n=!0}}n&&k()}var _=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),j=null,O=null,R=null;function P(e){if(e=f(e)){if("function"!=typeof j)throw Error(a(280));var t=e.stateNode;t&&(t=h(t),j(e.stateNode,e.type,t))}}function I(e){O?R?R.push(e):R=[e]:O=e}function A(){if(O){var e=O,t=R;if(R=O=null,P(e),t)for(e=0;e<t.length;e++)P(t[e])}}function M(e,t){return e(t)}function N(e,t,n,i,r){return e(t,n,i,r)}function D(){}var L=M,q=!1,F=!1;function z(){null===O&&null===R||(D(),A())}function U(e,t,n){if(F)return e(t,n);F=!0;try{return L(e,t,n)}finally{F=!1,z()}}var B=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,V=Object.prototype.hasOwnProperty,$={},H={};function W(e,t,n,i,r,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=i,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o}var G={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){G[e]=new W(e,0,!1,e,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];G[t]=new W(t,1,!1,e[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){G[e]=new W(e,2,!1,e.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){G[e]=new W(e,2,!1,e,null,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){G[e]=new W(e,3,!1,e.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(e){G[e]=new W(e,3,!0,e,null,!1)})),["capture","download"].forEach((function(e){G[e]=new W(e,4,!1,e,null,!1)})),["cols","rows","size","span"].forEach((function(e){G[e]=new W(e,6,!1,e,null,!1)})),["rowSpan","start"].forEach((function(e){G[e]=new W(e,5,!1,e.toLowerCase(),null,!1)}));var Q=/[\-:]([a-z])/g;function J(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(Q,J);G[t]=new W(t,1,!1,e,null,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(Q,J);G[t]=new W(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(Q,J);G[t]=new W(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(e){G[e]=new W(e,1,!1,e.toLowerCase(),null,!1)})),G.xlinkHref=new W("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(e){G[e]=new W(e,1,!1,e.toLowerCase(),null,!0)}));var K=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function Y(e,t,n,i){var r=G.hasOwnProperty(t)?G[t]:null;(null!==r?0===r.type:!i&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,i){if(null==t||function(e,t,n,i){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!i&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,i))return!0;if(i)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,r,i)&&(n=null),i||null===r?function(e){return!!V.call(H,e)||!V.call($,e)&&(B.test(e)?H[e]=!0:($[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):r.mustUseProperty?e[r.propertyName]=null===n?3!==r.type&&"":n:(t=r.attributeName,i=r.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(r=r.type)||4===r&&!0===n?"":""+n,i?e.setAttributeNS(i,t,n):e.setAttribute(t,n))))}K.hasOwnProperty("ReactCurrentDispatcher")||(K.ReactCurrentDispatcher={current:null}),K.hasOwnProperty("ReactCurrentBatchConfig")||(K.ReactCurrentBatchConfig={suspense:null});var X=/^(.*)[\\\/]/,Z="function"==typeof Symbol&&Symbol.for,ee=Z?Symbol.for("react.element"):60103,te=Z?Symbol.for("react.portal"):60106,ne=Z?Symbol.for("react.fragment"):60107,ie=Z?Symbol.for("react.strict_mode"):60108,re=Z?Symbol.for("react.profiler"):60114,oe=Z?Symbol.for("react.provider"):60109,ae=Z?Symbol.for("react.context"):60110,se=Z?Symbol.for("react.concurrent_mode"):60111,le=Z?Symbol.for("react.forward_ref"):60112,ce=Z?Symbol.for("react.suspense"):60113,ue=Z?Symbol.for("react.suspense_list"):60120,de=Z?Symbol.for("react.memo"):60115,pe=Z?Symbol.for("react.lazy"):60116,me=Z?Symbol.for("react.block"):60121,he="function"==typeof Symbol&&Symbol.iterator;function fe(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=he&&e[he]||e["@@iterator"])?e:null}function ge(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case ne:return"Fragment";case te:return"Portal";case re:return"Profiler";case ie:return"StrictMode";case ce:return"Suspense";case ue:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case ae:return"Context.Consumer";case oe:return"Context.Provider";case le:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case de:return ge(e.type);case me:return ge(e.render);case pe:if(e=1===e._status?e._result:null)return ge(e)}return null}function ve(e){var t="";do{e:switch(e.tag){case 3:case 4:case 6:case 7:case 10:case 9:var n="";break e;default:var i=e._debugOwner,r=e._debugSource,o=ge(e.type);n=null,i&&(n=ge(i.type)),i=o,o="",r?o=" (at "+r.fileName.replace(X,"")+":"+r.lineNumber+")":n&&(o=" (created by "+n+")"),n="\n in "+(i||"Unknown")+o}t+=n,e=e.return}while(e);return t}function be(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function ye(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function ke(e){e._valueTracker||(e._valueTracker=function(e){var t=ye(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),i=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var r=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(e){i=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return i},setValue:function(e){i=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function we(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),i="";return e&&(i=ye(e)?e.checked?"true":"false":e.value),(e=i)!==n&&(t.setValue(e),!0)}function Se(e,t){var n=t.checked;return r({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Ce(e,t){var n=null==t.defaultValue?"":t.defaultValue,i=null!=t.checked?t.checked:t.defaultChecked;n=be(null!=t.value?t.value:n),e._wrapperState={initialChecked:i,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function xe(e,t){null!=(t=t.checked)&&Y(e,"checked",t,!1)}function Ee(e,t){xe(e,t);var n=be(t.value),i=t.type;if(null!=n)"number"===i?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===i||"reset"===i)return void e.removeAttribute("value");t.hasOwnProperty("value")?_e(e,t.type,n):t.hasOwnProperty("defaultValue")&&_e(e,t.type,be(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Te(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var i=t.type;if(!("submit"!==i&&"reset"!==i||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function _e(e,t,n){"number"===t&&e.ownerDocument.activeElement===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function je(e,t){return e=r({children:void 0},t),(t=function(e){var t="";return i.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function Oe(e,t,n,i){if(e=e.options,t){t={};for(var r=0;r<n.length;r++)t["$"+n[r]]=!0;for(n=0;n<e.length;n++)r=t.hasOwnProperty("$"+e[n].value),e[n].selected!==r&&(e[n].selected=r),r&&i&&(e[n].defaultSelected=!0)}else{for(n=""+be(n),t=null,r=0;r<e.length;r++){if(e[r].value===n)return e[r].selected=!0,void(i&&(e[r].defaultSelected=!0));null!==t||e[r].disabled||(t=e[r])}null!==t&&(t.selected=!0)}}function Re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return r({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Pe(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:be(n)}}function Ie(e,t){var n=be(t.value),i=be(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=i&&(e.defaultValue=""+i)}function Ae(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var Me="http://www.w3.org/1999/xhtml",Ne="http://www.w3.org/2000/svg";function De(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?De(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var qe,Fe=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,i,r){MSApp.execUnsafeLocalFunction((function(){return e(t,n)}))}:e}((function(e,t){if(e.namespaceURI!==Ne||"innerHTML"in e)e.innerHTML=t;else{for((qe=qe||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=qe.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function ze(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}function Ue(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Be={animationend:Ue("Animation","AnimationEnd"),animationiteration:Ue("Animation","AnimationIteration"),animationstart:Ue("Animation","AnimationStart"),transitionend:Ue("Transition","TransitionEnd")},Ve={},$e={};function He(e){if(Ve[e])return Ve[e];if(!Be[e])return e;var t,n=Be[e];for(t in n)if(n.hasOwnProperty(t)&&t in $e)return Ve[e]=n[t];return e}_&&($e=document.createElement("div").style,"AnimationEvent"in window||(delete Be.animationend.animation,delete Be.animationiteration.animation,delete Be.animationstart.animation),"TransitionEvent"in window||delete Be.transitionend.transition);var We=He("animationend"),Ge=He("animationiteration"),Qe=He("animationstart"),Je=He("transitionend"),Ke="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Ye=new("function"==typeof WeakMap?WeakMap:Map);function Xe(e){var t=Ye.get(e);return void 0===t&&(t=new Map,Ye.set(e,t)),t}function Ze(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(1026&(t=e).effectTag)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function et(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function tt(e){if(Ze(e)!==e)throw Error(a(188))}function nt(e){if(!(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ze(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,i=t;;){var r=n.return;if(null===r)break;var o=r.alternate;if(null===o){if(null!==(i=r.return)){n=i;continue}break}if(r.child===o.child){for(o=r.child;o;){if(o===n)return tt(r),e;if(o===i)return tt(r),t;o=o.sibling}throw Error(a(188))}if(n.return!==i.return)n=r,i=o;else{for(var s=!1,l=r.child;l;){if(l===n){s=!0,n=r,i=o;break}if(l===i){s=!0,i=r,n=o;break}l=l.sibling}if(!s){for(l=o.child;l;){if(l===n){s=!0,n=o,i=r;break}if(l===i){s=!0,i=o,n=r;break}l=l.sibling}if(!s)throw Error(a(189))}}if(n.alternate!==i)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function it(e,t){if(null==t)throw Error(a(30));return null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function rt(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var ot=null;function at(e){if(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t))for(var i=0;i<t.length&&!e.isPropagationStopped();i++)v(e,t[i],n[i]);else t&&v(e,t,n);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}function st(e){if(null!==e&&(ot=it(ot,e)),e=ot,ot=null,e){if(rt(e,at),ot)throw Error(a(95));if(u)throw e=d,u=!1,d=null,e}}function lt(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function ct(e){if(!_)return!1;var t=(e="on"+e)in document;return t||((t=document.createElement("div")).setAttribute(e,"return;"),t="function"==typeof t[e]),t}var ut=[];function dt(e){e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>ut.length&&ut.push(e)}function pt(e,t,n,i){if(ut.length){var r=ut.pop();return r.topLevelType=e,r.eventSystemFlags=i,r.nativeEvent=t,r.targetInst=n,r}return{topLevelType:e,eventSystemFlags:i,nativeEvent:t,targetInst:n,ancestors:[]}}function mt(e){var t=e.targetInst,n=t;do{if(!n){e.ancestors.push(n);break}var i=n;if(3===i.tag)i=i.stateNode.containerInfo;else{for(;i.return;)i=i.return;i=3!==i.tag?null:i.stateNode.containerInfo}if(!i)break;5!==(t=n.tag)&&6!==t||e.ancestors.push(n),n=_n(i)}while(n);for(n=0;n<e.ancestors.length;n++){t=e.ancestors[n];var r=lt(e.nativeEvent);i=e.topLevelType;var o=e.nativeEvent,a=e.eventSystemFlags;0===n&&(a|=64);for(var s=null,l=0;l<S.length;l++){var c=S[l];c&&(c=c.extractEvents(i,t,o,r,a))&&(s=it(s,c))}st(s)}}function ht(e,t,n){if(!n.has(e)){switch(e){case"scroll":Qt(t,"scroll",!0);break;case"focus":case"blur":Qt(t,"focus",!0),Qt(t,"blur",!0),n.set("blur",null),n.set("focus",null);break;case"cancel":case"close":ct(e)&&Qt(t,e,!0);break;case"invalid":case"submit":case"reset":break;default:-1===Ke.indexOf(e)&&Gt(e,t)}n.set(e,null)}}var ft,gt,vt,bt=!1,yt=[],kt=null,wt=null,St=null,Ct=new Map,xt=new Map,Et=[],Tt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput close cancel copy cut paste click change contextmenu reset submit".split(" "),_t="focus blur dragenter dragleave mouseover mouseout pointerover pointerout gotpointercapture lostpointercapture".split(" ");function jt(e,t,n,i,r){return{blockedOn:e,topLevelType:t,eventSystemFlags:32|n,nativeEvent:r,container:i}}function Ot(e,t){switch(e){case"focus":case"blur":kt=null;break;case"dragenter":case"dragleave":wt=null;break;case"mouseover":case"mouseout":St=null;break;case"pointerover":case"pointerout":Ct.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":xt.delete(t.pointerId)}}function Rt(e,t,n,i,r,o){return null===e||e.nativeEvent!==o?(e=jt(t,n,i,r,o),null!==t&&(null!==(t=jn(t))&>(t)),e):(e.eventSystemFlags|=i,e)}function Pt(e){var t=_n(e.target);if(null!==t){var n=Ze(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=et(n)))return e.blockedOn=t,void o.unstable_runWithPriority(e.priority,(function(){vt(n)}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function It(e){if(null!==e.blockedOn)return!1;var t=Xt(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);if(null!==t){var n=jn(t);return null!==n&>(n),e.blockedOn=t,!1}return!0}function At(e,t,n){It(e)&&n.delete(t)}function Mt(){for(bt=!1;0<yt.length;){var e=yt[0];if(null!==e.blockedOn){null!==(e=jn(e.blockedOn))&&ft(e);break}var t=Xt(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);null!==t?e.blockedOn=t:yt.shift()}null!==kt&&It(kt)&&(kt=null),null!==wt&&It(wt)&&(wt=null),null!==St&&It(St)&&(St=null),Ct.forEach(At),xt.forEach(At)}function Nt(e,t){e.blockedOn===t&&(e.blockedOn=null,bt||(bt=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,Mt)))}function Dt(e){function t(t){return Nt(t,e)}if(0<yt.length){Nt(yt[0],e);for(var n=1;n<yt.length;n++){var i=yt[n];i.blockedOn===e&&(i.blockedOn=null)}}for(null!==kt&&Nt(kt,e),null!==wt&&Nt(wt,e),null!==St&&Nt(St,e),Ct.forEach(t),xt.forEach(t),n=0;n<Et.length;n++)(i=Et[n]).blockedOn===e&&(i.blockedOn=null);for(;0<Et.length&&null===(n=Et[0]).blockedOn;)Pt(n),null===n.blockedOn&&Et.shift()}var Lt={},qt=new Map,Ft=new Map,zt=["abort","abort",We,"animationEnd",Ge,"animationIteration",Qe,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Je,"transitionEnd","waiting","waiting"];function Ut(e,t){for(var n=0;n<e.length;n+=2){var i=e[n],r=e[n+1],o="on"+(r[0].toUpperCase()+r.slice(1));o={phasedRegistrationNames:{bubbled:o,captured:o+"Capture"},dependencies:[i],eventPriority:t},Ft.set(i,t),qt.set(i,o),Lt[r]=o}}Ut("blur blur cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focus focus input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Ut("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Ut(zt,2);for(var Bt="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Vt=0;Vt<Bt.length;Vt++)Ft.set(Bt[Vt],0);var $t=o.unstable_UserBlockingPriority,Ht=o.unstable_runWithPriority,Wt=!0;function Gt(e,t){Qt(t,e,!1)}function Qt(e,t,n){var i=Ft.get(t);switch(void 0===i?2:i){case 0:i=Jt.bind(null,t,1,e);break;case 1:i=Kt.bind(null,t,1,e);break;default:i=Yt.bind(null,t,1,e)}n?e.addEventListener(t,i,!0):e.addEventListener(t,i,!1)}function Jt(e,t,n,i){q||D();var r=Yt,o=q;q=!0;try{N(r,e,t,n,i)}finally{(q=o)||z()}}function Kt(e,t,n,i){Ht($t,Yt.bind(null,e,t,n,i))}function Yt(e,t,n,i){if(Wt)if(0<yt.length&&-1<Tt.indexOf(e))e=jt(null,e,t,n,i),yt.push(e);else{var r=Xt(e,t,n,i);if(null===r)Ot(e,i);else if(-1<Tt.indexOf(e))e=jt(r,e,t,n,i),yt.push(e);else if(!function(e,t,n,i,r){switch(t){case"focus":return kt=Rt(kt,e,t,n,i,r),!0;case"dragenter":return wt=Rt(wt,e,t,n,i,r),!0;case"mouseover":return St=Rt(St,e,t,n,i,r),!0;case"pointerover":var o=r.pointerId;return Ct.set(o,Rt(Ct.get(o)||null,e,t,n,i,r)),!0;case"gotpointercapture":return o=r.pointerId,xt.set(o,Rt(xt.get(o)||null,e,t,n,i,r)),!0}return!1}(r,e,t,n,i)){Ot(e,i),e=pt(e,i,null,t);try{U(mt,e)}finally{dt(e)}}}}function Xt(e,t,n,i){if(null!==(n=_n(n=lt(i)))){var r=Ze(n);if(null===r)n=null;else{var o=r.tag;if(13===o){if(null!==(n=et(r)))return n;n=null}else if(3===o){if(r.stateNode.hydrate)return 3===r.tag?r.stateNode.containerInfo:null;n=null}else r!==n&&(n=null)}}e=pt(e,i,n,t);try{U(mt,e)}finally{dt(e)}return null}var Zt={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},en=["Webkit","ms","Moz","O"];function tn(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||Zt.hasOwnProperty(e)&&Zt[e]?(""+t).trim():t+"px"}function nn(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var i=0===n.indexOf("--"),r=tn(n,t[n],i);"float"===n&&(n="cssFloat"),i?e.setProperty(n,r):e[n]=r}}Object.keys(Zt).forEach((function(e){en.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Zt[t]=Zt[e]}))}));var rn=r({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function on(e,t){if(t){if(rn[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e,""));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(a(62,""))}}function an(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var sn=Me;function ln(e,t){var n=Xe(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=E[t];for(var i=0;i<t.length;i++)ht(t[i],e,n)}function cn(){}function un(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function dn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function pn(e,t){var n,i=dn(e);for(e=0;i;){if(3===i.nodeType){if(n=e+i.textContent.length,e<=t&&n>=t)return{node:i,offset:t-e};e=n}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=dn(i)}}function mn(){for(var e=window,t=un();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=un((e=t.contentWindow).document)}return t}function hn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var fn=null,gn=null;function vn(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function bn(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var yn="function"==typeof setTimeout?setTimeout:void 0,kn="function"==typeof clearTimeout?clearTimeout:void 0;function wn(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Sn(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var Cn=Math.random().toString(36).slice(2),xn="__reactInternalInstance$"+Cn,En="__reactEventHandlers$"+Cn,Tn="__reactContainere$"+Cn;function _n(e){var t=e[xn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Tn]||n[xn]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Sn(e);null!==e;){if(n=e[xn])return n;e=Sn(e)}return t}n=(e=n).parentNode}return null}function jn(e){return!(e=e[xn]||e[Tn])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function On(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function Rn(e){return e[En]||null}function Pn(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function In(e,t){var n=e.stateNode;if(!n)return null;var i=h(n);if(!i)return null;n=i[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(i=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!i;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(a(231,t,typeof n));return n}function An(e,t,n){(t=In(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=it(n._dispatchListeners,t),n._dispatchInstances=it(n._dispatchInstances,e))}function Mn(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=Pn(t);for(t=n.length;0<t--;)An(n[t],"captured",e);for(t=0;t<n.length;t++)An(n[t],"bubbled",e)}}function Nn(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=In(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=it(n._dispatchListeners,t),n._dispatchInstances=it(n._dispatchInstances,e))}function Dn(e){e&&e.dispatchConfig.registrationName&&Nn(e._targetInst,null,e)}function Ln(e){rt(e,Mn)}var qn=null,Fn=null,zn=null;function Un(){if(zn)return zn;var e,t,n=Fn,i=n.length,r="value"in qn?qn.value:qn.textContent,o=r.length;for(e=0;e<i&&n[e]===r[e];e++);var a=i-e;for(t=1;t<=a&&n[i-t]===r[o-t];t++);return zn=r.slice(e,1<t?1-t:void 0)}function Bn(){return!0}function Vn(){return!1}function $n(e,t,n,i){for(var r in this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n,e=this.constructor.Interface)e.hasOwnProperty(r)&&((t=e[r])?this[r]=t(n):"target"===r?this.target=i:this[r]=n[r]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?Bn:Vn,this.isPropagationStopped=Vn,this}function Hn(e,t,n,i){if(this.eventPool.length){var r=this.eventPool.pop();return this.call(r,e,t,n,i),r}return new this(e,t,n,i)}function Wn(e){if(!(e instanceof this))throw Error(a(279));e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function Gn(e){e.eventPool=[],e.getPooled=Hn,e.release=Wn}r($n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Bn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Bn)},persist:function(){this.isPersistent=Bn},isPersistent:Vn,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=Vn,this._dispatchInstances=this._dispatchListeners=null}}),$n.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},$n.extend=function(e){function t(){}function n(){return i.apply(this,arguments)}var i=this;t.prototype=i.prototype;var o=new t;return r(o,n.prototype),n.prototype=o,n.prototype.constructor=n,n.Interface=r({},i.Interface,e),n.extend=i.extend,Gn(n),n},Gn($n);var Qn=$n.extend({data:null}),Jn=$n.extend({data:null}),Kn=[9,13,27,32],Yn=_&&"CompositionEvent"in window,Xn=null;_&&"documentMode"in document&&(Xn=document.documentMode);var Zn=_&&"TextEvent"in window&&!Xn,ei=_&&(!Yn||Xn&&8<Xn&&11>=Xn),ti=String.fromCharCode(32),ni={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},ii=!1;function ri(e,t){switch(e){case"keyup":return-1!==Kn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function oi(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var ai=!1;var si={eventTypes:ni,extractEvents:function(e,t,n,i){var r;if(Yn)e:{switch(e){case"compositionstart":var o=ni.compositionStart;break e;case"compositionend":o=ni.compositionEnd;break e;case"compositionupdate":o=ni.compositionUpdate;break e}o=void 0}else ai?ri(e,n)&&(o=ni.compositionEnd):"keydown"===e&&229===n.keyCode&&(o=ni.compositionStart);return o?(ei&&"ko"!==n.locale&&(ai||o!==ni.compositionStart?o===ni.compositionEnd&&ai&&(r=Un()):(Fn="value"in(qn=i)?qn.value:qn.textContent,ai=!0)),o=Qn.getPooled(o,t,n,i),r?o.data=r:null!==(r=oi(n))&&(o.data=r),Ln(o),r=o):r=null,(e=Zn?function(e,t){switch(e){case"compositionend":return oi(t);case"keypress":return 32!==t.which?null:(ii=!0,ti);case"textInput":return(e=t.data)===ti&&ii?null:e;default:return null}}(e,n):function(e,t){if(ai)return"compositionend"===e||!Yn&&ri(e,t)?(e=Un(),zn=Fn=qn=null,ai=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return ei&&"ko"!==t.locale?null:t.data;default:return null}}(e,n))?((t=Jn.getPooled(ni.beforeInput,t,n,i)).data=e,Ln(t)):t=null,null===r?t:null===t?r:[r,t]}},li={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function ci(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!li[e.type]:"textarea"===t}var ui={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function di(e,t,n){return(e=$n.getPooled(ui.change,e,t,n)).type="change",I(n),Ln(e),e}var pi=null,mi=null;function hi(e){st(e)}function fi(e){if(we(On(e)))return e}function gi(e,t){if("change"===e)return t}var vi=!1;function bi(){pi&&(pi.detachEvent("onpropertychange",yi),mi=pi=null)}function yi(e){if("value"===e.propertyName&&fi(mi))if(e=di(mi,e,lt(e)),q)st(e);else{q=!0;try{M(hi,e)}finally{q=!1,z()}}}function ki(e,t,n){"focus"===e?(bi(),mi=n,(pi=t).attachEvent("onpropertychange",yi)):"blur"===e&&bi()}function wi(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return fi(mi)}function Si(e,t){if("click"===e)return fi(t)}function Ci(e,t){if("input"===e||"change"===e)return fi(t)}_&&(vi=ct("input")&&(!document.documentMode||9<document.documentMode));var xi={eventTypes:ui,_isInputEventSupported:vi,extractEvents:function(e,t,n,i){var r=t?On(t):window,o=r.nodeName&&r.nodeName.toLowerCase();if("select"===o||"input"===o&&"file"===r.type)var a=gi;else if(ci(r))if(vi)a=Ci;else{a=wi;var s=ki}else(o=r.nodeName)&&"input"===o.toLowerCase()&&("checkbox"===r.type||"radio"===r.type)&&(a=Si);if(a&&(a=a(e,t)))return di(a,n,i);s&&s(e,r,t),"blur"===e&&(e=r._wrapperState)&&e.controlled&&"number"===r.type&&_e(r,"number",r.value)}},Ei=$n.extend({view:null,detail:null}),Ti={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function _i(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Ti[e])&&!!t[e]}function ji(){return _i}var Oi=0,Ri=0,Pi=!1,Ii=!1,Ai=Ei.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:ji,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},movementX:function(e){if("movementX"in e)return e.movementX;var t=Oi;return Oi=e.screenX,Pi?"mousemove"===e.type?e.screenX-t:0:(Pi=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=Ri;return Ri=e.screenY,Ii?"mousemove"===e.type?e.screenY-t:0:(Ii=!0,0)}}),Mi=Ai.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),Ni={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},Di={eventTypes:Ni,extractEvents:function(e,t,n,i,r){var o="mouseover"===e||"pointerover"===e,a="mouseout"===e||"pointerout"===e;if(o&&0==(32&r)&&(n.relatedTarget||n.fromElement)||!a&&!o)return null;(o=i.window===i?i:(o=i.ownerDocument)?o.defaultView||o.parentWindow:window,a)?(a=t,null!==(t=(t=n.relatedTarget||n.toElement)?_n(t):null)&&(t!==Ze(t)||5!==t.tag&&6!==t.tag)&&(t=null)):a=null;if(a===t)return null;if("mouseout"===e||"mouseover"===e)var s=Ai,l=Ni.mouseLeave,c=Ni.mouseEnter,u="mouse";else"pointerout"!==e&&"pointerover"!==e||(s=Mi,l=Ni.pointerLeave,c=Ni.pointerEnter,u="pointer");if(e=null==a?o:On(a),o=null==t?o:On(t),(l=s.getPooled(l,a,n,i)).type=u+"leave",l.target=e,l.relatedTarget=o,(n=s.getPooled(c,t,n,i)).type=u+"enter",n.target=o,n.relatedTarget=e,u=t,(i=a)&&u)e:{for(c=u,a=0,e=s=i;e;e=Pn(e))a++;for(e=0,t=c;t;t=Pn(t))e++;for(;0<a-e;)s=Pn(s),a--;for(;0<e-a;)c=Pn(c),e--;for(;a--;){if(s===c||s===c.alternate)break e;s=Pn(s),c=Pn(c)}s=null}else s=null;for(c=s,s=[];i&&i!==c&&(null===(a=i.alternate)||a!==c);)s.push(i),i=Pn(i);for(i=[];u&&u!==c&&(null===(a=u.alternate)||a!==c);)i.push(u),u=Pn(u);for(u=0;u<s.length;u++)Nn(s[u],"bubbled",l);for(u=i.length;0<u--;)Nn(i[u],"captured",n);return 0==(64&r)?[l]:[l,n]}};var Li="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},qi=Object.prototype.hasOwnProperty;function Fi(e,t){if(Li(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(i=0;i<n.length;i++)if(!qi.call(t,n[i])||!Li(e[n[i]],t[n[i]]))return!1;return!0}var zi=_&&"documentMode"in document&&11>=document.documentMode,Ui={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},Bi=null,Vi=null,$i=null,Hi=!1;function Wi(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return Hi||null==Bi||Bi!==un(n)?null:("selectionStart"in(n=Bi)&&hn(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},$i&&Fi($i,n)?null:($i=n,(e=$n.getPooled(Ui.select,Vi,e,t)).type="select",e.target=Bi,Ln(e),e))}var Gi={eventTypes:Ui,extractEvents:function(e,t,n,i,r,o){if(!(o=!(r=o||(i.window===i?i.document:9===i.nodeType?i:i.ownerDocument)))){e:{r=Xe(r),o=E.onSelect;for(var a=0;a<o.length;a++)if(!r.has(o[a])){r=!1;break e}r=!0}o=!r}if(o)return null;switch(r=t?On(t):window,e){case"focus":(ci(r)||"true"===r.contentEditable)&&(Bi=r,Vi=t,$i=null);break;case"blur":$i=Vi=Bi=null;break;case"mousedown":Hi=!0;break;case"contextmenu":case"mouseup":case"dragend":return Hi=!1,Wi(n,i);case"selectionchange":if(zi)break;case"keydown":case"keyup":return Wi(n,i)}return null}},Qi=$n.extend({animationName:null,elapsedTime:null,pseudoElement:null}),Ji=$n.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Ki=Ei.extend({relatedTarget:null});function Yi(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}var Xi={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Zi={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},er=Ei.extend({key:function(e){if(e.key){var t=Xi[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Yi(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Zi[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:ji,charCode:function(e){return"keypress"===e.type?Yi(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Yi(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),tr=Ai.extend({dataTransfer:null}),nr=Ei.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:ji}),ir=$n.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),rr=Ai.extend({deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null}),or={eventTypes:Lt,extractEvents:function(e,t,n,i){var r=qt.get(e);if(!r)return null;switch(e){case"keypress":if(0===Yi(n))return null;case"keydown":case"keyup":e=er;break;case"blur":case"focus":e=Ki;break;case"click":if(2===n.button)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":e=Ai;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=tr;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=nr;break;case We:case Ge:case Qe:e=Qi;break;case Je:e=ir;break;case"scroll":e=Ei;break;case"wheel":e=rr;break;case"copy":case"cut":case"paste":e=Ji;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=Mi;break;default:e=$n}return Ln(t=e.getPooled(r,t,n,i)),t}};if(b)throw Error(a(101));b=Array.prototype.slice.call("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),k(),h=Rn,f=jn,g=On,T({SimpleEventPlugin:or,EnterLeaveEventPlugin:Di,ChangeEventPlugin:xi,SelectEventPlugin:Gi,BeforeInputEventPlugin:si});var ar=[],sr=-1;function lr(e){0>sr||(e.current=ar[sr],ar[sr]=null,sr--)}function cr(e,t){sr++,ar[sr]=e.current,e.current=t}var ur={},dr={current:ur},pr={current:!1},mr=ur;function hr(e,t){var n=e.type.contextTypes;if(!n)return ur;var i=e.stateNode;if(i&&i.__reactInternalMemoizedUnmaskedChildContext===t)return i.__reactInternalMemoizedMaskedChildContext;var r,o={};for(r in n)o[r]=t[r];return i&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function fr(e){return null!=(e=e.childContextTypes)}function gr(){lr(pr),lr(dr)}function vr(e,t,n){if(dr.current!==ur)throw Error(a(168));cr(dr,t),cr(pr,n)}function br(e,t,n){var i=e.stateNode;if(e=t.childContextTypes,"function"!=typeof i.getChildContext)return n;for(var o in i=i.getChildContext())if(!(o in e))throw Error(a(108,ge(t)||"Unknown",o));return r({},n,{},i)}function yr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ur,mr=dr.current,cr(dr,e),cr(pr,pr.current),!0}function kr(e,t,n){var i=e.stateNode;if(!i)throw Error(a(169));n?(e=br(e,t,mr),i.__reactInternalMemoizedMergedChildContext=e,lr(pr),lr(dr),cr(dr,e)):lr(pr),cr(pr,n)}var wr=o.unstable_runWithPriority,Sr=o.unstable_scheduleCallback,Cr=o.unstable_cancelCallback,xr=o.unstable_requestPaint,Er=o.unstable_now,Tr=o.unstable_getCurrentPriorityLevel,_r=o.unstable_ImmediatePriority,jr=o.unstable_UserBlockingPriority,Or=o.unstable_NormalPriority,Rr=o.unstable_LowPriority,Pr=o.unstable_IdlePriority,Ir={},Ar=o.unstable_shouldYield,Mr=void 0!==xr?xr:function(){},Nr=null,Dr=null,Lr=!1,qr=Er(),Fr=1e4>qr?Er:function(){return Er()-qr};function zr(){switch(Tr()){case _r:return 99;case jr:return 98;case Or:return 97;case Rr:return 96;case Pr:return 95;default:throw Error(a(332))}}function Ur(e){switch(e){case 99:return _r;case 98:return jr;case 97:return Or;case 96:return Rr;case 95:return Pr;default:throw Error(a(332))}}function Br(e,t){return e=Ur(e),wr(e,t)}function Vr(e,t,n){return e=Ur(e),Sr(e,t,n)}function $r(e){return null===Nr?(Nr=[e],Dr=Sr(_r,Wr)):Nr.push(e),Ir}function Hr(){if(null!==Dr){var e=Dr;Dr=null,Cr(e)}Wr()}function Wr(){if(!Lr&&null!==Nr){Lr=!0;var e=0;try{var t=Nr;Br(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Nr=null}catch(t){throw null!==Nr&&(Nr=Nr.slice(e+1)),Sr(_r,Hr),t}finally{Lr=!1}}}function Gr(e,t,n){return 1073741821-(1+((1073741821-e+t/10)/(n/=10)|0))*n}function Qr(e,t){if(e&&e.defaultProps)for(var n in t=r({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}var Jr={current:null},Kr=null,Yr=null,Xr=null;function Zr(){Xr=Yr=Kr=null}function eo(e){var t=Jr.current;lr(Jr),e.type._context._currentValue=t}function to(e,t){for(;null!==e;){var n=e.alternate;if(e.childExpirationTime<t)e.childExpirationTime=t,null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t);else{if(!(null!==n&&n.childExpirationTime<t))break;n.childExpirationTime=t}e=e.return}}function no(e,t){Kr=e,Xr=Yr=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(e.expirationTime>=t&&(Ra=!0),e.firstContext=null)}function io(e,t){if(Xr!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(Xr=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Yr){if(null===Kr)throw Error(a(308));Yr=t,Kr.dependencies={expirationTime:0,firstContext:t,responders:null}}else Yr=Yr.next=t;return e._currentValue}var ro=!1;function oo(e){e.updateQueue={baseState:e.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function ao(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,baseQueue:e.baseQueue,shared:e.shared,effects:e.effects})}function so(e,t){return(e={expirationTime:e,suspenseConfig:t,tag:0,payload:null,callback:null,next:null}).next=e}function lo(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function co(e,t){var n=e.alternate;null!==n&&ao(n,e),null===(n=(e=e.updateQueue).baseQueue)?(e.baseQueue=t.next=t,t.next=t):(t.next=n.next,n.next=t)}function uo(e,t,n,i){var o=e.updateQueue;ro=!1;var a=o.baseQueue,s=o.shared.pending;if(null!==s){if(null!==a){var l=a.next;a.next=s.next,s.next=l}a=s,o.shared.pending=null,null!==(l=e.alternate)&&(null!==(l=l.updateQueue)&&(l.baseQueue=s))}if(null!==a){l=a.next;var c=o.baseState,u=0,d=null,p=null,m=null;if(null!==l)for(var h=l;;){if((s=h.expirationTime)<i){var f={expirationTime:h.expirationTime,suspenseConfig:h.suspenseConfig,tag:h.tag,payload:h.payload,callback:h.callback,next:null};null===m?(p=m=f,d=c):m=m.next=f,s>u&&(u=s)}else{null!==m&&(m=m.next={expirationTime:1073741823,suspenseConfig:h.suspenseConfig,tag:h.tag,payload:h.payload,callback:h.callback,next:null}),ol(s,h.suspenseConfig);e:{var g=e,v=h;switch(s=t,f=n,v.tag){case 1:if("function"==typeof(g=v.payload)){c=g.call(f,c,s);break e}c=g;break e;case 3:g.effectTag=-4097&g.effectTag|64;case 0:if(null==(s="function"==typeof(g=v.payload)?g.call(f,c,s):g))break e;c=r({},c,s);break e;case 2:ro=!0}}null!==h.callback&&(e.effectTag|=32,null===(s=o.effects)?o.effects=[h]:s.push(h))}if(null===(h=h.next)||h===l){if(null===(s=o.shared.pending))break;h=a.next=s.next,s.next=l,o.baseQueue=a=s,o.shared.pending=null}}null===m?d=c:m.next=p,o.baseState=d,o.baseQueue=m,al(u),e.expirationTime=u,e.memoizedState=c}}function po(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var i=e[t],r=i.callback;if(null!==r){if(i.callback=null,i=r,r=n,"function"!=typeof i)throw Error(a(191,i));i.call(r)}}}var mo=K.ReactCurrentBatchConfig,ho=(new i.Component).refs;function fo(e,t,n,i){n=null==(n=n(i,t=e.memoizedState))?t:r({},t,n),e.memoizedState=n,0===e.expirationTime&&(e.updateQueue.baseState=n)}var go={isMounted:function(e){return!!(e=e._reactInternalFiber)&&Ze(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var i=Ws(),r=mo.suspense;(r=so(i=Gs(i,e,r),r)).payload=t,null!=n&&(r.callback=n),lo(e,r),Qs(e,i)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var i=Ws(),r=mo.suspense;(r=so(i=Gs(i,e,r),r)).tag=1,r.payload=t,null!=n&&(r.callback=n),lo(e,r),Qs(e,i)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=Ws(),i=mo.suspense;(i=so(n=Gs(n,e,i),i)).tag=2,null!=t&&(i.callback=t),lo(e,i),Qs(e,n)}};function vo(e,t,n,i,r,o,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(i,o,a):!t.prototype||!t.prototype.isPureReactComponent||(!Fi(n,i)||!Fi(r,o))}function bo(e,t,n){var i=!1,r=ur,o=t.contextType;return"object"==typeof o&&null!==o?o=io(o):(r=fr(t)?mr:dr.current,o=(i=null!=(i=t.contextTypes))?hr(e,r):ur),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=go,e.stateNode=t,t._reactInternalFiber=e,i&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=r,e.__reactInternalMemoizedMaskedChildContext=o),t}function yo(e,t,n,i){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,i),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,i),t.state!==e&&go.enqueueReplaceState(t,t.state,null)}function ko(e,t,n,i){var r=e.stateNode;r.props=n,r.state=e.memoizedState,r.refs=ho,oo(e);var o=t.contextType;"object"==typeof o&&null!==o?r.context=io(o):(o=fr(t)?mr:dr.current,r.context=hr(e,o)),uo(e,n,r,i),r.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(fo(e,t,o,n),r.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof r.getSnapshotBeforeUpdate||"function"!=typeof r.UNSAFE_componentWillMount&&"function"!=typeof r.componentWillMount||(t=r.state,"function"==typeof r.componentWillMount&&r.componentWillMount(),"function"==typeof r.UNSAFE_componentWillMount&&r.UNSAFE_componentWillMount(),t!==r.state&&go.enqueueReplaceState(r,r.state,null),uo(e,n,r,i),r.state=e.memoizedState),"function"==typeof r.componentDidMount&&(e.effectTag|=4)}var wo=Array.isArray;function So(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var i=n.stateNode}if(!i)throw Error(a(147,e));var r=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===r?t.ref:((t=function(e){var t=i.refs;t===ho&&(t=i.refs={}),null===e?delete t[r]:t[r]=e})._stringRef=r,t)}if("string"!=typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function Co(e,t){if("textarea"!==e.type)throw Error(a(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,""))}function xo(e){function t(t,n){if(e){var i=t.lastEffect;null!==i?(i.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.effectTag=8}}function n(n,i){if(!e)return null;for(;null!==i;)t(n,i),i=i.sibling;return null}function i(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function r(e,t){return(e=Tl(e,t)).index=0,e.sibling=null,e}function o(t,n,i){return t.index=i,e?null!==(i=t.alternate)?(i=i.index)<n?(t.effectTag=2,n):i:(t.effectTag=2,n):n}function s(t){return e&&null===t.alternate&&(t.effectTag=2),t}function l(e,t,n,i){return null===t||6!==t.tag?((t=Ol(n,e.mode,i)).return=e,t):((t=r(t,n)).return=e,t)}function c(e,t,n,i){return null!==t&&t.elementType===n.type?((i=r(t,n.props)).ref=So(e,t,n),i.return=e,i):((i=_l(n.type,n.key,n.props,null,e.mode,i)).ref=So(e,t,n),i.return=e,i)}function u(e,t,n,i){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Rl(n,e.mode,i)).return=e,t):((t=r(t,n.children||[])).return=e,t)}function d(e,t,n,i,o){return null===t||7!==t.tag?((t=jl(n,e.mode,i,o)).return=e,t):((t=r(t,n)).return=e,t)}function p(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=Ol(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case ee:return(n=_l(t.type,t.key,t.props,null,e.mode,n)).ref=So(e,null,t),n.return=e,n;case te:return(t=Rl(t,e.mode,n)).return=e,t}if(wo(t)||fe(t))return(t=jl(t,e.mode,n,null)).return=e,t;Co(e,t)}return null}function m(e,t,n,i){var r=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==r?null:l(e,t,""+n,i);if("object"==typeof n&&null!==n){switch(n.$$typeof){case ee:return n.key===r?n.type===ne?d(e,t,n.props.children,i,r):c(e,t,n,i):null;case te:return n.key===r?u(e,t,n,i):null}if(wo(n)||fe(n))return null!==r?null:d(e,t,n,i,null);Co(e,n)}return null}function h(e,t,n,i,r){if("string"==typeof i||"number"==typeof i)return l(t,e=e.get(n)||null,""+i,r);if("object"==typeof i&&null!==i){switch(i.$$typeof){case ee:return e=e.get(null===i.key?n:i.key)||null,i.type===ne?d(t,e,i.props.children,r,i.key):c(t,e,i,r);case te:return u(t,e=e.get(null===i.key?n:i.key)||null,i,r)}if(wo(i)||fe(i))return d(t,e=e.get(n)||null,i,r,null);Co(t,i)}return null}function f(r,a,s,l){for(var c=null,u=null,d=a,f=a=0,g=null;null!==d&&f<s.length;f++){d.index>f?(g=d,d=null):g=d.sibling;var v=m(r,d,s[f],l);if(null===v){null===d&&(d=g);break}e&&d&&null===v.alternate&&t(r,d),a=o(v,a,f),null===u?c=v:u.sibling=v,u=v,d=g}if(f===s.length)return n(r,d),c;if(null===d){for(;f<s.length;f++)null!==(d=p(r,s[f],l))&&(a=o(d,a,f),null===u?c=d:u.sibling=d,u=d);return c}for(d=i(r,d);f<s.length;f++)null!==(g=h(d,r,f,s[f],l))&&(e&&null!==g.alternate&&d.delete(null===g.key?f:g.key),a=o(g,a,f),null===u?c=g:u.sibling=g,u=g);return e&&d.forEach((function(e){return t(r,e)})),c}function g(r,s,l,c){var u=fe(l);if("function"!=typeof u)throw Error(a(150));if(null==(l=u.call(l)))throw Error(a(151));for(var d=u=null,f=s,g=s=0,v=null,b=l.next();null!==f&&!b.done;g++,b=l.next()){f.index>g?(v=f,f=null):v=f.sibling;var y=m(r,f,b.value,c);if(null===y){null===f&&(f=v);break}e&&f&&null===y.alternate&&t(r,f),s=o(y,s,g),null===d?u=y:d.sibling=y,d=y,f=v}if(b.done)return n(r,f),u;if(null===f){for(;!b.done;g++,b=l.next())null!==(b=p(r,b.value,c))&&(s=o(b,s,g),null===d?u=b:d.sibling=b,d=b);return u}for(f=i(r,f);!b.done;g++,b=l.next())null!==(b=h(f,r,g,b.value,c))&&(e&&null!==b.alternate&&f.delete(null===b.key?g:b.key),s=o(b,s,g),null===d?u=b:d.sibling=b,d=b);return e&&f.forEach((function(e){return t(r,e)})),u}return function(e,i,o,l){var c="object"==typeof o&&null!==o&&o.type===ne&&null===o.key;c&&(o=o.props.children);var u="object"==typeof o&&null!==o;if(u)switch(o.$$typeof){case ee:e:{for(u=o.key,c=i;null!==c;){if(c.key===u){switch(c.tag){case 7:if(o.type===ne){n(e,c.sibling),(i=r(c,o.props.children)).return=e,e=i;break e}break;default:if(c.elementType===o.type){n(e,c.sibling),(i=r(c,o.props)).ref=So(e,c,o),i.return=e,e=i;break e}}n(e,c);break}t(e,c),c=c.sibling}o.type===ne?((i=jl(o.props.children,e.mode,l,o.key)).return=e,e=i):((l=_l(o.type,o.key,o.props,null,e.mode,l)).ref=So(e,i,o),l.return=e,e=l)}return s(e);case te:e:{for(c=o.key;null!==i;){if(i.key===c){if(4===i.tag&&i.stateNode.containerInfo===o.containerInfo&&i.stateNode.implementation===o.implementation){n(e,i.sibling),(i=r(i,o.children||[])).return=e,e=i;break e}n(e,i);break}t(e,i),i=i.sibling}(i=Rl(o,e.mode,l)).return=e,e=i}return s(e)}if("string"==typeof o||"number"==typeof o)return o=""+o,null!==i&&6===i.tag?(n(e,i.sibling),(i=r(i,o)).return=e,e=i):(n(e,i),(i=Ol(o,e.mode,l)).return=e,e=i),s(e);if(wo(o))return f(e,i,o,l);if(fe(o))return g(e,i,o,l);if(u&&Co(e,o),void 0===o&&!c)switch(e.tag){case 1:case 0:throw e=e.type,Error(a(152,e.displayName||e.name||"Component"))}return n(e,i)}}var Eo=xo(!0),To=xo(!1),_o={},jo={current:_o},Oo={current:_o},Ro={current:_o};function Po(e){if(e===_o)throw Error(a(174));return e}function Io(e,t){switch(cr(Ro,t),cr(Oo,e),cr(jo,_o),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Le(null,"");break;default:t=Le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}lr(jo),cr(jo,t)}function Ao(){lr(jo),lr(Oo),lr(Ro)}function Mo(e){Po(Ro.current);var t=Po(jo.current),n=Le(t,e.type);t!==n&&(cr(Oo,e),cr(jo,n))}function No(e){Oo.current===e&&(lr(jo),lr(Oo))}var Do={current:0};function Lo(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.effectTag))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function qo(e,t){return{responder:e,props:t}}var Fo=K.ReactCurrentDispatcher,zo=K.ReactCurrentBatchConfig,Uo=0,Bo=null,Vo=null,$o=null,Ho=!1;function Wo(){throw Error(a(321))}function Go(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Li(e[n],t[n]))return!1;return!0}function Qo(e,t,n,i,r,o){if(Uo=o,Bo=t,t.memoizedState=null,t.updateQueue=null,t.expirationTime=0,Fo.current=null===e||null===e.memoizedState?va:ba,e=n(i,r),t.expirationTime===Uo){o=0;do{if(t.expirationTime=0,!(25>o))throw Error(a(301));o+=1,$o=Vo=null,t.updateQueue=null,Fo.current=ya,e=n(i,r)}while(t.expirationTime===Uo)}if(Fo.current=ga,t=null!==Vo&&null!==Vo.next,Uo=0,$o=Vo=Bo=null,Ho=!1,t)throw Error(a(300));return e}function Jo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===$o?Bo.memoizedState=$o=e:$o=$o.next=e,$o}function Ko(){if(null===Vo){var e=Bo.alternate;e=null!==e?e.memoizedState:null}else e=Vo.next;var t=null===$o?Bo.memoizedState:$o.next;if(null!==t)$o=t,Vo=e;else{if(null===e)throw Error(a(310));e={memoizedState:(Vo=e).memoizedState,baseState:Vo.baseState,baseQueue:Vo.baseQueue,queue:Vo.queue,next:null},null===$o?Bo.memoizedState=$o=e:$o=$o.next=e}return $o}function Yo(e,t){return"function"==typeof t?t(e):t}function Xo(e){var t=Ko(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var i=Vo,r=i.baseQueue,o=n.pending;if(null!==o){if(null!==r){var s=r.next;r.next=o.next,o.next=s}i.baseQueue=r=o,n.pending=null}if(null!==r){r=r.next,i=i.baseState;var l=s=o=null,c=r;do{var u=c.expirationTime;if(u<Uo){var d={expirationTime:c.expirationTime,suspenseConfig:c.suspenseConfig,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null};null===l?(s=l=d,o=i):l=l.next=d,u>Bo.expirationTime&&(Bo.expirationTime=u,al(u))}else null!==l&&(l=l.next={expirationTime:1073741823,suspenseConfig:c.suspenseConfig,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null}),ol(u,c.suspenseConfig),i=c.eagerReducer===e?c.eagerState:e(i,c.action);c=c.next}while(null!==c&&c!==r);null===l?o=i:l.next=s,Li(i,t.memoizedState)||(Ra=!0),t.memoizedState=i,t.baseState=o,t.baseQueue=l,n.lastRenderedState=i}return[t.memoizedState,n.dispatch]}function Zo(e){var t=Ko(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var i=n.dispatch,r=n.pending,o=t.memoizedState;if(null!==r){n.pending=null;var s=r=r.next;do{o=e(o,s.action),s=s.next}while(s!==r);Li(o,t.memoizedState)||(Ra=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,i]}function ea(e){var t=Jo();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:Yo,lastRenderedState:e}).dispatch=fa.bind(null,Bo,e),[t.memoizedState,e]}function ta(e,t,n,i){return e={tag:e,create:t,destroy:n,deps:i,next:null},null===(t=Bo.updateQueue)?(t={lastEffect:null},Bo.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(i=n.next,n.next=e,e.next=i,t.lastEffect=e),e}function na(){return Ko().memoizedState}function ia(e,t,n,i){var r=Jo();Bo.effectTag|=e,r.memoizedState=ta(1|t,n,void 0,void 0===i?null:i)}function ra(e,t,n,i){var r=Ko();i=void 0===i?null:i;var o=void 0;if(null!==Vo){var a=Vo.memoizedState;if(o=a.destroy,null!==i&&Go(i,a.deps))return void ta(t,n,o,i)}Bo.effectTag|=e,r.memoizedState=ta(1|t,n,o,i)}function oa(e,t){return ia(516,4,e,t)}function aa(e,t){return ra(516,4,e,t)}function sa(e,t){return ra(4,2,e,t)}function la(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function ca(e,t,n){return n=null!=n?n.concat([e]):null,ra(4,2,la.bind(null,t,e),n)}function ua(){}function da(e,t){return Jo().memoizedState=[e,void 0===t?null:t],e}function pa(e,t){var n=Ko();t=void 0===t?null:t;var i=n.memoizedState;return null!==i&&null!==t&&Go(t,i[1])?i[0]:(n.memoizedState=[e,t],e)}function ma(e,t){var n=Ko();t=void 0===t?null:t;var i=n.memoizedState;return null!==i&&null!==t&&Go(t,i[1])?i[0]:(e=e(),n.memoizedState=[e,t],e)}function ha(e,t,n){var i=zr();Br(98>i?98:i,(function(){e(!0)})),Br(97<i?97:i,(function(){var i=zo.suspense;zo.suspense=void 0===t?null:t;try{e(!1),n()}finally{zo.suspense=i}}))}function fa(e,t,n){var i=Ws(),r=mo.suspense;r={expirationTime:i=Gs(i,e,r),suspenseConfig:r,action:n,eagerReducer:null,eagerState:null,next:null};var o=t.pending;if(null===o?r.next=r:(r.next=o.next,o.next=r),t.pending=r,o=e.alternate,e===Bo||null!==o&&o===Bo)Ho=!0,r.expirationTime=Uo,Bo.expirationTime=Uo;else{if(0===e.expirationTime&&(null===o||0===o.expirationTime)&&null!==(o=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=o(a,n);if(r.eagerReducer=o,r.eagerState=s,Li(s,a))return}catch(e){}Qs(e,i)}}var ga={readContext:io,useCallback:Wo,useContext:Wo,useEffect:Wo,useImperativeHandle:Wo,useLayoutEffect:Wo,useMemo:Wo,useReducer:Wo,useRef:Wo,useState:Wo,useDebugValue:Wo,useResponder:Wo,useDeferredValue:Wo,useTransition:Wo},va={readContext:io,useCallback:da,useContext:io,useEffect:oa,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,ia(4,2,la.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ia(4,2,e,t)},useMemo:function(e,t){var n=Jo();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var i=Jo();return t=void 0!==n?n(t):t,i.memoizedState=i.baseState=t,e=(e=i.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=fa.bind(null,Bo,e),[i.memoizedState,e]},useRef:function(e){return e={current:e},Jo().memoizedState=e},useState:ea,useDebugValue:ua,useResponder:qo,useDeferredValue:function(e,t){var n=ea(e),i=n[0],r=n[1];return oa((function(){var n=zo.suspense;zo.suspense=void 0===t?null:t;try{r(e)}finally{zo.suspense=n}}),[e,t]),i},useTransition:function(e){var t=ea(!1),n=t[0];return t=t[1],[da(ha.bind(null,t,e),[t,e]),n]}},ba={readContext:io,useCallback:pa,useContext:io,useEffect:aa,useImperativeHandle:ca,useLayoutEffect:sa,useMemo:ma,useReducer:Xo,useRef:na,useState:function(){return Xo(Yo)},useDebugValue:ua,useResponder:qo,useDeferredValue:function(e,t){var n=Xo(Yo),i=n[0],r=n[1];return aa((function(){var n=zo.suspense;zo.suspense=void 0===t?null:t;try{r(e)}finally{zo.suspense=n}}),[e,t]),i},useTransition:function(e){var t=Xo(Yo),n=t[0];return t=t[1],[pa(ha.bind(null,t,e),[t,e]),n]}},ya={readContext:io,useCallback:pa,useContext:io,useEffect:aa,useImperativeHandle:ca,useLayoutEffect:sa,useMemo:ma,useReducer:Zo,useRef:na,useState:function(){return Zo(Yo)},useDebugValue:ua,useResponder:qo,useDeferredValue:function(e,t){var n=Zo(Yo),i=n[0],r=n[1];return aa((function(){var n=zo.suspense;zo.suspense=void 0===t?null:t;try{r(e)}finally{zo.suspense=n}}),[e,t]),i},useTransition:function(e){var t=Zo(Yo),n=t[0];return t=t[1],[pa(ha.bind(null,t,e),[t,e]),n]}},ka=null,wa=null,Sa=!1;function Ca(e,t){var n=xl(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function xa(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);case 13:default:return!1}}function Ea(e){if(Sa){var t=wa;if(t){var n=t;if(!xa(e,t)){if(!(t=wn(n.nextSibling))||!xa(e,t))return e.effectTag=-1025&e.effectTag|2,Sa=!1,void(ka=e);Ca(ka,n)}ka=e,wa=wn(t.firstChild)}else e.effectTag=-1025&e.effectTag|2,Sa=!1,ka=e}}function Ta(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ka=e}function _a(e){if(e!==ka)return!1;if(!Sa)return Ta(e),Sa=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!bn(t,e.memoizedProps))for(t=wa;t;)Ca(e,t),t=wn(t.nextSibling);if(Ta(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){wa=wn(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}wa=null}}else wa=ka?wn(e.stateNode.nextSibling):null;return!0}function ja(){wa=ka=null,Sa=!1}var Oa=K.ReactCurrentOwner,Ra=!1;function Pa(e,t,n,i){t.child=null===e?To(t,null,n,i):Eo(t,e.child,n,i)}function Ia(e,t,n,i,r){n=n.render;var o=t.ref;return no(t,r),i=Qo(e,t,n,i,o,r),null===e||Ra?(t.effectTag|=1,Pa(e,t,i,r),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=r&&(e.expirationTime=0),Qa(e,t,r))}function Aa(e,t,n,i,r,o){if(null===e){var a=n.type;return"function"!=typeof a||El(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=_l(n.type,null,i,null,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Ma(e,t,a,i,r,o))}return a=e.child,r<o&&(r=a.memoizedProps,(n=null!==(n=n.compare)?n:Fi)(r,i)&&e.ref===t.ref)?Qa(e,t,o):(t.effectTag|=1,(e=Tl(a,i)).ref=t.ref,e.return=t,t.child=e)}function Ma(e,t,n,i,r,o){return null!==e&&Fi(e.memoizedProps,i)&&e.ref===t.ref&&(Ra=!1,r<o)?(t.expirationTime=e.expirationTime,Qa(e,t,o)):Da(e,t,n,i,o)}function Na(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function Da(e,t,n,i,r){var o=fr(n)?mr:dr.current;return o=hr(t,o),no(t,r),n=Qo(e,t,n,i,o,r),null===e||Ra?(t.effectTag|=1,Pa(e,t,n,r),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=r&&(e.expirationTime=0),Qa(e,t,r))}function La(e,t,n,i,r){if(fr(n)){var o=!0;yr(t)}else o=!1;if(no(t,r),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),bo(t,n,i),ko(t,n,i,r),i=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,c=n.contextType;"object"==typeof c&&null!==c?c=io(c):c=hr(t,c=fr(n)?mr:dr.current);var u=n.getDerivedStateFromProps,d="function"==typeof u||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==i||l!==c)&&yo(t,a,i,c),ro=!1;var p=t.memoizedState;a.state=p,uo(t,i,a,r),l=t.memoizedState,s!==i||p!==l||pr.current||ro?("function"==typeof u&&(fo(t,n,u,i),l=t.memoizedState),(s=ro||vo(t,n,s,i,p,l,c))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.effectTag|=4)):("function"==typeof a.componentDidMount&&(t.effectTag|=4),t.memoizedProps=i,t.memoizedState=l),a.props=i,a.state=l,a.context=c,i=s):("function"==typeof a.componentDidMount&&(t.effectTag|=4),i=!1)}else a=t.stateNode,ao(e,t),s=t.memoizedProps,a.props=t.type===t.elementType?s:Qr(t.type,s),l=a.context,"object"==typeof(c=n.contextType)&&null!==c?c=io(c):c=hr(t,c=fr(n)?mr:dr.current),(d="function"==typeof(u=n.getDerivedStateFromProps)||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==i||l!==c)&&yo(t,a,i,c),ro=!1,l=t.memoizedState,a.state=l,uo(t,i,a,r),p=t.memoizedState,s!==i||l!==p||pr.current||ro?("function"==typeof u&&(fo(t,n,u,i),p=t.memoizedState),(u=ro||vo(t,n,s,i,l,p,c))?(d||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(i,p,c),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(i,p,c)),"function"==typeof a.componentDidUpdate&&(t.effectTag|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=256),t.memoizedProps=i,t.memoizedState=p),a.props=i,a.state=p,a.context=c,i=u):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=256),i=!1);return qa(e,t,n,i,o,r)}function qa(e,t,n,i,r,o){Na(e,t);var a=0!=(64&t.effectTag);if(!i&&!a)return r&&kr(t,n,!1),Qa(e,t,o);i=t.stateNode,Oa.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:i.render();return t.effectTag|=1,null!==e&&a?(t.child=Eo(t,e.child,null,o),t.child=Eo(t,null,s,o)):Pa(e,t,s,o),t.memoizedState=i.state,r&&kr(t,n,!0),t.child}function Fa(e){var t=e.stateNode;t.pendingContext?vr(0,t.pendingContext,t.pendingContext!==t.context):t.context&&vr(0,t.context,!1),Io(e,t.containerInfo)}var za,Ua,Ba,Va={dehydrated:null,retryTime:0};function $a(e,t,n){var i,r=t.mode,o=t.pendingProps,a=Do.current,s=!1;if((i=0!=(64&t.effectTag))||(i=0!=(2&a)&&(null===e||null!==e.memoizedState)),i?(s=!0,t.effectTag&=-65):null!==e&&null===e.memoizedState||void 0===o.fallback||!0===o.unstable_avoidThisFallback||(a|=1),cr(Do,1&a),null===e){if(void 0!==o.fallback&&Ea(t),s){if(s=o.fallback,(o=jl(null,r,0,null)).return=t,0==(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,o.child=e;null!==e;)e.return=o,e=e.sibling;return(n=jl(s,r,n,null)).return=t,o.sibling=n,t.memoizedState=Va,t.child=o,n}return r=o.children,t.memoizedState=null,t.child=To(t,null,r,n)}if(null!==e.memoizedState){if(r=(e=e.child).sibling,s){if(o=o.fallback,(n=Tl(e,e.pendingProps)).return=t,0==(2&t.mode)&&(s=null!==t.memoizedState?t.child.child:t.child)!==e.child)for(n.child=s;null!==s;)s.return=n,s=s.sibling;return(r=Tl(r,o)).return=t,n.sibling=r,n.childExpirationTime=0,t.memoizedState=Va,t.child=n,r}return n=Eo(t,e.child,o.children,n),t.memoizedState=null,t.child=n}if(e=e.child,s){if(s=o.fallback,(o=jl(null,r,0,null)).return=t,o.child=e,null!==e&&(e.return=o),0==(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,o.child=e;null!==e;)e.return=o,e=e.sibling;return(n=jl(s,r,n,null)).return=t,o.sibling=n,n.effectTag|=2,o.childExpirationTime=0,t.memoizedState=Va,t.child=o,n}return t.memoizedState=null,t.child=Eo(t,e,o.children,n)}function Ha(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t),to(e.return,t)}function Wa(e,t,n,i,r,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:n,tailExpiration:0,tailMode:r,lastEffect:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=i,a.tail=n,a.tailExpiration=0,a.tailMode=r,a.lastEffect=o)}function Ga(e,t,n){var i=t.pendingProps,r=i.revealOrder,o=i.tail;if(Pa(e,t,i.children,n),0!=(2&(i=Do.current)))i=1&i|2,t.effectTag|=64;else{if(null!==e&&0!=(64&e.effectTag))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Ha(e,n);else if(19===e.tag)Ha(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}i&=1}if(cr(Do,i),0==(2&t.mode))t.memoizedState=null;else switch(r){case"forwards":for(n=t.child,r=null;null!==n;)null!==(e=n.alternate)&&null===Lo(e)&&(r=n),n=n.sibling;null===(n=r)?(r=t.child,t.child=null):(r=n.sibling,n.sibling=null),Wa(t,!1,r,n,o,t.lastEffect);break;case"backwards":for(n=null,r=t.child,t.child=null;null!==r;){if(null!==(e=r.alternate)&&null===Lo(e)){t.child=r;break}e=r.sibling,r.sibling=n,n=r,r=e}Wa(t,!0,n,null,o,t.lastEffect);break;case"together":Wa(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function Qa(e,t,n){null!==e&&(t.dependencies=e.dependencies);var i=t.expirationTime;if(0!==i&&al(i),t.childExpirationTime<n)return null;if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=Tl(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Tl(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Ja(e,t){switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var i=null;null!==n;)null!==n.alternate&&(i=n),n=n.sibling;null===i?t||null===e.tail?e.tail=null:e.tail.sibling=null:i.sibling=null}}function Ka(e,t,n){var i=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return fr(t.type)&&gr(),null;case 3:return Ao(),lr(pr),lr(dr),(n=t.stateNode).pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||!_a(t)||(t.effectTag|=4),null;case 5:No(t),n=Po(Ro.current);var o=t.type;if(null!==e&&null!=t.stateNode)Ua(e,t,o,i,n),e.ref!==t.ref&&(t.effectTag|=128);else{if(!i){if(null===t.stateNode)throw Error(a(166));return null}if(e=Po(jo.current),_a(t)){i=t.stateNode,o=t.type;var s=t.memoizedProps;switch(i[xn]=t,i[En]=s,o){case"iframe":case"object":case"embed":Gt("load",i);break;case"video":case"audio":for(e=0;e<Ke.length;e++)Gt(Ke[e],i);break;case"source":Gt("error",i);break;case"img":case"image":case"link":Gt("error",i),Gt("load",i);break;case"form":Gt("reset",i),Gt("submit",i);break;case"details":Gt("toggle",i);break;case"input":Ce(i,s),Gt("invalid",i),ln(n,"onChange");break;case"select":i._wrapperState={wasMultiple:!!s.multiple},Gt("invalid",i),ln(n,"onChange");break;case"textarea":Pe(i,s),Gt("invalid",i),ln(n,"onChange")}for(var l in on(o,s),e=null,s)if(s.hasOwnProperty(l)){var c=s[l];"children"===l?"string"==typeof c?i.textContent!==c&&(e=["children",c]):"number"==typeof c&&i.textContent!==""+c&&(e=["children",""+c]):x.hasOwnProperty(l)&&null!=c&&ln(n,l)}switch(o){case"input":ke(i),Te(i,s,!0);break;case"textarea":ke(i),Ae(i);break;case"select":case"option":break;default:"function"==typeof s.onClick&&(i.onclick=cn)}n=e,t.updateQueue=n,null!==n&&(t.effectTag|=4)}else{switch(l=9===n.nodeType?n:n.ownerDocument,e===sn&&(e=De(o)),e===sn?"script"===o?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof i.is?e=l.createElement(o,{is:i.is}):(e=l.createElement(o),"select"===o&&(l=e,i.multiple?l.multiple=!0:i.size&&(l.size=i.size))):e=l.createElementNS(e,o),e[xn]=t,e[En]=i,za(e,t),t.stateNode=e,l=an(o,i),o){case"iframe":case"object":case"embed":Gt("load",e),c=i;break;case"video":case"audio":for(c=0;c<Ke.length;c++)Gt(Ke[c],e);c=i;break;case"source":Gt("error",e),c=i;break;case"img":case"image":case"link":Gt("error",e),Gt("load",e),c=i;break;case"form":Gt("reset",e),Gt("submit",e),c=i;break;case"details":Gt("toggle",e),c=i;break;case"input":Ce(e,i),c=Se(e,i),Gt("invalid",e),ln(n,"onChange");break;case"option":c=je(e,i);break;case"select":e._wrapperState={wasMultiple:!!i.multiple},c=r({},i,{value:void 0}),Gt("invalid",e),ln(n,"onChange");break;case"textarea":Pe(e,i),c=Re(e,i),Gt("invalid",e),ln(n,"onChange");break;default:c=i}on(o,c);var u=c;for(s in u)if(u.hasOwnProperty(s)){var d=u[s];"style"===s?nn(e,d):"dangerouslySetInnerHTML"===s?null!=(d=d?d.__html:void 0)&&Fe(e,d):"children"===s?"string"==typeof d?("textarea"!==o||""!==d)&&ze(e,d):"number"==typeof d&&ze(e,""+d):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(x.hasOwnProperty(s)?null!=d&&ln(n,s):null!=d&&Y(e,s,d,l))}switch(o){case"input":ke(e),Te(e,i,!1);break;case"textarea":ke(e),Ae(e);break;case"option":null!=i.value&&e.setAttribute("value",""+be(i.value));break;case"select":e.multiple=!!i.multiple,null!=(n=i.value)?Oe(e,!!i.multiple,n,!1):null!=i.defaultValue&&Oe(e,!!i.multiple,i.defaultValue,!0);break;default:"function"==typeof c.onClick&&(e.onclick=cn)}vn(o,i)&&(t.effectTag|=4)}null!==t.ref&&(t.effectTag|=128)}return null;case 6:if(e&&null!=t.stateNode)Ba(0,t,e.memoizedProps,i);else{if("string"!=typeof i&&null===t.stateNode)throw Error(a(166));n=Po(Ro.current),Po(jo.current),_a(t)?(n=t.stateNode,i=t.memoizedProps,n[xn]=t,n.nodeValue!==i&&(t.effectTag|=4)):((n=(9===n.nodeType?n:n.ownerDocument).createTextNode(i))[xn]=t,t.stateNode=n)}return null;case 13:return lr(Do),i=t.memoizedState,0!=(64&t.effectTag)?(t.expirationTime=n,t):(n=null!==i,i=!1,null===e?void 0!==t.memoizedProps.fallback&&_a(t):(i=null!==(o=e.memoizedState),n||null===o||null!==(o=e.child.sibling)&&(null!==(s=t.firstEffect)?(t.firstEffect=o,o.nextEffect=s):(t.firstEffect=t.lastEffect=o,o.nextEffect=null),o.effectTag=8)),n&&!i&&0!=(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&Do.current)?_s===ks&&(_s=ws):(_s!==ks&&_s!==ws||(_s=Ss),0!==Is&&null!==xs&&(Al(xs,Ts),Ml(xs,Is)))),(n||i)&&(t.effectTag|=4),null);case 4:return Ao(),null;case 10:return eo(t),null;case 17:return fr(t.type)&&gr(),null;case 19:if(lr(Do),null===(i=t.memoizedState))return null;if(o=0!=(64&t.effectTag),null===(s=i.rendering)){if(o)Ja(i,!1);else if(_s!==ks||null!==e&&0!=(64&e.effectTag))for(s=t.child;null!==s;){if(null!==(e=Lo(s))){for(t.effectTag|=64,Ja(i,!1),null!==(o=e.updateQueue)&&(t.updateQueue=o,t.effectTag|=4),null===i.lastEffect&&(t.firstEffect=null),t.lastEffect=i.lastEffect,i=t.child;null!==i;)s=n,(o=i).effectTag&=2,o.nextEffect=null,o.firstEffect=null,o.lastEffect=null,null===(e=o.alternate)?(o.childExpirationTime=0,o.expirationTime=s,o.child=null,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null):(o.childExpirationTime=e.childExpirationTime,o.expirationTime=e.expirationTime,o.child=e.child,o.memoizedProps=e.memoizedProps,o.memoizedState=e.memoizedState,o.updateQueue=e.updateQueue,s=e.dependencies,o.dependencies=null===s?null:{expirationTime:s.expirationTime,firstContext:s.firstContext,responders:s.responders}),i=i.sibling;return cr(Do,1&Do.current|2),t.child}s=s.sibling}}else{if(!o)if(null!==(e=Lo(s))){if(t.effectTag|=64,o=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.effectTag|=4),Ja(i,!0),null===i.tail&&"hidden"===i.tailMode&&!s.alternate)return null!==(t=t.lastEffect=i.lastEffect)&&(t.nextEffect=null),null}else 2*Fr()-i.renderingStartTime>i.tailExpiration&&1<n&&(t.effectTag|=64,o=!0,Ja(i,!1),t.expirationTime=t.childExpirationTime=n-1);i.isBackwards?(s.sibling=t.child,t.child=s):(null!==(n=i.last)?n.sibling=s:t.child=s,i.last=s)}return null!==i.tail?(0===i.tailExpiration&&(i.tailExpiration=Fr()+500),n=i.tail,i.rendering=n,i.tail=n.sibling,i.lastEffect=t.lastEffect,i.renderingStartTime=Fr(),n.sibling=null,t=Do.current,cr(Do,o?1&t|2:1&t),n):null}throw Error(a(156,t.tag))}function Ya(e){switch(e.tag){case 1:fr(e.type)&&gr();var t=e.effectTag;return 4096&t?(e.effectTag=-4097&t|64,e):null;case 3:if(Ao(),lr(pr),lr(dr),0!=(64&(t=e.effectTag)))throw Error(a(285));return e.effectTag=-4097&t|64,e;case 5:return No(e),null;case 13:return lr(Do),4096&(t=e.effectTag)?(e.effectTag=-4097&t|64,e):null;case 19:return lr(Do),null;case 4:return Ao(),null;case 10:return eo(e),null;default:return null}}function Xa(e,t){return{value:e,source:t,stack:ve(t)}}za=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ua=function(e,t,n,i,o){var a=e.memoizedProps;if(a!==i){var s,l,c=t.stateNode;switch(Po(jo.current),e=null,n){case"input":a=Se(c,a),i=Se(c,i),e=[];break;case"option":a=je(c,a),i=je(c,i),e=[];break;case"select":a=r({},a,{value:void 0}),i=r({},i,{value:void 0}),e=[];break;case"textarea":a=Re(c,a),i=Re(c,i),e=[];break;default:"function"!=typeof a.onClick&&"function"==typeof i.onClick&&(c.onclick=cn)}for(s in on(n,i),n=null,a)if(!i.hasOwnProperty(s)&&a.hasOwnProperty(s)&&null!=a[s])if("style"===s)for(l in c=a[s])c.hasOwnProperty(l)&&(n||(n={}),n[l]="");else"dangerouslySetInnerHTML"!==s&&"children"!==s&&"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(x.hasOwnProperty(s)?e||(e=[]):(e=e||[]).push(s,null));for(s in i){var u=i[s];if(c=null!=a?a[s]:void 0,i.hasOwnProperty(s)&&u!==c&&(null!=u||null!=c))if("style"===s)if(c){for(l in c)!c.hasOwnProperty(l)||u&&u.hasOwnProperty(l)||(n||(n={}),n[l]="");for(l in u)u.hasOwnProperty(l)&&c[l]!==u[l]&&(n||(n={}),n[l]=u[l])}else n||(e||(e=[]),e.push(s,n)),n=u;else"dangerouslySetInnerHTML"===s?(u=u?u.__html:void 0,c=c?c.__html:void 0,null!=u&&c!==u&&(e=e||[]).push(s,u)):"children"===s?c===u||"string"!=typeof u&&"number"!=typeof u||(e=e||[]).push(s,""+u):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&(x.hasOwnProperty(s)?(null!=u&&ln(o,s),e||c===u||(e=[])):(e=e||[]).push(s,u))}n&&(e=e||[]).push("style",n),o=e,(t.updateQueue=o)&&(t.effectTag|=4)}},Ba=function(e,t,n,i){n!==i&&(t.effectTag|=4)};var Za="function"==typeof WeakSet?WeakSet:Set;function es(e,t){var n=t.source,i=t.stack;null===i&&null!==n&&(i=ve(n)),null!==n&&ge(n.type),t=t.value,null!==e&&1===e.tag&&ge(e.type);try{console.error(t)}catch(e){setTimeout((function(){throw e}))}}function ts(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){bl(e,t)}else t.current=null}function ns(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(256&t.effectTag&&null!==e){var n=e.memoizedProps,i=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:Qr(t.type,n),i),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:case 5:case 6:case 4:case 17:return}throw Error(a(163))}function is(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var i=n.destroy;n.destroy=void 0,void 0!==i&&i()}n=n.next}while(n!==t)}}function rs(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var i=n.create;n.destroy=i()}n=n.next}while(n!==t)}}function os(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:return void rs(3,n);case 1:if(e=n.stateNode,4&n.effectTag)if(null===t)e.componentDidMount();else{var i=n.elementType===n.type?t.memoizedProps:Qr(n.type,t.memoizedProps);e.componentDidUpdate(i,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate)}return void(null!==(t=n.updateQueue)&&po(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}po(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.effectTag&&vn(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&Dt(n)))));case 19:case 17:case 20:case 21:return}throw Error(a(163))}function as(e,t,n){switch("function"==typeof Sl&&Sl(t),t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var i=e.next;Br(97<n?97:n,(function(){var e=i;do{var n=e.destroy;if(void 0!==n){var r=t;try{n()}catch(e){bl(r,e)}}e=e.next}while(e!==i)}))}break;case 1:ts(t),"function"==typeof(n=t.stateNode).componentWillUnmount&&function(e,t){try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(t){bl(e,t)}}(t,n);break;case 5:ts(t);break;case 4:us(e,t,n)}}function ss(e){var t=e.alternate;e.return=null,e.child=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.alternate=null,e.firstEffect=null,e.lastEffect=null,e.pendingProps=null,e.memoizedProps=null,e.stateNode=null,null!==t&&ss(t)}function ls(e){return 5===e.tag||3===e.tag||4===e.tag}function cs(e){e:{for(var t=e.return;null!==t;){if(ls(t)){var n=t;break e}t=t.return}throw Error(a(160))}switch(t=n.stateNode,n.tag){case 5:var i=!1;break;case 3:case 4:t=t.containerInfo,i=!0;break;default:throw Error(a(161))}16&n.effectTag&&(ze(t,""),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||ls(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.effectTag)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break e}}i?function e(t,n,i){var r=t.tag,o=5===r||6===r;if(o)t=o?t.stateNode:t.stateNode.instance,n?8===i.nodeType?i.parentNode.insertBefore(t,n):i.insertBefore(t,n):(8===i.nodeType?(n=i.parentNode).insertBefore(t,i):(n=i).appendChild(t),null!==(i=i._reactRootContainer)&&void 0!==i||null!==n.onclick||(n.onclick=cn));else if(4!==r&&null!==(t=t.child))for(e(t,n,i),t=t.sibling;null!==t;)e(t,n,i),t=t.sibling}(e,n,t):function e(t,n,i){var r=t.tag,o=5===r||6===r;if(o)t=o?t.stateNode:t.stateNode.instance,n?i.insertBefore(t,n):i.appendChild(t);else if(4!==r&&null!==(t=t.child))for(e(t,n,i),t=t.sibling;null!==t;)e(t,n,i),t=t.sibling}(e,n,t)}function us(e,t,n){for(var i,r,o=t,s=!1;;){if(!s){s=o.return;e:for(;;){if(null===s)throw Error(a(160));switch(i=s.stateNode,s.tag){case 5:r=!1;break e;case 3:case 4:i=i.containerInfo,r=!0;break e}s=s.return}s=!0}if(5===o.tag||6===o.tag){e:for(var l=e,c=o,u=n,d=c;;)if(as(l,d,u),null!==d.child&&4!==d.tag)d.child.return=d,d=d.child;else{if(d===c)break e;for(;null===d.sibling;){if(null===d.return||d.return===c)break e;d=d.return}d.sibling.return=d.return,d=d.sibling}r?(l=i,c=o.stateNode,8===l.nodeType?l.parentNode.removeChild(c):l.removeChild(c)):i.removeChild(o.stateNode)}else if(4===o.tag){if(null!==o.child){i=o.stateNode.containerInfo,r=!0,o.child.return=o,o=o.child;continue}}else if(as(e,o,n),null!==o.child){o.child.return=o,o=o.child;continue}if(o===t)break;for(;null===o.sibling;){if(null===o.return||o.return===t)return;4===(o=o.return).tag&&(s=!1)}o.sibling.return=o.return,o=o.sibling}}function ds(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:return void is(3,t);case 1:return;case 5:var n=t.stateNode;if(null!=n){var i=t.memoizedProps,r=null!==e?e.memoizedProps:i;e=t.type;var o=t.updateQueue;if(t.updateQueue=null,null!==o){for(n[En]=i,"input"===e&&"radio"===i.type&&null!=i.name&&xe(n,i),an(e,r),t=an(e,i),r=0;r<o.length;r+=2){var s=o[r],l=o[r+1];"style"===s?nn(n,l):"dangerouslySetInnerHTML"===s?Fe(n,l):"children"===s?ze(n,l):Y(n,s,l,t)}switch(e){case"input":Ee(n,i);break;case"textarea":Ie(n,i);break;case"select":t=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!i.multiple,null!=(e=i.value)?Oe(n,!!i.multiple,e,!1):t!==!!i.multiple&&(null!=i.defaultValue?Oe(n,!!i.multiple,i.defaultValue,!0):Oe(n,!!i.multiple,i.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(a(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((t=t.stateNode).hydrate&&(t.hydrate=!1,Dt(t.containerInfo)));case 12:return;case 13:if(n=t,null===t.memoizedState?i=!1:(i=!0,n=t.child,Ms=Fr()),null!==n)e:for(e=n;;){if(5===e.tag)o=e.stateNode,i?"function"==typeof(o=o.style).setProperty?o.setProperty("display","none","important"):o.display="none":(o=e.stateNode,r=null!=(r=e.memoizedProps.style)&&r.hasOwnProperty("display")?r.display:null,o.style.display=tn("display",r));else if(6===e.tag)e.stateNode.nodeValue=i?"":e.memoizedProps;else{if(13===e.tag&&null!==e.memoizedState&&null===e.memoizedState.dehydrated){(o=e.child.sibling).return=e,e=o;continue}if(null!==e.child){e.child.return=e,e=e.child;continue}}if(e===n)break;for(;null===e.sibling;){if(null===e.return||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}return void ps(t);case 19:return void ps(t);case 17:return}throw Error(a(163))}function ps(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Za),t.forEach((function(t){var i=kl.bind(null,e,t);n.has(t)||(n.add(t),t.then(i,i))}))}}var ms="function"==typeof WeakMap?WeakMap:Map;function hs(e,t,n){(n=so(n,null)).tag=3,n.payload={element:null};var i=t.value;return n.callback=function(){Ds||(Ds=!0,Ls=i),es(e,t)},n}function fs(e,t,n){(n=so(n,null)).tag=3;var i=e.type.getDerivedStateFromError;if("function"==typeof i){var r=t.value;n.payload=function(){return es(e,t),i(r)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){"function"!=typeof i&&(null===qs?qs=new Set([this]):qs.add(this),es(e,t));var n=t.stack;this.componentDidCatch(t.value,{componentStack:null!==n?n:""})}),n}var gs,vs=Math.ceil,bs=K.ReactCurrentDispatcher,ys=K.ReactCurrentOwner,ks=0,ws=3,Ss=4,Cs=0,xs=null,Es=null,Ts=0,_s=ks,js=null,Os=1073741823,Rs=1073741823,Ps=null,Is=0,As=!1,Ms=0,Ns=null,Ds=!1,Ls=null,qs=null,Fs=!1,zs=null,Us=90,Bs=null,Vs=0,$s=null,Hs=0;function Ws(){return 0!=(48&Cs)?1073741821-(Fr()/10|0):0!==Hs?Hs:Hs=1073741821-(Fr()/10|0)}function Gs(e,t,n){if(0==(2&(t=t.mode)))return 1073741823;var i=zr();if(0==(4&t))return 99===i?1073741823:1073741822;if(0!=(16&Cs))return Ts;if(null!==n)e=Gr(e,0|n.timeoutMs||5e3,250);else switch(i){case 99:e=1073741823;break;case 98:e=Gr(e,150,100);break;case 97:case 96:e=Gr(e,5e3,250);break;case 95:e=2;break;default:throw Error(a(326))}return null!==xs&&e===Ts&&--e,e}function Qs(e,t){if(50<Vs)throw Vs=0,$s=null,Error(a(185));if(null!==(e=Js(e,t))){var n=zr();1073741823===t?0!=(8&Cs)&&0==(48&Cs)?Zs(e):(Ys(e),0===Cs&&Hr()):Ys(e),0==(4&Cs)||98!==n&&99!==n||(null===Bs?Bs=new Map([[e,t]]):(void 0===(n=Bs.get(e))||n>t)&&Bs.set(e,t))}}function Js(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t);var i=e.return,r=null;if(null===i&&3===e.tag)r=e.stateNode;else for(;null!==i;){if(n=i.alternate,i.childExpirationTime<t&&(i.childExpirationTime=t),null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t),null===i.return&&3===i.tag){r=i.stateNode;break}i=i.return}return null!==r&&(xs===r&&(al(t),_s===Ss&&Al(r,Ts)),Ml(r,t)),r}function Ks(e){var t=e.lastExpiredTime;if(0!==t)return t;if(!Il(e,t=e.firstPendingTime))return t;var n=e.lastPingedTime;return 2>=(e=n>(e=e.nextKnownPendingLevel)?n:e)&&t!==e?0:e}function Ys(e){if(0!==e.lastExpiredTime)e.callbackExpirationTime=1073741823,e.callbackPriority=99,e.callbackNode=$r(Zs.bind(null,e));else{var t=Ks(e),n=e.callbackNode;if(0===t)null!==n&&(e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90);else{var i=Ws();if(1073741823===t?i=99:1===t||2===t?i=95:i=0>=(i=10*(1073741821-t)-10*(1073741821-i))?99:250>=i?98:5250>=i?97:95,null!==n){var r=e.callbackPriority;if(e.callbackExpirationTime===t&&r>=i)return;n!==Ir&&Cr(n)}e.callbackExpirationTime=t,e.callbackPriority=i,t=1073741823===t?$r(Zs.bind(null,e)):Vr(i,Xs.bind(null,e),{timeout:10*(1073741821-t)-Fr()}),e.callbackNode=t}}}function Xs(e,t){if(Hs=0,t)return Nl(e,t=Ws()),Ys(e),null;var n=Ks(e);if(0!==n){if(t=e.callbackNode,0!=(48&Cs))throw Error(a(327));if(fl(),e===xs&&n===Ts||nl(e,n),null!==Es){var i=Cs;Cs|=16;for(var r=rl();;)try{ll();break}catch(t){il(e,t)}if(Zr(),Cs=i,bs.current=r,1===_s)throw t=js,nl(e,n),Al(e,n),Ys(e),t;if(null===Es)switch(r=e.finishedWork=e.current.alternate,e.finishedExpirationTime=n,i=_s,xs=null,i){case ks:case 1:throw Error(a(345));case 2:Nl(e,2<n?2:n);break;case ws:if(Al(e,n),n===(i=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=dl(r)),1073741823===Os&&10<(r=Ms+500-Fr())){if(As){var o=e.lastPingedTime;if(0===o||o>=n){e.lastPingedTime=n,nl(e,n);break}}if(0!==(o=Ks(e))&&o!==n)break;if(0!==i&&i!==n){e.lastPingedTime=i;break}e.timeoutHandle=yn(pl.bind(null,e),r);break}pl(e);break;case Ss:if(Al(e,n),n===(i=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=dl(r)),As&&(0===(r=e.lastPingedTime)||r>=n)){e.lastPingedTime=n,nl(e,n);break}if(0!==(r=Ks(e))&&r!==n)break;if(0!==i&&i!==n){e.lastPingedTime=i;break}if(1073741823!==Rs?i=10*(1073741821-Rs)-Fr():1073741823===Os?i=0:(i=10*(1073741821-Os)-5e3,0>(i=(r=Fr())-i)&&(i=0),(n=10*(1073741821-n)-r)<(i=(120>i?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*vs(i/1960))-i)&&(i=n)),10<i){e.timeoutHandle=yn(pl.bind(null,e),i);break}pl(e);break;case 5:if(1073741823!==Os&&null!==Ps){o=Os;var s=Ps;if(0>=(i=0|s.busyMinDurationMs)?i=0:(r=0|s.busyDelayMs,i=(o=Fr()-(10*(1073741821-o)-(0|s.timeoutMs||5e3)))<=r?0:r+i-o),10<i){Al(e,n),e.timeoutHandle=yn(pl.bind(null,e),i);break}}pl(e);break;default:throw Error(a(329))}if(Ys(e),e.callbackNode===t)return Xs.bind(null,e)}}return null}function Zs(e){var t=e.lastExpiredTime;if(t=0!==t?t:1073741823,0!=(48&Cs))throw Error(a(327));if(fl(),e===xs&&t===Ts||nl(e,t),null!==Es){var n=Cs;Cs|=16;for(var i=rl();;)try{sl();break}catch(t){il(e,t)}if(Zr(),Cs=n,bs.current=i,1===_s)throw n=js,nl(e,t),Al(e,t),Ys(e),n;if(null!==Es)throw Error(a(261));e.finishedWork=e.current.alternate,e.finishedExpirationTime=t,xs=null,pl(e),Ys(e)}return null}function el(e,t){var n=Cs;Cs|=1;try{return e(t)}finally{0===(Cs=n)&&Hr()}}function tl(e,t){var n=Cs;Cs&=-2,Cs|=8;try{return e(t)}finally{0===(Cs=n)&&Hr()}}function nl(e,t){e.finishedWork=null,e.finishedExpirationTime=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,kn(n)),null!==Es)for(n=Es.return;null!==n;){var i=n;switch(i.tag){case 1:null!=(i=i.type.childContextTypes)&&gr();break;case 3:Ao(),lr(pr),lr(dr);break;case 5:No(i);break;case 4:Ao();break;case 13:case 19:lr(Do);break;case 10:eo(i)}n=n.return}xs=e,Es=Tl(e.current,null),Ts=t,_s=ks,js=null,Rs=Os=1073741823,Ps=null,Is=0,As=!1}function il(e,t){for(;;){try{if(Zr(),Fo.current=ga,Ho)for(var n=Bo.memoizedState;null!==n;){var i=n.queue;null!==i&&(i.pending=null),n=n.next}if(Uo=0,$o=Vo=Bo=null,Ho=!1,null===Es||null===Es.return)return _s=1,js=t,Es=null;e:{var r=e,o=Es.return,a=Es,s=t;if(t=Ts,a.effectTag|=2048,a.firstEffect=a.lastEffect=null,null!==s&&"object"==typeof s&&"function"==typeof s.then){var l=s;if(0==(2&a.mode)){var c=a.alternate;c?(a.updateQueue=c.updateQueue,a.memoizedState=c.memoizedState,a.expirationTime=c.expirationTime):(a.updateQueue=null,a.memoizedState=null)}var u=0!=(1&Do.current),d=o;do{var p;if(p=13===d.tag){var m=d.memoizedState;if(null!==m)p=null!==m.dehydrated;else{var h=d.memoizedProps;p=void 0!==h.fallback&&(!0!==h.unstable_avoidThisFallback||!u)}}if(p){var f=d.updateQueue;if(null===f){var g=new Set;g.add(l),d.updateQueue=g}else f.add(l);if(0==(2&d.mode)){if(d.effectTag|=64,a.effectTag&=-2981,1===a.tag)if(null===a.alternate)a.tag=17;else{var v=so(1073741823,null);v.tag=2,lo(a,v)}a.expirationTime=1073741823;break e}s=void 0,a=t;var b=r.pingCache;if(null===b?(b=r.pingCache=new ms,s=new Set,b.set(l,s)):void 0===(s=b.get(l))&&(s=new Set,b.set(l,s)),!s.has(a)){s.add(a);var y=yl.bind(null,r,l,a);l.then(y,y)}d.effectTag|=4096,d.expirationTime=t;break e}d=d.return}while(null!==d);s=Error((ge(a.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."+ve(a))}5!==_s&&(_s=2),s=Xa(s,a),d=o;do{switch(d.tag){case 3:l=s,d.effectTag|=4096,d.expirationTime=t,co(d,hs(d,l,t));break e;case 1:l=s;var k=d.type,w=d.stateNode;if(0==(64&d.effectTag)&&("function"==typeof k.getDerivedStateFromError||null!==w&&"function"==typeof w.componentDidCatch&&(null===qs||!qs.has(w)))){d.effectTag|=4096,d.expirationTime=t,co(d,fs(d,l,t));break e}}d=d.return}while(null!==d)}Es=ul(Es)}catch(e){t=e;continue}break}}function rl(){var e=bs.current;return bs.current=ga,null===e?ga:e}function ol(e,t){e<Os&&2<e&&(Os=e),null!==t&&e<Rs&&2<e&&(Rs=e,Ps=t)}function al(e){e>Is&&(Is=e)}function sl(){for(;null!==Es;)Es=cl(Es)}function ll(){for(;null!==Es&&!Ar();)Es=cl(Es)}function cl(e){var t=gs(e.alternate,e,Ts);return e.memoizedProps=e.pendingProps,null===t&&(t=ul(e)),ys.current=null,t}function ul(e){Es=e;do{var t=Es.alternate;if(e=Es.return,0==(2048&Es.effectTag)){if(t=Ka(t,Es,Ts),1===Ts||1!==Es.childExpirationTime){for(var n=0,i=Es.child;null!==i;){var r=i.expirationTime,o=i.childExpirationTime;r>n&&(n=r),o>n&&(n=o),i=i.sibling}Es.childExpirationTime=n}if(null!==t)return t;null!==e&&0==(2048&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=Es.firstEffect),null!==Es.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=Es.firstEffect),e.lastEffect=Es.lastEffect),1<Es.effectTag&&(null!==e.lastEffect?e.lastEffect.nextEffect=Es:e.firstEffect=Es,e.lastEffect=Es))}else{if(null!==(t=Ya(Es)))return t.effectTag&=2047,t;null!==e&&(e.firstEffect=e.lastEffect=null,e.effectTag|=2048)}if(null!==(t=Es.sibling))return t;Es=e}while(null!==Es);return _s===ks&&(_s=5),null}function dl(e){var t=e.expirationTime;return t>(e=e.childExpirationTime)?t:e}function pl(e){var t=zr();return Br(99,ml.bind(null,e,t)),null}function ml(e,t){do{fl()}while(null!==zs);if(0!=(48&Cs))throw Error(a(327));var n=e.finishedWork,i=e.finishedExpirationTime;if(null===n)return null;if(e.finishedWork=null,e.finishedExpirationTime=0,n===e.current)throw Error(a(177));e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90,e.nextKnownPendingLevel=0;var r=dl(n);if(e.firstPendingTime=r,i<=e.lastSuspendedTime?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:i<=e.firstSuspendedTime&&(e.firstSuspendedTime=i-1),i<=e.lastPingedTime&&(e.lastPingedTime=0),i<=e.lastExpiredTime&&(e.lastExpiredTime=0),e===xs&&(Es=xs=null,Ts=0),1<n.effectTag?null!==n.lastEffect?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,null!==r){var o=Cs;Cs|=32,ys.current=null,fn=Wt;var s=mn();if(hn(s)){if("selectionStart"in s)var l={start:s.selectionStart,end:s.selectionEnd};else e:{var c=(l=(l=s.ownerDocument)&&l.defaultView||window).getSelection&&l.getSelection();if(c&&0!==c.rangeCount){l=c.anchorNode;var u=c.anchorOffset,d=c.focusNode;c=c.focusOffset;try{l.nodeType,d.nodeType}catch(e){l=null;break e}var p=0,m=-1,h=-1,f=0,g=0,v=s,b=null;t:for(;;){for(var y;v!==l||0!==u&&3!==v.nodeType||(m=p+u),v!==d||0!==c&&3!==v.nodeType||(h=p+c),3===v.nodeType&&(p+=v.nodeValue.length),null!==(y=v.firstChild);)b=v,v=y;for(;;){if(v===s)break t;if(b===l&&++f===u&&(m=p),b===d&&++g===c&&(h=p),null!==(y=v.nextSibling))break;b=(v=b).parentNode}v=y}l=-1===m||-1===h?null:{start:m,end:h}}else l=null}l=l||{start:0,end:0}}else l=null;gn={activeElementDetached:null,focusedElem:s,selectionRange:l},Wt=!1,Ns=r;do{try{hl()}catch(e){if(null===Ns)throw Error(a(330));bl(Ns,e),Ns=Ns.nextEffect}}while(null!==Ns);Ns=r;do{try{for(s=e,l=t;null!==Ns;){var k=Ns.effectTag;if(16&k&&ze(Ns.stateNode,""),128&k){var w=Ns.alternate;if(null!==w){var S=w.ref;null!==S&&("function"==typeof S?S(null):S.current=null)}}switch(1038&k){case 2:cs(Ns),Ns.effectTag&=-3;break;case 6:cs(Ns),Ns.effectTag&=-3,ds(Ns.alternate,Ns);break;case 1024:Ns.effectTag&=-1025;break;case 1028:Ns.effectTag&=-1025,ds(Ns.alternate,Ns);break;case 4:ds(Ns.alternate,Ns);break;case 8:us(s,u=Ns,l),ss(u)}Ns=Ns.nextEffect}}catch(e){if(null===Ns)throw Error(a(330));bl(Ns,e),Ns=Ns.nextEffect}}while(null!==Ns);if(S=gn,w=mn(),k=S.focusedElem,l=S.selectionRange,w!==k&&k&&k.ownerDocument&&function e(t,n){return!(!t||!n)&&(t===n||(!t||3!==t.nodeType)&&(n&&3===n.nodeType?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}(k.ownerDocument.documentElement,k)){null!==l&&hn(k)&&(w=l.start,void 0===(S=l.end)&&(S=w),"selectionStart"in k?(k.selectionStart=w,k.selectionEnd=Math.min(S,k.value.length)):(S=(w=k.ownerDocument||document)&&w.defaultView||window).getSelection&&(S=S.getSelection(),u=k.textContent.length,s=Math.min(l.start,u),l=void 0===l.end?s:Math.min(l.end,u),!S.extend&&s>l&&(u=l,l=s,s=u),u=pn(k,s),d=pn(k,l),u&&d&&(1!==S.rangeCount||S.anchorNode!==u.node||S.anchorOffset!==u.offset||S.focusNode!==d.node||S.focusOffset!==d.offset)&&((w=w.createRange()).setStart(u.node,u.offset),S.removeAllRanges(),s>l?(S.addRange(w),S.extend(d.node,d.offset)):(w.setEnd(d.node,d.offset),S.addRange(w))))),w=[];for(S=k;S=S.parentNode;)1===S.nodeType&&w.push({element:S,left:S.scrollLeft,top:S.scrollTop});for("function"==typeof k.focus&&k.focus(),k=0;k<w.length;k++)(S=w[k]).element.scrollLeft=S.left,S.element.scrollTop=S.top}Wt=!!fn,gn=fn=null,e.current=n,Ns=r;do{try{for(k=e;null!==Ns;){var C=Ns.effectTag;if(36&C&&os(k,Ns.alternate,Ns),128&C){w=void 0;var x=Ns.ref;if(null!==x){var E=Ns.stateNode;switch(Ns.tag){case 5:w=E;break;default:w=E}"function"==typeof x?x(w):x.current=w}}Ns=Ns.nextEffect}}catch(e){if(null===Ns)throw Error(a(330));bl(Ns,e),Ns=Ns.nextEffect}}while(null!==Ns);Ns=null,Mr(),Cs=o}else e.current=n;if(Fs)Fs=!1,zs=e,Us=t;else for(Ns=r;null!==Ns;)t=Ns.nextEffect,Ns.nextEffect=null,Ns=t;if(0===(t=e.firstPendingTime)&&(qs=null),1073741823===t?e===$s?Vs++:(Vs=0,$s=e):Vs=0,"function"==typeof wl&&wl(n.stateNode,i),Ys(e),Ds)throw Ds=!1,e=Ls,Ls=null,e;return 0!=(8&Cs)||Hr(),null}function hl(){for(;null!==Ns;){var e=Ns.effectTag;0!=(256&e)&&ns(Ns.alternate,Ns),0==(512&e)||Fs||(Fs=!0,Vr(97,(function(){return fl(),null}))),Ns=Ns.nextEffect}}function fl(){if(90!==Us){var e=97<Us?97:Us;return Us=90,Br(e,gl)}}function gl(){if(null===zs)return!1;var e=zs;if(zs=null,0!=(48&Cs))throw Error(a(331));var t=Cs;for(Cs|=32,e=e.current.firstEffect;null!==e;){try{var n=e;if(0!=(512&n.effectTag))switch(n.tag){case 0:case 11:case 15:case 22:is(5,n),rs(5,n)}}catch(t){if(null===e)throw Error(a(330));bl(e,t)}n=e.nextEffect,e.nextEffect=null,e=n}return Cs=t,Hr(),!0}function vl(e,t,n){lo(e,t=hs(e,t=Xa(n,t),1073741823)),null!==(e=Js(e,1073741823))&&Ys(e)}function bl(e,t){if(3===e.tag)vl(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){vl(n,e,t);break}if(1===n.tag){var i=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof i.componentDidCatch&&(null===qs||!qs.has(i))){lo(n,e=fs(n,e=Xa(t,e),1073741823)),null!==(n=Js(n,1073741823))&&Ys(n);break}}n=n.return}}function yl(e,t,n){var i=e.pingCache;null!==i&&i.delete(t),xs===e&&Ts===n?_s===Ss||_s===ws&&1073741823===Os&&Fr()-Ms<500?nl(e,Ts):As=!0:Il(e,n)&&(0!==(t=e.lastPingedTime)&&t<n||(e.lastPingedTime=n,Ys(e)))}function kl(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(t=Gs(t=Ws(),e,null)),null!==(e=Js(e,t))&&Ys(e)}gs=function(e,t,n){var i=t.expirationTime;if(null!==e){var r=t.pendingProps;if(e.memoizedProps!==r||pr.current)Ra=!0;else{if(i<n){switch(Ra=!1,t.tag){case 3:Fa(t),ja();break;case 5:if(Mo(t),4&t.mode&&1!==n&&r.hidden)return t.expirationTime=t.childExpirationTime=1,null;break;case 1:fr(t.type)&&yr(t);break;case 4:Io(t,t.stateNode.containerInfo);break;case 10:i=t.memoizedProps.value,r=t.type._context,cr(Jr,r._currentValue),r._currentValue=i;break;case 13:if(null!==t.memoizedState)return 0!==(i=t.child.childExpirationTime)&&i>=n?$a(e,t,n):(cr(Do,1&Do.current),null!==(t=Qa(e,t,n))?t.sibling:null);cr(Do,1&Do.current);break;case 19:if(i=t.childExpirationTime>=n,0!=(64&e.effectTag)){if(i)return Ga(e,t,n);t.effectTag|=64}if(null!==(r=t.memoizedState)&&(r.rendering=null,r.tail=null),cr(Do,Do.current),!i)return null}return Qa(e,t,n)}Ra=!1}}else Ra=!1;switch(t.expirationTime=0,t.tag){case 2:if(i=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,r=hr(t,dr.current),no(t,n),r=Qo(null,t,i,e,r,n),t.effectTag|=1,"object"==typeof r&&null!==r&&"function"==typeof r.render&&void 0===r.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,fr(i)){var o=!0;yr(t)}else o=!1;t.memoizedState=null!==r.state&&void 0!==r.state?r.state:null,oo(t);var s=i.getDerivedStateFromProps;"function"==typeof s&&fo(t,i,s,e),r.updater=go,t.stateNode=r,r._reactInternalFiber=t,ko(t,i,e,n),t=qa(null,t,i,!0,o,n)}else t.tag=0,Pa(null,t,r,n),t=t.child;return t;case 16:e:{if(r=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,function(e){if(-1===e._status){e._status=0;var t=e._ctor;t=t(),e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}}(r),1!==r._status)throw r._result;switch(r=r._result,t.type=r,o=t.tag=function(e){if("function"==typeof e)return El(e)?1:0;if(null!=e){if((e=e.$$typeof)===le)return 11;if(e===de)return 14}return 2}(r),e=Qr(r,e),o){case 0:t=Da(null,t,r,e,n);break e;case 1:t=La(null,t,r,e,n);break e;case 11:t=Ia(null,t,r,e,n);break e;case 14:t=Aa(null,t,r,Qr(r.type,e),i,n);break e}throw Error(a(306,r,""))}return t;case 0:return i=t.type,r=t.pendingProps,Da(e,t,i,r=t.elementType===i?r:Qr(i,r),n);case 1:return i=t.type,r=t.pendingProps,La(e,t,i,r=t.elementType===i?r:Qr(i,r),n);case 3:if(Fa(t),i=t.updateQueue,null===e||null===i)throw Error(a(282));if(i=t.pendingProps,r=null!==(r=t.memoizedState)?r.element:null,ao(e,t),uo(t,i,null,n),(i=t.memoizedState.element)===r)ja(),t=Qa(e,t,n);else{if((r=t.stateNode.hydrate)&&(wa=wn(t.stateNode.containerInfo.firstChild),ka=t,r=Sa=!0),r)for(n=To(t,null,i,n),t.child=n;n;)n.effectTag=-3&n.effectTag|1024,n=n.sibling;else Pa(e,t,i,n),ja();t=t.child}return t;case 5:return Mo(t),null===e&&Ea(t),i=t.type,r=t.pendingProps,o=null!==e?e.memoizedProps:null,s=r.children,bn(i,r)?s=null:null!==o&&bn(i,o)&&(t.effectTag|=16),Na(e,t),4&t.mode&&1!==n&&r.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(Pa(e,t,s,n),t=t.child),t;case 6:return null===e&&Ea(t),null;case 13:return $a(e,t,n);case 4:return Io(t,t.stateNode.containerInfo),i=t.pendingProps,null===e?t.child=Eo(t,null,i,n):Pa(e,t,i,n),t.child;case 11:return i=t.type,r=t.pendingProps,Ia(e,t,i,r=t.elementType===i?r:Qr(i,r),n);case 7:return Pa(e,t,t.pendingProps,n),t.child;case 8:case 12:return Pa(e,t,t.pendingProps.children,n),t.child;case 10:e:{i=t.type._context,r=t.pendingProps,s=t.memoizedProps,o=r.value;var l=t.type._context;if(cr(Jr,l._currentValue),l._currentValue=o,null!==s)if(l=s.value,0===(o=Li(l,o)?0:0|("function"==typeof i._calculateChangedBits?i._calculateChangedBits(l,o):1073741823))){if(s.children===r.children&&!pr.current){t=Qa(e,t,n);break e}}else for(null!==(l=t.child)&&(l.return=t);null!==l;){var c=l.dependencies;if(null!==c){s=l.child;for(var u=c.firstContext;null!==u;){if(u.context===i&&0!=(u.observedBits&o)){1===l.tag&&((u=so(n,null)).tag=2,lo(l,u)),l.expirationTime<n&&(l.expirationTime=n),null!==(u=l.alternate)&&u.expirationTime<n&&(u.expirationTime=n),to(l.return,n),c.expirationTime<n&&(c.expirationTime=n);break}u=u.next}}else s=10===l.tag&&l.type===t.type?null:l.child;if(null!==s)s.return=l;else for(s=l;null!==s;){if(s===t){s=null;break}if(null!==(l=s.sibling)){l.return=s.return,s=l;break}s=s.return}l=s}Pa(e,t,r.children,n),t=t.child}return t;case 9:return r=t.type,i=(o=t.pendingProps).children,no(t,n),i=i(r=io(r,o.unstable_observedBits)),t.effectTag|=1,Pa(e,t,i,n),t.child;case 14:return o=Qr(r=t.type,t.pendingProps),Aa(e,t,r,o=Qr(r.type,o),i,n);case 15:return Ma(e,t,t.type,t.pendingProps,i,n);case 17:return i=t.type,r=t.pendingProps,r=t.elementType===i?r:Qr(i,r),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,fr(i)?(e=!0,yr(t)):e=!1,no(t,n),bo(t,i,r),ko(t,i,r,n),qa(null,t,i,!0,e,n);case 19:return Ga(e,t,n)}throw Error(a(156,t.tag))};var wl=null,Sl=null;function Cl(e,t,n,i){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function xl(e,t,n,i){return new Cl(e,t,n,i)}function El(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Tl(e,t){var n=e.alternate;return null===n?((n=xl(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.effectTag=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childExpirationTime=e.childExpirationTime,n.expirationTime=e.expirationTime,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{expirationTime:t.expirationTime,firstContext:t.firstContext,responders:t.responders},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function _l(e,t,n,i,r,o){var s=2;if(i=e,"function"==typeof e)El(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case ne:return jl(n.children,r,o,t);case se:s=8,r|=7;break;case ie:s=8,r|=1;break;case re:return(e=xl(12,n,t,8|r)).elementType=re,e.type=re,e.expirationTime=o,e;case ce:return(e=xl(13,n,t,r)).type=ce,e.elementType=ce,e.expirationTime=o,e;case ue:return(e=xl(19,n,t,r)).elementType=ue,e.expirationTime=o,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case oe:s=10;break e;case ae:s=9;break e;case le:s=11;break e;case de:s=14;break e;case pe:s=16,i=null;break e;case me:s=22;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=xl(s,n,t,r)).elementType=e,t.type=i,t.expirationTime=o,t}function jl(e,t,n,i){return(e=xl(7,e,i,t)).expirationTime=n,e}function Ol(e,t,n){return(e=xl(6,e,null,t)).expirationTime=n,e}function Rl(e,t,n){return(t=xl(4,null!==e.children?e.children:[],e.key,t)).expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Pl(e,t,n){this.tag=t,this.current=null,this.containerInfo=e,this.pingCache=this.pendingChildren=null,this.finishedExpirationTime=0,this.finishedWork=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=90,this.lastExpiredTime=this.lastPingedTime=this.nextKnownPendingLevel=this.lastSuspendedTime=this.firstSuspendedTime=this.firstPendingTime=0}function Il(e,t){var n=e.firstSuspendedTime;return e=e.lastSuspendedTime,0!==n&&n>=t&&e<=t}function Al(e,t){var n=e.firstSuspendedTime,i=e.lastSuspendedTime;n<t&&(e.firstSuspendedTime=t),(i>t||0===n)&&(e.lastSuspendedTime=t),t<=e.lastPingedTime&&(e.lastPingedTime=0),t<=e.lastExpiredTime&&(e.lastExpiredTime=0)}function Ml(e,t){t>e.firstPendingTime&&(e.firstPendingTime=t);var n=e.firstSuspendedTime;0!==n&&(t>=n?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:t>=e.lastSuspendedTime&&(e.lastSuspendedTime=t+1),t>e.nextKnownPendingLevel&&(e.nextKnownPendingLevel=t))}function Nl(e,t){var n=e.lastExpiredTime;(0===n||n>t)&&(e.lastExpiredTime=t)}function Dl(e,t,n,i){var r=t.current,o=Ws(),s=mo.suspense;o=Gs(o,r,s);e:if(n){t:{if(Ze(n=n._reactInternalFiber)!==n||1!==n.tag)throw Error(a(170));var l=n;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(fr(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(null!==l);throw Error(a(171))}if(1===n.tag){var c=n.type;if(fr(c)){n=br(n,c,l);break e}}n=l}else n=ur;return null===t.context?t.context=n:t.pendingContext=n,(t=so(o,s)).payload={element:e},null!==(i=void 0===i?null:i)&&(t.callback=i),lo(r,t),Qs(r,o),o}function Ll(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function ql(e,t){null!==(e=e.memoizedState)&&null!==e.dehydrated&&e.retryTime<t&&(e.retryTime=t)}function Fl(e,t){ql(e,t),(e=e.alternate)&&ql(e,t)}function zl(e,t,n){var i=new Pl(e,t,n=null!=n&&!0===n.hydrate),r=xl(3,null,null,2===t?7:1===t?3:0);i.current=r,r.stateNode=i,oo(r),e[Tn]=i.current,n&&0!==t&&function(e,t){var n=Xe(t);Tt.forEach((function(e){ht(e,t,n)})),_t.forEach((function(e){ht(e,t,n)}))}(0,9===e.nodeType?e:e.ownerDocument),this._internalRoot=i}function Ul(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Bl(e,t,n,i,r){var o=n._reactRootContainer;if(o){var a=o._internalRoot;if("function"==typeof r){var s=r;r=function(){var e=Ll(a);s.call(e)}}Dl(t,a,e,r)}else{if(o=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new zl(e,0,t?{hydrate:!0}:void 0)}(n,i),a=o._internalRoot,"function"==typeof r){var l=r;r=function(){var e=Ll(a);l.call(e)}}tl((function(){Dl(t,a,e,r)}))}return Ll(a)}function Vl(e,t,n){var i=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:te,key:null==i?null:""+i,children:e,containerInfo:t,implementation:n}}function $l(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Ul(t))throw Error(a(200));return Vl(e,t,null,n)}zl.prototype.render=function(e){Dl(e,this._internalRoot,null,null)},zl.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Dl(null,e,null,(function(){t[Tn]=null}))},ft=function(e){if(13===e.tag){var t=Gr(Ws(),150,100);Qs(e,t),Fl(e,t)}},gt=function(e){13===e.tag&&(Qs(e,3),Fl(e,3))},vt=function(e){if(13===e.tag){var t=Ws();Qs(e,t=Gs(t,e,null)),Fl(e,t)}},j=function(e,t,n){switch(t){case"input":if(Ee(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var i=n[t];if(i!==e&&i.form===e.form){var r=Rn(i);if(!r)throw Error(a(90));we(i),Ee(i,r)}}}break;case"textarea":Ie(e,n);break;case"select":null!=(t=n.value)&&Oe(e,!!n.multiple,t,!1)}},M=el,N=function(e,t,n,i,r){var o=Cs;Cs|=4;try{return Br(98,e.bind(null,t,n,i,r))}finally{0===(Cs=o)&&Hr()}},D=function(){0==(49&Cs)&&(function(){if(null!==Bs){var e=Bs;Bs=null,e.forEach((function(e,t){Nl(t,e),Ys(t)})),Hr()}}(),fl())},L=function(e,t){var n=Cs;Cs|=2;try{return e(t)}finally{0===(Cs=n)&&Hr()}};var Hl,Wl,Gl={Events:[jn,On,Rn,T,C,Ln,function(e){rt(e,Dn)},I,A,Yt,st,fl,{current:!1}]};Wl=(Hl={findFiberByHostInstance:_n,bundleType:0,version:"16.13.1",rendererPackageName:"react-dom"}).findFiberByHostInstance,function(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var n=t.inject(e);wl=function(e){try{t.onCommitFiberRoot(n,e,void 0,64==(64&e.current.effectTag))}catch(e){}},Sl=function(e){try{t.onCommitFiberUnmount(n,e)}catch(e){}}}catch(e){}}(r({},Hl,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:K.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=nt(e))?null:e.stateNode},findFiberByHostInstance:function(e){return Wl?Wl(e):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null})),t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Gl,t.createPortal=$l,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternalFiber;if(void 0===t){if("function"==typeof e.render)throw Error(a(188));throw Error(a(268,Object.keys(e)))}return e=null===(e=nt(t))?null:e.stateNode},t.flushSync=function(e,t){if(0!=(48&Cs))throw Error(a(187));var n=Cs;Cs|=1;try{return Br(99,e.bind(null,t))}finally{Cs=n,Hr()}},t.hydrate=function(e,t,n){if(!Ul(t))throw Error(a(200));return Bl(null,e,t,!0,n)},t.render=function(e,t,n){if(!Ul(t))throw Error(a(200));return Bl(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Ul(e))throw Error(a(40));return!!e._reactRootContainer&&(tl((function(){Bl(null,null,e,!1,(function(){e._reactRootContainer=null,e[Tn]=null}))})),!0)},t.unstable_batchedUpdates=el,t.unstable_createPortal=function(e,t){return $l(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,i){if(!Ul(n))throw Error(a(200));if(null==e||void 0===e._reactInternalFiber)throw Error(a(38));return Bl(e,t,n,!1,i)},t.version="16.13.1"},function(e,t,n){"use strict";e.exports=n(68)},function(e,t,n){"use strict";
/** @license React v0.19.1
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var i,r,o,a,s;if("undefined"==typeof window||"function"!=typeof MessageChannel){var l=null,c=null,u=function(){if(null!==l)try{var e=t.unstable_now();l(!0,e),l=null}catch(e){throw setTimeout(u,0),e}},d=Date.now();t.unstable_now=function(){return Date.now()-d},i=function(e){null!==l?setTimeout(i,0,e):(l=e,setTimeout(u,0))},r=function(e,t){c=setTimeout(e,t)},o=function(){clearTimeout(c)},a=function(){return!1},s=t.unstable_forceFrameRate=function(){}}else{var p=window.performance,m=window.Date,h=window.setTimeout,f=window.clearTimeout;if("undefined"!=typeof console){var g=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof g&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"==typeof p&&"function"==typeof p.now)t.unstable_now=function(){return p.now()};else{var v=m.now();t.unstable_now=function(){return m.now()-v}}var b=!1,y=null,k=-1,w=5,S=0;a=function(){return t.unstable_now()>=S},s=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):w=0<e?Math.floor(1e3/e):5};var C=new MessageChannel,x=C.port2;C.port1.onmessage=function(){if(null!==y){var e=t.unstable_now();S=e+w;try{y(!0,e)?x.postMessage(null):(b=!1,y=null)}catch(e){throw x.postMessage(null),e}}else b=!1},i=function(e){y=e,b||(b=!0,x.postMessage(null))},r=function(e,n){k=h((function(){e(t.unstable_now())}),n)},o=function(){f(k),k=-1}}function E(e,t){var n=e.length;e.push(t);e:for(;;){var i=n-1>>>1,r=e[i];if(!(void 0!==r&&0<j(r,t)))break e;e[i]=t,e[n]=r,n=i}}function T(e){return void 0===(e=e[0])?null:e}function _(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var i=0,r=e.length;i<r;){var o=2*(i+1)-1,a=e[o],s=o+1,l=e[s];if(void 0!==a&&0>j(a,n))void 0!==l&&0>j(l,a)?(e[i]=l,e[s]=n,i=s):(e[i]=a,e[o]=n,i=o);else{if(!(void 0!==l&&0>j(l,n)))break e;e[i]=l,e[s]=n,i=s}}}return t}return null}function j(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var O=[],R=[],P=1,I=null,A=3,M=!1,N=!1,D=!1;function L(e){for(var t=T(R);null!==t;){if(null===t.callback)_(R);else{if(!(t.startTime<=e))break;_(R),t.sortIndex=t.expirationTime,E(O,t)}t=T(R)}}function q(e){if(D=!1,L(e),!N)if(null!==T(O))N=!0,i(F);else{var t=T(R);null!==t&&r(q,t.startTime-e)}}function F(e,n){N=!1,D&&(D=!1,o()),M=!0;var i=A;try{for(L(n),I=T(O);null!==I&&(!(I.expirationTime>n)||e&&!a());){var s=I.callback;if(null!==s){I.callback=null,A=I.priorityLevel;var l=s(I.expirationTime<=n);n=t.unstable_now(),"function"==typeof l?I.callback=l:I===T(O)&&_(O),L(n)}else _(O);I=T(O)}if(null!==I)var c=!0;else{var u=T(R);null!==u&&r(q,u.startTime-n),c=!1}return c}finally{I=null,A=i,M=!1}}function z(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var U=s;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){N||M||(N=!0,i(F))},t.unstable_getCurrentPriorityLevel=function(){return A},t.unstable_getFirstCallbackNode=function(){return T(O)},t.unstable_next=function(e){switch(A){case 1:case 2:case 3:var t=3;break;default:t=A}var n=A;A=t;try{return e()}finally{A=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=U,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=A;A=e;try{return t()}finally{A=n}},t.unstable_scheduleCallback=function(e,n,a){var s=t.unstable_now();if("object"==typeof a&&null!==a){var l=a.delay;l="number"==typeof l&&0<l?s+l:s,a="number"==typeof a.timeout?a.timeout:z(e)}else a=z(e),l=s;return e={id:P++,callback:n,priorityLevel:e,startTime:l,expirationTime:a=l+a,sortIndex:-1},l>s?(e.sortIndex=l,E(R,e),null===T(O)&&e===T(R)&&(D?o():D=!0,r(q,l-s))):(e.sortIndex=a,E(O,e),N||M||(N=!0,i(F))),e},t.unstable_shouldYield=function(){var e=t.unstable_now();L(e);var n=T(O);return n!==I&&null!==I&&null!==n&&null!==n.callback&&n.startTime<=e&&n.expirationTime<I.expirationTime||a()},t.unstable_wrapCallback=function(e){var t=A;return function(){var n=A;A=t;try{return e.apply(this,arguments)}finally{A=n}}}},function(e,t,n){"use strict";var i=n(70);function r(){}function o(){}o.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,o,a){if(a!==i){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:r};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";
/** @license React v16.13.1
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var i="function"==typeof Symbol&&Symbol.for,r=i?Symbol.for("react.element"):60103,o=i?Symbol.for("react.portal"):60106,a=i?Symbol.for("react.fragment"):60107,s=i?Symbol.for("react.strict_mode"):60108,l=i?Symbol.for("react.profiler"):60114,c=i?Symbol.for("react.provider"):60109,u=i?Symbol.for("react.context"):60110,d=i?Symbol.for("react.async_mode"):60111,p=i?Symbol.for("react.concurrent_mode"):60111,m=i?Symbol.for("react.forward_ref"):60112,h=i?Symbol.for("react.suspense"):60113,f=i?Symbol.for("react.suspense_list"):60120,g=i?Symbol.for("react.memo"):60115,v=i?Symbol.for("react.lazy"):60116,b=i?Symbol.for("react.block"):60121,y=i?Symbol.for("react.fundamental"):60117,k=i?Symbol.for("react.responder"):60118,w=i?Symbol.for("react.scope"):60119;function S(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case d:case p:case a:case l:case s:case h:return e;default:switch(e=e&&e.$$typeof){case u:case m:case v:case g:case c:return e;default:return t}}case o:return t}}}function C(e){return S(e)===p}t.AsyncMode=d,t.ConcurrentMode=p,t.ContextConsumer=u,t.ContextProvider=c,t.Element=r,t.ForwardRef=m,t.Fragment=a,t.Lazy=v,t.Memo=g,t.Portal=o,t.Profiler=l,t.StrictMode=s,t.Suspense=h,t.isAsyncMode=function(e){return C(e)||S(e)===d},t.isConcurrentMode=C,t.isContextConsumer=function(e){return S(e)===u},t.isContextProvider=function(e){return S(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return S(e)===m},t.isFragment=function(e){return S(e)===a},t.isLazy=function(e){return S(e)===v},t.isMemo=function(e){return S(e)===g},t.isPortal=function(e){return S(e)===o},t.isProfiler=function(e){return S(e)===l},t.isStrictMode=function(e){return S(e)===s},t.isSuspense=function(e){return S(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===p||e===l||e===s||e===h||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===g||e.$$typeof===c||e.$$typeof===u||e.$$typeof===m||e.$$typeof===y||e.$$typeof===k||e.$$typeof===w||e.$$typeof===b)},t.typeOf=S},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},function(e,t,n){"use strict";t.byteLength=function(e){var t=c(e),n=t[0],i=t[1];return 3*(n+i)/4-i},t.toByteArray=function(e){var t,n,i=c(e),a=i[0],s=i[1],l=new o(function(e,t,n){return 3*(t+n)/4-n}(0,a,s)),u=0,d=s>0?a-4:a;for(n=0;n<d;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],l[u++]=t>>16&255,l[u++]=t>>8&255,l[u++]=255&t;2===s&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,l[u++]=255&t);1===s&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,l[u++]=t>>8&255,l[u++]=255&t);return l},t.fromByteArray=function(e){for(var t,n=e.length,r=n%3,o=[],a=0,s=n-r;a<s;a+=16383)o.push(u(e,a,a+16383>s?s:a+16383));1===r?(t=e[n-1],o.push(i[t>>2]+i[t<<4&63]+"==")):2===r&&(t=(e[n-2]<<8)+e[n-1],o.push(i[t>>10]+i[t>>4&63]+i[t<<2&63]+"="));return o.join("")};for(var i=[],r=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=a.length;s<l;++s)i[s]=a[s],r[a.charCodeAt(s)]=s;function c(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function u(e,t,n){for(var r,o,a=[],s=t;s<n;s+=3)r=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(i[(o=r)>>18&63]+i[o>>12&63]+i[o>>6&63]+i[63&o]);return a.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,n,i,r){var o,a,s=8*r-i-1,l=(1<<s)-1,c=l>>1,u=-7,d=n?r-1:0,p=n?-1:1,m=e[t+d];for(d+=p,o=m&(1<<-u)-1,m>>=-u,u+=s;u>0;o=256*o+e[t+d],d+=p,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=i;u>0;a=256*a+e[t+d],d+=p,u-=8);if(0===o)o=1-c;else{if(o===l)return a?NaN:1/0*(m?-1:1);a+=Math.pow(2,i),o-=c}return(m?-1:1)*a*Math.pow(2,o-i)},t.write=function(e,t,n,i,r,o){var a,s,l,c=8*o-r-1,u=(1<<c)-1,d=u>>1,p=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,m=i?0:o-1,h=i?1:-1,f=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+d>=1?p/l:p*Math.pow(2,1-d))*l>=2&&(a++,l/=2),a+d>=u?(s=0,a=u):a+d>=1?(s=(t*l-1)*Math.pow(2,r),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,r),a=0));r>=8;e[n+m]=255&s,m+=h,s/=256,r-=8);for(a=a<<r|s,c+=r;c>0;e[n+m]=255&a,m+=h,a/=256,c-=8);e[n+m-h]|=128*f}},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}},function(e,t){},function(e,t,n){"use strict";var i=n(26).Buffer,r=n(78);e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n},e.prototype.concat=function(e){if(0===this.length)return i.alloc(0);if(1===this.length)return this.head.data;for(var t,n,r,o=i.allocUnsafe(e>>>0),a=this.head,s=0;a;)t=a.data,n=o,r=s,t.copy(n,r),s+=a.data.length,a=a.next;return o},e}(),r&&r.inspect&&r.inspect.custom&&(e.exports.prototype[r.inspect.custom]=function(){var e=r.inspect({length:this.length});return this.constructor.name+" "+e})},function(e,t){},function(e,t,n){(function(e){var i=void 0!==e&&e||"undefined"!=typeof self&&self||window,r=Function.prototype.apply;function o(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new o(r.call(setTimeout,i,arguments),clearTimeout)},t.setInterval=function(){return new o(r.call(setInterval,i,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(i,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n(80),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n(7))},function(e,t,n){(function(e,t){!function(e,n){"use strict";if(!e.setImmediate){var i,r,o,a,s,l=1,c={},u=!1,d=e.document,p=Object.getPrototypeOf&&Object.getPrototypeOf(e);p=p&&p.setTimeout?p:e,"[object process]"==={}.toString.call(e.process)?i=function(e){t.nextTick((function(){h(e)}))}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((o=new MessageChannel).port1.onmessage=function(e){h(e.data)},i=function(e){o.port2.postMessage(e)}):d&&"onreadystatechange"in d.createElement("script")?(r=d.documentElement,i=function(e){var t=d.createElement("script");t.onreadystatechange=function(){h(e),t.onreadystatechange=null,r.removeChild(t),t=null},r.appendChild(t)}):i=function(e){setTimeout(h,0,e)}:(a="setImmediate$"+Math.random()+"$",s=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(a)&&h(+t.data.slice(a.length))},e.addEventListener?e.addEventListener("message",s,!1):e.attachEvent("onmessage",s),i=function(t){e.postMessage(a+t,"*")}),p.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];var r={callback:e,args:t};return c[l]=r,i(l),l++},p.clearImmediate=m}function m(e){delete c[e]}function h(e){if(u)setTimeout(h,0,e);else{var t=c[e];if(t){u=!0;try{!function(e){var t=e.callback,n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(void 0,n)}}(t)}finally{m(e),u=!1}}}}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,n(7),n(14))},function(e,t,n){(function(t){function n(e){try{if(!t.localStorage)return!1}catch(e){return!1}var n=t.localStorage[e];return null!=n&&"true"===String(n).toLowerCase()}e.exports=function(e,t){if(n("noDeprecation"))return e;var i=!1;return function(){if(!i){if(n("throwDeprecation"))throw new Error(t);n("traceDeprecation")?console.trace(t):console.warn(t),i=!0}return e.apply(this,arguments)}}}).call(this,n(7))},function(e,t,n){var i=n(19),r=i.Buffer;function o(e,t){for(var n in e)t[n]=e[n]}function a(e,t,n){return r(e,t,n)}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?e.exports=i:(o(i,t),t.Buffer=a),o(r,a),a.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return r(e,t,n)},a.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var i=r(e);return void 0!==t?"string"==typeof n?i.fill(t,n):i.fill(t):i.fill(0),i},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i.SlowBuffer(e)}},function(e,t,n){"use strict";e.exports=o;var i=n(39),r=Object.create(n(15));function o(e){if(!(this instanceof o))return new o(e);i.call(this,e)}r.inherits=n(16),r.inherits(o,i),o.prototype._transform=function(e,t,n){n(null,e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bodyOpenClassName=t.portalClassName=void 0;var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=n(0),a=h(o),s=h(n(10)),l=h(n(18)),c=h(n(85)),u=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(41)),d=n(27),p=h(d),m=n(92);function h(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var v=t.portalClassName="ReactModalPortal",b=t.bodyOpenClassName="ReactModal__Body--open",y=void 0!==s.default.createPortal,k=function(){return y?s.default.createPortal:s.default.unstable_renderSubtreeIntoContainer};function w(e){return e()}var S=function(e){function t(){var e,n,r;f(this,t);for(var o=arguments.length,l=Array(o),u=0;u<o;u++)l[u]=arguments[u];return n=r=g(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(l))),r.removePortal=function(){!y&&s.default.unmountComponentAtNode(r.node);var e=w(r.props.parentSelector);e?e.removeChild(r.node):console.warn('React-Modal: "parentSelector" prop did not returned any DOM element. Make sure that the parent element is unmounted to avoid any memory leaks.')},r.portalRef=function(e){r.portal=e},r.renderPortal=function(e){var n=k()(r,a.default.createElement(c.default,i({defaultStyles:t.defaultStyles},e)),r.node);r.portalRef(n)},g(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"componentDidMount",value:function(){d.canUseDOM&&(y||(this.node=document.createElement("div")),this.node.className=this.props.portalClassName,w(this.props.parentSelector).appendChild(this.node),!y&&this.renderPortal(this.props))}},{key:"getSnapshotBeforeUpdate",value:function(e){return{prevParent:w(e.parentSelector),nextParent:w(this.props.parentSelector)}}},{key:"componentDidUpdate",value:function(e,t,n){if(d.canUseDOM){var i=this.props,r=i.isOpen,o=i.portalClassName;e.portalClassName!==o&&(this.node.className=o);var a=n.prevParent,s=n.nextParent;s!==a&&(a.removeChild(this.node),s.appendChild(this.node)),(e.isOpen||r)&&!y&&this.renderPortal(this.props)}}},{key:"componentWillUnmount",value:function(){if(d.canUseDOM&&this.node&&this.portal){var e=this.portal.state,t=Date.now(),n=e.isOpen&&this.props.closeTimeoutMS&&(e.closesAt||t+this.props.closeTimeoutMS);n?(e.beforeClose||this.portal.closeWithTimeout(),setTimeout(this.removePortal,n-t)):this.removePortal()}}},{key:"render",value:function(){return d.canUseDOM&&y?(!this.node&&y&&(this.node=document.createElement("div")),k()(a.default.createElement(c.default,i({ref:this.portalRef,defaultStyles:t.defaultStyles},this.props)),this.node)):null}}],[{key:"setAppElement",value:function(e){u.setElement(e)}}]),t}(o.Component);S.propTypes={isOpen:l.default.bool.isRequired,style:l.default.shape({content:l.default.object,overlay:l.default.object}),portalClassName:l.default.string,bodyOpenClassName:l.default.string,htmlOpenClassName:l.default.string,className:l.default.oneOfType([l.default.string,l.default.shape({base:l.default.string.isRequired,afterOpen:l.default.string.isRequired,beforeClose:l.default.string.isRequired})]),overlayClassName:l.default.oneOfType([l.default.string,l.default.shape({base:l.default.string.isRequired,afterOpen:l.default.string.isRequired,beforeClose:l.default.string.isRequired})]),appElement:l.default.instanceOf(p.default),onAfterOpen:l.default.func,onRequestClose:l.default.func,closeTimeoutMS:l.default.number,ariaHideApp:l.default.bool,shouldFocusAfterRender:l.default.bool,shouldCloseOnOverlayClick:l.default.bool,shouldReturnFocusAfterClose:l.default.bool,parentSelector:l.default.func,aria:l.default.object,data:l.default.object,role:l.default.string,contentLabel:l.default.string,shouldCloseOnEsc:l.default.bool,overlayRef:l.default.func,contentRef:l.default.func},S.defaultProps={isOpen:!1,portalClassName:v,bodyOpenClassName:b,role:"dialog",ariaHideApp:!0,closeTimeoutMS:0,shouldFocusAfterRender:!0,shouldCloseOnEsc:!0,shouldCloseOnOverlayClick:!0,shouldReturnFocusAfterClose:!0,parentSelector:function(){return document.body}},S.defaultStyles={overlay:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(255, 255, 255, 0.75)"},content:{position:"absolute",top:"40px",left:"40px",right:"40px",bottom:"40px",border:"1px solid #ccc",background:"#fff",overflow:"auto",WebkitOverflowScrolling:"touch",borderRadius:"4px",outline:"none",padding:"20px"}},(0,m.polyfill)(S),t.default=S},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=n(0),s=g(a),l=g(n(18)),c=f(n(86)),u=g(n(87)),d=f(n(41)),p=f(n(90)),m=g(n(27)),h=g(n(42));function f(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function g(e){return e&&e.__esModule?e:{default:e}}n(91);var v={overlay:"ReactModal__Overlay",content:"ReactModal__Content"},b=0,y=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.setOverlayRef=function(e){n.overlay=e,n.props.overlayRef&&n.props.overlayRef(e)},n.setContentRef=function(e){n.content=e,n.props.contentRef&&n.props.contentRef(e)},n.afterClose=function(){var e=n.props,t=e.appElement,i=e.ariaHideApp,r=e.htmlOpenClassName,o=e.bodyOpenClassName;o&&p.remove(document.body,o),r&&p.remove(document.getElementsByTagName("html")[0],r),i&&b>0&&0===(b-=1)&&d.show(t),n.props.shouldFocusAfterRender&&(n.props.shouldReturnFocusAfterClose?(c.returnFocus(),c.teardownScopedFocus()):c.popWithoutFocus()),n.props.onAfterClose&&n.props.onAfterClose(),h.default.deregister(n)},n.open=function(){n.beforeOpen(),n.state.afterOpen&&n.state.beforeClose?(clearTimeout(n.closeTimer),n.setState({beforeClose:!1})):(n.props.shouldFocusAfterRender&&(c.setupScopedFocus(n.node),c.markForFocusLater()),n.setState({isOpen:!0},(function(){n.setState({afterOpen:!0}),n.props.isOpen&&n.props.onAfterOpen&&n.props.onAfterOpen({overlayEl:n.overlay,contentEl:n.content})})))},n.close=function(){n.props.closeTimeoutMS>0?n.closeWithTimeout():n.closeWithoutTimeout()},n.focusContent=function(){return n.content&&!n.contentHasFocus()&&n.content.focus()},n.closeWithTimeout=function(){var e=Date.now()+n.props.closeTimeoutMS;n.setState({beforeClose:!0,closesAt:e},(function(){n.closeTimer=setTimeout(n.closeWithoutTimeout,n.state.closesAt-Date.now())}))},n.closeWithoutTimeout=function(){n.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},n.afterClose)},n.handleKeyDown=function(e){9===e.keyCode&&(0,u.default)(n.content,e),n.props.shouldCloseOnEsc&&27===e.keyCode&&(e.stopPropagation(),n.requestClose(e))},n.handleOverlayOnClick=function(e){null===n.shouldClose&&(n.shouldClose=!0),n.shouldClose&&n.props.shouldCloseOnOverlayClick&&(n.ownerHandlesClose()?n.requestClose(e):n.focusContent()),n.shouldClose=null},n.handleContentOnMouseUp=function(){n.shouldClose=!1},n.handleOverlayOnMouseDown=function(e){n.props.shouldCloseOnOverlayClick||e.target!=n.overlay||e.preventDefault()},n.handleContentOnClick=function(){n.shouldClose=!1},n.handleContentOnMouseDown=function(){n.shouldClose=!1},n.requestClose=function(e){return n.ownerHandlesClose()&&n.props.onRequestClose(e)},n.ownerHandlesClose=function(){return n.props.onRequestClose},n.shouldBeClosed=function(){return!n.state.isOpen&&!n.state.beforeClose},n.contentHasFocus=function(){return document.activeElement===n.content||n.content.contains(document.activeElement)},n.buildClassName=function(e,t){var i="object"===(void 0===t?"undefined":r(t))?t:{base:v[e],afterOpen:v[e]+"--after-open",beforeClose:v[e]+"--before-close"},o=i.base;return n.state.afterOpen&&(o=o+" "+i.afterOpen),n.state.beforeClose&&(o=o+" "+i.beforeClose),"string"==typeof t&&t?o+" "+t:o},n.attributesFromObject=function(e,t){return Object.keys(t).reduce((function(n,i){return n[e+"-"+i]=t[i],n}),{})},n.state={afterOpen:!1,beforeClose:!1},n.shouldClose=null,n.moveFromContentToOverlay=null,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(e,t){this.props.isOpen&&!e.isOpen?this.open():!this.props.isOpen&&e.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!t.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer)}},{key:"beforeOpen",value:function(){var e=this.props,t=e.appElement,n=e.ariaHideApp,i=e.htmlOpenClassName,r=e.bodyOpenClassName;r&&p.add(document.body,r),i&&p.add(document.getElementsByTagName("html")[0],i),n&&(b+=1,d.hide(t)),h.default.register(this)}},{key:"render",value:function(){var e=this.props,t=e.id,n=e.className,r=e.overlayClassName,o=e.defaultStyles,a=n?{}:o.content,l=r?{}:o.overlay;return this.shouldBeClosed()?null:s.default.createElement("div",{ref:this.setOverlayRef,className:this.buildClassName("overlay",r),style:i({},l,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},s.default.createElement("div",i({id:t,ref:this.setContentRef,style:i({},a,this.props.style.content),className:this.buildClassName("content",n),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",this.props.aria||{}),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),this.props.children))}}]),t}(a.Component);y.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},y.propTypes={isOpen:l.default.bool.isRequired,defaultStyles:l.default.shape({content:l.default.object,overlay:l.default.object}),style:l.default.shape({content:l.default.object,overlay:l.default.object}),className:l.default.oneOfType([l.default.string,l.default.object]),overlayClassName:l.default.oneOfType([l.default.string,l.default.object]),bodyOpenClassName:l.default.string,htmlOpenClassName:l.default.string,ariaHideApp:l.default.bool,appElement:l.default.instanceOf(m.default),onAfterOpen:l.default.func,onAfterClose:l.default.func,onRequestClose:l.default.func,closeTimeoutMS:l.default.number,shouldFocusAfterRender:l.default.bool,shouldCloseOnOverlayClick:l.default.bool,shouldReturnFocusAfterClose:l.default.bool,role:l.default.string,contentLabel:l.default.string,aria:l.default.object,data:l.default.object,children:l.default.node,shouldCloseOnEsc:l.default.bool,overlayRef:l.default.func,contentRef:l.default.func,id:l.default.string,testId:l.default.string},t.default=y,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.handleBlur=c,t.handleFocus=u,t.markForFocusLater=function(){a.push(document.activeElement)},t.returnFocus=function(){var e=null;try{return void(0!==a.length&&(e=a.pop()).focus())}catch(t){console.warn(["You tried to return focus to",e,"but it is not in the DOM anymore"].join(" "))}},t.popWithoutFocus=function(){a.length>0&&a.pop()},t.setupScopedFocus=function(e){s=e,window.addEventListener?(window.addEventListener("blur",c,!1),document.addEventListener("focus",u,!0)):(window.attachEvent("onBlur",c),document.attachEvent("onFocus",u))},t.teardownScopedFocus=function(){s=null,window.addEventListener?(window.removeEventListener("blur",c),document.removeEventListener("focus",u)):(window.detachEvent("onBlur",c),document.detachEvent("onFocus",u))};var i,r=n(40),o=(i=r)&&i.__esModule?i:{default:i};var a=[],s=null,l=!1;function c(){l=!0}function u(){if(l){if(l=!1,!s)return;setTimeout((function(){s.contains(document.activeElement)||((0,o.default)(s)[0]||s).focus()}),0)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=(0,o.default)(e);if(!n.length)return void t.preventDefault();var i=void 0,r=t.shiftKey,a=n[0],s=n[n.length-1];if(e===document.activeElement){if(!r)return;i=s}s!==document.activeElement||r||(i=a);a===document.activeElement&&r&&(i=s);if(i)return t.preventDefault(),void i.focus();var l=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent);if(null==l||"Chrome"==l[1]||null!=/\biPod\b|\biPad\b/g.exec(navigator.userAgent))return;var c=n.indexOf(document.activeElement);c>-1&&(c+=r?-1:1);if(void 0===(i=n[c]))return t.preventDefault(),void(i=r?s:a).focus();t.preventDefault(),i.focus()};var i,r=n(40),o=(i=r)&&i.__esModule?i:{default:i};e.exports=t.default},function(e,t,n){"use strict";var i=function(){};e.exports=i},function(e,t,n){var i;
/*!
Copyright (c) 2015 Jed Watson.
Based on code that is Copyright 2013-2015, Facebook, Inc.
All rights reserved.
*/!function(){"use strict";var r=!("undefined"==typeof window||!window.document||!window.document.createElement),o={canUseDOM:r,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:r&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:r&&!!window.screen};void 0===(i=function(){return o}.call(t,n,t,e))||(e.exports=i)}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dumpClassLists=function(){0};var i={},r={};t.add=function(e,t){return n=e.classList,o="html"==e.nodeName.toLowerCase()?i:r,void t.split(" ").forEach((function(e){!function(e,t){e[t]||(e[t]=0),e[t]+=1}(o,e),n.add(e)}));var n,o},t.remove=function(e,t){return n=e.classList,o="html"==e.nodeName.toLowerCase()?i:r,void t.split(" ").forEach((function(e){!function(e,t){e[t]&&(e[t]-=1)}(o,e),0===o[e]&&n.remove(e)}));var n,o}},function(e,t,n){"use strict";var i,r=n(42),o=(i=r)&&i.__esModule?i:{default:i};var a=void 0,s=void 0,l=[];function c(){0!==l.length&&l[l.length-1].focusContent()}o.default.subscribe((function(e,t){a&&s||((a=document.createElement("div")).setAttribute("data-react-modal-body-trap",""),a.style.position="absolute",a.style.opacity="0",a.setAttribute("tabindex","0"),a.addEventListener("focus",c),(s=a.cloneNode()).addEventListener("focus",c)),(l=t).length>0?(document.body.firstChild!==a&&document.body.insertBefore(a,document.body.firstChild),document.body.lastChild!==s&&document.body.appendChild(s)):(a.parentElement&&a.parentElement.removeChild(a),s.parentElement&&s.parentElement.removeChild(s))}))},function(e,t,n){"use strict";function i(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function r(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}.bind(this))}function o(e,t){try{var n=this.props,i=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,i)}finally{this.props=n,this.state=i}}function a(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,a=null,s=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?a="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(a="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?s="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(s="UNSAFE_componentWillUpdate"),null!==n||null!==a||null!==s){var l=e.displayName||e.name,c="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+l+" uses "+c+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==a?"\n "+a:"")+(null!==s?"\n "+s:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=i,t.componentWillReceiveProps=r),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=o;var u=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var i=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;u.call(this,e,t,i)}}return e}n.r(t),n.d(t,"polyfill",(function(){return a})),i.__suppressDeprecationWarning=!0,r.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0},function(e,t,n){"use strict";n.r(t);var i={};n.r(i),n.d(i,"shimGetUserMedia",(function(){return q})),n.d(i,"shimGetDisplayMedia",(function(){return F})),n.d(i,"shimMediaStream",(function(){return z})),n.d(i,"shimOnTrack",(function(){return U})),n.d(i,"shimGetSendersWithDtmf",(function(){return B})),n.d(i,"shimGetStats",(function(){return V})),n.d(i,"shimSenderReceiverGetStats",(function(){return $})),n.d(i,"shimAddTrackRemoveTrackWithNative",(function(){return H})),n.d(i,"shimAddTrackRemoveTrack",(function(){return W})),n.d(i,"shimPeerConnection",(function(){return G})),n.d(i,"fixNegotiationNeeded",(function(){return Q}));var r={};n.r(r),n.d(r,"shimGetUserMedia",(function(){return Y})),n.d(r,"shimGetDisplayMedia",(function(){return X})),n.d(r,"shimPeerConnection",(function(){return Z})),n.d(r,"shimReplaceTrack",(function(){return ee}));var o={};n.r(o),n.d(o,"shimGetUserMedia",(function(){return te})),n.d(o,"shimGetDisplayMedia",(function(){return ne})),n.d(o,"shimOnTrack",(function(){return ie})),n.d(o,"shimPeerConnection",(function(){return re})),n.d(o,"shimSenderGetStats",(function(){return oe})),n.d(o,"shimReceiverGetStats",(function(){return ae})),n.d(o,"shimRemoveStream",(function(){return se})),n.d(o,"shimRTCDataChannel",(function(){return le})),n.d(o,"shimAddTransceiver",(function(){return ce})),n.d(o,"shimCreateOffer",(function(){return ue})),n.d(o,"shimCreateAnswer",(function(){return de}));var a={};n.r(a),n.d(a,"shimLocalStreamsAPI",(function(){return pe})),n.d(a,"shimRemoteStreamsAPI",(function(){return me})),n.d(a,"shimCallbacksAPI",(function(){return he})),n.d(a,"shimGetUserMedia",(function(){return fe})),n.d(a,"shimConstraints",(function(){return ge})),n.d(a,"shimRTCIceServerUrls",(function(){return ve})),n.d(a,"shimTrackEventTransceiver",(function(){return be})),n.d(a,"shimCreateOfferLegacy",(function(){return ye})),n.d(a,"shimAudioContext",(function(){return ke}));var s={};n.r(s),n.d(s,"shimRTCIceCandidate",(function(){return Ce})),n.d(s,"shimMaxMessageSize",(function(){return xe})),n.d(s,"shimSendThrowTypeError",(function(){return Ee})),n.d(s,"shimConnectionState",(function(){return Te})),n.d(s,"removeAllowExtmapMixed",(function(){return _e}));var l=n(29),c=function(){return Math.random().toString(36).substring(7).split("").join(".")},u={INIT:"@@redux/INIT"+c(),REPLACE:"@@redux/REPLACE"+c(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+c()}};function d(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function p(e,t,n){var i;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function.");if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error("Expected the enhancer to be a function.");return n(p)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var r=e,o=t,a=[],s=a,c=!1;function m(){s===a&&(s=a.slice())}function h(){if(c)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return o}function f(e){if("function"!=typeof e)throw new Error("Expected the listener to be a function.");if(c)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribelistener for more details.");var t=!0;return m(),s.push(e),function(){if(t){if(c)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribelistener for more details.");t=!1,m();var n=s.indexOf(e);s.splice(n,1),a=null}}}function g(e){if(!d(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(c)throw new Error("Reducers may not dispatch actions.");try{c=!0,o=r(o,e)}finally{c=!1}for(var t=a=s,n=0;n<t.length;n++){(0,t[n])()}return e}function v(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");r=e,g({type:u.REPLACE})}function b(){var e,t=f;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new TypeError("Expected the observer to be an object.");function n(){e.next&&e.next(h())}return n(),{unsubscribe:t(n)}}})[l.a]=function(){return this},e}return g({type:u.INIT}),(i={dispatch:g,subscribe:f,getState:h,replaceReducer:v})[l.a]=b,i}function m(e,t){var n=t&&t.type;return"Given "+(n&&'action "'+String(n)+'"'||"an action")+', reducer "'+e+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.'}function h(e){for(var t=Object.keys(e),n={},i=0;i<t.length;i++){var r=t[i];0,"function"==typeof e[r]&&(n[r]=e[r])}var o,a=Object.keys(n);try{!function(e){Object.keys(e).forEach((function(t){var n=e[t];if(void 0===n(void 0,{type:u.INIT}))throw new Error('Reducer "'+t+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if(void 0===n(void 0,{type:u.PROBE_UNKNOWN_ACTION()}))throw new Error('Reducer "'+t+"\" returned undefined when probed with a random type. Don't try to handle "+u.INIT+' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.')}))}(n)}catch(e){o=e}return function(e,t){if(void 0===e&&(e={}),o)throw o;for(var i=!1,r={},s=0;s<a.length;s++){var l=a[s],c=n[l],u=e[l],d=c(u,t);if(void 0===d){var p=m(l,t);throw new Error(p)}r[l]=d,i=i||d!==u}return(i=i||a.length!==Object.keys(e).length)?r:e}}function f(e,t){return function(){return t(e.apply(this,arguments))}}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e,t){var n=Object.keys(e);return Object.getOwnPropertySymbols&&n.push.apply(n,Object.getOwnPropertySymbols(e)),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(n,!0).forEach((function(t){g(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function y(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function k(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),i=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},r={getState:n.getState,dispatch:function(){return i.apply(void 0,arguments)}},o=t.map((function(e){return e(r)}));return b({},n,{dispatch:i=y.apply(void 0,o)(n.dispatch)})}}}function w(e){return function(t){var n=t.dispatch,i=t.getState;return function(t){return function(r){return"function"==typeof r?r(n,i,e):t(r)}}}}var S=w();S.withExtraArgument=w;var C=S,x=n(1);let E=!0,T=!0;function _(e,t,n){const i=e.match(t);return i&&i.length>=n&&parseInt(i[n],10)}function j(e,t,n){if(!e.RTCPeerConnection)return;const i=e.RTCPeerConnection.prototype,r=i.addEventListener;i.addEventListener=function(e,i){if(e!==t)return r.apply(this,arguments);const o=e=>{const t=n(e);t&&i(t)};return this._eventMap=this._eventMap||{},this._eventMap[i]=o,r.apply(this,[e,o])};const o=i.removeEventListener;i.removeEventListener=function(e,n){if(e!==t||!this._eventMap||!this._eventMap[n])return o.apply(this,arguments);const i=this._eventMap[n];return delete this._eventMap[n],o.apply(this,[e,i])},Object.defineProperty(i,"on"+t,{get(){return this["_on"+t]},set(e){this["_on"+t]&&(this.removeEventListener(t,this["_on"+t]),delete this["_on"+t]),e&&this.addEventListener(t,this["_on"+t]=e)},enumerable:!0,configurable:!0})}function O(e){return"boolean"!=typeof e?new Error("Argument type: "+typeof e+". Please use a boolean."):(E=e,e?"adapter.js logging disabled":"adapter.js logging enabled")}function R(e){return"boolean"!=typeof e?new Error("Argument type: "+typeof e+". Please use a boolean."):(T=!e,"adapter.js deprecation warnings "+(e?"disabled":"enabled"))}function P(){if("object"==typeof window){if(E)return;"undefined"!=typeof console&&"function"==typeof console.log&&console.log.apply(console,arguments)}}function I(e,t){T&&console.warn(e+" is deprecated, please use "+t+" instead.")}function A(e){const{navigator:t}=e,n={browser:null,version:null};if(void 0===e||!e.navigator)return n.browser="Not a browser.",n;if(t.mozGetUserMedia)n.browser="firefox",n.version=_(t.userAgent,/Firefox\/(\d+)\./,1);else if(t.webkitGetUserMedia||!1===e.isSecureContext&&e.webkitRTCPeerConnection&&!e.RTCIceGatherer)n.browser="chrome",n.version=_(t.userAgent,/Chrom(e|ium)\/(\d+)\./,2);else if(t.mediaDevices&&t.userAgent.match(/Edge\/(\d+).(\d+)$/))n.browser="edge",n.version=_(t.userAgent,/Edge\/(\d+).(\d+)$/,2);else{if(!e.RTCPeerConnection||!t.userAgent.match(/AppleWebKit\/(\d+)\./))return n.browser="Not a supported browser.",n;n.browser="safari",n.version=_(t.userAgent,/AppleWebKit\/(\d+)\./,1),n.supportsUnifiedPlan=e.RTCRtpTransceiver&&"currentDirection"in e.RTCRtpTransceiver.prototype}return n}function M(e){return"[object Object]"===Object.prototype.toString.call(e)}function N(e){return M(e)?Object.keys(e).reduce((function(t,n){const i=M(e[n]),r=i?N(e[n]):e[n],o=i&&!Object.keys(r).length;return void 0===r||o?t:Object.assign(t,{[n]:r})}),{}):e}function D(e,t,n){const i=n?"outbound-rtp":"inbound-rtp",r=new Map;if(null===t)return r;const o=[];return e.forEach(e=>{"track"===e.type&&e.trackIdentifier===t.id&&o.push(e)}),o.forEach(t=>{e.forEach(n=>{n.type===i&&n.trackId===t.id&&function e(t,n,i){n&&!i.has(n.id)&&(i.set(n.id,n),Object.keys(n).forEach(r=>{r.endsWith("Id")?e(t,t.get(n[r]),i):r.endsWith("Ids")&&n[r].forEach(n=>{e(t,t.get(n),i)})}))}(e,n,r)})}),r}const L=P;function q(e){const t=e&&e.navigator;if(!t.mediaDevices)return;const n=A(e),i=function(e){if("object"!=typeof e||e.mandatory||e.optional)return e;const t={};return Object.keys(e).forEach(n=>{if("require"===n||"advanced"===n||"mediaSource"===n)return;const i="object"==typeof e[n]?e[n]:{ideal:e[n]};void 0!==i.exact&&"number"==typeof i.exact&&(i.min=i.max=i.exact);const r=function(e,t){return e?e+t.charAt(0).toUpperCase()+t.slice(1):"deviceId"===t?"sourceId":t};if(void 0!==i.ideal){t.optional=t.optional||[];let e={};"number"==typeof i.ideal?(e[r("min",n)]=i.ideal,t.optional.push(e),e={},e[r("max",n)]=i.ideal,t.optional.push(e)):(e[r("",n)]=i.ideal,t.optional.push(e))}void 0!==i.exact&&"number"!=typeof i.exact?(t.mandatory=t.mandatory||{},t.mandatory[r("",n)]=i.exact):["min","max"].forEach(e=>{void 0!==i[e]&&(t.mandatory=t.mandatory||{},t.mandatory[r(e,n)]=i[e])})}),e.advanced&&(t.optional=(t.optional||[]).concat(e.advanced)),t},r=function(e,r){if(n.version>=61)return r(e);if((e=JSON.parse(JSON.stringify(e)))&&"object"==typeof e.audio){const t=function(e,t,n){t in e&&!(n in e)&&(e[n]=e[t],delete e[t])};t((e=JSON.parse(JSON.stringify(e))).audio,"autoGainControl","googAutoGainControl"),t(e.audio,"noiseSuppression","googNoiseSuppression"),e.audio=i(e.audio)}if(e&&"object"==typeof e.video){let o=e.video.facingMode;o=o&&("object"==typeof o?o:{ideal:o});const a=n.version<66;if(o&&("user"===o.exact||"environment"===o.exact||"user"===o.ideal||"environment"===o.ideal)&&(!t.mediaDevices.getSupportedConstraints||!t.mediaDevices.getSupportedConstraints().facingMode||a)){let n;if(delete e.video.facingMode,"environment"===o.exact||"environment"===o.ideal?n=["back","rear"]:"user"!==o.exact&&"user"!==o.ideal||(n=["front"]),n)return t.mediaDevices.enumerateDevices().then(t=>{let a=(t=t.filter(e=>"videoinput"===e.kind)).find(e=>n.some(t=>e.label.toLowerCase().includes(t)));return!a&&t.length&&n.includes("back")&&(a=t[t.length-1]),a&&(e.video.deviceId=o.exact?{exact:a.deviceId}:{ideal:a.deviceId}),e.video=i(e.video),L("chrome: "+JSON.stringify(e)),r(e)})}e.video=i(e.video)}return L("chrome: "+JSON.stringify(e)),r(e)},o=function(e){return n.version>=64?e:{name:{PermissionDeniedError:"NotAllowedError",PermissionDismissedError:"NotAllowedError",InvalidStateError:"NotAllowedError",DevicesNotFoundError:"NotFoundError",ConstraintNotSatisfiedError:"OverconstrainedError",TrackStartError:"NotReadableError",MediaDeviceFailedDueToShutdown:"NotAllowedError",MediaDeviceKillSwitchOn:"NotAllowedError",TabCaptureError:"AbortError",ScreenCaptureError:"AbortError",DeviceCaptureError:"AbortError"}[e.name]||e.name,message:e.message,constraint:e.constraint||e.constraintName,toString(){return this.name+(this.message&&": ")+this.message}}};if(t.getUserMedia=function(e,n,i){r(e,e=>{t.webkitGetUserMedia(e,n,e=>{i&&i(o(e))})})}.bind(t),t.mediaDevices.getUserMedia){const e=t.mediaDevices.getUserMedia.bind(t.mediaDevices);t.mediaDevices.getUserMedia=function(t){return r(t,t=>e(t).then(e=>{if(t.audio&&!e.getAudioTracks().length||t.video&&!e.getVideoTracks().length)throw e.getTracks().forEach(e=>{e.stop()}),new DOMException("","NotFoundError");return e},e=>Promise.reject(o(e))))}}}function F(e,t){e.navigator.mediaDevices&&"getDisplayMedia"in e.navigator.mediaDevices||e.navigator.mediaDevices&&("function"==typeof t?e.navigator.mediaDevices.getDisplayMedia=function(n){return t(n).then(t=>{const i=n.video&&n.video.width,r=n.video&&n.video.height,o=n.video&&n.video.frameRate;return n.video={mandatory:{chromeMediaSource:"desktop",chromeMediaSourceId:t,maxFrameRate:o||3}},i&&(n.video.mandatory.maxWidth=i),r&&(n.video.mandatory.maxHeight=r),e.navigator.mediaDevices.getUserMedia(n)})}:console.error("shimGetDisplayMedia: getSourceId argument is not a function"))}function z(e){e.MediaStream=e.MediaStream||e.webkitMediaStream}function U(e){if("object"==typeof e&&e.RTCPeerConnection&&!("ontrack"in e.RTCPeerConnection.prototype)){Object.defineProperty(e.RTCPeerConnection.prototype,"ontrack",{get(){return this._ontrack},set(e){this._ontrack&&this.removeEventListener("track",this._ontrack),this.addEventListener("track",this._ontrack=e)},enumerable:!0,configurable:!0});const t=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){return this._ontrackpoly||(this._ontrackpoly=t=>{t.stream.addEventListener("addtrack",n=>{let i;i=e.RTCPeerConnection.prototype.getReceivers?this.getReceivers().find(e=>e.track&&e.track.id===n.track.id):{track:n.track};const r=new Event("track");r.track=n.track,r.receiver=i,r.transceiver={receiver:i},r.streams=[t.stream],this.dispatchEvent(r)}),t.stream.getTracks().forEach(n=>{let i;i=e.RTCPeerConnection.prototype.getReceivers?this.getReceivers().find(e=>e.track&&e.track.id===n.id):{track:n};const r=new Event("track");r.track=n,r.receiver=i,r.transceiver={receiver:i},r.streams=[t.stream],this.dispatchEvent(r)})},this.addEventListener("addstream",this._ontrackpoly)),t.apply(this,arguments)}}else j(e,"track",e=>(e.transceiver||Object.defineProperty(e,"transceiver",{value:{receiver:e.receiver}}),e))}function B(e){if("object"==typeof e&&e.RTCPeerConnection&&!("getSenders"in e.RTCPeerConnection.prototype)&&"createDTMFSender"in e.RTCPeerConnection.prototype){const t=function(e,t){return{track:t,get dtmf(){return void 0===this._dtmf&&("audio"===t.kind?this._dtmf=e.createDTMFSender(t):this._dtmf=null),this._dtmf},_pc:e}};if(!e.RTCPeerConnection.prototype.getSenders){e.RTCPeerConnection.prototype.getSenders=function(){return this._senders=this._senders||[],this._senders.slice()};const n=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addTrack=function(e,i){let r=n.apply(this,arguments);return r||(r=t(this,e),this._senders.push(r)),r};const i=e.RTCPeerConnection.prototype.removeTrack;e.RTCPeerConnection.prototype.removeTrack=function(e){i.apply(this,arguments);const t=this._senders.indexOf(e);-1!==t&&this._senders.splice(t,1)}}const n=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(e){this._senders=this._senders||[],n.apply(this,[e]),e.getTracks().forEach(e=>{this._senders.push(t(this,e))})};const i=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(e){this._senders=this._senders||[],i.apply(this,[e]),e.getTracks().forEach(e=>{const t=this._senders.find(t=>t.track===e);t&&this._senders.splice(this._senders.indexOf(t),1)})}}else if("object"==typeof e&&e.RTCPeerConnection&&"getSenders"in e.RTCPeerConnection.prototype&&"createDTMFSender"in e.RTCPeerConnection.prototype&&e.RTCRtpSender&&!("dtmf"in e.RTCRtpSender.prototype)){const t=e.RTCPeerConnection.prototype.getSenders;e.RTCPeerConnection.prototype.getSenders=function(){const e=t.apply(this,[]);return e.forEach(e=>e._pc=this),e},Object.defineProperty(e.RTCRtpSender.prototype,"dtmf",{get(){return void 0===this._dtmf&&("audio"===this.track.kind?this._dtmf=this._pc.createDTMFSender(this.track):this._dtmf=null),this._dtmf}})}}function V(e){if(!e.RTCPeerConnection)return;const t=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){const[e,n,i]=arguments;if(arguments.length>0&&"function"==typeof e)return t.apply(this,arguments);if(0===t.length&&(0===arguments.length||"function"!=typeof e))return t.apply(this,[]);const r=function(e){const t={};return e.result().forEach(e=>{const n={id:e.id,timestamp:e.timestamp,type:{localcandidate:"local-candidate",remotecandidate:"remote-candidate"}[e.type]||e.type};e.names().forEach(t=>{n[t]=e.stat(t)}),t[n.id]=n}),t},o=function(e){return new Map(Object.keys(e).map(t=>[t,e[t]]))};if(arguments.length>=2){const i=function(e){n(o(r(e)))};return t.apply(this,[i,e])}return new Promise((e,n)=>{t.apply(this,[function(t){e(o(r(t)))},n])}).then(n,i)}}function $(e){if(!("object"==typeof e&&e.RTCPeerConnection&&e.RTCRtpSender&&e.RTCRtpReceiver))return;if(!("getStats"in e.RTCRtpSender.prototype)){const t=e.RTCPeerConnection.prototype.getSenders;t&&(e.RTCPeerConnection.prototype.getSenders=function(){const e=t.apply(this,[]);return e.forEach(e=>e._pc=this),e});const n=e.RTCPeerConnection.prototype.addTrack;n&&(e.RTCPeerConnection.prototype.addTrack=function(){const e=n.apply(this,arguments);return e._pc=this,e}),e.RTCRtpSender.prototype.getStats=function(){const e=this;return this._pc.getStats().then(t=>D(t,e.track,!0))}}if(!("getStats"in e.RTCRtpReceiver.prototype)){const t=e.RTCPeerConnection.prototype.getReceivers;t&&(e.RTCPeerConnection.prototype.getReceivers=function(){const e=t.apply(this,[]);return e.forEach(e=>e._pc=this),e}),j(e,"track",e=>(e.receiver._pc=e.srcElement,e)),e.RTCRtpReceiver.prototype.getStats=function(){const e=this;return this._pc.getStats().then(t=>D(t,e.track,!1))}}if(!("getStats"in e.RTCRtpSender.prototype)||!("getStats"in e.RTCRtpReceiver.prototype))return;const t=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){if(arguments.length>0&&arguments[0]instanceof e.MediaStreamTrack){const e=arguments[0];let t,n,i;return this.getSenders().forEach(n=>{n.track===e&&(t?i=!0:t=n)}),this.getReceivers().forEach(t=>(t.track===e&&(n?i=!0:n=t),t.track===e)),i||t&&n?Promise.reject(new DOMException("There are more than one sender or receiver for the track.","InvalidAccessError")):t?t.getStats():n?n.getStats():Promise.reject(new DOMException("There is no sender or receiver for the track.","InvalidAccessError"))}return t.apply(this,arguments)}}function H(e){e.RTCPeerConnection.prototype.getLocalStreams=function(){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},Object.keys(this._shimmedLocalStreams).map(e=>this._shimmedLocalStreams[e][0])};const t=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addTrack=function(e,n){if(!n)return t.apply(this,arguments);this._shimmedLocalStreams=this._shimmedLocalStreams||{};const i=t.apply(this,arguments);return this._shimmedLocalStreams[n.id]?-1===this._shimmedLocalStreams[n.id].indexOf(i)&&this._shimmedLocalStreams[n.id].push(i):this._shimmedLocalStreams[n.id]=[n,i],i};const n=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(e){this._shimmedLocalStreams=this._shimmedLocalStreams||{},e.getTracks().forEach(e=>{if(this.getSenders().find(t=>t.track===e))throw new DOMException("Track already exists.","InvalidAccessError")});const t=this.getSenders();n.apply(this,arguments);const i=this.getSenders().filter(e=>-1===t.indexOf(e));this._shimmedLocalStreams[e.id]=[e].concat(i)};const i=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(e){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},delete this._shimmedLocalStreams[e.id],i.apply(this,arguments)};const r=e.RTCPeerConnection.prototype.removeTrack;e.RTCPeerConnection.prototype.removeTrack=function(e){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},e&&Object.keys(this._shimmedLocalStreams).forEach(t=>{const n=this._shimmedLocalStreams[t].indexOf(e);-1!==n&&this._shimmedLocalStreams[t].splice(n,1),1===this._shimmedLocalStreams[t].length&&delete this._shimmedLocalStreams[t]}),r.apply(this,arguments)}}function W(e){if(!e.RTCPeerConnection)return;const t=A(e);if(e.RTCPeerConnection.prototype.addTrack&&t.version>=65)return H(e);const n=e.RTCPeerConnection.prototype.getLocalStreams;e.RTCPeerConnection.prototype.getLocalStreams=function(){const e=n.apply(this);return this._reverseStreams=this._reverseStreams||{},e.map(e=>this._reverseStreams[e.id])};const i=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(t){if(this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},t.getTracks().forEach(e=>{if(this.getSenders().find(t=>t.track===e))throw new DOMException("Track already exists.","InvalidAccessError")}),!this._reverseStreams[t.id]){const n=new e.MediaStream(t.getTracks());this._streams[t.id]=n,this._reverseStreams[n.id]=t,t=n}i.apply(this,[t])};const r=e.RTCPeerConnection.prototype.removeStream;function o(e,t){let n=t.sdp;return Object.keys(e._reverseStreams||[]).forEach(t=>{const i=e._reverseStreams[t],r=e._streams[i.id];n=n.replace(new RegExp(r.id,"g"),i.id)}),new RTCSessionDescription({type:t.type,sdp:n})}function a(e,t){let n=t.sdp;return Object.keys(e._reverseStreams||[]).forEach(t=>{const i=e._reverseStreams[t],r=e._streams[i.id];n=n.replace(new RegExp(i.id,"g"),r.id)}),new RTCSessionDescription({type:t.type,sdp:n})}e.RTCPeerConnection.prototype.removeStream=function(e){this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},r.apply(this,[this._streams[e.id]||e]),delete this._reverseStreams[this._streams[e.id]?this._streams[e.id].id:e.id],delete this._streams[e.id]},e.RTCPeerConnection.prototype.addTrack=function(t,n){if("closed"===this.signalingState)throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");const i=[].slice.call(arguments,1);if(1!==i.length||!i[0].getTracks().find(e=>e===t))throw new DOMException("The adapter.js addTrack polyfill only supports a single stream which is associated with the specified track.","NotSupportedError");const r=this.getSenders().find(e=>e.track===t);if(r)throw new DOMException("Track already exists.","InvalidAccessError");this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{};const o=this._streams[n.id];if(o)o.addTrack(t),Promise.resolve().then(()=>{this.dispatchEvent(new Event("negotiationneeded"))});else{const i=new e.MediaStream([t]);this._streams[n.id]=i,this._reverseStreams[i.id]=n,this.addStream(i)}return this.getSenders().find(e=>e.track===t)},["createOffer","createAnswer"].forEach((function(t){const n=e.RTCPeerConnection.prototype[t],i={[t](){const e=arguments;return arguments.length&&"function"==typeof arguments[0]?n.apply(this,[t=>{const n=o(this,t);e[0].apply(null,[n])},t=>{e[1]&&e[1].apply(null,t)},arguments[2]]):n.apply(this,arguments).then(e=>o(this,e))}};e.RTCPeerConnection.prototype[t]=i[t]}));const s=e.RTCPeerConnection.prototype.setLocalDescription;e.RTCPeerConnection.prototype.setLocalDescription=function(){return arguments.length&&arguments[0].type?(arguments[0]=a(this,arguments[0]),s.apply(this,arguments)):s.apply(this,arguments)};const l=Object.getOwnPropertyDescriptor(e.RTCPeerConnection.prototype,"localDescription");Object.defineProperty(e.RTCPeerConnection.prototype,"localDescription",{get(){const e=l.get.apply(this);return""===e.type?e:o(this,e)}}),e.RTCPeerConnection.prototype.removeTrack=function(e){if("closed"===this.signalingState)throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");if(!e._pc)throw new DOMException("Argument 1 of RTCPeerConnection.removeTrack does not implement interface RTCRtpSender.","TypeError");if(!(e._pc===this))throw new DOMException("Sender was not created by this connection.","InvalidAccessError");let t;this._streams=this._streams||{},Object.keys(this._streams).forEach(n=>{this._streams[n].getTracks().find(t=>e.track===t)&&(t=this._streams[n])}),t&&(1===t.getTracks().length?this.removeStream(this._reverseStreams[t.id]):t.removeTrack(e.track),this.dispatchEvent(new Event("negotiationneeded")))}}function G(e){const t=A(e);if(!e.RTCPeerConnection&&e.webkitRTCPeerConnection&&(e.RTCPeerConnection=e.webkitRTCPeerConnection),!e.RTCPeerConnection)return;const n=0===e.RTCPeerConnection.prototype.addIceCandidate.length;t.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach((function(t){const n=e.RTCPeerConnection.prototype[t],i={[t](){return arguments[0]=new("addIceCandidate"===t?e.RTCIceCandidate:e.RTCSessionDescription)(arguments[0]),n.apply(this,arguments)}};e.RTCPeerConnection.prototype[t]=i[t]}));const i=e.RTCPeerConnection.prototype.addIceCandidate;e.RTCPeerConnection.prototype.addIceCandidate=function(){return n||arguments[0]?t.version<78&&arguments[0]&&""===arguments[0].candidate?Promise.resolve():i.apply(this,arguments):(arguments[1]&&arguments[1].apply(null),Promise.resolve())}}function Q(e){const t=A(e);j(e,"negotiationneeded",e=>{const n=e.target;if(!(t.version<72||n.getConfiguration&&"plan-b"===n.getConfiguration().sdpSemantics)||"stable"===n.signalingState)return e})}var J=n(47),K=n.n(J);function Y(e){const t=e&&e.navigator,n=t.mediaDevices.getUserMedia.bind(t.mediaDevices);t.mediaDevices.getUserMedia=function(e){return n(e).catch(e=>Promise.reject(function(e){return{name:{PermissionDeniedError:"NotAllowedError"}[e.name]||e.name,message:e.message,constraint:e.constraint,toString(){return this.name}}}(e)))}}function X(e){"getDisplayMedia"in e.navigator&&e.navigator.mediaDevices&&(e.navigator.mediaDevices&&"getDisplayMedia"in e.navigator.mediaDevices||(e.navigator.mediaDevices.getDisplayMedia=e.navigator.getDisplayMedia.bind(e.navigator)))}function Z(e){const t=A(e);if(e.RTCIceGatherer&&(e.RTCIceCandidate||(e.RTCIceCandidate=function(e){return e}),e.RTCSessionDescription||(e.RTCSessionDescription=function(e){return e}),t.version<15025)){const t=Object.getOwnPropertyDescriptor(e.MediaStreamTrack.prototype,"enabled");Object.defineProperty(e.MediaStreamTrack.prototype,"enabled",{set(e){t.set.call(this,e);const n=new Event("enabled");n.enabled=e,this.dispatchEvent(n)}})}e.RTCRtpSender&&!("dtmf"in e.RTCRtpSender.prototype)&&Object.defineProperty(e.RTCRtpSender.prototype,"dtmf",{get(){return void 0===this._dtmf&&("audio"===this.track.kind?this._dtmf=new e.RTCDtmfSender(this):"video"===this.track.kind&&(this._dtmf=null)),this._dtmf}}),e.RTCDtmfSender&&!e.RTCDTMFSender&&(e.RTCDTMFSender=e.RTCDtmfSender);const n=K()(e,t.version);e.RTCPeerConnection=function(e){return e&&e.iceServers&&(e.iceServers=function(e,t){let n=!1;return(e=JSON.parse(JSON.stringify(e))).filter(e=>{if(e&&(e.urls||e.url)){var t=e.urls||e.url;e.url&&!e.urls&&I("RTCIceServer.url","RTCIceServer.urls");const i="string"==typeof t;return i&&(t=[t]),t=t.filter(e=>{if(0===e.indexOf("stun:"))return!1;const t=e.startsWith("turn")&&!e.startsWith("turn:[")&&e.includes("transport=udp");return t&&!n?(n=!0,!0):t&&!n}),delete e.url,e.urls=i?t[0]:t,!!t.length}})}(e.iceServers,t.version),P("ICE servers after filtering:",e.iceServers)),new n(e)},e.RTCPeerConnection.prototype=n.prototype}function ee(e){e.RTCRtpSender&&!("replaceTrack"in e.RTCRtpSender.prototype)&&(e.RTCRtpSender.prototype.replaceTrack=e.RTCRtpSender.prototype.setTrack)}function te(e){const t=A(e),n=e&&e.navigator,i=e&&e.MediaStreamTrack;if(n.getUserMedia=function(e,t,i){I("navigator.getUserMedia","navigator.mediaDevices.getUserMedia"),n.mediaDevices.getUserMedia(e).then(t,i)},!(t.version>55&&"autoGainControl"in n.mediaDevices.getSupportedConstraints())){const e=function(e,t,n){t in e&&!(n in e)&&(e[n]=e[t],delete e[t])},t=n.mediaDevices.getUserMedia.bind(n.mediaDevices);if(n.mediaDevices.getUserMedia=function(n){return"object"==typeof n&&"object"==typeof n.audio&&(n=JSON.parse(JSON.stringify(n)),e(n.audio,"autoGainControl","mozAutoGainControl"),e(n.audio,"noiseSuppression","mozNoiseSuppression")),t(n)},i&&i.prototype.getSettings){const t=i.prototype.getSettings;i.prototype.getSettings=function(){const n=t.apply(this,arguments);return e(n,"mozAutoGainControl","autoGainControl"),e(n,"mozNoiseSuppression","noiseSuppression"),n}}if(i&&i.prototype.applyConstraints){const t=i.prototype.applyConstraints;i.prototype.applyConstraints=function(n){return"audio"===this.kind&&"object"==typeof n&&(n=JSON.parse(JSON.stringify(n)),e(n,"autoGainControl","mozAutoGainControl"),e(n,"noiseSuppression","mozNoiseSuppression")),t.apply(this,[n])}}}}function ne(e,t){e.navigator.mediaDevices&&"getDisplayMedia"in e.navigator.mediaDevices||e.navigator.mediaDevices&&(e.navigator.mediaDevices.getDisplayMedia=function(n){if(!n||!n.video){const e=new DOMException("getDisplayMedia without video constraints is undefined");return e.name="NotFoundError",e.code=8,Promise.reject(e)}return!0===n.video?n.video={mediaSource:t}:n.video.mediaSource=t,e.navigator.mediaDevices.getUserMedia(n)})}function ie(e){"object"==typeof e&&e.RTCTrackEvent&&"receiver"in e.RTCTrackEvent.prototype&&!("transceiver"in e.RTCTrackEvent.prototype)&&Object.defineProperty(e.RTCTrackEvent.prototype,"transceiver",{get(){return{receiver:this.receiver}}})}function re(e){const t=A(e);if("object"!=typeof e||!e.RTCPeerConnection&&!e.mozRTCPeerConnection)return;if(!e.RTCPeerConnection&&e.mozRTCPeerConnection&&(e.RTCPeerConnection=e.mozRTCPeerConnection),t.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach((function(t){const n=e.RTCPeerConnection.prototype[t],i={[t](){return arguments[0]=new("addIceCandidate"===t?e.RTCIceCandidate:e.RTCSessionDescription)(arguments[0]),n.apply(this,arguments)}};e.RTCPeerConnection.prototype[t]=i[t]})),t.version<68){const t=e.RTCPeerConnection.prototype.addIceCandidate;e.RTCPeerConnection.prototype.addIceCandidate=function(){return arguments[0]?arguments[0]&&""===arguments[0].candidate?Promise.resolve():t.apply(this,arguments):(arguments[1]&&arguments[1].apply(null),Promise.resolve())}}const n={inboundrtp:"inbound-rtp",outboundrtp:"outbound-rtp",candidatepair:"candidate-pair",localcandidate:"local-candidate",remotecandidate:"remote-candidate"},i=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){const[e,r,o]=arguments;return i.apply(this,[e||null]).then(e=>{if(t.version<53&&!r)try{e.forEach(e=>{e.type=n[e.type]||e.type})}catch(t){if("TypeError"!==t.name)throw t;e.forEach((t,i)=>{e.set(i,Object.assign({},t,{type:n[t.type]||t.type}))})}return e}).then(r,o)}}function oe(e){if("object"!=typeof e||!e.RTCPeerConnection||!e.RTCRtpSender)return;if(e.RTCRtpSender&&"getStats"in e.RTCRtpSender.prototype)return;const t=e.RTCPeerConnection.prototype.getSenders;t&&(e.RTCPeerConnection.prototype.getSenders=function(){const e=t.apply(this,[]);return e.forEach(e=>e._pc=this),e});const n=e.RTCPeerConnection.prototype.addTrack;n&&(e.RTCPeerConnection.prototype.addTrack=function(){const e=n.apply(this,arguments);return e._pc=this,e}),e.RTCRtpSender.prototype.getStats=function(){return this.track?this._pc.getStats(this.track):Promise.resolve(new Map)}}function ae(e){if("object"!=typeof e||!e.RTCPeerConnection||!e.RTCRtpSender)return;if(e.RTCRtpSender&&"getStats"in e.RTCRtpReceiver.prototype)return;const t=e.RTCPeerConnection.prototype.getReceivers;t&&(e.RTCPeerConnection.prototype.getReceivers=function(){const e=t.apply(this,[]);return e.forEach(e=>e._pc=this),e}),j(e,"track",e=>(e.receiver._pc=e.srcElement,e)),e.RTCRtpReceiver.prototype.getStats=function(){return this._pc.getStats(this.track)}}function se(e){e.RTCPeerConnection&&!("removeStream"in e.RTCPeerConnection.prototype)&&(e.RTCPeerConnection.prototype.removeStream=function(e){I("removeStream","removeTrack"),this.getSenders().forEach(t=>{t.track&&e.getTracks().includes(t.track)&&this.removeTrack(t)})})}function le(e){e.DataChannel&&!e.RTCDataChannel&&(e.RTCDataChannel=e.DataChannel)}function ce(e){if("object"!=typeof e||!e.RTCPeerConnection)return;const t=e.RTCPeerConnection.prototype.addTransceiver;t&&(e.RTCPeerConnection.prototype.addTransceiver=function(){this.setParametersPromises=[];const e=arguments[1],n=e&&"sendEncodings"in e;n&&e.sendEncodings.forEach(e=>{if("rid"in e){if(!/^[a-z0-9]{0,16}$/i.test(e.rid))throw new TypeError("Invalid RID value provided.")}if("scaleResolutionDownBy"in e&&!(parseFloat(e.scaleResolutionDownBy)>=1))throw new RangeError("scale_resolution_down_by must be >= 1.0");if("maxFramerate"in e&&!(parseFloat(e.maxFramerate)>=0))throw new RangeError("max_framerate must be >= 0.0")});const i=t.apply(this,arguments);if(n){const{sender:t}=i,n=t.getParameters();"encodings"in n||(n.encodings=e.sendEncodings,this.setParametersPromises.push(t.setParameters(n).catch(()=>{})))}return i})}function ue(e){if("object"!=typeof e||!e.RTCPeerConnection)return;const t=e.RTCPeerConnection.prototype.createOffer;e.RTCPeerConnection.prototype.createOffer=function(){return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then(()=>t.apply(this,arguments)).finally(()=>{this.setParametersPromises=[]}):t.apply(this,arguments)}}function de(e){if("object"!=typeof e||!e.RTCPeerConnection)return;const t=e.RTCPeerConnection.prototype.createAnswer;e.RTCPeerConnection.prototype.createAnswer=function(){return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then(()=>t.apply(this,arguments)).finally(()=>{this.setParametersPromises=[]}):t.apply(this,arguments)}}function pe(e){if("object"==typeof e&&e.RTCPeerConnection){if("getLocalStreams"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.getLocalStreams=function(){return this._localStreams||(this._localStreams=[]),this._localStreams}),!("addStream"in e.RTCPeerConnection.prototype)){const t=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addStream=function(e){this._localStreams||(this._localStreams=[]),this._localStreams.includes(e)||this._localStreams.push(e),e.getAudioTracks().forEach(n=>t.call(this,n,e)),e.getVideoTracks().forEach(n=>t.call(this,n,e))},e.RTCPeerConnection.prototype.addTrack=function(e,...n){return n&&n.forEach(e=>{this._localStreams?this._localStreams.includes(e)||this._localStreams.push(e):this._localStreams=[e]}),t.apply(this,arguments)}}"removeStream"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.removeStream=function(e){this._localStreams||(this._localStreams=[]);const t=this._localStreams.indexOf(e);if(-1===t)return;this._localStreams.splice(t,1);const n=e.getTracks();this.getSenders().forEach(e=>{n.includes(e.track)&&this.removeTrack(e)})})}}function me(e){if("object"==typeof e&&e.RTCPeerConnection&&("getRemoteStreams"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.getRemoteStreams=function(){return this._remoteStreams?this._remoteStreams:[]}),!("onaddstream"in e.RTCPeerConnection.prototype))){Object.defineProperty(e.RTCPeerConnection.prototype,"onaddstream",{get(){return this._onaddstream},set(e){this._onaddstream&&(this.removeEventListener("addstream",this._onaddstream),this.removeEventListener("track",this._onaddstreampoly)),this.addEventListener("addstream",this._onaddstream=e),this.addEventListener("track",this._onaddstreampoly=e=>{e.streams.forEach(e=>{if(this._remoteStreams||(this._remoteStreams=[]),this._remoteStreams.includes(e))return;this._remoteStreams.push(e);const t=new Event("addstream");t.stream=e,this.dispatchEvent(t)})})}});const t=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){const e=this;return this._onaddstreampoly||this.addEventListener("track",this._onaddstreampoly=function(t){t.streams.forEach(t=>{if(e._remoteStreams||(e._remoteStreams=[]),e._remoteStreams.indexOf(t)>=0)return;e._remoteStreams.push(t);const n=new Event("addstream");n.stream=t,e.dispatchEvent(n)})}),t.apply(e,arguments)}}}function he(e){if("object"!=typeof e||!e.RTCPeerConnection)return;const t=e.RTCPeerConnection.prototype,n=t.createOffer,i=t.createAnswer,r=t.setLocalDescription,o=t.setRemoteDescription,a=t.addIceCandidate;t.createOffer=function(e,t){const i=arguments.length>=2?arguments[2]:arguments[0],r=n.apply(this,[i]);return t?(r.then(e,t),Promise.resolve()):r},t.createAnswer=function(e,t){const n=arguments.length>=2?arguments[2]:arguments[0],r=i.apply(this,[n]);return t?(r.then(e,t),Promise.resolve()):r};let s=function(e,t,n){const i=r.apply(this,[e]);return n?(i.then(t,n),Promise.resolve()):i};t.setLocalDescription=s,s=function(e,t,n){const i=o.apply(this,[e]);return n?(i.then(t,n),Promise.resolve()):i},t.setRemoteDescription=s,s=function(e,t,n){const i=a.apply(this,[e]);return n?(i.then(t,n),Promise.resolve()):i},t.addIceCandidate=s}function fe(e){const t=e&&e.navigator;if(t.mediaDevices&&t.mediaDevices.getUserMedia){const e=t.mediaDevices,n=e.getUserMedia.bind(e);t.mediaDevices.getUserMedia=e=>n(ge(e))}!t.getUserMedia&&t.mediaDevices&&t.mediaDevices.getUserMedia&&(t.getUserMedia=function(e,n,i){t.mediaDevices.getUserMedia(e).then(n,i)}.bind(t))}function ge(e){return e&&void 0!==e.video?Object.assign({},e,{video:N(e.video)}):e}function ve(e){const t=e.RTCPeerConnection;e.RTCPeerConnection=function(e,n){if(e&&e.iceServers){const t=[];for(let n=0;n<e.iceServers.length;n++){let i=e.iceServers[n];!i.hasOwnProperty("urls")&&i.hasOwnProperty("url")?(I("RTCIceServer.url","RTCIceServer.urls"),i=JSON.parse(JSON.stringify(i)),i.urls=i.url,delete i.url,t.push(i)):t.push(e.iceServers[n])}e.iceServers=t}return new t(e,n)},e.RTCPeerConnection.prototype=t.prototype,"generateCertificate"in e.RTCPeerConnection&&Object.defineProperty(e.RTCPeerConnection,"generateCertificate",{get:()=>t.generateCertificate})}function be(e){"object"==typeof e&&e.RTCTrackEvent&&"receiver"in e.RTCTrackEvent.prototype&&!("transceiver"in e.RTCTrackEvent.prototype)&&Object.defineProperty(e.RTCTrackEvent.prototype,"transceiver",{get(){return{receiver:this.receiver}}})}function ye(e){const t=e.RTCPeerConnection.prototype.createOffer;e.RTCPeerConnection.prototype.createOffer=function(e){if(e){void 0!==e.offerToReceiveAudio&&(e.offerToReceiveAudio=!!e.offerToReceiveAudio);const t=this.getTransceivers().find(e=>"audio"===e.receiver.track.kind);!1===e.offerToReceiveAudio&&t?"sendrecv"===t.direction?t.setDirection?t.setDirection("sendonly"):t.direction="sendonly":"recvonly"===t.direction&&(t.setDirection?t.setDirection("inactive"):t.direction="inactive"):!0!==e.offerToReceiveAudio||t||this.addTransceiver("audio"),void 0!==e.offerToReceiveVideo&&(e.offerToReceiveVideo=!!e.offerToReceiveVideo);const n=this.getTransceivers().find(e=>"video"===e.receiver.track.kind);!1===e.offerToReceiveVideo&&n?"sendrecv"===n.direction?n.setDirection?n.setDirection("sendonly"):n.direction="sendonly":"recvonly"===n.direction&&(n.setDirection?n.setDirection("inactive"):n.direction="inactive"):!0!==e.offerToReceiveVideo||n||this.addTransceiver("video")}return t.apply(this,arguments)}}function ke(e){"object"!=typeof e||e.AudioContext||(e.AudioContext=e.webkitAudioContext)}var we=n(4),Se=n.n(we);function Ce(e){if(!e.RTCIceCandidate||e.RTCIceCandidate&&"foundation"in e.RTCIceCandidate.prototype)return;const t=e.RTCIceCandidate;e.RTCIceCandidate=function(e){if("object"==typeof e&&e.candidate&&0===e.candidate.indexOf("a=")&&((e=JSON.parse(JSON.stringify(e))).candidate=e.candidate.substr(2)),e.candidate&&e.candidate.length){const n=new t(e),i=Se.a.parseCandidate(e.candidate),r=Object.assign(n,i);return r.toJSON=function(){return{candidate:r.candidate,sdpMid:r.sdpMid,sdpMLineIndex:r.sdpMLineIndex,usernameFragment:r.usernameFragment}},r}return new t(e)},e.RTCIceCandidate.prototype=t.prototype,j(e,"icecandidate",t=>(t.candidate&&Object.defineProperty(t,"candidate",{value:new e.RTCIceCandidate(t.candidate),writable:"false"}),t))}function xe(e){if(!e.RTCPeerConnection)return;const t=A(e);"sctp"in e.RTCPeerConnection.prototype||Object.defineProperty(e.RTCPeerConnection.prototype,"sctp",{get(){return void 0===this._sctp?null:this._sctp}});const n=function(e){if(!e||!e.sdp)return!1;const t=Se.a.splitSections(e.sdp);return t.shift(),t.some(e=>{const t=Se.a.parseMLine(e);return t&&"application"===t.kind&&-1!==t.protocol.indexOf("SCTP")})},i=function(e){const t=e.sdp.match(/mozilla...THIS_IS_SDPARTA-(\d+)/);if(null===t||t.length<2)return-1;const n=parseInt(t[1],10);return n!=n?-1:n},r=function(e){let n=65536;return"firefox"===t.browser&&(n=t.version<57?-1===e?16384:2147483637:t.version<60?57===t.version?65535:65536:2147483637),n},o=function(e,n){let i=65536;"firefox"===t.browser&&57===t.version&&(i=65535);const r=Se.a.matchPrefix(e.sdp,"a=max-message-size:");return r.length>0?i=parseInt(r[0].substr(19),10):"firefox"===t.browser&&-1!==n&&(i=2147483637),i},a=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){if(this._sctp=null,"chrome"===t.browser&&t.version>=76){const{sdpSemantics:e}=this.getConfiguration();"plan-b"===e&&Object.defineProperty(this,"sctp",{get(){return void 0===this._sctp?null:this._sctp},enumerable:!0,configurable:!0})}if(n(arguments[0])){const e=i(arguments[0]),t=r(e),n=o(arguments[0],e);let a;a=0===t&&0===n?Number.POSITIVE_INFINITY:0===t||0===n?Math.max(t,n):Math.min(t,n);const s={};Object.defineProperty(s,"maxMessageSize",{get:()=>a}),this._sctp=s}return a.apply(this,arguments)}}function Ee(e){if(!e.RTCPeerConnection||!("createDataChannel"in e.RTCPeerConnection.prototype))return;function t(e,t){const n=e.send;e.send=function(){const i=arguments[0],r=i.length||i.size||i.byteLength;if("open"===e.readyState&&t.sctp&&r>t.sctp.maxMessageSize)throw new TypeError("Message too large (can send a maximum of "+t.sctp.maxMessageSize+" bytes)");return n.apply(e,arguments)}}const n=e.RTCPeerConnection.prototype.createDataChannel;e.RTCPeerConnection.prototype.createDataChannel=function(){const e=n.apply(this,arguments);return t(e,this),e},j(e,"datachannel",e=>(t(e.channel,e.target),e))}function Te(e){if(!e.RTCPeerConnection||"connectionState"in e.RTCPeerConnection.prototype)return;const t=e.RTCPeerConnection.prototype;Object.defineProperty(t,"connectionState",{get(){return{completed:"connected",checking:"connecting"}[this.iceConnectionState]||this.iceConnectionState},enumerable:!0,configurable:!0}),Object.defineProperty(t,"onconnectionstatechange",{get(){return this._onconnectionstatechange||null},set(e){this._onconnectionstatechange&&(this.removeEventListener("connectionstatechange",this._onconnectionstatechange),delete this._onconnectionstatechange),e&&this.addEventListener("connectionstatechange",this._onconnectionstatechange=e)},enumerable:!0,configurable:!0}),["setLocalDescription","setRemoteDescription"].forEach(e=>{const n=t[e];t[e]=function(){return this._connectionstatechangepoly||(this._connectionstatechangepoly=e=>{const t=e.target;if(t._lastConnectionState!==t.connectionState){t._lastConnectionState=t.connectionState;const n=new Event("connectionstatechange",e);t.dispatchEvent(n)}return e},this.addEventListener("iceconnectionstatechange",this._connectionstatechangepoly)),n.apply(this,arguments)}})}function _e(e){if(!e.RTCPeerConnection)return;const t=A(e);if("chrome"===t.browser&&t.version>=71)return;const n=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(e){return e&&e.sdp&&-1!==e.sdp.indexOf("\na=extmap-allow-mixed")&&(e.sdp=e.sdp.split("\n").filter(e=>"a=extmap-allow-mixed"!==e.trim()).join("\n")),n.apply(this,arguments)}}var je=function({window:e}={},t={shimChrome:!0,shimFirefox:!0,shimEdge:!0,shimSafari:!0}){const n=P,l=A(e),c={browserDetails:l,commonShim:s,extractVersion:_,disableLog:O,disableWarnings:R};switch(l.browser){case"chrome":if(!i||!G||!t.shimChrome)return n("Chrome shim is not included in this adapter release."),c;if(null===l.version)return n("Chrome shim can not determine version, not shimming."),c;n("adapter.js shimming chrome."),c.browserShim=i,q(e),z(e),G(e),U(e),W(e),B(e),V(e),$(e),Q(e),Ce(e),Te(e),xe(e),Ee(e),_e(e);break;case"firefox":if(!o||!re||!t.shimFirefox)return n("Firefox shim is not included in this adapter release."),c;n("adapter.js shimming firefox."),c.browserShim=o,te(e),re(e),ie(e),se(e),oe(e),ae(e),le(e),ce(e),ue(e),de(e),Ce(e),Te(e),xe(e),Ee(e);break;case"edge":if(!r||!Z||!t.shimEdge)return n("MS edge shim is not included in this adapter release."),c;n("adapter.js shimming edge."),c.browserShim=r,Y(e),X(e),Z(e),ee(e),xe(e),Ee(e);break;case"safari":if(!a||!t.shimSafari)return n("Safari shim is not included in this adapter release."),c;n("adapter.js shimming safari."),c.browserShim=a,ve(e),ye(e),he(e),pe(e),me(e),be(e),fe(e),ke(e),Ce(e),xe(e),Ee(e),_e(e);break;default:n("Unsupported browser!")}return c}({window:window}),Oe=n(3),Re=n(8),Pe=n(5),Ie=n(0),Ae=n.n(Ie),Me=(n(18),Ae.a.createContext(null));var Ne=function(e){e()},De={notify:function(){}};function Le(){var e=Ne,t=null,n=null;return{clear:function(){t=null,n=null},notify:function(){e((function(){for(var e=t;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],n=t;n;)e.push(n),n=n.next;return e},subscribe:function(e){var i=!0,r=n={callback:e,next:null,prev:n};return r.prev?r.prev.next=r:t=r,function(){i&&null!==t&&(i=!1,r.next?r.next.prev=r.prev:n=r.prev,r.prev?r.prev.next=r.next:t=r.next)}}}}var qe=function(){function e(e,t){this.store=e,this.parentSub=t,this.unsubscribe=null,this.listeners=De,this.handleChangeWrapper=this.handleChangeWrapper.bind(this)}var t=e.prototype;return t.addNestedSub=function(e){return this.trySubscribe(),this.listeners.subscribe(e)},t.notifyNestedSubs=function(){this.listeners.notify()},t.handleChangeWrapper=function(){this.onStateChange&&this.onStateChange()},t.isSubscribed=function(){return Boolean(this.unsubscribe)},t.trySubscribe=function(){this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.handleChangeWrapper):this.store.subscribe(this.handleChangeWrapper),this.listeners=Le())},t.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,this.listeners.clear(),this.listeners=De)},e}();var Fe=function(e){var t=e.store,n=e.context,i=e.children,r=Object(Ie.useMemo)((function(){var e=new qe(t);return e.onStateChange=e.notifyNestedSubs,{store:t,subscription:e}}),[t]),o=Object(Ie.useMemo)((function(){return t.getState()}),[t]);Object(Ie.useEffect)((function(){var e=r.subscription;return e.trySubscribe(),o!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[r,o]);var a=n||Me;return Ae.a.createElement(a.Provider,{value:r},i)};function ze(){return(ze=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function Ue(e,t){if(null==e)return{};var n,i,r={},o=Object.keys(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||(r[n]=e[n]);return r}var Be=n(28),Ve=n.n(Be),$e=n(11),He="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?Ie.useLayoutEffect:Ie.useEffect,We=[],Ge=[null,null];function Qe(e,t){var n=e[1];return[t.payload,n+1]}function Je(e,t,n){He((function(){return e.apply(void 0,t)}),n)}function Ke(e,t,n,i,r,o,a){e.current=i,t.current=r,n.current=!1,o.current&&(o.current=null,a())}function Ye(e,t,n,i,r,o,a,s,l,c){if(e){var u=!1,d=null,p=function(){if(!u){var e,n,p=t.getState();try{e=i(p,r.current)}catch(e){n=e,d=e}n||(d=null),e===o.current?a.current||l():(o.current=e,s.current=e,a.current=!0,c({type:"STORE_UPDATED",payload:{error:n}}))}};n.onStateChange=p,n.trySubscribe(),p();return function(){if(u=!0,n.tryUnsubscribe(),n.onStateChange=null,d)throw d}}}var Xe=function(){return[null,0]};function Ze(e,t){void 0===t&&(t={});var n=t,i=n.getDisplayName,r=void 0===i?function(e){return"ConnectAdvanced("+e+")"}:i,o=n.methodName,a=void 0===o?"connectAdvanced":o,s=n.renderCountProp,l=void 0===s?void 0:s,c=n.shouldHandleStateChanges,u=void 0===c||c,d=n.storeKey,p=void 0===d?"store":d,m=(n.withRef,n.forwardRef),h=void 0!==m&&m,f=n.context,g=void 0===f?Me:f,v=Ue(n,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"]),b=g;return function(t){var n=t.displayName||t.name||"Component",i=r(n),o=ze({},v,{getDisplayName:r,methodName:a,renderCountProp:l,shouldHandleStateChanges:u,storeKey:p,displayName:i,wrappedComponentName:n,WrappedComponent:t}),s=v.pure;var c=s?Ie.useMemo:function(e){return e()};function d(n){var i=Object(Ie.useMemo)((function(){var e=n.forwardedRef,t=Ue(n,["forwardedRef"]);return[n.context,e,t]}),[n]),r=i[0],a=i[1],s=i[2],l=Object(Ie.useMemo)((function(){return r&&r.Consumer&&Object($e.isContextConsumer)(Ae.a.createElement(r.Consumer,null))?r:b}),[r,b]),d=Object(Ie.useContext)(l),p=Boolean(n.store)&&Boolean(n.store.getState)&&Boolean(n.store.dispatch);Boolean(d)&&Boolean(d.store);var m=p?n.store:d.store,h=Object(Ie.useMemo)((function(){return function(t){return e(t.dispatch,o)}(m)}),[m]),f=Object(Ie.useMemo)((function(){if(!u)return Ge;var e=new qe(m,p?null:d.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[m,p,d]),g=f[0],v=f[1],y=Object(Ie.useMemo)((function(){return p?d:ze({},d,{subscription:g})}),[p,d,g]),k=Object(Ie.useReducer)(Qe,We,Xe),w=k[0][0],S=k[1];if(w&&w.error)throw w.error;var C=Object(Ie.useRef)(),x=Object(Ie.useRef)(s),E=Object(Ie.useRef)(),T=Object(Ie.useRef)(!1),_=c((function(){return E.current&&s===x.current?E.current:h(m.getState(),s)}),[m,w,s]);Je(Ke,[x,C,T,s,_,E,v]),Je(Ye,[u,m,g,h,x,C,T,E,v,S],[m,g,h]);var j=Object(Ie.useMemo)((function(){return Ae.a.createElement(t,ze({},_,{ref:a}))}),[a,t,_]);return Object(Ie.useMemo)((function(){return u?Ae.a.createElement(l.Provider,{value:y},j):j}),[l,j,y])}var m=s?Ae.a.memo(d):d;if(m.WrappedComponent=t,m.displayName=i,h){var f=Ae.a.forwardRef((function(e,t){return Ae.a.createElement(m,ze({},e,{forwardedRef:t}))}));return f.displayName=i,f.WrappedComponent=t,Ve()(f,t)}return Ve()(m,t)}}function et(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function tt(e,t){if(et(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(var r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!et(e[n[r]],t[n[r]]))return!1;return!0}function nt(e){return function(t,n){var i=e(t,n);function r(){return i}return r.dependsOnOwnProps=!1,r}}function it(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function rt(e,t){return function(t,n){n.displayName;var i=function(e,t){return i.dependsOnOwnProps?i.mapToProps(e,t):i.mapToProps(e)};return i.dependsOnOwnProps=!0,i.mapToProps=function(t,n){i.mapToProps=e,i.dependsOnOwnProps=it(e);var r=i(t,n);return"function"==typeof r&&(i.mapToProps=r,i.dependsOnOwnProps=it(r),r=i(t,n)),r},i}}var ot=[function(e){return"function"==typeof e?rt(e):void 0},function(e){return e?void 0:nt((function(e){return{dispatch:e}}))},function(e){return e&&"object"==typeof e?nt((function(t){return function(e,t){if("function"==typeof e)return f(e,t);if("object"!=typeof e||null===e)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===e?"null":typeof e)+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');var n={};for(var i in e){var r=e[i];"function"==typeof r&&(n[i]=f(r,t))}return n}(e,t)})):void 0}];var at=[function(e){return"function"==typeof e?rt(e):void 0},function(e){return e?void 0:nt((function(){return{}}))}];function st(e,t,n){return ze({},n,{},e,{},t)}var lt=[function(e){return"function"==typeof e?function(e){return function(t,n){n.displayName;var i,r=n.pure,o=n.areMergedPropsEqual,a=!1;return function(t,n,s){var l=e(t,n,s);return a?r&&o(l,i)||(i=l):(a=!0,i=l),i}}}(e):void 0},function(e){return e?void 0:function(){return st}}];function ct(e,t,n,i){return function(r,o){return n(e(r,o),t(i,o),o)}}function ut(e,t,n,i,r){var o,a,s,l,c,u=r.areStatesEqual,d=r.areOwnPropsEqual,p=r.areStatePropsEqual,m=!1;function h(r,m){var h,f,g=!d(m,a),v=!u(r,o);return o=r,a=m,g&&v?(s=e(o,a),t.dependsOnOwnProps&&(l=t(i,a)),c=n(s,l,a)):g?(e.dependsOnOwnProps&&(s=e(o,a)),t.dependsOnOwnProps&&(l=t(i,a)),c=n(s,l,a)):v?(h=e(o,a),f=!p(h,s),s=h,f&&(c=n(s,l,a)),c):c}return function(r,u){return m?h(r,u):(s=e(o=r,a=u),l=t(i,a),c=n(s,l,a),m=!0,c)}}function dt(e,t){var n=t.initMapStateToProps,i=t.initMapDispatchToProps,r=t.initMergeProps,o=Ue(t,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),a=n(e,o),s=i(e,o),l=r(e,o);return(o.pure?ut:ct)(a,s,l,e,o)}function pt(e,t,n){for(var i=t.length-1;i>=0;i--){var r=t[i](e);if(r)return r}return function(t,i){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+i.wrappedComponentName+".")}}function mt(e,t){return e===t}function ht(e){var t=void 0===e?{}:e,n=t.connectHOC,i=void 0===n?Ze:n,r=t.mapStateToPropsFactories,o=void 0===r?at:r,a=t.mapDispatchToPropsFactories,s=void 0===a?ot:a,l=t.mergePropsFactories,c=void 0===l?lt:l,u=t.selectorFactory,d=void 0===u?dt:u;return function(e,t,n,r){void 0===r&&(r={});var a=r,l=a.pure,u=void 0===l||l,p=a.areStatesEqual,m=void 0===p?mt:p,h=a.areOwnPropsEqual,f=void 0===h?tt:h,g=a.areStatePropsEqual,v=void 0===g?tt:g,b=a.areMergedPropsEqual,y=void 0===b?tt:b,k=Ue(a,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),w=pt(e,o,"mapStateToProps"),S=pt(t,s,"mapDispatchToProps"),C=pt(n,c,"mergeProps");return i(d,ze({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:w,initMapDispatchToProps:S,initMergeProps:C,pure:u,areStatesEqual:m,areOwnPropsEqual:f,areStatePropsEqual:v,areMergedPropsEqual:y},k))}}var ft=ht();var gt,vt=n(10),bt=n.n(vt);gt=vt.unstable_batchedUpdates,Ne=gt;const yt="@andyet/SET_USER_PREFERENCE",kt="@andyet/LEAVE_ROOM",wt="@andyet/PEER_UPDATED",St="@andyet/LEAVE_CALL",Ct="@andyet/DEVICES";function xt(e){return e.simplewebrtc.api.config}function Et(e){return e.simplewebrtc.api.token}function Tt(e){return e.simplewebrtc.user}function _t(e){return xt(e).customerData}function jt(e){return e.simplewebrtc.api.configUrl}function Ot(e){return e.simplewebrtc.api.signalingClient}function Rt(e){return e.simplewebrtc.api.queuedTelemetry}function Pt(e){return e.simplewebrtc.api.connectionState}function It(e){return e.simplewebrtc.user.displayName}function At(e,t){const n=xt(e),i=Lt(e,t),r=Bt(e,t),o=Qt(e,"audio").filter(e=>e.lastSpokeAt).sort((e,t)=>(e.lastSpokeAt?e.lastSpokeAt.valueOf():0)-(t.lastSpokeAt?t.lastSpokeAt.valueOf():0));return{address:i.selfAddress,affiliation:i.selfAffiliation,chatState:"active",customerData:xt(e).customerData,displayName:It(e),id:n.id,joinedCall:r.joined,joinedCallAt:r.joinedAt,joinedRoomAt:i.joinedAt,lastSpokeAt:o.length?o[0].lastSpokeAt:void 0,muted:!1,requestingAttention:!1,requestingMedia:Mt(e,t),role:i.selfRole,roomAddress:t,rtt:"",speaking:sn(e,!0),volume:0,volumeLimit:.8}}function Mt(e,t){const n=e.simplewebrtc.user.requestingMedia;if(t){const i=Bt(e,t);if(i)return i.requestingMedia||n}return n}function Nt(e,t){return e.simplewebrtc.peers[t]}function Dt(e){return e.simplewebrtc.rooms}function Lt(e,t){return e.simplewebrtc.rooms[t]}function qt(e,t){for(const n of Object.keys(e.simplewebrtc.rooms))if(e.simplewebrtc.rooms[n].providedName===t)return e.simplewebrtc.rooms[n]}function Ft(e,t){const n=[];for(const i of Object.keys(e.simplewebrtc.peers))e.simplewebrtc.peers[i].roomAddress===t&&n.push(e.simplewebrtc.peers[i]);return n}function zt(e,t){const n=[];for(const i of Object.keys(e.simplewebrtc.chats)){const r=e.simplewebrtc.chats[i];r.roomAddress===t&&n.push(r)}return n.sort((e,t)=>e.time<t.time?-1:e.time>t.time?1:0)}function Ut(e,t,n=300){const i=[],r=zt(e,t);let o;for(const a of r){const r=!o||a.senderAddress!==o.senderAddress,s=o?o.chats[o.chats.length-1]:void 0,l=!o||s&&a.displayName&&a.displayName!==s.displayName;let c=!1;if(n&&(c=!o||Number(a.time)>Number(o.chats[0].time)+1e3*n),r||l||c){let n=Nt(e,a.senderAddress)||{};"outgoing"===a.direction&&(n=At(e,t)),o={chats:[a],direction:a.direction,displayName:n.displayName||a.displayName,endTime:a.time,peer:n,senderAddress:a.senderAddress,startTime:a.time},i.push(o)}else o&&(o.chats.push(a),o.endTime=a.time)}return i}function Bt(e,t){return e.simplewebrtc.calls[t]}function Vt(e){return e.simplewebrtc.media}function $t(e,t){return e.simplewebrtc.media[t]}function Ht(e,t){const n=e.simplewebrtc.devices.devices;return t?n.filter(e=>e.kind===t):n}function Wt(e){const t=e.simplewebrtc.devices;return{cameraPermissionDenied:t.cameraPermissionDenied,cameraPermissionGranted:t.cameraPermissionGranted,hasAudioOutput:t.hasAudioOutput,hasCamera:t.hasCamera,hasMicrophone:t.hasMicrophone,microphonePermissionDenied:t.microphonePermissionDenied,microphonePermissionGranted:t.microphonePermissionGranted,requestingCameraCapture:t.requestingCameraCapture,requestingCapture:t.requestingCapture,requestingMicrophoneCapture:t.requestingMicrophoneCapture}}function Gt(e,t,n){const i=[];for(const r of Object.keys(e.simplewebrtc.media)){const o=e.simplewebrtc.media[r];o.owner===t&&(n&&n!==o.kind||i.push(o))}return i}function Qt(e,t){const n=[];for(const i of Object.keys(e.simplewebrtc.media)){const r=e.simplewebrtc.media[i];"local"===r.source&&(t&&t!==r.kind||n.push(r))}return n.sort((e,t)=>e.createdAt-t.createdAt)}function Jt(e,t){const n=[];for(const i of Object.keys(e.simplewebrtc.media)){const r=e.simplewebrtc.media[i];"remote"===r.source&&(t&&t!==r.kind||n.push(r))}return n}function Kt(e,t){const n=[];for(const i of Object.keys(e.simplewebrtc.media)){const r=e.simplewebrtc.media[i];"local"===r.source&&r.shared&&(t&&t!==r.kind||n.push(r))}return n}function Yt(e){return e.simplewebrtc.user.audioOutputDeviceId}function Xt(e){return e.simplewebrtc.user.globalVolumeLimit}function Zt(e){const t=[];for(const n of Object.keys(e.simplewebrtc.calls)){const i=e.simplewebrtc.calls[n],r=Lt(e,i.roomAddress);i.joined&&r&&r.joined&&t.push(i)}return t}function en(e,t){const n=[];for(const i of Object.keys(e.simplewebrtc.peers)){const r=e.simplewebrtc.peers[i];r.roomAddress===t&&r.joinedCall&&n.push(r)}return n}function tn(e){return e.simplewebrtc.connections}function nn(e,t){const n=[],i=tn(e);for(const e of Object.keys(i)){const r=i[e];r.peerAddress===t&&n.push(r)}return n}function rn(e){let t=0;for(const n of Object.keys(e.simplewebrtc.peers)){"audio"===e.simplewebrtc.peers[n].requestingMedia&&(t+=1)}return t}function on(e){let t=0;for(const n of Object.keys(e.simplewebrtc.peers)){"video"===e.simplewebrtc.peers[n].requestingMedia&&(t+=1)}return t}function an(e){return!!("RTCPeerConnection"in window)&&!!("mediaDevices"in navigator)}function sn(e,t=!0){return Qt(e,"audio").filter(e=>!e.localDisabled&&!e.externalDisabled&&e.speaking&&(!t||e.shared)).length>0}function ln(e,t=!0){return Qt(e,"audio").filter(e=>(e.localDisabled||e.externalDisabled)&&e.speaking&&(!t||e.shared)).length>0}function cn(e){return e.simplewebrtc.api.videoResolutionTiers||[]}var un=Object.freeze({__proto__:null,getAPIConfig:xt,getUserToken:Et,getUser:Tt,getUserCustomerData:_t,getConfigURL:jt,getClient:Ot,getQueuedTelemetry:Rt,getConnectionState:Pt,getUserDisplayName:It,getUserDataForRoom:At,getDesiredMediaTypes:Mt,getPushToTalkEnabled:function(e){return e.simplewebrtc.user.pushToTalk},getPeerByAddress:Nt,getRooms:Dt,getRoomByAddress:Lt,getRoomByProvidedName:qt,getPeersForRoom:Ft,getChatsForRoom:zt,getGroupedChatsForRoom:Ut,getLastSentChat:function(e,t){return zt(e,t).filter(e=>"outgoing"===e.direction).slice(-1)[0]},getChatComposers:function(e,t){const n=[];for(const i of Object.keys(e.simplewebrtc.peers)){const r=e.simplewebrtc.peers[i];r.roomAddress===t&&"composing"===r.chatState&&n.push(r)}return n},getCallForRoom:Bt,getMedia:Vt,getMediaTrack:$t,getDeviceForMediaTrack:function(e,t){const n=$t(e,t);if(!n)return;let i;const r=n.track.label,o=n.kind+"input";if(n.track.getSettings){i=n.track.getSettings().deviceId}const a=e.simplewebrtc.devices.devices;if(i)for(const e of a)if(e.deviceId===i)return e;for(const e of a)if(r===e.label&&o===e.kind)return e},getDevices:Ht,getDevicePermissions:Wt,getMediaForPeer:Gt,getLocalMedia:Qt,getRemoteMedia:Jt,getSharedMedia:Kt,getAudioOutputDevice:Yt,getGlobalVolumeLimit:Xt,getJoinedCalls:Zt,getPeersForCall:en,getActiveSpeakersForCall:function(e,t){const n=[];for(const i of Object.keys(e.simplewebrtc.peers)){const r=e.simplewebrtc.peers[i];r.roomAddress===t&&r.joinedCall&&r.speaking&&n.push(r)}return n},getConnections:tn,getConnectionsForPeer:nn,countPeersWantingAudio:rn,countPeersWantingVideo:on,isSupportedBrowser:an,userIsSpeaking:sn,userIsSpeakingWhileMuted:ln,getVideoResolutionTiers:cn});class dn{constructor(e){this.jingle=e.jingle,this.dispatch=e.dispatch,this.getState=e.getState,this.sfu=e.sfu,this.updateQueue=Object(Re.a)((e,t)=>Object(x.a)(this,void 0,void 0,(function*(){const e=this.getState(),n=rn(e),i=on(e),r=Zt(e),o=Vt(e),a=Kt(e),s=a.filter(e=>"video"===e.kind).length,l=s*i;this.sfu.setPeerCount(Math.max(n,i));try{this.sfu.enabled&&(yield this.sfu.ready),yield Promise.all(a.map(e=>this.sfu.sendMedia(e.track,e.stream,e.screenCapture)))}catch(e){return void(t&&t())}const c=new Set;for(const e of r)e.joined&&c.add(e.roomAddress);const u=cn(e);let d=u[0];if(!this.sfu.enabled)for(let e=0;e<u.length;e++){const t=u[e],n=u[e+1];if(t[0]===l||!n){d=t;break}if(n[0]>l){d=t;break}}if(d){const{width:e,height:t,frameRate:n}=d[1];this.dispatch(Qn(e,t,n))}const p=18e5/((this.sfu.enabled?1:i)*s),m=tn(e);for(const e of Object.keys(m)){const t=m[e],n=this.jingle.sessions[t.id];n&&!c.has(t.roomAddress)&&n.end()}for(const t of r){const n=en(e,t.roomAddress);for(const t of n){const n=new Set,i=new Set,r="video"===t.requestingMedia,s="video"===t.requestingMedia||"audio"===t.requestingMedia,l=new Map,c=new Set,u=nn(e,t.address);for(const e of u)if(e.sendingAudioMediaId&&(l.set(e.sendingAudioMediaId,"audio"),s&&o[e.sendingAudioMediaId]&&o[e.sendingAudioMediaId].shared||(c.add(e.id),e.sendingVideoMediaId&&r&&n.add(e.sendingVideoMediaId))),e.sendingVideoMediaId){const t=this.jingle.sessions[e.id];t&&t.setMaximumBitrate(p),l.set(e.sendingVideoMediaId,"video");const n=o[e.sendingVideoMediaId];(r||n.screenCapture)&&n&&n.shared||(c.add(e.id),e.sendingAudioMediaId&&s&&i.add(e.sendingAudioMediaId))}for(const e of a)l.has(e.id)||("audio"===e.kind&&s&&i.add(e.id),"video"===e.kind&&r&&n.add(e.id),"video"===e.kind&&e.screenCapture&&s&&n.add(e.id));for(const e of c){const t=this.jingle.sessions[e];t&&t.end()}const d=new Map;for(const e of[...i,...n]){const t=o[e];if(t){const e=d.get(t.stream.id)||{};e[t.kind]=t,d.set(t.stream.id,e)}}for(const e of d.values()){const n=this.jingle.createMediaSession(t.address);e.audio&&(n.addTrack(e.audio.track,e.audio.stream),this.dispatch(mi(t.address,n.sid,{sendingAudioMediaId:e.audio.id}))),e.video&&(n.addTrack(e.video.track,e.video.stream),this.dispatch(mi(t.address,n.sid,{sendingVideoMediaId:e.video.id}))),n.onDescriptionInfo=(e,t)=>{for(const t of e.contents||[]){const e=t.application;if(!e)continue;e.simulcast&&e.simulcast.profile&&this.sfu.setProfile(n.sid,e.simulcast.profile)}t()},n.start({offerToReceiveAudio:!1,offerToReceiveVideo:!1},()=>{if(e.video&&n.setMaximumBitrate(p),e.audio&&e.audio.localDisabled&&n.mute(n.role,"audio"),e.video&&e.video.localDisabled&&n.mute(n.role,"video"),e.video&&e.video.screenCapture){const t="initiator";n.send("description-info",{contents:[{application:{applicationType:Oe.d.NS_JINGLE_RTP_1,screenCaptures:[{id:e.video.id}]},creator:t,name:"video"}]})}})}}}t&&t()})),1),this.jingle.performTieBreak=()=>!1,this.jingle.createPeerConnection=(e,t)=>this.sfu.createPeerConnection(e,t),this.updateICEServers()}updateICEServers(){this.jingle.resetICEServers();const e=xt(this.getState());for(const t of e.iceServers)this.jingle.addICEServer(t)}updateConnections(e){return Object(x.a)(this,void 0,void 0,(function*(){RTCPeerConnection&&setTimeout(()=>{this.updateQueue.length()>1||this.updateQueue.push(e||Date.now(),0)},100)}))}plugin(){return()=>{this.jingle.on("incoming",e=>{const t=Bt(this.getState(),e.peerID.split("/")[0]);t&&t.joined?e.accept():e.end(),e.onDescriptionInfo=(t,n)=>{const i=tn(this.getState());for(const n of t.contents||[]){const t=n.application;if(!t)continue;const r=t.screenCaptures&&t.screenCaptures.length;r&&this.dispatch(Bn(i[e.sid].receivingVideoMediaId,{screenCapture:r}))}n()}}),this.jingle.on("terminated",(e,t)=>{this.dispatch(pi(e.peerID,e.sid));const n=t.condition;n&&"success"!==n&&"gone"!==n&&(console.error("Session terminated with error:",e.sid,t),this.dispatch({payload:{peerAddress:e.peerID,updated:{sessionFailed:!0}},type:wt})),setTimeout(()=>{this.updateConnections("session-ended")},"failed-transport"===n?500:2e3)}),this.jingle.on("createdSession",e=>{this.dispatch(di(e.peerID,e.sid))}),this.jingle.on("peerTrackAdded",(e,t,n)=>{const i=`${e.sid}#${t.id}`;this.dispatch(zn(e.peerID.split("/")[0],e.peerID,i,t,n,!1)),"audio"===t.kind&&this.dispatch(mi(e.peerID,e.sid,{receivingAudioMediaId:i})),"video"===t.kind&&this.dispatch(mi(e.peerID,e.sid,{receivingVideoMediaId:i}))}),this.jingle.on("peerTrackRemoved",(e,t)=>{const n=`${e.sid}#${t.id}`;this.dispatch(Un(n))}),this.jingle.on("connectionState",e=>{this.dispatch(mi(e.peerID,e.sid,{connectionState:e.connectionState})),"connected"===e.connectionState&&this.dispatch($i(e.peerID,{sessionFailed:!1})),"responder"!==e.role||"failed"!==e.connectionState?("responder"===e.role&&"disconnected"===e.connectionState||"interrupted"===e.connectionState)&&setTimeout(()=>{"disconnected"!==e.connectionState&&"interrupted"!==e.connectionState||e.end("failed-transport")},5e3):e.end("failed-transport")}),this.jingle.on("mute",(e,t)=>{const n=tn(this.getState());if("audio"===t.name)this.dispatch(Bn(n[e.sid].receivingAudioMediaId,{remoteDisabled:!0}));else{if("video"!==t.name)throw new Error("Invalid mute property");this.dispatch(Bn(n[e.sid].receivingVideoMediaId,{remoteDisabled:!0}))}}),this.jingle.on("unmute",(e,t)=>{const n=tn(this.getState());if("audio"===t.name)this.dispatch(Bn(n[e.sid].receivingAudioMediaId,{remoteDisabled:!1}));else{if("video"!==t.name)throw new Error("Invalid mute property");this.dispatch(Bn(n[e.sid].receivingVideoMediaId,{remoteDisabled:!1}))}})}}notifyPeers(e,t){const n=this.getState(),i=tn(n);Object.values(Ot(n).jingle.sessions).forEach(n=>{const r=i[n.sid];if(r&&(r.sendingAudioMediaId===e.id||r.sendingVideoMediaId===e.id))switch(t){case"mute":n.mute(n.role,e.kind);break;case"unmute":n.unmute(n.role,e.kind)}})}}const pn="http://andyet.net/xmlns/mmuc",mn="https://talky.io/ns/core",hn=[{element:"transport",fields:{iceLite:Oe.c.childBoolean(mn,"ice-lite")},namespace:Oe.d.NS_JINGLE_ICE_0,path:"iq.jingle.contents.transport",type:Oe.d.NS_JINGLE_ICE_0,typeField:"transportType"},{element:"transport",fields:{iceLite:Oe.c.childBoolean(mn,"ice-lite")},namespace:Oe.d.NS_JINGLE_ICE_UDP_1,path:"iq.jingle.contents.transport",type:Oe.d.NS_JINGLE_ICE_UDP_1,typeField:"transportType"},{element:"user",fields:{customerData:Oe.c.textJSON(),roomId:Oe.c.attribute("rid"),sessionId:Oe.c.attribute("sid"),type:Oe.c.attribute("type")},namespace:mn,path:"presence.talkyUserInfo"},{aliases:[{multiple:!0,path:"iq.jingle.contents.application.screenCaptures",selector:Oe.d.NS_JINGLE_RTP_1}],element:"screen",fields:{id:Oe.c.attribute("id")},namespace:mn},{aliases:[{path:"iq.jingle.contents.application.simulcast",selector:Oe.d.NS_JINGLE_RTP_1}],element:"simulcast",fields:{profile:Oe.c.attribute("profile")},namespace:mn},{element:"conf",fields:{bridged:Oe.c.booleanAttribute("bridged"),media:Oe.c.attribute("media")},namespace:pn,path:"presence.mmuc"},{element:"status",fields:{active:Oe.c.booleanAttribute("active"),media:Oe.c.attribute("media"),mode:Oe.c.attribute("mode"),ready:Oe.c.booleanAttribute("ready"),recordable:Oe.c.booleanAttribute("recordable"),stamp:Oe.c.dateAttribute("stamp")},namespace:pn,path:"message.mmucStatus"},{element:"recording",fields:{active:Oe.c.booleanAttribute("active"),stamp:Oe.c.dateAttribute("stamp"),state:Oe.c.attribute("state"),uri:Oe.c.attribute("uri")},namespace:pn,path:"message.mmucStats.recording"},{element:"state",fields:{speaking:Oe.c.booleanAttribute("speaking")},namespace:pn,path:"message.mmuc"},{element:"query",fields:{endMedia:Oe.c.childBoolean(null,"end-media"),startRecording:Oe.c.childBoolean(null,"start-recording")},namespace:pn,path:"iq.mmuc"},{element:"start-media",fields:{media:Oe.c.attribute("media")},namespace:pn,path:"iq.mmuc.startMedia"},{element:"end-recording",fields:{uri:Oe.c.attribute("uri")},namespace:pn,path:"iq.mmuc.endRecording"}];class fn extends Pe.EventEmitter{constructor(e,t){super(),this.minimumPeerCount=2,this.peerCount=0,this.enabled=!1,this.ready=Promise.resolve(),this.sessions=new Set,this.sharedMedia=new Map,this.jingle=e.jingle,this.getState=e.getState,this.browser=t,this.jingle.on("terminated",e=>{this.sessions.delete(e.sid)});const n=xt(this.getState()).sfuServer;n&&n.url&&(this.rpcUrl=n.url,this.minimumPeerCount=n.minimumPeers,this.client=new gn(this.rpcUrl,n.password),this.client.on("iceConnectionState",({consumerId:e,iceConnectionState:t})=>{const n=this.jingle.sessions[e];if(n){const e=n.pc;e.iceConnectionState=t,e.emit("iceconnectionstatechange")}}),this.ready=this.client.connect()),this.setPeerCount(0)}setPeerCount(e){return this.peerCount=e,!!this.rpcUrl&&(clearTimeout(this.shutdownTimeout),e>=this.minimumPeerCount&&!this.enabled?(this.enabled=!0,!0):(e<this.minimumPeerCount&&this.enabled&&(this.shutdownTimeout=setTimeout(()=>{if(this.peerCount<this.minimumPeerCount){this.enabled=!1;for(const e of this.sessions)this.jingle.sessions[e].end();this.sessions=new Set;for(const[e,t]of this.sharedMedia)this.client.send("DISPOSE",{id:e}),t.pc.close();this.sharedMedia=new Map,this.emit("disabled")}},5e3)),!1))}sendMedia(e,t,n){return Object(x.a)(this,void 0,void 0,(function*(){if(!this.enabled||this.sharedMedia.has(t.id))return;const i=new RTCPeerConnection({iceServers:this.jingle.iceServers});this.sharedMedia.set(t.id,{pc:i,ready:!1}),i.oniceconnectionstatechange=()=>{if("connected"===i.iceConnectionState||"completed"===i.iceConnectionState){this.sharedMedia.set(t.id,{pc:i,ready:!0}),this.emit("media-ready:"+t.id);const n=tn(this.getState());for(const[t,i]of Object.entries(n))i.sendingAudioMediaId!==e.id&&i.sendingVideoMediaId!==e.id||this.jingle.sessions[t].end();this.emit("media-ready")}"failed"===i.iceConnectionState&&(this.sharedMedia.delete(t.id),this.emit("media-failed:"+t.id),this.emit("media-failed"))};try{for(const e of t.getTracks())"audio"===e.kind?i.addTrack(e,t):i.addTransceiver(e,{sendEncodings:n?void 0:[{rid:"low",active:!0,scaleResolutionDownBy:4},{rid:"medium",active:!0,scaleResolutionDownBy:2},{rid:"high",active:!0}],streams:[t]});const e=yield i.createOffer();if(!n&&("chrome"===this.browser||"safari"===this.browser)){const t=Object(we.splitSections)(e.sdp),n=t.shift();for(const[i,r]of t.entries()){if("video"!==Object(we.parseMLine)(r).kind)continue;const o=r.match(/a=ssrc:(\d+) cname:(.*)\r\n/),a=r.match(/a=ssrc:(\d+) msid:(.*)\r\n/);if(o&&a){const s=r.trim().split("\r\n").filter(e=>!(e.startsWith("a=ssrc:")||e.startsWith("a=ssrc-group:FID"))),l=parseInt(o[1],10),c=Object(we.matchPrefix)(r,"a=ssrc-group:FID ")[0].split(" ")[2];s.push("a=ssrc:"+l+" cname:"+o[2]),s.push("a=ssrc:"+l+" msid:"+a[2]),s.push("a=ssrc:"+c+" cname:"+o[2]),s.push("a=ssrc:"+c+" msid:"+a[2]);const u=l+1,d=l+2;s.push("a=ssrc:"+u+" cname:"+o[2]),s.push("a=ssrc:"+u+" msid:"+a[2]),s.push("a=ssrc:"+d+" cname:"+o[2]),s.push("a=ssrc:"+d+" msid:"+a[2]);const p=l+3,m=l+4;s.push("a=ssrc:"+p+" cname:"+o[2]),s.push("a=ssrc:"+p+" msid:"+a[2]),s.push("a=ssrc:"+m+" cname:"+o[2]),s.push("a=ssrc:"+m+" msid:"+a[2]),s.push("a=ssrc-group:FID "+l+" "+c),s.push("a=ssrc-group:FID "+u+" "+d),s.push("a=ssrc-group:FID "+p+" "+m),s.push("a=ssrc-group:SIM "+l+" "+u+" "+p),t[i]=s.join("\r\n")+"\r\n",e.sdp=[n,...t].join("")}}}yield i.setLocalDescription(e),yield this.ready;const r=yield this.client.send("INGEST",{id:t.id,sdp:e.sdp});yield i.setRemoteDescription({type:"answer",sdp:r.sdp})}catch(e){this.sharedMedia.delete(t.id),this.emit("media-failed:"+t.id),this.emit("media-failed")}}))}setProfile(e,t){return Object(x.a)(this,void 0,void 0,(function*(){if(this.sessions.has(e))return this.client.send("SET_CONSUMER_PROFILE",{id:e,profile:t})}))}requestProfile(e,t){const n=tn(this.getState());for(const[i,r]of Object.entries(n))if(r.receivingVideoMediaId===e)return this.jingle.sessions[i].send("description-info",{contents:[{application:{applicationType:Oe.d.NS_JINGLE_RTP_1,simulcast:{profile:t}},creator:"initiator",name:"video"}]})}createPeerConnection(e,t){if(this.enabled&&e.isInitiator){this.sessions.add(e.sid);const t=this.getState(),n=Nt(t,e.peerID),i=Lt(t,Oe.b.toBare(e.peerID));return new vn(e.sid,i.id,n.id,this,this.client)}return new RTCPeerConnection(t)}getInfoForPeer(e){return Nt(this.getState(),e)}waitForMedia(e){return Object(x.a)(this,void 0,void 0,(function*(){const t=this.sharedMedia.get(e);if(!t||!t.ready)return new Promise((t,n)=>{const i=()=>{this.off("media-failed:"+e,r),t()},r=()=>{this.off("media-ready:"+e,i),n()};this.once("media-ready:"+e,i),this.once("media-failed:"+e,r)})}))}}class gn extends Pe.EventEmitter{constructor(e,t){super(),this.connected=!1,this.disconnected=!1,this.callbacks=new Map,this.url=e,this.credential=t}connect(){return Object(x.a)(this,void 0,void 0,(function*(){if(!this.connected)return this.connecting||(this.connecting=new Promise((e,t)=>{this.callbacks=new Map,this.socket=new WebSocket(this.url),this.socket.onopen=()=>Object(x.a)(this,void 0,void 0,(function*(){this.send("AUTH",{token:this.credential},!0).then(()=>{this.connected=!0,this.connecting=void 0,e()})})),this.socket.onmessage=e=>{const t=JSON.parse(e.data);if(this.callbacks.has(t.id)&&(t.result||t.error)){const{resolve:e,reject:n}=this.callbacks.get(t.id);t.result?e(t.result):t.error&&n(t.error)}"CONSUMER_ICE_STATE"===t.method&&this.emit("iceConnectionState",{consumerId:t.params.id,iceConnectionState:t.params.iceConnectionState})},this.socket.onclose=()=>{const e=this.connected;this.callbacks=new Map,this.connected=!1,e||t()}})),this.connecting}))}disconnect(){this.disconnected=!0,this.socket.close()}send(e,t,n){return Object(x.a)(this,void 0,void 0,(function*(){return n||(yield this.connect()),new Promise((n,i)=>{const r=Oe.f.uuid();this.callbacks.set(r,{resolve:n,reject:i}),this.socket.send(JSON.stringify({id:r,jsonrpc:"2.0",method:e,params:t}))})}))}}class vn extends Pe.EventEmitter{constructor(e,t,n,i,r){super(),this.id=e,this.roomId=t,this.peerId=n,this.sfu=i,this.client=r,this.iceConnectionState="new",this.signalingState="stable",this.activated=!1}addTrack(e,t){this.sourceId=t.id,this.includeAudio=this.includeAudio||"audio"===e.kind,this.includeVideo=this.includeVideo||"video"===e.kind}close(){this.activated&&this.client.send("REMOVE_CONSUMER",{id:this.id}).catch(e=>{this.activated=!1})}getReceivers(){return[]}getSenders(){return[]}addEventListener(e,t){this.on(e,t)}set onicecandidate(e){this.on("icecandidate",e)}set oniceconnectionstatechange(e){this.on("iceconnectionstatechange",e)}getStats(){return Object(x.a)(this,void 0,void 0,(function*(){return new Map}))}addIceCandidate(e){return Object(x.a)(this,void 0,void 0,(function*(){}))}createOffer(){return Object(x.a)(this,void 0,void 0,(function*(){yield this.sfu.waitForMedia(this.sourceId);const e=yield this.client.send("CREATE_CONSUMER",{audio:this.includeAudio,id:this.id,peerId:this.peerId,roomId:this.roomId,source:this.sourceId,video:this.includeVideo});return this.activated=!0,{sdp:e.sdp,type:"offer"}}))}createAnswer(){return Object(x.a)(this,void 0,void 0,(function*(){}))}setLocalDescription(e){return Object(x.a)(this,void 0,void 0,(function*(){}))}setRemoteDescription(e){return Object(x.a)(this,void 0,void 0,(function*(){yield this.client.send("START_CONSUMER",{id:this.id,sdp:e.sdp})}))}}class bn{constructor(e,t,n){this.terminating=!1,this.reconnectAttempts=0,this.dispatch=e,this.getState=t,this.rttBuffers=new Map,this.xmpp=Object(Oe.g)(Object.assign({allowResumption:!1,transports:{websocket:n.wsURL},useStreamManagement:!1},n)),this.jingle=this.xmpp.jingle,this.xmpp.stanzas.define(hn),this.sfu=new fn(this,je.browserDetails.browser),this.mesh=new dn(this),this.sfu.on("media-ready",()=>{this.mesh.updateConnections("sfu-media-ready")}),this.sfu.on("media-failed",()=>{this.mesh.updateConnections("sfu-media-failed")}),this.sfu.on("disabled",()=>{this.mesh.updateConnections("sfu-disabled")}),this.xmpp.use(this.mesh.plugin()),this.xmpp.on("session:started",()=>{this.xmpp.sendPresence(),this.xmpp.enableKeepAlive({interval:90}),this.reconnectAttempts=0,this.dispatch(On("connected"))}),this.xmpp.on("disconnected",()=>{this.terminating||(this.reconnectAttempts+=1,this.dispatch(On("disconnected")),this.reconnectTimer&&clearTimeout(this.reconnectTimer),this.reconnectTimer=setTimeout(()=>{const e=this.getState(),t=jt(e),n=Et(e);this.dispatch(Sn(t,n))},1e3*(this.reconnectAttempts+1)+2e3*Math.random()))}),this.xmpp.on("muc:available",e=>{const t=Oe.b.toBare(e.from),n=e.from,i=Lt(this.getState(),t);if(!i)return;if(e.muc&&e.muc.statusCodes.indexOf("110")>=0)return void this.dispatch(Oi(t,n,i.id,e.muc.role,e.muc.affiliation));if(!this.rttBuffers.has(n)){const e=new Oe.e.DisplayBuffer(({text:e})=>{this.dispatch($i(n,{rtt:e}))});this.rttBuffers.set(n,e)}const r=e.talkyUserInfo.customerData||{};this.dispatch(Bi(t,n,{affiliation:e.muc.affiliation,customerData:r,displayName:r.displayName||e.nick,id:e.talkyUserInfo.sessionId,joinedCall:!!e.mmuc,requestingMedia:(e.mmuc||{}).media,role:e.muc.role,userAddress:e.muc.jid}))}),this.xmpp.on("muc:unavailable",e=>{if(e.muc.statusCodes&&e.muc.statusCodes.indexOf(Oe.a.MUCStatusCode.SelfPresence)>=0){let t=!0;return e.muc.destroy&&e.muc.destroy.jid&&(t=!1,this.dispatch(Di(Oe.b.toBare(e.from),e.muc.destroy.jid,e.muc.destroy.password))),void this.dispatch(Ri(Oe.b.toBare(e.from),t))}this.rttBuffers.delete(e.from),this.dispatch(Vi(Oe.b.toBare(e.from),e.from))}),this.xmpp.on("chat:state",e=>{this.dispatch($i(e.from,{chatState:e.chatState}))}),this.xmpp.on("attention",e=>{this.dispatch($i(e.from,{requestingAttention:!0})),setTimeout(()=>{this.dispatch($i(e.from,{requestingAttention:!1}))},5e3)}),this.xmpp.on("message",e=>{if("groupchat"===e.type){if(e.rtt){const t=this.rttBuffers.get(e.from);t&&t.process(e.rtt)}if(e.body){const t=this.rttBuffers.get(e.from);t&&t.commit(),this.dispatch(ci(Oe.b.toBare(e.from),e.from,{body:e.body,displayName:e.nick,id:e.id,replace:e.replace,time:e.delay?e.delay.timestamp:new Date}))}}}),this.xmpp.on("message",e=>this.processMessage(e))}connect(){this.xmpp.connect()}disconnect(){this.terminating=!0,this.dispatch(On("disconnected")),this.xmpp.disconnect()}joinRoom(e,t){return Object(x.a)(this,void 0,void 0,(function*(){const n=this.getState(),i=xt(n);try{const r=yield this.xmpp.joinRoom(e,i.id,{muc:{password:t,type:"join"},nick:It(n)}),o=this.getState(),a=Lt(o,e);if(!a)return;yield this.checkLockStatus(e,a.providedPassword),this.dispatch(ji(e,r.from,r.talkyUserInfo.roomId,r.muc.role,r.muc.affiliation)),a&&a.autoJoinCall&&this.dispatch(ri(e,Mt(o,e)))}catch(t){this.dispatch(_i(e,{banned:t.error&&"forbidden"===t.error.condition,passwordRequired:t.error&&"not-authorized"===t.error.condition,roomNotStarted:t.error&&"recipient-unavailable"===t.error.condition}))}}))}destroyRoom(e){return Object(x.a)(this,void 0,void 0,(function*(){yield this.xmpp.destroyRoom(e)}))}kickPeerFromRoom(e,t){return Object(x.a)(this,void 0,void 0,(function*(){yield this.xmpp.setRoomAffiliation(e,t,"outcast")}))}sendRoomPresence(e,t={}){const n=this.getState(),i=It(n),r=Lt(n,e),o=Bt(n,e),a=Mt(n,e);r&&r.joined&&this.xmpp.sendPresence(Object.assign({mmuc:o&&o.joined?{media:a}:void 0,nick:i,to:e},t))}sendAllRoomsPresence(e={}){const t=this.getState(),n=Object.keys(Dt(t));for(const t of n)this.sendRoomPresence(t,e)}sendAllCallsSpeakingUpdate(e){const t=Zt(this.getState());for(const n of t)this.xmpp.sendMessage({mmuc:{speaking:e},to:n.roomAddress,type:"groupchat"})}lockRoom(e,t){return Object(x.a)(this,void 0,void 0,(function*(){const n=Lt(this.getState(),e);if(n&&n.joined&&"owner"===n.selfAffiliation)try{yield this.xmpp.configureRoom(e,{fields:[{name:"FORM_TYPE",value:"http://jabber.org/protocol/muc#roomconfig"},{name:"muc#roomconfig_whois",value:"moderators"},{name:"muc#roomconfig_roomsecret",value:t},{name:"muc#roomconfig_passwordprotectedroom",value:!0}]}),this.dispatch(Mi(e,t))}catch(e){console.error(e)}}))}unlockRoom(e){return Object(x.a)(this,void 0,void 0,(function*(){const t=Lt(this.getState(),e);if(t&&t.joined&&"owner"===t.selfAffiliation)try{yield this.xmpp.configureRoom(e,{fields:[{name:"FORM_TYPE",type:"hidden",value:"http://jabber.org/protocol/muc#roomconfig"},{name:"muc#roomconfig_whois",type:"text-single",value:"moderators"},{name:"muc#roomconfig_roomsecret",type:"text-single",value:""},{name:"muc#roomconfig_passwordprotectedroom",type:"boolean",value:!0}]}),this.dispatch(Ni(e))}catch(e){console.error(e)}}))}fetchRoomConfig(e,t=!1){return Object(x.a)(this,void 0,void 0,(function*(){const n={},i=Lt(this.getState(),e);if(!(t||i&&i.joined))throw new Error("Room not joined");const r=yield this.xmpp.getRoomConfig(e);for(const e of r.fields)"muc#roomconfig_roomsecret"===e.name&&(e.value?n.password=e.value:n.password=void 0);return n}))}checkLockStatus(e,t,n){return Object(x.a)(this,void 0,void 0,(function*(){const i=Lt(this.getState(),e);if(i)if("owner"!==i.selfAffiliation||n)try{(yield this.xmpp.getDiscoInfo(e)).features.indexOf("muc_passwordprotected")>=0?this.dispatch(Mi(e)):this.dispatch(Ni(e))}catch(e){console.error(e)}else try{const n=yield this.fetchRoomConfig(e,!0);n.password?this.dispatch(Mi(e,n.password)):t?this.dispatch(Pi(e,t)):this.dispatch(Ni(e))}catch(n){return console.error(n),this.checkLockStatus(e,t,!0)}}))}processMessage(e){return Object(x.a)(this,void 0,void 0,(function*(){const t=Oe.b.toBare(e.from),n=Lt(this.getState(),t);"groupchat"===e.type&&e.mmuc&&n&&n.selfAddress!==e.from&&e.mmuc&&this.dispatch($i(e.from,{speaking:e.mmuc.speaking||!1})),e.muc&&"direct-invite"!==e.muc.type&&e.muc.statusCodes&&e.muc.statusCodes.indexOf("104")>=0&&(yield this.checkLockStatus(t))}))}}let yn;function kn(e,t=!1){return Object(x.a)(this,void 0,void 0,(function*(){return new Promise((n,i)=>{setTimeout(()=>t?i():n(),e)})}))}function wn(e,t,n=10,i=1e3,r=1e4){return Object(x.a)(this,void 0,void 0,(function*(){let o,a=0;for(;a<=n;)try{const n=yield Promise.race([fetch(e,{body:JSON.stringify({clientVersion:"1.22.0",token:t}),headers:{Accept:"application/json","Content-Type":"application/json"},method:"POST"}),kn(r,!0)]);if(!n.ok)throw new Error("SimpleWebRTC configuration request failed: "+n.status);const i=yield n.json();return t&&!i.customerData&&console.error("ESWRTC_003. View more information at https://docs.simplewebrtc.com"),i}catch(e){o=e,a+=1,yield kn(i)}if(o)throw console.error("ESWRTC_001. View more information at https://docs.simplewebrtc.com"),o}))}function Sn(e,t){return(n,i)=>Object(x.a)(this,void 0,void 0,(function*(){let r;n(On("connecting"));try{r=yield wn(e,t),n(xn(e,r,t))}catch(e){return n(En()),void n(On("failed"))}const o=new bn(n,i,{jid:r.userId,password:r.credential,resource:r.id,wsURL:r.signalingUrl});n({payload:o,type:"@andyet/SIGNALING_CLIENT"}),o.connect()}))}function Cn(){return(e,t)=>{const n=Ot(t());n&&n.disconnect(),e({type:"@andyet/SIGNALING_CLIENT_SHUTDOWN"})}}function xn(e,t,n){return{payload:{config:t,configUrl:e,token:n},type:"@andyet/RECEIVED_CONFIG"}}function En(e){return{type:"@andyet/RECEIVED_CONFIG_ERROR"}}function Tn(){return(e,t)=>{const n=t(),i=xt(n),r=i.telemetryUrl,o=Rt(n),a=Math.min(o.length,10);if(0===a)return;const s=o.slice(0,a);if(!r)return;const l={body:JSON.stringify({batch:s}),headers:{authorization:"Bearer "+i.credential},method:"POST"};fetch(r,l).then(()=>{e(_n(a))})}}function _n(e){return{payload:e,type:"@andyet/TELEMETRY_SUCCESS"}}function jn(){clearInterval(yn)}function On(e){return(t,n)=>{const i=Ot(n());t({payload:e,type:"@andyet/CONNECTION_STATE_CHANGE"}),i&&i.mesh.updateConnections("connection-state-change")}}const Rn=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),Pn=window.AudioContext||window.webkitAudioContext;const In={threshold:-65};class An extends Pe.EventEmitter{constructor(e,t={}){if(super(),this.running=!1,this.smoothing=.1,this.interval=50,this.history=10,this.speakingHistory=[],this.frequencyRange=[85,300],this.fftSize=512,this.speaking=!1,this.previousVolume=-1/0,this.stoppedReceivingVolume=Date.now(),Pn){if(!An.audioContext){An.audioContext=new Pn;const e=()=>{this.running&&An.audioContext&&"suspended"===An.audioContext.state&&(setTimeout(e,1e3),An.audioContext.resume())};setTimeout(e,1e3)}this.smoothing=t.smoothing||.1,this.interval=t.interval||50,this.threshold=t.threshold,this.history=t.history||10,this.frequencyRange=t.frequencyRange||[85,300],this.fftSize=t.fftSize||512,Rn&&(this.threshold=-20),this.analyser=An.audioContext.createAnalyser(),this.analyser.fftSize=this.fftSize,this.analyser.smoothingTimeConstant=this.smoothing,this.fftBins=new Float32Array(this.analyser.frequencyBinCount),this.frequencySpread=An.audioContext.sampleRate/this.analyser.fftSize,this.sourceNode=An.audioContext.createMediaStreamSource(e),this.sourceNode.connect(this.analyser),this.start()}}stop(){this.running=!1,this.emit("volume",-100,this.threshold||In.threshold),this.speaking&&(this.speaking=!1,this.emit("stopped-speaking")),clearInterval(this.intervalTimer),this.analyser.disconnect(),this.sourceNode.disconnect()}start(){this.running=!0,this.speakingHistory=new Array(this.history).fill(0),this.intervalTimer=setInterval(()=>{if(!this.running)return;const e=this.threshold||In.threshold,t=function(e,t,n,i){e.getFloatFrequencyData(i);const r=t[0],o=t[1],a=Math.round(r/n),s=Math.round(o/n),l=i.slice(a,s);return l.reduce((e,t)=>e+t,0)/l.length}(this.analyser,this.frequencyRange,this.frequencySpread,this.fftBins),n=t>e?1:0;let i;(!isFinite(t)||t<=-100)&&(i=isFinite(this.previousVolume)&&this.previousVolume>-100?Date.now():this.stoppedReceivingVolume),this.emit("volume",t,e),i!==this.stoppedReceivingVolume&&(i?this.emit("stopped-receiving-volume",i):this.emit("started-receiving-volume")),this.previousVolume=t,this.stoppedReceivingVolume=i;let r=0;for(const e of this.speakingHistory)r+=e;n&&!this.speaking?r>=5&&(this.speaking=!0,this.emit("speaking")):!n&&this.speaking&&0===r&&(this.speaking=!1,this.emit("stopped-speaking")),this.speakingHistory.shift(),this.speakingHistory.push(n)},this.interval)}}function Mn(e,t,n=500){return"audio"===e.kind?function(e){return Object(x.a)(this,void 0,void 0,(function*(){return new Promise(t=>{let n=document.createElement("audio");const i=()=>{n&&(n.pause(),n.removeEventListener("oncanplay",i),n.srcObject=null,n=void 0,t({loaded:!0}))};n.muted=!0,n.autoplay=!0,n.oncanplay=i,n.srcObject=e})}))}(t):"video"===e.kind?function(e,t){return Object(x.a)(this,void 0,void 0,(function*(){return new Promise(n=>{let i=document.createElement("video");const r=()=>{if(i){const e=i.videoHeight,t=i.videoWidth;i.pause(),i.removeEventListener("oncanplay",r),i.srcObject=null,i=void 0,n({height:e,loaded:!0,width:t})}};i.setAttribute("playsinline","playsinline"),i.muted=!0,i.autoplay=!0,i.oncanplay=r,i.srcObject=e,setTimeout(r,t)})}))}(t,n):Promise.resolve({loaded:!1})}function Nn(){return"undefined"!=typeof document}function Dn(e){return(t,n)=>{let i=e.replaces;if(e.replaces){const r=$t(n(),e.replaces);r&&(r.shared||(t(Un(r.id)),i=r.replaces))}e.track.onmute=()=>{t(Bn(e.id,{externalDisabled:!0}))},e.track.onunmute=()=>{t(Bn(e.id,{externalDisabled:!1}))},t({payload:Object.assign(Object.assign({},e),{replaces:i}),type:"@andyet/ADD_MEDIA"})}}function Ln(e,t,n){if("audio"!==e.kind)throw new Error("Incorrect media type. Expected audio, got: "+e.kind);return(i,r)=>{let o,a;if(Nn()){const n=e.clone();a=new MediaStream,a.addTrack(n),o=function(e,t,n){const i=new An(t);return i.on("stopped-receiving-volume",t=>{n(Bn(e,{inputLost:t}))}),i.on("started-receiving-volume",()=>{n(Bn(e,{inputDetected:!0,inputLost:void 0}))}),i.on("speaking",()=>{n(Bn(e,{speaking:!0}))}),i.on("stopped-speaking",()=>{n(Bn(e,{lastSpokeAt:new Date(Date.now()),speaking:!1}))}),i}(e.id,a,i),e.onended=()=>{o&&(o.stop(),n.stop()),i(Wn(e.id)),i(Un(e.id))},Mn(e,t).then(t=>{i(Bn(e.id,t))})}else e.onended=()=>{i(Wn(e.id)),i(Un(e.id))};i(Dn({createdAt:Date.now(),externalDisabled:e.muted,hark:o,id:e.id,inputDetected:!1,inputLost:Date.now(),kind:"audio",localDisabled:!e.enabled,remoteDisabled:!1,renderMirrored:!1,replaces:n,screenCapture:!1,shared:!1,source:"local",speaking:!1,stream:t,track:e,utilityStream:a,volume:-1/0}))}}function qn(e,t,n=!0,i){if("video"!==e.kind)throw new Error("Incorrect media type. Expected video, got: "+e.kind);return(r,o)=>{e.onended=()=>{r(Wn(e.id)),r(Un(e.id))},Nn()&&Mn(e,t).then(t=>{r(Bn(e.id,t))}),!Nn()&&i&&r(Un(i)),r(Dn({createdAt:Date.now(),externalDisabled:e.muted,id:e.id,kind:"video",localDisabled:!e.enabled,remoteDisabled:!1,renderMirrored:n,replaces:i,screenCapture:!1,shared:!1,source:"local",speaking:!1,stream:t,track:e,volume:-1/0}))}}function Fn(e,t,n){if("video"!==e.kind)throw new Error("Incorrect media type. Expected video, got: "+e.kind);return(i,r)=>{e.onended=()=>{i(Wn(e.id)),i(Un(e.id))},Nn()&&Mn(e,t).then(t=>{i(Bn(e.id,t))}),"contentHint"in e&&!e.contentHint&&(e.contentHint="detail"),i(Dn({createdAt:Date.now(),externalDisabled:e.muted,id:e.id,kind:"video",localDisabled:!e.enabled,remoteDisabled:!1,renderMirrored:!1,replaces:n,screenCapture:!0,shared:!1,source:"local",speaking:!1,stream:t,track:e,volume:-1/0}))}}function zn(e,t,n,i,r,o){return(a,s)=>{const l=Nt(s(),t);i.onended=()=>{a(Un(n))},Nn()&&(Mn(i,r,500).then(e=>{a(Bn(n,e))}),setTimeout(()=>{Mn(i,r,500).then(e=>{a(Bn(n,e))})},500));const c={createdAt:Date.now(),externalDisabled:i.muted,id:n,kind:i.kind,localDisabled:!!l&&l.muted,owner:t,profile:"video"===i.kind?"low":void 0,remoteDisabled:!1,renderMirrored:!1,roomAddress:e,screenCapture:"video"===i.kind&&o,source:"remote",speaking:!1,stream:r,track:i,volume:-1/0};a({payload:c,type:"@andyet/ADD_MEDIA"})}}function Un(e,t=!0){return(n,i)=>{const r=$t(i(),e);if(r){if(r.shared&&n(Wn(e)),n({payload:{id:e},type:"@andyet/REMOVE_MEDIA"}),"local"===r.source){const e=Ot(i());e&&e.mesh.updateConnections("remove-media")}if(t&&(r.track&&r.track.stop(),r.utilityStream))for(const e of r.utilityStream.getTracks())e.stop()}}}function Bn(e,t){return(n,i)=>{const r=i(),o=Ot(r),a=sn(r);n({payload:{id:e,updated:t},type:"@andyet/MEDIA_UPDATED"});const s=i(),l=sn(s);o&&(a!==l&&o.sendAllCallsSpeakingUpdate(l),void 0!==t.shared&&o.mesh.updateConnections("update-shared-media"));const c=$t(r,e),u=$t(s,e);if(u&&(u.track.enabled!==!u.localDisabled&&(u.track.enabled=!u.localDisabled),c&&"local"===u.source&&u.localDisabled!==c.localDisabled&&o&&o.mesh.notifyPeers(u,!0===u.localDisabled?"mute":"unmute"),"remote"===u.source&&u.owner)){const e=Nt(s,u.owner);e&&e.muted&&!u.localDisabled&&n({payload:{peerAddress:u.owner,updated:{muted:!1}},type:wt})}}}function Vn(e){return Bn(e,{localDisabled:!1})}function $n(e){return Bn(e,{localDisabled:!0})}function Hn(e){return(t,n)=>{const i=$t(n(),e);i&&(i.replaces&&t(Un(i.replaces)),t(Bn(e,{replaces:void 0,shared:!0})))}}function Wn(e){return(t,n)=>{const i=Qt(n()).filter(t=>t.replaces===e);t(Bn(e,{shared:!1})),i.length&&t(Un(e))}}function Gn(e={},t={},n,i){const r=e[n],o=t[n],a=(e,t)=>void 0!==e&&(e===t||Math.abs(e-t)<1);return(!r||!a(r,i))&&(!o||("number"==typeof o?!a(o,i):!a(o.ideal,i)&&!a(o.exact,i)))}function Qn(e,t,n=30){return(i,r)=>{if(!Nn())return;const o=Qt(r(),"video"),a=navigator.mediaDevices.getSupportedConstraints(),s={};let l=0;if(a.frameRate&&(s.frameRate=n,l+=1),a.height&&(s.height={ideal:t},l+=1),a.width&&(s.width={ideal:e},l+=1),0!==l)for(const i of o){if(i.screenCapture)continue;let r={};i.track.getSettings&&(r=i.track.getSettings());const o=i.track.getConstraints();(s.frameRate&&Gn(r,o,"frameRate",n)||s.width&&Gn(r,o,"width",e)||s.height&&Gn(r,o,"height",t))&&i.track.applyConstraints(s).catch(e=>{console.error("Could not adjust video capture resolution:",e.message)})}}}function Jn(e){return(t,n)=>{t({payload:{videoResolutionTiers:e},type:"@andyet/SET_VIDEO_RESOLUTION_TIERS"})}}function Kn(e,t){return(n,i)=>{n(Bn(e,{profile:t}));const r=Ot(i());r&&r.sfu.requestProfile(e,t)}}function Yn(e){return(t,n)=>{const i=Gt(n(),e,"audio");for(const e of i)t($n(e.id));t({payload:{peerAddress:e,updated:{muted:!0}},type:wt})}}function Xn(e){return(t,n)=>{const i=Gt(n(),e,"audio");for(const e of i)t(Vn(e.id));t({payload:{peerAddress:e,updated:{muted:!1}},type:wt})}}function Zn(){return(e,t)=>{const n=Qt(t(),"audio");for(const t of n)e($n(t.id))}}function ei(){return(e,t)=>{const n=Qt(t(),"audio");for(const t of n)e(Vn(t.id))}}function ti(e={screenCapture:!0}){return(t,n)=>{const i=Qt(n(),"video");for(const n of i)(!n.screenCapture||e.screenCapture&&n.screenCapture)&&t($n(n.id))}}function ni(e={screenCapture:!0}){return(t,n)=>{const i=Qt(n(),"video");for(const n of i)(!n.screenCapture||e.screenCapture&&n.screenCapture)&&t(Vn(n.id))}}function ii(e){return(t,n)=>{const i=Qt(n(),e);for(const e of i)t(Un(e.id))}}function ri(e,t){return(n,i)=>{n({payload:{desiredMedia:t,roomAddress:e},type:"@andyet/JOIN_CALL"});const r=Ot(i());r&&(r.sendRoomPresence(e),r.mesh.updateConnections("join-call"))}}function oi(e,t){return(n,i)=>{const r=i(),o=Zt(r);n({payload:{roomAddress:e},type:St});const a=Zt(i()),s=Ot(r);if(s){s.sendRoomPresence(e),s.mesh.updateConnections("leave-call");sn(r)&&s.sendAllCallsSpeakingUpdate(!0)}t&&o.length>0&&0===a.length&&n(ii())}}function ai(e,t){return(n,i)=>{n({payload:{desiredMedia:t,roomAddress:e},type:"@andyt/SET_CALL_PREFERENCE"});const r=Ot(i());r&&(r.sendRoomPresence(e),r.mesh.updateConnections("set-desired-media-for-call"))}}function si(e,t){return(n,i)=>{const r=i(),o=Ot(r),a=t.id||Oe.f.uuid(),s=t.displayName||It(r);o.xmpp.sendMessage({body:t.body,chatState:"active",id:a,nick:s,replace:t.replace,to:e,type:"groupchat"}),n({payload:{acked:!1,body:t.body,direction:"outgoing",displayName:s,id:a,replace:t.replace,roomAddress:e,time:new Date},type:"@andyet/CHAT_OUTGOING"})}}function li(e,t){return(n,i)=>{Ot(i()).xmpp.sendMessage({chatState:t,to:e,type:"groupchat"}),n({payload:{chatState:t,roomAddress:e},type:"@andyet/CHAT_STATE_OUTGOING"})}}function ci(e,t,n){return{payload:{acked:!0,body:n.body,direction:"incoming",displayName:n.displayName,id:n.id,replace:n.replace,roomAddress:e,senderAddress:t,time:n.time||new Date},type:"@andyet/CHAT_INCOMING"}}function ui(e,t){return(n,i)=>{const r=Ot(i());let o;"init"!==t.event&&"cancel"!==t.event&&(o="composing"),r.xmpp.sendMessage({chatState:o,rtt:t,to:e,type:"groupchat"}),n({payload:{roomAddress:e,rtt:t},type:"@andyet/RTT_OUTGOING"})}}function di(e,t){return{payload:{id:t,peerAddress:e,roomAddress:Oe.b.parse(e).bare},type:"@andyet/PEER_CONNECTION_ADDED"}}function pi(e,t){return{payload:{id:t,peerAddress:e},type:"@andyet/PEER_CONNECTION_REMOVED"}}function mi(e,t,n){return{payload:{id:t,peerAddress:e,updated:n},type:"@andyet/PEER_CONNECTION_UPDATED"}}let hi,fi,gi;function vi(){return(e,t)=>{navigator.mediaDevices&&(hi||(hi=()=>{e(bi())}),fi||(fi=setInterval(()=>{e(bi())},3e3)),navigator.mediaDevices.addEventListener("devicechange",()=>{ki(),hi&&hi()}),hi())}}function bi(e){return(e,t)=>Object(x.a)(this,void 0,void 0,(function*(){if(!navigator.mediaDevices)return;if(gi)return;gi=navigator.mediaDevices.enumerateDevices();const t=yield gi;gi=void 0;for(const e of t)if(fi&&e.deviceId){ki();break}return e(wi(t))}))}function yi(){hi&&(navigator.mediaDevices.removeEventListener("devicechange",hi),hi=void 0),ki()}function ki(){fi&&(clearInterval(fi),fi=void 0)}function wi(e){const t=(e=e.filter(e=>"audioinput"!==e.kind||"MacBook Pro Speakers"!==e.label)).filter(e=>!e.deviceId&&"audioinput"===e.kind);if(t.length>=2){const e={deviceId:"",groupId:"",kind:"videoinput",label:"",toJSON:()=>e};return{payload:[t[0],e],type:Ct}}return{payload:e,type:Ct}}function Si(e){return{payload:{error:e},type:"@andyet/CAMERA_PERMISSION_DENIED"}}function Ci(e){return{payload:{error:e},type:"@andyet/MICROPHONE_PERMISSION_DENIED"}}function xi(e,t){return{payload:{camera:e,microphone:t},type:"@andyet/DEVICE_CAPTURE"}}function Ei(e,t,n,i=5,r=1e3){return Object(x.a)(this,void 0,void 0,(function*(){let o,a=0;if(!t)throw console.error("ESWRTC_004. View more information at https://docs.simplewebrtc.com"),new Error("Room name not provided.");for(;a<=i;)try{const i=yield fetch(e,{body:JSON.stringify({name:t}),headers:{authorization:"Bearer "+n},method:"POST"});if(!i.ok)throw new Error("SimpleWebRTC room configuration request failed: "+i.status);return yield i.json()}catch(e){o=e,a+=1,yield kn(r)}throw console.error("ESWRTC_002. View more information at https://docs.simplewebrtc.com"),o||new Error("Could not fetch room config")}))}function Ti(e,t={}){return(n,i)=>Object(x.a)(this,void 0,void 0,(function*(){const r=i(),o=Ot(r),a=xt(r);try{const i=yield Ei(a.roomConfigUrl,e,a.credential),s=Lt(r,i.roomAddress);(!s||s&&!s.joined)&&(n({payload:{autoJoinCall:an()&&(void 0===t.autoJoinCall||t.autoJoinCall),providedPassword:t.password,providedRoomName:e,roomAddress:i.roomAddress},type:"@andyet/JOIN_ROOM"}),o&&o.joinRoom(i.roomAddress,t.password))}catch(e){n(_i("",!1))}}))}function _i(e,t){return"boolean"==typeof t&&(t={passwordRequired:t}),{payload:{banned:t.banned,passwordRequired:t.passwordRequired,roomAddress:e,roomNotStarted:t.roomNotStarted},type:"@andyet/JOIN_ROOM_FAILED"}}function ji(e,t,n,i,r){return(o,a)=>{o({payload:{affiliation:r,id:n,role:i,roomAddress:e,selfAddress:t},type:"@andyet/JOIN_ROOM_SUCCESS"});const s=Ot(a());s&&s.mesh.updateConnections("join-room")}}function Oi(e,t,n,i,r){return(o,a)=>{o({payload:{affiliation:r,id:n,role:i,roomAddress:e,selfAddress:t},type:"@andyet/SELF_UPDATED"})}}function Ri(e,t=!0){return(n,i)=>{const r=Ot(i());n(oi(e,t)),r&&r.sendRoomPresence(e,{type:"unavailable"}),n({payload:{roomAddress:e},type:kt}),r&&r.mesh.updateConnections("leave-room")}}function Pi(e,t){return(n,i)=>{const r=Ot(i());r&&r.lockRoom(e,t),n({payload:{password:t,roomAddress:e},type:"@andyet/LOCK_ROOM"})}}function Ii(e){return(t,n)=>{const i=Ot(n());i&&i.unlockRoom(e),t({payload:{roomAddress:e},type:"@andyet/UNLOCK_ROOM"})}}function Ai(e){return(t,n)=>Object(x.a)(this,void 0,void 0,(function*(){const i=Ot(n());try{i&&(yield i.destroyRoom(e)),t({payload:{roomAddress:e},type:"@andyet/DESTROY_ROOM"})}catch(e){console.error(e)}}))}function Mi(e,t){return{payload:{password:t,roomAddress:e},type:"@andyet/ROOM_LOCKED"}}function Ni(e){return{payload:{roomAddress:e},type:"@andyet/ROOM_UNLOCKED"}}function Di(e,t,n){return(i,r)=>Object(x.a)(this,void 0,void 0,(function*(){const o=r(),a=Ot(o),s=Lt(o,e);if(!s)return void i(Ti(t,{password:n}));const l=Lt(o,t);(!l||l&&!l.joined)&&(i({payload:{autoJoinCall:s.autoJoinCall,providedPassword:n||s.providedPassword,providedRoomName:s.providedName,roomAddress:t},type:"@andyet/JOIN_ROOM"}),a&&a.joinRoom(t,n||s.password))}))}function Li(e){return(t,n)=>{const i=Ot(n());t({payload:{displayName:e},type:yt}),i&&i.sendAllRoomsPresence()}}function qi(e){return(t,n)=>{const i=n(),r=Ot(i);t({payload:{requestingMedia:e},type:yt});const o=Zt(i);for(const n of o)t(ai(n.roomAddress,e));r&&r.sendAllRoomsPresence()}}function Fi(e=-65){return function(e){In.threshold=e}(e),{payload:{voiceActivityThreshold:e},type:yt}}function zi(e){return{payload:{audioOutputDeviceId:e},type:yt}}function Ui(e=1){return{payload:{globalVolumeLimit:e},type:yt}}function Bi(e,t,n){return(i,r)=>{i({payload:{affiliation:n.affiliation,customerData:n.customerData,displayName:n.displayName,id:n.id,joinedCall:n.joinedCall||!1,peerAddress:t,requestingMedia:n.requestingMedia||"none",role:n.role,roomAddress:e,userAddress:n.userAddress},type:"@andyet/PEER_ONLINE"});const o=Ot(r());o&&o.mesh.updateConnections("peer-online")}}function Vi(e,t){return(n,i)=>{n({payload:{peerAddress:t,roomAddress:e},type:"@andyet/PEER_OFFLINE"})}}function $i(e,t){return(n,i)=>{n({payload:{peerAddress:e,updated:t},type:wt});const r=Ot(i());r&&r.mesh.updateConnections("peer-updated")}}function Hi(e,t){return(n,i)=>{n({payload:{peerAddress:t,roomAddress:e},type:"@andyet/KICK_PEER"});const r=Ot(i());r&&r.kickPeerFromRoom(e,t)}}function Wi(e,t){return{payload:{peerAddress:e,updated:{volumeLimit:t}},type:wt}}var Gi=Object.freeze({__proto__:null,sleep:kn,fetchConfig:wn,connect:Sn,disconnect:Cn,receivedConfig:xn,receivedConfigError:En,queueTelemetry:function(e,{roomId:t,peerId:n,data:i}){return{payload:{data:JSON.stringify(i),peerId:n,roomId:t},type:"@andyet/QUEUE_TELEMETRY"}},sendQueuedTelemetry:Tn,telemetrySucess:_n,enableTelemetry:function(e=5e3){return t=>{jn(),yn=setInterval(()=>{t(Tn())},e)}},disableTelemetry:jn,connectionStateChanged:On,startCall:function(){},endCall:function(){},joinCall:ri,leaveCall:oi,changeCallMode:function(){},pauseCall:function(){},resumeCall:function(){},startRecording:function(){},endRecording:function(){},pauseRecording:function(){},resumeRecording:function(){},setDesiredMediaForCall:ai,updateCallState:function(){},sendChat:si,sendChatState:li,receiveChat:ci,sendRTT:ui,addConnection:di,removeConnection:pi,updateConnection:mi,listenForDevices:vi,fetchDevices:bi,stopListeningForDevices:yi,stopPollingForDevices:ki,deviceList:wi,cameraPermissionDenied:Si,microphonePermissionDenied:Ci,deviceCaptureRequest:xi,fetchRoomConfig:Ei,joinRoom:Ti,joinRoomFailed:_i,joinRoomSuccess:ji,selfUpdated:Oi,leaveRoom:Ri,lockRoom:Pi,unlockRoom:Ii,destroyRoom:Ai,roomLocked:Mi,roomUnlocked:Ni,roomReplaced:Di,setDisplayName:Li,setDesiredMedia:qi,setVoiceActivityThreshold:Fi,setPushToTalk:function(e){return{payload:{pushToTalk:e},type:yt}},setAudioOutputDevice:zi,setGlobalVolumeLimit:Ui,peerOnline:Bi,peerOffline:Vi,peerUpdated:$i,kickPeer:Hi,limitPeerVolume:Wi,addLocalMedia:Dn,addLocalAudio:Ln,addLocalVideo:qn,addLocalScreen:Fn,addRemoteMedia:zn,removeMedia:Un,updateMedia:Bn,enableMedia:Vn,disableMedia:$n,shareLocalMedia:Hn,stopSharingLocalMedia:Wn,adjustVideoCaptureResolution:Qn,setVideoResolutionTiers:Jn,requestQualityProfile:Kn,mutePeer:Yn,unmutePeer:Xn,muteSelf:Zn,unmuteSelf:ei,pauseSelfVideo:ti,resumeSelfVideo:ni,removeAllMedia:ii});const Qi={config:{apiVersion:"",credential:"",customerData:{},iceServers:[],id:"",orgId:"",roomConfigUrl:"",screensharingExtensions:{chrome:""},signalingUrl:"",telemetryUrl:"",userId:""},configUrl:"",connectionAttempts:0,connectionState:"disconnected",queuedTelemetry:[],signalingClient:void 0,token:"",videoResolutionTiers:[[0,{width:1024,height:720,frameRate:30}],[1,{width:800,height:600,frameRate:30}],[2,{width:640,height:480,frameRate:30}],[3,{width:320,height:240,frameRate:15}],[5,{width:320,height:240,frameRate:10}]]};const Ji={};function Ki(e,t){return e[t.payload.roomAddress]||(e=function(e,t){return Object.assign(Object.assign({},e),{[t.payload.roomAddress]:{allowedAudioRoles:["moderator","participant"],allowedMedia:"video",allowedVideoRoles:["moderator","participant"],joined:!1,joinedAt:void 0,recordable:!1,recordingState:"offline",requestingMedia:void 0,roomAddress:t.payload.roomAddress,state:"active"}})}(e,t)),"@andyet/JOIN_CALL"===t.type?Object.assign(Object.assign({},e),{[t.payload.roomAddress]:Object.assign(Object.assign({},e[t.payload.roomAddress]),{joined:!0,joinedAt:new Date(Date.now()),requestingMedia:t.payload.desiredMedia})}):t.type===St?Object.assign(Object.assign({},e),{[t.payload.roomAddress]:Object.assign(Object.assign({},e[t.payload.roomAddress]),{joined:!1,joinedAt:void 0,requestingMedia:void 0})}):"@andyt/SET_CALL_PREFERENCE"===t.type?Object.assign(Object.assign({},e),{[t.payload.roomAddress]:Object.assign(Object.assign({},e[t.payload.roomAddress]),{requestingMedia:t.payload.desiredMedia})}):e}const Yi={};function Xi(e,t){if("@andyet/CHAT_INCOMING"===t.type){const n=t.payload,i=e[n.id];if(n.replace){const t=e[n.replace];if(t&&"outgoing"===t.direction)return Object.assign(Object.assign({},e),{[n.id]:Object.assign(Object.assign({},i),{acked:!0,body:n.body})})}if(!i)return Object.assign(Object.assign({},e),{[n.id]:n});if("outgoing"===i.direction)return Object.assign(Object.assign({},e),{[n.id]:Object.assign(Object.assign({},i),{acked:!0,body:n.body,time:n.time})})}if("@andyet/CHAT_OUTGOING"===t.type){const n=t.payload,i=e[n.id];return Object.assign(Object.assign({},e),{[n.id]:Zi(i,n)})}return e}function Zi(e,t){return e?Object.assign(Object.assign({},t),{editedTime:t.time,time:e.time}):t}const er={};const tr={cameraPermissionDenied:!1,cameraPermissionGranted:!1,devices:[],hasAudioOutput:!1,hasCamera:!1,hasMicrophone:!1,microphonePermissionDenied:!1,microphonePermissionGranted:!1,requestingCameraCapture:!1,requestingCapture:!1,requestingMicrophoneCapture:!1};const nr={};const ir={};function rr(e,t){const n=e[t.payload.peerAddress];if(!n)return e;const i=new Date(Date.now());let r=n.lastSpokeAt;n.speaking&&!1===t.payload.updated.speaking&&(r=i);let o=!1;return n.joinedCall&&!1===t.payload.updated.joinedCall&&(o=!0),Object.assign(Object.assign({},e),{[t.payload.peerAddress]:Object.assign(Object.assign(Object.assign({},n),t.payload.updated),{joinedCallAt:o?void 0:n.joinedCallAt||i,lastSpokeAt:r})})}const or={};function ar(e,t){const n=e[t.payload.roomAddress];if(!n)return e;if("@andyet/JOIN_ROOM_FAILED"===t.type){let i="failed";return t.payload.passwordRequired&&(i="password-required"),t.payload.roomNotStarted&&(i="waiting"),t.payload.banned&&(i="banned"),Object.assign(Object.assign({},e),{[t.payload.roomAddress]:Object.assign(Object.assign({},n),{banned:!!t.payload.banned,joined:!1,joinedAt:void 0,password:"",passwordRequired:!!t.payload.passwordRequired,roomNotStarted:!!t.payload.roomNotStarted,roomState:i})})}return Object.assign(Object.assign({},e),{[t.payload.roomAddress]:Object.assign(Object.assign({},n),{id:t.payload.id,joined:!0,joinedAt:n.joinedAt||new Date(Date.now()),roomState:"joined",selfAddress:t.payload.selfAddress,selfAffiliation:t.payload.affiliation,selfRole:t.payload.role})})}const sr={displayName:"",globalVolumeLimit:1,mediaEnabled:!0,pushToTalk:!1,requestingMedia:"video",voiceActivityThreshold:-65};function lr(e,t){return Object.assign(Object.assign({},e),t.payload)}const cr=h({api:function(e=Qi,t){switch(t.type){case"@andyet/SIGNALING_CLIENT":return Object.assign(Object.assign({},e),{signalingClient:t.payload});case"@andyet/SIGNALING_CLIENT_SHUTDOWN":return Object.assign(Object.assign({},e),{connectionState:"disconnected",signalingClient:void 0});case"@andyet/CONNECTION_STATE_CHANGE":return Object.assign(Object.assign({},e),{connectionState:t.payload});case"@andyet/RECEIVED_CONFIG":{const n=t.payload.config,i=t.payload.configUrl,r=t.payload.token||"";return Object.assign(Object.assign({},e),{config:Object.assign(Object.assign({},e.config),n),configUrl:i,token:r})}case"@andyet/QUEUE_TELEMETRY":return Object.assign(Object.assign({},e),{queuedTelemetry:[...e.queuedTelemetry,t.payload]});case"@andyet/TELEMETRY_SUCCESS":return Object.assign(Object.assign({},e),{queuedTelemetry:e.queuedTelemetry.slice(t.payload)});case"@andyet/SET_VIDEO_RESOLUTION_TIERS":return Object.assign(Object.assign({},e),{videoResolutionTiers:t.payload.videoResolutionTiers})}return e},calls:function(e=Ji,t){switch(t.type){case"@andyet/JOIN_CALL":case St:return Ki(e,t);case kt:return function(e,t){const n=Object.assign({},e);return delete n[t.payload.roomAddress],n}(e,t);case"@andyet/JOIN_ROOM_SUCCESS":case"@andyt/SET_CALL_PREFERENCE":return Ki(e,t)}return e},chats:function(e=Yi,t){switch(t.type){case"@andyet/CHAT_INCOMING":case"@andyet/CHAT_OUTGOING":return Xi(e,t)}return e},connections:function(e=er,t){switch(t.type){case"@andyet/PEER_CONNECTION_ADDED":return function(e,t){return Object.assign(Object.assign({},e),{[t.payload.id]:{connectionState:"",id:t.payload.id,peerAddress:t.payload.peerAddress,receivingAudioMediaId:"",receivingVideoMediaId:"",restarting:!1,roomAddress:t.payload.roomAddress,sendingAudioMediaId:"",sendingVideoMediaId:"",sessionState:""}})}(e,t);case"@andyet/PEER_CONNECTION_UPDATED":return function(e,t){return e[t.payload.id]?Object.assign(Object.assign({},e),{[t.payload.id]:Object.assign(Object.assign(Object.assign({},e[t.payload.id]||{}),{peerAddress:t.payload.peerAddress}),t.payload.updated)}):e}(e,t);case"@andyet/PEER_CONNECTION_REMOVED":return function(e,t){const n=Object.assign({},e);return delete n[t.payload.id],n}(e,t)}return e},devices:function(e=tr,t){if(t.type===Ct){const n=t.payload,i=new Map(e.devices.map(e=>[e.deviceId||e.kind,e]));let r=!1,o=!1,a=!1,s=!1,l=!1,c=n.length===i.size;for(const e of n)"audioinput"===e.kind&&(r=!0,l=l||!(!e.label||!e.deviceId)),"videoinput"===e.kind&&(o=!0,s=s||!(!e.label||!e.deviceId)),"audiooutput"===e.kind&&(a=!0),c=c&&i.has(e.deviceId||e.kind),e.label;return Object.assign(Object.assign({},e),{cameraPermissionGranted:s,devices:c?e.devices:n.filter(e=>!!e.label),hasAudioOutput:a,hasCamera:o,hasMicrophone:r,microphonePermissionGranted:l})}return"@andyet/CAMERA_PERMISSION_DENIED"===t.type?Object.assign(Object.assign({},e),{cameraPermissionDenied:!0}):"@andyet/MICROPHONE_PERMISSION_DENIED"===t.type?Object.assign(Object.assign({},e),{microphonePermissionDenied:!0}):"@andyet/DEVICE_CAPTURE"===t.type?Object.assign(Object.assign({},e),{requestingCameraCapture:t.payload.camera,requestingCapture:t.payload.camera||t.payload.microphone,requestingMicrophoneCapture:t.payload.microphone}):e},media:function(e=nr,t){switch(t.type){case"@andyet/ADD_MEDIA":return function(e,t){return Object.assign(Object.assign({},e),{[t.payload.id]:t.payload})}(e,t);case"@andyet/REMOVE_MEDIA":return function(e,t){const n=Object.assign({},e);return delete n[t.payload.id],n}(e,t);case"@andyet/MEDIA_UPDATED":return function(e,t){const n=e[t.payload.id];return n?Object.assign(Object.assign({},e),{[t.payload.id]:Object.assign(Object.assign({},n),t.payload.updated)}):e}(e,t);case St:return function(e,t){const n=Object.assign({},e);for(const i of Object.keys(e)){const r=e[i];"remote"===r.source&&r.roomAddress===t.payload.roomAddress&&delete n[i]}return n||{}}(e,t)}return e},peers:function(e=ir,t){switch(t.type){case"@andyet/CONNECTION_STATE_CHANGE":return"disconnected"===t.payload?{}:e;case"@andyet/PEER_ONLINE":return function(e,t){if(e[t.payload.peerAddress])return rr(e,{payload:{peerAddress:t.payload.peerAddress,updated:t.payload},type:wt});const n=new Date(Date.now());return Object.assign(Object.assign({},e),{[t.payload.peerAddress]:{address:t.payload.peerAddress,affiliation:t.payload.affiliation,chatState:"active",customerData:t.payload.customerData||{},displayName:t.payload.displayName||"",id:t.payload.id,joinedCall:t.payload.joinedCall||!1,joinedCallAt:t.payload.joinedCall?n:void 0,joinedRoomAt:n,lastSpokeAt:void 0,muted:!1,requestingAttention:!1,requestingMedia:t.payload.requestingMedia||"none",role:t.payload.role,roomAddress:t.payload.roomAddress,rtt:"",speaking:!1,userAddress:t.payload.userAddress,volume:-1/0,volumeLimit:.8}})}(e,t);case"@andyet/PEER_OFFLINE":return function(e,t){const n=Object.assign({},e);return delete n[t.payload.peerAddress],n}(e,t);case wt:return rr(e,t);case kt:return function(e,t){const n=Object.assign({},e);for(const i of Object.keys(e)){e[i].roomAddress===t.payload.roomAddress&&delete n[i]}return n}(e,t)}return e},rooms:function(e=or,t){if("@andyet/CONNECTION_STATE_CHANGE"===t.type){if("disconnected"!==t.payload)return e;const n={};for(const[t,i]of Object.entries(e))n[t]=Object.assign(Object.assign({},i),{joined:!1,joinedAt:void 0,roomState:"interrupted"});return n}switch(t.type){case"@andyet/SELF_UPDATED":return ar(e,t);case"@andyet/JOIN_ROOM":return function(e,t){return Object.assign(Object.assign({},e),{[t.payload.roomAddress]:{address:t.payload.roomAddress,autoJoinCall:!!t.payload.autoJoinCall,banned:!1,id:"",joined:!1,joinedAt:void 0,password:t.payload.password||"",passwordRequired:!1,providedName:t.payload.providedRoomName,providedPassword:t.payload.providedPassword,roomNotStarted:!1,roomState:"joining",selfAddress:"",selfAffiliation:"none",selfRole:"none",unreadCount:0}})}(e,t);case"@andyet/JOIN_ROOM_FAILED":case"@andyet/JOIN_ROOM_SUCCESS":return ar(e,t);case kt:return function(e,t){const n=Object.assign({},e);return delete n[t.payload.roomAddress],n}(e,t);case"@andyet/LOCK_ROOM":case"@andyet/UNLOCK_ROOM":case"@andyet/ROOM_LOCKED":case"@andyet/ROOM_UNLOCKED":return function(e,t){const n=e[t.payload.roomAddress];if(!n)return e;switch(t.type){case"@andyet/LOCK_ROOM":return Object.assign(Object.assign({},e),{[t.payload.roomAddress]:Object.assign(Object.assign({},n),{providedPassword:t.payload.password||""})});case"@andyet/ROOM_LOCKED":return Object.assign(Object.assign({},e),{[t.payload.roomAddress]:Object.assign(Object.assign({},n),{password:t.payload.password||"",passwordRequired:!0,providedPassword:void 0})});case"@andyet/ROOM_UNLOCKED":return Object.assign(Object.assign({},e),{[t.payload.roomAddress]:Object.assign(Object.assign({},n),{password:"",passwordRequired:!1,providedPassword:void 0})})}return e}(e,t)}return e},user:function(e=sr,t){switch(t.type){case yt:return lr(e,t);case"@andyet/RECEIVED_CONFIG":return lr(e,{payload:{displayName:t.payload.config.displayName||e.displayName||"Anonymous"},type:yt});case Ct:{const n=e.audioOutputDeviceId;if(n){for(const i of t.payload)if(i.deviceId===n)return e;return lr(e,{payload:{audioOutputDeviceId:""},type:yt})}return e}}return e}});class ur extends Ie.Component{componentDidMount(){this.setup(!0)}componentDidUpdate(e){e.media&&e.media.id!==this.props.media.id?this.setup(!0):this.setup(!1)}setup(e){this.audio.oncontextmenu=e=>{e.preventDefault()},e&&(window&&window.safari?this.stream=new MediaStream(this.props.media.stream.getAudioTracks()):this.stream=this.props.media.stream,this.audio.srcObject=this.stream),(this.props.volume||0===this.props.volume)&&(this.audio.volume=this.props.volume),this.props.media.localDisabled||this.props.media.remoteDisabled||0===this.props.volume?this.audio.muted=!0:this.audio.muted=!1,this.props.outputDevice&&this.audio.sinkId!==this.props.outputDevice&&this.audio.setSinkId?(this.audio.pause(),this.audio.setSinkId(this.props.outputDevice).then(()=>{this.audio.play()}).catch(e=>{this.audio.play(),console.error(e)})):this.audio.autoplay=!0}render(){return Object(Ie.createElement)("audio",Object.assign({ref:e=>{this.audio=e}},{playsInline:!0}))}}class dr extends Ie.Component{render(){const e={chatState:this.props.chatState||void 0,joinedCall:this.props.joinedCall||!1,peers:this.props.peers||[],speaking:this.props.speaking||!1};let t=this.props.render;return t||"function"!=typeof this.props.children||(t=this.props.children),t?t(e):this.props.children}}var pr=ft((function(e,t){const n=["joinedCall","speaking","chatState","requestingAttention"],i=Ft(e,t.room).filter(e=>{for(const i of n)if(void 0!==t[i]&&e[i]!==t[i])return!1;return!0});return Object.assign(Object.assign({},t),{peers:i})}))(dr);class mr extends Ie.Component{render(){this.props.composers;let e=this.props.render;return e||"function"!=typeof this.props.children||(e=this.props.children),e?Object(Ie.createElement)(pr,{room:this.props.room,chatState:"composing",render:({peers:t})=>e({composers:t})}):this.props.children?Object(Ie.createElement)(pr,{room:this.props.room,chatState:"composing"},this.props.children):Object(Ie.createElement)(pr,{room:this.props.room,chatState:"composing",render:({peers:e})=>{switch(e.length){case 0:return null;case 1:{const t=e[0].displayName||"Anonymous";return Object(Ie.createElement)("div",{className:this.props.className},t+" is typing...")}case 2:{const t=e[0].displayName||"Anonymous",n=e[1].displayName||"Anonymous";return Object(Ie.createElement)("div",{className:this.props.className},`${t} and ${n} are typing...`)}default:return Object(Ie.createElement)("div",{className:this.props.className},"People are typing...")}}})}}const hr=e=>Object(Ie.createElement)("textarea",{id:e.id,className:e.className,autoFocus:e.autoFocus,value:e.message,placeholder:e.placeholder,disabled:e.disabled,onInput:t=>{const n=t.target.value;e.updateMessage(n)},onChange:()=>null,onKeyPress:t=>{"Enter"!==t.key||t.shiftKey||(t.preventDefault(),e.sendMessage())}});class fr extends Ie.Component{constructor(e){super(e),this.rttBuffer=new Oe.e.InputBuffer,this.state={chatState:"active",message:""}}componentDidUpdate(e){!e.rtt&&this.props.rtt&&(this.props.onRtt(this.rttBuffer.start()),this.rttBuffer.update(this.state.message)),e.rtt&&!this.props.rtt&&(this.props.onRtt(this.rttBuffer.stop()),clearInterval(this.rttInterval),this.rttInterval=null)}startSendingRtt(){!this.rttInterval&&this.props.rtt&&(this.rttInterval=setInterval(this.rttSend.bind(this),700),setTimeout(this.rttSend.bind(this),100))}rttUpdate(e=""){this.rttBuffer.update(e),this.startSendingRtt()}rttSend(){if(!this.props.rtt)return;const e=this.rttBuffer.diff();e&&this.props.onRtt(e)}commitMessage(){if(this.props.disabled||0===this.state.message.length)return;clearTimeout(this.pausedTimeout),this.pausedTimeout=null,clearInterval(this.rttInterval),this.rttInterval=null;const{message:e}=this.state;this.setState({message:"",chatState:"active"}),this.rttBuffer.commit(),this.props.onChat&&this.props.onChat({body:e})}updateChatState(e){this.pausedTimeout&&clearTimeout(this.pausedTimeout),this.pausedTimeout="composing"===e?setTimeout(()=>{this.updateChatState("paused")},1e4):null,e!==this.state.chatState&&this.props.onChatState&&this.props.onChatState(e),this.setState({chatState:e})}render(){const e={autoFocus:this.props.autoFocus,className:this.props.className,disabled:this.props.disabled,id:this.props.id,message:this.state.message,placeholder:this.props.placeholder,sendMessage:()=>{this.commitMessage()},updateMessage:e=>{this.rttUpdate(e),""!==e&&this.updateChatState("composing"),""!==this.state.message&&""===e&&this.updateChatState("active"),this.setState({message:e})}};let t=this.props.render;return t||"function"!=typeof this.props.children||(t=this.props.children),t?t(e):Object(Ie.createElement)(hr,Object.assign({},e))}}var gr=ft((function(e,t){return t}),(function(e,t){return{onChat:n=>e(si(t.room,n)),onChatState:n=>e(li(t.room,n)),onRtt:n=>e(ui(t.room,n))}}))(fr);function vr(e){e=e||{},this.target=e.target,this.interval=1e3|e.interval,this.max=e.max||0,this.callback=e.callback,this.userScroll=!0,this.spinner=e.spinner,this.spin_img=new Image,this.stickyHeight=e.stickyHeight||10,this.spinner&&(this.spin_img.src=this.spinner);var t=this;if(this.intend_down=!0,this.emit("lock"),window.addEventListener("resize",(function(e){t.emit("windowresize"),t.checkdown()})),this.target.addEventListener("scroll",(function(e){t.userScroll&&(t.intend_down&&!t.isdown()?(t.intend_down=!1,t.emit("release")):!t.intend_down&&t.isdown()&&(t.intend_down=!0,t.emit("lock"))),t.userScroll=!0})),window.MutationObserver)this.mo=new MutationObserver((function(e){var n,i,r,o,a,s,l,c,u;for(t.userScroll=!1,t.checkdown(),i=0;i<e.length;i++)for(n=e[i],r=0;r<n.addedNodes.length;r++)if(n.addedNodes[r].getElementsByTagName)for(s=0,l=(o=n.addedNodes[r].getElementsByTagName("img")).length;s<l;s++)if(!(a=o[s]).complete){c=a.parentNode,t.spinner&&(u=t.spin_img.cloneNode(),c.replaceChild(u,a));var d=function(e){u&&c.replaceChild(a,u),t.emit("imageload"),t.checkdown(),e.target.removeEventListener("load",d)};a.addEventListener("load",d)}})),this.mo.observe(this.target,{attributes:!0,childList:!0,characterData:!0,subtree:!0});else{var n=function(){t.checkdown(),window.setTimeout(n,t.interval)};n()}}(function(){this.isdown=function(){return this.target.scrollHeight-this.target.scrollTop-this.target.clientHeight<this.stickyHeight},this.append=function(e){for(this.emit("append"),this.target.appendChild(e),this.intend_down&&(this.target.scrollTop=this.target.scrollHeight,this.emit("scrolldown"));0!==this.max&&this.target.children.length>this.max;)this.target.removeChild(this.target.children[0]),this.emit("removechild")},this.emit=function(e,t){"function"==typeof this.callback&&this.callback(e,t)},this.checkdown=function(){var e=this.target.scrollHeight-this.target.scrollTop-this.target.clientHeight;(this.intend_down||e<this.stickyHeight)&&(this.target.scrollTop=this.target.scrollHeight,this.userScroll=!1,this.emit("scrolldown"))}}).call(vr.prototype);class br extends Ie.Component{render(){return Object(Ie.createElement)("div",Object.assign({},this.props,{ref:e=>{if(!e)return;const t=new vr({target:e,stickyHeight:30});this.staydown&&(t.intend_down=this.staydown.intend_down,t.userScroll=this.staydown.userScroll),this.staydown=t,this.staydown.checkdown()}}))}}class yr extends Ie.Component{render(){let e=this.props.render;return e||"function"!=typeof this.props.children||(e=this.props.children),e?e(this.props):this.props.children?this.props.children:Object(Ie.createElement)("div",null,Object(Ie.createElement)("span",null,this.props.displayName),this.props.chats.map(e=>Object(Ie.createElement)("div",null,e.body)))}}class kr extends Ie.Component{render(){const e=this.props.groups||[];let t=this.props.render;return t||"function"!=typeof this.props.children||(t=this.props.children),t?t({groups:e}):this.props.children?this.props.children:Object(Ie.createElement)(br,{id:this.props.id,className:this.props.className},e.map(e=>this.props.renderGroup?this.props.renderGroup(e):Object(Ie.createElement)(yr,Object.assign({},e))))}}var wr=ft((function(e,t){return t.room?Object.assign(Object.assign({},t),{groups:Ut(e,t.room,t.maxGroupDuration)||[]}):Object.assign(Object.assign({},t),{groups:[]})}))(kr);class Sr extends Ie.Component{componentDidMount(){this.props.listenForDevices(),this.props.fetchDevices()}componentWillUnmount(){yi()}render(){const e={audioInput:this.props.audioInput,audioOutput:this.props.audioOutput,cameraPermissionDenied:this.props.cameraPermissionDenied,cameraPermissionGranted:this.props.cameraPermissionGranted,devices:this.props.devices,hasAudioOutput:this.props.hasAudioOutput,hasCamera:this.props.hasCamera,hasMicrophone:this.props.hasMicrophone,microphonePermissionDenied:this.props.microphonePermissionDenied,microphonePermissionGranted:this.props.microphonePermissionGranted,requestingCameraCapture:this.props.requestingCameraCapture,requestingCapture:this.props.requestingCapture,requestingMicrophoneCapture:this.props.requestingMicrophoneCapture,videoInput:this.props.videoInput};let t=this.props.render;return t||"function"!=typeof this.props.children||(t=this.props.children),t?t(e):this.props.children}}var Cr=ft((function(e,t){const n=Ht(e).filter(e=>!t.audioInput&&!t.videoInput&&!t.audioOutput||"audioinput"===e.kind&&t.audioInput||"videoinput"===e.kind&&t.videoInput||"audiooutput"===e.kind&&t.audioOutput),i=Wt(e);return Object.assign(Object.assign(Object.assign({},t),{devices:n}),i)}),(function(e){return{fetchDevices:()=>e(bi()),listenForDevices:()=>e(vi())}}))(Sr);const xr=new Map([[1,['"x0"',1,1]],[2,['"x0 x1"',1,2]],[3,['"x0 x1" "x0 x2"',2,2]]]);function Er(e){if(xr.has(e))return xr.get(e)[0];const t=Tr(e),n=_r(e),i=[];for(let e=0;e<n;e++){const n=[];for(let i=0;i<t;i++)n.push("x"+(e*t+i).toString(16));i.push(`"${n.join(" ")}"`)}return i.join(" ")}function Tr(e){return xr.has(e)?xr.get(e)[2]:Math.ceil(Math.pow(e,.5))}function _r(e){return xr.has(e)?xr.get(e)[1]:Math.ceil(e/Math.ceil(Math.pow(e,.5)))}function jr(e){return Object(Ie.createElement)("div",{style:{display:"flex",gridArea:(t=e.index,"x"+t.toString(16)),overflow:"hidden"}},e.content);var t}function Or(e){return Object(Ie.createElement)("div",{id:e.id,className:e.className,style:{display:"grid",gridTemplateAreas:Er(e.itemCount),gridTemplateColumns:`repeat(${Tr(e.itemCount)}, 1fr)`,gridTemplateRows:`repeat(${_r(e.itemCount)}, 1fr)`}},e.content)}class Rr extends Ie.Component{render(){const e=this.props.items,t=[];let n=0;for(const i of e){const e=this.props.renderCell(i);e&&(t.push(Object(Ie.createElement)(jr,{index:n,key:n,content:e})),n+=1)}return Object(Ie.createElement)(Or,{id:this.props.id,className:this.props.className,itemCount:t.length,content:t})}}class Pr extends Ie.Component{render(){const e={audio:this.props.audio,media:this.props.media||[],removeMedia:this.props.removeMedia,screen:this.props.screen,shareLocalMedia:this.props.shareLocalMedia,shared:this.props.shared,stopSharingLocalMedia:this.props.stopSharingLocalMedia,video:this.props.video};let t=this.props.render;return t||"function"!=typeof this.props.children||(t=this.props.children),t?t(e):this.props.children}}var Ir=ft((function(e,t){let n;t.audio&&!t.video&&(n="audio"),!t.audio&&t.video&&(n="video");let i=[];return i=t.shared?Kt(e,n):Qt(e,n),i=i.filter(e=>"video"===e.kind&&void 0!==t.screen?e.screenCapture===t.screen:!e.shared||!1!==t.shared),Object.assign(Object.assign({},t),{media:i})}),(function(e){return{removeMedia:t=>e(Un(t)),shareLocalMedia:t=>e(Hn(t)),stopSharingLocalMedia:t=>e(Wn(t))}}))(Pr);class Ar extends Ie.Component{render(){const e={disable:this.props.disableMedia,enable:this.props.enableMedia,isEnabled:!this.props.media.localDisabled&&!this.props.media.remoteDisabled,isShared:"local"===this.props.media.source&&!!this.props.media.shared,media:this.props.media,remove:this.props.removeLocalMedia,share:this.props.shareLocalMedia,stopSharing:()=>{this.props.stopSharingLocalMedia(),this.props.autoRemove&&(this.props.removeLocalMedia(),this.props.media.track.stop())}};let t=this.props.render;return t||"function"!=typeof this.props.children||(t=this.props.children),t?t(e):this.props.children}}var Mr=ft((function(e){return{}}),(function(e,t){return{disableMedia:()=>e($n(t.media.id)),enableMedia:()=>e(Vn(t.media.id)),removeLocalMedia:()=>e(Un(t.media.id)),shareLocalMedia:()=>e(Hn(t.media.id)),stopSharingLocalMedia:()=>e(Wn(t.media.id))}}))(Ar);class Nr extends Ie.Component{render(){const e={hasActiveMicrophone:this.props.hasActiveMicrophone,isMuted:this.props.isMuted,isSpeaking:this.props.isSpeaking,kick:this.props.kick,mute:this.props.mute,peer:this.props.peer,setVolumeLimit:this.props.setVolumeLimit,unmute:this.props.unmute};let t=this.props.render;return t||"function"!=typeof this.props.children||(t=this.props.children),t?t(e):this.props.children}}var Dr=ft((function(e,t){const n=Nt(e,t.peer.address)||{};return{hasActiveMicrophone:Gt(e,t.peer.address,"audio").filter(e=>!e.remoteDisabled).length>0,isMuted:n.muted||!1,isSpeaking:n.speaking||!1}}),(function(e,t){return{kick:()=>e(Hi(t.peer.roomAddress,t.peer.userAddress)),mute:()=>e(Yn(t.peer.address)),setVolumeLimit:n=>e(Wi(t.peer.address,n)),unmute:()=>e(Xn(t.peer.address))}}))(Nr);function Lr(e){return{connectionState:Pt(e),isSupportedBrowser:an(),localMedia:Qt(e)}}function qr(e,t){return{connect:()=>e(Sn(t.configUrl,t.userData)),disconnect:()=>e(Cn()),removeAllMedia:()=>e(ii()),setDefaultValues:()=>{t.desiredMedia&&e(qi(t.desiredMedia)),t.displayName&&e(Li(t.displayName)),t.videoResolutionTiers&&e(Jn(t.videoResolutionTiers))}}}class Fr extends Ie.Component{componentDidMount(){this.props.setDefaultValues(),this.props.connect(),Nn()&&(window.addEventListener("online",()=>{setTimeout(()=>{"connected"!==this.props.connectionState&&"connecting"!==this.props.connectionState&&(this.props.disconnect(),this.props.connect())},5e3*Math.random())}),window.addEventListener("offline",()=>{setTimeout(()=>{navigator.onLine||this.props.disconnect()},5e3)}))}componentWillUnmount(){this.props.removeAllMedia(),this.props.disconnect()}render(){const e={connectionState:this.props.connectionState};let t=this.props.render;return t||"function"!=typeof this.props.children||(t=this.props.children),t?t(e):this.props.children}}function zr(e){return ft(Lr)(class extends Ie.Component{render(){const t={connectionState:this.props.connectionState};let n=this.props.render;return n||"function"!=typeof this.props.children||(n=this.props.children),this.props.connectionState===e?n?n(t):this.props.children:null}})}ft(Lr,qr)(class extends Ie.Component{render(){return this.props.isSupportedBrowser?null:this.props.children}}),ft(Lr,qr)(class extends Ie.Component{render(){const e={connectionState:this.props.connectionState};let t=this.props.render;return t||"function"!=typeof this.props.children||(t=this.props.children),"connected"!==this.props.connectionState?t?t(e):this.props.children:null}});const Ur=zr("connecting"),Br=zr("connected"),Vr=zr("disconnected"),$r=zr("failed");var Hr=ft(Lr,qr)(Fr);class Wr extends Ie.Component{render(){const e=this.props.audioSources||[],t=this.props.globalVolumeLimit;return Object(Ie.createElement)(Ie.Fragment,null,e.map(e=>Object(Ie.createElement)(ur,{key:e.media.id,media:e.media,volume:t*e.volumeLimit,outputDevice:this.props.outputDevice})))}}var Gr=ft((function(e,t){const n=Jt(e,"audio"),i=[];for(const t of n){const n=Nt(e,t.owner);i.push({media:t,volumeLimit:(n?n.volumeLimit:1)||1})}return{audioSources:i,globalVolumeLimit:Xt(e),outputDevice:Yt(e)}}))(Wr);class Qr extends Ie.Component{render(){const e={audio:this.props.audio,media:this.props.media||[],peer:this.props.peer,video:this.props.video};let t=this.props.render;return t||"function"!=typeof this.props.children||(t=this.props.children),t?t(e):this.props.children}}var Jr=ft((function(e,t){let n;t.audio&&!t.video?n="audio":!t.audio&&t.video&&(n="video");let i=[];return i=t.peer?Gt(e,t.peer,n):Jt(e,n),Object.assign(Object.assign({},t),{media:i})}))(Qr);class Kr extends Ie.Component{constructor(e){super(e),this.state={extensionInstalled:!1,extensionInstalling:!1,extensionRequired:!1}}getDisplayMedia(){return Object(x.a)(this,void 0,void 0,(function*(){try{if(!navigator.mediaDevices.getDisplayMedia)throw new Error("getDisplayMedia not supported");const e=yield navigator.mediaDevices.getDisplayMedia({audio:this.props.audio,video:!0}),t=e.getVideoTracks()[0];"contentHint"in t&&(t.contentHint=this.props.videoTypeHint||"detail"),this.props.addLocalScreen(t,e),!1!==this.props.share&&this.props.shareLocalMedia(t.id);const n=e.getAudioTracks()[0];n&&("contentHint"in n&&(n.contentHint=this.props.audioTypeHint),this.props.addLocalAudio(n,e),!1!==this.props.share&&this.props.shareLocalMedia(n.id))}catch(e){console.log(e,e.message,e.name)}}))}render(){if(this.props.render){const e="getDisplayMedia"in navigator.mediaDevices;return this.props.render(this.getDisplayMedia.bind(this),{available:e,extensionId:this.props.extensionId,extensionInstalled:!1,extensionInstalling:!1,extensionRequired:!1,listenForInstallation:e=>{},ready:e})}return Object(Ie.createElement)("button",{onClick:()=>this.getDisplayMedia()},"Start Screenshare")}}var Yr=ft((function(e,t){const n=xt(e);return{extensionId:t.extensionId||n.screensharingExtensions.chrome}}),(function(e){return{addLocalAudio:(t,n)=>e(Ln(t,n)),addLocalScreen:(t,n)=>e(Fn(t,n)),shareLocalMedia:t=>e(Hn(t))}}))(Kr);function Xr(e,t,n){return!(!1===n||!n&&!t)&&(t=!0===t?{}:t,n=!0===n?{}:n,Object.assign(Object.assign(Object.assign({},e),t),n))}class Zr extends Ie.Component{constructor(e){super(e),this.errorCount=0}getMedia(e={}){return Object(x.a)(this,void 0,void 0,(function*(){let t;const n={};if(Nn()){const e=navigator.mediaDevices.getSupportedConstraints();let t=!0;void 0!==this.props.audioProcessing&&(t=this.props.audioProcessing);for(const i of["autoGainControl","echoCancellation","noiseSuppression"])e[i]&&(n[i]=t&&"music"!==this.props.audioTypeHint)}const i=Xr(n,this.props.audio,e.audio),r=Xr({},this.props.video,e.video);try{if(!navigator.mediaDevices)throw new Error("getUserMedia not supported");this.props.deviceCaptureRequest(!!r,!!i),i&&(yield this.props.removeAllMedia("audio")),t=yield navigator.mediaDevices.getUserMedia({audio:i,video:r})}catch(t){return this.errorCount+=1,"AbortError"===t.name&&this.errorCount<12?(setTimeout(()=>this.getMedia(e),100+Math.pow(2,this.errorCount)),{}):("NotAllowedError"!==t.name&&"SecurityError"!==t.name||(i&&this.props.microphonePermissionDenied(),r&&this.props.cameraPermissionDenied()),this.props.deviceCaptureRequest(!1,!1),this.props.onError&&this.props.onError(t),{})}this.errorCount=0;const o=t.getAudioTracks()[0],a=t.getVideoTracks()[0];o?("contentHint"in o&&(o.contentHint=this.props.audioTypeHint),this.props.addLocalAudio(o,t,this.props.replaceAudio),!1!==this.props.share&&this.props.shareLocalMedia(o.id)):i&&this.props.microphonePermissionDenied(),a?("contentHint"in a&&(a.contentHint=this.props.videoTypeHint),this.props.screenCapture?this.props.addLocalScreen(a,t,this.props.replaceVideo):this.props.addLocalVideo(a,t,this.props.mirrored,this.props.replaceVideo),!1!==this.props.share&&this.props.shareLocalMedia(a.id)):r&&this.props.cameraPermissionDenied(),yield this.props.fetchDevices(),yield this.props.deviceCaptureRequest(!1,!1);const s={audio:o?o.id:void 0,video:a?a.id:void 0};return this.props.onSuccess&&this.props.onSuccess(s),s}))}componentDidMount(){this.props.auto&&this.getMedia()}componentDidUpdate(e){this.props.auto&&this.props.auto!==e.auto&&this.getMedia()}render(){const e=this.getMedia.bind(this),t={requestingCameraCapture:this.props.requestingCameraCapture,requestingCapture:this.props.requestingCapture,requestingMicrophoneCapture:this.props.requestingMicrophoneCapture};let n=this.props.render;return n||"function"!=typeof this.props.children||(n=this.props.children),n?n(e,t):this.props.children?this.props.children:this.props.auto?null:Object(Ie.createElement)("button",{onClick:e},"Request Media")}}var eo=ft((function(e,t){const n=Wt(e);return Object.assign(Object.assign({},t),{requestingCameraCapture:n.requestingCameraCapture,requestingCapture:n.requestingCapture,requestingMicrophoneCapture:n.requestingMicrophoneCapture})}),(function(e){return{addLocalAudio:(t,n,i)=>e(Ln(t,n,i)),addLocalScreen:(t,n,i)=>e(Fn(t,n,i)),addLocalVideo:(t,n,i,r)=>e(qn(t,n,i,r)),cameraPermissionDenied:t=>e(Si(t)),deviceCaptureRequest:(t,n)=>e(xi(t,n)),fetchDevices:()=>e(bi()),microphonePermissionDenied:t=>e(Ci(t)),removeAllMedia:t=>e(ii(t)),shareLocalMedia:t=>e(Hn(t))}}))(Zr);class to extends Ie.Component{componentDidMount(){"connected"===this.props.connectionState&&this.props.join()}componentWillUnmount(){this.props.leave(this.props.roomAddress)}componentDidUpdate(e){"connected"===this.props.connectionState&&(this.props.connectionState===e.connectionState?this.props.room&&this.props.password!==e.password&&("joined"===this.props.room.roomState?this.props.password?this.props.lock(this.props.roomAddress,this.props.password):this.props.unlock(this.props.roomAddress):this.props.join()):this.props.join())}render(){const e={call:this.props.call||{},joined:!!this.props.room&&this.props.room.joined,localMedia:this.props.localMedia||[],peers:this.props.peers||[],remoteMedia:this.props.remoteMedia||[],room:this.props.room||{}};let t=this.props.render;return t||"function"!=typeof this.props.children||(t=this.props.children),t?t(e):this.props.children}}var no=ft((function(e,t){let n;return t.roomAddress&&(n=Lt(e,t.roomAddress)),!n&&t.name&&(n=qt(e,t.name)),{call:n?Bt(e,n.address):void 0,connectionState:Pt(e),localMedia:Qt(e),peers:n?Ft(e,n.address):[],remoteMedia:Jt(e),room:n,roomAddress:n?n.address:void 0,roomState:n?n.roomState:"joining"}}),(function(e,t){return{destroy:t=>e(Ai(t)),join:()=>e(Ti(t.name,{password:t.password||void 0})),leave:t=>e(Ri(t)),lock:(t,n)=>e(Pi(t,n)),unlock:t=>e(Ii(t))}}))(to);class io extends Ie.Component{render(){const e={customerData:this.props.customerData||{},deafen:this.props.deafen,hasAudio:this.props.hasAudio||!1,hasScreenCapture:this.props.hasScreenCapture||!1,hasVideo:this.props.hasVideo||!1,isDeafened:this.props.isDeafened||!1,isMuted:this.props.isMuted||!1,isPaused:this.props.isPaused||!1,isScreenCapturePaused:this.props.isScreenCapturePaused||!1,isSpeaking:this.props.isSpeaking||!1,isSpeakingWhileMuted:this.props.isSpeakingWhileMuted||!1,mute:this.props.mute,pauseVideo:this.props.pauseVideo,resumeVideo:this.props.resumeVideo,setAudioOutputDevice:this.props.setAudioOutputDevice,setDisplayName:this.props.setDisplayName,setGlobalVolumeLimit:this.props.setGlobalVolumeLimit,setVoiceActivityThreshold:this.props.setVoiceActivityThreshold,undeafen:this.props.undeafen,unmute:this.props.unmute,user:this.props.user};let t=this.props.render;return t||"function"!=typeof this.props.children||(t=this.props.children),t?t(e):this.props.children}}var ro=ft((function(e,t){const n=Qt(e);let i=!0,r=!0,o=!0,a=!1,s=!1,l=!1;for(const e of n)"audio"===e.kind&&(a=!0,i=i&&e.localDisabled),"video"===e.kind&&(e.screenCapture?(l=!0,o=o&&e.localDisabled):(s=!0,r=r&&e.localDisabled));const c=_t(e),u=Tt(e);return{customerData:c,hasAudio:a,hasScreenCapture:l,hasVideo:s,isDeafened:0===Xt(e),isMuted:i,isPaused:r,isScreenCapturePaused:o,isSpeaking:sn(e,!1),isSpeakingWhileMuted:ln(e,!1),user:u}}),(function(e,t){return{deafen:()=>e(Ui(0)),mute:()=>e(Zn()),pauseVideo:t=>e(ti(t)),resumeVideo:t=>e(ni(t)),setAudioOutputDevice:t=>e(zi(t)),setDisplayName:t=>e(Li(t)),setGlobalVolumeLimit:t=>e(Ui(t)),setVoiceActivityThreshold:t=>e(Fi(t)),undeafen:()=>e(Ui(1)),unmute:()=>e(ei())}}))(io);class oo extends Ie.Component{componentDidMount(){this.setup()}componentDidUpdate(e){this.setup(e)}componentWillUnmount(){this.props.qualityProfile&&this.props.requestQualityProfile("low")}setup(e){if(!this.props.media||!this.video)return;this.video.oncontextmenu=e=>{e.preventDefault()},this.video.muted=!0,this.video.autoplay=!0;let t=!1;this.video.srcObject!==this.props.media.stream&&(this.video.srcObject=this.props.media.stream,t=!0),"remote"!==this.props.media.source||!this.props.qualityProfile||e&&this.props.qualityProfile===e.qualityProfile||(t||this.props.qualityProfile!==this.props.media.profile)&&this.props.requestQualityProfile(this.props.qualityProfile)}render(){return this.props.media&&this.props.media.loaded?Object(Ie.createElement)("video",{ref:e=>{this.video=e},style:this.props.media&&this.props.media.renderMirrored?{transform:"scaleX(-1)"}:{},playsInline:!0}):null}}var ao=ft((e,t)=>t,(function(e,t){return{requestQualityProfile:n=>e(Kn(t.media.id,n))}}))(oo);class so extends Ie.Component{constructor(e){super(e),this.state={volume:-1/0},this.onVolume=e=>{this.setState({volume:e})}}componentDidMount(){this.props.media&&this.props.media.hark&&this.attachHark()}componentWillUnmount(){this.detachHark()}componentDidUpdate(e){e.media!==this.props.media&&(this.detachHark(),this.attachHark())}attachHark(){this.setState({volume:-1/0}),this.props.media&&(this.hark=this.props.media.hark),this.hark&&this.hark.on("volume",this.onVolume)}detachHark(){this.hark&&(this.hark.removeListener("volume",this.onVolume),this.hark=void 0),this.setState({volume:-1/0})}render(){const e=this.props.media,t=this.props.noInputTimeout||7e3,n=e&&(e.externalDisabled||!!e.inputLost&&Date.now()-e.inputLost>t),i={loaded:e&&!!e.loaded&&!!e.inputDetected,media:e,muted:e&&e.localDisabled,noInput:n,speaking:e&&e.speaking,speakingWhileMuted:e&&e.localDisabled&&e.speaking,volume:e.externalDisabled?-1/0:this.state.volume};let r=this.props.render;return r||"function"!=typeof this.props.children||(r=this.props.children),r?r(i):this.props.children}}an();var lo=n(2);function co(e,t,n){return Math.min(Math.max(t,e),n)}function uo(e,t,n){return function(e,t,n,i=1){return{h:e/360,s:t,l:n,a:i}}(e,t,n)}function po(e,t,n,i=1){e/=255,t/=255,n/=255;const r=Math.max(e,t,n),o=Math.min(e,t,n);let a=0,s=0;const l=(r+o)/2;if(r===o)a=s=0;else{const i=r-o;switch(s=l>.5?i/(2-r-o):i/(r+o),r){case e:a=(t-n)/i+(t<n?6:0);break;case t:a=(n-e)/i+2;break;case n:a=(e-t)/i+4}a/=6}return{h:a,s:s,l:l,a:i}}function mo(e){const[t,n,i,r]=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(e,t,n,i)=>"#"+t+t+n+n+i+i).substring(1).match(/.{2}/g).map(e=>parseInt(e,16));return r?po(t,n,i,r):function(e,t,n){return po(e,t,n)}(t,n,i)}function ho(e){const{h:t,s:n,l:i,a:r}=e;return`hsla(${t}turn, ${100*n/1}%, ${100*i/1}%, ${r})`}function fo(e,t){const{h:n,s:i,l:r,a:o}=e;return{h:n,s:i,l:co(r+t,0,1),a:o}}function go(e,t){const{h:n,s:i,l:r,a:o}=e;return{h:n,s:i,l:co(r-t,0,1),a:o}}var vo={blueSaturatedDarker:uo(195,1,.05),blueSaturatedDark:uo(195,1,.1),blueSaturated:uo(195,1,.14),blueSaturatedLight:uo(195,.46,.22),blueSaturatedLighter:uo(195,.46,.42),blue:uo(195,1,.46),blueLight:uo(195,1,.7),blueLighter:uo(195,1,.95),grayDarker:uo(194,.07,.16),grayDark:uo(194,.05,.33),gray:uo(194,.05,.54),grayLight:uo(194,.09,.82),grayLighter:uo(194,.09,.92),pink:uo(326,.94,.48),pinkLight:uo(344,.97,.88),pinkLighter:uo(326,.94,.96),green:uo(142,.47,.5),greenLight:uo(142,.48,.85),greenLighter:uo(142,.48,.94),red:uo(342,1,.45),redLight:uo(342,1,.89),redLighter:uo(342,1,.95),orange:uo(34,.98,.48),orangeLight:uo(34,.98,.74),orangeLighter:uo(34,.98,.92)};const bo={background:mo("#fff"),foreground:mo("#444"),border:fo(mo("#444"),.5),primaryBackground:vo.blue,primaryForeground:mo("#fff"),secondaryBackground:vo.grayLighter,secondaryForeground:vo.grayDark,attentionBackground:vo.pink,attentionForeground:mo("#fff"),actionBackground:vo.green,actionForeground:mo("#fff")},yo={...bo,background:mo("#121212"),foreground:mo("#fff"),border:fo(mo("#121212"),.25),secondaryBackground:mo("#2a2a2a"),secondaryForeground:mo("#fff")};function ko(e){const t={...e},n=Array.from(document.head.querySelectorAll("meta[name*=simplewebrtc-theme]")).reduce((e,t)=>{const n=t.getAttribute("name"),i=t.getAttribute("content");var r;return null!==n&&null!==i&&(e[(r=n.replace("simplewebrtc-theme-",""),r.replace(/-([a-z])/g,e=>e[1].toUpperCase()))]=i),e},{});return Object.keys(n).forEach(e=>{t.hasOwnProperty(e)&&(t[e]=mo(n[e]))}),t}function wo(e){return{...e,buttonPrimaryBackground:e.primaryBackground,buttonPrimaryBackgroundHover:fo(e.primaryBackground,.05),buttonPrimaryBackgroundActive:go(e.primaryBackground,.05),buttonPrimaryText:e.primaryForeground,buttonSecondaryBackground:e.secondaryBackground,buttonSecondaryBackgroundHover:fo(e.secondaryBackground,.05),buttonSecondaryBackgroundActive:go(e.secondaryBackground,.05),buttonSecondaryText:e.secondaryForeground,buttonAttentionBackground:e.attentionBackground,buttonAttentionBackgroundHover:fo(e.attentionBackground,.05),buttonAttentionBackgroundActive:go(e.attentionBackground,.05),buttonAttentionText:e.attentionForeground,buttonActionBackground:e.actionBackground,buttonActionBackgroundHover:fo(e.actionBackground,.05),buttonActionBackgroundActive:go(e.actionBackground,.05),buttonActionText:e.actionForeground,alertInfoBackground:fo(e.primaryBackground,.5),alertInfoForeground:e.primaryBackground,alertErrorBackground:fo(e.attentionBackground,.5),alertErrorForeground:e.attentionBackground}}var So={light:wo(ko(bo)),dark:wo(ko(yo))};var Co=({children:e})=>Ae.a.createElement(lo.a,{theme:So.light},e);var xo=Ae.a.createContext({gridPlaceholder:null,haircheckHeaderPlaceholder:null,emptyRosterPlaceholder:null,homepagePlaceholder:null}),Eo=n(46),To=n.n(Eo),_o="@media (max-width: 849px)",jo="@media (min-width: 850px)";var Oo={":grinning-face:":"😀",":grinning-face-with-big-eyes:":"😃",":grinning-face-with-smiling-eyes:":"😄",":beaming-face-with-smiling-eyes:":"😁",":grinning-squinting-face:":"😆",":grinning-face-with-sweat:":"😅",":rolling-on-the-floor-laughing:":"🤣",":face-with-tears-of-joy:":"😂",":slightly-smiling-face:":"🙂",":upside-down-face:":"🙃",":winking-face:":"😉",":smiling-face-with-smiling-eyes:":"😊",":smiling-face-with-halo:":"😇",":smiling-face-with-hearts:":"🥰",":smiling-face-with-heart-eyes:":"😍",":star-struck:":"🤩",":face-blowing-a-kiss:":"😘",":kissing-face:":"😗",":smiling-face:":"☺️",":kissing-face-with-closed-eyes:":"😚",":kissing-face-with-smiling-eyes:":"😙",":face-savoring-food:":"😋",":face-with-tongue:":"😛",":winking-face-with-tongue:":"😜",":zany-face:":"🤪",":squinting-face-with-tongue:":"😝",":money-mouth-face:":"🤑",":hugging-face:":"🤗",":face-with-hand-over-mouth:":"🤭",":shushing-face:":"🤫",":thinking-face:":"🤔",":zipper-mouth-face:":"🤐",":face-with-raised-eyebrow:":"🤨",":neutral-face:":"😐",":expressionless-face:":"😑",":face-without-mouth:":"😶",":smirking-face:":"😏",":unamused-face:":"😒",":face-with-rolling-eyes:":"🙄",":grimacing-face:":"😬",":lying-face:":"🤥",":relieved-face:":"😌",":pensive-face:":"😔",":sleepy-face:":"😪",":drooling-face:":"🤤",":sleeping-face:":"😴",":face-with-medical-mask:":"😷",":face-with-thermometer:":"🤒",":face-with-head-bandage:":"🤕",":nauseated-face:":"🤢",":face-vomiting:":"🤮",":sneezing-face:":"🤧",":hot-face:":"🥵",":cold-face:":"🥶",":woozy-face:":"🥴",":dizzy-face:":"😵",":exploding-head:":"🤯",":cowboy-hat-face:":"🤠",":partying-face:":"🥳",":smiling-face-with-sunglasses:":"😎",":nerd-face:":"🤓",":face-with-monocle:":"🧐",":confused-face:":"😕",":worried-face:":"😟",":slightly-frowning-face:":"🙁",":frowning-face:":"☹️",":face-with-open-mouth:":"😮",":hushed-face:":"😯",":astonished-face:":"😲",":flushed-face:":"😳",":pleading-face:":"🥺",":frowning-face-with-open-mouth:":"😦",":anguished-face:":"😧",":fearful-face:":"😨",":anxious-face-with-sweat:":"😰",":sad-but-relieved-face:":"😥",":crying-face:":"😢",":loudly-crying-face:":"😭",":face-screaming-in-fear:":"😱",":confounded-face:":"😖",":persevering-face:":"😣",":disappointed-face:":"😞",":downcast-face-with-sweat:":"😓",":weary-face:":"😩",":tired-face:":"😫",":yawning-face:":"🥱",":face-with-steam-from-nose:":"😤",":pouting-face:":"😡",":angry-face:":"😠",":face-with-symbols-on-mouth:":"🤬",":smiling-face-with-horns:":"😈",":angry-face-with-horns:":"👿",":skull:":"💀",":skull-and-crossbones:":"☠️",":pile-of-poo:":"💩",":clown-face:":"🤡",":ogre:":"👹",":goblin:":"👺",":ghost:":"👻",":alien:":"👽",":alien-monster:":"👾",":robot:":"🤖",":grinning-cat:":"😺",":grinning-cat-with-smiling-eyes:":"😸",":cat-with-tears-of-joy:":"😹",":smiling-cat-with-heart-eyes:":"😻",":cat-with-wry-smile:":"😼",":kissing-cat:":"😽",":weary-cat:":"🙀",":crying-cat:":"😿",":pouting-cat:":"😾",":see-no-evil-monkey:":"🙈",":hear-no-evil-monkey:":"🙉",":speak-no-evil-monkey:":"🙊",":kiss-mark:":"💋",":love-letter:":"💌",":heart-with-arrow:":"💘",":heart-with-ribbon:":"💝",":sparkling-heart:":"💖",":growing-heart:":"💗",":beating-heart:":"💓",":revolving-hearts:":"💞",":two-hearts:":"💕",":heart-decoration:":"💟",":heart-exclamation:":"❣️",":broken-heart:":"💔",":red-heart:":"❤️",":orange-heart:":"🧡",":yellow-heart:":"💛",":green-heart:":"💚",":blue-heart:":"💙",":purple-heart:":"💜",":brown-heart:":"🤎",":black-heart:":"🖤",":white-heart:":"🤍",":hundred-points:":"💯",":anger-symbol:":"💢",":collision:":"💥",":dizzy:":"💫",":sweat-droplets:":"💦",":dashing-away:":"💨",":hole:":"🕳️",":bomb:":"💣",":speech-balloon:":"💬",":eye-in-speech-bubble:":"👁️🗨️",":left-speech-bubble:":"🗨️",":right-anger-bubble:":"🗯️",":thought-balloon:":"💭",":zzz:":"💤",":waving-hand:":"👋",":waving-hand-light-skin-tone:":"👋🏻",":waving-hand-medium-light-skin-tone:":"👋🏼",":waving-hand-medium-skin-tone:":"👋🏽",":waving-hand-medium-dark-skin-tone:":"👋🏾",":waving-hand-dark-skin-tone:":"👋🏿",":raised-back-of-hand:":"🤚",":raised-back-of-hand-light-skin-tone:":"🤚🏻",":raised-back-of-hand-medium-light-skin-tone:":"🤚🏼",":raised-back-of-hand-medium-skin-tone:":"🤚🏽",":raised-back-of-hand-medium-dark-skin-tone:":"🤚🏾",":raised-back-of-hand-dark-skin-tone:":"🤚🏿",":hand-with-fingers-splayed:":"🖐️",":hand-with-fingers-splayed-light-skin-tone:":"🖐🏻",":hand-with-fingers-splayed-medium-light-skin-tone:":"🖐🏼",":hand-with-fingers-splayed-medium-skin-tone:":"🖐🏽",":hand-with-fingers-splayed-medium-dark-skin-tone:":"🖐🏾",":hand-with-fingers-splayed-dark-skin-tone:":"🖐🏿",":raised-hand:":"✋",":raised-hand-light-skin-tone:":"✋🏻",":raised-hand-medium-light-skin-tone:":"✋🏼",":raised-hand-medium-skin-tone:":"✋🏽",":raised-hand-medium-dark-skin-tone:":"✋🏾",":raised-hand-dark-skin-tone:":"✋🏿",":vulcan-salute:":"🖖",":vulcan-salute-light-skin-tone:":"🖖🏻",":vulcan-salute-medium-light-skin-tone:":"🖖🏼",":vulcan-salute-medium-skin-tone:":"🖖🏽",":vulcan-salute-medium-dark-skin-tone:":"🖖🏾",":vulcan-salute-dark-skin-tone:":"🖖🏿",":ok-hand:":"👌",":ok-hand-light-skin-tone:":"👌🏻",":ok-hand-medium-light-skin-tone:":"👌🏼",":ok-hand-medium-skin-tone:":"👌🏽",":ok-hand-medium-dark-skin-tone:":"👌🏾",":ok-hand-dark-skin-tone:":"👌🏿",":pinching-hand:":"🤏",":pinching-hand-light-skin-tone:":"🤏🏻",":pinching-hand-medium-light-skin-tone:":"🤏🏼",":pinching-hand-medium-skin-tone:":"🤏🏽",":pinching-hand-medium-dark-skin-tone:":"🤏🏾",":pinching-hand-dark-skin-tone:":"🤏🏿",":victory-hand:":"✌️",":victory-hand-light-skin-tone:":"✌🏻",":victory-hand-medium-light-skin-tone:":"✌🏼",":victory-hand-medium-skin-tone:":"✌🏽",":victory-hand-medium-dark-skin-tone:":"✌🏾",":victory-hand-dark-skin-tone:":"✌🏿",":crossed-fingers:":"🤞",":crossed-fingers-light-skin-tone:":"🤞🏻",":crossed-fingers-medium-light-skin-tone:":"🤞🏼",":crossed-fingers-medium-skin-tone:":"🤞🏽",":crossed-fingers-medium-dark-skin-tone:":"🤞🏾",":crossed-fingers-dark-skin-tone:":"🤞🏿",":love-you-gesture:":"🤟",":love-you-gesture-light-skin-tone:":"🤟🏻",":love-you-gesture-medium-light-skin-tone:":"🤟🏼",":love-you-gesture-medium-skin-tone:":"🤟🏽",":love-you-gesture-medium-dark-skin-tone:":"🤟🏾",":love-you-gesture-dark-skin-tone:":"🤟🏿",":sign-of-the-horns:":"🤘",":sign-of-the-horns-light-skin-tone:":"🤘🏻",":sign-of-the-horns-medium-light-skin-tone:":"🤘🏼",":sign-of-the-horns-medium-skin-tone:":"🤘🏽",":sign-of-the-horns-medium-dark-skin-tone:":"🤘🏾",":sign-of-the-horns-dark-skin-tone:":"🤘🏿",":call-me-hand:":"🤙",":call-me-hand-light-skin-tone:":"🤙🏻",":call-me-hand-medium-light-skin-tone:":"🤙🏼",":call-me-hand-medium-skin-tone:":"🤙🏽",":call-me-hand-medium-dark-skin-tone:":"🤙🏾",":call-me-hand-dark-skin-tone:":"🤙🏿",":backhand-index-pointing-left:":"👈",":backhand-index-pointing-left-light-skin-tone:":"👈🏻",":backhand-index-pointing-left-medium-light-skin-tone:":"👈🏼",":backhand-index-pointing-left-medium-skin-tone:":"👈🏽",":backhand-index-pointing-left-medium-dark-skin-tone:":"👈🏾",":backhand-index-pointing-left-dark-skin-tone:":"👈🏿",":backhand-index-pointing-right:":"👉",":backhand-index-pointing-right-light-skin-tone:":"👉🏻",":backhand-index-pointing-right-medium-light-skin-tone:":"👉🏼",":backhand-index-pointing-right-medium-skin-tone:":"👉🏽",":backhand-index-pointing-right-medium-dark-skin-tone:":"👉🏾",":backhand-index-pointing-right-dark-skin-tone:":"👉🏿",":backhand-index-pointing-up:":"👆",":backhand-index-pointing-up-light-skin-tone:":"👆🏻",":backhand-index-pointing-up-medium-light-skin-tone:":"👆🏼",":backhand-index-pointing-up-medium-skin-tone:":"👆🏽",":backhand-index-pointing-up-medium-dark-skin-tone:":"👆🏾",":backhand-index-pointing-up-dark-skin-tone:":"👆🏿",":middle-finger:":"🖕",":middle-finger-light-skin-tone:":"🖕🏻",":middle-finger-medium-light-skin-tone:":"🖕🏼",":middle-finger-medium-skin-tone:":"🖕🏽",":middle-finger-medium-dark-skin-tone:":"🖕🏾",":middle-finger-dark-skin-tone:":"🖕🏿",":backhand-index-pointing-down:":"👇",":backhand-index-pointing-down-light-skin-tone:":"👇🏻",":backhand-index-pointing-down-medium-light-skin-tone:":"👇🏼",":backhand-index-pointing-down-medium-skin-tone:":"👇🏽",":backhand-index-pointing-down-medium-dark-skin-tone:":"👇🏾",":backhand-index-pointing-down-dark-skin-tone:":"👇🏿",":index-pointing-up:":"☝️",":index-pointing-up-light-skin-tone:":"☝🏻",":index-pointing-up-medium-light-skin-tone:":"☝🏼",":index-pointing-up-medium-skin-tone:":"☝🏽",":index-pointing-up-medium-dark-skin-tone:":"☝🏾",":index-pointing-up-dark-skin-tone:":"☝🏿",":thumbs-up:":"👍",":thumbs-up-light-skin-tone:":"👍🏻",":thumbs-up-medium-light-skin-tone:":"👍🏼",":thumbs-up-medium-skin-tone:":"👍🏽",":thumbs-up-medium-dark-skin-tone:":"👍🏾",":thumbs-up-dark-skin-tone:":"👍🏿",":thumbs-down:":"👎",":thumbs-down-light-skin-tone:":"👎🏻",":thumbs-down-medium-light-skin-tone:":"👎🏼",":thumbs-down-medium-skin-tone:":"👎🏽",":thumbs-down-medium-dark-skin-tone:":"👎🏾",":thumbs-down-dark-skin-tone:":"👎🏿",":raised-fist:":"✊",":raised-fist-light-skin-tone:":"✊🏻",":raised-fist-medium-light-skin-tone:":"✊🏼",":raised-fist-medium-skin-tone:":"✊🏽",":raised-fist-medium-dark-skin-tone:":"✊🏾",":raised-fist-dark-skin-tone:":"✊🏿",":oncoming-fist:":"👊",":oncoming-fist-light-skin-tone:":"👊🏻",":oncoming-fist-medium-light-skin-tone:":"👊🏼",":oncoming-fist-medium-skin-tone:":"👊🏽",":oncoming-fist-medium-dark-skin-tone:":"👊🏾",":oncoming-fist-dark-skin-tone:":"👊🏿",":left-facing-fist:":"🤛",":left-facing-fist-light-skin-tone:":"🤛🏻",":left-facing-fist-medium-light-skin-tone:":"🤛🏼",":left-facing-fist-medium-skin-tone:":"🤛🏽",":left-facing-fist-medium-dark-skin-tone:":"🤛🏾",":left-facing-fist-dark-skin-tone:":"🤛🏿",":right-facing-fist:":"🤜",":right-facing-fist-light-skin-tone:":"🤜🏻",":right-facing-fist-medium-light-skin-tone:":"🤜🏼",":right-facing-fist-medium-skin-tone:":"🤜🏽",":right-facing-fist-medium-dark-skin-tone:":"🤜🏾",":right-facing-fist-dark-skin-tone:":"🤜🏿",":clapping-hands:":"👏",":clapping-hands-light-skin-tone:":"👏🏻",":clapping-hands-medium-light-skin-tone:":"👏🏼",":clapping-hands-medium-skin-tone:":"👏🏽",":clapping-hands-medium-dark-skin-tone:":"👏🏾",":clapping-hands-dark-skin-tone:":"👏🏿",":raising-hands:":"🙌",":raising-hands-light-skin-tone:":"🙌🏻",":raising-hands-medium-light-skin-tone:":"🙌🏼",":raising-hands-medium-skin-tone:":"🙌🏽",":raising-hands-medium-dark-skin-tone:":"🙌🏾",":raising-hands-dark-skin-tone:":"🙌🏿",":open-hands:":"👐",":open-hands-light-skin-tone:":"👐🏻",":open-hands-medium-light-skin-tone:":"👐🏼",":open-hands-medium-skin-tone:":"👐🏽",":open-hands-medium-dark-skin-tone:":"👐🏾",":open-hands-dark-skin-tone:":"👐🏿",":palms-up-together:":"🤲",":palms-up-together-light-skin-tone:":"🤲🏻",":palms-up-together-medium-light-skin-tone:":"🤲🏼",":palms-up-together-medium-skin-tone:":"🤲🏽",":palms-up-together-medium-dark-skin-tone:":"🤲🏾",":palms-up-together-dark-skin-tone:":"🤲🏿",":handshake:":"🤝",":folded-hands:":"🙏",":folded-hands-light-skin-tone:":"🙏🏻",":folded-hands-medium-light-skin-tone:":"🙏🏼",":folded-hands-medium-skin-tone:":"🙏🏽",":folded-hands-medium-dark-skin-tone:":"🙏🏾",":folded-hands-dark-skin-tone:":"🙏🏿",":writing-hand:":"✍️",":writing-hand-light-skin-tone:":"✍🏻",":writing-hand-medium-light-skin-tone:":"✍🏼",":writing-hand-medium-skin-tone:":"✍🏽",":writing-hand-medium-dark-skin-tone:":"✍🏾",":writing-hand-dark-skin-tone:":"✍🏿",":nail-polish:":"💅",":nail-polish-light-skin-tone:":"💅🏻",":nail-polish-medium-light-skin-tone:":"💅🏼",":nail-polish-medium-skin-tone:":"💅🏽",":nail-polish-medium-dark-skin-tone:":"💅🏾",":nail-polish-dark-skin-tone:":"💅🏿",":selfie:":"🤳",":selfie-light-skin-tone:":"🤳🏻",":selfie-medium-light-skin-tone:":"🤳🏼",":selfie-medium-skin-tone:":"🤳🏽",":selfie-medium-dark-skin-tone:":"🤳🏾",":selfie-dark-skin-tone:":"🤳🏿",":flexed-biceps:":"💪",":flexed-biceps-light-skin-tone:":"💪🏻",":flexed-biceps-medium-light-skin-tone:":"💪🏼",":flexed-biceps-medium-skin-tone:":"💪🏽",":flexed-biceps-medium-dark-skin-tone:":"💪🏾",":flexed-biceps-dark-skin-tone:":"💪🏿",":mechanical-arm:":"🦾",":mechanical-leg:":"🦿",":leg:":"🦵",":leg-light-skin-tone:":"🦵🏻",":leg-medium-light-skin-tone:":"🦵🏼",":leg-medium-skin-tone:":"🦵🏽",":leg-medium-dark-skin-tone:":"🦵🏾",":leg-dark-skin-tone:":"🦵🏿",":foot:":"🦶",":foot-light-skin-tone:":"🦶🏻",":foot-medium-light-skin-tone:":"🦶🏼",":foot-medium-skin-tone:":"🦶🏽",":foot-medium-dark-skin-tone:":"🦶🏾",":foot-dark-skin-tone:":"🦶🏿",":ear:":"👂",":ear-light-skin-tone:":"👂🏻",":ear-medium-light-skin-tone:":"👂🏼",":ear-medium-skin-tone:":"👂🏽",":ear-medium-dark-skin-tone:":"👂🏾",":ear-dark-skin-tone:":"👂🏿",":ear-with-hearing-aid:":"🦻",":ear-with-hearing-aid-light-skin-tone:":"🦻🏻",":ear-with-hearing-aid-medium-light-skin-tone:":"🦻🏼",":ear-with-hearing-aid-medium-skin-tone:":"🦻🏽",":ear-with-hearing-aid-medium-dark-skin-tone:":"🦻🏾",":ear-with-hearing-aid-dark-skin-tone:":"🦻🏿",":nose:":"👃",":nose-light-skin-tone:":"👃🏻",":nose-medium-light-skin-tone:":"👃🏼",":nose-medium-skin-tone:":"👃🏽",":nose-medium-dark-skin-tone:":"👃🏾",":nose-dark-skin-tone:":"👃🏿",":brain:":"🧠",":tooth:":"🦷",":bone:":"🦴",":eyes:":"👀",":eye:":"👁️",":tongue:":"👅",":mouth:":"👄",":baby:":"👶",":baby-light-skin-tone:":"👶🏻",":baby-medium-light-skin-tone:":"👶🏼",":baby-medium-skin-tone:":"👶🏽",":baby-medium-dark-skin-tone:":"👶🏾",":baby-dark-skin-tone:":"👶🏿",":child:":"🧒",":child-light-skin-tone:":"🧒🏻",":child-medium-light-skin-tone:":"🧒🏼",":child-medium-skin-tone:":"🧒🏽",":child-medium-dark-skin-tone:":"🧒🏾",":child-dark-skin-tone:":"🧒🏿",":boy:":"👦",":boy-light-skin-tone:":"👦🏻",":boy-medium-light-skin-tone:":"👦🏼",":boy-medium-skin-tone:":"👦🏽",":boy-medium-dark-skin-tone:":"👦🏾",":boy-dark-skin-tone:":"👦🏿",":girl:":"👧",":girl-light-skin-tone:":"👧🏻",":girl-medium-light-skin-tone:":"👧🏼",":girl-medium-skin-tone:":"👧🏽",":girl-medium-dark-skin-tone:":"👧🏾",":girl-dark-skin-tone:":"👧🏿",":person:":"🧑",":person-light-skin-tone:":"🧑🏻",":person-medium-light-skin-tone:":"🧑🏼",":person-medium-skin-tone:":"🧑🏽",":person-medium-dark-skin-tone:":"🧑🏾",":person-dark-skin-tone:":"🧑🏿",":person-blond-hair:":"👱",":person-light-skin-tone-blond-hair:":"👱🏻",":person-medium-light-skin-tone-blond-hair:":"👱🏼",":person-medium-skin-tone-blond-hair:":"👱🏽",":person-medium-dark-skin-tone-blond-hair:":"👱🏾",":person-dark-skin-tone-blond-hair:":"👱🏿",":man:":"👨",":man-light-skin-tone:":"👨🏻",":man-medium-light-skin-tone:":"👨🏼",":man-medium-skin-tone:":"👨🏽",":man-medium-dark-skin-tone:":"👨🏾",":man-dark-skin-tone:":"👨🏿",":man-beard:":"🧔",":man-light-skin-tone-beard:":"🧔🏻",":man-medium-light-skin-tone-beard:":"🧔🏼",":man-medium-skin-tone-beard:":"🧔🏽",":man-medium-dark-skin-tone-beard:":"🧔🏾",":man-dark-skin-tone-beard:":"🧔🏿",":man-blond-hair:":"👱♂️",":man-light-skin-tone-blond-hair:":"👱🏻♂️",":man-medium-light-skin-tone-blond-hair:":"👱🏼♂️",":man-medium-skin-tone-blond-hair:":"👱🏽♂️",":man-medium-dark-skin-tone-blond-hair:":"👱🏾♂️",":man-dark-skin-tone-blond-hair:":"👱🏿♂️",":man-red-hair:":"👨🦰",":man-light-skin-tone-red-hair:":"👨🏻🦰",":man-medium-light-skin-tone-red-hair:":"👨🏼🦰",":man-medium-skin-tone-red-hair:":"👨🏽🦰",":man-medium-dark-skin-tone-red-hair:":"👨🏾🦰",":man-dark-skin-tone-red-hair:":"👨🏿🦰",":man-curly-hair:":"👨🦱",":man-light-skin-tone-curly-hair:":"👨🏻🦱",":man-medium-light-skin-tone-curly-hair:":"👨🏼🦱",":man-medium-skin-tone-curly-hair:":"👨🏽🦱",":man-medium-dark-skin-tone-curly-hair:":"👨🏾🦱",":man-dark-skin-tone-curly-hair:":"👨🏿🦱",":man-white-hair:":"👨🦳",":man-light-skin-tone-white-hair:":"👨🏻🦳",":man-medium-light-skin-tone-white-hair:":"👨🏼🦳",":man-medium-skin-tone-white-hair:":"👨🏽🦳",":man-medium-dark-skin-tone-white-hair:":"👨🏾🦳",":man-dark-skin-tone-white-hair:":"👨🏿🦳",":man-bald:":"👨🦲",":man-light-skin-tone-bald:":"👨🏻🦲",":man-medium-light-skin-tone-bald:":"👨🏼🦲",":man-medium-skin-tone-bald:":"👨🏽🦲",":man-medium-dark-skin-tone-bald:":"👨🏾🦲",":man-dark-skin-tone-bald:":"👨🏿🦲",":woman:":"👩",":woman-light-skin-tone:":"👩🏻",":woman-medium-light-skin-tone:":"👩🏼",":woman-medium-skin-tone:":"👩🏽",":woman-medium-dark-skin-tone:":"👩🏾",":woman-dark-skin-tone:":"👩🏿",":woman-blond-hair:":"👱♀️",":woman-light-skin-tone-blond-hair:":"👱🏻♀️",":woman-medium-light-skin-tone-blond-hair:":"👱🏼♀️",":woman-medium-skin-tone-blond-hair:":"👱🏽♀️",":woman-medium-dark-skin-tone-blond-hair:":"👱🏾♀️",":woman-dark-skin-tone-blond-hair:":"👱🏿♀️",":woman-red-hair:":"👩🦰",":woman-light-skin-tone-red-hair:":"👩🏻🦰",":woman-medium-light-skin-tone-red-hair:":"👩🏼🦰",":woman-medium-skin-tone-red-hair:":"👩🏽🦰",":woman-medium-dark-skin-tone-red-hair:":"👩🏾🦰",":woman-dark-skin-tone-red-hair:":"👩🏿🦰",":woman-curly-hair:":"👩🦱",":woman-light-skin-tone-curly-hair:":"👩🏻🦱",":woman-medium-light-skin-tone-curly-hair:":"👩🏼🦱",":woman-medium-skin-tone-curly-hair:":"👩🏽🦱",":woman-medium-dark-skin-tone-curly-hair:":"👩🏾🦱",":woman-dark-skin-tone-curly-hair:":"👩🏿🦱",":woman-white-hair:":"👩🦳",":woman-light-skin-tone-white-hair:":"👩🏻🦳",":woman-medium-light-skin-tone-white-hair:":"👩🏼🦳",":woman-medium-skin-tone-white-hair:":"👩🏽🦳",":woman-medium-dark-skin-tone-white-hair:":"👩🏾🦳",":woman-dark-skin-tone-white-hair:":"👩🏿🦳",":woman-bald:":"👩🦲",":woman-light-skin-tone-bald:":"👩🏻🦲",":woman-medium-light-skin-tone-bald:":"👩🏼🦲",":woman-medium-skin-tone-bald:":"👩🏽🦲",":woman-medium-dark-skin-tone-bald:":"👩🏾🦲",":woman-dark-skin-tone-bald:":"👩🏿🦲",":older-person:":"🧓",":older-person-light-skin-tone:":"🧓🏻",":older-person-medium-light-skin-tone:":"🧓🏼",":older-person-medium-skin-tone:":"🧓🏽",":older-person-medium-dark-skin-tone:":"🧓🏾",":older-person-dark-skin-tone:":"🧓🏿",":old-man:":"👴",":old-man-light-skin-tone:":"👴🏻",":old-man-medium-light-skin-tone:":"👴🏼",":old-man-medium-skin-tone:":"👴🏽",":old-man-medium-dark-skin-tone:":"👴🏾",":old-man-dark-skin-tone:":"👴🏿",":old-woman:":"👵",":old-woman-light-skin-tone:":"👵🏻",":old-woman-medium-light-skin-tone:":"👵🏼",":old-woman-medium-skin-tone:":"👵🏽",":old-woman-medium-dark-skin-tone:":"👵🏾",":old-woman-dark-skin-tone:":"👵🏿",":person-frowning:":"🙍",":person-frowning-light-skin-tone:":"🙍🏻",":person-frowning-medium-light-skin-tone:":"🙍🏼",":person-frowning-medium-skin-tone:":"🙍🏽",":person-frowning-medium-dark-skin-tone:":"🙍🏾",":person-frowning-dark-skin-tone:":"🙍🏿",":man-frowning:":"🙍♂️",":man-frowning-light-skin-tone:":"🙍🏻♂️",":man-frowning-medium-light-skin-tone:":"🙍🏼♂️",":man-frowning-medium-skin-tone:":"🙍🏽♂️",":man-frowning-medium-dark-skin-tone:":"🙍🏾♂️",":man-frowning-dark-skin-tone:":"🙍🏿♂️",":woman-frowning:":"🙍♀️",":woman-frowning-light-skin-tone:":"🙍🏻♀️",":woman-frowning-medium-light-skin-tone:":"🙍🏼♀️",":woman-frowning-medium-skin-tone:":"🙍🏽♀️",":woman-frowning-medium-dark-skin-tone:":"🙍🏾♀️",":woman-frowning-dark-skin-tone:":"🙍🏿♀️",":person-pouting:":"🙎",":person-pouting-light-skin-tone:":"🙎🏻",":person-pouting-medium-light-skin-tone:":"🙎🏼",":person-pouting-medium-skin-tone:":"🙎🏽",":person-pouting-medium-dark-skin-tone:":"🙎🏾",":person-pouting-dark-skin-tone:":"🙎🏿",":man-pouting:":"🙎♂️",":man-pouting-light-skin-tone:":"🙎🏻♂️",":man-pouting-medium-light-skin-tone:":"🙎🏼♂️",":man-pouting-medium-skin-tone:":"🙎🏽♂️",":man-pouting-medium-dark-skin-tone:":"🙎🏾♂️",":man-pouting-dark-skin-tone:":"🙎🏿♂️",":woman-pouting:":"🙎♀️",":woman-pouting-light-skin-tone:":"🙎🏻♀️",":woman-pouting-medium-light-skin-tone:":"🙎🏼♀️",":woman-pouting-medium-skin-tone:":"🙎🏽♀️",":woman-pouting-medium-dark-skin-tone:":"🙎🏾♀️",":woman-pouting-dark-skin-tone:":"🙎🏿♀️",":person-gesturing-no:":"🙅",":person-gesturing-no-light-skin-tone:":"🙅🏻",":person-gesturing-no-medium-light-skin-tone:":"🙅🏼",":person-gesturing-no-medium-skin-tone:":"🙅🏽",":person-gesturing-no-medium-dark-skin-tone:":"🙅🏾",":person-gesturing-no-dark-skin-tone:":"🙅🏿",":man-gesturing-no:":"🙅♂️",":man-gesturing-no-light-skin-tone:":"🙅🏻♂️",":man-gesturing-no-medium-light-skin-tone:":"🙅🏼♂️",":man-gesturing-no-medium-skin-tone:":"🙅🏽♂️",":man-gesturing-no-medium-dark-skin-tone:":"🙅🏾♂️",":man-gesturing-no-dark-skin-tone:":"🙅🏿♂️",":woman-gesturing-no:":"🙅♀️",":woman-gesturing-no-light-skin-tone:":"🙅🏻♀️",":woman-gesturing-no-medium-light-skin-tone:":"🙅🏼♀️",":woman-gesturing-no-medium-skin-tone:":"🙅🏽♀️",":woman-gesturing-no-medium-dark-skin-tone:":"🙅🏾♀️",":woman-gesturing-no-dark-skin-tone:":"🙅🏿♀️",":person-gesturing-ok:":"🙆",":person-gesturing-ok-light-skin-tone:":"🙆🏻",":person-gesturing-ok-medium-light-skin-tone:":"🙆🏼",":person-gesturing-ok-medium-skin-tone:":"🙆🏽",":person-gesturing-ok-medium-dark-skin-tone:":"🙆🏾",":person-gesturing-ok-dark-skin-tone:":"🙆🏿",":man-gesturing-ok:":"🙆♂️",":man-gesturing-ok-light-skin-tone:":"🙆🏻♂️",":man-gesturing-ok-medium-light-skin-tone:":"🙆🏼♂️",":man-gesturing-ok-medium-skin-tone:":"🙆🏽♂️",":man-gesturing-ok-medium-dark-skin-tone:":"🙆🏾♂️",":man-gesturing-ok-dark-skin-tone:":"🙆🏿♂️",":woman-gesturing-ok:":"🙆♀️",":woman-gesturing-ok-light-skin-tone:":"🙆🏻♀️",":woman-gesturing-ok-medium-light-skin-tone:":"🙆🏼♀️",":woman-gesturing-ok-medium-skin-tone:":"🙆🏽♀️",":woman-gesturing-ok-medium-dark-skin-tone:":"🙆🏾♀️",":woman-gesturing-ok-dark-skin-tone:":"🙆🏿♀️",":person-tipping-hand:":"💁",":person-tipping-hand-light-skin-tone:":"💁🏻",":person-tipping-hand-medium-light-skin-tone:":"💁🏼",":person-tipping-hand-medium-skin-tone:":"💁🏽",":person-tipping-hand-medium-dark-skin-tone:":"💁🏾",":person-tipping-hand-dark-skin-tone:":"💁🏿",":man-tipping-hand:":"💁♂️",":man-tipping-hand-light-skin-tone:":"💁🏻♂️",":man-tipping-hand-medium-light-skin-tone:":"💁🏼♂️",":man-tipping-hand-medium-skin-tone:":"💁🏽♂️",":man-tipping-hand-medium-dark-skin-tone:":"💁🏾♂️",":man-tipping-hand-dark-skin-tone:":"💁🏿♂️",":woman-tipping-hand:":"💁♀️",":woman-tipping-hand-light-skin-tone:":"💁🏻♀️",":woman-tipping-hand-medium-light-skin-tone:":"💁🏼♀️",":woman-tipping-hand-medium-skin-tone:":"💁🏽♀️",":woman-tipping-hand-medium-dark-skin-tone:":"💁🏾♀️",":woman-tipping-hand-dark-skin-tone:":"💁🏿♀️",":person-raising-hand:":"🙋",":person-raising-hand-light-skin-tone:":"🙋🏻",":person-raising-hand-medium-light-skin-tone:":"🙋🏼",":person-raising-hand-medium-skin-tone:":"🙋🏽",":person-raising-hand-medium-dark-skin-tone:":"🙋🏾",":person-raising-hand-dark-skin-tone:":"🙋🏿",":man-raising-hand:":"🙋♂️",":man-raising-hand-light-skin-tone:":"🙋🏻♂️",":man-raising-hand-medium-light-skin-tone:":"🙋🏼♂️",":man-raising-hand-medium-skin-tone:":"🙋🏽♂️",":man-raising-hand-medium-dark-skin-tone:":"🙋🏾♂️",":man-raising-hand-dark-skin-tone:":"🙋🏿♂️",":woman-raising-hand:":"🙋♀️",":woman-raising-hand-light-skin-tone:":"🙋🏻♀️",":woman-raising-hand-medium-light-skin-tone:":"🙋🏼♀️",":woman-raising-hand-medium-skin-tone:":"🙋🏽♀️",":woman-raising-hand-medium-dark-skin-tone:":"🙋🏾♀️",":woman-raising-hand-dark-skin-tone:":"🙋🏿♀️",":deaf-person:":"🧏",":deaf-person-light-skin-tone:":"🧏🏻",":deaf-person-medium-light-skin-tone:":"🧏🏼",":deaf-person-medium-skin-tone:":"🧏🏽",":deaf-person-medium-dark-skin-tone:":"🧏🏾",":deaf-person-dark-skin-tone:":"🧏🏿",":deaf-man:":"🧏♂️",":deaf-man-light-skin-tone:":"🧏🏻♂️",":deaf-man-medium-light-skin-tone:":"🧏🏼♂️",":deaf-man-medium-skin-tone:":"🧏🏽♂️",":deaf-man-medium-dark-skin-tone:":"🧏🏾♂️",":deaf-man-dark-skin-tone:":"🧏🏿♂️",":deaf-woman:":"🧏♀️",":deaf-woman-light-skin-tone:":"🧏🏻♀️",":deaf-woman-medium-light-skin-tone:":"🧏🏼♀️",":deaf-woman-medium-skin-tone:":"🧏🏽♀️",":deaf-woman-medium-dark-skin-tone:":"🧏🏾♀️",":deaf-woman-dark-skin-tone:":"🧏🏿♀️",":person-bowing:":"🙇",":person-bowing-light-skin-tone:":"🙇🏻",":person-bowing-medium-light-skin-tone:":"🙇🏼",":person-bowing-medium-skin-tone:":"🙇🏽",":person-bowing-medium-dark-skin-tone:":"🙇🏾",":person-bowing-dark-skin-tone:":"🙇🏿",":man-bowing:":"🙇♂️",":man-bowing-light-skin-tone:":"🙇🏻♂️",":man-bowing-medium-light-skin-tone:":"🙇🏼♂️",":man-bowing-medium-skin-tone:":"🙇🏽♂️",":man-bowing-medium-dark-skin-tone:":"🙇🏾♂️",":man-bowing-dark-skin-tone:":"🙇🏿♂️",":woman-bowing:":"🙇♀️",":woman-bowing-light-skin-tone:":"🙇🏻♀️",":woman-bowing-medium-light-skin-tone:":"🙇🏼♀️",":woman-bowing-medium-skin-tone:":"🙇🏽♀️",":woman-bowing-medium-dark-skin-tone:":"🙇🏾♀️",":woman-bowing-dark-skin-tone:":"🙇🏿♀️",":person-facepalming:":"🤦",":person-facepalming-light-skin-tone:":"🤦🏻",":person-facepalming-medium-light-skin-tone:":"🤦🏼",":person-facepalming-medium-skin-tone:":"🤦🏽",":person-facepalming-medium-dark-skin-tone:":"🤦🏾",":person-facepalming-dark-skin-tone:":"🤦🏿",":man-facepalming:":"🤦♂️",":man-facepalming-light-skin-tone:":"🤦🏻♂️",":man-facepalming-medium-light-skin-tone:":"🤦🏼♂️",":man-facepalming-medium-skin-tone:":"🤦🏽♂️",":man-facepalming-medium-dark-skin-tone:":"🤦🏾♂️",":man-facepalming-dark-skin-tone:":"🤦🏿♂️",":woman-facepalming:":"🤦♀️",":woman-facepalming-light-skin-tone:":"🤦🏻♀️",":woman-facepalming-medium-light-skin-tone:":"🤦🏼♀️",":woman-facepalming-medium-skin-tone:":"🤦🏽♀️",":woman-facepalming-medium-dark-skin-tone:":"🤦🏾♀️",":woman-facepalming-dark-skin-tone:":"🤦🏿♀️",":person-shrugging:":"🤷",":person-shrugging-light-skin-tone:":"🤷🏻",":person-shrugging-medium-light-skin-tone:":"🤷🏼",":person-shrugging-medium-skin-tone:":"🤷🏽",":person-shrugging-medium-dark-skin-tone:":"🤷🏾",":person-shrugging-dark-skin-tone:":"🤷🏿",":man-shrugging:":"🤷♂️",":man-shrugging-light-skin-tone:":"🤷🏻♂️",":man-shrugging-medium-light-skin-tone:":"🤷🏼♂️",":man-shrugging-medium-skin-tone:":"🤷🏽♂️",":man-shrugging-medium-dark-skin-tone:":"🤷🏾♂️",":man-shrugging-dark-skin-tone:":"🤷🏿♂️",":woman-shrugging:":"🤷♀️",":woman-shrugging-light-skin-tone:":"🤷🏻♀️",":woman-shrugging-medium-light-skin-tone:":"🤷🏼♀️",":woman-shrugging-medium-skin-tone:":"🤷🏽♀️",":woman-shrugging-medium-dark-skin-tone:":"🤷🏾♀️",":woman-shrugging-dark-skin-tone:":"🤷🏿♀️",":man-health-worker:":"👨⚕️",":man-health-worker-light-skin-tone:":"👨🏻⚕️",":man-health-worker-medium-light-skin-tone:":"👨🏼⚕️",":man-health-worker-medium-skin-tone:":"👨🏽⚕️",":man-health-worker-medium-dark-skin-tone:":"👨🏾⚕️",":man-health-worker-dark-skin-tone:":"👨🏿⚕️",":woman-health-worker:":"👩⚕️",":woman-health-worker-light-skin-tone:":"👩🏻⚕️",":woman-health-worker-medium-light-skin-tone:":"👩🏼⚕️",":woman-health-worker-medium-skin-tone:":"👩🏽⚕️",":woman-health-worker-medium-dark-skin-tone:":"👩🏾⚕️",":woman-health-worker-dark-skin-tone:":"👩🏿⚕️",":man-student:":"👨🎓",":man-student-light-skin-tone:":"👨🏻🎓",":man-student-medium-light-skin-tone:":"👨🏼🎓",":man-student-medium-skin-tone:":"👨🏽🎓",":man-student-medium-dark-skin-tone:":"👨🏾🎓",":man-student-dark-skin-tone:":"👨🏿🎓",":woman-student:":"👩🎓",":woman-student-light-skin-tone:":"👩🏻🎓",":woman-student-medium-light-skin-tone:":"👩🏼🎓",":woman-student-medium-skin-tone:":"👩🏽🎓",":woman-student-medium-dark-skin-tone:":"👩🏾🎓",":woman-student-dark-skin-tone:":"👩🏿🎓",":man-teacher:":"👨🏫",":man-teacher-light-skin-tone:":"👨🏻🏫",":man-teacher-medium-light-skin-tone:":"👨🏼🏫",":man-teacher-medium-skin-tone:":"👨🏽🏫",":man-teacher-medium-dark-skin-tone:":"👨🏾🏫",":man-teacher-dark-skin-tone:":"👨🏿🏫",":woman-teacher:":"👩🏫",":woman-teacher-light-skin-tone:":"👩🏻🏫",":woman-teacher-medium-light-skin-tone:":"👩🏼🏫",":woman-teacher-medium-skin-tone:":"👩🏽🏫",":woman-teacher-medium-dark-skin-tone:":"👩🏾🏫",":woman-teacher-dark-skin-tone:":"👩🏿🏫",":man-judge:":"👨⚖️",":man-judge-light-skin-tone:":"👨🏻⚖️",":man-judge-medium-light-skin-tone:":"👨🏼⚖️",":man-judge-medium-skin-tone:":"👨🏽⚖️",":man-judge-medium-dark-skin-tone:":"👨🏾⚖️",":man-judge-dark-skin-tone:":"👨🏿⚖️",":woman-judge:":"👩⚖️",":woman-judge-light-skin-tone:":"👩🏻⚖️",":woman-judge-medium-light-skin-tone:":"👩🏼⚖️",":woman-judge-medium-skin-tone:":"👩🏽⚖️",":woman-judge-medium-dark-skin-tone:":"👩🏾⚖️",":woman-judge-dark-skin-tone:":"👩🏿⚖️",":man-farmer:":"👨🌾",":man-farmer-light-skin-tone:":"👨🏻🌾",":man-farmer-medium-light-skin-tone:":"👨🏼🌾",":man-farmer-medium-skin-tone:":"👨🏽🌾",":man-farmer-medium-dark-skin-tone:":"👨🏾🌾",":man-farmer-dark-skin-tone:":"👨🏿🌾",":woman-farmer:":"👩🌾",":woman-farmer-light-skin-tone:":"👩🏻🌾",":woman-farmer-medium-light-skin-tone:":"👩🏼🌾",":woman-farmer-medium-skin-tone:":"👩🏽🌾",":woman-farmer-medium-dark-skin-tone:":"👩🏾🌾",":woman-farmer-dark-skin-tone:":"👩🏿🌾",":man-cook:":"👨🍳",":man-cook-light-skin-tone:":"👨🏻🍳",":man-cook-medium-light-skin-tone:":"👨🏼🍳",":man-cook-medium-skin-tone:":"👨🏽🍳",":man-cook-medium-dark-skin-tone:":"👨🏾🍳",":man-cook-dark-skin-tone:":"👨🏿🍳",":woman-cook:":"👩🍳",":woman-cook-light-skin-tone:":"👩🏻🍳",":woman-cook-medium-light-skin-tone:":"👩🏼🍳",":woman-cook-medium-skin-tone:":"👩🏽🍳",":woman-cook-medium-dark-skin-tone:":"👩🏾🍳",":woman-cook-dark-skin-tone:":"👩🏿🍳",":man-mechanic:":"👨🔧",":man-mechanic-light-skin-tone:":"👨🏻🔧",":man-mechanic-medium-light-skin-tone:":"👨🏼🔧",":man-mechanic-medium-skin-tone:":"👨🏽🔧",":man-mechanic-medium-dark-skin-tone:":"👨🏾🔧",":man-mechanic-dark-skin-tone:":"👨🏿🔧",":woman-mechanic:":"👩🔧",":woman-mechanic-light-skin-tone:":"👩🏻🔧",":woman-mechanic-medium-light-skin-tone:":"👩🏼🔧",":woman-mechanic-medium-skin-tone:":"👩🏽🔧",":woman-mechanic-medium-dark-skin-tone:":"👩🏾🔧",":woman-mechanic-dark-skin-tone:":"👩🏿🔧",":man-factory-worker:":"👨🏭",":man-factory-worker-light-skin-tone:":"👨🏻🏭",":man-factory-worker-medium-light-skin-tone:":"👨🏼🏭",":man-factory-worker-medium-skin-tone:":"👨🏽🏭",":man-factory-worker-medium-dark-skin-tone:":"👨🏾🏭",":man-factory-worker-dark-skin-tone:":"👨🏿🏭",":woman-factory-worker:":"👩🏭",":woman-factory-worker-light-skin-tone:":"👩🏻🏭",":woman-factory-worker-medium-light-skin-tone:":"👩🏼🏭",":woman-factory-worker-medium-skin-tone:":"👩🏽🏭",":woman-factory-worker-medium-dark-skin-tone:":"👩🏾🏭",":woman-factory-worker-dark-skin-tone:":"👩🏿🏭",":man-office-worker:":"👨💼",":man-office-worker-light-skin-tone:":"👨🏻💼",":man-office-worker-medium-light-skin-tone:":"👨🏼💼",":man-office-worker-medium-skin-tone:":"👨🏽💼",":man-office-worker-medium-dark-skin-tone:":"👨🏾💼",":man-office-worker-dark-skin-tone:":"👨🏿💼",":woman-office-worker:":"👩💼",":woman-office-worker-light-skin-tone:":"👩🏻💼",":woman-office-worker-medium-light-skin-tone:":"👩🏼💼",":woman-office-worker-medium-skin-tone:":"👩🏽💼",":woman-office-worker-medium-dark-skin-tone:":"👩🏾💼",":woman-office-worker-dark-skin-tone:":"👩🏿💼",":man-scientist:":"👨🔬",":man-scientist-light-skin-tone:":"👨🏻🔬",":man-scientist-medium-light-skin-tone:":"👨🏼🔬",":man-scientist-medium-skin-tone:":"👨🏽🔬",":man-scientist-medium-dark-skin-tone:":"👨🏾🔬",":man-scientist-dark-skin-tone:":"👨🏿🔬",":woman-scientist:":"👩🔬",":woman-scientist-light-skin-tone:":"👩🏻🔬",":woman-scientist-medium-light-skin-tone:":"👩🏼🔬",":woman-scientist-medium-skin-tone:":"👩🏽🔬",":woman-scientist-medium-dark-skin-tone:":"👩🏾🔬",":woman-scientist-dark-skin-tone:":"👩🏿🔬",":man-technologist:":"👨💻",":man-technologist-light-skin-tone:":"👨🏻💻",":man-technologist-medium-light-skin-tone:":"👨🏼💻",":man-technologist-medium-skin-tone:":"👨🏽💻",":man-technologist-medium-dark-skin-tone:":"👨🏾💻",":man-technologist-dark-skin-tone:":"👨🏿💻",":woman-technologist:":"👩💻",":woman-technologist-light-skin-tone:":"👩🏻💻",":woman-technologist-medium-light-skin-tone:":"👩🏼💻",":woman-technologist-medium-skin-tone:":"👩🏽💻",":woman-technologist-medium-dark-skin-tone:":"👩🏾💻",":woman-technologist-dark-skin-tone:":"👩🏿💻",":man-singer:":"👨🎤",":man-singer-light-skin-tone:":"👨🏻🎤",":man-singer-medium-light-skin-tone:":"👨🏼🎤",":man-singer-medium-skin-tone:":"👨🏽🎤",":man-singer-medium-dark-skin-tone:":"👨🏾🎤",":man-singer-dark-skin-tone:":"👨🏿🎤",":woman-singer:":"👩🎤",":woman-singer-light-skin-tone:":"👩🏻🎤",":woman-singer-medium-light-skin-tone:":"👩🏼🎤",":woman-singer-medium-skin-tone:":"👩🏽🎤",":woman-singer-medium-dark-skin-tone:":"👩🏾🎤",":woman-singer-dark-skin-tone:":"👩🏿🎤",":man-artist:":"👨🎨",":man-artist-light-skin-tone:":"👨🏻🎨",":man-artist-medium-light-skin-tone:":"👨🏼🎨",":man-artist-medium-skin-tone:":"👨🏽🎨",":man-artist-medium-dark-skin-tone:":"👨🏾🎨",":man-artist-dark-skin-tone:":"👨🏿🎨",":woman-artist:":"👩🎨",":woman-artist-light-skin-tone:":"👩🏻🎨",":woman-artist-medium-light-skin-tone:":"👩🏼🎨",":woman-artist-medium-skin-tone:":"👩🏽🎨",":woman-artist-medium-dark-skin-tone:":"👩🏾🎨",":woman-artist-dark-skin-tone:":"👩🏿🎨",":man-pilot:":"👨✈️",":man-pilot-light-skin-tone:":"👨🏻✈️",":man-pilot-medium-light-skin-tone:":"👨🏼✈️",":man-pilot-medium-skin-tone:":"👨🏽✈️",":man-pilot-medium-dark-skin-tone:":"👨🏾✈️",":man-pilot-dark-skin-tone:":"👨🏿✈️",":woman-pilot:":"👩✈️",":woman-pilot-light-skin-tone:":"👩🏻✈️",":woman-pilot-medium-light-skin-tone:":"👩🏼✈️",":woman-pilot-medium-skin-tone:":"👩🏽✈️",":woman-pilot-medium-dark-skin-tone:":"👩🏾✈️",":woman-pilot-dark-skin-tone:":"👩🏿✈️",":man-astronaut:":"👨🚀",":man-astronaut-light-skin-tone:":"👨🏻🚀",":man-astronaut-medium-light-skin-tone:":"👨🏼🚀",":man-astronaut-medium-skin-tone:":"👨🏽🚀",":man-astronaut-medium-dark-skin-tone:":"👨🏾🚀",":man-astronaut-dark-skin-tone:":"👨🏿🚀",":woman-astronaut:":"👩🚀",":woman-astronaut-light-skin-tone:":"👩🏻🚀",":woman-astronaut-medium-light-skin-tone:":"👩🏼🚀",":woman-astronaut-medium-skin-tone:":"👩🏽🚀",":woman-astronaut-medium-dark-skin-tone:":"👩🏾🚀",":woman-astronaut-dark-skin-tone:":"👩🏿🚀",":man-firefighter:":"👨🚒",":man-firefighter-light-skin-tone:":"👨🏻🚒",":man-firefighter-medium-light-skin-tone:":"👨🏼🚒",":man-firefighter-medium-skin-tone:":"👨🏽🚒",":man-firefighter-medium-dark-skin-tone:":"👨🏾🚒",":man-firefighter-dark-skin-tone:":"👨🏿🚒",":woman-firefighter:":"👩🚒",":woman-firefighter-light-skin-tone:":"👩🏻🚒",":woman-firefighter-medium-light-skin-tone:":"👩🏼🚒",":woman-firefighter-medium-skin-tone:":"👩🏽🚒",":woman-firefighter-medium-dark-skin-tone:":"👩🏾🚒",":woman-firefighter-dark-skin-tone:":"👩🏿🚒",":police-officer:":"👮",":police-officer-light-skin-tone:":"👮🏻",":police-officer-medium-light-skin-tone:":"👮🏼",":police-officer-medium-skin-tone:":"👮🏽",":police-officer-medium-dark-skin-tone:":"👮🏾",":police-officer-dark-skin-tone:":"👮🏿",":man-police-officer:":"👮♂️",":man-police-officer-light-skin-tone:":"👮🏻♂️",":man-police-officer-medium-light-skin-tone:":"👮🏼♂️",":man-police-officer-medium-skin-tone:":"👮🏽♂️",":man-police-officer-medium-dark-skin-tone:":"👮🏾♂️",":man-police-officer-dark-skin-tone:":"👮🏿♂️",":woman-police-officer:":"👮♀️",":woman-police-officer-light-skin-tone:":"👮🏻♀️",":woman-police-officer-medium-light-skin-tone:":"👮🏼♀️",":woman-police-officer-medium-skin-tone:":"👮🏽♀️",":woman-police-officer-medium-dark-skin-tone:":"👮🏾♀️",":woman-police-officer-dark-skin-tone:":"👮🏿♀️",":detective:":"🕵️",":detective-light-skin-tone:":"🕵🏻",":detective-medium-light-skin-tone:":"🕵🏼",":detective-medium-skin-tone:":"🕵🏽",":detective-medium-dark-skin-tone:":"🕵🏾",":detective-dark-skin-tone:":"🕵🏿",":man-detective:":"🕵️♂️",":man-detective-light-skin-tone:":"🕵🏻♂️",":man-detective-medium-light-skin-tone:":"🕵🏼♂️",":man-detective-medium-skin-tone:":"🕵🏽♂️",":man-detective-medium-dark-skin-tone:":"🕵🏾♂️",":man-detective-dark-skin-tone:":"🕵🏿♂️",":woman-detective:":"🕵️♀️",":woman-detective-light-skin-tone:":"🕵🏻♀️",":woman-detective-medium-light-skin-tone:":"🕵🏼♀️",":woman-detective-medium-skin-tone:":"🕵🏽♀️",":woman-detective-medium-dark-skin-tone:":"🕵🏾♀️",":woman-detective-dark-skin-tone:":"🕵🏿♀️",":guard:":"💂",":guard-light-skin-tone:":"💂🏻",":guard-medium-light-skin-tone:":"💂🏼",":guard-medium-skin-tone:":"💂🏽",":guard-medium-dark-skin-tone:":"💂🏾",":guard-dark-skin-tone:":"💂🏿",":man-guard:":"💂♂️",":man-guard-light-skin-tone:":"💂🏻♂️",":man-guard-medium-light-skin-tone:":"💂🏼♂️",":man-guard-medium-skin-tone:":"💂🏽♂️",":man-guard-medium-dark-skin-tone:":"💂🏾♂️",":man-guard-dark-skin-tone:":"💂🏿♂️",":woman-guard:":"💂♀️",":woman-guard-light-skin-tone:":"💂🏻♀️",":woman-guard-medium-light-skin-tone:":"💂🏼♀️",":woman-guard-medium-skin-tone:":"💂🏽♀️",":woman-guard-medium-dark-skin-tone:":"💂🏾♀️",":woman-guard-dark-skin-tone:":"💂🏿♀️",":construction-worker:":"👷",":construction-worker-light-skin-tone:":"👷🏻",":construction-worker-medium-light-skin-tone:":"👷🏼",":construction-worker-medium-skin-tone:":"👷🏽",":construction-worker-medium-dark-skin-tone:":"👷🏾",":construction-worker-dark-skin-tone:":"👷🏿",":man-construction-worker:":"👷♂️",":man-construction-worker-light-skin-tone:":"👷🏻♂️",":man-construction-worker-medium-light-skin-tone:":"👷🏼♂️",":man-construction-worker-medium-skin-tone:":"👷🏽♂️",":man-construction-worker-medium-dark-skin-tone:":"👷🏾♂️",":man-construction-worker-dark-skin-tone:":"👷🏿♂️",":woman-construction-worker:":"👷♀️",":woman-construction-worker-light-skin-tone:":"👷🏻♀️",":woman-construction-worker-medium-light-skin-tone:":"👷🏼♀️",":woman-construction-worker-medium-skin-tone:":"👷🏽♀️",":woman-construction-worker-medium-dark-skin-tone:":"👷🏾♀️",":woman-construction-worker-dark-skin-tone:":"👷🏿♀️",":prince:":"🤴",":prince-light-skin-tone:":"🤴🏻",":prince-medium-light-skin-tone:":"🤴🏼",":prince-medium-skin-tone:":"🤴🏽",":prince-medium-dark-skin-tone:":"🤴🏾",":prince-dark-skin-tone:":"🤴🏿",":princess:":"👸",":princess-light-skin-tone:":"👸🏻",":princess-medium-light-skin-tone:":"👸🏼",":princess-medium-skin-tone:":"👸🏽",":princess-medium-dark-skin-tone:":"👸🏾",":princess-dark-skin-tone:":"👸🏿",":person-wearing-turban:":"👳",":person-wearing-turban-light-skin-tone:":"👳🏻",":person-wearing-turban-medium-light-skin-tone:":"👳🏼",":person-wearing-turban-medium-skin-tone:":"👳🏽",":person-wearing-turban-medium-dark-skin-tone:":"👳🏾",":person-wearing-turban-dark-skin-tone:":"👳🏿",":man-wearing-turban:":"👳♂️",":man-wearing-turban-light-skin-tone:":"👳🏻♂️",":man-wearing-turban-medium-light-skin-tone:":"👳🏼♂️",":man-wearing-turban-medium-skin-tone:":"👳🏽♂️",":man-wearing-turban-medium-dark-skin-tone:":"👳🏾♂️",":man-wearing-turban-dark-skin-tone:":"👳🏿♂️",":woman-wearing-turban:":"👳♀️",":woman-wearing-turban-light-skin-tone:":"👳🏻♀️",":woman-wearing-turban-medium-light-skin-tone:":"👳🏼♀️",":woman-wearing-turban-medium-skin-tone:":"👳🏽♀️",":woman-wearing-turban-medium-dark-skin-tone:":"👳🏾♀️",":woman-wearing-turban-dark-skin-tone:":"👳🏿♀️",":man-with-chinese-cap:":"👲",":man-with-chinese-cap-light-skin-tone:":"👲🏻",":man-with-chinese-cap-medium-light-skin-tone:":"👲🏼",":man-with-chinese-cap-medium-skin-tone:":"👲🏽",":man-with-chinese-cap-medium-dark-skin-tone:":"👲🏾",":man-with-chinese-cap-dark-skin-tone:":"👲🏿",":woman-with-headscarf:":"🧕",":woman-with-headscarf-light-skin-tone:":"🧕🏻",":woman-with-headscarf-medium-light-skin-tone:":"🧕🏼",":woman-with-headscarf-medium-skin-tone:":"🧕🏽",":woman-with-headscarf-medium-dark-skin-tone:":"🧕🏾",":woman-with-headscarf-dark-skin-tone:":"🧕🏿",":man-in-tuxedo:":"🤵",":man-in-tuxedo-light-skin-tone:":"🤵🏻",":man-in-tuxedo-medium-light-skin-tone:":"🤵🏼",":man-in-tuxedo-medium-skin-tone:":"🤵🏽",":man-in-tuxedo-medium-dark-skin-tone:":"🤵🏾",":man-in-tuxedo-dark-skin-tone:":"🤵🏿",":bride-with-veil:":"👰",":bride-with-veil-light-skin-tone:":"👰🏻",":bride-with-veil-medium-light-skin-tone:":"👰🏼",":bride-with-veil-medium-skin-tone:":"👰🏽",":bride-with-veil-medium-dark-skin-tone:":"👰🏾",":bride-with-veil-dark-skin-tone:":"👰🏿",":pregnant-woman:":"🤰",":pregnant-woman-light-skin-tone:":"🤰🏻",":pregnant-woman-medium-light-skin-tone:":"🤰🏼",":pregnant-woman-medium-skin-tone:":"🤰🏽",":pregnant-woman-medium-dark-skin-tone:":"🤰🏾",":pregnant-woman-dark-skin-tone:":"🤰🏿",":breast-feeding:":"🤱",":breast-feeding-light-skin-tone:":"🤱🏻",":breast-feeding-medium-light-skin-tone:":"🤱🏼",":breast-feeding-medium-skin-tone:":"🤱🏽",":breast-feeding-medium-dark-skin-tone:":"🤱🏾",":breast-feeding-dark-skin-tone:":"🤱🏿",":baby-angel:":"👼",":baby-angel-light-skin-tone:":"👼🏻",":baby-angel-medium-light-skin-tone:":"👼🏼",":baby-angel-medium-skin-tone:":"👼🏽",":baby-angel-medium-dark-skin-tone:":"👼🏾",":baby-angel-dark-skin-tone:":"👼🏿",":santa-claus:":"🎅",":santa-claus-light-skin-tone:":"🎅🏻",":santa-claus-medium-light-skin-tone:":"🎅🏼",":santa-claus-medium-skin-tone:":"🎅🏽",":santa-claus-medium-dark-skin-tone:":"🎅🏾",":santa-claus-dark-skin-tone:":"🎅🏿",":mrs-claus:":"🤶",":mrs-claus-light-skin-tone:":"🤶🏻",":mrs-claus-medium-light-skin-tone:":"🤶🏼",":mrs-claus-medium-skin-tone:":"🤶🏽",":mrs-claus-medium-dark-skin-tone:":"🤶🏾",":mrs-claus-dark-skin-tone:":"🤶🏿",":superhero:":"🦸",":superhero-light-skin-tone:":"🦸🏻",":superhero-medium-light-skin-tone:":"🦸🏼",":superhero-medium-skin-tone:":"🦸🏽",":superhero-medium-dark-skin-tone:":"🦸🏾",":superhero-dark-skin-tone:":"🦸🏿",":man-superhero:":"🦸♂️",":man-superhero-light-skin-tone:":"🦸🏻♂️",":man-superhero-medium-light-skin-tone:":"🦸🏼♂️",":man-superhero-medium-skin-tone:":"🦸🏽♂️",":man-superhero-medium-dark-skin-tone:":"🦸🏾♂️",":man-superhero-dark-skin-tone:":"🦸🏿♂️",":woman-superhero:":"🦸♀️",":woman-superhero-light-skin-tone:":"🦸🏻♀️",":woman-superhero-medium-light-skin-tone:":"🦸🏼♀️",":woman-superhero-medium-skin-tone:":"🦸🏽♀️",":woman-superhero-medium-dark-skin-tone:":"🦸🏾♀️",":woman-superhero-dark-skin-tone:":"🦸🏿♀️",":supervillain:":"🦹",":supervillain-light-skin-tone:":"🦹🏻",":supervillain-medium-light-skin-tone:":"🦹🏼",":supervillain-medium-skin-tone:":"🦹🏽",":supervillain-medium-dark-skin-tone:":"🦹🏾",":supervillain-dark-skin-tone:":"🦹🏿",":man-supervillain:":"🦹♂️",":man-supervillain-light-skin-tone:":"🦹🏻♂️",":man-supervillain-medium-light-skin-tone:":"🦹🏼♂️",":man-supervillain-medium-skin-tone:":"🦹🏽♂️",":man-supervillain-medium-dark-skin-tone:":"🦹🏾♂️",":man-supervillain-dark-skin-tone:":"🦹🏿♂️",":woman-supervillain:":"🦹♀️",":woman-supervillain-light-skin-tone:":"🦹🏻♀️",":woman-supervillain-medium-light-skin-tone:":"🦹🏼♀️",":woman-supervillain-medium-skin-tone:":"🦹🏽♀️",":woman-supervillain-medium-dark-skin-tone:":"🦹🏾♀️",":woman-supervillain-dark-skin-tone:":"🦹🏿♀️",":mage:":"🧙",":mage-light-skin-tone:":"🧙🏻",":mage-medium-light-skin-tone:":"🧙🏼",":mage-medium-skin-tone:":"🧙🏽",":mage-medium-dark-skin-tone:":"🧙🏾",":mage-dark-skin-tone:":"🧙🏿",":man-mage:":"🧙♂️",":man-mage-light-skin-tone:":"🧙🏻♂️",":man-mage-medium-light-skin-tone:":"🧙🏼♂️",":man-mage-medium-skin-tone:":"🧙🏽♂️",":man-mage-medium-dark-skin-tone:":"🧙🏾♂️",":man-mage-dark-skin-tone:":"🧙🏿♂️",":woman-mage:":"🧙♀️",":woman-mage-light-skin-tone:":"🧙🏻♀️",":woman-mage-medium-light-skin-tone:":"🧙🏼♀️",":woman-mage-medium-skin-tone:":"🧙🏽♀️",":woman-mage-medium-dark-skin-tone:":"🧙🏾♀️",":woman-mage-dark-skin-tone:":"🧙🏿♀️",":fairy:":"🧚",":fairy-light-skin-tone:":"🧚🏻",":fairy-medium-light-skin-tone:":"🧚🏼",":fairy-medium-skin-tone:":"🧚🏽",":fairy-medium-dark-skin-tone:":"🧚🏾",":fairy-dark-skin-tone:":"🧚🏿",":man-fairy:":"🧚♂️",":man-fairy-light-skin-tone:":"🧚🏻♂️",":man-fairy-medium-light-skin-tone:":"🧚🏼♂️",":man-fairy-medium-skin-tone:":"🧚🏽♂️",":man-fairy-medium-dark-skin-tone:":"🧚🏾♂️",":man-fairy-dark-skin-tone:":"🧚🏿♂️",":woman-fairy:":"🧚♀️",":woman-fairy-light-skin-tone:":"🧚🏻♀️",":woman-fairy-medium-light-skin-tone:":"🧚🏼♀️",":woman-fairy-medium-skin-tone:":"🧚🏽♀️",":woman-fairy-medium-dark-skin-tone:":"🧚🏾♀️",":woman-fairy-dark-skin-tone:":"🧚🏿♀️",":vampire:":"🧛",":vampire-light-skin-tone:":"🧛🏻",":vampire-medium-light-skin-tone:":"🧛🏼",":vampire-medium-skin-tone:":"🧛🏽",":vampire-medium-dark-skin-tone:":"🧛🏾",":vampire-dark-skin-tone:":"🧛🏿",":man-vampire:":"🧛♂️",":man-vampire-light-skin-tone:":"🧛🏻♂️",":man-vampire-medium-light-skin-tone:":"🧛🏼♂️",":man-vampire-medium-skin-tone:":"🧛🏽♂️",":man-vampire-medium-dark-skin-tone:":"🧛🏾♂️",":man-vampire-dark-skin-tone:":"🧛🏿♂️",":woman-vampire:":"🧛♀️",":woman-vampire-light-skin-tone:":"🧛🏻♀️",":woman-vampire-medium-light-skin-tone:":"🧛🏼♀️",":woman-vampire-medium-skin-tone:":"🧛🏽♀️",":woman-vampire-medium-dark-skin-tone:":"🧛🏾♀️",":woman-vampire-dark-skin-tone:":"🧛🏿♀️",":merperson:":"🧜",":merperson-light-skin-tone:":"🧜🏻",":merperson-medium-light-skin-tone:":"🧜🏼",":merperson-medium-skin-tone:":"🧜🏽",":merperson-medium-dark-skin-tone:":"🧜🏾",":merperson-dark-skin-tone:":"🧜🏿",":merman:":"🧜♂️",":merman-light-skin-tone:":"🧜🏻♂️",":merman-medium-light-skin-tone:":"🧜🏼♂️",":merman-medium-skin-tone:":"🧜🏽♂️",":merman-medium-dark-skin-tone:":"🧜🏾♂️",":merman-dark-skin-tone:":"🧜🏿♂️",":mermaid:":"🧜♀️",":mermaid-light-skin-tone:":"🧜🏻♀️",":mermaid-medium-light-skin-tone:":"🧜🏼♀️",":mermaid-medium-skin-tone:":"🧜🏽♀️",":mermaid-medium-dark-skin-tone:":"🧜🏾♀️",":mermaid-dark-skin-tone:":"🧜🏿♀️",":elf:":"🧝",":elf-light-skin-tone:":"🧝🏻",":elf-medium-light-skin-tone:":"🧝🏼",":elf-medium-skin-tone:":"🧝🏽",":elf-medium-dark-skin-tone:":"🧝🏾",":elf-dark-skin-tone:":"🧝🏿",":man-elf:":"🧝♂️",":man-elf-light-skin-tone:":"🧝🏻♂️",":man-elf-medium-light-skin-tone:":"🧝🏼♂️",":man-elf-medium-skin-tone:":"🧝🏽♂️",":man-elf-medium-dark-skin-tone:":"🧝🏾♂️",":man-elf-dark-skin-tone:":"🧝🏿♂️",":woman-elf:":"🧝♀️",":woman-elf-light-skin-tone:":"🧝🏻♀️",":woman-elf-medium-light-skin-tone:":"🧝🏼♀️",":woman-elf-medium-skin-tone:":"🧝🏽♀️",":woman-elf-medium-dark-skin-tone:":"🧝🏾♀️",":woman-elf-dark-skin-tone:":"🧝🏿♀️",":genie:":"🧞",":man-genie:":"🧞♂️",":woman-genie:":"🧞♀️",":zombie:":"🧟",":man-zombie:":"🧟♂️",":woman-zombie:":"🧟♀️",":person-getting-massage:":"💆",":person-getting-massage-light-skin-tone:":"💆🏻",":person-getting-massage-medium-light-skin-tone:":"💆🏼",":person-getting-massage-medium-skin-tone:":"💆🏽",":person-getting-massage-medium-dark-skin-tone:":"💆🏾",":person-getting-massage-dark-skin-tone:":"💆🏿",":man-getting-massage:":"💆♂️",":man-getting-massage-light-skin-tone:":"💆🏻♂️",":man-getting-massage-medium-light-skin-tone:":"💆🏼♂️",":man-getting-massage-medium-skin-tone:":"💆🏽♂️",":man-getting-massage-medium-dark-skin-tone:":"💆🏾♂️",":man-getting-massage-dark-skin-tone:":"💆🏿♂️",":woman-getting-massage:":"💆♀️",":woman-getting-massage-light-skin-tone:":"💆🏻♀️",":woman-getting-massage-medium-light-skin-tone:":"💆🏼♀️",":woman-getting-massage-medium-skin-tone:":"💆🏽♀️",":woman-getting-massage-medium-dark-skin-tone:":"💆🏾♀️",":woman-getting-massage-dark-skin-tone:":"💆🏿♀️",":person-getting-haircut:":"💇",":person-getting-haircut-light-skin-tone:":"💇🏻",":person-getting-haircut-medium-light-skin-tone:":"💇🏼",":person-getting-haircut-medium-skin-tone:":"💇🏽",":person-getting-haircut-medium-dark-skin-tone:":"💇🏾",":person-getting-haircut-dark-skin-tone:":"💇🏿",":man-getting-haircut:":"💇♂️",":man-getting-haircut-light-skin-tone:":"💇🏻♂️",":man-getting-haircut-medium-light-skin-tone:":"💇🏼♂️",":man-getting-haircut-medium-skin-tone:":"💇🏽♂️",":man-getting-haircut-medium-dark-skin-tone:":"💇🏾♂️",":man-getting-haircut-dark-skin-tone:":"💇🏿♂️",":woman-getting-haircut:":"💇♀️",":woman-getting-haircut-light-skin-tone:":"💇🏻♀️",":woman-getting-haircut-medium-light-skin-tone:":"💇🏼♀️",":woman-getting-haircut-medium-skin-tone:":"💇🏽♀️",":woman-getting-haircut-medium-dark-skin-tone:":"💇🏾♀️",":woman-getting-haircut-dark-skin-tone:":"💇🏿♀️",":person-walking:":"🚶",":person-walking-light-skin-tone:":"🚶🏻",":person-walking-medium-light-skin-tone:":"🚶🏼",":person-walking-medium-skin-tone:":"🚶🏽",":person-walking-medium-dark-skin-tone:":"🚶🏾",":person-walking-dark-skin-tone:":"🚶🏿",":man-walking:":"🚶♂️",":man-walking-light-skin-tone:":"🚶🏻♂️",":man-walking-medium-light-skin-tone:":"🚶🏼♂️",":man-walking-medium-skin-tone:":"🚶🏽♂️",":man-walking-medium-dark-skin-tone:":"🚶🏾♂️",":man-walking-dark-skin-tone:":"🚶🏿♂️",":woman-walking:":"🚶♀️",":woman-walking-light-skin-tone:":"🚶🏻♀️",":woman-walking-medium-light-skin-tone:":"🚶🏼♀️",":woman-walking-medium-skin-tone:":"🚶🏽♀️",":woman-walking-medium-dark-skin-tone:":"🚶🏾♀️",":woman-walking-dark-skin-tone:":"🚶🏿♀️",":person-standing:":"🧍",":person-standing-light-skin-tone:":"🧍🏻",":person-standing-medium-light-skin-tone:":"🧍🏼",":person-standing-medium-skin-tone:":"🧍🏽",":person-standing-medium-dark-skin-tone:":"🧍🏾",":person-standing-dark-skin-tone:":"🧍🏿",":man-standing:":"🧍♂️",":man-standing-light-skin-tone:":"🧍🏻♂️",":man-standing-medium-light-skin-tone:":"🧍🏼♂️",":man-standing-medium-skin-tone:":"🧍🏽♂️",":man-standing-medium-dark-skin-tone:":"🧍🏾♂️",":man-standing-dark-skin-tone:":"🧍🏿♂️",":woman-standing:":"🧍♀️",":woman-standing-light-skin-tone:":"🧍🏻♀️",":woman-standing-medium-light-skin-tone:":"🧍🏼♀️",":woman-standing-medium-skin-tone:":"🧍🏽♀️",":woman-standing-medium-dark-skin-tone:":"🧍🏾♀️",":woman-standing-dark-skin-tone:":"🧍🏿♀️",":person-kneeling:":"🧎",":person-kneeling-light-skin-tone:":"🧎🏻",":person-kneeling-medium-light-skin-tone:":"🧎🏼",":person-kneeling-medium-skin-tone:":"🧎🏽",":person-kneeling-medium-dark-skin-tone:":"🧎🏾",":person-kneeling-dark-skin-tone:":"🧎🏿",":man-kneeling:":"🧎♂️",":man-kneeling-light-skin-tone:":"🧎🏻♂️",":man-kneeling-medium-light-skin-tone:":"🧎🏼♂️",":man-kneeling-medium-skin-tone:":"🧎🏽♂️",":man-kneeling-medium-dark-skin-tone:":"🧎🏾♂️",":man-kneeling-dark-skin-tone:":"🧎🏿♂️",":woman-kneeling:":"🧎♀️",":woman-kneeling-light-skin-tone:":"🧎🏻♀️",":woman-kneeling-medium-light-skin-tone:":"🧎🏼♀️",":woman-kneeling-medium-skin-tone:":"🧎🏽♀️",":woman-kneeling-medium-dark-skin-tone:":"🧎🏾♀️",":woman-kneeling-dark-skin-tone:":"🧎🏿♀️",":man-with-probing-cane:":"👨🦯",":man-with-probing-cane-light-skin-tone:":"👨🏻🦯",":man-with-probing-cane-medium-light-skin-tone:":"👨🏼🦯",":man-with-probing-cane-medium-skin-tone:":"👨🏽🦯",":man-with-probing-cane-medium-dark-skin-tone:":"👨🏾🦯",":man-with-probing-cane-dark-skin-tone:":"👨🏿🦯",":woman-with-probing-cane:":"👩🦯",":woman-with-probing-cane-light-skin-tone:":"👩🏻🦯",":woman-with-probing-cane-medium-light-skin-tone:":"👩🏼🦯",":woman-with-probing-cane-medium-skin-tone:":"👩🏽🦯",":woman-with-probing-cane-medium-dark-skin-tone:":"👩🏾🦯",":woman-with-probing-cane-dark-skin-tone:":"👩🏿🦯",":man-in-motorized-wheelchair:":"👨🦼",":man-in-motorized-wheelchair-light-skin-tone:":"👨🏻🦼",":man-in-motorized-wheelchair-medium-light-skin-tone:":"👨🏼🦼",":man-in-motorized-wheelchair-medium-skin-tone:":"👨🏽🦼",":man-in-motorized-wheelchair-medium-dark-skin-tone:":"👨🏾🦼",":man-in-motorized-wheelchair-dark-skin-tone:":"👨🏿🦼",":woman-in-motorized-wheelchair:":"👩🦼",":woman-in-motorized-wheelchair-light-skin-tone:":"👩🏻🦼",":woman-in-motorized-wheelchair-medium-light-skin-tone:":"👩🏼🦼",":woman-in-motorized-wheelchair-medium-skin-tone:":"👩🏽🦼",":woman-in-motorized-wheelchair-medium-dark-skin-tone:":"👩🏾🦼",":woman-in-motorized-wheelchair-dark-skin-tone:":"👩🏿🦼",":man-in-manual-wheelchair:":"👨🦽",":man-in-manual-wheelchair-light-skin-tone:":"👨🏻🦽",":man-in-manual-wheelchair-medium-light-skin-tone:":"👨🏼🦽",":man-in-manual-wheelchair-medium-skin-tone:":"👨🏽🦽",":man-in-manual-wheelchair-medium-dark-skin-tone:":"👨🏾🦽",":man-in-manual-wheelchair-dark-skin-tone:":"👨🏿🦽",":woman-in-manual-wheelchair:":"👩🦽",":woman-in-manual-wheelchair-light-skin-tone:":"👩🏻🦽",":woman-in-manual-wheelchair-medium-light-skin-tone:":"👩🏼🦽",":woman-in-manual-wheelchair-medium-skin-tone:":"👩🏽🦽",":woman-in-manual-wheelchair-medium-dark-skin-tone:":"👩🏾🦽",":woman-in-manual-wheelchair-dark-skin-tone:":"👩🏿🦽",":person-running:":"🏃",":person-running-light-skin-tone:":"🏃🏻",":person-running-medium-light-skin-tone:":"🏃🏼",":person-running-medium-skin-tone:":"🏃🏽",":person-running-medium-dark-skin-tone:":"🏃🏾",":person-running-dark-skin-tone:":"🏃🏿",":man-running:":"🏃♂️",":man-running-light-skin-tone:":"🏃🏻♂️",":man-running-medium-light-skin-tone:":"🏃🏼♂️",":man-running-medium-skin-tone:":"🏃🏽♂️",":man-running-medium-dark-skin-tone:":"🏃🏾♂️",":man-running-dark-skin-tone:":"🏃🏿♂️",":woman-running:":"🏃♀️",":woman-running-light-skin-tone:":"🏃🏻♀️",":woman-running-medium-light-skin-tone:":"🏃🏼♀️",":woman-running-medium-skin-tone:":"🏃🏽♀️",":woman-running-medium-dark-skin-tone:":"🏃🏾♀️",":woman-running-dark-skin-tone:":"🏃🏿♀️",":woman-dancing:":"💃",":woman-dancing-light-skin-tone:":"💃🏻",":woman-dancing-medium-light-skin-tone:":"💃🏼",":woman-dancing-medium-skin-tone:":"💃🏽",":woman-dancing-medium-dark-skin-tone:":"💃🏾",":woman-dancing-dark-skin-tone:":"💃🏿",":man-dancing:":"🕺",":man-dancing-light-skin-tone:":"🕺🏻",":man-dancing-medium-light-skin-tone:":"🕺🏼",":man-dancing-medium-skin-tone:":"🕺🏽",":man-dancing-medium-dark-skin-tone:":"🕺🏾",":man-dancing-dark-skin-tone:":"🕺🏿",":man-in-suit-levitating:":"🕴️",":man-in-suit-levitating-light-skin-tone:":"🕴🏻",":man-in-suit-levitating-medium-light-skin-tone:":"🕴🏼",":man-in-suit-levitating-medium-skin-tone:":"🕴🏽",":man-in-suit-levitating-medium-dark-skin-tone:":"🕴🏾",":man-in-suit-levitating-dark-skin-tone:":"🕴🏿",":people-with-bunny-ears:":"👯",":men-with-bunny-ears:":"👯♂️",":women-with-bunny-ears:":"👯♀️",":person-in-steamy-room:":"🧖",":person-in-steamy-room-light-skin-tone:":"🧖🏻",":person-in-steamy-room-medium-light-skin-tone:":"🧖🏼",":person-in-steamy-room-medium-skin-tone:":"🧖🏽",":person-in-steamy-room-medium-dark-skin-tone:":"🧖🏾",":person-in-steamy-room-dark-skin-tone:":"🧖🏿",":man-in-steamy-room:":"🧖♂️",":man-in-steamy-room-light-skin-tone:":"🧖🏻♂️",":man-in-steamy-room-medium-light-skin-tone:":"🧖🏼♂️",":man-in-steamy-room-medium-skin-tone:":"🧖🏽♂️",":man-in-steamy-room-medium-dark-skin-tone:":"🧖🏾♂️",":man-in-steamy-room-dark-skin-tone:":"🧖🏿♂️",":woman-in-steamy-room:":"🧖♀️",":woman-in-steamy-room-light-skin-tone:":"🧖🏻♀️",":woman-in-steamy-room-medium-light-skin-tone:":"🧖🏼♀️",":woman-in-steamy-room-medium-skin-tone:":"🧖🏽♀️",":woman-in-steamy-room-medium-dark-skin-tone:":"🧖🏾♀️",":woman-in-steamy-room-dark-skin-tone:":"🧖🏿♀️",":person-climbing:":"🧗",":person-climbing-light-skin-tone:":"🧗🏻",":person-climbing-medium-light-skin-tone:":"🧗🏼",":person-climbing-medium-skin-tone:":"🧗🏽",":person-climbing-medium-dark-skin-tone:":"🧗🏾",":person-climbing-dark-skin-tone:":"🧗🏿",":man-climbing:":"🧗♂️",":man-climbing-light-skin-tone:":"🧗🏻♂️",":man-climbing-medium-light-skin-tone:":"🧗🏼♂️",":man-climbing-medium-skin-tone:":"🧗🏽♂️",":man-climbing-medium-dark-skin-tone:":"🧗🏾♂️",":man-climbing-dark-skin-tone:":"🧗🏿♂️",":woman-climbing:":"🧗♀️",":woman-climbing-light-skin-tone:":"🧗🏻♀️",":woman-climbing-medium-light-skin-tone:":"🧗🏼♀️",":woman-climbing-medium-skin-tone:":"🧗🏽♀️",":woman-climbing-medium-dark-skin-tone:":"🧗🏾♀️",":woman-climbing-dark-skin-tone:":"🧗🏿♀️",":person-fencing:":"🤺",":horse-racing:":"🏇",":horse-racing-light-skin-tone:":"🏇🏻",":horse-racing-medium-light-skin-tone:":"🏇🏼",":horse-racing-medium-skin-tone:":"🏇🏽",":horse-racing-medium-dark-skin-tone:":"🏇🏾",":horse-racing-dark-skin-tone:":"🏇🏿",":skier:":"⛷️",":snowboarder:":"🏂",":snowboarder-light-skin-tone:":"🏂🏻",":snowboarder-medium-light-skin-tone:":"🏂🏼",":snowboarder-medium-skin-tone:":"🏂🏽",":snowboarder-medium-dark-skin-tone:":"🏂🏾",":snowboarder-dark-skin-tone:":"🏂🏿",":person-golfing:":"🏌️",":person-golfing-light-skin-tone:":"🏌🏻",":person-golfing-medium-light-skin-tone:":"🏌🏼",":person-golfing-medium-skin-tone:":"🏌🏽",":person-golfing-medium-dark-skin-tone:":"🏌🏾",":person-golfing-dark-skin-tone:":"🏌🏿",":man-golfing:":"🏌️♂️",":man-golfing-light-skin-tone:":"🏌🏻♂️",":man-golfing-medium-light-skin-tone:":"🏌🏼♂️",":man-golfing-medium-skin-tone:":"🏌🏽♂️",":man-golfing-medium-dark-skin-tone:":"🏌🏾♂️",":man-golfing-dark-skin-tone:":"🏌🏿♂️",":woman-golfing:":"🏌️♀️",":woman-golfing-light-skin-tone:":"🏌🏻♀️",":woman-golfing-medium-light-skin-tone:":"🏌🏼♀️",":woman-golfing-medium-skin-tone:":"🏌🏽♀️",":woman-golfing-medium-dark-skin-tone:":"🏌🏾♀️",":woman-golfing-dark-skin-tone:":"🏌🏿♀️",":person-surfing:":"🏄",":person-surfing-light-skin-tone:":"🏄🏻",":person-surfing-medium-light-skin-tone:":"🏄🏼",":person-surfing-medium-skin-tone:":"🏄🏽",":person-surfing-medium-dark-skin-tone:":"🏄🏾",":person-surfing-dark-skin-tone:":"🏄🏿",":man-surfing:":"🏄♂️",":man-surfing-light-skin-tone:":"🏄🏻♂️",":man-surfing-medium-light-skin-tone:":"🏄🏼♂️",":man-surfing-medium-skin-tone:":"🏄🏽♂️",":man-surfing-medium-dark-skin-tone:":"🏄🏾♂️",":man-surfing-dark-skin-tone:":"🏄🏿♂️",":woman-surfing:":"🏄♀️",":woman-surfing-light-skin-tone:":"🏄🏻♀️",":woman-surfing-medium-light-skin-tone:":"🏄🏼♀️",":woman-surfing-medium-skin-tone:":"🏄🏽♀️",":woman-surfing-medium-dark-skin-tone:":"🏄🏾♀️",":woman-surfing-dark-skin-tone:":"🏄🏿♀️",":person-rowing-boat:":"🚣",":person-rowing-boat-light-skin-tone:":"🚣🏻",":person-rowing-boat-medium-light-skin-tone:":"🚣🏼",":person-rowing-boat-medium-skin-tone:":"🚣🏽",":person-rowing-boat-medium-dark-skin-tone:":"🚣🏾",":person-rowing-boat-dark-skin-tone:":"🚣🏿",":man-rowing-boat:":"🚣♂️",":man-rowing-boat-light-skin-tone:":"🚣🏻♂️",":man-rowing-boat-medium-light-skin-tone:":"🚣🏼♂️",":man-rowing-boat-medium-skin-tone:":"🚣🏽♂️",":man-rowing-boat-medium-dark-skin-tone:":"🚣🏾♂️",":man-rowing-boat-dark-skin-tone:":"🚣🏿♂️",":woman-rowing-boat:":"🚣♀️",":woman-rowing-boat-light-skin-tone:":"🚣🏻♀️",":woman-rowing-boat-medium-light-skin-tone:":"🚣🏼♀️",":woman-rowing-boat-medium-skin-tone:":"🚣🏽♀️",":woman-rowing-boat-medium-dark-skin-tone:":"🚣🏾♀️",":woman-rowing-boat-dark-skin-tone:":"🚣🏿♀️",":person-swimming:":"🏊",":person-swimming-light-skin-tone:":"🏊🏻",":person-swimming-medium-light-skin-tone:":"🏊🏼",":person-swimming-medium-skin-tone:":"🏊🏽",":person-swimming-medium-dark-skin-tone:":"🏊🏾",":person-swimming-dark-skin-tone:":"🏊🏿",":man-swimming:":"🏊♂️",":man-swimming-light-skin-tone:":"🏊🏻♂️",":man-swimming-medium-light-skin-tone:":"🏊🏼♂️",":man-swimming-medium-skin-tone:":"🏊🏽♂️",":man-swimming-medium-dark-skin-tone:":"🏊🏾♂️",":man-swimming-dark-skin-tone:":"🏊🏿♂️",":woman-swimming:":"🏊♀️",":woman-swimming-light-skin-tone:":"🏊🏻♀️",":woman-swimming-medium-light-skin-tone:":"🏊🏼♀️",":woman-swimming-medium-skin-tone:":"🏊🏽♀️",":woman-swimming-medium-dark-skin-tone:":"🏊🏾♀️",":woman-swimming-dark-skin-tone:":"🏊🏿♀️",":person-bouncing-ball:":"⛹️",":person-bouncing-ball-light-skin-tone:":"⛹🏻",":person-bouncing-ball-medium-light-skin-tone:":"⛹🏼",":person-bouncing-ball-medium-skin-tone:":"⛹🏽",":person-bouncing-ball-medium-dark-skin-tone:":"⛹🏾",":person-bouncing-ball-dark-skin-tone:":"⛹🏿",":man-bouncing-ball:":"⛹️♂️",":man-bouncing-ball-light-skin-tone:":"⛹🏻♂️",":man-bouncing-ball-medium-light-skin-tone:":"⛹🏼♂️",":man-bouncing-ball-medium-skin-tone:":"⛹🏽♂️",":man-bouncing-ball-medium-dark-skin-tone:":"⛹🏾♂️",":man-bouncing-ball-dark-skin-tone:":"⛹🏿♂️",":woman-bouncing-ball:":"⛹️♀️",":woman-bouncing-ball-light-skin-tone:":"⛹🏻♀️",":woman-bouncing-ball-medium-light-skin-tone:":"⛹🏼♀️",":woman-bouncing-ball-medium-skin-tone:":"⛹🏽♀️",":woman-bouncing-ball-medium-dark-skin-tone:":"⛹🏾♀️",":woman-bouncing-ball-dark-skin-tone:":"⛹🏿♀️",":person-lifting-weights:":"🏋️",":person-lifting-weights-light-skin-tone:":"🏋🏻",":person-lifting-weights-medium-light-skin-tone:":"🏋🏼",":person-lifting-weights-medium-skin-tone:":"🏋🏽",":person-lifting-weights-medium-dark-skin-tone:":"🏋🏾",":person-lifting-weights-dark-skin-tone:":"🏋🏿",":man-lifting-weights:":"🏋️♂️",":man-lifting-weights-light-skin-tone:":"🏋🏻♂️",":man-lifting-weights-medium-light-skin-tone:":"🏋🏼♂️",":man-lifting-weights-medium-skin-tone:":"🏋🏽♂️",":man-lifting-weights-medium-dark-skin-tone:":"🏋🏾♂️",":man-lifting-weights-dark-skin-tone:":"🏋🏿♂️",":woman-lifting-weights:":"🏋️♀️",":woman-lifting-weights-light-skin-tone:":"🏋🏻♀️",":woman-lifting-weights-medium-light-skin-tone:":"🏋🏼♀️",":woman-lifting-weights-medium-skin-tone:":"🏋🏽♀️",":woman-lifting-weights-medium-dark-skin-tone:":"🏋🏾♀️",":woman-lifting-weights-dark-skin-tone:":"🏋🏿♀️",":person-biking:":"🚴",":person-biking-light-skin-tone:":"🚴🏻",":person-biking-medium-light-skin-tone:":"🚴🏼",":person-biking-medium-skin-tone:":"🚴🏽",":person-biking-medium-dark-skin-tone:":"🚴🏾",":person-biking-dark-skin-tone:":"🚴🏿",":man-biking:":"🚴♂️",":man-biking-light-skin-tone:":"🚴🏻♂️",":man-biking-medium-light-skin-tone:":"🚴🏼♂️",":man-biking-medium-skin-tone:":"🚴🏽♂️",":man-biking-medium-dark-skin-tone:":"🚴🏾♂️",":man-biking-dark-skin-tone:":"🚴🏿♂️",":woman-biking:":"🚴♀️",":woman-biking-light-skin-tone:":"🚴🏻♀️",":woman-biking-medium-light-skin-tone:":"🚴🏼♀️",":woman-biking-medium-skin-tone:":"🚴🏽♀️",":woman-biking-medium-dark-skin-tone:":"🚴🏾♀️",":woman-biking-dark-skin-tone:":"🚴🏿♀️",":person-mountain-biking:":"🚵",":person-mountain-biking-light-skin-tone:":"🚵🏻",":person-mountain-biking-medium-light-skin-tone:":"🚵🏼",":person-mountain-biking-medium-skin-tone:":"🚵🏽",":person-mountain-biking-medium-dark-skin-tone:":"🚵🏾",":person-mountain-biking-dark-skin-tone:":"🚵🏿",":man-mountain-biking:":"🚵♂️",":man-mountain-biking-light-skin-tone:":"🚵🏻♂️",":man-mountain-biking-medium-light-skin-tone:":"🚵🏼♂️",":man-mountain-biking-medium-skin-tone:":"🚵🏽♂️",":man-mountain-biking-medium-dark-skin-tone:":"🚵🏾♂️",":man-mountain-biking-dark-skin-tone:":"🚵🏿♂️",":woman-mountain-biking:":"🚵♀️",":woman-mountain-biking-light-skin-tone:":"🚵🏻♀️",":woman-mountain-biking-medium-light-skin-tone:":"🚵🏼♀️",":woman-mountain-biking-medium-skin-tone:":"🚵🏽♀️",":woman-mountain-biking-medium-dark-skin-tone:":"🚵🏾♀️",":woman-mountain-biking-dark-skin-tone:":"🚵🏿♀️",":person-cartwheeling:":"🤸",":person-cartwheeling-light-skin-tone:":"🤸🏻",":person-cartwheeling-medium-light-skin-tone:":"🤸🏼",":person-cartwheeling-medium-skin-tone:":"🤸🏽",":person-cartwheeling-medium-dark-skin-tone:":"🤸🏾",":person-cartwheeling-dark-skin-tone:":"🤸🏿",":man-cartwheeling:":"🤸♂️",":man-cartwheeling-light-skin-tone:":"🤸🏻♂️",":man-cartwheeling-medium-light-skin-tone:":"🤸🏼♂️",":man-cartwheeling-medium-skin-tone:":"🤸🏽♂️",":man-cartwheeling-medium-dark-skin-tone:":"🤸🏾♂️",":man-cartwheeling-dark-skin-tone:":"🤸🏿♂️",":woman-cartwheeling:":"🤸♀️",":woman-cartwheeling-light-skin-tone:":"🤸🏻♀️",":woman-cartwheeling-medium-light-skin-tone:":"🤸🏼♀️",":woman-cartwheeling-medium-skin-tone:":"🤸🏽♀️",":woman-cartwheeling-medium-dark-skin-tone:":"🤸🏾♀️",":woman-cartwheeling-dark-skin-tone:":"🤸🏿♀️",":people-wrestling:":"🤼",":men-wrestling:":"🤼♂️",":women-wrestling:":"🤼♀️",":person-playing-water-polo:":"🤽",":person-playing-water-polo-light-skin-tone:":"🤽🏻",":person-playing-water-polo-medium-light-skin-tone:":"🤽🏼",":person-playing-water-polo-medium-skin-tone:":"🤽🏽",":person-playing-water-polo-medium-dark-skin-tone:":"🤽🏾",":person-playing-water-polo-dark-skin-tone:":"🤽🏿",":man-playing-water-polo:":"🤽♂️",":man-playing-water-polo-light-skin-tone:":"🤽🏻♂️",":man-playing-water-polo-medium-light-skin-tone:":"🤽🏼♂️",":man-playing-water-polo-medium-skin-tone:":"🤽🏽♂️",":man-playing-water-polo-medium-dark-skin-tone:":"🤽🏾♂️",":man-playing-water-polo-dark-skin-tone:":"🤽🏿♂️",":woman-playing-water-polo:":"🤽♀️",":woman-playing-water-polo-light-skin-tone:":"🤽🏻♀️",":woman-playing-water-polo-medium-light-skin-tone:":"🤽🏼♀️",":woman-playing-water-polo-medium-skin-tone:":"🤽🏽♀️",":woman-playing-water-polo-medium-dark-skin-tone:":"🤽🏾♀️",":woman-playing-water-polo-dark-skin-tone:":"🤽🏿♀️",":person-playing-handball:":"🤾",":person-playing-handball-light-skin-tone:":"🤾🏻",":person-playing-handball-medium-light-skin-tone:":"🤾🏼",":person-playing-handball-medium-skin-tone:":"🤾🏽",":person-playing-handball-medium-dark-skin-tone:":"🤾🏾",":person-playing-handball-dark-skin-tone:":"🤾🏿",":man-playing-handball:":"🤾♂️",":man-playing-handball-light-skin-tone:":"🤾🏻♂️",":man-playing-handball-medium-light-skin-tone:":"🤾🏼♂️",":man-playing-handball-medium-skin-tone:":"🤾🏽♂️",":man-playing-handball-medium-dark-skin-tone:":"🤾🏾♂️",":man-playing-handball-dark-skin-tone:":"🤾🏿♂️",":woman-playing-handball:":"🤾♀️",":woman-playing-handball-light-skin-tone:":"🤾🏻♀️",":woman-playing-handball-medium-light-skin-tone:":"🤾🏼♀️",":woman-playing-handball-medium-skin-tone:":"🤾🏽♀️",":woman-playing-handball-medium-dark-skin-tone:":"🤾🏾♀️",":woman-playing-handball-dark-skin-tone:":"🤾🏿♀️",":person-juggling:":"🤹",":person-juggling-light-skin-tone:":"🤹🏻",":person-juggling-medium-light-skin-tone:":"🤹🏼",":person-juggling-medium-skin-tone:":"🤹🏽",":person-juggling-medium-dark-skin-tone:":"🤹🏾",":person-juggling-dark-skin-tone:":"🤹🏿",":man-juggling:":"🤹♂️",":man-juggling-light-skin-tone:":"🤹🏻♂️",":man-juggling-medium-light-skin-tone:":"🤹🏼♂️",":man-juggling-medium-skin-tone:":"🤹🏽♂️",":man-juggling-medium-dark-skin-tone:":"🤹🏾♂️",":man-juggling-dark-skin-tone:":"🤹🏿♂️",":woman-juggling:":"🤹♀️",":woman-juggling-light-skin-tone:":"🤹🏻♀️",":woman-juggling-medium-light-skin-tone:":"🤹🏼♀️",":woman-juggling-medium-skin-tone:":"🤹🏽♀️",":woman-juggling-medium-dark-skin-tone:":"🤹🏾♀️",":woman-juggling-dark-skin-tone:":"🤹🏿♀️",":person-in-lotus-position:":"🧘",":person-in-lotus-position-light-skin-tone:":"🧘🏻",":person-in-lotus-position-medium-light-skin-tone:":"🧘🏼",":person-in-lotus-position-medium-skin-tone:":"🧘🏽",":person-in-lotus-position-medium-dark-skin-tone:":"🧘🏾",":person-in-lotus-position-dark-skin-tone:":"🧘🏿",":man-in-lotus-position:":"🧘♂️",":man-in-lotus-position-light-skin-tone:":"🧘🏻♂️",":man-in-lotus-position-medium-light-skin-tone:":"🧘🏼♂️",":man-in-lotus-position-medium-skin-tone:":"🧘🏽♂️",":man-in-lotus-position-medium-dark-skin-tone:":"🧘🏾♂️",":man-in-lotus-position-dark-skin-tone:":"🧘🏿♂️",":woman-in-lotus-position:":"🧘♀️",":woman-in-lotus-position-light-skin-tone:":"🧘🏻♀️",":woman-in-lotus-position-medium-light-skin-tone:":"🧘🏼♀️",":woman-in-lotus-position-medium-skin-tone:":"🧘🏽♀️",":woman-in-lotus-position-medium-dark-skin-tone:":"🧘🏾♀️",":woman-in-lotus-position-dark-skin-tone:":"🧘🏿♀️",":person-taking-bath:":"🛀",":person-taking-bath-light-skin-tone:":"🛀🏻",":person-taking-bath-medium-light-skin-tone:":"🛀🏼",":person-taking-bath-medium-skin-tone:":"🛀🏽",":person-taking-bath-medium-dark-skin-tone:":"🛀🏾",":person-taking-bath-dark-skin-tone:":"🛀🏿",":person-in-bed:":"🛌",":person-in-bed-light-skin-tone:":"🛌🏻",":person-in-bed-medium-light-skin-tone:":"🛌🏼",":person-in-bed-medium-skin-tone:":"🛌🏽",":person-in-bed-medium-dark-skin-tone:":"🛌🏾",":person-in-bed-dark-skin-tone:":"🛌🏿",":people-holding-hands:":"🧑🤝🧑",":people-holding-hands-light-skin-tone:":"🧑🏻🤝🧑🏻",":people-holding-hands-medium-light-skin-tone-light-skin-tone:":"🧑🏼🤝🧑🏻",":people-holding-hands-medium-light-skin-tone:":"🧑🏼🤝🧑🏼",":people-holding-hands-medium-skin-tone-light-skin-tone:":"🧑🏽🤝🧑🏻",":people-holding-hands-medium-skin-tone-medium-light-skin-tone:":"🧑🏽🤝🧑🏼",":people-holding-hands-medium-skin-tone:":"🧑🏽🤝🧑🏽",":people-holding-hands-medium-dark-skin-tone-light-skin-tone:":"🧑🏾🤝🧑🏻",":people-holding-hands-medium-dark-skin-tone-medium-light-skin-tone:":"🧑🏾🤝🧑🏼",":people-holding-hands-medium-dark-skin-tone-medium-skin-tone:":"🧑🏾🤝🧑🏽",":people-holding-hands-medium-dark-skin-tone:":"🧑🏾🤝🧑🏾",":people-holding-hands-dark-skin-tone-light-skin-tone:":"🧑🏿🤝🧑🏻",":people-holding-hands-dark-skin-tone-medium-light-skin-tone:":"🧑🏿🤝🧑🏼",":people-holding-hands-dark-skin-tone-medium-skin-tone:":"🧑🏿🤝🧑🏽",":people-holding-hands-dark-skin-tone-medium-dark-skin-tone:":"🧑🏿🤝🧑🏾",":people-holding-hands-dark-skin-tone:":"🧑🏿🤝🧑🏿",":women-holding-hands:":"👭",":women-holding-hands-light-skin-tone:":"👭🏻",":women-holding-hands-medium-light-skin-tone-light-skin-tone:":"👩🏼🤝👩🏻",":women-holding-hands-medium-light-skin-tone:":"👭🏼",":women-holding-hands-medium-skin-tone-light-skin-tone:":"👩🏽🤝👩🏻",":women-holding-hands-medium-skin-tone-medium-light-skin-tone:":"👩🏽🤝👩🏼",":women-holding-hands-medium-skin-tone:":"👭🏽",":women-holding-hands-medium-dark-skin-tone-light-skin-tone:":"👩🏾🤝👩🏻",":women-holding-hands-medium-dark-skin-tone-medium-light-skin-tone:":"👩🏾🤝👩🏼",":women-holding-hands-medium-dark-skin-tone-medium-skin-tone:":"👩🏾🤝👩🏽",":women-holding-hands-medium-dark-skin-tone:":"👭🏾",":women-holding-hands-dark-skin-tone-light-skin-tone:":"👩🏿🤝👩🏻",":women-holding-hands-dark-skin-tone-medium-light-skin-tone:":"👩🏿🤝👩🏼",":women-holding-hands-dark-skin-tone-medium-skin-tone:":"👩🏿🤝👩🏽",":women-holding-hands-dark-skin-tone-medium-dark-skin-tone:":"👩🏿🤝👩🏾",":women-holding-hands-dark-skin-tone:":"👭🏿",":woman-and-man-holding-hands:":"👫",":woman-and-man-holding-hands-light-skin-tone:":"👫🏻",":woman-and-man-holding-hands-light-skin-tone-medium-light-skin-tone:":"👩🏻🤝👨🏼",":woman-and-man-holding-hands-light-skin-tone-medium-skin-tone:":"👩🏻🤝👨🏽",":woman-and-man-holding-hands-light-skin-tone-medium-dark-skin-tone:":"👩🏻🤝👨🏾",":woman-and-man-holding-hands-light-skin-tone-dark-skin-tone:":"👩🏻🤝👨🏿",":woman-and-man-holding-hands-medium-light-skin-tone-light-skin-tone:":"👩🏼🤝👨🏻",":woman-and-man-holding-hands-medium-light-skin-tone:":"👫🏼",":woman-and-man-holding-hands-medium-light-skin-tone-medium-skin-tone:":"👩🏼🤝👨🏽",":woman-and-man-holding-hands-medium-light-skin-tone-medium-dark-skin-tone:":"👩🏼🤝👨🏾",":woman-and-man-holding-hands-medium-light-skin-tone-dark-skin-tone:":"👩🏼🤝👨🏿",":woman-and-man-holding-hands-medium-skin-tone-light-skin-tone:":"👩🏽🤝👨🏻",":woman-and-man-holding-hands-medium-skin-tone-medium-light-skin-tone:":"👩🏽🤝👨🏼",":woman-and-man-holding-hands-medium-skin-tone:":"👫🏽",":woman-and-man-holding-hands-medium-skin-tone-medium-dark-skin-tone:":"👩🏽🤝👨🏾",":woman-and-man-holding-hands-medium-skin-tone-dark-skin-tone:":"👩🏽🤝👨🏿",":woman-and-man-holding-hands-medium-dark-skin-tone-light-skin-tone:":"👩🏾🤝👨🏻",":woman-and-man-holding-hands-medium-dark-skin-tone-medium-light-skin-tone:":"👩🏾🤝👨🏼",":woman-and-man-holding-hands-medium-dark-skin-tone-medium-skin-tone:":"👩🏾🤝👨🏽",":woman-and-man-holding-hands-medium-dark-skin-tone:":"👫🏾",":woman-and-man-holding-hands-medium-dark-skin-tone-dark-skin-tone:":"👩🏾🤝👨🏿",":woman-and-man-holding-hands-dark-skin-tone-light-skin-tone:":"👩🏿🤝👨🏻",":woman-and-man-holding-hands-dark-skin-tone-medium-light-skin-tone:":"👩🏿🤝👨🏼",":woman-and-man-holding-hands-dark-skin-tone-medium-skin-tone:":"👩🏿🤝👨🏽",":woman-and-man-holding-hands-dark-skin-tone-medium-dark-skin-tone:":"👩🏿🤝👨🏾",":woman-and-man-holding-hands-dark-skin-tone:":"👫🏿",":men-holding-hands:":"👬",":men-holding-hands-light-skin-tone:":"👬🏻",":men-holding-hands-medium-light-skin-tone-light-skin-tone:":"👨🏼🤝👨🏻",":men-holding-hands-medium-light-skin-tone:":"👬🏼",":men-holding-hands-medium-skin-tone-light-skin-tone:":"👨🏽🤝👨🏻",":men-holding-hands-medium-skin-tone-medium-light-skin-tone:":"👨🏽🤝👨🏼",":men-holding-hands-medium-skin-tone:":"👬🏽",":men-holding-hands-medium-dark-skin-tone-light-skin-tone:":"👨🏾🤝👨🏻",":men-holding-hands-medium-dark-skin-tone-medium-light-skin-tone:":"👨🏾🤝👨🏼",":men-holding-hands-medium-dark-skin-tone-medium-skin-tone:":"👨🏾🤝👨🏽",":men-holding-hands-medium-dark-skin-tone:":"👬🏾",":men-holding-hands-dark-skin-tone-light-skin-tone:":"👨🏿🤝👨🏻",":men-holding-hands-dark-skin-tone-medium-light-skin-tone:":"👨🏿🤝👨🏼",":men-holding-hands-dark-skin-tone-medium-skin-tone:":"👨🏿🤝👨🏽",":men-holding-hands-dark-skin-tone-medium-dark-skin-tone:":"👨🏿🤝👨🏾",":men-holding-hands-dark-skin-tone:":"👬🏿",":kiss:":"💏",":kiss-woman-man:":"👩❤️💋👨",":kiss-man-man:":"👨❤️💋👨",":kiss-woman-woman:":"👩❤️💋👩",":couple-with-heart:":"💑",":couple-with-heart-woman-man:":"👩❤️👨",":couple-with-heart-man-man:":"👨❤️👨",":couple-with-heart-woman-woman:":"👩❤️👩",":family:":"👪",":family-man-woman-boy:":"👨👩👦",":family-man-woman-girl:":"👨👩👧",":family-man-woman-girl-boy:":"👨👩👧👦",":family-man-woman-boy-boy:":"👨👩👦👦",":family-man-woman-girl-girl:":"👨👩👧👧",":family-man-man-boy:":"👨👨👦",":family-man-man-girl:":"👨👨👧",":family-man-man-girl-boy:":"👨👨👧👦",":family-man-man-boy-boy:":"👨👨👦👦",":family-man-man-girl-girl:":"👨👨👧👧",":family-woman-woman-boy:":"👩👩👦",":family-woman-woman-girl:":"👩👩👧",":family-woman-woman-girl-boy:":"👩👩👧👦",":family-woman-woman-boy-boy:":"👩👩👦👦",":family-woman-woman-girl-girl:":"👩👩👧👧",":family-man-boy:":"👨👦",":family-man-boy-boy:":"👨👦👦",":family-man-girl:":"👨👧",":family-man-girl-boy:":"👨👧👦",":family-man-girl-girl:":"👨👧👧",":family-woman-boy:":"👩👦",":family-woman-boy-boy:":"👩👦👦",":family-woman-girl:":"👩👧",":family-woman-girl-boy:":"👩👧👦",":family-woman-girl-girl:":"👩👧👧",":speaking-head:":"🗣️",":bust-in-silhouette:":"👤",":busts-in-silhouette:":"👥",":footprints:":"👣",":monkey-face:":"🐵",":monkey:":"🐒",":gorilla:":"🦍",":orangutan:":"🦧",":dog-face:":"🐶",":dog:":"🐕",":guide-dog:":"🦮",":service-dog:":"🐕🦺",":poodle:":"🐩",":wolf:":"🐺",":fox:":"🦊",":raccoon:":"🦝",":cat-face:":"🐱",":cat:":"🐈",":lion:":"🦁",":tiger-face:":"🐯",":tiger:":"🐅",":leopard:":"🐆",":horse-face:":"🐴",":horse:":"🐎",":unicorn:":"🦄",":zebra:":"🦓",":deer:":"🦌",":cow-face:":"🐮",":ox:":"🐂",":water-buffalo:":"🐃",":cow:":"🐄",":pig-face:":"🐷",":pig:":"🐖",":boar:":"🐗",":pig-nose:":"🐽",":ram:":"🐏",":ewe:":"🐑",":goat:":"🐐",":camel:":"🐪",":two-hump-camel:":"🐫",":llama:":"🦙",":giraffe:":"🦒",":elephant:":"🐘",":rhinoceros:":"🦏",":hippopotamus:":"🦛",":mouse-face:":"🐭",":mouse:":"🐁",":rat:":"🐀",":hamster:":"🐹",":rabbit-face:":"🐰",":rabbit:":"🐇",":chipmunk:":"🐿️",":hedgehog:":"🦔",":bat:":"🦇",":bear:":"🐻",":koala:":"🐨",":panda:":"🐼",":sloth:":"🦥",":otter:":"🦦",":skunk:":"🦨",":kangaroo:":"🦘",":badger:":"🦡",":paw-prints:":"🐾",":turkey:":"🦃",":chicken:":"🐔",":rooster:":"🐓",":hatching-chick:":"🐣",":baby-chick:":"🐤",":front-facing-baby-chick:":"🐥",":bird:":"🐦",":penguin:":"🐧",":dove:":"🕊️",":eagle:":"🦅",":duck:":"🦆",":swan:":"🦢",":owl:":"🦉",":flamingo:":"🦩",":peacock:":"🦚",":parrot:":"🦜",":frog:":"🐸",":crocodile:":"🐊",":turtle:":"🐢",":lizard:":"🦎",":snake:":"🐍",":dragon-face:":"🐲",":dragon:":"🐉",":sauropod:":"🦕",":t-rex:":"🦖",":spouting-whale:":"🐳",":whale:":"🐋",":dolphin:":"🐬",":fish:":"🐟",":tropical-fish:":"🐠",":blowfish:":"🐡",":shark:":"🦈",":octopus:":"🐙",":spiral-shell:":"🐚",":snail:":"🐌",":butterfly:":"🦋",":bug:":"🐛",":ant:":"🐜",":honeybee:":"🐝",":lady-beetle:":"🐞",":cricket:":"🦗",":spider:":"🕷️",":spider-web:":"🕸️",":scorpion:":"🦂",":mosquito:":"🦟",":microbe:":"🦠",":bouquet:":"💐",":cherry-blossom:":"🌸",":white-flower:":"💮",":rosette:":"🏵️",":rose:":"🌹",":wilted-flower:":"🥀",":hibiscus:":"🌺",":sunflower:":"🌻",":blossom:":"🌼",":tulip:":"🌷",":seedling:":"🌱",":evergreen-tree:":"🌲",":deciduous-tree:":"🌳",":palm-tree:":"🌴",":cactus:":"🌵",":sheaf-of-rice:":"🌾",":herb:":"🌿",":shamrock:":"☘️",":four-leaf-clover:":"🍀",":maple-leaf:":"🍁",":fallen-leaf:":"🍂",":leaf-fluttering-in-wind:":"🍃",":grapes:":"🍇",":melon:":"🍈",":watermelon:":"🍉",":tangerine:":"🍊",":lemon:":"🍋",":banana:":"🍌",":pineapple:":"🍍",":mango:":"🥭",":red-apple:":"🍎",":green-apple:":"🍏",":pear:":"🍐",":peach:":"🍑",":cherries:":"🍒",":strawberry:":"🍓",":kiwi-fruit:":"🥝",":tomato:":"🍅",":coconut:":"🥥",":avocado:":"🥑",":eggplant:":"🍆",":potato:":"🥔",":carrot:":"🥕",":ear-of-corn:":"🌽",":hot-pepper:":"🌶️",":cucumber:":"🥒",":leafy-green:":"🥬",":broccoli:":"🥦",":garlic:":"🧄",":onion:":"🧅",":mushroom:":"🍄",":peanuts:":"🥜",":chestnut:":"🌰",":bread:":"🍞",":croissant:":"🥐",":baguette-bread:":"🥖",":pretzel:":"🥨",":bagel:":"🥯",":pancakes:":"🥞",":waffle:":"🧇",":cheese-wedge:":"🧀",":meat-on-bone:":"🍖",":poultry-leg:":"🍗",":cut-of-meat:":"🥩",":bacon:":"🥓",":hamburger:":"🍔",":french-fries:":"🍟",":pizza:":"🍕",":hot-dog:":"🌭",":sandwich:":"🥪",":taco:":"🌮",":burrito:":"🌯",":stuffed-flatbread:":"🥙",":falafel:":"🧆",":egg:":"🥚",":cooking:":"🍳",":shallow-pan-of-food:":"🥘",":pot-of-food:":"🍲",":bowl-with-spoon:":"🥣",":green-salad:":"🥗",":popcorn:":"🍿",":butter:":"🧈",":salt:":"🧂",":canned-food:":"🥫",":bento-box:":"🍱",":rice-cracker:":"🍘",":rice-ball:":"🍙",":cooked-rice:":"🍚",":curry-rice:":"🍛",":steaming-bowl:":"🍜",":spaghetti:":"🍝",":roasted-sweet-potato:":"🍠",":oden:":"🍢",":sushi:":"🍣",":fried-shrimp:":"🍤",":fish-cake-with-swirl:":"🍥",":moon-cake:":"🥮",":dango:":"🍡",":dumpling:":"🥟",":fortune-cookie:":"🥠",":takeout-box:":"🥡",":crab:":"🦀",":lobster:":"🦞",":shrimp:":"🦐",":squid:":"🦑",":oyster:":"🦪",":soft-ice-cream:":"🍦",":shaved-ice:":"🍧",":ice-cream:":"🍨",":doughnut:":"🍩",":cookie:":"🍪",":birthday-cake:":"🎂",":shortcake:":"🍰",":cupcake:":"🧁",":pie:":"🥧",":chocolate-bar:":"🍫",":candy:":"🍬",":lollipop:":"🍭",":custard:":"🍮",":honey-pot:":"🍯",":baby-bottle:":"🍼",":glass-of-milk:":"🥛",":hot-beverage:":"☕",":teacup-without-handle:":"🍵",":sake:":"🍶",":bottle-with-popping-cork:":"🍾",":wine-glass:":"🍷",":cocktail-glass:":"🍸",":tropical-drink:":"🍹",":beer-mug:":"🍺",":clinking-beer-mugs:":"🍻",":clinking-glasses:":"🥂",":tumbler-glass:":"🥃",":cup-with-straw:":"🥤",":beverage-box:":"🧃",":mate:":"🧉",":ice-cube:":"🧊",":chopsticks:":"🥢",":fork-and-knife-with-plate:":"🍽️",":fork-and-knife:":"🍴",":spoon:":"🥄",":kitchen-knife:":"🔪",":amphora:":"🏺",":globe-showing-europe-africa:":"🌍",":globe-showing-americas:":"🌎",":globe-showing-asia-australia:":"🌏",":globe-with-meridians:":"🌐",":world-map:":"🗺️",":map-of-japan:":"🗾",":compass:":"🧭",":snow-capped-mountain:":"🏔️",":mountain:":"⛰️",":volcano:":"🌋",":mount-fuji:":"🗻",":camping:":"🏕️",":beach-with-umbrella:":"🏖️",":desert:":"🏜️",":desert-island:":"🏝️",":national-park:":"🏞️",":stadium:":"🏟️",":classical-building:":"🏛️",":building-construction:":"🏗️",":brick:":"🧱",":houses:":"🏘️",":derelict-house:":"🏚️",":house:":"🏠",":house-with-garden:":"🏡",":office-building:":"🏢",":japanese-post-office:":"🏣",":post-office:":"🏤",":hospital:":"🏥",":bank:":"🏦",":hotel:":"🏨",":love-hotel:":"🏩",":convenience-store:":"🏪",":school:":"🏫",":department-store:":"🏬",":factory:":"🏭",":japanese-castle:":"🏯",":castle:":"🏰",":wedding:":"💒",":tokyo-tower:":"🗼",":statue-of-liberty:":"🗽",":church:":"⛪",":mosque:":"🕌",":hindu-temple:":"🛕",":synagogue:":"🕍",":shinto-shrine:":"⛩️",":kaaba:":"🕋",":fountain:":"⛲",":tent:":"⛺",":foggy:":"🌁",":night-with-stars:":"🌃",":cityscape:":"🏙️",":sunrise-over-mountains:":"🌄",":sunrise:":"🌅",":cityscape-at-dusk:":"🌆",":sunset:":"🌇",":bridge-at-night:":"🌉",":hot-springs:":"♨️",":carousel-horse:":"🎠",":ferris-wheel:":"🎡",":roller-coaster:":"🎢",":barber-pole:":"💈",":circus-tent:":"🎪",":locomotive:":"🚂",":railway-car:":"🚃",":high-speed-train:":"🚄",":bullet-train:":"🚅",":train:":"🚆",":metro:":"🚇",":light-rail:":"🚈",":station:":"🚉",":tram:":"🚊",":monorail:":"🚝",":mountain-railway:":"🚞",":tram-car:":"🚋",":bus:":"🚌",":oncoming-bus:":"🚍",":trolleybus:":"🚎",":minibus:":"🚐",":ambulance:":"🚑",":fire-engine:":"🚒",":police-car:":"🚓",":oncoming-police-car:":"🚔",":taxi:":"🚕",":oncoming-taxi:":"🚖",":automobile:":"🚗",":oncoming-automobile:":"🚘",":sport-utility-vehicle:":"🚙",":delivery-truck:":"🚚",":articulated-lorry:":"🚛",":tractor:":"🚜",":racing-car:":"🏎️",":motorcycle:":"🏍️",":motor-scooter:":"🛵",":manual-wheelchair:":"🦽",":motorized-wheelchair:":"🦼",":auto-rickshaw:":"🛺",":bicycle:":"🚲",":kick-scooter:":"🛴",":skateboard:":"🛹",":bus-stop:":"🚏",":motorway:":"🛣️",":railway-track:":"🛤️",":oil-drum:":"🛢️",":fuel-pump:":"⛽",":police-car-light:":"🚨",":horizontal-traffic-light:":"🚥",":vertical-traffic-light:":"🚦",":stop-sign:":"🛑",":construction:":"🚧",":anchor:":"⚓",":sailboat:":"⛵",":canoe:":"🛶",":speedboat:":"🚤",":passenger-ship:":"🛳️",":ferry:":"⛴️",":motor-boat:":"🛥️",":ship:":"🚢",":airplane:":"✈️",":small-airplane:":"🛩️",":airplane-departure:":"🛫",":airplane-arrival:":"🛬",":parachute:":"🪂",":seat:":"💺",":helicopter:":"🚁",":suspension-railway:":"🚟",":mountain-cableway:":"🚠",":aerial-tramway:":"🚡",":satellite:":"🛰️",":rocket:":"🚀",":flying-saucer:":"🛸",":bellhop-bell:":"🛎️",":luggage:":"🧳",":hourglass-done:":"⌛",":hourglass-not-done:":"⏳",":watch:":"⌚",":alarm-clock:":"⏰",":stopwatch:":"⏱️",":timer-clock:":"⏲️",":mantelpiece-clock:":"🕰️",":twelve-oclock:":"🕛",":twelve-thirty:":"🕧",":one-oclock:":"🕐",":one-thirty:":"🕜",":two-oclock:":"🕑",":two-thirty:":"🕝",":three-oclock:":"🕒",":three-thirty:":"🕞",":four-oclock:":"🕓",":four-thirty:":"🕟",":five-oclock:":"🕔",":five-thirty:":"🕠",":six-oclock:":"🕕",":six-thirty:":"🕡",":seven-oclock:":"🕖",":seven-thirty:":"🕢",":eight-oclock:":"🕗",":eight-thirty:":"🕣",":nine-oclock:":"🕘",":nine-thirty:":"🕤",":ten-oclock:":"🕙",":ten-thirty:":"🕥",":eleven-oclock:":"🕚",":eleven-thirty:":"🕦",":new-moon:":"🌑",":waxing-crescent-moon:":"🌒",":first-quarter-moon:":"🌓",":waxing-gibbous-moon:":"🌔",":full-moon:":"🌕",":waning-gibbous-moon:":"🌖",":last-quarter-moon:":"🌗",":waning-crescent-moon:":"🌘",":crescent-moon:":"🌙",":new-moon-face:":"🌚",":first-quarter-moon-face:":"🌛",":last-quarter-moon-face:":"🌜",":thermometer:":"🌡️",":sun:":"☀️",":full-moon-face:":"🌝",":sun-with-face:":"🌞",":ringed-planet:":"🪐",":star:":"⭐",":glowing-star:":"🌟",":shooting-star:":"🌠",":milky-way:":"🌌",":cloud:":"☁️",":sun-behind-cloud:":"⛅",":cloud-with-lightning-and-rain:":"⛈️",":sun-behind-small-cloud:":"🌤️",":sun-behind-large-cloud:":"🌥️",":sun-behind-rain-cloud:":"🌦️",":cloud-with-rain:":"🌧️",":cloud-with-snow:":"🌨️",":cloud-with-lightning:":"🌩️",":tornado:":"🌪️",":fog:":"🌫️",":wind-face:":"🌬️",":cyclone:":"🌀",":rainbow:":"🌈",":closed-umbrella:":"🌂",":umbrella:":"☂️",":umbrella-with-rain-drops:":"☔",":umbrella-on-ground:":"⛱️",":high-voltage:":"⚡",":snowflake:":"❄️",":snowman:":"☃️",":snowman-without-snow:":"⛄",":comet:":"☄️",":fire:":"🔥",":droplet:":"💧",":water-wave:":"🌊",":jack-o-lantern:":"🎃",":christmas-tree:":"🎄",":fireworks:":"🎆",":sparkler:":"🎇",":firecracker:":"🧨",":sparkles:":"✨",":balloon:":"🎈",":party-popper:":"🎉",":confetti-ball:":"🎊",":tanabata-tree:":"🎋",":pine-decoration:":"🎍",":japanese-dolls:":"🎎",":carp-streamer:":"🎏",":wind-chime:":"🎐",":moon-viewing-ceremony:":"🎑",":red-envelope:":"🧧",":ribbon:":"🎀",":wrapped-gift:":"🎁",":reminder-ribbon:":"🎗️",":admission-tickets:":"🎟️",":ticket:":"🎫",":military-medal:":"🎖️",":trophy:":"🏆",":sports-medal:":"🏅",":1st-place-medal:":"🥇",":2nd-place-medal:":"🥈",":3rd-place-medal:":"🥉",":soccer-ball:":"⚽",":baseball:":"⚾",":softball:":"🥎",":basketball:":"🏀",":volleyball:":"🏐",":american-football:":"🏈",":rugby-football:":"🏉",":tennis:":"🎾",":flying-disc:":"🥏",":bowling:":"🎳",":cricket-game:":"🏏",":field-hockey:":"🏑",":ice-hockey:":"🏒",":lacrosse:":"🥍",":ping-pong:":"🏓",":badminton:":"🏸",":boxing-glove:":"🥊",":martial-arts-uniform:":"🥋",":goal-net:":"🥅",":flag-in-hole:":"⛳",":ice-skate:":"⛸️",":fishing-pole:":"🎣",":diving-mask:":"🤿",":running-shirt:":"🎽",":skis:":"🎿",":sled:":"🛷",":curling-stone:":"🥌",":direct-hit:":"🎯",":yo-yo:":"🪀",":kite:":"🪁",":pool-8-ball:":"🎱",":crystal-ball:":"🔮",":nazar-amulet:":"🧿",":video-game:":"🎮",":joystick:":"🕹️",":slot-machine:":"🎰",":game-die:":"🎲",":puzzle-piece:":"🧩",":teddy-bear:":"🧸",":spade-suit:":"♠️",":heart-suit:":"♥️",":diamond-suit:":"♦️",":club-suit:":"♣️",":chess-pawn:":"♟️",":joker:":"🃏",":mahjong-red-dragon:":"🀄",":flower-playing-cards:":"🎴",":performing-arts:":"🎭",":framed-picture:":"🖼️",":artist-palette:":"🎨",":thread:":"🧵",":yarn:":"🧶",":glasses:":"👓",":sunglasses:":"🕶️",":goggles:":"🥽",":lab-coat:":"🥼",":safety-vest:":"🦺",":necktie:":"👔",":t-shirt:":"👕",":jeans:":"👖",":scarf:":"🧣",":gloves:":"🧤",":coat:":"🧥",":socks:":"🧦",":dress:":"👗",":kimono:":"👘",":sari:":"🥻",":one-piece-swimsuit:":"🩱",":swim-brief:":"🩲",":shorts:":"🩳",":bikini:":"👙",":womans-clothes:":"👚",":purse:":"👛",":handbag:":"👜",":clutch-bag:":"👝",":shopping-bags:":"🛍️",":backpack:":"🎒",":mans-shoe:":"👞",":running-shoe:":"👟",":hiking-boot:":"🥾",":flat-shoe:":"🥿",":high-heeled-shoe:":"👠",":womans-sandal:":"👡",":ballet-shoes:":"🩰",":womans-boot:":"👢",":crown:":"👑",":womans-hat:":"👒",":top-hat:":"🎩",":graduation-cap:":"🎓",":billed-cap:":"🧢",":rescue-workers-helmet:":"⛑️",":prayer-beads:":"📿",":lipstick:":"💄",":ring:":"💍",":gem-stone:":"💎",":muted-speaker:":"🔇",":speaker-low-volume:":"🔈",":speaker-medium-volume:":"🔉",":speaker-high-volume:":"🔊",":loudspeaker:":"📢",":megaphone:":"📣",":postal-horn:":"📯",":bell:":"🔔",":bell-with-slash:":"🔕",":musical-score:":"🎼",":musical-note:":"🎵",":musical-notes:":"🎶",":studio-microphone:":"🎙️",":level-slider:":"🎚️",":control-knobs:":"🎛️",":microphone:":"🎤",":headphone:":"🎧",":radio:":"📻",":saxophone:":"🎷",":guitar:":"🎸",":musical-keyboard:":"🎹",":trumpet:":"🎺",":violin:":"🎻",":banjo:":"🪕",":drum:":"🥁",":mobile-phone:":"📱",":mobile-phone-with-arrow:":"📲",":telephone:":"☎️",":telephone-receiver:":"📞",":pager:":"📟",":fax-machine:":"📠",":battery:":"🔋",":electric-plug:":"🔌",":laptop-computer:":"💻",":desktop-computer:":"🖥️",":printer:":"🖨️",":keyboard:":"⌨️",":computer-mouse:":"🖱️",":trackball:":"🖲️",":computer-disk:":"💽",":floppy-disk:":"💾",":optical-disk:":"💿",":dvd:":"📀",":abacus:":"🧮",":movie-camera:":"🎥",":film-frames:":"🎞️",":film-projector:":"📽️",":clapper-board:":"🎬",":television:":"📺",":camera:":"📷",":camera-with-flash:":"📸",":video-camera:":"📹",":videocassette:":"📼",":magnifying-glass-tilted-left:":"🔍",":magnifying-glass-tilted-right:":"🔎",":candle:":"🕯️",":light-bulb:":"💡",":flashlight:":"🔦",":red-paper-lantern:":"🏮",":diya-lamp:":"🪔",":notebook-with-decorative-cover:":"📔",":closed-book:":"📕",":open-book:":"📖",":green-book:":"📗",":blue-book:":"📘",":orange-book:":"📙",":books:":"📚",":notebook:":"📓",":ledger:":"📒",":page-with-curl:":"📃",":scroll:":"📜",":page-facing-up:":"📄",":newspaper:":"📰",":rolled-up-newspaper:":"🗞️",":bookmark-tabs:":"📑",":bookmark:":"🔖",":label:":"🏷️",":money-bag:":"💰",":yen-banknote:":"💴",":dollar-banknote:":"💵",":euro-banknote:":"💶",":pound-banknote:":"💷",":money-with-wings:":"💸",":credit-card:":"💳",":receipt:":"🧾",":chart-increasing-with-yen:":"💹",":currency-exchange:":"💱",":heavy-dollar-sign:":"💲",":envelope:":"✉️",":e-mail:":"📧",":incoming-envelope:":"📨",":envelope-with-arrow:":"📩",":outbox-tray:":"📤",":inbox-tray:":"📥",":package:":"📦",":closed-mailbox-with-raised-flag:":"📫",":closed-mailbox-with-lowered-flag:":"📪",":open-mailbox-with-raised-flag:":"📬",":open-mailbox-with-lowered-flag:":"📭",":postbox:":"📮",":ballot-box-with-ballot:":"🗳️",":pencil:":"✏️",":black-nib:":"✒️",":fountain-pen:":"🖋️",":pen:":"🖊️",":paintbrush:":"🖌️",":crayon:":"🖍️",":memo:":"📝",":briefcase:":"💼",":file-folder:":"📁",":open-file-folder:":"📂",":card-index-dividers:":"🗂️",":calendar:":"📅",":tear-off-calendar:":"📆",":spiral-notepad:":"🗒️",":spiral-calendar:":"🗓️",":card-index:":"📇",":chart-increasing:":"📈",":chart-decreasing:":"📉",":bar-chart:":"📊",":clipboard:":"📋",":pushpin:":"📌",":round-pushpin:":"📍",":paperclip:":"📎",":linked-paperclips:":"🖇️",":straight-ruler:":"📏",":triangular-ruler:":"📐",":scissors:":"✂️",":card-file-box:":"🗃️",":file-cabinet:":"🗄️",":wastebasket:":"🗑️",":locked:":"🔒",":unlocked:":"🔓",":locked-with-pen:":"🔏",":locked-with-key:":"🔐",":key:":"🔑",":old-key:":"🗝️",":hammer:":"🔨",":axe:":"🪓",":pick:":"⛏️",":hammer-and-pick:":"⚒️",":hammer-and-wrench:":"🛠️",":dagger:":"🗡️",":crossed-swords:":"⚔️",":pistol:":"🔫",":bow-and-arrow:":"🏹",":shield:":"🛡️",":wrench:":"🔧",":nut-and-bolt:":"🔩",":gear:":"⚙️",":clamp:":"🗜️",":balance-scale:":"⚖️",":probing-cane:":"🦯",":link:":"🔗",":chains:":"⛓️",":toolbox:":"🧰",":magnet:":"🧲",":alembic:":"⚗️",":test-tube:":"🧪",":petri-dish:":"🧫",":dna:":"🧬",":microscope:":"🔬",":telescope:":"🔭",":satellite-antenna:":"📡",":syringe:":"💉",":drop-of-blood:":"🩸",":pill:":"💊",":adhesive-bandage:":"🩹",":stethoscope:":"🩺",":door:":"🚪",":bed:":"🛏️",":couch-and-lamp:":"🛋️",":chair:":"🪑",":toilet:":"🚽",":shower:":"🚿",":bathtub:":"🛁",":razor:":"🪒",":lotion-bottle:":"🧴",":safety-pin:":"🧷",":broom:":"🧹",":basket:":"🧺",":roll-of-paper:":"🧻",":soap:":"🧼",":sponge:":"🧽",":fire-extinguisher:":"🧯",":shopping-cart:":"🛒",":cigarette:":"🚬",":coffin:":"⚰️",":funeral-urn:":"⚱️",":moai:":"🗿",":atm-sign:":"🏧",":litter-in-bin-sign:":"🚮",":potable-water:":"🚰",":wheelchair-symbol:":"♿",":mens-room:":"🚹",":womens-room:":"🚺",":restroom:":"🚻",":baby-symbol:":"🚼",":water-closet:":"🚾",":passport-control:":"🛂",":customs:":"🛃",":baggage-claim:":"🛄",":left-luggage:":"🛅",":warning:":"⚠️",":children-crossing:":"🚸",":no-entry:":"⛔",":prohibited:":"🚫",":no-bicycles:":"🚳",":no-smoking:":"🚭",":no-littering:":"🚯",":non-potable-water:":"🚱",":no-pedestrians:":"🚷",":no-mobile-phones:":"📵",":no-one-under-eighteen:":"🔞",":radioactive:":"☢️",":biohazard:":"☣️",":up-arrow:":"⬆️",":up-right-arrow:":"↗️",":right-arrow:":"➡️",":down-right-arrow:":"↘️",":down-arrow:":"⬇️",":down-left-arrow:":"↙️",":left-arrow:":"⬅️",":up-left-arrow:":"↖️",":up-down-arrow:":"↕️",":left-right-arrow:":"↔️",":right-arrow-curving-left:":"↩️",":left-arrow-curving-right:":"↪️",":right-arrow-curving-up:":"⤴️",":right-arrow-curving-down:":"⤵️",":clockwise-vertical-arrows:":"🔃",":counterclockwise-arrows-button:":"🔄",":back-arrow:":"🔙",":end-arrow:":"🔚",":on-arrow:":"🔛",":soon-arrow:":"🔜",":top-arrow:":"🔝",":place-of-worship:":"🛐",":atom-symbol:":"⚛️",":om:":"🕉️",":star-of-david:":"✡️",":wheel-of-dharma:":"☸️",":yin-yang:":"☯️",":latin-cross:":"✝️",":orthodox-cross:":"☦️",":star-and-crescent:":"☪️",":peace-symbol:":"☮️",":menorah:":"🕎",":dotted-six-pointed-star:":"🔯",":aries:":"♈",":taurus:":"♉",":gemini:":"♊",":cancer:":"♋",":leo:":"♌",":virgo:":"♍",":libra:":"♎",":scorpio:":"♏",":sagittarius:":"♐",":capricorn:":"♑",":aquarius:":"♒",":pisces:":"♓",":ophiuchus:":"⛎",":shuffle-tracks-button:":"🔀",":repeat-button:":"🔁",":repeat-single-button:":"🔂",":play-button:":"▶️",":fast-forward-button:":"⏩",":next-track-button:":"⏭️",":play-or-pause-button:":"⏯️",":reverse-button:":"◀️",":fast-reverse-button:":"⏪",":last-track-button:":"⏮️",":upwards-button:":"🔼",":fast-up-button:":"⏫",":downwards-button:":"🔽",":fast-down-button:":"⏬",":pause-button:":"⏸️",":stop-button:":"⏹️",":record-button:":"⏺️",":eject-button:":"⏏️",":cinema:":"🎦",":dim-button:":"🔅",":bright-button:":"🔆",":antenna-bars:":"📶",":vibration-mode:":"📳",":mobile-phone-off:":"📴",":female-sign:":"♀️",":male-sign:":"♂️",":medical-symbol:":"⚕️",":infinity:":"♾️",":recycling-symbol:":"♻️",":fleur-de-lis:":"⚜️",":trident-emblem:":"🔱",":name-badge:":"📛",":japanese-symbol-for-beginner:":"🔰",":hollow-red-circle:":"⭕",":check-mark-button:":"✅",":check-box-with-check:":"☑️",":check-mark:":"✔️",":multiplication-sign:":"✖️",":cross-mark:":"❌",":cross-mark-button:":"❎",":plus-sign:":"➕",":minus-sign:":"➖",":division-sign:":"➗",":curly-loop:":"➰",":double-curly-loop:":"➿",":part-alternation-mark:":"〽️",":eight-spoked-asterisk:":"✳️",":eight-pointed-star:":"✴️",":sparkle:":"❇️",":double-exclamation-mark:":"‼️",":exclamation-question-mark:":"⁉️",":question-mark:":"❓",":white-question-mark:":"❔",":white-exclamation-mark:":"❕",":exclamation-mark:":"❗",":wavy-dash:":"〰️",":copyright:":"©️",":registered:":"®️",":trade-mark:":"™️","::":"#️⃣",":keycap:":"*️⃣",":0-keycap-0:":"0️⃣",":1-keycap-1:":"1️⃣",":2-keycap-2:":"2️⃣",":3-keycap-3:":"3️⃣",":4-keycap-4:":"4️⃣",":5-keycap-5:":"5️⃣",":6-keycap-6:":"6️⃣",":7-keycap-7:":"7️⃣",":8-keycap-8:":"8️⃣",":9-keycap-9:":"9️⃣",":keycap-10:":"🔟",":input-latin-uppercase:":"🔠",":input-latin-lowercase:":"🔡",":input-numbers:":"🔢",":input-symbols:":"🔣",":input-latin-letters:":"🔤",":a-button-blood-type:":"🅰️",":ab-button-blood-type:":"🆎",":b-button-blood-type:":"🅱️",":cl-button:":"🆑",":cool-button:":"🆒",":free-button:":"🆓",":information:":"ℹ️",":id-button:":"🆔",":circled-m:":"Ⓜ️",":new-button:":"🆕",":ng-button:":"🆖",":o-button-blood-type:":"🅾️",":ok-button:":"🆗",":p-button:":"🅿️",":sos-button:":"🆘",":up-button:":"🆙",":vs-button:":"🆚",":japanese-here-button:":"🈁",":japanese-service-charge-button:":"🈂️",":japanese-monthly-amount-button:":"🈷️",":japanese-not-free-of-charge-button:":"🈶",":japanese-reserved-button:":"🈯",":japanese-bargain-button:":"🉐",":japanese-discount-button:":"🈹",":japanese-free-of-charge-button:":"🈚",":japanese-prohibited-button:":"🈲",":japanese-acceptable-button:":"🉑",":japanese-application-button:":"🈸",":japanese-passing-grade-button:":"🈴",":japanese-vacancy-button:":"🈳",":japanese-congratulations-button:":"㊗️",":japanese-secret-button:":"㊙️",":japanese-open-for-business-button:":"🈺",":japanese-no-vacancy-button:":"🈵",":red-circle:":"🔴",":orange-circle:":"🟠",":yellow-circle:":"🟡",":green-circle:":"🟢",":blue-circle:":"🔵",":purple-circle:":"🟣",":brown-circle:":"🟤",":black-circle:":"⚫",":white-circle:":"⚪",":red-square:":"🟥",":orange-square:":"🟧",":yellow-square:":"🟨",":green-square:":"🟩",":blue-square:":"🟦",":purple-square:":"🟪",":brown-square:":"🟫",":black-large-square:":"⬛",":white-large-square:":"⬜",":black-medium-square:":"◼️",":white-medium-square:":"◻️",":black-medium-small-square:":"◾",":white-medium-small-square:":"◽",":black-small-square:":"▪️",":white-small-square:":"▫️",":large-orange-diamond:":"🔶",":large-blue-diamond:":"🔷",":small-orange-diamond:":"🔸",":small-blue-diamond:":"🔹",":red-triangle-pointed-up:":"🔺",":red-triangle-pointed-down:":"🔻",":diamond-with-a-dot:":"💠",":radio-button:":"🔘",":white-square-button:":"🔳",":black-square-button:":"🔲",":chequered-flag:":"🏁",":triangular-flag:":"🚩",":crossed-flags:":"🎌",":black-flag:":"🏴",":white-flag:":"🏳️",":rainbow-flag:":"🏳️🌈",":pirate-flag:":"🏴☠️",":flag-ascension-island:":"🇦🇨",":flag-andorra:":"🇦🇩",":flag-united-arab-emirates:":"🇦🇪",":flag-afghanistan:":"🇦🇫",":flag-antigua-barbuda:":"🇦🇬",":flag-anguilla:":"🇦🇮",":flag-albania:":"🇦🇱",":flag-armenia:":"🇦🇲",":flag-angola:":"🇦🇴",":flag-antarctica:":"🇦🇶",":flag-argentina:":"🇦🇷",":flag-american-samoa:":"🇦🇸",":flag-austria:":"🇦🇹",":flag-australia:":"🇦🇺",":flag-aruba:":"🇦🇼",":flag-land-islands:":"🇦🇽",":flag-azerbaijan:":"🇦🇿",":flag-bosnia-herzegovina:":"🇧🇦",":flag-barbados:":"🇧🇧",":flag-bangladesh:":"🇧🇩",":flag-belgium:":"🇧🇪",":flag-burkina-faso:":"🇧🇫",":flag-bulgaria:":"🇧🇬",":flag-bahrain:":"🇧🇭",":flag-burundi:":"🇧🇮",":flag-benin:":"🇧🇯",":flag-st-barthlemy:":"🇧🇱",":flag-bermuda:":"🇧🇲",":flag-brunei:":"🇧🇳",":flag-bolivia:":"🇧🇴",":flag-caribbean-netherlands:":"🇧🇶",":flag-brazil:":"🇧🇷",":flag-bahamas:":"🇧🇸",":flag-bhutan:":"🇧🇹",":flag-bouvet-island:":"🇧🇻",":flag-botswana:":"🇧🇼",":flag-belarus:":"🇧🇾",":flag-belize:":"🇧🇿",":flag-canada:":"🇨🇦",":flag-cocos-keeling-islands:":"🇨🇨",":flag-congo-kinshasa:":"🇨🇩",":flag-central-african-republic:":"🇨🇫",":flag-congo-brazzaville:":"🇨🇬",":flag-switzerland:":"🇨🇭",":flag-cte-divoire:":"🇨🇮",":flag-cook-islands:":"🇨🇰",":flag-chile:":"🇨🇱",":flag-cameroon:":"🇨🇲",":flag-china:":"🇨🇳",":flag-colombia:":"🇨🇴",":flag-clipperton-island:":"🇨🇵",":flag-costa-rica:":"🇨🇷",":flag-cuba:":"🇨🇺",":flag-cape-verde:":"🇨🇻",":flag-curaao:":"🇨🇼",":flag-christmas-island:":"🇨🇽",":flag-cyprus:":"🇨🇾",":flag-czechia:":"🇨🇿",":flag-germany:":"🇩🇪",":flag-diego-garcia:":"🇩🇬",":flag-djibouti:":"🇩🇯",":flag-denmark:":"🇩🇰",":flag-dominica:":"🇩🇲",":flag-dominican-republic:":"🇩🇴",":flag-algeria:":"🇩🇿",":flag-ceuta-melilla:":"🇪🇦",":flag-ecuador:":"🇪🇨",":flag-estonia:":"🇪🇪",":flag-egypt:":"🇪🇬",":flag-western-sahara:":"🇪🇭",":flag-eritrea:":"🇪🇷",":flag-spain:":"🇪🇸",":flag-ethiopia:":"🇪🇹",":flag-european-union:":"🇪🇺",":flag-finland:":"🇫🇮",":flag-fiji:":"🇫🇯",":flag-falkland-islands:":"🇫🇰",":flag-micronesia:":"🇫🇲",":flag-faroe-islands:":"🇫🇴",":flag-france:":"🇫🇷",":flag-gabon:":"🇬🇦",":flag-united-kingdom:":"🇬🇧",":flag-grenada:":"🇬🇩",":flag-georgia:":"🇬🇪",":flag-french-guiana:":"🇬🇫",":flag-guernsey:":"🇬🇬",":flag-ghana:":"🇬🇭",":flag-gibraltar:":"🇬🇮",":flag-greenland:":"🇬🇱",":flag-gambia:":"🇬🇲",":flag-guinea:":"🇬🇳",":flag-guadeloupe:":"🇬🇵",":flag-equatorial-guinea:":"🇬🇶",":flag-greece:":"🇬🇷",":flag-south-georgia-south-sandwich-islands:":"🇬🇸",":flag-guatemala:":"🇬🇹",":flag-guam:":"🇬🇺",":flag-guinea-bissau:":"🇬🇼",":flag-guyana:":"🇬🇾",":flag-hong-kong-sar-china:":"🇭🇰",":flag-heard-mcdonald-islands:":"🇭🇲",":flag-honduras:":"🇭🇳",":flag-croatia:":"🇭🇷",":flag-haiti:":"🇭🇹",":flag-hungary:":"🇭🇺",":flag-canary-islands:":"🇮🇨",":flag-indonesia:":"🇮🇩",":flag-ireland:":"🇮🇪",":flag-israel:":"🇮🇱",":flag-isle-of-man:":"🇮🇲",":flag-india:":"🇮🇳",":flag-british-indian-ocean-territory:":"🇮🇴",":flag-iraq:":"🇮🇶",":flag-iran:":"🇮🇷",":flag-iceland:":"🇮🇸",":flag-italy:":"🇮🇹",":flag-jersey:":"🇯🇪",":flag-jamaica:":"🇯🇲",":flag-jordan:":"🇯🇴",":flag-japan:":"🇯🇵",":flag-kenya:":"🇰🇪",":flag-kyrgyzstan:":"🇰🇬",":flag-cambodia:":"🇰🇭",":flag-kiribati:":"🇰🇮",":flag-comoros:":"🇰🇲",":flag-st-kitts-nevis:":"🇰🇳",":flag-north-korea:":"🇰🇵",":flag-south-korea:":"🇰🇷",":flag-kuwait:":"🇰🇼",":flag-cayman-islands:":"🇰🇾",":flag-kazakhstan:":"🇰🇿",":flag-laos:":"🇱🇦",":flag-lebanon:":"🇱🇧",":flag-st-lucia:":"🇱🇨",":flag-liechtenstein:":"🇱🇮",":flag-sri-lanka:":"🇱🇰",":flag-liberia:":"🇱🇷",":flag-lesotho:":"🇱🇸",":flag-lithuania:":"🇱🇹",":flag-luxembourg:":"🇱🇺",":flag-latvia:":"🇱🇻",":flag-libya:":"🇱🇾",":flag-morocco:":"🇲🇦",":flag-monaco:":"🇲🇨",":flag-moldova:":"🇲🇩",":flag-montenegro:":"🇲🇪",":flag-st-martin:":"🇲🇫",":flag-madagascar:":"🇲🇬",":flag-marshall-islands:":"🇲🇭",":flag-macedonia:":"🇲🇰",":flag-mali:":"🇲🇱",":flag-myanmar-burma:":"🇲🇲",":flag-mongolia:":"🇲🇳",":flag-macao-sar-china:":"🇲🇴",":flag-northern-mariana-islands:":"🇲🇵",":flag-martinique:":"🇲🇶",":flag-mauritania:":"🇲🇷",":flag-montserrat:":"🇲🇸",":flag-malta:":"🇲🇹",":flag-mauritius:":"🇲🇺",":flag-maldives:":"🇲🇻",":flag-malawi:":"🇲🇼",":flag-mexico:":"🇲🇽",":flag-malaysia:":"🇲🇾",":flag-mozambique:":"🇲🇿",":flag-namibia:":"🇳🇦",":flag-new-caledonia:":"🇳🇨",":flag-niger:":"🇳🇪",":flag-norfolk-island:":"🇳🇫",":flag-nigeria:":"🇳🇬",":flag-nicaragua:":"🇳🇮",":flag-netherlands:":"🇳🇱",":flag-norway:":"🇳🇴",":flag-nepal:":"🇳🇵",":flag-nauru:":"🇳🇷",":flag-niue:":"🇳🇺",":flag-new-zealand:":"🇳🇿",":flag-oman:":"🇴🇲",":flag-panama:":"🇵🇦",":flag-peru:":"🇵🇪",":flag-french-polynesia:":"🇵🇫",":flag-papua-new-guinea:":"🇵🇬",":flag-philippines:":"🇵🇭",":flag-pakistan:":"🇵🇰",":flag-poland:":"🇵🇱",":flag-st-pierre-miquelon:":"🇵🇲",":flag-pitcairn-islands:":"🇵🇳",":flag-puerto-rico:":"🇵🇷",":flag-palestinian-territories:":"🇵🇸",":flag-portugal:":"🇵🇹",":flag-palau:":"🇵🇼",":flag-paraguay:":"🇵🇾",":flag-qatar:":"🇶🇦",":flag-runion:":"🇷🇪",":flag-romania:":"🇷🇴",":flag-serbia:":"🇷🇸",":flag-russia:":"🇷🇺",":flag-rwanda:":"🇷🇼",":flag-saudi-arabia:":"🇸🇦",":flag-solomon-islands:":"🇸🇧",":flag-seychelles:":"🇸🇨",":flag-sudan:":"🇸🇩",":flag-sweden:":"🇸🇪",":flag-singapore:":"🇸🇬",":flag-st-helena:":"🇸🇭",":flag-slovenia:":"🇸🇮",":flag-svalbard-jan-mayen:":"🇸🇯",":flag-slovakia:":"🇸🇰",":flag-sierra-leone:":"🇸🇱",":flag-san-marino:":"🇸🇲",":flag-senegal:":"🇸🇳",":flag-somalia:":"🇸🇴",":flag-suriname:":"🇸🇷",":flag-south-sudan:":"🇸🇸",":flag-so-tom-prncipe:":"🇸🇹",":flag-el-salvador:":"🇸🇻",":flag-sint-maarten:":"🇸🇽",":flag-syria:":"🇸🇾",":flag-eswatini:":"🇸🇿",":flag-tristan-da-cunha:":"🇹🇦",":flag-turks-caicos-islands:":"🇹🇨",":flag-chad:":"🇹🇩",":flag-french-southern-territories:":"🇹🇫",":flag-togo:":"🇹🇬",":flag-thailand:":"🇹🇭",":flag-tajikistan:":"🇹🇯",":flag-tokelau:":"🇹🇰",":flag-timor-leste:":"🇹🇱",":flag-turkmenistan:":"🇹🇲",":flag-tunisia:":"🇹🇳",":flag-tonga:":"🇹🇴",":flag-turkey:":"🇹🇷",":flag-trinidad-tobago:":"🇹🇹",":flag-tuvalu:":"🇹🇻",":flag-taiwan:":"🇹🇼",":flag-tanzania:":"🇹🇿",":flag-ukraine:":"🇺🇦",":flag-uganda:":"🇺🇬",":flag-us-outlying-islands:":"🇺🇲",":flag-united-nations:":"🇺🇳",":flag-united-states:":"🇺🇸",":flag-uruguay:":"🇺🇾",":flag-uzbekistan:":"🇺🇿",":flag-vatican-city:":"🇻🇦",":flag-st-vincent-grenadines:":"🇻🇨",":flag-venezuela:":"🇻🇪",":flag-british-virgin-islands:":"🇻🇬",":flag-us-virgin-islands:":"🇻🇮",":flag-vietnam:":"🇻🇳",":flag-vanuatu:":"🇻🇺",":flag-wallis-futuna:":"🇼🇫",":flag-samoa:":"🇼🇸",":flag-kosovo:":"🇽🇰",":flag-yemen:":"🇾🇪",":flag-mayotte:":"🇾🇹",":flag-south-africa:":"🇿🇦",":flag-zambia:":"🇿🇲",":flag-zimbabwe:":"🇿🇼",":flag-england:":"🏴",":flag-scotland:":"🏴",":flag-wales:":"🏴"};const Ro={":thumbsup:":":thumbs-up:",":+1:":":thumbs-up:",":wink:":":winking-face:",":bath:":":bathtub:"};const Po=/((?:(?:https|http):\/\/)?(?:[a-z0-9.]*\.[a-z]+)(\/[^\s]*)?)/gi;function Io(e){const t=function(e){const t=[];let n=Po.exec(e);for(;null!==n;)t.push(n),n=Po.exec(e);return t}(e);if(t.length<1)return[{text:e}];const n=[];let i=0;return t.forEach(t=>{const r=t[0],o=r.toLowerCase();0===t.index?n.push({url:r,scheme:o.startsWith("http:")||o.startsWith("https:"),slashes:r.startsWith("//")}):t.index>0&&(n.push({text:e.slice(i,t.index)}),n.push({url:r,scheme:o.startsWith("http:")||o.startsWith("https:"),slashes:r.startsWith("//")})),i=t.index+t[0].length}),n.push({text:e.slice(i,e.length)}),n}var Ao=Ae.a.memo(({text:e})=>{const t=Io(e);return Ae.a.createElement(Ae.a.Fragment,null,t.map(e=>e.text?Ae.a.createElement("span",{key:e.text},e.text):e.url?Ae.a.createElement("a",{key:e.url,href:e.scheme||e.slashes?e.url:"https://"+e.url,target:"_blank",rel:"noopener noreferrer"},e.url):null))});const Mo=lo.d.div`
display: flex;
flex-direction: column;
min-height: calc(var(--vh, 1vh) * 50);
max-height: calc(var(--vh, 1vh) * 100);
border-top: ${({theme:e})=>lo.c`1px solid ${ho(e.border)}`};
z-index: 300;
background-color: ${({theme:e})=>ho(e.background)};
overflow: hidden;
& .msg:last-of-type {
border-bottom: none;
}
${jo} {
width: 200px;
border-top: none;
border-left: ${({theme:e})=>lo.c`1px solid ${ho(e.border)}`};
}
`,No=lo.d.button`
text-align: left;
border: none;
border-top: ${({theme:e})=>lo.c`1px solid ${ho(e.border)}`};
border-bottom: ${({theme:e})=>lo.c`1px solid ${ho(e.border)}`};
display: block;
padding: 10px;
font-size: 18px;
outline: none;
background-color: ${({theme:e})=>ho(e.background)};
svg {
fill: ${({theme:e})=>ho(e.foreground)};
vertical-align: middle;
font-size: 20px;
margin-right: 5px;
}
`,Do=Object(lo.d)(br)({flex:1,overflow:"scroll",height:"0px",marginBottom:"16px"}),Lo=lo.d.div`
padding: 5px;
border: ${({theme:e})=>lo.c`1px solid ${ho(e.border)}`};
border-radius: 5px;
margin: 5px;
textarea {
width: 100%;
height: 90px;
min-height: 0;
padding: 8px;
margin: 0;
outline: none;
display: block;
font-size: 14px;
font-family: inherit;
resize: none;
border: none;
}
input {
margin-right: 5px;
}
label {
font-size: 12px;
}
&.chat-disabled {
background: ${({theme:e})=>lo.c`
${ho(e.border)}
`};
textarea {
background: ${({theme:e})=>lo.c`
${ho(e.border)}
`};
}
}
`,qo=lo.d.div`
border-bottom: ${({theme:e})=>lo.c`1px solid ${ho(e.border)}`};
position: relative;
padding: 10px;
font-size: 14px;
p {
margin: 0;
}
`,Fo=lo.d.p({fontWeight:"bold"}),zo=lo.d.span`
position: absolute;
top: 10px;
right: 10px;
color: ${({theme:e})=>ho(e.foreground)};
font-size: 12px;
`,Uo=lo.d.p({wordBreak:"break-all"}),Bo=({chats:e,peer:t})=>Ae.a.createElement(qo,{className:"msg",key:e[0].id},Ae.a.createElement(Fo,null,e[0].displayName?e[0].displayName:"Anonymous"),Ae.a.createElement(zo,null,e[0].time.toLocaleTimeString()),e.map(e=>{return Ae.a.createElement(Uo,{key:e.id},Ae.a.createElement(Ao,{text:(t=e.body,t.replace(/(:[a-z0-9-]+:)/gi,e=>Oo.hasOwnProperty(e)?Oo[e]:Ro.hasOwnProperty(e)?Oo[Ro[e]]:e))}));var t})),Vo=lo.d.div({minHeight:"20px",fontSize:"12px",textAlign:"center"});var $o=({roomAddress:e,sendRtt:t,toggleRtt:n,toggleChat:i,disabled:r})=>Ae.a.createElement(Mo,null,Ae.a.createElement(No,{onClick:i},Ae.a.createElement(To.a,null),Ae.a.createElement("span",null,"Chat")),Ae.a.createElement(Do,null,Ae.a.createElement(wr,{room:e,renderGroup:({chats:e,peer:t})=>Ae.a.createElement(Bo,{key:e[0].id,chats:e,peer:t})})),Ae.a.createElement(Lo,{className:r?"chat-disabled":""},Ae.a.createElement(gr,{autoFocus:!0,disabled:r,room:e,rtt:t,placeholder:r?"Waiting to join room...":"Send a message..."}),Ae.a.createElement("label",{style:{display:"block"}},Ae.a.createElement("input",{type:"checkbox",checked:t,onChange:n}),"Send as I type")),Ae.a.createElement(Vo,null,Ae.a.createElement(mr,{room:e}))),Ho=n(48),Wo=n.n(Ho),Go=n(49),Qo=n.n(Go);function Jo(e,t){return e.filter(e=>e.direction===t).reduce((e,t)=>e+t.chats.length,0)}class Ko extends Ie.Component{componentDidUpdate(e){const t=Jo(e.groups,"incoming"),n=Jo(this.props.groups,"incoming"),i=Jo(e.groups,"outgoing"),r=Jo(this.props.groups,"outgoing");t<n&&this.props.onReceive(),i<r&&this.props.onSend()}render(){return null}}const Yo=lo.d.button`
position: absolute;
bottom: 0;
right: 0;
width: 200px;
text-align: left;
z-index: 300;
font-size: 18px;
border: ${({newMessage:e,theme:t})=>e?lo.c`1px ${ho(t.buttonActionBackground)} solid`:lo.c`1px solid ${ho(t.border)}`};
background: ${({newMessage:e,theme:t})=>ho(e?t.buttonActionBackground:t.background)};
color: ${({newMessage:e,theme:t})=>ho(e?t.buttonActionText:t.foreground)};
padding: 5px 15px;
:focus {
outline: 0;
}
svg {
fill: ${({newMessage:e,theme:t})=>ho(e?t.buttonActionText:t.foreground)};
font-size: 24px;
vertical-align: middle;
:last-of-type {
margin-left: 8px;
opacity: ${({isTyping:e})=>e?1:0};
}
}
`;var Xo=({roomAddress:e,onClick:t})=>{const[n,i]=Object(Ie.useState)(!1);return Ae.a.createElement(wr,{room:e,render:({groups:r})=>Ae.a.createElement(Ae.a.Fragment,null,Ae.a.createElement(mr,{room:e,render:({composers:e})=>Ae.a.createElement(Yo,{onClick:t,isTyping:e.length>0,newMessage:n},Ae.a.createElement(Wo.a,null),Ae.a.createElement("span",null,"Chat"),Ae.a.createElement(Qo.a,null))}),Ae.a.createElement(Ko,{groups:r,onSend:()=>null,onReceive:()=>i(!0)}))})},Zo=n(21),ea=n.n(Zo),ta=n(22),na=n.n(ta),ia=n(12),ra=n.n(ia);const oa=lo.d.button`
border-radius: 5px;
transition: background 200ms linear;
font-size: 14px;
min-height: 30px;
min-width: 30px;
border: none;
color: ${({theme:e})=>ho(e.buttonSecondaryText)};
background-color: ${({theme:e})=>ho(e.buttonSecondaryBackground)};
:hover {
background-color: ${({theme:e})=>ho(e.buttonSecondaryBackgroundHover)};
}
:active {
background-color: ${({theme:e})=>ho(e.buttonSecondaryBackgroundActive)};
}
:focus {
outline: 0;
}
svg {
fill: ${({theme:e})=>ho(e.buttonSecondaryText)};
vertical-align: middle;
font-size: 20px;
:not(:only-child) {
margin-left: 7px;
}
}
& a {
color: ${({theme:e})=>ho(e.buttonSecondaryText)};
}
& span {
padding-left: 3px;
padding-right: 3px;
margin-right: 5px;
}
`;var aa=n(50),sa=n.n(aa),la=n(23),ca=n.n(la);const ua=lo.d.div`
border: ${({theme:e})=>lo.c`1px solid ${ho(e.border)}`};
border-radius: 4px;
display: flex;
align-items: center;
margin-bottom: 5px;
margin-top: 10px;
padding: 2px;
svg {
margin-right: 5px;
fill: ${({theme:e})=>ho(e.foreground)};
}
`,da=Object(lo.d)(ua)`
background-color: ${({theme:e})=>ho(e.alertErrorBackground)};
border-color: ${({theme:e})=>ho(e.alertErrorForeground)};
color: ${({theme:e})=>ho(e.alertErrorForeground)};
svg {
fill: ${({theme:e})=>ho(e.alertErrorForeground)};
}
`,pa=Object(lo.d)(ua)`
background-color: ${({theme:e})=>ho(e.alertInfoBackground)};
border-color: ${({theme:e})=>ho(e.alertInfoForeground)};
color: ${({theme:e})=>ho(e.alertInfoForeground)};
svg {
fill: ${({theme:e})=>ho(e.alertInfoForeground)};
}
`,ma=e=>Ae.a.createElement(da,null,Ae.a.createElement(sa.a,null),e.children),ha=e=>Ae.a.createElement(pa,null,Ae.a.createElement(ca.a,null),e.children),fa=lo.d.div({height:"375px",position:"relative",width:"100%",padding:"0 10px",[jo]:{padding:"0",width:"500px"},"& video":{width:"100%",height:"100%",objectFit:"contain",backgroundColor:"#262a2c"}}),ga=lo.d.div({width:"100%",height:"100%",backgroundColor:"#262a2c",color:"#e9ecec",display:"flex",alignItems:"center",justifyContent:"center","& p":{margin:0}}),va=()=>Ae.a.createElement(ga,null,Ae.a.createElement("p",null,"No video selected"));var ba=({video:e})=>Ae.a.createElement(fa,null,e&&e.loaded?Ae.a.createElement(ao,{media:e}):Ae.a.createElement(va,null));const ya=lo.e`
0% {
opacity: 1;
}
50% {
opacity: .5;
}
100% {
opacity: 1;
}
`,ka=lo.d.div`
display: grid;
grid-template-columns: repeat(${e=>e.buckets}, 1fr);
grid-column-gap: 2px;
${e=>!e.loaded&&!e.noInput||e.requesting?lo.c`
animation: ${ya} 0.5s infinite;
`:""}
`,wa=lo.d.div`
border: 1px solid white;
border-radius: 4px;
height: 6px;
background-color: ${e=>e.filled?e.speaking?"green":"#444":"#ccc"};
`;var Sa=({buckets:e,volume:t,speaking:n,loaded:i,noInput:r,requesting:o})=>{const a=100/e;return Ae.a.createElement(ka,{buckets:e,noInput:r,loaded:i,requesting:o},Array.from(Array(e)).map((i,r)=>Ae.a.createElement(wa,{key:r,filled:t>0&&t<=(e-r)*a,speaking:n})))};var Ca=function(e){const t=document.head.querySelector(`meta[name=simplewebrtc-${e}]`);if(t){const e=t.getAttribute("content");if(null!==e)return e}return null};var xa=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},Ea=n(51),Ta="object"==typeof self&&self&&self.Object===Object&&self,_a=Ea.a||Ta||Function("return this")(),ja=function(){return _a.Date.now()},Oa=_a.Symbol,Ra=Object.prototype,Pa=Ra.hasOwnProperty,Ia=Ra.toString,Aa=Oa?Oa.toStringTag:void 0;var Ma=function(e){var t=Pa.call(e,Aa),n=e[Aa];try{e[Aa]=void 0;var i=!0}catch(e){}var r=Ia.call(e);return i&&(t?e[Aa]=n:delete e[Aa]),r},Na=Object.prototype.toString;var Da=function(e){return Na.call(e)},La=Oa?Oa.toStringTag:void 0;var qa=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":La&&La in Object(e)?Ma(e):Da(e)};var Fa=function(e){return null!=e&&"object"==typeof e};var za=function(e){return"symbol"==typeof e||Fa(e)&&"[object Symbol]"==qa(e)},Ua=/^\s+|\s+$/g,Ba=/^[-+]0x[0-9a-f]+$/i,Va=/^0b[01]+$/i,$a=/^0o[0-7]+$/i,Ha=parseInt;var Wa=function(e){if("number"==typeof e)return e;if(za(e))return NaN;if(xa(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=xa(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Ua,"");var n=Va.test(e);return n||$a.test(e)?Ha(e.slice(2),n?2:8):Ba.test(e)?NaN:+e},Ga=Math.max,Qa=Math.min;var Ja=function(e,t,n){var i,r,o,a,s,l,c=0,u=!1,d=!1,p=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function m(t){var n=i,o=r;return i=r=void 0,c=t,a=e.apply(o,n)}function h(e){return c=e,s=setTimeout(g,t),u?m(e):a}function f(e){var n=e-l;return void 0===l||n>=t||n<0||d&&e-c>=o}function g(){var e=ja();if(f(e))return v(e);s=setTimeout(g,function(e){var n=t-(e-l);return d?Qa(n,o-(e-c)):n}(e))}function v(e){return s=void 0,p&&i?m(e):(i=r=void 0,a)}function b(){var e=ja(),n=f(e);if(i=arguments,r=this,l=e,n){if(void 0===s)return h(l);if(d)return clearTimeout(s),s=setTimeout(g,t),m(l)}return void 0===s&&(s=setTimeout(g,t)),a}return t=Wa(t)||0,xa(n)&&(u=!!n.leading,o=(d="maxWait"in n)?Ga(Wa(n.maxWait)||0,t):o,p="trailing"in n?!!n.trailing:p),b.cancel=function(){void 0!==s&&clearTimeout(s),c=0,i=l=r=s=void 0},b.flush=function(){return void 0===s?a:v(ja())},b};var Ka=function(e,t,n){var i=!0,r=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return xa(n)&&(i="leading"in n?!!n.leading:i,r="trailing"in n?!!n.trailing:r),Ja(e,t,{leading:i,maxWait:t,trailing:r})};new Map;const Ya=["sound-test-output","sound-peer-enter","sound-peer-exit","sound-message-send","sound-message-receive"],Xa=new Map,Za=new Map;for(const e of Ya){const t=Ca(e);t&&(Xa.set(e,t),Za.set(e,new Audio))}let es=!1;function ts(e,t=1e3){return Ka((t="default")=>{const n=Za.get(e);if(n)return n.src||(n.src=Xa.get(e)),new Promise(e=>{if(!n)return e();n.sinkId!==t&&n.setSinkId?n.setSinkId(t).then(()=>{n.play()}):n.play(),n.onended=e})},t,{trailing:!1})}const ns=Ca("sound-test-output"),is=ts("sound-test-output"),rs=lo.d.div({display:"grid",gridTemplateAreas:"\n 'header'\n 'preview'\n 'controls'\n ",gridRowGap:"10px",gridColumnGap:"10px",[jo]:{gridTemplateAreas:"\n 'header header'\n 'preview controls'\n "}}),os=lo.d.div({gridArea:"header"}),as=lo.d.div`
grid-area: controls;
padding: 0 10px;
${jo} {
padding: 0;
width: 330px;
}
select {
border: ${({theme:e})=>lo.c`1px solid ${ho(e.border)}`};
color: ${({theme:e})=>ho(e.foreground)};
height: 40px;
padding: 10px;
margin-top: 5px;
background-color: ${({theme:e})=>ho(e.background)};
font-size: 12px;
font-weight: bold;
width: 100%;
}
label {
display: block;
font-weight: bold;
font-size: 12px;
margin-top: 10px;
margin-bottom: 10px;
svg {
font-size: 20px;
vertical-align: bottom;
margin-right: 5px;
fill: ${({theme:e})=>ho(e.foreground)};
}
}
`,ss=lo.d.div({gridArea:"preview",display:"flex",alignItems:"flex-end",flexDirection:"column"}),ls=Object(lo.d)(oa)({marginBottom:"5px",width:"100%"}),cs=lo.d.div({display:"flex",flexDirection:"column",justifyContent:"center",alignContent:"middle"}),us=lo.d.div({textAlign:"center"}),ds=Object(lo.d)(oa)`
margin-top: 20px;
background-color: ${({theme:e})=>ho(e.buttonPrimaryBackground)};
font-size: 22px;
color: ${({theme:e})=>ho(e.buttonPrimaryText)};
padding: 10px;
:hover {
background-color: ${({theme:e})=>ho(e.buttonPrimaryBackgroundHover)};
color: ${({theme:e})=>ho(e.buttonPrimaryText)};
}
:active {
background-color: ${({theme:e})=>ho(e.buttonPrimaryBackgroundActive)};
color: ${({theme:e})=>ho(e.buttonPrimaryText)};
}
[disabled],
:disabled {
background-color: ${({theme:e})=>ho(e.buttonSecondaryBackground)};
}
`,ps=lo.d.span`
color: ${({theme:e})=>ho(e.primaryBackground)};
float: right;
`;function ms(e,t){let n;const i=t.label,r=t.kind+"input";if(t.getSettings){n=t.getSettings().deviceId}if(n)for(const t of e)if(t.deviceId===n)return t;for(const t of e)if(i===t.label&&r===t.kind)return t}class hs extends Ae.a.Component{constructor(e){super(e),this.state={allowInitialAutoCapture:!0,testingOutput:!1,showAccept:!1}}componentDidMount(){setTimeout(()=>{this.setState({showAccept:!0})},1e3)}render(){return Ae.a.createElement(Ir,{screen:!1,render:({media:e,removeMedia:t,shareLocalMedia:n})=>{const i=e.filter(e=>e.id===this.state.previewVideoId)[0],r=e.filter(e=>e.id===this.state.previewAudioId)[0];return Ae.a.createElement(rs,null,Ae.a.createElement(xo.Consumer,null,({haircheckHeaderPlaceholder:e})=>Ae.a.createElement(os,{ref:t=>{if(t&&e&&0===t.childElementCount){const n=e();n&&t.appendChild(n)}}})),Ae.a.createElement(ss,null,Ae.a.createElement(ba,{video:i})),Ae.a.createElement(as,null,Ae.a.createElement(Cr,{render:({devices:e,hasCamera:o,requestingCameraCapture:a,cameraPermissionDenied:s,hasMicrophone:l,requestingMicrophoneCapture:c,microphonePermissionDenied:u,cameraPermissionGranted:d,microphonePermissionGranted:p,requestingCapture:m})=>{const h=e.filter(e=>"audioinput"===e.kind),f=e.filter(e=>"audiooutput"===e.kind),g=e.filter(e=>"videoinput"===e.kind),v=r?ms(e,r.track):void 0,b=i?ms(e,i.track):void 0;return Ae.a.createElement(Ae.a.Fragment,null,this.initialAutoCapture(p,d,m),Ae.a.createElement("div",null,Ae.a.createElement(ro,{render:({user:t,setAudioOutputDevice:n})=>Ae.a.createElement("label",null,Ae.a.createElement(ra.a,null),Ae.a.createElement("span",null,"Speaker:"),ns&&Ae.a.createElement(ps,{onClick:async e=>(e.preventDefault(),this.setState({testingOutput:!0}),await is(t.audioOutputDeviceId),this.setState({testingOutput:!1}),!1)},this.state.testingOutput?"Playing...":"Test Speaker"),Ae.a.createElement("select",{defaultValue:t.audioOutputDeviceId,disabled:!e.length,onChange:e=>{n(e.target.value)}},f.length&&f.map(e=>Ae.a.createElement("option",{key:e.deviceId,value:e.deviceId},e.label)),!f.length&&Ae.a.createElement("option",{key:"",value:""},"Default")))})),Ae.a.createElement("div",null,Ae.a.createElement("label",null,Ae.a.createElement(na.a,null),Ae.a.createElement("span",null,"Camera:"),this.renderInputSelector("video",o,d,s,a,g,b,v,i,r,t,"No cameras detected.","Camera permissions denied.","Requesting cameras...","Allow camera access","Disable Camera"))),Ae.a.createElement("div",null,Ae.a.createElement("label",null,Ae.a.createElement(ea.a,null),Ae.a.createElement("span",null,"Microphone:"),this.renderInputSelector("audio",l,p,u,c,h,v,b,r,i,t,"No microphones detected.","Microphone permissions denied.","Requesting microphones...","Allow microphone access","Disable Microphone")),r?Ae.a.createElement(so,{media:r,noInputTimeout:7e3,render:({noInput:e,volume:t,speaking:n})=>Ae.a.createElement(cs,null,Ae.a.createElement(Sa,{buckets:16,volume:-t,speaking:n,loaded:!!r.inputDetected,noInput:e,requesting:!!c}),r.inputDetected&&e&&Ae.a.createElement(ma,null,"Media lost."),!r.inputDetected&&e&&Ae.a.createElement(ha,null,"No input detected from your microphone."))}):Ae.a.createElement(cs,null,Ae.a.createElement(Sa,{buckets:16,volume:0,speaking:!1,loaded:!0,noInput:!1,requesting:!!c}))),Ae.a.createElement(us,null,Ae.a.createElement(ds,{disabled:!this.state.showAccept||m,onClick:()=>{r&&n(r.id),i&&n(i.id),v&&(localStorage.preferredAudioDeviceId=v.deviceId),b&&(localStorage.preferredVideoDeviceId=b.deviceId),function(){if(!es){es=!0;for(const[e,t]of Za)t.play().catch(e=>{})}}(),this.props.onAccept()}},!this.state.showAccept||m?"Getting Ready...":"Join Call")))}})))}})}initialAutoCapture(e,t,n){const i=this.state.allowInitialAutoCapture&&(e||t)&&!n&&!this.state.previewAudioId&&!this.state.previewVideoId;return i?(setTimeout(()=>{this.setState({allowInitialAutoCapture:!1})},0),Ae.a.createElement(eo,{share:!1,auto:i,audio:!!e&&{deviceId:{ideal:localStorage.preferredAudioDeviceId}},video:!!t&&{deviceId:{ideal:localStorage.preferredVideoDeviceId}},replaceAudio:this.state.previewAudioId,replaceVideo:this.state.previewVideoId,onError:()=>{this.setState({allowInitialAutoCapture:!1})},onSuccess:e=>{this.setState({allowInitialAutoCapture:!1,previewAudioId:e&&e.audio,previewVideoId:e&&e.video})},render:()=>null})):null}renderInputSelector(e,t,n,i,r,o,a,s,l,c,u,d,p,m,h,f){if(!1===t)return Ae.a.createElement(ma,null,d);if(i)return Ae.a.createElement(ma,null,p);if(r)return Ae.a.createElement(ha,null,m);const g={[e]:!0,["audio"===e?"video":"audio"]:s?{deviceId:{exact:s.deviceId}}:!!c};return Ae.a.createElement(eo,Object.assign({share:!1},g,{replaceAudio:this.state.previewAudioId,replaceVideo:this.state.previewVideoId,render:t=>l||n?Ae.a.createElement("select",{value:a?a.deviceId:"disable",onChange:n=>{const i=n.target.value;i&&(this.setState({allowInitialAutoCapture:!1}),"disable"!==i?this.runGetMedia(t,{[e]:{deviceId:{exact:i}}}):"audio"===e?(u(this.state.previewAudioId),this.setState({previewAudioId:void 0})):(u(this.state.previewVideoId),this.setState({previewVideoId:void 0})),n.target.value)}},o.map(e=>Ae.a.createElement("option",{key:e.deviceId,value:e.deviceId},e.label)),Ae.a.createElement("option",{key:"disabled",value:"disable"},f)):Ae.a.createElement(ls,{onClick:()=>{this.runGetMedia(t)}},Ae.a.createElement("span",null,h))}))}runGetMedia(e,t){this.setState({allowInitialAutoCapture:!1}),e(t).then(e=>{this.setState({previewAudioId:e&&e.audio,previewVideoId:e&&e.video})})}}var fs=hs;const gs=lo.d.div`
text-align: center;
h2 {
font-size: 36px;
font-weight: 300;
color: ${({theme:e})=>ho(e.foreground)};
}
input {
display: block;
padding: 7px;
width: 100%;
max-width: 450px;
margin: 0 auto;
border-radius: 3px;
border: ${({theme:e})=>lo.c`1px solid ${ho(e.border)}`};
margin-bottom: 10px;
}
button {
padding-left: 8px;
padding-right: 8px;
}
`,vs=Object(lo.d)(oa)`
color: ${({theme:e})=>ho(e.buttonActionText)};
background-color: ${({theme:e})=>ho(e.buttonActionBackground)};
:hover {
background-color: ${({theme:e})=>ho(e.buttonActionBackgroundHover)};
}
:active {
background-color: ${({theme:e})=>ho(e.buttonActionBackgroundActive)};
}
`,bs=Object(lo.d)(oa)({marginRight:"10px"});class ys extends Ie.Component{constructor(e){super(e),this.onChange=e=>{this.setState({password:e.target.value})},this.onKeyPress=e=>{13===e.keyCode&&this.onClick()},this.onClick=()=>{this.props.setPassword(this.state.password),this.props.onSubmit&&this.props.onSubmit()},this.state={password:""}}render(){return Ae.a.createElement(gs,null,Ae.a.createElement("h1",null,this.props.setting?"Set a password for this room":"A password is required to enter this room"),this.props.passwordIsIncorrect&&Ae.a.createElement("p",null,"The password you entered is incorrect. Please try again."),Ae.a.createElement("input",{autoFocus:!0,type:"text",placeholder:"Your shared key",value:this.state.password,onChange:this.onChange,onKeyUp:this.onKeyPress}),Ae.a.createElement(bs,{onClick:this.props.onSubmit},"Cancel"),Ae.a.createElement(vs,{onClick:this.onClick},this.props.setting?"Lock":"Join"))}}var ks=Ae.a.createContext({hiddenPeers:[],togglePeer:()=>null}),ws=n(52),Ss=n.n(ws),Cs=n(53),xs=n.n(Cs),Es=n(54),Ts=n.n(Es),_s=n(24),js=n.n(_s),Os=n(17),Rs=n.n(Os),Ps=n(25),Is=n.n(Ps);const As=Object(lo.d)("div")({flex:1,display:"flex",alignItems:"center",justifyContent:"center",position:"relative",backgroundColor:"#E9ECEC",height:"100%"}),Ms=Object(lo.d)("div")({position:"absolute",top:0,right:0,bottom:0,left:0,zIndex:10,display:"flex",justifyContent:"center",alignItems:"center",fontSize:"80px","& svg":{fill:"rgba(255, 255, 255, 0.5)"}});var Ns=()=>Ae.a.createElement(As,null,Ae.a.createElement(Ms,null,Ae.a.createElement(Is.a,null)));class Ds extends Ae.a.Component{render(){return Ae.a.createElement("div",{id:this.props.id,className:this.props.className,style:this.props.style,ref:e=>{this.el=e}},this.renderContent())}async startFullScreen(){const e=this.el,t=e.requestFullscreen||e.msRequestFullscreen||e.mozRequestFullScreen||e.mozRequestFullscreen||e.webkitRequestFullScreen||e.webkitRequestFullscreen;if(t){const n=await t.call(e);return this.setState({fullScreenActive:this.fullScreenActive()}),n}}async exitFullScreen(){const e=document.exitFullscreen||document.mozCancelFullScreen||document.webkitExitFullscreen;if(e){const t=await e.call(document);return this.setState({fullScreenActive:this.fullScreenActive()}),t}}fullScreenActive(){return!!(document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement)}async toggleFullScreen(){return this.fullScreenActive()?this.exitFullScreen():this.startFullScreen()}renderContent(){const e={fullScreenActive:this.fullScreenActive(),toggleFullScreen:()=>this.toggleFullScreen()};let t=this.props.render;return t||"function"!=typeof this.props.children||(t=this.props.children),t?t(e):this.props.children}}const Ls=Object(lo.d)(oa)({display:"inline-block",justifySelf:"flex-end",opacity:.3,backgroundColor:"black",color:"white",transition:"opacity 200ms linear",marginBottom:"16px",marginLeft:"4px",":hover":{cursor:"pointer",backgroundColor:"black",opacity:.7},"& svg":{fill:"white"}}),qs=Object(lo.d)(oa)({display:"inline-block",justifySelf:"flex-end",opacity:.3,backgroundColor:"red",color:"white",transition:"opacity 200ms linear",marginBottom:"16px",marginLeft:"24px",":hover":{cursor:"pointer",backgroundColor:"red",opacity:.7},"& svg":{fill:"white"}}),Fs=lo.d.span({display:"inline-block",backgroundColor:"black",opacity:.3,color:"white",marginTop:"16px",marginLeft:"4px",fontSize:"16px",padding:"2px 7px 2px 7px",borderRadius:"5px",transition:"opacity 200ms linear","&:hover":{cursor:"pointer",opacity:.7}}),zs=lo.d.div({position:"relative",display:"flex",justifyContent:"center",alignItems:"center",height:"100%",width:"100%","& video:first-of-type":{},"& video:last-of-type":{position:"absolute",top:"16px",right:"16px",width:"15%",maxWidth:"200px",minWidth:"100px",objectPosition:"top"}}),Us=e=>e.media.loaded?Ae.a.createElement(ao,{media:e.media,qualityProfile:e.media.screenCapture?void 0:e.qualityProfile}):Ae.a.createElement(Ns,null),Bs=({media:e,fullScreenActive:t})=>{const n=e.filter(e=>"video"===e.kind&&!e.remoteDisabled);if(n.length>0){const e=n.filter(e=>!e.screenCapture),i=n.filter(e=>e.screenCapture);return 1===n.length?Ae.a.createElement(Us,{media:n[0],qualityProfile:t?"high":"medium"}):0===i.length?Ae.a.createElement(Us,{media:e[0],qualityProfile:t?"high":"medium"}):Ae.a.createElement(zs,null,Ae.a.createElement(Us,{media:i[0]}),Ae.a.createElement(ao,{media:e[0],qualityProfile:"low"}))}return Ae.a.createElement(Ns,null)},Vs=lo.d.div({position:"absolute",top:0,right:0,bottom:0,left:0,zIndex:100,display:"flex",flexDirection:"column"}),$s=lo.d.div({flex:1,display:"flex",justifyContent:"center",alignItems:"flex-end","& span":{backgroundColor:"rgba(0, 0, 0, 0.3)",color:"white",padding:"8px 16px",borderRadius:"4px",fontSize:"18px"}}),Hs=lo.d.span({textAlign:"center",fontSize:"48px",opacity:.8}),Ws=Object(lo.d)(oa)({display:"inline-block",justifySelf:"flex-end",opacity:.3,backgroundColor:"black",color:"white",transition:"opacity 200ms linear",marginBottom:"16px",marginLeft:"16px",":hover":{cursor:"pointer",backgroundColor:"black",opacity:.7},"& svg":{fill:"white"}}),Gs=Object(lo.d)(oa)({display:"inline-block",justifySelf:"flex-end",opacity:.3,backgroundColor:"black",color:"white",transition:"opacity 200ms linear",marginBottom:"16px",marginLeft:"4px",":hover":{cursor:"pointer",backgroundColor:"black",opacity:.7},"& svg":{fill:"white"}});function Qs(e){for(const t of e)if("audio"===t.kind&&t.remoteDisabled)return!1;return!0}const Js=({audioIsMuted:e,fullScreenActive:t,peer:n,toggleFullScreen:i,setPassword:r})=>{const{togglePeer:o}=Object(Ie.useContext)(ks);return Ae.a.createElement(Vs,null,Ae.a.createElement("div",null,Ae.a.createElement(Fs,null,n.displayName)),Ae.a.createElement($s,null,n.rtt&&Ae.a.createElement("span",null,n.rtt)),Ae.a.createElement(Hs,null,n.muted||e?Ae.a.createElement(Rs.a,{fill:n.speaking?"red":"white"}):null),Ae.a.createElement(Dr,{peer:n,render:({isMuted:e,mute:a,unmute:s,kick:l})=>Ae.a.createElement("div",null,Ae.a.createElement(Ws,{onClick:i,title:t?"Exit full screen":`Show ${n.displayName} full screen`},t?Ae.a.createElement(xs.a,{fill:"white"}):Ae.a.createElement(Ss.a,{fill:"white"})),Ae.a.createElement(Gs,{title:"Hide video from "+n.displayName},Ae.a.createElement(js.a,{fill:"white",onClick:()=>o(n.id)})),Ae.a.createElement(Ls,{title:e?"Unmute "+n.displayName:"Mute "+n.displayName,onClick:()=>e?s():a()},e?Ae.a.createElement(Ae.a.Fragment,null,Ae.a.createElement(Rs.a,{fill:"white"}),Ae.a.createElement("span",null,"Unmute")):Ae.a.createElement(Ae.a.Fragment,null,Ae.a.createElement(ra.a,{fill:"white"}),Ae.a.createElement("span",null,"Mute"))),Ae.a.createElement(qs,{title:"Kick participant from the call",onClick:()=>{l(),r(""+Math.floor(1e4*Math.random()))}},Ae.a.createElement(Ts.a,{fill:"red"}),Ae.a.createElement("span",null,"Kick")))}))};var Ks=({peer:e,media:t,setPassword:n,onlyVisible:i})=>Ae.a.createElement(Ds,{style:{width:"100%",height:"100%"}},({fullScreenActive:r,toggleFullScreen:o})=>Ae.a.createElement(Ae.a.Fragment,null,Ae.a.createElement(Js,{peer:e,fullScreenActive:r,audioIsMuted:!Qs(t),toggleFullScreen:o,setPassword:n}),Ae.a.createElement(Bs,{media:t,fullScreenActive:r||i})));const Ys=Object(lo.d)(Rr)({flex:1,backgroundColor:"#eaecec",maxHeight:"calc(var(--vh, 1vh) * 100)","& video":{width:"100%",height:"100%",objectFit:"contain"},"& > div":{position:"relative"}});var Xs=({roomAddress:e,activeSpeakerView:t,setPassword:n})=>{const{hiddenPeers:i}=Object(Ie.useContext)(ks);return Ae.a.createElement(pr,{speaking:t||void 0,room:e,render:({peers:e})=>{const r=e.filter(e=>!i.includes(e.id));return r.length>0||t?Ae.a.createElement(Ys,{items:r,renderCell:e=>Ae.a.createElement(Jr,{peer:e.address,render:({media:t})=>Ae.a.createElement(Ks,{media:t,peer:e,setPassword:n,onlyVisible:1===r.length})})}):Ae.a.createElement(xo.Consumer,null,({gridPlaceholder:e})=>Ae.a.createElement("div",{style:{flex:1,display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},ref:t=>{if(t&&e&&0===t.childElementCount){const n=e();n&&t.appendChild(n)}}}))}})},Zs=n(55),el=n.n(Zs),tl=n(56),nl=n.n(tl),il=n(57),rl=n.n(il),ol=n(58),al=n.n(ol),sl=n(59),ll=n.n(sl);const cl=Object(lo.d)(oa)`
grid-area: invite;
background-color: ${({theme:e})=>ho(e.buttonPrimaryBackground)};
color: ${({theme:e})=>ho(e.buttonPrimaryText)};
:hover {
background-color: ${({theme:e})=>ho(e.buttonPrimaryBackgroundHover)};
}
:active {
background-color: ${({theme:e})=>ho(e.buttonPrimaryBackgroundActive)};
}
svg {
fill: ${({theme:e})=>ho(e.buttonPrimaryText)};
}
`;class ul extends Ie.Component{constructor(e){super(e),this.onClick=async()=>{try{if("clipboard"in navigator)await navigator.clipboard.writeText(window.location.href);else{const e=document.createElement("textarea");e.style.fontSize="12pt",e.style.border="0",e.style.padding="0",e.style.margin="0",e.style.position="absolute",e.style.left="-9999px";const t=window.pageYOffset||document.documentElement.scrollTop;e.style.top=t+"px",document.body.appendChild(e),e.setAttribute("readonly",""),e.value=window.location.href,e.select(),document.execCommand("copy"),document.body.removeChild(e)}this.setState({copied:!0})}catch(e){console.error(e)}},this.state={copied:!1}}render(){return Ae.a.createElement(cl,{onClick:this.onClick},Ae.a.createElement(ll.a,null),Ae.a.createElement("span",null,this.state.copied?"Copied Link!":"Invite"))}}const dl=Object(lo.d)(oa)({gridArea:"lock"}),pl=Object(lo.d)(oa)({width:"100%"}),ml=lo.d.div({gridArea:"pin",textAlign:"center"}),hl=lo.d.div({display:"grid",gridTemplateAreas:"\n 'pin pin'\n 'invite invite'\n 'leave lock'\n ",gridColumnGap:"10px",gridRowGap:"10px",marginBottom:"10px"}),fl=Object(lo.d)(al.a)`
display: flex;
align-items: center;
justify-content: center;
background-color: ${({theme:e})=>ho(e.background)};
position: relative;
top: calc(50% - 115px);
bottom: 40px;
border: ${({theme:e})=>lo.c`1px solid ${ho(e.border)}`};
overflow: auto;
border-radius: 4px;
outline: none;
padding: 35px 20px 20px;
max-width: 500px;
margin: 0px auto;
`,gl={zIndex:1e3,position:"fixed",top:"0",left:"0",right:"0",bottom:"0",backgroundColor:"rgba(0, 0, 0, 0.4)",boxShadow:"inset 0 0 100px rgba(0,0,0,.7)"};var vl=({shouldShowPasswordModal:e,passwordRequired:t,showPasswordModal:n,hidePasswordModal:i,setPassword:r,roomId:o,currentPassword:a})=>{const s=Ca("leave-button-url");let l;return s&&(l=new URL(s),l.searchParams.set("room",o)),Ae.a.createElement(hl,null,Ae.a.createElement(ul,null),Ae.a.createElement(dl,{onClick:t?()=>{r("")}:()=>{const e=""+Math.floor(1e4*Math.random());r(e)}},t?Ae.a.createElement(Ae.a.Fragment,null,Ae.a.createElement(nl.a,{fill:"#505658"}),Ae.a.createElement("span",null,"Unlock")):Ae.a.createElement(Ae.a.Fragment,null,Ae.a.createElement(rl.a,{fill:"#505658"}),Ae.a.createElement("span",null,"Lock"))),Ae.a.createElement(ml,null,a&&Ae.a.createElement("span",null,"Room Locked: ",a),!a&&Ae.a.createElement("span",null,"Anyone may join")),Ae.a.createElement("a",{style:{gridArea:"leave"},href:l?l.toString():"/"},Ae.a.createElement(pl,null,Ae.a.createElement(el.a,{fill:"#505658"}),Ae.a.createElement("span",null,"Leave"))),Ae.a.createElement(fl,{isOpen:e,onRequestClose:i,style:{overlay:gl}},Ae.a.createElement(ys,{setting:!0,setPassword:r,passwordIsIncorrect:!1,onSubmit:i})))},bl=n(60),yl=n.n(bl);const kl=Object(lo.d)(oa)({marginRight:"5px"}),wl=lo.d.ul({listStyle:"none","& li":{marginBottom:"10px"}}),Sl=({peer:e})=>{const{hiddenPeers:t,togglePeer:n}=Object(Ie.useContext)(ks),i=t.includes(e.id);return Ae.a.createElement("li",null,Ae.a.createElement(Dr,{peer:e,render:({isMuted:e,mute:t,unmute:n})=>Ae.a.createElement(kl,{onClick:()=>e?n():t()},e?Ae.a.createElement(Rs.a,{fill:"#505658"}):Ae.a.createElement(ra.a,{fill:"#505658"}))}),Ae.a.createElement(kl,{onClick:()=>n(e.id)},i?Ae.a.createElement(yl.a,{fill:"#505658"}):Ae.a.createElement(js.a,{fill:"#505658"})),e.displayName||"Anonymous")};var Cl=({roomAddress:e})=>Ae.a.createElement(pr,{room:e,render:({peers:e})=>e.length>0?Ae.a.createElement(wl,null,e.map(e=>Ae.a.createElement(Sl,{key:e.id,peer:e}))):Ae.a.createElement(xo.Consumer,null,({emptyRosterPlaceholder:e})=>Ae.a.createElement("div",{ref:t=>{if(t&&e&&0===t.childElementCount){const n=e();n&&t.appendChild(n)}}}))});const xl=lo.d.div`
position: absolute;
bottom: 0;
right: 0;
left: 0;
text-align: center;
padding: 10px 0;
color: ${({theme:e})=>ho(e.foreground)};
a {
color: ${({theme:e})=>ho(e.foreground)} !important;
padding: 0 15px;
font-size: 14px;
text-decoration: none;
:hover {
color: ${({theme:e})=>ho(fo(e.foreground,.05))} !important;
}
}
`;var El=({roomId:e})=>{const t=Ca("help-url"),n=Ca("feedback-url");if(t&&n){const i=new URL(n);return i.searchParams.set("room",e),Ae.a.createElement(xl,null,Ae.a.createElement("a",{href:t,target:"_blank",rel:"noopener noreferrer"},"Help")," ","∙"," ",Ae.a.createElement("a",{href:i.toString(),target:"_blank",rel:"noopener noreferrer"},"Feedback"))}return null};var Tl=({displayName:e,setDisplayName:t})=>{const[n,i]=Object(Ie.useState)("Anonymous"===e?"":e),r=e=>{t(e),function(e){localStorage.setItem("displayName",e)}(e)};return Object(Ie.useEffect)(()=>{const n=localStorage.getItem("displayName")||"";null!==n&&n!==e&&(t(n),i(n))},[e,t,i]),Ae.a.createElement("input",{placeholder:"Your name (click to edit)",value:n,onChange:e=>i(e.target.value),onKeyPress:({key:e})=>{"Enter"===e&&r(n)},onBlur:()=>{r(n)}})},_l=n(61),jl=n.n(_l),Ol=n(62),Rl=n.n(Ol);const Pl=Object(lo.d)(oa)({display:"none",[jo]:{display:"block"}}),Il=lo.d.span({width:"120px"});var Al=()=>Ae.a.createElement(Yr,{audio:!0,render:(e,t)=>t.available?Ae.a.createElement(Pl,{title:"Screen Share",onClick:e},Ae.a.createElement(Rl.a,{fill:"#505658"}),Ae.a.createElement("span",null,"Share screen")):Ae.a.createElement(Il,null)});const Ml=lo.e`
0% {
opacity: 1;
}
50% {
opacity: .25;
}
100% {
opacity: 1;
}
`,Nl=Object(lo.d)(oa)`
background-color: ${e=>e.isOff?"#e60045":""};
&:not(:hover) svg {
fill: ${e=>e.isOff?"white":""};
}
&:hover svg {
fill: '';
}
${e=>e.isFlashing?lo.c`
animation: ${Ml} 0.5s ease-in-out infinite;
`:""}
}
`,Dl=Object(lo.d)(oa)(({isOff:e})=>({backgroundColor:e?"#e60045":"","& svg":{fill:e?"white":""}})),Ll=lo.d.div({display:"flex",marginBottom:"10px",[_o]:{"& button":{flex:1,"&:first-of-type":{marginRight:"10px"}}},[jo]:{justifyContent:"space-between"}});var ql=({hasAudio:e,isMuted:t,unmute:n,mute:i,isPaused:r,isSpeakingWhileMuted:o,resumeVideo:a,pauseVideo:s})=>Ae.a.createElement(Ll,null,Ae.a.createElement(eo,{audio:{deviceId:{ideal:localStorage.preferredAudioDeviceId}},share:!0,render:(r,a)=>Ae.a.createElement(Nl,{isOff:t,isFlashing:o||a.requestingMicrophoneCapture,onClick:()=>{a.requestingCapture||(e?t?n():i():r())}},t?Ae.a.createElement(jl.a,null):Ae.a.createElement(ea.a,null))}),Ae.a.createElement(Dl,{isOff:r,onClick:()=>r?a():s()},r?Ae.a.createElement(Is.a,null):Ae.a.createElement(na.a,null)),Ae.a.createElement(Al,null));const Fl=lo.d.span`
margin-left: auto !important;
display: inline-block;
line-height: 0px;
font-size: 16px;
position: relative;
svg {
fill: ${({theme:e})=>ho(e.foreground)};
:hover {
fill: ${({theme:e})=>ho(e.primaryBackground)};
}
}
`,zl=lo.d.span({position:"absolute",top:"23px",left:"-1px",width:0,height:0,borderLeft:"10px solid transparent",borderRight:"10px solid transparent",borderBottom:"10px solid black",zIndex:1}),Ul=lo.d.span({visibility:"visible",fontSize:"11px",backgroundColor:"#000",color:"#fff",textAlign:"center",padding:"5px 0",borderRadius:"3px",whiteSpace:"normal",position:"absolute",width:"140px",top:"30px",left:"-23px",lineHeight:"normal",zIndex:1});var Bl=({text:e})=>{const[t,n]=Object(Ie.useState)(!1),i=()=>n(!t);return Ae.a.createElement(Fl,{onMouseEnter:i,onMouseLeave:i},t&&Ae.a.createElement("span",null,Ae.a.createElement(zl,null),Ae.a.createElement(Ul,null,e)),Ae.a.createElement(ca.a,null))};const Vl=lo.d.div({position:"relative","& input":{position:"absolute",top:0,right:0,left:0,zIndex:100,width:"100%",boxSizing:"border-box",border:0,backgroundColor:"rgba(0, 0, 0, 0.5)",color:"white",fontSize:"14px",padding:"8px"},"& video":{display:"block",objectFit:"cover",width:"100%",height:"100%",marginBottom:"10px"}}),$l=lo.d.div({marginBottom:"10px","& input":{marginRight:"5px"},"& label":{fontWeight:"bold",fontSize:"12px"}}),Hl=lo.d.div({width:"100%",height:"133px",backgroundColor:"#262a2c",marginBottom:"10px"}),Wl=lo.d.label({display:"flex",alignItems:"center",marginBottom:"5px"}),Gl=lo.d.div({position:"relative"}),Ql=lo.d.div({position:"absolute",top:0,right:0,bottom:0,left:0,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"black",opacity:0,transition:"opacity 200ms linear",color:"white",zIndex:100,"&:hover":{cursor:"pointer",opacity:.8}}),Jl=({screenshareMedia:e})=>Ae.a.createElement(Mr,{media:e,autoRemove:!0,render:({media:e,stopSharing:t})=>Ae.a.createElement(Gl,null,Ae.a.createElement(Ql,{onClick:t},Ae.a.createElement("span",null,"Stop sharing")),e&&Ae.a.createElement(ao,{media:e}))});var Kl=({activeSpeakerView:e,toggleActiveSpeakerView:t,pttMode:n,togglePttMode:i})=>Ae.a.createElement(ro,{render:({hasAudio:e,isMuted:t,mute:r,unmute:o,isPaused:a,isSpeaking:s,isSpeakingWhileMuted:l,pauseVideo:c,resumeVideo:u,user:d,setDisplayName:p})=>Ae.a.createElement("div",null,Ae.a.createElement(Vl,null,Ae.a.createElement(Tl,{displayName:d.displayName,setDisplayName:p}),Ae.a.createElement(Ir,{shared:!0,render:({media:e})=>{const t=e.filter(e=>"video"===e.kind);return t.length>0?Ae.a.createElement(Ae.a.Fragment,null,t.map(e=>e.screenCapture?Ae.a.createElement(Jl,{key:e.id,screenshareMedia:e}):Ae.a.createElement(ao,{key:e.id,media:e}))):Ae.a.createElement(Hl,null)}})),Ae.a.createElement(ql,{hasAudio:e,isMuted:t,unmute:o,mute:r,isPaused:a,resumeVideo:()=>u({screenCapture:!1}),pauseVideo:()=>c({screenCapture:!1}),isSpeaking:s,isSpeakingWhileMuted:l}),Ae.a.createElement($l,null,Ae.a.createElement("div",null,Ae.a.createElement(Wl,null,Ae.a.createElement("input",{type:"checkbox",checked:n,onChange:i}),"Walkie Talkie Mode",Ae.a.createElement(Bl,{text:"Use spacebar to toggle your microphone on/off"})))))});const Yl=lo.d.div`
position: relative;
padding: 10px;
${_o} {
position: absolute;
z-index: 200;
top: 0;
width: 185px;
}
${jo} {
width: 220px;
border-right: ${({theme:e})=>lo.c`1px solid ${ho(e.border)}`};
}
`;class Xl extends Ie.Component{constructor(e){super(e),this.showPasswordModal=()=>{this.setState({showPasswordModal:!0})},this.hidePasswordModal=()=>{this.setState({showPasswordModal:!1})},this.state={showPasswordModal:!1}}render(){const{roomAddress:e,activeSpeakerView:t,toggleActiveSpeakerView:n,passwordRequired:i,pttMode:r,togglePttMode:o,setPassword:a,roomId:s,currentPassword:l}=this.props;return Ae.a.createElement(Yl,null,Ae.a.createElement(vl,{shouldShowPasswordModal:this.state.showPasswordModal,passwordRequired:i,showPasswordModal:this.showPasswordModal,hidePasswordModal:this.hidePasswordModal,setPassword:a,roomId:s,currentPassword:l}),Ae.a.createElement(Kl,{activeSpeakerView:t,toggleActiveSpeakerView:n,pttMode:r,togglePttMode:o}),Ae.a.createElement(Cl,{roomAddress:e}),Ae.a.createElement(El,{roomId:s}))}}class Zl extends Ie.Component{componentDidUpdate(e){this.props.peers.length>e.peers.length?this.props.onPeerEnter():this.props.peers.length<e.peers.length&&this.props.onPeerExit()}render(){return null}}const ec=ts("sound-peer-enter"),tc=ts("sound-peer-exit"),nc=ts("sound-message-send"),ic=ts("sound-message-receive");var rc=({roomAddress:e})=>Ae.a.createElement(ro,{render:({user:t})=>Ae.a.createElement(Ae.a.Fragment,null,Ae.a.createElement(pr,{room:e,render:({peers:e})=>Ae.a.createElement(Zl,{peers:e,onPeerEnter:()=>ec(t.audioOutputDeviceId),onPeerExit:()=>tc(t.audioOutputDeviceId)})}),Ae.a.createElement(wr,{room:e,render:({groups:e})=>Ae.a.createElement(Ko,{groups:e,onSend:()=>nc(t.audioOutputDeviceId),onReceive:()=>ic(t.audioOutputDeviceId)})}))});const oc=lo.d.div({alignItems:"center",display:"flex",flex:"1 1 0%",justifyContent:"center",position:"relative"}),ac=lo.d.div({display:"flex",flexDirection:"column",minHeight:"calc(var(--vh, 1vh) * 100)"}),sc=lo.d.div({flex:1,display:"flex",position:"relative",flexDirection:"column",[jo]:{flexDirection:"row"}}),lc=lo.d.div({alignItems:"center",display:"flex",flex:"1 1 0%",justifyContent:"center",position:"relative"});class cc extends Ie.Component{constructor(e){super(e),this.toggleActiveSpeakerView=()=>{this.setState({activeSpeakerView:!this.state.activeSpeakerView})},this.toggleRtt=()=>{this.setState({sendRtt:!this.state.sendRtt})},this.togglePttMode=e=>{this.setState({pttMode:!this.state.pttMode},()=>{this.state.pttMode?(document.addEventListener("keydown",this.unmute),document.addEventListener("keyup",this.mute),window.addEventListener("blur",this.props.mute),this.props.mute()):(document.removeEventListener("keydown",this.unmute),document.removeEventListener("keyup",this.mute),window.removeEventListener("blur",this.props.mute),this.props.unmute())}),e.target&&e.target.blur()},this.mute=e=>{" "===e.key&&this.props.mute()},this.unmute=e=>{" "===e.key&&this.props.unmute()},this.setPassword=e=>{e?history.pushState(null,"",`${window.location.pathname}?password=${e}`):history.pushState(null,"",""+window.location.pathname),this.setState({password:e})},this.toggleChat=()=>{this.setState({chatOpen:!this.state.chatOpen})},this.togglePeer=e=>{if(this.state.hiddenPeers.includes(e)){const t=[...this.state.hiddenPeers],n=t.indexOf(e);t.splice(n),this.setState({hiddenPeers:t})}else this.setState({hiddenPeers:[...this.state.hiddenPeers,e]})},this.state={activeSpeakerView:!1,consentToJoin:!1,password:e.initialPassword,pttMode:!1,sendRtt:!1,chatOpen:!1,hiddenPeers:[]}}render(){return Ae.a.createElement(Hr,{configUrl:this.props.configUrl,userData:this.props.userData},Ae.a.createElement(Gr,null),Ae.a.createElement(ks.Provider,{value:{hiddenPeers:this.state.hiddenPeers,togglePeer:this.togglePeer}},Ae.a.createElement(ac,null,!this.state.consentToJoin&&Ae.a.createElement(fs,{onAccept:()=>{this.setState({consentToJoin:!0})}}),this.state.consentToJoin&&Ae.a.createElement(no,{password:this.state.password,name:this.props.name},({room:e})=>Ae.a.createElement(sc,null,Ae.a.createElement(rc,{roomAddress:e.address}),Ae.a.createElement(Xl,{roomAddress:e.address,activeSpeakerView:this.state.activeSpeakerView,toggleActiveSpeakerView:this.toggleActiveSpeakerView,pttMode:this.state.pttMode,togglePttMode:this.togglePttMode,setPassword:this.setPassword,passwordRequired:e.passwordRequired,roomId:e.id,currentPassword:e.password}),Ae.a.createElement(Ur,null,Ae.a.createElement(lc,null,Ae.a.createElement("h1",null,"Connecting..."))),Ae.a.createElement(Vr,null,Ae.a.createElement(lc,null,Ae.a.createElement("h1",null,"Lost connection. Reattempting to join..."))),Ae.a.createElement($r,null,Ae.a.createElement(lc,null,Ae.a.createElement("h1",null,"Connection failed."))),Ae.a.createElement(Br,null,e.joined?Ae.a.createElement(Xs,{roomAddress:e.address,activeSpeakerView:this.state.activeSpeakerView,setPassword:this.setPassword}):e.passwordRequired?Ae.a.createElement(oc,null,Ae.a.createElement(ys,{setting:!1,passwordIsIncorrect:!!this.state.password,setPassword:this.setPassword})):e.roomNotStarted?Ae.a.createElement(lc,null,Ae.a.createElement("h1",null,"This room has not started yet.")):e.banned?Ae.a.createElement(lc,null,Ae.a.createElement("h1",null,"This room is not available.")):Ae.a.createElement(lc,null,Ae.a.createElement("h1",null,"Joining room..."))),this.state.chatOpen?Ae.a.createElement($o,{disabled:!e.joined,roomAddress:e.address,sendRtt:this.state.sendRtt,toggleRtt:this.toggleRtt,toggleChat:this.toggleChat}):Ae.a.createElement(Xo,{roomAddress:e.address,onClick:this.toggleChat}))))))}}var uc=ft(null,(function(e,t){return{...t,mute:()=>e(Gi.muteSelf()),unmute:()=>e(Gi.unmuteSelf())}}))(cc);const dc=lo.d.div`
height: calc(var(--vh, 1vh) * 100);
width: 100vw;
background-color: ${({theme:e})=>ho(e.background)};
color: ${({theme:e})=>ho(e.foreground)};
a {
color: ${({theme:e})=>ho(e.primaryBackground)};
:hover {
color: ${({theme:e})=>ho(go(e.primaryBackground,.1))};
}
}
`,pc=lo.b`
html {
box-sizing: border-box;
}
*,
*:before,
*:after {
box-sizing: inherit;
}
* {
margin: 0;
padding: 0;
}
body, html {
margin: 0;
padding: 0;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
font-size: 16px;
line-height: 1.5;
color: #4d5659;
}
a {
background-color: transparent;
text-decoration: none;
}
button:hover {
cursor: pointer;
}
`;class mc extends Ie.Component{render(){const{roomName:e,configUrl:t,userData:n,initialPassword:i,gridPlaceholder:r,haircheckHeaderPlaceholder:o,emptyRosterPlaceholder:a,homepagePlaceholder:s}=this.props;return Ae.a.createElement(Co,null,Ae.a.createElement(xo.Provider,{value:{gridPlaceholder:r,haircheckHeaderPlaceholder:o,emptyRosterPlaceholder:a,homepagePlaceholder:s}},Ae.a.createElement("div",null,Ae.a.createElement(pc,null),Ae.a.createElement(dc,null,e?Ae.a.createElement(uc,{name:e,configUrl:t,userData:n,initialPassword:i}):Ae.a.createElement("div",{ref:e=>{if(e&&s&&0===e.childElementCount){const t=s();t&&e.appendChild(t)}}})))))}}var hc=mc;const fc=["on","beside","in","beneath","above","under","by","over","against","near"],gc=["autumn","hidden","bitter","misty","silent","empty","dry","dark","summer","icy","delicate","quiet","white","cool","spring","winter","patient","twilight","dawn","crimson","wispy","weathered","blue","billowing","broken","cold","falling","frosty","green","long","late","lingering","bold","little","morning","muddy","old","red","rough","still","small","sparkling","shy","wandering","withered","wild","black","young","holy","solitary","fragrant","aged","snowy","proud","floral","restless","divine","polished","ancient","purple","lively","nameless"],vc=["waterfall","river","breeze","moon","rain","wind","sea","morning","snow","lake","sunset","pine","shadow","leaf","dawn","glitter","forest","hill","cloud","meadow","sun","glade","bird","brook","butterfly","bush","dew","dust","field","fire","flower","firefly","feather","grass","haze","mountain","night","pond","darkness","snowflake","silence","sound","sky","shape","surf","thunder","violet","water","wildflower","wave","water","resonance","sun","wood","dream","cherry","tree","fog","frost","voice","paper","frog","smoke","star"],bc=[["toast","pieces of toast"],["muffin","muffins"],["teacake","teacakes"],["bun","buns"],["bap","baps"],["baguette","baguettes"],["bagel","bagels"],["croissant","croissants"],["crumpet","crumpets"],["pancake","pancakes"],["potato cake","potato cakes"],["hot cross bun","hot cross buns"],["flapjack","flapjacks"],["waffle","waffles"],["cheese and ham breville","cheese and ham brevilles"],["toasted teacake","toasted teacakes"],["brioche","brioches"],["cornbread","pieces of cornbread"],["yeast bread","yeast breads"],["flat bread","flat breads"],["sweet bread","sweet breads"],["fruit bread","fruit breads"],["rye","ryes"],["soda bread","soda breads"],["breadstick","breadsticks"],["burger bun","burger buns"],["chapati","chapatis"],["ciabatta","ciabattas"],["cracker","crackers"],["crepe","crepes"],["donut","donuts"],["pan au chocolate","pans au chocolate"]],yc=["a couple","a few","two","three","four","five","six","half a dozen","seven","eight","nine","ten","eleven","a dozen","twelve"];function kc(e){return e[Math.floor(Math.random()*e.length)]}var wc=function(){return Math.floor(5*Math.random())>1?[kc(fc),"a",kc(gc),kc(vc)].join("-").replace(/\s/g,"-").replace(/-a-(a|e|i|o|u)/,"-an-$1"):[kc(yc),kc(bc)[1],"and",kc(["a","one"]),kc(bc)[0]].join("-").replace(/\s/g,"-")};const Sc=Ca("config-url"),Cc=Sc||"",xc=Ca("user-data"),Ec=xc||"",Tc=window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__||y,_c=p(h({simplewebrtc:cr}),{simplewebrtc:{}},Tc(k(C)));function jc(){const e=.01*window.innerHeight;document.documentElement.style.setProperty("--vh",e+"px")}window.store=_c,window.actions=Gi,window.selectors=un,jc(),window.addEventListener("resize",jc),localStorage.disablePageRefresh?console.log("Forced page refresh disabled"):setTimeout(()=>{window.location.reload(!0)},108e5);t.default={run:({roomName:e,initialPassword:t,root:n,gridPlaceholder:i,haircheckHeaderPlaceholder:r,emptyRosterPlaceholder:o,homepagePlaceholder:a})=>{Cc.endsWith("YOUR_API_KEY")?bt.a.render(Ae.a.createElement("div",{className:"container",style:{textAlign:"left"}},Ae.a.createElement("h1",null,"Configuration Setup Needed:"),Ae.a.createElement("p",null,"Edit ",Ae.a.createElement("code",null,"public/index.html")," to add your API key to the configuration URL."),Ae.a.createElement("p",null,"Visit ",Ae.a.createElement("a",{href:"https://simplewebrtc.com"},"simplewebrtc.com")," to sign up and get an API key."),Ae.a.createElement("h2",null,"How to set your API key:"),Ae.a.createElement("p",null,"See the meta tag section marked ",Ae.a.createElement("code",null,"IMPORTANT SETUP")," in"," ",Ae.a.createElement("code",null,"public/index.html"),":"),Ae.a.createElement("pre",{style:{textAlign:"left"}},"\x3c!-- IMPORTANT SETUP --\x3e",Ae.a.createElement("br",null),"\x3c!-- Change the YOUR_API_KEY section of the config URL to match your API key --\x3e",Ae.a.createElement("br",null),'<meta\n name="simplewebrtc-config-url"\n content="https://api.simplewebrtc.com/config/guest/YOUR_API_KEY"\n/>')),n):bt.a.render(Ae.a.createElement(Fe,{store:_c},Ae.a.createElement(hc,{roomName:e,configUrl:Cc,userData:Ec,initialPassword:t,gridPlaceholder:i||null,haircheckHeaderPlaceholder:r||null,emptyRosterPlaceholder:o||null,homepagePlaceholder:a||null})),n)},loadTemplate:e=>{const t=document.getElementById(e);return null!==t&&"TEMPLATE"===t.nodeName?document.importNode(t.content,!0):null},randomRoomName:wc}}]).default;
|
import {debounce} from "./utils";
import { POP, NEW, SELL } from './const'
export const itemListenerMixin = {
mounted() {
let newRefresh = debounce(this.$refs.scroll.refresh,100)
this.itemImgListener = () => {
newRefresh()
}
this.$bus.$on('imageLoad',this.itemImgListener)
}
}
export const tabControlMixin = {
data: function () {
return {
currentType: POP
}
},
methods: {
tabClick(index) {
switch (index) {
case 0:
this.currentType = POP
break
case 1:
this.currentType = NEW
break
case 2:
this.currentType = SELL
break
}
// console.log(this.currentType);
}
}
}
|
/*
*
* Copyright (c) 2010-2015 EVE GROUP PTE. LTD.
*
*/
var platformInfo = {};
function makeURL(toolchain, config) {
return 'index.html?tc=' + toolchain + '&config=' + config + '&arch' + platformInfo.nacl_arch;
}
function createWindow(url) {
console.log('createWindow loading ' + url);
chrome.app.window.create(url, {
width: 1360,
height: 800
});
}
function createWindowHidden(url) {
console.log('createWindowHidden (proxy mode) loading ' + url);
chrome.app.window.create(url, {
width: 1280,
height: 800,
hidden: true,
id:'1' //for singleton
});
}
function onLaunched(launchData) {
// Load platformInfo before continuing.
chrome.runtime.getPlatformInfo(function(info) {
platformInfo = info;
//console.log('background.js platformInfo.nacl_arch');
console.log('background.js url=' + launchData.url);
console.log('background.js source=' + launchData.source);
// Send and XHR to get the URL to load from a configuration file.
// Normally you won't need to do this; just call:
//
// chrome.app.window.create('<your url>', {...});
//
// In the SDK we want to be able to load different URLs (for different
// toolchain/config combinations) from the commandline, so we to read
// this information from the file "run_package_config".
var xhr = new XMLHttpRequest();
xhr.open('GET', 'run_package_config', true);
xhr.onload = function() {
var toolchain_config = this.responseText.split(' ');
if(launchData.source == 'url_handler'){
createWindowHidden(makeURL.apply(null, toolchain_config));
}else{
createWindow(makeURL.apply(null, toolchain_config));
}
};
xhr.onerror = function() {
// Can't find the config file, just load the default.
if(launchData.source == 'url_handler'){
createWindowHidden('index.html');
}else{
createWindow('index.html');
}
};
xhr.send();
});
}
chrome.app.runtime.onLaunched.addListener(onLaunched);
|
import React from "react"
import {observer} from 'mobx-react'
/**
* The view takes a TableViewModel implementation which responds wit the data necessary to render the view and
* respond to intents.
*/
const PaginationItemView = observer(
class PaginationItemView extends React.Component {
selectPage(pageToSelect) {
disableAllButtons(this.props.formId);
this.props.viewModel.selectPage(pageToSelect)
}
render() {
let viewModel = this.props.viewModel;
let name = this.props.name;
let value = this.props.children || this.props.name;
let style = {
marginRight: "3px",
color: "white",
textShadow: "1px 1px rgba(50, 50, 50, 0.1)",
backgroundColor: "#95a5a6",
padding: "5px 10px",
borderRadius: "2px",
transition: "background-color 0.2s ease-in-out"
}
if (name === 'First' || name === 'Last') {
var pageToSelect = 1;
if (name === 'Last') {
pageToSelect = viewModel.totalPages;
}
return (
<li className="paginationItem" style={style}><a onClick={() => {
this.selectPage(pageToSelect)
}}>{name}</a></li>
);
}
if (name === 'Prev' || name === 'Next') {
let pageToSelect = Math.max(1, viewModel.currentPage - 1);
let icon = "eui-icon eui-fa-chevron-circle-left";
if (name === 'Next') {
icon = "eui-icon eui-fa-chevron-circle-right";
pageToSelect = Math.min(viewModel.totalPages, viewModel.currentPage + 1);
}
return (
<li className="paginationItem" style={style}><a onClick={() => {
this.selectPage(pageToSelect)
}}><i className={icon}></i></a></li>
)
}
let lineItem = <li key={value} className="paginationItem" style={style}><a onClick={() => {
this.selectPage(value)
}}> {this.props.children}</a></li>
if (this.props.active) {
style.backgroundColor = "#2c3e50"
lineItem = <li key={value} className="paginationItem" style={style}><a onClick={() => {
this.selectPage(value)
}} className="active-page">{this.props.children}</a></li>
}
return (
<React.Fragment>
{lineItem}
</React.Fragment>
);
}
})
export default PaginationItemView
|
import Ajax from './ajax';
import Component from './component';
export default class ComponentRegistry{
constructor(logger, uri){
this.logger = logger;
this.componentDefinitions = {};
this.components = {};
this.loadComponentDefinitions(uri);
}
loadComponentDefinitions(uri){
Ajax.get(uri)
.then( this.setComponentDefinitions.bind(this))
.catch( this.handleError.bind(this));
}
setComponentDefinitions(componentData){
this.componentDefinitions = JSON.parse(componentData);
if(this.logger)
this.logger.logInfo("Component registry loaded:", this.componentDefinitions);
this.loadComponents();
}
handleError(errorMessage){
if(this.logger)
this.logger.logError("Registry Error: Load components:", errorMessage);
}
loadComponents(){
for(let componentName in this.componentDefinitions){
const componentUri = this.componentDefinitions[componentName];
const component = new Component(this.logger,
componentName,
componentUri);
this.components[componentName] = component;
}
}
}
|
var juof = require('../..');
debugger;
|
import React from "react"
import styled, { css } from "styled-components"
import media from "../utils/media"
const ButtonElement = styled.button`
all: unset;
display: flex;
align-items: center;
line-height: 24px;
font-size: var(--m);
font-weight: 700;
border-width: 2px;
border-style: solid;
border-color: ${props => props.disabled ? `var(--darkgray)` : `var(--white)`};
padding: var(--xxs) var(--m) var(--3xs) var(--m);
color: ${props => props.disabled ? `var(--darkgray)` : `var(--white)`};
cursor: ${props => props.disabled ? `not-allowed` : `pointer`};
${props => props.disabled && css`
-webkit-text-fill-color: var(--darkgray);
`}
${props => !props.disabled && css`
&:visited {
border-color: var(--gray);
}
&:hover {
color: var(--black);
-webkit-text-fill-color: var(--black);
border-color: var(--lightgray);
background: var(--lightgray);
}
&:active{
color: var(--black);
-webkit-text-fill-color: var(--black);
border-color: var(--gray);
background: var(--gray);
}
`}
/*
a {
text-decoration: none;
display: flex;
align-items: center;
color: inherit;
&:hover, &:active, &:visited {
color: inherit;
}
} */
svg {
margin-top: -3px;
${media.mediumDown`
margin-top: -2px;
`}
}
svg:first-child {
margin-right: var(--3xs);
}
svg:last-child {
margin-left: var(--3xs);
}
`;
const Button = ({ name, as = "button", href, className, children, disabled }) => {
return (
<ButtonElement name={name} as={as} className={className} disabled={disabled} href={href}>
{children}
</ButtonElement>
)
}
export default Button
|
/**
* @description
* 简单上传:点击按钮,直接选择文件上传
* @author Jinqn
* @date 2014-03-31
*/
UE.plugin.register('simpleupload', function (){
var me = this,
isLoaded = false,
containerBtn;
function initUploadBtn(){
var w = containerBtn.offsetWidth || 20,
h = containerBtn.offsetHeight || 20,
btnIframe = document.createElement('iframe'),
btnStyle = 'display:block;width:' + w + 'px;height:' + h + 'px;overflow:hidden;border:0;margin:0;padding:0;position:absolute;top:0;left:0;filter:alpha(opacity=0);-moz-opacity:0;-khtml-opacity: 0;opacity: 0;cursor:pointer;';
domUtils.on(btnIframe, 'load', function(){
var timestrap = (+new Date()).toString(36),
wrapper,
btnIframeDoc,
btnIframeBody;
btnIframeDoc = (btnIframe.contentDocument || btnIframe.contentWindow.document);
btnIframeBody = btnIframeDoc.body;
wrapper = btnIframeDoc.createElement('div');
wrapper.innerHTML = '<form id="edui_form_' + timestrap + '" target="edui_iframe_' + timestrap + '" method="POST" enctype="multipart/form-data" action="' + me.getOpt('serverUrl') + '" ' +
'style="' + btnStyle + '">' +
'<input id="edui_input_' + timestrap + '" type="file" accept="image/*" name="' + me.options.imageFieldName + '" ' +
'style="' + btnStyle + '">' +
'</form>' +
'<iframe id="edui_iframe_' + timestrap + '" name="edui_iframe_' + timestrap + '" style="display:none;width:0;height:0;border:0;margin:0;padding:0;position:absolute;"></iframe>';
wrapper.className = 'edui-' + me.options.theme;
wrapper.id = me.ui.id + '_iframeupload';
btnIframeBody.style.cssText = btnStyle;
btnIframeBody.style.width = w + 'px';
btnIframeBody.style.height = h + 'px';
btnIframeBody.appendChild(wrapper);
if (btnIframeBody.parentNode) {
btnIframeBody.parentNode.style.width = w + 'px';
btnIframeBody.parentNode.style.height = w + 'px';
}
var form = btnIframeDoc.getElementById('edui_form_' + timestrap);
var input = btnIframeDoc.getElementById('edui_input_' + timestrap);
var iframe = btnIframeDoc.getElementById('edui_iframe_' + timestrap);
domUtils.on(input, 'change', function(){
if(!input.value) return;
var loadingId = 'loading_' + (+new Date()).toString(36);
var params = utils.serializeParam(me.queryCommandValue('serverparam')) || '';
var imageActionUrl = me.getActionUrl(me.getOpt('imageActionName'));
var allowFiles = me.getOpt('imageAllowFiles');
me.focus();
me.execCommand('inserthtml', '<img class="loadingclass" id="' + loadingId + '" src="' + me.options.themePath + me.options.theme +'/images/spacer.gif" title="' + (me.getLang('simpleupload.loading') || '') + '" >');
function callback(){
try{
var link, json, loader,
body = (iframe.contentDocument || iframe.contentWindow.document).body,
result = body.innerText || body.textContent || '';
json = (new Function("return " + result))();
link = me.options.imageUrlPrefix + json.url;
if(json.state == 'SUCCESS' && json.url) {
loader = me.document.getElementById(loadingId);
loader.setAttribute('src', link);
loader.setAttribute('_src', link);
loader.setAttribute('title', json.title || '');
loader.setAttribute('alt', json.original || '');
loader.removeAttribute('id');
domUtils.removeClasses(loader, 'loadingclass');
} else {
showErrorLoader && showErrorLoader(json.state);
}
}catch(er){
showErrorLoader && showErrorLoader(me.getLang('simpleupload.loadError'));
}
form.reset();
domUtils.un(iframe, 'load', callback);
}
function showErrorLoader(title){
if(loadingId) {
var loader = me.document.getElementById(loadingId);
loader && domUtils.remove(loader);
me.fireEvent('showmessage', {
'id': loadingId,
'content': title,
'type': 'error',
'timeout': 4000
});
}
}
/* 判断后端配置是否没有加载成功 */
if (!me.getOpt('imageActionName')) {
errorHandler(me.getLang('autoupload.errorLoadConfig'));
return;
}
// 判断文件格式是否错误
var filename = input.value,
fileext = filename ? filename.substr(filename.lastIndexOf('.')):'';
if (!fileext || (allowFiles && (allowFiles.join('') + '.').indexOf(fileext.toLowerCase() + '.') == -1)) {
showErrorLoader(me.getLang('simpleupload.exceedTypeError'));
return;
}
domUtils.on(iframe, 'load', callback);
form.action = utils.formatUrl(imageActionUrl + (imageActionUrl.indexOf('?') == -1 ? '?':'&') + params);
form.submit();
});
var stateTimer;
me.addListener('selectionchange', function () {
clearTimeout(stateTimer);
stateTimer = setTimeout(function() {
var state = me.queryCommandState('simpleupload');
if (state == -1) {
input.disabled = 'disabled';
} else {
input.disabled = false;
}
}, 400);
});
isLoaded = true;
});
btnIframe.style.cssText = btnStyle;
containerBtn.appendChild(btnIframe);
}
return {
bindEvents:{
'ready': function() {
//设置loading的样式
utils.cssRule('loading',
'.loadingclass{display:inline-block;cursor:default;background: url(\''
+ this.options.themePath
+ this.options.theme +'/images/loading.gif\') no-repeat center center transparent;border:1px solid #cccccc;margin-right:1px;height: 22px;width: 22px;}\n' +
'.loaderrorclass{display:inline-block;cursor:default;background: url(\''
+ this.options.themePath
+ this.options.theme +'/images/loaderror.png\') no-repeat center center transparent;border:1px solid #cccccc;margin-right:1px;height: 22px;width: 22px;' +
'}',
this.document);
},
/* 初始化简单上传按钮 */
'simpleuploadbtnready': function(type, container) {
containerBtn = container;
me.afterConfigReady(initUploadBtn);
}
},
outputRule: function(root){
utils.each(root.getNodesByTagName('img'),function(n){
if (/\b(loaderrorclass)|(bloaderrorclass)\b/.test(n.getAttr('class'))) {
n.parentNode.removeChild(n);
}
});
},
commands: {
'simpleupload': {
queryCommandState: function () {
return isLoaded ? 0:-1;
}
}
}
}
});
|
import React from 'react';
import { connect } from 'react-redux';
import { translate } from 'react-i18next';
import { withRouter, Link } from 'react-router-dom';
import queryString from 'query-string';
import { initSignIn, verifySignIn } from '../../../redux/modules/auth/signIn';
import SignInForm from '../../../components/auth/SignInForm';
import VerifySignInForm from '../../../components/auth/VerifySignInForm';
import * as routes from '../../../routes';
import s from './styles.css';
const SignIn = (props) => {
const {
t,
step,
fetching,
verification: {
verificationId,
method
}
} = props;
const qp = queryString.parse(props.location.search);
const renderStep = (s) => {
if (qp.verificationId && qp.code) {
return (
<VerifySignInForm
onSubmit={verifySignIn}
fetching={fetching}
initialValues={{
verification: {
verificationId: qp.verificationId,
code: qp.code
}
}}/>
);
}
if (s === 'initSignIn') {
return (
<SignInForm
onSubmit={initSignIn}
fetching={fetching}/>
);
}
return (
<VerifySignInForm
onSubmit={verifySignIn}
fetching={fetching}
method={method}
initialValues={{
verification: { verificationId }
}}/>
);
};
return (
<div className={s.container}>
<div className={s.form}>
{renderStep(step)}
</div>
<div className={s.fp}>
<Link to={routes.RESET_PASSWORD}>{t('auth:signIn.forgotPassword')}</Link>
</div>
<div className={s.bottomLink}>
{t('auth:signIn.notHaveAnAccount')}{' '}
<Link to={routes.SIGN_UP}>{t('auth:signIn.signUp')}</Link>
</div>
</div>
);
};
const ComponentWithRouter = withRouter(SignIn);
const TranslatedComponent = translate(['auth'])(ComponentWithRouter);
export default connect((state) => ({
...state.auth.signIn
}))(TranslatedComponent);
|
API.Plugins.statuses = {
element:{
table:{
index:{},
},
},
init:function(){
API.GUI.Sidebar.Nav.add('Statuses', 'development');
},
load:{
index:function(){
API.Builder.card($('#pagecontent'),{ title: 'Statuses', icon: 'statuses'}, function(card){
API.request('statuses','read',{
data:{options:{ link_to:'StatusesIndex',plugin:'status',view:'index' }},
},function(result) {
var dataset = JSON.parse(result);
if(dataset.success != undefined){
for(const [key, value] of Object.entries(dataset.output.dom)){ API.Helper.set(API.Contents,['data','dom','statuses',value.name],value); }
for(const [key, value] of Object.entries(dataset.output.raw)){ API.Helper.set(API.Contents,['data','raw','statuses',value.name],value); }
API.Builder.table(card.children('.card-body'), dataset.output.dom, {
headers:dataset.output.headers,
id:'StatusesIndex',
modal:true,
key:'id',
clickable:{ enable:true, view:'details'},
controls:{ toolbar:true},
import:{ key:'id', },
},function(response){
API.Plugins.status.element.table.index = response.table;
});
}
});
});
},
details:function(){
var url = new URL(window.location.href);
var id = url.searchParams.get("id"), values = '';
setTimeout(function() {
$("[data-plugin="+url.searchParams.get("p")+"][data-key]").each(function(){
values += $(this).html();
});
if(values == ''){
API.request('statuses','read',{data:{id:id}},function(result){
var dataset = JSON.parse(result);
if(dataset.success != undefined){
API.GUI.insert(dataset.output.dom);
}
});
}
}, 1000);
},
},
extend:{},
}
API.Plugins.statuses.init();
|
import React, { Component } from "react";
import { ImageBackground, View, StatusBar, Dimensions, Platform, StyleSheet , TouchableOpacity } from "react-native";
import { Container, Button, H3, Text } from "native-base";
import auth from '@react-native-firebase/auth'
import colors from '../../assets/colors'
const deviceHeight = Dimensions.get("window").height;
export default class LogoutScreen extends Component {
SignOut = async() => {
console.log('Sign Out')
await auth().signOut()
this.props.navigation.navigate('LoginRoute')
}
render() {
return (
<Container>
<StatusBar barStyle="light-content" androidStatusBarColor='#000000' />
<View style={styles.container}>
<H3 style={styles.text}>LogOut Screen</H3>
<TouchableOpacity onPress={() => this.SignOut()}
style={styles.button}>
<Text style={styles.buttonText}>Log Out</Text>
</TouchableOpacity>
</View>
</Container>
);
}
}
const styles = StyleSheet.create({
imageContainer: {
flex: 1,
width: null,
height: null
},
container: {
flex: 1,
alignItems: "center",
justifyContent: 'center',
backgroundColor: "transparent",
},
text: {
color: "#D8D8D8",
},
button:
{
paddingVertical: 15,
paddingHorizontal: 15,
margin: 10,
alignItems: 'center',
justifyContent: 'center',
borderRadius: 6,
width: 140,
backgroundColor: colors.colorBlue,
},
buttonText:
{
fontSize: 18,
alignContent: 'center',
justifyContent: 'center',
color: colors.colorWhite,
textAlign: 'center'
},
})
|
'use strict'
// replace this require with require('update-nodejs-notifier')
const updateNodejsNotifier = require('../../index.js').updateNodejsNotifier
updateNodejsNotifier()
|
import CompostMixin from '../../../node_modules/@lamplightdev/compost/src/compost-mixin.js';
import globalStyles from '../utility/styles.js';
import './comments.js';
class Comment extends CompostMixin(HTMLElement) {
static get properties() {
return {
// comment data
data: {
type: Object,
value: null,
observer: 'observeData',
},
// are sub comments currently
showComments: {
type: Boolean,
value: false,
observer: 'observeShowComments',
},
// how deeply nested this comment is
depth: {
type: Number,
value: 0,
observer: 'observeDepth',
},
};
}
render() {
return `
<style>
${globalStyles}
:host {
contain: content;
display: block;
color: #333;
font-size: 0.9rem;
margin-bottom: 1rem;
border-bottom: 1px solid #ddd;
}
#info {
color: #666;
font-weight: bold;
margin-bottom: 1rem;
}
.hide {
display: none;
}
button {
margin-bottom: 0.5rem;
font-size: 1rem;
border: 0;
box-shadow: none;
background: transparent;
color: #333;
padding: 0;
cursor: pointer;
}
</style>
<div id="top">
<div id="info">
<a id="by" href=""></a> <span id="time"></span>
</div>
<div id="text"></div>
<button id="commentstoggle" on-click="toggleComments" hidden>[+]</button>
</div>
<x-comments id="comments" class="hide"></x-comments>
`;
}
// update comment data
observeData(oldValue, newValue) {
if (!newValue) return;
this.$id.by.href = `https://news.ycombinator.com/user?id=${newValue.user}`;
this.$id.by.textContent = newValue.user;
this.$id.time.textContent = newValue.time_ago;
this.$id.text.innerHTML = newValue.content;
if (newValue.comments.length) {
this.$id.commentstoggle.hidden = false;
} else {
this.$id.commentstoggle.hidden = true;
}
this.$id.comments.items = newValue.comments;
this.$id.comments.depth = this.depth;
}
observeDepth(oldValue, newValue) {
this.$id.comments.depth = newValue;
}
// update hide/show comments
observeShowComments(oldValue, newValue) {
if (newValue) {
this.$id.comments.classList.remove('hide');
this.$id.commentstoggle.textContent = '[-]';
} else {
this.$id.comments.classList.add('hide');
this.$id.commentstoggle.textContent = '[+]';
}
}
toggleComments() {
this.showComments = !this.showComments;
}
}
customElements.define('x-comment', Comment);
|
#!/usr/bin/env node
require("coffee-script/register")
var Command = require("./src/command.coffee")
var command = new Command()
command.run()
|
'use strict'
module.exports = {
NODE_ENV: '"production"',
BASE_API: '"http://120.25.167.48:8080"'
}
|
import util from 'util';
let store = {state: {}, props: {}};
const GolbalAppStore = {
// Load state from server.
loadState(){
if (process.browser) {
store = window.__APP_INITIAL_STATE__;
}
},
getState () {
return store.state;
},
getProps () {
return store.props;
},
getStore () {
return store;
},
setInitialState (state) {
store.state = state;
},
setInitialProps (props) {
store.props = props;
},
}
export default GolbalAppStore;
|
const express = require("express");
const path = require("path");
const fs = require("fs");
const app = express();
const PORT = process.env.PORT || 3001;
app.use(express.json());
app.use(express.urlencoded({ extended: true }));
app.use(express.static(path.join(__dirname, './public')));
require("./routes/apiRoutes")(app);
require("./routes/htmlRoutes")(app);
// telling the server to listen
app.listen(PORT, function() {
console.log("App listening on PORT: " + PORT);
});
|
"use strict";
var _babelHelpers = require("./utils/babelHelpers.js");
exports.__esModule = true;
var _react = _babelHelpers.interopRequireDefault(require("react"));
var _Icon = require("./Icon");
var _fragments = require("./fragments");
var OutlineMarkunreadMailbox =
/*#__PURE__*/
function OutlineMarkunreadMailbox(props) {
return _react.default.createElement(_Icon.Icon, props, _react.default.createElement("path", {
d: "M20 6H10v2h10v12H4V8h2v4h2V4h6V0H6v6" + _fragments.gx + "V8" + _fragments.b + "z"
}));
};
exports.OutlineMarkunreadMailbox = OutlineMarkunreadMailbox;
|
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = createProps;
function createProps(propTypes, props, classNames) {
var newProps = {};
Object.keys(props).filter(function (key) {
return key === 'children' || !propTypes[key];
}).forEach(function (key) {
return newProps[key] = props[key];
});
var className = classNames.filter(function (cn) {
return cn;
}).join(' ');
return Object.assign({}, newProps, { className: className });
}
|
(function () {
'use strict';
var request = require('request');
var apikey = '8fe9565007f1da895e18858dda74b4ac56d77c58';
exports.search = function (options, callback) {
options.auth = apikey;
request
.post('http://dart.fss.or.kr/api/search.json', { form: options }, function (error, response, body) {
var data = JSON.parse(body);
if (!error) {
console.log(data.err_code);
if (data.err_code !== '000') {
callback(data);
return;
}
callback(error, data);
} else {
callback(error);
}
});
};
exports.company = function (options, callback) {
options.auth = apikey;
request.post('http://dart.fss.or.kr/api/company.json', { form: options }, function (error, response, body) {
var data = JSON.parse(body);
if (!error) {
console.log(data.err_code);
if (data.err_code !== '000') {
callback(data);
return;
}
callback(error, data);
} else {
callback(error);
}
});
};
/*
** 테스트용 데이타 리턴
*/
exports.searchMockTest = function (options, callback) {
var error;
var data = {
err_code: '000',
err_msg: '성공',
page_no: 1,
page_set: 10,
total_count: 1,
total_page: 1,
list: [{
crp_cls: 'Y',
crp_nm: '삼성전자',
crp_cd: '005930',
rpt_nm: '기재정정',
rcp_no: '007',
flr_nm: '삼성관리자',
rcp_dt: new Date().format('YYYYMMDD'),
rmk:'유'
}]
};
callback(error, data);
}
}());
|
'use strict';
/**
* Module dependencies.
*/
var should = require('should'),
mongoose = require('mongoose'),
User = mongoose.model('User'),
Secret = mongoose.model('Secret');
/**
* Globals
*/
var user,
secret;
/**
* Unit tests
*/
describe('Secret Model Unit Tests:', function() {
beforeEach(function(done) {
user = new User({
firstName: 'Full',
lastName: 'Name',
displayName: 'Full Name',
email: 'test@test.com',
username: 'username',
password: 'password'
});
user.save(function() {
secret = new Secret({
name: 'Secret Name',
user: user
});
done();
});
});
describe('Method Save', function() {
it('should be able to save without problems', function(done) {
this.timeout(0);
return secret.save(function(err) {
should.not.exist(err);
done();
});
});
it('should be able to show an error when try to save without name', function(done) {
secret.name = '';
return secret.save(function(err) {
should.exist(err);
done();
});
});
});
afterEach(function(done) {
Secret.remove().exec(function() {
User.remove().exec(function() {
done();
});
});
});
});
|
// For a detailed explanation regarding each configuration property, visit:
// https://jestjs.io/docs/en/configuration.html
module.exports = {
// All imported modules in your tests should be mocked automatically
// automock: false,
// Stop running tests after `n` failures
// bail: 0,
// The directory where Jest should store its cached dependency information
// cacheDirectory: "/private/var/folders/ck/dpz87rbs12v2z6myrhnzd50c0000gn/T/jest_dx",
// Automatically clear mock calls and instances between every test
clearMocks: true,
// Indicates whether the coverage information should be collected while executing the test
// collectCoverage: false,
// An array of glob patterns indicating a set of files for which coverage information should be collected
collectCoverageFrom: ['src/index.js'],
// The directory where Jest should output its coverage files
coverageDirectory: 'coverage',
// An array of regexp pattern strings used to skip coverage collection
// coveragePathIgnorePatterns: [
// "/node_modules/"
// ],
// Indicates which provider should be used to instrument code for coverage
// coverageProvider: "babel",
// A list of reporter names that Jest uses when writing coverage reports
// coverageReporters: [
// "json",
// "text",
// "lcov",
// "clover"
// ],
// An object that configures minimum threshold enforcement for coverage results
// coverageThreshold: undefined,
// A path to a custom dependency extractor
// dependencyExtractor: undefined,
// Make calling deprecated APIs throw helpful error messages
// errorOnDeprecated: false,
// Force coverage collection from ignored files using an array of glob patterns
// forceCoverageMatch: [],
// A path to a module which exports an async function that is triggered once before all test suites
// globalSetup: undefined,
// A path to a module which exports an async function that is triggered once after all test suites
// globalTeardown: undefined,
// A set of global variables that need to be available in all test environments
// globals: {},
// The maximum amount of workers used to run your tests. Can be specified as % or a number. E.g. maxWorkers: 10% will use 10% of your CPU amount + 1 as the maximum worker number. maxWorkers: 2 will use a maximum of 2 workers.
// maxWorkers: "50%",
// An array of directory names to be searched recursively up from the requiring module's location
// moduleDirectories: [
// "node_modules"
// ],
// An array of file extensions your modules use
// moduleFileExtensions: [
// "js",
// "json",
// "jsx",
// "ts",
// "tsx",
// "node"
// ],
// A map from regular expressions to module names or to arrays of module names that allow to stub out resources with a single module
// moduleNameMapper: {},
// An array of regexp pattern strings, matched against all module paths before considered 'visible' to the module loader
// modulePathIgnorePatterns: [],
// Activates notifications for test results
// notify: false,
// An enum that specifies notification mode. Requires { notify: true }
// notifyMode: "failure-change",
// A preset that is used as a base for Jest's configuration
// preset: undefined,
// Run tests from one or more projects
// projects: undefined,
// Use this configuration option to add custom reporters to Jest
// reporters: undefined,
// Automatically reset mock state between every test
// resetMocks: false,
// Reset the module registry before running each individual test
// resetModules: false,
// A path to a custom resolver
// resolver: undefined,
// Automatically restore mock state between every test
// restoreMocks: false,
// The root directory that Jest should scan for tests and modules within
// rootDir: undefined,
// A list of paths to directories that Jest should use to search for files in
// roots: [
// "<rootDir>"
// ],
// Allows you to use a custom runner instead of Jest's default test runner
// runner: "jest-runner",
// The paths to modules that run some code to configure or set up the testing environment before each test
// setupFiles: [],
// A list of paths to modules that run some code to configure or set up the testing framework before each test
// setupFilesAfterEnv: [],
// The number of seconds after which a test is considered as slow and reported as such in the results.
// slowTestThreshold: 5,
// A list of paths to snapshot serializer modules Jest should use for snapshot testing
// snapshotSerializers: [],
// The test environment that will be used for testing
// testEnvironment: "jest-environment-jsdom",
// Options that will be passed to the testEnvironment
// testEnvironmentOptions: {},
// Adds a location field to test results
// testLocationInResults: false,
// The glob patterns Jest uses to detect test files
// testMatch: [
// "**/__tests__/**/*.[jt]s?(x)",
// "**/?(*.)+(spec|test).[tj]s?(x)"
// ],
// An array of regexp pattern strings that are matched against all test paths, matched tests are skipped
testPathIgnorePatterns: ['/node_modules/'],
// The regexp pattern or array of patterns that Jest uses to detect test files
// testRegex: [],
// This option allows the use of a custom results processor
// testResultsProcessor: undefined,
// This option allows use of a custom test runner
// testRunner: "jasmine2",
// This option sets the URL for the jsdom environment. It is reflected in properties such as location.href
// testURL: "http://localhost",
// Setting this value to "fake" allows the use of fake timers for functions such as "setTimeout"
// timers: "real",
// A map from regular expressions to paths to transformers
// transform: undefined,
// An array of regexp pattern strings that are matched against all source file paths, matched files will skip transformation
// transformIgnorePatterns: [
// "/node_modules/",
// "\\.pnp\\.[^\\/]+$"
// ],
// An array of regexp pattern strings that are matched against all modules before the module loader will automatically return a mock for them
// unmockedModulePathPatterns: undefined,
// Indicates whether each individual test should be reported during the run
// verbose: undefined,
// An array of regexp patterns that are matched against all source file paths before re-running tests in watch mode
// watchPathIgnorePatterns: [],
// Whether to use watchman for file crawling
// watchman: true,
};
|
const session = require('supertest-session');
const should = require('should');
const express = require('express');
const sinon = require('sinon');
const assert = require('assert');
const logger = require('../../lib/policies/log/instance');
const db = require('../../lib/db');
const testHelper = require('../common/routing.helper');
const config = require('../../lib/config');
const originalGatewayConfig = config.gatewayConfig;
describe('E2E: proxy, log, expression, rate-limit policies', () => {
const helper = testHelper();
const spy = sinon.spy();
let app, backendServer;
before('setup', (done) => {
sinon.spy(logger, 'info');
config.gatewayConfig = {
http: { port: 0 },
serviceEndpoints: {
backend: {
url: 'http://localhost:7777'
}
},
apiEndpoints: {
testEndpoint: {
host: '*',
paths: ['/test']
}
},
policies: ['proxy', 'log', 'expression', 'rate-limit'],
pipelines: {
pipeline1: {
apiEndpoints: ['testEndpoint'],
policies: [
{
expression: {
action: {
jscode: 'req.url = req.url + "/67"'
}
}
},
{
log: [
{
action: {
// eslint-disable-next-line no-template-curly-in-string
message: '${req.url} ${egContext.req.method}'
}
},
{
condition: {
name: 'never'
},
action: {
// eslint-disable-next-line no-template-curly-in-string
message: '${req.url} ${egContext.req.method}'
}
}
]
},
{
'rate-limit': {
action: {
max: 1,
// eslint-disable-next-line no-template-curly-in-string
rateLimitBy: '${req.hostname}'
}
}
},
{
proxy: {
action: { serviceEndpoint: 'backend' }
}
}
]
}
}
};
db
.flushdb()
.then(() => helper.setup())
.then(apps => {
app = apps.app;
const backendApp = express();
backendApp.all('*', (req, res) => {
spy(req.headers);
res.send();
});
const runningBackendApp = backendApp.listen(7777, () => {
backendServer = runningBackendApp;
done();
});
})
.catch(done);
});
after('cleanup', () => {
config.gatewayConfig = originalGatewayConfig;
logger.info.restore();
backendServer.close();
return helper.cleanup();
});
it('should execute proxy, log, expression, rate-limit policies and return 200', function (done) {
const request = session(app);
request
.get('/test')
.expect(200)
.end(function (err) {
should.not.exist(err);
assert(spy.calledOnce);
assert.strictEqual(logger.info.getCall(0).args[0], '/test/67 GET');
should.not.exist(logger.info.getCall(1));
done();
});
});
it('should execute proxy, log, expression, rate-limit policies and return 429 as rate limit is reached', function (done) {
const request = session(app);
request
.get('/test')
.expect(429)
.end(function (err) {
should.not.exist(err);
assert(spy.calledOnce);
assert.strictEqual(logger.info.getCall(1).args[0], '/test/67 GET');
done();
});
});
});
|
import { getCurrentUserReputation } from "./serializers";
import { getNestedValue } from "./index";
import { keccak256, sha3_256 } from "js-sha3";
import { ethers } from "ethers";
export function isValidEmail(email) {
const re = /\S+@\S+\.edu/;
return re.test(email);
}
export function currentUserHasMinimumReputation(stateObject, minimum) {
let reputation = getCurrentUserReputation(stateObject);
return reputation >= minimum;
}
export const checkVoteTypeChanged = (prev, next) => {
const prevVoteType = getNestedValue(prev, ["userVote", "voteType"]);
const nextVoteType = getNestedValue(next, ["userVote", "voteType"]);
if (prevVoteType !== nextVoteType) {
return nextVoteType;
}
};
export const toCheckSumAddress = (address) => {
address = address.toLowerCase().replace("0x", "");
let hash = keccak256(address);
let ret = "0x";
for (var i = 0; i < address.length; i++) {
if (parseInt(hash[i], 16) >= 8) {
ret += address[i].toUpperCase();
} else {
ret += address[i];
}
}
return ret;
};
/**
* Checks if the given string is an address
*
* @method isAddress
* @param {String} address the given HEX adress
* @return {Boolean}
*/
export const isAddress = (address) => {
if (!/^(0x)?[0-9a-f]{40}$/i.test(address)) {
// check if it has the basic requirements of an address
return false;
} else if (
/^(0x)?[0-9a-f]{40}$/.test(address) ||
/^(0x)?[0-9A-F]{40}$/.test(address)
) {
// If it's all small caps or all all caps, return true
return true;
} else {
// Otherwise check each case
return true;
// return isChecksumAddress(address);
}
};
/**
* Checks if the given string is a checksummed address
*
* @method isChecksumAddress
* @param {String} address the given HEX adress
* @return {Boolean}
*/
export const isChecksumAddress = (address) => {
// Check each case
address = address.replace("0x", "");
var addressHash = sha3_256(address.toLowerCase());
for (var i = 0; i < 40; i++) {
// the nth letter should be uppercase if the nth digit of casemap is 1
if (
(parseInt(addressHash[i], 16) > 7 &&
address[i].toUpperCase() !== address[i]) ||
(parseInt(addressHash[i], 16) <= 7 &&
address[i].toLowerCase() !== address[i])
) {
return false;
}
}
return true;
};
|
// This is a basic example strategy for Gekko.
// For more information on everything please refer
// to this document:
//
// https://gekko.wizb.it/docs/strategies/creating_a_strategy.html
//
// The example below is pretty bad investment advice: on every new candle there is
// a 10% chance it will recommend to change your position (to either
// long or short).
var _ = require('lodash');
var log = require('../core/log');
var fs = require('fs');
// Let's create our own strat
var strat = {};
// Prepare everything our method needs
strat.init = function () {
this.time = 0;
this.history = new History(this.settings.history_length, this.settings.history_buffer);
this.price_history = new PriceHistory();
fs.writeFile('dataset.json', '[', function (err) {
if (err) throw err;
});
fs.writeFile('dataset_result.json', '[', function (err) {
if (err) throw err;
});
// keep state about the current trend
// here, on every new candle we use this
// state object to check if we need to
// report it.
this.trend = {
direction: 'none',
duration: 0,
persisted: false,
adviced: false
};
// how many candles do we need as a base
// before we can start giving advice?
this.requiredHistory = this.tradingAdvisor.historySize;
// define the indicators we need
this.addIndicator('rsi', 'RSI', this.settings);
// this.addIndicator('macd', 'MACD', this.settings);
this.input = 'candle';
this.currentTrend = 'long';
this.requiredHistory = 0;
};
// What happens on every new candle?
strat.update = function (candle) {
let RSI_value = this.indicators.rsi.result;
this.history.push(candle);
this.price_history.push(candle, RSI_value);
// lenght of the last horizon ( second )
let horizon_length = this.settings.horizon_length + this.settings.horizon_length;
let buffer_length = horizon_length + this.settings.input_length;
if( this.time > buffer_length && this.time - buffer_length < this.settings.dataset_size) {
let input_at_time = this.price_history.getSlice(this.time - this.settings.input_length, this.settings.input_length);
let result_at_time = this.price_history.getForecastForTime(this.time - horizon_length, this.settings.horizon_length);
this.write_dataset(input_at_time, result_at_time);
}
if( this.time + buffer_length == this.settings.dataset_size)
this.endCollecting();
this.time += 1;
};
strat.write_dataset= function (input, result){
let line_input = JSON.stringify(input);
let line_result = JSON.stringify(result);
fs.appendFile('dataset.json', line_input + ",\n", function (err) {
if (err) throw err;
});
fs.appendFile('dataset_result.json', line_result + ",\n", function (err) {
if (err) throw err;
});
};
strat.endCollecting = function (){
fs.appendFile('dataset.json', "]\n", function (err) {
if (err) throw err;
});
fs.appendFile('dataset_result.json', "]\n", function (err) {
if (err) throw err;
});
};
strat.getFiboLevel = function (candle){
let levels = this.getFiboRetracement();
if( candle.close <= this.history.max) {
if (candle.close >= levels.level1)
return 1;
if (candle.close >= levels.level2)
return 2;
if (candle.close >= levels.level3)
return 3;
if (candle.close >= this.history.min)
return 4;
}else{
return 0;
}
return -1
};
strat.getFiboRetracement = function () {
let diff = this.history.getDiff();
let level1 = this.history.max - 0.236 * diff;
let level2 = this.history.max - 0.382 * diff;
let level3 = this.history.max - 0.618 * diff;
return {
level1,
level2,
level3
};
};
// Based on the newly calculated
// information, check if we should
// update or not.
strat.check = function (candle) {
// this.updateTrend();
let prc = candle.close;
if( this.trend.direction === 'up'){
if( this.getFiboLevel(candle) === 3 )this.advice('long');
if( this.getFiboLevel(candle) === -1 )this.advice('short');
}else{
if( this.getFiboLevel(candle) === 3 )this.advice('short');
if( this.getFiboLevel(candle) === -1 )this.advice('long');
}
};
class PriceHistory{
constructor() {
this.history= [];
}
push(candle, macd){
let item = {
candle,
macd
}
this.history.push(item);
}
getForecastForTime(time, horizon_length){
let price_time = this.history[time].candle.close;
let horizon_index = time+horizon_length;
let price_horizon = this.history[horizon_index].candle.close;
let double_horizon_index = time+horizon_length + horizon_length;
let price_horizon_double = this.history[double_horizon_index].candle.close;
console.log("Pricet at " + time + " is " + price_time + "\n");
console.log("Pricet at " + horizon_index + " is " + price_horizon + "\n");
console.log("Pricet at " + double_horizon_index + " is " + price_horizon_double + "\n");
let flag = true;
flag &= price_time < price_horizon;
flag &= price_time < price_horizon_double;
console.log("Result is " + flag + " \n \n");
return flag;
}
getSlice(offset, size){
return this.history.slice(offset, offset+size).map( (item) => item.macd );
}
}
class History {
constructor(history_length, history_buffer) {
this.buffer = [];
this.max = null;
this.min = null;
this.candles = [];
this.history_length = history_length;
this.history_buffer = history_buffer;
}
push(candle) {
this.buffer.push(candle.close);
if( this.buffer.length > this.history_buffer){
this.candles = _.merge(this.buffer, this.candles);
this.buffer = [];
}
if (this.candles.length > this.history_length)
this.candles.splice(0, this.candles.length - this.history_length);
this.max = _.max(this.candles);
this.min = _.min(this.candles);
}
getDiff() {
return this.max - this.min;
}
}
// strat.updateTrend = function (){
// var macddiff = this.indicators.macd.result;
//
// if(macddiff > this.settings.thresholds.up) {
//
// // new trend detected
// if(this.trend.direction !== 'up')
// // reset the state for the new trend
// this.trend = {
// duration: 0,
// persisted: false,
// direction: 'up',
// adviced: false
// };
//
// this.trend.duration++;
//
// log.debug('In uptrend since', this.trend.duration, 'candle(s)');
//
// if(this.trend.duration >= this.settings.thresholds.persistence)
// this.trend.persisted = true;
//
// if(this.trend.persisted && !this.trend.adviced) {
// this.trend.adviced = true;
// } else
// this.advice();
//
// } else if(macddiff < this.settings.thresholds.down) {
//
// // new trend detected
// if(this.trend.direction !== 'down')
// // reset the state for the new trend
// this.trend = {
// duration: 0,
// persisted: false,
// direction: 'down',
// adviced: false
// };
//
// this.trend.duration++;
//
// log.debug('In downtrend since', this.trend.duration, 'candle(s)');
//
// if(this.trend.duration >= this.settings.thresholds.persistence)
// this.trend.persisted = true;
//
// if(this.trend.persisted && !this.trend.adviced) {
// this.trend.adviced = true;
// } else
// this.advice();
// } else {
//
//
// // we're not in an up nor in a downtrend
// // but for now we ignore sideways trends
// //
// // read more @link:
// //
// // https://github.com/askmike/gekko/issues/171
//
// // this.trend = {
// // direction: 'none',
// // duration: 0,
// // persisted: false,
// // adviced: false
// // };
//
// }
// }
module.exports = strat;
|
'use strict';
import * as crypto from 'crypto';
const HOURS_IN_DAY = 24;
export function generate(operation, user) {
const currentTimeToHour = new Date();
currentTimeToHour.setMinutes(0, 0, 0);
return generateForTime(operation, user, currentTimeToHour);
}
export function isValidToken(token, operation, user) {
const timeToCheck = new Date();
timeToCheck.setMinutes(0, 0, 0);
for (let hour = 0; hour !== HOURS_IN_DAY; hour += 1) {
timeToCheck.setHours(hour);
const possibleToken = generateForTime(operation, user, timeToCheck);
if (token === possibleToken) {
return true;
}
}
return false;
}
export function generateForTime(operation, user, currentTimeToHour) {
const hmac = crypto.createHmac('sha256', user.salt);
hmac.update(operation + user.email + user.passwordHash + currentTimeToHour.getTime());
return hmac.digest('base64');
}
|
// import request from 'supertest-as-promised';
// import httpStatus from 'http-status';
// import chai, { expect } from 'chai';
// import app from '../../index';
// chai.config.includeStack = true;
// describe('## Misc', () => {
// describe('# GET /api/health-check', () => {
// it('should return OK', (done) => {
// request(app)
// .get('/api/health-check')
// .expect(httpStatus.OK)
// .then((res) => {
// expect(res.text).to.equal('OK');
// done();
// })
// .catch(done);
// });
// });
// describe('# GET /api/404', () => {
// it('should return 404 status', (done) => {
// request(app)
// .get('/api/404')
// .expect(httpStatus.NOT_FOUND)
// .then((res) => {
// expect(res.body.message).to.equal('Not Found');
// done();
// })
// .catch(done);
// });
// });
// describe('# Error Handling', () => {
// it('should handle mongoose CastError - Cast to ObjectId failed', (done) => {
// request(app)
// .get('/api/users/56z787zzz67fc')
// .expect(httpStatus.INTERNAL_SERVER_ERROR)
// .then((res) => {
// expect(res.body.message).to.equal('Internal Server Error');
// done();
// })
// .catch(done);
// });
// it('should handle express validation error - username is required', (done) => {
// request(app)
// .post('/api/users')
// .send({
// mobileNumber: '1234567890'
// })
// .expect(httpStatus.BAD_REQUEST)
// .then((res) => {
// expect(res.body.message).to.equal('"username" is required');
// done();
// })
// .catch(done);
// });
// });
// });
|
/*!
* @copyright Copyright (c) 2017 IcoMoon.io
* @license Licensed under MIT license
* See https://github.com/Keyamoon/svgxuse
* @version 1.2.6
*/
(function(){if("undefined"!==typeof window&&window.addEventListener){var e=Object.create(null),l,d=function(){clearTimeout(l);l=setTimeout(n,100)},m=function(){},t=function(){window.addEventListener("resize",d,!1);window.addEventListener("orientationchange",d,!1);if(window.MutationObserver){var k=new MutationObserver(d);k.observe(document.documentElement,{childList:!0,subtree:!0,attributes:!0});m=function(){try{k.disconnect(),window.removeEventListener("resize",d,!1),window.removeEventListener("orientationchange",
d,!1)}catch(v){}}}else document.documentElement.addEventListener("DOMSubtreeModified",d,!1),m=function(){document.documentElement.removeEventListener("DOMSubtreeModified",d,!1);window.removeEventListener("resize",d,!1);window.removeEventListener("orientationchange",d,!1)}},u=function(k){function e(a){if(void 0!==a.protocol)var b=a;else b=document.createElement("a"),b.href=a;return b.protocol.replace(/:/g,"")+b.host}if(window.XMLHttpRequest){var d=new XMLHttpRequest;var m=e(location);k=e(k);d=void 0===
d.withCredentials&&""!==k&&k!==m?XDomainRequest||void 0:XMLHttpRequest}return d};var n=function(){function d(){--q;0===q&&(m(),t())}function l(a){return function(){!0!==e[a.base]&&(a.useEl.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href","#"+a.hash),a.useEl.hasAttribute("href")&&a.useEl.setAttribute("href","#"+a.hash))}}function p(a){return function(){var c=document.body,b=document.createElement("x");a.onload=null;b.innerHTML=a.responseText;if(b=b.getElementsByTagName("svg")[0])b.setAttribute("aria-hidden",
"true"),b.style.position="absolute",b.style.width=0,b.style.height=0,b.style.overflow="hidden",c.insertBefore(b,c.firstChild);d()}}function n(a){return function(){a.onerror=null;a.ontimeout=null;d()}}var a,b,q=0;m();var f=document.getElementsByTagName("use");for(b=0;b<f.length;b+=1){try{var h=f[b].getBoundingClientRect()}catch(w){h=!1}var g=(a=f[b].getAttribute("href")||f[b].getAttributeNS("http://www.w3.org/1999/xlink","href")||f[b].getAttribute("xlink:href"))&&a.split?a.split("#"):["",""];var c=
g[0];g=g[1];var r=h&&0===h.left&&0===h.right&&0===h.top&&0===h.bottom;h&&0===h.width&&0===h.height&&!r?(c.length||!g||document.getElementById(g)||(c=""),f[b].hasAttribute("href")&&f[b].setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a),c.length&&(a=e[c],!0!==a&&setTimeout(l({useEl:f[b],base:c,hash:g}),0),void 0===a&&(g=u(c),void 0!==g&&(a=new g,e[c]=a,a.onload=p(a),a.onerror=n(a),a.ontimeout=n(a),a.open("GET",c),a.send(),q+=1)))):r?c.length&&e[c]&&setTimeout(l({useEl:f[b],base:c,
hash:g}),0):void 0===e[c]?e[c]=!0:e[c].onload&&(e[c].abort(),delete e[c].onload,e[c]=!0)}f="";q+=1;d()};var p=function(){window.removeEventListener("load",p,!1);l=setTimeout(n,0)};"complete"!==document.readyState?window.addEventListener("load",p,!1):p()}})();
|
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[19],{
/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/Pages/Admin/CfgHome/slideradd.vue?vue&type=script&lang=js&":
/*!*****************************************************************************************************************************************************************************!*\
!*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/Pages/Admin/CfgHome/slideradd.vue?vue&type=script&lang=js& ***!
\*****************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _Shared_AdminLayout__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @/Shared/AdminLayout */ "./resources/js/Shared/AdminLayout.vue");
/* harmony import */ var _components_AdminComponents_Alert__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @/components/AdminComponents/Alert */ "./resources/js/components/AdminComponents/Alert.vue");
/* harmony import */ var _components_Breadcrumb__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @/components/Breadcrumb */ "./resources/js/components/Breadcrumb.vue");
/* harmony import */ var vue2_dropzone__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! vue2-dropzone */ "./node_modules/vue2-dropzone/dist/vue2Dropzone.js");
/* harmony import */ var vue2_dropzone__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(vue2_dropzone__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var vue2_dropzone_dist_vue2Dropzone_min_css__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! vue2-dropzone/dist/vue2Dropzone.min.css */ "./node_modules/vue2-dropzone/dist/vue2Dropzone.min.css");
/* harmony import */ var vue2_dropzone_dist_vue2Dropzone_min_css__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(vue2_dropzone_dist_vue2Dropzone_min_css__WEBPACK_IMPORTED_MODULE_4__);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//import layouts
/* harmony default export */ __webpack_exports__["default"] = ({
components: {
Layout: _Shared_AdminLayout__WEBPACK_IMPORTED_MODULE_0__["default"],
Alert: _components_AdminComponents_Alert__WEBPACK_IMPORTED_MODULE_1__["default"],
Breadcrumb: _components_Breadcrumb__WEBPACK_IMPORTED_MODULE_2__["default"],
vueDropzone: vue2_dropzone__WEBPACK_IMPORTED_MODULE_3___default.a
},
data: function data() {
return {
dropzoneOptions: {
autoProcessQueue: false,
paramName: "image",
maxFilesize: 1024,
url: this._store_url,
acceptedFiles: ".jpg,.jpeg,.png",
maxFiles: 1,
thumbnailWidth: null,
thumbnailHeight: null,
init: function init() {
this.on("thumbnail", function (file, dataUrl) {
$('.dz-image').last().find('img').attr({
width: '100%',
height: '100%'
});
}), this.on("success", function (file) {
$('.dz-image').css({
"width": "100%",
"height": "auto"
});
});
},
addRemoveLinks: true,
dictDefaultMessage: "<i class='fas fa-cloud-upload-alt'></i><br/>Drop your slider here"
},
form: {
caption: '',
index: null,
text: '',
show: 1,
image: null
}
};
},
methods: {
submit: function submit() {
// alert("ok")
var formData = new FormData();
formData.append("caption", this.form.caption);
formData.append("index", this.form.index);
formData.append("text", this.form.text);
formData.append("show", this.form.show);
formData.append("image", this.form.image); // formData.append("_token", this._token);
console.log(FormData);
this.$inertia.post(this._store_url, formData);
},
dropzoneRemovedFile: function dropzoneRemovedFile(file, error, xhr) {
this.form.image = null;
},
dropzoneFileAdded: function dropzoneFileAdded(file) {
this.form.image = file;
},
dropzoneSendingEvent: function dropzoneSendingEvent(file, xhr, formData) {}
},
props: ["_store_url", "_token", "errors", "breadcrumbItems", "flash"]
});
/***/ }),
/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/Shared/AdminLayout.vue?vue&type=script&lang=js&":
/*!******************************************************************************************************************************************************************!*\
!*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/Shared/AdminLayout.vue?vue&type=script&lang=js& ***!
\******************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _components_AdminComponents_Sidebar__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @/components/AdminComponents/Sidebar */ "./resources/js/components/AdminComponents/Sidebar.vue");
/* harmony import */ var _components_AdminComponents_Navbar__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @/components/AdminComponents/Navbar */ "./resources/js/components/AdminComponents/Navbar.vue");
/* harmony import */ var _components_AdminComponents_Footer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @/components/AdminComponents/Footer */ "./resources/js/components/AdminComponents/Footer.vue");
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
// import { ParticlesBg } from "particles-bg-vue";
/* harmony default export */ __webpack_exports__["default"] = ({
components: {
Sidebar: _components_AdminComponents_Sidebar__WEBPACK_IMPORTED_MODULE_0__["default"],
Navbar: _components_AdminComponents_Navbar__WEBPACK_IMPORTED_MODULE_1__["default"],
Footer: _components_AdminComponents_Footer__WEBPACK_IMPORTED_MODULE_2__["default"] // ParticlesBg
},
methods: {
handleLogout: function handleLogout() {
alert("Ini Sudah Logout");
}
}
});
/***/ }),
/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/AdminComponents/Alert.vue?vue&type=script&lang=js&":
/*!********************************************************************************************************************************************************************************!*\
!*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/components/AdminComponents/Alert.vue?vue&type=script&lang=js& ***!
\********************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
/* harmony default export */ __webpack_exports__["default"] = ({
props: ["flash"],
data: function data() {
return {
variant: null
};
}
});
/***/ }),
/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/AdminComponents/Navbar.vue?vue&type=script&lang=js&":
/*!*********************************************************************************************************************************************************************************!*\
!*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/components/AdminComponents/Navbar.vue?vue&type=script&lang=js& ***!
\*********************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
/* harmony default export */ __webpack_exports__["default"] = ({
data: function data() {
return {
show: false
};
}
});
/***/ }),
/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/AdminComponents/Sidebar.vue?vue&type=script&lang=js&":
/*!**********************************************************************************************************************************************************************************!*\
!*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/components/AdminComponents/Sidebar.vue?vue&type=script&lang=js& ***!
\**********************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _components_AdminComponents_SidebarItem__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @/components/AdminComponents/SidebarItem */ "./resources/js/components/AdminComponents/SidebarItem.vue");
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
/* harmony default export */ __webpack_exports__["default"] = ({
components: {
SidebarItem: _components_AdminComponents_SidebarItem__WEBPACK_IMPORTED_MODULE_0__["default"]
},
data: function data() {
return {
itemsNav: [{
id: 0,
title: "Dashboard",
link: "admin.dashboard",
icon: "fas fa-fw fa-tachometer-alt"
}, {
id: 1,
title: "Page",
link: "#",
icon: "fas fa-fw fa-folder",
child: [{
title: "Home",
link: "admin.page.home"
}, {
title: "Product",
link: "admin.page.product"
}, {
title: "Profile",
link: "admin.page.profile"
}]
}, {
id: 2,
title: "Post",
link: "admin.post",
icon: "fas fa-fw fa-newspaper"
}, {
id: 3,
title: "Settings",
link: "#",
icon: "fas fa-fw fa-cog",
child: [{
title: "Meta Data",
link: "admin.setting.meta"
}, {
title: "System",
link: "admin.setting.system"
}]
}]
};
},
methods: {
sidebarMenuHandle: function sidebarMenuHandle() {
if (window.innerWidth < 768) {
alert("ok");
}
if ($(window).width() < 480 && !$(".sidebar").hasClass("toggled")) {}
}
},
mounted: function mounted() {
$("#sidebarToggle, #sidebarToggleTop").on("click", function (e) {
$("body").toggleClass("sidebar-toggled");
$(".sidebar").toggleClass("toggled");
if ($(".sidebar").hasClass("toggled")) {
$(".sidebar .collapse").collapse("hide");
}
}); // Close any open menu accordions when window is resized below 768px
$(window).resize(function () {
if ($(window).width() < 768) {
$(".sidebar .collapse").collapse("hide");
} // Toggle the side navigation when window is resized below 480px
if ($(window).width() < 480 && !$(".sidebar").hasClass("toggled")) {
$("body").addClass("sidebar-toggled");
$(".sidebar").addClass("toggled");
$(".sidebar .collapse").collapse("hide");
}
});
},
created: function created() {
window.addEventListener("resize", this.sidebarMenuHandle);
},
destroyed: function destroyed() {
window.removeEventListener("resize", this.sidebarMenuHandle);
}
});
/***/ }),
/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/AdminComponents/SidebarItem.vue?vue&type=script&lang=js&":
/*!**************************************************************************************************************************************************************************************!*\
!*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/components/AdminComponents/SidebarItem.vue?vue&type=script&lang=js& ***!
\**************************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
/* harmony default export */ __webpack_exports__["default"] = ({
props: {
items: Array
},
methods: {
isArrayRoutes: function isArrayRoutes(data) {
if (typeof data.child !== "undefined" && Array.isArray(data.child)) {
return true;
}
return false;
},
checkStatusRoutes: function checkStatusRoutes(data) {
if (typeof data.child !== "undefined" && Array.isArray(data.child)) {
for (var index = 0; index < data.child.length; index++) {
if (this.isRoute(data.child[index].link)) {
return true;
} // console.log("ada");
}
return false;
} else {
if (this.isRoute(data.link)) {
return true;
}
}
}
}
});
/***/ }),
/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/Breadcrumb.vue?vue&type=script&lang=js&":
/*!*********************************************************************************************************************************************************************!*\
!*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/components/Breadcrumb.vue?vue&type=script&lang=js& ***!
\*********************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
/* harmony default export */ __webpack_exports__["default"] = ({
props: {
items: {
type: Array
}
}
});
/***/ }),
/***/ "./node_modules/css-loader/index.js?!./node_modules/postcss-loader/src/index.js?!./node_modules/vue2-dropzone/dist/vue2Dropzone.min.css":
/*!**********************************************************************************************************************************************!*\
!*** ./node_modules/css-loader??ref--7-1!./node_modules/postcss-loader/src??ref--7-2!./node_modules/vue2-dropzone/dist/vue2Dropzone.min.css ***!
\**********************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
exports = module.exports = __webpack_require__(/*! ../../css-loader/lib/css-base.js */ "./node_modules/css-loader/lib/css-base.js")(false);
// imports
// module
exports.push([module.i, "/*\n * The MIT License\n * Copyright (c) 2012 Matias Meno <m@tias.me>\n */\n@-webkit-keyframes passing-through {\n 0% {\n opacity: 0;\n transform: translateY(40px); }\n 30%, 70% {\n opacity: 1;\n transform: translateY(0px); }\n 100% {\n opacity: 0;\n transform: translateY(-40px); } }\n@keyframes passing-through {\n 0% {\n opacity: 0;\n transform: translateY(40px); }\n 30%, 70% {\n opacity: 1;\n transform: translateY(0px); }\n 100% {\n opacity: 0;\n transform: translateY(-40px); } }\n@-webkit-keyframes slide-in {\n 0% {\n opacity: 0;\n transform: translateY(40px); }\n 30% {\n opacity: 1;\n transform: translateY(0px); } }\n@keyframes slide-in {\n 0% {\n opacity: 0;\n transform: translateY(40px); }\n 30% {\n opacity: 1;\n transform: translateY(0px); } }\n@-webkit-keyframes pulse {\n 0% {\n transform: scale(1); }\n 10% {\n transform: scale(1.1); }\n 20% {\n transform: scale(1); } }\n@keyframes pulse {\n 0% {\n transform: scale(1); }\n 10% {\n transform: scale(1.1); }\n 20% {\n transform: scale(1); } }\n.dropzone, .dropzone * {\n box-sizing: border-box; }\n\n.dropzone {\n min-height: 150px;\n border: 2px solid rgba(0, 0, 0, 0.3);\n background: white;\n padding: 20px 20px; }\n .dropzone.dz-clickable {\n cursor: pointer; }\n .dropzone.dz-clickable * {\n cursor: default; }\n .dropzone.dz-clickable .dz-message, .dropzone.dz-clickable .dz-message * {\n cursor: pointer; }\n .dropzone.dz-started .dz-message {\n display: none; }\n .dropzone.dz-drag-hover {\n border-style: solid; }\n .dropzone.dz-drag-hover .dz-message {\n opacity: 0.5; }\n .dropzone .dz-message {\n text-align: center;\n margin: 2em 0; }\n .dropzone .dz-preview {\n position: relative;\n display: inline-block;\n vertical-align: top;\n margin: 16px;\n min-height: 100px; }\n .dropzone .dz-preview:hover {\n z-index: 1000; }\n .dropzone .dz-preview:hover .dz-details {\n opacity: 1; }\n .dropzone .dz-preview.dz-file-preview .dz-image {\n border-radius: 20px;\n background: #999;\n background: linear-gradient(to bottom, #eee, #ddd); }\n .dropzone .dz-preview.dz-file-preview .dz-details {\n opacity: 1; }\n .dropzone .dz-preview.dz-image-preview {\n background: white; }\n .dropzone .dz-preview.dz-image-preview .dz-details {\n transition: opacity 0.2s linear; }\n .dropzone .dz-preview .dz-remove {\n font-size: 14px;\n text-align: center;\n display: block;\n cursor: pointer;\n border: none; }\n .dropzone .dz-preview .dz-remove:hover {\n text-decoration: underline; }\n .dropzone .dz-preview:hover .dz-details {\n opacity: 1; }\n .dropzone .dz-preview .dz-details {\n z-index: 20;\n position: absolute;\n top: 0;\n left: 0;\n opacity: 0;\n font-size: 13px;\n min-width: 100%;\n max-width: 100%;\n padding: 2em 1em;\n text-align: center;\n color: rgba(0, 0, 0, 0.9);\n line-height: 150%; }\n .dropzone .dz-preview .dz-details .dz-size {\n margin-bottom: 1em;\n font-size: 16px; }\n .dropzone .dz-preview .dz-details .dz-filename {\n white-space: nowrap; }\n .dropzone .dz-preview .dz-details .dz-filename:hover span {\n border: 1px solid rgba(200, 200, 200, 0.8);\n background-color: rgba(255, 255, 255, 0.8); }\n .dropzone .dz-preview .dz-details .dz-filename:not(:hover) {\n overflow: hidden;\n text-overflow: ellipsis; }\n .dropzone .dz-preview .dz-details .dz-filename:not(:hover) span {\n border: 1px solid transparent; }\n .dropzone .dz-preview .dz-details .dz-filename span, .dropzone .dz-preview .dz-details .dz-size span {\n background-color: rgba(255, 255, 255, 0.4);\n padding: 0 0.4em;\n border-radius: 3px; }\n .dropzone .dz-preview:hover .dz-image img {\n transform: scale(1.05, 1.05);\n -webkit-filter: blur(8px);\n filter: blur(8px); }\n .dropzone .dz-preview .dz-image {\n border-radius: 20px;\n overflow: hidden;\n width: 120px;\n height: 120px;\n position: relative;\n display: block;\n z-index: 10; }\n .dropzone .dz-preview .dz-image img {\n display: block; }\n .dropzone .dz-preview.dz-success .dz-success-mark {\n -webkit-animation: passing-through 3s cubic-bezier(0.77, 0, 0.175, 1);\n animation: passing-through 3s cubic-bezier(0.77, 0, 0.175, 1); }\n .dropzone .dz-preview.dz-error .dz-error-mark {\n opacity: 1;\n -webkit-animation: slide-in 3s cubic-bezier(0.77, 0, 0.175, 1);\n animation: slide-in 3s cubic-bezier(0.77, 0, 0.175, 1); }\n .dropzone .dz-preview .dz-success-mark, .dropzone .dz-preview .dz-error-mark {\n pointer-events: none;\n opacity: 0;\n z-index: 500;\n position: absolute;\n display: block;\n top: 50%;\n left: 50%;\n margin-left: -27px;\n margin-top: -27px; }\n .dropzone .dz-preview .dz-success-mark svg, .dropzone .dz-preview .dz-error-mark svg {\n display: block;\n width: 54px;\n height: 54px; }\n .dropzone .dz-preview.dz-processing .dz-progress {\n opacity: 1;\n transition: all 0.2s linear; }\n .dropzone .dz-preview.dz-complete .dz-progress {\n opacity: 0;\n transition: opacity 0.4s ease-in; }\n .dropzone .dz-preview:not(.dz-processing) .dz-progress {\n -webkit-animation: pulse 6s ease infinite;\n animation: pulse 6s ease infinite; }\n .dropzone .dz-preview .dz-progress {\n opacity: 1;\n z-index: 1000;\n pointer-events: none;\n position: absolute;\n height: 16px;\n left: 50%;\n top: 50%;\n margin-top: -8px;\n width: 80px;\n margin-left: -40px;\n background: rgba(255, 255, 255, 0.9);\n -webkit-transform: scale(1);\n border-radius: 8px;\n overflow: hidden; }\n .dropzone .dz-preview .dz-progress .dz-upload {\n background: #333;\n background: linear-gradient(to bottom, #666, #444);\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n width: 0;\n transition: width 300ms ease-in-out; }\n .dropzone .dz-preview.dz-error .dz-error-message {\n display: block; }\n .dropzone .dz-preview.dz-error:hover .dz-error-message {\n opacity: 1;\n pointer-events: auto; }\n .dropzone .dz-preview .dz-error-message {\n pointer-events: none;\n z-index: 1000;\n position: absolute;\n display: block;\n display: none;\n opacity: 0;\n transition: opacity 0.3s ease;\n border-radius: 8px;\n font-size: 13px;\n top: 130px;\n left: -10px;\n width: 140px;\n background: #be2626;\n background: linear-gradient(to bottom, #be2626, #a92222);\n padding: 0.5em 1.2em;\n color: white; }\n .dropzone .dz-preview .dz-error-message:after {\n content: '';\n position: absolute;\n top: -6px;\n left: 64px;\n width: 0;\n height: 0;\n border-left: 6px solid transparent;\n border-right: 6px solid transparent;\n border-bottom: 6px solid #be2626; }\n.vue-dropzone{border:2px solid #e5e5e5;font-family:Arial,sans-serif;letter-spacing:.2px;color:#777;transition:.2s linear}.vue-dropzone:hover{background-color:#f6f6f6}.vue-dropzone>i{color:#ccc}.vue-dropzone>.dz-preview .dz-image{border-radius:0;width:100%;height:100%}.vue-dropzone>.dz-preview .dz-image img:not([src]){width:200px;height:200px}.vue-dropzone>.dz-preview .dz-image:hover img{transform:none;-webkit-filter:none}.vue-dropzone>.dz-preview .dz-details{bottom:0;top:0;color:#fff;background-color:rgba(33,150,243,.8);transition:opacity .2s linear;text-align:left}.vue-dropzone>.dz-preview .dz-details .dz-filename{overflow:hidden}.vue-dropzone>.dz-preview .dz-details .dz-filename span,.vue-dropzone>.dz-preview .dz-details .dz-size span{background-color:transparent}.vue-dropzone>.dz-preview .dz-details .dz-filename:not(:hover) span{border:none}.vue-dropzone>.dz-preview .dz-details .dz-filename:hover span{background-color:transparent;border:none}.vue-dropzone>.dz-preview .dz-progress .dz-upload{background:#ccc}.vue-dropzone>.dz-preview .dz-remove{position:absolute;z-index:30;color:#fff;margin-left:15px;padding:10px;top:inherit;bottom:15px;border:2px #fff solid;text-decoration:none;text-transform:uppercase;font-size:.8rem;font-weight:800;letter-spacing:1.1px;opacity:0}.vue-dropzone>.dz-preview:hover .dz-remove{opacity:1}.vue-dropzone>.dz-preview .dz-error-mark,.vue-dropzone>.dz-preview .dz-success-mark{margin-left:auto;margin-top:auto;width:100%;top:35%;left:0}.vue-dropzone>.dz-preview .dz-error-mark svg,.vue-dropzone>.dz-preview .dz-success-mark svg{margin-left:auto;margin-right:auto}.vue-dropzone>.dz-preview .dz-error-message{margin-left:auto;margin-right:auto;left:0;width:100%;text-align:center}.vue-dropzone>.dz-preview .dz-error-message:after{display:none}", ""]);
// exports
/***/ }),
/***/ "./node_modules/css-loader/index.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/Pages/Admin/CfgHome/slideradd.vue?vue&type=style&index=0&id=8250b40a&scoped=true&lang=css&":
/*!************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** ./node_modules/css-loader??ref--7-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--7-2!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/Pages/Admin/CfgHome/slideradd.vue?vue&type=style&index=0&id=8250b40a&scoped=true&lang=css& ***!
\************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
exports = module.exports = __webpack_require__(/*! ../../../../../node_modules/css-loader/lib/css-base.js */ "./node_modules/css-loader/lib/css-base.js")(false);
// imports
// module
exports.push([module.i, "\n.vue-dropzone[data-v-8250b40a] {\n border: none !important;\n}\n#dropzone[data-v-8250b40a] {\n padding: 0 !important;\n}\n.dropzone .dz-preview .dz-image-preview[data-v-8250b40a] {\n margin: 0 !important;\n}\n", ""]);
// exports
/***/ }),
/***/ "./node_modules/style-loader/index.js!./node_modules/css-loader/index.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/Pages/Admin/CfgHome/slideradd.vue?vue&type=style&index=0&id=8250b40a&scoped=true&lang=css&":
/*!****************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** ./node_modules/style-loader!./node_modules/css-loader??ref--7-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--7-2!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/Pages/Admin/CfgHome/slideradd.vue?vue&type=style&index=0&id=8250b40a&scoped=true&lang=css& ***!
\****************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var content = __webpack_require__(/*! !../../../../../node_modules/css-loader??ref--7-1!../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/postcss-loader/src??ref--7-2!../../../../../node_modules/vue-loader/lib??vue-loader-options!./slideradd.vue?vue&type=style&index=0&id=8250b40a&scoped=true&lang=css& */ "./node_modules/css-loader/index.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/Pages/Admin/CfgHome/slideradd.vue?vue&type=style&index=0&id=8250b40a&scoped=true&lang=css&");
if(typeof content === 'string') content = [[module.i, content, '']];
var transform;
var insertInto;
var options = {"hmr":true}
options.transform = transform
options.insertInto = undefined;
var update = __webpack_require__(/*! ../../../../../node_modules/style-loader/lib/addStyles.js */ "./node_modules/style-loader/lib/addStyles.js")(content, options);
if(content.locals) module.exports = content.locals;
if(false) {}
/***/ }),
/***/ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/Pages/Admin/CfgHome/slideradd.vue?vue&type=template&id=8250b40a&scoped=true&":
/*!*********************************************************************************************************************************************************************************************************************************!*\
!*** ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/Pages/Admin/CfgHome/slideradd.vue?vue&type=template&id=8250b40a&scoped=true& ***!
\*********************************************************************************************************************************************************************************************************************************/
/*! exports provided: render, staticRenderFns */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return staticRenderFns; });
var render = function() {
var _vm = this
var _h = _vm.$createElement
var _c = _vm._self._c || _h
return _c(
"layout",
[
_vm.flash ? _c("alert", { attrs: { flash: _vm.flash } }) : _vm._e(),
_vm._v(" "),
_c(
"div",
{
staticClass:
"d-sm-flex align-items-center justify-content-between mb-4"
},
[
_c("h1", { staticClass: "h3 mb-0 text-gray-800" }, [
_vm._v("\n Create New Slider\n ")
])
]
),
_vm._v(" "),
_c("breadcrumb", { attrs: { items: _vm.breadcrumbItems } }),
_vm._v(" "),
_c("div", { staticClass: "row" }, [
_c(
"div",
{ staticClass: "col-12" },
[
_c(
"b-card",
{ attrs: { "no-body": "" } },
[
_c(
"b-form",
{
attrs: { id: "form" },
on: {
submit: function($event) {
$event.preventDefault()
return _vm.submit($event)
}
}
},
[
_c(
"b-card-header",
{ staticClass: "p-0" },
[
_c("vue-dropzone", {
ref: "myVueDropzone",
attrs: {
id: "dropzone",
options: _vm.dropzoneOptions
},
on: {
"vdropzone-sending": _vm.dropzoneSendingEvent,
"vdropzone-removed-file": _vm.dropzoneRemovedFile,
"vdropzone-file-added": _vm.dropzoneFileAdded
}
})
],
1
),
_vm._v(" "),
_c(
"b-card-body",
[
_c(
"b-form-group",
{
attrs: {
id: "input-group-caption",
label: "Caption slider:",
"label-for": "input-caption",
"invalid-feedback": _vm.errors.caption
? _vm.errors.caption[0]
: "",
state: _vm.errors.caption ? false : null
}
},
[
_c("b-form-input", {
attrs: {
id: "input-caption",
type: "text",
name: "caption",
placeholder: "Input caption",
state: _vm.errors.caption ? false : null,
trim: ""
},
model: {
value: _vm.form.caption,
callback: function($$v) {
_vm.$set(_vm.form, "caption", $$v)
},
expression: "form.caption"
}
})
],
1
),
_vm._v(" "),
_c(
"b-form-group",
{
attrs: {
id: "input-group-text",
label: "Text slider:",
"label-for": "input-text"
}
},
[
_c("b-form-textarea", {
attrs: {
id: "input-text",
name: "text",
placeholder: "Input text description...",
rows: "3",
"max-rows": "6"
},
model: {
value: _vm.form.text,
callback: function($$v) {
_vm.$set(_vm.form, "text", $$v)
},
expression: "form.text"
}
})
],
1
),
_vm._v(" "),
_c(
"b-form-group",
{
attrs: {
id: "input-group-index",
label: "Index:",
"label-for": "input-index"
}
},
[
_c("b-form-input", {
attrs: {
id: "input-index",
type: "number",
name: "index",
placeholder: "Input index"
},
model: {
value: _vm.form.index,
callback: function($$v) {
_vm.$set(_vm.form, "index", $$v)
},
expression: "form.index"
}
})
],
1
),
_vm._v(" "),
_c(
"b-form-group",
{ attrs: { label: "Apakah akan di tampilkan ?" } },
[
_c(
"b-form-radio-group",
{
attrs: { name: "show" },
model: {
value: _vm.form.show,
callback: function($$v) {
_vm.$set(_vm.form, "show", $$v)
},
expression: "form.show"
}
},
[
_c("b-form-radio", { attrs: { value: "1" } }, [
_vm._v("Yes")
]),
_vm._v(" "),
_c("b-form-radio", { attrs: { value: "0" } }, [
_vm._v("No")
])
],
1
)
],
1
),
_vm._v(" "),
_c(
"b-button",
{ attrs: { type: "submit", variant: "primary" } },
[_vm._v("Submit")]
),
_vm._v(" "),
_c(
"b-button",
{ attrs: { type: "reset", variant: "danger" } },
[_vm._v("Reset")]
)
],
1
)
],
1
)
],
1
)
],
1
)
])
],
1
)
}
var staticRenderFns = []
render._withStripped = true
/***/ }),
/***/ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/Shared/AdminLayout.vue?vue&type=template&id=653ed7a6&":
/*!**********************************************************************************************************************************************************************************************************!*\
!*** ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/Shared/AdminLayout.vue?vue&type=template&id=653ed7a6& ***!
\**********************************************************************************************************************************************************************************************************/
/*! exports provided: render, staticRenderFns */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return staticRenderFns; });
var render = function() {
var _vm = this
var _h = _vm.$createElement
var _c = _vm._self._c || _h
return _c(
"div",
{ attrs: { id: "wrapper" } },
[
_c("Sidebar"),
_vm._v(" "),
_c(
"div",
{ staticClass: "d-flex flex-column", attrs: { id: "content-wrapper" } },
[
_c(
"div",
{ attrs: { id: "content" } },
[
_c("Navbar"),
_vm._v(" "),
_c("main", [
_c(
"div",
{ staticClass: "container-fluid" },
[_vm._t("default")],
2
)
])
],
1
),
_vm._v(" "),
_c("Footer")
],
1
)
],
1
)
}
var staticRenderFns = []
render._withStripped = true
/***/ }),
/***/ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/AdminComponents/Alert.vue?vue&type=template&id=7841b817&":
/*!************************************************************************************************************************************************************************************************************************!*\
!*** ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/components/AdminComponents/Alert.vue?vue&type=template&id=7841b817& ***!
\************************************************************************************************************************************************************************************************************************/
/*! exports provided: render, staticRenderFns */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return staticRenderFns; });
var render = function() {
var _vm = this
var _h = _vm.$createElement
var _c = _vm._self._c || _h
return _vm.flash.success
? _c(
"b-alert",
{ attrs: { show: "3", dismissible: "", fade: "", variant: "success" } },
[_vm._v("\n " + _vm._s(_vm.flash.success) + "\n")]
)
: _vm.flash.error
? _c(
"b-alert",
{ attrs: { show: "3", dismissible: "", fade: "", variant: "error" } },
[_vm._v("\n " + _vm._s(_vm.flash.error) + "\n")]
)
: _vm.flash.info
? _c(
"b-alert",
{ attrs: { show: "3", dismissible: "", fade: "", variant: "info" } },
[_vm._v("\n " + _vm._s(_vm.flash.info) + "\n")]
)
: _vm._e()
}
var staticRenderFns = []
render._withStripped = true
/***/ }),
/***/ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/AdminComponents/Footer.vue?vue&type=template&id=74cedcf0&":
/*!*************************************************************************************************************************************************************************************************************************!*\
!*** ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/components/AdminComponents/Footer.vue?vue&type=template&id=74cedcf0& ***!
\*************************************************************************************************************************************************************************************************************************/
/*! exports provided: render, staticRenderFns */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return staticRenderFns; });
var render = function() {
var _vm = this
var _h = _vm.$createElement
var _c = _vm._self._c || _h
return _vm._m(0)
}
var staticRenderFns = [
function() {
var _vm = this
var _h = _vm.$createElement
var _c = _vm._self._c || _h
return _c("footer", { staticClass: "sticky-footer bg-white" }, [
_c("div", { staticClass: "container my-auto" }, [
_c("div", { staticClass: "copyright text-center my-auto" }, [
_c("span", [_vm._v("Copyright © Your Website 2020")])
])
])
])
}
]
render._withStripped = true
/***/ }),
/***/ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/AdminComponents/Navbar.vue?vue&type=template&id=138100e5&":
/*!*************************************************************************************************************************************************************************************************************************!*\
!*** ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/components/AdminComponents/Navbar.vue?vue&type=template&id=138100e5& ***!
\*************************************************************************************************************************************************************************************************************************/
/*! exports provided: render, staticRenderFns */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return staticRenderFns; });
var render = function() {
var _vm = this
var _h = _vm.$createElement
var _c = _vm._self._c || _h
return _c(
"nav",
{
staticClass:
"navbar navbar-expand navbar-light bg-white topbar mb-4 static-top shadow"
},
[
_vm._m(0),
_vm._v(" "),
_vm._m(1),
_vm._v(" "),
_c("ul", { staticClass: "navbar-nav ml-auto" }, [
_vm._m(2),
_vm._v(" "),
_vm._m(3),
_vm._v(" "),
_vm._m(4),
_vm._v(" "),
_c("div", { staticClass: "topbar-divider d-none d-sm-block" }),
_vm._v(" "),
_c("li", { staticClass: "nav-item dropdown no-arrow" }, [
_vm._m(5),
_vm._v(" "),
_c(
"div",
{
staticClass:
"dropdown-menu dropdown-menu-right shadow animated--grow-in",
attrs: { "aria-labelledby": "userDropdown" }
},
[
_vm._m(6),
_vm._v(" "),
_vm._m(7),
_vm._v(" "),
_vm._m(8),
_vm._v(" "),
_c("div", { staticClass: "dropdown-divider" }),
_vm._v(" "),
_c(
"button",
{
staticClass: "dropdown-item",
on: {
click: function($event) {
_vm.show = true
}
}
},
[
_c("i", {
staticClass:
"fas fa-sign-out-alt fa-sm fa-fw mr-2 text-gray-400"
}),
_vm._v("\n Logout\n ")
]
)
]
)
])
]),
_vm._v(" "),
_c(
"b-modal",
{
attrs: {
title: _vm.__("ModalLogout.Title"),
"header-bg-variant": "primary",
"header-text-variant": "light"
},
scopedSlots: _vm._u([
{
key: "modal-footer",
fn: function() {
return [
_c(
"b-button",
{
attrs: { variant: "secondary" },
on: {
click: function($event) {
_vm.show = false
}
}
},
[
_vm._v(
"\n " +
_vm._s(_vm.__("ModalLogout.Button.Close")) +
"\n "
)
]
),
_vm._v(" "),
_c(
"b-link",
{
staticClass: "btn btn-primary",
attrs: { size: "sm", href: _vm.route("logout") }
},
[
_vm._v(
"\n " +
_vm._s(_vm.__("ModalLogout.Button.Logout")) +
"\n "
)
]
)
]
},
proxy: true
}
]),
model: {
value: _vm.show,
callback: function($$v) {
_vm.show = $$v
},
expression: "show"
}
},
[
_vm._v(
"\n " + _vm._s(_vm.__("ModalLogout.Body")) + "\n "
)
]
)
],
1
)
}
var staticRenderFns = [
function() {
var _vm = this
var _h = _vm.$createElement
var _c = _vm._self._c || _h
return _c(
"button",
{
staticClass: "btn btn-link d-md-none rounded-circle mr-3",
attrs: { id: "sidebarToggleTop" }
},
[_c("i", { staticClass: "fa fa-bars" })]
)
},
function() {
var _vm = this
var _h = _vm.$createElement
var _c = _vm._self._c || _h
return _c(
"form",
{
staticClass:
"d-none d-sm-inline-block form-inline mr-auto ml-md-3 my-2 my-md-0 mw-100 navbar-search"
},
[
_c("div", { staticClass: "input-group" }, [
_c("input", {
staticClass: "form-control bg-light border-0 small",
attrs: {
type: "text",
placeholder: "Search for...",
"aria-label": "Search",
"aria-describedby": "basic-addon2"
}
}),
_vm._v(" "),
_c("div", { staticClass: "input-group-append" }, [
_c(
"button",
{ staticClass: "btn btn-primary", attrs: { type: "button" } },
[_c("i", { staticClass: "fas fa-search fa-sm" })]
)
])
])
]
)
},
function() {
var _vm = this
var _h = _vm.$createElement
var _c = _vm._self._c || _h
return _c("li", { staticClass: "nav-item dropdown no-arrow d-sm-none" }, [
_c(
"a",
{
staticClass: "nav-link dropdown-toggle",
attrs: {
href: "#",
id: "searchDropdown",
role: "button",
"data-toggle": "dropdown",
"aria-haspopup": "true",
"aria-expanded": "false"
}
},
[_c("i", { staticClass: "fas fa-search fa-fw" })]
),
_vm._v(" "),
_c(
"div",
{
staticClass:
"dropdown-menu dropdown-menu-right p-3 shadow animated--grow-in",
attrs: { "aria-labelledby": "searchDropdown" }
},
[
_c(
"form",
{ staticClass: "form-inline mr-auto w-100 navbar-search" },
[
_c("div", { staticClass: "input-group" }, [
_c("input", {
staticClass: "form-control bg-light border-0 small",
attrs: {
type: "text",
placeholder: "Search for...",
"aria-label": "Search",
"aria-describedby": "basic-addon2"
}
}),
_vm._v(" "),
_c("div", { staticClass: "input-group-append" }, [
_c(
"button",
{
staticClass: "btn btn-primary",
attrs: { type: "button" }
},
[_c("i", { staticClass: "fas fa-search fa-sm" })]
)
])
])
]
)
]
)
])
},
function() {
var _vm = this
var _h = _vm.$createElement
var _c = _vm._self._c || _h
return _c("li", { staticClass: "nav-item dropdown no-arrow mx-1" }, [
_c(
"a",
{
staticClass: "nav-link dropdown-toggle",
attrs: {
href: "#",
id: "alertsDropdown",
role: "button",
"data-toggle": "dropdown",
"aria-haspopup": "true",
"aria-expanded": "false"
}
},
[
_c("i", { staticClass: "fas fa-bell fa-fw" }),
_vm._v(" "),
_c("span", { staticClass: "badge badge-danger badge-counter" }, [
_vm._v("3+")
])
]
),
_vm._v(" "),
_c(
"div",
{
staticClass:
"dropdown-list dropdown-menu dropdown-menu-right shadow animated--grow-in",
attrs: { "aria-labelledby": "alertsDropdown" }
},
[
_c("h6", { staticClass: "dropdown-header" }, [
_vm._v("\n Alerts Center\n ")
]),
_vm._v(" "),
_c(
"a",
{
staticClass: "dropdown-item d-flex align-items-center",
attrs: { href: "#" }
},
[
_c("div", { staticClass: "mr-3" }, [
_c("div", { staticClass: "icon-circle bg-primary" }, [
_c("i", { staticClass: "fas fa-file-alt text-white" })
])
]),
_vm._v(" "),
_c("div", [
_c("div", { staticClass: "small text-gray-500" }, [
_vm._v(
"\n December 12, 2019\n "
)
]),
_vm._v(" "),
_c("span", { staticClass: "font-weight-bold" }, [
_vm._v(
"A new monthly report is ready to\n download!"
)
])
])
]
),
_vm._v(" "),
_c(
"a",
{
staticClass: "dropdown-item d-flex align-items-center",
attrs: { href: "#" }
},
[
_c("div", { staticClass: "mr-3" }, [
_c("div", { staticClass: "icon-circle bg-success" }, [
_c("i", { staticClass: "fas fa-donate text-white" })
])
]),
_vm._v(" "),
_c("div", [
_c("div", { staticClass: "small text-gray-500" }, [
_vm._v(
"\n December 7, 2019\n "
)
]),
_vm._v(
"\n $290.29 has been deposited into your account!\n "
)
])
]
),
_vm._v(" "),
_c(
"a",
{
staticClass: "dropdown-item d-flex align-items-center",
attrs: { href: "#" }
},
[
_c("div", { staticClass: "mr-3" }, [
_c("div", { staticClass: "icon-circle bg-warning" }, [
_c("i", {
staticClass: "fas fa-exclamation-triangle text-white"
})
])
]),
_vm._v(" "),
_c("div", [
_c("div", { staticClass: "small text-gray-500" }, [
_vm._v(
"\n December 2, 2019\n "
)
]),
_vm._v(
"\n Spending Alert: We've noticed unusually high\n spending for your account.\n "
)
])
]
),
_vm._v(" "),
_c(
"a",
{
staticClass: "dropdown-item text-center small text-gray-500",
attrs: { href: "#" }
},
[_vm._v("Show All Alerts")]
)
]
)
])
},
function() {
var _vm = this
var _h = _vm.$createElement
var _c = _vm._self._c || _h
return _c("li", { staticClass: "nav-item dropdown no-arrow mx-1" }, [
_c(
"a",
{
staticClass: "nav-link dropdown-toggle",
attrs: {
href: "#",
id: "messagesDropdown",
role: "button",
"data-toggle": "dropdown",
"aria-haspopup": "true",
"aria-expanded": "false"
}
},
[
_c("i", { staticClass: "fas fa-envelope fa-fw" }),
_vm._v(" "),
_c("span", { staticClass: "badge badge-danger badge-counter" }, [
_vm._v("7")
])
]
),
_vm._v(" "),
_c(
"div",
{
staticClass:
"dropdown-list dropdown-menu dropdown-menu-right shadow animated--grow-in",
attrs: { "aria-labelledby": "messagesDropdown" }
},
[
_c("h6", { staticClass: "dropdown-header" }, [
_vm._v("\n Message Center\n ")
]),
_vm._v(" "),
_c(
"a",
{
staticClass: "dropdown-item d-flex align-items-center",
attrs: { href: "#" }
},
[
_c("div", { staticClass: "dropdown-list-image mr-3" }, [
_c("img", {
staticClass: "rounded-circle",
attrs: {
src: "https://source.unsplash.com/fn_BT9fwg_E/60x60",
alt: ""
}
}),
_vm._v(" "),
_c("div", { staticClass: "status-indicator bg-success" })
]),
_vm._v(" "),
_c("div", { staticClass: "font-weight-bold" }, [
_c("div", { staticClass: "text-truncate" }, [
_vm._v(
"\n Hi there! I am wondering if you can help me with\n a problem I've been having.\n "
)
]),
_vm._v(" "),
_c("div", { staticClass: "small text-gray-500" }, [
_vm._v(
"\n Emily Fowler · 58m\n "
)
])
])
]
),
_vm._v(" "),
_c(
"a",
{
staticClass: "dropdown-item d-flex align-items-center",
attrs: { href: "#" }
},
[
_c("div", { staticClass: "dropdown-list-image mr-3" }, [
_c("img", {
staticClass: "rounded-circle",
attrs: {
src: "https://source.unsplash.com/AU4VPcFN4LE/60x60",
alt: ""
}
}),
_vm._v(" "),
_c("div", { staticClass: "status-indicator" })
]),
_vm._v(" "),
_c("div", [
_c("div", { staticClass: "text-truncate" }, [
_vm._v(
"\n I have the photos that you ordered last month,\n how would you like them sent to you?\n "
)
]),
_vm._v(" "),
_c("div", { staticClass: "small text-gray-500" }, [
_vm._v("Jae Chun · 1d")
])
])
]
),
_vm._v(" "),
_c(
"a",
{
staticClass: "dropdown-item d-flex align-items-center",
attrs: { href: "#" }
},
[
_c("div", { staticClass: "dropdown-list-image mr-3" }, [
_c("img", {
staticClass: "rounded-circle",
attrs: {
src: "https://source.unsplash.com/CS2uCrpNzJY/60x60",
alt: ""
}
}),
_vm._v(" "),
_c("div", { staticClass: "status-indicator bg-warning" })
]),
_vm._v(" "),
_c("div", [
_c("div", { staticClass: "text-truncate" }, [
_vm._v(
"\n Last month's report looks great, I am very happy\n with the progress so far, keep up the good work!\n "
)
]),
_vm._v(" "),
_c("div", { staticClass: "small text-gray-500" }, [
_vm._v(
"\n Morgan Alvarez · 2d\n "
)
])
])
]
),
_vm._v(" "),
_c(
"a",
{
staticClass: "dropdown-item d-flex align-items-center",
attrs: { href: "#" }
},
[
_c("div", { staticClass: "dropdown-list-image mr-3" }, [
_c("img", {
staticClass: "rounded-circle",
attrs: {
src: "https://source.unsplash.com/Mv9hjnEUHR4/60x60",
alt: ""
}
}),
_vm._v(" "),
_c("div", { staticClass: "status-indicator bg-success" })
]),
_vm._v(" "),
_c("div", [
_c("div", { staticClass: "text-truncate" }, [
_vm._v(
"\n Am I a good boy? The reason I ask is because\n someone told me that people say this to all\n dogs, even if they aren't good...\n "
)
]),
_vm._v(" "),
_c("div", { staticClass: "small text-gray-500" }, [
_vm._v(
"\n Chicken the Dog · 2w\n "
)
])
])
]
),
_vm._v(" "),
_c(
"a",
{
staticClass: "dropdown-item text-center small text-gray-500",
attrs: { href: "#" }
},
[_vm._v("Read More Messages")]
)
]
)
])
},
function() {
var _vm = this
var _h = _vm.$createElement
var _c = _vm._self._c || _h
return _c(
"a",
{
staticClass: "nav-link dropdown-toggle",
attrs: {
href: "#",
id: "userDropdown",
role: "button",
"data-toggle": "dropdown",
"aria-haspopup": "true",
"aria-expanded": "false"
}
},
[
_c(
"span",
{ staticClass: "mr-2 d-none d-lg-inline text-gray-600 small" },
[_vm._v("Valerie Luna")]
),
_vm._v(" "),
_c("img", {
staticClass: "img-profile rounded-circle",
attrs: { src: "https://source.unsplash.com/QAB-WJcbgJk/60x60" }
})
]
)
},
function() {
var _vm = this
var _h = _vm.$createElement
var _c = _vm._self._c || _h
return _c("a", { staticClass: "dropdown-item", attrs: { href: "#" } }, [
_c("i", { staticClass: "fas fa-user fa-sm fa-fw mr-2 text-gray-400" }),
_vm._v("\n Profile\n ")
])
},
function() {
var _vm = this
var _h = _vm.$createElement
var _c = _vm._self._c || _h
return _c("a", { staticClass: "dropdown-item", attrs: { href: "#" } }, [
_c("i", { staticClass: "fas fa-cogs fa-sm fa-fw mr-2 text-gray-400" }),
_vm._v("\n Settings\n ")
])
},
function() {
var _vm = this
var _h = _vm.$createElement
var _c = _vm._self._c || _h
return _c("a", { staticClass: "dropdown-item", attrs: { href: "#" } }, [
_c("i", { staticClass: "fas fa-list fa-sm fa-fw mr-2 text-gray-400" }),
_vm._v("\n Activity Log\n ")
])
}
]
render._withStripped = true
/***/ }),
/***/ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/AdminComponents/Sidebar.vue?vue&type=template&id=64918552&":
/*!**************************************************************************************************************************************************************************************************************************!*\
!*** ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/components/AdminComponents/Sidebar.vue?vue&type=template&id=64918552& ***!
\**************************************************************************************************************************************************************************************************************************/
/*! exports provided: render, staticRenderFns */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return staticRenderFns; });
var render = function() {
var _vm = this
var _h = _vm.$createElement
var _c = _vm._self._c || _h
return _c(
"ul",
{
staticClass:
"navbar-nav bg-gradient-primary sidebar sidebar-dark accordion",
attrs: { id: "accordionSidebar" }
},
[
_vm._m(0),
_vm._v(" "),
_c("hr", { staticClass: "sidebar-divider my-0" }),
_vm._v(" "),
_c("sidebar-item", { attrs: { items: _vm.itemsNav } }),
_vm._v(" "),
_c("hr", { staticClass: "sidebar-divider d-none d-md-block" }),
_vm._v(" "),
_vm._m(1)
],
1
)
}
var staticRenderFns = [
function() {
var _vm = this
var _h = _vm.$createElement
var _c = _vm._self._c || _h
return _c(
"a",
{
staticClass:
"sidebar-brand d-flex align-items-center justify-content-center",
attrs: { href: "index.html" }
},
[
_c("div", { staticClass: "sidebar-brand-icon rotate-n-15" }, [
_c("i", { staticClass: "fas fa-laugh-wink" })
]),
_vm._v(" "),
_c("div", { staticClass: "sidebar-brand-text mx-3" }, [
_vm._v("\n SB Admin\n "),
_c("sup", [_vm._v("2")])
])
]
)
},
function() {
var _vm = this
var _h = _vm.$createElement
var _c = _vm._self._c || _h
return _c("div", { staticClass: "text-center d-none d-md-inline" }, [
_c("button", {
staticClass: "rounded-circle border-0",
attrs: { id: "sidebarToggle" }
})
])
}
]
render._withStripped = true
/***/ }),
/***/ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/AdminComponents/SidebarItem.vue?vue&type=template&id=2a7038ec&":
/*!******************************************************************************************************************************************************************************************************************************!*\
!*** ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/components/AdminComponents/SidebarItem.vue?vue&type=template&id=2a7038ec& ***!
\******************************************************************************************************************************************************************************************************************************/
/*! exports provided: render, staticRenderFns */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return staticRenderFns; });
var render = function() {
var _vm = this
var _h = _vm.$createElement
var _c = _vm._self._c || _h
return _c(
"div",
_vm._l(_vm.items, function(item) {
return _c(
"li",
{
key: item.id,
staticClass: "nav-item",
class: _vm.checkStatusRoutes(item) == true ? "active" : ""
},
[
_vm.isArrayRoutes(item) == true
? _c("div", [
_c(
"a",
{
staticClass: "nav-link",
class:
_vm.checkStatusRoutes(item) == true ? "" : "collapsed",
attrs: {
href: "#",
"data-toggle": "collapse",
"data-target": "#" + item.title + "Page",
"aria-expanded": "false",
"aria-controls": item.title + "Page"
}
},
[
_c("i", { class: item.icon }),
_vm._v(" "),
_c("span", [_vm._v(_vm._s(item.title))])
]
),
_vm._v(" "),
_vm.isArrayRoutes(item) == true
? _c(
"div",
{
staticClass: "collapse",
class:
_vm.checkStatusRoutes(item) == true ? "show" : "",
attrs: {
id: item.title + "Page",
"aria-labelledby": "headingPage",
"data-parent": "#accordionSidebar"
}
},
[
_c(
"div",
{
staticClass: "bg-white py-2 collapse-inner rounded"
},
_vm._l(item.child, function(itemChild) {
return _c(
"inertia-link",
{
key: itemChild.link,
class: _vm.isRoute(itemChild.link)
? "collapse-item active"
: "collapse-item",
attrs: { href: _vm.route(itemChild.link) }
},
[_vm._v(_vm._s(itemChild.title))]
)
}),
1
)
]
)
: _vm._e()
])
: _c(
"inertia-link",
{
staticClass: "nav-link",
attrs: { href: _vm.route(item.link) }
},
[
_c("i", { class: item.icon }),
_vm._v(" "),
_c("span", [_vm._v(_vm._s(item.title))])
]
)
],
1
)
}),
0
)
}
var staticRenderFns = []
render._withStripped = true
/***/ }),
/***/ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/Breadcrumb.vue?vue&type=template&id=c259b9a4&":
/*!*************************************************************************************************************************************************************************************************************!*\
!*** ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/components/Breadcrumb.vue?vue&type=template&id=c259b9a4& ***!
\*************************************************************************************************************************************************************************************************************/
/*! exports provided: render, staticRenderFns */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return staticRenderFns; });
var render = function() {
var _vm = this
var _h = _vm.$createElement
var _c = _vm._self._c || _h
return _c(
"ol",
{ staticClass: "breadcrumb" },
_vm._l(_vm.items, function(item) {
return _c(
"li",
{
key: item.title,
staticClass: "breadcrumb-item",
class: { active: item.active }
},
[
!item.active
? _c("inertia-link", { attrs: { href: _vm.route(item.href) } }, [
item.icon
? _c("i", { staticClass: "fas", class: item.icon })
: _vm._e(),
_vm._v("\n " + _vm._s(item.title) + "\n ")
])
: _c("span", [
item.icon
? _c("i", { staticClass: "fas", class: item.icon })
: _vm._e(),
_vm._v("\n " + _vm._s(item.title) + "\n ")
])
],
1
)
}),
0
)
}
var staticRenderFns = []
render._withStripped = true
/***/ }),
/***/ "./node_modules/vue2-dropzone/dist/vue2Dropzone.js":
/*!*********************************************************!*\
!*** ./node_modules/vue2-dropzone/dist/vue2Dropzone.js ***!
\*********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
!function(e,t){ true?module.exports=t():undefined}(this,function(){"use strict";var e,t=(function(e){var t=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=function(){function e(){n(this,e)}return t(e,[{key:"on",value:function(e,t){return this._callbacks=this._callbacks||{},this._callbacks[e]||(this._callbacks[e]=[]),this._callbacks[e].push(t),this}},{key:"emit",value:function(e){this._callbacks=this._callbacks||{};var t=this._callbacks[e];if(t){for(var i=arguments.length,n=Array(i>1?i-1:0),r=1;r<i;r++)n[r-1]=arguments[r];for(var o=0,s=s=t;;){if(o>=s.length)break;s[o++].apply(this,n)}}return this}},{key:"off",value:function(e,t){if(!this._callbacks||0===arguments.length)return this._callbacks={},this;var i=this._callbacks[e];if(!i)return this;if(1===arguments.length)return delete this._callbacks[e],this;for(var n=0;n<i.length;n++){if(i[n]===t){i.splice(n,1);break}}return this}}]),e}(),o=function(e){function o(e,t){n(this,o);var r,s=i(this,(o.__proto__||Object.getPrototypeOf(o)).call(this)),a=void 0;if(s.element=e,s.version=o.version,s.defaultOptions.previewTemplate=s.defaultOptions.previewTemplate.replace(/\n*/g,""),s.clickableElements=[],s.listeners=[],s.files=[],"string"==typeof s.element&&(s.element=document.querySelector(s.element)),!s.element||null==s.element.nodeType)throw new Error("Invalid dropzone element.");if(s.element.dropzone)throw new Error("Dropzone already attached.");o.instances.push(s),s.element.dropzone=s;var l,u=null!=(r=o.optionsForElement(s.element))?r:{};if(s.options=o.extend({},s.defaultOptions,u,null!=t?t:{}),s.options.forceFallback||!o.isBrowserSupported())return l=s.options.fallback.call(s),i(s,l);if(null==s.options.url&&(s.options.url=s.element.getAttribute("action")),!s.options.url)throw new Error("No URL provided.");if(s.options.acceptedFiles&&s.options.acceptedMimeTypes)throw new Error("You can't provide both 'acceptedFiles' and 'acceptedMimeTypes'. 'acceptedMimeTypes' is deprecated.");if(s.options.uploadMultiple&&s.options.chunking)throw new Error("You cannot set both: uploadMultiple and chunking.");return s.options.acceptedMimeTypes&&(s.options.acceptedFiles=s.options.acceptedMimeTypes,delete s.options.acceptedMimeTypes),null!=s.options.renameFilename&&(s.options.renameFile=function(e){return s.options.renameFilename.call(s,e.name,e)}),s.options.method=s.options.method.toUpperCase(),(a=s.getExistingFallback())&&a.parentNode&&a.parentNode.removeChild(a),!1!==s.options.previewsContainer&&(s.options.previewsContainer?s.previewsContainer=o.getElement(s.options.previewsContainer,"previewsContainer"):s.previewsContainer=s.element),s.options.clickable&&(!0===s.options.clickable?s.clickableElements=[s.element]:s.clickableElements=o.getElements(s.options.clickable,"clickable")),s.init(),s}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(o,r),t(o,null,[{key:"initClass",value:function(){this.prototype.Emitter=r,this.prototype.events=["drop","dragstart","dragend","dragenter","dragover","dragleave","addedfile","addedfiles","removedfile","thumbnail","error","errormultiple","processing","processingmultiple","uploadprogress","totaluploadprogress","sending","sendingmultiple","success","successmultiple","canceled","canceledmultiple","complete","completemultiple","reset","maxfilesexceeded","maxfilesreached","queuecomplete"],this.prototype.defaultOptions={url:null,method:"post",withCredentials:!1,timeout:3e4,parallelUploads:2,uploadMultiple:!1,chunking:!1,forceChunking:!1,chunkSize:2e6,parallelChunkUploads:!1,retryChunks:!1,retryChunksLimit:3,maxFilesize:256,paramName:"file",createImageThumbnails:!0,maxThumbnailFilesize:10,thumbnailWidth:120,thumbnailHeight:120,thumbnailMethod:"crop",resizeWidth:null,resizeHeight:null,resizeMimeType:null,resizeQuality:.8,resizeMethod:"contain",filesizeBase:1e3,maxFiles:null,headers:null,clickable:!0,ignoreHiddenFiles:!0,acceptedFiles:null,acceptedMimeTypes:null,autoProcessQueue:!0,autoQueue:!0,addRemoveLinks:!1,previewsContainer:null,hiddenInputContainer:"body",capture:null,renameFilename:null,renameFile:null,forceFallback:!1,dictDefaultMessage:"Drop files here to upload",dictFallbackMessage:"Your browser does not support drag'n'drop file uploads.",dictFallbackText:"Please use the fallback form below to upload your files like in the olden days.",dictFileTooBig:"File is too big ({{filesize}}MiB). Max filesize: {{maxFilesize}}MiB.",dictInvalidFileType:"You can't upload files of this type.",dictResponseError:"Server responded with {{statusCode}} code.",dictCancelUpload:"Cancel upload",dictUploadCanceled:"Upload canceled.",dictCancelUploadConfirmation:"Are you sure you want to cancel this upload?",dictRemoveFile:"Remove file",dictRemoveFileConfirmation:null,dictMaxFilesExceeded:"You can not upload any more files.",dictFileSizeUnits:{tb:"TB",gb:"GB",mb:"MB",kb:"KB",b:"b"},init:function(){},params:function(e,t,i){if(i)return{dzuuid:i.file.upload.uuid,dzchunkindex:i.index,dztotalfilesize:i.file.size,dzchunksize:this.options.chunkSize,dztotalchunkcount:i.file.upload.totalChunkCount,dzchunkbyteoffset:i.index*this.options.chunkSize}},accept:function(e,t){return t()},chunksUploaded:function(e,t){t()},fallback:function(){var e=void 0;this.element.className=this.element.className+" dz-browser-not-supported";for(var t=0,i=i=this.element.getElementsByTagName("div");;){if(t>=i.length)break;var n=i[t++];if(/(^| )dz-message($| )/.test(n.className)){e=n,n.className="dz-message";break}}e||(e=o.createElement('<div class="dz-message"><span></span></div>'),this.element.appendChild(e));var r=e.getElementsByTagName("span")[0];return r&&(null!=r.textContent?r.textContent=this.options.dictFallbackMessage:null!=r.innerText&&(r.innerText=this.options.dictFallbackMessage)),this.element.appendChild(this.getFallbackForm())},resize:function(e,t,i,n){var r={srcX:0,srcY:0,srcWidth:e.width,srcHeight:e.height},o=e.width/e.height;null==t&&null==i?(t=r.srcWidth,i=r.srcHeight):null==t?t=i*o:null==i&&(i=t/o);var s=(t=Math.min(t,r.srcWidth))/(i=Math.min(i,r.srcHeight));if(r.srcWidth>t||r.srcHeight>i)if("crop"===n)o>s?(r.srcHeight=e.height,r.srcWidth=r.srcHeight*s):(r.srcWidth=e.width,r.srcHeight=r.srcWidth/s);else{if("contain"!==n)throw new Error("Unknown resizeMethod '"+n+"'");o>s?i=t/o:t=i*o}return r.srcX=(e.width-r.srcWidth)/2,r.srcY=(e.height-r.srcHeight)/2,r.trgWidth=t,r.trgHeight=i,r},transformFile:function(e,t){return(this.options.resizeWidth||this.options.resizeHeight)&&e.type.match(/image.*/)?this.resizeImage(e,this.options.resizeWidth,this.options.resizeHeight,this.options.resizeMethod,t):t(e)},previewTemplate:'<div class="dz-preview dz-file-preview">\n <div class="dz-image"><img data-dz-thumbnail /></div>\n <div class="dz-details">\n <div class="dz-size"><span data-dz-size></span></div>\n <div class="dz-filename"><span data-dz-name></span></div>\n </div>\n <div class="dz-progress"><span class="dz-upload" data-dz-uploadprogress></span></div>\n <div class="dz-error-message"><span data-dz-errormessage></span></div>\n <div class="dz-success-mark">\n <svg width="54px" height="54px" viewBox="0 0 54 54" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns">\n <title>Check</title>\n <defs></defs>\n <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" sketch:type="MSPage">\n <path d="M23.5,31.8431458 L17.5852419,25.9283877 C16.0248253,24.3679711 13.4910294,24.366835 11.9289322,25.9289322 C10.3700136,27.4878508 10.3665912,30.0234455 11.9283877,31.5852419 L20.4147581,40.0716123 C20.5133999,40.1702541 20.6159315,40.2626649 20.7218615,40.3488435 C22.2835669,41.8725651 24.794234,41.8626202 26.3461564,40.3106978 L43.3106978,23.3461564 C44.8771021,21.7797521 44.8758057,19.2483887 43.3137085,17.6862915 C41.7547899,16.1273729 39.2176035,16.1255422 37.6538436,17.6893022 L23.5,31.8431458 Z M27,53 C41.3594035,53 53,41.3594035 53,27 C53,12.6405965 41.3594035,1 27,1 C12.6405965,1 1,12.6405965 1,27 C1,41.3594035 12.6405965,53 27,53 Z" id="Oval-2" stroke-opacity="0.198794158" stroke="#747474" fill-opacity="0.816519475" fill="#FFFFFF" sketch:type="MSShapeGroup"></path>\n </g>\n </svg>\n </div>\n <div class="dz-error-mark">\n <svg width="54px" height="54px" viewBox="0 0 54 54" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns">\n <title>Error</title>\n <defs></defs>\n <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" sketch:type="MSPage">\n <g id="Check-+-Oval-2" sketch:type="MSLayerGroup" stroke="#747474" stroke-opacity="0.198794158" fill="#FFFFFF" fill-opacity="0.816519475">\n <path d="M32.6568542,29 L38.3106978,23.3461564 C39.8771021,21.7797521 39.8758057,19.2483887 38.3137085,17.6862915 C36.7547899,16.1273729 34.2176035,16.1255422 32.6538436,17.6893022 L27,23.3431458 L21.3461564,17.6893022 C19.7823965,16.1255422 17.2452101,16.1273729 15.6862915,17.6862915 C14.1241943,19.2483887 14.1228979,21.7797521 15.6893022,23.3461564 L21.3431458,29 L15.6893022,34.6538436 C14.1228979,36.2202479 14.1241943,38.7516113 15.6862915,40.3137085 C17.2452101,41.8726271 19.7823965,41.8744578 21.3461564,40.3106978 L27,34.6568542 L32.6538436,40.3106978 C34.2176035,41.8744578 36.7547899,41.8726271 38.3137085,40.3137085 C39.8758057,38.7516113 39.8771021,36.2202479 38.3106978,34.6538436 L32.6568542,29 Z M27,53 C41.3594035,53 53,41.3594035 53,27 C53,12.6405965 41.3594035,1 27,1 C12.6405965,1 1,12.6405965 1,27 C1,41.3594035 12.6405965,53 27,53 Z" id="Oval-2" sketch:type="MSShapeGroup"></path>\n </g>\n </g>\n </svg>\n </div>\n</div>',drop:function(e){return this.element.classList.remove("dz-drag-hover")},dragstart:function(e){},dragend:function(e){return this.element.classList.remove("dz-drag-hover")},dragenter:function(e){return this.element.classList.add("dz-drag-hover")},dragover:function(e){return this.element.classList.add("dz-drag-hover")},dragleave:function(e){return this.element.classList.remove("dz-drag-hover")},paste:function(e){},reset:function(){return this.element.classList.remove("dz-started")},addedfile:function(e){var t=this;if(this.element===this.previewsContainer&&this.element.classList.add("dz-started"),this.previewsContainer){e.previewElement=o.createElement(this.options.previewTemplate.trim()),e.previewTemplate=e.previewElement,this.previewsContainer.appendChild(e.previewElement);for(var i=0,n=n=e.previewElement.querySelectorAll("[data-dz-name]");;){if(i>=n.length)break;var r=n[i++];r.textContent=e.name}for(var s=0,a=a=e.previewElement.querySelectorAll("[data-dz-size]");!(s>=a.length);)(r=a[s++]).innerHTML=this.filesize(e.size);this.options.addRemoveLinks&&(e._removeLink=o.createElement('<a class="dz-remove" href="javascript:undefined;" data-dz-remove>'+this.options.dictRemoveFile+"</a>"),e.previewElement.appendChild(e._removeLink));for(var l=function(i){return i.preventDefault(),i.stopPropagation(),e.status===o.UPLOADING?o.confirm(t.options.dictCancelUploadConfirmation,function(){return t.removeFile(e)}):t.options.dictRemoveFileConfirmation?o.confirm(t.options.dictRemoveFileConfirmation,function(){return t.removeFile(e)}):t.removeFile(e)},u=0,d=d=e.previewElement.querySelectorAll("[data-dz-remove]");;){if(u>=d.length)break;d[u++].addEventListener("click",l)}}},removedfile:function(e){return null!=e.previewElement&&null!=e.previewElement.parentNode&&e.previewElement.parentNode.removeChild(e.previewElement),this._updateMaxFilesReachedClass()},thumbnail:function(e,t){if(e.previewElement){e.previewElement.classList.remove("dz-file-preview");for(var i=0,n=n=e.previewElement.querySelectorAll("[data-dz-thumbnail]");;){if(i>=n.length)break;var r=n[i++];r.alt=e.name,r.src=t}return setTimeout(function(){return e.previewElement.classList.add("dz-image-preview")},1)}},error:function(e,t){if(e.previewElement){e.previewElement.classList.add("dz-error"),"String"!=typeof t&&t.error&&(t=t.error);for(var i=0,n=n=e.previewElement.querySelectorAll("[data-dz-errormessage]");;){if(i>=n.length)break;n[i++].textContent=t}}},errormultiple:function(){},processing:function(e){if(e.previewElement&&(e.previewElement.classList.add("dz-processing"),e._removeLink))return e._removeLink.innerHTML=this.options.dictCancelUpload},processingmultiple:function(){},uploadprogress:function(e,t,i){if(e.previewElement)for(var n=0,r=r=e.previewElement.querySelectorAll("[data-dz-uploadprogress]");;){if(n>=r.length)break;var o=r[n++];"PROGRESS"===o.nodeName?o.value=t:o.style.width=t+"%"}},totaluploadprogress:function(){},sending:function(){},sendingmultiple:function(){},success:function(e){if(e.previewElement)return e.previewElement.classList.add("dz-success")},successmultiple:function(){},canceled:function(e){return this.emit("error",e,this.options.dictUploadCanceled)},canceledmultiple:function(){},complete:function(e){if(e._removeLink&&(e._removeLink.innerHTML=this.options.dictRemoveFile),e.previewElement)return e.previewElement.classList.add("dz-complete")},completemultiple:function(){},maxfilesexceeded:function(){},maxfilesreached:function(){},queuecomplete:function(){},addedfiles:function(){}},this.prototype._thumbnailQueue=[],this.prototype._processingThumbnail=!1}},{key:"extend",value:function(e){for(var t=arguments.length,i=Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];for(var r=0,o=o=i;;){if(r>=o.length)break;var s=o[r++];for(var a in s){var l=s[a];e[a]=l}}return e}}]),t(o,[{key:"getAcceptedFiles",value:function(){return this.files.filter(function(e){return e.accepted}).map(function(e){return e})}},{key:"getRejectedFiles",value:function(){return this.files.filter(function(e){return!e.accepted}).map(function(e){return e})}},{key:"getFilesWithStatus",value:function(e){return this.files.filter(function(t){return t.status===e}).map(function(e){return e})}},{key:"getQueuedFiles",value:function(){return this.getFilesWithStatus(o.QUEUED)}},{key:"getUploadingFiles",value:function(){return this.getFilesWithStatus(o.UPLOADING)}},{key:"getAddedFiles",value:function(){return this.getFilesWithStatus(o.ADDED)}},{key:"getActiveFiles",value:function(){return this.files.filter(function(e){return e.status===o.UPLOADING||e.status===o.QUEUED}).map(function(e){return e})}},{key:"init",value:function(){var e=this;if("form"===this.element.tagName&&this.element.setAttribute("enctype","multipart/form-data"),this.element.classList.contains("dropzone")&&!this.element.querySelector(".dz-message")&&this.element.appendChild(o.createElement('<div class="dz-default dz-message"><span>'+this.options.dictDefaultMessage+"</span></div>")),this.clickableElements.length){!function t(){return e.hiddenFileInput&&e.hiddenFileInput.parentNode.removeChild(e.hiddenFileInput),e.hiddenFileInput=document.createElement("input"),e.hiddenFileInput.setAttribute("type","file"),(null===e.options.maxFiles||e.options.maxFiles>1)&&e.hiddenFileInput.setAttribute("multiple","multiple"),e.hiddenFileInput.className="dz-hidden-input",null!==e.options.acceptedFiles&&e.hiddenFileInput.setAttribute("accept",e.options.acceptedFiles),null!==e.options.capture&&e.hiddenFileInput.setAttribute("capture",e.options.capture),e.hiddenFileInput.style.visibility="hidden",e.hiddenFileInput.style.position="absolute",e.hiddenFileInput.style.top="0",e.hiddenFileInput.style.left="0",e.hiddenFileInput.style.height="0",e.hiddenFileInput.style.width="0",o.getElement(e.options.hiddenInputContainer,"hiddenInputContainer").appendChild(e.hiddenFileInput),e.hiddenFileInput.addEventListener("change",function(){var i=e.hiddenFileInput.files;if(i.length)for(var n=0,r=r=i;!(n>=r.length);){var o=r[n++];e.addFile(o)}return e.emit("addedfiles",i),t()})}()}this.URL=null!==window.URL?window.URL:window.webkitURL;for(var t=0,i=i=this.events;;){if(t>=i.length)break;var n=i[t++];this.on(n,this.options[n])}this.on("uploadprogress",function(){return e.updateTotalUploadProgress()}),this.on("removedfile",function(){return e.updateTotalUploadProgress()}),this.on("canceled",function(t){return e.emit("complete",t)}),this.on("complete",function(t){if(0===e.getAddedFiles().length&&0===e.getUploadingFiles().length&&0===e.getQueuedFiles().length)return setTimeout(function(){return e.emit("queuecomplete")},0)});var r=function(e){return e.stopPropagation(),e.preventDefault?e.preventDefault():e.returnValue=!1};return this.listeners=[{element:this.element,events:{dragstart:function(t){return e.emit("dragstart",t)},dragenter:function(t){return r(t),e.emit("dragenter",t)},dragover:function(t){var i=void 0;try{i=t.dataTransfer.effectAllowed}catch(e){}return t.dataTransfer.dropEffect="move"===i||"linkMove"===i?"move":"copy",r(t),e.emit("dragover",t)},dragleave:function(t){return e.emit("dragleave",t)},drop:function(t){return r(t),e.drop(t)},dragend:function(t){return e.emit("dragend",t)}}}],this.clickableElements.forEach(function(t){return e.listeners.push({element:t,events:{click:function(i){return(t!==e.element||i.target===e.element||o.elementInside(i.target,e.element.querySelector(".dz-message")))&&e.hiddenFileInput.click(),!0}}})}),this.enable(),this.options.init.call(this)}},{key:"destroy",value:function(){return this.disable(),this.removeAllFiles(!0),(null!=this.hiddenFileInput?this.hiddenFileInput.parentNode:void 0)&&(this.hiddenFileInput.parentNode.removeChild(this.hiddenFileInput),this.hiddenFileInput=null),delete this.element.dropzone,o.instances.splice(o.instances.indexOf(this),1)}},{key:"updateTotalUploadProgress",value:function(){var e=void 0,t=0,i=0;if(this.getActiveFiles().length){for(var n=0,r=r=this.getActiveFiles();;){if(n>=r.length)break;var o=r[n++];t+=o.upload.bytesSent,i+=o.upload.total}e=100*t/i}else e=100;return this.emit("totaluploadprogress",e,i,t)}},{key:"_getParamName",value:function(e){return"function"==typeof this.options.paramName?this.options.paramName(e):this.options.paramName+(this.options.uploadMultiple?"["+e+"]":"")}},{key:"_renameFile",value:function(e){return"function"!=typeof this.options.renameFile?e.name:this.options.renameFile(e)}},{key:"getFallbackForm",value:function(){var e,t=void 0;if(e=this.getExistingFallback())return e;var i='<div class="dz-fallback">';this.options.dictFallbackText&&(i+="<p>"+this.options.dictFallbackText+"</p>"),i+='<input type="file" name="'+this._getParamName(0)+'" '+(this.options.uploadMultiple?'multiple="multiple"':void 0)+' /><input type="submit" value="Upload!"></div>';var n=o.createElement(i);return"FORM"!==this.element.tagName?(t=o.createElement('<form action="'+this.options.url+'" enctype="multipart/form-data" method="'+this.options.method+'"></form>')).appendChild(n):(this.element.setAttribute("enctype","multipart/form-data"),this.element.setAttribute("method",this.options.method)),null!=t?t:n}},{key:"getExistingFallback",value:function(){for(var e=function(e){for(var t=0,i=i=e;;){if(t>=i.length)break;var n=i[t++];if(/(^| )fallback($| )/.test(n.className))return n}},t=["div","form"],i=0;i<t.length;i++){var n,r=t[i];if(n=e(this.element.getElementsByTagName(r)))return n}}},{key:"setupEventListeners",value:function(){return this.listeners.map(function(e){return function(){var t=[];for(var i in e.events){var n=e.events[i];t.push(e.element.addEventListener(i,n,!1))}return t}()})}},{key:"removeEventListeners",value:function(){return this.listeners.map(function(e){return function(){var t=[];for(var i in e.events){var n=e.events[i];t.push(e.element.removeEventListener(i,n,!1))}return t}()})}},{key:"disable",value:function(){var e=this;return this.clickableElements.forEach(function(e){return e.classList.remove("dz-clickable")}),this.removeEventListeners(),this.disabled=!0,this.files.map(function(t){return e.cancelUpload(t)})}},{key:"enable",value:function(){return delete this.disabled,this.clickableElements.forEach(function(e){return e.classList.add("dz-clickable")}),this.setupEventListeners()}},{key:"filesize",value:function(e){var t=0,i="b";if(e>0){for(var n=["tb","gb","mb","kb","b"],r=0;r<n.length;r++){var o=n[r];if(e>=Math.pow(this.options.filesizeBase,4-r)/10){t=e/Math.pow(this.options.filesizeBase,4-r),i=o;break}}t=Math.round(10*t)/10}return"<strong>"+t+"</strong> "+this.options.dictFileSizeUnits[i]}},{key:"_updateMaxFilesReachedClass",value:function(){return null!=this.options.maxFiles&&this.getAcceptedFiles().length>=this.options.maxFiles?(this.getAcceptedFiles().length===this.options.maxFiles&&this.emit("maxfilesreached",this.files),this.element.classList.add("dz-max-files-reached")):this.element.classList.remove("dz-max-files-reached")}},{key:"drop",value:function(e){if(e.dataTransfer){this.emit("drop",e);for(var t=[],i=0;i<e.dataTransfer.files.length;i++)t[i]=e.dataTransfer.files[i];if(this.emit("addedfiles",t),t.length){var n=e.dataTransfer.items;n&&n.length&&null!=n[0].webkitGetAsEntry?this._addFilesFromItems(n):this.handleFiles(t)}}}},{key:"paste",value:function(e){if(null!=(t=null!=e?e.clipboardData:void 0,i=function(e){return e.items},null!=t?i(t):void 0)){var t,i;this.emit("paste",e);var n=e.clipboardData.items;return n.length?this._addFilesFromItems(n):void 0}}},{key:"handleFiles",value:function(e){for(var t=0,i=i=e;;){if(t>=i.length)break;var n=i[t++];this.addFile(n)}}},{key:"_addFilesFromItems",value:function(e){var t=this;return function(){for(var i=[],n=0,r=r=e;;){if(n>=r.length)break;var o,s=r[n++];null!=s.webkitGetAsEntry&&(o=s.webkitGetAsEntry())?o.isFile?i.push(t.addFile(s.getAsFile())):o.isDirectory?i.push(t._addFilesFromDirectory(o,o.name)):i.push(void 0):null!=s.getAsFile&&(null==s.kind||"file"===s.kind)?i.push(t.addFile(s.getAsFile())):i.push(void 0)}return i}()}},{key:"_addFilesFromDirectory",value:function(e,t){var i=this,n=e.createReader(),r=function(e){return t=console,i="log",n=function(t){return t.log(e)},null!=t&&"function"==typeof t[i]?n(t,i):void 0;var t,i,n};return function e(){return n.readEntries(function(n){if(n.length>0){for(var r=0,o=o=n;!(r>=o.length);){var s=o[r++];s.isFile?s.file(function(e){if(!i.options.ignoreHiddenFiles||"."!==e.name.substring(0,1))return e.fullPath=t+"/"+e.name,i.addFile(e)}):s.isDirectory&&i._addFilesFromDirectory(s,t+"/"+s.name)}e()}return null},r)}()}},{key:"accept",value:function(e,t){return this.options.maxFilesize&&e.size>1024*this.options.maxFilesize*1024?t(this.options.dictFileTooBig.replace("{{filesize}}",Math.round(e.size/1024/10.24)/100).replace("{{maxFilesize}}",this.options.maxFilesize)):o.isValidFile(e,this.options.acceptedFiles)?null!=this.options.maxFiles&&this.getAcceptedFiles().length>=this.options.maxFiles?(t(this.options.dictMaxFilesExceeded.replace("{{maxFiles}}",this.options.maxFiles)),this.emit("maxfilesexceeded",e)):this.options.accept.call(this,e,t):t(this.options.dictInvalidFileType)}},{key:"addFile",value:function(e){var t=this;return e.upload={uuid:o.uuidv4(),progress:0,total:e.size,bytesSent:0,filename:this._renameFile(e),chunked:this.options.chunking&&(this.options.forceChunking||e.size>this.options.chunkSize),totalChunkCount:Math.ceil(e.size/this.options.chunkSize)},this.files.push(e),e.status=o.ADDED,this.emit("addedfile",e),this._enqueueThumbnail(e),this.accept(e,function(i){return i?(e.accepted=!1,t._errorProcessing([e],i)):(e.accepted=!0,t.options.autoQueue&&t.enqueueFile(e)),t._updateMaxFilesReachedClass()})}},{key:"enqueueFiles",value:function(e){for(var t=0,i=i=e;;){if(t>=i.length)break;var n=i[t++];this.enqueueFile(n)}return null}},{key:"enqueueFile",value:function(e){var t=this;if(e.status!==o.ADDED||!0!==e.accepted)throw new Error("This file can't be queued because it has already been processed or was rejected.");if(e.status=o.QUEUED,this.options.autoProcessQueue)return setTimeout(function(){return t.processQueue()},0)}},{key:"_enqueueThumbnail",value:function(e){var t=this;if(this.options.createImageThumbnails&&e.type.match(/image.*/)&&e.size<=1024*this.options.maxThumbnailFilesize*1024)return this._thumbnailQueue.push(e),setTimeout(function(){return t._processThumbnailQueue()},0)}},{key:"_processThumbnailQueue",value:function(){var e=this;if(!this._processingThumbnail&&0!==this._thumbnailQueue.length){this._processingThumbnail=!0;var t=this._thumbnailQueue.shift();return this.createThumbnail(t,this.options.thumbnailWidth,this.options.thumbnailHeight,this.options.thumbnailMethod,!0,function(i){return e.emit("thumbnail",t,i),e._processingThumbnail=!1,e._processThumbnailQueue()})}}},{key:"removeFile",value:function(e){if(e.status===o.UPLOADING&&this.cancelUpload(e),this.files=s(this.files,e),this.emit("removedfile",e),0===this.files.length)return this.emit("reset")}},{key:"removeAllFiles",value:function(e){null==e&&(e=!1);for(var t=0,i=i=this.files.slice();;){if(t>=i.length)break;var n=i[t++];(n.status!==o.UPLOADING||e)&&this.removeFile(n)}return null}},{key:"resizeImage",value:function(e,t,i,n,r){var s=this;return this.createThumbnail(e,t,i,n,!0,function(t,i){if(null==i)return r(e);var n=s.options.resizeMimeType;null==n&&(n=e.type);var a=i.toDataURL(n,s.options.resizeQuality);return"image/jpeg"!==n&&"image/jpg"!==n||(a=u.restore(e.dataURL,a)),r(o.dataURItoBlob(a))})}},{key:"createThumbnail",value:function(e,t,i,n,r,o){var s=this,a=new FileReader;return a.onload=function(){if(e.dataURL=a.result,"image/svg+xml"!==e.type)return s.createThumbnailFromUrl(e,t,i,n,r,o);null!=o&&o(a.result)},a.readAsDataURL(e)}},{key:"createThumbnailFromUrl",value:function(e,t,i,n,r,o,s){var a=this,u=document.createElement("img");return s&&(u.crossOrigin=s),u.onload=function(){var s=function(e){return e(1)};return"undefined"!=typeof EXIF&&null!==EXIF&&r&&(s=function(e){return EXIF.getData(u,function(){return e(EXIF.getTag(this,"Orientation"))})}),s(function(r){e.width=u.width,e.height=u.height;var s=a.options.resize.call(a,e,t,i,n),d=document.createElement("canvas"),c=d.getContext("2d");switch(d.width=s.trgWidth,d.height=s.trgHeight,r>4&&(d.width=s.trgHeight,d.height=s.trgWidth),r){case 2:c.translate(d.width,0),c.scale(-1,1);break;case 3:c.translate(d.width,d.height),c.rotate(Math.PI);break;case 4:c.translate(0,d.height),c.scale(1,-1);break;case 5:c.rotate(.5*Math.PI),c.scale(1,-1);break;case 6:c.rotate(.5*Math.PI),c.translate(0,-d.width);break;case 7:c.rotate(.5*Math.PI),c.translate(d.height,-d.width),c.scale(-1,1);break;case 8:c.rotate(-.5*Math.PI),c.translate(-d.height,0)}l(c,u,null!=s.srcX?s.srcX:0,null!=s.srcY?s.srcY:0,s.srcWidth,s.srcHeight,null!=s.trgX?s.trgX:0,null!=s.trgY?s.trgY:0,s.trgWidth,s.trgHeight);var p=d.toDataURL("image/png");if(null!=o)return o(p,d)})},null!=o&&(u.onerror=o),u.src=e.dataURL}},{key:"processQueue",value:function(){var e=this.options.parallelUploads,t=this.getUploadingFiles().length,i=t;if(!(t>=e)){var n=this.getQueuedFiles();if(n.length>0){if(this.options.uploadMultiple)return this.processFiles(n.slice(0,e-t));for(;i<e;){if(!n.length)return;this.processFile(n.shift()),i++}}}}},{key:"processFile",value:function(e){return this.processFiles([e])}},{key:"processFiles",value:function(e){for(var t=0,i=i=e;;){if(t>=i.length)break;var n=i[t++];n.processing=!0,n.status=o.UPLOADING,this.emit("processing",n)}return this.options.uploadMultiple&&this.emit("processingmultiple",e),this.uploadFiles(e)}},{key:"_getFilesWithXhr",value:function(e){return this.files.filter(function(t){return t.xhr===e}).map(function(e){return e})}},{key:"cancelUpload",value:function(e){if(e.status===o.UPLOADING){for(var t=this._getFilesWithXhr(e.xhr),i=0,n=n=t;;){if(i>=n.length)break;n[i++].status=o.CANCELED}void 0!==e.xhr&&e.xhr.abort();for(var r=0,s=s=t;;){if(r>=s.length)break;var a=s[r++];this.emit("canceled",a)}this.options.uploadMultiple&&this.emit("canceledmultiple",t)}else e.status!==o.ADDED&&e.status!==o.QUEUED||(e.status=o.CANCELED,this.emit("canceled",e),this.options.uploadMultiple&&this.emit("canceledmultiple",[e]));if(this.options.autoProcessQueue)return this.processQueue()}},{key:"resolveOption",value:function(e){if("function"==typeof e){for(var t=arguments.length,i=Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];return e.apply(this,i)}return e}},{key:"uploadFile",value:function(e){return this.uploadFiles([e])}},{key:"uploadFiles",value:function(e){var t=this;this._transformFiles(e,function(i){if(e[0].upload.chunked){var n=e[0],r=i[0];n.upload.chunks=[];var s=function(){for(var i=0;void 0!==n.upload.chunks[i];)i++;if(!(i>=n.upload.totalChunkCount)){var s=i*t.options.chunkSize,a=Math.min(s+t.options.chunkSize,n.size),l={name:t._getParamName(0),data:r.webkitSlice?r.webkitSlice(s,a):r.slice(s,a),filename:n.upload.filename,chunkIndex:i};n.upload.chunks[i]={file:n,index:i,dataBlock:l,status:o.UPLOADING,progress:0,retries:0},t._uploadData(e,[l])}};if(n.upload.finishedChunkUpload=function(i){var r=!0;i.status=o.SUCCESS,i.dataBlock=null,i.xhr=null;for(var a=0;a<n.upload.totalChunkCount;a++){if(void 0===n.upload.chunks[a])return s();n.upload.chunks[a].status!==o.SUCCESS&&(r=!1)}r&&t.options.chunksUploaded(n,function(){t._finished(e,"",null)})},t.options.parallelChunkUploads)for(var a=0;a<n.upload.totalChunkCount;a++)s();else s()}else{for(var l=[],u=0;u<e.length;u++)l[u]={name:t._getParamName(u),data:i[u],filename:e[u].upload.filename};t._uploadData(e,l)}})}},{key:"_getChunk",value:function(e,t){for(var i=0;i<e.upload.totalChunkCount;i++)if(void 0!==e.upload.chunks[i]&&e.upload.chunks[i].xhr===t)return e.upload.chunks[i]}},{key:"_uploadData",value:function(e,t){for(var i=this,n=new XMLHttpRequest,r=0,s=s=e;;){if(r>=s.length)break;s[r++].xhr=n}e[0].upload.chunked&&(e[0].upload.chunks[t[0].chunkIndex].xhr=n);var a=this.resolveOption(this.options.method,e),l=this.resolveOption(this.options.url,e);n.open(a,l,!0),n.timeout=this.resolveOption(this.options.timeout,e),n.withCredentials=!!this.options.withCredentials,n.onload=function(t){i._finishedUploading(e,n,t)},n.onerror=function(){i._handleUploadError(e,n)},(null!=n.upload?n.upload:n).onprogress=function(t){return i._updateFilesUploadProgress(e,n,t)};var u={Accept:"application/json","Cache-Control":"no-cache","X-Requested-With":"XMLHttpRequest"};for(var d in this.options.headers&&o.extend(u,this.options.headers),u){var c=u[d];c&&n.setRequestHeader(d,c)}var p=new FormData;if(this.options.params){var h=this.options.params;for(var f in"function"==typeof h&&(h=h.call(this,e,n,e[0].upload.chunked?this._getChunk(e[0],n):null)),h){var m=h[f];p.append(f,m)}}for(var v=0,g=g=e;;){if(v>=g.length)break;var k=g[v++];this.emit("sending",k,n,p)}this.options.uploadMultiple&&this.emit("sendingmultiple",e,n,p),this._addFormElementData(p);for(var y=0;y<t.length;y++){var b=t[y];p.append(b.name,b.data,b.filename)}this.submitRequest(n,p,e)}},{key:"_transformFiles",value:function(e,t){for(var i=this,n=[],r=0,o=function(o){i.options.transformFile.call(i,e[o],function(i){n[o]=i,++r===e.length&&t(n)})},s=0;s<e.length;s++)o(s)}},{key:"_addFormElementData",value:function(e){if("FORM"===this.element.tagName)for(var t=0,i=i=this.element.querySelectorAll("input, textarea, select, button");;){if(t>=i.length)break;var n=i[t++],r=n.getAttribute("name"),o=n.getAttribute("type");if(o&&(o=o.toLowerCase()),null!=r)if("SELECT"===n.tagName&&n.hasAttribute("multiple"))for(var s=0,a=a=n.options;;){if(s>=a.length)break;var l=a[s++];l.selected&&e.append(r,l.value)}else(!o||"checkbox"!==o&&"radio"!==o||n.checked)&&e.append(r,n.value)}}},{key:"_updateFilesUploadProgress",value:function(e,t,i){var n=void 0;if(void 0!==i){if(n=100*i.loaded/i.total,e[0].upload.chunked){var r=e[0],o=this._getChunk(r,t);o.progress=n,o.total=i.total,o.bytesSent=i.loaded,r.upload.progress=0,r.upload.total=0,r.upload.bytesSent=0;for(var s=0;s<r.upload.totalChunkCount;s++)void 0!==r.upload.chunks[s]&&void 0!==r.upload.chunks[s].progress&&(r.upload.progress+=r.upload.chunks[s].progress,r.upload.total+=r.upload.chunks[s].total,r.upload.bytesSent+=r.upload.chunks[s].bytesSent);r.upload.progress=r.upload.progress/r.upload.totalChunkCount}else for(var a=0,l=l=e;;){if(a>=l.length)break;var u=l[a++];u.upload.progress=n,u.upload.total=i.total,u.upload.bytesSent=i.loaded}for(var d=0,c=c=e;;){if(d>=c.length)break;var p=c[d++];this.emit("uploadprogress",p,p.upload.progress,p.upload.bytesSent)}}else{var h=!0;n=100;for(var f=0,m=m=e;;){if(f>=m.length)break;var v=m[f++];100===v.upload.progress&&v.upload.bytesSent===v.upload.total||(h=!1),v.upload.progress=n,v.upload.bytesSent=v.upload.total}if(h)return;for(var g=0,k=k=e;;){if(g>=k.length)break;var y=k[g++];this.emit("uploadprogress",y,n,y.upload.bytesSent)}}}},{key:"_finishedUploading",value:function(e,t,i){var n=void 0;if(e[0].status!==o.CANCELED&&4===t.readyState){if("arraybuffer"!==t.responseType&&"blob"!==t.responseType&&(n=t.responseText,t.getResponseHeader("content-type")&&~t.getResponseHeader("content-type").indexOf("application/json")))try{n=JSON.parse(n)}catch(e){i=e,n="Invalid JSON response from server."}this._updateFilesUploadProgress(e),200<=t.status&&t.status<300?e[0].upload.chunked?e[0].upload.finishedChunkUpload(this._getChunk(e[0],t)):this._finished(e,n,i):this._handleUploadError(e,t,n)}}},{key:"_handleUploadError",value:function(e,t,i){if(e[0].status!==o.CANCELED){if(e[0].upload.chunked&&this.options.retryChunks){var n=this._getChunk(e[0],t);if(n.retries++<this.options.retryChunksLimit)return void this._uploadData(e,[n.dataBlock]);console.warn("Retried this chunk too often. Giving up.")}for(var r=0,s=s=e;;){if(r>=s.length)break;s[r++],this._errorProcessing(e,i||this.options.dictResponseError.replace("{{statusCode}}",t.status),t)}}}},{key:"submitRequest",value:function(e,t,i){e.send(t)}},{key:"_finished",value:function(e,t,i){for(var n=0,r=r=e;;){if(n>=r.length)break;var s=r[n++];s.status=o.SUCCESS,this.emit("success",s,t,i),this.emit("complete",s)}if(this.options.uploadMultiple&&(this.emit("successmultiple",e,t,i),this.emit("completemultiple",e)),this.options.autoProcessQueue)return this.processQueue()}},{key:"_errorProcessing",value:function(e,t,i){for(var n=0,r=r=e;;){if(n>=r.length)break;var s=r[n++];s.status=o.ERROR,this.emit("error",s,t,i),this.emit("complete",s)}if(this.options.uploadMultiple&&(this.emit("errormultiple",e,t,i),this.emit("completemultiple",e)),this.options.autoProcessQueue)return this.processQueue()}}],[{key:"uuidv4",value:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})}}]),o}();o.initClass(),o.version="5.5.1",o.options={},o.optionsForElement=function(e){return e.getAttribute("id")?o.options[a(e.getAttribute("id"))]:void 0},o.instances=[],o.forElement=function(e){if("string"==typeof e&&(e=document.querySelector(e)),null==(null!=e?e.dropzone:void 0))throw new Error("No Dropzone found for given element. This is probably because you're trying to access it before Dropzone had the time to initialize. Use the `init` option to setup any additional observers on your Dropzone.");return e.dropzone},o.autoDiscover=!0,o.discover=function(){var e=void 0;if(document.querySelectorAll)e=document.querySelectorAll(".dropzone");else{e=[];var t=function(t){return function(){for(var i=[],n=0,r=r=t;;){if(n>=r.length)break;var o=r[n++];/(^| )dropzone($| )/.test(o.className)?i.push(e.push(o)):i.push(void 0)}return i}()};t(document.getElementsByTagName("div")),t(document.getElementsByTagName("form"))}return function(){for(var t=[],i=0,n=n=e;;){if(i>=n.length)break;var r=n[i++];!1!==o.optionsForElement(r)?t.push(new o(r)):t.push(void 0)}return t}()},o.blacklistedBrowsers=[/opera.*(Macintosh|Windows Phone).*version\/12/i],o.isBrowserSupported=function(){var e=!0;if(window.File&&window.FileReader&&window.FileList&&window.Blob&&window.FormData&&document.querySelector)if("classList"in document.createElement("a"))for(var t=0,i=i=o.blacklistedBrowsers;;){if(t>=i.length)break;i[t++].test(navigator.userAgent)&&(e=!1)}else e=!1;else e=!1;return e},o.dataURItoBlob=function(e){for(var t=atob(e.split(",")[1]),i=e.split(",")[0].split(":")[1].split(";")[0],n=new ArrayBuffer(t.length),r=new Uint8Array(n),o=0,s=t.length,a=0<=s;a?o<=s:o>=s;a?o++:o--)r[o]=t.charCodeAt(o);return new Blob([n],{type:i})};var s=function(e,t){return e.filter(function(e){return e!==t}).map(function(e){return e})},a=function(e){return e.replace(/[\-_](\w)/g,function(e){return e.charAt(1).toUpperCase()})};o.createElement=function(e){var t=document.createElement("div");return t.innerHTML=e,t.childNodes[0]},o.elementInside=function(e,t){if(e===t)return!0;for(;e=e.parentNode;)if(e===t)return!0;return!1},o.getElement=function(e,t){var i=void 0;if("string"==typeof e?i=document.querySelector(e):null!=e.nodeType&&(i=e),null==i)throw new Error("Invalid `"+t+"` option provided. Please provide a CSS selector or a plain HTML element.");return i},o.getElements=function(e,t){var i=void 0,n=void 0;if(e instanceof Array){n=[];try{for(var r=0,o=o=e;!(r>=o.length);)i=o[r++],n.push(this.getElement(i,t))}catch(e){n=null}}else if("string"==typeof e){n=[];for(var s=0,a=a=document.querySelectorAll(e);!(s>=a.length);)i=a[s++],n.push(i)}else null!=e.nodeType&&(n=[e]);if(null==n||!n.length)throw new Error("Invalid `"+t+"` option provided. Please provide a CSS selector, a plain HTML element or a list of those.");return n},o.confirm=function(e,t,i){return window.confirm(e)?t():null!=i?i():void 0},o.isValidFile=function(e,t){if(!t)return!0;t=t.split(",");for(var i=e.type,n=i.replace(/\/.*$/,""),r=0,o=o=t;;){if(r>=o.length)break;var s=o[r++];if("."===(s=s.trim()).charAt(0)){if(-1!==e.name.toLowerCase().indexOf(s.toLowerCase(),e.name.length-s.length))return!0}else if(/\/\*$/.test(s)){if(n===s.replace(/\/.*$/,""))return!0}else if(i===s)return!0}return!1},"undefined"!=typeof jQuery&&null!==jQuery&&(jQuery.fn.dropzone=function(e){return this.each(function(){return new o(this,e)})}),null!==e?e.exports=o:window.Dropzone=o,o.ADDED="added",o.QUEUED="queued",o.ACCEPTED=o.QUEUED,o.UPLOADING="uploading",o.PROCESSING=o.UPLOADING,o.CANCELED="canceled",o.ERROR="error",o.SUCCESS="success";var l=function(e,t,i,n,r,o,s,a,l,u){var d=function(e){e.naturalWidth;var t=e.naturalHeight,i=document.createElement("canvas");i.width=1,i.height=t;var n=i.getContext("2d");n.drawImage(e,0,0);for(var r=n.getImageData(1,0,1,t).data,o=0,s=t,a=t;a>o;)0===r[4*(a-1)+3]?s=a:o=a,a=s+o>>1;var l=a/t;return 0===l?1:l}(t);return e.drawImage(t,i,n,r,o,s,a,l,u/d)},u=function(){function e(){n(this,e)}return t(e,null,[{key:"initClass",value:function(){this.KEY_STR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}},{key:"encode64",value:function(e){for(var t="",i=void 0,n=void 0,r="",o=void 0,s=void 0,a=void 0,l="",u=0;o=(i=e[u++])>>2,s=(3&i)<<4|(n=e[u++])>>4,a=(15&n)<<2|(r=e[u++])>>6,l=63&r,isNaN(n)?a=l=64:isNaN(r)&&(l=64),t=t+this.KEY_STR.charAt(o)+this.KEY_STR.charAt(s)+this.KEY_STR.charAt(a)+this.KEY_STR.charAt(l),i=n=r="",o=s=a=l="",u<e.length;);return t}},{key:"restore",value:function(e,t){if(!e.match("data:image/jpeg;base64,"))return t;var i=this.decode64(e.replace("data:image/jpeg;base64,","")),n=this.slice2Segments(i),r=this.exifManipulation(t,n);return"data:image/jpeg;base64,"+this.encode64(r)}},{key:"exifManipulation",value:function(e,t){var i=this.getExifArray(t),n=this.insertExif(e,i);return new Uint8Array(n)}},{key:"getExifArray",value:function(e){for(var t=void 0,i=0;i<e.length;){if(255===(t=e[i])[0]&225===t[1])return t;i++}return[]}},{key:"insertExif",value:function(e,t){var i=e.replace("data:image/jpeg;base64,",""),n=this.decode64(i),r=n.indexOf(255,3),o=n.slice(0,r),s=n.slice(r),a=o;return a=(a=a.concat(t)).concat(s)}},{key:"slice2Segments",value:function(e){for(var t=0,i=[];;){if(255===e[t]&218===e[t+1])break;if(255===e[t]&216===e[t+1])t+=2;else{var n=t+(256*e[t+2]+e[t+3])+2,r=e.slice(t,n);i.push(r),t=n}if(t>e.length)break}return i}},{key:"decode64",value:function(e){var t=void 0,i=void 0,n="",r=void 0,o=void 0,s="",a=0,l=[];for(/[^A-Za-z0-9\+\/\=]/g.exec(e)&&console.warn("There were invalid base64 characters in the input text.\nValid base64 characters are A-Z, a-z, 0-9, '+', '/',and '='\nExpect errors in decoding."),e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");t=this.KEY_STR.indexOf(e.charAt(a++))<<2|(r=this.KEY_STR.indexOf(e.charAt(a++)))>>4,i=(15&r)<<4|(o=this.KEY_STR.indexOf(e.charAt(a++)))>>2,n=(3&o)<<6|(s=this.KEY_STR.indexOf(e.charAt(a++))),l.push(t),64!==o&&l.push(i),64!==s&&l.push(n),t=i=n="",r=o=s="",a<e.length;);return l}}]),e}();u.initClass(),o._autoDiscoverFunction=function(){if(o.autoDiscover)return o.discover()},function(e,t){var i=!1,n=!0,r=e.document,o=r.documentElement,s=r.addEventListener?"addEventListener":"attachEvent",a=r.addEventListener?"removeEventListener":"detachEvent",l=r.addEventListener?"":"on",u=function n(o){if("readystatechange"!==o.type||"complete"===r.readyState)return("load"===o.type?e:r)[a](l+o.type,n,!1),!i&&(i=!0)?t.call(e,o.type||o):void 0};if("complete"!==r.readyState){if(r.createEventObject&&o.doScroll){try{n=!e.frameElement}catch(e){}n&&function e(){try{o.doScroll("left")}catch(t){return void setTimeout(e,50)}return u("poll")}()}r[s](l+"DOMContentLoaded",u,!1),r[s](l+"readystatechange",u,!1),e[s](l+"load",u,!1)}}(window,o._autoDiscoverFunction)}(e={exports:{}},e.exports),e.exports),i={getSignedURL(e,t){let i={filePath:e.name,contentType:e.type};return new Promise((n,r)=>{var o=new FormData;let s=new XMLHttpRequest,a="function"==typeof t.signingURL?t.signingURL(e):t.signingURL;s.open("POST",a),s.onload=function(){200==s.status?n(JSON.parse(s.response)):r(s.statusText)},s.onerror=function(e){console.error("Network Error : Could not send request to AWS (Maybe CORS errors)"),r(e)},!0===t.withCredentials&&(s.withCredentials=!0),Object.entries(t.headers||{}).forEach(([e,t])=>{s.setRequestHeader(e,t)}),i=Object.assign(i,t.params||{}),Object.entries(i).forEach(([e,t])=>{o.append(e,t)}),s.send(o)})},sendFile(e,t,i){var n=i?this.setResponseHandler:this.sendS3Handler;return this.getSignedURL(e,t).then(t=>n(t,e)).catch(e=>e)},setResponseHandler(e,t){t.s3Signature=e.signature,t.s3Url=e.postEndpoint},sendS3Handler(e,t){let i=new FormData,n=e.signature;return Object.keys(n).forEach(function(e){i.append(e,n[e])}),i.append("file",t),new Promise((t,n)=>{let r=new XMLHttpRequest;r.open("POST",e.postEndpoint),r.onload=function(){if(201==r.status){var e=(new window.DOMParser).parseFromString(r.response,"text/xml").firstChild.children[0].innerHTML;t({success:!0,message:e})}else{var i=(new window.DOMParser).parseFromString(r.response,"text/xml").firstChild.children[0].innerHTML;n({success:!1,message:i+". Request is marked as resolved when returns as status 201"})}},r.onerror=function(e){var t=(new window.DOMParser).parseFromString(r.response,"text/xml").firstChild.children[1].innerHTML;n({success:!1,message:t})},r.send(i)})}};t.autoDiscover=!1;return function(e,t,i,n,r,o,s,a,l,u){"boolean"!=typeof s&&(l=a,a=s,s=!1);var d,c="function"==typeof i?i.options:i;if(e&&e.render&&(c.render=e.render,c.staticRenderFns=e.staticRenderFns,c._compiled=!0,r&&(c.functional=!0)),n&&(c._scopeId=n),o?(d=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,l(e)),e&&e._registeredComponents&&e._registeredComponents.add(o)},c._ssrRegister=d):t&&(d=s?function(){t.call(this,u(this.$root.$options.shadowRoot))}:function(e){t.call(this,a(e))}),d)if(c.functional){var p=c.render;c.render=function(e,t){return d.call(t),p(e,t)}}else{var h=c.beforeCreate;c.beforeCreate=h?[].concat(h,d):[d]}return i}({render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{ref:"dropzoneElement",class:{"vue-dropzone dropzone":this.includeStyling},attrs:{id:this.id}},[this.useCustomSlot?t("div",{staticClass:"dz-message"},[this._t("default",[this._v("Drop files here to upload")])],2):this._e()])},staticRenderFns:[]},void 0,{props:{id:{type:String,required:!0,default:"dropzone"},options:{type:Object,required:!0},includeStyling:{type:Boolean,default:!0,required:!1},awss3:{type:Object,required:!1,default:null},destroyDropzone:{type:Boolean,default:!0,required:!1},duplicateCheck:{type:Boolean,default:!1,required:!1},useCustomSlot:{type:Boolean,default:!1,required:!1}},data:()=>({isS3:!1,isS3OverridesServerPropagation:!1,wasQueueAutoProcess:!0}),computed:{dropzoneSettings(){let e={thumbnailWidth:200,thumbnailHeight:200};return Object.keys(this.options).forEach(function(t){e[t]=this.options[t]},this),null!==this.awss3&&(e.autoProcessQueue=!1,this.isS3=!0,this.isS3OverridesServerPropagation=!1===this.awss3.sendFileToServer,void 0!==this.options.autoProcessQueue&&(this.wasQueueAutoProcess=this.options.autoProcessQueue),this.isS3OverridesServerPropagation&&(e.url=(e=>e[0].s3Url))),e}},mounted(){if(this.$isServer&&this.hasBeenMounted)return;this.hasBeenMounted=!0,this.dropzone=new t(this.$refs.dropzoneElement,this.dropzoneSettings);let e=this;this.dropzone.on("thumbnail",function(t,i){e.$emit("vdropzone-thumbnail",t,i)}),this.dropzone.on("addedfile",function(t){var i,n;if(e.duplicateCheck&&this.files.length)for(i=0,n=this.files.length;i<n-1;i++)this.files[i].name===t.name&&this.files[i].size===t.size&&this.files[i].lastModifiedDate.toString()===t.lastModifiedDate.toString()&&(this.removeFile(t),e.$emit("vdropzone-duplicate-file",t));e.$emit("vdropzone-file-added",t),e.isS3&&e.wasQueueAutoProcess&&!t.manuallyAdded&&e.getSignedAndUploadToS3(t)}),this.dropzone.on("addedfiles",function(t){e.$emit("vdropzone-files-added",t)}),this.dropzone.on("removedfile",function(t){e.$emit("vdropzone-removed-file",t),t.manuallyAdded&&null!==e.dropzone.options.maxFiles&&e.dropzone.options.maxFiles++}),this.dropzone.on("success",function(t,i){if(e.$emit("vdropzone-success",t,i),e.isS3){if(e.isS3OverridesServerPropagation){var n=(new window.DOMParser).parseFromString(i,"text/xml").firstChild.children[0].innerHTML;e.$emit("vdropzone-s3-upload-success",n)}e.wasQueueAutoProcess&&e.setOption("autoProcessQueue",!1)}}),this.dropzone.on("successmultiple",function(t,i){e.$emit("vdropzone-success-multiple",t,i)}),this.dropzone.on("error",function(t,i,n){e.$emit("vdropzone-error",t,i,n),this.isS3&&e.$emit("vdropzone-s3-upload-error")}),this.dropzone.on("errormultiple",function(t,i,n){e.$emit("vdropzone-error-multiple",t,i,n)}),this.dropzone.on("sending",function(t,i,n){if(e.isS3)if(e.isS3OverridesServerPropagation){let e=t.s3Signature;Object.keys(e).forEach(function(t){n.append(t,e[t])})}else n.append("s3ObjectLocation",t.s3ObjectLocation);e.$emit("vdropzone-sending",t,i,n)}),this.dropzone.on("sendingmultiple",function(t,i,n){e.$emit("vdropzone-sending-multiple",t,i,n)}),this.dropzone.on("complete",function(t){e.$emit("vdropzone-complete",t)}),this.dropzone.on("completemultiple",function(t){e.$emit("vdropzone-complete-multiple",t)}),this.dropzone.on("canceled",function(t){e.$emit("vdropzone-canceled",t)}),this.dropzone.on("canceledmultiple",function(t){e.$emit("vdropzone-canceled-multiple",t)}),this.dropzone.on("maxfilesreached",function(t){e.$emit("vdropzone-max-files-reached",t)}),this.dropzone.on("maxfilesexceeded",function(t){e.$emit("vdropzone-max-files-exceeded",t)}),this.dropzone.on("processing",function(t){e.$emit("vdropzone-processing",t)}),this.dropzone.on("processingmultiple",function(t){e.$emit("vdropzone-processing-multiple",t)}),this.dropzone.on("uploadprogress",function(t,i,n){e.$emit("vdropzone-upload-progress",t,i,n)}),this.dropzone.on("totaluploadprogress",function(t,i,n){e.$emit("vdropzone-total-upload-progress",t,i,n)}),this.dropzone.on("reset",function(){e.$emit("vdropzone-reset")}),this.dropzone.on("queuecomplete",function(){e.$emit("vdropzone-queue-complete")}),this.dropzone.on("drop",function(t){e.$emit("vdropzone-drop",t)}),this.dropzone.on("dragstart",function(t){e.$emit("vdropzone-drag-start",t)}),this.dropzone.on("dragend",function(t){e.$emit("vdropzone-drag-end",t)}),this.dropzone.on("dragenter",function(t){e.$emit("vdropzone-drag-enter",t)}),this.dropzone.on("dragover",function(t){e.$emit("vdropzone-drag-over",t)}),this.dropzone.on("dragleave",function(t){e.$emit("vdropzone-drag-leave",t)}),e.$emit("vdropzone-mounted")},beforeDestroy(){this.destroyDropzone&&this.dropzone.destroy()},methods:{manuallyAddFile:function(e,t){e.manuallyAdded=!0,this.dropzone.emit("addedfile",e);let i=!1;if((t.indexOf(".svg")>-1||t.indexOf(".png")>-1||t.indexOf(".jpg")>-1||t.indexOf(".jpeg")>-1||t.indexOf(".gif")>-1||t.indexOf(".webp")>-1)&&(i=!0),this.dropzone.options.createImageThumbnails&&i&&e.size<=1024*this.dropzone.options.maxThumbnailFilesize*1024){t&&this.dropzone.emit("thumbnail",e,t);for(var n=e.previewElement.querySelectorAll("[data-dz-thumbnail]"),r=0;r<n.length;r++)n[r].style.width=this.dropzoneSettings.thumbnailWidth+"px",n[r].style.height=this.dropzoneSettings.thumbnailHeight+"px",n[r].style["object-fit"]="contain"}this.dropzone.emit("complete",e),this.dropzone.options.maxFiles&&this.dropzone.options.maxFiles--,this.dropzone.files.push(e),this.$emit("vdropzone-file-added-manually",e)},setOption:function(e,t){this.dropzone.options[e]=t},removeAllFiles:function(e){this.dropzone.removeAllFiles(e)},processQueue:function(){let e=this.dropzone;this.isS3&&!this.wasQueueAutoProcess?this.getQueuedFiles().forEach(e=>{this.getSignedAndUploadToS3(e)}):this.dropzone.processQueue(),this.dropzone.on("success",function(){e.options.autoProcessQueue=!0}),this.dropzone.on("queuecomplete",function(){e.options.autoProcessQueue=!1})},init:function(){return this.dropzone.init()},destroy:function(){return this.dropzone.destroy()},updateTotalUploadProgress:function(){return this.dropzone.updateTotalUploadProgress()},getFallbackForm:function(){return this.dropzone.getFallbackForm()},getExistingFallback:function(){return this.dropzone.getExistingFallback()},setupEventListeners:function(){return this.dropzone.setupEventListeners()},removeEventListeners:function(){return this.dropzone.removeEventListeners()},disable:function(){return this.dropzone.disable()},enable:function(){return this.dropzone.enable()},filesize:function(e){return this.dropzone.filesize(e)},accept:function(e,t){return this.dropzone.accept(e,t)},addFile:function(e){return this.dropzone.addFile(e)},removeFile:function(e){this.dropzone.removeFile(e)},getAcceptedFiles:function(){return this.dropzone.getAcceptedFiles()},getRejectedFiles:function(){return this.dropzone.getRejectedFiles()},getFilesWithStatus:function(){return this.dropzone.getFilesWithStatus()},getQueuedFiles:function(){return this.dropzone.getQueuedFiles()},getUploadingFiles:function(){return this.dropzone.getUploadingFiles()},getAddedFiles:function(){return this.dropzone.getAddedFiles()},getActiveFiles:function(){return this.dropzone.getActiveFiles()},getSignedAndUploadToS3(e){var t=i.sendFile(e,this.awss3,this.isS3OverridesServerPropagation);this.isS3OverridesServerPropagation?t.then(()=>{setTimeout(()=>this.dropzone.processFile(e))}):t.then(t=>{t.success?(e.s3ObjectLocation=t.message,setTimeout(()=>this.dropzone.processFile(e)),this.$emit("vdropzone-s3-upload-success",t.message)):void 0!==t.message?this.$emit("vdropzone-s3-upload-error",t.message):this.$emit("vdropzone-s3-upload-error","Network Error : Could not send request to AWS. (Maybe CORS error)")}),t.catch(e=>{alert(e)})},setAWSSigningURL(e){this.isS3&&(this.awss3.signingURL=e)}}},void 0,!1,void 0,void 0,void 0)});
//# sourceMappingURL=vue2Dropzone.js.map
/***/ }),
/***/ "./node_modules/vue2-dropzone/dist/vue2Dropzone.min.css":
/*!**************************************************************!*\
!*** ./node_modules/vue2-dropzone/dist/vue2Dropzone.min.css ***!
\**************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var content = __webpack_require__(/*! !../../css-loader??ref--7-1!../../postcss-loader/src??ref--7-2!./vue2Dropzone.min.css */ "./node_modules/css-loader/index.js?!./node_modules/postcss-loader/src/index.js?!./node_modules/vue2-dropzone/dist/vue2Dropzone.min.css");
if(typeof content === 'string') content = [[module.i, content, '']];
var transform;
var insertInto;
var options = {"hmr":true}
options.transform = transform
options.insertInto = undefined;
var update = __webpack_require__(/*! ../../style-loader/lib/addStyles.js */ "./node_modules/style-loader/lib/addStyles.js")(content, options);
if(content.locals) module.exports = content.locals;
if(false) {}
/***/ }),
/***/ "./resources/js/Pages/Admin/CfgHome/slideradd.vue":
/*!********************************************************!*\
!*** ./resources/js/Pages/Admin/CfgHome/slideradd.vue ***!
\********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _slideradd_vue_vue_type_template_id_8250b40a_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./slideradd.vue?vue&type=template&id=8250b40a&scoped=true& */ "./resources/js/Pages/Admin/CfgHome/slideradd.vue?vue&type=template&id=8250b40a&scoped=true&");
/* harmony import */ var _slideradd_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./slideradd.vue?vue&type=script&lang=js& */ "./resources/js/Pages/Admin/CfgHome/slideradd.vue?vue&type=script&lang=js&");
/* empty/unused harmony star reexport *//* harmony import */ var _slideradd_vue_vue_type_style_index_0_id_8250b40a_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./slideradd.vue?vue&type=style&index=0&id=8250b40a&scoped=true&lang=css& */ "./resources/js/Pages/Admin/CfgHome/slideradd.vue?vue&type=style&index=0&id=8250b40a&scoped=true&lang=css&");
/* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js");
/* normalize component */
var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__["default"])(
_slideradd_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
_slideradd_vue_vue_type_template_id_8250b40a_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"],
_slideradd_vue_vue_type_template_id_8250b40a_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
false,
null,
"8250b40a",
null
)
/* hot reload */
if (false) { var api; }
component.options.__file = "resources/js/Pages/Admin/CfgHome/slideradd.vue"
/* harmony default export */ __webpack_exports__["default"] = (component.exports);
/***/ }),
/***/ "./resources/js/Pages/Admin/CfgHome/slideradd.vue?vue&type=script&lang=js&":
/*!*********************************************************************************!*\
!*** ./resources/js/Pages/Admin/CfgHome/slideradd.vue?vue&type=script&lang=js& ***!
\*********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_slideradd_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../node_modules/babel-loader/lib??ref--4-0!../../../../../node_modules/vue-loader/lib??vue-loader-options!./slideradd.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/Pages/Admin/CfgHome/slideradd.vue?vue&type=script&lang=js&");
/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_slideradd_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]);
/***/ }),
/***/ "./resources/js/Pages/Admin/CfgHome/slideradd.vue?vue&type=style&index=0&id=8250b40a&scoped=true&lang=css&":
/*!*****************************************************************************************************************!*\
!*** ./resources/js/Pages/Admin/CfgHome/slideradd.vue?vue&type=style&index=0&id=8250b40a&scoped=true&lang=css& ***!
\*****************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _node_modules_style_loader_index_js_node_modules_css_loader_index_js_ref_7_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_2_node_modules_vue_loader_lib_index_js_vue_loader_options_slideradd_vue_vue_type_style_index_0_id_8250b40a_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../node_modules/style-loader!../../../../../node_modules/css-loader??ref--7-1!../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/postcss-loader/src??ref--7-2!../../../../../node_modules/vue-loader/lib??vue-loader-options!./slideradd.vue?vue&type=style&index=0&id=8250b40a&scoped=true&lang=css& */ "./node_modules/style-loader/index.js!./node_modules/css-loader/index.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/Pages/Admin/CfgHome/slideradd.vue?vue&type=style&index=0&id=8250b40a&scoped=true&lang=css&");
/* harmony import */ var _node_modules_style_loader_index_js_node_modules_css_loader_index_js_ref_7_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_2_node_modules_vue_loader_lib_index_js_vue_loader_options_slideradd_vue_vue_type_style_index_0_id_8250b40a_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_index_js_node_modules_css_loader_index_js_ref_7_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_2_node_modules_vue_loader_lib_index_js_vue_loader_options_slideradd_vue_vue_type_style_index_0_id_8250b40a_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_style_loader_index_js_node_modules_css_loader_index_js_ref_7_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_2_node_modules_vue_loader_lib_index_js_vue_loader_options_slideradd_vue_vue_type_style_index_0_id_8250b40a_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_style_loader_index_js_node_modules_css_loader_index_js_ref_7_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_2_node_modules_vue_loader_lib_index_js_vue_loader_options_slideradd_vue_vue_type_style_index_0_id_8250b40a_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony default export */ __webpack_exports__["default"] = (_node_modules_style_loader_index_js_node_modules_css_loader_index_js_ref_7_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_2_node_modules_vue_loader_lib_index_js_vue_loader_options_slideradd_vue_vue_type_style_index_0_id_8250b40a_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a);
/***/ }),
/***/ "./resources/js/Pages/Admin/CfgHome/slideradd.vue?vue&type=template&id=8250b40a&scoped=true&":
/*!***************************************************************************************************!*\
!*** ./resources/js/Pages/Admin/CfgHome/slideradd.vue?vue&type=template&id=8250b40a&scoped=true& ***!
\***************************************************************************************************/
/*! exports provided: render, staticRenderFns */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_slideradd_vue_vue_type_template_id_8250b40a_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../node_modules/vue-loader/lib??vue-loader-options!./slideradd.vue?vue&type=template&id=8250b40a&scoped=true& */ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/Pages/Admin/CfgHome/slideradd.vue?vue&type=template&id=8250b40a&scoped=true&");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_slideradd_vue_vue_type_template_id_8250b40a_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"]; });
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_slideradd_vue_vue_type_template_id_8250b40a_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; });
/***/ }),
/***/ "./resources/js/Shared/AdminLayout.vue":
/*!*********************************************!*\
!*** ./resources/js/Shared/AdminLayout.vue ***!
\*********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _AdminLayout_vue_vue_type_template_id_653ed7a6___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./AdminLayout.vue?vue&type=template&id=653ed7a6& */ "./resources/js/Shared/AdminLayout.vue?vue&type=template&id=653ed7a6&");
/* harmony import */ var _AdminLayout_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./AdminLayout.vue?vue&type=script&lang=js& */ "./resources/js/Shared/AdminLayout.vue?vue&type=script&lang=js&");
/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js");
/* normalize component */
var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__["default"])(
_AdminLayout_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
_AdminLayout_vue_vue_type_template_id_653ed7a6___WEBPACK_IMPORTED_MODULE_0__["render"],
_AdminLayout_vue_vue_type_template_id_653ed7a6___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
false,
null,
null,
null
)
/* hot reload */
if (false) { var api; }
component.options.__file = "resources/js/Shared/AdminLayout.vue"
/* harmony default export */ __webpack_exports__["default"] = (component.exports);
/***/ }),
/***/ "./resources/js/Shared/AdminLayout.vue?vue&type=script&lang=js&":
/*!**********************************************************************!*\
!*** ./resources/js/Shared/AdminLayout.vue?vue&type=script&lang=js& ***!
\**********************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_AdminLayout_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../node_modules/babel-loader/lib??ref--4-0!../../../node_modules/vue-loader/lib??vue-loader-options!./AdminLayout.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/Shared/AdminLayout.vue?vue&type=script&lang=js&");
/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_AdminLayout_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]);
/***/ }),
/***/ "./resources/js/Shared/AdminLayout.vue?vue&type=template&id=653ed7a6&":
/*!****************************************************************************!*\
!*** ./resources/js/Shared/AdminLayout.vue?vue&type=template&id=653ed7a6& ***!
\****************************************************************************/
/*! exports provided: render, staticRenderFns */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_AdminLayout_vue_vue_type_template_id_653ed7a6___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../node_modules/vue-loader/lib??vue-loader-options!./AdminLayout.vue?vue&type=template&id=653ed7a6& */ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/Shared/AdminLayout.vue?vue&type=template&id=653ed7a6&");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_AdminLayout_vue_vue_type_template_id_653ed7a6___WEBPACK_IMPORTED_MODULE_0__["render"]; });
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_AdminLayout_vue_vue_type_template_id_653ed7a6___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; });
/***/ }),
/***/ "./resources/js/components/AdminComponents/Alert.vue":
/*!***********************************************************!*\
!*** ./resources/js/components/AdminComponents/Alert.vue ***!
\***********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _Alert_vue_vue_type_template_id_7841b817___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Alert.vue?vue&type=template&id=7841b817& */ "./resources/js/components/AdminComponents/Alert.vue?vue&type=template&id=7841b817&");
/* harmony import */ var _Alert_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Alert.vue?vue&type=script&lang=js& */ "./resources/js/components/AdminComponents/Alert.vue?vue&type=script&lang=js&");
/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js");
/* normalize component */
var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__["default"])(
_Alert_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
_Alert_vue_vue_type_template_id_7841b817___WEBPACK_IMPORTED_MODULE_0__["render"],
_Alert_vue_vue_type_template_id_7841b817___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
false,
null,
null,
null
)
/* hot reload */
if (false) { var api; }
component.options.__file = "resources/js/components/AdminComponents/Alert.vue"
/* harmony default export */ __webpack_exports__["default"] = (component.exports);
/***/ }),
/***/ "./resources/js/components/AdminComponents/Alert.vue?vue&type=script&lang=js&":
/*!************************************************************************************!*\
!*** ./resources/js/components/AdminComponents/Alert.vue?vue&type=script&lang=js& ***!
\************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Alert_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/babel-loader/lib??ref--4-0!../../../../node_modules/vue-loader/lib??vue-loader-options!./Alert.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/AdminComponents/Alert.vue?vue&type=script&lang=js&");
/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Alert_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]);
/***/ }),
/***/ "./resources/js/components/AdminComponents/Alert.vue?vue&type=template&id=7841b817&":
/*!******************************************************************************************!*\
!*** ./resources/js/components/AdminComponents/Alert.vue?vue&type=template&id=7841b817& ***!
\******************************************************************************************/
/*! exports provided: render, staticRenderFns */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_Alert_vue_vue_type_template_id_7841b817___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../node_modules/vue-loader/lib??vue-loader-options!./Alert.vue?vue&type=template&id=7841b817& */ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/AdminComponents/Alert.vue?vue&type=template&id=7841b817&");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_Alert_vue_vue_type_template_id_7841b817___WEBPACK_IMPORTED_MODULE_0__["render"]; });
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_Alert_vue_vue_type_template_id_7841b817___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; });
/***/ }),
/***/ "./resources/js/components/AdminComponents/Footer.vue":
/*!************************************************************!*\
!*** ./resources/js/components/AdminComponents/Footer.vue ***!
\************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _Footer_vue_vue_type_template_id_74cedcf0___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Footer.vue?vue&type=template&id=74cedcf0& */ "./resources/js/components/AdminComponents/Footer.vue?vue&type=template&id=74cedcf0&");
/* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js");
var script = {}
/* normalize component */
var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__["default"])(
script,
_Footer_vue_vue_type_template_id_74cedcf0___WEBPACK_IMPORTED_MODULE_0__["render"],
_Footer_vue_vue_type_template_id_74cedcf0___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
false,
null,
null,
null
)
/* hot reload */
if (false) { var api; }
component.options.__file = "resources/js/components/AdminComponents/Footer.vue"
/* harmony default export */ __webpack_exports__["default"] = (component.exports);
/***/ }),
/***/ "./resources/js/components/AdminComponents/Footer.vue?vue&type=template&id=74cedcf0&":
/*!*******************************************************************************************!*\
!*** ./resources/js/components/AdminComponents/Footer.vue?vue&type=template&id=74cedcf0& ***!
\*******************************************************************************************/
/*! exports provided: render, staticRenderFns */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_Footer_vue_vue_type_template_id_74cedcf0___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../node_modules/vue-loader/lib??vue-loader-options!./Footer.vue?vue&type=template&id=74cedcf0& */ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/AdminComponents/Footer.vue?vue&type=template&id=74cedcf0&");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_Footer_vue_vue_type_template_id_74cedcf0___WEBPACK_IMPORTED_MODULE_0__["render"]; });
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_Footer_vue_vue_type_template_id_74cedcf0___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; });
/***/ }),
/***/ "./resources/js/components/AdminComponents/Navbar.vue":
/*!************************************************************!*\
!*** ./resources/js/components/AdminComponents/Navbar.vue ***!
\************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _Navbar_vue_vue_type_template_id_138100e5___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Navbar.vue?vue&type=template&id=138100e5& */ "./resources/js/components/AdminComponents/Navbar.vue?vue&type=template&id=138100e5&");
/* harmony import */ var _Navbar_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Navbar.vue?vue&type=script&lang=js& */ "./resources/js/components/AdminComponents/Navbar.vue?vue&type=script&lang=js&");
/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js");
/* normalize component */
var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__["default"])(
_Navbar_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
_Navbar_vue_vue_type_template_id_138100e5___WEBPACK_IMPORTED_MODULE_0__["render"],
_Navbar_vue_vue_type_template_id_138100e5___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
false,
null,
null,
null
)
/* hot reload */
if (false) { var api; }
component.options.__file = "resources/js/components/AdminComponents/Navbar.vue"
/* harmony default export */ __webpack_exports__["default"] = (component.exports);
/***/ }),
/***/ "./resources/js/components/AdminComponents/Navbar.vue?vue&type=script&lang=js&":
/*!*************************************************************************************!*\
!*** ./resources/js/components/AdminComponents/Navbar.vue?vue&type=script&lang=js& ***!
\*************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Navbar_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/babel-loader/lib??ref--4-0!../../../../node_modules/vue-loader/lib??vue-loader-options!./Navbar.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/AdminComponents/Navbar.vue?vue&type=script&lang=js&");
/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Navbar_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]);
/***/ }),
/***/ "./resources/js/components/AdminComponents/Navbar.vue?vue&type=template&id=138100e5&":
/*!*******************************************************************************************!*\
!*** ./resources/js/components/AdminComponents/Navbar.vue?vue&type=template&id=138100e5& ***!
\*******************************************************************************************/
/*! exports provided: render, staticRenderFns */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_Navbar_vue_vue_type_template_id_138100e5___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../node_modules/vue-loader/lib??vue-loader-options!./Navbar.vue?vue&type=template&id=138100e5& */ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/AdminComponents/Navbar.vue?vue&type=template&id=138100e5&");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_Navbar_vue_vue_type_template_id_138100e5___WEBPACK_IMPORTED_MODULE_0__["render"]; });
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_Navbar_vue_vue_type_template_id_138100e5___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; });
/***/ }),
/***/ "./resources/js/components/AdminComponents/Sidebar.vue":
/*!*************************************************************!*\
!*** ./resources/js/components/AdminComponents/Sidebar.vue ***!
\*************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _Sidebar_vue_vue_type_template_id_64918552___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Sidebar.vue?vue&type=template&id=64918552& */ "./resources/js/components/AdminComponents/Sidebar.vue?vue&type=template&id=64918552&");
/* harmony import */ var _Sidebar_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Sidebar.vue?vue&type=script&lang=js& */ "./resources/js/components/AdminComponents/Sidebar.vue?vue&type=script&lang=js&");
/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js");
/* normalize component */
var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__["default"])(
_Sidebar_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
_Sidebar_vue_vue_type_template_id_64918552___WEBPACK_IMPORTED_MODULE_0__["render"],
_Sidebar_vue_vue_type_template_id_64918552___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
false,
null,
null,
null
)
/* hot reload */
if (false) { var api; }
component.options.__file = "resources/js/components/AdminComponents/Sidebar.vue"
/* harmony default export */ __webpack_exports__["default"] = (component.exports);
/***/ }),
/***/ "./resources/js/components/AdminComponents/Sidebar.vue?vue&type=script&lang=js&":
/*!**************************************************************************************!*\
!*** ./resources/js/components/AdminComponents/Sidebar.vue?vue&type=script&lang=js& ***!
\**************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Sidebar_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/babel-loader/lib??ref--4-0!../../../../node_modules/vue-loader/lib??vue-loader-options!./Sidebar.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/AdminComponents/Sidebar.vue?vue&type=script&lang=js&");
/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Sidebar_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]);
/***/ }),
/***/ "./resources/js/components/AdminComponents/Sidebar.vue?vue&type=template&id=64918552&":
/*!********************************************************************************************!*\
!*** ./resources/js/components/AdminComponents/Sidebar.vue?vue&type=template&id=64918552& ***!
\********************************************************************************************/
/*! exports provided: render, staticRenderFns */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_Sidebar_vue_vue_type_template_id_64918552___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../node_modules/vue-loader/lib??vue-loader-options!./Sidebar.vue?vue&type=template&id=64918552& */ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/AdminComponents/Sidebar.vue?vue&type=template&id=64918552&");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_Sidebar_vue_vue_type_template_id_64918552___WEBPACK_IMPORTED_MODULE_0__["render"]; });
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_Sidebar_vue_vue_type_template_id_64918552___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; });
/***/ }),
/***/ "./resources/js/components/AdminComponents/SidebarItem.vue":
/*!*****************************************************************!*\
!*** ./resources/js/components/AdminComponents/SidebarItem.vue ***!
\*****************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _SidebarItem_vue_vue_type_template_id_2a7038ec___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./SidebarItem.vue?vue&type=template&id=2a7038ec& */ "./resources/js/components/AdminComponents/SidebarItem.vue?vue&type=template&id=2a7038ec&");
/* harmony import */ var _SidebarItem_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./SidebarItem.vue?vue&type=script&lang=js& */ "./resources/js/components/AdminComponents/SidebarItem.vue?vue&type=script&lang=js&");
/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js");
/* normalize component */
var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__["default"])(
_SidebarItem_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
_SidebarItem_vue_vue_type_template_id_2a7038ec___WEBPACK_IMPORTED_MODULE_0__["render"],
_SidebarItem_vue_vue_type_template_id_2a7038ec___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
false,
null,
null,
null
)
/* hot reload */
if (false) { var api; }
component.options.__file = "resources/js/components/AdminComponents/SidebarItem.vue"
/* harmony default export */ __webpack_exports__["default"] = (component.exports);
/***/ }),
/***/ "./resources/js/components/AdminComponents/SidebarItem.vue?vue&type=script&lang=js&":
/*!******************************************************************************************!*\
!*** ./resources/js/components/AdminComponents/SidebarItem.vue?vue&type=script&lang=js& ***!
\******************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_SidebarItem_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/babel-loader/lib??ref--4-0!../../../../node_modules/vue-loader/lib??vue-loader-options!./SidebarItem.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/AdminComponents/SidebarItem.vue?vue&type=script&lang=js&");
/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_SidebarItem_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]);
/***/ }),
/***/ "./resources/js/components/AdminComponents/SidebarItem.vue?vue&type=template&id=2a7038ec&":
/*!************************************************************************************************!*\
!*** ./resources/js/components/AdminComponents/SidebarItem.vue?vue&type=template&id=2a7038ec& ***!
\************************************************************************************************/
/*! exports provided: render, staticRenderFns */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_SidebarItem_vue_vue_type_template_id_2a7038ec___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../node_modules/vue-loader/lib??vue-loader-options!./SidebarItem.vue?vue&type=template&id=2a7038ec& */ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/AdminComponents/SidebarItem.vue?vue&type=template&id=2a7038ec&");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_SidebarItem_vue_vue_type_template_id_2a7038ec___WEBPACK_IMPORTED_MODULE_0__["render"]; });
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_SidebarItem_vue_vue_type_template_id_2a7038ec___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; });
/***/ }),
/***/ "./resources/js/components/Breadcrumb.vue":
/*!************************************************!*\
!*** ./resources/js/components/Breadcrumb.vue ***!
\************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _Breadcrumb_vue_vue_type_template_id_c259b9a4___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Breadcrumb.vue?vue&type=template&id=c259b9a4& */ "./resources/js/components/Breadcrumb.vue?vue&type=template&id=c259b9a4&");
/* harmony import */ var _Breadcrumb_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Breadcrumb.vue?vue&type=script&lang=js& */ "./resources/js/components/Breadcrumb.vue?vue&type=script&lang=js&");
/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js");
/* normalize component */
var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__["default"])(
_Breadcrumb_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
_Breadcrumb_vue_vue_type_template_id_c259b9a4___WEBPACK_IMPORTED_MODULE_0__["render"],
_Breadcrumb_vue_vue_type_template_id_c259b9a4___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
false,
null,
null,
null
)
/* hot reload */
if (false) { var api; }
component.options.__file = "resources/js/components/Breadcrumb.vue"
/* harmony default export */ __webpack_exports__["default"] = (component.exports);
/***/ }),
/***/ "./resources/js/components/Breadcrumb.vue?vue&type=script&lang=js&":
/*!*************************************************************************!*\
!*** ./resources/js/components/Breadcrumb.vue?vue&type=script&lang=js& ***!
\*************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Breadcrumb_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../node_modules/babel-loader/lib??ref--4-0!../../../node_modules/vue-loader/lib??vue-loader-options!./Breadcrumb.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/Breadcrumb.vue?vue&type=script&lang=js&");
/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Breadcrumb_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]);
/***/ }),
/***/ "./resources/js/components/Breadcrumb.vue?vue&type=template&id=c259b9a4&":
/*!*******************************************************************************!*\
!*** ./resources/js/components/Breadcrumb.vue?vue&type=template&id=c259b9a4& ***!
\*******************************************************************************/
/*! exports provided: render, staticRenderFns */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_Breadcrumb_vue_vue_type_template_id_c259b9a4___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../node_modules/vue-loader/lib??vue-loader-options!./Breadcrumb.vue?vue&type=template&id=c259b9a4& */ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/Breadcrumb.vue?vue&type=template&id=c259b9a4&");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_Breadcrumb_vue_vue_type_template_id_c259b9a4___WEBPACK_IMPORTED_MODULE_0__["render"]; });
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_Breadcrumb_vue_vue_type_template_id_c259b9a4___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; });
/***/ })
}]);
|
module.exports = {
"env": {
"browser": true,
"es2020": true,
"node": true,
},
"extends": [
"eslint:recommended",
"plugin:vue/essential",
"@nuxtjs",
"plugin:nuxt/recommended"
],
"parserOptions": {
"ecmaVersion": 11,
"sourceType": "module"
},
"plugins": [
"vue"
],
"rules": {
"indent": [
"error",
"tab"
],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"double"
],
"semi": [
"error",
"always"
],
"vue/no-use-v-if-with-v-for": ["warn"],
'comma-dangle': [ 'error', {
arrays: 'always',
objects: 'always',
imports: 'never',
exports: 'never',
functions: 'never',
}, ],
semi: [ 'error', 'always', ],
'vue/html-indent': [ 'error', 'tab', ],
'no-tabs': 0,
'array-bracket-spacing': [ 'error', 'always', ],
'comma-style': [ 'error', 'last', ],
'comma-spacing': [ 'error', { before: false, after: true, }, ],
'space-before-function-paren': [ 'error', 'never', ],
}
};
|
// third-party libraries
import expect from 'expect';
import MockAdapter from 'axios-mock-adapter';
import axios from 'axios';
import configureMockStore from 'redux-mock-store';
import thunk from 'redux-thunk';
// constants
import constants from '../../_constants';
// actions
import {
loadSubCategories,
loadSubCategoriesDropdown,
createSubCategory
} from '../../_actions/subcategory.actions';
// mock data
import subcategories from '../../_mock/subcategories';
const {
LOAD_SUBCATEGORIES_SUCCESS,
LOAD_SUBCATEGORIES_FAILURE,
LOADING_SUBCATEGORIES,
CREATE_SUBCATEGORY_SUCCESS,
CREATE_SUBCATEGORY_FAILURE,
DROPDOWN_SUBCATEGORIES_SUCCESS
} = constants;
// store
const middleware = [thunk];
const mockStore = configureMockStore(middleware);
let store;
describe('Subcategory action tests', () => {
const mock = new MockAdapter(axios);
const url = 'asset-sub-categories';
store = mockStore({});
const subCategoryToCreate = {
name: 'Asus',
asset_category: 1
};
afterEach(() => {
store.clearActions();
});
const mockSubcategories = {
results: subcategories
};
it('should dispatch LOADING_SUBCATEGORIES with isLoading true when fetching SubCategories', () => {
mock.onGet().reply(200, mockSubcategories);
return store.dispatch(loadSubCategories()).then(() => {
expect(store.getActions()).toContainEqual({
isLoading: true,
type: LOADING_SUBCATEGORIES
});
});
});
it('should dispatch LOADING_SUBCATEGORIES with isLoading false when done fetching SubCategories', () => {
mock.onGet().reply(200, mockSubcategories);
return store.dispatch(loadSubCategories()).then(() => {
expect(store.getActions()).toContainEqual({
isLoading: false,
type: LOADING_SUBCATEGORIES
});
});
});
it('should dispatch LOAD_SUBCATEGORIES_SUCCESS when loadSubCategories is called successfully', () => {
mock.onGet().reply(200, mockSubcategories);
return store.dispatch(loadSubCategories()).then(() => {
expect(store.getActions()).toContainEqual({
payload: mockSubcategories,
type: LOAD_SUBCATEGORIES_SUCCESS
});
});
});
it('should dispatch CREATE_SUBCATEGORY_SUCCESS when createSubCategory is called successfully', () => {
mock.onPost(url, subCategoryToCreate).reply(201, subCategoryToCreate);
return store.dispatch(createSubCategory(subCategoryToCreate)).then(() => {
expect(store.getActions()).toContainEqual({
payload: subCategoryToCreate,
type: CREATE_SUBCATEGORY_SUCCESS
});
});
});
it('should dispatch CREATE_SUBCATEGORY_FAILURE when createSubCategory is called unsuccessfully', () => {
mock.onPost(url, subCategoryToCreate).reply(401, subCategoryToCreate);
return store.dispatch(createSubCategory(subCategoryToCreate)).then(() => {
expect(store.getActions()).toContainEqual({
payload: new Error('Request failed with status code 401'),
type: CREATE_SUBCATEGORY_FAILURE
});
});
});
it('should dispatch LOAD_SUBCATEGORIES_FAILURE when subcategories are not loaded', () => {
mock.onGet().reply(401);
return store.dispatch(loadSubCategories()).then(() => {
expect(store.getActions()).toContainEqual({
payload: 'Request failed with status code 401',
type: LOAD_SUBCATEGORIES_FAILURE
});
});
});
it('should dispatch LOADING_SUBCATEGORIES when loadSubCategoriesDropdown is called', () => {
mock.onGet().reply(200, mockSubcategories);
return store.dispatch(loadSubCategoriesDropdown()).then(() => {
expect(store.getActions()).toContainEqual({
type: LOADING_SUBCATEGORIES,
isLoading: true
});
});
});
it('should dispatch DROPDOWN_SUBCATEGORIES_SUCCESS when loadSubCategoriesDropdown is called successfully', () => {
mock.onGet().reply(200, mockSubcategories);
return store.dispatch(loadSubCategoriesDropdown()).then(() => {
expect(store.getActions()).toContainEqual({
payload: mockSubcategories,
type: DROPDOWN_SUBCATEGORIES_SUCCESS
});
});
});
it('should dispatch LOAD_SUBCATEGORIES_FAILURE when loadSubCategoriesDropdown is called unsuccessfully', () => {
mock.onGet().reply(401, mockSubcategories);
return store.dispatch(loadSubCategoriesDropdown()).then(() => {
expect(store.getActions()).toContainEqual({
payload: 'Request failed with status code 401',
type: LOAD_SUBCATEGORIES_FAILURE
});
});
});
});
|
import shortMusic from '../../short_shimmer.mp3';
const playShortSound = () => {
console.log('playing short sound');
if (localStorage.getItem('volume') === 'yes') {
const audio = new Audio(shortMusic);
audio.volume = 0.1;
audio.play();
}
};
export default playShortSound;
|
import React, { Component, Fragment } from 'react'
import PropTypes from 'prop-types'
import Paper from '@material-ui/core/Paper'
import Typography from '@material-ui/core/Typography'
import Divider from '@material-ui/core/Divider'
import Helmet from 'react-helmet-async'
import { withStyles } from '@material-ui/core/styles'
import { observer, inject } from 'mobx-react'
import { placeHolder } from './PlaceHolder'
import { styles } from './PostViewStyles'
import { db } from 'components/commons/firebase/firebase'
import { currentPath } from 'components/commons/utils'
import PostActions from 'components/shared/postactions/PostActions'
import MapCard from 'components/shared/map/MapCard'
import Media from 'components/mobile/postview/Media'
import PostDetails from 'components/mobile/postview/PostDetails'
import Caption from 'components/mobile/postcard/Caption'
import Author from 'components/mobile/postview/Author'
@inject('usersStore')
@inject('postsStore')
@inject('bookmarksStore')
@inject('notificationsStore')
@observer
class PostView extends Component {
state = {
post: {},
user: {}
}
componentDidMount () {
const currentPost = this.props.postsStore.currentPost
if (!currentPost) {
this.loadFromDB()
return
}
this.loadUser(currentPost)
}
loadFromDB () {
const postRef = db.collection('posts').doc(currentPath(2))
postRef.get()
.then(result => {
if (result.exists && !result.data().deleted) {
const post = result.data()
post.id = result.id
this.loadUser(post)
} else {
// throw 404
}
}).catch(error => {
console.error('Unable to fetch post information', error)
})
}
loadUser = post => {
const userRef = db.collection('users').doc(post.userId)
userRef.get()
.then(user => {
if (user.exists) {
// Load post and user here to avoid doble loading
this.setState({user: user.data()})
this.setState({post: post})
}
}).catch(error => {
console.error('Unable to fetch user information', error)
})
}
handleSold = (post) => this.setState({post: post})
render() {
const { classes } = this.props
const { post, user } = this.state
return (
<Fragment>
<Helmet>
{ post.title && <title>{post.title} near {post.locText} | Nearo</title> }
</Helmet>
<Paper square elevation={0} style={{minHeight: '100vh'}}>
<div style={{padding: 10, paddingBottom: 0}}>
<Typography component="h1" variant="subtitle2" >
{ post.title }
{ post.category === 'forsale' &&
post.price !== 0 &&
<span className={classes.price}>
{"$" + post.price }
</span>
}
</Typography>
{ post.id && <Caption post={post} /> }
</div>
<div style={{padding: 10, paddingBottom: 0}}>
{ post.id ? <Media post={post} />: placeHolder() }
</div>
<div style={{padding: 10, paddingBottom: 0}}>
{ post.id && <PostActions post={post}/> }
</div>
<div style={{padding: 10, paddingBottom: 0}}>
{ post.id && <PostDetails post={ post } classes={ classes }/> }
</div>
<div style={{padding: 10}}>
<Divider />
</div>
<div style={{padding: 10}}>
{ user && <Author user={ user }/> }
</div>
<div style={{padding: 10, paddingBottom: 0}}>
<Divider />
</div>
<div style={{padding: 10}}>
<Typography variant="caption" gutterBottom>
Aproximate Location
</Typography>
<MapCard height={150} center={ post._geoloc }/>
</div>
</Paper>
</Fragment>
)
}
}
PostView.propTypes = {
classes: PropTypes.object.isRequired,
}
export default withStyles(styles)(PostView)
|
var lcn = require("../../../../../source/lcn.js");
var rs = lcn.rolesystem;
module.exports = function (actionable, game, params) {
game.addAction("a/power_oracle/reveal", ["killed"], {
name: "Modular-oracle",
expiry: 1,
from: actionable.from,
to: actionable.from,
priority: 20,
reveal_target: actionable.to
});
rs.modular.attributeDecrement(...arguments);
};
module.exports.TAGS = ["drivable", "roleblockable"];
|
const assert = require("assert");
const { expect } = require("chai");
const exstat = require(".");
describe("exstat tests", function() {
describe("> [exstat.array.normalize] normalize an array to a certain range", function() {
const test = exstat.array.normalize([2, 3, 4, 5, 6], [0, 1]);
it(`should return an array of numbers with correct upper and lower bounds`, function() {
assert.equal(test[0], 0);
assert.equal(test[test.length - 1], 1);
});
it("should throw an error if passed invalid arguments", function() {
expect(() => exstat.array.normalize("1", null)).to.throw();
});
});
describe("> [exstat.array.median] find the median of an array of numbers", function() {
it("should throw an error if the array passed contains anything but numbers", function() {
expect(() => exstat.array.median(["hello", 2, 3, "four", 5])).to.throw();
});
it("should return a single number for a given array", function() {
assert.equal([exstat.array.median([1, 2, 3, 4, 5])].length, 1);
});
});
describe("> [exstat.array.mean] find the mean of an array of numbers", function() {
it("should throw an error if the array passed contains anything but numbers", function() {
expect(() => exstat.array.mean(["hello", 2, 3, "four", 5])).to.throw();
});
it("should return a single number for a given array", function() {
assert.equal([exstat.array.mean([1, 2, 3, 4, 5])].length, 1);
});
});
describe("> [exstat.number.inRange] determine whether a number is within a certain range", function() {
it("should return false if number is out of range", function() {
assert.equal(exstat.number.inRange(-4, [0, 1]), false);
});
it("should return true if number is in range", function() {
assert.equal(exstat.number.inRange(4, [0, 5]), true);
});
});
});
|
module.exports = router => {
const userController = require('../../plugins/wechat')
const mongoose = require('mongoose')
const Topic = mongoose.model('Topic')
const Team = mongoose.model('Team')
const User = mongoose.model('User')
const Comment = mongoose.model('Comment')
const Forward = mongoose.model('Forward')
const Message = mongoose.model('Message')
router.post("/openid", userController.login)
//获取城市信息
router.post('/reverseGeocoder', userController.reverseGeocoder)
//重新授权时,更新用户信息
router.put('/user', async (req, res) => {
const model = await User.findByIdAndUpdate(req.body.userid, {
"$set": {
"nickName": req.body.nickName,
"avatarUrl": req.body.avatarUrl
}
}, {
"fields": { "nickName": 1, "avatarUrl": 1 },
"new": true
})
res.send(model)
})
//获取用户信息、话题、组队
router.post('/user', async (req, res) => {
let data = await User.findById(req.body.id, { openid: 0 })
// .populate('topics', 'content images locationName location good')
.populate({
path: 'topics',
select: 'content images locationName location good forwardCount owner createdAt',
populate: { path: 'owner', select: 'nickName avatarUrl' }
})
.populate({
path: 'teams',
select: 'postUrl locationName good collect forwardCount location owner createdAt status memberNum hasJoin',
populate: { path: 'owner', select: 'nickName avatarUrl' }
})
.populate({
path: 'joinedTeams',
select: 'postUrl locationName good collect forwardCount location owner createdAt status memberNum hasJoin',
populate: { path: 'owner', select: 'nickName avatarUrl' }
})
//fail // .populate('teams', 'postUrl locationName good collect location owner.nickName owner.avatarUrl')
.lean()
const fans = await User.find({
follow: req.body.id
}, { _id: 1 })
if (data.follow)
data.followCount = data.follow.length
else
data.followCount = 0
if (fans)
data.fansCount = fans.length
else
data.fansCount = 0
// data.teams.commentCount = comments.length
// data.teams.forEach(item => {
// item.goodCount = item.good.length
// item.collectCount = item.collect.length
// });
// data.topics.forEach(item => {
// item.goodCount = item.good.length
// });
//转发
let forwards_topic = await Forward.find({
owner: req.body.id,
ref: 'Topic'
}).populate({
path: 'from',
model: 'Topic',
populate: { path: 'owner', select: 'nickName avatarUrl' }
}).populate('owner', 'nickName avatarUrl').lean()
let forwards_team = await Forward.find({
owner: req.body.id,
ref: 'Team'
}).populate({
path: 'from',
model: 'Team',
populate: { path: 'owner', select: 'nickName avatarUrl' }
}).populate('owner', 'nickName avatarUrl').lean()
let arr = []
forwards_topic.forEach((item) => {
item.from&&arr.push(item.from)
})
forwards_team.forEach((item) => {
item.from&&arr.push(item.from)
})
// console.log(forwards_topic[1].from.distance)
try {
let total = data.teams.concat(data.topics||[]).concat(arr).concat(data.joinedTeams||[])
let p = [
userController.addDistance(req.body.lat, req.body.lng, total),
userController.addCommentCount(total)
]
await Promise.all(p)
} catch (err) {
console.log(err)
}
//排序
data.topics.push.apply(data.topics, forwards_topic);
data.topics.sort(function (a, b) {
let date1 = a['createdAt'] || '2019-10-18T17:51:17.846Z'
let date2 = b['createdAt'] || '2019-10-18T17:51:17.846Z'
return date1 > date2 ? -1 : 1
})
data.teams.push.apply(data.teams, forwards_team);
data.teams.sort(function (a, b) {
let date1 = a['createdAt'] || '2019-10-18T17:51:17.846Z'
let date2 = b['createdAt'] || '2019-10-18T17:51:17.846Z'
return date1 > date2 ? -1 : 1
})
//未读消息
const messages = await Message.find({
"$or": [
{ participant: data._id, status: 1 },
{ participant: data._id, status: 2 },
{ participant: data._id, status: 4 },
{ owner: data._id, status: 0 }
]
}).lean()
messages != '' && messages.sort(function (a, b) {
let date1 = a['updatedAt'] || '2019-10-18T17:51:17.846Z'
let date2 = b['updatedAt'] || '2019-10-18T17:51:17.846Z'
return date1 > date2 ? -1 : 1
})
let unRead = false
const latestRM = data.latestReadMsg ? data.latestReadMsg.toString() : ''
if (messages != '' && messages[0]._id != latestRM) {
unRead = true
}
data.unRead = unRead
res.send(data)
})
//获取用户基本信息
router.get('/userBasicInfo/:id', async (req, res) => {
const model = await User.findById(req.params.id,
{ no: 1, nickName: 1, avatarUrl: 1, virtualAvatarUrl: 1, intro: 1, phone: 1, wechat: 1, collectionsOpen: 1 }).lean()
res.send(model)
})
//更新用户基本信息
router.put('/userBasicInfo', async (req, res) => {
await User.findByIdAndUpdate(req.body.userid, {
"$set": req.body.info
})
res.send({ success: true })
})
//获取我的关注
router.get('/user/follow/:id', async (req, res) => {
const data = await User.findById(req.params.id, { follow: 1 })
.populate('follow', 'nickName avatarUrl intro')
.lean()
res.send(data)
})
//获取我的粉丝
router.get('/user/fans/:id', async (req, res) => {
const data = await User.find({
follow: req.params.id
}, { nickName: 1, avatarUrl: 1, intro: 1 })
.lean()
res.send(data)
})
//关注
router.post('/follow', async (req, res) => {
await User.findByIdAndUpdate(req.body.myid, {
"$addToSet": {
"follow": req.body.userid
}
})
res.send({ success: true, msg: '关注成功' })
})
//取消关注
router.post('/followCancel', async (req, res) => {
await User.findByIdAndUpdate(req.body.myid, {
"$pull": {
"follow": req.body.userid
}
})
res.send({ success: true })
})
//获取收藏列表
router.post('/user/collection', async (req, res) => {
const collections = await Team.find({
collect: req.body.id
}, { postUrl: 1, locationName: 1, good: 1, collect: 1, location: 1, createdAt: 1, forwardCount:1, status:1, memberNum:1, hasJoin:1 })
.populate('owner', 'nickName avatarUrl intro').lean()
await userController.addDistance(req.body.lat, req.body.lng, collections)
await userController.addCommentCount(collections)
// const data = collections.map(item => {
// item.goodCount = item.good.length
// item.collectCount = item.collect.length
// return item
// })
res.send(collections)
})
//获取评论信息
router.get('/messages/comment/:id', async (req, res) => {
const teams = await Team.find({
owner: req.params.id
}, { _id: 1 })
const teamIdArr = teams.map(v => v._id)
const topics = await Topic.find({
owner: req.params.id
}, { _id: 1 })
const topicIdArr = topics.map(v => v._id)
const idArr = teamIdArr.concat(topicIdArr)
const comments = await Comment.find({
to: { $in: idArr }
}).populate('owner', 'nickName avatarUrl')
.lean()
res.send(comments)
})
//删除历史参与过的活动
router.delete('/joinedTeam', async (req, res) => {
await User.findByIdAndUpdate(req.body.userid, {
"$pull": {
"joinedTeams": req.body.teamid
}
})
res.send({ success: true })
})
}
|
(function ()
{
'use strict';
/**
* Main module of the Fuse
*/
angular
.module('fuse', [
// Core
'app.core',
// Navigation
'app.navigation',
// Toolbar
'app.toolbar',
// Quick panel
'app.quick-panel',
// Apps
'app.dashboards',
'app.calendar',
'app.mail',
'app.file-manager',
'app.scrumboard',
'app.gantt-chart',
'app.todo',
// Pages
'app.pages',
// User Interface
'app.ui',
// Components
'app.components'
]);
})();
|
"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var core_1 = require('@angular/core');
var bootstrap_1 = require('../../config/bootstrap');
var animation_1 = require('../../animations/animation');
var backdrop_1 = require('../backdrop/backdrop');
var key_1 = require('../../util/key');
var nav_params_1 = require('../nav/nav-params');
var util_1 = require('../../util/util');
var page_transition_1 = require('../../transitions/page-transition');
var view_controller_1 = require('../nav/view-controller');
var dom_1 = require('../../util/dom');
/**
* @private
*/
var ModalCmp = (function () {
function ModalCmp(_compiler, _renderer, _navParams, _viewCtrl) {
this._compiler = _compiler;
this._renderer = _renderer;
this._navParams = _navParams;
this._viewCtrl = _viewCtrl;
this.d = _navParams.data.opts;
}
ModalCmp.prototype.loadComponent = function (done) {
var _this = this;
var componentType = this._navParams.data.componentType;
bootstrap_1.addSelector(componentType, 'ion-page');
this._compiler.resolveComponent(componentType).then(function (componentFactory) {
var componentRef = _this.viewport.createComponent(componentFactory, _this.viewport.length, _this.viewport.parentInjector);
_this._renderer.setElementClass(componentRef.location.nativeElement, 'show-page', true);
// auto-add page css className created from component JS class name
var cssClassName = util_1.pascalCaseToDashCase(componentType.name);
_this._renderer.setElementClass(componentRef.location.nativeElement, cssClassName, true);
_this._viewCtrl.setInstance(componentRef.instance);
_this.enabled = true;
done();
});
};
ModalCmp.prototype.ngAfterViewInit = function () {
// intentionally kept empty
};
ModalCmp.prototype.dismiss = function (role) {
return this._viewCtrl.dismiss(null, role);
};
ModalCmp.prototype.bdClick = function () {
if (this.enabled && this.d.enableBackdropDismiss) {
this.dismiss('backdrop');
}
};
ModalCmp.prototype._keyUp = function (ev) {
if (this.enabled && this._viewCtrl.isLast() && ev.keyCode === key_1.Key.ESCAPE) {
this.bdClick();
}
};
__decorate([
core_1.ViewChild('viewport', { read: core_1.ViewContainerRef }),
__metadata('design:type', core_1.ViewContainerRef)
], ModalCmp.prototype, "viewport", void 0);
__decorate([
core_1.HostListener('body:keyup', ['$event']),
__metadata('design:type', Function),
__metadata('design:paramtypes', [KeyboardEvent]),
__metadata('design:returntype', void 0)
], ModalCmp.prototype, "_keyUp", null);
ModalCmp = __decorate([
core_1.Component({
selector: 'ion-modal',
template: "\n <ion-backdrop disableScroll=\"false\" (click)=\"bdClick($event)\"></ion-backdrop>\n <div class=\"modal-wrapper\">\n <div #viewport nav-viewport></div>\n </div>\n ",
directives: [backdrop_1.Backdrop]
}),
__metadata('design:paramtypes', [core_1.ComponentResolver, core_1.Renderer, nav_params_1.NavParams, view_controller_1.ViewController])
], ModalCmp);
return ModalCmp;
}());
exports.ModalCmp = ModalCmp;
/**
* Animations for modals
*/
var ModalSlideIn = (function (_super) {
__extends(ModalSlideIn, _super);
function ModalSlideIn(enteringView, leavingView, opts) {
_super.call(this, enteringView, leavingView, opts);
var ele = enteringView.pageRef().nativeElement;
var backdropEle = ele.querySelector('ion-backdrop');
var backdrop = new animation_1.Animation(backdropEle);
var wrapper = new animation_1.Animation(ele.querySelector('.modal-wrapper'));
backdrop.fromTo('opacity', 0.01, 0.4);
wrapper.fromTo('translateY', '100%', '0%');
this
.element(enteringView.pageRef())
.easing('cubic-bezier(0.36,0.66,0.04,1)')
.duration(400)
.add(backdrop)
.add(wrapper);
if (enteringView.hasNavbar()) {
// entering page has a navbar
var enteringNavBar = new animation_1.Animation(enteringView.navbarRef());
enteringNavBar.before.addClass('show-navbar');
this.add(enteringNavBar);
}
}
return ModalSlideIn;
}(page_transition_1.PageTransition));
page_transition_1.PageTransition.register('modal-slide-in', ModalSlideIn);
var ModalSlideOut = (function (_super) {
__extends(ModalSlideOut, _super);
function ModalSlideOut(enteringView, leavingView, opts) {
_super.call(this, enteringView, leavingView, opts);
var ele = leavingView.pageRef().nativeElement;
var backdrop = new animation_1.Animation(ele.querySelector('ion-backdrop'));
var wrapperEle = ele.querySelector('.modal-wrapper');
var wrapperEleRect = wrapperEle.getBoundingClientRect();
var wrapper = new animation_1.Animation(wrapperEle);
// height of the screen - top of the container tells us how much to scoot it down
// so it's off-screen
var screenDimensions = dom_1.windowDimensions();
wrapper.fromTo('translateY', '0px', (screenDimensions.height - wrapperEleRect.top) + "px");
backdrop.fromTo('opacity', 0.4, 0.0);
this
.element(leavingView.pageRef())
.easing('ease-out')
.duration(250)
.add(backdrop)
.add(wrapper);
}
return ModalSlideOut;
}(page_transition_1.PageTransition));
page_transition_1.PageTransition.register('modal-slide-out', ModalSlideOut);
var ModalMDSlideIn = (function (_super) {
__extends(ModalMDSlideIn, _super);
function ModalMDSlideIn(enteringView, leavingView, opts) {
_super.call(this, enteringView, leavingView, opts);
var ele = enteringView.pageRef().nativeElement;
var backdrop = new animation_1.Animation(ele.querySelector('ion-backdrop'));
var wrapper = new animation_1.Animation(ele.querySelector('.modal-wrapper'));
backdrop.fromTo('opacity', 0.01, 0.4);
wrapper.fromTo('translateY', '40px', '0px');
wrapper.fromTo('opacity', 0.01, 1);
var DURATION = 280;
var EASING = 'cubic-bezier(0.36,0.66,0.04,1)';
this.element(enteringView.pageRef()).easing(EASING).duration(DURATION)
.add(backdrop)
.add(wrapper);
if (enteringView.hasNavbar()) {
// entering page has a navbar
var enteringNavBar = new animation_1.Animation(enteringView.navbarRef());
enteringNavBar.before.addClass('show-navbar');
this.add(enteringNavBar);
}
}
return ModalMDSlideIn;
}(page_transition_1.PageTransition));
page_transition_1.PageTransition.register('modal-md-slide-in', ModalMDSlideIn);
var ModalMDSlideOut = (function (_super) {
__extends(ModalMDSlideOut, _super);
function ModalMDSlideOut(enteringView, leavingView, opts) {
_super.call(this, enteringView, leavingView, opts);
var ele = leavingView.pageRef().nativeElement;
var backdrop = new animation_1.Animation(ele.querySelector('ion-backdrop'));
var wrapper = new animation_1.Animation(ele.querySelector('.modal-wrapper'));
backdrop.fromTo('opacity', 0.4, 0.0);
wrapper.fromTo('translateY', '0px', '40px');
wrapper.fromTo('opacity', 0.99, 0);
this
.element(leavingView.pageRef())
.duration(200)
.easing('cubic-bezier(0.47,0,0.745,0.715)')
.add(wrapper)
.add(backdrop);
}
return ModalMDSlideOut;
}(page_transition_1.PageTransition));
page_transition_1.PageTransition.register('modal-md-slide-out', ModalMDSlideOut);
|
/*
* This file is part of the MediaWiki extension MultimediaViewer.
*
* MultimediaViewer is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* MultimediaViewer is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with MultimediaViewer. If not, see <http://www.gnu.org/licenses/>.
*/
( function () {
var VL;
/**
* Tracks how long users are viewing images for
*
* @class mw.mmv.logging.ViewLogger
* @extends mw.Api
* @constructor
* @param {mw.mmv.Config} config mw.mmv.Config object
* @param {Object} windowObject Browser window object
* @param {mw.mmv.logging.ActionLogger} actionLogger ActionLogger object
*/
function ViewLogger( config, windowObject, actionLogger ) {
/**
* Was the last image view logged or was logging skipped?
* @property {boolean}
*/
this.wasLastViewLogged = false;
/**
* Record when the user started looking at the current image
* @property {number}
*/
this.viewStartTime = 0;
/**
* How long the user has been looking at the current image
* @property {number}
*/
this.viewDuration = 0;
/**
* The image URL to record a virtual view for
* @property {string}
*/
this.url = '';
/**
* If set, URI to send the beacon request to in order to record the virtual view
* @property {string}
*/
this.recordVirtualViewBeaconURI = config.recordVirtualViewBeaconURI();
/**
* Browser window
* @property {Object}
*/
this.window = windowObject;
/**
* Action logger
* @property {mw.mmv.logging.ActionLogger}
*/
this.actionLogger = actionLogger;
}
VL = ViewLogger.prototype;
/**
* Tracks the unview event of the current image if appropriate
*/
VL.unview = function () {
if ( !this.wasLastViewLogged ) {
return;
}
this.wasLastViewLogged = false;
this.actionLogger.log( 'image-unview', true );
};
/**
* Starts recording a viewing window for the current image
*/
VL.startViewDuration = function () {
this.viewStartTime = ( new Date() ).getTime();
};
/**
* Stops recording the viewing window for the current image
*/
VL.stopViewDuration = function () {
if ( this.viewStartTime ) {
this.viewDuration += ( new Date() ).getTime() - this.viewStartTime;
this.viewStartTime = 0;
}
};
/**
* Records the amount of time the current image has been viewed
*/
VL.recordViewDuration = function () {
var uri;
this.stopViewDuration();
if ( this.recordVirtualViewBeaconURI ) {
uri = new mw.Uri( this.recordVirtualViewBeaconURI );
uri.extend( { duration: this.viewDuration,
uri: this.url } );
try {
navigator.sendBeacon( uri.toString() );
} catch ( e ) {
$.ajax( {
type: 'HEAD',
url: uri.toString()
} );
}
mw.log( 'Image has been viewed for ', this.viewDuration );
}
this.viewDuration = 0;
this.unview();
};
/**
* Sets up the view tracking for the current image
*
* @param {string} url URL of the image to record a virtual view for
*/
VL.attach = function ( url ) {
var view = this;
this.url = url;
this.startViewDuration();
$( this.window )
.off( '.mmv-view-logger' )
.on( 'beforeunload.mmv-view-logger', function () {
view.recordViewDuration();
} )
.on( 'focus.mmv-view-logger', function () {
view.startViewDuration();
} )
.on( 'blur.mmv-view-logger', function () {
view.stopViewDuration();
} );
};
/*
* Stops listening to events
*/
VL.unattach = function () {
$( this.window ).off( '.mmv-view-logger' );
this.stopViewDuration();
};
/**
* Tracks whether or not the image view event was logged or not (i.e. was it in the logging sample)
*
* @param {boolean} wasEventLogged Whether the image view event was logged
*/
VL.setLastViewLogged = function ( wasEventLogged ) {
this.wasLastViewLogged = wasEventLogged;
};
mw.mmv.logging.ViewLogger = ViewLogger;
}() );
|
const code = `
// 使用例子
validate: {
isInteger: {
message: '请输入整数'
}
}
// 校验规则源码
function isInteger (val) {
return /^(-?[1-9]\d*|0)$/.test(val)
}
`
export default code
|
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
exports.default = function (children, props) {
return _react2.default.Children.map(children, function (child) {
if (!child) return child;
var newProps = typeof props === 'function' ? props(child) : props;
return _react2.default.cloneElement(child, newProps);
});
};
|
!function(e,t,n){"use strict";var r=function(e,t){this.initialize(e,t)},i=r.prototype,a=null;i._onFocus=null,i._onBlur=null,i._onToggle=null,t.hidden!==n?a="visibilitychange":t.mozHidden!==n?a="mozvisibilitychange":t.msHidden!==n?a="msvisibilitychange":t.webkitHidden!==n&&(a="webkitvisibilitychange"),i.initialize=function(n,r){if(a){this._onBlur=r,this._onFocus=n;var i=function(){t.hidden||t.webkitHidden||t.msHidden||t.mozHidden?r():n()};t.addEventListener(a,i,!1),e.addEventListener("pagehide",r),e.addEventListener("pageshow",n),e.addEventListener("blur",r),e.addEventListener("focus",n),e.addEventListener("visibilitychange",i,!1),this._onToggle=i}},i.destroy=function(){a&&(e.removeEventListener("pagehide",this._onBlur),e.removeEventListener("pageshow",this._onFocus),e.removeEventListener("blur",this._onBlur),e.removeEventListener("focus",this._onFocus),e.addEventListener("visibilitychange",this._onToggle),t.removeEventListener(a,this._onToggle,!1),this._onFocus=null,this._onBlur=null)},namespace("cloudkid").PageVisibility=r}(window,document),function(e,t){"use strict";function n(e){return null===e?String(e):"object"==typeof e||"function"==typeof e?Object.prototype.toString.call(e).match(/\s([a-z]+)/i)[1].toLowerCase()||"object":typeof e}var r=function(){},i=r.prototype;i._listeners=[],i.trigger=function(e,n){if(this._listeners[e]!==t)for(var r=this._listeners[e],i=0;i<r.length;i++)r[i](n)},i.on=function(e,t){if("object"===n(e))for(var r in e)e.hasOwnProperty(r)&&this.on(r,e[r]);else if("function"===n(t))for(var i=e.split(" "),a=null,o=0,s=i.length;s>o;o++)a=i[o],this._listeners[a]=this._listeners[a]||[],-1===this._callbackIndex(a,t)&&this._listeners[a].push(t);else if("array"===n(t))for(var u=0,l=t.length;l>u;u++)this.on(e,t[u]);return this},i.off=function(e,r){if(e===t)this._listeners=[];else if("array"===n(r))for(var i=0,a=r.length;a>i;i++)this.off(e,r[i]);else for(var o=e.split(" "),s=null,u=0,l=o.length;l>u;u++)if(s=o[u],this._listeners[s]=this._listeners[s]||[],r===t)this._listeners[s].length=0;else{var c=this._callbackIndex(s,r);-1!==c&&this._listeners[e].splice(c,1)}return this},i._callbackIndex=function(e,t){for(var n=0,r=this._listeners[e].length;r>n;n++)if(this._listeners[e][n]===t)return n;return-1},namespace("cloudkid").EventDispatcher=r}(window),function(e,t){"use strict";var n={};n.importSpriteMap=function(e,r){if(r.resources===t)throw"Sprite configuration must contain 'resources': an array of file types";var i=n.getPlayableURL(r.resources);if(r.spritemap===t)throw"Sprite configuration must contain 'spritemap': a dictionary of audio sprites";var a,o;for(o in r.spritemap)a=r.spritemap[o],e.setSound(o,a.start,a.end-a.start,a.loop);return i},n.supported=function(){return r};var r=function(){var e=document.createElement("audio"),t=!1;try{t=!!e.canPlayType,t&&(t={},t.ogg=e.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),t.oga=t.ogg,t.mp3=e.canPlayType("audio/mpeg;").replace(/^no$/,""),t.wav=e.canPlayType('audio/wav; codecs="1"').replace(/^no$/,""),t.caf=e.canPlayType("audio/x-caf").replace(/^no$/,""),t.m4a=(e.canPlayType("audio/x-m4a;")||e.canPlayType("audio/aac;")).replace(/^no$/,""))}catch(n){}return t}();n.canPlayURL=function(e){if(!r)return!1;var t=e.toLowerCase().match(/\.([a-z0-9]{3})(\?.*)?$/i);return t&&t.length?(t=t[1],r[t]||!1):!1},n.getPlayableURL=function(e){var t,r,i=null;if(e instanceof Array){for(t=0,r=e.length;r>t;t++)if(e[t]instanceof Object){if(n.canPlayURL(e[t].url)){i=e[t].url;break}}else if(n.canPlayURL(e[t])){i=e[t];break}}else n.canPlayURL(e)&&(i=e);return i},namespace("cloudkid").AudioUtils=n}(window),function(e,t){"use strict";var n=cloudkid.EventDispatcher,r=cloudkid.PageVisibility,i=cloudkid.AudioUtils,a=function(e){this.initialize(e)},o=a.prototype=new n,s=null,u=!0,l=!1,c=!1,d=!1,f=!1,h=null,p=null,g=null,v=0,m=null,y=0,E=null,T=null,L=null,b=0,S=!1,P=null,_=null,w=null,D=null,R=null,O=-1,A=null;a.LOAD_STARTED="loadStarted",a.LOADED="loaded",a.LOAD_PROGRESS="loadProgress",a.COMPLETE="complete",a.PROGRESS="progress",a.PAUSED="paused",a.RESUMED="resumed",a.STOPPED="stopped",a.STARTED="started",a.M4A_PADDING=.1,a.VERSION="1.0.6",o.manualUpdate=!1,o.initialize=function(t){if(!i.supported())throw"HTML5 Audio is not supported!";if(null!==D)throw"SwishSprite instance is already create. Destroy before re-creating";this.clear();var n=null!==t&&"object"==typeof t?i.importSpriteMap(this,t):i.getPlayableURL(t);if(!n)throw"The supplied filetype is unsupported in this browser.";D=this,l=!1,u=!0,f=!1,b=0,S=!1,R=new r(I,k),O=-1,y=n.indexOf(".m4a")>-1?a.M4A_PADDING:0,s=e.document.createElement("audio"),s.addEventListener("canplay",z),s.addEventListener("canplaythrough",H),s.addEventListener("loadeddata",z),s.addEventListener("loadedmetadata",z),s.addEventListener("progress",z),s.addEventListener("ended",j),s.addEventListener("stalled",$),s.src=n},o.getAudioElement=function(){return s},o.mute=function(){return s.volume=0,this},o.unmute=function(){return s.volume=1,this},o.pause=function(){d=!1,h&&e.clearInterval(h),g&&e.clearTimeout(g);var t=u;return s.pause(),u=!0,t||this.trigger(a.PAUSED),this},o.resume=function(){return u&&E&&(this.play(E,s.currentTime),this.trigger(a.RESUMED)),this},o.stop=function(){return null!==E&&this.trigger(a.STOPPED),this.pause(),E=null,this},o.getLength=function(e){return e===t&&E!==t?m[E].duration:e!==t?m[e].duration:0},o.getPosition=function(){return E!==t&&m[E]!==t?s.currentTime-m[E].start:0},o.getSound=function(e){return e===t&&E!==t?m[E]:e?m[e]:void 0},o.setSound=function(e,t,n,r){var i=r?0:y;return m[e]={start:t-i,end:t+n+i,duration:n+2*i,loop:r},this},o.prepare=function(e){m[e]!==t&&(s.currentTime=m[e].start)},o.clear=function(){return m={},this},o.load=function(){try{if(p&&e.clearInterval(p),c=!0,this.manualUpdate||(p=e.setInterval(z,10)),m.silence===t)throw"'silence' audio is required";this.play("silence")}catch(n){}return this},o.update=function(){c&&z(),d&&M()},o.play=function(n,r){var i;if(L=0,d=!1,e.clearInterval(h),e.clearTimeout(g),m[n]===t)return Debug.error("SoundUnknown: Sound not found. Playing sound '"+n+"' has failed."),!1;var o=m[n];i=o.start,r!==t&&r>=o.start&&r<o.end&&(i=r);try{T=!1,s.pause(),P=s.currentTime;try{s.currentTime=A=i}catch(l){}if(Math.abs(s.currentTime-i)>.5)return!0;E=n,u=!1,s.play(),D.trigger(a.STARTED);var c=Math.max(0,Math.min((s.currentTime-m[E].start)/m[E].duration,1));D.trigger(a.PROGRESS,c),g=e.setTimeout(G,1e3*m[E].duration+500),d=!0,this.manualUpdate||(h=e.setInterval(M,10))}catch(l){return Debug.error("SoundPlayException: Sound Playback has failed: "+l),!1}return!0};var M=function(){var t,n=m[E];if(!T&&e.Math.abs(s.currentTime-P)>.1)T=!0,P=s.currentTime,g&&e.clearTimeout(g),t=n.end-s.currentTime,e.Math.abs(t-n.duration)>.1&&(t=n.duration),g=e.setTimeout(G,1e3*t+500);else if(S||s.currentTime===P){if(T&&S){if(s.currentTime>A){var r=Math.max(0,Math.min((s.currentTime-n.start)/n.duration,1));D.trigger(a.PROGRESS,r)}A=s.currentTime,s.currentTime>=n.end&&j()}}else S=!0,s.currentTime<n.start-.5&&(s.currentTime=n.start)};o.destroy=function(){this.manualUpdate=!1,d=!1,c=!1,h&&e.clearInterval(h),_&&e.clearInterval(_),g&&e.clearTimeout(g),p&&e.clearInterval(p),R&&R.destroy(),R=null,s.removeEventListener("canplay",z),s.removeEventListener("canplaythrough",H),s.removeEventListener("loadeddata",z),s.removeEventListener("loadedmetadata",z),s.removeEventListener("progress",z),s.removeEventListener("ended",j),s.removeEventListener("stalled",$),this.off(),this.stop(),this.clear(),s=null,D=null},o.isLoaded=function(){return l};var U=function(){f||(f=!0,D.trigger(a.LOAD_STARTED),_=e.setInterval(x,1e3))},k=function(){D&&(-1==O&&(O=u?1:0),D.pause())},I=function(){D&&(0===O&&D.resume(),O=-1)},x=function(){var e=m[E];E?(s.currentTime<e.start-1||s.currentTime>e.end+1?(L+=1,Debug.warn("ScrubberOutOfRange: The scrubber position ("+s.currentTime+") is out of range ("+e.start+" - "+e.end+"). This warning reported "+L+" times."),L>=5&&(s.currentTime=e.start)):L=0,s.currentTime!==w?(b=0,w=s.currentTime):(b++,!u&&b>=5&&s.play())):(L=0,b=0)},z=function(){var n,r=0;if(s.buffered.length&&(r=s.buffered.end(s.buffered.length-1)),!f&&r>0&&s.duration>0&&U(),!l){if(n=Math.max(1,r/s.duration),isNaN(n))return;n!==v&&(v=n,D.trigger(a.LOAD_PROGRESS,v)),.001>1-n&&(c=!1,e.clearInterval(p),v=1,l=!0,m.silence!==t&&D.play("silence"),D.trigger(a.LOADED))}},G=function(){m[E]},H=function(){U()},$=function(){f||Debug.log("Media stalled before load started")},j=function(){var t=m[E];t&&t.loop?(D.pause(),s.currentTime=t.start,e.setTimeout(function(){D.trigger(a.PROGRESS,1),D.trigger(a.COMPLETE),E&&D.play(E)},0)):(D.stop(),D.trigger(a.PROGRESS,1),D.trigger(a.COMPLETE))};namespace("cloudkid").SwishSprite=a}(window);
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.