hexsha string | size int64 | ext string | lang string | max_stars_repo_path string | max_stars_repo_name string | max_stars_repo_head_hexsha string | max_stars_repo_licenses list | max_stars_count int64 | max_stars_repo_stars_event_min_datetime string | max_stars_repo_stars_event_max_datetime string | max_issues_repo_path string | max_issues_repo_name string | max_issues_repo_head_hexsha string | max_issues_repo_licenses list | max_issues_count int64 | max_issues_repo_issues_event_min_datetime string | max_issues_repo_issues_event_max_datetime string | max_forks_repo_path string | max_forks_repo_name string | max_forks_repo_head_hexsha string | max_forks_repo_licenses list | max_forks_count int64 | max_forks_repo_forks_event_min_datetime string | max_forks_repo_forks_event_max_datetime string | content string | avg_line_length float64 | max_line_length int64 | alphanum_fraction float64 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0223914bee45db24cfefb1da577aed79e588ef5d | 129,017 | js | JavaScript | src/v1.9.3/bars-compiled.js | Mike96Angelo/Bars | 9c0807bd7df35c822d6d143354a2cbd4c643c37e | [
"MIT"
] | 6 | 2016-09-27T21:20:37.000Z | 2017-01-13T17:08:59.000Z | src/v1.9.3/bars-compiled.js | Mike96Angelo/Bars | 9c0807bd7df35c822d6d143354a2cbd4c643c37e | [
"MIT"
] | 8 | 2016-11-14T01:49:48.000Z | 2017-10-31T17:36:54.000Z | src/v1.9.3/bars-compiled.js | Mike96Angelo/Bars | 9c0807bd7df35c822d6d143354a2cbd4c643c37e | [
"MIT"
] | 4 | 2015-11-30T14:14:20.000Z | 2021-02-27T17:22:35.000Z | (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.Bars = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
module.exports = require('../lib/bars-runtime');
},{"../lib/bars-runtime":2}],2:[function(require,module,exports){
var Generator = require('generate-js'),
Renderer = require('./renderer'),
TextRenderer = require('./text-renderer'),
Token = require('./compiler/tokens'),
Blocks = require('./blocks'),
Transform = require('./transforms'),
packageJSON = require('../package');
var Bars = Generator.generate(function Bars() {
var _ = this;
_.defineProperties({
blocks: new Blocks(),
partials: {},
transforms: new Transform()
});
});
Bars.definePrototype({
version: packageJSON.version,
build: function build(parsedTemplate, state) {
var _ = this,
program = parsedTemplate;
if (Array.isArray(parsedTemplate)) {
program = new Token.tokens.program();
program.fromArray(parsedTemplate);
}
return new Renderer(_, program, state);
},
buildText: function buildText(parsedTemplate, state) {
var _ = this,
program = parsedTemplate;
if (Array.isArray(parsedTemplate)) {
program = new Token.tokens.program();
program.fromArray(parsedTemplate);
}
return new TextRenderer(_, program, state);
},
registerBlock: function registerBlock(name, block) {
var _ = this;
_.blocks[name] = block;
},
registerPartial: function registerPartial(name, compiledTemplate) {
var _ = this;
if (typeof compiledTemplate === 'string') {
if (!_.preCompile) {
throw 'partials must be pre-compiled using bars.preCompile(template)';
}
compiledTemplate = _.preCompile(compiledTemplate, name, null, {
minify: true
});
}
var program = compiledTemplate;
if (Array.isArray(compiledTemplate)) {
program = new Token.tokens.program();
program.fromArray(compiledTemplate);
}
_.partials[name] = program;
},
registerTransform: function registerTransform(name, func) {
var _ = this;
_.transforms[name] = func;
},
});
module.exports = Bars;
},{"../package":71,"./blocks":3,"./compiler/tokens":10,"./renderer":24,"./text-renderer":28,"./transforms":29,"generate-js":39}],3:[function(require,module,exports){
var Generator = require('generate-js');
var Blocks = Generator.generate(function Blocks() {});
Blocks.definePrototype({
if: function ifBlock(args, consequent, alternate, context) {
if (args[0]) {
consequent();
} else {
alternate();
}
},
with: function withBlock(args, consequent, alternate, context) {
var _ = this,
data = args[0];
if (!args.length) {
consequent();
} else if (data && typeof data === 'object') {
consequent(context.newContext(data));
} else {
alternate();
}
},
each: function eachBlock(args, consequent, alternate, context) {
var _ = this,
data = args[0];
if (data && typeof data === 'object') {
var keys = Object.keys(data);
if (keys.length) {
for (var i = 0; i < keys.length; i++) {
consequent(
context.newContext(
data[keys[i]], {
key: keys[i],
index: i,
length: keys.length
}, [
data[keys[i]],
data instanceof Array ? i : keys[i],
data
]
)
);
}
} else {
alternate();
}
} else {
alternate();
}
}
});
module.exports = Blocks;
},{"generate-js":39}],4:[function(require,module,exports){
var Token = require('./token');
var AsToken = Token.generate(
function AsToken(code) {
var _ = this;
if (code) {
Token.call(_, code);
}
_.vars = [];
}
);
AsToken.definePrototype({
enumerable: true
}, {
type: 'as'
});
AsToken.definePrototype({
TYPE_ID: Token.tokens.push(AsToken) - 1,
toArray: function () {
var _ = this;
return [
_.TYPE_ID,
_.name,
_.vars
];
},
toObject: function () {
var _ = this;
return {
type: _.type,
TYPE_ID: _.TYPE_ID,
name: _.name,
vars: _.vars
};
},
_fromArray: function _fromArray(arr) {
var _ = this;
_.vars = arr[2].map(function (item) {
var arg = new Token.tokens[item[0]]();
arg.fromArray(item);
return arg;
});
},
toString: function toString() {
var _ = this,
str = ' as | ';
for (var i = 0; i < _.vars.length; i++) {
str += _.vars[i].toString();
}
str += ' | ';
return str;
}
});
Token.tokens.as = AsToken;
},{"./token":19}],5:[function(require,module,exports){
var Token = require('./token');
var AssignmentToken = Token.generate(
function AssignmentToken(code) {
var _ = this;
if (code) {
Token.call(_, code);
}
_.name = '';
_.expression = null;
}
);
AssignmentToken.definePrototype({
enumerable: true
}, {
type: 'assignment'
});
AssignmentToken.definePrototype({
TYPE_ID: Token.tokens.push(AssignmentToken) - 1,
toArray: function () {
var _ = this;
return [
_.TYPE_ID,
_.name,
_.expression
];
},
toObject: function () {
var _ = this;
return {
type: _.type,
TYPE_ID: _.TYPE_ID,
name: _.name,
expression: _.expression
};
},
_fromArray: function _fromArray(arr) {
var _ = this;
_.name = arr[1];
_.expression = new Token.tokens[arr[2][0]]();
_.expression.fromArray(arr[2]);
},
toString: function toString() {
// var _ = this,
// str = '';
//
// if (_.operands.length === 1) {
// str += _.assignment + _.operands[0].toString();
// } else if (_.operands.length === 2) {
// str += _.operands[0].toString();
// str += ' ' + _.assignment + ' ';
// str += _.operands[1].toString();
// }
//
// return str;
}
});
Token.tokens.assignment = AssignmentToken;
},{"./token":19}],6:[function(require,module,exports){
var Token = require('./token');
var AttrToken = Token.generate(
function AttrToken(code) {
var _ = this;
if (code) {
Token.call(_, code);
}
_.name = '';
_.nodes = [];
_.nodesUpdate = 0;
}
);
AttrToken.definePrototype({
enumerable: true
}, {
type: 'attr'
});
AttrToken.definePrototype({
TYPE_ID: Token.tokens.push(AttrToken) - 1,
toArray: function () {
var _ = this;
return [
_.TYPE_ID,
_.name,
_.nodes,
_.nodesUpdate
];
},
toObject: function () {
var _ = this;
return {
type: _.type,
TYPE_ID: _.TYPE_ID,
name: _.name,
nodes: _.nodes,
nodesUpdate: _.nodesUpdate
};
},
_fromArray: function _fromArray(arr) {
var _ = this;
_.name = arr[1];
_.nodes = arr[2].map(function (item) {
var node = new Token.tokens[item[0]]();
node.fromArray(item);
return node;
});
_.nodesUpdate = arr[3];
},
toString: function toString() {
var _ = this,
str = ' ';
str += _.name + (_.nodes.length ? '="' : '');
for (var i = 0; i < _.nodes.length; i++) {
_.nodes[i].indentLevel = '';
str += _.nodes[i].toString();
}
str += (_.nodes.length ? '"' : '');
return str;
},
updates: function updates() {
var _ = this;
_.nodesUpdate = 1;
}
});
Token.tokens.attr = AttrToken;
},{"./token":19}],7:[function(require,module,exports){
var Token = require('./token');
var BindToken = Token.generate(
function BindToken(code) {
var _ = this;
if (code) {
Token.call(_, code);
}
_.name = '';
_.expression = null;
}
);
BindToken.definePrototype({
enumerable: true
}, {
type: 'bind'
});
BindToken.definePrototype({
TYPE_ID: Token.tokens.push(BindToken) - 1,
toArray: function () {
var _ = this;
return [
_.TYPE_ID,
_.name,
_.expression
];
},
toObject: function () {
var _ = this;
return {
type: _.type,
TYPE_ID: _.TYPE_ID,
name: _.name,
expression: _.expression
};
},
_fromArray: function _fromArray(arr) {
var _ = this;
_.name = arr[1];
var expression = new Token.tokens[arr[2][0]]();
expression.fromArray(arr[2]);
_.expression = expression;
},
toString: function toString() {
var _ = this,
str = _.name + ':{{ ';
str += _.expression.toString();
str += ' }}';
return str;
}
});
Token.tokens.bind = BindToken;
},{"./token":19}],8:[function(require,module,exports){
var Token = require('./token');
var BlockToken = Token.generate(
function BlockToken(code) {
var _ = this;
if (code) {
Token.call(_, code);
}
_.name = '';
_.arguments = null;
_.map = null;
_.as = null;
_.consequent = null;
_.alternate = null;
}
);
BlockToken.definePrototype({
enumerable: true
}, {
type: 'block'
});
BlockToken.definePrototype({
TYPE_ID: Token.tokens.push(BlockToken) - 1,
toArray: function () {
var _ = this;
return [
_.TYPE_ID,
_.name,
_.arguments,
_.as,
_.map,
_.consequent,
_.alternate
];
},
toObject: function () {
var _ = this;
return {
type: _.type,
TYPE_ID: _.TYPE_ID,
name: _.name,
arguments: _.arguments,
as: _.as,
map: _.map,
consequent: _.consequent,
alternate: _.alternate
};
},
_fromArray: function _fromArray(arr) {
var _ = this;
_.name = arr[1];
_.arguments = arr[2] && arr[2].map(function (item) {
var arg = new Token.tokens[item[0]]();
arg.fromArray(item);
return arg;
});
_.as = arr[3] && arr[3].map(function (item) {
var arg = new Token.tokens[item[0]]();
arg.fromArray(item);
return arg;
});
_.map = arr[4] && arr[4].map(function (item) {
var arg = new Token.tokens[item[0]]();
arg.fromArray(item);
return arg;
});
var consequent = new Token.tokens.fragment();
consequent.fromArray(arr[5]);
_.consequent = consequent;
if (arr[6]) {
var alternate = new Token.tokens[arr[6][0]]();
alternate.fromArray(arr[6]);
_.alternate = alternate;
}
},
toString: function toString() {
var _ = this,
str = '';
if (!_.fromElse) {
str += _.indentLevel + '{{#';
}
str += _.name + ' ';
str += _.expression.toString();
str += (_.map ? _.map.toString() : '');
str += '}}';
_.consequent.indentLevel = (_.indentLevel ? _.indentLevel +
' ' : '');
str += _.consequent.toString();
if (_.alternate) {
_.alternate.indentLevel = _.indentLevel;
if (_.alternate.type === 'block') {
_.alternate.fromElse = true;
str += _.indentLevel + '{{else ' + _.alternate.toString();
return str;
}
_.alternate.indentLevel += (_.indentLevel ? _.indentLevel +
' ' : '');
str += _.indentLevel + '{{else}}';
str += _.alternate.toString();
}
str += _.indentLevel + '{{/' + _.name + '}}';
return str;
},
updates: function updates() {
var _ = this;
if (_.elsed && _.alternate) {
_.alternate.nodesUpdate = 1;
} else if (_.consequent) {
_.consequent.nodesUpdate = 1;
}
}
});
Token.tokens.block = BlockToken;
},{"./token":19}],9:[function(require,module,exports){
var Token = require('./token');
var FragmentToken = Token.generate(
function FragmentToken(code) {
var _ = this;
if (code) {
Token.call(_, code);
}
_.nodes = [];
_.nodesUpdate = 0;
}
);
FragmentToken.definePrototype({
enumerable: true
}, {
type: 'fragment'
});
FragmentToken.definePrototype({
TYPE_ID: Token.tokens.push(FragmentToken) - 1,
toArray: function () {
var _ = this;
return [
_.TYPE_ID,
_.nodes,
_.nodesUpdate
];
},
toObject: function () {
var _ = this;
return {
type: _.type,
TYPE_ID: _.TYPE_ID,
nodes: _.nodes,
nodesUpdate: _.nodesUpdate
};
},
_fromArray: function _fromArray(arr) {
var _ = this;
_.nodes = arr[1].map(function (item) {
var node = new Token.tokens[item[0]]();
node.fromArray(item);
return node;
});
_.nodesUpdate = arr[2];
},
toString: function toString() {
var _ = this,
str = '';
for (var i = 0; i < _.nodes.length; i++) {
_.nodes[i].indentLevel = _.indentLevel;
str += _.nodes[i].toString();
}
return str;
},
updates: function updates() {
var _ = this;
_.nodesUpdate = 1;
}
});
Token.tokens.fragment = FragmentToken;
},{"./token":19}],10:[function(require,module,exports){
var Token = require('./token');
// program
require('./program');
require('./fragment');
// html markup
require('./text');
require('./tag');
require('./attr');
require('./prop');
require('./bind');
// bars markup
require('./block');
require('./insert');
require('./partial');
// bars expression
require('./literal');
require('./value');
require('./transform');
require('./operator');
// as expression
require('./as');
// context-maps
require('./assignment');
module.exports = Token;
// module.exports = window.Token = Token;
// test
// var prog = new Token.tokens.program();
//
// prog.fragment = new Token.tokens.fragment();
//
// for (var i = 0; i < 5; i++) {
// prog.fragment.nodes.push(new Token.tokens.tag());
// }
// window.prog = prog;
},{"./as":4,"./assignment":5,"./attr":6,"./bind":7,"./block":8,"./fragment":9,"./insert":11,"./literal":12,"./operator":13,"./partial":14,"./program":15,"./prop":16,"./tag":17,"./text":18,"./token":19,"./transform":20,"./value":21}],11:[function(require,module,exports){
var Token = require('./token');
var InsertToken = Token.generate(
function InsertToken(code) {
var _ = this;
if (code) {
Token.call(_, code);
}
_.expression = null;
}
);
InsertToken.definePrototype({
enumerable: true
}, {
type: 'insert'
});
InsertToken.definePrototype({
TYPE_ID: Token.tokens.push(InsertToken) - 1,
toArray: function () {
var _ = this;
return [
_.TYPE_ID,
_.expression
];
},
toObject: function () {
var _ = this;
return {
type: _.type,
TYPE_ID: _.TYPE_ID,
expression: _.expression
};
},
_fromArray: function _fromArray(arr) {
var _ = this;
var expression = new Token.tokens[arr[1][0]]();
expression.fromArray(arr[1]);
_.expression = expression;
},
toString: function toString() {
var _ = this,
str = '{{ ';
str += _.expression.toString();
str += ' }}';
return str;
}
});
Token.tokens.insert = InsertToken;
},{"./token":19}],12:[function(require,module,exports){
var Token = require('./token');
var LiteralToken = Token.generate(
function LiteralToken(code) {
var _ = this;
if (code) {
Token.call(_, code);
}
_.value = '';
}
);
LiteralToken.definePrototype({
enumerable: true
}, {
type: 'literal'
});
LiteralToken.definePrototype({
TYPE_ID: Token.tokens.push(LiteralToken) - 1,
toArray: function () {
var _ = this;
return [
_.TYPE_ID,
_.value
];
},
toObject: function () {
var _ = this;
return {
type: _.type,
TYPE_ID: _.TYPE_ID,
value: _.value
};
},
_fromArray: function _fromArray(arr) {
var _ = this;
_.value = arr[1];
},
toString: function toString() {
var _ = this,
str = '';
str += _.value;
return str;
}
});
Token.tokens.literal = LiteralToken;
},{"./token":19}],13:[function(require,module,exports){
var Token = require('./token');
var OperatorToken = Token.generate(
function OperatorToken(code) {
var _ = this;
if (code) {
Token.call(_, code);
}
_.operator = '';
_.operands = [];
}
);
OperatorToken.definePrototype({
enumerable: true
}, {
type: 'operator'
});
OperatorToken.definePrototype({
TYPE_ID: Token.tokens.push(OperatorToken) - 1,
toArray: function () {
var _ = this;
return [
_.TYPE_ID,
_.operator,
_.operands
];
},
toObject: function () {
var _ = this;
return {
type: _.type,
TYPE_ID: _.TYPE_ID,
operator: _.operator,
operands: _.operands
};
},
_fromArray: function _fromArray(arr) {
var _ = this;
_.operator = arr[1];
_.operands = arr[2].map(function (item) {
var arg = new Token.tokens[item[0]]();
arg.fromArray(item);
return arg;
});
},
toString: function toString() {
var _ = this,
str = '';
if (_.operands.length === 1) {
str += _.operator + _.operands[0].toString();
} else if (_.operands.length === 2) {
str += _.operands[0].toString();
str += ' ' + _.operator + ' ';
str += _.operands[1].toString();
}
return str;
}
});
Token.tokens.operator = OperatorToken;
Token;
},{"./token":19}],14:[function(require,module,exports){
var Token = require('./token');
var PartialToken = Token.generate(
function PartialToken(code) {
var _ = this;
if (code) {
Token.call(_, code);
}
_.name = '';
_.expression = null;
_.map = null;
}
);
PartialToken.definePrototype({
enumerable: true
}, {
type: 'partial'
});
PartialToken.definePrototype({
TYPE_ID: Token.tokens.push(PartialToken) - 1,
toArray: function () {
var _ = this;
return [
_.TYPE_ID,
_.name,
_.expression,
_.map
];
},
toObject: function () {
var _ = this;
return {
type: _.type,
TYPE_ID: _.TYPE_ID,
name: _.name,
expression: _.expression,
map: _.map
};
},
_fromArray: function _fromArray(arr) {
var _ = this;
if (typeof arr[1] === 'object') {
var name = new Token.tokens[arr[1][0]]();
name.fromArray(arr[1]);
_.name = name;
} else {
_.name = arr[1];
}
if (arr[2]) {
var expression = new Token.tokens[arr[2][0]]();
expression.fromArray(arr[2]);
_.expression = expression;
}
_.map = arr[3].map(function (item) {
var arg = new Token.tokens[item[0]]();
arg.fromArray(item);
return arg;
});
},
toString: function toString() {
var _ = this,
str = _.indentLevel + '{{>' + _.name;
str += (_.expression ? ' ' + _.expression.toString() : '');
str += '}}';
return str;
}
});
Token.tokens.partial = PartialToken;
},{"./token":19}],15:[function(require,module,exports){
var Token = require('./token');
var PACKAGE_JSON = require('../../../package');
var ProgramToken = Token.generate(
function ProgramToken(code) {
var _ = this;
if (code) {
Token.call(_, code);
}
_.version = PACKAGE_JSON.version;
_.mode = '';
_.fragment = null;
}
);
ProgramToken.definePrototype({
enumerable: true
}, {
type: 'program'
});
ProgramToken.definePrototype({
writable: true
}, {
indentLevel: '\n'
});
ProgramToken.definePrototype({
TYPE_ID: Token.tokens.push(ProgramToken) - 1,
toArray: function () {
var _ = this;
return [
_.TYPE_ID,
_.version,
_.mode,
_.fragment
];
},
toObject: function () {
var _ = this;
return {
type: _.type,
TYPE_ID: _.TYPE_ID,
version: _.version,
mode: _.mode,
fragment: _.fragment
};
},
_fromArray: function _fromArray(arr) {
var _ = this;
_.version = arr[1];
_.mode = arr[2];
var fragment = new Token.tokens.fragment();
fragment.fromArray(arr[3]);
_.fragment = fragment;
},
toString: function toString() {
var _ = this;
_.fragment.indentLevel = _.indentLevel;
return _.fragment.toString()
.trim() + '\n';
}
});
Token.tokens.program = ProgramToken;
},{"../../../package":71,"./token":19}],16:[function(require,module,exports){
var Token = require('./token');
var PropToken = Token.generate(
function PropToken(code) {
var _ = this;
if (code) {
Token.call(_, code);
}
_.name = '';
_.expression = null;
}
);
PropToken.definePrototype({
enumerable: true
}, {
type: 'prop'
});
PropToken.definePrototype({
TYPE_ID: Token.tokens.push(PropToken) - 1,
toArray: function () {
var _ = this;
return [
_.TYPE_ID,
_.name,
_.expression
];
},
toObject: function () {
var _ = this;
return {
type: _.type,
TYPE_ID: _.TYPE_ID,
name: _.name,
expression: _.expression
};
},
_fromArray: function _fromArray(arr) {
var _ = this;
_.name = arr[1];
var expression = new Token.tokens[arr[2][0]]();
expression.fromArray(arr[2]);
_.expression = expression;
},
toString: function toString() {
var _ = this,
str = _.name + ':{{ ';
str += _.expression.toString();
str += ' }}';
return str;
}
});
Token.tokens.prop = PropToken;
},{"./token":19}],17:[function(require,module,exports){
var Token = require('./token');
var TagToken = Token.generate(
function TagToken(code) {
var _ = this;
if (code) {
Token.call(_, code);
}
_.name = '';
_.attrs = [];
_.props = [];
_.binds = [];
_.nodes = [];
_.attrsUpdate = 0;
_.nodesUpdate = 0;
}
);
TagToken.definePrototype({
enumerable: true
}, {
type: 'tag'
});
TagToken.definePrototype({
TYPE_ID: Token.tokens.push(TagToken) - 1,
toArray: function () {
var _ = this;
return [
_.TYPE_ID,
_.name,
_.attrs,
_.attrsUpdate,
_.nodes,
_.nodesUpdate,
_.props,
_.binds
];
},
toObject: function () {
var _ = this;
return {
type: _.type,
TYPE_ID: _.TYPE_ID,
name: _.name,
attrs: _.attrs,
attrsUpdate: _.attrsUpdate,
nodes: _.nodes,
nodesUpdate: _.nodesUpdate,
props: _.props,
binds: _.binds
};
},
_fromArray: function _fromArray(arr) {
var _ = this;
_.name = arr[1];
_.attrs = arr[2].map(function (item) {
var attr = new Token.tokens[item[0]]();
attr.fromArray(item);
return attr;
});
_.attrsUpdate = arr[3];
_.nodes = arr[4].map(function (item) {
var node = new Token.tokens[item[0]]();
node.fromArray(item);
return node;
});
_.nodesUpdate = arr[5];
_.props = arr[6].map(function (item) {
var prop = new Token.tokens[item[0]]();
prop.fromArray(item);
return prop;
});
_.binds = arr[7].map(function (item) {
var bind = new Token.tokens[item[0]]();
bind.fromArray(item);
return bind;
});
},
toString: function toString() {
var _ = this,
str = _.indentLevel + '<' + _.name;
for (var i = 0; i < _.attrs.length; i++) {
str += _.attrs[i].toString();
}
if (_.selfClosed) {
str += (_.attrs.length ? ' ' : '') + '/>';
return str;
}
str += '>';
if (_.selfClosing) {
return str;
}
var nodes = '';
for (i = 0; i < _.nodes.length; i++) {
_.nodes[i].indentLevel = (_.indentLevel ? _.indentLevel +
' ' : '');
nodes += _.nodes[i].toString();
}
str += nodes.trim();
str += _.indentLevel + '</' + _.name + '>';
return str;
},
updates: function updates(type) {
var _ = this;
if (type === 'attr') {
_.attrsUpdate = 1;
} else {
_.nodesUpdate = 1;
}
}
});
Token.tokens.tag = TagToken;
},{"./token":19}],18:[function(require,module,exports){
var Token = require('./token');
var TextToken = Token.generate(
function TextToken(code) {
var _ = this;
if (code) {
Token.call(_, code);
}
_.value = '';
}
);
TextToken.definePrototype({
enumerable: true
}, {
type: 'text'
});
TextToken.definePrototype({
TYPE_ID: Token.tokens.push(TextToken) - 1,
toArray: function () {
var _ = this;
return [
_.TYPE_ID,
_.value
];
},
toObject: function () {
var _ = this;
return {
type: _.type,
TYPE_ID: _.TYPE_ID,
value: _.value
};
},
_fromArray: function _fromArray(arr) {
var _ = this;
_.value = arr[1];
},
toString: function toString() {
var _ = this,
str = '';
str += _.indentLevel + _.value;
return str;
}
});
Token.tokens.text = TextToken;
},{"./token":19}],19:[function(require,module,exports){
var Token = require('compileit')
.Token;
var BarsToken = Token.generate(
function BarsToken(code, type) {
Token.call(this, code, type);
}
);
BarsToken.tokens = [];
BarsToken.definePrototype({
writable: true
}, {
indentLevel: '',
// JSONuseObject: true
});
BarsToken.definePrototype({
TYPE_ID: -1,
toJSON: function toJSON(arr) {
if (this.JSONuseObject)
return this.toObject();
return this.toArray();
},
toArray: function toArray() {
var _ = this;
console.warn('toArray not impleneted.');
return [-1];
},
toObject: function toObject() {
var _ = this;
console.warn('toObject not impleneted.');
return {
type: _.type,
TYPE_ID: _.TYPE_ID
};
},
fromArray: function fromArray(arr) {
var _ = this;
if (arr[0] !== _.TYPE_ID) {
throw 'TypeMismatch: ' + arr[0] + ' is not ' + _.TYPE_ID;
}
_._fromArray(arr);
},
updates: function updates() {
var _ = this;
console.warn('updates not impleneted.');
}
});
module.exports = BarsToken;
},{"compileit":32}],20:[function(require,module,exports){
var Token = require('./token');
var TransformToken = Token.generate(
function TransformToken(code) {
var _ = this;
if (code) {
Token.call(_, code);
}
_.name = '';
_.arguments = [];
}
);
TransformToken.definePrototype({
enumerable: true
}, {
type: 'transform'
});
TransformToken.definePrototype({
TYPE_ID: Token.tokens.push(TransformToken) - 1,
toArray: function () {
var _ = this;
return [
_.TYPE_ID,
_.name,
_.arguments
];
},
toObject: function () {
var _ = this;
return {
type: _.type,
TYPE_ID: _.TYPE_ID,
name: _.name,
arguments: _.arguments
};
},
_fromArray: function _fromArray(arr) {
var _ = this;
_.name = arr[1];
_.arguments = arr[2].map(function (item) {
var arg = new Token.tokens[item[0]]();
arg.fromArray(item);
return arg;
});
},
toString: function toString() {
var _ = this,
str = '@';
str += _.name + '(';
for (var i = 0; i < _.arguments.length; i++) {
str += _.arguments[i].toString() + (i + 1 < _.arguments
.length ?
', ' : '');
}
str += ')';
return str;
}
});
Token.tokens.transform = TransformToken;
},{"./token":19}],21:[function(require,module,exports){
var Token = require('./token');
var ValueToken = Token.generate(
function ValueToken(code) {
var _ = this;
if (code) {
Token.call(_, code);
}
_.path = '';
}
);
ValueToken.definePrototype({
enumerable: true
}, {
type: 'value'
});
ValueToken.definePrototype({
TYPE_ID: Token.tokens.push(ValueToken) - 1,
toArray: function () {
var _ = this;
return [
_.TYPE_ID,
_.path
];
},
toObject: function () {
var _ = this;
return {
type: _.type,
TYPE_ID: _.TYPE_ID,
path: _.path
};
},
_fromArray: function _fromArray(arr) {
var _ = this;
_.path = arr[1];
},
toString: function toString() {
var _ = this,
str = '';
if (
_.path[0] === '~' ||
_.path[0] === '..' ||
_.path[0] === '.' ||
_.path[0] === '@'
) {
str += _.path.join('/');
} else {
str += _.path.join('.');
}
return str;
}
});
Token.tokens.value = ValueToken;
},{"./token":19}],22:[function(require,module,exports){
var h = require('virtual-dom/h');
var execute = require('../runtime/execute');
function makeVars(context, map, bars) {
var vars = {};
for (var i = 0; i < map.length; i++) {
vars[map[i].name] = execute(map[i].expression, bars.transforms, context);
}
// console.log(vars);
return vars;
}
function renderTextNode(bars, struct, context) {
return struct.value;
}
var PROP_MAP = {
'class': 'className'
};
function renderAttrsAndProps(bars, struct, context) {
var i,
_data = {},
props = {},
attrs = {};
function get(name) {
return _data[name];
}
for (i = 0; i < struct.attrs.length; i++) {
var attr = struct.attrs[i];
attrs[attr.name] = renderChildrenTexts(bars, attr, context);
}
for (i = 0; i < struct.binds.length; i++) {
_data[struct.binds[i].name] = execute(struct.binds[i].expression, bars.transforms, context);
}
for (i = 0; i < struct.props.length; i++) {
props[struct.props[i].name] = execute(struct.props[i].expression, bars.transforms, context);
}
props.data = get;
props.attributes = attrs;
return props;
}
function renderInsert(bars, struct, context) {
return execute(struct.expression, bars.transforms, context);
}
function renderChildrenTexts(bars, struct, context) {
var children = [];
if (!struct || !struct.nodes) return children.join('');
for (var i = 0; i < struct.nodes.length; i++) {
var child = struct.nodes[i];
if (child.type === 'text') {
children.push(child.value);
} else if (child.type === 'insert') {
children.push(renderInsert(bars, child, context));
} else if (child.type === 'block') {
children.push(renderBlockAsTexts(bars, child, context));
}
}
return children.join('');
}
function renderBlockAsTexts(bars, struct, context) {
var nodes = [];
function consequent(new_context) {
new_context = new_context || context;
new_context.applyAsExpression(struct.as ? struct.as.vars : []);
new_context = new_context.contextWithVars(makeVars(context, struct.map, bars));
nodes.push(renderTypeAsTexts(bars, struct.consequent, new_context));
}
function alternate(new_context) {
if (new_context) {
new_context.applyAsExpression(struct.as ? struct.as.vars : []);
new_context = new_context.contextWithVars(makeVars(context, struct.map, bars));
}
nodes.push(renderTypeAsTexts(bars, struct.alternate, new_context || context));
}
var blockFunc = bars.blocks[struct.name];
if (typeof blockFunc !== 'function') {
throw 'Bars Error: Missing Block helper: ' + struct.name;
}
blockFunc(
struct.arguments.map(function (expression) {
return execute(expression, bars.transforms, context);
}),
consequent,
alternate,
context
);
return nodes.join('');
}
function renderBlockAsNodes(bars, struct, context) {
var nodes = [];
function consequent(new_context) {
new_context = new_context || context;
new_context = new_context.contextWithVars(makeVars(new_context, struct.map, bars));
new_context.applyAsExpression(struct.as ? struct.as.vars : []);
nodes = nodes.concat(renderTypeAsNodes(bars, struct.consequent, new_context));
}
function alternate(new_context) {
if (new_context) {
new_context = new_context.contextWithVars(makeVars(new_context, struct.map, bars));
new_context.applyAsExpression(struct.as ? struct.as.vars : []);
}
nodes = nodes.concat(renderTypeAsNodes(bars, struct.alternate, new_context || context));
}
var blockFunc = bars.blocks[struct.name];
if (typeof blockFunc !== 'function') {
throw 'Bars Error: Missing Block helper: ' + struct.name;
}
blockFunc(
struct.arguments.map(function (expression) {
return execute(expression, bars.transforms, context);
}),
consequent,
alternate,
context
);
return nodes;
}
function renderPartial(bars, struct, context) {
console.log('>>>', arguments);
var name = struct.name;
if (typeof struct.name === 'object') {
name = execute(struct.name, bars.transforms, context);
}
var partial = bars.partials[name];
if (!partial) {
throw 'Bars Error: Missing Partial: ' + name;
}
var newContext = context;
if (struct.expression) {
newContext = newContext.newContext(
execute(struct.expression, bars.transforms, newContext),
null,
null,
true
);
}
newContext = newContext.contextWithVars(makeVars(context, struct.map, bars));
return renderChildrenNodes(bars, partial.fragment, newContext);
}
function renderChildrenNodes(bars, struct, context) {
var children = [];
if (!struct || !struct.nodes) return children;
for (var i = 0; i < struct.nodes.length; i++) {
var child = struct.nodes[i];
if (child.type === 'tag') {
children.push(renderTagNode(bars, child, context));
} else if (child.type === 'text') {
children.push(renderTextNode(bars, child, context));
} else if (child.type === 'insert') {
children.push(renderInsert(bars, child, context));
} else if (child.type === 'block') {
children = children.concat(renderBlockAsNodes(bars, child, context));
} else if (child.type === 'partial') {
children = children.concat(renderPartial(bars, child, context));
}
}
return children;
}
function renderTagNode(bars, struct, context) {
return h(
struct.name,
renderAttrsAndProps(bars, struct, context),
renderChildrenNodes(bars, struct, context)
);
}
function renderTypeAsNodes(bars, struct, context) {
if (!struct) return [];
if (struct.type === 'tag') {
return [renderTagNode(bars, struct, context)];
} else if (struct.type === 'text') {
return [renderTextNode(bars, struct, context)];
} else if (struct.type === 'insert') {
return [renderInsert(bars, struct, context)];
} else if (struct.type === 'block') {
return renderBlockAsNodes(bars, struct, context);
} else if (struct.type === 'fragment') {
return renderChildrenNodes(bars, struct, context);
} else if (struct.type === 'partial') {
return renderPartial(bars, struct, context);
}
throw 'Bars Error: unknown type: ' + struct.type;
}
function renderTypeAsTexts(bars, struct, context) {
if (!struct) return [];
if (struct.type === 'text') {
return struct.value;
} else if (struct.type === 'insert') {
return renderInsert(bars, struct, context);
} else if (struct.type === 'block') {
return renderBlockAsTexts(bars, struct, context);
} else if (struct.type === 'fragment') {
return renderChildrenTexts(bars, struct, context);
}
throw 'Bars Error: unknown type: ' + struct.type;
}
function render(bars, struct, context, noRender) {
return h(
'div',
noRender ? [] : renderChildrenNodes(bars, struct.fragment, context)
);
}
module.exports = render;
},{"../runtime/execute":26,"virtual-dom/h":46}],23:[function(require,module,exports){
var execute = require('../runtime/execute');
function makeVars(context, map, bars) {
var vars = {};
for (var i = 0; i < map.length; i++) {
vars[map[i].name] = execute(map[i].expression, bars.transforms, context);
}
// console.log(vars);
return vars;
}
function repeat(a, n) {
n = n || 0;
var r = '';
for (var i = 0; i < n; i++) {
r += a;
}
return r;
}
function abb(token, indentWith, bars, context) {
if (!token) return '';
var r = '';
function consequent(new_context) {
if (!token.consequent) return;
new_context = new_context || context;
if (token.as) {
new_context.applyAsExpression(token.as.vars);
}
new_context = new_context.contextWithVars(makeVars(context, token.map, bars));
r += ac(token.consequent.nodes, indentWith, bars, new_context);
}
function alternate(new_context) {
if (!token.alternate) return;
if (new_context) {
if (token.as) {
new_context.applyAsExpression(token.as.vars);
}
new_context = new_context.contextWithVars(makeVars(context, token.map, bars));
}
r += ac(token.alternate.nodes, indentWith, bars, new_context || context);
}
var blockFunc = bars.blocks[token.name];
if (typeof blockFunc !== 'function') {
throw 'Bars Error: Missing Block helper: ' + token.name;
}
blockFunc(
token.arguments.map(function (expression) {
return execute(expression, bars.transforms, context);
}),
consequent,
alternate,
context
);
return r;
}
function ac(tokens, indentWith, bars, context) {
if (!tokens || tokens.length === 0) {
return '';
}
var r = '="';
for (var i = 0; i < tokens.length; i++) {
var token = tokens[i];
if (token.type === 'text') {
r += token.value;
} else if (token.type === 'insert') {
var val = execute(token.expression, bars.transforms, context);
r += val !== void(0) ? val : '';
} else if (token.type === 'block') {
r += abb(token, indentWith, bars, context);
}
}
r += '"';
return r;
}
function a(token, indentWith, bars, context) {
if (!token) return '';
var r = ' ';
r += token.name;
r += ac(token.nodes, indentWith, bars, context);
return r;
}
function hbb(token, indentWith, indent, bars, context) {
if (!token) return '';
var r = '';
function consequent(new_context) {
if (!token.consequent) return;
new_context = new_context || context;
if (token.as) {
new_context.applyAsExpression(token.as.vars);
}
new_context = new_context.contextWithVars(makeVars(context, token.map, bars));
r += hc(token.consequent.nodes, indentWith, indent, bars, new_context);
}
function alternate(new_context) {
if (!token.alternate) return;
if (new_context) {
if (token.as) {
new_context.applyAsExpression(token.as.vars);
}
new_context = new_context.contextWithVars(makeVars(context, token.map, bars));
}
r += hc(token.alternate.nodes, indentWith, indent, bars, new_context || context);
}
var blockFunc = bars.blocks[token.name];
if (typeof blockFunc !== 'function') {
throw 'Bars Error: Missing Block helper: ' + token.name;
}
blockFunc(
token.arguments.map(function (expression) {
return execute(expression, bars.transforms, context);
}),
consequent,
alternate,
context
);
return r;
}
function hbp(token, indentWith, indent, bars, context) {
if (!token) return '';
var name = token.name;
if (typeof token.name === 'object') {
name = execute(token.name, bars.transforms, context);
}
var partial = bars.partials[name];
if (!partial) {
throw 'Bars Error: Missing Partial: ' + name;
}
var newContext = context;
if (token.expression) {
newContext = newContext.newContext(
execute(token.expression, bars.transforms, newContext),
null,
null,
true
);
}
newContext = newContext.contextWithVars(makeVars(context, token.map, bars));
return hc(partial.fragment.nodes, indentWith, indent, bars, context);
}
function hc(tokens, indentWith, indent, bars, context) {
if (!tokens || tokens.length === 0) {
return '';
}
var val;
if (tokens.length === 1) {
if (tokens[0].type === 'text') {
return tokens[0].value;
} else if (tokens[0].type === 'insert') {
val = execute(tokens[0].expression, bars.transforms, context);
return val !== void(0) ? val : '';
}
}
var r = '\n';
for (var i = 0; i < tokens.length; i++) {
var token = tokens[i];
r += repeat(indentWith, indent + 1);
if (token.type === 'tag') {
r += h(token, indentWith, indent + 1, bars, context);
} else if (token.type === 'text') {
r += token.value;
} else if (token.type === 'insert') {
val = execute(token.expression, bars.transforms, context);
r += val !== void(0) ? val : '';
} else if (token.type === 'block') {
r += hbb(token, indentWith, indent, bars, context);
} else if (token.type === 'partial') {
r += hbp(token, indentWith, indent, bars, context);
}
}
r += repeat(indentWith, indent);
return r;
}
function h(token, indentWith, indent, bars, context) {
if (!token) return '';
var r = '';
r += '<' + token.name;
if (token.attrs) {
for (var i = 0; i < token.attrs.length; i++) {
r += a(token.attrs[i], indentWith, bars, context);
}
}
if (token.isSelfClosing || token.selfClosed) {
r += ' />';
} else {
r += '>';
r += hc(token.nodes, indentWith, indent, bars, context);
r += '</' + token.name + '>';
}
r += '\n';
return r;
}
function render(fragment, indentWith, bars, context) {
return hc(fragment.nodes, indentWith, -1, bars, context);
}
module.exports = render;
},{"../runtime/execute":26}],24:[function(require,module,exports){
var Generator = require('generate-js');
var ContextN = require('./runtime/context-n');
var renderV = require('./render/render');
var diff = require('virtual-dom/diff');
var patch = require('virtual-dom/patch');
var createElement = require('virtual-dom/create-element');
function repeat(a, n) {
n = n || 0;
var r = '';
for (var i = 0; i < n; i++) {
r += a;
}
return r;
}
var Renderer = Generator.generate(function Renderer(bars, struct, state) {
var _ = this;
_.bars = bars;
_.struct = struct;
_.tree = renderV(_.bars, _.struct, new ContextN(state || {}), true);
_.rootNode = createElement(_.tree);
});
Renderer.definePrototype({
update: function update(state) {
var _ = this;
var newTree = renderV(_.bars, _.struct, new ContextN(state));
var patches = diff(_.tree, newTree);
patch(_.rootNode, patches);
_.tree = newTree;
},
appendTo: function appendTo(el) {
var _ = this;
el.appendChild(_.rootNode);
}
});
module.exports = Renderer;
},{"./render/render":22,"./runtime/context-n":25,"generate-js":39,"virtual-dom/create-element":44,"virtual-dom/diff":45,"virtual-dom/patch":47}],25:[function(require,module,exports){
var Generator = require('generate-js');
var utils = require('compileit/lib/utils');
var Context = Generator.generate(
function Context(data, props, asExpression, context, cleanVars) {
var _ = this;
_.data = data;
_.props = props || {};
_.asExpression = asExpression || [];
_.context = context;
_.props._ = _;
if (cleanVars || !context) {
_.vars = Object.create(null);
} else {
_.vars = Object.create(context.vars);
_.props.vars = _.vars;
}
}
);
Context.definePrototype({
lookup: function lookup(path) {
var _ = this,
i = 0;
if (path[0] === '@') {
if (_.props) {
return _.props[path[1]];
} else {
return void(0);
}
}
if (
path[0] === 'this'
) {
return _.data;
}
if (_.vars && path[0] in _.vars) {
return _.vars[path[0]];
}
if (_.data === null || _.data === void(0)) {
console.warn('Bars Error: Cannot read property ' + path[0] + ' of ' + _.data);
}
return _.data ? _.data[path[0]] : void(0);
},
newContext: function newContext(data, props, asExpression, cleanVars) {
return new Context(data, props, asExpression, this, cleanVars);
},
contextWithVars: function contextWithVars(vars) {
var _ = this;
var context = new Context(_.data, _.props, _.asExpression, _);
context.setVars(vars);
return context;
},
setVars: function setVars(vars) {
var _ = this;
for (var v in vars) {
if (vars.hasOwnProperty(v)) {
_.vars[v] = vars[v];
}
}
},
applyAsExpression: function applyAsExpression(vars) {
var _ = this;
for (var i = 0; i < _.asExpression.length && i < vars.length; i++) {
_.vars[vars[i]] = _.asExpression[i];
}
}
});
module.exports = Context;
},{"compileit/lib/utils":37,"generate-js":39}],26:[function(require,module,exports){
var logic = require('./logic');
function execute(syntaxTree, transforms, context) {
function run(token) {
var result,
args = [];
// token.type === 'operator' ? console.log('>>>>', token) : void(0);
if (
token.type === 'literal'
) {
result = token.value;
} else if (
token.type === 'value'
) {
result = context.lookup(token.path);
} else if (
token.type === 'operator' &&
token.operands.length === 1
) {
result = logic[token.operator](
run(token.operands[0])
);
} else if (
token.type === 'operator' &&
token.operator === '?:'
) {
result = run(token.operands[0]) ?
run(token.operands[1]) :
run(token.operands[2]);
} else if (
token.type === 'operator' &&
token.operands.length === 2
) {
if (token.operator === '||') {
result = run(token.operands[0]) || run(token.operands[1]);
} else if (token.operator === '&&') {
result = run(token.operands[0]) && run(token.operands[1]);
} else {
result = logic[token.operator](
run(token.operands[0]),
run(token.operands[1])
);
}
} else if (
token.type === 'transform'
) {
for (var i = 0; i < token.arguments.length; i++) {
args.push(run(token.arguments[i]));
}
if (transforms[token.name] instanceof Function) {
result = transforms[token.name].apply(null, args);
} else {
throw 'Bars Error: Missing Transfrom: "' + token.name + '".';
}
}
// console.log('<<<<', result)
return result;
}
if (syntaxTree) {
return run(syntaxTree);
} else {
return context.lookup('this');
}
}
module.exports = execute;
},{"./logic":27}],27:[function(require,module,exports){
/*Look up*/
exports.lookup = function add(a, b) {
if (a === null || a === void(0)) {
console.warn('Bars Error: Cannot read property ' + b + ' of ' + a);
}
return a ? a[b] : void(0); // soft
// return a[b]; // hard
};
exports['.'] = exports.lookup;
/* Arithmetic */
exports.add = function add(a, b) {
return a + b;
};
exports.subtract = function subtract(a, b) {
return a - b;
};
exports.multiply = function multiply(a, b) {
return a * b;
};
exports.devide = function devide(a, b) {
return a / b;
};
exports.mod = function mod(a, b) {
return a % b;
};
exports['+'] = exports.add;
exports['-'] = exports.subtract;
exports['*'] = exports.multiply;
exports['/'] = exports.devide;
exports['%'] = exports.mod;
/* Logic */
exports.not = function not(a) {
return !a;
};
exports['!'] = exports.not;
exports.or = function or(a, b) {
return a || b;
};
exports.and = function and(a, b) {
return a && b;
};
exports['||'] = exports.or;
exports['&&'] = exports.and;
/* Comparison */
exports.strictequals = function strictequals(a, b) {
return a === b;
};
exports.strictnotequals = function strictnotequals(a, b) {
return a !== b;
};
exports['==='] = exports.strictequals;
exports['!=='] = exports.strictnotequals;
exports.equals = function equals(a, b) {
return a == b;
};
exports.notequals = function notequals(a, b) {
return a != b;
};
exports.ltequals = function ltequals(a, b) {
return a <= b;
};
exports.gtequals = function gtequals(a, b) {
return a >= b;
};
exports['=='] = exports.equals;
exports['!='] = exports.notequals;
exports['<='] = exports.ltequals;
exports['>='] = exports.gtequals;
exports.lt = function lt(a, b) {
return a < b;
};
exports.gt = function gt(a, b) {
return a > b;
};
exports['<'] = exports.lt;
exports['>'] = exports.gt;
},{}],28:[function(require,module,exports){
var Generator = require('generate-js');
var ContextN = require('./runtime/context-n');
var renderT = require('./render/text-renderer');
function repeat(a, n) {
n = n || 0;
var r = '';
for (var i = 0; i < n; i++) {
r += a;
}
return r;
}
var TextRenderer = Generator.generate(function TextRenderer(bars, struct, state) {
var _ = this;
_.bars = bars;
_.struct = struct;
});
TextRenderer.definePrototype({
render: function render(state, options) {
var _ = this;
options = options || {};
var indent = repeat(options.tabs ? '\t' : ' ', options.tabs ? 1 : options.indent);
return renderT(_.struct.fragment, indent, _.bars, new ContextN(state));
}
});
module.exports = TextRenderer;
},{"./render/text-renderer":23,"./runtime/context-n":25,"generate-js":39}],29:[function(require,module,exports){
var Generator = require('generate-js');
var Transform = Generator.generate(function Transform() {});
Transform.definePrototype({
log: function log() {
var args = Array.prototype.slice.call(arguments);
args.unshift('Bars:');
console.log.apply(console, args);
},
upperCase: function upperCase(a) {
return String(a)
.toUpperCase();
},
lowerCase: function lowerCase(a) {
return String(a)
.toLowerCase();
},
number: function number(a) {
return Number(a);
},
string: function string(a) {
return String(a);
},
reverse: function reverse(arr) {
return arr.slice()
.reverse();
},
slice: function (arr, start, end) {
return arr.slice(start, end);
},
map: function map(arr, prop) {
return arr.map(function (item) {
return arr[prop];
});
},
sort: function sort(arr, key) {
return arr.slice()
.sort(function (a, b) {
if (key) {
if (a[key] < b[key]) return -1;
if (a[key] > b[key]) return 1;
return 0;
}
if (a < b) return -1;
if (a > b) return 1;
return 0;
});
},
sum: function sum(arr, key) {
var sum = 0,
i;
if (key) {
for (i = 0; i < arr.length; i++) {
sum += arr[i][key];
}
} else {
for (i = 0; i < arr.length; i++) {
sum += arr[i];
}
}
return sum;
},
ave: function ave(arr, key) {
var sum = 0,
i;
if (key) {
for (i = 0; i < arr.length; i++) {
sum += arr[i][key];
}
} else {
for (i = 0; i < arr.length; i++) {
sum += arr[i];
}
}
return sum / arr.length;
}
});
module.exports = Transform;
},{"generate-js":39}],30:[function(require,module,exports){
},{}],31:[function(require,module,exports){
/*!
* Cross-Browser Split 1.1.1
* Copyright 2007-2012 Steven Levithan <stevenlevithan.com>
* Available under the MIT License
* ECMAScript compliant, uniform cross-browser split method
*/
/**
* Splits a string into an array of strings using a regex or string separator. Matches of the
* separator are not included in the result array. However, if `separator` is a regex that contains
* capturing groups, backreferences are spliced into the result each time `separator` is matched.
* Fixes browser bugs compared to the native `String.prototype.split` and can be used reliably
* cross-browser.
* @param {String} str String to split.
* @param {RegExp|String} separator Regex or string to use for separating the string.
* @param {Number} [limit] Maximum number of items to include in the result array.
* @returns {Array} Array of substrings.
* @example
*
* // Basic use
* split('a b c d', ' ');
* // -> ['a', 'b', 'c', 'd']
*
* // With limit
* split('a b c d', ' ', 2);
* // -> ['a', 'b']
*
* // Backreferences in result array
* split('..word1 word2..', /([a-z]+)(\d+)/i);
* // -> ['..', 'word', '1', ' ', 'word', '2', '..']
*/
module.exports = (function split(undef) {
var nativeSplit = String.prototype.split,
compliantExecNpcg = /()??/.exec("")[1] === undef,
// NPCG: nonparticipating capturing group
self;
self = function(str, separator, limit) {
// If `separator` is not a regex, use `nativeSplit`
if (Object.prototype.toString.call(separator) !== "[object RegExp]") {
return nativeSplit.call(str, separator, limit);
}
var output = [],
flags = (separator.ignoreCase ? "i" : "") + (separator.multiline ? "m" : "") + (separator.extended ? "x" : "") + // Proposed for ES6
(separator.sticky ? "y" : ""),
// Firefox 3+
lastLastIndex = 0,
// Make `global` and avoid `lastIndex` issues by working with a copy
separator = new RegExp(separator.source, flags + "g"),
separator2, match, lastIndex, lastLength;
str += ""; // Type-convert
if (!compliantExecNpcg) {
// Doesn't need flags gy, but they don't hurt
separator2 = new RegExp("^" + separator.source + "$(?!\\s)", flags);
}
/* Values for `limit`, per the spec:
* If undefined: 4294967295 // Math.pow(2, 32) - 1
* If 0, Infinity, or NaN: 0
* If positive number: limit = Math.floor(limit); if (limit > 4294967295) limit -= 4294967296;
* If negative number: 4294967296 - Math.floor(Math.abs(limit))
* If other: Type-convert, then use the above rules
*/
limit = limit === undef ? -1 >>> 0 : // Math.pow(2, 32) - 1
limit >>> 0; // ToUint32(limit)
while (match = separator.exec(str)) {
// `separator.lastIndex` is not reliable cross-browser
lastIndex = match.index + match[0].length;
if (lastIndex > lastLastIndex) {
output.push(str.slice(lastLastIndex, match.index));
// Fix browsers whose `exec` methods don't consistently return `undefined` for
// nonparticipating capturing groups
if (!compliantExecNpcg && match.length > 1) {
match[0].replace(separator2, function() {
for (var i = 1; i < arguments.length - 2; i++) {
if (arguments[i] === undef) {
match[i] = undef;
}
}
});
}
if (match.length > 1 && match.index < str.length) {
Array.prototype.push.apply(output, match.slice(1));
}
lastLength = match[0].length;
lastLastIndex = lastIndex;
if (output.length >= limit) {
break;
}
}
if (separator.lastIndex === match.index) {
separator.lastIndex++; // Avoid an infinite loop
}
}
if (lastLastIndex === str.length) {
if (lastLength || !separator.test("")) {
output.push("");
}
} else {
output.push(str.slice(lastLastIndex));
}
return output.length > limit ? output.slice(0, limit) : output;
};
return self;
})();
},{}],32:[function(require,module,exports){
exports.Compiler = require('./lib/compiler');
exports.Token = require('./lib/token');
},{"./lib/compiler":34,"./lib/token":36}],33:[function(require,module,exports){
var Generator = require('generate-js'),
utils = require('./utils');
var CodeBuffer = Generator.generate(
function CodeBuffer(str, file) {
var _ = this;
_.reset();
_._buffer = str;
_._file = file;
}
);
CodeBuffer.definePrototype({
reset: function reset() {
var _ = this;
_.line = 1;
_.column = 1;
_._index = 0;
_._currentLine = 0;
},
currentLine: {
get: function currentLine() {
var _ = this,
lineText = '',
i = _._currentLine;
while (i < _.length) {
lineText += _._buffer[i];
if (_._buffer.codePointAt(i) === 10) {
break;
}
i++;
}
return lineText;
}
},
buffer: {
get: function getBuffer() {
var _ = this;
return _._buffer;
}
},
index: {
get: function getIndex() {
var _ = this;
return _._index;
},
set: function setIndex(val) {
var _ = this,
i = _._index,
update = false;
val = Math.min(_.length, val);
val = Math.max(0, val);
if (i == val) return;
if (i > val) {
// throw new Error('========' + val + ' < ' +i+'=======');
_.reset();
i = _._index;
}
if (_.buffer.codePointAt(i) === 10) {
update = true;
i++;
}
for (; i <= val; i++) {
if (update) {
_._currentLine = i;
_.line++;
update = false;
} else {
_.column++;
}
if (_.buffer.codePointAt(i) === 10) {
update = true;
}
}
_.column = val - _._currentLine + 1;
_._index = val;
}
},
length: {
get: function getLength() {
var _ = this;
return _._buffer.length;
}
},
next: function next() {
var _ = this;
_.index++;
return _.charAt(_.index);
},
left: {
get: function getLeft() {
var _ = this;
return _._index < _.length;
}
},
charAt: function charAt(i) {
var _ = this;
return _._buffer[i] || 'EOF';
},
codePointAt: function codePointAt(i) {
var _ = this;
return _._buffer.codePointAt(i);
},
slice: function slice(startIndex, endIndex) {
var _ = this;
return _._buffer.slice(startIndex, endIndex);
},
makeError: function makeError(start, end, message) {
var _ = this;
utils.assertTypeError(start, 'number');
utils.assertTypeError(end, 'number');
utils.assertTypeError(message, 'string');
_.index = start;
var currentLine = _.currentLine,
tokenLength = end - start,
tokenIdentifier =
currentLine[currentLine.length - 1] === '\n' ? '' :
'\n',
i;
for (i = 1; i < _.column; i++) {
tokenIdentifier += ' ';
}
tokenLength = Math.min(
tokenLength,
currentLine.length - tokenIdentifier.length
) || 1;
for (i = 0; i < tokenLength; i++) {
tokenIdentifier += '^';
}
return 'Syntax Error: ' +
message +
' at ' +
(_._file ? _._file + ':' : '') +
_.line +
':' +
_.column +
'\n\n' +
currentLine +
tokenIdentifier +
'\n';
}
});
module.exports = CodeBuffer;
},{"./utils":37,"generate-js":39}],34:[function(require,module,exports){
var Generator = require('generate-js'),
Scope = require('./scope'),
Token = require('./token'),
CodeBuffer = require('./code-buffer'),
utils = require('./utils');
var Compiler = Generator.generate(
function Compiler(parseModes, formaters) {
var _ = this;
_.modeFormater = formaters.modeFormater || utils.varThrough;
_.charFormater = formaters.charFormater || utils.varThrough;
_.funcFormater = formaters.funcFormater || utils.varThrough;
_.typeFormater = formaters.typeFormater || utils.varThrough;
_.sourceFormater = formaters.sourceFormater || utils.varThrough;
_.parseModes = parseModes;
_.scope = new Scope();
}
);
Compiler.definePrototype({
compile: function compile(codeStr, file, mode, flags) {
var _ = this,
tokens = [];
_.codeBuffer = new CodeBuffer(codeStr, file);
_.scope.verbose = flags.verbose;
if (flags.verbose) {
_.scope.printScope();
}
_.parseMode(mode, tokens, flags);
if (flags.verbose) {
_.scope.printScope();
}
if (_.scope.length) {
throw _.codeBuffer.makeError(
'Unexpected End Of Input.'
);
}
return tokens;
},
parseMode: function parseMode(mode, tokens, flags) {
var _ = this,
scope = _.scope,
code = _.codeBuffer,
token,
parseFuncs = _.parseModes[mode],
index = code.index;
if (!parseFuncs) {
throw new Error('Mode not found: ' + JSON.stringify(
mode) + '.');
}
function newParseMode(mode, tokens, flags) {
_.parseMode(mode, tokens, flags);
}
newParseMode.close = function () {
this.closed = true;
};
loop: while (code.left) {
for (var i = 0; i < parseFuncs.length; i++) {
var parseFunc = parseFuncs[i];
if (flags.verbose) {
console.log(
utils.repeat(' ', scope.length +
1) +
_.modeFormater(mode) + ' ' +
_.funcFormater(parseFunc.name) +
'\n' +
utils.repeat(' ', scope.length +
1) +
utils.bufferSlice(code, 5, _.charFormater)
);
}
token = parseFunc(
mode,
code,
tokens,
flags,
scope,
newParseMode
);
if (token) {
if (token instanceof Token) {
tokens.push(token);
if (flags.verbose) {
console.log(
utils.repeat(' ', scope.length +
1) +
_.typeFormater(token.constructor
.name || token.type) +
': ' +
_.sourceFormater(token.source())
);
}
}
if (newParseMode.closed) {
delete newParseMode.closed;
break loop;
}
break;
}
}
if (newParseMode.closed) {
delete newParseMode.closed;
break loop;
}
if (index === code.index) {
token = new Token(code);
token.close(code);
token.value = token.source(code);
if (flags.noErrorOnILLEGAL) {
tokens.push(token);
} else {
throw code.makeError(
token.range[0],
token.range[1],
'ILLEGAL Token: ' +
JSON.stringify(
token.source(code)
)
.slice(1, -1)
);
}
}
index = code.index;
}
}
});
module.exports = Compiler;
},{"./code-buffer":33,"./scope":35,"./token":36,"./utils":37,"generate-js":39}],35:[function(require,module,exports){
var Generator = require('generate-js'),
Token = require('./token'),
utils = require('./utils');
var Scope = Generator.generate(
function Scope() {
var _ = this;
_.defineProperties({
_scope: []
});
}
);
Scope.definePrototype({
push: function push(token) {
var _ = this;
utils.assertError(Token.isCreation(token), 'Invalid Type.');
_._scope.push(token);
if (_.verbose) {
_.printScope();
}
return _._scope.length;
},
pop: function pop() {
var _ = this;
var token = _._scope.pop();
if (_.verbose) {
_.printScope();
}
return token;
},
close: function close() {
var _ = this;
var token = _._scope.pop();
token.close();
if (_.verbose) {
_.printScope();
}
return token;
},
printScope: function printScope() {
var _ = this;
console.log(
['Main'].concat(
_._scope
.map(function (item) {
return item.constructor.name ||
item.type;
})
)
.join(' => ')
);
},
token: {
get: function getToken() {
var _ = this;
return _._scope[_._scope.length - 1];
}
},
length: {
get: function getLength() {
var _ = this;
return _._scope.length;
}
}
});
module.exports = Scope;
},{"./token":36,"./utils":37,"generate-js":39}],36:[function(require,module,exports){
var Generator = require('generate-js'),
utils = require('./utils');
var Token = Generator.generate(
function Token(code, type) {
var _ = this;
_.defineProperties({
code: code
});
_.type = type;
_.range = [code.index, code.index + 1];
_.loc = {
start: {
line: code.line,
column: code.column
},
end: {
line: code.line,
column: code.column + 1
}
};
}
);
Token.definePrototype({
writable: true,
enumerable: true
}, {
type: 'ILLEGAL'
});
Token.definePrototype({
length: {
get: function getLength() {
return this.range[1] - this.range[0];
}
},
source: function source() {
var _ = this;
return _.code.slice(_.range[0], _.range[1]);
},
close: function close() {
var _ = this;
if (_.closed) {
throw new Error('Cannot call close on a closed token.');
}
_.closed = true;
if (_.code.index > _.range[1]) {
_.range[1] = _.code.index;
_.loc.end = {
line: _.code.line,
column: _.code.column
};
}
}
});
module.exports = Token;
},{"./utils":37,"generate-js":39}],37:[function(require,module,exports){
/**
* Assert Error function.
* @param {Boolean} condition Whether or not to throw error.
* @param {String} message Error message.
*/
function assertError(condition, message) {
if (!condition) {
throw new Error(message);
}
}
exports.assertError = assertError;
/**
* Assert TypeError function.
* @param {Boolean} condition Whether or not to throw error.
* @param {String} message Error message.
*/
function assertTypeError(test, type) {
if (typeof test !== type) {
throw new TypeError('Expected \'' + type +
'\' but instead found \'' +
typeof test + '\'');
}
}
exports.assertTypeError = assertTypeError;
/**
* Repeats a string `n` time.
* @param {String} str String to be repeated.
* @param {Number} n Number of times to repeat.
*/
function repeat(str, n) {
var result = '';
for (var i = 0; i < n; i++) {
result += str;
}
return result;
}
exports.repeat = repeat;
/**
* Returns whatever you pass it.
* @param {Any} a CodeBuffer to slice.
*/
function varThrough(a) {
return a;
}
exports.varThrough = varThrough;
/**
* Stringified CodeBuffer slice.
* @param {CodeBuffer} code CodeBuffer to slice.
* @param {Number} range Range to slice before and after `code.index`.
*/
function bufferSlice(code, range, format) {
format = format || varThrough;
return JSON.stringify(
code.slice(Math.max(0, code.index - range), code.index)
)
.slice(1, -1) +
format(
JSON.stringify(code.charAt(code.index) || 'EOF')
.slice(1, -1)
) +
JSON.stringify(
code.slice(
code.index + 1,
Math.min(code.length, code.index + 1 + range)
)
)
.slice(1, -1);
}
exports.bufferSlice = bufferSlice;
},{}],38:[function(require,module,exports){
'use strict';
var OneVersionConstraint = require('individual/one-version');
var MY_VERSION = '7';
OneVersionConstraint('ev-store', MY_VERSION);
var hashKey = '__EV_STORE_KEY@' + MY_VERSION;
module.exports = EvStore;
function EvStore(elem) {
var hash = elem[hashKey];
if (!hash) {
hash = elem[hashKey] = {};
}
return hash;
}
},{"individual/one-version":42}],39:[function(require,module,exports){
/**
* @name generate.js
* @author Michaelangelo Jong
*/
(function GeneratorScope() {
/**
* Assert Error function.
* @param {Boolean} condition Whether or not to throw error.
* @param {String} message Error message.
*/
function assertError(condition, message) {
if (!condition) {
throw new Error(message);
}
}
/**
* Assert TypeError function.
* @param {Boolean} condition Whether or not to throw error.
* @param {String} message Error message.
*/
function assertTypeError(test, type) {
if (typeof test !== type) {
throw new TypeError('Expected \'' + type +
'\' but instead found \'' +
typeof test + '\'');
}
}
/**
* Returns the name of function 'func'.
* @param {Function} func Any function.
* @return {String} Name of 'func'.
*/
function getFunctionName(func) {
if (func.name !== void(0)) {
return func.name;
}
// Else use IE Shim
var funcNameMatch = func.toString()
.match(/function\s*([^\s]*)\s*\(/);
func.name = (funcNameMatch && funcNameMatch[1]) || '';
return func.name;
}
/**
* Returns true if 'obj' is an object containing only get and set functions, false otherwise.
* @param {Any} obj Value to be tested.
* @return {Boolean} true or false.
*/
function isGetSet(obj) {
var keys, length;
if (obj && typeof obj === 'object') {
keys = Object.getOwnPropertyNames(obj)
.sort();
length = keys.length;
if ((length === 1 && (keys[0] === 'get' && typeof obj.get ===
'function' ||
keys[0] === 'set' && typeof obj.set === 'function'
)) ||
(length === 2 && (keys[0] === 'get' && typeof obj.get ===
'function' &&
keys[1] === 'set' && typeof obj.set === 'function'
))) {
return true;
}
}
return false;
}
/**
* Defines properties on 'obj'.
* @param {Object} obj An object that 'properties' will be attached to.
* @param {Object} descriptor Optional object descriptor that will be applied to all attaching properties on 'properties'.
* @param {Object} properties An object who's properties will be attached to 'obj'.
* @return {Generator} 'obj'.
*/
function defineObjectProperties(obj, descriptor, properties) {
var setProperties = {},
i,
keys,
length,
p = properties || descriptor,
d = properties && descriptor;
properties = (p && typeof p === 'object') ? p : {};
descriptor = (d && typeof d === 'object') ? d : {};
keys = Object.getOwnPropertyNames(properties);
length = keys.length;
for (i = 0; i < length; i++) {
if (isGetSet(properties[keys[i]])) {
setProperties[keys[i]] = {
configurable: !!descriptor.configurable,
enumerable: !!descriptor.enumerable,
get: properties[keys[i]].get,
set: properties[keys[i]].set
};
} else {
setProperties[keys[i]] = {
configurable: !!descriptor.configurable,
enumerable: !!descriptor.enumerable,
writable: !!descriptor.writable,
value: properties[keys[i]]
};
}
}
Object.defineProperties(obj, setProperties);
return obj;
}
var Creation = {
/**
* Defines properties on this object.
* @param {Object} descriptor Optional object descriptor that will be applied to all attaching properties.
* @param {Object} properties An object who's properties will be attached to this object.
* @return {Object} This object.
*/
defineProperties: function defineProperties(descriptor,
properties) {
defineObjectProperties(this, descriptor,
properties);
return this;
},
/**
* returns the prototype of `this` Creation.
* @return {Object} Prototype of `this` Creation.
*/
getProto: function getProto() {
return Object.getPrototypeOf(this);
},
/**
* returns the prototype of `this` super Creation.
* @return {Object} Prototype of `this` super Creation.
*/
getSuper: function getSuper() {
return Object.getPrototypeOf(this.constructor.prototype);
}
};
var Generation = {
/**
* Returns true if 'generator' was generated by this Generator.
* @param {Generator} generator A Generator.
* @return {Boolean} true or false.
*/
isGeneration: function isGeneration(generator) {
assertTypeError(generator, 'function');
var _ = this;
return _.prototype.isPrototypeOf(generator.prototype);
},
/**
* Returns true if 'object' was created by this Generator.
* @param {Object} object An Object.
* @return {Boolean} true or false.
*/
isCreation: function isCreation(object) {
var _ = this;
return object instanceof _;
},
/**
* Generates a new generator that inherits from `this` generator.
* @param {Generator} ParentGenerator Generator to inherit from.
* @param {Function} create Create method that gets called when creating a new instance of new generator.
* @return {Generator} New Generator that inherits from 'ParentGenerator'.
*/
generate: function generate(construct) {
assertTypeError(construct, 'function');
var _ = this;
defineObjectProperties(
construct, {
configurable: false,
enumerable: false,
writable: false
}, {
prototype: Object.create(_.prototype)
}
);
defineObjectProperties(
construct, {
configurable: false,
enumerable: false,
writable: false
},
Generation
);
defineObjectProperties(
construct.prototype, {
configurable: false,
enumerable: false,
writable: false
}, {
constructor: construct,
generator: construct,
}
);
return construct;
},
/**
* Defines shared properties for all objects created by this generator.
* @param {Object} descriptor Optional object descriptor that will be applied to all attaching properties.
* @param {Object} properties An object who's properties will be attached to this generator's prototype.
* @return {Generator} This generator.
*/
definePrototype: function definePrototype(descriptor,
properties) {
defineObjectProperties(this.prototype,
descriptor,
properties);
return this;
}
};
function Generator() {}
defineObjectProperties(
Generator, {
configurable: false,
enumerable: false,
writable: false
}, {
prototype: Generator.prototype
}
);
defineObjectProperties(
Generator.prototype, {
configurable: false,
enumerable: false,
writable: false
},
Creation
);
defineObjectProperties(
Generator, {
configurable: false,
enumerable: false,
writable: false
},
Generation
);
defineObjectProperties(
Generator, {
configurable: false,
enumerable: false,
writable: false
}, {
/**
* Returns true if 'generator' was generated by this Generator.
* @param {Generator} generator A Generator.
* @return {Boolean} true or false.
*/
isGenerator: function isGenerator(generator) {
return this.isGeneration(generator);
},
/**
* Generates a new generator that inherits from `this` generator.
* @param {Generator} extendFrom Constructor to inherit from.
* @param {Function} create Create method that gets called when creating a new instance of new generator.
* @return {Generator} New Generator that inherits from 'ParentGenerator'.
*/
toGenerator: function toGenerator(extendFrom, create) {
console.warn(
'Generator.toGenerator is depreciated please use Generator.generateFrom'
);
return this.generateFrom(extendFrom, create);
},
/**
* Generates a new generator that inherits from `this` generator.
* @param {Constructor} extendFrom Constructor to inherit from.
* @param {Function} create Create method that gets called when creating a new instance of new generator.
* @return {Generator} New Generator that inherits from 'ParentGenerator'.
*/
generateFrom: function generateFrom(extendFrom, create) {
assertTypeError(extendFrom, 'function');
assertTypeError(create, 'function');
defineObjectProperties(
create, {
configurable: false,
enumerable: false,
writable: false
}, {
prototype: Object.create(extendFrom.prototype),
}
);
defineObjectProperties(
create, {
configurable: false,
enumerable: false,
writable: false
},
Generation
);
defineObjectProperties(
create.prototype, {
configurable: false,
enumerable: false,
writable: false
}, {
constructor: create,
generator: create,
}
);
defineObjectProperties(
create.prototype, {
configurable: false,
enumerable: false,
writable: false
},
Creation
);
return create;
}
}
);
Object.freeze(Generator);
Object.freeze(Generator.prototype);
// Exports
if (typeof define === 'function' && define.amd) {
// AMD
define(function () {
return Generator;
});
} else if (typeof module === 'object' && typeof exports === 'object') {
// Node/CommonJS
module.exports = Generator;
} else {
// Browser global
window.Generator = Generator;
}
}());
},{}],40:[function(require,module,exports){
(function (global){
var topLevel = typeof global !== 'undefined' ? global :
typeof window !== 'undefined' ? window : {}
var minDoc = require('min-document');
if (typeof document !== 'undefined') {
module.exports = document;
} else {
var doccy = topLevel['__GLOBAL_DOCUMENT_CACHE@4'];
if (!doccy) {
doccy = topLevel['__GLOBAL_DOCUMENT_CACHE@4'] = minDoc;
}
module.exports = doccy;
}
}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
},{"min-document":30}],41:[function(require,module,exports){
(function (global){
'use strict';
/*global window, global*/
var root = typeof window !== 'undefined' ?
window : typeof global !== 'undefined' ?
global : {};
module.exports = Individual;
function Individual(key, value) {
if (key in root) {
return root[key];
}
root[key] = value;
return value;
}
}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
},{}],42:[function(require,module,exports){
'use strict';
var Individual = require('./index.js');
module.exports = OneVersion;
function OneVersion(moduleName, version, defaultValue) {
var key = '__INDIVIDUAL_ONE_VERSION_' + moduleName;
var enforceKey = key + '_ENFORCE_SINGLETON';
var versionValue = Individual(enforceKey, version);
if (versionValue !== version) {
throw new Error('Can only have one copy of ' +
moduleName + '.\n' +
'You already have version ' + versionValue +
' installed.\n' +
'This means you cannot install version ' + version);
}
return Individual(key, defaultValue);
}
},{"./index.js":41}],43:[function(require,module,exports){
"use strict";
module.exports = function isObject(x) {
return typeof x === "object" && x !== null;
};
},{}],44:[function(require,module,exports){
var createElement = require("./vdom/create-element.js")
module.exports = createElement
},{"./vdom/create-element.js":49}],45:[function(require,module,exports){
var diff = require("./vtree/diff.js")
module.exports = diff
},{"./vtree/diff.js":69}],46:[function(require,module,exports){
var h = require("./virtual-hyperscript/index.js")
module.exports = h
},{"./virtual-hyperscript/index.js":56}],47:[function(require,module,exports){
var patch = require("./vdom/patch.js")
module.exports = patch
},{"./vdom/patch.js":52}],48:[function(require,module,exports){
var isObject = require("is-object")
var isHook = require("../vnode/is-vhook.js")
module.exports = applyProperties
function applyProperties(node, props, previous) {
for (var propName in props) {
var propValue = props[propName]
if (propValue === undefined) {
removeProperty(node, propName, propValue, previous);
} else if (isHook(propValue)) {
removeProperty(node, propName, propValue, previous)
if (propValue.hook) {
propValue.hook(node,
propName,
previous ? previous[propName] : undefined)
}
} else {
if (isObject(propValue)) {
patchObject(node, props, previous, propName, propValue);
} else {
node[propName] = propValue
}
}
}
}
function removeProperty(node, propName, propValue, previous) {
if (previous) {
var previousValue = previous[propName]
if (!isHook(previousValue)) {
if (propName === "attributes") {
for (var attrName in previousValue) {
node.removeAttribute(attrName)
}
} else if (propName === "style") {
for (var i in previousValue) {
node.style[i] = ""
}
} else if (typeof previousValue === "string") {
node[propName] = ""
} else {
node[propName] = null
}
} else if (previousValue.unhook) {
previousValue.unhook(node, propName, propValue)
}
}
}
function patchObject(node, props, previous, propName, propValue) {
var previousValue = previous ? previous[propName] : undefined
// Set attributes
if (propName === "attributes") {
for (var attrName in propValue) {
var attrValue = propValue[attrName]
if (attrValue === undefined) {
node.removeAttribute(attrName)
} else {
node.setAttribute(attrName, attrValue)
}
}
return
}
if(previousValue && isObject(previousValue) &&
getPrototype(previousValue) !== getPrototype(propValue)) {
node[propName] = propValue
return
}
if (!isObject(node[propName])) {
node[propName] = {}
}
var replacer = propName === "style" ? "" : undefined
for (var k in propValue) {
var value = propValue[k]
node[propName][k] = (value === undefined) ? replacer : value
}
}
function getPrototype(value) {
if (Object.getPrototypeOf) {
return Object.getPrototypeOf(value)
} else if (value.__proto__) {
return value.__proto__
} else if (value.constructor) {
return value.constructor.prototype
}
}
},{"../vnode/is-vhook.js":60,"is-object":43}],49:[function(require,module,exports){
var document = require("global/document")
var applyProperties = require("./apply-properties")
var isVNode = require("../vnode/is-vnode.js")
var isVText = require("../vnode/is-vtext.js")
var isWidget = require("../vnode/is-widget.js")
var handleThunk = require("../vnode/handle-thunk.js")
module.exports = createElement
function createElement(vnode, opts) {
var doc = opts ? opts.document || document : document
var warn = opts ? opts.warn : null
vnode = handleThunk(vnode).a
if (isWidget(vnode)) {
return vnode.init()
} else if (isVText(vnode)) {
return doc.createTextNode(vnode.text)
} else if (!isVNode(vnode)) {
if (warn) {
warn("Item is not a valid virtual dom node", vnode)
}
return null
}
var node = (vnode.namespace === null) ?
doc.createElement(vnode.tagName) :
doc.createElementNS(vnode.namespace, vnode.tagName)
var props = vnode.properties
applyProperties(node, props)
var children = vnode.children
for (var i = 0; i < children.length; i++) {
var childNode = createElement(children[i], opts)
if (childNode) {
node.appendChild(childNode)
}
}
return node
}
},{"../vnode/handle-thunk.js":58,"../vnode/is-vnode.js":61,"../vnode/is-vtext.js":62,"../vnode/is-widget.js":63,"./apply-properties":48,"global/document":40}],50:[function(require,module,exports){
// Maps a virtual DOM tree onto a real DOM tree in an efficient manner.
// We don't want to read all of the DOM nodes in the tree so we use
// the in-order tree indexing to eliminate recursion down certain branches.
// We only recurse into a DOM node if we know that it contains a child of
// interest.
var noChild = {}
module.exports = domIndex
function domIndex(rootNode, tree, indices, nodes) {
if (!indices || indices.length === 0) {
return {}
} else {
indices.sort(ascending)
return recurse(rootNode, tree, indices, nodes, 0)
}
}
function recurse(rootNode, tree, indices, nodes, rootIndex) {
nodes = nodes || {}
if (rootNode) {
if (indexInRange(indices, rootIndex, rootIndex)) {
nodes[rootIndex] = rootNode
}
var vChildren = tree.children
if (vChildren) {
var childNodes = rootNode.childNodes
for (var i = 0; i < tree.children.length; i++) {
rootIndex += 1
var vChild = vChildren[i] || noChild
var nextIndex = rootIndex + (vChild.count || 0)
// skip recursion down the tree if there are no nodes down here
if (indexInRange(indices, rootIndex, nextIndex)) {
recurse(childNodes[i], vChild, indices, nodes, rootIndex)
}
rootIndex = nextIndex
}
}
}
return nodes
}
// Binary search for an index in the interval [left, right]
function indexInRange(indices, left, right) {
if (indices.length === 0) {
return false
}
var minIndex = 0
var maxIndex = indices.length - 1
var currentIndex
var currentItem
while (minIndex <= maxIndex) {
currentIndex = ((maxIndex + minIndex) / 2) >> 0
currentItem = indices[currentIndex]
if (minIndex === maxIndex) {
return currentItem >= left && currentItem <= right
} else if (currentItem < left) {
minIndex = currentIndex + 1
} else if (currentItem > right) {
maxIndex = currentIndex - 1
} else {
return true
}
}
return false;
}
function ascending(a, b) {
return a > b ? 1 : -1
}
},{}],51:[function(require,module,exports){
var applyProperties = require("./apply-properties")
var isWidget = require("../vnode/is-widget.js")
var VPatch = require("../vnode/vpatch.js")
var updateWidget = require("./update-widget")
module.exports = applyPatch
function applyPatch(vpatch, domNode, renderOptions) {
var type = vpatch.type
var vNode = vpatch.vNode
var patch = vpatch.patch
switch (type) {
case VPatch.REMOVE:
return removeNode(domNode, vNode)
case VPatch.INSERT:
return insertNode(domNode, patch, renderOptions)
case VPatch.VTEXT:
return stringPatch(domNode, vNode, patch, renderOptions)
case VPatch.WIDGET:
return widgetPatch(domNode, vNode, patch, renderOptions)
case VPatch.VNODE:
return vNodePatch(domNode, vNode, patch, renderOptions)
case VPatch.ORDER:
reorderChildren(domNode, patch)
return domNode
case VPatch.PROPS:
applyProperties(domNode, patch, vNode.properties)
return domNode
case VPatch.THUNK:
return replaceRoot(domNode,
renderOptions.patch(domNode, patch, renderOptions))
default:
return domNode
}
}
function removeNode(domNode, vNode) {
var parentNode = domNode.parentNode
if (parentNode) {
parentNode.removeChild(domNode)
}
destroyWidget(domNode, vNode);
return null
}
function insertNode(parentNode, vNode, renderOptions) {
var newNode = renderOptions.render(vNode, renderOptions)
if (parentNode) {
parentNode.appendChild(newNode)
}
return parentNode
}
function stringPatch(domNode, leftVNode, vText, renderOptions) {
var newNode
if (domNode.nodeType === 3) {
domNode.replaceData(0, domNode.length, vText.text)
newNode = domNode
} else {
var parentNode = domNode.parentNode
newNode = renderOptions.render(vText, renderOptions)
if (parentNode && newNode !== domNode) {
parentNode.replaceChild(newNode, domNode)
}
}
return newNode
}
function widgetPatch(domNode, leftVNode, widget, renderOptions) {
var updating = updateWidget(leftVNode, widget)
var newNode
if (updating) {
newNode = widget.update(leftVNode, domNode) || domNode
} else {
newNode = renderOptions.render(widget, renderOptions)
}
var parentNode = domNode.parentNode
if (parentNode && newNode !== domNode) {
parentNode.replaceChild(newNode, domNode)
}
if (!updating) {
destroyWidget(domNode, leftVNode)
}
return newNode
}
function vNodePatch(domNode, leftVNode, vNode, renderOptions) {
var parentNode = domNode.parentNode
var newNode = renderOptions.render(vNode, renderOptions)
if (parentNode && newNode !== domNode) {
parentNode.replaceChild(newNode, domNode)
}
return newNode
}
function destroyWidget(domNode, w) {
if (typeof w.destroy === "function" && isWidget(w)) {
w.destroy(domNode)
}
}
function reorderChildren(domNode, moves) {
var childNodes = domNode.childNodes
var keyMap = {}
var node
var remove
var insert
for (var i = 0; i < moves.removes.length; i++) {
remove = moves.removes[i]
node = childNodes[remove.from]
if (remove.key) {
keyMap[remove.key] = node
}
domNode.removeChild(node)
}
var length = childNodes.length
for (var j = 0; j < moves.inserts.length; j++) {
insert = moves.inserts[j]
node = keyMap[insert.key]
// this is the weirdest bug i've ever seen in webkit
domNode.insertBefore(node, insert.to >= length++ ? null : childNodes[insert.to])
}
}
function replaceRoot(oldRoot, newRoot) {
if (oldRoot && newRoot && oldRoot !== newRoot && oldRoot.parentNode) {
oldRoot.parentNode.replaceChild(newRoot, oldRoot)
}
return newRoot;
}
},{"../vnode/is-widget.js":63,"../vnode/vpatch.js":66,"./apply-properties":48,"./update-widget":53}],52:[function(require,module,exports){
var document = require("global/document")
var isArray = require("x-is-array")
var render = require("./create-element")
var domIndex = require("./dom-index")
var patchOp = require("./patch-op")
module.exports = patch
function patch(rootNode, patches, renderOptions) {
renderOptions = renderOptions || {}
renderOptions.patch = renderOptions.patch && renderOptions.patch !== patch
? renderOptions.patch
: patchRecursive
renderOptions.render = renderOptions.render || render
return renderOptions.patch(rootNode, patches, renderOptions)
}
function patchRecursive(rootNode, patches, renderOptions) {
var indices = patchIndices(patches)
if (indices.length === 0) {
return rootNode
}
var index = domIndex(rootNode, patches.a, indices)
var ownerDocument = rootNode.ownerDocument
if (!renderOptions.document && ownerDocument !== document) {
renderOptions.document = ownerDocument
}
for (var i = 0; i < indices.length; i++) {
var nodeIndex = indices[i]
rootNode = applyPatch(rootNode,
index[nodeIndex],
patches[nodeIndex],
renderOptions)
}
return rootNode
}
function applyPatch(rootNode, domNode, patchList, renderOptions) {
if (!domNode) {
return rootNode
}
var newNode
if (isArray(patchList)) {
for (var i = 0; i < patchList.length; i++) {
newNode = patchOp(patchList[i], domNode, renderOptions)
if (domNode === rootNode) {
rootNode = newNode
}
}
} else {
newNode = patchOp(patchList, domNode, renderOptions)
if (domNode === rootNode) {
rootNode = newNode
}
}
return rootNode
}
function patchIndices(patches) {
var indices = []
for (var key in patches) {
if (key !== "a") {
indices.push(Number(key))
}
}
return indices
}
},{"./create-element":49,"./dom-index":50,"./patch-op":51,"global/document":40,"x-is-array":70}],53:[function(require,module,exports){
var isWidget = require("../vnode/is-widget.js")
module.exports = updateWidget
function updateWidget(a, b) {
if (isWidget(a) && isWidget(b)) {
if ("name" in a && "name" in b) {
return a.id === b.id
} else {
return a.init === b.init
}
}
return false
}
},{"../vnode/is-widget.js":63}],54:[function(require,module,exports){
'use strict';
var EvStore = require('ev-store');
module.exports = EvHook;
function EvHook(value) {
if (!(this instanceof EvHook)) {
return new EvHook(value);
}
this.value = value;
}
EvHook.prototype.hook = function (node, propertyName) {
var es = EvStore(node);
var propName = propertyName.substr(3);
es[propName] = this.value;
};
EvHook.prototype.unhook = function(node, propertyName) {
var es = EvStore(node);
var propName = propertyName.substr(3);
es[propName] = undefined;
};
},{"ev-store":38}],55:[function(require,module,exports){
'use strict';
module.exports = SoftSetHook;
function SoftSetHook(value) {
if (!(this instanceof SoftSetHook)) {
return new SoftSetHook(value);
}
this.value = value;
}
SoftSetHook.prototype.hook = function (node, propertyName) {
if (node[propertyName] !== this.value) {
node[propertyName] = this.value;
}
};
},{}],56:[function(require,module,exports){
'use strict';
var isArray = require('x-is-array');
var VNode = require('../vnode/vnode.js');
var VText = require('../vnode/vtext.js');
var isVNode = require('../vnode/is-vnode');
var isVText = require('../vnode/is-vtext');
var isWidget = require('../vnode/is-widget');
var isHook = require('../vnode/is-vhook');
var isVThunk = require('../vnode/is-thunk');
var parseTag = require('./parse-tag.js');
var softSetHook = require('./hooks/soft-set-hook.js');
var evHook = require('./hooks/ev-hook.js');
module.exports = h;
function h(tagName, properties, children) {
var childNodes = [];
var tag, props, key, namespace;
if (!children && isChildren(properties)) {
children = properties;
props = {};
}
props = props || properties || {};
tag = parseTag(tagName, props);
// support keys
if (props.hasOwnProperty('key')) {
key = props.key;
props.key = undefined;
}
// support namespace
if (props.hasOwnProperty('namespace')) {
namespace = props.namespace;
props.namespace = undefined;
}
// fix cursor bug
if (tag === 'INPUT' &&
!namespace &&
props.hasOwnProperty('value') &&
props.value !== undefined &&
!isHook(props.value)
) {
props.value = softSetHook(props.value);
}
transformProperties(props);
if (children !== undefined && children !== null) {
addChild(children, childNodes, tag, props);
}
return new VNode(tag, props, childNodes, key, namespace);
}
function addChild(c, childNodes, tag, props) {
if (typeof c === 'string') {
childNodes.push(new VText(c));
} else if (typeof c === 'number') {
childNodes.push(new VText(String(c)));
} else if (isChild(c)) {
childNodes.push(c);
} else if (isArray(c)) {
for (var i = 0; i < c.length; i++) {
addChild(c[i], childNodes, tag, props);
}
} else if (c === null || c === undefined) {
return;
} else {
throw UnexpectedVirtualElement({
foreignObject: c,
parentVnode: {
tagName: tag,
properties: props
}
});
}
}
function transformProperties(props) {
for (var propName in props) {
if (props.hasOwnProperty(propName)) {
var value = props[propName];
if (isHook(value)) {
continue;
}
if (propName.substr(0, 3) === 'ev-') {
// add ev-foo support
props[propName] = evHook(value);
}
}
}
}
function isChild(x) {
return isVNode(x) || isVText(x) || isWidget(x) || isVThunk(x);
}
function isChildren(x) {
return typeof x === 'string' || isArray(x) || isChild(x);
}
function UnexpectedVirtualElement(data) {
var err = new Error();
err.type = 'virtual-hyperscript.unexpected.virtual-element';
err.message = 'Unexpected virtual child passed to h().\n' +
'Expected a VNode / Vthunk / VWidget / string but:\n' +
'got:\n' +
errorString(data.foreignObject) +
'.\n' +
'The parent vnode is:\n' +
errorString(data.parentVnode)
'\n' +
'Suggested fix: change your `h(..., [ ... ])` callsite.';
err.foreignObject = data.foreignObject;
err.parentVnode = data.parentVnode;
return err;
}
function errorString(obj) {
try {
return JSON.stringify(obj, null, ' ');
} catch (e) {
return String(obj);
}
}
},{"../vnode/is-thunk":59,"../vnode/is-vhook":60,"../vnode/is-vnode":61,"../vnode/is-vtext":62,"../vnode/is-widget":63,"../vnode/vnode.js":65,"../vnode/vtext.js":67,"./hooks/ev-hook.js":54,"./hooks/soft-set-hook.js":55,"./parse-tag.js":57,"x-is-array":70}],57:[function(require,module,exports){
'use strict';
var split = require('browser-split');
var classIdSplit = /([\.#]?[a-zA-Z0-9\u007F-\uFFFF_:-]+)/;
var notClassId = /^\.|#/;
module.exports = parseTag;
function parseTag(tag, props) {
if (!tag) {
return 'DIV';
}
var noId = !(props.hasOwnProperty('id'));
var tagParts = split(tag, classIdSplit);
var tagName = null;
if (notClassId.test(tagParts[1])) {
tagName = 'DIV';
}
var classes, part, type, i;
for (i = 0; i < tagParts.length; i++) {
part = tagParts[i];
if (!part) {
continue;
}
type = part.charAt(0);
if (!tagName) {
tagName = part;
} else if (type === '.') {
classes = classes || [];
classes.push(part.substring(1, part.length));
} else if (type === '#' && noId) {
props.id = part.substring(1, part.length);
}
}
if (classes) {
if (props.className) {
classes.push(props.className);
}
props.className = classes.join(' ');
}
return props.namespace ? tagName : tagName.toUpperCase();
}
},{"browser-split":31}],58:[function(require,module,exports){
var isVNode = require("./is-vnode")
var isVText = require("./is-vtext")
var isWidget = require("./is-widget")
var isThunk = require("./is-thunk")
module.exports = handleThunk
function handleThunk(a, b) {
var renderedA = a
var renderedB = b
if (isThunk(b)) {
renderedB = renderThunk(b, a)
}
if (isThunk(a)) {
renderedA = renderThunk(a, null)
}
return {
a: renderedA,
b: renderedB
}
}
function renderThunk(thunk, previous) {
var renderedThunk = thunk.vnode
if (!renderedThunk) {
renderedThunk = thunk.vnode = thunk.render(previous)
}
if (!(isVNode(renderedThunk) ||
isVText(renderedThunk) ||
isWidget(renderedThunk))) {
throw new Error("thunk did not return a valid node");
}
return renderedThunk
}
},{"./is-thunk":59,"./is-vnode":61,"./is-vtext":62,"./is-widget":63}],59:[function(require,module,exports){
module.exports = isThunk
function isThunk(t) {
return t && t.type === "Thunk"
}
},{}],60:[function(require,module,exports){
module.exports = isHook
function isHook(hook) {
return hook &&
(typeof hook.hook === "function" && !hook.hasOwnProperty("hook") ||
typeof hook.unhook === "function" && !hook.hasOwnProperty("unhook"))
}
},{}],61:[function(require,module,exports){
var version = require("./version")
module.exports = isVirtualNode
function isVirtualNode(x) {
return x && x.type === "VirtualNode" && x.version === version
}
},{"./version":64}],62:[function(require,module,exports){
var version = require("./version")
module.exports = isVirtualText
function isVirtualText(x) {
return x && x.type === "VirtualText" && x.version === version
}
},{"./version":64}],63:[function(require,module,exports){
module.exports = isWidget
function isWidget(w) {
return w && w.type === "Widget"
}
},{}],64:[function(require,module,exports){
module.exports = "2"
},{}],65:[function(require,module,exports){
var version = require("./version")
var isVNode = require("./is-vnode")
var isWidget = require("./is-widget")
var isThunk = require("./is-thunk")
var isVHook = require("./is-vhook")
module.exports = VirtualNode
var noProperties = {}
var noChildren = []
function VirtualNode(tagName, properties, children, key, namespace) {
this.tagName = tagName
this.properties = properties || noProperties
this.children = children || noChildren
this.key = key != null ? String(key) : undefined
this.namespace = (typeof namespace === "string") ? namespace : null
var count = (children && children.length) || 0
var descendants = 0
var hasWidgets = false
var hasThunks = false
var descendantHooks = false
var hooks
for (var propName in properties) {
if (properties.hasOwnProperty(propName)) {
var property = properties[propName]
if (isVHook(property) && property.unhook) {
if (!hooks) {
hooks = {}
}
hooks[propName] = property
}
}
}
for (var i = 0; i < count; i++) {
var child = children[i]
if (isVNode(child)) {
descendants += child.count || 0
if (!hasWidgets && child.hasWidgets) {
hasWidgets = true
}
if (!hasThunks && child.hasThunks) {
hasThunks = true
}
if (!descendantHooks && (child.hooks || child.descendantHooks)) {
descendantHooks = true
}
} else if (!hasWidgets && isWidget(child)) {
if (typeof child.destroy === "function") {
hasWidgets = true
}
} else if (!hasThunks && isThunk(child)) {
hasThunks = true;
}
}
this.count = count + descendants
this.hasWidgets = hasWidgets
this.hasThunks = hasThunks
this.hooks = hooks
this.descendantHooks = descendantHooks
}
VirtualNode.prototype.version = version
VirtualNode.prototype.type = "VirtualNode"
},{"./is-thunk":59,"./is-vhook":60,"./is-vnode":61,"./is-widget":63,"./version":64}],66:[function(require,module,exports){
var version = require("./version")
VirtualPatch.NONE = 0
VirtualPatch.VTEXT = 1
VirtualPatch.VNODE = 2
VirtualPatch.WIDGET = 3
VirtualPatch.PROPS = 4
VirtualPatch.ORDER = 5
VirtualPatch.INSERT = 6
VirtualPatch.REMOVE = 7
VirtualPatch.THUNK = 8
module.exports = VirtualPatch
function VirtualPatch(type, vNode, patch) {
this.type = Number(type)
this.vNode = vNode
this.patch = patch
}
VirtualPatch.prototype.version = version
VirtualPatch.prototype.type = "VirtualPatch"
},{"./version":64}],67:[function(require,module,exports){
var version = require("./version")
module.exports = VirtualText
function VirtualText(text) {
this.text = String(text)
}
VirtualText.prototype.version = version
VirtualText.prototype.type = "VirtualText"
},{"./version":64}],68:[function(require,module,exports){
var isObject = require("is-object")
var isHook = require("../vnode/is-vhook")
module.exports = diffProps
function diffProps(a, b) {
var diff
for (var aKey in a) {
if (!(aKey in b)) {
diff = diff || {}
diff[aKey] = undefined
}
var aValue = a[aKey]
var bValue = b[aKey]
if (aValue === bValue) {
continue
} else if (isObject(aValue) && isObject(bValue)) {
if (getPrototype(bValue) !== getPrototype(aValue)) {
diff = diff || {}
diff[aKey] = bValue
} else if (isHook(bValue)) {
diff = diff || {}
diff[aKey] = bValue
} else {
var objectDiff = diffProps(aValue, bValue)
if (objectDiff) {
diff = diff || {}
diff[aKey] = objectDiff
}
}
} else {
diff = diff || {}
diff[aKey] = bValue
}
}
for (var bKey in b) {
if (!(bKey in a)) {
diff = diff || {}
diff[bKey] = b[bKey]
}
}
return diff
}
function getPrototype(value) {
if (Object.getPrototypeOf) {
return Object.getPrototypeOf(value)
} else if (value.__proto__) {
return value.__proto__
} else if (value.constructor) {
return value.constructor.prototype
}
}
},{"../vnode/is-vhook":60,"is-object":43}],69:[function(require,module,exports){
var isArray = require("x-is-array")
var VPatch = require("../vnode/vpatch")
var isVNode = require("../vnode/is-vnode")
var isVText = require("../vnode/is-vtext")
var isWidget = require("../vnode/is-widget")
var isThunk = require("../vnode/is-thunk")
var handleThunk = require("../vnode/handle-thunk")
var diffProps = require("./diff-props")
module.exports = diff
function diff(a, b) {
var patch = { a: a }
walk(a, b, patch, 0)
return patch
}
function walk(a, b, patch, index) {
if (a === b) {
return
}
var apply = patch[index]
var applyClear = false
if (isThunk(a) || isThunk(b)) {
thunks(a, b, patch, index)
} else if (b == null) {
// If a is a widget we will add a remove patch for it
// Otherwise any child widgets/hooks must be destroyed.
// This prevents adding two remove patches for a widget.
if (!isWidget(a)) {
clearState(a, patch, index)
apply = patch[index]
}
apply = appendPatch(apply, new VPatch(VPatch.REMOVE, a, b))
} else if (isVNode(b)) {
if (isVNode(a)) {
if (a.tagName === b.tagName &&
a.namespace === b.namespace &&
a.key === b.key) {
var propsPatch = diffProps(a.properties, b.properties)
if (propsPatch) {
apply = appendPatch(apply,
new VPatch(VPatch.PROPS, a, propsPatch))
}
apply = diffChildren(a, b, patch, apply, index)
} else {
apply = appendPatch(apply, new VPatch(VPatch.VNODE, a, b))
applyClear = true
}
} else {
apply = appendPatch(apply, new VPatch(VPatch.VNODE, a, b))
applyClear = true
}
} else if (isVText(b)) {
if (!isVText(a)) {
apply = appendPatch(apply, new VPatch(VPatch.VTEXT, a, b))
applyClear = true
} else if (a.text !== b.text) {
apply = appendPatch(apply, new VPatch(VPatch.VTEXT, a, b))
}
} else if (isWidget(b)) {
if (!isWidget(a)) {
applyClear = true
}
apply = appendPatch(apply, new VPatch(VPatch.WIDGET, a, b))
}
if (apply) {
patch[index] = apply
}
if (applyClear) {
clearState(a, patch, index)
}
}
function diffChildren(a, b, patch, apply, index) {
var aChildren = a.children
var orderedSet = reorder(aChildren, b.children)
var bChildren = orderedSet.children
var aLen = aChildren.length
var bLen = bChildren.length
var len = aLen > bLen ? aLen : bLen
for (var i = 0; i < len; i++) {
var leftNode = aChildren[i]
var rightNode = bChildren[i]
index += 1
if (!leftNode) {
if (rightNode) {
// Excess nodes in b need to be added
apply = appendPatch(apply,
new VPatch(VPatch.INSERT, null, rightNode))
}
} else {
walk(leftNode, rightNode, patch, index)
}
if (isVNode(leftNode) && leftNode.count) {
index += leftNode.count
}
}
if (orderedSet.moves) {
// Reorder nodes last
apply = appendPatch(apply, new VPatch(
VPatch.ORDER,
a,
orderedSet.moves
))
}
return apply
}
function clearState(vNode, patch, index) {
// TODO: Make this a single walk, not two
unhook(vNode, patch, index)
destroyWidgets(vNode, patch, index)
}
// Patch records for all destroyed widgets must be added because we need
// a DOM node reference for the destroy function
function destroyWidgets(vNode, patch, index) {
if (isWidget(vNode)) {
if (typeof vNode.destroy === "function") {
patch[index] = appendPatch(
patch[index],
new VPatch(VPatch.REMOVE, vNode, null)
)
}
} else if (isVNode(vNode) && (vNode.hasWidgets || vNode.hasThunks)) {
var children = vNode.children
var len = children.length
for (var i = 0; i < len; i++) {
var child = children[i]
index += 1
destroyWidgets(child, patch, index)
if (isVNode(child) && child.count) {
index += child.count
}
}
} else if (isThunk(vNode)) {
thunks(vNode, null, patch, index)
}
}
// Create a sub-patch for thunks
function thunks(a, b, patch, index) {
var nodes = handleThunk(a, b)
var thunkPatch = diff(nodes.a, nodes.b)
if (hasPatches(thunkPatch)) {
patch[index] = new VPatch(VPatch.THUNK, null, thunkPatch)
}
}
function hasPatches(patch) {
for (var index in patch) {
if (index !== "a") {
return true
}
}
return false
}
// Execute hooks when two nodes are identical
function unhook(vNode, patch, index) {
if (isVNode(vNode)) {
if (vNode.hooks) {
patch[index] = appendPatch(
patch[index],
new VPatch(
VPatch.PROPS,
vNode,
undefinedKeys(vNode.hooks)
)
)
}
if (vNode.descendantHooks || vNode.hasThunks) {
var children = vNode.children
var len = children.length
for (var i = 0; i < len; i++) {
var child = children[i]
index += 1
unhook(child, patch, index)
if (isVNode(child) && child.count) {
index += child.count
}
}
}
} else if (isThunk(vNode)) {
thunks(vNode, null, patch, index)
}
}
function undefinedKeys(obj) {
var result = {}
for (var key in obj) {
result[key] = undefined
}
return result
}
// List diff, naive left to right reordering
function reorder(aChildren, bChildren) {
// O(M) time, O(M) memory
var bChildIndex = keyIndex(bChildren)
var bKeys = bChildIndex.keys
var bFree = bChildIndex.free
if (bFree.length === bChildren.length) {
return {
children: bChildren,
moves: null
}
}
// O(N) time, O(N) memory
var aChildIndex = keyIndex(aChildren)
var aKeys = aChildIndex.keys
var aFree = aChildIndex.free
if (aFree.length === aChildren.length) {
return {
children: bChildren,
moves: null
}
}
// O(MAX(N, M)) memory
var newChildren = []
var freeIndex = 0
var freeCount = bFree.length
var deletedItems = 0
// Iterate through a and match a node in b
// O(N) time,
for (var i = 0 ; i < aChildren.length; i++) {
var aItem = aChildren[i]
var itemIndex
if (aItem.key) {
if (bKeys.hasOwnProperty(aItem.key)) {
// Match up the old keys
itemIndex = bKeys[aItem.key]
newChildren.push(bChildren[itemIndex])
} else {
// Remove old keyed items
itemIndex = i - deletedItems++
newChildren.push(null)
}
} else {
// Match the item in a with the next free item in b
if (freeIndex < freeCount) {
itemIndex = bFree[freeIndex++]
newChildren.push(bChildren[itemIndex])
} else {
// There are no free items in b to match with
// the free items in a, so the extra free nodes
// are deleted.
itemIndex = i - deletedItems++
newChildren.push(null)
}
}
}
var lastFreeIndex = freeIndex >= bFree.length ?
bChildren.length :
bFree[freeIndex]
// Iterate through b and append any new keys
// O(M) time
for (var j = 0; j < bChildren.length; j++) {
var newItem = bChildren[j]
if (newItem.key) {
if (!aKeys.hasOwnProperty(newItem.key)) {
// Add any new keyed items
// We are adding new items to the end and then sorting them
// in place. In future we should insert new items in place.
newChildren.push(newItem)
}
} else if (j >= lastFreeIndex) {
// Add any leftover non-keyed items
newChildren.push(newItem)
}
}
var simulate = newChildren.slice()
var simulateIndex = 0
var removes = []
var inserts = []
var simulateItem
for (var k = 0; k < bChildren.length;) {
var wantedItem = bChildren[k]
simulateItem = simulate[simulateIndex]
// remove items
while (simulateItem === null && simulate.length) {
removes.push(remove(simulate, simulateIndex, null))
simulateItem = simulate[simulateIndex]
}
if (!simulateItem || simulateItem.key !== wantedItem.key) {
// if we need a key in this position...
if (wantedItem.key) {
if (simulateItem && simulateItem.key) {
// if an insert doesn't put this key in place, it needs to move
if (bKeys[simulateItem.key] !== k + 1) {
removes.push(remove(simulate, simulateIndex, simulateItem.key))
simulateItem = simulate[simulateIndex]
// if the remove didn't put the wanted item in place, we need to insert it
if (!simulateItem || simulateItem.key !== wantedItem.key) {
inserts.push({key: wantedItem.key, to: k})
}
// items are matching, so skip ahead
else {
simulateIndex++
}
}
else {
inserts.push({key: wantedItem.key, to: k})
}
}
else {
inserts.push({key: wantedItem.key, to: k})
}
k++
}
// a key in simulate has no matching wanted key, remove it
else if (simulateItem && simulateItem.key) {
removes.push(remove(simulate, simulateIndex, simulateItem.key))
}
}
else {
simulateIndex++
k++
}
}
// remove all the remaining nodes from simulate
while(simulateIndex < simulate.length) {
simulateItem = simulate[simulateIndex]
removes.push(remove(simulate, simulateIndex, simulateItem && simulateItem.key))
}
// If the only moves we have are deletes then we can just
// let the delete patch remove these items.
if (removes.length === deletedItems && !inserts.length) {
return {
children: newChildren,
moves: null
}
}
return {
children: newChildren,
moves: {
removes: removes,
inserts: inserts
}
}
}
function remove(arr, index, key) {
arr.splice(index, 1)
return {
from: index,
key: key
}
}
function keyIndex(children) {
var keys = {}
var free = []
var length = children.length
for (var i = 0; i < length; i++) {
var child = children[i]
if (child.key) {
keys[child.key] = i
} else {
free.push(i)
}
}
return {
keys: keys, // A hash of key name to index
free: free // An array of unkeyed item indices
}
}
function appendPatch(apply, patch) {
if (apply) {
if (isArray(apply)) {
apply.push(patch)
} else {
apply = [apply, patch]
}
return apply
} else {
return patch
}
}
},{"../vnode/handle-thunk":58,"../vnode/is-thunk":59,"../vnode/is-vnode":61,"../vnode/is-vtext":62,"../vnode/is-widget":63,"../vnode/vpatch":66,"./diff-props":68,"x-is-array":70}],70:[function(require,module,exports){
var nativeIsArray = Array.isArray
var toString = Object.prototype.toString
module.exports = nativeIsArray || isArray
function isArray(obj) {
return toString.call(obj) === "[object Array]"
}
},{}],71:[function(require,module,exports){
module.exports={
"name": "bars",
"version": "1.9.3",
"description": "Bars is a lightweight high performance HTML aware templating engine.",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/Mike96Angelo/Bars.git"
},
"keywords": [
"bars",
"render",
"renderer",
"rendering",
"template",
"templating",
"html"
],
"author": "Michaelangelo Jong",
"license": "MIT",
"bugs": {
"url": "https://github.com/Mike96Angelo/Bars/issues"
},
"homepage": "https://github.com/Mike96Angelo/Bars#readme",
"dependencies": {
"compileit": "^1.0.1",
"generate-js": "^3.1.2",
"jquery": "^3.1.1",
"source-map": "^0.5.6",
"virtual-dom": "^2.1.1"
},
"devDependencies": {
"browserify": "^13.1.1",
"colors": "^1.1.2",
"gulp": "^3.9.1",
"gulp-minify": "0.0.14",
"stringify": "^5.1.0",
"vinyl-buffer": "^1.0.0",
"vinyl-source-stream": "^1.1.0"
}
}
},{}]},{},[1])(1)
}); | 25.257831 | 844 | 0.525218 |
0223b92662f00b5463eb1343cf592beb4c715604 | 3,168 | js | JavaScript | js/sykepengesoknad/felleskomponenter/ett-sporsmal-per-side/EttSporsmalPerSide.js | navikt/sykepengesoknad | b5b07c7cee66b03e8ae0dc1d3245a0bd860bd000 | [
"MIT"
] | 1 | 2019-11-05T15:05:27.000Z | 2019-11-05T15:05:27.000Z | js/sykepengesoknad/felleskomponenter/ett-sporsmal-per-side/EttSporsmalPerSide.js | navikt/sykepengesoknad | b5b07c7cee66b03e8ae0dc1d3245a0bd860bd000 | [
"MIT"
] | 5 | 2019-05-28T16:40:46.000Z | 2020-06-29T12:38:52.000Z | js/sykepengesoknad/felleskomponenter/ett-sporsmal-per-side/EttSporsmalPerSide.js | navikt/sykepengesoknad | b5b07c7cee66b03e8ae0dc1d3245a0bd860bd000 | [
"MIT"
] | null | null | null | import React from 'react';
import PropTypes from 'prop-types';
import { sykmelding as sykmeldingPt } from '@navikt/digisyfo-npm';
import Soknadskjema from './Soknadskjema';
import { skjemasvar as skjemasvarPt, soknadMetaReducerPt, soknadPt } from '../../../propTypes/index';
import AppSpinner from '../../../components/AppSpinner';
import { erSisteSide, hentNokkel } from './ettSporsmalPerSideUtils';
import { SykepengesoknadArbeidstakerOppsummeringSkjema } from '../../soknad-arbeidstaker/oppsummering/Oppsummering';
import { ForDuBegynnerSkjema } from './ForDuBegynnerSkjema';
import { GenereltEttSporsmalPerSideSkjema } from './GenereltEttSporsmalPerSideSkjema';
import { ARBEIDSTAKERE, BEHANDLINGSDAGER } from '../../enums/soknadtyper';
import { SykepengesoknadSelvstendigOppsummeringSkjema } from '../../soknad-selvstendig-frilanser/oppsummering/SykepengesoknadSelvstendigOppsummeringSkjema';
import SoknadIntro from '../soknad-intro/SoknadIntro';
import { ARBEIDSSITUASJON_ARBEIDSTAKER } from '../../enums/arbeidssituasjon';
export const hentSporsmalsvisning = (soknad, sidenummer, sykmelding) => {
return erSisteSide(soknad, sidenummer)
? (
soknad.soknadstype === ARBEIDSTAKERE || (soknad.soknadstype === BEHANDLINGSDAGER && sykmelding.sporsmal.arbeidssituasjon === ARBEIDSSITUASJON_ARBEIDSTAKER)
? SykepengesoknadArbeidstakerOppsummeringSkjema
: SykepengesoknadSelvstendigOppsummeringSkjema
)
: sidenummer === 1
? ForDuBegynnerSkjema
: GenereltEttSporsmalPerSideSkjema;
};
const EttSporsmalPerSide = (props) => {
const { sykmelding, soknad, handleSubmit, actions, sidenummer, oppdaterer, skjemasvar, sendingFeilet, soknadMeta, sender } = props;
const Sporsmalsvisning = hentSporsmalsvisning(soknad, sidenummer, sykmelding);
const intro = sidenummer === 1 ? <SoknadIntro soknad={soknad} /> : null;
const scroll = sidenummer !== 1 && !erSisteSide(soknad, sidenummer);
const tittel = hentNokkel(soknad, sidenummer);
return (<Soknadskjema
scroll={scroll}
sidenummer={sidenummer}
tittel={tittel}
intro={intro}
soknad={soknad}>
{
oppdaterer
? <AppSpinner />
: <Sporsmalsvisning
soknad={soknad}
sykmelding={sykmelding}
handleSubmit={handleSubmit}
skjemasvar={skjemasvar}
sendingFeilet={sendingFeilet || soknadMeta.hentingFeilet}
sender={sender}
actions={actions}
sidenummer={sidenummer} />
}
</Soknadskjema>);
};
EttSporsmalPerSide.propTypes = {
sykmelding: sykmeldingPt,
soknad: soknadPt,
handleSubmit: PropTypes.func,
actions: PropTypes.shape({
lagreSoknad: PropTypes.func,
sendSoknad: PropTypes.func,
}),
sidenummer: PropTypes.number,
oppdaterer: PropTypes.bool,
skjemasvar: skjemasvarPt,
sendingFeilet: PropTypes.bool,
sender: PropTypes.bool,
soknadMeta: soknadMetaReducerPt,
};
export default EttSporsmalPerSide;
| 42.810811 | 167 | 0.678346 |
0224015ead222a5c795a08e1efd4f7717594925e | 776 | js | JavaScript | app/components/Adviser/AcademyProgList.js | toolbuddy/WeboGen | b89690d88d3dc6a87b1dbb63a6bcf3d0648712a6 | [
"MIT"
] | null | null | null | app/components/Adviser/AcademyProgList.js | toolbuddy/WeboGen | b89690d88d3dc6a87b1dbb63a6bcf3d0648712a6 | [
"MIT"
] | 1 | 2017-11-28T05:49:26.000Z | 2017-11-28T05:49:26.000Z | app/components/Adviser/AcademyProgList.js | toolbuddy/WeboGen | b89690d88d3dc6a87b1dbb63a6bcf3d0648712a6 | [
"MIT"
] | null | null | null | /* Import modules */
import React from 'react';
/* Import Semantic-UI React components */
import { List } from 'semantic-ui-react';
/**
* @class AcademyProgList
* @extends {React.Component}
*/
class AcademyProgList extends React.Component {
constructor(props) {
super(props);
this.onChange = this.onChange.bind(this);
}
onChange(state) {
this.setState(state);
}
render() {
let dataArr = this.props.prog;
return (
<List bulleted horizontal selection>
{
dataArr.map(function(item, i) {
return <List.Item>{ item }</List.Item>
})
}
</List>
);
}
}
export default AcademyProgList; | 21.555556 | 62 | 0.528351 |
022437632ddf13c5d93d2c54dbd21c98d7d5e588 | 2,663 | js | JavaScript | wp-content/plugins/woocommerce-admin/dist/wp-admin-scripts/onboarding-product-notice.min.js | presslabs/stack-demo | 3f7548e6c7374b0b9cbceaafc531efc69668fac2 | [
"MIT"
] | 3 | 2020-11-30T12:54:27.000Z | 2021-05-31T15:00:51.000Z | wp-content/plugins/woocommerce-admin/dist/wp-admin-scripts/onboarding-product-notice.min.js | presslabs/stack-demo | 3f7548e6c7374b0b9cbceaafc531efc69668fac2 | [
"MIT"
] | 3 | 2021-12-02T12:11:21.000Z | 2022-01-07T08:50:15.000Z | wp-content/plugins/woocommerce-admin/dist/wp-admin-scripts/onboarding-product-notice.min.js | presslabs/stack-demo | 3f7548e6c7374b0b9cbceaafc531efc69668fac2 | [
"MIT"
] | 14 | 2019-08-28T13:24:23.000Z | 2021-07-05T15:16:26.000Z | this.wc=this.wc||{},this.wc.onboardingProductNotice=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=458)}({13:function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return a})),n.d(t,"f",(function(){return f})),n.d(t,"g",(function(){return l})),n.d(t,"e",(function(){return p})),n.d(t,"d",(function(){return b}));var r=n(2);const o=["wcAdminSettings","preloadSettings"],c="object"==typeof wcSettings?wcSettings:{},i=Object.keys(c).reduce((e,t)=>(o.includes(t)||(e[t]=c[t]),e),{});Object.keys(c.admin||{}).forEach(e=>{o.includes(e)||(i[e]=c.admin[e])});const u=i.adminUrl,d=(i.countries,i.currency),s=i.locale,a=i.orderStatuses;i.siteTitle,i.wcAssetUrl;function f(e,t=!1,n=(e=>e)){if(o.includes(e))throw new Error(Object(r.__)("Mutable settings should be accessed via data store."));return n(i.hasOwnProperty(e)?i[e]:t,t)}function l(e,t,n=(e=>e)){if(o.includes(e))throw new Error(Object(r.__)("Mutable settings should be mutated via data store."));i[e]=n(t)}function p(e){return(u||"")+e}function b(e){return new Promise((t,n)=>{document.querySelector(`#${e.handle}-js`)&&t();const r=document.createElement("script");r.src=e.src,r.id=e.handle+"-js",r.async=!0,r.onload=t,r.onerror=n,document.body.appendChild(r)})}},2:function(e,t){e.exports=window.wp.i18n},458:function(e,t,n){"use strict";n.r(t);var r=n(2),o=n(7),c=n(51),i=n.n(c),u=n(13);i()(()=>{Object(o.dispatch)("core/notices").createSuccessNotice(Object(r.__)("🎉 Congrats on adding your first product!","woocommerce-admin"),{id:"WOOCOMMERCE_ONBOARDING_PRODUCT_NOTICE",actions:[{url:Object(u.e)("admin.php?page=wc-admin"),label:Object(r.__)("Continue setup.","woocommerce-admin")}]})})},51:function(e,t){e.exports=window.wp.domReady},7:function(e,t){e.exports=window.wp.data}}); | 2,663 | 2,663 | 0.68344 |
02243d5f8592c48b546d39740659e7482a0d18c7 | 957,757 | js | JavaScript | public/static/bundle/libs.js | HongCaiJin/node-bitcoin | 795377051e86c19332140c8b83e0b2d1ae4b42f3 | [
"MIT"
] | null | null | null | public/static/bundle/libs.js | HongCaiJin/node-bitcoin | 795377051e86c19332140c8b83e0b2d1ae4b42f3 | [
"MIT"
] | null | null | null | public/static/bundle/libs.js | HongCaiJin/node-bitcoin | 795377051e86c19332140c8b83e0b2d1ae4b42f3 | [
"MIT"
] | 1 | 2018-12-11T12:33:52.000Z | 2018-12-11T12:33:52.000Z | !function(e){var t=window.webpackJsonp;window.webpackJsonp=function(r,o,a){for(var s,f,c,u=0,h=[];u<r.length;u++)f=r[u],n[f]&&h.push(n[f][0]),n[f]=0;for(s in o)Object.prototype.hasOwnProperty.call(o,s)&&(e[s]=o[s]);for(t&&t(r,o,a);h.length;)h.shift()();if(a)for(u=0;u<a.length;u++)c=i(i.s=a[u]);return c};var r={},n={1:0};function i(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,i),n.l=!0,n.exports}i.m=e,i.c=r,i.d=function(e,t,r){i.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="/static/bundle/",i.oe=function(e){throw console.error(e),e}}([function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){r.d(t,"version",function(){return a}),r.d(t,"DOM",function(){return k}),r.d(t,"Children",function(){return A}),r.d(t,"render",function(){return m}),r.d(t,"createClass",function(){return j}),r.d(t,"createFactory",function(){return I}),r.d(t,"createElement",function(){return O}),r.d(t,"cloneElement",function(){return M}),r.d(t,"isValidElement",function(){return N}),r.d(t,"findDOMNode",function(){return R}),r.d(t,"unmountComponentAtNode",function(){return _}),r.d(t,"Component",function(){return K}),r.d(t,"PureComponent",function(){return V}),r.d(t,"unstable_renderSubtreeIntoContainer",function(){return w});var n=r(126),i=r.n(n),o=r(230);r.n(o);r.d(t,"PropTypes",function(){return i.a});var a="15.1.0",s="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 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 g image line linearGradient mask path pattern polygon polyline radialGradient rect stop svg text tspan".split(" "),f="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,c="undefined"!=typeof Symbol?Symbol.for("__preactCompatWrapper"):"__preactCompatWrapper",u={constructor:1,render:1,shouldComponentUpdate:1,componentWillReceiveProps:1,componentWillUpdate:1,componentDidUpdate:1,componentWillMount:1,componentDidMount:1,componentWillUnmount:1,componentDidUnmount:1},h=/^(?:accent|alignment|arabic|baseline|cap|clip|color|fill|flood|font|glyph|horiz|marker|overline|paint|stop|strikethrough|stroke|text|underline|unicode|units|v|vert|word|writing|x)[A-Z]/,d={},l=void 0===e||!Object({NODE_ENV:"production"})||!1;function p(){return null}var b=Object(o.h)("a",null).constructor;b.prototype.$$typeof=f,b.prototype.preactCompatUpgraded=!1,b.prototype.preactCompatNormalized=!1,Object.defineProperty(b.prototype,"type",{get:function(){return this.nodeName},set:function(e){this.nodeName=e},configurable:!0}),Object.defineProperty(b.prototype,"props",{get:function(){return this.attributes},set:function(e){this.attributes=e},configurable:!0});var v=o.options.event;o.options.event=function(e){return v&&(e=v(e)),e.persist=Object,e.nativeEvent=e,e};var y=o.options.vnode;function m(e,t,r){var n=t&&t._preactCompatRendered&&t._preactCompatRendered.base;n&&n.parentNode!==t&&(n=null),n||(n=t.children[0]);for(var i=t.childNodes.length;i--;)t.childNodes[i]!==n&&t.removeChild(t.childNodes[i]);var a=Object(o.render)(e,t,n);return t&&(t._preactCompatRendered=a&&(a._component||{base:a})),"function"==typeof r&&r(),a&&a._component||a}o.options.vnode=function(e){if(!e.preactCompatUpgraded){e.preactCompatUpgraded=!0;var t=e.nodeName,r=e.attributes=B({},e.attributes);"function"==typeof t?(!0===t[c]||t.prototype&&"isReactComponent"in t.prototype)&&(e.children&&""===String(e.children)&&(e.children=void 0),e.children&&(r.children=e.children),e.preactCompatNormalized||T(e),function(e){var t=e.nodeName,r=e.attributes;e.attributes={},t.defaultProps&&B(e.attributes,t.defaultProps);r&&B(e.attributes,r)}(e)):(e.children&&""===String(e.children)&&(e.children=void 0),e.children&&(r.children=e.children),r.defaultValue&&(r.value||0===r.value||(r.value=r.defaultValue),delete r.defaultValue),function(e,t){var r,n,i;if(t){for(i in t)if(r=h.test(i))break;if(r)for(i in n=e.attributes={},t)t.hasOwnProperty(i)&&(n[h.test(i)?i.replace(/([A-Z0-9])/,"-$1").toLowerCase():i]=t[i])}}(e,r))}y&&y(e)};var g=function(){};function w(e,t,r,n){var i=m(Object(o.h)(g,{context:e.context},t),r);return n&&n(i),i._component||i.base}function _(e){var t=e._preactCompatRendered&&e._preactCompatRendered.base;return!(!t||t.parentNode!==e)&&(Object(o.render)(Object(o.h)(p),e,t),!0)}g.prototype.getChildContext=function(){return this.props.context},g.prototype.render=function(e){return e.children[0]};var E,S=[],A={map:function(e,t,r){return null==e?null:(e=A.toArray(e),r&&r!==e&&(t=t.bind(r)),e.map(t))},forEach:function(e,t,r){if(null==e)return null;e=A.toArray(e),r&&r!==e&&(t=t.bind(r)),e.forEach(t)},count:function(e){return e&&e.length||0},only:function(e){if(1!==(e=A.toArray(e)).length)throw new Error("Children.only() expects only one child.");return e[0]},toArray:function(e){return null==e?[]:Array.isArray&&Array.isArray(e)?e:S.concat(e)}};function I(e){return O.bind(null,e)}for(var k={},x=s.length;x--;)k[s[x]]=I(s[x]);function P(e){var t,r=e[c];return r?!0===r?e:r:(r=j({displayName:(t=e).displayName||t.name,render:function(){return t(this.props,this.context)}}),Object.defineProperty(r,c,{configurable:!0,value:!0}),r.displayName=e.displayName,r.propTypes=e.propTypes,r.defaultProps=e.defaultProps,Object.defineProperty(e,c,{configurable:!0,value:r}),r)}function O(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return function e(t,r){for(var n=r||0;n<t.length;n++){var i=t[n];Array.isArray(i)?e(i):i&&"object"==typeof i&&!N(i)&&(i.props&&i.type||i.attributes&&i.nodeName||i.children)&&(t[n]=O(i.type||i.nodeName,i.props||i.attributes,i.children))}}(e,2),T(o.h.apply(void 0,e))}function T(e){var t;e.preactCompatNormalized=!0,function(e){var t=e.attributes;if(!t)return;var r=t.className||t.class;r&&(t.className=r)}(e),"function"!=typeof(t=e.nodeName)||t.prototype&&t.prototype.render||(e.nodeName=P(e.nodeName));var r,n,i=e.attributes.ref,o=i&&typeof i;return!E||"string"!==o&&"number"!==o||(e.attributes.ref=(r=i,(n=E)._refProxies[r]||(n._refProxies[r]=function(e){n&&n.refs&&(n.refs[r]=e,null===e&&(delete n._refProxies[r],n=null))}))),function(e){var t=e.nodeName,r=e.attributes;if(!r||"string"!=typeof t)return;var n={};for(var i in r)n[i.toLowerCase()]=i;n.ondoubleclick&&(r.ondblclick=r[n.ondoubleclick],delete r[n.ondoubleclick]);if(n.onchange&&("textarea"===t||"input"===t.toLowerCase()&&!/^fil|che|rad/i.test(r.type))){var o=n.oninput||"oninput";r[o]||(r[o]=D([r[o],r[n.onchange]]),delete r[n.onchange])}}(e),e}function M(e,t){for(var r=[],n=arguments.length-2;n-- >0;)r[n]=arguments[n+2];if(!N(e))return e;var i=e.attributes||e.props,a=[Object(o.h)(e.nodeName||e.type,i,e.children||i&&i.children),t];return r&&r.length?a.push(r):t&&t.children&&a.push(t.children),T(o.cloneElement.apply(void 0,a))}function N(e){return e&&(e instanceof b||e.$$typeof===f)}function B(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);return e}function C(e,t){for(var r in e)if(!(r in t))return!0;for(var n in t)if(e[n]!==t[n])return!0;return!1}function R(e){return e&&e.base||e}function L(){}function j(e){function t(e,t){!function(e){for(var t in e){var r=e[t];"function"!=typeof r||r.__bound||u.hasOwnProperty(t)||((e[t]=r.bind(e)).__bound=!0)}}(this),K.call(this,e,t,d),F.call(this,e,t)}return(e=B({constructor:t},e)).mixins&&function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=D(t[r].concat(e[r]||S),"getDefaultProps"===r||"getInitialState"===r||"getChildContext"===r))}(e,function(e){for(var t={},r=0;r<e.length;r++){var n=e[r];for(var i in n)n.hasOwnProperty(i)&&"function"==typeof n[i]&&(t[i]||(t[i]=[])).push(n[i])}return t}(e.mixins)),e.statics&&B(t,e.statics),e.propTypes&&(t.propTypes=e.propTypes),e.defaultProps&&(t.defaultProps=e.defaultProps),e.getDefaultProps&&(t.defaultProps=e.getDefaultProps()),L.prototype=K.prototype,t.prototype=B(new L,e),t.displayName=e.displayName||"Component",t}function U(e,t,r){if("string"==typeof t&&(t=e.constructor.prototype[t]),"function"==typeof t)return t.apply(e,r)}function D(e,t){return function(){for(var r,n=arguments,i=0;i<e.length;i++){var o=U(this,e[i],n);if(t&&null!=o)for(var a in r||(r={}),o)o.hasOwnProperty(a)&&(r[a]=o[a]);else void 0!==o&&(r=o)}return r}}function F(e,t){z.call(this,e,t),this.componentWillReceiveProps=D([z,this.componentWillReceiveProps||"componentWillReceiveProps"]),this.render=D([z,q,this.render||"render",H])}function z(e,t){if(e){var r=e.children;if(r&&Array.isArray(r)&&1===r.length&&(e.children=r[0],e.children&&"object"==typeof e.children&&(e.children.length=1,e.children[0]=e.children)),l){var n="function"==typeof this?this:this.constructor,o=this.propTypes||n.propTypes,a=this.displayName||n.name;o&&i.a.checkPropTypes(o,e,"prop",a)}}}function q(e){E=this}function H(){E===this&&(E=null)}function K(e,t,r){o.Component.call(this,e,t),this.state=this.getInitialState?this.getInitialState():{},this.refs={},this._refProxies={},r!==d&&F.call(this,e,t)}function V(e,t){K.call(this,e,t)}B(K.prototype=new o.Component,{constructor:K,isReactComponent:{},replaceState:function(e,t){for(var r in this.setState(e,t),this.state)r in e||delete this.state[r]},getDOMNode:function(){return this.base},isMounted:function(){return!!this.base}}),L.prototype=K.prototype,V.prototype=new L,V.prototype.shouldComponentUpdate=function(e,t){return C(this.props,e)||C(this.state,t)};var G={version:a,DOM:k,PropTypes:i.a,Children:A,render:m,createClass:j,createFactory:I,createElement:O,cloneElement:M,isValidElement:N,findDOMNode:R,unmountComponentAtNode:_,Component:K,PureComponent:V,unstable_renderSubtreeIntoContainer:w};t.default=G}.call(t,r(32))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r.d(t,"css",function(){return I}),r.d(t,"keyframes",function(){return we}),r.d(t,"injectGlobal",function(){return _e}),r.d(t,"ThemeProvider",function(){return fe}),r.d(t,"withTheme",function(){return ve}),r.d(t,"ServerStyleSheet",function(){return V}),r.d(t,"StyleSheetManager",function(){return H});var n=r(232),i=r.n(n),o=r(234),a=r.n(o),s=r(0),f=r(126),c=r.n(f),u=r(235),h=r.n(u),d=r(236),l=r.n(d),p=/([A-Z])/g;var b=function(e){return e.replace(p,"-$1").toLowerCase()},v=/^ms-/;var y,m=function(e){return b(e).replace(v,"-ms-")},g=function e(t,r){return t.reduce(function(t,n){return void 0===n||null===n||!1===n||""===n?t:Array.isArray(n)?[].concat(t,e(n,r)):n.hasOwnProperty("styledComponentId")?[].concat(t,["."+n.styledComponentId]):"function"==typeof n?r?t.concat.apply(t,e([n(r)],r)):t.concat(n):t.concat(i()(n)?function e(t,r){var n=Object.keys(t).map(function(r){return i()(t[r])?e(t[r],r):m(r)+": "+t[r]+";"}).join(" ");return r?r+" {\n "+n+"\n}":n}(n):n.toString())},[])},w=new a.a({global:!1,cascade:!0,keyframe:!1,prefix:!0,compress:!1,semicolon:!0}),_=function(e,t,r){var n=e.join("").replace(/^\s*\/\/.*$/gm,"");return w(r||!t?"":t,t&&r?r+" "+t+" { "+n+" }":n)},E="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""),S=E.length,A=function(e){var t="",r=void 0;for(r=e;r>S;r=Math.floor(r/S))t=E[r%S]+t;return E[r%S]+t},I=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return g(function(e,t){return t.reduce(function(t,r,n){return t.concat(r,e[n+1])},[e[0]])}(e,r))},k=/^[^\S\n]*?\/\* sc-component-id:\s+(\S+)\s+\*\//gm,x=function(e){var t=""+(e||""),r=[];return t.replace(k,function(e,t,n){return r.push({componentId:t,matchIndex:n}),e}),r.map(function(e,n){var i=e.componentId,o=e.matchIndex,a=r[n+1];return{componentId:i,cssFromDOM:a?t.slice(o,a.matchIndex):t.slice(o)}})},P=function(){return r.nc},O=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},T=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),M=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},N=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)},B=function(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r},C=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},R=function(){function e(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";O(this,e),this.el=t,this.isLocal=r,this.ready=!1;var i=x(n);this.size=i.length,this.components=i.reduce(function(e,t){return e[t.componentId]=t,e},{})}return e.prototype.isFull=function(){return this.size>=40},e.prototype.addComponent=function(e){if(this.ready||this.replaceElement(),this.components[e])throw new Error("Trying to add Component '"+e+"' twice!");var t={componentId:e,textNode:document.createTextNode("")};this.el.appendChild(t.textNode),this.size+=1,this.components[e]=t},e.prototype.inject=function(e,t,r){this.ready||this.replaceElement();var n=this.components[e];if(!n)throw new Error("Must add a new component before you can inject css into it");if(""===n.textNode.data&&n.textNode.appendData("\n/* sc-component-id: "+e+" */\n"),n.textNode.appendData(t),r){var i=this.el.getAttribute(j);this.el.setAttribute(j,i?i+" "+r:r)}var o=P();o&&this.el.setAttribute("nonce",o)},e.prototype.toHTML=function(){return this.el.outerHTML},e.prototype.toReactElement=function(){throw new Error("BrowserTag doesn't implement toReactElement!")},e.prototype.clone=function(){throw new Error("BrowserTag cannot be cloned!")},e.prototype.replaceElement=function(){var e=this;if(this.ready=!0,0!==this.size){var t=this.el.cloneNode();if(t.appendChild(document.createTextNode("\n")),Object.keys(this.components).forEach(function(r){var n=e.components[r];n.textNode=document.createTextNode(n.cssFromDOM),t.appendChild(n.textNode)}),!this.el.parentNode)throw new Error("Trying to replace an element that wasn't mounted!");this.el.parentNode.replaceChild(t,this.el),this.el=t}},e}(),L={create:function(){for(var e=[],t={},r=document.querySelectorAll("["+j+"]"),n=r.length,i=0;i<n;i+=1){var o=r[i];e.push(new R(o,"true"===o.getAttribute(U),o.innerHTML));var a=o.getAttribute(j);a&&a.trim().split(/\s+/).forEach(function(e){t[e]=!0})}return new q(function(e){var t=document.createElement("style");if(t.type="text/css",t.setAttribute(j,""),t.setAttribute(U,e?"true":"false"),!document.head)throw new Error("Missing document <head>");return document.head.appendChild(t),new R(t,e)},e,t)}},j="data-styled-components",U="data-styled-components-is-local",D="__styled-components-stylesheet__",F=null,z=[],q=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};O(this,e),this.hashes={},this.deferredInjections={},this.tagConstructor=t,this.tags=r,this.names=n,this.constructComponentTagMap()}return e.prototype.constructComponentTagMap=function(){var e=this;this.componentTags={},this.tags.forEach(function(t){Object.keys(t.components).forEach(function(r){e.componentTags[r]=t})})},e.prototype.getName=function(e){return this.hashes[e.toString()]},e.prototype.alreadyInjected=function(e,t){return!!this.names[t]&&(this.hashes[e.toString()]=t,!0)},e.prototype.hasInjectedComponent=function(e){return!!this.componentTags[e]},e.prototype.deferredInject=function(e,t,r){this===F&&z.forEach(function(n){n.deferredInject(e,t,r)}),this.getOrCreateTag(e,t),this.deferredInjections[e]=r},e.prototype.inject=function(e,t,r,n,i){this===F&&z.forEach(function(n){n.inject(e,t,r)});var o=this.getOrCreateTag(e,t),a=this.deferredInjections[e];a&&(o.inject(e,a),delete this.deferredInjections[e]),o.inject(e,r,i),n&&i&&(this.hashes[n.toString()]=i)},e.prototype.toHTML=function(){return this.tags.map(function(e){return e.toHTML()}).join("")},e.prototype.toReactElements=function(){return this.tags.map(function(e,t){return e.toReactElement("sc-"+t)})},e.prototype.getOrCreateTag=function(e,t){var r=this.componentTags[e];if(r)return r;var n=this.tags[this.tags.length-1],i=!n||n.isFull()||n.isLocal!==t?this.createNewTag(t):n;return this.componentTags[e]=i,i.addComponent(e),i},e.prototype.createNewTag=function(e){var t=this.tagConstructor(e);return this.tags.push(t),t},e.reset=function(t){F=e.create(t)},e.create=function(){return((arguments.length>0&&void 0!==arguments[0]?arguments[0]:"undefined"==typeof document)?V:L).create()},e.clone=function(t){var r=new e(t.tagConstructor,t.tags.map(function(e){return e.clone()}),M({},t.names));return r.hashes=M({},t.hashes),r.deferredInjections=M({},t.deferredInjections),z.push(r),r},T(e,null,[{key:"instance",get:function(){return F||(F=e.create())}}]),e}(),H=function(e){function t(){return O(this,t),C(this,e.apply(this,arguments))}return N(t,e),t.prototype.getChildContext=function(){var e;return(e={})[D]=this.props.sheet,e},t.prototype.render=function(){return s.default.Children.only(this.props.children)},t}(s.Component);H.childContextTypes=((y={})[D]=c.a.instanceOf(q).isRequired,y),H.propTypes={sheet:c.a.instanceOf(q).isRequired};var K=function(){function e(t){O(this,e),this.isLocal=t,this.components={},this.size=0,this.names=[]}return e.prototype.isFull=function(){return!1},e.prototype.addComponent=function(e){if(this.components[e])throw new Error("Trying to add Component '"+e+"' twice!");this.components[e]={componentId:e,css:""},this.size+=1},e.prototype.concatenateCSS=function(){var e=this;return Object.keys(this.components).reduce(function(t,r){return t+e.components[r].css},"")},e.prototype.inject=function(e,t,r){var n=this.components[e];if(!n)throw new Error("Must add a new component before you can inject css into it");""===n.css&&(n.css="/* sc-component-id: "+e+" */\n"),n.css+=t.replace(/\n*$/,"\n"),r&&this.names.push(r)},e.prototype.toHTML=function(){var e=['type="text/css"',j+'="'+this.names.join(" ")+'"',U+'="'+(this.isLocal?"true":"false")+'"'],t=P();return t&&e.push('nonce="'+t+'"'),"<style "+e.join(" ")+">"+this.concatenateCSS()+"</style>"},e.prototype.toReactElement=function(e){var t,r=((t={})[j]=this.names.join(" "),t[U]=this.isLocal.toString(),t),n=P();return n&&(r.nonce=n),s.default.createElement("style",M({key:e,type:"text/css"},r,{dangerouslySetInnerHTML:{__html:this.concatenateCSS()}}))},e.prototype.clone=function(){var t=this,r=new e(this.isLocal);return r.names=[].concat(this.names),r.size=this.size,r.components=Object.keys(this.components).reduce(function(e,r){return e[r]=M({},t.components[r]),e},{}),r},e}(),V=function(){function e(){O(this,e),this.instance=q.clone(q.instance)}return e.prototype.collectStyles=function(e){if(this.closed)throw new Error("Can't collect styles once you've called getStyleTags!");return s.default.createElement(H,{sheet:this.instance},e)},e.prototype.getStyleTags=function(){return this.closed||(z.splice(z.indexOf(this.instance),1),this.closed=!0),this.instance.toHTML()},e.prototype.getStyleElement=function(){return this.closed||(z.splice(z.indexOf(this.instance),1),this.closed=!0),this.instance.toReactElements()},e.create=function(){return new q(function(e){return new K(e)})},e}(),G={children:!0,dangerouslySetInnerHTML:!0,key:!0,ref:!0,autoFocus:!0,defaultValue:!0,valueLink:!0,defaultChecked:!0,checkedLink:!0,innerHTML:!0,suppressContentEditableWarning:!0,onFocusIn:!0,onFocusOut:!0,className:!0,onCopy:!0,onCut:!0,onPaste:!0,onCompositionEnd:!0,onCompositionStart:!0,onCompositionUpdate:!0,onKeyDown:!0,onKeyPress:!0,onKeyUp:!0,onFocus:!0,onBlur:!0,onChange:!0,onInput:!0,onSubmit:!0,onClick:!0,onContextMenu:!0,onDoubleClick:!0,onDrag:!0,onDragEnd:!0,onDragEnter:!0,onDragExit:!0,onDragLeave:!0,onDragOver:!0,onDragStart:!0,onDrop:!0,onMouseDown:!0,onMouseEnter:!0,onMouseLeave:!0,onMouseMove:!0,onMouseOut:!0,onMouseOver:!0,onMouseUp:!0,onSelect:!0,onTouchCancel:!0,onTouchEnd:!0,onTouchMove:!0,onTouchStart:!0,onScroll:!0,onWheel:!0,onAbort:!0,onCanPlay:!0,onCanPlayThrough:!0,onDurationChange:!0,onEmptied:!0,onEncrypted:!0,onEnded:!0,onError:!0,onLoadedData:!0,onLoadedMetadata:!0,onLoadStart:!0,onPause:!0,onPlay:!0,onPlaying:!0,onProgress:!0,onRateChange:!0,onSeeked:!0,onSeeking:!0,onStalled:!0,onSuspend:!0,onTimeUpdate:!0,onVolumeChange:!0,onWaiting:!0,onLoad:!0,onAnimationStart:!0,onAnimationEnd:!0,onAnimationIteration:!0,onTransitionEnd:!0,onCopyCapture:!0,onCutCapture:!0,onPasteCapture:!0,onCompositionEndCapture:!0,onCompositionStartCapture:!0,onCompositionUpdateCapture:!0,onKeyDownCapture:!0,onKeyPressCapture:!0,onKeyUpCapture:!0,onFocusCapture:!0,onBlurCapture:!0,onChangeCapture:!0,onInputCapture:!0,onSubmitCapture:!0,onClickCapture:!0,onContextMenuCapture:!0,onDoubleClickCapture:!0,onDragCapture:!0,onDragEndCapture:!0,onDragEnterCapture:!0,onDragExitCapture:!0,onDragLeaveCapture:!0,onDragOverCapture:!0,onDragStartCapture:!0,onDropCapture:!0,onMouseDownCapture:!0,onMouseEnterCapture:!0,onMouseLeaveCapture:!0,onMouseMoveCapture:!0,onMouseOutCapture:!0,onMouseOverCapture:!0,onMouseUpCapture:!0,onSelectCapture:!0,onTouchCancelCapture:!0,onTouchEndCapture:!0,onTouchMoveCapture:!0,onTouchStartCapture:!0,onScrollCapture:!0,onWheelCapture:!0,onAbortCapture:!0,onCanPlayCapture:!0,onCanPlayThroughCapture:!0,onDurationChangeCapture:!0,onEmptiedCapture:!0,onEncryptedCapture:!0,onEndedCapture:!0,onErrorCapture:!0,onLoadedDataCapture:!0,onLoadedMetadataCapture:!0,onLoadStartCapture:!0,onPauseCapture:!0,onPlayCapture:!0,onPlayingCapture:!0,onProgressCapture:!0,onRateChangeCapture:!0,onSeekedCapture:!0,onSeekingCapture:!0,onStalledCapture:!0,onSuspendCapture:!0,onTimeUpdateCapture:!0,onVolumeChangeCapture:!0,onWaitingCapture:!0,onLoadCapture:!0,onAnimationStartCapture:!0,onAnimationEndCapture:!0,onAnimationIterationCapture:!0,onTransitionEndCapture:!0},Y={accept:!0,acceptCharset:!0,accessKey:!0,action:!0,allowFullScreen:!0,allowTransparency:!0,alt:!0,as:!0,async:!0,autoComplete:!0,autoPlay:!0,capture:!0,cellPadding:!0,cellSpacing:!0,charSet:!0,challenge:!0,checked:!0,cite:!0,classID:!0,className:!0,cols:!0,colSpan:!0,content:!0,contentEditable:!0,contextMenu:!0,controls:!0,coords:!0,crossOrigin:!0,data:!0,dateTime:!0,default:!0,defer:!0,dir:!0,disabled:!0,download:!0,draggable:!0,encType:!0,form:!0,formAction:!0,formEncType:!0,formMethod:!0,formNoValidate:!0,formTarget:!0,frameBorder:!0,headers:!0,height:!0,hidden:!0,high:!0,href:!0,hrefLang:!0,htmlFor:!0,httpEquiv:!0,icon:!0,id:!0,inputMode:!0,integrity:!0,is:!0,keyParams:!0,keyType:!0,kind:!0,label:!0,lang:!0,list:!0,loop:!0,low:!0,manifest:!0,marginHeight:!0,marginWidth:!0,max:!0,maxLength:!0,media:!0,mediaGroup:!0,method:!0,min:!0,minLength:!0,multiple:!0,muted:!0,name:!0,nonce:!0,noValidate:!0,open:!0,optimum:!0,pattern:!0,placeholder:!0,playsInline:!0,poster:!0,preload:!0,profile:!0,radioGroup:!0,readOnly:!0,referrerPolicy:!0,rel:!0,required:!0,reversed:!0,role:!0,rows:!0,rowSpan:!0,sandbox:!0,scope:!0,scoped:!0,scrolling:!0,seamless:!0,selected:!0,shape:!0,size:!0,sizes:!0,span:!0,spellCheck:!0,src:!0,srcDoc:!0,srcLang:!0,srcSet:!0,start:!0,step:!0,style:!0,summary:!0,tabIndex:!0,target:!0,title:!0,type:!0,useMap:!0,value:!0,width:!0,wmode:!0,wrap:!0,about:!0,datatype:!0,inlist:!0,prefix:!0,property:!0,resource:!0,typeof:!0,vocab:!0,autoCapitalize:!0,autoCorrect:!0,autoSave:!0,color:!0,itemProp:!0,itemScope:!0,itemType:!0,itemID:!0,itemRef:!0,results:!0,security:!0,unselectable:0},W={accentHeight:!0,accumulate:!0,additive:!0,alignmentBaseline:!0,allowReorder:!0,alphabetic:!0,amplitude:!0,arabicForm:!0,ascent:!0,attributeName:!0,attributeType:!0,autoReverse:!0,azimuth:!0,baseFrequency:!0,baseProfile:!0,baselineShift:!0,bbox:!0,begin:!0,bias:!0,by:!0,calcMode:!0,capHeight:!0,clip:!0,clipPath:!0,clipRule:!0,clipPathUnits:!0,colorInterpolation:!0,colorInterpolationFilters:!0,colorProfile:!0,colorRendering:!0,contentScriptType:!0,contentStyleType:!0,cursor:!0,cx:!0,cy:!0,d:!0,decelerate:!0,descent:!0,diffuseConstant:!0,direction:!0,display:!0,divisor:!0,dominantBaseline:!0,dur:!0,dx:!0,dy:!0,edgeMode:!0,elevation:!0,enableBackground:!0,end:!0,exponent:!0,externalResourcesRequired:!0,fill:!0,fillOpacity:!0,fillRule:!0,filter:!0,filterRes:!0,filterUnits:!0,floodColor:!0,floodOpacity:!0,focusable:!0,fontFamily:!0,fontSize:!0,fontSizeAdjust:!0,fontStretch:!0,fontStyle:!0,fontVariant:!0,fontWeight:!0,format:!0,from:!0,fx:!0,fy:!0,g1:!0,g2:!0,glyphName:!0,glyphOrientationHorizontal:!0,glyphOrientationVertical:!0,glyphRef:!0,gradientTransform:!0,gradientUnits:!0,hanging:!0,horizAdvX:!0,horizOriginX:!0,ideographic:!0,imageRendering:!0,in:!0,in2:!0,intercept:!0,k:!0,k1:!0,k2:!0,k3:!0,k4:!0,kernelMatrix:!0,kernelUnitLength:!0,kerning:!0,keyPoints:!0,keySplines:!0,keyTimes:!0,lengthAdjust:!0,letterSpacing:!0,lightingColor:!0,limitingConeAngle:!0,local:!0,markerEnd:!0,markerMid:!0,markerStart:!0,markerHeight:!0,markerUnits:!0,markerWidth:!0,mask:!0,maskContentUnits:!0,maskUnits:!0,mathematical:!0,mode:!0,numOctaves:!0,offset:!0,opacity:!0,operator:!0,order:!0,orient:!0,orientation:!0,origin:!0,overflow:!0,overlinePosition:!0,overlineThickness:!0,paintOrder:!0,panose1:!0,pathLength:!0,patternContentUnits:!0,patternTransform:!0,patternUnits:!0,pointerEvents:!0,points:!0,pointsAtX:!0,pointsAtY:!0,pointsAtZ:!0,preserveAlpha:!0,preserveAspectRatio:!0,primitiveUnits:!0,r:!0,radius:!0,refX:!0,refY:!0,renderingIntent:!0,repeatCount:!0,repeatDur:!0,requiredExtensions:!0,requiredFeatures:!0,restart:!0,result:!0,rotate:!0,rx:!0,ry:!0,scale:!0,seed:!0,shapeRendering:!0,slope:!0,spacing:!0,specularConstant:!0,specularExponent:!0,speed:!0,spreadMethod:!0,startOffset:!0,stdDeviation:!0,stemh:!0,stemv:!0,stitchTiles:!0,stopColor:!0,stopOpacity:!0,strikethroughPosition:!0,strikethroughThickness:!0,string:!0,stroke:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeLinecap:!0,strokeLinejoin:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0,surfaceScale:!0,systemLanguage:!0,tableValues:!0,targetX:!0,targetY:!0,textAnchor:!0,textDecoration:!0,textRendering:!0,textLength:!0,to:!0,transform:!0,u1:!0,u2:!0,underlinePosition:!0,underlineThickness:!0,unicode:!0,unicodeBidi:!0,unicodeRange:!0,unitsPerEm:!0,vAlphabetic:!0,vHanging:!0,vIdeographic:!0,vMathematical:!0,values:!0,vectorEffect:!0,version:!0,vertAdvY:!0,vertOriginX:!0,vertOriginY:!0,viewBox:!0,viewTarget:!0,visibility:!0,widths:!0,wordSpacing:!0,writingMode:!0,x:!0,xHeight:!0,x1:!0,x2:!0,xChannelSelector:!0,xlinkActuate:!0,xlinkArcrole:!0,xlinkHref:!0,xlinkRole:!0,xlinkShow:!0,xlinkTitle:!0,xlinkType:!0,xmlBase:!0,xmlns:!0,xmlnsXlink:!0,xmlLang:!0,xmlSpace:!0,y:!0,y1:!0,y2:!0,yChannelSelector:!0,z:!0,zoomAndPan:!0},J=RegExp.prototype.test.bind(new RegExp("^(data|aria)-[: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]*$")),X={}.hasOwnProperty;function Z(e){return"string"==typeof e}function $(e){return"function"==typeof e&&"string"==typeof e.styledComponentId}function Q(e){return e.displayName||e.name||"Component"}var ee,te,re,ne,ie="__styled-components__",oe=ie+"next__",ae=c.a.shape({getTheme:c.a.func,subscribe:c.a.func,unsubscribe:c.a.func}),se=(re=function(){console.error("Warning: Usage of `context."+ie+"` as a function is deprecated. It will be replaced with the object on `.context."+oe+"` in a future version.")},ne=!1,function(){ne||(ne=!0,re())}),fe=function(e){function t(){O(this,t);var r=C(this,e.call(this));return r.unsubscribeToOuterId=-1,r.getTheme=r.getTheme.bind(r),r}return N(t,e),t.prototype.componentWillMount=function(){var e=this,t=this.context[oe];void 0!==t&&(this.unsubscribeToOuterId=t.subscribe(function(t){e.outerTheme=t})),this.broadcast=function(e){var t={},r=0,n=e;return{publish:function(e){for(var r in n=e,t){var i=t[r];void 0!==i&&i(n)}},subscribe:function(e){var i=r;return t[i]=e,r+=1,e(n),i},unsubscribe:function(e){t[e]=void 0}}}(this.getTheme())},t.prototype.getChildContext=function(){var e,t=this;return M({},this.context,((e={})[oe]={getTheme:this.getTheme,subscribe:this.broadcast.subscribe,unsubscribe:this.broadcast.unsubscribe},e[ie]=function(e){se();var r=t.broadcast.subscribe(e);return function(){return t.broadcast.unsubscribe(r)}},e))},t.prototype.componentWillReceiveProps=function(e){this.props.theme!==e.theme&&this.broadcast.publish(this.getTheme(e.theme))},t.prototype.componentWillUnmount=function(){-1!==this.unsubscribeToOuterId&&this.context[oe].unsubscribe(this.unsubscribeToOuterId)},t.prototype.getTheme=function(e){var t=e||this.props.theme;if(h()(t)){var r=t(this.outerTheme);if(!i()(r))throw new Error("[ThemeProvider] Please return an object from your theme function, i.e. theme={() => ({})}!");return r}if(!i()(t))throw new Error("[ThemeProvider] Please make your theme prop a plain object");return M({},this.outerTheme,t)},t.prototype.render=function(){return this.props.children?s.default.Children.only(this.props.children):null},t}(s.Component);fe.childContextTypes=((ee={})[ie]=c.a.func,ee[oe]=ae,ee),fe.contextTypes=((te={})[oe]=ae,te);var ce=/[[\].#*$><+~=|^:(),"'`]/g,ue=/--+/g;function he(e,t){for(var r=1540483477,n=t^e.length,i=e.length,o=0;i>=4;){var a=de(e,o);a=pe(a,r),a=pe(a^=a>>>24,r),n=pe(n,r),n^=a,o+=4,i-=4}switch(i){case 3:n^=le(e,o),n=pe(n^=e.charCodeAt(o+2)<<16,r);break;case 2:n=pe(n^=le(e,o),r);break;case 1:n=pe(n^=e.charCodeAt(o),r)}return n=pe(n^=n>>>13,r),(n^=n>>>15)>>>0}function de(e,t){return e.charCodeAt(t++)+(e.charCodeAt(t++)<<8)+(e.charCodeAt(t++)<<16)+(e.charCodeAt(t)<<24)}function le(e,t){return e.charCodeAt(t++)+(e.charCodeAt(t++)<<8)}function pe(e,t){return(65535&(e|=0))*(t|=0)+(((e>>>16)*t&65535)<<16)|0}var be=["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","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],ve=function(e){var t,r=e.displayName||e.name||"Component",n=$(e),i=function(t){function r(){var e,n;O(this,r);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return e=n=C(this,t.call.apply(t,[this].concat(o))),n.state={},n.unsubscribeId=-1,C(n,e)}return N(r,t),r.prototype.componentWillMount=function(){var e=this,t=this.context[oe];if(void 0!==t){var r=t.subscribe;this.unsubscribeId=r(function(t){e.setState({theme:t})})}else console.error("[withTheme] Please use ThemeProvider to be able to use withTheme")},r.prototype.componentWillUnmount=function(){-1!==this.unsubscribeId&&this.context[oe].unsubscribe(this.unsubscribeId)},r.prototype.render=function(){var t=this.props.innerRef,r=this.state.theme;return s.default.createElement(e,M({theme:r},this.props,{innerRef:n?t:void 0,ref:n?void 0:t}))},r}(s.default.Component);return i.displayName="WithTheme("+r+")",i.styledComponentId="withTheme",i.contextTypes=((t={})[ie]=c.a.func,t[oe]=ae,t),l()(i,e)},ye=function(e,t,r){return function(){function n(e,t){O(this,n),this.rules=e,this.componentId=t,q.instance.hasInjectedComponent(this.componentId)||q.instance.deferredInject(t,!0,"")}return n.prototype.generateAndInjectStyles=function(n,i){var o=t(this.rules,n),a=he(this.componentId+o.join("")),s=i.getName(a);if(s)return s;var f=e(a);if(i.alreadyInjected(a,f))return f;var c="\n"+r(o,"."+f);return i.inject(this.componentId,!0,c,a,f),f},n.generateName=function(t){return e(he(t))},n}()}(A,g,_),me=function(e){return function t(r,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"!=typeof n&&"function"!=typeof n)throw new Error("Cannot create styled-component for component: "+n);var o=function(t){for(var o=arguments.length,a=Array(o>1?o-1:0),s=1;s<o;s++)a[s-1]=arguments[s];return r(n,i,e.apply(void 0,[t].concat(a)))};return o.withConfig=function(e){return t(r,n,M({},i,e))},o.attrs=function(e){return t(r,n,M({},i,{attrs:M({},i.attrs||{},e)}))},o}}(I),ge=function(e,t){var r={},n=function(e){function t(){var r,n;O(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=n=C(this,e.call.apply(e,[this].concat(o))),n.attrs={},n.state={theme:null,generatedClassName:""},n.unsubscribeId=-1,C(n,r)}return N(t,e),t.prototype.unsubscribeFromContext=function(){-1!==this.unsubscribeId&&this.context[oe].unsubscribe(this.unsubscribeId)},t.prototype.buildExecutionContext=function(e,t){var r=this.constructor.attrs,n=M({},t,{theme:e});return void 0===r?n:(this.attrs=Object.keys(r).reduce(function(e,t){var i=r[t];return e[t]="function"==typeof i?i(n):i,e},{}),M({},n,this.attrs))},t.prototype.generateAndInjectStyles=function(e,t){var r=this.constructor,n=r.componentStyle,i=r.warnTooManyClasses,o=this.buildExecutionContext(e,t),a=this.context[D]||q.instance,s=n.generateAndInjectStyles(o,a);return void 0!==i&&i(s),s},t.prototype.componentWillMount=function(){var e=this,t=this.context[oe];if(void 0!==t){var r=t.subscribe;this.unsubscribeId=r(function(t){var r=e.constructor.defaultProps,n=r&&e.props.theme===r.theme,i=e.props.theme&&!n?e.props.theme:t,o=e.generateAndInjectStyles(i,e.props);e.setState({theme:i,generatedClassName:o})})}else{var n=this.props.theme||{},i=this.generateAndInjectStyles(n,this.props);this.setState({theme:n,generatedClassName:i})}},t.prototype.componentWillReceiveProps=function(e){var t=this;this.setState(function(r){var n=t.constructor.defaultProps,i=n&&e.theme===n.theme,o=e.theme&&!i?e.theme:r.theme;return{theme:o,generatedClassName:t.generateAndInjectStyles(o,e)}})},t.prototype.componentWillUnmount=function(){this.unsubscribeFromContext()},t.prototype.render=function(){var e=this,t=this.props.innerRef,r=this.state.generatedClassName,n=this.constructor,i=n.styledComponentId,o=n.target,a=Z(o),f=[this.props.className,i,this.attrs.className,r].filter(Boolean).join(" "),c=M({},this.attrs,{className:f});$(o)?c.innerRef=t:c.ref=t;var u=Object.keys(this.props).reduce(function(t,r){var n;return"innerRef"!==r&&"className"!==r&&(!a||(n=r,X.call(Y,n)||X.call(W,n)||J(n.toLowerCase())||X.call(G,n)))&&(t[r]=e.props[r]),t},c);return Object(s.createElement)(o,u)},t}(s.Component);return function i(o,a,s){var f,u=a.displayName,h=void 0===u?Z(o)?"styled."+o:"Styled("+Q(o)+")":u,d=a.componentId,l=void 0===d?function(t,n){var i="string"!=typeof t?"sc":t.replace(ce,"-").replace(ue,"-"),o=(r[i]||0)+1;r[i]=o;var a=i+"-"+e.generateName(i+o);return void 0!==n?n+"-"+a:a}(a.displayName,a.parentComponentId):d,p=a.ParentComponent,b=void 0===p?n:p,v=a.rules,y=a.attrs,m=a.displayName&&a.componentId?a.displayName+"-"+a.componentId:l,g=void 0,w=new e(void 0===v?s:v.concat(s),m),_=function(e){function r(){return O(this,r),C(this,e.apply(this,arguments))}return N(r,e),r.withComponent=function(e){var t=a.componentId,n=B(a,["componentId"]),o=t&&t+"-"+(Z(e)?e:Q(e)),f=M({},n,{componentId:o,ParentComponent:r});return i(e,f,s)},T(r,null,[{key:"extend",get:function(){var e=a.rules,n=a.componentId,f=B(a,["rules","componentId"]),c=void 0===e?s:e.concat(s),u=M({},f,{rules:c,parentComponentId:n,ParentComponent:r});return t(i,o,u)}}]),r}(b);return _.contextTypes=((f={})[ie]=c.a.func,f[oe]=ae,f[D]=c.a.instanceOf(q),f),_.displayName=h,_.styledComponentId=m,_.attrs=y,_.componentStyle=w,_.warnTooManyClasses=g,_.target=o,_}}(ye,me),we=function(e,t,r){return function(n){for(var i=arguments.length,o=Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];var s=r.apply(void 0,[n].concat(o)),f=he(JSON.stringify(s).replace(/\s|\\n/g,"")),c=q.instance.getName(f);if(c)return c;var u=e(f);if(q.instance.alreadyInjected(f,u))return u;var h=t(s,u,"@keyframes");return q.instance.inject("sc-keyframes-"+u,!0,h,f,u),u}}(A,_,I),_e=function(e,t){return function(r){for(var n=arguments.length,i=Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];var a=t.apply(void 0,[r].concat(i)),s="sc-global-"+he(JSON.stringify(a));q.instance.hasInjectedComponent(s)||q.instance.inject(s,!1,e(a))}}(_,I),Ee=function(e,t){var r=function(r){return t(e,r)};return be.forEach(function(e){r[e]=r(e)}),r}(ge,me);t.default=Ee},,function(e,t,r){"use strict";(function(e){var n=r(240),i=r(241),o=r(242);function a(){return Buffer.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()<t)throw new RangeError("Invalid typed array length");return Buffer.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=Buffer.prototype:(null===e&&(e=new Buffer(t)),e.length=t),e}function Buffer(e,t,r){if(!(Buffer.TYPED_ARRAY_SUPPORT||this instanceof Buffer))return new Buffer(e,t,r);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return u(this,e)}return f(this,e,t,r)}function f(e,t,r,n){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,r,n){if(t.byteLength,r<0||t.byteLength<r)throw new RangeError("'offset' is out of bounds");if(t.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");t=void 0===r&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,r):new Uint8Array(t,r,n);Buffer.TYPED_ARRAY_SUPPORT?(e=t).__proto__=Buffer.prototype:e=h(e,t);return e}(e,t,r,n):"string"==typeof t?function(e,t,r){"string"==typeof r&&""!==r||(r="utf8");if(!Buffer.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|l(t,r),i=(e=s(e,n)).write(t,r);i!==n&&(e=e.slice(0,i));return e}(e,t,r):function(e,t){if(Buffer.isBuffer(t)){var r=0|d(t.length);return 0===(e=s(e,r)).length?e:(t.copy(e,0,0,r),e)}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(n=t.length)!=n?s(e,0):h(e,t);if("Buffer"===t.type&&o(t.data))return h(e,t.data)}var n;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function c(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 u(e,t){if(c(t),e=s(e,t<0?0:0|d(t)),!Buffer.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)e[r]=0;return e}function h(e,t){var r=t.length<0?0:0|d(t.length);e=s(e,r);for(var n=0;n<r;n+=1)e[n]=255&t[n];return e}function d(e){if(e>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function l(e,t){if(Buffer.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 r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return D(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return F(e).length;default:if(n)return D(e).length;t=(""+t).toLowerCase(),n=!0}}function p(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function b(e,t,r,n,i){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof t&&(t=Buffer.from(t,n)),Buffer.isBuffer(t))return 0===t.length?-1:v(e,t,r,n,i);if("number"==typeof t)return t&=255,Buffer.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):v(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function v(e,t,r,n,i){var o,a=1,s=e.length,f=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;a=2,s/=2,f/=2,r/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var u=-1;for(o=r;o<s;o++)if(c(e,o)===c(t,-1===u?0:o-u)){if(-1===u&&(u=o),o-u+1===f)return u*a}else-1!==u&&(o-=o-u),u=-1}else for(r+f>s&&(r=s-f),o=r;o>=0;o--){for(var h=!0,d=0;d<f;d++)if(c(e,o+d)!==c(t,d)){h=!1;break}if(h)return o}return-1}function y(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var a=0;a<n;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[r+a]=s}return a}function m(e,t,r,n){return z(D(t,e.length-r),e,r,n)}function g(e,t,r,n){return z(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function w(e,t,r,n){return g(e,t,r,n)}function _(e,t,r,n){return z(F(t),e,r,n)}function E(e,t,r,n){return z(function(e,t){for(var r,n,i,o=[],a=0;a<e.length&&!((t-=2)<0);++a)r=e.charCodeAt(a),n=r>>8,i=r%256,o.push(i),o.push(n);return o}(t,e.length-r),e,r,n)}function S(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function A(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i<r;){var o,a,s,f,c=e[i],u=null,h=c>239?4:c>223?3:c>191?2:1;if(i+h<=r)switch(h){case 1:c<128&&(u=c);break;case 2:128==(192&(o=e[i+1]))&&(f=(31&c)<<6|63&o)>127&&(u=f);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(f=(15&c)<<12|(63&o)<<6|63&a)>2047&&(f<55296||f>57343)&&(u=f);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(f=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&f<1114112&&(u=f)}null===u?(u=65533,h=1):u>65535&&(u-=65536,n.push(u>>>10&1023|55296),u=56320|1023&u),n.push(u),i+=h}return function(e){var t=e.length;if(t<=I)return String.fromCharCode.apply(String,e);var r="",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=I));return r}(n)}t.Buffer=Buffer,t.SlowBuffer=function(e){+e!=e&&(e=0);return Buffer.alloc(+e)},t.INSPECT_MAX_BYTES=50,Buffer.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(),Buffer.poolSize=8192,Buffer._augment=function(e){return e.__proto__=Buffer.prototype,e},Buffer.from=function(e,t,r){return f(null,e,t,r)},Buffer.TYPED_ARRAY_SUPPORT&&(Buffer.prototype.__proto__=Uint8Array.prototype,Buffer.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&Buffer[Symbol.species]===Buffer&&Object.defineProperty(Buffer,Symbol.species,{value:null,configurable:!0})),Buffer.alloc=function(e,t,r){return function(e,t,r,n){return c(t),t<=0?s(e,t):void 0!==r?"string"==typeof n?s(e,t).fill(r,n):s(e,t).fill(r):s(e,t)}(null,e,t,r)},Buffer.allocUnsafe=function(e){return u(null,e)},Buffer.allocUnsafeSlow=function(e){return u(null,e)},Buffer.isBuffer=function(e){return!(null==e||!e._isBuffer)},Buffer.compare=function(e,t){if(!Buffer.isBuffer(e)||!Buffer.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);i<o;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0},Buffer.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}},Buffer.concat=function(e,t){if(!o(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return Buffer.alloc(0);var r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;var n=Buffer.allocUnsafe(t),i=0;for(r=0;r<e.length;++r){var a=e[r];if(!Buffer.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(n,i),i+=a.length}return n},Buffer.byteLength=l,Buffer.prototype._isBuffer=!0,Buffer.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)p(this,t,t+1);return this},Buffer.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)p(this,t,t+3),p(this,t+1,t+2);return this},Buffer.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)p(this,t,t+7),p(this,t+1,t+6),p(this,t+2,t+5),p(this,t+3,t+4);return this},Buffer.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?A(this,0,e):function(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return P(this,t,r);case"utf8":case"utf-8":return A(this,t,r);case"ascii":return k(this,t,r);case"latin1":case"binary":return x(this,t,r);case"base64":return S(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}.apply(this,arguments)},Buffer.prototype.equals=function(e){if(!Buffer.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===Buffer.compare(this,e)},Buffer.prototype.inspect=function(){var e="",r=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(e+=" ... ")),"<Buffer "+e+">"},Buffer.prototype.compare=function(e,t,r,n,i){if(!Buffer.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;for(var o=i-n,a=r-t,s=Math.min(o,a),f=this.slice(n,i),c=e.slice(t,r),u=0;u<s;++u)if(f[u]!==c[u]){o=f[u],a=c[u];break}return o<a?-1:a<o?1:0},Buffer.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},Buffer.prototype.indexOf=function(e,t,r){return b(this,e,t,r,!0)},Buffer.prototype.lastIndexOf=function(e,t,r){return b(this,e,t,r,!1)},Buffer.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-t;if((void 0===r||r>i)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return y(this,e,t,r);case"utf8":case"utf-8":return m(this,e,t,r);case"ascii":return g(this,e,t,r);case"latin1":case"binary":return w(this,e,t,r);case"base64":return _(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,e,t,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},Buffer.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var I=4096;function k(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}function x(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}function P(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=t;o<r;++o)i+=U(e[o]);return i}function O(e,t,r){for(var n=e.slice(t,r),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}function T(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function M(e,t,r,n,i,o){if(!Buffer.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function N(e,t,r,n){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-r,2);i<o;++i)e[r+i]=(t&255<<8*(n?i:1-i))>>>8*(n?i:1-i)}function B(e,t,r,n){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-r,4);i<o;++i)e[r+i]=t>>>8*(n?i:3-i)&255}function C(e,t,r,n,i,o){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function R(e,t,r,n,o){return o||C(e,0,r,4),i.write(e,t,r,n,23,4),r+4}function L(e,t,r,n,o){return o||C(e,0,r,8),i.write(e,t,r,n,52,8),r+8}Buffer.prototype.slice=function(e,t){var r,n=this.length;if(e=~~e,t=void 0===t?n:~~t,e<0?(e+=n)<0&&(e=0):e>n&&(e=n),t<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e),Buffer.TYPED_ARRAY_SUPPORT)(r=this.subarray(e,t)).__proto__=Buffer.prototype;else{var i=t-e;r=new Buffer(i,void 0);for(var o=0;o<i;++o)r[o]=this[o+e]}return r},Buffer.prototype.readUIntLE=function(e,t,r){e|=0,t|=0,r||T(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return n},Buffer.prototype.readUIntBE=function(e,t,r){e|=0,t|=0,r||T(e,t,this.length);for(var n=this[e+--t],i=1;t>0&&(i*=256);)n+=this[e+--t]*i;return n},Buffer.prototype.readUInt8=function(e,t){return t||T(e,1,this.length),this[e]},Buffer.prototype.readUInt16LE=function(e,t){return t||T(e,2,this.length),this[e]|this[e+1]<<8},Buffer.prototype.readUInt16BE=function(e,t){return t||T(e,2,this.length),this[e]<<8|this[e+1]},Buffer.prototype.readUInt32LE=function(e,t){return t||T(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},Buffer.prototype.readUInt32BE=function(e,t){return t||T(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},Buffer.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||T(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*t)),n},Buffer.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||T(e,t,this.length);for(var n=t,i=1,o=this[e+--n];n>0&&(i*=256);)o+=this[e+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},Buffer.prototype.readInt8=function(e,t){return t||T(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},Buffer.prototype.readInt16LE=function(e,t){t||T(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},Buffer.prototype.readInt16BE=function(e,t){t||T(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},Buffer.prototype.readInt32LE=function(e,t){return t||T(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},Buffer.prototype.readInt32BE=function(e,t){return t||T(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},Buffer.prototype.readFloatLE=function(e,t){return t||T(e,4,this.length),i.read(this,e,!0,23,4)},Buffer.prototype.readFloatBE=function(e,t){return t||T(e,4,this.length),i.read(this,e,!1,23,4)},Buffer.prototype.readDoubleLE=function(e,t){return t||T(e,8,this.length),i.read(this,e,!0,52,8)},Buffer.prototype.readDoubleBE=function(e,t){return t||T(e,8,this.length),i.read(this,e,!1,52,8)},Buffer.prototype.writeUIntLE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||M(this,e,t,r,Math.pow(2,8*r)-1,0);var i=1,o=0;for(this[t]=255&e;++o<r&&(i*=256);)this[t+o]=e/i&255;return t+r},Buffer.prototype.writeUIntBE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||M(this,e,t,r,Math.pow(2,8*r)-1,0);var i=r-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+r},Buffer.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||M(this,e,t,1,255,0),Buffer.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},Buffer.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||M(this,e,t,2,65535,0),Buffer.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):N(this,e,t,!0),t+2},Buffer.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||M(this,e,t,2,65535,0),Buffer.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):N(this,e,t,!1),t+2},Buffer.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||M(this,e,t,4,4294967295,0),Buffer.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):B(this,e,t,!0),t+4},Buffer.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||M(this,e,t,4,4294967295,0),Buffer.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):B(this,e,t,!1),t+4},Buffer.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);M(this,e,t,r,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o<r&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},Buffer.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);M(this,e,t,r,i-1,-i)}var o=r-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+r},Buffer.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||M(this,e,t,1,127,-128),Buffer.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},Buffer.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||M(this,e,t,2,32767,-32768),Buffer.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):N(this,e,t,!0),t+2},Buffer.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||M(this,e,t,2,32767,-32768),Buffer.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):N(this,e,t,!1),t+2},Buffer.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||M(this,e,t,4,2147483647,-2147483648),Buffer.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):B(this,e,t,!0),t+4},Buffer.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||M(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),Buffer.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):B(this,e,t,!1),t+4},Buffer.prototype.writeFloatLE=function(e,t,r){return R(this,e,t,!0,r)},Buffer.prototype.writeFloatBE=function(e,t,r){return R(this,e,t,!1,r)},Buffer.prototype.writeDoubleLE=function(e,t,r){return L(this,e,t,!0,r)},Buffer.prototype.writeDoubleBE=function(e,t,r){return L(this,e,t,!1,r)},Buffer.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var i,o=n-r;if(this===e&&r<t&&t<n)for(i=o-1;i>=0;--i)e[i+t]=this[i+r];else if(o<1e3||!Buffer.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)e[i+t]=this[i+r];else Uint8Array.prototype.set.call(e,this.subarray(r,r+o),t);return o},Buffer.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!Buffer.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;var o;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(o=t;o<r;++o)this[o]=e;else{var a=Buffer.isBuffer(e)?e:D(new Buffer(e,n).toString()),s=a.length;for(o=0;o<r-t;++o)this[o+t]=a[o%s]}return this};var j=/[^+\/0-9A-Za-z-_]/g;function U(e){return e<16?"0"+e.toString(16):e.toString(16)}function D(e,t){var r;t=t||1/0;for(var n=e.length,i=null,o=[],a=0;a<n;++a){if((r=e.charCodeAt(a))>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function F(e){return n.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(j,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function z(e,t,r,n){for(var i=0;i<n&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}}).call(t,r(29))},function(e,t,r){var n=r(3),Buffer=n.Buffer;function i(e,t){for(var r in e)t[r]=e[r]}function o(e,t,r){return Buffer(e,t,r)}Buffer.from&&Buffer.alloc&&Buffer.allocUnsafe&&Buffer.allocUnsafeSlow?e.exports=n:(i(n,t),t.Buffer=o),i(Buffer,o),o.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return Buffer(e,t,r)},o.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=Buffer(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},o.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return Buffer(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}},,function(e,t,r){var n;!function r(i){var o={name:"dop",version:"0.26.2",create:r,data:{node_inc:0,node:{},object_inc:1,object:{},collectors:[],gets_collecting:!1,gets_paths:[],computed_inc:0,computed:{},observers_inc:0,observers:{},path:{}},util:{},core:{},protocol:{},transports:{listen:{},connect:{}},cons:{TOKEN:"~TOKEN_DOP",DOP:"~DOP",SEND:"~SEND",DISCONNECT:"~DISCONNECT",REMOTE_FUNCTION:"$DOP_REMOTE_FUNCTION",REMOTE_FUNCTION_UNSETUP:"$DOP_REMOTE_FUNCTION_UNSETUP",BROADCAST_FUNCTION:"$DOP_BROADCAST_FUNCTION",COMPUTED_FUNCTION:"$DOP_COMPUTED_FUNCTION"}};function a(e){return"function"==typeof e}function s(e){return null!==e&&"object"==typeof e}function f(e){return Array.isArray(e)}o.connect=function(e){var t=Array.prototype.slice.call(arguments,0);return"object"!=o.util.typeof(t[0])&&(e=t[0]={}),"function"!=typeof e.transport&&(e.transport=o.transports.connect.websocket),o.core.connector(t)},o.util.emitter=function(){this._events={}},o.util.emitter.prototype.on=function(e,t,r){return a(t)&&(s(this._events)||(this._events={}),s(this._events[e])||(this._events[e]=[]),this._events[e].push(!0===r?[t,!0]:[t])),this},o.util.emitter.prototype.once=function(e,t){return this.on(e,t,!0)},o.util.emitter.prototype.emit=function(e){if(s(this._events[e])&&this._events[e].length>0){for(var t=0,r=[],n=Array.prototype.slice.call(arguments,1);t<this._events[e].length;t++)r.push(this._events[e][t][0]),!0===this._events[e][t][1]&&(this._events[e].splice(t,1),t-=1);for(t=0;t<r.length;t++)r[t].apply(this,n)}return this},o.util.emitter.prototype.removeListener=function(e,t){if(s(this._events[e])&&this._events[e].length>0)for(var r=0;r<this._events[e].length;r++)this._events[e][r][0]===t&&(this._events[e].splice(r,1),r-=1);return this},o.listen=function(e){var t=Array.prototype.slice.call(arguments,0);return"object"!=o.util.typeof(t[0])&&(e=t[0]={}),"function"!=typeof e.transport&&(e.transport=o.transports.listen.local),new o.core.listener(t)},function(t){function n(e,t,r){var n,o="ws://localhost:4444/"+e.name;if("string"==typeof r.url)o=r.url.replace("http","ws");else if("undefined"!=typeof window&&void 0!==window.location&&/http/.test(window.location.href)){var u=/(ss|ps)?:\/\/([^\/]+)\/?(.+)?/.exec(window.location.href),h=u[1]?"wss":"ws";o=h+"://"+u[2].toLocaleLowerCase()+"/"+e.name}var d,l,p=r.transport.getApi(),b=new p(o),v=[];function y(e){b.readyState===s?b.send(e):v.push(e)}function m(){if(b.readyState===s)for(;v.length>0;)b.send(v.shift())}function g(){l===f?b.send(d):(b.send(""),l=s),e.core.emitOpen(t,b,r.transport)}function w(r){l===f&&r.data===d?(l=c,e.core.setSocketToNode(t,b),e.core.emitReconnect(t,n),m()):l!==c?(d=r.data,l=c,e.core.setSocketToNode(t,b),y(d),m(),e.core.emitConnect(t)):e.core.emitMessage(t,r.data,r)}function _(){l=a,e.core.emitClose(t,b),e.core.emitDisconnect(t)}return e.core.setSocketToNode(t,b),l=a,t.reconnect=function(){l===a&&(n=b,b=new p(o),l=f,i(b,g,w,_),function(e,t,r,n){e.removeEventListener("open",t),e.removeEventListener("message",r),e.removeEventListener("close",n)}(n,g,w,_))},t.on(e.cons.SEND,y),t.on(e.cons.DISCONNECT,function(){l=a,b.close()}),i(b,g,w,_),b}function i(e,t,r,n){e.addEventListener("open",t),e.addEventListener("message",r),e.addEventListener("close",n)}"object"!=typeof e||!e.exports||"object"==typeof o&&o.create===r?(n.getApi=function(){return window.WebSocket},void 0!==o?o.transports.connect.websocket=n:t.dopTransportsConnectWebsocket=n):e.exports=n;var a=0,s=1,f=2,c=3}(this),o.util.clone=function(e){return o.isPojoObject(e)?o.util.merge(f(e)?[]:{},e):e},o.util.get=function(e,t){if(0===t.length)return e;for(var r,n=0,i=t.length;n<i;n++){if(r=e[t[n]],!(n+1<i&&s(r)))return e.hasOwnProperty(t[n])?r:void 0;e=r}return e[t[n]]},o.util.invariant=function(e){if(!e){var t=o.util.sprintf.apply(this,Array.prototype.slice.call(arguments,1));throw new Error("[dop] Invariant failed: "+t)}},o.util.merge=function(e,t){var r=arguments;return r.length>2?(Array.prototype.splice.call(r,0,2,o.util.merge.call(this,e,t)),o.util.merge.apply(this,r)):(o.util.path(t,this,e,o.util.mergeMutator),f(t)&&(e.length=t.length),e)},o.util.mergeMutator=function(e,t,r,n){"object"==n||"array"==n?e.hasOwnProperty(t)?e[t]:e[t]="array"==n?[]:{}:e[t]=r},o.util.path=function(e,t,r,n){var i=a(t),f=s(r);return o.util.pathRecursive(e,t,r,n,[],[],i,f),r},o.util.pathRecursive=function(e,t,r,n,i,a,s,f){var c,u,h,d;for(c in e)d=!1,u=e[c],a.push(c),s&&(d=t(e,c,u,r,a,this)),!0!==d&&(h=o.util.typeof(u),f&&(d=n(r,c,u,h,a)),"object"!=h&&"array"!=h||!0===d||u===e||-1!=i.indexOf(u)||!f||void 0===r[c]||(i.push(u),o.util.pathRecursive(u,t,f?r[c]:void 0,n,i,a,s,f)),a.pop())},o.util.sprintf=function(){var e,t=-1,r=arguments[0],n=Array.prototype.slice.call(arguments,1);return r.replace(/"/g,"'").replace(/%([0-9]+)|%s/g,function(){return void 0===(e=n[void 0===arguments[1]||""===arguments[1]?++t:arguments[1]])&&(e=arguments[0]),e})},o.util.swap=function(e,t,r){if(e.length>0&&t.length>1)for(var n,i,o,s=0,f=t.length-1,c=a(r);s<f;s+=2)i=t[s],o=t[s+1],n=e[i],e[i]=e[o],e[o]=n,c&&r(i,o);return e},o.util.typeof=function(e){var t=typeof e;return"object"==t&&(e?f(e)?t="array":e instanceof Date?t="date":e instanceof RegExp&&(t="regexp"):t="null"),t},o.util.uuid=function(){for(var e,t=0,r="";t<32;t++)e=16*Math.random()|0,8!==t&&12!==t&&16!==t&&20!==t||(r+="-"),r+=(12===t?4:16===t?3&e|8:e).toString(16);return r},o.action=function(e){return function(){var t=o.collect();e.apply(this,arguments),t.emit()}},o.collect=function(e){o.util.invariant(0==arguments.length||1==arguments.length&&a(e),"dop.collect only accept one argument as function");var t=e?e(o.data.collectors):o.data.collectors.length;return o.core.createCollector(o.data.collectors,t)},o.computed=function(e){o.util.invariant(a(e),"dop.computed needs a function as first parameter");var t=function(t,r,n,i){return o.core.createComputed(t,r,e,n,i)};return t._name=o.cons.COMPUTED_FUNCTION,t},o.createObserver=function(e){o.util.invariant(a(e),"dop.createObserver only accept one argument as function");var t,r,n,i=o.data.observers;for(t in i)if(i[t].callback===e)return i[t];return r=o.data.observers_inc++,n=new o.core.observer(e,r),i[r]=n},o.decode=function(e,t){var r,n=[],i=0,a=JSON.parse(e,function(e,r){return o.core.decode.call(this,e,r,t,n)});for(r=n.length,i=0;i<r;++i)n[i][0][n[i][1]]=void 0;return a},o.del=function(e,t){return o.isRegistered(e)?void 0!==o.core.delete(e,t):delete e[t]},o.encode=function(e,t){return"function"!=typeof t&&(t=o.core.encode),JSON.stringify(e,t)},o.encodeFunction=function(e){return JSON.stringify(e,o.core.encodeFunction)},o.get=function(e,t){return o.data.gets_collecting&&o.isRegistered(e)&&o.core.proxyObjectHandler.get(o.getObjectTarget(e),t),e[t]},o.getNodeBySocket=function(e){return o.data.node[e[o.cons.TOKEN]]},o.getObjectDop=function(e){return e[o.cons.DOP]},o.getObjectRoot=function(e){return o.getObjectDop(e).r},o.getObjectParent=function(e){return o.getObjectDop(e)._},o.getObjectProxy=function(e){return o.getObjectDop(e).p},o.getObjectTarget=function(e){return o.getObjectDop(e).t},o.getObjectProperty=function(e){var t=o.getObjectDop(e);return f(t._)&&o.getObjectPath(e),t.pr},o.getObjectId=function(e){return o.getObjectProperty(o.getObjectRoot(e))},o.getObjectLevel=function(e){return o.getObjectDop(e).l},o.getObjectPath=function(e,t){var r,n,i=[],a=e[o.cons.DOP];for(t=!1!==t;void 0!==a._;)if(n=a.pr,r=o.getObjectTarget(a._),t&&r[n]!==a.p){if(!f(r))return;if(-1===(n=r.indexOf(a.p)))return;a.pr=n}else i.unshift(n),a=r[o.cons.DOP];return i.unshift(a.pr),i},o.intercept=function(e,t,r){o.util.invariant(o.isRegistered(e),"dop.intercept() needs a registered object as first parameter");var n=o.getObjectPath(e);o.util.invariant(f(n),"dop.intercept() The object you are passing is not allocated to a registered object");var i="interceptors";2===arguments.length&&(r=t),o.util.invariant(a(r),"dop.intercept() needs a callback as last parameter");var s=o.core.getPathId(n),c=o.data.path;3===arguments.length&&(i="interceptors_prop",s+=o.core.pathSeparator(t)),void 0===c[s]&&(c[s]={}),void 0===c[s][i]&&(c[s][i]=[]);var u=c[s][i];return u.push(r),function(){u.splice(u.indexOf(r),1)}},o.isBroadcastFunction=function(e){return a(e)&&e._name===o.cons.BROADCAST_FUNCTION},o.isObjectRegistrable=function(e){return s(e)},o.isPojoObject=function(e){if(null===e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);return t===Object.prototype||t===Array.prototype},o.isRegistered=function(e){return s(e)&&void 0!==o.getObjectDop(e)&&!Object.getOwnPropertyDescriptor(e,o.cons.DOP).enumerable},o.isRemoteFunction=function(e){return a(e)&&e._name===o.cons.REMOTE_FUNCTION},o.onSubscribe=function(e){o.util.invariant(a(e),"dop.onSubscribe only accept a function as parameter"),o.data.onsubscribe=e},o.register=function(e){return o.util.invariant(o.isObjectRegistrable(e)&&!f(e),"dop.register needs an object or an array as first parameter"),o.isRegistered(e)?o.getObjectProxy(e):o.core.configureObject(e,o.data.object_inc++)},o.removeComputed=function(e,t,r){o.util.invariant(o.isRegistered(e),"dop.removeComputed needs a registered object as first parameter"),o.util.invariant(void 0!==t,"dop.removeComputed needs a string or number as second parameter");var n,i,c,u,h,d,l,p,b=o.core.getPathId(o.getObjectPath(e,!1).concat(t)),v=!a(r),y=o.data.path,m=[];if(s(y[b])&&f(y[b].computeds)&&y[b].computeds.length>0)for(i=y[b].computeds,d=0;d<i.length;++d){if(c=i[d],n=(u=o.data.computed[c]).function===r,v||n){for(delete o.data.computed[c],i.splice(i.indexOf(c),1),l=0,p=u.derivations.length;l<p;++l)(h=y[u.derivations[l]].derivations).splice(h.indexOf(c),1);d-=1,m.push(u.function)}if(n)break}return m},o.set=function(e,t,r,n){return o.isRegistered(e)?o.core.set(e,t,r,n):e[t]=r,r},o.setBroadcastFunction=function(e,t){o.util.invariant(o.isRegistered(e),"Object passed to dop.setBroadcastFunction must be a registered object");var r=o.getObjectPath(e),n=r.shift();r.push(t),o.getObjectTarget(e)[t]=function(){return o.protocol.broadcast(n,r,arguments)},o.getObjectTarget(e)[t]._name=o.cons.BROADCAST_FUNCTION},o.core.emitClose=function(e,t){e.listener&&e.listener.emit("close",t),e.emit("close",t)},o.core.emitConnect=function(e){e.connected=!0,e.listener&&e.listener.emit("connect",e),e.emit("connect"),o.core.sendMessages(e)},o.core.emitDisconnect=function(e){e.connected=!1,e.listener&&(o.core.unregisterNode(e),e.listener.emit("disconnect",e)),e.emit("disconnect")},o.core.emitMessage=function(e,t,r){var n;if(e.listener&&e.listener.emit("message",e,t,r),e.emit("message",t,r),"string"==typeof t&&"["==t[0])try{n=o.decode(t,e)}catch(e){}else n=t;if(f(n)){"number"==typeof n[0]&&(n=[n]);for(var i,c,u,h,d,l,p,b=0,v=n.length;b<v;b++)if("number"==typeof(h=(i=n[b])[0])&&0!==h)for(var y,m=1,g=(c="number"==(p=o.util.typeof(i[1]))&&"array"!=p||h<0?[h,i.slice(1)]:c=i).length;m<g;++m)u=c[m],"array"==o.util.typeof(u)&&("number"==typeof u[0]&&h>0||h<0)&&(l=u[0],y="on"+o.protocol.instructions[l],h>0&&a(o.protocol[y])?o.protocol[y](e,h,u):(h*=-1,s(e.requests[h])&&(d=u,l=(u=e.requests[h])[1],y="_on"+o.protocol.instructions[l],a(o.protocol[y])&&o.protocol[y](e,h,u,d),o.core.deleteRequest(e,h))))}},o.core.emitOpen=function(e,t,r){var n;return e instanceof o.core.node?n=e:(n=new o.core.node).listener=e,n.transport=r,o.core.registerNode(n),e.emit("open",t),n},o.core.emitReconnect=function(e,t,r){e.listener&&(o.core.unregisterNode(r),e.listener.emit("reconnect",e,t)),e.emit("reconnect",t),o.core.sendMessages(e)},o.core.collector=function(e,t){this.active=!0,this.mutations=[],this.queue=e,e.splice(t,0,this)},o.core.collector.prototype.add=function(e){return!(!this.active||void 0!==this.filter&&!0!==this.filter(e))&&(this.mutations.push(e),!0)},o.core.collector.prototype.emit=function(){return this.destroy(),this.emitWithoutDestroy()},o.core.collector.prototype.emitWithoutDestroy=function(){var e=new o.core.snapshot(this.mutations);return e.emit(),this.mutations=[],e},o.core.collector.prototype.pause=function(){this.active=!1},o.core.collector.prototype.resume=function(){this.active=!0},o.core.collector.prototype.destroy=function(){this.active=!1,this.queue.splice(this.queue.indexOf(this),1)},o.core.listener=function(e){o.util.merge(this,new o.util.emitter),e.unshift(o,this),this.options=e[2],this.transport=this.options.transport,this.listener=this.options.transport.apply(this,e)},o.core.node=function(){o.util.merge(this,new o.util.emitter),this.connected=!1,this.request_inc=1,this.requests={},this.message_queue=[],this.subscriber={},this.owner={};do{this.token=o.util.uuid()}while("object"==typeof o.data.node[this.token])},o.core.node.prototype.send=function(e){this.emit(o.cons.SEND,e)},o.core.node.prototype.disconnect=function(){this.emit(o.cons.DISCONNECT)},o.core.node.prototype.subscribe=function(){return o.protocol.subscribe(this,arguments)},o.core.node.prototype.unsubscribe=function(e){return o.util.invariant(o.isRegistered(e),"Node.unsubscribe needs a subscribed object"),o.protocol.unsubscribe(this,e)},o.core.observer=function(e,t){this.callback=e,this.id=t,this.observers={},this.observers_prop={}},o.core.observer.prototype.observe=function(e,t){o.util.invariant(o.isRegistered(e),"observer.observe() needs a registered object as first parameter");var r=o.getObjectPath(e);o.util.invariant(f(r),"observer.observe() The object you are passing is not allocated to a registered object");var n=o.core.getPathId(r),i=o.data.path,a="observers";return 2===arguments.length&&(a="observers_prop",n+=o.core.pathSeparator(t)),void 0===i[n]&&(i[n]={}),void 0===i[n][a]&&(i[n][a]={}),i[n][a][this.id]=!0,this[a][n]=!0,function(){delete i[n][a][this.id],delete this[a][n]}.bind(this)},o.core.observer.prototype.destroy=function(){var e,t=o.data.path;for(e in delete o.data.observers[this.id],this.observers)delete t[e].observers[this.id];for(e in this.observers_prop)delete t[e].observers_prop[this.id]},o.core.snapshot=function(e){this.mutations=e,this.forward=!0},o.core.snapshot.prototype.undo=function(){this.forward&&this.mutations.length>0&&(this.forward=!1,this.setPatch(this.getUnpatch()))},o.core.snapshot.prototype.redo=function(){!this.forward&&this.mutations.length>0&&(this.forward=!0,this.setPatch(this.getPatch()))},o.core.snapshot.prototype.emit=function(){this.mutations.length>0&&o.core.emitToObservers(this.mutations)&&o.core.emitNodes(this.forward?this.getPatch():this.getUnpatch())},o.core.snapshot.prototype.getPatch=function(){return this.patch=void 0===this.patch?o.core.getPatch(this.mutations):this.patch},o.core.snapshot.prototype.getUnpatch=function(){return this.unpatch=void 0===this.unpatch?o.core.getUnpatch(this.mutations):this.unpatch},o.core.snapshot.prototype.setPatch=function(e){for(var t in e)o.core.setPatch(e[t].object,e[t].chunks,o.core.setPatchMutator)},o.core.error={reject_local:{OBJECT_NOT_FOUND:"Object not found",NODE_NOT_FOUND:"Node not found",TIMEOUT_REQUEST:"Timeout waiting for response"},reject_remote:{OBJECT_NOT_FOUND:1,1:"Remote object not found or not permissions to use it",SUBSCRIPTION_NOT_FOUND:2,2:"Subscription not found to unsubscribe this object",FUNCTION_NOT_FOUND:3,3:"Remote function not found to be called",CUSTOM_REJECTION:4}},o.core.delete=function(e,t){var r=Object.getOwnPropertyDescriptor(e,t);if(r&&r.configurable){var n,i=o.getObjectTarget(e),a=o.getObjectProxy(e),s=i[t],f=delete i[t];return i!==a&&e!==a||!(n=o.getObjectPath(e))||o.core.storeMutation({object:o.getObjectProxy(i),prop:String(t),path:n,oldValue:o.util.clone(s)}),f}},o.core.pop=function(e){if(0!==e.length)return o.core.splice(e,[e.length-1,1])[0]},o.core.push=function(e,t){return 0===t.length?e.length:(t.unshift(e.length,0),o.core.splice(e,t),e.length)},o.core.reverse=function(e){var t,r=o.getObjectTarget(e),n=o.getObjectProxy(e);if(r!==n&&e!==n||!(t=o.getObjectPath(e)))Array.prototype.reverse.call(r);else{for(var i,a,s=r.length/2,f=0,c=[];f<s;++f)f!==(i=r.length-f-1)&&(a=r[i],r[i]=r[f],r[f]=a,c.push(f,i));c.length>0&&o.core.storeMutation({object:n,prop:o.getObjectProperty(e),path:t,swaps:c})}return e},o.core.set=function(e,t,r,n){if(s(n)||(n={}),n.deep="boolean"!=typeof n.deep||n.deep,n.shadow="boolean"==typeof n.shadow&&n.shadow,e[t]!==r){var i=Object.getOwnPropertyDescriptor(e,t);if(!i||i&&i.writable){var c,u=o.getObjectTarget(e),h=o.getObjectProxy(e),d=u[t],l=u.length,p=!u.hasOwnProperty(t),b=f(u);if(!n.deep||!o.isPojoObject(r)||o.isRegistered(r)&&o.getObjectParent(r)===h?a(r)&&r._name==o.cons.COMPUTED_FUNCTION?u[t]=r(u,t,!1,d):u[t]=r:u[t]=o.core.configureObject(r,t,h),!n.shadow&&(u===h||e===h)&&(!a(d)||!a(r))&&(c=o.getObjectPath(e))){var v={object:h,prop:b?String(t):t,path:c,value:o.util.clone(r)};p||(v.oldValue=o.util.clone(d)),o.core.storeMutation(v),"length"!==t&&u.length!==l&&b&&o.core.storeMutation({object:h,prop:"length",path:c,value:u.length,oldValue:l})}}}},o.core.shift=function(e){if(0!==e.length)return o.core.splice(e,[0,1])[0]},o.core.sort=function(e,t){var r,n,i,a=o.getObjectTarget(e),s=o.getObjectProxy(e),f=a.slice(0);return r=Array.prototype.sort.call(a,t),a!==s&&e!==s||!(i=o.getObjectPath(e))||(n=o.core.sortDiff(a,f)).length>1&&o.core.storeMutation({object:o.getObjectProxy(e),prop:o.getObjectProperty(e),path:i,swaps:n}),r},o.core.sortDiff=function(e,t){for(var r,n,i=t.length,o=[],a=0;a<i;++a)e[a]!==t[a]&&(r=t.indexOf(e[a]),n=t[a],t[a]=t[r],t[r]=n,o.push(a,r));return o},o.core.splice=function(e,t){var r,n,i=o.getObjectTarget(e),a=o.getObjectProxy(e),s=i.length;if(r=Array.prototype.splice.apply(i,t),n=o.getObjectPath(e)){var f,c=t.length,u=i.length,h=2,d=Number(t[0]),l=t.length>2?t.length-2:0;for(isNaN(d)?d=0:d<0?d=u+d<0?0:u+d:d>s&&(d=s);h<c;++h,++d)f=t[h],o.isPojoObject(f)&&(i[d]=o.core.configureObject(f,d,a));if((i===a||e===a)&&(s!==u||l>0)){t[0]<0&&(t[0]=e.length+t[0]);var p={object:a,prop:o.getObjectProperty(e),path:n,splice:t};r.length>0&&(p.spliced=o.util.clone(r)),u!==s&&(p.oldLength=s),o.core.storeMutation(p)}}return r},o.core.swap=function(e,t){var r=o.getObjectTarget(e),n=o.getObjectProxy(e),i=o.util.swap(r,t);return r!==n&&e!==n||o.core.storeMutation({object:n,prop:o.getObjectProperty(e),path:o.getObjectPath(e),swaps:t.slice(0)}),i},o.core.unshift=function(e,t){return 0===t.length?e.length:(t.unshift(0,0),o.core.splice(e,t),e.length)};var c="function"==typeof Proxy;o.core.configureObject=function(e,t,r){if(o.isRegistered(e))return o.core.configureObject(o.util.clone(e),t,r);var n,i,s={};s._=r,s.pr=f(r)?Number(t):t,c?(n=s.p=new Proxy(e,o.core.proxyObjectHandler),i=s.t=e):n=i=s.p=s.t=e,s.r=void 0===r?n:o.getObjectDop(r).r,Object.defineProperty(i,o.cons.DOP,{value:s,enumerable:!1,configurable:!1,writable:!1});var u,h,d,l,p=f(i);for(u in i)p&&(u=Number(u)),(l=a(h=i[u]))&&h._name==o.cons.REMOTE_FUNCTION_UNSETUP?(d=o.getObjectPath(e),i[u]=h(d[0],d.slice(1).concat(u))):l&&h._name==o.cons.COMPUTED_FUNCTION?i[u]=h(n,u,!1,void 0):o.isPojoObject(h)&&(i[u]=o.core.configureObject(h,u,n));return"array"==o.util.typeof(i)&&Object.defineProperties(i,o.core.proxyArrayHandler),n},o.core.createCollector=function(e,t){return new o.core.collector(e,t)},o.core.createComputed=function(e,t,r,n,i){var a,s=o.data.path,f=o.data.computed_inc++,c={object_root:o.getObjectRoot(e),prop:t,function:r,derivations:[]},u=o.getObjectPath(e,!1);return c.path=u.slice(1),c.pathid=o.core.getPathId(u.concat(t)),void 0===s[c.pathid]&&(s[c.pathid]={}),void 0===s[c.pathid].computeds&&(s[c.pathid].computeds=[]),o.data.computed[f]=c,a=o.core.updateComputed(f,c,e,i),n&&o.core.set(e,t,a),a},o.core.emitToObservers=function(e){for(var t,r,n,i={},a=!1,f=o.data.path,c=0,u=e.length;c<u;++c){if(r=(t=e[c]).path_id,!a&&s(o.data.object[o.getObjectId(t.object)])&&(a=!0),void 0!==f[r]&&void 0!==f[r].observers)for(n in f[r].observers)void 0===i[n]&&(i[n]=[]),i[n].push(t);if(void 0===t.swaps&&void 0!==f[r+=o.core.pathSeparator(void 0===t.splice?t.prop:"length")]&&void 0!==f[r].observers_prop)for(n in f[r].observers_prop)void 0===i[n]&&(i[n]=[]),-1==i[n].indexOf(t)&&i[n].push(t)}for(n in i){var h=o.data.observers[n];void 0!==h&&h.callback(i[n])}return a},o.core.getMutationInverted=function(e){var t={object:e.object,path:e.path,prop:e.prop};if(void 0!==e.splice){var r=e.splice,n=void 0===e.spliced?[]:e.spliced;t.splice=[r[0],r.length-2],Array.prototype.push.apply(t.splice,n),t.spliced=r.slice(2),0===t.spliced.length&&delete t.spliced}else void 0!==e.swaps?t.swaps=e.swaps.slice(0).reverse():e.hasOwnProperty("oldValue")?e.hasOwnProperty("value")?(t.oldValue=e.value,t.value=e.oldValue):t.value=e.oldValue:t.oldValue=e.value;return t},o.core.getPatch=function(e,t){for(var r,n,i={},a=0,s=e.length;a<s;++a)r=t?o.core.getMutationInverted(e[a]):e[a],void 0===i[n=o.getObjectId(r.object)]&&(i[n]={chunks:[{}],object:o.getObjectRoot(r.object)}),o.core.injectMutationInPatch(i[n],r);return i},o.core.getPathId=function(e){for(var t=0,r=e.length,n="";t<r;++t)n+=o.core.pathSeparator(e[t]);return n},o.core.getUnpatch=function(e){return o.core.getPatch(e.slice(0).reverse(),!0)},o.core.injectMutationInPatch=function(e,t){for(var r,n,i,a,s,c=t.prop,u=t.path,h=t.value,d=void 0!==t.splice,l=void 0!==t.swaps,p=d||l,b=o.util.typeof(h),v=1,y=e.chunks[e.chunks.length-1],m=y,g={},w=g,_=g,E=o.protocol.instructionsPatchs,S=!1,A=!1;v<u.length;++v)m=y,w=g,g=g[i=u[v]]={},"array"==(r=o.util.typeof(y[i]))?(n=y[i])[0]===E.object?(S=!0,y=n[1]):(!p||p&&v+1<u.length)&&(A=!0,y=g,e.chunks.push(_)):!A&&p&&"object"==r?(m=w,y=g,e.chunks.push(_)):y="object"==r?y[i]:y[i]={};"object"==b||"array"==b?(a=o.util.merge("array"==b?[]:{},h),y[c]=S?a:[E.object,a]):p?S?d?Array.prototype.splice.apply(y,t.splice.slice(0)):o.util.swap(y,t.swaps.slice(0)):(s=d?[E.splice,t.splice.slice(0)]:[E.swaps,t.swaps.slice(0)],f(m[c])?("number"==typeof m[c][0]&&(m[c]=[m[c]]),m[c].push(s)):m[c]=s):y[c]=h},o.core.pathSeparator=function(e){return e+"."+e},o.core.proxyArrayHandler={splice:{value:function(){return o.core.splice(this,Array.prototype.slice.call(arguments,0))}},shift:{value:function(){return o.core.shift(this,Array.prototype.slice.call(arguments,0))}},pop:{value:function(){return o.core.pop(this,Array.prototype.slice.call(arguments,0))}},push:{value:function(){return o.core.push(this,Array.prototype.slice.call(arguments,0))}},unshift:{value:function(){return o.core.unshift(this,Array.prototype.slice.call(arguments,0))}},reverse:{value:function(){return o.core.reverse(this)}},sort:{value:function(e){return o.core.sort(this,e)}}},o.core.proxyObjectHandler={set:function(e,t,r){return o.core.set(o.getObjectProxy(e),t,r),!0},deleteProperty:function(e,t){return o.core.delete(o.getObjectProxy(e),t),!0},get:function(e,t){return o.data.gets_collecting&&"string"==typeof t&&t!==o.cons.DOP&&e[t]!==Array.prototype[t]&&o.data.gets_paths.push(o.getObjectPath(e,!1).concat(t)),e[t]}},o.core.runDerivations=function(e){if(void 0!==o.data.path[e]&&void 0!==o.data.path[e].derivations)for(var t,r,n,i=o.data.path[e].derivations,a=i.length,s=0;s<a;++s)r=i[s],t=o.data.computed[r],void 0!==(n=o.util.get(t.object_root,t.path))&&o.core.set(n,t.prop,o.core.updateComputed(r,t,n,n[t.prop]))},o.core.setPatch=function(e,t,r){f(t)||(t=[t]);for(var n=0,i=t.length;n<i;++n)o.util.path(t[n],null,e,r);return e},o.core.setPatchFunctionMutator=function(e,t,r,n,i){if(!a(r)||r._name!=o.cons.REMOTE_FUNCTION_UNSETUP)return o.core.setPatchMutator(e,t,r,n,i);o.set(e,t,r(o.getObjectId(e),i.slice(0)))},o.core.setPatchMutator=function(e,t,r,n){var i,a,s=o.protocol.instructionsPatchs;if("array"==n){if((i=r[0])===s.object)o.set(e,t,o.util.clone(r[1]));else if(f(e[t])){f(i)||(r=[r]);for(var c=0,u=r.length;c<u;++c)(a=r[c])[0]===s.splice?o.core.splice(e[t],a[1]):a[0]===s.swaps&&o.core.swap(e[t],a[1])}return!0}"undefined"==n?o.del(e,t):"object"!=n&&o.set(e,t,r)},o.core.storeMutation=function(e){var t,r,n=o.data.collectors,i=o.data.path,a=0,s=n.length;if(t=r=e.path_id=o.core.getPathId(e.path),void 0===e.splice&&void 0===e.swaps&&(r+=o.core.pathSeparator(e.prop)),o.core.runInterceptors(i[t],"interceptors",e)&&o.core.runInterceptors(i[r],"interceptors_prop",e)){for(;a<s;a++)if(n[a].add(e))return o.core.runDerivations(t),void o.core.runDerivations(r);new o.core.snapshot([e]).emit(),o.core.runDerivations(t),o.core.runDerivations(r)}},o.core.runInterceptors=function(e,t,r){if(e&&(e=e[t])&&e.length>0)for(var n=0,i=e.length;n<i;++n)if(!0!==e[n](r,o.getObjectTarget(r.object)))return!1;return!0},o.core.updateComputed=function(e,t,r,n){var i,a,s,f,c,u,h,d=o.data.path,l=t.derivations,p=0;for(o.data.gets_collecting=!0,f=t.function.call(r,n),o.data.gets_collecting=!1,i=o.data.gets_paths,o.data.gets_paths=[],c=i.length;p<c;++p)for(s="",u=0,h=(a=i[p]).length;u<h;++u)s+=o.core.pathSeparator(a[u]),u>0&&(void 0===d[s]&&(d[s]={}),void 0===d[s].derivations&&(d[s].derivations=[]),d[s].derivations.indexOf(e)<0&&(d[s].derivations.push(e),l.push(s)));return-1===d[t.pathid].computeds.indexOf(e)&&d[t.pathid].computeds.push(e),f},o.core.connector=function(e){var t=new o.core.node;return e.unshift(o,t),t.options=e[2],t.transport=t.options.transport,t.options.transport.apply(this,e),t},o.core.createAsync=function(){var e,t,r=new Promise(function(r,n){e=r,t=n});return r.resolve=e,r.reject=t,r},o.core.createRemoteFunction=function(e){var t=function(t,r){var n=function(){return o.protocol.call(e,t,r,arguments)};return n._name=o.cons.REMOTE_FUNCTION,n};return t._name=o.cons.REMOTE_FUNCTION_UNSETUP,t},o.core.createRequest=function(e){var t=e.request_inc++,r=Array.prototype.slice.call(arguments,1);return e.requests[t]=r,r.unshift(t),r.promise=o.core.createAsync(),r},o.core.createResponse=function(){return arguments[0]=-1*arguments[0],Array.prototype.slice.call(arguments,0)};var u=/^\d\d\d\d-\d\d-\d\dT\d\d:\d\d:\d\d.\d\d\dZ$/,h=/\/(.+)\/([gimuy]{0,5})/;if(o.core.decode=function(e,t,r,n){if("string"==typeof t){if(t==o.protocol.instructionsPatchs.function)return o.core.createRemoteFunction(r);if(t==o.protocol.instructionsPatchs.undefined&&s(n))return void n.push([this,e]);if(t==o.protocol.instructionsPatchs.infinity)return 1/0;if(t==o.protocol.instructionsPatchs._infinity)return-1/0;if(t==o.protocol.instructionsPatchs.nan)return NaN;if(u.exec(t))return new Date(t);if(t.substr(0,2)==o.protocol.instructionsPatchs.regex){var i=h.exec(t.substr(2));return new RegExp(i[1],i[2])}if("~"==t[0])return t.substring(1)}return t},o.core.deleteRequest=function(e,t){clearTimeout(e.requests[t].timeout),delete e.requests[t]},o.core.emitNodes=function(e){var t,r,n,i,a;for(t in e)if(s(o.data.object[t]))for(r in(i=o.data.object[t]).node)1===i.node[r].subscriber&&(n=o.data.node[r],a=e[t].chunks,o.protocol.patch(n,Number(t),a.length>1?a:a[0]))},o.core.encode=function(e,t){var r=typeof t;return"undefined"==r?o.protocol.instructionsPatchs.undefined:"string"==r&&"~"==t[0]?"~"+t:"number"==r&&isNaN(t)?o.protocol.instructionsPatchs.nan:"object"==r&&t instanceof RegExp?o.protocol.instructionsPatchs.regex+t.toString():t===1/0?o.protocol.instructionsPatchs.infinity:t===-1/0?o.protocol.instructionsPatchs._infinity:t},o.core.encodeFunction=function(e,t){return a(t)&&!o.isBroadcastFunction(t)?o.protocol.instructionsPatchs.function:o.core.encode(e,t)},o.core.getRejectError=function(e){if("number"==typeof e&&void 0!==o.core.error.reject_remote[e]){var t=Array.prototype.slice.call(arguments,1);return t.unshift(o.core.error.reject_remote[e]),o.util.sprintf.apply(this,t)}return e},o.core.localProcedureCall=function(e,t,r,n,i,s){var f,c=o.core.createAsync();a(i)&&(c=i(c)),t.push(c),c.then(r).catch(n),(f=e.apply(s||c,t))!==c&&c.resolve(f)},o.core.registerNode=function(e){o.data.node[e.token]=e},o.core.registerObjectToNode=function(e,t){var r,n=o.getObjectId(t);return void 0===o.data.object[n]&&(o.data.object[n]={object:t,nodes_total:0,node:{}}),void 0===(r=o.data.object[n]).node[e.token]&&(r.nodes_total+=1,r.node[e.token]={subscriber:0,owner:0,version:0,pending:[],applied_version:0,applied:{}}),r},o.core.registerOwner=function(e,t,r){var n=o.core.registerObjectToNode(e,t),i=o.getObjectId(n.object);n.node[e.token].owner=r,e.owner[r]=i},o.core.registerSubscriber=function(e,t){var r=o.core.registerObjectToNode(e,t),n=o.getObjectId(r.object);return e.subscriber[n]=!0,!r.node[e.token].subscriber&&(r.node[e.token].subscriber=1,!0)},o.core.sendMessages=function(e){var t=e.message_queue.length;if(t>0&&e.connected){for(var r,n,i,a=0,s=[];a<t;++a)if(n=e.message_queue[a][0],s.push(e.message_queue[a][1](n)),(i=n[0])>0){var f=o.protocol.instructions[n[1]];n.timeout=setTimeout(function(){o.protocol["on"+f+"timeout"](e,i,n),delete e.requests[i]},o.protocol.timeouts[f])}r=a>1?"["+s.join(",")+"]":s[0],e.message_queue=[],e.send(r)}},o.core.setSocketToNode=function(e,t){e.socket=t,t[o.cons.TOKEN]=e.token},o.core.storeMessage=function(e,t,r){"function"!=typeof r&&(r=o.encode),e.message_queue.push([t,r])},o.core.storeSendMessages=function(e,t,r){o.core.storeMessage(e,t,r),o.core.sendMessages(e)},o.core.unregisterNode=function(e){var t,r,n;for(t in e.subscriber)void 0!==(n=o.data.object[t])&&void 0!==n.node[e.token]&&(n.nodes_total-=1,delete n.node[e.token]);for(r in e.owner)t=e.owner[r],void 0!==(n=o.data.object[t])&&void 0!==n.node[e.token]&&(n.nodes_total-=1,delete n.node[e.token]);void 0!==n&&0===n.nodes_total&&delete o.data.object[t],delete o.data.node[e.token]},o.protocol._onbroadcast=function(e,t,r,n){o.protocol._oncall(e,t,r,n)},o.protocol._oncall=function(e,t,r,n){var i=n[0],a=r.promise;void 0!==i&&(0===i?a.resolve(n[1]):i===o.core.error.reject_remote.CUSTOM_REJECTION?a.reject(n[1]):a.reject(o.core.getRejectError(i)))},o.protocol._onpatch=function(e,t,r,n){var i,a=n[0],s=r[2],f=o.data.object[s].node[e.token],c=r[3],u=f.pending,h=r.promise,d=0,l=u.length;if(void 0!==a)if(0===a){for(;d<l;d++){if((i=u[d][0])>=c){i===c&&u.splice(d,1);break}o.protocol.patchSend(e,s,i,u[d][1])}h.resolve(n[1])}else h.reject(o.core.getRejectError(a))},o.protocol._onsubscribe=function(e,t,r,n){if(void 0!==n[0])if(0!==n[0])r.promise.reject(o.core.getRejectError(n[0]));else{var i,a,c=n[1],u=n[2],h=f(u)?u:[];void 0===e.owner[c]?(u===h&&r.promise.reject(o.core.error.reject_local.OBJECT_NOT_FOUND),a=o.collect(),i=o.isRegistered(r.into)?o.core.setPatch(r.into,u,o.core.setPatchFunctionMutator):o.register(void 0===r.into?u:o.core.setPatch(r.into,u,o.core.setPatchMutator)),o.core.registerOwner(e,i,c),a.emit()):i=o.data.object[e.owner[c]].object,s(i=o.util.get(i,h))?r.promise.resolve(o.getObjectProxy(i)):r.promise.reject(o.core.error.reject_local.OBJECT_NOT_FOUND)}},o.protocol._onunsubscribe=function(e,t,r,n){if(void 0!==n[0])if(0!==n[0])r.promise.reject(n[0]);else{var i=r[2],a=e.owner[i],f=o.data.object[a];if(s(f)&&s(f.node[e.token])&&f.node[e.token].owner===i){var c=f.node[e.token];c.owner=0,0===c.subscriber&&(f.nodes_total-=1),0===f.nodes_total&&delete o.data.object[a],r.promise.resolve()}}},o.protocol.broadcast=function(e,t,r){var n=o.data.object[e],i=[];if(s(n)&&s(n.node)){var a,f,c,u=n.node;for(a in r=Array.prototype.slice.call(r,0),u)1===u[a].subscriber&&(f=o.data.node[a],(c=o.core.createRequest(f,o.protocol.instructions.broadcast,e,t,r)).promise.node=f,o.core.storeSendMessages(f,c),i.push(c.promise))}return i},o.protocol.call=function(e,t,r,n){var i=o.data.object[t];if(s(i)&&s(i.node[e.token])&&i.node[e.token].owner>0){n=Array.prototype.slice.call(n,0);var a=o.core.createRequest(e,o.protocol.instructions.call,i.node[e.token].owner,r,n);return o.core.storeSendMessages(e,a),a.promise}return Promise.reject(o.core.error.reject_local.NODE_NOT_FOUND)},o.protocol.instructions={subscribe:1,unsubscribe:2,call:3,broadcast:4,patch:5,1:"subscribe",2:"unsubscribe",3:"call",4:"broadcast",5:"patch"},o.protocol.instructionsPatchs={undefined:"~U",function:"~F",object:0,splice:1,swaps:2,nan:"~N",regex:"~R",infinity:"~I",_infinity:"~i"},o.protocol.onbroadcast=function(e,t,r){o.protocol.onfunction(e,t,r,e.owner[r[1]],function(e){return e.owner===r[1]})},o.protocol.oncall=function(e,t,r){o.protocol.onfunction(e,t,r,r[1],function(e){return 1===e.subscriber})},o.protocol.onfunction=function(e,t,r,n,i){var f=r[2],c=r[3],u=o.data.object[n];if(s(u)&&s(u.node[e.token])&&i(u.node[e.token])){var h=f.pop(),d=o.util.get(u.object,f),l=d[h];if(a(l)&&!o.isBroadcastFunction(l)){function p(r){var n=o.core.createResponse(t,0);return void 0!==r&&n.push(r),o.core.storeSendMessages(e,n),r}function b(r){o.core.storeSendMessages(e,o.core.createResponse(t,o.core.error.reject_remote.CUSTOM_REJECTION,r))}return void(o.isRemoteFunction(l)?l.apply(null,c).then(p).catch(b):o.core.localProcedureCall(l,c,p,b,function(t){return t.node=e,t},o.getObjectProxy(d)))}}o.core.storeSendMessages(e,o.core.createResponse(t,o.core.error.reject_remote.FUNCTION_NOT_FOUND))},o.protocol.onpatch=function(e,t,r){var n,i,a=r[1],f=e.owner[a],c=r[2],u=r[3],h=o.core.createResponse(t),d=o.data.object[f];if(s(d)&&s(d.node[e.token])&&d.node[e.token].owner===a){if((n=d.node[e.token]).applied_version<c&&void 0===n.applied[c]){for(n.applied[c]=u,i=o.collect();n.applied[n.applied_version+1];)n.applied_version+=1,o.core.setPatch(d.object,n.applied[n.applied_version],o.core.setPatchFunctionMutator),delete n.applied[n.applied_version];i.emit()}h.push(0)}else h.push(o.core.error.reject_remote.OBJECT_NOT_FOUND);o.core.storeSendMessages(e,h)},o.protocol.onpatchtimeout=function(e,t,r){o.protocol.patchSend(e,r[2],r[3],r[4])},o.protocol.onsubscribe=function(e,t,r){if(a(o.data.onsubscribe)){var n=Array.prototype.slice.call(r,1);o.core.localProcedureCall(o.data.onsubscribe,n,function(r){if(o.isPojoObject(r)){var n=o.register(r),i=o.getObjectRoot(n),a=o.getObjectPath(n),s=a[0],f=o.core.createResponse(t,0);return o.core.registerSubscriber(e,i)?f.push(s,i):f.push(s,a.slice(1)),o.core.storeSendMessages(e,f,o.encodeFunction),n}if(void 0===r)return Promise.reject(o.core.error.reject_remote.OBJECT_NOT_FOUND);o.util.invariant(!1,"dop.onsubscribe callback must return or resolve a regular object")},i,function(t){return t.node=e,t})}else i(o.core.error.reject_remote.OBJECT_NOT_FOUND);function i(r){var n=o.core.createResponse(t);r instanceof Error?console.log(r.stack):n.push(r),o.core.storeSendMessages(e,n,JSON.stringify)}},o.protocol.onsubscribetimeout=o.protocol.onunsubscribetimeout=o.protocol.oncalltimeout=o.protocol.onbroadcasttimeout=function(e,t,r){r.promise.reject(o.core.error.reject_local.TIMEOUT_REQUEST)},o.protocol.onunsubscribe=function(e,t,r){var n=r[1],i=o.data.object[n],a=o.core.createResponse(t);if(s(i)&&s(i.node[e.token])&&i.node[e.token].subscriber){var f=i.node[e.token];f.subscriber=0,0===f.owner&&(i.nodes_total-=1),0===i.nodes_total&&delete o.data.object[n],a.push(0)}else a.push(o.core.error.reject_remote.SUBSCRIPTION_NOT_FOUND);o.core.storeSendMessages(e,a)},o.protocol.patch=function(e,t,r){var n=o.data.object[t].node[e.token],i=++n.version;return n.pending.push([i,o.util.merge({},r)]),o.protocol.patchSend(e,t,i,r)},o.protocol.patchSend=function(e,t,r,n){var i=o.core.createRequest(e,o.protocol.instructions.patch,t,r,n);return o.core.storeSendMessages(e,i,o.encodeFunction),i.promise},o.protocol.subscribe=function(e,t){(t=Array.prototype.slice.call(t,0)).unshift(e,o.protocol.instructions.subscribe);var r=o.core.createRequest.apply(e,t);return r.promise.into=function(e){return o.isPojoObject(e)&&(r.into=o.isRegistered(e)?o.getObjectProxy(e):e),delete r.promise.into,r.promise},o.core.storeSendMessages(e,r),r.promise},o.protocol.timeouts={subscribe:5e3,unsubscribe:5e3,call:1e4,broadcast:1e4,patch:1e3},o.protocol.unsubscribe=function(e,t){var r=o.getObjectId(t),n=o.data.object[r];if(s(n)&&s(n.node[e.token])&&n.node[e.token].owner>0){var i=o.core.createRequest(e,o.protocol.instructions.unsubscribe,n.node[e.token].owner);return o.core.storeSendMessages(e,i),i.promise}return Promise.reject(o.core.error.reject_remote[2])},void 0===i)return o;void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}(this)},,function(e,t,r){(function(e){!function(e,t){"use strict";function n(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function o(e,t,r){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(r=t,t=10),this._init(e||0,t||10,r||"be"))}var Buffer;"object"==typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{Buffer=r(284).Buffer}catch(e){}function a(e,t,r){for(var n=0,i=Math.min(e.length,r),o=t;o<i;o++){var a=e.charCodeAt(o)-48;n<<=4,n|=a>=49&&a<=54?a-49+10:a>=17&&a<=22?a-17+10:15&a}return n}function s(e,t,r,n){for(var i=0,o=Math.min(e.length,r),a=t;a<o;a++){var s=e.charCodeAt(a)-48;i*=n,i+=s>=49?s-49+10:s>=17?s-17+10:s}return i}o.isBN=function(e){return e instanceof o||null!==e&&"object"==typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&i++,16===t?this._parseHex(e,i):this._parseBase(e,t,i),"-"===e[0]&&(this.negative=1),this.strip(),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(n(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initArray=function(e,t,r){if(n("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var o,a,s=0;if("be"===r)for(i=e.length-1,o=0;i>=0;i-=3)a=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(i=0,o=0;i<e.length;i+=3)a=e[i]|e[i+1]<<8|e[i+2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var n,i,o=0;for(r=e.length-6,n=0;r>=t;r-=6)i=a(e,r,r+6),this.words[n]|=i<<o&67108863,this.words[n+1]|=i>>>26-o&4194303,(o+=24)>=26&&(o-=26,n++);r+6!==t&&(i=a(e,t,r+6),this.words[n]|=i<<o&67108863,this.words[n+1]|=i>>>26-o&4194303),this.strip()},o.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var o=e.length-r,a=o%n,f=Math.min(o,o-a)+r,c=0,u=r;u<f;u+=n)c=s(e,u,u+n,t),this.imuln(i),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(0!==a){var h=1;for(c=s(e,u,e.length,t),u=0;u<a;u++)h*=t;this.imuln(h),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c)}},o.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},o.prototype.clone=function(){var e=new o(null);return this.copy(e),e},o.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var f=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],c=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],u=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function h(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,f=a/67108864|0;r.words[0]=s;for(var c=1;c<n;c++){for(var u=f>>>26,h=67108863&f,d=Math.min(c,t.length-1),l=Math.max(0,c-e.length+1);l<=d;l++){var p=c-l|0;u+=(a=(i=0|e.words[p])*(o=0|t.words[l])+h)/67108864|0,h=67108863&a}r.words[c]=0|h,f=0|u}return 0!==f?r.words[c]=0|f:r.length--,r.strip()}o.prototype.toString=function(e,t){var r;if(e=e||10,t=0|t||1,16===e||"hex"===e){r="";for(var i=0,o=0,a=0;a<this.length;a++){var s=this.words[a],h=(16777215&(s<<i|o)).toString(16);r=0!==(o=s>>>24-i&16777215)||a!==this.length-1?f[6-h.length]+h+r:h+r,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(r=o.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var d=c[e],l=u[e];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var b=p.modn(l).toString(e);r=(p=p.idivn(l)).isZero()?b+r:f[d-b.length]+b+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(e,t){return n(void 0!==Buffer),this.toArrayLike(Buffer,e,t)},o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,r){var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var a,s,f="le"===t,c=new e(o),u=this.clone();if(f){for(s=0;!u.isZero();s++)a=u.andln(255),u.iushrn(8),c[s]=a;for(;s<o;s++)c[s]=0}else{for(s=0;s<o-i;s++)c[s]=0;for(s=0;!u.isZero();s++)a=u.andln(255),u.iushrn(8),c[o-s-1]=a}return c},Math.clz32?o.prototype._countBits=function(e){return 32-Math.clz32(e)}:o.prototype._countBits=function(e){var t=e,r=0;return t>=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 0==(8191&t)&&(r+=13,t>>>=13),0==(127&t)&&(r+=7,t>>>=7),0==(15&t)&&(r+=4,t>>>=4),0==(3&t)&&(r+=2,t>>>=2),0==(1&t)&&r++,r},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var r=this._zeroBits(this.words[t]);if(e+=r,26!==r)break}return e},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},o.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this.strip()},o.prototype.ior=function(e){return n(0==(this.negative|e.negative)),this.iuor(e)},o.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;r<t.length;r++)this.words[r]=this.words[r]&e.words[r];return this.length=t.length,this.strip()},o.prototype.iand=function(e){return n(0==(this.negative|e.negative)),this.iuand(e)},o.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var n=0;n<r.length;n++)this.words[n]=t.words[n]^r.words[n];if(this!==t)for(;n<t.length;n++)this.words[n]=t.words[n];return this.length=t.length,this.strip()},o.prototype.ixor=function(e){return n(0==(this.negative|e.negative)),this.iuxor(e)},o.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i<t;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<<i:this.words[r]&~(1<<i),this.strip()},o.prototype.iadd=function(e){var t,r,n;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(r=this,n=e):(r=e,n=this);for(var i=0,o=0;o<n.length;o++)t=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=67108863&t,i=t>>>26;for(;0!==i&&o<r.length;o++)t=(0|r.words[o])+i,this.words[o]=67108863&t,i=t>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},o.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var r,n,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=e):(r=e,n=this);for(var o=0,a=0;a<n.length;a++)o=(t=(0|r.words[a])-(0|n.words[a])+o)>>26,this.words[a]=67108863&t;for(;0!==o&&a<r.length;a++)o=(t=(0|r.words[a])+o)>>26,this.words[a]=67108863&t;if(0===o&&a<r.length&&r!==this)for(;a<r.length;a++)this.words[a]=r.words[a];return this.length=Math.max(this.length,a),r!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(e){return this.clone().isub(e)};var d=function(e,t,r){var n,i,o,a=e.words,s=t.words,f=r.words,c=0,u=0|a[0],h=8191&u,d=u>>>13,l=0|a[1],p=8191&l,b=l>>>13,v=0|a[2],y=8191&v,m=v>>>13,g=0|a[3],w=8191&g,_=g>>>13,E=0|a[4],S=8191&E,A=E>>>13,I=0|a[5],k=8191&I,x=I>>>13,P=0|a[6],O=8191&P,T=P>>>13,M=0|a[7],N=8191&M,B=M>>>13,C=0|a[8],R=8191&C,L=C>>>13,j=0|a[9],U=8191&j,D=j>>>13,F=0|s[0],z=8191&F,q=F>>>13,H=0|s[1],K=8191&H,V=H>>>13,G=0|s[2],Y=8191&G,W=G>>>13,J=0|s[3],X=8191&J,Z=J>>>13,$=0|s[4],Q=8191&$,ee=$>>>13,te=0|s[5],re=8191&te,ne=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],fe=8191&se,ce=se>>>13,ue=0|s[8],he=8191&ue,de=ue>>>13,le=0|s[9],pe=8191&le,be=le>>>13;r.negative=e.negative^t.negative,r.length=19;var ve=(c+(n=Math.imul(h,z))|0)+((8191&(i=(i=Math.imul(h,q))+Math.imul(d,z)|0))<<13)|0;c=((o=Math.imul(d,q))+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(p,z),i=(i=Math.imul(p,q))+Math.imul(b,z)|0,o=Math.imul(b,q);var ye=(c+(n=n+Math.imul(h,K)|0)|0)+((8191&(i=(i=i+Math.imul(h,V)|0)+Math.imul(d,K)|0))<<13)|0;c=((o=o+Math.imul(d,V)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(y,z),i=(i=Math.imul(y,q))+Math.imul(m,z)|0,o=Math.imul(m,q),n=n+Math.imul(p,K)|0,i=(i=i+Math.imul(p,V)|0)+Math.imul(b,K)|0,o=o+Math.imul(b,V)|0;var me=(c+(n=n+Math.imul(h,Y)|0)|0)+((8191&(i=(i=i+Math.imul(h,W)|0)+Math.imul(d,Y)|0))<<13)|0;c=((o=o+Math.imul(d,W)|0)+(i>>>13)|0)+(me>>>26)|0,me&=67108863,n=Math.imul(w,z),i=(i=Math.imul(w,q))+Math.imul(_,z)|0,o=Math.imul(_,q),n=n+Math.imul(y,K)|0,i=(i=i+Math.imul(y,V)|0)+Math.imul(m,K)|0,o=o+Math.imul(m,V)|0,n=n+Math.imul(p,Y)|0,i=(i=i+Math.imul(p,W)|0)+Math.imul(b,Y)|0,o=o+Math.imul(b,W)|0;var ge=(c+(n=n+Math.imul(h,X)|0)|0)+((8191&(i=(i=i+Math.imul(h,Z)|0)+Math.imul(d,X)|0))<<13)|0;c=((o=o+Math.imul(d,Z)|0)+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(S,z),i=(i=Math.imul(S,q))+Math.imul(A,z)|0,o=Math.imul(A,q),n=n+Math.imul(w,K)|0,i=(i=i+Math.imul(w,V)|0)+Math.imul(_,K)|0,o=o+Math.imul(_,V)|0,n=n+Math.imul(y,Y)|0,i=(i=i+Math.imul(y,W)|0)+Math.imul(m,Y)|0,o=o+Math.imul(m,W)|0,n=n+Math.imul(p,X)|0,i=(i=i+Math.imul(p,Z)|0)+Math.imul(b,X)|0,o=o+Math.imul(b,Z)|0;var we=(c+(n=n+Math.imul(h,Q)|0)|0)+((8191&(i=(i=i+Math.imul(h,ee)|0)+Math.imul(d,Q)|0))<<13)|0;c=((o=o+Math.imul(d,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(k,z),i=(i=Math.imul(k,q))+Math.imul(x,z)|0,o=Math.imul(x,q),n=n+Math.imul(S,K)|0,i=(i=i+Math.imul(S,V)|0)+Math.imul(A,K)|0,o=o+Math.imul(A,V)|0,n=n+Math.imul(w,Y)|0,i=(i=i+Math.imul(w,W)|0)+Math.imul(_,Y)|0,o=o+Math.imul(_,W)|0,n=n+Math.imul(y,X)|0,i=(i=i+Math.imul(y,Z)|0)+Math.imul(m,X)|0,o=o+Math.imul(m,Z)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(b,Q)|0,o=o+Math.imul(b,ee)|0;var _e=(c+(n=n+Math.imul(h,re)|0)|0)+((8191&(i=(i=i+Math.imul(h,ne)|0)+Math.imul(d,re)|0))<<13)|0;c=((o=o+Math.imul(d,ne)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(O,z),i=(i=Math.imul(O,q))+Math.imul(T,z)|0,o=Math.imul(T,q),n=n+Math.imul(k,K)|0,i=(i=i+Math.imul(k,V)|0)+Math.imul(x,K)|0,o=o+Math.imul(x,V)|0,n=n+Math.imul(S,Y)|0,i=(i=i+Math.imul(S,W)|0)+Math.imul(A,Y)|0,o=o+Math.imul(A,W)|0,n=n+Math.imul(w,X)|0,i=(i=i+Math.imul(w,Z)|0)+Math.imul(_,X)|0,o=o+Math.imul(_,Z)|0,n=n+Math.imul(y,Q)|0,i=(i=i+Math.imul(y,ee)|0)+Math.imul(m,Q)|0,o=o+Math.imul(m,ee)|0,n=n+Math.imul(p,re)|0,i=(i=i+Math.imul(p,ne)|0)+Math.imul(b,re)|0,o=o+Math.imul(b,ne)|0;var Ee=(c+(n=n+Math.imul(h,oe)|0)|0)+((8191&(i=(i=i+Math.imul(h,ae)|0)+Math.imul(d,oe)|0))<<13)|0;c=((o=o+Math.imul(d,ae)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(N,z),i=(i=Math.imul(N,q))+Math.imul(B,z)|0,o=Math.imul(B,q),n=n+Math.imul(O,K)|0,i=(i=i+Math.imul(O,V)|0)+Math.imul(T,K)|0,o=o+Math.imul(T,V)|0,n=n+Math.imul(k,Y)|0,i=(i=i+Math.imul(k,W)|0)+Math.imul(x,Y)|0,o=o+Math.imul(x,W)|0,n=n+Math.imul(S,X)|0,i=(i=i+Math.imul(S,Z)|0)+Math.imul(A,X)|0,o=o+Math.imul(A,Z)|0,n=n+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(_,Q)|0,o=o+Math.imul(_,ee)|0,n=n+Math.imul(y,re)|0,i=(i=i+Math.imul(y,ne)|0)+Math.imul(m,re)|0,o=o+Math.imul(m,ne)|0,n=n+Math.imul(p,oe)|0,i=(i=i+Math.imul(p,ae)|0)+Math.imul(b,oe)|0,o=o+Math.imul(b,ae)|0;var Se=(c+(n=n+Math.imul(h,fe)|0)|0)+((8191&(i=(i=i+Math.imul(h,ce)|0)+Math.imul(d,fe)|0))<<13)|0;c=((o=o+Math.imul(d,ce)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(R,z),i=(i=Math.imul(R,q))+Math.imul(L,z)|0,o=Math.imul(L,q),n=n+Math.imul(N,K)|0,i=(i=i+Math.imul(N,V)|0)+Math.imul(B,K)|0,o=o+Math.imul(B,V)|0,n=n+Math.imul(O,Y)|0,i=(i=i+Math.imul(O,W)|0)+Math.imul(T,Y)|0,o=o+Math.imul(T,W)|0,n=n+Math.imul(k,X)|0,i=(i=i+Math.imul(k,Z)|0)+Math.imul(x,X)|0,o=o+Math.imul(x,Z)|0,n=n+Math.imul(S,Q)|0,i=(i=i+Math.imul(S,ee)|0)+Math.imul(A,Q)|0,o=o+Math.imul(A,ee)|0,n=n+Math.imul(w,re)|0,i=(i=i+Math.imul(w,ne)|0)+Math.imul(_,re)|0,o=o+Math.imul(_,ne)|0,n=n+Math.imul(y,oe)|0,i=(i=i+Math.imul(y,ae)|0)+Math.imul(m,oe)|0,o=o+Math.imul(m,ae)|0,n=n+Math.imul(p,fe)|0,i=(i=i+Math.imul(p,ce)|0)+Math.imul(b,fe)|0,o=o+Math.imul(b,ce)|0;var Ae=(c+(n=n+Math.imul(h,he)|0)|0)+((8191&(i=(i=i+Math.imul(h,de)|0)+Math.imul(d,he)|0))<<13)|0;c=((o=o+Math.imul(d,de)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(U,z),i=(i=Math.imul(U,q))+Math.imul(D,z)|0,o=Math.imul(D,q),n=n+Math.imul(R,K)|0,i=(i=i+Math.imul(R,V)|0)+Math.imul(L,K)|0,o=o+Math.imul(L,V)|0,n=n+Math.imul(N,Y)|0,i=(i=i+Math.imul(N,W)|0)+Math.imul(B,Y)|0,o=o+Math.imul(B,W)|0,n=n+Math.imul(O,X)|0,i=(i=i+Math.imul(O,Z)|0)+Math.imul(T,X)|0,o=o+Math.imul(T,Z)|0,n=n+Math.imul(k,Q)|0,i=(i=i+Math.imul(k,ee)|0)+Math.imul(x,Q)|0,o=o+Math.imul(x,ee)|0,n=n+Math.imul(S,re)|0,i=(i=i+Math.imul(S,ne)|0)+Math.imul(A,re)|0,o=o+Math.imul(A,ne)|0,n=n+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,ae)|0)+Math.imul(_,oe)|0,o=o+Math.imul(_,ae)|0,n=n+Math.imul(y,fe)|0,i=(i=i+Math.imul(y,ce)|0)+Math.imul(m,fe)|0,o=o+Math.imul(m,ce)|0,n=n+Math.imul(p,he)|0,i=(i=i+Math.imul(p,de)|0)+Math.imul(b,he)|0,o=o+Math.imul(b,de)|0;var Ie=(c+(n=n+Math.imul(h,pe)|0)|0)+((8191&(i=(i=i+Math.imul(h,be)|0)+Math.imul(d,pe)|0))<<13)|0;c=((o=o+Math.imul(d,be)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,n=Math.imul(U,K),i=(i=Math.imul(U,V))+Math.imul(D,K)|0,o=Math.imul(D,V),n=n+Math.imul(R,Y)|0,i=(i=i+Math.imul(R,W)|0)+Math.imul(L,Y)|0,o=o+Math.imul(L,W)|0,n=n+Math.imul(N,X)|0,i=(i=i+Math.imul(N,Z)|0)+Math.imul(B,X)|0,o=o+Math.imul(B,Z)|0,n=n+Math.imul(O,Q)|0,i=(i=i+Math.imul(O,ee)|0)+Math.imul(T,Q)|0,o=o+Math.imul(T,ee)|0,n=n+Math.imul(k,re)|0,i=(i=i+Math.imul(k,ne)|0)+Math.imul(x,re)|0,o=o+Math.imul(x,ne)|0,n=n+Math.imul(S,oe)|0,i=(i=i+Math.imul(S,ae)|0)+Math.imul(A,oe)|0,o=o+Math.imul(A,ae)|0,n=n+Math.imul(w,fe)|0,i=(i=i+Math.imul(w,ce)|0)+Math.imul(_,fe)|0,o=o+Math.imul(_,ce)|0,n=n+Math.imul(y,he)|0,i=(i=i+Math.imul(y,de)|0)+Math.imul(m,he)|0,o=o+Math.imul(m,de)|0;var ke=(c+(n=n+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,be)|0)+Math.imul(b,pe)|0))<<13)|0;c=((o=o+Math.imul(b,be)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(U,Y),i=(i=Math.imul(U,W))+Math.imul(D,Y)|0,o=Math.imul(D,W),n=n+Math.imul(R,X)|0,i=(i=i+Math.imul(R,Z)|0)+Math.imul(L,X)|0,o=o+Math.imul(L,Z)|0,n=n+Math.imul(N,Q)|0,i=(i=i+Math.imul(N,ee)|0)+Math.imul(B,Q)|0,o=o+Math.imul(B,ee)|0,n=n+Math.imul(O,re)|0,i=(i=i+Math.imul(O,ne)|0)+Math.imul(T,re)|0,o=o+Math.imul(T,ne)|0,n=n+Math.imul(k,oe)|0,i=(i=i+Math.imul(k,ae)|0)+Math.imul(x,oe)|0,o=o+Math.imul(x,ae)|0,n=n+Math.imul(S,fe)|0,i=(i=i+Math.imul(S,ce)|0)+Math.imul(A,fe)|0,o=o+Math.imul(A,ce)|0,n=n+Math.imul(w,he)|0,i=(i=i+Math.imul(w,de)|0)+Math.imul(_,he)|0,o=o+Math.imul(_,de)|0;var xe=(c+(n=n+Math.imul(y,pe)|0)|0)+((8191&(i=(i=i+Math.imul(y,be)|0)+Math.imul(m,pe)|0))<<13)|0;c=((o=o+Math.imul(m,be)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(U,X),i=(i=Math.imul(U,Z))+Math.imul(D,X)|0,o=Math.imul(D,Z),n=n+Math.imul(R,Q)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(L,Q)|0,o=o+Math.imul(L,ee)|0,n=n+Math.imul(N,re)|0,i=(i=i+Math.imul(N,ne)|0)+Math.imul(B,re)|0,o=o+Math.imul(B,ne)|0,n=n+Math.imul(O,oe)|0,i=(i=i+Math.imul(O,ae)|0)+Math.imul(T,oe)|0,o=o+Math.imul(T,ae)|0,n=n+Math.imul(k,fe)|0,i=(i=i+Math.imul(k,ce)|0)+Math.imul(x,fe)|0,o=o+Math.imul(x,ce)|0,n=n+Math.imul(S,he)|0,i=(i=i+Math.imul(S,de)|0)+Math.imul(A,he)|0,o=o+Math.imul(A,de)|0;var Pe=(c+(n=n+Math.imul(w,pe)|0)|0)+((8191&(i=(i=i+Math.imul(w,be)|0)+Math.imul(_,pe)|0))<<13)|0;c=((o=o+Math.imul(_,be)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,n=Math.imul(U,Q),i=(i=Math.imul(U,ee))+Math.imul(D,Q)|0,o=Math.imul(D,ee),n=n+Math.imul(R,re)|0,i=(i=i+Math.imul(R,ne)|0)+Math.imul(L,re)|0,o=o+Math.imul(L,ne)|0,n=n+Math.imul(N,oe)|0,i=(i=i+Math.imul(N,ae)|0)+Math.imul(B,oe)|0,o=o+Math.imul(B,ae)|0,n=n+Math.imul(O,fe)|0,i=(i=i+Math.imul(O,ce)|0)+Math.imul(T,fe)|0,o=o+Math.imul(T,ce)|0,n=n+Math.imul(k,he)|0,i=(i=i+Math.imul(k,de)|0)+Math.imul(x,he)|0,o=o+Math.imul(x,de)|0;var Oe=(c+(n=n+Math.imul(S,pe)|0)|0)+((8191&(i=(i=i+Math.imul(S,be)|0)+Math.imul(A,pe)|0))<<13)|0;c=((o=o+Math.imul(A,be)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,n=Math.imul(U,re),i=(i=Math.imul(U,ne))+Math.imul(D,re)|0,o=Math.imul(D,ne),n=n+Math.imul(R,oe)|0,i=(i=i+Math.imul(R,ae)|0)+Math.imul(L,oe)|0,o=o+Math.imul(L,ae)|0,n=n+Math.imul(N,fe)|0,i=(i=i+Math.imul(N,ce)|0)+Math.imul(B,fe)|0,o=o+Math.imul(B,ce)|0,n=n+Math.imul(O,he)|0,i=(i=i+Math.imul(O,de)|0)+Math.imul(T,he)|0,o=o+Math.imul(T,de)|0;var Te=(c+(n=n+Math.imul(k,pe)|0)|0)+((8191&(i=(i=i+Math.imul(k,be)|0)+Math.imul(x,pe)|0))<<13)|0;c=((o=o+Math.imul(x,be)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(U,oe),i=(i=Math.imul(U,ae))+Math.imul(D,oe)|0,o=Math.imul(D,ae),n=n+Math.imul(R,fe)|0,i=(i=i+Math.imul(R,ce)|0)+Math.imul(L,fe)|0,o=o+Math.imul(L,ce)|0,n=n+Math.imul(N,he)|0,i=(i=i+Math.imul(N,de)|0)+Math.imul(B,he)|0,o=o+Math.imul(B,de)|0;var Me=(c+(n=n+Math.imul(O,pe)|0)|0)+((8191&(i=(i=i+Math.imul(O,be)|0)+Math.imul(T,pe)|0))<<13)|0;c=((o=o+Math.imul(T,be)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(U,fe),i=(i=Math.imul(U,ce))+Math.imul(D,fe)|0,o=Math.imul(D,ce),n=n+Math.imul(R,he)|0,i=(i=i+Math.imul(R,de)|0)+Math.imul(L,he)|0,o=o+Math.imul(L,de)|0;var Ne=(c+(n=n+Math.imul(N,pe)|0)|0)+((8191&(i=(i=i+Math.imul(N,be)|0)+Math.imul(B,pe)|0))<<13)|0;c=((o=o+Math.imul(B,be)|0)+(i>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,n=Math.imul(U,he),i=(i=Math.imul(U,de))+Math.imul(D,he)|0,o=Math.imul(D,de);var Be=(c+(n=n+Math.imul(R,pe)|0)|0)+((8191&(i=(i=i+Math.imul(R,be)|0)+Math.imul(L,pe)|0))<<13)|0;c=((o=o+Math.imul(L,be)|0)+(i>>>13)|0)+(Be>>>26)|0,Be&=67108863;var Ce=(c+(n=Math.imul(U,pe))|0)+((8191&(i=(i=Math.imul(U,be))+Math.imul(D,pe)|0))<<13)|0;return c=((o=Math.imul(D,be))+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,f[0]=ve,f[1]=ye,f[2]=me,f[3]=ge,f[4]=we,f[5]=_e,f[6]=Ee,f[7]=Se,f[8]=Ae,f[9]=Ie,f[10]=ke,f[11]=xe,f[12]=Pe,f[13]=Oe,f[14]=Te,f[15]=Me,f[16]=Ne,f[17]=Be,f[18]=Ce,0!==c&&(f[19]=c,r.length++),r};function l(e,t,r){return(new p).mulp(e,t,r)}function p(e,t){this.x=e,this.y=t}Math.imul||(d=h),o.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?d(this,e,t):r<63?h(this,e,t):r<1024?function(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,o=0;o<r.length-1;o++){var a=i;i=0;for(var s=67108863&n,f=Math.min(o,t.length-1),c=Math.max(0,o-e.length+1);c<=f;c++){var u=o-c,h=(0|e.words[u])*(0|t.words[c]),d=67108863&h;s=67108863&(d=d+s|0),i+=(a=(a=a+(h/67108864|0)|0)+(d>>>26)|0)>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}(this,e,t):l(this,e,t)},p.prototype.makeRBT=function(e){for(var t=new Array(e),r=o.prototype._countBits(e)-1,n=0;n<e;n++)t[n]=this.revBin(n,r,e);return t},p.prototype.revBin=function(e,t,r){if(0===e||e===r-1)return e;for(var n=0,i=0;i<t;i++)n|=(1&e)<<t-i-1,e>>=1;return n},p.prototype.permute=function(e,t,r,n,i,o){for(var a=0;a<o;a++)n[a]=t[e[a]],i[a]=r[e[a]]},p.prototype.transform=function(e,t,r,n,i,o){this.permute(o,e,t,r,n,i);for(var a=1;a<i;a<<=1)for(var s=a<<1,f=Math.cos(2*Math.PI/s),c=Math.sin(2*Math.PI/s),u=0;u<i;u+=s)for(var h=f,d=c,l=0;l<a;l++){var p=r[u+l],b=n[u+l],v=r[u+l+a],y=n[u+l+a],m=h*v-d*y;y=h*y+d*v,v=m,r[u+l]=p+v,n[u+l]=b+y,r[u+l+a]=p-v,n[u+l+a]=b-y,l!==s&&(m=f*h-c*d,d=f*d+c*h,h=m)}},p.prototype.guessLen13b=function(e,t){var r=1|Math.max(t,e),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},p.prototype.conjugate=function(e,t,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=e[n];e[n]=e[r-n-1],e[r-n-1]=i,i=t[n],t[n]=-t[r-n-1],t[r-n-1]=-i}},p.prototype.normalize13b=function(e,t){for(var r=0,n=0;n<t/2;n++){var i=8192*Math.round(e[2*n+1]/t)+Math.round(e[2*n]/t)+r;e[n]=67108863&i,r=i<67108864?0:i/67108864|0}return e},p.prototype.convert13b=function(e,t,r,i){for(var o=0,a=0;a<t;a++)o+=0|e[a],r[2*a]=8191&o,o>>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*t;a<i;++a)r[a]=0;n(0===o),n(0==(-8192&o))},p.prototype.stub=function(e){for(var t=new Array(e),r=0;r<e;r++)t[r]=0;return t},p.prototype.mulp=function(e,t,r){var n=2*this.guessLen13b(e.length,t.length),i=this.makeRBT(n),o=this.stub(n),a=new Array(n),s=new Array(n),f=new Array(n),c=new Array(n),u=new Array(n),h=new Array(n),d=r.words;d.length=n,this.convert13b(e.words,e.length,a,n),this.convert13b(t.words,t.length,c,n),this.transform(a,o,s,f,n,i),this.transform(c,o,u,h,n,i);for(var l=0;l<n;l++){var p=s[l]*u[l]-f[l]*h[l];f[l]=s[l]*h[l]+f[l]*u[l],s[l]=p}return this.conjugate(s,f,n),this.transform(s,f,d,o,n,i),this.conjugate(d,o,n),this.normalize13b(d,n),r.negative=e.negative^t.negative,r.length=e.length+t.length,r.strip()},o.prototype.mul=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},o.prototype.mulf=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),l(this,e,t)},o.prototype.imul=function(e){return this.clone().mulTo(e,this)},o.prototype.imuln=function(e){n("number"==typeof e),n(e<67108864);for(var t=0,r=0;r<this.length;r++){var i=(0|this.words[r])*e,o=(67108863&i)+(67108863&t);t>>=26,t+=i/67108864|0,t+=o>>>26,this.words[r]=67108863&o}return 0!==t&&(this.words[r]=t,this.length++),this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r<t.length;r++){var n=r/26|0,i=r%26;t[r]=(e.words[n]&1<<i)>>>i}return t}(e);if(0===t.length)return new o(1);for(var r=this,n=0;n<t.length&&0===t[n];n++,r=r.sqr());if(++n<t.length)for(var i=r.sqr();n<t.length;n++,i=i.sqr())0!==t[n]&&(r=r.mul(i));return r},o.prototype.iushln=function(e){n("number"==typeof e&&e>=0);var t,r=e%26,i=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(t=0;t<this.length;t++){var s=this.words[t]&o,f=(0|this.words[t])-s<<r;this.words[t]=f|a,a=s>>>26-r}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t<i;t++)this.words[t]=0;this.length+=i}return this.strip()},o.prototype.ishln=function(e){return n(0===this.negative),this.iushln(e)},o.prototype.iushrn=function(e,t,r){var i;n("number"==typeof e&&e>=0),i=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<<o,f=r;if(i-=a,i=Math.max(0,i),f){for(var c=0;c<a;c++)f.words[c]=this.words[c];f.length=a}if(0===a);else if(this.length>a)for(this.length-=a,c=0;c<this.length;c++)this.words[c]=this.words[c+a];else this.words[0]=0,this.length=1;var u=0;for(c=this.length-1;c>=0&&(0!==u||c>=i);c--){var h=0|this.words[c];this.words[c]=u<<26-o|h>>>o,u=h&s}return f&&0!==u&&(f.words[f.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,i=1<<t;return!(this.length<=r)&&!!(this.words[r]&i)},o.prototype.imaskn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var i=67108863^67108863>>>t<<t;this.words[this.length-1]&=i}return this.strip()},o.prototype.maskn=function(e){return this.clone().imaskn(e)},o.prototype.iaddn=function(e){return n("number"==typeof e),n(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},o.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(n("number"==typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this.strip()},o.prototype.addn=function(e){return this.clone().iaddn(e)},o.prototype.subn=function(e){return this.clone().isubn(e)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(e,t,r){var i,o,a=e.length+r;this._expand(a);var s=0;for(i=0;i<e.length;i++){o=(0|this.words[i+r])+s;var f=(0|e.words[i])*t;s=((o-=67108863&f)>>26)-(f/67108864|0),this.words[i+r]=67108863&o}for(;i<this.length-r;i++)s=(o=(0|this.words[i+r])+s)>>26,this.words[i+r]=67108863&o;if(0===s)return this.strip();for(n(-1===s),s=0,i=0;i<this.length;i++)s=(o=-(0|this.words[i])+s)>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(e,t){var r=(this.length,e.length),n=this.clone(),i=e,a=0|i.words[i.length-1];0!==(r=26-this._countBits(a))&&(i=i.ushln(r),n.iushln(r),a=0|i.words[i.length-1]);var s,f=n.length-i.length;if("mod"!==t){(s=new o(null)).length=f+1,s.words=new Array(s.length);for(var c=0;c<s.length;c++)s.words[c]=0}var u=n.clone()._ishlnsubmul(i,1,f);0===u.negative&&(n=u,s&&(s.words[f]=1));for(var h=f-1;h>=0;h--){var d=67108864*(0|n.words[i.length+h])+(0|n.words[i.length+h-1]);for(d=Math.min(d/a|0,67108863),n._ishlnsubmul(i,d,h);0!==n.negative;)d--,n.negative=0,n._ishlnsubmul(i,1,h),n.isZero()||(n.negative^=1);s&&(s.words[h]=d)}return s&&s.strip(),n.strip(),"div"!==t&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},o.prototype.divmod=function(e,t,r){return n(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(e)),{div:i,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modn(e.words[0]))}:this._wordDiv(e,t);var i,a,s},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),i=e.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modn=function(e){n(e<=67108863);for(var t=(1<<26)%e,r=0,i=this.length-1;i>=0;i--)r=(t*r+(0|this.words[i]))%e;return r},o.prototype.idivn=function(e){n(e<=67108863);for(var t=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*t;this.words[r]=i/e|0,t=i%e}return this.strip()},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new o(1),a=new o(0),s=new o(0),f=new o(1),c=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++c;for(var u=r.clone(),h=t.clone();!t.isZero();){for(var d=0,l=1;0==(t.words[0]&l)&&d<26;++d,l<<=1);if(d>0)for(t.iushrn(d);d-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(u),a.isub(h)),i.iushrn(1),a.iushrn(1);for(var p=0,b=1;0==(r.words[0]&b)&&p<26;++p,b<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||f.isOdd())&&(s.iadd(u),f.isub(h)),s.iushrn(1),f.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(s),a.isub(f)):(r.isub(t),s.isub(i),f.isub(a))}return{a:s,b:f,gcd:r.iushln(c)}},o.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,a=new o(1),s=new o(0),f=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var c=0,u=1;0==(t.words[0]&u)&&c<26;++c,u<<=1);if(c>0)for(t.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(f),a.iushrn(1);for(var h=0,d=1;0==(r.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(r.iushrn(h);h-- >0;)s.isOdd()&&s.iadd(f),s.iushrn(1);t.cmp(r)>=0?(t.isub(r),a.isub(s)):(r.isub(t),s.isub(a))}return(i=0===t.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(e),i},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=t.cmp(r);if(i<0){var o=t;t=r,r=o}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<<t;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var o=i,a=r;0!==o&&a<this.length;a++){var s=0|this.words[a];o=(s+=o)>>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:i<e?-1:1}return 0!==this.negative?0|-t:t},o.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},o.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){n<i?t=-1:n>i&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new _(e)},o.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var b={k256:null,p224:null,p192:null,p25519:null};function v(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function y(){v.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function m(){v.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function g(){v.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function w(){v.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function _(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function E(e){_.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}v.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},v.prototype.ireduce=function(e){var t,r=e;do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n);var n=t<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):r.strip(),r},v.prototype.split=function(e,t){e.iushrn(this.n,0,t)},v.prototype.imulK=function(e){return e.imul(this.k)},i(y,v),y.prototype.split=function(e,t){for(var r=Math.min(e.length,9),n=0;n<r;n++)t.words[n]=e.words[n];if(t.length=r,e.length<=9)return e.words[0]=0,void(e.length=1);var i=e.words[9];for(t.words[t.length++]=4194303&i,n=10;n<e.length;n++){var o=0|e.words[n];e.words[n-10]=(4194303&o)<<4|i>>>22,i=o}i>>>=22,e.words[n-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},y.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r<e.length;r++){var n=0|e.words[r];t+=977*n,e.words[r]=67108863&t,t=64*n+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},i(m,v),i(g,v),i(w,v),w.prototype.imulK=function(e){for(var t=0,r=0;r<e.length;r++){var n=19*(0|e.words[r])+t,i=67108863&n;n>>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(b[e])return b[e];var t;if("k256"===e)t=new y;else if("p224"===e)t=new m;else if("p192"===e)t=new g;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new w}return b[e]=t,t},_.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},_.prototype._verify2=function(e,t){n(0==(e.negative|t.negative),"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},_.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},_.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},_.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},_.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},_.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},_.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},_.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},_.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},_.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},_.prototype.isqr=function(e){return this.imul(e,e.clone())},_.prototype.sqr=function(e){return this.mul(e,e)},_.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var r=this.m.add(new o(1)).iushrn(2);return this.pow(e,r)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);n(!i.isZero());var s=new o(1).toRed(this),f=s.redNeg(),c=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new o(2*u*u).toRed(this);0!==this.pow(u,c).cmp(f);)u.redIAdd(f);for(var h=this.pow(u,i),d=this.pow(e,i.addn(1).iushrn(1)),l=this.pow(e,i),p=a;0!==l.cmp(s);){for(var b=l,v=0;0!==b.cmp(s);v++)b=b.redSqr();n(v<p);var y=this.pow(h,new o(1).iushln(p-v-1));d=d.redMul(y),h=y.redSqr(),l=l.redMul(h),p=v}return d},_.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},_.prototype.pow=function(e,t){if(t.isZero())return new o(1).toRed(this);if(0===t.cmpn(1))return e.clone();var r=new Array(16);r[0]=new o(1).toRed(this),r[1]=e;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],e);var i=r[0],a=0,s=0,f=t.bitLength()%26;for(0===f&&(f=26),n=t.length-1;n>=0;n--){for(var c=t.words[n],u=f-1;u>=0;u--){var h=c>>u&1;i!==r[0]&&(i=this.sqr(i)),0!==h||0!==a?(a<<=1,a|=h,(4===++s||0===n&&0===u)&&(i=this.mul(i,r[a]),s=0,a=0)):s=0}f=26}return i},_.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},_.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new E(e)},i(E,_),E.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},E.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},E.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},E.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},E.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(void 0===e||e,this)}).call(t,r(148)(e))},,,,,function(e,t,r){var n=r(175),i=r(108),o=n.tfJSON,a=n.TfTypeError,s=n.TfPropertyTypeError,f=n.tfSubError,c=n.getValueTypeName,u={arrayOf:function(e){function t(t,r){return!!i.Array(t)&&(!i.Nil(t)&&t.every(function(t,n){try{return d(e,t,r)}catch(e){throw f(e,n)}}))}return e=h(e),t.toJSON=function(){return"["+o(e)+"]"},t},maybe:function e(t){function r(r,n){return i.Nil(r)||t(r,n,e)}return t=h(t),r.toJSON=function(){return"?"+o(t)},r},map:function(e,t){function r(r,n){if(!i.Object(r))return!1;if(i.Nil(r))return!1;for(var o in r){try{t&&d(t,o,n)}catch(e){throw f(e,o,"key")}try{var a=r[o];d(e,a,n)}catch(e){throw f(e,o)}}return!0}return e=h(e),t&&(t=h(t)),r.toJSON=t?function(){return"{"+o(t)+": "+o(e)+"}"}:function(){return"{"+o(e)+"}"},r},object:function(e){var t={};for(var r in e)t[r]=h(e[r]);function n(e,r){if(!i.Object(e))return!1;if(i.Nil(e))return!1;var n;try{for(n in t){d(t[n],e[n],r)}}catch(e){throw f(e,n)}if(r)for(n in e)if(!t[n])throw new s(void 0,n);return!0}return n.toJSON=function(){return o(t)},n},oneOf:function(){var e=[].slice.call(arguments).map(h);function t(t,r){return e.some(function(e){try{return d(e,t,r)}catch(e){return!1}})}return t.toJSON=function(){return e.map(o).join("|")},t},quacksLike:function(e){function t(t){return e===c(t)}return t.toJSON=function(){return e},t},tuple:function(){var e=[].slice.call(arguments).map(h);function t(t,r){return!i.Nil(t)&&(!i.Nil(t.length)&&((!r||t.length===e.length)&&e.every(function(e,n){try{return d(e,t[n],r)}catch(e){throw f(e,n)}})))}return t.toJSON=function(){return"("+e.map(o).join(", ")+")"},t},value:function(e){function t(t){return t===e}return t.toJSON=function(){return e},t}};function h(e){return i.String(e)?"?"===e[0]?u.maybe(e.slice(1)):i[e]||u.quacksLike(e):e&&i.Object(e)?i.Array(e)?u.arrayOf(e[0]):u.object(e):i.Function(e)?e:u.value(e)}function d(e,t,r,n){if(i.Function(e)){if(e(t,r))return!0;throw new a(n||e,t)}return d(h(e),t,r)}for(var l in i)d[l]=i[l];for(l in u)d[l]=u[l];var p=r(388);for(l in p)d[l]=p[l];d.async=function e(t,r,n,i){if("function"==typeof n)return e(t,r,!1,n);try{d(t,r,n)}catch(e){return i(e)}i()},d.compile=h,d.TfTypeError=a,d.TfPropertyTypeError=s,e.exports=d},,,function(e,t,r){var Buffer=r(4).Buffer,n=r(107),i=r(174),o=r(14),a=r(19),s=r(176),f=r(26),c=r(389),u=f.OP_RESERVED;function h(e){return a.Buffer(e)||function(e){return a.Number(e)&&(e===f.OP_0||e>=f.OP_1&&e<=f.OP_16||e===f.OP_1NEGATE)}(e)}function d(e){return a.Array(e)&&e.every(h)}function l(e){return 0===e.length?f.OP_0:1===e.length?e[0]>=1&&e[0]<=16?u+e[0]:129===e[0]?f.OP_1NEGATE:void 0:void 0}function p(e){if(Buffer.isBuffer(e))return e;o(a.Array,e);var t=e.reduce(function(e,t){return Buffer.isBuffer(t)?1===t.length&&void 0!==l(t)?e+1:e+i.encodingLength(t.length)+t.length:e+1},0),r=Buffer.allocUnsafe(t),n=0;if(e.forEach(function(e){if(Buffer.isBuffer(e)){var t=l(e);if(void 0!==t)return r.writeUInt8(t,n),void(n+=1);n+=i.encode(r,e.length,n),e.copy(r,n),n+=e.length}else r.writeUInt8(e,n),n+=1}),n!==r.length)throw new Error("Could not decode chunks");return r}function b(e){if(a.Array(e))return e;o(a.Buffer,e);for(var t=[],r=0;r<e.length;){var n=e[r];if(n>f.OP_0&&n<=f.OP_PUSHDATA4){var s=i.decode(e,r);if(null===s)return[];if((r+=s.size)+s.number>e.length)return[];var c=e.slice(r,r+s.number);r+=s.number;var u=l(c);void 0!==u?t.push(u):t.push(c)}else t.push(n),r+=1}return t}function v(e){var t=-129&e;return t>0&&t<4}e.exports={compile:p,decompile:b,fromASM:function(asm){return o(a.String,asm),p(asm.split(" ").map(function(e){return void 0!==f[e]?f[e]:(o(a.Hex,e),Buffer.from(e,"hex"))}))},toASM:function(e){return Buffer.isBuffer(e)&&(e=b(e)),e.map(function(e){if(Buffer.isBuffer(e)){var t=l(e);if(void 0===t)return e.toString("hex");e=t}return c[e]}).join(" ")},toStack:function(e){return e=b(e),o(d,e),e.map(function(e){return Buffer.isBuffer(e)?e:e===f.OP_0?Buffer.allocUnsafe(0):s.encode(e-u)})},number:r(176),isCanonicalPubKey:function(e){if(!Buffer.isBuffer(e))return!1;if(e.length<33)return!1;switch(e[0]){case 2:case 3:return 33===e.length;case 4:return 65===e.length}return!1},isCanonicalSignature:function(e){return!!Buffer.isBuffer(e)&&!!v(e[e.length-1])&&n.check(e.slice(0,-1))},isPushOnly:d,isDefinedHashType:v}},,function(e,t,r){var n=r(14),i=Math.pow(2,31)-1;function o(e){return n.String(e)&&e.match(/^(m\/)?(\d+'?\/)*\d+'?$/)}o.toJSON=function(){return"BIP32 derivation path"};var a=21e14;var s=n.quacksLike("BigInteger"),f=n.quacksLike("Point"),c=n.compile({r:s,s:s}),u=n.compile({messagePrefix:n.oneOf(n.Buffer,n.String),bip32:{public:n.UInt32,private:n.UInt32},pubKeyHash:n.UInt8,scriptHash:n.UInt8,wif:n.UInt8}),h={BigInt:s,BIP32Path:o,Buffer256bit:n.BufferN(32),ECPoint:f,ECSignature:c,Hash160bit:n.BufferN(20),Hash256bit:n.BufferN(32),Network:u,Satoshi:function(e){return n.UInt53(e)&&e<=a},UInt31:function(e){return n.UInt32(e)&&e<=i}};for(var d in n)h[d]=n[d];e.exports=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i=a(r(0)),o=a(r(434));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e,t){var r=e.children,o=e.color,a=e.size,s=e.style,f=function(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}(e,["children","color","size","style"]),c=t.reactIconBase,u=void 0===c?{}:c,h=a||u.size||"1em";return i.default.createElement("svg",n({children:r,fill:"currentColor",preserveAspectRatio:"xMidYMid meet",height:h,width:h},u,f,{style:n({verticalAlign:"middle",color:o||u.color},u.style||{},s)}))};s.propTypes={color:o.default.string,size:o.default.oneOfType([o.default.string,o.default.number]),style:o.default.object},s.contextTypes={reactIconBase:o.default.shape(s.propTypes)},t.default=s,e.exports=t.default},,,,function(e,t,r){"use strict";var n=t;n.version=r(290).version,n.utils=r(291),n.rand=r(102),n.curve=r(85),n.curves=r(296),n.ec=r(304),n.eddsa=r(307)},function(e,t,r){"use strict";var n=t;n.version=r(348).version,n.utils=r(349),n.rand=r(102),n.curve=r(88),n.curves=r(354),n.ec=r(356),n.eddsa=r(359),n.eddsaVariant=r(362)},function(e,t){e.exports={OP_FALSE:0,OP_0:0,OP_PUSHDATA1:76,OP_PUSHDATA2:77,OP_PUSHDATA4:78,OP_1NEGATE:79,OP_RESERVED:80,OP_TRUE:81,OP_1:81,OP_2:82,OP_3:83,OP_4:84,OP_5:85,OP_6:86,OP_7:87,OP_8:88,OP_9:89,OP_10:90,OP_11:91,OP_12:92,OP_13:93,OP_14:94,OP_15:95,OP_16:96,OP_NOP:97,OP_VER:98,OP_IF:99,OP_NOTIF:100,OP_VERIF:101,OP_VERNOTIF:102,OP_ELSE:103,OP_ENDIF:104,OP_VERIFY:105,OP_RETURN:106,OP_TOALTSTACK:107,OP_FROMALTSTACK:108,OP_2DROP:109,OP_2DUP:110,OP_3DUP:111,OP_2OVER:112,OP_2ROT:113,OP_2SWAP:114,OP_IFDUP:115,OP_DEPTH:116,OP_DROP:117,OP_DUP:118,OP_NIP:119,OP_OVER:120,OP_PICK:121,OP_ROLL:122,OP_ROT:123,OP_SWAP:124,OP_TUCK:125,OP_CAT:126,OP_SUBSTR:127,OP_LEFT:128,OP_RIGHT:129,OP_SIZE:130,OP_INVERT:131,OP_AND:132,OP_OR:133,OP_XOR:134,OP_EQUAL:135,OP_EQUALVERIFY:136,OP_RESERVED1:137,OP_RESERVED2:138,OP_1ADD:139,OP_1SUB:140,OP_2MUL:141,OP_2DIV:142,OP_NEGATE:143,OP_ABS:144,OP_NOT:145,OP_0NOTEQUAL:146,OP_ADD:147,OP_SUB:148,OP_MUL:149,OP_DIV:150,OP_MOD:151,OP_LSHIFT:152,OP_RSHIFT:153,OP_BOOLAND:154,OP_BOOLOR:155,OP_NUMEQUAL:156,OP_NUMEQUALVERIFY:157,OP_NUMNOTEQUAL:158,OP_LESSTHAN:159,OP_GREATERTHAN:160,OP_LESSTHANOREQUAL:161,OP_GREATERTHANOREQUAL:162,OP_MIN:163,OP_MAX:164,OP_WITHIN:165,OP_RIPEMD160:166,OP_SHA1:167,OP_SHA256:168,OP_HASH160:169,OP_HASH256:170,OP_CODESEPARATOR:171,OP_CHECKSIG:172,OP_CHECKSIGVERIFY:173,OP_CHECKMULTISIG:174,OP_CHECKMULTISIGVERIFY:175,OP_NOP1:176,OP_NOP2:177,OP_CHECKLOCKTIMEVERIFY:177,OP_NOP3:178,OP_CHECKSEQUENCEVERIFY:178,OP_NOP4:179,OP_NOP5:180,OP_NOP6:181,OP_NOP7:182,OP_NOP8:183,OP_NOP9:184,OP_NOP10:185,OP_PUBKEYHASH:253,OP_PUBKEY:254,OP_INVALIDOPCODE:255}},,,function(e,t){var r;r=function(){return this}();try{r=r||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(r=window)}e.exports=r},function(e,t){function r(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=r,r.equal=function(e,t,r){if(e!=t)throw new Error(r||"Assertion failed: "+e+" != "+t)}},,function(e,t){var r,n,i=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(r===setTimeout)return setTimeout(e,0);if((r===o||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:o}catch(e){r=o}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var f,c=[],u=!1,h=-1;function d(){u&&f&&(u=!1,f.length?c=f.concat(c):h=-1,c.length&&l())}function l(){if(!u){var e=s(d);u=!0;for(var t=c.length;t;){for(f=c,c=[];++h<t;)f&&f[h].run();h=-1,t=c.length}f=null,u=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function b(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];c.push(new p(e,t)),1!==c.length||u||s(l)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=b,i.addListener=b,i.once=b,i.off=b,i.removeListener=b,i.removeAllListeners=b,i.emit=b,i.prependListener=b,i.prependOnceListener=b,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,r){e.exports=i;var n=r(95).EventEmitter;function i(){n.call(this)}r(5)(i,n),i.Readable=r(96),i.Writable=r(253),i.Duplex=r(254),i.Transform=r(255),i.PassThrough=r(256),i.Stream=i,i.prototype.pipe=function(e,t){var r=this;function i(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function o(){r.readable&&r.resume&&r.resume()}r.on("data",i),e.on("drain",o),e._isStdio||t&&!1===t.end||(r.on("end",s),r.on("close",f));var a=!1;function s(){a||(a=!0,e.end())}function f(){a||(a=!0,"function"==typeof e.destroy&&e.destroy())}function c(e){if(u(),0===n.listenerCount(this,"error"))throw e}function u(){r.removeListener("data",i),e.removeListener("drain",o),r.removeListener("end",s),r.removeListener("close",f),r.removeListener("error",c),e.removeListener("error",c),r.removeListener("end",u),r.removeListener("close",u),e.removeListener("close",u)}return r.on("error",c),e.on("error",c),r.on("end",u),r.on("close",u),e.on("close",u),e.emit("pipe",r),e}},,,function(e,t,r){"use strict";(function(Buffer){var t=r(5),n=r(93),i=r(94),o=r(99),a=r(43);function s(e){a.call(this,"digest"),this._hash=e,this.buffers=[]}function f(e){a.call(this,"digest"),this._hash=e}t(s,a),s.prototype._update=function(e){this.buffers.push(e)},s.prototype._final=function(){var e=Buffer.concat(this.buffers),t=this._hash(e);return this.buffers=null,t},t(f,a),f.prototype._update=function(e){this._hash.update(e)},f.prototype._final=function(){return this._hash.digest()},e.exports=function(e){return"md5"===(e=e.toLowerCase())?new s(n):new f("rmd160"===e||"ripemd160"===e?new i:o(e))}}).call(t,r(3).Buffer)},function(e,t,r){"use strict";var n=r(30),i=r(5);function o(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function a(e){return 1===e.length?"0"+e:e}function s(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=i,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),n=0;n<e.length;n+=2)r.push(parseInt(e[n]+e[n+1],16))}else for(var n=0;n<e.length;n++){var i=e.charCodeAt(n),o=i>>8,a=255&i;o?r.push(o,a):r.push(a)}else for(n=0;n<e.length;n++)r[n]=0|e[n];return r},t.toHex=function(e){for(var t="",r=0;r<e.length;r++)t+=a(e[r].toString(16));return t},t.htonl=o,t.toHex32=function(e,t){for(var r="",n=0;n<e.length;n++){var i=e[n];"little"===t&&(i=o(i)),r+=s(i.toString(16))}return r},t.zero2=a,t.zero8=s,t.join32=function(e,t,r,i){var o=r-t;n(o%4==0);for(var a=new Array(o/4),s=0,f=t;s<a.length;s++,f+=4){var c;c="big"===i?e[f]<<24|e[f+1]<<16|e[f+2]<<8|e[f+3]:e[f+3]<<24|e[f+2]<<16|e[f+1]<<8|e[f],a[s]=c>>>0}return a},t.split32=function(e,t){for(var r=new Array(4*e.length),n=0,i=0;n<e.length;n++,i+=4){var o=e[n];"big"===t?(r[i]=o>>>24,r[i+1]=o>>>16&255,r[i+2]=o>>>8&255,r[i+3]=255&o):(r[i+3]=o>>>24,r[i+2]=o>>>16&255,r[i+1]=o>>>8&255,r[i]=255&o)}return r},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<<t|e>>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,r){return e+t+r>>>0},t.sum32_4=function(e,t,r,n){return e+t+r+n>>>0},t.sum32_5=function(e,t,r,n,i){return e+t+r+n+i>>>0},t.sum64=function(e,t,r,n){var i=e[t],o=n+e[t+1]>>>0,a=(o<n?1:0)+r+i;e[t]=a>>>0,e[t+1]=o},t.sum64_hi=function(e,t,r,n){return(t+n>>>0<t?1:0)+e+r>>>0},t.sum64_lo=function(e,t,r,n){return t+n>>>0},t.sum64_4_hi=function(e,t,r,n,i,o,a,s){var f=0,c=t;return f+=(c=c+n>>>0)<t?1:0,f+=(c=c+o>>>0)<o?1:0,e+r+i+a+(f+=(c=c+s>>>0)<s?1:0)>>>0},t.sum64_4_lo=function(e,t,r,n,i,o,a,s){return t+n+o+s>>>0},t.sum64_5_hi=function(e,t,r,n,i,o,a,s,f,c){var u=0,h=t;return u+=(h=h+n>>>0)<t?1:0,u+=(h=h+o>>>0)<o?1:0,u+=(h=h+s>>>0)<s?1:0,e+r+i+a+f+(u+=(h=h+c>>>0)<c?1:0)>>>0},t.sum64_5_lo=function(e,t,r,n,i,o,a,s,f,c){return t+n+o+s+c>>>0},t.rotr64_hi=function(e,t,r){return(t<<32-r|e>>>r)>>>0},t.rotr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0},t.shr64_hi=function(e,t,r){return e>>>r},t.shr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0}},,,,,,function(e,t,r){var Buffer=r(4).Buffer,n=r(33).Transform,i=r(98).StringDecoder;function o(e){n.call(this),this.hashMode="string"==typeof e,this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}r(5)(o,n),o.prototype.update=function(e,t,r){"string"==typeof e&&(e=Buffer.from(e,t));var n=this._update(e);return this.hashMode?this:(r&&(n=this._toString(n,r)),n)},o.prototype.setAutoPadding=function(){},o.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},o.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},o.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},o.prototype._transform=function(e,t,r){var n;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(e){n=e}finally{r(n)}},o.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(e){t=e}e(t)},o.prototype._finalOrDigest=function(e){var t=this.__final()||Buffer.alloc(0);return e&&(t=this._toString(t,e,!0)),t},o.prototype._toString=function(e,t,r){if(this._decoder||(this._decoder=new i(t),this._encoding=t),this._encoding!==t)throw new Error("can't switch encodings");var n=this._decoder.write(e);return r&&(n+=this._decoder.end()),n},e.exports=o},,function(e,t,r){var BigInteger=r(181);r(411),e.exports=BigInteger},,function(e,t,r){"use strict";t.randomBytes=t.rng=t.pseudoRandomBytes=t.prng=r(48),t.createHash=t.Hash=r(36),t.createHmac=t.Hmac=r(80);var n=r(262),i=Object.keys(n),o=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(i);t.getHashes=function(){return o};var a=r(81);t.pbkdf2=a.pbkdf2,t.pbkdf2Sync=a.pbkdf2Sync;var s=r(264);t.Cipher=s.Cipher,t.createCipher=s.createCipher,t.Cipheriv=s.Cipheriv,t.createCipheriv=s.createCipheriv,t.Decipher=s.Decipher,t.createDecipher=s.createDecipher,t.Decipheriv=s.Decipheriv,t.createDecipheriv=s.createDecipheriv,t.getCiphers=s.getCiphers,t.listCiphers=s.listCiphers;var f=r(283);t.DiffieHellmanGroup=f.DiffieHellmanGroup,t.createDiffieHellmanGroup=f.createDiffieHellmanGroup,t.getDiffieHellman=f.getDiffieHellman,t.createDiffieHellman=f.createDiffieHellman,t.DiffieHellman=f.DiffieHellman;var c=r(288);t.createSign=c.createSign,t.Sign=c.Sign,t.createVerify=c.createVerify,t.Verify=c.Verify,t.createECDH=r(325);var u=r(326);t.publicEncrypt=u.publicEncrypt,t.privateEncrypt=u.privateEncrypt,t.publicDecrypt=u.publicDecrypt,t.privateDecrypt=u.privateDecrypt;var h=r(329);t.randomFill=h.randomFill,t.randomFillSync=h.randomFillSync,t.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join("\n"))},t.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},function(e,t,r){"use strict";(function(t,n){var Buffer=r(4).Buffer,i=t.crypto||t.msCrypto;i&&i.getRandomValues?e.exports=function(e,r){if(e>65536)throw new Error("requested too many random bytes");var o=new t.Uint8Array(e);e>0&&i.getRandomValues(o);var a=Buffer.from(o.buffer);if("function"==typeof r)return n.nextTick(function(){r(null,a)});return a}:e.exports=function(){throw new Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11")}}).call(t,r(29),r(32))},function(e,t,r){"use strict";var n=r(79).nextTick,i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=h;var o=r(66);o.inherits=r(5);var a=r(132),s=r(97);o.inherits(h,a);for(var f=i(s.prototype),c=0;c<f.length;c++){var u=f[c];h.prototype[u]||(h.prototype[u]=s.prototype[u])}function h(e){if(!(this instanceof h))return new h(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",d)}function d(){this.allowHalfOpen||this._writableState.ended||n(l,this)}function l(e){e.end()}Object.defineProperty(h.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)}}),h.prototype._destroy=function(e,t){this.push(null),this.end(),n(t,e)}},function(e,t,r){(function(e,n){var i=/%[sdj%]/g;t.format=function(e){if(!y(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(s(arguments[r]));return t.join(" ")}r=1;for(var n=arguments,o=n.length,a=String(e).replace(i,function(e){if("%%"===e)return"%";if(r>=o)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}}),f=n[r];r<o;f=n[++r])b(f)||!w(f)?a+=" "+f:a+=" "+s(f);return a},t.deprecate=function(r,i){if(m(e.process))return function(){return t.deprecate(r,i).apply(this,arguments)};if(!0===n.noDeprecation)return r;var o=!1;return function(){if(!o){if(n.throwDeprecation)throw new Error(i);n.traceDeprecation?console.trace(i):console.error(i),o=!0}return r.apply(this,arguments)}};var o,a={};function s(e,r){var n={seen:[],stylize:c};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),p(r)?n.showHidden=r:r&&t._extend(n,r),m(n.showHidden)&&(n.showHidden=!1),m(n.depth)&&(n.depth=2),m(n.colors)&&(n.colors=!1),m(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=f),u(n,e,n.depth)}function f(e,t){var r=s.styles[t];return r?"["+s.colors[r][0]+"m"+e+"["+s.colors[r][1]+"m":e}function c(e,t){return e}function u(e,r,n){if(e.customInspect&&r&&S(r.inspect)&&r.inspect!==t.inspect&&(!r.constructor||r.constructor.prototype!==r)){var i=r.inspect(n,e);return y(i)||(i=u(e,i,n)),i}var o=function(e,t){if(m(t))return e.stylize("undefined","undefined");if(y(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(v(t))return e.stylize(""+t,"number");if(p(t))return e.stylize(""+t,"boolean");if(b(t))return e.stylize("null","null")}(e,r);if(o)return o;var a=Object.keys(r),s=function(e){var t={};return e.forEach(function(e,r){t[e]=!0}),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(r)),E(r)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return h(r);if(0===a.length){if(S(r)){var f=r.name?": "+r.name:"";return e.stylize("[Function"+f+"]","special")}if(g(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(_(r))return e.stylize(Date.prototype.toString.call(r),"date");if(E(r))return h(r)}var c,w="",A=!1,I=["{","}"];(l(r)&&(A=!0,I=["[","]"]),S(r))&&(w=" [Function"+(r.name?": "+r.name:"")+"]");return g(r)&&(w=" "+RegExp.prototype.toString.call(r)),_(r)&&(w=" "+Date.prototype.toUTCString.call(r)),E(r)&&(w=" "+h(r)),0!==a.length||A&&0!=r.length?n<0?g(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),c=A?function(e,t,r,n,i){for(var o=[],a=0,s=t.length;a<s;++a)x(t,String(a))?o.push(d(e,t,r,n,String(a),!0)):o.push("");return i.forEach(function(i){i.match(/^\d+$/)||o.push(d(e,t,r,n,i,!0))}),o}(e,r,n,s,a):a.map(function(t){return d(e,r,n,s,t,A)}),e.seen.pop(),function(e,t,r){if(e.reduce(function(e,t){return 0,t.indexOf("\n")>=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60)return r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1];return r[0]+t+" "+e.join(", ")+" "+r[1]}(c,w,I)):I[0]+w+I[1]}function h(e){return"["+Error.prototype.toString.call(e)+"]"}function d(e,t,r,n,i,o){var a,s,f;if((f=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=f.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):f.set&&(s=e.stylize("[Setter]","special")),x(n,i)||(a="["+i+"]"),s||(e.seen.indexOf(f.value)<0?(s=b(r)?u(e,f.value,null):u(e,f.value,r-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+s.split("\n").map(function(e){return" "+e}).join("\n")):s=e.stylize("[Circular]","special")),m(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function l(e){return Array.isArray(e)}function p(e){return"boolean"==typeof e}function b(e){return null===e}function v(e){return"number"==typeof e}function y(e){return"string"==typeof e}function m(e){return void 0===e}function g(e){return w(e)&&"[object RegExp]"===A(e)}function w(e){return"object"==typeof e&&null!==e}function _(e){return w(e)&&"[object Date]"===A(e)}function E(e){return w(e)&&("[object Error]"===A(e)||e instanceof Error)}function S(e){return"function"==typeof e}function A(e){return Object.prototype.toString.call(e)}function I(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(m(o)&&(o=Object({NODE_ENV:"production"}).NODE_DEBUG||""),e=e.toUpperCase(),!a[e])if(new RegExp("\\b"+e+"\\b","i").test(o)){var r=n.pid;a[e]=function(){var n=t.format.apply(t,arguments);console.error("%s %d: %s",e,r,n)}}else a[e]=function(){};return a[e]},t.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=l,t.isBoolean=p,t.isNull=b,t.isNullOrUndefined=function(e){return null==e},t.isNumber=v,t.isString=y,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=m,t.isRegExp=g,t.isObject=w,t.isDate=_,t.isError=E,t.isFunction=S,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=r(337);var k=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function x(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){var e,r;console.log("%s - %s",(e=new Date,r=[I(e.getHours()),I(e.getMinutes()),I(e.getSeconds())].join(":"),[e.getDate(),k[e.getMonth()],r].join(" ")),t.format.apply(t,arguments))},t.inherits=r(338),t._extend=function(e,t){if(!t||!w(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e}}).call(t,r(29),r(32))},function(e,t,r){"use strict";t.MT={POS_INT:0,NEG_INT:1,BYTE_STRING:2,UTF8_STRING:3,ARRAY:4,MAP:5,TAG:6,SIMPLE_FLOAT:7},t.TAG={DATE_STRING:0,DATE_EPOCH:1,POS_BIGINT:2,NEG_BIGINT:3,DECIMAL_FRAC:4,BIGFLOAT:5,BASE64URL_EXPECTED:21,BASE64_EXPECTED:22,BASE16_EXPECTED:23,CBOR:24,URI:32,BASE64URL:33,BASE64:34,REGEXP:35,MIME:36},t.NUMBYTES={ZERO:0,ONE:24,TWO:25,FOUR:26,EIGHT:27,INDEFINITE:31},t.SIMPLE={FALSE:20,TRUE:21,NULL:22,UNDEFINED:23},t.SYMS={NULL:Symbol("null"),UNDEFINED:Symbol("undef"),PARENT:Symbol("parent"),BREAK:Symbol("break"),STREAM:Symbol("stream")},t.SHIFT32=Math.pow(2,32)},,,function(e,t,r){var Buffer=r(4).Buffer;function n(e,t){this._block=Buffer.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}n.prototype.update=function(e,t){"string"==typeof e&&(t=t||"utf8",e=Buffer.from(e,t));for(var r=this._block,n=this._blockSize,i=e.length,o=this._len,a=0;a<i;){for(var s=o%n,f=Math.min(i-a,n-s),c=0;c<f;c++)r[s+c]=e[a+c];a+=f,(o+=f)%n==0&&this._update(r)}return this._len+=i,this},n.prototype.digest=function(e){var 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));var r=8*this._len;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var n=(4294967295&r)>>>0,i=(r-n)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var o=this._hash();return e?o.toString(e):o},n.prototype._update=function(){throw new Error("_update must be implemented by subclass")},e.exports=n},function(e,t,r){(function(Buffer){e.exports=function(e,t){for(var r=Math.min(e.length,t.length),n=new Buffer(r),i=0;i<r;++i)n[i]=e[i]^t[i];return n}}).call(t,r(3).Buffer)},function(e,t,r){var n=t;n.utils=r(37),n.common=r(67),n.sha=r(297),n.ripemd=r(301),n.hmac=r(302),n.sha1=n.sha.sha1,n.sha256=n.sha.sha256,n.sha224=n.sha.sha224,n.sha384=n.sha.sha384,n.sha512=n.sha.sha512,n.ripemd160=n.ripemd.ripemd160},function(e,t,r){var n;!function(i){"use strict";var o,a=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,s=Math.ceil,f=Math.floor,c="[BigNumber Error] ",u=c+"Number primitive has more than 15 significant digits: ",h=1e14,d=14,l=9007199254740991,p=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],b=1e7,v=1e9;function y(e){var t=0|e;return e>0||e===t?t:t-1}function m(e){for(var t,r,n=1,i=e.length,o=e[0]+"";n<i;){for(t=e[n++]+"",r=d-t.length;r--;t="0"+t);o+=t}for(i=o.length;48===o.charCodeAt(--i););return o.slice(0,i+1||1)}function g(e,t){var r,n,i=e.c,o=t.c,a=e.s,s=t.s,f=e.e,c=t.e;if(!a||!s)return null;if(r=i&&!i[0],n=o&&!o[0],r||n)return r?n?0:-s:a;if(a!=s)return a;if(r=a<0,n=f==c,!i||!o)return n?0:!i^r?1:-1;if(!n)return f>c^r?1:-1;for(s=(f=i.length)<(c=o.length)?f:c,a=0;a<s;a++)if(i[a]!=o[a])return i[a]>o[a]^r?1:-1;return f==c?0:f>c^r?1:-1}function w(e,t,r,n){if(e<t||e>r||e!==(e<0?s(e):f(e)))throw Error(c+(n||"Argument")+("number"==typeof e?e<t||e>r?" out of range: ":" not an integer: ":" not a primitive number: ")+e)}function _(e){return"[object Array]"==Object.prototype.toString.call(e)}function E(e){var t=e.c.length-1;return y(e.e/d)==t&&e.c[t]%2!=0}function S(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function A(e,t,r){var n,i;if(t<0){for(i=r+".";++t;i+=r);e=i+e}else if(++t>(n=e.length)){for(i=r,t-=n;--t;i+=r);e+=i}else t<n&&(e=e.slice(0,t)+"."+e.slice(t));return e}(o=function e(t){var r,n,i,o,I,k,x,P,O,T=H.prototype={constructor:H,toString:null,valueOf:null},M=new H(1),N=20,B=4,C=-7,R=21,L=-1e7,j=1e7,U=!1,D=1,F=0,z={decimalSeparator:".",groupSeparator:",",groupSize:3,secondaryGroupSize:0,fractionGroupSeparator:" ",fractionGroupSize:0},q="0123456789abcdefghijklmnopqrstuvwxyz";function H(e,t){var r,o,s,c,h,p,b,v,y=this;if(!(y instanceof H))return new H(e,t);if(null==t){if(e instanceof H)return y.s=e.s,y.e=e.e,void(y.c=(e=e.c)?e.slice():e);if((p="number"==typeof e)&&0*e==0){if(y.s=1/e<0?(e=-e,-1):1,e===~~e){for(c=0,h=e;h>=10;h/=10,c++);return y.e=c,void(y.c=[e])}v=e+""}else{if(!a.test(v=e+""))return i(y,v,p);y.s=45==v.charCodeAt(0)?(v=v.slice(1),-1):1}(c=v.indexOf("."))>-1&&(v=v.replace(".","")),(h=v.search(/e/i))>0?(c<0&&(c=h),c+=+v.slice(h+1),v=v.substring(0,h)):c<0&&(c=v.length)}else{if(w(t,2,q.length,"Base"),v=e+"",10==t)return Y(y=new H(e instanceof H?e:v),N+y.e+1,B);if(p="number"==typeof e){if(0*e!=0)return i(y,v,p,t);if(y.s=1/e<0?(v=v.slice(1),-1):1,H.DEBUG&&v.replace(/^0\.0*|\./,"").length>15)throw Error(u+e);p=!1}else y.s=45===v.charCodeAt(0)?(v=v.slice(1),-1):1;for(r=q.slice(0,t),c=h=0,b=v.length;h<b;h++)if(r.indexOf(o=v.charAt(h))<0){if("."==o){if(h>c){c=b;continue}}else if(!s&&(v==v.toUpperCase()&&(v=v.toLowerCase())||v==v.toLowerCase()&&(v=v.toUpperCase()))){s=!0,h=-1,c=0;continue}return i(y,e+"",p,t)}(c=(v=n(v,t,10,y.s)).indexOf("."))>-1?v=v.replace(".",""):c=v.length}for(h=0;48===v.charCodeAt(h);h++);for(b=v.length;48===v.charCodeAt(--b););if(v=v.slice(h,++b)){if(b-=h,p&&H.DEBUG&&b>15&&(e>l||e!==f(e)))throw Error(u+y.s*e);if((c=c-h-1)>j)y.c=y.e=null;else if(c<L)y.c=[y.e=0];else{if(y.e=c,y.c=[],h=(c+1)%d,c<0&&(h+=d),h<b){for(h&&y.c.push(+v.slice(0,h)),b-=d;h<b;)y.c.push(+v.slice(h,h+=d));v=v.slice(h),h=d-v.length}else h-=b;for(;h--;v+="0");y.c.push(+v)}}else y.c=[y.e=0]}function K(e,t,r,n){var i,o,a,s,f;if(null==r?r=B:w(r,0,8),!e.c)return e.toString();if(i=e.c[0],a=e.e,null==t)f=m(e.c),f=1==n||2==n&&a<=C?S(f,a):A(f,a,"0");else if(o=(e=Y(new H(e),t,r)).e,s=(f=m(e.c)).length,1==n||2==n&&(t<=o||o<=C)){for(;s<t;f+="0",s++);f=S(f,o)}else if(t-=a,f=A(f,o,"0"),o+1>s){if(--t>0)for(f+=".";t--;f+="0");}else if((t+=o-s)>0)for(o+1==s&&(f+=".");t--;f+="0");return e.s<0&&i?"-"+f:f}function V(e,t){var r,n,i=0;for(_(e[0])&&(e=e[0]),r=new H(e[0]);++i<e.length;){if(!(n=new H(e[i])).s){r=n;break}t.call(r,n)&&(r=n)}return r}function G(e,t,r){for(var n=1,i=t.length;!t[--i];t.pop());for(i=t[0];i>=10;i/=10,n++);return(r=n+r*d-1)>j?e.c=e.e=null:r<L?e.c=[e.e=0]:(e.e=r,e.c=t),e}function Y(e,t,r,n){var i,o,a,c,u,l,b,v=e.c,y=p;if(v){e:{for(i=1,c=v[0];c>=10;c/=10,i++);if((o=t-i)<0)o+=d,a=t,b=(u=v[l=0])/y[i-a-1]%10|0;else if((l=s((o+1)/d))>=v.length){if(!n)break e;for(;v.length<=l;v.push(0));u=b=0,i=1,a=(o%=d)-d+1}else{for(u=c=v[l],i=1;c>=10;c/=10,i++);b=(a=(o%=d)-d+i)<0?0:u/y[i-a-1]%10|0}if(n=n||t<0||null!=v[l+1]||(a<0?u:u%y[i-a-1]),n=r<4?(b||n)&&(0==r||r==(e.s<0?3:2)):b>5||5==b&&(4==r||n||6==r&&(o>0?a>0?u/y[i-a]:0:v[l-1])%10&1||r==(e.s<0?8:7)),t<1||!v[0])return v.length=0,n?(t-=e.e+1,v[0]=y[(d-t%d)%d],e.e=-t||0):v[0]=e.e=0,e;if(0==o?(v.length=l,c=1,l--):(v.length=l+1,c=y[d-o],v[l]=a>0?f(u/y[i-a]%y[a])*c:0),n)for(;;){if(0==l){for(o=1,a=v[0];a>=10;a/=10,o++);for(a=v[0]+=c,c=1;a>=10;a/=10,c++);o!=c&&(e.e++,v[0]==h&&(v[0]=1));break}if(v[l]+=c,v[l]!=h)break;v[l--]=0,c=1}for(o=v.length;0===v[--o];v.pop());}e.e>j?e.c=e.e=null:e.e<L&&(e.c=[e.e=0])}return e}return H.clone=e,H.ROUND_UP=0,H.ROUND_DOWN=1,H.ROUND_CEIL=2,H.ROUND_FLOOR=3,H.ROUND_HALF_UP=4,H.ROUND_HALF_DOWN=5,H.ROUND_HALF_EVEN=6,H.ROUND_HALF_CEIL=7,H.ROUND_HALF_FLOOR=8,H.EUCLID=9,H.config=H.set=function(e){var t,r;if(null!=e){if("object"!=typeof e)throw Error(c+"Object expected: "+e);if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(w(r=e[t],0,v,t),N=r),e.hasOwnProperty(t="ROUNDING_MODE")&&(w(r=e[t],0,8,t),B=r),e.hasOwnProperty(t="EXPONENTIAL_AT")&&(_(r=e[t])?(w(r[0],-v,0,t),w(r[1],0,v,t),C=r[0],R=r[1]):(w(r,-v,v,t),C=-(R=r<0?-r:r))),e.hasOwnProperty(t="RANGE"))if(_(r=e[t]))w(r[0],-v,-1,t),w(r[1],1,v,t),L=r[0],j=r[1];else{if(w(r,-v,v,t),!r)throw Error(c+t+" cannot be zero: "+r);L=-(j=r<0?-r:r)}if(e.hasOwnProperty(t="CRYPTO")){if((r=e[t])!==!!r)throw Error(c+t+" not true or false: "+r);if(r){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw U=!r,Error(c+"crypto unavailable");U=r}else U=r}if(e.hasOwnProperty(t="MODULO_MODE")&&(w(r=e[t],0,9,t),D=r),e.hasOwnProperty(t="POW_PRECISION")&&(w(r=e[t],0,v,t),F=r),e.hasOwnProperty(t="FORMAT")){if("object"!=typeof(r=e[t]))throw Error(c+t+" not an object: "+r);z=r}if(e.hasOwnProperty(t="ALPHABET")){if("string"!=typeof(r=e[t])||/^.$|\.|(.).*\1/.test(r))throw Error(c+t+" invalid: "+r);q=r}}return{DECIMAL_PLACES:N,ROUNDING_MODE:B,EXPONENTIAL_AT:[C,R],RANGE:[L,j],CRYPTO:U,MODULO_MODE:D,POW_PRECISION:F,FORMAT:z,ALPHABET:q}},H.isBigNumber=function(e){return e instanceof H||e&&!0===e._isBigNumber||!1},H.maximum=H.max=function(){return V(arguments,T.lt)},H.minimum=H.min=function(){return V(arguments,T.gt)},H.random=(o=9007199254740992*Math.random()&2097151?function(){return f(9007199254740992*Math.random())}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(e){var t,r,n,i,a,u=0,h=[],l=new H(M);if(null==e?e=N:w(e,0,v),i=s(e/d),U)if(crypto.getRandomValues){for(t=crypto.getRandomValues(new Uint32Array(i*=2));u<i;)(a=131072*t[u]+(t[u+1]>>>11))>=9e15?(r=crypto.getRandomValues(new Uint32Array(2)),t[u]=r[0],t[u+1]=r[1]):(h.push(a%1e14),u+=2);u=i/2}else{if(!crypto.randomBytes)throw U=!1,Error(c+"crypto unavailable");for(t=crypto.randomBytes(i*=7);u<i;)(a=281474976710656*(31&t[u])+1099511627776*t[u+1]+4294967296*t[u+2]+16777216*t[u+3]+(t[u+4]<<16)+(t[u+5]<<8)+t[u+6])>=9e15?crypto.randomBytes(7).copy(t,u):(h.push(a%1e14),u+=7);u=i/7}if(!U)for(;u<i;)(a=o())<9e15&&(h[u++]=a%1e14);for(i=h[--u],e%=d,i&&e&&(a=p[d-e],h[u]=f(i/a)*a);0===h[u];h.pop(),u--);if(u<0)h=[n=0];else{for(n=-1;0===h[0];h.splice(0,1),n-=d);for(u=1,a=h[0];a>=10;a/=10,u++);u<d&&(n-=d-u)}return l.e=n,l.c=h,l}),n=function(){function e(e,t,r,n){for(var i,o,a=[0],s=0,f=e.length;s<f;){for(o=a.length;o--;a[o]*=t);for(a[0]+=n.indexOf(e.charAt(s++)),i=0;i<a.length;i++)a[i]>r-1&&(null==a[i+1]&&(a[i+1]=0),a[i+1]+=a[i]/r|0,a[i]%=r)}return a.reverse()}return function(t,n,i,o,a){var s,f,c,u,h,d,l,p,b=t.indexOf("."),v=N,y=B;for(b>=0&&(u=F,F=0,t=t.replace(".",""),d=(p=new H(n)).pow(t.length-b),F=u,p.c=e(A(m(d.c),d.e,"0"),10,i,"0123456789"),p.e=p.c.length),c=u=(l=e(t,n,i,a?(s=q,"0123456789"):(s="0123456789",q))).length;0==l[--u];l.pop());if(!l[0])return s.charAt(0);if(b<0?--c:(d.c=l,d.e=c,d.s=o,l=(d=r(d,p,v,y,i)).c,h=d.r,c=d.e),b=l[f=c+v+1],u=i/2,h=h||f<0||null!=l[f+1],h=y<4?(null!=b||h)&&(0==y||y==(d.s<0?3:2)):b>u||b==u&&(4==y||h||6==y&&1&l[f-1]||y==(d.s<0?8:7)),f<1||!l[0])t=h?A(s.charAt(1),-v,s.charAt(0)):s.charAt(0);else{if(l.length=f,h)for(--i;++l[--f]>i;)l[f]=0,f||(++c,l=[1].concat(l));for(u=l.length;!l[--u];);for(b=0,t="";b<=u;t+=s.charAt(l[b++]));t=A(t,c,s.charAt(0))}return t}}(),r=function(){function e(e,t,r){var n,i,o,a,s=0,f=e.length,c=t%b,u=t/b|0;for(e=e.slice();f--;)s=((i=c*(o=e[f]%b)+(n=u*o+(a=e[f]/b|0)*c)%b*b+s)/r|0)+(n/b|0)+u*a,e[f]=i%r;return s&&(e=[s].concat(e)),e}function t(e,t,r,n){var i,o;if(r!=n)o=r>n?1:-1;else for(i=o=0;i<r;i++)if(e[i]!=t[i]){o=e[i]>t[i]?1:-1;break}return o}function r(e,t,r,n){for(var i=0;r--;)e[r]-=i,i=e[r]<t[r]?1:0,e[r]=i*n+e[r]-t[r];for(;!e[0]&&e.length>1;e.splice(0,1));}return function(n,i,o,a,s){var c,u,l,p,b,v,m,g,w,_,E,S,A,I,k,x,P,O=n.s==i.s?1:-1,T=n.c,M=i.c;if(!(T&&T[0]&&M&&M[0]))return new H(n.s&&i.s&&(T?!M||T[0]!=M[0]:M)?T&&0==T[0]||!M?0*O:O/0:NaN);for(w=(g=new H(O)).c=[],O=o+(u=n.e-i.e)+1,s||(s=h,u=y(n.e/d)-y(i.e/d),O=O/d|0),l=0;M[l]==(T[l]||0);l++);if(M[l]>(T[l]||0)&&u--,O<0)w.push(1),p=!0;else{for(I=T.length,x=M.length,l=0,O+=2,(b=f(s/(M[0]+1)))>1&&(M=e(M,b,s),T=e(T,b,s),x=M.length,I=T.length),A=x,E=(_=T.slice(0,x)).length;E<x;_[E++]=0);P=M.slice(),P=[0].concat(P),k=M[0],M[1]>=s/2&&k++;do{if(b=0,(c=t(M,_,x,E))<0){if(S=_[0],x!=E&&(S=S*s+(_[1]||0)),(b=f(S/k))>1)for(b>=s&&(b=s-1),m=(v=e(M,b,s)).length,E=_.length;1==t(v,_,m,E);)b--,r(v,x<m?P:M,m,s),m=v.length,c=1;else 0==b&&(c=b=1),m=(v=M.slice()).length;if(m<E&&(v=[0].concat(v)),r(_,v,E,s),E=_.length,-1==c)for(;t(M,_,x,E)<1;)b++,r(_,x<E?P:M,E,s),E=_.length}else 0===c&&(b++,_=[0]);w[l++]=b,_[0]?_[E++]=T[A]||0:(_=[T[A]],E=1)}while((A++<I||null!=_[0])&&O--);p=null!=_[0],w[0]||w.splice(0,1)}if(s==h){for(l=1,O=w[0];O>=10;O/=10,l++);Y(g,o+(g.e=l+u*d-1)+1,a,p)}else g.e=u,g.r=+p;return g}}(),I=/^(-?)0([xbo])(?=\w[\w.]*$)/i,k=/^([^.]+)\.$/,x=/^\.([^.]+)$/,P=/^-?(Infinity|NaN)$/,O=/^\s*\+(?=[\w.])|^\s+|\s+$/g,i=function(e,t,r,n){var i,o=r?t:t.replace(O,"");if(P.test(o))e.s=isNaN(o)?null:o<0?-1:1,e.c=e.e=null;else{if(!r&&(o=o.replace(I,function(e,t,r){return i="x"==(r=r.toLowerCase())?16:"b"==r?2:8,n&&n!=i?e:t}),n&&(i=n,o=o.replace(k,"$1").replace(x,"0.$1")),t!=o))return new H(o,i);if(H.DEBUG)throw Error(c+"Not a"+(n?" base "+n:"")+" number: "+t);e.c=e.e=e.s=null}},T.absoluteValue=T.abs=function(){var e=new H(this);return e.s<0&&(e.s=1),e},T.comparedTo=function(e,t){return g(this,new H(e,t))},T.decimalPlaces=T.dp=function(e,t){var r,n,i,o=this;if(null!=e)return w(e,0,v),null==t?t=B:w(t,0,8),Y(new H(o),e+o.e+1,t);if(!(r=o.c))return null;if(n=((i=r.length-1)-y(this.e/d))*d,i=r[i])for(;i%10==0;i/=10,n--);return n<0&&(n=0),n},T.dividedBy=T.div=function(e,t){return r(this,new H(e,t),N,B)},T.dividedToIntegerBy=T.idiv=function(e,t){return r(this,new H(e,t),0,1)},T.exponentiatedBy=T.pow=function(e,t){var r,n,i,o,a,u,h,l=this;if((e=new H(e)).c&&!e.isInteger())throw Error(c+"Exponent not an integer: "+e);if(null!=t&&(t=new H(t)),o=e.e>14,!l.c||!l.c[0]||1==l.c[0]&&!l.e&&1==l.c.length||!e.c||!e.c[0])return h=new H(Math.pow(+l.valueOf(),o?2-E(e):+e)),t?h.mod(t):h;if(a=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new H(NaN);(n=!a&&l.isInteger()&&t.isInteger())&&(l=l.mod(t))}else{if(e.e>9&&(l.e>0||l.e<-1||(0==l.e?l.c[0]>1||o&&l.c[1]>=24e7:l.c[0]<8e13||o&&l.c[0]<=9999975e7)))return i=l.s<0&&E(e)?-0:0,l.e>-1&&(i=1/i),new H(a?1/i:i);F&&(i=s(F/d+2))}for(o?(r=new H(.5),u=E(e)):u=e%2,a&&(e.s=1),h=new H(M);;){if(u){if(!(h=h.times(l)).c)break;i?h.c.length>i&&(h.c.length=i):n&&(h=h.mod(t))}if(o){if(Y(e=e.times(r),e.e+1,1),!e.c[0])break;o=e.e>14,u=E(e)}else{if(!(e=f(e/2)))break;u=e%2}l=l.times(l),i?l.c&&l.c.length>i&&(l.c.length=i):n&&(l=l.mod(t))}return n?h:(a&&(h=M.div(h)),t?h.mod(t):i?Y(h,F,B,void 0):h)},T.integerValue=function(e){var t=new H(this);return null==e?e=B:w(e,0,8),Y(t,t.e+1,e)},T.isEqualTo=T.eq=function(e,t){return 0===g(this,new H(e,t))},T.isFinite=function(){return!!this.c},T.isGreaterThan=T.gt=function(e,t){return g(this,new H(e,t))>0},T.isGreaterThanOrEqualTo=T.gte=function(e,t){return 1===(t=g(this,new H(e,t)))||0===t},T.isInteger=function(){return!!this.c&&y(this.e/d)>this.c.length-2},T.isLessThan=T.lt=function(e,t){return g(this,new H(e,t))<0},T.isLessThanOrEqualTo=T.lte=function(e,t){return-1===(t=g(this,new H(e,t)))||0===t},T.isNaN=function(){return!this.s},T.isNegative=function(){return this.s<0},T.isPositive=function(){return this.s>0},T.isZero=function(){return!!this.c&&0==this.c[0]},T.minus=function(e,t){var r,n,i,o,a=this,s=a.s;if(t=(e=new H(e,t)).s,!s||!t)return new H(NaN);if(s!=t)return e.s=-t,a.plus(e);var f=a.e/d,c=e.e/d,u=a.c,l=e.c;if(!f||!c){if(!u||!l)return u?(e.s=-t,e):new H(l?a:NaN);if(!u[0]||!l[0])return l[0]?(e.s=-t,e):new H(u[0]?a:3==B?-0:0)}if(f=y(f),c=y(c),u=u.slice(),s=f-c){for((o=s<0)?(s=-s,i=u):(c=f,i=l),i.reverse(),t=s;t--;i.push(0));i.reverse()}else for(n=(o=(s=u.length)<(t=l.length))?s:t,s=t=0;t<n;t++)if(u[t]!=l[t]){o=u[t]<l[t];break}if(o&&(i=u,u=l,l=i,e.s=-e.s),(t=(n=l.length)-(r=u.length))>0)for(;t--;u[r++]=0);for(t=h-1;n>s;){if(u[--n]<l[n]){for(r=n;r&&!u[--r];u[r]=t);--u[r],u[n]+=h}u[n]-=l[n]}for(;0==u[0];u.splice(0,1),--c);return u[0]?G(e,u,c):(e.s=3==B?-1:1,e.c=[e.e=0],e)},T.modulo=T.mod=function(e,t){var n,i,o=this;return e=new H(e,t),!o.c||!e.s||e.c&&!e.c[0]?new H(NaN):!e.c||o.c&&!o.c[0]?new H(o):(9==D?(i=e.s,e.s=1,n=r(o,e,0,3),e.s=i,n.s*=i):n=r(o,e,0,D),(e=o.minus(n.times(e))).c[0]||1!=D||(e.s=o.s),e)},T.multipliedBy=T.times=function(e,t){var r,n,i,o,a,s,f,c,u,l,p,v,m,g,w,_=this,E=_.c,S=(e=new H(e,t)).c;if(!(E&&S&&E[0]&&S[0]))return!_.s||!e.s||E&&!E[0]&&!S||S&&!S[0]&&!E?e.c=e.e=e.s=null:(e.s*=_.s,E&&S?(e.c=[0],e.e=0):e.c=e.e=null),e;for(n=y(_.e/d)+y(e.e/d),e.s*=_.s,(f=E.length)<(l=S.length)&&(m=E,E=S,S=m,i=f,f=l,l=i),i=f+l,m=[];i--;m.push(0));for(g=h,w=b,i=l;--i>=0;){for(r=0,p=S[i]%w,v=S[i]/w|0,o=i+(a=f);o>i;)r=((c=p*(c=E[--a]%w)+(s=v*c+(u=E[a]/w|0)*p)%w*w+m[o]+r)/g|0)+(s/w|0)+v*u,m[o--]=c%g;m[o]=r}return r?++n:m.splice(0,1),G(e,m,n)},T.negated=function(){var e=new H(this);return e.s=-e.s||null,e},T.plus=function(e,t){var r,n=this,i=n.s;if(t=(e=new H(e,t)).s,!i||!t)return new H(NaN);if(i!=t)return e.s=-t,n.minus(e);var o=n.e/d,a=e.e/d,s=n.c,f=e.c;if(!o||!a){if(!s||!f)return new H(i/0);if(!s[0]||!f[0])return f[0]?e:new H(s[0]?n:0*i)}if(o=y(o),a=y(a),s=s.slice(),i=o-a){for(i>0?(a=o,r=f):(i=-i,r=s),r.reverse();i--;r.push(0));r.reverse()}for((i=s.length)-(t=f.length)<0&&(r=f,f=s,s=r,t=i),i=0;t;)i=(s[--t]=s[t]+f[t]+i)/h|0,s[t]=h===s[t]?0:s[t]%h;return i&&(s=[i].concat(s),++a),G(e,s,a)},T.precision=T.sd=function(e,t){var r,n,i,o=this;if(null!=e&&e!==!!e)return w(e,1,v),null==t?t=B:w(t,0,8),Y(new H(o),e,t);if(!(r=o.c))return null;if(n=(i=r.length-1)*d+1,i=r[i]){for(;i%10==0;i/=10,n--);for(i=r[0];i>=10;i/=10,n++);}return e&&o.e+1>n&&(n=o.e+1),n},T.shiftedBy=function(e){return w(e,-l,l),this.times("1e"+e)},T.squareRoot=T.sqrt=function(){var e,t,n,i,o,a=this,s=a.c,f=a.s,c=a.e,u=N+4,h=new H("0.5");if(1!==f||!s||!s[0])return new H(!f||f<0&&(!s||s[0])?NaN:s?a:1/0);if(0==(f=Math.sqrt(+a))||f==1/0?(((t=m(s)).length+c)%2==0&&(t+="0"),f=Math.sqrt(t),c=y((c+1)/2)-(c<0||c%2),n=new H(t=f==1/0?"1e"+c:(t=f.toExponential()).slice(0,t.indexOf("e")+1)+c)):n=new H(f+""),n.c[0])for((f=(c=n.e)+u)<3&&(f=0);;)if(o=n,n=h.times(o.plus(r(a,o,u,1))),m(o.c).slice(0,f)===(t=m(n.c)).slice(0,f)){if(n.e<c&&--f,"9999"!=(t=t.slice(f-3,f+1))&&(i||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(Y(n,n.e+N+2,1),e=!n.times(n).eq(a));break}if(!i&&(Y(o,o.e+N+2,0),o.times(o).eq(a))){n=o;break}u+=4,f+=4,i=1}return Y(n,n.e+N+1,B,e)},T.toExponential=function(e,t){return null!=e&&(w(e,0,v),e++),K(this,e,t,1)},T.toFixed=function(e,t){return null!=e&&(w(e,0,v),e=e+this.e+1),K(this,e,t)},T.toFormat=function(e,t){var r=this.toFixed(e,t);if(this.c){var n,i=r.split("."),o=+z.groupSize,a=+z.secondaryGroupSize,s=z.groupSeparator,f=i[0],c=i[1],u=this.s<0,h=u?f.slice(1):f,d=h.length;if(a&&(n=o,o=a,a=n,d-=n),o>0&&d>0){for(n=d%o||o,f=h.substr(0,n);n<d;n+=o)f+=s+h.substr(n,o);a>0&&(f+=s+h.slice(n)),u&&(f="-"+f)}r=c?f+z.decimalSeparator+((a=+z.fractionGroupSize)?c.replace(new RegExp("\\d{"+a+"}\\B","g"),"$&"+z.fractionGroupSeparator):c):f}return r},T.toFraction=function(e){var t,n,i,o,a,s,f,u,h,l,b,v,y=this,g=y.c;if(null!=e&&(!(u=new H(e)).isInteger()&&(u.c||1!==u.s)||u.lt(M)))throw Error(c+"Argument "+(u.isInteger()?"out of range: ":"not an integer: ")+e);if(!g)return y.toString();for(n=new H(M),l=i=new H(M),o=h=new H(M),v=m(g),s=n.e=v.length-y.e-1,n.c[0]=p[(f=s%d)<0?d+f:f],e=!e||u.comparedTo(n)>0?s>0?n:l:u,f=j,j=1/0,u=new H(v),h.c[0]=0;b=r(u,n,0,1),1!=(a=i.plus(b.times(o))).comparedTo(e);)i=o,o=a,l=h.plus(b.times(a=l)),h=a,n=u.minus(b.times(a=n)),u=a;return a=r(e.minus(i),o,0,1),h=h.plus(a.times(l)),i=i.plus(a.times(o)),h.s=l.s=y.s,t=r(l,o,s*=2,B).minus(y).abs().comparedTo(r(h,i,s,B).minus(y).abs())<1?[l.toString(),o.toString()]:[h.toString(),i.toString()],j=f,t},T.toNumber=function(){return+this},T.toPrecision=function(e,t){return null!=e&&w(e,1,v),K(this,e,t,2)},T.toString=function(e){var t,r=this,i=r.s,o=r.e;return null===o?i?(t="Infinity",i<0&&(t="-"+t)):t="NaN":(t=m(r.c),null==e?t=o<=C||o>=R?S(t,o):A(t,o,"0"):(w(e,2,q.length,"Base"),t=n(A(t,o,"0"),10,e,i,!0)),i<0&&r.c[0]&&(t="-"+t)),t},T.valueOf=T.toJSON=function(){var e,t=this,r=t.e;return null===r?t.toString():(e=m(t.c),e=r<=C||r>=R?S(e,r):A(e,r,"0"),t.s<0?"-"+e:e)},T._isBigNumber=!0,null!=t&&H.set(t),H}()).default=o.BigNumber=o,void 0===(n=function(){return o}.call(t,r,t,e))||(e.exports=n)}()},function(e,t,r){"use strict";(function(t){function n(e,t){if(e===t)return 0;for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);i<o;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0}function i(e){return t.Buffer&&"function"==typeof t.Buffer.isBuffer?t.Buffer.isBuffer(e):!(null==e||!e._isBuffer)}var o=r(50),a=Object.prototype.hasOwnProperty,s=Array.prototype.slice,f="foo"===function(){}.name;function c(e){return Object.prototype.toString.call(e)}function u(e){return!i(e)&&("function"==typeof t.ArrayBuffer&&("function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):!!e&&(e instanceof DataView||!!(e.buffer&&e.buffer instanceof ArrayBuffer))))}var h=e.exports=y,d=/\s*function\s+([^\(\s]*)\s*/;function l(e){if(o.isFunction(e)){if(f)return e.name;var t=e.toString().match(d);return t&&t[1]}}function p(e,t){return"string"==typeof e?e.length<t?e:e.slice(0,t):e}function b(e){if(f||!o.isFunction(e))return o.inspect(e);var t=l(e);return"[Function"+(t?": "+t:"")+"]"}function v(e,t,r,n,i){throw new h.AssertionError({message:r,actual:e,expected:t,operator:n,stackStartFunction:i})}function y(e,t){e||v(e,!0,t,"==",h.ok)}function m(e,t,r,a){if(e===t)return!0;if(i(e)&&i(t))return 0===n(e,t);if(o.isDate(e)&&o.isDate(t))return e.getTime()===t.getTime();if(o.isRegExp(e)&&o.isRegExp(t))return e.source===t.source&&e.global===t.global&&e.multiline===t.multiline&&e.lastIndex===t.lastIndex&&e.ignoreCase===t.ignoreCase;if(null!==e&&"object"==typeof e||null!==t&&"object"==typeof t){if(u(e)&&u(t)&&c(e)===c(t)&&!(e instanceof Float32Array||e instanceof Float64Array))return 0===n(new Uint8Array(e.buffer),new Uint8Array(t.buffer));if(i(e)!==i(t))return!1;var f=(a=a||{actual:[],expected:[]}).actual.indexOf(e);return-1!==f&&f===a.expected.indexOf(t)||(a.actual.push(e),a.expected.push(t),function(e,t,r,n){if(null===e||void 0===e||null===t||void 0===t)return!1;if(o.isPrimitive(e)||o.isPrimitive(t))return e===t;if(r&&Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1;var i=g(e),a=g(t);if(i&&!a||!i&&a)return!1;if(i)return e=s.call(e),t=s.call(t),m(e,t,r);var f,c,u=E(e),h=E(t);if(u.length!==h.length)return!1;for(u.sort(),h.sort(),c=u.length-1;c>=0;c--)if(u[c]!==h[c])return!1;for(c=u.length-1;c>=0;c--)if(f=u[c],!m(e[f],t[f],r,n))return!1;return!0}(e,t,r,a))}return r?e===t:e==t}function g(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function w(e,t){if(!e||!t)return!1;if("[object RegExp]"==Object.prototype.toString.call(t))return t.test(e);try{if(e instanceof t)return!0}catch(e){}return!Error.isPrototypeOf(t)&&!0===t.call({},e)}function _(e,t,r,n){var i;if("function"!=typeof t)throw new TypeError('"block" argument must be a function');"string"==typeof r&&(n=r,r=null),i=function(e){var t;try{e()}catch(e){t=e}return t}(t),n=(r&&r.name?" ("+r.name+").":".")+(n?" "+n:"."),e&&!i&&v(i,r,"Missing expected exception"+n);var a="string"==typeof n,s=!e&&o.isError(i),f=!e&&i&&!r;if((s&&a&&w(i,r)||f)&&v(i,r,"Got unwanted exception"+n),e&&i&&r&&!w(i,r)||!e&&i)throw i}h.AssertionError=function(e){var t;this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=p(b((t=this).actual),128)+" "+t.operator+" "+p(b(t.expected),128),this.generatedMessage=!0);var r=e.stackStartFunction||v;if(Error.captureStackTrace)Error.captureStackTrace(this,r);else{var n=new Error;if(n.stack){var i=n.stack,o=l(r),a=i.indexOf("\n"+o);if(a>=0){var s=i.indexOf("\n",a+1);i=i.substring(s+1)}this.stack=i}}},o.inherits(h.AssertionError,Error),h.fail=v,h.ok=y,h.equal=function(e,t,r){e!=t&&v(e,t,r,"==",h.equal)},h.notEqual=function(e,t,r){e==t&&v(e,t,r,"!=",h.notEqual)},h.deepEqual=function(e,t,r){m(e,t,!1)||v(e,t,r,"deepEqual",h.deepEqual)},h.deepStrictEqual=function(e,t,r){m(e,t,!0)||v(e,t,r,"deepStrictEqual",h.deepStrictEqual)},h.notDeepEqual=function(e,t,r){m(e,t,!1)&&v(e,t,r,"notDeepEqual",h.notDeepEqual)},h.notDeepStrictEqual=function e(t,r,n){m(t,r,!0)&&v(t,r,n,"notDeepStrictEqual",e)},h.strictEqual=function(e,t,r){e!==t&&v(e,t,r,"===",h.strictEqual)},h.notStrictEqual=function(e,t,r){e===t&&v(e,t,r,"!==",h.notStrictEqual)},h.throws=function(e,t,r){_(!0,e,t,r)},h.doesNotThrow=function(e,t,r){_(!1,e,t,r)},h.ifError=function(e){if(e)throw e};var E=Object.keys||function(e){var t=[];for(var r in e)a.call(e,r)&&t.push(r);return t}}).call(t,r(29))},,function(e,t,r){var n=r(36);function i(e){return n("rmd160").update(e).digest()}function o(e){return n("sha256").update(e).digest()}e.exports={hash160:function(e){return i(o(e))},hash256:function(e){return o(o(e))},ripemd160:i,sha1:function(e){return n("sha1").update(e).digest()},sha256:o}},,,,,,function(e,t,r){(function(Buffer){function e(e){return Object.prototype.toString.call(e)}t.isArray=function(t){return Array.isArray?Array.isArray(t):"[object Array]"===e(t)},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(t){return"[object RegExp]"===e(t)},t.isObject=function(e){return"object"==typeof e&&null!==e},t.isDate=function(t){return"[object Date]"===e(t)},t.isError=function(t){return"[object Error]"===e(t)||t 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=Buffer.isBuffer}).call(t,r(3).Buffer)},function(e,t,r){"use strict";var n=r(37),i=r(30);function o(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}t.BlockHash=o,o.prototype.update=function(e,t){if(e=n.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var r=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=n.join32(e,0,e.length-r,this.endian);for(var i=0;i<e.length;i+=this._delta32)this._update(e,i,i+this._delta32)}return this},o.prototype.digest=function(e){return this.update(this._pad()),i(null===this.pending),this._digest(e)},o.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,r=t-(e+this.padLength)%t,n=new Array(r+this.padLength);n[0]=128;for(var i=1;i<r;i++)n[i]=0;if(e<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)n[i++]=0;n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=e>>>24&255,n[i++]=e>>>16&255,n[i++]=e>>>8&255,n[i++]=255&e}else for(n[i++]=255&e,n[i++]=e>>>8&255,n[i++]=e>>>16&255,n[i++]=e>>>24&255,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,o=8;o<this.padLength;o++)n[i++]=0;return n}},function(e,t,r){var n=t;n.bignum=r(9),n.define=r(311).define,n.base=r(69),n.constants=r(155),n.decoders=r(317),n.encoders=r(319)},function(e,t,r){var n=t;n.Reporter=r(314).Reporter,n.DecoderBuffer=r(154).DecoderBuffer,n.EncoderBuffer=r(154).EncoderBuffer,n.Node=r(315)},function(e,t,r){"use strict";(function(Buffer,e){const n=r(339),i=r(33),o=r(57),a=r(51),s=a.NUMBYTES,f=a.SHIFT32;function c(e){if(null!=e)return console.log(e)}t.parseCBORint=function(e,t){switch(e){case s.ONE:return t.readUInt8(0);case s.TWO:return t.readUInt16BE(0);case s.FOUR:return t.readUInt32BE(0);case s.EIGHT:const r=t.readUInt32BE(0),n=t.readUInt32BE(4);return r>2097151?new o(r).times(f).plus(n):r*f+n;default:throw new Error("Invalid additional info for int: "+e)}},t.writeHalf=function(e,t){const r=Buffer.alloc(4);r.writeFloatBE(t);const n=r.readUInt32BE(0);if(0!=(8191&n))return!1;let i=n>>16&32768;const o=n>>23&255,a=8388607&n;if(o>=113&&o<=142)i+=(o-112<<10)+(a>>13);else{if(!(o>=103&&o<113))return!1;if(a&(1<<126-o)-1)return!1;i+=a+8388608>>126-o}return e.writeUInt16BE(i),!0},t.parseHalf=function(e){const t=128&e[0]?-1:1,r=(124&e[0])>>2,n=(3&e[0])<<8|e[1];return r?31===r?t*(n?NaN:Infinity):t*Math.pow(2,r-25)*(1024+n):5.960464477539063e-8*t*n},t.parseCBORfloat=function(e){switch(e.length){case 2:return t.parseHalf(e);case 4:return e.readFloatBE(0);case 8:return e.readDoubleBE(0);default:throw new Error("Invalid float size: "+e.length)}},t.hex=function(e){return Buffer.from(e.replace(/^0x/,""),"hex")},t.bin=function(e){let t=0,r=(e=e.replace(/\s/g,"")).length%8||8;const n=[];for(;r<=e.length;)n.push(parseInt(e.slice(t,r),2)),t=r,r+=8;return Buffer.from(n)},t.extend=function(){let e=arguments[0];const t=2<=arguments.length?Array.prototype.slice.call(arguments,1):[],r=t.length;null==e&&(e={});for(let n=0;n<r;n++){const r=t[n];for(const t in r){const n=r[t];e[t]=n}}return e},t.arrayEqual=function(e,t){return null==e&&null==t||null!=e&&null!=t&&(e.length===t.length&&e.every((e,r)=>e===t[r]))},t.bufferEqual=function(e,t){if(null==e&&null==t)return!0;if(null==e||null==t)return!1;if(!Buffer.isBuffer(e)||!Buffer.isBuffer(t)||e.length!==t.length)return!1;const r=e.length;let n,i,o=!0;for(n=i=0;i<r;n=++i){const r=e[n];o&=t[n]===r}return!!o},t.bufferToBignumber=function(e){return new o(e.toString("hex"),16)},t.DeHexStream=class extends i.Readable{constructor(e){super(),(e=e.replace(/^0x/,""))&&this.push(Buffer.from(e,"hex")),this.push(null)}},t.HexStream=class extends i.Transform{constructor(e){super(e)}_transform(e,t,r){return this.push(e.toString("hex")),r()}},t.streamFiles=function(r,o,a){null==a&&(a=c);const s=r.shift();if(!s)return a();const f=o();f.on("end",()=>t.streamFiles(r,o,a)),f.on("error",a);const u="-"===s?e.stdin:s instanceof i.Stream?s:n.createReadStream(s);return u.on("error",a),u.pipe(f)},t.guessEncoding=function(e){switch(!1){case"string"!=typeof e:return"hex";case!Buffer.isBuffer(e):return;default:throw new Error("Unknown input type")}}}).call(t,r(3).Buffer,r(32))},function(e,t,r){"use strict";const n=r(50),i=r(51),o=i.MT,a=i.SIMPLE,s=i.SYMS;class f{constructor(e){if("number"!=typeof e)throw new Error("Invalid Simple type: "+typeof e);if(e<0||e>255||(0|e)!==e)throw new Error("value must be a small positive integer: "+e);this.value=e}toString(){return"simple("+this.value+")"}[n.inspect.custom](e,t){return"simple("+this.value+")"}inspect(e,t){return"simple("+this.value+")"}encodeCBOR(e){return e._pushInt(this.value,o.SIMPLE_FLOAT)}static isSimple(e){return e instanceof f}static decode(e,t){switch(null==t&&(t=!0),e){case a.FALSE:return!1;case a.TRUE:return!0;case a.NULL:return t?null:s.NULL;case a.UNDEFINED:return t?void 0:s.UNDEFINED;case-1:if(!t)throw new Error("Invalid BREAK");return s.BREAK;default:return new f(e)}}}e.exports=f},function(e,t,r){(function(Buffer){(function(){var t,n,i={}.hasOwnProperty;t=r(33),n=r(50),e.exports=function(e){var r,o;function a(e,t,r){var n,i,o,s,f;switch(null==r&&(r={}),n=void 0,i=void 0,typeof e){case"object":Buffer.isBuffer(e)?(n=e,null!=t&&"object"==typeof t&&(r=t)):r=e;break;case"string":n=e,null!=t&&"object"==typeof t?r=t:i=t}null==r&&(r={}),null==n&&(n=r.input),null==i&&(i=r.inputEncoding),delete r.input,delete r.inputEncoding,s=null==(o=r.watchPipe)||o,delete r.watchPipe,a.__super__.constructor.call(this,r),s&&this.on("pipe",(f=this,function(e){var t;if(t=e._readableState.objectMode,f.length>0&&t!==f._readableState.objectMode)throw new Error("Do not switch objectMode in the middle of the stream");return f._readableState.objectMode=t,f._writableState.objectMode=t})),null!=n&&this.end(n,i)}return function(e,t){for(var r in t)i.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(a,t.Transform),a.isNoFilter=function(e){return e instanceof this},a.compare=function(e,t){if(!(e instanceof this))throw new TypeError("Arguments must be NoFilters");return e===t?0:e.compare(t)},a.concat=function(e,t){var r;if(!Array.isArray(e))throw new TypeError("list argument must be an Array of NoFilters");return 0===e.length||0===t?new Buffer(0):(null==t&&(t=e.reduce(function(e,t){if(!(t instanceof a))throw new TypeError("list argument must be an Array of NoFilters");return e+t.length},0)),r=e.map(function(e){if(!(e instanceof a))throw new TypeError("list argument must be an Array of NoFilters");if(e._readableState.objectMode)throw new Error("NoFilter may not be in object mode for concat");return e.slice()}),Buffer.concat(r,t))},a.prototype._transform=function(e,t,r){return this._readableState.objectMode||Buffer.isBuffer(e)||(e=new Buffer(e,t)),this.push(e),r()},a.prototype._bufArray=function(){var e,t;if(t=this._readableState.buffer,!Array.isArray(t))for(e=t.head,t=[];null!=e;)t.push(e.data),e=e.next;return t},a.prototype.read=function(e){var t;return null!=(t=a.__super__.read.call(this,e))&&this.emit("read",t),t},a.prototype.promise=function(e){var t,r;return t=!1,new Promise((r=this,function(n,i){return r.on("finish",function(){var i;return i=r.read(),null==e||t||(t=!0,e(null,i)),n(i)}),r.on("error",function(r){return null==e||t||(t=!0,e(r)),i(r)})}))},a.prototype.compare=function(e){if(!(e instanceof a))throw new TypeError("Arguments must be NoFilters");if(this._readableState.objectMode||e._readableState.objectMode)throw new Error("Must not be in object mode to compare");return this===e?0:this.slice().compare(e.slice())},a.prototype.equals=function(e){return 0===this.compare(e)},a.prototype.slice=function(e,t){var r;if(this._readableState.objectMode)return this._bufArray().slice(e,t);switch((r=this._bufArray()).length){case 0:return new Buffer(0);case 1:return r[0].slice(e,t);default:return Buffer.concat(r).slice(e,t)}},a.prototype.get=function(e){return this.slice()[e]},a.prototype.toJSON=function(){var e;return e=this.slice(),Buffer.isBuffer(e)?e.toJSON():e},a.prototype.toString=function(e,t,r){return this.slice().toString(e,t,r)},a.prototype.inspect=function(e,t){var r;return r=this._bufArray().map(function(e){return Buffer.isBuffer(e)?(null!=t?t.stylize:void 0)?t.stylize(e.toString("hex"),"string"):e.toString("hex"):n.inspect(e,t)}).join(", "),this.constructor.name+" ["+r+"]"},r=function(e,t){return function(r){var n;return n=this.read(t),Buffer.isBuffer(n)?n[e].call(n,0,!0):null}},o=function(e,t){return function(r){var n;return(n=new Buffer(t))[e].call(n,r,0,!0),this.push(n)}},a.prototype.writeUInt8=o("writeUInt8",1),a.prototype.writeUInt16LE=o("writeUInt16LE",2),a.prototype.writeUInt16BE=o("writeUInt16BE",2),a.prototype.writeUInt32LE=o("writeUInt32LE",4),a.prototype.writeUInt32BE=o("writeUInt32BE",4),a.prototype.writeInt8=o("writeInt8",1),a.prototype.writeInt16LE=o("writeInt16LE",2),a.prototype.writeInt16BE=o("writeInt16BE",2),a.prototype.writeInt32LE=o("writeInt32LE",4),a.prototype.writeInt32BE=o("writeInt32BE",4),a.prototype.writeFloatLE=o("writeFloatLE",4),a.prototype.writeFloatBE=o("writeFloatBE",4),a.prototype.writeDoubleLE=o("writeDoubleLE",8),a.prototype.writeDoubleBE=o("writeDoubleBE",8),a.prototype.readUInt8=r("readUInt8",1),a.prototype.readUInt16LE=r("readUInt16LE",2),a.prototype.readUInt16BE=r("readUInt16BE",2),a.prototype.readUInt32LE=r("readUInt32LE",4),a.prototype.readUInt32BE=r("readUInt32BE",4),a.prototype.readInt8=r("readInt8",1),a.prototype.readInt16LE=r("readInt16LE",2),a.prototype.readInt16BE=r("readInt16BE",2),a.prototype.readInt32LE=r("readInt32LE",4),a.prototype.readInt32BE=r("readInt32BE",4),a.prototype.readFloatLE=r("readFloatLE",4),a.prototype.readFloatBE=r("readFloatBE",4),a.prototype.readDoubleLE=r("readDoubleLE",8),a.prototype.readDoubleBE=r("readDoubleBE",8),function(e){var t,r,n;for(r in n=[],e)t=e[r],n.push(a.prototype.__defineGetter__(r,t));return n}({length:function(){return this._readableState.length}}),a}()}).call(this)}).call(t,r(3).Buffer)},function(e,t,r){(function(Buffer){const e=r(171),n=r(378),i=r(58),o=r(383),a=r(9),s=r(36);Object.assign(t,r(384)),t.MAX_INTEGER=new a("ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",16),t.TWO_POW256=new a("10000000000000000000000000000000000000000000000000000000000000000",16),t.SHA3_NULL_S="c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",t.SHA3_NULL=Buffer.from(t.SHA3_NULL_S,"hex"),t.SHA3_RLP_ARRAY_S="1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",t.SHA3_RLP_ARRAY=Buffer.from(t.SHA3_RLP_ARRAY_S,"hex"),t.SHA3_RLP_S="56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",t.SHA3_RLP=Buffer.from(t.SHA3_RLP_S,"hex"),t.BN=a,t.rlp=o,t.secp256k1=n,t.zeros=function(e){return Buffer.allocUnsafe(e).fill(0)},t.setLengthLeft=t.setLength=function(e,r,n){var i=t.zeros(r);return e=t.toBuffer(e),n?e.length<r?(e.copy(i),i):e.slice(0,r):e.length<r?(e.copy(i,r-e.length),i):e.slice(-r)},t.setLengthRight=function(e,r){return t.setLength(e,r,!0)},t.unpad=t.stripZeros=function(e){for(var r=(e=t.stripHexPrefix(e))[0];e.length>0&&"0"===r.toString();)r=(e=e.slice(1))[0];return e},t.toBuffer=function(e){if(!Buffer.isBuffer(e))if(Array.isArray(e))e=Buffer.from(e);else if("string"==typeof e)e=t.isHexString(e)?Buffer.from(t.padToEven(t.stripHexPrefix(e)),"hex"):Buffer.from(e);else if("number"==typeof e)e=t.intToBuffer(e);else if(null===e||void 0===e)e=Buffer.allocUnsafe(0);else{if(!e.toArray)throw new Error("invalid type");e=Buffer.from(e.toArray())}return e},t.bufferToInt=function(e){return new a(t.toBuffer(e)).toNumber()},t.bufferToHex=function(e){return"0x"+(e=t.toBuffer(e)).toString("hex")},t.fromSigned=function(e){return new a(e).fromTwos(256)},t.toUnsigned=function(e){return Buffer.from(e.toTwos(256).toArray())},t.sha3=function(r,n){return r=t.toBuffer(r),n||(n=256),e("keccak"+n).update(r).digest()},t.sha256=function(e){return e=t.toBuffer(e),s("sha256").update(e).digest()},t.ripemd160=function(e,r){e=t.toBuffer(e);var n=s("rmd160").update(e).digest();return!0===r?t.setLength(n,32):n},t.rlphash=function(e){return t.sha3(o.encode(e))},t.isValidPrivate=function(e){return n.privateKeyVerify(e)},t.isValidPublic=function(e,t){return 64===e.length?n.publicKeyVerify(Buffer.concat([Buffer.from([4]),e])):!!t&&n.publicKeyVerify(e)},t.pubToAddress=t.publicToAddress=function(e,r){return e=t.toBuffer(e),r&&64!==e.length&&(e=n.publicKeyConvert(e,!1).slice(1)),i(64===e.length),t.sha3(e).slice(-20)};var f=t.privateToPublic=function(e){return e=t.toBuffer(e),n.publicKeyCreate(e,!1).slice(1)};t.importPublic=function(e){return 64!==(e=t.toBuffer(e)).length&&(e=n.publicKeyConvert(e,!1).slice(1)),e},t.ecsign=function(e,t){var r=n.sign(e,t),i={};return i.r=r.signature.slice(0,32),i.s=r.signature.slice(32,64),i.v=r.recovery+27,i},t.hashPersonalMessage=function(e){var r=t.toBuffer("Ethereum Signed Message:\n"+e.length.toString());return t.sha3(Buffer.concat([r,e]))},t.ecrecover=function(e,r,i,o){var a=Buffer.concat([t.setLength(i,32),t.setLength(o,32)],64),s=r-27;if(0!==s&&1!==s)throw new Error("Invalid signature v value");var f=n.recover(e,a,s);return n.publicKeyConvert(f,!1).slice(1)},t.toRpcSig=function(e,r,n){if(27!==e&&28!==e)throw new Error("Invalid recovery id");return t.bufferToHex(Buffer.concat([t.setLengthLeft(r,32),t.setLengthLeft(n,32),t.toBuffer(e-27)]))},t.fromRpcSig=function(e){if(65!==(e=t.toBuffer(e)).length)throw new Error("Invalid signature length");var r=e[64];return r<27&&(r+=27),{v:r,r:e.slice(0,32),s:e.slice(32,64)}},t.privateToAddress=function(e){return t.publicToAddress(f(e))},t.isValidAddress=function(e){return/^0x[0-9a-fA-F]{40}$/i.test(e)},t.toChecksumAddress=function(e){e=t.stripHexPrefix(e).toLowerCase();for(var r=t.sha3(e).toString("hex"),n="0x",i=0;i<e.length;i++)parseInt(r[i],16)>=8?n+=e[i].toUpperCase():n+=e[i];return n},t.isValidChecksumAddress=function(e){return t.isValidAddress(e)&&t.toChecksumAddress(e)===e},t.generateAddress=function(e,r){return e=t.toBuffer(e),r=(r=new a(r)).isZero()?null:Buffer.from(r.toArray()),t.rlphash([e,r]).slice(-20)},t.isPrecompiled=function(e){var r=t.unpad(e);return 1===r.length&&r[0]>0&&r[0]<5},t.addHexPrefix=function(e){return"string"!=typeof e?e:t.isHexPrefixed(e)?e:"0x"+e},t.isValidSignature=function(e,t,r,n){const i=new a("7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0",16),o=new a("fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141",16);return 32===t.length&&32===r.length&&((27===e||28===e)&&(t=new a(t),r=new a(r),!(t.isZero()||t.gt(o)||r.isZero()||r.gt(o))&&(!1!==n||1!==new a(r).cmp(i))))},t.baToJSON=function(e){if(Buffer.isBuffer(e))return"0x"+e.toString("hex");if(e instanceof Array){for(var r=[],n=0;n<e.length;n++)r.push(t.baToJSON(e[n]));return r}},t.defineProperties=function(e,r,n){if(e.raw=[],e._fields=[],e.toJSON=function(r){if(r){var n={};return e._fields.forEach(function(t){n[t]="0x"+e[t].toString("hex")}),n}return t.baToJSON(this.raw)},e.serialize=function(){return o.encode(e.raw)},r.forEach(function(r,n){function o(){return e.raw[n]}function a(o){"00"!==(o=t.toBuffer(o)).toString("hex")||r.allowZero||(o=Buffer.allocUnsafe(0)),r.allowLess&&r.length?(o=t.stripZeros(o),i(r.length>=o.length,"The field "+r.name+" must not have more "+r.length+" bytes")):r.allowZero&&0===o.length||!r.length||i(r.length===o.length,"The field "+r.name+" must have byte length of "+r.length),e.raw[n]=o}e._fields.push(r.name),Object.defineProperty(e,r.name,{enumerable:!0,configurable:!0,get:o,set:a}),r.default&&(e[r.name]=r.default),r.alias&&Object.defineProperty(e,r.alias,{enumerable:!1,configurable:!0,set:a,get:o})}),n)if("string"==typeof n&&(n=Buffer.from(t.stripHexPrefix(n),"hex")),Buffer.isBuffer(n)&&(n=o.decode(n)),Array.isArray(n)){if(n.length>e._fields.length)throw new Error("wrong number of fields in data");n.forEach(function(r,n){e[e._fields[n]]=t.toBuffer(r)})}else{if("object"!=typeof n)throw new Error("invalid data");{const t=Object.keys(n);r.forEach(function(r){-1!==t.indexOf(r.name)&&(e[r.name]=n[r.name]),-1!==t.indexOf(r.alias)&&(e[r.alias]=n[r.alias])})}}}}).call(t,r(3).Buffer)},function(e,t){e.exports={bitcoin:{messagePrefix:"Bitcoin Signed Message:\n",bech32:"bc",bip32:{public:76067358,private:76066276},pubKeyHash:0,scriptHash:5,wif:128},testnet:{messagePrefix:"Bitcoin Signed Message:\n",bech32:"tb",bip32:{public:70617039,private:70615956},pubKeyHash:111,scriptHash:196,wif:239},litecoin:{messagePrefix:"Litecoin Signed Message:\n",bip32:{public:27108450,private:27106558},pubKeyHash:48,scriptHash:50,wif:176}}},,,,,function(e,t,r){"use strict";(function(t){!t.version||0===t.version.indexOf("v0.")||0===t.version.indexOf("v1.")&&0!==t.version.indexOf("v1.8.")?e.exports={nextTick:function(e,r,n,i){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,r)});case 3:return t.nextTick(function(){e.call(null,r,n)});case 4:return t.nextTick(function(){e.call(null,r,n,i)});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(t,r(32))},function(e,t,r){"use strict";var n=r(5),i=r(261),o=r(43),Buffer=r(4).Buffer,a=r(93),s=r(94),f=r(99),c=Buffer.alloc(128);function u(e,t){o.call(this,"digest"),"string"==typeof t&&(t=Buffer.from(t));var r="sha512"===e||"sha384"===e?128:64;(this._alg=e,this._key=t,t.length>r)?t=("rmd160"===e?new s:f(e)).update(t).digest():t.length<r&&(t=Buffer.concat([t,c],r));for(var n=this._ipad=Buffer.allocUnsafe(r),i=this._opad=Buffer.allocUnsafe(r),a=0;a<r;a++)n[a]=54^t[a],i[a]=92^t[a];this._hash="rmd160"===e?new s:f(e),this._hash.update(n)}n(u,o),u.prototype._update=function(e){this._hash.update(e)},u.prototype._final=function(){var e=this._hash.digest();return("rmd160"===this._alg?new s:f(this._alg)).update(this._opad).update(e).digest()},e.exports=function(e,t){return"rmd160"===(e=e.toLowerCase())||"ripemd160"===e?new u("rmd160",t):"md5"===e?new i(a,t):new u(e,t)}},function(e,t,r){t.pbkdf2=r(263),t.pbkdf2Sync=r(141)},function(e,t,r){var Buffer=r(4).Buffer,n=r(265);e.exports=function(e,t,r,i){if(Buffer.isBuffer(e)||(e=Buffer.from(e,"binary")),t&&(Buffer.isBuffer(t)||(t=Buffer.from(t,"binary")),8!==t.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var o=r/8,a=Buffer.alloc(o),s=Buffer.alloc(i||0),f=Buffer.alloc(0);o>0||i>0;){var c=new n;c.update(f),c.update(e),t&&c.update(t),f=c.digest();var u=0;if(o>0){var h=a.length-o;u=Math.min(o,f.length),f.copy(a,h,0,u),o-=u}if(u<f.length&&i>0){var d=s.length-i,l=Math.min(i,f.length-u);f.copy(s,d,u,u+l),i-=l}}return f.fill(0),{key:a,iv:s}}},function(e,t,r){var n=r(267),i=r(275),o=r(144);t.createCipher=t.Cipher=n.createCipher,t.createCipheriv=t.Cipheriv=n.createCipheriv,t.createDecipher=t.Decipher=i.createDecipher,t.createDecipheriv=t.Decipheriv=i.createDecipheriv,t.listCiphers=t.getCiphers=function(){return Object.keys(o)}},function(e,t,r){var Buffer=r(4).Buffer;function n(e){Buffer.isBuffer(e)||(e=Buffer.from(e));for(var t=e.length/4|0,r=new Array(t),n=0;n<t;n++)r[n]=e.readUInt32BE(4*n);return r}function i(e){for(;0<e.length;e++)e[0]=0}function o(e,t,r,n,i){for(var o,a,s,f,c=r[0],u=r[1],h=r[2],d=r[3],l=e[0]^t[0],p=e[1]^t[1],b=e[2]^t[2],v=e[3]^t[3],y=4,m=1;m<i;m++)o=c[l>>>24]^u[p>>>16&255]^h[b>>>8&255]^d[255&v]^t[y++],a=c[p>>>24]^u[b>>>16&255]^h[v>>>8&255]^d[255&l]^t[y++],s=c[b>>>24]^u[v>>>16&255]^h[l>>>8&255]^d[255&p]^t[y++],f=c[v>>>24]^u[l>>>16&255]^h[p>>>8&255]^d[255&b]^t[y++],l=o,p=a,b=s,v=f;return o=(n[l>>>24]<<24|n[p>>>16&255]<<16|n[b>>>8&255]<<8|n[255&v])^t[y++],a=(n[p>>>24]<<24|n[b>>>16&255]<<16|n[v>>>8&255]<<8|n[255&l])^t[y++],s=(n[b>>>24]<<24|n[v>>>16&255]<<16|n[l>>>8&255]<<8|n[255&p])^t[y++],f=(n[v>>>24]<<24|n[l>>>16&255]<<16|n[p>>>8&255]<<8|n[255&b])^t[y++],[o>>>=0,a>>>=0,s>>>=0,f>>>=0]}var a=[0,1,2,4,8,16,32,64,128,27,54],s=function(){for(var e=new Array(256),t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;for(var r=[],n=[],i=[[],[],[],[]],o=[[],[],[],[]],a=0,s=0,f=0;f<256;++f){var c=s^s<<1^s<<2^s<<3^s<<4;c=c>>>8^255&c^99,r[a]=c,n[c]=a;var u=e[a],h=e[u],d=e[h],l=257*e[c]^16843008*c;i[0][a]=l<<24|l>>>8,i[1][a]=l<<16|l>>>16,i[2][a]=l<<8|l>>>24,i[3][a]=l,l=16843009*d^65537*h^257*u^16843008*a,o[0][c]=l<<24|l>>>8,o[1][c]=l<<16|l>>>16,o[2][c]=l<<8|l>>>24,o[3][c]=l,0===a?a=s=1:(a=u^e[e[e[d^u]]],s^=e[e[s]])}return{SBOX:r,INV_SBOX:n,SUB_MIX:i,INV_SUB_MIX:o}}();function f(e){this._key=n(e),this._reset()}f.blockSize=16,f.keySize=32,f.prototype.blockSize=f.blockSize,f.prototype.keySize=f.keySize,f.prototype._reset=function(){for(var e=this._key,t=e.length,r=t+6,n=4*(r+1),i=[],o=0;o<t;o++)i[o]=e[o];for(o=t;o<n;o++){var f=i[o-1];o%t==0?(f=f<<8|f>>>24,f=s.SBOX[f>>>24]<<24|s.SBOX[f>>>16&255]<<16|s.SBOX[f>>>8&255]<<8|s.SBOX[255&f],f^=a[o/t|0]<<24):t>6&&o%t==4&&(f=s.SBOX[f>>>24]<<24|s.SBOX[f>>>16&255]<<16|s.SBOX[f>>>8&255]<<8|s.SBOX[255&f]),i[o]=i[o-t]^f}for(var c=[],u=0;u<n;u++){var h=n-u,d=i[h-(u%4?0:4)];c[u]=u<4||h<=4?d:s.INV_SUB_MIX[0][s.SBOX[d>>>24]]^s.INV_SUB_MIX[1][s.SBOX[d>>>16&255]]^s.INV_SUB_MIX[2][s.SBOX[d>>>8&255]]^s.INV_SUB_MIX[3][s.SBOX[255&d]]}this._nRounds=r,this._keySchedule=i,this._invKeySchedule=c},f.prototype.encryptBlockRaw=function(e){return o(e=n(e),this._keySchedule,s.SUB_MIX,s.SBOX,this._nRounds)},f.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),r=Buffer.allocUnsafe(16);return r.writeUInt32BE(t[0],0),r.writeUInt32BE(t[1],4),r.writeUInt32BE(t[2],8),r.writeUInt32BE(t[3],12),r},f.prototype.decryptBlock=function(e){var t=(e=n(e))[1];e[1]=e[3],e[3]=t;var r=o(e,this._invKeySchedule,s.INV_SUB_MIX,s.INV_SBOX,this._nRounds),i=Buffer.allocUnsafe(16);return i.writeUInt32BE(r[0],0),i.writeUInt32BE(r[3],4),i.writeUInt32BE(r[2],8),i.writeUInt32BE(r[1],12),i},f.prototype.scrub=function(){i(this._keySchedule),i(this._invKeySchedule),i(this._key)},e.exports.AES=f},function(e,t,r){"use strict";var n=t;n.base=r(292),n.short=r(293),n.mont=r(294),n.edwards=r(295)},function(e,t,r){(function(Buffer){var t=r(310),n=r(322),i=r(323),o=r(83),a=r(81);function s(e){var r;"object"!=typeof e||Buffer.isBuffer(e)||(r=e.passphrase,e=e.key),"string"==typeof e&&(e=new Buffer(e));var s,f,c=i(e,r),u=c.tag,h=c.data;switch(u){case"CERTIFICATE":f=t.certificate.decode(h,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(f||(f=t.PublicKey.decode(h,"der")),s=f.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return t.RSAPublicKey.decode(f.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return f.subjectPrivateKey=f.subjectPublicKey,{type:"ec",data:f};case"1.2.840.10040.4.1":return f.algorithm.params.pub_key=t.DSAparam.decode(f.subjectPublicKey.data,"der"),{type:"dsa",data:f.algorithm.params};default:throw new Error("unknown key id "+s)}throw new Error("unknown key type "+u);case"ENCRYPTED PRIVATE KEY":h=function(e,t){var r=e.algorithm.decrypt.kde.kdeparams.salt,i=parseInt(e.algorithm.decrypt.kde.kdeparams.iters.toString(),10),s=n[e.algorithm.decrypt.cipher.algo.join(".")],f=e.algorithm.decrypt.cipher.iv,c=e.subjectPrivateKey,u=parseInt(s.split("-")[1],10)/8,h=a.pbkdf2Sync(t,r,i,u),d=o.createDecipheriv(s,h,f),l=[];return l.push(d.update(c)),l.push(d.final()),Buffer.concat(l)}(h=t.EncryptedPrivateKey.decode(h,"der"),r);case"PRIVATE KEY":switch(s=(f=t.PrivateKey.decode(h,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return t.RSAPrivateKey.decode(f.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:f.algorithm.curve,privateKey:t.ECPrivateKey.decode(f.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return f.algorithm.params.priv_key=t.DSAparam.decode(f.subjectPrivateKey,"der"),{type:"dsa",params:f.algorithm.params};default:throw new Error("unknown key id "+s)}throw new Error("unknown key type "+u);case"RSA PUBLIC KEY":return t.RSAPublicKey.decode(h,"der");case"RSA PRIVATE KEY":return t.RSAPrivateKey.decode(h,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:t.DSAPrivateKey.decode(h,"der")};case"EC PRIVATE KEY":return{curve:(h=t.ECPrivateKey.decode(h,"der")).parameters.value,privateKey:h.privateKey};default:throw new Error("unknown key type "+u)}}e.exports=s,s.signature=t.signature}).call(t,r(3).Buffer)},function(e,t,r){"use strict";(function(Buffer){const t=r(340),n=r(105),i=r(71),o=r(70),a=r(57),s=r(72),f=r(51),c=f.MT,u=f.NUMBYTES,h=(f.SIMPLE,f.SYMS),d=new a(-1),l=d.minus(new a(Number.MAX_SAFE_INTEGER.toString(16),16)),p=Symbol("count"),b=(Symbol("pending_key"),Symbol("major type")),v=Symbol("error"),y=Symbol("not found");function m(e,t,r){const n=[];return n[p]=r,n[h.PARENT]=e,n[b]=t,n}function g(e,t){const r=new s;return r[h.PARENT]=e,r[b]=t,r}class w extends t{constructor(e){const t=(e=e||{}).tags;delete e.tags;const r=null!=e.max_depth?e.max_depth:-1;delete e.max_depth,super(e),this.running=!0,this.max_depth=r,this.tags=t}static nullcheck(e){switch(e){case h.NULL:return null;case h.UNDEFINED:return;case y:throw new Error("Value not found");default:return e}}static decodeFirstSync(e,t){let r,n={};switch(typeof(t=t||{encoding:"hex"})){case"string":r=t;break;case"object":r=(n=o.extend({},t)).encoding,delete n.encoding}const i=new w(n),a=new s(e,null!=r?r:o.guessEncoding(e)),f=i._parse();let c=f.next();for(;!c.done;){const e=a.read(c.value);if(null==e||e.length!==c.value)throw new Error("Insufficient data");c=f.next(e)}return w.nullcheck(c.value)}static decodeAllSync(e,t){let r,n={};switch(typeof(t=t||{encoding:"hex"})){case"string":r=t;break;case"object":r=(n=o.extend({},t)).encoding,delete n.encoding}const i=new w(n),a=new s(e,null!=r?r:o.guessEncoding(e)),f=[];for(;a.length>0;){const e=i._parse();let t=e.next();for(;!t.done;){const r=a.read(t.value);if(null==r||r.length!==t.value)throw new Error("Insufficient data");t=e.next(r)}f.push(w.nullcheck(t.value))}return f}static decodeFirst(e,t,r){let n={},i=!1,a="hex";switch(typeof t){case"function":r=t,a=o.guessEncoding(e);break;case"string":a=t;break;case"object":a=null!=(n=o.extend({},t)).encoding?n.encoding:o.guessEncoding(e),delete n.encoding,i=null!=n.required&&n.required,delete n.required}const s=new w(n);let f,c=y;return s.on("data",e=>{c=w.nullcheck(e),s.close()}),"function"==typeof r?(s.once("error",e=>{const t=c;return c=v,s.close(),r(e,t)}),s.once("end",()=>{switch(c){case y:return i?r(new Error("No CBOR found")):r(null,c);case v:return;default:return r(null,c)}})):f=new Promise((e,t)=>(s.once("error",e=>(c=v,s.close(),t(e))),s.once("end",()=>{switch(c){case y:return i?t(new Error("No CBOR found")):e(c);case v:return;default:return e(c)}}))),s.end(e,a),f}static decodeAll(e,t,r){let n={},i="hex";switch(typeof t){case"function":r=t,i=o.guessEncoding(e);break;case"string":i=t;break;case"object":i=null!=(n=o.extend({},t)).encoding?n.encoding:o.guessEncoding(e),delete n.encoding}const a=new w(n);let s;const f=[];return a.on("data",e=>f.push(w.nullcheck(e))),"function"==typeof r?(a.on("error",r),a.on("end",()=>r(null,f))):s=new Promise((e,t)=>{a.on("error",t),a.on("end",()=>e(f))}),a.end(e,i),s}close(){this.running=!1,this.__fresh=!0}*_parse(){let e=null,t=0,r=null;for(;;){if(this.max_depth>=0&&t>this.max_depth)throw new Error("Maximum depth "+this.max_depth+" exceeded");const f=(yield 1)[0];if(!this.running)throw new Error("Unexpected data: 0x"+f.toString(16));const v=f>>5,y=31&f,w=null!=e?e[b]:void 0,_=null!=e?e.length:void 0;switch(y){case u.ONE:this.emit("more-bytes",v,1,w,_),r=(yield 1)[0];break;case u.TWO:case u.FOUR:case u.EIGHT:const e=1<<y-24;this.emit("more-bytes",v,e,w,_);const t=yield e;r=v===c.SIMPLE_FLOAT?t:o.parseCBORint(y,t);break;case 28:case 29:case 30:throw this.running=!1,new Error("Additional info not implemented: "+y);case u.INDEFINITE:r=-1;break;default:r=y}switch(v){case c.POS_INT:break;case c.NEG_INT:r=r===Number.MAX_SAFE_INTEGER?l:r instanceof a?d.minus(r):-1-r;break;case c.BYTE_STRING:case c.UTF8_STRING:switch(r){case 0:this.emit("start-string",v,r,w,_),r=v===c.BYTE_STRING?new Buffer.alloc(0):"";break;case-1:this.emit("start",v,h.STREAM,w,_),e=g(e,v),t++;continue;default:this.emit("start-string",v,r,w,_),r=yield r,v===c.UTF8_STRING&&(r=r.toString("utf-8"))}break;case c.ARRAY:case c.MAP:switch(r){case 0:r=v===c.MAP?{}:[];break;case-1:this.emit("start",v,h.STREAM,w,_),e=m(e,v,-1),t++;continue;default:this.emit("start",v,r,w,_),e=m(e,v,r*(v-3)),t++;continue}break;case c.TAG:this.emit("start",v,r,w,_),(e=m(e,v,1)).push(r),t++;continue;case c.SIMPLE_FLOAT:r="number"==typeof r?i.decode(r,null!=e):o.parseCBORfloat(r)}this.emit("value",r,w,_,y);let E=!1;for(;null!=e;){switch(!1){case r!==h.BREAK:e[p]=1;break;case!Array.isArray(e):e.push(r);break;case!(e instanceof s):const t=e[b];if(null!=t&&t!==v)throw this.running=!1,new Error("Invalid major type in indefinite encoding");e.write(r)}if(0!=--e[p]){E=!0;break}if(--t,delete e[p],this.emit("stop",e[b]),Array.isArray(e))switch(e[b]){case c.ARRAY:r=e;break;case c.MAP:let t=!0;if(e.length%2!=0)throw new Error("Invalid map length: "+e.length);for(let r=0,n=e.length;r<n;r+=2)if("string"!=typeof e[r]){t=!1;break}if(t){r={};for(let t=0,n=e.length;t<n;t+=2)r[e[t]]=e[t+1]}else{r=new Map;for(let t=0,n=e.length;t<n;t+=2)r.set(e[t],e[t+1])}break;case c.TAG:r=new n(e[0],e[1]).convert(this.tags)}else if(e instanceof s)switch(e[b]){case c.BYTE_STRING:r=e.slice();break;case c.UTF8_STRING:r=e.toString("utf-8")}const i=e;e=e[h.PARENT],delete i[h.PARENT],delete i[b]}if(!E)return r}}}w.NOT_FOUND=y,e.exports=w}).call(t,r(3).Buffer)},function(e,t,r){"use strict";var n=t;n.base=r(350),n.short=r(351),n.mont=r(352),n.edwards=r(353)},function(e,t,r){var n=r(17),i=r(109);for(var o in i)n[o]=i[o];e.exports={bufferutils:r(180),Block:r(405),ECPair:r(115),ECSignature:r(117),HDNode:r(414),Transaction:r(114),TransactionBuilder:r(415),address:r(116),crypto:r(60),networks:r(74),opcodes:r(26),script:n}},function(e,t,r){"use strict";var n=r(36),i=r(408);e.exports=i(function(e){var t=n("sha256").update(e).digest();return n("sha256").update(t).digest()})},function(e,t,r){var Point=r(182),n=r(183),i=r(412);e.exports={Curve:n,Point:Point,getCurveByName:i}},,function(e,t,r){"use strict";var n=r(243);function i(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;for(var r=1732584193,n=-271733879,i=-1732584194,o=271733878,h=0;h<e.length;h+=16){var d=r,l=n,p=i,b=o;n=c(n=c(n=c(n=c(n=f(n=f(n=f(n=f(n=s(n=s(n=s(n=s(n=a(n=a(n=a(n=a(n,i=a(i,o=a(o,r=a(r,n,i,o,e[h+0],7,-680876936),n,i,e[h+1],12,-389564586),r,n,e[h+2],17,606105819),o,r,e[h+3],22,-1044525330),i=a(i,o=a(o,r=a(r,n,i,o,e[h+4],7,-176418897),n,i,e[h+5],12,1200080426),r,n,e[h+6],17,-1473231341),o,r,e[h+7],22,-45705983),i=a(i,o=a(o,r=a(r,n,i,o,e[h+8],7,1770035416),n,i,e[h+9],12,-1958414417),r,n,e[h+10],17,-42063),o,r,e[h+11],22,-1990404162),i=a(i,o=a(o,r=a(r,n,i,o,e[h+12],7,1804603682),n,i,e[h+13],12,-40341101),r,n,e[h+14],17,-1502002290),o,r,e[h+15],22,1236535329),i=s(i,o=s(o,r=s(r,n,i,o,e[h+1],5,-165796510),n,i,e[h+6],9,-1069501632),r,n,e[h+11],14,643717713),o,r,e[h+0],20,-373897302),i=s(i,o=s(o,r=s(r,n,i,o,e[h+5],5,-701558691),n,i,e[h+10],9,38016083),r,n,e[h+15],14,-660478335),o,r,e[h+4],20,-405537848),i=s(i,o=s(o,r=s(r,n,i,o,e[h+9],5,568446438),n,i,e[h+14],9,-1019803690),r,n,e[h+3],14,-187363961),o,r,e[h+8],20,1163531501),i=s(i,o=s(o,r=s(r,n,i,o,e[h+13],5,-1444681467),n,i,e[h+2],9,-51403784),r,n,e[h+7],14,1735328473),o,r,e[h+12],20,-1926607734),i=f(i,o=f(o,r=f(r,n,i,o,e[h+5],4,-378558),n,i,e[h+8],11,-2022574463),r,n,e[h+11],16,1839030562),o,r,e[h+14],23,-35309556),i=f(i,o=f(o,r=f(r,n,i,o,e[h+1],4,-1530992060),n,i,e[h+4],11,1272893353),r,n,e[h+7],16,-155497632),o,r,e[h+10],23,-1094730640),i=f(i,o=f(o,r=f(r,n,i,o,e[h+13],4,681279174),n,i,e[h+0],11,-358537222),r,n,e[h+3],16,-722521979),o,r,e[h+6],23,76029189),i=f(i,o=f(o,r=f(r,n,i,o,e[h+9],4,-640364487),n,i,e[h+12],11,-421815835),r,n,e[h+15],16,530742520),o,r,e[h+2],23,-995338651),i=c(i,o=c(o,r=c(r,n,i,o,e[h+0],6,-198630844),n,i,e[h+7],10,1126891415),r,n,e[h+14],15,-1416354905),o,r,e[h+5],21,-57434055),i=c(i,o=c(o,r=c(r,n,i,o,e[h+12],6,1700485571),n,i,e[h+3],10,-1894986606),r,n,e[h+10],15,-1051523),o,r,e[h+1],21,-2054922799),i=c(i,o=c(o,r=c(r,n,i,o,e[h+8],6,1873313359),n,i,e[h+15],10,-30611744),r,n,e[h+6],15,-1560198380),o,r,e[h+13],21,1309151649),i=c(i,o=c(o,r=c(r,n,i,o,e[h+4],6,-145523070),n,i,e[h+11],10,-1120210379),r,n,e[h+2],15,718787259),o,r,e[h+9],21,-343485551),r=u(r,d),n=u(n,l),i=u(i,p),o=u(o,b)}return[r,n,i,o]}function o(e,t,r,n,i,o){return u((a=u(u(t,e),u(n,o)))<<(s=i)|a>>>32-s,r);var a,s}function a(e,t,r,n,i,a,s){return o(t&r|~t&n,e,t,i,a,s)}function s(e,t,r,n,i,a,s){return o(t&n|r&~n,e,t,i,a,s)}function f(e,t,r,n,i,a,s){return o(t^r^n,e,t,i,a,s)}function c(e,t,r,n,i,a,s){return o(r^(t|~n),e,t,i,a,s)}function u(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}e.exports=function(e){return n(e,i)}},function(e,t,r){"use strict";(function(Buffer){var t=r(5),n=r(244);function i(){n.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function o(e,t){return e<<t|e>>>32-t}function a(e,t,r,n,i,a,s,f){return o(e+(t^r^n)+a+s|0,f)+i|0}function s(e,t,r,n,i,a,s,f){return o(e+(t&r|~t&n)+a+s|0,f)+i|0}function f(e,t,r,n,i,a,s,f){return o(e+((t|~r)^n)+a+s|0,f)+i|0}function c(e,t,r,n,i,a,s,f){return o(e+(t&n|r&~n)+a+s|0,f)+i|0}function u(e,t,r,n,i,a,s,f){return o(e+(t^(r|~n))+a+s|0,f)+i|0}t(i,n),i.prototype._update=function(){for(var e=new Array(16),t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var r=this._a,n=this._b,i=this._c,h=this._d,d=this._e;d=a(d,r=a(r,n,i,h,d,e[0],0,11),n,i=o(i,10),h,e[1],0,14),n=a(n=o(n,10),i=a(i,h=a(h,d,r,n,i,e[2],0,15),d,r=o(r,10),n,e[3],0,12),h,d=o(d,10),r,e[4],0,5),h=a(h=o(h,10),d=a(d,r=a(r,n,i,h,d,e[5],0,8),n,i=o(i,10),h,e[6],0,7),r,n=o(n,10),i,e[7],0,9),r=a(r=o(r,10),n=a(n,i=a(i,h,d,r,n,e[8],0,11),h,d=o(d,10),r,e[9],0,13),i,h=o(h,10),d,e[10],0,14),i=a(i=o(i,10),h=a(h,d=a(d,r,n,i,h,e[11],0,15),r,n=o(n,10),i,e[12],0,6),d,r=o(r,10),n,e[13],0,7),d=s(d=o(d,10),r=a(r,n=a(n,i,h,d,r,e[14],0,9),i,h=o(h,10),d,e[15],0,8),n,i=o(i,10),h,e[7],1518500249,7),n=s(n=o(n,10),i=s(i,h=s(h,d,r,n,i,e[4],1518500249,6),d,r=o(r,10),n,e[13],1518500249,8),h,d=o(d,10),r,e[1],1518500249,13),h=s(h=o(h,10),d=s(d,r=s(r,n,i,h,d,e[10],1518500249,11),n,i=o(i,10),h,e[6],1518500249,9),r,n=o(n,10),i,e[15],1518500249,7),r=s(r=o(r,10),n=s(n,i=s(i,h,d,r,n,e[3],1518500249,15),h,d=o(d,10),r,e[12],1518500249,7),i,h=o(h,10),d,e[0],1518500249,12),i=s(i=o(i,10),h=s(h,d=s(d,r,n,i,h,e[9],1518500249,15),r,n=o(n,10),i,e[5],1518500249,9),d,r=o(r,10),n,e[2],1518500249,11),d=s(d=o(d,10),r=s(r,n=s(n,i,h,d,r,e[14],1518500249,7),i,h=o(h,10),d,e[11],1518500249,13),n,i=o(i,10),h,e[8],1518500249,12),n=f(n=o(n,10),i=f(i,h=f(h,d,r,n,i,e[3],1859775393,11),d,r=o(r,10),n,e[10],1859775393,13),h,d=o(d,10),r,e[14],1859775393,6),h=f(h=o(h,10),d=f(d,r=f(r,n,i,h,d,e[4],1859775393,7),n,i=o(i,10),h,e[9],1859775393,14),r,n=o(n,10),i,e[15],1859775393,9),r=f(r=o(r,10),n=f(n,i=f(i,h,d,r,n,e[8],1859775393,13),h,d=o(d,10),r,e[1],1859775393,15),i,h=o(h,10),d,e[2],1859775393,14),i=f(i=o(i,10),h=f(h,d=f(d,r,n,i,h,e[7],1859775393,8),r,n=o(n,10),i,e[0],1859775393,13),d,r=o(r,10),n,e[6],1859775393,6),d=f(d=o(d,10),r=f(r,n=f(n,i,h,d,r,e[13],1859775393,5),i,h=o(h,10),d,e[11],1859775393,12),n,i=o(i,10),h,e[5],1859775393,7),n=c(n=o(n,10),i=c(i,h=f(h,d,r,n,i,e[12],1859775393,5),d,r=o(r,10),n,e[1],2400959708,11),h,d=o(d,10),r,e[9],2400959708,12),h=c(h=o(h,10),d=c(d,r=c(r,n,i,h,d,e[11],2400959708,14),n,i=o(i,10),h,e[10],2400959708,15),r,n=o(n,10),i,e[0],2400959708,14),r=c(r=o(r,10),n=c(n,i=c(i,h,d,r,n,e[8],2400959708,15),h,d=o(d,10),r,e[12],2400959708,9),i,h=o(h,10),d,e[4],2400959708,8),i=c(i=o(i,10),h=c(h,d=c(d,r,n,i,h,e[13],2400959708,9),r,n=o(n,10),i,e[3],2400959708,14),d,r=o(r,10),n,e[7],2400959708,5),d=c(d=o(d,10),r=c(r,n=c(n,i,h,d,r,e[15],2400959708,6),i,h=o(h,10),d,e[14],2400959708,8),n,i=o(i,10),h,e[5],2400959708,6),n=u(n=o(n,10),i=c(i,h=c(h,d,r,n,i,e[6],2400959708,5),d,r=o(r,10),n,e[2],2400959708,12),h,d=o(d,10),r,e[4],2840853838,9),h=u(h=o(h,10),d=u(d,r=u(r,n,i,h,d,e[0],2840853838,15),n,i=o(i,10),h,e[5],2840853838,5),r,n=o(n,10),i,e[9],2840853838,11),r=u(r=o(r,10),n=u(n,i=u(i,h,d,r,n,e[7],2840853838,6),h,d=o(d,10),r,e[12],2840853838,8),i,h=o(h,10),d,e[2],2840853838,13),i=u(i=o(i,10),h=u(h,d=u(d,r,n,i,h,e[10],2840853838,12),r,n=o(n,10),i,e[14],2840853838,5),d,r=o(r,10),n,e[1],2840853838,12),d=u(d=o(d,10),r=u(r,n=u(n,i,h,d,r,e[3],2840853838,13),i,h=o(h,10),d,e[8],2840853838,14),n,i=o(i,10),h,e[11],2840853838,11),n=u(n=o(n,10),i=u(i,h=u(h,d,r,n,i,e[6],2840853838,8),d,r=o(r,10),n,e[15],2840853838,5),h,d=o(d,10),r,e[13],2840853838,6),h=o(h,10);var l=this._a,p=this._b,b=this._c,v=this._d,y=this._e;y=u(y,l=u(l,p,b,v,y,e[5],1352829926,8),p,b=o(b,10),v,e[14],1352829926,9),p=u(p=o(p,10),b=u(b,v=u(v,y,l,p,b,e[7],1352829926,9),y,l=o(l,10),p,e[0],1352829926,11),v,y=o(y,10),l,e[9],1352829926,13),v=u(v=o(v,10),y=u(y,l=u(l,p,b,v,y,e[2],1352829926,15),p,b=o(b,10),v,e[11],1352829926,15),l,p=o(p,10),b,e[4],1352829926,5),l=u(l=o(l,10),p=u(p,b=u(b,v,y,l,p,e[13],1352829926,7),v,y=o(y,10),l,e[6],1352829926,7),b,v=o(v,10),y,e[15],1352829926,8),b=u(b=o(b,10),v=u(v,y=u(y,l,p,b,v,e[8],1352829926,11),l,p=o(p,10),b,e[1],1352829926,14),y,l=o(l,10),p,e[10],1352829926,14),y=c(y=o(y,10),l=u(l,p=u(p,b,v,y,l,e[3],1352829926,12),b,v=o(v,10),y,e[12],1352829926,6),p,b=o(b,10),v,e[6],1548603684,9),p=c(p=o(p,10),b=c(b,v=c(v,y,l,p,b,e[11],1548603684,13),y,l=o(l,10),p,e[3],1548603684,15),v,y=o(y,10),l,e[7],1548603684,7),v=c(v=o(v,10),y=c(y,l=c(l,p,b,v,y,e[0],1548603684,12),p,b=o(b,10),v,e[13],1548603684,8),l,p=o(p,10),b,e[5],1548603684,9),l=c(l=o(l,10),p=c(p,b=c(b,v,y,l,p,e[10],1548603684,11),v,y=o(y,10),l,e[14],1548603684,7),b,v=o(v,10),y,e[15],1548603684,7),b=c(b=o(b,10),v=c(v,y=c(y,l,p,b,v,e[8],1548603684,12),l,p=o(p,10),b,e[12],1548603684,7),y,l=o(l,10),p,e[4],1548603684,6),y=c(y=o(y,10),l=c(l,p=c(p,b,v,y,l,e[9],1548603684,15),b,v=o(v,10),y,e[1],1548603684,13),p,b=o(b,10),v,e[2],1548603684,11),p=f(p=o(p,10),b=f(b,v=f(v,y,l,p,b,e[15],1836072691,9),y,l=o(l,10),p,e[5],1836072691,7),v,y=o(y,10),l,e[1],1836072691,15),v=f(v=o(v,10),y=f(y,l=f(l,p,b,v,y,e[3],1836072691,11),p,b=o(b,10),v,e[7],1836072691,8),l,p=o(p,10),b,e[14],1836072691,6),l=f(l=o(l,10),p=f(p,b=f(b,v,y,l,p,e[6],1836072691,6),v,y=o(y,10),l,e[9],1836072691,14),b,v=o(v,10),y,e[11],1836072691,12),b=f(b=o(b,10),v=f(v,y=f(y,l,p,b,v,e[8],1836072691,13),l,p=o(p,10),b,e[12],1836072691,5),y,l=o(l,10),p,e[2],1836072691,14),y=f(y=o(y,10),l=f(l,p=f(p,b,v,y,l,e[10],1836072691,13),b,v=o(v,10),y,e[0],1836072691,13),p,b=o(b,10),v,e[4],1836072691,7),p=s(p=o(p,10),b=s(b,v=f(v,y,l,p,b,e[13],1836072691,5),y,l=o(l,10),p,e[8],2053994217,15),v,y=o(y,10),l,e[6],2053994217,5),v=s(v=o(v,10),y=s(y,l=s(l,p,b,v,y,e[4],2053994217,8),p,b=o(b,10),v,e[1],2053994217,11),l,p=o(p,10),b,e[3],2053994217,14),l=s(l=o(l,10),p=s(p,b=s(b,v,y,l,p,e[11],2053994217,14),v,y=o(y,10),l,e[15],2053994217,6),b,v=o(v,10),y,e[0],2053994217,14),b=s(b=o(b,10),v=s(v,y=s(y,l,p,b,v,e[5],2053994217,6),l,p=o(p,10),b,e[12],2053994217,9),y,l=o(l,10),p,e[2],2053994217,12),y=s(y=o(y,10),l=s(l,p=s(p,b,v,y,l,e[13],2053994217,9),b,v=o(v,10),y,e[9],2053994217,12),p,b=o(b,10),v,e[7],2053994217,5),p=a(p=o(p,10),b=s(b,v=s(v,y,l,p,b,e[10],2053994217,15),y,l=o(l,10),p,e[14],2053994217,8),v,y=o(y,10),l,e[12],0,8),v=a(v=o(v,10),y=a(y,l=a(l,p,b,v,y,e[15],0,5),p,b=o(b,10),v,e[10],0,12),l,p=o(p,10),b,e[4],0,9),l=a(l=o(l,10),p=a(p,b=a(b,v,y,l,p,e[1],0,12),v,y=o(y,10),l,e[5],0,5),b,v=o(v,10),y,e[8],0,14),b=a(b=o(b,10),v=a(v,y=a(y,l,p,b,v,e[7],0,6),l,p=o(p,10),b,e[6],0,8),y,l=o(l,10),p,e[2],0,13),y=a(y=o(y,10),l=a(l,p=a(p,b,v,y,l,e[13],0,6),b,v=o(v,10),y,e[14],0,5),p,b=o(b,10),v,e[0],0,15),p=a(p=o(p,10),b=a(b,v=a(v,y,l,p,b,e[3],0,13),y,l=o(l,10),p,e[9],0,11),v,y=o(y,10),l,e[11],0,11),v=o(v,10);var m=this._b+i+v|0;this._b=this._c+h+y|0,this._c=this._d+d+l|0,this._d=this._e+r+p|0,this._e=this._a+n+b|0,this._a=m},i.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=new Buffer(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e},e.exports=i}).call(t,r(3).Buffer)},function(e,t){function r(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function n(e){return"function"==typeof e}function i(e){return"object"==typeof e&&null!==e}function o(e){return void 0===e}e.exports=r,r.EventEmitter=r,r.prototype._events=void 0,r.prototype._maxListeners=void 0,r.defaultMaxListeners=10,r.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},r.prototype.emit=function(e){var t,r,a,s,f,c;if(this._events||(this._events={}),"error"===e&&(!this._events.error||i(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var u=new Error('Uncaught, unspecified "error" event. ('+t+")");throw u.context=t,u}if(o(r=this._events[e]))return!1;if(n(r))switch(arguments.length){case 1:r.call(this);break;case 2:r.call(this,arguments[1]);break;case 3:r.call(this,arguments[1],arguments[2]);break;default:s=Array.prototype.slice.call(arguments,1),r.apply(this,s)}else if(i(r))for(s=Array.prototype.slice.call(arguments,1),a=(c=r.slice()).length,f=0;f<a;f++)c[f].apply(this,s);return!0},r.prototype.addListener=function(e,t){var a;if(!n(t))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,n(t.listener)?t.listener:t),this._events[e]?i(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,i(this._events[e])&&!this._events[e].warned&&(a=o(this._maxListeners)?r.defaultMaxListeners:this._maxListeners)&&a>0&&this._events[e].length>a&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},r.prototype.on=r.prototype.addListener,r.prototype.once=function(e,t){if(!n(t))throw TypeError("listener must be a function");var r=!1;function i(){this.removeListener(e,i),r||(r=!0,t.apply(this,arguments))}return i.listener=t,this.on(e,i),this},r.prototype.removeListener=function(e,t){var r,o,a,s;if(!n(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(a=(r=this._events[e]).length,o=-1,r===t||n(r.listener)&&r.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(i(r)){for(s=a;s-- >0;)if(r[s]===t||r[s].listener&&r[s].listener===t){o=s;break}if(o<0)return this;1===r.length?(r.length=0,delete this._events[e]):r.splice(o,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},r.prototype.removeAllListeners=function(e){var t,r;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n(r=this._events[e]))this.removeListener(e,r);else if(r)for(;r.length;)this.removeListener(e,r[r.length-1]);return delete this._events[e],this},r.prototype.listeners=function(e){return this._events&&this._events[e]?n(this._events[e])?[this._events[e]]:this._events[e].slice():[]},r.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(n(t))return 1;if(t)return t.length}return 0},r.listenerCount=function(e,t){return e.listenerCount(t)}},function(e,t,r){(t=e.exports=r(132)).Stream=t,t.Readable=t,t.Writable=r(97),t.Duplex=r(49),t.Transform=r(135),t.PassThrough=r(252)},function(e,t,r){"use strict";(function(t,n,i){var o=r(79).nextTick;function a(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;e.entry=null;for(;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}(t,e)}}e.exports=y;var s,f=!t.browser&&["v0.10","v0.9."].indexOf(t.version.slice(0,5))>-1?n:o;y.WritableState=v;var c=r(66);c.inherits=r(5);var u={deprecate:r(251)},h=r(133),Buffer=r(4).Buffer,d=i.Uint8Array||function(){};var l,p=r(134);function b(){}function v(e,t){s=s||r(49),e=e||{};var n=t instanceof s;this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var i=e.highWaterMark,c=e.writableHighWaterMark,u=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:n&&(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 h=!1===e.decodeStrings;this.decodeStrings=!h,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 r=e._writableState,n=r.sync,i=r.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,n,i){--t.pendingcb,r?(o(i,n),o(S,e,t),e._writableState.errorEmitted=!0,e.emit("error",n)):(i(n),e._writableState.errorEmitted=!0,e.emit("error",n),S(e,t))}(e,r,n,t,i);else{var a=_(r);a||r.corked||r.bufferProcessing||!r.bufferedRequest||w(e,r),n?f(g,e,r,a,i):g(e,r,a,i)}}(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 y(e){if(s=s||r(49),!(l.call(y,this)||this instanceof s))return new y(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)),h.call(this)}function m(e,t,r,n,i,o,a){t.writelen=n,t.writecb=a,t.writing=!0,t.sync=!0,r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function g(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),S(e,t)}function w(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,i=new Array(n),o=t.corkedRequestsFree;o.entry=r;for(var s=0,f=!0;r;)i[s]=r,r.isBuf||(f=!1),r=r.next,s+=1;i.allBuffers=f,m(e,t,!0,t.length,i,"",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(;r;){var c=r.chunk,u=r.encoding,h=r.callback;if(m(e,t,!1,t.objectMode?1:c.length,c,u,h),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function _(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function E(e,t){e._final(function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),S(e,t)})}function S(e,t){var r=_(t);return r&&(!function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,o(E,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),r}c.inherits(y,h),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]?(l=Function.prototype[Symbol.hasInstance],Object.defineProperty(y,Symbol.hasInstance,{value:function(e){return!!l.call(this,e)||this===y&&(e&&e._writableState instanceof v)}})):l=function(e){return e instanceof this},y.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},y.prototype.write=function(e,t,r){var n,i=this._writableState,a=!1,s=!i.objectMode&&(n=e,Buffer.isBuffer(n)||n instanceof d);return s&&!Buffer.isBuffer(e)&&(e=function(e){return Buffer.from(e)}(e)),"function"==typeof t&&(r=t,t=null),s?t="buffer":t||(t=i.defaultEncoding),"function"!=typeof r&&(r=b),i.ended?function(e,t){var r=new Error("write after end");e.emit("error",r),o(t,r)}(this,r):(s||function(e,t,r,n){var i=!0,a=!1;return null===r?a=new TypeError("May not write null values to stream"):"string"==typeof r||void 0===r||t.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(e.emit("error",a),o(n,a),i=!1),i}(this,i,e,r))&&(i.pendingcb++,a=function(e,t,r,n,i,o){if(!r){var a=function(e,t,r){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=Buffer.from(t,r));return t}(t,n,i);n!==a&&(r=!0,i="buffer",n=a)}var s=t.objectMode?1:n.length;t.length+=s;var f=t.length<t.highWaterMark;f||(t.needDrain=!0);if(t.writing||t.corked){var c=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},c?c.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else m(e,t,!1,s,n,i,o);return f}(this,i,s,e,t,r)),a},y.prototype.cork=function(){this._writableState.corked++},y.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||w(this,e))},y.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},y.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))},y.prototype._writev=null,y.prototype.end=function(e,t,r){var n=this._writableState;"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!==e&&void 0!==e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||n.finished||function(e,t,r){t.ending=!0,S(e,t),r&&(t.finished?o(r):e.once("finish",r));t.ended=!0,e.writable=!1}(this,n,r)},Object.defineProperty(y.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),y.prototype.destroy=p.destroy,y.prototype._undestroy=p.undestroy,y.prototype._destroy=function(e,t){this.end(),t(e)}}).call(t,r(32),r(249).setImmediate,r(29))},function(e,t,r){"use strict";var Buffer=r(4).Buffer,n=Buffer.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 i(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&&(Buffer.isEncoding===n||!n(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=s,this.end=f,t=4;break;case"utf8":this.fillLast=a,t=4;break;case"base64":this.text=c,this.end=u,t=3;break;default:return this.write=h,void(this.end=d)}this.lastNeed=0,this.lastTotal=0,this.lastChar=Buffer.allocUnsafe(t)}function o(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:-1}function a(e){var t=this.lastTotal-this.lastNeed,r=function(e,t,r){if(128!=(192&t[0]))return e.lastNeed=0,"�".repeat(r);if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�".repeat(r+1);if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�".repeat(r+2)}}(this,e,t);return void 0!==r?r: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 s(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function f(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function c(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?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-r))}function u(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function h(e){return e.toString(this.encoding)}function d(e){return e&&e.length?this.write(e):""}t.StringDecoder=i,i.prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},i.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�".repeat(this.lastTotal-this.lastNeed):t},i.prototype.text=function(e,t){var r=function(e,t,r){var n=t.length-1;if(n<r)return 0;var i=o(t[n]);if(i>=0)return i>0&&(e.lastNeed=i-1),i;if(--n<r)return 0;if((i=o(t[n]))>=0)return i>0&&(e.lastNeed=i-2),i;if(--n<r)return 0;if((i=o(t[n]))>=0)return i>0&&(2===i?i=0:e.lastNeed=i-3),i;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)},i.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,r){(t=e.exports=function(e){e=e.toLowerCase();var r=t[e];if(!r)throw new Error(e+" is not supported (we accept pull requests)");return new r}).sha=r(257),t.sha1=r(258),t.sha224=r(259),t.sha256=r(136),t.sha384=r(260),t.sha512=r(137)},function(e,t,r){var n={ECB:r(268),CBC:r(269),CFB:r(270),CFB8:r(271),CFB1:r(272),OFB:r(273),CTR:r(142),GCM:r(142)},i=r(144);for(var o in i)i[o].module=n[i[o].mode];e.exports=i},function(e,t,r){"use strict";t.utils=r(277),t.Cipher=r(278),t.DES=r(279),t.CBC=r(280),t.EDE=r(281)},function(e,t,r){var n;function i(e){this.rand=e}if(e.exports=function(e){return n||(n=new i(null)),n.generate(e)},e.exports.Rand=i,i.prototype.generate=function(e){return this._rand(e)},i.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),r=0;r<t.length;r++)t[r]=this.rand.getByte();return t},"object"==typeof self)self.crypto&&self.crypto.getRandomValues?i.prototype._rand=function(e){var t=new Uint8Array(e);return self.crypto.getRandomValues(t),t}:self.msCrypto&&self.msCrypto.getRandomValues?i.prototype._rand=function(e){var t=new Uint8Array(e);return self.msCrypto.getRandomValues(t),t}:"object"==typeof window&&(i.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var o=r(285);if("function"!=typeof o.randomBytes)throw new Error("Not supported");i.prototype._rand=function(e){return o.randomBytes(e)}}catch(e){}},function(e,t,r){(function(Buffer){var t=r(9),n=r(48);function i(e,r){var n=function(e){var r=o(e);return{blinder:r.toRed(t.mont(e.modulus)).redPow(new t(e.publicExponent)).fromRed(),unblinder:r.invm(e.modulus)}}(r),i=r.modulus.byteLength(),a=(t.mont(r.modulus),new t(e).mul(n.blinder).umod(r.modulus)),s=a.toRed(t.mont(r.prime1)),f=a.toRed(t.mont(r.prime2)),c=r.coefficient,u=r.prime1,h=r.prime2,d=s.redPow(r.exponent1),l=f.redPow(r.exponent2);d=d.fromRed(),l=l.fromRed();var p=d.isub(l).imul(c).umod(u);return p.imul(h),l.iadd(p),new Buffer(l.imul(n.unblinder).umod(r.modulus).toArray(!1,i))}function o(e){for(var r=e.modulus.byteLength(),i=new t(n(r));i.cmp(e.modulus)>=0||!i.umod(e.prime1)||!i.umod(e.prime2);)i=new t(n(r));return i}e.exports=i,i.getr=o}).call(t,r(3).Buffer)},function(e,t,r){"use strict";var n=t;function i(e){return 1===e.length?"0"+e:e}function o(e){for(var t="",r=0;r<e.length;r++)t+=i(e[r].toString(16));return t}n.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"!=typeof e){for(var n=0;n<e.length;n++)r[n]=0|e[n];return r}if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),n=0;n<e.length;n+=2)r.push(parseInt(e[n]+e[n+1],16));else for(n=0;n<e.length;n++){var i=e.charCodeAt(n),o=i>>8,a=255&i;o?r.push(o,a):r.push(a)}return r},n.zero2=i,n.toHex=o,n.encode=function(e,t){return"hex"===t?o(e):e}},function(e,t,r){"use strict";const n=r(57),i=r(70),o=r(163),a=new n(-1),s=new n(10),f=new n(2);class c{constructor(e,t,r){if(this.tag=e,this.value=t,this.err=r,"number"!=typeof this.tag)throw new Error("Invalid tag type ("+typeof this.tag+")");if(this.tag<0||(0|this.tag)!==this.tag)throw new Error("Tag must be a positive integer: "+this.tag)}toString(){return`${this.tag}(${JSON.stringify(this.value)})`}encodeCBOR(e){return e._pushTag(this.tag),e.pushAny(this.value)}convert(e){let t=null!=e?e[this.tag]:void 0;if("function"!=typeof t&&"function"!=typeof(t=c["_tag_"+this.tag]))return this;try{return t.call(c,this.value)}catch(e){return this.err=e,this}}static _tag_0(e){return new Date(e)}static _tag_1(e){return new Date(1e3*e)}static _tag_2(e){return i.bufferToBignumber(e)}static _tag_3(e){return a.minus(i.bufferToBignumber(e))}static _tag_4(e){return s.pow(e[0]).times(e[1])}static _tag_5(e){return f.pow(e[0]).times(e[1])}static _tag_32(e){return o.parse(e)}static _tag_35(e){return new RegExp(e)}}e.exports=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.wipe=function(e){for(var t=0;t<e.length;t++)e[t]=0;return e}},function(e,t,r){var Buffer=r(4).Buffer;e.exports={check:function(e){if(e.length<8)return!1;if(e.length>72)return!1;if(48!==e[0])return!1;if(e[1]!==e.length-2)return!1;if(2!==e[2])return!1;var t=e[3];if(0===t)return!1;if(5+t>=e.length)return!1;if(2!==e[4+t])return!1;var r=e[5+t];return!(0===r||6+t+r!==e.length||128&e[4]||t>1&&0===e[4]&&!(128&e[5])||128&e[t+6]||r>1&&0===e[t+6]&&!(128&e[t+7]))},decode:function(e){if(e.length<8)throw new Error("DER sequence length is too short");if(e.length>72)throw new Error("DER sequence length is too long");if(48!==e[0])throw new Error("Expected DER sequence");if(e[1]!==e.length-2)throw new Error("DER sequence length is invalid");if(2!==e[2])throw new Error("Expected DER integer");var t=e[3];if(0===t)throw new Error("R length is zero");if(5+t>=e.length)throw new Error("R length is too long");if(2!==e[4+t])throw new Error("Expected DER integer (2)");var r=e[5+t];if(0===r)throw new Error("S length is zero");if(6+t+r!==e.length)throw new Error("S length is invalid");if(128&e[4])throw new Error("R value is negative");if(t>1&&0===e[4]&&!(128&e[5]))throw new Error("R value excessively padded");if(128&e[t+6])throw new Error("S value is negative");if(r>1&&0===e[t+6]&&!(128&e[t+7]))throw new Error("S value excessively padded");return{r:e.slice(4,4+t),s:e.slice(6+t)}},encode:function(e,t){var r=e.length,n=t.length;if(0===r)throw new Error("R length is zero");if(0===n)throw new Error("S length is zero");if(r>33)throw new Error("R length is too long");if(n>33)throw new Error("S length is too long");if(128&e[0])throw new Error("R value is negative");if(128&t[0])throw new Error("S value is negative");if(r>1&&0===e[0]&&!(128&e[1]))throw new Error("R value excessively padded");if(n>1&&0===t[0]&&!(128&t[1]))throw new Error("S value excessively padded");var i=Buffer.allocUnsafe(6+r+n);return i[0]=48,i[1]=i.length-2,i[2]=2,i[3]=e.length,e.copy(i,4),i[4+r]=2,i[5+r]=t.length,t.copy(i,6+r),i}}},function(e,t){var r={Array:function(e){return null!==e&&void 0!==e&&e.constructor===Array},Boolean:function(e){return"boolean"==typeof e},Function:function(e){return"function"==typeof e},Nil:function(e){return void 0===e||null===e},Number:function(e){return"number"==typeof e},Object:function(e){return"object"==typeof e},String:function(e){return"string"==typeof e},"":function(){return!0}};for(var n in r.Null=r.Nil,r)r[n].toJSON=function(e){return e}.bind(null,n);e.exports=r},function(e,t,r){var n=r(17).decompile,i=r(110),o=r(391),a=r(111),s=r(112),f=r(396),c=r(399),u=r(401),h=r(403),d={MULTISIG:"multisig",NONSTANDARD:"nonstandard",NULLDATA:"nulldata",P2PK:"pubkey",P2PKH:"pubkeyhash",P2SH:"scripthash",P2WPKH:"witnesspubkeyhash",P2WSH:"witnessscripthash",WITNESS_COMMITMENT:"witnesscommitment"};e.exports={classifyInput:function(e,t){var r=n(e);return s.input.check(r)?d.P2PKH:f.input.check(r,t)?d.P2SH:i.input.check(r,t)?d.MULTISIG:a.input.check(r)?d.P2PK:d.NONSTANDARD},classifyOutput:function(e){if(c.output.check(e))return d.P2WPKH;if(u.output.check(e))return d.P2WSH;if(s.output.check(e))return d.P2PKH;if(f.output.check(e))return d.P2SH;var t=n(e);return i.output.check(t)?d.MULTISIG:a.output.check(t)?d.P2PK:h.output.check(t)?d.WITNESS_COMMITMENT:o.output.check(t)?d.NULLDATA:d.NONSTANDARD},classifyWitness:function(e,t){var r=n(e);return c.input.check(r)?d.P2WPKH:u.input.check(r,t)?d.P2WSH:d.NONSTANDARD},multisig:i,nullData:o,pubKey:a,pubKeyHash:s,scriptHash:f,witnessPubKeyHash:c,witnessScriptHash:u,witnessCommitment:h,types:d}},function(e,t,r){e.exports={input:r(390),output:r(177)}},function(e,t,r){e.exports={input:r(392),output:r(393)}},function(e,t,r){e.exports={input:r(394),output:r(395)}},function(e,t,r){"use strict";var Buffer=r(4).Buffer,n=9007199254740991;function i(e){if(e<0||e>n||e%1!=0)throw new RangeError("value out of range")}function o(e){return i(e),e<253?1:e<=65535?3:e<=4294967295?5:9}e.exports={encode:function e(t,r,n){if(i(t),r||(r=Buffer.allocUnsafe(o(t))),!Buffer.isBuffer(r))throw new TypeError("buffer must be a Buffer instance");return n||(n=0),t<253?(r.writeUInt8(t,n),e.bytes=1):t<=65535?(r.writeUInt8(253,n),r.writeUInt16LE(t,n+1),e.bytes=3):t<=4294967295?(r.writeUInt8(254,n),r.writeUInt32LE(t,n+1),e.bytes=5):(r.writeUInt8(255,n),r.writeUInt32LE(t>>>0,n+1),r.writeUInt32LE(t/4294967296|0,n+5),e.bytes=9),r},decode:function e(t,r){if(!Buffer.isBuffer(t))throw new TypeError("buffer must be a Buffer instance");r||(r=0);var n=t.readUInt8(r);if(n<253)return e.bytes=1,n;if(253===n)return e.bytes=3,t.readUInt16LE(r+1);if(254===n)return e.bytes=5,t.readUInt32LE(r+1);e.bytes=9;var o=t.readUInt32LE(r+1),a=4294967296*t.readUInt32LE(r+5)+o;return i(a),a},encodingLength:o}},function(e,t,r){var Buffer=r(4).Buffer,n=r(60),i=r(17),o=r(180),a=r(26),s=r(14),f=r(19),c=r(113);function u(e){var t=e.length;return c.encodingLength(t)+t}function h(){this.version=1,this.locktime=0,this.ins=[],this.outs=[]}h.DEFAULT_SEQUENCE=4294967295,h.SIGHASH_ALL=1,h.SIGHASH_NONE=2,h.SIGHASH_SINGLE=3,h.SIGHASH_ANYONECANPAY=128,h.ADVANCED_TRANSACTION_MARKER=0,h.ADVANCED_TRANSACTION_FLAG=1;var d=Buffer.allocUnsafe(0),l=[],p=Buffer.from("0000000000000000000000000000000000000000000000000000000000000000","hex"),b=Buffer.from("0000000000000000000000000000000000000000000000000000000000000001","hex"),v=Buffer.from("ffffffffffffffff","hex"),y={script:d,valueBuffer:v};h.fromBuffer=function(e,t){var r=0;function n(t){return r+=t,e.slice(r-t,r)}function i(){var t=e.readUInt32LE(r);return r+=4,t}function a(){var t=o.readUInt64LE(e,r);return r+=8,t}function s(){var t=c.decode(e,r);return r+=c.decode.bytes,t}function f(){return n(s())}function u(){for(var e=s(),t=[],r=0;r<e;r++)t.push(f());return t}var d=new h;d.version=function(){var t=e.readInt32LE(r);return r+=4,t}();var p=e.readUInt8(r),b=e.readUInt8(r+1),v=!1;p===h.ADVANCED_TRANSACTION_MARKER&&b===h.ADVANCED_TRANSACTION_FLAG&&(r+=2,v=!0);for(var y=s(),m=0;m<y;++m)d.ins.push({hash:n(32),index:i(),script:f(),sequence:i(),witness:l});var g=s();for(m=0;m<g;++m)d.outs.push({value:a(),script:f()});if(v){for(m=0;m<y;++m)d.ins[m].witness=u();if(!d.hasWitnesses())throw new Error("Transaction has superfluous witness data")}if(d.locktime=i(),t)return d;if(r!==e.length)throw new Error("Transaction has unexpected data");return d},h.fromHex=function(e){return h.fromBuffer(Buffer.from(e,"hex"))},h.isCoinbaseHash=function(e){s(f.Hash256bit,e);for(var t=0;t<32;++t)if(0!==e[t])return!1;return!0},h.prototype.isCoinbase=function(){return 1===this.ins.length&&h.isCoinbaseHash(this.ins[0].hash)},h.prototype.addInput=function(e,t,r,n){return s(f.tuple(f.Hash256bit,f.UInt32,f.maybe(f.UInt32),f.maybe(f.Buffer)),arguments),f.Null(r)&&(r=h.DEFAULT_SEQUENCE),this.ins.push({hash:e,index:t,script:n||d,sequence:r,witness:l})-1},h.prototype.addOutput=function(e,t){return s(f.tuple(f.Buffer,f.Satoshi),arguments),this.outs.push({script:e,value:t})-1},h.prototype.hasWitnesses=function(){return this.ins.some(function(e){return 0!==e.witness.length})},h.prototype.weight=function(){return 3*this.__byteLength(!1)+this.__byteLength(!0)},h.prototype.virtualSize=function(){return Math.ceil(this.weight()/4)},h.prototype.byteLength=function(){return this.__byteLength(!0)},h.prototype.__byteLength=function(e){var t=e&&this.hasWitnesses();return(t?10:8)+c.encodingLength(this.ins.length)+c.encodingLength(this.outs.length)+this.ins.reduce(function(e,t){return e+40+u(t.script)},0)+this.outs.reduce(function(e,t){return e+8+u(t.script)},0)+(t?this.ins.reduce(function(e,t){return e+(r=t.witness,n=r.length,c.encodingLength(n)+r.reduce(function(e,t){return e+u(t)},0));var r,n},0):0)},h.prototype.clone=function(){var e=new h;return e.version=this.version,e.locktime=this.locktime,e.ins=this.ins.map(function(e){return{hash:e.hash,index:e.index,script:e.script,sequence:e.sequence,witness:e.witness}}),e.outs=this.outs.map(function(e){return{script:e.script,value:e.value}}),e},h.prototype.hashForSignature=function(e,t,r){if(s(f.tuple(f.UInt32,f.Buffer,f.Number),arguments),e>=this.ins.length)return b;var o=i.compile(i.decompile(t).filter(function(e){return e!==a.OP_CODESEPARATOR})),c=this.clone();if((31&r)===h.SIGHASH_NONE)c.outs=[],c.ins.forEach(function(t,r){r!==e&&(t.sequence=0)});else if((31&r)===h.SIGHASH_SINGLE){if(e>=this.outs.length)return b;c.outs.length=e+1;for(var u=0;u<e;u++)c.outs[u]=y;c.ins.forEach(function(t,r){r!==e&&(t.sequence=0)})}r&h.SIGHASH_ANYONECANPAY?(c.ins=[c.ins[e]],c.ins[0].script=o):(c.ins.forEach(function(e){e.script=d}),c.ins[e].script=o);var l=Buffer.allocUnsafe(c.__byteLength(!1)+4);return l.writeInt32LE(r,l.length-4),c.__toBuffer(l,0,!1),n.hash256(l)},h.prototype.hashForWitnessV0=function(e,t,r,i){var a,d;function l(e){d+=e.copy(a,d)}function b(e){d=a.writeUInt32LE(e,d)}function v(e){d=o.writeUInt64LE(a,e,d)}function y(e){var t;t=e.length,c.encode(t,a,d),d+=c.encode.bytes,l(e)}s(f.tuple(f.UInt32,f.Buffer,f.Satoshi,f.UInt32),arguments);var m=p,g=p,w=p;if(i&h.SIGHASH_ANYONECANPAY||(a=Buffer.allocUnsafe(36*this.ins.length),d=0,this.ins.forEach(function(e){l(e.hash),b(e.index)}),g=n.hash256(a)),i&h.SIGHASH_ANYONECANPAY||(31&i)===h.SIGHASH_SINGLE||(31&i)===h.SIGHASH_NONE||(a=Buffer.allocUnsafe(4*this.ins.length),d=0,this.ins.forEach(function(e){b(e.sequence)}),w=n.hash256(a)),(31&i)!==h.SIGHASH_SINGLE&&(31&i)!==h.SIGHASH_NONE){var _=this.outs.reduce(function(e,t){return e+8+u(t.script)},0);a=Buffer.allocUnsafe(_),d=0,this.outs.forEach(function(e){v(e.value),y(e.script)}),m=n.hash256(a)}else if((31&i)===h.SIGHASH_SINGLE&&e<this.outs.length){var E=this.outs[e];a=Buffer.allocUnsafe(8+u(E.script)),d=0,v(E.value),y(E.script),m=n.hash256(a)}a=Buffer.allocUnsafe(156+u(t)),d=0;var S=this.ins[e];return b(this.version),l(g),l(w),l(S.hash),b(S.index),y(t),v(r),b(S.sequence),l(m),b(this.locktime),b(i),n.hash256(a)},h.prototype.getHash=function(){return n.hash256(this.__toBuffer(void 0,void 0,!1))},h.prototype.getId=function(){return this.getHash().reverse().toString("hex")},h.prototype.toBuffer=function(e,t){return this.__toBuffer(e,t,!0)},h.prototype.__toBuffer=function(e,t,r){e||(e=Buffer.allocUnsafe(this.__byteLength(r)));var n,i=t||0;function a(t){i+=t.copy(e,i)}function s(t){i=e.writeUInt8(t,i)}function f(t){i=e.writeUInt32LE(t,i)}function u(t){c.encode(t,e,i),i+=c.encode.bytes}function d(e){u(e.length),a(e)}n=this.version,i=e.writeInt32LE(n,i);var l=r&&this.hasWitnesses();return l&&(s(h.ADVANCED_TRANSACTION_MARKER),s(h.ADVANCED_TRANSACTION_FLAG)),u(this.ins.length),this.ins.forEach(function(e){a(e.hash),f(e.index),d(e.script),f(e.sequence)}),u(this.outs.length),this.outs.forEach(function(t){var r;t.valueBuffer?a(t.valueBuffer):(r=t.value,i=o.writeUInt64LE(e,r,i)),d(t.script)}),l&&this.ins.forEach(function(e){var t;u((t=e.witness).length),t.forEach(d)}),f(this.locktime),void 0!==t?e.slice(t,i):e},h.prototype.toHex=function(){return this.toBuffer().toString("hex")},h.prototype.setInputScript=function(e,t){s(f.tuple(f.Number,f.Buffer),arguments),this.ins[e].script=t},h.prototype.setWitness=function(e,t){s(f.tuple(f.Number,[f.Buffer]),arguments),this.ins[e].witness=t},e.exports=h},function(e,t,r){var n=r(116),i=r(60),o=r(409),a=r(48),s=r(14),f=r(19),c=r(184),u=r(74),BigInteger=r(45),h=r(91),d=o.__curve;function ECPair(e,t,r){if(r&&s({compressed:f.maybe(f.Boolean),network:f.maybe(f.Network)},r),r=r||{},e){if(e.signum()<=0)throw new Error("Private key must be greater than 0");if(e.compareTo(d.n)>=0)throw new Error("Private key must be less than the curve order");if(t)throw new TypeError("Unexpected publicKey parameter");this.d=e}else s(f.ECPoint,t),this.__Q=t;this.compressed=void 0===r.compressed||r.compressed,this.network=r.network||u.bitcoin}Object.defineProperty(ECPair.prototype,"Q",{get:function(){return!this.__Q&&this.d&&(this.__Q=d.G.multiply(this.d)),this.__Q}}),ECPair.fromPublicKeyBuffer=function(e,t){var r=h.Point.decodeFrom(d,e);return new ECPair(null,r,{compressed:r.compressed,network:t})},ECPair.fromWIF=function(e,t){var r=c.decode(e),n=r.version;if(f.Array(t)){if(!(t=t.filter(function(e){return n===e.wif}).pop()))throw new Error("Unknown network version")}else if(t=t||u.bitcoin,n!==t.wif)throw new Error("Invalid network version");return new ECPair(BigInteger.fromBuffer(r.privateKey),null,{compressed:r.compressed,network:t})},ECPair.makeRandom=function(e){var t,r=(e=e||{}).rng||a;do{var n=r(32);s(f.Buffer256bit,n),t=BigInteger.fromBuffer(n)}while(t.signum()<=0||t.compareTo(d.n)>=0);return new ECPair(t,null,e)},ECPair.prototype.getAddress=function(){return n.toBase58Check(i.hash160(this.getPublicKeyBuffer()),this.getNetwork().pubKeyHash)},ECPair.prototype.getNetwork=function(){return this.network},ECPair.prototype.getPublicKeyBuffer=function(){return this.Q.getEncoded(this.compressed)},ECPair.prototype.sign=function(e){if(!this.d)throw new Error("Missing private key");return o.sign(e,this.d)},ECPair.prototype.toWIF=function(){if(!this.d)throw new Error("Missing private key");return c.encode(this.network.wif,this.d.toBuffer(32),this.compressed)},ECPair.prototype.verify=function(e,t){return o.verify(e,t,this.Q)},e.exports=ECPair},function(e,t,r){var Buffer=r(4).Buffer,n=r(407),i=r(90),o=r(17),a=r(109),s=r(74),f=r(14),c=r(19);function u(e){var t=i.decode(e);if(t.length<21)throw new TypeError(e+" is too short");if(t.length>21)throw new TypeError(e+" is too long");return{version:t.readUInt8(0),hash:t.slice(1)}}function h(e){var t=n.decode(e),r=n.fromWords(t.words.slice(1));return{version:t.words[0],prefix:t.prefix,data:Buffer.from(r)}}function d(e,t){f(c.tuple(c.Hash160bit,c.UInt8),arguments);var r=Buffer.allocUnsafe(21);return r.writeUInt8(t,0),e.copy(r,1),i.encode(r)}function l(e,t,r){var i=n.toWords(e);return i.unshift(t),n.encode(r,i)}e.exports={fromBase58Check:u,fromBech32:h,fromOutputScript:function(e,t){if(t=t||s.bitcoin,a.pubKeyHash.output.check(e))return d(o.compile(e).slice(3,23),t.pubKeyHash);if(a.scriptHash.output.check(e))return d(o.compile(e).slice(2,22),t.scriptHash);if(a.witnessPubKeyHash.output.check(e))return l(o.compile(e).slice(2,22),0,t.bech32);if(a.witnessScriptHash.output.check(e))return l(o.compile(e).slice(2,34),0,t.bech32);throw new Error(o.toASM(e)+" has no matching Address")},toBase58Check:d,toBech32:l,toOutputScript:function(e,t){var r;t=t||s.bitcoin;try{r=u(e)}catch(e){}if(r){if(r.version===t.pubKeyHash)return a.pubKeyHash.output.encode(r.hash);if(r.version===t.scriptHash)return a.scriptHash.output.encode(r.hash)}else{try{r=h(e)}catch(e){}if(r){if(r.prefix!==t.bech32)throw new Error(e+" has an invalid prefix");if(0===r.version){if(20===r.data.length)return a.witnessPubKeyHash.output.encode(r.data);if(32===r.data.length)return a.witnessScriptHash.output.encode(r.data)}}}throw new Error(e+" has no matching Script")}}},function(e,t,r){(function(Buffer){var t=r(107),n=r(14),i=r(19),BigInteger=r(45);function o(e,t){n(i.tuple(i.BigInt,i.BigInt),arguments),this.r=e,this.s=t}o.parseCompact=function(e){n(i.BufferN(65),e);var t=e.readUInt8(0)-27;if(t!==(7&t))throw new Error("Invalid signature parameter");return{compressed:!!(4&t),i:3&t,signature:o.fromRSBuffer(e.slice(1))}},o.fromRSBuffer=function(e){return n(i.BufferN(64),e),new o(BigInteger.fromBuffer(e.slice(0,32)),BigInteger.fromBuffer(e.slice(32,64)))},o.fromDER=function(e){var r=t.decode(e);return new o(BigInteger.fromDERInteger(r.r),BigInteger.fromDERInteger(r.s))},o.parseScriptSignature=function(e){var t=e.readUInt8(e.length-1),r=-129&t;if(r<=0||r>=4)throw new Error("Invalid hashType "+t);return{signature:o.fromDER(e.slice(0,-1)),hashType:t}},o.prototype.toCompact=function(e,t){t&&(e+=4),e+=27;var r=Buffer.alloc(65);return r.writeUInt8(e,0),this.toRSBuffer(r,1),r},o.prototype.toDER=function(){var e=Buffer.from(this.r.toDERInteger()),r=Buffer.from(this.s.toDERInteger());return t.encode(e,r)},o.prototype.toRSBuffer=function(e,t){return e=e||Buffer.alloc(64),this.r.toBuffer(32).copy(e,t),this.s.toBuffer(32).copy(e,t+32),e},o.prototype.toScriptSignature=function(e){var t=-129&e;if(t<=0||t>=4)throw new Error("Invalid hashType "+e);var r=Buffer.alloc(1);return r.writeUInt8(e,0),Buffer.concat([this.toDER(),r])},e.exports=o}).call(t,r(3).Buffer)},,,,,,,,,function(e,t,r){e.exports=r(228)()},function(e,t,r){"use strict";function n(e){return function(){return e}}var i=function(){};i.thatReturns=n,i.thatReturnsFalse=n(!1),i.thatReturnsTrue=n(!0),i.thatReturnsNull=n(null),i.thatReturnsThis=function(){return this},i.thatReturnsArgument=function(e){return e},e.exports=i},function(e,t,r){"use strict";var n=function(e){};e.exports=function(e,t,r,i,o,a,s,f){if(n(t),!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[r,i,o,a,s,f],h=0;(c=new Error(t.replace(/%s/g,function(){return u[h++]}))).name="Invariant Violation"}throw c.framesToPop=1,c}}},function(e,t,r){var n;!function(i){"use strict";var o,a=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,s=Math.ceil,f=Math.floor,c=" not a boolean or binary digit",u="rounding mode",h="number type has more than 15 significant digits",d="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_",l=1e14,p=14,b=9007199254740991,v=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],y=1e7,m=1e9;function g(e){var t=0|e;return e>0||e===t?t:t-1}function w(e){for(var t,r,n=1,i=e.length,o=e[0]+"";n<i;){for(t=e[n++]+"",r=p-t.length;r--;t="0"+t);o+=t}for(i=o.length;48===o.charCodeAt(--i););return o.slice(0,i+1||1)}function _(e,t){var r,n,i=e.c,o=t.c,a=e.s,s=t.s,f=e.e,c=t.e;if(!a||!s)return null;if(r=i&&!i[0],n=o&&!o[0],r||n)return r?n?0:-s:a;if(a!=s)return a;if(r=a<0,n=f==c,!i||!o)return n?0:!i^r?1:-1;if(!n)return f>c^r?1:-1;for(s=(f=i.length)<(c=o.length)?f:c,a=0;a<s;a++)if(i[a]!=o[a])return i[a]>o[a]^r?1:-1;return f==c?0:f>c^r?1:-1}function E(e,t,r){return(e=x(e))>=t&&e<=r}function S(e){return"[object Array]"==Object.prototype.toString.call(e)}function A(e,t,r){for(var n,i,o=[0],a=0,s=e.length;a<s;){for(i=o.length;i--;o[i]*=t);for(o[n=0]+=d.indexOf(e.charAt(a++));n<o.length;n++)o[n]>r-1&&(null==o[n+1]&&(o[n+1]=0),o[n+1]+=o[n]/r|0,o[n]%=r)}return o.reverse()}function I(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function k(e,t){var r,n;if(t<0){for(n="0.";++t;n+="0");e=n+e}else if(++t>(r=e.length)){for(n="0",t-=r;--t;n+="0");e+=n}else t<r&&(e=e.slice(0,t)+"."+e.slice(t));return e}function x(e){return(e=parseFloat(e))<0?s(e):f(e)}(o=function e(t){var r,n,i,o,P,O,T,M,N=0,B=Y.prototype,C=new Y(1),R=20,L=4,j=-7,U=21,D=-1e7,F=1e7,z=!0,q=Z,H=!1,K=1,V=0,G={decimalSeparator:".",groupSeparator:",",groupSize:3,secondaryGroupSize:0,fractionGroupSeparator:" ",fractionGroupSize:0};function Y(e,t){var r,i,o,s,c,u,l=this;if(!(l instanceof Y))return new Y(e,t);if(null!=t&&q(t,2,64,N,"base")){if(u=e+"",10==(t|=0))return ee(l=new Y(e instanceof Y?e:u),R+l.e+1,L);if((s="number"==typeof e)&&0*e!=0||!new RegExp("^-?"+(r="["+d.slice(0,t)+"]+")+"(?:\\."+r+")?$",t<37?"i":"").test(u))return n(l,u,s,t);s?(l.s=1/e<0?(u=u.slice(1),-1):1,z&&u.replace(/^0\.0*|\./,"").length>15&&Q(N,h,e),s=!1):l.s=45===u.charCodeAt(0)?(u=u.slice(1),-1):1,u=W(u,10,t,l.s)}else{if(e instanceof Y)return l.s=e.s,l.e=e.e,l.c=(e=e.c)?e.slice():e,void(N=0);if((s="number"==typeof e)&&0*e==0){if(l.s=1/e<0?(e=-e,-1):1,e===~~e){for(i=0,o=e;o>=10;o/=10,i++);return l.e=i,l.c=[e],void(N=0)}u=e+""}else{if(!a.test(u=e+""))return n(l,u,s);l.s=45===u.charCodeAt(0)?(u=u.slice(1),-1):1}}for((i=u.indexOf("."))>-1&&(u=u.replace(".","")),(o=u.search(/e/i))>0?(i<0&&(i=o),i+=+u.slice(o+1),u=u.substring(0,o)):i<0&&(i=u.length),o=0;48===u.charCodeAt(o);o++);for(c=u.length;48===u.charCodeAt(--c););if(u=u.slice(o,c+1))if(c=u.length,s&&z&&c>15&&(e>b||e!==f(e))&&Q(N,h,l.s*e),(i=i-o-1)>F)l.c=l.e=null;else if(i<D)l.c=[l.e=0];else{if(l.e=i,l.c=[],o=(i+1)%p,i<0&&(o+=p),o<c){for(o&&l.c.push(+u.slice(0,o)),c-=p;o<c;)l.c.push(+u.slice(o,o+=p));u=u.slice(o),o=p-u.length}else o-=c;for(;o--;u+="0");l.c.push(+u)}else l.c=[l.e=0];N=0}function W(e,t,n,i){var o,a,s,f,c,u,h,l=e.indexOf("."),p=R,b=L;for(n<37&&(e=e.toLowerCase()),l>=0&&(s=V,V=0,e=e.replace(".",""),c=(h=new Y(n)).pow(e.length-l),V=s,h.c=A(k(w(c.c),c.e),10,t),h.e=h.c.length),a=s=(u=A(e,n,t)).length;0==u[--s];u.pop());if(!u[0])return"0";if(l<0?--a:(c.c=u,c.e=a,c.s=i,u=(c=r(c,h,p,b,t)).c,f=c.r,a=c.e),l=u[o=a+p+1],s=t/2,f=f||o<0||null!=u[o+1],f=b<4?(null!=l||f)&&(0==b||b==(c.s<0?3:2)):l>s||l==s&&(4==b||f||6==b&&1&u[o-1]||b==(c.s<0?8:7)),o<1||!u[0])e=f?k("1",-p):"0";else{if(u.length=o,f)for(--t;++u[--o]>t;)u[o]=0,o||(++a,u=[1].concat(u));for(s=u.length;!u[--s];);for(l=0,e="";l<=s;e+=d.charAt(u[l++]));e=k(e,a)}return e}function J(e,t,r,n){var i,o,a,s,f;if(r=null!=r&&q(r,0,8,n,u)?0|r:L,!e.c)return e.toString();if(i=e.c[0],a=e.e,null==t)f=w(e.c),f=19==n||24==n&&a<=j?I(f,a):k(f,a);else if(o=(e=ee(new Y(e),t,r)).e,s=(f=w(e.c)).length,19==n||24==n&&(t<=o||o<=j)){for(;s<t;f+="0",s++);f=I(f,o)}else if(t-=a,f=k(f,o),o+1>s){if(--t>0)for(f+=".";t--;f+="0");}else if((t+=o-s)>0)for(o+1==s&&(f+=".");t--;f+="0");return e.s<0&&i?"-"+f:f}function X(e,t){var r,n,i=0;for(S(e[0])&&(e=e[0]),r=new Y(e[0]);++i<e.length;){if(!(n=new Y(e[i])).s){r=n;break}t.call(r,n)&&(r=n)}return r}function Z(e,t,r,n,i){return(e<t||e>r||e!=x(e))&&Q(n,(i||"decimal places")+(e<t||e>r?" out of range":" not an integer"),e),!0}function $(e,t,r){for(var n=1,i=t.length;!t[--i];t.pop());for(i=t[0];i>=10;i/=10,n++);return(r=n+r*p-1)>F?e.c=e.e=null:r<D?e.c=[e.e=0]:(e.e=r,e.c=t),e}function Q(e,t,r){var n=new Error(["new BigNumber","cmp","config","div","divToInt","eq","gt","gte","lt","lte","minus","mod","plus","precision","random","round","shift","times","toDigits","toExponential","toFixed","toFormat","toFraction","pow","toPrecision","toString","BigNumber"][e]+"() "+t+": "+r);throw n.name="BigNumber Error",N=0,n}function ee(e,t,r,n){var i,o,a,c,u,h,d,b=e.c,y=v;if(b){e:{for(i=1,c=b[0];c>=10;c/=10,i++);if((o=t-i)<0)o+=p,a=t,d=(u=b[h=0])/y[i-a-1]%10|0;else if((h=s((o+1)/p))>=b.length){if(!n)break e;for(;b.length<=h;b.push(0));u=d=0,i=1,a=(o%=p)-p+1}else{for(u=c=b[h],i=1;c>=10;c/=10,i++);d=(a=(o%=p)-p+i)<0?0:u/y[i-a-1]%10|0}if(n=n||t<0||null!=b[h+1]||(a<0?u:u%y[i-a-1]),n=r<4?(d||n)&&(0==r||r==(e.s<0?3:2)):d>5||5==d&&(4==r||n||6==r&&(o>0?a>0?u/y[i-a]:0:b[h-1])%10&1||r==(e.s<0?8:7)),t<1||!b[0])return b.length=0,n?(t-=e.e+1,b[0]=y[(p-t%p)%p],e.e=-t||0):b[0]=e.e=0,e;if(0==o?(b.length=h,c=1,h--):(b.length=h+1,c=y[p-o],b[h]=a>0?f(u/y[i-a]%y[a])*c:0),n)for(;;){if(0==h){for(o=1,a=b[0];a>=10;a/=10,o++);for(a=b[0]+=c,c=1;a>=10;a/=10,c++);o!=c&&(e.e++,b[0]==l&&(b[0]=1));break}if(b[h]+=c,b[h]!=l)break;b[h--]=0,c=1}for(o=b.length;0===b[--o];b.pop());}e.e>F?e.c=e.e=null:e.e<D&&(e.c=[e.e=0])}return e}return Y.another=e,Y.ROUND_UP=0,Y.ROUND_DOWN=1,Y.ROUND_CEIL=2,Y.ROUND_FLOOR=3,Y.ROUND_HALF_UP=4,Y.ROUND_HALF_DOWN=5,Y.ROUND_HALF_EVEN=6,Y.ROUND_HALF_CEIL=7,Y.ROUND_HALF_FLOOR=8,Y.EUCLID=9,Y.config=Y.set=function(){var e,t,r=0,n={},i=arguments,o=i[0],a=o&&"object"==typeof o?function(){if(o.hasOwnProperty(t))return null!=(e=o[t])}:function(){if(i.length>r)return null!=(e=i[r++])};return a(t="DECIMAL_PLACES")&&q(e,0,m,2,t)&&(R=0|e),n[t]=R,a(t="ROUNDING_MODE")&&q(e,0,8,2,t)&&(L=0|e),n[t]=L,a(t="EXPONENTIAL_AT")&&(S(e)?q(e[0],-m,0,2,t)&&q(e[1],0,m,2,t)&&(j=0|e[0],U=0|e[1]):q(e,-m,m,2,t)&&(j=-(U=0|(e<0?-e:e)))),n[t]=[j,U],a(t="RANGE")&&(S(e)?q(e[0],-m,-1,2,t)&&q(e[1],1,m,2,t)&&(D=0|e[0],F=0|e[1]):q(e,-m,m,2,t)&&(0|e?D=-(F=0|(e<0?-e:e)):z&&Q(2,t+" cannot be zero",e))),n[t]=[D,F],a(t="ERRORS")&&(e===!!e||1===e||0===e?(N=0,q=(z=!!e)?Z:E):z&&Q(2,t+c,e)),n[t]=z,a(t="CRYPTO")&&(!0===e||!1===e||1===e||0===e?e?!(e="undefined"==typeof crypto)&&crypto&&(crypto.getRandomValues||crypto.randomBytes)?H=!0:z?Q(2,"crypto unavailable",e?void 0:crypto):H=!1:H=!1:z&&Q(2,t+c,e)),n[t]=H,a(t="MODULO_MODE")&&q(e,0,9,2,t)&&(K=0|e),n[t]=K,a(t="POW_PRECISION")&&q(e,0,m,2,t)&&(V=0|e),n[t]=V,a(t="FORMAT")&&("object"==typeof e?G=e:z&&Q(2,t+" not an object",e)),n[t]=G,n},Y.max=function(){return X(arguments,B.lt)},Y.min=function(){return X(arguments,B.gt)},Y.random=(i=9007199254740992*Math.random()&2097151?function(){return f(9007199254740992*Math.random())}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(e){var t,r,n,o,a,c=0,u=[],h=new Y(C);if(e=null!=e&&q(e,0,m,14)?0|e:R,o=s(e/p),H)if(crypto.getRandomValues){for(t=crypto.getRandomValues(new Uint32Array(o*=2));c<o;)(a=131072*t[c]+(t[c+1]>>>11))>=9e15?(r=crypto.getRandomValues(new Uint32Array(2)),t[c]=r[0],t[c+1]=r[1]):(u.push(a%1e14),c+=2);c=o/2}else if(crypto.randomBytes){for(t=crypto.randomBytes(o*=7);c<o;)(a=281474976710656*(31&t[c])+1099511627776*t[c+1]+4294967296*t[c+2]+16777216*t[c+3]+(t[c+4]<<16)+(t[c+5]<<8)+t[c+6])>=9e15?crypto.randomBytes(7).copy(t,c):(u.push(a%1e14),c+=7);c=o/7}else H=!1,z&&Q(14,"crypto unavailable",crypto);if(!H)for(;c<o;)(a=i())<9e15&&(u[c++]=a%1e14);for(o=u[--c],e%=p,o&&e&&(a=v[p-e],u[c]=f(o/a)*a);0===u[c];u.pop(),c--);if(c<0)u=[n=0];else{for(n=-1;0===u[0];u.splice(0,1),n-=p);for(c=1,a=u[0];a>=10;a/=10,c++);c<p&&(n-=p-c)}return h.e=n,h.c=u,h}),r=function(){function e(e,t,r){var n,i,o,a,s=0,f=e.length,c=t%y,u=t/y|0;for(e=e.slice();f--;)s=((i=c*(o=e[f]%y)+(n=u*o+(a=e[f]/y|0)*c)%y*y+s)/r|0)+(n/y|0)+u*a,e[f]=i%r;return s&&(e=[s].concat(e)),e}function t(e,t,r,n){var i,o;if(r!=n)o=r>n?1:-1;else for(i=o=0;i<r;i++)if(e[i]!=t[i]){o=e[i]>t[i]?1:-1;break}return o}function r(e,t,r,n){for(var i=0;r--;)e[r]-=i,i=e[r]<t[r]?1:0,e[r]=i*n+e[r]-t[r];for(;!e[0]&&e.length>1;e.splice(0,1));}return function(n,i,o,a,s){var c,u,h,d,b,v,y,m,w,_,E,S,A,I,k,x,P,O=n.s==i.s?1:-1,T=n.c,M=i.c;if(!(T&&T[0]&&M&&M[0]))return new Y(n.s&&i.s&&(T?!M||T[0]!=M[0]:M)?T&&0==T[0]||!M?0*O:O/0:NaN);for(w=(m=new Y(O)).c=[],O=o+(u=n.e-i.e)+1,s||(s=l,u=g(n.e/p)-g(i.e/p),O=O/p|0),h=0;M[h]==(T[h]||0);h++);if(M[h]>(T[h]||0)&&u--,O<0)w.push(1),d=!0;else{for(I=T.length,x=M.length,h=0,O+=2,(b=f(s/(M[0]+1)))>1&&(M=e(M,b,s),T=e(T,b,s),x=M.length,I=T.length),A=x,E=(_=T.slice(0,x)).length;E<x;_[E++]=0);P=M.slice(),P=[0].concat(P),k=M[0],M[1]>=s/2&&k++;do{if(b=0,(c=t(M,_,x,E))<0){if(S=_[0],x!=E&&(S=S*s+(_[1]||0)),(b=f(S/k))>1)for(b>=s&&(b=s-1),y=(v=e(M,b,s)).length,E=_.length;1==t(v,_,y,E);)b--,r(v,x<y?P:M,y,s),y=v.length,c=1;else 0==b&&(c=b=1),y=(v=M.slice()).length;if(y<E&&(v=[0].concat(v)),r(_,v,E,s),E=_.length,-1==c)for(;t(M,_,x,E)<1;)b++,r(_,x<E?P:M,E,s),E=_.length}else 0===c&&(b++,_=[0]);w[h++]=b,_[0]?_[E++]=T[A]||0:(_=[T[A]],E=1)}while((A++<I||null!=_[0])&&O--);d=null!=_[0],w[0]||w.splice(0,1)}if(s==l){for(h=1,O=w[0];O>=10;O/=10,h++);ee(m,o+(m.e=h+u*p-1)+1,a,d)}else m.e=u,m.r=+d;return m}}(),o=/^(-?)0([xbo])(?=\w[\w.]*$)/i,P=/^([^.]+)\.$/,O=/^\.([^.]+)$/,T=/^-?(Infinity|NaN)$/,M=/^\s*\+(?=[\w.])|^\s+|\s+$/g,n=function(e,t,r,n){var i,a=r?t:t.replace(M,"");if(T.test(a))e.s=isNaN(a)?null:a<0?-1:1;else{if(!r&&(a=a.replace(o,function(e,t,r){return i="x"==(r=r.toLowerCase())?16:"b"==r?2:8,n&&n!=i?e:t}),n&&(i=n,a=a.replace(P,"$1").replace(O,"0.$1")),t!=a))return new Y(a,i);z&&Q(N,"not a"+(n?" base "+n:"")+" number",t),e.s=null}e.c=e.e=null,N=0},B.absoluteValue=B.abs=function(){var e=new Y(this);return e.s<0&&(e.s=1),e},B.ceil=function(){return ee(new Y(this),this.e+1,2)},B.comparedTo=B.cmp=function(e,t){return N=1,_(this,new Y(e,t))},B.decimalPlaces=B.dp=function(){var e,t,r=this.c;if(!r)return null;if(e=((t=r.length-1)-g(this.e/p))*p,t=r[t])for(;t%10==0;t/=10,e--);return e<0&&(e=0),e},B.dividedBy=B.div=function(e,t){return N=3,r(this,new Y(e,t),R,L)},B.dividedToIntegerBy=B.divToInt=function(e,t){return N=4,r(this,new Y(e,t),0,1)},B.equals=B.eq=function(e,t){return N=5,0===_(this,new Y(e,t))},B.floor=function(){return ee(new Y(this),this.e+1,3)},B.greaterThan=B.gt=function(e,t){return N=6,_(this,new Y(e,t))>0},B.greaterThanOrEqualTo=B.gte=function(e,t){return N=7,1===(t=_(this,new Y(e,t)))||0===t},B.isFinite=function(){return!!this.c},B.isInteger=B.isInt=function(){return!!this.c&&g(this.e/p)>this.c.length-2},B.isNaN=function(){return!this.s},B.isNegative=B.isNeg=function(){return this.s<0},B.isZero=function(){return!!this.c&&0==this.c[0]},B.lessThan=B.lt=function(e,t){return N=8,_(this,new Y(e,t))<0},B.lessThanOrEqualTo=B.lte=function(e,t){return N=9,-1===(t=_(this,new Y(e,t)))||0===t},B.minus=B.sub=function(e,t){var r,n,i,o,a=this,s=a.s;if(N=10,t=(e=new Y(e,t)).s,!s||!t)return new Y(NaN);if(s!=t)return e.s=-t,a.plus(e);var f=a.e/p,c=e.e/p,u=a.c,h=e.c;if(!f||!c){if(!u||!h)return u?(e.s=-t,e):new Y(h?a:NaN);if(!u[0]||!h[0])return h[0]?(e.s=-t,e):new Y(u[0]?a:3==L?-0:0)}if(f=g(f),c=g(c),u=u.slice(),s=f-c){for((o=s<0)?(s=-s,i=u):(c=f,i=h),i.reverse(),t=s;t--;i.push(0));i.reverse()}else for(n=(o=(s=u.length)<(t=h.length))?s:t,s=t=0;t<n;t++)if(u[t]!=h[t]){o=u[t]<h[t];break}if(o&&(i=u,u=h,h=i,e.s=-e.s),(t=(n=h.length)-(r=u.length))>0)for(;t--;u[r++]=0);for(t=l-1;n>s;){if(u[--n]<h[n]){for(r=n;r&&!u[--r];u[r]=t);--u[r],u[n]+=l}u[n]-=h[n]}for(;0==u[0];u.splice(0,1),--c);return u[0]?$(e,u,c):(e.s=3==L?-1:1,e.c=[e.e=0],e)},B.modulo=B.mod=function(e,t){var n,i,o=this;return N=11,e=new Y(e,t),!o.c||!e.s||e.c&&!e.c[0]?new Y(NaN):!e.c||o.c&&!o.c[0]?new Y(o):(9==K?(i=e.s,e.s=1,n=r(o,e,0,3),e.s=i,n.s*=i):n=r(o,e,0,K),o.minus(n.times(e)))},B.negated=B.neg=function(){var e=new Y(this);return e.s=-e.s||null,e},B.plus=B.add=function(e,t){var r,n=this,i=n.s;if(N=12,t=(e=new Y(e,t)).s,!i||!t)return new Y(NaN);if(i!=t)return e.s=-t,n.minus(e);var o=n.e/p,a=e.e/p,s=n.c,f=e.c;if(!o||!a){if(!s||!f)return new Y(i/0);if(!s[0]||!f[0])return f[0]?e:new Y(s[0]?n:0*i)}if(o=g(o),a=g(a),s=s.slice(),i=o-a){for(i>0?(a=o,r=f):(i=-i,r=s),r.reverse();i--;r.push(0));r.reverse()}for((i=s.length)-(t=f.length)<0&&(r=f,f=s,s=r,t=i),i=0;t;)i=(s[--t]=s[t]+f[t]+i)/l|0,s[t]=l===s[t]?0:s[t]%l;return i&&(s=[i].concat(s),++a),$(e,s,a)},B.precision=B.sd=function(e){var t,r,n=this,i=n.c;if(null!=e&&e!==!!e&&1!==e&&0!==e&&(z&&Q(13,"argument"+c,e),e!=!!e&&(e=null)),!i)return null;if(t=(r=i.length-1)*p+1,r=i[r]){for(;r%10==0;r/=10,t--);for(r=i[0];r>=10;r/=10,t++);}return e&&n.e+1>t&&(t=n.e+1),t},B.round=function(e,t){var r=new Y(this);return(null==e||q(e,0,m,15))&&ee(r,~~e+this.e+1,null!=t&&q(t,0,8,15,u)?0|t:L),r},B.shift=function(e){var t=this;return q(e,-b,b,16,"argument")?t.times("1e"+x(e)):new Y(t.c&&t.c[0]&&(e<-b||e>b)?t.s*(e<0?0:1/0):t)},B.squareRoot=B.sqrt=function(){var e,t,n,i,o,a=this,s=a.c,f=a.s,c=a.e,u=R+4,h=new Y("0.5");if(1!==f||!s||!s[0])return new Y(!f||f<0&&(!s||s[0])?NaN:s?a:1/0);if(0==(f=Math.sqrt(+a))||f==1/0?(((t=w(s)).length+c)%2==0&&(t+="0"),f=Math.sqrt(t),c=g((c+1)/2)-(c<0||c%2),n=new Y(t=f==1/0?"1e"+c:(t=f.toExponential()).slice(0,t.indexOf("e")+1)+c)):n=new Y(f+""),n.c[0])for((f=(c=n.e)+u)<3&&(f=0);;)if(o=n,n=h.times(o.plus(r(a,o,u,1))),w(o.c).slice(0,f)===(t=w(n.c)).slice(0,f)){if(n.e<c&&--f,"9999"!=(t=t.slice(f-3,f+1))&&(i||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(ee(n,n.e+R+2,1),e=!n.times(n).eq(a));break}if(!i&&(ee(o,o.e+R+2,0),o.times(o).eq(a))){n=o;break}u+=4,f+=4,i=1}return ee(n,n.e+R+1,L,e)},B.times=B.mul=function(e,t){var r,n,i,o,a,s,f,c,u,h,d,b,v,m,w,_=this,E=_.c,S=(N=17,e=new Y(e,t)).c;if(!(E&&S&&E[0]&&S[0]))return!_.s||!e.s||E&&!E[0]&&!S||S&&!S[0]&&!E?e.c=e.e=e.s=null:(e.s*=_.s,E&&S?(e.c=[0],e.e=0):e.c=e.e=null),e;for(n=g(_.e/p)+g(e.e/p),e.s*=_.s,(f=E.length)<(h=S.length)&&(v=E,E=S,S=v,i=f,f=h,h=i),i=f+h,v=[];i--;v.push(0));for(m=l,w=y,i=h;--i>=0;){for(r=0,d=S[i]%w,b=S[i]/w|0,o=i+(a=f);o>i;)r=((c=d*(c=E[--a]%w)+(s=b*c+(u=E[a]/w|0)*d)%w*w+v[o]+r)/m|0)+(s/w|0)+b*u,v[o--]=c%m;v[o]=r}return r?++n:v.splice(0,1),$(e,v,n)},B.toDigits=function(e,t){var r=new Y(this);return e=null!=e&&q(e,1,m,18,"precision")?0|e:null,t=null!=t&&q(t,0,8,18,u)?0|t:L,e?ee(r,e,t):r},B.toExponential=function(e,t){return J(this,null!=e&&q(e,0,m,19)?1+~~e:null,t,19)},B.toFixed=function(e,t){return J(this,null!=e&&q(e,0,m,20)?~~e+this.e+1:null,t,20)},B.toFormat=function(e,t){var r=J(this,null!=e&&q(e,0,m,21)?~~e+this.e+1:null,t,21);if(this.c){var n,i=r.split("."),o=+G.groupSize,a=+G.secondaryGroupSize,s=G.groupSeparator,f=i[0],c=i[1],u=this.s<0,h=u?f.slice(1):f,d=h.length;if(a&&(n=o,o=a,a=n,d-=n),o>0&&d>0){for(n=d%o||o,f=h.substr(0,n);n<d;n+=o)f+=s+h.substr(n,o);a>0&&(f+=s+h.slice(n)),u&&(f="-"+f)}r=c?f+G.decimalSeparator+((a=+G.fractionGroupSize)?c.replace(new RegExp("\\d{"+a+"}\\B","g"),"$&"+G.fractionGroupSeparator):c):f}return r},B.toFraction=function(e){var t,n,i,o,a,s,f,c,u,h=z,d=this,l=d.c,b=new Y(C),y=n=new Y(C),m=f=new Y(C);if(null!=e&&(z=!1,s=new Y(e),z=h,(h=s.isInt())&&!s.lt(C)||(z&&Q(22,"max denominator "+(h?"out of range":"not an integer"),e),e=!h&&s.c&&ee(s,s.e+1,1).gte(C)?s:null)),!l)return d.toString();for(u=w(l),o=b.e=u.length-d.e-1,b.c[0]=v[(a=o%p)<0?p+a:a],e=!e||s.cmp(b)>0?o>0?b:y:s,a=F,F=1/0,s=new Y(u),f.c[0]=0;c=r(s,b,0,1),1!=(i=n.plus(c.times(m))).cmp(e);)n=m,m=i,y=f.plus(c.times(i=y)),f=i,b=s.minus(c.times(i=b)),s=i;return i=r(e.minus(n),m,0,1),f=f.plus(i.times(y)),n=n.plus(i.times(m)),f.s=y.s=d.s,t=r(y,m,o*=2,L).minus(d).abs().cmp(r(f,n,o,L).minus(d).abs())<1?[y.toString(),m.toString()]:[f.toString(),n.toString()],F=a,t},B.toNumber=function(){return+this},B.toPower=B.pow=function(e,t){var r,n,i,o=f(e<0?-e:+e),a=this;if(null!=t&&(N=23,t=new Y(t)),!q(e,-b,b,23,"exponent")&&(!isFinite(e)||o>b&&(e/=0)||parseFloat(e)!=e&&!(e=NaN))||0==e)return r=Math.pow(+a,e),new Y(t?r%t:r);for(t?e>1&&a.gt(C)&&a.isInt()&&t.gt(C)&&t.isInt()?a=a.mod(t):(i=t,t=null):V&&(r=s(V/p+2)),n=new Y(C);;){if(o%2){if(!(n=n.times(a)).c)break;r?n.c.length>r&&(n.c.length=r):t&&(n=n.mod(t))}if(!(o=f(o/2)))break;a=a.times(a),r?a.c&&a.c.length>r&&(a.c.length=r):t&&(a=a.mod(t))}return t?n:(e<0&&(n=C.div(n)),i?n.mod(i):r?ee(n,V,L):n)},B.toPrecision=function(e,t){return J(this,null!=e&&q(e,1,m,24,"precision")?0|e:null,t,24)},B.toString=function(e){var t,r=this,n=r.s,i=r.e;return null===i?n?(t="Infinity",n<0&&(t="-"+t)):t="NaN":(t=w(r.c),t=null!=e&&q(e,2,64,25,"base")?W(k(t,i),0|e,10,n):i<=j||i>=U?I(t,i):k(t,i),n<0&&r.c[0]&&(t="-"+t)),t},B.truncated=B.trunc=function(){return ee(new Y(this),this.e+1,1)},B.valueOf=B.toJSON=function(){var e,t=this,r=t.e;return null===r?t.toString():(e=w(t.c),e=r<=j||r>=U?I(e,r):k(e,r),t.s<0?"-"+e:e)},B.isBigNumber=!0,null!=t&&Y.config(t),Y}()).default=o.BigNumber=o,void 0===(n=function(){return o}.call(t,r,t,e))||(e.exports=n)}()},,function(e,t,r){(function(Buffer){var t=r(47).createHash,n=r(47).pbkdf2Sync,i=r(47).randomBytes,o=r(330),a=r(331),s=a,f="Invalid mnemonic",c="Invalid entropy",u="Invalid mnemonic checksum";function h(e,t,r){for(;e.length<r;)e=t+e;return e}function d(e){return parseInt(e,2)}function l(e){return e.map(function(e){return h(e.toString(2),"0",8)}).join("")}function p(e){var r=8*e.length/32,n=t("sha256").update(e).digest();return l([].slice.call(n)).slice(0,r)}function b(e,t){var r=Buffer.from(o.nfkd(e),"utf8"),i=Buffer.from(function(e){return"mnemonic"+(e||"")}(o.nfkd(t)),"utf8");return n(r,i,2048,64,"sha512")}function v(e,t){t=t||s;var r=o.nfkd(e).split(" ");if(r.length%3!=0)throw new Error(f);var n=r.map(function(e){var r=t.indexOf(e);if(-1===r)throw new Error(f);return h(r.toString(2),"0",11)}).join(""),i=32*Math.floor(n.length/33),a=n.slice(0,i),l=n.slice(i),b=a.match(/(.{1,8})/g).map(d);if(b.length<16)throw new Error(c);if(b.length>32)throw new Error(c);if(b.length%4!=0)throw new Error(c);var v=Buffer.from(b);if(p(v)!==l)throw new Error(u);return v.toString("hex")}function y(e,t,r){if(Buffer.isBuffer(e)||(e=Buffer.from(e,"hex")),t=t||s,r=r||" ",e.length<16)throw new TypeError(c);if(e.length>32)throw new TypeError(c);if(e.length%4!=0)throw new TypeError(c);return(l([].slice.call(e))+p(e)).match(/(.{1,11})/g).map(function(e){var r=d(e);return t[r]}).join(r)}e.exports={mnemonicToSeed:b,mnemonicToSeedHex:function(e,t){return b(e,t).toString("hex")},mnemonicToEntropy:v,entropyToMnemonic:y,generateMnemonic:function(e,t,r,n){if((e=e||128)%32!=0)throw new TypeError(c);return y((t=t||i)(e/8),r,n)},validateMnemonic:function(e,t){try{v(e,t)}catch(e){return!1}return!0},wordlists:{EN:a,english:a}}}).call(t,r(3).Buffer)},function(e,t,r){"use strict";(function(t,n){var i=r(79).nextTick;e.exports=m;var o,a=r(245);m.ReadableState=y;r(95).EventEmitter;var s=function(e,t){return e.listeners(t).length},f=r(133),Buffer=r(4).Buffer,c=t.Uint8Array||function(){};var u=r(66);u.inherits=r(5);var h=r(246),d=void 0;d=h&&h.debuglog?h.debuglog("stream"):function(){};var l,p=r(247),b=r(134);u.inherits(m,f);var v=["error","close","destroy","pause","resume"];function y(e,t){o=o||r(49),e=e||{};var n=t instanceof o;this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var i=e.highWaterMark,a=e.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:n&&(a||0===a)?a:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new p,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&&(l||(l=r(98).StringDecoder),this.decoder=new l(e.encoding),this.encoding=e.encoding)}function m(e){if(o=o||r(49),!(this instanceof m))return new m(e);this._readableState=new y(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),f.call(this)}function g(e,t,r,n,i){var o,a=e._readableState;null===t?(a.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,S(e)}(e,a)):(i||(o=function(e,t){var r;n=t,Buffer.isBuffer(n)||n instanceof c||"string"==typeof t||void 0===t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk"));var n;return r}(a,t)),o?e.emit("error",o):a.objectMode||t&&t.length>0?("string"==typeof t||a.objectMode||Object.getPrototypeOf(t)===Buffer.prototype||(t=function(e){return Buffer.from(e)}(t)),n?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&&!r?(t=a.decoder.write(t),a.objectMode||0!==t.length?w(e,a,t,!1):I(e,a)):w(e,a,t,!1))):n||(a.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(a)}function w(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&S(e)),I(e,t)}Object.defineProperty(m.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),m.prototype.destroy=b.destroy,m.prototype._undestroy=b.undestroy,m.prototype._destroy=function(e,t){this.push(null),t(e)},m.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=Buffer.from(e,t),t=""),r=!0),g(this,e,t,!1,r)},m.prototype.unshift=function(e){return g(this,e,null,!0,!1)},m.prototype.isPaused=function(){return!1===this._readableState.flowing},m.prototype.setEncoding=function(e){return l||(l=r(98).StringDecoder),this._readableState.decoder=new l(e),this._readableState.encoding=e,this};var _=8388608;function E(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>=_?e=_:(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 S(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(d("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?i(A,e):A(e))}function A(e){d("emit readable"),e.emit("readable"),O(e)}function I(e,t){t.readingMore||(t.readingMore=!0,i(k,e,t))}function k(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(d("maybeReadMore read 0"),e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}function x(e){d("readable nexttick read 0"),e.read(0)}function P(e,t){t.reading||(d("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(d("flow",t.flowing);t.flowing&&null!==e.read(););}function T(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):r=function(e,t,r){var n;e<t.head.data.length?(n=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):n=e===t.head.data.length?t.shift():r?function(e,t){var r=t.head,n=1,i=r.data;e-=i.length;for(;r=r.next;){var o=r.data,a=e>o.length?o.length:e;if(a===o.length?i+=o:i+=o.slice(0,e),0===(e-=a)){a===o.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(a));break}++n}return t.length-=n,i}(e,t):function(e,t){var r=Buffer.allocUnsafe(e),n=t.head,i=1;n.data.copy(r),e-=n.data.length;for(;n=n.next;){var o=n.data,a=e>o.length?o.length:e;if(o.copy(r,r.length-e,0,a),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);return n}(e,t.buffer,t.decoder),r);var r}function M(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,i(N,t,e))}function N(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function B(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}m.prototype.read=function(e){d("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return d("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?M(this):S(this),null;if(0===(e=E(e,t))&&t.ended)return 0===t.length&&M(this),null;var n,i=t.needReadable;return d("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&d("length less than watermark",i=!0),t.ended||t.reading?d("reading or ended",i=!1):i&&(d("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=E(r,t))),null===(n=e>0?T(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&M(this)),null!==n&&this.emit("data",n),n},m.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},m.prototype.pipe=function(e,t){var r=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,d("pipe count=%d opts=%j",o.pipesCount,t);var f=(!t||!1!==t.end)&&e!==n.stdout&&e!==n.stderr?u:g;function c(t,n){d("onunpipe"),t===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,d("cleanup"),e.removeListener("close",y),e.removeListener("finish",m),e.removeListener("drain",h),e.removeListener("error",v),e.removeListener("unpipe",c),r.removeListener("end",u),r.removeListener("end",g),r.removeListener("data",b),l=!0,!o.awaitDrain||e._writableState&&!e._writableState.needDrain||h())}function u(){d("onend"),e.end()}o.endEmitted?i(f):r.once("end",f),e.on("unpipe",c);var h=function(e){return function(){var t=e._readableState;d("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&s(e,"data")&&(t.flowing=!0,O(e))}}(r);e.on("drain",h);var l=!1;var p=!1;function b(t){d("ondata"),p=!1,!1!==e.write(t)||p||((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==B(o.pipes,e))&&!l&&(d("false write response, pause",r._readableState.awaitDrain),r._readableState.awaitDrain++,p=!0),r.pause())}function v(t){d("onerror",t),g(),e.removeListener("error",v),0===s(e,"error")&&e.emit("error",t)}function y(){e.removeListener("finish",m),g()}function m(){d("onfinish"),e.removeListener("close",y),g()}function g(){d("unpipe"),r.unpipe(e)}return r.on("data",b),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?a(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",v),e.once("close",y),e.once("finish",m),e.emit("pipe",r),o.flowing||(d("pipe resume"),r.resume()),e},m.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r),this);if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,r);return this}var a=B(t.pipes,e);return-1===a?this:(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r),this)},m.prototype.on=function(e,t){var r=f.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var n=this._readableState;n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.emittedReadable=!1,n.reading?n.length&&S(this):i(x,this))}return r},m.prototype.addListener=m.prototype.on,m.prototype.resume=function(){var e=this._readableState;return e.flowing||(d("resume"),e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i(P,e,t))}(this,e)),this},m.prototype.pause=function(){return d("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(d("pause"),this._readableState.flowing=!1,this.emit("pause")),this},m.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var i in e.on("end",function(){if(d("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(i){(d("wrapped data"),r.decoder&&(i=r.decoder.write(i)),!r.objectMode||null!==i&&void 0!==i)&&((r.objectMode||i&&i.length)&&(t.push(i)||(n=!0,e.pause())))}),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o<v.length;o++)e.on(v[o],this.emit.bind(this,v[o]));return this._read=function(t){d("wrapped _read",t),n&&(n=!1,e.resume())},this},m._fromList=T}).call(t,r(29),r(32))},function(e,t,r){e.exports=r(95).EventEmitter},function(e,t,r){"use strict";var n=r(79).nextTick;function i(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var r=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||n(i,this,e),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?(n(i,r,e),r._writableState&&(r._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,r){"use strict";e.exports=o;var n=r(49),i=r(66);function o(e){if(!(this instanceof o))return new o(e);n.call(this,e),this._transformState={afterTransform:function(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(!n)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}.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",a)}function a(){var e=this;"function"==typeof this._flush?this._flush(function(t,r){s(e,t,r)}):s(this,null,null)}function s(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),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)}i.inherits=r(5),i.inherits(o,n),o.prototype.push=function(e,t){return this._transformState.needTransform=!1,n.prototype.push.call(this,e,t)},o.prototype._transform=function(e,t,r){throw new Error("_transform() is not implemented")},o.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},o.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},o.prototype._destroy=function(e,t){var r=this;n.prototype._destroy.call(this,e,function(e){t(e),r.emit("close")})}},function(e,t,r){var n=r(5),i=r(54),Buffer=r(4).Buffer,o=[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],a=new Array(64);function s(){this.init(),this._w=a,i.call(this,64,56)}function f(e,t,r){return r^e&(t^r)}function c(e,t,r){return e&t|r&(e|t)}function u(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function h(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function d(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}n(s,i),s.prototype.init=function(){return 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},s.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,i=0|this._b,a=0|this._c,s=0|this._d,l=0|this._e,p=0|this._f,b=0|this._g,v=0|this._h,y=0;y<16;++y)r[y]=e.readInt32BE(4*y);for(;y<64;++y)r[y]=0|(((t=r[y-2])>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+r[y-7]+d(r[y-15])+r[y-16];for(var m=0;m<64;++m){var g=v+h(l)+f(l,p,b)+o[m]+r[m]|0,w=u(n)+c(n,i,a)|0;v=b,b=p,p=l,l=s+g|0,s=a,a=i,i=n,n=g+w|0}this._a=n+this._a|0,this._b=i+this._b|0,this._c=a+this._c|0,this._d=s+this._d|0,this._e=l+this._e|0,this._f=p+this._f|0,this._g=b+this._g|0,this._h=v+this._h|0},s.prototype._hash=function(){var e=Buffer.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},e.exports=s},function(e,t,r){var n=r(5),i=r(54),Buffer=r(4).Buffer,o=[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],a=new Array(160);function s(){this.init(),this._w=a,i.call(this,128,112)}function f(e,t,r){return r^e&(t^r)}function c(e,t,r){return e&t|r&(e|t)}function u(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function h(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function d(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function l(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function p(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function b(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function v(e,t){return e>>>0<t>>>0?1:0}n(s,i),s.prototype.init=function(){return 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},s.prototype._update=function(e){for(var t=this._w,r=0|this._ah,n=0|this._bh,i=0|this._ch,a=0|this._dh,s=0|this._eh,y=0|this._fh,m=0|this._gh,g=0|this._hh,w=0|this._al,_=0|this._bl,E=0|this._cl,S=0|this._dl,A=0|this._el,I=0|this._fl,k=0|this._gl,x=0|this._hl,P=0;P<32;P+=2)t[P]=e.readInt32BE(4*P),t[P+1]=e.readInt32BE(4*P+4);for(;P<160;P+=2){var O=t[P-30],T=t[P-30+1],M=d(O,T),N=l(T,O),B=p(O=t[P-4],T=t[P-4+1]),C=b(T,O),R=t[P-14],L=t[P-14+1],j=t[P-32],U=t[P-32+1],D=N+L|0,F=M+R+v(D,N)|0;F=(F=F+B+v(D=D+C|0,C)|0)+j+v(D=D+U|0,U)|0,t[P]=F,t[P+1]=D}for(var z=0;z<160;z+=2){F=t[z],D=t[z+1];var q=c(r,n,i),H=c(w,_,E),K=u(r,w),V=u(w,r),G=h(s,A),Y=h(A,s),W=o[z],J=o[z+1],X=f(s,y,m),Z=f(A,I,k),$=x+Y|0,Q=g+G+v($,x)|0;Q=(Q=(Q=Q+X+v($=$+Z|0,Z)|0)+W+v($=$+J|0,J)|0)+F+v($=$+D|0,D)|0;var ee=V+H|0,te=K+q+v(ee,V)|0;g=m,x=k,m=y,k=I,y=s,I=A,s=a+Q+v(A=S+$|0,S)|0,a=i,S=E,i=n,E=_,n=r,_=w,r=Q+te+v(w=$+ee|0,$)|0}this._al=this._al+w|0,this._bl=this._bl+_|0,this._cl=this._cl+E|0,this._dl=this._dl+S|0,this._el=this._el+A|0,this._fl=this._fl+I|0,this._gl=this._gl+k|0,this._hl=this._hl+x|0,this._ah=this._ah+r+v(this._al,w)|0,this._bh=this._bh+n+v(this._bl,_)|0,this._ch=this._ch+i+v(this._cl,E)|0,this._dh=this._dh+a+v(this._dl,S)|0,this._eh=this._eh+s+v(this._el,A)|0,this._fh=this._fh+y+v(this._fl,I)|0,this._gh=this._gh+m+v(this._gl,k)|0,this._hh=this._hh+g+v(this._hl,x)|0},s.prototype._hash=function(){var e=Buffer.allocUnsafe(64);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},e.exports=s},function(e,t){e.exports={sha224WithRSAEncryption:{sign:"rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},"RSA-SHA224":{sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption:{sign:"rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},"RSA-SHA256":{sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption:{sign:"rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},"RSA-SHA384":{sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption:{sign:"rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA512":{sign:"ecdsa/rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA1":{sign:"rsa",hash:"sha1",id:"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{sign:"ecdsa",hash:"sha1",id:""},sha256:{sign:"ecdsa",hash:"sha256",id:""},sha224:{sign:"ecdsa",hash:"sha224",id:""},sha384:{sign:"ecdsa",hash:"sha384",id:""},sha512:{sign:"ecdsa",hash:"sha512",id:""},"DSA-SHA":{sign:"dsa",hash:"sha1",id:""},"DSA-SHA1":{sign:"dsa",hash:"sha1",id:""},DSA:{sign:"dsa",hash:"sha1",id:""},"DSA-WITH-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-WITH-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-WITH-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-WITH-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-RIPEMD160":{sign:"dsa",hash:"rmd160",id:""},ripemd160WithRSA:{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},"RSA-RIPEMD160":{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption:{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"},"RSA-MD5":{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"}}},function(e,t){var r=Math.pow(2,30)-1;e.exports=function(e,t){if("number"!=typeof e)throw new TypeError("Iterations not a number");if(e<0)throw new TypeError("Bad iterations");if("number"!=typeof t)throw new TypeError("Key length not a number");if(t<0||t>r||t!=t)throw new TypeError("Bad key length")}},function(e,t,r){(function(t){var r;t.browser?r="utf-8":r=parseInt(t.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary";e.exports=r}).call(t,r(32))},function(e,t,r){var n=r(93),i=r(94),o=r(99),a=r(139),s=r(140),Buffer=r(4).Buffer,f=Buffer.alloc(128),c={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function u(e,t,r){var a=function(e){return"rmd160"===e||"ripemd160"===e?i:"md5"===e?n:function(t){return o(e).update(t).digest()}}(e),s="sha512"===e||"sha384"===e?128:64;t.length>s?t=a(t):t.length<s&&(t=Buffer.concat([t,f],s));for(var u=Buffer.allocUnsafe(s+c[e]),h=Buffer.allocUnsafe(s+c[e]),d=0;d<s;d++)u[d]=54^t[d],h[d]=92^t[d];var l=Buffer.allocUnsafe(s+r+4);u.copy(l,0,0,s),this.ipad1=l,this.ipad2=u,this.opad=h,this.alg=e,this.blocksize=s,this.hash=a,this.size=c[e]}u.prototype.run=function(e,t){return e.copy(t,this.blocksize),this.hash(t).copy(this.opad,this.blocksize),this.hash(this.opad)},e.exports=function(e,t,r,n,i){Buffer.isBuffer(e)||(e=Buffer.from(e,s)),Buffer.isBuffer(t)||(t=Buffer.from(t,s)),a(r,n);var o=new u(i=i||"sha1",e,t.length),f=Buffer.allocUnsafe(n),h=Buffer.allocUnsafe(t.length+4);t.copy(h,0,0,t.length);for(var d=0,l=c[i],p=Math.ceil(n/l),b=1;b<=p;b++){h.writeUInt32BE(b,t.length);for(var v=o.run(h,o.ipad1),y=v,m=1;m<r;m++){y=o.run(y,o.ipad2);for(var g=0;g<l;g++)v[g]^=y[g]}v.copy(f,d),d+=l}return f}},function(e,t,r){var n=r(55),Buffer=r(4).Buffer,i=r(143);function o(e){var t=e._cipher.encryptBlockRaw(e._prev);return i(e._prev),t}t.encrypt=function(e,t){var r=Math.ceil(t.length/16),i=e._cache.length;e._cache=Buffer.concat([e._cache,Buffer.allocUnsafe(16*r)]);for(var a=0;a<r;a++){var s=o(e),f=i+16*a;e._cache.writeUInt32BE(s[0],f+0),e._cache.writeUInt32BE(s[1],f+4),e._cache.writeUInt32BE(s[2],f+8),e._cache.writeUInt32BE(s[3],f+12)}var c=e._cache.slice(0,t.length);return e._cache=e._cache.slice(t.length),n(t,c)}},function(e,t){e.exports=function(e){for(var t,r=e.length;r--;){if(255!==(t=e.readUInt8(r))){t++,e.writeUInt8(t,r);break}e.writeUInt8(0,r)}}},function(e,t){e.exports={"aes-128-ecb":{cipher:"AES",key:128,iv:0,mode:"ECB",type:"block"},"aes-192-ecb":{cipher:"AES",key:192,iv:0,mode:"ECB",type:"block"},"aes-256-ecb":{cipher:"AES",key:256,iv:0,mode:"ECB",type:"block"},"aes-128-cbc":{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},"aes-192-cbc":{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},"aes-256-cbc":{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},aes128:{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},aes192:{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},aes256:{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},"aes-128-cfb":{cipher:"AES",key:128,iv:16,mode:"CFB",type:"stream"},"aes-192-cfb":{cipher:"AES",key:192,iv:16,mode:"CFB",type:"stream"},"aes-256-cfb":{cipher:"AES",key:256,iv:16,mode:"CFB",type:"stream"},"aes-128-cfb8":{cipher:"AES",key:128,iv:16,mode:"CFB8",type:"stream"},"aes-192-cfb8":{cipher:"AES",key:192,iv:16,mode:"CFB8",type:"stream"},"aes-256-cfb8":{cipher:"AES",key:256,iv:16,mode:"CFB8",type:"stream"},"aes-128-cfb1":{cipher:"AES",key:128,iv:16,mode:"CFB1",type:"stream"},"aes-192-cfb1":{cipher:"AES",key:192,iv:16,mode:"CFB1",type:"stream"},"aes-256-cfb1":{cipher:"AES",key:256,iv:16,mode:"CFB1",type:"stream"},"aes-128-ofb":{cipher:"AES",key:128,iv:16,mode:"OFB",type:"stream"},"aes-192-ofb":{cipher:"AES",key:192,iv:16,mode:"OFB",type:"stream"},"aes-256-ofb":{cipher:"AES",key:256,iv:16,mode:"OFB",type:"stream"},"aes-128-ctr":{cipher:"AES",key:128,iv:16,mode:"CTR",type:"stream"},"aes-192-ctr":{cipher:"AES",key:192,iv:16,mode:"CTR",type:"stream"},"aes-256-ctr":{cipher:"AES",key:256,iv:16,mode:"CTR",type:"stream"},"aes-128-gcm":{cipher:"AES",key:128,iv:12,mode:"GCM",type:"auth"},"aes-192-gcm":{cipher:"AES",key:192,iv:12,mode:"GCM",type:"auth"},"aes-256-gcm":{cipher:"AES",key:256,iv:12,mode:"GCM",type:"auth"}}},function(e,t,r){var n=r(84),Buffer=r(4).Buffer,i=r(43),o=r(5),a=r(274),s=r(55),f=r(143);function c(e,t,r,o){i.call(this);var s=Buffer.alloc(4,0);this._cipher=new n.AES(t);var c=this._cipher.encryptBlock(s);this._ghash=new a(c),r=function(e,t,r){if(12===t.length)return e._finID=Buffer.concat([t,Buffer.from([0,0,0,1])]),Buffer.concat([t,Buffer.from([0,0,0,2])]);var n=new a(r),i=t.length,o=i%16;n.update(t),o&&(o=16-o,n.update(Buffer.alloc(o,0))),n.update(Buffer.alloc(8,0));var s=8*i,c=Buffer.alloc(8);c.writeUIntBE(s,0,8),n.update(c),e._finID=n.state;var u=Buffer.from(e._finID);return f(u),u}(this,r,c),this._prev=Buffer.from(r),this._cache=Buffer.allocUnsafe(0),this._secCache=Buffer.allocUnsafe(0),this._decrypt=o,this._alen=0,this._len=0,this._mode=e,this._authTag=null,this._called=!1}o(c,i),c.prototype._update=function(e){if(!this._called&&this._alen){var t=16-this._alen%16;t<16&&(t=Buffer.alloc(t,0),this._ghash.update(t))}this._called=!0;var r=this._mode.encrypt(this,e);return this._decrypt?this._ghash.update(e):this._ghash.update(r),this._len+=e.length,r},c.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var e=s(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function(e,t){var r=0;e.length!==t.length&&r++;for(var n=Math.min(e.length,t.length),i=0;i<n;++i)r+=e[i]^t[i];return r}(e,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=e,this._cipher.scrub()},c.prototype.getAuthTag=function(){if(this._decrypt||!Buffer.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},c.prototype.setAuthTag=function(e){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=e},c.prototype.setAAD=function(e){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(e),this._alen+=e.length},e.exports=c},function(e,t,r){var n=r(84),Buffer=r(4).Buffer,i=r(43);function o(e,t,r,o){i.call(this),this._cipher=new n.AES(t),this._prev=Buffer.from(r),this._cache=Buffer.allocUnsafe(0),this._secCache=Buffer.allocUnsafe(0),this._decrypt=o,this._mode=e}r(5)(o,i),o.prototype._update=function(e){return this._mode.encrypt(this,e,this._decrypt)},o.prototype._final=function(){this._cipher.scrub()},e.exports=o},function(e,t,r){var n=r(48);e.exports=m,m.simpleSieve=v,m.fermatTest=y;var i=r(9),o=new i(24),a=new(r(149)),s=new i(1),f=new i(2),c=new i(5),u=(new i(16),new i(8),new i(10)),h=new i(3),d=(new i(7),new i(11)),l=new i(4),p=(new i(12),null);function b(){if(null!==p)return p;var e=[];e[0]=2;for(var t=1,r=3;r<1048576;r+=2){for(var n=Math.ceil(Math.sqrt(r)),i=0;i<t&&e[i]<=n&&r%e[i]!=0;i++);t!==i&&e[i]<=n||(e[t++]=r)}return p=e,e}function v(e){for(var t=b(),r=0;r<t.length;r++)if(0===e.modn(t[r]))return 0===e.cmpn(t[r]);return!0}function y(e){var t=i.mont(e);return 0===f.toRed(t).redPow(e.subn(1)).fromRed().cmpn(1)}function m(e,t){if(e<16)return new i(2===t||5===t?[140,123]:[140,39]);var r,p;for(t=new i(t);;){for(r=new i(n(Math.ceil(e/8)));r.bitLength()>e;)r.ishrn(1);if(r.isEven()&&r.iadd(s),r.testn(1)||r.iadd(f),t.cmp(f)){if(!t.cmp(c))for(;r.mod(u).cmp(h);)r.iadd(l)}else for(;r.mod(o).cmp(d);)r.iadd(l);if(v(p=r.shrn(1))&&v(r)&&y(p)&&y(r)&&a.test(p)&&a.test(r))return r}}},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,r){var n=r(9),i=r(102);function o(e){this.rand=e||new i.Rand}e.exports=o,o.create=function(e){return new o(e)},o.prototype._randbelow=function(e){var t=e.bitLength(),r=Math.ceil(t/8);do{var i=new n(this.rand.generate(r))}while(i.cmp(e)>=0);return i},o.prototype._randrange=function(e,t){var r=t.sub(e);return e.add(this._randbelow(r))},o.prototype.test=function(e,t,r){var i=e.bitLength(),o=n.mont(e),a=new n(1).toRed(o);t||(t=Math.max(1,i/48|0));for(var s=e.subn(1),f=0;!s.testn(f);f++);for(var c=e.shrn(f),u=s.toRed(o);t>0;t--){var h=this._randrange(new n(2),s);r&&r(h);var d=h.toRed(o).redPow(c);if(0!==d.cmp(a)&&0!==d.cmp(u)){for(var l=1;l<f;l++){if(0===(d=d.redSqr()).cmp(a))return!1;if(0===d.cmp(u))break}if(l===f)return!1}}return!0},o.prototype.getDivisor=function(e,t){var r=e.bitLength(),i=n.mont(e),o=new n(1).toRed(i);t||(t=Math.max(1,r/48|0));for(var a=e.subn(1),s=0;!a.testn(s);s++);for(var f=e.shrn(s),c=a.toRed(i);t>0;t--){var u=this._randrange(new n(2),a),h=e.gcd(u);if(0!==h.cmpn(1))return h;var d=u.toRed(i).redPow(f);if(0!==d.cmp(o)&&0!==d.cmp(c)){for(var l=1;l<s;l++){if(0===(d=d.redSqr()).cmp(o))return d.fromRed().subn(1).gcd(e);if(0===d.cmp(c))break}if(l===s)return(d=d.redSqr()).fromRed().subn(1).gcd(e)}}return!1}},function(e,t,r){"use strict";var n=r(37).rotr32;function i(e,t,r){return e&t^~e&r}function o(e,t,r){return e&t^e&r^t&r}function a(e,t,r){return e^t^r}t.ft_1=function(e,t,r,n){return 0===e?i(t,r,n):1===e||3===e?a(t,r,n):2===e?o(t,r,n):void 0},t.ch32=i,t.maj32=o,t.p32=a,t.s0_256=function(e){return n(e,2)^n(e,13)^n(e,22)},t.s1_256=function(e){return n(e,6)^n(e,11)^n(e,25)},t.g0_256=function(e){return n(e,7)^n(e,18)^e>>>3},t.g1_256=function(e){return n(e,17)^n(e,19)^e>>>10}},function(e,t,r){"use strict";var n=r(37),i=r(67),o=r(150),a=r(30),s=n.sum32,f=n.sum32_4,c=n.sum32_5,u=o.ch32,h=o.maj32,d=o.s0_256,l=o.s1_256,p=o.g0_256,b=o.g1_256,v=i.BlockHash,y=[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 m(){if(!(this instanceof m))return new m;v.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=y,this.W=new Array(64)}n.inherits(m,v),e.exports=m,m.blockSize=512,m.outSize=256,m.hmacStrength=192,m.padLength=64,m.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n<r.length;n++)r[n]=f(b(r[n-2]),r[n-7],p(r[n-15]),r[n-16]);var i=this.h[0],o=this.h[1],v=this.h[2],y=this.h[3],m=this.h[4],g=this.h[5],w=this.h[6],_=this.h[7];for(a(this.k.length===r.length),n=0;n<r.length;n++){var E=c(_,l(m),u(m,g,w),this.k[n],r[n]),S=s(d(i),h(i,o,v));_=w,w=g,g=m,m=s(y,E),y=v,v=o,o=i,i=s(E,S)}this.h[0]=s(this.h[0],i),this.h[1]=s(this.h[1],o),this.h[2]=s(this.h[2],v),this.h[3]=s(this.h[3],y),this.h[4]=s(this.h[4],m),this.h[5]=s(this.h[5],g),this.h[6]=s(this.h[6],w),this.h[7]=s(this.h[7],_)},m.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},function(e,t,r){"use strict";var n=r(37),i=r(67),o=r(30),a=n.rotr64_hi,s=n.rotr64_lo,f=n.shr64_hi,c=n.shr64_lo,u=n.sum64,h=n.sum64_hi,d=n.sum64_lo,l=n.sum64_4_hi,p=n.sum64_4_lo,b=n.sum64_5_hi,v=n.sum64_5_lo,y=i.BlockHash,m=[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 g(){if(!(this instanceof g))return new g;y.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=m,this.W=new Array(160)}function w(e,t,r,n,i){var o=e&r^~e&i;return o<0&&(o+=4294967296),o}function _(e,t,r,n,i,o){var a=t&n^~t&o;return a<0&&(a+=4294967296),a}function E(e,t,r,n,i){var o=e&r^e&i^r&i;return o<0&&(o+=4294967296),o}function S(e,t,r,n,i,o){var a=t&n^t&o^n&o;return a<0&&(a+=4294967296),a}function A(e,t){var r=a(e,t,28)^a(t,e,2)^a(t,e,7);return r<0&&(r+=4294967296),r}function I(e,t){var r=s(e,t,28)^s(t,e,2)^s(t,e,7);return r<0&&(r+=4294967296),r}function k(e,t){var r=a(e,t,14)^a(e,t,18)^a(t,e,9);return r<0&&(r+=4294967296),r}function x(e,t){var r=s(e,t,14)^s(e,t,18)^s(t,e,9);return r<0&&(r+=4294967296),r}function P(e,t){var r=a(e,t,1)^a(e,t,8)^f(e,t,7);return r<0&&(r+=4294967296),r}function O(e,t){var r=s(e,t,1)^s(e,t,8)^c(e,t,7);return r<0&&(r+=4294967296),r}function T(e,t){var r=a(e,t,19)^a(t,e,29)^f(e,t,6);return r<0&&(r+=4294967296),r}function M(e,t){var r=s(e,t,19)^s(t,e,29)^c(e,t,6);return r<0&&(r+=4294967296),r}n.inherits(g,y),e.exports=g,g.blockSize=1024,g.outSize=512,g.hmacStrength=192,g.padLength=128,g.prototype._prepareBlock=function(e,t){for(var r=this.W,n=0;n<32;n++)r[n]=e[t+n];for(;n<r.length;n+=2){var i=T(r[n-4],r[n-3]),o=M(r[n-4],r[n-3]),a=r[n-14],s=r[n-13],f=P(r[n-30],r[n-29]),c=O(r[n-30],r[n-29]),u=r[n-32],h=r[n-31];r[n]=l(i,o,a,s,f,c,u,h),r[n+1]=p(i,o,a,s,f,c,u,h)}},g.prototype._update=function(e,t){this._prepareBlock(e,t);var r=this.W,n=this.h[0],i=this.h[1],a=this.h[2],s=this.h[3],f=this.h[4],c=this.h[5],l=this.h[6],p=this.h[7],y=this.h[8],m=this.h[9],g=this.h[10],P=this.h[11],O=this.h[12],T=this.h[13],M=this.h[14],N=this.h[15];o(this.k.length===r.length);for(var B=0;B<r.length;B+=2){var C=M,R=N,L=k(y,m),j=x(y,m),U=w(y,m,g,P,O),D=_(y,m,g,P,O,T),F=this.k[B],z=this.k[B+1],q=r[B],H=r[B+1],K=b(C,R,L,j,U,D,F,z,q,H),V=v(C,R,L,j,U,D,F,z,q,H);C=A(n,i),R=I(n,i),L=E(n,i,a,s,f),j=S(n,i,a,s,f,c);var G=h(C,R,L,j),Y=d(C,R,L,j);M=O,N=T,O=g,T=P,g=y,P=m,y=h(l,p,K,V),m=d(p,p,K,V),l=f,p=c,f=a,c=s,a=n,s=i,n=h(K,V,G,Y),i=d(K,V,G,Y)}u(this.h,0,n,i),u(this.h,2,a,s),u(this.h,4,f,c),u(this.h,6,l,p),u(this.h,8,y,m),u(this.h,10,g,P),u(this.h,12,O,T),u(this.h,14,M,N)},g.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},function(e,t,r){"use strict";var n=r(56),i=r(104),o=r(30);function a(e){if(!(this instanceof a))return new a(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=i.toArray(e.entropy,e.entropyEnc||"hex"),r=i.toArray(e.nonce,e.nonceEnc||"hex"),n=i.toArray(e.pers,e.persEnc||"hex");o(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,n)}e.exports=a,a.prototype._init=function(e,t,r){var n=e.concat(t).concat(r);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i<this.V.length;i++)this.K[i]=0,this.V[i]=1;this._update(n),this._reseed=1,this.reseedInterval=281474976710656},a.prototype._hmac=function(){return new n.hmac(this.hash,this.K)},a.prototype._update=function(e){var t=this._hmac().update(this.V).update([0]);e&&(t=t.update(e)),this.K=t.digest(),this.V=this._hmac().update(this.V).digest(),e&&(this.K=this._hmac().update(this.V).update([1]).update(e).digest(),this.V=this._hmac().update(this.V).digest())},a.prototype.reseed=function(e,t,r,n){"string"!=typeof t&&(n=r,r=t,t=null),e=i.toArray(e,t),r=i.toArray(r,n),o(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},a.prototype.generate=function(e,t,r,n){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(n=r,r=t,t=null),r&&(r=i.toArray(r,n||"hex"),this._update(r));for(var o=[];o.length<e;)this.V=this._hmac().update(this.V).digest(),o=o.concat(this.V);var a=o.slice(0,e);return this._update(r),this._reseed++,i.encode(a,t)}},function(e,t,r){var n=r(5),i=r(69).Reporter,Buffer=r(3).Buffer;function o(e,t){i.call(this,t),Buffer.isBuffer(e)?(this.base=e,this.offset=0,this.length=e.length):this.error("Input not Buffer")}function a(e,t){if(Array.isArray(e))this.length=0,this.value=e.map(function(e){return e instanceof a||(e=new a(e,t)),this.length+=e.length,e},this);else if("number"==typeof e){if(!(0<=e&&e<=255))return t.error("non-byte EncoderBuffer value");this.value=e,this.length=1}else if("string"==typeof e)this.value=e,this.length=Buffer.byteLength(e);else{if(!Buffer.isBuffer(e))return t.error("Unsupported type: "+typeof e);this.value=e,this.length=e.length}}n(o,i),t.DecoderBuffer=o,o.prototype.save=function(){return{offset:this.offset,reporter:i.prototype.save.call(this)}},o.prototype.restore=function(e){var t=new o(this.base);return t.offset=e.offset,t.length=this.offset,this.offset=e.offset,i.prototype.restore.call(this,e.reporter),t},o.prototype.isEmpty=function(){return this.offset===this.length},o.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||"DecoderBuffer overrun")},o.prototype.skip=function(e,t){if(!(this.offset+e<=this.length))return this.error(t||"DecoderBuffer overrun");var r=new o(this.base);return r._reporterState=this._reporterState,r.offset=this.offset,r.length=this.offset+e,this.offset+=e,r},o.prototype.raw=function(e){return this.base.slice(e?e.offset:this.offset,this.length)},t.EncoderBuffer=a,a.prototype.join=function(e,t){return e||(e=new Buffer(this.length)),t||(t=0),0===this.length?e:(Array.isArray(this.value)?this.value.forEach(function(r){r.join(e,t),t+=r.length}):("number"==typeof this.value?e[t]=this.value:"string"==typeof this.value?e.write(this.value,t):Buffer.isBuffer(this.value)&&this.value.copy(e,t),t+=this.length),e)}},function(e,t,r){var n=t;n._reverse=function(e){var t={};return Object.keys(e).forEach(function(r){(0|r)==r&&(r|=0);var n=e[r];t[n]=r}),t},n.der=r(316)},function(e,t,r){var n=r(5),i=r(68),o=i.base,a=i.bignum,s=i.constants.der;function f(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new c,this.tree._init(e.body)}function c(e){o.Node.call(this,"der",e)}function u(e,t){var r=e.readUInt8(t);if(e.isError(r))return r;var n=s.tagClass[r>>6],i=0==(32&r);if(31==(31&r)){var o=r;for(r=0;128==(128&o);){if(o=e.readUInt8(t),e.isError(o))return o;r<<=7,r|=127&o}}else r&=31;return{cls:n,primitive:i,tag:r,tagStr:s.tag[r]}}function h(e,t,r){var n=e.readUInt8(r);if(e.isError(n))return n;if(!t&&128===n)return null;if(0==(128&n))return n;var i=127&n;if(i>4)return e.error("length octect is too long");n=0;for(var o=0;o<i;o++){n<<=8;var a=e.readUInt8(r);if(e.isError(a))return a;n|=a}return n}e.exports=f,f.prototype.decode=function(e,t){return e instanceof o.DecoderBuffer||(e=new o.DecoderBuffer(e,t)),this.tree._decode(e,t)},n(c,o.Node),c.prototype._peekTag=function(e,t,r){if(e.isEmpty())return!1;var n=e.save(),i=u(e,'Failed to peek tag: "'+t+'"');return e.isError(i)?i:(e.restore(n),i.tag===t||i.tagStr===t||i.tagStr+"of"===t||r)},c.prototype._decodeTag=function(e,t,r){var n=u(e,'Failed to decode tag of "'+t+'"');if(e.isError(n))return n;var i=h(e,n.primitive,'Failed to get length of "'+t+'"');if(e.isError(i))return i;if(!r&&n.tag!==t&&n.tagStr!==t&&n.tagStr+"of"!==t)return e.error('Failed to match tag: "'+t+'"');if(n.primitive||null!==i)return e.skip(i,'Failed to match body of: "'+t+'"');var o=e.save(),a=this._skipUntilEnd(e,'Failed to skip indefinite length body: "'+this.tag+'"');return e.isError(a)?a:(i=e.offset-o.offset,e.restore(o),e.skip(i,'Failed to match body of: "'+t+'"'))},c.prototype._skipUntilEnd=function(e,t){for(;;){var r=u(e,t);if(e.isError(r))return r;var n,i=h(e,r.primitive,t);if(e.isError(i))return i;if(n=r.primitive||null!==i?e.skip(i):this._skipUntilEnd(e,t),e.isError(n))return n;if("end"===r.tagStr)break}},c.prototype._decodeList=function(e,t,r,n){for(var i=[];!e.isEmpty();){var o=this._peekTag(e,"end");if(e.isError(o))return o;var a=r.decode(e,"der",n);if(e.isError(a)&&o)break;i.push(a)}return i},c.prototype._decodeStr=function(e,t){if("bitstr"===t){var r=e.readUInt8();return e.isError(r)?r:{unused:r,data:e.raw()}}if("bmpstr"===t){var n=e.raw();if(n.length%2==1)return e.error("Decoding of string type: bmpstr length mismatch");for(var i="",o=0;o<n.length/2;o++)i+=String.fromCharCode(n.readUInt16BE(2*o));return i}if("numstr"===t){var a=e.raw().toString("ascii");return this._isNumstr(a)?a:e.error("Decoding of string type: numstr unsupported characters")}if("octstr"===t)return e.raw();if("objDesc"===t)return e.raw();if("printstr"===t){var s=e.raw().toString("ascii");return this._isPrintstr(s)?s:e.error("Decoding of string type: printstr unsupported characters")}return/str$/.test(t)?e.raw().toString():e.error("Decoding of string type: "+t+" unsupported")},c.prototype._decodeObjid=function(e,t,r){for(var n,i=[],o=0;!e.isEmpty();){var a=e.readUInt8();o<<=7,o|=127&a,0==(128&a)&&(i.push(o),o=0)}128&a&&i.push(o);var s=i[0]/40|0,f=i[0]%40;if(n=r?i:[s,f].concat(i.slice(1)),t){var c=t[n.join(" ")];void 0===c&&(c=t[n.join(".")]),void 0!==c&&(n=c)}return n},c.prototype._decodeTime=function(e,t){var r=e.raw().toString();if("gentime"===t)var n=0|r.slice(0,4),i=0|r.slice(4,6),o=0|r.slice(6,8),a=0|r.slice(8,10),s=0|r.slice(10,12),f=0|r.slice(12,14);else{if("utctime"!==t)return e.error("Decoding "+t+" time is not supported yet");n=0|r.slice(0,2),i=0|r.slice(2,4),o=0|r.slice(4,6),a=0|r.slice(6,8),s=0|r.slice(8,10),f=0|r.slice(10,12);n=n<70?2e3+n:1900+n}return Date.UTC(n,i-1,o,a,s,f,0)},c.prototype._decodeNull=function(e){return null},c.prototype._decodeBool=function(e){var t=e.readUInt8();return e.isError(t)?t:0!==t},c.prototype._decodeInt=function(e,t){var r=e.raw(),n=new a(r);return t&&(n=t[n.toString(10)]||n),n},c.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getDecoder("der").tree}},function(e,t,r){var n=r(5),Buffer=r(3).Buffer,i=r(68),o=i.base,a=i.constants.der;function s(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new f,this.tree._init(e.body)}function f(e){o.Node.call(this,"der",e)}function c(e){return e<10?"0"+e:e}e.exports=s,s.prototype.encode=function(e,t){return this.tree._encode(e,t).join()},n(f,o.Node),f.prototype._encodeComposite=function(e,t,r,n){var i,o=function(e,t,r,n){var i;"seqof"===e?e="seq":"setof"===e&&(e="set");if(a.tagByName.hasOwnProperty(e))i=a.tagByName[e];else{if("number"!=typeof e||(0|e)!==e)return n.error("Unknown tag: "+e);i=e}if(i>=31)return n.error("Multi-octet tag encoding unsupported");t||(i|=32);return i|=a.tagClassByName[r||"universal"]<<6}(e,t,r,this.reporter);if(n.length<128)return(i=new Buffer(2))[0]=o,i[1]=n.length,this._createEncoderBuffer([i,n]);for(var s=1,f=n.length;f>=256;f>>=8)s++;(i=new Buffer(2+s))[0]=o,i[1]=128|s;f=1+s;for(var c=n.length;c>0;f--,c>>=8)i[f]=255&c;return this._createEncoderBuffer([i,n])},f.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===t){for(var r=new Buffer(2*e.length),n=0;n<e.length;n++)r.writeUInt16BE(e.charCodeAt(n),2*n);return this._createEncoderBuffer(r)}return"numstr"===t?this._isNumstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: numstr supports only digits and space"):"printstr"===t?this._isPrintstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(t)?this._createEncoderBuffer(e):"objDesc"===t?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: "+t+" unsupported")},f.prototype._encodeObjid=function(e,t,r){if("string"==typeof e){if(!t)return this.reporter.error("string objid given, but no values map found");if(!t.hasOwnProperty(e))return this.reporter.error("objid not found in values map");e=t[e].split(/[\s\.]+/g);for(var n=0;n<e.length;n++)e[n]|=0}else if(Array.isArray(e)){e=e.slice();for(n=0;n<e.length;n++)e[n]|=0}if(!Array.isArray(e))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(e));if(!r){if(e[1]>=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}var i=0;for(n=0;n<e.length;n++){var o=e[n];for(i++;o>=128;o>>=7)i++}var a=new Buffer(i),s=a.length-1;for(n=e.length-1;n>=0;n--){o=e[n];for(a[s--]=127&o;(o>>=7)>0;)a[s--]=128|127&o}return this._createEncoderBuffer(a)},f.prototype._encodeTime=function(e,t){var r,n=new Date(e);return"gentime"===t?r=[c(n.getFullYear()),c(n.getUTCMonth()+1),c(n.getUTCDate()),c(n.getUTCHours()),c(n.getUTCMinutes()),c(n.getUTCSeconds()),"Z"].join(""):"utctime"===t?r=[c(n.getFullYear()%100),c(n.getUTCMonth()+1),c(n.getUTCDate()),c(n.getUTCHours()),c(n.getUTCMinutes()),c(n.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(r,"octstr")},f.prototype._encodeNull=function(){return this._createEncoderBuffer("")},f.prototype._encodeInt=function(e,t){if("string"==typeof e){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if("number"!=typeof e&&!Buffer.isBuffer(e)){var r=e.toArray();!e.sign&&128&r[0]&&r.unshift(0),e=new Buffer(r)}if(Buffer.isBuffer(e)){var n=e.length;0===e.length&&n++;var i=new Buffer(n);return e.copy(i),0===e.length&&(i[0]=0),this._createEncoderBuffer(i)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);n=1;for(var o=e;o>=256;o>>=8)n++;for(o=(i=new Array(n)).length-1;o>=0;o--)i[o]=255&e,e>>=8;return 128&i[0]&&i.unshift(0),this._createEncoderBuffer(new Buffer(i))},f.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},f.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getEncoder("der").tree},f.prototype._skipDefault=function(e,t,r){var n,i=this._baseState;if(null===i.default)return!1;var o=e.join();if(void 0===i.defaultBuffer&&(i.defaultBuffer=this._encodeValue(i.default,t,r).join()),o.length!==i.defaultBuffer.length)return!1;for(n=0;n<o.length;n++)if(o[n]!==i.defaultBuffer[n])return!1;return!0}},function(e,t){e.exports={"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}},function(e,t,r){(function(Buffer){var t=r(36);function n(e){var t=new Buffer(4);return t.writeUInt32BE(e,0),t}e.exports=function(e,r){for(var i,o=new Buffer(""),a=0;o.length<r;)i=n(a++),o=Buffer.concat([o,t("sha1").update(e).update(i).digest()]);return o.slice(0,r)}}).call(t,r(3).Buffer)},function(e,t){e.exports=function(e,t){for(var r=e.length,n=-1;++n<r;)e[n]^=t[n];return e}},function(e,t,r){(function(Buffer){var t=r(9);e.exports=function(e,r){return new Buffer(e.toRed(t.mont(r.modulus)).redPow(new t(r.publicExponent)).fromRed().toArray())}}).call(t,r(3).Buffer)},function(e,t,r){(function(Buffer){var t="Input must be an string, Buffer or Uint8Array";function r(e){return(4294967296+e).toString(16).substring(1)}e.exports={normalizeInput:function(e){var r;if(e instanceof Uint8Array)r=e;else if(e instanceof Buffer)r=new Uint8Array(e);else{if("string"!=typeof e)throw new Error(t);r=new Uint8Array(Buffer.from(e,"utf8"))}return r},toHex:function(e){return Array.prototype.map.call(e,function(e){return(e<16?"0":"")+e.toString(16)}).join("")},debugPrint:function(e,t,n){for(var i="\n"+e+" = ",o=0;o<t.length;o+=2){if(32===n)i+=r(t[o]).toUpperCase(),i+=" ",i+=r(t[o+1]).toUpperCase();else{if(64!==n)throw new Error("Invalid size "+n);i+=r(t[o+1]).toUpperCase(),i+=r(t[o]).toUpperCase()}o%6==4?i+="\n"+new Array(e.length+4).join(" "):o<t.length-2&&(i+=" ")}console.log(i)},testSpeed:function(e,t,r){for(var n=(new Date).getTime(),i=new Uint8Array(t),o=0;o<t;o++)i[o]=o%256;var a=(new Date).getTime();for(console.log("Generated random input in "+(a-n)+"ms"),n=a,o=0;o<r;o++){var s=e(i),f=(new Date).getTime(),c=f-n;n=f,console.log("Hashed in "+c+"ms: "+s.substring(0,20)+"..."),console.log(Math.round(t/(1<<20)/(c/1e3)*100)/100+" MB PER SECOND")}}}}).call(t,r(3).Buffer)},function(e,t,r){"use strict";var n=r(341),i=r(342);function o(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=g,t.resolve=function(e,t){return g(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?g(e,!1,!0).resolveObject(t):t},t.format=function(e){i.isString(e)&&(e=g(e));return e instanceof o?e.format():o.prototype.format.call(e)},t.Url=o;var a=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,f=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,c=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),u=["'"].concat(c),h=["%","/","?",";","#"].concat(u),d=["/","?","#"],l=/^[+a-z0-9A-Z_-]{0,63}$/,p=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,b={javascript:!0,"javascript:":!0},v={javascript:!0,"javascript:":!0},y={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},m=r(343);function g(e,t,r){if(e&&i.isObject(e)&&e instanceof o)return e;var n=new o;return n.parse(e,t,r),n}o.prototype.parse=function(e,t,r){if(!i.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var o=e.indexOf("?"),s=-1!==o&&o<e.indexOf("#")?"?":"#",c=e.split(s);c[0]=c[0].replace(/\\/g,"/");var g=e=c.join(s);if(g=g.trim(),!r&&1===e.split("#").length){var w=f.exec(g);if(w)return this.path=g,this.href=g,this.pathname=w[1],w[2]?(this.search=w[2],this.query=t?m.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var _=a.exec(g);if(_){var E=(_=_[0]).toLowerCase();this.protocol=E,g=g.substr(_.length)}if(r||_||g.match(/^\/\/[^@\/]+@[^@\/]+/)){var S="//"===g.substr(0,2);!S||_&&v[_]||(g=g.substr(2),this.slashes=!0)}if(!v[_]&&(S||_&&!y[_])){for(var A,I,k=-1,x=0;x<d.length;x++){-1!==(P=g.indexOf(d[x]))&&(-1===k||P<k)&&(k=P)}-1!==(I=-1===k?g.lastIndexOf("@"):g.lastIndexOf("@",k))&&(A=g.slice(0,I),g=g.slice(I+1),this.auth=decodeURIComponent(A)),k=-1;for(x=0;x<h.length;x++){var P;-1!==(P=g.indexOf(h[x]))&&(-1===k||P<k)&&(k=P)}-1===k&&(k=g.length),this.host=g.slice(0,k),g=g.slice(k),this.parseHost(),this.hostname=this.hostname||"";var O="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!O)for(var T=this.hostname.split(/\./),M=(x=0,T.length);x<M;x++){var N=T[x];if(N&&!N.match(l)){for(var B="",C=0,R=N.length;C<R;C++)N.charCodeAt(C)>127?B+="x":B+=N[C];if(!B.match(l)){var L=T.slice(0,x),j=T.slice(x+1),U=N.match(p);U&&(L.push(U[1]),j.unshift(U[2])),j.length&&(g="/"+j.join(".")+g),this.hostname=L.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),O||(this.hostname=n.toASCII(this.hostname));var D=this.port?":"+this.port:"",F=this.hostname||"";this.host=F+D,this.href+=this.host,O&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==g[0]&&(g="/"+g))}if(!b[E])for(x=0,M=u.length;x<M;x++){var z=u[x];if(-1!==g.indexOf(z)){var q=encodeURIComponent(z);q===z&&(q=escape(z)),g=g.split(z).join(q)}}var H=g.indexOf("#");-1!==H&&(this.hash=g.substr(H),g=g.slice(0,H));var K=g.indexOf("?");if(-1!==K?(this.search=g.substr(K),this.query=g.substr(K+1),t&&(this.query=m.parse(this.query)),g=g.slice(0,K)):t&&(this.search="",this.query={}),g&&(this.pathname=g),y[E]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){D=this.pathname||"";var V=this.search||"";this.path=D+V}return this.href=this.format(),this},o.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",r=this.pathname||"",n=this.hash||"",o=!1,a="";this.host?o=e+this.host:this.hostname&&(o=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(o+=":"+this.port)),this.query&&i.isObject(this.query)&&Object.keys(this.query).length&&(a=m.stringify(this.query));var s=this.search||a&&"?"+a||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||y[t])&&!1!==o?(o="//"+(o||""),r&&"/"!==r.charAt(0)&&(r="/"+r)):o||(o=""),n&&"#"!==n.charAt(0)&&(n="#"+n),s&&"?"!==s.charAt(0)&&(s="?"+s),t+o+(r=r.replace(/[?#]/g,function(e){return encodeURIComponent(e)}))+(s=s.replace("#","%23"))+n},o.prototype.resolve=function(e){return this.resolveObject(g(e,!1,!0)).format()},o.prototype.resolveObject=function(e){if(i.isString(e)){var t=new o;t.parse(e,!1,!0),e=t}for(var r=new o,n=Object.keys(this),a=0;a<n.length;a++){var s=n[a];r[s]=this[s]}if(r.hash=e.hash,""===e.href)return r.href=r.format(),r;if(e.slashes&&!e.protocol){for(var f=Object.keys(e),c=0;c<f.length;c++){var u=f[c];"protocol"!==u&&(r[u]=e[u])}return y[r.protocol]&&r.hostname&&!r.pathname&&(r.path=r.pathname="/"),r.href=r.format(),r}if(e.protocol&&e.protocol!==r.protocol){if(!y[e.protocol]){for(var h=Object.keys(e),d=0;d<h.length;d++){var l=h[d];r[l]=e[l]}return r.href=r.format(),r}if(r.protocol=e.protocol,e.host||v[e.protocol])r.pathname=e.pathname;else{for(var p=(e.pathname||"").split("/");p.length&&!(e.host=p.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==p[0]&&p.unshift(""),p.length<2&&p.unshift(""),r.pathname=p.join("/")}if(r.search=e.search,r.query=e.query,r.host=e.host||"",r.auth=e.auth,r.hostname=e.hostname||e.host,r.port=e.port,r.pathname||r.search){var b=r.pathname||"",m=r.search||"";r.path=b+m}return r.slashes=r.slashes||e.slashes,r.href=r.format(),r}var g=r.pathname&&"/"===r.pathname.charAt(0),w=e.host||e.pathname&&"/"===e.pathname.charAt(0),_=w||g||r.host&&e.pathname,E=_,S=r.pathname&&r.pathname.split("/")||[],A=(p=e.pathname&&e.pathname.split("/")||[],r.protocol&&!y[r.protocol]);if(A&&(r.hostname="",r.port=null,r.host&&(""===S[0]?S[0]=r.host:S.unshift(r.host)),r.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===p[0]?p[0]=e.host:p.unshift(e.host)),e.host=null),_=_&&(""===p[0]||""===S[0])),w)r.host=e.host||""===e.host?e.host:r.host,r.hostname=e.hostname||""===e.hostname?e.hostname:r.hostname,r.search=e.search,r.query=e.query,S=p;else if(p.length)S||(S=[]),S.pop(),S=S.concat(p),r.search=e.search,r.query=e.query;else if(!i.isNullOrUndefined(e.search)){if(A)r.hostname=r.host=S.shift(),(O=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=O.shift(),r.host=r.hostname=O.shift());return r.search=e.search,r.query=e.query,i.isNull(r.pathname)&&i.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!S.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var I=S.slice(-1)[0],k=(r.host||e.host||S.length>1)&&("."===I||".."===I)||""===I,x=0,P=S.length;P>=0;P--)"."===(I=S[P])?S.splice(P,1):".."===I?(S.splice(P,1),x++):x&&(S.splice(P,1),x--);if(!_&&!E)for(;x--;x)S.unshift("..");!_||""===S[0]||S[0]&&"/"===S[0].charAt(0)||S.unshift(""),k&&"/"!==S.join("/").substr(-1)&&S.push("");var O,T=""===S[0]||S[0]&&"/"===S[0].charAt(0);A&&(r.hostname=r.host=T?"":S.length?S.shift():"",(O=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=O.shift(),r.host=r.hostname=O.shift()));return(_=_||r.host&&S.length)&&!T&&S.unshift(""),S.length?r.pathname=S.join("/"):(r.pathname=null,r.path=null),i.isNull(r.pathname)&&i.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},o.prototype.parseHost=function(){var e=this.host,t=s.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},function(e,t,r){"use strict";(function(Buffer){const t=r(33),n=r(163),i=r(57),o=r(72),a=(r(105),r(71),r(70)),s=r(51),f=s.MT,c=s.NUMBYTES,u=s.SHIFT32,h=s.SYMS,d=s.TAG,l=s.MT.SIMPLE_FLOAT<<5|s.NUMBYTES.TWO,p=s.MT.SIMPLE_FLOAT<<5|s.NUMBYTES.FOUR,b=s.MT.SIMPLE_FLOAT<<5|s.NUMBYTES.EIGHT,v=s.MT.SIMPLE_FLOAT<<5|s.SIMPLE.TRUE,y=s.MT.SIMPLE_FLOAT<<5|s.SIMPLE.FALSE,m=s.MT.SIMPLE_FLOAT<<5|s.SIMPLE.UNDEFINED,g=s.MT.SIMPLE_FLOAT<<5|s.SIMPLE.NULL,w=new i("0x20000000000000"),_=Buffer.from("f97e00","hex"),E=Buffer.from("f9fc00","hex"),S=Buffer.from("f97c00","hex"),A=Buffer.from("f98000","hex"),I=Symbol("CBOR_LOOP_DETECT");class k extends t.Transform{constructor(e){(e=e||{}).readableObjectMode=!1,e.writableObjectMode=!0,super(e),this.canonical=e.canonical,"symbol"==typeof e.detectLoops?this.detectLoops=e.detectLoops:this.detectLoops=e.detectLoops?Symbol("CBOR_DETECT"):null,this.semanticTypes=[Array,this._pushArray,Date,this._pushDate,Buffer,this._pushBuffer,Map,this._pushMap,o,this._pushNoFilter,RegExp,this._pushRegexp,Set,this._pushSet,n.Url,this._pushUrl,i,this._pushBigNumber];const t=e.genTypes||[];for(let e=0,r=t.length;e<r;e+=2)this.addSemanticType(t[e],t[e+1])}_transform(e,t,r){return r(!1===this.pushAny(e)?new Error("Push Error"):void 0)}_flush(e){return e()}addSemanticType(e,t){for(let r=0,n=this.semanticTypes.length;r<n;r+=2){if(this.semanticTypes[r]===e){const e=this.semanticTypes[r+1];return this.semanticTypes[r+1]=t,e}}return this.semanticTypes.push(e,t),null}_pushUInt8(e){const t=Buffer.alloc(1);return t.writeUInt8(e),this.push(t)}_pushUInt16BE(e){const t=Buffer.alloc(2);return t.writeUInt16BE(e),this.push(t)}_pushUInt32BE(e){const t=Buffer.alloc(4);return t.writeUInt32BE(e),this.push(t)}_pushDoubleBE(e){const t=Buffer.alloc(8);return t.writeDoubleBE(e),this.push(t)}_pushNaN(){return this.push(_)}_pushInfinity(e){const t=e<0?E:S;return this.push(t)}_pushFloat(e){if(this.canonical){const t=Buffer.alloc(2);if(a.writeHalf(t,e)&&a.parseHalf(t)===e)return this._pushUInt8(l)&&this.push(t);const r=Buffer.alloc(4);if(r.writeFloatBE(e),r.readFloatBE(0)===e)return this._pushUInt8(p)&&this.push(r)}return this._pushUInt8(b)&&this._pushDoubleBE(e)}_pushInt(e,t,r){const n=t<<5;switch(!1){case!(e<24):return this._pushUInt8(n|e);case!(e<=255):return this._pushUInt8(n|c.ONE)&&this._pushUInt8(e);case!(e<=65535):return this._pushUInt8(n|c.TWO)&&this._pushUInt16BE(e);case!(e<=4294967295):return this._pushUInt8(n|c.FOUR)&&this._pushUInt32BE(e);case!(e<=Number.MAX_SAFE_INTEGER):return this._pushUInt8(n|c.EIGHT)&&this._pushUInt32BE(Math.floor(e/u))&&this._pushUInt32BE(e%u);default:return t===f.NEG_INT?this._pushFloat(r):this._pushFloat(e)}}_pushIntNum(e){return Object.is(e,-0)?this.push(A):e<0?this._pushInt(-e-1,f.NEG_INT,e):this._pushInt(e,f.POS_INT)}_pushNumber(e){switch(!1){case!isNaN(e):return this._pushNaN(e);case isFinite(e):return this._pushInfinity(e);case Math.round(e)!==e:return this._pushIntNum(e);default:return this._pushFloat(e)}}_pushString(e){const t=Buffer.byteLength(e,"utf8");return this._pushInt(t,f.UTF8_STRING)&&this.push(e,"utf8")}_pushBoolean(e){return this._pushUInt8(e?v:y)}_pushUndefined(e){return this._pushUInt8(m)}_pushNull(e){return this._pushUInt8(g)}_pushArray(e,t){const r=t.length;if(!e._pushInt(r,f.ARRAY))return!1;for(let n=0;n<r;n++)if(!e.pushAny(t[n]))return!1;return!0}_pushTag(e){return this._pushInt(e,f.TAG)}_pushDate(e,t){return e._pushTag(d.DATE_EPOCH)&&e.pushAny(t/1e3)}_pushBuffer(e,t){return e._pushInt(t.length,f.BYTE_STRING)&&e.push(t)}_pushNoFilter(e,t){return e._pushBuffer(e,t.slice())}_pushRegexp(e,t){return e._pushTag(d.REGEXP)&&e.pushAny(t.source)}_pushSet(e,t){if(!e._pushInt(t.size,f.ARRAY))return!1;for(const r of t)if(!e.pushAny(r))return!1;return!0}_pushUrl(e,t){return e._pushTag(d.URI)&&e.pushAny(t.format())}_pushBigint(e){let t=d.POS_BIGINT;e.isNegative()&&(e=e.negated().minus(1),t=d.NEG_BIGINT);let r=e.toString(16);r.length%2&&(r="0"+r);const n=Buffer.from(r,"hex");return this._pushTag(t)&&this._pushBuffer(this,n)}_pushBigNumber(e,t){if(t.isNaN())return e._pushNaN();if(!t.isFinite())return e._pushInfinity(t.isNegative()?-1/0:1/0);if(t.isInteger())return e._pushBigint(t);if(!e._pushTag(d.DECIMAL_FRAC)||!e._pushInt(2,f.ARRAY))return!1;const r=t.decimalPlaces(),n=t.times(new i(10).pow(r));return!!e._pushIntNum(-r)&&(n.abs().isLessThan(w)?e._pushIntNum(n.toNumber()):e._pushBigint(n))}_pushMap(e,t){if(!e._pushInt(t.size,f.MAP))return!1;if(e.canonical){const r=[];for(const e of t.entries())r.push(e);r.sort((e,t)=>{const r=k.encode(e[0]),n=k.encode(t[0]);return r.compare(n)});for(const t of r)if(!e.pushAny(t[0])||!e.pushAny(t[1]))return!1}else for(const r of t)if(!e.pushAny(r[0])||!e.pushAny(r[1]))return!1;return!0}removeLoopDetectors(e){if(!this.detectLoops||"object"!=typeof e||!e)return!1;const t=e[I];if(!t||t!==this.detectLoops)return!1;if(delete e[I],Array.isArray(e))for(const t of e)this.removeLoopDetectors(t);else for(const t in e)this.removeLoopDetectors(e[t]);return!0}_pushObject(e){if(!e)return this._pushNull(e);if(this.detectLoops){if(e[I]===this.detectLoops)throw new Error("Loop detected while CBOR encoding");e[I]=this.detectLoops}const t=e.encodeCBOR;if("function"==typeof t)return t.call(e,this);for(let t=0,r=this.semanticTypes.length;t<r;t+=2){if(e instanceof this.semanticTypes[t])return this.semanticTypes[t+1].call(e,this,e)}const r=Object.keys(e),n={};if(this.canonical&&r.sort((e,t)=>{const r=n[e]||(n[e]=k.encode(e)),i=n[t]||(n[t]=k.encode(t));return r.compare(i)}),!this._pushInt(r.length,f.MAP))return!1;let i;for(let t=0,o=r.length;t<o;t++){const o=r[t];if(this.canonical&&(i=n[o])){if(!this.push(i))return!1}else if(!this._pushString(o))return!1;if(!this.pushAny(e[o]))return!1}return!0}pushAny(e){switch(typeof e){case"number":return this._pushNumber(e);case"string":return this._pushString(e);case"boolean":return this._pushBoolean(e);case"undefined":return this._pushUndefined(e);case"object":return this._pushObject(e);case"symbol":switch(e){case h.NULL:return this._pushNull(null);case h.UNDEFINED:return this._pushUndefined(void 0);default:throw new Error("Unknown symbol: "+e.toString())}default:throw new Error("Unknown type: "+typeof e+", "+(e?e.toString():""))}}_pushAny(e){return this.pushAny(e)}_encodeAll(e){const t=new o;this.pipe(t);for(const t of e)void 0===t?this._pushUndefined():null===t?this._pushNull(null):this.write(t);return this.end(),t.read()}static encode(){const e=Array.prototype.slice.apply(arguments);return(new k)._encodeAll(e)}static encodeCanonical(){const e=Array.prototype.slice.apply(arguments);return new k({canonical:!0})._encodeAll(e)}}e.exports=k}).call(t,r(3).Buffer)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(367);function i(e,t,r){return void 0===t&&(t=new Uint8Array(2)),void 0===r&&(r=0),t[r+0]=e>>>8,t[r+1]=e>>>0,t}function o(e,t,r){return void 0===t&&(t=new Uint8Array(2)),void 0===r&&(r=0),t[r+0]=e>>>0,t[r+1]=e>>>8,t}function a(e,t){return void 0===t&&(t=0),e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]}function s(e,t){return void 0===t&&(t=0),(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}function f(e,t){return void 0===t&&(t=0),e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]}function c(e,t){return void 0===t&&(t=0),(e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t])>>>0}function u(e,t,r){return void 0===t&&(t=new Uint8Array(4)),void 0===r&&(r=0),t[r+0]=e>>>24,t[r+1]=e>>>16,t[r+2]=e>>>8,t[r+3]=e>>>0,t}function h(e,t,r){return void 0===t&&(t=new Uint8Array(4)),void 0===r&&(r=0),t[r+0]=e>>>0,t[r+1]=e>>>8,t[r+2]=e>>>16,t[r+3]=e>>>24,t}function d(e,t,r){return void 0===t&&(t=new Uint8Array(8)),void 0===r&&(r=0),u(e/4294967296>>>0,t,r),u(e>>>0,t,r+4),t}function l(e,t,r){return void 0===t&&(t=new Uint8Array(8)),void 0===r&&(r=0),h(e>>>0,t,r),h(e/4294967296>>>0,t,r+4),t}t.readInt16BE=function(e,t){return void 0===t&&(t=0),(e[t+0]<<8|e[t+1])<<16>>16},t.readUint16BE=function(e,t){return void 0===t&&(t=0),(e[t+0]<<8|e[t+1])>>>0},t.readInt16LE=function(e,t){return void 0===t&&(t=0),(e[t+1]<<8|e[t])<<16>>16},t.readUint16LE=function(e,t){return void 0===t&&(t=0),(e[t+1]<<8|e[t])>>>0},t.writeUint16BE=i,t.writeInt16BE=i,t.writeUint16LE=o,t.writeInt16LE=o,t.readInt32BE=a,t.readUint32BE=s,t.readInt32LE=f,t.readUint32LE=c,t.writeUint32BE=u,t.writeInt32BE=u,t.writeUint32LE=h,t.writeInt32LE=h,t.readInt64BE=function(e,t){void 0===t&&(t=0);var r=a(e,t),n=a(e,t+4),i=4294967296*r+n;return n<0&&(i+=4294967296),i},t.readUint64BE=function(e,t){return void 0===t&&(t=0),4294967296*s(e,t)+s(e,t+4)},t.readInt64LE=function(e,t){void 0===t&&(t=0);var r=f(e,t),n=4294967296*f(e,t+4)+r;return r<0&&(n+=4294967296),n},t.readUint64LE=function(e,t){void 0===t&&(t=0);var r=c(e,t);return 4294967296*c(e,t+4)+r},t.writeUint64BE=d,t.writeInt64BE=d,t.writeUint64LE=l,t.writeInt64LE=l,t.readUintBE=function(e,t,r){if(void 0===r&&(r=0),e%8!=0)throw new Error("readUintBE supports only bitLengths divisible by 8");if(e/8>t.length-r)throw new Error("readUintBE: array is too short for the given bitLength");for(var n=0,i=1,o=e/8+r-1;o>=r;o--)n+=t[o]*i,i*=256;return n},t.readUintLE=function(e,t,r){if(void 0===r&&(r=0),e%8!=0)throw new Error("readUintLE supports only bitLengths divisible by 8");if(e/8>t.length-r)throw new Error("readUintLE: array is too short for the given bitLength");for(var n=0,i=1,o=r;o<r+e/8;o++)n+=t[o]*i,i*=256;return n},t.writeUintBE=function(e,t,r,i){if(void 0===r&&(r=new Uint8Array(e/8)),void 0===i&&(i=0),e%8!=0)throw new Error("writeUintBE supports only bitLengths divisible by 8");if(!n.isSafeInteger(t))throw new Error("writeUintBE value must be an integer");for(var o=1,a=e/8+i-1;a>=i;a--)r[a]=t/o&255,o*=256;return r},t.writeUintLE=function(e,t,r,i){if(void 0===r&&(r=new Uint8Array(e/8)),void 0===i&&(i=0),e%8!=0)throw new Error("writeUintLE supports only bitLengths divisible by 8");if(!n.isSafeInteger(t))throw new Error("writeUintLE value must be an integer");for(var o=1,a=i;a<i+e/8;a++)r[a]=t/o&255,o*=256;return r},t.readFloat32BE=function(e,t){return void 0===t&&(t=0),new DataView(e.buffer,e.byteOffset,e.byteLength).getFloat32(t)},t.readFloat32LE=function(e,t){return void 0===t&&(t=0),new DataView(e.buffer,e.byteOffset,e.byteLength).getFloat32(t,!0)},t.readFloat64BE=function(e,t){return void 0===t&&(t=0),new DataView(e.buffer,e.byteOffset,e.byteLength).getFloat64(t)},t.readFloat64LE=function(e,t){return void 0===t&&(t=0),new DataView(e.buffer,e.byteOffset,e.byteLength).getFloat64(t,!0)},t.writeFloat32BE=function(e,t,r){return void 0===t&&(t=new Uint8Array(4)),void 0===r&&(r=0),new DataView(t.buffer,t.byteOffset,t.byteLength).setFloat32(r,e),t},t.writeFloat32LE=function(e,t,r){return void 0===t&&(t=new Uint8Array(4)),void 0===r&&(r=0),new DataView(t.buffer,t.byteOffset,t.byteLength).setFloat32(r,e,!0),t},t.writeFloat64BE=function(e,t,r){return void 0===t&&(t=new Uint8Array(8)),void 0===r&&(r=0),new DataView(t.buffer,t.byteOffset,t.byteLength).setFloat64(r,e),t},t.writeFloat64LE=function(e,t,r){return void 0===t&&(t=new Uint8Array(8)),void 0===r&&(r=0),new DataView(t.buffer,t.byteOffset,t.byteLength).setFloat64(r,e,!0),t}},function(e,t,r){"use strict";function n(e,t){if(e.length!==t.length)return 0;for(var r=0,n=0;n<e.length;n++)r|=e[n]^t[n];return 1&r-1>>>8}Object.defineProperty(t,"__esModule",{value:!0}),t.select=function(e,t,r){return~(e-1)&t|e-1&r},t.lessOrEqual=function(e,t){return(0|e)-(0|t)-1>>>31&1},t.compare=n,t.equal=function(e,t){return 0!==e.length&&0!==t.length&&0!==n(e,t)}},function(e,t,r){var n=r(371);e.exports=n("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz")},,,,function(e,t,r){"use strict";e.exports=r(373)(r(376))},function(e,t){e.exports={COMPRESSED_TYPE_INVALID:"compressed should be a boolean",EC_PRIVATE_KEY_TYPE_INVALID:"private key should be a Buffer",EC_PRIVATE_KEY_LENGTH_INVALID:"private key length is invalid",EC_PRIVATE_KEY_RANGE_INVALID:"private key range is invalid",EC_PRIVATE_KEY_TWEAK_ADD_FAIL:"tweak out of range or resulting private key is invalid",EC_PRIVATE_KEY_TWEAK_MUL_FAIL:"tweak out of range",EC_PRIVATE_KEY_EXPORT_DER_FAIL:"couldn't export to DER format",EC_PRIVATE_KEY_IMPORT_DER_FAIL:"couldn't import from DER format",EC_PUBLIC_KEYS_TYPE_INVALID:"public keys should be an Array",EC_PUBLIC_KEYS_LENGTH_INVALID:"public keys Array should have at least 1 element",EC_PUBLIC_KEY_TYPE_INVALID:"public key should be a Buffer",EC_PUBLIC_KEY_LENGTH_INVALID:"public key length is invalid",EC_PUBLIC_KEY_PARSE_FAIL:"the public key could not be parsed or is invalid",EC_PUBLIC_KEY_CREATE_FAIL:"private was invalid, try again",EC_PUBLIC_KEY_TWEAK_ADD_FAIL:"tweak out of range or resulting public key is invalid",EC_PUBLIC_KEY_TWEAK_MUL_FAIL:"tweak out of range",EC_PUBLIC_KEY_COMBINE_FAIL:"the sum of the public keys is not valid",ECDH_FAIL:"scalar was invalid (zero or overflow)",ECDSA_SIGNATURE_TYPE_INVALID:"signature should be a Buffer",ECDSA_SIGNATURE_LENGTH_INVALID:"signature length is invalid",ECDSA_SIGNATURE_PARSE_FAIL:"couldn't parse signature",ECDSA_SIGNATURE_PARSE_DER_FAIL:"couldn't parse DER signature",ECDSA_SIGNATURE_SERIALIZE_DER_FAIL:"couldn't serialize signature to DER format",ECDSA_SIGN_FAIL:"nonce generation function failed or private key is invalid",ECDSA_RECOVER_FAIL:"couldn't recover public key from signature",MSG32_TYPE_INVALID:"message should be a Buffer",MSG32_LENGTH_INVALID:"message length is invalid",OPTIONS_TYPE_INVALID:"options should be an Object",OPTIONS_DATA_TYPE_INVALID:"options.data should be a Buffer",OPTIONS_DATA_LENGTH_INVALID:"options.data length is invalid",OPTIONS_NONCEFN_TYPE_INVALID:"options.noncefn should be a Function",RECOVERY_ID_TYPE_INVALID:"recovery should be a Number",RECOVERY_ID_VALUE_INVALID:"recovery should have value between -1 and 4",TWEAK_TYPE_INVALID:"tweak should be a Buffer",TWEAK_LENGTH_INVALID:"tweak length is invalid"}},function(e,t){e.exports=function(e){if("string"!=typeof e)throw new Error("[is-hex-prefixed] value must be type 'string', is currently type "+typeof e+", while checking isHexPrefixed.");return"0x"===e.slice(0,2)}},function(e,t,r){var n=r(26);function i(e){return e<n.OP_PUSHDATA1?1:e<=255?2:e<=65535?3:5}e.exports={encodingLength:i,encode:function(e,t,r){var o=i(t);return 1===o?e.writeUInt8(t,r):2===o?(e.writeUInt8(n.OP_PUSHDATA1,r),e.writeUInt8(t,r+1)):3===o?(e.writeUInt8(n.OP_PUSHDATA2,r),e.writeUInt16LE(t,r+1)):(e.writeUInt8(n.OP_PUSHDATA4,r),e.writeUInt32LE(t,r+1)),o},decode:function(e,t){var r,i,o=e.readUInt8(t);if(o<n.OP_PUSHDATA1)r=o,i=1;else if(o===n.OP_PUSHDATA1){if(t+2>e.length)return null;r=e.readUInt8(t+1),i=2}else if(o===n.OP_PUSHDATA2){if(t+3>e.length)return null;r=e.readUInt16LE(t+1),i=3}else{if(t+5>e.length)return null;if(o!==n.OP_PUSHDATA4)throw new Error("Unexpected opcode");r=e.readUInt32LE(t+1),i=5}return{opcode:o,number:r,size:i}}}},function(e,t,r){var n=r(108);function i(e){return e.name||e.toString().match(/function (.*?)\s*\(/)[1]}function o(e){return n.Nil(e)?"":i(e.constructor)}function a(e){return n.Function(e)?e.toJSON?e.toJSON():i(e):n.Array(e)?"Array":e&&n.Object(e)?"Object":void 0!==e?e:""}function s(e,t,r){var i=function(e){return n.Function(e)?"":n.String(e)?JSON.stringify(e):e&&n.Object(e)?"":e}(t);return"Expected "+a(e)+", got"+(""!==r?" "+r:"")+(""!==i?" "+i:"")}function f(e,t,r){r=r||o(t),this.message=s(e,t,r),Error.captureStackTrace(this,f),this.__type=e,this.__value=t,this.__valueTypeName=r}function c(e,t,r,n,i){e?(i=i||o(n),this.message=function(e,t,r,n,i){var o='" of type ';return"key"===t&&(o='" with key type '),s('property "'+a(r)+o+a(e),n,i)}(e,r,t,n,i)):this.message='Unexpected property "'+t+'"',Error.captureStackTrace(this,f),this.__label=r,this.__property=t,this.__type=e,this.__value=n,this.__valueTypeName=i}f.prototype=Object.create(Error.prototype),f.prototype.constructor=f,c.prototype=Object.create(Error.prototype),c.prototype.constructor=f,e.exports={TfTypeError:f,TfPropertyTypeError:c,tfCustomError:function(e,t){return new f(e,{},t)},tfSubError:function(e,t,r){return e instanceof c?(t=t+"."+e.__property,e=new c(e.__type,t,e.__label,e.__value,e.__valueTypeName)):e instanceof f&&(e=new c(e.__type,t,r,e.__value,e.__valueTypeName)),Error.captureStackTrace(e),e},tfJSON:a,getValueTypeName:o}},function(e,t,r){var Buffer=r(4).Buffer;e.exports={decode:function(e,t,r){t=t||4,r=void 0===r||r;var n=e.length;if(0===n)return 0;if(n>t)throw new TypeError("Script number overflow");if(r&&0==(127&e[n-1])&&(n<=1||0==(128&e[n-2])))throw new Error("Non-minimally encoded script number");if(5===n){var i=e.readUInt32LE(0),o=e.readUInt8(4);return 128&o?-(4294967296*(-129&o)+i):4294967296*o+i}for(var a=0,s=0;s<n;++s)a|=e[s]<<8*s;return 128&e[n-1]?-(a&~(128<<8*(n-1))):a},encode:function(e){for(var t=Math.abs(e),r=function(e){return e>2147483647?5:e>8388607?4:e>32767?3:e>127?2:e>0?1:0}(t),n=Buffer.allocUnsafe(r),i=e<0,o=0;o<r;++o)n.writeUInt8(255&t,o),t>>=8;return 128&n[r-1]?n.writeUInt8(i?128:0,r-1):i&&(n[r-1]|=128),n}}},function(e,t,r){var n=r(17),i=r(19),o=r(14),a=r(26),s=a.OP_RESERVED;function f(e,t){var r=n.decompile(e);if(r.length<4)return!1;if(r[r.length-1]!==a.OP_CHECKMULTISIG)return!1;if(!i.Number(r[0]))return!1;if(!i.Number(r[r.length-2]))return!1;var o=r[0]-s,f=r[r.length-2]-s;return!(o<=0)&&(!(f>16)&&(!(o>f)&&(f===r.length-3&&(!!t||r.slice(1,-2).every(n.isCanonicalPubKey)))))}f.toJSON=function(){return"multi-sig output"},e.exports={check:f,decode:function(e,t){var r=n.decompile(e);return o(f,r,t),{m:r[0]-s,pubKeys:r.slice(1,-2)}},encode:function(e,t){o({m:i.Number,pubKeys:[n.isCanonicalPubKey]},{m:e,pubKeys:t});var r=t.length;if(r<e)throw new TypeError("Not enough pubKeys provided");return n.compile([].concat(s+e,t,s+r,a.OP_CHECKMULTISIG))}}},function(e,t,r){var n=r(17),i=r(19),o=r(14),a=r(26);function s(e){var t=n.compile(e);return 22===t.length&&t[0]===a.OP_0&&20===t[1]}s.toJSON=function(){return"Witness pubKeyHash output"},e.exports={check:s,decode:function(e){return o(s,e),e.slice(2)},encode:function(e){return o(i.Hash160bit,e),n.compile([a.OP_0,e])}}},function(e,t,r){var n=r(17),i=r(19),o=r(14),a=r(26);function s(e){var t=n.compile(e);return 34===t.length&&t[0]===a.OP_0&&32===t[1]}s.toJSON=function(){return"Witness scriptHash output"},e.exports={check:s,decode:function(e){return o(s,e),e.slice(2)},encode:function(e){return o(i.Hash256bit,e),n.compile([a.OP_0,e])}}},function(e,t,r){var n=r(174),i=r(113);function o(e,t){if("number"!=typeof e)throw new Error("cannot write a non-number as a number");if(e<0)throw new Error("specified a negative value for writing an unsigned value");if(e>t)throw new Error("RangeError: value out of range");if(Math.floor(e)!==e)throw new Error("value has a fractional component")}e.exports={pushDataSize:n.encodingLength,readPushDataInt:n.decode,readUInt64LE:function(e,t){var r=e.readUInt32LE(t),n=e.readUInt32LE(t+4);return o((n*=4294967296)+r,9007199254740991),n+r},readVarInt:function(e,t){return{number:i.decode(e,t),size:i.decode.bytes}},varIntBuffer:i.encode,varIntSize:i.encodingLength,writePushDataInt:n.encode,writeUInt64LE:function(e,t,r){return o(t,9007199254740991),e.writeInt32LE(-1&t,r),e.writeUInt32LE(Math.floor(t/4294967296),r+4),r+8},writeVarInt:function(e,t,r){return i.encode(t,e,r),i.encode.bytes}}},function(e,t,r){function BigInteger(e,t,r){if(!(this instanceof BigInteger))return new BigInteger(e,t,r);null!=e&&("number"==typeof e?this.fromNumber(e,t,r):null==t&&"string"!=typeof e?this.fromString(e,256):this.fromString(e,t))}var n=BigInteger.prototype;n.__bigi=r(410).version,BigInteger.isBigInteger=function(e,t){return e&&e.__bigi&&(!t||e.__bigi===n.__bigi)},BigInteger.prototype.am=function(e,t,r,n,i,o){for(;--o>=0;){var a=t*this[e++]+r[n]+i;i=Math.floor(a/67108864),r[n++]=67108863&a}return i},BigInteger.prototype.DB=26,BigInteger.prototype.DM=67108863;var i=BigInteger.prototype.DV=1<<26;BigInteger.prototype.FV=Math.pow(2,52),BigInteger.prototype.F1=26,BigInteger.prototype.F2=0;var o,a,s="0123456789abcdefghijklmnopqrstuvwxyz",f=new Array;for(o="0".charCodeAt(0),a=0;a<=9;++a)f[o++]=a;for(o="a".charCodeAt(0),a=10;a<36;++a)f[o++]=a;for(o="A".charCodeAt(0),a=10;a<36;++a)f[o++]=a;function c(e){return s.charAt(e)}function u(e,t){var r=f[e.charCodeAt(t)];return null==r?-1:r}function h(e){var t=new BigInteger;return t.fromInt(e),t}function d(e){var t,r=1;return 0!=(t=e>>>16)&&(e=t,r+=16),0!=(t=e>>8)&&(e=t,r+=8),0!=(t=e>>4)&&(e=t,r+=4),0!=(t=e>>2)&&(e=t,r+=2),0!=(t=e>>1)&&(e=t,r+=1),r}function l(e){this.m=e}function p(e){this.m=e,this.mp=e.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<e.DB-15)-1,this.mt2=2*e.t}function b(e,t){return e&t}function v(e,t){return e|t}function y(e,t){return e^t}function m(e,t){return e&~t}function g(e){if(0==e)return-1;var t=0;return 0==(65535&e)&&(e>>=16,t+=16),0==(255&e)&&(e>>=8,t+=8),0==(15&e)&&(e>>=4,t+=4),0==(3&e)&&(e>>=2,t+=2),0==(1&e)&&++t,t}function w(e){for(var t=0;0!=e;)e&=e-1,++t;return t}function _(){}function E(e){return e}function S(e){this.r2=new BigInteger,this.q3=new BigInteger,BigInteger.ONE.dlShiftTo(2*e.t,this.r2),this.mu=this.r2.divide(e),this.m=e}l.prototype.convert=function(e){return e.s<0||e.compareTo(this.m)>=0?e.mod(this.m):e},l.prototype.revert=function(e){return e},l.prototype.reduce=function(e){e.divRemTo(this.m,null,e)},l.prototype.mulTo=function(e,t,r){e.multiplyTo(t,r),this.reduce(r)},l.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},p.prototype.convert=function(e){var t=new BigInteger;return e.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),e.s<0&&t.compareTo(BigInteger.ZERO)>0&&this.m.subTo(t,t),t},p.prototype.revert=function(e){var t=new BigInteger;return e.copyTo(t),this.reduce(t),t},p.prototype.reduce=function(e){for(;e.t<=this.mt2;)e[e.t++]=0;for(var t=0;t<this.m.t;++t){var r=32767&e[t],n=r*this.mpl+((r*this.mph+(e[t]>>15)*this.mpl&this.um)<<15)&e.DM;for(e[r=t+this.m.t]+=this.m.am(0,n,e,t,0,this.m.t);e[r]>=e.DV;)e[r]-=e.DV,e[++r]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)},p.prototype.mulTo=function(e,t,r){e.multiplyTo(t,r),this.reduce(r)},p.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},n.copyTo=function(e){for(var t=this.t-1;t>=0;--t)e[t]=this[t];e.t=this.t,e.s=this.s},n.fromInt=function(e){this.t=1,this.s=e<0?-1:0,e>0?this[0]=e:e<-1?this[0]=e+i:this.t=0},n.fromString=function(e,t){var r;if(16==t)r=4;else if(8==t)r=3;else if(256==t)r=8;else if(2==t)r=1;else if(32==t)r=5;else{if(4!=t)return void this.fromRadix(e,t);r=2}this.t=0,this.s=0;for(var n=e.length,i=!1,o=0;--n>=0;){var a=8==r?255&e[n]:u(e,n);a<0?"-"==e.charAt(n)&&(i=!0):(i=!1,0==o?this[this.t++]=a:o+r>this.DB?(this[this.t-1]|=(a&(1<<this.DB-o)-1)<<o,this[this.t++]=a>>this.DB-o):this[this.t-1]|=a<<o,(o+=r)>=this.DB&&(o-=this.DB))}8==r&&0!=(128&e[0])&&(this.s=-1,o>0&&(this[this.t-1]|=(1<<this.DB-o)-1<<o)),this.clamp(),i&&BigInteger.ZERO.subTo(this,this)},n.clamp=function(){for(var e=this.s&this.DM;this.t>0&&this[this.t-1]==e;)--this.t},n.dlShiftTo=function(e,t){var r;for(r=this.t-1;r>=0;--r)t[r+e]=this[r];for(r=e-1;r>=0;--r)t[r]=0;t.t=this.t+e,t.s=this.s},n.drShiftTo=function(e,t){for(var r=e;r<this.t;++r)t[r-e]=this[r];t.t=Math.max(this.t-e,0),t.s=this.s},n.lShiftTo=function(e,t){var r,n=e%this.DB,i=this.DB-n,o=(1<<i)-1,a=Math.floor(e/this.DB),s=this.s<<n&this.DM;for(r=this.t-1;r>=0;--r)t[r+a+1]=this[r]>>i|s,s=(this[r]&o)<<n;for(r=a-1;r>=0;--r)t[r]=0;t[a]=s,t.t=this.t+a+1,t.s=this.s,t.clamp()},n.rShiftTo=function(e,t){t.s=this.s;var r=Math.floor(e/this.DB);if(r>=this.t)t.t=0;else{var n=e%this.DB,i=this.DB-n,o=(1<<n)-1;t[0]=this[r]>>n;for(var a=r+1;a<this.t;++a)t[a-r-1]|=(this[a]&o)<<i,t[a-r]=this[a]>>n;n>0&&(t[this.t-r-1]|=(this.s&o)<<i),t.t=this.t-r,t.clamp()}},n.subTo=function(e,t){for(var r=0,n=0,i=Math.min(e.t,this.t);r<i;)n+=this[r]-e[r],t[r++]=n&this.DM,n>>=this.DB;if(e.t<this.t){for(n-=e.s;r<this.t;)n+=this[r],t[r++]=n&this.DM,n>>=this.DB;n+=this.s}else{for(n+=this.s;r<e.t;)n-=e[r],t[r++]=n&this.DM,n>>=this.DB;n-=e.s}t.s=n<0?-1:0,n<-1?t[r++]=this.DV+n:n>0&&(t[r++]=n),t.t=r,t.clamp()},n.multiplyTo=function(e,t){var r=this.abs(),n=e.abs(),i=r.t;for(t.t=i+n.t;--i>=0;)t[i]=0;for(i=0;i<n.t;++i)t[i+r.t]=r.am(0,n[i],t,i,0,r.t);t.s=0,t.clamp(),this.s!=e.s&&BigInteger.ZERO.subTo(t,t)},n.squareTo=function(e){for(var t=this.abs(),r=e.t=2*t.t;--r>=0;)e[r]=0;for(r=0;r<t.t-1;++r){var n=t.am(r,t[r],e,2*r,0,1);(e[r+t.t]+=t.am(r+1,2*t[r],e,2*r+1,n,t.t-r-1))>=t.DV&&(e[r+t.t]-=t.DV,e[r+t.t+1]=1)}e.t>0&&(e[e.t-1]+=t.am(r,t[r],e,2*r,0,1)),e.s=0,e.clamp()},n.divRemTo=function(e,t,r){var n=e.abs();if(!(n.t<=0)){var i=this.abs();if(i.t<n.t)return null!=t&&t.fromInt(0),void(null!=r&&this.copyTo(r));null==r&&(r=new BigInteger);var o=new BigInteger,a=this.s,s=e.s,f=this.DB-d(n[n.t-1]);f>0?(n.lShiftTo(f,o),i.lShiftTo(f,r)):(n.copyTo(o),i.copyTo(r));var c=o.t,u=o[c-1];if(0!=u){var h=u*(1<<this.F1)+(c>1?o[c-2]>>this.F2:0),l=this.FV/h,p=(1<<this.F1)/h,b=1<<this.F2,v=r.t,y=v-c,m=null==t?new BigInteger:t;for(o.dlShiftTo(y,m),r.compareTo(m)>=0&&(r[r.t++]=1,r.subTo(m,r)),BigInteger.ONE.dlShiftTo(c,m),m.subTo(o,o);o.t<c;)o[o.t++]=0;for(;--y>=0;){var g=r[--v]==u?this.DM:Math.floor(r[v]*l+(r[v-1]+b)*p);if((r[v]+=o.am(0,g,r,y,0,c))<g)for(o.dlShiftTo(y,m),r.subTo(m,r);r[v]<--g;)r.subTo(m,r)}null!=t&&(r.drShiftTo(c,t),a!=s&&BigInteger.ZERO.subTo(t,t)),r.t=c,r.clamp(),f>0&&r.rShiftTo(f,r),a<0&&BigInteger.ZERO.subTo(r,r)}}},n.invDigit=function(){if(this.t<1)return 0;var e=this[0];if(0==(1&e))return 0;var t=3&e;return(t=(t=(t=(t=t*(2-(15&e)*t)&15)*(2-(255&e)*t)&255)*(2-((65535&e)*t&65535))&65535)*(2-e*t%this.DV)%this.DV)>0?this.DV-t:-t},n.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},n.exp=function(e,t){if(e>4294967295||e<1)return BigInteger.ONE;var r=new BigInteger,n=new BigInteger,i=t.convert(this),o=d(e)-1;for(i.copyTo(r);--o>=0;)if(t.sqrTo(r,n),(e&1<<o)>0)t.mulTo(n,i,r);else{var a=r;r=n,n=a}return t.revert(r)},n.toString=function(e){var t;if(this.s<0)return"-"+this.negate().toString(e);if(16==e)t=4;else if(8==e)t=3;else if(2==e)t=1;else if(32==e)t=5;else{if(4!=e)return this.toRadix(e);t=2}var r,n=(1<<t)-1,i=!1,o="",a=this.t,s=this.DB-a*this.DB%t;if(a-- >0)for(s<this.DB&&(r=this[a]>>s)>0&&(i=!0,o=c(r));a>=0;)s<t?(r=(this[a]&(1<<s)-1)<<t-s,r|=this[--a]>>(s+=this.DB-t)):(r=this[a]>>(s-=t)&n,s<=0&&(s+=this.DB,--a)),r>0&&(i=!0),i&&(o+=c(r));return i?o:"0"},n.negate=function(){var e=new BigInteger;return BigInteger.ZERO.subTo(this,e),e},n.abs=function(){return this.s<0?this.negate():this},n.compareTo=function(e){var t=this.s-e.s;if(0!=t)return t;var r=this.t;if(0!=(t=r-e.t))return this.s<0?-t:t;for(;--r>=0;)if(0!=(t=this[r]-e[r]))return t;return 0},n.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+d(this[this.t-1]^this.s&this.DM)},n.byteLength=function(){return this.bitLength()>>3},n.mod=function(e){var t=new BigInteger;return this.abs().divRemTo(e,null,t),this.s<0&&t.compareTo(BigInteger.ZERO)>0&&e.subTo(t,t),t},n.modPowInt=function(e,t){var r;return r=e<256||t.isEven()?new l(t):new p(t),this.exp(e,r)},_.prototype.convert=E,_.prototype.revert=E,_.prototype.mulTo=function(e,t,r){e.multiplyTo(t,r)},_.prototype.sqrTo=function(e,t){e.squareTo(t)},S.prototype.convert=function(e){if(e.s<0||e.t>2*this.m.t)return e.mod(this.m);if(e.compareTo(this.m)<0)return e;var t=new BigInteger;return e.copyTo(t),this.reduce(t),t},S.prototype.revert=function(e){return e},S.prototype.reduce=function(e){for(e.drShiftTo(this.m.t-1,this.r2),e.t>this.m.t+1&&(e.t=this.m.t+1,e.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);e.compareTo(this.r2)<0;)e.dAddOffset(1,this.m.t+1);for(e.subTo(this.r2,e);e.compareTo(this.m)>=0;)e.subTo(this.m,e)},S.prototype.mulTo=function(e,t,r){e.multiplyTo(t,r),this.reduce(r)},S.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)};var A=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],I=(1<<26)/A[A.length-1];n.chunkSize=function(e){return Math.floor(Math.LN2*this.DB/Math.log(e))},n.toRadix=function(e){if(null==e&&(e=10),0==this.signum()||e<2||e>36)return"0";var t=this.chunkSize(e),r=Math.pow(e,t),n=h(r),i=new BigInteger,o=new BigInteger,a="";for(this.divRemTo(n,i,o);i.signum()>0;)a=(r+o.intValue()).toString(e).substr(1)+a,i.divRemTo(n,i,o);return o.intValue().toString(e)+a},n.fromRadix=function(e,t){this.fromInt(0),null==t&&(t=10);for(var r=this.chunkSize(t),n=Math.pow(t,r),i=!1,o=0,a=0,s=0;s<e.length;++s){var f=u(e,s);f<0?"-"==e.charAt(s)&&0==this.signum()&&(i=!0):(a=t*a+f,++o>=r&&(this.dMultiply(n),this.dAddOffset(a,0),o=0,a=0))}o>0&&(this.dMultiply(Math.pow(t,o)),this.dAddOffset(a,0)),i&&BigInteger.ZERO.subTo(this,this)},n.fromNumber=function(e,t,r){if("number"==typeof t)if(e<2)this.fromInt(1);else for(this.fromNumber(e,r),this.testBit(e-1)||this.bitwiseTo(BigInteger.ONE.shiftLeft(e-1),v,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(t);)this.dAddOffset(2,0),this.bitLength()>e&&this.subTo(BigInteger.ONE.shiftLeft(e-1),this);else{var n=new Array,i=7&e;n.length=1+(e>>3),t.nextBytes(n),i>0?n[0]&=(1<<i)-1:n[0]=0,this.fromString(n,256)}},n.bitwiseTo=function(e,t,r){var n,i,o=Math.min(e.t,this.t);for(n=0;n<o;++n)r[n]=t(this[n],e[n]);if(e.t<this.t){for(i=e.s&this.DM,n=o;n<this.t;++n)r[n]=t(this[n],i);r.t=this.t}else{for(i=this.s&this.DM,n=o;n<e.t;++n)r[n]=t(i,e[n]);r.t=e.t}r.s=t(this.s,e.s),r.clamp()},n.changeBit=function(e,t){var r=BigInteger.ONE.shiftLeft(e);return this.bitwiseTo(r,t,r),r},n.addTo=function(e,t){for(var r=0,n=0,i=Math.min(e.t,this.t);r<i;)n+=this[r]+e[r],t[r++]=n&this.DM,n>>=this.DB;if(e.t<this.t){for(n+=e.s;r<this.t;)n+=this[r],t[r++]=n&this.DM,n>>=this.DB;n+=this.s}else{for(n+=this.s;r<e.t;)n+=e[r],t[r++]=n&this.DM,n>>=this.DB;n+=e.s}t.s=n<0?-1:0,n>0?t[r++]=n:n<-1&&(t[r++]=this.DV+n),t.t=r,t.clamp()},n.dMultiply=function(e){this[this.t]=this.am(0,e-1,this,0,0,this.t),++this.t,this.clamp()},n.dAddOffset=function(e,t){if(0!=e){for(;this.t<=t;)this[this.t++]=0;for(this[t]+=e;this[t]>=this.DV;)this[t]-=this.DV,++t>=this.t&&(this[this.t++]=0),++this[t]}},n.multiplyLowerTo=function(e,t,r){var n,i=Math.min(this.t+e.t,t);for(r.s=0,r.t=i;i>0;)r[--i]=0;for(n=r.t-this.t;i<n;++i)r[i+this.t]=this.am(0,e[i],r,i,0,this.t);for(n=Math.min(e.t,t);i<n;++i)this.am(0,e[i],r,i,0,t-i);r.clamp()},n.multiplyUpperTo=function(e,t,r){--t;var n=r.t=this.t+e.t-t;for(r.s=0;--n>=0;)r[n]=0;for(n=Math.max(t-this.t,0);n<e.t;++n)r[this.t+n-t]=this.am(t-n,e[n],r,0,0,this.t+n-t);r.clamp(),r.drShiftTo(1,r)},n.modInt=function(e){if(e<=0)return 0;var t=this.DV%e,r=this.s<0?e-1:0;if(this.t>0)if(0==t)r=this[0]%e;else for(var n=this.t-1;n>=0;--n)r=(t*r+this[n])%e;return r},n.millerRabin=function(e){var t=this.subtract(BigInteger.ONE),r=t.getLowestSetBit();if(r<=0)return!1;var n=t.shiftRight(r);(e=e+1>>1)>A.length&&(e=A.length);for(var i=new BigInteger(null),o=[],a=0;a<e;++a){for(;f=A[Math.floor(Math.random()*A.length)],-1!=o.indexOf(f););o.push(f),i.fromInt(f);var s=i.modPow(n,this);if(0!=s.compareTo(BigInteger.ONE)&&0!=s.compareTo(t)){for(var f=1;f++<r&&0!=s.compareTo(t);)if(0==(s=s.modPowInt(2,this)).compareTo(BigInteger.ONE))return!1;if(0!=s.compareTo(t))return!1}}return!0},n.clone=function(){var e=new BigInteger;return this.copyTo(e),e},n.intValue=function(){if(this.s<0){if(1==this.t)return this[0]-this.DV;if(0==this.t)return-1}else{if(1==this.t)return this[0];if(0==this.t)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},n.byteValue=function(){return 0==this.t?this.s:this[0]<<24>>24},n.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},n.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},n.toByteArray=function(){var e=this.t,t=new Array;t[0]=this.s;var r,n=this.DB-e*this.DB%8,i=0;if(e-- >0)for(n<this.DB&&(r=this[e]>>n)!=(this.s&this.DM)>>n&&(t[i++]=r|this.s<<this.DB-n);e>=0;)n<8?(r=(this[e]&(1<<n)-1)<<8-n,r|=this[--e]>>(n+=this.DB-8)):(r=this[e]>>(n-=8)&255,n<=0&&(n+=this.DB,--e)),0!=(128&r)&&(r|=-256),0===i&&(128&this.s)!=(128&r)&&++i,(i>0||r!=this.s)&&(t[i++]=r);return t},n.equals=function(e){return 0==this.compareTo(e)},n.min=function(e){return this.compareTo(e)<0?this:e},n.max=function(e){return this.compareTo(e)>0?this:e},n.and=function(e){var t=new BigInteger;return this.bitwiseTo(e,b,t),t},n.or=function(e){var t=new BigInteger;return this.bitwiseTo(e,v,t),t},n.xor=function(e){var t=new BigInteger;return this.bitwiseTo(e,y,t),t},n.andNot=function(e){var t=new BigInteger;return this.bitwiseTo(e,m,t),t},n.not=function(){for(var e=new BigInteger,t=0;t<this.t;++t)e[t]=this.DM&~this[t];return e.t=this.t,e.s=~this.s,e},n.shiftLeft=function(e){var t=new BigInteger;return e<0?this.rShiftTo(-e,t):this.lShiftTo(e,t),t},n.shiftRight=function(e){var t=new BigInteger;return e<0?this.lShiftTo(-e,t):this.rShiftTo(e,t),t},n.getLowestSetBit=function(){for(var e=0;e<this.t;++e)if(0!=this[e])return e*this.DB+g(this[e]);return this.s<0?this.t*this.DB:-1},n.bitCount=function(){for(var e=0,t=this.s&this.DM,r=0;r<this.t;++r)e+=w(this[r]^t);return e},n.testBit=function(e){var t=Math.floor(e/this.DB);return t>=this.t?0!=this.s:0!=(this[t]&1<<e%this.DB)},n.setBit=function(e){return this.changeBit(e,v)},n.clearBit=function(e){return this.changeBit(e,m)},n.flipBit=function(e){return this.changeBit(e,y)},n.add=function(e){var t=new BigInteger;return this.addTo(e,t),t},n.subtract=function(e){var t=new BigInteger;return this.subTo(e,t),t},n.multiply=function(e){var t=new BigInteger;return this.multiplyTo(e,t),t},n.divide=function(e){var t=new BigInteger;return this.divRemTo(e,t,null),t},n.remainder=function(e){var t=new BigInteger;return this.divRemTo(e,null,t),t},n.divideAndRemainder=function(e){var t=new BigInteger,r=new BigInteger;return this.divRemTo(e,t,r),new Array(t,r)},n.modPow=function(e,t){var r,n,i=e.bitLength(),o=h(1);if(i<=0)return o;r=i<18?1:i<48?3:i<144?4:i<768?5:6,n=i<8?new l(t):t.isEven()?new S(t):new p(t);var a=new Array,s=3,f=r-1,c=(1<<r)-1;if(a[1]=n.convert(this),r>1){var u=new BigInteger;for(n.sqrTo(a[1],u);s<=c;)a[s]=new BigInteger,n.mulTo(u,a[s-2],a[s]),s+=2}var b,v,y=e.t-1,m=!0,g=new BigInteger;for(i=d(e[y])-1;y>=0;){for(i>=f?b=e[y]>>i-f&c:(b=(e[y]&(1<<i+1)-1)<<f-i,y>0&&(b|=e[y-1]>>this.DB+i-f)),s=r;0==(1&b);)b>>=1,--s;if((i-=s)<0&&(i+=this.DB,--y),m)a[b].copyTo(o),m=!1;else{for(;s>1;)n.sqrTo(o,g),n.sqrTo(g,o),s-=2;s>0?n.sqrTo(o,g):(v=o,o=g,g=v),n.mulTo(g,a[b],o)}for(;y>=0&&0==(e[y]&1<<i);)n.sqrTo(o,g),v=o,o=g,g=v,--i<0&&(i=this.DB-1,--y)}return n.revert(o)},n.modInverse=function(e){var t=e.isEven();if(0===this.signum())throw new Error("division by zero");if(this.isEven()&&t||0==e.signum())return BigInteger.ZERO;for(var r=e.clone(),n=this.clone(),i=h(1),o=h(0),a=h(0),s=h(1);0!=r.signum();){for(;r.isEven();)r.rShiftTo(1,r),t?(i.isEven()&&o.isEven()||(i.addTo(this,i),o.subTo(e,o)),i.rShiftTo(1,i)):o.isEven()||o.subTo(e,o),o.rShiftTo(1,o);for(;n.isEven();)n.rShiftTo(1,n),t?(a.isEven()&&s.isEven()||(a.addTo(this,a),s.subTo(e,s)),a.rShiftTo(1,a)):s.isEven()||s.subTo(e,s),s.rShiftTo(1,s);r.compareTo(n)>=0?(r.subTo(n,r),t&&i.subTo(a,i),o.subTo(s,o)):(n.subTo(r,n),t&&a.subTo(i,a),s.subTo(o,s))}if(0!=n.compareTo(BigInteger.ONE))return BigInteger.ZERO;for(;s.compareTo(e)>=0;)s.subTo(e,s);for(;s.signum()<0;)s.addTo(e,s);return s},n.pow=function(e){return this.exp(e,new _)},n.gcd=function(e){var t=this.s<0?this.negate():this.clone(),r=e.s<0?e.negate():e.clone();if(t.compareTo(r)<0){var n=t;t=r,r=n}var i=t.getLowestSetBit(),o=r.getLowestSetBit();if(o<0)return t;for(i<o&&(o=i),o>0&&(t.rShiftTo(o,t),r.rShiftTo(o,r));t.signum()>0;)(i=t.getLowestSetBit())>0&&t.rShiftTo(i,t),(i=r.getLowestSetBit())>0&&r.rShiftTo(i,r),t.compareTo(r)>=0?(t.subTo(r,t),t.rShiftTo(1,t)):(r.subTo(t,r),r.rShiftTo(1,r));return o>0&&r.lShiftTo(o,r),r},n.isProbablePrime=function(e){var t,r=this.abs();if(1==r.t&&r[0]<=A[A.length-1]){for(t=0;t<A.length;++t)if(r[0]==A[t])return!0;return!1}if(r.isEven())return!1;for(t=1;t<A.length;){for(var n=A[t],i=t+1;i<A.length&&n<I;)n*=A[i++];for(n=r.modInt(n);t<i;)if(n%A[t++]==0)return!1}return r.millerRabin(e)},n.square=function(){var e=new BigInteger;return this.squareTo(e),e},BigInteger.ZERO=h(0),BigInteger.ONE=h(1),BigInteger.valueOf=h,e.exports=BigInteger},function(e,t,r){var n=r(58),Buffer=r(4).Buffer,BigInteger=r(45),i=BigInteger.valueOf(3);function Point(e,t,r,i){n.notStrictEqual(i,void 0,"Missing Z coordinate"),this.curve=e,this.x=t,this.y=r,this.z=i,this._zInv=null,this.compressed=!0}Object.defineProperty(Point.prototype,"zInv",{get:function(){return null===this._zInv&&(this._zInv=this.z.modInverse(this.curve.p)),this._zInv}}),Object.defineProperty(Point.prototype,"affineX",{get:function(){return this.x.multiply(this.zInv).mod(this.curve.p)}}),Object.defineProperty(Point.prototype,"affineY",{get:function(){return this.y.multiply(this.zInv).mod(this.curve.p)}}),Point.fromAffine=function(e,t,r){return new Point(e,t,r,BigInteger.ONE)},Point.prototype.equals=function(e){return e===this||(this.curve.isInfinity(this)?this.curve.isInfinity(e):this.curve.isInfinity(e)?this.curve.isInfinity(this):0===e.y.multiply(this.z).subtract(this.y.multiply(e.z)).mod(this.curve.p).signum()&&0===e.x.multiply(this.z).subtract(this.x.multiply(e.z)).mod(this.curve.p).signum())},Point.prototype.negate=function(){var e=this.curve.p.subtract(this.y);return new Point(this.curve,this.x,e,this.z)},Point.prototype.add=function(e){if(this.curve.isInfinity(this))return e;if(this.curve.isInfinity(e))return this;var t=this.x,r=this.y,n=e.x,o=e.y.multiply(this.z).subtract(r.multiply(e.z)).mod(this.curve.p),a=n.multiply(this.z).subtract(t.multiply(e.z)).mod(this.curve.p);if(0===a.signum())return 0===o.signum()?this.twice():this.curve.infinity;var s=a.square(),f=s.multiply(a),c=t.multiply(s),u=o.square().multiply(this.z),h=u.subtract(c.shiftLeft(1)).multiply(e.z).subtract(f).multiply(a).mod(this.curve.p),d=c.multiply(i).multiply(o).subtract(r.multiply(f)).subtract(u.multiply(o)).multiply(e.z).add(o.multiply(f)).mod(this.curve.p),l=f.multiply(this.z).multiply(e.z).mod(this.curve.p);return new Point(this.curve,h,d,l)},Point.prototype.twice=function(){if(this.curve.isInfinity(this))return this;if(0===this.y.signum())return this.curve.infinity;var e=this.x,t=this.y,r=t.multiply(this.z).mod(this.curve.p),n=r.multiply(t).mod(this.curve.p),o=this.curve.a,a=e.square().multiply(i);0!==o.signum()&&(a=a.add(this.z.square().multiply(o)));var s=(a=a.mod(this.curve.p)).square().subtract(e.shiftLeft(3).multiply(n)).shiftLeft(1).multiply(r).mod(this.curve.p),f=a.multiply(i).multiply(e).subtract(n.shiftLeft(1)).shiftLeft(2).multiply(n).subtract(a.pow(3)).mod(this.curve.p),c=r.pow(3).shiftLeft(3).mod(this.curve.p);return new Point(this.curve,s,f,c)},Point.prototype.multiply=function(e){if(this.curve.isInfinity(this))return this;if(0===e.signum())return this.curve.infinity;for(var t=e,r=t.multiply(i),n=this.negate(),o=this,a=r.bitLength()-2;a>0;--a){var s=r.testBit(a),f=t.testBit(a);o=o.twice(),s!==f&&(o=o.add(s?this:n))}return o},Point.prototype.multiplyTwo=function(e,t,r){for(var n=Math.max(e.bitLength(),r.bitLength())-1,i=this.curve.infinity,o=this.add(t);n>=0;){var a=e.testBit(n),s=r.testBit(n);i=i.twice(),a?i=s?i.add(o):i.add(this):s&&(i=i.add(t)),--n}return i},Point.prototype.getEncoded=function(e){if(null==e&&(e=this.compressed),this.curve.isInfinity(this))return Buffer.alloc(1,0);var t,r=this.affineX,n=this.affineY,i=this.curve.pLength;return e?(t=Buffer.allocUnsafe(1+i)).writeUInt8(n.isEven()?2:3,0):((t=Buffer.allocUnsafe(1+i+i)).writeUInt8(4,0),n.toBuffer(i).copy(t,1+i)),r.toBuffer(i).copy(t,1),t},Point.decodeFrom=function(e,t){var r,i=t.readUInt8(0),o=4!==i,a=Math.floor((e.p.bitLength()+7)/8),s=BigInteger.fromBuffer(t.slice(1,1+a));if(o){n.equal(t.length,a+1,"Invalid sequence length"),n(2===i||3===i,"Invalid sequence tag");var f=3===i;r=e.pointFromX(f,s)}else{n.equal(t.length,1+a+a,"Invalid sequence length");var c=BigInteger.fromBuffer(t.slice(1+a));r=Point.fromAffine(e,s,c)}return r.compressed=o,r},Point.prototype.toString=function(){return this.curve.isInfinity(this)?"(INFINITY)":"("+this.affineX.toString()+","+this.affineY.toString()+")"},e.exports=Point},function(e,t,r){var n=r(58),BigInteger=r(45),Point=r(182);function i(e,t,r,n,i,o,a){this.p=e,this.a=t,this.b=r,this.G=Point.fromAffine(this,n,i),this.n=o,this.h=a,this.infinity=new Point(this,null,null,BigInteger.ZERO),this.pOverFour=e.add(BigInteger.ONE).shiftRight(2),this.pLength=Math.floor((this.p.bitLength()+7)/8)}i.prototype.pointFromX=function(e,t){var r=t.pow(3).add(this.a.multiply(t)).add(this.b).mod(this.p).modPow(this.pOverFour,this.p),n=r;return r.isEven()^!e&&(n=this.p.subtract(n)),Point.fromAffine(this,t,n)},i.prototype.isInfinity=function(e){return e===this.infinity||0===e.z.signum()&&0!==e.y.signum()},i.prototype.isOnCurve=function(e){if(this.isInfinity(e))return!0;var t=e.affineX,r=e.affineY,n=this.a,i=this.b,o=this.p;if(t.signum()<0||t.compareTo(o)>=0)return!1;if(r.signum()<0||r.compareTo(o)>=0)return!1;var a=r.square().mod(o),s=t.pow(3).add(n.multiply(t)).add(i).mod(o);return a.equals(s)},i.prototype.validate=function(e){n(!this.isInfinity(e),"Point is at infinity"),n(this.isOnCurve(e),"Point is not on the curve");var t=e.multiply(this.n);return n(this.isInfinity(t),"Point is not a scalar multiple of G"),!0},e.exports=i},function(e,t,r){(function(Buffer){var t=r(90);function n(e,t){if(void 0!==t&&e[0]!==t)throw new Error("Invalid network version");if(33===e.length)return{version:e[0],privateKey:e.slice(1,33),compressed:!1};if(34!==e.length)throw new Error("Invalid WIF length");if(1!==e[33])throw new Error("Invalid compression flag");return{version:e[0],privateKey:e.slice(1,33),compressed:!0}}function i(e,t,r){var n=new Buffer(r?34:33);return n.writeUInt8(e,0),t.copy(n,1),r&&(n[33]=1),n}e.exports={decode:function(e,r){return n(t.decode(e),r)},decodeRaw:n,encode:function(e,r,n){return"number"==typeof e?t.encode(i(e,r,n)):t.encode(i(e.version,e.privateKey,e.compressed))},encodeRaw:i}}).call(t,r(3).Buffer)},,function(e,t){t.fetchFee=function(){return fetch("https://bitcoinfees.21.co/api/v1/fees/recommended").then(e=>e.json()).then(e=>e.fastestFee)}},function(e,t){t.fetchFee=function(){return fetch("https://insight.bitpay.com/api/utils/estimatefee").then(e=>e.json()).then(e=>1e5*e[2])}},function(e,t){t.fetchFee=function(){return fetch("https://api.blockcypher.com/v1/btc/main").then(e=>e.json()).then(e=>e.high_fee_per_kb/1e3)}},function(e,t){t.fetchFee=function(){return fetch("https://chain.api.btc.com/v3/block/latest/").then(e=>e.json()).then(e=>e.data.reward_fees/e.data.size)}},,,,,,,,,,,,,,,,,,,function(e,t,r){"use strict";function n(e){return function(t,r){return{displayName:e,props:t,children:r||[]}}}e.exports={Root:n("Root"),Concat:n("Concat"),Literal:n("Literal"),Splat:n("Splat"),Param:n("Param"),Optional:n("Optional")}},function(e,t,r){"use strict";var n=Object.keys(r(208));e.exports=function(e){return n.forEach(function(t){if(void 0===e[t])throw new Error("No handler defined for "+t.displayName)}),{visit:function(e,t){return this.handlers[e.displayName].call(this,e,t)},handlers:e}}},,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i=a(r(0)),o=a(r(20));function a(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){return i.default.createElement(o.default,n({viewBox:"0 0 40 40"},e),i.default.createElement("g",null,i.default.createElement("path",{d:"m31.6 10.7l-9.3 9.3 9.3 9.3-2.3 2.3-9.3-9.3-9.3 9.3-2.3-2.3 9.3-9.3-9.3-9.3 2.3-2.3 9.3 9.3 9.3-9.3z"})))},e.exports=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i=a(r(0)),o=a(r(20));function a(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){return i.default.createElement(o.default,n({viewBox:"0 0 40 40"},e),i.default.createElement("g",null,i.default.createElement("path",{d:"m20 26.6c1.8 0 3.4 1.6 3.4 3.4s-1.6 3.4-3.4 3.4-3.4-1.6-3.4-3.4 1.6-3.4 3.4-3.4z m0-10c1.8 0 3.4 1.6 3.4 3.4s-1.6 3.4-3.4 3.4-3.4-1.6-3.4-3.4 1.6-3.4 3.4-3.4z m0-3.2c-1.8 0-3.4-1.6-3.4-3.4s1.6-3.4 3.4-3.4 3.4 1.6 3.4 3.4-1.6 3.4-3.4 3.4z"})))},e.exports=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.startAnimation=t.formatNumber=void 0;var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0),o=s(i),a=s(r(440));function s(e){return e&&e.__esModule?e:{default:e}}function f(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 c=t.formatNumber=function(e,t){var r=(""+e.toFixed(t.decimals)).split("."),n=r[0],i=r.length>1?""+t.decimal+r[1]:"",o=/(\d+)(\d{3})/;if(t.useGrouping&&t.separator)for(;o.test(n);)n=n.replace(o,"$1"+t.separator+"$2");return""+t.prefix+n+i+t.suffix},u=t.startAnimation=function(e){if(!e||!e.spanElement)throw new Error("You need to pass the CountUp component as an argument!\neg. this.myCountUp.startAnimation(this.myCountUp);");var t=e.props,r=t.decimal,n=t.decimals,i=t.duration,o=t.easingFn,s=t.end,f=t.formattingFn,c=t.onComplete,u=t.onStart,h=t.prefix,d=t.separator,l=t.start,p=t.suffix,b=t.useEasing,v=t.useGrouping,y=new a.default(e.spanElement,l,s,n,i,{decimal:r,easingFn:o,formattingFn:f,separator:d,prefix:h,suffix:p,useEasing:b,useGrouping:v});"function"==typeof u&&u(),y.start(c)},h=function(e){function t(){var e,r,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=n=f(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),n.spanElement=null,n.refSpan=function(e){n.spanElement=e},f(n,r)}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,i.Component),n(t,[{key:"componentDidMount",value:function(){u(this)}},{key:"shouldComponentUpdate",value:function(e){var t=this.props.duration!==e.duration||this.props.end!==e.end||this.props.start!==e.start;return e.redraw||t}},{key:"componentDidUpdate",value:function(){u(this)}},{key:"render",value:function(){var e=this.props,t=e.className,r=e.start,n=e.style,i=e.decimal,a=e.decimals,s=e.useGrouping,f=e.separator,u=e.prefix,h=e.suffix;return o.default.createElement("span",{className:t,style:n,ref:this.refSpan},c(r,{decimal:i,decimals:a,useGrouping:s,separator:f,prefix:u,suffix:h}))}}]),t}();h.defaultProps={className:void 0,decimal:".",decimals:0,duration:3,easingFn:null,end:100,formattingFn:null,onComplete:void 0,onStart:void 0,prefix:"",separator:",",start:0,suffix:"",redraw:!1,style:void 0,useEasing:!0,useGrouping:!1},t.default=h},,,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i=a(r(0)),o=a(r(20));function a(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){return i.default.createElement(o.default,n({viewBox:"0 0 40 40"},e),i.default.createElement("g",null,i.default.createElement("path",{d:"m10.1 34.3h20v-5.7h-20v5.7z m0-14.3h20v-8.6h-3.6q-0.9 0-1.5-0.6t-0.6-1.5v-3.6h-14.3v14.3z m25.7 1.4q0-0.5-0.4-1t-1-0.4-1 0.4-0.5 1 0.5 1 1 0.5 1-0.5 0.4-1z m2.8 0v9.3q0 0.3-0.2 0.5t-0.5 0.2h-5v3.6q0 0.9-0.6 1.5t-1.5 0.6h-21.4q-0.9 0-1.6-0.6t-0.6-1.5v-3.6h-5q-0.3 0-0.5-0.2t-0.2-0.5v-9.3q0-1.7 1.3-3t3-1.3h1.4v-12.1q0-0.9 0.6-1.5t1.6-0.6h15q0.9 0 1.9 0.4t1.7 1.1l3.4 3.4q0.6 0.6 1.1 1.7t0.4 1.9v5.7h1.5q1.7 0 3 1.3t1.2 3z"})))},e.exports=t.default},,,,,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i=a(r(0)),o=a(r(20));function a(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){return i.default.createElement(o.default,n({viewBox:"0 0 40 40"},e),i.default.createElement("g",null,i.default.createElement("path",{d:"m3.4 35v-11.6l25-3.4-25-3.4v-11.6l35 15z"})))},e.exports=t.default},,,,,function(e,t,r){"use strict";var n=r(127),i=r(128),o=r(229);e.exports=function(){function e(e,t,r,n,a,s){s!==o&&i(!1,"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")}function t(){return e}e.isRequired=e;var r={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return r.checkPropTypes=n,r.PropTypes=r,r}},function(e,t,r){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,r){(function(e){function t(e,t,r){this.nodeName=e,this.attributes=t,this.children=r,this.key=t&&t.key}function r(e,t){if(t)for(var r in t)void 0!==t[r]&&(e[r]=t[r]);return e}function n(e){return r({},e)}function i(e,t){for(var r=t.split("."),n=0;n<r.length&&e;n++)e=e[r[n]];return e}function o(e){return"function"==typeof e}function a(e){return"string"==typeof e}function s(e){return void 0===e||null===e}function f(e){return!1===e||s(e)}function c(e,r,n){var i,s,u,h=arguments.length;if(h>2){var d=typeof n;if(3===h&&"object"!==d&&"function"!==d)f(n)||(i=[String(n)]);else{i=[];for(var l=2;l<h;l++){var p=arguments[l];if(!f(p)){p.join?s=p:(s=D)[0]=p;for(var b=0;b<s.length;b++){var v=s[b],y=!(f(v)||o(v)||v instanceof t);y&&!a(v)&&(v=String(v)),y&&u?i[i.length-1]+=v:f(v)||(i.push(v),u=y)}}}}}else if(r&&r.children)return c(e,r,r.children);r&&(r.children&&delete r.children,o(e)||("className"in r&&(r.class=r.className,delete r.className),(u=r.class)&&!a(u)&&(r.class=function(e){var t="";for(var r in e)e[r]&&(t&&(t+=" "),t+=r);return t}(u))));var m=new t(e,r||void 0,i);return U.vnode&&U.vnode(m),m}function u(){if(H.length){var e,t=H;for(H=K,K=t;e=t.pop();)e._dirty&&M(e)}}function h(e){var t=e&&e.nodeName;return t&&o(t)&&!(t.prototype&&t.prototype.render)}function d(e,t){return e.nodeName(w(e),t||F)}function l(e,t){return e[z]||(e[z]=t||{})}function p(e){return e instanceof Text?3:e instanceof Element?1:0}function b(e){var t=e.parentNode;t&&t.removeChild(e)}function v(e,t,r,n,i){if(l(e)[t]=r,"key"!==t&&"children"!==t&&"innerHTML"!==t)if("class"!==t||i)if("style"===t){if((!r||a(r)||a(n))&&(e.style.cssText=r||""),r&&"object"==typeof r){if(!a(n))for(var c in n)c in r||(e.style[c]="");for(var c in r)e.style[c]="number"!=typeof r[c]||q[c]?r[c]:r[c]+"px"}}else if("dangerouslySetInnerHTML"===t)r&&(e.innerHTML=r.__html);else if(t.match(/^on/i)){var u=e._listeners||(e._listeners={});t=R(t.substring(2)),r?u[t]||e.addEventListener(t,y):u[t]&&e.removeEventListener(t,y),u[t]=r}else if("type"!==t&&!i&&t in e)!function(e,t,r){try{e[t]=r}catch(e){}}(e,t,s(r)?"":r),f(r)&&e.removeAttribute(t);else{var h=i&&t.match(/^xlink\:?(.+)/);f(r)?h?e.removeAttributeNS("http://www.w3.org/1999/xlink",R(h[1])):e.removeAttribute(t):"object"==typeof r||o(r)||(h?e.setAttributeNS("http://www.w3.org/1999/xlink",R(h[1]),r):e.setAttribute(t,r))}else e.className=r||""}function y(e){return this._listeners[e.type](U.event&&U.event(e)||e)}function m(e){for(var t={},r=e.attributes.length;r--;)t[e.attributes[r].name]=e.attributes[r].value;return t}function g(e,t){return e.normalizedNodeName===t||R(e.nodeName)===R(t)}function w(e){var t=e.nodeName.defaultProps,i=n(t||e.attributes);return t&&r(i,e.attributes),e.children&&(i.children=e.children),i}function _(e){!function(e){b(e),1===p(e)&&(l(e,m(e)),e._component=e._componentConstructor=null)}(e);var t=R(e.nodeName),r=V[t];r?r.push(e):V[t]=[e]}function E(e,t){var r=R(e),n=V[r]&&V[r].pop()||(t?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e));return l(n),n.normalizedNodeName=r,n}function S(){for(var e;e=G.pop();)e.componentDidMount&&e.componentDidMount()}function A(e,t,r,n,i,o,a){Y++;var s=I(e,t,r,n,o);return i&&s.parentNode!==i&&i.insertBefore(s,a||null),--Y||S(),s}function I(e,t,r,n,i){for(var f=t&&t.attributes;h(t);)t=d(t,r);if(s(t)&&(t="",i)){if(e){if(8===e.nodeType)return e;_(e)}return document.createComment(t)}if(a(t)){if(e){if(3===p(e)&&e.parentNode)return e.nodeValue=t,e;_(e)}return document.createTextNode(t)}var c,u=e,l=t.nodeName;if(o(l))return function(e,t,r,n){var i=e&&e._component,o=e,a=i&&e._componentConstructor===t.nodeName,s=a,f=w(t);for(;i&&!s&&(i=i._parentComponent);)s=i.constructor===t.nodeName;!s||n&&!i._component?(i&&!a&&(N(i,!0),e=o=null),i=P(t.nodeName,f,r),e&&!i.nextBase&&(i.nextBase=e),T(i,f,1,r,n),e=i.base,o&&e!==o&&(o._component=null,x(o))):(T(i,f,3,r,n),e=i.base);return e}(e,t,r,n);if(a(l)||(l=String(l)),(c="svg"===R(l))&&(W=!0),e){if(!g(e,l)){for(u=E(l,W);e.firstChild;)u.appendChild(e.firstChild);x(e)}}else u=E(l,W);return t.children&&1===t.children.length&&"string"==typeof t.children[0]&&1===u.childNodes.length&&u.firstChild instanceof Text?u.firstChild.nodeValue=t.children[0]:(t.children||u.firstChild)&&function(e,t,r,n){var i,f,c,u,d=e.childNodes,l=[],b={},v=0,y=0,m=d.length,w=0,_=t&&t.length;if(m)for(var E=0;E<m;E++){var S=d[E],A=_?(f=S._component)?f.__key:(f=S[z])?f.key:null:null;A||0===A?(v++,b[A]=S):l[w++]=S}if(_)for(var E=0;E<_;E++){if(c=t[E],u=null,v&&c.attributes){var A=c.key;!s(A)&&A in b&&(u=b[A],b[A]=void 0,v--)}if(!u&&y<w)for(i=y;i<w;i++)if((f=l[i])&&(x=f,a(P=c)?3===p(x):a(P.nodeName)?g(x,P.nodeName):o(P.nodeName)?x._componentConstructor===P.nodeName||h(P):void 0)){u=f,l[i]=void 0,i===w-1&&w--,i===y&&y++;break}(u=I(u,c,r,n))!==d[E]&&e.insertBefore(u,d[E]||null)}var x,P;if(v)for(var E in b)b[E]&&(l[y=w++]=b[E]);y<w&&k(l)}(u,t.children,r,n),function(e,t){var r=e[z]||m(e);for(var n in r)t&&n in t||v(e,n,null,r[n],W);if(t)for(var i in t)i in r&&t[i]==r[i]&&("value"!==i&&"checked"!==i||t[i]==e[i])||v(e,i,t[i],r[i],W)}(u,t.attributes),f&&f.ref&&(u[z].ref=f.ref)(u),c&&(W=!1),u}function k(e,t){for(var r=e.length;r--;){var n=e[r];n&&x(n,t)}}function x(e,t){var r=e._component;r?N(r,!t):(e[z]&&e[z].ref&&e[z].ref(null),t||_(e),e.childNodes&&e.childNodes.length&&k(e.childNodes,t))}function P(e,t,r){var n=new e(t,r),i=J[e.name];if(n.props=t,n.context=r,i)for(var o=i.length;o--;)if(i[o].constructor===e){n.nextBase=i[o].nextBase,i.splice(o,1);break}return n}function O(e){e._dirty||(e._dirty=!0,function(e){1===H.push(e)&&(U.debounceRendering||j)(u)}(e))}function T(e,t,r,n,i){var o=e.base;e._disableRendering||(e._disableRendering=!0,(e.__ref=t.ref)&&delete t.ref,(e.__key=t.key)&&delete t.key,s(o)||i?e.componentWillMount&&e.componentWillMount():e.componentWillReceiveProps&&e.componentWillReceiveProps(t,n),n&&n!==e.context&&(e.prevContext||(e.prevContext=e.context),e.context=n),e.prevProps||(e.prevProps=e.props),e.props=t,e._disableRendering=!1,0!==r&&(1!==r&&!1===U.syncComponentUpdates&&o?O(e):M(e,1,i)),e.__ref&&e.__ref(e))}function M(e,t,i){if(!e._disableRendering){var a,s,f=e.props,c=e.state,u=e.context,l=e.prevProps||f,p=e.prevState||c,b=e.prevContext||u,v=e.base,y=v||e.nextBase,m=y&&y.parentNode,g=y&&y._component,_=e._component;if(v&&(e.props=l,e.state=p,e.context=b,2!==t&&e.shouldComponentUpdate&&!1===e.shouldComponentUpdate(f,c,u)?a=!0:e.componentWillUpdate&&e.componentWillUpdate(f,c,u),e.props=f,e.state=c,e.context=u),e.prevProps=e.prevState=e.prevContext=e.nextBase=null,e._dirty=!1,!a){for(e.render&&(s=e.render(f,c,u)),e.getChildContext&&(u=r(n(u),e.getChildContext()));h(s);)s=d(s,u);var E,I,k=s&&s.nodeName;if(o(k)&&k.prototype.render){var O=_,B=w(s);O&&O.constructor===k?T(O,B,1,u):(E=O,(O=P(k,B,u))._parentComponent=e,e._component=O,T(O,B,0,u),M(O,1)),I=O.base}else{var C=y;(E=_)&&(C=e._component=null),(y||1===t)&&(C&&(C._component=null),I=A(C,s,u,i||!v,m,!0,y&&y.nextSibling))}if(y&&I!==y&&(E||g!==e||_||!y.parentNode||(y._component=null,x(y))),E&&N(E,!0),e.base=I,I){for(var R=e,L=e;L=L._parentComponent;)R=L;I._component=R,I._componentConstructor=R.constructor}}!v||i?(G.unshift(e),Y||S()):!a&&e.componentDidUpdate&&e.componentDidUpdate(l,p,b);var j,U=e._renderCallbacks;if(U)for(;j=U.pop();)j.call(e);return s}}function N(e,t){var r=e.base;e._disableRendering=!0,e.componentWillUnmount&&e.componentWillUnmount(),e.base=null;var n=e._component;n?N(n,t):r&&(r[z]&&r[z].ref&&r[z].ref(null),e.nextBase=r,t&&(b(r),function(e){var t=e.constructor.name,r=J[t];r?r.push(e):J[t]=[e]}(e)),k(r.childNodes,!t)),e.__ref&&e.__ref(null),e.componentDidUnmount&&e.componentDidUnmount()}function B(e,t){this._dirty=!0,this._disableRendering=!1,this.prevState=this.prevProps=this.prevContext=this.base=this.nextBase=this._parentComponent=this._component=this.__ref=this.__key=this._linkedStates=this._renderCallbacks=null,this.context=t,this.props=e,this.state=this.getInitialState&&this.getInitialState()||{}}var C={},R=function(e){return C[e]||(C[e]=e.toLowerCase())},L="undefined"!=typeof Promise&&Promise.resolve(),j=L?function(e){L.then(e)}:setTimeout,U={vnode:s},D=[],F={},z="undefined"!=typeof Symbol?Symbol.for("preactattr"):"__preactattr_",q={boxFlex:1,boxFlexGroup:1,columnCount:1,fillOpacity:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,fontWeight:1,lineClamp:1,lineHeight:1,opacity:1,order:1,orphans:1,strokeOpacity:1,widows:1,zIndex:1,zoom:1},H=[],K=[],V={},G=[],Y=0,W=!1,J={};r(B.prototype,{linkState:function(e,t){var r=this._linkedStates||(this._linkedStates={}),n=e+"|"+t;return r[n]||(r[n]=function(e,t,r){var n=t.split("."),f=n[0];return function(t){var c,u,h,d=t&&t.currentTarget||this,l=e.state,p=l;if(a(r)?s(u=i(t,r))&&(d=d._component)&&(u=i(d,r)):u=d.nodeName?(d.nodeName+d.type).match(/^input(check|rad)/i)?d.checked:d.value:t,o(u)&&(u=u.call(d)),n.length>1){for(h=0;h<n.length-1;h++)p=p[n[h]]||(p[n[h]]={});p[n[h]]=u,u=l[f]}e.setState(((c={})[f]=u,c))}}(this,e,t))},setState:function(e,t){var i=this.state;this.prevState||(this.prevState=n(i)),r(i,o(e)?e(i,this.props):e),t&&(this._renderCallbacks=this._renderCallbacks||[]).push(t),O(this)},forceUpdate:function(){M(this,2)},render:function(){return null}}),e.h=c,e.cloneElement=function(e,t){return c(e.nodeName,r(n(e.attributes),t),arguments.length>2?(i=arguments,o=2,[].slice.call(i,o)):e.children);var i,o},e.Component=B,e.render=function(e,t,r){return A(r,e,{},!1,t)},e.rerender=u,e.options=U})(t)},,function(e,t,r){"use strict";var n=r(233);function i(e){return!0===n(e)&&"[object Object]"===Object.prototype.toString.call(e)}e.exports=function(e){var t,r;return!1!==i(e)&&("function"==typeof(t=e.constructor)&&(!1!==i(r=t.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf")))}},function(e,t,r){"use strict";e.exports=function(e){return null!=e&&"object"==typeof e&&!1===Array.isArray(e)}},function(e,t,r){var n;n=function e(t){"use strict";var r=/^\0+/g,n=/[\0\r\f]/g,i=/: */g,o=/zoo|gra/,a=/([,: ])(transform)/g,s=/,+\s*(?![^(]*[)])/g,f=/ +\s*(?![^(]*[)])/g,c=/ *[\0] */g,u=/,\r+?/g,h=/([\t\r\n ])*\f?&/g,d=/:global\(((?:[^\(\)\[\]]*|\[.*\]|\([^\(\)]*\))*)\)/g,l=/\W+/g,p=/@(k\w+)\s*(\S*)\s*/,b=/::(place)/g,v=/:(read-only)/g,y=/\s+(?=[{\];=:>])/g,m=/([[}=:>])\s+/g,g=/(\{[^{]+?);(?=\})/g,w=/\s{2,}/g,_=/([^\(])(:+) */g,E=/[svh]\w+-[tblr]{2}/,S=/\(\s*(.*)\s*\)/g,A=/([\s\S]*?);/g,I=/-self|flex-/g,k=/[^]*?(:[rp][el]a[\w-]+)[^]*/,x=/stretch|:\s*\w+\-(?:conte|avail)/,P="-webkit-",O="-moz-",T="-ms-",M=59,N=125,B=123,C=40,R=41,L=91,j=93,U=10,D=13,F=9,z=64,q=32,H=38,K=45,V=95,G=42,Y=44,W=58,J=39,X=34,Z=47,$=62,Q=43,ee=126,te=0,re=12,ne=11,ie=107,oe=109,ae=115,se=112,fe=111,ce=169,ue=163,he=100,de=112,le=1,pe=1,be=0,ve=1,ye=1,me=1,ge=0,we=0,_e=0,Ee=[],Se=[],Ae=0,Ie=null,ke=-2,xe=-1,Pe=0,Oe=1,Te=2,Me=3,Ne=0,Be=1,Ce="",Re="",Le="";function je(e,t,i,o,a){for(var s,f,u=0,h=0,d=0,l=0,y=0,m=0,g=0,w=0,E=0,A=0,I=0,k=0,x=0,V=0,ge=0,Se=0,Ie=0,ke=0,xe=0,De=i.length,Ke=De-1,Ve="",Ge="",Ye="",We="",Je="",Xe="";ge<De;){if(g=i.charCodeAt(ge),ge===Ke&&h+l+d+u!==0&&(0!==h&&(g=h===Z?U:Z),l=d=u=0,De++,Ke++),h+l+d+u===0){if(ge===Ke&&(Se>0&&(Ge=Ge.replace(n,"")),Ge.trim().length>0)){switch(g){case q:case F:case M:case D:case U:break;default:Ge+=i.charAt(ge)}g=M}if(1===Ie)switch(g){case B:case N:case M:case X:case J:case C:case R:case Y:Ie=0;case F:case D:case U:case q:break;default:for(Ie=0,xe=ge,y=g,ge--,g=M;xe<De;)switch(i.charCodeAt(xe++)){case U:case D:case M:++ge,g=y,xe=De;break;case W:Se>0&&(++ge,g=y);case B:xe=De}}switch(g){case B:for(y=(Ge=Ge.trim()).charCodeAt(0),I=1,xe=++ge;ge<De;){switch(g=i.charCodeAt(ge)){case B:I++;break;case N:I--}if(0===I)break;ge++}switch(Ye=i.substring(xe,ge),y===te&&(y=(Ge=Ge.replace(r,"").trim()).charCodeAt(0)),y){case z:switch(Se>0&&(Ge=Ge.replace(n,"")),m=Ge.charCodeAt(1)){case he:case oe:case ae:case K:s=t;break;default:s=Ee}if(xe=(Ye=je(t,s,Ye,m,a+1)).length,_e>0&&0===xe&&(xe=Ge.length),Ae>0&&(s=Ue(Ee,Ge,ke),f=He(Me,Ye,s,t,pe,le,xe,m,a),Ge=s.join(""),void 0!==f&&0===(xe=(Ye=f.trim()).length)&&(m=0,Ye="")),xe>0)switch(m){case ae:Ge=Ge.replace(S,qe);case he:case oe:case K:Ye=Ge+"{"+Ye+"}";break;case ie:Ye=(Ge=Ge.replace(p,"$1 $2"+(Be>0?Ce:"")))+"{"+Ye+"}",Ye=1===ye||2===ye&&ze("@"+Ye,3)?"@"+P+Ye+"@"+Ye:"@"+Ye;break;default:Ye=Ge+Ye,o===de&&(We+=Ye,Ye="")}else Ye="";break;default:Ye=je(t,Ue(t,Ge,ke),Ye,o,a+1)}Je+=Ye,k=0,Ie=0,V=0,Se=0,ke=0,x=0,Ge="",Ye="",g=i.charCodeAt(++ge);break;case N:case M:if((xe=(Ge=(Se>0?Ge.replace(n,""):Ge).trim()).length)>1)switch(0===V&&((y=Ge.charCodeAt(0))===K||y>96&&y<123)&&(xe=(Ge=Ge.replace(" ",":")).length),Ae>0&&void 0!==(f=He(Oe,Ge,t,e,pe,le,We.length,o,a))&&0===(xe=(Ge=f.trim()).length)&&(Ge="\0\0"),(y=Ge.charCodeAt(0))+(m=Ge.charCodeAt(1))){case te:break;case ce:case ue:Xe+=Ge+i.charAt(ge);break;default:if(Ge.charCodeAt(xe-1)===W)break;We+=Fe(Ge,y,m,Ge.charCodeAt(2))}k=0,Ie=0,V=0,Se=0,ke=0,Ge="",g=i.charCodeAt(++ge)}}switch(g){case D:case U:if(h+l+d+u+we===0)switch(A){case R:case J:case X:case z:case ee:case $:case G:case Q:case Z:case K:case W:case Y:case M:case B:case N:break;default:V>0&&(Ie=1)}h===Z?h=0:ve+k===0&&(Se=1,Ge+="\0"),Ae*Ne>0&&He(Pe,Ge,t,e,pe,le,We.length,o,a),le=1,pe++;break;case M:case N:if(h+l+d+u===0){le++;break}default:switch(le++,Ve=i.charAt(ge),g){case F:case q:if(l+u+h===0)switch(w){case Y:case W:case F:case q:Ve="";break;default:g!==q&&(Ve=" ")}break;case te:Ve="\\0";break;case re:Ve="\\f";break;case ne:Ve="\\v";break;case H:l+h+u===0&&ve>0&&(ke=1,Se=1,Ve="\f"+Ve);break;case 108:if(l+h+u+be===0&&V>0)switch(ge-V){case 2:w===se&&i.charCodeAt(ge-3)===W&&(be=w);case 8:E===fe&&(be=E)}break;case W:l+h+u===0&&(V=ge);break;case Y:h+d+l+u===0&&(Se=1,Ve+="\r");break;case X:case J:0===h&&(l=l===g?0:0===l?g:l);break;case L:l+h+d===0&&u++;break;case j:l+h+d===0&&u--;break;case R:l+h+u===0&&d--;break;case C:if(l+h+u===0){if(0===k)switch(2*w+3*E){case 533:break;default:I=0,k=1}d++}break;case z:h+d+l+u+V+x===0&&(x=1);break;case G:case Z:if(l+u+d>0)break;switch(h){case 0:switch(2*g+3*i.charCodeAt(ge+1)){case 235:h=Z;break;case 220:xe=ge,h=G}break;case G:g===Z&&w===G&&(33===i.charCodeAt(xe+2)&&(We+=i.substring(xe,ge+1)),Ve="",h=0)}}if(0===h){if(ve+l+u+x===0&&o!==ie&&g!==M)switch(g){case Y:case ee:case $:case Q:case R:case C:if(0===k){switch(w){case F:case q:case U:case D:Ve+="\0";break;default:Ve="\0"+Ve+(g===Y?"":"\0")}Se=1}else switch(g){case C:k=++I;break;case R:0==(k=--I)&&(Se=1,Ve+="\0")}break;case F:case q:switch(w){case te:case B:case N:case M:case Y:case re:case F:case q:case U:case D:break;default:0===k&&(Se=1,Ve+="\0")}}Ge+=Ve,g!==q&&g!==F&&(A=g)}}E=w,w=g,ge++}if(xe=We.length,_e>0&&0===xe&&0===Je.length&&0===t[0].length==!1&&(o!==oe||1===t.length&&(ve>0?Re:Le)===t[0])&&(xe=t.join(",").length+2),xe>0){if(s=0===ve&&o!==ie?function(e){for(var t,r,i=0,o=e.length,a=Array(o);i<o;++i){for(var s=e[i].split(c),f="",u=0,h=0,d=0,l=0,p=s.length;u<p;++u)if(!(0===(h=(r=s[u]).length)&&p>1)){if(d=f.charCodeAt(f.length-1),l=r.charCodeAt(0),t="",0!==u)switch(d){case G:case ee:case $:case Q:case q:case C:break;default:t=" "}switch(l){case H:r=t+Re;case ee:case $:case Q:case q:case R:case C:break;case L:r=t+r+Re;break;case W:switch(2*r.charCodeAt(1)+3*r.charCodeAt(2)){case 530:if(me>0){r=t+r.substring(8,h-1);break}default:(u<1||s[u-1].length<1)&&(r=t+Re+r)}break;case Y:t="";default:r=h>1&&r.indexOf(":")>0?t+r.replace(_,"$1"+Re+"$2"):t+r+Re}f+=r}a[i]=f.replace(n,"").trim()}return a}(t):t,Ae>0&&void 0!==(f=He(Te,We,s,e,pe,le,xe,o,a))&&0===(We=f).length)return Xe+We+Je;if(We=s.join(",")+"{"+We+"}",ye*be!=0){switch(2!==ye||ze(We,2)||(be=0),be){case fe:We=We.replace(v,":"+O+"$1")+We;break;case se:We=We.replace(b,"::"+P+"input-$1")+We.replace(b,"::"+O+"$1")+We.replace(b,":"+T+"input-$1")+We}be=0}}return Xe+We+Je}function Ue(e,t,r){var n=t.trim().split(u),i=n,o=n.length,a=e.length;switch(a){case 0:case 1:for(var s=0,f=0===a?"":e[0]+" ";s<o;++s)i[s]=De(f,i[s],r,a).trim();break;default:s=0;var c=0;for(i=[];s<o;++s)for(var h=0;h<a;++h)i[c++]=De(e[h]+" ",n[s],r,a).trim()}return i}function De(e,t,r,n){var i=t,o=i.charCodeAt(0);switch(o<33&&(o=(i=i.trim()).charCodeAt(0)),o){case H:switch(ve+n){case 0:case 1:if(0===e.trim().length)break;default:return i.replace(h,"$1"+e.trim())}break;case W:switch(i.charCodeAt(1)){case 103:if(me>0&&ve>0)return i.replace(d,"$1").replace(h,"$1"+Le);break;default:return e.trim()+i.replace(h,"$1"+e.trim())}default:if(r*ve>0&&i.indexOf("\f")>0)return i.replace(h,(e.charCodeAt(0)===W?"":"$1")+e.trim())}return e+i}function Fe(e,t,r,n){var c,u=0,h=e+";",d=2*t+3*r+4*n;if(944===d)return function(e){var t=e.length,r=e.indexOf(":",9)+1,n=e.substring(0,r).trim(),i=e.substring(r,t-1).trim();switch(e.charCodeAt(9)*Be){case 0:break;case K:if(110!==e.charCodeAt(10))break;default:for(var o=i.split((i="",s)),a=0,r=0,t=o.length;a<t;r=0,++a){for(var c=o[a],u=c.split(f);c=u[r];){var h=c.charCodeAt(0);if(1===Be&&(h>z&&h<90||h>96&&h<123||h===V||h===K&&c.charCodeAt(1)!==K))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+=Ce}}u[r++]=c}i+=(0===a?"":",")+u.join(" ")}}return i=n+i+";",1===ye||2===ye&&ze(i,1)?P+i+i:i}(h);if(0===ye||2===ye&&!ze(h,1))return h;switch(d){case 1015:return 97===h.charCodeAt(10)?P+h+h:h;case 951:return 116===h.charCodeAt(3)?P+h+h:h;case 963:return 110===h.charCodeAt(5)?P+h+h:h;case 1009:if(100!==h.charCodeAt(4))break;case 969:case 942:return P+h+h;case 978:return P+h+O+h+h;case 1019:case 983:return P+h+O+h+T+h+h;case 883:return h.charCodeAt(8)===K?P+h+h:h;case 932:if(h.charCodeAt(4)===K)switch(h.charCodeAt(5)){case 103:return P+"box-"+h.replace("-grow","")+P+h+T+h.replace("grow","positive")+h;case 115:return P+h+T+h.replace("shrink","negative")+h;case 98:return P+h+T+h.replace("basis","preferred-size")+h}return P+h+T+h+h;case 964:return P+h+T+"flex-"+h+h;case 1023:if(99!==h.charCodeAt(8))break;return c=h.substring(h.indexOf(":",15)).replace("flex-","").replace("space-between","justify"),P+"box-pack"+c+P+h+T+"flex-pack"+c+h;case 1005:return o.test(h)?h.replace(i,":"+P)+h.replace(i,":"+O)+h:h;case 1e3:switch(u=(c=h.substring(13).trim()).indexOf("-")+1,c.charCodeAt(0)+c.charCodeAt(u)){case 226:c=h.replace(E,"tb");break;case 232:c=h.replace(E,"tb-rl");break;case 220:c=h.replace(E,"lr");break;default:return h}return P+h+T+c+h;case 1017:if(-1===h.indexOf("sticky",9))return h;case 975:switch(u=(h=e).length-10,d=(c=(33===h.charCodeAt(u)?h.substring(0,u):h).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|c.charCodeAt(7))){case 203:if(c.charCodeAt(8)<111)break;case 115:h=h.replace(c,P+c)+";"+h;break;case 207:case 102:h=h.replace(c,P+(d>102?"inline-":"")+"box")+";"+h.replace(c,P+c)+";"+h.replace(c,T+c+"box")+";"+h}return h+";";case 938:if(h.charCodeAt(5)===K)switch(h.charCodeAt(6)){case 105:return c=h.replace("-items",""),P+h+P+"box-"+c+T+"flex-"+c+h;case 115:return P+h+T+"flex-item-"+h.replace(I,"")+h;default:return P+h+T+"flex-line-pack"+h.replace("align-content","").replace(I,"")+h}break;case 973:case 989:if(h.charCodeAt(3)!==K||122===h.charCodeAt(4))break;case 931:case 953:if(!0===x.test(e))return 115===(c=e.substring(e.indexOf(":")+1)).charCodeAt(0)?Fe(e.replace("stretch","fill-available"),t,r,n).replace(":fill-available",":stretch"):h.replace(c,P+c)+h.replace(c,O+c.replace("fill-",""))+h;break;case 962:if(h=P+h+(102===h.charCodeAt(5)?T+h:"")+h,r+n===211&&105===h.charCodeAt(13)&&h.indexOf("transform",10)>0)return h.substring(0,h.indexOf(";",27)+1).replace(a,"$1"+P+"$2")+h}return h}function ze(e,t){var r=e.indexOf(1===t?":":"{"),n=e.substring(0,3!==t?r:10),i=e.substring(r+1,e.length-1);return Ie(2!==t?n:n.replace(k,"$1"),i,t)}function qe(e,t){var r=Fe(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return r!==t+";"?r.replace(A," or ($1)").substring(4):"("+t+")"}function He(e,t,r,n,i,o,a,s,f){for(var c,u=0,h=t;u<Ae;++u)switch(c=Se[u].call(Ve,e,h,r,n,i,o,a,s,f)){case void 0:case!1:case!0:case null:break;default:h=c}switch(h){case void 0:case!1:case!0:case null:case t:break;default:return h}}function Ke(e){for(var t in e){var r=e[t];switch(t){case"keyframe":Be=0|r;break;case"global":me=0|r;break;case"cascade":ve=0|r;break;case"compress":ge=0|r;break;case"semicolon":we=0|r;break;case"preserve":_e=0|r;break;case"prefix":Ie=null,r?"function"!=typeof r?ye=1:(ye=2,Ie=r):ye=0}}return Ke}function Ve(t,r){if(void 0!==this&&this.constructor===Ve)return e(t);var i=t,o=i.charCodeAt(0);o<33&&(o=(i=i.trim()).charCodeAt(0)),Be>0&&(Ce=i.replace(l,o===L?"":"-")),o=1,1===ve?Le=i:Re=i;var a,s=[Le];Ae>0&&void 0!==(a=He(xe,r,s,s,pe,le,0,0,0))&&"string"==typeof a&&(r=a);var f=je(Ee,s,r,0,0);return Ae>0&&void 0!==(a=He(ke,f,s,s,pe,le,f.length,0,0))&&"string"!=typeof(f=a)&&(o=0),Ce="",Le="",Re="",be=0,pe=1,le=1,ge*o==0?f:function(e){return e.replace(n,"").replace(y,"").replace(m,"$1").replace(g,"$1").replace(w," ")}(f)}return Ve.use=function e(t){switch(t){case void 0:case null:Ae=Se.length=0;break;default:switch(t.constructor){case Array:for(var r=0,n=t.length;r<n;++r)e(t[r]);break;case Function:Se[Ae++]=t;break;case Boolean:Ne=0|!!t}}return e},Ve.set=Ke,void 0!==t&&Ke(t),Ve},e.exports=n(null)},function(e,t){e.exports=function(e){var t=r.call(e);return"[object Function]"===t||"function"==typeof e&&"[object RegExp]"!==t||"undefined"!=typeof window&&(e===window.setTimeout||e===window.alert||e===window.confirm||e===window.prompt)};var r=Object.prototype.toString},function(e,t,r){"use strict";var n={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,arguments:!0,arity:!0},o="function"==typeof Object.getOwnPropertySymbols;e.exports=function(e,t,r){if("string"!=typeof t){var a=Object.getOwnPropertyNames(t);o&&(a=a.concat(Object.getOwnPropertySymbols(t)));for(var s=0;s<a.length;++s)if(!(n[a[s]]||i[a[s]]||r&&r[a[s]]))try{e[a[s]]=t[a[s]]}catch(e){}}return e}},,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(7),i="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=encodeURIComponent;function a(e,t,r){window.history.pushState(t,r,e)}function s(){return window.location.href}function f(e){return e.pathname+e.search+e.hash}function c(e){var t=/((.*):\/\/([^/#?]+))?([^?#]*)([^#]*)(.*)?/.exec(decodeURIComponent(e)),r={url:e,origin:t[1],protocol:t[2],host:t[3],pathname:""===t[4]?"/":t[4],path:t[4].split("/").filter(function(e){return e.length>0}),search:t[5],query:{},hash:t[6]||""};return r.href=f(r),r.search.length>1&&r.search.substr(1).split("&").forEach(function(e){if(e.length>0){var t=e.indexOf("=");t>-1?r.query[e.substr(0,t)]=e.substr(t+1):r.query[e]=""}}),r}t.createLocation=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"location",u=!1,h=void 0,d=c(e);function l(e,t){var r=c(e);r.href=f(r);var i=n.collect();void 0!==t&&i.mutations.push(t),u=!0,n.set(h,"href",r.href),n.set(h,"pathname",r.pathname),n.set(h,"search",r.search),n.set(h,"hash",r.hash),r.path.forEach(function(e,t){return n.set(h.path,t,e)}),n.set(h.path,"length",r.path.length);var o=void 0,a=r.query,s=h.query;for(o in a)n.set(s,o,a[o]);for(o in s)a.hasOwnProperty(o)||n.del(s,o);u=!1,i.emit()}return null!==t&&"object"==(void 0===t?"undefined":i(t))?(n.isRegistered(t)?n.set(t,r,d):(t[r]=d,t=n.register(t)),h=t[r]):h=n.register(d),h.toString=function(){return h.href},n.intercept(h,function(e,t){if(!u)if("href"===e.prop)t.href=e.oldValue,a(e.value),l(s());else if("pathname"===e.prop){var r=e.value.split("/").map(o).join("/");"/"!==e.value[0]&&(r="/"+r),r=r+h.search+h.hash,t.pathname=e.oldValue,a(r),l(s())}else if("search"===e.prop){var n="?"===e.value[0]?e.value.substr(1):e.value;n=n.split("&").map(function(e){var t=e.split("=");return e=o(t[0]||""),t.hasOwnProperty(1)&&(e+="="+o(t[1])),e}).join("&"),n=h.pathname+"?"+n+h.hash,t.search=e.oldValue,a(n),l(s())}else if("hash"===e.prop){var i="#"===e.value[0]?e.value:"#"+e.value;i=h.pathname+h.search+i,t.hash=e.oldValue,a(i),l(s())}else if("path"===e.prop)a("/"+e.value.map(o).join("/")+h.search+h.hash),l(s(),e);else if("query"===e.prop){var f=void 0,c=e.value,d=[];for(f in c)d.push(o(f)+"="+o(c[f]));a(h.pathname+"?"+d.join("&")+h.hash),l(s())}else t[e.prop]=e.oldValue;return u}),n.intercept(h.path,function(e,t){if(!u){var r=h.path;t[e.prop]=o(r[e.prop]);var n="/"+r.filter(function(e){return void 0!==e}).join("/")+h.search+h.hash;n!==h.pathname&&(a(n),l(s(),e))}return u}),n.intercept(h.query,function(e,t){if(!u){var r=h.query,n=[],i=e.prop;if(e.hasOwnProperty("value")){var f=o(e.prop),c=o(e.value);delete t[e.prop],t[f]=c}for(i in r)n.push(i+"="+r[i]);a(h.pathname+"?"+n.join("&")+h.hash),l(s(),e)}return u}),"undefined"!=typeof window&&window.addEventListener("popstate",function(){l(s())}),h}},,function(e,t,r){"use strict";t.byteLength=function(e){return 3*e.length/4-c(e)},t.toByteArray=function(e){var t,r,n,a,s,f=e.length;a=c(e),s=new o(3*f/4-a),r=a>0?f-4:f;var u=0;for(t=0;t<r;t+=4)n=i[e.charCodeAt(t)]<<18|i[e.charCodeAt(t+1)]<<12|i[e.charCodeAt(t+2)]<<6|i[e.charCodeAt(t+3)],s[u++]=n>>16&255,s[u++]=n>>8&255,s[u++]=255&n;2===a?(n=i[e.charCodeAt(t)]<<2|i[e.charCodeAt(t+1)]>>4,s[u++]=255&n):1===a&&(n=i[e.charCodeAt(t)]<<10|i[e.charCodeAt(t+1)]<<4|i[e.charCodeAt(t+2)]>>2,s[u++]=n>>8&255,s[u++]=255&n);return s},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,o="",a=[],s=0,f=r-i;s<f;s+=16383)a.push(u(e,s,s+16383>f?f:s+16383));1===i?(t=e[r-1],o+=n[t>>2],o+=n[t<<4&63],o+="=="):2===i&&(t=(e[r-2]<<8)+e[r-1],o+=n[t>>10],o+=n[t>>4&63],o+=n[t<<2&63],o+="=");return a.push(o),a.join("")};for(var n=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,f=a.length;s<f;++s)n[s]=a[s],i[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");return"="===e[t-2]?2:"="===e[t-1]?1:0}function u(e,t,r){for(var i,o,a=[],s=t;s<r;s+=3)i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(n[(o=i)>>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,r,n,i){var o,a,s=8*i-n-1,f=(1<<s)-1,c=f>>1,u=-7,h=r?i-1:0,d=r?-1:1,l=e[t+h];for(h+=d,o=l&(1<<-u)-1,l>>=-u,u+=s;u>0;o=256*o+e[t+h],h+=d,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=n;u>0;a=256*a+e[t+h],h+=d,u-=8);if(0===o)o=1-c;else{if(o===f)return a?NaN:1/0*(l?-1:1);a+=Math.pow(2,n),o-=c}return(l?-1:1)*a*Math.pow(2,o-n)},t.write=function(e,t,r,n,i,o){var a,s,f,c=8*o-i-1,u=(1<<c)-1,h=u>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,l=n?0:o-1,p=n?1:-1,b=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*(f=Math.pow(2,-a))<1&&(a--,f*=2),(t+=a+h>=1?d/f:d*Math.pow(2,1-h))*f>=2&&(a++,f/=2),a+h>=u?(s=0,a=u):a+h>=1?(s=(t*f-1)*Math.pow(2,i),a+=h):(s=t*Math.pow(2,h-1)*Math.pow(2,i),a=0));i>=8;e[r+l]=255&s,l+=p,s/=256,i-=8);for(a=a<<i|s,c+=i;c>0;e[r+l]=255&a,l+=p,a/=256,c-=8);e[r+l-p]|=128*b}},function(e,t){var r={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==r.call(e)}},function(e,t,r){"use strict";(function(Buffer){var t=4,r=new Buffer(t);r.fill(0);e.exports=function(e,n){var i=n(function(e){if(e.length%t!=0){var n=e.length+(t-e.length%t);e=Buffer.concat([e,r],n)}for(var i=new Array(e.length>>>2),o=0,a=0;o<e.length;o+=t,a++)i[a]=e.readInt32LE(o);return i}(e),8*e.length);e=new Buffer(16);for(var o=0;o<i.length;o++)e.writeInt32LE(i[o],o<<2,!0);return e}}).call(t,r(3).Buffer)},function(e,t,r){"use strict";(function(Buffer){var t=r(33).Transform;function n(e){t.call(this),this._block=new Buffer(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}r(5)(n,t),n.prototype._transform=function(e,t,r){var n=null;try{"buffer"!==t&&(e=new Buffer(e,t)),this.update(e)}catch(e){n=e}r(n)},n.prototype._flush=function(e){var t=null;try{this.push(this._digest())}catch(e){t=e}e(t)},n.prototype.update=function(e,t){if(!Buffer.isBuffer(e)&&"string"!=typeof e)throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Digest already called");Buffer.isBuffer(e)||(e=new Buffer(e,t||"binary"));for(var r=this._block,n=0;this._blockOffset+e.length-n>=this._blockSize;){for(var i=this._blockOffset;i<this._blockSize;)r[i++]=e[n++];this._update(),this._blockOffset=0}for(;n<e.length;)r[this._blockOffset++]=e[n++];for(var o=0,a=8*e.length;a>0;++o)this._length[o]+=a,(a=this._length[o]/4294967296|0)>0&&(this._length[o]-=4294967296*a);return this},n.prototype._update=function(e){throw new Error("_update is not implemented")},n.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();return void 0!==e&&(t=t.toString(e)),t},n.prototype._digest=function(){throw new Error("_digest is not implemented")},e.exports=n}).call(t,r(3).Buffer)},function(e,t){var r={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==r.call(e)}},,function(e,t,r){"use strict";var Buffer=r(4).Buffer,n=r(248);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,r=""+t.data;t=t.next;)r+=e+t.data;return r},e.prototype.concat=function(e){if(0===this.length)return Buffer.alloc(0);if(1===this.length)return this.head.data;for(var t,r,n,i=Buffer.allocUnsafe(e>>>0),o=this.head,a=0;o;)t=o.data,r=i,n=a,t.copy(r,n),a+=o.data.length,o=o.next;return i},e}(),n&&n.inspect&&n.inspect.custom&&(e.exports.prototype[n.inspect.custom]=function(){var e=n.inspect({length:this.length});return this.constructor.name+" "+e})},,function(e,t,r){(function(e){var n=Function.prototype.apply;function i(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new i(n.call(setTimeout,window,arguments),clearTimeout)},t.setInterval=function(){return new i(n.call(setInterval,window,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(window,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))},r(250),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(t,r(29))},function(e,t,r){(function(e,t){!function(e,r){"use strict";if(!e.setImmediate){var n,i,o,a,s,f=1,c={},u=!1,h=e.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(e);d=d&&d.setTimeout?d:e,"[object process]"==={}.toString.call(e.process)?n=function(e){t.nextTick(function(){p(e)})}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,r=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=r,t}}()?e.MessageChannel?((o=new MessageChannel).port1.onmessage=function(e){p(e.data)},n=function(e){o.port2.postMessage(e)}):h&&"onreadystatechange"in h.createElement("script")?(i=h.documentElement,n=function(e){var t=h.createElement("script");t.onreadystatechange=function(){p(e),t.onreadystatechange=null,i.removeChild(t),t=null},i.appendChild(t)}):n=function(e){setTimeout(p,0,e)}:(a="setImmediate$"+Math.random()+"$",s=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(a)&&p(+t.data.slice(a.length))},e.addEventListener?e.addEventListener("message",s,!1):e.attachEvent("onmessage",s),n=function(t){e.postMessage(a+t,"*")}),d.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),r=0;r<t.length;r++)t[r]=arguments[r+1];var i={callback:e,args:t};return c[f]=i,n(f),f++},d.clearImmediate=l}function l(e){delete c[e]}function p(e){if(u)setTimeout(p,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(r,n)}}(t)}finally{l(e),u=!1}}}}}("undefined"==typeof self?void 0===e?this:e:self)}).call(t,r(29),r(32))},function(e,t,r){(function(t){function r(e){try{if(!t.localStorage)return!1}catch(e){return!1}var r=t.localStorage[e];return null!=r&&"true"===String(r).toLowerCase()}e.exports=function(e,t){if(r("noDeprecation"))return e;var n=!1;return function(){if(!n){if(r("throwDeprecation"))throw new Error(t);r("traceDeprecation")?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}}}).call(t,r(29))},function(e,t,r){"use strict";e.exports=o;var n=r(135),i=r(66);function o(e){if(!(this instanceof o))return new o(e);n.call(this,e)}i.inherits=r(5),i.inherits(o,n),o.prototype._transform=function(e,t,r){r(null,e)}},function(e,t,r){e.exports=r(97)},function(e,t,r){e.exports=r(49)},function(e,t,r){e.exports=r(96).Transform},function(e,t,r){e.exports=r(96).PassThrough},function(e,t,r){var n=r(5),i=r(54),Buffer=r(4).Buffer,o=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function s(){this.init(),this._w=a,i.call(this,64,56)}function f(e){return e<<30|e>>>2}function c(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}n(s,i),s.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},s.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,i=0|this._b,a=0|this._c,s=0|this._d,u=0|this._e,h=0;h<16;++h)r[h]=e.readInt32BE(4*h);for(;h<80;++h)r[h]=r[h-3]^r[h-8]^r[h-14]^r[h-16];for(var d=0;d<80;++d){var l=~~(d/20),p=0|((t=n)<<5|t>>>27)+c(l,i,a,s)+u+r[d]+o[l];u=s,s=a,a=f(i),i=n,n=p}this._a=n+this._a|0,this._b=i+this._b|0,this._c=a+this._c|0,this._d=s+this._d|0,this._e=u+this._e|0},s.prototype._hash=function(){var e=Buffer.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=s},function(e,t,r){var n=r(5),i=r(54),Buffer=r(4).Buffer,o=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function s(){this.init(),this._w=a,i.call(this,64,56)}function f(e){return e<<5|e>>>27}function c(e){return e<<30|e>>>2}function u(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}n(s,i),s.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},s.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,i=0|this._b,a=0|this._c,s=0|this._d,h=0|this._e,d=0;d<16;++d)r[d]=e.readInt32BE(4*d);for(;d<80;++d)r[d]=(t=r[d-3]^r[d-8]^r[d-14]^r[d-16])<<1|t>>>31;for(var l=0;l<80;++l){var p=~~(l/20),b=f(n)+u(p,i,a,s)+h+r[l]+o[p]|0;h=s,s=a,a=c(i),i=n,n=b}this._a=n+this._a|0,this._b=i+this._b|0,this._c=a+this._c|0,this._d=s+this._d|0,this._e=h+this._e|0},s.prototype._hash=function(){var e=Buffer.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=s},function(e,t,r){var n=r(5),i=r(136),o=r(54),Buffer=r(4).Buffer,a=new Array(64);function s(){this.init(),this._w=a,o.call(this,64,56)}n(s,i),s.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},s.prototype._hash=function(){var e=Buffer.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},e.exports=s},function(e,t,r){var n=r(5),i=r(137),o=r(54),Buffer=r(4).Buffer,a=new Array(160);function s(){this.init(),this._w=a,o.call(this,128,112)}n(s,i),s.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},s.prototype._hash=function(){var e=Buffer.allocUnsafe(48);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e},e.exports=s},function(e,t,r){"use strict";var n=r(5),Buffer=r(4).Buffer,i=r(43),o=Buffer.alloc(128),a=64;function s(e,t){i.call(this,"digest"),"string"==typeof t&&(t=Buffer.from(t)),this._alg=e,this._key=t,t.length>a?t=e(t):t.length<a&&(t=Buffer.concat([t,o],a));for(var r=this._ipad=Buffer.allocUnsafe(a),n=this._opad=Buffer.allocUnsafe(a),s=0;s<a;s++)r[s]=54^t[s],n[s]=92^t[s];this._hash=[r]}n(s,i),s.prototype._update=function(e){this._hash.push(e)},s.prototype._final=function(){var e=this._alg(Buffer.concat(this._hash));return this._alg(Buffer.concat([this._opad,e]))},e.exports=s},function(e,t,r){e.exports=r(138)},function(e,t,r){(function(t,n){var i,o=r(139),a=r(140),s=r(141),Buffer=r(4).Buffer,f=t.crypto&&t.crypto.subtle,c={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},u=[];function h(e,t,r,n,i){return f.importKey("raw",e,{name:"PBKDF2"},!1,["deriveBits"]).then(function(e){return f.deriveBits({name:"PBKDF2",salt:t,iterations:r,hash:{name:i}},e,n<<3)}).then(function(e){return Buffer.from(e)})}e.exports=function(e,r,d,l,p,b){if(Buffer.isBuffer(e)||(e=Buffer.from(e,a)),Buffer.isBuffer(r)||(r=Buffer.from(r,a)),o(d,l),"function"==typeof p&&(b=p,p=void 0),"function"!=typeof b)throw new Error("No callback provided to pbkdf2");var v=c[(p=p||"sha1").toLowerCase()];if(!v||"function"!=typeof t.Promise)return n.nextTick(function(){var t;try{t=s(e,r,d,l,p)}catch(e){return b(e)}b(null,t)});!function(e,t){e.then(function(e){n.nextTick(function(){t(null,e)})},function(e){n.nextTick(function(){t(e)})})}(function(e){if(t.process&&!t.process.browser)return Promise.resolve(!1);if(!f||!f.importKey||!f.deriveBits)return Promise.resolve(!1);if(void 0!==u[e])return u[e];var r=h(i=i||Buffer.alloc(8),i,10,128,e).then(function(){return!0}).catch(function(){return!1});return u[e]=r,r}(v).then(function(t){return t?h(e,r,d,l,v):s(e,r,d,l,p)}),b)}}).call(t,r(29),r(32))},function(e,t,r){var n=r(82),i=r(83),o=r(276),a=r(282),s=r(100);function f(e,t,r){if(e=e.toLowerCase(),s[e])return i.createCipheriv(e,t,r);if(a[e])return new o({key:t,iv:r,mode:e});throw new TypeError("invalid suite type")}function c(e,t,r){if(e=e.toLowerCase(),s[e])return i.createDecipheriv(e,t,r);if(a[e])return new o({key:t,iv:r,mode:e,decrypt:!0});throw new TypeError("invalid suite type")}t.createCipher=t.Cipher=function(e,t){var r,i;if(e=e.toLowerCase(),s[e])r=s[e].key,i=s[e].iv;else{if(!a[e])throw new TypeError("invalid suite type");r=8*a[e].key,i=a[e].iv}var o=n(t,!1,r,i);return f(e,o.key,o.iv)},t.createCipheriv=t.Cipheriv=f,t.createDecipher=t.Decipher=function(e,t){var r,i;if(e=e.toLowerCase(),s[e])r=s[e].key,i=s[e].iv;else{if(!a[e])throw new TypeError("invalid suite type");r=8*a[e].key,i=a[e].iv}var o=n(t,!1,r,i);return c(e,o.key,o.iv)},t.createDecipheriv=t.Decipheriv=c,t.listCiphers=t.getCiphers=function(){return Object.keys(a).concat(i.getCiphers())}},function(e,t,r){"use strict";(function(Buffer){var t=r(5),n=r(266),i=new Array(16);function o(){n.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function a(e,t){return e<<t|e>>>32-t}function s(e,t,r,n,i,o,s){return a(e+(t&r|~t&n)+i+o|0,s)+t|0}function f(e,t,r,n,i,o,s){return a(e+(t&n|r&~n)+i+o|0,s)+t|0}function c(e,t,r,n,i,o,s){return a(e+(t^r^n)+i+o|0,s)+t|0}function u(e,t,r,n,i,o,s){return a(e+(r^(t|~n))+i+o|0,s)+t|0}t(o,n),o.prototype._update=function(){for(var e=i,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var r=this._a,n=this._b,o=this._c,a=this._d;n=u(n=u(n=u(n=u(n=c(n=c(n=c(n=c(n=f(n=f(n=f(n=f(n=s(n=s(n=s(n=s(n,o=s(o,a=s(a,r=s(r,n,o,a,e[0],3614090360,7),n,o,e[1],3905402710,12),r,n,e[2],606105819,17),a,r,e[3],3250441966,22),o=s(o,a=s(a,r=s(r,n,o,a,e[4],4118548399,7),n,o,e[5],1200080426,12),r,n,e[6],2821735955,17),a,r,e[7],4249261313,22),o=s(o,a=s(a,r=s(r,n,o,a,e[8],1770035416,7),n,o,e[9],2336552879,12),r,n,e[10],4294925233,17),a,r,e[11],2304563134,22),o=s(o,a=s(a,r=s(r,n,o,a,e[12],1804603682,7),n,o,e[13],4254626195,12),r,n,e[14],2792965006,17),a,r,e[15],1236535329,22),o=f(o,a=f(a,r=f(r,n,o,a,e[1],4129170786,5),n,o,e[6],3225465664,9),r,n,e[11],643717713,14),a,r,e[0],3921069994,20),o=f(o,a=f(a,r=f(r,n,o,a,e[5],3593408605,5),n,o,e[10],38016083,9),r,n,e[15],3634488961,14),a,r,e[4],3889429448,20),o=f(o,a=f(a,r=f(r,n,o,a,e[9],568446438,5),n,o,e[14],3275163606,9),r,n,e[3],4107603335,14),a,r,e[8],1163531501,20),o=f(o,a=f(a,r=f(r,n,o,a,e[13],2850285829,5),n,o,e[2],4243563512,9),r,n,e[7],1735328473,14),a,r,e[12],2368359562,20),o=c(o,a=c(a,r=c(r,n,o,a,e[5],4294588738,4),n,o,e[8],2272392833,11),r,n,e[11],1839030562,16),a,r,e[14],4259657740,23),o=c(o,a=c(a,r=c(r,n,o,a,e[1],2763975236,4),n,o,e[4],1272893353,11),r,n,e[7],4139469664,16),a,r,e[10],3200236656,23),o=c(o,a=c(a,r=c(r,n,o,a,e[13],681279174,4),n,o,e[0],3936430074,11),r,n,e[3],3572445317,16),a,r,e[6],76029189,23),o=c(o,a=c(a,r=c(r,n,o,a,e[9],3654602809,4),n,o,e[12],3873151461,11),r,n,e[15],530742520,16),a,r,e[2],3299628645,23),o=u(o,a=u(a,r=u(r,n,o,a,e[0],4096336452,6),n,o,e[7],1126891415,10),r,n,e[14],2878612391,15),a,r,e[5],4237533241,21),o=u(o,a=u(a,r=u(r,n,o,a,e[12],1700485571,6),n,o,e[3],2399980690,10),r,n,e[10],4293915773,15),a,r,e[1],2240044497,21),o=u(o,a=u(a,r=u(r,n,o,a,e[8],1873313359,6),n,o,e[15],4264355552,10),r,n,e[6],2734768916,15),a,r,e[13],1309151649,21),o=u(o,a=u(a,r=u(r,n,o,a,e[4],4149444226,6),n,o,e[11],3174756917,10),r,n,e[2],718787259,15),a,r,e[9],3951481745,21),this._a=this._a+r|0,this._b=this._b+n|0,this._c=this._c+o|0,this._d=this._d+a|0},o.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=new Buffer(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},e.exports=o}).call(t,r(3).Buffer)},function(e,t,r){"use strict";var Buffer=r(4).Buffer,n=r(33).Transform;function i(e){n.call(this),this._block=Buffer.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}r(5)(i,n),i.prototype._transform=function(e,t,r){var n=null;try{this.update(e,t)}catch(e){n=e}r(n)},i.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(e){t=e}e(t)},i.prototype.update=function(e,t){if(function(e,t){if(!Buffer.isBuffer(e)&&"string"!=typeof e)throw new TypeError(t+" must be a string or a buffer")}(e,"Data"),this._finalized)throw new Error("Digest already called");Buffer.isBuffer(e)||(e=Buffer.from(e,t));for(var r=this._block,n=0;this._blockOffset+e.length-n>=this._blockSize;){for(var i=this._blockOffset;i<this._blockSize;)r[i++]=e[n++];this._update(),this._blockOffset=0}for(;n<e.length;)r[this._blockOffset++]=e[n++];for(var o=0,a=8*e.length;a>0;++o)this._length[o]+=a,(a=this._length[o]/4294967296|0)>0&&(this._length[o]-=4294967296*a);return this},i.prototype._update=function(){throw new Error("_update is not implemented")},i.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();void 0!==e&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var r=0;r<4;++r)this._length[r]=0;return t},i.prototype._digest=function(){throw new Error("_digest is not implemented")},e.exports=i},function(e,t,r){var n=r(100),i=r(145),Buffer=r(4).Buffer,o=r(146),a=r(43),s=r(84),f=r(82);function c(e,t,r){a.call(this),this._cache=new h,this._cipher=new s.AES(t),this._prev=Buffer.from(r),this._mode=e,this._autopadding=!0}r(5)(c,a),c.prototype._update=function(e){var t,r;this._cache.add(e);for(var n=[];t=this._cache.get();)r=this._mode.encrypt(this,t),n.push(r);return Buffer.concat(n)};var u=Buffer.alloc(16,16);function h(){this.cache=Buffer.allocUnsafe(0)}function d(e,t,r){var a=n[e.toLowerCase()];if(!a)throw new TypeError("invalid suite type");if("string"==typeof t&&(t=Buffer.from(t)),t.length!==a.key/8)throw new TypeError("invalid key length "+t.length);if("string"==typeof r&&(r=Buffer.from(r)),"GCM"!==a.mode&&r.length!==a.iv)throw new TypeError("invalid iv length "+r.length);return"stream"===a.type?new o(a.module,t,r):"auth"===a.type?new i(a.module,t,r):new c(a.module,t,r)}c.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return e=this._mode.encrypt(this,e),this._cipher.scrub(),e;if(!e.equals(u))throw this._cipher.scrub(),new Error("data not multiple of block length")},c.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},h.prototype.add=function(e){this.cache=Buffer.concat([this.cache,e])},h.prototype.get=function(){if(this.cache.length>15){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null},h.prototype.flush=function(){for(var e=16-this.cache.length,t=Buffer.allocUnsafe(e),r=-1;++r<e;)t.writeUInt8(e,r);return Buffer.concat([this.cache,t])},t.createCipheriv=d,t.createCipher=function(e,t){var r=n[e.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var i=f(t,!1,r.key,r.iv);return d(e,i.key,i.iv)}},function(e,t){t.encrypt=function(e,t){return e._cipher.encryptBlock(t)},t.decrypt=function(e,t){return e._cipher.decryptBlock(t)}},function(e,t,r){var n=r(55);t.encrypt=function(e,t){var r=n(t,e._prev);return e._prev=e._cipher.encryptBlock(r),e._prev},t.decrypt=function(e,t){var r=e._prev;e._prev=t;var i=e._cipher.decryptBlock(t);return n(i,r)}},function(e,t,r){var Buffer=r(4).Buffer,n=r(55);function i(e,t,r){var i=t.length,o=n(t,e._cache);return e._cache=e._cache.slice(i),e._prev=Buffer.concat([e._prev,r?t:o]),o}t.encrypt=function(e,t,r){for(var n,o=Buffer.allocUnsafe(0);t.length;){if(0===e._cache.length&&(e._cache=e._cipher.encryptBlock(e._prev),e._prev=Buffer.allocUnsafe(0)),!(e._cache.length<=t.length)){o=Buffer.concat([o,i(e,t,r)]);break}n=e._cache.length,o=Buffer.concat([o,i(e,t.slice(0,n),r)]),t=t.slice(n)}return o}},function(e,t,r){var Buffer=r(4).Buffer;function n(e,t,r){var n=e._cipher.encryptBlock(e._prev)[0]^t;return e._prev=Buffer.concat([e._prev.slice(1),Buffer.from([r?t:n])]),n}t.encrypt=function(e,t,r){for(var i=t.length,o=Buffer.allocUnsafe(i),a=-1;++a<i;)o[a]=n(e,t[a],r);return o}},function(e,t,r){var Buffer=r(4).Buffer;function n(e,t,r){for(var n,o,a,s=-1,f=0;++s<8;)n=e._cipher.encryptBlock(e._prev),o=t&1<<7-s?128:0,f+=(128&(a=n[0]^o))>>s%8,e._prev=i(e._prev,r?o:a);return f}function i(e,t){var r=e.length,n=-1,i=Buffer.allocUnsafe(e.length);for(e=Buffer.concat([e,Buffer.from([t])]);++n<r;)i[n]=e[n]<<1|e[n+1]>>7;return i}t.encrypt=function(e,t,r){for(var i=t.length,o=Buffer.allocUnsafe(i),a=-1;++a<i;)o[a]=n(e,t[a],r);return o}},function(e,t,r){(function(Buffer){var e=r(55);function n(e){return e._prev=e._cipher.encryptBlock(e._prev),e._prev}t.encrypt=function(t,r){for(;t._cache.length<r.length;)t._cache=Buffer.concat([t._cache,n(t)]);var i=t._cache.slice(0,r.length);return t._cache=t._cache.slice(r.length),e(r,i)}}).call(t,r(3).Buffer)},function(e,t,r){var Buffer=r(4).Buffer,n=Buffer.alloc(16,0);function i(e){var t=Buffer.allocUnsafe(16);return t.writeUInt32BE(e[0]>>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function o(e){this.h=e,this.state=Buffer.alloc(16,0),this.cache=Buffer.allocUnsafe(0)}o.prototype.ghash=function(e){for(var t=-1;++t<e.length;)this.state[t]^=e[t];this._multiply()},o.prototype._multiply=function(){for(var e,t,r,n=[(e=this.h).readUInt32BE(0),e.readUInt32BE(4),e.readUInt32BE(8),e.readUInt32BE(12)],o=[0,0,0,0],a=-1;++a<128;){for(0!=(this.state[~~(a/8)]&1<<7-a%8)&&(o[0]^=n[0],o[1]^=n[1],o[2]^=n[2],o[3]^=n[3]),r=0!=(1&n[3]),t=3;t>0;t--)n[t]=n[t]>>>1|(1&n[t-1])<<31;n[0]=n[0]>>>1,r&&(n[0]=n[0]^225<<24)}this.state=i(o)},o.prototype.update=function(e){var t;for(this.cache=Buffer.concat([this.cache,e]);this.cache.length>=16;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},o.prototype.final=function(e,t){return this.cache.length&&this.ghash(Buffer.concat([this.cache,n],16)),this.ghash(i([0,e,0,t])),this.state},e.exports=o},function(e,t,r){var n=r(145),Buffer=r(4).Buffer,i=r(100),o=r(146),a=r(43),s=r(84),f=r(82);function c(e,t,r){a.call(this),this._cache=new u,this._last=void 0,this._cipher=new s.AES(t),this._prev=Buffer.from(r),this._mode=e,this._autopadding=!0}function u(){this.cache=Buffer.allocUnsafe(0)}function h(e,t,r){var a=i[e.toLowerCase()];if(!a)throw new TypeError("invalid suite type");if("string"==typeof r&&(r=Buffer.from(r)),"GCM"!==a.mode&&r.length!==a.iv)throw new TypeError("invalid iv length "+r.length);if("string"==typeof t&&(t=Buffer.from(t)),t.length!==a.key/8)throw new TypeError("invalid key length "+t.length);return"stream"===a.type?new o(a.module,t,r,!0):"auth"===a.type?new n(a.module,t,r,!0):new c(a.module,t,r)}r(5)(c,a),c.prototype._update=function(e){var t,r;this._cache.add(e);for(var n=[];t=this._cache.get(this._autopadding);)r=this._mode.decrypt(this,t),n.push(r);return Buffer.concat(n)},c.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return function(e){var t=e[15],r=-1;for(;++r<t;)if(e[r+(16-t)]!==t)throw new Error("unable to decrypt data");if(16===t)return;return e.slice(0,16-t)}(this._mode.decrypt(this,e));if(e)throw new Error("data not multiple of block length")},c.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},u.prototype.add=function(e){this.cache=Buffer.concat([this.cache,e])},u.prototype.get=function(e){var t;if(e){if(this.cache.length>16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t}else if(this.cache.length>=16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t;return null},u.prototype.flush=function(){if(this.cache.length)return this.cache},t.createDecipher=function(e,t){var r=i[e.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var n=f(t,!1,r.key,r.iv);return h(e,n.key,n.iv)},t.createDecipheriv=h},function(e,t,r){(function(Buffer){var t=r(43),n=r(101),i=r(5),o={"des-ede3-cbc":n.CBC.instantiate(n.EDE),"des-ede3":n.EDE,"des-ede-cbc":n.CBC.instantiate(n.EDE),"des-ede":n.EDE,"des-cbc":n.CBC.instantiate(n.DES),"des-ecb":n.DES};function a(e){t.call(this);var r,n=e.mode.toLowerCase(),i=o[n];r=e.decrypt?"decrypt":"encrypt";var a=e.key;"des-ede"!==n&&"des-ede-cbc"!==n||(a=Buffer.concat([a,a.slice(0,8)]));var s=e.iv;this._des=i.create({key:a,iv:s,type:r})}o.des=o["des-cbc"],o.des3=o["des-ede3-cbc"],e.exports=a,i(a,t),a.prototype._update=function(e){return new Buffer(this._des.update(e))},a.prototype._final=function(){return new Buffer(this._des.final())}}).call(t,r(3).Buffer)},function(e,t,r){"use strict";t.readUInt32BE=function(e,t){return(e[0+t]<<24|e[1+t]<<16|e[2+t]<<8|e[3+t])>>>0},t.writeUInt32BE=function(e,t,r){e[0+r]=t>>>24,e[1+r]=t>>>16&255,e[2+r]=t>>>8&255,e[3+r]=255&t},t.ip=function(e,t,r,n){for(var i=0,o=0,a=6;a>=0;a-=2){for(var s=0;s<=24;s+=8)i<<=1,i|=t>>>s+a&1;for(s=0;s<=24;s+=8)i<<=1,i|=e>>>s+a&1}for(a=6;a>=0;a-=2){for(s=1;s<=25;s+=8)o<<=1,o|=t>>>s+a&1;for(s=1;s<=25;s+=8)o<<=1,o|=e>>>s+a&1}r[n+0]=i>>>0,r[n+1]=o>>>0},t.rip=function(e,t,r,n){for(var i=0,o=0,a=0;a<4;a++)for(var s=24;s>=0;s-=8)i<<=1,i|=t>>>s+a&1,i<<=1,i|=e>>>s+a&1;for(a=4;a<8;a++)for(s=24;s>=0;s-=8)o<<=1,o|=t>>>s+a&1,o<<=1,o|=e>>>s+a&1;r[n+0]=i>>>0,r[n+1]=o>>>0},t.pc1=function(e,t,r,n){for(var i=0,o=0,a=7;a>=5;a--){for(var s=0;s<=24;s+=8)i<<=1,i|=t>>s+a&1;for(s=0;s<=24;s+=8)i<<=1,i|=e>>s+a&1}for(s=0;s<=24;s+=8)i<<=1,i|=t>>s+a&1;for(a=1;a<=3;a++){for(s=0;s<=24;s+=8)o<<=1,o|=t>>s+a&1;for(s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1}for(s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1;r[n+0]=i>>>0,r[n+1]=o>>>0},t.r28shl=function(e,t){return e<<t&268435455|e>>>28-t};var n=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];t.pc2=function(e,t,r,i){for(var o=0,a=0,s=n.length>>>1,f=0;f<s;f++)o<<=1,o|=e>>>n[f]&1;for(f=s;f<n.length;f++)a<<=1,a|=t>>>n[f]&1;r[i+0]=o>>>0,r[i+1]=a>>>0},t.expand=function(e,t,r){var n=0,i=0;n=(1&e)<<5|e>>>27;for(var o=23;o>=15;o-=4)n<<=6,n|=e>>>o&63;for(o=11;o>=3;o-=4)i|=e>>>o&63,i<<=6;i|=(31&e)<<1|e>>>31,t[r+0]=n>>>0,t[r+1]=i>>>0};var i=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];t.substitute=function(e,t){for(var r=0,n=0;n<4;n++){r<<=4,r|=i[64*n+(e>>>18-6*n&63)]}for(n=0;n<4;n++){r<<=4,r|=i[256+64*n+(t>>>18-6*n&63)]}return r>>>0};var o=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];t.permute=function(e){for(var t=0,r=0;r<o.length;r++)t<<=1,t|=e>>>o[r]&1;return t>>>0},t.padSplit=function(e,t,r){for(var n=e.toString(2);n.length<t;)n="0"+n;for(var i=[],o=0;o<t;o+=r)i.push(n.slice(o,o+r));return i.join(" ")}},function(e,t,r){"use strict";var n=r(30);function i(e){this.options=e,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}e.exports=i,i.prototype._init=function(){},i.prototype.update=function(e){return 0===e.length?[]:"decrypt"===this.type?this._updateDecrypt(e):this._updateEncrypt(e)},i.prototype._buffer=function(e,t){for(var r=Math.min(this.buffer.length-this.bufferOff,e.length-t),n=0;n<r;n++)this.buffer[this.bufferOff+n]=e[t+n];return this.bufferOff+=r,r},i.prototype._flushBuffer=function(e,t){return this._update(this.buffer,0,e,t),this.bufferOff=0,this.blockSize},i.prototype._updateEncrypt=function(e){var t=0,r=0,n=(this.bufferOff+e.length)/this.blockSize|0,i=new Array(n*this.blockSize);0!==this.bufferOff&&(t+=this._buffer(e,t),this.bufferOff===this.buffer.length&&(r+=this._flushBuffer(i,r)));for(var o=e.length-(e.length-t)%this.blockSize;t<o;t+=this.blockSize)this._update(e,t,i,r),r+=this.blockSize;for(;t<e.length;t++,this.bufferOff++)this.buffer[this.bufferOff]=e[t];return i},i.prototype._updateDecrypt=function(e){for(var t=0,r=0,n=Math.ceil((this.bufferOff+e.length)/this.blockSize)-1,i=new Array(n*this.blockSize);n>0;n--)t+=this._buffer(e,t),r+=this._flushBuffer(i,r);return t+=this._buffer(e,t),i},i.prototype.final=function(e){var t,r;return e&&(t=this.update(e)),r="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),t?t.concat(r):r},i.prototype._pad=function(e,t){if(0===t)return!1;for(;t<e.length;)e[t++]=0;return!0},i.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var e=new Array(this.blockSize);return this._update(this.buffer,0,e,0),e},i.prototype._unpad=function(e){return e},i.prototype._finalDecrypt=function(){n.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var e=new Array(this.blockSize);return this._flushBuffer(e,0),this._unpad(e)}},function(e,t,r){"use strict";var n=r(30),i=r(5),o=r(101),a=o.utils,s=o.Cipher;function f(e){s.call(this,e);var t=new function(){this.tmp=new Array(2),this.keys=null};this._desState=t,this.deriveKeys(t,e.key)}i(f,s),e.exports=f,f.create=function(e){return new f(e)};var c=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];f.prototype.deriveKeys=function(e,t){e.keys=new Array(32),n.equal(t.length,this.blockSize,"Invalid key length");var r=a.readUInt32BE(t,0),i=a.readUInt32BE(t,4);a.pc1(r,i,e.tmp,0),r=e.tmp[0],i=e.tmp[1];for(var o=0;o<e.keys.length;o+=2){var s=c[o>>>1];r=a.r28shl(r,s),i=a.r28shl(i,s),a.pc2(r,i,e.keys,o)}},f.prototype._update=function(e,t,r,n){var i=this._desState,o=a.readUInt32BE(e,t),s=a.readUInt32BE(e,t+4);a.ip(o,s,i.tmp,0),o=i.tmp[0],s=i.tmp[1],"encrypt"===this.type?this._encrypt(i,o,s,i.tmp,0):this._decrypt(i,o,s,i.tmp,0),o=i.tmp[0],s=i.tmp[1],a.writeUInt32BE(r,o,n),a.writeUInt32BE(r,s,n+4)},f.prototype._pad=function(e,t){for(var r=e.length-t,n=t;n<e.length;n++)e[n]=r;return!0},f.prototype._unpad=function(e){for(var t=e[e.length-1],r=e.length-t;r<e.length;r++)n.equal(e[r],t);return e.slice(0,e.length-t)},f.prototype._encrypt=function(e,t,r,n,i){for(var o=t,s=r,f=0;f<e.keys.length;f+=2){var c=e.keys[f],u=e.keys[f+1];a.expand(s,e.tmp,0),c^=e.tmp[0],u^=e.tmp[1];var h=a.substitute(c,u),d=s;s=(o^a.permute(h))>>>0,o=d}a.rip(s,o,n,i)},f.prototype._decrypt=function(e,t,r,n,i){for(var o=r,s=t,f=e.keys.length-2;f>=0;f-=2){var c=e.keys[f],u=e.keys[f+1];a.expand(o,e.tmp,0),c^=e.tmp[0],u^=e.tmp[1];var h=a.substitute(c,u),d=o;o=(s^a.permute(h))>>>0,s=d}a.rip(o,s,n,i)}},function(e,t,r){"use strict";var n=r(30),i=r(5),o={};t.instantiate=function(e){function t(t){e.call(this,t),this._cbcInit()}i(t,e);for(var r=Object.keys(o),n=0;n<r.length;n++){var a=r[n];t.prototype[a]=o[a]}return t.create=function(e){return new t(e)},t},o._cbcInit=function(){var e=new function(e){n.equal(e.length,8,"Invalid IV length"),this.iv=new Array(8);for(var t=0;t<this.iv.length;t++)this.iv[t]=e[t]}(this.options.iv);this._cbcState=e},o._update=function(e,t,r,n){var i=this._cbcState,o=this.constructor.super_.prototype,a=i.iv;if("encrypt"===this.type){for(var s=0;s<this.blockSize;s++)a[s]^=e[t+s];o._update.call(this,a,0,r,n);for(s=0;s<this.blockSize;s++)a[s]=r[n+s]}else{o._update.call(this,e,t,r,n);for(s=0;s<this.blockSize;s++)r[n+s]^=a[s];for(s=0;s<this.blockSize;s++)a[s]=e[t+s]}}},function(e,t,r){"use strict";var n=r(30),i=r(5),o=r(101),a=o.Cipher,s=o.DES;function f(e){a.call(this,e);var t=new function(e,t){n.equal(t.length,24,"Invalid key length");var r=t.slice(0,8),i=t.slice(8,16),o=t.slice(16,24);this.ciphers="encrypt"===e?[s.create({type:"encrypt",key:r}),s.create({type:"decrypt",key:i}),s.create({type:"encrypt",key:o})]:[s.create({type:"decrypt",key:o}),s.create({type:"encrypt",key:i}),s.create({type:"decrypt",key:r})]}(this.type,this.options.key);this._edeState=t}i(f,a),e.exports=f,f.create=function(e){return new f(e)},f.prototype._update=function(e,t,r,n){var i=this._edeState;i.ciphers[0]._update(e,t,r,n),i.ciphers[1]._update(r,n,r,n),i.ciphers[2]._update(r,n,r,n)},f.prototype._pad=s.prototype._pad,f.prototype._unpad=s.prototype._unpad},function(e,t){t["des-ecb"]={key:8,iv:0},t["des-cbc"]=t.des={key:8,iv:8},t["des-ede3-cbc"]=t.des3={key:24,iv:8},t["des-ede3"]={key:24,iv:0},t["des-ede-cbc"]={key:16,iv:8},t["des-ede"]={key:16,iv:0}},function(e,t,r){(function(Buffer){var e=r(147),n=r(286),i=r(287);var o={binary:!0,hex:!0,base64:!0};t.DiffieHellmanGroup=t.createDiffieHellmanGroup=t.getDiffieHellman=function(e){var t=new Buffer(n[e].prime,"hex"),r=new Buffer(n[e].gen,"hex");return new i(t,r)},t.createDiffieHellman=t.DiffieHellman=function t(r,n,a,s){return Buffer.isBuffer(n)||void 0===o[n]?t(r,"binary",n,a):(n=n||"binary",s=s||"binary",a=a||new Buffer([2]),Buffer.isBuffer(a)||(a=new Buffer(a,s)),"number"==typeof r?new i(e(r,a),a,!0):(Buffer.isBuffer(r)||(r=new Buffer(r,n)),new i(r,a,!0)))}}).call(t,r(3).Buffer)},,,function(e,t){e.exports={modp1:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}},function(e,t,r){(function(Buffer){var t=r(9),n=new(r(149)),i=new t(24),o=new t(11),a=new t(10),s=new t(3),f=new t(7),c=r(147),u=r(48);function h(e,r){return r=r||"utf8",Buffer.isBuffer(e)||(e=new Buffer(e,r)),this._pub=new t(e),this}function d(e,r){return r=r||"utf8",Buffer.isBuffer(e)||(e=new Buffer(e,r)),this._priv=new t(e),this}e.exports=p;var l={};function p(e,r,n){this.setGenerator(r),this.__prime=new t(e),this._prime=t.mont(this.__prime),this._primeLen=e.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,n?(this.setPublicKey=h,this.setPrivateKey=d):this._primeCode=8}function b(e,t){var r=new Buffer(e.toArray());return t?r.toString(t):r}Object.defineProperty(p.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function(e,t){var r=t.toString("hex"),u=[r,e.toString(16)].join("_");if(u in l)return l[u];var h,d=0;if(e.isEven()||!c.simpleSieve||!c.fermatTest(e)||!n.test(e))return d+=1,d+="02"===r||"05"===r?8:4,l[u]=d,d;switch(n.test(e.shrn(1))||(d+=2),r){case"02":e.mod(i).cmp(o)&&(d+=8);break;case"05":(h=e.mod(a)).cmp(s)&&h.cmp(f)&&(d+=8);break;default:d+=4}return l[u]=d,d}(this.__prime,this.__gen)),this._primeCode}}),p.prototype.generateKeys=function(){return this._priv||(this._priv=new t(u(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},p.prototype.computeSecret=function(e){var r=(e=(e=new t(e)).toRed(this._prime)).redPow(this._priv).fromRed(),n=new Buffer(r.toArray()),i=this.getPrime();if(n.length<i.length){var o=new Buffer(i.length-n.length);o.fill(0),n=Buffer.concat([o,n])}return n},p.prototype.getPublicKey=function(e){return b(this._pub,e)},p.prototype.getPrivateKey=function(e){return b(this._priv,e)},p.prototype.getPrime=function(e){return b(this.__prime,e)},p.prototype.getGenerator=function(e){return b(this._gen,e)},p.prototype.setGenerator=function(e,r){return r=r||"utf8",Buffer.isBuffer(e)||(e=new Buffer(e,r)),this.__gen=e,this._gen=new t(e),this}}).call(t,r(3).Buffer)},function(e,t,r){(function(Buffer){var t=r(36),n=r(33),i=r(5),o=r(289),a=r(324),s=r(138);function f(e){n.Writable.call(this);var r=s[e];if(!r)throw new Error("Unknown message digest");this._hashType=r.hash,this._hash=t(r.hash),this._tag=r.id,this._signType=r.sign}function c(e){n.Writable.call(this);var r=s[e];if(!r)throw new Error("Unknown message digest");this._hash=t(r.hash),this._tag=r.id,this._signType=r.sign}function u(e){return new f(e)}function h(e){return new c(e)}Object.keys(s).forEach(function(e){s[e].id=new Buffer(s[e].id,"hex"),s[e.toLowerCase()]=s[e]}),i(f,n.Writable),f.prototype._write=function(e,t,r){this._hash.update(e),r()},f.prototype.update=function(e,t){return"string"==typeof e&&(e=new Buffer(e,t)),this._hash.update(e),this},f.prototype.sign=function(e,t){this.end();var r=this._hash.digest(),n=o(r,e,this._hashType,this._signType,this._tag);return t?n.toString(t):n},i(c,n.Writable),c.prototype._write=function(e,t,r){this._hash.update(e),r()},c.prototype.update=function(e,t){return"string"==typeof e&&(e=new Buffer(e,t)),this._hash.update(e),this},c.prototype.verify=function(e,t,r){"string"==typeof t&&(t=new Buffer(t,r)),this.end();var n=this._hash.digest();return a(t,n,e,this._signType,this._tag)},e.exports={Sign:u,Verify:h,createSign:u,createVerify:h}}).call(t,r(3).Buffer)},function(e,t,r){(function(Buffer){var t=r(80),n=r(103),i=r(24).ec,o=r(9),a=r(86),s=r(158);function f(e,r,n,i){if((e=new Buffer(e.toArray())).length<r.byteLength()){var o=new Buffer(r.byteLength()-e.length);o.fill(0),e=Buffer.concat([o,e])}var a=n.length,s=function(e,t){e=(e=c(e,t)).mod(t);var r=new Buffer(e.toArray());if(r.length<t.byteLength()){var n=new Buffer(t.byteLength()-r.length);n.fill(0),r=Buffer.concat([n,r])}return r}(n,r),f=new Buffer(a);f.fill(1);var u=new Buffer(a);return u.fill(0),u=t(i,u).update(f).update(new Buffer([0])).update(e).update(s).digest(),f=t(i,u).update(f).digest(),{k:u=t(i,u).update(f).update(new Buffer([1])).update(e).update(s).digest(),v:f=t(i,u).update(f).digest()}}function c(e,t){var r=new o(e),n=(e.length<<3)-t.bitLength();return n>0&&r.ishrn(n),r}function u(e,r,n){var i,o;do{for(i=new Buffer(0);8*i.length<e.bitLength();)r.v=t(n,r.k).update(r.v).digest(),i=Buffer.concat([i,r.v]);o=c(i,e),r.k=t(n,r.k).update(r.v).update(new Buffer([0])).digest(),r.v=t(n,r.k).update(r.v).digest()}while(-1!==o.cmp(e));return o}function h(e,t,r,n){return e.toRed(o.mont(r)).redPow(t).fromRed().mod(n)}e.exports=function(e,t,r,d,l){var p=a(t);if(p.curve){if("ecdsa"!==d&&"ecdsa/rsa"!==d)throw new Error("wrong private key type");return function(e,t){var r=s[t.curve.join(".")];if(!r)throw new Error("unknown curve "+t.curve.join("."));var n=new i(r).keyFromPrivate(t.privateKey).sign(e);return new Buffer(n.toDER())}(e,p)}if("dsa"===p.type){if("dsa"!==d)throw new Error("wrong private key type");return function(e,t,r){for(var n,i=t.params.priv_key,a=t.params.p,s=t.params.q,d=t.params.g,l=new o(0),p=c(e,s).mod(s),b=!1,v=f(i,s,e,r);!1===b;)n=u(s,v,r),l=h(d,n,a,s),0===(b=n.invm(s).imul(p.add(i.mul(l))).mod(s)).cmpn(0)&&(b=!1,l=new o(0));return function(e,t){e=e.toArray(),t=t.toArray(),128&e[0]&&(e=[0].concat(e)),128&t[0]&&(t=[0].concat(t));var r=[48,e.length+t.length+4,2,e.length];return r=r.concat(e,[2,t.length],t),new Buffer(r)}(l,b)}(e,p,r)}if("rsa"!==d&&"ecdsa/rsa"!==d)throw new Error("wrong private key type");e=Buffer.concat([l,e]);for(var b=p.modulus.byteLength(),v=[0,1];e.length+v.length+1<b;)v.push(255);v.push(0);for(var y=-1;++y<e.length;)v.push(e[y]);return n(v,p)},e.exports.getKey=f,e.exports.makeKey=u}).call(t,r(3).Buffer)},function(e,t){e.exports={_args:[["elliptic@6.4.0","/Users/enzo/Copy/projects/elevenyellow/coinfy"]],_from:"elliptic@6.4.0",_id:"elliptic@6.4.0",_inBundle:!1,_integrity:"sha1-ysmvh2LIWDYYcAPI3+GT5eLq5d8=",_location:"/elliptic",_phantomChildren:{},_requested:{type:"version",registry:!0,raw:"elliptic@6.4.0",name:"elliptic",escapedName:"elliptic",rawSpec:"6.4.0",saveSpec:null,fetchSpec:"6.4.0"},_requiredBy:["/browserify-sign","/create-ecdh","/secp256k1"],_resolved:"https://registry.npmjs.org/elliptic/-/elliptic-6.4.0.tgz",_spec:"6.4.0",_where:"/Users/enzo/Copy/projects/elevenyellow/coinfy",author:{name:"Fedor Indutny",email:"fedor@indutny.com"},bugs:{url:"https://github.com/indutny/elliptic/issues"},dependencies:{"bn.js":"^4.4.0",brorand:"^1.0.1","hash.js":"^1.0.0","hmac-drbg":"^1.0.0",inherits:"^2.0.1","minimalistic-assert":"^1.0.0","minimalistic-crypto-utils":"^1.0.0"},description:"EC cryptography",devDependencies:{brfs:"^1.4.3",coveralls:"^2.11.3",grunt:"^0.4.5","grunt-browserify":"^5.0.0","grunt-cli":"^1.2.0","grunt-contrib-connect":"^1.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^1.0.1","grunt-mocha-istanbul":"^3.0.1","grunt-saucelabs":"^8.6.2",istanbul:"^0.4.2",jscs:"^2.9.0",jshint:"^2.6.0",mocha:"^2.1.0"},files:["lib"],homepage:"https://github.com/indutny/elliptic",keywords:["EC","Elliptic","curve","Cryptography"],license:"MIT",main:"lib/elliptic.js",name:"elliptic",repository:{type:"git",url:"git+ssh://git@github.com/indutny/elliptic.git"},scripts:{jscs:"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js",jshint:"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js",lint:"npm run jscs && npm run jshint",test:"npm run lint && npm run unit",unit:"istanbul test _mocha --reporter=spec test/index.js",version:"grunt dist && git add dist/"},version:"6.4.0"}},function(e,t,r){"use strict";var n=t,i=r(9),o=r(30),a=r(104);n.assert=o,n.toArray=a.toArray,n.zero2=a.zero2,n.toHex=a.toHex,n.encode=a.encode,n.getNAF=function(e,t){for(var r=[],n=1<<t+1,i=e.clone();i.cmpn(1)>=0;){var o;if(i.isOdd()){var a=i.andln(n-1);o=a>(n>>1)-1?(n>>1)-a:a,i.isubn(o)}else o=0;r.push(o);for(var s=0!==i.cmpn(0)&&0===i.andln(n-1)?t+1:1,f=1;f<s;f++)r.push(0);i.iushrn(s)}return r},n.getJSF=function(e,t){var r=[[],[]];e=e.clone(),t=t.clone();for(var n=0,i=0;e.cmpn(-n)>0||t.cmpn(-i)>0;){var o,a,s,f=e.andln(3)+n&3,c=t.andln(3)+i&3;3===f&&(f=-1),3===c&&(c=-1),o=0==(1&f)?0:3!=(s=e.andln(7)+n&7)&&5!==s||2!==c?f:-f,r[0].push(o),a=0==(1&c)?0:3!=(s=t.andln(7)+i&7)&&5!==s||2!==f?c:-c,r[1].push(a),2*n===o+1&&(n=1-n),2*i===a+1&&(i=1-i),e.iushrn(1),t.iushrn(1)}return r},n.cachedProperty=function(e,t,r){var n="_"+t;e.prototype[t]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},n.parseBytes=function(e){return"string"==typeof e?n.toArray(e,"hex"):e},n.intFromLE=function(e){return new i(e,"hex","le")}},function(e,t,r){"use strict";var n=r(9),i=r(24).utils,o=i.getNAF,a=i.getJSF,s=i.assert;function f(e,t){this.type=e,this.p=new n(t.p,16),this.red=t.prime?n.red(t.prime):n.mont(this.p),this.zero=new n(0).toRed(this.red),this.one=new n(1).toRed(this.red),this.two=new n(2).toRed(this.red),this.n=t.n&&new n(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4);var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function c(e,t){this.curve=e,this.type=t,this.precomputed=null}e.exports=f,f.prototype.point=function(){throw new Error("Not implemented")},f.prototype.validate=function(){throw new Error("Not implemented")},f.prototype._fixedNafMul=function(e,t){s(e.precomputed);var r=e._getDoubles(),n=o(t,1),i=(1<<r.step+1)-(r.step%2==0?2:1);i/=3;for(var a=[],f=0;f<n.length;f+=r.step){var c=0;for(t=f+r.step-1;t>=f;t--)c=(c<<1)+n[t];a.push(c)}for(var u=this.jpoint(null,null,null),h=this.jpoint(null,null,null),d=i;d>0;d--){for(f=0;f<a.length;f++){(c=a[f])===d?h=h.mixedAdd(r.points[f]):c===-d&&(h=h.mixedAdd(r.points[f].neg()))}u=u.add(h)}return u.toP()},f.prototype._wnafMul=function(e,t){var r=4,n=e._getNAFPoints(r);r=n.wnd;for(var i=n.points,a=o(t,r),f=this.jpoint(null,null,null),c=a.length-1;c>=0;c--){for(t=0;c>=0&&0===a[c];c--)t++;if(c>=0&&t++,f=f.dblp(t),c<0)break;var u=a[c];s(0!==u),f="affine"===e.type?u>0?f.mixedAdd(i[u-1>>1]):f.mixedAdd(i[-u-1>>1].neg()):u>0?f.add(i[u-1>>1]):f.add(i[-u-1>>1].neg())}return"affine"===e.type?f.toP():f},f.prototype._wnafMulAdd=function(e,t,r,n,i){for(var s=this._wnafT1,f=this._wnafT2,c=this._wnafT3,u=0,h=0;h<n;h++){var d=(I=t[h])._getNAFPoints(e);s[h]=d.wnd,f[h]=d.points}for(h=n-1;h>=1;h-=2){var l=h-1,p=h;if(1===s[l]&&1===s[p]){var b=[t[l],null,null,t[p]];0===t[l].y.cmp(t[p].y)?(b[1]=t[l].add(t[p]),b[2]=t[l].toJ().mixedAdd(t[p].neg())):0===t[l].y.cmp(t[p].y.redNeg())?(b[1]=t[l].toJ().mixedAdd(t[p]),b[2]=t[l].add(t[p].neg())):(b[1]=t[l].toJ().mixedAdd(t[p]),b[2]=t[l].toJ().mixedAdd(t[p].neg()));var v=[-3,-1,-5,-7,0,7,5,1,3],y=a(r[l],r[p]);u=Math.max(y[0].length,u),c[l]=new Array(u),c[p]=new Array(u);for(var m=0;m<u;m++){var g=0|y[0][m],w=0|y[1][m];c[l][m]=v[3*(g+1)+(w+1)],c[p][m]=0,f[l]=b}}else c[l]=o(r[l],s[l]),c[p]=o(r[p],s[p]),u=Math.max(c[l].length,u),u=Math.max(c[p].length,u)}var _=this.jpoint(null,null,null),E=this._wnafT4;for(h=u;h>=0;h--){for(var S=0;h>=0;){var A=!0;for(m=0;m<n;m++)E[m]=0|c[m][h],0!==E[m]&&(A=!1);if(!A)break;S++,h--}if(h>=0&&S++,_=_.dblp(S),h<0)break;for(m=0;m<n;m++){var I,k=E[m];0!==k&&(k>0?I=f[m][k-1>>1]:k<0&&(I=f[m][-k-1>>1].neg()),_="affine"===I.type?_.mixedAdd(I):_.add(I))}}for(h=0;h<n;h++)f[h]=null;return i?_:_.toP()},f.BasePoint=c,c.prototype.eq=function(){throw new Error("Not implemented")},c.prototype.validate=function(){return this.curve.validate(this)},f.prototype.decodePoint=function(e,t){e=i.toArray(e,t);var r=this.p.byteLength();if((4===e[0]||6===e[0]||7===e[0])&&e.length-1==2*r)return 6===e[0]?s(e[e.length-1]%2==0):7===e[0]&&s(e[e.length-1]%2==1),this.point(e.slice(1,1+r),e.slice(1+r,1+2*r));if((2===e[0]||3===e[0])&&e.length-1===r)return this.pointFromX(e.slice(1,1+r),3===e[0]);throw new Error("Unknown point format")},c.prototype.encodeCompressed=function(e){return this.encode(e,!0)},c.prototype._encode=function(e){var t=this.curve.p.byteLength(),r=this.getX().toArray("be",t);return e?[this.getY().isEven()?2:3].concat(r):[4].concat(r,this.getY().toArray("be",t))},c.prototype.encode=function(e,t){return i.encode(this._encode(t),e)},c.prototype.precompute=function(e){if(this.precomputed)return this;var t={doubles:null,naf:null,beta:null};return t.naf=this._getNAFPoints(8),t.doubles=this._getDoubles(4,e),t.beta=this._getBeta(),this.precomputed=t,this},c.prototype._hasDoubles=function(e){if(!this.precomputed)return!1;var t=this.precomputed.doubles;return!!t&&t.points.length>=Math.ceil((e.bitLength()+1)/t.step)},c.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;i<t;i+=e){for(var o=0;o<e;o++)n=n.dbl();r.push(n)}return{step:e,points:r}},c.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var t=[this],r=(1<<e)-1,n=1===r?null:this.dbl(),i=1;i<r;i++)t[i]=t[i-1].add(n);return{wnd:e,points:t}},c.prototype._getBeta=function(){return null},c.prototype.dblp=function(e){for(var t=this,r=0;r<e;r++)t=t.dbl();return t}},function(e,t,r){"use strict";var n=r(85),i=r(24),o=r(9),a=r(5),s=n.base,f=i.utils.assert;function c(e){s.call(this,"short",e),this.a=new o(e.a,16).toRed(this.red),this.b=new o(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(e),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function Point(e,t,r,n){s.BasePoint.call(this,e,"affine"),null===t&&null===r?(this.x=null,this.y=null,this.inf=!0):(this.x=new o(t,16),this.y=new o(r,16),n&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function u(e,t,r,n){s.BasePoint.call(this,e,"jacobian"),null===t&&null===r&&null===n?(this.x=this.curve.one,this.y=this.curve.one,this.z=new o(0)):(this.x=new o(t,16),this.y=new o(r,16),this.z=new o(n,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}a(c,s),e.exports=c,c.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var t,r;if(e.beta)t=new o(e.beta,16).toRed(this.red);else{var n=this._getEndoRoots(this.p);t=(t=n[0].cmp(n[1])<0?n[0]:n[1]).toRed(this.red)}if(e.lambda)r=new o(e.lambda,16);else{var i=this._getEndoRoots(this.n);0===this.g.mul(i[0]).x.cmp(this.g.x.redMul(t))?r=i[0]:(r=i[1],f(0===this.g.mul(r).x.cmp(this.g.x.redMul(t))))}return{beta:t,lambda:r,basis:e.basis?e.basis.map(function(e){return{a:new o(e.a,16),b:new o(e.b,16)}}):this._getEndoBasis(r)}}},c.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:o.mont(e),r=new o(2).toRed(t).redInvm(),n=r.redNeg(),i=new o(3).toRed(t).redNeg().redSqrt().redMul(r);return[n.redAdd(i).fromRed(),n.redSub(i).fromRed()]},c.prototype._getEndoBasis=function(e){for(var t,r,n,i,a,s,f,c,u,h=this.n.ushrn(Math.floor(this.n.bitLength()/2)),d=e,l=this.n.clone(),p=new o(1),b=new o(0),v=new o(0),y=new o(1),m=0;0!==d.cmpn(0);){var g=l.div(d);c=l.sub(g.mul(d)),u=v.sub(g.mul(p));var w=y.sub(g.mul(b));if(!n&&c.cmp(h)<0)t=f.neg(),r=p,n=c.neg(),i=u;else if(n&&2==++m)break;f=c,l=d,d=c,v=p,p=u,y=b,b=w}a=c.neg(),s=u;var _=n.sqr().add(i.sqr());return a.sqr().add(s.sqr()).cmp(_)>=0&&(a=t,s=r),n.negative&&(n=n.neg(),i=i.neg()),a.negative&&(a=a.neg(),s=s.neg()),[{a:n,b:i},{a:a,b:s}]},c.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],n=t[1],i=n.b.mul(e).divRound(this.n),o=r.b.neg().mul(e).divRound(this.n),a=i.mul(r.a),s=o.mul(n.a),f=i.mul(r.b),c=o.mul(n.b);return{k1:e.sub(a).sub(s),k2:f.add(c).neg()}},c.prototype.pointFromX=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");var i=n.fromRed().isOdd();return(t&&!i||!t&&i)&&(n=n.redNeg()),this.point(e,n)},c.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,n=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(i).cmpn(0)},c.prototype._endoWnafMulAdd=function(e,t,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,o=0;o<e.length;o++){var a=this._endoSplit(t[o]),s=e[o],f=s._getBeta();a.k1.negative&&(a.k1.ineg(),s=s.neg(!0)),a.k2.negative&&(a.k2.ineg(),f=f.neg(!0)),n[2*o]=s,n[2*o+1]=f,i[2*o]=a.k1,i[2*o+1]=a.k2}for(var c=this._wnafMulAdd(1,n,i,2*o,r),u=0;u<2*o;u++)n[u]=null,i[u]=null;return c},a(Point,s.BasePoint),c.prototype.point=function(e,t,r){return new Point(this,e,t,r)},c.prototype.pointFromJSON=function(e,t){return Point.fromJSON(this,e,t)},Point.prototype._getBeta=function(){if(this.curve.endo){var e=this.precomputed;if(e&&e.beta)return e.beta;var t=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(e){var r=this.curve,n=function(e){return r.point(e.x.redMul(r.endo.beta),e.y)};e.beta=t,t.precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(n)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(n)}}}return t}},Point.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},Point.fromJSON=function(e,t,r){"string"==typeof t&&(t=JSON.parse(t));var n=e.point(t[0],t[1],r);if(!t[2])return n;function i(t){return e.point(t[0],t[1],r)}var o=t[2];return n.precomputed={beta:null,doubles:o.doubles&&{step:o.doubles.step,points:[n].concat(o.doubles.points.map(i))},naf:o.naf&&{wnd:o.naf.wnd,points:[n].concat(o.naf.points.map(i))}},n},Point.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},Point.prototype.isInfinity=function(){return this.inf},Point.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var r=t.redSqr().redISub(this.x).redISub(e.x),n=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},Point.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,r=this.x.redSqr(),n=e.redInvm(),i=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(n),o=i.redSqr().redISub(this.x.redAdd(this.x)),a=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)},Point.prototype.getX=function(){return this.x.fromRed()},Point.prototype.getY=function(){return this.y.fromRed()},Point.prototype.mul=function(e){return e=new o(e,16),this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},Point.prototype.mulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i):this.curve._wnafMulAdd(1,n,i,2)},Point.prototype.jmulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i,!0):this.curve._wnafMulAdd(1,n,i,2,!0)},Point.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},Point.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var r=this.precomputed,n=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return t},Point.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},a(u,s.BasePoint),c.prototype.jpoint=function(e,t,r){return new u(this,e,t,r)},u.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),n=this.y.redMul(t).redMul(e);return this.curve.point(r,n)},u.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},u.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(t),i=e.x.redMul(r),o=this.y.redMul(t.redMul(e.z)),a=e.y.redMul(r.redMul(this.z)),s=n.redSub(i),f=o.redSub(a);if(0===s.cmpn(0))return 0!==f.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=s.redSqr(),u=c.redMul(s),h=n.redMul(c),d=f.redSqr().redIAdd(u).redISub(h).redISub(h),l=f.redMul(h.redISub(d)).redISub(o.redMul(u)),p=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(d,l,p)},u.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,n=e.x.redMul(t),i=this.y,o=e.y.redMul(t).redMul(this.z),a=r.redSub(n),s=i.redSub(o);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var f=a.redSqr(),c=f.redMul(a),u=r.redMul(f),h=s.redSqr().redIAdd(c).redISub(u).redISub(u),d=s.redMul(u.redISub(h)).redISub(i.redMul(c)),l=this.z.redMul(a);return this.curve.jpoint(h,d,l)},u.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var t=this,r=0;r<e;r++)t=t.dbl();return t}var n=this.curve.a,i=this.curve.tinv,o=this.x,a=this.y,s=this.z,f=s.redSqr().redSqr(),c=a.redAdd(a);for(r=0;r<e;r++){var u=o.redSqr(),h=c.redSqr(),d=h.redSqr(),l=u.redAdd(u).redIAdd(u).redIAdd(n.redMul(f)),p=o.redMul(h),b=l.redSqr().redISub(p.redAdd(p)),v=p.redISub(b),y=l.redMul(v);y=y.redIAdd(y).redISub(d);var m=c.redMul(s);r+1<e&&(f=f.redMul(d)),o=b,s=m,c=y}return this.curve.jpoint(o,c.redMul(i),s)},u.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},u.prototype._zeroDbl=function(){var e,t,r;if(this.zOne){var n=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(n).redISub(o);a=a.redIAdd(a);var s=n.redAdd(n).redIAdd(n),f=s.redSqr().redISub(a).redISub(a),c=o.redIAdd(o);c=(c=c.redIAdd(c)).redIAdd(c),e=f,t=s.redMul(a.redISub(f)).redISub(c),r=this.y.redAdd(this.y)}else{var u=this.x.redSqr(),h=this.y.redSqr(),d=h.redSqr(),l=this.x.redAdd(h).redSqr().redISub(u).redISub(d);l=l.redIAdd(l);var p=u.redAdd(u).redIAdd(u),b=p.redSqr(),v=d.redIAdd(d);v=(v=v.redIAdd(v)).redIAdd(v),e=b.redISub(l).redISub(l),t=p.redMul(l.redISub(e)).redISub(v),r=(r=this.y.redMul(this.z)).redIAdd(r)}return this.curve.jpoint(e,t,r)},u.prototype._threeDbl=function(){var e,t,r;if(this.zOne){var n=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(n).redISub(o);a=a.redIAdd(a);var s=n.redAdd(n).redIAdd(n).redIAdd(this.curve.a),f=s.redSqr().redISub(a).redISub(a);e=f;var c=o.redIAdd(o);c=(c=c.redIAdd(c)).redIAdd(c),t=s.redMul(a.redISub(f)).redISub(c),r=this.y.redAdd(this.y)}else{var u=this.z.redSqr(),h=this.y.redSqr(),d=this.x.redMul(h),l=this.x.redSub(u).redMul(this.x.redAdd(u));l=l.redAdd(l).redIAdd(l);var p=d.redIAdd(d),b=(p=p.redIAdd(p)).redAdd(p);e=l.redSqr().redISub(b),r=this.y.redAdd(this.z).redSqr().redISub(h).redISub(u);var v=h.redSqr();v=(v=(v=v.redIAdd(v)).redIAdd(v)).redIAdd(v),t=l.redMul(p.redISub(e)).redISub(v)}return this.curve.jpoint(e,t,r)},u.prototype._dbl=function(){var e=this.curve.a,t=this.x,r=this.y,n=this.z,i=n.redSqr().redSqr(),o=t.redSqr(),a=r.redSqr(),s=o.redAdd(o).redIAdd(o).redIAdd(e.redMul(i)),f=t.redAdd(t),c=(f=f.redIAdd(f)).redMul(a),u=s.redSqr().redISub(c.redAdd(c)),h=c.redISub(u),d=a.redSqr();d=(d=(d=d.redIAdd(d)).redIAdd(d)).redIAdd(d);var l=s.redMul(h).redISub(d),p=r.redAdd(r).redMul(n);return this.curve.jpoint(u,l,p)},u.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr(),n=t.redSqr(),i=e.redAdd(e).redIAdd(e),o=i.redSqr(),a=this.x.redAdd(t).redSqr().redISub(e).redISub(n),s=(a=(a=(a=a.redIAdd(a)).redAdd(a).redIAdd(a)).redISub(o)).redSqr(),f=n.redIAdd(n);f=(f=(f=f.redIAdd(f)).redIAdd(f)).redIAdd(f);var c=i.redIAdd(a).redSqr().redISub(o).redISub(s).redISub(f),u=t.redMul(c);u=(u=u.redIAdd(u)).redIAdd(u);var h=this.x.redMul(s).redISub(u);h=(h=h.redIAdd(h)).redIAdd(h);var d=this.y.redMul(c.redMul(f.redISub(c)).redISub(a.redMul(s)));d=(d=(d=d.redIAdd(d)).redIAdd(d)).redIAdd(d);var l=this.z.redAdd(a).redSqr().redISub(r).redISub(s);return this.curve.jpoint(h,d,l)},u.prototype.mul=function(e,t){return e=new o(e,t),this.curve._wnafMul(this,e)},u.prototype.eq=function(e){if("affine"===e.type)return this.eq(e.toJ());if(this===e)return!0;var t=this.z.redSqr(),r=e.z.redSqr();if(0!==this.x.redMul(r).redISub(e.x.redMul(t)).cmpn(0))return!1;var n=t.redMul(this.z),i=r.redMul(e.z);return 0===this.y.redMul(i).redISub(e.y.redMul(n)).cmpn(0)},u.prototype.eqXToP=function(e){var t=this.z.redSqr(),r=e.toRed(this.curve.red).redMul(t);if(0===this.x.cmp(r))return!0;for(var n=e.clone(),i=this.curve.redN.redMul(t);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(r.redIAdd(i),0===this.x.cmp(r))return!0}return!1},u.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},u.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},function(e,t,r){"use strict";var n=r(85),i=r(9),o=r(5),a=n.base,s=r(24).utils;function f(e){a.call(this,"mont",e),this.a=new i(e.a,16).toRed(this.red),this.b=new i(e.b,16).toRed(this.red),this.i4=new i(4).toRed(this.red).redInvm(),this.two=new i(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function Point(e,t,r){a.BasePoint.call(this,e,"projective"),null===t&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new i(t,16),this.z=new i(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}o(f,a),e.exports=f,f.prototype.validate=function(e){var t=e.normalize().x,r=t.redSqr(),n=r.redMul(t).redAdd(r.redMul(this.a)).redAdd(t);return 0===n.redSqrt().redSqr().cmp(n)},o(Point,a.BasePoint),f.prototype.decodePoint=function(e,t){return this.point(s.toArray(e,t),1)},f.prototype.point=function(e,t){return new Point(this,e,t)},f.prototype.pointFromJSON=function(e){return Point.fromJSON(this,e)},Point.prototype.precompute=function(){},Point.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},Point.fromJSON=function(e,t){return new Point(e,t[0],t[1]||e.one)},Point.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},Point.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},Point.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),r=e.redSub(t),n=e.redMul(t),i=r.redMul(t.redAdd(this.curve.a24.redMul(r)));return this.curve.point(n,i)},Point.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},Point.prototype.diffAdd=function(e,t){var r=this.x.redAdd(this.z),n=this.x.redSub(this.z),i=e.x.redAdd(e.z),o=e.x.redSub(e.z).redMul(r),a=i.redMul(n),s=t.z.redMul(o.redAdd(a).redSqr()),f=t.x.redMul(o.redISub(a).redSqr());return this.curve.point(s,f)},Point.prototype.mul=function(e){for(var t=e.clone(),r=this,n=this.curve.point(null,null),i=[];0!==t.cmpn(0);t.iushrn(1))i.push(t.andln(1));for(var o=i.length-1;o>=0;o--)0===i[o]?(r=r.diffAdd(n,this),n=n.dbl()):(n=r.diffAdd(n,this),r=r.dbl());return n},Point.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},Point.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},Point.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},Point.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},Point.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},function(e,t,r){"use strict";var n=r(85),i=r(24),o=r(9),a=r(5),s=n.base,f=i.utils.assert;function c(e){this.twisted=1!=(0|e.a),this.mOneA=this.twisted&&-1==(0|e.a),this.extended=this.mOneA,s.call(this,"edwards",e),this.a=new o(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new o(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new o(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),f(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|e.c)}function Point(e,t,r,n,i){s.BasePoint.call(this,e,"projective"),null===t&&null===r&&null===n?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new o(t,16),this.y=new o(r,16),this.z=n?new o(n,16):this.curve.one,this.t=i&&new o(i,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}a(c,s),e.exports=c,c.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},c.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},c.prototype.jpoint=function(e,t,r,n){return this.point(e,t,r,n)},c.prototype.pointFromX=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=this.c2.redSub(this.a.redMul(r)),i=this.one.redSub(this.c2.redMul(this.d).redMul(r)),a=n.redMul(i.redInvm()),s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");var f=s.fromRed().isOdd();return(t&&!f||!t&&f)&&(s=s.redNeg()),this.point(e,s)},c.prototype.pointFromY=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=r.redSub(this.one),i=r.redMul(this.d).redAdd(this.one),a=n.redMul(i.redInvm());if(0===a.cmp(this.zero)){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");return s.isOdd()!==t&&(s=s.redNeg()),this.point(s,e)},c.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),r=e.y.redSqr(),n=t.redMul(this.a).redAdd(r),i=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(r)));return 0===n.cmp(i)},a(Point,s.BasePoint),c.prototype.pointFromJSON=function(e){return Point.fromJSON(this,e)},c.prototype.point=function(e,t,r,n){return new Point(this,e,t,r,n)},Point.fromJSON=function(e,t){return new Point(e,t[0],t[1],t[2])},Point.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},Point.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&0===this.y.cmp(this.z)},Point.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var n=this.curve._mulA(e),i=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),o=n.redAdd(t),a=o.redSub(r),s=n.redSub(t),f=i.redMul(a),c=o.redMul(s),u=i.redMul(s),h=a.redMul(o);return this.curve.point(f,c,h,u)},Point.prototype._projDbl=function(){var e,t,r,n=this.x.redAdd(this.y).redSqr(),i=this.x.redSqr(),o=this.y.redSqr();if(this.curve.twisted){var a=(c=this.curve._mulA(i)).redAdd(o);if(this.zOne)e=n.redSub(i).redSub(o).redMul(a.redSub(this.curve.two)),t=a.redMul(c.redSub(o)),r=a.redSqr().redSub(a).redSub(a);else{var s=this.z.redSqr(),f=a.redSub(s).redISub(s);e=n.redSub(i).redISub(o).redMul(f),t=a.redMul(c.redSub(o)),r=a.redMul(f)}}else{var c=i.redAdd(o);s=this.curve._mulC(this.c.redMul(this.z)).redSqr(),f=c.redSub(s).redSub(s);e=this.curve._mulC(n.redISub(c)).redMul(f),t=this.curve._mulC(c).redMul(i.redISub(o)),r=c.redMul(f)}return this.curve.point(e,t,r)},Point.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},Point.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),r=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),n=this.t.redMul(this.curve.dd).redMul(e.t),i=this.z.redMul(e.z.redAdd(e.z)),o=r.redSub(t),a=i.redSub(n),s=i.redAdd(n),f=r.redAdd(t),c=o.redMul(a),u=s.redMul(f),h=o.redMul(f),d=a.redMul(s);return this.curve.point(c,u,d,h)},Point.prototype._projAdd=function(e){var t,r,n=this.z.redMul(e.z),i=n.redSqr(),o=this.x.redMul(e.x),a=this.y.redMul(e.y),s=this.curve.d.redMul(o).redMul(a),f=i.redSub(s),c=i.redAdd(s),u=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(o).redISub(a),h=n.redMul(f).redMul(u);return this.curve.twisted?(t=n.redMul(c).redMul(a.redSub(this.curve._mulA(o))),r=f.redMul(c)):(t=n.redMul(c).redMul(a.redSub(o)),r=this.curve._mulC(f).redMul(c)),this.curve.point(h,t,r)},Point.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},Point.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},Point.prototype.mulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!1)},Point.prototype.jmulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!0)},Point.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this},Point.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},Point.prototype.getX=function(){return this.normalize(),this.x.fromRed()},Point.prototype.getY=function(){return this.normalize(),this.y.fromRed()},Point.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},Point.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var r=e.clone(),n=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(n),0===this.x.cmp(t))return!0}return!1},Point.prototype.toP=Point.prototype.normalize,Point.prototype.mixedAdd=Point.prototype.add},function(e,t,r){"use strict";var n,i=t,o=r(56),a=r(24),s=a.utils.assert;function f(e){"short"===e.type?this.curve=new a.curve.short(e):"edwards"===e.type?this.curve=new a.curve.edwards(e):this.curve=new a.curve.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,s(this.g.validate(),"Invalid curve"),s(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function c(e,t){Object.defineProperty(i,e,{configurable:!0,enumerable:!0,get:function(){var r=new f(t);return Object.defineProperty(i,e,{configurable:!0,enumerable:!0,value:r}),r}})}i.PresetCurve=f,c("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:o.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),c("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:o.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),c("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:o.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),c("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:o.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),c("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:o.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),c("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["9"]}),c("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{n=r(303)}catch(e){n=void 0}c("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:o.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",n]})},function(e,t,r){"use strict";t.sha1=r(298),t.sha224=r(299),t.sha256=r(151),t.sha384=r(300),t.sha512=r(152)},function(e,t,r){"use strict";var n=r(37),i=r(67),o=r(150),a=n.rotl32,s=n.sum32,f=n.sum32_5,c=o.ft_1,u=i.BlockHash,h=[1518500249,1859775393,2400959708,3395469782];function d(){if(!(this instanceof d))return new d;u.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}n.inherits(d,u),e.exports=d,d.blockSize=512,d.outSize=160,d.hmacStrength=80,d.padLength=64,d.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n<r.length;n++)r[n]=a(r[n-3]^r[n-8]^r[n-14]^r[n-16],1);var i=this.h[0],o=this.h[1],u=this.h[2],d=this.h[3],l=this.h[4];for(n=0;n<r.length;n++){var p=~~(n/20),b=f(a(i,5),c(p,o,u,d),l,r[n],h[p]);l=d,d=u,u=a(o,30),o=i,i=b}this.h[0]=s(this.h[0],i),this.h[1]=s(this.h[1],o),this.h[2]=s(this.h[2],u),this.h[3]=s(this.h[3],d),this.h[4]=s(this.h[4],l)},d.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},function(e,t,r){"use strict";var n=r(37),i=r(151);function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}n.inherits(o,i),e.exports=o,o.blockSize=512,o.outSize=224,o.hmacStrength=192,o.padLength=64,o.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h.slice(0,7),"big"):n.split32(this.h.slice(0,7),"big")}},function(e,t,r){"use strict";var n=r(37),i=r(152);function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}n.inherits(o,i),e.exports=o,o.blockSize=1024,o.outSize=384,o.hmacStrength=192,o.padLength=128,o.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h.slice(0,12),"big"):n.split32(this.h.slice(0,12),"big")}},function(e,t,r){"use strict";var n=r(37),i=r(67),o=n.rotl32,a=n.sum32,s=n.sum32_3,f=n.sum32_4,c=i.BlockHash;function u(){if(!(this instanceof u))return new u;c.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function h(e,t,r,n){return e<=15?t^r^n:e<=31?t&r|~t&n:e<=47?(t|~r)^n:e<=63?t&n|r&~n:t^(r|~n)}function d(e){return e<=15?0:e<=31?1518500249:e<=47?1859775393:e<=63?2400959708:2840853838}function l(e){return e<=15?1352829926:e<=31?1548603684:e<=47?1836072691:e<=63?2053994217:0}n.inherits(u,c),t.ripemd160=u,u.blockSize=512,u.outSize=160,u.hmacStrength=192,u.padLength=64,u.prototype._update=function(e,t){for(var r=this.h[0],n=this.h[1],i=this.h[2],c=this.h[3],u=this.h[4],m=r,g=n,w=i,_=c,E=u,S=0;S<80;S++){var A=a(o(f(r,h(S,n,i,c),e[p[S]+t],d(S)),v[S]),u);r=u,u=c,c=o(i,10),i=n,n=A,A=a(o(f(m,h(79-S,g,w,_),e[b[S]+t],l(S)),y[S]),E),m=E,E=_,_=o(w,10),w=g,g=A}A=s(this.h[1],i,_),this.h[1]=s(this.h[2],c,E),this.h[2]=s(this.h[3],u,m),this.h[3]=s(this.h[4],r,g),this.h[4]=s(this.h[0],n,w),this.h[0]=A},u.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"little"):n.split32(this.h,"little")};var p=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],b=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],v=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],y=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},function(e,t,r){"use strict";var n=r(37),i=r(30);function o(e,t,r){if(!(this instanceof o))return new o(e,t,r);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(n.toArray(t,r))}e.exports=o,o.prototype._init=function(e){e.length>this.blockSize&&(e=(new this.Hash).update(e).digest()),i(e.length<=this.blockSize);for(var t=e.length;t<this.blockSize;t++)e.push(0);for(t=0;t<e.length;t++)e[t]^=54;for(this.inner=(new this.Hash).update(e),t=0;t<e.length;t++)e[t]^=106;this.outer=(new this.Hash).update(e)},o.prototype.update=function(e,t){return this.inner.update(e,t),this},o.prototype.digest=function(e){return this.outer.update(this.inner.digest()),this.outer.digest(e)}},function(e,t){e.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},function(e,t,r){"use strict";var n=r(9),i=r(153),o=r(24),a=o.utils.assert,s=r(305),f=r(306);function c(e){if(!(this instanceof c))return new c(e);"string"==typeof e&&(a(o.curves.hasOwnProperty(e),"Unknown curve "+e),e=o.curves[e]),e instanceof o.curves.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}e.exports=c,c.prototype.keyPair=function(e){return new s(this,e)},c.prototype.keyFromPrivate=function(e,t){return s.fromPrivate(this,e,t)},c.prototype.keyFromPublic=function(e,t){return s.fromPublic(this,e,t)},c.prototype.genKeyPair=function(e){e||(e={});for(var t=new i({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||o.rand(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),a=this.n.sub(new n(2));;){var s=new n(t.generate(r));if(!(s.cmp(a)>0))return s.iaddn(1),this.keyFromPrivate(s)}},c.prototype._truncateToN=function(e,t){var r=8*e.byteLength()-this.n.bitLength();return r>0&&(e=e.ushrn(r)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},c.prototype.sign=function(e,t,r,o){"object"==typeof r&&(o=r,r=null),o||(o={}),t=this.keyFromPrivate(t,r),e=this._truncateToN(new n(e,16));for(var a=this.n.byteLength(),s=t.getPrivate().toArray("be",a),c=e.toArray("be",a),u=new i({hash:this.hash,entropy:s,nonce:c,pers:o.pers,persEnc:o.persEnc||"utf8"}),h=this.n.sub(new n(1)),d=0;;d++){var l=o.k?o.k(d):new n(u.generate(this.n.byteLength()));if(!((l=this._truncateToN(l,!0)).cmpn(1)<=0||l.cmp(h)>=0)){var p=this.g.mul(l);if(!p.isInfinity()){var b=p.getX(),v=b.umod(this.n);if(0!==v.cmpn(0)){var y=l.invm(this.n).mul(v.mul(t.getPrivate()).iadd(e));if(0!==(y=y.umod(this.n)).cmpn(0)){var m=(p.getY().isOdd()?1:0)|(0!==b.cmp(v)?2:0);return o.canonical&&y.cmp(this.nh)>0&&(y=this.n.sub(y),m^=1),new f({r:v,s:y,recoveryParam:m})}}}}}},c.prototype.verify=function(e,t,r,i){e=this._truncateToN(new n(e,16)),r=this.keyFromPublic(r,i);var o=(t=new f(t,"hex")).r,a=t.s;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;var s,c=a.invm(this.n),u=c.mul(e).umod(this.n),h=c.mul(o).umod(this.n);return this.curve._maxwellTrick?!(s=this.g.jmulAdd(u,r.getPublic(),h)).isInfinity()&&s.eqXToP(o):!(s=this.g.mulAdd(u,r.getPublic(),h)).isInfinity()&&0===s.getX().umod(this.n).cmp(o)},c.prototype.recoverPubKey=function(e,t,r,i){a((3&r)===r,"The recovery param is more than two bits"),t=new f(t,i);var o=this.n,s=new n(e),c=t.r,u=t.s,h=1&r,d=r>>1;if(c.cmp(this.curve.p.umod(this.curve.n))>=0&&d)throw new Error("Unable to find sencond key candinate");c=d?this.curve.pointFromX(c.add(this.curve.n),h):this.curve.pointFromX(c,h);var l=t.r.invm(o),p=o.sub(s).mul(l).umod(o),b=u.mul(l).umod(o);return this.g.mulAdd(p,c,b)},c.prototype.getKeyRecoveryParam=function(e,t,r,n){if(null!==(t=new f(t,n)).recoveryParam)return t.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(e,t,i)}catch(e){continue}if(o.eq(r))return i}throw new Error("Unable to find valid recovery factor")}},function(e,t,r){"use strict";var n=r(9),i=r(24).utils.assert;function o(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}e.exports=o,o.fromPublic=function(e,t,r){return t instanceof o?t:new o(e,{pub:t,pubEnc:r})},o.fromPrivate=function(e,t,r){return t instanceof o?t:new o(e,{priv:t,privEnc:r})},o.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},o.prototype.getPublic=function(e,t){return"string"==typeof e&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t?this.pub.encode(t,e):this.pub},o.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},o.prototype._importPrivate=function(e,t){this.priv=new n(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},o.prototype._importPublic=function(e,t){if(e.x||e.y)return"mont"===this.ec.curve.type?i(e.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||i(e.x&&e.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(e.x,e.y));this.pub=this.ec.curve.decodePoint(e,t)},o.prototype.derive=function(e){return e.mul(this.priv).getX()},o.prototype.sign=function(e,t,r){return this.ec.sign(e,this,t,r)},o.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},o.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},function(e,t,r){"use strict";var n=r(9),i=r(24).utils,o=i.assert;function a(e,t){if(e instanceof a)return e;this._importDER(e,t)||(o(e.r&&e.s,"Signature without r or s"),this.r=new n(e.r,16),this.s=new n(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function s(e,t){var r=e[t.place++];if(!(128&r))return r;for(var n=15&r,i=0,o=0,a=t.place;o<n;o++,a++)i<<=8,i|=e[a];return t.place=a,i}function f(e){for(var t=0,r=e.length-1;!e[t]&&!(128&e[t+1])&&t<r;)t++;return 0===t?e:e.slice(t)}function c(e,t){if(t<128)e.push(t);else{var r=1+(Math.log(t)/Math.LN2>>>3);for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255);e.push(t)}}e.exports=a,a.prototype._importDER=function(e,t){e=i.toArray(e,t);var r=new function(){this.place=0};if(48!==e[r.place++])return!1;if(s(e,r)+r.place!==e.length)return!1;if(2!==e[r.place++])return!1;var o=s(e,r),a=e.slice(r.place,o+r.place);if(r.place+=o,2!==e[r.place++])return!1;var f=s(e,r);if(e.length!==f+r.place)return!1;var c=e.slice(r.place,f+r.place);return 0===a[0]&&128&a[1]&&(a=a.slice(1)),0===c[0]&&128&c[1]&&(c=c.slice(1)),this.r=new n(a),this.s=new n(c),this.recoveryParam=null,!0},a.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=f(t),r=f(r);!(r[0]||128&r[1]);)r=r.slice(1);var n=[2];c(n,t.length),(n=n.concat(t)).push(2),c(n,r.length);var o=n.concat(r),a=[48];return c(a,o.length),a=a.concat(o),i.encode(a,e)}},function(e,t,r){"use strict";var n=r(56),i=r(24),o=i.utils,a=o.assert,s=o.parseBytes,f=r(308),c=r(309);function u(e){if(a("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof u))return new u(e);e=i.curves[e].curve;this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=n.sha512}e.exports=u,u.prototype.sign=function(e,t){e=s(e);var r=this.keyFromSecret(t),n=this.hashInt(r.messagePrefix(),e),i=this.g.mul(n),o=this.encodePoint(i),a=this.hashInt(o,r.pubBytes(),e).mul(r.priv()),f=n.add(a).umod(this.curve.n);return this.makeSignature({R:i,S:f,Rencoded:o})},u.prototype.verify=function(e,t,r){e=s(e),t=this.makeSignature(t);var n=this.keyFromPublic(r),i=this.hashInt(t.Rencoded(),n.pubBytes(),e),o=this.g.mul(t.S());return t.R().add(n.pub().mul(i)).eq(o)},u.prototype.hashInt=function(){for(var e=this.hash(),t=0;t<arguments.length;t++)e.update(arguments[t]);return o.intFromLE(e.digest()).umod(this.curve.n)},u.prototype.keyFromPublic=function(e){return f.fromPublic(this,e)},u.prototype.keyFromSecret=function(e){return f.fromSecret(this,e)},u.prototype.makeSignature=function(e){return e instanceof c?e:new c(this,e)},u.prototype.encodePoint=function(e){var t=e.getY().toArray("le",this.encodingLength);return t[this.encodingLength-1]|=e.getX().isOdd()?128:0,t},u.prototype.decodePoint=function(e){var t=(e=o.parseBytes(e)).length-1,r=e.slice(0,t).concat(-129&e[t]),n=0!=(128&e[t]),i=o.intFromLE(r);return this.curve.pointFromY(i,n)},u.prototype.encodeInt=function(e){return e.toArray("le",this.encodingLength)},u.prototype.decodeInt=function(e){return o.intFromLE(e)},u.prototype.isPoint=function(e){return e instanceof this.pointClass}},function(e,t,r){"use strict";var n=r(24).utils,i=n.assert,o=n.parseBytes,a=n.cachedProperty;function s(e,t){this.eddsa=e,this._secret=o(t.secret),e.isPoint(t.pub)?this._pub=t.pub:this._pubBytes=o(t.pub)}s.fromPublic=function(e,t){return t instanceof s?t:new s(e,{pub:t})},s.fromSecret=function(e,t){return t instanceof s?t:new s(e,{secret:t})},s.prototype.secret=function(){return this._secret},a(s,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),a(s,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),a(s,"privBytes",function(){var e=this.eddsa,t=this.hash(),r=e.encodingLength-1,n=t.slice(0,e.encodingLength);return n[0]&=248,n[r]&=127,n[r]|=64,n}),a(s,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),a(s,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),a(s,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),s.prototype.sign=function(e){return i(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)},s.prototype.verify=function(e,t){return this.eddsa.verify(e,t,this)},s.prototype.getSecret=function(e){return i(this._secret,"KeyPair is public only"),n.encode(this.secret(),e)},s.prototype.getPublic=function(e){return n.encode(this.pubBytes(),e)},e.exports=s},function(e,t,r){"use strict";var n=r(9),i=r(24).utils,o=i.assert,a=i.cachedProperty,s=i.parseBytes;function f(e,t){this.eddsa=e,"object"!=typeof t&&(t=s(t)),Array.isArray(t)&&(t={R:t.slice(0,e.encodingLength),S:t.slice(e.encodingLength)}),o(t.R&&t.S,"Signature without R or S"),e.isPoint(t.R)&&(this._R=t.R),t.S instanceof n&&(this._S=t.S),this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded,this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded}a(f,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),a(f,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),a(f,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),a(f,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),f.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},f.prototype.toHex=function(){return i.encode(this.toBytes(),"hex").toUpperCase()},e.exports=f},function(e,t,r){"use strict";var n=r(68);t.certificate=r(321);var i=n.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())});t.RSAPrivateKey=i;var o=n.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});t.RSAPublicKey=o;var a=n.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(s),this.key("subjectPublicKey").bitstr())});t.PublicKey=a;var s=n.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())}),f=n.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(s),this.key("subjectPrivateKey").octstr())});t.PrivateKey=f;var c=n.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())});t.EncryptedPrivateKey=c;var u=n.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())});t.DSAPrivateKey=u,t.DSAparam=n.define("DSAparam",function(){this.int()});var h=n.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(d),this.key("publicKey").optional().explicit(1).bitstr())});t.ECPrivateKey=h;var d=n.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});t.signature=n.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})},function(e,t,r){var n=r(68),i=r(5);function o(e,t){this.name=e,this.body=t,this.decoders={},this.encoders={}}t.define=function(e,t){return new o(e,t)},o.prototype._createNamed=function(e){var t;try{t=r(312).runInThisContext("(function "+this.name+"(entity) {\n this._initNamed(entity);\n})")}catch(e){t=function(e){this._initNamed(e)}}return i(t,e),t.prototype._initNamed=function(t){e.call(this,t)},new t(this)},o.prototype._getDecoder=function(e){return e=e||"der",this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(n.decoders[e])),this.decoders[e]},o.prototype.decode=function(e,t,r){return this._getDecoder(t).decode(e,r)},o.prototype._getEncoder=function(e){return e=e||"der",this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(n.encoders[e])),this.encoders[e]},o.prototype.encode=function(e,t,r){return this._getEncoder(t).encode(e,r)}},function(module,exports,__webpack_require__){var indexOf=__webpack_require__(313),Object_keys=function(e){if(Object.keys)return Object.keys(e);var t=[];for(var r in e)t.push(r);return t},forEach=function(e,t){if(e.forEach)return e.forEach(t);for(var r=0;r<e.length;r++)t(e[r],r,e)},defineProp=function(){try{return Object.defineProperty({},"_",{}),function(e,t,r){Object.defineProperty(e,t,{writable:!0,enumerable:!1,configurable:!0,value:r})}}catch(e){return function(e,t,r){e[t]=r}}}(),globals=["Array","Boolean","Date","Error","EvalError","Function","Infinity","JSON","Math","NaN","Number","Object","RangeError","ReferenceError","RegExp","String","SyntaxError","TypeError","URIError","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"];function Context(){}Context.prototype={};var Script=exports.Script=function(e){if(!(this instanceof Script))return new Script(e);this.code=e};Script.prototype.runInContext=function(e){if(!(e instanceof Context))throw new TypeError("needs a 'context' argument.");var t=document.createElement("iframe");t.style||(t.style={}),t.style.display="none",document.body.appendChild(t);var r=t.contentWindow,n=r.eval,i=r.execScript;!n&&i&&(i.call(r,"null"),n=r.eval),forEach(Object_keys(e),function(t){r[t]=e[t]}),forEach(globals,function(t){e[t]&&(r[t]=e[t])});var o=Object_keys(r),a=n.call(r,this.code);return forEach(Object_keys(r),function(t){(t in e||-1===indexOf(o,t))&&(e[t]=r[t])}),forEach(globals,function(t){t in e||defineProp(e,t,r[t])}),document.body.removeChild(t),a},Script.prototype.runInThisContext=function(){return eval(this.code)},Script.prototype.runInNewContext=function(e){var t=Script.createContext(e),r=this.runInContext(t);return forEach(Object_keys(t),function(r){e[r]=t[r]}),r},forEach(Object_keys(Script.prototype),function(e){exports[e]=Script[e]=function(t){var r=Script(t);return r[e].apply(r,[].slice.call(arguments,1))}}),exports.createScript=function(e){return exports.Script(e)},exports.createContext=Script.createContext=function(e){var t=new Context;return"object"==typeof e&&forEach(Object_keys(e),function(r){t[r]=e[r]}),t}},function(e,t){var r=[].indexOf;e.exports=function(e,t){if(r)return e.indexOf(t);for(var n=0;n<e.length;++n)if(e[n]===t)return n;return-1}},function(e,t,r){var n=r(5);function i(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}function o(e,t){this.path=e,this.rethrow(t)}t.Reporter=i,i.prototype.isError=function(e){return e instanceof o},i.prototype.save=function(){var e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}},i.prototype.restore=function(e){var t=this._reporterState;t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)},i.prototype.enterKey=function(e){return this._reporterState.path.push(e)},i.prototype.exitKey=function(e){var t=this._reporterState;t.path=t.path.slice(0,e-1)},i.prototype.leaveKey=function(e,t,r){var n=this._reporterState;this.exitKey(e),null!==n.obj&&(n.obj[t]=r)},i.prototype.path=function(){return this._reporterState.path.join("/")},i.prototype.enterObject=function(){var e=this._reporterState,t=e.obj;return e.obj={},t},i.prototype.leaveObject=function(e){var t=this._reporterState,r=t.obj;return t.obj=e,r},i.prototype.error=function(e){var t,r=this._reporterState,n=e instanceof o;if(t=n?e:new o(r.path.map(function(e){return"["+JSON.stringify(e)+"]"}).join(""),e.message||e,e.stack),!r.options.partial)throw t;return n||r.errors.push(t),t},i.prototype.wrapResult=function(e){var t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e},n(o,Error),o.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,o),!this.stack)try{throw new Error(this.message)}catch(e){this.stack=e.stack}return this}},function(e,t,r){var n=r(69).Reporter,i=r(69).EncoderBuffer,o=r(69).DecoderBuffer,a=r(30),s=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],f=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(s);function c(e,t){var r={};this._baseState=r,r.enc=e,r.parent=t||null,r.children=null,r.tag=null,r.args=null,r.reverseArgs=null,r.choice=null,r.optional=!1,r.any=!1,r.obj=!1,r.use=null,r.useDecoder=null,r.key=null,r.default=null,r.explicit=null,r.implicit=null,r.contains=null,r.parent||(r.children=[],this._wrap())}e.exports=c;var u=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];c.prototype.clone=function(){var e=this._baseState,t={};u.forEach(function(r){t[r]=e[r]});var r=new this.constructor(t.parent);return r._baseState=t,r},c.prototype._wrap=function(){var e=this._baseState;f.forEach(function(t){this[t]=function(){var r=new this.constructor(this);return e.children.push(r),r[t].apply(r,arguments)}},this)},c.prototype._init=function(e){var t=this._baseState;a(null===t.parent),e.call(this),t.children=t.children.filter(function(e){return e._baseState.parent===this},this),a.equal(t.children.length,1,"Root node can have only one child")},c.prototype._useArgs=function(e){var t=this._baseState,r=e.filter(function(e){return e instanceof this.constructor},this);e=e.filter(function(e){return!(e instanceof this.constructor)},this),0!==r.length&&(a(null===t.children),t.children=r,r.forEach(function(e){e._baseState.parent=this},this)),0!==e.length&&(a(null===t.args),t.args=e,t.reverseArgs=e.map(function(e){if("object"!=typeof e||e.constructor!==Object)return e;var t={};return Object.keys(e).forEach(function(r){r==(0|r)&&(r|=0);var n=e[r];t[n]=r}),t}))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach(function(e){c.prototype[e]=function(){var t=this._baseState;throw new Error(e+" not implemented for encoding: "+t.enc)}}),s.forEach(function(e){c.prototype[e]=function(){var t=this._baseState,r=Array.prototype.slice.call(arguments);return a(null===t.tag),t.tag=e,this._useArgs(r),this}}),c.prototype.use=function(e){a(e);var t=this._baseState;return a(null===t.use),t.use=e,this},c.prototype.optional=function(){return this._baseState.optional=!0,this},c.prototype.def=function(e){var t=this._baseState;return a(null===t.default),t.default=e,t.optional=!0,this},c.prototype.explicit=function(e){var t=this._baseState;return a(null===t.explicit&&null===t.implicit),t.explicit=e,this},c.prototype.implicit=function(e){var t=this._baseState;return a(null===t.explicit&&null===t.implicit),t.implicit=e,this},c.prototype.obj=function(){var e=this._baseState,t=Array.prototype.slice.call(arguments);return e.obj=!0,0!==t.length&&this._useArgs(t),this},c.prototype.key=function(e){var t=this._baseState;return a(null===t.key),t.key=e,this},c.prototype.any=function(){return this._baseState.any=!0,this},c.prototype.choice=function(e){var t=this._baseState;return a(null===t.choice),t.choice=e,this._useArgs(Object.keys(e).map(function(t){return e[t]})),this},c.prototype.contains=function(e){var t=this._baseState;return a(null===t.use),t.contains=e,this},c.prototype._decode=function(e,t){var r=this._baseState;if(null===r.parent)return e.wrapResult(r.children[0]._decode(e,t));var n,i=r.default,a=!0,s=null;if(null!==r.key&&(s=e.enterKey(r.key)),r.optional){var f=null;if(null!==r.explicit?f=r.explicit:null!==r.implicit?f=r.implicit:null!==r.tag&&(f=r.tag),null!==f||r.any){if(a=this._peekTag(e,f,r.any),e.isError(a))return a}else{var c=e.save();try{null===r.choice?this._decodeGeneric(r.tag,e,t):this._decodeChoice(e,t),a=!0}catch(e){a=!1}e.restore(c)}}if(r.obj&&a&&(n=e.enterObject()),a){if(null!==r.explicit){var u=this._decodeTag(e,r.explicit);if(e.isError(u))return u;e=u}var h=e.offset;if(null===r.use&&null===r.choice){if(r.any)c=e.save();var d=this._decodeTag(e,null!==r.implicit?r.implicit:r.tag,r.any);if(e.isError(d))return d;r.any?i=e.raw(c):e=d}if(t&&t.track&&null!==r.tag&&t.track(e.path(),h,e.length,"tagged"),t&&t.track&&null!==r.tag&&t.track(e.path(),e.offset,e.length,"content"),i=r.any?i:null===r.choice?this._decodeGeneric(r.tag,e,t):this._decodeChoice(e,t),e.isError(i))return i;if(r.any||null!==r.choice||null===r.children||r.children.forEach(function(r){r._decode(e,t)}),r.contains&&("octstr"===r.tag||"bitstr"===r.tag)){var l=new o(i);i=this._getUse(r.contains,e._reporterState.obj)._decode(l,t)}}return r.obj&&a&&(i=e.leaveObject(n)),null===r.key||null===i&&!0!==a?null!==s&&e.exitKey(s):e.leaveKey(s,r.key,i),i},c.prototype._decodeGeneric=function(e,t,r){var n=this._baseState;return"seq"===e||"set"===e?null:"seqof"===e||"setof"===e?this._decodeList(t,e,n.args[0],r):/str$/.test(e)?this._decodeStr(t,e,r):"objid"===e&&n.args?this._decodeObjid(t,n.args[0],n.args[1],r):"objid"===e?this._decodeObjid(t,null,null,r):"gentime"===e||"utctime"===e?this._decodeTime(t,e,r):"null_"===e?this._decodeNull(t,r):"bool"===e?this._decodeBool(t,r):"objDesc"===e?this._decodeStr(t,e,r):"int"===e||"enum"===e?this._decodeInt(t,n.args&&n.args[0],r):null!==n.use?this._getUse(n.use,t._reporterState.obj)._decode(t,r):t.error("unknown tag: "+e)},c.prototype._getUse=function(e,t){var r=this._baseState;return r.useDecoder=this._use(e,t),a(null===r.useDecoder._baseState.parent),r.useDecoder=r.useDecoder._baseState.children[0],r.implicit!==r.useDecoder._baseState.implicit&&(r.useDecoder=r.useDecoder.clone(),r.useDecoder._baseState.implicit=r.implicit),r.useDecoder},c.prototype._decodeChoice=function(e,t){var r=this._baseState,n=null,i=!1;return Object.keys(r.choice).some(function(o){var a=e.save(),s=r.choice[o];try{var f=s._decode(e,t);if(e.isError(f))return!1;n={type:o,value:f},i=!0}catch(t){return e.restore(a),!1}return!0},this),i?n:e.error("Choice not matched")},c.prototype._createEncoderBuffer=function(e){return new i(e,this.reporter)},c.prototype._encode=function(e,t,r){var n=this._baseState;if(null===n.default||n.default!==e){var i=this._encodeValue(e,t,r);if(void 0!==i&&!this._skipDefault(i,t,r))return i}},c.prototype._encodeValue=function(e,t,r){var i=this._baseState;if(null===i.parent)return i.children[0]._encode(e,t||new n);var o=null;if(this.reporter=t,i.optional&&void 0===e){if(null===i.default)return;e=i.default}var a=null,s=!1;if(i.any)o=this._createEncoderBuffer(e);else if(i.choice)o=this._encodeChoice(e,t);else if(i.contains)a=this._getUse(i.contains,r)._encode(e,t),s=!0;else if(i.children)a=i.children.map(function(r){if("null_"===r._baseState.tag)return r._encode(null,t,e);if(null===r._baseState.key)return t.error("Child should have a key");var n=t.enterKey(r._baseState.key);if("object"!=typeof e)return t.error("Child expected, but input is not object");var i=r._encode(e[r._baseState.key],t,e);return t.leaveKey(n),i},this).filter(function(e){return e}),a=this._createEncoderBuffer(a);else if("seqof"===i.tag||"setof"===i.tag){if(!i.args||1!==i.args.length)return t.error("Too many args for : "+i.tag);if(!Array.isArray(e))return t.error("seqof/setof, but data is not Array");var f=this.clone();f._baseState.implicit=null,a=this._createEncoderBuffer(e.map(function(r){var n=this._baseState;return this._getUse(n.args[0],e)._encode(r,t)},f))}else null!==i.use?o=this._getUse(i.use,r)._encode(e,t):(a=this._encodePrimitive(i.tag,e),s=!0);if(!i.any&&null===i.choice){var c=null!==i.implicit?i.implicit:i.tag,u=null===i.implicit?"universal":"context";null===c?null===i.use&&t.error("Tag could be omitted only for .use()"):null===i.use&&(o=this._encodeComposite(c,s,u,a))}return null!==i.explicit&&(o=this._encodeComposite(i.explicit,!1,"context",o)),o},c.prototype._encodeChoice=function(e,t){var r=this._baseState,n=r.choice[e.type];return n||a(!1,e.type+" not found in "+JSON.stringify(Object.keys(r.choice))),n._encode(e.value,t)},c.prototype._encodePrimitive=function(e,t){var r=this._baseState;if(/str$/.test(e))return this._encodeStr(t,e);if("objid"===e&&r.args)return this._encodeObjid(t,r.reverseArgs[0],r.args[1]);if("objid"===e)return this._encodeObjid(t,null,null);if("gentime"===e||"utctime"===e)return this._encodeTime(t,e);if("null_"===e)return this._encodeNull();if("int"===e||"enum"===e)return this._encodeInt(t,r.args&&r.reverseArgs[0]);if("bool"===e)return this._encodeBool(t);if("objDesc"===e)return this._encodeStr(t,e);throw new Error("Unsupported tag: "+e)},c.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)},c.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(e)}},function(e,t,r){var n=r(155);t.tagClass={0:"universal",1:"application",2:"context",3:"private"},t.tagClassByName=n._reverse(t.tagClass),t.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},t.tagByName=n._reverse(t.tag)},function(e,t,r){var n=t;n.der=r(156),n.pem=r(318)},function(e,t,r){var n=r(5),Buffer=r(3).Buffer,i=r(156);function o(e){i.call(this,e),this.enc="pem"}n(o,i),e.exports=o,o.prototype.decode=function(e,t){for(var r=e.toString().split(/[\r\n]+/g),n=t.label.toUpperCase(),o=/^-----(BEGIN|END) ([^-]+)-----$/,a=-1,s=-1,f=0;f<r.length;f++){var c=r[f].match(o);if(null!==c&&c[2]===n){if(-1!==a){if("END"!==c[1])break;s=f;break}if("BEGIN"!==c[1])break;a=f}}if(-1===a||-1===s)throw new Error("PEM section not found for: "+n);var u=r.slice(a+1,s).join("");u.replace(/[^a-z0-9\+\/=]+/gi,"");var h=new Buffer(u,"base64");return i.prototype.decode.call(this,h,t)}},function(e,t,r){var n=t;n.der=r(157),n.pem=r(320)},function(e,t,r){var n=r(5),i=r(157);function o(e){i.call(this,e),this.enc="pem"}n(o,i),e.exports=o,o.prototype.encode=function(e,t){for(var r=i.prototype.encode.call(this,e).toString("base64"),n=["-----BEGIN "+t.label+"-----"],o=0;o<r.length;o+=64)n.push(r.slice(o,o+64));return n.push("-----END "+t.label+"-----"),n.join("\n")}},function(e,t,r){"use strict";var n=r(68),i=n.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),o=n.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),a=n.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional())}),s=n.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(a),this.key("subjectPublicKey").bitstr())}),f=n.define("RelativeDistinguishedName",function(){this.setof(o)}),c=n.define("RDNSequence",function(){this.seqof(f)}),u=n.define("Name",function(){this.choice({rdnSequence:this.use(c)})}),h=n.define("Validity",function(){this.seq().obj(this.key("notBefore").use(i),this.key("notAfter").use(i))}),d=n.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),l=n.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int(),this.key("serialNumber").int(),this.key("signature").use(a),this.key("issuer").use(u),this.key("validity").use(h),this.key("subject").use(u),this.key("subjectPublicKeyInfo").use(s),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(d).optional())}),p=n.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(l),this.key("signatureAlgorithm").use(a),this.key("signatureValue").bitstr())});e.exports=p},function(e,t){e.exports={"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}},function(e,t,r){(function(Buffer){var t=/Proc-Type: 4,ENCRYPTED\n\r?DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)\n\r?\n\r?([0-9A-z\n\r\+\/\=]+)\n\r?/m,n=/^-----BEGIN ((?:.* KEY)|CERTIFICATE)-----\n/m,i=/^-----BEGIN ((?:.* KEY)|CERTIFICATE)-----\n\r?([0-9A-z\n\r\+\/\=]+)\n\r?-----END \1-----$/m,o=r(82),a=r(83);e.exports=function(e,r){var s,f=e.toString(),c=f.match(t);if(c){var u="aes"+c[1],h=new Buffer(c[2],"hex"),d=new Buffer(c[3].replace(/\r?\n/g,""),"base64"),l=o(r,h.slice(0,8),parseInt(c[1],10)).key,p=[],b=a.createDecipheriv(u,l,h);p.push(b.update(d)),p.push(b.final()),s=Buffer.concat(p)}else{var v=f.match(i);s=new Buffer(v[2].replace(/\r?\n/g,""),"base64")}return{tag:f.match(n)[1],data:s}}}).call(t,r(3).Buffer)},function(e,t,r){(function(Buffer){var t=r(9),n=r(24).ec,i=r(86),o=r(158);function a(e,t){if(e.cmpn(0)<=0)throw new Error("invalid sig");if(e.cmp(t)>=t)throw new Error("invalid sig")}e.exports=function(e,r,s,f,c){var u=i(s);if("ec"===u.type){if("ecdsa"!==f&&"ecdsa/rsa"!==f)throw new Error("wrong public key type");return function(e,t,r){var i=o[r.data.algorithm.curve.join(".")];if(!i)throw new Error("unknown curve "+r.data.algorithm.curve.join("."));var a=new n(i),s=r.data.subjectPrivateKey.data;return a.verify(t,e,s)}(e,r,u)}if("dsa"===u.type){if("dsa"!==f)throw new Error("wrong public key type");return function(e,r,n){var o=n.data.p,s=n.data.q,f=n.data.g,c=n.data.pub_key,u=i.signature.decode(e,"der"),h=u.s,d=u.r;a(h,s),a(d,s);var l=t.mont(o),p=h.invm(s);return 0===f.toRed(l).redPow(new t(r).mul(p).mod(s)).fromRed().mul(c.toRed(l).redPow(d.mul(p).mod(s)).fromRed()).mod(o).mod(s).cmp(d)}(e,r,u)}if("rsa"!==f&&"ecdsa/rsa"!==f)throw new Error("wrong public key type");r=Buffer.concat([c,r]);for(var h=u.modulus.byteLength(),d=[1],l=0;r.length+d.length+2<h;)d.push(255),l++;d.push(0);for(var p=-1;++p<r.length;)d.push(r[p]);d=new Buffer(d);var b=t.mont(u.modulus);e=(e=new t(e).toRed(b)).redPow(new t(u.publicExponent)),e=new Buffer(e.fromRed().toArray());var v=l<8?1:0;for(h=Math.min(e.length,d.length),e.length!==d.length&&(v=1),p=-1;++p<h;)v|=e[p]^d[p];return 0===v}}).call(t,r(3).Buffer)},function(e,t,r){(function(Buffer){var t=r(24),n=r(9);e.exports=function(e){return new o(e)};var i={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};function o(e){this.curveType=i[e],this.curveType||(this.curveType={name:e}),this.curve=new t.ec(this.curveType.name),this.keys=void 0}function a(e,t,r){Array.isArray(e)||(e=e.toArray());var n=new Buffer(e);if(r&&n.length<r){var i=new Buffer(r-n.length);i.fill(0),n=Buffer.concat([i,n])}return t?n.toString(t):n}i.p224=i.secp224r1,i.p256=i.secp256r1=i.prime256v1,i.p192=i.secp192r1=i.prime192v1,i.p384=i.secp384r1,i.p521=i.secp521r1,o.prototype.generateKeys=function(e,t){return this.keys=this.curve.genKeyPair(),this.getPublicKey(e,t)},o.prototype.computeSecret=function(e,t,r){return t=t||"utf8",Buffer.isBuffer(e)||(e=new Buffer(e,t)),a(this.curve.keyFromPublic(e).getPublic().mul(this.keys.getPrivate()).getX(),r,this.curveType.byteLength)},o.prototype.getPublicKey=function(e,t){var r=this.keys.getPublic("compressed"===t,!0);return"hybrid"===t&&(r[r.length-1]%2?r[0]=7:r[0]=6),a(r,e)},o.prototype.getPrivateKey=function(e){return a(this.keys.getPrivate(),e)},o.prototype.setPublicKey=function(e,t){return t=t||"utf8",Buffer.isBuffer(e)||(e=new Buffer(e,t)),this.keys._importPublic(e),this},o.prototype.setPrivateKey=function(e,t){t=t||"utf8",Buffer.isBuffer(e)||(e=new Buffer(e,t));var r=new n(e);return r=r.toString(16),this.keys._importPrivate(r),this}}).call(t,r(3).Buffer)},function(e,t,r){t.publicEncrypt=r(327),t.privateDecrypt=r(328),t.privateEncrypt=function(e,r){return t.publicEncrypt(e,r,!0)},t.publicDecrypt=function(e,r){return t.privateDecrypt(e,r,!0)}},function(e,t,r){(function(Buffer){var t=r(86),n=r(48),i=r(36),o=r(159),a=r(160),s=r(9),f=r(161),c=r(103);e.exports=function(e,r,u){var h;h=e.padding?e.padding:u?1:4;var d,l=t(e);if(4===h)d=function(e,t){var r=e.modulus.byteLength(),f=t.length,c=i("sha1").update(new Buffer("")).digest(),u=c.length,h=2*u;if(f>r-h-2)throw new Error("message too long");var d=new Buffer(r-f-h-2);d.fill(0);var l=r-u-1,p=n(u),b=a(Buffer.concat([c,d,new Buffer([1]),t],l),o(p,l)),v=a(p,o(b,u));return new s(Buffer.concat([new Buffer([0]),v,b],r))}(l,r);else if(1===h)d=function(e,t,r){var i,o=t.length,a=e.modulus.byteLength();if(o>a-11)throw new Error("message too long");r?(i=new Buffer(a-o-3)).fill(255):i=function(e,t){var r,i=new Buffer(e),o=0,a=n(2*e),s=0;for(;o<e;)s===a.length&&(a=n(2*e),s=0),(r=a[s++])&&(i[o++]=r);return i}(a-o-3);return new s(Buffer.concat([new Buffer([0,r?1:2]),i,new Buffer([0]),t],a))}(l,r,u);else{if(3!==h)throw new Error("unknown padding");if((d=new s(r)).cmp(l.modulus)>=0)throw new Error("data too long for modulus")}return u?c(d,l):f(d,l)}}).call(t,r(3).Buffer)},function(e,t,r){(function(Buffer){var t=r(86),n=r(159),i=r(160),o=r(9),a=r(103),s=r(36),f=r(161);e.exports=function(e,r,c){var u;u=e.padding?e.padding:c?1:4;var h,d=t(e),l=d.modulus.byteLength();if(r.length>l||new o(r).cmp(d.modulus)>=0)throw new Error("decryption error");h=c?f(new o(r),d):a(r,d);var p=new Buffer(l-h.length);if(p.fill(0),h=Buffer.concat([p,h],l),4===u)return function(e,t){e.modulus;var r=e.modulus.byteLength(),o=(t.length,s("sha1").update(new Buffer("")).digest()),a=o.length;if(0!==t[0])throw new Error("decryption error");var f=t.slice(1,a+1),c=t.slice(a+1),u=i(f,n(c,a)),h=i(c,n(u,r-a-1));if(function(e,t){e=new Buffer(e),t=new Buffer(t);var r=0,n=e.length;e.length!==t.length&&(r++,n=Math.min(e.length,t.length));var i=-1;for(;++i<n;)r+=e[i]^t[i];return r}(o,h.slice(0,a)))throw new Error("decryption error");var d=a;for(;0===h[d];)d++;if(1!==h[d++])throw new Error("decryption error");return h.slice(d)}(d,h);if(1===u)return function(e,t,r){var n=t.slice(0,2),i=2,o=0;for(;0!==t[i++];)if(i>=t.length){o++;break}var a=t.slice(2,i-1);t.slice(i-1,i);("0002"!==n.toString("hex")&&!r||"0001"!==n.toString("hex")&&r)&&o++;a.length<8&&o++;if(o)throw new Error("decryption error");return t.slice(i)}(0,h,c);if(3===u)return h;throw new Error("unknown padding")}}).call(t,r(3).Buffer)},function(e,t,r){"use strict";(function(e,n){function i(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var o=r(4),a=r(48),Buffer=o.Buffer,s=o.kMaxLength,f=e.crypto||e.msCrypto,c=Math.pow(2,32)-1;function u(e,t){if("number"!=typeof e||e!=e)throw new TypeError("offset must be a number");if(e>c||e<0)throw new TypeError("offset must be a uint32");if(e>s||e>t)throw new RangeError("offset out of range")}function h(e,t,r){if("number"!=typeof e||e!=e)throw new TypeError("size must be a number");if(e>c||e<0)throw new TypeError("size must be a uint32");if(e+t>r||e>s)throw new RangeError("buffer too small")}function d(e,t,r,i){if(n.browser){var o=e.buffer,s=new Uint8Array(o,t,r);return f.getRandomValues(s),i?void n.nextTick(function(){i(null,e)}):e}if(!i)return a(r).copy(e,t),e;a(r,function(r,n){if(r)return i(r);n.copy(e,t),i(null,e)})}f&&f.getRandomValues||!n.browser?(t.randomFill=function(t,r,n,i){if(!(Buffer.isBuffer(t)||t instanceof e.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof r)i=r,r=0,n=t.length;else if("function"==typeof n)i=n,n=t.length-r;else if("function"!=typeof i)throw new TypeError('"cb" argument must be a function');return u(r,t.length),h(n,r,t.length),d(t,r,n,i)},t.randomFillSync=function(t,r,n){void 0===r&&(r=0);if(!(Buffer.isBuffer(t)||t instanceof e.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');u(r,t.length),void 0===n&&(n=t.length-r);return h(n,r,t.length),d(t,r,n)}):(t.randomFill=i,t.randomFillSync=i)}).call(t,r(29),r(32))},function(e,t,r){!function(t){"use strict";for(var r=[null,0,{}],n=10,i=44032,o=4352,a=4449,s=4519,f=19,c=21,u=28,h=c*u,d=f*h,l=function(e,t){this.codepoint=e,this.feature=t},p={},b=[],v=0;v<=255;++v)b[v]=0;var y=[function(e,t,n){return t<60||13311<t&&t<42607?new l(t,r):e(t,n)},function(e,t,r){var i=p[t];return i||(i=e(t,r)).feature&&++b[t>>8&255]>n&&(p[t]=i),i},function(e,t,r){return r?e(t,r):new l(t,null)},function(e,t,r){var n;if(t<o||o+f<=t&&t<i||i+d<t)return e(t,r);if(o<=t&&t<o+f){var p={},b=(t-o)*c;for(n=0;n<c;++n)p[a+n]=i+u*(n+b);return new l(t,[,,p])}var v=t-i,y=v%u,m=[];if(0!==y)m[0]=[i+v-y,s+y];else for(m[0]=[o+Math.floor(v/h),a+Math.floor(v%h/u)],m[2]={},n=1;n<u;++n)m[2][s+n]=t+n;return new l(t,m)},function(e,t,n){var i=65280&t,o=(l.udata[i]||{})[t];return new l(t,o||r)}];l.fromCharCode=y.reduceRight(function(e,t){return function(r,n){return t(e,r,n)}},null),l.isHighSurrogate=function(e){return e>=55296&&e<=56319},l.isLowSurrogate=function(e){return e>=56320&&e<=57343},l.prototype.prepFeature=function(){this.feature||(this.feature=l.fromCharCode(this.codepoint,!0).feature)},l.prototype.toString=function(){if(this.codepoint<65536)return String.fromCharCode(this.codepoint);var e=this.codepoint-65536;return String.fromCharCode(Math.floor(e/1024)+55296,e%1024+56320)},l.prototype.getDecomp=function(){return this.prepFeature(),this.feature[0]||null},l.prototype.isCompatibility=function(){return this.prepFeature(),!!this.feature[1]&&256&this.feature[1]},l.prototype.isExclude=function(){return this.prepFeature(),!!this.feature[1]&&512&this.feature[1]},l.prototype.getCanonicalClass=function(){return this.prepFeature(),this.feature[1]?255&this.feature[1]:0},l.prototype.getComposite=function(e){if(this.prepFeature(),!this.feature[2])return null;var t=this.feature[2][e.codepoint];return t?l.fromCharCode(t):null};var m=function(e){this.str=e,this.cursor=0};m.prototype.next=function(){if(this.str&&this.cursor<this.str.length){var e,t=this.str.charCodeAt(this.cursor++);return l.isHighSurrogate(t)&&this.cursor<this.str.length&&l.isLowSurrogate(e=this.str.charCodeAt(this.cursor))&&(t=1024*(t-55296)+(e-56320)+65536,++this.cursor),l.fromCharCode(t)}return this.str=null,null};var g=function(e,t){this.it=e,this.canonical=t,this.resBuf=[]};g.prototype.next=function(){if(0===this.resBuf.length){var e=this.it.next();if(!e)return null;this.resBuf=function e(t,r){var n=r.getDecomp();if(!n||t&&r.isCompatibility())return[r];for(var i=[],o=0;o<n.length;++o){var a=e(t,l.fromCharCode(n[o]));i=i.concat(a)}return i}(this.canonical,e)}return this.resBuf.shift()};var w=function(e){this.it=e,this.resBuf=[]};w.prototype.next=function(){var e;if(0===this.resBuf.length)do{var t=this.it.next();if(!t)break;e=t.getCanonicalClass();var r=this.resBuf.length;if(0!==e)for(;r>0;--r){if(this.resBuf[r-1].getCanonicalClass()<=e)break}this.resBuf.splice(r,0,t)}while(0!==e);return this.resBuf.shift()};var _=function(e){this.it=e,this.procBuf=[],this.resBuf=[],this.lastClass=null};_.prototype.next=function(){for(;0===this.resBuf.length;){var e=this.it.next();if(!e){this.resBuf=this.procBuf,this.procBuf=[];break}if(0===this.procBuf.length)this.lastClass=e.getCanonicalClass(),this.procBuf.push(e);else{var t=this.procBuf[0].getComposite(e),r=e.getCanonicalClass();t&&(this.lastClass<r||0===this.lastClass)?this.procBuf[0]=t:(0===r&&(this.resBuf=this.procBuf,this.procBuf=[]),this.lastClass=r,this.procBuf.push(e))}}return this.resBuf.shift()};var E=function(e,t){for(var r,n=function(e,t){switch(e){case"NFD":return new w(new g(new m(t),!0));case"NFKD":return new w(new g(new m(t),!1));case"NFC":return new _(new w(new g(new m(t),!0)));case"NFKC":return new _(new w(new g(new m(t),!1)))}throw e+" is invalid"}(e,t),i="";r=n.next();)i+=r.toString();return i};l.udata={0:{60:[,,{824:8814}],61:[,,{824:8800}],62:[,,{824:8815}],65:[,,{768:192,769:193,770:194,771:195,772:256,774:258,775:550,776:196,777:7842,778:197,780:461,783:512,785:514,803:7840,805:7680,808:260}],66:[,,{775:7682,803:7684,817:7686}],67:[,,{769:262,770:264,775:266,780:268,807:199}],68:[,,{775:7690,780:270,803:7692,807:7696,813:7698,817:7694}],69:[,,{768:200,769:201,770:202,771:7868,772:274,774:276,775:278,776:203,777:7866,780:282,783:516,785:518,803:7864,807:552,808:280,813:7704,816:7706}],70:[,,{775:7710}],71:[,,{769:500,770:284,772:7712,774:286,775:288,780:486,807:290}],72:[,,{770:292,775:7714,776:7718,780:542,803:7716,807:7720,814:7722}],73:[,,{768:204,769:205,770:206,771:296,772:298,774:300,775:304,776:207,777:7880,780:463,783:520,785:522,803:7882,808:302,816:7724}],74:[,,{770:308}],75:[,,{769:7728,780:488,803:7730,807:310,817:7732}],76:[,,{769:313,780:317,803:7734,807:315,813:7740,817:7738}],77:[,,{769:7742,775:7744,803:7746}],78:[,,{768:504,769:323,771:209,775:7748,780:327,803:7750,807:325,813:7754,817:7752}],79:[,,{768:210,769:211,770:212,771:213,772:332,774:334,775:558,776:214,777:7886,779:336,780:465,783:524,785:526,795:416,803:7884,808:490}],80:[,,{769:7764,775:7766}],82:[,,{769:340,775:7768,780:344,783:528,785:530,803:7770,807:342,817:7774}],83:[,,{769:346,770:348,775:7776,780:352,803:7778,806:536,807:350}],84:[,,{775:7786,780:356,803:7788,806:538,807:354,813:7792,817:7790}],85:[,,{768:217,769:218,770:219,771:360,772:362,774:364,776:220,777:7910,778:366,779:368,780:467,783:532,785:534,795:431,803:7908,804:7794,808:370,813:7798,816:7796}],86:[,,{771:7804,803:7806}],87:[,,{768:7808,769:7810,770:372,775:7814,776:7812,803:7816}],88:[,,{775:7818,776:7820}],89:[,,{768:7922,769:221,770:374,771:7928,772:562,775:7822,776:376,777:7926,803:7924}],90:[,,{769:377,770:7824,775:379,780:381,803:7826,817:7828}],97:[,,{768:224,769:225,770:226,771:227,772:257,774:259,775:551,776:228,777:7843,778:229,780:462,783:513,785:515,803:7841,805:7681,808:261}],98:[,,{775:7683,803:7685,817:7687}],99:[,,{769:263,770:265,775:267,780:269,807:231}],100:[,,{775:7691,780:271,803:7693,807:7697,813:7699,817:7695}],101:[,,{768:232,769:233,770:234,771:7869,772:275,774:277,775:279,776:235,777:7867,780:283,783:517,785:519,803:7865,807:553,808:281,813:7705,816:7707}],102:[,,{775:7711}],103:[,,{769:501,770:285,772:7713,774:287,775:289,780:487,807:291}],104:[,,{770:293,775:7715,776:7719,780:543,803:7717,807:7721,814:7723,817:7830}],105:[,,{768:236,769:237,770:238,771:297,772:299,774:301,776:239,777:7881,780:464,783:521,785:523,803:7883,808:303,816:7725}],106:[,,{770:309,780:496}],107:[,,{769:7729,780:489,803:7731,807:311,817:7733}],108:[,,{769:314,780:318,803:7735,807:316,813:7741,817:7739}],109:[,,{769:7743,775:7745,803:7747}],110:[,,{768:505,769:324,771:241,775:7749,780:328,803:7751,807:326,813:7755,817:7753}],111:[,,{768:242,769:243,770:244,771:245,772:333,774:335,775:559,776:246,777:7887,779:337,780:466,783:525,785:527,795:417,803:7885,808:491}],112:[,,{769:7765,775:7767}],114:[,,{769:341,775:7769,780:345,783:529,785:531,803:7771,807:343,817:7775}],115:[,,{769:347,770:349,775:7777,780:353,803:7779,806:537,807:351}],116:[,,{775:7787,776:7831,780:357,803:7789,806:539,807:355,813:7793,817:7791}],117:[,,{768:249,769:250,770:251,771:361,772:363,774:365,776:252,777:7911,778:367,779:369,780:468,783:533,785:535,795:432,803:7909,804:7795,808:371,813:7799,816:7797}],118:[,,{771:7805,803:7807}],119:[,,{768:7809,769:7811,770:373,775:7815,776:7813,778:7832,803:7817}],120:[,,{775:7819,776:7821}],121:[,,{768:7923,769:253,770:375,771:7929,772:563,775:7823,776:255,777:7927,778:7833,803:7925}],122:[,,{769:378,770:7825,775:380,780:382,803:7827,817:7829}],160:[[32],256],168:[[32,776],256,{768:8173,769:901,834:8129}],170:[[97],256],175:[[32,772],256],178:[[50],256],179:[[51],256],180:[[32,769],256],181:[[956],256],184:[[32,807],256],185:[[49],256],186:[[111],256],188:[[49,8260,52],256],189:[[49,8260,50],256],190:[[51,8260,52],256],192:[[65,768]],193:[[65,769]],194:[[65,770],,{768:7846,769:7844,771:7850,777:7848}],195:[[65,771]],196:[[65,776],,{772:478}],197:[[65,778],,{769:506}],198:[,,{769:508,772:482}],199:[[67,807],,{769:7688}],200:[[69,768]],201:[[69,769]],202:[[69,770],,{768:7872,769:7870,771:7876,777:7874}],203:[[69,776]],204:[[73,768]],205:[[73,769]],206:[[73,770]],207:[[73,776],,{769:7726}],209:[[78,771]],210:[[79,768]],211:[[79,769]],212:[[79,770],,{768:7890,769:7888,771:7894,777:7892}],213:[[79,771],,{769:7756,772:556,776:7758}],214:[[79,776],,{772:554}],216:[,,{769:510}],217:[[85,768]],218:[[85,769]],219:[[85,770]],220:[[85,776],,{768:475,769:471,772:469,780:473}],221:[[89,769]],224:[[97,768]],225:[[97,769]],226:[[97,770],,{768:7847,769:7845,771:7851,777:7849}],227:[[97,771]],228:[[97,776],,{772:479}],229:[[97,778],,{769:507}],230:[,,{769:509,772:483}],231:[[99,807],,{769:7689}],232:[[101,768]],233:[[101,769]],234:[[101,770],,{768:7873,769:7871,771:7877,777:7875}],235:[[101,776]],236:[[105,768]],237:[[105,769]],238:[[105,770]],239:[[105,776],,{769:7727}],241:[[110,771]],242:[[111,768]],243:[[111,769]],244:[[111,770],,{768:7891,769:7889,771:7895,777:7893}],245:[[111,771],,{769:7757,772:557,776:7759}],246:[[111,776],,{772:555}],248:[,,{769:511}],249:[[117,768]],250:[[117,769]],251:[[117,770]],252:[[117,776],,{768:476,769:472,772:470,780:474}],253:[[121,769]],255:[[121,776]]},256:{256:[[65,772]],257:[[97,772]],258:[[65,774],,{768:7856,769:7854,771:7860,777:7858}],259:[[97,774],,{768:7857,769:7855,771:7861,777:7859}],260:[[65,808]],261:[[97,808]],262:[[67,769]],263:[[99,769]],264:[[67,770]],265:[[99,770]],266:[[67,775]],267:[[99,775]],268:[[67,780]],269:[[99,780]],270:[[68,780]],271:[[100,780]],274:[[69,772],,{768:7700,769:7702}],275:[[101,772],,{768:7701,769:7703}],276:[[69,774]],277:[[101,774]],278:[[69,775]],279:[[101,775]],280:[[69,808]],281:[[101,808]],282:[[69,780]],283:[[101,780]],284:[[71,770]],285:[[103,770]],286:[[71,774]],287:[[103,774]],288:[[71,775]],289:[[103,775]],290:[[71,807]],291:[[103,807]],292:[[72,770]],293:[[104,770]],296:[[73,771]],297:[[105,771]],298:[[73,772]],299:[[105,772]],300:[[73,774]],301:[[105,774]],302:[[73,808]],303:[[105,808]],304:[[73,775]],306:[[73,74],256],307:[[105,106],256],308:[[74,770]],309:[[106,770]],310:[[75,807]],311:[[107,807]],313:[[76,769]],314:[[108,769]],315:[[76,807]],316:[[108,807]],317:[[76,780]],318:[[108,780]],319:[[76,183],256],320:[[108,183],256],323:[[78,769]],324:[[110,769]],325:[[78,807]],326:[[110,807]],327:[[78,780]],328:[[110,780]],329:[[700,110],256],332:[[79,772],,{768:7760,769:7762}],333:[[111,772],,{768:7761,769:7763}],334:[[79,774]],335:[[111,774]],336:[[79,779]],337:[[111,779]],340:[[82,769]],341:[[114,769]],342:[[82,807]],343:[[114,807]],344:[[82,780]],345:[[114,780]],346:[[83,769],,{775:7780}],347:[[115,769],,{775:7781}],348:[[83,770]],349:[[115,770]],350:[[83,807]],351:[[115,807]],352:[[83,780],,{775:7782}],353:[[115,780],,{775:7783}],354:[[84,807]],355:[[116,807]],356:[[84,780]],357:[[116,780]],360:[[85,771],,{769:7800}],361:[[117,771],,{769:7801}],362:[[85,772],,{776:7802}],363:[[117,772],,{776:7803}],364:[[85,774]],365:[[117,774]],366:[[85,778]],367:[[117,778]],368:[[85,779]],369:[[117,779]],370:[[85,808]],371:[[117,808]],372:[[87,770]],373:[[119,770]],374:[[89,770]],375:[[121,770]],376:[[89,776]],377:[[90,769]],378:[[122,769]],379:[[90,775]],380:[[122,775]],381:[[90,780]],382:[[122,780]],383:[[115],256,{775:7835}],416:[[79,795],,{768:7900,769:7898,771:7904,777:7902,803:7906}],417:[[111,795],,{768:7901,769:7899,771:7905,777:7903,803:7907}],431:[[85,795],,{768:7914,769:7912,771:7918,777:7916,803:7920}],432:[[117,795],,{768:7915,769:7913,771:7919,777:7917,803:7921}],439:[,,{780:494}],452:[[68,381],256],453:[[68,382],256],454:[[100,382],256],455:[[76,74],256],456:[[76,106],256],457:[[108,106],256],458:[[78,74],256],459:[[78,106],256],460:[[110,106],256],461:[[65,780]],462:[[97,780]],463:[[73,780]],464:[[105,780]],465:[[79,780]],466:[[111,780]],467:[[85,780]],468:[[117,780]],469:[[220,772]],470:[[252,772]],471:[[220,769]],472:[[252,769]],473:[[220,780]],474:[[252,780]],475:[[220,768]],476:[[252,768]],478:[[196,772]],479:[[228,772]],480:[[550,772]],481:[[551,772]],482:[[198,772]],483:[[230,772]],486:[[71,780]],487:[[103,780]],488:[[75,780]],489:[[107,780]],490:[[79,808],,{772:492}],491:[[111,808],,{772:493}],492:[[490,772]],493:[[491,772]],494:[[439,780]],495:[[658,780]],496:[[106,780]],497:[[68,90],256],498:[[68,122],256],499:[[100,122],256],500:[[71,769]],501:[[103,769]],504:[[78,768]],505:[[110,768]],506:[[197,769]],507:[[229,769]],508:[[198,769]],509:[[230,769]],510:[[216,769]],511:[[248,769]],66045:[,220]},512:{512:[[65,783]],513:[[97,783]],514:[[65,785]],515:[[97,785]],516:[[69,783]],517:[[101,783]],518:[[69,785]],519:[[101,785]],520:[[73,783]],521:[[105,783]],522:[[73,785]],523:[[105,785]],524:[[79,783]],525:[[111,783]],526:[[79,785]],527:[[111,785]],528:[[82,783]],529:[[114,783]],530:[[82,785]],531:[[114,785]],532:[[85,783]],533:[[117,783]],534:[[85,785]],535:[[117,785]],536:[[83,806]],537:[[115,806]],538:[[84,806]],539:[[116,806]],542:[[72,780]],543:[[104,780]],550:[[65,775],,{772:480}],551:[[97,775],,{772:481}],552:[[69,807],,{774:7708}],553:[[101,807],,{774:7709}],554:[[214,772]],555:[[246,772]],556:[[213,772]],557:[[245,772]],558:[[79,775],,{772:560}],559:[[111,775],,{772:561}],560:[[558,772]],561:[[559,772]],562:[[89,772]],563:[[121,772]],658:[,,{780:495}],688:[[104],256],689:[[614],256],690:[[106],256],691:[[114],256],692:[[633],256],693:[[635],256],694:[[641],256],695:[[119],256],696:[[121],256],728:[[32,774],256],729:[[32,775],256],730:[[32,778],256],731:[[32,808],256],732:[[32,771],256],733:[[32,779],256],736:[[611],256],737:[[108],256],738:[[115],256],739:[[120],256],740:[[661],256],66272:[,220]},768:{768:[,230],769:[,230],770:[,230],771:[,230],772:[,230],773:[,230],774:[,230],775:[,230],776:[,230,{769:836}],777:[,230],778:[,230],779:[,230],780:[,230],781:[,230],782:[,230],783:[,230],784:[,230],785:[,230],786:[,230],787:[,230],788:[,230],789:[,232],790:[,220],791:[,220],792:[,220],793:[,220],794:[,232],795:[,216],796:[,220],797:[,220],798:[,220],799:[,220],800:[,220],801:[,202],802:[,202],803:[,220],804:[,220],805:[,220],806:[,220],807:[,202],808:[,202],809:[,220],810:[,220],811:[,220],812:[,220],813:[,220],814:[,220],815:[,220],816:[,220],817:[,220],818:[,220],819:[,220],820:[,1],821:[,1],822:[,1],823:[,1],824:[,1],825:[,220],826:[,220],827:[,220],828:[,220],829:[,230],830:[,230],831:[,230],832:[[768],230],833:[[769],230],834:[,230],835:[[787],230],836:[[776,769],230],837:[,240],838:[,230],839:[,220],840:[,220],841:[,220],842:[,230],843:[,230],844:[,230],845:[,220],846:[,220],848:[,230],849:[,230],850:[,230],851:[,220],852:[,220],853:[,220],854:[,220],855:[,230],856:[,232],857:[,220],858:[,220],859:[,230],860:[,233],861:[,234],862:[,234],863:[,233],864:[,234],865:[,234],866:[,233],867:[,230],868:[,230],869:[,230],870:[,230],871:[,230],872:[,230],873:[,230],874:[,230],875:[,230],876:[,230],877:[,230],878:[,230],879:[,230],884:[[697]],890:[[32,837],256],894:[[59]],900:[[32,769],256],901:[[168,769]],902:[[913,769]],903:[[183]],904:[[917,769]],905:[[919,769]],906:[[921,769]],908:[[927,769]],910:[[933,769]],911:[[937,769]],912:[[970,769]],913:[,,{768:8122,769:902,772:8121,774:8120,787:7944,788:7945,837:8124}],917:[,,{768:8136,769:904,787:7960,788:7961}],919:[,,{768:8138,769:905,787:7976,788:7977,837:8140}],921:[,,{768:8154,769:906,772:8153,774:8152,776:938,787:7992,788:7993}],927:[,,{768:8184,769:908,787:8008,788:8009}],929:[,,{788:8172}],933:[,,{768:8170,769:910,772:8169,774:8168,776:939,788:8025}],937:[,,{768:8186,769:911,787:8040,788:8041,837:8188}],938:[[921,776]],939:[[933,776]],940:[[945,769],,{837:8116}],941:[[949,769]],942:[[951,769],,{837:8132}],943:[[953,769]],944:[[971,769]],945:[,,{768:8048,769:940,772:8113,774:8112,787:7936,788:7937,834:8118,837:8115}],949:[,,{768:8050,769:941,787:7952,788:7953}],951:[,,{768:8052,769:942,787:7968,788:7969,834:8134,837:8131}],953:[,,{768:8054,769:943,772:8145,774:8144,776:970,787:7984,788:7985,834:8150}],959:[,,{768:8056,769:972,787:8e3,788:8001}],961:[,,{787:8164,788:8165}],965:[,,{768:8058,769:973,772:8161,774:8160,776:971,787:8016,788:8017,834:8166}],969:[,,{768:8060,769:974,787:8032,788:8033,834:8182,837:8179}],970:[[953,776],,{768:8146,769:912,834:8151}],971:[[965,776],,{768:8162,769:944,834:8167}],972:[[959,769]],973:[[965,769]],974:[[969,769],,{837:8180}],976:[[946],256],977:[[952],256],978:[[933],256,{769:979,776:980}],979:[[978,769]],980:[[978,776]],981:[[966],256],982:[[960],256],1008:[[954],256],1009:[[961],256],1010:[[962],256],1012:[[920],256],1013:[[949],256],1017:[[931],256],66422:[,230],66423:[,230],66424:[,230],66425:[,230],66426:[,230]},1024:{1024:[[1045,768]],1025:[[1045,776]],1027:[[1043,769]],1030:[,,{776:1031}],1031:[[1030,776]],1036:[[1050,769]],1037:[[1048,768]],1038:[[1059,774]],1040:[,,{774:1232,776:1234}],1043:[,,{769:1027}],1045:[,,{768:1024,774:1238,776:1025}],1046:[,,{774:1217,776:1244}],1047:[,,{776:1246}],1048:[,,{768:1037,772:1250,774:1049,776:1252}],1049:[[1048,774]],1050:[,,{769:1036}],1054:[,,{776:1254}],1059:[,,{772:1262,774:1038,776:1264,779:1266}],1063:[,,{776:1268}],1067:[,,{776:1272}],1069:[,,{776:1260}],1072:[,,{774:1233,776:1235}],1075:[,,{769:1107}],1077:[,,{768:1104,774:1239,776:1105}],1078:[,,{774:1218,776:1245}],1079:[,,{776:1247}],1080:[,,{768:1117,772:1251,774:1081,776:1253}],1081:[[1080,774]],1082:[,,{769:1116}],1086:[,,{776:1255}],1091:[,,{772:1263,774:1118,776:1265,779:1267}],1095:[,,{776:1269}],1099:[,,{776:1273}],1101:[,,{776:1261}],1104:[[1077,768]],1105:[[1077,776]],1107:[[1075,769]],1110:[,,{776:1111}],1111:[[1110,776]],1116:[[1082,769]],1117:[[1080,768]],1118:[[1091,774]],1140:[,,{783:1142}],1141:[,,{783:1143}],1142:[[1140,783]],1143:[[1141,783]],1155:[,230],1156:[,230],1157:[,230],1158:[,230],1159:[,230],1217:[[1046,774]],1218:[[1078,774]],1232:[[1040,774]],1233:[[1072,774]],1234:[[1040,776]],1235:[[1072,776]],1238:[[1045,774]],1239:[[1077,774]],1240:[,,{776:1242}],1241:[,,{776:1243}],1242:[[1240,776]],1243:[[1241,776]],1244:[[1046,776]],1245:[[1078,776]],1246:[[1047,776]],1247:[[1079,776]],1250:[[1048,772]],1251:[[1080,772]],1252:[[1048,776]],1253:[[1080,776]],1254:[[1054,776]],1255:[[1086,776]],1256:[,,{776:1258}],1257:[,,{776:1259}],1258:[[1256,776]],1259:[[1257,776]],1260:[[1069,776]],1261:[[1101,776]],1262:[[1059,772]],1263:[[1091,772]],1264:[[1059,776]],1265:[[1091,776]],1266:[[1059,779]],1267:[[1091,779]],1268:[[1063,776]],1269:[[1095,776]],1272:[[1067,776]],1273:[[1099,776]]},1280:{1415:[[1381,1410],256],1425:[,220],1426:[,230],1427:[,230],1428:[,230],1429:[,230],1430:[,220],1431:[,230],1432:[,230],1433:[,230],1434:[,222],1435:[,220],1436:[,230],1437:[,230],1438:[,230],1439:[,230],1440:[,230],1441:[,230],1442:[,220],1443:[,220],1444:[,220],1445:[,220],1446:[,220],1447:[,220],1448:[,230],1449:[,230],1450:[,220],1451:[,230],1452:[,230],1453:[,222],1454:[,228],1455:[,230],1456:[,10],1457:[,11],1458:[,12],1459:[,13],1460:[,14],1461:[,15],1462:[,16],1463:[,17],1464:[,18],1465:[,19],1466:[,19],1467:[,20],1468:[,21],1469:[,22],1471:[,23],1473:[,24],1474:[,25],1476:[,230],1477:[,220],1479:[,18]},1536:{1552:[,230],1553:[,230],1554:[,230],1555:[,230],1556:[,230],1557:[,230],1558:[,230],1559:[,230],1560:[,30],1561:[,31],1562:[,32],1570:[[1575,1619]],1571:[[1575,1620]],1572:[[1608,1620]],1573:[[1575,1621]],1574:[[1610,1620]],1575:[,,{1619:1570,1620:1571,1621:1573}],1608:[,,{1620:1572}],1610:[,,{1620:1574}],1611:[,27],1612:[,28],1613:[,29],1614:[,30],1615:[,31],1616:[,32],1617:[,33],1618:[,34],1619:[,230],1620:[,230],1621:[,220],1622:[,220],1623:[,230],1624:[,230],1625:[,230],1626:[,230],1627:[,230],1628:[,220],1629:[,230],1630:[,230],1631:[,220],1648:[,35],1653:[[1575,1652],256],1654:[[1608,1652],256],1655:[[1735,1652],256],1656:[[1610,1652],256],1728:[[1749,1620]],1729:[,,{1620:1730}],1730:[[1729,1620]],1746:[,,{1620:1747}],1747:[[1746,1620]],1749:[,,{1620:1728}],1750:[,230],1751:[,230],1752:[,230],1753:[,230],1754:[,230],1755:[,230],1756:[,230],1759:[,230],1760:[,230],1761:[,230],1762:[,230],1763:[,220],1764:[,230],1767:[,230],1768:[,230],1770:[,220],1771:[,230],1772:[,230],1773:[,220]},1792:{1809:[,36],1840:[,230],1841:[,220],1842:[,230],1843:[,230],1844:[,220],1845:[,230],1846:[,230],1847:[,220],1848:[,220],1849:[,220],1850:[,230],1851:[,220],1852:[,220],1853:[,230],1854:[,220],1855:[,230],1856:[,230],1857:[,230],1858:[,220],1859:[,230],1860:[,220],1861:[,230],1862:[,220],1863:[,230],1864:[,220],1865:[,230],1866:[,230],2027:[,230],2028:[,230],2029:[,230],2030:[,230],2031:[,230],2032:[,230],2033:[,230],2034:[,220],2035:[,230]},2048:{2070:[,230],2071:[,230],2072:[,230],2073:[,230],2075:[,230],2076:[,230],2077:[,230],2078:[,230],2079:[,230],2080:[,230],2081:[,230],2082:[,230],2083:[,230],2085:[,230],2086:[,230],2087:[,230],2089:[,230],2090:[,230],2091:[,230],2092:[,230],2093:[,230],2137:[,220],2138:[,220],2139:[,220],2276:[,230],2277:[,230],2278:[,220],2279:[,230],2280:[,230],2281:[,220],2282:[,230],2283:[,230],2284:[,230],2285:[,220],2286:[,220],2287:[,220],2288:[,27],2289:[,28],2290:[,29],2291:[,230],2292:[,230],2293:[,230],2294:[,220],2295:[,230],2296:[,230],2297:[,220],2298:[,220],2299:[,230],2300:[,230],2301:[,230],2302:[,230],2303:[,230]},2304:{2344:[,,{2364:2345}],2345:[[2344,2364]],2352:[,,{2364:2353}],2353:[[2352,2364]],2355:[,,{2364:2356}],2356:[[2355,2364]],2364:[,7],2381:[,9],2385:[,230],2386:[,220],2387:[,230],2388:[,230],2392:[[2325,2364],512],2393:[[2326,2364],512],2394:[[2327,2364],512],2395:[[2332,2364],512],2396:[[2337,2364],512],2397:[[2338,2364],512],2398:[[2347,2364],512],2399:[[2351,2364],512],2492:[,7],2503:[,,{2494:2507,2519:2508}],2507:[[2503,2494]],2508:[[2503,2519]],2509:[,9],2524:[[2465,2492],512],2525:[[2466,2492],512],2527:[[2479,2492],512]},2560:{2611:[[2610,2620],512],2614:[[2616,2620],512],2620:[,7],2637:[,9],2649:[[2582,2620],512],2650:[[2583,2620],512],2651:[[2588,2620],512],2654:[[2603,2620],512],2748:[,7],2765:[,9],68109:[,220],68111:[,230],68152:[,230],68153:[,1],68154:[,220],68159:[,9],68325:[,230],68326:[,220]},2816:{2876:[,7],2887:[,,{2878:2891,2902:2888,2903:2892}],2888:[[2887,2902]],2891:[[2887,2878]],2892:[[2887,2903]],2893:[,9],2908:[[2849,2876],512],2909:[[2850,2876],512],2962:[,,{3031:2964}],2964:[[2962,3031]],3014:[,,{3006:3018,3031:3020}],3015:[,,{3006:3019}],3018:[[3014,3006]],3019:[[3015,3006]],3020:[[3014,3031]],3021:[,9]},3072:{3142:[,,{3158:3144}],3144:[[3142,3158]],3149:[,9],3157:[,84],3158:[,91],3260:[,7],3263:[,,{3285:3264}],3264:[[3263,3285]],3270:[,,{3266:3274,3285:3271,3286:3272}],3271:[[3270,3285]],3272:[[3270,3286]],3274:[[3270,3266],,{3285:3275}],3275:[[3274,3285]],3277:[,9]},3328:{3398:[,,{3390:3402,3415:3404}],3399:[,,{3390:3403}],3402:[[3398,3390]],3403:[[3399,3390]],3404:[[3398,3415]],3405:[,9],3530:[,9],3545:[,,{3530:3546,3535:3548,3551:3550}],3546:[[3545,3530]],3548:[[3545,3535],,{3530:3549}],3549:[[3548,3530]],3550:[[3545,3551]]},3584:{3635:[[3661,3634],256],3640:[,103],3641:[,103],3642:[,9],3656:[,107],3657:[,107],3658:[,107],3659:[,107],3763:[[3789,3762],256],3768:[,118],3769:[,118],3784:[,122],3785:[,122],3786:[,122],3787:[,122],3804:[[3755,3737],256],3805:[[3755,3745],256]},3840:{3852:[[3851],256],3864:[,220],3865:[,220],3893:[,220],3895:[,220],3897:[,216],3907:[[3906,4023],512],3917:[[3916,4023],512],3922:[[3921,4023],512],3927:[[3926,4023],512],3932:[[3931,4023],512],3945:[[3904,4021],512],3953:[,129],3954:[,130],3955:[[3953,3954],512],3956:[,132],3957:[[3953,3956],512],3958:[[4018,3968],512],3959:[[4018,3969],256],3960:[[4019,3968],512],3961:[[4019,3969],256],3962:[,130],3963:[,130],3964:[,130],3965:[,130],3968:[,130],3969:[[3953,3968],512],3970:[,230],3971:[,230],3972:[,9],3974:[,230],3975:[,230],3987:[[3986,4023],512],3997:[[3996,4023],512],4002:[[4001,4023],512],4007:[[4006,4023],512],4012:[[4011,4023],512],4025:[[3984,4021],512],4038:[,220]},4096:{4133:[,,{4142:4134}],4134:[[4133,4142]],4151:[,7],4153:[,9],4154:[,9],4237:[,220],4348:[[4316],256],69702:[,9],69759:[,9],69785:[,,{69818:69786}],69786:[[69785,69818]],69787:[,,{69818:69788}],69788:[[69787,69818]],69797:[,,{69818:69803}],69803:[[69797,69818]],69817:[,9],69818:[,7]},4352:{69888:[,230],69889:[,230],69890:[,230],69934:[[69937,69927]],69935:[[69938,69927]],69937:[,,{69927:69934}],69938:[,,{69927:69935}],69939:[,9],69940:[,9],70003:[,7],70080:[,9]},4608:{70197:[,9],70198:[,7],70377:[,7],70378:[,9]},4864:{4957:[,230],4958:[,230],4959:[,230],70460:[,7],70471:[,,{70462:70475,70487:70476}],70475:[[70471,70462]],70476:[[70471,70487]],70477:[,9],70502:[,230],70503:[,230],70504:[,230],70505:[,230],70506:[,230],70507:[,230],70508:[,230],70512:[,230],70513:[,230],70514:[,230],70515:[,230],70516:[,230]},5120:{70841:[,,{70832:70844,70842:70843,70845:70846}],70843:[[70841,70842]],70844:[[70841,70832]],70846:[[70841,70845]],70850:[,9],70851:[,7]},5376:{71096:[,,{71087:71098}],71097:[,,{71087:71099}],71098:[[71096,71087]],71099:[[71097,71087]],71103:[,9],71104:[,7]},5632:{71231:[,9],71350:[,9],71351:[,7]},5888:{5908:[,9],5940:[,9],6098:[,9],6109:[,230]},6144:{6313:[,228]},6400:{6457:[,222],6458:[,230],6459:[,220]},6656:{6679:[,230],6680:[,220],6752:[,9],6773:[,230],6774:[,230],6775:[,230],6776:[,230],6777:[,230],6778:[,230],6779:[,230],6780:[,230],6783:[,220],6832:[,230],6833:[,230],6834:[,230],6835:[,230],6836:[,230],6837:[,220],6838:[,220],6839:[,220],6840:[,220],6841:[,220],6842:[,220],6843:[,230],6844:[,230],6845:[,220]},6912:{6917:[,,{6965:6918}],6918:[[6917,6965]],6919:[,,{6965:6920}],6920:[[6919,6965]],6921:[,,{6965:6922}],6922:[[6921,6965]],6923:[,,{6965:6924}],6924:[[6923,6965]],6925:[,,{6965:6926}],6926:[[6925,6965]],6929:[,,{6965:6930}],6930:[[6929,6965]],6964:[,7],6970:[,,{6965:6971}],6971:[[6970,6965]],6972:[,,{6965:6973}],6973:[[6972,6965]],6974:[,,{6965:6976}],6975:[,,{6965:6977}],6976:[[6974,6965]],6977:[[6975,6965]],6978:[,,{6965:6979}],6979:[[6978,6965]],6980:[,9],7019:[,230],7020:[,220],7021:[,230],7022:[,230],7023:[,230],7024:[,230],7025:[,230],7026:[,230],7027:[,230],7082:[,9],7083:[,9],7142:[,7],7154:[,9],7155:[,9]},7168:{7223:[,7],7376:[,230],7377:[,230],7378:[,230],7380:[,1],7381:[,220],7382:[,220],7383:[,220],7384:[,220],7385:[,220],7386:[,230],7387:[,230],7388:[,220],7389:[,220],7390:[,220],7391:[,220],7392:[,230],7394:[,1],7395:[,1],7396:[,1],7397:[,1],7398:[,1],7399:[,1],7400:[,1],7405:[,220],7412:[,230],7416:[,230],7417:[,230]},7424:{7468:[[65],256],7469:[[198],256],7470:[[66],256],7472:[[68],256],7473:[[69],256],7474:[[398],256],7475:[[71],256],7476:[[72],256],7477:[[73],256],7478:[[74],256],7479:[[75],256],7480:[[76],256],7481:[[77],256],7482:[[78],256],7484:[[79],256],7485:[[546],256],7486:[[80],256],7487:[[82],256],7488:[[84],256],7489:[[85],256],7490:[[87],256],7491:[[97],256],7492:[[592],256],7493:[[593],256],7494:[[7426],256],7495:[[98],256],7496:[[100],256],7497:[[101],256],7498:[[601],256],7499:[[603],256],7500:[[604],256],7501:[[103],256],7503:[[107],256],7504:[[109],256],7505:[[331],256],7506:[[111],256],7507:[[596],256],7508:[[7446],256],7509:[[7447],256],7510:[[112],256],7511:[[116],256],7512:[[117],256],7513:[[7453],256],7514:[[623],256],7515:[[118],256],7516:[[7461],256],7517:[[946],256],7518:[[947],256],7519:[[948],256],7520:[[966],256],7521:[[967],256],7522:[[105],256],7523:[[114],256],7524:[[117],256],7525:[[118],256],7526:[[946],256],7527:[[947],256],7528:[[961],256],7529:[[966],256],7530:[[967],256],7544:[[1085],256],7579:[[594],256],7580:[[99],256],7581:[[597],256],7582:[[240],256],7583:[[604],256],7584:[[102],256],7585:[[607],256],7586:[[609],256],7587:[[613],256],7588:[[616],256],7589:[[617],256],7590:[[618],256],7591:[[7547],256],7592:[[669],256],7593:[[621],256],7594:[[7557],256],7595:[[671],256],7596:[[625],256],7597:[[624],256],7598:[[626],256],7599:[[627],256],7600:[[628],256],7601:[[629],256],7602:[[632],256],7603:[[642],256],7604:[[643],256],7605:[[427],256],7606:[[649],256],7607:[[650],256],7608:[[7452],256],7609:[[651],256],7610:[[652],256],7611:[[122],256],7612:[[656],256],7613:[[657],256],7614:[[658],256],7615:[[952],256],7616:[,230],7617:[,230],7618:[,220],7619:[,230],7620:[,230],7621:[,230],7622:[,230],7623:[,230],7624:[,230],7625:[,230],7626:[,220],7627:[,230],7628:[,230],7629:[,234],7630:[,214],7631:[,220],7632:[,202],7633:[,230],7634:[,230],7635:[,230],7636:[,230],7637:[,230],7638:[,230],7639:[,230],7640:[,230],7641:[,230],7642:[,230],7643:[,230],7644:[,230],7645:[,230],7646:[,230],7647:[,230],7648:[,230],7649:[,230],7650:[,230],7651:[,230],7652:[,230],7653:[,230],7654:[,230],7655:[,230],7656:[,230],7657:[,230],7658:[,230],7659:[,230],7660:[,230],7661:[,230],7662:[,230],7663:[,230],7664:[,230],7665:[,230],7666:[,230],7667:[,230],7668:[,230],7669:[,230],7676:[,233],7677:[,220],7678:[,230],7679:[,220]},7680:{7680:[[65,805]],7681:[[97,805]],7682:[[66,775]],7683:[[98,775]],7684:[[66,803]],7685:[[98,803]],7686:[[66,817]],7687:[[98,817]],7688:[[199,769]],7689:[[231,769]],7690:[[68,775]],7691:[[100,775]],7692:[[68,803]],7693:[[100,803]],7694:[[68,817]],7695:[[100,817]],7696:[[68,807]],7697:[[100,807]],7698:[[68,813]],7699:[[100,813]],7700:[[274,768]],7701:[[275,768]],7702:[[274,769]],7703:[[275,769]],7704:[[69,813]],7705:[[101,813]],7706:[[69,816]],7707:[[101,816]],7708:[[552,774]],7709:[[553,774]],7710:[[70,775]],7711:[[102,775]],7712:[[71,772]],7713:[[103,772]],7714:[[72,775]],7715:[[104,775]],7716:[[72,803]],7717:[[104,803]],7718:[[72,776]],7719:[[104,776]],7720:[[72,807]],7721:[[104,807]],7722:[[72,814]],7723:[[104,814]],7724:[[73,816]],7725:[[105,816]],7726:[[207,769]],7727:[[239,769]],7728:[[75,769]],7729:[[107,769]],7730:[[75,803]],7731:[[107,803]],7732:[[75,817]],7733:[[107,817]],7734:[[76,803],,{772:7736}],7735:[[108,803],,{772:7737}],7736:[[7734,772]],7737:[[7735,772]],7738:[[76,817]],7739:[[108,817]],7740:[[76,813]],7741:[[108,813]],7742:[[77,769]],7743:[[109,769]],7744:[[77,775]],7745:[[109,775]],7746:[[77,803]],7747:[[109,803]],7748:[[78,775]],7749:[[110,775]],7750:[[78,803]],7751:[[110,803]],7752:[[78,817]],7753:[[110,817]],7754:[[78,813]],7755:[[110,813]],7756:[[213,769]],7757:[[245,769]],7758:[[213,776]],7759:[[245,776]],7760:[[332,768]],7761:[[333,768]],7762:[[332,769]],7763:[[333,769]],7764:[[80,769]],7765:[[112,769]],7766:[[80,775]],7767:[[112,775]],7768:[[82,775]],7769:[[114,775]],7770:[[82,803],,{772:7772}],7771:[[114,803],,{772:7773}],7772:[[7770,772]],7773:[[7771,772]],7774:[[82,817]],7775:[[114,817]],7776:[[83,775]],7777:[[115,775]],7778:[[83,803],,{775:7784}],7779:[[115,803],,{775:7785}],7780:[[346,775]],7781:[[347,775]],7782:[[352,775]],7783:[[353,775]],7784:[[7778,775]],7785:[[7779,775]],7786:[[84,775]],7787:[[116,775]],7788:[[84,803]],7789:[[116,803]],7790:[[84,817]],7791:[[116,817]],7792:[[84,813]],7793:[[116,813]],7794:[[85,804]],7795:[[117,804]],7796:[[85,816]],7797:[[117,816]],7798:[[85,813]],7799:[[117,813]],7800:[[360,769]],7801:[[361,769]],7802:[[362,776]],7803:[[363,776]],7804:[[86,771]],7805:[[118,771]],7806:[[86,803]],7807:[[118,803]],7808:[[87,768]],7809:[[119,768]],7810:[[87,769]],7811:[[119,769]],7812:[[87,776]],7813:[[119,776]],7814:[[87,775]],7815:[[119,775]],7816:[[87,803]],7817:[[119,803]],7818:[[88,775]],7819:[[120,775]],7820:[[88,776]],7821:[[120,776]],7822:[[89,775]],7823:[[121,775]],7824:[[90,770]],7825:[[122,770]],7826:[[90,803]],7827:[[122,803]],7828:[[90,817]],7829:[[122,817]],7830:[[104,817]],7831:[[116,776]],7832:[[119,778]],7833:[[121,778]],7834:[[97,702],256],7835:[[383,775]],7840:[[65,803],,{770:7852,774:7862}],7841:[[97,803],,{770:7853,774:7863}],7842:[[65,777]],7843:[[97,777]],7844:[[194,769]],7845:[[226,769]],7846:[[194,768]],7847:[[226,768]],7848:[[194,777]],7849:[[226,777]],7850:[[194,771]],7851:[[226,771]],7852:[[7840,770]],7853:[[7841,770]],7854:[[258,769]],7855:[[259,769]],7856:[[258,768]],7857:[[259,768]],7858:[[258,777]],7859:[[259,777]],7860:[[258,771]],7861:[[259,771]],7862:[[7840,774]],7863:[[7841,774]],7864:[[69,803],,{770:7878}],7865:[[101,803],,{770:7879}],7866:[[69,777]],7867:[[101,777]],7868:[[69,771]],7869:[[101,771]],7870:[[202,769]],7871:[[234,769]],7872:[[202,768]],7873:[[234,768]],7874:[[202,777]],7875:[[234,777]],7876:[[202,771]],7877:[[234,771]],7878:[[7864,770]],7879:[[7865,770]],7880:[[73,777]],7881:[[105,777]],7882:[[73,803]],7883:[[105,803]],7884:[[79,803],,{770:7896}],7885:[[111,803],,{770:7897}],7886:[[79,777]],7887:[[111,777]],7888:[[212,769]],7889:[[244,769]],7890:[[212,768]],7891:[[244,768]],7892:[[212,777]],7893:[[244,777]],7894:[[212,771]],7895:[[244,771]],7896:[[7884,770]],7897:[[7885,770]],7898:[[416,769]],7899:[[417,769]],7900:[[416,768]],7901:[[417,768]],7902:[[416,777]],7903:[[417,777]],7904:[[416,771]],7905:[[417,771]],7906:[[416,803]],7907:[[417,803]],7908:[[85,803]],7909:[[117,803]],7910:[[85,777]],7911:[[117,777]],7912:[[431,769]],7913:[[432,769]],7914:[[431,768]],7915:[[432,768]],7916:[[431,777]],7917:[[432,777]],7918:[[431,771]],7919:[[432,771]],7920:[[431,803]],7921:[[432,803]],7922:[[89,768]],7923:[[121,768]],7924:[[89,803]],7925:[[121,803]],7926:[[89,777]],7927:[[121,777]],7928:[[89,771]],7929:[[121,771]]},7936:{7936:[[945,787],,{768:7938,769:7940,834:7942,837:8064}],7937:[[945,788],,{768:7939,769:7941,834:7943,837:8065}],7938:[[7936,768],,{837:8066}],7939:[[7937,768],,{837:8067}],7940:[[7936,769],,{837:8068}],7941:[[7937,769],,{837:8069}],7942:[[7936,834],,{837:8070}],7943:[[7937,834],,{837:8071}],7944:[[913,787],,{768:7946,769:7948,834:7950,837:8072}],7945:[[913,788],,{768:7947,769:7949,834:7951,837:8073}],7946:[[7944,768],,{837:8074}],7947:[[7945,768],,{837:8075}],7948:[[7944,769],,{837:8076}],7949:[[7945,769],,{837:8077}],7950:[[7944,834],,{837:8078}],7951:[[7945,834],,{837:8079}],7952:[[949,787],,{768:7954,769:7956}],7953:[[949,788],,{768:7955,769:7957}],7954:[[7952,768]],7955:[[7953,768]],7956:[[7952,769]],7957:[[7953,769]],7960:[[917,787],,{768:7962,769:7964}],7961:[[917,788],,{768:7963,769:7965}],7962:[[7960,768]],7963:[[7961,768]],7964:[[7960,769]],7965:[[7961,769]],7968:[[951,787],,{768:7970,769:7972,834:7974,837:8080}],7969:[[951,788],,{768:7971,769:7973,834:7975,837:8081}],7970:[[7968,768],,{837:8082}],7971:[[7969,768],,{837:8083}],7972:[[7968,769],,{837:8084}],7973:[[7969,769],,{837:8085}],7974:[[7968,834],,{837:8086}],7975:[[7969,834],,{837:8087}],7976:[[919,787],,{768:7978,769:7980,834:7982,837:8088}],7977:[[919,788],,{768:7979,769:7981,834:7983,837:8089}],7978:[[7976,768],,{837:8090}],7979:[[7977,768],,{837:8091}],7980:[[7976,769],,{837:8092}],7981:[[7977,769],,{837:8093}],7982:[[7976,834],,{837:8094}],7983:[[7977,834],,{837:8095}],7984:[[953,787],,{768:7986,769:7988,834:7990}],7985:[[953,788],,{768:7987,769:7989,834:7991}],7986:[[7984,768]],7987:[[7985,768]],7988:[[7984,769]],7989:[[7985,769]],7990:[[7984,834]],7991:[[7985,834]],7992:[[921,787],,{768:7994,769:7996,834:7998}],7993:[[921,788],,{768:7995,769:7997,834:7999}],7994:[[7992,768]],7995:[[7993,768]],7996:[[7992,769]],7997:[[7993,769]],7998:[[7992,834]],7999:[[7993,834]],8000:[[959,787],,{768:8002,769:8004}],8001:[[959,788],,{768:8003,769:8005}],8002:[[8e3,768]],8003:[[8001,768]],8004:[[8e3,769]],8005:[[8001,769]],8008:[[927,787],,{768:8010,769:8012}],8009:[[927,788],,{768:8011,769:8013}],8010:[[8008,768]],8011:[[8009,768]],8012:[[8008,769]],8013:[[8009,769]],8016:[[965,787],,{768:8018,769:8020,834:8022}],8017:[[965,788],,{768:8019,769:8021,834:8023}],8018:[[8016,768]],8019:[[8017,768]],8020:[[8016,769]],8021:[[8017,769]],8022:[[8016,834]],8023:[[8017,834]],8025:[[933,788],,{768:8027,769:8029,834:8031}],8027:[[8025,768]],8029:[[8025,769]],8031:[[8025,834]],8032:[[969,787],,{768:8034,769:8036,834:8038,837:8096}],8033:[[969,788],,{768:8035,769:8037,834:8039,837:8097}],8034:[[8032,768],,{837:8098}],8035:[[8033,768],,{837:8099}],8036:[[8032,769],,{837:8100}],8037:[[8033,769],,{837:8101}],8038:[[8032,834],,{837:8102}],8039:[[8033,834],,{837:8103}],8040:[[937,787],,{768:8042,769:8044,834:8046,837:8104}],8041:[[937,788],,{768:8043,769:8045,834:8047,837:8105}],8042:[[8040,768],,{837:8106}],8043:[[8041,768],,{837:8107}],8044:[[8040,769],,{837:8108}],8045:[[8041,769],,{837:8109}],8046:[[8040,834],,{837:8110}],8047:[[8041,834],,{837:8111}],8048:[[945,768],,{837:8114}],8049:[[940]],8050:[[949,768]],8051:[[941]],8052:[[951,768],,{837:8130}],8053:[[942]],8054:[[953,768]],8055:[[943]],8056:[[959,768]],8057:[[972]],8058:[[965,768]],8059:[[973]],8060:[[969,768],,{837:8178}],8061:[[974]],8064:[[7936,837]],8065:[[7937,837]],8066:[[7938,837]],8067:[[7939,837]],8068:[[7940,837]],8069:[[7941,837]],8070:[[7942,837]],8071:[[7943,837]],8072:[[7944,837]],8073:[[7945,837]],8074:[[7946,837]],8075:[[7947,837]],8076:[[7948,837]],8077:[[7949,837]],8078:[[7950,837]],8079:[[7951,837]],8080:[[7968,837]],8081:[[7969,837]],8082:[[7970,837]],8083:[[7971,837]],8084:[[7972,837]],8085:[[7973,837]],8086:[[7974,837]],8087:[[7975,837]],8088:[[7976,837]],8089:[[7977,837]],8090:[[7978,837]],8091:[[7979,837]],8092:[[7980,837]],8093:[[7981,837]],8094:[[7982,837]],8095:[[7983,837]],8096:[[8032,837]],8097:[[8033,837]],8098:[[8034,837]],8099:[[8035,837]],8100:[[8036,837]],8101:[[8037,837]],8102:[[8038,837]],8103:[[8039,837]],8104:[[8040,837]],8105:[[8041,837]],8106:[[8042,837]],8107:[[8043,837]],8108:[[8044,837]],8109:[[8045,837]],8110:[[8046,837]],8111:[[8047,837]],8112:[[945,774]],8113:[[945,772]],8114:[[8048,837]],8115:[[945,837]],8116:[[940,837]],8118:[[945,834],,{837:8119}],8119:[[8118,837]],8120:[[913,774]],8121:[[913,772]],8122:[[913,768]],8123:[[902]],8124:[[913,837]],8125:[[32,787],256],8126:[[953]],8127:[[32,787],256,{768:8141,769:8142,834:8143}],8128:[[32,834],256],8129:[[168,834]],8130:[[8052,837]],8131:[[951,837]],8132:[[942,837]],8134:[[951,834],,{837:8135}],8135:[[8134,837]],8136:[[917,768]],8137:[[904]],8138:[[919,768]],8139:[[905]],8140:[[919,837]],8141:[[8127,768]],8142:[[8127,769]],8143:[[8127,834]],8144:[[953,774]],8145:[[953,772]],8146:[[970,768]],8147:[[912]],8150:[[953,834]],8151:[[970,834]],8152:[[921,774]],8153:[[921,772]],8154:[[921,768]],8155:[[906]],8157:[[8190,768]],8158:[[8190,769]],8159:[[8190,834]],8160:[[965,774]],8161:[[965,772]],8162:[[971,768]],8163:[[944]],8164:[[961,787]],8165:[[961,788]],8166:[[965,834]],8167:[[971,834]],8168:[[933,774]],8169:[[933,772]],8170:[[933,768]],8171:[[910]],8172:[[929,788]],8173:[[168,768]],8174:[[901]],8175:[[96]],8178:[[8060,837]],8179:[[969,837]],8180:[[974,837]],8182:[[969,834],,{837:8183}],8183:[[8182,837]],8184:[[927,768]],8185:[[908]],8186:[[937,768]],8187:[[911]],8188:[[937,837]],8189:[[180]],8190:[[32,788],256,{768:8157,769:8158,834:8159}]},8192:{8192:[[8194]],8193:[[8195]],8194:[[32],256],8195:[[32],256],8196:[[32],256],8197:[[32],256],8198:[[32],256],8199:[[32],256],8200:[[32],256],8201:[[32],256],8202:[[32],256],8209:[[8208],256],8215:[[32,819],256],8228:[[46],256],8229:[[46,46],256],8230:[[46,46,46],256],8239:[[32],256],8243:[[8242,8242],256],8244:[[8242,8242,8242],256],8246:[[8245,8245],256],8247:[[8245,8245,8245],256],8252:[[33,33],256],8254:[[32,773],256],8263:[[63,63],256],8264:[[63,33],256],8265:[[33,63],256],8279:[[8242,8242,8242,8242],256],8287:[[32],256],8304:[[48],256],8305:[[105],256],8308:[[52],256],8309:[[53],256],8310:[[54],256],8311:[[55],256],8312:[[56],256],8313:[[57],256],8314:[[43],256],8315:[[8722],256],8316:[[61],256],8317:[[40],256],8318:[[41],256],8319:[[110],256],8320:[[48],256],8321:[[49],256],8322:[[50],256],8323:[[51],256],8324:[[52],256],8325:[[53],256],8326:[[54],256],8327:[[55],256],8328:[[56],256],8329:[[57],256],8330:[[43],256],8331:[[8722],256],8332:[[61],256],8333:[[40],256],8334:[[41],256],8336:[[97],256],8337:[[101],256],8338:[[111],256],8339:[[120],256],8340:[[601],256],8341:[[104],256],8342:[[107],256],8343:[[108],256],8344:[[109],256],8345:[[110],256],8346:[[112],256],8347:[[115],256],8348:[[116],256],8360:[[82,115],256],8400:[,230],8401:[,230],8402:[,1],8403:[,1],8404:[,230],8405:[,230],8406:[,230],8407:[,230],8408:[,1],8409:[,1],8410:[,1],8411:[,230],8412:[,230],8417:[,230],8421:[,1],8422:[,1],8423:[,230],8424:[,220],8425:[,230],8426:[,1],8427:[,1],8428:[,220],8429:[,220],8430:[,220],8431:[,220],8432:[,230]},8448:{8448:[[97,47,99],256],8449:[[97,47,115],256],8450:[[67],256],8451:[[176,67],256],8453:[[99,47,111],256],8454:[[99,47,117],256],8455:[[400],256],8457:[[176,70],256],8458:[[103],256],8459:[[72],256],8460:[[72],256],8461:[[72],256],8462:[[104],256],8463:[[295],256],8464:[[73],256],8465:[[73],256],8466:[[76],256],8467:[[108],256],8469:[[78],256],8470:[[78,111],256],8473:[[80],256],8474:[[81],256],8475:[[82],256],8476:[[82],256],8477:[[82],256],8480:[[83,77],256],8481:[[84,69,76],256],8482:[[84,77],256],8484:[[90],256],8486:[[937]],8488:[[90],256],8490:[[75]],8491:[[197]],8492:[[66],256],8493:[[67],256],8495:[[101],256],8496:[[69],256],8497:[[70],256],8499:[[77],256],8500:[[111],256],8501:[[1488],256],8502:[[1489],256],8503:[[1490],256],8504:[[1491],256],8505:[[105],256],8507:[[70,65,88],256],8508:[[960],256],8509:[[947],256],8510:[[915],256],8511:[[928],256],8512:[[8721],256],8517:[[68],256],8518:[[100],256],8519:[[101],256],8520:[[105],256],8521:[[106],256],8528:[[49,8260,55],256],8529:[[49,8260,57],256],8530:[[49,8260,49,48],256],8531:[[49,8260,51],256],8532:[[50,8260,51],256],8533:[[49,8260,53],256],8534:[[50,8260,53],256],8535:[[51,8260,53],256],8536:[[52,8260,53],256],8537:[[49,8260,54],256],8538:[[53,8260,54],256],8539:[[49,8260,56],256],8540:[[51,8260,56],256],8541:[[53,8260,56],256],8542:[[55,8260,56],256],8543:[[49,8260],256],8544:[[73],256],8545:[[73,73],256],8546:[[73,73,73],256],8547:[[73,86],256],8548:[[86],256],8549:[[86,73],256],8550:[[86,73,73],256],8551:[[86,73,73,73],256],8552:[[73,88],256],8553:[[88],256],8554:[[88,73],256],8555:[[88,73,73],256],8556:[[76],256],8557:[[67],256],8558:[[68],256],8559:[[77],256],8560:[[105],256],8561:[[105,105],256],8562:[[105,105,105],256],8563:[[105,118],256],8564:[[118],256],8565:[[118,105],256],8566:[[118,105,105],256],8567:[[118,105,105,105],256],8568:[[105,120],256],8569:[[120],256],8570:[[120,105],256],8571:[[120,105,105],256],8572:[[108],256],8573:[[99],256],8574:[[100],256],8575:[[109],256],8585:[[48,8260,51],256],8592:[,,{824:8602}],8594:[,,{824:8603}],8596:[,,{824:8622}],8602:[[8592,824]],8603:[[8594,824]],8622:[[8596,824]],8653:[[8656,824]],8654:[[8660,824]],8655:[[8658,824]],8656:[,,{824:8653}],8658:[,,{824:8655}],8660:[,,{824:8654}]},8704:{8707:[,,{824:8708}],8708:[[8707,824]],8712:[,,{824:8713}],8713:[[8712,824]],8715:[,,{824:8716}],8716:[[8715,824]],8739:[,,{824:8740}],8740:[[8739,824]],8741:[,,{824:8742}],8742:[[8741,824]],8748:[[8747,8747],256],8749:[[8747,8747,8747],256],8751:[[8750,8750],256],8752:[[8750,8750,8750],256],8764:[,,{824:8769}],8769:[[8764,824]],8771:[,,{824:8772}],8772:[[8771,824]],8773:[,,{824:8775}],8775:[[8773,824]],8776:[,,{824:8777}],8777:[[8776,824]],8781:[,,{824:8813}],8800:[[61,824]],8801:[,,{824:8802}],8802:[[8801,824]],8804:[,,{824:8816}],8805:[,,{824:8817}],8813:[[8781,824]],8814:[[60,824]],8815:[[62,824]],8816:[[8804,824]],8817:[[8805,824]],8818:[,,{824:8820}],8819:[,,{824:8821}],8820:[[8818,824]],8821:[[8819,824]],8822:[,,{824:8824}],8823:[,,{824:8825}],8824:[[8822,824]],8825:[[8823,824]],8826:[,,{824:8832}],8827:[,,{824:8833}],8828:[,,{824:8928}],8829:[,,{824:8929}],8832:[[8826,824]],8833:[[8827,824]],8834:[,,{824:8836}],8835:[,,{824:8837}],8836:[[8834,824]],8837:[[8835,824]],8838:[,,{824:8840}],8839:[,,{824:8841}],8840:[[8838,824]],8841:[[8839,824]],8849:[,,{824:8930}],8850:[,,{824:8931}],8866:[,,{824:8876}],8872:[,,{824:8877}],8873:[,,{824:8878}],8875:[,,{824:8879}],8876:[[8866,824]],8877:[[8872,824]],8878:[[8873,824]],8879:[[8875,824]],8882:[,,{824:8938}],8883:[,,{824:8939}],8884:[,,{824:8940}],8885:[,,{824:8941}],8928:[[8828,824]],8929:[[8829,824]],8930:[[8849,824]],8931:[[8850,824]],8938:[[8882,824]],8939:[[8883,824]],8940:[[8884,824]],8941:[[8885,824]]},8960:{9001:[[12296]],9002:[[12297]]},9216:{9312:[[49],256],9313:[[50],256],9314:[[51],256],9315:[[52],256],9316:[[53],256],9317:[[54],256],9318:[[55],256],9319:[[56],256],9320:[[57],256],9321:[[49,48],256],9322:[[49,49],256],9323:[[49,50],256],9324:[[49,51],256],9325:[[49,52],256],9326:[[49,53],256],9327:[[49,54],256],9328:[[49,55],256],9329:[[49,56],256],9330:[[49,57],256],9331:[[50,48],256],9332:[[40,49,41],256],9333:[[40,50,41],256],9334:[[40,51,41],256],9335:[[40,52,41],256],9336:[[40,53,41],256],9337:[[40,54,41],256],9338:[[40,55,41],256],9339:[[40,56,41],256],9340:[[40,57,41],256],9341:[[40,49,48,41],256],9342:[[40,49,49,41],256],9343:[[40,49,50,41],256],9344:[[40,49,51,41],256],9345:[[40,49,52,41],256],9346:[[40,49,53,41],256],9347:[[40,49,54,41],256],9348:[[40,49,55,41],256],9349:[[40,49,56,41],256],9350:[[40,49,57,41],256],9351:[[40,50,48,41],256],9352:[[49,46],256],9353:[[50,46],256],9354:[[51,46],256],9355:[[52,46],256],9356:[[53,46],256],9357:[[54,46],256],9358:[[55,46],256],9359:[[56,46],256],9360:[[57,46],256],9361:[[49,48,46],256],9362:[[49,49,46],256],9363:[[49,50,46],256],9364:[[49,51,46],256],9365:[[49,52,46],256],9366:[[49,53,46],256],9367:[[49,54,46],256],9368:[[49,55,46],256],9369:[[49,56,46],256],9370:[[49,57,46],256],9371:[[50,48,46],256],9372:[[40,97,41],256],9373:[[40,98,41],256],9374:[[40,99,41],256],9375:[[40,100,41],256],9376:[[40,101,41],256],9377:[[40,102,41],256],9378:[[40,103,41],256],9379:[[40,104,41],256],9380:[[40,105,41],256],9381:[[40,106,41],256],9382:[[40,107,41],256],9383:[[40,108,41],256],9384:[[40,109,41],256],9385:[[40,110,41],256],9386:[[40,111,41],256],9387:[[40,112,41],256],9388:[[40,113,41],256],9389:[[40,114,41],256],9390:[[40,115,41],256],9391:[[40,116,41],256],9392:[[40,117,41],256],9393:[[40,118,41],256],9394:[[40,119,41],256],9395:[[40,120,41],256],9396:[[40,121,41],256],9397:[[40,122,41],256],9398:[[65],256],9399:[[66],256],9400:[[67],256],9401:[[68],256],9402:[[69],256],9403:[[70],256],9404:[[71],256],9405:[[72],256],9406:[[73],256],9407:[[74],256],9408:[[75],256],9409:[[76],256],9410:[[77],256],9411:[[78],256],9412:[[79],256],9413:[[80],256],9414:[[81],256],9415:[[82],256],9416:[[83],256],9417:[[84],256],9418:[[85],256],9419:[[86],256],9420:[[87],256],9421:[[88],256],9422:[[89],256],9423:[[90],256],9424:[[97],256],9425:[[98],256],9426:[[99],256],9427:[[100],256],9428:[[101],256],9429:[[102],256],9430:[[103],256],9431:[[104],256],9432:[[105],256],9433:[[106],256],9434:[[107],256],9435:[[108],256],9436:[[109],256],9437:[[110],256],9438:[[111],256],9439:[[112],256],9440:[[113],256],9441:[[114],256],9442:[[115],256],9443:[[116],256],9444:[[117],256],9445:[[118],256],9446:[[119],256],9447:[[120],256],9448:[[121],256],9449:[[122],256],9450:[[48],256]},10752:{10764:[[8747,8747,8747,8747],256],10868:[[58,58,61],256],10869:[[61,61],256],10870:[[61,61,61],256],10972:[[10973,824],512]},11264:{11388:[[106],256],11389:[[86],256],11503:[,230],11504:[,230],11505:[,230]},11520:{11631:[[11617],256],11647:[,9],11744:[,230],11745:[,230],11746:[,230],11747:[,230],11748:[,230],11749:[,230],11750:[,230],11751:[,230],11752:[,230],11753:[,230],11754:[,230],11755:[,230],11756:[,230],11757:[,230],11758:[,230],11759:[,230],11760:[,230],11761:[,230],11762:[,230],11763:[,230],11764:[,230],11765:[,230],11766:[,230],11767:[,230],11768:[,230],11769:[,230],11770:[,230],11771:[,230],11772:[,230],11773:[,230],11774:[,230],11775:[,230]},11776:{11935:[[27597],256],12019:[[40863],256]},12032:{12032:[[19968],256],12033:[[20008],256],12034:[[20022],256],12035:[[20031],256],12036:[[20057],256],12037:[[20101],256],12038:[[20108],256],12039:[[20128],256],12040:[[20154],256],12041:[[20799],256],12042:[[20837],256],12043:[[20843],256],12044:[[20866],256],12045:[[20886],256],12046:[[20907],256],12047:[[20960],256],12048:[[20981],256],12049:[[20992],256],12050:[[21147],256],12051:[[21241],256],12052:[[21269],256],12053:[[21274],256],12054:[[21304],256],12055:[[21313],256],12056:[[21340],256],12057:[[21353],256],12058:[[21378],256],12059:[[21430],256],12060:[[21448],256],12061:[[21475],256],12062:[[22231],256],12063:[[22303],256],12064:[[22763],256],12065:[[22786],256],12066:[[22794],256],12067:[[22805],256],12068:[[22823],256],12069:[[22899],256],12070:[[23376],256],12071:[[23424],256],12072:[[23544],256],12073:[[23567],256],12074:[[23586],256],12075:[[23608],256],12076:[[23662],256],12077:[[23665],256],12078:[[24027],256],12079:[[24037],256],12080:[[24049],256],12081:[[24062],256],12082:[[24178],256],12083:[[24186],256],12084:[[24191],256],12085:[[24308],256],12086:[[24318],256],12087:[[24331],256],12088:[[24339],256],12089:[[24400],256],12090:[[24417],256],12091:[[24435],256],12092:[[24515],256],12093:[[25096],256],12094:[[25142],256],12095:[[25163],256],12096:[[25903],256],12097:[[25908],256],12098:[[25991],256],12099:[[26007],256],12100:[[26020],256],12101:[[26041],256],12102:[[26080],256],12103:[[26085],256],12104:[[26352],256],12105:[[26376],256],12106:[[26408],256],12107:[[27424],256],12108:[[27490],256],12109:[[27513],256],12110:[[27571],256],12111:[[27595],256],12112:[[27604],256],12113:[[27611],256],12114:[[27663],256],12115:[[27668],256],12116:[[27700],256],12117:[[28779],256],12118:[[29226],256],12119:[[29238],256],12120:[[29243],256],12121:[[29247],256],12122:[[29255],256],12123:[[29273],256],12124:[[29275],256],12125:[[29356],256],12126:[[29572],256],12127:[[29577],256],12128:[[29916],256],12129:[[29926],256],12130:[[29976],256],12131:[[29983],256],12132:[[29992],256],12133:[[3e4],256],12134:[[30091],256],12135:[[30098],256],12136:[[30326],256],12137:[[30333],256],12138:[[30382],256],12139:[[30399],256],12140:[[30446],256],12141:[[30683],256],12142:[[30690],256],12143:[[30707],256],12144:[[31034],256],12145:[[31160],256],12146:[[31166],256],12147:[[31348],256],12148:[[31435],256],12149:[[31481],256],12150:[[31859],256],12151:[[31992],256],12152:[[32566],256],12153:[[32593],256],12154:[[32650],256],12155:[[32701],256],12156:[[32769],256],12157:[[32780],256],12158:[[32786],256],12159:[[32819],256],12160:[[32895],256],12161:[[32905],256],12162:[[33251],256],12163:[[33258],256],12164:[[33267],256],12165:[[33276],256],12166:[[33292],256],12167:[[33307],256],12168:[[33311],256],12169:[[33390],256],12170:[[33394],256],12171:[[33400],256],12172:[[34381],256],12173:[[34411],256],12174:[[34880],256],12175:[[34892],256],12176:[[34915],256],12177:[[35198],256],12178:[[35211],256],12179:[[35282],256],12180:[[35328],256],12181:[[35895],256],12182:[[35910],256],12183:[[35925],256],12184:[[35960],256],12185:[[35997],256],12186:[[36196],256],12187:[[36208],256],12188:[[36275],256],12189:[[36523],256],12190:[[36554],256],12191:[[36763],256],12192:[[36784],256],12193:[[36789],256],12194:[[37009],256],12195:[[37193],256],12196:[[37318],256],12197:[[37324],256],12198:[[37329],256],12199:[[38263],256],12200:[[38272],256],12201:[[38428],256],12202:[[38582],256],12203:[[38585],256],12204:[[38632],256],12205:[[38737],256],12206:[[38750],256],12207:[[38754],256],12208:[[38761],256],12209:[[38859],256],12210:[[38893],256],12211:[[38899],256],12212:[[38913],256],12213:[[39080],256],12214:[[39131],256],12215:[[39135],256],12216:[[39318],256],12217:[[39321],256],12218:[[39340],256],12219:[[39592],256],12220:[[39640],256],12221:[[39647],256],12222:[[39717],256],12223:[[39727],256],12224:[[39730],256],12225:[[39740],256],12226:[[39770],256],12227:[[40165],256],12228:[[40565],256],12229:[[40575],256],12230:[[40613],256],12231:[[40635],256],12232:[[40643],256],12233:[[40653],256],12234:[[40657],256],12235:[[40697],256],12236:[[40701],256],12237:[[40718],256],12238:[[40723],256],12239:[[40736],256],12240:[[40763],256],12241:[[40778],256],12242:[[40786],256],12243:[[40845],256],12244:[[40860],256],12245:[[40864],256]},12288:{12288:[[32],256],12330:[,218],12331:[,228],12332:[,232],12333:[,222],12334:[,224],12335:[,224],12342:[[12306],256],12344:[[21313],256],12345:[[21316],256],12346:[[21317],256],12358:[,,{12441:12436}],12363:[,,{12441:12364}],12364:[[12363,12441]],12365:[,,{12441:12366}],12366:[[12365,12441]],12367:[,,{12441:12368}],12368:[[12367,12441]],12369:[,,{12441:12370}],12370:[[12369,12441]],12371:[,,{12441:12372}],12372:[[12371,12441]],12373:[,,{12441:12374}],12374:[[12373,12441]],12375:[,,{12441:12376}],12376:[[12375,12441]],12377:[,,{12441:12378}],12378:[[12377,12441]],12379:[,,{12441:12380}],12380:[[12379,12441]],12381:[,,{12441:12382}],12382:[[12381,12441]],12383:[,,{12441:12384}],12384:[[12383,12441]],12385:[,,{12441:12386}],12386:[[12385,12441]],12388:[,,{12441:12389}],12389:[[12388,12441]],12390:[,,{12441:12391}],12391:[[12390,12441]],12392:[,,{12441:12393}],12393:[[12392,12441]],12399:[,,{12441:12400,12442:12401}],12400:[[12399,12441]],12401:[[12399,12442]],12402:[,,{12441:12403,12442:12404}],12403:[[12402,12441]],12404:[[12402,12442]],12405:[,,{12441:12406,12442:12407}],12406:[[12405,12441]],12407:[[12405,12442]],12408:[,,{12441:12409,12442:12410}],12409:[[12408,12441]],12410:[[12408,12442]],12411:[,,{12441:12412,12442:12413}],12412:[[12411,12441]],12413:[[12411,12442]],12436:[[12358,12441]],12441:[,8],12442:[,8],12443:[[32,12441],256],12444:[[32,12442],256],12445:[,,{12441:12446}],12446:[[12445,12441]],12447:[[12424,12426],256],12454:[,,{12441:12532}],12459:[,,{12441:12460}],12460:[[12459,12441]],12461:[,,{12441:12462}],12462:[[12461,12441]],12463:[,,{12441:12464}],12464:[[12463,12441]],12465:[,,{12441:12466}],12466:[[12465,12441]],12467:[,,{12441:12468}],12468:[[12467,12441]],12469:[,,{12441:12470}],12470:[[12469,12441]],12471:[,,{12441:12472}],12472:[[12471,12441]],12473:[,,{12441:12474}],12474:[[12473,12441]],12475:[,,{12441:12476}],12476:[[12475,12441]],12477:[,,{12441:12478}],12478:[[12477,12441]],12479:[,,{12441:12480}],12480:[[12479,12441]],12481:[,,{12441:12482}],12482:[[12481,12441]],12484:[,,{12441:12485}],12485:[[12484,12441]],12486:[,,{12441:12487}],12487:[[12486,12441]],12488:[,,{12441:12489}],12489:[[12488,12441]],12495:[,,{12441:12496,12442:12497}],12496:[[12495,12441]],12497:[[12495,12442]],12498:[,,{12441:12499,12442:12500}],12499:[[12498,12441]],12500:[[12498,12442]],12501:[,,{12441:12502,12442:12503}],12502:[[12501,12441]],12503:[[12501,12442]],12504:[,,{12441:12505,12442:12506}],12505:[[12504,12441]],12506:[[12504,12442]],12507:[,,{12441:12508,12442:12509}],12508:[[12507,12441]],12509:[[12507,12442]],12527:[,,{12441:12535}],12528:[,,{12441:12536}],12529:[,,{12441:12537}],12530:[,,{12441:12538}],12532:[[12454,12441]],12535:[[12527,12441]],12536:[[12528,12441]],12537:[[12529,12441]],12538:[[12530,12441]],12541:[,,{12441:12542}],12542:[[12541,12441]],12543:[[12467,12488],256]},12544:{12593:[[4352],256],12594:[[4353],256],12595:[[4522],256],12596:[[4354],256],12597:[[4524],256],12598:[[4525],256],12599:[[4355],256],12600:[[4356],256],12601:[[4357],256],12602:[[4528],256],12603:[[4529],256],12604:[[4530],256],12605:[[4531],256],12606:[[4532],256],12607:[[4533],256],12608:[[4378],256],12609:[[4358],256],12610:[[4359],256],12611:[[4360],256],12612:[[4385],256],12613:[[4361],256],12614:[[4362],256],12615:[[4363],256],12616:[[4364],256],12617:[[4365],256],12618:[[4366],256],12619:[[4367],256],12620:[[4368],256],12621:[[4369],256],12622:[[4370],256],12623:[[4449],256],12624:[[4450],256],12625:[[4451],256],12626:[[4452],256],12627:[[4453],256],12628:[[4454],256],12629:[[4455],256],12630:[[4456],256],12631:[[4457],256],12632:[[4458],256],12633:[[4459],256],12634:[[4460],256],12635:[[4461],256],12636:[[4462],256],12637:[[4463],256],12638:[[4464],256],12639:[[4465],256],12640:[[4466],256],12641:[[4467],256],12642:[[4468],256],12643:[[4469],256],12644:[[4448],256],12645:[[4372],256],12646:[[4373],256],12647:[[4551],256],12648:[[4552],256],12649:[[4556],256],12650:[[4558],256],12651:[[4563],256],12652:[[4567],256],12653:[[4569],256],12654:[[4380],256],12655:[[4573],256],12656:[[4575],256],12657:[[4381],256],12658:[[4382],256],12659:[[4384],256],12660:[[4386],256],12661:[[4387],256],12662:[[4391],256],12663:[[4393],256],12664:[[4395],256],12665:[[4396],256],12666:[[4397],256],12667:[[4398],256],12668:[[4399],256],12669:[[4402],256],12670:[[4406],256],12671:[[4416],256],12672:[[4423],256],12673:[[4428],256],12674:[[4593],256],12675:[[4594],256],12676:[[4439],256],12677:[[4440],256],12678:[[4441],256],12679:[[4484],256],12680:[[4485],256],12681:[[4488],256],12682:[[4497],256],12683:[[4498],256],12684:[[4500],256],12685:[[4510],256],12686:[[4513],256],12690:[[19968],256],12691:[[20108],256],12692:[[19977],256],12693:[[22235],256],12694:[[19978],256],12695:[[20013],256],12696:[[19979],256],12697:[[30002],256],12698:[[20057],256],12699:[[19993],256],12700:[[19969],256],12701:[[22825],256],12702:[[22320],256],12703:[[20154],256]},12800:{12800:[[40,4352,41],256],12801:[[40,4354,41],256],12802:[[40,4355,41],256],12803:[[40,4357,41],256],12804:[[40,4358,41],256],12805:[[40,4359,41],256],12806:[[40,4361,41],256],12807:[[40,4363,41],256],12808:[[40,4364,41],256],12809:[[40,4366,41],256],12810:[[40,4367,41],256],12811:[[40,4368,41],256],12812:[[40,4369,41],256],12813:[[40,4370,41],256],12814:[[40,4352,4449,41],256],12815:[[40,4354,4449,41],256],12816:[[40,4355,4449,41],256],12817:[[40,4357,4449,41],256],12818:[[40,4358,4449,41],256],12819:[[40,4359,4449,41],256],12820:[[40,4361,4449,41],256],12821:[[40,4363,4449,41],256],12822:[[40,4364,4449,41],256],12823:[[40,4366,4449,41],256],12824:[[40,4367,4449,41],256],12825:[[40,4368,4449,41],256],12826:[[40,4369,4449,41],256],12827:[[40,4370,4449,41],256],12828:[[40,4364,4462,41],256],12829:[[40,4363,4457,4364,4453,4523,41],256],12830:[[40,4363,4457,4370,4462,41],256],12832:[[40,19968,41],256],12833:[[40,20108,41],256],12834:[[40,19977,41],256],12835:[[40,22235,41],256],12836:[[40,20116,41],256],12837:[[40,20845,41],256],12838:[[40,19971,41],256],12839:[[40,20843,41],256],12840:[[40,20061,41],256],12841:[[40,21313,41],256],12842:[[40,26376,41],256],12843:[[40,28779,41],256],12844:[[40,27700,41],256],12845:[[40,26408,41],256],12846:[[40,37329,41],256],12847:[[40,22303,41],256],12848:[[40,26085,41],256],12849:[[40,26666,41],256],12850:[[40,26377,41],256],12851:[[40,31038,41],256],12852:[[40,21517,41],256],12853:[[40,29305,41],256],12854:[[40,36001,41],256],12855:[[40,31069,41],256],12856:[[40,21172,41],256],12857:[[40,20195,41],256],12858:[[40,21628,41],256],12859:[[40,23398,41],256],12860:[[40,30435,41],256],12861:[[40,20225,41],256],12862:[[40,36039,41],256],12863:[[40,21332,41],256],12864:[[40,31085,41],256],12865:[[40,20241,41],256],12866:[[40,33258,41],256],12867:[[40,33267,41],256],12868:[[21839],256],12869:[[24188],256],12870:[[25991],256],12871:[[31631],256],12880:[[80,84,69],256],12881:[[50,49],256],12882:[[50,50],256],12883:[[50,51],256],12884:[[50,52],256],12885:[[50,53],256],12886:[[50,54],256],12887:[[50,55],256],12888:[[50,56],256],12889:[[50,57],256],12890:[[51,48],256],12891:[[51,49],256],12892:[[51,50],256],12893:[[51,51],256],12894:[[51,52],256],12895:[[51,53],256],12896:[[4352],256],12897:[[4354],256],12898:[[4355],256],12899:[[4357],256],12900:[[4358],256],12901:[[4359],256],12902:[[4361],256],12903:[[4363],256],12904:[[4364],256],12905:[[4366],256],12906:[[4367],256],12907:[[4368],256],12908:[[4369],256],12909:[[4370],256],12910:[[4352,4449],256],12911:[[4354,4449],256],12912:[[4355,4449],256],12913:[[4357,4449],256],12914:[[4358,4449],256],12915:[[4359,4449],256],12916:[[4361,4449],256],12917:[[4363,4449],256],12918:[[4364,4449],256],12919:[[4366,4449],256],12920:[[4367,4449],256],12921:[[4368,4449],256],12922:[[4369,4449],256],12923:[[4370,4449],256],12924:[[4366,4449,4535,4352,4457],256],12925:[[4364,4462,4363,4468],256],12926:[[4363,4462],256],12928:[[19968],256],12929:[[20108],256],12930:[[19977],256],12931:[[22235],256],12932:[[20116],256],12933:[[20845],256],12934:[[19971],256],12935:[[20843],256],12936:[[20061],256],12937:[[21313],256],12938:[[26376],256],12939:[[28779],256],12940:[[27700],256],12941:[[26408],256],12942:[[37329],256],12943:[[22303],256],12944:[[26085],256],12945:[[26666],256],12946:[[26377],256],12947:[[31038],256],12948:[[21517],256],12949:[[29305],256],12950:[[36001],256],12951:[[31069],256],12952:[[21172],256],12953:[[31192],256],12954:[[30007],256],12955:[[22899],256],12956:[[36969],256],12957:[[20778],256],12958:[[21360],256],12959:[[27880],256],12960:[[38917],256],12961:[[20241],256],12962:[[20889],256],12963:[[27491],256],12964:[[19978],256],12965:[[20013],256],12966:[[19979],256],12967:[[24038],256],12968:[[21491],256],12969:[[21307],256],12970:[[23447],256],12971:[[23398],256],12972:[[30435],256],12973:[[20225],256],12974:[[36039],256],12975:[[21332],256],12976:[[22812],256],12977:[[51,54],256],12978:[[51,55],256],12979:[[51,56],256],12980:[[51,57],256],12981:[[52,48],256],12982:[[52,49],256],12983:[[52,50],256],12984:[[52,51],256],12985:[[52,52],256],12986:[[52,53],256],12987:[[52,54],256],12988:[[52,55],256],12989:[[52,56],256],12990:[[52,57],256],12991:[[53,48],256],12992:[[49,26376],256],12993:[[50,26376],256],12994:[[51,26376],256],12995:[[52,26376],256],12996:[[53,26376],256],12997:[[54,26376],256],12998:[[55,26376],256],12999:[[56,26376],256],13000:[[57,26376],256],13001:[[49,48,26376],256],13002:[[49,49,26376],256],13003:[[49,50,26376],256],13004:[[72,103],256],13005:[[101,114,103],256],13006:[[101,86],256],13007:[[76,84,68],256],13008:[[12450],256],13009:[[12452],256],13010:[[12454],256],13011:[[12456],256],13012:[[12458],256],13013:[[12459],256],13014:[[12461],256],13015:[[12463],256],13016:[[12465],256],13017:[[12467],256],13018:[[12469],256],13019:[[12471],256],13020:[[12473],256],13021:[[12475],256],13022:[[12477],256],13023:[[12479],256],13024:[[12481],256],13025:[[12484],256],13026:[[12486],256],13027:[[12488],256],13028:[[12490],256],13029:[[12491],256],13030:[[12492],256],13031:[[12493],256],13032:[[12494],256],13033:[[12495],256],13034:[[12498],256],13035:[[12501],256],13036:[[12504],256],13037:[[12507],256],13038:[[12510],256],13039:[[12511],256],13040:[[12512],256],13041:[[12513],256],13042:[[12514],256],13043:[[12516],256],13044:[[12518],256],13045:[[12520],256],13046:[[12521],256],13047:[[12522],256],13048:[[12523],256],13049:[[12524],256],13050:[[12525],256],13051:[[12527],256],13052:[[12528],256],13053:[[12529],256],13054:[[12530],256]},13056:{13056:[[12450,12497,12540,12488],256],13057:[[12450,12523,12501,12449],256],13058:[[12450,12531,12506,12450],256],13059:[[12450,12540,12523],256],13060:[[12452,12491,12531,12464],256],13061:[[12452,12531,12481],256],13062:[[12454,12457,12531],256],13063:[[12456,12473,12463,12540,12489],256],13064:[[12456,12540,12459,12540],256],13065:[[12458,12531,12473],256],13066:[[12458,12540,12512],256],13067:[[12459,12452,12522],256],13068:[[12459,12521,12483,12488],256],13069:[[12459,12525,12522,12540],256],13070:[[12460,12525,12531],256],13071:[[12460,12531,12510],256],13072:[[12462,12460],256],13073:[[12462,12491,12540],256],13074:[[12461,12517,12522,12540],256],13075:[[12462,12523,12480,12540],256],13076:[[12461,12525],256],13077:[[12461,12525,12464,12521,12512],256],13078:[[12461,12525,12513,12540,12488,12523],256],13079:[[12461,12525,12527,12483,12488],256],13080:[[12464,12521,12512],256],13081:[[12464,12521,12512,12488,12531],256],13082:[[12463,12523,12476,12452,12525],256],13083:[[12463,12525,12540,12493],256],13084:[[12465,12540,12473],256],13085:[[12467,12523,12490],256],13086:[[12467,12540,12509],256],13087:[[12469,12452,12463,12523],256],13088:[[12469,12531,12481,12540,12512],256],13089:[[12471,12522,12531,12464],256],13090:[[12475,12531,12481],256],13091:[[12475,12531,12488],256],13092:[[12480,12540,12473],256],13093:[[12487,12471],256],13094:[[12489,12523],256],13095:[[12488,12531],256],13096:[[12490,12494],256],13097:[[12494,12483,12488],256],13098:[[12495,12452,12484],256],13099:[[12497,12540,12475,12531,12488],256],13100:[[12497,12540,12484],256],13101:[[12496,12540,12524,12523],256],13102:[[12500,12450,12473,12488,12523],256],13103:[[12500,12463,12523],256],13104:[[12500,12467],256],13105:[[12499,12523],256],13106:[[12501,12449,12521,12483,12489],256],13107:[[12501,12451,12540,12488],256],13108:[[12502,12483,12471,12455,12523],256],13109:[[12501,12521,12531],256],13110:[[12504,12463,12479,12540,12523],256],13111:[[12506,12477],256],13112:[[12506,12491,12498],256],13113:[[12504,12523,12484],256],13114:[[12506,12531,12473],256],13115:[[12506,12540,12472],256],13116:[[12505,12540,12479],256],13117:[[12509,12452,12531,12488],256],13118:[[12508,12523,12488],256],13119:[[12507,12531],256],13120:[[12509,12531,12489],256],13121:[[12507,12540,12523],256],13122:[[12507,12540,12531],256],13123:[[12510,12452,12463,12525],256],13124:[[12510,12452,12523],256],13125:[[12510,12483,12495],256],13126:[[12510,12523,12463],256],13127:[[12510,12531,12471,12519,12531],256],13128:[[12511,12463,12525,12531],256],13129:[[12511,12522],256],13130:[[12511,12522,12496,12540,12523],256],13131:[[12513,12460],256],13132:[[12513,12460,12488,12531],256],13133:[[12513,12540,12488,12523],256],13134:[[12516,12540,12489],256],13135:[[12516,12540,12523],256],13136:[[12518,12450,12531],256],13137:[[12522,12483,12488,12523],256],13138:[[12522,12521],256],13139:[[12523,12500,12540],256],13140:[[12523,12540,12502,12523],256],13141:[[12524,12512],256],13142:[[12524,12531,12488,12466,12531],256],13143:[[12527,12483,12488],256],13144:[[48,28857],256],13145:[[49,28857],256],13146:[[50,28857],256],13147:[[51,28857],256],13148:[[52,28857],256],13149:[[53,28857],256],13150:[[54,28857],256],13151:[[55,28857],256],13152:[[56,28857],256],13153:[[57,28857],256],13154:[[49,48,28857],256],13155:[[49,49,28857],256],13156:[[49,50,28857],256],13157:[[49,51,28857],256],13158:[[49,52,28857],256],13159:[[49,53,28857],256],13160:[[49,54,28857],256],13161:[[49,55,28857],256],13162:[[49,56,28857],256],13163:[[49,57,28857],256],13164:[[50,48,28857],256],13165:[[50,49,28857],256],13166:[[50,50,28857],256],13167:[[50,51,28857],256],13168:[[50,52,28857],256],13169:[[104,80,97],256],13170:[[100,97],256],13171:[[65,85],256],13172:[[98,97,114],256],13173:[[111,86],256],13174:[[112,99],256],13175:[[100,109],256],13176:[[100,109,178],256],13177:[[100,109,179],256],13178:[[73,85],256],13179:[[24179,25104],256],13180:[[26157,21644],256],13181:[[22823,27491],256],13182:[[26126,27835],256],13183:[[26666,24335,20250,31038],256],13184:[[112,65],256],13185:[[110,65],256],13186:[[956,65],256],13187:[[109,65],256],13188:[[107,65],256],13189:[[75,66],256],13190:[[77,66],256],13191:[[71,66],256],13192:[[99,97,108],256],13193:[[107,99,97,108],256],13194:[[112,70],256],13195:[[110,70],256],13196:[[956,70],256],13197:[[956,103],256],13198:[[109,103],256],13199:[[107,103],256],13200:[[72,122],256],13201:[[107,72,122],256],13202:[[77,72,122],256],13203:[[71,72,122],256],13204:[[84,72,122],256],13205:[[956,8467],256],13206:[[109,8467],256],13207:[[100,8467],256],13208:[[107,8467],256],13209:[[102,109],256],13210:[[110,109],256],13211:[[956,109],256],13212:[[109,109],256],13213:[[99,109],256],13214:[[107,109],256],13215:[[109,109,178],256],13216:[[99,109,178],256],13217:[[109,178],256],13218:[[107,109,178],256],13219:[[109,109,179],256],13220:[[99,109,179],256],13221:[[109,179],256],13222:[[107,109,179],256],13223:[[109,8725,115],256],13224:[[109,8725,115,178],256],13225:[[80,97],256],13226:[[107,80,97],256],13227:[[77,80,97],256],13228:[[71,80,97],256],13229:[[114,97,100],256],13230:[[114,97,100,8725,115],256],13231:[[114,97,100,8725,115,178],256],13232:[[112,115],256],13233:[[110,115],256],13234:[[956,115],256],13235:[[109,115],256],13236:[[112,86],256],13237:[[110,86],256],13238:[[956,86],256],13239:[[109,86],256],13240:[[107,86],256],13241:[[77,86],256],13242:[[112,87],256],13243:[[110,87],256],13244:[[956,87],256],13245:[[109,87],256],13246:[[107,87],256],13247:[[77,87],256],13248:[[107,937],256],13249:[[77,937],256],13250:[[97,46,109,46],256],13251:[[66,113],256],13252:[[99,99],256],13253:[[99,100],256],13254:[[67,8725,107,103],256],13255:[[67,111,46],256],13256:[[100,66],256],13257:[[71,121],256],13258:[[104,97],256],13259:[[72,80],256],13260:[[105,110],256],13261:[[75,75],256],13262:[[75,77],256],13263:[[107,116],256],13264:[[108,109],256],13265:[[108,110],256],13266:[[108,111,103],256],13267:[[108,120],256],13268:[[109,98],256],13269:[[109,105,108],256],13270:[[109,111,108],256],13271:[[80,72],256],13272:[[112,46,109,46],256],13273:[[80,80,77],256],13274:[[80,82],256],13275:[[115,114],256],13276:[[83,118],256],13277:[[87,98],256],13278:[[86,8725,109],256],13279:[[65,8725,109],256],13280:[[49,26085],256],13281:[[50,26085],256],13282:[[51,26085],256],13283:[[52,26085],256],13284:[[53,26085],256],13285:[[54,26085],256],13286:[[55,26085],256],13287:[[56,26085],256],13288:[[57,26085],256],13289:[[49,48,26085],256],13290:[[49,49,26085],256],13291:[[49,50,26085],256],13292:[[49,51,26085],256],13293:[[49,52,26085],256],13294:[[49,53,26085],256],13295:[[49,54,26085],256],13296:[[49,55,26085],256],13297:[[49,56,26085],256],13298:[[49,57,26085],256],13299:[[50,48,26085],256],13300:[[50,49,26085],256],13301:[[50,50,26085],256],13302:[[50,51,26085],256],13303:[[50,52,26085],256],13304:[[50,53,26085],256],13305:[[50,54,26085],256],13306:[[50,55,26085],256],13307:[[50,56,26085],256],13308:[[50,57,26085],256],13309:[[51,48,26085],256],13310:[[51,49,26085],256],13311:[[103,97,108],256]},27136:{92912:[,1],92913:[,1],92914:[,1],92915:[,1],92916:[,1]},27392:{92976:[,230],92977:[,230],92978:[,230],92979:[,230],92980:[,230],92981:[,230],92982:[,230]},42496:{42607:[,230],42612:[,230],42613:[,230],42614:[,230],42615:[,230],42616:[,230],42617:[,230],42618:[,230],42619:[,230],42620:[,230],42621:[,230],42652:[[1098],256],42653:[[1100],256],42655:[,230],42736:[,230],42737:[,230]},42752:{42864:[[42863],256],43000:[[294],256],43001:[[339],256]},43008:{43014:[,9],43204:[,9],43232:[,230],43233:[,230],43234:[,230],43235:[,230],43236:[,230],43237:[,230],43238:[,230],43239:[,230],43240:[,230],43241:[,230],43242:[,230],43243:[,230],43244:[,230],43245:[,230],43246:[,230],43247:[,230],43248:[,230],43249:[,230]},43264:{43307:[,220],43308:[,220],43309:[,220],43347:[,9],43443:[,7],43456:[,9]},43520:{43696:[,230],43698:[,230],43699:[,230],43700:[,220],43703:[,230],43704:[,230],43710:[,230],43711:[,230],43713:[,230],43766:[,9]},43776:{43868:[[42791],256],43869:[[43831],256],43870:[[619],256],43871:[[43858],256],44013:[,9]},48128:{113822:[,1]},53504:{119134:[[119127,119141],512],119135:[[119128,119141],512],119136:[[119135,119150],512],119137:[[119135,119151],512],119138:[[119135,119152],512],119139:[[119135,119153],512],119140:[[119135,119154],512],119141:[,216],119142:[,216],119143:[,1],119144:[,1],119145:[,1],119149:[,226],119150:[,216],119151:[,216],119152:[,216],119153:[,216],119154:[,216],119163:[,220],119164:[,220],119165:[,220],119166:[,220],119167:[,220],119168:[,220],119169:[,220],119170:[,220],119173:[,230],119174:[,230],119175:[,230],119176:[,230],119177:[,230],119178:[,220],119179:[,220],119210:[,230],119211:[,230],119212:[,230],119213:[,230],119227:[[119225,119141],512],119228:[[119226,119141],512],119229:[[119227,119150],512],119230:[[119228,119150],512],119231:[[119227,119151],512],119232:[[119228,119151],512]},53760:{119362:[,230],119363:[,230],119364:[,230]},54272:{119808:[[65],256],119809:[[66],256],119810:[[67],256],119811:[[68],256],119812:[[69],256],119813:[[70],256],119814:[[71],256],119815:[[72],256],119816:[[73],256],119817:[[74],256],119818:[[75],256],119819:[[76],256],119820:[[77],256],119821:[[78],256],119822:[[79],256],119823:[[80],256],119824:[[81],256],119825:[[82],256],119826:[[83],256],119827:[[84],256],119828:[[85],256],119829:[[86],256],119830:[[87],256],119831:[[88],256],119832:[[89],256],119833:[[90],256],119834:[[97],256],119835:[[98],256],119836:[[99],256],119837:[[100],256],119838:[[101],256],119839:[[102],256],119840:[[103],256],119841:[[104],256],119842:[[105],256],119843:[[106],256],119844:[[107],256],119845:[[108],256],119846:[[109],256],119847:[[110],256],119848:[[111],256],119849:[[112],256],119850:[[113],256],119851:[[114],256],119852:[[115],256],119853:[[116],256],119854:[[117],256],119855:[[118],256],119856:[[119],256],119857:[[120],256],119858:[[121],256],119859:[[122],256],119860:[[65],256],119861:[[66],256],119862:[[67],256],119863:[[68],256],119864:[[69],256],119865:[[70],256],119866:[[71],256],119867:[[72],256],119868:[[73],256],119869:[[74],256],119870:[[75],256],119871:[[76],256],119872:[[77],256],119873:[[78],256],119874:[[79],256],119875:[[80],256],119876:[[81],256],119877:[[82],256],119878:[[83],256],119879:[[84],256],119880:[[85],256],119881:[[86],256],119882:[[87],256],119883:[[88],256],119884:[[89],256],119885:[[90],256],119886:[[97],256],119887:[[98],256],119888:[[99],256],119889:[[100],256],119890:[[101],256],119891:[[102],256],119892:[[103],256],119894:[[105],256],119895:[[106],256],119896:[[107],256],119897:[[108],256],119898:[[109],256],119899:[[110],256],119900:[[111],256],119901:[[112],256],119902:[[113],256],119903:[[114],256],119904:[[115],256],119905:[[116],256],119906:[[117],256],119907:[[118],256],119908:[[119],256],119909:[[120],256],119910:[[121],256],119911:[[122],256],119912:[[65],256],119913:[[66],256],119914:[[67],256],119915:[[68],256],119916:[[69],256],119917:[[70],256],119918:[[71],256],119919:[[72],256],119920:[[73],256],119921:[[74],256],119922:[[75],256],119923:[[76],256],119924:[[77],256],119925:[[78],256],119926:[[79],256],119927:[[80],256],119928:[[81],256],119929:[[82],256],119930:[[83],256],119931:[[84],256],119932:[[85],256],119933:[[86],256],119934:[[87],256],119935:[[88],256],119936:[[89],256],119937:[[90],256],119938:[[97],256],119939:[[98],256],119940:[[99],256],119941:[[100],256],119942:[[101],256],119943:[[102],256],119944:[[103],256],119945:[[104],256],119946:[[105],256],119947:[[106],256],119948:[[107],256],119949:[[108],256],119950:[[109],256],119951:[[110],256],119952:[[111],256],119953:[[112],256],119954:[[113],256],119955:[[114],256],119956:[[115],256],119957:[[116],256],119958:[[117],256],119959:[[118],256],119960:[[119],256],119961:[[120],256],119962:[[121],256],119963:[[122],256],119964:[[65],256],119966:[[67],256],119967:[[68],256],119970:[[71],256],119973:[[74],256],119974:[[75],256],119977:[[78],256],119978:[[79],256],119979:[[80],256],119980:[[81],256],119982:[[83],256],119983:[[84],256],119984:[[85],256],119985:[[86],256],119986:[[87],256],119987:[[88],256],119988:[[89],256],119989:[[90],256],119990:[[97],256],119991:[[98],256],119992:[[99],256],119993:[[100],256],119995:[[102],256],119997:[[104],256],119998:[[105],256],119999:[[106],256],120000:[[107],256],120001:[[108],256],120002:[[109],256],120003:[[110],256],120005:[[112],256],120006:[[113],256],120007:[[114],256],120008:[[115],256],120009:[[116],256],120010:[[117],256],120011:[[118],256],120012:[[119],256],120013:[[120],256],120014:[[121],256],120015:[[122],256],120016:[[65],256],120017:[[66],256],120018:[[67],256],120019:[[68],256],120020:[[69],256],120021:[[70],256],120022:[[71],256],120023:[[72],256],120024:[[73],256],120025:[[74],256],120026:[[75],256],120027:[[76],256],120028:[[77],256],120029:[[78],256],120030:[[79],256],120031:[[80],256],120032:[[81],256],120033:[[82],256],120034:[[83],256],120035:[[84],256],120036:[[85],256],120037:[[86],256],120038:[[87],256],120039:[[88],256],120040:[[89],256],120041:[[90],256],120042:[[97],256],120043:[[98],256],120044:[[99],256],120045:[[100],256],120046:[[101],256],120047:[[102],256],120048:[[103],256],120049:[[104],256],120050:[[105],256],120051:[[106],256],120052:[[107],256],120053:[[108],256],120054:[[109],256],120055:[[110],256],120056:[[111],256],120057:[[112],256],120058:[[113],256],120059:[[114],256],120060:[[115],256],120061:[[116],256],120062:[[117],256],120063:[[118],256]},54528:{120064:[[119],256],120065:[[120],256],120066:[[121],256],120067:[[122],256],120068:[[65],256],120069:[[66],256],120071:[[68],256],120072:[[69],256],120073:[[70],256],120074:[[71],256],120077:[[74],256],120078:[[75],256],120079:[[76],256],120080:[[77],256],120081:[[78],256],120082:[[79],256],120083:[[80],256],120084:[[81],256],120086:[[83],256],120087:[[84],256],120088:[[85],256],120089:[[86],256],120090:[[87],256],120091:[[88],256],120092:[[89],256],120094:[[97],256],120095:[[98],256],120096:[[99],256],120097:[[100],256],120098:[[101],256],120099:[[102],256],120100:[[103],256],120101:[[104],256],120102:[[105],256],120103:[[106],256],120104:[[107],256],120105:[[108],256],120106:[[109],256],120107:[[110],256],120108:[[111],256],120109:[[112],256],120110:[[113],256],120111:[[114],256],120112:[[115],256],120113:[[116],256],120114:[[117],256],120115:[[118],256],120116:[[119],256],120117:[[120],256],120118:[[121],256],120119:[[122],256],120120:[[65],256],120121:[[66],256],120123:[[68],256],120124:[[69],256],120125:[[70],256],120126:[[71],256],120128:[[73],256],120129:[[74],256],120130:[[75],256],120131:[[76],256],120132:[[77],256],120134:[[79],256],120138:[[83],256],120139:[[84],256],120140:[[85],256],120141:[[86],256],120142:[[87],256],120143:[[88],256],120144:[[89],256],120146:[[97],256],120147:[[98],256],120148:[[99],256],120149:[[100],256],120150:[[101],256],120151:[[102],256],120152:[[103],256],120153:[[104],256],120154:[[105],256],120155:[[106],256],120156:[[107],256],120157:[[108],256],120158:[[109],256],120159:[[110],256],120160:[[111],256],120161:[[112],256],120162:[[113],256],120163:[[114],256],120164:[[115],256],120165:[[116],256],120166:[[117],256],120167:[[118],256],120168:[[119],256],120169:[[120],256],120170:[[121],256],120171:[[122],256],120172:[[65],256],120173:[[66],256],120174:[[67],256],120175:[[68],256],120176:[[69],256],120177:[[70],256],120178:[[71],256],120179:[[72],256],120180:[[73],256],120181:[[74],256],120182:[[75],256],120183:[[76],256],120184:[[77],256],120185:[[78],256],120186:[[79],256],120187:[[80],256],120188:[[81],256],120189:[[82],256],120190:[[83],256],120191:[[84],256],120192:[[85],256],120193:[[86],256],120194:[[87],256],120195:[[88],256],120196:[[89],256],120197:[[90],256],120198:[[97],256],120199:[[98],256],120200:[[99],256],120201:[[100],256],120202:[[101],256],120203:[[102],256],120204:[[103],256],120205:[[104],256],120206:[[105],256],120207:[[106],256],120208:[[107],256],120209:[[108],256],120210:[[109],256],120211:[[110],256],120212:[[111],256],120213:[[112],256],120214:[[113],256],120215:[[114],256],120216:[[115],256],120217:[[116],256],120218:[[117],256],120219:[[118],256],120220:[[119],256],120221:[[120],256],120222:[[121],256],120223:[[122],256],120224:[[65],256],120225:[[66],256],120226:[[67],256],120227:[[68],256],120228:[[69],256],120229:[[70],256],120230:[[71],256],120231:[[72],256],120232:[[73],256],120233:[[74],256],120234:[[75],256],120235:[[76],256],120236:[[77],256],120237:[[78],256],120238:[[79],256],120239:[[80],256],120240:[[81],256],120241:[[82],256],120242:[[83],256],120243:[[84],256],120244:[[85],256],120245:[[86],256],120246:[[87],256],120247:[[88],256],120248:[[89],256],120249:[[90],256],120250:[[97],256],120251:[[98],256],120252:[[99],256],120253:[[100],256],120254:[[101],256],120255:[[102],256],120256:[[103],256],120257:[[104],256],120258:[[105],256],120259:[[106],256],120260:[[107],256],120261:[[108],256],120262:[[109],256],120263:[[110],256],120264:[[111],256],120265:[[112],256],120266:[[113],256],120267:[[114],256],120268:[[115],256],120269:[[116],256],120270:[[117],256],120271:[[118],256],120272:[[119],256],120273:[[120],256],120274:[[121],256],120275:[[122],256],120276:[[65],256],120277:[[66],256],120278:[[67],256],120279:[[68],256],120280:[[69],256],120281:[[70],256],120282:[[71],256],120283:[[72],256],120284:[[73],256],120285:[[74],256],120286:[[75],256],120287:[[76],256],120288:[[77],256],120289:[[78],256],120290:[[79],256],120291:[[80],256],120292:[[81],256],120293:[[82],256],120294:[[83],256],120295:[[84],256],120296:[[85],256],120297:[[86],256],120298:[[87],256],120299:[[88],256],120300:[[89],256],120301:[[90],256],120302:[[97],256],120303:[[98],256],120304:[[99],256],120305:[[100],256],120306:[[101],256],120307:[[102],256],120308:[[103],256],120309:[[104],256],120310:[[105],256],120311:[[106],256],120312:[[107],256],120313:[[108],256],120314:[[109],256],120315:[[110],256],120316:[[111],256],120317:[[112],256],120318:[[113],256],120319:[[114],256]},54784:{120320:[[115],256],120321:[[116],256],120322:[[117],256],120323:[[118],256],120324:[[119],256],120325:[[120],256],120326:[[121],256],120327:[[122],256],120328:[[65],256],120329:[[66],256],120330:[[67],256],120331:[[68],256],120332:[[69],256],120333:[[70],256],120334:[[71],256],120335:[[72],256],120336:[[73],256],120337:[[74],256],120338:[[75],256],120339:[[76],256],120340:[[77],256],120341:[[78],256],120342:[[79],256],120343:[[80],256],120344:[[81],256],120345:[[82],256],120346:[[83],256],120347:[[84],256],120348:[[85],256],120349:[[86],256],120350:[[87],256],120351:[[88],256],120352:[[89],256],120353:[[90],256],120354:[[97],256],120355:[[98],256],120356:[[99],256],120357:[[100],256],120358:[[101],256],120359:[[102],256],120360:[[103],256],120361:[[104],256],120362:[[105],256],120363:[[106],256],120364:[[107],256],120365:[[108],256],120366:[[109],256],120367:[[110],256],120368:[[111],256],120369:[[112],256],120370:[[113],256],120371:[[114],256],120372:[[115],256],120373:[[116],256],120374:[[117],256],120375:[[118],256],120376:[[119],256],120377:[[120],256],120378:[[121],256],120379:[[122],256],120380:[[65],256],120381:[[66],256],120382:[[67],256],120383:[[68],256],120384:[[69],256],120385:[[70],256],120386:[[71],256],120387:[[72],256],120388:[[73],256],120389:[[74],256],120390:[[75],256],120391:[[76],256],120392:[[77],256],120393:[[78],256],120394:[[79],256],120395:[[80],256],120396:[[81],256],120397:[[82],256],120398:[[83],256],120399:[[84],256],120400:[[85],256],120401:[[86],256],120402:[[87],256],120403:[[88],256],120404:[[89],256],120405:[[90],256],120406:[[97],256],120407:[[98],256],120408:[[99],256],120409:[[100],256],120410:[[101],256],120411:[[102],256],120412:[[103],256],120413:[[104],256],120414:[[105],256],120415:[[106],256],120416:[[107],256],120417:[[108],256],120418:[[109],256],120419:[[110],256],120420:[[111],256],120421:[[112],256],120422:[[113],256],120423:[[114],256],120424:[[115],256],120425:[[116],256],120426:[[117],256],120427:[[118],256],120428:[[119],256],120429:[[120],256],120430:[[121],256],120431:[[122],256],120432:[[65],256],120433:[[66],256],120434:[[67],256],120435:[[68],256],120436:[[69],256],120437:[[70],256],120438:[[71],256],120439:[[72],256],120440:[[73],256],120441:[[74],256],120442:[[75],256],120443:[[76],256],120444:[[77],256],120445:[[78],256],120446:[[79],256],120447:[[80],256],120448:[[81],256],120449:[[82],256],120450:[[83],256],120451:[[84],256],120452:[[85],256],120453:[[86],256],120454:[[87],256],120455:[[88],256],120456:[[89],256],120457:[[90],256],120458:[[97],256],120459:[[98],256],120460:[[99],256],120461:[[100],256],120462:[[101],256],120463:[[102],256],120464:[[103],256],120465:[[104],256],120466:[[105],256],120467:[[106],256],120468:[[107],256],120469:[[108],256],120470:[[109],256],120471:[[110],256],120472:[[111],256],120473:[[112],256],120474:[[113],256],120475:[[114],256],120476:[[115],256],120477:[[116],256],120478:[[117],256],120479:[[118],256],120480:[[119],256],120481:[[120],256],120482:[[121],256],120483:[[122],256],120484:[[305],256],120485:[[567],256],120488:[[913],256],120489:[[914],256],120490:[[915],256],120491:[[916],256],120492:[[917],256],120493:[[918],256],120494:[[919],256],120495:[[920],256],120496:[[921],256],120497:[[922],256],120498:[[923],256],120499:[[924],256],120500:[[925],256],120501:[[926],256],120502:[[927],256],120503:[[928],256],120504:[[929],256],120505:[[1012],256],120506:[[931],256],120507:[[932],256],120508:[[933],256],120509:[[934],256],120510:[[935],256],120511:[[936],256],120512:[[937],256],120513:[[8711],256],120514:[[945],256],120515:[[946],256],120516:[[947],256],120517:[[948],256],120518:[[949],256],120519:[[950],256],120520:[[951],256],120521:[[952],256],120522:[[953],256],120523:[[954],256],120524:[[955],256],120525:[[956],256],120526:[[957],256],120527:[[958],256],120528:[[959],256],120529:[[960],256],120530:[[961],256],120531:[[962],256],120532:[[963],256],120533:[[964],256],120534:[[965],256],120535:[[966],256],120536:[[967],256],120537:[[968],256],120538:[[969],256],120539:[[8706],256],120540:[[1013],256],120541:[[977],256],120542:[[1008],256],120543:[[981],256],120544:[[1009],256],120545:[[982],256],120546:[[913],256],120547:[[914],256],120548:[[915],256],120549:[[916],256],120550:[[917],256],120551:[[918],256],120552:[[919],256],120553:[[920],256],120554:[[921],256],120555:[[922],256],120556:[[923],256],120557:[[924],256],120558:[[925],256],120559:[[926],256],120560:[[927],256],120561:[[928],256],120562:[[929],256],120563:[[1012],256],120564:[[931],256],120565:[[932],256],120566:[[933],256],120567:[[934],256],120568:[[935],256],120569:[[936],256],120570:[[937],256],120571:[[8711],256],120572:[[945],256],120573:[[946],256],120574:[[947],256],120575:[[948],256]},55040:{120576:[[949],256],120577:[[950],256],120578:[[951],256],120579:[[952],256],120580:[[953],256],120581:[[954],256],120582:[[955],256],120583:[[956],256],120584:[[957],256],120585:[[958],256],120586:[[959],256],120587:[[960],256],120588:[[961],256],120589:[[962],256],120590:[[963],256],120591:[[964],256],120592:[[965],256],120593:[[966],256],120594:[[967],256],120595:[[968],256],120596:[[969],256],120597:[[8706],256],120598:[[1013],256],120599:[[977],256],120600:[[1008],256],120601:[[981],256],120602:[[1009],256],120603:[[982],256],120604:[[913],256],120605:[[914],256],120606:[[915],256],120607:[[916],256],120608:[[917],256],120609:[[918],256],120610:[[919],256],120611:[[920],256],120612:[[921],256],120613:[[922],256],120614:[[923],256],120615:[[924],256],120616:[[925],256],120617:[[926],256],120618:[[927],256],120619:[[928],256],120620:[[929],256],120621:[[1012],256],120622:[[931],256],120623:[[932],256],120624:[[933],256],120625:[[934],256],120626:[[935],256],120627:[[936],256],120628:[[937],256],120629:[[8711],256],120630:[[945],256],120631:[[946],256],120632:[[947],256],120633:[[948],256],120634:[[949],256],120635:[[950],256],120636:[[951],256],120637:[[952],256],120638:[[953],256],120639:[[954],256],120640:[[955],256],120641:[[956],256],120642:[[957],256],120643:[[958],256],120644:[[959],256],120645:[[960],256],120646:[[961],256],120647:[[962],256],120648:[[963],256],120649:[[964],256],120650:[[965],256],120651:[[966],256],120652:[[967],256],120653:[[968],256],120654:[[969],256],120655:[[8706],256],120656:[[1013],256],120657:[[977],256],120658:[[1008],256],120659:[[981],256],120660:[[1009],256],120661:[[982],256],120662:[[913],256],120663:[[914],256],120664:[[915],256],120665:[[916],256],120666:[[917],256],120667:[[918],256],120668:[[919],256],120669:[[920],256],120670:[[921],256],120671:[[922],256],120672:[[923],256],120673:[[924],256],120674:[[925],256],120675:[[926],256],120676:[[927],256],120677:[[928],256],120678:[[929],256],120679:[[1012],256],120680:[[931],256],120681:[[932],256],120682:[[933],256],120683:[[934],256],120684:[[935],256],120685:[[936],256],120686:[[937],256],120687:[[8711],256],120688:[[945],256],120689:[[946],256],120690:[[947],256],120691:[[948],256],120692:[[949],256],120693:[[950],256],120694:[[951],256],120695:[[952],256],120696:[[953],256],120697:[[954],256],120698:[[955],256],120699:[[956],256],120700:[[957],256],120701:[[958],256],120702:[[959],256],120703:[[960],256],120704:[[961],256],120705:[[962],256],120706:[[963],256],120707:[[964],256],120708:[[965],256],120709:[[966],256],120710:[[967],256],120711:[[968],256],120712:[[969],256],120713:[[8706],256],120714:[[1013],256],120715:[[977],256],120716:[[1008],256],120717:[[981],256],120718:[[1009],256],120719:[[982],256],120720:[[913],256],120721:[[914],256],120722:[[915],256],120723:[[916],256],120724:[[917],256],120725:[[918],256],120726:[[919],256],120727:[[920],256],120728:[[921],256],120729:[[922],256],120730:[[923],256],120731:[[924],256],120732:[[925],256],120733:[[926],256],120734:[[927],256],120735:[[928],256],120736:[[929],256],120737:[[1012],256],120738:[[931],256],120739:[[932],256],120740:[[933],256],120741:[[934],256],120742:[[935],256],120743:[[936],256],120744:[[937],256],120745:[[8711],256],120746:[[945],256],120747:[[946],256],120748:[[947],256],120749:[[948],256],120750:[[949],256],120751:[[950],256],120752:[[951],256],120753:[[952],256],120754:[[953],256],120755:[[954],256],120756:[[955],256],120757:[[956],256],120758:[[957],256],120759:[[958],256],120760:[[959],256],120761:[[960],256],120762:[[961],256],120763:[[962],256],120764:[[963],256],120765:[[964],256],120766:[[965],256],120767:[[966],256],120768:[[967],256],120769:[[968],256],120770:[[969],256],120771:[[8706],256],120772:[[1013],256],120773:[[977],256],120774:[[1008],256],120775:[[981],256],120776:[[1009],256],120777:[[982],256],120778:[[988],256],120779:[[989],256],120782:[[48],256],120783:[[49],256],120784:[[50],256],120785:[[51],256],120786:[[52],256],120787:[[53],256],120788:[[54],256],120789:[[55],256],120790:[[56],256],120791:[[57],256],120792:[[48],256],120793:[[49],256],120794:[[50],256],120795:[[51],256],120796:[[52],256],120797:[[53],256],120798:[[54],256],120799:[[55],256],120800:[[56],256],120801:[[57],256],120802:[[48],256],120803:[[49],256],120804:[[50],256],120805:[[51],256],120806:[[52],256],120807:[[53],256],120808:[[54],256],120809:[[55],256],120810:[[56],256],120811:[[57],256],120812:[[48],256],120813:[[49],256],120814:[[50],256],120815:[[51],256],120816:[[52],256],120817:[[53],256],120818:[[54],256],120819:[[55],256],120820:[[56],256],120821:[[57],256],120822:[[48],256],120823:[[49],256],120824:[[50],256],120825:[[51],256],120826:[[52],256],120827:[[53],256],120828:[[54],256],120829:[[55],256],120830:[[56],256],120831:[[57],256]},59392:{125136:[,220],125137:[,220],125138:[,220],125139:[,220],125140:[,220],125141:[,220],125142:[,220]},60928:{126464:[[1575],256],126465:[[1576],256],126466:[[1580],256],126467:[[1583],256],126469:[[1608],256],126470:[[1586],256],126471:[[1581],256],126472:[[1591],256],126473:[[1610],256],126474:[[1603],256],126475:[[1604],256],126476:[[1605],256],126477:[[1606],256],126478:[[1587],256],126479:[[1593],256],126480:[[1601],256],126481:[[1589],256],126482:[[1602],256],126483:[[1585],256],126484:[[1588],256],126485:[[1578],256],126486:[[1579],256],126487:[[1582],256],126488:[[1584],256],126489:[[1590],256],126490:[[1592],256],126491:[[1594],256],126492:[[1646],256],126493:[[1722],256],126494:[[1697],256],126495:[[1647],256],126497:[[1576],256],126498:[[1580],256],126500:[[1607],256],126503:[[1581],256],126505:[[1610],256],126506:[[1603],256],126507:[[1604],256],126508:[[1605],256],126509:[[1606],256],126510:[[1587],256],126511:[[1593],256],126512:[[1601],256],126513:[[1589],256],126514:[[1602],256],126516:[[1588],256],126517:[[1578],256],126518:[[1579],256],126519:[[1582],256],126521:[[1590],256],126523:[[1594],256],126530:[[1580],256],126535:[[1581],256],126537:[[1610],256],126539:[[1604],256],126541:[[1606],256],126542:[[1587],256],126543:[[1593],256],126545:[[1589],256],126546:[[1602],256],126548:[[1588],256],126551:[[1582],256],126553:[[1590],256],126555:[[1594],256],126557:[[1722],256],126559:[[1647],256],126561:[[1576],256],126562:[[1580],256],126564:[[1607],256],126567:[[1581],256],126568:[[1591],256],126569:[[1610],256],126570:[[1603],256],126572:[[1605],256],126573:[[1606],256],126574:[[1587],256],126575:[[1593],256],126576:[[1601],256],126577:[[1589],256],126578:[[1602],256],126580:[[1588],256],126581:[[1578],256],126582:[[1579],256],126583:[[1582],256],126585:[[1590],256],126586:[[1592],256],126587:[[1594],256],126588:[[1646],256],126590:[[1697],256],126592:[[1575],256],126593:[[1576],256],126594:[[1580],256],126595:[[1583],256],126596:[[1607],256],126597:[[1608],256],126598:[[1586],256],126599:[[1581],256],126600:[[1591],256],126601:[[1610],256],126603:[[1604],256],126604:[[1605],256],126605:[[1606],256],126606:[[1587],256],126607:[[1593],256],126608:[[1601],256],126609:[[1589],256],126610:[[1602],256],126611:[[1585],256],126612:[[1588],256],126613:[[1578],256],126614:[[1579],256],126615:[[1582],256],126616:[[1584],256],126617:[[1590],256],126618:[[1592],256],126619:[[1594],256],126625:[[1576],256],126626:[[1580],256],126627:[[1583],256],126629:[[1608],256],126630:[[1586],256],126631:[[1581],256],126632:[[1591],256],126633:[[1610],256],126635:[[1604],256],126636:[[1605],256],126637:[[1606],256],126638:[[1587],256],126639:[[1593],256],126640:[[1601],256],126641:[[1589],256],126642:[[1602],256],126643:[[1585],256],126644:[[1588],256],126645:[[1578],256],126646:[[1579],256],126647:[[1582],256],126648:[[1584],256],126649:[[1590],256],126650:[[1592],256],126651:[[1594],256]},61696:{127232:[[48,46],256],127233:[[48,44],256],127234:[[49,44],256],127235:[[50,44],256],127236:[[51,44],256],127237:[[52,44],256],127238:[[53,44],256],127239:[[54,44],256],127240:[[55,44],256],127241:[[56,44],256],127242:[[57,44],256],127248:[[40,65,41],256],127249:[[40,66,41],256],127250:[[40,67,41],256],127251:[[40,68,41],256],127252:[[40,69,41],256],127253:[[40,70,41],256],127254:[[40,71,41],256],127255:[[40,72,41],256],127256:[[40,73,41],256],127257:[[40,74,41],256],127258:[[40,75,41],256],127259:[[40,76,41],256],127260:[[40,77,41],256],127261:[[40,78,41],256],127262:[[40,79,41],256],127263:[[40,80,41],256],127264:[[40,81,41],256],127265:[[40,82,41],256],127266:[[40,83,41],256],127267:[[40,84,41],256],127268:[[40,85,41],256],127269:[[40,86,41],256],127270:[[40,87,41],256],127271:[[40,88,41],256],127272:[[40,89,41],256],127273:[[40,90,41],256],127274:[[12308,83,12309],256],127275:[[67],256],127276:[[82],256],127277:[[67,68],256],127278:[[87,90],256],127280:[[65],256],127281:[[66],256],127282:[[67],256],127283:[[68],256],127284:[[69],256],127285:[[70],256],127286:[[71],256],127287:[[72],256],127288:[[73],256],127289:[[74],256],127290:[[75],256],127291:[[76],256],127292:[[77],256],127293:[[78],256],127294:[[79],256],127295:[[80],256],127296:[[81],256],127297:[[82],256],127298:[[83],256],127299:[[84],256],127300:[[85],256],127301:[[86],256],127302:[[87],256],127303:[[88],256],127304:[[89],256],127305:[[90],256],127306:[[72,86],256],127307:[[77,86],256],127308:[[83,68],256],127309:[[83,83],256],127310:[[80,80,86],256],127311:[[87,67],256],127338:[[77,67],256],127339:[[77,68],256],127376:[[68,74],256]},61952:{127488:[[12411,12363],256],127489:[[12467,12467],256],127490:[[12469],256],127504:[[25163],256],127505:[[23383],256],127506:[[21452],256],127507:[[12487],256],127508:[[20108],256],127509:[[22810],256],127510:[[35299],256],127511:[[22825],256],127512:[[20132],256],127513:[[26144],256],127514:[[28961],256],127515:[[26009],256],127516:[[21069],256],127517:[[24460],256],127518:[[20877],256],127519:[[26032],256],127520:[[21021],256],127521:[[32066],256],127522:[[29983],256],127523:[[36009],256],127524:[[22768],256],127525:[[21561],256],127526:[[28436],256],127527:[[25237],256],127528:[[25429],256],127529:[[19968],256],127530:[[19977],256],127531:[[36938],256],127532:[[24038],256],127533:[[20013],256],127534:[[21491],256],127535:[[25351],256],127536:[[36208],256],127537:[[25171],256],127538:[[31105],256],127539:[[31354],256],127540:[[21512],256],127541:[[28288],256],127542:[[26377],256],127543:[[26376],256],127544:[[30003],256],127545:[[21106],256],127546:[[21942],256],127552:[[12308,26412,12309],256],127553:[[12308,19977,12309],256],127554:[[12308,20108,12309],256],127555:[[12308,23433,12309],256],127556:[[12308,28857,12309],256],127557:[[12308,25171,12309],256],127558:[[12308,30423,12309],256],127559:[[12308,21213,12309],256],127560:[[12308,25943,12309],256],127568:[[24471],256],127569:[[21487],256]},63488:{194560:[[20029]],194561:[[20024]],194562:[[20033]],194563:[[131362]],194564:[[20320]],194565:[[20398]],194566:[[20411]],194567:[[20482]],194568:[[20602]],194569:[[20633]],194570:[[20711]],194571:[[20687]],194572:[[13470]],194573:[[132666]],194574:[[20813]],194575:[[20820]],194576:[[20836]],194577:[[20855]],194578:[[132380]],194579:[[13497]],194580:[[20839]],194581:[[20877]],194582:[[132427]],194583:[[20887]],194584:[[20900]],194585:[[20172]],194586:[[20908]],194587:[[20917]],194588:[[168415]],194589:[[20981]],194590:[[20995]],194591:[[13535]],194592:[[21051]],194593:[[21062]],194594:[[21106]],194595:[[21111]],194596:[[13589]],194597:[[21191]],194598:[[21193]],194599:[[21220]],194600:[[21242]],194601:[[21253]],194602:[[21254]],194603:[[21271]],194604:[[21321]],194605:[[21329]],194606:[[21338]],194607:[[21363]],194608:[[21373]],194609:[[21375]],194610:[[21375]],194611:[[21375]],194612:[[133676]],194613:[[28784]],194614:[[21450]],194615:[[21471]],194616:[[133987]],194617:[[21483]],194618:[[21489]],194619:[[21510]],194620:[[21662]],194621:[[21560]],194622:[[21576]],194623:[[21608]],194624:[[21666]],194625:[[21750]],194626:[[21776]],194627:[[21843]],194628:[[21859]],194629:[[21892]],194630:[[21892]],194631:[[21913]],194632:[[21931]],194633:[[21939]],194634:[[21954]],194635:[[22294]],194636:[[22022]],194637:[[22295]],194638:[[22097]],194639:[[22132]],194640:[[20999]],194641:[[22766]],194642:[[22478]],194643:[[22516]],194644:[[22541]],194645:[[22411]],194646:[[22578]],194647:[[22577]],194648:[[22700]],194649:[[136420]],194650:[[22770]],194651:[[22775]],194652:[[22790]],194653:[[22810]],194654:[[22818]],194655:[[22882]],194656:[[136872]],194657:[[136938]],194658:[[23020]],194659:[[23067]],194660:[[23079]],194661:[[23e3]],194662:[[23142]],194663:[[14062]],194664:[[14076]],194665:[[23304]],194666:[[23358]],194667:[[23358]],194668:[[137672]],194669:[[23491]],194670:[[23512]],194671:[[23527]],194672:[[23539]],194673:[[138008]],194674:[[23551]],194675:[[23558]],194676:[[24403]],194677:[[23586]],194678:[[14209]],194679:[[23648]],194680:[[23662]],194681:[[23744]],194682:[[23693]],194683:[[138724]],194684:[[23875]],194685:[[138726]],194686:[[23918]],194687:[[23915]],194688:[[23932]],194689:[[24033]],194690:[[24034]],194691:[[14383]],194692:[[24061]],194693:[[24104]],194694:[[24125]],194695:[[24169]],194696:[[14434]],194697:[[139651]],194698:[[14460]],194699:[[24240]],194700:[[24243]],194701:[[24246]],194702:[[24266]],194703:[[172946]],194704:[[24318]],194705:[[140081]],194706:[[140081]],194707:[[33281]],194708:[[24354]],194709:[[24354]],194710:[[14535]],194711:[[144056]],194712:[[156122]],194713:[[24418]],194714:[[24427]],194715:[[14563]],194716:[[24474]],194717:[[24525]],194718:[[24535]],194719:[[24569]],194720:[[24705]],194721:[[14650]],194722:[[14620]],194723:[[24724]],194724:[[141012]],194725:[[24775]],194726:[[24904]],194727:[[24908]],194728:[[24910]],194729:[[24908]],194730:[[24954]],194731:[[24974]],194732:[[25010]],194733:[[24996]],194734:[[25007]],194735:[[25054]],194736:[[25074]],194737:[[25078]],194738:[[25104]],194739:[[25115]],194740:[[25181]],194741:[[25265]],194742:[[25300]],194743:[[25424]],194744:[[142092]],194745:[[25405]],194746:[[25340]],194747:[[25448]],194748:[[25475]],194749:[[25572]],194750:[[142321]],194751:[[25634]],194752:[[25541]],194753:[[25513]],194754:[[14894]],194755:[[25705]],194756:[[25726]],194757:[[25757]],194758:[[25719]],194759:[[14956]],194760:[[25935]],194761:[[25964]],194762:[[143370]],194763:[[26083]],194764:[[26360]],194765:[[26185]],194766:[[15129]],194767:[[26257]],194768:[[15112]],194769:[[15076]],194770:[[20882]],194771:[[20885]],194772:[[26368]],194773:[[26268]],194774:[[32941]],194775:[[17369]],194776:[[26391]],194777:[[26395]],194778:[[26401]],194779:[[26462]],194780:[[26451]],194781:[[144323]],194782:[[15177]],194783:[[26618]],194784:[[26501]],194785:[[26706]],194786:[[26757]],194787:[[144493]],194788:[[26766]],194789:[[26655]],194790:[[26900]],194791:[[15261]],194792:[[26946]],194793:[[27043]],194794:[[27114]],194795:[[27304]],194796:[[145059]],194797:[[27355]],194798:[[15384]],194799:[[27425]],194800:[[145575]],194801:[[27476]],194802:[[15438]],194803:[[27506]],194804:[[27551]],194805:[[27578]],194806:[[27579]],194807:[[146061]],194808:[[138507]],194809:[[146170]],194810:[[27726]],194811:[[146620]],194812:[[27839]],194813:[[27853]],194814:[[27751]],194815:[[27926]]},63744:{63744:[[35912]],63745:[[26356]],63746:[[36554]],63747:[[36040]],63748:[[28369]],63749:[[20018]],63750:[[21477]],63751:[[40860]],63752:[[40860]],63753:[[22865]],63754:[[37329]],63755:[[21895]],63756:[[22856]],63757:[[25078]],63758:[[30313]],63759:[[32645]],63760:[[34367]],63761:[[34746]],63762:[[35064]],63763:[[37007]],63764:[[27138]],63765:[[27931]],63766:[[28889]],63767:[[29662]],63768:[[33853]],63769:[[37226]],63770:[[39409]],63771:[[20098]],63772:[[21365]],63773:[[27396]],63774:[[29211]],63775:[[34349]],63776:[[40478]],63777:[[23888]],63778:[[28651]],63779:[[34253]],63780:[[35172]],63781:[[25289]],63782:[[33240]],63783:[[34847]],63784:[[24266]],63785:[[26391]],63786:[[28010]],63787:[[29436]],63788:[[37070]],63789:[[20358]],63790:[[20919]],63791:[[21214]],63792:[[25796]],63793:[[27347]],63794:[[29200]],63795:[[30439]],63796:[[32769]],63797:[[34310]],63798:[[34396]],63799:[[36335]],63800:[[38706]],63801:[[39791]],63802:[[40442]],63803:[[30860]],63804:[[31103]],63805:[[32160]],63806:[[33737]],63807:[[37636]],63808:[[40575]],63809:[[35542]],63810:[[22751]],63811:[[24324]],63812:[[31840]],63813:[[32894]],63814:[[29282]],63815:[[30922]],63816:[[36034]],63817:[[38647]],63818:[[22744]],63819:[[23650]],63820:[[27155]],63821:[[28122]],63822:[[28431]],63823:[[32047]],63824:[[32311]],63825:[[38475]],63826:[[21202]],63827:[[32907]],63828:[[20956]],63829:[[20940]],63830:[[31260]],63831:[[32190]],63832:[[33777]],63833:[[38517]],63834:[[35712]],63835:[[25295]],63836:[[27138]],63837:[[35582]],63838:[[20025]],63839:[[23527]],63840:[[24594]],63841:[[29575]],63842:[[30064]],63843:[[21271]],63844:[[30971]],63845:[[20415]],63846:[[24489]],63847:[[19981]],63848:[[27852]],63849:[[25976]],63850:[[32034]],63851:[[21443]],63852:[[22622]],63853:[[30465]],63854:[[33865]],63855:[[35498]],63856:[[27578]],63857:[[36784]],63858:[[27784]],63859:[[25342]],63860:[[33509]],63861:[[25504]],63862:[[30053]],63863:[[20142]],63864:[[20841]],63865:[[20937]],63866:[[26753]],63867:[[31975]],63868:[[33391]],63869:[[35538]],63870:[[37327]],63871:[[21237]],63872:[[21570]],63873:[[22899]],63874:[[24300]],63875:[[26053]],63876:[[28670]],63877:[[31018]],63878:[[38317]],63879:[[39530]],63880:[[40599]],63881:[[40654]],63882:[[21147]],63883:[[26310]],63884:[[27511]],63885:[[36706]],63886:[[24180]],63887:[[24976]],63888:[[25088]],63889:[[25754]],63890:[[28451]],63891:[[29001]],63892:[[29833]],63893:[[31178]],63894:[[32244]],63895:[[32879]],63896:[[36646]],63897:[[34030]],63898:[[36899]],63899:[[37706]],63900:[[21015]],63901:[[21155]],63902:[[21693]],63903:[[28872]],63904:[[35010]],63905:[[35498]],63906:[[24265]],63907:[[24565]],63908:[[25467]],63909:[[27566]],63910:[[31806]],63911:[[29557]],63912:[[20196]],63913:[[22265]],63914:[[23527]],63915:[[23994]],63916:[[24604]],63917:[[29618]],63918:[[29801]],63919:[[32666]],63920:[[32838]],63921:[[37428]],63922:[[38646]],63923:[[38728]],63924:[[38936]],63925:[[20363]],63926:[[31150]],63927:[[37300]],63928:[[38584]],63929:[[24801]],63930:[[20102]],63931:[[20698]],63932:[[23534]],63933:[[23615]],63934:[[26009]],63935:[[27138]],63936:[[29134]],63937:[[30274]],63938:[[34044]],63939:[[36988]],63940:[[40845]],63941:[[26248]],63942:[[38446]],63943:[[21129]],63944:[[26491]],63945:[[26611]],63946:[[27969]],63947:[[28316]],63948:[[29705]],63949:[[30041]],63950:[[30827]],63951:[[32016]],63952:[[39006]],63953:[[20845]],63954:[[25134]],63955:[[38520]],63956:[[20523]],63957:[[23833]],63958:[[28138]],63959:[[36650]],63960:[[24459]],63961:[[24900]],63962:[[26647]],63963:[[29575]],63964:[[38534]],63965:[[21033]],63966:[[21519]],63967:[[23653]],63968:[[26131]],63969:[[26446]],63970:[[26792]],63971:[[27877]],63972:[[29702]],63973:[[30178]],63974:[[32633]],63975:[[35023]],63976:[[35041]],63977:[[37324]],63978:[[38626]],63979:[[21311]],63980:[[28346]],63981:[[21533]],63982:[[29136]],63983:[[29848]],63984:[[34298]],63985:[[38563]],63986:[[40023]],63987:[[40607]],63988:[[26519]],63989:[[28107]],63990:[[33256]],63991:[[31435]],63992:[[31520]],63993:[[31890]],63994:[[29376]],63995:[[28825]],63996:[[35672]],63997:[[20160]],63998:[[33590]],63999:[[21050]],194816:[[27966]],194817:[[28023]],194818:[[27969]],194819:[[28009]],194820:[[28024]],194821:[[28037]],194822:[[146718]],194823:[[27956]],194824:[[28207]],194825:[[28270]],194826:[[15667]],194827:[[28363]],194828:[[28359]],194829:[[147153]],194830:[[28153]],194831:[[28526]],194832:[[147294]],194833:[[147342]],194834:[[28614]],194835:[[28729]],194836:[[28702]],194837:[[28699]],194838:[[15766]],194839:[[28746]],194840:[[28797]],194841:[[28791]],194842:[[28845]],194843:[[132389]],194844:[[28997]],194845:[[148067]],194846:[[29084]],194847:[[148395]],194848:[[29224]],194849:[[29237]],194850:[[29264]],194851:[[149e3]],194852:[[29312]],194853:[[29333]],194854:[[149301]],194855:[[149524]],194856:[[29562]],194857:[[29579]],194858:[[16044]],194859:[[29605]],194860:[[16056]],194861:[[16056]],194862:[[29767]],194863:[[29788]],194864:[[29809]],194865:[[29829]],194866:[[29898]],194867:[[16155]],194868:[[29988]],194869:[[150582]],194870:[[30014]],194871:[[150674]],194872:[[30064]],194873:[[139679]],194874:[[30224]],194875:[[151457]],194876:[[151480]],194877:[[151620]],194878:[[16380]],194879:[[16392]],194880:[[30452]],194881:[[151795]],194882:[[151794]],194883:[[151833]],194884:[[151859]],194885:[[30494]],194886:[[30495]],194887:[[30495]],194888:[[30538]],194889:[[16441]],194890:[[30603]],194891:[[16454]],194892:[[16534]],194893:[[152605]],194894:[[30798]],194895:[[30860]],194896:[[30924]],194897:[[16611]],194898:[[153126]],194899:[[31062]],194900:[[153242]],194901:[[153285]],194902:[[31119]],194903:[[31211]],194904:[[16687]],194905:[[31296]],194906:[[31306]],194907:[[31311]],194908:[[153980]],194909:[[154279]],194910:[[154279]],194911:[[31470]],194912:[[16898]],194913:[[154539]],194914:[[31686]],194915:[[31689]],194916:[[16935]],194917:[[154752]],194918:[[31954]],194919:[[17056]],194920:[[31976]],194921:[[31971]],194922:[[32e3]],194923:[[155526]],194924:[[32099]],194925:[[17153]],194926:[[32199]],194927:[[32258]],194928:[[32325]],194929:[[17204]],194930:[[156200]],194931:[[156231]],194932:[[17241]],194933:[[156377]],194934:[[32634]],194935:[[156478]],194936:[[32661]],194937:[[32762]],194938:[[32773]],194939:[[156890]],194940:[[156963]],194941:[[32864]],194942:[[157096]],194943:[[32880]],194944:[[144223]],194945:[[17365]],194946:[[32946]],194947:[[33027]],194948:[[17419]],194949:[[33086]],194950:[[23221]],194951:[[157607]],194952:[[157621]],194953:[[144275]],194954:[[144284]],194955:[[33281]],194956:[[33284]],194957:[[36766]],194958:[[17515]],194959:[[33425]],194960:[[33419]],194961:[[33437]],194962:[[21171]],194963:[[33457]],194964:[[33459]],194965:[[33469]],194966:[[33510]],194967:[[158524]],194968:[[33509]],194969:[[33565]],194970:[[33635]],194971:[[33709]],194972:[[33571]],194973:[[33725]],194974:[[33767]],194975:[[33879]],194976:[[33619]],194977:[[33738]],194978:[[33740]],194979:[[33756]],194980:[[158774]],194981:[[159083]],194982:[[158933]],194983:[[17707]],194984:[[34033]],194985:[[34035]],194986:[[34070]],194987:[[160714]],194988:[[34148]],194989:[[159532]],194990:[[17757]],194991:[[17761]],194992:[[159665]],194993:[[159954]],194994:[[17771]],194995:[[34384]],194996:[[34396]],194997:[[34407]],194998:[[34409]],194999:[[34473]],195000:[[34440]],195001:[[34574]],195002:[[34530]],195003:[[34681]],195004:[[34600]],195005:[[34667]],195006:[[34694]],195007:[[17879]],195008:[[34785]],195009:[[34817]],195010:[[17913]],195011:[[34912]],195012:[[34915]],195013:[[161383]],195014:[[35031]],195015:[[35038]],195016:[[17973]],195017:[[35066]],195018:[[13499]],195019:[[161966]],195020:[[162150]],195021:[[18110]],195022:[[18119]],195023:[[35488]],195024:[[35565]],195025:[[35722]],195026:[[35925]],195027:[[162984]],195028:[[36011]],195029:[[36033]],195030:[[36123]],195031:[[36215]],195032:[[163631]],195033:[[133124]],195034:[[36299]],195035:[[36284]],195036:[[36336]],195037:[[133342]],195038:[[36564]],195039:[[36664]],195040:[[165330]],195041:[[165357]],195042:[[37012]],195043:[[37105]],195044:[[37137]],195045:[[165678]],195046:[[37147]],195047:[[37432]],195048:[[37591]],195049:[[37592]],195050:[[37500]],195051:[[37881]],195052:[[37909]],195053:[[166906]],195054:[[38283]],195055:[[18837]],195056:[[38327]],195057:[[167287]],195058:[[18918]],195059:[[38595]],195060:[[23986]],195061:[[38691]],195062:[[168261]],195063:[[168474]],195064:[[19054]],195065:[[19062]],195066:[[38880]],195067:[[168970]],195068:[[19122]],195069:[[169110]],195070:[[38923]],195071:[[38923]]},64000:{64000:[[20999]],64001:[[24230]],64002:[[25299]],64003:[[31958]],64004:[[23429]],64005:[[27934]],64006:[[26292]],64007:[[36667]],64008:[[34892]],64009:[[38477]],64010:[[35211]],64011:[[24275]],64012:[[20800]],64013:[[21952]],64016:[[22618]],64018:[[26228]],64021:[[20958]],64022:[[29482]],64023:[[30410]],64024:[[31036]],64025:[[31070]],64026:[[31077]],64027:[[31119]],64028:[[38742]],64029:[[31934]],64030:[[32701]],64032:[[34322]],64034:[[35576]],64037:[[36920]],64038:[[37117]],64042:[[39151]],64043:[[39164]],64044:[[39208]],64045:[[40372]],64046:[[37086]],64047:[[38583]],64048:[[20398]],64049:[[20711]],64050:[[20813]],64051:[[21193]],64052:[[21220]],64053:[[21329]],64054:[[21917]],64055:[[22022]],64056:[[22120]],64057:[[22592]],64058:[[22696]],64059:[[23652]],64060:[[23662]],64061:[[24724]],64062:[[24936]],64063:[[24974]],64064:[[25074]],64065:[[25935]],64066:[[26082]],64067:[[26257]],64068:[[26757]],64069:[[28023]],64070:[[28186]],64071:[[28450]],64072:[[29038]],64073:[[29227]],64074:[[29730]],64075:[[30865]],64076:[[31038]],64077:[[31049]],64078:[[31048]],64079:[[31056]],64080:[[31062]],64081:[[31069]],64082:[[31117]],64083:[[31118]],64084:[[31296]],64085:[[31361]],64086:[[31680]],64087:[[32244]],64088:[[32265]],64089:[[32321]],64090:[[32626]],64091:[[32773]],64092:[[33261]],64093:[[33401]],64094:[[33401]],64095:[[33879]],64096:[[35088]],64097:[[35222]],64098:[[35585]],64099:[[35641]],64100:[[36051]],64101:[[36104]],64102:[[36790]],64103:[[36920]],64104:[[38627]],64105:[[38911]],64106:[[38971]],64107:[[24693]],64108:[[148206]],64109:[[33304]],64112:[[20006]],64113:[[20917]],64114:[[20840]],64115:[[20352]],64116:[[20805]],64117:[[20864]],64118:[[21191]],64119:[[21242]],64120:[[21917]],64121:[[21845]],64122:[[21913]],64123:[[21986]],64124:[[22618]],64125:[[22707]],64126:[[22852]],64127:[[22868]],64128:[[23138]],64129:[[23336]],64130:[[24274]],64131:[[24281]],64132:[[24425]],64133:[[24493]],64134:[[24792]],64135:[[24910]],64136:[[24840]],64137:[[24974]],64138:[[24928]],64139:[[25074]],64140:[[25140]],64141:[[25540]],64142:[[25628]],64143:[[25682]],64144:[[25942]],64145:[[26228]],64146:[[26391]],64147:[[26395]],64148:[[26454]],64149:[[27513]],64150:[[27578]],64151:[[27969]],64152:[[28379]],64153:[[28363]],64154:[[28450]],64155:[[28702]],64156:[[29038]],64157:[[30631]],64158:[[29237]],64159:[[29359]],64160:[[29482]],64161:[[29809]],64162:[[29958]],64163:[[30011]],64164:[[30237]],64165:[[30239]],64166:[[30410]],64167:[[30427]],64168:[[30452]],64169:[[30538]],64170:[[30528]],64171:[[30924]],64172:[[31409]],64173:[[31680]],64174:[[31867]],64175:[[32091]],64176:[[32244]],64177:[[32574]],64178:[[32773]],64179:[[33618]],64180:[[33775]],64181:[[34681]],64182:[[35137]],64183:[[35206]],64184:[[35222]],64185:[[35519]],64186:[[35576]],64187:[[35531]],64188:[[35585]],64189:[[35582]],64190:[[35565]],64191:[[35641]],64192:[[35722]],64193:[[36104]],64194:[[36664]],64195:[[36978]],64196:[[37273]],64197:[[37494]],64198:[[38524]],64199:[[38627]],64200:[[38742]],64201:[[38875]],64202:[[38911]],64203:[[38923]],64204:[[38971]],64205:[[39698]],64206:[[40860]],64207:[[141386]],64208:[[141380]],64209:[[144341]],64210:[[15261]],64211:[[16408]],64212:[[16441]],64213:[[152137]],64214:[[154832]],64215:[[163539]],64216:[[40771]],64217:[[40846]],195072:[[38953]],195073:[[169398]],195074:[[39138]],195075:[[19251]],195076:[[39209]],195077:[[39335]],195078:[[39362]],195079:[[39422]],195080:[[19406]],195081:[[170800]],195082:[[39698]],195083:[[4e4]],195084:[[40189]],195085:[[19662]],195086:[[19693]],195087:[[40295]],195088:[[172238]],195089:[[19704]],195090:[[172293]],195091:[[172558]],195092:[[172689]],195093:[[40635]],195094:[[19798]],195095:[[40697]],195096:[[40702]],195097:[[40709]],195098:[[40719]],195099:[[40726]],195100:[[40763]],195101:[[173568]]},64256:{64256:[[102,102],256],64257:[[102,105],256],64258:[[102,108],256],64259:[[102,102,105],256],64260:[[102,102,108],256],64261:[[383,116],256],64262:[[115,116],256],64275:[[1396,1398],256],64276:[[1396,1381],256],64277:[[1396,1387],256],64278:[[1406,1398],256],64279:[[1396,1389],256],64285:[[1497,1460],512],64286:[,26],64287:[[1522,1463],512],64288:[[1506],256],64289:[[1488],256],64290:[[1491],256],64291:[[1492],256],64292:[[1499],256],64293:[[1500],256],64294:[[1501],256],64295:[[1512],256],64296:[[1514],256],64297:[[43],256],64298:[[1513,1473],512],64299:[[1513,1474],512],64300:[[64329,1473],512],64301:[[64329,1474],512],64302:[[1488,1463],512],64303:[[1488,1464],512],64304:[[1488,1468],512],64305:[[1489,1468],512],64306:[[1490,1468],512],64307:[[1491,1468],512],64308:[[1492,1468],512],64309:[[1493,1468],512],64310:[[1494,1468],512],64312:[[1496,1468],512],64313:[[1497,1468],512],64314:[[1498,1468],512],64315:[[1499,1468],512],64316:[[1500,1468],512],64318:[[1502,1468],512],64320:[[1504,1468],512],64321:[[1505,1468],512],64323:[[1507,1468],512],64324:[[1508,1468],512],64326:[[1510,1468],512],64327:[[1511,1468],512],64328:[[1512,1468],512],64329:[[1513,1468],512],64330:[[1514,1468],512],64331:[[1493,1465],512],64332:[[1489,1471],512],64333:[[1499,1471],512],64334:[[1508,1471],512],64335:[[1488,1500],256],64336:[[1649],256],64337:[[1649],256],64338:[[1659],256],64339:[[1659],256],64340:[[1659],256],64341:[[1659],256],64342:[[1662],256],64343:[[1662],256],64344:[[1662],256],64345:[[1662],256],64346:[[1664],256],64347:[[1664],256],64348:[[1664],256],64349:[[1664],256],64350:[[1658],256],64351:[[1658],256],64352:[[1658],256],64353:[[1658],256],64354:[[1663],256],64355:[[1663],256],64356:[[1663],256],64357:[[1663],256],64358:[[1657],256],64359:[[1657],256],64360:[[1657],256],64361:[[1657],256],64362:[[1700],256],64363:[[1700],256],64364:[[1700],256],64365:[[1700],256],64366:[[1702],256],64367:[[1702],256],64368:[[1702],256],64369:[[1702],256],64370:[[1668],256],64371:[[1668],256],64372:[[1668],256],64373:[[1668],256],64374:[[1667],256],64375:[[1667],256],64376:[[1667],256],64377:[[1667],256],64378:[[1670],256],64379:[[1670],256],64380:[[1670],256],64381:[[1670],256],64382:[[1671],256],64383:[[1671],256],64384:[[1671],256],64385:[[1671],256],64386:[[1677],256],64387:[[1677],256],64388:[[1676],256],64389:[[1676],256],64390:[[1678],256],64391:[[1678],256],64392:[[1672],256],64393:[[1672],256],64394:[[1688],256],64395:[[1688],256],64396:[[1681],256],64397:[[1681],256],64398:[[1705],256],64399:[[1705],256],64400:[[1705],256],64401:[[1705],256],64402:[[1711],256],64403:[[1711],256],64404:[[1711],256],64405:[[1711],256],64406:[[1715],256],64407:[[1715],256],64408:[[1715],256],64409:[[1715],256],64410:[[1713],256],64411:[[1713],256],64412:[[1713],256],64413:[[1713],256],64414:[[1722],256],64415:[[1722],256],64416:[[1723],256],64417:[[1723],256],64418:[[1723],256],64419:[[1723],256],64420:[[1728],256],64421:[[1728],256],64422:[[1729],256],64423:[[1729],256],64424:[[1729],256],64425:[[1729],256],64426:[[1726],256],64427:[[1726],256],64428:[[1726],256],64429:[[1726],256],64430:[[1746],256],64431:[[1746],256],64432:[[1747],256],64433:[[1747],256],64467:[[1709],256],64468:[[1709],256],64469:[[1709],256],64470:[[1709],256],64471:[[1735],256],64472:[[1735],256],64473:[[1734],256],64474:[[1734],256],64475:[[1736],256],64476:[[1736],256],64477:[[1655],256],64478:[[1739],256],64479:[[1739],256],64480:[[1733],256],64481:[[1733],256],64482:[[1737],256],64483:[[1737],256],64484:[[1744],256],64485:[[1744],256],64486:[[1744],256],64487:[[1744],256],64488:[[1609],256],64489:[[1609],256],64490:[[1574,1575],256],64491:[[1574,1575],256],64492:[[1574,1749],256],64493:[[1574,1749],256],64494:[[1574,1608],256],64495:[[1574,1608],256],64496:[[1574,1735],256],64497:[[1574,1735],256],64498:[[1574,1734],256],64499:[[1574,1734],256],64500:[[1574,1736],256],64501:[[1574,1736],256],64502:[[1574,1744],256],64503:[[1574,1744],256],64504:[[1574,1744],256],64505:[[1574,1609],256],64506:[[1574,1609],256],64507:[[1574,1609],256],64508:[[1740],256],64509:[[1740],256],64510:[[1740],256],64511:[[1740],256]},64512:{64512:[[1574,1580],256],64513:[[1574,1581],256],64514:[[1574,1605],256],64515:[[1574,1609],256],64516:[[1574,1610],256],64517:[[1576,1580],256],64518:[[1576,1581],256],64519:[[1576,1582],256],64520:[[1576,1605],256],64521:[[1576,1609],256],64522:[[1576,1610],256],64523:[[1578,1580],256],64524:[[1578,1581],256],64525:[[1578,1582],256],64526:[[1578,1605],256],64527:[[1578,1609],256],64528:[[1578,1610],256],64529:[[1579,1580],256],64530:[[1579,1605],256],64531:[[1579,1609],256],64532:[[1579,1610],256],64533:[[1580,1581],256],64534:[[1580,1605],256],64535:[[1581,1580],256],64536:[[1581,1605],256],64537:[[1582,1580],256],64538:[[1582,1581],256],64539:[[1582,1605],256],64540:[[1587,1580],256],64541:[[1587,1581],256],64542:[[1587,1582],256],64543:[[1587,1605],256],64544:[[1589,1581],256],64545:[[1589,1605],256],64546:[[1590,1580],256],64547:[[1590,1581],256],64548:[[1590,1582],256],64549:[[1590,1605],256],64550:[[1591,1581],256],64551:[[1591,1605],256],64552:[[1592,1605],256],64553:[[1593,1580],256],64554:[[1593,1605],256],64555:[[1594,1580],256],64556:[[1594,1605],256],64557:[[1601,1580],256],64558:[[1601,1581],256],64559:[[1601,1582],256],64560:[[1601,1605],256],64561:[[1601,1609],256],64562:[[1601,1610],256],64563:[[1602,1581],256],64564:[[1602,1605],256],64565:[[1602,1609],256],64566:[[1602,1610],256],64567:[[1603,1575],256],64568:[[1603,1580],256],64569:[[1603,1581],256],64570:[[1603,1582],256],64571:[[1603,1604],256],64572:[[1603,1605],256],64573:[[1603,1609],256],64574:[[1603,1610],256],64575:[[1604,1580],256],64576:[[1604,1581],256],64577:[[1604,1582],256],64578:[[1604,1605],256],64579:[[1604,1609],256],64580:[[1604,1610],256],64581:[[1605,1580],256],64582:[[1605,1581],256],64583:[[1605,1582],256],64584:[[1605,1605],256],64585:[[1605,1609],256],64586:[[1605,1610],256],64587:[[1606,1580],256],64588:[[1606,1581],256],64589:[[1606,1582],256],64590:[[1606,1605],256],64591:[[1606,1609],256],64592:[[1606,1610],256],64593:[[1607,1580],256],64594:[[1607,1605],256],64595:[[1607,1609],256],64596:[[1607,1610],256],64597:[[1610,1580],256],64598:[[1610,1581],256],64599:[[1610,1582],256],64600:[[1610,1605],256],64601:[[1610,1609],256],64602:[[1610,1610],256],64603:[[1584,1648],256],64604:[[1585,1648],256],64605:[[1609,1648],256],64606:[[32,1612,1617],256],64607:[[32,1613,1617],256],64608:[[32,1614,1617],256],64609:[[32,1615,1617],256],64610:[[32,1616,1617],256],64611:[[32,1617,1648],256],64612:[[1574,1585],256],64613:[[1574,1586],256],64614:[[1574,1605],256],64615:[[1574,1606],256],64616:[[1574,1609],256],64617:[[1574,1610],256],64618:[[1576,1585],256],64619:[[1576,1586],256],64620:[[1576,1605],256],64621:[[1576,1606],256],64622:[[1576,1609],256],64623:[[1576,1610],256],64624:[[1578,1585],256],64625:[[1578,1586],256],64626:[[1578,1605],256],64627:[[1578,1606],256],64628:[[1578,1609],256],64629:[[1578,1610],256],64630:[[1579,1585],256],64631:[[1579,1586],256],64632:[[1579,1605],256],64633:[[1579,1606],256],64634:[[1579,1609],256],64635:[[1579,1610],256],64636:[[1601,1609],256],64637:[[1601,1610],256],64638:[[1602,1609],256],64639:[[1602,1610],256],64640:[[1603,1575],256],64641:[[1603,1604],256],64642:[[1603,1605],256],64643:[[1603,1609],256],64644:[[1603,1610],256],64645:[[1604,1605],256],64646:[[1604,1609],256],64647:[[1604,1610],256],64648:[[1605,1575],256],64649:[[1605,1605],256],64650:[[1606,1585],256],64651:[[1606,1586],256],64652:[[1606,1605],256],64653:[[1606,1606],256],64654:[[1606,1609],256],64655:[[1606,1610],256],64656:[[1609,1648],256],64657:[[1610,1585],256],64658:[[1610,1586],256],64659:[[1610,1605],256],64660:[[1610,1606],256],64661:[[1610,1609],256],64662:[[1610,1610],256],64663:[[1574,1580],256],64664:[[1574,1581],256],64665:[[1574,1582],256],64666:[[1574,1605],256],64667:[[1574,1607],256],64668:[[1576,1580],256],64669:[[1576,1581],256],64670:[[1576,1582],256],64671:[[1576,1605],256],64672:[[1576,1607],256],64673:[[1578,1580],256],64674:[[1578,1581],256],64675:[[1578,1582],256],64676:[[1578,1605],256],64677:[[1578,1607],256],64678:[[1579,1605],256],64679:[[1580,1581],256],64680:[[1580,1605],256],64681:[[1581,1580],256],64682:[[1581,1605],256],64683:[[1582,1580],256],64684:[[1582,1605],256],64685:[[1587,1580],256],64686:[[1587,1581],256],64687:[[1587,1582],256],64688:[[1587,1605],256],64689:[[1589,1581],256],64690:[[1589,1582],256],64691:[[1589,1605],256],64692:[[1590,1580],256],64693:[[1590,1581],256],64694:[[1590,1582],256],64695:[[1590,1605],256],64696:[[1591,1581],256],64697:[[1592,1605],256],64698:[[1593,1580],256],64699:[[1593,1605],256],64700:[[1594,1580],256],64701:[[1594,1605],256],64702:[[1601,1580],256],64703:[[1601,1581],256],64704:[[1601,1582],256],64705:[[1601,1605],256],64706:[[1602,1581],256],64707:[[1602,1605],256],64708:[[1603,1580],256],64709:[[1603,1581],256],64710:[[1603,1582],256],64711:[[1603,1604],256],64712:[[1603,1605],256],64713:[[1604,1580],256],64714:[[1604,1581],256],64715:[[1604,1582],256],64716:[[1604,1605],256],64717:[[1604,1607],256],64718:[[1605,1580],256],64719:[[1605,1581],256],64720:[[1605,1582],256],64721:[[1605,1605],256],64722:[[1606,1580],256],64723:[[1606,1581],256],64724:[[1606,1582],256],64725:[[1606,1605],256],64726:[[1606,1607],256],64727:[[1607,1580],256],64728:[[1607,1605],256],64729:[[1607,1648],256],64730:[[1610,1580],256],64731:[[1610,1581],256],64732:[[1610,1582],256],64733:[[1610,1605],256],64734:[[1610,1607],256],64735:[[1574,1605],256],64736:[[1574,1607],256],64737:[[1576,1605],256],64738:[[1576,1607],256],64739:[[1578,1605],256],64740:[[1578,1607],256],64741:[[1579,1605],256],64742:[[1579,1607],256],64743:[[1587,1605],256],64744:[[1587,1607],256],64745:[[1588,1605],256],64746:[[1588,1607],256],64747:[[1603,1604],256],64748:[[1603,1605],256],64749:[[1604,1605],256],64750:[[1606,1605],256],64751:[[1606,1607],256],64752:[[1610,1605],256],64753:[[1610,1607],256],64754:[[1600,1614,1617],256],64755:[[1600,1615,1617],256],64756:[[1600,1616,1617],256],64757:[[1591,1609],256],64758:[[1591,1610],256],64759:[[1593,1609],256],64760:[[1593,1610],256],64761:[[1594,1609],256],64762:[[1594,1610],256],64763:[[1587,1609],256],64764:[[1587,1610],256],64765:[[1588,1609],256],64766:[[1588,1610],256],64767:[[1581,1609],256]},64768:{64768:[[1581,1610],256],64769:[[1580,1609],256],64770:[[1580,1610],256],64771:[[1582,1609],256],64772:[[1582,1610],256],64773:[[1589,1609],256],64774:[[1589,1610],256],64775:[[1590,1609],256],64776:[[1590,1610],256],64777:[[1588,1580],256],64778:[[1588,1581],256],64779:[[1588,1582],256],64780:[[1588,1605],256],64781:[[1588,1585],256],64782:[[1587,1585],256],64783:[[1589,1585],256],64784:[[1590,1585],256],64785:[[1591,1609],256],64786:[[1591,1610],256],64787:[[1593,1609],256],64788:[[1593,1610],256],64789:[[1594,1609],256],64790:[[1594,1610],256],64791:[[1587,1609],256],64792:[[1587,1610],256],64793:[[1588,1609],256],64794:[[1588,1610],256],64795:[[1581,1609],256],64796:[[1581,1610],256],64797:[[1580,1609],256],64798:[[1580,1610],256],64799:[[1582,1609],256],64800:[[1582,1610],256],64801:[[1589,1609],256],64802:[[1589,1610],256],64803:[[1590,1609],256],64804:[[1590,1610],256],64805:[[1588,1580],256],64806:[[1588,1581],256],64807:[[1588,1582],256],64808:[[1588,1605],256],64809:[[1588,1585],256],64810:[[1587,1585],256],64811:[[1589,1585],256],64812:[[1590,1585],256],64813:[[1588,1580],256],64814:[[1588,1581],256],64815:[[1588,1582],256],64816:[[1588,1605],256],64817:[[1587,1607],256],64818:[[1588,1607],256],64819:[[1591,1605],256],64820:[[1587,1580],256],64821:[[1587,1581],256],64822:[[1587,1582],256],64823:[[1588,1580],256],64824:[[1588,1581],256],64825:[[1588,1582],256],64826:[[1591,1605],256],64827:[[1592,1605],256],64828:[[1575,1611],256],64829:[[1575,1611],256],64848:[[1578,1580,1605],256],64849:[[1578,1581,1580],256],64850:[[1578,1581,1580],256],64851:[[1578,1581,1605],256],64852:[[1578,1582,1605],256],64853:[[1578,1605,1580],256],64854:[[1578,1605,1581],256],64855:[[1578,1605,1582],256],64856:[[1580,1605,1581],256],64857:[[1580,1605,1581],256],64858:[[1581,1605,1610],256],64859:[[1581,1605,1609],256],64860:[[1587,1581,1580],256],64861:[[1587,1580,1581],256],64862:[[1587,1580,1609],256],64863:[[1587,1605,1581],256],64864:[[1587,1605,1581],256],64865:[[1587,1605,1580],256],64866:[[1587,1605,1605],256],64867:[[1587,1605,1605],256],64868:[[1589,1581,1581],256],64869:[[1589,1581,1581],256],64870:[[1589,1605,1605],256],64871:[[1588,1581,1605],256],64872:[[1588,1581,1605],256],64873:[[1588,1580,1610],256],64874:[[1588,1605,1582],256],64875:[[1588,1605,1582],256],64876:[[1588,1605,1605],256],64877:[[1588,1605,1605],256],64878:[[1590,1581,1609],256],64879:[[1590,1582,1605],256],64880:[[1590,1582,1605],256],64881:[[1591,1605,1581],256],64882:[[1591,1605,1581],256],64883:[[1591,1605,1605],256],64884:[[1591,1605,1610],256],64885:[[1593,1580,1605],256],64886:[[1593,1605,1605],256],64887:[[1593,1605,1605],256],64888:[[1593,1605,1609],256],64889:[[1594,1605,1605],256],64890:[[1594,1605,1610],256],64891:[[1594,1605,1609],256],64892:[[1601,1582,1605],256],64893:[[1601,1582,1605],256],64894:[[1602,1605,1581],256],64895:[[1602,1605,1605],256],64896:[[1604,1581,1605],256],64897:[[1604,1581,1610],256],64898:[[1604,1581,1609],256],64899:[[1604,1580,1580],256],64900:[[1604,1580,1580],256],64901:[[1604,1582,1605],256],64902:[[1604,1582,1605],256],64903:[[1604,1605,1581],256],64904:[[1604,1605,1581],256],64905:[[1605,1581,1580],256],64906:[[1605,1581,1605],256],64907:[[1605,1581,1610],256],64908:[[1605,1580,1581],256],64909:[[1605,1580,1605],256],64910:[[1605,1582,1580],256],64911:[[1605,1582,1605],256],64914:[[1605,1580,1582],256],64915:[[1607,1605,1580],256],64916:[[1607,1605,1605],256],64917:[[1606,1581,1605],256],64918:[[1606,1581,1609],256],64919:[[1606,1580,1605],256],64920:[[1606,1580,1605],256],64921:[[1606,1580,1609],256],64922:[[1606,1605,1610],256],64923:[[1606,1605,1609],256],64924:[[1610,1605,1605],256],64925:[[1610,1605,1605],256],64926:[[1576,1582,1610],256],64927:[[1578,1580,1610],256],64928:[[1578,1580,1609],256],64929:[[1578,1582,1610],256],64930:[[1578,1582,1609],256],64931:[[1578,1605,1610],256],64932:[[1578,1605,1609],256],64933:[[1580,1605,1610],256],64934:[[1580,1581,1609],256],64935:[[1580,1605,1609],256],64936:[[1587,1582,1609],256],64937:[[1589,1581,1610],256],64938:[[1588,1581,1610],256],64939:[[1590,1581,1610],256],64940:[[1604,1580,1610],256],64941:[[1604,1605,1610],256],64942:[[1610,1581,1610],256],64943:[[1610,1580,1610],256],64944:[[1610,1605,1610],256],64945:[[1605,1605,1610],256],64946:[[1602,1605,1610],256],64947:[[1606,1581,1610],256],64948:[[1602,1605,1581],256],64949:[[1604,1581,1605],256],64950:[[1593,1605,1610],256],64951:[[1603,1605,1610],256],64952:[[1606,1580,1581],256],64953:[[1605,1582,1610],256],64954:[[1604,1580,1605],256],64955:[[1603,1605,1605],256],64956:[[1604,1580,1605],256],64957:[[1606,1580,1581],256],64958:[[1580,1581,1610],256],64959:[[1581,1580,1610],256],64960:[[1605,1580,1610],256],64961:[[1601,1605,1610],256],64962:[[1576,1581,1610],256],64963:[[1603,1605,1605],256],64964:[[1593,1580,1605],256],64965:[[1589,1605,1605],256],64966:[[1587,1582,1610],256],64967:[[1606,1580,1610],256],65008:[[1589,1604,1746],256],65009:[[1602,1604,1746],256],65010:[[1575,1604,1604,1607],256],65011:[[1575,1603,1576,1585],256],65012:[[1605,1581,1605,1583],256],65013:[[1589,1604,1593,1605],256],65014:[[1585,1587,1608,1604],256],65015:[[1593,1604,1610,1607],256],65016:[[1608,1587,1604,1605],256],65017:[[1589,1604,1609],256],65018:[[1589,1604,1609,32,1575,1604,1604,1607,32,1593,1604,1610,1607,32,1608,1587,1604,1605],256],65019:[[1580,1604,32,1580,1604,1575,1604,1607],256],65020:[[1585,1740,1575,1604],256]},65024:{65040:[[44],256],65041:[[12289],256],65042:[[12290],256],65043:[[58],256],65044:[[59],256],65045:[[33],256],65046:[[63],256],65047:[[12310],256],65048:[[12311],256],65049:[[8230],256],65056:[,230],65057:[,230],65058:[,230],65059:[,230],65060:[,230],65061:[,230],65062:[,230],65063:[,220],65064:[,220],65065:[,220],65066:[,220],65067:[,220],65068:[,220],65069:[,220],65072:[[8229],256],65073:[[8212],256],65074:[[8211],256],65075:[[95],256],65076:[[95],256],65077:[[40],256],65078:[[41],256],65079:[[123],256],65080:[[125],256],65081:[[12308],256],65082:[[12309],256],65083:[[12304],256],65084:[[12305],256],65085:[[12298],256],65086:[[12299],256],65087:[[12296],256],65088:[[12297],256],65089:[[12300],256],65090:[[12301],256],65091:[[12302],256],65092:[[12303],256],65095:[[91],256],65096:[[93],256],65097:[[8254],256],65098:[[8254],256],65099:[[8254],256],65100:[[8254],256],65101:[[95],256],65102:[[95],256],65103:[[95],256],65104:[[44],256],65105:[[12289],256],65106:[[46],256],65108:[[59],256],65109:[[58],256],65110:[[63],256],65111:[[33],256],65112:[[8212],256],65113:[[40],256],65114:[[41],256],65115:[[123],256],65116:[[125],256],65117:[[12308],256],65118:[[12309],256],65119:[[35],256],65120:[[38],256],65121:[[42],256],65122:[[43],256],65123:[[45],256],65124:[[60],256],65125:[[62],256],65126:[[61],256],65128:[[92],256],65129:[[36],256],65130:[[37],256],65131:[[64],256],65136:[[32,1611],256],65137:[[1600,1611],256],65138:[[32,1612],256],65140:[[32,1613],256],65142:[[32,1614],256],65143:[[1600,1614],256],65144:[[32,1615],256],65145:[[1600,1615],256],65146:[[32,1616],256],65147:[[1600,1616],256],65148:[[32,1617],256],65149:[[1600,1617],256],65150:[[32,1618],256],65151:[[1600,1618],256],65152:[[1569],256],65153:[[1570],256],65154:[[1570],256],65155:[[1571],256],65156:[[1571],256],65157:[[1572],256],65158:[[1572],256],65159:[[1573],256],65160:[[1573],256],65161:[[1574],256],65162:[[1574],256],65163:[[1574],256],65164:[[1574],256],65165:[[1575],256],65166:[[1575],256],65167:[[1576],256],65168:[[1576],256],65169:[[1576],256],65170:[[1576],256],65171:[[1577],256],65172:[[1577],256],65173:[[1578],256],65174:[[1578],256],65175:[[1578],256],65176:[[1578],256],65177:[[1579],256],65178:[[1579],256],65179:[[1579],256],65180:[[1579],256],65181:[[1580],256],65182:[[1580],256],65183:[[1580],256],65184:[[1580],256],65185:[[1581],256],65186:[[1581],256],65187:[[1581],256],65188:[[1581],256],65189:[[1582],256],65190:[[1582],256],65191:[[1582],256],65192:[[1582],256],65193:[[1583],256],65194:[[1583],256],65195:[[1584],256],65196:[[1584],256],65197:[[1585],256],65198:[[1585],256],65199:[[1586],256],65200:[[1586],256],65201:[[1587],256],65202:[[1587],256],65203:[[1587],256],65204:[[1587],256],65205:[[1588],256],65206:[[1588],256],65207:[[1588],256],65208:[[1588],256],65209:[[1589],256],65210:[[1589],256],65211:[[1589],256],65212:[[1589],256],65213:[[1590],256],65214:[[1590],256],65215:[[1590],256],65216:[[1590],256],65217:[[1591],256],65218:[[1591],256],65219:[[1591],256],65220:[[1591],256],65221:[[1592],256],65222:[[1592],256],65223:[[1592],256],65224:[[1592],256],65225:[[1593],256],65226:[[1593],256],65227:[[1593],256],65228:[[1593],256],65229:[[1594],256],65230:[[1594],256],65231:[[1594],256],65232:[[1594],256],65233:[[1601],256],65234:[[1601],256],65235:[[1601],256],65236:[[1601],256],65237:[[1602],256],65238:[[1602],256],65239:[[1602],256],65240:[[1602],256],65241:[[1603],256],65242:[[1603],256],65243:[[1603],256],65244:[[1603],256],65245:[[1604],256],65246:[[1604],256],65247:[[1604],256],65248:[[1604],256],65249:[[1605],256],65250:[[1605],256],65251:[[1605],256],65252:[[1605],256],65253:[[1606],256],65254:[[1606],256],65255:[[1606],256],65256:[[1606],256],65257:[[1607],256],65258:[[1607],256],65259:[[1607],256],65260:[[1607],256],65261:[[1608],256],65262:[[1608],256],65263:[[1609],256],65264:[[1609],256],65265:[[1610],256],65266:[[1610],256],65267:[[1610],256],65268:[[1610],256],65269:[[1604,1570],256],65270:[[1604,1570],256],65271:[[1604,1571],256],65272:[[1604,1571],256],65273:[[1604,1573],256],65274:[[1604,1573],256],65275:[[1604,1575],256],65276:[[1604,1575],256]},65280:{65281:[[33],256],65282:[[34],256],65283:[[35],256],65284:[[36],256],65285:[[37],256],65286:[[38],256],65287:[[39],256],65288:[[40],256],65289:[[41],256],65290:[[42],256],65291:[[43],256],65292:[[44],256],65293:[[45],256],65294:[[46],256],65295:[[47],256],65296:[[48],256],65297:[[49],256],65298:[[50],256],65299:[[51],256],65300:[[52],256],65301:[[53],256],65302:[[54],256],65303:[[55],256],65304:[[56],256],65305:[[57],256],65306:[[58],256],65307:[[59],256],65308:[[60],256],65309:[[61],256],65310:[[62],256],65311:[[63],256],65312:[[64],256],65313:[[65],256],65314:[[66],256],65315:[[67],256],65316:[[68],256],65317:[[69],256],65318:[[70],256],65319:[[71],256],65320:[[72],256],65321:[[73],256],65322:[[74],256],65323:[[75],256],65324:[[76],256],65325:[[77],256],65326:[[78],256],65327:[[79],256],65328:[[80],256],65329:[[81],256],65330:[[82],256],65331:[[83],256],65332:[[84],256],65333:[[85],256],65334:[[86],256],65335:[[87],256],65336:[[88],256],65337:[[89],256],65338:[[90],256],65339:[[91],256],65340:[[92],256],65341:[[93],256],65342:[[94],256],65343:[[95],256],65344:[[96],256],65345:[[97],256],65346:[[98],256],65347:[[99],256],65348:[[100],256],65349:[[101],256],65350:[[102],256],65351:[[103],256],65352:[[104],256],65353:[[105],256],65354:[[106],256],65355:[[107],256],65356:[[108],256],65357:[[109],256],65358:[[110],256],65359:[[111],256],65360:[[112],256],65361:[[113],256],65362:[[114],256],65363:[[115],256],65364:[[116],256],65365:[[117],256],65366:[[118],256],65367:[[119],256],65368:[[120],256],65369:[[121],256],65370:[[122],256],65371:[[123],256],65372:[[124],256],65373:[[125],256],65374:[[126],256],65375:[[10629],256],65376:[[10630],256],65377:[[12290],256],65378:[[12300],256],65379:[[12301],256],65380:[[12289],256],65381:[[12539],256],65382:[[12530],256],65383:[[12449],256],65384:[[12451],256],65385:[[12453],256],65386:[[12455],256],65387:[[12457],256],65388:[[12515],256],65389:[[12517],256],65390:[[12519],256],65391:[[12483],256],65392:[[12540],256],65393:[[12450],256],65394:[[12452],256],65395:[[12454],256],65396:[[12456],256],65397:[[12458],256],65398:[[12459],256],65399:[[12461],256],65400:[[12463],256],65401:[[12465],256],65402:[[12467],256],65403:[[12469],256],65404:[[12471],256],65405:[[12473],256],65406:[[12475],256],65407:[[12477],256],65408:[[12479],256],65409:[[12481],256],65410:[[12484],256],65411:[[12486],256],65412:[[12488],256],65413:[[12490],256],65414:[[12491],256],65415:[[12492],256],65416:[[12493],256],65417:[[12494],256],65418:[[12495],256],65419:[[12498],256],65420:[[12501],256],65421:[[12504],256],65422:[[12507],256],65423:[[12510],256],65424:[[12511],256],65425:[[12512],256],65426:[[12513],256],65427:[[12514],256],65428:[[12516],256],65429:[[12518],256],65430:[[12520],256],65431:[[12521],256],65432:[[12522],256],65433:[[12523],256],65434:[[12524],256],65435:[[12525],256],65436:[[12527],256],65437:[[12531],256],65438:[[12441],256],65439:[[12442],256],65440:[[12644],256],65441:[[12593],256],65442:[[12594],256],65443:[[12595],256],65444:[[12596],256],65445:[[12597],256],65446:[[12598],256],65447:[[12599],256],65448:[[12600],256],65449:[[12601],256],65450:[[12602],256],65451:[[12603],256],65452:[[12604],256],65453:[[12605],256],65454:[[12606],256],65455:[[12607],256],65456:[[12608],256],65457:[[12609],256],65458:[[12610],256],65459:[[12611],256],65460:[[12612],256],65461:[[12613],256],65462:[[12614],256],65463:[[12615],256],65464:[[12616],256],65465:[[12617],256],65466:[[12618],256],65467:[[12619],256],65468:[[12620],256],65469:[[12621],256],65470:[[12622],256],65474:[[12623],256],65475:[[12624],256],65476:[[12625],256],65477:[[12626],256],65478:[[12627],256],65479:[[12628],256],65482:[[12629],256],65483:[[12630],256],65484:[[12631],256],65485:[[12632],256],65486:[[12633],256],65487:[[12634],256],65490:[[12635],256],65491:[[12636],256],65492:[[12637],256],65493:[[12638],256],65494:[[12639],256],65495:[[12640],256],65498:[[12641],256],65499:[[12642],256],65500:[[12643],256],65504:[[162],256],65505:[[163],256],65506:[[172],256],65507:[[175],256],65508:[[166],256],65509:[[165],256],65510:[[8361],256],65512:[[9474],256],65513:[[8592],256],65514:[[8593],256],65515:[[8594],256],65516:[[8595],256],65517:[[9632],256],65518:[[9675],256]}};var S={nfc:function(e){return E("NFC",e)},nfd:function(e){return E("NFD",e)},nfkc:function(e){return E("NFKC",e)},nfkd:function(e){return E("NFKD",e)}};e.exports=S,S.shimApplied=!1,String.prototype.normalize||(String.prototype.normalize=function(e){var t=""+this;if("NFC"===(e=void 0===e?"NFC":e))return S.nfc(t);if("NFD"===e)return S.nfd(t);if("NFKC"===e)return S.nfkc(t);if("NFKD"===e)return S.nfkd(t);throw new RangeError("Invalid normalization form: "+e)},S.shimApplied=!0)}()},function(e,t){e.exports=["abandon","ability","able","about","above","absent","absorb","abstract","absurd","abuse","access","accident","account","accuse","achieve","acid","acoustic","acquire","across","act","action","actor","actress","actual","adapt","add","addict","address","adjust","admit","adult","advance","advice","aerobic","affair","afford","afraid","again","age","agent","agree","ahead","aim","air","airport","aisle","alarm","album","alcohol","alert","alien","all","alley","allow","almost","alone","alpha","already","also","alter","always","amateur","amazing","among","amount","amused","analyst","anchor","ancient","anger","angle","angry","animal","ankle","announce","annual","another","answer","antenna","antique","anxiety","any","apart","apology","appear","apple","approve","april","arch","arctic","area","arena","argue","arm","armed","armor","army","around","arrange","arrest","arrive","arrow","art","artefact","artist","artwork","ask","aspect","assault","asset","assist","assume","asthma","athlete","atom","attack","attend","attitude","attract","auction","audit","august","aunt","author","auto","autumn","average","avocado","avoid","awake","aware","away","awesome","awful","awkward","axis","baby","bachelor","bacon","badge","bag","balance","balcony","ball","bamboo","banana","banner","bar","barely","bargain","barrel","base","basic","basket","battle","beach","bean","beauty","because","become","beef","before","begin","behave","behind","believe","below","belt","bench","benefit","best","betray","better","between","beyond","bicycle","bid","bike","bind","biology","bird","birth","bitter","black","blade","blame","blanket","blast","bleak","bless","blind","blood","blossom","blouse","blue","blur","blush","board","boat","body","boil","bomb","bone","bonus","book","boost","border","boring","borrow","boss","bottom","bounce","box","boy","bracket","brain","brand","brass","brave","bread","breeze","brick","bridge","brief","bright","bring","brisk","broccoli","broken","bronze","broom","brother","brown","brush","bubble","buddy","budget","buffalo","build","bulb","bulk","bullet","bundle","bunker","burden","burger","burst","bus","business","busy","butter","buyer","buzz","cabbage","cabin","cable","cactus","cage","cake","call","calm","camera","camp","can","canal","cancel","candy","cannon","canoe","canvas","canyon","capable","capital","captain","car","carbon","card","cargo","carpet","carry","cart","case","cash","casino","castle","casual","cat","catalog","catch","category","cattle","caught","cause","caution","cave","ceiling","celery","cement","census","century","cereal","certain","chair","chalk","champion","change","chaos","chapter","charge","chase","chat","cheap","check","cheese","chef","cherry","chest","chicken","chief","child","chimney","choice","choose","chronic","chuckle","chunk","churn","cigar","cinnamon","circle","citizen","city","civil","claim","clap","clarify","claw","clay","clean","clerk","clever","click","client","cliff","climb","clinic","clip","clock","clog","close","cloth","cloud","clown","club","clump","cluster","clutch","coach","coast","coconut","code","coffee","coil","coin","collect","color","column","combine","come","comfort","comic","common","company","concert","conduct","confirm","congress","connect","consider","control","convince","cook","cool","copper","copy","coral","core","corn","correct","cost","cotton","couch","country","couple","course","cousin","cover","coyote","crack","cradle","craft","cram","crane","crash","crater","crawl","crazy","cream","credit","creek","crew","cricket","crime","crisp","critic","crop","cross","crouch","crowd","crucial","cruel","cruise","crumble","crunch","crush","cry","crystal","cube","culture","cup","cupboard","curious","current","curtain","curve","cushion","custom","cute","cycle","dad","damage","damp","dance","danger","daring","dash","daughter","dawn","day","deal","debate","debris","decade","december","decide","decline","decorate","decrease","deer","defense","define","defy","degree","delay","deliver","demand","demise","denial","dentist","deny","depart","depend","deposit","depth","deputy","derive","describe","desert","design","desk","despair","destroy","detail","detect","develop","device","devote","diagram","dial","diamond","diary","dice","diesel","diet","differ","digital","dignity","dilemma","dinner","dinosaur","direct","dirt","disagree","discover","disease","dish","dismiss","disorder","display","distance","divert","divide","divorce","dizzy","doctor","document","dog","doll","dolphin","domain","donate","donkey","donor","door","dose","double","dove","draft","dragon","drama","drastic","draw","dream","dress","drift","drill","drink","drip","drive","drop","drum","dry","duck","dumb","dune","during","dust","dutch","duty","dwarf","dynamic","eager","eagle","early","earn","earth","easily","east","easy","echo","ecology","economy","edge","edit","educate","effort","egg","eight","either","elbow","elder","electric","elegant","element","elephant","elevator","elite","else","embark","embody","embrace","emerge","emotion","employ","empower","empty","enable","enact","end","endless","endorse","enemy","energy","enforce","engage","engine","enhance","enjoy","enlist","enough","enrich","enroll","ensure","enter","entire","entry","envelope","episode","equal","equip","era","erase","erode","erosion","error","erupt","escape","essay","essence","estate","eternal","ethics","evidence","evil","evoke","evolve","exact","example","excess","exchange","excite","exclude","excuse","execute","exercise","exhaust","exhibit","exile","exist","exit","exotic","expand","expect","expire","explain","expose","express","extend","extra","eye","eyebrow","fabric","face","faculty","fade","faint","faith","fall","false","fame","family","famous","fan","fancy","fantasy","farm","fashion","fat","fatal","father","fatigue","fault","favorite","feature","february","federal","fee","feed","feel","female","fence","festival","fetch","fever","few","fiber","fiction","field","figure","file","film","filter","final","find","fine","finger","finish","fire","firm","first","fiscal","fish","fit","fitness","fix","flag","flame","flash","flat","flavor","flee","flight","flip","float","flock","floor","flower","fluid","flush","fly","foam","focus","fog","foil","fold","follow","food","foot","force","forest","forget","fork","fortune","forum","forward","fossil","foster","found","fox","fragile","frame","frequent","fresh","friend","fringe","frog","front","frost","frown","frozen","fruit","fuel","fun","funny","furnace","fury","future","gadget","gain","galaxy","gallery","game","gap","garage","garbage","garden","garlic","garment","gas","gasp","gate","gather","gauge","gaze","general","genius","genre","gentle","genuine","gesture","ghost","giant","gift","giggle","ginger","giraffe","girl","give","glad","glance","glare","glass","glide","glimpse","globe","gloom","glory","glove","glow","glue","goat","goddess","gold","good","goose","gorilla","gospel","gossip","govern","gown","grab","grace","grain","grant","grape","grass","gravity","great","green","grid","grief","grit","grocery","group","grow","grunt","guard","guess","guide","guilt","guitar","gun","gym","habit","hair","half","hammer","hamster","hand","happy","harbor","hard","harsh","harvest","hat","have","hawk","hazard","head","health","heart","heavy","hedgehog","height","hello","helmet","help","hen","hero","hidden","high","hill","hint","hip","hire","history","hobby","hockey","hold","hole","holiday","hollow","home","honey","hood","hope","horn","horror","horse","hospital","host","hotel","hour","hover","hub","huge","human","humble","humor","hundred","hungry","hunt","hurdle","hurry","hurt","husband","hybrid","ice","icon","idea","identify","idle","ignore","ill","illegal","illness","image","imitate","immense","immune","impact","impose","improve","impulse","inch","include","income","increase","index","indicate","indoor","industry","infant","inflict","inform","inhale","inherit","initial","inject","injury","inmate","inner","innocent","input","inquiry","insane","insect","inside","inspire","install","intact","interest","into","invest","invite","involve","iron","island","isolate","issue","item","ivory","jacket","jaguar","jar","jazz","jealous","jeans","jelly","jewel","job","join","joke","journey","joy","judge","juice","jump","jungle","junior","junk","just","kangaroo","keen","keep","ketchup","key","kick","kid","kidney","kind","kingdom","kiss","kit","kitchen","kite","kitten","kiwi","knee","knife","knock","know","lab","label","labor","ladder","lady","lake","lamp","language","laptop","large","later","latin","laugh","laundry","lava","law","lawn","lawsuit","layer","lazy","leader","leaf","learn","leave","lecture","left","leg","legal","legend","leisure","lemon","lend","length","lens","leopard","lesson","letter","level","liar","liberty","library","license","life","lift","light","like","limb","limit","link","lion","liquid","list","little","live","lizard","load","loan","lobster","local","lock","logic","lonely","long","loop","lottery","loud","lounge","love","loyal","lucky","luggage","lumber","lunar","lunch","luxury","lyrics","machine","mad","magic","magnet","maid","mail","main","major","make","mammal","man","manage","mandate","mango","mansion","manual","maple","marble","march","margin","marine","market","marriage","mask","mass","master","match","material","math","matrix","matter","maximum","maze","meadow","mean","measure","meat","mechanic","medal","media","melody","melt","member","memory","mention","menu","mercy","merge","merit","merry","mesh","message","metal","method","middle","midnight","milk","million","mimic","mind","minimum","minor","minute","miracle","mirror","misery","miss","mistake","mix","mixed","mixture","mobile","model","modify","mom","moment","monitor","monkey","monster","month","moon","moral","more","morning","mosquito","mother","motion","motor","mountain","mouse","move","movie","much","muffin","mule","multiply","muscle","museum","mushroom","music","must","mutual","myself","mystery","myth","naive","name","napkin","narrow","nasty","nation","nature","near","neck","need","negative","neglect","neither","nephew","nerve","nest","net","network","neutral","never","news","next","nice","night","noble","noise","nominee","noodle","normal","north","nose","notable","note","nothing","notice","novel","now","nuclear","number","nurse","nut","oak","obey","object","oblige","obscure","observe","obtain","obvious","occur","ocean","october","odor","off","offer","office","often","oil","okay","old","olive","olympic","omit","once","one","onion","online","only","open","opera","opinion","oppose","option","orange","orbit","orchard","order","ordinary","organ","orient","original","orphan","ostrich","other","outdoor","outer","output","outside","oval","oven","over","own","owner","oxygen","oyster","ozone","pact","paddle","page","pair","palace","palm","panda","panel","panic","panther","paper","parade","parent","park","parrot","party","pass","patch","path","patient","patrol","pattern","pause","pave","payment","peace","peanut","pear","peasant","pelican","pen","penalty","pencil","people","pepper","perfect","permit","person","pet","phone","photo","phrase","physical","piano","picnic","picture","piece","pig","pigeon","pill","pilot","pink","pioneer","pipe","pistol","pitch","pizza","place","planet","plastic","plate","play","please","pledge","pluck","plug","plunge","poem","poet","point","polar","pole","police","pond","pony","pool","popular","portion","position","possible","post","potato","pottery","poverty","powder","power","practice","praise","predict","prefer","prepare","present","pretty","prevent","price","pride","primary","print","priority","prison","private","prize","problem","process","produce","profit","program","project","promote","proof","property","prosper","protect","proud","provide","public","pudding","pull","pulp","pulse","pumpkin","punch","pupil","puppy","purchase","purity","purpose","purse","push","put","puzzle","pyramid","quality","quantum","quarter","question","quick","quit","quiz","quote","rabbit","raccoon","race","rack","radar","radio","rail","rain","raise","rally","ramp","ranch","random","range","rapid","rare","rate","rather","raven","raw","razor","ready","real","reason","rebel","rebuild","recall","receive","recipe","record","recycle","reduce","reflect","reform","refuse","region","regret","regular","reject","relax","release","relief","rely","remain","remember","remind","remove","render","renew","rent","reopen","repair","repeat","replace","report","require","rescue","resemble","resist","resource","response","result","retire","retreat","return","reunion","reveal","review","reward","rhythm","rib","ribbon","rice","rich","ride","ridge","rifle","right","rigid","ring","riot","ripple","risk","ritual","rival","river","road","roast","robot","robust","rocket","romance","roof","rookie","room","rose","rotate","rough","round","route","royal","rubber","rude","rug","rule","run","runway","rural","sad","saddle","sadness","safe","sail","salad","salmon","salon","salt","salute","same","sample","sand","satisfy","satoshi","sauce","sausage","save","say","scale","scan","scare","scatter","scene","scheme","school","science","scissors","scorpion","scout","scrap","screen","script","scrub","sea","search","season","seat","second","secret","section","security","seed","seek","segment","select","sell","seminar","senior","sense","sentence","series","service","session","settle","setup","seven","shadow","shaft","shallow","share","shed","shell","sheriff","shield","shift","shine","ship","shiver","shock","shoe","shoot","shop","short","shoulder","shove","shrimp","shrug","shuffle","shy","sibling","sick","side","siege","sight","sign","silent","silk","silly","silver","similar","simple","since","sing","siren","sister","situate","six","size","skate","sketch","ski","skill","skin","skirt","skull","slab","slam","sleep","slender","slice","slide","slight","slim","slogan","slot","slow","slush","small","smart","smile","smoke","smooth","snack","snake","snap","sniff","snow","soap","soccer","social","sock","soda","soft","solar","soldier","solid","solution","solve","someone","song","soon","sorry","sort","soul","sound","soup","source","south","space","spare","spatial","spawn","speak","special","speed","spell","spend","sphere","spice","spider","spike","spin","spirit","split","spoil","sponsor","spoon","sport","spot","spray","spread","spring","spy","square","squeeze","squirrel","stable","stadium","staff","stage","stairs","stamp","stand","start","state","stay","steak","steel","stem","step","stereo","stick","still","sting","stock","stomach","stone","stool","story","stove","strategy","street","strike","strong","struggle","student","stuff","stumble","style","subject","submit","subway","success","such","sudden","suffer","sugar","suggest","suit","summer","sun","sunny","sunset","super","supply","supreme","sure","surface","surge","surprise","surround","survey","suspect","sustain","swallow","swamp","swap","swarm","swear","sweet","swift","swim","swing","switch","sword","symbol","symptom","syrup","system","table","tackle","tag","tail","talent","talk","tank","tape","target","task","taste","tattoo","taxi","teach","team","tell","ten","tenant","tennis","tent","term","test","text","thank","that","theme","then","theory","there","they","thing","this","thought","three","thrive","throw","thumb","thunder","ticket","tide","tiger","tilt","timber","time","tiny","tip","tired","tissue","title","toast","tobacco","today","toddler","toe","together","toilet","token","tomato","tomorrow","tone","tongue","tonight","tool","tooth","top","topic","topple","torch","tornado","tortoise","toss","total","tourist","toward","tower","town","toy","track","trade","traffic","tragic","train","transfer","trap","trash","travel","tray","treat","tree","trend","trial","tribe","trick","trigger","trim","trip","trophy","trouble","truck","true","truly","trumpet","trust","truth","try","tube","tuition","tumble","tuna","tunnel","turkey","turn","turtle","twelve","twenty","twice","twin","twist","two","type","typical","ugly","umbrella","unable","unaware","uncle","uncover","under","undo","unfair","unfold","unhappy","uniform","unique","unit","universe","unknown","unlock","until","unusual","unveil","update","upgrade","uphold","upon","upper","upset","urban","urge","usage","use","used","useful","useless","usual","utility","vacant","vacuum","vague","valid","valley","valve","van","vanish","vapor","various","vast","vault","vehicle","velvet","vendor","venture","venue","verb","verify","version","very","vessel","veteran","viable","vibrant","vicious","victory","video","view","village","vintage","violin","virtual","virus","visa","visit","visual","vital","vivid","vocal","voice","void","volcano","volume","vote","voyage","wage","wagon","wait","walk","wall","walnut","want","warfare","warm","warrior","wash","wasp","waste","water","wave","way","wealth","weapon","wear","weasel","weather","web","wedding","weekend","weird","welcome","west","wet","whale","what","wheat","wheel","when","where","whip","whisper","wide","width","wife","wild","will","win","window","wine","wing","wink","winner","winter","wire","wisdom","wise","wish","witness","wolf","woman","wonder","wood","wool","word","work","world","worry","worth","wrap","wreck","wrestle","wrist","write","wrong","yard","year","yellow","you","young","youth","zebra","zero","zone","zoo"]},function(e,t,r){var n=r(333),i=r(334);e.exports={blake2b:n.blake2b,blake2bHex:n.blake2bHex,blake2bInit:n.blake2bInit,blake2bUpdate:n.blake2bUpdate,blake2bFinal:n.blake2bFinal,blake2s:i.blake2s,blake2sHex:i.blake2sHex,blake2sInit:i.blake2sInit,blake2sUpdate:i.blake2sUpdate,blake2sFinal:i.blake2sFinal}},function(e,t,r){var n=r(162);function i(e,t,r){var n=e[t]+e[r],i=e[t+1]+e[r+1];n>=4294967296&&i++,e[t]=n,e[t+1]=i}function o(e,t,r,n){var i=e[t]+r;r<0&&(i+=4294967296);var o=e[t+1]+n;i>=4294967296&&o++,e[t]=i,e[t+1]=o}function a(e,t){return e[t]^e[t+1]<<8^e[t+2]<<16^e[t+3]<<24}function s(e,t,r,n,a,s){var f=h[a],c=h[a+1],d=h[s],l=h[s+1];i(u,e,t),o(u,e,f,c);var p=u[n]^u[e],b=u[n+1]^u[e+1];u[n]=b,u[n+1]=p,i(u,r,n),p=u[t]^u[r],b=u[t+1]^u[r+1],u[t]=p>>>24^b<<8,u[t+1]=b>>>24^p<<8,i(u,e,t),o(u,e,d,l),p=u[n]^u[e],b=u[n+1]^u[e+1],u[n]=p>>>16^b<<16,u[n+1]=b>>>16^p<<16,i(u,r,n),p=u[t]^u[r],b=u[t+1]^u[r+1],u[t]=b>>>31^p<<1,u[t+1]=p>>>31^b<<1}var f=new Uint32Array([4089235720,1779033703,2227873595,3144134277,4271175723,1013904242,1595750129,2773480762,2917565137,1359893119,725511199,2600822924,4215389547,528734635,327033209,1541459225]),c=new Uint8Array([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3].map(function(e){return 2*e})),u=new Uint32Array(32),h=new Uint32Array(32);function d(e,t){var r=0;for(r=0;r<16;r++)u[r]=e.h[r],u[r+16]=f[r];for(u[24]=u[24]^e.t,u[25]=u[25]^e.t/4294967296,t&&(u[28]=~u[28],u[29]=~u[29]),r=0;r<32;r++)h[r]=a(e.b,4*r);for(r=0;r<12;r++)s(0,8,16,24,c[16*r+0],c[16*r+1]),s(2,10,18,26,c[16*r+2],c[16*r+3]),s(4,12,20,28,c[16*r+4],c[16*r+5]),s(6,14,22,30,c[16*r+6],c[16*r+7]),s(0,10,20,30,c[16*r+8],c[16*r+9]),s(2,12,22,24,c[16*r+10],c[16*r+11]),s(4,14,16,26,c[16*r+12],c[16*r+13]),s(6,8,18,28,c[16*r+14],c[16*r+15]);for(r=0;r<16;r++)e.h[r]=e.h[r]^u[r]^u[r+16]}function l(e,t){if(0===e||e>64)throw new Error("Illegal output length, expected 0 < length <= 64");if(t&&t.length>64)throw new Error("Illegal key, expected Uint8Array with 0 < length <= 64");for(var r={b:new Uint8Array(128),h:new Uint32Array(16),t:0,c:0,outlen:e},n=0;n<16;n++)r.h[n]=f[n];var i=t?t.length:0;return r.h[0]^=16842752^i<<8^e,t&&(p(r,t),r.c=128),r}function p(e,t){for(var r=0;r<t.length;r++)128===e.c&&(e.t+=e.c,d(e,!1),e.c=0),e.b[e.c++]=t[r]}function b(e){for(e.t+=e.c;e.c<128;)e.b[e.c++]=0;d(e,!0);for(var t=new Uint8Array(e.outlen),r=0;r<e.outlen;r++)t[r]=e.h[r>>2]>>8*(3&r);return t}function v(e,t,r){r=r||64,e=n.normalizeInput(e);var i=l(r,t);return p(i,e),b(i)}e.exports={blake2b:v,blake2bHex:function(e,t,r){var i=v(e,t,r);return n.toHex(i)},blake2bInit:l,blake2bUpdate:p,blake2bFinal:b}},function(e,t,r){var n=r(162);function i(e,t){return e[t]^e[t+1]<<8^e[t+2]<<16^e[t+3]<<24}function o(e,t,r,n,i,o){c[e]=c[e]+c[t]+i,c[n]=a(c[n]^c[e],16),c[r]=c[r]+c[n],c[t]=a(c[t]^c[r],12),c[e]=c[e]+c[t]+o,c[n]=a(c[n]^c[e],8),c[r]=c[r]+c[n],c[t]=a(c[t]^c[r],7)}function a(e,t){return e>>>t^e<<32-t}var s=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),f=new Uint8Array([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0]),c=new Uint32Array(16),u=new Uint32Array(16);function h(e,t){var r=0;for(r=0;r<8;r++)c[r]=e.h[r],c[r+8]=s[r];for(c[12]^=e.t,c[13]^=e.t/4294967296,t&&(c[14]=~c[14]),r=0;r<16;r++)u[r]=i(e.b,4*r);for(r=0;r<10;r++)o(0,4,8,12,u[f[16*r+0]],u[f[16*r+1]]),o(1,5,9,13,u[f[16*r+2]],u[f[16*r+3]]),o(2,6,10,14,u[f[16*r+4]],u[f[16*r+5]]),o(3,7,11,15,u[f[16*r+6]],u[f[16*r+7]]),o(0,5,10,15,u[f[16*r+8]],u[f[16*r+9]]),o(1,6,11,12,u[f[16*r+10]],u[f[16*r+11]]),o(2,7,8,13,u[f[16*r+12]],u[f[16*r+13]]),o(3,4,9,14,u[f[16*r+14]],u[f[16*r+15]]);for(r=0;r<8;r++)e.h[r]^=c[r]^c[r+8]}function d(e,t){if(!(e>0&&e<=32))throw new Error("Incorrect output length, should be in [1, 32]");var r=t?t.length:0;if(t&&!(r>0&&r<=32))throw new Error("Incorrect key length, should be in [1, 32]");var n={h:new Uint32Array(s),b:new Uint32Array(64),c:0,t:0,outlen:e};return n.h[0]^=16842752^r<<8^e,r>0&&(l(n,t),n.c=64),n}function l(e,t){for(var r=0;r<t.length;r++)64===e.c&&(e.t+=e.c,h(e,!1),e.c=0),e.b[e.c++]=t[r]}function p(e){for(e.t+=e.c;e.c<64;)e.b[e.c++]=0;h(e,!0);for(var t=new Uint8Array(e.outlen),r=0;r<e.outlen;r++)t[r]=e.h[r>>2]>>8*(3&r)&255;return t}function b(e,t,r){r=r||32,e=n.normalizeInput(e);var i=d(r,t);return l(i,e),p(i)}e.exports={blake2s:b,blake2sHex:function(e,t,r){var i=b(e,t,r);return n.toHex(i)},blake2sInit:d,blake2sUpdate:l,blake2sFinal:p}},function(e,t,r){"use strict";t.Commented=r(336),t.Diagnose=r(346),t.Decoder=r(87),t.Encoder=r(164),t.Simple=r(71),t.Tagged=r(105),t.Map=r(347),t.comment=t.Commented.comment,t.decodeAll=t.Decoder.decodeAll,t.decodeFirst=t.Decoder.decodeFirst,t.decodeAllSync=t.Decoder.decodeAllSync,t.decodeFirstSync=t.Decoder.decodeFirstSync,t.diagnose=t.Diagnose.diagnose,t.encode=t.Encoder.encode,t.encodeCanonical=t.Encoder.encodeCanonical,t.decode=t.Decoder.decodeFirstSync,t.leveldb={decode:t.Decoder.decodeAllSync,encode:t.Encoder.encode,buffer:!0,name:"cbor"}},function(e,t,r){"use strict";(function(Buffer){const t=r(33),n=r(50),i=(r(70),r(71),r(87)),o=r(51),a=r(57),s=r(72),f=o.MT,c=o.NUMBYTES,u=o.SYMS;function h(e){return e>1?"s":""}class d extends t.Transform{constructor(e){(e=e||{}).readableObjectMode=!1,e.writableObjectMode=!1;const t=null!=e.max_depth?e.max_depth:10;delete e.max_depth,super(e),this.depth=1,this.max_depth=t,this.all=new s,this.parser=new i(e),this.parser.on("value",this._on_value.bind(this)),this.parser.on("start",this._on_start.bind(this)),this.parser.on("start-string",this._on_start_string.bind(this)),this.parser.on("stop",this._on_stop.bind(this)),this.parser.on("more-bytes",this._on_more.bind(this)),this.parser.on("error",this._on_error.bind(this)),this.parser.on("data",this._on_data.bind(this)),this.parser.bs.on("read",this._on_read.bind(this))}_transform(e,t,r){this.parser.write(e,t,r)}_flush(e){return this.parser._flush(e)}static comment(e,t,r){if(null==e)throw new Error("input required");let n="string"==typeof e?"hex":void 0,i=10;switch(typeof t){case"function":r=t;break;case"string":n=t;break;case"number":i=t;break;case"object":const e=t.encoding,o=t.max_depth;n=null!=e?e:n,i=null!=o?o:i;break;case"undefined":break;default:throw new Error("Unknown option type")}const o=new s,a=new d({max_depth:i});let f=null;return"function"==typeof r?(a.on("end",()=>{r(null,o.toString("utf8"))}),a.on("error",r)):f=new Promise((e,t)=>(a.on("end",()=>{e(o.toString("utf8"))}),a.on("error",t))),a.pipe(o),a.end(e,n),f}_on_error(e){return this.push("ERROR: ")&&this.push(e.toString())&&this.push("\n")}_on_read(e){this.all.write(e);const t=e.toString("hex");this.push(new Array(this.depth+1).join(" ")),this.push(t);let r=2*(this.max_depth-this.depth);return(r-=t.length)<1&&(r=1),this.push(new Array(r+1).join(" ")),this.push("-- ")}_on_more(e,t,r,n){this.depth++;let i="";switch(e){case f.POS_INT:i="Positive number,";break;case f.NEG_INT:i="Negative number,";break;case f.ARRAY:i="Array, length";break;case f.MAP:i="Map, count";break;case f.BYTE_STRING:i="Bytes, length";break;case f.UTF8_STRING:i="String, length";break;case f.SIMPLE_FLOAT:i=1===t?"Simple value,":"Float,"}return this.push(i+" next "+t+" byte"+h(t)+"\n")}_on_start_string(e,t,r,n){this.depth++;let i="";switch(e){case f.BYTE_STRING:i="Bytes, length: "+t;break;case f.UTF8_STRING:i="String, length: "+t.toString()}return this.push(i+"\n")}_on_start(e,t,r,n){return this.depth++,t!==u.BREAK&&this.push((()=>{switch(r){case f.ARRAY:return"["+n+"], ";case f.MAP:return n%2?"{Val:"+Math.floor(n/2)+"}, ":"{Key:"+Math.floor(n/2)+"}, "}})()),this.push((()=>{switch(e){case f.TAG:return"Tag #"+t;case f.ARRAY:return t===u.STREAM?"Array (streaming)":"Array, "+t+" item"+h(t);case f.MAP:return t===u.STREAM?"Map (streaming)":"Map, "+t+" pair"+h(t);case f.BYTE_STRING:return"Bytes (streaming)";case f.UTF8_STRING:return"String (streaming)"}})()),this.push("\n")}_on_stop(e){return this.depth--}_on_value(e,t,r,i){switch(e!==u.BREAK&&this.push((()=>{switch(t){case f.ARRAY:return"["+r+"], ";case f.MAP:return r%2?"{Val:"+Math.floor(r/2)+"}, ":"{Key:"+Math.floor(r/2)+"}, "}})()),e===u.BREAK?this.push("BREAK\n"):e===u.NULL?this.push("null\n"):e===u.UNDEFINED?this.push("undefined\n"):"string"==typeof e?(this.depth--,e.length>0&&(this.push(JSON.stringify(e)),this.push("\n"))):Buffer.isBuffer(e)?(this.depth--,e.length>0&&(this.push(e.toString("hex")),this.push("\n"))):e instanceof a?(this.push(e.toString()),this.push("\n")):(this.push(n.inspect(e)),this.push("\n")),i){case c.ONE:case c.TWO:case c.FOUR:case c.EIGHT:this.depth--}}_on_data(){return this.push("0x"),this.push(this.all.read().toString("hex")),this.push("\n")}}e.exports=d}).call(t,r(3).Buffer)},function(e,t){e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}},,function(e,t,r){"use strict";t=e.exports=a;var n=r(33).Transform,i=r(50).inherits,o=r(72);function a(e){n.call(this,e),this._writableState.objectMode=!1,this._readableState.objectMode=!0,this.bs=new o,this.__restart()}t.One=-1,i(a,n),a.prototype._transform=function(e,t,r){for(this.bs.write(e);this.bs.length>=this.__needed;){var n,i=null===this.__needed?void 0:this.bs.read(this.__needed);try{n=this.__parser.next(i)}catch(e){return r(e)}this.__needed&&(this.__fresh=!1),n.done?(this.push(n.value),this.__restart()):this.__needed=0|n.value}return r()},a.prototype.__restart=function(){this.__needed=null,this.__parser=this._parse(),this.__fresh=!0},a.prototype._flush=function(e){e(this.__fresh?null:new Error("unexpected end of input"))}},function(e,t,r){(function(e,n){var i;!function(o){"object"==typeof t&&t&&t.nodeType,"object"==typeof e&&e&&e.nodeType;var a="object"==typeof n&&n;a.global!==a&&a.window!==a&&a.self;var s,f=2147483647,c=36,u=1,h=26,d=38,l=700,p=72,b=128,v="-",y=/^xn--/,m=/[^\x20-\x7E]/,g=/[\x2E\u3002\uFF0E\uFF61]/g,w={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},_=c-u,E=Math.floor,S=String.fromCharCode;function A(e){throw new RangeError(w[e])}function I(e,t){for(var r=e.length,n=[];r--;)n[r]=t(e[r]);return n}function k(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+I((e=e.replace(g,".")).split("."),t).join(".")}function x(e){for(var t,r,n=[],i=0,o=e.length;i<o;)(t=e.charCodeAt(i++))>=55296&&t<=56319&&i<o?56320==(64512&(r=e.charCodeAt(i++)))?n.push(((1023&t)<<10)+(1023&r)+65536):(n.push(t),i--):n.push(t);return n}function P(e){return I(e,function(e){var t="";return e>65535&&(t+=S((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=S(e)}).join("")}function O(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function T(e,t,r){var n=0;for(e=r?E(e/l):e>>1,e+=E(e/t);e>_*h>>1;n+=c)e=E(e/_);return E(n+(_+1)*e/(e+d))}function M(e){var t,r,n,i,o,a,s,d,l,y,m,g=[],w=e.length,_=0,S=b,I=p;for((r=e.lastIndexOf(v))<0&&(r=0),n=0;n<r;++n)e.charCodeAt(n)>=128&&A("not-basic"),g.push(e.charCodeAt(n));for(i=r>0?r+1:0;i<w;){for(o=_,a=1,s=c;i>=w&&A("invalid-input"),((d=(m=e.charCodeAt(i++))-48<10?m-22:m-65<26?m-65:m-97<26?m-97:c)>=c||d>E((f-_)/a))&&A("overflow"),_+=d*a,!(d<(l=s<=I?u:s>=I+h?h:s-I));s+=c)a>E(f/(y=c-l))&&A("overflow"),a*=y;I=T(_-o,t=g.length+1,0==o),E(_/t)>f-S&&A("overflow"),S+=E(_/t),_%=t,g.splice(_++,0,S)}return P(g)}function N(e){var t,r,n,i,o,a,s,d,l,y,m,g,w,_,I,k=[];for(g=(e=x(e)).length,t=b,r=0,o=p,a=0;a<g;++a)(m=e[a])<128&&k.push(S(m));for(n=i=k.length,i&&k.push(v);n<g;){for(s=f,a=0;a<g;++a)(m=e[a])>=t&&m<s&&(s=m);for(s-t>E((f-r)/(w=n+1))&&A("overflow"),r+=(s-t)*w,t=s,a=0;a<g;++a)if((m=e[a])<t&&++r>f&&A("overflow"),m==t){for(d=r,l=c;!(d<(y=l<=o?u:l>=o+h?h:l-o));l+=c)I=d-y,_=c-y,k.push(S(O(y+I%_,0))),d=E(I/_);k.push(S(O(d,0))),o=T(r,w,n==i),r=0,++n}++r,++t}return k.join("")}s={version:"1.4.1",ucs2:{decode:x,encode:P},decode:M,encode:N,toASCII:function(e){return k(e,function(e){return m.test(e)?"xn--"+N(e):e})},toUnicode:function(e){return k(e,function(e){return y.test(e)?M(e.slice(4).toLowerCase()):e})}},void 0===(i=function(){return s}.call(t,r,t,e))||(e.exports=i)}()}).call(t,r(148)(e),r(29))},function(e,t,r){"use strict";e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},function(e,t,r){"use strict";t.decode=t.parse=r(344),t.encode=t.stringify=r(345)},function(e,t,r){"use strict";function n(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,r,o){t=t||"&",r=r||"=";var a={};if("string"!=typeof e||0===e.length)return a;var s=/\+/g;e=e.split(t);var f=1e3;o&&"number"==typeof o.maxKeys&&(f=o.maxKeys);var c=e.length;f>0&&c>f&&(c=f);for(var u=0;u<c;++u){var h,d,l,p,b=e[u].replace(s,"%20"),v=b.indexOf(r);v>=0?(h=b.substr(0,v),d=b.substr(v+1)):(h=b,d=""),l=decodeURIComponent(h),p=decodeURIComponent(d),n(a,l)?i(a[l])?a[l].push(p):a[l]=[a[l],p]:a[l]=p}return a};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},function(e,t,r){"use strict";var n=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,t,r,s){return t=t||"&",r=r||"=",null===e&&(e=void 0),"object"==typeof e?o(a(e),function(a){var s=encodeURIComponent(n(a))+r;return i(e[a])?o(e[a],function(e){return s+encodeURIComponent(n(e))}).join(t):s+encodeURIComponent(n(e[a]))}).join(t):s?encodeURIComponent(n(s))+r+encodeURIComponent(n(e)):""};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function o(e,t){if(e.map)return e.map(t);for(var r=[],n=0;n<e.length;n++)r.push(t(e[n],n));return r}var a=Object.keys||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t}},function(e,t,r){"use strict";(function(Buffer){const t=r(33),n=r(50),i=r(87),o=(r(71),r(70)),a=r(51),s=r(57),f=r(72),c=a.MT,u=a.SYMS;class h extends t.Transform{constructor(e){const t=null!=(e=e||{}).separator?e.separator:"\n";delete e.separator;const r=null!=e.stream_errors&&e.stream_errors;delete e.stream_errors,e.readableObjectMode=!1,e.writableObjectMode=!1,super(e),this.float_bytes=-1,this.separator=t,this.stream_errors=r,this.parser=new i(e),this.parser.on("more-bytes",this._on_more.bind(this)),this.parser.on("value",this._on_value.bind(this)),this.parser.on("start",this._on_start.bind(this)),this.parser.on("stop",this._on_stop.bind(this)),this.parser.on("data",this._on_data.bind(this)),this.parser.on("error",this._on_error.bind(this))}_transform(e,t,r){return this.parser.write(e,t,r)}_flush(e){return this.parser._flush(t=>this.stream_errors?(this._on_error(t),e()):e(t))}static diagnose(e,t,r){if(null==e)throw new Error("input required");let n={},i="hex";switch(typeof t){case"function":r=t,i=o.guessEncoding(e);break;case"object":i=null!=(n=o.extend({},t)).encoding?n.encoding:o.guessEncoding(e),delete n.encoding;break;default:i=null!=t?t:"hex"}const a=new f,s=new h(n);let c=null;return"function"==typeof r?(s.on("end",()=>r(null,a.toString("utf8"))),s.on("error",r)):c=new Promise((e,t)=>(s.on("end",()=>e(a.toString("utf8"))),s.on("error",t))),s.pipe(a),s.end(e,i),c}_on_error(e){return this.stream_errors?this.push(e.toString()):this.emit("error",e)}_on_more(e,t,r,n){if(e===c.SIMPLE_FLOAT)return this.float_bytes=function(){switch(t){case 2:return 1;case 4:return 2;case 8:return 3}}()}_fore(e,t){switch(e){case c.BYTE_STRING:case c.UTF8_STRING:case c.ARRAY:if(t>0)return this.push(", ");break;case c.MAP:if(t>0)return t%2?this.push(": "):this.push(", ")}}_on_value(e,t,r){if(e!==u.BREAK)return this._fore(t,r),this.push(function(){switch(!1){case e!==u.NULL:return"null";case e!==u.UNDEFINED:return"undefined";case"string"!=typeof e:return JSON.stringify(e);case!(this.float_bytes>0):const t=this.float_bytes;return this.float_bytes=-1,n.inspect(e)+"_"+t;case!Buffer.isBuffer(e):return"h'"+e.toString("hex")+"'";case!(e instanceof s):return e.toString();default:return n.inspect(e)}}.call(this))}_on_start(e,t,r,n){if(this._fore(r,n),this.push(function(){switch(e){case c.TAG:return t+"(";case c.ARRAY:return"[";case c.MAP:return"{";case c.BYTE_STRING:case c.UTF8_STRING:return"(";default:throw new Error("Unknown diagnostic type: "+e)}}()),t===u.STREAM)return this.push("_ ")}_on_stop(e){return this.push(function(){switch(e){case c.TAG:return")";case c.ARRAY:return"]";case c.MAP:return"}";case c.BYTE_STRING:case c.UTF8_STRING:return")";default:throw new Error("Unknown diagnostic type: "+e)}}())}_on_data(){return this.push(this.separator)}}e.exports=h}).call(t,r(3).Buffer)},function(e,t,r){"use strict";(function(Buffer){const t=r(164),n=r(87),i=r(51).MT;class o extends Map{constructor(e){super(e)}static _encode(e){return t.encodeCanonical(e).toString("base64")}static _decode(e){return n.decodeFirstSync(e,"base64")}get(e){return super.get(o._encode(e))}set(e,t){return super.set(o._encode(e),t)}delete(e){return super.delete(o._encode(e))}has(e){return super.has(o._encode(e))}*keys(){for(const e of super.keys())yield o._decode(e)}*entries(){for(const e of super.entries())yield[o._decode(e[0]),e[1]]}[Symbol.iterator](){return this.entries()}forEach(e,t){if("function"!=typeof e)throw new TypeError("Must be function");for(const t of super.entries())e.call(this,t[1],o._decode(t[0]),this)}encodeCBOR(e){if(!e._pushInt(this.size,i.MAP))return!1;if(e.canonical){const t=Array.from(super.entries()).map(e=>[Buffer.from(e[0],"base64"),e[1]]);t.sort((e,t)=>e[0].compare(t[0]));for(const r of t)if(!e.push(r[0])||!e.pushAny(r[1]))return!1}else for(const t of super.entries())if(!e.push(Buffer.from(t[0],"base64"))||!e.pushAny(t[1]))return!1;return!0}}e.exports=o}).call(t,r(3).Buffer)},function(e,t){e.exports={_from:"elliptic-cardano",_id:"elliptic-cardano@6.4.0-b",_inBundle:!1,_integrity:"sha512-1wMjmOrZ29ZXbcvAKZl6kYBT6WfVK82jZgBZfTeC3esfCc/Fbn+L7wpdvkd2N5Pl83JLTQN7WFyeFc5Ux/J87Q==",_location:"/elliptic-cardano",_phantomChildren:{},_requested:{type:"tag",registry:!0,raw:"elliptic-cardano",name:"elliptic-cardano",escapedName:"elliptic-cardano",rawSpec:"",saveSpec:null,fetchSpec:"latest"},_requiredBy:["#USER","/"],_resolved:"https://registry.npmjs.org/elliptic-cardano/-/elliptic-cardano-6.4.0-b.tgz",_shasum:"a8404d611a149168d6bd94a1a69219b852abf5ef",_spec:"elliptic-cardano",_where:"/Users/enzo/Copy/projects/elevenyellow/coinfy",author:{name:"Fedor Indutny",email:"fedor@indutny.com"},bugs:{url:"https://github.com/indutny/elliptic/issues"},bundleDependencies:!1,dependencies:{"bn.js":"^4.4.0",brorand:"^1.0.1","hash.js":"^1.0.0","hmac-drbg":"^1.0.0",inherits:"^2.0.1","minimalistic-assert":"^1.0.0","minimalistic-crypto-utils":"^1.0.0"},deprecated:!1,description:"EC cryptography fork",devDependencies:{brfs:"^1.4.3",coveralls:"^2.11.3",grunt:"^0.4.5","grunt-browserify":"^5.0.0","grunt-cli":"^1.2.0","grunt-contrib-connect":"^1.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^1.0.1","grunt-mocha-istanbul":"^3.0.1","grunt-saucelabs":"^8.6.2",istanbul:"^0.4.2",jscs:"^2.9.0",jshint:"^2.6.0",mocha:"^2.1.0"},files:["lib"],homepage:"https://github.com/vacuumlabs/elliptic",keywords:["EC","Elliptic","curve","Cryptography"],license:"MIT",main:"lib/elliptic.js",name:"elliptic-cardano",repository:{type:"git",url:"git+ssh://git@github.com/vacuumlabs/elliptic.git"},scripts:{jscs:"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js",jshint:"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js",lint:"npm run jscs && npm run jshint",test:"npm run lint && npm run unit",unit:"istanbul test _mocha --reporter=spec test/index.js",version:"grunt dist && git add dist/"},version:"6.4.0-b"}},function(e,t,r){"use strict";var n=t,i=r(9),o=r(30),a=r(104);n.assert=o,n.toArray=a.toArray,n.zero2=a.zero2,n.toHex=a.toHex,n.encode=a.encode,n.getNAF=function(e,t){for(var r=[],n=1<<t+1,i=e.clone();i.cmpn(1)>=0;){var o;if(i.isOdd()){var a=i.andln(n-1);o=a>(n>>1)-1?(n>>1)-a:a,i.isubn(o)}else o=0;r.push(o);for(var s=0!==i.cmpn(0)&&0===i.andln(n-1)?t+1:1,f=1;f<s;f++)r.push(0);i.iushrn(s)}return r},n.getJSF=function(e,t){var r=[[],[]];e=e.clone(),t=t.clone();for(var n=0,i=0;e.cmpn(-n)>0||t.cmpn(-i)>0;){var o,a,s,f=e.andln(3)+n&3,c=t.andln(3)+i&3;3===f&&(f=-1),3===c&&(c=-1),o=0==(1&f)?0:3!=(s=e.andln(7)+n&7)&&5!==s||2!==c?f:-f,r[0].push(o),a=0==(1&c)?0:3!=(s=t.andln(7)+i&7)&&5!==s||2!==f?c:-c,r[1].push(a),2*n===o+1&&(n=1-n),2*i===a+1&&(i=1-i),e.iushrn(1),t.iushrn(1)}return r},n.cachedProperty=function(e,t,r){var n="_"+t;e.prototype[t]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},n.parseBytes=function(e){return"string"==typeof e?n.toArray(e,"hex"):e},n.intFromLE=function(e){return new i(e,"hex","le")}},function(e,t,r){"use strict";var n=r(9),i=r(25).utils,o=i.getNAF,a=i.getJSF,s=i.assert;function f(e,t){this.type=e,this.p=new n(t.p,16),this.red=t.prime?n.red(t.prime):n.mont(this.p),this.zero=new n(0).toRed(this.red),this.one=new n(1).toRed(this.red),this.two=new n(2).toRed(this.red),this.n=t.n&&new n(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4);var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function c(e,t){this.curve=e,this.type=t,this.precomputed=null}e.exports=f,f.prototype.point=function(){throw new Error("Not implemented")},f.prototype.validate=function(){throw new Error("Not implemented")},f.prototype._fixedNafMul=function(e,t){s(e.precomputed);var r=e._getDoubles(),n=o(t,1),i=(1<<r.step+1)-(r.step%2==0?2:1);i/=3;for(var a=[],f=0;f<n.length;f+=r.step){var c=0;for(t=f+r.step-1;t>=f;t--)c=(c<<1)+n[t];a.push(c)}for(var u=this.jpoint(null,null,null),h=this.jpoint(null,null,null),d=i;d>0;d--){for(f=0;f<a.length;f++){(c=a[f])===d?h=h.mixedAdd(r.points[f]):c===-d&&(h=h.mixedAdd(r.points[f].neg()))}u=u.add(h)}return u.toP()},f.prototype._wnafMul=function(e,t){var r=4,n=e._getNAFPoints(r);r=n.wnd;for(var i=n.points,a=o(t,r),f=this.jpoint(null,null,null),c=a.length-1;c>=0;c--){for(t=0;c>=0&&0===a[c];c--)t++;if(c>=0&&t++,f=f.dblp(t),c<0)break;var u=a[c];s(0!==u),f="affine"===e.type?u>0?f.mixedAdd(i[u-1>>1]):f.mixedAdd(i[-u-1>>1].neg()):u>0?f.add(i[u-1>>1]):f.add(i[-u-1>>1].neg())}return"affine"===e.type?f.toP():f},f.prototype._wnafMulAdd=function(e,t,r,n,i){for(var s=this._wnafT1,f=this._wnafT2,c=this._wnafT3,u=0,h=0;h<n;h++){var d=(I=t[h])._getNAFPoints(e);s[h]=d.wnd,f[h]=d.points}for(h=n-1;h>=1;h-=2){var l=h-1,p=h;if(1===s[l]&&1===s[p]){var b=[t[l],null,null,t[p]];0===t[l].y.cmp(t[p].y)?(b[1]=t[l].add(t[p]),b[2]=t[l].toJ().mixedAdd(t[p].neg())):0===t[l].y.cmp(t[p].y.redNeg())?(b[1]=t[l].toJ().mixedAdd(t[p]),b[2]=t[l].add(t[p].neg())):(b[1]=t[l].toJ().mixedAdd(t[p]),b[2]=t[l].toJ().mixedAdd(t[p].neg()));var v=[-3,-1,-5,-7,0,7,5,1,3],y=a(r[l],r[p]);u=Math.max(y[0].length,u),c[l]=new Array(u),c[p]=new Array(u);for(var m=0;m<u;m++){var g=0|y[0][m],w=0|y[1][m];c[l][m]=v[3*(g+1)+(w+1)],c[p][m]=0,f[l]=b}}else c[l]=o(r[l],s[l]),c[p]=o(r[p],s[p]),u=Math.max(c[l].length,u),u=Math.max(c[p].length,u)}var _=this.jpoint(null,null,null),E=this._wnafT4;for(h=u;h>=0;h--){for(var S=0;h>=0;){var A=!0;for(m=0;m<n;m++)E[m]=0|c[m][h],0!==E[m]&&(A=!1);if(!A)break;S++,h--}if(h>=0&&S++,_=_.dblp(S),h<0)break;for(m=0;m<n;m++){var I,k=E[m];0!==k&&(k>0?I=f[m][k-1>>1]:k<0&&(I=f[m][-k-1>>1].neg()),_="affine"===I.type?_.mixedAdd(I):_.add(I))}}for(h=0;h<n;h++)f[h]=null;return i?_:_.toP()},f.BasePoint=c,c.prototype.eq=function(){throw new Error("Not implemented")},c.prototype.validate=function(){return this.curve.validate(this)},f.prototype.decodePoint=function(e,t){e=i.toArray(e,t);var r=this.p.byteLength();if((4===e[0]||6===e[0]||7===e[0])&&e.length-1==2*r)return 6===e[0]?s(e[e.length-1]%2==0):7===e[0]&&s(e[e.length-1]%2==1),this.point(e.slice(1,1+r),e.slice(1+r,1+2*r));if((2===e[0]||3===e[0])&&e.length-1===r)return this.pointFromX(e.slice(1,1+r),3===e[0]);throw new Error("Unknown point format")},c.prototype.encodeCompressed=function(e){return this.encode(e,!0)},c.prototype._encode=function(e){var t=this.curve.p.byteLength(),r=this.getX().toArray("be",t);return e?[this.getY().isEven()?2:3].concat(r):[4].concat(r,this.getY().toArray("be",t))},c.prototype.encode=function(e,t){return i.encode(this._encode(t),e)},c.prototype.precompute=function(e){if(this.precomputed)return this;var t={doubles:null,naf:null,beta:null};return t.naf=this._getNAFPoints(8),t.doubles=this._getDoubles(4,e),t.beta=this._getBeta(),this.precomputed=t,this},c.prototype._hasDoubles=function(e){if(!this.precomputed)return!1;var t=this.precomputed.doubles;return!!t&&t.points.length>=Math.ceil((e.bitLength()+1)/t.step)},c.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;i<t;i+=e){for(var o=0;o<e;o++)n=n.dbl();r.push(n)}return{step:e,points:r}},c.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var t=[this],r=(1<<e)-1,n=1===r?null:this.dbl(),i=1;i<r;i++)t[i]=t[i-1].add(n);return{wnd:e,points:t}},c.prototype._getBeta=function(){return null},c.prototype.dblp=function(e){for(var t=this,r=0;r<e;r++)t=t.dbl();return t}},function(e,t,r){"use strict";var n=r(88),i=r(25),o=r(9),a=r(5),s=n.base,f=i.utils.assert;function c(e){s.call(this,"short",e),this.a=new o(e.a,16).toRed(this.red),this.b=new o(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(e),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function Point(e,t,r,n){s.BasePoint.call(this,e,"affine"),null===t&&null===r?(this.x=null,this.y=null,this.inf=!0):(this.x=new o(t,16),this.y=new o(r,16),n&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function u(e,t,r,n){s.BasePoint.call(this,e,"jacobian"),null===t&&null===r&&null===n?(this.x=this.curve.one,this.y=this.curve.one,this.z=new o(0)):(this.x=new o(t,16),this.y=new o(r,16),this.z=new o(n,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}a(c,s),e.exports=c,c.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var t,r;if(e.beta)t=new o(e.beta,16).toRed(this.red);else{var n=this._getEndoRoots(this.p);t=(t=n[0].cmp(n[1])<0?n[0]:n[1]).toRed(this.red)}if(e.lambda)r=new o(e.lambda,16);else{var i=this._getEndoRoots(this.n);0===this.g.mul(i[0]).x.cmp(this.g.x.redMul(t))?r=i[0]:(r=i[1],f(0===this.g.mul(r).x.cmp(this.g.x.redMul(t))))}return{beta:t,lambda:r,basis:e.basis?e.basis.map(function(e){return{a:new o(e.a,16),b:new o(e.b,16)}}):this._getEndoBasis(r)}}},c.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:o.mont(e),r=new o(2).toRed(t).redInvm(),n=r.redNeg(),i=new o(3).toRed(t).redNeg().redSqrt().redMul(r);return[n.redAdd(i).fromRed(),n.redSub(i).fromRed()]},c.prototype._getEndoBasis=function(e){for(var t,r,n,i,a,s,f,c,u,h=this.n.ushrn(Math.floor(this.n.bitLength()/2)),d=e,l=this.n.clone(),p=new o(1),b=new o(0),v=new o(0),y=new o(1),m=0;0!==d.cmpn(0);){var g=l.div(d);c=l.sub(g.mul(d)),u=v.sub(g.mul(p));var w=y.sub(g.mul(b));if(!n&&c.cmp(h)<0)t=f.neg(),r=p,n=c.neg(),i=u;else if(n&&2==++m)break;f=c,l=d,d=c,v=p,p=u,y=b,b=w}a=c.neg(),s=u;var _=n.sqr().add(i.sqr());return a.sqr().add(s.sqr()).cmp(_)>=0&&(a=t,s=r),n.negative&&(n=n.neg(),i=i.neg()),a.negative&&(a=a.neg(),s=s.neg()),[{a:n,b:i},{a:a,b:s}]},c.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],n=t[1],i=n.b.mul(e).divRound(this.n),o=r.b.neg().mul(e).divRound(this.n),a=i.mul(r.a),s=o.mul(n.a),f=i.mul(r.b),c=o.mul(n.b);return{k1:e.sub(a).sub(s),k2:f.add(c).neg()}},c.prototype.pointFromX=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");var i=n.fromRed().isOdd();return(t&&!i||!t&&i)&&(n=n.redNeg()),this.point(e,n)},c.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,n=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(i).cmpn(0)},c.prototype._endoWnafMulAdd=function(e,t,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,o=0;o<e.length;o++){var a=this._endoSplit(t[o]),s=e[o],f=s._getBeta();a.k1.negative&&(a.k1.ineg(),s=s.neg(!0)),a.k2.negative&&(a.k2.ineg(),f=f.neg(!0)),n[2*o]=s,n[2*o+1]=f,i[2*o]=a.k1,i[2*o+1]=a.k2}for(var c=this._wnafMulAdd(1,n,i,2*o,r),u=0;u<2*o;u++)n[u]=null,i[u]=null;return c},a(Point,s.BasePoint),c.prototype.point=function(e,t,r){return new Point(this,e,t,r)},c.prototype.pointFromJSON=function(e,t){return Point.fromJSON(this,e,t)},Point.prototype._getBeta=function(){if(this.curve.endo){var e=this.precomputed;if(e&&e.beta)return e.beta;var t=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(e){var r=this.curve,n=function(e){return r.point(e.x.redMul(r.endo.beta),e.y)};e.beta=t,t.precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(n)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(n)}}}return t}},Point.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},Point.fromJSON=function(e,t,r){"string"==typeof t&&(t=JSON.parse(t));var n=e.point(t[0],t[1],r);if(!t[2])return n;function i(t){return e.point(t[0],t[1],r)}var o=t[2];return n.precomputed={beta:null,doubles:o.doubles&&{step:o.doubles.step,points:[n].concat(o.doubles.points.map(i))},naf:o.naf&&{wnd:o.naf.wnd,points:[n].concat(o.naf.points.map(i))}},n},Point.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},Point.prototype.isInfinity=function(){return this.inf},Point.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var r=t.redSqr().redISub(this.x).redISub(e.x),n=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},Point.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,r=this.x.redSqr(),n=e.redInvm(),i=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(n),o=i.redSqr().redISub(this.x.redAdd(this.x)),a=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)},Point.prototype.getX=function(){return this.x.fromRed()},Point.prototype.getY=function(){return this.y.fromRed()},Point.prototype.mul=function(e){return e=new o(e,16),this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},Point.prototype.mulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i):this.curve._wnafMulAdd(1,n,i,2)},Point.prototype.jmulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i,!0):this.curve._wnafMulAdd(1,n,i,2,!0)},Point.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},Point.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var r=this.precomputed,n=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return t},Point.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},a(u,s.BasePoint),c.prototype.jpoint=function(e,t,r){return new u(this,e,t,r)},u.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),n=this.y.redMul(t).redMul(e);return this.curve.point(r,n)},u.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},u.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(t),i=e.x.redMul(r),o=this.y.redMul(t.redMul(e.z)),a=e.y.redMul(r.redMul(this.z)),s=n.redSub(i),f=o.redSub(a);if(0===s.cmpn(0))return 0!==f.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=s.redSqr(),u=c.redMul(s),h=n.redMul(c),d=f.redSqr().redIAdd(u).redISub(h).redISub(h),l=f.redMul(h.redISub(d)).redISub(o.redMul(u)),p=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(d,l,p)},u.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,n=e.x.redMul(t),i=this.y,o=e.y.redMul(t).redMul(this.z),a=r.redSub(n),s=i.redSub(o);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var f=a.redSqr(),c=f.redMul(a),u=r.redMul(f),h=s.redSqr().redIAdd(c).redISub(u).redISub(u),d=s.redMul(u.redISub(h)).redISub(i.redMul(c)),l=this.z.redMul(a);return this.curve.jpoint(h,d,l)},u.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var t=this,r=0;r<e;r++)t=t.dbl();return t}var n=this.curve.a,i=this.curve.tinv,o=this.x,a=this.y,s=this.z,f=s.redSqr().redSqr(),c=a.redAdd(a);for(r=0;r<e;r++){var u=o.redSqr(),h=c.redSqr(),d=h.redSqr(),l=u.redAdd(u).redIAdd(u).redIAdd(n.redMul(f)),p=o.redMul(h),b=l.redSqr().redISub(p.redAdd(p)),v=p.redISub(b),y=l.redMul(v);y=y.redIAdd(y).redISub(d);var m=c.redMul(s);r+1<e&&(f=f.redMul(d)),o=b,s=m,c=y}return this.curve.jpoint(o,c.redMul(i),s)},u.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},u.prototype._zeroDbl=function(){var e,t,r;if(this.zOne){var n=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(n).redISub(o);a=a.redIAdd(a);var s=n.redAdd(n).redIAdd(n),f=s.redSqr().redISub(a).redISub(a),c=o.redIAdd(o);c=(c=c.redIAdd(c)).redIAdd(c),e=f,t=s.redMul(a.redISub(f)).redISub(c),r=this.y.redAdd(this.y)}else{var u=this.x.redSqr(),h=this.y.redSqr(),d=h.redSqr(),l=this.x.redAdd(h).redSqr().redISub(u).redISub(d);l=l.redIAdd(l);var p=u.redAdd(u).redIAdd(u),b=p.redSqr(),v=d.redIAdd(d);v=(v=v.redIAdd(v)).redIAdd(v),e=b.redISub(l).redISub(l),t=p.redMul(l.redISub(e)).redISub(v),r=(r=this.y.redMul(this.z)).redIAdd(r)}return this.curve.jpoint(e,t,r)},u.prototype._threeDbl=function(){var e,t,r;if(this.zOne){var n=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(n).redISub(o);a=a.redIAdd(a);var s=n.redAdd(n).redIAdd(n).redIAdd(this.curve.a),f=s.redSqr().redISub(a).redISub(a);e=f;var c=o.redIAdd(o);c=(c=c.redIAdd(c)).redIAdd(c),t=s.redMul(a.redISub(f)).redISub(c),r=this.y.redAdd(this.y)}else{var u=this.z.redSqr(),h=this.y.redSqr(),d=this.x.redMul(h),l=this.x.redSub(u).redMul(this.x.redAdd(u));l=l.redAdd(l).redIAdd(l);var p=d.redIAdd(d),b=(p=p.redIAdd(p)).redAdd(p);e=l.redSqr().redISub(b),r=this.y.redAdd(this.z).redSqr().redISub(h).redISub(u);var v=h.redSqr();v=(v=(v=v.redIAdd(v)).redIAdd(v)).redIAdd(v),t=l.redMul(p.redISub(e)).redISub(v)}return this.curve.jpoint(e,t,r)},u.prototype._dbl=function(){var e=this.curve.a,t=this.x,r=this.y,n=this.z,i=n.redSqr().redSqr(),o=t.redSqr(),a=r.redSqr(),s=o.redAdd(o).redIAdd(o).redIAdd(e.redMul(i)),f=t.redAdd(t),c=(f=f.redIAdd(f)).redMul(a),u=s.redSqr().redISub(c.redAdd(c)),h=c.redISub(u),d=a.redSqr();d=(d=(d=d.redIAdd(d)).redIAdd(d)).redIAdd(d);var l=s.redMul(h).redISub(d),p=r.redAdd(r).redMul(n);return this.curve.jpoint(u,l,p)},u.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr(),n=t.redSqr(),i=e.redAdd(e).redIAdd(e),o=i.redSqr(),a=this.x.redAdd(t).redSqr().redISub(e).redISub(n),s=(a=(a=(a=a.redIAdd(a)).redAdd(a).redIAdd(a)).redISub(o)).redSqr(),f=n.redIAdd(n);f=(f=(f=f.redIAdd(f)).redIAdd(f)).redIAdd(f);var c=i.redIAdd(a).redSqr().redISub(o).redISub(s).redISub(f),u=t.redMul(c);u=(u=u.redIAdd(u)).redIAdd(u);var h=this.x.redMul(s).redISub(u);h=(h=h.redIAdd(h)).redIAdd(h);var d=this.y.redMul(c.redMul(f.redISub(c)).redISub(a.redMul(s)));d=(d=(d=d.redIAdd(d)).redIAdd(d)).redIAdd(d);var l=this.z.redAdd(a).redSqr().redISub(r).redISub(s);return this.curve.jpoint(h,d,l)},u.prototype.mul=function(e,t){return e=new o(e,t),this.curve._wnafMul(this,e)},u.prototype.eq=function(e){if("affine"===e.type)return this.eq(e.toJ());if(this===e)return!0;var t=this.z.redSqr(),r=e.z.redSqr();if(0!==this.x.redMul(r).redISub(e.x.redMul(t)).cmpn(0))return!1;var n=t.redMul(this.z),i=r.redMul(e.z);return 0===this.y.redMul(i).redISub(e.y.redMul(n)).cmpn(0)},u.prototype.eqXToP=function(e){var t=this.z.redSqr(),r=e.toRed(this.curve.red).redMul(t);if(0===this.x.cmp(r))return!0;for(var n=e.clone(),i=this.curve.redN.redMul(t);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(r.redIAdd(i),0===this.x.cmp(r))return!0}},u.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},u.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},function(e,t,r){"use strict";var n=r(88),i=r(9),o=r(5),a=n.base,s=r(25).utils;function f(e){a.call(this,"mont",e),this.a=new i(e.a,16).toRed(this.red),this.b=new i(e.b,16).toRed(this.red),this.i4=new i(4).toRed(this.red).redInvm(),this.two=new i(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function Point(e,t,r){a.BasePoint.call(this,e,"projective"),null===t&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new i(t,16),this.z=new i(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}o(f,a),e.exports=f,f.prototype.validate=function(e){var t=e.normalize().x,r=t.redSqr(),n=r.redMul(t).redAdd(r.redMul(this.a)).redAdd(t);return 0===n.redSqrt().redSqr().cmp(n)},o(Point,a.BasePoint),f.prototype.decodePoint=function(e,t){return this.point(s.toArray(e,t),1)},f.prototype.point=function(e,t){return new Point(this,e,t)},f.prototype.pointFromJSON=function(e){return Point.fromJSON(this,e)},Point.prototype.precompute=function(){},Point.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},Point.fromJSON=function(e,t){return new Point(e,t[0],t[1]||e.one)},Point.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},Point.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},Point.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),r=e.redSub(t),n=e.redMul(t),i=r.redMul(t.redAdd(this.curve.a24.redMul(r)));return this.curve.point(n,i)},Point.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},Point.prototype.diffAdd=function(e,t){var r=this.x.redAdd(this.z),n=this.x.redSub(this.z),i=e.x.redAdd(e.z),o=e.x.redSub(e.z).redMul(r),a=i.redMul(n),s=t.z.redMul(o.redAdd(a).redSqr()),f=t.x.redMul(o.redISub(a).redSqr());return this.curve.point(s,f)},Point.prototype.mul=function(e){for(var t=e.clone(),r=this,n=this.curve.point(null,null),i=[];0!==t.cmpn(0);t.iushrn(1))i.push(t.andln(1));for(var o=i.length-1;o>=0;o--)0===i[o]?(r=r.diffAdd(n,this),n=n.dbl()):(n=r.diffAdd(n,this),r=r.dbl());return n},Point.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},Point.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},Point.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},Point.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},Point.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},function(e,t,r){"use strict";var n=r(88),i=r(25),o=r(9),a=r(5),s=n.base,f=i.utils.assert;function c(e){this.twisted=1!=(0|e.a),this.mOneA=this.twisted&&-1==(0|e.a),this.extended=this.mOneA,s.call(this,"edwards",e),this.a=new o(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new o(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new o(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),f(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|e.c)}function Point(e,t,r,n,i){s.BasePoint.call(this,e,"projective"),null===t&&null===r&&null===n?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new o(t,16),this.y=new o(r,16),this.z=n?new o(n,16):this.curve.one,this.t=i&&new o(i,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}a(c,s),e.exports=c,c.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},c.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},c.prototype.jpoint=function(e,t,r,n){return this.point(e,t,r,n)},c.prototype.pointFromX=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=this.c2.redSub(this.a.redMul(r)),i=this.one.redSub(this.c2.redMul(this.d).redMul(r)),a=n.redMul(i.redInvm()),s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");var f=s.fromRed().isOdd();return(t&&!f||!t&&f)&&(s=s.redNeg()),this.point(e,s)},c.prototype.pointFromY=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=r.redSub(this.c2),i=r.redMul(this.d).redMul(this.c2).redSub(this.a),a=n.redMul(i.redInvm());if(0===a.cmp(this.zero)){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");return s.fromRed().isOdd()!==t&&(s=s.redNeg()),this.point(s,e)},c.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),r=e.y.redSqr(),n=t.redMul(this.a).redAdd(r),i=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(r)));return 0===n.cmp(i)},a(Point,s.BasePoint),c.prototype.pointFromJSON=function(e){return Point.fromJSON(this,e)},c.prototype.point=function(e,t,r,n){return new Point(this,e,t,r,n)},Point.fromJSON=function(e,t){return new Point(e,t[0],t[1],t[2])},Point.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},Point.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},Point.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var n=this.curve._mulA(e),i=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),o=n.redAdd(t),a=o.redSub(r),s=n.redSub(t),f=i.redMul(a),c=o.redMul(s),u=i.redMul(s),h=a.redMul(o);return this.curve.point(f,c,h,u)},Point.prototype._projDbl=function(){var e,t,r,n=this.x.redAdd(this.y).redSqr(),i=this.x.redSqr(),o=this.y.redSqr();if(this.curve.twisted){var a=(c=this.curve._mulA(i)).redAdd(o);if(this.zOne)e=n.redSub(i).redSub(o).redMul(a.redSub(this.curve.two)),t=a.redMul(c.redSub(o)),r=a.redSqr().redSub(a).redSub(a);else{var s=this.z.redSqr(),f=a.redSub(s).redISub(s);e=n.redSub(i).redISub(o).redMul(f),t=a.redMul(c.redSub(o)),r=a.redMul(f)}}else{var c=i.redAdd(o);s=this.curve._mulC(this.z).redSqr(),f=c.redSub(s).redSub(s);e=this.curve._mulC(n.redISub(c)).redMul(f),t=this.curve._mulC(c).redMul(i.redISub(o)),r=c.redMul(f)}return this.curve.point(e,t,r)},Point.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},Point.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),r=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),n=this.t.redMul(this.curve.dd).redMul(e.t),i=this.z.redMul(e.z.redAdd(e.z)),o=r.redSub(t),a=i.redSub(n),s=i.redAdd(n),f=r.redAdd(t),c=o.redMul(a),u=s.redMul(f),h=o.redMul(f),d=a.redMul(s);return this.curve.point(c,u,d,h)},Point.prototype._projAdd=function(e){var t,r,n=this.z.redMul(e.z),i=n.redSqr(),o=this.x.redMul(e.x),a=this.y.redMul(e.y),s=this.curve.d.redMul(o).redMul(a),f=i.redSub(s),c=i.redAdd(s),u=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(o).redISub(a),h=n.redMul(f).redMul(u);return this.curve.twisted?(t=n.redMul(c).redMul(a.redSub(this.curve._mulA(o))),r=f.redMul(c)):(t=n.redMul(c).redMul(a.redSub(o)),r=this.curve._mulC(f).redMul(c)),this.curve.point(h,t,r)},Point.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},Point.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},Point.prototype.mulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!1)},Point.prototype.jmulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!0)},Point.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this},Point.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},Point.prototype.getX=function(){return this.normalize(),this.x.fromRed()},Point.prototype.getY=function(){return this.normalize(),this.y.fromRed()},Point.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},Point.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var r=e.clone(),n=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(n),0===this.x.cmp(t))return!0}},Point.prototype.toP=Point.prototype.normalize,Point.prototype.mixedAdd=Point.prototype.add},function(e,t,r){"use strict";var n,i=t,o=r(56),a=r(25),s=a.utils.assert;function f(e){"short"===e.type?this.curve=new a.curve.short(e):"edwards"===e.type?this.curve=new a.curve.edwards(e):this.curve=new a.curve.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,s(this.g.validate(),"Invalid curve"),s(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function c(e,t){Object.defineProperty(i,e,{configurable:!0,enumerable:!0,get:function(){var r=new f(t);return Object.defineProperty(i,e,{configurable:!0,enumerable:!0,value:r}),r}})}i.PresetCurve=f,c("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:o.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),c("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:o.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),c("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:o.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),c("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:o.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),c("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:o.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),c("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["9"]}),c("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{n=r(355)}catch(e){n=void 0}c("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:o.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",n]})},function(e,t){e.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},function(e,t,r){"use strict";var n=r(9),i=r(153),o=r(25),a=o.utils.assert,s=r(357),f=r(358);function c(e){if(!(this instanceof c))return new c(e);"string"==typeof e&&(a(o.curves.hasOwnProperty(e),"Unknown curve "+e),e=o.curves[e]),e instanceof o.curves.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}e.exports=c,c.prototype.keyPair=function(e){return new s(this,e)},c.prototype.keyFromPrivate=function(e,t){return s.fromPrivate(this,e,t)},c.prototype.keyFromPublic=function(e,t){return s.fromPublic(this,e,t)},c.prototype.genKeyPair=function(e){e||(e={});for(var t=new i({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||o.rand(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),a=this.n.sub(new n(2));;){var s=new n(t.generate(r));if(!(s.cmp(a)>0))return s.iaddn(1),this.keyFromPrivate(s)}},c.prototype._truncateToN=function(e,t){var r=8*e.byteLength()-this.n.bitLength();return r>0&&(e=e.ushrn(r)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},c.prototype.sign=function(e,t,r,o){"object"==typeof r&&(o=r,r=null),o||(o={}),t=this.keyFromPrivate(t,r),e=this._truncateToN(new n(e,16));for(var a=this.n.byteLength(),s=t.getPrivate().toArray("be",a),c=e.toArray("be",a),u=new i({hash:this.hash,entropy:s,nonce:c,pers:o.pers,persEnc:o.persEnc||"utf8"}),h=this.n.sub(new n(1)),d=0;;d++){var l=o.k?o.k(d):new n(u.generate(this.n.byteLength()));if(!((l=this._truncateToN(l,!0)).cmpn(1)<=0||l.cmp(h)>=0)){var p=this.g.mul(l);if(!p.isInfinity()){var b=p.getX(),v=b.umod(this.n);if(0!==v.cmpn(0)){var y=l.invm(this.n).mul(v.mul(t.getPrivate()).iadd(e));if(0!==(y=y.umod(this.n)).cmpn(0)){var m=(p.getY().isOdd()?1:0)|(0!==b.cmp(v)?2:0);return o.canonical&&y.cmp(this.nh)>0&&(y=this.n.sub(y),m^=1),new f({r:v,s:y,recoveryParam:m})}}}}}},c.prototype.verify=function(e,t,r,i){e=this._truncateToN(new n(e,16)),r=this.keyFromPublic(r,i);var o=(t=new f(t,"hex")).r,a=t.s;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;var s,c=a.invm(this.n),u=c.mul(e).umod(this.n),h=c.mul(o).umod(this.n);return this.curve._maxwellTrick?!(s=this.g.jmulAdd(u,r.getPublic(),h)).isInfinity()&&s.eqXToP(o):!(s=this.g.mulAdd(u,r.getPublic(),h)).isInfinity()&&0===s.getX().umod(this.n).cmp(o)},c.prototype.recoverPubKey=function(e,t,r,i){a((3&r)===r,"The recovery param is more than two bits"),t=new f(t,i);var o=this.n,s=new n(e),c=t.r,u=t.s,h=1&r,d=r>>1;if(c.cmp(this.curve.p.umod(this.curve.n))>=0&&d)throw new Error("Unable to find sencond key candinate");c=d?this.curve.pointFromX(c.add(this.curve.n),h):this.curve.pointFromX(c,h);var l=t.r.invm(o),p=o.sub(s).mul(l).umod(o),b=u.mul(l).umod(o);return this.g.mulAdd(p,c,b)},c.prototype.getKeyRecoveryParam=function(e,t,r,n){if(null!==(t=new f(t,n)).recoveryParam)return t.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(e,t,i)}catch(e){continue}if(o.eq(r))return i}throw new Error("Unable to find valid recovery factor")}},function(e,t,r){"use strict";var n=r(9),i=r(25).utils.assert;function o(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}e.exports=o,o.fromPublic=function(e,t,r){return t instanceof o?t:new o(e,{pub:t,pubEnc:r})},o.fromPrivate=function(e,t,r){return t instanceof o?t:new o(e,{priv:t,privEnc:r})},o.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},o.prototype.getPublic=function(e,t){return"string"==typeof e&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t?this.pub.encode(t,e):this.pub},o.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},o.prototype._importPrivate=function(e,t){this.priv=new n(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},o.prototype._importPublic=function(e,t){if(e.x||e.y)return"mont"===this.ec.curve.type?i(e.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||i(e.x&&e.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(e.x,e.y));this.pub=this.ec.curve.decodePoint(e,t)},o.prototype.derive=function(e){return e.mul(this.priv).getX()},o.prototype.sign=function(e,t,r){return this.ec.sign(e,this,t,r)},o.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},o.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},function(e,t,r){"use strict";var n=r(9),i=r(25).utils,o=i.assert;function a(e,t){if(e instanceof a)return e;this._importDER(e,t)||(o(e.r&&e.s,"Signature without r or s"),this.r=new n(e.r,16),this.s=new n(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function s(e,t){var r=e[t.place++];if(!(128&r))return r;for(var n=15&r,i=0,o=0,a=t.place;o<n;o++,a++)i<<=8,i|=e[a];return t.place=a,i}function f(e){for(var t=0,r=e.length-1;!e[t]&&!(128&e[t+1])&&t<r;)t++;return 0===t?e:e.slice(t)}function c(e,t){if(t<128)e.push(t);else{var r=1+(Math.log(t)/Math.LN2>>>3);for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255);e.push(t)}}e.exports=a,a.prototype._importDER=function(e,t){e=i.toArray(e,t);var r=new function(){this.place=0};if(48!==e[r.place++])return!1;if(s(e,r)+r.place!==e.length)return!1;if(2!==e[r.place++])return!1;var o=s(e,r),a=e.slice(r.place,o+r.place);if(r.place+=o,2!==e[r.place++])return!1;var f=s(e,r);if(e.length!==f+r.place)return!1;var c=e.slice(r.place,f+r.place);return 0===a[0]&&128&a[1]&&(a=a.slice(1)),0===c[0]&&128&c[1]&&(c=c.slice(1)),this.r=new n(a),this.s=new n(c),this.recoveryParam=null,!0},a.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=f(t),r=f(r);!(r[0]||128&r[1]);)r=r.slice(1);var n=[2];c(n,t.length),(n=n.concat(t)).push(2),c(n,r.length);var o=n.concat(r),a=[48];return c(a,o.length),a=a.concat(o),i.encode(a,e)}},function(e,t,r){"use strict";var n=r(56),i=r(25),o=i.utils,a=o.assert,s=o.parseBytes,f=r(360),c=r(361);function u(e){if(a("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof u))return new u(e);e=i.curves[e].curve;this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=n.sha512}e.exports=u,u.prototype.sign=function(e,t){e=s(e);var r=this.keyFromSecret(t),n=this.hashInt(r.messagePrefix(),e),i=this.g.mul(n),o=this.encodePoint(i),a=this.hashInt(o,r.pubBytes(),e).mul(r.priv()),f=n.add(a).umod(this.curve.n);return this.makeSignature({R:i,S:f,Rencoded:o})},u.prototype.verify=function(e,t,r){e=s(e),t=this.makeSignature(t);var n=this.keyFromPublic(r),i=this.hashInt(t.Rencoded(),n.pubBytes(),e),o=this.g.mul(t.S());return t.R().add(n.pub().mul(i)).eq(o)},u.prototype.hashInt=function(){for(var e=this.hash(),t=0;t<arguments.length;t++)e.update(arguments[t]);return o.intFromLE(e.digest()).umod(this.curve.n)},u.prototype.keyFromPublic=function(e){return f.fromPublic(this,e)},u.prototype.keyFromSecret=function(e){return f.fromSecret(this,e)},u.prototype.makeSignature=function(e){return e instanceof c?e:new c(this,e)},u.prototype.encodePoint=function(e){var t=e.getY().toArray("le",this.encodingLength);return t[this.encodingLength-1]|=e.getX().isOdd()?128:0,t},u.prototype.decodePoint=function(e){var t=(e=o.parseBytes(e)).length-1,r=e.slice(0,t).concat(-129&e[t]),n=0!=(128&e[t]),i=o.intFromLE(r);return this.curve.pointFromY(i,n)},u.prototype.encodeInt=function(e){return e.toArray("le",this.encodingLength)},u.prototype.decodeInt=function(e){return o.intFromLE(e)},u.prototype.isPoint=function(e){return e instanceof this.pointClass}},function(e,t,r){"use strict";var n=r(25).utils,i=n.assert,o=n.parseBytes,a=n.cachedProperty;function s(e,t){this.eddsa=e,this._secret=o(t.secret),e.isPoint(t.pub)?this._pub=t.pub:this._pubBytes=o(t.pub)}s.fromPublic=function(e,t){return t instanceof s?t:new s(e,{pub:t})},s.fromSecret=function(e,t){return t instanceof s?t:new s(e,{secret:t})},s.prototype.secret=function(){return this._secret},a(s,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),a(s,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),a(s,"privBytes",function(){var e=this.eddsa,t=this.hash(),r=e.encodingLength-1,n=t.slice(0,e.encodingLength);return n[0]&=248,n[r]&=127,n[r]|=64,n}),a(s,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),a(s,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),a(s,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),s.prototype.sign=function(e){return i(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)},s.prototype.verify=function(e,t){return this.eddsa.verify(e,t,this)},s.prototype.getSecret=function(e){return i(this._secret,"KeyPair is public only"),n.encode(this.secret(),e)},s.prototype.getPublic=function(e){return n.encode(this.pubBytes(),e)},e.exports=s},function(e,t,r){"use strict";var n=r(9),i=r(25).utils,o=i.assert,a=i.cachedProperty,s=i.parseBytes;function f(e,t){this.eddsa=e,"object"!=typeof t&&(t=s(t)),Array.isArray(t)&&(t={R:t.slice(0,e.encodingLength),S:t.slice(e.encodingLength)}),o(t.R&&t.S,"Signature without R or S"),e.isPoint(t.R)&&(this._R=t.R),t.S instanceof n&&(this._S=t.S),this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded,this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded}a(f,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),a(f,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),a(f,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),a(f,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),f.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},f.prototype.toHex=function(){return i.encode(this.toBytes(),"hex").toUpperCase()},e.exports=f},function(e,t,r){"use strict";var n=r(56),i=r(25),o=i.utils,a=o.assert,s=o.parseBytes,f=r(363),c=r(364);function u(e){if(a("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof u))return new u(e);e=i.curves[e].curve;this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=n.sha512}e.exports=u,u.prototype.sign=function(e,t){e=s(e);var r=this.keyFromSecret(t),n=this.hashInt(r.messagePrefix(),e),i=this.g.mul(n),o=this.encodePoint(i),a=this.hashInt(o,r.pubBytes(),e).mul(r.priv()),f=n.add(a).umod(this.curve.n);return this.makeSignature({R:i,S:f,Rencoded:o})},u.prototype.verify=function(e,t,r){e=s(e),t=this.makeSignature(t);var n=this.keyFromPublic(r),i=this.hashInt(t.Rencoded(),n.pubBytes(),e),o=this.g.mul(t.S());return t.R().add(n.pub().mul(i)).eq(o)},u.prototype.hashInt=function(){for(var e=this.hash(),t=0;t<arguments.length;t++)e.update(arguments[t]);return o.intFromLE(e.digest()).umod(this.curve.n)},u.prototype.keyFromPublic=function(e){return f.fromPublic(this,e)},u.prototype.keyFromSecret=function(e){return f.fromSecret(this,e)},u.prototype.makeSignature=function(e){return e instanceof c?e:new c(this,e)},u.prototype.encodePoint=function(e){var t=e.getY().toArray("le",this.encodingLength);return t[this.encodingLength-1]|=e.getX().isOdd()?128:0,t},u.prototype.decodePoint=function(e){var t=(e=o.parseBytes(e)).length-1,r=e.slice(0,t).concat(-129&e[t]),n=0!=(128&e[t]),i=o.intFromLE(r);return this.curve.pointFromY(i,n)},u.prototype.encodeInt=function(e){return e.toArray("le",this.encodingLength)},u.prototype.decodeInt=function(e){return o.intFromLE(e)},u.prototype.isPoint=function(e){return e instanceof this.pointClass}},function(e,t,r){"use strict";var n=r(25).utils,i=n.assert,o=n.parseBytes,a=n.cachedProperty;function s(e,t){this.eddsa=e,this._secret=o(t.secret),e.isPoint(t.pub)?this._pub=t.pub:this._pubBytes=o(t.pub)}s.fromPublic=function(e,t){return t instanceof s?t:new s(e,{pub:t})},s.fromSecret=function(e,t){return t instanceof s?t:new s(e,{secret:t})},s.prototype.secret=function(){return this._secret},a(s,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),a(s,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),a(s,"privBytes",function(){return this.secret()}),a(s,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),a(s,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),a(s,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),s.prototype.sign=function(e){return i(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)},s.prototype.verify=function(e,t){return this.eddsa.verify(e,t,this)},s.prototype.getSecret=function(e){return i(this._secret,"KeyPair is public only"),n.encode(this.secret(),e)},s.prototype.getPublic=function(e){return n.encode(this.pubBytes(),e)},e.exports=s},function(e,t,r){"use strict";var n=r(9),i=r(25).utils,o=i.assert,a=i.cachedProperty,s=i.parseBytes;function f(e,t){this.eddsa=e,"object"!=typeof t&&(t=s(t)),Array.isArray(t)&&(t={R:t.slice(0,e.encodingLength),S:t.slice(e.encodingLength)}),o(t.R&&t.S,"Signature without R or S"),e.isPoint(t.R)&&(this._R=t.R),t.S instanceof n&&(this._S=t.S),this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded,this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded}a(f,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),a(f,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),a(f,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),a(f,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),f.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},f.prototype.toHex=function(){return i.encode(this.toBytes(),"hex").toUpperCase()},e.exports=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(366),i=r(368),o=r(106),a=r(165),s=r(166);t.KEY_LENGTH=32,t.NONCE_LENGTH=12,t.TAG_LENGTH=16;var f=new Uint8Array(16),c=function(){function e(e){if(this.nonceLength=t.NONCE_LENGTH,this.tagLength=t.TAG_LENGTH,e.length!==t.KEY_LENGTH)throw new Error("ChaCha20Poly1305 needs 32-byte key");this._key=new Uint8Array(e)}return e.prototype.seal=function(e,t,r,i){if(e.length>16)throw new Error("ChaCha20Poly1305: incorrect nonce length");var a=new Uint8Array(16);a.set(e,a.length-e.length);var s=new Uint8Array(32);n.stream(this._key,a,s,4);var f,c=t.length+this.tagLength;if(i){if(i.length!==c)throw new Error("ChaCha20Poly1305: incorrect destination length");f=i}else f=new Uint8Array(c);return n.streamXOR(this._key,a,t,f,4),this._authenticate(f.subarray(f.length-this.tagLength,f.length),s,f.subarray(0,f.length-this.tagLength),r),o.wipe(a),f},e.prototype.open=function(e,t,r,i){if(e.length>16)throw new Error("ChaCha20Poly1305: incorrect nonce length");if(t.length<this.tagLength)return null;var a=new Uint8Array(16);a.set(e,a.length-e.length);var f=new Uint8Array(32);n.stream(this._key,a,f,4);var c=new Uint8Array(this.tagLength);if(this._authenticate(c,f,t.subarray(0,t.length-this.tagLength),r),!s.equal(c,t.subarray(t.length-this.tagLength,t.length)))return null;var u,h=t.length-this.tagLength;if(i){if(i.length!==h)throw new Error("GCM: incorrect destination length");u=i}else u=new Uint8Array(h);return n.streamXOR(this._key,a,t.subarray(0,t.length-this.tagLength),u,4),o.wipe(a),u},e.prototype.clean=function(){return o.wipe(this._key),this},e.prototype._authenticate=function(e,t,r,n){var s=new i.Poly1305(t);n&&(s.update(n),n.length%16>0&&s.update(f.subarray(n.length%16))),s.update(r),r.length%16>0&&s.update(f.subarray(r.length%16));var c=new Uint8Array(8);n&&a.writeUint64LE(n.length,c),s.update(c),a.writeUint64LE(r.length,c),s.update(c);for(var u=s.digest(),h=0;h<u.length;h++)e[h]=u[h];s.clean(),o.wipe(u),o.wipe(c)},e}();t.ChaCha20Poly1305=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(165),i=r(106),o=20;function a(e,t,r){for(var i=1634760805,a=857760878,s=2036477234,f=1797285236,c=r[3]<<24|r[2]<<16|r[1]<<8|r[0],u=r[7]<<24|r[6]<<16|r[5]<<8|r[4],h=r[11]<<24|r[10]<<16|r[9]<<8|r[8],d=r[15]<<24|r[14]<<16|r[13]<<8|r[12],l=r[19]<<24|r[18]<<16|r[17]<<8|r[16],p=r[23]<<24|r[22]<<16|r[21]<<8|r[20],b=r[27]<<24|r[26]<<16|r[25]<<8|r[24],v=r[31]<<24|r[30]<<16|r[29]<<8|r[28],y=t[3]<<24|t[2]<<16|t[1]<<8|t[0],m=t[7]<<24|t[6]<<16|t[5]<<8|t[4],g=t[11]<<24|t[10]<<16|t[9]<<8|t[8],w=t[15]<<24|t[14]<<16|t[13]<<8|t[12],_=i,E=a,S=s,A=f,I=c,k=u,x=h,P=d,O=l,T=p,M=b,N=v,B=y,C=m,R=g,L=w,j=0;j<o;j+=2)I=(I^=O=O+(B=(B^=_=_+I|0)>>>16|B<<16)|0)>>>20|I<<12,k=(k^=T=T+(C=(C^=E=E+k|0)>>>16|C<<16)|0)>>>20|k<<12,x=(x^=M=M+(R=(R^=S=S+x|0)>>>16|R<<16)|0)>>>20|x<<12,P=(P^=N=N+(L=(L^=A=A+P|0)>>>16|L<<16)|0)>>>20|P<<12,x=(x^=M=M+(R=(R^=S=S+x|0)>>>24|R<<8)|0)>>>25|x<<7,P=(P^=N=N+(L=(L^=A=A+P|0)>>>24|L<<8)|0)>>>25|P<<7,k=(k^=T=T+(C=(C^=E=E+k|0)>>>24|C<<8)|0)>>>25|k<<7,I=(I^=O=O+(B=(B^=_=_+I|0)>>>24|B<<8)|0)>>>25|I<<7,k=(k^=M=M+(L=(L^=_=_+k|0)>>>16|L<<16)|0)>>>20|k<<12,x=(x^=N=N+(B=(B^=E=E+x|0)>>>16|B<<16)|0)>>>20|x<<12,P=(P^=O=O+(C=(C^=S=S+P|0)>>>16|C<<16)|0)>>>20|P<<12,I=(I^=T=T+(R=(R^=A=A+I|0)>>>16|R<<16)|0)>>>20|I<<12,P=(P^=O=O+(C=(C^=S=S+P|0)>>>24|C<<8)|0)>>>25|P<<7,I=(I^=T=T+(R=(R^=A=A+I|0)>>>24|R<<8)|0)>>>25|I<<7,x=(x^=N=N+(B=(B^=E=E+x|0)>>>24|B<<8)|0)>>>25|x<<7,k=(k^=M=M+(L=(L^=_=_+k|0)>>>24|L<<8)|0)>>>25|k<<7;n.writeUint32LE(_+i|0,e,0),n.writeUint32LE(E+a|0,e,4),n.writeUint32LE(S+s|0,e,8),n.writeUint32LE(A+f|0,e,12),n.writeUint32LE(I+c|0,e,16),n.writeUint32LE(k+u|0,e,20),n.writeUint32LE(x+h|0,e,24),n.writeUint32LE(P+d|0,e,28),n.writeUint32LE(O+l|0,e,32),n.writeUint32LE(T+p|0,e,36),n.writeUint32LE(M+b|0,e,40),n.writeUint32LE(N+v|0,e,44),n.writeUint32LE(B+y|0,e,48),n.writeUint32LE(C+m|0,e,52),n.writeUint32LE(R+g|0,e,56),n.writeUint32LE(L+w|0,e,60)}function s(e,t,r,n,o){if(void 0===o&&(o=0),32!==e.length)throw new Error("ChaCha: key size must be 32 bytes");if(n.length<r.length)throw new Error("ChaCha: destination is shorter than source");var s,c;if(0===o){if(8!==t.length&&12!==t.length)throw new Error("ChaCha nonce must be 8 or 12 bytes");c=(s=new Uint8Array(16)).length-t.length,s.set(t,c)}else{if(16!==t.length)throw new Error("ChaCha nonce with counter must be 16 bytes");s=t,c=o}for(var u=new Uint8Array(64),h=0;h<r.length;h+=64){a(u,s,e);for(var d=h;d<h+64&&d<r.length;d++)n[d]=r[d]^u[d-h];f(s,0,c)}return i.wipe(u),0===o&&i.wipe(s),n}function f(e,t,r){for(var n=1;r--;)n=n+(255&e[t])|0,e[t]=255&n,n>>>=8,t++;if(n>0)throw new Error("ChaCha: counter overflow")}t.streamXOR=s,t.stream=function(e,t,r,n){return void 0===n&&(n=0),i.wipe(r),s(e,t,r,r,n)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mul=Math.imul||function(e,t){var r=65535&e,n=65535&t;return r*n+((e>>>16&65535)*n+r*(t>>>16&65535)<<16>>>0)|0},t.add=function(e,t){return e+t|0},t.sub=function(e,t){return e-t|0},t.rotl=function(e,t){return e<<t|e>>>32-t},t.rotr=function(e,t){return e<<32-t|e>>>t},t.isInteger=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},t.MAX_SAFE_INTEGER=9007199254740991,t.isSafeInteger=function(e){return t.isInteger(e)&&e>=-t.MAX_SAFE_INTEGER&&e<=t.MAX_SAFE_INTEGER}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(166),i=r(106);t.DIGEST_LENGTH=16;var o=function(){function e(e){this.digestLength=t.DIGEST_LENGTH,this._buffer=new Uint8Array(16),this._r=new Uint16Array(10),this._h=new Uint16Array(10),this._pad=new Uint16Array(8),this._leftover=0,this._fin=0,this._finished=!1;var r=e[0]|e[1]<<8;this._r[0]=8191&r;var n=e[2]|e[3]<<8;this._r[1]=8191&(r>>>13|n<<3);var i=e[4]|e[5]<<8;this._r[2]=7939&(n>>>10|i<<6);var o=e[6]|e[7]<<8;this._r[3]=8191&(i>>>7|o<<9);var a=e[8]|e[9]<<8;this._r[4]=255&(o>>>4|a<<12),this._r[5]=a>>>1&8190;var s=e[10]|e[11]<<8;this._r[6]=8191&(a>>>14|s<<2);var f=e[12]|e[13]<<8;this._r[7]=8065&(s>>>11|f<<5);var c=e[14]|e[15]<<8;this._r[8]=8191&(f>>>8|c<<8),this._r[9]=c>>>5&127,this._pad[0]=e[16]|e[17]<<8,this._pad[1]=e[18]|e[19]<<8,this._pad[2]=e[20]|e[21]<<8,this._pad[3]=e[22]|e[23]<<8,this._pad[4]=e[24]|e[25]<<8,this._pad[5]=e[26]|e[27]<<8,this._pad[6]=e[28]|e[29]<<8,this._pad[7]=e[30]|e[31]<<8}return e.prototype._blocks=function(e,t,r){for(var n=this._fin?0:2048,i=this._h[0],o=this._h[1],a=this._h[2],s=this._h[3],f=this._h[4],c=this._h[5],u=this._h[6],h=this._h[7],d=this._h[8],l=this._h[9],p=this._r[0],b=this._r[1],v=this._r[2],y=this._r[3],m=this._r[4],g=this._r[5],w=this._r[6],_=this._r[7],E=this._r[8],S=this._r[9];r>=16;){var A=e[t+0]|e[t+1]<<8;i+=8191&A;var I=e[t+2]|e[t+3]<<8;o+=8191&(A>>>13|I<<3);var k=e[t+4]|e[t+5]<<8;a+=8191&(I>>>10|k<<6);var x=e[t+6]|e[t+7]<<8;s+=8191&(k>>>7|x<<9);var P=e[t+8]|e[t+9]<<8;f+=8191&(x>>>4|P<<12),c+=P>>>1&8191;var O=e[t+10]|e[t+11]<<8;u+=8191&(P>>>14|O<<2);var T=e[t+12]|e[t+13]<<8;h+=8191&(O>>>11|T<<5);var M=e[t+14]|e[t+15]<<8,N=0,B=N;B+=i*p,B+=o*(5*S),B+=a*(5*E),B+=s*(5*_),N=(B+=f*(5*w))>>>13,B&=8191,B+=c*(5*g),B+=u*(5*m),B+=h*(5*y),B+=(d+=8191&(T>>>8|M<<8))*(5*v);var C=N+=(B+=(l+=M>>>5|n)*(5*b))>>>13;C+=i*b,C+=o*p,C+=a*(5*S),C+=s*(5*E),N=(C+=f*(5*_))>>>13,C&=8191,C+=c*(5*w),C+=u*(5*g),C+=h*(5*m),C+=d*(5*y),N+=(C+=l*(5*v))>>>13,C&=8191;var R=N;R+=i*v,R+=o*b,R+=a*p,R+=s*(5*S),N=(R+=f*(5*E))>>>13,R&=8191,R+=c*(5*_),R+=u*(5*w),R+=h*(5*g),R+=d*(5*m);var L=N+=(R+=l*(5*y))>>>13;L+=i*y,L+=o*v,L+=a*b,L+=s*p,N=(L+=f*(5*S))>>>13,L&=8191,L+=c*(5*E),L+=u*(5*_),L+=h*(5*w),L+=d*(5*g);var j=N+=(L+=l*(5*m))>>>13;j+=i*m,j+=o*y,j+=a*v,j+=s*b,N=(j+=f*p)>>>13,j&=8191,j+=c*(5*S),j+=u*(5*E),j+=h*(5*_),j+=d*(5*w);var U=N+=(j+=l*(5*g))>>>13;U+=i*g,U+=o*m,U+=a*y,U+=s*v,N=(U+=f*b)>>>13,U&=8191,U+=c*p,U+=u*(5*S),U+=h*(5*E),U+=d*(5*_);var D=N+=(U+=l*(5*w))>>>13;D+=i*w,D+=o*g,D+=a*m,D+=s*y,N=(D+=f*v)>>>13,D&=8191,D+=c*b,D+=u*p,D+=h*(5*S),D+=d*(5*E);var F=N+=(D+=l*(5*_))>>>13;F+=i*_,F+=o*w,F+=a*g,F+=s*m,N=(F+=f*y)>>>13,F&=8191,F+=c*v,F+=u*b,F+=h*p,F+=d*(5*S);var z=N+=(F+=l*(5*E))>>>13;z+=i*E,z+=o*_,z+=a*w,z+=s*g,N=(z+=f*m)>>>13,z&=8191,z+=c*y,z+=u*v,z+=h*b,z+=d*p;var q=N+=(z+=l*(5*S))>>>13;q+=i*S,q+=o*E,q+=a*_,q+=s*w,N=(q+=f*g)>>>13,q&=8191,q+=c*m,q+=u*y,q+=h*v,q+=d*b,i=B=8191&(N=(N=((N+=(q+=l*p)>>>13)<<2)+N|0)+(B&=8191)|0),o=C+=N>>>=13,a=R&=8191,s=L&=8191,f=j&=8191,c=U&=8191,u=D&=8191,h=F&=8191,d=z&=8191,l=q&=8191,t+=16,r-=16}this._h[0]=i,this._h[1]=o,this._h[2]=a,this._h[3]=s,this._h[4]=f,this._h[5]=c,this._h[6]=u,this._h[7]=h,this._h[8]=d,this._h[9]=l},e.prototype.finish=function(e,t){void 0===t&&(t=0);var r,n,i,o,a=new Uint16Array(10);if(this._leftover){for(o=this._leftover,this._buffer[o++]=1;o<16;o++)this._buffer[o]=0;this._fin=1,this._blocks(this._buffer,0,16)}for(r=this._h[1]>>>13,this._h[1]&=8191,o=2;o<10;o++)this._h[o]+=r,r=this._h[o]>>>13,this._h[o]&=8191;for(this._h[0]+=5*r,r=this._h[0]>>>13,this._h[0]&=8191,this._h[1]+=r,r=this._h[1]>>>13,this._h[1]&=8191,this._h[2]+=r,a[0]=this._h[0]+5,r=a[0]>>>13,a[0]&=8191,o=1;o<10;o++)a[o]=this._h[o]+r,r=a[o]>>>13,a[o]&=8191;for(a[9]-=8192,n=(1^r)-1,o=0;o<10;o++)a[o]&=n;for(n=~n,o=0;o<10;o++)this._h[o]=this._h[o]&n|a[o];for(this._h[0]=65535&(this._h[0]|this._h[1]<<13),this._h[1]=65535&(this._h[1]>>>3|this._h[2]<<10),this._h[2]=65535&(this._h[2]>>>6|this._h[3]<<7),this._h[3]=65535&(this._h[3]>>>9|this._h[4]<<4),this._h[4]=65535&(this._h[4]>>>12|this._h[5]<<1|this._h[6]<<14),this._h[5]=65535&(this._h[6]>>>2|this._h[7]<<11),this._h[6]=65535&(this._h[7]>>>5|this._h[8]<<8),this._h[7]=65535&(this._h[8]>>>8|this._h[9]<<5),i=this._h[0]+this._pad[0],this._h[0]=65535&i,o=1;o<8;o++)i=(this._h[o]+this._pad[o]|0)+(i>>>16)|0,this._h[o]=65535&i;return e[t+0]=this._h[0]>>>0,e[t+1]=this._h[0]>>>8,e[t+2]=this._h[1]>>>0,e[t+3]=this._h[1]>>>8,e[t+4]=this._h[2]>>>0,e[t+5]=this._h[2]>>>8,e[t+6]=this._h[3]>>>0,e[t+7]=this._h[3]>>>8,e[t+8]=this._h[4]>>>0,e[t+9]=this._h[4]>>>8,e[t+10]=this._h[5]>>>0,e[t+11]=this._h[5]>>>8,e[t+12]=this._h[6]>>>0,e[t+13]=this._h[6]>>>8,e[t+14]=this._h[7]>>>0,e[t+15]=this._h[7]>>>8,this._finished=!0,this},e.prototype.update=function(e){var t,r=0,n=e.length;if(this._leftover){(t=16-this._leftover)>n&&(t=n);for(var i=0;i<t;i++)this._buffer[this._leftover+i]=e[r+i];if(n-=t,r+=t,this._leftover+=t,this._leftover<16)return this;this._blocks(this._buffer,0,16),this._leftover=0}if(n>=16&&(t=n-n%16,this._blocks(e,r,t),r+=t,n-=t),n){for(i=0;i<n;i++)this._buffer[this._leftover+i]=e[r+i];this._leftover+=n}return this},e.prototype.digest=function(){if(this._finished)throw new Error("Poly1305 was finished");var e=new Uint8Array(16);return this.finish(e),e},e.prototype.clean=function(){return i.wipe(this._buffer),i.wipe(this._r),i.wipe(this._h),i.wipe(this._pad),this._leftover=0,this._fin=0,this._finished=!0,this},e}();t.Poly1305=o,t.oneTimeAuth=function(e,t){var r=new o(e);r.update(t);var n=r.digest();return r.clean(),n},t.equal=function(e,r){return e.length===t.DIGEST_LENGTH&&r.length===t.DIGEST_LENGTH&&n.equal(e,r)}},function(e,t,r){(function(n,i){var o;!function(){"use strict";var a="input is invalid type",s="object"==typeof window,f=s?window:{};f.JS_SHA3_NO_WINDOW&&(s=!1);var c=!s&&"object"==typeof self;!f.JS_SHA3_NO_NODE_JS&&"object"==typeof n&&n.versions&&n.versions.node?f=i:c&&(f=self);var u=!f.JS_SHA3_NO_COMMON_JS&&"object"==typeof e&&e.exports,h=r(370),d=!f.JS_SHA3_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,l="0123456789abcdef".split(""),p=[4,1024,262144,67108864],b=[0,8,16,24],v=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],y=[224,256,384,512],m=[128,256],g=["hex","buffer","arrayBuffer","array","digest"],w={128:168,256:136};!f.JS_SHA3_NO_NODE_JS&&Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),!d||!f.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(e){return"object"==typeof e&&e.buffer&&e.buffer.constructor===ArrayBuffer});for(var _=function(e,t,r){return function(n){return new L(e,t,e).update(n)[r]()}},E=function(e,t,r){return function(n,i){return new L(e,t,i).update(n)[r]()}},S=function(e,t,r){return function(t,n,i,o){return P["cshake"+e].update(t,n,i,o)[r]()}},A=function(e,t,r){return function(t,n,i,o){return P["kmac"+e].update(t,n,i,o)[r]()}},I=function(e,t,r,n){for(var i=0;i<g.length;++i){var o=g[i];e[o]=t(r,n,o)}return e},k=function(e,t){var r=_(e,t,"hex");return r.create=function(){return new L(e,t,e)},r.update=function(e){return r.create().update(e)},I(r,_,e,t)},x=[{name:"keccak",padding:[1,256,65536,16777216],bits:y,createMethod:k},{name:"sha3",padding:[6,1536,393216,100663296],bits:y,createMethod:k},{name:"shake",padding:[31,7936,2031616,520093696],bits:m,createMethod:function(e,t){var r=E(e,t,"hex");return r.create=function(r){return new L(e,t,r)},r.update=function(e,t){return r.create(t).update(e)},I(r,E,e,t)}},{name:"cshake",padding:p,bits:m,createMethod:function(e,t){var r=w[e],n=S(e,0,"hex");return n.create=function(n,i,o){return i||o?new L(e,t,n).bytepad([i,o],r):P["shake"+e].create(n)},n.update=function(e,t,r,i){return n.create(t,r,i).update(e)},I(n,S,e,t)}},{name:"kmac",padding:p,bits:m,createMethod:function(e,t){var r=w[e],n=A(e,0,"hex");return n.create=function(n,i,o){return new j(e,t,i).bytepad(["KMAC",o],r).bytepad([n],r)},n.update=function(e,t,r,i){return n.create(e,r,i).update(t)},I(n,A,e,t)}}],P={},O=[],T=0;T<x.length;++T)for(var M=x[T],N=M.bits,B=0;B<N.length;++B){var C=M.name+"_"+N[B];if(O.push(C),P[C]=M.createMethod(N[B],M.padding),"sha3"!==M.name){var R=M.name+N[B];O.push(R),P[R]=P[C]}}function L(e,t,r){this.blocks=[],this.s=[],this.padding=t,this.outputBits=r,this.reset=!0,this.finalized=!1,this.block=0,this.start=0,this.blockCount=1600-(e<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=r>>5,this.extraBytes=(31&r)>>3;for(var n=0;n<50;++n)this.s[n]=0}function j(e,t,r){L.call(this,e,t,r)}L.prototype.update=function(e){if(!this.finalized){var t,r=typeof e;if("string"!==r){if("object"!==r)throw a;if(null===e)throw a;if(d&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!(Array.isArray(e)||d&&ArrayBuffer.isView(e)))throw a;t=!0}for(var n,i,o=this.blocks,s=this.byteCount,f=e.length,c=this.blockCount,u=0,h=this.s;u<f;){if(this.reset)for(this.reset=!1,o[0]=this.block,n=1;n<c+1;++n)o[n]=0;if(t)for(n=this.start;u<f&&n<s;++u)o[n>>2]|=e[u]<<b[3&n++];else for(n=this.start;u<f&&n<s;++u)(i=e.charCodeAt(u))<128?o[n>>2]|=i<<b[3&n++]:i<2048?(o[n>>2]|=(192|i>>6)<<b[3&n++],o[n>>2]|=(128|63&i)<<b[3&n++]):i<55296||i>=57344?(o[n>>2]|=(224|i>>12)<<b[3&n++],o[n>>2]|=(128|i>>6&63)<<b[3&n++],o[n>>2]|=(128|63&i)<<b[3&n++]):(i=65536+((1023&i)<<10|1023&e.charCodeAt(++u)),o[n>>2]|=(240|i>>18)<<b[3&n++],o[n>>2]|=(128|i>>12&63)<<b[3&n++],o[n>>2]|=(128|i>>6&63)<<b[3&n++],o[n>>2]|=(128|63&i)<<b[3&n++]);if(this.lastByteIndex=n,n>=s){for(this.start=n-s,this.block=o[c],n=0;n<c;++n)h[n]^=o[n];U(h),this.reset=!0}else this.start=n}return this}},L.prototype.encode=function(e,t){var r=255&e,n=1,i=[r];for(r=255&(e>>=8);r>0;)i.unshift(r),r=255&(e>>=8),++n;return t?i.push(n):i.unshift(n),this.update(i),i.length},L.prototype.encodeString=function(e){var t,r=typeof e;if("string"!==r){if("object"!==r)throw a;if(null===e)throw a;if(d&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!(Array.isArray(e)||d&&ArrayBuffer.isView(e)))throw a;t=!0}var n=0,i=e.length;if(t)n=i;else for(var o=0;o<e.length;++o){var s=e.charCodeAt(o);s<128?n+=1:s<2048?n+=2:s<55296||s>=57344?n+=3:(s=65536+((1023&s)<<10|1023&e.charCodeAt(++o)),n+=4)}return n+=this.encode(8*n),this.update(e),n},L.prototype.bytepad=function(e,t){for(var r=this.encode(t),n=0;n<e.length;++n)r+=this.encodeString(e[n]);var i=t-r%t,o=[];return o.length=i,this.update(o),this},L.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex,r=this.blockCount,n=this.s;if(e[t>>2]|=this.padding[3&t],this.lastByteIndex===this.byteCount)for(e[0]=e[r],t=1;t<r+1;++t)e[t]=0;for(e[r-1]|=2147483648,t=0;t<r;++t)n[t]^=e[t];U(n)}},L.prototype.toString=L.prototype.hex=function(){this.finalize();for(var e,t=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,o=0,a=0,s="";a<n;){for(o=0;o<t&&a<n;++o,++a)e=r[o],s+=l[e>>4&15]+l[15&e]+l[e>>12&15]+l[e>>8&15]+l[e>>20&15]+l[e>>16&15]+l[e>>28&15]+l[e>>24&15];a%t==0&&(U(r),o=0)}return i&&(e=r[o],s+=l[e>>4&15]+l[15&e],i>1&&(s+=l[e>>12&15]+l[e>>8&15]),i>2&&(s+=l[e>>20&15]+l[e>>16&15])),s},L.prototype.arrayBuffer=function(){this.finalize();var e,t=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,o=0,a=0,s=this.outputBits>>3;e=i?new ArrayBuffer(n+1<<2):new ArrayBuffer(s);for(var f=new Uint32Array(e);a<n;){for(o=0;o<t&&a<n;++o,++a)f[a]=r[o];a%t==0&&U(r)}return i&&(f[o]=r[o],e=e.slice(0,s)),e},L.prototype.buffer=L.prototype.arrayBuffer,L.prototype.digest=L.prototype.array=function(){this.finalize();for(var e,t,r=this.blockCount,n=this.s,i=this.outputBlocks,o=this.extraBytes,a=0,s=0,f=[];s<i;){for(a=0;a<r&&s<i;++a,++s)e=s<<2,t=n[a],f[e]=255&t,f[e+1]=t>>8&255,f[e+2]=t>>16&255,f[e+3]=t>>24&255;s%r==0&&U(n)}return o&&(e=s<<2,t=n[a],f[e]=255&t,o>1&&(f[e+1]=t>>8&255),o>2&&(f[e+2]=t>>16&255)),f},j.prototype=new L,j.prototype.finalize=function(){return this.encode(this.outputBits,!0),L.prototype.finalize.call(this)};var U=function(e){var t,r,n,i,o,a,s,f,c,u,h,d,l,p,b,y,m,g,w,_,E,S,A,I,k,x,P,O,T,M,N,B,C,R,L,j,U,D,F,z,q,H,K,V,G,Y,W,J,X,Z,$,Q,ee,te,re,ne,ie,oe,ae,se,fe,ce,ue;for(n=0;n<48;n+=2)i=e[0]^e[10]^e[20]^e[30]^e[40],o=e[1]^e[11]^e[21]^e[31]^e[41],a=e[2]^e[12]^e[22]^e[32]^e[42],s=e[3]^e[13]^e[23]^e[33]^e[43],f=e[4]^e[14]^e[24]^e[34]^e[44],c=e[5]^e[15]^e[25]^e[35]^e[45],u=e[6]^e[16]^e[26]^e[36]^e[46],h=e[7]^e[17]^e[27]^e[37]^e[47],t=(d=e[8]^e[18]^e[28]^e[38]^e[48])^(a<<1|s>>>31),r=(l=e[9]^e[19]^e[29]^e[39]^e[49])^(s<<1|a>>>31),e[0]^=t,e[1]^=r,e[10]^=t,e[11]^=r,e[20]^=t,e[21]^=r,e[30]^=t,e[31]^=r,e[40]^=t,e[41]^=r,t=i^(f<<1|c>>>31),r=o^(c<<1|f>>>31),e[2]^=t,e[3]^=r,e[12]^=t,e[13]^=r,e[22]^=t,e[23]^=r,e[32]^=t,e[33]^=r,e[42]^=t,e[43]^=r,t=a^(u<<1|h>>>31),r=s^(h<<1|u>>>31),e[4]^=t,e[5]^=r,e[14]^=t,e[15]^=r,e[24]^=t,e[25]^=r,e[34]^=t,e[35]^=r,e[44]^=t,e[45]^=r,t=f^(d<<1|l>>>31),r=c^(l<<1|d>>>31),e[6]^=t,e[7]^=r,e[16]^=t,e[17]^=r,e[26]^=t,e[27]^=r,e[36]^=t,e[37]^=r,e[46]^=t,e[47]^=r,t=u^(i<<1|o>>>31),r=h^(o<<1|i>>>31),e[8]^=t,e[9]^=r,e[18]^=t,e[19]^=r,e[28]^=t,e[29]^=r,e[38]^=t,e[39]^=r,e[48]^=t,e[49]^=r,p=e[0],b=e[1],Y=e[11]<<4|e[10]>>>28,W=e[10]<<4|e[11]>>>28,O=e[20]<<3|e[21]>>>29,T=e[21]<<3|e[20]>>>29,se=e[31]<<9|e[30]>>>23,fe=e[30]<<9|e[31]>>>23,H=e[40]<<18|e[41]>>>14,K=e[41]<<18|e[40]>>>14,R=e[2]<<1|e[3]>>>31,L=e[3]<<1|e[2]>>>31,y=e[13]<<12|e[12]>>>20,m=e[12]<<12|e[13]>>>20,J=e[22]<<10|e[23]>>>22,X=e[23]<<10|e[22]>>>22,M=e[33]<<13|e[32]>>>19,N=e[32]<<13|e[33]>>>19,ce=e[42]<<2|e[43]>>>30,ue=e[43]<<2|e[42]>>>30,te=e[5]<<30|e[4]>>>2,re=e[4]<<30|e[5]>>>2,j=e[14]<<6|e[15]>>>26,U=e[15]<<6|e[14]>>>26,g=e[25]<<11|e[24]>>>21,w=e[24]<<11|e[25]>>>21,Z=e[34]<<15|e[35]>>>17,$=e[35]<<15|e[34]>>>17,B=e[45]<<29|e[44]>>>3,C=e[44]<<29|e[45]>>>3,I=e[6]<<28|e[7]>>>4,k=e[7]<<28|e[6]>>>4,ne=e[17]<<23|e[16]>>>9,ie=e[16]<<23|e[17]>>>9,D=e[26]<<25|e[27]>>>7,F=e[27]<<25|e[26]>>>7,_=e[36]<<21|e[37]>>>11,E=e[37]<<21|e[36]>>>11,Q=e[47]<<24|e[46]>>>8,ee=e[46]<<24|e[47]>>>8,V=e[8]<<27|e[9]>>>5,G=e[9]<<27|e[8]>>>5,x=e[18]<<20|e[19]>>>12,P=e[19]<<20|e[18]>>>12,oe=e[29]<<7|e[28]>>>25,ae=e[28]<<7|e[29]>>>25,z=e[38]<<8|e[39]>>>24,q=e[39]<<8|e[38]>>>24,S=e[48]<<14|e[49]>>>18,A=e[49]<<14|e[48]>>>18,e[0]=p^~y&g,e[1]=b^~m&w,e[10]=I^~x&O,e[11]=k^~P&T,e[20]=R^~j&D,e[21]=L^~U&F,e[30]=V^~Y&J,e[31]=G^~W&X,e[40]=te^~ne&oe,e[41]=re^~ie&ae,e[2]=y^~g&_,e[3]=m^~w&E,e[12]=x^~O&M,e[13]=P^~T&N,e[22]=j^~D&z,e[23]=U^~F&q,e[32]=Y^~J&Z,e[33]=W^~X&$,e[42]=ne^~oe&se,e[43]=ie^~ae&fe,e[4]=g^~_&S,e[5]=w^~E&A,e[14]=O^~M&B,e[15]=T^~N&C,e[24]=D^~z&H,e[25]=F^~q&K,e[34]=J^~Z&Q,e[35]=X^~$&ee,e[44]=oe^~se&ce,e[45]=ae^~fe&ue,e[6]=_^~S&p,e[7]=E^~A&b,e[16]=M^~B&I,e[17]=N^~C&k,e[26]=z^~H&R,e[27]=q^~K&L,e[36]=Z^~Q&V,e[37]=$^~ee&G,e[46]=se^~ce&te,e[47]=fe^~ue&re,e[8]=S^~p&y,e[9]=A^~b&m,e[18]=B^~I&x,e[19]=C^~k&P,e[28]=H^~R&j,e[29]=K^~L&U,e[38]=Q^~V&Y,e[39]=ee^~G&W,e[48]=ce^~te&ne,e[49]=ue^~re&ie,e[0]^=v[n],e[1]^=v[n+1]};if(u)e.exports=P;else{for(T=0;T<O.length;++T)f[O[T]]=P[O[T]];h&&(void 0===(o=function(){return P}.call(t,r,t,e))||(e.exports=o))}}()}).call(t,r(32),r(29))},function(e,t){(function(t){e.exports=t}).call(t,{})},function(e,t,r){var Buffer=r(4).Buffer;e.exports=function(e){for(var t={},r=e.length,n=e.charAt(0),i=0;i<e.length;i++){var o=e.charAt(i);if(void 0!==t[o])throw new TypeError(o+" is ambiguous");t[o]=i}function a(e){if("string"!=typeof e)throw new TypeError("Expected String");if(0===e.length)return Buffer.allocUnsafe(0);for(var i=[0],o=0;o<e.length;o++){var a=t[e[o]];if(void 0===a)return;for(var s=0,f=a;s<i.length;++s)f+=i[s]*r,i[s]=255&f,f>>=8;for(;f>0;)i.push(255&f),f>>=8}for(var c=0;e[c]===n&&c<e.length-1;++c)i.push(0);return Buffer.from(i.reverse())}return{encode:function(t){if(0===t.length)return"";for(var i=[0],o=0;o<t.length;++o){for(var a=0,s=t[o];a<i.length;++a)s+=i[a]<<8,i[a]=s%r,s=s/r|0;for(;s>0;)i.push(s%r),s=s/r|0}for(var f="",c=0;0===t[c]&&c<t.length-1;++c)f+=n;for(var u=i.length-1;u>=0;--u)f+=e[i[u]];return f},decodeUnsafe:a,decode:function(e){var t=a(e);if(t)return t;throw new Error("Non-base"+r+" character")}}}},function(e,t,r){var n;n=function(e){e.version="1.2.0";var t=function(){for(var e=0,t=new Array(256),r=0;256!=r;++r)e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=r)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1,t[r]=e;return"undefined"!=typeof Int32Array?new Int32Array(t):t}();e.table=t,e.bstr=function(e,r){for(var n=-1^r,i=e.length-1,o=0;o<i;)n=(n=n>>>8^t[255&(n^e.charCodeAt(o++))])>>>8^t[255&(n^e.charCodeAt(o++))];return o===i&&(n=n>>>8^t[255&(n^e.charCodeAt(o))]),-1^n},e.buf=function(e,r){if(e.length>1e4)return function(e,r){for(var n=-1^r,i=e.length-7,o=0;o<i;)n=(n=(n=(n=(n=(n=(n=(n=n>>>8^t[255&(n^e[o++])])>>>8^t[255&(n^e[o++])])>>>8^t[255&(n^e[o++])])>>>8^t[255&(n^e[o++])])>>>8^t[255&(n^e[o++])])>>>8^t[255&(n^e[o++])])>>>8^t[255&(n^e[o++])])>>>8^t[255&(n^e[o++])];for(;o<i+7;)n=n>>>8^t[255&(n^e[o++])];return-1^n}(e,r);for(var n=-1^r,i=e.length-3,o=0;o<i;)n=(n=(n=(n=n>>>8^t[255&(n^e[o++])])>>>8^t[255&(n^e[o++])])>>>8^t[255&(n^e[o++])])>>>8^t[255&(n^e[o++])];for(;o<i+3;)n=n>>>8^t[255&(n^e[o++])];return-1^n},e.str=function(e,r){for(var n,i,o=-1^r,a=0,s=e.length;a<s;)(n=e.charCodeAt(a++))<128?o=o>>>8^t[255&(o^n)]:n<2048?o=(o=o>>>8^t[255&(o^(192|n>>6&31))])>>>8^t[255&(o^(128|63&n))]:n>=55296&&n<57344?(n=64+(1023&n),i=1023&e.charCodeAt(a++),o=(o=(o=(o=o>>>8^t[255&(o^(240|n>>8&7))])>>>8^t[255&(o^(128|n>>2&63))])>>>8^t[255&(o^(128|i>>6&15|(3&n)<<4))])>>>8^t[255&(o^(128|63&i))]):o=(o=(o=o>>>8^t[255&(o^(224|n>>12&15))])>>>8^t[255&(o^(128|n>>6&63))])>>>8^t[255&(o^(128|63&n))];return-1^o}},"undefined"==typeof DO_NOT_EXPORT_CRC?n(t):n({})},function(e,t,r){"use strict";var n=r(374),i=r(375);e.exports=function(e){var t=n(e),r=i(e);return function(e,n){switch("string"==typeof e?e.toLowerCase():e){case"keccak224":return new t(1152,448,null,224,n);case"keccak256":return new t(1088,512,null,256,n);case"keccak384":return new t(832,768,null,384,n);case"keccak512":return new t(576,1024,null,512,n);case"sha3-224":return new t(1152,448,6,224,n);case"sha3-256":return new t(1088,512,6,256,n);case"sha3-384":return new t(832,768,6,384,n);case"sha3-512":return new t(576,1024,6,512,n);case"shake128":return new r(1344,256,31,n);case"shake256":return new r(1088,512,31,n);default:throw new Error("Invald algorithm: "+e)}}}},function(e,t,r){"use strict";var Buffer=r(4).Buffer,n=r(33).Transform,i=r(5);e.exports=function(e){function t(t,r,i,o,a){n.call(this,a),this._rate=t,this._capacity=r,this._delimitedSuffix=i,this._hashBitLength=o,this._options=a,this._state=new e,this._state.initialize(t,r),this._finalized=!1}return i(t,n),t.prototype._transform=function(e,t,r){var n=null;try{this.update(e,t)}catch(e){n=e}r(n)},t.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(e){t=e}e(t)},t.prototype.update=function(e,t){if(!Buffer.isBuffer(e)&&"string"!=typeof e)throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Digest already called");return Buffer.isBuffer(e)||(e=Buffer.from(e,t)),this._state.absorb(e),this},t.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0,this._delimitedSuffix&&this._state.absorbLastFewBits(this._delimitedSuffix);var t=this._state.squeeze(this._hashBitLength/8);return void 0!==e&&(t=t.toString(e)),this._resetState(),t},t.prototype._resetState=function(){return this._state.initialize(this._rate,this._capacity),this},t.prototype._clone=function(){var e=new t(this._rate,this._capacity,this._delimitedSuffix,this._hashBitLength,this._options);return this._state.copy(e._state),e._finalized=this._finalized,e},t}},function(e,t,r){"use strict";var Buffer=r(4).Buffer,n=r(33).Transform,i=r(5);e.exports=function(e){function t(t,r,i,o){n.call(this,o),this._rate=t,this._capacity=r,this._delimitedSuffix=i,this._options=o,this._state=new e,this._state.initialize(t,r),this._finalized=!1}return i(t,n),t.prototype._transform=function(e,t,r){var n=null;try{this.update(e,t)}catch(e){n=e}r(n)},t.prototype._flush=function(){},t.prototype._read=function(e){this.push(this.squeeze(e))},t.prototype.update=function(e,t){if(!Buffer.isBuffer(e)&&"string"!=typeof e)throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Squeeze already called");return Buffer.isBuffer(e)||(e=Buffer.from(e,t)),this._state.absorb(e),this},t.prototype.squeeze=function(e,t){this._finalized||(this._finalized=!0,this._state.absorbLastFewBits(this._delimitedSuffix));var r=this._state.squeeze(e);return void 0!==t&&(r=r.toString(t)),r},t.prototype._resetState=function(){return this._state.initialize(this._rate,this._capacity),this},t.prototype._clone=function(){var e=new t(this._rate,this._capacity,this._delimitedSuffix,this._options);return this._state.copy(e._state),e._finalized=this._finalized,e},t}},function(e,t,r){"use strict";var Buffer=r(4).Buffer,n=r(377);function i(){this.state=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.blockSize=null,this.count=0,this.squeezing=!1}i.prototype.initialize=function(e,t){for(var r=0;r<50;++r)this.state[r]=0;this.blockSize=e/8,this.count=0,this.squeezing=!1},i.prototype.absorb=function(e){for(var t=0;t<e.length;++t)this.state[~~(this.count/4)]^=e[t]<<this.count%4*8,this.count+=1,this.count===this.blockSize&&(n.p1600(this.state),this.count=0)},i.prototype.absorbLastFewBits=function(e){this.state[~~(this.count/4)]^=e<<this.count%4*8,0!=(128&e)&&this.count===this.blockSize-1&&n.p1600(this.state),this.state[~~((this.blockSize-1)/4)]^=128<<(this.blockSize-1)%4*8,n.p1600(this.state),this.count=0,this.squeezing=!0},i.prototype.squeeze=function(e){this.squeezing||this.absorbLastFewBits(1);for(var t=Buffer.alloc(e),r=0;r<e;++r)t[r]=this.state[~~(this.count/4)]>>>this.count%4*8&255,this.count+=1,this.count===this.blockSize&&(n.p1600(this.state),this.count=0);return t},i.prototype.copy=function(e){for(var t=0;t<50;++t)e.state[t]=this.state[t];e.blockSize=this.blockSize,e.count=this.count,e.squeezing=this.squeezing},e.exports=i},function(e,t,r){"use strict";var n=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648];t.p1600=function(e){for(var t=0;t<24;++t){var r=e[0]^e[10]^e[20]^e[30]^e[40],i=e[1]^e[11]^e[21]^e[31]^e[41],o=e[2]^e[12]^e[22]^e[32]^e[42],a=e[3]^e[13]^e[23]^e[33]^e[43],s=e[4]^e[14]^e[24]^e[34]^e[44],f=e[5]^e[15]^e[25]^e[35]^e[45],c=e[6]^e[16]^e[26]^e[36]^e[46],u=e[7]^e[17]^e[27]^e[37]^e[47],h=e[8]^e[18]^e[28]^e[38]^e[48],d=e[9]^e[19]^e[29]^e[39]^e[49],l=h^(o<<1|a>>>31),p=d^(a<<1|o>>>31),b=e[0]^l,v=e[1]^p,y=e[10]^l,m=e[11]^p,g=e[20]^l,w=e[21]^p,_=e[30]^l,E=e[31]^p,S=e[40]^l,A=e[41]^p;l=r^(s<<1|f>>>31),p=i^(f<<1|s>>>31);var I=e[2]^l,k=e[3]^p,x=e[12]^l,P=e[13]^p,O=e[22]^l,T=e[23]^p,M=e[32]^l,N=e[33]^p,B=e[42]^l,C=e[43]^p;l=o^(c<<1|u>>>31),p=a^(u<<1|c>>>31);var R=e[4]^l,L=e[5]^p,j=e[14]^l,U=e[15]^p,D=e[24]^l,F=e[25]^p,z=e[34]^l,q=e[35]^p,H=e[44]^l,K=e[45]^p;l=s^(h<<1|d>>>31),p=f^(d<<1|h>>>31);var V=e[6]^l,G=e[7]^p,Y=e[16]^l,W=e[17]^p,J=e[26]^l,X=e[27]^p,Z=e[36]^l,$=e[37]^p,Q=e[46]^l,ee=e[47]^p;l=c^(r<<1|i>>>31),p=u^(i<<1|r>>>31);var te=e[8]^l,re=e[9]^p,ne=e[18]^l,ie=e[19]^p,oe=e[28]^l,ae=e[29]^p,se=e[38]^l,fe=e[39]^p,ce=e[48]^l,ue=e[49]^p,he=b,de=v,le=m<<4|y>>>28,pe=y<<4|m>>>28,be=g<<3|w>>>29,ve=w<<3|g>>>29,ye=E<<9|_>>>23,me=_<<9|E>>>23,ge=S<<18|A>>>14,we=A<<18|S>>>14,_e=I<<1|k>>>31,Ee=k<<1|I>>>31,Se=P<<12|x>>>20,Ae=x<<12|P>>>20,Ie=O<<10|T>>>22,ke=T<<10|O>>>22,xe=N<<13|M>>>19,Pe=M<<13|N>>>19,Oe=B<<2|C>>>30,Te=C<<2|B>>>30,Me=L<<30|R>>>2,Ne=R<<30|L>>>2,Be=j<<6|U>>>26,Ce=U<<6|j>>>26,Re=F<<11|D>>>21,Le=D<<11|F>>>21,je=z<<15|q>>>17,Ue=q<<15|z>>>17,De=K<<29|H>>>3,Fe=H<<29|K>>>3,ze=V<<28|G>>>4,qe=G<<28|V>>>4,He=W<<23|Y>>>9,Ke=Y<<23|W>>>9,Ve=J<<25|X>>>7,Ge=X<<25|J>>>7,Ye=Z<<21|$>>>11,We=$<<21|Z>>>11,Je=ee<<24|Q>>>8,Xe=Q<<24|ee>>>8,Ze=te<<27|re>>>5,$e=re<<27|te>>>5,Qe=ne<<20|ie>>>12,et=ie<<20|ne>>>12,tt=ae<<7|oe>>>25,rt=oe<<7|ae>>>25,nt=se<<8|fe>>>24,it=fe<<8|se>>>24,ot=ce<<14|ue>>>18,at=ue<<14|ce>>>18;e[0]=he^~Se&Re,e[1]=de^~Ae&Le,e[10]=ze^~Qe&be,e[11]=qe^~et&ve,e[20]=_e^~Be&Ve,e[21]=Ee^~Ce&Ge,e[30]=Ze^~le&Ie,e[31]=$e^~pe&ke,e[40]=Me^~He&tt,e[41]=Ne^~Ke&rt,e[2]=Se^~Re&Ye,e[3]=Ae^~Le&We,e[12]=Qe^~be&xe,e[13]=et^~ve&Pe,e[22]=Be^~Ve&nt,e[23]=Ce^~Ge&it,e[32]=le^~Ie&je,e[33]=pe^~ke&Ue,e[42]=He^~tt&ye,e[43]=Ke^~rt&me,e[4]=Re^~Ye&ot,e[5]=Le^~We&at,e[14]=be^~xe&De,e[15]=ve^~Pe&Fe,e[24]=Ve^~nt&ge,e[25]=Ge^~it&we,e[34]=Ie^~je&Je,e[35]=ke^~Ue&Xe,e[44]=tt^~ye&Oe,e[45]=rt^~me&Te,e[6]=Ye^~ot&he,e[7]=We^~at&de,e[16]=xe^~De&ze,e[17]=Pe^~Fe&qe,e[26]=nt^~ge&_e,e[27]=it^~we&Ee,e[36]=je^~Je&Ze,e[37]=Ue^~Xe&$e,e[46]=ye^~Oe&Me,e[47]=me^~Te&Ne,e[8]=ot^~he&Se,e[9]=at^~de&Ae,e[18]=De^~ze&Qe,e[19]=Fe^~qe&et,e[28]=ge^~_e&Be,e[29]=we^~Ee&Ce,e[38]=Je^~Ze&le,e[39]=Xe^~$e&pe,e[48]=Oe^~Me&He,e[49]=Te^~Ne&Ke,e[0]^=n[2*t],e[1]^=n[2*t+1]}}},function(e,t,r){"use strict";e.exports=r(379)(r(382))},function(e,t,r){"use strict";var n=r(380),i=r(381),o=r(172);function a(e,t){return void 0===e?t:(n.isBoolean(e,o.COMPRESSED_TYPE_INVALID),e)}e.exports=function(e){return{privateKeyVerify:function(t){return n.isBuffer(t,o.EC_PRIVATE_KEY_TYPE_INVALID),32===t.length&&e.privateKeyVerify(t)},privateKeyExport:function(t,r){n.isBuffer(t,o.EC_PRIVATE_KEY_TYPE_INVALID),n.isBufferLength(t,32,o.EC_PRIVATE_KEY_LENGTH_INVALID),r=a(r,!0);var s=e.privateKeyExport(t,r);return i.privateKeyExport(t,s,r)},privateKeyImport:function(t){if(n.isBuffer(t,o.EC_PRIVATE_KEY_TYPE_INVALID),(t=i.privateKeyImport(t))&&32===t.length&&e.privateKeyVerify(t))return t;throw new Error(o.EC_PRIVATE_KEY_IMPORT_DER_FAIL)},privateKeyNegate:function(t){return n.isBuffer(t,o.EC_PRIVATE_KEY_TYPE_INVALID),n.isBufferLength(t,32,o.EC_PRIVATE_KEY_LENGTH_INVALID),e.privateKeyNegate(t)},privateKeyModInverse:function(t){return n.isBuffer(t,o.EC_PRIVATE_KEY_TYPE_INVALID),n.isBufferLength(t,32,o.EC_PRIVATE_KEY_LENGTH_INVALID),e.privateKeyModInverse(t)},privateKeyTweakAdd:function(t,r){return n.isBuffer(t,o.EC_PRIVATE_KEY_TYPE_INVALID),n.isBufferLength(t,32,o.EC_PRIVATE_KEY_LENGTH_INVALID),n.isBuffer(r,o.TWEAK_TYPE_INVALID),n.isBufferLength(r,32,o.TWEAK_LENGTH_INVALID),e.privateKeyTweakAdd(t,r)},privateKeyTweakMul:function(t,r){return n.isBuffer(t,o.EC_PRIVATE_KEY_TYPE_INVALID),n.isBufferLength(t,32,o.EC_PRIVATE_KEY_LENGTH_INVALID),n.isBuffer(r,o.TWEAK_TYPE_INVALID),n.isBufferLength(r,32,o.TWEAK_LENGTH_INVALID),e.privateKeyTweakMul(t,r)},publicKeyCreate:function(t,r){return n.isBuffer(t,o.EC_PRIVATE_KEY_TYPE_INVALID),n.isBufferLength(t,32,o.EC_PRIVATE_KEY_LENGTH_INVALID),r=a(r,!0),e.publicKeyCreate(t,r)},publicKeyConvert:function(t,r){return n.isBuffer(t,o.EC_PUBLIC_KEY_TYPE_INVALID),n.isBufferLength2(t,33,65,o.EC_PUBLIC_KEY_LENGTH_INVALID),r=a(r,!0),e.publicKeyConvert(t,r)},publicKeyVerify:function(t){return n.isBuffer(t,o.EC_PUBLIC_KEY_TYPE_INVALID),e.publicKeyVerify(t)},publicKeyTweakAdd:function(t,r,i){return n.isBuffer(t,o.EC_PUBLIC_KEY_TYPE_INVALID),n.isBufferLength2(t,33,65,o.EC_PUBLIC_KEY_LENGTH_INVALID),n.isBuffer(r,o.TWEAK_TYPE_INVALID),n.isBufferLength(r,32,o.TWEAK_LENGTH_INVALID),i=a(i,!0),e.publicKeyTweakAdd(t,r,i)},publicKeyTweakMul:function(t,r,i){return n.isBuffer(t,o.EC_PUBLIC_KEY_TYPE_INVALID),n.isBufferLength2(t,33,65,o.EC_PUBLIC_KEY_LENGTH_INVALID),n.isBuffer(r,o.TWEAK_TYPE_INVALID),n.isBufferLength(r,32,o.TWEAK_LENGTH_INVALID),i=a(i,!0),e.publicKeyTweakMul(t,r,i)},publicKeyCombine:function(t,r){n.isArray(t,o.EC_PUBLIC_KEYS_TYPE_INVALID),n.isLengthGTZero(t,o.EC_PUBLIC_KEYS_LENGTH_INVALID);for(var i=0;i<t.length;++i)n.isBuffer(t[i],o.EC_PUBLIC_KEY_TYPE_INVALID),n.isBufferLength2(t[i],33,65,o.EC_PUBLIC_KEY_LENGTH_INVALID);return r=a(r,!0),e.publicKeyCombine(t,r)},signatureNormalize:function(t){return n.isBuffer(t,o.ECDSA_SIGNATURE_TYPE_INVALID),n.isBufferLength(t,64,o.ECDSA_SIGNATURE_LENGTH_INVALID),e.signatureNormalize(t)},signatureExport:function(t){n.isBuffer(t,o.ECDSA_SIGNATURE_TYPE_INVALID),n.isBufferLength(t,64,o.ECDSA_SIGNATURE_LENGTH_INVALID);var r=e.signatureExport(t);return i.signatureExport(r)},signatureImport:function(t){n.isBuffer(t,o.ECDSA_SIGNATURE_TYPE_INVALID),n.isLengthGTZero(t,o.ECDSA_SIGNATURE_LENGTH_INVALID);var r=i.signatureImport(t);if(r)return e.signatureImport(r);throw new Error(o.ECDSA_SIGNATURE_PARSE_DER_FAIL)},signatureImportLax:function(t){n.isBuffer(t,o.ECDSA_SIGNATURE_TYPE_INVALID),n.isLengthGTZero(t,o.ECDSA_SIGNATURE_LENGTH_INVALID);var r=i.signatureImportLax(t);if(r)return e.signatureImport(r);throw new Error(o.ECDSA_SIGNATURE_PARSE_DER_FAIL)},sign:function(t,r,i){n.isBuffer(t,o.MSG32_TYPE_INVALID),n.isBufferLength(t,32,o.MSG32_LENGTH_INVALID),n.isBuffer(r,o.EC_PRIVATE_KEY_TYPE_INVALID),n.isBufferLength(r,32,o.EC_PRIVATE_KEY_LENGTH_INVALID);var a=null,s=null;return void 0!==i&&(n.isObject(i,o.OPTIONS_TYPE_INVALID),void 0!==i.data&&(n.isBuffer(i.data,o.OPTIONS_DATA_TYPE_INVALID),n.isBufferLength(i.data,32,o.OPTIONS_DATA_LENGTH_INVALID),a=i.data),void 0!==i.noncefn&&(n.isFunction(i.noncefn,o.OPTIONS_NONCEFN_TYPE_INVALID),s=i.noncefn)),e.sign(t,r,s,a)},verify:function(t,r,i){return n.isBuffer(t,o.MSG32_TYPE_INVALID),n.isBufferLength(t,32,o.MSG32_LENGTH_INVALID),n.isBuffer(r,o.ECDSA_SIGNATURE_TYPE_INVALID),n.isBufferLength(r,64,o.ECDSA_SIGNATURE_LENGTH_INVALID),n.isBuffer(i,o.EC_PUBLIC_KEY_TYPE_INVALID),n.isBufferLength2(i,33,65,o.EC_PUBLIC_KEY_LENGTH_INVALID),e.verify(t,r,i)},recover:function(t,r,i,s){return n.isBuffer(t,o.MSG32_TYPE_INVALID),n.isBufferLength(t,32,o.MSG32_LENGTH_INVALID),n.isBuffer(r,o.ECDSA_SIGNATURE_TYPE_INVALID),n.isBufferLength(r,64,o.ECDSA_SIGNATURE_LENGTH_INVALID),n.isNumber(i,o.RECOVERY_ID_TYPE_INVALID),n.isNumberInInterval(i,-1,4,o.RECOVERY_ID_VALUE_INVALID),s=a(s,!0),e.recover(t,r,i,s)},ecdh:function(t,r){return n.isBuffer(t,o.EC_PUBLIC_KEY_TYPE_INVALID),n.isBufferLength2(t,33,65,o.EC_PUBLIC_KEY_LENGTH_INVALID),n.isBuffer(r,o.EC_PRIVATE_KEY_TYPE_INVALID),n.isBufferLength(r,32,o.EC_PRIVATE_KEY_LENGTH_INVALID),e.ecdh(t,r)},ecdhUnsafe:function(t,r,i){return n.isBuffer(t,o.EC_PUBLIC_KEY_TYPE_INVALID),n.isBufferLength2(t,33,65,o.EC_PUBLIC_KEY_LENGTH_INVALID),n.isBuffer(r,o.EC_PRIVATE_KEY_TYPE_INVALID),n.isBufferLength(r,32,o.EC_PRIVATE_KEY_LENGTH_INVALID),i=a(i,!0),e.ecdhUnsafe(t,r,i)}}}},function(e,t,r){"use strict";(function(Buffer){var e=Object.prototype.toString;t.isArray=function(e,t){if(!Array.isArray(e))throw TypeError(t)},t.isBoolean=function(t,r){if("[object Boolean]"!==e.call(t))throw TypeError(r)},t.isBuffer=function(e,t){if(!Buffer.isBuffer(e))throw TypeError(t)},t.isFunction=function(t,r){if("[object Function]"!==e.call(t))throw TypeError(r)},t.isNumber=function(t,r){if("[object Number]"!==e.call(t))throw TypeError(r)},t.isObject=function(t,r){if("[object Object]"!==e.call(t))throw TypeError(r)},t.isBufferLength=function(e,t,r){if(e.length!==t)throw RangeError(r)},t.isBufferLength2=function(e,t,r,n){if(e.length!==t&&e.length!==r)throw RangeError(n)},t.isLengthGTZero=function(e,t){if(0===e.length)throw RangeError(t)},t.isNumberInInterval=function(e,t,r,n){if(e<=t||e>=r)throw RangeError(n)}}).call(t,r(3).Buffer)},function(e,t,r){"use strict";var Buffer=r(4).Buffer,n=r(107),i=Buffer.from([48,129,211,2,1,1,4,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,160,129,133,48,129,130,2,1,1,48,44,6,7,42,134,72,206,61,1,1,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,255,255,252,47,48,6,4,1,0,4,1,7,4,33,2,121,190,102,126,249,220,187,172,85,160,98,149,206,135,11,7,2,155,252,219,45,206,40,217,89,242,129,91,22,248,23,152,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,186,174,220,230,175,72,160,59,191,210,94,140,208,54,65,65,2,1,1,161,36,3,34,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),o=Buffer.from([48,130,1,19,2,1,1,4,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,160,129,165,48,129,162,2,1,1,48,44,6,7,42,134,72,206,61,1,1,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,255,255,252,47,48,6,4,1,0,4,1,7,4,65,4,121,190,102,126,249,220,187,172,85,160,98,149,206,135,11,7,2,155,252,219,45,206,40,217,89,242,129,91,22,248,23,152,72,58,218,119,38,163,196,101,93,164,251,252,14,17,8,168,253,23,180,72,166,133,84,25,156,71,208,143,251,16,212,184,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,186,174,220,230,175,72,160,59,191,210,94,140,208,54,65,65,2,1,1,161,68,3,66,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);t.privateKeyExport=function(e,t,r){var n=Buffer.from(r?i:o);return e.copy(n,r?8:9),t.copy(n,r?181:214),n},t.privateKeyImport=function(e){var t=e.length,r=0;if(!(t<r+1||48!==e[r])&&!(t<(r+=1)+1)&&128&e[r]){var n=127&e[r];if(r+=1,!(n<1||n>2||t<r+n)){var i=e[r+n-1]|(n>1?e[r+n-2]<<8:0);if(!(t<(r+=n)+i||t<r+3||2!==e[r]||1!==e[r+1]||1!==e[r+2]||t<(r+=3)+2||4!==e[r]||e[r+1]>32||t<r+2+e[r+1]))return e.slice(r+2,r+2+e[r+1])}}},t.signatureExport=function(e){for(var t=Buffer.concat([Buffer.from([0]),e.r]),r=33,i=0;r>1&&0===t[i]&&!(128&t[i+1]);--r,++i);for(var o=Buffer.concat([Buffer.from([0]),e.s]),a=33,s=0;a>1&&0===o[s]&&!(128&o[s+1]);--a,++s);return n.encode(t.slice(i),o.slice(s))},t.signatureImport=function(e){var t=Buffer.alloc(32,0),r=Buffer.alloc(32,0);try{var i=n.decode(e);if(33===i.r.length&&0===i.r[0]&&(i.r=i.r.slice(1)),i.r.length>32)throw new Error("R length is too long");if(33===i.s.length&&0===i.s[0]&&(i.s=i.s.slice(1)),i.s.length>32)throw new Error("S length is too long")}catch(e){return}return i.r.copy(t,32-i.r.length),i.s.copy(r,32-i.s.length),{r:t,s:r}},t.signatureImportLax=function(e){var t=Buffer.alloc(32,0),r=Buffer.alloc(32,0),n=e.length,i=0;if(48===e[i++]){var o=e[i++];if(!(128&o&&(i+=o-128)>n)&&2===e[i++]){var a=e[i++];if(128&a){if(i+(o=a-128)>n)return;for(;o>0&&0===e[i];i+=1,o-=1);for(a=0;o>0;i+=1,o-=1)a=(a<<8)+e[i]}if(!(a>n-i)){var s=i;if(i+=a,2===e[i++]){var f=e[i++];if(128&f){if(i+(o=f-128)>n)return;for(;o>0&&0===e[i];i+=1,o-=1);for(f=0;o>0;i+=1,o-=1)f=(f<<8)+e[i]}if(!(f>n-i)){var c=i;for(i+=f;a>0&&0===e[s];a-=1,s+=1);if(!(a>32)){var u=e.slice(s,s+a);for(u.copy(t,32-u.length);f>0&&0===e[c];f-=1,c+=1);if(!(f>32)){var h=e.slice(c,c+f);return h.copy(r,32-h.length),{r:t,s:r}}}}}}}}}},function(e,t,r){"use strict";var Buffer=r(4).Buffer,n=r(36),i=r(9),o=r(24).ec,a=r(172),s=new o("secp256k1"),f=s.curve;function c(e){var t=e[0];switch(t){case 2:case 3:return 33!==e.length?null:function(e,t){var r=new i(t);if(r.cmp(f.p)>=0)return null;var n=(r=r.toRed(f.red)).redSqr().redIMul(r).redIAdd(f.b).redSqrt();return 3===e!==n.isOdd()&&(n=n.redNeg()),s.keyPair({pub:{x:r,y:n}})}(t,e.slice(1,33));case 4:case 6:case 7:return 65!==e.length?null:function(e,t,r){var n=new i(t),o=new i(r);if(n.cmp(f.p)>=0||o.cmp(f.p)>=0)return null;if(n=n.toRed(f.red),o=o.toRed(f.red),(6===e||7===e)&&o.isOdd()!==(7===e))return null;var a=n.redSqr().redIMul(n);return o.redSqr().redISub(a.redIAdd(f.b)).isZero()?s.keyPair({pub:{x:n,y:o}}):null}(t,e.slice(1,33),e.slice(33,65));default:return null}}t.privateKeyVerify=function(e){var t=new i(e);return t.cmp(f.n)<0&&!t.isZero()},t.privateKeyExport=function(e,t){var r=new i(e);if(r.cmp(f.n)>=0||r.isZero())throw new Error(a.EC_PRIVATE_KEY_EXPORT_DER_FAIL);return Buffer.from(s.keyFromPrivate(e).getPublic(t,!0))},t.privateKeyNegate=function(e){var t=new i(e);return t.isZero()?Buffer.alloc(32):f.n.sub(t).umod(f.n).toArrayLike(Buffer,"be",32)},t.privateKeyModInverse=function(e){var t=new i(e);if(t.cmp(f.n)>=0||t.isZero())throw new Error(a.EC_PRIVATE_KEY_RANGE_INVALID);return t.invm(f.n).toArrayLike(Buffer,"be",32)},t.privateKeyTweakAdd=function(e,t){var r=new i(t);if(r.cmp(f.n)>=0)throw new Error(a.EC_PRIVATE_KEY_TWEAK_ADD_FAIL);if(r.iadd(new i(e)),r.cmp(f.n)>=0&&r.isub(f.n),r.isZero())throw new Error(a.EC_PRIVATE_KEY_TWEAK_ADD_FAIL);return r.toArrayLike(Buffer,"be",32)},t.privateKeyTweakMul=function(e,t){var r=new i(t);if(r.cmp(f.n)>=0||r.isZero())throw new Error(a.EC_PRIVATE_KEY_TWEAK_MUL_FAIL);return r.imul(new i(e)),r.cmp(f.n)&&(r=r.umod(f.n)),r.toArrayLike(Buffer,"be",32)},t.publicKeyCreate=function(e,t){var r=new i(e);if(r.cmp(f.n)>=0||r.isZero())throw new Error(a.EC_PUBLIC_KEY_CREATE_FAIL);return Buffer.from(s.keyFromPrivate(e).getPublic(t,!0))},t.publicKeyConvert=function(e,t){var r=c(e);if(null===r)throw new Error(a.EC_PUBLIC_KEY_PARSE_FAIL);return Buffer.from(r.getPublic(t,!0))},t.publicKeyVerify=function(e){return null!==c(e)},t.publicKeyTweakAdd=function(e,t,r){var n=c(e);if(null===n)throw new Error(a.EC_PUBLIC_KEY_PARSE_FAIL);if((t=new i(t)).cmp(f.n)>=0)throw new Error(a.EC_PUBLIC_KEY_TWEAK_ADD_FAIL);return Buffer.from(f.g.mul(t).add(n.pub).encode(!0,r))},t.publicKeyTweakMul=function(e,t,r){var n=c(e);if(null===n)throw new Error(a.EC_PUBLIC_KEY_PARSE_FAIL);if((t=new i(t)).cmp(f.n)>=0||t.isZero())throw new Error(a.EC_PUBLIC_KEY_TWEAK_MUL_FAIL);return Buffer.from(n.pub.mul(t).encode(!0,r))},t.publicKeyCombine=function(e,t){for(var r=new Array(e.length),n=0;n<e.length;++n)if(r[n]=c(e[n]),null===r[n])throw new Error(a.EC_PUBLIC_KEY_PARSE_FAIL);for(var i=r[0].pub,o=1;o<r.length;++o)i=i.add(r[o].pub);if(i.isInfinity())throw new Error(a.EC_PUBLIC_KEY_COMBINE_FAIL);return Buffer.from(i.encode(!0,t))},t.signatureNormalize=function(e){var t=new i(e.slice(0,32)),r=new i(e.slice(32,64));if(t.cmp(f.n)>=0||r.cmp(f.n)>=0)throw new Error(a.ECDSA_SIGNATURE_PARSE_FAIL);var n=Buffer.from(e);return 1===r.cmp(s.nh)&&f.n.sub(r).toArrayLike(Buffer,"be",32).copy(n,32),n},t.signatureExport=function(e){var t=e.slice(0,32),r=e.slice(32,64);if(new i(t).cmp(f.n)>=0||new i(r).cmp(f.n)>=0)throw new Error(a.ECDSA_SIGNATURE_PARSE_FAIL);return{r:t,s:r}},t.signatureImport=function(e){var t=new i(e.r);t.cmp(f.n)>=0&&(t=new i(0));var r=new i(e.s);return r.cmp(f.n)>=0&&(r=new i(0)),Buffer.concat([t.toArrayLike(Buffer,"be",32),r.toArrayLike(Buffer,"be",32)])},t.sign=function(e,t,r,n){if("function"==typeof r){var o=r;r=function(r){var s=o(e,t,null,n,r);if(!Buffer.isBuffer(s)||32!==s.length)throw new Error(a.ECDSA_SIGN_FAIL);return new i(s)}}var c=new i(t);if(c.cmp(f.n)>=0||c.isZero())throw new Error(a.ECDSA_SIGN_FAIL);var u=s.sign(e,t,{canonical:!0,k:r,pers:n});return{signature:Buffer.concat([u.r.toArrayLike(Buffer,"be",32),u.s.toArrayLike(Buffer,"be",32)]),recovery:u.recoveryParam}},t.verify=function(e,t,r){var n={r:t.slice(0,32),s:t.slice(32,64)},o=new i(n.r),u=new i(n.s);if(o.cmp(f.n)>=0||u.cmp(f.n)>=0)throw new Error(a.ECDSA_SIGNATURE_PARSE_FAIL);if(1===u.cmp(s.nh)||o.isZero()||u.isZero())return!1;var h=c(r);if(null===h)throw new Error(a.EC_PUBLIC_KEY_PARSE_FAIL);return s.verify(e,n,{x:h.pub.x,y:h.pub.y})},t.recover=function(e,t,r,n){var o={r:t.slice(0,32),s:t.slice(32,64)},c=new i(o.r),u=new i(o.s);if(c.cmp(f.n)>=0||u.cmp(f.n)>=0)throw new Error(a.ECDSA_SIGNATURE_PARSE_FAIL);try{if(c.isZero()||u.isZero())throw new Error;var h=s.recoverPubKey(e,o,r);return Buffer.from(h.encode(!0,n))}catch(e){throw new Error(a.ECDSA_RECOVER_FAIL)}},t.ecdh=function(e,r){var i=t.ecdhUnsafe(e,r,!0);return n("sha256").update(i).digest()},t.ecdhUnsafe=function(e,t,r){var n=c(e);if(null===n)throw new Error(a.EC_PUBLIC_KEY_PARSE_FAIL);var o=new i(t);if(o.cmp(f.n)>=0||o.isZero())throw new Error(a.ECDH_FAIL);return Buffer.from(n.pub.mul(o).encode(!0,r))}},function(e,t,r){(function(Buffer){const e=r(58);function n(e,t){if("00"===e.slice(0,2))throw new Error("invalid RLP: extra zeros");return parseInt(e,t)}function i(e,t){if(e<56)return new Buffer([e+t]);var r=a(e),n=a(t+55+r.length/2);return new Buffer(n+r,"hex")}function o(e){return"0x"===e.slice(0,2)}function a(e){var t=e.toString(16);return t.length%2&&(t="0"+t),t}function s(e){if(!Buffer.isBuffer(e))if("string"==typeof e)e=o(e)?new Buffer(((r="string"!=typeof(n=e)?n:o(n)?n.slice(2):n).length%2&&(r="0"+r),r),"hex"):new Buffer(e);else if("number"==typeof e)e?(t=a(e),e=new Buffer(t,"hex")):e=new Buffer([]);else if(null===e||void 0===e)e=new Buffer([]);else{if(!e.toArray)throw new Error("invalid type");e=new Buffer(e.toArray())}var t,r,n;return e}t.encode=function(e){if(e instanceof Array){for(var r=[],n=0;n<e.length;n++)r.push(t.encode(e[n]));var o=Buffer.concat(r);return Buffer.concat([i(o.length,192),o])}return 1===(e=s(e)).length&&e[0]<128?e:Buffer.concat([i(e.length,128),e])},t.decode=function(t,r){if(!t||0===t.length)return new Buffer([]);var i=function e(t){var r,i,o,a,s;var f=[];var c=t[0];if(c<=127)return{data:t.slice(0,1),remainder:t.slice(1)};if(c<=183){if(r=c-127,o=128===c?new Buffer([]):t.slice(1,r),2===r&&o[0]<128)throw new Error("invalid rlp encoding: byte must be less 0x80");return{data:o,remainder:t.slice(r)}}if(c<=191){if(i=c-182,r=n(t.slice(1,i).toString("hex"),16),(o=t.slice(i,r+i)).length<r)throw new Error("invalid RLP");return{data:o,remainder:t.slice(r+i)}}if(c<=247){for(r=c-191,a=t.slice(1,r);a.length;)s=e(a),f.push(s.data),a=s.remainder;return{data:f,remainder:t.slice(r)}}i=c-246,r=n(t.slice(1,i).toString("hex"),16);var u=i+r;if(u>t.length)throw new Error("invalid rlp: total length is larger than the data");if(0===(a=t.slice(i,u)).length)throw new Error("invalid rlp, List has a invalid length");for(;a.length;)s=e(a),f.push(s.data),a=s.remainder;return{data:f,remainder:t.slice(u)}}(t=s(t));return r?i:(e.equal(i.remainder.length,0,"invalid remainder"),i.data)},t.getLength=function(e){if(!e||0===e.length)return new Buffer([]);var t=(e=s(e))[0];if(t<=127)return e.length;if(t<=183)return t-127;if(t<=191)return t-182;if(t<=247)return t-191;var r=t-246;return r+n(e.slice(1,r).toString("hex"),16)}}).call(t,r(3).Buffer)},function(e,t,r){"use strict";(function(Buffer){var t=r(173),n=r(385);function i(e){var t=e;if("string"!=typeof t)throw new Error("[ethjs-util] while padding to even, value must be string, is currently "+typeof t+", while padToEven.");return t.length%2&&(t="0"+t),t}function o(e){return"0x"+i(e.toString(16))}e.exports={arrayContainsArray:function(e,t,r){if(!0!==Array.isArray(e))throw new Error("[ethjs-util] method arrayContainsArray requires input 'superset' to be an array got type '"+typeof e+"'");if(!0!==Array.isArray(t))throw new Error("[ethjs-util] method arrayContainsArray requires input 'subset' to be an array got type '"+typeof t+"'");return t[Boolean(r)?"some":"every"](function(t){return e.indexOf(t)>=0})},intToBuffer:function(e){var t=o(e);return new Buffer(t.slice(2),"hex")},getBinarySize:function(e){if("string"!=typeof e)throw new Error("[ethjs-util] while getting binary size, method getBinarySize requires input 'str' to be type String, got '"+typeof e+"'.");return Buffer.byteLength(e,"utf8")},isHexPrefixed:t,stripHexPrefix:n,padToEven:i,intToHex:o,fromAscii:function(e){for(var t="",r=0;r<e.length;r++){var n=e.charCodeAt(r).toString(16);t+=n.length<2?"0"+n:n}return"0x"+t},fromUtf8:function(e){return"0x"+i(new Buffer(e,"utf8").toString("hex")).replace(/^0+|0+$/g,"")},toAscii:function(e){var t="",r=0,n=e.length;for("0x"===e.substring(0,2)&&(r=2);r<n;r+=2){var i=parseInt(e.substr(r,2),16);t+=String.fromCharCode(i)}return t},toUtf8:function(e){return new Buffer(i(n(e).replace(/^0+|0+$/g,"")),"hex").toString("utf8")},getKeys:function(e,t,r){if(!Array.isArray(e))throw new Error("[ethjs-util] method getKeys expecting type Array as 'params' input, got '"+typeof e+"'");if("string"!=typeof t)throw new Error("[ethjs-util] method getKeys expecting type String for input 'key' got '"+typeof t+"'.");for(var n=[],i=0;i<e.length;i++){var o=e[i][t];if(r&&!o)o="";else if("string"!=typeof o)throw new Error("invalid abi");n.push(o)}return n},isHexString:function(e,t){return!("string"!=typeof e||!e.match(/^0x[0-9A-Fa-f]*$/)||t&&e.length!==2+2*t)}}}).call(t,r(3).Buffer)},function(e,t,r){var n=r(173);e.exports=function(e){return"string"!=typeof e?e:n(e)?e.slice(2):e}},function(e,t,r){"use strict";(function(Buffer){var t=r(73),n=r(387),i=t.BN,o=new i("7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0",16),a=function(){function e(r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),r=r||{};var n=[{name:"nonce",length:32,allowLess:!0,default:new Buffer([])},{name:"gasPrice",length:32,allowLess:!0,default:new Buffer([])},{name:"gasLimit",alias:"gas",length:32,allowLess:!0,default:new Buffer([])},{name:"to",allowZero:!0,length:20,default:new Buffer([])},{name:"value",length:32,allowLess:!0,default:new Buffer([])},{name:"data",alias:"input",allowZero:!0,default:new Buffer([])},{name:"v",allowZero:!0,default:new Buffer([28])},{name:"r",length:32,allowZero:!0,allowLess:!0,default:new Buffer([])},{name:"s",length:32,allowZero:!0,allowLess:!0,default:new Buffer([])}];t.defineProperties(this,n,r),Object.defineProperty(this,"from",{enumerable:!0,configurable:!0,get:this.getSenderAddress.bind(this)});var i=t.bufferToInt(this.v),o=Math.floor((i-35)/2);o<0&&(o=0),this._chainId=o||r.chainId||0,this._homestead=!0}return e.prototype.toCreationAddress=function(){return""===this.to.toString("hex")},e.prototype.hash=function(e){void 0===e&&(e=!0);var r=void 0;if(e)r=this.raw;else if(this._chainId>0){var n=this.raw.slice();this.v=this._chainId,this.r=0,this.s=0,r=this.raw,this.raw=n}else r=this.raw.slice(0,6);return t.rlphash(r)},e.prototype.getChainId=function(){return this._chainId},e.prototype.getSenderAddress=function(){if(this._from)return this._from;var e=this.getSenderPublicKey();return this._from=t.publicToAddress(e),this._from},e.prototype.getSenderPublicKey=function(){if(!(this._senderPubKey&&this._senderPubKey.length||this.verifySignature()))throw new Error("Invalid Signature");return this._senderPubKey},e.prototype.verifySignature=function(){var e=this.hash(!1);if(this._homestead&&1===new i(this.s).cmp(o))return!1;try{var r=t.bufferToInt(this.v);this._chainId>0&&(r-=2*this._chainId+8),this._senderPubKey=t.ecrecover(e,r,this.r,this.s)}catch(e){return!1}return!!this._senderPubKey},e.prototype.sign=function(e){var r=this.hash(!1),n=t.ecsign(r,e);this._chainId>0&&(n.v+=2*this._chainId+8),Object.assign(this,n)},e.prototype.getDataFee=function(){for(var e=this.raw[5],t=new i(0),r=0;r<e.length;r++)0===e[r]?t.iaddn(n.txDataZeroGas.v):t.iaddn(n.txDataNonZeroGas.v);return t},e.prototype.getBaseFee=function(){var e=this.getDataFee().iaddn(n.txGas.v);return this._homestead&&this.toCreationAddress()&&e.iaddn(n.txCreation.v),e},e.prototype.getUpfrontCost=function(){return new i(this.gasLimit).imul(new i(this.gasPrice)).iadd(new i(this.value))},e.prototype.validate=function(e){var t=[];return this.verifySignature()||t.push("Invalid Signature"),this.getBaseFee().cmp(new i(this.gasLimit))>0&&t.push(["gas limit is too low. Need at least "+this.getBaseFee()]),void 0===e||!1===e?0===t.length:t.join(" ")},e}();e.exports=a}).call(t,r(3).Buffer)},function(e,t){e.exports={genesisGasLimit:{v:5e3,d:"Gas limit of the Genesis block."},genesisDifficulty:{v:17179869184,d:"Difficulty of the Genesis block."},genesisNonce:{v:"0x0000000000000042",d:"the geneis nonce"},genesisExtraData:{v:"0x11bbe8db4e347b4e8c937c1c8370e4b5ed33adb3db69cbdb7a38e1e50b1b82fa",d:"extra data "},genesisHash:{v:"0xd4e56740f876aef8c010b86a40d5f56745a118d0906a34e69aec8c0db1cb8fa3",d:"genesis hash"},genesisStateRoot:{v:"0xd7f8974fb5ac78d9ac099b9ad5018bedc2ce0a72dad1827a1709da30580f0544",d:"the genesis state root"},minGasLimit:{v:5e3,d:"Minimum the gas limit may ever be."},gasLimitBoundDivisor:{v:1024,d:"The bound divisor of the gas limit, used in update calculations."},minimumDifficulty:{v:131072,d:"The minimum that the difficulty may ever be."},difficultyBoundDivisor:{v:2048,d:"The bound divisor of the difficulty, used in the update calculations."},durationLimit:{v:13,d:"The decision boundary on the blocktime duration used to determine whether difficulty should go up or not."},maximumExtraDataSize:{v:32,d:"Maximum size extra data may be after Genesis."},epochDuration:{v:3e4,d:"Duration between proof-of-work epochs."},stackLimit:{v:1024,d:"Maximum size of VM stack allowed."},callCreateDepth:{v:1024,d:"Maximum depth of call/create stack."},tierStepGas:{v:[0,2,3,5,8,10,20],d:"Once per operation, for a selection of them."},expGas:{v:10,d:"Once per EXP instuction."},expByteGas:{v:10,d:"Times ceil(log256(exponent)) for the EXP instruction."},sha3Gas:{v:30,d:"Once per SHA3 operation."},sha3WordGas:{v:6,d:"Once per word of the SHA3 operation's data."},sloadGas:{v:50,d:"Once per SLOAD operation."},sstoreSetGas:{v:2e4,d:"Once per SSTORE operation if the zeroness changes from zero."},sstoreResetGas:{v:5e3,d:"Once per SSTORE operation if the zeroness does not change from zero."},sstoreRefundGas:{v:15e3,d:"Once per SSTORE operation if the zeroness changes to zero."},jumpdestGas:{v:1,d:"Refunded gas, once per SSTORE operation if the zeroness changes to zero."},logGas:{v:375,d:"Per LOG* operation."},logDataGas:{v:8,d:"Per byte in a LOG* operation's data."},logTopicGas:{v:375,d:"Multiplied by the * of the LOG*, per LOG transaction. e.g. LOG0 incurs 0 * c_txLogTopicGas, LOG4 incurs 4 * c_txLogTopicGas."},createGas:{v:32e3,d:"Once per CREATE operation & contract-creation transaction."},callGas:{v:40,d:"Once per CALL operation & message call transaction."},callStipend:{v:2300,d:"Free gas given at beginning of call."},callValueTransferGas:{v:9e3,d:"Paid for CALL when the value transfor is non-zero."},callNewAccountGas:{v:25e3,d:"Paid for CALL when the destination address didn't exist prior."},suicideRefundGas:{v:24e3,d:"Refunded following a suicide operation."},memoryGas:{v:3,d:"Times the address of the (highest referenced byte in memory + 1). NOTE: referencing happens on read, write and in instructions such as RETURN and CALL."},quadCoeffDiv:{v:512,d:"Divisor for the quadratic particle of the memory cost equation."},createDataGas:{v:200,d:""},txGas:{v:21e3,d:"Per transaction. NOTE: Not payable on data of calls between transactions."},txCreation:{v:32e3,d:"the cost of creating a contract via tx"},txDataZeroGas:{v:4,d:"Per byte of data attached to a transaction that equals zero. NOTE: Not payable on data of calls between transactions."},txDataNonZeroGas:{v:68,d:"Per byte of data attached to a transaction that is not equal to zero. NOTE: Not payable on data of calls between transactions."},copyGas:{v:3,d:"Multiplied by the number of 32-byte words that are copied (round up) for any *COPY operation and added."},ecrecoverGas:{v:3e3,d:""},sha256Gas:{v:60,d:""},sha256WordGas:{v:12,d:""},ripemd160Gas:{v:600,d:""},ripemd160WordGas:{v:120,d:""},identityGas:{v:15,d:""},identityWordGas:{v:3,d:""},minerReward:{v:"5000000000000000000",d:"the amount a miner get rewarded for mining a block"},ommerReward:{v:"625000000000000000",d:"The amount of wei a miner of an uncle block gets for being inculded in the blockchain"},niblingReward:{v:"156250000000000000",d:"the amount a miner gets for inculding a uncle"},homeSteadForkNumber:{v:115e4,d:"the block that the Homestead fork started at"},homesteadRepriceForkNumber:{v:2463e3,d:"the block that the Homestead Reprice (EIP150) fork started at"},timebombPeriod:{v:1e5,d:"Exponential difficulty timebomb period"},freeBlockPeriod:{v:2}}},function(e,t,r){(function(Buffer){var t=r(108),n=r(175);function i(e){return Buffer.isBuffer(e)}function o(e){return"string"==typeof e&&/^([0-9a-f]{2})+$/i.test(e)}function a(e,t){var r=e.toJSON();function i(i){if(!e(i))return!1;if(i.length===t)return!0;throw n.tfCustomError(r+"(Length: "+t+")",r+"(Length: "+i.length+")")}return i.toJSON=function(){return r},i}var s=a.bind(null,t.Array),f=a.bind(null,i),c=a.bind(null,o),u=a.bind(null,t.String),h=Math.pow(2,53)-1;var d={ArrayN:s,Buffer:i,BufferN:f,Finite:function(e){return"number"==typeof e&&isFinite(e)},Hex:o,HexN:c,Int8:function(e){return e<<24>>24===e},Int16:function(e){return e<<16>>16===e},Int32:function(e){return(0|e)===e},StringN:u,UInt8:function(e){return(255&e)===e},UInt16:function(e){return(65535&e)===e},UInt32:function(e){return e>>>0===e},UInt53:function(e){return"number"==typeof e&&e>=0&&e<=h&&Math.floor(e)===e}};for(var l in d)d[l].toJSON=function(e){return e}.bind(null,l);e.exports=d}).call(t,r(3).Buffer)},function(e,t,r){var n=r(26),i={};for(var o in n){i[n[o]]=o}e.exports=i},function(e,t,r){var Buffer=r(4).Buffer,n=r(17),i=r(177),o=r(14),a=r(26);function s(e){return e===a.OP_0||n.isCanonicalSignature(e)}function f(e,t){var r=n.decompile(e);return!(r.length<2)&&(r[0]===a.OP_0&&(t?r.slice(1).every(s):r.slice(1).every(n.isCanonicalSignature)))}f.toJSON=function(){return"multisig input"};var c=Buffer.allocUnsafe(0);function u(e,t){if(o([s],e),t){var r=i.decode(t);if(e.length<r.m)throw new TypeError("Not enough signatures provided");if(e.length>r.pubKeys.length)throw new TypeError("Too many signatures provided")}return[].concat(c,e.map(function(e){return e===a.OP_0?c:e}))}function h(e,t){return o(o.Array,e),o(f,e,t),e.slice(1)}e.exports={check:f,decode:function(e,t){return h(n.decompile(e),t)},decodeStack:h,encode:function(e,t){return n.compile(u(e,t))},encodeStack:u}},function(e,t,r){var n=r(17),i=r(19),o=r(14),a=r(26);function s(e){var t=n.compile(e);return t.length>1&&t[0]===a.OP_RETURN}s.toJSON=function(){return"null data output"},e.exports={output:{check:s,decode:function(e){return o(s,e),e.slice(2)},encode:function(e){return o(i.Buffer,e),n.compile([a.OP_RETURN,e])}}}},function(e,t,r){var n=r(17),i=r(14);function o(e){var t=n.decompile(e);return 1===t.length&&n.isCanonicalSignature(t[0])}function a(e){return i(n.isCanonicalSignature,e),[e]}function s(e){return i(i.Array,e),i(o,e),e[0]}o.toJSON=function(){return"pubKey input"},e.exports={check:o,decode:function(e){return s(n.decompile(e))},decodeStack:s,encode:function(e){return n.compile(a(e))},encodeStack:a}},function(e,t,r){var n=r(17),i=r(14),o=r(26);function a(e){var t=n.decompile(e);return 2===t.length&&n.isCanonicalPubKey(t[0])&&t[1]===o.OP_CHECKSIG}a.toJSON=function(){return"pubKey output"},e.exports={check:a,decode:function(e){var t=n.decompile(e);return i(a,t),t[0]},encode:function(e){return i(n.isCanonicalPubKey,e),n.compile([e,o.OP_CHECKSIG])}}},function(e,t,r){var n=r(17),i=r(14);function o(e){var t=n.decompile(e);return 2===t.length&&n.isCanonicalSignature(t[0])&&n.isCanonicalPubKey(t[1])}function a(e,t){return i({signature:n.isCanonicalSignature,pubKey:n.isCanonicalPubKey},{signature:e,pubKey:t}),[e,t]}function s(e){return i(i.Array,e),i(o,e),{signature:e[0],pubKey:e[1]}}o.toJSON=function(){return"pubKeyHash input"},e.exports={check:o,decode:function(e){return s(n.decompile(e))},decodeStack:s,encode:function(e,t){return n.compile(a(e,t))},encodeStack:a}},function(e,t,r){var n=r(17),i=r(19),o=r(14),a=r(26);function s(e){var t=n.compile(e);return 25===t.length&&t[0]===a.OP_DUP&&t[1]===a.OP_HASH160&&20===t[2]&&t[23]===a.OP_EQUALVERIFY&&t[24]===a.OP_CHECKSIG}s.toJSON=function(){return"pubKeyHash output"},e.exports={check:s,decode:function(e){return o(s,e),e.slice(3,23)},encode:function(e){return o(i.Hash160bit,e),n.compile([a.OP_DUP,a.OP_HASH160,e,a.OP_EQUALVERIFY,a.OP_CHECKSIG])}}},function(e,t,r){e.exports={input:r(397),output:r(398)}},function(e,t,r){var Buffer=r(4).Buffer,n=r(17),i=r(14),o=r(110),a=r(111),s=r(112),f=r(178),c=r(179);function u(e,t){var r=n.decompile(e);if(r.length<1)return!1;var i=r[r.length-1];if(!Buffer.isBuffer(i))return!1;var u=n.decompile(n.compile(r.slice(0,-1))),h=n.decompile(i);return 0!==h.length&&(!!n.isPushOnly(u)&&(1===r.length?c.check(h)||f.check(h):!(!s.input.check(u)||!s.output.check(h))||(!(!o.input.check(u,t)||!o.output.check(h))||!(!a.input.check(u)||!a.output.check(h)))))}function h(e,t){var r=n.compile(t);return[].concat(e,r)}function d(e){return i(i.Array,e),i(u,e),{redeemScriptStack:e.slice(0,-1),redeemScript:e[e.length-1]}}u.toJSON=function(){return"scriptHash input"},e.exports={check:u,decode:function(e){var t=d(n.decompile(e));return t.redeemScriptSig=n.compile(t.redeemScriptStack),delete t.redeemScriptStack,t},decodeStack:d,encode:function(e,t){var r=n.decompile(e);return n.compile(h(r,t))},encodeStack:h}},function(e,t,r){var n=r(17),i=r(19),o=r(14),a=r(26);function s(e){var t=n.compile(e);return 23===t.length&&t[0]===a.OP_HASH160&&20===t[1]&&t[22]===a.OP_EQUAL}s.toJSON=function(){return"scriptHash output"},e.exports={check:s,decode:function(e){return o(s,e),e.slice(2,22)},encode:function(e){return o(i.Hash160bit,e),n.compile([a.OP_HASH160,e,a.OP_EQUAL])}}},function(e,t,r){e.exports={input:r(400),output:r(178)}},function(e,t,r){var n=r(17),i=r(14);function o(e){return n.isCanonicalPubKey(e)&&33===e.length}function a(e){var t=n.decompile(e);return 2===t.length&&n.isCanonicalSignature(t[0])&&o(t[1])}a.toJSON=function(){return"witnessPubKeyHash input"},e.exports={check:a,decodeStack:function(e){return i(i.Array,e),i(a,e),{signature:e[0],pubKey:e[1]}},encodeStack:function(e,t){return i({signature:n.isCanonicalSignature,pubKey:o},{signature:e,pubKey:t}),[e,t]}}},function(e,t,r){e.exports={input:r(402),output:r(179)}},function(e,t,r){(function(Buffer){var t=r(17),n=r(19),i=r(14),o=r(110),a=r(111),s=r(112);function f(e,r){if(i(n.Array,e),e.length<1)return!1;var f=e[e.length-1];if(!Buffer.isBuffer(f))return!1;var c=t.decompile(f);if(0===c.length)return!1;var u=t.compile(e.slice(0,-1));return!(!s.input.check(u)||!s.output.check(c))||(!(!o.input.check(u,r)||!o.output.check(c))||!(!a.input.check(u)||!a.output.check(c)))}f.toJSON=function(){return"witnessScriptHash input"},e.exports={check:f,decodeStack:function(e){return i(i.Array,e),i(f,e),{witnessData:e.slice(0,-1),witnessScript:e[e.length-1]}},encodeStack:function(e,t){return i({witnessData:[n.Buffer],witnessScript:n.Buffer},{witnessData:e,witnessScript:t}),[].concat(e,t)}}}).call(t,r(3).Buffer)},function(e,t,r){e.exports={output:r(404)}},function(e,t,r){var Buffer=r(4).Buffer,n=r(17),i=r(19),o=r(14),a=r(26),s=Buffer.from("aa21a9ed","hex");function f(e){var t=n.compile(e);return t.length>37&&t[0]===a.OP_RETURN&&36===t[1]&&t.slice(2,6).equals(s)}f.toJSON=function(){return"Witness commitment output"},e.exports={check:f,decode:function(e){return o(f,e),n.decompile(e)[1].slice(4,36)},encode:function(e){o(i.Hash256bit,e);var t=Buffer.allocUnsafe(36);return s.copy(t,0),e.copy(t,4),n.compile([a.OP_RETURN,t])}}},function(e,t,r){var Buffer=r(4).Buffer,n=r(60),i=r(406),o=r(14),a=r(19),s=r(113),f=r(114);function c(){this.version=1,this.prevHash=null,this.merkleRoot=null,this.timestamp=0,this.bits=0,this.nonce=0}c.fromBuffer=function(e){if(e.length<80)throw new Error("Buffer too small (< 80 bytes)");var t=0;function r(r){return t+=r,e.slice(t-r,t)}function n(){var r=e.readUInt32LE(t);return t+=4,r}var i=new c;if(i.version=function(){var r=e.readInt32LE(t);return t+=4,r}(),i.prevHash=r(32),i.merkleRoot=r(32),i.timestamp=n(),i.bits=n(),i.nonce=n(),80===e.length)return i;function o(){var r=f.fromBuffer(e.slice(t),!0);return t+=r.byteLength(),r}var a,u=(a=s.decode(e,t),t+=s.decode.bytes,a);i.transactions=[];for(var h=0;h<u;++h){var d=o();i.transactions.push(d)}return i},c.prototype.byteLength=function(e){return e||!this.transactions?80:80+s.encodingLength(this.transactions.length)+this.transactions.reduce(function(e,t){return e+t.byteLength()},0)},c.fromHex=function(e){return c.fromBuffer(Buffer.from(e,"hex"))},c.prototype.getHash=function(){return n.hash256(this.toBuffer(!0))},c.prototype.getId=function(){return this.getHash().reverse().toString("hex")},c.prototype.getUTCDate=function(){var e=new Date(0);return e.setUTCSeconds(this.timestamp),e},c.prototype.toBuffer=function(e){var t,r=Buffer.allocUnsafe(this.byteLength(e)),n=0;function i(e){e.copy(r,n),n+=e.length}function o(e){r.writeUInt32LE(e,n),n+=4}return t=this.version,r.writeInt32LE(t,n),n+=4,i(this.prevHash),i(this.merkleRoot),o(this.timestamp),o(this.bits),o(this.nonce),e||!this.transactions?r:(s.encode(this.transactions.length,r,n),n+=s.encode.bytes,this.transactions.forEach(function(e){var t=e.byteLength();e.toBuffer(r,n),n+=t}),r)},c.prototype.toHex=function(e){return this.toBuffer(e).toString("hex")},c.calculateTarget=function(e){var t=((4278190080&e)>>24)-3,r=8388607&e,n=Buffer.alloc(32,0);return n.writeUInt32BE(r,28-t),n},c.calculateMerkleRoot=function(e){if(o([{getHash:a.Function}],e),0===e.length)throw TypeError("Cannot compute merkle root for zero transactions");var t=e.map(function(e){return e.getHash()});return i(t,n.hash256)},c.prototype.checkMerkleRoot=function(){if(!this.transactions)return!1;var e=c.calculateMerkleRoot(this.transactions);return 0===this.merkleRoot.compare(e)},c.prototype.checkProofOfWork=function(){var e=this.getHash().reverse(),t=c.calculateTarget(this.bits);return e.compare(t)<=0},e.exports=c},function(e,t,r){(function(Buffer){e.exports=function(e,t){if(!Array.isArray(e))throw TypeError("Expected values Array");if("function"!=typeof t)throw TypeError("Expected digest Function");for(var r=e.length,n=e.concat();r>1;){for(var i=0,o=0;o<r;o+=2,++i){var a=n[o],s=o+1===r?a:n[o+1],f=Buffer.concat([a,s]);n[i]=t(f)}r=i}return n[0]}}).call(t,r(3).Buffer)},function(e,t,r){"use strict";for(var n="qpzry9x8gf2tvdw0s3jn54khce6mua7l",i={},o=0;o<n.length;o++){var a=n.charAt(o);if(void 0!==i[a])throw new TypeError(a+" is ambiguous");i[a]=o}function s(e){var t=e>>25;return(33554431&e)<<5^996825010&-(t>>0&1)^642813549&-(t>>1&1)^513874426&-(t>>2&1)^1027748829&-(t>>3&1)^705979059&-(t>>4&1)}function f(e){for(var t=1,r=0;r<e.length;++r){var n=e.charCodeAt(r);if(n<33||n>126)throw new Error("Invalid prefix ("+e+")");t=s(t)^n>>5}for(t=s(t),r=0;r<e.length;++r){var i=e.charCodeAt(r);t=s(t)^31&i}return t}function c(e,t,r,n){for(var i=0,o=0,a=(1<<r)-1,s=[],f=0;f<e.length;++f)for(i=i<<t|e[f],o+=t;o>=r;)o-=r,s.push(i>>o&a);if(n)o>0&&s.push(i<<r-o&a);else{if(o>=t)throw new Error("Excess padding");if(i<<r-o&a)throw new Error("Non-zero padding")}return s}e.exports={decode:function(e,t){if(t=t||90,e.length<8)throw new TypeError(e+" too short");if(e.length>t)throw new TypeError("Exceeds length limit");var r=e.toLowerCase(),n=e.toUpperCase();if(e!==r&&e!==n)throw new Error("Mixed-case string "+e);var o=(e=r).lastIndexOf("1");if(-1===o)throw new Error("No separator character for "+e);if(0===o)throw new Error("Missing prefix for "+e);var a=e.slice(0,o),c=e.slice(o+1);if(c.length<6)throw new Error("Data too short");for(var u=f(a),h=[],d=0;d<c.length;++d){var l=c.charAt(d),p=i[l];if(void 0===p)throw new Error("Unknown character "+l);u=s(u)^p,d+6>=c.length||h.push(p)}if(1!==u)throw new Error("Invalid checksum for "+e);return{prefix:a,words:h}},encode:function(e,t,r){if(r=r||90,e.length+7+t.length>r)throw new TypeError("Exceeds length limit");for(var i=f(e=e.toLowerCase()),o=e+"1",a=0;a<t.length;++a){var c=t[a];if(c>>5!=0)throw new Error("Non 5-bit word");i=s(i)^c,o+=n.charAt(c)}for(a=0;a<6;++a)i=s(i);for(i^=1,a=0;a<6;++a){var u=i>>5*(5-a)&31;o+=n.charAt(u)}return o},toWords:function(e){return c(e,8,5,!0)},fromWords:function(e){return c(e,5,8,!1)}}},function(e,t,r){"use strict";var n=r(167),Buffer=r(4).Buffer;e.exports=function(e){function t(t){var r=t.slice(0,-4),n=t.slice(-4),i=e(r);if(!(n[0]^i[0]|n[1]^i[1]|n[2]^i[2]|n[3]^i[3]))return r}return{encode:function(t){var r=e(t);return n.encode(Buffer.concat([t,r],t.length+4))},decode:function(e){var r=t(n.decode(e));if(!r)throw new Error("Invalid checksum");return r},decodeUnsafe:function(e){var r=n.decodeUnsafe(e);if(r)return t(r)}}}},function(e,t,r){var Buffer=r(4).Buffer,n=r(80),i=r(14),o=r(19),BigInteger=r(45),a=r(117),s=Buffer.alloc(1,0),f=Buffer.alloc(1,1),c=r(91).getCurveByName("secp256k1");function u(e,t,r){i(o.tuple(o.Hash256bit,o.Buffer256bit,o.Function),arguments);var a=Buffer.alloc(32,0),u=Buffer.alloc(32,1);a=n("sha256",a).update(u).update(s).update(t).update(e).digest(),u=n("sha256",a).update(u).digest(),a=n("sha256",a).update(u).update(f).update(t).update(e).digest(),u=n("sha256",a).update(u).digest(),u=n("sha256",a).update(u).digest();for(var h=BigInteger.fromBuffer(u);h.signum()<=0||h.compareTo(c.n)>=0||!r(h);)a=n("sha256",a).update(u).update(s).digest(),u=n("sha256",a).update(u).digest(),u=n("sha256",a).update(u).digest(),h=BigInteger.fromBuffer(u);return h}var h=c.n.shiftRight(1);e.exports={deterministicGenerateK:u,sign:function(e,t){i(o.tuple(o.Hash256bit,o.BigInt),arguments);var r,n,s=t.toBuffer(32),f=BigInteger.fromBuffer(e),d=c.n,l=c.G;return u(e,s,function(e){var i=l.multiply(e);return!c.isInfinity(i)&&0!==(r=i.affineX.mod(d)).signum()&&0!==(n=e.modInverse(d).multiply(f.add(t.multiply(r))).mod(d)).signum()}),n.compareTo(h)>0&&(n=d.subtract(n)),new a(r,n)},verify:function(e,t,r){i(o.tuple(o.Hash256bit,o.ECSignature,o.ECPoint),arguments);var n=c.n,a=c.G,s=t.r,f=t.s;if(s.signum()<=0||s.compareTo(n)>=0)return!1;if(f.signum()<=0||f.compareTo(n)>=0)return!1;var u=BigInteger.fromBuffer(e),h=f.modInverse(n),d=u.multiply(h).mod(n),l=s.multiply(h).mod(n),p=a.multiplyTwo(d,r,l);return!c.isInfinity(p)&&p.affineX.mod(n).equals(s)},__curve:c}},function(e,t){e.exports={_args:[["bigi@1.4.2","/Users/enzo/Copy/projects/elevenyellow/coinfy"]],_from:"bigi@1.4.2",_id:"bigi@1.4.2",_inBundle:!1,_integrity:"sha1-nGZalfiLiwj8Bc/XMfVhhZ1yWCU=",_location:"/bigi",_phantomChildren:{},_requested:{type:"version",registry:!0,raw:"bigi@1.4.2",name:"bigi",escapedName:"bigi",rawSpec:"1.4.2",saveSpec:null,fetchSpec:"1.4.2"},_requiredBy:["/bip38","/bitcoinjs-lib","/ecurve"],_resolved:"https://registry.npmjs.org/bigi/-/bigi-1.4.2.tgz",_spec:"1.4.2",_where:"/Users/enzo/Copy/projects/elevenyellow/coinfy",bugs:{url:"https://github.com/cryptocoinjs/bigi/issues"},dependencies:{},description:"Big integers.",devDependencies:{coveralls:"^2.11.2",istanbul:"^0.3.5",jshint:"^2.5.1",mocha:"^2.1.0",mochify:"^2.1.0"},homepage:"https://github.com/cryptocoinjs/bigi#readme",keywords:["cryptography","math","bitcoin","arbitrary","precision","arithmetic","big","integer","int","number","biginteger","bigint","bignumber","decimal","float"],main:"./lib/index.js",name:"bigi",repository:{url:"git+https://github.com/cryptocoinjs/bigi.git",type:"git"},scripts:{"browser-test":"mochify --wd -R spec",coverage:"istanbul cover ./node_modules/.bin/_mocha -- --reporter list test/*.js",coveralls:"npm run-script coverage && node ./node_modules/.bin/coveralls < coverage/lcov.info",jshint:"jshint --config jshint.json lib/*.js ; true",test:"_mocha -- test/*.js",unit:"mocha"},testling:{files:"test/*.js",harness:"mocha",browsers:["ie/9..latest","firefox/latest","chrome/latest","safari/6.0..latest","iphone/6.0..latest","android-browser/4.2..latest"]},version:"1.4.2"}},function(e,t,r){(function(Buffer){var e=r(58),BigInteger=r(181);BigInteger.fromByteArrayUnsigned=function(e){return 128&e[0]?new BigInteger([0].concat(e)):new BigInteger(e)},BigInteger.prototype.toByteArrayUnsigned=function(){var e=this.toByteArray();return 0===e[0]?e.slice(1):e},BigInteger.fromDERInteger=function(e){return new BigInteger(e)},BigInteger.prototype.toDERInteger=BigInteger.prototype.toByteArray,BigInteger.fromBuffer=function(e){if(128&e[0]){var t=Array.prototype.slice.call(e);return new BigInteger([0].concat(t))}return new BigInteger(e)},BigInteger.fromHex=function(t){return""===t?BigInteger.ZERO:(e.equal(t,t.match(/^[A-Fa-f0-9]+/),"Invalid hex string"),e.equal(t.length%2,0,"Incomplete hex"),new BigInteger(t,16))},BigInteger.prototype.toBuffer=function(e){for(var t=this.toByteArrayUnsigned(),r=[],n=e-t.length;r.length<n;)r.push(0);return new Buffer(r.concat(t))},BigInteger.prototype.toHex=function(e){return this.toBuffer(e).toString("hex")}}).call(t,r(3).Buffer)},function(e,t,r){var BigInteger=r(45),n=r(413),i=r(183);e.exports=function(e){var t=n[e];if(!t)return null;var r=new BigInteger(t.p,16),o=new BigInteger(t.a,16),a=new BigInteger(t.b,16),s=new BigInteger(t.n,16),f=new BigInteger(t.h,16),c=new BigInteger(t.Gx,16),u=new BigInteger(t.Gy,16);return new i(r,o,a,c,u,s,f)}},function(e,t){e.exports={secp128r1:{p:"fffffffdffffffffffffffffffffffff",a:"fffffffdfffffffffffffffffffffffc",b:"e87579c11079f43dd824993c2cee5ed3",n:"fffffffe0000000075a30d1b9038a115",h:"01",Gx:"161ff7528b899b2d0c28607ca52c5b86",Gy:"cf5ac8395bafeb13c02da292dded7a83"},secp160k1:{p:"fffffffffffffffffffffffffffffffeffffac73",a:"00",b:"07",n:"0100000000000000000001b8fa16dfab9aca16b6b3",h:"01",Gx:"3b4c382ce37aa192a4019e763036f4f5dd4d7ebb",Gy:"938cf935318fdced6bc28286531733c3f03c4fee"},secp160r1:{p:"ffffffffffffffffffffffffffffffff7fffffff",a:"ffffffffffffffffffffffffffffffff7ffffffc",b:"1c97befc54bd7a8b65acf89f81d4d4adc565fa45",n:"0100000000000000000001f4c8f927aed3ca752257",h:"01",Gx:"4a96b5688ef573284664698968c38bb913cbfc82",Gy:"23a628553168947d59dcc912042351377ac5fb32"},secp192k1:{p:"fffffffffffffffffffffffffffffffffffffffeffffee37",a:"00",b:"03",n:"fffffffffffffffffffffffe26f2fc170f69466a74defd8d",h:"01",Gx:"db4ff10ec057e9ae26b07d0280b7f4341da5d1b1eae06c7d",Gy:"9b2f2f6d9c5628a7844163d015be86344082aa88d95e2f9d"},secp192r1:{p:"fffffffffffffffffffffffffffffffeffffffffffffffff",a:"fffffffffffffffffffffffffffffffefffffffffffffffc",b:"64210519e59c80e70fa7e9ab72243049feb8deecc146b9b1",n:"ffffffffffffffffffffffff99def836146bc9b1b4d22831",h:"01",Gx:"188da80eb03090f67cbf20eb43a18800f4ff0afd82ff1012",Gy:"07192b95ffc8da78631011ed6b24cdd573f977a11e794811"},secp256k1:{p:"fffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f",a:"00",b:"07",n:"fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141",h:"01",Gx:"79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798",Gy:"483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8"},secp256r1:{p:"ffffffff00000001000000000000000000000000ffffffffffffffffffffffff",a:"ffffffff00000001000000000000000000000000fffffffffffffffffffffffc",b:"5ac635d8aa3a93e7b3ebbd55769886bc651d06b0cc53b0f63bce3c3e27d2604b",n:"ffffffff00000000ffffffffffffffffbce6faada7179e84f3b9cac2fc632551",h:"01",Gx:"6b17d1f2e12c4247f8bce6e563a440f277037d812deb33a0f4a13945d898c296",Gy:"4fe342e2fe1a7f9b8ee7eb4a7c0f9e162bce33576b315ececbb6406837bf51f5"}}},function(e,t,r){var Buffer=r(4).Buffer,n=r(90),i=r(60),o=r(80),a=r(14),s=r(19),f=r(74),BigInteger=r(45),ECPair=r(115),c=r(91),u=c.getCurveByName("secp256k1");function HDNode(e,t){if(a(s.tuple("ECPair",s.Buffer256bit),arguments),!e.compressed)throw new TypeError("BIP32 only allows compressed keyPairs");this.keyPair=e,this.chainCode=t,this.depth=0,this.index=0,this.parentFingerprint=0}HDNode.HIGHEST_BIT=2147483648,HDNode.LENGTH=78,HDNode.MASTER_SECRET=Buffer.from("Bitcoin seed","utf8"),HDNode.fromSeedBuffer=function(e,t){if(a(s.tuple(s.Buffer,s.maybe(s.Network)),arguments),e.length<16)throw new TypeError("Seed should be at least 128 bits");if(e.length>64)throw new TypeError("Seed should be at most 512 bits");var r=o("sha512",HDNode.MASTER_SECRET).update(e).digest(),n=r.slice(0,32),i=r.slice(32),f=BigInteger.fromBuffer(n);return new HDNode(new ECPair(f,null,{network:t}),i)},HDNode.fromSeedHex=function(e,t){return HDNode.fromSeedBuffer(Buffer.from(e,"hex"),t)},HDNode.fromBase58=function(e,t){var r=n.decode(e);if(78!==r.length)throw new Error("Invalid buffer length");var i,o=r.readUInt32BE(0);if(Array.isArray(t)){if(!(i=t.filter(function(e){return o===e.bip32.private||o===e.bip32.public}).pop()))throw new Error("Unknown network version")}else i=t||f.bitcoin;if(o!==i.bip32.private&&o!==i.bip32.public)throw new Error("Invalid network version");var a=r[4],s=r.readUInt32BE(5);if(0===a&&0!==s)throw new Error("Invalid parent fingerprint");var h=r.readUInt32BE(9);if(0===a&&0!==h)throw new Error("Invalid index");var d,l=r.slice(13,45);if(o===i.bip32.private){if(0!==r.readUInt8(45))throw new Error("Invalid private key");var p=BigInteger.fromBuffer(r.slice(46,78));d=new ECPair(p,null,{network:i})}else{var b=c.Point.decodeFrom(u,r.slice(45,78));u.validate(b),d=new ECPair(null,b,{network:i})}var v=new HDNode(d,l);return v.depth=a,v.index=h,v.parentFingerprint=s,v},HDNode.prototype.getAddress=function(){return this.keyPair.getAddress()},HDNode.prototype.getIdentifier=function(){return i.hash160(this.keyPair.getPublicKeyBuffer())},HDNode.prototype.getFingerprint=function(){return this.getIdentifier().slice(0,4)},HDNode.prototype.getNetwork=function(){return this.keyPair.getNetwork()},HDNode.prototype.getPublicKeyBuffer=function(){return this.keyPair.getPublicKeyBuffer()},HDNode.prototype.neutered=function(){var e=new HDNode(new ECPair(null,this.keyPair.Q,{network:this.keyPair.network}),this.chainCode);return e.depth=this.depth,e.index=this.index,e.parentFingerprint=this.parentFingerprint,e},HDNode.prototype.sign=function(e){return this.keyPair.sign(e)},HDNode.prototype.verify=function(e,t){return this.keyPair.verify(e,t)},HDNode.prototype.toBase58=function(e){if(void 0!==e)throw new TypeError("Unsupported argument in 2.0.0");var t=this.keyPair.network,r=this.isNeutered()?t.bip32.public:t.bip32.private,i=Buffer.allocUnsafe(78);return i.writeUInt32BE(r,0),i.writeUInt8(this.depth,4),i.writeUInt32BE(this.parentFingerprint,5),i.writeUInt32BE(this.index,9),this.chainCode.copy(i,13),this.isNeutered()?this.keyPair.getPublicKeyBuffer().copy(i,45):(i.writeUInt8(0,45),this.keyPair.d.toBuffer(32).copy(i,46)),n.encode(i)},HDNode.prototype.derive=function(e){a(s.UInt32,e);var t=e>=HDNode.HIGHEST_BIT,r=Buffer.allocUnsafe(37);if(t){if(this.isNeutered())throw new TypeError("Could not derive hardened child key");r[0]=0,this.keyPair.d.toBuffer(32).copy(r,1),r.writeUInt32BE(e,33)}else this.keyPair.getPublicKeyBuffer().copy(r,0),r.writeUInt32BE(e,33);var n,i=o("sha512",this.chainCode).update(r).digest(),f=i.slice(0,32),c=i.slice(32),h=BigInteger.fromBuffer(f);if(h.compareTo(u.n)>=0)return this.derive(e+1);if(this.isNeutered()){var d=u.G.multiply(h).add(this.keyPair.Q);if(u.isInfinity(d))return this.derive(e+1);n=new ECPair(null,d,{network:this.keyPair.network})}else{var l=h.add(this.keyPair.d).mod(u.n);if(0===l.signum())return this.derive(e+1);n=new ECPair(l,null,{network:this.keyPair.network})}var p=new HDNode(n,c);return p.depth=this.depth+1,p.index=e,p.parentFingerprint=this.getFingerprint().readUInt32BE(0),p},HDNode.prototype.deriveHardened=function(e){return a(s.UInt31,e),this.derive(e+HDNode.HIGHEST_BIT)},HDNode.prototype.isNeutered=function(){return!this.keyPair.d},HDNode.prototype.derivePath=function(e){a(s.BIP32Path,e);var t=e.split("/");if("m"===t[0]){if(this.parentFingerprint)throw new Error("Not a master node");t=t.slice(1)}return t.reduce(function(e,t){var r;return"'"===t.slice(-1)?(r=parseInt(t.slice(0,-1),10),e.deriveHardened(r)):(r=parseInt(t,10),e.derive(r))},this)},e.exports=HDNode},function(e,t,r){var Buffer=r(4).Buffer,n=r(116),i=r(60),o=r(17),a=r(109),s=r(74),f=r(26),c=r(14),u=r(19),h=a.types,d=[a.types.P2PKH,a.types.P2PK,a.types.MULTISIG],l=d.concat([a.types.P2WPKH,a.types.P2WSH]),ECPair=r(115),p=r(117),b=r(114);function v(e){return-1!==d.indexOf(e)}function y(e){return-1!==l.indexOf(e)}function m(e,t){if(0===e.length&&0===t.length)return{};var r,n,s,f,c,u,d,l,p,b,m=!1,g=!1,w=!1,_=o.decompile(e);a.classifyInput(_,!0)===h.P2SH&&(w=!0,c=_[_.length-1],l=a.classifyOutput(c),r=a.scriptHash.output.encode(i.hash160(c)),n=h.P2SH,f=c);var E=a.classifyWitness(t,!0);if(E===h.P2WSH){if(u=t[t.length-1],d=a.classifyOutput(u),g=!0,m=!0,0===e.length){if(r=a.witnessScriptHash.output.encode(i.sha256(u)),n=h.P2WSH,void 0!==c)throw new Error("Redeem script given when unnecessary")}else{if(!c)throw new Error("No redeemScript provided for P2WSH, but scriptSig non-empty");if(p=a.witnessScriptHash.output.encode(i.sha256(u)),!c.equals(p))throw new Error("Redeem script didn't match witnessScript")}if(!v(a.classifyOutput(u)))throw new Error("unsupported witness script");f=u,s=d,b=t.slice(0,-1)}else if(E===h.P2WPKH){m=!0;var S=t[t.length-1],A=i.hash160(S);if(0===e.length){if(r=a.witnessPubKeyHash.output.encode(A),n=h.P2WPKH,void 0!==c)throw new Error("Redeem script given when unnecessary")}else{if(!c)throw new Error("No redeemScript provided for P2WPKH, but scriptSig wasn't empty");if(p=a.witnessPubKeyHash.output.encode(A),!c.equals(p))throw new Error("Redeem script did not have the right witness program")}s=h.P2PKH,b=t}else if(c){if(!y(l))throw new Error("Bad redeemscript!");f=c,s=l,b=_.slice(0,-1)}else n=s=a.classifyInput(e),b=_;var I=function(e,t,r){var n=[],i=[];switch(e){case h.P2PKH:n=t.slice(1),i=t.slice(0,1);break;case h.P2PK:n[0]=r?a.pubKey.output.decode(r):void 0,i=t.slice(0,1);break;case h.MULTISIG:r&&(n=a.multisig.output.decode(r).pubKeys),i=t.slice(1).map(function(e){return 0===e.length?void 0:e})}return{pubKeys:n,signatures:i}}(s,b,f),k={pubKeys:I.pubKeys,signatures:I.signatures,prevOutScript:r,prevOutType:n,signType:s,signScript:f,witness:Boolean(m)};return w&&(k.redeemScript=c,k.redeemScriptType=l),g&&(k.witnessScript=u,k.witnessScriptType=d),k}function g(e,t,r){c(u.Buffer,e);var n=o.decompile(e);t||(t=a.classifyOutput(e));var s=[];switch(t){case h.P2PKH:if(!r)break;var f=n[2],d=i.hash160(r);f.equals(d)&&(s=[r]);break;case h.P2WPKH:if(!r)break;var l=n[1],p=i.hash160(r);l.equals(p)&&(s=[r]);break;case h.P2PK:s=n.slice(0,1);break;case h.MULTISIG:s=n.slice(1,-2);break;default:return{scriptType:t}}return{pubKeys:s,scriptType:t,signatures:s.map(function(){})}}function w(e,t){if(e.prevOutType){if(e.prevOutType!==h.P2SH)throw new Error("PrevOutScript must be P2SH");if(!o.decompile(e.prevOutScript)[1].equals(t))throw new Error("Inconsistent hash160(RedeemScript)")}}function _(e,t,r,n,s){var f,c,u,d,l,p,b,v,y,m=!1,_=!1,E=!1;if(r&&s){if(l=i.hash160(r),b=i.sha256(s),w(e,l),!r.equals(a.witnessScriptHash.output.encode(b)))throw new Error("Witness script inconsistent with redeem script");if(!(f=g(s,void 0,t)).pubKeys)throw new Error('WitnessScript not supported "'+o.toASM(r)+'"');c=a.types.P2SH,u=a.scriptHash.output.encode(l),m=_=E=!0,d=a.types.P2WSH,v=p=f.scriptType,y=s}else if(r){if(w(e,l=i.hash160(r)),!(f=g(r,void 0,t)).pubKeys)throw new Error('RedeemScript not supported "'+o.toASM(r)+'"');c=a.types.P2SH,u=a.scriptHash.output.encode(l),m=!0,y=r,_=(v=d=f.scriptType)===a.types.P2WPKH}else if(s){if(function(e,t){if(e.prevOutType){if(e.prevOutType!==h.P2WSH)throw new Error("PrevOutScript must be P2WSH");if(!o.decompile(e.prevOutScript)[1].equals(t))throw new Error("Inconsistent sha25(WitnessScript)")}}(e,b=i.sha256(s)),!(f=g(s,void 0,t)).pubKeys)throw new Error('WitnessScript not supported "'+o.toASM(r)+'"');c=a.types.P2WSH,u=a.witnessScriptHash.output.encode(b),_=E=!0,v=p=f.scriptType,y=s}else if(e.prevOutType){if(e.prevOutType===h.P2SH||e.prevOutType===h.P2WSH)throw new Error("PrevOutScript is "+e.prevOutType+", requires redeemScript");if(c=e.prevOutType,u=e.prevOutScript,!(f=g(e.prevOutScript,e.prevOutType,t)).pubKeys)return;_=e.prevOutType===h.P2WPKH,v=c,y=u}else f=g(u=a.pubKeyHash.output.encode(i.hash160(t)),h.P2PKH,t),_=!1,v=c=h.P2PKH,y=u;v===h.P2WPKH&&(y=a.pubKeyHash.output.encode(a.witnessPubKeyHash.output.decode(y))),m&&(e.redeemScript=r,e.redeemScriptType=d),E&&(e.witnessScript=s,e.witnessScriptType=p),e.pubKeys=f.pubKeys,e.signatures=f.signatures,e.signScript=y,e.signType=v,e.prevOutScript=u,e.prevOutType=c,e.witness=_}function E(e,t,r,n){if(e===h.P2PKH){if(1===t.length&&Buffer.isBuffer(t[0])&&1===r.length)return a.pubKeyHash.input.encodeStack(t[0],r[0])}else if(e===h.P2PK){if(1===t.length&&Buffer.isBuffer(t[0]))return a.pubKey.input.encodeStack(t[0])}else{if(e!==h.MULTISIG)throw new Error("Not yet supported");if(t.length>0)return t=t.map(function(e){return e||f.OP_0}),n||(t=t.filter(function(e){return e!==f.OP_0})),a.multisig.input.encodeStack(t)}if(!n)throw new Error("Not enough signatures provided");return[]}function S(e,t){this.prevTxMap={},this.network=e||s.bitcoin,this.maximumFeeRate=t||2500,this.inputs=[],this.tx=new b}function A(e){return void 0!==e.prevOutScript&&void 0!==e.signScript&&void 0!==e.pubKeys&&void 0!==e.signatures&&e.signatures.length===e.pubKeys.length&&e.pubKeys.length>0&&(!1===e.witness||!0===e.witness&&void 0!==e.value)}function I(e){return e.readUInt8(e.length-1)}S.prototype.setLockTime=function(e){if(c(u.UInt32,e),this.inputs.some(function(e){return!!e.signatures&&e.signatures.some(function(e){return e})}))throw new Error("No, this would invalidate signatures");this.tx.locktime=e},S.prototype.setVersion=function(e){c(u.UInt32,e),this.tx.version=e},S.fromTransaction=function(e,t){var r=new S(t);return r.setVersion(e.version),r.setLockTime(e.locktime),e.outs.forEach(function(e){r.addOutput(e.script,e.value)}),e.ins.forEach(function(e){r.__addInputUnsafe(e.hash,e.index,{sequence:e.sequence,script:e.script,witness:e.witness})}),r.inputs.forEach(function(t,r){!function(e,t,r){if(e.redeemScriptType===h.MULTISIG&&e.redeemScript&&e.pubKeys.length!==e.signatures.length){var n=e.signatures.concat();e.signatures=e.pubKeys.map(function(i){var o,a=ECPair.fromPublicKeyBuffer(i);return n.some(function(i,s){if(!i)return!1;var f=p.parseScriptSignature(i),c=t.hashForSignature(r,e.redeemScript,f.hashType);return!!a.verify(c,f.signature)&&(n[s]=void 0,o=i,!0)}),o})}}(t,e,r)}),r},S.prototype.addInput=function(e,t,r,n){if(!this.__canModifyInputs())throw new Error("No, this would invalidate signatures");var i;if("string"==typeof e)e=Buffer.from(e,"hex").reverse();else if(e instanceof b){var o=e.outs[t];n=o.script,i=o.value,e=e.getHash()}return this.__addInputUnsafe(e,t,{sequence:r,prevOutScript:n,value:i})},S.prototype.__addInputUnsafe=function(e,t,r){if(b.isCoinbaseHash(e))throw new Error("coinbase inputs not supported");var n=e.toString("hex")+":"+t;if(void 0!==this.prevTxMap[n])throw new Error("Duplicate TxOut: "+n);var i={};if(void 0!==r.script&&(i=m(r.script,r.witness||[])),void 0!==r.value&&(i.value=r.value),!i.prevOutScript&&r.prevOutScript){var o;if(!i.pubKeys&&!i.signatures){var s=g(r.prevOutScript);s.pubKeys&&(i.pubKeys=s.pubKeys,i.signatures=s.signatures),o=s.scriptType}i.prevOutScript=r.prevOutScript,i.prevOutType=o||a.classifyOutput(r.prevOutScript)}var f=this.tx.addInput(e,t,r.sequence,r.scriptSig);return this.inputs[f]=i,this.prevTxMap[n]=f,f},S.prototype.addOutput=function(e,t){if(!this.__canModifyOutputs())throw new Error("No, this would invalidate signatures");return"string"==typeof e&&(e=n.toOutputScript(e,this.network)),this.tx.addOutput(e,t)},S.prototype.build=function(){return this.__build(!1)},S.prototype.buildIncomplete=function(){return this.__build(!0)},S.prototype.__build=function(e){if(!e){if(!this.tx.ins.length)throw new Error("Transaction has no inputs");if(!this.tx.outs.length)throw new Error("Transaction has no outputs")}var t=this.tx.clone();if(this.inputs.forEach(function(r,n){if(!(r.witnessScriptType||r.redeemScriptType||r.prevOutType)&&!e)throw new Error("Transaction is not complete");var i=function(e,t){var r=e.prevOutType,n=[],i=[];v(r)&&(n=E(r,e.signatures,e.pubKeys,t));var s=!1;if(r===a.types.P2SH){if(!t&&!y(e.redeemScriptType))throw new Error("Impossible to sign this type");v(e.redeemScriptType)&&(n=E(e.redeemScriptType,e.signatures,e.pubKeys,t)),e.redeemScriptType&&(s=!0,r=e.redeemScriptType)}switch(r){case a.types.P2WPKH:i=E(a.types.P2PKH,e.signatures,e.pubKeys,t);break;case a.types.P2WSH:if(!t&&!v(e.witnessScriptType))throw new Error("Impossible to sign this type");v(e.witnessScriptType)&&((i=E(e.witnessScriptType,e.signatures,e.pubKeys,t)).push(e.witnessScript),r=e.witnessScriptType)}return s&&n.push(e.redeemScript),{type:r,script:o.compile(n),witness:i}}(r,e);if(!e&&!v(i.type)&&i.type!==a.types.P2WPKH)throw new Error(i.type+" not supported");t.setInputScript(n,i.script),t.setWitness(n,i.witness)}),!e&&this.__overMaximumFees(t.virtualSize()))throw new Error("Transaction has absurd fees");return t},S.prototype.sign=function(e,t,r,n,i,o){if(t.network&&t.network!==this.network)throw new TypeError("Inconsistent network");if(!this.inputs[e])throw new Error("No input at index: "+e);n=n||b.SIGHASH_ALL;var a=this.inputs[e];if(void 0!==a.redeemScript&&r&&!a.redeemScript.equals(r))throw new Error("Inconsistent redeemScript");var s,f=t.publicKey||t.getPublicKeyBuffer();if(!A(a)){if(void 0!==i){if(void 0!==a.value&&a.value!==i)throw new Error("Input didn't match witnessValue");c(u.Satoshi,i),a.value=i}if(A(a)||_(a,f,r,0,o),!A(a))throw Error(a.prevOutType+" not supported")}if(s=a.witness?this.tx.hashForWitnessV0(e,a.signScript,a.value,n):this.tx.hashForSignature(e,a.signScript,n),!a.pubKeys.some(function(e,r){if(!f.equals(e))return!1;if(a.signatures[r])throw new Error("Signature already exists");if(33!==f.length&&a.signType===h.P2WPKH)throw new Error("BIP143 rejects uncompressed public keys in P2WPKH or P2WSH");var i=t.sign(s);return Buffer.isBuffer(i)&&(i=p.fromRSBuffer(i)),a.signatures[r]=i.toScriptSignature(n),!0}))throw new Error("Key pair cannot sign for this input")},S.prototype.__canModifyInputs=function(){return this.inputs.every(function(e){return void 0===e.signatures||e.signatures.every(function(e){return!e||I(e)&b.SIGHASH_ANYONECANPAY})})},S.prototype.__canModifyOutputs=function(){var e=this.tx.ins.length,t=this.tx.outs.length;return this.inputs.every(function(r){return void 0===r.signatures||r.signatures.every(function(r){if(!r)return!0;var n=31&I(r);return n===b.SIGHASH_NONE||(n===b.SIGHASH_SINGLE?e<=t:void 0)})})},S.prototype.__overMaximumFees=function(e){return(this.inputs.reduce(function(e,t){return e+(t.value>>>0)},0)-this.tx.outs.reduce(function(e,t){return e+t.value},0))/e>this.maximumFeeRate},e.exports=S},function(e,t,r){(function(Buffer){var t=r(83),n=r(58),i=r(90),o=r(36),a=r(417),s=r(55),f=r(91).getCurveByName("secp256k1"),BigInteger=r(45),c={N:16384,r:8,p:8},u=new Buffer(0);function h(e){return o("sha256").update(o("sha256").update(e).digest()).digest()}function d(e,t){var r,n=f.G.multiply(e).getEncoded(t),a=(r=n,o("rmd160").update(o("sha256").update(r).digest()).digest()),s=new Buffer(21);return s.writeUInt8(0,0),a.copy(s,1),i.encode(s)}function l(e,r,n,i,o){if(32!==e.length)throw new Error("Invalid private key length");o=o||c;var f=d(BigInteger.fromBuffer(e),r),l=new Buffer(n,"utf8"),p=h(f).slice(0,4),b=o.N,v=o.r,y=o.p,m=a(l,p,b,v,y,64,i),g=m.slice(0,32),w=m.slice(32,64),_=s(e,g),E=t.createCipheriv("aes-256-ecb",w,u);E.setAutoPadding(!1),E.end(_);var S=E.read(),A=new Buffer(39);return A.writeUInt8(1,0),A.writeUInt8(66,1),A.writeUInt8(r?224:192,2),p.copy(A,3),S.copy(A,7),A}function p(e,r,i,o){if(39!==e.length)throw new Error("Invalid BIP38 data length");if(1!==e.readUInt8(0))throw new Error("Invalid BIP38 prefix");o=o||c;var f=e.readUInt8(1);if(67===f)return b(e,r,i,o);if(66!==f)throw new Error("Invalid BIP38 type");r=new Buffer(r,"utf8");var l=e.readUInt8(2),p=224===l;if(!p&&192!==l)throw new Error("Invalid BIP38 compression flag");var v=o.N,y=o.r,m=o.p,g=e.slice(3,7),w=a(r,g,v,y,m,64,i),_=w.slice(0,32),E=w.slice(32,64),S=e.slice(7,39),A=t.createDecipheriv("aes-256-ecb",E,u);A.setAutoPadding(!1),A.end(S);var I=A.read(),k=s(I,_),x=h(d(BigInteger.fromBuffer(k),p)).slice(0,4);return n.deepEqual(g,x),{privateKey:k,compressed:p}}function b(e,r,i,o){r=new Buffer(r,"utf8"),e=e.slice(1),o=o||c;var u=e.readUInt8(1),d=0!=(32&u),l=0!=(4&u);n.equal(36&u,u,"Invalid private key.");var p,b=e.slice(2,6),v=e.slice(6,14);p=l?v.slice(0,4):v;var y,m=e.slice(14,22),g=e.slice(22,38),w=o.N,_=o.r,E=o.p,S=a(r,p,w,_,E,32,i);l?y=h(Buffer.concat([S,v])):y=S;var A=BigInteger.fromBuffer(y),I=f.G.multiply(A).getEncoded(!0),k=a(I,Buffer.concat([b,v]),1024,1,1,64),x=k.slice(0,32),P=k.slice(32,64),O=t.createDecipheriv("aes-256-ecb",P,new Buffer(0));O.setAutoPadding(!1),O.end(g);var T=O.read(),M=s(T,x.slice(16,32)),N=M.slice(8,16),B=t.createDecipheriv("aes-256-ecb",P,new Buffer(0));B.setAutoPadding(!1),B.write(m),B.end(M.slice(0,8));var C=s(B.read(),x.slice(0,16)),R=Buffer.concat([C,N],24),L=BigInteger.fromBuffer(h(R));return{privateKey:A.multiply(L).mod(f.n).toBuffer(32),compressed:d}}e.exports={decrypt:function(e,t,r,n){return p(i.decode(e),t,r,n)},decryptECMult:b,decryptRaw:p,encrypt:function(e,t,r,n,o){return i.encode(l(e,t,r,n,o))},encryptRaw:l,verify:function(e){var t=i.decodeUnsafe(e);if(!t)return!1;if(39!==t.length)return!1;if(1!==t.readUInt8(0))return!1;var r=t.readUInt8(1),n=t.readUInt8(2);if(66===r){if(192!==n&&224!==n)return!1}else{if(67!==r)return!1;if(-37&n)return!1}return!0}}}).call(t,r(3).Buffer)},function(e,t,r){(function(Buffer){var t=r(81).pbkdf2Sync,n=2147483647;function i(e,t,r,n,i){if(Buffer.isBuffer(e)&&Buffer.isBuffer(r))e.copy(r,n,t,t+i);else for(;i--;)r[n++]=e[t++]}e.exports=function(e,r,o,a,s,f,c){if(0===o||0!=(o&o-1))throw Error("N must be > 0 and a power of 2");if(o>n/128/a)throw Error("Parameter N is too large");if(a>n/128/s)throw Error("Parameter r is too large");var u,h=new Buffer(256*a),d=new Buffer(128*a*o),l=new Int32Array(16),p=new Int32Array(16),b=new Buffer(64),v=t(e,r,1,128*s*a,"sha256");if(c){var y=s*o*2,m=0;u=function(){++m%1e3==0&&c({current:m,total:y,percent:m/y*100})}}for(var g=0;g<s;g++)w(v,128*g*a,a,o,d,h);return t(e,v,1,f,"sha256");function w(e,t,r,n,i,o){var a,s=128*r;for(e.copy(o,0,t,t+s),a=0;a<n;a++)o.copy(i,a*s,0,0+s),_(o,0,s,r),u&&u();for(a=0;a<n;a++){var f=0+64*(2*r-1);A(i,(o.readUInt32LE(f)&n-1)*s,o,0,s),_(o,0,s,r),u&&u()}o.copy(e,t,0,0+s)}function _(e,t,r,n){var o;for(i(e,t+64*(2*n-1),b,0,64),o=0;o<2*n;o++)A(e,64*o,b,0,64),S(b),i(b,0,e,r+64*o,64);for(o=0;o<n;o++)i(e,r+2*o*64,e,t+64*o,64);for(o=0;o<n;o++)i(e,r+64*(2*o+1),e,t+64*(o+n),64)}function E(e,t){return e<<t|e>>>32-t}function S(e){var t;for(t=0;t<16;t++)l[t]=(255&e[4*t+0])<<0,l[t]|=(255&e[4*t+1])<<8,l[t]|=(255&e[4*t+2])<<16,l[t]|=(255&e[4*t+3])<<24;for(i(l,0,p,0,16),t=8;t>0;t-=2)p[4]^=E(p[0]+p[12],7),p[8]^=E(p[4]+p[0],9),p[12]^=E(p[8]+p[4],13),p[0]^=E(p[12]+p[8],18),p[9]^=E(p[5]+p[1],7),p[13]^=E(p[9]+p[5],9),p[1]^=E(p[13]+p[9],13),p[5]^=E(p[1]+p[13],18),p[14]^=E(p[10]+p[6],7),p[2]^=E(p[14]+p[10],9),p[6]^=E(p[2]+p[14],13),p[10]^=E(p[6]+p[2],18),p[3]^=E(p[15]+p[11],7),p[7]^=E(p[3]+p[15],9),p[11]^=E(p[7]+p[3],13),p[15]^=E(p[11]+p[7],18),p[1]^=E(p[0]+p[3],7),p[2]^=E(p[1]+p[0],9),p[3]^=E(p[2]+p[1],13),p[0]^=E(p[3]+p[2],18),p[6]^=E(p[5]+p[4],7),p[7]^=E(p[6]+p[5],9),p[4]^=E(p[7]+p[6],13),p[5]^=E(p[4]+p[7],18),p[11]^=E(p[10]+p[9],7),p[8]^=E(p[11]+p[10],9),p[9]^=E(p[8]+p[11],13),p[10]^=E(p[9]+p[8],18),p[12]^=E(p[15]+p[14],7),p[13]^=E(p[12]+p[15],9),p[14]^=E(p[13]+p[12],13),p[15]^=E(p[14]+p[13],18);for(t=0;t<16;++t)l[t]=p[t]+l[t];for(t=0;t<16;t++){var r=4*t;e[r+0]=l[t]>>0&255,e[r+1]=l[t]>>8&255,e[r+2]=l[t]>>16&255,e[r+3]=l[t]>>24&255}}function A(e,t,r,n,i){for(var o=0;o<i;o++)r[n+o]^=e[t+o]}}}).call(t,r(3).Buffer)},function(e,t,r){(function(Buffer){var t=r(47),n=2147483647;function i(e,t,r,n,i){if(Buffer.isBuffer(e)&&Buffer.isBuffer(r))e.copy(r,n,t,t+i);else for(;i--;)r[n++]=e[t++]}e.exports=function(e,r,o,a,s,f,c){if(0===o||0!=(o&o-1))throw Error("N must be > 0 and a power of 2");if(o>n/128/a)throw Error("Parameter N is too large");if(a>n/128/s)throw Error("Parameter r is too large");var u,h=new Buffer(256*a),d=new Buffer(128*a*o),l=new Int32Array(16),p=new Int32Array(16),b=new Buffer(64),v=t.pbkdf2Sync(e,r,1,128*s*a,"sha256");if(c){var y=s*o*2,m=0;u=function(){++m%1e3==0&&c({current:m,total:y,percent:m/y*100})}}for(var g=0;g<s;g++)w(v,128*g*a,a,o,d,h);return t.pbkdf2Sync(e,v,1,f,"sha256");function w(e,t,r,n,i,o){var a,s=128*r;for(e.copy(o,0,t,t+s),a=0;a<n;a++)o.copy(i,a*s,0,0+s),_(o,0,s,r),u&&u();for(a=0;a<n;a++){var f=0+64*(2*r-1);A(i,(o.readUInt32LE(f)&n-1)*s,o,0,s),_(o,0,s,r),u&&u()}o.copy(e,t,0,0+s)}function _(e,t,r,n){var o;for(i(e,t+64*(2*n-1),b,0,64),o=0;o<2*n;o++)A(e,64*o,b,0,64),S(b),i(b,0,e,r+64*o,64);for(o=0;o<n;o++)i(e,r+2*o*64,e,t+64*o,64);for(o=0;o<n;o++)i(e,r+64*(2*o+1),e,t+64*(o+n),64)}function E(e,t){return e<<t|e>>>32-t}function S(e){var t;for(t=0;t<16;t++)l[t]=(255&e[4*t+0])<<0,l[t]|=(255&e[4*t+1])<<8,l[t]|=(255&e[4*t+2])<<16,l[t]|=(255&e[4*t+3])<<24;for(i(l,0,p,0,16),t=8;t>0;t-=2)p[4]^=E(p[0]+p[12],7),p[8]^=E(p[4]+p[0],9),p[12]^=E(p[8]+p[4],13),p[0]^=E(p[12]+p[8],18),p[9]^=E(p[5]+p[1],7),p[13]^=E(p[9]+p[5],9),p[1]^=E(p[13]+p[9],13),p[5]^=E(p[1]+p[13],18),p[14]^=E(p[10]+p[6],7),p[2]^=E(p[14]+p[10],9),p[6]^=E(p[2]+p[14],13),p[10]^=E(p[6]+p[2],18),p[3]^=E(p[15]+p[11],7),p[7]^=E(p[3]+p[15],9),p[11]^=E(p[7]+p[3],13),p[15]^=E(p[11]+p[7],18),p[1]^=E(p[0]+p[3],7),p[2]^=E(p[1]+p[0],9),p[3]^=E(p[2]+p[1],13),p[0]^=E(p[3]+p[2],18),p[6]^=E(p[5]+p[4],7),p[7]^=E(p[6]+p[5],9),p[4]^=E(p[7]+p[6],13),p[5]^=E(p[4]+p[7],18),p[11]^=E(p[10]+p[9],7),p[8]^=E(p[11]+p[10],9),p[9]^=E(p[8]+p[11],13),p[10]^=E(p[9]+p[8],18),p[12]^=E(p[15]+p[14],7),p[13]^=E(p[12]+p[15],9),p[14]^=E(p[13]+p[12],13),p[15]^=E(p[14]+p[13],18);for(t=0;t<16;++t)l[t]=p[t]+l[t];for(t=0;t<16;t++){var r=4*t;e[r+0]=l[t]>>0&255,e[r+1]=l[t]>>8&255,e[r+2]=l[t]>>16&255,e[r+3]=l[t]>>24&255}}function A(e,t,r,n,i){for(var o=0;o<i;o++)r[n+o]^=e[t+o]}}}).call(t,r(3).Buffer)},function(e,t,r){t.SERVICES=["21.co","blockcypher","bitpay","btc.com"];const n={};t.SERVICES.forEach(e=>{n[e]=r(420)("./"+e)}),t.fetchFee=function(e){return n[e].fetchFee()}},,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,i=(n=r(422))&&"object"==typeof n&&"default"in n?n.default:n;t.createGroup=function(){var e=[];return{routes:e,add:function(t){return"function"==typeof t&&(e.push(t),t)},remove:function(t){return e.indexOf(t)>-1&&(e.splice(e.indexOf(t),1),t)},getRoute:function(t){for(var r=0;r<e.length;r++)if(e[r].match(t))return e[r];return!1},getParams:function(t){for(var r={},n=0;n<e.length;n++){var i=e[n].match(t);if(!1!==i)for(var o in i)"string"==typeof i[o]&&(r[o]=i[o])}return r}}},t.createRoute=function(e){var t=new i(e),r=function(e){return t.reverse(e)};return r.match=function(e){return t.match(function(e){return"string"!=typeof e&&"undefined"!=typeof window&&void 0!==window.location?window.location.href.slice(location.origin.length):e}(e))},r.route=t,r}},function(e,t,r){"use strict";var n=r(423);e.exports=n},function(e,t,r){"use strict";var n=r(424),i=r(426),o=r(427);function a(e){var t;if(t=this?this:Object.create(a.prototype),void 0===e)throw new Error("A route spec is required");return t.spec=e,t.ast=n.parse(e),t}a.prototype=Object.create(null),a.prototype.match=function(e){var t=i.visit(this.ast).match(e);return t||!1},a.prototype.reverse=function(e){return o.visit(this.ast,e)},e.exports=a},function(e,t,r){"use strict";var n=r(425).parser;n.yy=r(208),e.exports=n},function(e,t,r){var n=function(){var e=function(e,t,r,n){for(r=r||{},n=e.length;n--;r[e[n]]=t);return r},t=[1,9],r=[1,10],n=[1,11],i=[1,12],o=[5,11,12,13,14,15],a={trace:function(){},yy:{},symbols_:{error:2,root:3,expressions:4,EOF:5,expression:6,optional:7,literal:8,splat:9,param:10,"(":11,")":12,LITERAL:13,SPLAT:14,PARAM:15,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",11:"(",12:")",13:"LITERAL",14:"SPLAT",15:"PARAM"},productions_:[0,[3,2],[3,1],[4,2],[4,1],[6,1],[6,1],[6,1],[6,1],[7,3],[8,1],[9,1],[10,1]],performAction:function(e,t,r,n,i,o,a){var s=o.length-1;switch(i){case 1:return new n.Root({},[o[s-1]]);case 2:return new n.Root({},[new n.Literal({value:""})]);case 3:this.$=new n.Concat({},[o[s-1],o[s]]);break;case 4:case 5:this.$=o[s];break;case 6:this.$=new n.Literal({value:o[s]});break;case 7:this.$=new n.Splat({name:o[s]});break;case 8:this.$=new n.Param({name:o[s]});break;case 9:this.$=new n.Optional({},[o[s-1]]);break;case 10:this.$=e;break;case 11:case 12:this.$=e.slice(1)}},table:[{3:1,4:2,5:[1,3],6:4,7:5,8:6,9:7,10:8,11:t,13:r,14:n,15:i},{1:[3]},{5:[1,13],6:14,7:5,8:6,9:7,10:8,11:t,13:r,14:n,15:i},{1:[2,2]},e(o,[2,4]),e(o,[2,5]),e(o,[2,6]),e(o,[2,7]),e(o,[2,8]),{4:15,6:4,7:5,8:6,9:7,10:8,11:t,13:r,14:n,15:i},e(o,[2,10]),e(o,[2,11]),e(o,[2,12]),{1:[2,1]},e(o,[2,3]),{6:14,7:5,8:6,9:7,10:8,11:t,12:[1,16],13:r,14:n,15:i},e(o,[2,9])],defaultActions:{3:[2,2],13:[2,1]},parseError:function(e,t){if(!t.recoverable){function r(e,t){this.message=e,this.hash=t}throw r.prototype=Error,new r(e,t)}this.trace(e)},parse:function(e){var t=this,r=[0],n=[null],i=[],o=this.table,a="",s=0,f=0,c=0,u=i.slice.call(arguments,1),h=Object.create(this.lexer),d={yy:{}};for(var l in this.yy)Object.prototype.hasOwnProperty.call(this.yy,l)&&(d.yy[l]=this.yy[l]);h.setInput(e,d.yy),d.yy.lexer=h,d.yy.parser=this,void 0===h.yylloc&&(h.yylloc={});var p=h.yylloc;i.push(p);var b=h.options&&h.options.ranges;"function"==typeof d.yy.parseError?this.parseError=d.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var v,y,m,g,w,_,E,S,A,I=function(){var e;return"number"!=typeof(e=h.lex()||1)&&(e=t.symbols_[e]||e),e},k={};;){if(m=r[r.length-1],this.defaultActions[m]?g=this.defaultActions[m]:(null!==v&&void 0!==v||(v=I()),g=o[m]&&o[m][v]),void 0===g||!g.length||!g[0]){var x="";for(_ in A=[],o[m])this.terminals_[_]&&_>2&&A.push("'"+this.terminals_[_]+"'");x=h.showPosition?"Parse error on line "+(s+1)+":\n"+h.showPosition()+"\nExpecting "+A.join(", ")+", got '"+(this.terminals_[v]||v)+"'":"Parse error on line "+(s+1)+": Unexpected "+(1==v?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(x,{text:h.match,token:this.terminals_[v]||v,line:h.yylineno,loc:p,expected:A})}if(g[0]instanceof Array&&g.length>1)throw new Error("Parse Error: multiple actions possible at state: "+m+", token: "+v);switch(g[0]){case 1:r.push(v),n.push(h.yytext),i.push(h.yylloc),r.push(g[1]),v=null,y?(v=y,y=null):(f=h.yyleng,a=h.yytext,s=h.yylineno,p=h.yylloc,c>0&&c--);break;case 2:if(E=this.productions_[g[1]][1],k.$=n[n.length-E],k._$={first_line:i[i.length-(E||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(E||1)].first_column,last_column:i[i.length-1].last_column},b&&(k._$.range=[i[i.length-(E||1)].range[0],i[i.length-1].range[1]]),void 0!==(w=this.performAction.apply(k,[a,f,s,d.yy,g[1],n,i].concat(u))))return w;E&&(r=r.slice(0,-1*E*2),n=n.slice(0,-1*E),i=i.slice(0,-1*E)),r.push(this.productions_[g[1]][0]),n.push(k.$),i.push(k._$),S=o[r[r.length-2]][r[r.length-1]],r.push(S);break;case 3:return!0}}return!0}},s={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,r=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var n=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:r?(r.length===n.length?this.yylloc.first_column:0)+n[n.length-r.length].length-r[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var r,n,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(n=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=n.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:n?n[n.length-1].length-n[n.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],r=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack){for(var o in i)this[o]=i[o];return!1}return!1},next:function(){if(this.done)return this.EOF;var e,t,r,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),o=0;o<i.length;o++)if((r=this._input.match(this.rules[i[o]]))&&(!t||r[0].length>t[0].length)){if(t=r,n=o,this.options.backtrack_lexer){if(!1!==(e=this.test_match(r,i[o])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[n]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(e,t,r,n){switch(r){case 0:return"(";case 1:return")";case 2:return"SPLAT";case 3:return"PARAM";case 4:case 5:return"LITERAL";case 6:return"EOF"}},rules:[/^(?:\()/,/^(?:\))/,/^(?:\*+\w+)/,/^(?::+\w+)/,/^(?:[\w%\-~\n]+)/,/^(?:.)/,/^(?:$)/],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6],inclusive:!0}}};function f(){this.yy={}}return a.lexer=s,f.prototype=a,a.Parser=f,new f}();t.parser=n,t.Parser=n.Parser,t.parse=function(){return n.parse.apply(n,arguments)}},function(e,t,r){"use strict";var n=r(209),i=/[\-{}\[\]+?.,\\\^$|#\s]/g;function o(e){this.captures=e.captures,this.re=e.re}o.prototype.match=function(e){var t=this.re.exec(e),r={};if(t)return this.captures.forEach(function(e,n){void 0===t[n+1]?r[e]=void 0:r[e]=decodeURIComponent(t[n+1])}),r};var a=n({Concat:function(e){return e.children.reduce(function(e,t){var r=this.visit(t);return{re:e.re+r.re,captures:e.captures.concat(r.captures)}}.bind(this),{re:"",captures:[]})},Literal:function(e){return{re:e.props.value.replace(i,"\\$&"),captures:[]}},Splat:function(e){return{re:"([^?]*?)",captures:[e.props.name]}},Param:function(e){return{re:"([^\\/\\?]+)",captures:[e.props.name]}},Optional:function(e){var t=this.visit(e.children[0]);return{re:"(?:"+t.re+")?",captures:t.captures}},Root:function(e){var t=this.visit(e.children[0]);return new o({re:new RegExp("^"+t.re+"(?=\\?|$)"),captures:t.captures})}});e.exports=a},function(e,t,r){"use strict";var n=r(209)({Concat:function(e,t){var r=e.children.map(function(e){return this.visit(e,t)}.bind(this));return!r.some(function(e){return!1===e})&&r.join("")},Literal:function(e){return decodeURI(e.props.value)},Splat:function(e,t){return!!t[e.props.name]&&t[e.props.name]},Param:function(e,t){return!!t[e.props.name]&&t[e.props.name]},Optional:function(e,t){var r=this.visit(e.children[0],t);return r||""},Root:function(e,t){t=t||{};var r=this.visit(e.children[0],t);return!!r&&encodeURI(r)}});e.exports=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="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},i="location",o="group",a="-";function s(e){var t=e.children;return u(e)?t:null}var f=s;function c(e){var t=e.props.children||e.children;return Array.isArray(t)?t[0]:t}function u(e,t,r){if(e.hasOwnProperty("if")&&!e.if)return!1;if(void 0!==t){if(e.hasOwnProperty("is")&&void 0!==r){var i=(b=e.is,Array.isArray(b)?e.is:[e.is]),o=r.getRoute(t.href);if(0===i.filter(function(e){return o===e}).length)return!1}for(var s in e){var f=t.hasOwnProperty(s),c=t[s];if(!f){var u=s.split(a),d=u.pop(),l=h(t,u);(p=l)&&"object"==(void 0===p?"undefined":n(p))&&l.hasOwnProperty(d)&&(f=!0,c=l[d])}if(f&&"children"!==s&&"if"!==s)if(e[s]instanceof RegExp){if(!e[s].test(c))return!1}else if(e[s]!==c)return!1}}var p,b;return!0}function h(e,t){if(0===t.length)return e;for(var r,i=0,o=t.length;i<o;i++){if(r=e[t[i]],!(i+1<o&&null!==r&&"object"==(void 0===r?"undefined":n(r))))return e.hasOwnProperty(t[i])?r:void 0;e=r}return e[t[index]]}t.Router=function(e){for(var t=e.children,r=Array.isArray(t)?t:[t],n=e[i],a=e[o],s=0,f=r.length;s<f;++s)if(u((t=r[s]).props,n,a))return c(t);return null},t.Route=s,t.Show=f},,,,,,function(e,t,r){e.exports=r(435)()},function(e,t,r){"use strict";var n=r(127),i=r(128);e.exports=function(){function e(){i(!1,"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")}function t(){return e}e.isRequired=e;var r={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t};return r.checkPropTypes=n,r.PropTypes=r,r}},,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i=a(r(0)),o=a(r(20));function a(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){return i.default.createElement(o.default,n({viewBox:"0 0 40 40"},e),i.default.createElement("g",null,i.default.createElement("path",{d:"m5 10h30v3.4h-30v-3.4z m0 11.6v-3.2h30v3.2h-30z m0 8.4v-3.4h30v3.4h-30z"})))},e.exports=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i=a(r(0)),o=a(r(20));function a(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){return i.default.createElement(o.default,n({viewBox:"0 0 40 40"},e),i.default.createElement("g",null,i.default.createElement("path",{d:"m16.6 33.4h-8.2v-13.4h-5l16.6-15 16.6 15h-5v13.4h-8.2v-10h-6.8v10z"})))},e.exports=t.default},,function(e,t,r){var n,i;void 0===(i="function"==typeof(n=function(e,t,r){return function(e,t,r,n,i,o){function a(e){return"number"==typeof e&&!isNaN(e)}var s=this;if(s.version=function(){return"1.9.3"},s.options={useEasing:!0,useGrouping:!0,separator:",",decimal:".",easingFn:function(e,t,r,n){return r*(1-Math.pow(2,-10*e/n))*1024/1023+t},formattingFn:function(e){var t,r,n,i,o,a,f=e<0;if(e=Math.abs(e).toFixed(s.decimals),r=(t=(e+="").split("."))[0],n=t.length>1?s.options.decimal+t[1]:"",s.options.useGrouping){for(i="",o=0,a=r.length;o<a;++o)0!==o&&o%3==0&&(i=s.options.separator+i),i=r[a-o-1]+i;r=i}return s.options.numerals.length&&(r=r.replace(/[0-9]/g,function(e){return s.options.numerals[+e]}),n=n.replace(/[0-9]/g,function(e){return s.options.numerals[+e]})),(f?"-":"")+s.options.prefix+r+n+s.options.suffix},prefix:"",suffix:"",numerals:[]},o&&"object"==typeof o)for(var f in s.options)o.hasOwnProperty(f)&&null!==o[f]&&(s.options[f]=o[f]);""===s.options.separator?s.options.useGrouping=!1:s.options.separator=""+s.options.separator;for(var c=0,u=["webkit","moz","ms","o"],h=0;h<u.length&&!window.requestAnimationFrame;++h)window.requestAnimationFrame=window[u[h]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[u[h]+"CancelAnimationFrame"]||window[u[h]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(e,t){var r=(new Date).getTime(),n=Math.max(0,16-(r-c)),i=window.setTimeout(function(){e(r+n)},n);return c=r+n,i}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(e){clearTimeout(e)}),s.initialize=function(){return!(!s.initialized&&(s.error="",s.d="string"==typeof e?document.getElementById(e):e,s.d?(s.startVal=Number(t),s.endVal=Number(r),a(s.startVal)&&a(s.endVal)?(s.decimals=Math.max(0,n||0),s.dec=Math.pow(10,s.decimals),s.duration=1e3*Number(i)||2e3,s.countDown=s.startVal>s.endVal,s.frameVal=s.startVal,s.initialized=!0,0):(s.error="[CountUp] startVal ("+t+") or endVal ("+r+") is not a number",1)):(s.error="[CountUp] target is null or undefined",1)))},s.printValue=function(e){var t=s.options.formattingFn(e);"INPUT"===s.d.tagName?this.d.value=t:"text"===s.d.tagName||"tspan"===s.d.tagName?this.d.textContent=t:this.d.innerHTML=t},s.count=function(e){s.startTime||(s.startTime=e),s.timestamp=e;var t=e-s.startTime;s.remaining=s.duration-t,s.options.useEasing?s.countDown?s.frameVal=s.startVal-s.options.easingFn(t,0,s.startVal-s.endVal,s.duration):s.frameVal=s.options.easingFn(t,s.startVal,s.endVal-s.startVal,s.duration):s.countDown?s.frameVal=s.startVal-(s.startVal-s.endVal)*(t/s.duration):s.frameVal=s.startVal+(s.endVal-s.startVal)*(t/s.duration),s.countDown?s.frameVal=s.frameVal<s.endVal?s.endVal:s.frameVal:s.frameVal=s.frameVal>s.endVal?s.endVal:s.frameVal,s.frameVal=Math.round(s.frameVal*s.dec)/s.dec,s.printValue(s.frameVal),t<s.duration?s.rAF=requestAnimationFrame(s.count):s.callback&&s.callback()},s.start=function(e){s.initialize()&&(s.callback=e,s.rAF=requestAnimationFrame(s.count))},s.pauseResume=function(){s.paused?(s.paused=!1,delete s.startTime,s.duration=s.remaining,s.startVal=s.frameVal,requestAnimationFrame(s.count)):(s.paused=!0,cancelAnimationFrame(s.rAF))},s.reset=function(){s.paused=!1,delete s.startTime,s.initialized=!1,s.initialize()&&(cancelAnimationFrame(s.rAF),s.printValue(s.startVal))},s.update=function(e){if(s.initialize()){if(!a(e=Number(e)))return void(s.error="[CountUp] update() - new endVal is not a number: "+e);s.error="",e!==s.frameVal&&(cancelAnimationFrame(s.rAF),s.paused=!1,delete s.startTime,s.startVal=s.frameVal,s.endVal=e,s.countDown=s.startVal>s.endVal,s.rAF=requestAnimationFrame(s.count))}},s.initialize()&&s.printValue(s.startVal)}})?n.call(t,r,t,e):n)||(e.exports=i)},,,,,,,,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i=a(r(0)),o=a(r(20));function a(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){return i.default.createElement(o.default,n({viewBox:"0 0 40 40"},e),i.default.createElement("g",null,i.default.createElement("path",{d:"m15.9 23.4c4.1 0 7.5-3.4 7.5-7.5s-3.4-7.5-7.5-7.5-7.5 3.3-7.5 7.5 3.3 7.5 7.5 7.5z m10 0l8.2 8.2-2.5 2.5-8.2-8.2v-1.4l-0.5-0.4c-1.9 1.6-4.4 2.5-7 2.5-6.1 0-10.9-4.7-10.9-10.7s4.8-10.9 10.9-10.9 10.7 4.8 10.7 10.9c0 2.6-0.9 5.1-2.5 7l0.4 0.5h1.4z"})))},e.exports=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i=a(r(0)),o=a(r(20));function a(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){return i.default.createElement(o.default,n({viewBox:"0 0 40 40"},e),i.default.createElement("g",null,i.default.createElement("path",{d:"m31.6 6.6v3.4h-23.2v-3.4h5.7l1.8-1.6h8.2l1.8 1.6h5.7z m-21.6 25v-20h20v20c0 1.8-1.6 3.4-3.4 3.4h-13.2c-1.8 0-3.4-1.6-3.4-3.4z"})))},e.exports=t.default},,,function(e,t,r){var n;n=function(){"use strict";var e=function(){},t=Object.prototype.hasOwnProperty,r=Array.prototype.slice;function n(e,n,i){for(var o,a,s=0,f=(i=r.call(arguments,2)).length;s<f;s++)for(o in a=i[s])e&&!t.call(a,o)||(n[o]=a[o])}var i=function(t,r,i,o){var a=this;return"string"!=typeof t&&(o=i,i=r,r=t,t=null),"function"!=typeof r&&(o=i,i=r,r=function(){return a.apply(this,arguments)}),n(!1,r,a,o),r.prototype=function(t,r){var i;return"function"==typeof Object.create?i=Object.create(t):(e.prototype=t,i=new e,e.prototype=null),r&&n(!0,i,r),i}(a.prototype,i),r.prototype.constructor=r,r.class_=t||a.class_,r.super_=a,r};function o(){}o.class_="Nevis",o.super_=Object,o.extend=i;var a=o,s=a.extend(function(e,t,r){this.qrious=e,this.element=t,this.element.qrious=e,this.enabled=Boolean(r)},{draw:function(e){},getElement:function(){return this.enabled||(this.enabled=!0,this.render()),this.element},getModuleSize:function(e){var t=this.qrious,r=t.padding||0,n=Math.floor((t.size-2*r)/e.width);return Math.max(1,n)},getOffset:function(e){var t=this.qrious,r=t.padding;if(null!=r)return r;var n=this.getModuleSize(e),i=Math.floor((t.size-n*e.width)/2);return Math.max(0,i)},render:function(e){this.enabled&&(this.resize(),this.reset(),this.draw(e))},reset:function(){},resize:function(){}}),f=s.extend({draw:function(e){var t,r,n=this.qrious,i=this.getModuleSize(e),o=this.getOffset(e),a=this.element.getContext("2d");for(a.fillStyle=n.foreground,a.globalAlpha=n.foregroundAlpha,t=0;t<e.width;t++)for(r=0;r<e.width;r++)e.buffer[r*e.width+t]&&a.fillRect(i*t+o,i*r+o,i,i)},reset:function(){var e=this.qrious,t=this.element.getContext("2d"),r=e.size;t.lineWidth=1,t.clearRect(0,0,r,r),t.fillStyle=e.background,t.globalAlpha=e.backgroundAlpha,t.fillRect(0,0,r,r)},resize:function(){var e=this.element;e.width=e.height=this.qrious.size}}),c=a.extend(null,{BLOCK:[0,11,15,19,23,27,31,16,18,20,22,24,26,28,20,22,24,24,26,28,28,22,24,24,26,26,28,28,24,24,26,26,26,28,28,24,26,26,26,28,28]}),u=a.extend(null,{BLOCKS:[1,0,19,7,1,0,16,10,1,0,13,13,1,0,9,17,1,0,34,10,1,0,28,16,1,0,22,22,1,0,16,28,1,0,55,15,1,0,44,26,2,0,17,18,2,0,13,22,1,0,80,20,2,0,32,18,2,0,24,26,4,0,9,16,1,0,108,26,2,0,43,24,2,2,15,18,2,2,11,22,2,0,68,18,4,0,27,16,4,0,19,24,4,0,15,28,2,0,78,20,4,0,31,18,2,4,14,18,4,1,13,26,2,0,97,24,2,2,38,22,4,2,18,22,4,2,14,26,2,0,116,30,3,2,36,22,4,4,16,20,4,4,12,24,2,2,68,18,4,1,43,26,6,2,19,24,6,2,15,28,4,0,81,20,1,4,50,30,4,4,22,28,3,8,12,24,2,2,92,24,6,2,36,22,4,6,20,26,7,4,14,28,4,0,107,26,8,1,37,22,8,4,20,24,12,4,11,22,3,1,115,30,4,5,40,24,11,5,16,20,11,5,12,24,5,1,87,22,5,5,41,24,5,7,24,30,11,7,12,24,5,1,98,24,7,3,45,28,15,2,19,24,3,13,15,30,1,5,107,28,10,1,46,28,1,15,22,28,2,17,14,28,5,1,120,30,9,4,43,26,17,1,22,28,2,19,14,28,3,4,113,28,3,11,44,26,17,4,21,26,9,16,13,26,3,5,107,28,3,13,41,26,15,5,24,30,15,10,15,28,4,4,116,28,17,0,42,26,17,6,22,28,19,6,16,30,2,7,111,28,17,0,46,28,7,16,24,30,34,0,13,24,4,5,121,30,4,14,47,28,11,14,24,30,16,14,15,30,6,4,117,30,6,14,45,28,11,16,24,30,30,2,16,30,8,4,106,26,8,13,47,28,7,22,24,30,22,13,15,30,10,2,114,28,19,4,46,28,28,6,22,28,33,4,16,30,8,4,122,30,22,3,45,28,8,26,23,30,12,28,15,30,3,10,117,30,3,23,45,28,4,31,24,30,11,31,15,30,7,7,116,30,21,7,45,28,1,37,23,30,19,26,15,30,5,10,115,30,19,10,47,28,15,25,24,30,23,25,15,30,13,3,115,30,2,29,46,28,42,1,24,30,23,28,15,30,17,0,115,30,10,23,46,28,10,35,24,30,19,35,15,30,17,1,115,30,14,21,46,28,29,19,24,30,11,46,15,30,13,6,115,30,14,23,46,28,44,7,24,30,59,1,16,30,12,7,121,30,12,26,47,28,39,14,24,30,22,41,15,30,6,14,121,30,6,34,47,28,46,10,24,30,2,64,15,30,17,4,122,30,29,14,46,28,49,10,24,30,24,46,15,30,4,18,122,30,13,32,46,28,48,14,24,30,42,32,15,30,20,4,117,30,40,7,47,28,43,22,24,30,10,67,15,30,19,6,118,30,18,31,47,28,34,34,24,30,20,61,15,30],FINAL_FORMAT:[30660,29427,32170,30877,26159,25368,27713,26998,21522,20773,24188,23371,17913,16590,20375,19104,13663,12392,16177,14854,9396,8579,11994,11245,5769,5054,7399,6608,1890,597,3340,2107],LEVELS:{L:1,M:2,Q:3,H:4}}),h=a.extend(null,{EXPONENT:[1,2,4,8,16,32,64,128,29,58,116,232,205,135,19,38,76,152,45,90,180,117,234,201,143,3,6,12,24,48,96,192,157,39,78,156,37,74,148,53,106,212,181,119,238,193,159,35,70,140,5,10,20,40,80,160,93,186,105,210,185,111,222,161,95,190,97,194,153,47,94,188,101,202,137,15,30,60,120,240,253,231,211,187,107,214,177,127,254,225,223,163,91,182,113,226,217,175,67,134,17,34,68,136,13,26,52,104,208,189,103,206,129,31,62,124,248,237,199,147,59,118,236,197,151,51,102,204,133,23,46,92,184,109,218,169,79,158,33,66,132,21,42,84,168,77,154,41,82,164,85,170,73,146,57,114,228,213,183,115,230,209,191,99,198,145,63,126,252,229,215,179,123,246,241,255,227,219,171,75,150,49,98,196,149,55,110,220,165,87,174,65,130,25,50,100,200,141,7,14,28,56,112,224,221,167,83,166,81,162,89,178,121,242,249,239,195,155,43,86,172,69,138,9,18,36,72,144,61,122,244,245,247,243,251,235,203,139,11,22,44,88,176,125,250,233,207,131,27,54,108,216,173,71,142,0],LOG:[255,0,1,25,2,50,26,198,3,223,51,238,27,104,199,75,4,100,224,14,52,141,239,129,28,193,105,248,200,8,76,113,5,138,101,47,225,36,15,33,53,147,142,218,240,18,130,69,29,181,194,125,106,39,249,185,201,154,9,120,77,228,114,166,6,191,139,98,102,221,48,253,226,152,37,179,16,145,34,136,54,208,148,206,143,150,219,189,241,210,19,92,131,56,70,64,30,66,182,163,195,72,126,110,107,58,40,84,250,133,186,61,202,94,155,159,10,21,121,43,78,212,229,172,115,243,167,87,7,112,192,247,140,128,99,13,103,74,222,237,49,197,254,24,227,165,153,119,38,184,180,124,17,68,146,217,35,32,137,46,55,63,209,91,149,188,207,205,144,135,151,178,220,252,190,97,242,86,211,171,20,42,93,158,132,60,57,83,71,109,65,162,31,45,67,216,183,123,164,118,196,23,73,236,127,12,111,246,108,161,59,82,41,157,85,170,251,96,134,177,187,204,62,90,203,89,95,176,156,169,160,81,11,245,22,235,122,117,44,215,79,174,213,233,230,231,173,232,116,214,244,234,168,80,88,175]}),d=a.extend(null,{BLOCK:[3220,1468,2713,1235,3062,1890,2119,1549,2344,2936,1117,2583,1330,2470,1667,2249,2028,3780,481,4011,142,3098,831,3445,592,2517,1776,2234,1951,2827,1070,2660,1345,3177]}),l=a.extend(function(e){var t,r,n,i,o,a=e.value.length;for(this._badness=[],this._level=u.LEVELS[e.level],this._polynomial=[],this._value=e.value,this._version=0,this._stringBuffer=[];this._version<40&&(this._version++,n=4*(this._level-1)+16*(this._version-1),i=u.BLOCKS[n++],o=u.BLOCKS[n++],t=u.BLOCKS[n++],r=u.BLOCKS[n],!(a<=(n=t*(i+o)+o-3+(this._version<=9)))););this._dataBlock=t,this._eccBlock=r,this._neccBlock1=i,this._neccBlock2=o;var s=this.width=17+4*this._version;this.buffer=l._createArray(s*s),this._ecc=l._createArray(t+(t+r)*(i+o)+o),this._mask=l._createArray((s*(s+1)+1)/2),this._insertFinders(),this._insertAlignments(),this.buffer[8+s*(s-8)]=1,this._insertTimingGap(),this._reverseMask(),this._insertTimingRowAndColumn(),this._insertVersion(),this._syncMask(),this._convertBitStream(a),this._calculatePolynomial(),this._appendEccToData(),this._interleaveBlocks(),this._pack(),this._finish()},{_addAlignment:function(e,t){var r,n=this.buffer,i=this.width;for(n[e+i*t]=1,r=-2;r<2;r++)n[e+r+i*(t-2)]=1,n[e-2+i*(t+r+1)]=1,n[e+2+i*(t+r)]=1,n[e+r+1+i*(t+2)]=1;for(r=0;r<2;r++)this._setMask(e-1,t+r),this._setMask(e+1,t-r),this._setMask(e-r,t-1),this._setMask(e+r,t+1)},_appendData:function(e,t,r,n){var i,o,a,s=this._polynomial,f=this._stringBuffer;for(o=0;o<n;o++)f[r+o]=0;for(o=0;o<t;o++){if(255!==(i=h.LOG[f[e+o]^f[r]]))for(a=1;a<n;a++)f[r+a-1]=f[r+a]^h.EXPONENT[l._modN(i+s[n-a])];else for(a=r;a<r+n;a++)f[a]=f[a+1];f[r+n-1]=255===i?0:h.EXPONENT[l._modN(i+s[0])]}},_appendEccToData:function(){var e,t=0,r=this._dataBlock,n=this._calculateMaxLength(),i=this._eccBlock;for(e=0;e<this._neccBlock1;e++)this._appendData(t,r,n,i),t+=r,n+=i;for(e=0;e<this._neccBlock2;e++)this._appendData(t,r+1,n,i),t+=r+1,n+=i},_applyMask:function(e){var t,r,n,i,o=this.buffer,a=this.width;switch(e){case 0:for(i=0;i<a;i++)for(n=0;n<a;n++)n+i&1||this._isMasked(n,i)||(o[n+i*a]^=1);break;case 1:for(i=0;i<a;i++)for(n=0;n<a;n++)1&i||this._isMasked(n,i)||(o[n+i*a]^=1);break;case 2:for(i=0;i<a;i++)for(t=0,n=0;n<a;n++,t++)3===t&&(t=0),t||this._isMasked(n,i)||(o[n+i*a]^=1);break;case 3:for(r=0,i=0;i<a;i++,r++)for(3===r&&(r=0),t=r,n=0;n<a;n++,t++)3===t&&(t=0),t||this._isMasked(n,i)||(o[n+i*a]^=1);break;case 4:for(i=0;i<a;i++)for(t=0,r=i>>1&1,n=0;n<a;n++,t++)3===t&&(t=0,r=!r),r||this._isMasked(n,i)||(o[n+i*a]^=1);break;case 5:for(r=0,i=0;i<a;i++,r++)for(3===r&&(r=0),t=0,n=0;n<a;n++,t++)3===t&&(t=0),(n&i&1)+!(!t|!r)||this._isMasked(n,i)||(o[n+i*a]^=1);break;case 6:for(r=0,i=0;i<a;i++,r++)for(3===r&&(r=0),t=0,n=0;n<a;n++,t++)3===t&&(t=0),(n&i&1)+(t&&t===r)&1||this._isMasked(n,i)||(o[n+i*a]^=1);break;case 7:for(r=0,i=0;i<a;i++,r++)for(3===r&&(r=0),t=0,n=0;n<a;n++,t++)3===t&&(t=0),(t&&t===r)+(n+i&1)&1||this._isMasked(n,i)||(o[n+i*a]^=1)}},_calculateMaxLength:function(){return this._dataBlock*(this._neccBlock1+this._neccBlock2)+this._neccBlock2},_calculatePolynomial:function(){var e,t,r=this._eccBlock,n=this._polynomial;for(n[0]=1,e=0;e<r;e++){for(n[e+1]=1,t=e;t>0;t--)n[t]=n[t]?n[t-1]^h.EXPONENT[l._modN(h.LOG[n[t]]+e)]:n[t-1];n[0]=h.EXPONENT[l._modN(h.LOG[n[0]]+e)]}for(e=0;e<=r;e++)n[e]=h.LOG[n[e]]},_checkBadness:function(){var e,t,r,n,i,o=0,a=this._badness,s=this.buffer,f=this.width;for(i=0;i<f-1;i++)for(n=0;n<f-1;n++)(s[n+f*i]&&s[n+1+f*i]&&s[n+f*(i+1)]&&s[n+1+f*(i+1)]||!(s[n+f*i]||s[n+1+f*i]||s[n+f*(i+1)]||s[n+1+f*(i+1)]))&&(o+=l.N2);var c=0;for(i=0;i<f;i++){for(r=0,a[0]=0,e=0,n=0;n<f;n++)e===(t=s[n+f*i])?a[r]++:a[++r]=1,c+=(e=t)?1:-1;o+=this._getBadness(r)}c<0&&(c=-c);var u=0,h=c;for(h+=h<<2,h<<=1;h>f*f;)h-=f*f,u++;for(o+=u*l.N4,n=0;n<f;n++){for(r=0,a[0]=0,e=0,i=0;i<f;i++)e===(t=s[n+f*i])?a[r]++:a[++r]=1,e=t;o+=this._getBadness(r)}return o},_convertBitStream:function(e){var t,r,n=this._ecc,i=this._version;for(r=0;r<e;r++)n[r]=this._value.charCodeAt(r);var o=this._stringBuffer=n.slice(),a=this._calculateMaxLength();e>=a-2&&(e=a-2,i>9&&e--);var s=e;if(i>9){for(o[s+2]=0,o[s+3]=0;s--;)t=o[s],o[s+3]|=255&t<<4,o[s+2]=t>>4;o[2]|=255&e<<4,o[1]=e>>4,o[0]=64|e>>12}else{for(o[s+1]=0,o[s+2]=0;s--;)t=o[s],o[s+2]|=255&t<<4,o[s+1]=t>>4;o[1]|=255&e<<4,o[0]=64|e>>4}for(s=e+3-(i<10);s<a;)o[s++]=236,o[s++]=17},_getBadness:function(e){var t,r=0,n=this._badness;for(t=0;t<=e;t++)n[t]>=5&&(r+=l.N1+n[t]-5);for(t=3;t<e-1;t+=2)n[t-2]===n[t+2]&&n[t+2]===n[t-1]&&n[t-1]===n[t+1]&&3*n[t-1]===n[t]&&(0===n[t-3]||t+3>e||3*n[t-3]>=4*n[t]||3*n[t+3]>=4*n[t])&&(r+=l.N3);return r},_finish:function(){var e,t;this._stringBuffer=this.buffer.slice();var r=0,n=3e4;for(t=0;t<8&&(this._applyMask(t),(e=this._checkBadness())<n&&(n=e,r=t),7!==r);t++)this.buffer=this._stringBuffer.slice();r!==t&&this._applyMask(r),n=u.FINAL_FORMAT[r+(this._level-1<<3)];var i=this.buffer,o=this.width;for(t=0;t<8;t++,n>>=1)1&n&&(i[o-1-t+8*o]=1,t<6?i[8+o*t]=1:i[8+o*(t+1)]=1);for(t=0;t<7;t++,n>>=1)1&n&&(i[8+o*(o-7+t)]=1,t?i[6-t+8*o]=1:i[7+8*o]=1)},_interleaveBlocks:function(){var e,t,r=this._dataBlock,n=this._ecc,i=this._eccBlock,o=0,a=this._calculateMaxLength(),s=this._neccBlock1,f=this._neccBlock2,c=this._stringBuffer;for(e=0;e<r;e++){for(t=0;t<s;t++)n[o++]=c[e+t*r];for(t=0;t<f;t++)n[o++]=c[s*r+e+t*(r+1)]}for(t=0;t<f;t++)n[o++]=c[s*r+e+t*(r+1)];for(e=0;e<i;e++)for(t=0;t<s+f;t++)n[o++]=c[a+e+t*i];this._stringBuffer=n},_insertAlignments:function(){var e,t,r,n=this._version,i=this.width;if(n>1)for(e=c.BLOCK[n],r=i-7;;){for(t=i-7;t>e-3&&(this._addAlignment(t,r),!(t<e));)t-=e;if(r<=e+9)break;r-=e,this._addAlignment(6,r),this._addAlignment(r,6)}},_insertFinders:function(){var e,t,r,n,i=this.buffer,o=this.width;for(e=0;e<3;e++){for(t=0,n=0,1===e&&(t=o-7),2===e&&(n=o-7),i[n+3+o*(t+3)]=1,r=0;r<6;r++)i[n+r+o*t]=1,i[n+o*(t+r+1)]=1,i[n+6+o*(t+r)]=1,i[n+r+1+o*(t+6)]=1;for(r=1;r<5;r++)this._setMask(n+r,t+1),this._setMask(n+1,t+r+1),this._setMask(n+5,t+r),this._setMask(n+r+1,t+5);for(r=2;r<4;r++)i[n+r+o*(t+2)]=1,i[n+2+o*(t+r+1)]=1,i[n+4+o*(t+r)]=1,i[n+r+1+o*(t+4)]=1}},_insertTimingGap:function(){var e,t,r=this.width;for(t=0;t<7;t++)this._setMask(7,t),this._setMask(r-8,t),this._setMask(7,t+r-7);for(e=0;e<8;e++)this._setMask(e,7),this._setMask(e+r-8,7),this._setMask(e,r-8)},_insertTimingRowAndColumn:function(){var e,t=this.buffer,r=this.width;for(e=0;e<r-14;e++)1&e?(this._setMask(8+e,6),this._setMask(6,8+e)):(t[8+e+6*r]=1,t[6+r*(8+e)]=1)},_insertVersion:function(){var e,t,r,n,i=this.buffer,o=this._version,a=this.width;if(o>6)for(e=d.BLOCK[o-7],t=17,r=0;r<6;r++)for(n=0;n<3;n++,t--)1&(t>11?o>>t-12:e>>t)?(i[5-r+a*(2-n+a-11)]=1,i[2-n+a-11+a*(5-r)]=1):(this._setMask(5-r,2-n+a-11),this._setMask(2-n+a-11,5-r))},_isMasked:function(e,t){var r=l._getMaskBit(e,t);return 1===this._mask[r]},_pack:function(){var e,t,r,n=1,i=1,o=this.width,a=o-1,s=o-1,f=(this._dataBlock+this._eccBlock)*(this._neccBlock1+this._neccBlock2)+this._neccBlock2;for(t=0;t<f;t++)for(e=this._stringBuffer[t],r=0;r<8;r++,e<<=1){128&e&&(this.buffer[a+o*s]=1);do{i?a--:(a++,n?0!==s?s--:(n=!n,6===(a-=2)&&(a--,s=9)):s!==o-1?s++:(n=!n,6===(a-=2)&&(a--,s-=8))),i=!i}while(this._isMasked(a,s))}},_reverseMask:function(){var e,t,r=this.width;for(e=0;e<9;e++)this._setMask(e,8);for(e=0;e<8;e++)this._setMask(e+r-8,8),this._setMask(8,e);for(t=0;t<7;t++)this._setMask(8,t+r-7)},_setMask:function(e,t){var r=l._getMaskBit(e,t);this._mask[r]=1},_syncMask:function(){var e,t,r=this.width;for(t=0;t<r;t++)for(e=0;e<=t;e++)this.buffer[e+r*t]&&this._setMask(e,t)}},{_createArray:function(e){var t,r=[];for(t=0;t<e;t++)r[t]=0;return r},_getMaskBit:function(e,t){var r;return e>t&&(r=e,e=t,t=r),r=t,r+=t*t,r>>=1,r+=e},_modN:function(e){for(;e>=255;)e=((e-=255)>>8)+(255&e);return e},N1:3,N2:3,N3:40,N4:10}),p=l,b=s.extend({draw:function(){this.element.src=this.qrious.toDataURL()},reset:function(){this.element.src=""},resize:function(){var e=this.element;e.width=e.height=this.qrious.size}}),v=a.extend(function(e,t,r,n){this.name=e,this.modifiable=Boolean(t),this.defaultValue=r,this._valueTransformer=n},{transform:function(e){var t=this._valueTransformer;return"function"==typeof t?t(e,this):e}}),y=a.extend(null,{abs:function(e){return null!=e?Math.abs(e):null},hasOwn:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},noop:function(){},toUpperCase:function(e){return null!=e?e.toUpperCase():null}}),m=a.extend(function(e){this.options={},e.forEach(function(e){this.options[e.name]=e},this)},{exists:function(e){return null!=this.options[e]},get:function(e,t){return m._get(this.options[e],t)},getAll:function(e){var t,r=this.options,n={};for(t in r)y.hasOwn(r,t)&&(n[t]=m._get(r[t],e));return n},init:function(e,t,r){var n,i;for(n in"function"!=typeof r&&(r=y.noop),this.options)y.hasOwn(this.options,n)&&(i=this.options[n],m._set(i,i.defaultValue,t),m._createAccessor(i,t,r));this._setAll(e,t,!0)},set:function(e,t,r){return this._set(e,t,r)},setAll:function(e,t){return this._setAll(e,t)},_set:function(e,t,r,n){var i=this.options[e];if(!i)throw new Error("Invalid option: "+e);if(!i.modifiable&&!n)throw new Error("Option cannot be modified: "+e);return m._set(i,t,r)},_setAll:function(e,t,r){if(!e)return!1;var n,i=!1;for(n in e)y.hasOwn(e,n)&&this._set(n,e[n],t,r)&&(i=!0);return i}},{_createAccessor:function(e,t,r){var n={get:function(){return m._get(e,t)}};e.modifiable&&(n.set=function(n){m._set(e,n,t)&&r(n,e)}),Object.defineProperty(t,e.name,n)},_get:function(e,t){return t["_"+e.name]},_set:function(e,t,r){var n="_"+e.name,i=r[n],o=e.transform(null!=t?t:e.defaultValue);return r[n]=o,o!==i}}),g=m,w=a.extend(function(){this._services={}},{getService:function(e){var t=this._services[e];if(!t)throw new Error("Service is not being managed with name: "+e);return t},setService:function(e,t){if(this._services[e])throw new Error("Service is already managed with name: "+e);t&&(this._services[e]=t)}}),_=new g([new v("background",!0,"white"),new v("backgroundAlpha",!0,1,y.abs),new v("element"),new v("foreground",!0,"black"),new v("foregroundAlpha",!0,1,y.abs),new v("level",!0,"L",y.toUpperCase),new v("mime",!0,"image/png"),new v("padding",!0,null,y.abs),new v("size",!0,100,y.abs),new v("value",!0,"")]),E=new w,S=a.extend(function(e){_.init(e,this,this.update.bind(this));var t=_.get("element",this),r=E.getService("element"),n=t&&r.isCanvas(t)?t:r.createCanvas(),i=t&&r.isImage(t)?t:r.createImage();this._canvasRenderer=new f(this,n,!0),this._imageRenderer=new b(this,i,i===t),this.update()},{get:function(){return _.getAll(this)},set:function(e){_.setAll(e,this)&&this.update()},toDataURL:function(e){return this.canvas.toDataURL(e||this.mime)},update:function(){var e=new p({level:this.level,value:this.value});this._canvasRenderer.render(e),this._imageRenderer.render(e)}},{use:function(e){E.setService(e.getName(),e)}});Object.defineProperties(S.prototype,{canvas:{get:function(){return this._canvasRenderer.getElement()}},image:{get:function(){return this._imageRenderer.getElement()}}});var A=S,I=a.extend({getName:function(){}}).extend({createCanvas:function(){},createImage:function(){},getName:function(){return"element"},isCanvas:function(e){},isImage:function(e){}}).extend({createCanvas:function(){return document.createElement("canvas")},createImage:function(){return document.createElement("img")},isCanvas:function(e){return e instanceof HTMLCanvasElement},isImage:function(e){return e instanceof HTMLImageElement}});return A.use(new I),A},e.exports=n()},,,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i=a(r(0)),o=a(r(20));function a(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){return i.default.createElement(o.default,n({viewBox:"0 0 40 40"},e),i.default.createElement("g",null,i.default.createElement("path",{d:"m23.1 29.2c0 0-1 0.3-1.8 0.3-0.4 0-0.6-0.1-0.6-0.1-0.3-0.2-0.8-0.6 0-2.3l1.7-3.4c1-1.9 1.1-3.9 0.4-5.3-0.6-1.3-1.7-2.1-3.2-2.4-0.5-0.1-1-0.2-1.6-0.2-3.1 0-5.1 1.8-5.2 1.9-0.3 0.3-0.4 0.7-0.2 1.1 0.2 0.3 0.6 0.5 1 0.3 0 0 0.9-0.3 1.7-0.3 0.5 0 0.7 0.1 0.7 0.1 0.3 0.2 0.8 0.6-0.1 2.4l-1.6 3.3c-1 2-1.2 3.9-0.5 5.4 0.6 1.2 1.8 2 3.2 2.3 0.6 0.1 1.1 0.2 1.6 0.2 3.1 0 5.2-1.8 5.3-1.9 0.3-0.2 0.4-0.7 0.2-1-0.2-0.4-0.7-0.5-1-0.4z m2.7-19.2c0 2.3-1.8 4.2-4.1 4.2s-4.2-1.9-4.2-4.2c0-2.3 1.9-4.2 4.2-4.2s4.1 1.9 4.1 4.2z"})))},e.exports=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i=a(r(0)),o=a(r(20));function a(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){return i.default.createElement(o.default,n({viewBox:"0 0 40 40"},e),i.default.createElement("g",null,i.default.createElement("path",{d:"m21.6 21.6v-10h-3.2v10h3.2z m0 6.8v-3.4h-3.2v3.4h3.2z m-1.6-25c9.2 0 16.6 7.4 16.6 16.6s-7.4 16.6-16.6 16.6-16.6-7.4-16.6-16.6 7.4-16.6 16.6-16.6z"})))},e.exports=t.default},,,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i=a(r(0)),o=a(r(20));function a(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){return i.default.createElement(o.default,n({viewBox:"0 0 40 40"},e),i.default.createElement("g",null,i.default.createElement("path",{d:"m33.4 30v-16.6h-26.8v16.6h26.8z m0-20c1.8 0 3.2 1.6 3.2 3.4v16.6c0 1.8-1.4 3.4-3.2 3.4h-26.8c-1.8 0-3.2-1.6-3.2-3.4v-20c0-1.8 1.4-3.4 3.2-3.4h10l3.4 3.4h13.4z"})))},e.exports=t.default},,,,,,,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i=a(r(0)),o=a(r(20));function a(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){return i.default.createElement(o.default,n({viewBox:"0 0 40 40"},e),i.default.createElement("g",null,i.default.createElement("path",{d:"m20 25.9c3.2 0 5.9-2.7 5.9-5.9s-2.7-5.9-5.9-5.9-5.9 2.7-5.9 5.9 2.7 5.9 5.9 5.9z m12.4-4.3l3.5 2.8c0.4 0.2 0.4 0.7 0.2 1.1l-3.4 5.8c-0.2 0.3-0.6 0.4-1 0.3l-4.1-1.7c-0.9 0.7-1.8 1.3-2.8 1.7l-0.7 4.3c0 0.4-0.4 0.7-0.7 0.7h-6.8c-0.4 0-0.7-0.3-0.7-0.7l-0.7-4.3c-1-0.4-1.9-1-2.8-1.7l-4.1 1.7c-0.4 0.1-0.8 0-1-0.3l-3.4-5.8c-0.2-0.4-0.2-0.9 0.2-1.1l3.5-2.8c-0.1-0.5-0.1-1.1-0.1-1.6s0-1.1 0.1-1.6l-3.5-2.8c-0.4-0.2-0.4-0.7-0.2-1.1l3.4-5.7c0.2-0.4 0.6-0.5 1-0.4l4.1 1.7c0.9-0.6 1.8-1.3 2.8-1.7l0.7-4.3c0-0.4 0.3-0.7 0.7-0.7h6.8c0.3 0 0.7 0.3 0.7 0.7l0.7 4.3c1 0.4 1.9 1 2.8 1.7l4.1-1.7c0.4-0.1 0.8 0 1 0.4l3.4 5.7c0.2 0.4 0.2 0.9-0.2 1.1l-3.5 2.8c0.1 0.5 0.1 1.1 0.1 1.6s0 1.1-0.1 1.6z"})))},e.exports=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i=a(r(0)),o=a(r(20));function a(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){return i.default.createElement(o.default,n({viewBox:"0 0 40 40"},e),i.default.createElement("g",null,i.default.createElement("path",{d:"m34.5 11.7l-3 3.1-6.3-6.3 3.1-3q0.5-0.5 1.2-0.5t1.1 0.5l3.9 3.9q0.5 0.4 0.5 1.1t-0.5 1.2z m-29.5 17.1l18.4-18.5 6.3 6.3-18.4 18.4h-6.3v-6.2z"})))},e.exports=t.default},,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i=a(r(0)),o=a(r(20));function a(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){return i.default.createElement(o.default,n({viewBox:"0 0 40 40"},e),i.default.createElement("g",null,i.default.createElement("path",{d:"m31.6 35v-23.4h-18.2v23.4h18.2z m0-26.6c1.8 0 3.4 1.4 3.4 3.2v23.4c0 1.8-1.6 3.4-3.4 3.4h-18.2c-1.8 0-3.4-1.6-3.4-3.4v-23.4c0-1.8 1.6-3.2 3.4-3.2h18.2z m-5-6.8v3.4h-20v23.4h-3.2v-23.4c0-1.8 1.4-3.4 3.2-3.4h20z"})))},e.exports=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i=a(r(0)),o=a(r(20));function a(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){return i.default.createElement(o.default,n({viewBox:"0 0 40 40"},e),i.default.createElement("g",null,i.default.createElement("path",{d:"m33.4 13.4v-3.4l-13.4 8.4-13.4-8.4v3.4l13.4 8.2z m0-6.8q1.3 0 2.3 1.1t0.9 2.3v20q0 1.3-0.9 2.3t-2.3 1.1h-26.8q-1.3 0-2.3-1.1t-0.9-2.3v-20q0-1.3 0.9-2.3t2.3-1.1h26.8z"})))},e.exports=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i=a(r(0)),o=a(r(20));function a(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){return i.default.createElement(o.default,n({viewBox:"0 0 40 40"},e),i.default.createElement("g",null,i.default.createElement("path",{d:"m28.4 11.6q3.4 0 5.8 2.5t2.4 5.9-2.4 5.9-5.8 2.5h-6.8v-3.2h6.8q2.1 0 3.6-1.6t1.5-3.6-1.5-3.6-3.6-1.6h-6.8v-3.2h6.8z m-15 10v-3.2h13.2v3.2h-13.2z m-6.9-1.6q0 2.1 1.5 3.6t3.6 1.6h6.8v3.2h-6.8q-3.4 0-5.8-2.5t-2.4-5.9 2.4-5.9 5.8-2.5h6.8v3.2h-6.8q-2.1 0-3.6 1.6t-1.5 3.6z"})))},e.exports=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i=a(r(0)),o=a(r(20));function a(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){return i.default.createElement(o.default,n({viewBox:"0 0 40 40"},e),i.default.createElement("g",null,i.default.createElement("path",{d:"m33.4 9l-19.4 19.4h11v3.2h-16.6v-16.6h3.2v11l19.4-19.4z"})))},e.exports=t.default}]); | 957,757 | 957,757 | 0.690918 |
02246e83ffa07c48d200811e2b9d487abf6cbede | 435 | js | JavaScript | javascript/promise/mergePromise.js | toringo/one-more-thing | ec178da8d3d5456f5cbdde34a62d1bbc7fecb0f0 | [
"MIT"
] | 2 | 2021-03-04T14:28:36.000Z | 2021-07-06T01:44:08.000Z | javascript/promise/mergePromise.js | toringo/one-more-thing | ec178da8d3d5456f5cbdde34a62d1bbc7fecb0f0 | [
"MIT"
] | 12 | 2021-02-19T05:28:33.000Z | 2021-03-28T14:08:04.000Z | javascript/promise/mergePromise.js | toringo/one-more-thing | ec178da8d3d5456f5cbdde34a62d1bbc7fecb0f0 | [
"MIT"
] | null | null | null | // 实现 mergePromise 函数,把传进去的数组按顺序先后执行,并且把返回的数据先后放到数组 data 中。
function mergePromise(...arr) {
const all = arr.reduce((all, arr) => [...all, ...arr], []);
const data = Promise.allSettled(all);
return data;
}
function fetchImage(url) {
return new Promise((resolve, reject) => {
const img = new Image();
img.src = url;
img.onload = function (e) {
resolve(e);
};
img.onerror = function (err) {
reject(err);
};
});
}
| 20.714286 | 60 | 0.622989 |
0224a7b1b5252e4f9d406238742b16daa7958270 | 2,942 | js | JavaScript | src/cli/utils.js | ddthien-coder/tailwindcss | f8d7f245d5e49af84c0d9f12448781e64ab4e66d | [
"MIT"
] | 3 | 2020-03-29T19:11:23.000Z | 2020-04-06T08:38:35.000Z | src/cli/utils.js | ddthien-coder/tailwindcss | f8d7f245d5e49af84c0d9f12448781e64ab4e66d | [
"MIT"
] | 324 | 2020-06-15T00:03:44.000Z | 2022-03-31T00:04:38.000Z | src/cli/utils.js | ddthien-coder/tailwindcss | f8d7f245d5e49af84c0d9f12448781e64ab4e66d | [
"MIT"
] | 2 | 2019-02-28T17:26:36.000Z | 2019-08-13T04:30:24.000Z | import { copyFileSync, ensureFileSync, existsSync, outputFileSync, readFileSync } from 'fs-extra'
import { findKey, mapValues, startsWith, trimStart } from 'lodash'
import * as colors from './colors'
import * as emoji from './emoji'
import packageJson from '../../package.json'
/**
* Gets CLI parameters.
*
* @param {string[]} cliArgs
* @return {string[]}
*/
export function parseCliParams(cliArgs) {
const firstOptionIndex = cliArgs.findIndex(cliArg => cliArg.startsWith('-'))
return firstOptionIndex > -1 ? cliArgs.slice(0, firstOptionIndex) : cliArgs
}
/**
* Gets mapped CLI options.
*
* @param {string[]} cliArgs
* @param {object} [optionMap]
* @return {object}
*/
export function parseCliOptions(cliArgs, optionMap = {}) {
let options = {}
let currentOption = []
cliArgs.forEach(cliArg => {
const option = cliArg.startsWith('-') && trimStart(cliArg, '-').toLowerCase()
const resolvedOption = findKey(optionMap, aliases => aliases.includes(option))
if (resolvedOption) {
currentOption = options[resolvedOption] || (options[resolvedOption] = [])
} else if (option) {
currentOption = []
} else {
currentOption.push(cliArg)
}
})
return { ...mapValues(optionMap, () => undefined), ...options }
}
/**
* Prints messages to console.
*
* @param {...string} [msgs]
*/
export function log(...msgs) {
console.log(' ', ...msgs)
}
/**
* Prints application header to console.
*/
export function header() {
log()
log(colors.bold(packageJson.name), colors.info(packageJson.version))
}
/**
* Prints application footer to console.
*/
export function footer() {
log()
}
/**
* Prints error messages to console.
*
* @param {...string} [msgs]
*/
export function error(...msgs) {
log()
console.error(' ', emoji.no, colors.error(msgs.join(' ')))
}
/**
* Kills the process. Optionally prints error messages to console.
*
* @param {...string} [msgs]
*/
export function die(...msgs) {
msgs.length && error(...msgs)
footer()
process.exit(1) // eslint-disable-line
}
/**
* Checks if path exists.
*
* @param {string} path
* @return {boolean}
*/
export function exists(path) {
return existsSync(path)
}
/**
* Copies file source to destination.
*
* @param {string} source
* @param {string} destination
*/
export function copyFile(source, destination) {
copyFileSync(source, destination)
}
/**
* Gets file content.
*
* @param {string} path
* @return {string}
*/
export function readFile(path) {
return readFileSync(path, 'utf-8')
}
/**
* Writes content to file.
*
* @param {string} path
* @param {string} content
* @return {string}
*/
export function writeFile(path, content) {
ensureFileSync(path)
return outputFileSync(path, content)
}
/**
* Strips leading ./ from path
*
* @param {string} path
* @return {string}
*/
export function getSimplePath(path) {
return startsWith(path, './') ? path.slice(2) : path
}
| 20.430556 | 97 | 0.651598 |
02253ccc369d08ff4dc7e2398b3ee3a7b75de1d6 | 948 | js | JavaScript | public/js/colorPicker.js | Hugocsundberg/CGWU | 2c6d07e3cdec76a50ec00ac02a1b047c0c5c69d7 | [
"MIT"
] | null | null | null | public/js/colorPicker.js | Hugocsundberg/CGWU | 2c6d07e3cdec76a50ec00ac02a1b047c0c5c69d7 | [
"MIT"
] | null | null | null | public/js/colorPicker.js | Hugocsundberg/CGWU | 2c6d07e3cdec76a50ec00ac02a1b047c0c5c69d7 | [
"MIT"
] | 1 | 2021-06-03T15:29:54.000Z | 2021-06-03T15:29:54.000Z | const colorButtons = document.querySelectorAll('.color-buttons label .button');
colorButtons.forEach((button) => {
button.addEventListener('click', (e) => {
if (e.target.parentElement.parentElement.classList.contains('gray')) {
document.querySelector('section.section-4 .bg-image img').src = 'public/images/bg/color/Studio-gray.webp';
} else if (e.target.parentElement.parentElement.classList.contains('green')) {
document.querySelector('section.section-4 .bg-image img').src = 'public/images/bg/color/Studio-green.webp';
} else if (e.target.parentElement.parentElement.classList.contains('red')) {
document.querySelector('section.section-4 .bg-image img').src = 'public/images/bg/color/Studio-red.webp';
} else if (e.target.parentElement.parentElement.classList.contains('blue')) {
document.querySelector('section.section-4 .bg-image img').src = 'public/images/bg/color/Studio-blue.webp';
}
});
});
| 63.2 | 113 | 0.718354 |
02259fa0a29b1d5978cc80fd469f4a7ef23507a2 | 1,136 | js | JavaScript | gatsby-node.js | alkafaiz/my-personal-site | 2310caa4b24695e75b9153017cd11abb913270b1 | [
"MIT"
] | null | null | null | gatsby-node.js | alkafaiz/my-personal-site | 2310caa4b24695e75b9153017cd11abb913270b1 | [
"MIT"
] | null | null | null | gatsby-node.js | alkafaiz/my-personal-site | 2310caa4b24695e75b9153017cd11abb913270b1 | [
"MIT"
] | null | null | null | const project = require("./src/constants/projects")
const path = require("path")
/**
* Implement Gatsby's Node APIs in this file.
*
* See: https://www.gatsbyjs.org/docs/node-apis/
*/
// You can delete this file if you're not using it
exports.sourceNodes = ({
actions: { createNode },
createContentDigest,
createNodeId,
}) => {
const projects = project.getAll()
projects.forEach((project, index) =>
createNode({
...project,
image: {
name: project.featuredImg.split(".")[0],
ext: `.${project.featuredImg.split(".")[1]}`,
// extension: project.featuredImg.split(".")[1],
// absolutePath: path.resolve(
// `${__dirname}/src/images/${project.featuredImg}`
// ),
absolutePath:
"D:/faiz/files/project/alkafaiz.com/source-code/src/images/SIMY-cover.jpg",
extension: "jpg",
},
id: createNodeId(`project-${index}`),
parent: null,
children: [],
internal: {
type: "project",
content: JSON.stringify(project),
contentDigest: createContentDigest(project),
},
})
)
return
}
| 25.818182 | 85 | 0.589789 |
0225cc65d0a6f7669867dbc84344f005b7639b52 | 15,432 | js | JavaScript | dbReports/iondb/media/resources/kendo/src/js/kendo.filtermenu.js | konradotto/TS | bf088bd8432b1e3f4b8c8c083650a30d9ef2ae2e | [
"Apache-2.0"
] | 125 | 2015-01-22T05:43:23.000Z | 2022-03-22T17:15:59.000Z | dbReports/iondb/media/resources/kendo/src/js/kendo.filtermenu.js | konradotto/TS | bf088bd8432b1e3f4b8c8c083650a30d9ef2ae2e | [
"Apache-2.0"
] | 59 | 2015-02-10T09:13:06.000Z | 2021-11-11T02:32:38.000Z | dbReports/iondb/media/resources/kendo/src/js/kendo.filtermenu.js | konradotto/TS | bf088bd8432b1e3f4b8c8c083650a30d9ef2ae2e | [
"Apache-2.0"
] | 98 | 2015-01-17T01:25:10.000Z | 2022-03-18T17:29:42.000Z | /*
* Kendo UI Web v2012.3.1114 (http://kendoui.com)
* Copyright 2012 Telerik AD. All rights reserved.
*
* Kendo UI Web commercial licenses may be obtained at
* https://www.kendoui.com/purchase/license-agreement/kendo-ui-web-commercial.aspx
* If you do not own a commercial license, this file shall be governed by the
* GNU General Public License (GPL) version 3.
* For GPL requirements, please review: http://www.gnu.org/copyleft/gpl.html
*/
(function($, undefined) {
var kendo = window.kendo,
ui = kendo.ui,
NUMERICTEXTBOX = "kendoNumericTextBox",
DATEPICKER = "kendoDatePicker",
proxy = $.proxy,
POPUP = "kendoPopup",
NS = ".kendoFilterMenu",
EQ = "Is equal to",
NEQ = "Is not equal to",
Widget = ui.Widget;
var booleanTemplate =
'<div>' +
'<div class="k-filter-help-text">#=messages.info#</div>'+
'<label>'+
'<input type="radio" data-#=ns#bind="checked: filters[0].value" value="true" name="filters[0].value"/>' +
'#=messages.isTrue#' +
'</label>' +
'<label>'+
'<input type="radio" data-#=ns#bind="checked: filters[0].value" value="false" name="filters[0].value"/>' +
'#=messages.isFalse#' +
'</label>' +
'<button type="submit" class="k-button">#=messages.filter#</button>'+
'<button type="reset" class="k-button">#=messages.clear#</button>'+
'</div>';
var defaultTemplate =
'<div>' +
'<div class="k-filter-help-text">#=messages.info#</div>'+
'<select data-#=ns#bind="value: filters[0].operator" data-#=ns#role="dropdownlist">'+
'#for(var op in operators){#'+
'<option value="#=op#">#=operators[op]#</option>'+
'#}#'+
'</select>'+
'#if(values){#' +
'<select data-#=ns#bind="value:filters[0].value" data-#=ns#text-field="text" data-#=ns#value-field="value" data-#=ns#source=\'#=kendo.stringify(values).replace(/\'/g,"&\\#39;")#\' data-#=ns#role="dropdownlist" data-#=ns#option-label="#=messages.selectValue#">' +
'</select>' +
'#}else{#' +
'<input data-#=ns#bind="value:filters[0].value" class="k-textbox" type="text" data-#=ns#type="#=type#"/>'+
'#}#' +
'#if(extra){#'+
'<select class="k-filter-and" data-#=ns#bind="value: logic" data-#=ns#role="dropdownlist">'+
'<option value="and">#=messages.and#</option>'+
'<option value="or">#=messages.or#</option>'+
'</select>'+
'<select data-#=ns#bind="value: filters[1].operator" data-#=ns#role="dropdownlist">'+
'#for(var op in operators){#'+
'<option value="#=op#">#=operators[op]#</option>'+
'#}#'+
'</select>'+
'#if(values){#' +
'<select data-#=ns#bind="value:filters[1].value" data-#=ns#text-field="text" data-#=ns#value-field="value" data-#=ns#source=\'#=kendo.stringify(values).replace(/\'/g,"&\\#39;")#\' data-#=ns#role="dropdownlist" data-#=ns#option-label="#=messages.selectValue#">' +
'</select>'+
'#}else{#' +
'<input data-#=ns#bind="value: filters[1].value" class="k-textbox" type="text" data-#=ns#type="#=type#"/>'+
'#}#' +
'#}#'+
'<button type="submit" class="k-button">#=messages.filter#</button>'+
'<button type="reset" class="k-button">#=messages.clear#</button>'+
'</div>';
function removeFiltersForField(expression, field) {
if (expression.filters) {
expression.filters = $.grep(expression.filters, function(filter) {
removeFiltersForField(filter, field);
if (filter.filters) {
return filter.filters.length;
} else {
return filter.field != field;
}
});
}
}
function convertItems(items) {
var idx,
length,
item,
value,
text,
result;
if (items && items.length) {
result = [];
for (idx = 0, length = items.length; idx < length; idx++) {
item = items[idx];
text = item.text || item.value || item;
value = item.value == null ? (item.text || item) : item.value;
result[idx] = { text: text, value: value };
}
}
return result;
}
var FilterMenu = Widget.extend({
init: function(element, options) {
var that = this,
type = "string",
link,
field,
operators;
Widget.fn.init.call(that, element, options);
operators = options.operators || {};
element = that.element;
options = that.options;
if (!options.appendToElement) {
link = element.addClass("k-filterable").find(".k-grid-filter");
if (!link[0]) {
link = element.prepend('<a class="k-grid-filter" href="#"><span class="k-icon k-filter"/></a>').find(".k-grid-filter");
}
link
.attr("tabindex", -1)
.on("click" + NS, proxy(that._click, that));
} else {
that.link = $();
}
that._refreshHandler = proxy(that.refresh, that);
that.dataSource = options.dataSource.bind("change", that._refreshHandler);
that.field = options.field || element.attr(kendo.attr("field"));
that.model = that.dataSource.reader.model;
that._parse = function(value) {
return value + "";
};
if (that.model && that.model.fields) {
field = that.model.fields[that.field];
if (field) {
type = field.type || "string";
that._parse = proxy(field.parse, field);
}
}
if (options.values) {
type = "enums";
}
operators = operators[type] || options.operators[type];
that.form = $('<form class="k-filter-menu"/>')
.html(kendo.template(type === "boolean" ? booleanTemplate : defaultTemplate)({
field: that.field,
ns: kendo.ns,
messages: options.messages,
extra: options.extra,
operators: operators,
type: type,
values: convertItems(options.values)
}))
.on("keydown" + NS, proxy(that._keydown, that))
.on("submit" + NS, proxy(that._submit, that))
.on("reset" + NS, proxy(that._reset, that));
if (!options.appendToElement) {
that.popup = that.form[POPUP]({
anchor: link,
open: proxy(that._open, that),
activate: proxy(that._activate, that),
close: that.options.closeCallback
}).data(POPUP);
that.link = link;
} else {
element.append(that.form);
that.popup = that.element.closest(".k-popup").data(POPUP);
}
that.form
.find("[" + kendo.attr("type") + "=number]")
.removeClass("k-textbox")
[NUMERICTEXTBOX]()
.end()
.find("[" + kendo.attr("type") + "=date]")
.removeClass("k-textbox")
[DATEPICKER]();
that.refresh();
},
refresh: function() {
var that = this,
expression = that.dataSource.filter() || { filters: [], logic: "and" };
that.filterModel = kendo.observable({
logic: "and",
filters: [{ field: that.field, operator: "eq", value: "" }, { field: that.field, operator: "eq", value: "" }]
});
//NOTE: binding the form element directly causes weird error in IE when grid is bound through MVVM and column is sorted
kendo.bind(that.form.children().first(), that.filterModel);
if (that._bind(expression)) {
that.link.addClass("k-state-active");
} else {
that.link.removeClass("k-state-active");
}
},
destroy: function() {
var that = this;
Widget.fn.destroy.call(that);
kendo.unbind(that.form);
kendo.destroy(that.form);
that.form.unbind(NS);
that.popup.destroy();
that.link.unbind(NS);
that.dataSource.unbind("change", that._refreshHandler);
},
_bind: function(expression) {
var that = this,
filters = expression.filters,
idx,
length,
found = false,
current = 0,
filterModel = that.filterModel,
currentFilter,
filter;
for (idx = 0, length = filters.length; idx < length; idx++) {
filter = filters[idx];
if (filter.field == that.field) {
filterModel.set("logic", expression.logic);
currentFilter = filterModel.filters[current];
if (!currentFilter) {
filterModel.filters.push({ field: that.field });
currentFilter = filterModel.filters[current];
}
currentFilter.set("value", that._parse(filter.value));
currentFilter.set("operator", filter.operator);
current++;
found = true;
} else if (filter.filters) {
found = found || that._bind(filter);
}
}
return found;
},
_merge: function(expression) {
var that = this,
logic = expression.logic || "and",
filters = expression.filters,
filter,
result = that.dataSource.filter() || { filters:[], logic: "and" },
idx,
length;
removeFiltersForField(result, that.field);
filters = $.grep(filters, function(filter) {
return filter.value !== "";
});
for (idx = 0, length = filters.length; idx < length; idx++) {
filter = filters[idx];
filter.value = that._parse(filter.value);
}
if (filters.length) {
if (result.filters.length) {
expression.filters = filters;
if (result.logic !== "and") {
result.filters = [ { logic: result.logic, filters: result.filters }];
result.logic = "and";
}
if (filters.length > 1) {
result.filters.push(expression);
} else {
result.filters.push(filters[0]);
}
} else {
result.filters = filters;
result.logic = logic;
}
}
return result;
},
filter: function(expression) {
expression = this._merge(expression);
if (expression.filters.length) {
this.dataSource.filter(expression);
}
},
clear: function() {
var that = this,
expression = that.dataSource.filter() || { filters:[] };
expression.filters = $.grep(expression.filters, function(filter) {
if (filter.filters) {
filter.filters = $.grep(filter.filters, function(expr) {
return expr.field != that.field;
});
return filter.filters.length;
}
return filter.field != that.field;
});
if (!expression.filters.length) {
expression = null;
}
that.dataSource.filter(expression);
},
_submit: function(e) {
var that = this;
e.preventDefault();
that.filter(that.filterModel.toJSON());
that.popup.close();
},
_reset: function(e) {
this.clear();
this.popup.close();
},
_click: function(e) {
e.preventDefault();
e.stopPropagation();
this.popup.toggle();
},
_open: function() {
var popup;
$(".k-filter-menu").not(this.form).each(function() {
popup = $(this).data(POPUP);
if (popup) {
popup.close();
}
});
},
_activate: function() {
this.form.find(":focusable:first").focus();
},
_keydown: function(e) {
if (e.keyCode == kendo.keys.ESC) {
this.popup.close();
}
},
options: {
name: "FilterMenu",
extra: true,
appendToElement: false,
type: "string",
operators: {
string: {
eq: EQ,
neq: NEQ,
startswith: "Starts with",
contains: "Contains",
doesnotcontain: "Does not contain",
endswith: "Ends with"
},
number: {
eq: EQ,
neq: NEQ,
gte: "Is greater than or equal to",
gt: "Is greater than",
lte: "Is less than or equal to",
lt: "Is less than"
},
date: {
eq: EQ,
neq: NEQ,
gte: "Is after or equal to",
gt: "Is after",
lte: "Is before or equal to",
lt: "Is before"
},
enums: {
eq: EQ,
neq: NEQ
}
},
messages: {
info: "Show items with value that:",
isTrue: "is true",
isFalse: "is false",
filter: "Filter",
clear: "Clear",
and: "And",
or: "Or",
selectValue: "-Select value-"
}
}
});
ui.plugin(FilterMenu);
})(window.kendo.jQuery);
| 35.232877 | 286 | 0.436884 |
02265408ad424a60bc713644519de6a0ea534fb5 | 19,168 | js | JavaScript | packages/react-relay/relay-hooks/__tests__/__generated__/FragmentResourceWithOperationTrackerTestViewerFriendsQuery.graphql.js | beautifulife/relay | d7f3efc327151e911b79d9514eb9fcfa28ec0797 | [
"MIT"
] | 3 | 2019-08-26T16:11:52.000Z | 2022-01-14T15:58:09.000Z | packages/react-relay/relay-hooks/__tests__/__generated__/FragmentResourceWithOperationTrackerTestViewerFriendsQuery.graphql.js | beautifulife/relay | d7f3efc327151e911b79d9514eb9fcfa28ec0797 | [
"MIT"
] | 1 | 2022-03-15T18:34:19.000Z | 2022-03-15T18:34:19.000Z | packages/react-relay/relay-hooks/__tests__/__generated__/FragmentResourceWithOperationTrackerTestViewerFriendsQuery.graphql.js | beautifulife/relay | d7f3efc327151e911b79d9514eb9fcfa28ec0797 | [
"MIT"
] | 2 | 2022-01-12T23:56:13.000Z | 2022-01-29T10:31:03.000Z | /**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @generated SignedSource<<304a9bb13408bbb699e1e498fe395ae0>>
* @flow
* @lightSyntaxTransform
* @nogrep
*/
/* eslint-disable */
'use strict';
/*::
import type { ConcreteRequest, Query } from 'relay-runtime';
type FragmentResourceWithOperationTrackerTestUserFragment$fragmentType = any;
export type FragmentResourceWithOperationTrackerTestViewerFriendsQuery$variables = {||};
export type FragmentResourceWithOperationTrackerTestViewerFriendsQueryVariables = FragmentResourceWithOperationTrackerTestViewerFriendsQuery$variables;
export type FragmentResourceWithOperationTrackerTestViewerFriendsQuery$data = {|
+viewer: ?{|
+actor: ?{|
+friends: ?{|
+edges: ?$ReadOnlyArray<?{|
+node: ?{|
+$fragmentSpreads: FragmentResourceWithOperationTrackerTestUserFragment$fragmentType,
|},
|}>,
|},
|},
|},
|};
export type FragmentResourceWithOperationTrackerTestViewerFriendsQueryResponse = FragmentResourceWithOperationTrackerTestViewerFriendsQuery$data;
export type FragmentResourceWithOperationTrackerTestViewerFriendsQuery = {|
variables: FragmentResourceWithOperationTrackerTestViewerFriendsQueryVariables,
response: FragmentResourceWithOperationTrackerTestViewerFriendsQuery$data,
|};
*/
var node/*: ConcreteRequest*/ = (function(){
var v0 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "__typename",
"storageKey": null
},
v1 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "cursor",
"storageKey": null
},
v2 = {
"alias": null,
"args": null,
"concreteType": "PageInfo",
"kind": "LinkedField",
"name": "pageInfo",
"plural": false,
"selections": [
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "endCursor",
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "hasNextPage",
"storageKey": null
}
],
"storageKey": null
},
v3 = [
{
"kind": "Literal",
"name": "first",
"value": 1
}
],
v4 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "id",
"storageKey": null
},
v5 = {
"enumValues": null,
"nullable": false,
"plural": false,
"type": "String"
},
v6 = {
"enumValues": null,
"nullable": true,
"plural": false,
"type": "String"
},
v7 = {
"enumValues": null,
"nullable": false,
"plural": false,
"type": "ID"
},
v8 = {
"enumValues": null,
"nullable": true,
"plural": false,
"type": "UserNameRenderer"
},
v9 = {
"enumValues": null,
"nullable": true,
"plural": false,
"type": "JSDependency"
},
v10 = {
"enumValues": null,
"nullable": true,
"plural": false,
"type": "PlainUserNameData"
},
v11 = {
"enumValues": null,
"nullable": true,
"plural": false,
"type": "ID"
};
return {
"fragment": {
"argumentDefinitions": [],
"kind": "Fragment",
"metadata": null,
"name": "FragmentResourceWithOperationTrackerTestViewerFriendsQuery",
"selections": [
{
"alias": null,
"args": null,
"concreteType": "Viewer",
"kind": "LinkedField",
"name": "viewer",
"plural": false,
"selections": [
{
"alias": null,
"args": null,
"concreteType": null,
"kind": "LinkedField",
"name": "actor",
"plural": false,
"selections": [
{
"alias": "friends",
"args": null,
"concreteType": "FriendsConnection",
"kind": "LinkedField",
"name": "__Viewer_friends_connection",
"plural": false,
"selections": [
{
"alias": null,
"args": null,
"concreteType": "FriendsEdge",
"kind": "LinkedField",
"name": "edges",
"plural": true,
"selections": [
{
"alias": null,
"args": null,
"concreteType": "User",
"kind": "LinkedField",
"name": "node",
"plural": false,
"selections": [
{
"args": null,
"kind": "FragmentSpread",
"name": "FragmentResourceWithOperationTrackerTestUserFragment"
},
(v0/*: any*/)
],
"storageKey": null
},
(v1/*: any*/)
],
"storageKey": null
},
(v2/*: any*/)
],
"storageKey": null
}
],
"storageKey": null
}
],
"storageKey": null
}
],
"type": "Query",
"abstractKey": null
},
"kind": "Request",
"operation": {
"argumentDefinitions": [],
"kind": "Operation",
"name": "FragmentResourceWithOperationTrackerTestViewerFriendsQuery",
"selections": [
{
"alias": null,
"args": null,
"concreteType": "Viewer",
"kind": "LinkedField",
"name": "viewer",
"plural": false,
"selections": [
{
"alias": null,
"args": null,
"concreteType": null,
"kind": "LinkedField",
"name": "actor",
"plural": false,
"selections": [
(v0/*: any*/),
{
"alias": null,
"args": (v3/*: any*/),
"concreteType": "FriendsConnection",
"kind": "LinkedField",
"name": "friends",
"plural": false,
"selections": [
{
"alias": null,
"args": null,
"concreteType": "FriendsEdge",
"kind": "LinkedField",
"name": "edges",
"plural": true,
"selections": [
{
"alias": null,
"args": null,
"concreteType": "User",
"kind": "LinkedField",
"name": "node",
"plural": false,
"selections": [
(v4/*: any*/),
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "name",
"storageKey": null
},
{
"alias": null,
"args": [
{
"kind": "Literal",
"name": "supported",
"value": [
"PlainUserNameRenderer",
"MarkdownUserNameRenderer"
]
}
],
"concreteType": null,
"kind": "LinkedField",
"name": "nameRenderer",
"plural": false,
"selections": [
(v0/*: any*/),
{
"kind": "InlineFragment",
"selections": [
{
"args": null,
"documentName": "FragmentResourceWithOperationTrackerTestUserFragment",
"fragmentName": "FragmentResourceWithOperationTrackerTestPlainUserNameRenderer_name",
"fragmentPropName": "name",
"kind": "ModuleImport"
}
],
"type": "PlainUserNameRenderer",
"abstractKey": null
},
{
"kind": "InlineFragment",
"selections": [
{
"args": null,
"documentName": "FragmentResourceWithOperationTrackerTestUserFragment",
"fragmentName": "FragmentResourceWithOperationTrackerTestMarkdownUserNameRenderer_name",
"fragmentPropName": "name",
"kind": "ModuleImport"
}
],
"type": "MarkdownUserNameRenderer",
"abstractKey": null
}
],
"storageKey": "nameRenderer(supported:[\"PlainUserNameRenderer\",\"MarkdownUserNameRenderer\"])"
},
{
"alias": "plainNameRenderer",
"args": [
{
"kind": "Literal",
"name": "supported",
"value": [
"PlainUserNameRenderer"
]
}
],
"concreteType": null,
"kind": "LinkedField",
"name": "nameRenderer",
"plural": false,
"selections": [
(v0/*: any*/),
{
"kind": "InlineFragment",
"selections": [
{
"args": null,
"documentName": "FragmentResourceWithOperationTrackerTestUserFragment_plainNameRenderer",
"fragmentName": "FragmentResourceWithOperationTrackerTestPlainUserNameRenderer_name",
"fragmentPropName": "name",
"kind": "ModuleImport"
}
],
"type": "PlainUserNameRenderer",
"abstractKey": null
}
],
"storageKey": "nameRenderer(supported:[\"PlainUserNameRenderer\"])"
},
(v0/*: any*/)
],
"storageKey": null
},
(v1/*: any*/)
],
"storageKey": null
},
(v2/*: any*/)
],
"storageKey": "friends(first:1)"
},
{
"alias": null,
"args": (v3/*: any*/),
"filters": null,
"handle": "connection",
"key": "Viewer_friends",
"kind": "LinkedHandle",
"name": "friends"
},
(v4/*: any*/)
],
"storageKey": null
}
],
"storageKey": null
}
]
},
"params": {
"cacheID": "1e60d103b2cc4c925a326ba2410e5895",
"id": null,
"metadata": {
"connection": [
{
"count": null,
"cursor": null,
"direction": "forward",
"path": [
"viewer",
"actor",
"friends"
]
}
],
"relayTestingSelectionTypeInfo": {
"viewer": {
"enumValues": null,
"nullable": true,
"plural": false,
"type": "Viewer"
},
"viewer.actor": {
"enumValues": null,
"nullable": true,
"plural": false,
"type": "Actor"
},
"viewer.actor.__typename": (v5/*: any*/),
"viewer.actor.friends": {
"enumValues": null,
"nullable": true,
"plural": false,
"type": "FriendsConnection"
},
"viewer.actor.friends.edges": {
"enumValues": null,
"nullable": true,
"plural": true,
"type": "FriendsEdge"
},
"viewer.actor.friends.edges.cursor": (v6/*: any*/),
"viewer.actor.friends.edges.node": {
"enumValues": null,
"nullable": true,
"plural": false,
"type": "User"
},
"viewer.actor.friends.edges.node.__typename": (v5/*: any*/),
"viewer.actor.friends.edges.node.id": (v7/*: any*/),
"viewer.actor.friends.edges.node.name": (v6/*: any*/),
"viewer.actor.friends.edges.node.nameRenderer": (v8/*: any*/),
"viewer.actor.friends.edges.node.nameRenderer.__module_component_FragmentResourceWithOperationTrackerTestUserFragment": (v9/*: any*/),
"viewer.actor.friends.edges.node.nameRenderer.__module_operation_FragmentResourceWithOperationTrackerTestUserFragment": (v9/*: any*/),
"viewer.actor.friends.edges.node.nameRenderer.__typename": (v5/*: any*/),
"viewer.actor.friends.edges.node.nameRenderer.data": (v10/*: any*/),
"viewer.actor.friends.edges.node.nameRenderer.data.id": (v11/*: any*/),
"viewer.actor.friends.edges.node.nameRenderer.data.markup": (v6/*: any*/),
"viewer.actor.friends.edges.node.nameRenderer.data.text": (v6/*: any*/),
"viewer.actor.friends.edges.node.nameRenderer.markdown": (v6/*: any*/),
"viewer.actor.friends.edges.node.nameRenderer.plaintext": (v6/*: any*/),
"viewer.actor.friends.edges.node.plainNameRenderer": (v8/*: any*/),
"viewer.actor.friends.edges.node.plainNameRenderer.__module_component_FragmentResourceWithOperationTrackerTestUserFragment_plainNameRenderer": (v9/*: any*/),
"viewer.actor.friends.edges.node.plainNameRenderer.__module_operation_FragmentResourceWithOperationTrackerTestUserFragment_plainNameRenderer": (v9/*: any*/),
"viewer.actor.friends.edges.node.plainNameRenderer.__typename": (v5/*: any*/),
"viewer.actor.friends.edges.node.plainNameRenderer.data": (v10/*: any*/),
"viewer.actor.friends.edges.node.plainNameRenderer.data.id": (v11/*: any*/),
"viewer.actor.friends.edges.node.plainNameRenderer.data.text": (v6/*: any*/),
"viewer.actor.friends.edges.node.plainNameRenderer.plaintext": (v6/*: any*/),
"viewer.actor.friends.pageInfo": {
"enumValues": null,
"nullable": true,
"plural": false,
"type": "PageInfo"
},
"viewer.actor.friends.pageInfo.endCursor": (v6/*: any*/),
"viewer.actor.friends.pageInfo.hasNextPage": {
"enumValues": null,
"nullable": true,
"plural": false,
"type": "Boolean"
},
"viewer.actor.id": (v7/*: any*/)
}
},
"name": "FragmentResourceWithOperationTrackerTestViewerFriendsQuery",
"operationKind": "query",
"text": "query FragmentResourceWithOperationTrackerTestViewerFriendsQuery {\n viewer {\n actor {\n __typename\n friends(first: 1) {\n edges {\n node {\n ...FragmentResourceWithOperationTrackerTestUserFragment\n id\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n id\n }\n }\n}\n\nfragment FragmentResourceWithOperationTrackerTestMarkdownUserNameRenderer_name on MarkdownUserNameRenderer {\n markdown\n data {\n markup\n id\n }\n}\n\nfragment FragmentResourceWithOperationTrackerTestPlainUserNameRenderer_name on PlainUserNameRenderer {\n plaintext\n data {\n text\n id\n }\n}\n\nfragment FragmentResourceWithOperationTrackerTestUserFragment on User {\n id\n name\n nameRenderer(supported: [\"PlainUserNameRenderer\", \"MarkdownUserNameRenderer\"]) {\n __typename\n ... on PlainUserNameRenderer {\n ...FragmentResourceWithOperationTrackerTestPlainUserNameRenderer_name\n __module_operation_FragmentResourceWithOperationTrackerTestUserFragment: js(module: \"FragmentResourceWithOperationTrackerTestPlainUserNameRenderer_name$normalization.graphql\", id: \"FragmentResourceWithOperationTrackerTestUserFragment.nameRenderer\")\n __module_component_FragmentResourceWithOperationTrackerTestUserFragment: js(module: \"PlainUserNameRenderer.react\", id: \"FragmentResourceWithOperationTrackerTestUserFragment.nameRenderer\")\n }\n ... on MarkdownUserNameRenderer {\n ...FragmentResourceWithOperationTrackerTestMarkdownUserNameRenderer_name\n __module_operation_FragmentResourceWithOperationTrackerTestUserFragment: js(module: \"FragmentResourceWithOperationTrackerTestMarkdownUserNameRenderer_name$normalization.graphql\", id: \"FragmentResourceWithOperationTrackerTestUserFragment.nameRenderer\")\n __module_component_FragmentResourceWithOperationTrackerTestUserFragment: js(module: \"MarkdownUserNameRenderer.react\", id: \"FragmentResourceWithOperationTrackerTestUserFragment.nameRenderer\")\n }\n }\n plainNameRenderer: nameRenderer(supported: [\"PlainUserNameRenderer\"]) {\n __typename\n ... on PlainUserNameRenderer {\n ...FragmentResourceWithOperationTrackerTestPlainUserNameRenderer_name\n __module_operation_FragmentResourceWithOperationTrackerTestUserFragment_plainNameRenderer: js(module: \"FragmentResourceWithOperationTrackerTestPlainUserNameRenderer_name$normalization.graphql\", id: \"FragmentResourceWithOperationTrackerTestUserFragment.plainNameRenderer\")\n __module_component_FragmentResourceWithOperationTrackerTestUserFragment_plainNameRenderer: js(module: \"PlainUserNameRenderer.react\", id: \"FragmentResourceWithOperationTrackerTestUserFragment.plainNameRenderer\")\n }\n }\n}\n"
}
};
})();
if (__DEV__) {
(node/*: any*/).hash = "f15f8921d77c61be7dc708d9e8c1f412";
}
module.exports = ((node/*: any*/)/*: Query<
FragmentResourceWithOperationTrackerTestViewerFriendsQuery$variables,
FragmentResourceWithOperationTrackerTestViewerFriendsQuery$data,
>*/);
| 39.850312 | 2,858 | 0.489618 |
02266426f8f4d2f8e0305862a6803566899f6107 | 296 | js | JavaScript | build/utils/logger.js | fireveined/open-stronghold | 03c3922bea5bbd7d70876122bdde54a62c1a85c9 | [
"MIT"
] | 1 | 2019-02-21T16:10:05.000Z | 2019-02-21T16:10:05.000Z | build/utils/logger.js | fireveined/open-stronghold | 03c3922bea5bbd7d70876122bdde54a62c1a85c9 | [
"MIT"
] | 2 | 2021-03-09T00:47:08.000Z | 2022-02-12T06:15:09.000Z | build/utils/logger.js | fireveined/open-stronghold | 03c3922bea5bbd7d70876122bdde54a62c1a85c9 | [
"MIT"
] | 1 | 2019-02-21T17:54:20.000Z | 2019-02-21T17:54:20.000Z | "use strict";
Object.defineProperty(exports, "__esModule", { value: true });
class Logger {
debug(...data) {
console.log(...data);
}
log(...data) {
console.log(...data);
}
error(...data) {
console.error(...data);
}
}
exports.logger = new Logger();
| 19.733333 | 62 | 0.530405 |
0226de508ac9d3374009d539eb1ae6c6064c7d36 | 300 | js | JavaScript | reactprogram/app/index.js | kidchenko/playground | 750f1d12a793f6851df68bbd1b9d3ec32b5f70a3 | [
"MIT"
] | 4 | 2016-11-10T02:29:32.000Z | 2017-08-24T15:19:12.000Z | reactprogram/app/index.js | kidchenko/playground | 750f1d12a793f6851df68bbd1b9d3ec32b5f70a3 | [
"MIT"
] | 13 | 2019-09-16T20:01:18.000Z | 2022-02-13T11:00:49.000Z | reactprogram/app/index.js | kidchenko/playground | 750f1d12a793f6851df68bbd1b9d3ec32b5f70a3 | [
"MIT"
] | 1 | 2022-02-24T06:35:25.000Z | 2022-02-24T06:35:25.000Z | var React = require('react');
var ReactDOM = require('react-dom');
var HelloWorld = React.createClass({
render: function () {
return (
<div>
Hi from React!
</div>
)
}
})
ReactDOM.render(<HelloWorld />, document.getElementById('app')); | 21.428571 | 64 | 0.536667 |
02270c13c5a3325a2b95806f83a3894d63350b3f | 2,338 | js | JavaScript | test/number-validator-test.js | rmemoria/schema | 067b58f6fa2b818f6d00e635debafd879ce914f9 | [
"Apache-2.0"
] | null | null | null | test/number-validator-test.js | rmemoria/schema | 067b58f6fa2b818f6d00e635debafd879ce914f9 | [
"Apache-2.0"
] | null | null | null | test/number-validator-test.js | rmemoria/schema | 067b58f6fa2b818f6d00e635debafd879ce914f9 | [
"Apache-2.0"
] | null | null | null | const assert = require('assert');
const Schema = require('../src'), Types = Schema.types;
const schema1 = Schema.create({
value: Types.number()
.max(100)
.min(-20)
});
describe('Number validator', function() {
it('Valid type', function() {
return schema1.validate({ value: 10 })
.then(doc => {
assert(doc);
assert.equal(10, doc.value);
});
});
it('Invalid type', function() {
return schema1.validate({ value: 'x' })
.catch(errs => {
assert(errs);
assert.equal(errs.constructor.name, 'ValidationErrors');
assert.equal(errs.errors.length, 1);
const err = errs.errors[0];
assert.equal(err.property, 'value');
assert.equal(err.code, 'INVALID_VALUE');
});
});
it('Number as string', function() {
return schema1.validate({ value: '-10' })
.then(doc => {
assert(doc);
assert.equal(doc.value, -10);
});
});
it('Max value', function() {
return schema1.validate({ value: 100 })
.then(doc => {
assert(doc);
assert.equal(doc.value, 100);
return schema1.validate({ value: 101 });
})
.catch(errs => {
assert(errs);
assert.equal(errs.constructor.name, 'ValidationErrors');
assert.equal(errs.errors.length, 1);
const err = errs.errors[0];
assert.equal(err.property, 'value');
assert.equal(err.code, 'MAX_VALUE');
});
});
it('Min value', function() {
return schema1.validate({ value: -20 })
.then(doc => {
assert(doc);
assert.equal(doc.value, -20);
return schema1.validate({ value: -21 });
})
.catch(errs => {
assert(errs);
assert.equal(errs.constructor.name, 'ValidationErrors');
assert.equal(errs.errors.length, 1);
const err = errs.errors[0];
assert.equal(err.property, 'value');
assert.equal(err.code, 'MIN_VALUE');
});
});
});
| 31.594595 | 72 | 0.466638 |
02273dacb0fee6b151bc936b18a463fedd1f2bcd | 173 | js | JavaScript | client/reducers/reducerUsers.js | unfaceit/Discover-Snarky | 758a420efbf54d3c38a84fe1a960ceff05121796 | [
"MIT"
] | null | null | null | client/reducers/reducerUsers.js | unfaceit/Discover-Snarky | 758a420efbf54d3c38a84fe1a960ceff05121796 | [
"MIT"
] | 8 | 2020-07-15T00:22:34.000Z | 2020-07-16T03:52:11.000Z | client/reducers/reducerUsers.js | amoorecodes/Discover-Snarky | 758a420efbf54d3c38a84fe1a960ceff05121796 | [
"MIT"
] | 1 | 2018-05-26T23:18:11.000Z | 2018-05-26T23:18:11.000Z |
export default function() {
return [
{
username: 'Arthur',
password: '12345'
},
{
username: 'Billy',
password: 'Tables'
}
]
} | 13.307692 | 27 | 0.468208 |
02276157d5dd9ad55bd45c3f07041cfefd4e870f | 357 | js | JavaScript | app/scripts/services/generatelicense.js | lukeware/wats4030-final | 42e963cfcf351f4c677d89692dea4139e85b2e8c | [
"MIT"
] | null | null | null | app/scripts/services/generatelicense.js | lukeware/wats4030-final | 42e963cfcf351f4c677d89692dea4139e85b2e8c | [
"MIT"
] | null | null | null | app/scripts/services/generatelicense.js | lukeware/wats4030-final | 42e963cfcf351f4c677d89692dea4139e85b2e8c | [
"MIT"
] | null | null | null | 'use strict';
angular.module('workspaceApp')
.factory('generateLicense', function ($resource) {
// CC Standard API here
return $resource('http://api.creativecommons.org/rest/1.5/license/:type/issue', {}, {
save: {
method: 'POST',
params: {
type: "standard"
},
isArray: false
}
});
}); | 21 | 89 | 0.543417 |
0227858b7c6658e0e610f8fd0cd4baeed84900e9 | 172 | js | JavaScript | resources/js/app.js | ezitek-solutions/laravel-starter-kit-bootstrap-vue | a0911788cc267b8707c9fe2924ac66a9aef1c23f | [
"MIT"
] | null | null | null | resources/js/app.js | ezitek-solutions/laravel-starter-kit-bootstrap-vue | a0911788cc267b8707c9fe2924ac66a9aef1c23f | [
"MIT"
] | null | null | null | resources/js/app.js | ezitek-solutions/laravel-starter-kit-bootstrap-vue | a0911788cc267b8707c9fe2924ac66a9aef1c23f | [
"MIT"
] | null | null | null | require('./bootstrap');
import { createApp } from 'vue';
createApp({
data() {
return {
greeting: 'Hello World!'
};
}
}).mount('#app'); | 15.636364 | 36 | 0.482558 |
02283fb81fbb816a34b9a0f3ec3dde0a3d1b127e | 3,338 | js | JavaScript | routes/transforms.js | pjpritch/truth-store | d27d4c9a8b75786394df87e4f84d67c3649f0a82 | [
"MIT"
] | 1 | 2019-07-16T13:11:21.000Z | 2019-07-16T13:11:21.000Z | routes/transforms.js | pjpritch/truth-store | d27d4c9a8b75786394df87e4f84d67c3649f0a82 | [
"MIT"
] | 2 | 2021-05-11T21:17:32.000Z | 2022-02-13T19:06:10.000Z | routes/transforms.js | pjpritch/truth-store | d27d4c9a8b75786394df87e4f84d67c3649f0a82 | [
"MIT"
] | null | null | null | // Copyright 2019 Peter Pritchard. All rights reserved.
const express = require('express');
const {
Context,
Instance,
Transform,
} = require('../lib/db');
const { NotFoundError } = require('../lib/errors');
const router = express.Router();
// list all transforms, paginated and basic query capabilities
router.get('/', async (req, res) => {
const { db } = req;
const { start, count } = req.query;
try {
const result = await Transform.find(db, { start, count });
const ids = result.data.map(transform => transform.id);
Transform.handleAPIResponse(res, {
data: ids,
total: result.total,
});
} catch (e) {
Transform.handleAPIErrorResponse(res, e);
}
});
// get an existing transform
router.get('/:transformId', async (req, res) => {
const { db } = req;
const { transformId } = req.params;
try {
const result = await Transform.findOne(db, transformId);
if (!result) throw new NotFoundError();
Transform.handleAPIResponse(res, result);
} catch (e) {
Transform.handleAPIErrorResponse(res, e);
}
});
// get an existing transform
router.get('/:transformId/render/:entityId/:instanceId', async (req, res) => {
const { db, query } = req;
const {
entityId,
instanceId,
transformId,
} = req.params;
try {
const transform = await Transform.findOne(db, transformId);
let instance;
if (entityId === 'contexts') {
const context = await Context.findOne(db, instanceId);
instance = await Context.resolveContext(db, context, query);
} else {
instance = await Instance.findOne(db, entityId, instanceId);
}
if (!transform || !instance) throw new NotFoundError();
const result = Transform.render(transform, instance);
Transform.handleAPIResponse(res, result);
} catch (e) {
Transform.handleAPIErrorResponse(res, e);
}
});
// create a new transform
router.post('/:transformId', async (req, res) => {
const { db, body } = req;
const { transformId } = req.params;
try {
const result = await Transform.create(db, transformId, body);
Transform.handleAPIResponse(res, result, 201);
} catch (e) {
Transform.handleAPIErrorResponse(res, e);
}
});
// replace an existing transform
router.put('/:transformId', async (req, res) => {
const { db, body } = req;
const { transformId } = req.params;
try {
const result = await Transform.replace(db, transformId, body);
Transform.handleAPIResponse(res, result);
} catch (e) {
Transform.handleAPIErrorResponse(res, e);
}
});
// update an existing transform
router.patch('/:transformId', async (req, res) => {
const { db, body } = req;
const { transformId } = req.params;
try {
const result = await Transform.update(db, transformId, body);
if (!result) throw new NotFoundError();
Transform.handleAPIResponse(res, result);
} catch (e) {
Transform.handleAPIErrorResponse(res, e);
}
});
// delete an existing transform
router.delete('/:transformId', async (req, res) => {
const { db } = req;
const { transformId } = req.params;
try {
const result = await Transform.delete(db, transformId);
if (!result) throw new NotFoundError();
Transform.handleAPIResponse(res, result);
} catch (e) {
Transform.handleAPIErrorResponse(res, e);
}
});
module.exports = router;
| 25.287879 | 78 | 0.650389 |
0228c39b4f63bcfbbf9c8f43f376a74e0bb1bcee | 3,524 | js | JavaScript | src/utils/checkUtils.js | iotjin/jh-vue-admin | fb4ceb1e10923ff9e2986557aeb32f1866e2bd23 | [
"MIT"
] | null | null | null | src/utils/checkUtils.js | iotjin/jh-vue-admin | fb4ceb1e10923ff9e2986557aeb32f1866e2bd23 | [
"MIT"
] | null | null | null | src/utils/checkUtils.js | iotjin/jh-vue-admin | fb4ceb1e10923ff9e2986557aeb32f1866e2bd23 | [
"MIT"
] | null | null | null | // 校验工具类
// ******************** 正则 ********************
// 手机号
export const REGEX_phone = /^1[3-9][0-9]{9}$/
// 身份证
export const REGEX_IDCard = /\d{17}[\d|x]|\d{15}/
// 邮箱
export const REGEX_email = /\w[-\w.+]*@([A-Za-z0-9][-A-Za-z0-9]+\.)+[A-Za-z]{2,14}/
// 金额,最多两位小数
export const REGEX_money = /^(([1-9][0-9]*)|(([0]\.\d{1,2}|[1-9][0-9]*\.\d{1,2})))$/
// 正整数,年龄
export const REGEX_age = /^[1-9]\d*$/
// 2-6位中文字符,姓名
export const REGEX_chinese = /^[\u4E00-\u9FA5]{2,6}$/
// 用户名,字母或数字或下划线
export const REGEX_userName1 = /^w+$/
// 用户名,4到16位字母,数字,下划线,减号
export const REGEX_userName2 = /^[a-zA-Z0-9_-]{4,16}$/
// 用户名,只含有数字、字母、下划线不能以下划线开头和结尾:
export const REGEX_userName3 = /^(?!_)(?!.*?_$)[a-zA-Z0-9_]+$/
// 用户名,只含有汉字、数字、字母、下划线不能以下划线开头和结尾:
export const REGEX_userName4 = /^(?!_)(?!.*?_$)[a-zA-Z0-9_\u4e00-\u9fa5]+$/
// 密码,长度至少为6,至少包含一个字母和一个数字
export const REGEX_pwd1 = /^(?=.*[A-Za-z])(?=.*\d)[A-Za-z\d]{6,}$/
// 密码,长度至少为8,且至少有一个数字 并同时包含大小写字母
export const REGEX_pwd2 = /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)[a-zA-Z\d]{8,}$/
// 密码,长度至少为8,至少含有一个字母和一个数字和一个特殊字符
export const REGEX_pwd3 = /^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*#?&])[A-Za-z\d@$!%*#?&]{8,}$/
// 密码,长度至少为8,包含大小写字母、数字和特殊字符
export const REGEX_pwd4 = /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$/
// 密码,长度8到16,包含大小写数字和特殊字符
export const REGEX_pwd5 = /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,16}$/
// ******************** 正则验证 ********************
// 判断是否是手机号
export function isPhone(value) {
return REGEX_phone.test(value)
}
// 判断是否是身份证号
export function isIDCard(value) {
return REGEX_IDCard.test(value)
}
// 判断是否是邮箱
export function isEmail(value) {
return REGEX_email.test(value)
}
// 判断是否是金额
export function isMoney(value) {
return REGEX_money.test(value)
}
// 判断是否是年龄
export function isAge(value) {
return REGEX_age.test(value)
}
// 判断是否是2-6位中文字符,姓名
export function isChinese(value) {
return REGEX_chinese.test(value)
}
// 判断是否是用户名
export function isUserName1(value) {
return REGEX_userName1.test(value)
}
export function isUserName2(value) {
return REGEX_userName2.test(value)
}
export function isUserName3(value) {
return REGEX_userName3.test(value)
}
export function isUserName4(value) {
return REGEX_userName4.test(value)
}
// 判断是否是密码
export function isPwd1(value) {
return REGEX_pwd1.test(value)
}
export function isPwd2(value) {
return REGEX_pwd2.test(value)
}
export function isPwd3(value) {
return REGEX_pwd3.test(value)
}
export function isPwd4(value) {
return REGEX_pwd4.test(value)
}
export function isPwd5(value) {
return REGEX_pwd5.test(value)
}
// 表单校验
/**
* 验证登录密码长度
* @param {*} value
* @param {*} callback
*/
export function validatePassword(rule, value, callback) {
if (value.length < 6) {
return callback(new Error('密码不能小于6位'))
} else if (value.length > 20) {
return callback(new Error('密码不能大于20位'))
} else {
return callback()
}
}
/**
* 验证登录密码长度
* @param {*} value
* @param {*} callback
*/
export function validatePwd(rule, value, callback) {
if (value.length < 6) {
return callback(new Error('密码不能小于6位'))
} else if (value.length > 20) {
return callback(new Error('密码不能大于20位'))
} else if (isPwd1) {
return callback(new Error('至少包含一个字母和一个数字'))
} else {
return callback()
}
}
/*
使用方法:
import * as checkUtils from '@/utils/checkUtils'
import { isPhone, isMoney } from '@/utils/checkUtils'
console.log(checkUtils.REGEX_phone)
console.log(checkUtils.isPhone('123'))
console.log(isPhone('123'))
*/
| 24.472222 | 98 | 0.623723 |
0228f657274de986ca1143dc98e04aec0b06adca | 1,522 | js | JavaScript | client/src/app/pages/upc/upc.module.js | gonzox92/ferreterias | d394ccab9e8879c62afa1a5848d7d861572ea85d | [
"MIT"
] | null | null | null | client/src/app/pages/upc/upc.module.js | gonzox92/ferreterias | d394ccab9e8879c62afa1a5848d7d861572ea85d | [
"MIT"
] | null | null | null | client/src/app/pages/upc/upc.module.js | gonzox92/ferreterias | d394ccab9e8879c62afa1a5848d7d861572ea85d | [
"MIT"
] | null | null | null | (function () {
'use strict';
angular.module('BlurAdmin.pages.upc', ['ui.select', 'ngSanitize'])
.config(routeConfig);
function routeConfig($stateProvider) {
$stateProvider
.state('upc', {
url: '/upc',
template : '<ui-view autoscroll="true" autoscroll-body-top></ui-view>',
abstract: true,
title: 'UPC',
sidebarMeta: {
icon: 'fa fa-barcode',
order: 700,
visible: true,
privileges: ['administrador']
}
})
.state('upc.listar', {
url: '/lista',
templateUrl: 'app/pages/upc/lista/lista.template.html',
controller: 'UPCListaController',
controllerAs: 'vm',
title: 'Lista',
sidebarMeta: {
order: 0,
visible: true,
isChild: true,
},
})
.state('upc.registrar', {
url: '/registrar',
templateUrl: 'app/pages/upc/registrar/registrar.template.html',
controller: 'UPCRegistroController',
controllerAs: 'vm',
title: 'Registrar',
sidebarMeta: {
order: 100,
visible: true,
isChild: true
},
})
.state('upc.item', {
url: '/:id',
templateUrl: 'app/pages/upc/item/item.template.html',
controller: 'UPCItemController',
controllerAs: 'vm',
title: 'Codigo Universal de Producto (UPC)',
sidebarMeta: {
order: 200,
visible: false,
},
});
}
})();
| 26.241379 | 79 | 0.513798 |
02298caa6484e66a8b723d0a79eee4a7ad3dc512 | 228 | js | JavaScript | ThinkingHome.Plugins.WebUi.Apps/Resources/system.js | wadimk/system | ac22c567ae56a3d751f5efea0f7f36fce36df30a | [
"MIT"
] | null | null | null | ThinkingHome.Plugins.WebUi.Apps/Resources/system.js | wadimk/system | ac22c567ae56a3d751f5efea0f7f36fce36df30a | [
"MIT"
] | 1 | 2022-02-19T12:47:50.000Z | 2022-02-19T12:47:50.000Z | ThinkingHome.Plugins.WebUi.Apps/Resources/system.js | wadimk/system | ac22c567ae56a3d751f5efea0f7f36fce36df30a | [
"MIT"
] | null | null | null | var lang = require('lang!static/web-ui/apps/lang.json');
var appsSection = require('/static/web-ui/apps/common.js');
module.exports = appsSection.extend({
title: lang.get('Settings'),
url: '/api/web-ui/apps/system'
});
| 28.5 | 59 | 0.684211 |
0229bc8fc29c034adb3a55cae7953430ab9211d9 | 27,355 | js | JavaScript | client/js/lib/taxonomy/TaxonomyViewer.js | Coldplayplay/sstk | 0590c8f3a96297fdf890496f6e41629fe9c3174a | [
"MIT"
] | null | null | null | client/js/lib/taxonomy/TaxonomyViewer.js | Coldplayplay/sstk | 0590c8f3a96297fdf890496f6e41629fe9c3174a | [
"MIT"
] | null | null | null | client/js/lib/taxonomy/TaxonomyViewer.js | Coldplayplay/sstk | 0590c8f3a96297fdf890496f6e41629fe9c3174a | [
"MIT"
] | null | null | null | 'use strict';
define(['assets/AssetManager','search/SearchController', 'model-viewer/SingleModelCanvas',
'util/IndexSelector', 'Constants', 'util', 'jquery-lazy'],
function (AssetManager, SearchController, SingleModelCanvas, IndexSelector, Constants, _) {
function TaxonomyViewer(params) {
// Container in which the taxonomy tree is displayed
this.treePanel = params.treePanel;
// Select for taxonomy tree
this.taxonomySelectElem = params.taxonomySelectElem;
// Details panel for selected taxonomy synset
this.taxonomyDetailsPanel = params.taxonomyDetailsPanel;
// Info panel for selected taxonomy synset
this.taxonomyInfoPanel = params.taxonomyInfoPanel;
// Treemap panel for selected taxonomy synset
this.taxonomyTreemapPanel = params.taxonomyTreemapPanel;
// Search panel for taxonomy search results
this.modelResultsPanel = params.modelResultsPanel;
// Search text box
this.taxonomySearchTextElem = params.taxonomySearchTextElem;
// Search button
this.taxonomySearchButton = params.taxonomySearchButton;
// Taxonomy options panel
this.taxonomyOptionsPanel = params.taxonomyOptionsPanel;
// Taxonomy search results panel (synset searches)
this.taxonomySearchResultsPanel = params.taxonomySearchResultsPanel;
this.taxonomySearchResultsModal = params.taxonomySearchResultsModal;
// Taxonomy statistics panel (for visualization)
this.taxonomyStatsPanel = params.taxonomyStatsPanel;
// Taxonomy measures panel (for displaying priors on width, height, etc)
this.taxonomyMeasuresPanel = params.taxonomyMeasuresPanel;
// Iframe to contain preview popup
this.viewerModal = params.viewerModal;
this.viewerIframe = params.viewerIframe;
this.kmzSourceButton = params.kmzSourceButton;
this.viewerSourceButton = params.viewerSourceButton;
// Thumbnail switching buttons
this.thumbnailDecrButton = params.thumbnailDecrButton;
this.thumbnailIncrButton = params.thumbnailIncrButton;
//tabs for taxonomy data (jquery UI tabs for synset details, treemap, barchart)
this.dataTabs = params.dataTabs;
// Json file holding the taxonomy for display in jstree
this.jsonFile = params.jsonFile;
// Json url holding the taxonomy for display in jstree
this.jsonUrl = params.jsonUrl;
this.defaultJsonUrl = params.jsonUrl;
// Where to get more information for taxonomy
this.searchUrl = params.searchUrl;
this.defaultSearchUrl = this.searchUrl;
// How to handle displaying a node in the taxonomy
this.detailsHandler = params.detailsHandler;
// Extra search filters
this.searchModelsFilter = params.searchModelsFilter;
// Different taxonomies to load
this.taxonomies = params.taxonomies;
this.defaultTaxonomy = params.defaultTaxonomy;
this.relaxedTaxonomySearch = params.relaxedTaxonomySearch;
// Show 3D preview or use the animated gif
this.useAnimatedGif = true;
this.showPreview = false;
this.usePreviewCanvas = false;
// Whether to show dropdown for selecting different taxonomies
this.showTaxonomySelector = true;
// Whether to show synset OBJ zip file download links
this.showSynsetOBJzipLinks = false;
// Include search entries with no models
this.includeEntriesWithNoModels = true;
// Whether to show extra debug functionality
this.debugMode = false;
this.init();
}
TaxonomyViewer.prototype.init = function () {
this.handleUrlInitParams(); // Ensures that URL params affecting initialization are parsed
this.thumbnailSelector = new IndexSelector({
current: -1,
min: -1,
max: -1,
wrap: true
});
if (this.taxonomies) {
for (var name in this.taxonomies) {
if (this.showDebugTaxonomies || !this.taxonomies[name].debug) {
this.taxonomySelectElem.append('<option value="' + name + '">' + name + '</option>');
}
}
var that = this;
this.taxonomySelectElem.change(function () {
that.taxonomySelectElem.find('option:selected').each(function () {
var m = $(this).val();
that.switchTaxonomy(m);
});
});
}
this.assetManager = new AssetManager(
{
autoAlignModels: true,
autoScaleModels: true,
useBuffers: true,
useDynamic: true // set dynamic to be true so our picking will work
}
);
if (!this.useAnimatedGif) {
// TODO: the 3d preview option is deprecated and can be removed
this.add3DPreviewOption();
}
this.searchController = new SearchController({
searchPanel: this.modelResultsPanel,
entriesPerRow: 8, // TODO: Make dynamic depending on layout size
nRows: 20,
showSearchOptions: false,
getImagePreviewUrlCallback: function (source, id, index, metadata) {
index = (index === undefined) ? this.thumbnailSelector.current : index;
return this.assetManager.getImagePreviewUrl(source, id, index, metadata);
}.bind(this),
additionalSortOrder: ' hasModel desc, popularity desc',
onClickResultCallback: this.showModel.bind(this),
onHoverResultCallback: this.previewCallback,
appendResultElemCallback: function (source, id, result, elem) {
if (result.wnlemmas && result.wnlemmas.length > 0) {
elem.append($('<div style="text-align: center"/>').html(result.wnlemmas[0]));
}
},
loadImagesLazy: true
});
this.searchController.source = 'models3d';
this.assetManager.setSearchController(this.searchController);
// Set up the jstree (http://www.jstree.com/)
var searchOptions = { 'case_insensitive': true };
this.searchOptions = searchOptions;
if (this.taxonomies && this.defaultTaxonomy) {
this.taxonomySelectElem.val(this.defaultTaxonomy);
this.switchTaxonomy(this.defaultTaxonomy);
} else {
if (this.jsonUrl) {
var jsonUrl = this.jsonUrl;
this.setTreeAjaxSearchOptions(jsonUrl, searchOptions);
if (!this.jsonFile) {
this.loadTreeUsingAjax(jsonUrl, searchOptions);
}
}
if (this.jsonFile) {
this.loadTreeFromFile(this.jsonFile, searchOptions);
}
}
if (this.detailsHandler.searchTaxonomy) {
this.taxonomySearchTextElem.change(function () { this.searchTaxonomy(); }.bind(this));
this.taxonomySearchButton.click(function () { this.searchTaxonomy(); }.bind(this));
this.relaxedTaxonomySearchCheckbox = $('<input/>')
.attr('type', 'checkbox')
.attr('id', 'relaxedTaxonomySearchCheckbox')
.prop('checked', this.relaxedTaxonomySearch)
.change(function () {
this.relaxedTaxonomySearch = this.relaxedTaxonomySearchCheckbox.prop('checked');
console.log(this.relaxedTaxonomySearch);
}.bind(this));
var relaxedTaxonomySearchLabel = $('<label></label>').attr('for', 'relaxedTaxonomySearchCheckbox').text('Relaxed search matching');
this.taxonomyOptionsPanel.append(
$('<li/>').append(this.relaxedTaxonomySearchCheckbox).append(relaxedTaxonomySearchLabel));
this.includeEntriesWithNoModelsCheckbox = $('<input/>')
.attr('type', 'checkbox')
.attr('id', 'includeEntriesWithNoModelsCheckbox')
.prop('checked', this.includeEntriesWithNoModels)
.change(function () {
this.includeEntriesWithNoModels = this.includeEntriesWithNoModelsCheckbox.prop('checked');
this.searchController.enableFiltering(!this.includeEntriesWithNoModels);
}.bind(this));
var includeEntriesWithNoModelsLabel = $('<label></label>').attr('for', 'includeEntriesWithNoModelsCheckbox').text('Show results with no 3D models');
this.taxonomyOptionsPanel.append(
$('<li/>').append(this.includeEntriesWithNoModelsCheckbox).append(includeEntriesWithNoModelsLabel));
}
this.detailsHandler.init(this);
// Get params from URL
this.handleUrlParams();
if (this.showTaxonomySelector) {
this.taxonomySelectElem.removeClass('hidden');
}
window.addEventListener('resize', this.onWindowResize.bind(this), false);
// Construct Treemap
var TreeMap = require('viz/TreeMap');
this.treemap = new TreeMap({
searchUrl: Constants.models3dSearchUrl,
container: this.taxonomyTreemapPanel,
taxonomyViewer: this,
assetManager: this.assetManager,
showModelCallback: this.showModel.bind(this)
});
// Hookup thumbnail switching buttons
this.thumbnailDecrButton.click(function () {
this.thumbnailSelector.dec();
this.searchController.updatePreviewImages(this.thumbnailSelector.value());
this.treemap.setThumbnail(this.thumbnailSelector.value());
}.bind(this));
this.thumbnailIncrButton.click(function () {
//change thumbnail
this.thumbnailSelector.inc();
this.searchController.updatePreviewImages(this.thumbnailSelector.value());
this.treemap.setThumbnail(this.thumbnailSelector.value());
}.bind(this));
};
TaxonomyViewer.prototype.bindTreeCallbacks_ = function () {
this.tree.unbind('activate_node.jstree');
this.tree.bind('activate_node.jstree',
function (event, data) {
var node = data.node.original;
this.showEntityDetails(node.metadata['name'], false);
}.bind(this)
);
this.tree.bind('ready.jstree',
function (event, data) {
var defaultEntity = this.currentTaxonomy.defaultEntity;
this.showEntityDetails(defaultEntity, true);
this.showTaxonomyTreeNode(defaultEntity);
}.bind(this)
);
};
TaxonomyViewer.prototype.setTreeAjaxSearchOptions = function (jsonUrl, searchOptions) {
// Use ajax to figure out what nodes needs to be opened...
//TODO: Do local search instead of ajax query to server
searchOptions['ajax'] = {
'type': 'GET',
'url': jsonUrl,
'success': function (data) {
for (var i = 0; i < data.length; i++) {
var nodeId = data[i];
this.tree.jstree('select_node', nodeId, true);
}
if (data.length > 0) {
var nodeId = data[data.length - 1];
document.getElementById('treePanel').scrollTop = document.getElementById(nodeId).offsetTop;
}
}.bind(this)
};
};
TaxonomyViewer.prototype.loadTreeUsingAjax = function (jsonUrl, searchOptions) {
this.treePanel.empty();
// Load tree hierarchy using ajax...
// TODO: Update me
var treeJsonData = {
'ajax': {
'type': 'GET',
'url': function (node) {
// "this" is the tree
var url = jsonUrl;
if (node !== -1) {
var nodeId = node.data('name');
var p = { 'n': nodeId };
url = url + appendChar + $.param(p);
}
console.log('url is ' + url);
return url;
},
'success': function (data) {
// TODO: add to autocomplete?
return data;
}
}
};
this.treePanel.empty();
this.tree = $('<div class="tree"></div>');
this.treePanel.append(this.tree);
this.tree.jstree({
'core': treeJsonData,
'search': searchOptions,
'plugins': ['search']
});
this.bindTreeCallbacks_();
};
TaxonomyViewer.prototype.loadTreeFromFile = function (jsonFile, searchOptions) {
this.treePanel.empty();
$.getJSON(
jsonFile,
function (data) {
this.treePanel.empty();
this.tree = $('<div class="tree"></div>');
this.treePanel.append(this.tree);
this.tree.jstree({
'core': {
'data': data,
'themes': { 'name': 'custom', 'responsive': true, 'stripes': true, 'icons': false }
},
'search': searchOptions,
'plugins': ['search']
});
this.bindTreeCallbacks_();
}.bind(this)
);
};
TaxonomyViewer.prototype.switchTaxonomy = function (name) {
var tax = this.taxonomies[name];
if (tax) {
tax.name = name;
this.thumbnailSelector.set(tax.defaultScreenshotIndex, tax.minScreenshotIndex, tax.maxScreenshotIndex);
this.currentTaxonomy = tax;
if (tax.jsonUrl) {
this.jsonUrl = tax.jsonUrl;
} else {
this.jsonUrl = this.defaultJsonUrl;
}
if (tax.jsonFile) {
this.jsonFile = tax.jsonFile;
}
if (this.jsonUrl) {
var jsonUrl = this.jsonUrl;
this.setTreeAjaxSearchOptions(jsonUrl, this.searchOptions);
if (!this.jsonFile) {
this.loadTreeUsingAjax(jsonUrl, this.searchOptions);
}
}
if (this.jsonFile) {
this.loadTreeFromFile(this.jsonFile, this.searchOptions);
}
if (tax.searchUrl) {
this.searchUrl = tax.searchUrl;
} else {
this.searchUrl = this.defaultSearchUrl;
}
this.detailsHandler.searchUrl = this.searchUrl;
this.detailsHandler.taxonomy = tax;
this.searchModelsFilter = tax.searchModelsFilter;
this.detailsHandler.searchModelsFilter = tax.searchModelsFilter;
} else {
console.log('Unknown taxonomy: ' + name);
}
};
TaxonomyViewer.prototype.populateTreeSearchAutoComplete = function (data) {
var names = {};
var addToNames = function (data) {
if (!data) return;
for (var i = 0; i < data.length; i++) {
names[data[i]['label']] = 1;
addToNames(data[i]['children']);
}
};
addToNames(data);
//console.log(names);
this.treeSearchTextElem.autocomplete({
source: Object.keys(names)
});
};
TaxonomyViewer.prototype.showModel = function (source, id) {
var fullId = AssetManager.toFullId(source, id);
this.viewerIframe.attr('src', 'view-model?modelId=' + fullId);
//this.viewerIframe.attr("src", "simple-model-viewer2.html?modelId=" + fullId);
if (this.kmzSourceButton) {
this.kmzSourceButton.unbind('click');
}
this.viewerSourceButton.unbind('click');
var kmzResult = this.assetManager.getLoadModelInfo(source, id);
var kmzUrl = kmzResult && kmzResult.file;
var sourceUrl = this.assetManager.getOriginalSourceUrl(source,id);
if (this.kmzSourceButton) {
if (kmzUrl) {
this.kmzSourceButton.click(function () {
window.open(kmzUrl);
});
this.kmzSourceButton.show();
} else {
this.kmzSourceButton.hide();
}
}
if (sourceUrl) {
this.viewerSourceButton.click(function () {
window.open(sourceUrl);
});
this.viewerSourceButton.show();
} else {
this.viewerSourceButton.hide();
}
this.viewerModal.modal('show');
//window.open("simple-model-viewer2.html?modelId=" + fullId, 'Model Viewer')
};
TaxonomyViewer.prototype.add3DPreviewOption = function () {
this.previewCallback = undefined;
if (this.showPreview) {
this.previewCallback = this.previewModel.bind(this);
}
// Preview frame
this.previewPanel = $('<span></span>').attr('class','previewPopup');
if (this.usePreviewCanvas) {
this.previewFrame = $('<div></div>')
.attr('id', 'previewFrame');
} else {
this.previewFrame = $('<iframe></iframe>')
.attr('scrolling', 'no')
.attr('id', 'previewFrame');
}
this.previewPanel.hide();
this.previewPanel.append(this.previewFrame);
this.previewShowButton = $('<input/>').attr('type', 'button').attr('value', 'Show');
this.previewPanel.append(this.previewShowButton);
this.showPreviewCheckbox = $('<input/>')
.attr('type', 'checkbox')
.attr('id', 'showPreview3D')
.prop('checked', this.showPreview)
.change(function () {
this.showPreview = this.showPreviewCheckbox.prop('checked');
if (this.showPreview) {
this.previewCallback = this.previewModel.bind(this);
} else {
this.previewCallback = undefined;
}
this.searchController.onHoverResultCallback = this.previewCallback;
// Update search results callbacks
var searchResultElems = $('.searchResult');
searchResultElems.off('hover');
if (this.previewCallback) {
var callback = this.previewCallback;
searchResultElems.hover(function () {
var result = $(this).data('result');
callback(result.source, result.id, result, $(this));
});
}
}.bind(this));
var showPreviewLabel = $('<label></label>').attr('for', 'showPreviewCheckbox').text('3D preview popup on hover');
this.taxonomyOptionsPanel.append(
$('<li/>').append(this.showPreviewCheckbox).append(showPreviewLabel));
$('#pageContainer').append(this.previewPanel);
};
TaxonomyViewer.prototype.previewModel = function (source, id, result, elem) {
var fullId = AssetManager.toFullId(source, id);
elem.addClass('enlarged');
var align = elem.attr('enlarge_align');
if (!align) {
align = 'center';
}
this.previewPanel.show();
if (this.usePreviewCanvas) {
if (!this.singleModelCanvas) {
this.singleModelCanvas = new SingleModelCanvas({ container: this.previewFrame.get(0), assetManager: this.assetManager });
}
this.singleModelCanvas.loadModel(source, id);
} else {
var url = Constants.baseUrl + '/simple-model-viewer2.html?autoRotate=1&modelId=' + fullId;
this.previewFrame.attr('src', url);
}
this.previewPanel.position({
my: align,
at: align,
of: elem
});
this.previewPanel.off('hover');
this.previewPanel.hover(function () {
},function () {
$(this).hide();
elem.removeClass('enlarged');
});
this.previewShowButton.off('click');
this.previewShowButton.click(function () {
elem.click();
});
};
TaxonomyViewer.prototype.showTaxonomyStatistics = function (entity, force) {
// Show taxonomy statistics
this.getTaxonomyStatistics(entity,
this.getTaxonomyStatisticsSucceeded.bind(this),
this.getTaxonomyStatisticsFailed.bind(this));
};
TaxonomyViewer.prototype.getTaxonomyStatisticsSucceeded = function (data, textStatus, jqXHR) {
this.showBarChart(data);
this.showTreeMap(data);
};
TaxonomyViewer.prototype.showBarChart = function (data) {
this.taxonomyStatsPanel.empty();
var namedCounts = data.map(function (x) {return { name: x.words, count: x.modelCount }; });
var BarChart = require('viz/BarChart');
BarChart.makeHorizontalBarChart({
data: namedCounts,
canvas: this.taxonomyStatsPanel.selector,
width: 400,
sort: true,
onClick: function (data, d, i) {
this.showEntityDetails(data[i].id, false);
this.showTaxonomyTreeNode(data[i].id);
}.bind(this, data)
});
};
TaxonomyViewer.prototype.showMeasures = function (measures) {
this.taxonomyMeasuresPanel.empty();
if (!measures || !this.debugMode) { // NOTE: Only show measures in debug mode
this.taxonomyMeasuresPanel.append('No measure data available');
return;
}
var keys = ['n', 'mean', 'min', 'max', 'var'];
var table = $('<table></table>').addClass('table table-striped');
var row = $('<tr></tr>').append($('<th></th>'));
keys.forEach(function (x) { row.append($('<th></th>').text(x)); });
table.append(row);
for (var measure in measures) {
if (!measures.hasOwnProperty(measure)) {
continue;
}
var stats = measures[measure];
var measureUnit = measure;
if (stats['unit']) { measureUnit = measureUnit + ' (' + stats['unit'] + ')'; }
row = $('<tr></tr>').append($('<td></td>').text(measureUnit));
keys.forEach(function (x) {
var s = stats[x];
if (s) {
if (measure === 'n') s = s.toPrecision(0);
//else if (measure !== 'var' && x === 'Price') s = s.toLocaleString('en-US', { currency: 'USD' } );
else s = s.toLocaleString('en-US', { maximumSignificantDigits: 3 });
}
row.append($('<td></td>').text(s || ''));
});
table.append(row);
}
this.taxonomyMeasuresPanel.append(table);
};
TaxonomyViewer.prototype.showTreeMap = function (data) {
this.taxonomyTreemapPanel.empty();
var namedCounts = data.map(function (x) {return { name: x.words, count: x.modelCount, id: x.id, parentId: x.parent }; });
// Check if tree map is currently visible
var loadTreeMap = this.treemap.container.is(':visible');
//console.log("Tree map is visible: " + loadTreeMap);
this.treemap.updateTreeMap(namedCounts, loadTreeMap);
};
TaxonomyViewer.prototype.getTaxonomyStatisticsFailed = function (jqXHR, textStatus, errorThrown) {
console.log('Error getting taxonomy statistics: ' + textStatus);
};
TaxonomyViewer.prototype.showEntityDetails = function (entity, force) {
this.showTaxonomyStatistics(entity, force);
this.detailsHandler.showEntityDetails(entity, force);
};
TaxonomyViewer.prototype.clearEntityDetails = function () {
this.taxonomyInfoPanel.empty();
this.taxonomyDetailsPanel.empty();
};
TaxonomyViewer.prototype.resetEntityDetails = function (entity) {
this.taxonomyInfoPanel.empty();
this.taxonomyDetailsPanel.empty();
var heading = $('<div id="detailsHeading"></div>').text(entity);
this.taxonomyDetailsPanel.append(heading);
var links = $('<div id="weblinks"></div>');
this.taxonomyDetailsPanel.append(links);
var webimages = $('<div id="webimages"></div>');
this.taxonomyDetailsPanel.append(webimages);
};
TaxonomyViewer.prototype.searchTaxonomy = function (searchTerm) {
if (!searchTerm) {
if (this.taxonomySearchTextElem) {
searchTerm = this.taxonomySearchTextElem.val();
}
}
if (!searchTerm) return;
//this.modelResultsPanel.hide();
this.detailsHandler.searchTaxonomy(searchTerm, this.relaxedTaxonomySearch);
};
TaxonomyViewer.prototype.showTaxonomyTreeNode = function (entity) {
this.tree.jstree('close_all');
this.tree.jstree('deselect_all');
this.tree.jstree('search', '#' + entity);
};
TaxonomyViewer.prototype.getTaxonomyNode = function (entity, succeededCallback, failedCallback) {
// TODO: Correct tax
var queryData = {
'tax': this.currentTaxonomy.name,
'n': entity,
'skipChildren': true
};
var method = 'GET';
$.ajax
({
type: method,
url: Constants.taxonomyUrl,
// url: this.jsonUrl,
data: queryData,
//dataType: 'jsonp',
//jsonp: 'json.wrf',
success: succeededCallback,
error: failedCallback,
timeout: 5000 // ms
});
};
TaxonomyViewer.prototype.getTaxonomyStatistics = function (entity, succeededCallback, failedCallback) {
// TODO: Correct tax
var queryData = {
'tax': this.currentTaxonomy.name,
'n': entity,
'stats': 1
};
var method = 'GET';
$.ajax
({
type: method,
url: Constants.taxonomyUrl,
// url: this.jsonUrl,
data: queryData,
//dataType: 'jsonp',
//jsonp: 'json.wrf',
success: succeededCallback,
error: failedCallback,
timeout: 5000 // ms
});
};
TaxonomyViewer.prototype.searchSolr = function (solrUrl, solrQuery, start, limit,
searchSucceededCallback, searchFailedCallback) {
var queryData = {
'q': solrQuery,
'wt': 'json',
'start': start,
'rows': limit
};
var method = 'POST';
$.ajax
({
type: method,
url: solrUrl,
data: queryData,
dataType: 'jsonp',
jsonp: 'json.wrf',
success: searchSucceededCallback,
error: searchFailedCallback,
timeout: 5000 // ms
});
};
TaxonomyViewer.prototype.getSearchModelSynsetField = function (includeHypernyms) {
var synsetField = 'wnsynset';
var hyperSynsetField = 'wnhypersynsets';
if (this.currentTaxonomy) {
if (this.currentTaxonomy['searchModelsField']) {
synsetField = this.currentTaxonomy['searchModelsField'];
}
if (this.currentTaxonomy['searchModelsHypernymField']) {
hyperSynsetField = this.currentTaxonomy['searchModelsHypernymField'];
}
}
if (includeHypernyms) {
return hyperSynsetField;
} else return synsetField;
};
TaxonomyViewer.prototype.searchModels = function (query) {
//this.modelResultsPanel.show();
this.searchController.search(query);
};
TaxonomyViewer.prototype.getModelMetaDataURL = function (query) {
// // TODO(MS): Remove this query fields filtering hack and add parameter
return this.searchController.getQueryUrl({
source: 'models3d',
query: query,
start: 0,
limit: 100000,
fields: 'fullId,wnsynset,wnlemmas,up,front,name,tags',
format: 'csv'
});
};
TaxonomyViewer.prototype.handleUrlInitParams = function () {
var params = _.getUrlParams();
var debug = params['debug'];
this.debugMode = debug;
if (debug) {
this.showDebugTaxonomies = true;
}
var stats = params['stats'];
if (stats) {
this.showTaxonomyStats = true;
}
var showSynsetOBJzipLinks = params['show-synset-obj-zip-links'];
if (showSynsetOBJzipLinks) {
this.showSynsetOBJzipLinks = true;
}
};
TaxonomyViewer.prototype.handleUrlParams = function () {
var params = _.getUrlParams();
var synsetId = params['synsetId'];
if (synsetId) {
this.showEntityDetails(synsetId, false);
}
var search = params['search'];
if (search) {
this.searchTaxonomy(search);
}
};
TaxonomyViewer.prototype.onWindowResize = function () {
this.searchController.onResize();
this.treemap.onResize();
};
//switch tabs to either barchart, synset details, or treemap
TaxonomyViewer.prototype.changeDataTab = function (tabNum) {
this.dataTabs.tabs({ active: tabNum });
};
// Exports
return TaxonomyViewer;
});
| 36.570856 | 156 | 0.612649 |
0229d8a7202fcae9588fe26ea362f1e3d8c01070 | 825 | js | JavaScript | tests/lib/agendaMapper.test.js | bilbostack/2020-website | 79593ed92e9e04aa69bfb43537090d3df672a6f4 | [
"MIT"
] | 2 | 2020-06-22T23:47:50.000Z | 2021-06-10T23:18:49.000Z | tests/lib/agendaMapper.test.js | bilbostack/2020-website | 79593ed92e9e04aa69bfb43537090d3df672a6f4 | [
"MIT"
] | 6 | 2022-02-10T19:54:09.000Z | 2022-02-27T22:35:04.000Z | tests/lib/agendaMapper.test.js | asiermarques/gatsby-starter-conferencer | ffb19210520b4863f14e91442f3f0009938303c8 | [
"MIT"
] | null | null | null | import AgendaConfigFixture from "../__fixtures/AgendaConfig"
import SpeakerFixture from "../__fixtures/Speaker"
import agendaMapper from "../../src/lib/agendaMapper"
import agendaSlotType from "../../src/lib/agendaSlotTypes"
describe("AgendaMapper", () => {
it("map the agenda fixture", () => {
const [agendaLine1, agendaLine2] = agendaMapper(AgendaConfigFixture, [SpeakerFixture]);
const speakerSlot = {
"content": SpeakerFixture,
"type": agendaSlotType.SPEAKER
};
expect(agendaLine1).toEqual([
AgendaConfigFixture.time_slots[0],
speakerSlot,
speakerSlot
]);
const textSlot = {
"content": "test",
"type": agendaSlotType.TEXT
};
expect(agendaLine2).toEqual([
AgendaConfigFixture.time_slots[1],
textSlot,
textSlot
]);
})
}) | 27.5 | 91 | 0.659394 |
0229da4c69dfb5b22b3483c87b8dabc30e150ed0 | 5,787 | js | JavaScript | test/Regex/characterclass_with_range.js | Taritsyn/ChakraCore | b6042191545a823fcf9d53df2b09d160d5808f51 | [
"MIT"
] | 8,664 | 2016-01-13T17:33:19.000Z | 2019-05-06T19:55:36.000Z | test/Regex/characterclass_with_range.js | Taritsyn/ChakraCore | b6042191545a823fcf9d53df2b09d160d5808f51 | [
"MIT"
] | 5,058 | 2016-01-13T17:57:02.000Z | 2019-05-04T15:41:54.000Z | test/Regex/characterclass_with_range.js | Taritsyn/ChakraCore | b6042191545a823fcf9d53df2b09d160d5808f51 | [
"MIT"
] | 1,367 | 2016-01-13T17:54:57.000Z | 2019-04-29T18:16:27.000Z | //-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//-------------------------------------------------------------------------------------------------------
WScript.LoadScriptFile("..\\UnitTestFramework\\UnitTestFramework.js");
function matchRegExp(str, regexp, expectedResult)
{
matchResult = str.match(regexp);//regexp.test(str);
errorMsg = "Expected result of match between string: '" + str + "' and regular expression: " + regexp + " to be " +
expectedResult + " but was " + matchResult;
actualResult = matchResult == null ? null : matchResult[0];
assert.areEqual(expectedResult, actualResult, errorMsg);
}
var tests = [
{
name : "RegExp tests with no flags",
body : function ()
{
let re = /[\s-a-z]/;
matchRegExp("b", re, null);
matchRegExp("a", re, "a");
matchRegExp(" ", re, " ");
matchRegExp("z", re, "z");
matchRegExp("\t", re, "\t");
matchRegExp("q", re, null);
matchRegExp("\\", re, null);
matchRegExp("\u2028", re, "\u2028");
matchRegExp("\u2009", re, "\u2009");
}
},
{
name : "RegExp tests with IgnoreCase flag set",
body : function ()
{
let reIgnoreCase = /^[\s-a-z]$/i;
matchRegExp("O", reIgnoreCase, null);
matchRegExp("A", reIgnoreCase, "A");
matchRegExp(" ", reIgnoreCase, " ");
matchRegExp("z", reIgnoreCase, "z");
matchRegExp("\t", reIgnoreCase, "\t");
matchRegExp("\u2028", reIgnoreCase, "\u2028");
matchRegExp("\u2009", reIgnoreCase, "\u2009");
}
},
{
name : "RegExp tests with Unicode flag set",
body : function ()
{
let reUnicode = /^[a-d]$/u;
matchRegExp("a", reUnicode, "a");
matchRegExp("c", reUnicode, "c");
matchRegExp("d", reUnicode, "d");
matchRegExp("C", reUnicode, null);
matchRegExp("g", reUnicode, null);
matchRegExp("\u2028", reUnicode, null);
matchRegExp("\u2009", reUnicode, null);
assert.throws(() => eval("/^[\\s-z]$/u.exec(\"-\")"), SyntaxError, "Expected an error due to character sets not being allowed in ranges when unicode flag is set.", "Character classes not allowed in a RegExp class range.");
assert.throws(() => eval("/^[z-\\s]$/u.exec(\"-\")"), SyntaxError, "Expected an error due to character sets not being allowed in ranges when unicode flag is set.", "Character classes not allowed in a RegExp class range.");
}
},
{
name : "Non-character class tests",
body : function ()
{
let reNoCharClass = /^[a-c-z]$/;
matchRegExp("b", reNoCharClass, "b");
matchRegExp("-", reNoCharClass, "-");
matchRegExp("z", reNoCharClass, "z");
matchRegExp("y", reNoCharClass, null);
}
},
{
name : "Regression tests from bugFixRegression",
body : function ()
{
matchRegExp(" -abc", /[\s-a-c]*/, " -a");
matchRegExp(" -abc", /[\s\-a-c]*/, " -abc");
matchRegExp(" -ab", /[a-\s-b]*/, " -ab");
matchRegExp(" -ab", /[a\-\s\-b]*/, " -ab");
assert.throws(() => eval("/^[\\s--c-!]$/.exec(\"-./0Abc!\")"), SyntaxError, "Expected an error due to 'c-!' being an invalid range.", "Invalid range in character set");
}
},
{
name : "Special character tests",
body : function ()
{
let re = /^[\s][a\sb][\s--c-f]$/;
matchRegExp(' \\', re, null);
matchRegExp(' \\ ', re, null);
matchRegExp('\\ ', re, null);
re = /[-][\d\-]/;
matchRegExp('--', re, '--');
matchRegExp('-9', re, '-9');
matchRegExp(' ', re, null);
matchRegExp('-\\', re, null);
}
},
{
name : "Negation character set tests",
body : function ()
{
let reNegationCharSet = /[\D-\s]+/;
matchRegExp('555686', reNegationCharSet, null);
matchRegExp('555-686', reNegationCharSet, '-');
matchRegExp('alphabet-123', reNegationCharSet, 'alphabet-');
}
},
{
name : "Non-range tests",
body : function ()
{
let reNonRange = /[-\w]/
matchRegExp('-', reNonRange, '-');
matchRegExp('g', reNonRange, 'g');
matchRegExp('5', reNonRange, '5');
matchRegExp(' ', reNonRange, null);
matchRegExp('\t', reNonRange, null);
matchRegExp('\u2028', reNonRange, null);
matchRegExp('\\', reNonRange, null);
reNonRange = /[\w-]/
matchRegExp('-', reNonRange, '-');
matchRegExp('g', reNonRange, 'g');
matchRegExp('5', reNonRange, '5');
matchRegExp(' ', reNonRange, null);
matchRegExp('\t', reNonRange, null);
matchRegExp('\u2028', reNonRange, null);
matchRegExp('\\', reNonRange, null);
}
}
];
testRunner.runTests(tests, {
verbose : WScript.Arguments[0] != "summary"
});
| 41.042553 | 235 | 0.459478 |
022a059e4cb8391ef1cf258a9b52ec8d5ffaf759 | 1,256 | js | JavaScript | src/components/Dir.js | kuhnuri/kuhnuri-cms-frontend | 0b4fbb3efa86f5be0507f47b41ed32211d48ca40 | [
"Apache-2.0"
] | 1 | 2020-02-18T13:23:06.000Z | 2020-02-18T13:23:06.000Z | src/components/Dir.js | kuhnuri/kuhnuri-cms-frontend | 0b4fbb3efa86f5be0507f47b41ed32211d48ca40 | [
"Apache-2.0"
] | null | null | null | src/components/Dir.js | kuhnuri/kuhnuri-cms-frontend | 0b4fbb3efa86f5be0507f47b41ed32211d48ca40 | [
"Apache-2.0"
] | null | null | null | import React, { Component } from 'react';
class Dir extends Component {
toggle() {
if (!!this.props.children || this.props.node.expanded) {
this.props.toggle(this.props.project, this.props.node)
} else {
this.props.loadAndToggle(this.props.project, this.props.node)
}
}
render() {
if (this.props.node.type === 'DIRECTORY') {
return (
<li>
<span onClick={() => this.toggle()} className={[
'controller',
this.props.node.expanded ? 'expanded' : 'collapsed'
].join(' ')}>
[{this.props.node.expanded ? '-' : '+'}]</span>
<span>{this.props.node.name}</span>
{(this.props.node.expanded && this.props.node.children) &&
<ul>{this.props.node.children.map(file => <Dir key={file.path} {...this.props} node={file} />)}</ul>
}
</li>
)
} else {
return (
<li className={[
this.props.node.active ? 'active' : null
].join(' ')}>
<span className={'controller'}> </span>
<span onClick={() => this.props.open(this.props.project.path, this.props.node.path)}>{this.props.node.name}</span>
</li>
)
}
}
}
export default Dir
| 30.634146 | 124 | 0.535032 |
022a59476e49d32890d12efde0651443acc13dc7 | 9,312 | js | JavaScript | demos/v2/static/js/42.f992446f3cdbe757a637.js | Aria-H/vux | b959ecc99e9662582bc248705117dd6e1c9eb95c | [
"MIT"
] | null | null | null | demos/v2/static/js/42.f992446f3cdbe757a637.js | Aria-H/vux | b959ecc99e9662582bc248705117dd6e1c9eb95c | [
"MIT"
] | null | null | null | demos/v2/static/js/42.f992446f3cdbe757a637.js | Aria-H/vux | b959ecc99e9662582bc248705117dd6e1c9eb95c | [
"MIT"
] | null | null | null | webpackJsonp([42,70],{214:function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(224),o=i(r);e.default={mounted:function(){var t=this;this.$nextTick(function(){(0,o.default)(t.$el)})}}},217:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(143);e.default={mixins:[i.childMixin],props:{activeClass:String,disabled:Boolean},computed:{style:function(){return{borderWidth:this.$parent.lineWidth+"px",borderColor:this.$parent.activeColor,color:this.currentSelected?this.$parent.activeColor:this.disabled?this.$parent.disabledColor:this.$parent.defaultColor,border:this.$parent.animate?"none":"auto"}}}}},218:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(143);e.default={mixins:[i.parentMixin],mounted:function(){var t=this;this.$nextTick(function(){setTimeout(function(){t.hasReady=!0},0)})},props:{lineWidth:{type:Number,default:3},activeColor:String,defaultColor:String,disabledColor:String,animate:{type:Boolean,default:!0}},computed:{barLeft:function(){return this.currentIndex*(100/this.number)+"%"},barRight:function(){return(this.number-this.currentIndex-1)*(100/this.number)+"%"},barStyle:function(){return{left:this.barLeft,right:this.barRight,display:"block",backgroundColor:this.activeColor,height:this.lineWidth+"px",transition:this.hasReady?null:"none"}},barClass:function(){return{"vux-tab-ink-bar-transition-forward":"forward"===this.direction,"vux-tab-ink-bar-transition-backward":"backward"===this.direction}}},watch:{currentIndex:function(t,e){this.direction=t>e?"forward":"backward",this.$emit("on-index-change",t,e)}},data:function(){return{direction:"forward",right:"100%",hasReady:!1}}}},224:function(t,e){"use strict";function n(){var t=window.navigator.userAgent,e=t.match(/(iPad|iPhone|iPod)\s+OS\s([\d_.]+)/);return e&&e[2]&&parseInt(e[2].replace(/_/g,"."),10)>=6}function i(){for(var t=["","-webkit-","-ms-","-moz-","-o-"],e="",n=0;n<t.length;n++)e+="position:"+t[n]+"sticky";var i=document.createElement("div"),r=document.body;i.style.cssText="display:none"+e,r.appendChild(i);var o=/sticky/i.test(window.getComputedStyle(i).position);return r.removeChild(i),i=null,o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){if(n()||i())t.classList.add("vux-sticky");else{var e=t.offsetTop;window.addEventListener("scroll",function(){window.scrollY>=e?t.classList.add("vux-fixed"):t.classList.remove("vux-fixed")})}}},251:function(t,e,n){e=t.exports=n(2)(),e.push([t.id,".vux-tab-ink-bar{position:absolute;height:2px;bottom:0;left:0;background-color:#f90}.vux-tab-ink-bar-transition-forward{transition:right .3s cubic-bezier(.35,0,.25,1),left .3s cubic-bezier(.35,0,.25,1) .09s}.vux-tab-ink-bar-transition-backward{transition:right .3s cubic-bezier(.35,0,.25,1) .09s,left .3s cubic-bezier(.35,0,.25,1)}.vux-tab{display:-ms-flexbox;display:flex;background-color:#fff;height:44px;position:relative}.vux-tab button{padding:0;border:0;outline:0;background:0 0;-webkit-appearance:none;-moz-appearance:none;appearance:none}.vux-tab .vux-tab-item{display:block;-ms-flex:1;flex:1;width:100%;height:100%;box-sizing:border-box;background:linear-gradient(180deg,#e5e5e5,#e5e5e5,hsla(0,0%,90%,0)) 0 100% no-repeat;background-size:100% 1px;font-size:14px;text-align:center;line-height:44px;color:#666}.vux-tab .vux-tab-item.vux-tab-selected{color:#f90;border-bottom:3px solid #f90}.vux-tab .vux-tab-item.vux-tab-disabled{color:#ddd}.vux-tab.vux-tab-no-animate .vux-tab-item.vux-tab-selected{background:0 0}","",{version:3,sources:["/./src/components/tab/tab.vue"],names:[],mappings:"AACA,iBAAiB,kBAAkB,WAAW,SAAS,OAAO,qBAAwB,CACrF,AACD,oCAAoC,sFAA4F,CAC/H,AACD,qCAAqC,sFAA4F,CAChI,AACD,SAAS,oBAAoB,aAAa,sBAAsB,YAAY,iBAAiB,CAC5F,AACD,gBAAgB,UAAU,SAAS,UAAU,eAAe,wBAAwB,qBAAqB,eAAe,CACvH,AACD,uBAAuB,cAAc,WAAW,OAAO,WAAW,YAAY,sBAAsB,qFAAgG,yBAAyB,eAAe,kBAAkB,iBAAiB,UAAU,CACxR,AACD,wCAAwC,WAAc,4BAA+B,CACpF,AACD,wCAAwC,UAAU,CACjD,AACD,2DAA2D,cAAc,CACxE",file:"tab.vue",sourcesContent:["\n.vux-tab-ink-bar{position:absolute;height:2px;bottom:0;left:0;background-color:#FF9900\n}\n.vux-tab-ink-bar-transition-forward{transition:right .3s cubic-bezier(.35, 0, .25, 1),left .3s cubic-bezier(.35, 0, .25, 1) .09s\n}\n.vux-tab-ink-bar-transition-backward{transition:right .3s cubic-bezier(.35, 0, .25, 1) .09s,left .3s cubic-bezier(.35, 0, .25, 1)\n}\n.vux-tab{display:-ms-flexbox;display:flex;background-color:#fff;height:44px;position:relative\n}\n.vux-tab button{padding:0;border:0;outline:0;background:0 0;-webkit-appearance:none;-moz-appearance:none;appearance:none\n}\n.vux-tab .vux-tab-item{display:block;-ms-flex:1;flex:1;width:100%;height:100%;box-sizing:border-box;background:linear-gradient(180deg, #e5e5e5, #e5e5e5, rgba(229,229,229,0)) bottom left no-repeat;background-size:100% 1px;font-size:14px;text-align:center;line-height:44px;color:#666\n}\n.vux-tab .vux-tab-item.vux-tab-selected{color:#FF9900;border-bottom:3px solid #FF9900\n}\n.vux-tab .vux-tab-item.vux-tab-disabled{color:#ddd\n}\n.vux-tab.vux-tab-no-animate .vux-tab-item.vux-tab-selected{background:0 0\n}"],sourceRoot:"webpack://"}])},254:function(t,e,n){e=t.exports=n(2)(),e.push([t.id,".vux-sticky{width:100%;position:-webkit-sticky;position:sticky;top:0}.vux-fixed{width:100%;position:fixed;top:0}","",{version:3,sources:["/./src/components/sticky/index.vue"],names:[],mappings:"AACA,YACE,WAAY,AACZ,wBAAyB,AACzB,gBAAiB,AACjB,KAAO,CACR,AACD,WACE,WAAY,AACZ,eAAgB,AAChB,KAAO,CACR",file:"index.vue",sourcesContent:["\n.vux-sticky {\n width: 100%;\n position: -webkit-sticky;\n position: sticky;\n top: 0;\n}\n.vux-fixed {\n width: 100%;\n position: fixed;\n top: 0;\n}\n"],sourceRoot:"webpack://"}])},261:function(t,e,n){var i=n(251);"string"==typeof i&&(i=[[t.id,i,""]]);n(3)(i,{});i.locals&&(t.exports=i.locals)},264:function(t,e,n){var i=n(254);"string"==typeof i&&(i=[[t.id,i,""]]);n(3)(i,{});i.locals&&(t.exports=i.locals)},283:function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"vux-tab-item",class:[t.currentSelected?t.activeClass:"",{"vux-tab-selected":t.currentSelected,"vux-tab-disabled":t.disabled}],style:t.style,on:{click:t.onItemClick}},[t._t("default")],2)},staticRenderFns:[]}},284:function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"vux-tab",class:{"vux-tab-no-animate":!t.animate}},[t._t("default"),t._v(" "),t.animate?n("div",{staticClass:"vux-tab-ink-bar",class:t.barClass,style:t.barStyle}):t._e()],2)},staticRenderFns:[]}},287:function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t._t("default")],2)},staticRenderFns:[]}},294:function(t,e,n){var i,r;n(264),i=n(214);var o=n(287);r=i=i||{},"object"!=typeof i.default&&"function"!=typeof i.default||(r=i=i.default),"function"==typeof r&&(r=r.options),r.render=o.render,r.staticRenderFns=o.staticRenderFns,t.exports=i},297:function(t,e,n){var i,r;i=n(217);var o=n(283);r=i=i||{},"object"!=typeof i.default&&"function"!=typeof i.default||(r=i=i.default),"function"==typeof r&&(r=r.options),r.render=o.render,r.staticRenderFns=o.staticRenderFns,t.exports=i},298:function(t,e,n){var i,r;n(261),i=n(218);var o=n(284);r=i=i||{},"object"!=typeof i.default&&"function"!=typeof i.default||(r=i=i.default),"function"==typeof r&&(r=r.options),r.render=o.render,r.staticRenderFns=o.staticRenderFns,t.exports=i},412:function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(298),o=i(r),a=n(297),s=i(a),c=n(294),u=i(c);e.default={components:{Tab:o.default,TabItem:s.default,Sticky:u.default}}},721:function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("br"),t._v(" "),n("br"),t._v(" "),n("br"),t._v(" "),n("sticky",[n("tab",{attrs:{"line-width":1}},[n("tab-item",{attrs:{selected:""}},[t._v("正在正映")]),t._v(" "),n("tab-item",[t._v("即将上映")])],1)],1),t._v(" "),n("br"),t._v(" "),n("br"),t._v(" "),n("br"),t._v(" "),n("br"),t._v(" "),n("br"),t._v(" "),n("br"),t._v(" "),n("br"),t._v(" "),n("br"),t._v(" "),n("br"),t._v(" "),n("br"),t._v(" "),n("br"),t._v(" "),n("br"),t._v(" "),n("br"),t._v(" "),n("br"),t._v(" "),n("br"),t._v(" "),n("br"),t._v(" "),n("br"),t._v(" "),n("br"),t._v(" "),n("br"),t._v(" "),n("br"),t._v(" "),n("br"),t._v(" "),n("br"),t._v(" "),n("br"),t._v(" "),n("br"),t._v(" "),n("br"),t._v(" "),n("br"),t._v(" "),n("br"),t._v(" "),n("br"),t._v(" "),n("br"),t._v(" "),n("br"),t._v(" "),n("br"),t._v(" "),n("br"),t._v(" "),n("br"),t._v(" "),n("br"),t._v(" "),n("br"),t._v(" "),n("br"),t._v(" "),n("br"),t._v(" "),n("br"),t._v(" "),n("br"),t._v(" "),n("br"),t._v(" "),n("br"),t._v(" "),n("br"),t._v(" "),n("br"),t._v(" "),n("br"),t._v(" "),n("br"),t._v(" "),n("br"),t._v(" "),n("br"),t._v(" "),n("br"),t._v(" "),n("br"),t._v(" "),n("br"),t._v(" "),n("br"),t._v(" "),n("br"),t._v(" "),n("br"),t._v(" "),n("br")],1)},staticRenderFns:[]}},836:function(t,e,n){var i,r;i=n(412);var o=n(721);r=i=i||{},"object"!=typeof i.default&&"function"!=typeof i.default||(r=i=i.default),"function"==typeof r&&(r=r.options),r.render=o.render,r.staticRenderFns=o.staticRenderFns,t.exports=i}}); | 9,312 | 9,312 | 0.681164 |
022a8a262e6616820deda673eac6b8d25772c8cc | 289 | js | JavaScript | src/scripts/libs/page-detect.js | heocoi/refined-facebook | f1f5c7212053d8cdfd0fcf0379b434e0f80ad5c3 | [
"MIT"
] | 1 | 2021-09-30T17:32:03.000Z | 2021-09-30T17:32:03.000Z | src/scripts/libs/page-detect.js | heocoi/refined-facebook | f1f5c7212053d8cdfd0fcf0379b434e0f80ad5c3 | [
"MIT"
] | null | null | null | src/scripts/libs/page-detect.js | heocoi/refined-facebook | f1f5c7212053d8cdfd0fcf0379b434e0f80ad5c3 | [
"MIT"
] | null | null | null | // Drops leading and trailing slash to avoid /\/?/ everywhere
export const getCleanPathname = () =>
location.pathname.replace(/^[/]|[/]$/g, "");
export const isFbPage = () => /^(www\.){0,1}facebook\.com$/.test(location.host);
export const isHome = () => /^$/.test(getCleanPathname());
| 36.125 | 80 | 0.636678 |
022ae269add4df0cbf9a28e33a18bc2e19375996 | 1,091 | js | JavaScript | geo-app/src/widgets/Geoprocessing/nls/da/strings.js | f-tonini/telecoupling-toolbox | 74a95e8828dacaf91f63031f4c014e94fb4f0284 | [
"FTL"
] | 15 | 2018-07-18T07:39:47.000Z | 2019-09-25T17:33:52.000Z | geo-app/src/widgets/Geoprocessing/nls/da/strings.js | f-tonini/telecoupling-toolbox | 74a95e8828dacaf91f63031f4c014e94fb4f0284 | [
"FTL"
] | 9 | 2017-10-02T14:15:25.000Z | 2020-01-02T19:01:15.000Z | geo-app/src/widgets/Geoprocessing/nls/da/strings.js | f-tonini/telecoupling-toolbox | 74a95e8828dacaf91f63031f4c014e94fb4f0284 | [
"FTL"
] | 9 | 2017-09-02T19:26:16.000Z | 2020-12-13T10:55:10.000Z | define({
"_widgetLabel": "Geoprocessering",
"_featureAction_ReceiveFeatureSet": "Indstil som input for ",
"requiredInfo": "er obligatorisk.",
"drawnOnMap": "Resultatet er tegnet på kortet.",
"noToolConfig": "Ingen prækonfigureret geoprocesseringsopgave er tilgængelig",
"useUrlForGPInput": "URL",
"useUploadForGPInput": "Overfør fil",
"selectFileToUpload": "Vælg fil...",
"rasterFormat": "Rasterdataformat",
"noFileSelected": "Ingen fil valgt!",
"uploadSuccess": "Filoverførsel lykkedes!",
"showLayerContent": "Vis lagindhold",
"invalidUrl": "Ugyldig featuretjeneste-URL",
"urlPlaceholder": "objektsæt-URL",
"addShapefile": "Tilføj shapefil",
"generateShapefileError": "Generér shapefil-fejl, kontrollér: ",
"cleared": "Resultatet er blevet ryddet.",
"enlargeView": "Forstår visning",
"exportOutput": "Eksportér",
"emptyResult": "Resultatet er tomt.",
"useSelectedFeatureset": "Brug det/de resulterende objekt(er).",
"closeSelectedFeatureset": "Ryd, og brug den konfigurerede input-indstilling.",
"currentMapExtent": "Aktuel kortudstrækning"
}); | 43.64 | 81 | 0.729606 |
022b83fcae87d29b9a32b0212d92d1c19de298e3 | 15,017 | js | JavaScript | app/app.js | zbudhwani/ui_as | ac9d93fec658787f337e727d32b1a111fb0ca181 | [
"MIT"
] | null | null | null | app/app.js | zbudhwani/ui_as | ac9d93fec658787f337e727d32b1a111fb0ca181 | [
"MIT"
] | null | null | null | app/app.js | zbudhwani/ui_as | ac9d93fec658787f337e727d32b1a111fb0ca181 | [
"MIT"
] | null | null | null |
/**************************
Initialize the Angular App
**************************/
var app = angular.module("app", ["ngRoute", "ngAnimate","app.config", "ui.bootstrap", "mgo-angular-wizard", "ui.tree", "ngMap", "ngTagsInput", "app.ui.ctrls", "app.ui.services", "app.controllers", "app.directives", "app.form.validation", "app.ui.form.ctrls", "app.ui.form.directives", "app.tables", "app.map", "countTo", "mediaPlayer","ngDragDrop", "app.music"]).run(["$rootScope", "$location","loggit",
function ($rootScope, $location,loggit) {
$(document).ready(function(){
setTimeout(function(){
$('.page-loading-overlay').addClass("loaded");
$('.load_circle_wrapper').addClass("loaded");
loggit.logSuccess("Welcome to Groovy! Navigate and add songs to your playlists.");
},1000);
});
}] ).config(["$routeProvider",
function($routeProvider) {
return $routeProvider.when("/", {
redirectTo: "/dashboard"
}).when("/dashboard", {
templateUrl: "app/views/dashboards/dashboard.html"
}).when("/dashboard/dashboard", {
templateUrl: "app/views/dashboards/dashboard.html"
}).when("/ui/typography", {
templateUrl: "app/views/ui_elements/typography.html"
}).when("/ui/buttons", {
templateUrl: "app/views/ui_elements/buttons.html"
}).when("/ui/icons", {
templateUrl: "app/views/ui_elements/icons.html"
}).when("/ui/grids", {
templateUrl: "app/views/ui_elements/grids.html"
}).when("/ui/widgets", {
templateUrl: "app/views/ui_elements/widgets.html"
}).when("/ui/components", {
templateUrl: "app/views/ui_elements/components.html"
}).when("/ui/timeline", {
templateUrl: "app/views/ui_elements/timeline.html"
}).when("/ui/nested-lists", {
templateUrl: "app/views/ui_elements/nested-lists.html"
}).when("/playlist/sample", {
templateUrl: "app/views/playlist/sample.html"
}).when("/artist/:title", {
templateUrl: "app/views/playlist/artist.html"
}).when("/playlist/:title", {
templateUrl: "app/views/playlist/playlist.html"
}).when("/artist-list", {
templateUrl: "app/views/playlist/artists-list.html"
}).when("/albums", {
templateUrl: "app/views/playlist/albums.html"
}).when("/album/:title", {
templateUrl: "app/views/playlist/album.html"
}).when("/genres", {
templateUrl: "app/views/playlist/genres.html"
}).when("/forms/elements", {
templateUrl: "app/views/forms/elements.html"
}).when("/forms/layouts", {
templateUrl: "app/views/forms/layouts.html"
}).when("/forms/validation", {
templateUrl: "app/views/forms/validation.html"
}).when("/forms/wizard", {
templateUrl: "app/views/forms/wizard.html"
}).when("/maps/gmap", {
templateUrl: "app/views/maps/gmap.html"
}).when("/maps/jqvmap", {
templateUrl: "app/views/maps/jqvmap.html"
}).when("/tables/static", {
templateUrl: "app/views/tables/static.html"
}).when("/tables/responsive", {
templateUrl: "app/views/tables/responsive.html"
}).when("/tables/dynamic", {
templateUrl: "app/views/tables/dynamic.html"
}).when("/mail/inbox", {
templateUrl: "app/views/mail/inbox.html"
}).when("/mail/compose", {
templateUrl: "app/views/mail/compose.html"
}).when("/mail/single", {
templateUrl: "app/views/mail/single.html"
}).when("/pages/features", {
templateUrl: "app/views/pages/features.html"
}).when("/front", {
templateUrl: "app/views/pages/frontpage.html"
}).when("/pages/signin", {
templateUrl: "app/views/pages/signin.html"
}).when("/pages/signup", {
templateUrl: "app/views/pages/signup.html"
}).when("/pages/forgot", {
templateUrl: "app/views/pages/forgot-password.html"
}).when("/pages/profile", {
templateUrl: "app/views/pages/profile.html"
}).when("/404", {
templateUrl: "app/views/pages/404.html"
}).when("/pages/500", {
templateUrl: "app/views/pages/500.html"
}).when("/pages/blank", {
templateUrl: "app/views/pages/blank.html"
}).when("/pages/contact", {
templateUrl: "app/views/pages/contact.html"
}).otherwise({
redirectTo: "/404"
});
}
]);
/**************************
App Map
**************************/
angular.module("app.map", []).directive("uiJqvmap", [
function() {
return {
restrict: "A",
scope: {
options: "="
},
link: function(scope, ele) {
var options;
return options = scope.options, ele.vectorMap(options);
}
};
}
]).controller("jqvmapCtrl", ["$scope",
function($scope) {
var sample_data;
return sample_data = {
af: "16.63",
al: "11.58",
dz: "158.97",
ao: "85.81",
ag: "1.1",
ar: "351.02",
am: "8.83",
au: "1219.72",
at: "366.26",
az: "52.17",
bs: "7.54",
bh: "21.73",
bd: "105.4",
bb: "3.96",
by: "52.89",
be: "461.33",
bz: "1.43",
bj: "6.49",
bt: "1.4",
bo: "19.18",
ba: "16.2",
bw: "12.5",
br: "2023.53",
bn: "11.96",
bg: "44.84",
bf: "8.67",
bi: "1.47",
kh: "11.36",
cm: "21.88",
ca: "1563.66",
cv: "1.57",
cf: "2.11",
td: "7.59",
cl: "199.18",
cn: "5745.13",
co: "283.11",
km: "0.56",
cd: "12.6",
cg: "11.88",
cr: "35.02",
ci: "22.38",
hr: "59.92",
cy: "22.75",
cz: "195.23",
dk: "304.56",
dj: "1.14",
dm: "0.38",
"do": "50.87",
ec: "61.49",
eg: "216.83",
sv: "21.8",
gq: "14.55",
er: "2.25",
ee: "19.22",
et: "30.94",
fj: "3.15",
fi: "231.98",
fr: "2555.44",
ga: "12.56",
gm: "1.04",
ge: "11.23",
de: "3305.9",
gh: "18.06",
gr: "305.01",
gd: "0.65",
gt: "40.77",
gn: "4.34",
gw: "0.83",
gy: "2.2",
ht: "6.5",
hn: "15.34",
hk: "226.49",
hu: "132.28",
is: "12.77",
"in": "1430.02",
id: "695.06",
ir: "337.9",
iq: "84.14",
ie: "204.14",
il: "201.25",
it: "2036.69",
jm: "13.74",
jp: "5390.9",
jo: "27.13",
kz: "129.76",
ke: "32.42",
ki: "0.15",
kr: "986.26",
undefined: "5.73",
kw: "117.32",
kg: "4.44",
la: "6.34",
lv: "23.39",
lb: "39.15",
ls: "1.8",
lr: "0.98",
ly: "77.91",
lt: "35.73",
lu: "52.43",
mk: "9.58",
mg: "8.33",
mw: "5.04",
my: "218.95",
mv: "1.43",
ml: "9.08",
mt: "7.8",
mr: "3.49",
mu: "9.43",
mx: "1004.04",
md: "5.36",
mn: "5.81",
me: "3.88",
ma: "91.7",
mz: "10.21",
mm: "35.65",
na: "11.45",
np: "15.11",
nl: "770.31",
nz: "138",
ni: "6.38",
ne: "5.6",
ng: "206.66",
no: "413.51",
om: "53.78",
pk: "174.79",
pa: "27.2",
pg: "8.81",
py: "17.17",
pe: "153.55",
ph: "189.06",
pl: "438.88",
pt: "223.7",
qa: "126.52",
ro: "158.39",
ru: "1476.91",
rw: "5.69",
ws: "0.55",
st: "0.19",
sa: "434.44",
sn: "12.66",
rs: "38.92",
sc: "0.92",
sl: "1.9",
sg: "217.38",
sk: "86.26",
si: "46.44",
sb: "0.67",
za: "354.41",
es: "1374.78",
lk: "48.24",
kn: "0.56",
lc: "1",
vc: "0.58",
sd: "65.93",
sr: "3.3",
sz: "3.17",
se: "444.59",
ch: "522.44",
sy: "59.63",
tw: "426.98",
tj: "5.58",
tz: "22.43",
th: "312.61",
tl: "0.62",
tg: "3.07",
to: "0.3",
tt: "21.2",
tn: "43.86",
tr: "729.05",
tm: 0,
ug: "17.12",
ua: "136.56",
ae: "239.65",
gb: "2258.57",
us: "14624.18",
uy: "40.71",
uz: "37.72",
vu: "0.72",
ve: "285.21",
vn: "101.99",
ye: "30.02",
zm: "15.69",
zw: "5.57"
}, $scope.worldMap = {
map: "world_en",
backgroundColor: null,
color: "#ffffff",
hoverOpacity: 0.7,
selectedColor: "#db5031",
hoverColor: "#db5031",
enableZoom: !0,
showTooltip: !0,
values: sample_data,
scaleColors: ["#F1EFF0", "#c1bfc0"],
normalizeFunction: "polynomial"
}, $scope.USAMap = {
map: "usa_en",
backgroundColor: null,
color: "#ffffff",
selectedColor: "#db5031",
hoverColor: "#db5031",
enableZoom: !0,
showTooltip: !0,
selectedRegion: "MO"
}, $scope.europeMap = {
map: "europe_en",
backgroundColor: null,
color: "#ffffff",
hoverOpacity: 0.7,
selectedColor: "#db5031",
hoverColor: "#db5031",
enableZoom: !0,
showTooltip: !0,
values: sample_data,
scaleColors: ["#F1EFF0", "#c1bfc0"],
normalizeFunction: "polynomial"
};
}
]);
/**************************
Timer
**************************/
angular.module('countTo', []).controller("countTo", ["$scope",
function($scope) {
return $scope.countersmall1 = {
countTo: 20,
countFrom: 0
},$scope.countersmall2 = {
countTo: 42,
countFrom: 0
},$scope.countersmall3 = {
countTo: 90,
countFrom: 0
},$scope.countersmall1dash = {
countTo: 420,
countFrom: 0
},$scope.countersmall2dash = {
countTo: 742,
countFrom: 0
},$scope.countersmall3dash = {
countTo: 100,
countFrom: 0
};
}]).directive('countTo', ['$timeout', function ($timeout) {
return {
replace: false,
scope: true,
link: function (scope, element, attrs) {
var e = element[0];
var num, refreshInterval, duration, steps, step, countTo, value, increment;
var calculate = function () {
refreshInterval = 30;
step = 0;
scope.timoutId = null;
countTo = parseInt(attrs.countTo) || 0;
scope.value = parseInt(attrs.value, 10) || 0;
duration = (parseFloat(attrs.duration) * 1000) || 0;
steps = Math.ceil(duration / refreshInterval);
increment = ((countTo - scope.value) / steps);
num = scope.value;
};
var tick = function () {
scope.timoutId = $timeout(function () {
num += increment;
step++;
if (step >= steps) {
$timeout.cancel(scope.timoutId);
num = countTo;
e.textContent = countTo;
} else {
e.textContent = Math.round(num);
tick();
}
}, refreshInterval);
};
var start = function () {
if (scope.timoutId) {
$timeout.cancel(scope.timoutId);
}
calculate();
tick();
};
attrs.$observe('countTo', function (val) {
if (val) {
start();
}
});
attrs.$observe('value', function (val) {
start();
});
return true;
}
};
}]); | 34.363844 | 403 | 0.364187 |
022bc3105e428ef1b35843d7877b15008fb61c5d | 938 | js | JavaScript | assert-unique-cjs.js | shinnn/assert-unique | c5831fdedf8a85f3cfa2a030f67731a8c3a98b19 | [
"MIT"
] | null | null | null | assert-unique-cjs.js | shinnn/assert-unique | c5831fdedf8a85f3cfa2a030f67731a8c3a98b19 | [
"MIT"
] | null | null | null | assert-unique-cjs.js | shinnn/assert-unique | c5831fdedf8a85f3cfa2a030f67731a8c3a98b19 | [
"MIT"
] | null | null | null | /*!
* assert-unique | MIT (c) Shinnosuke Watanabe
* https://github.com/shinnn/assert-unique
*/
'use strict';
var arrayDuplicated = require('array-duplicated');
var arrayToSentence = require('array-to-sentence');
module.exports = function assertUnique() {
if (arguments.length === 0) {
return;
}
var duplicates = arrayDuplicated([].slice.call(arguments));
if (duplicates.length === 0) {
return;
}
var len = duplicates.length;
while (len--) {
if (typeof duplicates[len] === 'function') {
var fnName = '';
if (duplicates[len].name) {
fnName = ': ' + duplicates[len].name;
}
duplicates[len] = '[Function' + fnName + ']';
} else {
duplicates[len] = JSON.stringify(duplicates[len]);
}
}
var aux;
if (duplicates.length === 1) {
aux = 'is';
} else {
aux = 'are';
}
throw new Error(arrayToSentence(duplicates) + ' ' + aux + ' duplicated.');
};
| 20.844444 | 76 | 0.590618 |
022bdd664d4c267171df9f2b7017a1ed11f151f3 | 1,664 | js | JavaScript | src/routes/api/client.route.js | SenteSol/finance-api | 517e9de9cbd06872fa23546442cc31203d9c920d | [
"MIT"
] | null | null | null | src/routes/api/client.route.js | SenteSol/finance-api | 517e9de9cbd06872fa23546442cc31203d9c920d | [
"MIT"
] | 6 | 2021-08-06T14:46:43.000Z | 2021-11-16T09:01:54.000Z | src/routes/api/client.route.js | SenteSol/finance-api | 517e9de9cbd06872fa23546442cc31203d9c920d | [
"MIT"
] | null | null | null | import { Router } from 'express';
import { celebrate, Joi, Segments } from 'celebrate';
import passport from 'passport';
import ClientController from '../../controllers/clients';
const router = Router();
router.get(
'/',
passport.authenticate('jwt', { session: false }, null),
ClientController.getAllClients
);
router.get(
'/:id',
passport.authenticate('jwt', { session: false }, null),
ClientController.getClient
);
router.get(
'/manager/email',
passport.authenticate('jwt', { session: false }, null),
ClientController.getClientByManager
);
router.post(
'/',
passport.authenticate('jwt', { session: false }, null),
celebrate({
[Segments.BODY]: Joi.object().keys({
address: Joi.string().required(),
clientName: Joi.string().required(),
city: Joi.string().required(),
country: Joi.string().required(),
clientContactEmail: Joi.string().required(),
clientContactNumber: Joi.string().required(),
}),
}),
ClientController.addClient
);
router.put(
'/:id',
passport.authenticate('jwt', { session: false }, null),
celebrate({
[Segments.BODY]: Joi.object().keys({
address: Joi.string(),
clientName: Joi.string(),
city: Joi.string(),
country: Joi.string(),
clientContactEmail: Joi.string(),
clientContactNumber: Joi.string(),
}),
}),
ClientController.updateClient
);
router.delete(
'/:id',
passport.authenticate('jwt', { session: false }, null),
ClientController.deleteClient
);
export default router;
| 25.6 | 59 | 0.601563 |
022bf01a8d70bc871b67f4c09b4613bd6bdc3c4d | 419 | js | JavaScript | commands/members.js | nakinami/ccc | 59bd1b397ffeb71407d9e073f3f05458565ee9c4 | [
"MIT"
] | null | null | null | commands/members.js | nakinami/ccc | 59bd1b397ffeb71407d9e073f3f05458565ee9c4 | [
"MIT"
] | null | null | null | commands/members.js | nakinami/ccc | 59bd1b397ffeb71407d9e073f3f05458565ee9c4 | [
"MIT"
] | null | null | null | /*
mention all members then delete afterwards (dont use on big servers)
*/
module.exports = (self) => {
self.registerCommand('members', function (msg, args) {
let mm = ""
let members = msg.channel.guild.members
for (let m of members.values()) {
mm += m.mention
}
this.send(msg, mm)
.then(msg =>
setTimeout(() => this.self.deleteMessage(msg.channel.id, msg.id), 100)
)
}, {
noPms: true
})
} | 23.277778 | 73 | 0.627685 |
022c8e2863d8ab8e92c86cefa72c27e5dff8c838 | 1,877 | js | JavaScript | node_modules/angular2/es6/prod/src/core/pipes/lowercase_pipe.js | exports-io/angular2-http | da365044c8bb5dcfd4ffebfc2ff75bffbcb29ced | [
"MIT"
] | null | null | null | node_modules/angular2/es6/prod/src/core/pipes/lowercase_pipe.js | exports-io/angular2-http | da365044c8bb5dcfd4ffebfc2ff75bffbcb29ced | [
"MIT"
] | null | null | null | node_modules/angular2/es6/prod/src/core/pipes/lowercase_pipe.js | exports-io/angular2-http | da365044c8bb5dcfd4ffebfc2ff75bffbcb29ced | [
"MIT"
] | null | null | null | var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") return Reflect.decorate(decorators, target, key, desc);
switch (arguments.length) {
case 2: return decorators.reduceRight(function(o, d) { return (d && d(o)) || o; }, target);
case 3: return decorators.reduceRight(function(o, d) { return (d && d(target, key)), void 0; }, void 0);
case 4: return decorators.reduceRight(function(o, d) { return (d && d(target, key, o)) || o; }, desc);
}
};
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
import { isString, StringWrapper, CONST, isBlank } from 'angular2/src/core/facade/lang';
import { Injectable } from 'angular2/src/core/di';
import { Pipe } from 'angular2/src/core/metadata';
import { InvalidPipeArgumentException } from './invalid_pipe_argument_exception';
/**
* Implements lowercase transforms to text.
*
* # Example
*
* In this example we transform the user text lowercase.
*
* ```
* @Component({
* selector: "username-cmp",
* template: "Username: {{ user | lowercase }}"
* })
* class Username {
* user:string;
* }
*
* ```
*/
export let LowerCasePipe = class {
transform(value, args = null) {
if (isBlank(value))
return value;
if (!isString(value)) {
throw new InvalidPipeArgumentException(LowerCasePipe, value);
}
return StringWrapper.toLowerCase(value);
}
};
LowerCasePipe = __decorate([
CONST(),
Pipe({ name: 'lowercase' }),
Injectable(),
__metadata('design:paramtypes', [])
], LowerCasePipe);
//# sourceMappingURL=lowercase_pipe.js.map | 37.54 | 135 | 0.621737 |
022d7e22654b39d4505b0fa9e252e676185acb81 | 14,048 | js | JavaScript | lib/reports/ReportCountSummaryTurningMovement.js | CityofToronto/bdit_flashcrow | 78c885a72903cbd3f81878181dfb67f9bc64fc1a | [
"MIT"
] | 6 | 2019-11-25T18:51:45.000Z | 2021-07-09T02:08:29.000Z | lib/reports/ReportCountSummaryTurningMovement.js | CityofToronto/bdit_flashcrow | 78c885a72903cbd3f81878181dfb67f9bc64fc1a | [
"MIT"
] | 488 | 2019-11-25T18:51:11.000Z | 2022-03-14T13:47:27.000Z | lib/reports/ReportCountSummaryTurningMovement.js | CityofToronto/bdit_flashcrow | 78c885a72903cbd3f81878181dfb67f9bc64fc1a | [
"MIT"
] | null | null | null | /* eslint-disable class-methods-use-this */
import ArrayUtils from '@/lib/ArrayUtils';
import { ReportBlock, ReportType } from '@/lib/Constants';
import ReportBaseFlow from '@/lib/reports/ReportBaseFlow';
import ReportBaseFlowDirectional from '@/lib/reports/ReportBaseFlowDirectional';
import {
indexRangeHourOfDay,
indexRangePeakTime,
} from '@/lib/reports/time/ReportTimeUtils';
import TimeFormatters from '@/lib/time/TimeFormatters';
const REGEX_PX = /PX (\d+)/;
/**
* Subclass of {@link ReportBaseFlow} for the Turning Movement Count Summary Report.
*
* @see https://www.notion.so/bditto/Turning-Movement-Count-Summary-Report-d9bc143ed7e14acc894a4c0c0135c8a4
*/
class ReportCountSummaryTurningMovement extends ReportBaseFlow {
type() {
return ReportType.COUNT_SUMMARY_TURNING_MOVEMENT;
}
static sumIndexRange(countData, indexRange) {
const { lo, hi } = indexRange;
if (lo === hi) {
const data = ReportBaseFlowDirectional.emptyTmcRecord();
return ReportBaseFlowDirectional.computeMovementAndVehicleTotals(data);
}
const countDataPoints = countData
.slice(lo, hi)
.map(({ data }) => data);
return ArrayUtils.sumObjects(countDataPoints);
}
static avgPerHourIndexRange(countData, indexRange) {
const { lo, hi } = indexRange;
if (lo === hi) {
const data = ReportBaseFlowDirectional.emptyTmcRecord();
return ReportBaseFlowDirectional.computeMovementAndVehicleTotals(data);
}
const sum = ReportCountSummaryTurningMovement.sumIndexRange(countData, indexRange);
const avg = {};
const n = hi - lo;
Object.entries(sum).forEach(([key, value]) => {
avg[key] = Math.round(ReportBaseFlow.ROWS_PER_HOUR * value / n);
});
return ReportBaseFlowDirectional.computeMovementAndVehicleTotals(avg);
}
static sumSection(totaledData, indexRange) {
const sum = ReportCountSummaryTurningMovement.sumIndexRange(
totaledData,
indexRange,
);
const timeRange = ReportCountSummaryTurningMovement.timeRange(
totaledData,
indexRange,
);
return {
sum,
timeRange,
};
}
static avgSection(countData, indexRange) {
const avg = ReportCountSummaryTurningMovement.avgPerHourIndexRange(
countData,
indexRange,
);
const timeRange = ReportCountSummaryTurningMovement.timeRange(
countData,
indexRange,
);
return {
avg,
timeRange,
};
}
static transformCountData(countData) {
const totaledData = ReportBaseFlowDirectional.computeAllMovementAndVehicleTotals(
countData,
);
const indicesAm = indexRangeHourOfDay(totaledData, 0, 12);
const indicesAmPeak = indexRangePeakTime(
totaledData,
indicesAm,
{ hours: 1 },
({ VEHICLE_TOTAL }) => VEHICLE_TOTAL,
);
const amPeak = ReportCountSummaryTurningMovement.sumSection(
totaledData,
indicesAmPeak,
);
const indicesAm2Hour = indexRangePeakTime(
totaledData,
indicesAm,
{ hours: 2 },
({ VEHICLE_TOTAL }) => VEHICLE_TOTAL,
);
const am = ReportCountSummaryTurningMovement.sumSection(
totaledData,
indicesAm2Hour,
);
const indicesPm = indexRangeHourOfDay(totaledData, 12, 24);
const indicesPmPeak = indexRangePeakTime(
totaledData,
indicesPm,
{ hours: 1 },
({ VEHICLE_TOTAL }) => VEHICLE_TOTAL,
);
const pmPeak = ReportCountSummaryTurningMovement.sumSection(
totaledData,
indicesPmPeak,
);
const indicesPm2Hour = indexRangePeakTime(
totaledData,
indicesPm,
{ hours: 2 },
({ VEHICLE_TOTAL }) => VEHICLE_TOTAL,
);
const pm = ReportCountSummaryTurningMovement.sumSection(
totaledData,
indicesPm2Hour,
);
/*
* If we total, average, round in that order, totaled values will appear off, even though it's
* more correct from a statistical / analytical perspective to do it that way. As such, we
* average, round, and then total at the end, to ensure sums look right.
*
* The assumption is that the error introduced by this process is acceptable. (In any case,
* we're not adding *that* many numbers together, so it is at the very least small in an
* absolute sense.)
*/
const indicesOffHours = { lo: indicesAm2Hour.hi, hi: indicesPm2Hour.lo };
const offHours = ReportCountSummaryTurningMovement.avgSection(
countData,
indicesOffHours,
);
const indicesAll = { lo: 0, hi: totaledData.length };
const all = ReportCountSummaryTurningMovement.sumSection(
totaledData,
indicesAll,
);
return {
amPeak,
pmPeak,
offHours,
am,
pm,
all,
};
}
static getTrafficSignalId(countLocation) {
if (countLocation === null) {
return null;
}
const { description } = countLocation;
const match = REGEX_PX.exec(description);
if (match === null) {
return null;
}
const px = parseInt(match[1], 10);
if (Number.isNaN(px)) {
return null;
}
return px;
}
transformData(study, { countLocation, counts, studyData }) {
if (counts.length === 0) {
return [];
}
const [count] = counts;
const { date, hours, id } = count;
const px = ReportCountSummaryTurningMovement.getTrafficSignalId(countLocation);
const countData = studyData.get(id);
const stats = ReportCountSummaryTurningMovement.transformCountData(countData);
return {
date,
hours,
px,
stats,
};
}
generateCsv(count, { stats }) {
const {
amPeak,
pmPeak,
offHours,
am,
pm,
all,
} = stats;
const dataKeys = Object.keys(amPeak.sum);
const dataColumns = dataKeys.map(key => ({ key, header: key }));
const columns = [
{ key: 'name', header: 'Name' },
{ key: 'start', header: 'Start' },
{ key: 'end', header: 'End' },
...dataColumns,
];
const rows = [
{
name: 'AM PEAK',
...amPeak.timeRange,
...amPeak.sum,
}, {
name: 'PM PEAK',
...pmPeak.timeRange,
...pmPeak.sum,
}, {
name: 'OFF HOUR AVG',
...offHours.timeRange,
...offHours.avg,
}, {
name: '2 HOUR AM',
...am.timeRange,
...am.sum,
}, {
name: '2 HOUR PM',
...pm.timeRange,
...pm.sum,
}, {
name: 'TOTAL SUM',
...all.timeRange,
...all.sum,
},
];
return { columns, rows };
}
// PDF GENERATION
static getTableHeader() {
const dirs = [
{ value: 'Exits', style: { bl: true } },
{ value: 'Left' },
{ value: 'Thru' },
{ value: 'Right' },
{ value: 'Total' },
];
return [
[
{
value: 'Time Period',
rowspan: 2,
style: { br: true },
},
{
value: 'Vehicle Type',
rowspan: 2,
},
{
value: 'NORTHBOUND',
colspan: 5,
style: { bl: true },
},
{
value: 'EASTBOUND',
colspan: 5,
style: { bl: true },
},
{
value: 'SOUTHBOUND',
colspan: 5,
style: { bl: true },
},
{
value: 'WESTBOUND',
colspan: 5,
style: { bl: true },
},
{
value: null,
rowspan: 2,
style: { bl: true },
},
{
value: null,
colspan: 5,
},
],
[
...dirs,
...dirs,
...dirs,
...dirs,
{ value: 'N' },
{ value: 'E' },
{ value: 'S' },
{ value: 'W' },
{ value: 'Total' },
],
];
}
static getTableSectionLayout(sectionData, timeRange, title, shade) {
const timeRangeHuman = TimeFormatters.formatRangeTimeOfDay(timeRange);
const dirs = ['N', 'E', 'S', 'W'];
const turns = ['L', 'T', 'R', 'TOTAL'];
return [
[
{
value: timeRangeHuman,
header: true,
style: { br: true, shade },
},
{ value: 'CAR', header: true, style: { shade } },
...Array.prototype.concat.apply([], dirs.map(dir => [
{
value: sectionData[`${dir}_CARS_EXITS`],
style: { bl: true, shade },
},
...turns.map(turn => ({
value: sectionData[`${dir}_CARS_${turn}`],
style: { shade },
})),
])),
{ value: 'PED', header: true, style: { bl: true, br: true, shade } },
...dirs.map(dir => ({
value: sectionData[`${dir}_PEDS`],
style: { shade },
})),
{ value: sectionData.PEDS_TOTAL, style: { bl: true, shade } },
],
[
{
value: title,
header: true,
rowspan: 2,
style: { br: true, shade },
},
{ value: 'TRUCK', header: true, style: { shade } },
...Array.prototype.concat.apply([], dirs.map(dir => [
{
value: sectionData[`${dir}_TRUCK_EXITS`],
style: { bl: true, shade },
},
...turns.map(turn => ({
value: sectionData[`${dir}_TRUCK_${turn}`],
style: { shade },
})),
])),
{ value: 'BIKE', header: true, style: { bl: true, br: true, shade } },
...dirs.map(dir => ({
value: sectionData[`${dir}_BIKE`],
style: { shade },
})),
{ value: sectionData.BIKE_TOTAL, style: { bl: true, shade } },
],
[
{ value: 'BUS', header: true, style: { shade } },
...Array.prototype.concat.apply([], dirs.map(dir => [
{
value: sectionData[`${dir}_BUS_EXITS`],
style: { bl: true, shade },
},
...turns.map(turn => ({
value: sectionData[`${dir}_BUS_${turn}`],
style: { shade },
})),
])),
{ value: 'OTHER', header: true, style: { bl: true, br: true, shade } },
...dirs.map(dir => ({
value: sectionData[`${dir}_OTHER`],
style: { shade },
})),
{ value: sectionData.OTHER_TOTAL, style: { bl: true, shade } },
],
[
{
value: sectionData.TOTAL,
header: true,
style: { br: true, shade },
},
{ value: 'TOTAL', header: true, style: { bt: true, shade } },
...Array.prototype.concat.apply([], dirs.map(dir => [
{
value: sectionData[`${dir}_VEHICLE_EXITS`],
style: { bt: true, bl: true, shade },
},
...turns.map(turn => ({
value: sectionData[`${dir}_VEHICLE_${turn}`],
style: { bt: true, shade },
})),
])),
{
value: sectionData.VEHICLE_TOTAL,
style: {
bl: true,
bt: true,
br: true,
bb: true,
shade,
},
},
{
value: null,
colspan: 5,
style: { shade },
},
],
[
{ value: null, colspan: 28 },
],
];
}
static getTableOptions(reportData) {
const header = ReportCountSummaryTurningMovement.getTableHeader();
const body = [
...ReportCountSummaryTurningMovement.getTableSectionLayout(
reportData.all.sum,
reportData.all.timeRange,
'TOTAL SUM',
false,
),
...ReportCountSummaryTurningMovement.getTableSectionLayout(
reportData.amPeak.sum,
reportData.amPeak.timeRange,
'AM PEAK',
true,
),
...ReportCountSummaryTurningMovement.getTableSectionLayout(
reportData.pmPeak.sum,
reportData.pmPeak.timeRange,
'PM PEAK',
false,
),
...ReportCountSummaryTurningMovement.getTableSectionLayout(
reportData.offHours.avg,
reportData.offHours.timeRange,
'OFF HOUR AVG',
true,
),
...ReportCountSummaryTurningMovement.getTableSectionLayout(
reportData.am.sum,
reportData.am.timeRange,
'2 HOUR AM',
false,
),
...ReportCountSummaryTurningMovement.getTableSectionLayout(
reportData.pm.sum,
reportData.pm.timeRange,
'2 HOUR PM',
true,
),
];
return {
tableStyle: { fontSize: '2xs' },
columnStyles: [
{ c: 0 },
{ c: 1 },
{ c: 22 },
],
header,
body,
};
}
static getCountMetadataOptions({
date,
hours,
px,
stats,
}) {
const dateStr = TimeFormatters.formatDefault(date);
const dayOfWeekStr = TimeFormatters.formatDayOfWeek(date);
const fullDateStr = `${dateStr} (${dayOfWeekStr})`;
const hoursStr = hours === null ? null : hours.description;
const pxStr = px === null ? null : px.toString();
const {
BIKE_TOTAL,
PEDS_TOTAL,
TOTAL,
VEHICLE_TOTAL,
} = stats.all.sum;
const entries = [
{ cols: 3, name: 'Date', value: fullDateStr },
{ cols: 3, name: 'Study Hours', value: hoursStr },
{ cols: 6, name: 'Traffic Signal Number', value: pxStr },
{ cols: 3, name: 'Total Volume', value: TOTAL },
{ cols: 3, name: 'Total Vehicles', value: VEHICLE_TOTAL },
{ cols: 3, name: 'Total Cyclists', value: BIKE_TOTAL },
{ cols: 3, name: 'Total Pedestrians', value: PEDS_TOTAL },
];
return { entries };
}
generateLayoutContent(count, reportData) {
const countMetadataOptions = ReportCountSummaryTurningMovement.getCountMetadataOptions(
reportData,
);
const { stats } = reportData;
const tableOptions = ReportCountSummaryTurningMovement.getTableOptions(stats);
return [
{ type: ReportBlock.METADATA, options: countMetadataOptions },
{ type: ReportBlock.TABLE, options: tableOptions },
];
}
}
export default ReportCountSummaryTurningMovement;
| 27.172147 | 107 | 0.54926 |
022dbb25654e3d671707d0ea30fc0725ac325c91 | 1,692 | js | JavaScript | node_modules/combine-mq/Gruntfile.js | Cris-ti-na/modulo-1-evaluacion-final-Cris-ti-na | caaf3a51bc8eb1d26ec82f114aaca344de13d5dc | [
"MIT"
] | 26 | 2015-01-14T09:00:34.000Z | 2019-10-23T10:37:04.000Z | node_modules/combine-mq/Gruntfile.js | Cris-ti-na/modulo-1-evaluacion-final-Cris-ti-na | caaf3a51bc8eb1d26ec82f114aaca344de13d5dc | [
"MIT"
] | 16 | 2015-02-11T15:15:23.000Z | 2017-11-28T10:31:46.000Z | node_modules/combine-mq/Gruntfile.js | Cris-ti-na/modulo-1-evaluacion-final-Cris-ti-na | caaf3a51bc8eb1d26ec82f114aaca344de13d5dc | [
"MIT"
] | 16 | 2015-03-05T15:42:24.000Z | 2021-05-18T23:18:23.000Z | 'use strict';
module.exports = function (grunt) {
// Show elapsed time at the end
require('time-grunt')(grunt);
// Load all grunt tasks
require('load-grunt-tasks')(grunt);
// Project configuration
grunt.initConfig({
config: {
docs: 'docs',
gruntfile: 'Gruntfile.js',
temp: 'tmp'
},
// Watchers
watch: {
gruntfile: {
files: '<%= jshint.gruntfile.src %>',
tasks: [
'jshint:gruntfile'
]
},
lib: {
files: '<%= jshint.lib.src %>',
tasks: [
'jshint:lib'
]
},
test: {
files: '<%= jshint.test.src %>',
tasks: [
'jshint:test',
'nodeunit'
]
}
},
// Housekeeping
clean: {
docs: [
'<%= config.docs %>/'
]
},
// Tests
nodeunit: {
files: [
'test/**/*_test.js'
]
},
// Scripts
jshint: {
options: {
jshintrc: true,
reporter: require('jshint-stylish')
},
gruntfile: {
src: '<%= config.gruntfile %>'
},
lib: {
src: [
'lib/**/*.js'
]
},
test: {
src: [
'test/**/*.js'
]
}
},
jsdoc: {
all: {
src: [
'lib/**/*.js'
],
options: {
destination: 'docs',
template: 'node_modules/grunt-jsdoc/node_modules/ink-docstrap/template',
configure: '.jsdoc.conf.json'
}
}
}
});
// Default task
grunt.registerTask('default', [
'dev'
]);
// Dev task
grunt.registerTask('dev', [
'jshint',
'nodeunit',
'watch'
]);
// Dev task
grunt.registerTask('docs', [
'clean:docs',
'jsdoc'
]);
// Test task
grunt.registerTask('test', [
'jshint',
'nodeunit'
]);
};
| 14.461538 | 78 | 0.474586 |
022e06a768c3450584718891c07f51f0967769ac | 625 | js | JavaScript | javascript/code-challenges/linked-list/linkedList/llZip.js | simon-panek/data-structures-and-algorithms | 08f1dc659c37a2535cf39e67f293e37407a3f8f1 | [
"MIT"
] | null | null | null | javascript/code-challenges/linked-list/linkedList/llZip.js | simon-panek/data-structures-and-algorithms | 08f1dc659c37a2535cf39e67f293e37407a3f8f1 | [
"MIT"
] | 15 | 2020-12-08T00:26:53.000Z | 2021-01-16T05:02:41.000Z | javascript/code-challenges/linked-list/linkedList/llZip.js | simon-panek/data-structures-and-algorithms | 08f1dc659c37a2535cf39e67f293e37407a3f8f1 | [
"MIT"
] | null | null | null | 'use strict';
function llZip(givenListOne, givenListTwo) {
if(givenListOne.head === null && givenListTwo.head !== null) { return givenListTwo };
if(givenListOne.head !== null && givenListTwo.head === null) { return givenListOne };
if(givenListOne.head === null && givenListTwo.head === null) { return false };
let before = givenListOne.head;
let current = givenListTwo.head;
let after = before.next;
while (current !== null) {
before.next = current;
before = current;
current = after;
after = before.next;
}
givenListTwo.head = null;
return givenListOne;
}
module.exports = llZip; | 25 | 87 | 0.6672 |
022e37f1ac961e93aabb8181bb04c1228a0df542 | 339 | js | JavaScript | src/theme.js | CamiloEMP/friki-marvel | 07b286a375cf45a5d404cd7e9313900996d114f3 | [
"MIT"
] | null | null | null | src/theme.js | CamiloEMP/friki-marvel | 07b286a375cf45a5d404cd7e9313900996d114f3 | [
"MIT"
] | null | null | null | src/theme.js | CamiloEMP/friki-marvel | 07b286a375cf45a5d404cd7e9313900996d114f3 | [
"MIT"
] | null | null | null | import { extendTheme } from '@chakra-ui/react'
export default extendTheme({
config: {
initialColorMode: 'light'
},
colors: {
brand: {
100: '#e23636'
},
primary: '#e23636'
},
fonts: {
heading: 'Raleway',
body: 'Raleway'
},
fontWeights: {
normal: 400,
semibold: 700,
bold: 900
}
})
| 14.73913 | 46 | 0.548673 |
022e6d6d5cff4f3d4f7d31dfe634bff6a26e7518 | 2,376 | js | JavaScript | lib/publish/index.js | travisjeffery/socketstream | b6d39884e9fa8e9d65e443638f044fe74056df45 | [
"MIT"
] | 1 | 2015-04-19T14:13:09.000Z | 2015-04-19T14:13:09.000Z | lib/publish/index.js | travisjeffery/socketstream | b6d39884e9fa8e9d65e443638f044fe74056df45 | [
"MIT"
] | null | null | null | lib/publish/index.js | travisjeffery/socketstream | b6d39884e9fa8e9d65e443638f044fe74056df45 | [
"MIT"
] | null | null | null | var isInternal,
__slice = Array.prototype.slice;
exports.init = function() {
return {
transport: require('./transport').init(),
api: function(transport) {
var methods;
methods = {
all: function() {
var event, obj, params;
event = arguments[0], params = 2 <= arguments.length ? __slice.call(arguments, 1) : [];
obj = {
t: 'all',
e: event,
p: params
};
transport.send(obj);
if (!isInternal(event)) {
return console.log('➙'.cyan, 'event:all'.grey, event);
}
},
socketId: function() {
var event, obj, params, socketId;
socketId = arguments[0], event = arguments[1], params = 3 <= arguments.length ? __slice.call(arguments, 2) : [];
obj = {
t: 'socketId',
socketId: socketId,
e: event,
p: params
};
transport.send(obj);
return console.log('➙'.cyan, ("event:socketId:" + socketId).grey, event);
},
users: function() {
var event, obj, params, users;
users = arguments[0], event = arguments[1], params = 3 <= arguments.length ? __slice.call(arguments, 2) : [];
users = users instanceof Array && users || [users];
obj = {
t: 'user',
users: users,
e: event,
p: params
};
transport.send(obj);
return console.log('➙'.cyan, ("event:users:[" + (users.join(',')) + "]").grey, event);
},
channels: function() {
var channels, event, obj, params;
channels = arguments[0], event = arguments[1], params = 3 <= arguments.length ? __slice.call(arguments, 2) : [];
channels = channels instanceof Array && channels || [channels];
obj = {
t: 'channel',
channels: channels,
e: event,
p: params
};
transport.send(obj);
return console.log('➙'.cyan, ("event:channels:[" + (channels.join(',')) + "]").grey, event);
}
};
methods.broadcast = methods.all;
methods.channel = methods.channels;
methods.user = methods.users;
return methods;
}
};
};
isInternal = function(event) {
return event.substr(0, 5) === '__ss:';
};
| 32.547945 | 122 | 0.496212 |
022ea725f60b05b102a0486d5463ad63851042c0 | 2,593 | js | JavaScript | lib/diff.js | MoonWang/DOM-diff | 6914f22d59ed01df87e965fc545ea01d5f4b11cf | [
"MIT"
] | null | null | null | lib/diff.js | MoonWang/DOM-diff | 6914f22d59ed01df87e965fc545ea01d5f4b11cf | [
"MIT"
] | null | null | null | lib/diff.js | MoonWang/DOM-diff | 6914f22d59ed01df87e965fc545ea01d5f4b11cf | [
"MIT"
] | null | null | null | let utils = require('./utils');
let config = require('./config')
// 序号就是节点在旧节点树中的索引(位置),按照 README.md 中图示,先序遍历
let keyIndex = -1;
// 记录差异的对象 { 序号: [{差异1}, {差异2}] }
let patches = {};
/**
* 计算并返回两个树的差异描述对象
* @param {Object} oldTree 旧的 Virtual DOM 树
* @param {Object} newTree 新的 Virtual DOM 树
*/
function diff(oldTree, newTree) {
// 提取方法用于递归遍历对比
walk(oldTree, newTree);
return patches;
}
/**
* 获取两个节点之间的差异变化描述
* @param {*} oldNode 旧节点
* @param {*} newNode 新节点
*/
function walk(oldNode, newNode) {
++keyIndex; // 每次进入遍历都先自加,保证 index 不出错
// 下面的情况是互斥的,所以没必要用数组存储,直接按 index 保存差异 obj
if (!utils.isString(oldNode) && !newNode) { // 不存在新节点,表示旧节点被删除
// 删除节点描述 type - REMOVE
patches[keyIndex] = {
type: config.REMOVE,
keyIndex
};
//如果说老节点的新的节点都是文本节点的话
} else if (utils.isString(oldNode) && utils.isString(newNode)) { // 都是文本节点
if (oldNode != newNode) { // 新旧文本节点的不相同,表示文本节点改变
// 文本节点改变 type - TEXT
patches[keyIndex] = {
type: config.TEXT,
content: newNode
};
}
} else if (oldNode.tagName == newNode.tagName) { // 节点类型相同
// 比较新旧元素的属性对象
let attrsPatch = diffAttr(oldNode.attributes, newNode.attributes);
// 如果新旧元素有差异的属性的话
if (Object.keys(attrsPatch).length > 0) {
// 属性节点改变 type - ATTRS
patches[keyIndex] = {
type: config.ATTRS,
attrs: attrsPatch
};
}
// 继续深递归遍历子节点
diffChildren(oldNode.children, newNode.children);
} else { // 节点不是文本节点,且节点类型也不相同,则判定为节点被替换了
// 节点改变 type - REPLACE
patches[keyIndex] = {
type: config.REPLACE,
node: newNode
};
}
}
/**
* 获取同一个节点新旧属性的差异描述对象
* @param {Obejct} oldAttrs 节点的旧属性对象
* @param {Obejct} newAttrs 节点的新属性对象
*/
function diffAttr(oldAttrs, newAttrs) {
let attrsPatch = {};
for (let attr in oldAttrs) {
//如果说老的属性和新属性不一样。一种是值改变 ,一种是属性被删除 了
if (oldAttrs[attr] != newAttrs[attr]) {
attrsPatch[attr] = newAttrs[attr];
}
}
for (let attr in newAttrs) {
if (!oldAttrs.hasOwnProperty(attr)) {
attrsPatch[attr] = newAttrs[attr];
}
}
return attrsPatch;
}
/**
* 遍历子节点数组进行差异对比
* @param {Array} oldChildren
* @param {Array} newChildren
*/
function diffChildren(oldChildren, newChildren) {
oldChildren.forEach((child, idx) => {
// 同位置对比
walk(child, newChildren[idx]);
});
}
module.exports = diff;
| 26.459184 | 78 | 0.569996 |
023085c47a60351873afce6ebf5035ea00e84926 | 900 | js | JavaScript | src/components/RestauranteItem/index.js | ivandacruz/app-ifood-clone | 2aefd7fb7de3c6ed8db188e480846061f88d20ff | [
"MIT"
] | null | null | null | src/components/RestauranteItem/index.js | ivandacruz/app-ifood-clone | 2aefd7fb7de3c6ed8db188e480846061f88d20ff | [
"MIT"
] | null | null | null | src/components/RestauranteItem/index.js | ivandacruz/app-ifood-clone | 2aefd7fb7de3c6ed8db188e480846061f88d20ff | [
"MIT"
] | null | null | null | import React from 'react';
import { Text } from 'react-native';
import { AntDesign } from '@expo/vector-icons';
import { RestauranteView, RestauranteFoto, RestauranteInfo } from './style';
const RestauranteItem = ({ foto, nome, key, nota, categoria, distancia, valorFrete, tempoEntrega }) => {
return (
<RestauranteView key={key}>
<RestauranteFoto source={{
uri: foto.trim(),
width: 50,
height: 50,
resizeMode: 'cover'
}} />
<RestauranteInfo>
<Text>{nome}</Text>
<Text><AntDesign name="star" size={12} color="#F9A825" />{nota} - {categoria} - {distancia}</Text>
<Text>{tempoEntrega} * R$ {valorFrete}</Text>
<Text></Text>
</RestauranteInfo>
</RestauranteView>
);
}
export default RestauranteItem; | 33.333333 | 114 | 0.545556 |
0231022694f6a41b759616f9e954c28697d9d038 | 579 | js | JavaScript | src/server/middleware/api/getDexData.js | wavesplatform/wavesplatform.com | 8a3a380415cbb9e873118aea4f4d6ceb1eb08d13 | [
"MIT"
] | 102 | 2017-11-10T03:02:17.000Z | 2019-12-13T09:10:14.000Z | src/server/middleware/api/getDexData.js | KardanovIR/wavesplatform.com | 8a3a380415cbb9e873118aea4f4d6ceb1eb08d13 | [
"MIT"
] | 5 | 2018-02-13T13:04:49.000Z | 2019-07-23T01:42:26.000Z | src/server/middleware/api/getDexData.js | wavesplatform/wavesplatform.com | 8a3a380415cbb9e873118aea4f4d6ceb1eb08d13 | [
"MIT"
] | 28 | 2017-08-13T06:22:10.000Z | 2020-01-14T08:27:00.000Z | import fetchJson from 'src/server/utils/fetchJson';
import checkEnvVariable from 'src/server/utils/checkEnvVariable';
import { withTimer } from 'src/server/middleware/withTimer';
checkEnvVariable('INFO_API');
const getDexData = async (ctx, next) => {
await fetchJson(`${process.env.INFO_API}/general`)
.then(
res =>
(ctx.state.initialState = { ...ctx.state.initialState, dexData: res })
)
.catch(() => ctx.throw(500, 'Unable to fetch DEX general data'));
await next();
};
export default withTimer({ target: 'dex_data', middleware: getDexData });
| 32.166667 | 78 | 0.690846 |
02310d9c791e328d84c4fd490ad6723014badb05 | 60 | js | JavaScript | src/obj/workspace/Dataset.js | kankanol1/geshu | 75890922bd7d44d724b30f2ac990b50144e618d8 | [
"MIT"
] | null | null | null | src/obj/workspace/Dataset.js | kankanol1/geshu | 75890922bd7d44d724b30f2ac990b50144e618d8 | [
"MIT"
] | null | null | null | src/obj/workspace/Dataset.js | kankanol1/geshu | 75890922bd7d44d724b30f2ac990b50144e618d8 | [
"MIT"
] | null | null | null | export default class Dataset {
x;
y;
id;
name;
}
| 6 | 30 | 0.55 |
02311b9db391f7da961cb6f989207fa3f8de9d19 | 293 | js | JavaScript | source/js/ng-modules/runes/components/page/directive.js | summoners-university/build-sandbox | 0f3fb222b7e9d09964390382ff5fee34602411b9 | [
"MIT"
] | null | null | null | source/js/ng-modules/runes/components/page/directive.js | summoners-university/build-sandbox | 0f3fb222b7e9d09964390382ff5fee34602411b9 | [
"MIT"
] | null | null | null | source/js/ng-modules/runes/components/page/directive.js | summoners-university/build-sandbox | 0f3fb222b7e9d09964390382ff5fee34602411b9 | [
"MIT"
] | null | null | null | import controller from './controller';
export default function() {
return {
restrict: 'E',
replace: true,
scope: {},
templateUrl: 'runes/components/page/template.html',
controller,
bindToController: {},
controllerAs: 'ctrl'
}
}; | 22.538462 | 59 | 0.566553 |
0231ad7bb0acae14b13e8d43a3272c28e4c390aa | 2,035 | js | JavaScript | experiment-reactjs-app/client/src/pages/survey/mid1.js | wesslen/myopic-loss-aversion-vis-2021 | 6ae6c3ea62300aa82d3974ca57e7609c6806d5a9 | [
"MIT"
] | null | null | null | experiment-reactjs-app/client/src/pages/survey/mid1.js | wesslen/myopic-loss-aversion-vis-2021 | 6ae6c3ea62300aa82d3974ca57e7609c6806d5a9 | [
"MIT"
] | null | null | null | experiment-reactjs-app/client/src/pages/survey/mid1.js | wesslen/myopic-loss-aversion-vis-2021 | 6ae6c3ea62300aa82d3974ca57e7609c6806d5a9 | [
"MIT"
] | null | null | null | import React, { useEffect } from "react";
import { useHistory } from "react-router-dom";
import axios from "axios";
import * as Survey from "survey-react";
import "survey-react/survey.css";
import * as showdown from "showdown";
Survey.StylesManager.applyTheme("darkblue");
const MidSurvey1Page = (props) => {
const history = useHistory();
const json = {
questions: [
{
type: "comment",
name: "Mid1",
title:
"How did you use the charts to complete the task?" +
" Please do your best to describe what sorts of visual properties you looked for and how you used them.",
isRequired: true,
},
],
};
const onComplete = (survey, options) => {
//Write survey results into database
console.log("Survey results: " + JSON.stringify(survey.data));
axios.post("/api/mid1", survey.data).then((response) => {
console.log(response);
history.push("/InstructionsTask2");
});
};
// console.log(props.setChoice);
// useEffect(() => {
// async function fetchData() {
// const result = await axios("/study/getData");
// // console.log(result.data);
// console.log(result.data);
// }
// fetchData();
// }, []);
const model = new Survey.Model(json);
model.showCompletedPage = false;
//Create showdown markdown converter
var converter = new showdown.Converter();
model.onTextMarkdown.add(function (survey, options) {
//convert the markdown text to html
var str = converter.makeHtml(options.text);
//remove root paragraphs <p></p>
str = str.substring(3);
str = str.substring(0, str.length - 4);
//set html
options.html = str;
});
return (
<div
style={{
width: "100%",
height: "100%",
margin: "0 auto",
overflow: "auto",
paddingTop: "30px",
paddingBottom: "30px",
}}
>
<Survey.Survey model={model} onComplete={onComplete} />
</div>
);
};
export default MidSurvey1Page;
| 26.776316 | 115 | 0.597052 |
0233038afd77aa20962ad55a6cd9a2cc3a2e773c | 5,134 | js | JavaScript | client/shareMember/searchList/index.js | nick6303/Rocket.Chat.nick | f98ec21b22204aeef8e015f1b8e99263ca09906a | [
"MIT"
] | null | null | null | client/shareMember/searchList/index.js | nick6303/Rocket.Chat.nick | f98ec21b22204aeef8e015f1b8e99263ca09906a | [
"MIT"
] | null | null | null | client/shareMember/searchList/index.js | nick6303/Rocket.Chat.nick | f98ec21b22204aeef8e015f1b8e99263ca09906a | [
"MIT"
] | null | null | null | // 210413_nick_shareMember 分享聯絡人資訊功能
import React, { useState, useMemo, useEffect, useRef } from 'react';
import { Meteor } from 'meteor/meteor';
import { Sidebar, TextInput, Box, Icon } from '@rocket.chat/fuselage';
import { useMutableCallback, useDebouncedValue, useStableArray, useResizeObserver, useAutoFocus, useUniqueId } from '@rocket.chat/fuselage-hooks';
import memoize from 'memoize-one';
import { useTranslation } from '../../contexts/TranslationContext';
import { usePreventDefault } from '../../sidebar/hooks/usePreventDefault';
import { useSetting } from '../../contexts/SettingsContext';
import { useUserPreference, useUserSubscriptions } from '../../contexts/UserContext';
import { itemSizeMap } from '../../sidebar/RoomList';
import { useTemplateByViewMode } from '../../sidebar/hooks/useTemplateByViewMode';
import { useAvatarTemplate } from '../../sidebar/hooks/useAvatarTemplate';
import shareMember from './shareMember'
import { getUserAvatarURL } from '../../../app/utils/lib/getUserAvatarURL';
import './searchList.css'
const createItemData = memoize((items, t, SideBarItemTemplate, AvatarTemplate, useRealName, extended, sidebarViewMode) => ({
items,
t,
SideBarItemTemplate,
AvatarTemplate,
useRealName,
extended,
sidebarViewMode,
}));
const shortcut = (() => {
if (!Meteor.Device.isDesktop()) {
return '';
}
if (window.navigator.platform.toLowerCase().includes('mac')) {
return '(\u2318+K)';
}
return '(\u2303+K)';
})();
const options = {
sort: {
lm: -1,
name: 1,
},
};
const useSearchItems = (filterText) => {
const expression = /(@|#)?(.*)/i;
const teste = filterText.match(expression);
const [, type, name] = teste;
const query = useMemo(() => {
const filterRegex = new RegExp(RegExp.escape(name), 'i');
return {
$or: [
{ name: filterRegex },
{ fname: filterRegex },
],
...type && {
t: type === '@' ? 'd' : { $ne: 'd' },
},
};
}, [name, type]);
const localRooms = useUserSubscriptions(query, options);
const usernamesFromClient = useStableArray([...localRooms?.map(({ t, name }) => (t === 'd' ? name : null))].filter(Boolean));
return useMemo(() => {
const resultsFromServer = [];
const filterUsersUnique = ({ _id }, index, arr) => index === arr.findIndex((user) => _id === user._id);
const roomFilter = (room) => !localRooms.find((item) => (room.t === 'd' && room.uids.length > 1 && room.uids.includes(item._id)) || [item.rid, item._id].includes(room._id));
const usersfilter = (user) => !localRooms.find((room) => room.t !== 'd' || (room.uids.length === 2 && room.uids.includes(user._id)));
const userMap = (user) => ({
_id: user._id,
t: 'd',
name: user.username,
fname: user.name,
avatarETag: user.avatarETag,
});
const exact = resultsFromServer.filter((item) => [item.usernamame, item.name, item.fname].includes(name));
return { data: Array.from(new Set([...localRooms])), status };
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [localRooms, name]);
};
const useInput = (initial) => {
const [value, setValue] = useState(initial);
const onChange = useMutableCallback((e) => {
setValue(e.currentTarget.value);
});
return { value, onChange, setValue };
};
const SearchList = React.forwardRef(function SearchList({ params }, ref) {
const listId = useUniqueId();
const t = useTranslation();
const { setValue: setFilterValue, ...filter } = useInput('');
const autofocus = useAutoFocus();
const listRef = useRef();
const selectedElement = useRef();
const itemIndexRef = useRef(0);
const sidebarViewMode = useUserPreference('sidebarViewMode');
const showRealName = useSetting('UI_Use_Real_Name');
const sideBarItemTemplate = useTemplateByViewMode();
const avatarTemplate = useAvatarTemplate();
const itemSize = itemSizeMap(sidebarViewMode);
const extended = sidebarViewMode === 'extended';
const filterText = useDebouncedValue(filter.value, 100);
const placeholder = [t('Search'), shortcut].filter(Boolean).join(' ');
const { data: items, status } = useSearchItems(filterText);
const itemData = createItemData(items, t, sideBarItemTemplate, avatarTemplate, showRealName, extended, sidebarViewMode);
const { ref: boxRef, contentBoxSize: { blockSize = 750 } = {} } = useResizeObserver({ debounceDelay: 100 });
usePreventDefault(boxRef);
return <div id="shareMember">
<Box ref={ref} position='relative'>
<Sidebar role='search' is='form' w="100%" className="searchBox">
<svg>
<use href="#icon-at" />
</svg>
<TextInput aria-owns={listId} data-qa='sidebar-search-input' ref={autofocus} {...filter} placeholder={placeholder}/>
</Sidebar>
<ul id="memberList">
{items.map(item=>{
if(params.fromSideBar || ( item.t === 'd' && item.uids.length === 2 )){
return (
<li key={item.rid}>
<button className="sendMemberMsg" onClick={()=>{shareMember(params, item)}}>
<figure className="avatar">
<img src={getUserAvatarURL(item.name)}/>
</figure>
@{item.fname??item.name}
</button>
</li>
)
}
})}
</ul>
</Box>
</div>;
});
export default SearchList;
| 31.691358 | 175 | 0.66342 |
023327a47321dedeaf895ab8c5d2733f80a5e01c | 3,205 | js | JavaScript | source/Trees.js | georgewaraw/sunflowerain | 1243a75511ebc4740787cabe3cb11e5d4f4d93f8 | [
"MIT"
] | 1 | 2021-05-14T16:52:18.000Z | 2021-05-14T16:52:18.000Z | source/Trees.js | georgewaraw/sunflowerain | 1243a75511ebc4740787cabe3cb11e5d4f4d93f8 | [
"MIT"
] | null | null | null | source/Trees.js | georgewaraw/sunflowerain | 1243a75511ebc4740787cabe3cb11e5d4f4d93f8 | [
"MIT"
] | null | null | null | import {
Group,
Geometry,
PlaneGeometry,
EdgesGeometry,
NearestFilter,
MeshPhongMaterial,
DoubleSide,
MeshBasicMaterial,
InstancedMesh,
Matrix4
} from "three";
import { Utility } from "Utility";
import { Shader } from "Shader";
import { Game } from "Game";
const params = Object.freeze({
TYPES: 4, // JPGs: tree_0, tree_1, tree_2, tree_3
COUNT: 1600, // "Math.sqrt( COUNT )" and "COUNT / TYPES" must be valid ints
SPACE: 20 // between trees; "SPACE / 4" must be a valid int
});
const Trees = new Group();
const geometries = ( () => {
const geometry = new Geometry();
const plane = new PlaneGeometry( 1.5, 60 );
geometry.merge( plane );
geometry.merge( plane.rotateY( 90 * Math.PI / 180 ) );
return {
inner: geometry,
outer: new EdgesGeometry( geometry )
};
})();
const materials = ( () => {
const textures = Utility.Times( params.TYPES, ( _, i ) => {
const texture = Utility.Texture( `tree_${ i }` );
texture.magFilter = NearestFilter;
texture.minFilter = NearestFilter;
return texture;
});
return {
inners: Utility.Times( params.TYPES, ( _, i ) => Shader.Set(
new MeshPhongMaterial({
side: DoubleSide,
transparent: true,
opacity: 0.9,
map: textures[ i ]
}),
{
u_Time: 0,
u_Speed: ( i % 2 === 0 )
? 1
: 0.6,
u_Morph: ( i === 1 || i === 3 )
? 2
: 1,
u_Distort: ( i === 2 || i === 3 )
? 2
: 1
},
`TREES_INNER_${ i }`
)),
outer: Shader.Set(
new MeshBasicMaterial({
side: DoubleSide,
transparent: true,
opacity: 0.2,
color: Game.Colors[ 0 ]
}),
{
u_Time: 0,
u_Speed: 0.8,
u_Morph: 2,
u_Distort: 2
},
"TREES_OUTER"
)
};
})();
Trees.add( ...( () => {
const meshes = {
inners: Utility.Times( params.TYPES, ( _, i ) => {
const mesh = new InstancedMesh( geometries.inner, materials.inners[ i ], params.COUNT / params.TYPES );
mesh.castShadow = true;
return mesh;
}),
outer: ( () => {
const mesh = new InstancedMesh( geometries.outer, materials.outer, params.COUNT / params.TYPES );
mesh.castShadow = true;
return mesh;
})()
};
const positions = Utility.Times( Math.sqrt( params.COUNT ), ( _, x ) => Utility.Times( Math.sqrt( params.COUNT ), ( _, z ) => { return { x, z }; } ) ).flat();
const variation = () => Utility.Random( 2 )
? params.SPACE / 4
: -params.SPACE / 4;
const matrix = new Matrix4();
Utility.Times( params.COUNT / params.TYPES, ( _, i ) => Utility.Times( params.TYPES, ( _, j ) => {
const index = Utility.Random( positions.length );
const position = positions[ index ];
const x = position.x * params.SPACE + variation() - Math.sqrt( params.COUNT ) * params.SPACE / 2;
const z = position.z * params.SPACE + variation() - Math.sqrt( params.COUNT ) * params.SPACE / 2;
meshes.inners[ j ].setMatrixAt( i, matrix.makeTranslation( x, 5, z ) );
if( !j ) meshes.outer.setMatrixAt( i, matrix.makeTranslation( x, 5, z ) );
positions.splice( index, 1 );
}));
return [
...meshes.inners,
meshes.outer
];
})() ); // TREES_INNER_0, TREES_INNER_1, TREES_INNER_2, TREES_INNER_3, TREES_OUTER
Game.Scene.add( Trees );
export { Trees };
| 23.057554 | 159 | 0.600312 |
0233591f0e0018bd8d02762b13073bb2bf6c1d6f | 31,618 | js | JavaScript | dist/13.5dad3d6aa566c7b2f18e.js | tharuash/mymgr-c | af61059abf04dcdfd5505721c510b4c09e8dd726 | [
"MIT"
] | null | null | null | dist/13.5dad3d6aa566c7b2f18e.js | tharuash/mymgr-c | af61059abf04dcdfd5505721c510b4c09e8dd726 | [
"MIT"
] | 8 | 2021-03-10T20:55:45.000Z | 2022-03-02T07:11:20.000Z | dist/13.5dad3d6aa566c7b2f18e.js | tharuash/mymgr-c | af61059abf04dcdfd5505721c510b4c09e8dd726 | [
"MIT"
] | null | null | null | (window.webpackJsonp=window.webpackJsonp||[]).push([[13],{sDfA:function(l,n,u){"use strict";u.r(n);var t=u("CcnG"),e=function(){return function(){}}(),o=u("pMnS"),a=u("gIcY"),i=u("Ip0R"),s=u("GLED"),r=function(){return function(){}}(),c=u("PSD3"),b=u.n(c),d=function(){function l(l,n,u,t){this.route=l,this.router=n,this.employeeService=u,this.transactionService=t,this.employeeNames=[],this.employee=new s.a,this.lastkeydown=0,this.transaction=new r}return l.prototype.ngOnInit=function(){var l=this;this.route.queryParams.subscribe((function(n){l.employeeId=+n.id||0})),0===this.employeeId?this.employeeService.getEmployees().subscribe((function(n){l.employeeData=n,console.log(l.employeeData)}),(function(l){console.log(l)})):this.employeeService.getEmployee(this.employeeId).subscribe((function(n){l.employeeName=n.name,console.log(l.employeeName)}),(function(l){console.log(l)}))},l.prototype.getEmployees=function(l){var n=document.getElementById("employeeName").value;console.log(n),n.length>0&&l.timeStamp-this.lastkeydown>200&&(this.employeeNames=this.searchFromArray(this.employeeData,n))},l.prototype.searchFromArray=function(l,n){for(var u=[],t=0;t<l.length;t++)l[t].name.match(n)&&u.push(l[t].name);return u},l.prototype.register=function(){var l=this;0===this.employeeId?(this.employeeId=this.employeeData.find((function(n){return n.name==l.employeeName})).id,this.transactionService.addTransaction(this.transaction,this.employeeId).subscribe((function(n){n.id?(b.a.fire("Done...","Transaction Addedd successfull.","success"),l.router.navigate(["/employee/transaction/view"])):b.a.fire("Ooops...","An unknown error occured. Please Retry","error")}),(function(l){b.a.fire("Ooops...","An unknown error occured. Please Retry","error")}))):this.transactionService.addTransaction(this.transaction,this.employeeId).subscribe((function(n){n.id?(b.a.fire("Done...","Transaction Addedd successfull.","success"),l.router.navigate(["/employee/transaction/view"])):b.a.fire("Ooops...","An unknown error occured. Please Retry","error")}),(function(l){b.a.fire("Ooops...","An unknown error occured. Please Retry","error")}))},l}(),p=u("ZYCi"),g=u("pjuo"),m=u("FkVd"),v=t.tb({encapsulation:0,styles:[[""]],data:{}});function h(l){return t.Vb(0,[(l()(),t.vb(0,0,null,null,3,"option",[],null,null,null,null,null)),t.ub(1,147456,null,0,a.m,[t.k,t.C,[8,null]],{value:[0,"value"]},null),t.ub(2,147456,null,0,a.s,[t.k,t.C,[8,null]],{value:[0,"value"]},null),(l()(),t.Sb(3,null,["",""]))],(function(l,n){l(n,1,0,n.context.$implicit),l(n,2,0,n.context.$implicit)}),(function(l,n){l(n,3,0,n.context.$implicit)}))}function I(l){return t.Vb(0,[(l()(),t.vb(0,0,null,null,11,"div",[["class","form-group"]],null,null,null,null,null)),(l()(),t.vb(1,0,null,null,1,"label",[["for","name"]],null,null,null,null,null)),(l()(),t.Sb(-1,null,["Employee Name"])),(l()(),t.vb(3,0,null,null,5,"input",[["class","form-control"],["id","employeeName"],["list","employeeNames"],["placeholder","Name"],["type","text"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"keyup"],[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],(function(l,n,u){var e=!0,o=l.component;return"input"===n&&(e=!1!==t.Ib(l,4)._handleInput(u.target.value)&&e),"blur"===n&&(e=!1!==t.Ib(l,4).onTouched()&&e),"compositionstart"===n&&(e=!1!==t.Ib(l,4)._compositionStart()&&e),"compositionend"===n&&(e=!1!==t.Ib(l,4)._compositionEnd(u.target.value)&&e),"keyup"===n&&(e=!1!==o.getEmployees(u)&&e),"ngModelChange"===n&&(e=!1!==(o.employeeName=u)&&e),e}),null,null)),t.ub(4,16384,null,0,a.d,[t.C,t.k,[2,a.a]],null,null),t.Nb(1024,null,a.g,(function(l){return[l]}),[a.d]),t.ub(6,671744,null,0,a.l,[[8,null],[8,null],[8,null],[6,a.g]],{model:[0,"model"]},{update:"ngModelChange"}),t.Nb(2048,null,a.h,null,[a.l]),t.ub(8,16384,null,0,a.i,[[4,a.h]],null,null),(l()(),t.vb(9,0,null,null,2,"datalist",[["id","employeeNames"]],null,null,null,null,null)),(l()(),t.fb(16777216,null,null,1,null,h)),t.ub(11,278528,null,0,i.m,[t.N,t.K,t.r],{ngForOf:[0,"ngForOf"]},null)],(function(l,n){var u=n.component;l(n,6,0,u.employeeName),l(n,11,0,u.employeeNames)}),(function(l,n){l(n,3,0,t.Ib(n,8).ngClassUntouched,t.Ib(n,8).ngClassTouched,t.Ib(n,8).ngClassPristine,t.Ib(n,8).ngClassDirty,t.Ib(n,8).ngClassValid,t.Ib(n,8).ngClassInvalid,t.Ib(n,8).ngClassPending)}))}function f(l){return t.Vb(0,[(l()(),t.vb(0,0,null,null,8,"div",[["class","form-group"]],null,null,null,null,null)),(l()(),t.vb(1,0,null,null,1,"label",[["for","name"]],null,null,null,null,null)),(l()(),t.Sb(-1,null,["Employee Name"])),(l()(),t.vb(3,0,null,null,5,"input",[["class","form-control"],["id","name"],["placeholder","Name"],["type","text"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],(function(l,n,u){var e=!0,o=l.component;return"input"===n&&(e=!1!==t.Ib(l,4)._handleInput(u.target.value)&&e),"blur"===n&&(e=!1!==t.Ib(l,4).onTouched()&&e),"compositionstart"===n&&(e=!1!==t.Ib(l,4)._compositionStart()&&e),"compositionend"===n&&(e=!1!==t.Ib(l,4)._compositionEnd(u.target.value)&&e),"ngModelChange"===n&&(e=!1!==(o.employeeName=u)&&e),e}),null,null)),t.ub(4,16384,null,0,a.d,[t.C,t.k,[2,a.a]],null,null),t.Nb(1024,null,a.g,(function(l){return[l]}),[a.d]),t.ub(6,671744,null,0,a.l,[[8,null],[8,null],[8,null],[6,a.g]],{model:[0,"model"]},{update:"ngModelChange"}),t.Nb(2048,null,a.h,null,[a.l]),t.ub(8,16384,null,0,a.i,[[4,a.h]],null,null)],(function(l,n){l(n,6,0,n.component.employeeName)}),(function(l,n){l(n,3,0,t.Ib(n,8).ngClassUntouched,t.Ib(n,8).ngClassTouched,t.Ib(n,8).ngClassPristine,t.Ib(n,8).ngClassDirty,t.Ib(n,8).ngClassValid,t.Ib(n,8).ngClassInvalid,t.Ib(n,8).ngClassPending)}))}function C(l){return t.Vb(0,[(l()(),t.vb(0,0,null,null,74,"div",[["class","card"]],null,null,null,null,null)),(l()(),t.vb(1,0,null,null,4,"div",[["class","card-header"]],null,null,null,null,null)),(l()(),t.vb(2,0,null,null,1,"strong",[],null,null,null,null,null)),(l()(),t.Sb(-1,null,["Transaction"])),(l()(),t.vb(4,0,null,null,1,"small",[],null,null,null,null,null)),(l()(),t.Sb(-1,null,["Form"])),(l()(),t.vb(6,0,null,null,61,"div",[["class","card-body"]],null,null,null,null,null)),(l()(),t.fb(16777216,null,null,1,null,I)),t.ub(8,16384,null,0,i.n,[t.N,t.K],{ngIf:[0,"ngIf"]},null),(l()(),t.fb(16777216,null,null,1,null,f)),t.ub(10,16384,null,0,i.n,[t.N,t.K],{ngIf:[0,"ngIf"]},null),(l()(),t.vb(11,0,null,null,20,"div",[["class","form-group"]],null,null,null,null,null)),(l()(),t.vb(12,0,null,null,1,"label",[["for","transactionType"]],null,null,null,null,null)),(l()(),t.Sb(-1,null,["Transaction Type"])),(l()(),t.vb(14,0,null,null,17,"select",[["class","form-control"],["id","transactionType"],["name","transactionType"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"change"],[null,"blur"]],(function(l,n,u){var e=!0,o=l.component;return"change"===n&&(e=!1!==t.Ib(l,15).onChange(u.target.value)&&e),"blur"===n&&(e=!1!==t.Ib(l,15).onTouched()&&e),"ngModelChange"===n&&(e=!1!==(o.transaction.transactionType=u)&&e),e}),null,null)),t.ub(15,16384,null,0,a.p,[t.C,t.k],null,null),t.Nb(1024,null,a.g,(function(l){return[l]}),[a.p]),t.ub(17,671744,[["transactionType",4]],0,a.l,[[8,null],[8,null],[8,null],[6,a.g]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),t.Nb(2048,null,a.h,null,[a.l]),t.ub(19,16384,null,0,a.i,[[4,a.h]],null,null),(l()(),t.vb(20,0,null,null,3,"option",[["value","SALARY_PAYMENT"]],null,null,null,null,null)),t.ub(21,147456,null,0,a.m,[t.k,t.C,[2,a.p]],{value:[0,"value"]},null),t.ub(22,147456,null,0,a.s,[t.k,t.C,[8,null]],{value:[0,"value"]},null),(l()(),t.Sb(-1,null,["Salary Payment"])),(l()(),t.vb(24,0,null,null,3,"option",[["value","OTHER_PAYMENT"]],null,null,null,null,null)),t.ub(25,147456,null,0,a.m,[t.k,t.C,[2,a.p]],{value:[0,"value"]},null),t.ub(26,147456,null,0,a.s,[t.k,t.C,[8,null]],{value:[0,"value"]},null),(l()(),t.Sb(-1,null,["Other Payment"])),(l()(),t.vb(28,0,null,null,3,"option",[["value","OTHER_EARNING"]],null,null,null,null,null)),t.ub(29,147456,null,0,a.m,[t.k,t.C,[2,a.p]],{value:[0,"value"]},null),t.ub(30,147456,null,0,a.s,[t.k,t.C,[8,null]],{value:[0,"value"]},null),(l()(),t.Sb(-1,null,["Other Earning"])),(l()(),t.vb(32,0,null,null,8,"div",[["class","form-group"]],null,null,null,null,null)),(l()(),t.vb(33,0,null,null,1,"label",[["for","date"]],null,null,null,null,null)),(l()(),t.Sb(-1,null,["Date"])),(l()(),t.vb(35,0,null,null,5,"input",[["class","form-control"],["id","date"],["name","transactionDate"],["placeholder","Date"],["type","date"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],(function(l,n,u){var e=!0,o=l.component;return"input"===n&&(e=!1!==t.Ib(l,36)._handleInput(u.target.value)&&e),"blur"===n&&(e=!1!==t.Ib(l,36).onTouched()&&e),"compositionstart"===n&&(e=!1!==t.Ib(l,36)._compositionStart()&&e),"compositionend"===n&&(e=!1!==t.Ib(l,36)._compositionEnd(u.target.value)&&e),"ngModelChange"===n&&(e=!1!==(o.transaction.transactionDate=u)&&e),e}),null,null)),t.ub(36,16384,null,0,a.d,[t.C,t.k,[2,a.a]],null,null),t.Nb(1024,null,a.g,(function(l){return[l]}),[a.d]),t.ub(38,671744,[["transactionDate",4]],0,a.l,[[8,null],[8,null],[8,null],[6,a.g]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),t.Nb(2048,null,a.h,null,[a.l]),t.ub(40,16384,null,0,a.i,[[4,a.h]],null,null),(l()(),t.vb(41,0,null,null,8,"div",[["class","form-group"]],null,null,null,null,null)),(l()(),t.vb(42,0,null,null,1,"label",[["for","time"]],null,null,null,null,null)),(l()(),t.Sb(-1,null,["Time"])),(l()(),t.vb(44,0,null,null,5,"input",[["class","form-control"],["id","time"],["name","transactionTime"],["placeholder","Time"],["type","time"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],(function(l,n,u){var e=!0,o=l.component;return"input"===n&&(e=!1!==t.Ib(l,45)._handleInput(u.target.value)&&e),"blur"===n&&(e=!1!==t.Ib(l,45).onTouched()&&e),"compositionstart"===n&&(e=!1!==t.Ib(l,45)._compositionStart()&&e),"compositionend"===n&&(e=!1!==t.Ib(l,45)._compositionEnd(u.target.value)&&e),"ngModelChange"===n&&(e=!1!==(o.transaction.transactionTime=u)&&e),e}),null,null)),t.ub(45,16384,null,0,a.d,[t.C,t.k,[2,a.a]],null,null),t.Nb(1024,null,a.g,(function(l){return[l]}),[a.d]),t.ub(47,671744,[["transactionTime",4]],0,a.l,[[8,null],[8,null],[8,null],[6,a.g]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),t.Nb(2048,null,a.h,null,[a.l]),t.ub(49,16384,null,0,a.i,[[4,a.h]],null,null),(l()(),t.vb(50,0,null,null,8,"div",[["class","form-group"]],null,null,null,null,null)),(l()(),t.vb(51,0,null,null,1,"label",[["for","amount"]],null,null,null,null,null)),(l()(),t.Sb(-1,null,["Amount"])),(l()(),t.vb(53,0,null,null,5,"input",[["class","form-control"],["id","amount"],["name","amount"],["placeholder","Amount"],["type","text"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],(function(l,n,u){var e=!0,o=l.component;return"input"===n&&(e=!1!==t.Ib(l,54)._handleInput(u.target.value)&&e),"blur"===n&&(e=!1!==t.Ib(l,54).onTouched()&&e),"compositionstart"===n&&(e=!1!==t.Ib(l,54)._compositionStart()&&e),"compositionend"===n&&(e=!1!==t.Ib(l,54)._compositionEnd(u.target.value)&&e),"ngModelChange"===n&&(e=!1!==(o.transaction.amount=u)&&e),e}),null,null)),t.ub(54,16384,null,0,a.d,[t.C,t.k,[2,a.a]],null,null),t.Nb(1024,null,a.g,(function(l){return[l]}),[a.d]),t.ub(56,671744,[["amount",4]],0,a.l,[[8,null],[8,null],[8,null],[6,a.g]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),t.Nb(2048,null,a.h,null,[a.l]),t.ub(58,16384,null,0,a.i,[[4,a.h]],null,null),(l()(),t.vb(59,0,null,null,8,"div",[["class","form-group"]],null,null,null,null,null)),(l()(),t.vb(60,0,null,null,1,"label",[["for","description"]],null,null,null,null,null)),(l()(),t.Sb(-1,null,["Description"])),(l()(),t.vb(62,0,null,null,5,"textarea",[["class","form-control"],["id","description"],["name","description"],["placeholder","Description"],["type","text"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],(function(l,n,u){var e=!0,o=l.component;return"input"===n&&(e=!1!==t.Ib(l,63)._handleInput(u.target.value)&&e),"blur"===n&&(e=!1!==t.Ib(l,63).onTouched()&&e),"compositionstart"===n&&(e=!1!==t.Ib(l,63)._compositionStart()&&e),"compositionend"===n&&(e=!1!==t.Ib(l,63)._compositionEnd(u.target.value)&&e),"ngModelChange"===n&&(e=!1!==(o.transaction.description=u)&&e),e}),null,null)),t.ub(63,16384,null,0,a.d,[t.C,t.k,[2,a.a]],null,null),t.Nb(1024,null,a.g,(function(l){return[l]}),[a.d]),t.ub(65,671744,[["description",4]],0,a.l,[[8,null],[8,null],[8,null],[6,a.g]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),t.Nb(2048,null,a.h,null,[a.l]),t.ub(67,16384,null,0,a.i,[[4,a.h]],null,null),(l()(),t.vb(68,0,null,null,6,"div",[["class","card-footer"]],null,null,null,null,null)),(l()(),t.vb(69,0,null,null,2,"button",[["class","btn btn-sm btn-primary"],["type","button"]],null,[[null,"click"]],(function(l,n,u){var t=!0;return"click"===n&&(t=!1!==l.component.register()&&t),t}),null,null)),(l()(),t.vb(70,0,null,null,0,"i",[["class","fa fa-dot-circle-o"]],null,null,null,null,null)),(l()(),t.Sb(-1,null,[" Register"])),(l()(),t.vb(72,0,null,null,2,"button",[["class","btn btn-sm btn-danger"],["type","reset"]],null,null,null,null,null)),(l()(),t.vb(73,0,null,null,0,"i",[["class","fa fa-ban"]],null,null,null,null,null)),(l()(),t.Sb(-1,null,["Reset"]))],(function(l,n){var u=n.component;l(n,8,0,0===u.employeeId),l(n,10,0,0!==u.employeeId),l(n,17,0,"transactionType",u.transaction.transactionType),l(n,21,0,"SALARY_PAYMENT"),l(n,22,0,"SALARY_PAYMENT"),l(n,25,0,"OTHER_PAYMENT"),l(n,26,0,"OTHER_PAYMENT"),l(n,29,0,"OTHER_EARNING"),l(n,30,0,"OTHER_EARNING"),l(n,38,0,"transactionDate",u.transaction.transactionDate),l(n,47,0,"transactionTime",u.transaction.transactionTime),l(n,56,0,"amount",u.transaction.amount),l(n,65,0,"description",u.transaction.description)}),(function(l,n){l(n,14,0,t.Ib(n,19).ngClassUntouched,t.Ib(n,19).ngClassTouched,t.Ib(n,19).ngClassPristine,t.Ib(n,19).ngClassDirty,t.Ib(n,19).ngClassValid,t.Ib(n,19).ngClassInvalid,t.Ib(n,19).ngClassPending),l(n,35,0,t.Ib(n,40).ngClassUntouched,t.Ib(n,40).ngClassTouched,t.Ib(n,40).ngClassPristine,t.Ib(n,40).ngClassDirty,t.Ib(n,40).ngClassValid,t.Ib(n,40).ngClassInvalid,t.Ib(n,40).ngClassPending),l(n,44,0,t.Ib(n,49).ngClassUntouched,t.Ib(n,49).ngClassTouched,t.Ib(n,49).ngClassPristine,t.Ib(n,49).ngClassDirty,t.Ib(n,49).ngClassValid,t.Ib(n,49).ngClassInvalid,t.Ib(n,49).ngClassPending),l(n,53,0,t.Ib(n,58).ngClassUntouched,t.Ib(n,58).ngClassTouched,t.Ib(n,58).ngClassPristine,t.Ib(n,58).ngClassDirty,t.Ib(n,58).ngClassValid,t.Ib(n,58).ngClassInvalid,t.Ib(n,58).ngClassPending),l(n,62,0,t.Ib(n,67).ngClassUntouched,t.Ib(n,67).ngClassTouched,t.Ib(n,67).ngClassPristine,t.Ib(n,67).ngClassDirty,t.Ib(n,67).ngClassValid,t.Ib(n,67).ngClassInvalid,t.Ib(n,67).ngClassPending)}))}function y(l){return t.Vb(0,[(l()(),t.vb(0,0,null,null,1,"app-add",[],null,null,null,C,v)),t.ub(1,114688,null,0,d,[p.a,p.l,g.a,m.a],null,null)],(function(l,n){l(n,1,0)}),null)}var T=t.rb("app-add",d,y,{},{},[]),S=function(){function l(l,n){this.router=l,this.transactionService=n}return l.prototype.ngOnInit=function(){var l=this;this.transactionService.getTransactions().subscribe((function(n){l.transactions=n}),(function(l){console.log(l)}))},l.prototype.edit=function(l){this.router.navigate(["employee/transaction/update",l])},l}(),N=t.tb({encapsulation:0,styles:[[""]],data:{}});function E(l){return t.Vb(0,[(l()(),t.vb(0,0,null,null,16,"tr",[],null,null,null,null,null)),(l()(),t.vb(1,0,null,null,1,"td",[],null,null,null,null,null)),(l()(),t.Sb(2,null,["",""])),(l()(),t.vb(3,0,null,null,1,"td",[],null,null,null,null,null)),(l()(),t.Sb(4,null,["",""])),(l()(),t.vb(5,0,null,null,1,"td",[],null,null,null,null,null)),(l()(),t.Sb(6,null,["",""])),(l()(),t.vb(7,0,null,null,1,"td",[],null,null,null,null,null)),(l()(),t.Sb(8,null,["",""])),(l()(),t.vb(9,0,null,null,1,"td",[],null,null,null,null,null)),(l()(),t.Sb(10,null,["",""])),(l()(),t.vb(11,0,null,null,1,"td",[],null,null,null,null,null)),(l()(),t.Sb(12,null,["",""])),(l()(),t.vb(13,0,null,null,3,"td",[],null,null,null,null,null)),(l()(),t.vb(14,0,null,null,2,"button",[["class","btn btn-sm btn-primary"],["type","button"]],null,[[null,"click"]],(function(l,n,u){var t=!0;return"click"===n&&(t=!1!==l.component.edit(l.context.$implicit.id)&&t),t}),null,null)),(l()(),t.vb(15,0,null,null,0,"i",[["class","fa fa-dot-circle-o"]],null,null,null,null,null)),(l()(),t.Sb(-1,null,[" Edit"]))],null,(function(l,n){l(n,2,0,n.context.$implicit.employee.name),l(n,4,0,n.context.$implicit.transactionDate),l(n,6,0,n.context.$implicit.transactionTime),l(n,8,0,n.context.$implicit.transactionType),l(n,10,0,n.context.$implicit.amount),l(n,12,0,n.context.$implicit.description)}))}function M(l){return t.Vb(0,[(l()(),t.vb(0,0,null,null,1,"h3",[],null,null,null,null,null)),(l()(),t.Sb(-1,null,["Employees' Transactions"])),(l()(),t.vb(2,0,null,null,21,"div",[["class","card"]],null,null,null,null,null)),(l()(),t.vb(3,0,null,null,20,"div",[["class","card-body"]],null,null,null,null,null)),(l()(),t.vb(4,0,null,null,19,"table",[["class","table table-bordered table-sm"]],null,null,null,null,null)),(l()(),t.vb(5,0,null,null,15,"thead",[],null,null,null,null,null)),(l()(),t.vb(6,0,null,null,14,"tr",[],null,null,null,null,null)),(l()(),t.vb(7,0,null,null,1,"th",[],null,null,null,null,null)),(l()(),t.Sb(-1,null,["Employee"])),(l()(),t.vb(9,0,null,null,1,"th",[],null,null,null,null,null)),(l()(),t.Sb(-1,null,["Date"])),(l()(),t.vb(11,0,null,null,1,"th",[],null,null,null,null,null)),(l()(),t.Sb(-1,null,["Time"])),(l()(),t.vb(13,0,null,null,1,"th",[],null,null,null,null,null)),(l()(),t.Sb(-1,null,["Type"])),(l()(),t.vb(15,0,null,null,1,"th",[],null,null,null,null,null)),(l()(),t.Sb(-1,null,["Amount"])),(l()(),t.vb(17,0,null,null,1,"th",[],null,null,null,null,null)),(l()(),t.Sb(-1,null,["Description"])),(l()(),t.vb(19,0,null,null,1,"th",[],null,null,null,null,null)),(l()(),t.Sb(-1,null,["Actions"])),(l()(),t.vb(21,0,null,null,2,"tbody",[],null,null,null,null,null)),(l()(),t.fb(16777216,null,null,1,null,E)),t.ub(23,278528,null,0,i.m,[t.N,t.K,t.r],{ngForOf:[0,"ngForOf"]},null)],(function(l,n){l(n,23,0,n.component.transactions)}),null)}function P(l){return t.Vb(0,[(l()(),t.vb(0,0,null,null,1,"app-view",[],null,null,null,M,N)),t.ub(1,114688,null,0,S,[p.l,m.a],null,null)],(function(l,n){l(n,1,0)}),null)}var _=t.rb("app-view",S,P,{},{},[]),A=function(){function l(l,n,u){this.route=l,this.transactionService=n,this.router=u,this.transaction=new r}return l.prototype.ngOnInit=function(){var l=this;this.transactionId=this.route.snapshot.params.id,this.transactionService.getTransaction(this.transactionId).subscribe((function(n){l.transaction=n}),(function(l){console.log(l)}))},l.prototype.updateTransaction=function(){var l=this;this.transactionService.updateTransaction(this.transaction,this.transaction.employee.id).subscribe((function(n){n.id?(b.a.fire("Done...","Transaction Update successfull.","success"),l.router.navigate(["/employee/transaction/view"])):b.a.fire("Ooops...","An unknown error occured. Please Retry","error")}),(function(l){b.a.fire("Ooops...","An unknown error occured. Please Retry","error")}))},l}(),k=t.tb({encapsulation:0,styles:[[""]],data:{}});function D(l){return t.Vb(0,[(l()(),t.vb(0,0,null,null,77,"div",[["class","card"]],null,null,null,null,null)),(l()(),t.vb(1,0,null,null,4,"div",[["class","card-header"]],null,null,null,null,null)),(l()(),t.vb(2,0,null,null,1,"strong",[],null,null,null,null,null)),(l()(),t.Sb(-1,null,["Transaction"])),(l()(),t.vb(4,0,null,null,1,"small",[],null,null,null,null,null)),(l()(),t.Sb(-1,null,["Form"])),(l()(),t.vb(6,0,null,null,64,"div",[["class","card-body"]],null,null,null,null,null)),(l()(),t.vb(7,0,null,null,6,"div",[["class","form-group"]],null,null,null,null,null)),(l()(),t.vb(8,0,null,null,2,"label",[["for","name"]],null,null,null,null,null)),(l()(),t.vb(9,0,null,null,1,"strong",[],null,null,null,null,null)),(l()(),t.Sb(-1,null,["Employee Name"])),(l()(),t.vb(11,0,null,null,0,"br",[],null,null,null,null,null)),(l()(),t.vb(12,0,null,null,1,"span",[["id","name"]],null,null,null,null,null)),(l()(),t.Sb(13,null,["",""])),(l()(),t.vb(14,0,null,null,20,"div",[["class","form-group"]],null,null,null,null,null)),(l()(),t.vb(15,0,null,null,1,"label",[["for","transactionType"]],null,null,null,null,null)),(l()(),t.Sb(-1,null,["Transaction Type"])),(l()(),t.vb(17,0,null,null,17,"select",[["class","form-control"],["id","transactionType"],["name","transactionType"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"change"],[null,"blur"]],(function(l,n,u){var e=!0,o=l.component;return"change"===n&&(e=!1!==t.Ib(l,18).onChange(u.target.value)&&e),"blur"===n&&(e=!1!==t.Ib(l,18).onTouched()&&e),"ngModelChange"===n&&(e=!1!==(o.transaction.transactionType=u)&&e),e}),null,null)),t.ub(18,16384,null,0,a.p,[t.C,t.k],null,null),t.Nb(1024,null,a.g,(function(l){return[l]}),[a.p]),t.ub(20,671744,[["transactionType",4]],0,a.l,[[8,null],[8,null],[8,null],[6,a.g]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),t.Nb(2048,null,a.h,null,[a.l]),t.ub(22,16384,null,0,a.i,[[4,a.h]],null,null),(l()(),t.vb(23,0,null,null,3,"option",[["value","SALARY_PAYMENT"]],null,null,null,null,null)),t.ub(24,147456,null,0,a.m,[t.k,t.C,[2,a.p]],{value:[0,"value"]},null),t.ub(25,147456,null,0,a.s,[t.k,t.C,[8,null]],{value:[0,"value"]},null),(l()(),t.Sb(-1,null,["Salary Payment"])),(l()(),t.vb(27,0,null,null,3,"option",[["value","OTHER_PAYMENT"]],null,null,null,null,null)),t.ub(28,147456,null,0,a.m,[t.k,t.C,[2,a.p]],{value:[0,"value"]},null),t.ub(29,147456,null,0,a.s,[t.k,t.C,[8,null]],{value:[0,"value"]},null),(l()(),t.Sb(-1,null,["Other Payment"])),(l()(),t.vb(31,0,null,null,3,"option",[["value","OTHER_EARNING"]],null,null,null,null,null)),t.ub(32,147456,null,0,a.m,[t.k,t.C,[2,a.p]],{value:[0,"value"]},null),t.ub(33,147456,null,0,a.s,[t.k,t.C,[8,null]],{value:[0,"value"]},null),(l()(),t.Sb(-1,null,["Other Earning"])),(l()(),t.vb(35,0,null,null,8,"div",[["class","form-group"]],null,null,null,null,null)),(l()(),t.vb(36,0,null,null,1,"label",[["for","date"]],null,null,null,null,null)),(l()(),t.Sb(-1,null,["Date"])),(l()(),t.vb(38,0,null,null,5,"input",[["class","form-control"],["id","date"],["name","transactionDate"],["placeholder","Date"],["type","date"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],(function(l,n,u){var e=!0,o=l.component;return"input"===n&&(e=!1!==t.Ib(l,39)._handleInput(u.target.value)&&e),"blur"===n&&(e=!1!==t.Ib(l,39).onTouched()&&e),"compositionstart"===n&&(e=!1!==t.Ib(l,39)._compositionStart()&&e),"compositionend"===n&&(e=!1!==t.Ib(l,39)._compositionEnd(u.target.value)&&e),"ngModelChange"===n&&(e=!1!==(o.transaction.transactionDate=u)&&e),e}),null,null)),t.ub(39,16384,null,0,a.d,[t.C,t.k,[2,a.a]],null,null),t.Nb(1024,null,a.g,(function(l){return[l]}),[a.d]),t.ub(41,671744,[["transactionDate",4]],0,a.l,[[8,null],[8,null],[8,null],[6,a.g]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),t.Nb(2048,null,a.h,null,[a.l]),t.ub(43,16384,null,0,a.i,[[4,a.h]],null,null),(l()(),t.vb(44,0,null,null,8,"div",[["class","form-group"]],null,null,null,null,null)),(l()(),t.vb(45,0,null,null,1,"label",[["for","time"]],null,null,null,null,null)),(l()(),t.Sb(-1,null,["Time"])),(l()(),t.vb(47,0,null,null,5,"input",[["class","form-control"],["id","time"],["name","transactionTime"],["placeholder","Time"],["type","time"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],(function(l,n,u){var e=!0,o=l.component;return"input"===n&&(e=!1!==t.Ib(l,48)._handleInput(u.target.value)&&e),"blur"===n&&(e=!1!==t.Ib(l,48).onTouched()&&e),"compositionstart"===n&&(e=!1!==t.Ib(l,48)._compositionStart()&&e),"compositionend"===n&&(e=!1!==t.Ib(l,48)._compositionEnd(u.target.value)&&e),"ngModelChange"===n&&(e=!1!==(o.transaction.transactionTime=u)&&e),e}),null,null)),t.ub(48,16384,null,0,a.d,[t.C,t.k,[2,a.a]],null,null),t.Nb(1024,null,a.g,(function(l){return[l]}),[a.d]),t.ub(50,671744,[["transactionTime",4]],0,a.l,[[8,null],[8,null],[8,null],[6,a.g]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),t.Nb(2048,null,a.h,null,[a.l]),t.ub(52,16384,null,0,a.i,[[4,a.h]],null,null),(l()(),t.vb(53,0,null,null,8,"div",[["class","form-group"]],null,null,null,null,null)),(l()(),t.vb(54,0,null,null,1,"label",[["for","amount"]],null,null,null,null,null)),(l()(),t.Sb(-1,null,["Amount"])),(l()(),t.vb(56,0,null,null,5,"input",[["class","form-control"],["id","amount"],["name","amount"],["placeholder","Amount"],["type","text"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],(function(l,n,u){var e=!0,o=l.component;return"input"===n&&(e=!1!==t.Ib(l,57)._handleInput(u.target.value)&&e),"blur"===n&&(e=!1!==t.Ib(l,57).onTouched()&&e),"compositionstart"===n&&(e=!1!==t.Ib(l,57)._compositionStart()&&e),"compositionend"===n&&(e=!1!==t.Ib(l,57)._compositionEnd(u.target.value)&&e),"ngModelChange"===n&&(e=!1!==(o.transaction.amount=u)&&e),e}),null,null)),t.ub(57,16384,null,0,a.d,[t.C,t.k,[2,a.a]],null,null),t.Nb(1024,null,a.g,(function(l){return[l]}),[a.d]),t.ub(59,671744,[["amount",4]],0,a.l,[[8,null],[8,null],[8,null],[6,a.g]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),t.Nb(2048,null,a.h,null,[a.l]),t.ub(61,16384,null,0,a.i,[[4,a.h]],null,null),(l()(),t.vb(62,0,null,null,8,"div",[["class","form-group"]],null,null,null,null,null)),(l()(),t.vb(63,0,null,null,1,"label",[["for","description"]],null,null,null,null,null)),(l()(),t.Sb(-1,null,["Description"])),(l()(),t.vb(65,0,null,null,5,"textarea",[["class","form-control"],["id","description"],["name","description"],["placeholder","Description"],["type","text"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],(function(l,n,u){var e=!0,o=l.component;return"input"===n&&(e=!1!==t.Ib(l,66)._handleInput(u.target.value)&&e),"blur"===n&&(e=!1!==t.Ib(l,66).onTouched()&&e),"compositionstart"===n&&(e=!1!==t.Ib(l,66)._compositionStart()&&e),"compositionend"===n&&(e=!1!==t.Ib(l,66)._compositionEnd(u.target.value)&&e),"ngModelChange"===n&&(e=!1!==(o.transaction.description=u)&&e),e}),null,null)),t.ub(66,16384,null,0,a.d,[t.C,t.k,[2,a.a]],null,null),t.Nb(1024,null,a.g,(function(l){return[l]}),[a.d]),t.ub(68,671744,[["description",4]],0,a.l,[[8,null],[8,null],[8,null],[6,a.g]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),t.Nb(2048,null,a.h,null,[a.l]),t.ub(70,16384,null,0,a.i,[[4,a.h]],null,null),(l()(),t.vb(71,0,null,null,6,"div",[["class","card-footer"]],null,null,null,null,null)),(l()(),t.vb(72,0,null,null,2,"button",[["class","btn btn-sm btn-primary"],["type","button"]],null,[[null,"click"]],(function(l,n,u){var t=!0;return"click"===n&&(t=!1!==l.component.updateTransaction()&&t),t}),null,null)),(l()(),t.vb(73,0,null,null,0,"i",[["class","fa fa-dot-circle-o"]],null,null,null,null,null)),(l()(),t.Sb(-1,null,[" Update"])),(l()(),t.vb(75,0,null,null,2,"button",[["class","btn btn-sm btn-danger"],["type","reset"]],null,null,null,null,null)),(l()(),t.vb(76,0,null,null,0,"i",[["class","fa fa-ban"]],null,null,null,null,null)),(l()(),t.Sb(-1,null,["Reset"]))],(function(l,n){var u=n.component;l(n,20,0,"transactionType",u.transaction.transactionType),l(n,24,0,"SALARY_PAYMENT"),l(n,25,0,"SALARY_PAYMENT"),l(n,28,0,"OTHER_PAYMENT"),l(n,29,0,"OTHER_PAYMENT"),l(n,32,0,"OTHER_EARNING"),l(n,33,0,"OTHER_EARNING"),l(n,41,0,"transactionDate",u.transaction.transactionDate),l(n,50,0,"transactionTime",u.transaction.transactionTime),l(n,59,0,"amount",u.transaction.amount),l(n,68,0,"description",u.transaction.description)}),(function(l,n){l(n,13,0,n.component.transaction.employee.name),l(n,17,0,t.Ib(n,22).ngClassUntouched,t.Ib(n,22).ngClassTouched,t.Ib(n,22).ngClassPristine,t.Ib(n,22).ngClassDirty,t.Ib(n,22).ngClassValid,t.Ib(n,22).ngClassInvalid,t.Ib(n,22).ngClassPending),l(n,38,0,t.Ib(n,43).ngClassUntouched,t.Ib(n,43).ngClassTouched,t.Ib(n,43).ngClassPristine,t.Ib(n,43).ngClassDirty,t.Ib(n,43).ngClassValid,t.Ib(n,43).ngClassInvalid,t.Ib(n,43).ngClassPending),l(n,47,0,t.Ib(n,52).ngClassUntouched,t.Ib(n,52).ngClassTouched,t.Ib(n,52).ngClassPristine,t.Ib(n,52).ngClassDirty,t.Ib(n,52).ngClassValid,t.Ib(n,52).ngClassInvalid,t.Ib(n,52).ngClassPending),l(n,56,0,t.Ib(n,61).ngClassUntouched,t.Ib(n,61).ngClassTouched,t.Ib(n,61).ngClassPristine,t.Ib(n,61).ngClassDirty,t.Ib(n,61).ngClassValid,t.Ib(n,61).ngClassInvalid,t.Ib(n,61).ngClassPending),l(n,65,0,t.Ib(n,70).ngClassUntouched,t.Ib(n,70).ngClassTouched,t.Ib(n,70).ngClassPristine,t.Ib(n,70).ngClassDirty,t.Ib(n,70).ngClassValid,t.Ib(n,70).ngClassInvalid,t.Ib(n,70).ngClassPending)}))}function R(l){return t.Vb(0,[(l()(),t.vb(0,0,null,null,1,"app-update",[],null,null,null,D,k)),t.ub(1,114688,null,0,A,[p.a,m.a,p.l],null,null)],(function(l,n){l(n,1,0)}),null)}var O=t.rb("app-update",A,R,{},{},[]),w=u("t/Na"),V=u("rj1t"),G=u("lGQG"),Y={title:"Transaction"},x={title:"Transaction"},U={title:"Transaction"},H=function(){return function(){}}();u.d(n,"TransactionModuleNgFactory",(function(){return F}));var F=t.sb(e,[],(function(l){return t.Fb([t.Gb(512,t.j,t.X,[[8,[o.a,T,_,O]],[3,t.j],t.w]),t.Gb(4608,i.p,i.o,[t.t]),t.Gb(4608,a.r,a.r,[]),t.Gb(5120,w.a,(function(l){return[new V.a(l)]}),[G.a]),t.Gb(1073742336,i.c,i.c,[]),t.Gb(1073742336,p.p,p.p,[[2,p.u],[2,p.l]]),t.Gb(1073742336,H,H,[]),t.Gb(1073742336,a.q,a.q,[]),t.Gb(1073742336,a.e,a.e,[]),t.Gb(1073742336,e,e,[]),t.Gb(1024,p.j,(function(){return[[{path:"add",component:d,data:Y},{path:"view",component:S,data:x},{path:"update/:id",component:A,data:U}]]}),[])])}))}}]); | 31,618 | 31,618 | 0.635524 |
02341d5205f2e610456360c79f6f2e109ccb122b | 7,298 | js | JavaScript | src/App.js | joemclo/coronavirus-dashboard | 4a6176b2ddb5a811358f69ad0fb52a4a97f24a3b | [
"MIT"
] | null | null | null | src/App.js | joemclo/coronavirus-dashboard | 4a6176b2ddb5a811358f69ad0fb52a4a97f24a3b | [
"MIT"
] | null | null | null | src/App.js | joemclo/coronavirus-dashboard | 4a6176b2ddb5a811358f69ad0fb52a4a97f24a3b | [
"MIT"
] | null | null | null | /* eslint-disable react-hooks/exhaustive-deps */
import React, { useEffect, lazy, Suspense } from 'react';
import { Switch, Route, withRouter, Redirect, useParams } from 'react-router';
import Header from "components/Header";
import BackToTop from 'components/BackToTop';
import ErrorBoundary from "components/ErrorBoundary";
import useTimestamp from "hooks/useTimestamp";
import moment from "moment";
import useResponsiveLayout from "./hooks/useResponsiveLayout";
import Loading from "components/Loading";
import './index.scss';
const
DashboardHeader = lazy(() => import('components/DashboardHeader')),
Cases = lazy(() => import('pages/Cases')),
Healthcare = lazy(() => import('pages/Healthcare')),
Deaths = lazy(() => import('pages/Deaths')),
Tests = lazy(() => import('pages/Testing')),
About = lazy(() => import('pages/About')),
Accessibility = lazy(() => import('pages/Accessibility')),
Cookies = lazy(() => import('pages/Cookies')),
ApiDocs = lazy(() => import('pages/ApiDocs')),
InteractiveMap = lazy(() => import("pages/InteractiveMap")),
Footer = lazy(() => import('components/Footer')),
Download = lazy(() => import('pages/Download')),
Banner = lazy(() => import('components/Banner'));
const LastUpdateTime = () => {
const timestamp = useTimestamp();
return <>
<div className={ "govuk-!-margin-top-5 govuk-!-margin-bottom-5" }
role={ "region" }
aria-labelledby={ "last-update" }>
<p className={ "govuk-body-s" } id={ "last-update" }>
Last updated on {
!timestamp
? <Loading/>
: <time dateTime={ timestamp }>{
moment(timestamp)
.local(true)
.format("dddd D MMMM YYYY [at] h:mma")
}</time>
}
</p>
</div>
</>
}; // LastUpdateTime
const
PathWithSideMenu = [
"/details/",
"/details/testing",
"/details/cases",
"/details/healthcare",
"/details/deaths",
"/details/about-data",
"/details/download"
];
const Navigation = ({ layout, ...props }) => {
const Nav = layout !== "mobile"
? React.lazy(() => import('components/SideNavigation'))
: React.lazy(() => import('components/SideNavMobile'));
return <Suspense fallback={ <Loading/> }>
<Nav { ...props }/>
</Suspense>
}; // MobileNavigation
const RedirectToDetails = () => {
const urlParams = useParams();
if ( urlParams.page.indexOf("details") < 0 ) {
return <Redirect to={ `/details/${ urlParams.page }` }/>;
}
window.location.href = "/";
}; // RedirectToDetails
const App = ({ location: { pathname } }) => {
const
layout = useResponsiveLayout(768);
let hasMenu;
useEffect(() => {
hasMenu = PathWithSideMenu.indexOf(pathname) > -1;
}, [ pathname ]);
return <>
{/*<CookieBanner/>*/}
<Header/>
{/*<div className="govuk-phase-banner" style={{ padding: ".7rem 30px" }}>*/}
{/* <p className="govuk-phase-banner__content">*/}
{/* <strong className="govuk-tag govuk-phase-banner__content__tag">*/}
{/* experimental*/}
{/* </strong>*/}
{/* <span className="govuk-phase-banner__text">*/}
{/* This is a new version of the*/}
{/* service — your <a className="govuk-link govuk-link--no-visited-state"*/}
{/* href="mailto:coronavirus-tracker@phe.gov.uk?subject=Feedback on version 3">feedback</a> will*/}
{/* help us to improve it.</span>*/}
{/* </p>*/}
{/*</div>*/}
{ layout === "mobile" && <Navigation layout={ layout }/> }
<Suspense fallback={ <Loading/> }><Banner/></Suspense>
<div className={ "govuk-width-container" }>
<LastUpdateTime/>
<ErrorBoundary>
<div className={ "dashboard-container" }>
{
layout === "desktop" &&
<aside className={ "dashboard-menu" }>
<Switch>
<Route path={ "/details" }
render={ props =>
<Navigation layout={ layout }{ ...props}/>
}/>
</Switch>
</aside>
}
<main className={ "govuk-main-wrapper" } role={ "main" } id={ 'main-content' }>
<Suspense fallback={ <Loading/> }>
<DashboardHeader/>
<Switch>
{/*<Route path="/details" exact render={ () => <Redirect to={ "/" }/> }/>*/}
<Route path="/details/testing" exact component={ Tests }/>
<Route path="/details/cases" exact component={ Cases }/>
<Route path="/details/healthcare" exact component={ Healthcare }/>
<Route path="/details/deaths" exact component={ Deaths }/>
<Route path="/details/interactive-map" component={ InteractiveMap }/>
<Route path="/details/download" exact component={ Download }/>
<Route path="/details/about-data" exact component={About}/>
{/*<Route path="/archive" component={ Archive }/>*/}
<Route path="/details/accessibility" exact component={ Accessibility }/>
<Route path="/details/cookies" exact component={ Cookies }/>
<Route path="/details/developers-guide" exact component={ ApiDocs }/>
<Route path={ "/:page" } component={ RedirectToDetails }/>
</Switch>
</Suspense>
</main>
</div>
</ErrorBoundary>
<Switch>
{/* These back-to-top links are the 'overlay' style that stays on screen as we scroll. */ }
<Route path="/details" render={ () => <BackToTop mode={ "overlay" }/> }/>
</Switch>
{/* We only want back-to-top links on the main & about pages. */ }
<Switch>
{/* These back-to-top links are the 'inline' style that sits
statically between the end of the content and the footer. */ }
<Route path="/details" render={ props => <BackToTop { ...props } mode="inline"/> }/>
</Switch>
</div>
<Switch>
<Suspense fallback={ <Loading/> }>
<Route path="/details" component={ Footer }/>
</Suspense>
</Switch>
</>
}; // App
export default withRouter(App);
| 38.819149 | 142 | 0.478213 |
02341dd2b76e5ad51a844f5c36eccdcf4fffc5a0 | 1,117 | js | JavaScript | index.js | MentuxLucifer/discord-shortner | 4f7b02c0ae4b969823e9ea64a896cbbb341f2706 | [
"MIT"
] | 1 | 2020-09-10T12:24:01.000Z | 2020-09-10T12:24:01.000Z | index.js | MentuxLucifer/discord-shortner | 4f7b02c0ae4b969823e9ea64a896cbbb341f2706 | [
"MIT"
] | null | null | null | index.js | MentuxLucifer/discord-shortner | 4f7b02c0ae4b969823e9ea64a896cbbb341f2706 | [
"MIT"
] | null | null | null | const Discord = require('discord.js');
const client = new Discord.Client({ disableMentions: "everyone" });
client.login('');
client.website = require('./website/dashboard');
client.on("ready",() => {
console.log(`${client.user.username} Logged In!`);
client.user.setActivity(`Making A Video`)
client.website.load(client);
})
const cryptoRandomString = require('crypto-random-string');
client.on("message", async (msg) => {
if(msg.content.startsWith(`!shorten`)) {
const prefix = "!"
const args = msg.content.trim().split(/ +/g);
let code = cryptoRandomString({length: 10, type: 'base64'});
if(!args[1]) {
return msg.channel.send(`Please Specify A URL To Shorten`);
}
const db = require('quick.db');
let fetch = db.fetch(`${code}`);
if(fetch !== null) {
let code = cryptoRandomString({length: 10, type: 'base64'});
}
db.set(`${code}`, args[1]);
msg.channel.send(`Shorten URL Is : http://localhost:8080/${code}`);
}
})
| 26.595238 | 76 | 0.555953 |
02344ba48ba97340d526fa25ef02ffd8a921c633 | 29,196 | js | JavaScript | apps/demo/test/unit/controllers/MailgunController.test.js | prateekbhatt/userjoy | 7b281a854f44cb51f56ab3d4b21e27049eb3ec72 | [
"MIT"
] | 3 | 2015-04-27T12:30:09.000Z | 2017-02-17T18:56:38.000Z | apps/api/test/unit/controllers/MailgunController.test.js | prateekbhatt/userjoy | 7b281a854f44cb51f56ab3d4b21e27049eb3ec72 | [
"MIT"
] | null | null | null | apps/api/test/unit/controllers/MailgunController.test.js | prateekbhatt/userjoy | 7b281a854f44cb51f56ab3d4b21e27049eb3ec72 | [
"MIT"
] | 3 | 2015-11-13T05:24:51.000Z | 2020-05-12T19:09:58.000Z | describe('Resource /mailgun', function () {
var MailgunCtrl = require('../../../api/routes/MailgunController');
/**
* models
*/
var AutoMessage = require('../../../api/models/AutoMessage');
var Conversation = require('../../../api/models/Conversation');
/**
* Create test vars for all event types
*/
var replyEvent;
var newMessageEvent;
var openEvent;
var sendEvent;
var clickEvent;
var manualMessageId;
var automessageId;
var aid;
var uid;
before(function (done) {
setupTestDb(done);
});
/**
* populate the test event variables
*/
beforeEach(function () {
aid = saved.conversations.first.aid;
uid = saved.users.first._id;
automessageId = saved.automessages.first._id;
manualMessageId = saved.conversations.first.messages[0]._id;
var newMessageToEmail = aid + '@mail.userjoy.co';
});
describe('POST /mailgun/opens', function () {
it('should handle seen events for manual message', function (done) {
// opened
var postData = {
uj_mid: manualMessageId,
uj_type: 'manual',
event: 'opened',
timestamp: '1403119454',
city: 'Mountain View',
domain: 'mail.userjoy.co',
'device-type': 'desktop',
'client-type': 'browser',
ip: '66.249.84.28',
region: 'CA',
'client-name': 'Firefox',
'user-agent': 'Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.0.7) Gecko/2009021910 Firefox/3.0.7 (via ggpht.com GoogleImageProxy)',
country: 'US',
'client-os': 'Windows',
h: 'cca5cc76a8f7927ca5767a7a07711ad2',
'message-id': '3465d93faa3870d007e54fc1625612@prateek',
recipient: 'prattbhatt@gmail.com',
token: '3aitb8d4cmoza0pyx2693j145vey-fkgw3p89yskhtmxtlcc14',
signature: '6cce16f515eef2baed2efe279d08dca631a25fd93dc98c6da8b9191ec11edc92'
};
request
.post('/mailgun/opens')
.send(postData)
.expect('Content-Type', /json/)
.expect(200)
.end(done);
});
it('should handle seen events for automessage events', function (
done) {
// opened
var postData = {
uj_type: 'auto',
uj_mid: automessageId,
uj_aid: aid,
uj_uid: uid,
uj_title: 'In App Welcome Message',
event: 'opened',
timestamp: '1403119454',
city: 'Mountain View',
domain: 'mail.userjoy.co',
'device-type': 'desktop',
'client-type': 'browser',
ip: '66.249.84.28',
region: 'CA',
'client-name': 'Firefox',
'user-agent': 'Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.0.7) Gecko/2009021910 Firefox/3.0.7 (via ggpht.com GoogleImageProxy)',
country: 'US',
'client-os': 'Windows',
h: 'cca5cc76a8f7927ca5767a7a07711ad2',
'message-id': '3465d93faa3870d007e54fc1625612@prateek',
recipient: 'prattbhatt@gmail.com',
token: '3aitb8d4cmoza0pyx2693j145vey-fkgw3p89yskhtmxtlcc14',
signature: '6cce16f515eef2baed2efe279d08dca631a25fd93dc98c6da8b9191ec11edc92'
};
async.series(
[
function zeroSeen(cb) {
AutoMessage
.findById(automessageId)
.exec(function (err, amsg) {
expect(err)
.to.not.exist;
expect(amsg.seen)
.to.eql(0);
cb(err);
});
},
function makeRequest(cb) {
request
.post('/mailgun/opens')
.send(postData)
.expect('Content-Type', /json/)
.expect(200)
.end(cb);
},
function oneSeen(cb) {
AutoMessage
.findById(automessageId)
.exec(function (err, amsg) {
expect(err)
.to.not.exist;
expect(amsg.seen)
.to.eql(1);
cb(err);
});
},
function seeSameAutomessageAgain(cb) {
request
.post('/mailgun/opens')
.send(postData)
.expect('Content-Type', /json/)
.expect(200)
.end(cb);
},
function stillOneOpened(cb) {
AutoMessage
.findById(automessageId)
.exec(function (err, amsg) {
expect(err)
.to.not.exist;
expect(amsg.seen)
.to.eql(1);
cb(err);
});
}
],
done
);
});
});
describe('/clicks', function () {
it('should handle clicked events for manual message', function (done) {
var postData = {
uj_mid: manualMessageId,
event: 'clicked',
uj_type: 'manual',
timestamp: '1403119454',
city: 'Mountain View',
domain: 'mail.userjoy.co',
'device-type': 'desktop',
'client-type': 'browser',
ip: '66.249.84.28',
region: 'CA',
'client-name': 'Firefox',
'user-agent': 'Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.0.7) Gecko/2009021910 Firefox/3.0.7 (via ggpht.com GoogleImageProxy)',
country: 'US',
'client-os': 'Windows',
h: 'cca5cc76a8f7927ca5767a7a07711ad2',
'message-id': '3465d93faa3870d007e54fc1625612@prateek',
recipient: 'prattbhatt@gmail.com',
token: '3aitb8d4cmoza0pyx2693j145vey-fkgw3p89yskhtmxtlcc14',
signature: '6cce16f515eef2baed2efe279d08dca631a25fd93dc98c6da8b9191ec11edc92'
};
request
.post('/mailgun/clicks')
.send(postData)
.expect('Content-Type', /json/)
.expect(200)
.end(done);
});
it('should handle clicked events for automessage events', function (
done) {
var postData = {
uj_type: 'auto',
uj_mid: automessageId,
uj_aid: aid,
uj_uid: uid,
uj_title: 'In App Welcome Message',
event: 'clicked',
timestamp: '1403119454',
city: 'Mountain View',
domain: 'mail.userjoy.co',
'device-type': 'desktop',
'client-type': 'browser',
ip: '66.249.84.28',
region: 'CA',
'client-name': 'Firefox',
'user-agent': 'Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.0.7) Gecko/2009021910 Firefox/3.0.7 (via ggpht.com GoogleImageProxy)',
country: 'US',
'client-os': 'Windows',
h: 'cca5cc76a8f7927ca5767a7a07711ad2',
'message-id': '3465d93faa3870d007e54fc1625612@prateek',
recipient: 'prattbhatt@gmail.com',
token: '3aitb8d4cmoza0pyx2693j145vey-fkgw3p89yskhtmxtlcc14',
signature: '6cce16f515eef2baed2efe279d08dca631a25fd93dc98c6da8b9191ec11edc92'
};
async.series(
[
function zeroClicked(cb) {
AutoMessage
.findById(automessageId)
.exec(function (err, amsg) {
expect(err)
.to.not.exist;
expect(amsg.clicked)
.to.eql(0);
cb(err);
});
},
function makeRequest(cb) {
request
.post('/mailgun/clicks')
.send(postData)
.expect('Content-Type', /json/)
.expect(200)
.end(cb);
},
function oneClicked(cb) {
AutoMessage
.findById(automessageId)
.exec(function (err, amsg) {
expect(err)
.to.not.exist;
expect(amsg.clicked)
.to.eql(1);
cb(err);
});
},
function clickSameAutomessageAgain(cb) {
request
.post('/mailgun/clicks')
.send(postData)
.expect('Content-Type', /json/)
.expect(200)
.end(cb);
},
function stillOneClicked(cb) {
AutoMessage
.findById(automessageId)
.exec(function (err, amsg) {
expect(err)
.to.not.exist;
expect(amsg.clicked)
.to.eql(1);
cb(err);
});
}
],
done
);
});
});
describe('POST /mailgun/delivers', function () {
it('should handle sent events for manual message', function (done) {
var postData = {
uj_mid: manualMessageId,
uj_type: 'manual',
timestamp: '1403119291',
'X-Mailgun-Sid': 'WyIwODE3NiIsICJwcmF0dGJoYXR0QGdtYWlsLmNvbSIsICIxMmE0YjUiXQ==',
domain: 'mail.userjoy.co',
'message-headers': '[["Received", "from [127.0.0.1] (115.118.48.146.static-ttsl-hyderabad.vsnl.net.in [115.118.48.146]) by mxa.mailgun.org with ESMTP id 53a1e6b2.7f68e80645d0-in1; Wed, 18 Jun 2014 19:21:22 -0000 (UTC)"], ["X-Mailer", "UserJoy Mailer"], ["Date", "Wed, 18 Jun 2014 19:21:18 GMT"], ["Message-Id", "<3465d93faa3870d007e54fc1625612@prateek>"], ["X-Mailgun-Track", "yes"], ["X-Mailgun-Track-Clicks", "yes"], ["X-Mailgun-Track-Opens", "yes"], ["X-Mailgun-Variables", "{\\"uj_type\\":\\"manual\\",\\"uj_mid\\":\\"53a1e6a9ecc26ee1312b4fe6\\"}"], ["From", "\\"prateek\\" <539dd58b5278319f3fc6bbce@mail.userjoy.co>"], ["To", "prattbhatt@gmail.com"], ["Reply-To", "\\"Reply to prateek\\" <539dd58b5278319f3fc6bbce+m_53a1e6a9ecc26ee1312b4fe5@mail.userjoy.co>"], ["Subject", "hello"], ["Content-Type", ["multipart/alternative", {"boundary": "----Nodemailer-0.6.3-?=_1-1403119281988"}]], ["Mime-Version", "1.0"], ["X-Mailgun-Sid", "WyIwODE3NiIsICJwcmF0dGJoYXR0QGdtYWlsLmNvbSIsICIxMmE0YjUiXQ=="], ["Sender", "539dd58b5278319f3fc6bbce@mail.userjoy.co"]]',
'Message-Id': '<3465d93faa3870d007e54fc1625612@prateek>',
recipient: 'prattbhatt@gmail.com',
event: 'delivered',
token: '0vpea1fd8065n7ipgs1mahvzzr0muec64m1yync8930eahngs1',
signature: '9524cc239c16dde95b8cbe99172e8b9ffd7bf44f25e6fa216b6ec357a03c8e05'
}
request
.post('/mailgun/delivers')
.send(postData)
.expect('Content-Type', /json/)
.expect(200)
.end(done);
});
it('should handle sent events for automessage events', function (done) {
var postData = {
uj_mid: automessageId,
uj_type: 'auto',
uj_aid: aid,
uj_uid: uid,
uj_title: 'In App Welcome Message',
event: 'delivered',
timestamp: '1403119291',
'X-Mailgun-Sid': 'WyIwODE3NiIsICJwcmF0dGJoYXR0QGdtYWlsLmNvbSIsICIxMmE0YjUiXQ==',
domain: 'mail.userjoy.co',
'message-headers': '[["Received", "from [127.0.0.1] (115.118.48.146.static-ttsl-hyderabad.vsnl.net.in [115.118.48.146]) by mxa.mailgun.org with ESMTP id 53a1e6b2.7f68e80645d0-in1; Wed, 18 Jun 2014 19:21:22 -0000 (UTC)"], ["X-Mailer", "UserJoy Mailer"], ["Date", "Wed, 18 Jun 2014 19:21:18 GMT"], ["Message-Id", "<3465d93faa3870d007e54fc1625612@prateek>"], ["X-Mailgun-Track", "yes"], ["X-Mailgun-Track-Clicks", "yes"], ["X-Mailgun-Track-Opens", "yes"], ["X-Mailgun-Variables", "{\\"uj_type\\":\\"manual\\",\\"uj_mid\\":\\"53a1e6a9ecc26ee1312b4fe6\\"}"], ["From", "\\"prateek\\" <539dd58b5278319f3fc6bbce@mail.userjoy.co>"], ["To", "prattbhatt@gmail.com"], ["Reply-To", "\\"Reply to prateek\\" <539dd58b5278319f3fc6bbce+m_53a1e6a9ecc26ee1312b4fe5@mail.userjoy.co>"], ["Subject", "hello"], ["Content-Type", ["multipart/alternative", {"boundary": "----Nodemailer-0.6.3-?=_1-1403119281988"}]], ["Mime-Version", "1.0"], ["X-Mailgun-Sid", "WyIwODE3NiIsICJwcmF0dGJoYXR0QGdtYWlsLmNvbSIsICIxMmE0YjUiXQ=="], ["Sender", "539dd58b5278319f3fc6bbce@mail.userjoy.co"]]',
'Message-Id': '<3465d93faa3870d007e54fc1625612@prateek>',
recipient: 'prattbhatt@gmail.com',
token: '0vpea1fd8065n7ipgs1mahvzzr0muec64m1yync8930eahngs1',
signature: '9524cc239c16dde95b8cbe99172e8b9ffd7bf44f25e6fa216b6ec357a03c8e05'
};
async.series(
[
function zeroSent(cb) {
AutoMessage
.findById(automessageId)
.exec(function (err, amsg) {
expect(err)
.to.not.exist;
expect(amsg.sent)
.to.eql(0);
cb(err);
});
},
function makeRequest(cb) {
request
.post('/mailgun/delivers')
.send(postData)
.expect('Content-Type', /json/)
.expect(200)
.end(cb);
},
function oneSent(cb) {
AutoMessage
.findById(automessageId)
.exec(function (err, amsg) {
expect(err)
.to.not.exist;
expect(amsg.sent)
.to.eql(1);
cb(err);
});
},
function deliverSameAutomessageAgain(cb) {
request
.post('/mailgun/delivers')
.send(postData)
.expect('Content-Type', /json/)
.expect(200)
.end(cb);
},
function stillOneSent(cb) {
AutoMessage
.findById(automessageId)
.exec(function (err, amsg) {
expect(err)
.to.not.exist;
expect(amsg.sent)
.to.eql(1);
cb(err);
});
}
],
done
);
});
});
describe('POST /mailgun/subdomain/:subdomain/username/:username',
function () {
var givenApp;
var repliedConv;
var replyToEmailId;
var subdomain;
var url;
var username;
beforeEach(function () {
givenApp = saved.apps.first;
repliedConv = saved.conversations.first;
replyToEmailId = repliedConv.messages[0].emailId;
subdomain = givenApp.subdomain;
username = givenApp.team[0].username;
url = '/mailgun/subdomain/' + subdomain + '/username/' + username;
});
it('should handle new messages', function (done) {
var postData = {
recipient: 'prattbhatt@gmail.com',
sender: 'prattbhatt@gmail.com',
subject: 'Hello',
from: 'Prateek Bhatt <prattbhatt@gmail.com>',
'In-Reply-To': '',
'Message-Id': '<CANABCxoqd841GbOz3xHkKGyBZ=3OiCwuF-cQhgxf6Qwx8Q4NzhHoQ@mail.gmail.com>',
'X-Envelope-From': '<prattbhatt@gmail.com>',
Received: [
'from mail-vc0-f175.google.com (mail-vc0-f175.google.com [209.85.220.175]) by mxa.mailgun.org with ESMTP id 53a1e782.7fdf56827770-in3; Wed, 18 Jun 2014 19:24:50 -0000 (UTC)',
'by mail-vc0-f175.google.com with SMTP id hy4so1257720vcb.6 for <539dd58b5278319f3fc6bbce+m_53a1e6a9ecc26ee1312b4fe5@mail.userjoy.co>; Wed, 18 Jun 2014 12:24:48 -0700 (PDT)',
'by 10.220.220.15 with HTTP; Wed, 18 Jun 2014 12:24:48 -0700 (PDT)'
],
'Dkim-Signature': 'v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=mkPbjGJ5QNE8/UjGFkulM+FK6SjCO9QE8MlsUdY225s=; b=Ap0tZC2vWxeYiZrQXvwFKL+N77LVoBXEMpCdietBwZf+yRudotfeih/BFBOXL2gbbF AC4jittfMtWRg9UI0bQ8coW812d2adoM1JuVMe9PF51QFoFElvpmoSjfkg4F99y6nrKe 70ALKCiAAW1pZS8Mn2DGzBrkzK2MjnfbG6MJAWMgHJ0eXqQ9ZpNWTIItDP494NNae0VY ceLui9IqI1dnKDPIVYXV54GNqAGxOjYGsO2zEThLuoWLEX8DuqBLSgO6fleW7WVTzUhl e+YDR+nTdeHOq/npQqOJqxOpUoSCdsHrWxl2SNRmNz5P54AVgQieNGp4uJVqlHTWK+/V l2pw==',
'Mime-Version': '1.0',
'X-Received': 'by 10.58.122.196 with SMTP id lu4mr94612veb.52.1403119488279; Wed, 18 Jun 2014 12:24:48 -0700 (PDT)',
References: '<3465d93faa3870d007e54fc1625612@prateek>',
Date: 'Thu, 19 Jun 2014 00:54:48 +0530',
Subject: 'Re: hello',
From: 'Prateek Bhatt <prattbhatt@gmail.com>',
To: 'Reply to prateek <539dd58b5278319f3fc6bbce+m_53a1e6a9ecc26ee1312b4fe5@mail.userjoy.co>',
'Content-Type': 'multipart/alternative; boundary="047d7b2ed201ad2a9404fc213647"',
'X-Mailgun-Incoming': 'Yes',
'message-headers': '[["X-Envelope-From", "<prattbhatt@gmail.com>"], ["Received", "from mail-vc0-f175.google.com (mail-vc0-f175.google.com [209.85.220.175]) by mxa.mailgun.org with ESMTP id 53a1e782.7fdf56827770-in3; Wed, 18 Jun 2014 19:24:50 -0000 (UTC)"], ["Received", "by mail-vc0-f175.google.com with SMTP id hy4so1257720vcb.6 for <539dd58b5278319f3fc6bbce+m_53a1e6a9ecc26ee1312b4fe5@mail.userjoy.co>; Wed, 18 Jun 2014 12:24:48 -0700 (PDT)"], ["Dkim-Signature", "v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=mkPbjGJ5QNE8/UjGFkulM+FK6SjCO9QE8MlsUdY225s=; b=Ap0tZC2vWxeYiZrQXvwFKL+N77LVoBXEMpCdietBwZf+yRudotfeih/BFBOXL2gbbF AC4jittfMtWRg9UI0bQ8coW812d2adoM1JuVMe9PF51QFoFElvpmoSjfkg4F99y6nrKe 70ALKCiAAW1pZS8Mn2DGzBrkzK2MjnfbG6MJAWMgHJ0eXqQ9ZpNWTIItDP494NNae0VY ceLui9IqI1dnKDPIVYXV54GNqAGxOjYGsO2zEThLuoWLEX8DuqBLSgO6fleW7WVTzUhl e+YDR+nTdeHOq/npQqOJqxOpUoSCdsHrWxl2SNRmNz5P54AVgQieNGp4uJVqlHTWK+/V l2pw=="], ["Mime-Version", "1.0"], ["X-Received", "by 10.58.122.196 with SMTP id lu4mr94612veb.52.1403119488279; Wed, 18 Jun 2014 12:24:48 -0700 (PDT)"], ["Received", "by 10.220.220.15 with HTTP; Wed, 18 Jun 2014 12:24:48 -0700 (PDT)"], ["In-Reply-To", "<3465d93faa3870d007e54fc1625612@prateek>"], ["References", "<3465d93faa3870d007e54fc1625612@prateek>"], ["Date", "Thu, 19 Jun 2014 00:54:48 +0530"], ["Message-Id", "<CANxoqd841GbOz3xHkKGyBZ=3OiCwuF-cQhgxf6Qwx8Q4NzhHoQ@mail.gmail.com>"], ["Subject", "Re: hello"], ["From", "Prateek Bhatt <prattbhatt@gmail.com>"], ["To", "Reply to prateek <539dd58b5278319f3fc6bbce+m_53a1e6a9ecc26ee1312b4fe5@mail.userjoy.co>"], ["Content-Type", "multipart/alternative; boundary=\\"047d7b2ed201ad2a9404fc213647\\""], ["X-Mailgun-Incoming", "Yes"]]',
timestamp: '1403119495',
token: '2yknsyfhs0y7gw3tnbc53hb112l7emr-7tpyobxal8004ga858',
signature: 'c508d46a5c27df10de33861bf3a89df5d77172e227447e976f6b250642732589',
'body-plain': 'reply body\r\n\r\nPrateek Bhatt\r\n\r\n\r\nOn Thu, Jun 19, 2014 at 12:51 AM, prateek <\r\n539dd58b5278319f3fc6bbce@mail.userjoy.co> wrote:\r\n\r\n> ###-----------------###\r\n>\r\n> eorld\r\n>\r\n',
'body-html': '<div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif">reply body</div></div><div class="gmail_extra"><br clear="all"><div><div dir="ltr"><font face="tahoma, sans-serif" color="#444444">Prateek Bhatt</font></div>\r\n</div>\r\n<br><br><div class="gmail_quote">On Thu, Jun 19, 2014 at 12:51 AM, prateek <span dir="ltr"><<a href="mailto:539dd58b5278319f3fc6bbce@mail.userjoy.co" target="_blank">539dd58b5278319f3fc6bbce@mail.userjoy.co</a>></span> wrote:<br>\r\n<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="overflow:hidden"> \r\n <span style="display:none!important">###-----------------###</span>\r\n</div>\r\n<br>\r\n\r\n\r\n \r\n eorld\r\n \r\n <br>\r\n <div style="border-left:1px solid #999;margin-left:20px">\r\n \r\n </div>\r\n\r\n<img width="1px" height="1px" alt="" src="http://email.mail.userjoy.co/o/ZD0xMmE0YjUmdWpfbWlkPTUzYTFlNmE5ZWNjMjZlZTEzMTJiNGZlNiZoPWNjYTVjYzc2YThmNzkyN2NhNTc2N2E3YTA3NzExYWQyJmk9MzQ2NWQ5M2ZhYTM4NzBkMDA3ZTU0ZmMxNjI1NjEyJTQwcHJhdGVlayZyPXByYXR0YmhhdHQlNDBnbWFpbC5jb20mdWpfdHlwZT1tYW51YWw"></div>\r\n</blockquote></div><br></div>\r\n',
'stripped-html': '<html><body><div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif">reply body</div></div><div class="gmail_extra"><br clear="all"><div><div dir="ltr"><font face="tahoma, sans-serif" color="#444444">Prateek Bhatt</font></div>\r\n</div>\r\n<br><br><br></div></body></html>',
'stripped-text': 'reply body\r\n',
'stripped-signature': 'Prateek Bhatt'
};
var numberOfConversationsBefore;
async.series([
function checkBefore(cb) {
Conversation
.find({
aid: givenApp._id
})
.exec(function (err, convs) {
numberOfConversationsBefore = convs.length;
expect(numberOfConversationsBefore)
.to.above(0);
cb();
});
},
function createConversation(cb) {
request
.post(url)
.send(postData)
.expect('Content-Type', /json/)
.expect(200)
.end(cb);
},
function checkAfter(cb) {
Conversation
.find({
aid: givenApp._id
})
.sort({
ct: -1
})
.exec(function (err, convs) {
expect(convs)
.to.have.length(numberOfConversationsBefore + 1);
// assuming last conversation is the newest one
var newConv = _.last(convs);
// conversation should have been assigned to right team member
expect(newConv.assignee.toString())
.to.equal(givenApp.team[0].accid.toString());
cb();
});
},
],
done);
});
it('should handle replies', function (done) {
var postData = {
recipient: 'prattbhatt@gmail.com',
'In-Reply-To': replyToEmailId,
'Message-Id': '<CANDEFxoqd841GbOz3xHkKGyBZ=3OiCwuF-cQhgxf6Qwx8Q4NzhHoQ@mail.gmail.com>',
sender: 'prattbhatt@gmail.com',
subject: 'Re: hello',
from: 'Prateek Bhatt <prattbhatt@gmail.com>',
'X-Envelope-From': '<prattbhatt@gmail.com>',
Subject: 'Re: hello',
From: 'Prateek Bhatt <prattbhatt@gmail.com>',
'stripped-text': 'reply body\r\n',
Received: [
'from mail-vc0-f175.google.com (mail-vc0-f175.google.com [209.85.220.175]) by mxa.mailgun.org with ESMTP id 53a1e782.7fdf56827770-in3; Wed, 18 Jun 2014 19:24:50 -0000 (UTC)',
'by mail-vc0-f175.google.com with SMTP id hy4so1257720vcb.6 for <539dd58b5278319f3fc6bbce+m_53a1e6a9ecc26ee1312b4fe5@mail.userjoy.co>; Wed, 18 Jun 2014 12:24:48 -0700 (PDT)',
'by 10.220.220.15 with HTTP; Wed, 18 Jun 2014 12:24:48 -0700 (PDT)'
],
'Dkim-Signature': 'v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=mkPbjGJ5QNE8/UjGFkulM+FK6SjCO9QE8MlsUdY225s=; b=Ap0tZC2vWxeYiZrQXvwFKL+N77LVoBXEMpCdietBwZf+yRudotfeih/BFBOXL2gbbF AC4jittfMtWRg9UI0bQ8coW812d2adoM1JuVMe9PF51QFoFElvpmoSjfkg4F99y6nrKe 70ALKCiAAW1pZS8Mn2DGzBrkzK2MjnfbG6MJAWMgHJ0eXqQ9ZpNWTIItDP494NNae0VY ceLui9IqI1dnKDPIVYXV54GNqAGxOjYGsO2zEThLuoWLEX8DuqBLSgO6fleW7WVTzUhl e+YDR+nTdeHOq/npQqOJqxOpUoSCdsHrWxl2SNRmNz5P54AVgQieNGp4uJVqlHTWK+/V l2pw==',
'Mime-Version': '1.0',
'X-Received': 'by 10.58.122.196 with SMTP id lu4mr94612veb.52.1403119488279; Wed, 18 Jun 2014 12:24:48 -0700 (PDT)',
References: '<3465d93faa3870d007e54fc1625612@prateek>',
Date: 'Thu, 19 Jun 2014 00:54:48 +0530',
To: 'Reply to prateek <539dd58b5278319f3fc6bbce+m_53a1e6a9ecc26ee1312b4fe5@mail.userjoy.co>',
'Content-Type': 'multipart/alternative; boundary="047d7b2ed201ad2a9404fc213647"',
'X-Mailgun-Incoming': 'Yes',
'message-headers': '[["X-Envelope-From", "<prattbhatt@gmail.com>"], ["Received", "from mail-vc0-f175.google.com (mail-vc0-f175.google.com [209.85.220.175]) by mxa.mailgun.org with ESMTP id 53a1e782.7fdf56827770-in3; Wed, 18 Jun 2014 19:24:50 -0000 (UTC)"], ["Received", "by mail-vc0-f175.google.com with SMTP id hy4so1257720vcb.6 for <539dd58b5278319f3fc6bbce+m_53a1e6a9ecc26ee1312b4fe5@mail.userjoy.co>; Wed, 18 Jun 2014 12:24:48 -0700 (PDT)"], ["Dkim-Signature", "v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=mkPbjGJ5QNE8/UjGFkulM+FK6SjCO9QE8MlsUdY225s=; b=Ap0tZC2vWxeYiZrQXvwFKL+N77LVoBXEMpCdietBwZf+yRudotfeih/BFBOXL2gbbF AC4jittfMtWRg9UI0bQ8coW812d2adoM1JuVMe9PF51QFoFElvpmoSjfkg4F99y6nrKe 70ALKCiAAW1pZS8Mn2DGzBrkzK2MjnfbG6MJAWMgHJ0eXqQ9ZpNWTIItDP494NNae0VY ceLui9IqI1dnKDPIVYXV54GNqAGxOjYGsO2zEThLuoWLEX8DuqBLSgO6fleW7WVTzUhl e+YDR+nTdeHOq/npQqOJqxOpUoSCdsHrWxl2SNRmNz5P54AVgQieNGp4uJVqlHTWK+/V l2pw=="], ["Mime-Version", "1.0"], ["X-Received", "by 10.58.122.196 with SMTP id lu4mr94612veb.52.1403119488279; Wed, 18 Jun 2014 12:24:48 -0700 (PDT)"], ["Received", "by 10.220.220.15 with HTTP; Wed, 18 Jun 2014 12:24:48 -0700 (PDT)"], ["In-Reply-To", "<3465d93faa3870d007e54fc1625612@prateek>"], ["References", "<3465d93faa3870d007e54fc1625612@prateek>"], ["Date", "Thu, 19 Jun 2014 00:54:48 +0530"], ["Message-Id", "<CANxoqd841GbOz3xHkKGyBZ=3OiCwuF-cQhgxf6Qwx8Q4NzhHoQ@mail.gmail.com>"], ["Subject", "Re: hello"], ["From", "Prateek Bhatt <prattbhatt@gmail.com>"], ["To", "Reply to prateek <539dd58b5278319f3fc6bbce+m_53a1e6a9ecc26ee1312b4fe5@mail.userjoy.co>"], ["Content-Type", "multipart/alternative; boundary=\\"047d7b2ed201ad2a9404fc213647\\""], ["X-Mailgun-Incoming", "Yes"]]',
timestamp: '1403119495',
token: '2yknsyfhs0y7gw3tnbc53hb112l7emr-7tpyobxal8004ga858',
signature: 'c508d46a5c27df10de33861bf3a89df5d77172e227447e976f6b250642732589',
'body-plain': 'reply body\r\n\r\nPrateek Bhatt\r\n\r\n\r\nOn Thu, Jun 19, 2014 at 12:51 AM, prateek <\r\n539dd58b5278319f3fc6bbce@mail.userjoy.co> wrote:\r\n\r\n> ###-----------------###\r\n>\r\n> eorld\r\n>\r\n',
'body-html': '<div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif">reply body</div></div><div class="gmail_extra"><br clear="all"><div><div dir="ltr"><font face="tahoma, sans-serif" color="#444444">Prateek Bhatt</font></div>\r\n</div>\r\n<br><br><div class="gmail_quote">On Thu, Jun 19, 2014 at 12:51 AM, prateek <span dir="ltr"><<a href="mailto:539dd58b5278319f3fc6bbce@mail.userjoy.co" target="_blank">539dd58b5278319f3fc6bbce@mail.userjoy.co</a>></span> wrote:<br>\r\n<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="overflow:hidden"> \r\n <span style="display:none!important">###-----------------###</span>\r\n</div>\r\n<br>\r\n\r\n\r\n \r\n eorld\r\n \r\n <br>\r\n <div style="border-left:1px solid #999;margin-left:20px">\r\n \r\n </div>\r\n\r\n<img width="1px" height="1px" alt="" src="http://email.mail.userjoy.co/o/ZD0xMmE0YjUmdWpfbWlkPTUzYTFlNmE5ZWNjMjZlZTEzMTJiNGZlNiZoPWNjYTVjYzc2YThmNzkyN2NhNTc2N2E3YTA3NzExYWQyJmk9MzQ2NWQ5M2ZhYTM4NzBkMDA3ZTU0ZmMxNjI1NjEyJTQwcHJhdGVlayZyPXByYXR0YmhhdHQlNDBnbWFpbC5jb20mdWpfdHlwZT1tYW51YWw"></div>\r\n</blockquote></div><br></div>\r\n',
'stripped-html': '<html><body><div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif">reply body</div></div><div class="gmail_extra"><br clear="all"><div><div dir="ltr"><font face="tahoma, sans-serif" color="#444444">Prateek Bhatt</font></div>\r\n</div>\r\n<br><br><br></div></body></html>',
'stripped-signature': 'Prateek Bhatt'
};
var numberOfMessagesBefore;
async.series([
function checkBefore(cb) {
Conversation
.findOne({
'messages.emailId': replyToEmailId
})
.exec(function (err, conv) {
numberOfMessagesBefore = conv.messages.length;
expect(numberOfMessagesBefore)
.to.above(0);
cb();
});
},
function createConversation(cb) {
request
.post(url)
.send(postData)
.expect('Content-Type', /json/)
.expect(200)
.end(cb);
},
function checkAfter(cb) {
Conversation
.findOne({
'messages.emailId': replyToEmailId
})
.exec(function (err, conv) {
expect(conv.messages)
.to.have.length(numberOfMessagesBefore + 1);
// assuming last message is the newest one
var newMsg = _.last(conv.messages);
// newMsg should have the new emailId
expect(newMsg)
.to.have.property('emailId')
.that.equals(postData['Message-Id']);
cb();
});
},
],
done);
});
});
});
| 40.214876 | 1,803 | 0.595732 |
0234d92feb1465055ba02533bcb27fbac1022896 | 1,024 | js | JavaScript | gridsome.config.js | bolokoz/parmegianologo | 3176e766dae85313fbfa5d9eda47599f19be9ddb | [
"MIT"
] | null | null | null | gridsome.config.js | bolokoz/parmegianologo | 3176e766dae85313fbfa5d9eda47599f19be9ddb | [
"MIT"
] | null | null | null | gridsome.config.js | bolokoz/parmegianologo | 3176e766dae85313fbfa5d9eda47599f19be9ddb | [
"MIT"
] | null | null | null | // This is where project configuration and plugin options are located.
// Learn more: https://gridsome.org/docs/config
// Changes here require a server restart.
// To restart press CTRL + C in terminal and run `gridsome develop`
const tailwind = require('tailwindcss')
const purgecss = require('@fullhuman/postcss-purgecss')
const postcssPlugins = [
tailwind(),
]
if (process.env.NODE_ENV === 'production') postcssPlugins.push(purgecss())
module.exports = {
siteName: 'Parmegianologo',
plugins: [
{
use: "@gridsome/source-filesystem",
options: {
path: "parmegianas/**/*.md",
typeName: "ArticlePost",
resolveAbsolutePaths: true,
remark: {
externalLinksTarget: "_blank",
externalLinksRel: ["nofollow", "noopener", "noreferrer"]
}
}
},
],
css: {
loaderOptions: {
postcss: {
plugins: postcssPlugins,
},
},
},
transformers: {
remark: {
plugins: ["@gridsome/remark-prismjs"]
}
}
} | 23.272727 | 74 | 0.616211 |
0235c016bb6769797f845a4dfe29fc95b990d577 | 1,313 | js | JavaScript | tests/unit/components/Form.spec.js | willmendesneto/star-wars-redux-app | 9ef2725841535b2c7f60ef7a031a0354606e7587 | [
"MIT"
] | null | null | null | tests/unit/components/Form.spec.js | willmendesneto/star-wars-redux-app | 9ef2725841535b2c7f60ef7a031a0354606e7587 | [
"MIT"
] | null | null | null | tests/unit/components/Form.spec.js | willmendesneto/star-wars-redux-app | 9ef2725841535b2c7f60ef7a031a0354606e7587 | [
"MIT"
] | null | null | null | import React from 'react';
import { expect } from 'chai';
import { shallow } from 'enzyme';
import sinon from 'sinon';
import Form from '../../../app/components/Form';
describe('Form component: Form', () => {
it('should save values grabbed with captureValues in state()', () => {
const form = shallow(<Form />);
const instance = form.instance();
instance.captureValues({ foo: 'bar' });
instance.captureValues({ foo2: 'bar2' });
expect(form.state('values')).to.be.deep.equal({ foo: 'bar', foo2: 'bar2' });
});
it('should remove blank or undefined values from state', () => {
const form = shallow(<Form />);
const instance = form.instance();
instance.captureValues({ foo: 'bar', foo2: 'bar2' });
instance.captureValues({ foo: undefined });
expect(form.state('values')).to.be.deep.equal({ foo2: 'bar2' });
instance.captureValues({ foo2: '' });
expect(form.state('values')).to.be.deep.equal({});
});
it('should pass event parameters into "onSubmit" method', () => {
const callback = sinon.spy();
const form = shallow(<Form onSubmit={callback} />);
const instance = form.instance();
instance.captureValues({ foo: 'bar' });
form.simulate('submit');
expect(callback.calledWith(sinon.match.any, { foo: 'bar' })).to.eql(true);
});
});
| 37.514286 | 80 | 0.624524 |
02364c77281b9dbe6a4c6953d201d8bbc45e675a | 19,848 | js | JavaScript | packages/funfix-exec/dist/scheduler.js | willtn/funfix | 63e4be6134273b01c225799a08e48d13409678c7 | [
"Apache-2.0"
] | null | null | null | packages/funfix-exec/dist/scheduler.js | willtn/funfix | 63e4be6134273b01c225799a08e48d13409678c7 | [
"Apache-2.0"
] | null | null | null | packages/funfix-exec/dist/scheduler.js | willtn/funfix | 63e4be6134273b01c225799a08e48d13409678c7 | [
"Apache-2.0"
] | null | null | null | /*!
* Copyright (c) 2017 by The Funfix Project Developers.
* Some 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
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { hashCodeOfString, NotImplementedError } from "funfix-core";
import { Duration } from "./time";
import { Cancelable, MultiAssignCancelable } from "./cancelable";
import { DynamicRef } from "./ref";
import { arrayBSearchInsertPos, maxPowerOf2, nextPowerOf2 } from "./internals";
/**
* A `Scheduler` is an execution context that can execute units of
* work asynchronously, with a delay or periodically.
*
* It replaces Javascript's `setTimeout`, which is desirable due to
* the provided utilities and because special behavior might be needed
* in certain specialized contexts (e.g. tests), even if the
* [[Scheduler.global]] reference is implemented with `setTimeout`.
*/
export class Scheduler {
/**
* @param em the {@link ExecutionModel} to use for
* {@link Scheduler.executionModel}, should default to
* {@link ExecutionModel.global}
*/
constructor(em) {
/**
* Index of the current cycle, incremented automatically (modulo
* the batch size) when doing execution by means of
* {@link Scheduler.executeBatched} and the `Scheduler` is
* configured with {@link ExecutionModel.batched}.
*
* When observed as being zero, it means an async boundary just
* happened.
*/
this.batchIndex = 0;
this.executionModel = em;
// Building an optimized executeBatched
switch (em.type) {
case "alwaysAsync":
this.executeBatched = this.executeAsync;
break;
case "synchronous":
this.executeBatched = this.trampoline;
break;
case "batched":
const modulus = em.recommendedBatchSize - 1;
this.executeBatched = (r) => {
const next = (this.batchIndex + 1) & modulus;
if (next) {
this.batchIndex = next;
return this.trampoline(r);
}
else {
return this.executeAsync(r);
}
};
}
}
/**
* Schedules for execution a periodic task that is first executed
* after the given initial delay and subsequently with the given
* delay between the termination of one execution and the
* commencement of the next.
*
* For example the following schedules a message to be printed to
* standard output every 10 seconds with an initial delay of 5
* seconds:
*
* ```typescript
* const task =
* s.scheduleWithFixedDelay(Duration.seconds(5), Duration.seconds(10), () => {
* console.log("repeated message")
* })
*
* // later if you change your mind ...
* task.cancel()
* ```
*
* @param initialDelay is the time to wait until the first execution happens
* @param delay is the time to wait between 2 successive executions of the task
* @param runnable is the thunk to be executed
* @return a cancelable that can be used to cancel the execution of
* this repeated task at any time.
*/
scheduleWithFixedDelay(initialDelay, delay, runnable) {
const loop = (self, ref, delayNow) => ref.update(self.scheduleOnce(delayNow, () => {
runnable();
loop(self, ref, delay);
}));
const task = MultiAssignCancelable.empty();
return loop(this, task, initialDelay);
}
/**
* Schedules a periodic task that becomes enabled first after the given
* initial delay, and subsequently with the given period. Executions will
* commence after `initialDelay` then `initialDelay + period`, then
* `initialDelay + 2 * period` and so on.
*
* If any execution of the task encounters an exception, subsequent executions
* are suppressed. Otherwise, the task will only terminate via cancellation or
* termination of the scheduler. If any execution of this task takes longer
* than its period, then subsequent executions may start late, but will not
* concurrently execute.
*
* For example the following schedules a message to be printed to standard
* output approximately every 10 seconds with an initial delay of 5 seconds:
*
* ```typescript
* const task =
* s.scheduleAtFixedRate(Duration.seconds(5), Duration.seconds(10), () => {
* console.log("repeated message")
* })
*
* // later if you change your mind ...
* task.cancel()
* ```
*
* @param initialDelay is the time to wait until the first execution happens
* @param period is the time to wait between 2 successive executions of the task
* @param runnable is the thunk to be executed
* @return a cancelable that can be used to cancel the execution of
* this repeated task at any time.
*/
scheduleAtFixedRate(initialDelay, period, runnable) {
const loop = (self, ref, delayNowMs, periodMs) => ref.update(self.scheduleOnce(delayNowMs, () => {
// Benchmarking the duration of the runnable
const startAt = self.currentTimeMillis();
runnable();
// Calculating the next delay based on the current execution
const elapsedMs = self.currentTimeMillis() - startAt;
const nextDelayMs = Math.max(0, periodMs - elapsedMs);
loop(self, ref, periodMs, nextDelayMs);
}));
const task = MultiAssignCancelable.empty();
return loop(this, task, typeof initialDelay === "number" ? initialDelay : initialDelay.toMillis(), typeof period === "number" ? period : period.toMillis());
}
}
/**
* Exposes a reusable [[GlobalScheduler]] reference by means of a
* {@link DynamicRef}, which allows for lexically scoped bindings to happen.
*
* ```typescript
* const myScheduler = new GlobalScheduler(false)
*
* Scheduler.global.bind(myScheduler, () => {
* Scheduler.global.get() // myScheduler
* })
*
* Scheduler.global.get() // default instance
* ```
*/
Scheduler.global = DynamicRef.of(() => globalSchedulerRef);
/**
* The `ExecutionModel` is a specification for how potentially asynchronous
* run-loops should execute, imposed by the `Scheduler`.
*
* When executing tasks, a run-loop can always execute tasks
* asynchronously (by forking logical threads), or it can always
* execute them synchronously (same thread and call-stack, by
* using an internal trampoline), or it can do a mixed mode
* that executes tasks in batches before forking.
*
* The specification is considered a recommendation for how
* run loops should behave, but ultimately it's up to the client
* to choose the best execution model. This can be related to
* recursive loops or to events pushed into consumers.
*/
export class ExecutionModel {
constructor(type, batchSize) {
this.type = type;
switch (type) {
case "synchronous":
this.recommendedBatchSize = maxPowerOf2;
break;
case "alwaysAsync":
this.recommendedBatchSize = 1;
break;
case "batched":
this.recommendedBatchSize = nextPowerOf2(batchSize || 128);
break;
}
}
/** Implements `IEquals.equals`. */
equals(other) {
return this.type === other.type &&
this.recommendedBatchSize === other.recommendedBatchSize;
}
/** Implements `IEquals.hashCode`. */
hashCode() {
return hashCodeOfString(this.type) * 47 + this.recommendedBatchSize;
}
/**
* An {@link ExecutionModel} that specifies that execution should be
* synchronous (immediate, trampolined) for as long as possible.
*/
static synchronous() {
return new ExecutionModel("synchronous");
}
/**
* An {@link ExecutionModel} that specifies a run-loop should always do
* async execution of tasks, thus triggering asynchronous boundaries on
* each step.
*/
static alwaysAsync() {
return new ExecutionModel("alwaysAsync");
}
/**
* Returns an {@link ExecutionModel} that specifies a mixed execution
* mode under which tasks are executed synchronously in batches up to
* a maximum size, the `recommendedBatchSize`.
*
* After such a batch of {@link recommendedBatchSize} is executed, the
* next execution should have a forced asynchronous boundary.
*/
static batched(recommendedBatchSize) {
return new ExecutionModel("batched", recommendedBatchSize);
}
}
/**
* The default {@link ExecutionModel} that should be used whenever
* an execution model isn't explicitly specified.
*/
ExecutionModel.global = DynamicRef.of(() => ExecutionModel.batched());
/**
* Internal trampoline implementation used for implementing
* {@link Scheduler.trampoline}.
*
* @final
* @hidden
*/
class Trampoline {
constructor(reporter) {
this._isActive = false;
this._queue = [];
this._reporter = reporter;
}
execute(r) {
if (!this._isActive) {
this.runLoop(r);
}
else {
this._queue.push(r);
}
}
runLoop(r) {
this._isActive = true;
try {
let cursor = r;
while (cursor) {
try {
cursor();
}
catch (e) {
this._reporter(e);
}
cursor = this._queue.pop();
}
}
finally {
this._isActive = false;
}
}
}
/**
* `GlobalScheduler` is a [[Scheduler]] implementation based on Javascript's
* [setTimeout]{@link https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/setTimeout}
* and (if available and configured)
* [setImmediate]{@link https://developer.mozilla.org/en/docs/Web/API/Window/setImmediate}.
*/
export class GlobalScheduler extends Scheduler {
/**
* @param canUseSetImmediate is a boolean informing the
* `GlobalScheduler` implementation that it can use the
* nonstandard `setImmediate` for scheduling asynchronous
* tasks without extra delays.
*
* @param em the {@link ExecutionModel} to use for
* {@link Scheduler.executionModel}, should default to
* {@link ExecutionModel.global}
*
* @param reporter is the reporter to use for reporting uncaught
* errors, defaults to `console.error`
*/
constructor(canUseSetImmediate = false, em = ExecutionModel.global.get(), reporter) {
super(em);
if (reporter)
this.reportFailure = reporter;
this._trampoline = new Trampoline(this.reportFailure);
// tslint:disable:strict-type-predicates
this._useSetImmediate = (canUseSetImmediate || false) && (typeof setImmediate === "function");
this.executeAsync = this._useSetImmediate
? r => setImmediate(safeRunnable(r, this.reportFailure))
: r => setTimeout(safeRunnable(r, this.reportFailure));
}
/* istanbul ignore next */
executeAsync(runnable) {
/* istanbul ignore next */
throw new NotImplementedError("Constructor of GlobalScheduler wasn't executed");
}
trampoline(runnable) {
return this._trampoline.execute(runnable);
}
/* istanbul ignore next */
reportFailure(e) {
console.error(e);
}
currentTimeMillis() {
return Date.now();
}
scheduleOnce(delay, runnable) {
const r = () => {
this.batchIndex = 0;
try {
runnable();
}
catch (e) {
this.reportFailure(e);
}
};
const ms = Math.max(0, Duration.of(delay).toMillis());
const task = setTimeout(r, ms);
return Cancelable.of(() => clearTimeout(task));
}
withExecutionModel(em) {
return new GlobalScheduler(this._useSetImmediate, em);
}
}
/**
* The `TestScheduler` is a {@link Scheduler} type meant for testing purposes,
* being capable of simulating asynchronous execution and the passage of time.
*
* Example:
*
* ```typescript
* const s = new TestScheduler()
*
* s.execute(() => { console.log("Hello, world!") })
*
* // Triggers actual execution
* s.tick()
*
* // Simulating delayed execution
* const task = s.scheduleOnce(Duration.seconds(10), () => {
* console.log("Hello, delayed!")
* })
*
* // We can cancel a delayed task if we want
* task.cancel()
*
* // Or we can execute it by moving the internal clock forward in time
* s.tick(Duration.seconds(10))
* ```
*/
export class TestScheduler extends Scheduler {
/**
* @param reporter is an optional function that will be called
* whenever {@link Scheduler.reportFailure} is invoked.
*
* @param em the {@link ExecutionModel} to use for
* the {@link Scheduler.executionModel}, defaults to
* `"synchronous"` for `TestScheduler`
*/
constructor(reporter, em = ExecutionModel.synchronous()) {
super(em);
this._reporter = reporter || (_ => { });
this._trampoline = new Trampoline(this.reportFailure.bind(this));
}
_state() {
if (!this._stateRef) {
this._stateRef = new TestSchedulerState();
this._stateRef.updateTasks([]);
}
return this._stateRef;
}
/**
* Returns a list of triggered errors, if any happened during
* the {@link tick} execution.
*/
triggeredFailures() { return this._state().triggeredFailures; }
/**
* Returns `true` if there are any tasks left to execute, `false`
* otherwise.
*/
hasTasksLeft() { return this._state().tasks.length > 0; }
executeAsync(runnable) {
this._state().tasks.push([this._state().clock, runnable]);
}
trampoline(runnable) {
this._trampoline.execute(runnable);
}
reportFailure(e) {
this._state().triggeredFailures.push(e);
this._reporter(e);
}
currentTimeMillis() {
return this._state().clock;
}
scheduleOnce(delay, runnable) {
const d = Math.max(0, Duration.of(delay).toMillis());
const state = this._state();
const scheduleAt = state.clock + d;
const insertAt = state.tasksSearch(-scheduleAt);
const ref = [scheduleAt, runnable];
state.tasks.splice(insertAt, 0, ref);
return Cancelable.of(() => {
const filtered = [];
for (const e of state.tasks) {
if (e !== ref)
filtered.push(e);
}
state.updateTasks(filtered);
});
}
withExecutionModel(em) {
const ec2 = new TestScheduler(this._reporter, em);
ec2._stateRef = this._state();
return ec2;
}
/**
* Executes the current batch of tasks that are pending, relative
* to [currentTimeMillis]{@link TestScheduler.currentTimeMillis}.
*
* ```typescript
* const s = new TestScheduler()
*
* // Immediate execution
* s.executeAsync(() => console.log("A"))
* s.executeAsync(() => console.log("B"))
* // Delay with 1 second from now
* s.scheduleOnce(Duration.seconds(1), () => console.log("C"))
* s.scheduleOnce(Duration.seconds(1), () => console.log("D"))
* // Delay with 2 seconds from now
* s.scheduleOnce(Duration.seconds(2), () => console.log("E"))
* s.scheduleOnce(Duration.seconds(2), () => console.log("F"))
*
* // Actual execution...
*
* // Prints A, B
* s.tick()
* // Prints C, D
* s.tick(Duration.seconds(1))
* // Prints E, F
* s.tick(Duration.seconds(1))
* ```
*
* @param duration is an optional timespan to user for incrementing
* [currentTimeMillis]{@link TestScheduler.currentTimeMillis}, thus allowing
* the execution of tasks scheduled to execute with a delay.
*
* @return the number of executed tasks
*/
tick(duration) {
const state = this._state();
let toExecute = [];
let jumpMs = Duration.of(duration || 0).toMillis();
let executed = 0;
while (true) {
const peek = state.tasks.length > 0
? state.tasks[state.tasks.length - 1]
: undefined;
if (peek && peek[0] <= state.clock) {
toExecute.push(state.tasks.pop());
}
else if (toExecute.length > 0) {
// Executing current batch, randomized
while (toExecute.length > 0) {
const index = Math.floor(Math.random() * toExecute.length);
const elem = toExecute[index];
try {
toExecute.splice(index, 1);
this.batchIndex = 0;
elem[1]();
}
catch (e) {
this.reportFailure(e);
}
finally {
executed += 1;
}
}
}
else if (jumpMs > 0) {
const nextTaskJump = peek && (peek[0] - state.clock) || jumpMs;
const add = Math.min(nextTaskJump, jumpMs);
state.clock += add;
jumpMs -= add;
}
else {
break;
}
}
return executed;
}
/**
* Executes the task that's at the top of the stack, in case we
* have a task to execute that doesn't require a jump in time.
*
* ```typescript
* const ec = new TestScheduler()
*
* ec.execute(() => console.log("A"))
* ec.execute(() => console.log("B"))
*
* // Prints B
* ec.tickOne()
* // Prints A
* ec.tickOne()
* ```
*/
tickOne() {
const state = this._state();
const peek = state.tasks.length > 0
? state.tasks[state.tasks.length - 1]
: undefined;
if (!peek || peek[0] > state.clock)
return false;
this._state().tasks.pop();
this.batchIndex = 0;
try {
peek[1]();
}
catch (e) {
this.reportFailure(e);
}
return true;
}
}
class TestSchedulerState {
constructor() {
this.clock = 0;
this.triggeredFailures = [];
this.updateTasks([]);
}
updateTasks(tasks) {
this.tasks = tasks;
this.tasksSearch = arrayBSearchInsertPos(this.tasks, e => -e[0]);
}
}
/**
* Internal, reusable [[GlobalScheduler]] reference.
*
* @Hidden
*/
const globalSchedulerRef = new GlobalScheduler(true);
/**
* Internal utility wrapper a runner in an implementation that
* reports errors with the provided `reporter` callback.
*
* @Hidden
*/
function safeRunnable(r, reporter) {
return () => { try {
r();
}
catch (e) {
reporter(e);
} };
}
//# sourceMappingURL=scheduler.js.map | 34.76007 | 164 | 0.587565 |
023661cc2bd4c841f2284f5efd5de2981c9da31a | 198 | js | JavaScript | examples/monitor_count.js | jangxx/node-win-desktop-duplication | 2ec541465b898493aa176eb13bd7e8f91f2c1e1f | [
"MIT"
] | 16 | 2019-10-11T16:13:39.000Z | 2021-08-03T12:26:49.000Z | examples/monitor_count.js | jangxx/node-win-desktop-duplication | 2ec541465b898493aa176eb13bd7e8f91f2c1e1f | [
"MIT"
] | 7 | 2020-01-04T17:19:24.000Z | 2021-01-16T18:06:37.000Z | examples/monitor_count.js | jangxx/node-win-desktop-duplication | 2ec541465b898493aa176eb13bd7e8f91f2c1e1f | [
"MIT"
] | 5 | 2020-01-04T02:01:15.000Z | 2021-09-16T18:44:04.000Z | const { DesktopDuplication } = require('../');
let monitors = DesktopDuplication.getMonitorCount();
console.log(`This PC has ${monitors} monitor${(monitors > 1) ? "s" : ""} connected to it.`); | 39.6 | 92 | 0.661616 |
02374d8c349ebc5fc13d158205f72197268d87a6 | 687 | js | JavaScript | packages/dependent-path-update/src/get-potential-paths.js | marko-js/utils | f969d06b3d8328b0a97b87f7781d2c781ff6c7d3 | [
"MIT"
] | 3 | 2018-10-19T06:42:41.000Z | 2020-04-07T10:27:52.000Z | packages/dependent-path-update/src/get-potential-paths.js | marko-js/utils | f969d06b3d8328b0a97b87f7781d2c781ff6c7d3 | [
"MIT"
] | 14 | 2018-05-14T19:15:59.000Z | 2021-05-07T03:48:09.000Z | packages/dependent-path-update/src/get-potential-paths.js | marko-js/utils | f969d06b3d8328b0a97b87f7781d2c781ff6c7d3 | [
"MIT"
] | 1 | 2019-10-11T21:33:55.000Z | 2019-10-11T21:33:55.000Z | import path from "path";
import getRelativeRequirePath from "./get-relative-require-path";
export default function getPotentialPaths(projectDir, from, to) {
const fromDir = path.dirname(from);
const projectRelativePath = path.relative(projectDir, fromDir);
const toRelativePath = getRelativeRequirePath(fromDir, to);
const potentialPaths = [toRelativePath];
let index = projectRelativePath.length;
let backtrack = "../";
do {
index = projectRelativePath.lastIndexOf("/", index - 2) + 1;
potentialPaths.push(
path.join(backtrack, projectRelativePath.slice(index), toRelativePath)
);
backtrack += "../";
} while (index);
return potentialPaths;
}
| 31.227273 | 76 | 0.720524 |
02388ebec0a1c6d097c73a0694839e7e0ac23ef7 | 782 | js | JavaScript | scripts/gulp.build.js | greenmochi/kabedon-electron | 652cce4202dd968f2120d312df446a5dbf72a158 | [
"MIT"
] | 1 | 2021-11-23T06:57:43.000Z | 2021-11-23T06:57:43.000Z | scripts/gulp.build.js | greenmochi/kabedon-electron | 652cce4202dd968f2120d312df446a5dbf72a158 | [
"MIT"
] | 13 | 2020-09-06T10:49:41.000Z | 2022-03-25T18:49:20.000Z | scripts/gulp.build.js | greenmochi/ultimate | 652cce4202dd968f2120d312df446a5dbf72a158 | [
"MIT"
] | null | null | null | const path = require("path");
const exec = require("child_process").exec;
function buildUI(done) {
const script = exec("yarn build", {
cwd: path.resolve(process.cwd(), "ui"),
env: {
"NODE_ENV": "production",
},
});
script.stdout.pipe(process.stdout);
script.stderr.pipe(process.stderr);
script.stderr.on("error", (error) => {
done(error);
});
return script;
}
function buildElectron(done) {
const script = exec("yarn build", {
cwd: path.resolve(process.cwd(), "electron"),
env: {
"NODE_ENV": "production",
},
});
script.stdout.pipe(process.stdout);
script.stderr.pipe(process.stderr);
script.stderr.on("error", (error) => {
done(error);
});
return script;
}
module.exports = {
buildUI,
buildElectron,
}; | 21.135135 | 49 | 0.618926 |
0238b273e7f92046cbd7a67a62eb8622d11b3071 | 595 | js | JavaScript | test/main.test.js | see-mike-out/node-clingo | 518afa938d8a1cd6276b08b7da3651e60e273b27 | [
"MIT"
] | null | null | null | test/main.test.js | see-mike-out/node-clingo | 518afa938d8a1cd6276b08b7da3651e60e273b27 | [
"MIT"
] | null | null | null | test/main.test.js | see-mike-out/node-clingo | 518afa938d8a1cd6276b08b7da3651e60e273b27 | [
"MIT"
] | null | null | null | "use strict";
exports.__esModule = true;
var index_1 = require("../src/index");
var config = {
base_url: './test/asp',
project: 'project',
models: 0
};
var clingoObj = new index_1.ClingoStore(config);
clingoObj.addStatements([]);
clingoObj.addFiles(['test.lp']);
clingoObj.run().then(function (result) {
console.log('result1: ', result);
// result1: [ [ 'innocent(sally). ' ] ]
});
clingoObj.addStatements(['motive(dean).']);
clingoObj.run().then(function (result) {
console.log('result2: ', result);
// result2: [ [ 'innocent(dean). ', 'innocent(sally). ' ] ]
});
| 28.333333 | 64 | 0.628571 |
0238e92a496bc63100580eccebca79b79e08d543 | 29,424 | js | JavaScript | node_modules/has-own-property-x/lib/has-own-property-x.js | angusmiller28/Watson-Car-Chatbot | 70060866acb97b7ca5c9ad85ac9ef664c53cdc2a | [
"Apache-2.0"
] | 5 | 2018-04-22T13:33:24.000Z | 2019-06-26T03:20:50.000Z | node_modules/has-own-property-x/lib/has-own-property-x.js | angusmiller28/Watson-Car-Chatbot | 70060866acb97b7ca5c9ad85ac9ef664c53cdc2a | [
"Apache-2.0"
] | null | null | null | node_modules/has-own-property-x/lib/has-own-property-x.js | angusmiller28/Watson-Car-Chatbot | 70060866acb97b7ca5c9ad85ac9ef664c53cdc2a | [
"Apache-2.0"
] | 2 | 2018-06-26T13:55:07.000Z | 2019-06-27T20:28:26.000Z | (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.returnExports = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(_dereq_,module,exports){
/**
* @file Used to determine whether an object has an own property with the specified property key.
* @see {@link http://www.ecma-international.org/ecma-262/6.0/#sec-hasownproperty|7.3.11 HasOwnProperty (O, P)}
* @version 3.1.1
* @author Xotic750 <Xotic750@gmail.com>
* @copyright Xotic750
* @license {@link <https://opensource.org/licenses/MIT> MIT}
* @module has-own-property-x
*/
'use strict';
var toObject = _dereq_('to-object-x');
var toPropertyKey = _dereq_('to-property-key-x');
var hop = Object.prototype.hasOwnProperty;
/**
* The `hasOwnProperty` method returns a boolean indicating whether
* the `object` has the specified `property`. Does not attempt to fix known
* issues in older browsers, but does ES6ify the method.
*
* @param {!Object} object - The object to test.
* @throws {TypeError} If object is null or undefined.
* @param {string|Symbol} property - The name or Symbol of the property to test.
* @returns {boolean} `true` if the property is set on `object`, else `false`.
* @example
* var hasOwnProperty = require('has-own-property-x');
* var o = {
* foo: 'bar'
* };
*
*
* hasOwnProperty(o, 'bar'); // false
* hasOwnProperty(o, 'foo'); // true
* hasOwnProperty(undefined, 'foo');
* // TypeError: Cannot convert undefined or null to object
*/
module.exports = function hasOwnProperty(object, property) {
return hop.call(toObject(object), toPropertyKey(property));
};
},{"to-object-x":14,"to-property-key-x":16}],2:[function(_dereq_,module,exports){
/**
* @file Tests if ES6 Symbol is supported.
* @version 1.4.1
* @author Xotic750 <Xotic750@gmail.com>
* @copyright Xotic750
* @license {@link <https://opensource.org/licenses/MIT> MIT}
* @module has-symbol-support-x
*/
'use strict';
/**
* Indicates if `Symbol`exists and creates the correct type.
* `true`, if it exists and creates the correct type, otherwise `false`.
*
* @type boolean
*/
module.exports = typeof Symbol === 'function' && typeof Symbol('') === 'symbol';
},{}],3:[function(_dereq_,module,exports){
/**
* @file Tests if ES6 @@toStringTag is supported.
* @see {@link http://www.ecma-international.org/ecma-262/6.0/#sec-@@tostringtag|26.3.1 @@toStringTag}
* @version 1.4.1
* @author Xotic750 <Xotic750@gmail.com>
* @copyright Xotic750
* @license {@link <https://opensource.org/licenses/MIT> MIT}
* @module has-to-string-tag-x
*/
'use strict';
/**
* Indicates if `Symbol.toStringTag`exists and is the correct type.
* `true`, if it exists and is the correct type, otherwise `false`.
*
* @type boolean
*/
module.exports = _dereq_('has-symbol-support-x') && typeof Symbol.toStringTag === 'symbol';
},{"has-symbol-support-x":2}],4:[function(_dereq_,module,exports){
'use strict';
var getDay = Date.prototype.getDay;
var tryDateObject = function tryDateObject(value) {
try {
getDay.call(value);
return true;
} catch (e) {
return false;
}
};
var toStr = Object.prototype.toString;
var dateClass = '[object Date]';
var hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
module.exports = function isDateObject(value) {
if (typeof value !== 'object' || value === null) { return false; }
return hasToStringTag ? tryDateObject(value) : toStr.call(value) === dateClass;
};
},{}],5:[function(_dereq_,module,exports){
/**
* @file Determine whether a given value is a function object.
* @version 3.1.1
* @author Xotic750 <Xotic750@gmail.com>
* @copyright Xotic750
* @license {@link <https://opensource.org/licenses/MIT> MIT}
* @module is-function-x
*/
'use strict';
var fToString = Function.prototype.toString;
var toStringTag = _dereq_('to-string-tag-x');
var hasToStringTag = _dereq_('has-to-string-tag-x');
var isPrimitive = _dereq_('is-primitive');
var normalise = _dereq_('normalize-space-x');
var deComment = _dereq_('replace-comments-x');
var funcTag = '[object Function]';
var genTag = '[object GeneratorFunction]';
var asyncTag = '[object AsyncFunction]';
var hasNativeClass = true;
try {
// eslint-disable-next-line no-new-func
Function('"use strict"; return class My {};')();
} catch (ignore) {
hasNativeClass = false;
}
var ctrRx = /^class /;
var isES6ClassFn = function isES6ClassFunc(value) {
try {
return ctrRx.test(normalise(deComment(fToString.call(value), ' ')));
} catch (ignore) {}
// not a function
return false;
};
/**
* Checks if `value` is classified as a `Function` object.
*
* @private
* @param {*} value - The value to check.
* @param {boolean} allowClass - Whether to filter ES6 classes.
* @returns {boolean} Returns `true` if `value` is correctly classified,
* else `false`.
*/
var tryFuncToString = function funcToString(value, allowClass) {
try {
if (hasNativeClass && allowClass === false && isES6ClassFn(value)) {
return false;
}
fToString.call(value);
return true;
} catch (ignore) {}
return false;
};
/**
* Checks if `value` is classified as a `Function` object.
*
* @param {*} value - The value to check.
* @param {boolean} [allowClass=false] - Whether to filter ES6 classes.
* @returns {boolean} Returns `true` if `value` is correctly classified,
* else `false`.
* @example
* var isFunction = require('is-function-x');
*
* isFunction(); // false
* isFunction(Number.MIN_VALUE); // false
* isFunction('abc'); // false
* isFunction(true); // false
* isFunction({ name: 'abc' }); // false
* isFunction(function () {}); // true
* isFunction(new Function ()); // true
* isFunction(function* test1() {}); // true
* isFunction(function test2(a, b) {}); // true
* isFunction(async function test3() {}); // true
* isFunction(class Test {}); // false
* isFunction(class Test {}, true); // true
* isFunction((x, y) => {return this;}); // true
*/
module.exports = function isFunction(value) {
if (isPrimitive(value)) {
return false;
}
var allowClass = arguments.length > 0 ? Boolean(arguments[1]) : false;
if (hasToStringTag) {
return tryFuncToString(value, allowClass);
}
if (hasNativeClass && allowClass === false && isES6ClassFn(value)) {
return false;
}
var strTag = toStringTag(value);
return strTag === funcTag || strTag === genTag || strTag === asyncTag;
};
},{"has-to-string-tag-x":3,"is-primitive":7,"normalize-space-x":11,"replace-comments-x":12,"to-string-tag-x":17}],6:[function(_dereq_,module,exports){
/**
* @file Checks if `value` is `null` or `undefined`.
* @version 1.4.1
* @author Xotic750 <Xotic750@gmail.com>
* @copyright Xotic750
* @license {@link <https://opensource.org/licenses/MIT> MIT}
* @module is-nil-x
*/
'use strict';
var isUndefined = _dereq_('validate.io-undefined');
var isNull = _dereq_('lodash.isnull');
/**
* Checks if `value` is `null` or `undefined`.
*
* @param {*} value - The value to check.
* @returns {boolean} Returns `true` if `value` is nullish, else `false`.
* @example
* var isNil = require('is-nil-x');
*
* isNil(null); // => true
* isNil(void 0); // => true
* isNil(NaN); // => false
*/
module.exports = function isNil(value) {
return isNull(value) || isUndefined(value);
};
},{"lodash.isnull":10,"validate.io-undefined":22}],7:[function(_dereq_,module,exports){
/*!
* is-primitive <https://github.com/jonschlinkert/is-primitive>
*
* Copyright (c) 2014-2015, Jon Schlinkert.
* Licensed under the MIT License.
*/
'use strict';
// see http://jsperf.com/testing-value-is-primitive/7
module.exports = function isPrimitive(value) {
return value == null || (typeof value !== 'function' && typeof value !== 'object');
};
},{}],8:[function(_dereq_,module,exports){
'use strict';
var strValue = String.prototype.valueOf;
var tryStringObject = function tryStringObject(value) {
try {
strValue.call(value);
return true;
} catch (e) {
return false;
}
};
var toStr = Object.prototype.toString;
var strClass = '[object String]';
var hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
module.exports = function isString(value) {
if (typeof value === 'string') { return true; }
if (typeof value !== 'object') { return false; }
return hasToStringTag ? tryStringObject(value) : toStr.call(value) === strClass;
};
},{}],9:[function(_dereq_,module,exports){
'use strict';
var toStr = Object.prototype.toString;
var hasSymbols = typeof Symbol === 'function' && typeof Symbol() === 'symbol';
if (hasSymbols) {
var symToStr = Symbol.prototype.toString;
var symStringRegex = /^Symbol\(.*\)$/;
var isSymbolObject = function isSymbolObject(value) {
if (typeof value.valueOf() !== 'symbol') { return false; }
return symStringRegex.test(symToStr.call(value));
};
module.exports = function isSymbol(value) {
if (typeof value === 'symbol') { return true; }
if (toStr.call(value) !== '[object Symbol]') { return false; }
try {
return isSymbolObject(value);
} catch (e) {
return false;
}
};
} else {
module.exports = function isSymbol(value) {
// this environment does not support Symbols.
return false;
};
}
},{}],10:[function(_dereq_,module,exports){
/**
* lodash 3.0.0 (Custom Build) <https://lodash.com/>
* Build: `lodash modern modularize exports="npm" -o ./`
* Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
* Based on Underscore.js 1.7.0 <http://underscorejs.org/LICENSE>
* Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
* Available under MIT license <https://lodash.com/license>
*/
/**
* Checks if `value` is `null`.
*
* @static
* @memberOf _
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is `null`, else `false`.
* @example
*
* _.isNull(null);
* // => true
*
* _.isNull(void 0);
* // => false
*/
function isNull(value) {
return value === null;
}
module.exports = isNull;
},{}],11:[function(_dereq_,module,exports){
/**
* @file Trims and replaces sequences of whitespace characters by a single space.
* @version 1.3.3
* @author Xotic750 <Xotic750@gmail.com>
* @copyright Xotic750
* @license {@link <https://opensource.org/licenses/MIT> MIT}
* @module normalize-space-x
*/
'use strict';
var trim = _dereq_('trim-x');
var reNormalize = new RegExp('[' + _dereq_('white-space-x').string + ']+', 'g');
/**
* This method strips leading and trailing white-space from a string,
* replaces sequences of whitespace characters by a single space,
* and returns the resulting string.
*
* @param {string} string - The string to be normalized.
* @returns {string} The normalized string.
* @example
* var normalizeSpace = require('normalize-space-x');
*
* normalizeSpace(' \t\na \t\nb \t\n') === 'a b'; // true
*/
module.exports = function normalizeSpace(string) {
return trim(string).replace(reNormalize, ' ');
};
},{"trim-x":21,"white-space-x":23}],12:[function(_dereq_,module,exports){
/**
* @file Replace the comments in a string.
* @version 1.0.3
* @author Xotic750 <Xotic750@gmail.com>
* @copyright Xotic750
* @license {@link <https://opensource.org/licenses/MIT> MIT}
* @module replace-comments-x
*/
'use strict';
var isString = _dereq_('is-string');
var STRIP_COMMENTS = /((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg;
/**
* This method replaces comments in a string.
*
* @param {string} string - The string to be stripped.
* @param {string} [replacement] - The string to be used as a replacement.
* @returns {string} The new string with the comments replaced.
* @example
* var replaceComments = require('replace-comments-x');
*
* replaceComments(test;/* test * /, ''), // 'test;'
* replaceComments(test; // test, ''), // 'test;'
*/
module.exports = function replaceComments(string) {
var replacement = arguments.length > 1 && isString(arguments[1]) ? arguments[1] : '';
return isString(string) ? string.replace(STRIP_COMMENTS, replacement) : '';
};
},{"is-string":8}],13:[function(_dereq_,module,exports){
/**
* @file ES6-compliant shim for RequireObjectCoercible.
* @see {@link http://www.ecma-international.org/ecma-262/6.0/#sec-requireobjectcoercible|7.2.1 RequireObjectCoercible ( argument )}
* @version 1.4.1
* @author Xotic750 <Xotic750@gmail.com>
* @copyright Xotic750
* @license {@link <https://opensource.org/licenses/MIT> MIT}
* @module require-object-coercible-x
*/
'use strict';
var isNil = _dereq_('is-nil-x');
/**
* The abstract operation RequireObjectCoercible throws an error if argument
* is a value that cannot be converted to an Object using ToObject.
*
* @param {*} value - The `value` to check.
* @throws {TypeError} If `value` is a `null` or `undefined`.
* @returns {string} The `value`.
* @example
* var RequireObjectCoercible = require('require-object-coercible-x');
*
* RequireObjectCoercible(); // TypeError
* RequireObjectCoercible(null); // TypeError
* RequireObjectCoercible('abc'); // 'abc'
* RequireObjectCoercible(true); // true
* RequireObjectCoercible(Symbol('foo')); // Symbol('foo')
*/
module.exports = function RequireObjectCoercible(value) {
if (isNil(value)) {
throw new TypeError('Cannot call method on ' + value);
}
return value;
};
},{"is-nil-x":6}],14:[function(_dereq_,module,exports){
/**
* @file ES6-compliant shim for ToObject.
* @see {@link http://www.ecma-international.org/ecma-262/6.0/#sec-toobject|7.1.13 ToObject ( argument )}
* @version 1.4.1
* @author Xotic750 <Xotic750@gmail.com>
* @copyright Xotic750
* @license {@link <https://opensource.org/licenses/MIT> MIT}
* @module to-object-x
*/
'use strict';
var requireObjectCoercible = _dereq_('require-object-coercible-x');
/**
* The abstract operation ToObject converts argument to a value of
* type Object.
*
* @param {*} value - The `value` to convert.
* @throws {TypeError} If `value` is a `null` or `undefined`.
* @returns {!Object} The `value` converted to an object.
* @example
* var ToObject = require('to-object-x');
*
* ToObject(); // TypeError
* ToObject(null); // TypeError
* ToObject('abc'); // Object('abc')
* ToObject(true); // Object(true)
* ToObject(Symbol('foo')); // Object(Symbol('foo'))
*/
module.exports = function toObject(value) {
return Object(requireObjectCoercible(value));
};
},{"require-object-coercible-x":13}],15:[function(_dereq_,module,exports){
/**
* @file Converts a JavaScript object to a primitive value.
* @version 1.0.1
* @author Xotic750 <Xotic750@gmail.com>
* @copyright Xotic750
* @license {@link <https://opensource.org/licenses/MIT> MIT}
* @module to-primitive-x
*/
'use strict';
var hasSymbols = _dereq_('has-symbol-support-x');
var isPrimitive = _dereq_('is-primitive');
var isDate = _dereq_('is-date-object');
var isSymbol = _dereq_('is-symbol');
var isFunction = _dereq_('is-function-x');
var requireObjectCoercible = _dereq_('require-object-coercible-x');
var isNil = _dereq_('is-nil-x');
var isUndefined = _dereq_('validate.io-undefined');
var symToPrimitive = hasSymbols && Symbol.toPrimitive;
var symValueOf = hasSymbols && Symbol.prototype.valueOf;
var toStringOrder = ['toString', 'valueOf'];
var toNumberOrder = ['valueOf', 'toString'];
var orderLength = 2;
var ordinaryToPrimitive = function _ordinaryToPrimitive(O, hint) {
requireObjectCoercible(O);
if (typeof hint !== 'string' || (hint !== 'number' && hint !== 'string')) {
throw new TypeError('hint must be "string" or "number"');
}
var methodNames = hint === 'string' ? toStringOrder : toNumberOrder;
var method;
var result;
for (var i = 0; i < orderLength; i += 1) {
method = O[methodNames[i]];
if (isFunction(method)) {
result = method.call(O);
if (isPrimitive(result)) {
return result;
}
}
}
throw new TypeError('No default value');
};
var getMethod = function _getMethod(O, P) {
var func = O[P];
if (isNil(func) === false) {
if (isFunction(func) === false) {
throw new TypeError(func + ' returned for property ' + P + ' of object ' + O + ' is not a function');
}
return func;
}
return void 0;
};
// http://www.ecma-international.org/ecma-262/6.0/#sec-toprimitive
/**
* This method converts a JavaScript object to a primitive value.
* Note: When toPrimitive is called with no hint, then it generally behaves as
* if the hint were Number. However, objects may over-ride this behaviour by
* defining a @@toPrimitive method. Of the objects defined in this specification
* only Date objects (see 20.3.4.45) and Symbol objects (see 19.4.3.4) over-ride
* the default ToPrimitive behaviour. Date objects treat no hint as if the hint
* were String.
*
* @param {*} input - The input to convert.
* @param {constructor} [prefferedtype] - The preffered type (String or Number).
* @throws {TypeError} If unable to convert input to a primitive.
* @returns {string|number} The converted input as a primitive.
* @example
* var toPrimitive = require('to-primitive-x');
*
* var date = new Date(0);
* toPrimitive(date)); // Thu Jan 01 1970 01:00:00 GMT+0100 (CET)
* toPrimitive(date, String)); // Thu Jan 01 1970 01:00:00 GMT+0100 (CET)
* toPrimitive(date, Number)); // 0
*/
module.exports = function toPrimitive(input, preferredType) {
if (isPrimitive(input)) {
return input;
}
var hint = 'default';
if (arguments.length > 1) {
if (preferredType === String) {
hint = 'string';
} else if (preferredType === Number) {
hint = 'number';
}
}
var exoticToPrim;
if (hasSymbols) {
if (symToPrimitive) {
exoticToPrim = getMethod(input, symToPrimitive);
} else if (isSymbol(input)) {
exoticToPrim = symValueOf;
}
}
if (isUndefined(exoticToPrim) === false) {
var result = exoticToPrim.call(input, hint);
if (isPrimitive(result)) {
return result;
}
throw new TypeError('unable to convert exotic object to primitive');
}
if (hint === 'default' && (isDate(input) || isSymbol(input))) {
hint = 'string';
}
return ordinaryToPrimitive(input, hint === 'default' ? 'number' : hint);
};
},{"has-symbol-support-x":2,"is-date-object":4,"is-function-x":5,"is-nil-x":6,"is-primitive":7,"is-symbol":9,"require-object-coercible-x":13,"validate.io-undefined":22}],16:[function(_dereq_,module,exports){
/**
* @file Converts argument to a value that can be used as a property key.
* @version 2.0.1
* @author Xotic750 <Xotic750@gmail.com>
* @copyright Xotic750
* @license {@link <https://opensource.org/licenses/MIT> MIT}
* @module to-property-key-x
*/
'use strict';
var hasSymbols = _dereq_('has-symbol-support-x');
var toPrimitive = _dereq_('to-primitive-x');
var toStr = _dereq_('to-string-x');
/**
* This method Converts argument to a value that can be used as a property key.
*
* @param {*} argument - The argument to onvert to a property key.
* @returns {string|symbol} The converted argument.
* @example
* var toPropertyKey = require('to-property-key-x');
*
* toPropertyKey(); // 'undefined'
* toPropertyKey(1); // '1'
* toPropertyKey(true); // 'true'
* var symbol = Symbol('a');
* toPropertyKey(symbol); // symbol
*/
module.exports = function toPropertyKey(argument) {
var key = toPrimitive(argument, String);
return hasSymbols && typeof key === 'symbol' ? key : toStr(key);
};
},{"has-symbol-support-x":2,"to-primitive-x":15,"to-string-x":18}],17:[function(_dereq_,module,exports){
/**
* @file Get an object's ES6 @@toStringTag.
* @see {@link http://www.ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring|19.1.3.6 Object.prototype.toString ( )}
* @version 1.4.1
* @author Xotic750 <Xotic750@gmail.com>
* @copyright Xotic750
* @license {@link <https://opensource.org/licenses/MIT> MIT}
* @module to-string-tag-x
*/
'use strict';
var isNull = _dereq_('lodash.isnull');
var isUndefined = _dereq_('validate.io-undefined');
var toStr = Object.prototype.toString;
/**
* The `toStringTag` method returns "[object type]", where type is the
* object type.
*
* @param {*} value - The object of which to get the object type string.
* @returns {string} The object type string.
* @example
* var toStringTag = require('to-string-tag-x');
*
* var o = new Object();
* toStringTag(o); // returns '[object Object]'
*/
module.exports = function toStringTag(value) {
if (isNull(value)) {
return '[object Null]';
}
if (isUndefined(value)) {
return '[object Undefined]';
}
return toStr.call(value);
};
},{"lodash.isnull":10,"validate.io-undefined":22}],18:[function(_dereq_,module,exports){
/**
* @file ES6-compliant shim for ToString.
* @see {@link http://www.ecma-international.org/ecma-262/6.0/#sec-tostring|7.1.12 ToString ( argument )}
* @version 1.4.1
* @author Xotic750 <Xotic750@gmail.com>
* @copyright Xotic750
* @license {@link <https://opensource.org/licenses/MIT> MIT}
* @module to-string-x
*/
'use strict';
var isSymbol = _dereq_('is-symbol');
/**
* The abstract operation ToString converts argument to a value of type String.
*
* @param {*} value - The value to convert to a string.
* @throws {TypeError} If `value` is a Symbol.
* @returns {string} The converted value.
* @example
* var $toString = require('to-string-x');
*
* $toString(); // 'undefined'
* $toString(null); // 'null'
* $toString('abc'); // 'abc'
* $toString(true); // 'true'
* $toString(Symbol('foo')); // TypeError
* $toString(Symbol.iterator); // TypeError
* $toString(Object(Symbol.iterator)); // TypeError
*/
module.exports = function ToString(value) {
if (isSymbol(value)) {
throw new TypeError('Cannot convert a Symbol value to a string');
}
return String(value);
};
},{"is-symbol":9}],19:[function(_dereq_,module,exports){
/**
* @file This method removes whitespace from the left end of a string.
* @version 1.3.5
* @author Xotic750 <Xotic750@gmail.com>
* @copyright Xotic750
* @license {@link <https://opensource.org/licenses/MIT> MIT}
* @module trim-left-x
*/
'use strict';
var $toString = _dereq_('to-string-x');
var reLeft = new RegExp('^[' + _dereq_('white-space-x').string + ']+');
/**
* This method removes whitespace from the left end of a string.
*
* @param {string} string - The string to trim the left end whitespace from.
* @returns {undefined|string} The left trimmed string.
* @example
* var trimLeft = require('trim-left-x');
*
* trimLeft(' \t\na \t\n') === 'a \t\n'; // true
*/
module.exports = function trimLeft(string) {
return $toString(string).replace(reLeft, '');
};
},{"to-string-x":18,"white-space-x":23}],20:[function(_dereq_,module,exports){
/**
* @file This method removes whitespace from the right end of a string.
* @version 1.3.3
* @author Xotic750 <Xotic750@gmail.com>
* @copyright Xotic750
* @license {@link <https://opensource.org/licenses/MIT> MIT}
* @module trim-right-x
*/
'use strict';
var $toString = _dereq_('to-string-x');
var reRight = new RegExp('[' + _dereq_('white-space-x').string + ']+$');
/**
* This method removes whitespace from the right end of a string.
*
* @param {string} string - The string to trim the right end whitespace from.
* @returns {undefined|string} The right trimmed string.
* @example
* var trimRight = require('trim-right-x');
*
* trimRight(' \t\na \t\n') === ' \t\na'; // true
*/
module.exports = function trimRight(string) {
return $toString(string).replace(reRight, '');
};
},{"to-string-x":18,"white-space-x":23}],21:[function(_dereq_,module,exports){
/**
* @file This method removes whitespace from the left and right end of a string.
* @version 1.0.3
* @author Xotic750 <Xotic750@gmail.com>
* @copyright Xotic750
* @license {@link <https://opensource.org/licenses/MIT> MIT}
* @module trim-x
*/
'use strict';
var trimLeft = _dereq_('trim-left-x');
var trimRight = _dereq_('trim-right-x');
/**
* This method removes whitespace from the left and right end of a string.
*
* @param {string} string - The string to trim the whitespace from.
* @returns {undefined|string} The trimmed string.
* @example
* var trim = require('trim-x');
*
* trim(' \t\na \t\n') === 'a'; // true
*/
module.exports = function trim(string) {
return trimLeft(trimRight(string));
};
},{"trim-left-x":19,"trim-right-x":20}],22:[function(_dereq_,module,exports){
/**
*
* VALIDATE: undefined
*
*
* DESCRIPTION:
* - Validates if a value is undefined.
*
*
* NOTES:
* [1]
*
*
* TODO:
* [1]
*
*
* LICENSE:
* MIT
*
* Copyright (c) 2014. Athan Reines.
*
*
* AUTHOR:
* Athan Reines. kgryte@gmail.com. 2014.
*
*/
'use strict';
/**
* FUNCTION: isUndefined( value )
* Validates if a value is undefined.
*
* @param {*} value - value to be validated
* @returns {Boolean} boolean indicating whether value is undefined
*/
function isUndefined( value ) {
return value === void 0;
} // end FUNCTION isUndefined()
// EXPORTS //
module.exports = isUndefined;
},{}],23:[function(_dereq_,module,exports){
/**
* @file List of ECMAScript5 white space characters.
* @version 2.0.3
* @author Xotic750 <Xotic750@gmail.com>
* @copyright Xotic750
* @license {@link <https://opensource.org/licenses/MIT> MIT}
* @module white-space-x
*/
'use strict';
/**
* An array of the ES5 whitespace char codes, string, and their descriptions.
*
* @name list
* @type Array.<Object>
* @example
* var whiteSpace = require('white-space-x');
* whiteSpaces.list.foreach(function (item) {
* console.log(lib.description, item.code, item.string);
* });
*/
var list = [
{
code: 0x0009,
description: 'Tab',
string: '\u0009'
},
{
code: 0x000a,
description: 'Line Feed',
string: '\u000a'
},
{
code: 0x000b,
description: 'Vertical Tab',
string: '\u000b'
},
{
code: 0x000c,
description: 'Form Feed',
string: '\u000c'
},
{
code: 0x000d,
description: 'Carriage Return',
string: '\u000d'
},
{
code: 0x0020,
description: 'Space',
string: '\u0020'
},
/*
{
code: 0x0085,
description: 'Next line - Not ES5 whitespace',
string: '\u0085'
}
*/
{
code: 0x00a0,
description: 'No-break space',
string: '\u00a0'
},
{
code: 0x1680,
description: 'Ogham space mark',
string: '\u1680'
},
{
code: 0x180e,
description: 'Mongolian vowel separator',
string: '\u180e'
},
{
code: 0x2000,
description: 'En quad',
string: '\u2000'
},
{
code: 0x2001,
description: 'Em quad',
string: '\u2001'
},
{
code: 0x2002,
description: 'En space',
string: '\u2002'
},
{
code: 0x2003,
description: 'Em space',
string: '\u2003'
},
{
code: 0x2004,
description: 'Three-per-em space',
string: '\u2004'
},
{
code: 0x2005,
description: 'Four-per-em space',
string: '\u2005'
},
{
code: 0x2006,
description: 'Six-per-em space',
string: '\u2006'
},
{
code: 0x2007,
description: 'Figure space',
string: '\u2007'
},
{
code: 0x2008,
description: 'Punctuation space',
string: '\u2008'
},
{
code: 0x2009,
description: 'Thin space',
string: '\u2009'
},
{
code: 0x200a,
description: 'Hair space',
string: '\u200a'
},
/*
{
code: 0x200b,
description: 'Zero width space - Not ES5 whitespace',
string: '\u200b'
},
*/
{
code: 0x2028,
description: 'Line separator',
string: '\u2028'
},
{
code: 0x2029,
description: 'Paragraph separator',
string: '\u2029'
},
{
code: 0x202f,
description: 'Narrow no-break space',
string: '\u202f'
},
{
code: 0x205f,
description: 'Medium mathematical space',
string: '\u205f'
},
{
code: 0x3000,
description: 'Ideographic space',
string: '\u3000'
},
{
code: 0xfeff,
description: 'Byte Order Mark',
string: '\ufeff'
}
];
var string = '';
var length = list.length;
for (var i = 0; i < length; i += 1) {
string += list[i].string;
}
/**
* A string of the ES5 whitespace characters.
*
* @name string
* @type string
* @example
* var whiteSpace = require('white-space-x');
* var characters = [
* '\u0009',
* '\u000a',
* '\u000b',
* '\u000c',
* '\u000d',
* '\u0020',
* '\u00a0',
* '\u1680',
* '\u180e',
* '\u2000',
* '\u2001',
* '\u2002',
* '\u2003',
* '\u2004',
* '\u2005',
* '\u2006',
* '\u2007',
* '\u2008',
* '\u2009',
* '\u200a',
* '\u2028',
* '\u2029',
* '\u202f',
* '\u205f',
* '\u3000',
* '\ufeff'
* ];
* var ws = characters.join('');
* var re1 = new RegExp('^[' + whiteSpace.string + ']+$)');
* re1.test(ws); // true
*/
module.exports = {
list: list,
string: string
};
},{}]},{},[1])(1)
}); | 27.447761 | 853 | 0.650999 |
0238f606a7624051be95b576c2f960befad95083 | 88 | js | JavaScript | packages/log2/src/bin/lsklog.js | lskjs/lskjs | ecb8578e421a2e460c7b1afe259f033b9945b96c | [
"MIT"
] | 9 | 2019-06-26T18:42:06.000Z | 2021-04-03T17:47:05.000Z | packages/log2/src/bin/lsklog.js | lskjs/lskjs | ecb8578e421a2e460c7b1afe259f033b9945b96c | [
"MIT"
] | 50 | 2019-11-15T14:57:38.000Z | 2022-02-20T12:20:21.000Z | packages/log2/src/bin/lsklog.js | lskjs/lskjs | ecb8578e421a2e460c7b1afe259f033b9945b96c | [
"MIT"
] | 7 | 2020-04-02T07:09:24.000Z | 2021-04-03T17:47:06.000Z | export * from '@lskjs/log/bin/lsklog';
export { default } from '@lskjs/log/bin/lsklog';
| 29.333333 | 48 | 0.693182 |
0239319e3b3908a2e03373fc5f52f8211d149d37 | 29 | js | JavaScript | sjsc/src/test/resources/testinput/endtoend/printstub.js | msridhar/SJS | 2bc945a759c7531ff83a65622f002b733c0d3a2a | [
"Apache-2.0"
] | 34 | 2016-10-30T00:25:17.000Z | 2022-03-17T05:32:38.000Z | sjsc/src/test/resources/testinput/endtoend/printstub.js | msridhar/SJS | 2bc945a759c7531ff83a65622f002b733c0d3a2a | [
"Apache-2.0"
] | null | null | null | sjsc/src/test/resources/testinput/endtoend/printstub.js | msridhar/SJS | 2bc945a759c7531ff83a65622f002b733c0d3a2a | [
"Apache-2.0"
] | 6 | 2016-10-23T01:02:14.000Z | 2020-01-20T19:38:58.000Z | print("Hello, via print()");
| 14.5 | 28 | 0.62069 |
02393c3791ce35df2aa59e7ded5b225070cf00c9 | 1,927 | js | JavaScript | src/wysihat/dom/range.js | swilliams/jq-wysihat | 1a956917b285e008917c7c7b4790484539da8147 | [
"MIT"
] | 4 | 2015-01-31T21:31:00.000Z | 2016-03-07T15:14:05.000Z | src/wysihat/dom/range.js | swilliams/jq-wysihat | 1a956917b285e008917c7c7b4790484539da8147 | [
"MIT"
] | 1 | 2016-04-07T19:00:57.000Z | 2016-04-07T19:00:57.000Z | src/wysihat/dom/range.js | swilliams/jq-wysihat | 1a956917b285e008917c7c7b4790484539da8147 | [
"MIT"
] | null | null | null | //= require "ierange"
$.extend(Range.prototype, (function() {
function beforeRange(range) {
if (!range || !range.compareBoundaryPoints) return false;
return (this.compareBoundaryPoints(this.START_TO_START, range) == -1 &&
this.compareBoundaryPoints(this.START_TO_END, range) == -1 &&
this.compareBoundaryPoints(this.END_TO_END, range) == -1 &&
this.compareBoundaryPoints(this.END_TO_START, range) == -1);
}
function afterRange(range) {
if (!range || !range.compareBoundaryPoints) return false;
return (this.compareBoundaryPoints(this.START_TO_START, range) == 1 &&
this.compareBoundaryPoints(this.START_TO_END, range) == 1 &&
this.compareBoundaryPoints(this.END_TO_END, range) == 1 &&
this.compareBoundaryPoints(this.END_TO_START, range) == 1);
}
function betweenRange(range) {
if (!range || !range.compareBoundaryPoints) return false;
return !(this.beforeRange(range) || this.afterRange(range));
}
function equalRange(range) {
if (!range || !range.compareBoundaryPoints) return false;
return (this.compareBoundaryPoints(this.START_TO_START, range) == 0 &&
this.compareBoundaryPoints(this.START_TO_END, range) == 1 &&
this.compareBoundaryPoints(this.END_TO_END, range) == 0 &&
this.compareBoundaryPoints(this.END_TO_START, range) == -1);
}
function getNode() {
var parent = this.commonAncestorContainer;
while (parent.nodeType == Node.TEXT_NODE)
parent = parent.parentNode;
var child;
var that = this;
$.each(parent.children, function(index, child) {
var range = document.createRange();
range.selectNodeContents(child);
child = that.betweenRange(range);
});
return $(child || parent);
}
return {
beforeRange: beforeRange,
afterRange: afterRange,
betweenRange: betweenRange,
equalRange: equalRange,
getNode: getNode
};
})());
| 33.224138 | 75 | 0.6767 |
02399a9c8c31e1f661a959270049db755ff45214 | 1,322 | js | JavaScript | packages/json-sort-cli/test/test-v.js | avigoldman/codsen | bb52dff3589256e4a27f5020f637f20f9f847a4b | [
"MIT"
] | 63 | 2021-01-31T04:14:48.000Z | 2022-03-22T23:51:41.000Z | packages/json-sort-cli/test/test-v.js | avigoldman/codsen | bb52dff3589256e4a27f5020f637f20f9f847a4b | [
"MIT"
] | 40 | 2021-01-28T01:49:44.000Z | 2022-03-31T14:57:32.000Z | packages/json-sort-cli/test/test-v.js | avigoldman/codsen | bb52dff3589256e4a27f5020f637f20f9f847a4b | [
"MIT"
] | 8 | 2021-03-02T03:23:50.000Z | 2022-01-21T16:06:04.000Z | import fs from "fs-extra";
import path from "path";
import tap from "tap";
import execa from "execa";
import tempy from "tempy";
import { createRequire } from "module";
const require = createRequire(import.meta.url);
const pack = require("../package.json");
// -----------------------------------------------------------------------------
tap.test("01 - version output mode", async (t) => {
const reportedVersion1 = await execa("./cli.js", ["-v"]);
t.equal(reportedVersion1.stdout, pack.version, "01.01");
const reportedVersion2 = await execa("./cli.js", ["--version"]);
t.equal(reportedVersion2.stdout, pack.version, "01.02");
t.end();
});
tap.test("02 - version flag trumps silent flag", async (t) => {
const unsortedFile = `{\n "z": 1,\n "a": 2\n}\n`;
const tempFolder = tempy.directory();
// const tempFolder = "temp";
fs.ensureDirSync(path.resolve(tempFolder));
fs.writeFileSync(path.join(tempFolder, "sortme.json"), unsortedFile);
const output = await execa("./cli.js", [tempFolder, "-v", "-s"]).catch(
(err) => t.fail(err)
);
t.match(output.stdout, /\d+\.\d+\.\d+/, "02.01");
t.match(output.exitCode, 0, "02.02");
t.strictSame(
fs.readFileSync(path.join(tempFolder, "sortme.json"), "utf8"),
unsortedFile,
"02.03 - file is untouched though"
);
t.end();
});
| 31.47619 | 80 | 0.602874 |
0239ad010bceb4ce07adff704148fc57b0e96bd8 | 596 | js | JavaScript | public/template/js/offset_overlay.js | nudievira/tugaspbo4-nudi | f9206adb54ceeea6f81d7c51b596c61c4088517a | [
"MIT"
] | null | null | null | public/template/js/offset_overlay.js | nudievira/tugaspbo4-nudi | f9206adb54ceeea6f81d7c51b596c61c4088517a | [
"MIT"
] | null | null | null | public/template/js/offset_overlay.js | nudievira/tugaspbo4-nudi | f9206adb54ceeea6f81d7c51b596c61c4088517a | [
"MIT"
] | null | null | null | jQuery(document).ready(function($){$(document).on('click','.pull-bs-canvas-right, .pull-bs-canvas-left',function(){$('body').prepend('<div class="bs-canvas-overlay bg-dark position-fixed w-100 h-100"></div>');if($(this).hasClass('pull-bs-canvas-right'))
$('.bs-canvas-right').addClass('mr-0');else
$('.bs-canvas-left').addClass('ml-0');return false;});$(document).on('click','.bs-canvas-close, .bs-canvas-overlay',function(){var elm=$(this).hasClass('bs-canvas-close')?$(this).closest('.bs-canvas'):$('.bs-canvas');elm.removeClass('mr-0 ml-0');$('.bs-canvas-overlay').remove();return false;});}); | 198.666667 | 298 | 0.672819 |
0239c8e7c9b155bf97356314165887f19934a0bc | 2,443 | js | JavaScript | lib/common/crypto.js | junko911/whiteflag-api | c98ed9b2b84f758e44f5136931bffc884dcf929f | [
"CC0-1.0"
] | 4 | 2019-03-29T19:57:17.000Z | 2022-02-23T14:28:03.000Z | lib/common/crypto.js | junko911/whiteflag-api | c98ed9b2b84f758e44f5136931bffc884dcf929f | [
"CC0-1.0"
] | 16 | 2019-04-15T09:16:05.000Z | 2021-11-04T19:11:22.000Z | lib/common/crypto.js | junko911/whiteflag-api | c98ed9b2b84f758e44f5136931bffc884dcf929f | [
"CC0-1.0"
] | 5 | 2020-10-24T22:47:59.000Z | 2022-02-06T22:13:39.000Z | 'use strict';
/**
* @module lib/common/crypto
* @summary Whiteflag API common cryptographic functions
* @description Module with synchronous cryptographic functions
* @tutorial modules
*/
module.exports = {
// Crypto functions
hkdf,
hash,
zeroise
};
// Node.js core modules //
const crypto = require('crypto');
// MAIN MODULE FUNCTIONS //
/**
* Hash-based Key Derivation Function using SHA-256 i.a.w. RFC 5869
* @function hkdf
* @alias module:lib/common/crypto.hkdf
* @param {buffer} ikm input key material
* @param {buffer} salt salt
* @param {buffer} info info
* @param {buffer} keylen output key length in octets
* @returns {buffer} generated key
*/
function hkdf(ikm, salt, info, keylen) {
const HASHALG = 'sha256';
const HASHLEN = 32;
const N = Math.ceil(keylen / HASHLEN);
// Function variables
let okm = Buffer.alloc(keylen);
let t = Buffer.alloc(HASHLEN);
let offset = 0;
// Step 1. HKDF-Extract(salt, IKM) -> PRK
let prk = crypto.createHmac(HASHALG, salt).update(ikm).digest();
zeroise(ikm);
// Step 2. HKDF-Expand(PRK, info, L) -> OKM
for (let i = 1; i <= N; i++) {
// Concatinate previous hash t, info and counter i
let block = Buffer.alloc(offset + info.length + 1);
t.copy(block, 0);
info.copy(block, offset);
block[offset + info.length] = i;
// Get hash and add to okm buffer
let hash = crypto.createHmac(HASHALG, prk).update(block).digest();
hash.copy(t, 0);
hash.copy(okm, offset * (i - 1));
// Block contains t after after first interation
offset = HASHLEN;
}
// Return output key material
return okm;
}
/**
* Basic hashing function
* @function hash
* @alias module:lib/common/crypto.hash
* @param {string} data data to hash
* @param {number} [lentgh] output length in octets
* @param {string} [algorithm] hash algorithm
* @returns {string} hexadecimal representation of the hash
*/
function hash(data, length, algorithm = 'sha256') {
const output = crypto.createHash(algorithm).update(data).digest('hex');
if (!length) return output;
return output.substr(0, (length * 2));
}
/**
* Basic zeroisation function
* @function zeroise
* @alias module:lib/common/crypto.zeroise
* @param {buffer} buffer buffer to zeroise
* @returns {buffer} the zeroised buffer
*/
function zeroise(buffer) {
return buffer.fill(0);
}
| 27.761364 | 75 | 0.648383 |
023a08823c7a2c8ee46960a5a14e55215e9e37c0 | 6,856 | js | JavaScript | platform-shop/src/main/webapp/js/shop/brand.js | outshine/platform | 71dc13b23b4a9eb5ceacbf794362c727b606aec6 | [
"Apache-2.0"
] | 4 | 2018-04-20T07:01:51.000Z | 2020-11-30T03:01:35.000Z | platform-shop/src/main/webapp/js/shop/brand.js | outshine/platform | 71dc13b23b4a9eb5ceacbf794362c727b606aec6 | [
"Apache-2.0"
] | 13 | 2019-11-13T01:30:11.000Z | 2022-03-23T13:05:51.000Z | platform-shop/src/main/webapp/js/shop/brand.js | outshine/platform | 71dc13b23b4a9eb5ceacbf794362c727b606aec6 | [
"Apache-2.0"
] | 2 | 2018-07-03T08:07:35.000Z | 2019-09-19T08:05:31.000Z | $(function () {
$("#jqGrid").jqGrid({
url: '../brand/list',
datatype: "json",
colModel: [{
label: 'id', name: 'id', index: 'id', key: true, hidden: true
}, {
label: '品牌名称', name: 'name', index: 'name', width: 80
}, {
label: '图片', name: 'listPicUrl', index: 'list_pic_url', width: 80, formatter: function (value) {
return transImg(value);
}
}, {
label: '描述', name: 'simpleDesc', index: 'simple_desc', width: 80
}, {
label: '图片', name: 'picUrl', index: 'pic_url', width: 80, formatter: function (value) {
return transImg(value);
}
}, {
label: '排序', name: 'sortOrder', index: 'sort_order', width: 80
}, {
label: '显示', name: 'isShow', index: 'is_show', width: 80, formatter: function (value) {
return transIsNot(value)
}
}, {
label: '展示价格', name: 'floorPrice', index: 'floor_Price', width: 80
}, {
label: 'app显示图片', name: 'appListPicUrl', index: 'app_list_pic_url', width: 80, formatter: function (value) {
return transImg(value);
}
}, {
label: '新品牌', name: 'isNew', index: 'is_new', width: 80, formatter: function (value) {
return transIsNot(value)
}
}, {
label: '新品牌图片', name: 'newPicUrl', index: 'new_pic_url', width: 80, formatter: function (value) {
return transImg(value);
}
}, {
label: '新品牌排序', name: 'newSortOrder', index: 'new_sort_order', width: 80
}],
viewrecords: true,
height: 385,
rowNum: 10,
rowList: [10, 30, 50],
rownumbers: true,
rownumWidth: 25,
autowidth: true,
multiselect: true,
pager: "#jqGridPager",
jsonReader: {
root: "page.list",
page: "page.currPage",
total: "page.totalPage",
records: "page.totalCount"
},
prmNames: {
page: "page",
rows: "limit",
order: "order"
},
gridComplete: function () {
$("#jqGrid").closest(".ui-jqgrid-bdiv").css({"overflow-x": "hidden"});
}
});
});
var vm = new Vue({
el: '#rrapp',
data: {
showList: true,
title: null,
brand: {listPicUrl: '', picUrl: '', appListPicUrl: '', newPicUrl: '', isShow: 1, isNew: 0},
ruleValidate: {
name: [
{required: true, message: '品牌名称不能为空', trigger: 'blur'}
]
},
q: {
name: ''
}
},
methods: {
query: function () {
vm.reload();
},
add: function () {
vm.showList = false;
vm.title = "新增";
vm.brand = {listPicUrl: '', picUrl: '', appListPicUrl: '', newPicUrl: '', isShow: 1, isNew: 0};
},
update: function (event) {
var id = getSelectedRow();
if (id == null) {
return;
}
vm.showList = false;
vm.title = "修改";
vm.getInfo(id)
},
saveOrUpdate: function (event) {
var url = vm.brand.id == null ? "../brand/save" : "../brand/update";
$.ajax({
type: "POST",
url: url,
contentType: "application/json",
data: JSON.stringify(vm.brand),
success: function (r) {
if (r.code === 0) {
alert('操作成功', function (index) {
vm.reload();
});
} else {
alert(r.msg);
}
}
});
},
del: function (event) {
var ids = getSelectedRows();
if (ids == null) {
return;
}
confirm('确定要删除选中的记录?', function () {
$.ajax({
type: "POST",
url: "../brand/delete",
contentType: "application/json",
data: JSON.stringify(ids),
success: function (r) {
if (r.code == 0) {
alert('操作成功', function (index) {
$("#jqGrid").trigger("reloadGrid");
});
} else {
alert(r.msg);
}
}
});
});
},
getInfo: function (id) {
$.get("../brand/info/" + id, function (r) {
vm.brand = r.brand;
});
},
reload: function (event) {
vm.showList = true;
var page = $("#jqGrid").jqGrid('getGridParam', 'page');
$("#jqGrid").jqGrid('setGridParam', {
postData: {'name': vm.q.name},
page: page
}).trigger("reloadGrid");
vm.handleReset('formValidate');
},
handleSuccessListPicUrl: function (res, file) {
vm.brand.listPicUrl = file.response.url;
},
handleSuccessPicUrl: function (res, file) {
vm.brand.picUrl = file.response.url;
},
handleSuccessAppListPicUrl: function (res, file) {
vm.brand.appListPicUrl = file.response.url;
},
handleSuccessNewPicUrl: function (res, file) {
vm.brand.newPicUrl = file.response.url;
},
handleFormatError: function (file) {
this.$Notice.warning({
title: '文件格式不正确',
desc: '文件 ' + file.name + ' 格式不正确,请上传 jpg 或 png 格式的图片。'
});
},
handleMaxSize: function (file) {
this.$Notice.warning({
title: '超出文件大小限制',
desc: '文件 ' + file.name + ' 太大,不能超过 2M。'
});
},
eyeImageListPicUrl: function () {
var url = vm.brand.listPicUrl;
eyeImage(url);
},
eyeImagePicUrl: function () {
var url = vm.brand.picUrl;
eyeImage(url);
},
eyeImageAppListPicUrl: function () {
var url = vm.brand.appListPicUrl;
eyeImage(url);
},
eyeImageNewPicUrl: function () {
var url = vm.brand.newPicUrl;
eyeImage(url);
},
handleSubmit: function (name) {
handleSubmitValidate(this, name, function () {
vm.saveOrUpdate()
});
},
handleReset: function (name) {
handleResetForm(this, name);
}
}
}); | 33.120773 | 120 | 0.424883 |
023b410e63b335fa122c3c3b2e4901804ec9702a | 99 | js | JavaScript | resources/js/react/components/providers/myRole.js | jsaubon/vajobmarket | b5f509f6ade0f130e631ecf70836d8c40dcc8a3a | [
"MIT"
] | null | null | null | resources/js/react/components/providers/myRole.js | jsaubon/vajobmarket | b5f509f6ade0f130e631ecf70836d8c40dcc8a3a | [
"MIT"
] | null | null | null | resources/js/react/components/providers/myRole.js | jsaubon/vajobmarket | b5f509f6ade0f130e631ecf70836d8c40dcc8a3a | [
"MIT"
] | null | null | null | export const myRole = localStorage.userdata
? JSON.parse(localStorage.userdata).role
: "";
| 24.75 | 44 | 0.707071 |
023c1af1e92afd27c8249f6e74835b925fc023b7 | 4,003 | js | JavaScript | src/index.js | Jaid/action-test | 2b063893b6fb646ff15ad2032c5fa2768a82d213 | [
"MIT"
] | null | null | null | src/index.js | Jaid/action-test | 2b063893b6fb646ff15ad2032c5fa2768a82d213 | [
"MIT"
] | null | null | null | src/index.js | Jaid/action-test | 2b063893b6fb646ff15ad2032c5fa2768a82d213 | [
"MIT"
] | null | null | null | import path from "node:path"
import fsp from "@absolunet/fsp"
import {getInput, setFailed} from "@actions/core"
import {exec} from "@actions/exec"
import {mkdirP, which} from "@actions/io"
import filterNil from "./lib/esm/filter-nil.js"
import {globby} from "globby"
import getBooleanInput from "./lib/esm/get-boolean-action-input.js"
import hasContent, {isEmpty} from "./lib/esm/has-content.js"
import zahl from "./lib/esm/zahl.js"
async function main() {
const githubToken = getInput("githubToken")
const prepareActionJest = getBooleanInput("prepareActionJest", {required: true})
if (prepareActionJest) {
const execOptions = {}
if (githubToken) {
execOptions.env = {
...process.env,
GITHUB_TOKEN: githubToken,
}
}
await exec("npm", ["run", "prepareActionJest", "--if-present"], execOptions)
}
const npmPrepareScript = getInput("npmPrepareScript")
if (npmPrepareScript) {
/**
* @type {import("@actions/exec").ExecOptions}
*/
const execOptions = {}
if (githubToken) {
execOptions.env = {
...process.env,
GITHUB_TOKEN: githubToken,
}
}
await exec("npm", ["run", npmPrepareScript], execOptions)
}
const possibleEntryFiles = await globby("dist/package/production/*.js")
if (isEmpty(possibleEntryFiles)) {
console.log(`No entry point files found in ${path.resolve("dist/package/production")}`)
return
}
const pickedEntry = possibleEntryFiles[0]
const jestReportDirectory = getInput("jestReportDirectory")
await mkdirP(jestReportDirectory)
const logHeapUsage = getInput("logHeapUsage")
if (logHeapUsage) {
console.log("Logging RAM usage in Jest tests")
}
const failOnOpenHandles = getInput("failOnOpenHandles")
if (logHeapUsage) {
console.log("Open handles detection is turned on")
}
const statsFile = path.join(jestReportDirectory, "stats.json")
const jestArgs = filterNil([
"--ci",
"--color",
true,
"--passWithNoTests",
"--json",
"--outputFile",
statsFile,
logHeapUsage ? "--logHeapUsage" : null,
"--runInBand",
"--testFailureExitCode",
0,
"--coverage",
"--coverageReporters",
"text-summary",
"--coverageReporters",
"json-summary",
"--collectCoverageFrom",
"src/**",
"--coverageDirectory",
path.join(jestReportDirectory, "coverage"),
"--coverageThreshold",
JSON.stringify({
global: {
lines: Number(getInput("requiredLinesCoverage")),
functions: Number(getInput("requiredFunctionsCoverage")),
branches: Number(getInput("requiredBranchesCoverage")),
statements: Number(getInput("requiredStatementsCoverage")),
},
}),
failOnOpenHandles ? "--detectOpenHandles" : null,
])
const jestDependencyFile = path.join("node_modules", "jest", "bin", "jest.js")
const isJestInstalled = await fsp.pathExists(jestDependencyFile)
let exitCode
const execArgs = {
env: {
...process.env,
NODE_ENV: "production",
MAIN: pickedEntry,
},
}
if (isJestInstalled) {
const nodeArgs = filterNil([
logHeapUsage ? "--expose-gc" : null,
jestDependencyFile,
...jestArgs,
])
exitCode = await exec("node", nodeArgs, execArgs)
} else {
const npxPath = await which("npx", true)
console.warn("Jest not found in %s, using %s instead to install and run it", jestDependencyFile, npxPath)
exitCode = await exec(npxPath, ["jest", ...jestArgs], execArgs)
}
if (exitCode !== 0) {
setFailed(`Jest CLI returned exit code ${exitCode}`)
return
}
const stats = await fsp.readJson(statsFile)
if (stats.numFailedTests) {
setFailed(`${zahl(stats.numFailedTests, "test")} did fail`)
return
}
if (failOnOpenHandles && hasContent(stats.openHandles)) {
setFailed(`Jest detected ${zahl(stats.openHandles.length, "open handle")}`)
return
}
}
main().catch(error => {
console.error(error)
setFailed("jaid/action-jest threw an Error")
}) | 30.792308 | 109 | 0.658756 |
023c963e697ecc8e43bfebbfbff9b94d5067142b | 8,362 | js | JavaScript | dist/js/jquery.bookblock.min.js | hllanosp/redLine | b0a1776fb1e929eed693e9bd34413a004afe8b4f | [
"BSD-3-Clause"
] | null | null | null | dist/js/jquery.bookblock.min.js | hllanosp/redLine | b0a1776fb1e929eed693e9bd34413a004afe8b4f | [
"BSD-3-Clause"
] | null | null | null | dist/js/jquery.bookblock.min.js | hllanosp/redLine | b0a1776fb1e929eed693e9bd34413a004afe8b4f | [
"BSD-3-Clause"
] | null | null | null | /**
* jquery.bookblock.min.js v2.0.1
* http://www.codrops.com
*
* Licensed under the MIT license.
* http://www.opensource.org/licenses/mit-license.php
*
* Copyright 2013, Codrops
* http://www.codrops.com
*/
(function(f,g,d){var c=f(g),e=g.Modernizr;e.addTest("csstransformspreserve3d",function(){var l=e.prefixed("transformStyle");var k="preserve-3d";var j;if(!l){return false}l=l.replace(/([A-Z])/g,function(n,m){return"-"+m.toLowerCase()}).replace(/^ms-/,"-ms-");e.testStyles("#modernizr{"+l+":"+k+";}",function(m,n){j=g.getComputedStyle?getComputedStyle(m,null).getPropertyValue(l):""});return(j===k)});var a=f.event,b,i;b=a.special.debouncedresize={setup:function(){f(this).on("resize",b.handler)},teardown:function(){f(this).off("resize",b.handler)},handler:function(n,j){var m=this,l=arguments,k=function(){n.type="debouncedresize";a.dispatch.apply(m,l)};if(i){clearTimeout(i)}j?k():i=setTimeout(k,b.threshold)},threshold:150};f.BookBlock=function(j,k){this.$el=f(k);this._init(j)};f.BookBlock.defaults={orientation:"vertical",direction:"ltr",speed:1000,easing:"ease-in-out",shadows:true,shadowSides:0.2,shadowFlip:0.1,circular:false,nextEl:"",prevEl:"",autoplay:false,interval:3000,onEndFlip:function(j,l,k){return false},onBeforeFlip:function(j){return false}};f.BookBlock.prototype={_init:function(j){this.options=f.extend(true,{},f.BookBlock.defaults,j);this.$el.addClass("bb-"+this.options.orientation);this.$items=this.$el.children(".bb-item").hide();this.itemsCount=this.$items.length;this.current=0;this.previous=-1;this.$current=this.$items.eq(this.current).show();this.elWidth=this.$el.width();var k={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",msTransition:"MSTransitionEnd",transition:"transitionend"};this.transEndEventName=k[e.prefixed("transition")]+".bookblock";this.support=e.csstransitions&&e.csstransforms3d&&e.csstransformspreserve3d;this._initEvents();if(this.options.autoplay){this.options.circular=true;this._startSlideshow()}},_initEvents:function(){var j=this;if(this.options.nextEl!==""){f(this.options.nextEl).on("click.bookblock touchstart.bookblock",function(){j._action("next");return false})}if(this.options.prevEl!==""){f(this.options.prevEl).on("click.bookblock touchstart.bookblock",function(){j._action("prev");return false})}c.on("debouncedresize",function(){j.elWidth=j.$el.width()})},_action:function(j,k){this._stopSlideshow();this._navigate(j,k)},_navigate:function(j,k){if(this.isAnimating){return false}this.options.onBeforeFlip(this.current);this.isAnimating=true;this.$current=this.$items.eq(this.current);if(k!==d){this.current=k}else{if(j==="next"&&this.options.direction==="ltr"||j==="prev"&&this.options.direction==="rtl"){if(!this.options.circular&&this.current===this.itemsCount-1){this.end=true}else{this.previous=this.current;this.current=this.current<this.itemsCount-1?this.current+1:0}}else{if(j==="prev"&&this.options.direction==="ltr"||j==="next"&&this.options.direction==="rtl"){if(!this.options.circular&&this.current===0){this.end=true}else{this.previous=this.current;this.current=this.current>0?this.current-1:this.itemsCount-1}}}}this.$nextItem=!this.options.circular&&this.end?this.$current:this.$items.eq(this.current);if(!this.support){this._layoutNoSupport(j)}else{this._layout(j)}},_layoutNoSupport:function(k){this.$items.hide();this.$nextItem.show();this.end=false;this.isAnimating=false;var j=k==="next"&&this.current===this.itemsCount-1||k==="prev"&&this.current===0;this.options.onEndFlip(this.previous,this.current,j)},_layout:function(l){var v=this,u=this._addSide("left",l),o=this._addSide("middle",l),j=this._addSide("right",l),r=u.find("div.bb-overlay"),t=o.find("div.bb-flipoverlay:first"),w=o.find("div.bb-flipoverlay:last"),s=j.find("div.bb-overlay"),k=this.end?400:this.options.speed;this.$items.hide();this.$el.prepend(u,o,j);o.css({transitionDuration:k+"ms",transitionTimingFunction:this.options.easing}).on(this.transEndEventName,function(y){if(f(y.target).hasClass("bb-page")){v.$el.children(".bb-page").remove();v.$nextItem.show();v.end=false;v.isAnimating=false;var x=l==="next"&&v.current===v.itemsCount-1||l==="prev"&&v.current===0;v.options.onEndFlip(v.previous,v.current,x)}});if(l==="prev"){o.addClass("bb-flip-initial")}if(this.options.shadows&&!this.end){var n=(l==="next")?{transition:"opacity "+this.options.speed/2+"ms linear "+this.options.speed/2+"ms"}:{transition:"opacity "+this.options.speed/2+"ms linear",opacity:this.options.shadowSides},q=(l==="next")?{transition:"opacity "+this.options.speed/2+"ms linear"}:{transition:"opacity "+this.options.speed/2+"ms linear "+this.options.speed/2+"ms",opacity:this.options.shadowFlip},m=(l==="next")?{transition:"opacity "+this.options.speed/2+"ms linear "+this.options.speed/2+"ms",opacity:this.options.shadowFlip}:{transition:"opacity "+this.options.speed/2+"ms linear"},p=(l==="next")?{transition:"opacity "+this.options.speed/2+"ms linear",opacity:this.options.shadowSides}:{transition:"opacity "+this.options.speed/2+"ms linear "+this.options.speed/2+"ms"};t.css(q);w.css(m);r.css(n);s.css(p)}setTimeout(function(){o.addClass(v.end?"bb-flip-"+l+"-end":"bb-flip-"+l);if(v.options.shadows&&!v.end){t.css({opacity:l==="next"?v.options.shadowFlip:0});w.css({opacity:l==="next"?0:v.options.shadowFlip});r.css({opacity:l==="next"?v.options.shadowSides:0});s.css({opacity:l==="next"?0:v.options.shadowSides})}},25)},_addSide:function(l,k){var j;switch(l){case"left":j=f('<div class="bb-page"><div class="bb-back"><div class="bb-outer"><div class="bb-content"><div class="bb-inner">'+(k==="next"?this.$current.html():this.$nextItem.html())+'</div></div><div class="bb-overlay"></div></div></div></div>').css("z-index",102);break;case"middle":j=f('<div class="bb-page"><div class="bb-front"><div class="bb-outer"><div class="bb-content"><div class="bb-inner">'+(k==="next"?this.$current.html():this.$nextItem.html())+'</div></div><div class="bb-flipoverlay"></div></div></div><div class="bb-back"><div class="bb-outer"><div class="bb-content" style="width:'+this.elWidth+'px"><div class="bb-inner">'+(k==="next"?this.$nextItem.html():this.$current.html())+'</div></div><div class="bb-flipoverlay"></div></div></div></div>').css("z-index",103);break;case"right":j=f('<div class="bb-page"><div class="bb-front"><div class="bb-outer"><div class="bb-content"><div class="bb-inner">'+(k==="next"?this.$nextItem.html():this.$current.html())+'</div></div><div class="bb-overlay"></div></div></div></div>').css("z-index",101);break}return j},_startSlideshow:function(){var j=this;this.slideshow=setTimeout(function(){j._navigate("next");if(j.options.autoplay){j._startSlideshow()}},this.options.interval)},_stopSlideshow:function(){if(this.options.autoplay){clearTimeout(this.slideshow);this.options.autoplay=false}},next:function(){this._action(this.options.direction==="ltr"?"next":"prev")},prev:function(){this._action(this.options.direction==="ltr"?"prev":"next")},jump:function(k){k-=1;if(k===this.current||k>=this.itemsCount||k<0){return false}var j;if(this.options.direction==="ltr"){j=k>this.current?"next":"prev"}else{j=k>this.current?"prev":"next"}this._action(j,k)},last:function(){this.jump(this.itemsCount)},first:function(){this.jump(1)},isActive:function(){return this.isAnimating},update:function(){var j=this.$items.eq(this.current);this.$items=this.$el.children(".bb-item");this.itemsCount=this.$items.length;this.current=j.index()},destroy:function(){if(this.options.autoplay){this._stopSlideshow()}this.$el.removeClass("bb-"+this.options.orientation);this.$items.show();if(this.options.nextEl!==""){f(this.options.nextEl).off(".bookblock")}if(this.options.prevEl!==""){f(this.options.prevEl).off(".bookblock")}c.off("debouncedresize")}};var h=function(j){if(g.console){g.console.error(j)}};f.fn.bookblock=function(k){if(typeof k==="string"){var j=Array.prototype.slice.call(arguments,1);this.each(function(){var l=f.data(this,"bookblock");if(!l){h("cannot call methods on bookblock prior to initialization; attempted to call method '"+k+"'");return}if(!f.isFunction(l[k])||k.charAt(0)==="_"){h("no such method '"+k+"' for bookblock instance");return}l[k].apply(l,j)})}else{this.each(function(){var l=f.data(this,"bookblock");if(l){l._init()}else{l=f.data(this,"bookblock",new f.BookBlock(k,this))}})}return this}})(jQuery,window); | 760.181818 | 8,135 | 0.722315 |
023cf1bfc02bcc00d6e55ea488437cd3bb97a4d5 | 2,471 | js | JavaScript | src/poll-reactions.js | SheepTester/floofy-bot | b6f4e7f1a0a03ca2c9cd3726ef89e2cd123c1e03 | [
"MIT"
] | 1 | 2021-07-26T05:10:01.000Z | 2021-07-26T05:10:01.000Z | src/poll-reactions.js | SheepTester/floofy-bot | b6f4e7f1a0a03ca2c9cd3726ef89e2cd123c1e03 | [
"MIT"
] | null | null | null | src/poll-reactions.js | SheepTester/floofy-bot | b6f4e7f1a0a03ca2c9cd3726ef89e2cd123c1e03 | [
"MIT"
] | null | null | null | const { Message } = require('discord.js')
const emojiList = require('./emoji.json')
const CachedMap = require('./utils/CachedMap.js')
const ok = require('./utils/ok.js')
const select = require('./utils/select.js')
const emojiRegex = new RegExp(
`<a?:\\w+:\\d+>|${emojiList.join('|').replace(/[+*]/g, m => '\\' + m)}`,
'g'
)
const pollChannels = new CachedMap('./data/poll-reactions.json')
module.exports.onReady = pollChannels.read
function isPollChannel (message) {
return pollChannels.get(message.channel.id, false)
}
/** @param {Message} message */
module.exports.pollChannel = async message => {
if (!message.channel.permissionsFor(message.member).has('MANAGE_CHANNELS')) {
await message.lineReply(
"you can't even manage channels, why should i listen to you"
)
return
}
if (isPollChannel(message)) {
await message.lineReply(
select([
'this is already a poll channel though',
"didn't you already do `poll channel`",
"that doesn't do anything if this channel already is a poll channel"
])
)
} else {
pollChannels.set(message.channel.id, true).save()
await message.react(select(ok))
}
}
module.exports.notPollChannel = async message => {
if (!message.channel.permissionsFor(message.member).has('MANAGE_CHANNELS')) {
await message.lineReply(
"you can't even manage channels, why should i listen to you"
)
return
}
if (isPollChannel(message)) {
pollChannels.set(message.channel.id, false).save()
await message.react(select(ok))
} else {
await message.lineReply(
select([
"this isn't a poll channel though",
"that doesn't do anything if this channel already isn't a poll channel"
])
)
}
}
module.exports.onMessage = async message => {
if (isPollChannel(message)) {
const emoji = message.content.match(emojiRegex) || []
if (emoji.length === 0) {
await Promise.all([message.react('👍'), message.react('👎')]).catch(
() => {}
)
} else {
await Promise.all(emoji.map(em => message.react(em))).catch(() => {})
}
}
}
module.exports.onEdit = async newMessage => {
if (isPollChannel(newMessage)) {
const emoji = newMessage.content.match(emojiRegex) || []
if (emoji.length > 0) {
// TODO: Do not re-add already-reacted emoji for speedier reaction
// additions
await Promise.all(emoji.map(em => newMessage.react(em))).catch(() => {})
}
}
}
| 29.416667 | 79 | 0.63618 |
023ec4b8570506000bf36a167c27efd922c47e2d | 2,713 | js | JavaScript | test/R2Amount.js | CharlesEricADAM/node-td-rcm | 975ee442acb20268b4a3361c68c863cf284f1789 | [
"MIT"
] | 2 | 2017-02-07T10:59:28.000Z | 2018-02-19T09:13:40.000Z | test/R2Amount.js | CharlesEricADAM/node-td-rcm | 975ee442acb20268b4a3361c68c863cf284f1789 | [
"MIT"
] | 1 | 2018-02-12T11:08:27.000Z | 2018-02-12T11:08:27.000Z | test/R2Amount.js | Lendix/node-td-rcm | aeb5da7103b39b131981e62e9bb89490f1d1f92e | [
"MIT"
] | null | null | null | import test from 'ava';
import R2Amount from '../lib/R2Amount';
import IndicativeArea from '../lib/indicativeArea/IndicativeArea';
import AmountIndicativeArea from '../lib/indicativeArea/AmountIndicativeArea';
import {TaxCredit, FixedIncomeProducts, CrowdfundingProducts, Fees} from '../lib/amountItems';
const indicativeArea = new IndicativeArea({
year: '2016',
siret: '80426417400017',
type: 1
});
const amountIndicativeArea = indicativeArea.amountR2();
test('set data', t => {
const taxCredit = new TaxCredit({AD: 10});
const fixedIncomeProducts = new FixedIncomeProducts({AR: 142, AS: 10});
const crowdfundingProducts = new CrowdfundingProducts({KR: 153, KS: 21});
const fees = new Fees(9);
const r2 = new R2Amount({amountIndicativeArea, taxCredit, fixedIncomeProducts, crowdfundingProducts, fees});
t.true(r2.amountIndicativeArea instanceof AmountIndicativeArea);
t.true(r2.taxCredit instanceof TaxCredit);
t.true(r2.fixedIncomeProducts instanceof FixedIncomeProducts);
t.true(r2.crowdfundingProducts instanceof CrowdfundingProducts);
t.true(r2.fees instanceof Fees);
});
test('validation', t => {
const taxCredit = new TaxCredit({AD: 10});
const fixedIncomeProducts = new FixedIncomeProducts({AR: 142, AS: 10});
const crowdfundingProducts = new CrowdfundingProducts({KR: 153, KS: 21});
const fees = new Fees(9);
const r2 = new R2Amount({amountIndicativeArea, taxCredit, fixedIncomeProducts, crowdfundingProducts, fees});
t.true(r2.validation());
});
test('export', t => {
const taxCredit = new TaxCredit({AD: 10});
const fixedIncomeProducts = new FixedIncomeProducts({AR: 142, AS: 10});
const crowdfundingProducts = new CrowdfundingProducts({KR: 153, KS: 21});
const fees = new Fees(9);
const r2 = new R2Amount({amountIndicativeArea, taxCredit, fixedIncomeProducts, crowdfundingProducts, fees});
require('fs').writeFileSync('toto.txt', JSON.stringify(r2.export()));
t.deepEqual(r2.export(), [
'2016',
'80426417400017',
1,
' ',
' ',
' ',
' ',
'R2',
'0000000000',
'0000000000',
'0000000010',
'0000000000',
'0000000000',
'0000000000',
'0000000000',
'0000000000',
' ',
'0000000000',
'0000000000',
'0000000000',
'0000000000',
'0000000000',
'0000000000',
'0000000000',
'0000000000',
'0000000000',
'0000000000',
'0000000000',
'0000000142',
'0000000010',
'0000000153',
'0000000021',
' ',
'0000000000',
'0000000000',
'0000000009',
'0000000000',
'0000000000',
' '
]);
});
| 28.861702 | 110 | 0.64836 |
023f195f05c933d5fd3982579d64cccfa1bc998a | 300 | js | JavaScript | jspm_packages/npm/underscore.string@3.2.2/meteor-pre.js | zoldello/rosalind-AureliaJS | 9f3896f210d3d26a63de1dfdb9bd0e41f2f67843 | [
"MIT"
] | null | null | null | jspm_packages/npm/underscore.string@3.2.2/meteor-pre.js | zoldello/rosalind-AureliaJS | 9f3896f210d3d26a63de1dfdb9bd0e41f2f67843 | [
"MIT"
] | null | null | null | jspm_packages/npm/underscore.string@3.2.2/meteor-pre.js | zoldello/rosalind-AureliaJS | 9f3896f210d3d26a63de1dfdb9bd0e41f2f67843 | [
"MIT"
] | null | null | null | /* */
"format cjs";
// Defining this will trick dist/underscore.string.js into putting its exports into module.exports
// Credit to Tim Heckel for this trick - see https://github.com/TimHeckel/meteor-underscore-string
module = {};
// This also needed, otherwise above doesn't work???
exports = {};
| 33.333333 | 98 | 0.726667 |
023fed934452813bab6f7593658703aeae8160ba | 18,342 | js | JavaScript | documentation/fixed__point_8h.js | odinshen/ComputeLibrary_Profiling | a425c354c5c8733d94f29f407f413af57448f631 | [
"MIT"
] | 1 | 2018-08-02T06:49:04.000Z | 2018-08-02T06:49:04.000Z | documentation/fixed__point_8h.js | odinshen/ComputeLibrary_Profiling | a425c354c5c8733d94f29f407f413af57448f631 | [
"MIT"
] | null | null | null | documentation/fixed__point_8h.js | odinshen/ComputeLibrary_Profiling | a425c354c5c8733d94f29f407f413af57448f631 | [
"MIT"
] | null | null | null | var fixed__point_8h =
[
[ "ABS_SAT_OP_EXPAND", "fixed__point_8h.xhtml#a66d987917da70dfc88bee76cda323e0a", null ],
[ "ABS_SAT_OP_EXPAND_STR", "fixed__point_8h.xhtml#a096a0b33d9bf00fd65287a1ceafa227c", null ],
[ "ABSQ_SAT_IMPL", "fixed__point_8h.xhtml#a1acc7badafd7def20af187c5b5bfdec2", null ],
[ "ADD_SAT_OP_EXPAND", "fixed__point_8h.xhtml#a6b1acbaff6cb3bad4edda9a93dac1f9e", null ],
[ "ADD_SAT_OP_EXPAND_STR", "fixed__point_8h.xhtml#a8fe4e6aa79b6e2faec019e53e1f39113", null ],
[ "ADDQ_SAT_IMPL", "fixed__point_8h.xhtml#ad2ad548e04bfbba48bf75e29c9699182", null ],
[ "CONVERT", "fixed__point_8h.xhtml#aa8d95ba04fc73845abc6045952cae5be", null ],
[ "CONVERT_SAT", "fixed__point_8h.xhtml#a23fb01b6f3453cc0e48a026fd44f6acd", null ],
[ "CONVERT_SAT_STR", "fixed__point_8h.xhtml#a4e0fc93c9a69863dcdf7672ab547026c", null ],
[ "CONVERT_SAT_STR2", "fixed__point_8h.xhtml#a8aa11a06d0685e1cc6dfac964f9c3cee", null ],
[ "CONVERT_SAT_STR3", "fixed__point_8h.xhtml#ae5bd7ebff4bb9df1b26f2b71b31e928a", null ],
[ "CONVERT_STR", "fixed__point_8h.xhtml#a4090567b3adb034c7cc1af308cb45670", null ],
[ "CONVERT_STR2", "fixed__point_8h.xhtml#a424c5edfa264fb94d0eb44d59d103e29", null ],
[ "CONVERT_STR3", "fixed__point_8h.xhtml#a37089d60b5f5a76176fdb94835a98ff4", null ],
[ "CONVERTQ_DOWN_IMPL", "fixed__point_8h.xhtml#acad65c9300736f277c3b8419326f1413", null ],
[ "CONVERTQ_DOWN_SAT_IMPL", "fixed__point_8h.xhtml#a107bff3ea73b2344cf3bc9795177f5b9", null ],
[ "CONVERTQ_UP_IMPL", "fixed__point_8h.xhtml#a91019976b3e97e493e0b00ff9e92a5d3", null ],
[ "DIV_SAT_OP_EXPAND", "fixed__point_8h.xhtml#aa13fe0d2ecef3e5b22315baf39715e46", null ],
[ "DIV_SAT_OP_EXPAND_STR", "fixed__point_8h.xhtml#ac2995f9506cbc5c918ecf47f447bcfce", null ],
[ "DIV_SAT_OP_VEC_EXPAND", "fixed__point_8h.xhtml#a774126960511e4d827f0d2d3d68abe97", null ],
[ "DIV_SAT_OP_VEC_EXPAND_STR", "fixed__point_8h.xhtml#a6ad4d9db82a42c5266cba5e0f317998c", null ],
[ "DIVQ_SAT_IMPL", "fixed__point_8h.xhtml#aac0b47414a86d32e5c891ab6a75b313b", null ],
[ "EXP_OP_EXPAND", "fixed__point_8h.xhtml#a80482c3ae2b0e68658f84f081a6fbdde", null ],
[ "EXP_OP_EXPAND_STR", "fixed__point_8h.xhtml#a368a98fe336caf8c24840c67735cd04e", null ],
[ "EXPQ_IMPL", "fixed__point_8h.xhtml#ae64808afdc06c77889f1bb0565905949", null ],
[ "float16_TYPE", "fixed__point_8h.xhtml#a7547ee26d654afa7fd5206692a6e6625", null ],
[ "floatx16", "fixed__point_8h.xhtml#ab2ab4046b57f5ca70105fc90c25a7d2d", null ],
[ "INVSQRT_OP_EXPAND", "fixed__point_8h.xhtml#a26cc71c52d0d09b4b422c474b52b9b01", null ],
[ "INVSQRT_OP_EXPAND_STR", "fixed__point_8h.xhtml#ac001b306b7ead2e6dcc84a93260600b1", null ],
[ "INVSQRTQ_IMPL", "fixed__point_8h.xhtml#a39fff507525792a262467c3e145bb181", null ],
[ "LOG_OP_EXPAND", "fixed__point_8h.xhtml#a3f3a83902f2dd8bd456d9f8ebc57c3db", null ],
[ "LOG_OP_EXPAND_STR", "fixed__point_8h.xhtml#a3ec6148739690f17d7f3811c360802ee", null ],
[ "LOGQ_IMPL", "fixed__point_8h.xhtml#a902ecdf01fd8a0760e4ef66ce5814a20", null ],
[ "MAX_OP_EXPAND", "fixed__point_8h.xhtml#afeab3b374d78c30712736e16cbb5aa15", null ],
[ "MAX_OP_EXPAND_STR", "fixed__point_8h.xhtml#a60a130cf40adc457ce483d5912e1459c", null ],
[ "MAXQ_IMPL", "fixed__point_8h.xhtml#a21e1c22d1a3f0110ceb0ef48c6dddb86", null ],
[ "MLA_SAT_OP_EXPAND", "fixed__point_8h.xhtml#a8a25ee378391e23386ca195249610562", null ],
[ "MLA_SAT_OP_EXPAND_STR", "fixed__point_8h.xhtml#a8cde8777703946ea2e06b20d6831d489", null ],
[ "MLAL_SAT_OP_EXPAND", "fixed__point_8h.xhtml#ac52a40b99b01208c76483ee00b96ba9e", null ],
[ "MLAL_SAT_OP_EXPAND_STR", "fixed__point_8h.xhtml#a80b890755bdc8392bcc853d24b34682d", null ],
[ "MLALQ_SAT_IMPL", "fixed__point_8h.xhtml#a2258d987499bd7c92db2c90977fd2409", null ],
[ "MLAQ_SAT_IMPL", "fixed__point_8h.xhtml#a31a4619a484c58adcd6e7a9a8354cf23", null ],
[ "MUL_OP_EXPAND", "fixed__point_8h.xhtml#a1b9871e1733f3827061df926120f9f46", null ],
[ "MUL_OP_EXPAND_STR", "fixed__point_8h.xhtml#afadf927c77d81f7dcd9af28b65c9c79d", null ],
[ "MUL_SAT_OP_EXPAND", "fixed__point_8h.xhtml#a6b559f5128a43015ffc6c855cf84c243", null ],
[ "MUL_SAT_OP_EXPAND_STR", "fixed__point_8h.xhtml#a4e160e8fcff1c5ec8fba57505cb0ad91", null ],
[ "MULQ_IMPL", "fixed__point_8h.xhtml#a8900371ff8da316eea9c61c993043ca5", null ],
[ "MULQ_SAT_IMPL", "fixed__point_8h.xhtml#a329eb419d445e448ec885a2f69a1fb0f", null ],
[ "qs16_MAX", "fixed__point_8h.xhtml#a3668744b91058e80feae452f3fff6ecd", null ],
[ "qs16_MIN", "fixed__point_8h.xhtml#a8f3a79453a6d9f3cb4e4c1e15647c2f8", null ],
[ "qs16_SHIFT", "fixed__point_8h.xhtml#a36ef9fc1f840658270248d8e53fd8140", null ],
[ "qs16_TYPE", "fixed__point_8h.xhtml#a995fa4e2cf5895940e629f49c87a9e66", null ],
[ "qs16x16_TYPE", "fixed__point_8h.xhtml#a66d3b76441cc5c126ea3c2eacd66755c", null ],
[ "qs16x1_TYPE", "fixed__point_8h.xhtml#ae5f0a20c461cd5421516da8559e30bc9", null ],
[ "qs16x2_TYPE", "fixed__point_8h.xhtml#aa3594535118e4158134b8de127757e70", null ],
[ "qs16x3_TYPE", "fixed__point_8h.xhtml#a4d43a0b433fada2a4c21bdc6d66f8e1f", null ],
[ "qs16x4_TYPE", "fixed__point_8h.xhtml#aba2fe52f3ee4677740c679607cdcb5f1", null ],
[ "qs16x8_TYPE", "fixed__point_8h.xhtml#ad11e2aa7cd3de96b0be10b9273de99bb", null ],
[ "qs32_MAX", "fixed__point_8h.xhtml#a665d827df7100fdcb1debb9ebfda2081", null ],
[ "qs32_MIN", "fixed__point_8h.xhtml#a65c09b33d7e8ec44c112123516395303", null ],
[ "qs32_TYPE", "fixed__point_8h.xhtml#a4dc3c9f8c9fe5f18308eb6a0b31668b6", null ],
[ "qs32x16_TYPE", "fixed__point_8h.xhtml#adbd8b659ba077c1cceb5d560db65d4b9", null ],
[ "qs32x1_TYPE", "fixed__point_8h.xhtml#a0a7583559301a450cfd243030c03bcc3", null ],
[ "qs32x2_TYPE", "fixed__point_8h.xhtml#ae5e7b593b19e045c09d2f0097398dfa0", null ],
[ "qs32x3_TYPE", "fixed__point_8h.xhtml#a6c20f71e5c89970ee4f1659666e3cd8f", null ],
[ "qs32x4_TYPE", "fixed__point_8h.xhtml#aa912b7f2743520fec942e0a4c7acf1f5", null ],
[ "qs32x8_TYPE", "fixed__point_8h.xhtml#a1e11b506599174c9fd83688cf116ab7e", null ],
[ "qs8_MAX", "fixed__point_8h.xhtml#ac0a5138b20a5fc54e092b8335213b3db", null ],
[ "qs8_MIN", "fixed__point_8h.xhtml#a10ab0002d59a950b7e7100f431832174", null ],
[ "qs8_SHIFT", "fixed__point_8h.xhtml#a46e1f404fdd6e80eec6e0f50e5f0383c", null ],
[ "qs8_TYPE", "fixed__point_8h.xhtml#a79ca4f195e178410c0e034216e90f811", null ],
[ "qs8x16_TYPE", "fixed__point_8h.xhtml#ae9cb49b1f87d857347bcf0add8217bff", null ],
[ "qs8x1_TYPE", "fixed__point_8h.xhtml#ad77b91071787b84a9cd514cf5c526fdb", null ],
[ "qs8x2_TYPE", "fixed__point_8h.xhtml#a15ba5721b7d6b798965f1fe03609f657", null ],
[ "qs8x3_TYPE", "fixed__point_8h.xhtml#a7bd1921b9cbbf8b03867899a43db99d3", null ],
[ "qs8x4_TYPE", "fixed__point_8h.xhtml#a33854718153786d2995ff57a77966fa0", null ],
[ "qs8x8_TYPE", "fixed__point_8h.xhtml#a21f99c110a4e266a7c48ffc62f91bb6d", null ],
[ "qu16_MAX", "fixed__point_8h.xhtml#ae26774fb9d07b6c3965b1af0fe51d14d", null ],
[ "qu16_MIN", "fixed__point_8h.xhtml#addb83fbb729412b4d63acf37d11a4dfe", null ],
[ "qu32_MAX", "fixed__point_8h.xhtml#a9b24ec1f75f64ba7317d874e79f20165", null ],
[ "qu32_MIN", "fixed__point_8h.xhtml#a4b5f7492fbe94585b4d6ba2b7481261a", null ],
[ "qu8_MAX", "fixed__point_8h.xhtml#ae3e8582121053f90052a5d6b493b893a", null ],
[ "qu8_MIN", "fixed__point_8h.xhtml#a87c333c4d447a56aaa1794163bffb934", null ],
[ "SQCVT_SAT_IMPL", "fixed__point_8h.xhtml#a740b5b51d0e06dae628961d373d6c359", null ],
[ "SQCVT_SAT_OP_EXPAND", "fixed__point_8h.xhtml#a40c89e1f1f54dd72fc533c9aafdee12e", null ],
[ "SQCVT_SAT_OP_EXPAND_STR", "fixed__point_8h.xhtml#aa9f86d33cbbf40f33fe1074913ae30d1", null ],
[ "SUB_SAT_OP_EXPAND", "fixed__point_8h.xhtml#ac081784e1547f3f2e9065e3ed54f2fba", null ],
[ "SUB_SAT_OP_EXPAND_STR", "fixed__point_8h.xhtml#a7076a8fac3c484611ce522dc7103fff4", null ],
[ "SUBQ_SAT_IMPL", "fixed__point_8h.xhtml#ab555884d2db3be32fc693f670d8a99c7", null ],
[ "TANH_OP_EXPAND", "fixed__point_8h.xhtml#a7033bfe12670e700df8aa3a89f1c592b", null ],
[ "TANH_OP_EXPAND_STR", "fixed__point_8h.xhtml#a452864cb983782cff458f61397fb00eb", null ],
[ "TANHQ_IMPL", "fixed__point_8h.xhtml#a341448197978a201091ddc00ea22f9e9", null ],
[ "TYPE_ALIAS", "fixed__point_8h.xhtml#ae1ac323de0ecd37f54553c25092d2ba4", null ],
[ "VEC_DATA_TYPE", "fixed__point_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f", null ],
[ "VEC_DATA_TYPE_STR", "fixed__point_8h.xhtml#ae802822defb0fa3a7f74f98e324696cb", null ],
[ "qs16", "fixed__point_8h.xhtml#a26a8ca855cd14b1867173d301baf6c4f", null ],
[ "qs16x1", "fixed__point_8h.xhtml#aab72e548e91d1bac44d0a8503dfa12e7", null ],
[ "qs16x16", "fixed__point_8h.xhtml#a16a82528f3e1c6eb81fd9aac6ad45e62", null ],
[ "qs16x2", "fixed__point_8h.xhtml#ac120446f465238102c2ba0a23ae4aa47", null ],
[ "qs16x3", "fixed__point_8h.xhtml#a39d116772b1400e82b2ab12de00909b0", null ],
[ "qs16x4", "fixed__point_8h.xhtml#a5e34d3e41af677765369d33a3871d95f", null ],
[ "qs16x8", "fixed__point_8h.xhtml#ad7f60c2ef8f8b80da7fd81570db06d4a", null ],
[ "qs32", "fixed__point_8h.xhtml#a8115de4a1860a9bf15e13f4ebfdb707f", null ],
[ "qs32x1", "fixed__point_8h.xhtml#a513b425c3ee001dddfdde427947ccf00", null ],
[ "qs32x16", "fixed__point_8h.xhtml#a7e505a06809f9ab428dd0ba9be1ea35e", null ],
[ "qs32x2", "fixed__point_8h.xhtml#addf730860de5f7752f0c85a385088e96", null ],
[ "qs32x3", "fixed__point_8h.xhtml#abf77757e07132c678f7146c860e80fe1", null ],
[ "qs32x4", "fixed__point_8h.xhtml#a3df1d8363c18bb92b3451d41c6bfc891", null ],
[ "qs32x8", "fixed__point_8h.xhtml#af8a54f984958bddf4f24cd95867a82f5", null ],
[ "qs8", "fixed__point_8h.xhtml#a96d48f67de90aaed492da7fb7a006b94", null ],
[ "qs8x1", "fixed__point_8h.xhtml#a230d9b32261264756a0d3d4971964753", null ],
[ "qs8x16", "fixed__point_8h.xhtml#a5a2cc1a836612185f0378de9e7159e27", null ],
[ "qs8x2", "fixed__point_8h.xhtml#a3ab174b05a269317ec18680b5c781a04", null ],
[ "qs8x3", "fixed__point_8h.xhtml#a3b12b782d796ddcf0cd8f8b265be033e", null ],
[ "qs8x4", "fixed__point_8h.xhtml#a10dfbf9412b518cd160133b68e2da8fd", null ],
[ "qs8x8", "fixed__point_8h.xhtml#a8362e532b9c16e2367f9102963b6336a", null ],
[ "abs_qs16x8_sat", "fixed__point_8h.xhtml#a08e6c4717be6784a6df7c43bfcc8655d", null ],
[ "abs_qs8x16_sat", "fixed__point_8h.xhtml#a4548a232dd77f023b53557a12a3a98b2", null ],
[ "add_sat_qs16x1", "fixed__point_8h.xhtml#a938b168b2ee376ec12181ddda282dada", null ],
[ "add_sat_qs16x16", "fixed__point_8h.xhtml#afd8142a5de5c45701d8846030ac01ac9", null ],
[ "add_sat_qs16x2", "fixed__point_8h.xhtml#afe98542620c3f6ea5a29ac05b4c8900b", null ],
[ "add_sat_qs16x4", "fixed__point_8h.xhtml#ad603ae6114bbce3fa9bd8e8debd6fdea", null ],
[ "add_sat_qs16x8", "fixed__point_8h.xhtml#afda8a27ba1a7360bac98af6e90968a48", null ],
[ "add_sat_qs32x1", "fixed__point_8h.xhtml#a9d8aada55ce6f27ec5cb2a66d6bc9d22", null ],
[ "add_sat_qs32x16", "fixed__point_8h.xhtml#a060f775d2cfcf5eebe4e95ea7be3a57b", null ],
[ "add_sat_qs32x2", "fixed__point_8h.xhtml#a878f5ce2b7bd2321138ac5f950a49911", null ],
[ "add_sat_qs32x4", "fixed__point_8h.xhtml#a598bb32725cac3d3bc202230f61800cb", null ],
[ "add_sat_qs32x8", "fixed__point_8h.xhtml#ad8f393b0b41cb21689ddade3ff9ef1fa", null ],
[ "add_sat_qs8x1", "fixed__point_8h.xhtml#a86a238190b4587b960b351efa6ced2e7", null ],
[ "add_sat_qs8x16", "fixed__point_8h.xhtml#a6faff16a13c9424932e11379a70455d4", null ],
[ "add_sat_qs8x2", "fixed__point_8h.xhtml#a98dd18822a91a19b474a8fd15d50061f", null ],
[ "add_sat_qs8x4", "fixed__point_8h.xhtml#a68f46f9e97a25605433c60c1cb094a18", null ],
[ "add_sat_qs8x8", "fixed__point_8h.xhtml#a1bdc124e4540215bcb74728079567b57", null ],
[ "convert_float16_qs16x16", "fixed__point_8h.xhtml#a4dc52ccd303ac120e2940b30b525301d", null ],
[ "convert_float16_qs8x16", "fixed__point_8h.xhtml#a29e1c935f8ce7d7b3b7125a2bac6fb59", null ],
[ "convert_qs16x16_float16", "fixed__point_8h.xhtml#ae4b030aea69e8c3f34a373c1af8d1674", null ],
[ "convert_qs16x16_float16_sat", "fixed__point_8h.xhtml#ae391ff83d53deb586074fdad54f59d9b", null ],
[ "convert_qs8x16_float16", "fixed__point_8h.xhtml#a1ebfbb37946a7197a2a500b1d14631be", null ],
[ "convert_qs8x16_float16_sat", "fixed__point_8h.xhtml#ae5d1cdcf8439f9aeb8a4337ee6497559", null ],
[ "div_sat_qs16", "fixed__point_8h.xhtml#a8d2c17065a15f7b298145b13c28ef349", null ],
[ "div_sat_qs16x16", "fixed__point_8h.xhtml#af57ae5abe45efdd8ec58130e3d4726cb", null ],
[ "div_sat_qs16x8", "fixed__point_8h.xhtml#ae915e52782d10b155502837e6caa9721", null ],
[ "div_sat_qs8", "fixed__point_8h.xhtml#a77995d58e1505e2182a75ee199d8b01e", null ],
[ "div_sat_qs8x16", "fixed__point_8h.xhtml#a524ddfb8ca9b49eb0870b73ee3bd720c", null ],
[ "exp_sat_qs16x16", "fixed__point_8h.xhtml#a718889c3f240b9e020d6f507f2c16a31", null ],
[ "exp_sat_qs16x2", "fixed__point_8h.xhtml#ac715687e38ad0f8e12a4c2b7f6665a3d", null ],
[ "exp_sat_qs16x4", "fixed__point_8h.xhtml#a2f881d9b68ef31f391f2afa4e329fe6e", null ],
[ "exp_sat_qs16x8", "fixed__point_8h.xhtml#acbc9ca80c6c37594584af82b36078cb8", null ],
[ "exp_sat_qs8x16", "fixed__point_8h.xhtml#a566d1090e790e168a58a3dd6dcea2476", null ],
[ "exp_sat_qs8x2", "fixed__point_8h.xhtml#ae360859290b2e6b78dd9d992bb456e2f", null ],
[ "exp_sat_qs8x4", "fixed__point_8h.xhtml#ac473935497b3ffcc5683b51a8bbae135", null ],
[ "exp_sat_qs8x8", "fixed__point_8h.xhtml#a6cb9c026b31ee1685cc1c76bab2474a7", null ],
[ "invsqrt_sat_qs16x1", "fixed__point_8h.xhtml#acb097557fa3cdc2e3deedf10aa9351a8", null ],
[ "invsqrt_sat_qs16x8", "fixed__point_8h.xhtml#aa9b962c25694ea1a195f987763817b55", null ],
[ "invsqrt_sat_qs8x1", "fixed__point_8h.xhtml#a33bc7b5204f1f2f497c5f3b94666317e", null ],
[ "invsqrt_sat_qs8x16", "fixed__point_8h.xhtml#afd5c6ea7dd791f308a747e14d9b43be8", null ],
[ "log_sat_qs16x16", "fixed__point_8h.xhtml#a1e9b9fe0c93606b92d8b4a3f1e28a460", null ],
[ "log_sat_qs16x8", "fixed__point_8h.xhtml#a1d6d8a5bb98c983274473090f9320d53", null ],
[ "log_sat_qs8x16", "fixed__point_8h.xhtml#ad6bb50561fbfbbf13f5e1e9a29b5c42d", null ],
[ "max_qs16x1", "fixed__point_8h.xhtml#a3d1133437c9316867a68fabaeeb1c349", null ],
[ "max_qs16x16", "fixed__point_8h.xhtml#aaa6b333d702243ee48d98f8b6ab04fa8", null ],
[ "max_qs16x2", "fixed__point_8h.xhtml#ab64c4eaecfd5b3adaefeea3e74b20efc", null ],
[ "max_qs16x4", "fixed__point_8h.xhtml#acf7b70bd039a92c0b8e6bae61a46c514", null ],
[ "max_qs16x8", "fixed__point_8h.xhtml#a68d082072cbdb8b617e0246d277a2a8f", null ],
[ "max_qs8x1", "fixed__point_8h.xhtml#a6cf8baa93541eee58c1575859344d858", null ],
[ "max_qs8x16", "fixed__point_8h.xhtml#a2635ed6914ae75900d7bf215356a44e4", null ],
[ "max_qs8x2", "fixed__point_8h.xhtml#a9b9740928192b24b99e30233458b106f", null ],
[ "max_qs8x4", "fixed__point_8h.xhtml#a0b8cb75deddaf8856fb53d1178a35d7f", null ],
[ "max_qs8x8", "fixed__point_8h.xhtml#af93c5c0b7d3a8183645521ca0fb10b0e", null ],
[ "mla_sat_qs16x8", "fixed__point_8h.xhtml#a7a3c295a894e0529251bd4529b36a574", null ],
[ "mla_sat_qs8x16", "fixed__point_8h.xhtml#ad59f32bf4f61044a698ff4da02080e5a", null ],
[ "mla_sat_qs8x8", "fixed__point_8h.xhtml#a85dee8b5dd48bfc059c5d6397557b562", null ],
[ "mlal_sat_qs16x8", "fixed__point_8h.xhtml#a50b6bfd3a44a0ac605e88135e230d1e5", null ],
[ "mlal_sat_qs8x8", "fixed__point_8h.xhtml#a09f5d764b62b47a1894a4cb71a0a62f6", null ],
[ "mul_qs16x16", "fixed__point_8h.xhtml#a532c6df4b17f88f0e126a97c6e9670ee", null ],
[ "mul_qs16x8", "fixed__point_8h.xhtml#af09044372ea5862497f62c8bd76ba035", null ],
[ "mul_qs8x16", "fixed__point_8h.xhtml#a563cc8014b17755a99e1ecac00a2c7f7", null ],
[ "mul_qs8x8", "fixed__point_8h.xhtml#a9a50c35ce1383cd23d3ab166a7929013", null ],
[ "mul_sat_qs16x1", "fixed__point_8h.xhtml#a4b96bef18b8c9ed279273359d259ed65", null ],
[ "mul_sat_qs16x16", "fixed__point_8h.xhtml#aba68d5b1e592d5b12beb6f9e05e72ed2", null ],
[ "mul_sat_qs16x2", "fixed__point_8h.xhtml#a9ef4b9bede0acae7940ecf1e7e58a492", null ],
[ "mul_sat_qs16x3", "fixed__point_8h.xhtml#aef217f3d96eaf598c4225453833c0222", null ],
[ "mul_sat_qs16x4", "fixed__point_8h.xhtml#a2162dab7e4d7d503d1262b9ffc257a21", null ],
[ "mul_sat_qs16x8", "fixed__point_8h.xhtml#a93fefd4972b6b9440c8371509b46d19e", null ],
[ "mul_sat_qs8x1", "fixed__point_8h.xhtml#a3508d76a5262f5f3dbf278d7efcf5db9", null ],
[ "mul_sat_qs8x16", "fixed__point_8h.xhtml#a286a2ecb07602fd7268d31c6e88e62a6", null ],
[ "mul_sat_qs8x2", "fixed__point_8h.xhtml#ad1bf1fe4122e578d1d6f7eb9c922da2e", null ],
[ "mul_sat_qs8x3", "fixed__point_8h.xhtml#a0a2d7bee6c290d0db95ccbe34e7942ad", null ],
[ "mul_sat_qs8x4", "fixed__point_8h.xhtml#ab24ca3f7f3f023d8503a1752515e15d4", null ],
[ "mul_sat_qs8x8", "fixed__point_8h.xhtml#adc933417ba0492a4da555044652a7641", null ],
[ "sqcvt_qs16_sat", "fixed__point_8h.xhtml#ac1d0a82fd450972cab8a7c85217e4441", null ],
[ "sqcvt_qs8_sat", "fixed__point_8h.xhtml#a27b4e171bdfd66f52824f5812c9fa522", null ],
[ "sub_sat_qs16x1", "fixed__point_8h.xhtml#a4d22f610d17883dae5370c3e7d154c76", null ],
[ "sub_sat_qs16x16", "fixed__point_8h.xhtml#a9b91ed896c5093a7b73b15eb2539d804", null ],
[ "sub_sat_qs16x2", "fixed__point_8h.xhtml#af0d4e5500f90ef66bdf87b01bbb8e942", null ],
[ "sub_sat_qs16x4", "fixed__point_8h.xhtml#ac860bf2f067fb42de2c8db799423104f", null ],
[ "sub_sat_qs16x8", "fixed__point_8h.xhtml#ac409af663422e74467d0fe174592b406", null ],
[ "sub_sat_qs8x1", "fixed__point_8h.xhtml#a17474ee664876c4e265341f07f6b3562", null ],
[ "sub_sat_qs8x16", "fixed__point_8h.xhtml#add35b8b1a8470b2777098251bd3b2230", null ],
[ "sub_sat_qs8x2", "fixed__point_8h.xhtml#ae078571f80bab0d4473b5786220ca557", null ],
[ "sub_sat_qs8x4", "fixed__point_8h.xhtml#a1acb5de3f800cd2d0068e25d833d8cdc", null ],
[ "sub_sat_qs8x8", "fixed__point_8h.xhtml#a7635f49daeea0c64e1b153056d7b8b6c", null ],
[ "tanh_sat_qs16x8", "fixed__point_8h.xhtml#a136aa7ac86076272e764a5746eac5dad", null ],
[ "tanh_sat_qs8x16", "fixed__point_8h.xhtml#a81b68f5d2332aa3a28bc25979dbddd6d", null ]
]; | 88.608696 | 103 | 0.777178 |
02408731f32b517953636c17757bafc7bbcddf9c | 221 | js | JavaScript | src/App.js | moilu/Frontend-Roompali-development | 25a060487e0de2886b031de7b32370956dec55fb | [
"MIT"
] | 3 | 2020-10-05T05:02:37.000Z | 2020-10-06T18:45:59.000Z | src/App.js | moilu/Frontend-Roompali-development | 25a060487e0de2886b031de7b32370956dec55fb | [
"MIT"
] | 14 | 2020-09-23T23:32:19.000Z | 2020-10-06T23:42:26.000Z | src/App.js | moilu/Frontend-Roompali-development | 25a060487e0de2886b031de7b32370956dec55fb | [
"MIT"
] | 2 | 2020-09-22T03:30:05.000Z | 2020-09-23T04:05:44.000Z | import React from "react";
import Modal from "react-modal";
import { AppRouter } from "./routers/AppRouter";
Modal.setAppElement("#root");
export const App = () => {
return (
<>
<AppRouter />
</>
);
};
| 17 | 48 | 0.59276 |
0241402e6777df718f24b2b2b6bdb2e0d9b96f45 | 766 | js | JavaScript | src/api/allocative/encryption.js | tlhhup/exam-admin | 2bc483c8d07bc0f88f56e686c0a26f51b73b2e41 | [
"Apache-2.0"
] | 1 | 2020-07-01T09:39:55.000Z | 2020-07-01T09:39:55.000Z | src/api/allocative/encryption.js | tlhhup/exam-admin | 2bc483c8d07bc0f88f56e686c0a26f51b73b2e41 | [
"Apache-2.0"
] | null | null | null | src/api/allocative/encryption.js | tlhhup/exam-admin | 2bc483c8d07bc0f88f56e686c0a26f51b73b2e41 | [
"Apache-2.0"
] | 4 | 2019-01-31T12:49:04.000Z | 2021-05-27T07:11:05.000Z | import request from '@/utils/request'
export function findList() {
return request({
url: '/xhr/encryptKey',
method: 'get'
})
}
export function createEncryptKey(data) {
return request({
url: '/xhr/encryptKey',
method: 'post',
data
})
}
export function deleteEncryptKey(id) {
return request({
url: '/xhr/encryptKey?id=' + id,
method: 'delete'
})
}
export function updateEncryptKey(data) {
return request({
url: '/xhr/encryptKey',
method: 'put',
data
})
}
export function createBatch(data) {
return request({
url: '/xhr/encryptKey/batch',
method: 'post',
data
})
}
export function deleteBatch(data) {
return request({
url: '/xhr/envParam/batch',
method: 'delete',
data
})
}
| 15.632653 | 40 | 0.617493 |
02416d01b76934eb104f71039b95ec7552176ad3 | 3,558 | js | JavaScript | ambari-web/test/models/repository_test.js | likenamehaojie/Apache-Ambari-ZH | 5973025bd694cdbb4b49fb4c4e0d774782811ff6 | [
"Apache-2.0"
] | 1,664 | 2015-01-03T09:35:21.000Z | 2022-03-31T04:55:24.000Z | ambari-web/test/models/repository_test.js | likenamehaojie/Apache-Ambari-ZH | 5973025bd694cdbb4b49fb4c4e0d774782811ff6 | [
"Apache-2.0"
] | 3,018 | 2015-02-19T20:16:10.000Z | 2021-11-13T20:47:48.000Z | ambari-web/test/models/repository_test.js | likenamehaojie/Apache-Ambari-ZH | 5973025bd694cdbb4b49fb4c4e0d774782811ff6 | [
"Apache-2.0"
] | 1,673 | 2015-01-06T14:14:42.000Z | 2022-03-31T07:22:30.000Z | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
var App = require('app');
require('models/repository');
function getModel() {
return App.Repository.createRecord();
}
describe('App.Repository', function () {
var model;
beforeEach(function () {
model = getModel();
});
App.TestAliases.testAsComputedNotEqualProperties(getModel(), 'undo', 'baseUrl', 'baseUrlInit');
App.TestAliases.testAsComputedAlias(getModel(), 'isSelected', 'operatingSystem.isSelected', 'boolean');
App.TestAliases.testAsComputedAlias(getModel(), 'clearAll', 'baseUrl', 'string'); // string??
describe('#invalidFormatError', function () {
var cases = [
{
baseUrl: 'http://domain-name_0.com/path/subpath?p0=v0&p1=v1@v2.v3#!~hash0,(hash1)+hash2[hash3]/*;hash_4%2F',
invalidFormatError: false,
title: 'valid http url'
},
{
baseUrl: 'https://domain.com/path?p=v',
invalidFormatError: false,
title: 'valid https url'
},
{
baseUrl: 'ftp://domain.com:123',
invalidFormatError: false,
title: 'valid ftp url'
},
{
baseUrl: 'ftp://user_:password0@domain.com',
invalidFormatError: false,
title: 'valid ftp url with authorization'
},
{
baseUrl: 'ftp://user :password/@domain.com',
invalidFormatError: true,
title: 'ftp url with disallowed characters'
},
{
baseUrl: 'http://domain.com:/path',
invalidFormatError: true,
title: 'no port specified when expected'
},
{
baseUrl: 'file://etc/file.repo',
invalidFormatError: false,
title: 'valid Unix file url'
},
{
baseUrl: 'file:///etc/file.repo',
invalidFormatError: false,
title: 'valid Unix file url (3 slashes)'
},
{
baseUrl: 'file://c:/file.repo',
invalidFormatError: false,
title: 'valid Windows file url'
},
{
baseUrl: 'file:///c:/file.repo',
invalidFormatError: false,
title: 'valid Windows file url (3 slashes)'
},
{
baseUrl: 'file://c|/file.repo',
invalidFormatError: false,
title: 'valid Windows file url (| separator)'
},
{
baseUrl: 'file://C:/file.repo',
invalidFormatError: false,
title: 'valid Windows file url (capital drive char)'
},
{
baseUrl: 'file://etc /file.repo',
invalidFormatError: true,
title: 'file url with disallowed characters'
}
];
cases.forEach(function (item) {
it(item.title, function () {
model.set('baseUrl', item.baseUrl);
expect(model.get('invalidFormatError')).to.equal(item.invalidFormatError);
});
});
});
});
| 29.404959 | 116 | 0.613266 |
0242c57f2fc236ed451f3090fb5a392de5c9d9a0 | 593 | js | JavaScript | components/gif_picker/components/SearchGrid/index.js | xzl8028/xenia-webapp | efa5cdb735d1730a1738b2ba80e707f4b5702bff | [
"Apache-2.0"
] | null | null | null | components/gif_picker/components/SearchGrid/index.js | xzl8028/xenia-webapp | efa5cdb735d1730a1738b2ba80e707f4b5702bff | [
"Apache-2.0"
] | null | null | null | components/gif_picker/components/SearchGrid/index.js | xzl8028/xenia-webapp | efa5cdb735d1730a1738b2ba80e707f4b5702bff | [
"Apache-2.0"
] | null | null | null | // Copyright (c) 2015-present Xenia, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import {connect} from 'react-redux';
import {saveSearchScrollPosition} from 'xenia-redux/actions/gifs';
import SearchGrid from './SearchGrid';
function mapStateToProps(state) {
return {
...state.entities.gifs.cache,
...state.entities.gifs.search,
appProps: state.entities.gifs.app,
};
}
function mapDispatchToProps() {
return {
saveSearchScrollPosition,
};
}
export default connect(mapStateToProps, mapDispatchToProps)(SearchGrid);
| 23.72 | 72 | 0.70489 |
0242e35d30e216486761cb0bae942768be1733b2 | 887 | js | JavaScript | react/ddjeth/src/App.js | dltdojo/dltdojo.org | 4f898f90073b544be7624bc278149a771a1252b6 | [
"Apache-2.0"
] | null | null | null | react/ddjeth/src/App.js | dltdojo/dltdojo.org | 4f898f90073b544be7624bc278149a771a1252b6 | [
"Apache-2.0"
] | null | null | null | react/ddjeth/src/App.js | dltdojo/dltdojo.org | 4f898f90073b544be7624bc278149a771a1252b6 | [
"Apache-2.0"
] | null | null | null | import React, { Component } from 'react';
import './App.css';
import Wallet from 'ethereumjs-wallet';
class App extends Component {
constructor(props) {
super(props)
this.keys = this.generateKeys()
console.log(this)
}
render() {
let {privateKey, publicKey, address} = this.keys
return (
<div className="App">
<div className="App-header">
<h2>以太坊 ETHEREUM TESTPAGE</h2>
</div>
<h4>PrivateKey: {privateKey}</h4>
<h4>PublicKey: {publicKey}</h4>
<h4>Address: {address}</h4>
<p className="App-intro">
DDJETH
</p>
</div>
);
}
generateKeys() {
let wallet = Wallet.generate()
return {
privateKey: wallet.getPrivateKeyString(),
publicKey: wallet.getPublicKeyString(),
address: wallet.getChecksumAddressString()
}
}
}
export default App;
| 21.634146 | 52 | 0.59301 |
02436ad5a7ad9521ec91f80d5b1560c754055f5a | 269 | js | JavaScript | 771_c.js | nszyc/leetcode-javascript-solution | 11e0979b17278bd22e35341a046b73d49c8ae782 | [
"MIT"
] | null | null | null | 771_c.js | nszyc/leetcode-javascript-solution | 11e0979b17278bd22e35341a046b73d49c8ae782 | [
"MIT"
] | null | null | null | 771_c.js | nszyc/leetcode-javascript-solution | 11e0979b17278bd22e35341a046b73d49c8ae782 | [
"MIT"
] | null | null | null | var numJewelsInStones = function(J, S) {
var count = 0
for (var i = 0; i < S.length; i++) {
var s = S[i]
var isJewel = false
for (var j = 0; j < J.length; j++) {
if (s == J[j]) {
isJewel = true
}
}
if (isJewel) {
count++
}
}
return count
}
| 15.823529 | 40 | 0.501859 |
02438e3570859ab1c4030979efb7f80aa8b818b7 | 1,840 | js | JavaScript | node_modules/resolve-pathname/esm/resolve-pathname.js | GenaAiv/portfolio-website | 66e5f5f012b73fe41879a824f231e8798fb7b5f8 | [
"MIT"
] | null | null | null | node_modules/resolve-pathname/esm/resolve-pathname.js | GenaAiv/portfolio-website | 66e5f5f012b73fe41879a824f231e8798fb7b5f8 | [
"MIT"
] | null | null | null | node_modules/resolve-pathname/esm/resolve-pathname.js | GenaAiv/portfolio-website | 66e5f5f012b73fe41879a824f231e8798fb7b5f8 | [
"MIT"
] | null | null | null | function isAbsolute(pathname) {
return pathname.charAt(0) === '/';
}
// About 1.5x faster than the two-arg version of Array#splice()
function spliceOne(list, index) {
for (var i = index, k = i + 1, n = list.length; k < n; i += 1, k += 1) {
list[i] = list[k];
}
list.pop();
}
// This implementation is based heavily on node's url.parse
function resolvePathname(to, from) {
if (from === undefined) from = '';
var toParts = (to && to.split('/')) || [];
var fromParts = (from && from.split('/')) || [];
var isToAbs = to && isAbsolute(to);
var isFromAbs = from && isAbsolute(from);
var mustEndAbs = isToAbs || isFromAbs;
if (to && isAbsolute(to)) {
// to is absolute
fromParts = toParts;
} else if (toParts.length) {
// to is relative, drop the filename
fromParts.pop();
fromParts = fromParts.concat(toParts);
}
if (!fromParts.length) return '/';
var hasTrailingSlash;
if (fromParts.length) {
var last = fromParts[fromParts.length - 1];
hasTrailingSlash = last === '.' || last === '..' || last === '';
} else {
hasTrailingSlash = false;
}
var up = 0;
for (var i = fromParts.length; i >= 0; i--) {
var part = fromParts[i];
if (part === '.') {
spliceOne(fromParts, i);
} else if (part === '..') {
spliceOne(fromParts, i);
up++;
} else if (up) {
spliceOne(fromParts, i);
up--;
}
}
if (!mustEndAbs) for (; up--; up) fromParts.unshift('..');
if (
mustEndAbs &&
fromParts[0] !== '' &&
(!fromParts[0] || !isAbsolute(fromParts[0]))
)
fromParts.unshift('');
var result = fromParts.join('/');
if (hasTrailingSlash && result.substr(-1) !== '/') result += '/';
return result;
}
export default resolvePathname;
| 24.210526 | 75 | 0.545109 |
024394822bb5eaf98b5d1803b130ca29433613a1 | 2,327 | js | JavaScript | index.js | mfhubz/typeof-ext | c70f91b5e37db353ae5103b1955e2544bbeab413 | [
"MIT"
] | 1 | 2015-07-09T08:37:37.000Z | 2015-07-09T08:37:37.000Z | index.js | mfhubz/typeof-ext | c70f91b5e37db353ae5103b1955e2544bbeab413 | [
"MIT"
] | null | null | null | index.js | mfhubz/typeof-ext | c70f91b5e37db353ae5103b1955e2544bbeab413 | [
"MIT"
] | null | null | null | /*!
* typeof-ext
* Copyright(c) 2014 mfhubz
* MIT Licensed
*
* A node.js module to get, check or compare real types.
*/
exports = module.exports = (function() {
var types = [
'function',
'object',
'array',
'string',
'boolean',
'number',
'date',
'regexp',
'error',
'null',
'undefined'
];
function typeOf(a) {
if (a === null) return 'null';
if (a === undefined) return 'undefined';
return a.constructor.name.toLowerCase();
};
typeOf.isFunction = function(a) {
return (typeOf(a) === 'function');
};
typeOf.isObject = function(a) {
return (typeOf(a) === 'object');
};
typeOf.isArray = function(a) {
return (typeOf(a) === 'array');
};
typeOf.isString = function(a) {
return (typeOf(a) === 'string');
};
typeOf.isBoolean = function(a) {
return (typeOf(a) === 'boolean');
};
typeOf.isNumber = function(a) {
return (typeOf(a) === 'number');
};
typeOf.isDate = function(a) {
return (typeOf(a) === 'date');
};
typeOf.isRegexp = function(a) {
return (typeOf(a) === 'regexp');
};
typeOf.isError = function(a) {
return (typeOf(a) === 'error');
};
typeOf.isNull = function(a) {
return (typeOf(a) === 'null');
};
typeOf.isUndefined = function(a) {
return (typeOf(a) === 'undefined');
};
typeOf.is = function(a, type) {
if (!typeOf.isString(type)) {
return new Error('type must be a string');
}
if (types.indexOf(type) != -1) {
return (typeOf(a) === type);
}
return false;
};
typeOf.in = function(a, arr) {
if (!typeOf.isArray(arr)) {
return new Error('arr must be an array');
}
for (var i = arr.length - 1; i >= 0; i--) {
if (types.indexOf(arr[i]) === -1) {
return new Error('arr only allow ' + types.toString() + ' values');
}
if (typeOf.is(a, arr[i])) {
return true;
}
}
return false;
};
typeOf.areEqual = function(a, b) {
return (typeOf(a) === typeOf(b));
};
return typeOf;
})();
| 22.161905 | 83 | 0.472712 |
0243f5319e257c86d255357923e91823f323f415 | 520 | js | JavaScript | tests/acceptance/a-test.js | robclancy/ember-cli-simple-storage | 47b18d52dfc9367f59bff26ffacf16615d69b49e | [
"MIT"
] | null | null | null | tests/acceptance/a-test.js | robclancy/ember-cli-simple-storage | 47b18d52dfc9367f59bff26ffacf16615d69b49e | [
"MIT"
] | null | null | null | tests/acceptance/a-test.js | robclancy/ember-cli-simple-storage | 47b18d52dfc9367f59bff26ffacf16615d69b49e | [
"MIT"
] | null | null | null | import Ember from 'ember';
import Foo from "dummy/models/foo";
import startApp from '../helpers/start-app';
import { module, test } from 'qunit';
var application;
module('Acceptance: A Test', {
setup: function() {
application = startApp();
Foo.create({name: "wat"});
},
teardown: function() {
Ember.run(application, 'destroy');
}
});
test('the attr in test a should not hold global state across objects', function(assert) {
visit('/wat');
andThen(function() {
assert.ok(true);
});
});
| 21.666667 | 89 | 0.642308 |
0244a3e7aa9c01a45759d182d2bdb27b6e2a89a8 | 994 | js | JavaScript | src/utils/calculate.js | komcal/check-random-game | b13c19a8806852e26f1a752a3f6bd20fed7e7ec6 | [
"MIT"
] | null | null | null | src/utils/calculate.js | komcal/check-random-game | b13c19a8806852e26f1a752a3f6bd20fed7e7ec6 | [
"MIT"
] | null | null | null | src/utils/calculate.js | komcal/check-random-game | b13c19a8806852e26f1a752a3f6bd20fed7e7ec6 | [
"MIT"
] | null | null | null | export function case1 (current, random) {
if(current === random) {
return true;
} else {
return false;
}
}
export function case2 (current, random) {
if(current !== random) {
return true;
} else {
return false;
}
}
export function case3(current, random) {
const len = current.length;
if (current[len-2] === random) {
return true;
} else {
return false;
}
}
export function case4(current, random) {
const len = current.length;
if (current[len-2] !== random) {
return true;
} else {
return false;
}
}
export function setCase(h, data) {
const history = [...h, data];
const len = history.length;
if (len == 1) {
const data = history[0];
const data2 = (data === 'R')? 'B':'R';
return [data, data2, '-', '-'];
} else {
const data = history[len-1];
const data2 = (data === 'R')? 'B':'R';
const data3 = history[len-2];
const data4 = (data3 === 'R')? 'B':'R';
return [data, data2, data3, data4];
}
}
| 21.148936 | 43 | 0.565392 |
0245001d443b70e2d1ffaee48c614205cc37fe9f | 20,150 | js | JavaScript | src/api/controller/order.js | dappsclub/hioshop-server | c6618a99f1d80c4dd18e40e25aef0af592113798 | [
"MIT"
] | 2 | 2020-10-31T14:49:31.000Z | 2020-11-01T07:29:08.000Z | src/api/controller/order.js | dappsclub/hioshop-server | c6618a99f1d80c4dd18e40e25aef0af592113798 | [
"MIT"
] | 2 | 2020-07-20T18:39:35.000Z | 2021-05-11T14:29:22.000Z | src/api/controller/order.js | dappsclub/hioshop-server | c6618a99f1d80c4dd18e40e25aef0af592113798 | [
"MIT"
] | 2 | 2021-04-12T16:33:52.000Z | 2022-03-08T11:30:34.000Z | const Base = require('./base.js');
const moment = require('moment');
const rp = require('request-promise');
const fs = require('fs');
const http = require("http");
module.exports = class extends Base {
/**
* 获取订单列表
* @return {Promise} []
*/
async listAction() {
const showType = this.get('showType');
const page = this.get('page');
const size = this.get('size');
let status = [];
status = await this.model('order').getOrderStatus(showType);
let is_delete = 0;
// const orderList = await this.model('order').where({ user_id: think.userId }).page(1, 10).order('add_time DESC').countSelect();
const orderList = await this.model('order').field('id,add_time,actual_price,freight_price,offline_pay').where({
user_id: think.userId,
is_delete: is_delete,
order_type: ['<', 7],
order_status: ['IN', status]
}).page(page, size).order('add_time DESC').countSelect();
const newOrderList = [];
for (const item of orderList.data) {
// 订单的商品
item.goodsList = await this.model('order_goods').field('id,list_pic_url,number').where({
user_id: think.userId,
order_id: item.id,
is_delete: 0
}).select();
item.goodsCount = 0;
item.goodsList.forEach(v => {
item.goodsCount += v.number;
});
item.add_time = moment.unix(await this.model('order').getOrderAddTime(item.id)).format('YYYY-MM-DD HH:mm:ss');
// item.dealdone_time = moment.unix(await this.model('order').getOrderAddTime(item.id)).format('YYYY-MM-DD HH:mm:ss');
// item.add_time =this.timestampToTime(await this.model('order').getOrderAddTime(item.id));
// 订单状态的处理
item.order_status_text = await this.model('order').getOrderStatusText(item.id);
// 可操作的选项
item.handleOption = await this.model('order').getOrderHandleOption(item.id);
newOrderList.push(item);
}
orderList.data = newOrderList;
return this.success(orderList);
}
// 获得订单数量
//
async countAction() {
const showType = this.get('showType');
let status = [];
status = await this.model('order').getOrderStatus(showType);
let is_delete = 0;
const allCount = await this.model('order').where({
user_id: think.userId,
is_delete: is_delete,
order_status: ['IN', status]
}).count('id');
return this.success({
allCount: allCount,
});
}
// 获得订单数量状态
//
async orderCountAction() {
let user_id = think.userId;
let toPay = await this.model('order').where({
user_id: user_id,
is_delete: 0,
order_type: ['<', 7],
order_status: ['IN', '101,801']
}).count('id');
let toDelivery = await this.model('order').where({
user_id: user_id,
is_delete: 0,
order_type: ['<', 7],
order_status: 300
}).count('id');
let toReceive = await this.model('order').where({
user_id: user_id,
order_type: ['<', 7],
is_delete: 0,
order_status: 301
}).count('id');
let newStatus = {
toPay: toPay,
toDelivery: toDelivery,
toReceive: toReceive,
}
return this.success(newStatus);
}
async detailAction() {
const orderId = this.get('orderId');
const orderInfo = await this.model('order').where({
user_id: think.userId,
id: orderId
}).find();
const currentTime = parseInt(new Date().getTime() / 1000);
if (think.isEmpty(orderInfo)) {
return this.fail('订单不存在');
}
orderInfo.province_name = await this.model('region').where({
id: orderInfo.province
}).getField('name', true);
orderInfo.city_name = await this.model('region').where({
id: orderInfo.city
}).getField('name', true);
orderInfo.district_name = await this.model('region').where({
id: orderInfo.district
}).getField('name', true);
orderInfo.full_region = orderInfo.province_name + orderInfo.city_name + orderInfo.district_name;
orderInfo.postscript = Buffer.from(orderInfo.postscript, 'base64').toString();
const orderGoods = await this.model('order_goods').where({
user_id: think.userId,
order_id: orderId,
is_delete: 0
}).select();
var goodsCount = 0;
for (const gitem of orderGoods) {
goodsCount += gitem.number;
}
// 订单状态的处理
orderInfo.order_status_text = await this.model('order').getOrderStatusText(orderId);
if (think.isEmpty(orderInfo.confirm_time)) {
orderInfo.confirm_time = 0;
} else orderInfo.confirm_time = moment.unix(orderInfo.confirm_time).format('YYYY-MM-DD HH:mm:ss');
if (think.isEmpty(orderInfo.dealdone_time)) {
orderInfo.dealdone_time = 0;
} else orderInfo.dealdone_time = moment.unix(orderInfo.dealdone_time).format('YYYY-MM-DD HH:mm:ss');
if (think.isEmpty(orderInfo.pay_time)) {
orderInfo.pay_time = 0;
} else orderInfo.pay_time = moment.unix(orderInfo.pay_time).format('YYYY-MM-DD HH:mm:ss');
if (think.isEmpty(orderInfo.shipping_time)) {
orderInfo.shipping_time = 0;
} else {
orderInfo.confirm_remainTime = orderInfo.shipping_time + 10 * 24 * 60 * 60;
orderInfo.shipping_time = moment.unix(orderInfo.shipping_time).format('YYYY-MM-DD HH:mm:ss');
}
// 订单支付倒计时
if (orderInfo.order_status === 101 || orderInfo.order_status === 801) {
// if (moment().subtract(60, 'minutes') < moment(orderInfo.add_time)) {
orderInfo.final_pay_time = orderInfo.add_time + 24 * 60 * 60; //支付倒计时2小时
if (orderInfo.final_pay_time < currentTime) {
//超过时间不支付,更新订单状态为取消
let updateInfo = {
order_status: 102
};
await this.model('order').where({
id: orderId
}).update(updateInfo);
}
}
orderInfo.add_time = moment.unix(orderInfo.add_time).format('YYYY-MM-DD HH:mm:ss');
orderInfo.order_status = '';
// 订单可操作的选择,删除,支付,收货,评论,退换货
const handleOption = await this.model('order').getOrderHandleOption(orderId);
const textCode = await this.model('order').getOrderTextCode(orderId);
return this.success({
orderInfo: orderInfo,
orderGoods: orderGoods,
handleOption: handleOption,
textCode: textCode,
goodsCount: goodsCount,
});
}
/**
* order 和 order-check 的goodslist
* @return {Promise} []
*/
async orderGoodsAction() {
const orderId = this.get('orderId');
if (orderId > 0) {
const orderGoods = await this.model('order_goods').where({
user_id: think.userId,
order_id: orderId,
is_delete: 0
}).select();
var goodsCount = 0;
for (const gitem of orderGoods) {
goodsCount += gitem.number;
}
return this.success(orderGoods);
} else {
const cartList = await this.model('cart').where({
user_id: think.userId,
checked:1,
is_delete: 0,
is_fast: 0,
}).select();
return this.success(cartList);
}
}
/**
* 取消订单
* @return {Promise} []
*/
async cancelAction() {
const orderId = this.post('orderId');
// 检测是否能够取消
const handleOption = await this.model('order').getOrderHandleOption(orderId);
// console.log('--------------' + handleOption.cancel);
if (!handleOption.cancel) {
return this.fail('订单不能取消');
}
// 设置订单已取消状态
let updateInfo = {
order_status: 102
};
let orderInfo = await this.model('order').field('order_type').where({
id: orderId,
user_id: think.userId
}).find();
//取消订单,还原库存
const goodsInfo = await this.model('order_goods').where({
order_id: orderId,
user_id: think.userId
}).select();
for (const item of goodsInfo) {
let goods_id = item.goods_id;
let product_id = item.product_id;
let number = item.number;
await this.model('goods').where({
id: goods_id
}).increment('goods_number', number);
await this.model('product').where({
id: product_id
}).increment('goods_number', number);
}
const succesInfo = await this.model('order').where({
id: orderId
}).update(updateInfo);
return this.success(succesInfo);
}
/**
* 删除订单
* @return {Promise} []
*/
async deleteAction() {
const orderId = this.post('orderId');
// 检测是否能够取消
const handleOption = await this.model('order').getOrderHandleOption(orderId);
if (!handleOption.delete) {
return this.fail('订单不能删除');
}
const succesInfo = await this.model('order').orderDeleteById(orderId);
return this.success(succesInfo);
}
/**
* 确认订单
* @return {Promise} []
*/
async confirmAction() {
const orderId = this.post('orderId');
// 检测是否能够取消
const handleOption = await this.model('order').getOrderHandleOption(orderId);
if (!handleOption.confirm) {
return this.fail('订单不能确认');
}
// 设置订单已取消状态
const currentTime = parseInt(new Date().getTime() / 1000);
let updateInfo = {
order_status: 401,
confirm_time: currentTime
};
const succesInfo = await this.model('order').where({
id: orderId
}).update(updateInfo);
return this.success(succesInfo);
}
/**
* 完成评论后的订单
* @return {Promise} []
*/
async completeAction() {
const orderId = this.get('orderId');
// 设置订单已完成
const currentTime = parseInt(new Date().getTime() / 1000);
let updateInfo = {
order_status: 401,
dealdone_time: currentTime
};
const succesInfo = await this.model('order').where({
id: orderId
}).update(updateInfo);
return this.success(succesInfo);
}
/**
* 提交订单
* @returns {Promise.<void>}
*/
async submitAction() {
// 获取收货地址信息和计算运费
const addressId = this.post('addressId');
const freightPrice = this.post('freightPrice');
const offlinePay = this.post('offlinePay');
let postscript = this.post('postscript');
const buffer = Buffer.from(postscript); // 留言
const checkedAddress = await this.model('address').where({
id: addressId
}).find();
if (think.isEmpty(checkedAddress)) {
return this.fail('请选择收货地址');
}
// 获取要购买的商品
const checkedGoodsList = await this.model('cart').where({
user_id: think.userId,
checked: 1,
is_delete: 0
}).select();
if (think.isEmpty(checkedGoodsList)) {
return this.fail('请选择商品');
}
let checkPrice = 0;
let checkStock = 0;
for(const item of checkedGoodsList){
let product = await this.model('product').where({
id:item.product_id
}).find();
if(item.number > product.goods_number){
checkStock++;
}
if(item.retail_price != item.add_price){
checkPrice++;
}
}
if(checkStock > 0){
return this.fail(400, '库存不足,请重新下单');
}
if(checkPrice > 0){
return this.fail(400, '价格发生变化,请重新下单');
}
// 获取订单使用的红包
// 如果有用红包,则将红包的数量减少,当减到0时,将该条红包删除
// 统计商品总价
let goodsTotalPrice = 0.00;
for (const cartItem of checkedGoodsList) {
goodsTotalPrice += cartItem.number * cartItem.retail_price;
}
// 订单价格计算
const orderTotalPrice = goodsTotalPrice + freightPrice; // 订单的总价
const actualPrice = orderTotalPrice - 0.00; // 减去其它支付的金额后,要实际支付的金额 比如满减等优惠
const currentTime = parseInt(new Date().getTime() / 1000);
let print_info = '';
for (const item in checkedGoodsList) {
let i = Number(item) + 1;
print_info = print_info + i + '、' + checkedGoodsList[item].goods_aka + '【' + checkedGoodsList[item].number + '】 ';
}
let def = await this.model('settings').where({
id: 1
}).find();
let sender_name = def.Name;
let sender_mobile = def.Tel;
// let sender_address = '';
let userInfo = await this.model('user').where({
id: think.userId
}).find();
// const checkedAddress = await this.model('address').where({id: addressId}).find();
const orderInfo = {
order_sn: this.model('order').generateOrderNumber(),
user_id: think.userId,
// 收货地址和运费
consignee: checkedAddress.name,
mobile: checkedAddress.mobile,
province: checkedAddress.province_id,
city: checkedAddress.city_id,
district: checkedAddress.district_id,
address: checkedAddress.address,
order_status: 101, // 订单初始状态为 101
// 根据城市得到运费,这里需要建立表:所在城市的具体运费
freight_price: freightPrice,
postscript: buffer.toString('base64'),
add_time: currentTime,
goods_price: goodsTotalPrice,
order_price: orderTotalPrice,
actual_price: actualPrice,
change_price: actualPrice,
print_info: print_info,
offline_pay:offlinePay
};
// 开启事务,插入订单信息和订单商品
const orderId = await this.model('order').add(orderInfo);
orderInfo.id = orderId;
if (!orderId) {
return this.fail('订单提交失败');
}
// 将商品信息录入数据库
const orderGoodsData = [];
for (const goodsItem of checkedGoodsList) {
orderGoodsData.push({
user_id: think.userId,
order_id: orderId,
goods_id: goodsItem.goods_id,
product_id: goodsItem.product_id,
goods_name: goodsItem.goods_name,
goods_aka: goodsItem.goods_aka,
list_pic_url: goodsItem.list_pic_url,
retail_price: goodsItem.retail_price,
number: goodsItem.number,
goods_specifition_name_value: goodsItem.goods_specifition_name_value,
goods_specifition_ids: goodsItem.goods_specifition_ids
});
}
await this.model('order_goods').addMany(orderGoodsData);
await this.model('cart').clearBuyGoods();
return this.success({
orderInfo: orderInfo
});
}
async updateAction() {
const addressId = this.post('addressId');
const orderId = this.post('orderId');
// 备注
// let postscript = this.post('postscript');
// const buffer = Buffer.from(postscript);
const updateAddress = await this.model('address').where({
id: addressId
}).find();
const currentTime = parseInt(new Date().getTime() / 1000);
const orderInfo = {
// 收货地址和运费
consignee: updateAddress.name,
mobile: updateAddress.mobile,
province: updateAddress.province_id,
city: updateAddress.city_id,
district: updateAddress.district_id,
address: updateAddress.address,
// TODO 根据地址计算运费
// freight_price: 0.00,
// 备注
// postscript: buffer.toString('base64'),
// add_time: currentTime
};
const updateInfo = await this.model('order').where({
id: orderId
}).update(orderInfo);
return this.success(updateInfo);
}
/**
* 查询物流信息asd
* @returns {Promise.<void>}
*/
async expressAction() {
// let aliexpress = think.config('aliexpress');
const currentTime = parseInt(new Date().getTime() / 1000);
const orderId = this.get('orderId');
let info = await this.model('order_express').where({
order_id: orderId
}).find();
if (think.isEmpty(info)) {
return this.fail(400, '暂无物流信息');
}
const expressInfo = await this.model('order_express').where({
order_id: orderId
}).find();
// 如果is_finish == 1;或者 updateTime 小于 10分钟,
let updateTime = info.update_time;
let com = (currentTime - updateTime) / 60;
let is_finish = info.is_finish;
if (is_finish == 1) {
return this.success(expressInfo);
} else if (updateTime != 0 && com < 20) {
return this.success(expressInfo);
} else {
let shipperCode = expressInfo.shipper_code;
let expressNo = expressInfo.logistic_code;
let code = shipperCode.substring(0, 2);
let shipperName = '';
let sfLastNo = think.config('aliexpress.sfLastNo');
if (code == "SF") {
shipperName = "SFEXPRESS";
expressNo = expressNo + ':'+ sfLastNo;
} else {
shipperName = shipperCode;
}
let lastExpressInfo = await this.getExpressInfo(shipperName, expressNo);
let deliverystatus = lastExpressInfo.deliverystatus;
let newUpdateTime = lastExpressInfo.updateTime;
newUpdateTime = parseInt(new Date(newUpdateTime).getTime() / 1000);
deliverystatus = await this.getDeliverystatus(deliverystatus);
let issign = lastExpressInfo.issign;
let traces = lastExpressInfo.list;
traces = JSON.stringify(traces);
let dataInfo = {
express_status: deliverystatus,
is_finish: issign,
traces: traces,
update_time: newUpdateTime
}
await this.model('order_express').where({
order_id: orderId
}).update(dataInfo);
let express = await this.model('order_express').where({
order_id: orderId
}).find();
return this.success(express);
}
// return this.success(latestExpressInfo);
}
async getExpressInfo(shipperName, expressNo) {
let appCode = "APPCODE "+ think.config('aliexpress.appcode');
const options = {
method: 'GET',
url: 'http://wuliu.market.alicloudapi.com/kdi?no=' + expressNo + '&type=' + shipperName,
headers: {
"Content-Type": "application/json; charset=utf-8",
"Authorization": appCode
}
};
let sessionData = await rp(options);
sessionData = JSON.parse(sessionData);
return sessionData.result;
}
async getDeliverystatus(status) {
if (status == 0) {
return '快递收件(揽件)';
} else if (status == 1) {
return '在途中';
} else if (status == 2) {
return '正在派件';
} else if (status == 3) {
return '已签收';
} else if (status == 4) {
return '派送失败(无法联系到收件人或客户要求择日派送,地址不详或手机号不清)';
} else if (status == 5) {
return '疑难件(收件人拒绝签收,地址有误或不能送达派送区域,收费等原因无法正常派送)';
} else if (status == 6) {
return '退件签收';
}
}
}; | 37.87594 | 137 | 0.546352 |
024526a3643ce404becd787c7574b9b76cd480b2 | 257 | js | JavaScript | test/selenium-tests/on.js | SeanJM/flatman-client | 31988993727dc60885557e3dfe138fa9500a5d39 | [
"MIT"
] | 3 | 2016-06-11T23:19:33.000Z | 2016-10-02T14:59:31.000Z | test/selenium-tests/on.js | SeanJM/flatman-client | 31988993727dc60885557e3dfe138fa9500a5d39 | [
"MIT"
] | null | null | null | test/selenium-tests/on.js | SeanJM/flatman-client | 31988993727dc60885557e3dfe138fa9500a5d39 | [
"MIT"
] | null | null | null | var el = flatman.el;
var x = true;
var y = true;
var a = el('div').on('click', function () { x = false; });
var b = el('div', { onClick : function () { y = false; } });
a.trigger('click');
b.trigger('click');
return {
left : x && y,
right : false
};
| 17.133333 | 60 | 0.536965 |
0245d132cd2babf9eddf8a02e4d2fb0ef5d6aff3 | 36,523 | js | JavaScript | misc/utils.js | ncsa/TorusVis | 847098a6b982c93ea3ffbde1a6e710595937582c | [
"NCSA"
] | null | null | null | misc/utils.js | ncsa/TorusVis | 847098a6b982c93ea3ffbde1a6e710595937582c | [
"NCSA"
] | 1 | 2015-09-10T19:04:43.000Z | 2015-09-11T14:32:35.000Z | misc/utils.js | ncsa/TorusVis | 847098a6b982c93ea3ffbde1a6e710595937582c | [
"NCSA"
] | 2 | 2015-07-27T17:39:14.000Z | 2017-02-12T22:57:47.000Z |
/*
* Module: utils
*
* various utility types and functions
*/
"use strict";
/* global Exception */
var features = require("./features");
var isNull = features.require("isNull");
var isPlainObject = features.require("isPlainObject");
var isFunction = features.require("isFunction");
var isString = features.require("isString");
var extend = features.require("extend");
features.require("slice");
/*
* Function: bisect
*
* array bisection algorithm
*
* searches a sorted array using a bisection algorithm. The returned index, i,
* partitions the array such that
* | ( array[index] <= value ) for all index in [lo, i)
* and
* | ( value < array[index] ) for all index in [i, hi)
*
* The search can be bounded to only consider the subsection of the array given
* by
* | Array.slice(array, lo, hi)
*
* If the section of the array to be searched is not sorted, then the return
* value is unspecified.
*
* Parameters:
* array[] - (*array*) sorted array of *numbers*
* value - (*number*) value to use in the search
* [lo] - (*number*) the lower-bound of the search (default: 0)
* [hi] - (*number*) the upper-bound of the search (default: array.length)
*
* Returns:
* - (*number*) the index bisecting the array
*/
/* wrap definition in a function literal for jshint exceptions */
var bisect; (function() {
/* jshint maxparams: 4 */
bisect = function bisect(array, value, lo, hi) {
if(arguments.length < 3) { lo = 0; }
if(arguments.length < 4) { hi = array.length; }
var mid;
while(lo < hi) {
mid = Math.floor((lo + hi)/2);
if(value < array[mid]) {
hi = mid;
} else {
lo = mid + 1;
}
}
return lo;
};})();
/*
* Function: breakFunction
*
* construct a function that throws an exception
*
* constructs and returns a function that, when called, throws an exception
*
* Parameters:
* message - (*String*) the message to be included in the thrown exception
*
* Returns:
* - (*function*) the constructed function
*
* See also:
* - <_abstract_>
* - <_notImplemented_>
* - <_notSupported_>
*/
function breakFunction(message) {
return function() {
throw Error(message);
};
}
/*
* Function: _deepEqualArray_
*
* (*INTERNAL*) try to compare two values as arrays
*
* Parameters:
*
* a - (*Object*) a value to be compared with
* b - (*Object*) another value to be compared with
* tmp - (*Object*) temporary storage object
*
* Returns:
*
* - (*Boolean*) *true* if the two objects are Arrays (also sets
* *tmp.result* according whether the Arrays are equal in a
* deep comparison)
*
* See:
* - <deepEqual>
* - <nodejs.org at http://www.nodejs.org/>
* - <Node License>
*/
function _deepEqualArray_(a, b, tmp) {
var result = ( Array.isArray(a) && Array.isArray(b) );
if(result) {
tmp.result = (
/* equal if number of elements match */
a.length === b.length
&& /* ... and ... */
/* every element matches */
a.every(function(x, i) {
/* jshint eqeqeq: false */
return (x == b[i]);
/* jshint eqeqeq: true */
})
);
}
return result;
}
/*
* Function: _deepEqualDate_
*
* (*INTERNAL*) try to compare two values as Dates
*
* Parameters:
*
* a - (*Object*) a value to be compared with
* b - (*Object*) another value to be compared with
* tmp - (*Object*) temporary storage object
*
* Returns:
*
* - (*Boolean*) *true* if the two objects are Dates (also sets
* *tmp.result* according to whether the Dates are equal)
*
* See:
* - <deepEqual>
* - <nodejs.org at http://www.nodejs.org/>
* - <Node License>
*/
function _deepEqualDate_(a, b, tmp) {
var result = ( a instanceof Date && b instanceof Date );
if(result) { tmp.result = ( a.getTime() === b.getTime() ); }
return result;
}
/*
* Function: _deepEqualDirect_
*
* (*INTERNAL*) try to compare two values directly
*
* Parameters:
*
* a - (*Object*) a value to be compared with
* b - (*Object*) another value to be compared with
* tmp - (*Object*) temporary storage object
*
* Returns:
*
* - (*Boolean*) *true* if the two objects can be compared directly
* (also sets *tmp.result* to *true*)
*
* See:
* - <deepEqual>
* - <nodejs.org at http://www.nodejs.org/>
* - <Node License>
*/
function _deepEqualDirect_(a, b, tmp) {
var result = ( a === b );
if(result) { tmp.result = true; }
return result;
}
/*
* Function: _deepEqualNonObject_
*
* (*INTERNAL*) try to compare two values as non-Objects
*
* Parameters:
*
* a - (*Object*) a value to be compared with
* b - (*Object*) another value to be compared with
* tmp - (*Object*) temporary storage object
*
* Returns:
*
* - (*Boolean*) *true* if neither of the two objects are Objects (also
* sets *tmp.result* according to whether a and b compare
* equal under type coercion)
*
* See:
* - <deepEqual>
* - <nodejs.org at http://www.nodejs.org/>
* - <Node License>
*/
function _deepEqualNonObject_(a, b, tmp) {
var result = ( typeof a !== "object" && typeof b !== "object" );
/* jshint eqeqeq: false */
if(result) { tmp.result = ( a == b ); }
/* jshint eqeqeq: true */
return result;
}
/*
* Function: _deepEqualNull_
*
* (*INTERNAL*) check if either of two values are null
*
* Parameters:
*
* a - (*Object*) a value to compare with null
* b - (*Object*) another value to compare with null
* tmp - (*Object*) temporary storage object
*
* Returns:
*
* - (*Boolean*) *true* if either of the two objects are null (also sets
* *tmp.result* to *false*)
*
* See:
* - <deepEqual>
* - <nodejs.org at http://www.nodejs.org/>
* - <Node License>
*/
function _deepEqualNull_(a, b, tmp) {
var result = ( isNull(a) || isNull(b) );
if(result) { tmp.result = false; }
return result;
}
/*
* Function: _deepEqualObject_
*
* (*INTERNAL*) explicitly deep-compare two objects
*
* Parameters:
*
* a - (*Object*) a value to be compared with
* b - (*Object*) another value to be compared with
* tmp - (*Object*) temporary storage object
*
* Returns:
*
* - (*Boolean*) *true* always (sets *tmp.result* according to whether the
* two objects are equal in a deep comparison)
*
* See:
* - <deepEqual>
* - <nodejs.org at http://www.nodejs.org/>
* - <Node License>
*/
function _deepEqualObject_(a, b, tmp) {
var aKeys, bKeys;
try {
aKeys = Object.keys(a);
bKeys = Object.keys(b);
} catch(e) {
tmp.result = false;
return true;
}
if(aKeys.length !== bKeys.length) {
tmp.result = false;
return true;
}
aKeys.sort();
bKeys.sort();
tmp.result = (
/* equal if every key matches */
aKeys.every(function(aKey, i) {
return (aKey = bKeys[i]);
})
&& /* ... and ... */
/* every value matches */
aKeys.every(function(key) {
return deepEqual(a[key], b[key]);
})
);
return true;
}
/*
* Function: _deepEqualPrototype_
*
* (*INTERNAL*) check if the prototypes of two values are different
*
* Parameters:
*
* a - (*Object*) a value to check
* b - (*Object*) another value to check
* tmp - (*Object*) temporary storage object
*
* Returns:
*
* - (*Boolean*) *true* if the two objects have different prototypes
* (also sets *tmp.result* to *false*)
*
* See:
* - <deepEqual>
* - <nodejs.org at http://www.nodejs.org/>
* - <Node License>
*/
function _deepEqualPrototype_(a, b, tmp) {
var result = ( a.prototype !== b.prototype );
if(result) { tmp.result = false; }
return result;
}
/*
* Function: _deepEqualRegExp_
*
* (*INTERNAL*) try to compare two values as RegExps
*
* Parameters:
*
* a - (*Object*) a value to be compared with
* b - (*Object*) another value to be compared with
* tmp - (*Object*) temporary storage object
*
* Returns:
*
* - (*Boolean*) *true* if the two objects are RegExps (also sets
* *tmp.result* to *true* according to whether the RegExps
* are equal)
*
* See:
* - <deepEqual>
* - <nodejs.org at http://www.nodejs.org/>
* - <Node License>
*/
function _deepEqualRegExp_(a, b, tmp) {
var result = (a instanceof RegExp && b instanceof RegExp);
if(result) {
tmp.result = (
a.source === b.source &&
a.global === b.global &&
a.multiline === b.multiline &&
a.lastIndex === b.lastIndex &&
a.ignoreCase === b.ignoreCase
);
}
return result;
}
/*
* Function: deepEqual
*
* deep comparison of two values
*
* Parameters:
*
* a - (*Object*) a value to be compared with
* b - (*Object*) another value to be compared with
*
* Returns:
*
* - (*Boolean*) whether the two objects are equal in a deep comparison
*
* See:
*
* - <_deepEqualArray_>
* - <_deepEqualDate_>
* - <_deepEqualDirect_>
* - <_deepEqualNonObject_>
* - <_deepEqualNull_>
* - <_deepEqualObject_>
* - <_deepEqualPrototype_>
* - <_deepEqualRegExp_>
* - <nodejs.org at http://www.nodejs.org/>
* - <Node License>
*/
function deepEqual(a, b) {
var tmp = {};
/*
* iterate through each comparison heuristic
* until one of them yields a definitive result
*/
[
_deepEqualDirect_,
_deepEqualArray_,
_deepEqualDate_,
_deepEqualRegExp_,
_deepEqualNonObject_,
_deepEqualNull_,
_deepEqualPrototype_,
_deepEqualObject_
].some(function(func) {
return func.apply(null, [a, b, tmp]);
});
return tmp.result;
}
/*
* Function: indexMap
*
* map a tuple of integer indexes to a single index
*
* maps a tuple of integer indexes representing an index into a multidimensional
* array to a single index that represents an index into a flattened 1D version
* of the same array. The flattened array is conceptually arranged so that
* tuples mapping to consecutive flattened index values have their
* index components changing faster the earlier they occur in the tuple (i.e.:
* FORTRAN ordering).
*
* For example, a 3 x 5 array would have their flattened index values
* conceptually arranged according to the diagram below:
*
* | dim_1
* |
* | 0 1 2 3 4
* | .------------------------.
* | 0 | 0 | 3 | 6 | 9 | 12 |
* | |----+-------------------|
* | dim_0 1 | 1 | 4 | 7 | 10 | 13 |
* | |----+-------------------|
* | 2 | 2 | 5 | 8 | 11 | 14 |
* | '------------------------'
*
* Parameters:
* indexes[] - (*array*) array of integer indexes
* dimensions[] - (*array*) array of integer dimensions
*
* Returns:
* - (*number*) integer index into the flattened array
*
* Example:
* (begin code)
* var im = torusvis.indexMap;
* var dimensions = [3, 5];
*
* console.log(im([0, 0], dimensions));
* console.log(im([1, 0], dimensions));
* console.log(im([2, 0], dimensions));
* console.log(im([0, 1], dimensions));
* console.log(im([1, 1], dimensions));
* console.log(im([2, 1], dimensions));
* console.log(im([0, 2], dimensions));
* (end code)
*
* | 0
* | 1
* | 2
* | 3
* | 4
* | 5
* | 6
*
* See also:
* - <indexUnmap>
*/
function indexMap(indexes, dimensions) {
var result = 0,
scaleFactor = 1;
iter(indexes, function(index, i) {
if(i > 0) { scaleFactor *= dimensions[i-1]; }
result += index*scaleFactor;
});
return result;
}
/*
* Function: indexUnmap
*
* map a single index to a tuple of integer indexes
*
* maps a single index into a flattend array to a tuple of integer indexes
* representing an index into a multidimensional version ot the same array.
* This function is the inverse of <indexMap>.
*
* Parameters:
* index - (*number*) integer index
* dimensions[] - (*array*) array of integer dimensions
* [result[]] - (*array*) array to populate with the resulting indexes
* (default: a new array is allocated)
*
* Returns:
* - (*array*) tuple of integer indexes
*
* See also:
* - <indexMap>
*/
function indexUnmap(index, dimensions, result) {
if((void 0) === result || null === result) {
result = new Array(dimensions.length);
}
var divisor = reduce(dimensions, multiply, 1.0);
for(var i=dimensions.length; i--; ) {
divisor /= dimensions[i];
result[i] = Math.floor(index/divisor);
index %= divisor;
}
return result;
}
function multiply(a, b) { return a*b; }
function add(a, b) { return a+b; }
/*
* Function: noop
*
* does nothing (it's a no-op)
*
* Parameters:
* anything you want (it's a no-op)
*
* Returns:
* - absolutely nothing (it's a no-op)
*
* Throws:
* - never (unless something went horribly wrong)
*/
function noop() { }
/*
* Function: objectPop
*
* remove and return an item from an object
*
* returns the item mapped to the given key in the given object. The entry for
* the returned item is also removed from it. If the given key is not provided,
* a key is arbitrarily chosen from the given object. If the given object is
* empty or does not contain a provided key, then *null* is returned and the
* object is not modified.
*
* Parameters:
* obj - (*Object*) the given object
* [key] - (*Object*) an optional key
*
* Returns:
* - (*array*) The *[key, value]* pair removed, or *null*
*
*/
function objectPop(obj, key) {
var result;
var hasKey = (arguments.length >= 2);
if(!hasKey) {
var objKeys = Object.keys(obj);
hasKey = (objKeys.length > 0);
if(hasKey) { key = objKeys[0]; }
}
if(hasKey) {
result = [key, obj[key]];
delete obj[key];
}
return result;
}
/*
* Class: IdAllocator
*
* integer ID allocator
*
* An <IdAllocator> is a self-contained namespace of unique integer ID
* numbers. <IdAllocators> provide methods for allocating new ID numbers and
* releasing previously allocated ID numbers. Once allocated, an ID number is
* guaranteed to never be returned by a subsequent allocation by the same
* <IdAllocator> until it is released.
*/
/*
* Constructor: new IdAllocator
*
* constructs a new <IdAllocator> with no ID numbers allocated
*/
function IdAllocator() {
this.freeAll();
}
extend(IdAllocator.prototype, {
constructor: IdAllocator,
alloc:
/*
* Method: alloc
*
* allocates a new ID number
*
* Returns:
*
* - (*number*) the allocated ID number
*
* See:
*
* - <free>
* - <freeAll>
*/
function alloc() {
var result = objectPop(this.freeSet);
if(isNull(result)) {
return this.counter++;
}
++this.size;
return result[0];
},
idIsAllocated:
/*
* Method: idIsAllocated
*
* check if a given ID is allocated
*
* Returns:
* - (*Boolean*) whether the given ID is allocated
*/
function idIsAllocated(id) {
return (
id < this.counter &&
!( id in this.freeSet )
);
},
free:
/*
* Method: free
*
* releases an allocated ID number, allowing it to be allocated again
*
* See:
*
* - <alloc>
* - <freeAll>
*/
function free(id) {
if(!this.idIsAllocated(id)) {
throw Error("id not allocated");
}
this.freeSet[id] = true;
--this.size;
},
freeAll:
/*
* Method: freeAll
*
* releases all allocated ID numbers
*
* See:
* - <free>
* - <alloc>
*/
function freeAll() {
this.freeSet = {};
this.counter = 0;
this.size = 0;
},
size:
/*
* Method: size
*
* returns the number of allocated ID numbers
*
* Returns:
* - (*number*) number of allocated ID numbers
*/
function size() {
return this.size;
}
});
/*
* Class: IterationGuard
*
* reference-counting write guard for iterators
*
* Data structure types offering an iterator interface usually require that
* client code avoid performing operations that modify the internal structures
* of the type's instances -- often to prevent undefined behavior. For example,
* types representing a list usually forbid client code from adding or removing
* items while iterating over them.
*
* <IterationGuards> enable these types to protect their internal structures
* from iteration code. To do so, these types allocate an <IterationGuard>
* instance, enable it before allowing client code to iterate over its contents,
* and disable it once client code has completed iteration. By inserting checks
* on the state of the <IterationGuard> near the beginning of each of its
* structure-modifying methods, such data structure types can readily detect and
* react to client code that is trying to modify structure while traversing it.
*
* <IterationGuards> track a reference count that is incremented by one every
* time it is enabled, and decremented by 1 every time it is disabled, raising
* an exception anytime it is checked with a non-zero reference count. In this
* way, <IterationGuards> allow iteration code to recursively iterate in a
* manner analagous to how reentrant locks and semaphores allow nested access to
* critical sections of data.
*
* Example:
* (begin code)
* function ExampleList() {
* this.array = [];
* this.iterGuard = new torusvis.IterationGuard();
* }
*
* ExampleList.prototype.add = function(item) {
* // throws exception if being iterated over
* this.iterGuard.check();
*
* // go on to add item ...
* }
*
* // similarly for insert(), remove(), etc...
*
* ExampleList.prototype.iterItems = function(callback) {
* this.iterGuard.run(function() {
* // *None* of the code executed within this function body can modify
* // the ExampleList's internal structures. This restriction extends
* // to the client iteration callback code.
*
* for(
* // some loop condition
* ) {
* var item = this.getNextItem();
*
* // client iteration code
* var result = callback(item);
*
* // comonly used to allow client code to break out of the
* // iteration by returning anything that evaluates to true in a
* // boolean context
* if(!!(result)) { break; }
* }
* });
* }
*
* // later on in client code...
* var myList = new ExampleList();
* for(...) {
* var item = // new item
* ExampleList.add(item);
* }
*
* ...
*
* myList.iterItems(function(item) {
* // do anything with item
*
* // can also recursively iterate
* myList.iterItems(function(otherItem) {
* if(item != otherItem) {
* // do something interesting...
* }
* });
*
* try {
* var anotherItem = // completely new item
*
* // raises an exception: cannot modify
* // internal structure while iterating
* myList.add(anotherItem);
* } catch(e) {
* console.log('exception thrown');
* }
* });
* (end code)
*
* | exception thrown
*/
/*
* Constructor: new IterationGuard
*
* constructs a new <IterationGuard>
*
* See also:
* - <IterationGuard>
*/
function IterationGuard() {
this.referenceCount = 0;
}
extend(IterationGuard.prototype, {
check:
/*
* Method: check
*
* checks the state of the <IterationGuard>
*
* Throws:
* - (*Error*) (the exception set to be thrown) if the <IterationGuard>
* is enabled
*
* See also:
* - <setException>
* - <getException>
* - <IterationGuard.check>
*/
function check() {
if(this.referenceCount > 0) {
throw this.getException();
}
},
getException:
/*
* Method: getException
*
* return the exception set to be thrown when this <IterationGuard> is
* triggered
*
* Returns:
* - (*Error*) the exception set to be thrown
*
* See also:
* - <setException>
* - <check>
*/
function getException() {
var result = this.exception || null;
if(!!result) {
result = new Error(
"cannot modify internal state while iterating it"
);
this.exception = result;
}
return result;
},
run:
/*
* Method: run
*
* executes a given callback while ensuring the <IterationGuard> is enabled
*
* If the <IterationGuard> is <checked> during the execution of the callback
* function, an exception is thrown
*
* Parameters:
* callback - (*function*) callback function to execute
*
* Throws:
* - (*Error*) if the <IterationGuard> is checked during the execution
* of the callback function
*
* See also:
* - <check>
* - <_increment>
*/
function run(callback) {
this._increment(+1);
try { callback(); }
finally {
this._increment(-1);
}
},
setException:
/*
* Method: setException
*
* sets the exception to be thrown when this <IterationGuard> is triggered
*
* Parameters:
* e - (*Error*) the exception set to be thrown
*
* Returns:
* - (*IterationGuard*) *this*
*
* See also:
* - <getException>
* - <check>
*/
function setException(e) {
this.exception = e;
return this;
},
_increment:
/*
* Method: _increment
*
* (*INTERNAL*) modifies the reference count of the <IterationGuard>
*
* Parameters:
* [amount] - (*number*) the amount by which to change the reference
* count (can be negative). (default: 1)
*
* Throws:
* - (*Error*) if the new reference count would become negative after
* the change
*
* See also:
* - <run>
* - <IterationGuard._increment>
*/
function _increment(amount) {
if(arguments.length < 1) {
amount = 1;
}
var newReferenceCount = (
this.referenceCount + amount
);
if(newReferenceCount < 0) {
throw new Error(
"cannot decrement IterationGuard reference count below 0"
);
}
this.referenceCount = newReferenceCount;
},
});
/*
* Function: IterationGuard.check
*
* checks the state of multiple <IterationGuards>
*
* Parameters:
* guards[] - (*<IterationGuard>*) the guards to check
*
* Throws:
* - (*Error*) if any <IterationGuard> <check>() call throws an exception.
* The exception thrown is for the first such <IterationGuard> given.
*
* See also:
* - <check>
*/
IterationGuard.check = function check(guards) {
iter(guards, function(guard) {
guard.check();
});
};
/*
* Function: IterationGuard.run
*
* executes a given callback while ensuring all given <IterationGuards> are
* enabled
*
* If any of the given <IterationGuards> are <checked> during the execution of
* the callback function, an exception is thrown
*
* Parameters:
* guards[] - (*<IterationGuard>*) the guards to execute the given callback
* under
* callback - (*function*) callback function to execute
*
* Throws:
* - (*Error*) if any given <IterationGuard> is checked during the
* execution of the callback function
*
* See also:
* - <check>
* - <run>
*/
IterationGuard.run = function run(guards, callback) {
IterationGuard._increment(guards, +1);
try { callback(); }
finally {
IterationGuard._increment(guards, -1);
}
};
/*
* Function: IterationGuard._increment
*
* (*INTERNAL*) modifies the reference counts of each <IterationGuard> given
*
* Parameters:
* guards[] - (*<IterationGuard>*) the guards to increment
*
* [amount] - (*number*) the amount by which to change the reference
* counts (can be negative). (default: 1)
*
* Throws:
* - (*Error*) if the new reference count of any given <IterationGuard>
* would become negative after the change. None of the given
* <IterationGuards> are modified in this case.
*
* See also:
* - <_increment>
* - <IterationGuard.run>
*/
IterationGuard._increment = function _increment(guards, amount) {
var n = arguments.length;
if(arguments.length < 2) {
amount = 1;
}
var lastI;
for(var i=0; i<n; ++i) {
lastI = i;
try {
guards[i]._increment(amount);
} catch(e) {
for(;lastI--;) {
guards[lastI]._increment(-amount);
}
throw e;
}
}
};
/*
* Class: OrderedMap
*
* ordered mapping between key-value pairs
*
* An <OrderedMap> is a mapping between key-value pairs that "remembers" the
* order in which new keys are added. Changing the value for an existing key in
* an <OrderedMap> will not change the key's place in the ordering. To move an
* existing key "to the front of the line", first remove (<unset>) the key-value
* pair from the <OrderedMap> and then <set> it, anew.
*/
/*
* Constructor: new OrderedMap
*
* constructs an empty <OrderedMap>
*/
function OrderedMap() {
this.unset();
}
extend(OrderedMap.prototype, {
constructor: OrderedMap,
get:
/*
* Method: get
*
* fetch and return one or more values associated with the given keys
*
* If one key is given, the value associated with it is returned.
*
* If multiple keys are given, a plain object mapping each provided key to
* its associated value is returned.
*
* If no keys are given, a plain object mapping all keys is returned.
*
* Parameters:
*
* [keys[, ...]] - (*String* | *number*) one or more keys or indexes to
* look up, or none to return all entries
*
* Returns:
* - (*Object*) value associated with the given key, or plain object
* mapping multiple keys
*/
function get() {
var args = Array.slice(arguments);
var self = this;
var result;
if(args.length < 1) {
result = {};
extend(result, this.map);
} else if(args.length === 1) {
var key = args[0];
if(typeof key === "number") {
this._checkIndex(key);
key = this.order[key];
}
result = this.map[key];
} else {
result = {};
iter(args, function(key) {
var k = key;
if(typeof k === "number") {
k = self.order[k];
}
result[key] = self.map[k];
});
}
return result;
},
/*
* Method: keys
*
* return keys in the order that they were added
*
* Returns:
*
* - (*array*) list of keys in order
*/
keys:
function keys() {
return [].concat(this.order);
},
/*
* Method: length
*
* return the number of keys
*
* Returns:
*
* - (*number*) the number of keys in this <OrderedMap>
*/
length:
function length() {
return this.order.length;
},
set:
/*
* Method: set
*
* sets the value to be associated with a given key
*
* If an entry for *key* does not already exist, a new one is created for
* it. If *key* is a number, the value for the *key*'th entry is set, or an
* exception is thrown if *key* is out of bounds.
*
* Parameters:
*
* key - (*String* | *number*) key or index to look up.
* value - (*Object*) object to associate with *key*
*
* Returns:
* - (*Object*) *this*
*
* Throws:
* - (*Error*) if a given numeric key is out of bounds
*/
function set(key, value) {
if(typeof key === "number") {
this._checkIndex(key);
key = this.order[key];
}
var keyExists = ( key in this.map );
this.map[key] = value;
if(!keyExists) {
this.order.push(key);
}
return this;
},
unset:
/*
* Method: unset
*
* remove entries for a set of given keys
*
* Parameters:
*
* [keys[, ...]] - (*String* | *number*) one or more keys or indexes to
* remove from the mapping, or none to clear all entries
*
* Returns:
* - (*Object*) *this*
*/
function unset() {
var args = Array.slice(arguments);
if(args.length < 1) {
this.map = {};
this.order = [];
} else {
var keySet = {};
var self = this;
iter(args, function(key) {
if(typeof key === "number") {
key = self.order[key];
}
var keyNotFound = !(key in keySet);
if(keyNotFound) {
keySet[key] = true;
delete self.map[key];
}
});
var key;
var index = 0;
var n = this.order.length;
while(index < n) {
key = this.order[index];
if(key in keySet) {
if(index === 0) {
this.order.shift();
} else if(index + 1 === n) {
this.order.pop();
} else {
this.order = this.order.concat(
this.order.splice(index).slice(1)
);
}
--n;
} else {
++index;
}
}
}
return this;
},
_checkIndex:
/*
* Method: _checkIndex
*
* (*INTERNAL*) index bounds check for this <OrderedMap>
*
* Parameters:
*
* key - (*number*) the index to be checked
*
* Throws:
*
* - (*Error*) if *key* is out of this <OrderedMap's> array bounds
*/
function _checkIndex(key) {
if(key < 0 || key >= this.order.length) {
throw new Exception("numeric key " + key + " is out of bounds");
}
}
});
function reserve(array, capacity) {
var length = array.length;
if(length < capacity) {
array.push.apply(array, new Array(capacity - length));
}
return array;
}
function iter(iterable, callback) {
var result;
if(isFunction(iterable)) {
result = iterable(callback);
return result;
}
if( /* if array-like */
Array.isArray(iterable) ||
isFunction(iterable.some)
) {
result = iterable.some(callback);
return result;
}
/* should catch all other iterables */
if(isPlainObject(iterable)) {
result = Object.keys(iterable).some(function(key) {
var item = iterable[key];
/*
* counteract the coercion of Numbers to Strings
*
* If index is a String containing a number, and converting to a
* Number and back results in the same string, then use the number
* as the key.
*/
if(isString(key)) {
var numericKey = Number(key);
if(!isNaN(numericKey)) {
var key2 = String(numericKey);
if(key2 === key) {
key = numericKey;
}
}
}
return callback(item, key, iterable);
});
return result;
}
throw Error("incompatible iterable");
}
function map(iterable, callback) {
var result;
if(isFunction(iterable)) {
result = iterable(callback);
return result;
}
if( /* if array-like */
Array.isArray(iterable) ||
isFunction(iterable.map)
) {
result = iterable.map(callback);
return result;
}
/* should catch all other iterables */
if(isPlainObject(iterable)) {
result = {};
iter(iterable, function(item, key) {
/*
* counteract the coercion of Numbers to Strings
*
* If index is a String containing a number, and converting to a
* Number and back results in the same string, then use the number
* as the key.
*/
if(isString(key)) {
var numericKey = Number(key);
if(!isNaN(numericKey)) {
var key2 = String(numericKey);
if(key2 === key) {
key = numericKey;
}
}
}
result[key] = callback(item, key, iterable);
});
return result;
}
throw Error("incompatible iterable");
}
function reduce(iterable, callback, initialValue) {
var result;
if(isFunction(iterable)) {
result = iterable(callback, initialValue);
return result;
}
if( /* if array-like */
Array.isArray(iterable) ||
isFunction(iterable.reduce)
) {
result = iterable.reduce(callback, initialValue);
return result;
}
if(arguments.length < 3) {
initialValue = 0;
}
/* should catch all other iterables */
if(isPlainObject(iterable)) {
result = initialValue;
iter(iterable, function(item, key) {
/*
* counteract the coercion of Numbers to Strings
*
* If index is a String containing a number, and converting to a
* Number and back results in the same string, then use the number
* as the key.
*/
if(isString(key)) {
var numericKey = Number(key);
if(!isNaN(numericKey)) {
var key2 = String(numericKey);
if(key2 === key) {
key = numericKey;
}
}
}
result = callback(result, item, key, iterable);
});
return result;
}
throw Error("incompatible iterable");
}
extend(exports, {
global: features.require("global"),
objectPop: objectPop,
isNull: isNull,
isPlainObject: isPlainObject,
isFunction: isFunction,
extend: extend,
urlArguments: features.require("urlArguments"),
deepEqual: deepEqual,
indexMap: indexMap,
indexUnmap: indexUnmap,
noop: noop,
breakFunction: breakFunction,
/*
* Function: _abstract_
*
* (*INTERNAL*) function stub for abstract methods
*/
_abstract_ : breakFunction("abstract"),
/*
* Function: _notImplemented_
*
* (*INTERNAL*) function stub for unimplemented functions
*/
_notImplemented_: breakFunction("not implemented"),
/*
* Function: _notSupported_
*
* (*INTERNAL*) function stub for unsupported functions
*/
_notSupported_: breakFunction("not supported"),
multiply: multiply,
add: add,
OrderedMap: OrderedMap,
IdAllocator: IdAllocator,
IterationGuard: IterationGuard,
bisect: bisect,
reserve: reserve,
iter: iter,
map: map,
reduce: reduce
});
| 24.998631 | 80 | 0.546012 |
0246d17167c534816f782a2bc0785975a643675a | 1,770 | js | JavaScript | app/extensions/storidge/views/profiles/create/createProfileController.js | lukaspj/portainer | 8cd3964d759be8c6906d2dedad4ae4342c830fa0 | [
"Zlib"
] | 4 | 2017-12-17T12:38:28.000Z | 2018-12-25T15:57:32.000Z | app/extensions/storidge/views/profiles/create/createProfileController.js | kyalha/portainer | 1c3822ddf76cdcd95fdc5774df219cbed03821f1 | [
"Zlib"
] | 1 | 2021-05-11T22:29:42.000Z | 2021-05-11T22:29:42.000Z | app/extensions/storidge/views/profiles/create/createProfileController.js | kyalha/portainer | 1c3822ddf76cdcd95fdc5774df219cbed03821f1 | [
"Zlib"
] | 1 | 2019-03-05T11:32:56.000Z | 2019-03-05T11:32:56.000Z | angular.module('extension.storidge')
.controller('StoridgeCreateProfileController', ['$scope', '$state', '$transition$', 'Notifications', 'StoridgeProfileService',
function ($scope, $state, $transition$, Notifications, StoridgeProfileService) {
$scope.state = {
NoLimit: true,
LimitIOPS: false,
LimitBandwidth: false,
ManualInputDirectory: false,
actionInProgress: false
};
$scope.RedundancyOptions = [
{ value: 2, label: '2-copy' },
{ value: 3, label: '3-copy' }
];
$scope.create = function () {
var profile = $scope.model;
if (!$scope.state.LimitIOPS) {
delete profile.MinIOPS;
delete profile.MaxIOPS;
}
if (!$scope.state.LimitBandwidth) {
delete profile.MinBandwidth;
delete profile.MaxBandwidth;
}
$scope.state.actionInProgress = true;
StoridgeProfileService.create(profile)
.then(function success() {
Notifications.success('Profile successfully created');
$state.go('storidge.profiles');
})
.catch(function error(err) {
Notifications.error('Failure', err, 'Unable to create profile');
})
.finally(function final() {
$scope.state.actionInProgress = false;
});
};
$scope.updatedName = function() {
if (!$scope.state.ManualInputDirectory) {
var profile = $scope.model;
profile.Directory = '/cio/' + profile.Name;
}
};
$scope.updatedDirectory = function() {
if (!$scope.state.ManualInputDirectory) {
$scope.state.ManualInputDirectory = true;
}
};
function initView() {
var profile = new StoridgeProfileDefaultModel();
profile.Name = $transition$.params().profileName;
profile.Directory = '/cio/' + profile.Name;
$scope.model = profile;
}
initView();
}]);
| 26.41791 | 126 | 0.645763 |
0247261cabcd6b3bfd5277ace87237c1c8d243c3 | 1,312 | js | JavaScript | server/index.js | vindrek/blockchain-real-estate-baseline | 194223e8b5800ae11206edcdf4b86610f227a3b1 | [
"MIT"
] | 13 | 2018-09-11T12:04:54.000Z | 2021-07-04T16:55:50.000Z | server/index.js | CodezerosDev/Smart-Estate | b1af15ad140051f5a94283a88a98076a73def926 | [
"MIT"
] | 4 | 2018-02-22T18:51:26.000Z | 2018-03-27T00:06:19.000Z | server/index.js | CodezerosDev/Smart-Estate | b1af15ad140051f5a94283a88a98076a73def926 | [
"MIT"
] | 8 | 2018-03-09T14:12:21.000Z | 2022-02-08T18:20:40.000Z | 'use strict';
const routes = require('../config/routes');
const dbConfig = require('../config/database');
const _port = require('../config/globals').port;
const log = require('./logger');
module.exports = {
start({port = _port, env = process.env.NODE_ENV || 'development'}) {
const sequelize = require('./dbConnector')(dbConfig);
sequelize.authenticate().then(() => {
log.info(`Connected to ${sequelize.config.database} db on ${sequelize.config.host}:${sequelize.config.port}`);
global.Models = require('../api/models')(sequelize);
}).catch(error => {
log.error('DB connection error: ', error);
});
const express = require('express'),
app = express(),
server = require('http').createServer(app);
let controllersMap = require('./controllersMapper');
let middlewaresMap = require('./middlewareMapper');
let httpRequestsHandler = require('./httpRequestsHandler');
httpRequestsHandler.createHandlers(app, routes, controllersMap, middlewaresMap);
return server.listen(port, () => {
log.info('----------------------------------------------------------------');
log.info('Server listening on port:' + server.address().port);
log.info(`Log: ${log.transports.console.level}`);
log.info(`ENV: ${env}`);
});
}
};
| 34.526316 | 116 | 0.610518 |
0249227012dc613e5162b9e80c13f9cb1c959bc7 | 2,354 | js | JavaScript | src/010_application/BaseScene.js | minimo/holysword | 04974cbbeaf6659e1677aacb44284cf5c0a3a6d5 | [
"MIT"
] | 3 | 2019-08-29T16:34:33.000Z | 2019-08-31T07:55:19.000Z | src/010_application/BaseScene.js | minimo/holysword | 04974cbbeaf6659e1677aacb44284cf5c0a3a6d5 | [
"MIT"
] | 2 | 2020-04-06T02:35:33.000Z | 2022-03-24T13:50:07.000Z | src/010_application/BaseScene.js | minimo/holysword | 04974cbbeaf6659e1677aacb44284cf5c0a3a6d5 | [
"MIT"
] | null | null | null | /*
* MainScene.js
* 2018/10/26
*/
phina.namespace(function() {
phina.define("BaseScene", {
superClass: 'DisplayScene',
//廃棄エレメント
disposeElements: null,
init: function(options) {
options = (options || {}).$safe({
width: SCREEN_WIDTH,
height: SCREEN_HEIGHT,
backgroundColor: 'transparent',
});
this.superInit(options);
//シーン離脱時canvasメモリ解放
this.disposeElements = [];
this.one('destroy', () => {
this.disposeElements.forEach(e => {
if (e.destroyCanvas) {
e.destroyCanvas();
} else if (e instanceof Canvas) {
e.setSize(0, 0);
}
});
});
this.app = phina_app;
//別シーンへの移行時にキャンバスを破棄
this.one('exit', () => {
this.destroy();
this.canvas.destroy();
this.flare('destroy');
console.log("Exit scene.");
});
},
destroy: function() {},
fadeIn: function(options) {
options = (options || {}).$safe({
color: "white",
millisecond: 500,
});
return new Promise(resolve => {
const mask = RectangleShape({
width: SCREEN_WIDTH,
height: SCREEN_HEIGHT,
fill: options.color,
strokeWidth: 0,
}).setPosition(SCREEN_WIDTH * 0.5, SCREEN_HEIGHT * 0.5).addChildTo(this);
mask.tweener.clear()
.fadeOut(options.millisecond)
.call(() => {
resolve();
this.app.one('enterframe', () => mask.destroyCanvas());
});
});
},
fadeOut: function(options) {
options = (options || {}).$safe({
color: "white",
millisecond: 500,
});
return new Promise(resolve => {
const mask = RectangleShape({
width: SCREEN_WIDTH,
height: SCREEN_HEIGHT,
fill: options.color,
strokeWidth: 0,
}).setPosition(SCREEN_WIDTH * 0.5, SCREEN_HEIGHT * 0.5).addChildTo(this);
mask.alpha = 0;
mask.tweener.clear()
.fadeIn(options.millisecond)
.call(() => {
resolve();
this.app.one('enterframe', () => mask.destroyCanvas());
});
});
},
//シーン離脱時に破棄するShapeを登録
registDispose: function(element) {
this.disposeElements.push(element);
},
});
}); | 24.520833 | 81 | 0.514019 |
024a0961f8aa42f21b91b3f0bdac64fd92f4abfb | 638 | js | JavaScript | test/integration/ssr-prepass/test/index.test.js | congthanh1910/next.js | e16800079c222af3dab9140fcb2b12aa20c6282d | [
"MIT"
] | null | null | null | test/integration/ssr-prepass/test/index.test.js | congthanh1910/next.js | e16800079c222af3dab9140fcb2b12aa20c6282d | [
"MIT"
] | null | null | null | test/integration/ssr-prepass/test/index.test.js | congthanh1910/next.js | e16800079c222af3dab9140fcb2b12aa20c6282d | [
"MIT"
] | null | null | null | /* eslint-env jest */
import { join } from 'path'
import {
killApp,
findPort,
nextStart,
nextBuild,
renderViaHTTP,
} from 'next-test-utils'
jest.setTimeout(1000 * 30)
const appDir = join(__dirname, '../')
let appPort
let app
describe('SSR Prepass', () => {
beforeAll(async () => {
await nextBuild(appDir)
appPort = await findPort()
app = await nextStart(appDir, appPort)
})
afterAll(() => killApp(app))
it('should not externalize when used outside Next.js', async () => {
const html = await renderViaHTTP(appPort, '/')
expect(html).toMatch(/hello.*?world/)
})
})
| 20.580645 | 71 | 0.609718 |
024a2098c61964886323710234efb014eb59e692 | 1,002 | js | JavaScript | data/split-book-data/B004K50434.1641157528522.js | joonaspaakko/ale-test-new | 9326f0129a94f2712a0bd937e43a94e04a930218 | [
"0BSD"
] | null | null | null | data/split-book-data/B004K50434.1641157528522.js | joonaspaakko/ale-test-new | 9326f0129a94f2712a0bd937e43a94e04a930218 | [
"0BSD"
] | null | null | null | data/split-book-data/B004K50434.1641157528522.js | joonaspaakko/ale-test-new | 9326f0129a94f2712a0bd937e43a94e04a930218 | [
"0BSD"
] | null | null | null | window.bookSummaryJSON = "<p>They say that the Thorn of Camorr can beat anyone in a fight. They say he steals from the rich and gives to the poor. They say he's part man, part myth, and mostly street-corner rumor. And they are wrong on every count. Only averagely tall, slender, and god-awful with a sword, Locke Lamora is the fabled Thorn, and the greatest weapons at his disposal are his wit and cunning. </p> <p>He steals from the rich - they're the only ones worth stealing from - but the poor can go steal for themselves. What Locke cons, wheedles and tricks into his possession is strictly for him and his band of fellow con-artists and thieves: the Gentleman Bastards. Together their domain is the city of Camorr. Built of Elderglass by a race no-one remembers, it's a city of shifting revels, filthy canals, baroque palaces, and crowded cemeteries. Home to Dons, merchants, soldiers, beggars, cripples, and feral children. And to Capa Barsavi, the criminal mastermind who runs the city.</p>";
| 501 | 1,001 | 0.777445 |
024ac771d54fd22d5071d1358639746bc426052b | 971 | js | JavaScript | helpers/database.js | alwint3r/iot-webapp-base | c23a07323fb92db48b199d21b11df524a7c5ca07 | [
"MIT",
"Unlicense"
] | 1 | 2016-06-11T08:57:16.000Z | 2016-06-11T08:57:16.000Z | helpers/database.js | alwint3r/iot-webapp-base | c23a07323fb92db48b199d21b11df524a7c5ca07 | [
"MIT",
"Unlicense"
] | null | null | null | helpers/database.js | alwint3r/iot-webapp-base | c23a07323fb92db48b199d21b11df524a7c5ca07 | [
"MIT",
"Unlicense"
] | null | null | null | 'use strict';
const mongoose = require('mongoose');
const config = require('../config');
module.exports = function (done) {
(function () {
const options = {
server: {
socketOptions : {
keepAlive: 1,
},
},
};
if (config.mongodb.username && config.mongodb.password) {
options.user = config.mongodb.username;
option.pass = config.mongodb.password;
}
mongoose.connect(config.mongodb.connectionUri, options);
}());
mongoose.connection.on('error', err => {
console.error('Error on connecting to mongodb server. Details:', err);
return done(err);
});
process.on('SIGINT', () =>
mongoose.connection.close(() => process.exit(0))
);
mongoose.connection.on('connected', () => {
console.log('Mongoose is connected to database server');
return done(null);
});
};
| 24.275 | 78 | 0.53862 |
024ada11782fb0aed6018a12144ac70474a18545 | 1,783 | js | JavaScript | node_modules/react-redux-firebase/lib/ReduxFirestoreProvider.js | roydbie/battieboys | 0047603874c34e4428ea4de64f0151223204e4a2 | [
"Unlicense"
] | 1 | 2021-05-08T21:32:52.000Z | 2021-05-08T21:32:52.000Z | node_modules/react-redux-firebase/lib/ReduxFirestoreProvider.js | roydbie/battieboys | 0047603874c34e4428ea4de64f0151223204e4a2 | [
"Unlicense"
] | 10 | 2020-02-02T05:36:40.000Z | 2022-02-26T23:08:19.000Z | node_modules/react-redux-firebase/lib/ReduxFirestoreProvider.js | roydbie/battieboys | 0047603874c34e4428ea4de64f0151223204e4a2 | [
"Unlicense"
] | 1 | 2020-02-21T18:05:10.000Z | 2020-02-21T18:05:10.000Z | "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _react=_interopRequireDefault(require("react")),_propTypes=_interopRequireDefault(require("prop-types")),_ReduxFirestoreContext=_interopRequireDefault(require("./ReduxFirestoreContext")),_createFirebaseInstance=_interopRequireDefault(require("./createFirebaseInstance"));function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function ReduxFirestoreProvider(){var props=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},children=props.children,config=props.config,dispatch=props.dispatch,firebase=props.firebase,createFirestoreInstance=props.createFirestoreInstance,initializeAuth=props.initializeAuth,extendedFirestoreInstance=_react.default.useMemo(function(){var extendedFirebaseInstance=firebase._reactReduxFirebaseExtended?firebase:(0,_createFirebaseInstance.default)(firebase,config,dispatch),extendedFirestoreInstance=createFirestoreInstance(firebase,config,dispatch);return initializeAuth&&extendedFirebaseInstance.initializeAuth(),extendedFirestoreInstance},[firebase,config,dispatch,createFirestoreInstance,initializeAuth]);return _react.default.createElement(_ReduxFirestoreContext.default.Provider,{value:extendedFirestoreInstance},children)}ReduxFirestoreProvider.defaultProps={initializeAuth:!0},ReduxFirestoreProvider.propTypes={children:_propTypes.default.node,config:_propTypes.default.object.isRequired,dispatch:_propTypes.default.func.isRequired,createFirestoreInstance:_propTypes.default.func.isRequired,initializeAuth:_propTypes.default.bool,firebase:_propTypes.default.object.isRequired};var _default=ReduxFirestoreProvider;exports.default=_default,module.exports=exports.default;
//# sourceMappingURL=ReduxFirestoreProvider.js.map | 891.5 | 1,732 | 0.872686 |
024aee8ea04e311361291f3ec6c1d2a747bb7d29 | 9,394 | js | JavaScript | experimental/origin-admin/src/pages/listings/Listing.js | hugooconnor/origin | 1a18d993fe1c52d8ea2a7655a8d8ac648c092e7e | [
"MIT"
] | null | null | null | experimental/origin-admin/src/pages/listings/Listing.js | hugooconnor/origin | 1a18d993fe1c52d8ea2a7655a8d8ac648c092e7e | [
"MIT"
] | 7 | 2019-12-26T16:59:54.000Z | 2021-09-20T22:53:44.000Z | experimental/origin-admin/src/pages/listings/Listing.js | hugooconnor/origin | 1a18d993fe1c52d8ea2a7655a8d8ac648c092e7e | [
"MIT"
] | null | null | null | import React, { Component } from 'react'
import { Query } from 'react-apollo'
import { Link } from 'react-router-dom'
import get from 'lodash/get'
import {
Button,
ButtonGroup,
NonIdealState,
AnchorButton,
Tooltip,
Tag,
Tabs,
Tab
} from '@blueprintjs/core'
import currency from 'utils/currency'
import withAccounts from 'hoc/withAccounts'
import {
MakeOffer,
WithdrawListing,
AddData,
CreateListing
} from '../marketplace/mutations'
import Offers from '../marketplace/_Offers'
import EventsTable from '../marketplace/_EventsTable'
import Identity from 'components/Identity'
import Price from 'components/Price'
import Gallery from 'components/Gallery'
import LoadingSpinner from 'components/LoadingSpinner'
import QueryError from 'components/QueryError'
import query from 'queries/Listing'
class Listing extends Component {
state = {}
render() {
const listingId = this.props.match.params.listingID
return (
<div className="p-3">
{this.renderBreadcrumbs()}
<Query query={query} variables={{ listingId }}>
{({ networkStatus, error, data }) => {
if (networkStatus === 1) {
return <LoadingSpinner />
} else if (error) {
return <QueryError error={error} query={query} />
} else if (!data || !data.marketplace) {
return 'No marketplace contract?'
}
const listing = data.marketplace.listing
if (!listing) {
return (
<div style={{ maxWidth: 500, marginTop: 50 }}>
<NonIdealState
icon="help"
title="Listing not found"
action={
<AnchorButton href="#/marketplace" icon="arrow-left">
Back to Listings
</AnchorButton>
}
/>
</div>
)
}
let selectedTabId = 'offers'
if (this.props.location.pathname.match(/events$/)) {
selectedTabId = 'events'
}
const media = get(data, 'marketplace.listing.media') || []
return (
<>
<div style={{ display: 'flex' }}>
{!media.length && !listing.description ? null : (
<div style={{ maxWidth: 300, margin: '20px 20px 0 0' }}>
{!media.length ? null : <Gallery pics={media} />}
<div className="mt-2" style={{ whiteSpace: 'pre-wrap' }}>
{listing.description}
</div>
</div>
)}
<div>
<h3 className="bp3-heading mt-3">{listing.title}</h3>{' '}
{this.renderDetail(listing)}
<Tabs
selectedTabId={selectedTabId}
onChange={(newTab, prevTab) => {
if (prevTab === newTab) {
return
}
if (newTab === 'offers') {
this.props.history.push(
`/marketplace/listings/${listingId}`
)
} else if (newTab === 'events') {
this.props.history.push(
`/marketplace/listings/${listingId}/events`
)
}
}}
>
<Tab
id="offers"
title="Offers"
panel={
<>
<Offers
listing={listing}
listingId={listingId}
offers={listing.allOffers}
/>
<Button
intent="primary"
onClick={() => this.setState({ makeOffer: true })}
>
{`Make Offer for `}
<Price
amount={
listing.price ? listing.price.amount : 0
}
/>
</Button>
</>
}
/>
<Tab
id="events"
title="Events"
panel={<EventsTable events={listing.events} />}
/>
</Tabs>
</div>
</div>
<MakeOffer
{...this.state}
isOpen={this.state.makeOffer}
listing={listing}
onCompleted={() => this.setState({ makeOffer: false })}
/>
<CreateListing
isOpen={this.state.updateListing}
listing={listing}
onCompleted={() => this.setState({ updateListing: false })}
/>
<WithdrawListing
isOpen={this.state.withdrawListing}
listing={listing}
onCompleted={() => this.setState({ withdrawListing: false })}
/>
<AddData
isOpen={this.state.addData}
listing={listing}
onCompleted={() => this.setState({ addData: false })}
/>
</>
)
}}
</Query>
</div>
)
}
renderDetail(listing) {
const accounts = this.props.accounts
const sellerPresent = accounts.find(
a => listing.seller && a.id === listing.seller.id
)
const units = listing.unitsTotal <= 1 ? '' : `${listing.unitsTotal} items `
const available = ` (${listing.unitsAvailable} available) `
return (
<div style={{ marginBottom: 10 }}>
{`${units}${available}${listing.categoryStr} by `}
<Identity account={listing.seller} />
<span style={{ marginRight: 10 }}>
{` for `}
<Price
amount={listing.price ? listing.price.amount : 0}
showEth={true}
/>
{`. Deposit managed by `}
<Identity account={listing.arbitrator} />
</span>
{this.renderActions(sellerPresent, listing)}
{listing.status === 'withdrawn' ? (
<Tag style={{ marginLeft: 15 }}>Withdrawn</Tag>
) : (
<Tag style={{ marginLeft: 15 }} intent="success">
Active
</Tag>
)}
<br />
<span style={{ marginRight: 10 }}>
Commission:{' '}
{currency({ amount: listing.depositAvailable, currency: 'OGN' })}/
{currency({ amount: listing.commission, currency: 'OGN' })}
</span>
<span>
Per-unit commission:{' '}
{currency({ amount: listing.commissionPerUnit, currency: 'OGN' })}
</span>
</div>
)
}
renderActions(sellerPresent = false, listing) {
return (
<>
{listing.status === 'withdrawn' ? null : (
<>
<Tooltip content="Update">
<AnchorButton
disabled={!sellerPresent}
small={true}
icon="edit"
onClick={() => this.setState({ updateListing: true })}
/>
</Tooltip>
<Tooltip content="Delete">
<AnchorButton
intent="danger"
icon="trash"
small={true}
disabled={!sellerPresent}
style={{ marginLeft: 5 }}
onClick={() => this.setState({ withdrawListing: true })}
/>
</Tooltip>
</>
)}
<Tooltip content="Add Data">
<AnchorButton
icon="comment"
small={true}
style={{ marginLeft: 5 }}
onClick={() => this.setState({ addData: true })}
/>
</Tooltip>
</>
)
}
renderBreadcrumbs() {
const listingId = this.props.match.params.listingID
return (
<ul className="bp3-breadcrumbs">
<li>
<Link className="bp3-breadcrumb" to="/marketplace">
Listings
</Link>
</li>
<li>
<span className="bp3-breadcrumb bp3-breadcrumb-current">
{`Listing #${listingId}`}
</span>
<ButtonGroup>
<Button
icon="arrow-left"
style={{ marginLeft: 10 }}
disabled={listingId === 0}
onClick={() => {
this.props.history.push(
`/marketplace/listings/${Number(listingId - 1)}`
)
}}
/>
<Button
icon="arrow-right"
onClick={() => {
this.props.history.push(
`/marketplace/listings/${Number(listingId + 1)}`
)
}}
/>
</ButtonGroup>
</li>
</ul>
)
}
}
export default withAccounts(Listing, 'marketplace')
| 32.281787 | 80 | 0.428678 |
024b5c99992b7736722181d51fe82aa59057ced6 | 914 | js | JavaScript | day1/sketch.js | bschwb/code-art-7-day | 2a28e223baf4bd4df7574add4dfc72f0a5133772 | [
"CC-BY-4.0"
] | null | null | null | day1/sketch.js | bschwb/code-art-7-day | 2a28e223baf4bd4df7574add4dfc72f0a5133772 | [
"CC-BY-4.0"
] | null | null | null | day1/sketch.js | bschwb/code-art-7-day | 2a28e223baf4bd4df7574add4dfc72f0a5133772 | [
"CC-BY-4.0"
] | null | null | null | var h = 100;
var w;
var sign = -1;
var frontColor;
var backColor;
var currentColor;
function setup() {
createCanvas(640, 480);
strokeWeight(8.0);
strokeJoin(ROUND);
noFill();
frontColor = color(0, 130, 130);
backColor = color(0, 110, 110);
currentColor = frontColor;
w = widthOfHeight(h);
}
function draw() {
background(30);
push();
translate(width/2, height/2);
stroke(currentColor);
w = w + sign;
if (w <= 0) {
sign = 1;
if (currentColor == frontColor) {
currentColor = backColor;
}
else if (currentColor == backColor) {
currentColor = frontColor;
}
}
if (w >= widthOfHeight(h)) {
sign = -1;
}
isosceles(w, h);
pop();
}
function isosceles(w, h) {
triangle(0, -h, -w/2.0, 0, w/2.0, 0);
}
function widthOfHeight(h) {
return floor(2 * h / tan(PI/3.0));
}
| 19.041667 | 45 | 0.543764 |
024ba10b87005e7e2d4473fb6361c621c18c0a27 | 491 | js | JavaScript | app/bg/web-apis/bg/beaker-filesystem.js | knownasilya/beaker | 1f7383ae155dd40d213bbb44404f3525e1a76159 | [
"MIT"
] | null | null | null | app/bg/web-apis/bg/beaker-filesystem.js | knownasilya/beaker | 1f7383ae155dd40d213bbb44404f3525e1a76159 | [
"MIT"
] | null | null | null | app/bg/web-apis/bg/beaker-filesystem.js | knownasilya/beaker | 1f7383ae155dd40d213bbb44404f3525e1a76159 | [
"MIT"
] | null | null | null | import { PermissionsError } from 'beaker-error-constants';
import * as filesystem from '../../filesystem/index';
// typedefs
// =
/**
* @typedef {Object} BeakerFilesystemPublicAPIRootRecord
* @prop {string} url
*/
// exported api
// =
export default {
/**
* @returns {BeakerFilesystemPublicAPIRootRecord}
*/
get() {
if (!this.sender.getURL().startsWith('beaker:')) {
throw new PermissionsError();
}
return {
url: filesystem.get().url,
};
},
};
| 17.535714 | 58 | 0.619145 |
024e73c1a0254c0f6b919982cb004cde49545831 | 1,765 | js | JavaScript | node_modules/office-ui-fabric-react/lib-amd/components/CommandBar/examples/CommandBar.Example.scss.js | AvinaLakshmi/sp-dev-fx-controls-react | a046315992fe1bac1f32c0819ad3dc92b6b42b29 | [
"MIT"
] | null | null | null | node_modules/office-ui-fabric-react/lib-amd/components/CommandBar/examples/CommandBar.Example.scss.js | AvinaLakshmi/sp-dev-fx-controls-react | a046315992fe1bac1f32c0819ad3dc92b6b42b29 | [
"MIT"
] | null | null | null | node_modules/office-ui-fabric-react/lib-amd/components/CommandBar/examples/CommandBar.Example.scss.js | AvinaLakshmi/sp-dev-fx-controls-react | a046315992fe1bac1f32c0819ad3dc92b6b42b29 | [
"MIT"
] | null | null | null | define(["require", "exports", "@microsoft/load-themed-styles"], function (require, exports, load_themed_styles_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
load_themed_styles_1.loadStyles([{ "rawString": ".customButtonContainer_a1638eaa{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.icon_a1638eaa{display:inline-block;font-family:\"FabricMDL2Icons\";font-style:normal;font-weight:normal;speak:none;font-size:14px;position:relative}.themeDarkAltColor_a1638eaa{color:" }, { "theme": "themeDarkAlt", "defaultValue": "#106ebe" }, { "rawString": "}.leftText_a1638eaa{margin-left:6px;font-size:14px;font-weight:400;color:" }, { "theme": "neutralPrimary", "defaultValue": "#333333" }, { "rawString": "}.splitter_a1638eaa{font-size:14px;font-weight:400;color:" }, { "theme": "neutralTertiary", "defaultValue": "#a6a6a6" }, { "rawString": ";background:transparent;position:relative;top:-2px;height:40px}@media screen and (-ms-high-contrast: active){.splitter_a1638eaa{display:none}}.button_a1638eaa.ms-Button{height:40px;min-width:28px;padding:0 5px}.button_a1638eaa:hover{background:initial}.ms-CommandBarItem-commandText{color:" }, { "theme": "neutralPrimary", "defaultValue": "#333333" }, { "rawString": "}.darkerBG_a1638eaa{background:#d0d0d0}\n" }]);
exports.customButtonContainer = "customButtonContainer_a1638eaa";
exports.icon = "icon_a1638eaa";
exports.themeDarkAltColor = "themeDarkAltColor_a1638eaa";
exports.leftText = "leftText_a1638eaa";
exports.splitter = "splitter_a1638eaa";
exports.button = "button_a1638eaa";
exports.darkerBG = "darkerBG_a1638eaa";
});
//# sourceMappingURL=CommandBar.Example.scss.js.map | 135.769231 | 1,168 | 0.750142 |
024f0045e4d5365d58f1a68da0a883b1377fba11 | 4,412 | js | JavaScript | lib/attributes.js | aijle/react-native-svg | ef17f9bf90e8f856f4fb6ba043f7f63eef92ab8c | [
"MIT"
] | 1 | 2022-03-22T03:06:46.000Z | 2022-03-22T03:06:46.000Z | lib/attributes.js | aijle/react-native-svg | ef17f9bf90e8f856f4fb6ba043f7f63eef92ab8c | [
"MIT"
] | null | null | null | lib/attributes.js | aijle/react-native-svg | ef17f9bf90e8f856f4fb6ba043f7f63eef92ab8c | [
"MIT"
] | 1 | 2022-03-24T06:08:56.000Z | 2022-03-24T06:08:56.000Z | function arrayDiffer(a, b) {
if (!a || !b) {
return true;
}
if (a.length !== b.length) {
return true;
}
for (let i = 0; i < a.length; i++) {
if (a[i] !== b[i]) {
return true;
}
}
return false;
}
function fontDiffer(a, b) {
if (a === b) {
return false;
}
return (
a.fontStyle !== b.fontStyle ||
a.fontVariant !== b.fontVariant ||
a.fontWeight !== b.fontWeight ||
a.fontStretch !== b.fontStretch ||
a.fontSize !== b.fontSize ||
a.fontFamily !== b.fontFamily ||
a.textAnchor !== b.textAnchor ||
a.textDecoration !== b.textDecoration ||
a.letterSpacing !== b.letterSpacing ||
a.wordSpacing !== b.wordSpacing ||
a.kerning !== b.kerning ||
a.fontVariantLigatures !== b.fontVariantLigatures ||
a.fontData !== b.fontData ||
a.fontFeatureSettings !== b.fontFeatureSettings
);
}
const ViewBoxAttributes = {
minX: true,
minY: true,
vbWidth: true,
vbHeight: true,
align: true,
meetOrSlice: true
};
const NodeAttributes = {
name: true,
matrix: {
diff: arrayDiffer
},
scaleX: true,
scaleY: true,
opacity: true,
clipRule: true,
clipPath: true,
propList: {
diff: arrayDiffer
},
responsible: true
};
const FillAndStrokeAttributes = {
fill: {
diff: arrayDiffer
},
fillOpacity: true,
fillRule: true,
stroke: {
diff: arrayDiffer
},
strokeOpacity: true,
strokeWidth: true,
strokeLinecap: true,
strokeLinejoin: true,
strokeDasharray: {
diff: arrayDiffer
},
strokeDashoffset: true,
strokeMiterlimit: true
};
const RenderableAttributes = {
...NodeAttributes,
...FillAndStrokeAttributes
};
const GroupAttributes = {
...RenderableAttributes,
font: {
diff: fontDiffer
}
};
const UseAttributes = {
...RenderableAttributes,
href: true,
width: true,
height: true
};
const SymbolAttributes = {
...ViewBoxAttributes,
name: true
};
const PathAttributes = {
...RenderableAttributes,
d: true
};
const TextSpecificAttributes = {
...RenderableAttributes,
alignmentBaseline: true,
baselineShift: true,
verticalAlign: true,
lengthAdjust: true,
textLength: true
};
const TextAttributes = {
...TextSpecificAttributes,
font: {
diff: fontDiffer
},
deltaX: arrayDiffer,
deltaY: arrayDiffer,
rotate: arrayDiffer,
positionX: arrayDiffer,
positionY: arrayDiffer
};
const TextPathAttributes = {
...TextSpecificAttributes,
href: true,
startOffset: true,
method: true,
spacing: true,
side: true,
midLine: true
};
const TSpanAttibutes = {
...TextAttributes,
content: true
};
const ClipPathAttributes = {
name: true
};
const GradientAttributes = {
...ClipPathAttributes,
gradient: {
diff: arrayDiffer
},
gradientUnits: true,
gradientTransform: {
diff: arrayDiffer
}
};
const LinearGradientAttributes = {
...GradientAttributes,
x1: true,
y1: true,
x2: true,
y2: true
};
const RadialGradientAttributes = {
...GradientAttributes,
fx: true,
fy: true,
rx: true,
ry: true,
cx: true,
cy: true,
r: true
};
const CircleAttributes = {
...RenderableAttributes,
cx: true,
cy: true,
r: true
};
const EllipseAttributes = {
...RenderableAttributes,
cx: true,
cy: true,
rx: true,
ry: true
};
const ImageAttributes = {
...RenderableAttributes,
x: true,
y: true,
width: true,
height: true,
src: true,
align: true,
meetOrSlice: true
};
const LineAttributes = {
...RenderableAttributes,
x1: true,
y1: true,
x2: true,
y2: true
};
const RectAttributes = {
...RenderableAttributes,
x: true,
y: true,
width: true,
height: true,
rx: true,
ry: true
};
export {
PathAttributes,
TextAttributes,
TSpanAttibutes,
TextPathAttributes,
GroupAttributes,
ClipPathAttributes,
CircleAttributes,
EllipseAttributes,
ImageAttributes,
LineAttributes,
RectAttributes,
UseAttributes,
SymbolAttributes,
LinearGradientAttributes,
RadialGradientAttributes,
ViewBoxAttributes
};
| 18.008163 | 60 | 0.589755 |
024f44321aca8f7be14ccd5f7fd090dd1ec7bab3 | 3,400 | js | JavaScript | dist/tabs/GPOS.js | lTyl/Typr.ts | ea52600a4fb29be5c3f9d1a9a97d6956aedcf880 | [
"MIT"
] | 2 | 2018-07-10T10:45:05.000Z | 2019-03-24T06:31:47.000Z | dist/tabs/GPOS.js | lTyl/Typr.ts | ea52600a4fb29be5c3f9d1a9a97d6956aedcf880 | [
"MIT"
] | 1 | 2019-05-02T12:06:11.000Z | 2019-05-07T23:34:50.000Z | dist/tabs/GPOS.js | lTyl/Typr.ts | ea52600a4fb29be5c3f9d1a9a97d6956aedcf880 | [
"MIT"
] | null | null | null | "use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const _1 = require("../core/");
class GPOS {
static parse(data, offset, length, font) {
return _1.Lctf.parse(data, offset, length, font, GPOS.subt);
}
static subt(data, ltype, offset) {
if (ltype !== 2) {
return null;
}
let offset0 = offset, tab = {};
tab.format = _1.Bin.readUshort(data, offset);
offset += 2;
let covOff = _1.Bin.readUshort(data, offset);
offset += 2;
tab.coverage = _1.Lctf.readCoverage(data, covOff + offset0);
tab.valFmt1 = _1.Bin.readUshort(data, offset);
offset += 2;
tab.valFmt2 = _1.Bin.readUshort(data, offset);
offset += 2;
let ones1 = _1.Lctf.numOfOnes(tab.valFmt1);
let ones2 = _1.Lctf.numOfOnes(tab.valFmt2);
if (tab.format === 1) {
tab.pairsets = [];
let count = _1.Bin.readUshort(data, offset);
offset += 2;
for (let i = 0; i < count; i++) {
let psoff = _1.Bin.readUshort(data, offset);
offset += 2;
psoff += offset0;
let pvcount = _1.Bin.readUshort(data, psoff);
psoff += 2;
let arr = [];
for (let j = 0; j < pvcount; j++) {
let gid2 = _1.Bin.readUshort(data, psoff);
psoff += 2;
let value1, value2;
if (tab.valFmt1 !== 0) {
value1 = _1.Lctf.readValueRecord(data, psoff, tab.valFmt1);
psoff += ones1 * 2;
}
if (tab.valFmt2 !== 0) {
value2 = _1.Lctf.readValueRecord(data, psoff, tab.valFmt2);
psoff += ones2 * 2;
}
arr.push({ gid2: gid2, val1: value1, val2: value2 });
}
tab.pairsets.push(arr);
}
}
if (tab.format === 2) {
let classDef1 = _1.Bin.readUshort(data, offset);
offset += 2;
let classDef2 = _1.Bin.readUshort(data, offset);
offset += 2;
let class1Count = _1.Bin.readUshort(data, offset);
offset += 2;
let class2Count = _1.Bin.readUshort(data, offset);
offset += 2;
tab.classDef1 = _1.Lctf.readClassDef(data, offset0 + classDef1);
tab.classDef2 = _1.Lctf.readClassDef(data, offset0 + classDef2);
tab.matrix = [];
for (let i = 0; i < class1Count; i++) {
let row = [];
for (let j = 0; j < class2Count; j++) {
let value1 = null, value2 = null;
if (tab.valFmt1 !== 0) {
value1 = _1.Lctf.readValueRecord(data, offset, tab.valFmt1);
offset += ones1 * 2;
}
if (tab.valFmt2 !== 0) {
value2 = _1.Lctf.readValueRecord(data, offset, tab.valFmt2);
offset += ones2 * 2;
}
row.push({ val1: value1, val2: value2 });
}
tab.matrix.push(row);
}
}
return tab;
}
}
exports.GPOS = GPOS;
//# sourceMappingURL=GPOS.js.map | 40 | 84 | 0.454118 |
025143ad54af15a23735d3c7a8a133a6a4a9f423 | 49 | js | JavaScript | resources/js/bus.js | darwinchu/hospital | 059926532bf4dea99d5d5b8232e1d1fa0b8489ba | [
"MIT"
] | null | null | null | resources/js/bus.js | darwinchu/hospital | 059926532bf4dea99d5d5b8232e1d1fa0b8489ba | [
"MIT"
] | null | null | null | resources/js/bus.js | darwinchu/hospital | 059926532bf4dea99d5d5b8232e1d1fa0b8489ba | [
"MIT"
] | null | null | null | export const bus = new Vue();
export default bus; | 24.5 | 29 | 0.734694 |
0252679720b810da316f7cafaf0b2e20b6816cba | 191 | js | JavaScript | lib/pkgcloud/iriscouch/index.js | sebastianfelipe/pkgcloud | 916fa687c2057625189566d2b0524a79918f56ee | [
"MIT"
] | 2 | 2019-07-31T20:16:37.000Z | 2021-04-11T21:11:51.000Z | lib/pkgcloud/iriscouch/index.js | sebastianfelipe/pkgcloud | 916fa687c2057625189566d2b0524a79918f56ee | [
"MIT"
] | 3 | 2020-07-09T09:47:52.000Z | 2020-07-09T09:47:53.000Z | lib/pkgcloud/iriscouch/index.js | sebastianfelipe/pkgcloud | 916fa687c2057625189566d2b0524a79918f56ee | [
"MIT"
] | 2 | 2018-06-22T18:50:47.000Z | 2018-06-22T18:58:35.000Z | /*
* index.js: Top-level include for the iriscouch module.
*
* (C) 2011 Charlie Robbins, Ken Perkins, Ross Kukulinski & the Contributors.
*
*/
exports.database = require('./database');
| 21.222222 | 77 | 0.685864 |