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
a7cdeec4b46c6b3d6d8cda15fc3f896fbd102c9a
279
js
JavaScript
jsonp/654027.js
c-tsy/data_location
f7db57bf8cfec889b7d90f5d30b3a062490b2125
[ "MIT" ]
null
null
null
jsonp/654027.js
c-tsy/data_location
f7db57bf8cfec889b7d90f5d30b3a062490b2125
[ "MIT" ]
null
null
null
jsonp/654027.js
c-tsy/data_location
f7db57bf8cfec889b7d90f5d30b3a062490b2125
[ "MIT" ]
null
null
null
if(_area_jsonp_654027){_area_jsonp_654027({"654027100":"特克斯镇","654027101":"乔拉克铁热克镇","654027102":"喀拉达拉镇","654027103":"齐勒乌泽克镇","654027104":"喀拉托海镇","654027200":"呼吉尔特蒙古民族乡","654027201":"阔克苏乡","654027203":"阔克铁热克柯尔克孜民族乡","654027404":"特克斯县马场","654027405":"科克苏林场","654027517":"兵团七十八团"})}
279
279
0.738351
a7ce2f87e2c8afb444ba6b5125e7bcfe6388a778
1,017
js
JavaScript
src/frontend/efiling-frontend/src/components/base/header/Header.test.js
cedar-technologies/jag-file-submission
af7fe5d83cd758958a4b0567eecc6989a873023a
[ "Apache-2.0" ]
null
null
null
src/frontend/efiling-frontend/src/components/base/header/Header.test.js
cedar-technologies/jag-file-submission
af7fe5d83cd758958a4b0567eecc6989a873023a
[ "Apache-2.0" ]
null
null
null
src/frontend/efiling-frontend/src/components/base/header/Header.test.js
cedar-technologies/jag-file-submission
af7fe5d83cd758958a4b0567eecc6989a873023a
[ "Apache-2.0" ]
null
null
null
import React from "react"; import { Router } from "react-router-dom"; import { createMemoryHistory } from "history"; import testBasicSnapshot from "../../../TestHelper"; import Header, { HeadingTitle, HeaderImage } from "./Header"; describe("Header Component", () => { const header = { name: "File Submission" }; test("Header matches the snapshot", () => { const history = createMemoryHistory(); const headerComponent = ( <Router history={history}> <Header header={header} /> </Router> ); testBasicSnapshot(headerComponent); }); test("HeadingTitle matches the snapshot", () => { const history = createMemoryHistory(); const headingTitle = HeadingTitle(history, "navbar-brand pointer"); testBasicSnapshot(headingTitle); }); test("HeaderImage matches the snapshot", () => { const headingImage = HeaderImage( "img-fluid d-none d-md-block", 181, "bcid-logo-rev-en.svg" ); testBasicSnapshot(headingImage); }); });
23.651163
71
0.642085
a7cf25824dcd0b3d993bbe1e420884919129a710
30,629
js
JavaScript
ajax/libs/chai/1.7.0/chai.min.js
algolia/cdnjs
a0586b35ac4862680d2e090651acc8ccf44a5dda
[ "MIT" ]
5
2015-02-20T16:11:30.000Z
2017-05-15T11:50:44.000Z
packages/chai/1.7.0/chai.min.js
tmthrgd/pagespeed-libraries-cdnjs
dc23979ff751a976ad1b978fcd516ec02d43081c
[ "MIT" ]
null
null
null
packages/chai/1.7.0/chai.min.js
tmthrgd/pagespeed-libraries-cdnjs
dc23979ff751a976ad1b978fcd516ec02d43081c
[ "MIT" ]
4
2015-07-14T16:16:05.000Z
2021-03-10T08:15:54.000Z
!function(){function require(e,t,r){var n=require.resolve(e);if(null==n){r=r||e,t=t||"root";var o=new Error('Failed to require "'+r+'" from "'+t+'"');throw o.path=r,o.parent=t,o.require=!0,o}var i=require.modules[n];return i.exports||(i.exports={},i.client=i.component=!0,i.call(this,i.exports,require.relative(n),i)),i.exports}require.modules={},require.aliases={},require.resolve=function(e){"/"===e.charAt(0)&&(e=e.slice(1));for(var t=[e,e+".js",e+".json",e+"/index.js",e+"/index.json"],r=0;r<t.length;r++){var e=t[r];if(require.modules.hasOwnProperty(e))return e;if(require.aliases.hasOwnProperty(e))return require.aliases[e]}},require.normalize=function(e,t){var r=[];if("."!=t.charAt(0))return t;e=e.split("/"),t=t.split("/");for(var n=0;n<t.length;++n)".."==t[n]?e.pop():"."!=t[n]&&""!=t[n]&&r.push(t[n]);return e.concat(r).join("/")},require.register=function(e,t){require.modules[e]=t},require.alias=function(e,t){if(!require.modules.hasOwnProperty(e))throw new Error('Failed to alias "'+e+'", it does not exist');require.aliases[t]=e},require.relative=function(e){function t(e,t){for(var r=e.length;r--;)if(e[r]===t)return r;return-1}function r(t){var n=r.resolve(t);return require(n,e,t)}var n=require.normalize(e,"..");return r.resolve=function(r){var o=r.charAt(0);if("/"==o)return r.slice(1);if("."==o)return require.normalize(n,r);var i=e.split("/"),s=t(i,"deps")+1;return s||(s=0),r=i.slice(0,s+1).join("/")+"/deps/"+r},r.exists=function(e){return require.modules.hasOwnProperty(r.resolve(e))},r},require.register("chaijs-assertion-error/index.js",function(e,t,r){function n(){function e(e,r){Object.keys(r).forEach(function(n){~t.indexOf(n)||(e[n]=r[n])})}var t=[].slice.call(arguments);return function(){for(var t=[].slice.call(arguments),r=0,n={};r<t.length;r++)e(n,t[r]);return n}}function o(e,t,r){var o=n("name","message","stack","constructor","toJSON"),i=o(t||{});this.message=e||"Unspecified AssertionError",this.showDiff=!1;for(var s in i)this[s]=i[s];r=r||arguments.callee,r&&Error.captureStackTrace&&Error.captureStackTrace(this,r)}r.exports=o,o.prototype=Object.create(Error.prototype),o.prototype.name="AssertionError",o.prototype.constructor=o,o.prototype.toJSON=function(e){var t=n("constructor","toJSON","stack"),r=t({name:this.name},this);return!1!==e&&this.stack&&(r.stack=this.stack),r}}),require.register("chai/index.js",function(e,t,r){r.exports=t("./lib/chai")}),require.register("chai/lib/chai.js",function(e,t,r){var n=[],e=r.exports={};e.version="1.6.1",e.AssertionError=t("assertion-error");var o=t("./chai/utils");e.use=function(e){return~n.indexOf(e)||(e(this,o),n.push(e)),this};var i=t("./chai/assertion");e.use(i);var s=t("./chai/core/assertions");e.use(s);var a=t("./chai/interface/expect");e.use(a);var c=t("./chai/interface/should");e.use(c);var u=t("./chai/interface/assert");e.use(u)}),require.register("chai/lib/chai/assertion.js",function(e,t,r){r.exports=function(e,t){function r(e,t,r){o(this,"ssfi",r||arguments.callee),o(this,"object",e),o(this,"message",t)}var n=e.AssertionError,o=t.flag;e.Assertion=r,r.includeStack=!1,r.showDiff=!0,r.addProperty=function(e,r){t.addProperty(this.prototype,e,r)},r.addMethod=function(e,r){t.addMethod(this.prototype,e,r)},r.addChainableMethod=function(e,r,n){t.addChainableMethod(this.prototype,e,r,n)},r.overwriteProperty=function(e,r){t.overwriteProperty(this.prototype,e,r)},r.overwriteMethod=function(e,r){t.overwriteMethod(this.prototype,e,r)},r.prototype.assert=function(e,i,s,a,c,u){var h=t.test(this,arguments);if(!0!==u&&(u=!1),!0!==r.showDiff&&(u=!1),!h){var i=t.getMessage(this,arguments),l=t.getActual(this,arguments);throw new n(i,{actual:l,expected:a,showDiff:u},r.includeStack?this.assert:o(this,"ssfi"))}},Object.defineProperty(r.prototype,"_obj",{get:function(){return o(this,"object")},set:function(e){o(this,"object",e)}})}}),require.register("chai/lib/chai/core/assertions.js",function(e,t,r){r.exports=function(e,t){function r(e,r){r&&w(this,"message",r),e=e.toLowerCase();var n=w(this,"object"),o=~["a","e","i","o","u"].indexOf(e.charAt(0))?"an ":"a ";this.assert(e===t.type(n),"expected #{this} to be "+o+e,"expected #{this} not to be "+o+e)}function n(){w(this,"contains",!0)}function o(e,r){r&&w(this,"message",r);var n=w(this,"object");this.assert(~n.indexOf(e),"expected #{this} to include "+t.inspect(e),"expected #{this} to not include "+t.inspect(e))}function i(){var e=w(this,"object"),t=Object.prototype.toString.call(e);this.assert("[object Arguments]"===t,"expected #{this} to be arguments but got "+t,"expected #{this} to not be arguments")}function s(e,t){t&&w(this,"message",t);var r=w(this,"object");return w(this,"deep")?this.eql(e):void this.assert(e===r,"expected #{this} to equal #{exp}","expected #{this} to not equal #{exp}",e,this._obj,!0)}function a(e,r){r&&w(this,"message",r),this.assert(t.eql(e,w(this,"object")),"expected #{this} to deeply equal #{exp}","expected #{this} to not deeply equal #{exp}",e,this._obj,!0)}function c(e,t){t&&w(this,"message",t);var r=w(this,"object");if(w(this,"doLength")){new x(r,t).to.have.property("length");var n=r.length;this.assert(n>e,"expected #{this} to have a length above #{exp} but got #{act}","expected #{this} to not have a length above #{exp}",e,n)}else this.assert(r>e,"expected #{this} to be above "+e,"expected #{this} to be at most "+e)}function u(e,t){t&&w(this,"message",t);var r=w(this,"object");if(w(this,"doLength")){new x(r,t).to.have.property("length");var n=r.length;this.assert(n>=e,"expected #{this} to have a length at least #{exp} but got #{act}","expected #{this} to have a length below #{exp}",e,n)}else this.assert(r>=e,"expected #{this} to be at least "+e,"expected #{this} to be below "+e)}function h(e,t){t&&w(this,"message",t);var r=w(this,"object");if(w(this,"doLength")){new x(r,t).to.have.property("length");var n=r.length;this.assert(e>n,"expected #{this} to have a length below #{exp} but got #{act}","expected #{this} to not have a length below #{exp}",e,n)}else this.assert(e>r,"expected #{this} to be below "+e,"expected #{this} to be at least "+e)}function l(e,t){t&&w(this,"message",t);var r=w(this,"object");if(w(this,"doLength")){new x(r,t).to.have.property("length");var n=r.length;this.assert(e>=n,"expected #{this} to have a length at most #{exp} but got #{act}","expected #{this} to have a length above #{exp}",e,n)}else this.assert(e>=r,"expected #{this} to be at most "+e,"expected #{this} to be above "+e)}function p(e,r){r&&w(this,"message",r);var n=t.getName(e);this.assert(w(this,"object")instanceof e,"expected #{this} to be an instance of "+n,"expected #{this} to not be an instance of "+n)}function f(e,r){r&&w(this,"message",r);var n=w(this,"object");this.assert(n.hasOwnProperty(e),"expected #{this} to have own property "+t.inspect(e),"expected #{this} to not have own property "+t.inspect(e))}function d(){w(this,"doLength",!0)}function g(e,t){t&&w(this,"message",t);var r=w(this,"object");new x(r,t).to.have.property("length");var n=r.length;this.assert(n==e,"expected #{this} to have a length of #{exp} but got #{act}","expected #{this} to not have a length of #{act}",e,n)}function b(e){var r,n=w(this,"object"),o=!0;if(e=e instanceof Array?e:Array.prototype.slice.call(arguments),!e.length)throw new Error("keys required");var i=Object.keys(n),s=e.length;if(o=e.every(function(e){return~i.indexOf(e)}),w(this,"negate")||w(this,"contains")||(o=o&&e.length==i.length),s>1){e=e.map(function(e){return t.inspect(e)});var a=e.pop();r=e.join(", ")+", and "+a}else r=t.inspect(e[0]);r=(s>1?"keys ":"key ")+r,r=(w(this,"contains")?"contain ":"have ")+r,this.assert(o,"expected #{this} to "+r,"expected #{this} to not "+r)}function y(e,r,n){n&&w(this,"message",n);var o=w(this,"object");new x(o,n).is.a("function");var i=!1,s=null,a=null,c=null;0===arguments.length?(r=null,e=null):e&&(e instanceof RegExp||"string"==typeof e)?(r=e,e=null):e&&e instanceof Error?(s=e,e=null,r=null):"function"==typeof e?a=(new e).name:e=null;try{o()}catch(u){if(s)return this.assert(u===s,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}",s,u),this;if(e&&(this.assert(u instanceof e,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp} but #{act} was thrown",a,u),!r))return this;var h="object"===t.type(u)&&"message"in u?u.message:""+u;if(null!=h&&r&&r instanceof RegExp)return this.assert(r.exec(h),"expected #{this} to throw error matching #{exp} but got #{act}","expected #{this} to throw error not matching #{exp}",r,h),this;if(null!=h&&r&&"string"==typeof r)return this.assert(~h.indexOf(r),"expected #{this} to throw error including #{exp} but got #{act}","expected #{this} to throw error not including #{act}",r,h),this;i=!0,c=u}var l="",p=null!==a?a:s?"#{exp}":"an error";i&&(l=" but #{act} was thrown"),this.assert(i===!0,"expected #{this} to throw "+p+l,"expected #{this} to not throw "+p+l,s,c)}function v(e,t){return e.every(function(e){return-1!==t.indexOf(e)})}var x=e.Assertion,w=(Object.prototype.toString,t.flag);["to","be","been","is","and","have","with","that","at","of","same"].forEach(function(e){x.addProperty(e,function(){return this})}),x.addProperty("not",function(){w(this,"negate",!0)}),x.addProperty("deep",function(){w(this,"deep",!0)}),x.addChainableMethod("an",r),x.addChainableMethod("a",r),x.addChainableMethod("include",o,n),x.addChainableMethod("contain",o,n),x.addProperty("ok",function(){this.assert(w(this,"object"),"expected #{this} to be truthy","expected #{this} to be falsy")}),x.addProperty("true",function(){this.assert(!0===w(this,"object"),"expected #{this} to be true","expected #{this} to be false",this.negate?!1:!0)}),x.addProperty("false",function(){this.assert(!1===w(this,"object"),"expected #{this} to be false","expected #{this} to be true",this.negate?!0:!1)}),x.addProperty("null",function(){this.assert(null===w(this,"object"),"expected #{this} to be null","expected #{this} not to be null")}),x.addProperty("undefined",function(){this.assert(void 0===w(this,"object"),"expected #{this} to be undefined","expected #{this} not to be undefined")}),x.addProperty("exist",function(){this.assert(null!=w(this,"object"),"expected #{this} to exist","expected #{this} to not exist")}),x.addProperty("empty",function(){var e=w(this,"object"),t=e;Array.isArray(e)||"string"==typeof object?t=e.length:"object"==typeof e&&(t=Object.keys(e).length),this.assert(!t,"expected #{this} to be empty","expected #{this} not to be empty")}),x.addProperty("arguments",i),x.addProperty("Arguments",i),x.addMethod("equal",s),x.addMethod("equals",s),x.addMethod("eq",s),x.addMethod("eql",a),x.addMethod("eqls",a),x.addMethod("above",c),x.addMethod("gt",c),x.addMethod("greaterThan",c),x.addMethod("least",u),x.addMethod("gte",u),x.addMethod("below",h),x.addMethod("lt",h),x.addMethod("lessThan",h),x.addMethod("most",l),x.addMethod("lte",l),x.addMethod("within",function(e,t,r){r&&w(this,"message",r);var n=w(this,"object"),o=e+".."+t;if(w(this,"doLength")){new x(n,r).to.have.property("length");var i=n.length;this.assert(i>=e&&t>=i,"expected #{this} to have a length within "+o,"expected #{this} to not have a length within "+o)}else this.assert(n>=e&&t>=n,"expected #{this} to be within "+o,"expected #{this} to not be within "+o)}),x.addMethod("instanceof",p),x.addMethod("instanceOf",p),x.addMethod("property",function(e,r,n){n&&w(this,"message",n);var o=w(this,"deep")?"deep property ":"property ",i=w(this,"negate"),s=w(this,"object"),a=w(this,"deep")?t.getPathValue(e,s):s[e];if(i&&void 0!==r){if(void 0===a)throw n=null!=n?n+": ":"",new Error(n+t.inspect(s)+" has no "+o+t.inspect(e))}else this.assert(void 0!==a,"expected #{this} to have a "+o+t.inspect(e),"expected #{this} to not have "+o+t.inspect(e));void 0!==r&&this.assert(r===a,"expected #{this} to have a "+o+t.inspect(e)+" of #{exp}, but got #{act}","expected #{this} to not have a "+o+t.inspect(e)+" of #{act}",r,a),w(this,"object",a)}),x.addMethod("ownProperty",f),x.addMethod("haveOwnProperty",f),x.addChainableMethod("length",g,d),x.addMethod("lengthOf",g,d),x.addMethod("match",function(e,t){t&&w(this,"message",t);var r=w(this,"object");this.assert(e.exec(r),"expected #{this} to match "+e,"expected #{this} not to match "+e)}),x.addMethod("string",function(e,r){r&&w(this,"message",r);var n=w(this,"object");new x(n,r).is.a("string"),this.assert(~n.indexOf(e),"expected #{this} to contain "+t.inspect(e),"expected #{this} to not contain "+t.inspect(e))}),x.addMethod("keys",b),x.addMethod("key",b),x.addMethod("throw",y),x.addMethod("throws",y),x.addMethod("Throw",y),x.addMethod("respondTo",function(e,r){r&&w(this,"message",r);var n=w(this,"object"),o=w(this,"itself"),i="function"!==t.type(n)||o?n[e]:n.prototype[e];this.assert("function"==typeof i,"expected #{this} to respond to "+t.inspect(e),"expected #{this} to not respond to "+t.inspect(e))}),x.addProperty("itself",function(){w(this,"itself",!0)}),x.addMethod("satisfy",function(e,r){r&&w(this,"message",r);var n=w(this,"object");this.assert(e(n),"expected #{this} to satisfy "+t.objDisplay(e),"expected #{this} to not satisfy"+t.objDisplay(e),this.negate?!1:!0,e(n))}),x.addMethod("closeTo",function(e,t,r){r&&w(this,"message",r);var n=w(this,"object");this.assert(Math.abs(n-e)<=t,"expected #{this} to be close to "+e+" +/- "+t,"expected #{this} not to be close to "+e+" +/- "+t)}),x.addMethod("members",function(e,t){t&&w(this,"message",t);var r=w(this,"object");return new x(r).to.be.an("array"),new x(e).to.be.an("array"),w(this,"contains")?this.assert(v(e,r),"expected #{this} to be a superset of #{act}","expected #{this} to not be a superset of #{act}",r,e):void this.assert(v(r,e)&&v(e,r),"expected #{this} to have the same members as #{act}","expected #{this} to not have the same members as #{act}",r,e)})}}),require.register("chai/lib/chai/interface/assert.js",function(exports,require,module){module.exports=function(chai,util){var Assertion=chai.Assertion,flag=util.flag,assert=chai.assert=function(e,t){var r=new Assertion(null);r.assert(e,t,"[ negation message unavailable ]")};assert.fail=function(e,t,r,n){throw new chai.AssertionError({actual:e,expected:t,message:r,operator:n,stackStartFunction:assert.fail})},assert.ok=function(e,t){new Assertion(e,t).is.ok},assert.notOk=function(e,t){new Assertion(e,t).is.not.ok},assert.equal=function(e,t,r){var n=new Assertion(e,r);n.assert(t==flag(n,"object"),"expected #{this} to equal #{exp}","expected #{this} to not equal #{act}",t,e)},assert.notEqual=function(e,t,r){var n=new Assertion(e,r);n.assert(t!=flag(n,"object"),"expected #{this} to not equal #{exp}","expected #{this} to equal #{act}",t,e)},assert.strictEqual=function(e,t,r){new Assertion(e,r).to.equal(t)},assert.notStrictEqual=function(e,t,r){new Assertion(e,r).to.not.equal(t)},assert.deepEqual=function(e,t,r){new Assertion(e,r).to.eql(t)},assert.notDeepEqual=function(e,t,r){new Assertion(e,r).to.not.eql(t)},assert.isTrue=function(e,t){new Assertion(e,t).is["true"]},assert.isFalse=function(e,t){new Assertion(e,t).is["false"]},assert.isNull=function(e,t){new Assertion(e,t).to.equal(null)},assert.isNotNull=function(e,t){new Assertion(e,t).to.not.equal(null)},assert.isUndefined=function(e,t){new Assertion(e,t).to.equal(void 0)},assert.isDefined=function(e,t){new Assertion(e,t).to.not.equal(void 0)},assert.isFunction=function(e,t){new Assertion(e,t).to.be.a("function")},assert.isNotFunction=function(e,t){new Assertion(e,t).to.not.be.a("function")},assert.isObject=function(e,t){new Assertion(e,t).to.be.a("object")},assert.isNotObject=function(e,t){new Assertion(e,t).to.not.be.a("object")},assert.isArray=function(e,t){new Assertion(e,t).to.be.an("array")},assert.isNotArray=function(e,t){new Assertion(e,t).to.not.be.an("array")},assert.isString=function(e,t){new Assertion(e,t).to.be.a("string")},assert.isNotString=function(e,t){new Assertion(e,t).to.not.be.a("string")},assert.isNumber=function(e,t){new Assertion(e,t).to.be.a("number")},assert.isNotNumber=function(e,t){new Assertion(e,t).to.not.be.a("number")},assert.isBoolean=function(e,t){new Assertion(e,t).to.be.a("boolean")},assert.isNotBoolean=function(e,t){new Assertion(e,t).to.not.be.a("boolean")},assert.typeOf=function(e,t,r){new Assertion(e,r).to.be.a(t)},assert.notTypeOf=function(e,t,r){new Assertion(e,r).to.not.be.a(t)},assert.instanceOf=function(e,t,r){new Assertion(e,r).to.be.instanceOf(t)},assert.notInstanceOf=function(e,t,r){new Assertion(e,r).to.not.be.instanceOf(t)},assert.include=function(e,t,r){var n=new Assertion(e,r);if(Array.isArray(e))n.to.include(t);else{if("string"!=typeof e)throw new chai.AssertionError("expected an array or string",null,assert.include);n.to.contain.string(t)}},assert.notInclude=function(e,t,r){var n=new Assertion(e,r);if(Array.isArray(e))n.to.not.include(t);else{if("string"!=typeof e)throw new chai.AssertionError("expected an array or string",null,assert.notInclude);n.to.not.contain.string(t)}},assert.match=function(e,t,r){new Assertion(e,r).to.match(t)},assert.notMatch=function(e,t,r){new Assertion(e,r).to.not.match(t)},assert.property=function(e,t,r){new Assertion(e,r).to.have.property(t)},assert.notProperty=function(e,t,r){new Assertion(e,r).to.not.have.property(t)},assert.deepProperty=function(e,t,r){new Assertion(e,r).to.have.deep.property(t)},assert.notDeepProperty=function(e,t,r){new Assertion(e,r).to.not.have.deep.property(t)},assert.propertyVal=function(e,t,r,n){new Assertion(e,n).to.have.property(t,r)},assert.propertyNotVal=function(e,t,r,n){new Assertion(e,n).to.not.have.property(t,r)},assert.deepPropertyVal=function(e,t,r,n){new Assertion(e,n).to.have.deep.property(t,r)},assert.deepPropertyNotVal=function(e,t,r,n){new Assertion(e,n).to.not.have.deep.property(t,r)},assert.lengthOf=function(e,t,r){new Assertion(e,r).to.have.length(t)},assert.Throw=function(e,t,r,n){("string"==typeof t||t instanceof RegExp)&&(r=t,t=null),new Assertion(e,n).to.Throw(t,r)},assert.doesNotThrow=function(e,t,r){"string"==typeof t&&(r=t,t=null),new Assertion(e,r).to.not.Throw(t)},assert.operator=function(val,operator,val2,msg){if(!~["==","===",">",">=","<","<=","!=","!=="].indexOf(operator))throw new Error('Invalid operator "'+operator+'"');var test=new Assertion(eval(val+operator+val2),msg);test.assert(!0===flag(test,"object"),"expected "+util.inspect(val)+" to be "+operator+" "+util.inspect(val2),"expected "+util.inspect(val)+" to not be "+operator+" "+util.inspect(val2))},assert.closeTo=function(e,t,r,n){new Assertion(e,n).to.be.closeTo(t,r)},assert.sameMembers=function(e,t,r){new Assertion(e,r).to.have.same.members(t)},assert.includeMembers=function(e,t,r){new Assertion(e,r).to.include.members(t)},assert.ifError=function(e,t){new Assertion(e,t).to.not.be.ok},function e(t,r){return assert[r]=assert[t],e}("Throw","throw")("Throw","throws")}}),require.register("chai/lib/chai/interface/expect.js",function(e,t,r){r.exports=function(e){e.expect=function(t,r){return new e.Assertion(t,r)}}}),require.register("chai/lib/chai/interface/should.js",function(e,t,r){r.exports=function(e){function t(){Object.defineProperty(Object.prototype,"should",{set:function(e){Object.defineProperty(this,"should",{value:e,enumerable:!0,configurable:!0,writable:!0})},get:function(){return new r(this instanceof String||this instanceof Number?this.constructor(this):this instanceof Boolean?1==this:this)},configurable:!0});var e={};return e.equal=function(e,t,n){new r(e,n).to.equal(t)},e.Throw=function(e,t,n,o){new r(e,o).to.Throw(t,n)},e.exist=function(e,t){new r(e,t).to.exist},e.not={},e.not.equal=function(e,t,n){new r(e,n).to.not.equal(t)},e.not.Throw=function(e,t,n,o){new r(e,o).to.not.Throw(t,n)},e.not.exist=function(e,t){new r(e,t).to.not.exist},e["throw"]=e.Throw,e.not["throw"]=e.not.Throw,e}var r=e.Assertion;e.should=t,e.Should=t}}),require.register("chai/lib/chai/utils/addChainableMethod.js",function(e,t,r){var n=t("./transferFlags"),o="__proto__"in Object,i=/^(?:length|name|arguments|caller)$/,s=Function.prototype.call,a=Function.prototype.apply;r.exports=function(e,t,r,c){"function"!=typeof c&&(c=function(){}),Object.defineProperty(e,t,{get:function(){c.call(this);var t=function(){var e=r.apply(this,arguments);return void 0===e?this:e};if(o){var u=t.__proto__=Object.create(this);u.call=s,u.apply=a}else{var h=Object.getOwnPropertyNames(e);h.forEach(function(r){if(!i.test(r)){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n)}})}return n(this,t),t},configurable:!0})}}),require.register("chai/lib/chai/utils/addMethod.js",function(e,t,r){r.exports=function(e,t,r){e[t]=function(){var e=r.apply(this,arguments);return void 0===e?this:e}}}),require.register("chai/lib/chai/utils/addProperty.js",function(e,t,r){r.exports=function(e,t,r){Object.defineProperty(e,t,{get:function(){var e=r.call(this);return void 0===e?this:e},configurable:!0})}}),require.register("chai/lib/chai/utils/eql.js",function(e,t,r){function n(e,t,r){if(e===t)return!0;if(a.isBuffer(e)&&a.isBuffer(t)){if(e.length!=t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return t instanceof Date?e instanceof Date?e.getTime()===t.getTime():!1:"object"!=typeof e&&"object"!=typeof t?e===t:t instanceof RegExp?e instanceof RegExp?e.toString()===t.toString():!1:s(e,t,r)}function o(e){return null===e||void 0===e}function i(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function s(e,t,r){if(o(e)||o(t))return!1;if(e.prototype!==t.prototype)return!1;var s;if(r){for(s=0;s<r.length;s++)if(r[s][0]===e&&r[s][1]===t||r[s][0]===t&&r[s][1]===e)return!0}else r=[];if(i(e))return i(t)?(e=pSlice.call(e),t=pSlice.call(t),n(e,t,r)):!1;try{var a,u=c(e),h=c(t)}catch(l){return!1}if(u.length!=h.length)return!1;for(u.sort(),h.sort(),s=u.length-1;s>=0;s--)if(u[s]!=h[s])return!1;for(r.push([e,t]),s=u.length-1;s>=0;s--)if(a=u[s],!n(e[a],t[a],r))return!1;return!0}r.exports=n;var a,c=t("./getEnumerableProperties");try{a=t("buffer").Buffer}catch(u){a={isBuffer:function(){return!1}}}}),require.register("chai/lib/chai/utils/flag.js",function(e,t,r){r.exports=function(e,t,r){var n=e.__flags||(e.__flags=Object.create(null));return 3!==arguments.length?n[t]:void(n[t]=r)}}),require.register("chai/lib/chai/utils/getActual.js",function(e,t,r){r.exports=function(e,t){var r=t[4];return"undefined"!=typeof r?r:e._obj}}),require.register("chai/lib/chai/utils/getEnumerableProperties.js",function(e,t,r){r.exports=function(e){var t=[];for(var r in e)t.push(r);return t}}),require.register("chai/lib/chai/utils/getMessage.js",function(e,t,r){var n=t("./flag"),o=t("./getActual"),i=(t("./inspect"),t("./objDisplay"));r.exports=function(e,t){var r=n(e,"negate"),s=n(e,"object"),a=t[3],c=o(e,t),u=r?t[2]:t[1],h=n(e,"message");return u=u||"",u=u.replace(/#{this}/g,i(s)).replace(/#{act}/g,i(c)).replace(/#{exp}/g,i(a)),h?h+": "+u:u}}),require.register("chai/lib/chai/utils/getName.js",function(e,t,r){r.exports=function(e){if(e.name)return e.name;var t=/^\s?function ([^(]*)\(/.exec(e);return t&&t[1]?t[1]:""}}),require.register("chai/lib/chai/utils/getPathValue.js",function(e,t,r){function n(e){var t=e.replace(/\[/g,".["),r=t.match(/(\\\.|[^.]+?)+/g);return r.map(function(e){var t=/\[(\d+)\]$/,r=t.exec(e);return r?{i:parseFloat(r[1])}:{p:e}})}function o(e,t){for(var r,n=t,o=0,i=e.length;i>o;o++){var s=e[o];n?("undefined"!=typeof s.p?n=n[s.p]:"undefined"!=typeof s.i&&(n=n[s.i]),o==i-1&&(r=n)):r=void 0}return r}r.exports=function(e,t){var r=n(e);return o(r,t)}}),require.register("chai/lib/chai/utils/getProperties.js",function(e,t,r){r.exports=function(){function e(e){-1===t.indexOf(e)&&t.push(e)}for(var t=Object.getOwnPropertyNames(subject),r=Object.getPrototypeOf(subject);null!==r;)Object.getOwnPropertyNames(r).forEach(e),r=Object.getPrototypeOf(r);return t}}),require.register("chai/lib/chai/utils/index.js",function(e,t,r){var e=r.exports={};e.test=t("./test"),e.type=t("./type"),e.getMessage=t("./getMessage"),e.getActual=t("./getActual"),e.inspect=t("./inspect"),e.objDisplay=t("./objDisplay"),e.flag=t("./flag"),e.transferFlags=t("./transferFlags"),e.eql=t("./eql"),e.getPathValue=t("./getPathValue"),e.getName=t("./getName"),e.addProperty=t("./addProperty"),e.addMethod=t("./addMethod"),e.overwriteProperty=t("./overwriteProperty"),e.overwriteMethod=t("./overwriteMethod"),e.addChainableMethod=t("./addChainableMethod")}),require.register("chai/lib/chai/utils/inspect.js",function(e,t,r){function n(e,t,r){var n={showHidden:t,seen:[],stylize:function(e){return e}};return o(n,e,"undefined"==typeof r?2:r)}function o(t,r,n){if(r&&"function"==typeof r.inspect&&r.inspect!==e.inspect&&(!r.constructor||r.constructor.prototype!==r)){var d=r.inspect(n);return"string"!=typeof d&&(d=o(t,d,n)),d}var w=i(t,r);if(w)return w;if(x(r))return v(r);var j=y(r),m=t.showHidden?b(r):j;if(0===m.length||f(r)&&(1===m.length&&"stack"===m[0]||2===m.length&&"description"===m[0]&&"stack"===m[1])){if("function"==typeof r){var q=g(r),A=q?": "+q:"";return t.stylize("[Function"+A+"]","special")}if(l(r))return t.stylize(RegExp.prototype.toString.call(r),"regexp");if(p(r))return t.stylize(Date.prototype.toUTCString.call(r),"date");if(f(r))return s(r)}var O="",M=!1,P=["{","}"];if(h(r)&&(M=!0,P=["[","]"]),"function"==typeof r){var q=g(r),A=q?": "+q:"";O=" [Function"+A+"]"}if(l(r)&&(O=" "+RegExp.prototype.toString.call(r)),p(r)&&(O=" "+Date.prototype.toUTCString.call(r)),f(r))return s(r);if(0===m.length&&(!M||0==r.length))return P[0]+O+P[1];if(0>n)return l(r)?t.stylize(RegExp.prototype.toString.call(r),"regexp"):t.stylize("[Object]","special");t.seen.push(r);var E;return E=M?a(t,r,n,j,m):m.map(function(e){return c(t,r,n,j,e,M)}),t.seen.pop(),u(E,O,P)}function i(e,t){switch(typeof t){case"undefined":return e.stylize("undefined","undefined");case"string":var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string");case"number":return e.stylize(""+t,"number");case"boolean":return e.stylize(""+t,"boolean")}return null===t?e.stylize("null","null"):void 0}function s(e){return"["+Error.prototype.toString.call(e)+"]"}function a(e,t,r,n,o){for(var i=[],s=0,a=t.length;a>s;++s)i.push(Object.prototype.hasOwnProperty.call(t,String(s))?c(e,t,r,n,String(s),!0):"");return o.forEach(function(o){o.match(/^\d+$/)||i.push(c(e,t,r,n,o,!0))}),i}function c(e,t,r,n,i,s){var a,c;if(t.__lookupGetter__&&(t.__lookupGetter__(i)?c=t.__lookupSetter__(i)?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):t.__lookupSetter__(i)&&(c=e.stylize("[Setter]","special"))),n.indexOf(i)<0&&(a="["+i+"]"),c||(e.seen.indexOf(t[i])<0?(c=null===r?o(e,t[i],null):o(e,t[i],r-1),c.indexOf("\n")>-1&&(c=s?c.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+c.split("\n").map(function(e){return" "+e}).join("\n"))):c=e.stylize("[Circular]","special")),"undefined"==typeof a){if(s&&i.match(/^\d+$/))return c;a=JSON.stringify(""+i),a.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+": "+c}function u(e,t,r){var n=0,o=e.reduce(function(e,t){return n++,t.indexOf("\n")>=0&&n++,e+t.length+1},0);return o>60?r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}function h(e){return Array.isArray(e)||"object"==typeof e&&"[object Array]"===d(e)}function l(e){return"object"==typeof e&&"[object RegExp]"===d(e)}function p(e){return"object"==typeof e&&"[object Date]"===d(e)}function f(e){return"object"==typeof e&&"[object Error]"===d(e)}function d(e){return Object.prototype.toString.call(e)}var g=t("./getName"),b=t("./getProperties"),y=t("./getEnumerableProperties");r.exports=n;var v=function(e){if("outerHTML"in e)return e.outerHTML;var t,r="http://www.w3.org/1999/xhtml",n=document.createElementNS(r,"_"),o=((window.HTMLElement||window.Element).prototype,new XMLSerializer);return document.xmlVersion?o.serializeToString(e):(n.appendChild(e.cloneNode(!1)),t=n.innerHTML.replace("><",">"+e.innerHTML+"<"),n.innerHTML="",t)},x=function(e){return"object"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&1===e.nodeType&&"string"==typeof e.nodeName}}),require.register("chai/lib/chai/utils/objDisplay.js",function(e,t,r){var n=t("./inspect");r.exports=function(e){var t=n(e),r=Object.prototype.toString.call(e);if(t.length>=40){if("[object Function]"===r)return e.name&&""!==e.name?"[Function: "+e.name+"]":"[Function]";if("[object Array]"===r)return"[ Array("+e.length+") ]";if("[object Object]"===r){var o=Object.keys(e),i=o.length>2?o.splice(0,2).join(", ")+", ...":o.join(", ");return"{ Object ("+i+") }"}return t}return t}}),require.register("chai/lib/chai/utils/overwriteMethod.js",function(e,t,r){r.exports=function(e,t,r){var n=e[t],o=function(){return this};n&&"function"==typeof n&&(o=n),e[t]=function(){var e=r(o).apply(this,arguments);return void 0===e?this:e}}}),require.register("chai/lib/chai/utils/overwriteProperty.js",function(e,t,r){r.exports=function(e,t,r){var n=Object.getOwnPropertyDescriptor(e,t),o=function(){};n&&"function"==typeof n.get&&(o=n.get),Object.defineProperty(e,t,{get:function(){var e=r(o).call(this);return void 0===e?this:e},configurable:!0})}}),require.register("chai/lib/chai/utils/test.js",function(e,t,r){var n=t("./flag");r.exports=function(e,t){var r=n(e,"negate"),o=t[0];return r?!o:o}}),require.register("chai/lib/chai/utils/transferFlags.js",function(e,t,r){r.exports=function(e,t,r){var n=e.__flags||(e.__flags=Object.create(null));t.__flags||(t.__flags=Object.create(null)),r=3===arguments.length?r:!0;for(var o in n)(r||"object"!==o&&"ssfi"!==o&&"message"!=o)&&(t.__flags[o]=n[o])}}),require.register("chai/lib/chai/utils/type.js",function(e,t,r){var n={"[object Arguments]":"arguments","[object Array]":"array","[object Date]":"date","[object Function]":"function","[object Number]":"number","[object RegExp]":"regexp","[object String]":"string"};r.exports=function(e){var t=Object.prototype.toString.call(e);return n[t]?n[t]:null===e?"null":void 0===e?"undefined":e===Object(e)?"object":typeof e}}),require.alias("chaijs-assertion-error/index.js","chai/deps/assertion-error/index.js"),require.alias("chaijs-assertion-error/index.js","chai/deps/assertion-error/index.js"),require.alias("chaijs-assertion-error/index.js","assertion-error/index.js"),require.alias("chaijs-assertion-error/index.js","chaijs-assertion-error/index.js"),require.alias("chai/index.js","chai/index.js"),"object"==typeof exports?module.exports=require("chai"):"function"==typeof define&&define.amd?define(function(){return require("chai")}):this.chai=require("chai")}();
30,629
30,629
0.683339
a7cf8ac4d275bb03413965900d59b97d3cb10862
11,316
js
JavaScript
public/richtexteditor/lang/rte-lang-de.js
greenboun7/Pushkaram
9ff8ff956734b6713d0c934067334a121bc65603
[ "MIT" ]
null
null
null
public/richtexteditor/lang/rte-lang-de.js
greenboun7/Pushkaram
9ff8ff956734b6713d0c934067334a121bc65603
[ "MIT" ]
null
null
null
public/richtexteditor/lang/rte-lang-de.js
greenboun7/Pushkaram
9ff8ff956734b6713d0c934067334a121bc65603
[ "MIT" ]
null
null
null
//German , Deutsch RTE_DefaultConfig.text_language = "sprache"; //"Language" RTE_DefaultConfig.text_ok = "OK"; //"OK" RTE_DefaultConfig.text_cancel = "stornieren"; //"Cancel" RTE_DefaultConfig.text_normal = "normalen"; //"Normal" RTE_DefaultConfig.text_h1 = "Überschrift 1"; //"Headline 1" RTE_DefaultConfig.text_h2 = "Überschrift 2"; //"Headline 2" RTE_DefaultConfig.text_h3 = "Überschrift 3"; //"Headline 3" RTE_DefaultConfig.text_h4 = "Überschrift 4"; //"Headline 4" RTE_DefaultConfig.text_h5 = "Überschrift 5"; //"Headline 5" RTE_DefaultConfig.text_h6 = "Überschrift 6"; //"Headline 6" RTE_DefaultConfig.text_h7 = "Überschrift 7"; //"Headline 7" RTE_DefaultConfig.text_close = "schließen"; //"Close" RTE_DefaultConfig.text_bold = "fett"; //"Bold" RTE_DefaultConfig.text_italic = "kursiv"; //"Italic" RTE_DefaultConfig.text_underline = "unterstreichen"; //"Underline" RTE_DefaultConfig.text_strike = "Strike Line"; //"Strike Line" RTE_DefaultConfig.text_superscript = "hochgestellt"; //"Superscript" RTE_DefaultConfig.text_subscript = "Subcript"; //"Subcript" RTE_DefaultConfig.text_ucase = "Upper Case"; //"Upper Case" RTE_DefaultConfig.text_lcase = "Kleinbuchstaben"; //"Lower Case" RTE_DefaultConfig.text_removeformat = "Entfernen Format"; //"Remove Format" RTE_DefaultConfig.text_insertlink = "Link einfügen"; //"Insert Link" RTE_DefaultConfig.text_openlink = "Offener Link"; //"Open Link" RTE_DefaultConfig.text_editlink = "Link bearbeiten"; //"Edit Link" RTE_DefaultConfig.text_unlink = "Entfernen Link"; //"Remove Link" RTE_DefaultConfig.text_controlinsertlink = "@insertlink"; //"@insertlink" RTE_DefaultConfig.text_controleditlink = "@editlink"; //"@editlink" RTE_DefaultConfig.text_controlopenlink = "@openlink"; //"@openlink" RTE_DefaultConfig.text_controlunlink = "@unlink"; //"@unlink" RTE_DefaultConfig.text_lineheight = "Linienhöhe"; //"Line Height" RTE_DefaultConfig.text_indent = "einrücken"; //"Indent" RTE_DefaultConfig.text_outdent = "Outdent"; //"Outdent" RTE_DefaultConfig.text_insertblockquote = "Block-Zitat"; //"Block Quote" RTE_DefaultConfig.text_insertorderedlist = "Geordnete Liste"; //"Ordered List" RTE_DefaultConfig.text_insertunorderedlist = "Ungeordnete Liste"; //"Unordered List" RTE_DefaultConfig.text_inserthorizontalrule = "Einfügen der horizontalen Regel"; //"Insert Horizontal Rule" RTE_DefaultConfig.text_insertdate = "Datum einfügen"; //"Insert Date" RTE_DefaultConfig.text_inserttable = "Tabelle einfügen"; //"Insert Table" RTE_DefaultConfig.text_insertimage = "Einfügen von Bild"; //"Insert Image" RTE_DefaultConfig.text_insertvideo = "Einfügen von Videos"; //"Insert Video" RTE_DefaultConfig.text_insertcode = "Code einfügen"; //"Insert Code" RTE_DefaultConfig.text_html2pdf = "PDF erstellen"; //"Create PDF" RTE_DefaultConfig.text_insertemoji = "Einfügen von Emoji"; //"Insert Emoji" RTE_DefaultConfig.text_insertchars = "Sonderzeichen"; //"Special characters" RTE_DefaultConfig.text_characters = "zeichen"; //"Characters" RTE_DefaultConfig.text_fontname = "schrift"; //"Font" RTE_DefaultConfig.text_fontsize = "große"; //"Size" RTE_DefaultConfig.text_forecolor = "Textfarbe"; //"Text Color" RTE_DefaultConfig.text_backcolor = "Rückenfarbe"; //"Back Color" RTE_DefaultConfig.text_justify = "rechtfertigen"; //"Justify" RTE_DefaultConfig.text_justifyleft = "Justify Left"; //"Justify Left" RTE_DefaultConfig.text_justifyright = "Justify Right"; //"Justify Right" RTE_DefaultConfig.text_justifycenter = "Justify Center"; //"Justify Center" RTE_DefaultConfig.text_justifyfull = "Justify Full"; //"Justify Full" RTE_DefaultConfig.text_justifynone = "Justify None"; //"Justify None" RTE_DefaultConfig.text_delete = "streichen"; //"Delete" RTE_DefaultConfig.text_save = "Datei speichern"; //"Save file" RTE_DefaultConfig.text_selectall = "Wählen Sie Alle"; //"Select All" RTE_DefaultConfig.text_code = "HTML-Code"; //"HTML Code" RTE_DefaultConfig.text_preview = "vorschau"; //"Preview" RTE_DefaultConfig.text_print = "abzug"; //"Print" RTE_DefaultConfig.text_undo = "ungeschehen machen"; //"Undo" RTE_DefaultConfig.text_redo = "wiederholen"; //"Redo" RTE_DefaultConfig.text_more = "Mehr..."; //"More..." RTE_DefaultConfig.text_newdoc = "Neuer Doc"; //"New Doc" RTE_DefaultConfig.text_help = "helfen"; //"Help" RTE_DefaultConfig.text_fullscreenenter = "Fit to Window"; //"Fit to Window" RTE_DefaultConfig.text_fullscreenexit = "Beenden Sie den Vollbildmodus"; //"Exit Full Screen" RTE_DefaultConfig.text_fullscreen = "@text_fullscreenenter"; //"@text_fullscreenenter" RTE_DefaultConfig.text_imageeditor = "Bild-Editor"; //"Image Editor" RTE_DefaultConfig.text_imagestyle = "Bildstile"; //"Image Styles" RTE_DefaultConfig.text_inlinestyle = "Inline-Stile"; //"Inline Styles" RTE_DefaultConfig.text_paragraphstyle = "Absatzstile"; //"Paragraph Styles" RTE_DefaultConfig.text_linkstyle = "Linkstile"; //"Link Styles" RTE_DefaultConfig.text_link = "verbindung"; //"Link" RTE_DefaultConfig.text_style = "stile"; //"Styles" RTE_DefaultConfig.text_cssclass = "Css-Klassen"; //"Css Classes" RTE_DefaultConfig.text_url = "url"; //"Url" RTE_DefaultConfig.text_byurl = "Nach Url"; //"By Url" RTE_DefaultConfig.text_upload = "uploaden"; //"Upload" RTE_DefaultConfig.text_size = "große"; //"Size" RTE_DefaultConfig.text_text = "text"; //"Text" RTE_DefaultConfig.text_opennewwin = "Öffnen in neuem Tab"; //"Open in new tab" RTE_DefaultConfig.text_insert = "einsetzen"; //"Insert" RTE_DefaultConfig.text_update = "aktualisieren"; //"Update" RTE_DefaultConfig.text_find = "Find&Replace"; //"Find&Replace" RTE_DefaultConfig.text_findwhat = "suchen"; //"Find" RTE_DefaultConfig.text_replacewith = "ersetzen"; //"Replace" RTE_DefaultConfig.text_findnext = "andere"; //"Next" RTE_DefaultConfig.text_replaceonce = "ersetzen"; //"Replace" RTE_DefaultConfig.text_replaceall = "Ersetzen Sie alle"; //"Replace All" RTE_DefaultConfig.text_matchcase = "Match Case"; //"Match Case" RTE_DefaultConfig.text_matchword = "Match Word"; //"Match Word" RTE_DefaultConfig.text_move_down = "Move Down"; //"Move Down" RTE_DefaultConfig.text_move_up = "Move Up"; //"Move Up" RTE_DefaultConfig.text_controlsizeauto = "Autogröße"; //"Auto size" RTE_DefaultConfig.text_controlsize100 = "100% Breite"; //"100% width" RTE_DefaultConfig.text_controlsize75 = "75% Breite"; //"75% width" RTE_DefaultConfig.text_controlsize50 = "50% Breite"; //"50% width" RTE_DefaultConfig.text_controlsize25 = "25% Breite"; //"25% width" RTE_DefaultConfig.text_controlsize = "Set-Größe"; //"Set Size" RTE_DefaultConfig.text_controlalt = "Alt-Text"; //"Alt text" RTE_DefaultConfig.text_controljustify = "rechtfertigen"; //"Justify" RTE_DefaultConfig.text_imagecaption = "Bildunterschrift"; //"Image Caption" RTE_DefaultConfig.text_tablecellmerge = "Zusammenführen von Zellen"; //"Merge Cells" RTE_DefaultConfig.text_tablecellsplitver = "Split Cells Vertikal"; //"Split Cells Vertical" RTE_DefaultConfig.text_tablecellsplithor = "Split Cells Horizontal"; //"Split Cells Horizontal" RTE_DefaultConfig.text_tablecellforecolor = "Zelltextfarbe"; //"Cell Text Color" RTE_DefaultConfig.text_tablecellbackcolor = "Zelle zurück Farbe"; //"Cell Back Color" RTE_DefaultConfig.text_tablerowinsertabove = "Zeile oben einfügen"; //"Insert Row Above" RTE_DefaultConfig.text_tablerowinsertbelow = "Zeile unten einfügen"; //"Insert Row Below" RTE_DefaultConfig.text_tablecolumninsertleft = "Spalte links einfügen"; //"Insert Column Left" RTE_DefaultConfig.text_tablecolumninsertright = "Spalte rechts einfügen"; //"Insert Column Right" RTE_DefaultConfig.text_tablecolumndelete = "Spalte löschen"; //"Delete Column" RTE_DefaultConfig.text_tablerowdelete = "Zeile löschen"; //"Delete Row" RTE_DefaultConfig.text_tabledelete = "Tabelle löschen"; //"Delete Table" RTE_DefaultConfig.text_tableautosize = "Autogröße"; //"Auto Size" RTE_DefaultConfig.text_tableheader = "Tabellenkopf"; //"Table Header" RTE_DefaultConfig.text_plusbtn = "Hinzufügen eines neuen Absatzes"; //"Add a new paragraph" RTE_DefaultConfig.text_paste = "kleben"; //"Paste" RTE_DefaultConfig.text_pasteauto = "kleben"; //"Paste" RTE_DefaultConfig.text_pastetext = "Text einfügen"; //"Paste Text" RTE_DefaultConfig.text_pasteashtml = "Einfügen als Html"; //"Paste as Html" RTE_DefaultConfig.text_pasteword = "Einfügen von Word"; //"Paste Word" RTE_DefaultConfig.text_pasteinstruction = "Bitte verwenden Sie STRG+V, um den Inhalt in das Feld unten einzufügen. Der Inhalt wird automatisch gesäubert."; //"Please use CTRL+V to paste the content into the box below. \\r\\nThe content will be cleaned automatically." RTE_DefaultConfig.text_paragraphop = "absätze"; //"Paragraphs" RTE_DefaultConfig.text_paragraphs = "absätze"; //"Paragraphs" RTE_DefaultConfig.text_pmoveup = "Move Up"; //"Move Up" RTE_DefaultConfig.text_pmovedown = "Move Down"; //"Move Down" RTE_DefaultConfig.text_pduplicate = "kopieren"; //"Duplicate" RTE_DefaultConfig.text_pdelete = "streichen"; //"Delete" RTE_DefaultConfig.text_pmore = "Mehr.."; //"More.." RTE_DefaultConfig.text_togglemore = "Mehr.."; //"More.." RTE_DefaultConfig.text_toggleborder = "Umschalten der Grenze"; //"Toggle Border" RTE_DefaultConfig.text_cut = "schnitt"; //"Cut" RTE_DefaultConfig.text_copy = "kopie"; //"Copy" RTE_DefaultConfig.text_copied = "kopiert"; //"copied" RTE_DefaultConfig.text_insertgallery = "Einfügen von Galerie"; //"Insert Gallery" RTE_DefaultConfig.text_insertdocument = "Dokument einfügen"; //"Insert Document" RTE_DefaultConfig.text_inserttemplate = "Einfügen von Vorlagen"; //"Insert Template" RTE_DefaultConfig.text_previewtitle = "vorschau"; //"Preview" RTE_DefaultConfig.text_previewnormal = "normalen"; //"Normal" RTE_DefaultConfig.text_previewmobile = "handy"; //"Mobile" RTE_DefaultConfig.text_previewtablet = "tablet"; //"Tablet" RTE_DefaultConfig.text_table = "tabelle"; //"Table" RTE_DefaultConfig.text_tablecell = "Tabellenzelle"; //"Table Cell" RTE_DefaultConfig.text_tablerow = "Tabellenzeile"; //"Table Row" RTE_DefaultConfig.text_tablecolumn = "Tabellenspalte"; //"Table Column" RTE_DefaultConfig.text_colorauto = "automatik"; //"Automatic" RTE_DefaultConfig.text_colormore = "mehr"; //"More" RTE_DefaultConfig.text_colorpicker = "Farbauswahl"; //"Color Picker" RTE_DefaultConfig.text_colorwebpalette = "Webpalette"; //"Web Palette" RTE_DefaultConfig.text_colornamedcolors = "Benannte Farben"; //"Named Colors" RTE_DefaultConfig.text_colorbasic = "basic"; //"Basic" RTE_DefaultConfig.text_coloraddition = "zusatz"; //"Addition" RTE_DefaultConfig.text_draganddrop = "Drag &amp; Drop"; //"Drag and drop" RTE_DefaultConfig.text_or = "oder"; //"or" RTE_DefaultConfig.text_clicktoupload = "Klicken Sie zum Hochladen"; //"Click to upload" RTE_DefaultConfig.text_defaultimagecaption = "Standard-Bildbeschriftung"; //"Default Image Caption" RTE_DefaultConfig.text_searchemojis = "suche"; //"Search" RTE_DefaultConfig.text_insertgallerytitle = "@insertgallery"; //"@insertgallery" RTE_DefaultConfig.text_inserttemplatetitle = "@inserttemplate"; //"@inserttemplate" RTE_DefaultConfig.text_reachmaxlength = "Der hinzuzufügende Text hat die Zeichengrenze für dieses Feld erreicht."; //"The text to be added has reached the character limit for this field."
68.581818
268
0.768646
a7cfeca6d928f09ad51899441fb49f95e8d5557e
941
js
JavaScript
src/encode/base16.js
Jack-Q/cryptwist
f2d6a862f54fee8429f1dd2e9a53cf93705f914d
[ "MIT" ]
5
2017-11-12T13:56:12.000Z
2019-01-04T00:06:33.000Z
src/encode/base16.js
Jack-Q/cryptwist
f2d6a862f54fee8429f1dd2e9a53cf93705f914d
[ "MIT" ]
1
2018-01-02T05:00:47.000Z
2018-01-03T02:01:54.000Z
src/encode/base16.js
Jack-Q/cryptwist
f2d6a862f54fee8429f1dd2e9a53cf93705f914d
[ "MIT" ]
null
null
null
const encoderName = 'Base16 (Hex)'; const alphabet = '0123456789ABCDEF'; /** * @argument array Uint8Array */ export const encode = (arr, len = arr.length, offset = 0) => { if (!(arr instanceof Uint8Array)) { console.warn('array to be encoded ought to be Uint8Array'); } return Array(len) .fill(0) .map((_, i) => `${alphabet[(arr[offset + i] >> 4) & 0xf]}${alphabet[arr[offset + i] & 0xf]}`) .join(''); }; export const decode = (str = '') => { if (typeof str !== 'string') { console.warn('message to be decoded ought to be string'); } if (str.length === 0) { return Uint8Array.from([]); } if (str.length % 2 !== 0) { throw 'decoder failure: invalid length of str'; } return Uint8Array.from(str.match(/../g).map(sec => alphabet.indexOf(sec[0]) << 4 | alphabet.indexOf(sec[1]))); }; export const Base16Encoder = { title: encoderName, encode, decode, }; export default Base16Encoder;
24.763158
112
0.608927
a7d05eb519fb2ca90bcefde3befe2a0563a36ebc
642
js
JavaScript
WebModerno/04-objeto/039-freeze.js
newtmagalhaes/Web-Moderno
3101f200ddde7e5267a5bbddb25f1274f296eebb
[ "MIT" ]
null
null
null
WebModerno/04-objeto/039-freeze.js
newtmagalhaes/Web-Moderno
3101f200ddde7e5267a5bbddb25f1274f296eebb
[ "MIT" ]
null
null
null
WebModerno/04-objeto/039-freeze.js
newtmagalhaes/Web-Moderno
3101f200ddde7e5267a5bbddb25f1274f296eebb
[ "MIT" ]
null
null
null
// const e freeze em JavaScript /** * Independente da palavra reservada utilizada para declarar, * a nova variável (obj) armazena um objeto literal, e mesmo * utilizando 'const' é possível alterar seus atributos e métodos. * Isso ocorre devido à variável (obj) guardar a referência de * onde o objeto está na memória e não respectivamente o que há dentro. */ const obj = { key: "value", chave: "valor" }; console.log(obj); obj.atri = "buto"; console.log(obj); // Para também impedir a alteração do que há dentro do objeto, usa-se o método: Object.freeze(obj); obj.chave = "novo valor"; // alteração ignorada console.log(obj);
30.571429
79
0.716511
a7d0d74785296cc975319f55bf179b17282394a1
213
js
JavaScript
test/performance-mark.js
BryanCrotaz/qunit
259f9af1bfc60fc6afb73a70bfe4c29ff1f3167a
[ "MIT" ]
1
2021-03-04T04:39:27.000Z
2021-03-04T04:39:27.000Z
test/performance-mark.js
BryanCrotaz/qunit
259f9af1bfc60fc6afb73a70bfe4c29ff1f3167a
[ "MIT" ]
1
2022-02-26T12:25:27.000Z
2022-02-26T12:25:27.000Z
test/performance-mark.js
BryanCrotaz/qunit
259f9af1bfc60fc6afb73a70bfe4c29ff1f3167a
[ "MIT" ]
null
null
null
QUnit.module( "urlParams performance mark module", function() { QUnit.test( "shouldn't fail if performance marks are cleared ", function( assert ) { performance.clearMarks(); assert.true( true ); } ); } );
26.625
85
0.690141
a7d1316d28c2301cd09f501ee4b57051e687c327
3,933
js
JavaScript
public/shaders/screen/glitch2.js
dovotori/dovotori.github.io
94b9678fa3b327b40f7ae06ee16621569a4ccd6e
[ "CC-BY-4.0" ]
1
2021-12-29T21:16:38.000Z
2021-12-29T21:16:38.000Z
public/shaders/screen/glitch2.js
dovotori/dovotori.github.io
94b9678fa3b327b40f7ae06ee16621569a4ccd6e
[ "CC-BY-4.0" ]
null
null
null
public/shaders/screen/glitch2.js
dovotori/dovotori.github.io
94b9678fa3b327b40f7ae06ee16621569a4ccd6e
[ "CC-BY-4.0" ]
null
null
null
import vertex from './basicVertex'; import { funcRandRange } from '../utils/random'; const fragment = ` precision mediump float; uniform sampler2D textureMap; uniform float time; uniform float delta; varying vec2 fragTexture; ${funcRandRange} float sat( float t ) { return clamp( t, 0.0, 1.0 ); } vec2 sat( vec2 t ) { return clamp( t, 0.0, 1.0 ); } float remap( float t, float a, float b ) { return sat( (t - a) / (b - a) ); } float linterp( float t ) { return sat( 1.0 - abs( 2.0 * t - 1.0 ) ); } vec3 spectrum_offset( float t ) { vec3 ret; float lo = step(t,0.5); float hi = 1.0-lo; float w = linterp( remap( t, 1.0/6.0, 5.0/6.0 ) ); float neg_w = 1.0-w; ret = vec3(lo,1.0,hi) * vec3(neg_w, w, neg_w); return pow( ret, vec3(1.0/2.2) ); } float insideRange(float v, float bottom, float top) { return step(bottom, v) - step(top, v); } float mytrunc( float x, float num_levels ) { return floor(x*num_levels) / num_levels; } vec2 mytrunc( vec2 x, float num_levels ) { return floor(x*num_levels) / num_levels; } /* GLITCH */ vec4 applyGlitch(sampler2D tex, vec2 uv, float speed, float AMT, float time) { float t = floor(time * speed * 60.0); vec4 outCol = texture2D(tex, uv); float maxOffset = AMT / 2.0; const float LIMIT = 10.0; for (float i = 0.0; i < LIMIT; i += 1.0) { float sliceY = rand(vec2(t , 2345.0 + float(i))); float sliceH = rand(vec2(t , 9035.0 + float(i))) * 0.25; float hOffset = randomRange(vec2(t , 9625.0 + float(i)), -maxOffset, maxOffset); vec2 uvOff = uv; uvOff.x += hOffset; if (insideRange(uv.y, sliceY, fract(sliceY+sliceH)) == 1.0 ){ outCol = texture2D(tex, uvOff); } } // do slight offset on one entire channel float maxColOffset = AMT / 6.0; float rnd = rand(vec2(t , 9545.0)); vec2 colOffset = vec2(randomRange(vec2(t , 9545.0), -maxColOffset,maxColOffset), randomRange(vec2(t , 7205.0), -maxColOffset,maxColOffset)); if (rnd < 0.33) { outCol.r = texture2D(tex, uv + colOffset).r; } else if (rnd < 0.66){ outCol.g = texture2D(tex, uv + colOffset).g; } else { outCol.b = texture2D(tex, uv + colOffset).b; } return vec4(outCol); } /* GLITCH 3 */ vec4 applyGlitch3(sampler2D tex, vec2 uv, float GLITCH, float time) { float newtime = mod(time * 100.0, 32.0)/110.0; // + modelmat[0].x + modelmat[0].z; float gnm = sat( GLITCH ); float rnd0 = rand( mytrunc( vec2(newtime, newtime), 6.0 ) ); float r0 = sat((1.0-gnm)*0.7 + rnd0); float rnd1 = rand( vec2(mytrunc( uv.x, 10.0*r0 ), newtime) ); //horz //float r1 = 1.0f - sat( (1.0f-gnm)*0.5f + rnd1 ); float r1 = 0.5 - 0.5 * gnm + rnd1; r1 = 1.0 - max( 0.0, ((r1<1.0) ? r1 : 0.9999999) ); //note: weird ass bug on old drivers float rnd2 = rand( vec2(mytrunc( uv.y, 40.0*r1 ), newtime) ); //vert float r2 = sat( rnd2 ); float rnd3 = rand( vec2(mytrunc( uv.y, 10.0*r0 ), newtime) ); float r3 = (1.0-sat(rnd3+0.8)) - 0.1; float pxrnd = rand( uv + newtime ); float ofs = 0.05 * r2 * GLITCH * ( rnd0 > 0.5 ? 1.0 : -1.0 ); ofs += 0.5 * pxrnd * ofs; uv.y += 0.1 * r3 * GLITCH; const int NUM_SAMPLES = 20; const float RCP_NUM_SAMPLES_F = 1.0 / float(NUM_SAMPLES); vec4 sum = vec4(0.0); vec3 wsum = vec3(0.0); for(int i = 0; i < NUM_SAMPLES; i += 1) { float t = float(i) * RCP_NUM_SAMPLES_F; uv.x = sat( uv.x + ofs * t ); vec4 samplecol = texture2D( tex, uv, -10.0 ); vec3 s = spectrum_offset( t ); samplecol.rgb = samplecol.rgb * s; sum += samplecol; wsum += s; } sum.rgb /= wsum; sum.a *= RCP_NUM_SAMPLES_F; return sum; } void main() { vec4 color1 = applyGlitch3(textureMap, fragTexture, delta, time); vec4 color2 = applyGlitch(textureMap, fragTexture, delta, delta, time); gl_FragColor = mix(color1, color2, vec4(0.5)); } `; export default { vertex, fragment, attributes: ['position', 'texture'], uniforms: ['flipY', 'textureMap', 'time', 'delta'], };
26.755102
89
0.610984
a7d1783783f90f4dfc542b9ffba7dec8ee92eef5
9,138
js
JavaScript
public/admin/cms.fc62725f62757e9ab854.hot-update.js
Prkarena/final
5942e355cd7e2af519facc19f80e1a7d2525d82e
[ "MIT" ]
null
null
null
public/admin/cms.fc62725f62757e9ab854.hot-update.js
Prkarena/final
5942e355cd7e2af519facc19f80e1a7d2525d82e
[ "MIT" ]
null
null
null
public/admin/cms.fc62725f62757e9ab854.hot-update.js
Prkarena/final
5942e355cd7e2af519facc19f80e1a7d2525d82e
[ "MIT" ]
null
null
null
webpackHotUpdate("cms",{ /***/ "./src/templates/ProductsPage.js": /*!***************************************!*\ !*** ./src/templates/ProductsPage.js ***! \***************************************/ /*! exports provided: ProductsPageTemplate, default, pageQuery */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* WEBPACK VAR INJECTION */(function(module) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ProductsPageTemplate", function() { return ProductsPageTemplate; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pageQuery", function() { return pageQuery; }); /* harmony import */ var core_js_modules_es6_object_assign__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es6.object.assign */ "./node_modules/core-js/modules/es6.object.assign.js"); /* harmony import */ var core_js_modules_es6_object_assign__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_object_assign__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _components_PageHeader__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../components/PageHeader */ "./src/components/PageHeader.js"); /* harmony import */ var _components_Content_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../components/Content.js */ "./src/components/Content.js"); /* harmony import */ var _components_Layout_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../components/Layout.js */ "./src/components/Layout.js"); /* harmony import */ var _components_BackgroundVideo__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../components/BackgroundVideo */ "./src/components/BackgroundVideo.js"); /* harmony import */ var _components_ProductCard_ProductCard__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../components/ProductCard/ProductCard */ "./src/components/ProductCard/ProductCard.js"); /* harmony import */ var _components_Popup__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../components/Popup */ "./src/components/Popup.js"); var _jsxFileName = "D:\\gatsby\\fefar\\briota\\src\\templates\\ProductsPage.js"; (function () { var enterModule = __webpack_require__(/*! react-hot-loader */ "./node_modules/react-hot-loader/index.js").enterModule; enterModule && enterModule(module); })(); // Export Template for use in CMS preview var ProductsPageTemplate = function ProductsPageTemplate(_ref) { var title = _ref.title, subtitle = _ref.subtitle, featuredImage = _ref.featuredImage, section1 = _ref.section1, section2 = _ref.section2, video = _ref.video, videoPoster = _ref.videoPoster, videoTitle = _ref.videoTitle, accordion = _ref.accordion, body = _ref.body, gallery = _ref.gallery; return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("main", { __source: { fileName: _jsxFileName, lineNumber: 24 }, __self: this }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_components_PageHeader__WEBPACK_IMPORTED_MODULE_2__["default"], { title: title, subtitle: subtitle, backgroundImage: featuredImage, __source: { fileName: _jsxFileName, lineNumber: 27 }, __self: this }), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("section", { className: "section", __source: { fileName: _jsxFileName, lineNumber: 35 }, __self: this }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", { className: "container", __source: { fileName: _jsxFileName, lineNumber: 36 }, __self: this }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_components_Content_js__WEBPACK_IMPORTED_MODULE_3__["default"], { source: section1, __source: { fileName: _jsxFileName, lineNumber: 37 }, __self: this }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("section", { className: "section", __source: { fileName: _jsxFileName, lineNumber: 41 }, __self: this }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", { className: "container", __source: { fileName: _jsxFileName, lineNumber: 42 }, __self: this }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("h2", { __source: { fileName: _jsxFileName, lineNumber: 43 }, __self: this }, "Products : Tap to see detailes"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_components_ProductCard_ProductCard__WEBPACK_IMPORTED_MODULE_6__["default"], { images: gallery, __source: { fileName: _jsxFileName, lineNumber: 44 }, __self: this }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("section", { className: "section", __source: { fileName: _jsxFileName, lineNumber: 48 }, __self: this }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", { className: "container", __source: { fileName: _jsxFileName, lineNumber: 49 }, __self: this }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_components_Content_js__WEBPACK_IMPORTED_MODULE_3__["default"], { source: section2, __source: { fileName: _jsxFileName, lineNumber: 50 }, __self: this }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("section", { className: "BackgroundVideo-section section", __source: { fileName: _jsxFileName, lineNumber: 54 }, __self: this }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_components_BackgroundVideo__WEBPACK_IMPORTED_MODULE_5__["default"], { poster: videoPoster, videoTitle: videoTitle, __source: { fileName: _jsxFileName, lineNumber: 55 }, __self: this }, video && react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("source", { src: video, type: "video/mp4", __source: { fileName: _jsxFileName, lineNumber: 56 }, __self: this }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("section", { className: "section", __source: { fileName: _jsxFileName, lineNumber: 60 }, __self: this }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", { className: "container", __source: { fileName: _jsxFileName, lineNumber: 61 }, __self: this }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_components_Popup__WEBPACK_IMPORTED_MODULE_7__["default"], { __source: { fileName: _jsxFileName, lineNumber: 62 }, __self: this }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_components_Content_js__WEBPACK_IMPORTED_MODULE_3__["default"], { source: section1, __source: { fileName: _jsxFileName, lineNumber: 63 }, __self: this }))))); }; var ProductsPage = function ProductsPage(_ref2) { var page = _ref2.data.page; return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_components_Layout_js__WEBPACK_IMPORTED_MODULE_4__["default"], { meta: page.frontmatter.meta || false, title: page.frontmatter.title || false, __source: { fileName: _jsxFileName, lineNumber: 71 }, __self: this }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(ProductsPageTemplate, Object.assign({}, page, page.frontmatter, { body: page.html, __source: { fileName: _jsxFileName, lineNumber: 75 }, __self: this }))); }; var _default = ProductsPage; /* harmony default export */ __webpack_exports__["default"] = (_default); var pageQuery = "552739944"; ; (function () { var reactHotLoader = __webpack_require__(/*! react-hot-loader */ "./node_modules/react-hot-loader/index.js").default; var leaveModule = __webpack_require__(/*! react-hot-loader */ "./node_modules/react-hot-loader/index.js").leaveModule; if (!reactHotLoader) { return; } reactHotLoader.register(ProductsPageTemplate, "ProductsPageTemplate", "D:\\gatsby\\fefar\\briota\\src\\templates\\ProductsPage.js"); reactHotLoader.register(ProductsPage, "ProductsPage", "D:\\gatsby\\fefar\\briota\\src\\templates\\ProductsPage.js"); reactHotLoader.register(pageQuery, "pageQuery", "D:\\gatsby\\fefar\\briota\\src\\templates\\ProductsPage.js"); reactHotLoader.register(_default, "default", "D:\\gatsby\\fefar\\briota\\src\\templates\\ProductsPage.js"); leaveModule(module); })(); ; /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../node_modules/webpack/buildin/harmony-module.js */ "./node_modules/webpack/buildin/harmony-module.js")(module))) /***/ }) }) //# sourceMappingURL=cms.fc62725f62757e9ab854.hot-update.js.map
38.556962
206
0.714051
a7d205e2c0d5acaaa0f05ca5ccad2a73550fe7d6
424
js
JavaScript
src/.temp/old/index.js
LeWarEnds/clocal-azure
3eeea639c52b694dded00f94c13cfcb14df15ce1
[ "Apache-2.0" ]
76
2018-09-23T08:55:22.000Z
2020-02-20T17:25:13.000Z
src/.temp/old/index.js
SumbulSeiyyad10/clocal-azure
54e6b6a778b6008319686471aca0adfe82bbc285
[ "Apache-2.0" ]
64
2018-08-19T03:48:23.000Z
2020-02-07T10:39:45.000Z
src/.temp/old/index.js
SumbulSeiyyad10/clocal-azure
54e6b6a778b6008319686471aca0adfe82bbc285
[ "Apache-2.0" ]
155
2018-03-10T05:07:05.000Z
2020-03-30T05:44:22.000Z
module.exports = function (req, res) { if (req.query.name || (req.body && req.body.name)) { res.send ({ // status: 200, /* Defaults to 200 */ body: "Hello " + (req.query.name || req.body.name) }); } else { res.send ({ status: 400, body: "Please pass a name on the query string or in the request body" }); } };
28.266667
82
0.455189
a7d21ae9ae5822227bcbf20e7b0118de6fb19d53
624
js
JavaScript
petstore-app/src/main/resources/static/node_modules/bower/lib/node_modules/bower-config/node_modules/mout/src/lang/isEmpty.js
ionutbarau/petstore
32e632091e359403aaaeea16168f03c596c42c78
[ "Apache-2.0" ]
null
null
null
petstore-app/src/main/resources/static/node_modules/bower/lib/node_modules/bower-config/node_modules/mout/src/lang/isEmpty.js
ionutbarau/petstore
32e632091e359403aaaeea16168f03c596c42c78
[ "Apache-2.0" ]
null
null
null
petstore-app/src/main/resources/static/node_modules/bower/lib/node_modules/bower-config/node_modules/mout/src/lang/isEmpty.js
ionutbarau/petstore
32e632091e359403aaaeea16168f03c596c42c78
[ "Apache-2.0" ]
1
2019-02-04T01:05:43.000Z
2019-02-04T01:05:43.000Z
define(['../object/forOwn', './isArray'], function (forOwn, isArray) { function isEmpty(val) { if (val == null) { // typeof null == 'object' so we check it first return true; } else if (typeof val === 'string' || isArray(val)) { return !val.length; } else if (typeof val === 'object') { var result = true; forOwn(val, function () { result = false; return false; // break loop }); return result; } else { return true; } } return isEmpty; });
26
70
0.451923
a74f5e258edde1008f3d53540ab0855d25350abe
2,211
js
JavaScript
website-1.x/siteConfig.js
LadyMiss88/Docusaurus
fbe2fb879fed3e3275b209b1c6ef10fe8e0b40e2
[ "CC-BY-4.0", "MIT" ]
1
2019-04-27T21:05:12.000Z
2019-04-27T21:05:12.000Z
website-1.x/siteConfig.js
NishealJ/Docusaurus
65bb8ef9787d4de31a72665bfc4a1fde60403ff4
[ "CC-BY-4.0", "MIT" ]
null
null
null
website-1.x/siteConfig.js
NishealJ/Docusaurus
65bb8ef9787d4de31a72665bfc4a1fde60403ff4
[ "CC-BY-4.0", "MIT" ]
null
null
null
/** * Copyright (c) 2017-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ /* List of projects/orgs using your project for the users page */ const users = require('./data/users'); const siteConfig = { title: 'Docusaurus', tagline: 'Easy to Maintain Open Source Documentation Websites', url: 'https://docusaurus.io', baseUrl: '/', organizationName: 'facebook', projectName: 'Docusaurus', cname: 'docusaurus.io', noIndex: false, users, editUrl: 'https://github.com/facebook/docusaurus/edit/master/docs/', headerLinks: [ {doc: 'installation', label: 'Docs'}, {href: '/docs/en/next/tutorial-setup', label: 'Tutorial'}, {page: 'help', label: 'Help'}, {page: 'users', label: 'Users'}, {page: 'about-slash', label: 'About /'}, {blog: true, label: 'Blog'}, { href: 'https://github.com/facebook/docusaurus', label: 'GitHub', }, ], headerIcon: 'img/docusaurus.svg', footerIcon: 'img/docusaurus_monochrome.svg', favicon: 'img/docusaurus.ico', algolia: { apiKey: '3eb9507824b8be89e7a199ecaa1a9d2c', indexName: 'docusaurus', algoliaOptions: { facetFilters: ['language:LANGUAGE', 'version:VERSION'], }, }, colors: { primaryColor: '#2E8555', secondaryColor: '#205C3B', }, translationRecruitingLink: 'https://crowdin.com/project/docusaurus', copyright: `Copyright © ${new Date().getFullYear()} Facebook Inc.`, usePrism: ['jsx'], highlight: { theme: 'atom-one-dark', }, scripts: [ 'https://buttons.github.io/buttons.js', 'https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.0/clipboard.min.js', '/js/code-blocks-buttons.js', ], gaTrackingId: 'UA-44373548-31', facebookAppId: '199138890728411', facebookComments: true, twitter: 'true', twitterUsername: 'docusaurus', ogImage: 'img/docusaurus.png', twitterImage: 'img/docusaurus.png', onPageNav: 'separate', cleanUrl: true, scrollToTop: true, scrollToTopOptions: { zIndex: 100, }, enableUpdateTime: true, enableUpdateBy: true, docsSideNavCollapsible: true, }; module.exports = siteConfig;
28.346154
81
0.663501
a7504d2154c1c5c128f848132e1dd8f3f83bed05
21,851
js
JavaScript
src/containers/Tenant/QueryEditor/QueryEditor.js
ydb-platform/ydb-embedded-ui
3f373d4ad2232f4a18e4263092e7c832036bec14
[ "MIT" ]
1
2022-03-29T14:36:22.000Z
2022-03-29T14:36:22.000Z
src/containers/Tenant/QueryEditor/QueryEditor.js
ydb-platform/ydb-embedded-ui
3f373d4ad2232f4a18e4263092e7c832036bec14
[ "MIT" ]
5
2022-02-24T09:30:39.000Z
2022-03-24T11:28:47.000Z
src/containers/Tenant/QueryEditor/QueryEditor.js
ydb-platform/ydb-embedded-ui
3f373d4ad2232f4a18e4263092e7c832036bec14
[ "MIT" ]
null
null
null
import {useEffect, useReducer, useRef, useState} from 'react'; import PropTypes from 'prop-types'; import {connect} from 'react-redux'; import cn from 'bem-cn-lite'; import _ from 'lodash'; import MonacoEditor from 'react-monaco-editor'; import DataTable from '@yandex-cloud/react-data-table'; import {Button, DropdownMenu} from '@yandex-cloud/uikit'; import SplitPane from '../../../components/SplitPane'; import SaveQuery from './SaveQuery/SaveQuery'; import SavedQueries from './SavedQueries/SavedQueries'; import Icon from '../../../components/Icon/Icon'; import QueryResult from './QueryResult/QueryResult'; import QueryExplain from './QueryExplain/QueryExplain'; import { sendQuery, changeUserInput, saveQueryToHistory, goToPreviousQuery, goToNextQuery, selectRunAction, RUN_ACTIONS_VALUES, MONACO_HOT_KEY_ACTIONS, setMonacoHotKey, } from '../../../store/reducers/executeQuery'; import {getExplainQuery, getExplainQueryAst} from '../../../store/reducers/explainQuery'; import {showTooltip} from '../../../store/reducers/tooltip'; import {getSettingValue, setSettingValue} from '../../../store/reducers/settings'; import { DEFAULT_IS_QUERY_RESULT_COLLAPSED, DEFAULT_SIZE_RESULT_PANE_KEY, DEFAULT_TABLE_SETTINGS, SAVED_QUERIES_KEY, } from '../../../utils/constants'; import {prepareQueryResponse} from '../../../utils/index'; import {parseJson} from '../../../utils/utils'; import './QueryEditor.scss'; import Divider from '../../../components/Divider/Divider'; import QueriesHistory from './QueriesHistory/QueriesHistory'; import { PaneVisibilityActionTypes, paneVisibilityToggleReducerCreator, } from '../utils/paneVisibilityToggleHelpers'; import Preview from '../Preview/Preview'; import {setShowPreview} from '../../../store/reducers/schema'; export const RUN_ACTIONS = [ {value: RUN_ACTIONS_VALUES.script, content: 'Run Script'}, {value: RUN_ACTIONS_VALUES.scan, content: 'Run Scan'}, ]; const TABLE_SETTINGS = { ...DEFAULT_TABLE_SETTINGS, sortable: false, dynamicItemSizeGetter: () => 40, dynamicRenderType: 'variable', stripedRows: true, }; const EDITOR_OPTIONS = { automaticLayout: true, selectOnLineNumbers: true, minimap: { enabled: false, }, }; const CONTEXT_MENU_GROUP_ID = 'navigation'; const RESULT_TYPES = { EXECUTE: 'execute', EXPLAIN: 'explain', }; const b = cn('query-editor'); const propTypes = { sendQuery: PropTypes.func, path: PropTypes.string, response: PropTypes.oneOfType([PropTypes.bool, PropTypes.array]), executeQuery: PropTypes.object, explainQuery: PropTypes.object, showTooltip: PropTypes.func, setMonacoHotKey: PropTypes.func, theme: PropTypes.string, type: PropTypes.string, }; const initialTenantCommonInfoState = { triggerExpand: false, triggerCollapse: false, collapsed: true, }; function QueryEditor(props) { const [resultType, setResultType] = useState(RESULT_TYPES.EXECUTE); const [resultVisibilityState, dispatchResultVisibilityState] = useReducer( paneVisibilityToggleReducerCreator(DEFAULT_IS_QUERY_RESULT_COLLAPSED), initialTenantCommonInfoState, ); const editorRef = useRef(null); useEffect(() => { updateEditor(); window.addEventListener('resize', onChangeWindow); window.addEventListener('storage', storageEventHandler); return () => { window.removeEventListener('resize', onChangeWindow); window.removeEventListener('storage', storageEventHandler); window.onbeforeunload = undefined; props.setMonacoHotKey(null); }; }, []); useEffect(() => { dispatchResultVisibilityState(PaneVisibilityActionTypes.triggerCollapse); }, []); useEffect(() => { const {showPreview} = props; if (showPreview && resultVisibilityState.collapsed) { dispatchResultVisibilityState(PaneVisibilityActionTypes.triggerExpand); } }, [props.showPreview, resultVisibilityState.collapsed]); useEffect(() => { const { explainQuery: {data}, executeQuery: {input, history}, } = props; const hasUnsavedInput = input ? input !== history.queries[history.queries?.length - 1] : false; if (hasUnsavedInput) { window.onbeforeunload = checkIfHasUnsavedInput; } else { window.onbeforeunload = undefined; } if (!data || resultType !== RESULT_TYPES.EXPLAIN) { return; } }, [props.executeQuery, props.executeQuery]); useEffect(() => { const {monacoHotKey, setMonacoHotKey} = props; if (monacoHotKey === null) { return; } setMonacoHotKey(null); switch (monacoHotKey) { case MONACO_HOT_KEY_ACTIONS.sendQuery: { return handleSendClick(); } case MONACO_HOT_KEY_ACTIONS.goPrev: { return handlePreviousHistoryClick(); } case MONACO_HOT_KEY_ACTIONS.goNext: { return handleNextHistoryClick(); } case MONACO_HOT_KEY_ACTIONS.getExplain: { return handleGetExplainQueryClick(); } default: { return; } } }, [props.monacoHotKey]); const checkIfHasUnsavedInput = (e) => { e.preventDefault(); // Chrome requires returnValue to be set e.returnValue = ''; }; const handleKeyBinding = (value) => { return () => props.setMonacoHotKey(value); }; const editorDidMount = (editor, monaco) => { editorRef.current = editor; editor.focus(); editor.addAction({ id: 'run', label: 'Run', keybindings: [ // eslint-disable-next-line no-bitwise monaco.KeyMod.CtrlCmd | monaco.KeyCode.Enter, ], // A precondition for this action. precondition: null, // A rule to evaluate on top of the precondition in order to dispatch the keybindings. keybindingContext: null, contextMenuGroupId: CONTEXT_MENU_GROUP_ID, contextMenuOrder: 1, // Method that will be executed when the action is triggered. // @param editor The editor instance is passed in as a convinience run: handleKeyBinding(MONACO_HOT_KEY_ACTIONS.sendQuery), }); editor.addAction({ id: 'previous-query', label: 'Previous query', keybindings: [ // eslint-disable-next-line no-bitwise monaco.KeyMod.CtrlCmd | monaco.KeyCode.UpArrow, ], contextMenuGroupId: CONTEXT_MENU_GROUP_ID, contextMenuOrder: 2, run: handleKeyBinding(MONACO_HOT_KEY_ACTIONS.goPrev), }); editor.addAction({ id: 'next-query', label: 'Next query', keybindings: [ // eslint-disable-next-line no-bitwise monaco.KeyMod.CtrlCmd | monaco.KeyCode.DownArrow, ], contextMenuGroupId: CONTEXT_MENU_GROUP_ID, contextMenuOrder: 3, run: handleKeyBinding(MONACO_HOT_KEY_ACTIONS.goNext), }); editor.addAction({ id: 'explain', label: 'Explain', keybindings: [ // eslint-disable-next-line no-bitwise monaco.KeyMod.CtrlCmd | monaco.KeyCode.KEY_E, ], // A precondition for this action. precondition: null, // A rule to evaluate on top of the precondition in order to dispatch the keybindings. keybindingContext: null, contextMenuGroupId: CONTEXT_MENU_GROUP_ID, contextMenuOrder: 4, run: handleKeyBinding(MONACO_HOT_KEY_ACTIONS.getExplain), }); }; const onChange = (newValue) => { props.changeUserInput({input: newValue}); }; const handleSendClick = () => { const { path, executeQuery: {input, history, runAction}, sendQuery, saveQueryToHistory, setShowPreview, } = props; setResultType(RESULT_TYPES.EXECUTE); sendQuery({query: input, database: path, action: runAction}); setShowPreview(false); const {queries, currentIndex} = history; if (input !== queries[currentIndex]) { saveQueryToHistory(input); } dispatchResultVisibilityState(PaneVisibilityActionTypes.triggerExpand); }; const handleGetExplainQueryClick = () => { const { path, executeQuery: {input}, getExplainQuery, setShowPreview, } = props; setResultType(RESULT_TYPES.EXPLAIN); getExplainQuery({query: input, database: path}); setShowPreview(false); dispatchResultVisibilityState(PaneVisibilityActionTypes.triggerExpand); }; const handleAstQuery = () => { const { path, executeQuery: {input}, getExplainQueryAst, } = props; getExplainQueryAst({query: input, database: path}); }; const onCollapseResultHandler = () => { dispatchResultVisibilityState(PaneVisibilityActionTypes.triggerCollapse); }; const onExpandResultHandler = () => { dispatchResultVisibilityState(PaneVisibilityActionTypes.triggerExpand); }; const onSplitStartDrugAdditional = () => { dispatchResultVisibilityState(PaneVisibilityActionTypes.clear); }; const renderExecuteQuery = () => { const { executeQuery: {data, error, stats}, showTooltip, } = props; const result = getExecuteResult(); const shouldRenderAnswer = result.length || error; if (!shouldRenderAnswer) { return null; } let columns = []; if (data && data.length > 0) { columns = Object.keys(data[0]).map((key) => ({ name: key, render: ({value}) => { return ( <span className={b('cell')} onClick={(e) => showTooltip(e.target, value, 'cell')} > {value} </span> ); }, })); } const preparedData = prepareQueryResponse(data); const content = columns.length ? ( <DataTable columns={columns} data={preparedData} settings={TABLE_SETTINGS} theme="yandex-cloud" rowKey={(_, index) => index} /> ) : ( <div>{result}</div> ); const results = getPreparedResult(); const disabled = !results.length || resultType !== RESULT_TYPES.EXECUTE; return ( <QueryResult result={content} stats={stats} error={Boolean(error)} textResults={results} copyDisabled={disabled} isResultsCollapsed={resultVisibilityState.collapsed} onExpandResults={onExpandResultHandler} onCollapseResults={onCollapseResultHandler} /> ); }; const renderExplainQuery = () => { const { explainQuery: {data, dataAst, error, loading, loadingAst}, theme, } = props; return ( <QueryExplain error={error} explain={data} astQuery={handleAstQuery} ast={dataAst?.ast} loading={loading} loadingAst={loadingAst} theme={theme} isResultsCollapsed={resultVisibilityState.collapsed} onExpandResults={onExpandResultHandler} onCollapseResults={onCollapseResultHandler} /> ); }; const renderResult = () => { let result; switch (resultType) { case RESULT_TYPES.EXECUTE: result = renderExecuteQuery(); break; case RESULT_TYPES.EXPLAIN: result = renderExplainQuery(); break; default: result = null; } return result; }; const renderPreview = () => { const {path, type, currentSchema = {}} = props; const partCount = currentSchema?.PathDescription?.TableStats?.PartCount; // onExpandResultHandler(); return ( <Preview database={path} table={currentSchema.Path} type={type} partCount={partCount} /> ); }; const handlePreviousHistoryClick = () => { const { changeUserInput, executeQuery: {history}, goToPreviousQuery, } = props; const {queries, currentIndex} = history; if (previousButtonIsDisabled()) { return; } goToPreviousQuery(); changeUserInput({input: queries[currentIndex - 1]}); }; const handleNextHistoryClick = () => { const { changeUserInput, executeQuery: {history}, goToNextQuery, } = props; const {queries, currentIndex} = history; if (nextButtonIsDisabled()) { return; } goToNextQuery(); changeUserInput({input: queries[currentIndex + 1]}); }; const previousButtonIsDisabled = () => { const { history: {currentIndex}, } = props.executeQuery; return currentIndex <= 0; }; const nextButtonIsDisabled = () => { const { history: {queries, currentIndex}, } = props.executeQuery; return queries.length - 1 === currentIndex; }; const renderHistoryNavigation = () => { const {changeUserInput} = props; return ( <div className={b('history-controls')}> <QueriesHistory changeUserInput={changeUserInput} /> </div> ); }; const getExecuteResult = () => { const {data = [], error} = props.executeQuery; if (error) { return error.data || error; } else if (data.length > 0) { return data; } else { return ''; } }; const getPreparedResult = () => { const { executeQuery: {data}, } = props; const columnDivider = '\t'; const rowDivider = '\n'; if (!data?.length) { return ''; } const columnHeaders = Object.keys(data[0]); const rows = [columnHeaders].concat(data); return rows .map((item) => { const row = []; for (const field in item) { if (typeof item[field] === 'object' || Array.isArray(item[field])) { row.push(JSON.stringify(item[field])); } else { row.push(item[field]); } } return row.join(columnDivider); }) .join(rowDivider); }; const onChangeWindow = _.throttle(() => { updateEditor(); }, 100); const storageEventHandler = (event) => { if (event.key === SAVED_QUERIES_KEY) { props.setSettingValue(SAVED_QUERIES_KEY, event.newValue); } }; const updateEditor = () => { if (editorRef.current) { editorRef.current.layout(); } }; const onSaveQueryHandler = (queryName) => { const { executeQuery: {input}, savedQueries = [], setSettingValue, } = props; const queryIndex = savedQueries.findIndex( (el) => el.name.toLowerCase() === queryName.toLowerCase(), ); const newSavedQueries = [...savedQueries]; const newQuery = {name: queryName, body: input}; if (queryIndex !== -1) { newSavedQueries[queryIndex] = newQuery; } else { newSavedQueries.push(newQuery); } setSettingValue(SAVED_QUERIES_KEY, JSON.stringify(newSavedQueries)); }; const onDeleteQueryHandler = (queryName) => { const {savedQueries = [], setSettingValue} = props; const newSavedQueries = savedQueries.filter( (el) => el.name.toLowerCase() !== queryName.toLowerCase(), ); setSettingValue(SAVED_QUERIES_KEY, JSON.stringify(newSavedQueries)); }; const renderControls = () => { const {executeQuery, explainQuery, savedQueries, selectRunAction} = props; const {runAction} = executeQuery; const runIsDisabled = !executeQuery.input || executeQuery.loading; const runText = _.find(RUN_ACTIONS, {value: runAction}).content; const menuItems = RUN_ACTIONS.map((action) => { return { text: action.content, action: () => selectRunAction(action.value), }; }); return ( <div className={b('controls')}> <div className={b('control-run')}> <Button onClick={handleSendClick} view="action" pin="round-brick" disabled={runIsDisabled} loading={executeQuery.loading} > <Icon name="startPlay" viewBox="0 0 16 16" width={16} height={16} /> {runText} </Button> <DropdownMenu items={menuItems} switcher={ <Button view="action" pin="brick-round" disabled={runIsDisabled} loading={executeQuery.loading} className={b('select-query-action')} > <Icon name="chevron-down" width={16} height={16} /> </Button> } /> </div> <Button onClick={handleGetExplainQueryClick} disabled={!executeQuery.input} loading={explainQuery.loading} > Explain </Button> <Divider /> <SaveQuery savedQueries={savedQueries} onSaveQuery={onSaveQueryHandler} saveButtonDisabled={runIsDisabled} /> </div> ); }; const renderUpperControls = () => { const {savedQueries, changeUserInput} = props; return ( <div className={b('upper-controls')}> {renderHistoryNavigation()} <SavedQueries savedQueries={savedQueries} changeUserInput={changeUserInput} onDeleteQuery={onDeleteQueryHandler} /> </div> ); }; const {executeQuery, theme} = props; const result = renderResult(); return ( <div className={b()}> <SplitPane direction="vertical" defaultSizePaneKey={DEFAULT_SIZE_RESULT_PANE_KEY} triggerCollapse={resultVisibilityState.triggerCollapse} triggerExpand={resultVisibilityState.triggerExpand} minSize={[0, 52]} collapsedSizes={[100, 0]} onSplitStartDrugAdditional={onSplitStartDrugAdditional} > <div className={b('pane-wrapper')}> <div className={b('monaco-wrapper')}> <div className={b('monaco')}> <MonacoEditor language="sql" value={executeQuery.input} options={EDITOR_OPTIONS} onChange={onChange} editorDidMount={editorDidMount} theme={`vs-${theme}`} /> </div> </div> {renderControls()} {renderUpperControls()} </div> <div className={b('pane-wrapper')}> {props.showPreview ? renderPreview() : result} </div> </SplitPane> </div> ); } const mapStateToProps = (state) => { return { executeQuery: state.executeQuery, explainQuery: state.explainQuery, savedQueries: parseJson(getSettingValue(state, SAVED_QUERIES_KEY)), showPreview: state.schema.showPreview, currentSchema: state.schema.currentSchema, monacoHotKey: state.executeQuery?.monacoHotKey, }; }; const mapDispatchToProps = { sendQuery, changeUserInput, saveQueryToHistory, goToPreviousQuery, goToNextQuery, showTooltip, getExplainQuery, getExplainQueryAst, setSettingValue, selectRunAction, setShowPreview, setMonacoHotKey, }; QueryEditor.propTypes = propTypes; export default connect(mapStateToProps, mapDispatchToProps)(QueryEditor);
31.485591
100
0.53993
a75095f92ed408fad58965fd96299cd0559c7c6d
1,232
js
JavaScript
hardhat.config.js
freerangealpha/dsd-protocol
91f81dc238cd973b1bfeb94424be1bbba64d7ea3
[ "Apache-2.0" ]
15
2020-12-08T16:47:09.000Z
2021-05-25T01:24:27.000Z
hardhat.config.js
freerangealpha/dsd-protocol
91f81dc238cd973b1bfeb94424be1bbba64d7ea3
[ "Apache-2.0" ]
5
2020-12-06T18:43:23.000Z
2021-01-26T18:55:09.000Z
hardhat.config.js
dynamicsetdollar/dsd-protocol
a45aca3b1d3b5e60b0b36d2862af1eb09044b0ec
[ "Apache-2.0" ]
45
2020-12-09T01:27:37.000Z
2022-01-12T23:19:28.000Z
/** * @type import('hardhat/config').HardhatUserConfig */ require("dotenv").config(); require("@nomiclabs/hardhat-ethers"); require("@nomiclabs/hardhat-waffle"); require('solidity-coverage') require("@nomiclabs/hardhat-etherscan"); module.exports = { solidity: { version: "0.5.17", settings: { optimizer: { enabled: true, runs: 200, }, }, }, networks: { mainnet: { url: `https://mainnet.infura.io/v3/${process.env.INFURA_KEY}`, accounts: { mnemonic: process.env.MNEMONIC, }, timeout: 200000000, gasPrice: Number('100' + '000000000'), // first two decimails should be current gas price }, mainnetFork: { url: "http://127.0.0.1:8545", accounts: { mnemonic: process.env.MNEMONIC, }, default_balance_ether: 10000000000, total_accounts: 10, gasLimit: 20000000, fork: `https://mainnet.infura.io/v3/${process.env.INFURA_KEY}`, timeout: 200000000, }, coverage: { url: 'http://127.0.0.1:8555', // Coverage launches its own ganache-cli client gasPrice: 0, blockGasLimit: 100000000, }, }, etherscan: { apiKey: process.env.ETHERSCAN_API_KEY, }, };
24.156863
95
0.599838
a7515c02075b6a8cfbf6c1fc804a378ea16d450c
554
js
JavaScript
docs/reference/html/search/functions_f.js
FFCoder/Reddit.NET
001391500648d3f5064e622f1f088e9cc08125eb
[ "MIT" ]
493
2018-12-24T14:45:41.000Z
2022-03-30T07:52:37.000Z
docs/reference/html/search/functions_f.js
FFCoder/Reddit.NET
001391500648d3f5064e622f1f088e9cc08125eb
[ "MIT" ]
131
2019-01-10T09:30:22.000Z
2022-02-14T16:22:52.000Z
docs/reference/html/search/functions_f.js
FFCoder/Reddit.NET
001391500648d3f5064e622f1f088e9cc08125eb
[ "MIT" ]
87
2018-12-25T04:51:12.000Z
2022-01-30T07:36:27.000Z
var searchData= [ ['qacommentsismonitored_3837',['QACommentsIsMonitored',['../class_reddit_1_1_controllers_1_1_comments.html#a1e4dabfccf0e0a32654d7255e0aeda17',1,'Reddit::Controllers::Comments']]], ['qareplies_3838',['QAReplies',['../class_reddit_tests_1_1_controller_tests_1_1_comment_tests.html#a85af18903f36acaa320e36b784464ee9',1,'RedditTests.ControllerTests.CommentTests.QAReplies()'],['../class_reddit_tests_1_1_controller_tests_1_1_post_tests.html#ace45a52ef29e998858da206e03584c1f',1,'RedditTests.ControllerTests.PostTests.QAReplies()']]] ];
92.333333
350
0.83935
a752593386e6851ad2771083c2d7bb0b4714eae2
4,372
js
JavaScript
src/parser/jobs/war/modules/Gauge.js
DaisukeSawada/xivanalysis
588ee0530535c52c9a78f46af1c9e2b464c58147
[ "MIT" ]
1
2018-09-09T12:33:13.000Z
2018-09-09T12:33:13.000Z
src/parser/jobs/war/modules/Gauge.js
DaisukeSawada/xivanalysis
588ee0530535c52c9a78f46af1c9e2b464c58147
[ "MIT" ]
null
null
null
src/parser/jobs/war/modules/Gauge.js
DaisukeSawada/xivanalysis
588ee0530535c52c9a78f46af1c9e2b464c58147
[ "MIT" ]
null
null
null
import Color from 'color' import {i18nMark, Trans} from '@lingui/react' import React from 'react' import TimeLineChart from 'components/ui/TimeLineChart' import {ActionLink} from 'components/ui/DbLink' import ACTIONS from 'data/ACTIONS' import STATUSES from 'data/STATUSES' import JOBS from 'data/JOBS' import Module from 'parser/core/Module' import {TieredSuggestion, SEVERITY} from 'parser/core/modules/Suggestions' // General actions that generate Rage const RAGE_GENERATORS = { [ACTIONS.MAIM.id]: 10, [ACTIONS.STORMS_EYE.id]: 10, [ACTIONS.SKULL_SUNDER.id]: 10, [ACTIONS.BUTCHERS_BLOCK.id]: 10, [ACTIONS.STORMS_PATH.id]: 20, [ACTIONS.INFURIATE.id]: 50, } //Actions that cost Rage const RAGE_SPENDERS = { [ACTIONS.FELL_CLEAVE.id]: 50, [ACTIONS.INNER_BEAST.id]: 50, [ACTIONS.STEEL_CYCLONE.id]: 50, [ACTIONS.DECIMATE.id]: 50, [ACTIONS.UPHEAVAL.id]: 20, [ACTIONS.ONSLAUGHT.id]: 20, } const RAGE_USAGE_SEVERITY = { 20: SEVERITY.MINOR, 50: SEVERITY.MAJOR, } // Max Rage const MAX_RAGE = 100 export default class Gauge extends Module { static handle = 'gauge' static title = 'Gauge Usage' static i18n_id = i18nMark('war.gauge.title') static dependencies = [ 'combatants', 'suggestions', ] // ----- // Properties // ----- // I'm assuming it'll start at 0 (which, in nine out of ten cases, should be it. I can't think of any fringe cases right now.) _rage = 0 _wastedRage = 0 _history = { rage: [], } constructor(...args) { super(...args) this.addHook('death', {to: 'player'}, this._onDeath) this.addHook('cast', {by: 'player', abilityId: Object.keys(RAGE_SPENDERS).map(Number)}, this._onSpenderCast) this.addHook('cast', {by: 'player', abilityId: ACTIONS.INFURIATE.id}, this._onInfuriateCast) this.addHook('combo', {by: 'player', abilityId: Object.keys(RAGE_GENERATORS).map(Number)}, this._onBuilderCast) this.addHook('complete', this._onComplete) } _addRage(abilityId) { // Adds rage directly from the RAGE_GENERATOR object, using the abilityId handle. this._rage += RAGE_GENERATORS[abilityId] // Checks if _rage is going above MAX_RAGE, and adds it to waste, then returns if it is. if (this._rage > MAX_RAGE) { const waste = this._rage - MAX_RAGE this._wastedRage += waste this._rage = MAX_RAGE return waste } return 0 } _onBuilderCast(event) { this._addRage(event.ability.guid) this._pushToGraph() } _onSpenderCast(event) { if (!this.combatants.selected.hasStatus(STATUSES.INNER_RELEASE.id)) { this._rage = Math.max(this._rage - RAGE_SPENDERS[event.ability.guid], 0) } // This pushes everytime a spender is used -- Even if under Inner Release. That makes the graph have multiple dots, meaning a spender was used each dot. // The whole point of this is to show when IR is being used. Might try using different colors for the dots depending on which ability // They were used on. // TODO: Check if coloring the dots differently per ability is possible. this._pushToGraph() } _onInfuriateCast(event) { this._addRage(event.ability.guid) this._pushToGraph() } _pushToGraph() { const timestamp = this.parser.currentTimestamp - this.parser.fight.start_time this._history.rage.push({t: timestamp, y: this._rage}) } _onDeath() { // Death just flat out resets everything. AND IT DOESN'T ADD DEATH TO GAUGE LOSS ANYMORE I'M SORRY this._rage = 0 this._pushToGraph() } _onComplete() { this.suggestions.add(new TieredSuggestion({ icon: ACTIONS.INFURIATE.icon, content: <Trans id="war.gauge.suggestions.lost-rage.content"> You used <ActionLink {...ACTIONS.STORMS_PATH}/>, <ActionLink {...ACTIONS.STORMS_EYE}/>, <ActionLink {...ACTIONS.INFURIATE}/>, or any gauge generators in a way that overcapped you. </Trans>, why: <Trans id="war.gauge.suggestions.lost-rage.why"> {this._wastedRage} rage wasted by using abilities that sent you over the cap. </Trans>, tiers: RAGE_USAGE_SEVERITY, value: this._wastedRage, })) } output() { const _rageColor = Color(JOBS.WARRIOR.colour) /* eslint-disable no-magic-numbers */ const data = { datasets: [ { label: 'Rage', steppedLine: true, data: this._history.rage, backgroundColor: _rageColor.fade(0.8), borderColor: _rageColor.fade(0.5), }, ], } return <TimeLineChart data={data} /> /* eslint-enable no-magic-numbers */ } }
28.953642
184
0.705627
a752d684142e3682b0d1a1b39198286023a0bec0
1,734
js
JavaScript
Models/Productos.js
JonnHenry/UDentalServer
8e5dc4bd1ed6bfcef437b98bc850a9bb8ef0c541
[ "Apache-2.0" ]
1
2021-07-13T00:19:42.000Z
2021-07-13T00:19:42.000Z
Models/Productos.js
JonnHenry/UDentalServer
8e5dc4bd1ed6bfcef437b98bc850a9bb8ef0c541
[ "Apache-2.0" ]
1
2021-06-06T04:16:47.000Z
2021-06-06T04:16:47.000Z
Models/Productos.js
JonnHenry/UDentalServer
8e5dc4bd1ed6bfcef437b98bc850a9bb8ef0c541
[ "Apache-2.0" ]
null
null
null
const DataTypes = require('sequelize/lib/data-types'); module.exports = function (sequelize) { const Productos = sequelize.define('productos', { id: { type: DataTypes.BIGINT, primaryKey: true, unique: true, allowNull: false }, nombre: { type: DataTypes.STRING, allowNull: false, onUpdate: 'CASCADE' }, descripcion: { type: DataTypes.STRING, allowNull: true, defaultValue: 'Ninguna', onUpdate: 'CASCADE' }, precio_unitario: { type: DataTypes.FLOAT, allowNull: false, onUpdate: 'CASCADE' }, categoria:{ type: DataTypes.ENUM('Equipo', 'Insumo', 'Instrumento'), allowNull: false, onUpdate: 'CASCADE' }, activo:{ type: DataTypes.BOOLEAN, allowNull: true, defaultValue: true }, stock: { type: DataTypes.INTEGER, allowNull: false }, fecha_creacion: { type: DataTypes.DATEONLY, defaultValue: DataTypes.NOW, allowNull: false }, fecha_actualizacion: { type: DataTypes.DATEONLY, defaultValue: DataTypes.NOW, onUpdate: true, allowNull: false } }, { indexes: [{ unique: false, fields: ['fecha_creacion','nombre'] } ], updatedAt: 'fecha_actualizacion', createdAt: 'fecha_creacion', modelName: 'productos', timestamps: false }); return Productos; }
27.09375
68
0.484429
a75324fad7597cedd87c33aef3f075c0e62c4df7
144
js
JavaScript
presets/clean/assets/js/scripts.js
tx0min/carrot
8be2dd9bbcdb80c836a50afbbd74b67874e47e82
[ "MIT" ]
null
null
null
presets/clean/assets/js/scripts.js
tx0min/carrot
8be2dd9bbcdb80c836a50afbbd74b67874e47e82
[ "MIT" ]
null
null
null
presets/clean/assets/js/scripts.js
tx0min/carrot
8be2dd9bbcdb80c836a50afbbd74b67874e47e82
[ "MIT" ]
null
null
null
(function($){ $(document).ready(function($){ // al("PRESET LOADED"); }); })(jQuery);
6.857143
33
0.340278
a754ba0172c4e545ef777695f92afb2adf90f506
820
js
JavaScript
app/src/App.js
Blockchain-zju/zjubca.denote
6cb58e9605acaf1584d34dd37e5236caa34a162f
[ "MIT" ]
3
2019-03-23T08:36:17.000Z
2019-06-12T05:26:15.000Z
app/src/App.js
Blockchain-zju/zjubca.denote
6cb58e9605acaf1584d34dd37e5236caa34a162f
[ "MIT" ]
1
2019-04-19T16:42:45.000Z
2019-04-20T00:54:58.000Z
app/src/App.js
Blockchain-zju/zjubca.denote
6cb58e9605acaf1584d34dd37e5236caa34a162f
[ "MIT" ]
2
2019-04-17T11:34:59.000Z
2020-02-25T09:00:55.000Z
import React, { Component } from 'react'; import './App.css'; import TopBar from './Component/TopBar/TopBar'; import StateBar from './Component/StateBar/StateBar'; import { HashRouter as Router, Route,Switch} from "react-router-dom"; import About from './Component/About/about'; import Redirects from './Component/Redirects/Redirects'; class App extends Component { constructor(props){ super(props); this.state={ page:0 } } render() { return ( <div className="App"> <Router> <TopBar/> <Switch> <Route exact path="/" component={Redirects}/> <Route exact path="/home" component={StateBar}/> <Route exact path="/about" component={About}/> </Switch> </Router> </div> ); } } export default App;
26.451613
69
0.602439
a7563fef9814545ff71dc9a3e71cbc6f7828d60c
1,140
js
JavaScript
packages/ext-web-components-demo-vue/src/components/SampleData.js
a4-data/a4-UI-EXT
ec16d056f5e768dd1d4ef0ada84aedb50629a6bb
[ "Apache-2.0", "MIT" ]
23
2019-05-02T19:30:52.000Z
2022-03-09T02:27:26.000Z
packages/ext-web-components-demo-vue/src/components/SampleData.js
a4-data/a4-UI-EXT
ec16d056f5e768dd1d4ef0ada84aedb50629a6bb
[ "Apache-2.0", "MIT" ]
13
2019-08-16T04:04:06.000Z
2019-08-23T21:35:03.000Z
packages/ext-web-components-demo-vue/src/components/SampleData.js
a4-data/a4-UI-EXT
ec16d056f5e768dd1d4ef0ada84aedb50629a6bb
[ "Apache-2.0", "MIT" ]
19
2019-05-07T12:21:07.000Z
2021-08-05T16:00:05.000Z
//this.gridCmp.setData(new SampleData(50).data) export class SampleData { data = [] numRecords constructor(numRecords) { this.numRecords = numRecords this.createFakeData(this.numRecords, this.data); } random(start, end) { return Math.floor(Math.random() * (end - start + 1) + start); } createFakeData(count, data) { var me = this; var firstNames = ['Nikki', 'Marc', 'Nick', 'Andy', 'Daniel'], lastNames = ['Jones', 'Smith', 'Johnson', 'Williams', 'Brown', 'Miller'], i; for (i = 0; i < (count || 25); i++) { var id = i + 1, firstName = firstNames[me.random(0, firstNames.length - 1)], lastName = lastNames[me.random(0, lastNames.length - 1)], name = Ext.String.format("{0} {1}", firstName, lastName), email = firstName.toLowerCase() + '.' + lastName.toLowerCase() + '@sentcha.com', phone = '(' + me.random(300, 600) + ')' + me.random(300, 600) + '-' + me.random(3000, 6000) data.push({ id: id, name: name, email: email, phone: phone }); } } }
35.625
107
0.537719
a756a883ab30e6f322fe0bcfd88153454ca8be80
717
js
JavaScript
js/newui.js
MikeDepies/d3playground
940e39dd0b351432377a5f0eda5270f0a4a4834a
[ "Apache-2.0" ]
null
null
null
js/newui.js
MikeDepies/d3playground
940e39dd0b351432377a5f0eda5270f0a4a4834a
[ "Apache-2.0" ]
null
null
null
js/newui.js
MikeDepies/d3playground
940e39dd0b351432377a5f0eda5270f0a4a4834a
[ "Apache-2.0" ]
null
null
null
var ui = jsml.ui; var chartFactory = jsml.ui.chart.factory(); var s = d3.select("svg"); var components = []; var xAxis = ui.chart.component.factory.axis(); xAxis.dom.attr.class = "x axis"; var yAxis = ui.chart.component.factory.axis(); yAxis.dom.attr.class = "y axis"; components.push(xAxis); components.push(yAxis); //console.log(components[0]); chart = chartFactory.createScatter(s, components); var cb = function (dataset) { dataset.label("Play"); var x = dataset()[0]; console.log(x); console.log(jsml.model.knn({ k: 10, data : dataset})(x)); } var rd = jsml.dataset.csvData({callback : cb, file : "data/data.csv"});//randomData(config);//generate random data from the configuration above. //test(s);
25.607143
144
0.688982
a7576d48e5b7c228e8bca98659a72f18fb224252
3,357
js
JavaScript
lib/httpSetup.js
alexandrufulop/ws
93b2e017a15a3c07689ddaa2e151d3b3b374e2c9
[ "MIT" ]
1
2017-09-21T08:09:32.000Z
2017-09-21T08:09:32.000Z
lib/httpSetup.js
alexandrufulop/ws
93b2e017a15a3c07689ddaa2e151d3b3b374e2c9
[ "MIT" ]
null
null
null
lib/httpSetup.js
alexandrufulop/ws
93b2e017a15a3c07689ddaa2e151d3b3b374e2c9
[ "MIT" ]
1
2021-10-10T04:59:16.000Z
2021-10-10T04:59:16.000Z
// override nodejs http/https request methods, for proxies const https = require("https"); const http = require("http"); const url = require("url"); const tunnel = require("./tunnelAgent"); const old_https_request = https.request; const old_http_request = http.request; var thisHttpSetup = null; // proxyUrl is http[s]://user:pass@host:port/ // if anyCert is true, rejectUnauthorized is set to false, including for https proxy server module.exports = (thisHttpSetup = { createHttpsAgent(options) { return new https.Agent(options); }, config(proxyUrl, anyCert) { let proxy; if (proxyUrl) { proxy = url.parse(proxyUrl); } if (!proxy && !anyCert) { return; } // nothing to do if (anyCert && !proxy) { https.request = function() { let options = arguments[0]; // if typeof options.agent == 'object' // options.agent.rejectUnauthorized = false if (typeof options === 'string') { options = url.parse(options); } options.rejectUnauthorized = false; // default to accept all ssl certificate return old_https_request.apply(undefined, Array.apply(null, arguments)); }; thisHttpSetup.createHttpsAgent = function(options) { options.rejectUnauthorized = false; return new https.Agent(options); }; return; } // use tunnel agent for https requests const _m = { 'https:': 'Https', 'http:': 'Http' }; const tunnelOptions = { proxy: { host: proxy.hostname, port: +proxy.port, proxyAuth: proxy.auth }, rejectUnauthorized: (anyCert ? false : true) }; const tunnelName = `httpsOver${_m[proxy.protocol]}`; thisHttpSetup.createHttpsAgent = function(options) { for (let k in tunnelOptions) { const v = tunnelOptions[k]; options[k] = v; } const ret = tunnel[tunnelName](options); return ret; }; const httpsAgent = tunnel[tunnelName](tunnelOptions); // must override default request() at the end, tunnel uses old impls https.request = function() { let options = arguments[0]; if (typeof options === 'string') { options = url.parse(options); arguments[0] = options; } if (anyCert) { options.rejectUnauthorized = false; } if (options.agent == null) { options.agent = httpsAgent; } return old_https_request.apply(undefined, Array.apply(null, arguments)); }; // for http request, no tunnel agent is used return http.request = function() { let options = arguments[0]; if (typeof options === 'string') { options = url.parse(options); arguments[0] = options; } // ensure Host header is set properly if (options.headers == null) { options.headers = {}; } if (!options.headers.Host) { options.headers.Host = `${options.hostname}`; if (options.port !== 80) { options.headers.Host += `:${options.port}`; } } // ensure path is full url path if (!/^http/.test(options.path)) { options.path = `http://${options.headers.Host}${options.path}`; } // override target to be proxy options.hostname = proxy.hostname; options.port = proxy.port; return old_http_request.apply(undefined, Array.apply(null, arguments)); }; } });
32.278846
91
0.614537
a757a3eb9c20f98f298d728826278df4cbc2d0c9
1,403
js
JavaScript
server/api/orders.js
gshop-jelly-toves/grace-shopper
c2f16be8c7d9f3613371ce70f5f579be4db8ee98
[ "MIT" ]
null
null
null
server/api/orders.js
gshop-jelly-toves/grace-shopper
c2f16be8c7d9f3613371ce70f5f579be4db8ee98
[ "MIT" ]
54
2018-10-29T20:49:37.000Z
2019-02-23T22:06:40.000Z
server/api/orders.js
gshop-jelly-toves/grace-shopper
c2f16be8c7d9f3613371ce70f5f579be4db8ee98
[ "MIT" ]
null
null
null
const router = require('express').Router() const { User, JellyOrder, Order, Jelly } = require('../db/models') const cartSession = require('./cartSession') // see /server/middlewares/user const { requireLogin, requireSeller, requireAdmin, requiredev } = require('../middlewares') module.exports = router //GET all orders for the session user ID router.get('/', requireLogin, async (req, res, next) => { try { const orders = await Order.findAll({ where: { userId: req.user.id } }) res.json(orders) } catch (e) { next(e) } }) //ADMIN ONLY //GET all orders router.get('/all', requireAdmin, async (req, res, next) => { try { const orders = await Order.findAll({ include: [{all: true }] }) res.json(orders) } catch (e) { next(e) } }) // include: [{model: JellyOrder}] router.get('/:orderId', requireAdmin, async (req, res, next) => { try { const order = await JellyOrder.findAll({ where: { orderId: req.params.orderId }, include: [{all: true }] }) res.json(order) } catch (e) { next(e) } }) router.put('/:orderId', requireAdmin, async (req, res, next) => { try { const order = await Order.findOne({ where: { id: req.params.orderId } }) order.update({ status: req.body.newOrderType }) res.json(order) } catch (e) { next(e) } })
18.959459
91
0.579473
a757cde4b2ebb660d4b5bef467c3d5941b4fdc91
5,204
js
JavaScript
js/node_modules/cli-box/node_modules/ansi-parser/lib/index.js
lasekmz/picquiz
21e46259906c7476764f68dbb7aa198d3ac6b24e
[ "MIT" ]
null
null
null
js/node_modules/cli-box/node_modules/ansi-parser/lib/index.js
lasekmz/picquiz
21e46259906c7476764f68dbb7aa198d3ac6b24e
[ "MIT" ]
null
null
null
js/node_modules/cli-box/node_modules/ansi-parser/lib/index.js
lasekmz/picquiz
21e46259906c7476764f68dbb7aa198d3ac6b24e
[ "MIT" ]
null
null
null
// Constructor var AnsiParser = module.exports = {}; /** * parse * Parses the string containing ANSI styles. * * @name parse * @function * @param {String} input The input string. * @return {Array} An array of object like below: * * ```js * [ * { * style: "\u00\u001b[1m\u001b[38;5;231", * content: "H" * }, * { * style: "\u00\u001b[1m\u001b[38;5;231", * content: "e" * }, * ... * ] * ``` */ AnsiParser.parse = function (input) { var i = 0; if (Array.isArray(input)) { var arr = []; for (i = 0; i < input.length; ++i) { arr.push(AnsiParser.parse(input[i])); } return arr; } if (typeof input !== "string") { throw new Error("Input is not a string."); } var noAnsi = AnsiParser.removeAnsi(input); if (input === noAnsi) { return input.split("").map(function (c) { return { style: "" , content: c }; }); } var result = [] , sIndex = 0 , cmatch , color = [] ; i = 0; while (sIndex < input.length) { cmatch = input.substr(sIndex).match(/^(\u001B\[[^m]*m)/); if (cmatch) { if (cmatch[0] == '\x1B[0m') { color = []; } else { if (/^\u001b\[38;5/.test(cmatch[0]) && /^\u001b\[38;5/.test(color.slice(-1)[0])) { color.splice(-1); } color.push(cmatch[0]); } sIndex += cmatch[0].length; } else { result.push({ style: color.join("") , content: noAnsi[i++] }); ++sIndex; } } return result; }; /** * getAtIndex * Returns the content and ANSI style at known index. * * @name getAtIndex * @function * @param {String} input The input string. * @param {String} noAnsi The input string without containing ansi styles. * @param {Number} index The character index. * @return {Object} An object containing the following fields: * * - `style` (String): The ANSI style at provided index. * - `content` (String): The content (character) at provided index. */ AnsiParser.getAtIndex = function (input, noAnsi, index) { if (typeof noAnsi === "number") { index = noAnsi; noAnsi = AnsiParser.removeAnsi(input); } if (input === noAnsi) { return { style: "" , content: noAnsi[index] }; } var sIndex = 0 , eIndex = index , color=[] , cmatch ; while (sIndex < input.length) { cmatch = input.substr(sIndex).match(/^(\u001B\[[^m]*m)/); if (cmatch) { if (cmatch[0] == '\x1B[0m') { color = []; } else { if (/^\u001b\[38;5/.test(cmatch[0]) && /^\u001b\[38;5/.test(color.slice(-1)[0])) { color.splice(-1); } color.push(cmatch[0]); } sIndex += cmatch[0].length; } else { if (!eIndex) { break; } ++sIndex; --eIndex; } } return { style: color.join("") , content: noAnsi[index] }; }; /** * removeAnsi * Removes ANSI styles from the input string. * * @name removeAnsi * @function * @param {String} input The input string. * @return {String} The string without ANSI styles. */ AnsiParser.removeAnsi = function (input) { return input.replace(/\u001b\[.*?m/g, ""); }; /** * stringify * Stringifies an array of objects in the format defined by `AnsiParser`. * * @name stringify * @function * @param {Array} arr The input array. * @return {String} The stringified input array. */ AnsiParser.stringify = function (arr) { var str = "" , cArr = null , i = 0 ; if (arr && Array.isArray(arr[0])) { for (; i < arr.length; ++i) { str += AnsiParser.stringify(arr[i]) + "\n"; } str = str.replace(/\n$/, ""); return str; } var lastStyle = "" , cStyle = "" , uStyle = "" ; for (; i < arr.length; ++i) { cArr = arr[i]; cStyle = cArr.style; if (cStyle === lastStyle) { uStyle = ""; } else { if (cStyle === "") { uStyle = "\u001b[0m"; lastStyle = ""; } else { uStyle = cStyle; lastStyle = cStyle; } } str += uStyle + cArr.content; if (cArr.content === "\n") { str += "\u001b[0m"; } } if (!/\u001b\[0m$/.test(str)) { str += "\u001b[0m"; } return str; }; /** * addChar * Adds a new char into array. * * @name addChar * @function * @param {Array} arr The input array. * @param {String} c The char to add. * @param {String} s ANSI start style. * @param {String} e ANSI end style. * @return {undefined} */ AnsiParser.addChar = function (arr, c, s, e) { arr.push({ start: s || "" , content: c , start: e || "" }); };
22.239316
98
0.466756
a7585140dbe3ee1f259b39f6a4d24e07c1ad8df9
334
js
JavaScript
client/src/content/WidgetPage/TableHeader.js
whizpool/inappfeedback
5b6aba77a40f5e54947cff94f87130dd00d069c5
[ "MIT" ]
null
null
null
client/src/content/WidgetPage/TableHeader.js
whizpool/inappfeedback
5b6aba77a40f5e54947cff94f87130dd00d069c5
[ "MIT" ]
1
2021-03-31T15:47:27.000Z
2021-04-08T16:29:03.000Z
client/src/content/WidgetPage/TableHeader.js
whizpool/inappfeedback
5b6aba77a40f5e54947cff94f87130dd00d069c5
[ "MIT" ]
1
2021-03-31T15:53:01.000Z
2021-03-31T15:53:01.000Z
export const columns = [ { id:0, header: 'Name', key: 'name', }, { id:1, header: 'Author', key: 'creater_name', }, { id:2, header: 'Type', key: 'type', }, { id:3, header: 'Created', key: 'createdAt', }, { id:4, header: 'Status', key: 'status', } ];
11.517241
24
0.419162
a759096453f2d3ba52d3655ea355aca91e15a0d0
487
js
JavaScript
src/actions/getAllPolls.js
AntonySarana/incode-Poll
c5cf531dc287b889ef050a5819d1515a194ebce7
[ "MIT" ]
null
null
null
src/actions/getAllPolls.js
AntonySarana/incode-Poll
c5cf531dc287b889ef050a5819d1515a194ebce7
[ "MIT" ]
null
null
null
src/actions/getAllPolls.js
AntonySarana/incode-Poll
c5cf531dc287b889ef050a5819d1515a194ebce7
[ "MIT" ]
null
null
null
import { GET_ALL_POLLS_REQUEST, GET_ALL_POLLS_SUCCESS } from './actionType.js' import axios from 'axios'; const apiUrl = 'http://localhost:3001/voters'; export function getAllPolls() { return (dispatch) => { return axios.get(apiUrl) .then(response => { dispatch(allPolls(response.data)) }) .catch(error => { throw(error); }); }; } export const allPolls = (payload) => { return { type: GET_ALL_POLLS_SUCCESS, payload, } };
18.730769
78
0.61807
a75944fb7799f81cd7f1e39537dd85defd10f0b4
4,402
js
JavaScript
Game/res/loading.js
AtelierFlame/WebGame00
da119223367d83bb4d6fb21ddfa27c4f15c630f1
[ "MIT-0", "MIT" ]
null
null
null
Game/res/loading.js
AtelierFlame/WebGame00
da119223367d83bb4d6fb21ddfa27c4f15c630f1
[ "MIT-0", "MIT" ]
null
null
null
Game/res/loading.js
AtelierFlame/WebGame00
da119223367d83bb4d6fb21ddfa27c4f15c630f1
[ "MIT-0", "MIT" ]
null
null
null
( function() { var createStyle=function() { return".cocosLoading{position:absolute;margin:-30px -60px;padding:0;top:50%;left:50%}"+ ".cocosLoading ul{margin:0;padding:0;}"+ ".cocosLoading span{color:#FFF;text-align:center;display:block;}"+ ".cocosLoading li{list-style:none;float:left;border-radius:15px;width:15px;height:15px;background:#FFF;margin:5px 0 0 10px}"+ ".cocosLoading li .ball,.cocosLoading li .unball{background-color:#2187e7;background-image:-moz-linear-gradient(90deg,#2187e7 25%,#a0eaff);background-image:-webkit-linear-gradient(90deg,#2187e7 25%,#a0eaff);width:15px;height:15px;border-radius:50px}"+ ".cocosLoading li .ball{transform:scale(0);-moz-transform:scale(0);-webkit-transform:scale(0);animation:showDot 1s linear forwards;-moz-animation:showDot 1s linear forwards;-webkit-animation:showDot 1s linear forwards}"+ ".cocosLoading li .unball{transform:scale(1);-moz-transform:scale(1);-webkit-transform:scale(1);animation:hideDot 1s linear forwards;-moz-animation:hideDot 1s linear forwards;-webkit-animation:hideDot 1s linear forwards}"+ "@keyframes showDot{0%{transform:scale(0,0)}100%{transform:scale(1,1)}}"+ "@-moz-keyframes showDot{0%{-moz-transform:scale(0,0)}100%{-moz-transform:scale(1,1)}}"+ "@-webkit-keyframes showDot{0%{-webkit-transform:scale(0,0)}100%{-webkit-transform:scale(1,1)}}"+ "@keyframes hideDot{0%{transform:scale(1,1)}100%{transform:scale(0,0)}}"+ "@-moz-keyframes hideDot{0%{-moz-transform:scale(1,1)}100%{-moz-transform:scale(0,0)}}"+ "@-webkit-keyframes hideDot{0%{-webkit-transform:scale(1,1)}100%{-webkit-transform:scale(0,0)}}" }; var createDom=function(id,num) { id=id||"cocosLoading"; num=num||5; var i,item; var div=document.createElement("div"); div.className="cocosLoading"; div.id=id; var bar=document.createElement("ul"); var list=[]; for(i=0;i<num;i++) { item=document.createElement("li"); list.push({ball:document.createElement("div"),halo:null}); item.appendChild(list[list.length-1].ball); bar.appendChild(item) } var span=document.createElement("span"); span.innerHTML="Loading"; div.appendChild(bar); div.appendChild(span); document.body.appendChild(div); return list }; var startAnimation=function(list,callback) { var index=0; var direction=true; var time=300; var animation=function() { setTimeout(function() { if(callback&&!callback()) {return} var item=list[index]; if(direction) { item.ball.className="ball" } else { item.ball.className="unball" } index++; if(index>=list.length) { direction=!direction; index=0; time=1000 } else {time=300} animation() }, time) }; animation() }; ( function() { var bgColor=document.body.style.background;document.body.style.background="#000"; var style=document.createElement("style"); style.type="text/css"; style.innerHTML=createStyle(); document.head.appendChild(style); var list=createDom(); startAnimation(list,function() { var div = document.getElementById("cocosLoading"); if (!div) { document.body.style.background = bgColor } return !!div }) } )() } )();
43.584158
267
0.502045
a75947f603d57c39cd6b5222913c52faf5cfe8b8
10,007
js
JavaScript
test/chords.js
gsouf/teoria
cdbf424be83e9c119299b255b8da96c19f09897d
[ "MIT" ]
null
null
null
test/chords.js
gsouf/teoria
cdbf424be83e9c119299b255b8da96c19f09897d
[ "MIT" ]
null
null
null
test/chords.js
gsouf/teoria
cdbf424be83e9c119299b255b8da96c19f09897d
[ "MIT" ]
null
null
null
var vows = require('vows'), assert = require('assert'), teoria = require('../'); // Utility function function simpleArray(chord) { return chord.notes().map(function(n) { return n.toString(true); }); } vows.describe('Chords').addBatch({ 'Chord parser': { 'Emaj7': function() { var notes = simpleArray(teoria.chord('Emaj7')); assert.deepEqual(notes, ['e', 'g#', 'b', 'd#']); }, 'A+': function() { var notes = simpleArray(teoria.chord('A+')); assert.deepEqual(notes, ['a', 'c#', 'e#']); }, 'Bb+': function() { var notes = simpleArray(teoria.chord('Bb+')); assert.deepEqual(notes, ['bb', 'd', 'f#']); }, 'F#maj7': function() { var notes = simpleArray(teoria.chord('F#maj7')); assert.deepEqual(notes, ['f#', 'a#', 'c#', 'e#']); }, 'Hmaj7': function() { var notes = simpleArray(teoria.chord('Hmaj7')); assert.deepEqual(notes, ['b', 'd#', 'f#', 'a#']); }, 'H#maj7': function() { var notes = simpleArray(teoria.chord('H#maj7')); assert.deepEqual(notes, ['b#', 'dx', 'fx', 'ax']); }, 'C7b5': function() { var notes = simpleArray(teoria.chord('C7b5')); assert.deepEqual(notes, ['c', 'e', 'gb', 'bb']); }, 'Eb7b5': function() { var notes = simpleArray(teoria.chord('Eb7b5')); assert.deepEqual(notes, ['eb', 'g', 'bbb', 'db']); }, 'D#7b5': function() { var notes = simpleArray(teoria.chord('D#7b5')); assert.deepEqual(notes, ['d#', 'fx', 'a', 'c#']); }, 'C9': function() { var notes = simpleArray(teoria.chord('C9')); assert.deepEqual(notes, ['c', 'e', 'g', 'bb', 'd']); }, 'Eb9': function() { var notes = simpleArray(teoria.chord('Eb9')); assert.deepEqual(notes, ['eb', 'g', 'bb', 'db', 'f']); }, 'G#(#9)': function() { var notes = simpleArray(teoria.chord('G#(#9)')); assert.deepEqual(notes, ['g#', 'b#', 'd#', 'f#', 'ax']); }, 'Ab(b9)': function() { var notes = simpleArray(teoria.chord('Ab(b9)')); assert.deepEqual(notes, ['ab', 'c', 'eb', 'gb', 'bbb']); }, 'F#(#11)': function() { var notes = simpleArray(teoria.chord('F#(#11)')); assert.deepEqual(notes, ['f#', 'a#', 'c#', 'e', 'g#', 'b#']); }, 'Ab13': function() { var notes = simpleArray(teoria.chord('Ab13')); assert.deepEqual(notes, ['ab', 'c', 'eb', 'gb', 'bb', 'db', 'f']); }, 'C7sus4': function() { var notes = simpleArray(teoria.chord('C7sus4')); assert.deepEqual(notes, ['c', 'f', 'g', 'bb']); }, 'Cmaj9': function() { var notes = simpleArray(teoria.chord('Cmaj9')); assert.deepEqual(notes, ['c', 'e', 'g', 'b', 'd']); }, 'Dmb6': function() { var notes = simpleArray(teoria.chord('Dmb6')); assert.deepEqual(notes, ['d', 'f', 'a', 'bb']); }, 'C#(#5#9)': function() { var notes = simpleArray(teoria.chord('C#(#5#9)')); assert.deepEqual(notes, ['c#', 'e#', 'gx', 'b', 'dx']); }, 'Cm(maj7)': function() { var notes = simpleArray(teoria.chord('Cm(maj7)')); assert.deepEqual(notes, ['c', 'eb', 'g', 'b']); }, 'F#m(11b5b9)': function() { var notes = simpleArray(teoria.chord('F#m(11b5b9)')); assert.deepEqual(notes, ['f#', 'a', 'c', 'e', 'g', 'b']); }, 'C/e': function() { var notes = simpleArray(teoria.chord('C/e')); assert.deepEqual(notes, ['e', 'c', 'g']); }, 'A7/g': function() { var notes = simpleArray(teoria.chord('A7/g')); assert.deepEqual(notes, ['g', 'a', 'c#', 'e']); }, 'G/f#': function() { var notes = simpleArray(teoria.chord('G/f#')); assert.deepEqual(notes, ['f#', 'g', 'b', 'd']); }, 'C6': function() { var notes = simpleArray(teoria.chord('C6')); assert.deepEqual(notes, ['c', 'e', 'g', 'a']); }, 'A#6': function() { var notes = simpleArray(teoria.chord('A#6')); assert.deepEqual(notes, ['a#', 'cx', 'e#', 'fx']); }, 'Bb6': function() { var notes = simpleArray(teoria.chord('Bb6')); assert.deepEqual(notes, ['bb', 'd', 'f', 'g']); }, 'Am6': function() { var notes = simpleArray(teoria.chord('Am6')); assert.deepEqual(notes, ['a', 'c', 'e', 'f#']); }, 'D(#6)': function() { var notes = simpleArray(teoria.chord('D(#6)')); assert.deepEqual(notes, ['d', 'f#', 'a', 'b#']); }, 'Eo': function() { var notes = simpleArray(teoria.chord('Eo')); assert.deepEqual(notes, ['e', 'g', 'bb']); }, 'Eø': function() { var notes = simpleArray(teoria.chord('Eø')); assert.deepEqual(notes, ['e', 'g', 'bb', 'd']); }, 'Do': function() { var notes = simpleArray(teoria.chord('Do')); assert.deepEqual(notes, ['d', 'f', 'ab']); }, 'Dø': function() { var notes = simpleArray(teoria.chord('Dø')); assert.deepEqual(notes, ['d', 'f', 'ab', 'c']); }, 'Fo7': function() { var notes = simpleArray(teoria.chord('Fo7')); assert.deepEqual(notes, ['f', 'ab', 'cb', 'ebb']); }, 'G#ø7': function() { var notes = simpleArray(teoria.chord('G#ø7')); assert.deepEqual(notes, ['g#', 'b', 'd', 'f#']); }, 'Cmin': function() { var notes = simpleArray(teoria.chord('Cmin')); assert.deepEqual(notes, ['c', 'eb', 'g']); }, 'Bmin11': function() { var notes = simpleArray(teoria.chord('Bmin11')); assert.deepEqual(notes, ['b', 'd', 'f#', 'a', 'c#', 'e']); }, 'C+M7': function() { var notes = simpleArray(teoria.chord('C+M7')); assert.deepEqual(notes, ['c', 'e', 'g#', 'b']); }, 'Bbdom7b5': function() { var notes = simpleArray(teoria.chord('Bbdom7b5')); assert.deepEqual(notes, ['bb', 'd', 'fb', 'ab']); }, 'E5': function() { var notes = simpleArray(teoria.chord('E5')); assert.deepEqual(notes, ['e', 'b']); }, 'A5': function() { var notes = simpleArray(teoria.chord('A5')); assert.deepEqual(notes, ['a', 'e']); }, 'C13#9b5': function() { var notes = simpleArray(teoria.chord('C13#9b5')); assert.deepEqual(notes, ['c', 'e', 'gb', 'bb', 'd#', 'f', 'a']); }, 'D13#5b9': function() { var notes = simpleArray(teoria.chord('D13#5b9')); assert.deepEqual(notes, ['d', 'f#', 'a#', 'c', 'eb', 'g', 'b']); }, 'C6/9': function() { var notes = simpleArray(teoria.chord('C6/9')); assert.deepEqual(notes, ['c', 'e', 'g', 'a', 'd']); }, 'Ab6/9': function() { var notes = simpleArray(teoria.chord('Ab6/9')); assert.deepEqual(notes, ['ab', 'c', 'eb', 'f', 'bb']); }, 'CM7': function() { var notes = simpleArray(teoria.chord('CM7')); assert.deepEqual(notes, ['c', 'e', 'g', 'b']); }, 'CmM7': function() { var notes = simpleArray(teoria.chord('CmM7')); assert.deepEqual(notes, ['c', 'eb', 'g', 'b']); }, 'DM': function() { var notes = simpleArray(teoria.chord('DM')); assert.deepEqual(notes, ['d', 'f#', 'a']); }, 'EM#5': function() { var notes = simpleArray(teoria.chord('EM#5')); assert.deepEqual(notes, ['e', 'g#', 'b#']); }, 'FM9': function() { var notes = simpleArray(teoria.chord('FM9')); assert.deepEqual(notes, ['f', 'a', 'c', 'e', 'g']); }, 'Dmi': function() { var notes = simpleArray(teoria.chord('Dmi')); assert.deepEqual(notes, ['d', 'f', 'a']); }, 'Emi7': function() { var notes = simpleArray(teoria.chord('Emi7')); assert.deepEqual(notes, ['e', 'g', 'b', 'd']); }, 'Dma': function() { var notes = simpleArray(teoria.chord('Dma')); assert.deepEqual(notes, ['d', 'f#', 'a']); }, 'Ema9': function() { var notes = simpleArray(teoria.chord('Ema9')); assert.deepEqual(notes, ['e', 'g#', 'b', 'd#', 'f#']); } }, 'Case doesn\'t matter': { 'BbDom': function() { assert.deepEqual( simpleArray(teoria.chord('BbDom')), simpleArray(teoria.chord('Bbdom')) ); }, 'EbMaj9': function() { assert.deepEqual( simpleArray(teoria.chord('EbMaj9')), simpleArray(teoria.chord('Ebmaj9')) ); }, 'ASus4': function() { assert.deepEqual( simpleArray(teoria.chord('ASus4')), simpleArray(teoria.chord('Asus4')) ); }, 'EAdd9': function() { assert.deepEqual( simpleArray(teoria.chord('EAdd9')), simpleArray(teoria.chord('Eadd9')) ); } }, 'Chord Methods': { '#bass of Cmaj7': function() { assert.equal(teoria.chord('Cmaj7').bass().toString(true), 'c'); }, '#bass of A/C#': function() { assert.equal(teoria.chord('A/C#').bass().toString(true), 'c#'); }, '#bass of D6/9': function() { assert.equal(teoria.chord('D6/9').bass().toString(true), 'd'); }, '#quality() of Bmaj7': function() { assert.equal(teoria.chord('Bmaj7').quality(), 'major'); }, '#quality() of E7': function() { assert.equal(teoria.chord('E7').quality(), 'dominant'); }, '#quality() of Dbm7b5': function() { assert.equal(teoria.chord('Dbm7b5').quality(), 'half-diminished'); }, '#quality() of Cmin11': function() { assert.equal(teoria.chord('Cmin11').quality(), 'minor'); }, '#quality() of A+': function() { assert.equal(teoria.chord('A+').quality(), 'augmented'); }, '#quality() of A#(b13)': function() { assert.equal(teoria.chord('A#(b13)').quality(), 'dominant'); }, '#quality() of Gmb5': function() { assert.equal(teoria.chord('Gmb5').quality(), 'diminished'); }, '#quality() of Asus4': function() { assert.equal(teoria.chord('Asus4').quality(), undefined); }, '#quality() of Fm#5': function() { assert.equal(teoria.chord('Fm#5').quality(), 'minor'); }, } }).export(module);
27.491758
72
0.507445
a75b221b7726fc9c447aa18a489c683601f699f0
406
js
JavaScript
src/routes/components/dashboard/Title.js
Polina10034/lobassa_client
f0c276fe49dce34861202aa66efa4541fdcb250b
[ "MIT" ]
null
null
null
src/routes/components/dashboard/Title.js
Polina10034/lobassa_client
f0c276fe49dce34861202aa66efa4541fdcb250b
[ "MIT" ]
null
null
null
src/routes/components/dashboard/Title.js
Polina10034/lobassa_client
f0c276fe49dce34861202aa66efa4541fdcb250b
[ "MIT" ]
null
null
null
import React from 'react'; import PropTypes from 'prop-types'; import Typography from '@material-ui/core/Typography'; export default function Title(props) { return ( <Typography component="h2" variant="h6" gutterBottom style={{backgroundColor: "rgba(58,105,176,0.94)", color:"white"}}> {props.children} </Typography> ); } Title.propTypes = { children: PropTypes.node, };
27.066667
124
0.674877
a75b5fc6372aa64d1ea804692fba59f77e38ccee
5,070
js
JavaScript
src/tree-walker.js
lexmihaylov/XSDOMParser
b68ab6b196f1b7e250d4a7437d16b01db2aa129e
[ "MIT" ]
null
null
null
src/tree-walker.js
lexmihaylov/XSDOMParser
b68ab6b196f1b7e250d4a7437d16b01db2aa129e
[ "MIT" ]
null
null
null
src/tree-walker.js
lexmihaylov/XSDOMParser
b68ab6b196f1b7e250d4a7437d16b01db2aa129e
[ "MIT" ]
null
null
null
class NodeFilter { static get FILTER_ACCEPT() { return 1; } static get FILTER_REJECT() { return 2; } static get FILTER_SKIP() { return 3; } static get SHOW_ALL() { return 4294967295; } static get SHOW_ELEMENT() { return 1; } static get SHOW_ATTRIBUTE() { return 2; } static get SHOW_TEXT() { return 4; } static get SHOW_CDATA_SECTION() { return 8; } static get SHOW_ENTITY_REFERENCE() { return 16; } static get SHOW_ENTITY() { return 32; } static get SHOW_PROCESSING_INSTRUCTION() { return 64; } static get SHOW_COMMENT() { return 128; } static get SHOW_DOCUMENT() { return 256; } static get SHOW_DOCUMENT_TYPE() { return 512; } static get SHOW_DOCUMENT_FRAGMENT() { return 1024; } static get SHOW_NOTATION() { return 2048; } } class TreeWalker { constructor(root, whatToShow, filter) { this._ = {}; this._filter = filter; this._root = root; this._whatToShow = whatToShow; this._flatTree = []; this._iterator = -1; this._reducer(); } get filter() { return this._filter; } get root() { return this._root; } get whatToShow() { return this._whatToShow; } get currentNode() { return this._flatTree[this._iterator] || null; } _listFilter(item) { if(!this._filter || this._filter.acceptNode(item) == NodeFilter.FILTER_ACCEPT) { return 0; } if(this._filter.acceptNode(item) == NodeFilter.FILTER_SKIP) { return 1; } if(this._filter.acceptNode(item) == NodeFilter.FILTER_REJECT) { return -1; } } _shouldShowItem(item) { if(this._listFilter(item) == 0) { return true; } else { return false; } } _reducer() { let reducer = (list, item) => { let filterType = this._listFilter(item); if (filterType === 0) if (this._whatToShow == NodeFilter.SHOW_ALL) { list.push(item); } else if (this._whatToShow == NodeFilter.SHOW_ELEMENT && item.nodeType == 1) { list.push(item); } else if (this._whatToShow == NodeFilter.SHOW_TEXT && item.nodeType == 3) { list.push(item); } else if (this._whatToShow == NodeFilter.SHOW_CDATA_SECTION && item.nodeType == 4) { list.push(item); } else if (this._whatToShow == NodeFilter.SHOW_COMMENT && item.nodeType == 8) { list.push(item); } if (filterType !== -1) item.childNodes.reduce(reducer, list); return list; }; this._flatTree = [this._root].reduce(reducer, []); } parentNode() { let parent = this.currentNode.parentNode; let index = this._flatTree.indexOf(parent); if (index !== -1) { this._iterator = index; return parent; } return null; } firstChild() { let node = this.currentNode; for(let i = 0; i < node.childNodes.length; i++) { let index = this._flatTree.indexOf(node.childNodes[i]); if (index !== -1) { this._iterator = index; return node.childNodes[i]; } } return null; } lastChild() { let node = this.currentNode; for(let i = node.childNodes.length - 1; i >= 0; i--) { let index = this._flatTree.indexOf(node.childNodes[i]); if (index !== -1) { this._iterator = index; return node.childNodes[i]; } } return null; } previousSibling() { let node = this.currentNode; while((node = node.previousSibling)) { let index = this._flatTree.indexOf(node); if(index !== -1) { this._iterator = index; return node; } } return null; } nextSibling() { let node = this.currentNode; while((node = node.nextSibling)) { let index = this._flatTree.indexOf(node); if(index !== -1) { this._iterator = index; return node; } } return null; } nextNode() { if(this._iterator == this._flatTree.length) { return null; } this._iterator++; return this.currentNode; } previousNode() { if(this._iterator == -1) { return null; } this._iterator--; return this.currentNode; } } module.exports = { TreeWalker: TreeWalker, NodeFilter: NodeFilter };
27.258065
88
0.490927
a75bbaff38e6d237126aca146ba7196902d7998a
1,101
js
JavaScript
src/store/user/actions.js
thombruce/railgun
4c48c2afcaa5c32a27034afe6f187779f60e0682
[ "MIT" ]
null
null
null
src/store/user/actions.js
thombruce/railgun
4c48c2afcaa5c32a27034afe6f187779f60e0682
[ "MIT" ]
1
2021-01-27T01:59:25.000Z
2021-01-27T01:59:25.000Z
src/store/user/actions.js
thombruce/railgun
4c48c2afcaa5c32a27034afe6f187779f60e0682
[ "MIT" ]
null
null
null
import router from '@/router' import { gun, user } from '@/gun' const actions = { login ({ commit }, { username, password }) { commit('clearErrors') user.auth(username, password, (ack) => { if (!ack.err) router.push({ name: 'Documents' }) }) }, create ({ commit, dispatch }, { username, password }) { commit('clearErrors') gun.get('~@' + username).once((data) => { if (!data) { user.create(username, password, (ack) => { if (!ack.err) dispatch('login', { username, password }) }) } else { commit('addError', { username: 'User already exists' }) } }) }, update ({ commit }, { username, password, newPassword }) { commit('clearErrors') user.auth(username, password, (ack) => { if (!ack.err) router.push({ name: 'Documents' }) }, { change: newPassword }) }, logout ({ commit, dispatch }) { commit('clearErrors') user.leave() if (!user._.sea) { dispatch('documents/empty', null, { root: true }) router.push({ name: 'Login' }) } } } export default actions
25.022727
65
0.550409
a75bcb684abaa9af4e0cff0b51dd0d7b0714c86c
391
js
JavaScript
build/html/search/all_13.js
KPO-2020-2021/zad5_3-AdamDomachowski
1d3e1af48e948989937a9cdb206198b7de32f428
[ "Unlicense" ]
null
null
null
build/html/search/all_13.js
KPO-2020-2021/zad5_3-AdamDomachowski
1d3e1af48e948989937a9cdb206198b7de32f428
[ "Unlicense" ]
null
null
null
build/html/search/all_13.js
KPO-2020-2021/zad5_3-AdamDomachowski
1d3e1af48e948989937a9cdb206198b7de32f428
[ "Unlicense" ]
null
null
null
var searchData= [ ['x_172',['x',['../class_pz_g_1_1_wektor2f.html#aacbc07ae23c748a3378c09353b0b3c4c',1,'PzG::Wektor2f']]], ['xmax_173',['Xmax',['../class_pz_g_1_1_lacze_do_g_n_u_plota.html#a8e23479629af3df3d352b7839ae396b8',1,'PzG::LaczeDoGNUPlota']]], ['xmin_174',['Xmin',['../class_pz_g_1_1_lacze_do_g_n_u_plota.html#a66836c9749bf179420e4ca3e9447efd7',1,'PzG::LaczeDoGNUPlota']]] ];
55.857143
131
0.759591
a75c27bc00fe874ab6654f8950c1c92543e89285
23,353
js
JavaScript
src/knockout/dotnetify.router.js
lrhmx/dotNetify
17e064773368ada515b8c97d32f6a6022507d9e9
[ "Apache-2.0" ]
null
null
null
src/knockout/dotnetify.router.js
lrhmx/dotNetify
17e064773368ada515b8c97d32f6a6022507d9e9
[ "Apache-2.0" ]
null
null
null
src/knockout/dotnetify.router.js
lrhmx/dotNetify
17e064773368ada515b8c97d32f6a6022507d9e9
[ "Apache-2.0" ]
1
2020-01-22T12:55:39.000Z
2020-01-22T12:55:39.000Z
/* Copyright 2015-2017 Dicky Suryadi 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. */ // Support using AMD or CommonJS that loads our app.js, or being placed in <script> tag. (function (factory) { if (typeof define === "function" && define["amd"]) { define(['jquery', 'knockout', 'dotnetify'], factory); } else if (typeof exports === "object" && typeof module === "object") { module.exports = factory(require('jquery'), require('knockout'), require('dotnetify')); } else { factory(jQuery, ko, dotnetify); } } (function ($, ko, dotnetify) { // PathJS. Need this specific version, because latest version is causing issue. var Path = { version: "0.8.4", map: function (a) { if (Path.routes.defined.hasOwnProperty(a)) { return Path.routes.defined[a] } else { return new Path.core.route(a) } }, root: function (a) { Path.routes.root = a }, rescue: function (a) { Path.routes.rescue = a }, history: { initial: {}, pushState: function (a, b, c) { if (Path.history.supported) { if (Path.dispatch(c)) { history.pushState(a, b, c) } } else { if (Path.history.fallback) { window.location.hash = "#" + c } } }, popState: function (a) { var b = !Path.history.initial.popped && location.href == Path.history.initial.URL; Path.history.initial.popped = true; if (b) return; Path.dispatch(document.location.pathname) }, listen: function (a) { Path.history.supported = !!(window.history && window.history.pushState); Path.history.fallback = a; if (Path.history.supported) { Path.history.initial.popped = "state" in window.history, Path.history.initial.URL = location.href; window.onpopstate = Path.history.popState } else { if (Path.history.fallback) { for (route in Path.routes.defined) { if (route.charAt(0) != "#") { Path.routes.defined["#" + route] = Path.routes.defined[route]; Path.routes.defined["#" + route].path = "#" + route } } Path.listen() } } } }, match: function (a, b) { var c = {}, d = null, e, f, g, h, i; for (d in Path.routes.defined) { if (d !== null && d !== undefined) { d = Path.routes.defined[d]; e = d.partition(); for (h = 0; h < e.length; h++) { f = e[h]; i = a; if (f.search(/:/) > 0) { for (g = 0; g < f.split("/").length; g++) { if (g < i.split("/").length && f.split("/")[g].charAt(0) === ":") { c[f.split("/")[g].replace(/:/, "")] = i.split("/")[g]; i = i.replace(i.split("/")[g], f.split("/")[g]) } } } if (f === i) { if (b) { d.params = c } return d } } } } return null }, dispatch: function (a) { var b, c; if (Path.routes.current !== a) { Path.routes.previous = Path.routes.current; Path.routes.current = a; c = Path.match(a, true); if (Path.routes.previous) { b = Path.match(Path.routes.previous); if (b !== null && b.do_exit !== null) { b.do_exit() } } if (c !== null) { c.run(); return true } else { if (Path.routes.rescue !== null) { Path.routes.rescue() } } } }, listen: function () { var a = function () { Path.dispatch(location.hash) }; if (location.hash === "") { if (Path.routes.root !== null) { location.hash = Path.routes.root } } if ("onhashchange" in window && (!document.documentMode || document.documentMode >= 8)) { window.onhashchange = a } else { setInterval(a, 50) } if (location.hash !== "") { Path.dispatch(location.hash) } }, core: { route: function (a) { this.path = a; this.action = null; this.do_enter = []; this.do_exit = null; this.params = {}; Path.routes.defined[a] = this } }, routes: { current: null, root: null, rescue: null, previous: null, defined: {} } }; Path.core.route.prototype = { to: function (a) { this.action = a; return this }, enter: function (a) { if (a instanceof Array) { this.do_enter = this.do_enter.concat(a) } else { this.do_enter.push(a) } return this }, exit: function (a) { this.do_exit = a; return this }, partition: function () { var a = [], b = [], c = /\(([^}]+?)\)/g, d, e; while (d = c.exec(this.path)) { a.push(d[1]) } b.push(this.path.split("(")[0]); for (e = 0; e < a.length; e++) { b.push(b[b.length - 1] + a[e]) } return b }, run: function () { var a = false, b, c, d; if (Path.routes.defined[this.path].hasOwnProperty("do_enter")) { if (Path.routes.defined[this.path].do_enter.length > 0) { for (b = 0; b < Path.routes.defined[this.path].do_enter.length; b++) { c = Path.routes.defined[this.path].do_enter[b](); if (c === false) { a = true; break } } } } if (!a) { Path.routes.defined[this.path].action() } } } // Add plugin functions. dotnetify.router = { version: "1.1.3", // URL path that will be parsed when performing routing. urlPath: document.location.pathname, // Initialize routing using PathJS. init: function () { if (typeof Path !== "undefined") { Path.history.listen(true); Path.routes.rescue = function () { window.location.replace(document.location.pathname); }; } else throw new Error("Pathjs library is required for routing."); }, // Map a route to an action. mapTo: function (iPath, iFn) { if (typeof Path !== "undefined") Path.map(iPath).to(function () { iFn(this.params) }); }, // Match a URL path to a route and run the action. match: function (iUrlPath) { if (typeof Path !== "undefined") { var matched = Path.match(iUrlPath, true); if (matched != null) { matched.run(); return true; } } return false; }, // Optional callback to override a URL before performing routing. overrideUrl: function (iUrl) { return iUrl }, // Push state to HTML history. pushState: function (iState, iTitle, iPath) { dotnetify.router.urlPath = ""; if (typeof Path !== "undefined") Path.history.pushState(iState, iTitle, iPath); }, // Redirect to the a URL. redirect: function (iUrl) { // Check first whether existing views can handle routing this URL. // Otherwise, do a hard browser redirect. dotnetify.router.urlPath = iUrl; var vmElements = $("[data-vm]"); for (j = 0; j < vmElements.length; j++) { var widget = dotnetify.widget(vmElements[j]); if (widget != null && widget.VM.$router.routeUrl()) return; } window.location.replace(iUrl); }, // Called by dotNetify when a view model is ready. $ready: function () { this.$router.initRouting(); } } // Inject a view model with functions. dotnetify.router.$inject = function (iVM) { // Put functions inside $router namespace. iVM["$router"] = (function (iScope) { var utils = (function () { return { // Trim slashes from start and end of string. trim: function (iStr) { if (typeof iStr !== "string") return ""; while (iStr.indexOf("/", iStr.length - 1) >= 0) iStr = iStr.substr(0, iStr.length - 1); while (iStr.indexOf("/") == 0) iStr = iStr.substr(1, iStr.length - 1); return iStr; }, // Match two strings case-insensitive. equal: function (iStr1, iStr2) { return iStr1 != null && iStr2 != null && iStr1.toLowerCase() == iStr2.toLowerCase() }, // Whether the string starts or ends with a value. startsWith: function (iStr, iValue) { return iStr.toLowerCase().slice(0, iValue.length) == iValue.toLowerCase() }, endsWith: function (iStr, iValue) { return iValue == '' || iStr.toLowerCase().slice(-iValue.length) == iValue.toLowerCase(); } } })(); return { // Build the absolute root path from the "data-vm-root" attribute. initRoot: function () { var vm = this; if (!vm.hasOwnProperty("RoutingState") || typeof vm.RoutingState.Root !== "function") return; if (vm.$router._absRoot != vm.RoutingState.Root()) { var absRoot = utils.trim(vm.$element.attr("data-vm-root")); if (absRoot != "") absRoot = "/" + absRoot; var root = utils.trim(vm.RoutingState.Root()); vm.$router._absRoot = root != "" ? absRoot + "/" + root : absRoot; vm.RoutingState.Root(vm.$router._absRoot); } }.bind(iScope), // Initialize routing templates if the view model implements IRoutable. initRouting: function () { var vm = this; if (!vm.hasOwnProperty("RoutingState") || typeof vm.RoutingState.Templates !== "function") return; var templates = vm.RoutingState.Templates(); if (templates == null) return; // Initialize the router. if (!dotnetify.router.$init) { dotnetify.router.init(); dotnetify.router.$init = true; } // Build the absolute root path. vm.$router.initRoot(); $.each(templates, function (idx, template) { var mapUrl = vm.$router.toUrl(template.UrlPattern()); if (dotnetify.debug) console.log("router> map " + mapUrl + " to template id=" + template.Id()); dotnetify.router.mapTo(mapUrl, function (iParams) { dotnetify.router.urlPath = ""; // Construct the path from the template pattern and the params passed by PathJS. var path = template.UrlPattern(); for (param in iParams) path = path.replace(":" + param, iParams[param]); path = path.replace(/\(\/:([^)]+)\)/g, "").replace(/\(|\)/g, ""); vm.$router.routeTo(path, template); }); }); // Route initial URL. var activeUrl = vm.$router.toUrl(vm.RoutingState.Active()); if (dotnetify.router.urlPath == "") dotnetify.router.urlPath = activeUrl; vm.$router.routeUrl(); }.bind(iScope), // Whether a route is active. isActive: function (iRoute) { if (iRoute != null && iRoute.hasOwnProperty("Path") && typeof iRoute.Path === "function") return utils.equal(iRoute.Path(), this.RoutingState.Active()); return false; }.bind(iScope), // Loads a view into a target element. // Method parameters: TargetSelector, ViewUrl, iJsModuleUrl, iVmArg, iCallbackFn loadView: function (iTargetSelector, iViewUrl, iJsModuleUrl, iVmArg, iCallbackFn) { var vm = this; // If no view URL is given, empty the target DOM element. if (iViewUrl == null || iViewUrl == "") { $(iTargetSelector).empty(); return; } var callbackFn = function () { // If the view model supports routing, add the root path to the view, to be used // to build the absolute route path, and view model argument if provided. if (vm.hasOwnProperty("RoutingState") && typeof vm.RoutingState.Root === "function") $.each($(this).find("[data-vm]"), function (idx, element) { var root = $(element).attr("data-vm-root"); root = root != null ? "/" + utils.trim(vm.RoutingState.Root()) + "/" + utils.trim(root) : vm.RoutingState.Root(); $(element).attr("data-vm-root", root); if (iVmArg != null && !$.isEmptyObject(iVmArg)) { // If there's already a data-vm-arg, combine the values. // Take care not to override server-side routing arguments. var vmArg = $(element).attr("data-vm-arg"); vmArg = vmArg != null ? $.extend(iVmArg, $.parseJSON(vmArg.replace(/'/g, "\""))) : iVmArg; $(element).attr("data-vm-arg", JSON.stringify(vmArg)); } }); // Call the callback function. if (typeof iCallbackFn === "function") iCallbackFn.apply(this); }; // Provide the opportunity to override the URL. iViewUrl = dotnetify.router.overrideUrl(iViewUrl); vm.$loadView(iTargetSelector, iViewUrl, iJsModuleUrl, iVmArg, callbackFn); }.bind(iScope), // Routes to a path. manualRouteTo: function (iPath, iTarget, iViewUrl, iJSModuleUrl) { var template = {}; template.Target = function () { return iTarget } template.ViewUrl = function () { return iViewUrl } template.JSModuleUrl = function () { return iJSModuleUrl } this.$router.routeTo(iPath, template, true); }.bind(iScope), // Routes to a path. routeTo: function (iPath, iTemplate, iDisableEvent) { var vm = this; if (dotnetify.debug) console.log("router> route '" + iPath + "' to template id=" + iTemplate.Id()); // We can determine whether the view has already been loaded by matching the 'RoutingState.Origin' argument // on the existing view model inside that target selector with the path. var vmArg = $("#" + iTemplate.Target() + " [data-vm-arg]").attr("data-vm-arg"); if (vmArg != null) { vmArg = $.parseJSON(vmArg.replace(/'/g, "\"")); if (typeof vmArg["RoutingState.Origin"] === "string" && utils.equal(vmArg["RoutingState.Origin"], iPath)) return; } // Support enter interception. if (iDisableEvent != true && vm.hasOwnProperty("onRouteEnter")) if (vm.onRouteEnter(iPath, iTemplate) == false) return; // If target DOM element isn't found, redirect URL to the path. if ($("#" + iTemplate.Target()).length == 0) return dotnetify.router.redirect(vm.$router.toUrl(iPath)); // Load the view associated with the route asynchronously. vm.$router.loadView("#" + iTemplate.Target(), iTemplate.ViewUrl(), iTemplate.JSModuleUrl(), { "RoutingState.Origin": iPath }, function () { // If load is successful, update the active route. vm.RoutingState.Active(iPath); // Support exit interception. if (iDisableEvent != true && vm.hasOwnProperty("onRouteExit")) vm.onRouteExit(iPath, iTemplate); }.bind(vm)); }.bind(iScope), // Routes the URL if the view model implements IRoutable. // Returns true if the view model handles the routing. routeUrl: function () { var vm = this; if (!vm.hasOwnProperty("RoutingState") || typeof vm.RoutingState.Templates !== "function") return false; var root = vm.RoutingState.Root(); if (root == null) return false; // Get the URL path to route. var urlPath = dotnetify.router.urlPath; if (dotnetify.debug) console.log("router> routing " + urlPath); // If the URL path matches the root path of this view, use the template with a blank URL pattern if provided. if (utils.equal(urlPath, root)) { var match = $.grep(vm.RoutingState.Templates(), function (iTemplate) { return iTemplate.UrlPattern() === "" }); if (match.length > 0) vm.$router.routeTo("", match[0]); return; } // If the URL path starts with the root path of this view, look at the next path and try to match it with the // anchor tags in this view that are bound with the vmRoute binding type. If there is match, route to that path. root = root + "/"; if (utils.startsWith(urlPath, root)) { var routeElem = null; var match = $.grep(vm.$element.find("[data-vm-route]"), function (elem) { return utils.startsWith(urlPath, $(elem).attr("href")) }); if (match.length > 0) { // If more than one match, find the best match. for (i = 0; i < match.length; i++) if (routeElem == null || $(routeElem).attr("href").length < $(match[i]).attr("href").length) routeElem = match[i]; } if (routeElem != null) { var path = $(routeElem).attr("data-vm-route"); var template = vm.$router.hasOwnProperty("pathToRoute") && vm.$router.pathToRoute.hasOwnProperty(path) ? vm.$router.pathToRoute[path].$template : null; if (template != null) { // If the URL path is completely routed, clear it. if (utils.equal(dotnetify.router.urlPath, vm.$router.toUrl(path))) dotnetify.router.urlPath = ""; // If route's not already active, route to it. if (!utils.equal(vm.RoutingState.Active(), path)) vm.$router.routeTo(path, template); return true; } } else if (dotnetify.router.match(urlPath)) { // If no vmRoute binding matches, try to match with any template's URL pattern. dotnetify.router.urlPath = ""; return true; } } return false; }.bind(iScope), // Builds an absolute URL from a path. toUrl: function (iPath) { var path = utils.trim(iPath); if (path.charAt(0) != '(' && path != "") path = "/" + path; return this.hasOwnProperty("RoutingState") && typeof (this.RoutingState.Root === "function") ? this.RoutingState.Root() + path : iPath; }.bind(iScope) } })(iVM) } // Register the plugin to dotNetify. dotnetify.plugins["router"] = dotnetify.router; // Custom knockout binding to do routing. ko.bindingHandlers.vmRoute = { update: function (element, valueAccessor, allBindings, viewModel, bindingContext) { var vm = bindingContext.$root; var route = ko.unwrap(valueAccessor()); if (!route.hasOwnProperty("Path") || !route.hasOwnProperty("TemplateId")) throw new Error("invalid vmRoute data at " + element.outerHTML); // Build the absolute root path. vm.$router.initRoot(); // If the route path is not defined, use the URL pattern from the associated template. // This is so that we don't send the same data twice if both are equal. path = route.Path(); var template = null; if (vm.hasOwnProperty("RoutingState") && typeof vm.RoutingState.Templates === "function" && vm.RoutingState.Templates() != null) { var match = $.grep(vm.RoutingState.Templates(), function (iTemplate) { return iTemplate.Id() == route.TemplateId() }); if (match.length > 0) { template = match[0]; if (path == null) { path = template.UrlPattern(); route.Path(path); } } else if (route.RedirectRoot() == null) throw new Error("vmRoute cannot find route template '" + route.TemplateId() + "' at " + element.outerHTML); } // If the path has a redirect root, the path doesn't belong to the current root and needs to be // redirected to a different one. Set the absolute path to the HREF attribute, and prevent the // default behavior of the anchor click event and instead do push to HTML5 history state, which // would attempt to resolve the path first before resorting to hard browser redirect. if (route.RedirectRoot() != null) { // Combine the redirect root with the view model's root. var redirectRoot = route.RedirectRoot(); if (redirectRoot.charAt(0) == '/') redirectRoot = redirectRoot.substr(0, redirectRoot.length - 1); var redirectRootPath = route.RedirectRoot().split("/"); var url = ""; var absRoot = vm.$element.attr("data-vm-root"); if (absRoot != null) { var absRootPath = absRoot.split("/"); for (i = 0; i < absRootPath.length; i++) { if (absRootPath[i] != "" && absRootPath[i] == redirectRootPath[0]) break; url += absRootPath[i] + "/"; } } url += redirectRoot + "/" + path; $(element).attr("href", url) .attr("data-vm-route", path) .click(function (iEvent) { iEvent.preventDefault(); dotnetify.router.pushState({}, "", $(this).attr("href")); }) return; } // For quick lookup, save the mapping between the path to the route inside the view model. if (template == null) throw new Error("vmRoute cannot find any route template at " + element.outerHTML); route.$template = template; vm.$router.pathToRoute = vm.$router.pathToRoute || {}; vm.$router.pathToRoute[path] = route; // Set the absolute path to the HREF attribute, and prevent the default behavior of // the anchor click event and instead do push to HTML5 history state. $(element).attr("href", vm.$router.toUrl(path)) .attr("data-vm-route", path) .click(function (iEvent) { iEvent.preventDefault(); dotnetify.router.pushState({}, "", $(this).attr("href")); }); } }; }))
52.243848
3,679
0.535263
a75d10a70c8db14390e39e38f531afe944dc53e7
4,010
js
JavaScript
dist/index.js
Vyoo/rss-to-json
9fb5619e985b262fe110765a4e170df3e1382799
[ "MIT" ]
null
null
null
dist/index.js
Vyoo/rss-to-json
9fb5619e985b262fe110765a4e170df3e1382799
[ "MIT" ]
null
null
null
dist/index.js
Vyoo/rss-to-json
9fb5619e985b262fe110765a4e170df3e1382799
[ "MIT" ]
null
null
null
module.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){var i=n(1),r=n(2),u=n(3);e.exports={isUrl:function(e){return e&&/((http(s)?):\/\/[\w\.\/\-=?#]+)/i.test(e)},load:function(e,t){var n=this,i={method:"get",headers:{"User-Agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.129 Safari/537.36 OPR/68.0.3618.63",Accept:"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"}};return"object"==typeof e&&null!==e?i=Object.assign(i,e):this.isUrl(e)&&(i=Object.assign(i,{url:e})),new Promise((function(e,r){u(i).then((function({data:i}){var r=n.parser(i);t&&t(null,r),e(r)})).catch((function(e){console.log(e),t&&t(e,null),r(e)}))}))},parser:function(e){var t={items:[]},n=r.toJson(e,{object:!0}),u=n.rss&&n.rss.channel?n.rss.channel:n.feed;i.isArray(u)&&(u=u[0]);var o=u.item||u.entry;if(u.title&&(t.title=u.title),u.description&&(t.description=u.description),t.link=u.link&&u.link.href?u.link.href:u.link,t.category=u.category||[],u.image&&(t.image=u.image.url),!t.image&&u["itunes:image"]&&(t.image=u["itunes:image"].href),u["itunes:author"]&&(t.author=u["itunes:author"]||""),o&&!Array.isArray(o)&&(o=[o]),o&&o.length>0)for(let e=0;e<o.length;e++){var a=o[e],s={};s.title=a.title&&a.title.$t?a.title.$t:a.title,s.id=a.guid&&a.guid.$t?a.guid.$t:a.id,s.description=a.summary&&a.summary.$t?a.summary.$t:a.description,s.url=a.link&&a.link.href?a.link.href:a.link,s.link=s.url,s.author=a.author&&a.author.name?a.author.name:a["dc:creator"],s.created=a.updated?Date.parse(a.updated):a.pubDate?Date.parse(a.pubDate):Date.now,s.category=a.category||[],s.content=a.content&&a.content.$t?a.content.$t:null,a["content:encoded"]&&(s.content_encoded=a["content:encoded"],s.content=s.content_encoded),a["itunes:subtitle"]&&(s.itunes_subtitle=a["itunes:subtitle"]),a["itunes:summary"]&&(s.itunes_summary=a["itunes:summary"]),a["itunes:author"]&&(s.itunes_author=a["itunes:author"]),a["itunes:explicit"]&&(s.itunes_explicit=a["itunes:explicit"]),a["itunes:duration"]&&(s.itunes_duration=a["itunes:duration"]),a["itunes:season"]&&(s.itunes_season=a["itunes:season"]),a["itunes:image"]&&(s.itunes_image=a["itunes:image"].href||""),a["itunes:episode"]&&(s.itunes_episode=a["itunes:episode"]),a["itunes:episodeType"]&&(s.itunes_episode_type=a["itunes:episodeType"]),s.enclosures=a.enclosure?i.isArray(a.enclosure)?a.enclosure:[a.enclosure]:[],a["media:thumbnail"]&&(s.media=a.media||{},s.media.thumbnail=a["media:thumbnail"],s.enclosures.push(a["media:thumbnail"])),a["media:content"]&&(s.media=a.media||{},s.media.content=a["media:content"],s.enclosures.push(a["media:content"])),a["media:group"]&&(a["media:group"]["media:title"]&&(s.title=a["media:group"]["media:title"]),a["media:group"]["media:description"]&&(s.description=a["media:group"]["media:description"]),a["media:group"]["media:thumbnail"]&&s.enclosures.push(a["media:group"]["media:thumbnail"].url)),t.items.push(s)}return t},read:function(e,t){return this.load(e,t)}}},function(e,t){e.exports=require("util")},function(e,t){e.exports=require("xml2json")},function(e,t){e.exports=require("axios")}]);
4,010
4,010
0.690025
a75d6da52d83001877d9eff61d2b8e0da3c72c52
241
js
JavaScript
src/components/icons/check.js
deepyaman/kedro-viz
3aef612b6dd405baac0bde68ef37c1f39eb6fa34
[ "BSD-3-Clause-Clear", "Apache-2.0" ]
125
2022-01-10T14:18:32.000Z
2022-03-31T16:08:29.000Z
src/components/icons/check.js
deepyaman/kedro-viz
3aef612b6dd405baac0bde68ef37c1f39eb6fa34
[ "BSD-3-Clause-Clear", "Apache-2.0" ]
81
2022-01-10T15:14:24.000Z
2022-03-31T16:20:59.000Z
src/components/icons/check.js
admariner/kedro-viz
371f7f943ee1c9a69545ed6aa1cd468deafed7f0
[ "BSD-3-Clause-Clear", "Apache-2.0" ]
11
2022-01-12T14:57:54.000Z
2022-03-07T06:48:30.000Z
import React from 'react'; const CheckIcon = ({ className }) => ( <svg className={className} viewBox="0 0 24 24"> <path d="M9.95 17.314 5 12.364l1.414-1.414 3.536 3.535L18.435 6l1.414 1.414z" /> </svg> ); export default CheckIcon;
24.1
84
0.647303
a75d76ee6739f43e0fab0484718ace155e410dcd
2,082
js
JavaScript
node_modules/chromatic/node_modules/.cache/esm/a4e64c4f34e7ddee.js
chobberoni/typos
44a655d9560f7c73b6f8bdde6e0120657e905220
[ "MIT" ]
2
2016-09-17T20:20:45.000Z
2018-04-14T06:07:48.000Z
node_modules/chromatic/node_modules/.cache/esm/a4e64c4f34e7ddee.js
chobberoni/typos
44a655d9560f7c73b6f8bdde6e0120657e905220
[ "MIT" ]
2
2018-01-25T16:38:09.000Z
2018-01-25T16:40:32.000Z
node_modules/chromatic/node_modules/.cache/esm/a4e64c4f34e7ddee.js
chobberoni/typos
44a655d9560f7c73b6f8bdde6e0120657e905220
[ "MIT" ]
null
null
null
let chalk,pluralize,dedent,error,warning;_34e‍.x([["default",()=>runtimeError]]);_34e‍.w("chalk",[["default",["chalk"],function(v){chalk=v}]]);_34e‍.w("pluralize",[["default",["pluralize"],function(v){pluralize=v}]]);_34e‍.w("ts-dedent",[["default",["dedent"],function(v){dedent=v}]]);_34e‍.w("../../components/icons",[["error",["error"],function(v){error=v}],["warning",["warning"],function(v){warning=v}]]); function runtimeError({ options = {}, runtimeErrors = [], runtimeWarnings = [] }) { const messages = [...runtimeErrors, ...runtimeWarnings].map(err => err.message || err.toString()); const stacktraces = [...runtimeErrors, ...runtimeWarnings].map(err => err.stack).filter(Boolean); const viewStacktraces = stacktraces.length ? chalk`\n{dim → View the full ${pluralize('stacktrace', stacktraces.length)} below}` : ''; const errorCount = runtimeErrors.length; const warningCount = runtimeWarnings.length; const problems = [ errorCount && pluralize('runtime error', errorCount, true), errorCount && warningCount && 'and', warningCount && pluralize('warning', warningCount, true), ] .filter(Boolean) .join(' '); const errorHint = options.allowConsoleErrors ? dedent(chalk` We'll ignore these errors because you passed the {bold --allow-console-errors} flag, but this is not recommended.`) : dedent(chalk` If you want to continue despite runtime errors, you can pass the {bold --allow-console-errors} flag, but this is not recommended.`); const warningHint = dedent(chalk` You should probably fix these warnings, but we'll continue anyway.`); return dedent(chalk` ${errorCount ? error : warning} {bold Detected ${problems} in your Storybook} ${messages.join('\n')}${viewStacktraces} This is usually a problem with your Storybook, not with Chromatic. Run your Storybook locally and check your browser console for errors. ${errorCount ? errorHint : warningHint} ${stacktraces.length ? chalk`\n{dim ${stacktraces.join('\n\n')}}` : ''} `); }
45.26087
409
0.667627
a75df01d4bac6971429ccbd1e8b092e9e5de21f3
317
js
JavaScript
project 5-travel-app/src/test/server.test.js
dumpnoodles/Udacity-Front-End
3f5d26c1f8b4c40c2dc7261c1dfd003e0f85ae1e
[ "MIT" ]
null
null
null
project 5-travel-app/src/test/server.test.js
dumpnoodles/Udacity-Front-End
3f5d26c1f8b4c40c2dc7261c1dfd003e0f85ae1e
[ "MIT" ]
null
null
null
project 5-travel-app/src/test/server.test.js
dumpnoodles/Udacity-Front-End
3f5d26c1f8b4c40c2dc7261c1dfd003e0f85ae1e
[ "MIT" ]
null
null
null
const request = require('supertest'); const app = require('../server/server'); describe('Test path "/test"', () => { test('It should response the GET method', async (done) => { const response = await request(app).get('/test'); expect(response.body.time).toBe('now'); done(); }); });
26.416667
63
0.580442
a75ede73ce90b4e93394c008a79fce7d6d07ecac
1,394
js
JavaScript
node_modules/@fortawesome/pro-light-svg-icons/faPig.js
oirad21/react_oirad
ce2f841ff5719cd72538649002ae097d75da9b3d
[ "MIT" ]
null
null
null
node_modules/@fortawesome/pro-light-svg-icons/faPig.js
oirad21/react_oirad
ce2f841ff5719cd72538649002ae097d75da9b3d
[ "MIT" ]
null
null
null
node_modules/@fortawesome/pro-light-svg-icons/faPig.js
oirad21/react_oirad
ce2f841ff5719cd72538649002ae097d75da9b3d
[ "MIT" ]
null
null
null
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var prefix = 'fal'; var iconName = 'pig'; var width = 576; var height = 512; var ligatures = []; var unicode = 'f706'; var svgPathData = 'M560 192h-29.5c-11.1-25.3-28.7-46.9-50.5-63.4V64h-16c-46.68 0-83.15 27.22-89.39 32H223.99c-41.32 0-82.57 17.33-111.74 45.92-22.43 21.87-38.56 50.15-45.07 82.08h-11.2c-14.8 0-26.5-13.5-23.5-28.8 2.2-11.4 12.9-19.2 24.5-19.2h1c3.3 0 6-2.7 6-6v-20c0-3.3-2.7-6-6-6-28.5 0-53.9 20.4-57.5 48.6-4.4 34.2 22.2 63.4 55.5 63.4h8c0 52.2 25.4 98.1 64 127.3V464c0 8.8 7.2 16 16 16h112c8.8 0 16-7.2 16-16v-48h64v48c0 8.8 7.2 16 16 16h112c8.8 0 16-7.2 16-16v-80.9c11.7-9 22.4-19.3 31.3-31.1H560c8.8 0 16-7.2 16-16V208c0-8.8-7.2-16-16-16zm-16 128h-48.7c-17 22.4-17 24.1-47.3 47.3V448h-80v-64H239.99v64h-80v-80.7c-64.9-49-64-93.5-64-111.3 0-70.6 57.4-128 128.01-128h161.71c16.9-13.5 33.2-26.5 62.3-30.8v47.3c39.7 30.1 44 39.3 61.6 79.5H544v96zm-112.01-96c-8.8 0-16 7.2-16 16s7.2 16 16 16 16-7.2 16-16-7.19-16-16-16z'; exports.definition = { prefix: prefix, iconName: iconName, icon: [ width, height, ligatures, unicode, svgPathData ]}; exports.faPig = exports.definition; exports.prefix = prefix; exports.iconName = iconName; exports.width = width; exports.height = height; exports.ligatures = ligatures; exports.unicode = unicode; exports.svgPathData = svgPathData;
48.068966
819
0.680057
a75ef15e6435fdc4d02e32294bda0bd7298ef62e
2,743
js
JavaScript
public/js/modal.js
vitlage/amplify
257c543304ea14b6e2e172201e61333ebf06d384
[ "MIT" ]
null
null
null
public/js/modal.js
vitlage/amplify
257c543304ea14b6e2e172201e61333ebf06d384
[ "MIT" ]
null
null
null
public/js/modal.js
vitlage/amplify
257c543304ea14b6e2e172201e61333ebf06d384
[ "MIT" ]
null
null
null
$(function() { $(document).on('click', '.modal-control', function(e) { e.preventDefault(); $('.modal-content').addClass('hienra'); $('.wraper-frontend').addClass('display'); var url = $(this).attr('href'); var method = $(this).attr('data-method'); var load = htmlLoader(); var html = '<div class="modal fade" role="dialog" id="myModal">'+ '<div class="modal-dialog modal-lg modal-select">'+ '<div class="modal-content">'+ '<p>'+load+'</p>'+ '</div>'+ '</div>'+ '</div>'; $('body').append(html); var modal = $('#myModal'); modal.modal('show'); $.ajax({ url: url, type: method, dataType: 'html', }).always(function(response) { $('#myModal .modal-content').html(response); // Select2 ajax $('#myModal .modal-content').find(".select2-ajax").each(function() { select2Ajax($(this)); }); customValidate($('#myModal .modal-content').find('form')); }).error(function (jqXHR) { html = '<div class="modal-body"><prex class="text-danger">' + jqXHR.responseText + '</prex></div>'; $('#myModal .modal-content').html(html); }); return false; }); $('.icon-rm').click(function(){ $('.modal').addClass('andi'); }); }); function htmlLoader() { //return '<div class="loader-outer"><div class="loader"><div class="ball-pulse"><div></div><div></div><div></div></div></div></div>'; //return '<div class="spinner"><div class="bounce1"></div><div class="bounce2"></div><div class="bounce3"></div></div>'; var khoi = '<div class="sk-fading-circle">'+ '<div class="sk-circle1 sk-circle"></div>'+ '<div class="sk-circle2 sk-circle"></div>'+ '<div class="sk-circle3 sk-circle"></div>'+ '<div class="sk-circle4 sk-circle"></div>'+ '<div class="sk-circle5 sk-circle"></div>'+ '<div class="sk-circle6 sk-circle"></div>'+ '<div class="sk-circle7 sk-circle"></div>'+ '<div class="sk-circle8 sk-circle"></div>'+ '<div class="sk-circle9 sk-circle"></div>'+ '<div class="sk-circle10 sk-circle"></div>'+ '<div class="sk-circle11 sk-circle"></div>'+ '<div class="sk-circle12 sk-circle"></div>'+ '</div>'; return khoi; }
41.560606
137
0.454976
a75f44f06a76b490078e21c1bcb03355c49df065
754
js
JavaScript
TensorRT-4.0.1.6/doc/html/classnvinfer1_1_1_i_top_k_layer.js
NEWPLAN/TensorRT_inference
ce68800c401219938ead6657391d12749d763c3b
[ "MIT" ]
null
null
null
TensorRT-4.0.1.6/doc/html/classnvinfer1_1_1_i_top_k_layer.js
NEWPLAN/TensorRT_inference
ce68800c401219938ead6657391d12749d763c3b
[ "MIT" ]
null
null
null
TensorRT-4.0.1.6/doc/html/classnvinfer1_1_1_i_top_k_layer.js
NEWPLAN/TensorRT_inference
ce68800c401219938ead6657391d12749d763c3b
[ "MIT" ]
null
null
null
var classnvinfer1_1_1_i_top_k_layer = [ [ "~ITopKLayer", "classnvinfer1_1_1_i_top_k_layer.html#a8650320c04e3600b238db844c7f12d16", null ], [ "getK", "classnvinfer1_1_1_i_top_k_layer.html#aa64a6d94d8f7b04598ff2e6469a2eb2b", null ], [ "getOperation", "classnvinfer1_1_1_i_top_k_layer.html#a2a572c33254370bca60f2402e6c61590", null ], [ "getReduceAxes", "classnvinfer1_1_1_i_top_k_layer.html#acc8b51a41103ca0e41aec3ebeb35c370", null ], [ "setK", "classnvinfer1_1_1_i_top_k_layer.html#abab2c02652dfacb19297e978b82cfcb2", null ], [ "setOperation", "classnvinfer1_1_1_i_top_k_layer.html#a5e5d93b48b78646439dd0307a1c1ef6c", null ], [ "setReduceAxes", "classnvinfer1_1_1_i_top_k_layer.html#a5ff11d57f1a87bbfb6266e23b6a3d0d8", null ] ];
75.4
104
0.803714
a75f852d601bd69da47848a73aa7a3c926f65d51
853
js
JavaScript
datefact.js
FabricLabs/doorman-datefact
ac0f5e9cb26b96192eff4b354da7bf8dc2ee4784
[ "Apache-2.0" ]
null
null
null
datefact.js
FabricLabs/doorman-datefact
ac0f5e9cb26b96192eff4b354da7bf8dc2ee4784
[ "Apache-2.0" ]
null
null
null
datefact.js
FabricLabs/doorman-datefact
ac0f5e9cb26b96192eff4b354da7bf8dc2ee4784
[ "Apache-2.0" ]
null
null
null
module.exports = function (Doorman) { return { commands: [ 'datefact' ], 'datefact': { usage: '<Question>', description: 'Gives a Random Date Fact.', process: (msg, suffix, isEdit, cb) => { request('http://numbersapi.com/random/date?json', function (err, res, body) { try { if (err) throw err; var data = JSON.parse(body); if (data && data.text) { cb({ embed: { color: Doorman.Config.discord.defaultEmbedColor, title: 'Date Fact', description: data.text } }, msg); } } catch (err) { var msgTxt = `command date_fact failed :disappointed_relieved:`; if (Doorman.Config.debug) { msgTxt += `\n${err.stack}`; Doorman.logError(err); } cb(msgTxt, msg); } }); } } } }
23.054054
71
0.515826
a75fa6018d42c15e889cfe987570be6f780188d4
1,378
js
JavaScript
test/test-filter.js
stevenceuppens/generator-ngep
9ef9f6b967f3fd7c458bf2e45cba11162274202e
[ "MIT" ]
null
null
null
test/test-filter.js
stevenceuppens/generator-ngep
9ef9f6b967f3fd7c458bf2e45cba11162274202e
[ "MIT" ]
null
null
null
test/test-filter.js
stevenceuppens/generator-ngep
9ef9f6b967f3fd7c458bf2e45cba11162274202e
[ "MIT" ]
null
null
null
'use strict'; var path = require('path'); var assert = require('yeoman-generator').assert; var helpers = require('yeoman-generator').test; describe('Ngep:filter', function () { before(function (done) { helpers.run(path.join(__dirname, '../generators/filter')) .withArguments('name', '--force') .withOptions({ 'skip-install': true }) .withPrompt({ filterName: "my filter", module: "my-module" }) .on('end', done); }); describe('app files', function () { it('creates app files', function () { assert.file([ 'src/app/modules/my-module/filters/my-filter/my-filter.filter.js', 'src/app/modules/my-module/filters/my-filter/my-filter.filter.spec.js' ]); }); it('my-filter.filter.js should contain module name', function () { assert.fileContent('src/app/modules/my-module/filters/my-filter/my-filter.filter.js', /angular\.module\('app.my-module'/); }); it('my-filter.filter.js should contain filter name', function () { assert.fileContent('src/app/modules/my-module/filters/my-filter/my-filter.filter.js', /filter\('my-filter'/); }); it('my-filter.filter.spec.js should contain filter name', function () { assert.fileContent('src/app/modules/my-module/filters/my-filter/my-filter.filter.spec.js', /describe\('my-filter filter'/); }); }); });
32.809524
129
0.634978
a76008db184788432b95af7f363b971e6932630f
993
js
JavaScript
dist/common/esm2015/lib/directives/atlas-popup.directive.js
lowcodeunit/lcu-maps
5464becf319eb79e2758eb3ec8e5947ceb66341f
[ "Apache-2.0" ]
null
null
null
dist/common/esm2015/lib/directives/atlas-popup.directive.js
lowcodeunit/lcu-maps
5464becf319eb79e2758eb3ec8e5947ceb66341f
[ "Apache-2.0" ]
null
null
null
dist/common/esm2015/lib/directives/atlas-popup.directive.js
lowcodeunit/lcu-maps
5464becf319eb79e2758eb3ec8e5947ceb66341f
[ "Apache-2.0" ]
null
null
null
import { Directive } from '@angular/core'; export class AtlasPopupDirective { constructor() { } } AtlasPopupDirective.decorators = [ { type: Directive, args: [{ selector: '[amPopup]' },] } ]; AtlasPopupDirective.ctorParameters = () => []; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXRsYXMtcG9wdXAuZGlyZWN0aXZlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGxvd2NvZGV1bml0L2xjdS1tYXBzLWNvbW1vbi8iLCJzb3VyY2VzIjpbImxpYi9kaXJlY3RpdmVzL2F0bGFzLXBvcHVwLmRpcmVjdGl2ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBSzFDLE1BQU0sT0FBTyxtQkFBbUI7SUFHOUIsZ0JBQWdCLENBQUM7OztZQU5sQixTQUFTLFNBQUM7Z0JBQ1QsUUFBUSxFQUFFLFdBQVc7YUFDdEIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBEaXJlY3RpdmUgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcclxuXHJcbkBEaXJlY3RpdmUoe1xyXG4gIHNlbGVjdG9yOiAnW2FtUG9wdXBdJ1xyXG59KVxyXG5leHBvcnQgY2xhc3MgQXRsYXNQb3B1cERpcmVjdGl2ZSB7XHJcblxyXG5cclxuICBjb25zdHJ1Y3RvcigpIHsgfVxyXG5cclxufVxyXG4iXX0=
90.272727
718
0.879154
a76074296988be88e55de9218c2a10dc84c68343
2,317
js
JavaScript
php/00haizeiwangec/admin/js/public.js
shifushihuaidan/op11
b16fd69b5501f914f2312fd4618fd2961cd23135
[ "MIT" ]
null
null
null
php/00haizeiwangec/admin/js/public.js
shifushihuaidan/op11
b16fd69b5501f914f2312fd4618fd2961cd23135
[ "MIT" ]
null
null
null
php/00haizeiwangec/admin/js/public.js
shifushihuaidan/op11
b16fd69b5501f914f2312fd4618fd2961cd23135
[ "MIT" ]
null
null
null
// JavaScript Document /* public.php */ function chkaddpub(form){ var title = form.title.value; var content = form.content.value; if(title == ''){ alert('标题为空'); form.title.focus(); return false; } if(content == ''){ alert('内容为空'); form.content.focus(); return false; } var url = 'addpub.php?title='+title+'&content='+content; xmlhttp.open("GET",url,true); xmlhttp.onreadystatechange = function(){ if(xmlhttp.readyState == 4){ var msg = xmlhttp.responseText; if(msg == '1'){ alert('添加成功'); location='showpub.php'; }else{ alert(msg); } } } xmlhttp.send(null); } /* showpub.php * 删除确认 */ function delepub(form){ if(!window.confirm('是否要删除数据??')){ }else{ var leng = form.chk.length; if(leng==undefined){ if(!form.chk.checked){ alert('请选取要删除数据!'); }else{ rd = form.chk.value; var url = 'delpub.php?rd='+rd; xmlhttp.open("GET",url,true); xmlhttp.onreadystatechange = delpub; xmlhttp.send(null); } }else{ var rd=new Array(); var j = 0; for( var i = 0; i < leng; i++) { if(form.chk[i].checked){ rd[j++] = form.chk[i].value; } } if(rd == ''){ alert('请选取要删除数据!'); }else{ var url = "delpub.php?rd="+rd; xmlhttp.open("GET",url,true); xmlhttp.onreadystatechange = delpub; xmlhttp.send(null); } } } return false; } function delpub(){ if(xmlhttp.readyState == 4){ var msg = xmlhttp.responseText; if(msg == "0"){ alert('删除失败'); }else{ alert('删除成功'); location=('showpub.php'); } } } //全部选择/取消 function alldel(form){ var leng = form.chk.length; if(leng==undefined){ if(!form.chk.checked) form.chk.checked=true; }else{ for( var i = 0; i < leng; i++) { if(!form.chk[i].checked) form.chk[i].checked = true; } } return false; } // 反选 function overdel(form){ var leng = form.chk.length; if(leng==undefined){ if(!form.chk.checked) form.chk.checked=true; else form.chk.checked=false; }else{ for( var i = 0; i < leng; i++) { if(!form.chk[i].checked) form.chk[i].checked = true; else form.chk[i].checked = false; } } return false; } //修改 function modi(key){ //window.open('modifycommo.php?key='+key,'_blank','width=750,heigh=500',false); }
19.14876
80
0.575313
a760cc381b65a585ed679e97db67c960a16934b7
407
js
JavaScript
src/programs/basics/coordinates_index.js
ertdfgcvb/play.core
d4a9b859c962c2d39e1fb73d37ecf390491d1e34
[ "Apache-2.0" ]
116
2021-01-05T17:51:19.000Z
2022-03-28T12:24:46.000Z
src/programs/basics/coordinates_index.js
ChiliJohnson/play.core
5e94d5699faba01983a8633997d2d5f3ae48c834
[ "Apache-2.0" ]
5
2021-04-09T01:59:49.000Z
2022-02-13T16:31:23.000Z
src/programs/basics/coordinates_index.js
ertdfgcvb/play.core
d4a9b859c962c2d39e1fb73d37ecf390491d1e34
[ "Apache-2.0" ]
12
2021-01-12T10:18:27.000Z
2022-03-19T15:32:33.000Z
/** [header] @author ertdfgcvb @title Coordinates: index @desc Use of coord.index */ // Global variables have scope in the whole module. const pattern = '| |.|,|:|;|x|K|Ñ|R|a|+|=|-|_' // const pattern = '| |▁|▂|▃|▄|▅|▆|▇|▆|▅|▄|▃|▂|▁' // Resize the browser window to modify the pattern. export function main(coord, context, cursor, buffer) { const i = coord.index % pattern.length return pattern[i] }
23.941176
54
0.628993
a76122a50ba881958ff85dca4c9b0c9f82fc10d7
13,898
js
JavaScript
src/ol/style/Style.js
mzur/ol3
d6b6cfccd5751b7acc93a30688dcf361fff5ce12
[ "BSD-2-Clause-FreeBSD" ]
1
2019-02-26T19:50:56.000Z
2019-02-26T19:50:56.000Z
src/ol/style/Style.js
cmsdkfz/openlayers
4531a848a139f23bdbc396cb0e3efc7240df9af3
[ "BSD-2-Clause-FreeBSD" ]
4
2020-09-07T10:23:03.000Z
2022-03-02T05:43:00.000Z
src/ol/style/Style.js
cmsdkfz/openlayers
4531a848a139f23bdbc396cb0e3efc7240df9af3
[ "BSD-2-Clause-FreeBSD" ]
2
2019-05-23T11:35:35.000Z
2019-12-10T11:44:23.000Z
/** * @module ol/style/Style */ /** * Feature styles. * * If no style is defined, the following default style is used: * ```js * import {Fill, Stroke, Circle, Style} from 'ol/style'; * * var fill = new Fill({ * color: 'rgba(255,255,255,0.4)' * }); * var stroke = new Stroke({ * color: '#3399CC', * width: 1.25 * }); * var styles = [ * new Style({ * image: new Circle({ * fill: fill, * stroke: stroke, * radius: 5 * }), * fill: fill, * stroke: stroke * }) * ]; * ``` * * A separate editing style has the following defaults: * ```js * import {Fill, Stroke, Circle, Style} from 'ol/style'; * import GeometryType from 'ol/geom/GeometryType'; * * var white = [255, 255, 255, 1]; * var blue = [0, 153, 255, 1]; * var width = 3; * styles[GeometryType.POLYGON] = [ * new Style({ * fill: new Fill({ * color: [255, 255, 255, 0.5] * }) * }) * ]; * styles[GeometryType.MULTI_POLYGON] = * styles[GeometryType.POLYGON]; * styles[GeometryType.LINE_STRING] = [ * new Style({ * stroke: new Stroke({ * color: white, * width: width + 2 * }) * }), * new Style({ * stroke: new Stroke({ * color: blue, * width: width * }) * }) * ]; * styles[GeometryType.MULTI_LINE_STRING] = * styles[GeometryType.LINE_STRING]; * styles[GeometryType.POINT] = [ * new Style({ * image: new Circle({ * radius: width * 2, * fill: new Fill({ * color: blue * }), * stroke: new Stroke({ * color: white, * width: width / 2 * }) * }), * zIndex: Infinity * }) * ]; * styles[GeometryType.MULTI_POINT] = * styles[GeometryType.POINT]; * styles[GeometryType.GEOMETRY_COLLECTION] = * styles[GeometryType.POLYGON].concat( * styles[GeometryType.LINE_STRING], * styles[GeometryType.POINT] * ); * ``` */ import {assert} from '../asserts.js'; import GeometryType from '../geom/GeometryType.js'; import CircleStyle from './Circle.js'; import Fill from './Fill.js'; import Stroke from './Stroke.js'; /** * A function that takes an {@link module:ol/Feature} and a `{number}` * representing the view's resolution. The function should return a * {@link module:ol/style/Style} or an array of them. This way e.g. a * vector layer can be styled. * * @typedef {function(import("../Feature.js").FeatureLike, number):(Style|Array<Style>)} StyleFunction */ /** * A {@link Style}, an array of {@link Style}, or a {@link StyleFunction}. * @typedef {Style|Array<Style>|StyleFunction} StyleLike */ /** * A function that takes an {@link module:ol/Feature} as argument and returns an * {@link module:ol/geom/Geometry} that will be rendered and styled for the feature. * * @typedef {function(import("../Feature.js").FeatureLike): * (import("../geom/Geometry.js").default|import("../render/Feature.js").default|undefined)} GeometryFunction */ /** * Custom renderer function. Takes two arguments: * * 1. The pixel coordinates of the geometry in GeoJSON notation. * 2. The {@link module:ol/render~State} of the layer renderer. * * @typedef {function((import("../coordinate.js").Coordinate|Array<import("../coordinate.js").Coordinate>|Array<Array<import("../coordinate.js").Coordinate>>),import("../render.js").State)} * RenderFunction */ /** * @typedef {Object} Options * @property {string|import("../geom/Geometry.js").default|GeometryFunction} [geometry] Feature property or geometry * or function returning a geometry to render for this style. * @property {import("./Fill.js").default} [fill] Fill style. * @property {import("./Image.js").default} [image] Image style. * @property {RenderFunction} [renderer] Custom renderer. When configured, `fill`, `stroke` and `image` will be * ignored, and the provided function will be called with each render frame for each geometry. * @property {import("./Stroke.js").default} [stroke] Stroke style. * @property {import("./Text.js").default} [text] Text style. * @property {number} [zIndex] Z index. */ /** * @classdesc * Container for vector feature rendering styles. Any changes made to the style * or its children through `set*()` methods will not take effect until the * feature or layer that uses the style is re-rendered. * @api */ class Style { /** * @param {Options=} opt_options Style options. */ constructor(opt_options) { const options = opt_options || {}; /** * @private * @type {string|import("../geom/Geometry.js").default|GeometryFunction} */ this.geometry_ = null; /** * @private * @type {!GeometryFunction} */ this.geometryFunction_ = defaultGeometryFunction; if (options.geometry !== undefined) { this.setGeometry(options.geometry); } /** * @private * @type {import("./Fill.js").default} */ this.fill_ = options.fill !== undefined ? options.fill : null; /** * @private * @type {import("./Image.js").default} */ this.image_ = options.image !== undefined ? options.image : null; /** * @private * @type {RenderFunction|null} */ this.renderer_ = options.renderer !== undefined ? options.renderer : null; /** * @private * @type {import("./Stroke.js").default} */ this.stroke_ = options.stroke !== undefined ? options.stroke : null; /** * @private * @type {import("./Text.js").default} */ this.text_ = options.text !== undefined ? options.text : null; /** * @private * @type {number|undefined} */ this.zIndex_ = options.zIndex; } /** * Clones the style. * @return {Style} The cloned style. * @api */ clone() { let geometry = this.getGeometry(); if (geometry && typeof geometry === 'object') { geometry = /** @type {import("../geom/Geometry.js").default} */ (geometry).clone(); } return new Style({ geometry: geometry, fill: this.getFill() ? this.getFill().clone() : undefined, image: this.getImage() ? this.getImage().clone() : undefined, stroke: this.getStroke() ? this.getStroke().clone() : undefined, text: this.getText() ? this.getText().clone() : undefined, zIndex: this.getZIndex() }); } /** * Get the custom renderer function that was configured with * {@link #setRenderer} or the `renderer` constructor option. * @return {RenderFunction|null} Custom renderer function. * @api */ getRenderer() { return this.renderer_; } /** * Sets a custom renderer function for this style. When set, `fill`, `stroke` * and `image` options of the style will be ignored. * @param {RenderFunction|null} renderer Custom renderer function. * @api */ setRenderer(renderer) { this.renderer_ = renderer; } /** * Get the geometry to be rendered. * @return {string|import("../geom/Geometry.js").default|GeometryFunction} * Feature property or geometry or function that returns the geometry that will * be rendered with this style. * @api */ getGeometry() { return this.geometry_; } /** * Get the function used to generate a geometry for rendering. * @return {!GeometryFunction} Function that is called with a feature * and returns the geometry to render instead of the feature's geometry. * @api */ getGeometryFunction() { return this.geometryFunction_; } /** * Get the fill style. * @return {import("./Fill.js").default} Fill style. * @api */ getFill() { return this.fill_; } /** * Set the fill style. * @param {import("./Fill.js").default} fill Fill style. * @api */ setFill(fill) { this.fill_ = fill; } /** * Get the image style. * @return {import("./Image.js").default} Image style. * @api */ getImage() { return this.image_; } /** * Set the image style. * @param {import("./Image.js").default} image Image style. * @api */ setImage(image) { this.image_ = image; } /** * Get the stroke style. * @return {import("./Stroke.js").default} Stroke style. * @api */ getStroke() { return this.stroke_; } /** * Set the stroke style. * @param {import("./Stroke.js").default} stroke Stroke style. * @api */ setStroke(stroke) { this.stroke_ = stroke; } /** * Get the text style. * @return {import("./Text.js").default} Text style. * @api */ getText() { return this.text_; } /** * Set the text style. * @param {import("./Text.js").default} text Text style. * @api */ setText(text) { this.text_ = text; } /** * Get the z-index for the style. * @return {number|undefined} ZIndex. * @api */ getZIndex() { return this.zIndex_; } /** * Set a geometry that is rendered instead of the feature's geometry. * * @param {string|import("../geom/Geometry.js").default|GeometryFunction} geometry * Feature property or geometry or function returning a geometry to render * for this style. * @api */ setGeometry(geometry) { if (typeof geometry === 'function') { this.geometryFunction_ = geometry; } else if (typeof geometry === 'string') { this.geometryFunction_ = function(feature) { return ( /** @type {import("../geom/Geometry.js").default} */ (feature.get(geometry)) ); }; } else if (!geometry) { this.geometryFunction_ = defaultGeometryFunction; } else if (geometry !== undefined) { this.geometryFunction_ = function() { return ( /** @type {import("../geom/Geometry.js").default} */ (geometry) ); }; } this.geometry_ = geometry; } /** * Set the z-index. * * @param {number|undefined} zIndex ZIndex. * @api */ setZIndex(zIndex) { this.zIndex_ = zIndex; } } /** * Convert the provided object into a style function. Functions passed through * unchanged. Arrays of Style or single style objects wrapped in a * new style function. * @param {StyleFunction|Array<Style>|Style} obj * A style function, a single style, or an array of styles. * @return {StyleFunction} A style function. */ export function toFunction(obj) { let styleFunction; if (typeof obj === 'function') { styleFunction = obj; } else { /** * @type {Array<Style>} */ let styles; if (Array.isArray(obj)) { styles = obj; } else { assert(typeof /** @type {?} */ (obj).getZIndex === 'function', 41); // Expected an `Style` or an array of `Style` const style = /** @type {Style} */ (obj); styles = [style]; } styleFunction = function() { return styles; }; } return styleFunction; } /** * @type {Array<Style>} */ let defaultStyles = null; /** * @param {import("../Feature.js").FeatureLike} feature Feature. * @param {number} resolution Resolution. * @return {Array<Style>} Style. */ export function createDefaultStyle(feature, resolution) { // We don't use an immediately-invoked function // and a closure so we don't get an error at script evaluation time in // browsers that do not support Canvas. (import("./Circle.js").CircleStyle does // canvas.getContext('2d') at construction time, which will cause an.error // in such browsers.) if (!defaultStyles) { const fill = new Fill({ color: 'rgba(255,255,255,0.4)' }); const stroke = new Stroke({ color: '#3399CC', width: 1.25 }); defaultStyles = [ new Style({ image: new CircleStyle({ fill: fill, stroke: stroke, radius: 5 }), fill: fill, stroke: stroke }) ]; } return defaultStyles; } /** * Default styles for editing features. * @return {Object<import("../geom/GeometryType.js").default, Array<Style>>} Styles */ export function createEditingStyle() { /** @type {Object<import("../geom/GeometryType.js").default, Array<Style>>} */ const styles = {}; const white = [255, 255, 255, 1]; const blue = [0, 153, 255, 1]; const width = 3; styles[GeometryType.POLYGON] = [ new Style({ fill: new Fill({ color: [255, 255, 255, 0.5] }) }) ]; styles[GeometryType.MULTI_POLYGON] = styles[GeometryType.POLYGON]; styles[GeometryType.LINE_STRING] = [ new Style({ stroke: new Stroke({ color: white, width: width + 2 }) }), new Style({ stroke: new Stroke({ color: blue, width: width }) }) ]; styles[GeometryType.MULTI_LINE_STRING] = styles[GeometryType.LINE_STRING]; styles[GeometryType.CIRCLE] = styles[GeometryType.POLYGON].concat( styles[GeometryType.LINE_STRING] ); styles[GeometryType.POINT] = [ new Style({ image: new CircleStyle({ radius: width * 2, fill: new Fill({ color: blue }), stroke: new Stroke({ color: white, width: width / 2 }) }), zIndex: Infinity }) ]; styles[GeometryType.MULTI_POINT] = styles[GeometryType.POINT]; styles[GeometryType.GEOMETRY_COLLECTION] = styles[GeometryType.POLYGON].concat( styles[GeometryType.LINE_STRING], styles[GeometryType.POINT] ); return styles; } /** * Function that is called with a feature and returns its default geometry. * @param {import("../Feature.js").FeatureLike} feature Feature to get the geometry for. * @return {import("../geom/Geometry.js").default|import("../render/Feature.js").default|undefined} Geometry to render. */ function defaultGeometryFunction(feature) { return feature.getGeometry(); } export default Style;
25.22323
189
0.598
a761ad61a365c4e28ae1a011e23aef8695bbbcef
2,710
js
JavaScript
src/js/util/providers/twitch.js
Deckhandfirststar01/BetterTweetDeck
627026e2731f40e35f1c2a86fa4ad9724cd43f4c
[ "MIT" ]
null
null
null
src/js/util/providers/twitch.js
Deckhandfirststar01/BetterTweetDeck
627026e2731f40e35f1c2a86fa4ad9724cd43f4c
[ "MIT" ]
null
null
null
src/js/util/providers/twitch.js
Deckhandfirststar01/BetterTweetDeck
627026e2731f40e35f1c2a86fa4ad9724cd43f4c
[ "MIT" ]
null
null
null
import domify from 'domify'; import parseURL from '../parseUrl'; import fetchPage from '../fetchPage'; export default function ($) { return { name: 'Twitch', setting: 'twitch_tv', re: new RegExp('https?://(?:www.|)twitch.tv/*|twitch.tv/*/b/*'), default: true, callback: (url) => { /* eslint no-underscore-dangle: 0 */ const parsed = parseURL(url); const channel = parsed.segments[0]; const isBroadcast = parsed.segments[1] && ['v', 'b'].includes(parsed.segments[1]); const isClip = url.includes('clips.twitch.tv'); if (isClip) { return fetchPage(url).then((data) => { if (data.currentTarget.status !== 200) { return null; } const el = domify(data.currentTarget.response); const tbUrl = el.querySelector('[name="twitter:image"]').content; const embedURL = el.querySelector('[name="twitter:player"]').content; const height = el.querySelector('[name="twitter:player:height"]').content; const width = el.querySelector('[name="twitter:player:width"]').content; return { type: 'video', thumbnail_url: $.getSafeURL(tbUrl), html: `<iframe src="${embedURL}" height="${height}" width="${width}" frameborder="0" scrolling="no" allowfullscreen="true"></iframe>`, url, }; }); } if (isBroadcast) { const broadcastId = parsed.segments[1] + parsed.segments[2]; return fetch(`${$.getEnpointFor('twitch')}channels/${channel}/videos?broadcasts=true&client_id=${$.getKeyFor('twitch')}`).then($.statusAndJson) .then((data) => { const finalVideo = data.videos.find(video => video._id === broadcastId); if (!finalVideo) { return null; } return { type: 'video', thumbnail_url: $.getSafeURL(finalVideo.thumbnails[0].url), html: `<iframe src="https://player.twitch.tv/?video=${broadcastId}" height="720" width="1280" frameborder="0" scrolling="no" allowfullscreen="true"></iframe>`, url, }; }); } return fetch(`${$.getEnpointFor('twitch')}channels/${channel}?client_id=${$.getKeyFor('twitch')}`).then($.statusAndJson) .then((data) => { return { type: 'video', thumbnail_url: $.getSafeURL(data.profile_banner || data.video_banner || data.logo), html: `<iframe src="https://player.twitch.tv/?channel=${channel}" height="720" width="1280" frameborder="0" scrolling="no" allowfullscreen="true"></iframe>`, url, }; }); }, }; }
37.638889
173
0.562731
a761ce54417e60bd94f0f573bc26e07a9f4391a8
269
js
JavaScript
d2.config.js
dhis2/messaging-app
db5fc8765e362bc48fab80287d3a86d92840db88
[ "BSD-3-Clause" ]
2
2019-05-13T15:57:22.000Z
2019-05-21T15:42:25.000Z
d2.config.js
dhis2/messaging-app
db5fc8765e362bc48fab80287d3a86d92840db88
[ "BSD-3-Clause" ]
226
2018-06-17T07:07:55.000Z
2022-03-07T01:51:36.000Z
d2.config.js
dhis2/messaging-app
db5fc8765e362bc48fab80287d3a86d92840db88
[ "BSD-3-Clause" ]
1
2018-06-17T07:04:35.000Z
2018-06-17T07:04:35.000Z
const config = { type: 'app', coreApp: true, title: 'Messaging', name: 'messaging', description: 'An application for sending internal messages', entryPoints: { app: './src/components/App/AppWrapper.js', }, } module.exports = config
20.692308
64
0.620818
a761d22498053c35e255b344e796faa2eb65a854
11,547
js
JavaScript
js/starperu/star.js
CARLOSLUISGUTIERREZRAMOS/siststar
9aea603a121a379ea264006e8e5844110400ca2e
[ "MIT" ]
null
null
null
js/starperu/star.js
CARLOSLUISGUTIERREZRAMOS/siststar
9aea603a121a379ea264006e8e5844110400ca2e
[ "MIT" ]
null
null
null
js/starperu/star.js
CARLOSLUISGUTIERREZRAMOS/siststar
9aea603a121a379ea264006e8e5844110400ca2e
[ "MIT" ]
null
null
null
$(function () { $('.date-calendar').datepicker({ language: "es", format: "dd/mm/yyyy", autoclose: true, todayHighlight: true }); cargarFechasActuales(); cargarListadoCarousel(); }); function cargarFechasActuales() { var y=new Date(); var today=devuelveDia(y.getDate())+'/'+devuelveMes(y.getMonth())+'/'+y.getFullYear(); $("input[name=desde]").datepicker('update',today); $("input[name=hasta]").datepicker('update',today); } function devuelveMes(mes) { var m=mes+1; m=m.toString(); if (m.length==1) { m='0'+m; } return m; } function devuelveDia(dia) { var d=dia.toString(); if (d.length==1) { d='0'+d; } return d; } $(document).on('click','#modal_starperu .btn-success',function (arg) { var form=$("#form-datos"); var formData = new FormData(form[0]); var tipo=$("#tipo").val(); var id = $(this).data('id') ? $(this).data('id') : 'n'; var button =$(this); var btncancelar=$("#modal_starperu .btn-danger"); button.html('<i class="fa fa-refresh fa-lg fa-spin"></i> Procesando'); button.attr('disabled',true); btncancelar.attr('disabled',true); $.ajax({ url: URLs+'starperu/Star/GuardarRegistro', data: formData, type: 'POST', contentType: false, processData: false, success: function(resultado) { button.html('<span class="fa fa-plus"></span> Agregar'); btncancelar.attr('disabled',false); button.attr('disabled',false); var data=JSON.parse(resultado); if (data.error_msg!=undefined) { mostrarMsgError(data.error_msg,1); } else{ if (tipo==1) { var length=objstar.length+1; data.id=length; objstar.unshift(data);//inserta en la primera posicion // objstar.push(data);//inserta en la ultima posicion } else{ if (id!='n') { data.id=objstar[id].id; objstar[id]=data; } // id != 'n' ? (objstar[id]=data) : ''; } enviarDataObjeto(); cargarListadoCarousel(); resetearFormulario(); $("#modal_starperu").modal('hide'); } } }); }); function enviarDataObjeto() { var json_tring=JSON.stringify(objstar).replace('#',''); $.ajax({ // url: URLs+'starperu/Star/ModificarObjetoJson', url:'https://www.starperu.com/es/server.php', data: 'objstar='+json_tring, type: 'GET', success: function(resultado) { } }); } function cargarListadoCarousel() { var tbody=$("#tbl_imagenes tbody"); tbody.empty(); $.each(objstar,function (index,element) { var tr; tr='<tr>'; tr+='<td>'+ '<img src="'+element.imagen+'" width="150">'+ '</td>'; tr+='<td>'+ '<span>'+(element.banner==1?element.desde:'-')+'</span><br>'+ '<span>'+(element.banner==1?element.inicio:'-')+'</span>'+ '</td>'; tr+='<td>'+ '<span>'+(element.banner==1?element.hasta:'-')+'</span><br>'+ '<span>'+(element.banner==1?element.fin:'-')+'</span>'+ '</td>'; tr+='<td>'+ (element.link ? ('<a href="https://www.starperu.com/es/'+element.link+'.'+element.extension+'" target="_blank">'+element.link+'</a>') : 'Sin direccionamiento')+ '</td>'; tr+='<td>'+ '<span class="label label-danger">'+element.prioridad+'</span><br>'+ '</td>'; tr+='<td>'+ '<input type="checkbox" class="checkbox-check" value="'+index+'|'+element.estado+'" '+(element.estado==1? 'checked' : '')+' title="'+(element.estado==1?'Publicado' : 'Por publicar')+'">'+ '</td>'; tr+='<td>'+ '<button class="btn btn-sm btn-success editar-carousel" title="Editar Carousel" id="'+index+'">'+ '<span class="fa fa-edit fa-lg"></span>'+ '</button>'+ // '<button class="btn btn-sm btn-danger eliminar-carousel" title="Eliminar Carousel" id="'+index+'" style="margin-left: 5px">'+ // '<span class="fa fa-trash fa-lg"></span>'+ // '</button>'+ (element.id!=1 ?('<button class="btn btn-sm btn-danger eliminar-carousel" title="Eliminar Carousel" id="'+index+'" style="margin-left: 5px">'+ '<span class="fa fa-trash fa-lg"></span>'+ '</button>') : '')+ '</td>'; tr+='</tr>'; tbody.append(tr); }); } function validarFormulario() { var form=$("#modal_starperu .panel-body"); var b=0; var tipo=$("input[name=tipo]").val(); $.each(form.find('input,select'),function (index,input) { var element=$(input); if (element.attr('data-req')==1) { if (element.val()!="") { b++; } } }); if (tipo==1) { return b==5 ? true : false; } else{ return b>=4 ? true : false; } } function disableBotonAgregar() { var button=$("#modal_starperu .btn-success"); if (!validarFormulario()) { button.attr('disabled',true); } else{ button.attr('disabled',false); } } function resetearFormulario() { var form=$("#form-datos"); var frame=$(".table-imagen"); var msg=$(".mensajes-error .col-md-12"); var button=$("#modal_starperu .btn-success"); form[0].reset(); frame.html(''); frame.addClass('hide'); msg.empty(); button.html('<span class="fa fa-plus"></span> Agregar'); button.data('id',''); $("#tipo").val(1); $("select[name=banner]").val(1).trigger('change'); cargarFechasActuales(); } $(document).on('click','.btn-agregar-nuevo',function (arg) { resetearFormulario(); disableBotonAgregar(); $("#modal_starperu").modal({backdrop: 'static', keyboard: false}); }); $(document).on('keyup change','.input-key',function (e) { var input=$(this); disableBotonAgregar(); if (input.attr('data-req')==1) { if (this.value!="") { input.parent().removeClass("has-error"); } } }); $(document).on('click','.editar-carousel',function (arg) { resetearFormulario(); var id=this.id; var objeto=objstar[id]; var frame=$(".table-imagen"); var button=$("#modal_starperu .btn-success"); $("select[name=banner]").val(objeto.banner).trigger('change'); $("input[name=desde]").datepicker('update',objeto.desde); $("input[name=hasta]").datepicker('update',objeto.hasta); $("input[name=inicio]").val(objeto.inicio); $("input[name=fin]").val(objeto.fin); $("input[name=link]").val(objeto.link); $("input[name=url_img]").val(objeto.imagen); $("select[name=promocion]").val(objeto.promocion); $("select[name=estado]").val(objeto.estado); $("select[name=extension]").val(objeto.extension); $("select[name=prioridad]").val(objeto.prioridad); $("input[name=tipo]").val(2); $("input[name=estado_img]").val(2); frame.html('<br><div class="col-md-12"><img src="'+objeto.imagen+'" width="100%" style="height: 300px;"></div>'); frame.removeClass('hide'); disableBotonAgregar(); button.data('id',id); button.html('<span class="fa fa-save"></span> Guardar Cambios'); $("#modal_starperu").modal({backdrop: 'static', keyboard: false}); }); $(document).on('click','.eliminar-carousel',function (arg) { var id=this.id; $("#modal_eliminar_registro .btn-success").data('id',id); $("#modal_eliminar_registro").modal({backdrop: 'static', keyboard: false}); }); $(document).on('click','#modal_eliminar_registro .btn-success',function (arg) { var id=$(this).data('id'); var url_img=objstar[id].imagen; var formData='url_img='+url_img+'&tipo='+2; var button=$(this); button.html('<i class="fa fa-refresh fa-lg fa-spin"></i> Procesando'); $.ajax({ url: URLs+'starperu/Star/EliminarRegistroImagen', data: formData, type: 'POST', success: function(resultado) { button.html('<i class="fa fa-trash"></i> Sí, entendido'); if (resultado=='ok') { objstar.splice(id,1); enviarDataObjeto(); cargarListadoCarousel(); $("#modal_eliminar_registro").modal('hide'); } } }); }); $(document).on('change','select[name=promocion]',function (arg) { if (this.value==1) { $("input[name=link]").val('promociones'); $("select[name=extension]").val('html'); } else{ $("input[name=link]").val(''); } }); $(document).on('change','select[name=banner]',function (arg) { if (this.value==1) { $(".fechas").removeClass('hide'); } else{ $(".fechas").addClass('hide'); } }); $(document).on('click','.checkbox-check',function (arg) { var val=this.value.split('|'); var estado; if (val[1]==1) { this.value=val[0]+'|'+0; estado=0; } else{ this.value=val[0]+'|'+1; estado=1; } objstar[val[0]].estado=estado; enviarDataObjeto(); }); function archivoFile(evt) { var files = evt.target.files; // FileList object var frame=$(".table-imagen"); var tipo = $("input[name=tipo]").val(); if (files.length==0) { frame.html(''); $("#imagen").val(''); disableBotonAgregar(); $("input[name=estado_img]").val(2); tipo == 1 ? mostrarMsgError('Seleccione una imagen.',3) : ''; } else{ if (files[0].type =="image/jpeg" || files[0].type =="image/png" || files[0].type =="image/jpeg") { imgfile_url=URL.createObjectURL(files[0]); frame.html('<br><div class="col-md-12"><img src="'+imgfile_url +'" width="100%" style="height: 300px;"></div>'); frame.removeClass('hide'); disableBotonAgregar(); $("input[name=estado_img]").val(1); } else{ $("#imagen").val(''); frame.addClass('hide'); mostrarMsgError('No se aceptan archivos solo imagenes en formato PNG,JPG y JPEG.',1); disableBotonAgregar(); $("input[name=estado_img]").val(2); } } } $("#imagen").change(function(event) { archivoFile(event); }); function mostrarMsgError(msg,estado) { var frame=$(".mensajes-error .col-md-12"); var color; if (estado==1) { color='d23b2994'; //error->rojo } else if (estado==2) { color='8BC34A '; //success->verde } else if (estado ==3) { color='FF9800'; //warning->naranja } frame.html('<div class="alert alert-warning alert-dismissible" role="alert" style="background-color: #'+color+' !important; border-color: #'+color+'">'+ '<button type="button" class="close" data-dismiss="alert" aria-label="Close">'+ '<span aria-hidden="true">&times;</span>'+ '</button>'+ '<strong>Alerta!</strong> '+msg+ '</div>'); }
33.56686
207
0.519442
a7625d9e586d62f90e5bdb30f79d82d92bbbdb63
1,948
js
JavaScript
node-tests/blueprints/instance-initializer-test-test.js
mike-north/ember-qunit-release
9b060cbc7b26edc87c96241fc3652fb1e5d0f770
[ "MIT" ]
4
2018-07-23T06:51:31.000Z
2018-12-05T22:54:43.000Z
node-tests/blueprints/instance-initializer-test-test.js
mike-north/ember-qunit-release
9b060cbc7b26edc87c96241fc3652fb1e5d0f770
[ "MIT" ]
55
2018-07-30T14:23:05.000Z
2021-08-30T08:31:42.000Z
node-tests/blueprints/instance-initializer-test-test.js
mike-north/ember-qunit-release
9b060cbc7b26edc87c96241fc3652fb1e5d0f770
[ "MIT" ]
1
2018-09-05T03:13:06.000Z
2018-09-05T03:13:06.000Z
'use strict'; const blueprintHelpers = require('ember-cli-blueprint-test-helpers/helpers'); const setupTestHooks = blueprintHelpers.setupTestHooks; const emberNew = blueprintHelpers.emberNew; const emberGenerateDestroy = blueprintHelpers.emberGenerateDestroy; const expect = require('ember-cli-blueprint-test-helpers/chai').expect; describe('Acceptance: ember generate and destroy instance-initializer-test', function() { setupTestHooks(this); it('instance-initializer-test analytics (JS)', function() { let args = ['instance-initializer-test', 'analytics', '--inJs']; // pass any additional command line options in the arguments array return emberNew() .then(() => emberGenerateDestroy(args, (file) => { const f = file('tests/unit/instance-initializers/analytics-test.js'); expect(f).to.contain("import { initialize } from 'my-app/instance-initializers/analytics';") .contain('extends EmberTest') .contain('this.application.buildInstance()') .contain('Application.create') .contain('(assert)') ; expect(f).to.not.contain('assert: Assert'); })); }); it('instance-initializer-test analytics (TS)', function() { let args = ['instance-initializer-test', 'analytics', '--inTs']; // pass any additional command line options in the arguments array return emberNew() .then(() => emberGenerateDestroy(args, (file) => { const f = file('tests/unit/instance-initializers/analytics-test.ts'); expect(f).to.contain("import { initialize } from 'my-app/instance-initializers/analytics';") .contain('extends EmberTest') .contain('this.application.buildInstance()') .contain('Application.create') .contain('assert: Assert') ; expect(f).to.not.contain('(assert)'); })); }); });
42.347826
100
0.636037
a762716b11a2aa4359e3638ad4a5176d7294e5c4
443
js
JavaScript
tests/unit/serializers/event-sub-topic-test.js
ayushmansxn01/open-event-frontend
4b516f43b854e231b6be07b8edcb008641b24793
[ "Apache-2.0" ]
1
2021-08-18T05:43:28.000Z
2021-08-18T05:43:28.000Z
tests/unit/serializers/event-sub-topic-test.js
ayushmansxn01/open-event-frontend
4b516f43b854e231b6be07b8edcb008641b24793
[ "Apache-2.0" ]
null
null
null
tests/unit/serializers/event-sub-topic-test.js
ayushmansxn01/open-event-frontend
4b516f43b854e231b6be07b8edcb008641b24793
[ "Apache-2.0" ]
2
2021-06-16T04:01:38.000Z
2021-08-11T16:57:05.000Z
import { moduleForModel, test } from 'ember-qunit'; moduleForModel('event-sub-topic', 'Unit | Serializer | event sub topic', { needs: [ 'serializer:event-sub-topic', 'serializer:event', 'model:event-topic', 'model:event', 'model:custom-placeholder' ] }); test('it serializes records', function(assert) { let record = this.subject(); let serializedRecord = record.serialize(); assert.ok(serializedRecord); });
22.15
74
0.670429
a7629f3a02c289d4117bf937d9a26783134e47ba
565
js
JavaScript
esbuild.js
WillBooster/sample-of-one-way-git-sync
dd41b7e5596ab824d75c8c2de694b044c2afb8e5
[ "Apache-2.0" ]
null
null
null
esbuild.js
WillBooster/sample-of-one-way-git-sync
dd41b7e5596ab824d75c8c2de694b044c2afb8e5
[ "Apache-2.0" ]
1
2021-11-03T04:28:30.000Z
2021-11-03T04:28:30.000Z
esbuild.js
WillBooster/sample-of-one-way-git-sync
dd41b7e5596ab824d75c8c2de694b044c2afb8e5
[ "Apache-2.0" ]
null
null
null
const { builtinModules } = require('module'); const path = require('path'); const { build } = require('esbuild'); const packageJson = require(path.resolve('package.json')); // If you want to bundle external libraries, please add them in devDependencies const external = [...builtinModules, ...Object.keys(packageJson.dependencies ?? {})]; Promise.all([ build({ bundle: true, entryPoints: ['src/cli.ts'], external, minify: true, outfile: 'dist/cli.min.cjs', platform: 'node', sourcemap: true, target: 'node14', }), ]).then();
24.565217
85
0.651327
a762dec6b42fa9bcf996af17f883f8f1528a8bd6
209
js
JavaScript
elementary-electron/Cat Annotation/index.js
subramanyammolleti/nodeschool
5eef1a662ff6d5d4ca175f74183e3d12e2188a64
[ "MIT" ]
null
null
null
elementary-electron/Cat Annotation/index.js
subramanyammolleti/nodeschool
5eef1a662ff6d5d4ca175f74183e3d12e2188a64
[ "MIT" ]
null
null
null
elementary-electron/Cat Annotation/index.js
subramanyammolleti/nodeschool
5eef1a662ff6d5d4ca175f74183e3d12e2188a64
[ "MIT" ]
null
null
null
var picture = require('cat-picture') var image = require('lightning-image-poly') var src = picture.src picture.remove() var viz = new image('#visualization', null, [src], {hullAlgorithm: 'convex'})
29.857143
79
0.679426
a762f71f2a6b5651f42ae50df519a0d439f10fa7
504,156
js
JavaScript
api/admin/admin/build/vendor.dll.js
jvgraph/juanvargas.co
6dc5f62cd02cdbfa3be06439ce230dc75cb0ff37
[ "MIT" ]
null
null
null
api/admin/admin/build/vendor.dll.js
jvgraph/juanvargas.co
6dc5f62cd02cdbfa3be06439ce230dc75cb0ff37
[ "MIT" ]
null
null
null
api/admin/admin/build/vendor.dll.js
jvgraph/juanvargas.co
6dc5f62cd02cdbfa3be06439ce230dc75cb0ff37
[ "MIT" ]
null
null
null
var vendor_lib=function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=135)}([function(t,e,n){var r=n(2),o=n(18),i=n(11),a=n(12),u=n(19),s=function(t,e,n){var c,l,f,p,d=t&s.F,h=t&s.G,v=t&s.S,m=t&s.P,y=t&s.B,g=h?r:v?r[e]||(r[e]={}):(r[e]||{}).prototype,_=h?o:o[e]||(o[e]={}),b=_.prototype||(_.prototype={});h&&(n=e);for(c in n)l=!d&&g&&void 0!==g[c],f=(l?g:n)[c],p=y&&l?u(f,r):m&&"function"==typeof f?u(Function.call,f):f,g&&a(g,c,f,t&s.U),_[c]!=f&&i(_,c,p),m&&b[c]!=f&&(b[c]=f)};r.core=o,s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,t.exports=s},function(t,e,n){var r=n(4);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){var r=n(53)("wks"),o=n(35),i=n(2).Symbol,a="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=a&&i[t]||(a?i:o)("Symbol."+t))}).store=r},function(t,e,n){t.exports=!n(3)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(1),o=n(101),i=n(23),a=Object.defineProperty;e.f=n(6)?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(25),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e,n){var r=n(24);t.exports=function(t){return Object(r(t))}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){var r=n(7),o=n(34);t.exports=n(6)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(2),o=n(11),i=n(14),a=n(35)("src"),u=Function.toString,s=(""+u).split("toString");n(18).inspectSource=function(t){return u.call(t)},(t.exports=function(t,e,n,u){var c="function"==typeof n;c&&(i(n,"name")||o(n,"name",e)),t[e]!==n&&(c&&(i(n,a)||o(n,a,t[e]?""+t[e]:s.join(String(e)))),t===r?t[e]=n:u?t[e]?t[e]=n:o(t,e,n):(delete t[e],o(t,e,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[a]||u.call(this)})},function(t,e,n){var r=n(0),o=n(3),i=n(24),a=/"/g,u=function(t,e,n,r){var o=String(i(t)),u="<"+e;return""!==n&&(u+=" "+n+'="'+String(r).replace(a,"&quot;")+'"'),u+">"+o+"</"+e+">"};t.exports=function(t,e){var n={};n[t]=e(u),r(r.P+r.F*o(function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3}),"String",n)}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var r=n(48),o=n(24);t.exports=function(t){return r(o(t))}},function(t,e,n){var r=n(49),o=n(34),i=n(15),a=n(23),u=n(14),s=n(101),c=Object.getOwnPropertyDescriptor;e.f=n(6)?c:function(t,e){if(t=i(t),e=a(e,!0),s)try{return c(t,e)}catch(t){}if(u(t,e))return o(!r.f.call(t,e),t[e])}},function(t,e,n){var r=n(14),o=n(9),i=n(70)("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},function(t,e){var n=t.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},function(t,e,n){var r=n(10);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){"use strict";var r=n(3);t.exports=function(t,e){return!!t&&r(function(){e?t.call(null,function(){},1):t.call(null)})}},function(t,e,n){"use strict";t.exports=n(136)},function(t,e,n){var r=n(4);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(0),o=n(18),i=n(3);t.exports=function(t,e){var n=(o.Object||{})[t]||Object[t],a={};a[t]=e(n),r(r.S+r.F*i(function(){n(1)}),"Object",a)}},function(t,e,n){var r=n(19),o=n(48),i=n(9),a=n(8),u=n(87);t.exports=function(t,e){var n=1==t,s=2==t,c=3==t,l=4==t,f=6==t,p=5==t||f,d=e||u;return function(e,u,h){for(var v,m,y=i(e),g=o(y),_=r(u,h,3),b=a(g.length),w=0,x=n?d(e,b):s?d(e,0):void 0;b>w;w++)if((p||w in g)&&(v=g[w],m=_(v,w,y),t))if(n)x[w]=m;else if(m)switch(t){case 3:return!0;case 5:return v;case 6:return w;case 2:x.push(v)}else if(l)return!1;return f?-1:c||l?l:x}}},function(t,e,n){"use strict";if(n(6)){var r=n(32),o=n(2),i=n(3),a=n(0),u=n(64),s=n(93),c=n(19),l=n(41),f=n(34),p=n(11),d=n(43),h=n(25),v=n(8),m=n(127),y=n(37),g=n(23),_=n(14),b=n(50),w=n(4),x=n(9),E=n(84),T=n(38),O=n(17),k=n(39).f,S=n(86),N=n(35),C=n(5),P=n(27),M=n(54),j=n(61),I=n(89),A=n(46),R=n(58),D=n(40),F=n(88),L=n(117),z=n(7),U=n(16),W=z.f,B=U.f,q=o.RangeError,V=o.TypeError,G=o.Uint8Array,H=Array.prototype,K=s.ArrayBuffer,$=s.DataView,Y=P(0),X=P(2),J=P(3),Q=P(4),Z=P(5),tt=P(6),et=M(!0),nt=M(!1),rt=I.values,ot=I.keys,it=I.entries,at=H.lastIndexOf,ut=H.reduce,st=H.reduceRight,ct=H.join,lt=H.sort,ft=H.slice,pt=H.toString,dt=H.toLocaleString,ht=C("iterator"),vt=C("toStringTag"),mt=N("typed_constructor"),yt=N("def_constructor"),gt=u.CONSTR,_t=u.TYPED,bt=u.VIEW,wt=P(1,function(t,e){return kt(j(t,t[yt]),e)}),xt=i(function(){return 1===new G(new Uint16Array([1]).buffer)[0]}),Et=!!G&&!!G.prototype.set&&i(function(){new G(1).set({})}),Tt=function(t,e){var n=h(t);if(n<0||n%e)throw q("Wrong offset!");return n},Ot=function(t){if(w(t)&&_t in t)return t;throw V(t+" is not a typed array!")},kt=function(t,e){if(!(w(t)&&mt in t))throw V("It is not a typed array constructor!");return new t(e)},St=function(t,e){return Nt(j(t,t[yt]),e)},Nt=function(t,e){for(var n=0,r=e.length,o=kt(t,r);r>n;)o[n]=e[n++];return o},Ct=function(t,e,n){W(t,e,{get:function(){return this._d[n]}})},Pt=function(t){var e,n,r,o,i,a,u=x(t),s=arguments.length,l=s>1?arguments[1]:void 0,f=void 0!==l,p=S(u);if(void 0!=p&&!E(p)){for(a=p.call(u),r=[],e=0;!(i=a.next()).done;e++)r.push(i.value);u=r}for(f&&s>2&&(l=c(l,arguments[2],2)),e=0,n=v(u.length),o=kt(this,n);n>e;e++)o[e]=f?l(u[e],e):u[e];return o},Mt=function(){for(var t=0,e=arguments.length,n=kt(this,e);e>t;)n[t]=arguments[t++];return n},jt=!!G&&i(function(){dt.call(new G(1))}),It=function(){return dt.apply(jt?ft.call(Ot(this)):Ot(this),arguments)},At={copyWithin:function(t,e){return L.call(Ot(this),t,e,arguments.length>2?arguments[2]:void 0)},every:function(t){return Q(Ot(this),t,arguments.length>1?arguments[1]:void 0)},fill:function(t){return F.apply(Ot(this),arguments)},filter:function(t){return St(this,X(Ot(this),t,arguments.length>1?arguments[1]:void 0))},find:function(t){return Z(Ot(this),t,arguments.length>1?arguments[1]:void 0)},findIndex:function(t){return tt(Ot(this),t,arguments.length>1?arguments[1]:void 0)},forEach:function(t){Y(Ot(this),t,arguments.length>1?arguments[1]:void 0)},indexOf:function(t){return nt(Ot(this),t,arguments.length>1?arguments[1]:void 0)},includes:function(t){return et(Ot(this),t,arguments.length>1?arguments[1]:void 0)},join:function(t){return ct.apply(Ot(this),arguments)},lastIndexOf:function(t){return at.apply(Ot(this),arguments)},map:function(t){return wt(Ot(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function(t){return ut.apply(Ot(this),arguments)},reduceRight:function(t){return st.apply(Ot(this),arguments)},reverse:function(){for(var t,e=this,n=Ot(e).length,r=Math.floor(n/2),o=0;o<r;)t=e[o],e[o++]=e[--n],e[n]=t;return e},some:function(t){return J(Ot(this),t,arguments.length>1?arguments[1]:void 0)},sort:function(t){return lt.call(Ot(this),t)},subarray:function(t,e){var n=Ot(this),r=n.length,o=y(t,r);return new(j(n,n[yt]))(n.buffer,n.byteOffset+o*n.BYTES_PER_ELEMENT,v((void 0===e?r:y(e,r))-o))}},Rt=function(t,e){return St(this,ft.call(Ot(this),t,e))},Dt=function(t){Ot(this);var e=Tt(arguments[1],1),n=this.length,r=x(t),o=v(r.length),i=0;if(o+e>n)throw q("Wrong length!");for(;i<o;)this[e+i]=r[i++]},Ft={entries:function(){return it.call(Ot(this))},keys:function(){return ot.call(Ot(this))},values:function(){return rt.call(Ot(this))}},Lt=function(t,e){return w(t)&&t[_t]&&"symbol"!=typeof e&&e in t&&String(+e)==String(e)},zt=function(t,e){return Lt(t,e=g(e,!0))?f(2,t[e]):B(t,e)},Ut=function(t,e,n){return!(Lt(t,e=g(e,!0))&&w(n)&&_(n,"value"))||_(n,"get")||_(n,"set")||n.configurable||_(n,"writable")&&!n.writable||_(n,"enumerable")&&!n.enumerable?W(t,e,n):(t[e]=n.value,t)};gt||(U.f=zt,z.f=Ut),a(a.S+a.F*!gt,"Object",{getOwnPropertyDescriptor:zt,defineProperty:Ut}),i(function(){pt.call({})})&&(pt=dt=function(){return ct.call(this)});var Wt=d({},At);d(Wt,Ft),p(Wt,ht,Ft.values),d(Wt,{slice:Rt,set:Dt,constructor:function(){},toString:pt,toLocaleString:It}),Ct(Wt,"buffer","b"),Ct(Wt,"byteOffset","o"),Ct(Wt,"byteLength","l"),Ct(Wt,"length","e"),W(Wt,vt,{get:function(){return this[_t]}}),t.exports=function(t,e,n,s){s=!!s;var c=t+(s?"Clamped":"")+"Array",f="get"+t,d="set"+t,h=o[c],y=h||{},g=h&&O(h),_=!h||!u.ABV,x={},E=h&&h.prototype,S=function(t,n){var r=t._d;return r.v[f](n*e+r.o,xt)},N=function(t,n,r){var o=t._d;s&&(r=(r=Math.round(r))<0?0:r>255?255:255&r),o.v[d](n*e+o.o,r,xt)},C=function(t,e){W(t,e,{get:function(){return S(this,e)},set:function(t){return N(this,e,t)},enumerable:!0})};_?(h=n(function(t,n,r,o){l(t,h,c,"_d");var i,a,u,s,f=0,d=0;if(w(n)){if(!(n instanceof K||"ArrayBuffer"==(s=b(n))||"SharedArrayBuffer"==s))return _t in n?Nt(h,n):Pt.call(h,n);i=n,d=Tt(r,e);var y=n.byteLength;if(void 0===o){if(y%e)throw q("Wrong length!");if((a=y-d)<0)throw q("Wrong length!")}else if((a=v(o)*e)+d>y)throw q("Wrong length!");u=a/e}else u=m(n),a=u*e,i=new K(a);for(p(t,"_d",{b:i,o:d,l:a,e:u,v:new $(i)});f<u;)C(t,f++)}),E=h.prototype=T(Wt),p(E,"constructor",h)):i(function(){h(1)})&&i(function(){new h(-1)})&&R(function(t){new h,new h(null),new h(1.5),new h(t)},!0)||(h=n(function(t,n,r,o){l(t,h,c);var i;return w(n)?n instanceof K||"ArrayBuffer"==(i=b(n))||"SharedArrayBuffer"==i?void 0!==o?new y(n,Tt(r,e),o):void 0!==r?new y(n,Tt(r,e)):new y(n):_t in n?Nt(h,n):Pt.call(h,n):new y(m(n))}),Y(g!==Function.prototype?k(y).concat(k(g)):k(y),function(t){t in h||p(h,t,y[t])}),h.prototype=E,r||(E.constructor=h));var P=E[ht],M=!!P&&("values"==P.name||void 0==P.name),j=Ft.values;p(h,mt,!0),p(E,_t,c),p(E,bt,!0),p(E,yt,h),(s?new h(1)[vt]==c:vt in E)||W(E,vt,{get:function(){return c}}),x[c]=h,a(a.G+a.W+a.F*(h!=y),x),a(a.S,c,{BYTES_PER_ELEMENT:e}),a(a.S+a.F*i(function(){y.of.call(h,1)}),c,{from:Pt,of:Mt}),"BYTES_PER_ELEMENT"in E||p(E,"BYTES_PER_ELEMENT",e),a(a.P,c,At),D(c),a(a.P+a.F*Et,c,{set:Dt}),a(a.P+a.F*!M,c,Ft),r||E.toString==pt||(E.toString=pt),a(a.P+a.F*i(function(){new h(1).slice()}),c,{slice:Rt}),a(a.P+a.F*(i(function(){return[1,2].toLocaleString()!=new h([1,2]).toLocaleString()})||!i(function(){E.toLocaleString.call([1,2])})),c,{toLocaleString:It}),A[c]=M?P:j,r||M||p(E,ht,j)}}else t.exports=function(){}},function(t,e,n){var r=n(122),o=n(0),i=n(53)("metadata"),a=i.store||(i.store=new(n(125))),u=function(t,e,n){var o=a.get(t);if(!o){if(!n)return;a.set(t,o=new r)}var i=o.get(e);if(!i){if(!n)return;o.set(e,i=new r)}return i},s=function(t,e,n){var r=u(e,n,!1);return void 0!==r&&r.has(t)},c=function(t,e,n){var r=u(e,n,!1);return void 0===r?void 0:r.get(t)},l=function(t,e,n,r){u(n,r,!0).set(t,e)},f=function(t,e){var n=u(t,e,!1),r=[];return n&&n.forEach(function(t,e){r.push(e)}),r},p=function(t){return void 0===t||"symbol"==typeof t?t:String(t)},d=function(t){o(o.S,"Reflect",t)};t.exports={store:a,map:u,has:s,get:c,set:l,keys:f,key:p,exp:d}},function(t,e,n){t.exports=n(152)()},function(t,e,n){var r=n(35)("meta"),o=n(4),i=n(14),a=n(7).f,u=0,s=Object.isExtensible||function(){return!0},c=!n(3)(function(){return s(Object.preventExtensions({}))}),l=function(t){a(t,r,{value:{i:"O"+ ++u,w:{}}})},f=function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,r)){if(!s(t))return"F";if(!e)return"E";l(t)}return t[r].i},p=function(t,e){if(!i(t,r)){if(!s(t))return!0;if(!e)return!1;l(t)}return t[r].w},d=function(t){return c&&h.NEED&&s(t)&&!i(t,r)&&l(t),t},h=t.exports={KEY:r,NEED:!1,fastKey:f,getWeak:p,onFreeze:d}},function(t,e){t.exports=!1},function(t,e,n){var r=n(5)("unscopables"),o=Array.prototype;void 0==o[r]&&n(11)(o,r,{}),t.exports=function(t){o[r][t]=!0}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e,n){var r=n(103),o=n(71);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e,n){var r=n(25),o=Math.max,i=Math.min;t.exports=function(t,e){return t=r(t),t<0?o(t+e,0):i(t,e)}},function(t,e,n){var r=n(1),o=n(104),i=n(71),a=n(70)("IE_PROTO"),u=function(){},s=function(){var t,e=n(68)("iframe"),r=i.length;for(e.style.display="none",n(72).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("<script>document.F=Object<\/script>"),t.close(),s=t.F;r--;)delete s.prototype[i[r]];return s()};t.exports=Object.create||function(t,e){var n;return null!==t?(u.prototype=r(t),n=new u,u.prototype=null,n[a]=t):n=s(),void 0===e?n:o(n,e)}},function(t,e,n){var r=n(103),o=n(71).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e,n){"use strict";var r=n(2),o=n(7),i=n(6),a=n(5)("species");t.exports=function(t){var e=r[t];i&&e&&!e[a]&&o.f(e,a,{configurable:!0,get:function(){return this}})}},function(t,e){t.exports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},function(t,e,n){var r=n(19),o=n(115),i=n(84),a=n(1),u=n(8),s=n(86),c={},l={},e=t.exports=function(t,e,n,f,p){var d,h,v,m,y=p?function(){return t}:s(t),g=r(n,f,e?2:1),_=0;if("function"!=typeof y)throw TypeError(t+" is not iterable!");if(i(y)){for(d=u(t.length);d>_;_++)if((m=e?g(a(h=t[_])[0],h[1]):g(t[_]))===c||m===l)return m}else for(v=y.call(t);!(h=v.next()).done;)if((m=o(v,g,h.value,e))===c||m===l)return m};e.BREAK=c,e.RETURN=l},function(t,e,n){var r=n(12);t.exports=function(t,e,n){for(var o in e)r(t,o,e[o],n);return t}},function(t,e,n){var r=n(7).f,o=n(14),i=n(5)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},function(t,e,n){var r=n(0),o=n(24),i=n(3),a=n(74),u="["+a+"]",s="​…",c=RegExp("^"+u+u+"*"),l=RegExp(u+u+"*$"),f=function(t,e,n){var o={},u=i(function(){return!!a[t]()||s[t]()!=s}),c=o[t]=u?e(p):a[t];n&&(o[n]=c),r(r.P+r.F*u,"String",o)},p=f.trim=function(t,e){return t=String(o(t)),1&e&&(t=t.replace(c,"")),2&e&&(t=t.replace(l,"")),t};t.exports=f},function(t,e){t.exports={}},function(t,e,n){var r=n(4);t.exports=function(t,e){if(!r(t)||t._t!==e)throw TypeError("Incompatible receiver, "+e+" required!");return t}},function(t,e,n){var r=n(20);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){var r=n(20),o=n(5)("toStringTag"),i="Arguments"==r(function(){return arguments}()),a=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,n,u;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=a(e=Object(t),o))?n:i?r(e):"Object"==(u=r(e))&&"function"==typeof e.callee?"Arguments":u}},function(t,e,n){"use strict";function r(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(t){console.error(t)}}r(),t.exports=n(137)},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){var r=n(18),o=n(2),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n(32)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(t,e,n){var r=n(15),o=n(8),i=n(37);t.exports=function(t){return function(e,n,a){var u,s=r(e),c=o(s.length),l=i(a,c);if(t&&n!=n){for(;c>l;)if((u=s[l++])!=u)return!0}else for(;c>l;l++)if((t||l in s)&&s[l]===n)return t||l||0;return!t&&-1}}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(20);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(4),o=n(20),i=n(5)("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[i])?!!e:"RegExp"==o(t))}},function(t,e,n){var r=n(5)("iterator"),o=!1;try{var i=[7][r]();i.return=function(){o=!0},Array.from(i,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var i=[7],a=i[r]();a.next=function(){return{done:n=!0}},i[r]=function(){return a},t(i)}catch(t){}return n}},function(t,e,n){"use strict";var r=n(1);t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},function(t,e,n){"use strict";var r=n(11),o=n(12),i=n(3),a=n(24),u=n(5);t.exports=function(t,e,n){var s=u(t),c=n(a,s,""[t]),l=c[0],f=c[1];i(function(){var e={};return e[s]=function(){return 7},7!=""[t](e)})&&(o(String.prototype,t,l),r(RegExp.prototype,s,2==e?function(t,e){return f.call(t,this,e)}:function(t){return f.call(t,this)}))}},function(t,e,n){var r=n(1),o=n(10),i=n(5)("species");t.exports=function(t,e){var n,a=r(t).constructor;return void 0===a||void 0==(n=r(a)[i])?e:o(n)}},function(t,e,n){var r=n(2),o=r.navigator;t.exports=o&&o.userAgent||""},function(t,e,n){"use strict";var r=n(2),o=n(0),i=n(12),a=n(43),u=n(31),s=n(42),c=n(41),l=n(4),f=n(3),p=n(58),d=n(44),h=n(75);t.exports=function(t,e,n,v,m,y){var g=r[t],_=g,b=m?"set":"add",w=_&&_.prototype,x={},E=function(t){var e=w[t];i(w,t,"delete"==t?function(t){return!(y&&!l(t))&&e.call(this,0===t?0:t)}:"has"==t?function(t){return!(y&&!l(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return y&&!l(t)?void 0:e.call(this,0===t?0:t)}:"add"==t?function(t){return e.call(this,0===t?0:t),this}:function(t,n){return e.call(this,0===t?0:t,n),this})};if("function"==typeof _&&(y||w.forEach&&!f(function(){(new _).entries().next()}))){var T=new _,O=T[b](y?{}:-0,1)!=T,k=f(function(){T.has(1)}),S=p(function(t){new _(t)}),N=!y&&f(function(){for(var t=new _,e=5;e--;)t[b](e,e);return!t.has(-0)});S||(_=e(function(e,n){c(e,_,t);var r=h(new g,e,_);return void 0!=n&&s(n,m,r[b],r),r}),_.prototype=w,w.constructor=_),(k||N)&&(E("delete"),E("has"),m&&E("get")),(N||O)&&E(b),y&&w.clear&&delete w.clear}else _=v.getConstructor(e,t,m,b),a(_.prototype,n),u.NEED=!0;return d(_,t),x[t]=_,o(o.G+o.W+o.F*(_!=g),x),y||v.setStrong(_,t,m),_}},function(t,e,n){for(var r,o=n(2),i=n(11),a=n(35),u=a("typed_array"),s=a("view"),c=!(!o.ArrayBuffer||!o.DataView),l=c,f=0,p="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");f<9;)(r=o[p[f++]])?(i(r.prototype,u,!0),i(r.prototype,s,!0)):l=!1;t.exports={ABV:c,CONSTR:l,TYPED:u,VIEW:s}},function(t,e,n){"use strict";t.exports=n(32)||!n(3)(function(){var t=Math.random();__defineSetter__.call(null,t,function(){}),delete n(2)[t]})},function(t,e,n){"use strict";var r=n(0);t.exports=function(t){r(r.S,t,{of:function(){for(var t=arguments.length,e=new Array(t);t--;)e[t]=arguments[t];return new this(e)}})}},function(t,e,n){"use strict";var r=n(0),o=n(10),i=n(19),a=n(42);t.exports=function(t){r(r.S,t,{from:function(t){var e,n,r,u,s=arguments[1];return o(this),e=void 0!==s,e&&o(s),void 0==t?new this:(n=[],e?(r=0,u=i(s,arguments[2],2),a(t,!1,function(t){n.push(u(t,r++))})):a(t,!1,n.push,n),new this(n))}})}},function(t,e,n){var r=n(4),o=n(2).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,e,n){var r=n(2),o=n(18),i=n(32),a=n(102),u=n(7).f;t.exports=function(t){var e=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||u(e,t,{value:a.f(t)})}},function(t,e,n){var r=n(53)("keys"),o=n(35);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){var r=n(2).document;t.exports=r&&r.documentElement},function(t,e,n){var r=n(4),o=n(1),i=function(t,e){if(o(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,r){try{r=n(19)(Function.call,n(16).f(Object.prototype,"__proto__").set,2),r(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,n){return i(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):void 0),check:i}},function(t,e){t.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},function(t,e,n){var r=n(4),o=n(73).set;t.exports=function(t,e,n){var i,a=e.constructor;return a!==n&&"function"==typeof a&&(i=a.prototype)!==n.prototype&&r(i)&&o&&o(t,i),t}},function(t,e,n){"use strict";var r=n(25),o=n(24);t.exports=function(t){var e=String(o(this)),n="",i=r(t);if(i<0||i==1/0)throw RangeError("Count can't be negative");for(;i>0;(i>>>=1)&&(e+=e))1&i&&(n+=e);return n}},function(t,e){t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},function(t,e){var n=Math.expm1;t.exports=!n||n(10)>22025.465794806718||n(10)<22025.465794806718||-2e-17!=n(-2e-17)?function(t){return 0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:Math.exp(t)-1}:n},function(t,e,n){var r=n(25),o=n(24);t.exports=function(t){return function(e,n){var i,a,u=String(o(e)),s=r(n),c=u.length;return s<0||s>=c?t?"":void 0:(i=u.charCodeAt(s),i<55296||i>56319||s+1===c||(a=u.charCodeAt(s+1))<56320||a>57343?t?u.charAt(s):i:t?u.slice(s,s+2):a-56320+(i-55296<<10)+65536)}}},function(t,e,n){"use strict";var r=n(32),o=n(0),i=n(12),a=n(11),u=n(46),s=n(81),c=n(44),l=n(17),f=n(5)("iterator"),p=!([].keys&&"next"in[].keys()),d=function(){return this};t.exports=function(t,e,n,h,v,m,y){s(n,e,h);var g,_,b,w=function(t){if(!p&&t in O)return O[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},x=e+" Iterator",E="values"==v,T=!1,O=t.prototype,k=O[f]||O["@@iterator"]||v&&O[v],S=k||w(v),N=v?E?w("entries"):S:void 0,C="Array"==e?O.entries||k:k;if(C&&(b=l(C.call(new t)))!==Object.prototype&&b.next&&(c(b,x,!0),r||"function"==typeof b[f]||a(b,f,d)),E&&k&&"values"!==k.name&&(T=!0,S=function(){return k.call(this)}),r&&!y||!p&&!T&&O[f]||a(O,f,S),u[e]=S,u[x]=d,v)if(g={values:E?S:w("values"),keys:m?S:w("keys"),entries:N},y)for(_ in g)_ in O||i(O,_,g[_]);else o(o.P+o.F*(p||T),e,g);return g}},function(t,e,n){"use strict";var r=n(38),o=n(34),i=n(44),a={};n(11)(a,n(5)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(a,{next:o(1,n)}),i(t,e+" Iterator")}},function(t,e,n){var r=n(57),o=n(24);t.exports=function(t,e,n){if(r(e))throw TypeError("String#"+n+" doesn't accept regex!");return String(o(t))}},function(t,e,n){var r=n(5)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[r]=!1,!"/./"[t](e)}catch(t){}}return!0}},function(t,e,n){var r=n(46),o=n(5)("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||i[o]===t)}},function(t,e,n){"use strict";var r=n(7),o=n(34);t.exports=function(t,e,n){e in t?r.f(t,e,o(0,n)):t[e]=n}},function(t,e,n){var r=n(50),o=n(5)("iterator"),i=n(46);t.exports=n(18).getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||i[r(t)]}},function(t,e,n){var r=n(266);t.exports=function(t,e){return new(r(t))(e)}},function(t,e,n){"use strict";var r=n(9),o=n(37),i=n(8);t.exports=function(t){for(var e=r(this),n=i(e.length),a=arguments.length,u=o(a>1?arguments[1]:void 0,n),s=a>2?arguments[2]:void 0,c=void 0===s?n:o(s,n);c>u;)e[u++]=t;return e}},function(t,e,n){"use strict";var r=n(33),o=n(118),i=n(46),a=n(15);t.exports=n(80)(Array,"Array",function(t,e){this._t=a(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,o(1)):"keys"==e?o(0,n):"values"==e?o(0,t[n]):o(0,[n,t[n]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(t,e,n){var r,o,i,a=n(19),u=n(108),s=n(72),c=n(68),l=n(2),f=l.process,p=l.setImmediate,d=l.clearImmediate,h=l.MessageChannel,v=l.Dispatch,m=0,y={},g=function(){var t=+this;if(y.hasOwnProperty(t)){var e=y[t];delete y[t],e()}},_=function(t){g.call(t.data)};p&&d||(p=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return y[++m]=function(){u("function"==typeof t?t:Function(t),e)},r(m),m},d=function(t){delete y[t]},"process"==n(20)(f)?r=function(t){f.nextTick(a(g,t,1))}:v&&v.now?r=function(t){v.now(a(g,t,1))}:h?(o=new h,i=o.port2,o.port1.onmessage=_,r=a(i.postMessage,i,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(r=function(t){l.postMessage(t+"","*")},l.addEventListener("message",_,!1)):r="onreadystatechange"in c("script")?function(t){s.appendChild(c("script")).onreadystatechange=function(){s.removeChild(this),g.call(t)}}:function(t){setTimeout(a(g,t,1),0)}),t.exports={set:p,clear:d}},function(t,e,n){var r=n(2),o=n(90).set,i=r.MutationObserver||r.WebKitMutationObserver,a=r.process,u=r.Promise,s="process"==n(20)(a);t.exports=function(){var t,e,n,c=function(){var r,o;for(s&&(r=a.domain)&&r.exit();t;){o=t.fn,t=t.next;try{o()}catch(r){throw t?n():e=void 0,r}}e=void 0,r&&r.enter()};if(s)n=function(){a.nextTick(c)};else if(!i||r.navigator&&r.navigator.standalone)if(u&&u.resolve){var l=u.resolve(void 0);n=function(){l.then(c)}}else n=function(){o.call(r,c)};else{var f=!0,p=document.createTextNode("");new i(c).observe(p,{characterData:!0}),n=function(){p.data=f=!f}}return function(r){var o={fn:r,next:void 0};e&&(e.next=o),t||(t=o,n()),e=o}}},function(t,e,n){"use strict";function r(t){var e,n;this.promise=new t(function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r}),this.resolve=o(e),this.reject=o(n)}var o=n(10);t.exports.f=function(t){return new r(t)}},function(t,e,n){"use strict";function r(t,e,n){var r,o,i,a=new Array(n),u=8*n-e-1,s=(1<<u)-1,c=s>>1,l=23===e?L(2,-24)-L(2,-77):0,f=0,p=t<0||0===t&&1/t<0?1:0;for(t=F(t),t!=t||t===R?(o=t!=t?1:0,r=s):(r=z(U(t)/W),t*(i=L(2,-r))<1&&(r--,i*=2),t+=r+c>=1?l/i:l*L(2,1-c),t*i>=2&&(r++,i/=2),r+c>=s?(o=0,r=s):r+c>=1?(o=(t*i-1)*L(2,e),r+=c):(o=t*L(2,c-1)*L(2,e),r=0));e>=8;a[f++]=255&o,o/=256,e-=8);for(r=r<<e|o,u+=e;u>0;a[f++]=255&r,r/=256,u-=8);return a[--f]|=128*p,a}function o(t,e,n){var r,o=8*n-e-1,i=(1<<o)-1,a=i>>1,u=o-7,s=n-1,c=t[s--],l=127&c;for(c>>=7;u>0;l=256*l+t[s],s--,u-=8);for(r=l&(1<<-u)-1,l>>=-u,u+=e;u>0;r=256*r+t[s],s--,u-=8);if(0===l)l=1-a;else{if(l===i)return r?NaN:c?-R:R;r+=L(2,e),l-=a}return(c?-1:1)*r*L(2,l-e)}function i(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]}function a(t){return[255&t]}function u(t){return[255&t,t>>8&255]}function s(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function c(t){return r(t,52,8)}function l(t){return r(t,23,4)}function f(t,e,n){k(t[C],e,{get:function(){return this[n]}})}function p(t,e,n,r){var o=+n,i=T(o);if(i+e>t[q])throw A(P);var a=t[B]._b,u=i+t[V],s=a.slice(u,u+e);return r?s:s.reverse()}function d(t,e,n,r,o,i){var a=+n,u=T(a);if(u+e>t[q])throw A(P);for(var s=t[B]._b,c=u+t[V],l=r(+o),f=0;f<e;f++)s[c+f]=l[i?f:e-f-1]}var h=n(2),v=n(6),m=n(32),y=n(64),g=n(11),_=n(43),b=n(3),w=n(41),x=n(25),E=n(8),T=n(127),O=n(39).f,k=n(7).f,S=n(88),N=n(44),C="prototype",P="Wrong index!",M=h.ArrayBuffer,j=h.DataView,I=h.Math,A=h.RangeError,R=h.Infinity,D=M,F=I.abs,L=I.pow,z=I.floor,U=I.log,W=I.LN2,B=v?"_b":"buffer",q=v?"_l":"byteLength",V=v?"_o":"byteOffset";if(y.ABV){if(!b(function(){M(1)})||!b(function(){new M(-1)})||b(function(){return new M,new M(1.5),new M(NaN),"ArrayBuffer"!=M.name})){M=function(t){return w(this,M),new D(T(t))};for(var G,H=M[C]=D[C],K=O(D),$=0;K.length>$;)(G=K[$++])in M||g(M,G,D[G]);m||(H.constructor=M)}var Y=new j(new M(2)),X=j[C].setInt8;Y.setInt8(0,2147483648),Y.setInt8(1,2147483649),!Y.getInt8(0)&&Y.getInt8(1)||_(j[C],{setInt8:function(t,e){X.call(this,t,e<<24>>24)},setUint8:function(t,e){X.call(this,t,e<<24>>24)}},!0)}else M=function(t){w(this,M,"ArrayBuffer");var e=T(t);this._b=S.call(new Array(e),0),this[q]=e},j=function(t,e,n){w(this,j,"DataView"),w(t,M,"DataView");var r=t[q],o=x(e);if(o<0||o>r)throw A("Wrong offset!");if(n=void 0===n?r-o:E(n),o+n>r)throw A("Wrong length!");this[B]=t,this[V]=o,this[q]=n},v&&(f(M,"byteLength","_l"),f(j,"buffer","_b"),f(j,"byteLength","_l"),f(j,"byteOffset","_o")),_(j[C],{getInt8:function(t){return p(this,1,t)[0]<<24>>24},getUint8:function(t){return p(this,1,t)[0]},getInt16:function(t){var e=p(this,2,t,arguments[1]);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=p(this,2,t,arguments[1]);return e[1]<<8|e[0]},getInt32:function(t){return i(p(this,4,t,arguments[1]))},getUint32:function(t){return i(p(this,4,t,arguments[1]))>>>0},getFloat32:function(t){return o(p(this,4,t,arguments[1]),23,4)},getFloat64:function(t){return o(p(this,8,t,arguments[1]),52,8)},setInt8:function(t,e){d(this,1,t,a,e)},setUint8:function(t,e){d(this,1,t,a,e)},setInt16:function(t,e){d(this,2,t,u,e,arguments[2])},setUint16:function(t,e){d(this,2,t,u,e,arguments[2])},setInt32:function(t,e){d(this,4,t,s,e,arguments[2])},setUint32:function(t,e){d(this,4,t,s,e,arguments[2])},setFloat32:function(t,e){d(this,4,t,l,e,arguments[2])},setFloat64:function(t,e){d(this,8,t,c,e,arguments[2])}});N(M,"ArrayBuffer"),N(j,"DataView"),g(j[C],y.VIEW,!0),e.ArrayBuffer=M,e.DataView=j},function(t,e,n){"use strict";function r(t){if(null===t||void 0===t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}/* object-assign (c) Sindre Sorhus @license MIT */ var o=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map(function(t){return e[t]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(t){r[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var n,u,s=r(t),c=1;c<arguments.length;c++){n=Object(arguments[c]);for(var l in n)i.call(n,l)&&(s[l]=n[l]);if(o){u=o(n);for(var f=0;f<u.length;f++)a.call(n,u[f])&&(s[u[f]]=n[u[f]])}}return s}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(142),o=n(146);r.default.__addLocaleData(o.default),r.default.defaultLocale="en",e.default=r.default},function(t,e,n){"use strict";function r(t){var e,n,r,i,a=Array.prototype.slice.call(arguments,1);for(e=0,n=a.length;e<n;e+=1)if(r=a[e])for(i in r)o.call(r,i)&&(t[i]=r[i]);return t}Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"hop",function(){return o}),e.extend=r;var o=Object.prototype.hasOwnProperty},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(){}e.__esModule=!0,e.EXITING=e.ENTERED=e.ENTERING=e.EXITED=e.UNMOUNTED=void 0;var c=n(30),l=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(c),f=n(22),p=r(f),d=n(51),h=r(d),v=n(98),m=(n(99),e.UNMOUNTED="unmounted"),y=e.EXITED="exited",g=e.ENTERING="entering",_=e.ENTERED="entered",b=e.EXITING="exiting",w=function(t){function e(n,r){i(this,e);var o=a(this,t.call(this,n,r)),u=r.transitionGroup,s=u&&!u.isMounting?n.enter:n.appear,c=void 0;return o.appearStatus=null,n.in?s?(c=y,o.appearStatus=g):c=_:c=n.unmountOnExit||n.mountOnEnter?m:y,o.state={status:c},o.nextCallback=null,o}return u(e,t),e.prototype.getChildContext=function(){return{transitionGroup:null}},e.getDerivedStateFromProps=function(t,e){return t.in&&e.status===m?{status:y}:null},e.prototype.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},e.prototype.componentDidUpdate=function(t){var e=null;if(t!==this.props){var n=this.state.status;this.props.in?n!==g&&n!==_&&(e=g):n!==g&&n!==_||(e=b)}this.updateStatus(!1,e)},e.prototype.componentWillUnmount=function(){this.cancelNextCallback()},e.prototype.getTimeouts=function(){var t=this.props.timeout,e=void 0,n=void 0,r=void 0;return e=n=r=t,null!=t&&"number"!=typeof t&&(e=t.exit,n=t.enter,r=t.appear),{exit:e,enter:n,appear:r}},e.prototype.updateStatus=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments[1];if(null!==e){this.cancelNextCallback();var n=h.default.findDOMNode(this);e===g?this.performEnter(n,t):this.performExit(n)}else this.props.unmountOnExit&&this.state.status===y&&this.setState({status:m})},e.prototype.performEnter=function(t,e){var n=this,r=this.props.enter,o=this.context.transitionGroup?this.context.transitionGroup.isMounting:e,i=this.getTimeouts();if(!e&&!r)return void this.safeSetState({status:_},function(){n.props.onEntered(t)});this.props.onEnter(t,o),this.safeSetState({status:g},function(){n.props.onEntering(t,o),n.onTransitionEnd(t,i.enter,function(){n.safeSetState({status:_},function(){n.props.onEntered(t,o)})})})},e.prototype.performExit=function(t){var e=this,n=this.props.exit,r=this.getTimeouts();if(!n)return void this.safeSetState({status:y},function(){e.props.onExited(t)});this.props.onExit(t),this.safeSetState({status:b},function(){e.props.onExiting(t),e.onTransitionEnd(t,r.exit,function(){e.safeSetState({status:y},function(){e.props.onExited(t)})})})},e.prototype.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},e.prototype.safeSetState=function(t,e){e=this.setNextCallback(e),this.setState(t,e)},e.prototype.setNextCallback=function(t){var e=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,e.nextCallback=null,t(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},e.prototype.onTransitionEnd=function(t,e,n){this.setNextCallback(n),t?(this.props.addEndListener&&this.props.addEndListener(t,this.nextCallback),null!=e&&setTimeout(this.nextCallback,e)):setTimeout(this.nextCallback,0)},e.prototype.render=function(){var t=this.state.status;if(t===m)return null;var e=this.props,n=e.children,r=o(e,["children"]);if(delete r.in,delete r.mountOnEnter,delete r.unmountOnExit,delete r.appear,delete r.enter,delete r.exit,delete r.timeout,delete r.addEndListener,delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,"function"==typeof n)return n(t,r);var i=p.default.Children.only(n);return p.default.cloneElement(i,r)},e}(p.default.Component);w.contextTypes={transitionGroup:l.object},w.childContextTypes={transitionGroup:function(){}},w.propTypes={},w.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:s,onEntering:s,onEntered:s,onExit:s,onExiting:s,onExited:s},w.UNMOUNTED=0,w.EXITED=1,w.ENTERING=2,w.ENTERED=3,w.EXITING=4,e.default=(0,v.polyfill)(w)},function(t,e,n){"use strict";function r(){var t=this.constructor.getDerivedStateFromProps(this.props,this.state);null!==t&&void 0!==t&&this.setState(t)}function o(t){function e(e){var n=this.constructor.getDerivedStateFromProps(t,e);return null!==n&&void 0!==n?n:null}this.setState(e.bind(this))}function i(t,e){try{var n=this.props,r=this.state;this.props=t,this.state=e,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}function a(t){var e=t.prototype;if(!e||!e.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof t.getDerivedStateFromProps&&"function"!=typeof e.getSnapshotBeforeUpdate)return t;var n=null,a=null,u=null;if("function"==typeof e.componentWillMount?n="componentWillMount":"function"==typeof e.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof e.componentWillReceiveProps?a="componentWillReceiveProps":"function"==typeof e.UNSAFE_componentWillReceiveProps&&(a="UNSAFE_componentWillReceiveProps"),"function"==typeof e.componentWillUpdate?u="componentWillUpdate":"function"==typeof e.UNSAFE_componentWillUpdate&&(u="UNSAFE_componentWillUpdate"),null!==n||null!==a||null!==u){var s=t.displayName||t.name,c="function"==typeof t.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+s+" uses "+c+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==a?"\n "+a:"")+(null!==u?"\n "+u:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof t.getDerivedStateFromProps&&(e.componentWillMount=r,e.componentWillReceiveProps=o),"function"==typeof e.getSnapshotBeforeUpdate){if("function"!=typeof e.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");e.componentWillUpdate=i;var l=e.componentDidUpdate;e.componentDidUpdate=function(t,e,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;l.call(this,t,e,r)}}return t}Object.defineProperty(e,"__esModule",{value:!0}),r.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0,i.__suppressDeprecationWarning=!0,e.polyfill=a},function(t,e,n){"use strict";function r(t){var e="transition"+t+"Timeout",n="transition"+t;return function(t){if(t[n]){if(null==t[e])return new Error(e+" wasn't supplied to CSSTransitionGroup: this can cause unreliable animations and won't be supported in a future version of React. See https://fb.me/react-animation-transition-group-timeout for more information.");if("number"!=typeof t[e])return new Error(e+" must be a number (in milliseconds)")}return null}}e.__esModule=!0,e.classNamesShape=e.timeoutsShape=void 0,e.transitionTimeout=r;var o=n(30),i=function(t){return t&&t.__esModule?t:{default:t}}(o);e.timeoutsShape=i.default.oneOfType([i.default.number,i.default.shape({enter:i.default.number,exit:i.default.number}).isRequired]),e.classNamesShape=i.default.oneOfType([i.default.string,i.default.shape({enter:i.default.string,exit:i.default.string,active:i.default.string}),i.default.shape({enter:i.default.string,enterDone:i.default.string,enterActive:i.default.string,exit:i.default.string,exitDone:i.default.string,exitActive:i.default.string})])},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},c=n(30),l=r(c),f=n(22),p=r(f),d=n(98),h=n(170),v=Object.values||function(t){return Object.keys(t).map(function(e){return t[e]})},m=(l.default.any,l.default.node,l.default.bool,l.default.bool,l.default.bool,l.default.func,{component:"div",childFactory:function(t){return t}}),y=function(t){function e(n,r){i(this,e);var o=a(this,t.call(this,n,r)),u=o.handleExited.bind(o);return o.state={handleExited:u,firstRender:!0},o}return u(e,t),e.prototype.getChildContext=function(){return{transitionGroup:{isMounting:!this.appeared}}},e.prototype.componentDidMount=function(){this.appeared=!0},e.getDerivedStateFromProps=function(t,e){var n=e.children,r=e.handleExited;return{children:e.firstRender?(0,h.getInitialChildMapping)(t,r):(0,h.getNextChildMapping)(t,n,r),firstRender:!1}},e.prototype.handleExited=function(t,e){var n=(0,h.getChildMapping)(this.props.children);t.key in n||(t.props.onExited&&t.props.onExited(e),this.setState(function(e){var n=s({},e.children);return delete n[t.key],{children:n}}))},e.prototype.render=function(){var t=this.props,e=t.component,n=t.childFactory,r=o(t,["component","childFactory"]),i=v(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===e?i:p.default.createElement(e,r,i)},e}(p.default.Component);y.childContextTypes={transitionGroup:l.default.object.isRequired},y.propTypes={},y.defaultProps=m,e.default=(0,d.polyfill)(y),t.exports=e.default},function(t,e,n){t.exports=!n(6)&&!n(3)(function(){return 7!=Object.defineProperty(n(68)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){e.f=n(5)},function(t,e,n){var r=n(14),o=n(15),i=n(54)(!1),a=n(70)("IE_PROTO");t.exports=function(t,e){var n,u=o(t),s=0,c=[];for(n in u)n!=a&&r(u,n)&&c.push(n);for(;e.length>s;)r(u,n=e[s++])&&(~i(c,n)||c.push(n));return c}},function(t,e,n){var r=n(7),o=n(1),i=n(36);t.exports=n(6)?Object.defineProperties:function(t,e){o(t);for(var n,a=i(e),u=a.length,s=0;u>s;)r.f(t,n=a[s++],e[n]);return t}},function(t,e,n){var r=n(15),o=n(39).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],u=function(t){try{return o(t)}catch(t){return a.slice()}};t.exports.f=function(t){return a&&"[object Window]"==i.call(t)?u(t):o(r(t))}},function(t,e,n){"use strict";var r=n(36),o=n(55),i=n(49),a=n(9),u=n(48),s=Object.assign;t.exports=!s||n(3)(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=s({},t)[n]||Object.keys(s({},e)).join("")!=r})?function(t,e){for(var n=a(t),s=arguments.length,c=1,l=o.f,f=i.f;s>c;)for(var p,d=u(arguments[c++]),h=l?r(d).concat(l(d)):r(d),v=h.length,m=0;v>m;)f.call(d,p=h[m++])&&(n[p]=d[p]);return n}:s},function(t,e,n){"use strict";var r=n(10),o=n(4),i=n(108),a=[].slice,u={},s=function(t,e,n){if(!(e in u)){for(var r=[],o=0;o<e;o++)r[o]="a["+o+"]";u[e]=Function("F,a","return new F("+r.join(",")+")")}return u[e](t,n)};t.exports=Function.bind||function(t){var e=r(this),n=a.call(arguments,1),u=function(){var r=n.concat(a.call(arguments));return this instanceof u?s(e,r.length,r):i(e,r,t)};return o(e.prototype)&&(u.prototype=e.prototype),u}},function(t,e){t.exports=function(t,e,n){var r=void 0===n;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return r?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},function(t,e,n){var r=n(2).parseInt,o=n(45).trim,i=n(74),a=/^[-+]?0[xX]/;t.exports=8!==r(i+"08")||22!==r(i+"0x16")?function(t,e){var n=o(String(t),3);return r(n,e>>>0||(a.test(n)?16:10))}:r},function(t,e,n){var r=n(2).parseFloat,o=n(45).trim;t.exports=1/r(n(74)+"-0")!=-1/0?function(t){var e=o(String(t),3),n=r(e);return 0===n&&"-"==e.charAt(0)?-0:n}:r},function(t,e,n){var r=n(20);t.exports=function(t,e){if("number"!=typeof t&&"Number"!=r(t))throw TypeError(e);return+t}},function(t,e,n){var r=n(4),o=Math.floor;t.exports=function(t){return!r(t)&&isFinite(t)&&o(t)===t}},function(t,e){t.exports=Math.log1p||function(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:Math.log(1+t)}},function(t,e,n){var r=n(77),o=Math.pow,i=o(2,-52),a=o(2,-23),u=o(2,127)*(2-a),s=o(2,-126),c=function(t){return t+1/i-1/i};t.exports=Math.fround||function(t){var e,n,o=Math.abs(t),l=r(t);return o<s?l*c(o/s/a)*s*a:(e=(1+a/i)*o,n=e-(e-o),n>u||n!=n?l*(1/0):l*n)}},function(t,e,n){var r=n(1);t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(e){var i=t.return;throw void 0!==i&&r(i.call(t)),e}}},function(t,e,n){var r=n(10),o=n(9),i=n(48),a=n(8);t.exports=function(t,e,n,u,s){r(e);var c=o(t),l=i(c),f=a(c.length),p=s?f-1:0,d=s?-1:1;if(n<2)for(;;){if(p in l){u=l[p],p+=d;break}if(p+=d,s?p<0:f<=p)throw TypeError("Reduce of empty array with no initial value")}for(;s?p>=0:f>p;p+=d)p in l&&(u=e(u,l[p],p,c));return u}},function(t,e,n){"use strict";var r=n(9),o=n(37),i=n(8);t.exports=[].copyWithin||function(t,e){var n=r(this),a=i(n.length),u=o(t,a),s=o(e,a),c=arguments.length>2?arguments[2]:void 0,l=Math.min((void 0===c?a:o(c,a))-s,a-u),f=1;for(s<u&&u<s+l&&(f=-1,s+=l-1,u+=l-1);l-- >0;)s in n?n[u]=n[s]:delete n[u],u+=f,s+=f;return n}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){n(6)&&"g"!=/./g.flags&&n(7).f(RegExp.prototype,"flags",{configurable:!0,get:n(59)})},function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,e,n){var r=n(1),o=n(4),i=n(92);t.exports=function(t,e){if(r(t),o(e)&&e.constructor===t)return e;var n=i.f(t);return(0,n.resolve)(e),n.promise}},function(t,e,n){"use strict";var r=n(123),o=n(47);t.exports=n(63)("Map",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{get:function(t){var e=r.getEntry(o(this,"Map"),t);return e&&e.v},set:function(t,e){return r.def(o(this,"Map"),0===t?0:t,e)}},r,!0)},function(t,e,n){"use strict";var r=n(7).f,o=n(38),i=n(43),a=n(19),u=n(41),s=n(42),c=n(80),l=n(118),f=n(40),p=n(6),d=n(31).fastKey,h=n(47),v=p?"_s":"size",m=function(t,e){var n,r=d(e);if("F"!==r)return t._i[r];for(n=t._f;n;n=n.n)if(n.k==e)return n};t.exports={getConstructor:function(t,e,n,c){var l=t(function(t,r){u(t,l,e,"_i"),t._t=e,t._i=o(null),t._f=void 0,t._l=void 0,t[v]=0,void 0!=r&&s(r,n,t[c],t)});return i(l.prototype,{clear:function(){for(var t=h(this,e),n=t._i,r=t._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete n[r.i];t._f=t._l=void 0,t[v]=0},delete:function(t){var n=h(this,e),r=m(n,t);if(r){var o=r.n,i=r.p;delete n._i[r.i],r.r=!0,i&&(i.n=o),o&&(o.p=i),n._f==r&&(n._f=o),n._l==r&&(n._l=i),n[v]--}return!!r},forEach:function(t){h(this,e);for(var n,r=a(t,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(r(n.v,n.k,this);n&&n.r;)n=n.p},has:function(t){return!!m(h(this,e),t)}}),p&&r(l.prototype,"size",{get:function(){return h(this,e)[v]}}),l},def:function(t,e,n){var r,o,i=m(t,e);return i?i.v=n:(t._l=i={i:o=d(e,!0),k:e,v:n,p:r=t._l,n:void 0,r:!1},t._f||(t._f=i),r&&(r.n=i),t[v]++,"F"!==o&&(t._i[o]=i)),t},getEntry:m,setStrong:function(t,e,n){c(t,e,function(t,n){this._t=h(t,e),this._k=n,this._l=void 0},function(){for(var t=this,e=t._k,n=t._l;n&&n.r;)n=n.p;return t._t&&(t._l=n=n?n.n:t._t._f)?"keys"==e?l(0,n.k):"values"==e?l(0,n.v):l(0,[n.k,n.v]):(t._t=void 0,l(1))},n?"entries":"values",!n,!0),f(e)}}},function(t,e,n){"use strict";var r=n(123),o=n(47);t.exports=n(63)("Set",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return r.def(o(this,"Set"),t=0===t?0:t,t)}},r)},function(t,e,n){"use strict";var r,o=n(27)(0),i=n(12),a=n(31),u=n(106),s=n(126),c=n(4),l=n(3),f=n(47),p=a.getWeak,d=Object.isExtensible,h=s.ufstore,v={},m=function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},y={get:function(t){if(c(t)){var e=p(t);return!0===e?h(f(this,"WeakMap")).get(t):e?e[this._i]:void 0}},set:function(t,e){return s.def(f(this,"WeakMap"),t,e)}},g=t.exports=n(63)("WeakMap",m,y,s,!0,!0);l(function(){return 7!=(new g).set((Object.freeze||Object)(v),7).get(v)})&&(r=s.getConstructor(m,"WeakMap"),u(r.prototype,y),a.NEED=!0,o(["delete","has","get","set"],function(t){var e=g.prototype,n=e[t];i(e,t,function(e,o){if(c(e)&&!d(e)){this._f||(this._f=new r);var i=this._f[t](e,o);return"set"==t?this:i}return n.call(this,e,o)})}))},function(t,e,n){"use strict";var r=n(43),o=n(31).getWeak,i=n(1),a=n(4),u=n(41),s=n(42),c=n(27),l=n(14),f=n(47),p=c(5),d=c(6),h=0,v=function(t){return t._l||(t._l=new m)},m=function(){this.a=[]},y=function(t,e){return p(t.a,function(t){return t[0]===e})};m.prototype={get:function(t){var e=y(this,t);if(e)return e[1]},has:function(t){return!!y(this,t)},set:function(t,e){var n=y(this,t);n?n[1]=e:this.a.push([t,e])},delete:function(t){var e=d(this.a,function(e){return e[0]===t});return~e&&this.a.splice(e,1),!!~e}},t.exports={getConstructor:function(t,e,n,i){var c=t(function(t,r){u(t,c,e,"_i"),t._t=e,t._i=h++,t._l=void 0,void 0!=r&&s(r,n,t[i],t)});return r(c.prototype,{delete:function(t){if(!a(t))return!1;var n=o(t);return!0===n?v(f(this,e)).delete(t):n&&l(n,this._i)&&delete n[this._i]},has:function(t){if(!a(t))return!1;var n=o(t);return!0===n?v(f(this,e)).has(t):n&&l(n,this._i)}}),c},def:function(t,e,n){var r=o(i(e),!0);return!0===r?v(t).set(e,n):r[t._i]=n,t},ufstore:v}},function(t,e,n){var r=n(25),o=n(8);t.exports=function(t){if(void 0===t)return 0;var e=r(t),n=o(e);if(e!==n)throw RangeError("Wrong length!");return n}},function(t,e,n){var r=n(39),o=n(55),i=n(1),a=n(2).Reflect;t.exports=a&&a.ownKeys||function(t){var e=r.f(i(t)),n=o.f;return n?e.concat(n(t)):e}},function(t,e,n){"use strict";function r(t,e,n,c,l,f,p,d){for(var h,v,m=l,y=0,g=!!p&&u(p,d,3);y<c;){if(y in n){if(h=g?g(n[y],y,e):n[y],v=!1,i(h)&&(v=h[s],v=void 0!==v?!!v:o(h)),v&&f>0)m=r(t,e,h,a(h.length),m,f-1)-1;else{if(m>=9007199254740991)throw TypeError();t[m]=h}m++}y++}return m}var o=n(56),i=n(4),a=n(8),u=n(19),s=n(5)("isConcatSpreadable");t.exports=r},function(t,e,n){var r=n(8),o=n(76),i=n(24);t.exports=function(t,e,n,a){var u=String(i(t)),s=u.length,c=void 0===n?" ":String(n),l=r(e);if(l<=s||""==c)return u;var f=l-s,p=o.call(c,Math.ceil(f/c.length));return p.length>f&&(p=p.slice(0,f)),a?p+u:u+p}},function(t,e,n){var r=n(36),o=n(15),i=n(49).f;t.exports=function(t){return function(e){for(var n,a=o(e),u=r(a),s=u.length,c=0,l=[];s>c;)i.call(a,n=u[c++])&&l.push(t?[n,a[n]]:a[n]);return l}}},function(t,e,n){var r=n(50),o=n(133);t.exports=function(t){return function(){if(r(this)!=t)throw TypeError(t+"#toJSON isn't generic");return o(this)}}},function(t,e,n){var r=n(42);t.exports=function(t,e){var n=[];return r(t,!1,n.push,n,e),n}},function(t,e){t.exports=Math.scale||function(t,e,n,r,o){return 0===arguments.length||t!=t||e!=e||n!=n||r!=r||o!=o?NaN:t===1/0||t===-1/0?t:(t-e)*(o-r)/(n-e)+r}},function(t,e,n){t.exports=n},function(t,e,n){"use strict";function r(t,e,n,r,o,i,a,u){if(!t){if(t=void 0,void 0===e)t=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=[n,r,o,i,a,u],c=0;t=Error(e.replace(/%s/g,function(){return s[c++]})),t.name="Invariant Violation"}throw t.framesToPop=1,t}}function o(t){for(var e=arguments.length-1,n="https://reactjs.org/docs/error-decoder.html?invariant="+t,o=0;o<e;o++)n+="&args[]="+encodeURIComponent(arguments[o+1]);r(!1,"Minified React error #"+t+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",n)}function i(t,e,n){this.props=t,this.context=e,this.refs=A,this.updater=n||I}function a(){}function u(t,e,n){this.props=t,this.context=e,this.refs=A,this.updater=n||I}function s(t,e,n){var r=void 0,o={},i=null,a=null;if(null!=e)for(r in void 0!==e.ref&&(a=e.ref),void 0!==e.key&&(i=""+e.key),e)F.call(e,r)&&!L.hasOwnProperty(r)&&(o[r]=e[r]);var u=arguments.length-2;if(1===u)o.children=n;else if(1<u){for(var s=Array(u),c=0;c<u;c++)s[c]=arguments[c+2];o.children=s}if(t&&t.defaultProps)for(r in u=t.defaultProps)void 0===o[r]&&(o[r]=u[r]);return{$$typeof:E,type:t,key:i,ref:a,props:o,_owner:D.current}}function c(t,e){return{$$typeof:E,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}}function l(t){return"object"==typeof t&&null!==t&&t.$$typeof===E}function f(t){var e={"=":"=0",":":"=2"};return"$"+(""+t).replace(/[=:]/g,function(t){return e[t]})}function p(t,e,n,r){if(U.length){var o=U.pop();return o.result=t,o.keyPrefix=e,o.func=n,o.context=r,o.count=0,o}return{result:t,keyPrefix:e,func:n,context:r,count:0}}function d(t){t.result=null,t.keyPrefix=null,t.func=null,t.context=null,t.count=0,10>U.length&&U.push(t)}function h(t,e,n,r){var i=typeof t;"undefined"!==i&&"boolean"!==i||(t=null);var a=!1;if(null===t)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(t.$$typeof){case E:case T:a=!0}}if(a)return n(r,t,""===e?"."+m(t,0):e),1;if(a=0,e=""===e?".":e+":",Array.isArray(t))for(var u=0;u<t.length;u++){i=t[u];var s=e+m(i,u);a+=h(i,s,n,r)}else if(null===t||"object"!=typeof t?s=null:(s=j&&t[j]||t["@@iterator"],s="function"==typeof s?s:null),"function"==typeof s)for(t=s.call(t),u=0;!(i=t.next()).done;)i=i.value,s=e+m(i,u++),a+=h(i,s,n,r);else"object"===i&&(n=""+t,o("31","[object Object]"===n?"object with keys {"+Object.keys(t).join(", ")+"}":n,""));return a}function v(t,e,n){return null==t?0:h(t,"",e,n)}function m(t,e){return"object"==typeof t&&null!==t&&null!=t.key?f(t.key):e.toString(36)}function y(t,e){t.func.call(t.context,e,t.count++)}function g(t,e,n){var r=t.result,o=t.keyPrefix;t=t.func.call(t.context,e,t.count++),Array.isArray(t)?_(t,r,n,function(t){return t}):null!=t&&(l(t)&&(t=c(t,o+(!t.key||e&&e.key===t.key?"":(""+t.key).replace(z,"$&/")+"/")+n)),r.push(t))}function _(t,e,n,r,o){var i="";null!=n&&(i=(""+n).replace(z,"$&/")+"/"),e=p(e,i,r,o),v(t,g,e),d(e)}function b(t,e){var n=D.currentDispatcher;return null===n&&o("277"),n.readContext(t,e)}/** @license React v16.5.0 * react.production.min.js * * Copyright (c) 2013-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ var w=n(94),x="function"==typeof Symbol&&Symbol.for,E=x?Symbol.for("react.element"):60103,T=x?Symbol.for("react.portal"):60106,O=x?Symbol.for("react.fragment"):60107,k=x?Symbol.for("react.strict_mode"):60108,S=x?Symbol.for("react.profiler"):60114,N=x?Symbol.for("react.provider"):60109,C=x?Symbol.for("react.context"):60110,P=x?Symbol.for("react.async_mode"):60111,M=x?Symbol.for("react.forward_ref"):60112;x&&Symbol.for("react.placeholder");var j="function"==typeof Symbol&&Symbol.iterator,I={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},A={};i.prototype.isReactComponent={},i.prototype.setState=function(t,e){"object"!=typeof t&&"function"!=typeof t&&null!=t&&o("85"),this.updater.enqueueSetState(this,t,e,"setState")},i.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")},a.prototype=i.prototype;var R=u.prototype=new a;R.constructor=u,w(R,i.prototype),R.isPureReactComponent=!0;var D={current:null,currentDispatcher:null},F=Object.prototype.hasOwnProperty,L={key:!0,ref:!0,__self:!0,__source:!0},z=/\/+/g,U=[],W={Children:{map:function(t,e,n){if(null==t)return t;var r=[];return _(t,r,null,e,n),r},forEach:function(t,e,n){if(null==t)return t;e=p(null,null,e,n),v(t,y,e),d(e)},count:function(t){return v(t,function(){return null},null)},toArray:function(t){var e=[];return _(t,e,null,function(t){return t}),e},only:function(t){return l(t)||o("143"),t}},createRef:function(){return{current:null}},Component:i,PureComponent:u,createContext:function(t,e){return void 0===e&&(e=null),t={$$typeof:C,_calculateChangedBits:e,_currentValue:t,_currentValue2:t,Provider:null,Consumer:null,unstable_read:null},t.Provider={$$typeof:N,_context:t},t.Consumer=t,t.unstable_read=b.bind(null,t),t},forwardRef:function(t){return{$$typeof:M,render:t}},Fragment:O,StrictMode:k,unstable_AsyncMode:P,unstable_Profiler:S,createElement:s,cloneElement:function(t,e,n){(null===t||void 0===t)&&o("267",t);var r=void 0,i=w({},t.props),a=t.key,u=t.ref,s=t._owner;if(null!=e){void 0!==e.ref&&(u=e.ref,s=D.current),void 0!==e.key&&(a=""+e.key);var c=void 0;t.type&&t.type.defaultProps&&(c=t.type.defaultProps);for(r in e)F.call(e,r)&&!L.hasOwnProperty(r)&&(i[r]=void 0===e[r]&&void 0!==c?c[r]:e[r])}if(1===(r=arguments.length-2))i.children=n;else if(1<r){c=Array(r);for(var l=0;l<r;l++)c[l]=arguments[l+2];i.children=c}return{$$typeof:E,type:t.type,key:a,ref:u,props:i,_owner:s}},createFactory:function(t){var e=s.bind(null,t);return e.type=t,e},isValidElement:l,version:"16.5.0",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:D,assign:w}},B={default:W},q=B&&W||B;t.exports=q.default||q},function(t,e,n){"use strict";function r(t,e,n,r,o,i,a,u){if(!t){if(t=void 0,void 0===e)t=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=[n,r,o,i,a,u],c=0;t=Error(e.replace(/%s/g,function(){return s[c++]})),t.name="Invariant Violation"}throw t.framesToPop=1,t}}function o(t){for(var e=arguments.length-1,n="https://reactjs.org/docs/error-decoder.html?invariant="+t,o=0;o<e;o++)n+="&args[]="+encodeURIComponent(arguments[o+1]);r(!1,"Minified React error #"+t+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",n)}function i(t,e,n,r,o,i,a,u,s){var c=Array.prototype.slice.call(arguments,3);try{e.apply(n,c)}catch(t){this.onError(t)}}function a(t,e,n,r,o,a,u,s,c){xr=!1,Er=null,i.apply(kr,arguments)}function u(t,e,n,r,i,u,s,c,l){if(a.apply(this,arguments),xr){if(xr){var f=Er;xr=!1,Er=null}else o("198"),f=void 0;Tr||(Tr=!0,Or=f)}}function s(){if(Sr)for(var t in Nr){var e=Nr[t],n=Sr.indexOf(t);if(-1<n||o("96",t),!Cr[n]){e.extractEvents||o("97",t),Cr[n]=e,n=e.eventTypes;for(var r in n){var i=void 0,a=n[r],u=e,s=r;Pr.hasOwnProperty(s)&&o("99",s),Pr[s]=a;var l=a.phasedRegistrationNames;if(l){for(i in l)l.hasOwnProperty(i)&&c(l[i],u,s);i=!0}else a.registrationName?(c(a.registrationName,u,s),i=!0):i=!1;i||o("98",r,t)}}}}function c(t,e,n){Mr[t]&&o("100",t),Mr[t]=e,jr[t]=e.eventTypes[n].dependencies}function l(t,e,n,r){e=t.type||"unknown-event",t.currentTarget=Rr(r),u(e,n,void 0,t),t.currentTarget=null}function f(t,e){return null==e&&o("30"),null==t?e:Array.isArray(t)?Array.isArray(e)?(t.push.apply(t,e),t):(t.push(e),t):Array.isArray(e)?[t].concat(e):[t,e]}function p(t,e,n){Array.isArray(t)?t.forEach(e,n):t&&e.call(n,t)}function d(t,e){if(t){var n=t._dispatchListeners,r=t._dispatchInstances;if(Array.isArray(n))for(var o=0;o<n.length&&!t.isPropagationStopped();o++)l(t,e,n[o],r[o]);else n&&l(t,e,n,r);t._dispatchListeners=null,t._dispatchInstances=null,t.isPersistent()||t.constructor.release(t)}}function h(t){return d(t,!0)}function v(t){return d(t,!1)}function m(t,e){var n=t.stateNode;if(!n)return null;var r=Ir(n);if(!r)return null;n=r[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":(r=!r.disabled)||(t=t.type,r=!("button"===t||"input"===t||"select"===t||"textarea"===t)),t=!r;break t;default:t=!1}return t?null:(n&&"function"!=typeof n&&o("231",e,typeof n),n)}function y(t,e){if(null!==t&&(Dr=f(Dr,t)),t=Dr,Dr=null,t&&(e?p(t,h):p(t,v),Dr&&o("95"),Tr))throw e=Or,Tr=!1,Or=null,e}function g(t){if(t[zr])return t[zr];for(;!t[zr];){if(!t.parentNode)return null;t=t.parentNode}return t=t[zr],7===t.tag||8===t.tag?t:null}function _(t){return t=t[zr],!t||7!==t.tag&&8!==t.tag?null:t}function b(t){if(7===t.tag||8===t.tag)return t.stateNode;o("33")}function w(t){return t[Ur]||null}function x(t){do{t=t.return}while(t&&7!==t.tag);return t||null}function E(t,e,n){(e=m(t,n.dispatchConfig.phasedRegistrationNames[e]))&&(n._dispatchListeners=f(n._dispatchListeners,e),n._dispatchInstances=f(n._dispatchInstances,t))}function T(t){if(t&&t.dispatchConfig.phasedRegistrationNames){for(var e=t._targetInst,n=[];e;)n.push(e),e=x(e);for(e=n.length;0<e--;)E(n[e],"captured",t);for(e=0;e<n.length;e++)E(n[e],"bubbled",t)}}function O(t,e,n){t&&n&&n.dispatchConfig.registrationName&&(e=m(t,n.dispatchConfig.registrationName))&&(n._dispatchListeners=f(n._dispatchListeners,e),n._dispatchInstances=f(n._dispatchInstances,t))}function k(t){t&&t.dispatchConfig.registrationName&&O(t._targetInst,null,t)}function S(t){p(t,T)}function N(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}function C(t){if(qr[t])return qr[t];if(!Br[t])return t;var e,n=Br[t];for(e in n)if(n.hasOwnProperty(e)&&e in Vr)return qr[t]=n[e];return t}function P(){if(Qr)return Qr;var t,e,n=Jr,r=n.length,o="value"in Xr?Xr.value:Xr.textContent,i=o.length;for(t=0;t<r&&n[t]===o[t];t++);var a=r-t;for(e=1;e<=a&&n[r-e]===o[i-e];e++);return Qr=o.slice(t,1<e?1-e:void 0)}function M(){return!0}function j(){return!1}function I(t,e,n,r){this.dispatchConfig=t,this._targetInst=e,this.nativeEvent=n,t=this.constructor.Interface;for(var o in t)t.hasOwnProperty(o)&&((e=t[o])?this[o]=e(n):"target"===o?this.target=r:this[o]=n[o]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?M:j,this.isPropagationStopped=j,this}function A(t,e,n,r){if(this.eventPool.length){var o=this.eventPool.pop();return this.call(o,t,e,n,r),o}return new this(t,e,n,r)}function R(t){t instanceof this||o("279"),t.destructor(),10>this.eventPool.length&&this.eventPool.push(t)}function D(t){t.eventPool=[],t.getPooled=A,t.release=R}function F(t,e){switch(t){case"keyup":return-1!==eo.indexOf(e.keyCode);case"keydown":return 229!==e.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function L(t){return t=t.detail,"object"==typeof t&&"data"in t?t.data:null}function z(t,e){switch(t){case"compositionend":return L(e);case"keypress":return 32!==e.which?null:(so=!0,ao);case"textInput":return t=e.data,t===ao&&so?null:t;default:return null}}function U(t,e){if(co)return"compositionend"===t||!no&&F(t,e)?(t=P(),Qr=Jr=Xr=null,co=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return io&&"ko"!==e.locale?null:e.data;default:return null}}function W(t){if(t=Ar(t)){"function"!=typeof fo&&o("280");var e=Ir(t.stateNode);fo(t.stateNode,t.type,e)}}function B(t){po?ho?ho.push(t):ho=[t]:po=t}function q(){if(po){var t=po,e=ho;if(ho=po=null,W(t),e)for(t=0;t<e.length;t++)W(e[t])}}function V(t,e){return t(e)}function G(t,e,n){return t(e,n)}function H(){}function K(t,e){if(vo)return t(e);vo=!0;try{return V(t,e)}finally{vo=!1,(null!==po||null!==ho)&&(H(),q())}}function $(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return"input"===e?!!mo[t.type]:"textarea"===e}function Y(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),3===t.nodeType?t.parentNode:t}function X(t){if(!Wr)return!1;t="on"+t;var e=t in document;return e||(e=document.createElement("div"),e.setAttribute(t,"return;"),e="function"==typeof e[t]),e}function J(t){var e=t.type;return(t=t.nodeName)&&"input"===t.toLowerCase()&&("checkbox"===e||"radio"===e)}function Q(t){var e=J(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),r=""+t[e];if(!t.hasOwnProperty(e)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return o.call(this)},set:function(t){r=""+t,i.call(this,t)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(t){r=""+t},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Z(t){t._valueTracker||(t._valueTracker=Q(t))}function tt(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),r="";return t&&(r=J(t)?t.checked?"true":"false":t.value),(t=r)!==n&&(e.setValue(t),!0)}function et(t){return null===t||"object"!=typeof t?null:(t=Po&&t[Po]||t["@@iterator"],"function"==typeof t?t:null)}function nt(t){if(null==t)return null;if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t;switch(t){case So:return"AsyncMode";case xo:return"Fragment";case wo:return"Portal";case To:return"Profiler";case Eo:return"StrictMode";case Co:return"Placeholder"}if("object"==typeof t){switch(t.$$typeof){case ko:return"Context.Consumer";case Oo:return"Context.Provider";case No:return t=t.render,t=t.displayName||t.name||"",""!==t?"ForwardRef("+t+")":"ForwardRef"}if("function"==typeof t.then&&(t=1===t._reactStatus?t._reactResult:null))return nt(t)}return null}function rt(t){var e="";do{t:switch(t.tag){case 4:case 0:case 1:case 2:case 3:case 7:case 10:var n=t._debugOwner,r=t._debugSource,o=nt(t.type),i=null;n&&(i=nt(n.type)),n=o,o="",r?o=" (at "+r.fileName.replace(go,"")+":"+r.lineNumber+")":i&&(o=" (created by "+i+")"),i="\n in "+(n||"Unknown")+o;break t;default:i=""}e+=i,t=t.return}while(t);return e}function ot(t){return!!jo.call(Ao,t)||!jo.call(Io,t)&&(Mo.test(t)?Ao[t]=!0:(Io[t]=!0,!1))}function it(t,e,n,r){if(null!==n&&0===n.type)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(t=t.toLowerCase().slice(0,5))&&"aria-"!==t);default:return!1}}function at(t,e,n,r){if(null===e||void 0===e||it(t,e,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!e;case 4:return!1===e;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function ut(t,e,n,r,o){this.acceptsBooleans=2===e||3===e||4===e,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=t,this.type=e}function st(t){return t[1].toUpperCase()}function ct(t,e,n,r){var o=Ro.hasOwnProperty(e)?Ro[e]:null;(null!==o?0===o.type:!r&&(2<e.length&&("o"===e[0]||"O"===e[0])&&("n"===e[1]||"N"===e[1])))||(at(e,n,o,r)&&(n=null),r||null===o?ot(e)&&(null===n?t.removeAttribute(e):t.setAttribute(e,""+n)):o.mustUseProperty?t[o.propertyName]=null===n?3!==o.type&&"":n:(e=o.attributeName,r=o.attributeNamespace,null===n?t.removeAttribute(e):(o=o.type,n=3===o||4===o&&!0===n?"":""+n,r?t.setAttributeNS(r,e,n):t.setAttribute(e,n))))}function lt(t){switch(typeof t){case"boolean":case"number":case"object":case"string":case"undefined":return t;default:return""}}function ft(t,e){var n=e.checked;return br({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:t._wrapperState.initialChecked})}function pt(t,e){var n=null==e.defaultValue?"":e.defaultValue,r=null!=e.checked?e.checked:e.defaultChecked;n=lt(null!=e.value?e.value:n),t._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===e.type||"radio"===e.type?null!=e.checked:null!=e.value}}function dt(t,e){null!=(e=e.checked)&&ct(t,"checked",e,!1)}function ht(t,e){dt(t,e);var n=lt(e.value),r=e.type;if(null!=n)"number"===r?(0===n&&""===t.value||t.value!=n)&&(t.value=""+n):t.value!==""+n&&(t.value=""+n);else if("submit"===r||"reset"===r)return void t.removeAttribute("value");e.hasOwnProperty("value")?mt(t,e.type,n):e.hasOwnProperty("defaultValue")&&mt(t,e.type,lt(e.defaultValue)),null==e.checked&&null!=e.defaultChecked&&(t.defaultChecked=!!e.defaultChecked)}function vt(t,e,n){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var r=e.type;if(!("submit"!==r&&"reset"!==r||void 0!==e.value&&null!==e.value))return;e=""+t._wrapperState.initialValue,r=t.value,n||e===r||(t.value=e),t.defaultValue=e}n=t.name,""!==n&&(t.name=""),t.defaultChecked=!t.defaultChecked,t.defaultChecked=!!t._wrapperState.initialChecked,""!==n&&(t.name=n)}function mt(t,e,n){"number"===e&&t.ownerDocument.activeElement===t||(null==n?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}function yt(t,e,n){return t=I.getPooled(Fo.change,t,e,n),t.type="change",B(n),S(t),t}function gt(t){y(t,!1)}function _t(t){if(tt(b(t)))return t}function bt(t,e){if("change"===t)return e}function wt(){Lo&&(Lo.detachEvent("onpropertychange",xt),zo=Lo=null)}function xt(t){"value"===t.propertyName&&_t(zo)&&(t=yt(zo,t,Y(t)),K(gt,t))}function Et(t,e,n){"focus"===t?(wt(),Lo=e,zo=n,Lo.attachEvent("onpropertychange",xt)):"blur"===t&&wt()}function Tt(t){if("selectionchange"===t||"keyup"===t||"keydown"===t)return _t(zo)}function Ot(t,e){if("click"===t)return _t(e)}function kt(t,e){if("input"===t||"change"===t)return _t(e)}function St(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):!!(t=qo[t])&&!!e[t]}function Nt(){return St}function Ct(t,e){return t===e?0!==t||0!==e||1/t==1/e:t!==t&&e!==e}function Pt(t,e){if(Ct(t,e))return!0;if("object"!=typeof t||null===t||"object"!=typeof e||null===e)return!1;var n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!Qo.call(e,n[r])||!Ct(t[n[r]],e[n[r]]))return!1;return!0}function Mt(t){var e=t;if(t.alternate)for(;e.return;)e=e.return;else{if(0!=(2&e.effectTag))return 1;for(;e.return;)if(e=e.return,0!=(2&e.effectTag))return 1}return 5===e.tag?2:3}function jt(t){2!==Mt(t)&&o("188")}function It(t){var e=t.alternate;if(!e)return e=Mt(t),3===e&&o("188"),1===e?null:t;for(var n=t,r=e;;){var i=n.return,a=i?i.alternate:null;if(!i||!a)break;if(i.child===a.child){for(var u=i.child;u;){if(u===n)return jt(i),t;if(u===r)return jt(i),e;u=u.sibling}o("188")}if(n.return!==r.return)n=i,r=a;else{u=!1;for(var s=i.child;s;){if(s===n){u=!0,n=i,r=a;break}if(s===r){u=!0,r=i,n=a;break}s=s.sibling}if(!u){for(s=a.child;s;){if(s===n){u=!0,n=a,r=i;break}if(s===r){u=!0,r=a,n=i;break}s=s.sibling}u||o("189")}}n.alternate!==r&&o("190")}return 5!==n.tag&&o("188"),n.stateNode.current===n?t:e}function At(t){if(!(t=It(t)))return null;for(var e=t;;){if(7===e.tag||8===e.tag)return e;if(e.child)e.child.return=e,e=e.child;else{if(e===t)break;for(;!e.sibling;){if(!e.return||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}}return null}function Rt(t){var e=t.keyCode;return"charCode"in t?0===(t=t.charCode)&&13===e&&(t=13):t=e,10===t&&(t=13),32<=t||13===t?t:0}function Dt(t,e){var n=t[0];t=t[1];var r="on"+(t[0].toUpperCase()+t.slice(1));e={phasedRegistrationNames:{bubbled:r,captured:r+"Capture"},dependencies:[n],isInteractive:e},li[t]=e,fi[n]=e}function Ft(t){var e=t.targetInst,n=e;do{if(!n){t.ancestors.push(n);break}var r;for(r=n;r.return;)r=r.return;if(!(r=5!==r.tag?null:r.stateNode.containerInfo))break;t.ancestors.push(n),n=g(r)}while(n);for(n=0;n<t.ancestors.length;n++){e=t.ancestors[n];var o=Y(t.nativeEvent);r=t.topLevelType;for(var i=t.nativeEvent,a=null,u=0;u<Cr.length;u++){var s=Cr[u];s&&(s=s.extractEvents(r,e,i,o))&&(a=f(a,s))}y(a,!1)}}function Lt(t,e){if(!e)return null;var n=(di(t)?Ut:Wt).bind(null,t);e.addEventListener(t,n,!1)}function zt(t,e){if(!e)return null;var n=(di(t)?Ut:Wt).bind(null,t);e.addEventListener(t,n,!0)}function Ut(t,e){G(Wt,t,e)}function Wt(t,e){if(vi){var n=Y(e);if(n=g(n),null===n||"number"!=typeof n.tag||2===Mt(n)||(n=null),hi.length){var r=hi.pop();r.topLevelType=t,r.nativeEvent=e,r.targetInst=n,t=r}else t={topLevelType:t,nativeEvent:e,targetInst:n,ancestors:[]};try{K(Ft,t)}finally{t.topLevelType=null,t.nativeEvent=null,t.targetInst=null,t.ancestors.length=0,10>hi.length&&hi.push(t)}}}function Bt(t){return Object.prototype.hasOwnProperty.call(t,gi)||(t[gi]=yi++,mi[t[gi]]={}),mi[t[gi]]}function qt(t){if(void 0===(t=t||("undefined"!=typeof document?document:void 0)))return null;try{return t.activeElement||t.body}catch(e){return t.body}}function Vt(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Gt(t,e){var n=Vt(t);t=0;for(var r;n;){if(3===n.nodeType){if(r=t+n.textContent.length,t<=e&&r>=e)return{node:n,offset:e-t};t=r}t:{for(;n;){if(n.nextSibling){n=n.nextSibling;break t}n=n.parentNode}n=void 0}n=Vt(n)}}function Ht(t,e){return!(!t||!e)&&(t===e||(!t||3!==t.nodeType)&&(e&&3===e.nodeType?Ht(t,e.parentNode):"contains"in t?t.contains(e):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(e))))}function Kt(){for(var t=window,e=qt();e instanceof t.HTMLIFrameElement;){try{t=e.contentDocument.defaultView}catch(t){break}e=qt(t.document)}return e}function $t(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&("input"===e&&("text"===t.type||"search"===t.type||"tel"===t.type||"url"===t.type||"password"===t.type)||"textarea"===e||"true"===t.contentEditable)}function Yt(t,e){var n=e.window===e?e.document:9===e.nodeType?e:e.ownerDocument;return Ti||null==wi||wi!==qt(n)?null:(n=wi,"selectionStart"in n&&$t(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Ei&&Pt(Ei,n)?null:(Ei=n,t=I.getPooled(bi.select,xi,t,e),t.type="select",t.target=wi,S(t),t))}function Xt(t){var e="";return _r.Children.forEach(t,function(t){null!=t&&(e+=t)}),e}function Jt(t,e){return t=br({children:void 0},e),(e=Xt(e.children))&&(t.children=e),t}function Qt(t,e,n,r){if(t=t.options,e){e={};for(var o=0;o<n.length;o++)e["$"+n[o]]=!0;for(n=0;n<t.length;n++)o=e.hasOwnProperty("$"+t[n].value),t[n].selected!==o&&(t[n].selected=o),o&&r&&(t[n].defaultSelected=!0)}else{for(n=""+lt(n),e=null,o=0;o<t.length;o++){if(t[o].value===n)return t[o].selected=!0,void(r&&(t[o].defaultSelected=!0));null!==e||t[o].disabled||(e=t[o])}null!==e&&(e.selected=!0)}}function Zt(t,e){return null!=e.dangerouslySetInnerHTML&&o("91"),br({},e,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function te(t,e){var n=e.value;null==n&&(n=e.defaultValue,e=e.children,null!=e&&(null!=n&&o("92"),Array.isArray(e)&&(1>=e.length||o("93"),e=e[0]),n=e),null==n&&(n="")),t._wrapperState={initialValue:lt(n)}}function ee(t,e){var n=lt(e.value);null!=n&&(n=""+n,n!==t.value&&(t.value=n),null==e.defaultValue&&(t.defaultValue=n)),null!=e.defaultValue&&(t.defaultValue=""+lt(e.defaultValue))}function ne(t){var e=t.textContent;e===t._wrapperState.initialValue&&(t.value=e)}function re(t){switch(t){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function oe(t,e){return null==t||"http://www.w3.org/1999/xhtml"===t?re(e):"http://www.w3.org/2000/svg"===t&&"foreignObject"===e?"http://www.w3.org/1999/xhtml":t}function ie(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&3===n.nodeType)return void(n.nodeValue=e)}t.textContent=e}function ae(t,e){t=t.style;for(var n in e)if(e.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=n,i=e[n];o=null==i||"boolean"==typeof i||""===i?"":r||"number"!=typeof i||0===i||Ci.hasOwnProperty(o)&&Ci[o]?(""+i).trim():i+"px","float"===n&&(n="cssFloat"),r?t.setProperty(n,o):t[n]=o}}function ue(t,e){e&&(Mi[t]&&(null!=e.children||null!=e.dangerouslySetInnerHTML)&&o("137",t,""),null!=e.dangerouslySetInnerHTML&&(null!=e.children&&o("60"),"object"==typeof e.dangerouslySetInnerHTML&&"__html"in e.dangerouslySetInnerHTML||o("61")),null!=e.style&&"object"!=typeof e.style&&o("62",""))}function se(t,e){if(-1===t.indexOf("-"))return"string"==typeof e.is;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function ce(t,e){t=9===t.nodeType||11===t.nodeType?t:t.ownerDocument;var n=Bt(t);e=jr[e];for(var r=0;r<e.length;r++){var o=e[r];if(!n.hasOwnProperty(o)||!n[o]){switch(o){case"scroll":zt("scroll",t);break;case"focus":case"blur":zt("focus",t),zt("blur",t),n.blur=!0,n.focus=!0;break;case"cancel":case"close":X(o)&&zt(o,t);break;case"invalid":case"submit":case"reset":break;default:-1===Yr.indexOf(o)&&Lt(o,t)}n[o]=!0}}}function le(){}function fe(t,e){switch(t){case"button":case"input":case"select":case"textarea":return!!e.autoFocus}return!1}function pe(t,e){return"textarea"===t||"option"===t||"noscript"===t||"string"==typeof e.children||"number"==typeof e.children||"object"==typeof e.dangerouslySetInnerHTML&&null!==e.dangerouslySetInnerHTML&&null!=e.dangerouslySetInnerHTML.__html}function de(t){for(t=t.nextSibling;t&&1!==t.nodeType&&3!==t.nodeType;)t=t.nextSibling;return t}function he(t){for(t=t.firstChild;t&&1!==t.nodeType&&3!==t.nodeType;)t=t.nextSibling;return t}function ve(t){0>Ri||(t.current=Ai[Ri],Ai[Ri]=null,Ri--)}function me(t,e){Ri++,Ai[Ri]=t.current,t.current=e}function ye(t,e){var n=t.type.contextTypes;if(!n)return Di;var r=t.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===e)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=e[o];return r&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=i),i}function ge(t){return null!==(t=t.childContextTypes)&&void 0!==t}function _e(t){ve(Li,t),ve(Fi,t)}function be(t){ve(Li,t),ve(Fi,t)}function we(t,e,n){Fi.current!==Di&&o("168"),me(Fi,e,t),me(Li,n,t)}function xe(t,e,n){var r=t.stateNode;if(t=e.childContextTypes,"function"!=typeof r.getChildContext)return n;r=r.getChildContext();for(var i in r)i in t||o("108",nt(e)||"Unknown",i);return br({},n,r)}function Ee(t){var e=t.stateNode;return e=e&&e.__reactInternalMemoizedMergedChildContext||Di,zi=Fi.current,me(Fi,e,t),me(Li,Li.current,t),!0}function Te(t,e,n){var r=t.stateNode;r||o("169"),n?(e=xe(t,e,zi),r.__reactInternalMemoizedMergedChildContext=e,ve(Li,t),ve(Fi,t),me(Fi,e,t)):ve(Li,t),me(Li,n,t)}function Oe(t){return function(e){try{return t(e)}catch(t){}}}function ke(t){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var e=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(e.isDisabled||!e.supportsFiber)return!0;try{var n=e.inject(t);Ui=Oe(function(t){return e.onCommitFiberRoot(n,t)}),Wi=Oe(function(t){return e.onCommitFiberUnmount(n,t)})}catch(t){}return!0}function Se(t,e,n,r){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=null,this.index=0,this.ref=null,this.pendingProps=e,this.firstContextDependency=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function Ne(t){return"object"==typeof(t=t.prototype)&&null!==t&&"object"==typeof t.isReactComponent&&null!==t.isReactComponent}function Ce(t,e,n){var r=t.alternate;return null===r?(r=new Se(t.tag,e,t.key,t.mode),r.type=t.type,r.stateNode=t.stateNode,r.alternate=t,t.alternate=r):(r.pendingProps=e,r.effectTag=0,r.nextEffect=null,r.firstEffect=null,r.lastEffect=null),r.childExpirationTime=t.childExpirationTime,r.expirationTime=e!==t.pendingProps?n:t.expirationTime,r.child=t.child,r.memoizedProps=t.memoizedProps,r.memoizedState=t.memoizedState,r.updateQueue=t.updateQueue,r.firstContextDependency=t.firstContextDependency,r.sibling=t.sibling,r.index=t.index,r.ref=t.ref,r}function Pe(t,e,n){var r=t.type,i=t.key;t=t.props;var a=void 0;if("function"==typeof r)a=Ne(r)?2:4;else if("string"==typeof r)a=7;else t:switch(r){case xo:return Me(t.children,e,n,i);case So:a=10,e|=3;break;case Eo:a=10,e|=2;break;case To:return r=new Se(15,t,i,4|e),r.type=To,r.expirationTime=n,r;case Co:a=16;break;default:if("object"==typeof r&&null!==r)switch(r.$$typeof){case Oo:a=12;break t;case ko:a=11;break t;case No:a=13;break t;default:if("function"==typeof r.then){a=4;break t}}o("130",null==r?r:typeof r,"")}return e=new Se(a,t,i,e),e.type=r,e.expirationTime=n,e}function Me(t,e,n,r){return t=new Se(9,t,r,e),t.expirationTime=n,t}function je(t,e,n){return t=new Se(8,t,null,e),t.expirationTime=n,t}function Ie(t,e,n){return e=new Se(6,null!==t.children?t.children:[],t.key,e),e.expirationTime=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function Ae(t,e){t.didError=!1;var n=t.earliestPendingTime;0===n?t.earliestPendingTime=t.latestPendingTime=e:n>e?t.earliestPendingTime=e:t.latestPendingTime<e&&(t.latestPendingTime=e),Re(e,t)}function Re(t,e){var n=e.earliestSuspendedTime,r=e.latestSuspendedTime,o=e.earliestPendingTime,i=e.latestPingedTime;o=0!==o?o:i,0===o&&(0===t||r>t)&&(o=r),t=o,0!==t&&0!==n&&n<t&&(t=n),e.nextExpirationTimeToWorkOn=o,e.expirationTime=t}function De(t){return{baseState:t,firstUpdate:null,lastUpdate:null,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function Fe(t){return{baseState:t.baseState,firstUpdate:t.firstUpdate,lastUpdate:t.lastUpdate,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function Le(t){return{expirationTime:t,tag:0,payload:null,callback:null,next:null,nextEffect:null}}function ze(t,e){null===t.lastUpdate?t.firstUpdate=t.lastUpdate=e:(t.lastUpdate.next=e,t.lastUpdate=e)}function Ue(t,e){var n=t.alternate;if(null===n){var r=t.updateQueue,o=null;null===r&&(r=t.updateQueue=De(t.memoizedState))}else r=t.updateQueue,o=n.updateQueue,null===r?null===o?(r=t.updateQueue=De(t.memoizedState),o=n.updateQueue=De(n.memoizedState)):r=t.updateQueue=Fe(o):null===o&&(o=n.updateQueue=Fe(r));null===o||r===o?ze(r,e):null===r.lastUpdate||null===o.lastUpdate?(ze(r,e),ze(o,e)):(ze(r,e),o.lastUpdate=e)}function We(t,e){var n=t.updateQueue;n=null===n?t.updateQueue=De(t.memoizedState):Be(t,n),null===n.lastCapturedUpdate?n.firstCapturedUpdate=n.lastCapturedUpdate=e:(n.lastCapturedUpdate.next=e,n.lastCapturedUpdate=e)}function Be(t,e){var n=t.alternate;return null!==n&&e===n.updateQueue&&(e=t.updateQueue=Fe(e)),e}function qe(t,e,n,r,o,i){switch(n.tag){case 1:return t=n.payload,"function"==typeof t?t.call(i,r,o):t;case 3:t.effectTag=-1025&t.effectTag|64;case 0:if(t=n.payload,null===(o="function"==typeof t?t.call(i,r,o):t)||void 0===o)break;return br({},r,o);case 2:Bi=!0}return r}function Ve(t,e,n,r,o){Bi=!1,e=Be(t,e);for(var i=e.baseState,a=null,u=0,s=e.firstUpdate,c=i;null!==s;){var l=s.expirationTime;l>o?(null===a&&(a=s,i=c),(0===u||u>l)&&(u=l)):(c=qe(t,e,s,c,n,r),null!==s.callback&&(t.effectTag|=32,s.nextEffect=null,null===e.lastEffect?e.firstEffect=e.lastEffect=s:(e.lastEffect.nextEffect=s,e.lastEffect=s))),s=s.next}for(l=null,s=e.firstCapturedUpdate;null!==s;){var f=s.expirationTime;f>o?(null===l&&(l=s,null===a&&(i=c)),(0===u||u>f)&&(u=f)):(c=qe(t,e,s,c,n,r),null!==s.callback&&(t.effectTag|=32,s.nextEffect=null,null===e.lastCapturedEffect?e.firstCapturedEffect=e.lastCapturedEffect=s:(e.lastCapturedEffect.nextEffect=s,e.lastCapturedEffect=s))),s=s.next}null===a&&(e.lastUpdate=null),null===l?e.lastCapturedUpdate=null:t.effectTag|=32,null===a&&null===l&&(i=c),e.baseState=i,e.firstUpdate=a,e.firstCapturedUpdate=l,t.expirationTime=u,t.memoizedState=c}function Ge(t,e,n){null!==e.firstCapturedUpdate&&(null!==e.lastUpdate&&(e.lastUpdate.next=e.firstCapturedUpdate,e.lastUpdate=e.lastCapturedUpdate),e.firstCapturedUpdate=e.lastCapturedUpdate=null),He(e.firstEffect,n),e.firstEffect=e.lastEffect=null,He(e.firstCapturedEffect,n),e.firstCapturedEffect=e.lastCapturedEffect=null}function He(t,e){for(;null!==t;){var n=t.callback;if(null!==n){t.callback=null;var r=e;"function"!=typeof n&&o("191",n),n.call(r)}t=t.nextEffect}}function Ke(t,e){return{value:t,source:e,stack:rt(e)}}function $e(t,e){var n=t.type._context;me(qi,n._currentValue,t),n._currentValue=e}function Ye(t){var e=qi.current;ve(qi,t),t.type._context._currentValue=e}function Xe(t){Vi=t,Hi=Gi=null,t.firstContextDependency=null}function Je(t,e){return Hi!==t&&!1!==e&&0!==e&&("number"==typeof e&&1073741823!==e||(Hi=t,e=1073741823),e={context:t,observedBits:e,next:null},null===Gi?(null===Vi&&o("277"),Vi.firstContextDependency=Gi=e):Gi=Gi.next=e),t._currentValue}function Qe(t){return t===Ki&&o("174"),t}function Ze(t,e){me(Xi,e,t),me(Yi,t,t),me($i,Ki,t);var n=e.nodeType;switch(n){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:oe(null,"");break;default:n=8===n?e.parentNode:e,e=n.namespaceURI||null,n=n.tagName,e=oe(e,n)}ve($i,t),me($i,e,t)}function tn(t){ve($i,t),ve(Yi,t),ve(Xi,t)}function en(t){Qe(Xi.current);var e=Qe($i.current),n=oe(e,t.type);e!==n&&(me(Yi,t,t),me($i,n,t))}function nn(t){Yi.current===t&&(ve($i,t),ve(Yi,t))}function rn(t,e,n,r){e=t.memoizedState,n=n(r,e),n=null===n||void 0===n?e:br({},e,n),t.memoizedState=n,null!==(r=t.updateQueue)&&0===t.expirationTime&&(r.baseState=n)}function on(t,e,n,r,o,i,a){return t=t.stateNode,"function"==typeof t.shouldComponentUpdate?t.shouldComponentUpdate(r,i,a):!e.prototype||!e.prototype.isPureReactComponent||(!Pt(n,r)||!Pt(o,i))}function an(t,e,n,r){t=e.state,"function"==typeof e.componentWillReceiveProps&&e.componentWillReceiveProps(n,r),"function"==typeof e.UNSAFE_componentWillReceiveProps&&e.UNSAFE_componentWillReceiveProps(n,r),e.state!==t&&Qi.enqueueReplaceState(e,e.state,null)}function un(t,e,n,r){var o=t.stateNode,i=ge(e)?zi:Fi.current;o.props=n,o.state=t.memoizedState,o.refs=Ji,o.context=ye(t,i),i=t.updateQueue,null!==i&&(Ve(t,i,n,o,r),o.state=t.memoizedState),i=e.getDerivedStateFromProps,"function"==typeof i&&(rn(t,e,i,n),o.state=t.memoizedState),"function"==typeof e.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(e=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),e!==o.state&&Qi.enqueueReplaceState(o,o.state,null),null!==(i=t.updateQueue)&&(Ve(t,i,n,o,r),o.state=t.memoizedState)),"function"==typeof o.componentDidMount&&(t.effectTag|=4)}function sn(t,e,n){if(null!==(t=n.ref)&&"function"!=typeof t&&"object"!=typeof t){if(n._owner){n=n._owner;var r=void 0;n&&(2!==n.tag&&3!==n.tag&&o("110"),r=n.stateNode),r||o("147",t);var i=""+t;return null!==e&&null!==e.ref&&"function"==typeof e.ref&&e.ref._stringRef===i?e.ref:(e=function(t){var e=r.refs;e===Ji&&(e=r.refs={}),null===t?delete e[i]:e[i]=t},e._stringRef=i,e)}"string"!=typeof t&&o("284"),n._owner||o("254",t)}return t}function cn(t,e){"textarea"!==t.type&&o("31","[object Object]"===Object.prototype.toString.call(e)?"object with keys {"+Object.keys(e).join(", ")+"}":e,"")}function ln(t){function e(e,n){if(t){var r=e.lastEffect;null!==r?(r.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n,n.nextEffect=null,n.effectTag=8}}function n(n,r){if(!t)return null;for(;null!==r;)e(n,r),r=r.sibling;return null}function r(t,e){for(t=new Map;null!==e;)null!==e.key?t.set(e.key,e):t.set(e.index,e),e=e.sibling;return t}function i(t,e,n){return t=Ce(t,e,n),t.index=0,t.sibling=null,t}function a(e,n,r){return e.index=r,t?null!==(r=e.alternate)?(r=r.index,r<n?(e.effectTag=2,n):r):(e.effectTag=2,n):n}function u(e){return t&&null===e.alternate&&(e.effectTag=2),e}function s(t,e,n,r){return null===e||8!==e.tag?(e=je(n,t.mode,r),e.return=t,e):(e=i(e,n,r),e.return=t,e)}function c(t,e,n,r){return null!==e&&e.type===n.type?(r=i(e,n.props,r),r.ref=sn(t,e,n),r.return=t,r):(r=Pe(n,t.mode,r),r.ref=sn(t,e,n),r.return=t,r)}function l(t,e,n,r){return null===e||6!==e.tag||e.stateNode.containerInfo!==n.containerInfo||e.stateNode.implementation!==n.implementation?(e=Ie(n,t.mode,r),e.return=t,e):(e=i(e,n.children||[],r),e.return=t,e)}function f(t,e,n,r,o){return null===e||9!==e.tag?(e=Me(n,t.mode,r,o),e.return=t,e):(e=i(e,n,r),e.return=t,e)}function p(t,e,n){if("string"==typeof e||"number"==typeof e)return e=je(""+e,t.mode,n),e.return=t,e;if("object"==typeof e&&null!==e){switch(e.$$typeof){case bo:return n=Pe(e,t.mode,n),n.ref=sn(t,null,e),n.return=t,n;case wo:return e=Ie(e,t.mode,n),e.return=t,e}if(Zi(e)||et(e))return e=Me(e,t.mode,n,null),e.return=t,e;cn(t,e)}return null}function d(t,e,n,r){var o=null!==e?e.key:null;if("string"==typeof n||"number"==typeof n)return null!==o?null:s(t,e,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case bo:return n.key===o?n.type===xo?f(t,e,n.props.children,r,o):c(t,e,n,r):null;case wo:return n.key===o?l(t,e,n,r):null}if(Zi(n)||et(n))return null!==o?null:f(t,e,n,r,null);cn(t,n)}return null}function h(t,e,n,r,o){if("string"==typeof r||"number"==typeof r)return t=t.get(n)||null,s(e,t,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case bo:return t=t.get(null===r.key?n:r.key)||null,r.type===xo?f(e,t,r.props.children,o,r.key):c(e,t,r,o);case wo:return t=t.get(null===r.key?n:r.key)||null,l(e,t,r,o)}if(Zi(r)||et(r))return t=t.get(n)||null,f(e,t,r,o,null);cn(e,r)}return null}function v(o,i,u,s){for(var c=null,l=null,f=i,v=i=0,m=null;null!==f&&v<u.length;v++){f.index>v?(m=f,f=null):m=f.sibling;var y=d(o,f,u[v],s);if(null===y){null===f&&(f=m);break}t&&f&&null===y.alternate&&e(o,f),i=a(y,i,v),null===l?c=y:l.sibling=y,l=y,f=m}if(v===u.length)return n(o,f),c;if(null===f){for(;v<u.length;v++)(f=p(o,u[v],s))&&(i=a(f,i,v),null===l?c=f:l.sibling=f,l=f);return c}for(f=r(o,f);v<u.length;v++)(m=h(f,o,v,u[v],s))&&(t&&null!==m.alternate&&f.delete(null===m.key?v:m.key),i=a(m,i,v),null===l?c=m:l.sibling=m,l=m);return t&&f.forEach(function(t){return e(o,t)}),c}function m(i,u,s,c){var l=et(s);"function"!=typeof l&&o("150"),null==(s=l.call(s))&&o("151");for(var f=l=null,v=u,m=u=0,y=null,g=s.next();null!==v&&!g.done;m++,g=s.next()){v.index>m?(y=v,v=null):y=v.sibling;var _=d(i,v,g.value,c);if(null===_){v||(v=y);break}t&&v&&null===_.alternate&&e(i,v),u=a(_,u,m),null===f?l=_:f.sibling=_,f=_,v=y}if(g.done)return n(i,v),l;if(null===v){for(;!g.done;m++,g=s.next())null!==(g=p(i,g.value,c))&&(u=a(g,u,m),null===f?l=g:f.sibling=g,f=g);return l}for(v=r(i,v);!g.done;m++,g=s.next())null!==(g=h(v,i,m,g.value,c))&&(t&&null!==g.alternate&&v.delete(null===g.key?m:g.key),u=a(g,u,m),null===f?l=g:f.sibling=g,f=g);return t&&v.forEach(function(t){return e(i,t)}),l}return function(t,r,a,s){var c="object"==typeof a&&null!==a&&a.type===xo&&null===a.key;c&&(a=a.props.children);var l="object"==typeof a&&null!==a;if(l)switch(a.$$typeof){case bo:t:{for(l=a.key,c=r;null!==c;){if(c.key===l){if(9===c.tag?a.type===xo:c.type===a.type){n(t,c.sibling),r=i(c,a.type===xo?a.props.children:a.props,s),r.ref=sn(t,c,a),r.return=t,t=r;break t}n(t,c);break}e(t,c),c=c.sibling}a.type===xo?(r=Me(a.props.children,t.mode,s,a.key),r.return=t,t=r):(s=Pe(a,t.mode,s),s.ref=sn(t,r,a),s.return=t,t=s)}return u(t);case wo:t:{for(c=a.key;null!==r;){if(r.key===c){if(6===r.tag&&r.stateNode.containerInfo===a.containerInfo&&r.stateNode.implementation===a.implementation){n(t,r.sibling),r=i(r,a.children||[],s),r.return=t,t=r;break t}n(t,r);break}e(t,r),r=r.sibling}r=Ie(a,t.mode,s),r.return=t,t=r}return u(t)}if("string"==typeof a||"number"==typeof a)return a=""+a,null!==r&&8===r.tag?(n(t,r.sibling),r=i(r,a,s),r.return=t,t=r):(n(t,r),r=je(a,t.mode,s),r.return=t,t=r),u(t);if(Zi(a))return v(t,r,a,s);if(et(a))return m(t,r,a,s);if(l&&cn(t,a),void 0===a&&!c)switch(t.tag){case 2:case 3:case 0:s=t.type,o("152",s.displayName||s.name||"Component")}return n(t,r)}}function fn(t,e){var n=new Se(7,null,null,0);n.type="DELETED",n.stateNode=e,n.return=t,n.effectTag=8,null!==t.lastEffect?(t.lastEffect.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n}function pn(t,e){switch(t.tag){case 7:var n=t.type;return null!==(e=1!==e.nodeType||n.toLowerCase()!==e.nodeName.toLowerCase()?null:e)&&(t.stateNode=e,!0);case 8:return null!==(e=""===t.pendingProps||3!==e.nodeType?null:e)&&(t.stateNode=e,!0);default:return!1}}function dn(t){if(oa){var e=ra;if(e){var n=e;if(!pn(t,e)){if(!(e=de(n))||!pn(t,e))return t.effectTag|=2,oa=!1,void(na=t);fn(na,n)}na=t,ra=he(e)}else t.effectTag|=2,oa=!1,na=t}}function hn(t){for(t=t.return;null!==t&&7!==t.tag&&5!==t.tag;)t=t.return;na=t}function vn(t){if(t!==na)return!1;if(!oa)return hn(t),oa=!0,!1;var e=t.type;if(7!==t.tag||"head"!==e&&"body"!==e&&!pe(e,t.memoizedProps))for(e=ra;e;)fn(t,e),e=de(e);return hn(t),ra=na?de(t.stateNode):null,!0}function mn(){ra=na=null,oa=!1}function yn(t){switch(t._reactStatus){case 1:return t._reactResult;case 2:throw t._reactResult;case 0:throw t;default:throw t._reactStatus=0,t.then(function(e){if(0===t._reactStatus){if(t._reactStatus=1,"object"==typeof e&&null!==e){var n=e.default;e=void 0!==n&&null!==n?n:e}t._reactResult=e}},function(e){0===t._reactStatus&&(t._reactStatus=2,t._reactResult=e)}),t}}function gn(t,e,n,r){e.child=null===t?ea(e,null,n,r):ta(e,t.child,n,r)}function _n(t,e,n,r,o){n=n.render;var i=e.ref;return Li.current||e.memoizedProps!==r||i!==(null!==t?t.ref:null)?(n=n(r,i),gn(t,e,n,o),e.memoizedProps=r,e.child):Sn(t,e,o)}function bn(t,e){var n=e.ref;(null===t&&null!==n||null!==t&&t.ref!==n)&&(e.effectTag|=128)}function wn(t,e,n,r,o){var i=ge(n)?zi:Fi.current;return i=ye(e,i),Xe(e,o),n=n(r,i),e.effectTag|=1,gn(t,e,n,o),e.memoizedProps=r,e.child}function xn(t,e,n,r,o){if(ge(n)){var i=!0;Ee(e)}else i=!1;if(Xe(e,o),null===t)if(null===e.stateNode){var a=ge(n)?zi:Fi.current,u=n.contextTypes,s=null!==u&&void 0!==u;u=s?ye(e,a):Di;var c=new n(r,u);e.memoizedState=null!==c.state&&void 0!==c.state?c.state:null,c.updater=Qi,e.stateNode=c,c._reactInternalFiber=e,s&&(s=e.stateNode,s.__reactInternalMemoizedUnmaskedChildContext=a,s.__reactInternalMemoizedMaskedChildContext=u),un(e,n,r,o),r=!0}else{a=e.stateNode,u=e.memoizedProps,a.props=u;var l=a.context;s=ge(n)?zi:Fi.current,s=ye(e,s);var f=n.getDerivedStateFromProps;(c="function"==typeof f||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(u!==r||l!==s)&&an(e,a,r,s),Bi=!1;var p=e.memoizedState;l=a.state=p;var d=e.updateQueue;null!==d&&(Ve(e,d,r,a,o),l=e.memoizedState),u!==r||p!==l||Li.current||Bi?("function"==typeof f&&(rn(e,n,f,r),l=e.memoizedState),(u=Bi||on(e,n,u,r,p,l,s))?(c||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(e.effectTag|=4)):("function"==typeof a.componentDidMount&&(e.effectTag|=4),e.memoizedProps=r,e.memoizedState=l),a.props=r,a.state=l,a.context=s,r=u):("function"==typeof a.componentDidMount&&(e.effectTag|=4),r=!1)}else a=e.stateNode,u=e.memoizedProps,a.props=u,l=a.context,s=ge(n)?zi:Fi.current,s=ye(e,s),f=n.getDerivedStateFromProps,(c="function"==typeof f||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(u!==r||l!==s)&&an(e,a,r,s),Bi=!1,l=e.memoizedState,p=a.state=l,d=e.updateQueue,null!==d&&(Ve(e,d,r,a,o),p=e.memoizedState),u!==r||l!==p||Li.current||Bi?("function"==typeof f&&(rn(e,n,f,r),p=e.memoizedState),(f=Bi||on(e,n,u,r,l,p,s))?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,p,s),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,p,s)),"function"==typeof a.componentDidUpdate&&(e.effectTag|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(e.effectTag|=256)):("function"!=typeof a.componentDidUpdate||u===t.memoizedProps&&l===t.memoizedState||(e.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||u===t.memoizedProps&&l===t.memoizedState||(e.effectTag|=256),e.memoizedProps=r,e.memoizedState=p),a.props=r,a.state=p,a.context=s,r=f):("function"!=typeof a.componentDidUpdate||u===t.memoizedProps&&l===t.memoizedState||(e.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||u===t.memoizedProps&&l===t.memoizedState||(e.effectTag|=256),r=!1);return En(t,e,n,r,i,o)}function En(t,e,n,r,o,i){bn(t,e);var a=0!=(64&e.effectTag);if(!r&&!a)return o&&Te(e,n,!1),Sn(t,e,i);r=e.stateNode,ia.current=e;var u=a?null:r.render();return e.effectTag|=1,null!==t&&a&&(gn(t,e,null,i),e.child=null),gn(t,e,u,i),e.memoizedState=r.state,e.memoizedProps=r.props,o&&Te(e,n,!0),e.child}function Tn(t){var e=t.stateNode;e.pendingContext?we(t,e.pendingContext,e.pendingContext!==e.context):e.context&&we(t,e.context,!1),Ze(t,e.containerInfo)}function On(t,e){if(t&&t.defaultProps){e=br({},e),t=t.defaultProps;for(var n in t)void 0===e[n]&&(e[n]=t[n])}return e}function kn(t,e,n,r){null!==t&&o("155");var i=e.pendingProps;if("object"==typeof n&&null!==n&&"function"==typeof n.then){n=yn(n);var a=n;a="function"==typeof a?Ne(a)?3:1:void 0!==a&&null!==a&&a.$$typeof?14:4,a=e.tag=a;var u=On(n,i);switch(a){case 1:return wn(t,e,n,u,r);case 3:return xn(t,e,n,u,r);case 14:return _n(t,e,n,u,r);default:o("283",n)}}if(a=ye(e,Fi.current),Xe(e,r),a=n(i,a),e.effectTag|=1,"object"==typeof a&&null!==a&&"function"==typeof a.render&&void 0===a.$$typeof){e.tag=2,ge(n)?(u=!0,Ee(e)):u=!1,e.memoizedState=null!==a.state&&void 0!==a.state?a.state:null;var s=n.getDerivedStateFromProps;return"function"==typeof s&&rn(e,n,s,i),a.updater=Qi,e.stateNode=a,a._reactInternalFiber=e,un(e,n,i,r),En(t,e,n,!0,u,r)}return e.tag=0,gn(t,e,a,r),e.memoizedProps=i,e.child}function Sn(t,e,n){null!==t&&(e.firstContextDependency=t.firstContextDependency);var r=e.childExpirationTime;if(0===r||r>n)return null;if(null!==t&&e.child!==t.child&&o("153"),null!==e.child){for(t=e.child,n=Ce(t,t.pendingProps,t.expirationTime),e.child=n,n.return=e;null!==t.sibling;)t=t.sibling,n=n.sibling=Ce(t,t.pendingProps,t.expirationTime),n.return=e;n.sibling=null}return e.child}function Nn(t,e,n){var r=e.expirationTime;if(!Li.current&&(0===r||r>n)){switch(e.tag){case 5:Tn(e),mn();break;case 7:en(e);break;case 2:ge(e.type)&&Ee(e);break;case 3:ge(e.type._reactResult)&&Ee(e);break;case 6:Ze(e,e.stateNode.containerInfo);break;case 12:$e(e,e.memoizedProps.value)}return Sn(t,e,n)}switch(e.expirationTime=0,e.tag){case 4:return kn(t,e,e.type,n);case 0:return wn(t,e,e.type,e.pendingProps,n);case 1:var i=e.type._reactResult;return r=e.pendingProps,t=wn(t,e,i,On(i,r),n),e.memoizedProps=r,t;case 2:return xn(t,e,e.type,e.pendingProps,n);case 3:return i=e.type._reactResult,r=e.pendingProps,t=xn(t,e,i,On(i,r),n),e.memoizedProps=r,t;case 5:return Tn(e),r=e.updateQueue,null===r&&o("282"),i=e.memoizedState,i=null!==i?i.element:null,Ve(e,r,e.pendingProps,null,n),r=e.memoizedState.element,r===i?(mn(),e=Sn(t,e,n)):(i=e.stateNode,(i=(null===t||null===t.child)&&i.hydrate)&&(ra=he(e.stateNode.containerInfo),na=e,i=oa=!0),i?(e.effectTag|=2,e.child=ea(e,null,r,n)):(gn(t,e,r,n),mn()),e=e.child),e;case 7:en(e),null===t&&dn(e),r=e.type,i=e.pendingProps;var a=null!==t?t.memoizedProps:null,u=i.children;return pe(r,i)?u=null:null!==a&&pe(r,a)&&(e.effectTag|=16),bn(t,e),1073741823!==n&&1&e.mode&&i.hidden?(e.expirationTime=1073741823,e.memoizedProps=i,e=null):(gn(t,e,u,n),e.memoizedProps=i,e=e.child),e;case 8:return null===t&&dn(e),e.memoizedProps=e.pendingProps,null;case 16:return null;case 6:return Ze(e,e.stateNode.containerInfo),r=e.pendingProps,null===t?e.child=ta(e,null,r,n):gn(t,e,r,n),e.memoizedProps=r,e.child;case 13:return _n(t,e,e.type,e.pendingProps,n);case 14:return i=e.type._reactResult,r=e.pendingProps,t=_n(t,e,i,On(i,r),n),e.memoizedProps=r,t;case 9:return r=e.pendingProps,gn(t,e,r,n),e.memoizedProps=r,e.child;case 10:return r=e.pendingProps.children,gn(t,e,r,n),e.memoizedProps=r,e.child;case 15:return r=e.pendingProps,gn(t,e,r.children,n),e.memoizedProps=r,e.child;case 12:t:{if(r=e.type._context,i=e.pendingProps,u=e.memoizedProps,a=i.value,e.memoizedProps=i,$e(e,a),null!==u){var s=u.value;if(0===(a=s===a&&(0!==s||1/s==1/a)||s!==s&&a!==a?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(s,a):1073741823))){if(u.children===i.children&&!Li.current){e=Sn(t,e,n);break t}}else for(null!==(u=e.child)&&(u.return=e);null!==u;){if(null!==(s=u.firstContextDependency))do{if(s.context===r&&0!=(s.observedBits&a)){if(2===u.tag||3===u.tag){var c=Le(n);c.tag=2,Ue(u,c)}(0===u.expirationTime||u.expirationTime>n)&&(u.expirationTime=n),c=u.alternate,null!==c&&(0===c.expirationTime||c.expirationTime>n)&&(c.expirationTime=n);for(var l=u.return;null!==l;){if(c=l.alternate,0===l.childExpirationTime||l.childExpirationTime>n)l.childExpirationTime=n,null!==c&&(0===c.childExpirationTime||c.childExpirationTime>n)&&(c.childExpirationTime=n);else{if(null===c||!(0===c.childExpirationTime||c.childExpirationTime>n))break;c.childExpirationTime=n}l=l.return}}c=u.child,s=s.next}while(null!==s);else c=12===u.tag&&u.type===e.type?null:u.child;if(null!==c)c.return=u;else for(c=u;null!==c;){if(c===e){c=null;break}if(null!==(u=c.sibling)){u.return=c.return,c=u;break}c=c.return}u=c}}gn(t,e,i.children,n),e=e.child}return e;case 11:return a=e.type,r=e.pendingProps,i=r.children,Xe(e,n),a=Je(a,r.unstable_observedBits),i=i(a),e.effectTag|=1,gn(t,e,i,n),e.memoizedProps=r,e.child;default:o("156")}}function Cn(t){t.effectTag|=4}function Pn(t,e){var n=e.source,r=e.stack;null===r&&null!==n&&(r=rt(n)),null!==n&&nt(n.type),e=e.value,null!==t&&2===t.tag&&nt(t.type);try{console.error(e)}catch(t){setTimeout(function(){throw t})}}function Mn(t){var e=t.ref;if(null!==e)if("function"==typeof e)try{e(null)}catch(e){Vn(t,e)}else e.current=null}function jn(t){switch("function"==typeof Wi&&Wi(t),t.tag){case 2:case 3:Mn(t);var e=t.stateNode;if("function"==typeof e.componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){Vn(t,e)}break;case 7:Mn(t);break;case 6:Rn(t)}}function In(t){return 7===t.tag||5===t.tag||6===t.tag}function An(t){t:{for(var e=t.return;null!==e;){if(In(e)){var n=e;break t}e=e.return}o("160"),n=void 0}var r=e=void 0;switch(n.tag){case 7:e=n.stateNode,r=!1;break;case 5:case 6:e=n.stateNode.containerInfo,r=!0;break;default:o("161")}16&n.effectTag&&(ie(e,""),n.effectTag&=-17);t:e:for(n=t;;){for(;null===n.sibling;){if(null===n.return||In(n.return)){n=null;break t}n=n.return}for(n.sibling.return=n.return,n=n.sibling;7!==n.tag&&8!==n.tag;){if(2&n.effectTag)continue e;if(null===n.child||6===n.tag)continue e;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break t}}for(var i=t;;){if(7===i.tag||8===i.tag)if(n)if(r){var a=e,u=i.stateNode,s=n;8===a.nodeType?a.parentNode.insertBefore(u,s):a.insertBefore(u,s)}else e.insertBefore(i.stateNode,n);else r?(a=e,u=i.stateNode,8===a.nodeType?(s=a.parentNode,s.insertBefore(u,a)):(s=a,s.appendChild(u)),null===s.onclick&&(s.onclick=le)):e.appendChild(i.stateNode);else if(6!==i.tag&&null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;i=i.return}i.sibling.return=i.return,i=i.sibling}}function Rn(t){for(var e=t,n=!1,r=void 0,i=void 0;;){if(!n){n=e.return;t:for(;;){switch(null===n&&o("160"),n.tag){case 7:r=n.stateNode,i=!1;break t;case 5:case 6:r=n.stateNode.containerInfo,i=!0;break t}n=n.return}n=!0}if(7===e.tag||8===e.tag){t:for(var a=e,u=a;;)if(jn(u),null!==u.child&&6!==u.tag)u.child.return=u,u=u.child;else{if(u===a)break;for(;null===u.sibling;){if(null===u.return||u.return===a)break t;u=u.return}u.sibling.return=u.return,u=u.sibling}i?(a=r,u=e.stateNode,8===a.nodeType?a.parentNode.removeChild(u):a.removeChild(u)):r.removeChild(e.stateNode)}else if(6===e.tag?(r=e.stateNode.containerInfo,i=!0):jn(e),null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break;for(;null===e.sibling;){if(null===e.return||e.return===t)return;e=e.return,6===e.tag&&(n=!1)}e.sibling.return=e.return,e=e.sibling}}function Dn(t,e){switch(e.tag){case 2:case 3:break;case 7:var n=e.stateNode;if(null!=n){var r=e.memoizedProps,i=null!==t?t.memoizedProps:r;t=e.type;var a=e.updateQueue;if(e.updateQueue=null,null!==a){for(n[Ur]=r,"input"===t&&"radio"===r.type&&null!=r.name&&dt(n,r),se(t,i),e=se(t,r),i=0;i<a.length;i+=2){var u=a[i],s=a[i+1];"style"===u?ae(n,s):"dangerouslySetInnerHTML"===u?Ni(n,s):"children"===u?ie(n,s):ct(n,u,s,e)}switch(t){case"input":ht(n,r);break;case"textarea":ee(n,r);break;case"select":t=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,a=r.value,null!=a?Qt(n,!!r.multiple,a,!1):t!==!!r.multiple&&(null!=r.defaultValue?Qt(n,!!r.multiple,r.defaultValue,!0):Qt(n,!!r.multiple,r.multiple?[]:"",!1))}}}break;case 8:null===e.stateNode&&o("162"),e.stateNode.nodeValue=e.memoizedProps;break;case 5:case 15:case 16:break;default:o("163")}}function Fn(t,e,n){n=Le(n),n.tag=3,n.payload={element:null};var r=e.value;return n.callback=function(){rr(r),Pn(t,e)},n}function Ln(t,e,n){n=Le(n),n.tag=3;var r=t.stateNode;return null!==r&&"function"==typeof r.componentDidCatch&&(n.callback=function(){null===ba?ba=new Set([this]):ba.add(this);var n=e.value,r=e.stack;Pn(t,e),this.componentDidCatch(n,{componentStack:null!==r?r:""})}),n}function zn(t){switch(t.tag){case 2:ge(t.type)&&_e(t);var e=t.effectTag;return 1024&e?(t.effectTag=-1025&e|64,t):null;case 3:return ge(t.type._reactResult)&&_e(t),e=t.effectTag,1024&e?(t.effectTag=-1025&e|64,t):null;case 5:return tn(t),be(t),e=t.effectTag,0!=(64&e)&&o("285"),t.effectTag=-1025&e|64,t;case 7:return nn(t),null;case 16:return e=t.effectTag,1024&e?(t.effectTag=-1025&e|64,t):null;case 6:return tn(t),null;case 12:return Ye(t),null;default:return null}}function Un(){if(null!==ha)for(var t=ha.return;null!==t;){var e=t;switch(e.tag){case 2:var n=e.type.childContextTypes;null!==n&&void 0!==n&&_e(e);break;case 3:n=e.type._reactResult.childContextTypes,null!==n&&void 0!==n&&_e(e);break;case 5:tn(e),be(e);break;case 7:nn(e);break;case 6:tn(e);break;case 12:Ye(e)}t=t.return}va=null,ma=0,ya=!1,ha=null}function Wn(t){for(;;){var e=t.alternate,n=t.return,r=t.sibling;if(0==(512&t.effectTag)){var i=e;e=t;var a=e.pendingProps;switch(e.tag){case 0:case 1:break;case 2:ge(e.type)&&_e(e);break;case 3:ge(e.type._reactResult)&&_e(e);break;case 5:tn(e),be(e),a=e.stateNode,a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),null!==i&&null!==i.child||(vn(e),e.effectTag&=-3),aa(e);break;case 7:nn(e);var u=Qe(Xi.current),s=e.type;if(null!==i&&null!=e.stateNode){var c=i.memoizedProps;if(c!==a){var l=e.stateNode,f=Qe($i.current),p=l,d=s,h=c,v=a;l=u;var m=null;switch(d){case"input":h=ft(p,h),v=ft(p,v),m=[];break;case"option":h=Jt(p,h),v=Jt(p,v),m=[];break;case"select":h=br({},h,{value:void 0}),v=br({},v,{value:void 0}),m=[];break;case"textarea":h=Zt(p,h),v=Zt(p,v),m=[];break;default:"function"!=typeof h.onClick&&"function"==typeof v.onClick&&(p.onclick=le)}ue(d,v),d=p=void 0;var y=null;for(p in h)if(!v.hasOwnProperty(p)&&h.hasOwnProperty(p)&&null!=h[p])if("style"===p){var g=h[p];for(d in g)g.hasOwnProperty(d)&&(y||(y={}),y[d]="")}else"dangerouslySetInnerHTML"!==p&&"children"!==p&&"suppressContentEditableWarning"!==p&&"suppressHydrationWarning"!==p&&"autoFocus"!==p&&(Mr.hasOwnProperty(p)?m||(m=[]):(m=m||[]).push(p,null));for(p in v){var _=v[p];if(g=null!=h?h[p]:void 0,v.hasOwnProperty(p)&&_!==g&&(null!=_||null!=g))if("style"===p)if(g){for(d in g)!g.hasOwnProperty(d)||_&&_.hasOwnProperty(d)||(y||(y={}),y[d]="");for(d in _)_.hasOwnProperty(d)&&g[d]!==_[d]&&(y||(y={}),y[d]=_[d])}else y||(m||(m=[]),m.push(p,y)),y=_;else"dangerouslySetInnerHTML"===p?(_=_?_.__html:void 0,g=g?g.__html:void 0,null!=_&&g!==_&&(m=m||[]).push(p,""+_)):"children"===p?g===_||"string"!=typeof _&&"number"!=typeof _||(m=m||[]).push(p,""+_):"suppressContentEditableWarning"!==p&&"suppressHydrationWarning"!==p&&(Mr.hasOwnProperty(p)?(null!=_&&ce(l,p),m||g===_||(m=[])):(m=m||[]).push(p,_))}y&&(m=m||[]).push("style",y),ua(i,e,m,s,c,a,u,f)}i.ref!==e.ref&&(e.effectTag|=128)}else if(a){if(m=Qe($i.current),vn(e)){switch(a=e,l=a.stateNode,i=a.type,c=a.memoizedProps,f=u,l[zr]=a,l[Ur]=c,s=void 0,u=l,i){case"iframe":case"object":Lt("load",u);break;case"video":case"audio":for(l=0;l<Yr.length;l++)Lt(Yr[l],u);break;case"source":Lt("error",u);break;case"img":case"image":case"link":Lt("error",u),Lt("load",u);break;case"form":Lt("reset",u),Lt("submit",u);break;case"details":Lt("toggle",u);break;case"input":pt(u,c),Lt("invalid",u),ce(f,"onChange");break;case"select":u._wrapperState={wasMultiple:!!c.multiple},Lt("invalid",u),ce(f,"onChange");break;case"textarea":te(u,c),Lt("invalid",u),ce(f,"onChange")}ue(i,c),l=null;for(s in c)c.hasOwnProperty(s)&&(m=c[s],"children"===s?"string"==typeof m?u.textContent!==m&&(l=["children",m]):"number"==typeof m&&u.textContent!==""+m&&(l=["children",""+m]):Mr.hasOwnProperty(s)&&null!=m&&ce(f,s));switch(i){case"input":Z(u),vt(u,c,!0);break;case"textarea":Z(u),ne(u,c);break;case"select":case"option":break;default:"function"==typeof c.onClick&&(u.onclick=le)}s=l,a.updateQueue=s,a=null!==s,a&&Cn(e)}else{c=e,i=s,f=a,l=9===u.nodeType?u:u.ownerDocument,m===ki.html&&(m=re(i)),m===ki.html?"script"===i?(i=l.createElement("div"),i.innerHTML="<script><\/script>",l=i.removeChild(i.firstChild)):"string"==typeof f.is?l=l.createElement(i,{is:f.is}):(l=l.createElement(i),"select"===i&&f.multiple&&(l.multiple=!0)):l=l.createElementNS(m,i),i=l,i[zr]=c,i[Ur]=a;t:for(c=i,f=e,l=f.child;null!==l;){if(7===l.tag||8===l.tag)c.appendChild(l.stateNode);else if(6!==l.tag&&null!==l.child){l.child.return=l,l=l.child;continue}if(l===f)break;for(;null===l.sibling;){if(null===l.return||l.return===f)break t;l=l.return}l.sibling.return=l.return,l=l.sibling}switch(f=i,l=s,c=a,p=u,y=se(l,c),l){case"iframe":case"object":Lt("load",f),u=c;break;case"video":case"audio":for(u=0;u<Yr.length;u++)Lt(Yr[u],f);u=c;break;case"source":Lt("error",f),u=c;break;case"img":case"image":case"link":Lt("error",f),Lt("load",f),u=c;break;case"form":Lt("reset",f),Lt("submit",f),u=c;break;case"details":Lt("toggle",f),u=c;break;case"input":pt(f,c),u=ft(f,c),Lt("invalid",f),ce(p,"onChange");break;case"option":u=Jt(f,c);break;case"select":f._wrapperState={wasMultiple:!!c.multiple},u=br({},c,{value:void 0}),Lt("invalid",f),ce(p,"onChange");break;case"textarea":te(f,c),u=Zt(f,c),Lt("invalid",f),ce(p,"onChange");break;default:u=c}ue(l,u),m=void 0,h=l,v=f,d=u;for(m in d)d.hasOwnProperty(m)&&(g=d[m],"style"===m?ae(v,g):"dangerouslySetInnerHTML"===m?null!=(g=g?g.__html:void 0)&&Ni(v,g):"children"===m?"string"==typeof g?("textarea"!==h||""!==g)&&ie(v,g):"number"==typeof g&&ie(v,""+g):"suppressContentEditableWarning"!==m&&"suppressHydrationWarning"!==m&&"autoFocus"!==m&&(Mr.hasOwnProperty(m)?null!=g&&ce(p,m):null!=g&&ct(v,m,g,y)));switch(l){case"input":Z(f),vt(f,c,!1);break;case"textarea":Z(f),ne(f,c);break;case"option":null!=c.value&&f.setAttribute("value",""+lt(c.value));break;case"select":u=f,u.multiple=!!c.multiple,f=c.value,null!=f?Qt(u,!!c.multiple,f,!1):null!=c.defaultValue&&Qt(u,!!c.multiple,c.defaultValue,!0);break;default:"function"==typeof u.onClick&&(f.onclick=le)}(a=fe(s,a))&&Cn(e),e.stateNode=i}null!==e.ref&&(e.effectTag|=128)}else null===e.stateNode&&o("166");break;case 8:i&&null!=e.stateNode?sa(i,e,i.memoizedProps,a):("string"!=typeof a&&(null===e.stateNode&&o("166")),u=Qe(Xi.current),Qe($i.current),vn(e)?(a=e,s=a.stateNode,u=a.memoizedProps,s[zr]=a,(a=s.nodeValue!==u)&&Cn(e)):(s=e,a=(9===u.nodeType?u:u.ownerDocument).createTextNode(a),a[zr]=s,e.stateNode=a));break;case 13:case 14:case 16:case 9:case 10:case 15:break;case 6:tn(e),aa(e);break;case 12:Ye(e);break;case 11:break;case 4:o("167");default:o("156")}if(e=ha=null,a=t,1073741823===ma||1073741823!==a.childExpirationTime){for(s=0,u=a.child;null!==u;)i=u.expirationTime,c=u.childExpirationTime,(0===s||0!==i&&i<s)&&(s=i),(0===s||0!==c&&c<s)&&(s=c),u=u.sibling;a.childExpirationTime=s}if(null!==e)return e;null!==n&&0==(512&n.effectTag)&&(null===n.firstEffect&&(n.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==n.lastEffect&&(n.lastEffect.nextEffect=t.firstEffect),n.lastEffect=t.lastEffect),1<t.effectTag&&(null!==n.lastEffect?n.lastEffect.nextEffect=t:n.firstEffect=t,n.lastEffect=t))}else{if(null!==(t=zn(t,ma)))return t.effectTag&=511,t;null!==n&&(n.firstEffect=n.lastEffect=null,n.effectTag|=512)}if(null!==r)return r;if(null===n)break;t=n}return null}function Bn(t){var e=Nn(t.alternate,t,ma);return null===e&&(e=Wn(t)),la.current=null,e}function qn(t,e,n){da&&o("243"),da=!0,la.currentDispatcher=ca;var r=t.nextExpirationTimeToWorkOn;r===ma&&t===va&&null!==ha||(Un(),va=t,ma=r,ha=Ce(va.current,null,ma),t.pendingCommitExpirationTime=0);for(var i=!1;;){try{if(e)for(;null!==ha&&!nr();)ha=Bn(ha);else for(;null!==ha;)ha=Bn(ha)}catch(t){if(null===ha)i=!0,rr(t);else{null===ha&&o("271");var a=ha,u=a.return;if(null!==u){t:{var s=u,c=a,l=t;u=ma,c.effectTag|=512,c.firstEffect=c.lastEffect=null,ya=!0,l=Ke(l,c);do{switch(s.tag){case 5:s.effectTag|=1024,s.expirationTime=u,u=Fn(s,l,u),We(s,u);break t;case 2:case 3:c=l;var f=s.stateNode;if(0==(64&s.effectTag)&&null!==f&&"function"==typeof f.componentDidCatch&&(null===ba||!ba.has(f))){s.effectTag|=1024,s.expirationTime=u,u=Ln(s,c,u),We(s,u);break t}}s=s.return}while(null!==s)}ha=Wn(a);continue}i=!0,rr(t)}}break}if(da=!1,Hi=Gi=Vi=la.currentDispatcher=null,i)va=null,t.finishedWork=null;else if(null!==ha)t.finishedWork=null;else{if(e=t.current.alternate,null===e&&o("281"),va=null,ya){if(i=t.latestPendingTime,a=t.latestSuspendedTime,u=t.latestPingedTime,0!==i&&i>r||0!==a&&a>r||0!==u&&u>r)return t.didError=!1,n=t.latestPingedTime,0!==n&&n<=r&&(t.latestPingedTime=0),n=t.earliestPendingTime,e=t.latestPendingTime,n===r?t.earliestPendingTime=e===r?t.latestPendingTime=0:e:e===r&&(t.latestPendingTime=n),n=t.earliestSuspendedTime,e=t.latestSuspendedTime,0===n?t.earliestSuspendedTime=t.latestSuspendedTime=r:n>r?t.earliestSuspendedTime=r:e<r&&(t.latestSuspendedTime=r),Re(r,t),void(t.expirationTime=t.expirationTime);if(!t.didError&&!n)return t.didError=!0,t.nextExpirationTimeToWorkOn=r,r=t.expirationTime=1,void(t.expirationTime=r)}t.pendingCommitExpirationTime=r,t.finishedWork=e}}function Vn(t,e){var n;t:{for(da&&!_a&&o("263"),n=t.return;null!==n;){switch(n.tag){case 2:case 3:var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromCatch||"function"==typeof r.componentDidCatch&&(null===ba||!ba.has(r))){t=Ke(e,t),t=Ln(n,t,1),Ue(n,t),Hn(n,1),n=void 0;break t}break;case 5:t=Ke(e,t),t=Fn(n,t,1),Ue(n,t),Hn(n,1),n=void 0;break t}n=n.return}5===t.tag&&(n=Ke(e,t),n=Fn(t,n,1),Ue(t,n),Hn(t,1)),n=void 0}return n}function Gn(t,e){return 0!==pa?t=pa:da?t=_a?1:ma:1&e.mode?(t=Ra?2+10*(1+((t-2+15)/10|0)):2+25*(1+((t-2+500)/25|0)),null!==va&&t===ma&&(t+=1)):t=1,Ra&&(0===Na||t>Na)&&(Na=t),t}function Hn(t,e){t:{(0===t.expirationTime||t.expirationTime>e)&&(t.expirationTime=e);var n=t.alternate;null!==n&&(0===n.expirationTime||n.expirationTime>e)&&(n.expirationTime=e);var r=t.return;if(null===r&&5===t.tag)t=t.stateNode;else{for(;null!==r;){if(n=r.alternate,(0===r.childExpirationTime||r.childExpirationTime>e)&&(r.childExpirationTime=e),null!==n&&(0===n.childExpirationTime||n.childExpirationTime>e)&&(n.childExpirationTime=e),null===r.return&&5===r.tag){t=r.stateNode;break t}r=r.return}t=null}}null!==t&&(!da&&0!==ma&&e<ma&&Un(),Ae(t,e),da&&!_a&&va===t||(e=t,t=t.expirationTime,null===e.nextScheduledRoot?(e.expirationTime=t,null===xa?(wa=xa=e,e.nextScheduledRoot=e):(xa=xa.nextScheduledRoot=e,xa.nextScheduledRoot=wa)):(0===(n=e.expirationTime)||t<n)&&(e.expirationTime=t),Oa||(Ia?Aa&&(ka=e,Sa=1,tr(e,1,!0)):1===t?Zn(1,null):Yn(e,t))),Wa>Ua&&(Wa=0,o("185")))}function Kn(t,e,n,r,o){var i=pa;pa=1;try{return t(e,n,r,o)}finally{pa=i}}function $n(){La=2+((wr.unstable_now()-Fa)/10|0)}function Yn(t,e){if(0!==Ea){if(e>Ea)return;null!==Ta&&wr.unstable_cancelScheduledWork(Ta)}Ea=e,t=wr.unstable_now()-Fa,Ta=wr.unstable_scheduleWork(Qn,{timeout:10*(e-2)-t})}function Xn(){return Oa?za:(Jn(),0!==Sa&&1073741823!==Sa||($n(),za=La),za)}function Jn(){var t=0,e=null;if(null!==xa)for(var n=xa,r=wa;null!==r;){var i=r.expirationTime;if(0===i){if((null===n||null===xa)&&o("244"),r===r.nextScheduledRoot){wa=xa=r.nextScheduledRoot=null;break}if(r===wa)wa=i=r.nextScheduledRoot,xa.nextScheduledRoot=i,r.nextScheduledRoot=null;else{if(r===xa){xa=n,xa.nextScheduledRoot=wa,r.nextScheduledRoot=null;break}n.nextScheduledRoot=r.nextScheduledRoot,r.nextScheduledRoot=null}r=n.nextScheduledRoot}else{if((0===t||i<t)&&(t=i,e=r),r===xa)break;if(1===t)break;n=r,r=r.nextScheduledRoot}}ka=e,Sa=t}function Qn(t){if(t.didTimeout&&null!==wa){$n();var e=wa;do{var n=e.expirationTime;0!==n&&La>=n&&(e.nextExpirationTimeToWorkOn=La),e=e.nextScheduledRoot}while(e!==wa)}Zn(0,t)}function Zn(t,e){if(ja=e,Jn(),null!==ja)for($n(),za=La;null!==ka&&0!==Sa&&(0===t||t>=Sa)&&(!Ca||La>=Sa);)tr(ka,Sa,La>=Sa),Jn(),$n(),za=La;else for(;null!==ka&&0!==Sa&&(0===t||t>=Sa);)tr(ka,Sa,!0),Jn();if(null!==ja&&(Ea=0,Ta=null),0!==Sa&&Yn(ka,Sa),ja=null,Ca=!1,Wa=0,Ba=null,null!==Da)for(t=Da,Da=null,e=0;e<t.length;e++){var n=t[e];try{n._onComplete()}catch(t){Pa||(Pa=!0,Ma=t)}}if(Pa)throw t=Ma,Ma=null,Pa=!1,t}function tr(t,e,n){if(Oa&&o("245"),Oa=!0,null===ja||n){var r=t.finishedWork;null!==r?er(t,r,e):(t.finishedWork=null,qn(t,!1,n),null!==(r=t.finishedWork)&&er(t,r,e))}else r=t.finishedWork,null!==r?er(t,r,e):(t.finishedWork=null,qn(t,!0,n),null!==(r=t.finishedWork)&&(nr()?t.finishedWork=r:er(t,r,e)));Oa=!1}function er(t,e,n){var r=t.firstBatch;if(null!==r&&r._expirationTime<=n&&(null===Da?Da=[r]:Da.push(r),r._defer))return t.finishedWork=e,void(t.expirationTime=0);t.finishedWork=null,t===Ba?Wa++:(Ba=t,Wa=0),_a=da=!0,t.current===e&&o("177"),n=t.pendingCommitExpirationTime,0===n&&o("261"),t.pendingCommitExpirationTime=0,r=e.expirationTime;var i=e.childExpirationTime;if(r=0===r||0!==i&&i<r?i:r,t.didError=!1,0===r?(t.earliestPendingTime=0,t.latestPendingTime=0,t.earliestSuspendedTime=0,t.latestSuspendedTime=0,t.latestPingedTime=0):(i=t.latestPendingTime,0!==i&&(i<r?t.earliestPendingTime=t.latestPendingTime=0:t.earliestPendingTime<r&&(t.earliestPendingTime=t.latestPendingTime)),i=t.earliestSuspendedTime,0===i?Ae(t,r):r>t.latestSuspendedTime?(t.earliestSuspendedTime=0,t.latestSuspendedTime=0,t.latestPingedTime=0,Ae(t,r)):r<i&&Ae(t,r)),Re(0,t),la.current=null,1<e.effectTag?null!==e.lastEffect?(e.lastEffect.nextEffect=e,r=e.firstEffect):r=e:r=e.firstEffect,ji=vi,i=Kt(),$t(i)){if("selectionStart"in i)var a={start:i.selectionStart,end:i.selectionEnd};else t:{a=(a=i.ownerDocument)&&a.defaultView||window;var u=a.getSelection&&a.getSelection();if(u&&0!==u.rangeCount){a=u.anchorNode;var s=u.anchorOffset,c=u.focusNode;u=u.focusOffset;try{a.nodeType,c.nodeType}catch(t){a=null;break t}var l=0,f=-1,p=-1,d=0,h=0,v=i,m=null;e:for(;;){for(var y;v!==a||0!==s&&3!==v.nodeType||(f=l+s),v!==c||0!==u&&3!==v.nodeType||(p=l+u),3===v.nodeType&&(l+=v.nodeValue.length),null!==(y=v.firstChild);)m=v,v=y;for(;;){if(v===i)break e;if(m===a&&++d===s&&(f=l),m===c&&++h===u&&(p=l),null!==(y=v.nextSibling))break;v=m,m=v.parentNode}v=y}a=-1===f||-1===p?null:{start:f,end:p}}else a=null}a=a||{start:0,end:0}}else a=null;for(Ii={focusedElem:i,selectionRange:a},vi=!1,ga=r;null!==ga;){i=!1,a=void 0;try{for(;null!==ga;){if(256&ga.effectTag){var g=ga.alternate;t:switch(s=ga,s.tag){case 2:case 3:if(256&s.effectTag&&null!==g){var _=g.memoizedProps,b=g.memoizedState,w=s.stateNode;w.props=s.memoizedProps,w.state=s.memoizedState;var x=w.getSnapshotBeforeUpdate(_,b);w.__reactInternalSnapshotBeforeUpdate=x}break t;case 5:case 7:case 8:case 6:break t;default:o("163")}}ga=ga.nextEffect}}catch(t){i=!0,a=t}i&&(null===ga&&o("178"),Vn(ga,a),null!==ga&&(ga=ga.nextEffect))}for(ga=r;null!==ga;){g=!1,_=void 0;try{for(;null!==ga;){var E=ga.effectTag;if(16&E&&ie(ga.stateNode,""),128&E){var T=ga.alternate;if(null!==T){var O=T.ref;null!==O&&("function"==typeof O?O(null):O.current=null)}}switch(14&E){case 2:An(ga),ga.effectTag&=-3;break;case 6:An(ga),ga.effectTag&=-3,Dn(ga.alternate,ga);break;case 4:Dn(ga.alternate,ga);break;case 8:b=ga,Rn(b),b.return=null,b.child=null,b.alternate&&(b.alternate.child=null,b.alternate.return=null)}ga=ga.nextEffect}}catch(t){g=!0,_=t}g&&(null===ga&&o("178"),Vn(ga,_),null!==ga&&(ga=ga.nextEffect))}if(O=Ii,T=Kt(),E=O.focusedElem,_=O.selectionRange,T!==E&&E&&E.ownerDocument&&Ht(E.ownerDocument.documentElement,E)){null!==_&&$t(E)&&(T=_.start,O=_.end,void 0===O&&(O=T),"selectionStart"in E?(E.selectionStart=T,E.selectionEnd=Math.min(O,E.value.length)):(g=E.ownerDocument||document,T=(g?g.defaultView:window).getSelection(),b=E.textContent.length,O=Math.min(_.start,b),_=void 0===_.end?O:Math.min(_.end,b),!T.extend&&O>_&&(b=_,_=O,O=b),b=Gt(E,O),w=Gt(E,_),b&&w&&(1!==T.rangeCount||T.anchorNode!==b.node||T.anchorOffset!==b.offset||T.focusNode!==w.node||T.focusOffset!==w.offset)&&(g=g.createRange(),g.setStart(b.node,b.offset),T.removeAllRanges(),O>_?(T.addRange(g),T.extend(w.node,w.offset)):(g.setEnd(w.node,w.offset),T.addRange(g))))),T=[];for(O=E;O=O.parentNode;)1===O.nodeType&&T.push({element:O,left:O.scrollLeft,top:O.scrollTop});for("function"==typeof E.focus&&E.focus(),E=0;E<T.length;E++)O=T[E],O.element.scrollLeft=O.left,O.element.scrollTop=O.top}for(Ii=null,vi=!!ji,ji=null,t.current=e,ga=r;null!==ga;){r=!1,E=void 0;try{for(T=n;null!==ga;){var k=ga.effectTag;if(36&k){var S=ga.alternate;switch(O=ga,g=T,O.tag){case 2:case 3:var N=O.stateNode;if(4&O.effectTag)if(null===S)N.props=O.memoizedProps,N.state=O.memoizedState,N.componentDidMount();else{var C=S.memoizedProps,P=S.memoizedState;N.props=O.memoizedProps,N.state=O.memoizedState,N.componentDidUpdate(C,P,N.__reactInternalSnapshotBeforeUpdate)}var M=O.updateQueue;null!==M&&(N.props=O.memoizedProps,N.state=O.memoizedState,Ge(O,M,N,g));break;case 5:var j=O.updateQueue;if(null!==j){if(_=null,null!==O.child)switch(O.child.tag){case 7:_=O.child.stateNode;break;case 2:case 3:_=O.child.stateNode}Ge(O,j,_,g)}break;case 7:var I=O.stateNode;null===S&&4&O.effectTag&&fe(O.type,O.memoizedProps)&&I.focus();break;case 8:case 6:case 15:case 16:break;default:o("163")}}if(128&k){var A=ga.ref;if(null!==A){var R=ga.stateNode;switch(ga.tag){case 7:var D=R;break;default:D=R}"function"==typeof A?A(D):A.current=D}}var F=ga.nextEffect;ga.nextEffect=null,ga=F}}catch(t){r=!0,E=t}r&&(null===ga&&o("178"),Vn(ga,E),null!==ga&&(ga=ga.nextEffect))}da=_a=!1,"function"==typeof Ui&&Ui(e.stateNode),k=e.expirationTime,e=e.childExpirationTime,e=0===k||0!==e&&e<k?e:k,0===e&&(ba=null),t.expirationTime=e,t.finishedWork=null}function nr(){return!!Ca||!(null===ja||ja.timeRemaining()>qa)&&(Ca=!0)}function rr(t){null===ka&&o("246"),ka.expirationTime=0,Pa||(Pa=!0,Ma=t)}function or(t,e){var n=Ia;Ia=!0;try{return t(e)}finally{(Ia=n)||Oa||Zn(1,null)}}function ir(t,e){if(Ia&&!Aa){Aa=!0;try{return t(e)}finally{Aa=!1}}return t(e)}function ar(t,e,n){if(Ra)return t(e,n);Ia||Oa||0===Na||(Zn(Na,null),Na=0);var r=Ra,o=Ia;Ia=Ra=!0;try{return t(e,n)}finally{Ra=r,(Ia=o)||Oa||Zn(1,null)}}function ur(t){if(!t)return Di;t=t._reactInternalFiber;t:{(2!==Mt(t)||2!==t.tag&&3!==t.tag)&&o("170");var e=t;do{switch(e.tag){case 5:e=e.stateNode.context;break t;case 2:if(ge(e.type)){e=e.stateNode.__reactInternalMemoizedMergedChildContext;break t}break;case 3:if(ge(e.type._reactResult)){e=e.stateNode.__reactInternalMemoizedMergedChildContext;break t}}e=e.return}while(null!==e);o("171"),e=void 0}if(2===t.tag){var n=t.type;if(ge(n))return xe(t,n,e)}else if(3===t.tag&&(n=t.type._reactResult,ge(n)))return xe(t,n,e);return e}function sr(t,e,n,r,o){var i=e.current;return n=ur(n),null===e.context?e.context=n:e.pendingContext=n,e=o,o=Le(r),o.payload={element:t},e=void 0===e?null:e,null!==e&&(o.callback=e),Ue(i,o),Hn(i,r),r}function cr(t,e,n,r){var o=e.current;return o=Gn(Xn(),o),sr(t,e,n,o,r)}function lr(t){if(t=t.current,!t.child)return null;switch(t.child.tag){case 7:default:return t.child.stateNode}}function fr(t,e,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:wo,key:null==r?null:""+r,children:t,containerInfo:e,implementation:n}}function pr(t){var e=2+25*(1+((Xn()-2+500)/25|0));e<=fa&&(e=fa+1),this._expirationTime=fa=e,this._root=t,this._callbacks=this._next=null,this._hasChildren=this._didComplete=!1,this._children=null,this._defer=!0}function dr(){this._callbacks=null,this._didCommit=!1,this._onCommit=this._onCommit.bind(this)}function hr(t,e,n){e=new Se(5,null,null,e?3:0),t={current:e,containerInfo:t,pendingChildren:null,earliestPendingTime:0,latestPendingTime:0,earliestSuspendedTime:0,latestSuspendedTime:0,latestPingedTime:0,didError:!1,pendingCommitExpirationTime:0,finishedWork:null,timeoutHandle:-1,context:null,pendingContext:null,hydrate:n,nextExpirationTimeToWorkOn:0,expirationTime:0,firstBatch:null,nextScheduledRoot:null},this._internalRoot=e.stateNode=t}function vr(t){return!(!t||1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType&&(8!==t.nodeType||" react-mount-point-unstable "!==t.nodeValue))}function mr(t,e){if(e||(e=t?9===t.nodeType?t.documentElement:t.firstChild:null,e=!(!e||1!==e.nodeType||!e.hasAttribute("data-reactroot"))),!e)for(var n;n=t.lastChild;)t.removeChild(n);return new hr(t,!1,e)}function yr(t,e,n,r,i){vr(n)||o("200");var a=n._reactRootContainer;if(a){if("function"==typeof i){var u=i;i=function(){var t=lr(a._internalRoot);u.call(t)}}null!=t?a.legacy_renderSubtreeIntoContainer(t,e,i):a.render(e,i)}else{if(a=n._reactRootContainer=mr(n,r),"function"==typeof i){var s=i;i=function(){var t=lr(a._internalRoot);s.call(t)}}ir(function(){null!=t?a.legacy_renderSubtreeIntoContainer(t,e,i):a.render(e,i)})}return lr(a._internalRoot)}function gr(t,e){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;return vr(e)||o("200"),fr(t,e,null,n)}/** @license React v16.5.0 * react-dom.production.min.js * * Copyright (c) 2013-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ var _r=n(22),br=n(94),wr=n(138);_r||o("227");var xr=!1,Er=null,Tr=!1,Or=null,kr={onError:function(t){xr=!0,Er=t}},Sr=null,Nr={},Cr=[],Pr={},Mr={},jr={},Ir=null,Ar=null,Rr=null,Dr=null,Fr={injectEventPluginOrder:function(t){Sr&&o("101"),Sr=Array.prototype.slice.call(t),s()},injectEventPluginsByName:function(t){var e,n=!1;for(e in t)if(t.hasOwnProperty(e)){var r=t[e];Nr.hasOwnProperty(e)&&Nr[e]===r||(Nr[e]&&o("102",e),Nr[e]=r,n=!0)}n&&s()}},Lr=Math.random().toString(36).slice(2),zr="__reactInternalInstance$"+Lr,Ur="__reactEventHandlers$"+Lr,Wr=!("undefined"==typeof window||!window.document||!window.document.createElement),Br={animationend:N("Animation","AnimationEnd"),animationiteration:N("Animation","AnimationIteration"),animationstart:N("Animation","AnimationStart"),transitionend:N("Transition","TransitionEnd")},qr={},Vr={};Wr&&(Vr=document.createElement("div").style,"AnimationEvent"in window||(delete Br.animationend.animation,delete Br.animationiteration.animation,delete Br.animationstart.animation),"TransitionEvent"in window||delete Br.transitionend.transition);var Gr=C("animationend"),Hr=C("animationiteration"),Kr=C("animationstart"),$r=C("transitionend"),Yr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Xr=null,Jr=null,Qr=null;br(I.prototype,{preventDefault:function(){this.defaultPrevented=!0;var t=this.nativeEvent;t&&(t.preventDefault?t.preventDefault():"unknown"!=typeof t.returnValue&&(t.returnValue=!1),this.isDefaultPrevented=M)},stopPropagation:function(){var t=this.nativeEvent;t&&(t.stopPropagation?t.stopPropagation():"unknown"!=typeof t.cancelBubble&&(t.cancelBubble=!0),this.isPropagationStopped=M)},persist:function(){this.isPersistent=M},isPersistent:j,destructor:function(){var t,e=this.constructor.Interface;for(t in e)this[t]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=j,this._dispatchInstances=this._dispatchListeners=null}}),I.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},I.extend=function(t){function e(){}function n(){return r.apply(this,arguments)}var r=this;e.prototype=r.prototype;var o=new e;return br(o,n.prototype),n.prototype=o,n.prototype.constructor=n,n.Interface=br({},r.Interface,t),n.extend=r.extend,D(n),n},D(I);var Zr=I.extend({data:null}),to=I.extend({data:null}),eo=[9,13,27,32],no=Wr&&"CompositionEvent"in window,ro=null;Wr&&"documentMode"in document&&(ro=document.documentMode);var oo=Wr&&"TextEvent"in window&&!ro,io=Wr&&(!no||ro&&8<ro&&11>=ro),ao=String.fromCharCode(32),uo={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},so=!1,co=!1,lo={eventTypes:uo,extractEvents:function(t,e,n,r){var o=void 0,i=void 0;if(no)t:{switch(t){case"compositionstart":o=uo.compositionStart;break t;case"compositionend":o=uo.compositionEnd;break t;case"compositionupdate":o=uo.compositionUpdate;break t}o=void 0}else co?F(t,n)&&(o=uo.compositionEnd):"keydown"===t&&229===n.keyCode&&(o=uo.compositionStart);return o?(io&&"ko"!==n.locale&&(co||o!==uo.compositionStart?o===uo.compositionEnd&&co&&(i=P()):(Xr=r,Jr="value"in Xr?Xr.value:Xr.textContent,co=!0)),o=Zr.getPooled(o,e,n,r),i?o.data=i:null!==(i=L(n))&&(o.data=i),S(o),i=o):i=null,(t=oo?z(t,n):U(t,n))?(e=to.getPooled(uo.beforeInput,e,n,r),e.data=t,S(e)):e=null,null===i?e:null===e?i:[i,e]}},fo=null,po=null,ho=null,vo=!1,mo={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0},yo=_r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,go=/^(.*)[\\\/]/,_o="function"==typeof Symbol&&Symbol.for,bo=_o?Symbol.for("react.element"):60103,wo=_o?Symbol.for("react.portal"):60106,xo=_o?Symbol.for("react.fragment"):60107,Eo=_o?Symbol.for("react.strict_mode"):60108,To=_o?Symbol.for("react.profiler"):60114,Oo=_o?Symbol.for("react.provider"):60109,ko=_o?Symbol.for("react.context"):60110,So=_o?Symbol.for("react.async_mode"):60111,No=_o?Symbol.for("react.forward_ref"):60112,Co=_o?Symbol.for("react.placeholder"):60113,Po="function"==typeof Symbol&&Symbol.iterator,Mo=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,jo=Object.prototype.hasOwnProperty,Io={},Ao={},Ro={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){Ro[t]=new ut(t,0,!1,t,null)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];Ro[e]=new ut(e,1,!1,t[1],null)}),["contentEditable","draggable","spellCheck","value"].forEach(function(t){Ro[t]=new ut(t,2,!1,t.toLowerCase(),null)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){Ro[t]=new ut(t,2,!1,t,null)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(t){Ro[t]=new ut(t,3,!1,t.toLowerCase(),null)}),["checked","multiple","muted","selected"].forEach(function(t){Ro[t]=new ut(t,3,!0,t,null)}),["capture","download"].forEach(function(t){Ro[t]=new ut(t,4,!1,t,null)}),["cols","rows","size","span"].forEach(function(t){Ro[t]=new ut(t,6,!1,t,null)}),["rowSpan","start"].forEach(function(t){Ro[t]=new ut(t,5,!1,t.toLowerCase(),null)});var Do=/[\-:]([a-z])/g;"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(t){var e=t.replace(Do,st);Ro[e]=new ut(e,1,!1,t,null)}),"xlink:actuate xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var e=t.replace(Do,st);Ro[e]=new ut(e,1,!1,t,"http://www.w3.org/1999/xlink")}),["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(Do,st);Ro[e]=new ut(e,1,!1,t,"http://www.w3.org/XML/1998/namespace")}),Ro.tabIndex=new ut("tabIndex",1,!1,"tabindex",null);var Fo={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}},Lo=null,zo=null,Uo=!1;Wr&&(Uo=X("input")&&(!document.documentMode||9<document.documentMode));var Wo={eventTypes:Fo,_isInputEventSupported:Uo,extractEvents:function(t,e,n,r){var o=e?b(e):window,i=void 0,a=void 0,u=o.nodeName&&o.nodeName.toLowerCase();if("select"===u||"input"===u&&"file"===o.type?i=bt:$(o)?Uo?i=kt:(i=Tt,a=Et):(u=o.nodeName)&&"input"===u.toLowerCase()&&("checkbox"===o.type||"radio"===o.type)&&(i=Ot),i&&(i=i(t,e)))return yt(i,n,r);a&&a(t,o,e),"blur"===t&&(t=o._wrapperState)&&t.controlled&&"number"===o.type&&mt(o,"number",o.value)}},Bo=I.extend({view:null,detail:null}),qo={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},Vo=0,Go=0,Ho=!1,Ko=!1,$o=Bo.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:Nt,button:null,buttons:null,relatedTarget:function(t){return t.relatedTarget||(t.fromElement===t.srcElement?t.toElement:t.fromElement)},movementX:function(t){if("movementX"in t)return t.movementX;var e=Vo;return Vo=t.screenX,Ho?"mousemove"===t.type?t.screenX-e:0:(Ho=!0,0)},movementY:function(t){if("movementY"in t)return t.movementY;var e=Go;return Go=t.screenY,Ko?"mousemove"===t.type?t.screenY-e:0:(Ko=!0,0)}}),Yo=$o.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),Xo={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},Jo={eventTypes:Xo,extractEvents:function(t,e,n,r){var o="mouseover"===t||"pointerover"===t,i="mouseout"===t||"pointerout"===t;if(o&&(n.relatedTarget||n.fromElement)||!i&&!o)return null;if(o=r.window===r?r:(o=r.ownerDocument)?o.defaultView||o.parentWindow:window,i?(i=e,e=(e=n.relatedTarget||n.toElement)?g(e):null):i=null,i===e)return null;var a=void 0,u=void 0,s=void 0,c=void 0;"mouseout"===t||"mouseover"===t?(a=$o,u=Xo.mouseLeave,s=Xo.mouseEnter,c="mouse"):"pointerout"!==t&&"pointerover"!==t||(a=Yo,u=Xo.pointerLeave,s=Xo.pointerEnter,c="pointer");var l=null==i?o:b(i);if(o=null==e?o:b(e),t=a.getPooled(u,i,n,r),t.type=c+"leave",t.target=l,t.relatedTarget=o,n=a.getPooled(s,e,n,r),n.type=c+"enter",n.target=o,n.relatedTarget=l,r=e,i&&r)t:{for(e=i,o=r,c=0,a=e;a;a=x(a))c++;for(a=0,s=o;s;s=x(s))a++;for(;0<c-a;)e=x(e),c--;for(;0<a-c;)o=x(o),a--;for(;c--;){if(e===o||e===o.alternate)break t;e=x(e),o=x(o)}e=null}else e=null;for(o=e,e=[];i&&i!==o&&(null===(c=i.alternate)||c!==o);)e.push(i),i=x(i);for(i=[];r&&r!==o&&(null===(c=r.alternate)||c!==o);)i.push(r),r=x(r);for(r=0;r<e.length;r++)O(e[r],"bubbled",t);for(r=i.length;0<r--;)O(i[r],"captured",n);return[t,n]}},Qo=Object.prototype.hasOwnProperty,Zo=I.extend({animationName:null,elapsedTime:null,pseudoElement:null}),ti=I.extend({clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),ei=Bo.extend({relatedTarget:null}),ni={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ri={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},oi=Bo.extend({key:function(t){if(t.key){var e=ni[t.key]||t.key;if("Unidentified"!==e)return e}return"keypress"===t.type?(t=Rt(t),13===t?"Enter":String.fromCharCode(t)):"keydown"===t.type||"keyup"===t.type?ri[t.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:Nt,charCode:function(t){return"keypress"===t.type?Rt(t):0},keyCode:function(t){return"keydown"===t.type||"keyup"===t.type?t.keyCode:0},which:function(t){return"keypress"===t.type?Rt(t):"keydown"===t.type||"keyup"===t.type?t.keyCode:0}}),ii=$o.extend({dataTransfer:null}),ai=Bo.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:Nt}),ui=I.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),si=$o.extend({deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:null,deltaMode:null}),ci=[["abort","abort"],[Gr,"animationEnd"],[Hr,"animationIteration"],[Kr,"animationStart"],["canplay","canPlay"],["canplaythrough","canPlayThrough"],["drag","drag"],["dragenter","dragEnter"],["dragexit","dragExit"],["dragleave","dragLeave"],["dragover","dragOver"],["durationchange","durationChange"],["emptied","emptied"],["encrypted","encrypted"],["ended","ended"],["error","error"],["gotpointercapture","gotPointerCapture"],["load","load"],["loadeddata","loadedData"],["loadedmetadata","loadedMetadata"],["loadstart","loadStart"],["lostpointercapture","lostPointerCapture"],["mousemove","mouseMove"],["mouseout","mouseOut"],["mouseover","mouseOver"],["playing","playing"],["pointermove","pointerMove"],["pointerout","pointerOut"],["pointerover","pointerOver"],["progress","progress"],["scroll","scroll"],["seeking","seeking"],["stalled","stalled"],["suspend","suspend"],["timeupdate","timeUpdate"],["toggle","toggle"],["touchmove","touchMove"],[$r,"transitionEnd"],["waiting","waiting"],["wheel","wheel"]],li={},fi={};[["blur","blur"],["cancel","cancel"],["click","click"],["close","close"],["contextmenu","contextMenu"],["copy","copy"],["cut","cut"],["auxclick","auxClick"],["dblclick","doubleClick"],["dragend","dragEnd"],["dragstart","dragStart"],["drop","drop"],["focus","focus"],["input","input"],["invalid","invalid"],["keydown","keyDown"],["keypress","keyPress"],["keyup","keyUp"],["mousedown","mouseDown"],["mouseup","mouseUp"],["paste","paste"],["pause","pause"],["play","play"],["pointercancel","pointerCancel"],["pointerdown","pointerDown"],["pointerup","pointerUp"],["ratechange","rateChange"],["reset","reset"],["seeked","seeked"],["submit","submit"],["touchcancel","touchCancel"],["touchend","touchEnd"],["touchstart","touchStart"],["volumechange","volumeChange"]].forEach(function(t){Dt(t,!0)}),ci.forEach(function(t){Dt(t,!1)});var pi={eventTypes:li,isInteractiveTopLevelEventType:function(t){return void 0!==(t=fi[t])&&!0===t.isInteractive},extractEvents:function(t,e,n,r){var o=fi[t];if(!o)return null;switch(t){case"keypress":if(0===Rt(n))return null;case"keydown":case"keyup":t=oi;break;case"blur":case"focus":t=ei;break;case"click":if(2===n.button)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":t=$o;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":t=ii;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":t=ai;break;case Gr:case Hr:case Kr:t=Zo;break;case $r:t=ui;break;case"scroll":t=Bo;break;case"wheel":t=si;break;case"copy":case"cut":case"paste":t=ti;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":t=Yo;break;default:t=I}return e=t.getPooled(o,e,n,r),S(e),e}},di=pi.isInteractiveTopLevelEventType,hi=[],vi=!0,mi={},yi=0,gi="_reactListenersID"+(""+Math.random()).slice(2),_i=Wr&&"documentMode"in document&&11>=document.documentMode,bi={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},wi=null,xi=null,Ei=null,Ti=!1,Oi={eventTypes:bi,extractEvents:function(t,e,n,r){var o,i=r.window===r?r.document:9===r.nodeType?r:r.ownerDocument;if(!(o=!i)){t:{i=Bt(i),o=jr.onSelect;for(var a=0;a<o.length;a++){var u=o[a];if(!i.hasOwnProperty(u)||!i[u]){i=!1;break t}}i=!0}o=!i}if(o)return null;switch(i=e?b(e):window,t){case"focus":($(i)||"true"===i.contentEditable)&&(wi=i,xi=e,Ei=null);break;case"blur":Ei=xi=wi=null;break;case"mousedown":Ti=!0;break;case"contextmenu":case"mouseup":case"dragend":return Ti=!1,Yt(n,r);case"selectionchange":if(_i)break;case"keydown":case"keyup":return Yt(n,r)}return null}};Fr.injectEventPluginOrder("ResponderEventPlugin SimpleEventPlugin TapEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),Ir=w,Ar=_,Rr=b,Fr.injectEventPluginsByName({SimpleEventPlugin:pi,EnterLeaveEventPlugin:Jo,ChangeEventPlugin:Wo,SelectEventPlugin:Oi,BeforeInputEventPlugin:lo});var ki={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"},Si=void 0,Ni=function(t){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,n,r,o){MSApp.execUnsafeLocalFunction(function(){return t(e,n)})}:t}(function(t,e){if(t.namespaceURI!==ki.svg||"innerHTML"in t)t.innerHTML=e;else{for(Si=Si||document.createElement("div"),Si.innerHTML="<svg>"+e+"</svg>",e=Si.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}}),Ci={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Pi=["Webkit","ms","Moz","O"];Object.keys(Ci).forEach(function(t){Pi.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),Ci[e]=Ci[t]})});var Mi=br({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}),ji=null,Ii=null;new Set;var Ai=[],Ri=-1,Di={},Fi={current:Di},Li={current:!1},zi=Di,Ui=null,Wi=null,Bi=!1,qi={current:null},Vi=null,Gi=null,Hi=null,Ki={},$i={current:Ki},Yi={current:Ki},Xi={current:Ki},Ji=(new _r.Component).refs,Qi={isMounted:function(t){return!!(t=t._reactInternalFiber)&&2===Mt(t)},enqueueSetState:function(t,e,n){t=t._reactInternalFiber;var r=Xn();r=Gn(r,t);var o=Le(r);o.payload=e,void 0!==n&&null!==n&&(o.callback=n),Ue(t,o),Hn(t,r)},enqueueReplaceState:function(t,e,n){t=t._reactInternalFiber;var r=Xn();r=Gn(r,t);var o=Le(r);o.tag=1,o.payload=e,void 0!==n&&null!==n&&(o.callback=n),Ue(t,o),Hn(t,r)},enqueueForceUpdate:function(t,e){t=t._reactInternalFiber;var n=Xn();n=Gn(n,t);var r=Le(n);r.tag=2,void 0!==e&&null!==e&&(r.callback=e),Ue(t,r),Hn(t,n)}},Zi=Array.isArray,ta=ln(!0),ea=ln(!1),na=null,ra=null,oa=!1,ia=yo.ReactCurrentOwner,aa=void 0,ua=void 0,sa=void 0;aa=function(){},ua=function(t,e,n){(e.updateQueue=n)&&Cn(e)},sa=function(t,e,n,r){n!==r&&Cn(e)};var ca={readContext:Je},la=yo.ReactCurrentOwner,fa=0,pa=0,da=!1,ha=null,va=null,ma=0,ya=!1,ga=null,_a=!1,ba=null,wa=null,xa=null,Ea=0,Ta=void 0,Oa=!1,ka=null,Sa=0,Na=0,Ca=!1,Pa=!1,Ma=null,ja=null,Ia=!1,Aa=!1,Ra=!1,Da=null,Fa=wr.unstable_now(),La=2+(Fa/10|0),za=La,Ua=50,Wa=0,Ba=null,qa=1;fo=function(t,e,n){switch(e){case"input":if(ht(t,n),e=n.name,"radio"===n.type&&null!=e){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+e)+'][type="radio"]'),e=0;e<n.length;e++){var r=n[e];if(r!==t&&r.form===t.form){var i=w(r);i||o("90"),tt(r),ht(r,i)}}}break;case"textarea":ee(t,n);break;case"select":null!=(e=n.value)&&Qt(t,!!n.multiple,e,!1)}},pr.prototype.render=function(t){this._defer||o("250"),this._hasChildren=!0,this._children=t;var e=this._root._internalRoot,n=this._expirationTime,r=new dr;return sr(t,e,null,n,r._onCommit),r},pr.prototype.then=function(t){if(this._didComplete)t();else{var e=this._callbacks;null===e&&(e=this._callbacks=[]),e.push(t)}},pr.prototype.commit=function(){var t=this._root._internalRoot,e=t.firstBatch;if(this._defer&&null!==e||o("251"),this._hasChildren){var n=this._expirationTime;if(e!==this){this._hasChildren&&(n=this._expirationTime=e._expirationTime,this.render(this._children));for(var r=null,i=e;i!==this;)r=i,i=i._next;null===r&&o("251"),r._next=i._next,this._next=e,t.firstBatch=this}this._defer=!1,e=n,Oa&&o("253"),ka=t,Sa=e,tr(t,e,!0),Zn(1,null),e=this._next,this._next=null,e=t.firstBatch=e,null!==e&&e._hasChildren&&e.render(e._children)}else this._next=null,this._defer=!1},pr.prototype._onComplete=function(){if(!this._didComplete){this._didComplete=!0;var t=this._callbacks;if(null!==t)for(var e=0;e<t.length;e++)(0,t[e])()}},dr.prototype.then=function(t){if(this._didCommit)t();else{var e=this._callbacks;null===e&&(e=this._callbacks=[]),e.push(t)}},dr.prototype._onCommit=function(){if(!this._didCommit){this._didCommit=!0;var t=this._callbacks;if(null!==t)for(var e=0;e<t.length;e++){var n=t[e];"function"!=typeof n&&o("191",n),n()}}},hr.prototype.render=function(t,e){var n=this._internalRoot,r=new dr;return e=void 0===e?null:e,null!==e&&r.then(e),cr(t,n,null,r._onCommit),r},hr.prototype.unmount=function(t){var e=this._internalRoot,n=new dr;return t=void 0===t?null:t,null!==t&&n.then(t),cr(null,e,null,n._onCommit),n},hr.prototype.legacy_renderSubtreeIntoContainer=function(t,e,n){var r=this._internalRoot,o=new dr;return n=void 0===n?null:n,null!==n&&o.then(n),cr(e,r,t,o._onCommit),o},hr.prototype.createBatch=function(){var t=new pr(this),e=t._expirationTime,n=this._internalRoot,r=n.firstBatch;if(null===r)n.firstBatch=t,t._next=null;else{for(n=null;null!==r&&r._expirationTime<=e;)n=r,r=r._next;t._next=r,null!==n&&(n._next=t)}return t},V=or,G=ar,H=function(){Oa||0===Na||(Zn(Na,null),Na=0)};var Va={createPortal:gr,findDOMNode:function(t){if(null==t)return null;if(1===t.nodeType)return t;var e=t._reactInternalFiber;return void 0===e&&("function"==typeof t.render?o("188"):o("268",Object.keys(t))),t=At(e),t=null===t?null:t.stateNode},hydrate:function(t,e,n){return yr(null,t,e,!0,n)},render:function(t,e,n){return yr(null,t,e,!1,n)},unstable_renderSubtreeIntoContainer:function(t,e,n,r){return(null==t||void 0===t._reactInternalFiber)&&o("38"),yr(t,e,n,!1,r)},unmountComponentAtNode:function(t){return vr(t)||o("40"),!!t._reactRootContainer&&(ir(function(){yr(null,null,t,!1,function(){t._reactRootContainer=null})}),!0)},unstable_createPortal:function(){return gr.apply(void 0,arguments)},unstable_batchedUpdates:or,unstable_interactiveUpdates:ar,flushSync:function(t,e){Oa&&o("187");var n=Ia;Ia=!0;try{return Kn(t,e)}finally{Ia=n,Zn(1,null)}},unstable_flushControlled:function(t){var e=Ia;Ia=!0;try{Kn(t)}finally{(Ia=e)||Oa||Zn(1,null)}},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{Events:[_,b,w,Pr,S,function(t){p(t,k)},B,q,Wt,y]},unstable_createRoot:function(t,e){return vr(t)||o("278"),new hr(t,!0,null!=e&&!0===e.hydrate)}};!function(t){var e=t.findFiberByHostInstance;ke(br({},t,{findHostInstanceByFiber:function(t){return t=At(t),null===t?null:t.stateNode},findFiberByHostInstance:function(t){return e?e(t):null}}))}({findFiberByHostInstance:g,bundleType:0,version:"16.5.0",rendererPackageName:"react-dom"});var Ga={default:Va},Ha=Ga&&Va||Ga;t.exports=Ha.default||Ha},function(t,e,n){"use strict";t.exports=n(139)},function(t,e,n){"use strict";/** @license React v16.5.0 * schedule.production.min.js * * Copyright (c) 2013-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ Object.defineProperty(e,"__esModule",{value:!0});var r=!("undefined"==typeof window||!window.document||!window.document.createElement),o=Date,i="function"==typeof setTimeout?setTimeout:void 0,a="function"==typeof clearTimeout?clearTimeout:void 0,u="function"==typeof requestAnimationFrame?requestAnimationFrame:void 0,s="function"==typeof cancelAnimationFrame?cancelAnimationFrame:void 0,c="object"==typeof performance&&"function"==typeof performance.now;if(e.unstable_now=void 0,c){var l=performance;e.unstable_now=function(){return l.now()}}else e.unstable_now=function(){return o.now()};if(e.unstable_scheduleWork=void 0,e.unstable_cancelScheduledWork=void 0,r){var f=null,p=null,d=-1,h=!1,v=!1,m=void 0,y=void 0,g=function(t){m=u(function(e){a(y),t(e)}),y=i(function(){s(m),t(e.unstable_now())},100)},_=0,b=33,w=33,x={didTimeout:!1,timeRemaining:function(){var t=_-e.unstable_now();return 0<t?t:0}},E=function(t,n){var r=t.scheduledCallback,o=!1;try{r(n),o=!0}finally{e.unstable_cancelScheduledWork(t),o||(h=!0,window.postMessage(T,"*"))}},T="__reactIdleCallback$"+Math.random().toString(36).slice(2);window.addEventListener("message",function(t){if(t.source===window&&t.data===T&&(h=!1,null!==f)){if(null!==f){var n=e.unstable_now();if(!(-1===d||d>n)){t=-1;for(var r=[],o=f;null!==o;){var i=o.timeoutTime;-1!==i&&i<=n?r.push(o):-1!==i&&(-1===t||i<t)&&(t=i),o=o.next}if(0<r.length)for(x.didTimeout=!0,n=0,o=r.length;n<o;n++)E(r[n],x);d=t}}for(t=e.unstable_now();0<_-t&&null!==f;)t=f,x.didTimeout=!1,E(t,x),t=e.unstable_now();null===f||v||(v=!0,g(O))}},!1);var O=function(t){v=!1;var e=t-_+w;e<w&&b<w?(8>e&&(e=8),w=e<b?b:e):b=e,_=t+w,h||(h=!0,window.postMessage(T,"*"))};e.unstable_scheduleWork=function(t,n){var r=-1;return null!=n&&"number"==typeof n.timeout&&(r=e.unstable_now()+n.timeout),(-1===d||-1!==r&&r<d)&&(d=r),t={scheduledCallback:t,timeoutTime:r,prev:null,next:null},null===f?f=t:null!==(n=t.prev=p)&&(n.next=t),p=t,v||(v=!0,g(O)),t},e.unstable_cancelScheduledWork=function(t){if(null!==t.prev||f===t){var e=t.next,n=t.prev;t.next=null,t.prev=null,null!==e?null!==n?(n.next=e,e.prev=n):(e.prev=null,f=e):null!==n?(n.next=null,p=n):p=f=null}}}else{var k=new Map;e.unstable_scheduleWork=function(t){var e={scheduledCallback:t,timeoutTime:0,next:null,prev:null},n=i(function(){t({timeRemaining:function(){return 1/0},didTimeout:!1})});return k.set(t,n),e},e.unstable_cancelScheduledWork=function(t){var e=k.get(t.scheduledCallback);k.delete(t),a(e)}}},function(t,e,n){"use strict";function r(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];(Array.isArray(t)?t:[t]).forEach(function(t){t&&t.locale&&(P.default.__addLocaleData(t),M.default.__addLocaleData(t))})}function o(t){for(var e=(t||"").split("-");e.length>0;){if(i(e.join("-")))return!0;e.pop()}return!1}function i(t){var e=t&&t.toLowerCase();return!(!P.default.__localeData__[e]||!M.default.__localeData__[e])}function a(t){return(""+t).replace(_t,function(t){return gt[t]})}function u(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.reduce(function(e,r){return t.hasOwnProperty(r)?e[r]=t[r]:n.hasOwnProperty(r)&&(e[r]=n[r]),e},{})}function s(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.intl;z()(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}function c(t,e){if(t===e)return!0;if("object"!==(void 0===t?"undefined":B(t))||null===t||"object"!==(void 0===e?"undefined":B(e))||null===e)return!1;var n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(var o=Object.prototype.hasOwnProperty.bind(e),i=0;i<n.length;i++)if(!o(n[i])||t[n[i]]!==e[n[i]])return!1;return!0}function l(t,e,n){var r=t.props,o=t.state,i=t.context,a=void 0===i?{}:i,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},l=a.intl,f=void 0===l?{}:l,p=s.intl,d=void 0===p?{}:p;return!c(e,r)||!c(n,o)||!(d===f||c(u(d,yt),u(f,yt)))}function f(t){return t.displayName||t.name||"Component"}function p(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.intlPropName,r=void 0===n?"intl":n,o=e.withRef,i=void 0!==o&&o,a=function(e){function n(t,e){q(this,n);var r=Y(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,t,e));return s(e),r}return K(n,e),V(n,[{key:"getWrappedInstance",value:function(){return z()(i,"[React Intl] To access the wrapped instance, the `{withRef: true}` option must be set when calling: `injectIntl()`"),this.refs.wrappedInstance}},{key:"render",value:function(){return R.a.createElement(t,H({},this.props,G({},r,this.context.intl),{ref:i?"wrappedInstance":null}))}}]),n}(A.Component);return a.displayName="InjectIntl("+f(t)+")",a.contextTypes={intl:pt},a.WrappedComponent=t,F()(a,t)}function d(t){return t}function h(t){return P.default.prototype._resolveLocale(t)}function v(t){return P.default.prototype._findPluralRuleFunction(t)}function m(t){var e=M.default.thresholds;e.second=t.second,e.minute=t.minute,e.hour=t.hour,e.day=t.day,e.month=t.month,e["second-short"]=t["second-short"],e["minute-short"]=t["minute-short"],e["hour-short"]=t["hour-short"],e["day-short"]=t["day-short"],e["month-short"]=t["month-short"]}function y(t,e,n){var r=t&&t[e]&&t[e][n];if(r)return r}function g(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=t.locale,i=t.formats,a=t.timeZone,s=r.format,c=new Date(n),l=H({},a&&{timeZone:a},s&&y(i,"date",s)),f=u(r,wt,l);try{return e.getDateTimeFormat(o,f).format(c)}catch(t){}return String(c)}function _(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=t.locale,i=t.formats,a=t.timeZone,s=r.format,c=new Date(n),l=H({},a&&{timeZone:a},s&&y(i,"time",s)),f=u(r,wt,l);f.hour||f.minute||f.second||(f=H({},f,{hour:"numeric",minute:"numeric"}));try{return e.getDateTimeFormat(o,f).format(c)}catch(t){}return String(c)}function b(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=t.locale,i=t.formats,a=r.format,s=new Date(n),c=new Date(r.now),l=a&&y(i,"relative",a),f=u(r,Et,l),p=H({},M.default.thresholds);m(Ot);try{return e.getRelativeFormat(o,f).format(s,{now:isFinite(c)?c:e.now()})}catch(t){}finally{m(p)}return String(s)}function w(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=t.locale,i=t.formats,a=r.format,s=a&&y(i,"number",a),c=u(r,xt,s);try{return e.getNumberFormat(o,c).format(n)}catch(t){}return String(n)}function x(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=t.locale,i=u(r,Tt);try{return e.getPluralFormat(o,i).format(n)}catch(t){}return"other"}function E(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=t.locale,i=t.formats,a=t.messages,u=t.defaultLocale,s=t.defaultFormats,c=n.id,l=n.defaultMessage;z()(c,"[React Intl] An `id` must be provided to format a message.");var f=a&&a[c];if(!(Object.keys(r).length>0))return f||l||c;var p=void 0;if(f)try{p=e.getMessageFormat(f,o,i).format(r)}catch(t){}if(!p&&l)try{p=e.getMessageFormat(l,u,s).format(r)}catch(t){}return p||f||l||c}function T(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return E(t,e,n,Object.keys(r).reduce(function(t,e){var n=r[e];return t[e]="string"==typeof n?a(n):n,t},{}))}function O(t){var e=Math.abs(t);return e<At?"second":e<Rt?"minute":e<Dt?"hour":"day"}function k(t){switch(t){case"second":return It;case"minute":return At;case"hour":return Rt;case"day":return Dt;default:return Ft}}function S(t,e){if(t===e)return!0;var n=new Date(t).getTime(),r=new Date(e).getTime();return isFinite(n)&&isFinite(r)&&n===r}Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"addLocaleData",function(){return r}),n.d(e,"intlShape",function(){return pt}),n.d(e,"injectIntl",function(){return p}),n.d(e,"defineMessages",function(){return d}),n.d(e,"IntlProvider",function(){return Pt}),n.d(e,"FormattedDate",function(){return Mt}),n.d(e,"FormattedTime",function(){return jt}),n.d(e,"FormattedRelative",function(){return Lt}),n.d(e,"FormattedNumber",function(){return zt}),n.d(e,"FormattedPlural",function(){return Ut}),n.d(e,"FormattedMessage",function(){return Wt}),n.d(e,"FormattedHTMLMessage",function(){return Bt});var N=n(141),C=n.n(N),P=n(95),M=n(147),j=n(30),I=n.n(j),A=n(22),R=n.n(A),D=n(154),F=n.n(D),L=n(155),z=n.n(L),U=n(156),W={locale:"en",pluralRuleFunction:function(t,e){var n=String(t).split("."),r=!n[1],o=Number(n[0])==t,i=o&&n[0].slice(-1),a=o&&n[0].slice(-2);return e?1==i&&11!=a?"one":2==i&&12!=a?"two":3==i&&13!=a?"few":"other":1==t&&r?"one":"other"},fields:{year:{displayName:"year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{one:"in {0} year",other:"in {0} years"},past:{one:"{0} year ago",other:"{0} years ago"}}},month:{displayName:"month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{one:"in {0} month",other:"in {0} months"},past:{one:"{0} month ago",other:"{0} months ago"}}},day:{displayName:"day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{one:"in {0} day",other:"in {0} days"},past:{one:"{0} day ago",other:"{0} days ago"}}},hour:{displayName:"hour",relative:{0:"this hour"},relativeTime:{future:{one:"in {0} hour",other:"in {0} hours"},past:{one:"{0} hour ago",other:"{0} hours ago"}}},minute:{displayName:"minute",relative:{0:"this minute"},relativeTime:{future:{one:"in {0} minute",other:"in {0} minutes"},past:{one:"{0} minute ago",other:"{0} minutes ago"}}},second:{displayName:"second",relative:{0:"now"},relativeTime:{future:{one:"in {0} second",other:"in {0} seconds"},past:{one:"{0} second ago",other:"{0} seconds ago"}}}}},B="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},q=(function(){function t(t){this.value=t}function e(e){function n(t,e){return new Promise(function(n,o){var u={key:t,arg:e,resolve:n,reject:o,next:null};a?a=a.next=u:(i=a=u,r(t,e))})}function r(n,i){try{var a=e[n](i),u=a.value;u instanceof t?Promise.resolve(u.value).then(function(t){r("next",t)},function(t){r("throw",t)}):o(a.done?"return":"normal",a.value)}catch(t){o("throw",t)}}function o(t,e){switch(t){case"return":i.resolve({value:e,done:!0});break;case"throw":i.reject(e);break;default:i.resolve({value:e,done:!1})}i=i.next,i?r(i.key,i.arg):a=null}var i,a;this._invoke=n,"function"!=typeof e.return&&(this.return=void 0)}"function"==typeof Symbol&&Symbol.asyncIterator&&(e.prototype[Symbol.asyncIterator]=function(){return this}),e.prototype.next=function(t){return this._invoke("next",t)},e.prototype.throw=function(t){return this._invoke("throw",t)},e.prototype.return=function(t){return this._invoke("return",t)}}(),function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}),V=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),G=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},H=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},K=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)},$=function(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n},Y=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e},X=function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)},J=I.a.bool,Q=I.a.number,Z=I.a.string,tt=I.a.func,et=I.a.object,nt=I.a.oneOf,rt=I.a.shape,ot=I.a.any,it=I.a.oneOfType,at=nt(["best fit","lookup"]),ut=nt(["narrow","short","long"]),st=nt(["numeric","2-digit"]),ct=tt.isRequired,lt={locale:Z,timeZone:Z,formats:et,messages:et,textComponent:ot,defaultLocale:Z,defaultFormats:et},ft={formatDate:ct,formatTime:ct,formatRelative:ct,formatNumber:ct,formatPlural:ct,formatMessage:ct,formatHTMLMessage:ct},pt=rt(H({},lt,ft,{formatters:et,now:ct})),dt=(Z.isRequired,it([Z,et]),{localeMatcher:at,formatMatcher:nt(["basic","best fit"]),timeZone:Z,hour12:J,weekday:ut,era:ut,year:st,month:nt(["numeric","2-digit","narrow","short","long"]),day:st,hour:st,minute:st,second:st,timeZoneName:nt(["short","long"])}),ht={localeMatcher:at,style:nt(["decimal","currency","percent"]),currency:Z,currencyDisplay:nt(["symbol","code","name"]),useGrouping:J,minimumIntegerDigits:Q,minimumFractionDigits:Q,maximumFractionDigits:Q,minimumSignificantDigits:Q,maximumSignificantDigits:Q},vt={style:nt(["best fit","numeric"]),units:nt(["second","minute","hour","day","month","year","second-short","minute-short","hour-short","day-short","month-short","year-short"])},mt={style:nt(["cardinal","ordinal"])},yt=Object.keys(lt),gt={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},_t=/[&><"']/g,bt=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};q(this,t);var r="ordinal"===n.style,o=v(h(e));this.format=function(t){return o(t,r)}},wt=Object.keys(dt),xt=Object.keys(ht),Et=Object.keys(vt),Tt=Object.keys(mt),Ot={second:60,minute:60,hour:24,day:30,month:12},kt=Object.freeze({formatDate:g,formatTime:_,formatRelative:b,formatNumber:w,formatPlural:x,formatMessage:E,formatHTMLMessage:T}),St=Object.keys(lt),Nt=Object.keys(ft),Ct={formats:{},messages:{},timeZone:null,textComponent:"span",defaultLocale:"en",defaultFormats:{}},Pt=function(t){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};q(this,e);var r=Y(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));z()("undefined"!=typeof Intl,"[React Intl] The `Intl` APIs must be available in the runtime, and do not appear to be built-in. An `Intl` polyfill should be loaded.\nSee: http://formatjs.io/guides/runtime-environments/");var o=n.intl,i=void 0;i=isFinite(t.initialNow)?Number(t.initialNow):o?o.now():Date.now();var a=o||{},u=a.formatters,s=void 0===u?{getDateTimeFormat:Object(U.default)(Intl.DateTimeFormat),getNumberFormat:Object(U.default)(Intl.NumberFormat),getMessageFormat:Object(U.default)(P.default),getRelativeFormat:Object(U.default)(M.default),getPluralFormat:Object(U.default)(bt)}:u;return r.state=H({},s,{now:function(){return r._didDisplay?Date.now():i}}),r}return K(e,t),V(e,[{key:"getConfig",value:function(){var t=this.context.intl,e=u(this.props,St,t);for(var n in Ct)void 0===e[n]&&(e[n]=Ct[n]);if(!o(e.locale)){var r=e,i=(r.locale,r.defaultLocale),a=r.defaultFormats;e=H({},e,{locale:i,formats:a,messages:Ct.messages})}return e}},{key:"getBoundFormatFns",value:function(t,e){return Nt.reduce(function(n,r){return n[r]=kt[r].bind(null,t,e),n},{})}},{key:"getChildContext",value:function(){var t=this.getConfig(),e=this.getBoundFormatFns(t,this.state),n=this.state,r=n.now,o=$(n,["now"]);return{intl:H({},t,e,{formatters:o,now:r})}}},{key:"shouldComponentUpdate",value:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return l.apply(void 0,[this].concat(e))}},{key:"componentDidMount",value:function(){this._didDisplay=!0}},{key:"render",value:function(){return A.Children.only(this.props.children)}}]),e}(A.Component);Pt.displayName="IntlProvider",Pt.contextTypes={intl:pt},Pt.childContextTypes={intl:pt.isRequired};var Mt=function(t){function e(t,n){q(this,e);var r=Y(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return s(n),r}return K(e,t),V(e,[{key:"shouldComponentUpdate",value:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return l.apply(void 0,[this].concat(e))}},{key:"render",value:function(){var t=this.context.intl,e=t.formatDate,n=t.textComponent,r=this.props,o=r.value,i=r.children,a=e(o,this.props);return"function"==typeof i?i(a):R.a.createElement(n,null,a)}}]),e}(A.Component);Mt.displayName="FormattedDate",Mt.contextTypes={intl:pt};var jt=function(t){function e(t,n){q(this,e);var r=Y(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return s(n),r}return K(e,t),V(e,[{key:"shouldComponentUpdate",value:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return l.apply(void 0,[this].concat(e))}},{key:"render",value:function(){var t=this.context.intl,e=t.formatTime,n=t.textComponent,r=this.props,o=r.value,i=r.children,a=e(o,this.props);return"function"==typeof i?i(a):R.a.createElement(n,null,a)}}]),e}(A.Component);jt.displayName="FormattedTime",jt.contextTypes={intl:pt};var It=1e3,At=6e4,Rt=36e5,Dt=864e5,Ft=2147483647,Lt=function(t){function e(t,n){q(this,e);var r=Y(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));s(n);var o=isFinite(t.initialNow)?Number(t.initialNow):n.intl.now();return r.state={now:o},r}return K(e,t),V(e,[{key:"scheduleNextUpdate",value:function(t,e){var n=this;clearTimeout(this._timer);var r=t.value,o=t.units,i=t.updateInterval,a=new Date(r).getTime();if(i&&isFinite(a)){var u=a-e.now,s=k(o||O(u)),c=Math.abs(u%s),l=u<0?Math.max(i,s-c):Math.max(i,c);this._timer=setTimeout(function(){n.setState({now:n.context.intl.now()})},l)}}},{key:"componentDidMount",value:function(){this.scheduleNextUpdate(this.props,this.state)}},{key:"componentWillReceiveProps",value:function(t){S(t.value,this.props.value)||this.setState({now:this.context.intl.now()})}},{key:"shouldComponentUpdate",value:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return l.apply(void 0,[this].concat(e))}},{key:"componentWillUpdate",value:function(t,e){this.scheduleNextUpdate(t,e)}},{key:"componentWillUnmount",value:function(){clearTimeout(this._timer)}},{key:"render",value:function(){var t=this.context.intl,e=t.formatRelative,n=t.textComponent,r=this.props,o=r.value,i=r.children,a=e(o,H({},this.props,this.state));return"function"==typeof i?i(a):R.a.createElement(n,null,a)}}]),e}(A.Component);Lt.displayName="FormattedRelative",Lt.contextTypes={intl:pt},Lt.defaultProps={updateInterval:1e4};var zt=function(t){function e(t,n){q(this,e);var r=Y(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return s(n),r}return K(e,t),V(e,[{key:"shouldComponentUpdate",value:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return l.apply(void 0,[this].concat(e))}},{key:"render",value:function(){var t=this.context.intl,e=t.formatNumber,n=t.textComponent,r=this.props,o=r.value,i=r.children,a=e(o,this.props);return"function"==typeof i?i(a):R.a.createElement(n,null,a)}}]),e}(A.Component);zt.displayName="FormattedNumber",zt.contextTypes={intl:pt};var Ut=function(t){function e(t,n){q(this,e);var r=Y(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return s(n),r}return K(e,t),V(e,[{key:"shouldComponentUpdate",value:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return l.apply(void 0,[this].concat(e))}},{key:"render",value:function(){var t=this.context.intl,e=t.formatPlural,n=t.textComponent,r=this.props,o=r.value,i=r.other,a=r.children,u=e(o,this.props),s=this.props[u]||i;return"function"==typeof a?a(s):R.a.createElement(n,null,s)}}]),e}(A.Component);Ut.displayName="FormattedPlural",Ut.contextTypes={intl:pt},Ut.defaultProps={style:"cardinal"};var Wt=function(t){function e(t,n){q(this,e);var r=Y(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return s(n),r}return K(e,t),V(e,[{key:"shouldComponentUpdate",value:function(t){var e=this.props.values;if(!c(t.values,e))return!0;for(var n=H({},t,{values:e}),r=arguments.length,o=Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return l.apply(void 0,[this,n].concat(o))}},{key:"render",value:function(){var t=this.context.intl,e=t.formatMessage,n=t.textComponent,r=this.props,o=r.id,i=r.description,a=r.defaultMessage,u=r.values,s=r.tagName,c=void 0===s?n:s,l=r.children,f=void 0,p=void 0,d=void 0;if(u&&Object.keys(u).length>0){var h=Math.floor(1099511627776*Math.random()).toString(16),v=function(){var t=0;return function(){return"ELEMENT-"+h+"-"+(t+=1)}}();f="@__"+h+"__@",p={},d={},Object.keys(u).forEach(function(t){var e=u[t];if(Object(A.isValidElement)(e)){var n=v();p[t]=f+n+f,d[n]=e}else p[t]=e})}var m={id:o,description:i,defaultMessage:a},y=e(m,p||u),g=void 0;return g=d&&Object.keys(d).length>0?y.split(f).filter(function(t){return!!t}).map(function(t){return d[t]||t}):[y],"function"==typeof l?l.apply(void 0,X(g)):A.createElement.apply(void 0,[c,null].concat(X(g)))}}]),e}(A.Component);Wt.displayName="FormattedMessage",Wt.contextTypes={intl:pt},Wt.defaultProps={values:{}};var Bt=function(t){function e(t,n){q(this,e);var r=Y(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return s(n),r}return K(e,t),V(e,[{key:"shouldComponentUpdate",value:function(t){var e=this.props.values;if(!c(t.values,e))return!0;for(var n=H({},t,{values:e}),r=arguments.length,o=Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return l.apply(void 0,[this,n].concat(o))}},{key:"render",value:function(){var t=this.context.intl,e=t.formatHTMLMessage,n=t.textComponent,r=this.props,o=r.id,i=r.description,a=r.defaultMessage,u=r.values,s=r.tagName,c=void 0===s?n:s,l=r.children,f={id:o,description:i,defaultMessage:a},p=e(f,u);if("function"==typeof l)return l(p);var d={__html:p};return R.a.createElement(c,{dangerouslySetInnerHTML:d})}}]),e}(A.Component);Bt.displayName="FormattedHTMLMessage",Bt.contextTypes={intl:pt},Bt.defaultProps={values:{}},r(W),r(C.a)},function(t,e){},function(t,e,n){"use strict";function r(t,e,n){var o="string"==typeof t?r.__parse(t):t;if(!o||"messageFormatPattern"!==o.type)throw new TypeError("A message must be provided as a String or AST.");n=this._mergeFormats(r.formats,n),Object(i.defineProperty)(this,"_locale",{value:this._resolveLocale(e)});var a=this._findPluralRuleFunction(this._locale),u=this._compilePattern(o,e,n,a),s=this;this.format=function(e){try{return s._format(u,e)}catch(e){throw e.variableId?new Error("The intl string context variable '"+e.variableId+"' was not provided to the string '"+t+"'"):e}}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(96),i=n(143),a=n(144),u=n(145);e.default=r,Object(i.defineProperty)(r,"formats",{enumerable:!0,value:{number:{currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}}}),Object(i.defineProperty)(r,"__localeData__",{value:Object(i.objCreate)(null)}),Object(i.defineProperty)(r,"__addLocaleData",{value:function(t){if(!t||!t.locale)throw new Error("Locale data provided to IntlMessageFormat is missing a `locale` property");r.__localeData__[t.locale.toLowerCase()]=t}}),Object(i.defineProperty)(r,"__parse",{value:u.default.parse}),Object(i.defineProperty)(r,"defaultLocale",{enumerable:!0,writable:!0,value:void 0}),r.prototype.resolvedOptions=function(){return{locale:this._locale}},r.prototype._compilePattern=function(t,e,n,r){return new a.default(e,n,r).compile(t)},r.prototype._findPluralRuleFunction=function(t){for(var e=r.__localeData__,n=e[t.toLowerCase()];n;){if(n.pluralRuleFunction)return n.pluralRuleFunction;n=n.parentLocale&&e[n.parentLocale.toLowerCase()]}throw new Error("Locale data added to IntlMessageFormat is missing a `pluralRuleFunction` for :"+t)},r.prototype._format=function(t,e){var n,r,i,a,u,s,c="";for(n=0,r=t.length;n<r;n+=1)if("string"!=typeof(i=t[n])){if(a=i.id,!e||!o.hop.call(e,a))throw s=new Error("A value must be provided for: "+a),s.variableId=a,s;u=e[a],i.options?c+=this._format(i.getOption(u),e):c+=i.format(u)}else c+=i;return c},r.prototype._mergeFormats=function(t,e){var n,r,a={};for(n in t)o.hop.call(t,n)&&(a[n]=r=Object(i.objCreate)(t[n]),e&&o.hop.call(e,n)&&Object(o.extend)(r,e[n]));return a},r.prototype._resolveLocale=function(t){"string"==typeof t&&(t=[t]),t=(t||[]).concat(r.defaultLocale);var e,n,o,i,a=r.__localeData__;for(e=0,n=t.length;e<n;e+=1)for(o=t[e].toLowerCase().split("-");o.length;){if(i=a[o.join("-")])return i.locale;o.pop()}var u=t.pop();throw new Error("No locale data has been added to IntlMessageFormat for: "+t.join(", ")+", or the default locale: "+u)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"defineProperty",function(){return i}),n.d(e,"objCreate",function(){return a});var r=n(96),o=function(){try{return!!Object.defineProperty({},"a",{})}catch(t){return!1}}(),i=(!o&&Object.prototype.__defineGetter__,o?Object.defineProperty:function(t,e,n){"get"in n&&t.__defineGetter__?t.__defineGetter__(e,n.get):(!r.hop.call(t,e)||"value"in n)&&(t[e]=n.value)}),a=Object.create||function(t,e){function n(){}var o,a;n.prototype=t,o=new n;for(a in e)r.hop.call(e,a)&&i(o,a,e[a]);return o}},function(t,e,n){"use strict";function r(t,e,n){this.locales=t,this.formats=e,this.pluralFn=n}function o(t){this.id=t}function i(t,e,n,r,o){this.id=t,this.useOrdinal=e,this.offset=n,this.options=r,this.pluralFn=o}function a(t,e,n,r){this.id=t,this.offset=e,this.numberFormat=n,this.string=r}function u(t,e){this.id=t,this.options=e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=r,r.prototype.compile=function(t){return this.pluralStack=[],this.currentPlural=null,this.pluralNumberFormat=null,this.compileMessage(t)},r.prototype.compileMessage=function(t){if(!t||"messageFormatPattern"!==t.type)throw new Error('Message AST is not of type: "messageFormatPattern"');var e,n,r,o=t.elements,i=[];for(e=0,n=o.length;e<n;e+=1)switch(r=o[e],r.type){case"messageTextElement":i.push(this.compileMessageText(r));break;case"argumentElement":i.push(this.compileArgument(r));break;default:throw new Error("Message element does not have a valid type")}return i},r.prototype.compileMessageText=function(t){return this.currentPlural&&/(^|[^\\])#/g.test(t.value)?(this.pluralNumberFormat||(this.pluralNumberFormat=new Intl.NumberFormat(this.locales)),new a(this.currentPlural.id,this.currentPlural.format.offset,this.pluralNumberFormat,t.value)):t.value.replace(/\\#/g,"#")},r.prototype.compileArgument=function(t){var e=t.format;if(!e)return new o(t.id);var n,r=this.formats,a=this.locales,s=this.pluralFn;switch(e.type){case"numberFormat":return n=r.number[e.style],{id:t.id,format:new Intl.NumberFormat(a,n).format};case"dateFormat":return n=r.date[e.style],{id:t.id,format:new Intl.DateTimeFormat(a,n).format};case"timeFormat":return n=r.time[e.style],{id:t.id,format:new Intl.DateTimeFormat(a,n).format};case"pluralFormat":return n=this.compileOptions(t),new i(t.id,e.ordinal,e.offset,n,s);case"selectFormat":return n=this.compileOptions(t),new u(t.id,n);default:throw new Error("Message element does not have a valid format type")}},r.prototype.compileOptions=function(t){var e=t.format,n=e.options,r={};this.pluralStack.push(this.currentPlural),this.currentPlural="pluralFormat"===e.type?t:null;var o,i,a;for(o=0,i=n.length;o<i;o+=1)a=n[o],r[a.selector]=this.compileMessage(a.value);return this.currentPlural=this.pluralStack.pop(),r},o.prototype.format=function(t){return t||"number"==typeof t?"string"==typeof t?t:String(t):""},i.prototype.getOption=function(t){var e=this.options;return e["="+t]||e[this.pluralFn(t-this.offset,this.useOrdinal)]||e.other},a.prototype.format=function(t){var e=this.numberFormat.format(t-this.offset);return this.string.replace(/(^|[^\\])#/g,"$1"+e).replace(/\\#/g,"#")},u.prototype.getOption=function(t){var e=this.options;return e[t]||e.other}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){function t(e,n,r,o){this.message=e,this.expected=n,this.found=r,this.location=o,this.name="SyntaxError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,t)}function e(e){function n(){return o($t,Kt)}function r(t){var n,r,o=Yt[t];if(o)return o;for(n=t-1;!Yt[n];)n--;for(o=Yt[n],o={line:o.line,column:o.column,seenCR:o.seenCR};n<t;)r=e.charAt(n),"\n"===r?(o.seenCR||o.line++,o.column=1,o.seenCR=!1):"\r"===r||"\u2028"===r||"\u2029"===r?(o.line++,o.column=1,o.seenCR=!0):(o.column++,o.seenCR=!1),n++;return Yt[t]=o,o}function o(t,e){var n=r(t),o=r(e);return{start:{offset:t,line:n.line,column:n.column},end:{offset:e,line:o.line,column:o.column}}}function i(t){Kt<Xt||(Kt>Xt&&(Xt=Kt,Jt=[]),Jt.push(t))}function a(e,n,r,o){return null!==n&&function(t){var e=1;for(t.sort(function(t,e){return t.description<e.description?-1:t.description>e.description?1:0});e<t.length;)t[e-1]===t[e]?t.splice(e,1):e++}(n),new t(null!==e?e:function(t,e){var n,r,o,i=new Array(t.length);for(o=0;o<t.length;o++)i[o]=t[o].description;return n=t.length>1?i.slice(0,-1).join(", ")+" or "+i[t.length-1]:i[0],r=e?'"'+function(t){function e(t){return t.charCodeAt(0).toString(16).toUpperCase()}return t.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\x08/g,"\\b").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\f/g,"\\f").replace(/\r/g,"\\r").replace(/[\x00-\x07\x0B\x0E\x0F]/g,function(t){return"\\x0"+e(t)}).replace(/[\x10-\x1F\x80-\xFF]/g,function(t){return"\\x"+e(t)}).replace(/[\u0100-\u0FFF]/g,function(t){return"\\u0"+e(t)}).replace(/[\u1000-\uFFFF]/g,function(t){return"\\u"+e(t)})}(e)+'"':"end of input","Expected "+n+" but "+r+" found."}(n,r),n,r,o)}function u(){return s()}function s(){var t,e,n;for(t=Kt,e=[],n=c();n!==j;)e.push(n),n=c();return e!==j&&($t=t,e=R(e)),t=e}function c(){var t;return t=f(),t===j&&(t=d()),t}function l(){var t,n,r,o,i,a;if(t=Kt,n=[],r=Kt,o=T(),o!==j?(i=C(),i!==j?(a=T(),a!==j?(o=[o,i,a],r=o):(Kt=r,r=j)):(Kt=r,r=j)):(Kt=r,r=j),r!==j)for(;r!==j;)n.push(r),r=Kt,o=T(),o!==j?(i=C(),i!==j?(a=T(),a!==j?(o=[o,i,a],r=o):(Kt=r,r=j)):(Kt=r,r=j)):(Kt=r,r=j);else n=j;return n!==j&&($t=t,n=D(n)),t=n,t===j&&(t=Kt,n=E(),t=n!==j?e.substring(t,Kt):n),t}function f(){var t,e;return t=Kt,e=l(),e!==j&&($t=t,e=F(e)),t=e}function p(){var t,n,r;if((t=S())===j){if(t=Kt,n=[],L.test(e.charAt(Kt))?(r=e.charAt(Kt),Kt++):(r=j,0===Qt&&i(z)),r!==j)for(;r!==j;)n.push(r),L.test(e.charAt(Kt))?(r=e.charAt(Kt),Kt++):(r=j,0===Qt&&i(z));else n=j;t=n!==j?e.substring(t,Kt):n}return t}function d(){var t,n,r,o,a,u,s,c,l;return t=Kt,123===e.charCodeAt(Kt)?(n=U,Kt++):(n=j,0===Qt&&i(W)),n!==j?(r=T(),r!==j?(o=p(),o!==j?(a=T(),a!==j?(u=Kt,44===e.charCodeAt(Kt)?(s=B,Kt++):(s=j,0===Qt&&i(q)),s!==j?(c=T(),c!==j?(l=h(),l!==j?(s=[s,c,l],u=s):(Kt=u,u=j)):(Kt=u,u=j)):(Kt=u,u=j),u===j&&(u=null),u!==j?(s=T(),s!==j?(125===e.charCodeAt(Kt)?(c=V,Kt++):(c=j,0===Qt&&i(G)),c!==j?($t=t,n=H(o,u),t=n):(Kt=t,t=j)):(Kt=t,t=j)):(Kt=t,t=j)):(Kt=t,t=j)):(Kt=t,t=j)):(Kt=t,t=j)):(Kt=t,t=j),t}function h(){var t;return t=v(),t===j&&(t=m())===j&&(t=y())===j&&(t=g()),t}function v(){var t,n,r,o,a,u,s;return t=Kt,e.substr(Kt,6)===K?(n=K,Kt+=6):(n=j,0===Qt&&i($)),n===j&&(e.substr(Kt,4)===Y?(n=Y,Kt+=4):(n=j,0===Qt&&i(X)),n===j&&(e.substr(Kt,4)===J?(n=J,Kt+=4):(n=j,0===Qt&&i(Q)))),n!==j?(r=T(),r!==j?(o=Kt,44===e.charCodeAt(Kt)?(a=B,Kt++):(a=j,0===Qt&&i(q)),a!==j?(u=T(),u!==j?(s=C(),s!==j?(a=[a,u,s],o=a):(Kt=o,o=j)):(Kt=o,o=j)):(Kt=o,o=j),o===j&&(o=null),o!==j?($t=t,n=Z(n,o),t=n):(Kt=t,t=j)):(Kt=t,t=j)):(Kt=t,t=j),t}function m(){var t,n,r,o,a,u;return t=Kt,e.substr(Kt,6)===tt?(n=tt,Kt+=6):(n=j,0===Qt&&i(et)),n!==j?(r=T(),r!==j?(44===e.charCodeAt(Kt)?(o=B,Kt++):(o=j,0===Qt&&i(q)),o!==j?(a=T(),a!==j?(u=x(),u!==j?($t=t,n=nt(u),t=n):(Kt=t,t=j)):(Kt=t,t=j)):(Kt=t,t=j)):(Kt=t,t=j)):(Kt=t,t=j),t}function y(){var t,n,r,o,a,u;return t=Kt,e.substr(Kt,13)===rt?(n=rt,Kt+=13):(n=j,0===Qt&&i(ot)),n!==j?(r=T(),r!==j?(44===e.charCodeAt(Kt)?(o=B,Kt++):(o=j,0===Qt&&i(q)),o!==j?(a=T(),a!==j?(u=x(),u!==j?($t=t,n=it(u),t=n):(Kt=t,t=j)):(Kt=t,t=j)):(Kt=t,t=j)):(Kt=t,t=j)):(Kt=t,t=j),t}function g(){var t,n,r,o,a;if(t=Kt,e.substr(Kt,6)===at?(n=at,Kt+=6):(n=j,0===Qt&&i(ut)),n!==j)if(T()!==j)if(44===e.charCodeAt(Kt)?(r=B,Kt++):(r=j,0===Qt&&i(q)),r!==j)if(T()!==j){if(o=[],(a=b())!==j)for(;a!==j;)o.push(a),a=b();else o=j;o!==j?($t=t,n=st(o),t=n):(Kt=t,t=j)}else Kt=t,t=j;else Kt=t,t=j;else Kt=t,t=j;else Kt=t,t=j;return t}function _(){var t,n,r,o;return t=Kt,n=Kt,61===e.charCodeAt(Kt)?(r=ct,Kt++):(r=j,0===Qt&&i(lt)),r!==j?(o=S(),o!==j?(r=[r,o],n=r):(Kt=n,n=j)):(Kt=n,n=j),t=n!==j?e.substring(t,Kt):n,t===j&&(t=C()),t}function b(){var t,n,r,o,a,u,c,l,f;return t=Kt,n=T(),n!==j?(r=_(),r!==j?(o=T(),o!==j?(123===e.charCodeAt(Kt)?(a=U,Kt++):(a=j,0===Qt&&i(W)),a!==j?(u=T(),u!==j?(c=s(),c!==j?(l=T(),l!==j?(125===e.charCodeAt(Kt)?(f=V,Kt++):(f=j,0===Qt&&i(G)),f!==j?($t=t,n=ft(r,c),t=n):(Kt=t,t=j)):(Kt=t,t=j)):(Kt=t,t=j)):(Kt=t,t=j)):(Kt=t,t=j)):(Kt=t,t=j)):(Kt=t,t=j)):(Kt=t,t=j),t}function w(){var t,n,r,o;return t=Kt,e.substr(Kt,7)===pt?(n=pt,Kt+=7):(n=j,0===Qt&&i(dt)),n!==j?(r=T(),r!==j?(o=S(),o!==j?($t=t,n=ht(o),t=n):(Kt=t,t=j)):(Kt=t,t=j)):(Kt=t,t=j),t}function x(){var t,e,n,r;if(t=Kt,e=w(),e===j&&(e=null),e!==j)if(T()!==j){if(n=[],(r=b())!==j)for(;r!==j;)n.push(r),r=b();else n=j;n!==j?($t=t,e=vt(e,n),t=e):(Kt=t,t=j)}else Kt=t,t=j;else Kt=t,t=j;return t}function E(){var t,n;if(Qt++,t=[],yt.test(e.charAt(Kt))?(n=e.charAt(Kt),Kt++):(n=j,0===Qt&&i(gt)),n!==j)for(;n!==j;)t.push(n),yt.test(e.charAt(Kt))?(n=e.charAt(Kt),Kt++):(n=j,0===Qt&&i(gt));else t=j;return Qt--,t===j&&(n=j,0===Qt&&i(mt)),t}function T(){var t,n,r;for(Qt++,t=Kt,n=[],r=E();r!==j;)n.push(r),r=E();return t=n!==j?e.substring(t,Kt):n,Qt--,t===j&&(n=j,0===Qt&&i(_t)),t}function O(){var t;return bt.test(e.charAt(Kt))?(t=e.charAt(Kt),Kt++):(t=j,0===Qt&&i(wt)),t}function k(){var t;return xt.test(e.charAt(Kt))?(t=e.charAt(Kt),Kt++):(t=j,0===Qt&&i(Et)),t}function S(){var t,n,r,o,a,u;if(t=Kt,48===e.charCodeAt(Kt)?(n=Tt,Kt++):(n=j,0===Qt&&i(Ot)),n===j){if(n=Kt,r=Kt,kt.test(e.charAt(Kt))?(o=e.charAt(Kt),Kt++):(o=j,0===Qt&&i(St)),o!==j){for(a=[],u=O();u!==j;)a.push(u),u=O();a!==j?(o=[o,a],r=o):(Kt=r,r=j)}else Kt=r,r=j;n=r!==j?e.substring(n,Kt):r}return n!==j&&($t=t,n=Nt(n)),t=n}function N(){var t,n,r,o,a,u,s,c;return Ct.test(e.charAt(Kt))?(t=e.charAt(Kt),Kt++):(t=j,0===Qt&&i(Pt)),t===j&&(t=Kt,e.substr(Kt,2)===Mt?(n=Mt,Kt+=2):(n=j,0===Qt&&i(jt)),n!==j&&($t=t,n=It()),(t=n)===j&&(t=Kt,e.substr(Kt,2)===At?(n=At,Kt+=2):(n=j,0===Qt&&i(Rt)),n!==j&&($t=t,n=Dt()),(t=n)===j&&(t=Kt,e.substr(Kt,2)===Ft?(n=Ft,Kt+=2):(n=j,0===Qt&&i(Lt)),n!==j&&($t=t,n=zt()),(t=n)===j&&(t=Kt,e.substr(Kt,2)===Ut?(n=Ut,Kt+=2):(n=j,0===Qt&&i(Wt)),n!==j&&($t=t,n=Bt()),(t=n)===j&&(t=Kt,e.substr(Kt,2)===qt?(n=qt,Kt+=2):(n=j,0===Qt&&i(Vt)),n!==j?(r=Kt,o=Kt,a=k(),a!==j?(u=k(),u!==j?(s=k(),s!==j?(c=k(),c!==j?(a=[a,u,s,c],o=a):(Kt=o,o=j)):(Kt=o,o=j)):(Kt=o,o=j)):(Kt=o,o=j),r=o!==j?e.substring(r,Kt):o,r!==j?($t=t,n=Gt(r),t=n):(Kt=t,t=j)):(Kt=t,t=j)))))),t}function C(){var t,e,n;if(t=Kt,e=[],(n=N())!==j)for(;n!==j;)e.push(n),n=N();else e=j;return e!==j&&($t=t,e=Ht(e)),t=e}var P,M=arguments.length>1?arguments[1]:{},j={},I={start:u},A=u,R=function(t){return{type:"messageFormatPattern",elements:t,location:n()}},D=function(t){var e,n,r,o,i,a="";for(e=0,r=t.length;e<r;e+=1)for(o=t[e],n=0,i=o.length;n<i;n+=1)a+=o[n];return a},F=function(t){return{type:"messageTextElement",value:t,location:n()}},L=/^[^ \t\n\r,.+={}#]/,z={type:"class",value:"[^ \\t\\n\\r,.+={}#]",description:"[^ \\t\\n\\r,.+={}#]"},U="{",W={type:"literal",value:"{",description:'"{"'},B=",",q={type:"literal",value:",",description:'","'},V="}",G={type:"literal",value:"}",description:'"}"'},H=function(t,e){return{type:"argumentElement",id:t,format:e&&e[2],location:n()}},K="number",$={type:"literal",value:"number",description:'"number"'},Y="date",X={type:"literal",value:"date",description:'"date"'},J="time",Q={type:"literal",value:"time",description:'"time"'},Z=function(t,e){return{type:t+"Format",style:e&&e[2],location:n()}},tt="plural",et={type:"literal",value:"plural",description:'"plural"'},nt=function(t){return{type:t.type,ordinal:!1,offset:t.offset||0,options:t.options,location:n()}},rt="selectordinal",ot={type:"literal",value:"selectordinal",description:'"selectordinal"'},it=function(t){return{type:t.type,ordinal:!0,offset:t.offset||0,options:t.options,location:n()}},at="select",ut={type:"literal",value:"select",description:'"select"'},st=function(t){return{type:"selectFormat",options:t,location:n()}},ct="=",lt={type:"literal",value:"=",description:'"="'},ft=function(t,e){return{type:"optionalFormatPattern",selector:t,value:e,location:n()}},pt="offset:",dt={type:"literal",value:"offset:",description:'"offset:"'},ht=function(t){return t},vt=function(t,e){return{type:"pluralFormat",offset:t,options:e,location:n()}},mt={type:"other",description:"whitespace"},yt=/^[ \t\n\r]/,gt={type:"class",value:"[ \\t\\n\\r]",description:"[ \\t\\n\\r]"},_t={type:"other",description:"optionalWhitespace"},bt=/^[0-9]/,wt={type:"class",value:"[0-9]",description:"[0-9]"},xt=/^[0-9a-f]/i,Et={type:"class",value:"[0-9a-f]i",description:"[0-9a-f]i"},Tt="0",Ot={type:"literal",value:"0",description:'"0"'},kt=/^[1-9]/,St={type:"class",value:"[1-9]",description:"[1-9]"},Nt=function(t){return parseInt(t,10)},Ct=/^[^{}\\\0-\x1F \t\n\r]/,Pt={type:"class",value:"[^{}\\\\\\0-\\x1F\\x7f \\t\\n\\r]",description:"[^{}\\\\\\0-\\x1F\\x7f \\t\\n\\r]"},Mt="\\\\",jt={type:"literal",value:"\\\\",description:'"\\\\\\\\"'},It=function(){return"\\"},At="\\#",Rt={type:"literal",value:"\\#",description:'"\\\\#"'},Dt=function(){return"\\#"},Ft="\\{",Lt={type:"literal",value:"\\{",description:'"\\\\{"'},zt=function(){return"{"},Ut="\\}",Wt={type:"literal",value:"\\}",description:'"\\\\}"'},Bt=function(){return"}"},qt="\\u",Vt={type:"literal",value:"\\u",description:'"\\\\u"'},Gt=function(t){return String.fromCharCode(parseInt(t,16))},Ht=function(t){return t.join("")},Kt=0,$t=0,Yt=[{line:1,column:1,seenCR:!1}],Xt=0,Jt=[],Qt=0;if("startRule"in M){if(!(M.startRule in I))throw new Error("Can't start parsing from rule \""+M.startRule+'".');A=I[M.startRule]}if((P=A())!==j&&Kt===e.length)return P;throw P!==j&&Kt<e.length&&i({type:"end",description:"end of input"}),a(null,Jt,Xt<e.length?e.charAt(Xt):null,Xt<e.length?o(Xt,Xt+1):o(Xt,Xt))}return function(t,e){function n(){this.constructor=t}n.prototype=e.prototype,t.prototype=new n}(t,Error),{SyntaxError:t,parse:e}}()},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={locale:"en",pluralRuleFunction:function(t,e){var n=String(t).split("."),r=!n[1],o=Number(n[0])==t,i=o&&n[0].slice(-1),a=o&&n[0].slice(-2);return e?1==i&&11!=a?"one":2==i&&12!=a?"two":3==i&&13!=a?"few":"other":1==t&&r?"one":"other"}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(148),o=n(151);r.default.__addLocaleData(o.default),r.default.defaultLocale="en",e.default=r.default},function(t,e,n){"use strict";function r(t,e){e=e||{},Object(a.isArray)(t)&&(t=t.concat()),Object(a.defineProperty)(this,"_locale",{value:this._resolveLocale(t)}),Object(a.defineProperty)(this,"_options",{value:{style:this._resolveStyle(e.style),units:this._isValidUnits(e.units)&&e.units}}),Object(a.defineProperty)(this,"_locales",{value:t}),Object(a.defineProperty)(this,"_fields",{value:this._findFields(this._locale)}),Object(a.defineProperty)(this,"_messages",{value:Object(a.objCreate)(null)});var n=this;this.format=function(t,e){return n._format(t,e)}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(95),i=n(149),a=n(150);e.default=r;var u=["second","second-short","minute","minute-short","hour","hour-short","day","day-short","month","month-short","year","year-short"],s=["best fit","numeric"];Object(a.defineProperty)(r,"__localeData__",{value:Object(a.objCreate)(null)}),Object(a.defineProperty)(r,"__addLocaleData",{value:function(t){if(!t||!t.locale)throw new Error("Locale data provided to IntlRelativeFormat is missing a `locale` property value");r.__localeData__[t.locale.toLowerCase()]=t,o.default.__addLocaleData(t)}}),Object(a.defineProperty)(r,"defaultLocale",{enumerable:!0,writable:!0,value:void 0}),Object(a.defineProperty)(r,"thresholds",{enumerable:!0,value:{second:45,"second-short":45,minute:45,"minute-short":45,hour:22,"hour-short":22,day:26,"day-short":26,month:11,"month-short":11}}),r.prototype.resolvedOptions=function(){return{locale:this._locale,style:this._options.style,units:this._options.units}},r.prototype._compileMessage=function(t){var e,n=this._locales,r=(this._locale,this._fields[t]),i=r.relativeTime,a="",u="";for(e in i.future)i.future.hasOwnProperty(e)&&(a+=" "+e+" {"+i.future[e].replace("{0}","#")+"}");for(e in i.past)i.past.hasOwnProperty(e)&&(u+=" "+e+" {"+i.past[e].replace("{0}","#")+"}");var s="{when, select, future {{0, plural, "+a+"}}past {{0, plural, "+u+"}}}";return new o.default(s,n)},r.prototype._getMessage=function(t){var e=this._messages;return e[t]||(e[t]=this._compileMessage(t)),e[t]},r.prototype._getRelativeUnits=function(t,e){var n=this._fields[e];if(n.relative)return n.relative[t]},r.prototype._findFields=function(t){for(var e=r.__localeData__,n=e[t.toLowerCase()];n;){if(n.fields)return n.fields;n=n.parentLocale&&e[n.parentLocale.toLowerCase()]}throw new Error("Locale data added to IntlRelativeFormat is missing `fields` for :"+t)},r.prototype._format=function(t,e){var n=e&&void 0!==e.now?e.now:Object(a.dateNow)();if(void 0===t&&(t=n),!isFinite(n))throw new RangeError("The `now` option provided to IntlRelativeFormat#format() is not in valid range.");if(!isFinite(t))throw new RangeError("The date value provided to IntlRelativeFormat#format() is not in valid range.");var r=Object(i.default)(n,t),o=this._options.units||this._selectUnits(r),u=r[o];if("numeric"!==this._options.style){var s=this._getRelativeUnits(u,o);if(s)return s}return this._getMessage(o).format({0:Math.abs(u),when:u<0?"past":"future"})},r.prototype._isValidUnits=function(t){if(!t||a.arrIndexOf.call(u,t)>=0)return!0;if("string"==typeof t){var e=/s$/.test(t)&&t.substr(0,t.length-1);if(e&&a.arrIndexOf.call(u,e)>=0)throw new Error('"'+t+'" is not a valid IntlRelativeFormat `units` value, did you mean: '+e)}throw new Error('"'+t+'" is not a valid IntlRelativeFormat `units` value, it must be one of: "'+u.join('", "')+'"')},r.prototype._resolveLocale=function(t){"string"==typeof t&&(t=[t]),t=(t||[]).concat(r.defaultLocale);var e,n,o,i,a=r.__localeData__;for(e=0,n=t.length;e<n;e+=1)for(o=t[e].toLowerCase().split("-");o.length;){if(i=a[o.join("-")])return i.locale;o.pop()}var u=t.pop();throw new Error("No locale data has been added to IntlRelativeFormat for: "+t.join(", ")+", or the default locale: "+u)},r.prototype._resolveStyle=function(t){if(!t)return s[0];if(a.arrIndexOf.call(s,t)>=0)return t;throw new Error('"'+t+'" is not a valid IntlRelativeFormat `style` value, it must be one of: "'+s.join('", "')+'"')},r.prototype._selectUnits=function(t){var e,n,o,i=u.filter(function(t){return t.indexOf("-short")<1});for(e=0,n=i.length;e<n&&(o=i[e],!(Math.abs(t[o])<r.thresholds[o]));e+=1);return o}},function(t,e,n){"use strict";function r(t){return 400*t/146097}Object.defineProperty(e,"__esModule",{value:!0});var o=Math.round;e.default=function(t,e){t=+t,e=+e;var n=o(e-t),i=o(n/1e3),a=o(i/60),u=o(a/60),s=o(u/24),c=o(s/7),l=r(s),f=o(12*l),p=o(l);return{millisecond:n,second:i,"second-short":i,minute:a,"minute-short":a,hour:u,"hour-short":u,day:s,"day-short":s,week:c,"week-short":c,month:f,"month-short":f,year:p,"year-short":p}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"defineProperty",function(){return a}),n.d(e,"objCreate",function(){return u}),n.d(e,"arrIndexOf",function(){return s}),n.d(e,"isArray",function(){return c}),n.d(e,"dateNow",function(){return l});var r=Object.prototype.hasOwnProperty,o=Object.prototype.toString,i=function(){try{return!!Object.defineProperty({},"a",{})}catch(t){return!1}}(),a=(!i&&Object.prototype.__defineGetter__,i?Object.defineProperty:function(t,e,n){"get"in n&&t.__defineGetter__?t.__defineGetter__(e,n.get):(!r.call(t,e)||"value"in n)&&(t[e]=n.value)}),u=Object.create||function(t,e){function n(){}var o,i;n.prototype=t,o=new n;for(i in e)r.call(e,i)&&a(o,i,e[i]);return o},s=Array.prototype.indexOf||function(t,e){var n=this;if(!n.length)return-1;for(var r=e||0,o=n.length;r<o;r++)if(n[r]===t)return r;return-1},c=Array.isArray||function(t){return"[object Array]"===o.call(t)},l=Date.now||function(){return(new Date).getTime()}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={locale:"en",pluralRuleFunction:function(t,e){var n=String(t).split("."),r=!n[1],o=Number(n[0])==t,i=o&&n[0].slice(-1),a=o&&n[0].slice(-2);return e?1==i&&11!=a?"one":2==i&&12!=a?"two":3==i&&13!=a?"few":"other":1==t&&r?"one":"other"},fields:{year:{displayName:"year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{one:"in {0} year",other:"in {0} years"},past:{one:"{0} year ago",other:"{0} years ago"}}},"year-short":{displayName:"yr.",relative:{0:"this yr.",1:"next yr.","-1":"last yr."},relativeTime:{future:{one:"in {0} yr.",other:"in {0} yr."},past:{one:"{0} yr. ago",other:"{0} yr. ago"}}},month:{displayName:"month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{one:"in {0} month",other:"in {0} months"},past:{one:"{0} month ago",other:"{0} months ago"}}},"month-short":{displayName:"mo.",relative:{0:"this mo.",1:"next mo.","-1":"last mo."},relativeTime:{future:{one:"in {0} mo.",other:"in {0} mo."},past:{one:"{0} mo. ago",other:"{0} mo. ago"}}},day:{displayName:"day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{one:"in {0} day",other:"in {0} days"},past:{one:"{0} day ago",other:"{0} days ago"}}},"day-short":{displayName:"day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{one:"in {0} day",other:"in {0} days"},past:{one:"{0} day ago",other:"{0} days ago"}}},hour:{displayName:"hour",relative:{0:"this hour"},relativeTime:{future:{one:"in {0} hour",other:"in {0} hours"},past:{one:"{0} hour ago",other:"{0} hours ago"}}},"hour-short":{displayName:"hr.",relative:{0:"this hour"},relativeTime:{future:{one:"in {0} hr.",other:"in {0} hr."},past:{one:"{0} hr. ago",other:"{0} hr. ago"}}},minute:{displayName:"minute",relative:{0:"this minute"},relativeTime:{future:{one:"in {0} minute",other:"in {0} minutes"},past:{one:"{0} minute ago",other:"{0} minutes ago"}}},"minute-short":{displayName:"min.",relative:{0:"this minute"},relativeTime:{future:{one:"in {0} min.",other:"in {0} min."},past:{one:"{0} min. ago",other:"{0} min. ago"}}},second:{displayName:"second",relative:{0:"now"},relativeTime:{future:{one:"in {0} second",other:"in {0} seconds"},past:{one:"{0} second ago",other:"{0} seconds ago"}}},"second-short":{displayName:"sec.",relative:{0:"now"},relativeTime:{future:{one:"in {0} sec.",other:"in {0} sec."},past:{one:"{0} sec. ago",other:"{0} sec. ago"}}}}}},function(t,e,n){"use strict";function r(){}var o=n(153);t.exports=function(){function t(t,e,n,r,i,a){if(a!==o){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}function e(){return t}t.isRequired=t;var n={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e};return n.checkPropTypes=r,n.PropTypes=n,n}},function(t,e,n){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(t,e,n){"use strict";function r(t,e,n){if("string"!=typeof e){if(f){var p=l(e);p&&p!==f&&r(t,p,n)}var d=u(e);s&&(d=d.concat(s(e)));for(var h=0;h<d.length;++h){var v=d[h];if(!(o[v]||i[v]||n&&n[v])){var m=c(e,v);try{a(t,v,m)}catch(t){}}}return t}return t}var o={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a=Object.defineProperty,u=Object.getOwnPropertyNames,s=Object.getOwnPropertySymbols,c=Object.getOwnPropertyDescriptor,l=Object.getPrototypeOf,f=l&&l(Object);t.exports=r},function(t,e,n){"use strict";var r=function(t,e,n,r,o,i,a,u){if(!t){var s;if(void 0===e)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,o,i,a,u],l=0;s=new Error(e.replace(/%s/g,function(){return c[l++]})),s.name="Invariant Violation"}throw s.framesToPop=1,s}};t.exports=r},function(t,e,n){"use strict";function r(t){var e=Object(a.objCreate)(null);return function(){var n=Array.prototype.slice.call(arguments),r=o(n),i=r&&e[r];return i||(i=new(a.bind.apply(t,[null].concat(n))),r&&(e[r]=i)),i}}function o(t){if("undefined"!=typeof JSON){var e,n,r,o=[];for(e=0,n=t.length;e<n;e+=1)r=t[e],r&&"object"==typeof r?o.push(i(r)):o.push(r);return JSON.stringify(o)}}function i(t){var e,n,r,o,i=[],a=[];for(e in t)t.hasOwnProperty(e)&&a.push(e);var u=a.sort();for(n=0,r=u.length;n<r;n+=1)e=u[n],o={},o[e]=t[e],i[n]=o;return i}Object.defineProperty(e,"__esModule",{value:!0});var a=n(157);e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"bind",function(){return r}),n.d(e,"defineProperty",function(){return a}),n.d(e,"objCreate",function(){return u});var r=Function.prototype.bind||function(t){if("function"!=typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var e=Array.prototype.slice.call(arguments,1),n=this,r=function(){},o=function(){return n.apply(this instanceof r?this:t,e.concat(Array.prototype.slice.call(arguments)))};return this.prototype&&(r.prototype=this.prototype),o.prototype=new r,o},o=Object.prototype.hasOwnProperty,i=function(){try{return!!Object.defineProperty({},"a",{})}catch(t){return!1}}(),a=(!i&&Object.prototype.__defineGetter__,i?Object.defineProperty:function(t,e,n){"get"in n&&t.__defineGetter__?t.__defineGetter__(e,n.get):(!o.call(t,e)||"value"in n)&&(t[e]=n.value)}),u=Object.create||function(t,e){function n(){}var r,i;n.prototype=t,r=new n;for(i in e)o.call(e,i)&&a(r,i,e[i]);return r}},function(t,e,n){"use strict";function r(){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t);var e=t.offsetWidth-t.clientWidth;return document.body.removeChild(t),e}function o(t){document.body.style.paddingRight=t>0?t+"px":null}function i(){return document.body.clientWidth<window.innerWidth}function a(){var t=window.getComputedStyle(document.body,null);return parseInt(t&&t.getPropertyValue("padding-right")||0,10)}function u(){var t=r(),e=document.querySelectorAll(".fixed-top, .fixed-bottom, .is-fixed, .sticky-top")[0],n=e?parseInt(e.style.paddingRight||0,10):0;i()&&o(n+t)}function s(t){q=t}function c(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:q;return e?t.split(" ").map(function(t){return e[t]||t}).join(" "):t}function l(t,e){var n={};return Object.keys(t).forEach(function(r){-1===e.indexOf(r)&&(n[r]=t[r])}),n}function f(t,e){for(var n=Array.isArray(e)?e:[e],r=n.length,o=void 0,i={};r>0;)r-=1,o=n[r],i[o]=t[o];return i}function p(t){V[t]||("undefined"!=typeof console&&console.error(t),V[t]=!0)}function d(t,e){return function(n,r,o){null!==n[r]&&void 0!==n[r]&&p('"'+r+'" property of "'+o+'" has been deprecated.\n'+e);for(var i=arguments.length,a=Array(i>3?i-3:0),u=3;u<i;u++)a[u-3]=arguments[u];return t.apply(void 0,[n,r,o].concat(a))}}function h(t,e,n){if(!(t[e]instanceof Element))return new Error("Invalid prop `"+e+"` supplied to `"+n+"`. Expected prop to be an instance of Element. Validation failed.")}function v(t){if(R()(t))return t();if("string"==typeof t&&document){var e=document.querySelector(t);if(null===e&&(e=document.querySelector("#"+t)),null===e)throw new Error("The target '"+t+"' could not be identified in the dom, tip: check spelling");return e}return t}function m(t){return p('The "NavDropdown" component has been deprecated.\nPlease use component "Dropdown" with nav prop.'),C.a.createElement(Wt,nt({nav:!0},t))}function y(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function g(t,e){return e={exports:{}},t(e,e.exports),e.exports}function _(t){var e=t.tag,n=t.baseClass,r=t.baseClassActive,o=t.className,i=t.cssModule,a=t.children,u=ot(t,["tag","baseClass","baseClassActive","className","cssModule","children"]),s=f(u,H),p=l(u,H);return C.a.createElement(Te,s,function(t){var u="entered"===t,s=c(I()(o,n,u&&r),i);return C.a.createElement(e,nt({className:s},p),a)})}function b(t){return p('The "CardBlock" component has been deprecated.\nPlease use component "CardBody".'),C.a.createElement(Ve,t)}function w(t){return p('The "PopoverTitle" component has been deprecated.\nPlease use component "PopoverHeader".'),C.a.createElement(An,t)}function x(t){return p('The "PopoverContent" component has been deprecated.\nPlease use component "PopoverBody".'),C.a.createElement(Fn,t)}function E(){}function T(t,e){var n=t.className,r=t.cssModule,o=t.tabId,i=t.tag,a=ot(t,["className","cssModule","tabId","tag"]),u=c(I()("tab-pane",n,{active:o===e.activeTabId}),r);return C.a.createElement(i,nt({},a,{className:u}))}function O(t){var e=t.className,n=t.closeClassName,r=t.closeAriaLabel,o=t.cssModule,i=t.tag,a=t.color,u=t.isOpen,s=t.toggle,l=t.children,f=t.transition,p=ot(t,["className","closeClassName","closeAriaLabel","cssModule","tag","color","isOpen","toggle","children","transition"]),d=c(I()(e,"alert","alert-"+a,{"alert-dismissible":s}),o),h=c(I()("close",n),o);return C.a.createElement(_,nt({},p,f,{tag:i,className:d,in:u,role:"alert"}),s?C.a.createElement("button",{type:"button",className:h,"aria-label":r,onClick:s},C.a.createElement("span",{"aria-hidden":"true"},"×")):null,l)}function k(t){return wo[t]||"collapse"}function S(t){return t.scrollHeight}Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"Alert",function(){return O}),n.d(e,"Container",function(){return st}),n.d(e,"Row",function(){return ft}),n.d(e,"Col",function(){return gt}),n.d(e,"Navbar",function(){return Tt}),n.d(e,"NavbarBrand",function(){return St}),n.d(e,"NavbarToggler",function(){return Pt}),n.d(e,"Nav",function(){return At}),n.d(e,"NavItem",function(){return Ft}),n.d(e,"NavDropdown",function(){return m}),n.d(e,"NavLink",function(){return Vt}),n.d(e,"Breadcrumb",function(){return Kt}),n.d(e,"BreadcrumbItem",function(){return Xt}),n.d(e,"Button",function(){return Zt}),n.d(e,"ButtonDropdown",function(){return ee}),n.d(e,"ButtonGroup",function(){return oe}),n.d(e,"ButtonToolbar",function(){return ue}),n.d(e,"Dropdown",function(){return Wt}),n.d(e,"DropdownItem",function(){return fe}),n.d(e,"DropdownMenu",function(){return ye}),n.d(e,"DropdownToggle",function(){return we}),n.d(e,"Fade",function(){return _}),n.d(e,"Badge",function(){return Ce}),n.d(e,"Card",function(){return je}),n.d(e,"CardLink",function(){return Ke}),n.d(e,"CardGroup",function(){return Re}),n.d(e,"CardDeck",function(){return Le}),n.d(e,"CardColumns",function(){return We}),n.d(e,"CardBody",function(){return Ve}),n.d(e,"CardBlock",function(){return b}),n.d(e,"CardFooter",function(){return Xe}),n.d(e,"CardHeader",function(){return Ze}),n.d(e,"CardImg",function(){return nn}),n.d(e,"CardImgOverlay",function(){return an}),n.d(e,"Carousel",function(){return sn}),n.d(e,"UncontrolledCarousel",function(){return dn}),n.d(e,"CarouselControl",function(){return cn}),n.d(e,"CarouselItem",function(){return un}),n.d(e,"CarouselIndicators",function(){return ln}),n.d(e,"CarouselCaption",function(){return fn}),n.d(e,"CardSubtitle",function(){return mn}),n.d(e,"CardText",function(){return _n}),n.d(e,"CardTitle",function(){return xn}),n.d(e,"Popover",function(){return Mn}),n.d(e,"PopoverContent",function(){return x}),n.d(e,"PopoverBody",function(){return Fn}),n.d(e,"PopoverTitle",function(){return w}),n.d(e,"PopoverHeader",function(){return An}),n.d(e,"Progress",function(){return Un}),n.d(e,"Modal",function(){return Kn}),n.d(e,"ModalHeader",function(){return Xn}),n.d(e,"ModalBody",function(){return Zn}),n.d(e,"ModalFooter",function(){return nr}),n.d(e,"PopperContent",function(){return kn}),n.d(e,"PopperTargetHelper",function(){return Sn}),n.d(e,"Tooltip",function(){return ar}),n.d(e,"Table",function(){return cr}),n.d(e,"ListGroup",function(){return pr}),n.d(e,"Form",function(){return vr}),n.d(e,"FormFeedback",function(){return gr}),n.d(e,"FormGroup",function(){return wr}),n.d(e,"FormText",function(){return Tr}),n.d(e,"Input",function(){return Sr}),n.d(e,"InputGroup",function(){return Pr}),n.d(e,"InputGroupAddon",function(){return Dr}),n.d(e,"InputGroupButton",function(){return Lr}),n.d(e,"InputGroupButtonDropdown",function(){return Ur}),n.d(e,"InputGroupText",function(){return Ir}),n.d(e,"Label",function(){return Kr}),n.d(e,"Media",function(){return Yr}),n.d(e,"Pagination",function(){return Qr}),n.d(e,"PaginationItem",function(){return eo}),n.d(e,"PaginationLink",function(){return oo}),n.d(e,"TabContent",function(){return so}),n.d(e,"TabPane",function(){return T}),n.d(e,"Jumbotron",function(){return vo}),n.d(e,"Collapse",function(){return xo}),n.d(e,"ListGroupItem",function(){return ko}),n.d(e,"ListGroupItemText",function(){return jo}),n.d(e,"ListGroupItemHeading",function(){return Co}),n.d(e,"UncontrolledAlert",function(){return Io}),n.d(e,"UncontrolledButtonDropdown",function(){return Ao}),n.d(e,"UncontrolledDropdown",function(){return Ro}),n.d(e,"UncontrolledNavDropdown",function(){return Do}),n.d(e,"UncontrolledTooltip",function(){return Fo}),n.d(e,"Util",function(){return J});var N=n(22),C=n.n(N),P=n(30),M=n.n(P),j=n(159),I=n.n(j),A=n(160),R=n.n(A),D=n(161),F=n.n(D),L=n(51),z=n.n(L),U=n(162),W=(n.n(U),n(163)),B=n.n(W),q=void 0,V={},G={Fade:150,Collapse:350,Modal:300,Carousel:600},H=["in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","onEnter","onEntering","onEntered","onExit","onExiting","onExited"],K={ENTERING:"entering",ENTERED:"entered",EXITING:"exiting",EXITED:"exited"},$={esc:27,space:32,tab:9,up:38,down:40},Y=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],X=!("undefined"==typeof window||!window.document||!window.document.createElement),J=Object.freeze({getScrollbarWidth:r,setScrollbarWidth:o,isBodyOverflowing:i,getOriginalBodyPadding:a,conditionallyUpdateScrollbar:u,setGlobalCssModule:s,mapToCssModules:c,omit:l,pick:f,warnOnce:p,deprecated:d,DOMElement:h,getTarget:v,TransitionTimeouts:G,TransitionPropTypeKeys:H,TransitionStatuses:K,keyCodes:$,PopperPlacements:Y,canUseDOM:X}),Q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Z=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},tt=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),et=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},nt=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},rt=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)},ot=function(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n},it=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e},at={tag:M.a.oneOfType([M.a.func,M.a.string]),fluid:M.a.bool,className:M.a.string,cssModule:M.a.object},ut={tag:"div"},st=function(t){var e=t.className,n=t.cssModule,r=t.fluid,o=t.tag,i=ot(t,["className","cssModule","fluid","tag"]),a=c(I()(e,r?"container-fluid":"container"),n);return C.a.createElement(o,nt({},i,{className:a}))};st.propTypes=at,st.defaultProps=ut;var ct={tag:M.a.oneOfType([M.a.func,M.a.string]),noGutters:M.a.bool,className:M.a.string,cssModule:M.a.object},lt={tag:"div"},ft=function(t){var e=t.className,n=t.cssModule,r=t.noGutters,o=t.tag,i=ot(t,["className","cssModule","noGutters","tag"]),a=c(I()(e,r?"no-gutters":null,"row"),n);return C.a.createElement(o,nt({},i,{className:a}))};ft.propTypes=ct,ft.defaultProps=lt;var pt=["xs","sm","md","lg","xl"],dt=M.a.oneOfType([M.a.number,M.a.string]),ht=M.a.oneOfType([M.a.bool,M.a.number,M.a.string,M.a.shape({size:M.a.oneOfType([M.a.bool,M.a.number,M.a.string]),push:d(dt,'Please use the prop "order"'),pull:d(dt,'Please use the prop "order"'),order:dt,offset:dt})]),vt={tag:M.a.oneOfType([M.a.func,M.a.string]),xs:ht,sm:ht,md:ht,lg:ht,xl:ht,className:M.a.string,cssModule:M.a.object,widths:M.a.array},mt={tag:"div",widths:pt},yt=function(t,e,n){return!0===n||""===n?t?"col":"col-"+e:"auto"===n?t?"col-auto":"col-"+e+"-auto":t?"col-"+n:"col-"+e+"-"+n},gt=function(t){var e=t.className,n=t.cssModule,r=t.widths,o=t.tag,i=ot(t,["className","cssModule","widths","tag"]),a=[];r.forEach(function(e,r){var o=t[e];if(delete i[e],o||""===o){var u=!r;if(F()(o)){var s,l=u?"-":"-"+e+"-",f=yt(u,e,o.size);a.push(c(I()((s={},et(s,f,o.size||""===o.size),et(s,"order"+l+o.order,o.order||0===o.order),et(s,"offset"+l+o.offset,o.offset||0===o.offset),s)),n))}else{var p=yt(u,e,o);a.push(p)}}}),a.length||a.push("col");var u=c(I()(e,a),n);return C.a.createElement(o,nt({},i,{className:u}))};gt.propTypes=vt,gt.defaultProps=mt;var _t={light:M.a.bool,dark:M.a.bool,inverse:d(M.a.bool,'Please use the prop "dark"'),full:M.a.bool,fixed:M.a.string,sticky:M.a.string,color:M.a.string,role:M.a.string,tag:M.a.oneOfType([M.a.func,M.a.string]),className:M.a.string,cssModule:M.a.object,toggleable:d(M.a.oneOfType([M.a.bool,M.a.string]),'Please use the prop "expand"'),expand:M.a.oneOfType([M.a.bool,M.a.string])},bt={tag:"nav",expand:!1},wt=function(t){return!1!==t&&(!0===t||"xs"===t?"navbar-expand":"navbar-expand-"+t)},xt={xs:"sm",sm:"md",md:"lg",lg:"xl"},Et=function(t){return void 0!==t&&"xl"!==t&&(!1===t?"navbar-expand":"navbar-expand-"+(!0===t?"sm":xt[t]||t))},Tt=function(t){var e,n=t.toggleable,r=t.expand,o=t.className,i=t.cssModule,a=t.light,u=t.dark,s=t.inverse,l=t.fixed,f=t.sticky,p=t.color,d=t.tag,h=ot(t,["toggleable","expand","className","cssModule","light","dark","inverse","fixed","sticky","color","tag"]),v=c(I()(o,"navbar",wt(r)||Et(n),(e={"navbar-light":a,"navbar-dark":s||u},et(e,"bg-"+p,p),et(e,"fixed-"+l,l),et(e,"sticky-"+f,f),e)),i);return C.a.createElement(d,nt({},h,{className:v}))};Tt.propTypes=_t,Tt.defaultProps=bt;var Ot={tag:M.a.oneOfType([M.a.func,M.a.string]),className:M.a.string,cssModule:M.a.object},kt={tag:"a"},St=function(t){var e=t.className,n=t.cssModule,r=t.tag,o=ot(t,["className","cssModule","tag"]),i=c(I()(e,"navbar-brand"),n);return C.a.createElement(r,nt({},o,{className:i}))};St.propTypes=Ot,St.defaultProps=kt;var Nt={tag:M.a.oneOfType([M.a.func,M.a.string]),type:M.a.string,className:M.a.string,cssModule:M.a.object,children:M.a.node},Ct={tag:"button",type:"button"},Pt=function(t){var e=t.className,n=t.cssModule,r=t.children,o=t.tag,i=ot(t,["className","cssModule","children","tag"]),a=c(I()(e,"navbar-toggler"),n);return C.a.createElement(o,nt({},i,{className:a}),r||C.a.createElement("span",{className:c("navbar-toggler-icon",n)}))};Pt.propTypes=Nt,Pt.defaultProps=Ct;var Mt={tabs:M.a.bool,pills:M.a.bool,vertical:M.a.oneOfType([M.a.bool,M.a.string]),horizontal:M.a.string,justified:M.a.bool,fill:M.a.bool,navbar:M.a.bool,card:M.a.bool,tag:M.a.oneOfType([M.a.func,M.a.string]),className:M.a.string,cssModule:M.a.object},jt={tag:"ul",vertical:!1},It=function(t){return!1!==t&&(!0===t||"xs"===t?"flex-column":"flex-"+t+"-column")},At=function(t){var e=t.className,n=t.cssModule,r=t.tabs,o=t.pills,i=t.vertical,a=t.horizontal,u=t.justified,s=t.fill,l=t.navbar,f=t.card,p=t.tag,d=ot(t,["className","cssModule","tabs","pills","vertical","horizontal","justified","fill","navbar","card","tag"]),h=c(I()(e,l?"navbar-nav":"nav",!!a&&"justify-content-"+a,It(i),{"nav-tabs":r,"card-header-tabs":f&&r,"nav-pills":o,"card-header-pills":f&&o,"nav-justified":u,"nav-fill":s}),n);return C.a.createElement(p,nt({},d,{className:h}))};At.propTypes=Mt,At.defaultProps=jt;var Rt={tag:M.a.oneOfType([M.a.func,M.a.string]),active:M.a.bool,className:M.a.string,cssModule:M.a.object},Dt={tag:"li"},Ft=function(t){var e=t.className,n=t.cssModule,r=t.active,o=t.tag,i=ot(t,["className","cssModule","active","tag"]),a=c(I()(e,"nav-item",!!r&&"active"),n);return C.a.createElement(o,nt({},i,{className:a}))};Ft.propTypes=Rt,Ft.defaultProps=Dt;var Lt={disabled:M.a.bool,dropup:d(M.a.bool,'Please use the prop "direction" with the value "up".'),direction:M.a.oneOf(["up","down","left","right"]),group:M.a.bool,isOpen:M.a.bool,nav:M.a.bool,active:M.a.bool,addonType:M.a.oneOfType([M.a.bool,M.a.oneOf(["prepend","append"])]),size:M.a.string,tag:M.a.string,toggle:M.a.func,children:M.a.node,className:M.a.string,cssModule:M.a.object,inNavbar:M.a.bool},zt={isOpen:!1,direction:"down",nav:!1,active:!1,addonType:!1,inNavbar:!1},Ut={toggle:M.a.func.isRequired,isOpen:M.a.bool.isRequired,direction:M.a.oneOf(["up","down","left","right"]).isRequired,inNavbar:M.a.bool.isRequired},Wt=function(t){function e(t){Z(this,e);var n=it(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.addEvents=n.addEvents.bind(n),n.handleDocumentClick=n.handleDocumentClick.bind(n),n.handleKeyDown=n.handleKeyDown.bind(n),n.removeEvents=n.removeEvents.bind(n),n.toggle=n.toggle.bind(n),n}return rt(e,t),tt(e,[{key:"getChildContext",value:function(){return{toggle:this.props.toggle,isOpen:this.props.isOpen,direction:"down"===this.props.direction&&this.props.dropup?"up":this.props.direction,inNavbar:this.props.inNavbar}}},{key:"componentDidMount",value:function(){this.handleProps()}},{key:"componentDidUpdate",value:function(t){this.props.isOpen!==t.isOpen&&this.handleProps()}},{key:"componentWillUnmount",value:function(){this.removeEvents()}},{key:"getContainer",value:function(){return z.a.findDOMNode(this)}},{key:"addEvents",value:function(){var t=this;["click","touchstart","keyup"].forEach(function(e){return document.addEventListener(e,t.handleDocumentClick,!0)})}},{key:"removeEvents",value:function(){var t=this;["click","touchstart","keyup"].forEach(function(e){return document.removeEventListener(e,t.handleDocumentClick,!0)})}},{key:"handleDocumentClick",value:function(t){if(!t||3!==t.which&&("keyup"!==t.type||t.which===$.tab)){var e=this.getContainer();(!e.contains(t.target)||e===t.target||"keyup"===t.type&&t.which!==$.tab)&&this.toggle(t)}}},{key:"handleKeyDown",value:function(t){if(!(-1===[$.esc,$.up,$.down,$.space].indexOf(t.which)||/button/i.test(t.target.tagName)&&t.which===$.space||/input|textarea/i.test(t.target.tagName)||(t.preventDefault(),this.props.disabled))){var e=this.getContainer();if(t.which===$.space&&this.props.isOpen&&e!==t.target&&t.target.click(),t.which===$.esc||!this.props.isOpen)return this.toggle(t),void e.querySelector("[aria-expanded]").focus();var n=c("dropdown-menu",this.props.cssModule),r=c("dropdown-item",this.props.cssModule),o=c("disabled",this.props.cssModule),i=e.querySelectorAll("."+n+" ."+r+":not(."+o+")");if(i.length){for(var a=-1,u=0;u<i.length;u+=1)if(i[u]===t.target){a=u;break}t.which===$.up&&a>0&&(a-=1),t.which===$.down&&a<i.length-1&&(a+=1),a<0&&(a=0),i[a].focus()}}}},{key:"handleProps",value:function(){this.props.isOpen?this.addEvents():this.removeEvents()}},{key:"toggle",value:function(t){return this.props.disabled?t&&t.preventDefault():this.props.toggle(t)}},{key:"render",value:function(){var t,e=l(this.props,["toggle","disabled","inNavbar","direction"]),n=e.className,r=e.cssModule,o=e.dropup,i=e.isOpen,a=e.group,u=e.size,s=e.nav,f=e.active,p=e.addonType,d=ot(e,["className","cssModule","dropup","isOpen","group","size","nav","active","addonType"]),h="down"===this.props.direction&&o?"up":this.props.direction;d.tag=d.tag||(s?"li":"div");var v=c(I()(n,"down"!==h&&"drop"+h,!(!s||!f)&&"active",(t={},et(t,"input-group-"+p,p),et(t,"btn-group",a),et(t,"btn-group-"+u,!!u),et(t,"dropdown",!a&&!p),et(t,"show",i),et(t,"nav-item",s),t)),r);return C.a.createElement(U.Manager,nt({},d,{className:v,onKeyDown:this.handleKeyDown}))}}]),e}(C.a.Component);Wt.propTypes=Lt,Wt.defaultProps=zt,Wt.childContextTypes=Ut;var Bt={tag:M.a.oneOfType([M.a.func,M.a.string]),innerRef:M.a.oneOfType([M.a.func,M.a.string]),disabled:M.a.bool,active:M.a.bool,className:M.a.string,cssModule:M.a.object,onClick:M.a.func,href:M.a.any},qt={tag:"a"},Vt=function(t){function e(t){Z(this,e);var n=it(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.onClick=n.onClick.bind(n),n}return rt(e,t),tt(e,[{key:"onClick",value:function(t){if(this.props.disabled)return void t.preventDefault();"#"===this.props.href&&t.preventDefault(),this.props.onClick&&this.props.onClick(t)}},{key:"render",value:function(){var t=this.props,e=t.className,n=t.cssModule,r=t.active,o=t.tag,i=t.innerRef,a=ot(t,["className","cssModule","active","tag","innerRef"]),u=c(I()(e,"nav-link",{disabled:a.disabled,active:r}),n);return C.a.createElement(o,nt({},a,{ref:i,onClick:this.onClick,className:u}))}}]),e}(C.a.Component);Vt.propTypes=Bt,Vt.defaultProps=qt;var Gt={tag:M.a.string,className:M.a.string,cssModule:M.a.object},Ht={tag:"ol"},Kt=function(t){var e=t.className,n=t.cssModule,r=t.tag,o=ot(t,["className","cssModule","tag"]),i=c(I()(e,"breadcrumb"),n);return C.a.createElement(r,nt({},o,{className:i}))};Kt.propTypes=Gt,Kt.defaultProps=Ht;var $t={tag:M.a.oneOfType([M.a.func,M.a.string]),active:M.a.bool,className:M.a.string,cssModule:M.a.object},Yt={tag:"li"},Xt=function(t){var e=t.className,n=t.cssModule,r=t.active,o=t.tag,i=ot(t,["className","cssModule","active","tag"]),a=c(I()(e,!!r&&"active","breadcrumb-item"),n);return C.a.createElement(o,nt({},i,{className:a}))};Xt.propTypes=$t,Xt.defaultProps=Yt;var Jt={active:M.a.bool,block:M.a.bool,color:M.a.string,disabled:M.a.bool,outline:M.a.bool,tag:M.a.oneOfType([M.a.func,M.a.string]),innerRef:M.a.oneOfType([M.a.func,M.a.string]),onClick:M.a.func,size:M.a.string,children:M.a.node,className:M.a.string,cssModule:M.a.object},Qt={color:"secondary",tag:"button"},Zt=function(t){function e(t){Z(this,e);var n=it(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.onClick=n.onClick.bind(n),n}return rt(e,t),tt(e,[{key:"onClick",value:function(t){if(this.props.disabled)return void t.preventDefault();this.props.onClick&&this.props.onClick(t)}},{key:"render",value:function(){var t=this.props,e=t.active,n=t.block,r=t.className,o=t.cssModule,i=t.color,a=t.outline,u=t.size,s=t.tag,l=t.innerRef,f=ot(t,["active","block","className","cssModule","color","outline","size","tag","innerRef"]),p=c(I()(r,"btn","btn"+(a?"-outline":"")+"-"+i,!!u&&"btn-"+u,!!n&&"btn-block",{active:e,disabled:this.props.disabled}),o);return f.href&&"button"===s&&(s="a"),C.a.createElement(s,nt({type:"button"===s&&f.onClick?"button":void 0},f,{className:p,ref:l,onClick:this.onClick}))}}]),e}(C.a.Component);Zt.propTypes=Jt,Zt.defaultProps=Qt;var te={children:M.a.node},ee=function(t){return C.a.createElement(Wt,nt({group:!0},t))};ee.propTypes=te;var ne={tag:M.a.oneOfType([M.a.func,M.a.string]),"aria-label":M.a.string,className:M.a.string,cssModule:M.a.object,role:M.a.string,size:M.a.string,vertical:M.a.bool},re={tag:"div",role:"group"},oe=function(t){var e=t.className,n=t.cssModule,r=t.size,o=t.vertical,i=t.tag,a=ot(t,["className","cssModule","size","vertical","tag"]),u=c(I()(e,!!r&&"btn-group-"+r,o?"btn-group-vertical":"btn-group"),n);return C.a.createElement(i,nt({},a,{className:u}))};oe.propTypes=ne,oe.defaultProps=re;var ie={tag:M.a.oneOfType([M.a.func,M.a.string]),"aria-label":M.a.string,className:M.a.string,cssModule:M.a.object,role:M.a.string},ae={tag:"div",role:"toolbar"},ue=function(t){var e=t.className,n=t.cssModule,r=t.tag,o=ot(t,["className","cssModule","tag"]),i=c(I()(e,"btn-toolbar"),n);return C.a.createElement(r,nt({},o,{className:i}))};ue.propTypes=ie,ue.defaultProps=ae;var se={children:M.a.node,active:M.a.bool,disabled:M.a.bool,divider:M.a.bool,tag:M.a.oneOfType([M.a.func,M.a.string]),header:M.a.bool,onClick:M.a.func,className:M.a.string,cssModule:M.a.object,toggle:M.a.bool},ce={toggle:M.a.func},le={tag:"button",toggle:!0},fe=function(t){function e(t){Z(this,e);var n=it(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.onClick=n.onClick.bind(n),n.getTabIndex=n.getTabIndex.bind(n),n}return rt(e,t),tt(e,[{key:"onClick",value:function(t){if(this.props.disabled||this.props.header||this.props.divider)return void t.preventDefault();this.props.onClick&&this.props.onClick(t),this.props.toggle&&this.context.toggle(t)}},{key:"getTabIndex",value:function(){return this.props.disabled||this.props.header||this.props.divider?"-1":"0"}},{key:"render",value:function(){var t=this.getTabIndex(),e=l(this.props,["toggle"]),n=e.className,r=e.cssModule,o=e.divider,i=e.tag,a=e.header,u=e.active,s=ot(e,["className","cssModule","divider","tag","header","active"]),f=c(I()(n,{disabled:s.disabled,"dropdown-item":!o&&!a,active:u,"dropdown-header":a,"dropdown-divider":o}),r);return"button"===i&&(a?i="h6":o?i="div":s.href&&(i="a")),C.a.createElement(i,nt({type:"button"===i&&(s.onClick||this.props.toggle)?"button":void 0},s,{tabIndex:t,className:f,onClick:this.onClick}))}}]),e}(C.a.Component);fe.propTypes=se,fe.defaultProps=le,fe.contextTypes=ce;var pe={tag:M.a.string,children:M.a.node.isRequired,right:M.a.bool,flip:M.a.bool,className:M.a.string,cssModule:M.a.object},de={tag:"div",flip:!0},he={isOpen:M.a.bool.isRequired,direction:M.a.oneOf(["up","down","left","right"]).isRequired,inNavbar:M.a.bool.isRequired},ve={flip:{enabled:!1}},me={up:"top",left:"left",right:"right",down:"bottom"},ye=function(t,e){var n=t.className,r=t.cssModule,o=t.right,i=t.tag,a=t.flip,u=ot(t,["className","cssModule","right","tag","flip"]),s=c(I()(n,"dropdown-menu",{"dropdown-menu-right":o,show:e.isOpen}),r),l=i;if(e.isOpen&&!e.inNavbar){l=U.Popper;var f=me[e.direction]||"bottom",p=o?"end":"start";u.placement=f+"-"+p,u.component=i,u.modifiers=a?void 0:ve}return C.a.createElement(l,nt({tabIndex:"-1",role:"menu"},u,{"aria-hidden":!e.isOpen,className:s}))};ye.propTypes=pe,ye.defaultProps=de,ye.contextTypes=he;var ge={caret:M.a.bool,color:M.a.string,children:M.a.node,className:M.a.string,cssModule:M.a.object,disabled:M.a.bool,onClick:M.a.func,"aria-haspopup":M.a.bool,split:M.a.bool,tag:M.a.oneOfType([M.a.func,M.a.string]),nav:M.a.bool},_e={"aria-haspopup":!0,color:"secondary"},be={isOpen:M.a.bool.isRequired,toggle:M.a.func.isRequired,inNavbar:M.a.bool.isRequired},we=function(t){function e(t){Z(this,e);var n=it(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.onClick=n.onClick.bind(n),n}return rt(e,t),tt(e,[{key:"onClick",value:function(t){if(this.props.disabled)return void t.preventDefault();this.props.nav&&!this.props.tag&&t.preventDefault(),this.props.onClick&&this.props.onClick(t),this.context.toggle(t)}},{key:"render",value:function(){var t=this.props,e=t.className,n=t.color,r=t.cssModule,o=t.caret,i=t.split,a=t.nav,u=t.tag,s=ot(t,["className","color","cssModule","caret","split","nav","tag"]),l=s["aria-label"]||"Toggle Dropdown",f=c(I()(e,{"dropdown-toggle":o||i,"dropdown-toggle-split":i,"nav-link":a}),r),p=s.children||C.a.createElement("span",{className:"sr-only"},l),d=void 0;return a&&!u?(d="a",s.href="#"):u?d=u:(d=Zt,s.color=n,s.cssModule=r),this.context.inNavbar?C.a.createElement(d,nt({},s,{className:f,onClick:this.onClick,"aria-expanded":this.context.isOpen,children:p})):C.a.createElement(U.Target,nt({},s,{className:f,component:d,onClick:this.onClick,"aria-expanded":this.context.isOpen,children:p}))}}]),e}(C.a.Component);we.propTypes=ge,we.defaultProps=_e,we.contextTypes=be;var xe=g(function(t,e){function n(t){var e="transition"+t+"Timeout",n="transition"+t;return function(t){if(t[n]){if(null==t[e])return new Error(e+" wasn't supplied to CSSTransitionGroup: this can cause unreliable animations and won't be supported in a future version of React. See https://fb.me/react-animation-transition-group-timeout for more information.");if("number"!=typeof t[e])return new Error(e+" must be a number (in milliseconds)")}return null}}e.__esModule=!0,e.classNamesShape=e.timeoutsShape=void 0,e.transitionTimeout=n;var r=function(t){return t&&t.__esModule?t:{default:t}}(M.a);e.timeoutsShape=r.default.oneOfType([r.default.number,r.default.shape({enter:r.default.number,exit:r.default.number}).isRequired]),e.classNamesShape=r.default.oneOfType([r.default.string,r.default.shape({enter:r.default.string,exit:r.default.string,active:r.default.string}),r.default.shape({enter:r.default.string,enterActive:r.default.string,exit:r.default.string,exitActive:r.default.string})])});y(xe);var Ee=g(function(t,e){function n(t){return t&&t.__esModule?t:{default:t}}function r(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==(void 0===e?"undefined":Q(e))&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+(void 0===e?"undefined":Q(e)));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function u(){}e.__esModule=!0,e.EXITING=e.ENTERED=e.ENTERING=e.EXITED=e.UNMOUNTED=void 0;var s=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(M.a),c=n(C.a),l=n(z.a),f=e.UNMOUNTED="unmounted",p=e.EXITED="exited",d=e.ENTERING="entering",h=e.ENTERED="entered",v=e.EXITING="exiting",m=function(t){function e(n,r){o(this,e);var a=i(this,t.call(this,n,r)),u=r.transitionGroup,s=u&&!u.isMounting?n.enter:n.appear,c=void 0;return a.nextStatus=null,n.in?s?(c=p,a.nextStatus=d):c=h:c=n.unmountOnExit||n.mountOnEnter?f:p,a.state={status:c},a.nextCallback=null,a}return a(e,t),e.prototype.getChildContext=function(){return{transitionGroup:null}},e.prototype.componentDidMount=function(){this.updateStatus(!0)},e.prototype.componentWillReceiveProps=function(t){var e=this.pendingState||this.state,n=e.status;t.in?(n===f&&this.setState({status:p}),n!==d&&n!==h&&(this.nextStatus=d)):n!==d&&n!==h||(this.nextStatus=v)},e.prototype.componentDidUpdate=function(){this.updateStatus()},e.prototype.componentWillUnmount=function(){this.cancelNextCallback()},e.prototype.getTimeouts=function(){var t=this.props.timeout,e=void 0,n=void 0,r=void 0;return e=n=r=t,null!=t&&"number"!=typeof t&&(e=t.exit,n=t.enter,r=t.appear),{exit:e,enter:n,appear:r}},e.prototype.updateStatus=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this.nextStatus;if(null!==e){this.nextStatus=null,this.cancelNextCallback();var n=l.default.findDOMNode(this);e===d?this.performEnter(n,t):this.performExit(n)}else this.props.unmountOnExit&&this.state.status===p&&this.setState({status:f})},e.prototype.performEnter=function(t,e){var n=this,r=this.props.enter,o=this.context.transitionGroup?this.context.transitionGroup.isMounting:e,i=this.getTimeouts();if(!e&&!r)return void this.safeSetState({status:h},function(){n.props.onEntered(t)});this.props.onEnter(t,o),this.safeSetState({status:d},function(){n.props.onEntering(t,o),n.onTransitionEnd(t,i.enter,function(){n.safeSetState({status:h},function(){n.props.onEntered(t,o)})})})},e.prototype.performExit=function(t){var e=this,n=this.props.exit,r=this.getTimeouts();if(!n)return void this.safeSetState({status:p},function(){e.props.onExited(t)});this.props.onExit(t),this.safeSetState({status:v},function(){e.props.onExiting(t),e.onTransitionEnd(t,r.exit,function(){e.safeSetState({status:p},function(){e.props.onExited(t)})})})},e.prototype.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},e.prototype.safeSetState=function(t,e){var n=this;this.pendingState=t,e=this.setNextCallback(e),this.setState(t,function(){n.pendingState=null,e()})},e.prototype.setNextCallback=function(t){var e=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,e.nextCallback=null,t(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},e.prototype.onTransitionEnd=function(t,e,n){this.setNextCallback(n),t?(this.props.addEndListener&&this.props.addEndListener(t,this.nextCallback),null!=e&&setTimeout(this.nextCallback,e)):setTimeout(this.nextCallback,0)},e.prototype.render=function(){var t=this.state.status;if(t===f)return null;var e=this.props,n=e.children,o=r(e,["children"]);if(delete o.in,delete o.mountOnEnter,delete o.unmountOnExit,delete o.appear,delete o.enter,delete o.exit,delete o.timeout,delete o.addEndListener,delete o.onEnter,delete o.onEntering,delete o.onEntered,delete o.onExit,delete o.onExiting,delete o.onExited,"function"==typeof n)return n(t,o);var i=c.default.Children.only(n);return c.default.cloneElement(i,o)},e}(c.default.Component);m.contextTypes={transitionGroup:s.object},m.childContextTypes={transitionGroup:function(){}},m.propTypes={},m.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:u,onEntering:u,onEntered:u,onExit:u,onExiting:u,onExited:u},m.UNMOUNTED=0,m.EXITED=1,m.ENTERING=2,m.ENTERED=3,m.EXITING=4,e.default=m}),Te=y(Ee),Oe=nt({},Te.propTypes,{children:M.a.oneOfType([M.a.arrayOf(M.a.node),M.a.node]),tag:M.a.oneOfType([M.a.string,M.a.func]),baseClass:M.a.string,baseClassActive:M.a.string,className:M.a.string,cssModule:M.a.object}),ke=nt({},Te.defaultProps,{tag:"div",baseClass:"fade",baseClassActive:"show",timeout:G.Fade,appear:!0,enter:!0,exit:!0,in:!0});_.propTypes=Oe,_.defaultProps=ke;var Se={color:M.a.string,pill:M.a.bool,tag:M.a.oneOfType([M.a.func,M.a.string]),children:M.a.node,className:M.a.string,cssModule:M.a.object},Ne={color:"secondary",pill:!1,tag:"span"},Ce=function(t){var e=t.className,n=t.cssModule,r=t.color,o=t.pill,i=t.tag,a=ot(t,["className","cssModule","color","pill","tag"]),u=c(I()(e,"badge","badge-"+r,!!o&&"badge-pill"),n);return a.href&&"span"===i&&(i="a"),C.a.createElement(i,nt({},a,{className:u}))};Ce.propTypes=Se,Ce.defaultProps=Ne;var Pe={tag:M.a.oneOfType([M.a.func,M.a.string]),inverse:M.a.bool,color:M.a.string,block:d(M.a.bool,'Please use the props "body"'),body:M.a.bool,outline:M.a.bool,className:M.a.string,cssModule:M.a.object},Me={tag:"div"},je=function(t){var e=t.className,n=t.cssModule,r=t.color,o=t.block,i=t.body,a=t.inverse,u=t.outline,s=t.tag,l=ot(t,["className","cssModule","color","block","body","inverse","outline","tag"]),f=c(I()(e,"card",!!a&&"text-white",!(!o&&!i)&&"card-body",!!r&&(u?"border":"bg")+"-"+r),n);return C.a.createElement(s,nt({},l,{className:f}))};je.propTypes=Pe,je.defaultProps=Me;var Ie={tag:M.a.oneOfType([M.a.func,M.a.string]),className:M.a.string,cssModule:M.a.object},Ae={tag:"div"},Re=function(t){var e=t.className,n=t.cssModule,r=t.tag,o=ot(t,["className","cssModule","tag"]),i=c(I()(e,"card-group"),n);return C.a.createElement(r,nt({},o,{className:i}))};Re.propTypes=Ie,Re.defaultProps=Ae;var De={tag:M.a.oneOfType([M.a.func,M.a.string]),className:M.a.string,cssModule:M.a.object},Fe={tag:"div"},Le=function(t){var e=t.className,n=t.cssModule,r=t.tag,o=ot(t,["className","cssModule","tag"]),i=c(I()(e,"card-deck"),n);return C.a.createElement(r,nt({},o,{className:i}))};Le.propTypes=De,Le.defaultProps=Fe;var ze={tag:M.a.oneOfType([M.a.func,M.a.string]),className:M.a.string,cssModule:M.a.object},Ue={tag:"div"},We=function(t){var e=t.className,n=t.cssModule,r=t.tag,o=ot(t,["className","cssModule","tag"]),i=c(I()(e,"card-columns"),n);return C.a.createElement(r,nt({},o,{className:i}))};We.propTypes=ze,We.defaultProps=Ue;var Be={tag:M.a.oneOfType([M.a.func,M.a.string]),className:M.a.string,cssModule:M.a.object},qe={tag:"div"},Ve=function(t){var e=t.className,n=t.cssModule,r=t.tag,o=ot(t,["className","cssModule","tag"]),i=c(I()(e,"card-body"),n);return C.a.createElement(r,nt({},o,{className:i}))};Ve.propTypes=Be,Ve.defaultProps=qe;var Ge={tag:M.a.oneOfType([M.a.func,M.a.string]),innerRef:M.a.oneOfType([M.a.func,M.a.string]),className:M.a.string,cssModule:M.a.object},He={tag:"a"},Ke=function(t){var e=t.className,n=t.cssModule,r=t.tag,o=t.innerRef,i=ot(t,["className","cssModule","tag","innerRef"]),a=c(I()(e,"card-link"),n);return C.a.createElement(r,nt({},i,{ref:o,className:a}))};Ke.propTypes=Ge,Ke.defaultProps=He;var $e={tag:M.a.oneOfType([M.a.func,M.a.string]),className:M.a.string,cssModule:M.a.object},Ye={tag:"div"},Xe=function(t){var e=t.className,n=t.cssModule,r=t.tag,o=ot(t,["className","cssModule","tag"]),i=c(I()(e,"card-footer"),n);return C.a.createElement(r,nt({},o,{className:i}))};Xe.propTypes=$e,Xe.defaultProps=Ye;var Je={tag:M.a.oneOfType([M.a.func,M.a.string]),className:M.a.string,cssModule:M.a.object},Qe={tag:"div"},Ze=function(t){var e=t.className,n=t.cssModule,r=t.tag,o=ot(t,["className","cssModule","tag"]),i=c(I()(e,"card-header"),n);return C.a.createElement(r,nt({},o,{className:i}))};Ze.propTypes=Je,Ze.defaultProps=Qe;var tn={tag:M.a.oneOfType([M.a.func,M.a.string]),top:M.a.bool,bottom:M.a.bool,className:M.a.string,cssModule:M.a.object},en={tag:"img"},nn=function(t){var e=t.className,n=t.cssModule,r=t.top,o=t.bottom,i=t.tag,a=ot(t,["className","cssModule","top","bottom","tag"]),u="card-img";r&&(u="card-img-top"),o&&(u="card-img-bottom");var s=c(I()(e,u),n);return C.a.createElement(i,nt({},a,{className:s}))};nn.propTypes=tn,nn.defaultProps=en;var rn={tag:M.a.oneOfType([M.a.func,M.a.string]),className:M.a.string,cssModule:M.a.object},on={tag:"div"},an=function(t){var e=t.className,n=t.cssModule,r=t.tag,o=ot(t,["className","cssModule","tag"]),i=c(I()(e,"card-img-overlay"),n);return C.a.createElement(r,nt({},o,{className:i}))};an.propTypes=rn,an.defaultProps=on;var un=function(t){function e(t){Z(this,e);var n=it(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.state={startAnimation:!1},n.onEnter=n.onEnter.bind(n),n.onEntering=n.onEntering.bind(n),n.onExit=n.onExit.bind(n),n.onExiting=n.onExiting.bind(n),n.onExited=n.onExited.bind(n),n}return rt(e,t),tt(e,[{key:"onEnter",value:function(t,e){this.setState({startAnimation:!1}),this.props.onEnter(t,e)}},{key:"onEntering",value:function(t,e){var n=t.offsetHeight;return this.setState({startAnimation:!0}),this.props.onEntering(t,e),n}},{key:"onExit",value:function(t){this.setState({startAnimation:!1}),this.props.onExit(t)}},{key:"onExiting",value:function(t){this.setState({startAnimation:!0}),t.dispatchEvent(new CustomEvent("slide.bs.carousel")),this.props.onExiting(t)}},{key:"onExited",value:function(t){t.dispatchEvent(new CustomEvent("slid.bs.carousel")),this.props.onExited(t)}},{key:"render",value:function(){var t=this,e=this.props,n=e.in,r=e.children,o=e.cssModule,i=e.slide,a=e.tag,u=e.className,s=ot(e,["in","children","cssModule","slide","tag","className"]);return C.a.createElement(Te,nt({},s,{enter:i,exit:i,in:n,onEnter:this.onEnter,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}),function(e){var n=t.context.direction,i=e===K.ENTERED||e===K.EXITING,s=(e===K.ENTERING||e===K.EXITING)&&t.state.startAnimation&&("right"===n?"carousel-item-left":"carousel-item-right"),l=e===K.ENTERING&&("right"===n?"carousel-item-next":"carousel-item-prev"),f=c(I()(u,"carousel-item",i&&"active",s,l),o);return C.a.createElement(a,{className:f},r)})}}]),e}(C.a.Component);un.propTypes=nt({},Te.propTypes,{tag:M.a.oneOfType([M.a.func,M.a.string]),in:M.a.bool,cssModule:M.a.object,children:M.a.node,slide:M.a.bool,className:M.a.string}),un.defaultProps=nt({},Te.defaultProps,{tag:"div",timeout:G.Carousel,slide:!0}),un.contextTypes={direction:M.a.string};var sn=function(t){function e(t){Z(this,e);var n=it(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.handleKeyPress=n.handleKeyPress.bind(n),n.renderItems=n.renderItems.bind(n),n.hoverStart=n.hoverStart.bind(n),n.hoverEnd=n.hoverEnd.bind(n),n.state={direction:"right",indicatorClicked:!1},n}return rt(e,t),tt(e,[{key:"getChildContext",value:function(){return{direction:this.state.direction}}},{key:"componentDidMount",value:function(){"carousel"===this.props.ride&&this.setInterval(),document.addEventListener("keyup",this.handleKeyPress)}},{key:"componentWillReceiveProps",value:function(t){this.setInterval(t),this.props.activeIndex+1===t.activeIndex?this.setState({direction:"right"}):this.props.activeIndex-1===t.activeIndex?this.setState({direction:"left"}):this.props.activeIndex>t.activeIndex?this.setState({direction:this.state.indicatorClicked?"left":"right"}):this.props.activeIndex!==t.activeIndex&&this.setState({direction:this.state.indicatorClicked?"right":"left"}),this.setState({indicatorClicked:!1})}},{key:"componentWillUnmount",value:function(){this.clearInterval(),document.removeEventListener("keyup",this.handleKeyPress)}},{key:"setInterval",value:function(t){function e(){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props;this.clearInterval(),t.interval&&(this.cycleInterval=setInterval(function(){t.next()},parseInt(t.interval,10)))})},{key:"clearInterval",value:function(t){function e(){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}(function(){clearInterval(this.cycleInterval)})},{key:"hoverStart",value:function(){if("hover"===this.props.pause&&this.clearInterval(),this.props.mouseEnter){var t;(t=this.props).mouseEnter.apply(t,arguments)}}},{key:"hoverEnd",value:function(){if("hover"===this.props.pause&&this.setInterval(),this.props.mouseLeave){var t;(t=this.props).mouseLeave.apply(t,arguments)}}},{key:"handleKeyPress",value:function(t){this.props.keyboard&&(37===t.keyCode?this.props.previous():39===t.keyCode&&this.props.next())}},{key:"renderItems",value:function(t,e){var n=this,r=this.props.slide;return C.a.createElement("div",{role:"listbox",className:e},t.map(function(t,e){var o=e===n.props.activeIndex;return C.a.cloneElement(t,{in:o,slide:r})}))}},{key:"render",value:function(){var t=this,e=this.props,n=e.children,r=e.cssModule,o=e.slide,i=e.className,a=c(I()(i,"carousel",o&&"slide"),r),u=c(I()("carousel-inner"),r);if(n.every(function(t){return t.type===un}))return C.a.createElement("div",{className:a,onMouseEnter:this.hoverStart,onMouseLeave:this.hoverEnd},this.renderItems(n,u));if(n[0]instanceof Array){var s=n[0],l=n[1],f=n[2];return C.a.createElement("div",{className:a,onMouseEnter:this.hoverStart,onMouseLeave:this.hoverEnd},this.renderItems(s,u),l,f)}var p=n[0],d=function(e){"function"==typeof p.props.onClickHandler&&t.setState({indicatorClicked:!0},function(){return p.props.onClickHandler(e)})},h=C.a.cloneElement(p,{onClickHandler:d}),v=n[1],m=n[2],y=n[3];return C.a.createElement("div",{className:a,onMouseEnter:this.hoverStart,onMouseLeave:this.hoverEnd},h,this.renderItems(v,u),m,y)}}]),e}(C.a.Component);sn.propTypes={activeIndex:M.a.number,next:M.a.func.isRequired,previous:M.a.func.isRequired,keyboard:M.a.bool,pause:M.a.oneOf(["hover",!1]),ride:M.a.oneOf(["carousel"]),interval:M.a.oneOfType([M.a.number,M.a.string,M.a.bool]),children:M.a.array,mouseEnter:M.a.func,mouseLeave:M.a.func,slide:M.a.bool,cssModule:M.a.object,className:M.a.string},sn.defaultProps={interval:5e3,pause:"hover",keyboard:!0,slide:!0},sn.childContextTypes={direction:M.a.string};var cn=function(t){var e=t.direction,n=t.onClickHandler,r=t.cssModule,o=t.directionText,i=t.className,a=c(I()(i,"carousel-control-"+e),r),u=c(I()("carousel-control-"+e+"-icon"),r),s=c(I()("sr-only"),r);return C.a.createElement("a",{className:a,role:"button",tabIndex:"0",onClick:function(t){t.preventDefault(),n()}},C.a.createElement("span",{className:u,"aria-hidden":"true"}),C.a.createElement("span",{className:s},o||e))};cn.propTypes={direction:M.a.oneOf(["prev","next"]).isRequired,onClickHandler:M.a.func.isRequired,cssModule:M.a.object,directionText:M.a.string,className:M.a.string};var ln=function(t){var e=t.items,n=t.activeIndex,r=t.cssModule,o=t.onClickHandler,i=t.className,a=c(I()(i,"carousel-indicators"),r),u=e.map(function(t,e){var i=c(I()({active:n===e}),r);return C.a.createElement("li",{key:""+(t.key||t.src)+t.caption+t.altText,onClick:function(t){t.preventDefault(),o(e)},className:i})});return C.a.createElement("ol",{className:a},u)};ln.propTypes={items:M.a.array.isRequired,activeIndex:M.a.number.isRequired,cssModule:M.a.object,onClickHandler:M.a.func.isRequired,className:M.a.string};var fn=function(t){var e=t.captionHeader,n=t.captionText,r=t.cssModule,o=t.className,i=c(I()(o,"carousel-caption","d-none","d-md-block"),r);return C.a.createElement("div",{className:i},C.a.createElement("h3",null,e),C.a.createElement("p",null,n))};fn.propTypes={captionHeader:M.a.string,captionText:M.a.string.isRequired,cssModule:M.a.object,className:M.a.string};var pn={items:M.a.array.isRequired,indicators:M.a.bool,controls:M.a.bool,autoPlay:M.a.bool,activeIndex:M.a.number,next:M.a.func,previous:M.a.func,goToIndex:M.a.func},dn=function(t){function e(t){Z(this,e);var n=it(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.animating=!1,n.state={activeIndex:0},n.next=n.next.bind(n),n.previous=n.previous.bind(n),n.goToIndex=n.goToIndex.bind(n),n.onExiting=n.onExiting.bind(n),n.onExited=n.onExited.bind(n),n}return rt(e,t),tt(e,[{key:"onExiting",value:function(){this.animating=!0}},{key:"onExited",value:function(){this.animating=!1}},{key:"next",value:function(){if(!this.animating){var t=this.state.activeIndex===this.props.items.length-1?0:this.state.activeIndex+1;this.setState({activeIndex:t})}}},{key:"previous",value:function(){if(!this.animating){var t=0===this.state.activeIndex?this.props.items.length-1:this.state.activeIndex-1;this.setState({activeIndex:t})}}},{key:"goToIndex",value:function(t){this.animating||this.setState({activeIndex:t})}},{key:"render",value:function(){var t=this,e=this.props,n=e.autoPlay,r=e.indicators,o=e.controls,i=e.items,a=e.goToIndex,u=ot(e,["autoPlay","indicators","controls","items","goToIndex"]),s=this.state.activeIndex,c=i.map(function(e){return C.a.createElement(un,{onExiting:t.onExiting,onExited:t.onExited,key:e.src},C.a.createElement("img",{src:e.src,alt:e.altText}),C.a.createElement(fn,{captionText:e.caption,captionHeader:e.caption}))});return C.a.createElement(sn,nt({activeIndex:s,next:this.next,previous:this.previous,ride:n?"carousel":void 0},u),r&&C.a.createElement(ln,{items:i,activeIndex:u.activeIndex||s,onClickHandler:a||this.goToIndex}),c,o&&C.a.createElement(cn,{direction:"prev",directionText:"Previous",onClickHandler:u.previous||this.previous}),o&&C.a.createElement(cn,{direction:"next",directionText:"Next",onClickHandler:u.next||this.next}))}}]),e}(N.Component);dn.propTypes=pn,dn.defaultProps={controls:!0,indicators:!0,autoPlay:!0};var hn={tag:M.a.oneOfType([M.a.func,M.a.string]),className:M.a.string,cssModule:M.a.object},vn={tag:"h6"},mn=function(t){var e=t.className,n=t.cssModule,r=t.tag,o=ot(t,["className","cssModule","tag"]),i=c(I()(e,"card-subtitle"),n);return C.a.createElement(r,nt({},o,{className:i}))};mn.propTypes=hn,mn.defaultProps=vn;var yn={tag:M.a.oneOfType([M.a.func,M.a.string]),className:M.a.string,cssModule:M.a.object},gn={tag:"p"},_n=function(t){var e=t.className,n=t.cssModule,r=t.tag,o=ot(t,["className","cssModule","tag"]),i=c(I()(e,"card-text"),n);return C.a.createElement(r,nt({},o,{className:i}))};_n.propTypes=yn,_n.defaultProps=gn;var bn={tag:M.a.oneOfType([M.a.func,M.a.string]),className:M.a.string,cssModule:M.a.object},wn={tag:"h5"},xn=function(t){var e=t.className,n=t.cssModule,r=t.tag,o=ot(t,["className","cssModule","tag"]),i=c(I()(e,"card-title"),n);return C.a.createElement(r,nt({},o,{className:i}))};xn.propTypes=bn,xn.defaultProps=wn;var En={children:M.a.node.isRequired,className:M.a.string,placement:M.a.string,placementPrefix:M.a.string,hideArrow:M.a.bool,tag:M.a.string,isOpen:M.a.bool.isRequired,cssModule:M.a.object,offset:M.a.oneOfType([M.a.string,M.a.number]),fallbackPlacement:M.a.oneOfType([M.a.string,M.a.array]),flip:M.a.bool,container:M.a.oneOfType([M.a.string,M.a.func,h]),target:M.a.oneOfType([M.a.string,M.a.func,h]).isRequired,modifiers:M.a.object},Tn={placement:"auto",hideArrow:!1,isOpen:!1,offset:0,fallbackPlacement:"flip",flip:!0,container:"body",modifiers:{}},On={popperManager:M.a.object.isRequired},kn=function(t){function e(t){Z(this,e);var n=it(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.handlePlacementChange=n.handlePlacementChange.bind(n),n.setTargetNode=n.setTargetNode.bind(n),n.getTargetNode=n.getTargetNode.bind(n),n.state={},n}return rt(e,t),tt(e,[{key:"getChildContext",value:function(){return{popperManager:{setTargetNode:this.setTargetNode,getTargetNode:this.getTargetNode}}}},{key:"componentDidMount",value:function(){this.handleProps()}},{key:"componentDidUpdate",value:function(t){this.props.isOpen!==t.isOpen?this.handleProps():this._element&&this.renderIntoSubtree()}},{key:"componentWillUnmount",value:function(){this.hide()}},{key:"setTargetNode",value:function(t){this.targetNode=t}},{key:"getTargetNode",value:function(){return this.targetNode}},{key:"getContainerNode",value:function(){return v(this.props.container)}},{key:"handlePlacementChange",value:function(t){return this.state.placement!==t.placement&&this.setState({placement:t.placement}),t}},{key:"handleProps",value:function(){"inline"!==this.props.container&&(this.props.isOpen?this.show():this.hide())}},{key:"hide",value:function(){this._element&&(this.getContainerNode().removeChild(this._element),z.a.unmountComponentAtNode(this._element),this._element=null)}},{key:"show",value:function(){this._element=document.createElement("div"),this.getContainerNode().appendChild(this._element),this.renderIntoSubtree(),this._element.childNodes&&this._element.childNodes[0]&&this._element.childNodes[0].focus&&this._element.childNodes[0].focus()}},{key:"renderIntoSubtree",value:function(){z.a.unstable_renderSubtreeIntoContainer(this,this.renderChildren(),this._element)}},{key:"renderChildren",value:function(){var t=this.props,e=t.cssModule,n=t.children,r=(t.isOpen,t.flip),o=(t.target,t.offset),i=t.fallbackPlacement,a=t.placementPrefix,u=t.hideArrow,s=t.className,l=t.tag,f=(t.container,t.modifiers),p=ot(t,["cssModule","children","isOpen","flip","target","offset","fallbackPlacement","placementPrefix","hideArrow","className","tag","container","modifiers"]),d=c("arrow",e),h=(this.state.placement||p.placement).split("-")[0],v=c(I()(s,a?a+"-"+h:h),this.props.cssModule),m=nt({offset:{offset:o},flip:{enabled:r,behavior:i},update:{enabled:!0,order:950,fn:this.handlePlacementChange}},f);return C.a.createElement(U.Popper,nt({modifiers:m},p,{component:l,className:v}),n,!u&&C.a.createElement(U.Arrow,{className:d}))}},{key:"render",value:function(){return this.setTargetNode(v(this.props.target)),"inline"===this.props.container&&this.props.isOpen?this.renderChildren():null}}]),e}(C.a.Component);kn.propTypes=En,kn.defaultProps=Tn,kn.childContextTypes=On;var Sn=function(t,e){return e.popperManager.setTargetNode(v(t.target)),null};Sn.contextTypes={popperManager:M.a.object.isRequired},Sn.propTypes={target:M.a.oneOfType([M.a.string,M.a.func,h]).isRequired};var Nn={placement:M.a.oneOf(Y),target:M.a.oneOfType([M.a.string,M.a.func,h]).isRequired,container:M.a.oneOfType([M.a.string,M.a.func,h]),isOpen:M.a.bool,disabled:M.a.bool,hideArrow:M.a.bool,className:M.a.string,innerClassName:M.a.string,placementPrefix:M.a.string,cssModule:M.a.object,toggle:M.a.func,delay:M.a.oneOfType([M.a.shape({show:M.a.number,hide:M.a.number}),M.a.number]),modifiers:M.a.object},Cn={show:0,hide:0},Pn={isOpen:!1,hideArrow:!1,placement:"right",placementPrefix:"bs-popover",delay:Cn,toggle:function(){}},Mn=function(t){function e(t){Z(this,e);var n=it(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.addTargetEvents=n.addTargetEvents.bind(n),n.handleDocumentClick=n.handleDocumentClick.bind(n),n.removeTargetEvents=n.removeTargetEvents.bind(n),n.getRef=n.getRef.bind(n),n.toggle=n.toggle.bind(n),n.show=n.show.bind(n),n.hide=n.hide.bind(n),n}return rt(e,t),tt(e,[{key:"componentDidMount",value:function(){this._target=v(this.props.target),this.handleProps()}},{key:"componentDidUpdate",value:function(){this.handleProps()}},{key:"componentWillUnmount",value:function(){this.clearShowTimeout(),this.clearHideTimeout(),this.removeTargetEvents()}},{key:"getRef",value:function(t){this._popover=t}},{key:"getDelay",value:function(t){var e=this.props.delay;return"object"===(void 0===e?"undefined":Q(e))?isNaN(e[t])?Cn[t]:e[t]:e}},{key:"handleProps",value:function(){this.props.isOpen?this.show():this.hide()}},{key:"show",value:function(){this.clearHideTimeout(),this.addTargetEvents(),this.props.isOpen||(this.clearShowTimeout(),this._showTimeout=setTimeout(this.toggle,this.getDelay("show")))}},{key:"hide",value:function(){this.clearShowTimeout(),this.removeTargetEvents(),this.props.isOpen&&(this.clearHideTimeout(),this._hideTimeout=setTimeout(this.toggle,this.getDelay("hide")))}},{key:"clearShowTimeout",value:function(){clearTimeout(this._showTimeout),this._showTimeout=void 0}},{key:"clearHideTimeout",value:function(){clearTimeout(this._hideTimeout),this._hideTimeout=void 0}},{key:"handleDocumentClick",value:function(t){t.target===this._target||this._target.contains(t.target)||t.target===this._popover||this._popover&&this._popover.contains(t.target)||(this._hideTimeout&&this.clearHideTimeout(),this.props.isOpen&&this.toggle(t))}},{key:"addTargetEvents",value:function(){var t=this;["click","touchstart"].forEach(function(e){return document.addEventListener(e,t.handleDocumentClick,!0)})}},{key:"removeTargetEvents",value:function(){var t=this;["click","touchstart"].forEach(function(e){return document.removeEventListener(e,t.handleDocumentClick,!0)})}},{key:"toggle",value:function(t){return this.props.disabled?t&&t.preventDefault():this.props.toggle(t)}},{key:"render",value:function(){if(!this.props.isOpen)return null;var t=l(this.props,Object.keys(Nn)),e=c(I()("popover-inner",this.props.innerClassName),this.props.cssModule),n=c(I()("popover","show",this.props.className),this.props.cssModule);return C.a.createElement(kn,{className:n,target:this.props.target,isOpen:this.props.isOpen,hideArrow:this.props.hideArrow,placement:this.props.placement,placementPrefix:this.props.placementPrefix,container:this.props.container,modifiers:this.props.modifiers},C.a.createElement("div",nt({},t,{className:e,ref:this.getRef})))}}]),e}(C.a.Component);Mn.propTypes=Nn,Mn.defaultProps=Pn;var jn={tag:M.a.oneOfType([M.a.func,M.a.string]),className:M.a.string,cssModule:M.a.object},In={tag:"h3"},An=function(t){var e=t.className,n=t.cssModule,r=t.tag,o=ot(t,["className","cssModule","tag"]),i=c(I()(e,"popover-header"),n);return C.a.createElement(r,nt({},o,{className:i}))};An.propTypes=jn,An.defaultProps=In;var Rn={tag:M.a.oneOfType([M.a.func,M.a.string]),className:M.a.string,cssModule:M.a.object},Dn={tag:"div"},Fn=function(t){var e=t.className,n=t.cssModule,r=t.tag,o=ot(t,["className","cssModule","tag"]),i=c(I()(e,"popover-body"),n);return C.a.createElement(r,nt({},o,{className:i}))};Fn.propTypes=Rn,Fn.defaultProps=Dn;var Ln={children:M.a.node,bar:M.a.bool,multi:M.a.bool,tag:M.a.string,value:M.a.oneOfType([M.a.string,M.a.number]),max:M.a.oneOfType([M.a.string,M.a.number]),animated:M.a.bool,striped:M.a.bool,color:M.a.string,className:M.a.string,barClassName:M.a.string,cssModule:M.a.object},zn={tag:"div",value:0,max:100},Un=function(t){var e=t.children,n=t.className,r=t.barClassName,o=t.cssModule,i=t.value,a=t.max,u=t.animated,s=t.striped,l=t.color,f=t.bar,p=t.multi,d=t.tag,h=ot(t,["children","className","barClassName","cssModule","value","max","animated","striped","color","bar","multi","tag"]),v=B()(i)/B()(a)*100,m=c(I()(n,"progress"),o),y=c(I()("progress-bar",f?n||r:r,u?"progress-bar-animated":null,l?"bg-"+l:null,s||u?"progress-bar-striped":null),o),g=p?e:C.a.createElement("div",{className:y,style:{width:v+"%"},role:"progressbar","aria-valuenow":i,"aria-valuemin":"0","aria-valuemax":a,children:e});return f?g:C.a.createElement(d,nt({},h,{className:m,children:g}))};Un.propTypes=Ln,Un.defaultProps=zn;var Wn={children:M.a.node.isRequired,node:M.a.any},Bn=function(t){function e(){return Z(this,e),it(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return rt(e,t),tt(e,[{key:"componentWillUnmount",value:function(){this.defaultNode&&document.body.removeChild(this.defaultNode),this.defaultNode=null}},{key:"render",value:function(){return X?(this.props.node||this.defaultNode||(this.defaultNode=document.createElement("div"),document.body.appendChild(this.defaultNode)),z.a.createPortal(this.props.children,this.props.node||this.defaultNode)):null}}]),e}(C.a.Component);Bn.propTypes=Wn;var qn=M.a.shape(_.propTypes),Vn={isOpen:M.a.bool,autoFocus:M.a.bool,centered:M.a.bool,size:M.a.string,toggle:M.a.func,keyboard:M.a.bool,role:M.a.string,labelledBy:M.a.string,backdrop:M.a.oneOfType([M.a.bool,M.a.oneOf(["static"])]),onEnter:M.a.func,onExit:M.a.func,onOpened:M.a.func,onClosed:M.a.func,children:M.a.node,className:M.a.string,wrapClassName:M.a.string,modalClassName:M.a.string,backdropClassName:M.a.string,contentClassName:M.a.string,external:M.a.node,fade:M.a.bool,cssModule:M.a.object,zIndex:M.a.oneOfType([M.a.number,M.a.string]),backdropTransition:qn,modalTransition:qn},Gn=Object.keys(Vn),Hn={isOpen:!1,autoFocus:!0,centered:!1,role:"dialog",backdrop:!0,keyboard:!0,zIndex:1050,fade:!0,onOpened:E,onClosed:E,modalTransition:{timeout:G.Modal},backdropTransition:{mountOnEnter:!0,timeout:G.Fade}},Kn=function(t){function e(t){Z(this,e);var n=it(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n._element=null,n._originalBodyPadding=null,n.handleBackdropClick=n.handleBackdropClick.bind(n),n.handleEscape=n.handleEscape.bind(n),n.onOpened=n.onOpened.bind(n),n.onClosed=n.onClosed.bind(n),n.state={isOpen:t.isOpen},t.isOpen&&n.init(),n}return rt(e,t),tt(e,[{key:"componentDidMount",value:function(){this.props.onEnter&&this.props.onEnter(),this.state.isOpen&&this.props.autoFocus&&this.setFocus(),this._isMounted=!0}},{key:"componentWillReceiveProps",value:function(t){t.isOpen&&!this.props.isOpen&&this.setState({isOpen:t.isOpen})}},{key:"componentWillUpdate",value:function(t,e){e.isOpen&&!this.state.isOpen&&this.init()}},{key:"componentDidUpdate",value:function(t,e){this.props.autoFocus&&this.state.isOpen&&!e.isOpen&&this.setFocus()}},{key:"componentWillUnmount",value:function(){this.props.onExit&&this.props.onExit(),this.state.isOpen&&this.destroy(),this._isMounted=!1}},{key:"onOpened",value:function(t,e){this.props.onOpened(),(this.props.modalTransition.onEntered||E)(t,e)}},{key:"onClosed",value:function(t){this.props.onClosed(),(this.props.modalTransition.onExited||E)(t),this.destroy(),this._isMounted&&this.setState({isOpen:!1})}},{key:"setFocus",value:function(){this._dialog&&this._dialog.parentNode&&"function"==typeof this._dialog.parentNode.focus&&this._dialog.parentNode.focus()}},{key:"handleBackdropClick",value:function(t){if(t.stopPropagation(),this.props.isOpen&&!0===this.props.backdrop){var e=this._dialog;t.target&&!e.contains(t.target)&&this.props.toggle&&this.props.toggle(t)}}},{key:"handleEscape",value:function(t){this.props.isOpen&&this.props.keyboard&&27===t.keyCode&&this.props.toggle&&this.props.toggle(t)}},{key:"init",value:function(){this._element=document.createElement("div"),this._element.setAttribute("tabindex","-1"),this._element.style.position="relative",this._element.style.zIndex=this.props.zIndex,this._originalBodyPadding=a(),u(),document.body.appendChild(this._element),this.bodyClassAdded||(document.body.className=I()(document.body.className,c("modal-open",this.props.cssModule)),this.bodyClassAdded=!0)}},{key:"destroy",value:function(){if(this._element&&(document.body.removeChild(this._element),this._element=null),this.bodyClassAdded){var t=c("modal-open",this.props.cssModule),e=new RegExp("(^| )"+t+"( |$)");document.body.className=document.body.className.replace(e," ").trim(),this.bodyClassAdded=!1}o(this._originalBodyPadding)}},{key:"renderModalDialog",value:function(){var t,e=this,n=l(this.props,Gn);return C.a.createElement("div",nt({},n,{className:c(I()("modal-dialog",this.props.className,(t={},et(t,"modal-"+this.props.size,this.props.size),et(t,"modal-dialog-centered",this.props.centered),t)),this.props.cssModule),role:"document",ref:function(t){e._dialog=t}}),C.a.createElement("div",{className:c(I()("modal-content",this.props.contentClassName),this.props.cssModule)},this.props.children))}},{key:"render",value:function(){if(this.state.isOpen){var t=this.props,e=t.wrapClassName,n=t.modalClassName,r=t.backdropClassName,o=t.cssModule,i=t.isOpen,a=t.backdrop,u=t.role,s=t.labelledBy,l=t.external,f={onClick:this.handleBackdropClick,onKeyUp:this.handleEscape,style:{display:"block"},"aria-labelledby":s,role:u,tabIndex:"-1"},p=this.props.fade,d=nt({},_.defaultProps,this.props.modalTransition,{baseClass:p?this.props.modalTransition.baseClass:"",timeout:p?this.props.modalTransition.timeout:0}),h=nt({},_.defaultProps,this.props.backdropTransition,{baseClass:p?this.props.backdropTransition.baseClass:"",timeout:p?this.props.backdropTransition.timeout:0});return C.a.createElement(Bn,{node:this._element},C.a.createElement("div",{className:c(e)},C.a.createElement(_,nt({},f,d,{in:i,onEntered:this.onOpened,onExited:this.onClosed,cssModule:o,className:c(I()("modal",n),o)}),l,this.renderModalDialog()),C.a.createElement(_,nt({},h,{in:i&&!!a,cssModule:o,className:c(I()("modal-backdrop",r),o)}))))}return null}}]),e}(C.a.Component);Kn.propTypes=Vn,Kn.defaultProps=Hn;var $n={tag:M.a.oneOfType([M.a.func,M.a.string]),wrapTag:M.a.oneOfType([M.a.func,M.a.string]),toggle:M.a.func,className:M.a.string,cssModule:M.a.object,children:M.a.node,closeAriaLabel:M.a.string},Yn={tag:"h5",wrapTag:"div",closeAriaLabel:"Close"},Xn=function(t){var e=void 0,n=t.className,r=t.cssModule,o=t.children,i=t.toggle,a=t.tag,u=t.wrapTag,s=t.closeAriaLabel,l=ot(t,["className","cssModule","children","toggle","tag","wrapTag","closeAriaLabel"]),f=c(I()(n,"modal-header"),r);return i&&(e=C.a.createElement("button",{type:"button",onClick:i,className:c("close",r),"aria-label":s},C.a.createElement("span",{"aria-hidden":"true"},String.fromCharCode(215)))),C.a.createElement(u,nt({},l,{className:f}),C.a.createElement(a,{className:c("modal-title",r)},o),e)};Xn.propTypes=$n,Xn.defaultProps=Yn;var Jn={tag:M.a.oneOfType([M.a.func,M.a.string]),className:M.a.string,cssModule:M.a.object},Qn={tag:"div"},Zn=function(t){var e=t.className,n=t.cssModule,r=t.tag,o=ot(t,["className","cssModule","tag"]),i=c(I()(e,"modal-body"),n);return C.a.createElement(r,nt({},o,{className:i}))};Zn.propTypes=Jn,Zn.defaultProps=Qn;var tr={tag:M.a.oneOfType([M.a.func,M.a.string]),className:M.a.string,cssModule:M.a.object},er={tag:"div"},nr=function(t){var e=t.className,n=t.cssModule,r=t.tag,o=ot(t,["className","cssModule","tag"]),i=c(I()(e,"modal-footer"),n);return C.a.createElement(r,nt({},o,{className:i}))};nr.propTypes=tr,nr.defaultProps=er;var rr={placement:M.a.oneOf(Y),target:M.a.oneOfType([M.a.string,M.a.func,h]).isRequired,container:M.a.oneOfType([M.a.string,M.a.func,h]),isOpen:M.a.bool,disabled:M.a.bool,hideArrow:M.a.bool,className:M.a.string,innerClassName:M.a.string,cssModule:M.a.object,toggle:M.a.func,autohide:M.a.bool,placementPrefix:M.a.string,delay:M.a.oneOfType([M.a.shape({show:M.a.number,hide:M.a.number}),M.a.number]),modifiers:M.a.object},or={show:0,hide:250},ir={isOpen:!1,hideArrow:!1,placement:"top",placementPrefix:"bs-tooltip",delay:or,autohide:!0,toggle:function(){}},ar=function(t){function e(t){Z(this,e);var n=it(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.addTargetEvents=n.addTargetEvents.bind(n),n.handleDocumentClick=n.handleDocumentClick.bind(n),n.removeTargetEvents=n.removeTargetEvents.bind(n),n.toggle=n.toggle.bind(n),n.onMouseOverTooltip=n.onMouseOverTooltip.bind(n),n.onMouseLeaveTooltip=n.onMouseLeaveTooltip.bind(n),n.onMouseOverTooltipContent=n.onMouseOverTooltipContent.bind(n),n.onMouseLeaveTooltipContent=n.onMouseLeaveTooltipContent.bind(n),n.show=n.show.bind(n),n.hide=n.hide.bind(n),n}return rt(e,t),tt(e,[{key:"componentDidMount",value:function(){this._target=v(this.props.target),this.addTargetEvents()}},{key:"componentWillUnmount",value:function(){this.removeTargetEvents()}},{key:"onMouseOverTooltip",value:function(){this._hideTimeout&&this.clearHideTimeout(),this._showTimeout=setTimeout(this.show,this.getDelay("show"))}},{key:"onMouseLeaveTooltip",value:function(){this._showTimeout&&this.clearShowTimeout(),this._hideTimeout=setTimeout(this.hide,this.getDelay("hide"))}},{key:"onMouseOverTooltipContent",value:function(){this.props.autohide||this._hideTimeout&&this.clearHideTimeout()}},{key:"onMouseLeaveTooltipContent",value:function(){this.props.autohide||(this._showTimeout&&this.clearShowTimeout(),this._hideTimeout=setTimeout(this.hide,this.getDelay("hide")))}},{key:"getDelay",value:function(t){var e=this.props.delay;return"object"===(void 0===e?"undefined":Q(e))?isNaN(e[t])?or[t]:e[t]:e}},{key:"show",value:function(){this.props.isOpen||(this.clearShowTimeout(),this.toggle())}},{key:"hide",value:function(){this.props.isOpen&&(this.clearHideTimeout(),this.toggle())}},{key:"clearShowTimeout",value:function(){clearTimeout(this._showTimeout),this._showTimeout=void 0}},{key:"clearHideTimeout",value:function(){clearTimeout(this._hideTimeout),this._hideTimeout=void 0}},{key:"handleDocumentClick",value:function(t){(t.target===this._target||this._target.contains(t.target))&&(this._hideTimeout&&this.clearHideTimeout(),this.props.isOpen||this.toggle())}},{key:"addTargetEvents",value:function(){var t=this;this._target.addEventListener("mouseover",this.onMouseOverTooltip,!0),this._target.addEventListener("mouseout",this.onMouseLeaveTooltip,!0),["click","touchstart"].forEach(function(e){return document.addEventListener(e,t.handleDocumentClick,!0)})}},{key:"removeTargetEvents",value:function(){var t=this;this._target.removeEventListener("mouseover",this.onMouseOverTooltip,!0),this._target.removeEventListener("mouseout",this.onMouseLeaveTooltip,!0),["click","touchstart"].forEach(function(e){return document.removeEventListener(e,t.handleDocumentClick,!0)})}},{key:"toggle",value:function(t){return this.props.disabled?t&&t.preventDefault():this.props.toggle()}},{key:"render",value:function(){if(!this.props.isOpen)return null;var t=l(this.props,Object.keys(rr)),e=c(I()("tooltip-inner",this.props.innerClassName),this.props.cssModule),n=c(I()("tooltip","show",this.props.className),this.props.cssModule);return C.a.createElement(kn,{className:n,target:this.props.target,isOpen:this.props.isOpen,hideArrow:this.props.hideArrow,placement:this.props.placement,placementPrefix:this.props.placementPrefix,container:this.props.container,modifiers:this.props.modifiers},C.a.createElement("div",nt({},t,{className:e,onMouseOver:this.onMouseOverTooltipContent,onMouseLeave:this.onMouseLeaveTooltipContent})))}}]),e}(C.a.Component);ar.propTypes=rr,ar.defaultProps=ir;var ur={className:M.a.string,cssModule:M.a.object,size:M.a.string,bordered:M.a.bool,striped:M.a.bool,inverse:d(M.a.bool,'Please use the prop "dark"'),dark:M.a.bool,hover:M.a.bool,responsive:M.a.oneOfType([M.a.bool,M.a.string]),tag:M.a.oneOfType([M.a.func,M.a.string]),responsiveTag:M.a.oneOfType([M.a.func,M.a.string])},sr={tag:"table",responsiveTag:"div"},cr=function(t){var e=t.className,n=t.cssModule,r=t.size,o=t.bordered,i=t.striped,a=t.inverse,u=t.dark,s=t.hover,l=t.responsive,f=t.tag,p=t.responsiveTag,d=ot(t,["className","cssModule","size","bordered","striped","inverse","dark","hover","responsive","tag","responsiveTag"]),h=c(I()(e,"table",!!r&&"table-"+r,!!o&&"table-bordered",!!i&&"table-striped",!(!u&&!a)&&"table-dark",!!s&&"table-hover"),n),v=C.a.createElement(f,nt({},d,{className:h}));if(l){var m=!0===l?"table-responsive":"table-responsive-"+l;return C.a.createElement(p,{className:m},v)}return v};cr.propTypes=ur,cr.defaultProps=sr;var lr={tag:M.a.oneOfType([M.a.func,M.a.string]),flush:M.a.bool,className:M.a.string,cssModule:M.a.object},fr={tag:"ul"},pr=function(t){var e=t.className,n=t.cssModule,r=t.tag,o=t.flush,i=ot(t,["className","cssModule","tag","flush"]),a=c(I()(e,"list-group",!!o&&"list-group-flush"),n);return C.a.createElement(r,nt({},i,{className:a}))};pr.propTypes=lr,pr.defaultProps=fr;var dr={children:M.a.node,inline:M.a.bool,tag:M.a.oneOfType([M.a.func,M.a.string]),innerRef:M.a.oneOfType([M.a.func,M.a.string]),className:M.a.string,cssModule:M.a.object},hr={tag:"form"},vr=function(t){var e=t.className,n=t.cssModule,r=t.inline,o=t.tag,i=t.innerRef,a=ot(t,["className","cssModule","inline","tag","innerRef"]),u=c(I()(e,!!r&&"form-inline"),n);return C.a.createElement(o,nt({},a,{ref:i,className:u}))};vr.propTypes=dr,vr.defaultProps=hr;var mr={children:M.a.node,tag:M.a.string,className:M.a.string,cssModule:M.a.object,valid:M.a.bool},yr={tag:"div",valid:void 0},gr=function(t){var e=t.className,n=t.cssModule,r=t.valid,o=t.tag,i=ot(t,["className","cssModule","valid","tag"]),a=c(I()(e,r?"valid-feedback":"invalid-feedback"),n);return C.a.createElement(o,nt({},i,{className:a}))};gr.propTypes=mr,gr.defaultProps=yr;var _r={children:M.a.node,row:M.a.bool,check:M.a.bool,inline:M.a.bool,disabled:M.a.bool,tag:M.a.string,className:M.a.string,cssModule:M.a.object},br={tag:"div"},wr=function(t){var e=t.className,n=t.cssModule,r=t.row,o=t.disabled,i=t.check,a=t.inline,u=t.tag,s=ot(t,["className","cssModule","row","disabled","check","inline","tag"]),l=c(I()(e,!!r&&"row",i?"form-check":"form-group",!(!i||!a)&&"form-check-inline",!(!i||!o)&&"disabled"),n);return C.a.createElement(u,nt({},s,{className:l}))};wr.propTypes=_r,wr.defaultProps=br;var xr={children:M.a.node,inline:M.a.bool,tag:M.a.oneOfType([M.a.func,M.a.string]),color:M.a.string,className:M.a.string,cssModule:M.a.object},Er={tag:"small",color:"muted"},Tr=function(t){var e=t.className,n=t.cssModule,r=t.inline,o=t.color,i=t.tag,a=ot(t,["className","cssModule","inline","color","tag"]),u=c(I()(e,!r&&"form-text",!!o&&"text-"+o),n);return C.a.createElement(i,nt({},a,{className:u}))};Tr.propTypes=xr,Tr.defaultProps=Er;var Or={children:M.a.node,type:M.a.string,size:M.a.string,bsSize:M.a.string,state:d(M.a.string,'Please use the props "valid" and "invalid" to indicate the state.'),valid:M.a.bool,invalid:M.a.bool,tag:M.a.oneOfType([M.a.func,M.a.string]),innerRef:M.a.oneOfType([M.a.func,M.a.string]),static:d(M.a.bool,'Please use the prop "plaintext"'),plaintext:M.a.bool,addon:M.a.bool,className:M.a.string,cssModule:M.a.object},kr={type:"text"},Sr=function(t){function e(){return Z(this,e),it(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return rt(e,t),tt(e,[{key:"render",value:function(){var t=this.props,e=t.className,n=t.cssModule,r=t.type,o=t.bsSize,i=t.state,a=t.valid,u=t.invalid,s=t.tag,l=t.addon,f=t.static,d=t.plaintext,h=t.innerRef,v=ot(t,["className","cssModule","type","bsSize","state","valid","invalid","tag","addon","static","plaintext","innerRef"]),m=["radio","checkbox"].indexOf(r)>-1,y=new RegExp("\\D","g"),g="file"===r,_="textarea"===r,b="select"===r,w=s||(b||_?r:"input"),x="form-control";d||f?(x+="-plaintext",w=s||"p"):g?x+="-file":m&&(x=l?null:"form-check-input"),i&&void 0===a&&void 0===u&&("danger"===i?u=!0:"success"===i&&(a=!0)),v.size&&y.test(v.size)&&(p('Please use the prop "bsSize" instead of the "size" to bootstrap\'s input sizing.'),o=v.size,delete v.size);var E=c(I()(e,u&&"is-invalid",a&&"is-valid",!!o&&"form-control-"+o,x),n);return"input"!==w&&"string"==typeof s||(v.type=r),C.a.createElement(w,nt({},v,{ref:h,className:E}))}}]),e}(C.a.Component);Sr.propTypes=Or,Sr.defaultProps=kr;var Nr={tag:M.a.oneOfType([M.a.func,M.a.string]),size:M.a.string,className:M.a.string,cssModule:M.a.object},Cr={tag:"div"},Pr=function(t){var e=t.className,n=t.cssModule,r=t.tag,o=t.size,i=ot(t,["className","cssModule","tag","size"]),a=c(I()(e,"input-group",o?"input-group-"+o:null),n);return C.a.createElement(r,nt({},i,{className:a}))};Pr.propTypes=Nr,Pr.defaultProps=Cr;var Mr={tag:M.a.oneOfType([M.a.func,M.a.string]),className:M.a.string,cssModule:M.a.object},jr={tag:"span"},Ir=function(t){var e=t.className,n=t.cssModule,r=t.tag,o=ot(t,["className","cssModule","tag"]),i=c(I()(e,"input-group-text"),n);return C.a.createElement(r,nt({},o,{className:i}))};Ir.propTypes=Mr,Ir.defaultProps=jr;var Ar={tag:M.a.oneOfType([M.a.func,M.a.string]),addonType:M.a.oneOf(["prepend","append"]).isRequired,children:M.a.node,className:M.a.string,cssModule:M.a.object},Rr={tag:"div"},Dr=function(t){var e=t.className,n=t.cssModule,r=t.tag,o=t.addonType,i=t.children,a=ot(t,["className","cssModule","tag","addonType","children"]),u=c(I()(e,"input-group-"+o),n);return"string"==typeof i?C.a.createElement(r,nt({},a,{className:u}),C.a.createElement(Ir,{children:i})):C.a.createElement(r,nt({},a,{className:u,children:i}))};Dr.propTypes=Ar,Dr.defaultProps=Rr;var Fr={tag:M.a.oneOfType([M.a.func,M.a.string]),addonType:M.a.oneOf(["prepend","append"]).isRequired,children:M.a.node,groupClassName:M.a.string,groupAttributes:M.a.object,className:M.a.string,cssModule:M.a.object},Lr=function(t){p('The "InputGroupButton" component has been deprecated.\nPlease use component "InputGroupAddon".');var e=t.children,n=t.groupClassName,r=t.groupAttributes,o=ot(t,["children","groupClassName","groupAttributes"]);if("string"==typeof e){var i=o.cssModule,a=o.tag,u=o.addonType,s=ot(o,["cssModule","tag","addonType"]),c=nt({},r,{cssModule:i,tag:a,addonType:u});return C.a.createElement(Dr,nt({},c,{className:n}),C.a.createElement(Zt,nt({},s,{children:e})))}return C.a.createElement(Dr,nt({},t,{children:e}))};Lr.propTypes=Fr;var zr={addonType:M.a.oneOf(["prepend","append"]).isRequired,children:M.a.node},Ur=function(t){return C.a.createElement(Wt,t)};Ur.propTypes=zr;var Wr=["xs","sm","md","lg","xl"],Br=M.a.oneOfType([M.a.number,M.a.string]),qr=M.a.oneOfType([M.a.string,M.a.number,M.a.shape({size:Br,push:d(Br,'Please use the prop "order"'),pull:d(Br,'Please use the prop "order"'),order:Br,offset:Br})]),Vr={children:M.a.node,hidden:M.a.bool,check:M.a.bool,size:M.a.string,for:M.a.string,tag:M.a.string,className:M.a.string,cssModule:M.a.object,xs:qr,sm:qr,md:qr,lg:qr,xl:qr,widths:M.a.array},Gr={tag:"label",widths:Wr},Hr=function(t,e,n){return!0===n||""===n?t?"col":"col-"+e:"auto"===n?t?"col-auto":"col-"+e+"-auto":t?"col-"+n:"col-"+e+"-"+n},Kr=function(t){var e=t.className,n=t.cssModule,r=t.hidden,o=t.widths,i=t.tag,a=t.check,u=t.size,s=t.for,l=ot(t,["className","cssModule","hidden","widths","tag","check","size","for"]),f=[];o.forEach(function(e,r){var o=t[e];if(delete l[e],o||""===o){var i=!r,a=void 0;if(F()(o)){var u,s=i?"-":"-"+e+"-";a=Hr(i,e,o.size),f.push(c(I()((u={},et(u,a,o.size||""===o.size),et(u,"order"+s+o.order,o.order||0===o.order),et(u,"offset"+s+o.offset,o.offset||0===o.offset),u))),n)}else a=Hr(i,e,o),f.push(a)}});var p=c(I()(e,!!r&&"sr-only",!!a&&"form-check-label",!!u&&"col-form-label-"+u,f,!!f.length&&"col-form-label"),n);return C.a.createElement(i,nt({htmlFor:s},l,{className:p}))};Kr.propTypes=Vr,Kr.defaultProps=Gr;var $r={body:M.a.bool,bottom:M.a.bool,children:M.a.node,className:M.a.string,cssModule:M.a.object,heading:M.a.bool,left:M.a.bool,list:M.a.bool,middle:M.a.bool,object:M.a.bool,right:M.a.bool,tag:M.a.oneOfType([M.a.func,M.a.string]),top:M.a.bool},Yr=function(t){var e=t.body,n=t.bottom,r=t.className,o=t.cssModule,i=t.heading,a=t.left,u=t.list,s=t.middle,l=t.object,f=t.right,p=t.tag,d=t.top,h=ot(t,["body","bottom","className","cssModule","heading","left","list","middle","object","right","tag","top"]),v=void 0;v=i?"h4":a||f?"a":l?"img":u?"ul":"div";var m=p||v,y=c(I()(r,{"media-body":e,"media-heading":i,"media-left":a,"media-right":f,"media-top":d,"media-bottom":n,"media-middle":s,"media-object":l,"media-list":u,media:!(e||i||a||f||d||n||s||l||u)}),o);return C.a.createElement(m,nt({},h,{className:y}))};Yr.propTypes=$r;var Xr={children:M.a.node,className:M.a.string,cssModule:M.a.object,size:M.a.string,tag:M.a.oneOfType([M.a.func,M.a.string])},Jr={tag:"ul"},Qr=function(t){var e=t.className,n=t.cssModule,r=t.size,o=t.tag,i=ot(t,["className","cssModule","size","tag"]),a=c(I()(e,"pagination",et({},"pagination-"+r,!!r)),n);return C.a.createElement(o,nt({},i,{className:a}))};Qr.propTypes=Xr,Qr.defaultProps=Jr;var Zr={active:M.a.bool,children:M.a.node,className:M.a.string,cssModule:M.a.object,disabled:M.a.bool,tag:M.a.oneOfType([M.a.func,M.a.string])},to={tag:"li"},eo=function(t){var e=t.active,n=t.className,r=t.cssModule,o=t.disabled,i=t.tag,a=ot(t,["active","className","cssModule","disabled","tag"]),u=c(I()(n,"page-item",{active:e,disabled:o}),r);return C.a.createElement(i,nt({},a,{className:u}))};eo.propTypes=Zr,eo.defaultProps=to;var no={"aria-label":M.a.string,children:M.a.node,className:M.a.string,cssModule:M.a.object,next:M.a.bool,previous:M.a.bool,tag:M.a.oneOfType([M.a.func,M.a.string])},ro={tag:"a"},oo=function(t){var e=t.className,n=t.cssModule,r=t.next,o=t.previous,i=t.tag,a=ot(t,["className","cssModule","next","previous","tag"]),u=c(I()(e,"page-link"),n),s=void 0;o?s="Previous":r&&(s="Next");var l=t["aria-label"]||s,f=void 0;o?f="«":r&&(f="»");var p=t.children;return p&&Array.isArray(p)&&0===p.length&&(p=null),(o||r)&&(p=[C.a.createElement("span",{"aria-hidden":"true",key:"caret"},p||f),C.a.createElement("span",{className:"sr-only",key:"sr"},l)]),C.a.createElement(i,nt({},a,{className:u,"aria-label":l}),p)};oo.propTypes=no,oo.defaultProps=ro;var io={tag:M.a.oneOfType([M.a.func,M.a.string]),activeTab:M.a.any,className:M.a.string,cssModule:M.a.object},ao={tag:"div"},uo={activeTabId:M.a.any},so=function(t){function e(t){Z(this,e);var n=it(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.state={activeTab:n.props.activeTab},n}return rt(e,t),tt(e,[{key:"getChildContext",value:function(){return{activeTabId:this.state.activeTab}}},{key:"componentWillReceiveProps",value:function(t){this.state.activeTab!==t.activeTab&&this.setState({activeTab:t.activeTab})}},{key:"render",value:function(){var t=this.props,e=t.className,n=t.cssModule,r=t.tag,o=l(this.props,Object.keys(io)),i=c(I()("tab-content",e),n);return C.a.createElement(r,nt({},o,{className:i}))}}]),e}(N.Component);so.propTypes=io,so.defaultProps=ao,so.childContextTypes=uo;var co={tag:M.a.oneOfType([M.a.func,M.a.string]),className:M.a.string,cssModule:M.a.object,tabId:M.a.any},lo={tag:"div"},fo={activeTabId:M.a.any};T.propTypes=co,T.defaultProps=lo,T.contextTypes=fo;var po={tag:M.a.oneOfType([M.a.func,M.a.string]),fluid:M.a.bool,className:M.a.string,cssModule:M.a.object},ho={tag:"div"},vo=function(t){var e=t.className,n=t.cssModule,r=t.tag,o=t.fluid,i=ot(t,["className","cssModule","tag","fluid"]),a=c(I()(e,"jumbotron",!!o&&"jumbotron-fluid"),n);return C.a.createElement(r,nt({},i,{className:a}))};vo.propTypes=po,vo.defaultProps=ho;var mo={children:M.a.node,className:M.a.string,closeClassName:M.a.string,closeAriaLabel:M.a.string,cssModule:M.a.object,color:M.a.string,isOpen:M.a.bool,toggle:M.a.func,tag:M.a.oneOfType([M.a.func,M.a.string]),transition:M.a.shape(_.propTypes)},yo={color:"success",isOpen:!0,tag:"div",closeAriaLabel:"Close",transition:nt({},_.defaultProps,{unmountOnExit:!0})};O.propTypes=mo,O.defaultProps=yo;var go,_o=nt({},Te.propTypes,{isOpen:M.a.bool,children:M.a.oneOfType([M.a.arrayOf(M.a.node),M.a.node]),tag:M.a.oneOfType([M.a.func,M.a.string]),className:M.a.node,navbar:M.a.bool,cssModule:M.a.object}),bo=nt({},Te.defaultProps,{isOpen:!1,appear:!1,enter:!0,exit:!0,tag:"div",timeout:G.Collapse}),wo=(go={},et(go,K.ENTERING,"collapsing"),et(go,K.ENTERED,"collapse show"),et(go,K.EXITING,"collapsing"),et(go,K.EXITED,"collapse"),go),xo=function(t){function e(t){Z(this,e);var n=it(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.state={height:null},["onEntering","onEntered","onExit","onExiting","onExited"].forEach(function(t){n[t]=n[t].bind(n)}),n}return rt(e,t),tt(e,[{key:"onEntering",value:function(t,e){this.setState({height:S(t)}),this.props.onEntering(t,e)}},{key:"onEntered",value:function(t,e){this.setState({height:null}),this.props.onEntered(t,e)}},{key:"onExit",value:function(t){this.setState({height:S(t)}),this.props.onExit(t)}},{key:"onExiting",value:function(t){t.offsetHeight;this.setState({height:0}),this.props.onExiting(t)}},{key:"onExited",value:function(t){this.setState({height:null}),this.props.onExited(t)}},{key:"render",value:function(){var t=this.props,e=t.tag,n=t.isOpen,r=t.className,o=t.navbar,i=t.cssModule,a=t.children,u=ot(t,["tag","isOpen","className","navbar","cssModule","children"]),s=this.state.height,p=f(u,H),d=l(u,H);return C.a.createElement(Te,nt({},p,{in:n,onEntering:this.onEntering,onEntered:this.onEntered,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}),function(t){var n=k(t),u=c(I()(r,n,o&&"navbar-collapse"),i),l=null===s?null:{height:s};return C.a.createElement(e,nt({},d,{style:nt({},d.style,l),className:u}),a)})}}]),e}(N.Component);xo.propTypes=_o,xo.defaultProps=bo;var Eo={tag:M.a.oneOfType([M.a.func,M.a.string]),active:M.a.bool,disabled:M.a.bool,color:M.a.string,action:M.a.bool,className:M.a.any,cssModule:M.a.object},To={tag:"li"},Oo=function(t){t.preventDefault()},ko=function(t){var e=t.className,n=t.cssModule,r=t.tag,o=t.active,i=t.disabled,a=t.action,u=t.color,s=ot(t,["className","cssModule","tag","active","disabled","action","color"]),l=c(I()(e,!!o&&"active",!!i&&"disabled",!!a&&"list-group-item-action",!!u&&"list-group-item-"+u,"list-group-item"),n);return i&&(s.onClick=Oo),C.a.createElement(r,nt({},s,{className:l}))};ko.propTypes=Eo,ko.defaultProps=To;var So={tag:M.a.oneOfType([M.a.func,M.a.string]),className:M.a.any,cssModule:M.a.object},No={tag:"h5"},Co=function(t){var e=t.className,n=t.cssModule,r=t.tag,o=ot(t,["className","cssModule","tag"]),i=c(I()(e,"list-group-item-heading"),n);return C.a.createElement(r,nt({},o,{className:i}))};Co.propTypes=So,Co.defaultProps=No;var Po={tag:M.a.oneOfType([M.a.func,M.a.string]),className:M.a.any,cssModule:M.a.object},Mo={tag:"p"},jo=function(t){var e=t.className,n=t.cssModule,r=t.tag,o=ot(t,["className","cssModule","tag"]),i=c(I()(e,"list-group-item-text"),n);return C.a.createElement(r,nt({},o,{className:i}))};jo.propTypes=Po,jo.defaultProps=Mo;var Io=function(t){function e(t){Z(this,e);var n=it(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.state={isOpen:!0},n.toggle=n.toggle.bind(n),n}return rt(e,t),tt(e,[{key:"toggle",value:function(){this.setState({isOpen:!this.state.isOpen})}},{key:"render",value:function(){return C.a.createElement(O,nt({isOpen:this.state.isOpen,toggle:this.toggle},this.props))}}]),e}(N.Component),Ao=function(t){function e(t){Z(this,e);var n=it(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.state={isOpen:!1},n.toggle=n.toggle.bind(n),n}return rt(e,t),tt(e,[{key:"toggle",value:function(){this.setState({isOpen:!this.state.isOpen})}},{key:"render",value:function(){return C.a.createElement(ee,nt({isOpen:this.state.isOpen,toggle:this.toggle},this.props))}}]),e}(N.Component),Ro=function(t){function e(t){Z(this,e);var n=it(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.state={isOpen:!1},n.toggle=n.toggle.bind(n),n}return rt(e,t),tt(e,[{key:"toggle",value:function(){this.setState({isOpen:!this.state.isOpen})}},{key:"render",value:function(){return C.a.createElement(Wt,nt({isOpen:this.state.isOpen,toggle:this.toggle},this.props))}}]),e}(N.Component),Do=function(t){return p('The "UncontrolledNavDropdown" component has been deprecated.\nPlease use component "UncontrolledDropdown" with nav prop.'),C.a.createElement(Ro,nt({nav:!0},t))},Fo=function(t){function e(t){Z(this,e);var n=it(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.state={isOpen:!1},n.toggle=n.toggle.bind(n),n}return rt(e,t),tt(e,[{key:"toggle",value:function(){this.setState({isOpen:!this.state.isOpen})}},{key:"render",value:function(){return C.a.createElement(ar,nt({isOpen:this.state.isOpen,toggle:this.toggle},this.props))}}]),e}(N.Component)},function(t,e,n){var r,o;/*! Copyright (c) 2017 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */ !function(){"use strict";function n(){for(var t=[],e=0;e<arguments.length;e++){var r=arguments[e];if(r){var o=typeof r;if("string"===o||"number"===o)t.push(r);else if(Array.isArray(r)&&r.length){var a=n.apply(null,r);a&&t.push(a)}else if("object"===o)for(var u in r)i.call(r,u)&&r[u]&&t.push(u)}}return t.join(" ")}var i={}.hasOwnProperty;void 0!==t&&t.exports?(n.default=n,t.exports=n):(r=[],void 0!==(o=function(){return n}.apply(e,r))&&(t.exports=o))}()},function(t,e,n){(function(e){function n(t){return null==t?void 0===t?p:l:b&&b in Object(t)?r(t):o(t)}function r(t){var e=y.call(t,b),n=t[b];try{t[b]=void 0;var r=!0}catch(t){}var o=g.call(t);return r&&(e?t[b]=n:delete t[b]),o}function o(t){return g.call(t)}function i(t){if(!a(t))return!1;var e=n(t);return e==s||e==c||e==u||e==f}function a(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}var u="[object AsyncFunction]",s="[object Function]",c="[object GeneratorFunction]",l="[object Null]",f="[object Proxy]",p="[object Undefined]",d="object"==typeof e&&e&&e.Object===Object&&e,h="object"==typeof self&&self&&self.Object===Object&&self,v=d||h||Function("return this")(),m=Object.prototype,y=m.hasOwnProperty,g=m.toString,_=v.Symbol,b=_?_.toStringTag:void 0;t.exports=i}).call(e,n(52))},function(t,e){function n(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}t.exports=n},function(t,e,n){/*! * React Popper 0.8.3 * https://github.com/souporserious/react-popper * Copyright (c) 2018 React Popper Authors */ !function(e,r){t.exports=r(n(22),n(30))}("undefined"!=typeof self&&self,function(t,e){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="dist/",e(e.s=2)}([function(e,n){e.exports=t},function(t,n){t.exports=e},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.Arrow=e.Popper=e.Target=e.Manager=void 0;var o=n(3),i=r(o),a=n(4),u=r(a),s=n(5),c=r(s),l=n(8),f=r(l);e.Manager=i.default,e.Target=u.default,e.Popper=c.default,e.Arrow=f.default},function(t,e,n){"use strict";function r(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),s=n(0),c=n(1),l=function(t){return t&&t.__esModule?t:{default:t}}(c),f=function(t){function e(){var t,n,r,a;o(this,e);for(var u=arguments.length,s=Array(u),c=0;c<u;c++)s[c]=arguments[c];return n=r=i(this,(t=e.__proto__||Object.getPrototypeOf(e)).call.apply(t,[this].concat(s))),r._setTargetNode=function(t){r._targetNode=t},r._getTargetNode=function(){return r._targetNode},a=n,i(r,a)}return a(e,t),u(e,[{key:"getChildContext",value:function(){return{popperManager:{setTargetNode:this._setTargetNode,getTargetNode:this._getTargetNode}}}},{key:"render",value:function(){var t=this.props,e=t.tag,n=t.children,o=r(t,["tag","children"]);return!1!==e?(0,s.createElement)(e,o,n):n}}]),e}(s.Component);f.childContextTypes={popperManager:l.default.object.isRequired},f.propTypes={tag:l.default.oneOfType([l.default.string,l.default.bool]),children:l.default.oneOfType([l.default.node,l.default.func])},f.defaultProps={tag:"div"},e.default=f},function(t,e,n){"use strict";function r(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}Object.defineProperty(e,"__esModule",{value:!0});var o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i=n(0),a=n(1),u=function(t){return t&&t.__esModule?t:{default:t}}(a),s=function(t,e){var n=t.component,a=void 0===n?"div":n,u=t.innerRef,s=t.children,c=r(t,["component","innerRef","children"]),l=e.popperManager,f=function(t){l.setTargetNode(t),"function"==typeof u&&u(t)};if("function"==typeof s){return s({targetProps:{ref:f},restProps:c})}var p=o({},c);return"string"==typeof a?p.ref=f:p.innerRef=f,(0,i.createElement)(a,p,s)};s.contextTypes={popperManager:u.default.object.isRequired},s.propTypes={component:u.default.oneOfType([u.default.node,u.default.func]),innerRef:u.default.func,children:u.default.oneOfType([u.default.node,u.default.func])},e.default=s},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var s=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},c=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),l=n(0),f=n(1),p=r(f),d=n(6),h=r(d),v=function(t){function e(){var t,n,r,o;i(this,e);for(var u=arguments.length,c=Array(u),l=0;l<u;l++)c[l]=arguments[l];return n=r=a(this,(t=e.__proto__||Object.getPrototypeOf(e)).call.apply(t,[this].concat(c))),r.state={},r._setArrowNode=function(t){r._arrowNode=t},r._getTargetNode=function(){return r.context.popperManager.getTargetNode()},r._getOffsets=function(t){return Object.keys(t.offsets).map(function(e){return t.offsets[e]})},r._isDataDirty=function(t){return!r.state.data||JSON.stringify(r._getOffsets(r.state.data))!==JSON.stringify(r._getOffsets(t))},r._updateStateModifier={enabled:!0,order:900,fn:function(t){return r._isDataDirty(t)&&r.setState({data:t}),t}},r._getPopperStyle=function(){var t=r.state.data;return r._popper&&t?s({position:t.offsets.popper.position},t.styles):{position:"absolute",pointerEvents:"none",opacity:0}},r._getPopperPlacement=function(){return r.state.data?r.state.data.placement:void 0},r._getPopperHide=function(){return r.state.data&&r.state.data.hide?"":void 0},r._getArrowStyle=function(){if(r.state.data&&r.state.data.offsets.arrow){var t=r.state.data.offsets.arrow;return{top:t.top,left:t.left}}return{}},r._handlePopperRef=function(t){r._popperNode=t,t?r._createPopper():r._destroyPopper(),r.props.innerRef&&r.props.innerRef(t)},r._scheduleUpdate=function(){r._popper&&r._popper.scheduleUpdate()},o=n,a(r,o)}return u(e,t),c(e,[{key:"getChildContext",value:function(){return{popper:{setArrowNode:this._setArrowNode,getArrowStyle:this._getArrowStyle}}}},{key:"componentDidUpdate",value:function(t){t.placement===this.props.placement&&t.eventsEnabled===this.props.eventsEnabled||(this._destroyPopper(),this._createPopper()),t.children!==this.props.children&&this._scheduleUpdate()}},{key:"componentWillUnmount",value:function(){this._destroyPopper()}},{key:"_createPopper",value:function(){var t=this,e=this.props,n=e.placement,r=e.eventsEnabled,o=s({},this.props.modifiers,{applyStyle:{enabled:!1},updateState:this._updateStateModifier});this._arrowNode&&(o.arrow={element:this._arrowNode}),this._popper=new h.default(this._getTargetNode(),this._popperNode,{placement:n,eventsEnabled:r,modifiers:o}),setTimeout(function(){return t._scheduleUpdate()})}},{key:"_destroyPopper",value:function(){this._popper&&this._popper.destroy()}},{key:"render",value:function(){var t=this.props,e=t.component,n=(t.innerRef,t.placement,t.eventsEnabled,t.modifiers,t.children),r=o(t,["component","innerRef","placement","eventsEnabled","modifiers","children"]),i=this._getPopperStyle(),a=this._getPopperPlacement(),u=this._getPopperHide();if("function"==typeof n){return n({popperProps:{ref:this._handlePopperRef,style:i,"data-placement":a,"data-x-out-of-boundaries":u},restProps:r,scheduleUpdate:this._scheduleUpdate})}var c=s({},r,{style:s({},r.style,i),"data-placement":a,"data-x-out-of-boundaries":u});return"string"==typeof e?c.ref=this._handlePopperRef:c.innerRef=this._handlePopperRef,(0,l.createElement)(e,c,n)}}]),e}(l.Component);v.contextTypes={popperManager:p.default.object.isRequired},v.childContextTypes={popper:p.default.object.isRequired},v.propTypes={component:p.default.oneOfType([p.default.node,p.default.func]),innerRef:p.default.func,placement:p.default.oneOf(h.default.placements),eventsEnabled:p.default.bool,modifiers:p.default.object,children:p.default.oneOfType([p.default.node,p.default.func])},v.defaultProps={component:"div",placement:"bottom",eventsEnabled:!0,modifiers:{}},e.default=v},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){function n(t){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then(function(){e=!1,t()}))}}function r(t){var e=!1;return function(){e||(e=!0,setTimeout(function(){e=!1,t()},ct))}}function o(t){var e={};return t&&"[object Function]"===e.toString.call(t)}function i(t,e){if(1!==t.nodeType)return[];var n=getComputedStyle(t,null);return e?n[e]:n}function a(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function u(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}var e=i(t),n=e.overflow,r=e.overflowX;return/(auto|scroll)/.test(n+e.overflowY+r)?t:u(a(t))}function s(t){var e=t&&t.offsetParent,n=e&&e.nodeName;return n&&"BODY"!==n&&"HTML"!==n?-1!==["TD","TABLE"].indexOf(e.nodeName)&&"static"===i(e,"position")?s(e):e:t?t.ownerDocument.documentElement:document.documentElement}function c(t){var e=t.nodeName;return"BODY"!==e&&("HTML"===e||s(t.firstElementChild)===t)}function l(t){return null!==t.parentNode?l(t.parentNode):t}function f(t,e){if(!(t&&t.nodeType&&e&&e.nodeType))return document.documentElement;var n=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?t:e,o=n?e:t,i=document.createRange();i.setStart(r,0),i.setEnd(o,0);var a=i.commonAncestorContainer;if(t!==a&&e!==a||r.contains(o))return c(a)?a:s(a);var u=l(t);return u.host?f(u.host,e):f(t,l(e).host)}function p(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===e?"scrollTop":"scrollLeft",r=t.nodeName;if("BODY"===r||"HTML"===r){var o=t.ownerDocument.documentElement;return(t.ownerDocument.scrollingElement||o)[n]}return t[n]}function d(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=p(e,"top"),o=p(e,"left"),i=n?-1:1;return t.top+=r*i,t.bottom+=r*i,t.left+=o*i,t.right+=o*i,t}function h(t,e){var n="x"===e?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(t["border"+n+"Width"],10)+parseFloat(t["border"+r+"Width"],10)}function v(t,e,n,r){return Math.max(e["offset"+t],e["scroll"+t],n["client"+t],n["offset"+t],n["scroll"+t],ht()?n["offset"+t]+r["margin"+("Height"===t?"Top":"Left")]+r["margin"+("Height"===t?"Bottom":"Right")]:0)}function m(){var t=document.body,e=document.documentElement,n=ht()&&getComputedStyle(e);return{height:v("Height",t,e,n),width:v("Width",t,e,n)}}function y(t){return gt({},t,{right:t.left+t.width,bottom:t.top+t.height})}function g(t){var e={};if(ht())try{e=t.getBoundingClientRect();var n=p(t,"top"),r=p(t,"left");e.top+=n,e.left+=r,e.bottom+=n,e.right+=r}catch(t){}else e=t.getBoundingClientRect();var o={left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top},a="HTML"===t.nodeName?m():{},u=a.width||t.clientWidth||o.right-o.left,s=a.height||t.clientHeight||o.bottom-o.top,c=t.offsetWidth-u,l=t.offsetHeight-s;if(c||l){var f=i(t);c-=h(f,"x"),l-=h(f,"y"),o.width-=c,o.height-=l}return y(o)}function _(t,e){var n=ht(),r="HTML"===e.nodeName,o=g(t),a=g(e),s=u(t),c=i(e),l=parseFloat(c.borderTopWidth,10),f=parseFloat(c.borderLeftWidth,10),p=y({top:o.top-a.top-l,left:o.left-a.left-f,width:o.width,height:o.height});if(p.marginTop=0,p.marginLeft=0,!n&&r){var h=parseFloat(c.marginTop,10),v=parseFloat(c.marginLeft,10);p.top-=l-h,p.bottom-=l-h,p.left-=f-v,p.right-=f-v,p.marginTop=h,p.marginLeft=v}return(n?e.contains(s):e===s&&"BODY"!==s.nodeName)&&(p=d(p,e)),p}function b(t){var e=t.ownerDocument.documentElement,n=_(t,e),r=Math.max(e.clientWidth,window.innerWidth||0),o=Math.max(e.clientHeight,window.innerHeight||0),i=p(e),a=p(e,"left");return y({top:i-n.top+n.marginTop,left:a-n.left+n.marginLeft,width:r,height:o})}function w(t){var e=t.nodeName;return"BODY"!==e&&"HTML"!==e&&("fixed"===i(t,"position")||w(a(t)))}function x(t,e,n,r){var o={top:0,left:0},i=f(t,e);if("viewport"===r)o=b(i);else{var s=void 0;"scrollParent"===r?(s=u(a(e)),"BODY"===s.nodeName&&(s=t.ownerDocument.documentElement)):s="window"===r?t.ownerDocument.documentElement:r;var c=_(s,i);if("HTML"!==s.nodeName||w(i))o=c;else{var l=m(),p=l.height,d=l.width;o.top+=c.top-c.marginTop,o.bottom=p+c.top,o.left+=c.left-c.marginLeft,o.right=d+c.left}}return o.left+=n,o.top+=n,o.right-=n,o.bottom-=n,o}function E(t){return t.width*t.height}function T(t,e,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===t.indexOf("auto"))return t;var a=x(n,r,i,o),u={top:{width:a.width,height:e.top-a.top},right:{width:a.right-e.right,height:a.height},bottom:{width:a.width,height:a.bottom-e.bottom},left:{width:e.left-a.left,height:a.height}},s=Object.keys(u).map(function(t){return gt({key:t},u[t],{area:E(u[t])})}).sort(function(t,e){return e.area-t.area}),c=s.filter(function(t){var e=t.width,r=t.height;return e>=n.clientWidth&&r>=n.clientHeight}),l=c.length>0?c[0].key:s[0].key,f=t.split("-")[1];return l+(f?"-"+f:"")}function O(t,e,n){return _(n,f(e,n))}function k(t){var e=getComputedStyle(t),n=parseFloat(e.marginTop)+parseFloat(e.marginBottom),r=parseFloat(e.marginLeft)+parseFloat(e.marginRight);return{width:t.offsetWidth+r,height:t.offsetHeight+n}}function S(t){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,function(t){return e[t]})}function N(t,e,n){n=n.split("-")[0];var r=k(t),o={width:r.width,height:r.height},i=-1!==["right","left"].indexOf(n),a=i?"top":"left",u=i?"left":"top",s=i?"height":"width",c=i?"width":"height";return o[a]=e[a]+e[s]/2-r[s]/2,o[u]=n===u?e[u]-r[c]:e[S(u)],o}function C(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function P(t,e,n){if(Array.prototype.findIndex)return t.findIndex(function(t){return t[e]===n});var r=C(t,function(t){return t[e]===n});return t.indexOf(r)}function M(t,e,n){return(void 0===n?t:t.slice(0,P(t,"name",n))).forEach(function(t){t.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=t.function||t.fn;t.enabled&&o(n)&&(e.offsets.popper=y(e.offsets.popper),e.offsets.reference=y(e.offsets.reference),e=n(e,t))}),e}function j(){if(!this.state.isDestroyed){var t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=O(this.state,this.popper,this.reference),t.placement=T(this.options.placement,t.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),t.originalPlacement=t.placement,t.offsets.popper=N(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position="absolute",t=M(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}}function I(t,e){return t.some(function(t){var n=t.name;return t.enabled&&n===e})}function A(t){for(var e=[!1,"ms","Webkit","Moz","O"],n=t.charAt(0).toUpperCase()+t.slice(1),r=0;r<e.length-1;r++){var o=e[r],i=o?""+o+n:t;if(void 0!==document.body.style[i])return i}return null}function R(){return this.state.isDestroyed=!0,I(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.left="",this.popper.style.position="",this.popper.style.top="",this.popper.style[A("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function D(t){var e=t.ownerDocument;return e?e.defaultView:window}function F(t,e,n,r){var o="BODY"===t.nodeName,i=o?t.ownerDocument.defaultView:t;i.addEventListener(e,n,{passive:!0}),o||F(u(i.parentNode),e,n,r),r.push(i)}function L(t,e,n,r){n.updateBound=r,D(t).addEventListener("resize",n.updateBound,{passive:!0});var o=u(t);return F(o,"scroll",n.updateBound,n.scrollParents),n.scrollElement=o,n.eventsEnabled=!0,n}function z(){this.state.eventsEnabled||(this.state=L(this.reference,this.options,this.state,this.scheduleUpdate))}function U(t,e){return D(t).removeEventListener("resize",e.updateBound),e.scrollParents.forEach(function(t){t.removeEventListener("scroll",e.updateBound)}),e.updateBound=null,e.scrollParents=[],e.scrollElement=null,e.eventsEnabled=!1,e}function W(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=U(this.reference,this.state))}function B(t){return""!==t&&!isNaN(parseFloat(t))&&isFinite(t)}function q(t,e){Object.keys(e).forEach(function(n){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&B(e[n])&&(r="px"),t.style[n]=e[n]+r})}function V(t,e){Object.keys(e).forEach(function(n){!1!==e[n]?t.setAttribute(n,e[n]):t.removeAttribute(n)})}function G(t){return q(t.instance.popper,t.styles),V(t.instance.popper,t.attributes),t.arrowElement&&Object.keys(t.arrowStyles).length&&q(t.arrowElement,t.arrowStyles),t}function H(t,e,n,r,o){var i=O(o,e,t),a=T(n.placement,i,e,t,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return e.setAttribute("x-placement",a),q(e,{position:"absolute"}),n}function K(t,e){var n=e.x,r=e.y,o=t.offsets.popper,i=C(t.instance.modifiers,function(t){return"applyStyle"===t.name}).gpuAcceleration;void 0!==i&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a=void 0!==i?i:e.gpuAcceleration,u=s(t.instance.popper),c=g(u),l={position:o.position},f={left:Math.floor(o.left),top:Math.floor(o.top),bottom:Math.floor(o.bottom),right:Math.floor(o.right)},p="bottom"===n?"top":"bottom",d="right"===r?"left":"right",h=A("transform"),v=void 0,m=void 0;if(m="bottom"===p?-c.height+f.bottom:f.top,v="right"===d?-c.width+f.right:f.left,a&&h)l[h]="translate3d("+v+"px, "+m+"px, 0)",l[p]=0,l[d]=0,l.willChange="transform";else{var y="bottom"===p?-1:1,_="right"===d?-1:1;l[p]=m*y,l[d]=v*_,l.willChange=p+", "+d}var b={"x-placement":t.placement};return t.attributes=gt({},b,t.attributes),t.styles=gt({},l,t.styles),t.arrowStyles=gt({},t.offsets.arrow,t.arrowStyles),t}function $(t,e,n){var r=C(t,function(t){return t.name===e}),o=!!r&&t.some(function(t){return t.name===n&&t.enabled&&t.order<r.order});if(!o){var i="`"+e+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+i+" modifier in order to work, be sure to include it before "+i+"!")}return o}function Y(t,e){var n;if(!$(t.instance.modifiers,"arrow","keepTogether"))return t;var r=e.element;if("string"==typeof r){if(!(r=t.instance.popper.querySelector(r)))return t}else if(!t.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),t;var o=t.placement.split("-")[0],a=t.offsets,u=a.popper,s=a.reference,c=-1!==["left","right"].indexOf(o),l=c?"height":"width",f=c?"Top":"Left",p=f.toLowerCase(),d=c?"left":"top",h=c?"bottom":"right",v=k(r)[l];s[h]-v<u[p]&&(t.offsets.popper[p]-=u[p]-(s[h]-v)),s[p]+v>u[h]&&(t.offsets.popper[p]+=s[p]+v-u[h]),t.offsets.popper=y(t.offsets.popper);var m=s[p]+s[l]/2-v/2,g=i(t.instance.popper),_=parseFloat(g["margin"+f],10),b=parseFloat(g["border"+f+"Width"],10),w=m-t.offsets.popper[p]-_-b;return w=Math.max(Math.min(u[l]-v,w),0),t.arrowElement=r,t.offsets.arrow=(n={},yt(n,p,Math.round(w)),yt(n,d,""),n),t}function X(t){return"end"===t?"start":"start"===t?"end":t}function J(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=bt.indexOf(t),r=bt.slice(n+1).concat(bt.slice(0,n));return e?r.reverse():r}function Q(t,e){if(I(t.instance.modifiers,"inner"))return t;if(t.flipped&&t.placement===t.originalPlacement)return t;var n=x(t.instance.popper,t.instance.reference,e.padding,e.boundariesElement),r=t.placement.split("-")[0],o=S(r),i=t.placement.split("-")[1]||"",a=[];switch(e.behavior){case wt.FLIP:a=[r,o];break;case wt.CLOCKWISE:a=J(r);break;case wt.COUNTERCLOCKWISE:a=J(r,!0);break;default:a=e.behavior}return a.forEach(function(u,s){if(r!==u||a.length===s+1)return t;r=t.placement.split("-")[0],o=S(r);var c=t.offsets.popper,l=t.offsets.reference,f=Math.floor,p="left"===r&&f(c.right)>f(l.left)||"right"===r&&f(c.left)<f(l.right)||"top"===r&&f(c.bottom)>f(l.top)||"bottom"===r&&f(c.top)<f(l.bottom),d=f(c.left)<f(n.left),h=f(c.right)>f(n.right),v=f(c.top)<f(n.top),m=f(c.bottom)>f(n.bottom),y="left"===r&&d||"right"===r&&h||"top"===r&&v||"bottom"===r&&m,g=-1!==["top","bottom"].indexOf(r),_=!!e.flipVariations&&(g&&"start"===i&&d||g&&"end"===i&&h||!g&&"start"===i&&v||!g&&"end"===i&&m);(p||y||_)&&(t.flipped=!0,(p||y)&&(r=a[s+1]),_&&(i=X(i)),t.placement=r+(i?"-"+i:""),t.offsets.popper=gt({},t.offsets.popper,N(t.instance.popper,t.offsets.reference,t.placement)),t=M(t.instance.modifiers,t,"flip"))}),t}function Z(t){var e=t.offsets,n=e.popper,r=e.reference,o=t.placement.split("-")[0],i=Math.floor,a=-1!==["top","bottom"].indexOf(o),u=a?"right":"bottom",s=a?"left":"top",c=a?"width":"height";return n[u]<i(r[s])&&(t.offsets.popper[s]=i(r[s])-n[c]),n[s]>i(r[u])&&(t.offsets.popper[s]=i(r[u])),t}function tt(t,e,n,r){var o=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),i=+o[1],a=o[2];if(!i)return t;if(0===a.indexOf("%")){var u=void 0;switch(a){case"%p":u=n;break;case"%":case"%r":default:u=r}return y(u)[e]/100*i}if("vh"===a||"vw"===a){return("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*i}return i}function et(t,e,n,r){var o=[0,0],i=-1!==["right","left"].indexOf(r),a=t.split(/(\+|\-)/).map(function(t){return t.trim()}),u=a.indexOf(C(a,function(t){return-1!==t.search(/,|\s/)}));a[u]&&-1===a[u].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var s=/\s*,\s*|\s+/,c=-1!==u?[a.slice(0,u).concat([a[u].split(s)[0]]),[a[u].split(s)[1]].concat(a.slice(u+1))]:[a];return c=c.map(function(t,r){var o=(1===r?!i:i)?"height":"width",a=!1;return t.reduce(function(t,e){return""===t[t.length-1]&&-1!==["+","-"].indexOf(e)?(t[t.length-1]=e,a=!0,t):a?(t[t.length-1]+=e,a=!1,t):t.concat(e)},[]).map(function(t){return tt(t,o,e,n)})}),c.forEach(function(t,e){t.forEach(function(n,r){B(n)&&(o[e]+=n*("-"===t[r-1]?-1:1))})}),o}function nt(t,e){var n=e.offset,r=t.placement,o=t.offsets,i=o.popper,a=o.reference,u=r.split("-")[0],s=void 0;return s=B(+n)?[+n,0]:et(n,i,a,u),"left"===u?(i.top+=s[0],i.left-=s[1]):"right"===u?(i.top+=s[0],i.left+=s[1]):"top"===u?(i.left+=s[0],i.top-=s[1]):"bottom"===u&&(i.left+=s[0],i.top+=s[1]),t.popper=i,t}function rt(t,e){var n=e.boundariesElement||s(t.instance.popper);t.instance.reference===n&&(n=s(n));var r=x(t.instance.popper,t.instance.reference,e.padding,n);e.boundaries=r;var o=e.priority,i=t.offsets.popper,a={primary:function(t){var n=i[t];return i[t]<r[t]&&!e.escapeWithReference&&(n=Math.max(i[t],r[t])),yt({},t,n)},secondary:function(t){var n="right"===t?"left":"top",o=i[n];return i[t]>r[t]&&!e.escapeWithReference&&(o=Math.min(i[n],r[t]-("right"===t?i.width:i.height))),yt({},n,o)}};return o.forEach(function(t){var e=-1!==["left","top"].indexOf(t)?"primary":"secondary";i=gt({},i,a[e](t))}),t.offsets.popper=i,t}function ot(t){var e=t.placement,n=e.split("-")[0],r=e.split("-")[1];if(r){var o=t.offsets,i=o.reference,a=o.popper,u=-1!==["bottom","top"].indexOf(n),s=u?"left":"top",c=u?"width":"height",l={start:yt({},s,i[s]),end:yt({},s,i[s]+i[c]-a[c])};t.offsets.popper=gt({},a,l[r])}return t}function it(t){if(!$(t.instance.modifiers,"hide","preventOverflow"))return t;var e=t.offsets.reference,n=C(t.instance.modifiers,function(t){return"preventOverflow"===t.name}).boundaries;if(e.bottom<n.top||e.left>n.right||e.top>n.bottom||e.right<n.left){if(!0===t.hide)return t;t.hide=!0,t.attributes["x-out-of-boundaries"]=""}else{if(!1===t.hide)return t;t.hide=!1,t.attributes["x-out-of-boundaries"]=!1}return t}function at(t){var e=t.placement,n=e.split("-")[0],r=t.offsets,o=r.popper,i=r.reference,a=-1!==["left","right"].indexOf(n),u=-1===["top","left"].indexOf(n);return o[a?"left":"top"]=i[n]-(u?o[a?"width":"height"]:0),t.placement=S(e),t.offsets.popper=y(o),t}for(var ut="undefined"!=typeof window&&"undefined"!=typeof document,st=["Edge","Trident","Firefox"],ct=0,lt=0;lt<st.length;lt+=1)if(ut&&navigator.userAgent.indexOf(st[lt])>=0){ct=1;break}var ft=ut&&window.Promise,pt=ft?n:r,dt=void 0,ht=function(){return void 0===dt&&(dt=-1!==navigator.appVersion.indexOf("MSIE 10")),dt},vt=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},mt=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),yt=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},gt=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},_t=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],bt=_t.slice(3),wt={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"},xt={shift:{order:100,enabled:!0,fn:ot},offset:{order:200,enabled:!0,fn:nt,offset:0},preventOverflow:{order:300,enabled:!0,fn:rt,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:Z},arrow:{order:500,enabled:!0,fn:Y,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:Q,behavior:"flip",padding:5,boundariesElement:"viewport"},inner:{order:700,enabled:!1,fn:at},hide:{order:800,enabled:!0,fn:it},computeStyle:{order:850,enabled:!0,fn:K,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:G,onLoad:H,gpuAcceleration:void 0}},Et={placement:"bottom",eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:xt},Tt=function(){function t(e,n){var r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};vt(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=pt(this.update.bind(this)),this.options=gt({},t.Defaults,i),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(gt({},t.Defaults.modifiers,i.modifiers)).forEach(function(e){r.options.modifiers[e]=gt({},t.Defaults.modifiers[e]||{},i.modifiers?i.modifiers[e]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(t){return gt({name:t},r.options.modifiers[t])}).sort(function(t,e){return t.order-e.order}),this.modifiers.forEach(function(t){t.enabled&&o(t.onLoad)&&t.onLoad(r.reference,r.popper,r.options,t,r.state)}),this.update();var a=this.options.eventsEnabled;a&&this.enableEventListeners(),this.state.eventsEnabled=a}return mt(t,[{key:"update",value:function(){return j.call(this)}},{key:"destroy",value:function(){return R.call(this)}},{key:"enableEventListeners",value:function(){return z.call(this)}},{key:"disableEventListeners",value:function(){return W.call(this)}}]),t}();Tt.Utils=("undefined"!=typeof window?window:t).PopperUtils,Tt.placements=_t,Tt.Defaults=Et,e.default=Tt}.call(e,n(7))},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";function r(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}Object.defineProperty(e,"__esModule",{value:!0});var o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i=n(0),a=n(1),u=function(t){return t&&t.__esModule?t:{default:t}}(a),s=function(t,e){var n=t.component,a=void 0===n?"span":n,u=t.innerRef,s=t.children,c=r(t,["component","innerRef","children"]),l=e.popper,f=function(t){l.setArrowNode(t),"function"==typeof u&&u(t)},p=l.getArrowStyle();if("function"==typeof s){return s({arrowProps:{ref:f,style:p},restProps:c})}var d=o({},c,{style:o({},p,c.style)});return"string"==typeof a?d.ref=f:d.innerRef=f,(0,i.createElement)(a,d,s)};s.contextTypes={popper:u.default.object.isRequired},s.propTypes={component:u.default.oneOfType([u.default.node,u.default.func]),innerRef:u.default.func,children:u.default.oneOfType([u.default.node,u.default.func])},e.default=s}])})},function(t,e){function n(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function r(t){return!!t&&"object"==typeof t}function o(t){return"symbol"==typeof t||r(t)&&h.call(t)==u}function i(t){if("number"==typeof t)return t;if(o(t))return a;if(n(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=n(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(s,"");var r=l.test(t);return r||f.test(t)?p(t.slice(2),r?2:8):c.test(t)?a:+t}var a=NaN,u="[object Symbol]",s=/^\s+|\s+$/g,c=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,f=/^0o[0-7]+$/i,p=parseInt,d=Object.prototype,h=d.toString;t.exports=i},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var o=n(165),i=r(o),a=n(169),u=r(a),s=n(100),c=r(s),l=n(97),f=r(l);t.exports={Transition:f.default,TransitionGroup:c.default,ReplaceTransition:u.default,CSSTransition:i.default}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var u=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},s=n(30),c=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(s),l=n(166),f=r(l),p=n(168),d=r(p),h=n(22),v=r(h),m=n(97),y=r(m),g=n(99),_=function(t,e){return t&&e&&e.split(" ").forEach(function(e){return(0,f.default)(t,e)})},b=function(t,e){return t&&e&&e.split(" ").forEach(function(e){return(0,d.default)(t,e)})},w=(u({},y.default.propTypes,{classNames:g.classNamesShape,onEnter:c.func,onEntering:c.func,onEntered:c.func,onExit:c.func,onExiting:c.func,onExited:c.func}),function(t){function e(){var n,r,a;o(this,e);for(var u=arguments.length,s=Array(u),c=0;c<u;c++)s[c]=arguments[c];return n=r=i(this,t.call.apply(t,[this].concat(s))),r.onEnter=function(t,e){var n=r.getClassNames(e?"appear":"enter"),o=n.className;r.removeClasses(t,"exit"),_(t,o),r.props.onEnter&&r.props.onEnter(t)},r.onEntering=function(t,e){var n=r.getClassNames(e?"appear":"enter"),o=n.activeClassName;r.reflowAndAddClass(t,o),r.props.onEntering&&r.props.onEntering(t)},r.onEntered=function(t,e){var n=r.getClassNames("enter"),o=n.doneClassName;r.removeClasses(t,e?"appear":"enter"),_(t,o),r.props.onEntered&&r.props.onEntered(t)},r.onExit=function(t){var e=r.getClassNames("exit"),n=e.className;r.removeClasses(t,"appear"),r.removeClasses(t,"enter"),_(t,n),r.props.onExit&&r.props.onExit(t)},r.onExiting=function(t){var e=r.getClassNames("exit"),n=e.activeClassName;r.reflowAndAddClass(t,n),r.props.onExiting&&r.props.onExiting(t)},r.onExited=function(t){var e=r.getClassNames("exit"),n=e.doneClassName;r.removeClasses(t,"exit"),_(t,n),r.props.onExited&&r.props.onExited(t)},r.getClassNames=function(t){var e=r.props.classNames,n="string"!=typeof e?e[t]:e+"-"+t;return{className:n,activeClassName:"string"!=typeof e?e[t+"Active"]:n+"-active",doneClassName:"string"!=typeof e?e[t+"Done"]:n+"-done"}},a=n,i(r,a)}return a(e,t),e.prototype.removeClasses=function(t,e){var n=this.getClassNames(e),r=n.className,o=n.activeClassName,i=n.doneClassName;r&&b(t,r),o&&b(t,o),i&&b(t,i)},e.prototype.reflowAndAddClass=function(t,e){e&&(t&&t.scrollTop,_(t,e))},e.prototype.render=function(){var t=u({},this.props);return delete t.classNames,v.default.createElement(y.default,u({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},e}(v.default.Component));w.propTypes={},e.default=w,t.exports=e.default},function(t,e,n){"use strict";function r(t,e){t.classList?t.classList.add(e):(0,i.default)(t,e)||("string"==typeof t.className?t.className=t.className+" "+e:t.setAttribute("class",(t.className&&t.className.baseVal||"")+" "+e))}Object.defineProperty(e,"__esModule",{value:!0}),e.default=r;var o=n(167),i=function(t){return t&&t.__esModule?t:{default:t}}(o);t.exports=e.default},function(t,e,n){"use strict";function r(t,e){return t.classList?!!e&&t.classList.contains(e):-1!==(" "+(t.className.baseVal||t.className)+" ").indexOf(" "+e+" ")}Object.defineProperty(e,"__esModule",{value:!0}),e.default=r,t.exports=e.default},function(t,e,n){"use strict";function r(t,e){return t.replace(new RegExp("(^|\\s)"+e+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}t.exports=function(t,e){t.classList?t.classList.remove(e):"string"==typeof t.className?t.className=r(t.className,e):t.setAttribute("class",r(t.className&&t.className.baseVal||"",e))}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=n(30),c=r(s),l=n(22),f=r(l),p=n(51),d=n(100),h=r(d),v=(c.default.bool.isRequired,function(t){function e(){var n,r,o;i(this,e);for(var u=arguments.length,s=Array(u),c=0;c<u;c++)s[c]=arguments[c];return n=r=a(this,t.call.apply(t,[this].concat(s))),m.call(r),o=n,a(r,o)}return u(e,t),e.prototype.handleLifecycle=function(t,e,n){var r,o=this.props.children,i=f.default.Children.toArray(o)[e];i.props[t]&&(r=i.props)[t].apply(r,n),this.props[t]&&this.props[t]((0,p.findDOMNode)(this))},e.prototype.render=function(){var t=this.props,e=t.children,n=t.in,r=o(t,["children","in"]),i=f.default.Children.toArray(e),a=i[0],u=i[1];return delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,f.default.createElement(h.default,r,n?f.default.cloneElement(a,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):f.default.cloneElement(u,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},e}(f.default.Component)),m=function(){var t=this;this.handleEnter=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEnter",0,n)},this.handleEntering=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntering",0,n)},this.handleEntered=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntered",0,n)},this.handleExit=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExit",1,n)},this.handleExiting=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExiting",1,n)},this.handleExited=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExited",1,n)}};v.propTypes={},e.default=v,t.exports=e.default},function(t,e,n){"use strict";function r(t,e){var n=function(t){return e&&(0,s.isValidElement)(t)?e(t):t},r=Object.create(null);return t&&s.Children.map(t,function(t){return t}).forEach(function(t){r[t.key]=n(t)}),r}function o(t,e){function n(n){return n in e?e[n]:t[n]}t=t||{},e=e||{};var r=Object.create(null),o=[];for(var i in t)i in e?o.length&&(r[i]=o,o=[]):o.push(i);var a=void 0,u={};for(var s in e){if(r[s])for(a=0;a<r[s].length;a++){var c=r[s][a];u[r[s][a]]=n(c)}u[s]=n(s)}for(a=0;a<o.length;a++)u[o[a]]=n(o[a]);return u}function i(t,e,n){return null!=n[e]?n[e]:t.props[e]}function a(t,e){return r(t.children,function(n){return(0,s.cloneElement)(n,{onExited:e.bind(null,n),in:!0,appear:i(n,"appear",t),enter:i(n,"enter",t),exit:i(n,"exit",t)})})}function u(t,e,n){var a=r(t.children),u=o(e,a);return Object.keys(u).forEach(function(r){var o=u[r];if((0,s.isValidElement)(o)){var c=r in e,l=r in a,f=e[r],p=(0,s.isValidElement)(f)&&!f.props.in;!l||c&&!p?l||!c||p?l&&c&&(0,s.isValidElement)(f)&&(u[r]=(0,s.cloneElement)(o,{onExited:n.bind(null,o),in:f.props.in,exit:i(o,"exit",t),enter:i(o,"enter",t)})):u[r]=(0,s.cloneElement)(o,{in:!1}):u[r]=(0,s.cloneElement)(o,{onExited:n.bind(null,o),in:!0,exit:i(o,"exit",t),enter:i(o,"enter",t)})}}),u}e.__esModule=!0,e.getChildMapping=r,e.mergeChildMappings=o,e.getInitialChildMapping=a,e.getNextChildMapping=u;var s=n(22)},function(t,e,n){!function(e,n){t.exports=n()}(0,function(){"use strict";function t(t,e){e&&(t.prototype=Object.create(e.prototype)),t.prototype.constructor=t}function e(t){return i(t)?t:C(t)}function n(t){return a(t)?t:P(t)}function r(t){return u(t)?t:M(t)}function o(t){return i(t)&&!s(t)?t:j(t)}function i(t){return!(!t||!t[cn])}function a(t){return!(!t||!t[ln])}function u(t){return!(!t||!t[fn])}function s(t){return a(t)||u(t)}function c(t){return!(!t||!t[pn])}function l(t){return t.value=!1,t}function f(t){t&&(t.value=!0)}function p(){}function d(t,e){e=e||0;for(var n=Math.max(0,t.length-e),r=new Array(n),o=0;o<n;o++)r[o]=t[o+e];return r}function h(t){return void 0===t.size&&(t.size=t.__iterate(m)),t.size}function v(t,e){if("number"!=typeof e){var n=e>>>0;if(""+n!==e||4294967295===n)return NaN;e=n}return e<0?h(t)+e:e}function m(){return!0}function y(t,e,n){return(0===t||void 0!==n&&t<=-n)&&(void 0===e||void 0!==n&&e>=n)}function g(t,e){return b(t,e,0)}function _(t,e){return b(t,e,e)}function b(t,e,n){return void 0===t?n:t<0?Math.max(0,e+t):void 0===e?t:Math.min(e,t)}function w(t){this.next=t}function x(t,e,n,r){var o=0===t?e:1===t?n:[e,n];return r?r.value=o:r={value:o,done:!1},r}function E(){return{value:void 0,done:!0}}function T(t){return!!S(t)}function O(t){return t&&"function"==typeof t.next}function k(t){var e=S(t);return e&&e.call(t)}function S(t){var e=t&&(xn&&t[xn]||t[En]);if("function"==typeof e)return e}function N(t){return t&&"number"==typeof t.length}function C(t){return null===t||void 0===t?L():i(t)?t.toSeq():W(t)}function P(t){return null===t||void 0===t?L().toKeyedSeq():i(t)?a(t)?t.toSeq():t.fromEntrySeq():z(t)}function M(t){return null===t||void 0===t?L():i(t)?a(t)?t.entrySeq():t.toIndexedSeq():U(t)}function j(t){return(null===t||void 0===t?L():i(t)?a(t)?t.entrySeq():t:U(t)).toSetSeq()}function I(t){this._array=t,this.size=t.length}function A(t){var e=Object.keys(t);this._object=t,this._keys=e,this.size=e.length}function R(t){this._iterable=t,this.size=t.length||t.size}function D(t){this._iterator=t,this._iteratorCache=[]}function F(t){return!(!t||!t[On])}function L(){return kn||(kn=new I([]))}function z(t){var e=Array.isArray(t)?new I(t).fromEntrySeq():O(t)?new D(t).fromEntrySeq():T(t)?new R(t).fromEntrySeq():"object"==typeof t?new A(t):void 0;if(!e)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+t);return e}function U(t){var e=B(t);if(!e)throw new TypeError("Expected Array or iterable object of values: "+t);return e}function W(t){var e=B(t)||"object"==typeof t&&new A(t);if(!e)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+t);return e}function B(t){return N(t)?new I(t):O(t)?new D(t):T(t)?new R(t):void 0}function q(t,e,n,r){var o=t._cache;if(o){for(var i=o.length-1,a=0;a<=i;a++){var u=o[n?i-a:a];if(!1===e(u[1],r?u[0]:a,t))return a+1}return a}return t.__iterateUncached(e,n)}function V(t,e,n,r){var o=t._cache;if(o){var i=o.length-1,a=0;return new w(function(){var t=o[n?i-a:a];return a++>i?E():x(e,r?t[0]:a-1,t[1])})}return t.__iteratorUncached(e,n)}function G(t,e){return e?H(e,t,"",{"":t}):K(t)}function H(t,e,n,r){return Array.isArray(e)?t.call(r,n,M(e).map(function(n,r){return H(t,n,r,e)})):$(e)?t.call(r,n,P(e).map(function(n,r){return H(t,n,r,e)})):e}function K(t){return Array.isArray(t)?M(t).map(K).toList():$(t)?P(t).map(K).toMap():t}function $(t){return t&&(t.constructor===Object||void 0===t.constructor)}function Y(t,e){if(t===e||t!==t&&e!==e)return!0;if(!t||!e)return!1;if("function"==typeof t.valueOf&&"function"==typeof e.valueOf){if(t=t.valueOf(),e=e.valueOf(),t===e||t!==t&&e!==e)return!0;if(!t||!e)return!1}return!("function"!=typeof t.equals||"function"!=typeof e.equals||!t.equals(e))}function X(t,e){if(t===e)return!0;if(!i(e)||void 0!==t.size&&void 0!==e.size&&t.size!==e.size||void 0!==t.__hash&&void 0!==e.__hash&&t.__hash!==e.__hash||a(t)!==a(e)||u(t)!==u(e)||c(t)!==c(e))return!1;if(0===t.size&&0===e.size)return!0;var n=!s(t);if(c(t)){var r=t.entries();return e.every(function(t,e){var o=r.next().value;return o&&Y(o[1],t)&&(n||Y(o[0],e))})&&r.next().done}var o=!1;if(void 0===t.size)if(void 0===e.size)"function"==typeof t.cacheResult&&t.cacheResult();else{o=!0;var l=t;t=e,e=l}var f=!0,p=e.__iterate(function(e,r){if(n?!t.has(e):o?!Y(e,t.get(r,mn)):!Y(t.get(r,mn),e))return f=!1,!1});return f&&t.size===p}function J(t,e){if(!(this instanceof J))return new J(t,e);if(this._value=t,this.size=void 0===e?1/0:Math.max(0,e),0===this.size){if(Sn)return Sn;Sn=this}}function Q(t,e){if(!t)throw new Error(e)}function Z(t,e,n){if(!(this instanceof Z))return new Z(t,e,n);if(Q(0!==n,"Cannot step a Range by 0"),t=t||0,void 0===e&&(e=1/0),n=void 0===n?1:Math.abs(n),e<t&&(n=-n),this._start=t,this._end=e,this._step=n,this.size=Math.max(0,Math.ceil((e-t)/n-1)+1),0===this.size){if(Nn)return Nn;Nn=this}}function tt(){throw TypeError("Abstract")}function et(){}function nt(){}function rt(){}function ot(t){return t>>>1&1073741824|3221225471&t}function it(t){if(!1===t||null===t||void 0===t)return 0;if("function"==typeof t.valueOf&&(!1===(t=t.valueOf())||null===t||void 0===t))return 0;if(!0===t)return 1;var e=typeof t;if("number"===e){if(t!==t||t===1/0)return 0;var n=0|t;for(n!==t&&(n^=4294967295*t);t>4294967295;)t/=4294967295,n^=t;return ot(n)}if("string"===e)return t.length>Dn?at(t):ut(t);if("function"==typeof t.hashCode)return t.hashCode();if("object"===e)return st(t);if("function"==typeof t.toString)return ut(t.toString());throw new Error("Value type "+e+" cannot be hashed.")}function at(t){var e=zn[t];return void 0===e&&(e=ut(t),Ln===Fn&&(Ln=0,zn={}),Ln++,zn[t]=e),e}function ut(t){for(var e=0,n=0;n<t.length;n++)e=31*e+t.charCodeAt(n)|0;return ot(e)}function st(t){var e;if(In&&void 0!==(e=Cn.get(t)))return e;if(void 0!==(e=t[Rn]))return e;if(!jn){if(void 0!==(e=t.propertyIsEnumerable&&t.propertyIsEnumerable[Rn]))return e;if(void 0!==(e=ct(t)))return e}if(e=++An,1073741824&An&&(An=0),In)Cn.set(t,e);else{if(void 0!==Mn&&!1===Mn(t))throw new Error("Non-extensible objects are not allowed as keys.");if(jn)Object.defineProperty(t,Rn,{enumerable:!1,configurable:!1,writable:!1,value:e});else if(void 0!==t.propertyIsEnumerable&&t.propertyIsEnumerable===t.constructor.prototype.propertyIsEnumerable)t.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},t.propertyIsEnumerable[Rn]=e;else{if(void 0===t.nodeType)throw new Error("Unable to set a non-enumerable property on object.");t[Rn]=e}}return e}function ct(t){if(t&&t.nodeType>0)switch(t.nodeType){case 1:return t.uniqueID;case 9:return t.documentElement&&t.documentElement.uniqueID}}function lt(t){Q(t!==1/0,"Cannot perform this action with an infinite size.")}function ft(t){return null===t||void 0===t?xt():pt(t)&&!c(t)?t:xt().withMutations(function(e){var r=n(t);lt(r.size),r.forEach(function(t,n){return e.set(n,t)})})}function pt(t){return!(!t||!t[Un])}function dt(t,e){this.ownerID=t,this.entries=e}function ht(t,e,n){this.ownerID=t,this.bitmap=e,this.nodes=n}function vt(t,e,n){this.ownerID=t,this.count=e,this.nodes=n}function mt(t,e,n){this.ownerID=t,this.keyHash=e,this.entries=n}function yt(t,e,n){this.ownerID=t,this.keyHash=e,this.entry=n}function gt(t,e,n){this._type=e,this._reverse=n,this._stack=t._root&&bt(t._root)}function _t(t,e){return x(t,e[0],e[1])}function bt(t,e){return{node:t,index:0,__prev:e}}function wt(t,e,n,r){var o=Object.create(Wn);return o.size=t,o._root=e,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function xt(){return Bn||(Bn=wt(0))}function Et(t,e,n){var r,o;if(t._root){var i=l(yn),a=l(gn);if(r=Tt(t._root,t.__ownerID,0,void 0,e,n,i,a),!a.value)return t;o=t.size+(i.value?n===mn?-1:1:0)}else{if(n===mn)return t;o=1,r=new dt(t.__ownerID,[[e,n]])}return t.__ownerID?(t.size=o,t._root=r,t.__hash=void 0,t.__altered=!0,t):r?wt(o,r):xt()}function Tt(t,e,n,r,o,i,a,u){return t?t.update(e,n,r,o,i,a,u):i===mn?t:(f(u),f(a),new yt(e,r,[o,i]))}function Ot(t){return t.constructor===yt||t.constructor===mt}function kt(t,e,n,r,o){if(t.keyHash===r)return new mt(e,r,[t.entry,o]);var i,a=(0===n?t.keyHash:t.keyHash>>>n)&vn,u=(0===n?r:r>>>n)&vn;return new ht(e,1<<a|1<<u,a===u?[kt(t,e,n+dn,r,o)]:(i=new yt(e,r,o),a<u?[t,i]:[i,t]))}function St(t,e,n,r){t||(t=new p);for(var o=new yt(t,it(n),[n,r]),i=0;i<e.length;i++){var a=e[i];o=o.update(t,0,void 0,a[0],a[1])}return o}function Nt(t,e,n,r){for(var o=0,i=0,a=new Array(n),u=0,s=1,c=e.length;u<c;u++,s<<=1){var l=e[u];void 0!==l&&u!==r&&(o|=s,a[i++]=l)}return new ht(t,o,a)}function Ct(t,e,n,r,o){for(var i=0,a=new Array(hn),u=0;0!==n;u++,n>>>=1)a[u]=1&n?e[i++]:void 0;return a[r]=o,new vt(t,i+1,a)}function Pt(t,e,r){for(var o=[],a=0;a<r.length;a++){var u=r[a],s=n(u);i(u)||(s=s.map(function(t){return G(t)})),o.push(s)}return It(t,e,o)}function Mt(t,e,n){return t&&t.mergeDeep&&i(e)?t.mergeDeep(e):Y(t,e)?t:e}function jt(t){return function(e,n,r){if(e&&e.mergeDeepWith&&i(n))return e.mergeDeepWith(t,n);var o=t(e,n,r);return Y(e,o)?e:o}}function It(t,e,n){return n=n.filter(function(t){return 0!==t.size}),0===n.length?t:0!==t.size||t.__ownerID||1!==n.length?t.withMutations(function(t){for(var r=e?function(n,r){t.update(r,mn,function(t){return t===mn?n:e(t,n,r)})}:function(e,n){t.set(n,e)},o=0;o<n.length;o++)n[o].forEach(r)}):t.constructor(n[0])}function At(t,e,n,r){var o=t===mn,i=e.next();if(i.done){var a=o?n:t,u=r(a);return u===a?t:u}Q(o||t&&t.set,"invalid keyPath");var s=i.value,c=o?mn:t.get(s,mn),l=At(c,e,n,r);return l===c?t:l===mn?t.remove(s):(o?xt():t).set(s,l)}function Rt(t){return t-=t>>1&1431655765,t=(858993459&t)+(t>>2&858993459),t=t+(t>>4)&252645135,t+=t>>8,127&(t+=t>>16)}function Dt(t,e,n,r){var o=r?t:d(t);return o[e]=n,o}function Ft(t,e,n,r){var o=t.length+1;if(r&&e+1===o)return t[e]=n,t;for(var i=new Array(o),a=0,u=0;u<o;u++)u===e?(i[u]=n,a=-1):i[u]=t[u+a];return i}function Lt(t,e,n){var r=t.length-1;if(n&&e===r)return t.pop(),t;for(var o=new Array(r),i=0,a=0;a<r;a++)a===e&&(i=1),o[a]=t[a+i];return o}function zt(t){var e=Vt();if(null===t||void 0===t)return e;if(Ut(t))return t;var n=r(t),o=n.size;return 0===o?e:(lt(o),o>0&&o<hn?qt(0,o,dn,null,new Wt(n.toArray())):e.withMutations(function(t){t.setSize(o),n.forEach(function(e,n){return t.set(n,e)})}))}function Ut(t){return!(!t||!t[Hn])}function Wt(t,e){this.array=t,this.ownerID=e}function Bt(t,e){function n(t,e,n){return 0===e?r(t,n):o(t,e,n)}function r(t,n){var r=n===u?s&&s.array:t&&t.array,o=n>i?0:i-n,c=a-n;return c>hn&&(c=hn),function(){if(o===c)return Yn;var t=e?--c:o++;return r&&r[t]}}function o(t,r,o){var u,s=t&&t.array,c=o>i?0:i-o>>r,l=1+(a-o>>r);return l>hn&&(l=hn),function(){for(;;){if(u){var t=u();if(t!==Yn)return t;u=null}if(c===l)return Yn;var i=e?--l:c++;u=n(s&&s[i],r-dn,o+(i<<r))}}}var i=t._origin,a=t._capacity,u=Jt(a),s=t._tail;return n(t._root,t._level,0)}function qt(t,e,n,r,o,i,a){var u=Object.create(Kn);return u.size=e-t,u._origin=t,u._capacity=e,u._level=n,u._root=r,u._tail=o,u.__ownerID=i,u.__hash=a,u.__altered=!1,u}function Vt(){return $n||($n=qt(0,0,dn))}function Gt(t,e,n){if((e=v(t,e))!==e)return t;if(e>=t.size||e<0)return t.withMutations(function(t){e<0?Yt(t,e).set(0,n):Yt(t,0,e+1).set(e,n)});e+=t._origin;var r=t._tail,o=t._root,i=l(gn);return e>=Jt(t._capacity)?r=Ht(r,t.__ownerID,0,e,n,i):o=Ht(o,t.__ownerID,t._level,e,n,i),i.value?t.__ownerID?(t._root=o,t._tail=r,t.__hash=void 0,t.__altered=!0,t):qt(t._origin,t._capacity,t._level,o,r):t}function Ht(t,e,n,r,o,i){var a=r>>>n&vn,u=t&&a<t.array.length;if(!u&&void 0===o)return t;var s;if(n>0){var c=t&&t.array[a],l=Ht(c,e,n-dn,r,o,i);return l===c?t:(s=Kt(t,e),s.array[a]=l,s)}return u&&t.array[a]===o?t:(f(i),s=Kt(t,e),void 0===o&&a===s.array.length-1?s.array.pop():s.array[a]=o,s)}function Kt(t,e){return e&&t&&e===t.ownerID?t:new Wt(t?t.array.slice():[],e)}function $t(t,e){if(e>=Jt(t._capacity))return t._tail;if(e<1<<t._level+dn){for(var n=t._root,r=t._level;n&&r>0;)n=n.array[e>>>r&vn],r-=dn;return n}}function Yt(t,e,n){void 0!==e&&(e|=0),void 0!==n&&(n|=0);var r=t.__ownerID||new p,o=t._origin,i=t._capacity,a=o+e,u=void 0===n?i:n<0?i+n:o+n;if(a===o&&u===i)return t;if(a>=u)return t.clear();for(var s=t._level,c=t._root,l=0;a+l<0;)c=new Wt(c&&c.array.length?[void 0,c]:[],r),s+=dn,l+=1<<s;l&&(a+=l,o+=l,u+=l,i+=l);for(var f=Jt(i),d=Jt(u);d>=1<<s+dn;)c=new Wt(c&&c.array.length?[c]:[],r),s+=dn;var h=t._tail,v=d<f?$t(t,u-1):d>f?new Wt([],r):h;if(h&&d>f&&a<i&&h.array.length){c=Kt(c,r);for(var m=c,y=s;y>dn;y-=dn){var g=f>>>y&vn;m=m.array[g]=Kt(m.array[g],r)}m.array[f>>>dn&vn]=h}if(u<i&&(v=v&&v.removeAfter(r,0,u)),a>=d)a-=d,u-=d,s=dn,c=null,v=v&&v.removeBefore(r,0,a);else if(a>o||d<f){for(l=0;c;){var _=a>>>s&vn;if(_!==d>>>s&vn)break;_&&(l+=(1<<s)*_),s-=dn,c=c.array[_]}c&&a>o&&(c=c.removeBefore(r,s,a-l)),c&&d<f&&(c=c.removeAfter(r,s,d-l)),l&&(a-=l,u-=l)}return t.__ownerID?(t.size=u-a,t._origin=a,t._capacity=u,t._level=s,t._root=c,t._tail=v,t.__hash=void 0,t.__altered=!0,t):qt(a,u,s,c,v)}function Xt(t,e,n){for(var o=[],a=0,u=0;u<n.length;u++){var s=n[u],c=r(s);c.size>a&&(a=c.size),i(s)||(c=c.map(function(t){return G(t)})),o.push(c)}return a>t.size&&(t=t.setSize(a)),It(t,e,o)}function Jt(t){return t<hn?0:t-1>>>dn<<dn}function Qt(t){return null===t||void 0===t?ee():Zt(t)?t:ee().withMutations(function(e){var r=n(t);lt(r.size),r.forEach(function(t,n){return e.set(n,t)})})}function Zt(t){return pt(t)&&c(t)}function te(t,e,n,r){var o=Object.create(Qt.prototype);return o.size=t?t.size:0,o._map=t,o._list=e,o.__ownerID=n,o.__hash=r,o}function ee(){return Xn||(Xn=te(xt(),Vt()))}function ne(t,e,n){var r,o,i=t._map,a=t._list,u=i.get(e),s=void 0!==u;if(n===mn){if(!s)return t;a.size>=hn&&a.size>=2*i.size?(o=a.filter(function(t,e){return void 0!==t&&u!==e}),r=o.toKeyedSeq().map(function(t){return t[0]}).flip().toMap(),t.__ownerID&&(r.__ownerID=o.__ownerID=t.__ownerID)):(r=i.remove(e),o=u===a.size-1?a.pop():a.set(u,void 0))}else if(s){if(n===a.get(u)[1])return t;r=i,o=a.set(u,[e,n])}else r=i.set(e,a.size),o=a.set(a.size,[e,n]);return t.__ownerID?(t.size=r.size,t._map=r,t._list=o,t.__hash=void 0,t):te(r,o)}function re(t,e){this._iter=t,this._useKeys=e,this.size=t.size}function oe(t){this._iter=t,this.size=t.size}function ie(t){this._iter=t,this.size=t.size}function ae(t){this._iter=t,this.size=t.size}function ue(t){var e=Ne(t);return e._iter=t,e.size=t.size,e.flip=function(){return t},e.reverse=function(){var e=t.reverse.apply(this);return e.flip=function(){return t.reverse()},e},e.has=function(e){return t.includes(e)},e.includes=function(e){return t.has(e)},e.cacheResult=Ce,e.__iterateUncached=function(e,n){var r=this;return t.__iterate(function(t,n){return!1!==e(n,t,r)},n)},e.__iteratorUncached=function(e,n){if(e===wn){var r=t.__iterator(e,n);return new w(function(){var t=r.next();if(!t.done){var e=t.value[0];t.value[0]=t.value[1],t.value[1]=e}return t})}return t.__iterator(e===bn?_n:bn,n)},e}function se(t,e,n){var r=Ne(t);return r.size=t.size,r.has=function(e){return t.has(e)},r.get=function(r,o){var i=t.get(r,mn);return i===mn?o:e.call(n,i,r,t)},r.__iterateUncached=function(r,o){var i=this;return t.__iterate(function(t,o,a){return!1!==r(e.call(n,t,o,a),o,i)},o)},r.__iteratorUncached=function(r,o){var i=t.__iterator(wn,o);return new w(function(){var o=i.next();if(o.done)return o;var a=o.value,u=a[0];return x(r,u,e.call(n,a[1],u,t),o)})},r}function ce(t,e){var n=Ne(t);return n._iter=t,n.size=t.size,n.reverse=function(){return t},t.flip&&(n.flip=function(){var e=ue(t);return e.reverse=function(){return t.flip()},e}),n.get=function(n,r){return t.get(e?n:-1-n,r)},n.has=function(n){return t.has(e?n:-1-n)},n.includes=function(e){return t.includes(e)},n.cacheResult=Ce,n.__iterate=function(e,n){var r=this;return t.__iterate(function(t,n){return e(t,n,r)},!n)},n.__iterator=function(e,n){return t.__iterator(e,!n)},n}function le(t,e,n,r){var o=Ne(t);return r&&(o.has=function(r){var o=t.get(r,mn);return o!==mn&&!!e.call(n,o,r,t)},o.get=function(r,o){var i=t.get(r,mn);return i!==mn&&e.call(n,i,r,t)?i:o}),o.__iterateUncached=function(o,i){var a=this,u=0;return t.__iterate(function(t,i,s){if(e.call(n,t,i,s))return u++,o(t,r?i:u-1,a)},i),u},o.__iteratorUncached=function(o,i){var a=t.__iterator(wn,i),u=0;return new w(function(){for(;;){var i=a.next();if(i.done)return i;var s=i.value,c=s[0],l=s[1];if(e.call(n,l,c,t))return x(o,r?c:u++,l,i)}})},o}function fe(t,e,n){var r=ft().asMutable();return t.__iterate(function(o,i){r.update(e.call(n,o,i,t),0,function(t){return t+1})}),r.asImmutable()}function pe(t,e,n){var r=a(t),o=(c(t)?Qt():ft()).asMutable();t.__iterate(function(i,a){o.update(e.call(n,i,a,t),function(t){return t=t||[],t.push(r?[a,i]:i),t})});var i=Se(t);return o.map(function(e){return Te(t,i(e))})}function de(t,e,n,r){var o=t.size;if(void 0!==e&&(e|=0),void 0!==n&&(n===1/0?n=o:n|=0),y(e,n,o))return t;var i=g(e,o),a=_(n,o);if(i!==i||a!==a)return de(t.toSeq().cacheResult(),e,n,r);var u,s=a-i;s===s&&(u=s<0?0:s);var c=Ne(t);return c.size=0===u?u:t.size&&u||void 0,!r&&F(t)&&u>=0&&(c.get=function(e,n){return e=v(this,e),e>=0&&e<u?t.get(e+i,n):n}),c.__iterateUncached=function(e,n){var o=this;if(0===u)return 0;if(n)return this.cacheResult().__iterate(e,n);var a=0,s=!0,c=0;return t.__iterate(function(t,n){if(!s||!(s=a++<i))return c++,!1!==e(t,r?n:c-1,o)&&c!==u}),c},c.__iteratorUncached=function(e,n){if(0!==u&&n)return this.cacheResult().__iterator(e,n);var o=0!==u&&t.__iterator(e,n),a=0,s=0;return new w(function(){for(;a++<i;)o.next();if(++s>u)return E();var t=o.next();return r||e===bn?t:e===_n?x(e,s-1,void 0,t):x(e,s-1,t.value[1],t)})},c}function he(t,e,n){var r=Ne(t);return r.__iterateUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterate(r,o);var a=0;return t.__iterate(function(t,o,u){return e.call(n,t,o,u)&&++a&&r(t,o,i)}),a},r.__iteratorUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterator(r,o);var a=t.__iterator(wn,o),u=!0;return new w(function(){if(!u)return E();var t=a.next();if(t.done)return t;var o=t.value,s=o[0],c=o[1];return e.call(n,c,s,i)?r===wn?t:x(r,s,c,t):(u=!1,E())})},r}function ve(t,e,n,r){var o=Ne(t);return o.__iterateUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterate(o,i);var u=!0,s=0;return t.__iterate(function(t,i,c){if(!u||!(u=e.call(n,t,i,c)))return s++,o(t,r?i:s-1,a)}),s},o.__iteratorUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterator(o,i);var u=t.__iterator(wn,i),s=!0,c=0;return new w(function(){var t,i,l;do{if(t=u.next(),t.done)return r||o===bn?t:o===_n?x(o,c++,void 0,t):x(o,c++,t.value[1],t);var f=t.value;i=f[0],l=f[1],s&&(s=e.call(n,l,i,a))}while(s);return o===wn?t:x(o,i,l,t)})},o}function me(t,e){var r=a(t),o=[t].concat(e).map(function(t){return i(t)?r&&(t=n(t)):t=r?z(t):U(Array.isArray(t)?t:[t]),t}).filter(function(t){return 0!==t.size});if(0===o.length)return t;if(1===o.length){var s=o[0];if(s===t||r&&a(s)||u(t)&&u(s))return s}var c=new I(o);return r?c=c.toKeyedSeq():u(t)||(c=c.toSetSeq()),c=c.flatten(!0),c.size=o.reduce(function(t,e){if(void 0!==t){var n=e.size;if(void 0!==n)return t+n}},0),c}function ye(t,e,n){var r=Ne(t);return r.__iterateUncached=function(r,o){function a(t,c){var l=this;t.__iterate(function(t,o){return(!e||c<e)&&i(t)?a(t,c+1):!1===r(t,n?o:u++,l)&&(s=!0),!s},o)}var u=0,s=!1;return a(t,0),u},r.__iteratorUncached=function(r,o){var a=t.__iterator(r,o),u=[],s=0;return new w(function(){for(;a;){var t=a.next();if(!1===t.done){var c=t.value;if(r===wn&&(c=c[1]),e&&!(u.length<e)||!i(c))return n?t:x(r,s++,c,t);u.push(a),a=c.__iterator(r,o)}else a=u.pop()}return E()})},r}function ge(t,e,n){var r=Se(t);return t.toSeq().map(function(o,i){return r(e.call(n,o,i,t))}).flatten(!0)}function _e(t,e){var n=Ne(t);return n.size=t.size&&2*t.size-1,n.__iterateUncached=function(n,r){var o=this,i=0;return t.__iterate(function(t,r){return(!i||!1!==n(e,i++,o))&&!1!==n(t,i++,o)},r),i},n.__iteratorUncached=function(n,r){var o,i=t.__iterator(bn,r),a=0;return new w(function(){return(!o||a%2)&&(o=i.next(),o.done)?o:a%2?x(n,a++,e):x(n,a++,o.value,o)})},n}function be(t,e,n){e||(e=Pe);var r=a(t),o=0,i=t.toSeq().map(function(e,r){return[r,e,o++,n?n(e,r,t):e]}).toArray();return i.sort(function(t,n){return e(t[3],n[3])||t[2]-n[2]}).forEach(r?function(t,e){i[e].length=2}:function(t,e){i[e]=t[1]}),r?P(i):u(t)?M(i):j(i)}function we(t,e,n){if(e||(e=Pe),n){var r=t.toSeq().map(function(e,r){return[e,n(e,r,t)]}).reduce(function(t,n){return xe(e,t[1],n[1])?n:t});return r&&r[0]}return t.reduce(function(t,n){return xe(e,t,n)?n:t})}function xe(t,e,n){var r=t(n,e);return 0===r&&n!==e&&(void 0===n||null===n||n!==n)||r>0}function Ee(t,n,r){var o=Ne(t);return o.size=new I(r).map(function(t){return t.size}).min(),o.__iterate=function(t,e){for(var n,r=this.__iterator(bn,e),o=0;!(n=r.next()).done&&!1!==t(n.value,o++,this););return o},o.__iteratorUncached=function(t,o){var i=r.map(function(t){return t=e(t),k(o?t.reverse():t)}),a=0,u=!1;return new w(function(){var e;return u||(e=i.map(function(t){return t.next()}),u=e.some(function(t){return t.done})),u?E():x(t,a++,n.apply(null,e.map(function(t){return t.value})))})},o}function Te(t,e){return F(t)?e:t.constructor(e)}function Oe(t){if(t!==Object(t))throw new TypeError("Expected [K, V] tuple: "+t)}function ke(t){return lt(t.size),h(t)}function Se(t){return a(t)?n:u(t)?r:o}function Ne(t){return Object.create((a(t)?P:u(t)?M:j).prototype)}function Ce(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):C.prototype.cacheResult.call(this)}function Pe(t,e){return t>e?1:t<e?-1:0}function Me(t){var n=k(t);if(!n){if(!N(t))throw new TypeError("Expected iterable or array-like: "+t);n=k(e(t))}return n}function je(t,e){var n,r=function(i){if(i instanceof r)return i;if(!(this instanceof r))return new r(i);if(!n){n=!0;var a=Object.keys(t);Re(o,a),o.size=a.length,o._name=e,o._keys=a,o._defaultValues=t}this._map=ft(i)},o=r.prototype=Object.create(Jn);return o.constructor=r,r}function Ie(t,e,n){var r=Object.create(Object.getPrototypeOf(t));return r._map=e,r.__ownerID=n,r}function Ae(t){return t._name||t.constructor.name||"Record"}function Re(t,e){try{e.forEach(De.bind(void 0,t))}catch(t){}}function De(t,e){Object.defineProperty(t,e,{get:function(){return this.get(e)},set:function(t){Q(this.__ownerID,"Cannot set on an immutable record."),this.set(e,t)}})}function Fe(t){return null===t||void 0===t?We():Le(t)&&!c(t)?t:We().withMutations(function(e){var n=o(t);lt(n.size),n.forEach(function(t){return e.add(t)})})}function Le(t){return!(!t||!t[Qn])}function ze(t,e){return t.__ownerID?(t.size=e.size,t._map=e,t):e===t._map?t:0===e.size?t.__empty():t.__make(e)}function Ue(t,e){var n=Object.create(Zn);return n.size=t?t.size:0,n._map=t,n.__ownerID=e,n}function We(){return tr||(tr=Ue(xt()))}function Be(t){return null===t||void 0===t?Ge():qe(t)?t:Ge().withMutations(function(e){var n=o(t);lt(n.size),n.forEach(function(t){return e.add(t)})})}function qe(t){return Le(t)&&c(t)}function Ve(t,e){var n=Object.create(er);return n.size=t?t.size:0,n._map=t,n.__ownerID=e,n}function Ge(){return nr||(nr=Ve(ee()))}function He(t){return null===t||void 0===t?Ye():Ke(t)?t:Ye().unshiftAll(t)}function Ke(t){return!(!t||!t[rr])}function $e(t,e,n,r){var o=Object.create(or);return o.size=t,o._head=e,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function Ye(){return ir||(ir=$e(0))}function Xe(t,e){var n=function(n){t.prototype[n]=e[n]};return Object.keys(e).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(e).forEach(n),t}function Je(t,e){return e}function Qe(t,e){return[e,t]}function Ze(t){return function(){return!t.apply(this,arguments)}}function tn(t){return function(){return-t.apply(this,arguments)}}function en(t){return"string"==typeof t?JSON.stringify(t):String(t)}function nn(){return d(arguments)}function rn(t,e){return t<e?1:t>e?-1:0}function on(t){if(t.size===1/0)return 0;var e=c(t),n=a(t),r=e?1:0;return an(t.__iterate(n?e?function(t,e){r=31*r+un(it(t),it(e))|0}:function(t,e){r=r+un(it(t),it(e))|0}:e?function(t){r=31*r+it(t)|0}:function(t){r=r+it(t)|0}),r)}function an(t,e){return e=Pn(e,3432918353),e=Pn(e<<15|e>>>-15,461845907),e=Pn(e<<13|e>>>-13,5),e=(e+3864292196|0)^t,e=Pn(e^e>>>16,2246822507),e=Pn(e^e>>>13,3266489909),e=ot(e^e>>>16)}function un(t,e){return t^e+2654435769+(t<<6)+(t>>2)|0}var sn=Array.prototype.slice;t(n,e),t(r,e),t(o,e),e.isIterable=i,e.isKeyed=a,e.isIndexed=u,e.isAssociative=s,e.isOrdered=c,e.Keyed=n,e.Indexed=r,e.Set=o;var cn="@@__IMMUTABLE_ITERABLE__@@",ln="@@__IMMUTABLE_KEYED__@@",fn="@@__IMMUTABLE_INDEXED__@@",pn="@@__IMMUTABLE_ORDERED__@@",dn=5,hn=1<<dn,vn=hn-1,mn={},yn={value:!1},gn={value:!1},_n=0,bn=1,wn=2,xn="function"==typeof Symbol&&Symbol.iterator,En="@@iterator",Tn=xn||En;w.prototype.toString=function(){return"[Iterator]"},w.KEYS=_n,w.VALUES=bn,w.ENTRIES=wn,w.prototype.inspect=w.prototype.toSource=function(){return this.toString()},w.prototype[Tn]=function(){return this},t(C,e),C.of=function(){return C(arguments)},C.prototype.toSeq=function(){return this},C.prototype.toString=function(){return this.__toString("Seq {","}")},C.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},C.prototype.__iterate=function(t,e){return q(this,t,e,!0)},C.prototype.__iterator=function(t,e){return V(this,t,e,!0)},t(P,C),P.prototype.toKeyedSeq=function(){return this},t(M,C),M.of=function(){return M(arguments)},M.prototype.toIndexedSeq=function(){return this},M.prototype.toString=function(){return this.__toString("Seq [","]")},M.prototype.__iterate=function(t,e){return q(this,t,e,!1)},M.prototype.__iterator=function(t,e){return V(this,t,e,!1)},t(j,C),j.of=function(){return j(arguments)},j.prototype.toSetSeq=function(){return this},C.isSeq=F,C.Keyed=P,C.Set=j,C.Indexed=M;var On="@@__IMMUTABLE_SEQ__@@";C.prototype[On]=!0,t(I,M),I.prototype.get=function(t,e){return this.has(t)?this._array[v(this,t)]:e},I.prototype.__iterate=function(t,e){for(var n=this._array,r=n.length-1,o=0;o<=r;o++)if(!1===t(n[e?r-o:o],o,this))return o+1;return o},I.prototype.__iterator=function(t,e){var n=this._array,r=n.length-1,o=0;return new w(function(){return o>r?E():x(t,o,n[e?r-o++:o++])})},t(A,P),A.prototype.get=function(t,e){return void 0===e||this.has(t)?this._object[t]:e},A.prototype.has=function(t){return this._object.hasOwnProperty(t)},A.prototype.__iterate=function(t,e){for(var n=this._object,r=this._keys,o=r.length-1,i=0;i<=o;i++){var a=r[e?o-i:i];if(!1===t(n[a],a,this))return i+1}return i},A.prototype.__iterator=function(t,e){var n=this._object,r=this._keys,o=r.length-1,i=0;return new w(function(){var a=r[e?o-i:i];return i++>o?E():x(t,a,n[a])})},A.prototype[pn]=!0,t(R,M),R.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);var n=this._iterable,r=k(n),o=0;if(O(r))for(var i;!(i=r.next()).done&&!1!==t(i.value,o++,this););return o},R.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var n=this._iterable,r=k(n);if(!O(r))return new w(E);var o=0;return new w(function(){var e=r.next();return e.done?e:x(t,o++,e.value)})},t(D,M),D.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);for(var n=this._iterator,r=this._iteratorCache,o=0;o<r.length;)if(!1===t(r[o],o++,this))return o;for(var i;!(i=n.next()).done;){var a=i.value;if(r[o]=a,!1===t(a,o++,this))break}return o},D.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var n=this._iterator,r=this._iteratorCache,o=0;return new w(function(){if(o>=r.length){var e=n.next();if(e.done)return e;r[o]=e.value}return x(t,o,r[o++])})};var kn;t(J,M),J.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},J.prototype.get=function(t,e){return this.has(t)?this._value:e},J.prototype.includes=function(t){return Y(this._value,t)},J.prototype.slice=function(t,e){var n=this.size;return y(t,e,n)?this:new J(this._value,_(e,n)-g(t,n))},J.prototype.reverse=function(){return this},J.prototype.indexOf=function(t){return Y(this._value,t)?0:-1},J.prototype.lastIndexOf=function(t){return Y(this._value,t)?this.size:-1},J.prototype.__iterate=function(t,e){for(var n=0;n<this.size;n++)if(!1===t(this._value,n,this))return n+1;return n},J.prototype.__iterator=function(t,e){var n=this,r=0;return new w(function(){return r<n.size?x(t,r++,n._value):E()})},J.prototype.equals=function(t){return t instanceof J?Y(this._value,t._value):X(t)};var Sn;t(Z,M),Z.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(1!==this._step?" by "+this._step:"")+" ]"},Z.prototype.get=function(t,e){return this.has(t)?this._start+v(this,t)*this._step:e},Z.prototype.includes=function(t){var e=(t-this._start)/this._step;return e>=0&&e<this.size&&e===Math.floor(e)},Z.prototype.slice=function(t,e){return y(t,e,this.size)?this:(t=g(t,this.size),e=_(e,this.size),e<=t?new Z(0,0):new Z(this.get(t,this._end),this.get(e,this._end),this._step))},Z.prototype.indexOf=function(t){var e=t-this._start;if(e%this._step==0){var n=e/this._step;if(n>=0&&n<this.size)return n}return-1},Z.prototype.lastIndexOf=function(t){return this.indexOf(t)},Z.prototype.__iterate=function(t,e){for(var n=this.size-1,r=this._step,o=e?this._start+n*r:this._start,i=0;i<=n;i++){if(!1===t(o,i,this))return i+1;o+=e?-r:r}return i},Z.prototype.__iterator=function(t,e){var n=this.size-1,r=this._step,o=e?this._start+n*r:this._start,i=0;return new w(function(){var a=o;return o+=e?-r:r,i>n?E():x(t,i++,a)})},Z.prototype.equals=function(t){return t instanceof Z?this._start===t._start&&this._end===t._end&&this._step===t._step:X(this,t)};var Nn;t(tt,e),t(et,tt),t(nt,tt),t(rt,tt),tt.Keyed=et,tt.Indexed=nt,tt.Set=rt;var Cn,Pn="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(t,e){t|=0,e|=0;var n=65535&t,r=65535&e;return n*r+((t>>>16)*r+n*(e>>>16)<<16>>>0)|0},Mn=Object.isExtensible,jn=function(){try{return Object.defineProperty({},"@",{}),!0}catch(t){return!1}}(),In="function"==typeof WeakMap;In&&(Cn=new WeakMap);var An=0,Rn="__immutablehash__";"function"==typeof Symbol&&(Rn=Symbol(Rn));var Dn=16,Fn=255,Ln=0,zn={};t(ft,et),ft.of=function(){var t=sn.call(arguments,0);return xt().withMutations(function(e){for(var n=0;n<t.length;n+=2){if(n+1>=t.length)throw new Error("Missing value for key: "+t[n]);e.set(t[n],t[n+1])}})},ft.prototype.toString=function(){return this.__toString("Map {","}")},ft.prototype.get=function(t,e){return this._root?this._root.get(0,void 0,t,e):e},ft.prototype.set=function(t,e){return Et(this,t,e)},ft.prototype.setIn=function(t,e){return this.updateIn(t,mn,function(){return e})},ft.prototype.remove=function(t){return Et(this,t,mn)},ft.prototype.deleteIn=function(t){return this.updateIn(t,function(){return mn})},ft.prototype.update=function(t,e,n){return 1===arguments.length?t(this):this.updateIn([t],e,n)},ft.prototype.updateIn=function(t,e,n){n||(n=e,e=void 0);var r=At(this,Me(t),e,n);return r===mn?void 0:r},ft.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):xt()},ft.prototype.merge=function(){return Pt(this,void 0,arguments)},ft.prototype.mergeWith=function(t){return Pt(this,t,sn.call(arguments,1))},ft.prototype.mergeIn=function(t){var e=sn.call(arguments,1);return this.updateIn(t,xt(),function(t){return"function"==typeof t.merge?t.merge.apply(t,e):e[e.length-1]})},ft.prototype.mergeDeep=function(){return Pt(this,Mt,arguments)},ft.prototype.mergeDeepWith=function(t){var e=sn.call(arguments,1);return Pt(this,jt(t),e)},ft.prototype.mergeDeepIn=function(t){var e=sn.call(arguments,1);return this.updateIn(t,xt(),function(t){return"function"==typeof t.mergeDeep?t.mergeDeep.apply(t,e):e[e.length-1]})},ft.prototype.sort=function(t){return Qt(be(this,t))},ft.prototype.sortBy=function(t,e){return Qt(be(this,e,t))},ft.prototype.withMutations=function(t){var e=this.asMutable();return t(e),e.wasAltered()?e.__ensureOwner(this.__ownerID):this},ft.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new p)},ft.prototype.asImmutable=function(){return this.__ensureOwner()},ft.prototype.wasAltered=function(){return this.__altered},ft.prototype.__iterator=function(t,e){return new gt(this,t,e)},ft.prototype.__iterate=function(t,e){var n=this,r=0;return this._root&&this._root.iterate(function(e){return r++,t(e[1],e[0],n)},e),r},ft.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?wt(this.size,this._root,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)},ft.isMap=pt;var Un="@@__IMMUTABLE_MAP__@@",Wn=ft.prototype;Wn[Un]=!0,Wn.delete=Wn.remove,Wn.removeIn=Wn.deleteIn,dt.prototype.get=function(t,e,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(Y(n,o[i][0]))return o[i][1];return r},dt.prototype.update=function(t,e,n,r,o,i,a){for(var u=o===mn,s=this.entries,c=0,l=s.length;c<l&&!Y(r,s[c][0]);c++);var p=c<l;if(p?s[c][1]===o:u)return this;if(f(a),(u||!p)&&f(i),!u||1!==s.length){if(!p&&!u&&s.length>=qn)return St(t,s,r,o);var h=t&&t===this.ownerID,v=h?s:d(s);return p?u?c===l-1?v.pop():v[c]=v.pop():v[c]=[r,o]:v.push([r,o]),h?(this.entries=v,this):new dt(t,v)}},ht.prototype.get=function(t,e,n,r){void 0===e&&(e=it(n));var o=1<<((0===t?e:e>>>t)&vn),i=this.bitmap;return 0==(i&o)?r:this.nodes[Rt(i&o-1)].get(t+dn,e,n,r)},ht.prototype.update=function(t,e,n,r,o,i,a){void 0===n&&(n=it(r));var u=(0===e?n:n>>>e)&vn,s=1<<u,c=this.bitmap,l=0!=(c&s);if(!l&&o===mn)return this;var f=Rt(c&s-1),p=this.nodes,d=l?p[f]:void 0,h=Tt(d,t,e+dn,n,r,o,i,a);if(h===d)return this;if(!l&&h&&p.length>=Vn)return Ct(t,p,c,u,h);if(l&&!h&&2===p.length&&Ot(p[1^f]))return p[1^f];if(l&&h&&1===p.length&&Ot(h))return h;var v=t&&t===this.ownerID,m=l?h?c:c^s:c|s,y=l?h?Dt(p,f,h,v):Lt(p,f,v):Ft(p,f,h,v);return v?(this.bitmap=m,this.nodes=y,this):new ht(t,m,y)},vt.prototype.get=function(t,e,n,r){void 0===e&&(e=it(n));var o=(0===t?e:e>>>t)&vn,i=this.nodes[o];return i?i.get(t+dn,e,n,r):r},vt.prototype.update=function(t,e,n,r,o,i,a){void 0===n&&(n=it(r));var u=(0===e?n:n>>>e)&vn,s=o===mn,c=this.nodes,l=c[u];if(s&&!l)return this;var f=Tt(l,t,e+dn,n,r,o,i,a);if(f===l)return this;var p=this.count;if(l){if(!f&&--p<Gn)return Nt(t,c,p,u)}else p++;var d=t&&t===this.ownerID,h=Dt(c,u,f,d);return d?(this.count=p,this.nodes=h,this):new vt(t,p,h)},mt.prototype.get=function(t,e,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(Y(n,o[i][0]))return o[i][1];return r},mt.prototype.update=function(t,e,n,r,o,i,a){void 0===n&&(n=it(r));var u=o===mn;if(n!==this.keyHash)return u?this:(f(a),f(i),kt(this,t,e,n,[r,o]));for(var s=this.entries,c=0,l=s.length;c<l&&!Y(r,s[c][0]);c++);var p=c<l;if(p?s[c][1]===o:u)return this;if(f(a),(u||!p)&&f(i),u&&2===l)return new yt(t,this.keyHash,s[1^c]);var h=t&&t===this.ownerID,v=h?s:d(s);return p?u?c===l-1?v.pop():v[c]=v.pop():v[c]=[r,o]:v.push([r,o]),h?(this.entries=v,this):new mt(t,this.keyHash,v)},yt.prototype.get=function(t,e,n,r){return Y(n,this.entry[0])?this.entry[1]:r},yt.prototype.update=function(t,e,n,r,o,i,a){var u=o===mn,s=Y(r,this.entry[0]);return(s?o===this.entry[1]:u)?this:(f(a),u?void f(i):s?t&&t===this.ownerID?(this.entry[1]=o,this):new yt(t,this.keyHash,[r,o]):(f(i),kt(this,t,e,it(r),[r,o])))},dt.prototype.iterate=mt.prototype.iterate=function(t,e){for(var n=this.entries,r=0,o=n.length-1;r<=o;r++)if(!1===t(n[e?o-r:r]))return!1},ht.prototype.iterate=vt.prototype.iterate=function(t,e){for(var n=this.nodes,r=0,o=n.length-1;r<=o;r++){var i=n[e?o-r:r];if(i&&!1===i.iterate(t,e))return!1}},yt.prototype.iterate=function(t,e){return t(this.entry)},t(gt,w),gt.prototype.next=function(){for(var t=this._type,e=this._stack;e;){var n,r=e.node,o=e.index++;if(r.entry){if(0===o)return _t(t,r.entry)}else if(r.entries){if(n=r.entries.length-1,o<=n)return _t(t,r.entries[this._reverse?n-o:o])}else if(n=r.nodes.length-1,o<=n){var i=r.nodes[this._reverse?n-o:o];if(i){if(i.entry)return _t(t,i.entry);e=this._stack=bt(i,e)}continue}e=this._stack=this._stack.__prev}return E()};var Bn,qn=hn/4,Vn=hn/2,Gn=hn/4;t(zt,nt),zt.of=function(){return this(arguments)},zt.prototype.toString=function(){return this.__toString("List [","]")},zt.prototype.get=function(t,e){if((t=v(this,t))>=0&&t<this.size){t+=this._origin;var n=$t(this,t);return n&&n.array[t&vn]}return e},zt.prototype.set=function(t,e){return Gt(this,t,e)},zt.prototype.remove=function(t){return this.has(t)?0===t?this.shift():t===this.size-1?this.pop():this.splice(t,1):this},zt.prototype.insert=function(t,e){return this.splice(t,0,e)},zt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=dn,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):Vt()},zt.prototype.push=function(){var t=arguments,e=this.size;return this.withMutations(function(n){Yt(n,0,e+t.length);for(var r=0;r<t.length;r++)n.set(e+r,t[r])})},zt.prototype.pop=function(){return Yt(this,0,-1)},zt.prototype.unshift=function(){var t=arguments;return this.withMutations(function(e){Yt(e,-t.length);for(var n=0;n<t.length;n++)e.set(n,t[n])})},zt.prototype.shift=function(){return Yt(this,1)},zt.prototype.merge=function(){return Xt(this,void 0,arguments)},zt.prototype.mergeWith=function(t){return Xt(this,t,sn.call(arguments,1))},zt.prototype.mergeDeep=function(){return Xt(this,Mt,arguments)},zt.prototype.mergeDeepWith=function(t){var e=sn.call(arguments,1);return Xt(this,jt(t),e)},zt.prototype.setSize=function(t){return Yt(this,0,t)},zt.prototype.slice=function(t,e){var n=this.size;return y(t,e,n)?this:Yt(this,g(t,n),_(e,n))},zt.prototype.__iterator=function(t,e){var n=0,r=Bt(this,e);return new w(function(){var e=r();return e===Yn?E():x(t,n++,e)})},zt.prototype.__iterate=function(t,e){for(var n,r=0,o=Bt(this,e);(n=o())!==Yn&&!1!==t(n,r++,this););return r},zt.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?qt(this._origin,this._capacity,this._level,this._root,this._tail,t,this.__hash):(this.__ownerID=t,this)},zt.isList=Ut;var Hn="@@__IMMUTABLE_LIST__@@",Kn=zt.prototype;Kn[Hn]=!0,Kn.delete=Kn.remove,Kn.setIn=Wn.setIn,Kn.deleteIn=Kn.removeIn=Wn.removeIn,Kn.update=Wn.update,Kn.updateIn=Wn.updateIn,Kn.mergeIn=Wn.mergeIn,Kn.mergeDeepIn=Wn.mergeDeepIn,Kn.withMutations=Wn.withMutations,Kn.asMutable=Wn.asMutable,Kn.asImmutable=Wn.asImmutable,Kn.wasAltered=Wn.wasAltered,Wt.prototype.removeBefore=function(t,e,n){if(n===e?1<<e:0===this.array.length)return this;var r=n>>>e&vn;if(r>=this.array.length)return new Wt([],t);var o,i=0===r;if(e>0){var a=this.array[r];if((o=a&&a.removeBefore(t,e-dn,n))===a&&i)return this}if(i&&!o)return this;var u=Kt(this,t);if(!i)for(var s=0;s<r;s++)u.array[s]=void 0;return o&&(u.array[r]=o),u},Wt.prototype.removeAfter=function(t,e,n){if(n===(e?1<<e:0)||0===this.array.length)return this;var r=n-1>>>e&vn;if(r>=this.array.length)return this;var o;if(e>0){var i=this.array[r];if((o=i&&i.removeAfter(t,e-dn,n))===i&&r===this.array.length-1)return this}var a=Kt(this,t);return a.array.splice(r+1),o&&(a.array[r]=o),a};var $n,Yn={};t(Qt,ft),Qt.of=function(){return this(arguments)},Qt.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Qt.prototype.get=function(t,e){var n=this._map.get(t);return void 0!==n?this._list.get(n)[1]:e},Qt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):ee()},Qt.prototype.set=function(t,e){return ne(this,t,e)},Qt.prototype.remove=function(t){return ne(this,t,mn)},Qt.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Qt.prototype.__iterate=function(t,e){var n=this;return this._list.__iterate(function(e){return e&&t(e[1],e[0],n)},e)},Qt.prototype.__iterator=function(t,e){return this._list.fromEntrySeq().__iterator(t,e)},Qt.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t),n=this._list.__ensureOwner(t);return t?te(e,n,t,this.__hash):(this.__ownerID=t,this._map=e,this._list=n,this)},Qt.isOrderedMap=Zt,Qt.prototype[pn]=!0,Qt.prototype.delete=Qt.prototype.remove;var Xn;t(re,P),re.prototype.get=function(t,e){return this._iter.get(t,e)},re.prototype.has=function(t){return this._iter.has(t)},re.prototype.valueSeq=function(){return this._iter.valueSeq()},re.prototype.reverse=function(){var t=this,e=ce(this,!0);return this._useKeys||(e.valueSeq=function(){return t._iter.toSeq().reverse()}),e},re.prototype.map=function(t,e){var n=this,r=se(this,t,e);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(t,e)}),r},re.prototype.__iterate=function(t,e){var n,r=this;return this._iter.__iterate(this._useKeys?function(e,n){return t(e,n,r)}:(n=e?ke(this):0,function(o){return t(o,e?--n:n++,r)}),e)},re.prototype.__iterator=function(t,e){if(this._useKeys)return this._iter.__iterator(t,e);var n=this._iter.__iterator(bn,e),r=e?ke(this):0;return new w(function(){var o=n.next();return o.done?o:x(t,e?--r:r++,o.value,o)})},re.prototype[pn]=!0,t(oe,M),oe.prototype.includes=function(t){return this._iter.includes(t)},oe.prototype.__iterate=function(t,e){var n=this,r=0;return this._iter.__iterate(function(e){return t(e,r++,n)},e)},oe.prototype.__iterator=function(t,e){var n=this._iter.__iterator(bn,e),r=0;return new w(function(){var e=n.next();return e.done?e:x(t,r++,e.value,e)})},t(ie,j),ie.prototype.has=function(t){return this._iter.includes(t)},ie.prototype.__iterate=function(t,e){var n=this;return this._iter.__iterate(function(e){return t(e,e,n)},e)},ie.prototype.__iterator=function(t,e){var n=this._iter.__iterator(bn,e);return new w(function(){var e=n.next();return e.done?e:x(t,e.value,e.value,e)})},t(ae,P),ae.prototype.entrySeq=function(){return this._iter.toSeq()},ae.prototype.__iterate=function(t,e){var n=this;return this._iter.__iterate(function(e){if(e){Oe(e);var r=i(e);return t(r?e.get(1):e[1],r?e.get(0):e[0],n)}},e)},ae.prototype.__iterator=function(t,e){var n=this._iter.__iterator(bn,e);return new w(function(){for(;;){var e=n.next();if(e.done)return e;var r=e.value;if(r){Oe(r);var o=i(r);return x(t,o?r.get(0):r[0],o?r.get(1):r[1],e)}}})},oe.prototype.cacheResult=re.prototype.cacheResult=ie.prototype.cacheResult=ae.prototype.cacheResult=Ce,t(je,et),je.prototype.toString=function(){return this.__toString(Ae(this)+" {","}")},je.prototype.has=function(t){return this._defaultValues.hasOwnProperty(t)},je.prototype.get=function(t,e){if(!this.has(t))return e;var n=this._defaultValues[t];return this._map?this._map.get(t,n):n},je.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var t=this.constructor;return t._empty||(t._empty=Ie(this,xt()))},je.prototype.set=function(t,e){if(!this.has(t))throw new Error('Cannot set unknown key "'+t+'" on '+Ae(this));if(this._map&&!this._map.has(t)){if(e===this._defaultValues[t])return this}var n=this._map&&this._map.set(t,e);return this.__ownerID||n===this._map?this:Ie(this,n)},je.prototype.remove=function(t){if(!this.has(t))return this;var e=this._map&&this._map.remove(t);return this.__ownerID||e===this._map?this:Ie(this,e)},je.prototype.wasAltered=function(){return this._map.wasAltered()},je.prototype.__iterator=function(t,e){var r=this;return n(this._defaultValues).map(function(t,e){return r.get(e)}).__iterator(t,e)},je.prototype.__iterate=function(t,e){var r=this;return n(this._defaultValues).map(function(t,e){return r.get(e)}).__iterate(t,e)},je.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map&&this._map.__ensureOwner(t);return t?Ie(this,e,t):(this.__ownerID=t,this._map=e,this)};var Jn=je.prototype;Jn.delete=Jn.remove,Jn.deleteIn=Jn.removeIn=Wn.removeIn,Jn.merge=Wn.merge,Jn.mergeWith=Wn.mergeWith,Jn.mergeIn=Wn.mergeIn,Jn.mergeDeep=Wn.mergeDeep,Jn.mergeDeepWith=Wn.mergeDeepWith,Jn.mergeDeepIn=Wn.mergeDeepIn,Jn.setIn=Wn.setIn,Jn.update=Wn.update,Jn.updateIn=Wn.updateIn,Jn.withMutations=Wn.withMutations,Jn.asMutable=Wn.asMutable,Jn.asImmutable=Wn.asImmutable,t(Fe,rt),Fe.of=function(){return this(arguments)},Fe.fromKeys=function(t){return this(n(t).keySeq())},Fe.prototype.toString=function(){return this.__toString("Set {","}")},Fe.prototype.has=function(t){return this._map.has(t)},Fe.prototype.add=function(t){return ze(this,this._map.set(t,!0))},Fe.prototype.remove=function(t){return ze(this,this._map.remove(t))},Fe.prototype.clear=function(){return ze(this,this._map.clear())},Fe.prototype.union=function(){var t=sn.call(arguments,0);return t=t.filter(function(t){return 0!==t.size}),0===t.length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations(function(e){for(var n=0;n<t.length;n++)o(t[n]).forEach(function(t){return e.add(t)})}):this.constructor(t[0])},Fe.prototype.intersect=function(){var t=sn.call(arguments,0);if(0===t.length)return this;t=t.map(function(t){return o(t)});var e=this;return this.withMutations(function(n){e.forEach(function(e){t.every(function(t){return t.includes(e)})||n.remove(e)})})},Fe.prototype.subtract=function(){var t=sn.call(arguments,0);if(0===t.length)return this;t=t.map(function(t){return o(t)});var e=this;return this.withMutations(function(n){e.forEach(function(e){t.some(function(t){return t.includes(e)})&&n.remove(e)})})},Fe.prototype.merge=function(){return this.union.apply(this,arguments)},Fe.prototype.mergeWith=function(t){var e=sn.call(arguments,1);return this.union.apply(this,e)},Fe.prototype.sort=function(t){return Be(be(this,t))},Fe.prototype.sortBy=function(t,e){return Be(be(this,e,t))},Fe.prototype.wasAltered=function(){return this._map.wasAltered()},Fe.prototype.__iterate=function(t,e){var n=this;return this._map.__iterate(function(e,r){return t(r,r,n)},e)},Fe.prototype.__iterator=function(t,e){return this._map.map(function(t,e){return e}).__iterator(t,e)},Fe.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t);return t?this.__make(e,t):(this.__ownerID=t,this._map=e,this)},Fe.isSet=Le;var Qn="@@__IMMUTABLE_SET__@@",Zn=Fe.prototype;Zn[Qn]=!0,Zn.delete=Zn.remove,Zn.mergeDeep=Zn.merge,Zn.mergeDeepWith=Zn.mergeWith,Zn.withMutations=Wn.withMutations,Zn.asMutable=Wn.asMutable,Zn.asImmutable=Wn.asImmutable,Zn.__empty=We,Zn.__make=Ue;var tr;t(Be,Fe),Be.of=function(){return this(arguments)},Be.fromKeys=function(t){return this(n(t).keySeq())},Be.prototype.toString=function(){return this.__toString("OrderedSet {","}")},Be.isOrderedSet=qe;var er=Be.prototype;er[pn]=!0,er.__empty=Ge,er.__make=Ve;var nr;t(He,nt),He.of=function(){return this(arguments)},He.prototype.toString=function(){return this.__toString("Stack [","]")},He.prototype.get=function(t,e){var n=this._head;for(t=v(this,t);n&&t--;)n=n.next;return n?n.value:e},He.prototype.peek=function(){return this._head&&this._head.value},He.prototype.push=function(){if(0===arguments.length)return this;for(var t=this.size+arguments.length,e=this._head,n=arguments.length-1;n>=0;n--)e={value:arguments[n],next:e};return this.__ownerID?(this.size=t,this._head=e,this.__hash=void 0,this.__altered=!0,this):$e(t,e)},He.prototype.pushAll=function(t){if(t=r(t),0===t.size)return this;lt(t.size);var e=this.size,n=this._head;return t.reverse().forEach(function(t){e++,n={value:t,next:n}}),this.__ownerID?(this.size=e,this._head=n,this.__hash=void 0,this.__altered=!0,this):$e(e,n)},He.prototype.pop=function(){return this.slice(1)},He.prototype.unshift=function(){return this.push.apply(this,arguments)},He.prototype.unshiftAll=function(t){return this.pushAll(t)},He.prototype.shift=function(){return this.pop.apply(this,arguments)},He.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Ye()},He.prototype.slice=function(t,e){if(y(t,e,this.size))return this;var n=g(t,this.size);if(_(e,this.size)!==this.size)return nt.prototype.slice.call(this,t,e);for(var r=this.size-n,o=this._head;n--;)o=o.next;return this.__ownerID?(this.size=r,this._head=o,this.__hash=void 0,this.__altered=!0,this):$e(r,o)},He.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?$e(this.size,this._head,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)},He.prototype.__iterate=function(t,e){if(e)return this.reverse().__iterate(t);for(var n=0,r=this._head;r&&!1!==t(r.value,n++,this);)r=r.next;return n},He.prototype.__iterator=function(t,e){if(e)return this.reverse().__iterator(t);var n=0,r=this._head;return new w(function(){if(r){var e=r.value;return r=r.next,x(t,n++,e)}return E()})},He.isStack=Ke;var rr="@@__IMMUTABLE_STACK__@@",or=He.prototype;or[rr]=!0,or.withMutations=Wn.withMutations,or.asMutable=Wn.asMutable,or.asImmutable=Wn.asImmutable,or.wasAltered=Wn.wasAltered;var ir;e.Iterator=w,Xe(e,{toArray:function(){lt(this.size);var t=new Array(this.size||0);return this.valueSeq().__iterate(function(e,n){t[n]=e}),t},toIndexedSeq:function(){return new oe(this)},toJS:function(){return this.toSeq().map(function(t){return t&&"function"==typeof t.toJS?t.toJS():t}).__toJS()},toJSON:function(){return this.toSeq().map(function(t){return t&&"function"==typeof t.toJSON?t.toJSON():t}).__toJS()},toKeyedSeq:function(){return new re(this,!0)},toMap:function(){return ft(this.toKeyedSeq())},toObject:function(){lt(this.size);var t={};return this.__iterate(function(e,n){t[n]=e}),t},toOrderedMap:function(){return Qt(this.toKeyedSeq())},toOrderedSet:function(){return Be(a(this)?this.valueSeq():this)},toSet:function(){return Fe(a(this)?this.valueSeq():this)},toSetSeq:function(){return new ie(this)},toSeq:function(){return u(this)?this.toIndexedSeq():a(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return He(a(this)?this.valueSeq():this)},toList:function(){return zt(a(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(t,e){return 0===this.size?t+e:t+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+e},concat:function(){return Te(this,me(this,sn.call(arguments,0)))},includes:function(t){return this.some(function(e){return Y(e,t)})},entries:function(){return this.__iterator(wn)},every:function(t,e){lt(this.size);var n=!0;return this.__iterate(function(r,o,i){if(!t.call(e,r,o,i))return n=!1,!1}),n},filter:function(t,e){return Te(this,le(this,t,e,!0))},find:function(t,e,n){var r=this.findEntry(t,e);return r?r[1]:n},forEach:function(t,e){return lt(this.size),this.__iterate(e?t.bind(e):t)},join:function(t){lt(this.size),t=void 0!==t?""+t:",";var e="",n=!0;return this.__iterate(function(r){n?n=!1:e+=t,e+=null!==r&&void 0!==r?r.toString():""}),e},keys:function(){return this.__iterator(_n)},map:function(t,e){return Te(this,se(this,t,e))},reduce:function(t,e,n){lt(this.size);var r,o;return arguments.length<2?o=!0:r=e,this.__iterate(function(e,i,a){o?(o=!1,r=e):r=t.call(n,r,e,i,a)}),r},reduceRight:function(t,e,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return Te(this,ce(this,!0))},slice:function(t,e){return Te(this,de(this,t,e,!0))},some:function(t,e){return!this.every(Ze(t),e)},sort:function(t){return Te(this,be(this,t))},values:function(){return this.__iterator(bn)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some(function(){return!0})},count:function(t,e){return h(t?this.toSeq().filter(t,e):this)},countBy:function(t,e){return fe(this,t,e)},equals:function(t){return X(this,t)},entrySeq:function(){var t=this;if(t._cache)return new I(t._cache);var e=t.toSeq().map(Qe).toIndexedSeq();return e.fromEntrySeq=function(){return t.toSeq()},e},filterNot:function(t,e){return this.filter(Ze(t),e)},findEntry:function(t,e,n){var r=n;return this.__iterate(function(n,o,i){if(t.call(e,n,o,i))return r=[o,n],!1}),r},findKey:function(t,e){var n=this.findEntry(t,e);return n&&n[0]},findLast:function(t,e,n){return this.toKeyedSeq().reverse().find(t,e,n)},findLastEntry:function(t,e,n){return this.toKeyedSeq().reverse().findEntry(t,e,n)},findLastKey:function(t,e){return this.toKeyedSeq().reverse().findKey(t,e)},first:function(){return this.find(m)},flatMap:function(t,e){return Te(this,ge(this,t,e))},flatten:function(t){return Te(this,ye(this,t,!0))},fromEntrySeq:function(){return new ae(this)},get:function(t,e){return this.find(function(e,n){return Y(n,t)},void 0,e)},getIn:function(t,e){for(var n,r=this,o=Me(t);!(n=o.next()).done;){var i=n.value;if((r=r&&r.get?r.get(i,mn):mn)===mn)return e}return r},groupBy:function(t,e){return pe(this,t,e)},has:function(t){return this.get(t,mn)!==mn},hasIn:function(t){return this.getIn(t,mn)!==mn},isSubset:function(t){return t="function"==typeof t.includes?t:e(t),this.every(function(e){return t.includes(e)})},isSuperset:function(t){return t="function"==typeof t.isSubset?t:e(t),t.isSubset(this)},keyOf:function(t){return this.findKey(function(e){return Y(e,t)})},keySeq:function(){return this.toSeq().map(Je).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},lastKeyOf:function(t){return this.toKeyedSeq().reverse().keyOf(t)},max:function(t){return we(this,t)},maxBy:function(t,e){return we(this,e,t)},min:function(t){return we(this,t?tn(t):rn)},minBy:function(t,e){return we(this,e?tn(e):rn,t)},rest:function(){return this.slice(1)},skip:function(t){return this.slice(Math.max(0,t))},skipLast:function(t){return Te(this,this.toSeq().reverse().skip(t).reverse())},skipWhile:function(t,e){return Te(this,ve(this,t,e,!0))},skipUntil:function(t,e){return this.skipWhile(Ze(t),e)},sortBy:function(t,e){return Te(this,be(this,e,t))},take:function(t){return this.slice(0,Math.max(0,t))},takeLast:function(t){return Te(this,this.toSeq().reverse().take(t).reverse())},takeWhile:function(t,e){return Te(this,he(this,t,e))},takeUntil:function(t,e){return this.takeWhile(Ze(t),e)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=on(this))}});var ar=e.prototype;ar[cn]=!0,ar[Tn]=ar.values,ar.__toJS=ar.toArray,ar.__toStringMapper=en,ar.inspect=ar.toSource=function(){return this.toString()},ar.chain=ar.flatMap,ar.contains=ar.includes,Xe(n,{flip:function(){return Te(this,ue(this))},mapEntries:function(t,e){var n=this,r=0;return Te(this,this.toSeq().map(function(o,i){return t.call(e,[i,o],r++,n)}).fromEntrySeq())},mapKeys:function(t,e){var n=this;return Te(this,this.toSeq().flip().map(function(r,o){return t.call(e,r,o,n)}).flip())}});var ur=n.prototype;return ur[ln]=!0,ur[Tn]=ar.entries,ur.__toJS=ar.toObject,ur.__toStringMapper=function(t,e){return JSON.stringify(e)+": "+en(t)},Xe(r,{toKeyedSeq:function(){return new re(this,!1)},filter:function(t,e){return Te(this,le(this,t,e,!1))},findIndex:function(t,e){var n=this.findEntry(t,e);return n?n[0]:-1},indexOf:function(t){var e=this.keyOf(t);return void 0===e?-1:e},lastIndexOf:function(t){var e=this.lastKeyOf(t);return void 0===e?-1:e},reverse:function(){return Te(this,ce(this,!1))},slice:function(t,e){return Te(this,de(this,t,e,!1))},splice:function(t,e){var n=arguments.length;if(e=Math.max(0|e,0),0===n||2===n&&!e)return this;t=g(t,t<0?this.count():this.size);var r=this.slice(0,t);return Te(this,1===n?r:r.concat(d(arguments,2),this.slice(t+e)))},findLastIndex:function(t,e){var n=this.findLastEntry(t,e);return n?n[0]:-1},first:function(){return this.get(0)},flatten:function(t){return Te(this,ye(this,t,!1))},get:function(t,e){return t=v(this,t),t<0||this.size===1/0||void 0!==this.size&&t>this.size?e:this.find(function(e,n){return n===t},void 0,e)},has:function(t){return(t=v(this,t))>=0&&(void 0!==this.size?this.size===1/0||t<this.size:-1!==this.indexOf(t))},interpose:function(t){return Te(this,_e(this,t))},interleave:function(){var t=[this].concat(d(arguments)),e=Ee(this.toSeq(),M.of,t),n=e.flatten(!0);return e.size&&(n.size=e.size*t.length),Te(this,n)},keySeq:function(){return Z(0,this.size)},last:function(){return this.get(-1)},skipWhile:function(t,e){return Te(this,ve(this,t,e,!1))},zip:function(){return Te(this,Ee(this,nn,[this].concat(d(arguments))))},zipWith:function(t){var e=d(arguments);return e[0]=this,Te(this,Ee(this,t,e))}}),r.prototype[fn]=!0,r.prototype[pn]=!0,Xe(o,{get:function(t,e){return this.has(t)?t:e},includes:function(t){return this.has(t)},keySeq:function(){return this.valueSeq()}}),o.prototype.has=ar.includes,o.prototype.contains=o.prototype.includes,Xe(P,n.prototype),Xe(M,r.prototype),Xe(j,o.prototype),Xe(et,n.prototype),Xe(nt,r.prototype),Xe(rt,o.prototype),{Iterable:e,Seq:C,Collection:tt,Map:ft,OrderedMap:Qt,List:zt,Stack:He,Set:Fe,OrderedSet:Be,Record:je,Range:Z,Repeat:J,is:Y,fromJS:G}})},function(t,e,n){(function(t,r){var o;(function(){function i(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function a(t,e,n,r){for(var o=-1,i=null==t?0:t.length;++o<i;){var a=t[o];e(r,a,n(a),t)}return r}function u(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}function s(t,e){for(var n=null==t?0:t.length;n--&&!1!==e(t[n],n,t););return t}function c(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(!e(t[n],n,t))return!1;return!0}function l(t,e){for(var n=-1,r=null==t?0:t.length,o=0,i=[];++n<r;){var a=t[n];e(a,n,t)&&(i[o++]=a)}return i}function f(t,e){return!!(null==t?0:t.length)&&x(t,e,0)>-1}function p(t,e,n){for(var r=-1,o=null==t?0:t.length;++r<o;)if(n(e,t[r]))return!0;return!1}function d(t,e){for(var n=-1,r=null==t?0:t.length,o=Array(r);++n<r;)o[n]=e(t[n],n,t);return o}function h(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}function v(t,e,n,r){var o=-1,i=null==t?0:t.length;for(r&&i&&(n=t[++o]);++o<i;)n=e(n,t[o],o,t);return n}function m(t,e,n,r){var o=null==t?0:t.length;for(r&&o&&(n=t[--o]);o--;)n=e(n,t[o],o,t);return n}function y(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}function g(t){return t.split("")}function _(t){return t.match(Fe)||[]}function b(t,e,n){var r;return n(t,function(t,n,o){if(e(t,n,o))return r=n,!1}),r}function w(t,e,n,r){for(var o=t.length,i=n+(r?1:-1);r?i--:++i<o;)if(e(t[i],i,t))return i;return-1}function x(t,e,n){return e===e?Y(t,e,n):w(t,T,n)}function E(t,e,n,r){for(var o=n-1,i=t.length;++o<i;)if(r(t[o],e))return o;return-1}function T(t){return t!==t}function O(t,e){var n=null==t?0:t.length;return n?P(t,e)/n:It}function k(t){return function(e){return null==e?nt:e[t]}}function S(t){return function(e){return null==t?nt:t[e]}}function N(t,e,n,r,o){return o(t,function(t,o,i){n=r?(r=!1,t):e(n,t,o,i)}),n}function C(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}function P(t,e){for(var n,r=-1,o=t.length;++r<o;){var i=e(t[r]);i!==nt&&(n=n===nt?i:n+i)}return n}function M(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}function j(t,e){return d(e,function(e){return[e,t[e]]})}function I(t){return function(e){return t(e)}}function A(t,e){return d(e,function(e){return t[e]})}function R(t,e){return t.has(e)}function D(t,e){for(var n=-1,r=t.length;++n<r&&x(e,t[n],0)>-1;);return n}function F(t,e){for(var n=t.length;n--&&x(e,t[n],0)>-1;);return n}function L(t,e){for(var n=t.length,r=0;n--;)t[n]===e&&++r;return r}function z(t){return"\\"+On[t]}function U(t,e){return null==t?nt:t[e]}function W(t){return mn.test(t)}function B(t){return yn.test(t)}function q(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}function V(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n}function G(t,e){return function(n){return t(e(n))}}function H(t,e){for(var n=-1,r=t.length,o=0,i=[];++n<r;){var a=t[n];a!==e&&a!==st||(t[n]=st,i[o++]=n)}return i}function K(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n}function $(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=[t,t]}),n}function Y(t,e,n){for(var r=n-1,o=t.length;++r<o;)if(t[r]===e)return r;return-1}function X(t,e,n){for(var r=n+1;r--;)if(t[r]===e)return r;return r}function J(t){return W(t)?Z(t):Bn(t)}function Q(t){return W(t)?tt(t):g(t)}function Z(t){for(var e=hn.lastIndex=0;hn.test(t);)++e;return e}function tt(t){return t.match(hn)||[]}function et(t){return t.match(vn)||[]}var nt,rt=200,ot="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",it="Expected a function",at="__lodash_hash_undefined__",ut=500,st="__lodash_placeholder__",ct=1,lt=2,ft=4,pt=1,dt=2,ht=1,vt=2,mt=4,yt=8,gt=16,_t=32,bt=64,wt=128,xt=256,Et=512,Tt=30,Ot="...",kt=800,St=16,Nt=1,Ct=2,Pt=1/0,Mt=9007199254740991,jt=1.7976931348623157e308,It=NaN,At=4294967295,Rt=At-1,Dt=At>>>1,Ft=[["ary",wt],["bind",ht],["bindKey",vt],["curry",yt],["curryRight",gt],["flip",Et],["partial",_t],["partialRight",bt],["rearg",xt]],Lt="[object Arguments]",zt="[object Array]",Ut="[object AsyncFunction]",Wt="[object Boolean]",Bt="[object Date]",qt="[object DOMException]",Vt="[object Error]",Gt="[object Function]",Ht="[object GeneratorFunction]",Kt="[object Map]",$t="[object Number]",Yt="[object Null]",Xt="[object Object]",Jt="[object Proxy]",Qt="[object RegExp]",Zt="[object Set]",te="[object String]",ee="[object Symbol]",ne="[object Undefined]",re="[object WeakMap]",oe="[object WeakSet]",ie="[object ArrayBuffer]",ae="[object DataView]",ue="[object Float32Array]",se="[object Float64Array]",ce="[object Int8Array]",le="[object Int16Array]",fe="[object Int32Array]",pe="[object Uint8Array]",de="[object Uint8ClampedArray]",he="[object Uint16Array]",ve="[object Uint32Array]",me=/\b__p \+= '';/g,ye=/\b(__p \+=) '' \+/g,ge=/(__e\(.*?\)|\b__t\)) \+\n'';/g,_e=/&(?:amp|lt|gt|quot|#39);/g,be=/[&<>"']/g,we=RegExp(_e.source),xe=RegExp(be.source),Ee=/<%-([\s\S]+?)%>/g,Te=/<%([\s\S]+?)%>/g,Oe=/<%=([\s\S]+?)%>/g,ke=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Se=/^\w*$/,Ne=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ce=/[\\^$.*+?()[\]{}|]/g,Pe=RegExp(Ce.source),Me=/^\s+|\s+$/g,je=/^\s+/,Ie=/\s+$/,Ae=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Re=/\{\n\/\* \[wrapped with (.+)\] \*/,De=/,? & /,Fe=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Le=/\\(\\)?/g,ze=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ue=/\w*$/,We=/^[-+]0x[0-9a-f]+$/i,Be=/^0b[01]+$/i,qe=/^\[object .+?Constructor\]$/,Ve=/^0o[0-7]+$/i,Ge=/^(?:0|[1-9]\d*)$/,He=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ke=/($^)/,$e=/['\n\r\u2028\u2029\\]/g,Ye="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Xe="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Je="["+Xe+"]",Qe="["+Ye+"]",Ze="[a-z\\xdf-\\xf6\\xf8-\\xff]",tn="[^\\ud800-\\udfff"+Xe+"\\d+\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",en="\\ud83c[\\udffb-\\udfff]",nn="(?:\\ud83c[\\udde6-\\uddff]){2}",rn="[\\ud800-\\udbff][\\udc00-\\udfff]",on="[A-Z\\xc0-\\xd6\\xd8-\\xde]",an="(?:"+Ze+"|"+tn+")",un="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",sn="(?:\\u200d(?:"+["[^\\ud800-\\udfff]",nn,rn].join("|")+")[\\ufe0e\\ufe0f]?"+un+")*",cn="[\\ufe0e\\ufe0f]?"+un+sn,ln="(?:"+["[\\u2700-\\u27bf]",nn,rn].join("|")+")"+cn,fn="(?:"+["[^\\ud800-\\udfff]"+Qe+"?",Qe,nn,rn,"[\\ud800-\\udfff]"].join("|")+")",pn=RegExp("['’]","g"),dn=RegExp(Qe,"g"),hn=RegExp(en+"(?="+en+")|"+fn+cn,"g"),vn=RegExp([on+"?"+Ze+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[Je,on,"$"].join("|")+")","(?:[A-Z\\xc0-\\xd6\\xd8-\\xde]|[^\\ud800-\\udfff\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\d+\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[Je,on+an,"$"].join("|")+")",on+"?"+an+"+(?:['’](?:d|ll|m|re|s|t|ve))?",on+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])","\\d+",ln].join("|"),"g"),mn=RegExp("[\\u200d\\ud800-\\udfff"+Ye+"\\ufe0e\\ufe0f]"),yn=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,gn=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],_n=-1,bn={};bn[ue]=bn[se]=bn[ce]=bn[le]=bn[fe]=bn[pe]=bn[de]=bn[he]=bn[ve]=!0,bn[Lt]=bn[zt]=bn[ie]=bn[Wt]=bn[ae]=bn[Bt]=bn[Vt]=bn[Gt]=bn[Kt]=bn[$t]=bn[Xt]=bn[Qt]=bn[Zt]=bn[te]=bn[re]=!1;var wn={};wn[Lt]=wn[zt]=wn[ie]=wn[ae]=wn[Wt]=wn[Bt]=wn[ue]=wn[se]=wn[ce]=wn[le]=wn[fe]=wn[Kt]=wn[$t]=wn[Xt]=wn[Qt]=wn[Zt]=wn[te]=wn[ee]=wn[pe]=wn[de]=wn[he]=wn[ve]=!0,wn[Vt]=wn[Gt]=wn[re]=!1;var xn={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"},En={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Tn={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},On={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},kn=parseFloat,Sn=parseInt,Nn="object"==typeof t&&t&&t.Object===Object&&t,Cn="object"==typeof self&&self&&self.Object===Object&&self,Pn=Nn||Cn||Function("return this")(),Mn="object"==typeof e&&e&&!e.nodeType&&e,jn=Mn&&"object"==typeof r&&r&&!r.nodeType&&r,In=jn&&jn.exports===Mn,An=In&&Nn.process,Rn=function(){try{var t=jn&&jn.require&&jn.require("util").types;return t||An&&An.binding&&An.binding("util")}catch(t){}}(),Dn=Rn&&Rn.isArrayBuffer,Fn=Rn&&Rn.isDate,Ln=Rn&&Rn.isMap,zn=Rn&&Rn.isRegExp,Un=Rn&&Rn.isSet,Wn=Rn&&Rn.isTypedArray,Bn=k("length"),qn=S(xn),Vn=S(En),Gn=S(Tn),Hn=function t(e){function n(t){if(es(t)&&!dp(t)&&!(t instanceof g)){if(t instanceof o)return t;if(pl.call(t,"__wrapped__"))return Qi(t)}return new o(t)}function r(){}function o(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=nt}function g(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=At,this.__views__=[]}function S(){var t=new g(this.__wrapped__);return t.__actions__=Io(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Io(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Io(this.__views__),t}function Y(){if(this.__filtered__){var t=new g(this);t.__dir__=-1,t.__filtered__=!0}else t=this.clone(),t.__dir__*=-1;return t}function Z(){var t=this.__wrapped__.value(),e=this.__dir__,n=dp(t),r=e<0,o=n?t.length:0,i=xi(0,o,this.__views__),a=i.start,u=i.end,s=u-a,c=r?u:a-1,l=this.__iteratees__,f=l.length,p=0,d=Bl(s,this.__takeCount__);if(!n||!r&&o==s&&d==s)return mo(t,this.__actions__);var h=[];t:for(;s--&&p<d;){c+=e;for(var v=-1,m=t[c];++v<f;){var y=l[v],g=y.iteratee,_=y.type,b=g(m);if(_==Ct)m=b;else if(!b){if(_==Nt)continue t;break t}}h[p++]=m}return h}function tt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Fe(){this.__data__=Ql?Ql(null):{},this.size=0}function Ye(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}function Xe(t){var e=this.__data__;if(Ql){var n=e[t];return n===at?nt:n}return pl.call(e,t)?e[t]:nt}function Je(t){var e=this.__data__;return Ql?e[t]!==nt:pl.call(e,t)}function Qe(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Ql&&e===nt?at:e,this}function Ze(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function tn(){this.__data__=[],this.size=0}function en(t){var e=this.__data__,n=Kn(e,t);return!(n<0)&&(n==e.length-1?e.pop():kl.call(e,n,1),--this.size,!0)}function nn(t){var e=this.__data__,n=Kn(e,t);return n<0?nt:e[n][1]}function rn(t){return Kn(this.__data__,t)>-1}function on(t,e){var n=this.__data__,r=Kn(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}function an(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function un(){this.size=0,this.__data__={hash:new tt,map:new($l||Ze),string:new tt}}function sn(t){var e=gi(this,t).delete(t);return this.size-=e?1:0,e}function cn(t){return gi(this,t).get(t)}function ln(t){return gi(this,t).has(t)}function fn(t,e){var n=gi(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}function hn(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new an;++e<n;)this.add(t[e])}function vn(t){return this.__data__.set(t,at),this}function mn(t){return this.__data__.has(t)}function yn(t){var e=this.__data__=new Ze(t);this.size=e.size}function xn(){this.__data__=new Ze,this.size=0}function En(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}function Tn(t){return this.__data__.get(t)}function On(t){return this.__data__.has(t)}function Nn(t,e){var n=this.__data__;if(n instanceof Ze){var r=n.__data__;if(!$l||r.length<rt-1)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new an(r)}return n.set(t,e),this.size=n.size,this}function Cn(t,e){var n=dp(t),r=!n&&pp(t),o=!n&&!r&&vp(t),i=!n&&!r&&!o&&bp(t),a=n||r||o||i,u=a?M(t.length,il):[],s=u.length;for(var c in t)!e&&!pl.call(t,c)||a&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Pi(c,s))||u.push(c);return u}function Mn(t){var e=t.length;return e?t[Xr(0,e-1)]:nt}function jn(t,e){return $i(Io(t),Zn(e,0,t.length))}function An(t){return $i(Io(t))}function Rn(t,e,n){(n===nt||Wu(t[e],n))&&(n!==nt||e in t)||Jn(t,e,n)}function Bn(t,e,n){var r=t[e];pl.call(t,e)&&Wu(r,n)&&(n!==nt||e in t)||Jn(t,e,n)}function Kn(t,e){for(var n=t.length;n--;)if(Wu(t[n][0],e))return n;return-1}function $n(t,e,n,r){return ff(t,function(t,o,i){e(r,t,n(t),i)}),r}function Yn(t,e){return t&&Ao(e,Ds(e),t)}function Xn(t,e){return t&&Ao(e,Fs(e),t)}function Jn(t,e,n){"__proto__"==e&&Pl?Pl(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function Qn(t,e){for(var n=-1,r=e.length,o=Qc(r),i=null==t;++n<r;)o[n]=i?nt:Is(t,e[n]);return o}function Zn(t,e,n){return t===t&&(n!==nt&&(t=t<=n?t:n),e!==nt&&(t=t>=e?t:e)),t}function tr(t,e,n,r,o,i){var a,s=e&ct,c=e&lt,l=e&ft;if(n&&(a=o?n(t,r,o,i):n(t)),a!==nt)return a;if(!ts(t))return t;var f=dp(t);if(f){if(a=Oi(t),!s)return Io(t,a)}else{var p=Ef(t),d=p==Gt||p==Ht;if(vp(t))return Eo(t,s);if(p==Xt||p==Lt||d&&!o){if(a=c||d?{}:ki(t),!s)return c?Do(t,Xn(a,t)):Ro(t,Yn(a,t))}else{if(!wn[p])return o?t:{};a=Si(t,p,s)}}i||(i=new yn);var h=i.get(t);if(h)return h;if(i.set(t,a),_p(t))return t.forEach(function(r){a.add(tr(r,e,n,r,t,i))}),a;if(yp(t))return t.forEach(function(r,o){a.set(o,tr(r,e,n,o,t,i))}),a;var v=l?c?hi:di:c?Fs:Ds,m=f?nt:v(t);return u(m||t,function(r,o){m&&(o=r,r=t[o]),Bn(a,o,tr(r,e,n,o,t,i))}),a}function er(t){var e=Ds(t);return function(n){return nr(n,t,e)}}function nr(t,e,n){var r=n.length;if(null==t)return!r;for(t=rl(t);r--;){var o=n[r],i=e[o],a=t[o];if(a===nt&&!(o in t)||!i(a))return!1}return!0}function rr(t,e,n){if("function"!=typeof t)throw new al(it);return kf(function(){t.apply(nt,n)},e)}function or(t,e,n,r){var o=-1,i=f,a=!0,u=t.length,s=[],c=e.length;if(!u)return s;n&&(e=d(e,I(n))),r?(i=p,a=!1):e.length>=rt&&(i=R,a=!1,e=new hn(e));t:for(;++o<u;){var l=t[o],h=null==n?l:n(l);if(l=r||0!==l?l:0,a&&h===h){for(var v=c;v--;)if(e[v]===h)continue t;s.push(l)}else i(e,h,r)||s.push(l)}return s}function ir(t,e){var n=!0;return ff(t,function(t,r,o){return n=!!e(t,r,o)}),n}function ar(t,e,n){for(var r=-1,o=t.length;++r<o;){var i=t[r],a=e(i);if(null!=a&&(u===nt?a===a&&!ps(a):n(a,u)))var u=a,s=i}return s}function ur(t,e,n,r){var o=t.length;for(n=gs(n),n<0&&(n=-n>o?0:o+n),r=r===nt||r>o?o:gs(r),r<0&&(r+=o),r=n>r?0:_s(r);n<r;)t[n++]=e;return t}function sr(t,e){var n=[];return ff(t,function(t,r,o){e(t,r,o)&&n.push(t)}),n}function cr(t,e,n,r,o){var i=-1,a=t.length;for(n||(n=Ci),o||(o=[]);++i<a;){var u=t[i];e>0&&n(u)?e>1?cr(u,e-1,n,r,o):h(o,u):r||(o[o.length]=u)}return o}function lr(t,e){return t&&df(t,e,Ds)}function fr(t,e){return t&&hf(t,e,Ds)}function pr(t,e){return l(e,function(e){return Ju(t[e])})}function dr(t,e){e=wo(e,t);for(var n=0,r=e.length;null!=t&&n<r;)t=t[Yi(e[n++])];return n&&n==r?t:nt}function hr(t,e,n){var r=e(t);return dp(t)?r:h(r,n(t))}function vr(t){return null==t?t===nt?ne:Yt:Cl&&Cl in rl(t)?wi(t):Wi(t)}function mr(t,e){return t>e}function yr(t,e){return null!=t&&pl.call(t,e)}function gr(t,e){return null!=t&&e in rl(t)}function _r(t,e,n){return t>=Bl(e,n)&&t<Wl(e,n)}function br(t,e,n){for(var r=n?p:f,o=t[0].length,i=t.length,a=i,u=Qc(i),s=1/0,c=[];a--;){var l=t[a];a&&e&&(l=d(l,I(e))),s=Bl(l.length,s),u[a]=!n&&(e||o>=120&&l.length>=120)?new hn(a&&l):nt}l=t[0];var h=-1,v=u[0];t:for(;++h<o&&c.length<s;){var m=l[h],y=e?e(m):m;if(m=n||0!==m?m:0,!(v?R(v,y):r(c,y,n))){for(a=i;--a;){var g=u[a];if(!(g?R(g,y):r(t[a],y,n)))continue t}v&&v.push(y),c.push(m)}}return c}function wr(t,e,n,r){return lr(t,function(t,o,i){e(r,n(t),o,i)}),r}function xr(t,e,n){e=wo(e,t),t=qi(t,e);var r=null==t?t:t[Yi(ya(e))];return null==r?nt:i(r,t,n)}function Er(t){return es(t)&&vr(t)==Lt}function Tr(t){return es(t)&&vr(t)==ie}function Or(t){return es(t)&&vr(t)==Bt}function kr(t,e,n,r,o){return t===e||(null==t||null==e||!es(t)&&!es(e)?t!==t&&e!==e:Sr(t,e,n,r,kr,o))}function Sr(t,e,n,r,o,i){var a=dp(t),u=dp(e),s=a?zt:Ef(t),c=u?zt:Ef(e);s=s==Lt?Xt:s,c=c==Lt?Xt:c;var l=s==Xt,f=c==Xt,p=s==c;if(p&&vp(t)){if(!vp(e))return!1;a=!0,l=!1}if(p&&!l)return i||(i=new yn),a||bp(t)?ci(t,e,n,r,o,i):li(t,e,s,n,r,o,i);if(!(n&pt)){var d=l&&pl.call(t,"__wrapped__"),h=f&&pl.call(e,"__wrapped__");if(d||h){var v=d?t.value():t,m=h?e.value():e;return i||(i=new yn),o(v,m,n,r,i)}}return!!p&&(i||(i=new yn),fi(t,e,n,r,o,i))}function Nr(t){return es(t)&&Ef(t)==Kt}function Cr(t,e,n,r){var o=n.length,i=o,a=!r;if(null==t)return!i;for(t=rl(t);o--;){var u=n[o];if(a&&u[2]?u[1]!==t[u[0]]:!(u[0]in t))return!1}for(;++o<i;){u=n[o];var s=u[0],c=t[s],l=u[1];if(a&&u[2]){if(c===nt&&!(s in t))return!1}else{var f=new yn;if(r)var p=r(c,l,s,t,e,f);if(!(p===nt?kr(l,c,pt|dt,r,f):p))return!1}}return!0}function Pr(t){return!(!ts(t)||Ri(t))&&(Ju(t)?gl:qe).test(Xi(t))}function Mr(t){return es(t)&&vr(t)==Qt}function jr(t){return es(t)&&Ef(t)==Zt}function Ir(t){return es(t)&&Zu(t.length)&&!!bn[vr(t)]}function Ar(t){return"function"==typeof t?t:null==t?kc:"object"==typeof t?dp(t)?Ur(t[0],t[1]):zr(t):Ac(t)}function Rr(t){if(!Di(t))return Ul(t);var e=[];for(var n in rl(t))pl.call(t,n)&&"constructor"!=n&&e.push(n);return e}function Dr(t){if(!ts(t))return Ui(t);var e=Di(t),n=[];for(var r in t)("constructor"!=r||!e&&pl.call(t,r))&&n.push(r);return n}function Fr(t,e){return t<e}function Lr(t,e){var n=-1,r=Bu(t)?Qc(t.length):[];return ff(t,function(t,o,i){r[++n]=e(t,o,i)}),r}function zr(t){var e=_i(t);return 1==e.length&&e[0][2]?Li(e[0][0],e[0][1]):function(n){return n===t||Cr(n,t,e)}}function Ur(t,e){return ji(t)&&Fi(e)?Li(Yi(t),e):function(n){var r=Is(n,t);return r===nt&&r===e?Rs(n,t):kr(e,r,pt|dt)}}function Wr(t,e,n,r,o){t!==e&&df(e,function(i,a){if(ts(i))o||(o=new yn),Br(t,e,a,n,Wr,r,o);else{var u=r?r(Gi(t,a),i,a+"",t,e,o):nt;u===nt&&(u=i),Rn(t,a,u)}},Fs)}function Br(t,e,n,r,o,i,a){var u=Gi(t,n),s=Gi(e,n),c=a.get(s);if(c)return void Rn(t,n,c);var l=i?i(u,s,n+"",t,e,a):nt,f=l===nt;if(f){var p=dp(s),d=!p&&vp(s),h=!p&&!d&&bp(s);l=s,p||d||h?dp(u)?l=u:qu(u)?l=Io(u):d?(f=!1,l=Eo(s,!0)):h?(f=!1,l=No(s,!0)):l=[]:cs(s)||pp(s)?(l=u,pp(u)?l=ws(u):ts(u)&&!Ju(u)||(l=ki(s))):f=!1}f&&(a.set(s,l),o(l,s,r,i,a),a.delete(s)),Rn(t,n,l)}function qr(t,e){var n=t.length;if(n)return e+=e<0?n:0,Pi(e,n)?t[e]:nt}function Vr(t,e,n){var r=-1;return e=d(e.length?e:[kc],I(yi())),C(Lr(t,function(t,n,o){return{criteria:d(e,function(e){return e(t)}),index:++r,value:t}}),function(t,e){return Po(t,e,n)})}function Gr(t,e){return Hr(t,e,function(e,n){return Rs(t,n)})}function Hr(t,e,n){for(var r=-1,o=e.length,i={};++r<o;){var a=e[r],u=dr(t,a);n(u,a)&&no(i,wo(a,t),u)}return i}function Kr(t){return function(e){return dr(e,t)}}function $r(t,e,n,r){var o=r?E:x,i=-1,a=e.length,u=t;for(t===e&&(e=Io(e)),n&&(u=d(t,I(n)));++i<a;)for(var s=0,c=e[i],l=n?n(c):c;(s=o(u,l,s,r))>-1;)u!==t&&kl.call(u,s,1),kl.call(t,s,1);return t}function Yr(t,e){for(var n=t?e.length:0,r=n-1;n--;){var o=e[n];if(n==r||o!==i){var i=o;Pi(o)?kl.call(t,o,1):po(t,o)}}return t}function Xr(t,e){return t+Rl(Gl()*(e-t+1))}function Jr(t,e,n,r){for(var o=-1,i=Wl(Al((e-t)/(n||1)),0),a=Qc(i);i--;)a[r?i:++o]=t,t+=n;return a}function Qr(t,e){var n="";if(!t||e<1||e>Mt)return n;do{e%2&&(n+=t),(e=Rl(e/2))&&(t+=t)}while(e);return n}function Zr(t,e){return Sf(Bi(t,e,kc),t+"")}function to(t){return Mn(Ys(t))}function eo(t,e){var n=Ys(t);return $i(n,Zn(e,0,n.length))}function no(t,e,n,r){if(!ts(t))return t;e=wo(e,t);for(var o=-1,i=e.length,a=i-1,u=t;null!=u&&++o<i;){var s=Yi(e[o]),c=n;if(o!=a){var l=u[s];c=r?r(l,s,u):nt,c===nt&&(c=ts(l)?l:Pi(e[o+1])?[]:{})}Bn(u,s,c),u=u[s]}return t}function ro(t){return $i(Ys(t))}function oo(t,e,n){var r=-1,o=t.length;e<0&&(e=-e>o?0:o+e),n=n>o?o:n,n<0&&(n+=o),o=e>n?0:n-e>>>0,e>>>=0;for(var i=Qc(o);++r<o;)i[r]=t[r+e];return i}function io(t,e){var n;return ff(t,function(t,r,o){return!(n=e(t,r,o))}),!!n}function ao(t,e,n){var r=0,o=null==t?r:t.length;if("number"==typeof e&&e===e&&o<=Dt){for(;r<o;){var i=r+o>>>1,a=t[i];null!==a&&!ps(a)&&(n?a<=e:a<e)?r=i+1:o=i}return o}return uo(t,e,kc,n)}function uo(t,e,n,r){e=n(e);for(var o=0,i=null==t?0:t.length,a=e!==e,u=null===e,s=ps(e),c=e===nt;o<i;){var l=Rl((o+i)/2),f=n(t[l]),p=f!==nt,d=null===f,h=f===f,v=ps(f);if(a)var m=r||h;else m=c?h&&(r||p):u?h&&p&&(r||!d):s?h&&p&&!d&&(r||!v):!d&&!v&&(r?f<=e:f<e);m?o=l+1:i=l}return Bl(i,Rt)}function so(t,e){for(var n=-1,r=t.length,o=0,i=[];++n<r;){var a=t[n],u=e?e(a):a;if(!n||!Wu(u,s)){var s=u;i[o++]=0===a?0:a}}return i}function co(t){return"number"==typeof t?t:ps(t)?It:+t}function lo(t){if("string"==typeof t)return t;if(dp(t))return d(t,lo)+"";if(ps(t))return cf?cf.call(t):"";var e=t+"";return"0"==e&&1/t==-Pt?"-0":e}function fo(t,e,n){var r=-1,o=f,i=t.length,a=!0,u=[],s=u;if(n)a=!1,o=p;else if(i>=rt){var c=e?null:_f(t);if(c)return K(c);a=!1,o=R,s=new hn}else s=e?[]:u;t:for(;++r<i;){var l=t[r],d=e?e(l):l;if(l=n||0!==l?l:0,a&&d===d){for(var h=s.length;h--;)if(s[h]===d)continue t;e&&s.push(d),u.push(l)}else o(s,d,n)||(s!==u&&s.push(d),u.push(l))}return u}function po(t,e){return e=wo(e,t),null==(t=qi(t,e))||delete t[Yi(ya(e))]}function ho(t,e,n,r){return no(t,e,n(dr(t,e)),r)}function vo(t,e,n,r){for(var o=t.length,i=r?o:-1;(r?i--:++i<o)&&e(t[i],i,t););return n?oo(t,r?0:i,r?i+1:o):oo(t,r?i+1:0,r?o:i)}function mo(t,e){var n=t;return n instanceof g&&(n=n.value()),v(e,function(t,e){return e.func.apply(e.thisArg,h([t],e.args))},n)}function yo(t,e,n){var r=t.length;if(r<2)return r?fo(t[0]):[];for(var o=-1,i=Qc(r);++o<r;)for(var a=t[o],u=-1;++u<r;)u!=o&&(i[o]=or(i[o]||a,t[u],e,n));return fo(cr(i,1),e,n)}function go(t,e,n){for(var r=-1,o=t.length,i=e.length,a={};++r<o;){var u=r<i?e[r]:nt;n(a,t[r],u)}return a}function _o(t){return qu(t)?t:[]}function bo(t){return"function"==typeof t?t:kc}function wo(t,e){return dp(t)?t:ji(t,e)?[t]:Nf(Es(t))}function xo(t,e,n){var r=t.length;return n=n===nt?r:n,!e&&n>=r?t:oo(t,e,n)}function Eo(t,e){if(e)return t.slice();var n=t.length,r=xl?xl(n):new t.constructor(n);return t.copy(r),r}function To(t){var e=new t.constructor(t.byteLength);return new wl(e).set(new wl(t)),e}function Oo(t,e){var n=e?To(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}function ko(t){var e=new t.constructor(t.source,Ue.exec(t));return e.lastIndex=t.lastIndex,e}function So(t){return sf?rl(sf.call(t)):{}}function No(t,e){var n=e?To(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function Co(t,e){if(t!==e){var n=t!==nt,r=null===t,o=t===t,i=ps(t),a=e!==nt,u=null===e,s=e===e,c=ps(e);if(!u&&!c&&!i&&t>e||i&&a&&s&&!u&&!c||r&&a&&s||!n&&s||!o)return 1;if(!r&&!i&&!c&&t<e||c&&n&&o&&!r&&!i||u&&n&&o||!a&&o||!s)return-1}return 0}function Po(t,e,n){for(var r=-1,o=t.criteria,i=e.criteria,a=o.length,u=n.length;++r<a;){var s=Co(o[r],i[r]);if(s){if(r>=u)return s;return s*("desc"==n[r]?-1:1)}}return t.index-e.index}function Mo(t,e,n,r){for(var o=-1,i=t.length,a=n.length,u=-1,s=e.length,c=Wl(i-a,0),l=Qc(s+c),f=!r;++u<s;)l[u]=e[u];for(;++o<a;)(f||o<i)&&(l[n[o]]=t[o]);for(;c--;)l[u++]=t[o++];return l}function jo(t,e,n,r){for(var o=-1,i=t.length,a=-1,u=n.length,s=-1,c=e.length,l=Wl(i-u,0),f=Qc(l+c),p=!r;++o<l;)f[o]=t[o];for(var d=o;++s<c;)f[d+s]=e[s];for(;++a<u;)(p||o<i)&&(f[d+n[a]]=t[o++]);return f}function Io(t,e){var n=-1,r=t.length;for(e||(e=Qc(r));++n<r;)e[n]=t[n];return e}function Ao(t,e,n,r){var o=!n;n||(n={});for(var i=-1,a=e.length;++i<a;){var u=e[i],s=r?r(n[u],t[u],u,n,t):nt;s===nt&&(s=t[u]),o?Jn(n,u,s):Bn(n,u,s)}return n}function Ro(t,e){return Ao(t,wf(t),e)}function Do(t,e){return Ao(t,xf(t),e)}function Fo(t,e){return function(n,r){var o=dp(n)?a:$n,i=e?e():{};return o(n,t,yi(r,2),i)}}function Lo(t){return Zr(function(e,n){var r=-1,o=n.length,i=o>1?n[o-1]:nt,a=o>2?n[2]:nt;for(i=t.length>3&&"function"==typeof i?(o--,i):nt,a&&Mi(n[0],n[1],a)&&(i=o<3?nt:i,o=1),e=rl(e);++r<o;){var u=n[r];u&&t(e,u,r,i)}return e})}function zo(t,e){return function(n,r){if(null==n)return n;if(!Bu(n))return t(n,r);for(var o=n.length,i=e?o:-1,a=rl(n);(e?i--:++i<o)&&!1!==r(a[i],i,a););return n}}function Uo(t){return function(e,n,r){for(var o=-1,i=rl(e),a=r(e),u=a.length;u--;){var s=a[t?u:++o];if(!1===n(i[s],s,i))break}return e}}function Wo(t,e,n){function r(){return(this&&this!==Pn&&this instanceof r?i:t).apply(o?n:this,arguments)}var o=e&ht,i=Vo(t);return r}function Bo(t){return function(e){e=Es(e);var n=W(e)?Q(e):nt,r=n?n[0]:e.charAt(0),o=n?xo(n,1).join(""):e.slice(1);return r[t]()+o}}function qo(t){return function(e){return v(wc(ec(e).replace(pn,"")),t,"")}}function Vo(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var n=lf(t.prototype),r=t.apply(n,e);return ts(r)?r:n}}function Go(t,e,n){function r(){for(var a=arguments.length,u=Qc(a),s=a,c=mi(r);s--;)u[s]=arguments[s];var l=a<3&&u[0]!==c&&u[a-1]!==c?[]:H(u,c);return(a-=l.length)<n?ni(t,e,$o,r.placeholder,nt,u,l,nt,nt,n-a):i(this&&this!==Pn&&this instanceof r?o:t,this,u)}var o=Vo(t);return r}function Ho(t){return function(e,n,r){var o=rl(e);if(!Bu(e)){var i=yi(n,3);e=Ds(e),n=function(t){return i(o[t],t,o)}}var a=t(e,n,r);return a>-1?o[i?e[a]:a]:nt}}function Ko(t){return pi(function(e){var n=e.length,r=n,i=o.prototype.thru;for(t&&e.reverse();r--;){var a=e[r];if("function"!=typeof a)throw new al(it);if(i&&!u&&"wrapper"==vi(a))var u=new o([],!0)}for(r=u?r:n;++r<n;){a=e[r];var s=vi(a),c="wrapper"==s?bf(a):nt;u=c&&Ai(c[0])&&c[1]==(wt|yt|_t|xt)&&!c[4].length&&1==c[9]?u[vi(c[0])].apply(u,c[3]):1==a.length&&Ai(a)?u[s]():u.thru(a)}return function(){var t=arguments,r=t[0];if(u&&1==t.length&&dp(r))return u.plant(r).value();for(var o=0,i=n?e[o].apply(this,t):r;++o<n;)i=e[o].call(this,i);return i}})}function $o(t,e,n,r,o,i,a,u,s,c){function l(){for(var y=arguments.length,g=Qc(y),_=y;_--;)g[_]=arguments[_];if(h)var b=mi(l),w=L(g,b);if(r&&(g=Mo(g,r,o,h)),i&&(g=jo(g,i,a,h)),y-=w,h&&y<c){var x=H(g,b);return ni(t,e,$o,l.placeholder,n,g,x,u,s,c-y)}var E=p?n:this,T=d?E[t]:t;return y=g.length,u?g=Vi(g,u):v&&y>1&&g.reverse(),f&&s<y&&(g.length=s),this&&this!==Pn&&this instanceof l&&(T=m||Vo(T)),T.apply(E,g)}var f=e&wt,p=e&ht,d=e&vt,h=e&(yt|gt),v=e&Et,m=d?nt:Vo(t);return l}function Yo(t,e){return function(n,r){return wr(n,t,e(r),{})}}function Xo(t,e){return function(n,r){var o;if(n===nt&&r===nt)return e;if(n!==nt&&(o=n),r!==nt){if(o===nt)return r;"string"==typeof n||"string"==typeof r?(n=lo(n),r=lo(r)):(n=co(n),r=co(r)),o=t(n,r)}return o}}function Jo(t){return pi(function(e){return e=d(e,I(yi())),Zr(function(n){var r=this;return t(e,function(t){return i(t,r,n)})})})}function Qo(t,e){e=e===nt?" ":lo(e);var n=e.length;if(n<2)return n?Qr(e,t):e;var r=Qr(e,Al(t/J(e)));return W(e)?xo(Q(r),0,t).join(""):r.slice(0,t)}function Zo(t,e,n,r){function o(){for(var e=-1,s=arguments.length,c=-1,l=r.length,f=Qc(l+s),p=this&&this!==Pn&&this instanceof o?u:t;++c<l;)f[c]=r[c];for(;s--;)f[c++]=arguments[++e];return i(p,a?n:this,f)}var a=e&ht,u=Vo(t);return o}function ti(t){return function(e,n,r){return r&&"number"!=typeof r&&Mi(e,n,r)&&(n=r=nt),e=ys(e),n===nt?(n=e,e=0):n=ys(n),r=r===nt?e<n?1:-1:ys(r),Jr(e,n,r,t)}}function ei(t){return function(e,n){return"string"==typeof e&&"string"==typeof n||(e=bs(e),n=bs(n)),t(e,n)}}function ni(t,e,n,r,o,i,a,u,s,c){var l=e&yt,f=l?a:nt,p=l?nt:a,d=l?i:nt,h=l?nt:i;e|=l?_t:bt,(e&=~(l?bt:_t))&mt||(e&=~(ht|vt));var v=[t,e,o,d,f,h,p,u,s,c],m=n.apply(nt,v);return Ai(t)&&Of(m,v),m.placeholder=r,Hi(m,t,e)}function ri(t){var e=nl[t];return function(t,n){if(t=bs(t),n=null==n?0:Bl(gs(n),292)){var r=(Es(t)+"e").split("e");return r=(Es(e(r[0]+"e"+(+r[1]+n)))+"e").split("e"),+(r[0]+"e"+(+r[1]-n))}return e(t)}}function oi(t){return function(e){var n=Ef(e);return n==Kt?V(e):n==Zt?$(e):j(e,t(e))}}function ii(t,e,n,r,o,i,a,u){var s=e&vt;if(!s&&"function"!=typeof t)throw new al(it);var c=r?r.length:0;if(c||(e&=~(_t|bt),r=o=nt),a=a===nt?a:Wl(gs(a),0),u=u===nt?u:gs(u),c-=o?o.length:0,e&bt){var l=r,f=o;r=o=nt}var p=s?nt:bf(t),d=[t,e,n,r,o,l,f,i,a,u];if(p&&zi(d,p),t=d[0],e=d[1],n=d[2],r=d[3],o=d[4],u=d[9]=d[9]===nt?s?0:t.length:Wl(d[9]-c,0),!u&&e&(yt|gt)&&(e&=~(yt|gt)),e&&e!=ht)h=e==yt||e==gt?Go(t,e,u):e!=_t&&e!=(ht|_t)||o.length?$o.apply(nt,d):Zo(t,e,n,r);else var h=Wo(t,e,n);return Hi((p?vf:Of)(h,d),t,e)}function ai(t,e,n,r){return t===nt||Wu(t,cl[n])&&!pl.call(r,n)?e:t}function ui(t,e,n,r,o,i){return ts(t)&&ts(e)&&(i.set(e,t),Wr(t,e,nt,ui,i),i.delete(e)),t}function si(t){return cs(t)?nt:t}function ci(t,e,n,r,o,i){var a=n&pt,u=t.length,s=e.length;if(u!=s&&!(a&&s>u))return!1;var c=i.get(t);if(c&&i.get(e))return c==e;var l=-1,f=!0,p=n&dt?new hn:nt;for(i.set(t,e),i.set(e,t);++l<u;){var d=t[l],h=e[l];if(r)var v=a?r(h,d,l,e,t,i):r(d,h,l,t,e,i);if(v!==nt){if(v)continue;f=!1;break}if(p){if(!y(e,function(t,e){if(!R(p,e)&&(d===t||o(d,t,n,r,i)))return p.push(e)})){f=!1;break}}else if(d!==h&&!o(d,h,n,r,i)){f=!1;break}}return i.delete(t),i.delete(e),f}function li(t,e,n,r,o,i,a){switch(n){case ae:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case ie:return!(t.byteLength!=e.byteLength||!i(new wl(t),new wl(e)));case Wt:case Bt:case $t:return Wu(+t,+e);case Vt:return t.name==e.name&&t.message==e.message;case Qt:case te:return t==e+"";case Kt:var u=V;case Zt:var s=r&pt;if(u||(u=K),t.size!=e.size&&!s)return!1;var c=a.get(t);if(c)return c==e;r|=dt,a.set(t,e);var l=ci(u(t),u(e),r,o,i,a);return a.delete(t),l;case ee:if(sf)return sf.call(t)==sf.call(e)}return!1}function fi(t,e,n,r,o,i){var a=n&pt,u=di(t),s=u.length;if(s!=di(e).length&&!a)return!1;for(var c=s;c--;){var l=u[c];if(!(a?l in e:pl.call(e,l)))return!1}var f=i.get(t);if(f&&i.get(e))return f==e;var p=!0;i.set(t,e),i.set(e,t);for(var d=a;++c<s;){l=u[c];var h=t[l],v=e[l];if(r)var m=a?r(v,h,l,e,t,i):r(h,v,l,t,e,i);if(!(m===nt?h===v||o(h,v,n,r,i):m)){p=!1;break}d||(d="constructor"==l)}if(p&&!d){var y=t.constructor,g=e.constructor;y!=g&&"constructor"in t&&"constructor"in e&&!("function"==typeof y&&y instanceof y&&"function"==typeof g&&g instanceof g)&&(p=!1)}return i.delete(t),i.delete(e),p}function pi(t){return Sf(Bi(t,nt,ca),t+"")}function di(t){return hr(t,Ds,wf)}function hi(t){return hr(t,Fs,xf)}function vi(t){for(var e=t.name+"",n=tf[e],r=pl.call(tf,e)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==t)return o.name}return e}function mi(t){return(pl.call(n,"placeholder")?n:t).placeholder}function yi(){var t=n.iteratee||Sc;return t=t===Sc?Ar:t,arguments.length?t(arguments[0],arguments[1]):t}function gi(t,e){var n=t.__data__;return Ii(e)?n["string"==typeof e?"string":"hash"]:n.map}function _i(t){for(var e=Ds(t),n=e.length;n--;){var r=e[n],o=t[r];e[n]=[r,o,Fi(o)]}return e}function bi(t,e){var n=U(t,e);return Pr(n)?n:nt}function wi(t){var e=pl.call(t,Cl),n=t[Cl];try{t[Cl]=nt;var r=!0}catch(t){}var o=vl.call(t);return r&&(e?t[Cl]=n:delete t[Cl]),o}function xi(t,e,n){for(var r=-1,o=n.length;++r<o;){var i=n[r],a=i.size;switch(i.type){case"drop":t+=a;break;case"dropRight":e-=a;break;case"take":e=Bl(e,t+a);break;case"takeRight":t=Wl(t,e-a)}}return{start:t,end:e}}function Ei(t){var e=t.match(Re);return e?e[1].split(De):[]}function Ti(t,e,n){e=wo(e,t);for(var r=-1,o=e.length,i=!1;++r<o;){var a=Yi(e[r]);if(!(i=null!=t&&n(t,a)))break;t=t[a]}return i||++r!=o?i:!!(o=null==t?0:t.length)&&Zu(o)&&Pi(a,o)&&(dp(t)||pp(t))}function Oi(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&pl.call(t,"index")&&(n.index=t.index,n.input=t.input),n}function ki(t){return"function"!=typeof t.constructor||Di(t)?{}:lf(El(t))}function Si(t,e,n){var r=t.constructor;switch(e){case ie:return To(t);case Wt:case Bt:return new r(+t);case ae:return Oo(t,n);case ue:case se:case ce:case le:case fe:case pe:case de:case he:case ve:return No(t,n);case Kt:return new r;case $t:case te:return new r(t);case Qt:return ko(t);case Zt:return new r;case ee:return So(t)}}function Ni(t,e){var n=e.length;if(!n)return t;var r=n-1;return e[r]=(n>1?"& ":"")+e[r],e=e.join(n>2?", ":" "),t.replace(Ae,"{\n/* [wrapped with "+e+"] */\n")}function Ci(t){return dp(t)||pp(t)||!!(Sl&&t&&t[Sl])}function Pi(t,e){var n=typeof t;return!!(e=null==e?Mt:e)&&("number"==n||"symbol"!=n&&Ge.test(t))&&t>-1&&t%1==0&&t<e}function Mi(t,e,n){if(!ts(n))return!1;var r=typeof e;return!!("number"==r?Bu(n)&&Pi(e,n.length):"string"==r&&e in n)&&Wu(n[e],t)}function ji(t,e){if(dp(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!ps(t))||(Se.test(t)||!ke.test(t)||null!=e&&t in rl(e))}function Ii(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}function Ai(t){var e=vi(t),r=n[e];if("function"!=typeof r||!(e in g.prototype))return!1;if(t===r)return!0;var o=bf(r);return!!o&&t===o[0]}function Ri(t){return!!hl&&hl in t}function Di(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||cl)}function Fi(t){return t===t&&!ts(t)}function Li(t,e){return function(n){return null!=n&&(n[t]===e&&(e!==nt||t in rl(n)))}}function zi(t,e){var n=t[1],r=e[1],o=n|r,i=o<(ht|vt|wt),a=r==wt&&n==yt||r==wt&&n==xt&&t[7].length<=e[8]||r==(wt|xt)&&e[7].length<=e[8]&&n==yt;if(!i&&!a)return t;r&ht&&(t[2]=e[2],o|=n&ht?0:mt);var u=e[3];if(u){var s=t[3];t[3]=s?Mo(s,u,e[4]):u,t[4]=s?H(t[3],st):e[4]}return u=e[5],u&&(s=t[5],t[5]=s?jo(s,u,e[6]):u,t[6]=s?H(t[5],st):e[6]),u=e[7],u&&(t[7]=u),r&wt&&(t[8]=null==t[8]?e[8]:Bl(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=o,t}function Ui(t){var e=[];if(null!=t)for(var n in rl(t))e.push(n);return e}function Wi(t){return vl.call(t)}function Bi(t,e,n){return e=Wl(e===nt?t.length-1:e,0),function(){for(var r=arguments,o=-1,a=Wl(r.length-e,0),u=Qc(a);++o<a;)u[o]=r[e+o];o=-1;for(var s=Qc(e+1);++o<e;)s[o]=r[o];return s[e]=n(u),i(t,this,s)}}function qi(t,e){return e.length<2?t:dr(t,oo(e,0,-1))}function Vi(t,e){for(var n=t.length,r=Bl(e.length,n),o=Io(t);r--;){var i=e[r];t[r]=Pi(i,n)?o[i]:nt}return t}function Gi(t,e){if("__proto__"!=e)return t[e]}function Hi(t,e,n){var r=e+"";return Sf(t,Ni(r,Ji(Ei(r),n)))}function Ki(t){var e=0,n=0;return function(){var r=ql(),o=St-(r-n);if(n=r,o>0){if(++e>=kt)return arguments[0]}else e=0;return t.apply(nt,arguments)}}function $i(t,e){var n=-1,r=t.length,o=r-1;for(e=e===nt?r:e;++n<e;){var i=Xr(n,o),a=t[i];t[i]=t[n],t[n]=a}return t.length=e,t}function Yi(t){if("string"==typeof t||ps(t))return t;var e=t+"";return"0"==e&&1/t==-Pt?"-0":e}function Xi(t){if(null!=t){try{return fl.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function Ji(t,e){return u(Ft,function(n){var r="_."+n[0];e&n[1]&&!f(t,r)&&t.push(r)}),t.sort()}function Qi(t){if(t instanceof g)return t.clone();var e=new o(t.__wrapped__,t.__chain__);return e.__actions__=Io(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}function Zi(t,e,n){e=(n?Mi(t,e,n):e===nt)?1:Wl(gs(e),0);var r=null==t?0:t.length;if(!r||e<1)return[];for(var o=0,i=0,a=Qc(Al(r/e));o<r;)a[i++]=oo(t,o,o+=e);return a}function ta(t){for(var e=-1,n=null==t?0:t.length,r=0,o=[];++e<n;){var i=t[e];i&&(o[r++]=i)}return o}function ea(){var t=arguments.length;if(!t)return[];for(var e=Qc(t-1),n=arguments[0],r=t;r--;)e[r-1]=arguments[r];return h(dp(n)?Io(n):[n],cr(e,1))}function na(t,e,n){var r=null==t?0:t.length;return r?(e=n||e===nt?1:gs(e),oo(t,e<0?0:e,r)):[]}function ra(t,e,n){var r=null==t?0:t.length;return r?(e=n||e===nt?1:gs(e),e=r-e,oo(t,0,e<0?0:e)):[]}function oa(t,e){return t&&t.length?vo(t,yi(e,3),!0,!0):[]}function ia(t,e){return t&&t.length?vo(t,yi(e,3),!0):[]}function aa(t,e,n,r){var o=null==t?0:t.length;return o?(n&&"number"!=typeof n&&Mi(t,e,n)&&(n=0,r=o),ur(t,e,n,r)):[]}function ua(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=null==n?0:gs(n);return o<0&&(o=Wl(r+o,0)),w(t,yi(e,3),o)}function sa(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=r-1;return n!==nt&&(o=gs(n),o=n<0?Wl(r+o,0):Bl(o,r-1)),w(t,yi(e,3),o,!0)}function ca(t){return(null==t?0:t.length)?cr(t,1):[]}function la(t){return(null==t?0:t.length)?cr(t,Pt):[]}function fa(t,e){return(null==t?0:t.length)?(e=e===nt?1:gs(e),cr(t,e)):[]}function pa(t){for(var e=-1,n=null==t?0:t.length,r={};++e<n;){var o=t[e];r[o[0]]=o[1]}return r}function da(t){return t&&t.length?t[0]:nt}function ha(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=null==n?0:gs(n);return o<0&&(o=Wl(r+o,0)),x(t,e,o)}function va(t){return(null==t?0:t.length)?oo(t,0,-1):[]}function ma(t,e){return null==t?"":zl.call(t,e)}function ya(t){var e=null==t?0:t.length;return e?t[e-1]:nt}function ga(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=r;return n!==nt&&(o=gs(n),o=o<0?Wl(r+o,0):Bl(o,r-1)),e===e?X(t,e,o):w(t,T,o,!0)}function _a(t,e){return t&&t.length?qr(t,gs(e)):nt}function ba(t,e){return t&&t.length&&e&&e.length?$r(t,e):t}function wa(t,e,n){return t&&t.length&&e&&e.length?$r(t,e,yi(n,2)):t}function xa(t,e,n){return t&&t.length&&e&&e.length?$r(t,e,nt,n):t}function Ea(t,e){var n=[];if(!t||!t.length)return n;var r=-1,o=[],i=t.length;for(e=yi(e,3);++r<i;){var a=t[r];e(a,r,t)&&(n.push(a),o.push(r))}return Yr(t,o),n}function Ta(t){return null==t?t:Hl.call(t)}function Oa(t,e,n){var r=null==t?0:t.length;return r?(n&&"number"!=typeof n&&Mi(t,e,n)?(e=0,n=r):(e=null==e?0:gs(e),n=n===nt?r:gs(n)),oo(t,e,n)):[]}function ka(t,e){return ao(t,e)}function Sa(t,e,n){return uo(t,e,yi(n,2))}function Na(t,e){var n=null==t?0:t.length;if(n){var r=ao(t,e);if(r<n&&Wu(t[r],e))return r}return-1}function Ca(t,e){return ao(t,e,!0)}function Pa(t,e,n){return uo(t,e,yi(n,2),!0)}function Ma(t,e){if(null==t?0:t.length){var n=ao(t,e,!0)-1;if(Wu(t[n],e))return n}return-1}function ja(t){return t&&t.length?so(t):[]}function Ia(t,e){return t&&t.length?so(t,yi(e,2)):[]}function Aa(t){var e=null==t?0:t.length;return e?oo(t,1,e):[]}function Ra(t,e,n){return t&&t.length?(e=n||e===nt?1:gs(e),oo(t,0,e<0?0:e)):[]}function Da(t,e,n){var r=null==t?0:t.length;return r?(e=n||e===nt?1:gs(e),e=r-e,oo(t,e<0?0:e,r)):[]}function Fa(t,e){return t&&t.length?vo(t,yi(e,3),!1,!0):[]}function La(t,e){return t&&t.length?vo(t,yi(e,3)):[]}function za(t){return t&&t.length?fo(t):[]}function Ua(t,e){return t&&t.length?fo(t,yi(e,2)):[]}function Wa(t,e){return e="function"==typeof e?e:nt,t&&t.length?fo(t,nt,e):[]}function Ba(t){if(!t||!t.length)return[];var e=0;return t=l(t,function(t){if(qu(t))return e=Wl(t.length,e),!0}),M(e,function(e){return d(t,k(e))})}function qa(t,e){if(!t||!t.length)return[];var n=Ba(t);return null==e?n:d(n,function(t){return i(e,nt,t)})}function Va(t,e){return go(t||[],e||[],Bn)}function Ga(t,e){return go(t||[],e||[],no)}function Ha(t){var e=n(t);return e.__chain__=!0,e}function Ka(t,e){return e(t),t}function $a(t,e){return e(t)}function Ya(){return Ha(this)}function Xa(){return new o(this.value(),this.__chain__)}function Ja(){this.__values__===nt&&(this.__values__=ms(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?nt:this.__values__[this.__index__++]}}function Qa(){return this}function Za(t){for(var e,n=this;n instanceof r;){var o=Qi(n);o.__index__=0,o.__values__=nt,e?i.__wrapped__=o:e=o;var i=o;n=n.__wrapped__}return i.__wrapped__=t,e}function tu(){var t=this.__wrapped__;if(t instanceof g){var e=t;return this.__actions__.length&&(e=new g(this)),e=e.reverse(),e.__actions__.push({func:$a,args:[Ta],thisArg:nt}),new o(e,this.__chain__)}return this.thru(Ta)}function eu(){return mo(this.__wrapped__,this.__actions__)}function nu(t,e,n){var r=dp(t)?c:ir;return n&&Mi(t,e,n)&&(e=nt),r(t,yi(e,3))}function ru(t,e){return(dp(t)?l:sr)(t,yi(e,3))}function ou(t,e){return cr(lu(t,e),1)}function iu(t,e){return cr(lu(t,e),Pt)}function au(t,e,n){return n=n===nt?1:gs(n),cr(lu(t,e),n)}function uu(t,e){return(dp(t)?u:ff)(t,yi(e,3))}function su(t,e){return(dp(t)?s:pf)(t,yi(e,3))}function cu(t,e,n,r){t=Bu(t)?t:Ys(t),n=n&&!r?gs(n):0;var o=t.length;return n<0&&(n=Wl(o+n,0)),fs(t)?n<=o&&t.indexOf(e,n)>-1:!!o&&x(t,e,n)>-1}function lu(t,e){return(dp(t)?d:Lr)(t,yi(e,3))}function fu(t,e,n,r){return null==t?[]:(dp(e)||(e=null==e?[]:[e]),n=r?nt:n,dp(n)||(n=null==n?[]:[n]),Vr(t,e,n))}function pu(t,e,n){var r=dp(t)?v:N,o=arguments.length<3;return r(t,yi(e,4),n,o,ff)}function du(t,e,n){var r=dp(t)?m:N,o=arguments.length<3;return r(t,yi(e,4),n,o,pf)}function hu(t,e){return(dp(t)?l:sr)(t,Nu(yi(e,3)))}function vu(t){return(dp(t)?Mn:to)(t)}function mu(t,e,n){return e=(n?Mi(t,e,n):e===nt)?1:gs(e),(dp(t)?jn:eo)(t,e)}function yu(t){return(dp(t)?An:ro)(t)}function gu(t){if(null==t)return 0;if(Bu(t))return fs(t)?J(t):t.length;var e=Ef(t);return e==Kt||e==Zt?t.size:Rr(t).length}function _u(t,e,n){var r=dp(t)?y:io;return n&&Mi(t,e,n)&&(e=nt),r(t,yi(e,3))}function bu(t,e){if("function"!=typeof e)throw new al(it);return t=gs(t),function(){if(--t<1)return e.apply(this,arguments)}}function wu(t,e,n){return e=n?nt:e,e=t&&null==e?t.length:e,ii(t,wt,nt,nt,nt,nt,e)}function xu(t,e){var n;if("function"!=typeof e)throw new al(it);return t=gs(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=nt),n}}function Eu(t,e,n){e=n?nt:e;var r=ii(t,yt,nt,nt,nt,nt,nt,e);return r.placeholder=Eu.placeholder,r}function Tu(t,e,n){e=n?nt:e;var r=ii(t,gt,nt,nt,nt,nt,nt,e);return r.placeholder=Tu.placeholder,r}function Ou(t,e,n){function r(e){var n=p,r=d;return p=d=nt,g=e,v=t.apply(r,n)}function o(t){return g=t,m=kf(u,e),_?r(t):v}function i(t){var n=t-y,r=t-g,o=e-n;return b?Bl(o,h-r):o}function a(t){var n=t-y,r=t-g;return y===nt||n>=e||n<0||b&&r>=h}function u(){var t=ep();if(a(t))return s(t);m=kf(u,i(t))}function s(t){return m=nt,w&&p?r(t):(p=d=nt,v)}function c(){m!==nt&&gf(m),g=0,p=y=d=m=nt}function l(){return m===nt?v:s(ep())}function f(){var t=ep(),n=a(t);if(p=arguments,d=this,y=t,n){if(m===nt)return o(y);if(b)return m=kf(u,e),r(y)}return m===nt&&(m=kf(u,e)),v}var p,d,h,v,m,y,g=0,_=!1,b=!1,w=!0;if("function"!=typeof t)throw new al(it);return e=bs(e)||0,ts(n)&&(_=!!n.leading,b="maxWait"in n,h=b?Wl(bs(n.maxWait)||0,e):h,w="trailing"in n?!!n.trailing:w),f.cancel=c,f.flush=l,f}function ku(t){return ii(t,Et)}function Su(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new al(it);var n=function(){var r=arguments,o=e?e.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=t.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(Su.Cache||an),n}function Nu(t){if("function"!=typeof t)throw new al(it);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}function Cu(t){return xu(2,t)}function Pu(t,e){if("function"!=typeof t)throw new al(it);return e=e===nt?e:gs(e),Zr(t,e)}function Mu(t,e){if("function"!=typeof t)throw new al(it);return e=null==e?0:Wl(gs(e),0),Zr(function(n){var r=n[e],o=xo(n,0,e);return r&&h(o,r),i(t,this,o)})}function ju(t,e,n){var r=!0,o=!0;if("function"!=typeof t)throw new al(it);return ts(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Ou(t,e,{leading:r,maxWait:e,trailing:o})}function Iu(t){return wu(t,1)}function Au(t,e){return up(bo(e),t)}function Ru(){if(!arguments.length)return[];var t=arguments[0];return dp(t)?t:[t]}function Du(t){return tr(t,ft)}function Fu(t,e){return e="function"==typeof e?e:nt,tr(t,ft,e)}function Lu(t){return tr(t,ct|ft)}function zu(t,e){return e="function"==typeof e?e:nt,tr(t,ct|ft,e)}function Uu(t,e){return null==e||nr(t,e,Ds(e))}function Wu(t,e){return t===e||t!==t&&e!==e}function Bu(t){return null!=t&&Zu(t.length)&&!Ju(t)}function qu(t){return es(t)&&Bu(t)}function Vu(t){return!0===t||!1===t||es(t)&&vr(t)==Wt}function Gu(t){return es(t)&&1===t.nodeType&&!cs(t)}function Hu(t){if(null==t)return!0;if(Bu(t)&&(dp(t)||"string"==typeof t||"function"==typeof t.splice||vp(t)||bp(t)||pp(t)))return!t.length;var e=Ef(t);if(e==Kt||e==Zt)return!t.size;if(Di(t))return!Rr(t).length;for(var n in t)if(pl.call(t,n))return!1;return!0}function Ku(t,e){return kr(t,e)}function $u(t,e,n){n="function"==typeof n?n:nt;var r=n?n(t,e):nt;return r===nt?kr(t,e,nt,n):!!r}function Yu(t){if(!es(t))return!1;var e=vr(t);return e==Vt||e==qt||"string"==typeof t.message&&"string"==typeof t.name&&!cs(t)}function Xu(t){return"number"==typeof t&&Ll(t)}function Ju(t){if(!ts(t))return!1;var e=vr(t);return e==Gt||e==Ht||e==Ut||e==Jt}function Qu(t){return"number"==typeof t&&t==gs(t)}function Zu(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=Mt}function ts(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function es(t){return null!=t&&"object"==typeof t}function ns(t,e){return t===e||Cr(t,e,_i(e))}function rs(t,e,n){return n="function"==typeof n?n:nt,Cr(t,e,_i(e),n)}function os(t){return ss(t)&&t!=+t}function is(t){if(Tf(t))throw new tl(ot);return Pr(t)}function as(t){return null===t}function us(t){return null==t}function ss(t){return"number"==typeof t||es(t)&&vr(t)==$t}function cs(t){if(!es(t)||vr(t)!=Xt)return!1;var e=El(t);if(null===e)return!0;var n=pl.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&fl.call(n)==ml}function ls(t){return Qu(t)&&t>=-Mt&&t<=Mt}function fs(t){return"string"==typeof t||!dp(t)&&es(t)&&vr(t)==te}function ps(t){return"symbol"==typeof t||es(t)&&vr(t)==ee}function ds(t){return t===nt}function hs(t){return es(t)&&Ef(t)==re}function vs(t){return es(t)&&vr(t)==oe}function ms(t){if(!t)return[];if(Bu(t))return fs(t)?Q(t):Io(t);if(Nl&&t[Nl])return q(t[Nl]());var e=Ef(t);return(e==Kt?V:e==Zt?K:Ys)(t)}function ys(t){if(!t)return 0===t?t:0;if((t=bs(t))===Pt||t===-Pt){return(t<0?-1:1)*jt}return t===t?t:0}function gs(t){var e=ys(t),n=e%1;return e===e?n?e-n:e:0}function _s(t){return t?Zn(gs(t),0,At):0}function bs(t){if("number"==typeof t)return t;if(ps(t))return It;if(ts(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=ts(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(Me,"");var n=Be.test(t);return n||Ve.test(t)?Sn(t.slice(2),n?2:8):We.test(t)?It:+t}function ws(t){return Ao(t,Fs(t))}function xs(t){return t?Zn(gs(t),-Mt,Mt):0===t?t:0}function Es(t){return null==t?"":lo(t)}function Ts(t,e){var n=lf(t);return null==e?n:Yn(n,e)}function Os(t,e){return b(t,yi(e,3),lr)}function ks(t,e){return b(t,yi(e,3),fr)}function Ss(t,e){return null==t?t:df(t,yi(e,3),Fs)}function Ns(t,e){return null==t?t:hf(t,yi(e,3),Fs)}function Cs(t,e){return t&&lr(t,yi(e,3))}function Ps(t,e){return t&&fr(t,yi(e,3))}function Ms(t){return null==t?[]:pr(t,Ds(t))}function js(t){return null==t?[]:pr(t,Fs(t))}function Is(t,e,n){var r=null==t?nt:dr(t,e);return r===nt?n:r}function As(t,e){return null!=t&&Ti(t,e,yr)}function Rs(t,e){return null!=t&&Ti(t,e,gr)}function Ds(t){return Bu(t)?Cn(t):Rr(t)}function Fs(t){return Bu(t)?Cn(t,!0):Dr(t)}function Ls(t,e){var n={};return e=yi(e,3),lr(t,function(t,r,o){Jn(n,e(t,r,o),t)}),n}function zs(t,e){var n={};return e=yi(e,3),lr(t,function(t,r,o){Jn(n,r,e(t,r,o))}),n}function Us(t,e){return Ws(t,Nu(yi(e)))}function Ws(t,e){if(null==t)return{};var n=d(hi(t),function(t){return[t]});return e=yi(e),Hr(t,n,function(t,n){return e(t,n[0])})}function Bs(t,e,n){e=wo(e,t);var r=-1,o=e.length;for(o||(o=1,t=nt);++r<o;){var i=null==t?nt:t[Yi(e[r])];i===nt&&(r=o,i=n),t=Ju(i)?i.call(t):i}return t}function qs(t,e,n){return null==t?t:no(t,e,n)}function Vs(t,e,n,r){return r="function"==typeof r?r:nt,null==t?t:no(t,e,n,r)}function Gs(t,e,n){var r=dp(t),o=r||vp(t)||bp(t);if(e=yi(e,4),null==n){var i=t&&t.constructor;n=o?r?new i:[]:ts(t)&&Ju(i)?lf(El(t)):{}}return(o?u:lr)(t,function(t,r,o){return e(n,t,r,o)}),n}function Hs(t,e){return null==t||po(t,e)}function Ks(t,e,n){return null==t?t:ho(t,e,bo(n))}function $s(t,e,n,r){return r="function"==typeof r?r:nt,null==t?t:ho(t,e,bo(n),r)}function Ys(t){return null==t?[]:A(t,Ds(t))}function Xs(t){return null==t?[]:A(t,Fs(t))}function Js(t,e,n){return n===nt&&(n=e,e=nt),n!==nt&&(n=bs(n),n=n===n?n:0),e!==nt&&(e=bs(e),e=e===e?e:0),Zn(bs(t),e,n)}function Qs(t,e,n){return e=ys(e),n===nt?(n=e,e=0):n=ys(n),t=bs(t),_r(t,e,n)}function Zs(t,e,n){if(n&&"boolean"!=typeof n&&Mi(t,e,n)&&(e=n=nt),n===nt&&("boolean"==typeof e?(n=e,e=nt):"boolean"==typeof t&&(n=t,t=nt)),t===nt&&e===nt?(t=0,e=1):(t=ys(t),e===nt?(e=t,t=0):e=ys(e)),t>e){var r=t;t=e,e=r}if(n||t%1||e%1){var o=Gl();return Bl(t+o*(e-t+kn("1e-"+((o+"").length-1))),e)}return Xr(t,e)}function tc(t){return Hp(Es(t).toLowerCase())}function ec(t){return(t=Es(t))&&t.replace(He,qn).replace(dn,"")}function nc(t,e,n){t=Es(t),e=lo(e);var r=t.length;n=n===nt?r:Zn(gs(n),0,r);var o=n;return(n-=e.length)>=0&&t.slice(n,o)==e}function rc(t){return t=Es(t),t&&xe.test(t)?t.replace(be,Vn):t}function oc(t){return t=Es(t),t&&Pe.test(t)?t.replace(Ce,"\\$&"):t}function ic(t,e,n){t=Es(t),e=gs(e);var r=e?J(t):0;if(!e||r>=e)return t;var o=(e-r)/2;return Qo(Rl(o),n)+t+Qo(Al(o),n)}function ac(t,e,n){t=Es(t),e=gs(e);var r=e?J(t):0;return e&&r<e?t+Qo(e-r,n):t}function uc(t,e,n){t=Es(t),e=gs(e);var r=e?J(t):0;return e&&r<e?Qo(e-r,n)+t:t}function sc(t,e,n){return n||null==e?e=0:e&&(e=+e),Vl(Es(t).replace(je,""),e||0)}function cc(t,e,n){return e=(n?Mi(t,e,n):e===nt)?1:gs(e),Qr(Es(t),e)}function lc(){var t=arguments,e=Es(t[0]);return t.length<3?e:e.replace(t[1],t[2])}function fc(t,e,n){return n&&"number"!=typeof n&&Mi(t,e,n)&&(e=n=nt),(n=n===nt?At:n>>>0)?(t=Es(t),t&&("string"==typeof e||null!=e&&!gp(e))&&!(e=lo(e))&&W(t)?xo(Q(t),0,n):t.split(e,n)):[]}function pc(t,e,n){return t=Es(t),n=null==n?0:Zn(gs(n),0,t.length),e=lo(e),t.slice(n,n+e.length)==e}function dc(t,e,r){var o=n.templateSettings;r&&Mi(t,e,r)&&(e=nt),t=Es(t),e=Op({},e,o,ai);var i,a,u=Op({},e.imports,o.imports,ai),s=Ds(u),c=A(u,s),l=0,f=e.interpolate||Ke,p="__p += '",d=ol((e.escape||Ke).source+"|"+f.source+"|"+(f===Oe?ze:Ke).source+"|"+(e.evaluate||Ke).source+"|$","g"),h="//# sourceURL="+("sourceURL"in e?e.sourceURL:"lodash.templateSources["+ ++_n+"]")+"\n";t.replace(d,function(e,n,r,o,u,s){return r||(r=o),p+=t.slice(l,s).replace($e,z),n&&(i=!0,p+="' +\n__e("+n+") +\n'"),u&&(a=!0,p+="';\n"+u+";\n__p += '"),r&&(p+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),l=s+e.length,e}),p+="';\n";var v=e.variable;v||(p="with (obj) {\n"+p+"\n}\n"),p=(a?p.replace(me,""):p).replace(ye,"$1").replace(ge,"$1;"),p="function("+(v||"obj")+") {\n"+(v?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var m=Kp(function(){return el(s,h+"return "+p).apply(nt,c)});if(m.source=p,Yu(m))throw m;return m}function hc(t){return Es(t).toLowerCase()}function vc(t){return Es(t).toUpperCase()}function mc(t,e,n){if((t=Es(t))&&(n||e===nt))return t.replace(Me,"");if(!t||!(e=lo(e)))return t;var r=Q(t),o=Q(e);return xo(r,D(r,o),F(r,o)+1).join("")}function yc(t,e,n){if((t=Es(t))&&(n||e===nt))return t.replace(Ie,"");if(!t||!(e=lo(e)))return t;var r=Q(t);return xo(r,0,F(r,Q(e))+1).join("")}function gc(t,e,n){if((t=Es(t))&&(n||e===nt))return t.replace(je,"");if(!t||!(e=lo(e)))return t;var r=Q(t);return xo(r,D(r,Q(e))).join("")}function _c(t,e){var n=Tt,r=Ot;if(ts(e)){var o="separator"in e?e.separator:o;n="length"in e?gs(e.length):n,r="omission"in e?lo(e.omission):r}t=Es(t);var i=t.length;if(W(t)){var a=Q(t);i=a.length}if(n>=i)return t;var u=n-J(r);if(u<1)return r;var s=a?xo(a,0,u).join(""):t.slice(0,u);if(o===nt)return s+r;if(a&&(u+=s.length-u),gp(o)){if(t.slice(u).search(o)){var c,l=s;for(o.global||(o=ol(o.source,Es(Ue.exec(o))+"g")),o.lastIndex=0;c=o.exec(l);)var f=c.index;s=s.slice(0,f===nt?u:f)}}else if(t.indexOf(lo(o),u)!=u){var p=s.lastIndexOf(o);p>-1&&(s=s.slice(0,p))}return s+r}function bc(t){return t=Es(t),t&&we.test(t)?t.replace(_e,Gn):t}function wc(t,e,n){return t=Es(t),e=n?nt:e,e===nt?B(t)?et(t):_(t):t.match(e)||[]}function xc(t){var e=null==t?0:t.length,n=yi();return t=e?d(t,function(t){if("function"!=typeof t[1])throw new al(it);return[n(t[0]),t[1]]}):[],Zr(function(n){for(var r=-1;++r<e;){var o=t[r];if(i(o[0],this,n))return i(o[1],this,n)}})}function Ec(t){return er(tr(t,ct))}function Tc(t){return function(){return t}}function Oc(t,e){return null==t||t!==t?e:t}function kc(t){return t}function Sc(t){return Ar("function"==typeof t?t:tr(t,ct))}function Nc(t){return zr(tr(t,ct))}function Cc(t,e){return Ur(t,tr(e,ct))}function Pc(t,e,n){var r=Ds(e),o=pr(e,r);null!=n||ts(e)&&(o.length||!r.length)||(n=e,e=t,t=this,o=pr(e,Ds(e)));var i=!(ts(n)&&"chain"in n&&!n.chain),a=Ju(t);return u(o,function(n){var r=e[n];t[n]=r,a&&(t.prototype[n]=function(){var e=this.__chain__;if(i||e){var n=t(this.__wrapped__);return(n.__actions__=Io(this.__actions__)).push({func:r,args:arguments,thisArg:t}),n.__chain__=e,n}return r.apply(t,h([this.value()],arguments))})}),t}function Mc(){return Pn._===this&&(Pn._=yl),this}function jc(){}function Ic(t){return t=gs(t),Zr(function(e){return qr(e,t)})}function Ac(t){return ji(t)?k(Yi(t)):Kr(t)}function Rc(t){return function(e){return null==t?nt:dr(t,e)}}function Dc(){return[]}function Fc(){return!1}function Lc(){return{}}function zc(){return""}function Uc(){return!0}function Wc(t,e){if((t=gs(t))<1||t>Mt)return[];var n=At,r=Bl(t,At);e=yi(e),t-=At;for(var o=M(r,e);++n<t;)e(n);return o}function Bc(t){return dp(t)?d(t,Yi):ps(t)?[t]:Io(Nf(Es(t)))}function qc(t){var e=++dl;return Es(t)+e}function Vc(t){return t&&t.length?ar(t,kc,mr):nt}function Gc(t,e){return t&&t.length?ar(t,yi(e,2),mr):nt}function Hc(t){return O(t,kc)}function Kc(t,e){return O(t,yi(e,2))}function $c(t){return t&&t.length?ar(t,kc,Fr):nt}function Yc(t,e){return t&&t.length?ar(t,yi(e,2),Fr):nt}function Xc(t){return t&&t.length?P(t,kc):0}function Jc(t,e){return t&&t.length?P(t,yi(e,2)):0}e=null==e?Pn:Hn.defaults(Pn.Object(),e,Hn.pick(Pn,gn));var Qc=e.Array,Zc=e.Date,tl=e.Error,el=e.Function,nl=e.Math,rl=e.Object,ol=e.RegExp,il=e.String,al=e.TypeError,ul=Qc.prototype,sl=el.prototype,cl=rl.prototype,ll=e["__core-js_shared__"],fl=sl.toString,pl=cl.hasOwnProperty,dl=0,hl=function(){var t=/[^.]+$/.exec(ll&&ll.keys&&ll.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),vl=cl.toString,ml=fl.call(rl),yl=Pn._,gl=ol("^"+fl.call(pl).replace(Ce,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),_l=In?e.Buffer:nt,bl=e.Symbol,wl=e.Uint8Array,xl=_l?_l.allocUnsafe:nt,El=G(rl.getPrototypeOf,rl),Tl=rl.create,Ol=cl.propertyIsEnumerable,kl=ul.splice,Sl=bl?bl.isConcatSpreadable:nt,Nl=bl?bl.iterator:nt,Cl=bl?bl.toStringTag:nt,Pl=function(){try{var t=bi(rl,"defineProperty");return t({},"",{}),t}catch(t){}}(),Ml=e.clearTimeout!==Pn.clearTimeout&&e.clearTimeout,jl=Zc&&Zc.now!==Pn.Date.now&&Zc.now,Il=e.setTimeout!==Pn.setTimeout&&e.setTimeout,Al=nl.ceil,Rl=nl.floor,Dl=rl.getOwnPropertySymbols,Fl=_l?_l.isBuffer:nt,Ll=e.isFinite,zl=ul.join,Ul=G(rl.keys,rl),Wl=nl.max,Bl=nl.min,ql=Zc.now,Vl=e.parseInt,Gl=nl.random,Hl=ul.reverse,Kl=bi(e,"DataView"),$l=bi(e,"Map"),Yl=bi(e,"Promise"),Xl=bi(e,"Set"),Jl=bi(e,"WeakMap"),Ql=bi(rl,"create"),Zl=Jl&&new Jl,tf={},ef=Xi(Kl),nf=Xi($l),rf=Xi(Yl),of=Xi(Xl),af=Xi(Jl),uf=bl?bl.prototype:nt,sf=uf?uf.valueOf:nt,cf=uf?uf.toString:nt,lf=function(){function t(){}return function(e){if(!ts(e))return{};if(Tl)return Tl(e);t.prototype=e;var n=new t;return t.prototype=nt,n}}();n.templateSettings={escape:Ee,evaluate:Te,interpolate:Oe,variable:"",imports:{_:n}},n.prototype=r.prototype,n.prototype.constructor=n,o.prototype=lf(r.prototype),o.prototype.constructor=o,g.prototype=lf(r.prototype),g.prototype.constructor=g,tt.prototype.clear=Fe,tt.prototype.delete=Ye,tt.prototype.get=Xe,tt.prototype.has=Je,tt.prototype.set=Qe,Ze.prototype.clear=tn,Ze.prototype.delete=en,Ze.prototype.get=nn,Ze.prototype.has=rn,Ze.prototype.set=on,an.prototype.clear=un,an.prototype.delete=sn,an.prototype.get=cn,an.prototype.has=ln,an.prototype.set=fn,hn.prototype.add=hn.prototype.push=vn,hn.prototype.has=mn,yn.prototype.clear=xn,yn.prototype.delete=En,yn.prototype.get=Tn,yn.prototype.has=On,yn.prototype.set=Nn;var ff=zo(lr),pf=zo(fr,!0),df=Uo(),hf=Uo(!0),vf=Zl?function(t,e){return Zl.set(t,e),t}:kc,mf=Pl?function(t,e){return Pl(t,"toString",{configurable:!0,enumerable:!1,value:Tc(e),writable:!0})}:kc,yf=Zr,gf=Ml||function(t){return Pn.clearTimeout(t)},_f=Xl&&1/K(new Xl([,-0]))[1]==Pt?function(t){return new Xl(t)}:jc,bf=Zl?function(t){return Zl.get(t)}:jc,wf=Dl?function(t){return null==t?[]:(t=rl(t),l(Dl(t),function(e){return Ol.call(t,e)}))}:Dc,xf=Dl?function(t){for(var e=[];t;)h(e,wf(t)),t=El(t);return e}:Dc,Ef=vr;(Kl&&Ef(new Kl(new ArrayBuffer(1)))!=ae||$l&&Ef(new $l)!=Kt||Yl&&"[object Promise]"!=Ef(Yl.resolve())||Xl&&Ef(new Xl)!=Zt||Jl&&Ef(new Jl)!=re)&&(Ef=function(t){var e=vr(t),n=e==Xt?t.constructor:nt,r=n?Xi(n):"";if(r)switch(r){case ef:return ae;case nf:return Kt;case rf:return"[object Promise]";case of:return Zt;case af:return re}return e});var Tf=ll?Ju:Fc,Of=Ki(vf),kf=Il||function(t,e){return Pn.setTimeout(t,e)},Sf=Ki(mf),Nf=function(t){var e=Su(t,function(t){return n.size===ut&&n.clear(),t}),n=e.cache;return e}(function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(Ne,function(t,n,r,o){e.push(r?o.replace(Le,"$1"):n||t)}),e}),Cf=Zr(function(t,e){return qu(t)?or(t,cr(e,1,qu,!0)):[]}),Pf=Zr(function(t,e){var n=ya(e);return qu(n)&&(n=nt),qu(t)?or(t,cr(e,1,qu,!0),yi(n,2)):[]}),Mf=Zr(function(t,e){var n=ya(e);return qu(n)&&(n=nt),qu(t)?or(t,cr(e,1,qu,!0),nt,n):[]}),jf=Zr(function(t){var e=d(t,_o);return e.length&&e[0]===t[0]?br(e):[]}),If=Zr(function(t){var e=ya(t),n=d(t,_o);return e===ya(n)?e=nt:n.pop(),n.length&&n[0]===t[0]?br(n,yi(e,2)):[]}),Af=Zr(function(t){var e=ya(t),n=d(t,_o);return e="function"==typeof e?e:nt,e&&n.pop(),n.length&&n[0]===t[0]?br(n,nt,e):[]}),Rf=Zr(ba),Df=pi(function(t,e){var n=null==t?0:t.length,r=Qn(t,e);return Yr(t,d(e,function(t){return Pi(t,n)?+t:t}).sort(Co)),r}),Ff=Zr(function(t){return fo(cr(t,1,qu,!0))}),Lf=Zr(function(t){var e=ya(t);return qu(e)&&(e=nt),fo(cr(t,1,qu,!0),yi(e,2))}),zf=Zr(function(t){var e=ya(t);return e="function"==typeof e?e:nt,fo(cr(t,1,qu,!0),nt,e)}),Uf=Zr(function(t,e){return qu(t)?or(t,e):[]}),Wf=Zr(function(t){return yo(l(t,qu))}),Bf=Zr(function(t){var e=ya(t);return qu(e)&&(e=nt),yo(l(t,qu),yi(e,2))}),qf=Zr(function(t){var e=ya(t);return e="function"==typeof e?e:nt,yo(l(t,qu),nt,e)}),Vf=Zr(Ba),Gf=Zr(function(t){var e=t.length,n=e>1?t[e-1]:nt;return n="function"==typeof n?(t.pop(),n):nt,qa(t,n)}),Hf=pi(function(t){var e=t.length,n=e?t[0]:0,r=this.__wrapped__,i=function(e){return Qn(e,t)};return!(e>1||this.__actions__.length)&&r instanceof g&&Pi(n)?(r=r.slice(n,+n+(e?1:0)),r.__actions__.push({func:$a,args:[i],thisArg:nt}),new o(r,this.__chain__).thru(function(t){return e&&!t.length&&t.push(nt),t})):this.thru(i)}),Kf=Fo(function(t,e,n){pl.call(t,n)?++t[n]:Jn(t,n,1)}),$f=Ho(ua),Yf=Ho(sa),Xf=Fo(function(t,e,n){pl.call(t,n)?t[n].push(e):Jn(t,n,[e])}),Jf=Zr(function(t,e,n){var r=-1,o="function"==typeof e,a=Bu(t)?Qc(t.length):[];return ff(t,function(t){a[++r]=o?i(e,t,n):xr(t,e,n)}),a}),Qf=Fo(function(t,e,n){Jn(t,n,e)}),Zf=Fo(function(t,e,n){t[n?0:1].push(e)},function(){return[[],[]]}),tp=Zr(function(t,e){if(null==t)return[];var n=e.length;return n>1&&Mi(t,e[0],e[1])?e=[]:n>2&&Mi(e[0],e[1],e[2])&&(e=[e[0]]),Vr(t,cr(e,1),[])}),ep=jl||function(){return Pn.Date.now()},np=Zr(function(t,e,n){var r=ht;if(n.length){var o=H(n,mi(np));r|=_t}return ii(t,r,e,n,o)}),rp=Zr(function(t,e,n){var r=ht|vt;if(n.length){var o=H(n,mi(rp));r|=_t}return ii(e,r,t,n,o)}),op=Zr(function(t,e){return rr(t,1,e)}),ip=Zr(function(t,e,n){return rr(t,bs(e)||0,n)});Su.Cache=an;var ap=yf(function(t,e){e=1==e.length&&dp(e[0])?d(e[0],I(yi())):d(cr(e,1),I(yi()));var n=e.length;return Zr(function(r){for(var o=-1,a=Bl(r.length,n);++o<a;)r[o]=e[o].call(this,r[o]);return i(t,this,r)})}),up=Zr(function(t,e){var n=H(e,mi(up));return ii(t,_t,nt,e,n)}),sp=Zr(function(t,e){var n=H(e,mi(sp));return ii(t,bt,nt,e,n)}),cp=pi(function(t,e){return ii(t,xt,nt,nt,nt,e)}),lp=ei(mr),fp=ei(function(t,e){return t>=e}),pp=Er(function(){return arguments}())?Er:function(t){return es(t)&&pl.call(t,"callee")&&!Ol.call(t,"callee")},dp=Qc.isArray,hp=Dn?I(Dn):Tr,vp=Fl||Fc,mp=Fn?I(Fn):Or,yp=Ln?I(Ln):Nr,gp=zn?I(zn):Mr,_p=Un?I(Un):jr,bp=Wn?I(Wn):Ir,wp=ei(Fr),xp=ei(function(t,e){return t<=e}),Ep=Lo(function(t,e){if(Di(e)||Bu(e))return void Ao(e,Ds(e),t);for(var n in e)pl.call(e,n)&&Bn(t,n,e[n])}),Tp=Lo(function(t,e){Ao(e,Fs(e),t)}),Op=Lo(function(t,e,n,r){Ao(e,Fs(e),t,r)}),kp=Lo(function(t,e,n,r){Ao(e,Ds(e),t,r)}),Sp=pi(Qn),Np=Zr(function(t,e){t=rl(t);var n=-1,r=e.length,o=r>2?e[2]:nt;for(o&&Mi(e[0],e[1],o)&&(r=1);++n<r;)for(var i=e[n],a=Fs(i),u=-1,s=a.length;++u<s;){var c=a[u],l=t[c];(l===nt||Wu(l,cl[c])&&!pl.call(t,c))&&(t[c]=i[c])}return t}),Cp=Zr(function(t){return t.push(nt,ui),i(Ap,nt,t)}),Pp=Yo(function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=vl.call(e)),t[e]=n},Tc(kc)),Mp=Yo(function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=vl.call(e)),pl.call(t,e)?t[e].push(n):t[e]=[n]},yi),jp=Zr(xr),Ip=Lo(function(t,e,n){Wr(t,e,n)}),Ap=Lo(function(t,e,n,r){Wr(t,e,n,r)}),Rp=pi(function(t,e){var n={};if(null==t)return n;var r=!1;e=d(e,function(e){return e=wo(e,t),r||(r=e.length>1),e}),Ao(t,hi(t),n),r&&(n=tr(n,ct|lt|ft,si));for(var o=e.length;o--;)po(n,e[o]);return n}),Dp=pi(function(t,e){return null==t?{}:Gr(t,e)}),Fp=oi(Ds),Lp=oi(Fs),zp=qo(function(t,e,n){return e=e.toLowerCase(),t+(n?tc(e):e)}),Up=qo(function(t,e,n){return t+(n?"-":"")+e.toLowerCase()}),Wp=qo(function(t,e,n){return t+(n?" ":"")+e.toLowerCase()}),Bp=Bo("toLowerCase"),qp=qo(function(t,e,n){return t+(n?"_":"")+e.toLowerCase()}),Vp=qo(function(t,e,n){return t+(n?" ":"")+Hp(e)}),Gp=qo(function(t,e,n){return t+(n?" ":"")+e.toUpperCase()}),Hp=Bo("toUpperCase"),Kp=Zr(function(t,e){try{return i(t,nt,e)}catch(t){return Yu(t)?t:new tl(t)}}),$p=pi(function(t,e){return u(e,function(e){e=Yi(e),Jn(t,e,np(t[e],t))}),t}),Yp=Ko(),Xp=Ko(!0),Jp=Zr(function(t,e){return function(n){return xr(n,t,e)}}),Qp=Zr(function(t,e){return function(n){return xr(t,n,e)}}),Zp=Jo(d),td=Jo(c),ed=Jo(y),nd=ti(),rd=ti(!0),od=Xo(function(t,e){return t+e},0),id=ri("ceil"),ad=Xo(function(t,e){return t/e},1),ud=ri("floor"),sd=Xo(function(t,e){return t*e},1),cd=ri("round"),ld=Xo(function(t,e){return t-e},0);return n.after=bu,n.ary=wu,n.assign=Ep,n.assignIn=Tp,n.assignInWith=Op,n.assignWith=kp,n.at=Sp,n.before=xu,n.bind=np,n.bindAll=$p,n.bindKey=rp,n.castArray=Ru,n.chain=Ha,n.chunk=Zi,n.compact=ta,n.concat=ea,n.cond=xc,n.conforms=Ec,n.constant=Tc,n.countBy=Kf,n.create=Ts,n.curry=Eu,n.curryRight=Tu,n.debounce=Ou,n.defaults=Np,n.defaultsDeep=Cp,n.defer=op,n.delay=ip,n.difference=Cf,n.differenceBy=Pf,n.differenceWith=Mf,n.drop=na,n.dropRight=ra,n.dropRightWhile=oa,n.dropWhile=ia,n.fill=aa,n.filter=ru,n.flatMap=ou,n.flatMapDeep=iu,n.flatMapDepth=au,n.flatten=ca,n.flattenDeep=la,n.flattenDepth=fa,n.flip=ku,n.flow=Yp,n.flowRight=Xp,n.fromPairs=pa,n.functions=Ms,n.functionsIn=js,n.groupBy=Xf,n.initial=va,n.intersection=jf,n.intersectionBy=If,n.intersectionWith=Af,n.invert=Pp,n.invertBy=Mp,n.invokeMap=Jf,n.iteratee=Sc,n.keyBy=Qf,n.keys=Ds,n.keysIn=Fs,n.map=lu,n.mapKeys=Ls,n.mapValues=zs,n.matches=Nc,n.matchesProperty=Cc,n.memoize=Su,n.merge=Ip,n.mergeWith=Ap,n.method=Jp,n.methodOf=Qp,n.mixin=Pc,n.negate=Nu,n.nthArg=Ic,n.omit=Rp,n.omitBy=Us,n.once=Cu,n.orderBy=fu,n.over=Zp,n.overArgs=ap,n.overEvery=td,n.overSome=ed,n.partial=up,n.partialRight=sp,n.partition=Zf,n.pick=Dp,n.pickBy=Ws,n.property=Ac,n.propertyOf=Rc,n.pull=Rf,n.pullAll=ba,n.pullAllBy=wa,n.pullAllWith=xa,n.pullAt=Df,n.range=nd,n.rangeRight=rd,n.rearg=cp,n.reject=hu,n.remove=Ea,n.rest=Pu,n.reverse=Ta,n.sampleSize=mu,n.set=qs,n.setWith=Vs,n.shuffle=yu,n.slice=Oa,n.sortBy=tp,n.sortedUniq=ja,n.sortedUniqBy=Ia,n.split=fc,n.spread=Mu,n.tail=Aa,n.take=Ra,n.takeRight=Da,n.takeRightWhile=Fa,n.takeWhile=La,n.tap=Ka,n.throttle=ju,n.thru=$a,n.toArray=ms,n.toPairs=Fp,n.toPairsIn=Lp,n.toPath=Bc,n.toPlainObject=ws,n.transform=Gs,n.unary=Iu,n.union=Ff,n.unionBy=Lf,n.unionWith=zf,n.uniq=za,n.uniqBy=Ua,n.uniqWith=Wa,n.unset=Hs,n.unzip=Ba,n.unzipWith=qa,n.update=Ks,n.updateWith=$s,n.values=Ys,n.valuesIn=Xs,n.without=Uf,n.words=wc,n.wrap=Au,n.xor=Wf,n.xorBy=Bf,n.xorWith=qf,n.zip=Vf,n.zipObject=Va,n.zipObjectDeep=Ga,n.zipWith=Gf,n.entries=Fp,n.entriesIn=Lp,n.extend=Tp,n.extendWith=Op,Pc(n,n),n.add=od,n.attempt=Kp,n.camelCase=zp,n.capitalize=tc,n.ceil=id,n.clamp=Js,n.clone=Du,n.cloneDeep=Lu,n.cloneDeepWith=zu,n.cloneWith=Fu,n.conformsTo=Uu,n.deburr=ec,n.defaultTo=Oc,n.divide=ad,n.endsWith=nc,n.eq=Wu,n.escape=rc,n.escapeRegExp=oc,n.every=nu,n.find=$f,n.findIndex=ua,n.findKey=Os,n.findLast=Yf,n.findLastIndex=sa,n.findLastKey=ks,n.floor=ud,n.forEach=uu,n.forEachRight=su,n.forIn=Ss,n.forInRight=Ns,n.forOwn=Cs,n.forOwnRight=Ps,n.get=Is,n.gt=lp,n.gte=fp,n.has=As,n.hasIn=Rs,n.head=da,n.identity=kc,n.includes=cu,n.indexOf=ha,n.inRange=Qs,n.invoke=jp,n.isArguments=pp,n.isArray=dp,n.isArrayBuffer=hp,n.isArrayLike=Bu,n.isArrayLikeObject=qu,n.isBoolean=Vu,n.isBuffer=vp,n.isDate=mp,n.isElement=Gu,n.isEmpty=Hu,n.isEqual=Ku,n.isEqualWith=$u,n.isError=Yu,n.isFinite=Xu,n.isFunction=Ju,n.isInteger=Qu,n.isLength=Zu,n.isMap=yp,n.isMatch=ns,n.isMatchWith=rs,n.isNaN=os,n.isNative=is,n.isNil=us,n.isNull=as,n.isNumber=ss,n.isObject=ts,n.isObjectLike=es,n.isPlainObject=cs,n.isRegExp=gp,n.isSafeInteger=ls,n.isSet=_p,n.isString=fs,n.isSymbol=ps,n.isTypedArray=bp,n.isUndefined=ds,n.isWeakMap=hs,n.isWeakSet=vs,n.join=ma,n.kebabCase=Up,n.last=ya,n.lastIndexOf=ga,n.lowerCase=Wp,n.lowerFirst=Bp,n.lt=wp,n.lte=xp,n.max=Vc,n.maxBy=Gc,n.mean=Hc,n.meanBy=Kc,n.min=$c,n.minBy=Yc,n.stubArray=Dc,n.stubFalse=Fc,n.stubObject=Lc,n.stubString=zc,n.stubTrue=Uc,n.multiply=sd,n.nth=_a,n.noConflict=Mc,n.noop=jc,n.now=ep,n.pad=ic,n.padEnd=ac,n.padStart=uc,n.parseInt=sc,n.random=Zs,n.reduce=pu,n.reduceRight=du,n.repeat=cc,n.replace=lc,n.result=Bs,n.round=cd,n.runInContext=t,n.sample=vu,n.size=gu,n.snakeCase=qp,n.some=_u,n.sortedIndex=ka,n.sortedIndexBy=Sa,n.sortedIndexOf=Na,n.sortedLastIndex=Ca,n.sortedLastIndexBy=Pa,n.sortedLastIndexOf=Ma,n.startCase=Vp,n.startsWith=pc,n.subtract=ld,n.sum=Xc,n.sumBy=Jc,n.template=dc,n.times=Wc,n.toFinite=ys,n.toInteger=gs,n.toLength=_s,n.toLower=hc,n.toNumber=bs,n.toSafeInteger=xs,n.toString=Es,n.toUpper=vc,n.trim=mc,n.trimEnd=yc,n.trimStart=gc,n.truncate=_c,n.unescape=bc,n.uniqueId=qc,n.upperCase=Gp,n.upperFirst=Hp,n.each=uu,n.eachRight=su,n.first=da,Pc(n,function(){var t={};return lr(n,function(e,r){pl.call(n.prototype,r)||(t[r]=e)}),t}(),{chain:!1}),n.VERSION="4.17.11",u(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){n[t].placeholder=n}),u(["drop","take"],function(t,e){g.prototype[t]=function(n){n=n===nt?1:Wl(gs(n),0);var r=this.__filtered__&&!e?new g(this):this.clone();return r.__filtered__?r.__takeCount__=Bl(n,r.__takeCount__):r.__views__.push({size:Bl(n,At),type:t+(r.__dir__<0?"Right":"")}),r},g.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}}),u(["filter","map","takeWhile"],function(t,e){var n=e+1,r=n==Nt||3==n;g.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:yi(t,3),type:n}),e.__filtered__=e.__filtered__||r,e}}),u(["head","last"],function(t,e){var n="take"+(e?"Right":"");g.prototype[t]=function(){return this[n](1).value()[0]}}),u(["initial","tail"],function(t,e){var n="drop"+(e?"":"Right");g.prototype[t]=function(){return this.__filtered__?new g(this):this[n](1)}}),g.prototype.compact=function(){return this.filter(kc)},g.prototype.find=function(t){return this.filter(t).head()},g.prototype.findLast=function(t){return this.reverse().find(t)},g.prototype.invokeMap=Zr(function(t,e){return"function"==typeof t?new g(this):this.map(function(n){return xr(n,t,e)})}),g.prototype.reject=function(t){return this.filter(Nu(yi(t)))},g.prototype.slice=function(t,e){t=gs(t);var n=this;return n.__filtered__&&(t>0||e<0)?new g(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==nt&&(e=gs(e),n=e<0?n.dropRight(-e):n.take(e-t)),n)},g.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},g.prototype.toArray=function(){return this.take(At)},lr(g.prototype,function(t,e){var r=/^(?:filter|find|map|reject)|While$/.test(e),i=/^(?:head|last)$/.test(e),a=n[i?"take"+("last"==e?"Right":""):e],u=i||/^find/.test(e);a&&(n.prototype[e]=function(){var e=this.__wrapped__,s=i?[1]:arguments,c=e instanceof g,l=s[0],f=c||dp(e),p=function(t){var e=a.apply(n,h([t],s));return i&&d?e[0]:e};f&&r&&"function"==typeof l&&1!=l.length&&(c=f=!1);var d=this.__chain__,v=!!this.__actions__.length,m=u&&!d,y=c&&!v;if(!u&&f){e=y?e:new g(this);var _=t.apply(e,s);return _.__actions__.push({func:$a,args:[p],thisArg:nt}),new o(_,d)}return m&&y?t.apply(this,s):(_=this.thru(p),m?i?_.value()[0]:_.value():_)})}),u(["pop","push","shift","sort","splice","unshift"],function(t){var e=ul[t],r=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",o=/^(?:pop|shift)$/.test(t);n.prototype[t]=function(){var t=arguments;if(o&&!this.__chain__){var n=this.value();return e.apply(dp(n)?n:[],t)}return this[r](function(n){return e.apply(dp(n)?n:[],t)})}}),lr(g.prototype,function(t,e){var r=n[e];if(r){var o=r.name+"";(tf[o]||(tf[o]=[])).push({name:e,func:r})}}),tf[$o(nt,vt).name]=[{name:"wrapper",func:nt}],g.prototype.clone=S,g.prototype.reverse=Y,g.prototype.value=Z,n.prototype.at=Hf,n.prototype.chain=Ya,n.prototype.commit=Xa,n.prototype.next=Ja,n.prototype.plant=Za,n.prototype.reverse=tu,n.prototype.toJSON=n.prototype.valueOf=n.prototype.value=eu,n.prototype.first=n.prototype.head,Nl&&(n.prototype[Nl]=Qa),n}();Pn._=Hn,(o=function(){return Hn}.call(e,n,e,r))!==nt&&(r.exports=o)}).call(this)}).call(e,n(52),n(173)(t))},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,n){"use strict";(function(t){function e(t,e,n){t[e]||Object[r](t,e,{writable:!0,configurable:!0,value:n})}if(n(175),n(372),n(373),t._babelPolyfill)throw new Error("only one instance of babel-polyfill is allowed");t._babelPolyfill=!0;var r="defineProperty";e(String.prototype,"padLeft","".padStart),e(String.prototype,"padRight","".padEnd),"pop,reverse,shift,keys,values,entries,indexOf,every,some,forEach,map,filter,find,findIndex,includes,join,slice,concat,push,splice,unshift,sort,lastIndexOf,reduce,reduceRight,copyWithin,fill".split(",").forEach(function(t){[][t]&&e(Array,t,Function.call.bind([][t]))})}).call(e,n(52))},function(t,e,n){n(176),n(178),n(179),n(180),n(181),n(182),n(183),n(184),n(185),n(186),n(187),n(188),n(189),n(190),n(191),n(192),n(194),n(195),n(196),n(197),n(198),n(199),n(200),n(201),n(202),n(203),n(204),n(205),n(206),n(207),n(208),n(209),n(210),n(211),n(212),n(213),n(214),n(215),n(216),n(217),n(218),n(219),n(220),n(221),n(222),n(223),n(224),n(225),n(226),n(227),n(228),n(229),n(230),n(231),n(232),n(233),n(234),n(235),n(236),n(237),n(238),n(239),n(240),n(241),n(242),n(243),n(244),n(245),n(246),n(247),n(248),n(249),n(250),n(251),n(252),n(253),n(254),n(256),n(257),n(259),n(260),n(261),n(262),n(263),n(264),n(265),n(267),n(268),n(269),n(270),n(271),n(272),n(273),n(274),n(275),n(276),n(277),n(278),n(279),n(89),n(280),n(281),n(119),n(282),n(283),n(284),n(285),n(286),n(122),n(124),n(125),n(287),n(288),n(289),n(290),n(291),n(292),n(293),n(294),n(295),n(296),n(297),n(298),n(299),n(300),n(301),n(302),n(303),n(304),n(305),n(306),n(307),n(308),n(309),n(310),n(311),n(312),n(313),n(314),n(315),n(316),n(317),n(318),n(319),n(320),n(321),n(322),n(323),n(324),n(325),n(326),n(327),n(328),n(329),n(330),n(331),n(332),n(333),n(334),n(335),n(336),n(337),n(338),n(339),n(340),n(341),n(342),n(343),n(344),n(345),n(346),n(347),n(348),n(349),n(350),n(351),n(352),n(353),n(354),n(355),n(356),n(357),n(358),n(359),n(360),n(361),n(362),n(363),n(364),n(365),n(366),n(367),n(368),n(369),n(370),n(371),t.exports=n(18)},function(t,e,n){"use strict";var r=n(2),o=n(14),i=n(6),a=n(0),u=n(12),s=n(31).KEY,c=n(3),l=n(53),f=n(44),p=n(35),d=n(5),h=n(102),v=n(69),m=n(177),y=n(56),g=n(1),_=n(4),b=n(15),w=n(23),x=n(34),E=n(38),T=n(105),O=n(16),k=n(7),S=n(36),N=O.f,C=k.f,P=T.f,M=r.Symbol,j=r.JSON,I=j&&j.stringify,A=d("_hidden"),R=d("toPrimitive"),D={}.propertyIsEnumerable,F=l("symbol-registry"),L=l("symbols"),z=l("op-symbols"),U=Object.prototype,W="function"==typeof M,B=r.QObject,q=!B||!B.prototype||!B.prototype.findChild,V=i&&c(function(){return 7!=E(C({},"a",{get:function(){return C(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=N(U,e);r&&delete U[e],C(t,e,n),r&&t!==U&&C(U,e,r)}:C,G=function(t){var e=L[t]=E(M.prototype);return e._k=t,e},H=W&&"symbol"==typeof M.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof M},K=function(t,e,n){return t===U&&K(z,e,n),g(t),e=w(e,!0),g(n),o(L,e)?(n.enumerable?(o(t,A)&&t[A][e]&&(t[A][e]=!1),n=E(n,{enumerable:x(0,!1)})):(o(t,A)||C(t,A,x(1,{})),t[A][e]=!0),V(t,e,n)):C(t,e,n)},$=function(t,e){g(t);for(var n,r=m(e=b(e)),o=0,i=r.length;i>o;)K(t,n=r[o++],e[n]);return t},Y=function(t,e){return void 0===e?E(t):$(E(t),e)},X=function(t){var e=D.call(this,t=w(t,!0));return!(this===U&&o(L,t)&&!o(z,t))&&(!(e||!o(this,t)||!o(L,t)||o(this,A)&&this[A][t])||e)},J=function(t,e){if(t=b(t),e=w(e,!0),t!==U||!o(L,e)||o(z,e)){var n=N(t,e);return!n||!o(L,e)||o(t,A)&&t[A][e]||(n.enumerable=!0),n}},Q=function(t){for(var e,n=P(b(t)),r=[],i=0;n.length>i;)o(L,e=n[i++])||e==A||e==s||r.push(e);return r},Z=function(t){for(var e,n=t===U,r=P(n?z:b(t)),i=[],a=0;r.length>a;)!o(L,e=r[a++])||n&&!o(U,e)||i.push(L[e]);return i};W||(M=function(){if(this instanceof M)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),e=function(n){this===U&&e.call(z,n),o(this,A)&&o(this[A],t)&&(this[A][t]=!1),V(this,t,x(1,n))};return i&&q&&V(U,t,{configurable:!0,set:e}),G(t)},u(M.prototype,"toString",function(){return this._k}),O.f=J,k.f=K,n(39).f=T.f=Q,n(49).f=X,n(55).f=Z,i&&!n(32)&&u(U,"propertyIsEnumerable",X,!0),h.f=function(t){return G(d(t))}),a(a.G+a.W+a.F*!W,{Symbol:M});for(var tt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),et=0;tt.length>et;)d(tt[et++]);for(var nt=S(d.store),rt=0;nt.length>rt;)v(nt[rt++]);a(a.S+a.F*!W,"Symbol",{for:function(t){return o(F,t+="")?F[t]:F[t]=M(t)},keyFor:function(t){if(!H(t))throw TypeError(t+" is not a symbol!");for(var e in F)if(F[e]===t)return e},useSetter:function(){q=!0},useSimple:function(){q=!1}}),a(a.S+a.F*!W,"Object",{create:Y,defineProperty:K,defineProperties:$,getOwnPropertyDescriptor:J,getOwnPropertyNames:Q,getOwnPropertySymbols:Z}),j&&a(a.S+a.F*(!W||c(function(){var t=M();return"[null]"!=I([t])||"{}"!=I({a:t})||"{}"!=I(Object(t))})),"JSON",{stringify:function(t){for(var e,n,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=e=r[1],(_(e)||void 0!==t)&&!H(t))return y(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!H(e))return e}),r[1]=e,I.apply(j,r)}}),M.prototype[R]||n(11)(M.prototype,R,M.prototype.valueOf),f(M,"Symbol"),f(Math,"Math",!0),f(r.JSON,"JSON",!0)},function(t,e,n){var r=n(36),o=n(55),i=n(49);t.exports=function(t){var e=r(t),n=o.f;if(n)for(var a,u=n(t),s=i.f,c=0;u.length>c;)s.call(t,a=u[c++])&&e.push(a);return e}},function(t,e,n){var r=n(0);r(r.S,"Object",{create:n(38)})},function(t,e,n){var r=n(0);r(r.S+r.F*!n(6),"Object",{defineProperty:n(7).f})},function(t,e,n){var r=n(0);r(r.S+r.F*!n(6),"Object",{defineProperties:n(104)})},function(t,e,n){var r=n(15),o=n(16).f;n(26)("getOwnPropertyDescriptor",function(){return function(t,e){return o(r(t),e)}})},function(t,e,n){var r=n(9),o=n(17);n(26)("getPrototypeOf",function(){return function(t){return o(r(t))}})},function(t,e,n){var r=n(9),o=n(36);n(26)("keys",function(){return function(t){return o(r(t))}})},function(t,e,n){n(26)("getOwnPropertyNames",function(){return n(105).f})},function(t,e,n){var r=n(4),o=n(31).onFreeze;n(26)("freeze",function(t){return function(e){return t&&r(e)?t(o(e)):e}})},function(t,e,n){var r=n(4),o=n(31).onFreeze;n(26)("seal",function(t){return function(e){return t&&r(e)?t(o(e)):e}})},function(t,e,n){var r=n(4),o=n(31).onFreeze;n(26)("preventExtensions",function(t){return function(e){return t&&r(e)?t(o(e)):e}})},function(t,e,n){var r=n(4);n(26)("isFrozen",function(t){return function(e){return!r(e)||!!t&&t(e)}})},function(t,e,n){var r=n(4);n(26)("isSealed",function(t){return function(e){return!r(e)||!!t&&t(e)}})},function(t,e,n){var r=n(4);n(26)("isExtensible",function(t){return function(e){return!!r(e)&&(!t||t(e))}})},function(t,e,n){var r=n(0);r(r.S+r.F,"Object",{assign:n(106)})},function(t,e,n){var r=n(0);r(r.S,"Object",{is:n(193)})},function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}},function(t,e,n){var r=n(0);r(r.S,"Object",{setPrototypeOf:n(73).set})},function(t,e,n){"use strict";var r=n(50),o={};o[n(5)("toStringTag")]="z",o+""!="[object z]"&&n(12)(Object.prototype,"toString",function(){return"[object "+r(this)+"]"},!0)},function(t,e,n){var r=n(0);r(r.P,"Function",{bind:n(107)})},function(t,e,n){var r=n(7).f,o=Function.prototype,i=/^\s*function ([^ (]*)/;"name"in o||n(6)&&r(o,"name",{configurable:!0,get:function(){try{return(""+this).match(i)[1]}catch(t){return""}}})},function(t,e,n){"use strict";var r=n(4),o=n(17),i=n(5)("hasInstance"),a=Function.prototype;i in a||n(7).f(a,i,{value:function(t){if("function"!=typeof this||!r(t))return!1;if(!r(this.prototype))return t instanceof this;for(;t=o(t);)if(this.prototype===t)return!0;return!1}})},function(t,e,n){var r=n(0),o=n(109);r(r.G+r.F*(parseInt!=o),{parseInt:o})},function(t,e,n){var r=n(0),o=n(110);r(r.G+r.F*(parseFloat!=o),{parseFloat:o})},function(t,e,n){"use strict";var r=n(2),o=n(14),i=n(20),a=n(75),u=n(23),s=n(3),c=n(39).f,l=n(16).f,f=n(7).f,p=n(45).trim,d=r.Number,h=d,v=d.prototype,m="Number"==i(n(38)(v)),y="trim"in String.prototype,g=function(t){var e=u(t,!1);if("string"==typeof e&&e.length>2){e=y?e.trim():p(e,3);var n,r,o,i=e.charCodeAt(0);if(43===i||45===i){if(88===(n=e.charCodeAt(2))||120===n)return NaN}else if(48===i){switch(e.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+e}for(var a,s=e.slice(2),c=0,l=s.length;c<l;c++)if((a=s.charCodeAt(c))<48||a>o)return NaN;return parseInt(s,r)}}return+e};if(!d(" 0o1")||!d("0b1")||d("+0x1")){d=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof d&&(m?s(function(){v.valueOf.call(n)}):"Number"!=i(n))?a(new h(g(e)),n,d):g(e)};for(var _,b=n(6)?c(h):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),w=0;b.length>w;w++)o(h,_=b[w])&&!o(d,_)&&f(d,_,l(h,_));d.prototype=v,v.constructor=d,n(12)(r,"Number",d)}},function(t,e,n){"use strict";var r=n(0),o=n(25),i=n(111),a=n(76),u=1..toFixed,s=Math.floor,c=[0,0,0,0,0,0],l="Number.toFixed: incorrect invocation!",f=function(t,e){for(var n=-1,r=e;++n<6;)r+=t*c[n],c[n]=r%1e7,r=s(r/1e7)},p=function(t){for(var e=6,n=0;--e>=0;)n+=c[e],c[e]=s(n/t),n=n%t*1e7},d=function(){for(var t=6,e="";--t>=0;)if(""!==e||0===t||0!==c[t]){var n=String(c[t]);e=""===e?n:e+a.call("0",7-n.length)+n}return e},h=function(t,e,n){return 0===e?n:e%2==1?h(t,e-1,n*t):h(t*t,e/2,n)},v=function(t){for(var e=0,n=t;n>=4096;)e+=12,n/=4096;for(;n>=2;)e+=1,n/=2;return e};r(r.P+r.F*(!!u&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!n(3)(function(){u.call({})})),"Number",{toFixed:function(t){var e,n,r,u,s=i(this,l),c=o(t),m="",y="0";if(c<0||c>20)throw RangeError(l);if(s!=s)return"NaN";if(s<=-1e21||s>=1e21)return String(s);if(s<0&&(m="-",s=-s),s>1e-21)if(e=v(s*h(2,69,1))-69,n=e<0?s*h(2,-e,1):s/h(2,e,1),n*=4503599627370496,(e=52-e)>0){for(f(0,n),r=c;r>=7;)f(1e7,0),r-=7;for(f(h(10,r,1),0),r=e-1;r>=23;)p(1<<23),r-=23;p(1<<r),f(1,1),p(2),y=d()}else f(0,n),f(1<<-e,0),y=d()+a.call("0",c);return c>0?(u=y.length,y=m+(u<=c?"0."+a.call("0",c-u)+y:y.slice(0,u-c)+"."+y.slice(u-c))):y=m+y,y}})},function(t,e,n){"use strict";var r=n(0),o=n(3),i=n(111),a=1..toPrecision;r(r.P+r.F*(o(function(){return"1"!==a.call(1,void 0)})||!o(function(){a.call({})})),"Number",{toPrecision:function(t){var e=i(this,"Number#toPrecision: incorrect invocation!");return void 0===t?a.call(e):a.call(e,t)}})},function(t,e,n){var r=n(0);r(r.S,"Number",{EPSILON:Math.pow(2,-52)})},function(t,e,n){var r=n(0),o=n(2).isFinite;r(r.S,"Number",{isFinite:function(t){return"number"==typeof t&&o(t)}})},function(t,e,n){var r=n(0);r(r.S,"Number",{isInteger:n(112)})},function(t,e,n){var r=n(0);r(r.S,"Number",{isNaN:function(t){return t!=t}})},function(t,e,n){var r=n(0),o=n(112),i=Math.abs;r(r.S,"Number",{isSafeInteger:function(t){return o(t)&&i(t)<=9007199254740991}})},function(t,e,n){var r=n(0);r(r.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(t,e,n){var r=n(0);r(r.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(t,e,n){var r=n(0),o=n(110);r(r.S+r.F*(Number.parseFloat!=o),"Number",{parseFloat:o})},function(t,e,n){var r=n(0),o=n(109);r(r.S+r.F*(Number.parseInt!=o),"Number",{parseInt:o})},function(t,e,n){var r=n(0),o=n(113),i=Math.sqrt,a=Math.acosh;r(r.S+r.F*!(a&&710==Math.floor(a(Number.MAX_VALUE))&&a(1/0)==1/0),"Math",{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?Math.log(t)+Math.LN2:o(t-1+i(t-1)*i(t+1))}})},function(t,e,n){function r(t){return isFinite(t=+t)&&0!=t?t<0?-r(-t):Math.log(t+Math.sqrt(t*t+1)):t}var o=n(0),i=Math.asinh;o(o.S+o.F*!(i&&1/i(0)>0),"Math",{asinh:r})},function(t,e,n){var r=n(0),o=Math.atanh;r(r.S+r.F*!(o&&1/o(-0)<0),"Math",{atanh:function(t){return 0==(t=+t)?t:Math.log((1+t)/(1-t))/2}})},function(t,e,n){var r=n(0),o=n(77);r(r.S,"Math",{cbrt:function(t){return o(t=+t)*Math.pow(Math.abs(t),1/3)}})},function(t,e,n){var r=n(0);r(r.S,"Math",{clz32:function(t){return(t>>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}})},function(t,e,n){var r=n(0),o=Math.exp;r(r.S,"Math",{cosh:function(t){return(o(t=+t)+o(-t))/2}})},function(t,e,n){var r=n(0),o=n(78);r(r.S+r.F*(o!=Math.expm1),"Math",{expm1:o})},function(t,e,n){var r=n(0);r(r.S,"Math",{fround:n(114)})},function(t,e,n){var r=n(0),o=Math.abs;r(r.S,"Math",{hypot:function(t,e){for(var n,r,i=0,a=0,u=arguments.length,s=0;a<u;)n=o(arguments[a++]),s<n?(r=s/n,i=i*r*r+1,s=n):n>0?(r=n/s,i+=r*r):i+=n;return s===1/0?1/0:s*Math.sqrt(i)}})},function(t,e,n){var r=n(0),o=Math.imul;r(r.S+r.F*n(3)(function(){return-5!=o(4294967295,5)||2!=o.length}),"Math",{imul:function(t,e){var n=+t,r=+e,o=65535&n,i=65535&r;return 0|o*i+((65535&n>>>16)*i+o*(65535&r>>>16)<<16>>>0)}})},function(t,e,n){var r=n(0);r(r.S,"Math",{log10:function(t){return Math.log(t)*Math.LOG10E}})},function(t,e,n){var r=n(0);r(r.S,"Math",{log1p:n(113)})},function(t,e,n){var r=n(0);r(r.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}})},function(t,e,n){var r=n(0);r(r.S,"Math",{sign:n(77)})},function(t,e,n){var r=n(0),o=n(78),i=Math.exp;r(r.S+r.F*n(3)(function(){return-2e-17!=!Math.sinh(-2e-17)}),"Math",{sinh:function(t){return Math.abs(t=+t)<1?(o(t)-o(-t))/2:(i(t-1)-i(-t-1))*(Math.E/2)}})},function(t,e,n){var r=n(0),o=n(78),i=Math.exp;r(r.S,"Math",{tanh:function(t){var e=o(t=+t),n=o(-t);return e==1/0?1:n==1/0?-1:(e-n)/(i(t)+i(-t))}})},function(t,e,n){var r=n(0);r(r.S,"Math",{trunc:function(t){return(t>0?Math.floor:Math.ceil)(t)}})},function(t,e,n){var r=n(0),o=n(37),i=String.fromCharCode,a=String.fromCodePoint;r(r.S+r.F*(!!a&&1!=a.length),"String",{fromCodePoint:function(t){for(var e,n=[],r=arguments.length,a=0;r>a;){if(e=+arguments[a++],o(e,1114111)!==e)throw RangeError(e+" is not a valid code point");n.push(e<65536?i(e):i(55296+((e-=65536)>>10),e%1024+56320))}return n.join("")}})},function(t,e,n){var r=n(0),o=n(15),i=n(8);r(r.S,"String",{raw:function(t){for(var e=o(t.raw),n=i(e.length),r=arguments.length,a=[],u=0;n>u;)a.push(String(e[u++])),u<r&&a.push(String(arguments[u]));return a.join("")}})},function(t,e,n){"use strict";n(45)("trim",function(t){return function(){return t(this,3)}})},function(t,e,n){"use strict";var r=n(79)(!0);n(80)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e,n){"use strict";var r=n(0),o=n(79)(!1);r(r.P,"String",{codePointAt:function(t){return o(this,t)}})},function(t,e,n){"use strict";var r=n(0),o=n(8),i=n(82),a="".endsWith;r(r.P+r.F*n(83)("endsWith"),"String",{endsWith:function(t){var e=i(this,t,"endsWith"),n=arguments.length>1?arguments[1]:void 0,r=o(e.length),u=void 0===n?r:Math.min(o(n),r),s=String(t);return a?a.call(e,s,u):e.slice(u-s.length,u)===s}})},function(t,e,n){"use strict";var r=n(0),o=n(82);r(r.P+r.F*n(83)("includes"),"String",{includes:function(t){return!!~o(this,t,"includes").indexOf(t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){var r=n(0);r(r.P,"String",{repeat:n(76)})},function(t,e,n){"use strict";var r=n(0),o=n(8),i=n(82),a="".startsWith;r(r.P+r.F*n(83)("startsWith"),"String",{startsWith:function(t){var e=i(this,t,"startsWith"),n=o(Math.min(arguments.length>1?arguments[1]:void 0,e.length)),r=String(t);return a?a.call(e,r,n):e.slice(n,n+r.length)===r}})},function(t,e,n){"use strict";n(13)("anchor",function(t){return function(e){return t(this,"a","name",e)}})},function(t,e,n){"use strict";n(13)("big",function(t){return function(){return t(this,"big","","")}})},function(t,e,n){"use strict";n(13)("blink",function(t){return function(){return t(this,"blink","","")}})},function(t,e,n){"use strict";n(13)("bold",function(t){return function(){return t(this,"b","","")}})},function(t,e,n){"use strict";n(13)("fixed",function(t){return function(){return t(this,"tt","","")}})},function(t,e,n){"use strict";n(13)("fontcolor",function(t){return function(e){return t(this,"font","color",e)}})},function(t,e,n){"use strict";n(13)("fontsize",function(t){return function(e){return t(this,"font","size",e)}})},function(t,e,n){"use strict";n(13)("italics",function(t){return function(){return t(this,"i","","")}})},function(t,e,n){"use strict";n(13)("link",function(t){return function(e){return t(this,"a","href",e)}})},function(t,e,n){"use strict";n(13)("small",function(t){return function(){return t(this,"small","","")}})},function(t,e,n){"use strict";n(13)("strike",function(t){return function(){return t(this,"strike","","")}})},function(t,e,n){"use strict";n(13)("sub",function(t){return function(){return t(this,"sub","","")}})},function(t,e,n){"use strict";n(13)("sup",function(t){return function(){return t(this,"sup","","")}})},function(t,e,n){var r=n(0);r(r.S,"Date",{now:function(){return(new Date).getTime()}})},function(t,e,n){"use strict";var r=n(0),o=n(9),i=n(23);r(r.P+r.F*n(3)(function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}),"Date",{toJSON:function(t){var e=o(this),n=i(e);return"number"!=typeof n||isFinite(n)?e.toISOString():null}})},function(t,e,n){var r=n(0),o=n(255);r(r.P+r.F*(Date.prototype.toISOString!==o),"Date",{toISOString:o})},function(t,e,n){"use strict";var r=n(3),o=Date.prototype.getTime,i=Date.prototype.toISOString,a=function(t){return t>9?t:"0"+t};t.exports=r(function(){return"0385-07-25T07:06:39.999Z"!=i.call(new Date(-5e13-1))})||!r(function(){i.call(new Date(NaN))})?function(){if(!isFinite(o.call(this)))throw RangeError("Invalid time value");var t=this,e=t.getUTCFullYear(),n=t.getUTCMilliseconds(),r=e<0?"-":e>9999?"+":"";return r+("00000"+Math.abs(e)).slice(r?-6:-4)+"-"+a(t.getUTCMonth()+1)+"-"+a(t.getUTCDate())+"T"+a(t.getUTCHours())+":"+a(t.getUTCMinutes())+":"+a(t.getUTCSeconds())+"."+(n>99?n:"0"+a(n))+"Z"}:i},function(t,e,n){var r=Date.prototype,o=r.toString,i=r.getTime;new Date(NaN)+""!="Invalid Date"&&n(12)(r,"toString",function(){var t=i.call(this);return t===t?o.call(this):"Invalid Date"})},function(t,e,n){var r=n(5)("toPrimitive"),o=Date.prototype;r in o||n(11)(o,r,n(258))},function(t,e,n){"use strict";var r=n(1),o=n(23);t.exports=function(t){if("string"!==t&&"number"!==t&&"default"!==t)throw TypeError("Incorrect hint");return o(r(this),"number"!=t)}},function(t,e,n){var r=n(0);r(r.S,"Array",{isArray:n(56)})},function(t,e,n){"use strict";var r=n(19),o=n(0),i=n(9),a=n(115),u=n(84),s=n(8),c=n(85),l=n(86);o(o.S+o.F*!n(58)(function(t){Array.from(t)}),"Array",{from:function(t){var e,n,o,f,p=i(t),d="function"==typeof this?this:Array,h=arguments.length,v=h>1?arguments[1]:void 0,m=void 0!==v,y=0,g=l(p);if(m&&(v=r(v,h>2?arguments[2]:void 0,2)),void 0==g||d==Array&&u(g))for(e=s(p.length),n=new d(e);e>y;y++)c(n,y,m?v(p[y],y):p[y]);else for(f=g.call(p),n=new d;!(o=f.next()).done;y++)c(n,y,m?a(f,v,[o.value,y],!0):o.value);return n.length=y,n}})},function(t,e,n){"use strict";var r=n(0),o=n(85);r(r.S+r.F*n(3)(function(){function t(){}return!(Array.of.call(t)instanceof t)}),"Array",{of:function(){for(var t=0,e=arguments.length,n=new("function"==typeof this?this:Array)(e);e>t;)o(n,t,arguments[t++]);return n.length=e,n}})},function(t,e,n){"use strict";var r=n(0),o=n(15),i=[].join;r(r.P+r.F*(n(48)!=Object||!n(21)(i)),"Array",{join:function(t){return i.call(o(this),void 0===t?",":t)}})},function(t,e,n){"use strict";var r=n(0),o=n(72),i=n(20),a=n(37),u=n(8),s=[].slice;r(r.P+r.F*n(3)(function(){o&&s.call(o)}),"Array",{slice:function(t,e){var n=u(this.length),r=i(this);if(e=void 0===e?n:e,"Array"==r)return s.call(this,t,e);for(var o=a(t,n),c=a(e,n),l=u(c-o),f=new Array(l),p=0;p<l;p++)f[p]="String"==r?this.charAt(o+p):this[o+p];return f}})},function(t,e,n){"use strict";var r=n(0),o=n(10),i=n(9),a=n(3),u=[].sort,s=[1,2,3];r(r.P+r.F*(a(function(){s.sort(void 0)})||!a(function(){s.sort(null)})||!n(21)(u)),"Array",{sort:function(t){return void 0===t?u.call(i(this)):u.call(i(this),o(t))}})},function(t,e,n){"use strict";var r=n(0),o=n(27)(0),i=n(21)([].forEach,!0);r(r.P+r.F*!i,"Array",{forEach:function(t){return o(this,t,arguments[1])}})},function(t,e,n){var r=n(4),o=n(56),i=n(5)("species");t.exports=function(t){var e;return o(t)&&(e=t.constructor,"function"!=typeof e||e!==Array&&!o(e.prototype)||(e=void 0),r(e)&&null===(e=e[i])&&(e=void 0)),void 0===e?Array:e}},function(t,e,n){"use strict";var r=n(0),o=n(27)(1);r(r.P+r.F*!n(21)([].map,!0),"Array",{map:function(t){return o(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(0),o=n(27)(2);r(r.P+r.F*!n(21)([].filter,!0),"Array",{filter:function(t){return o(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(0),o=n(27)(3);r(r.P+r.F*!n(21)([].some,!0),"Array",{some:function(t){return o(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(0),o=n(27)(4);r(r.P+r.F*!n(21)([].every,!0),"Array",{every:function(t){return o(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(0),o=n(116);r(r.P+r.F*!n(21)([].reduce,!0),"Array",{reduce:function(t){return o(this,t,arguments.length,arguments[1],!1)}})},function(t,e,n){"use strict";var r=n(0),o=n(116);r(r.P+r.F*!n(21)([].reduceRight,!0),"Array",{reduceRight:function(t){return o(this,t,arguments.length,arguments[1],!0)}})},function(t,e,n){"use strict";var r=n(0),o=n(54)(!1),i=[].indexOf,a=!!i&&1/[1].indexOf(1,-0)<0;r(r.P+r.F*(a||!n(21)(i)),"Array",{indexOf:function(t){return a?i.apply(this,arguments)||0:o(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(0),o=n(15),i=n(25),a=n(8),u=[].lastIndexOf,s=!!u&&1/[1].lastIndexOf(1,-0)<0;r(r.P+r.F*(s||!n(21)(u)),"Array",{lastIndexOf:function(t){if(s)return u.apply(this,arguments)||0;var e=o(this),n=a(e.length),r=n-1;for(arguments.length>1&&(r=Math.min(r,i(arguments[1]))),r<0&&(r=n+r);r>=0;r--)if(r in e&&e[r]===t)return r||0;return-1}})},function(t,e,n){var r=n(0);r(r.P,"Array",{copyWithin:n(117)}),n(33)("copyWithin")},function(t,e,n){var r=n(0);r(r.P,"Array",{fill:n(88)}),n(33)("fill")},function(t,e,n){"use strict";var r=n(0),o=n(27)(5),i=!0;"find"in[]&&Array(1).find(function(){i=!1}),r(r.P+r.F*i,"Array",{find:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),n(33)("find")},function(t,e,n){"use strict";var r=n(0),o=n(27)(6),i="findIndex",a=!0;i in[]&&Array(1)[i](function(){a=!1}),r(r.P+r.F*a,"Array",{findIndex:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),n(33)(i)},function(t,e,n){n(40)("Array")},function(t,e,n){var r=n(2),o=n(75),i=n(7).f,a=n(39).f,u=n(57),s=n(59),c=r.RegExp,l=c,f=c.prototype,p=/a/g,d=/a/g,h=new c(p)!==p;if(n(6)&&(!h||n(3)(function(){return d[n(5)("match")]=!1,c(p)!=p||c(d)==d||"/a/i"!=c(p,"i")}))){c=function(t,e){var n=this instanceof c,r=u(t),i=void 0===e;return!n&&r&&t.constructor===c&&i?t:o(h?new l(r&&!i?t.source:t,e):l((r=t instanceof c)?t.source:t,r&&i?s.call(t):e),n?this:f,c)};for(var v=a(l),m=0;v.length>m;)!function(t){t in c||i(c,t,{configurable:!0,get:function(){return l[t]},set:function(e){l[t]=e}})}(v[m++]);f.constructor=c,c.prototype=f,n(12)(r,"RegExp",c)}n(40)("RegExp")},function(t,e,n){"use strict";n(119);var r=n(1),o=n(59),i=n(6),a=/./.toString,u=function(t){n(12)(RegExp.prototype,"toString",t,!0)};n(3)(function(){return"/a/b"!=a.call({source:"a",flags:"b"})})?u(function(){var t=r(this);return"/".concat(t.source,"/","flags"in t?t.flags:!i&&t instanceof RegExp?o.call(t):void 0)}):"toString"!=a.name&&u(function(){return a.call(this)})},function(t,e,n){n(60)("match",1,function(t,e,n){return[function(n){"use strict";var r=t(this),o=void 0==n?void 0:n[e];return void 0!==o?o.call(n,r):new RegExp(n)[e](String(r))},n]})},function(t,e,n){n(60)("replace",2,function(t,e,n){return[function(r,o){"use strict";var i=t(this),a=void 0==r?void 0:r[e];return void 0!==a?a.call(r,i,o):n.call(String(i),r,o)},n]})},function(t,e,n){n(60)("search",1,function(t,e,n){return[function(n){"use strict";var r=t(this),o=void 0==n?void 0:n[e];return void 0!==o?o.call(n,r):new RegExp(n)[e](String(r))},n]})},function(t,e,n){n(60)("split",2,function(t,e,r){"use strict";var o=n(57),i=r,a=[].push,u="length";if("c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1)[u]||2!="ab".split(/(?:ab)*/)[u]||4!=".".split(/(.?)(.?)/)[u]||".".split(/()()/)[u]>1||"".split(/.?/)[u]){var s=void 0===/()??/.exec("")[1];r=function(t,e){var n=String(this);if(void 0===t&&0===e)return[];if(!o(t))return i.call(n,t,e);var r,c,l,f,p,d=[],h=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),v=0,m=void 0===e?4294967295:e>>>0,y=new RegExp(t.source,h+"g");for(s||(r=new RegExp("^"+y.source+"$(?!\\s)",h));(c=y.exec(n))&&!((l=c.index+c[0][u])>v&&(d.push(n.slice(v,c.index)),!s&&c[u]>1&&c[0].replace(r,function(){for(p=1;p<arguments[u]-2;p++)void 0===arguments[p]&&(c[p]=void 0)}),c[u]>1&&c.index<n[u]&&a.apply(d,c.slice(1)),f=c[0][u],v=l,d[u]>=m));)y.lastIndex===c.index&&y.lastIndex++;return v===n[u]?!f&&y.test("")||d.push(""):d.push(n.slice(v)),d[u]>m?d.slice(0,m):d}}else"0".split(void 0,0)[u]&&(r=function(t,e){return void 0===t&&0===e?[]:i.call(this,t,e)});return[function(n,o){var i=t(this),a=void 0==n?void 0:n[e];return void 0!==a?a.call(n,i,o):r.call(String(i),n,o)},r]})},function(t,e,n){"use strict";var r,o,i,a,u=n(32),s=n(2),c=n(19),l=n(50),f=n(0),p=n(4),d=n(10),h=n(41),v=n(42),m=n(61),y=n(90).set,g=n(91)(),_=n(92),b=n(120),w=n(62),x=n(121),E=s.TypeError,T=s.process,O=T&&T.versions,k=O&&O.v8||"",S=s.Promise,N="process"==l(T),C=function(){},P=o=_.f,M=!!function(){try{var t=S.resolve(1),e=(t.constructor={})[n(5)("species")]=function(t){t(C,C)};return(N||"function"==typeof PromiseRejectionEvent)&&t.then(C)instanceof e&&0!==k.indexOf("6.6")&&-1===w.indexOf("Chrome/66")}catch(t){}}(),j=function(t){var e;return!(!p(t)||"function"!=typeof(e=t.then))&&e},I=function(t,e){if(!t._n){t._n=!0;var n=t._c;g(function(){for(var r=t._v,o=1==t._s,i=0;n.length>i;)!function(e){var n,i,a,u=o?e.ok:e.fail,s=e.resolve,c=e.reject,l=e.domain;try{u?(o||(2==t._h&&D(t),t._h=1),!0===u?n=r:(l&&l.enter(),n=u(r),l&&(l.exit(),a=!0)),n===e.promise?c(E("Promise-chain cycle")):(i=j(n))?i.call(n,s,c):s(n)):c(r)}catch(t){l&&!a&&l.exit(),c(t)}}(n[i++]);t._c=[],t._n=!1,e&&!t._h&&A(t)})}},A=function(t){y.call(s,function(){var e,n,r,o=t._v,i=R(t);if(i&&(e=b(function(){N?T.emit("unhandledRejection",o,t):(n=s.onunhandledrejection)?n({promise:t,reason:o}):(r=s.console)&&r.error&&r.error("Unhandled promise rejection",o)}),t._h=N||R(t)?2:1),t._a=void 0,i&&e.e)throw e.v})},R=function(t){return 1!==t._h&&0===(t._a||t._c).length},D=function(t){y.call(s,function(){var e;N?T.emit("rejectionHandled",t):(e=s.onrejectionhandled)&&e({promise:t,reason:t._v})})},F=function(t){var e=this;e._d||(e._d=!0,e=e._w||e,e._v=t,e._s=2,e._a||(e._a=e._c.slice()),I(e,!0))},L=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw E("Promise can't be resolved itself");(e=j(t))?g(function(){var r={_w:n,_d:!1};try{e.call(t,c(L,r,1),c(F,r,1))}catch(t){F.call(r,t)}}):(n._v=t,n._s=1,I(n,!1))}catch(t){F.call({_w:n,_d:!1},t)}}};M||(S=function(t){h(this,S,"Promise","_h"),d(t),r.call(this);try{t(c(L,this,1),c(F,this,1))}catch(t){F.call(this,t)}},r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},r.prototype=n(43)(S.prototype,{then:function(t,e){var n=P(m(this,S));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=N?T.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&I(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),i=function(){var t=new r;this.promise=t,this.resolve=c(L,t,1),this.reject=c(F,t,1)},_.f=P=function(t){return t===S||t===a?new i(t):o(t)}),f(f.G+f.W+f.F*!M,{Promise:S}),n(44)(S,"Promise"),n(40)("Promise"),a=n(18).Promise,f(f.S+f.F*!M,"Promise",{reject:function(t){var e=P(this);return(0,e.reject)(t),e.promise}}),f(f.S+f.F*(u||!M),"Promise",{resolve:function(t){return x(u&&this===a?S:this,t)}}),f(f.S+f.F*!(M&&n(58)(function(t){S.all(t).catch(C)})),"Promise",{all:function(t){var e=this,n=P(e),r=n.resolve,o=n.reject,i=b(function(){var n=[],i=0,a=1;v(t,!1,function(t){var u=i++,s=!1;n.push(void 0),a++,e.resolve(t).then(function(t){s||(s=!0,n[u]=t,--a||r(n))},o)}),--a||r(n)});return i.e&&o(i.v),n.promise},race:function(t){var e=this,n=P(e),r=n.reject,o=b(function(){v(t,!1,function(t){e.resolve(t).then(n.resolve,r)})});return o.e&&r(o.v),n.promise}})},function(t,e,n){"use strict";var r=n(126),o=n(47);n(63)("WeakSet",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return r.def(o(this,"WeakSet"),t,!0)}},r,!1,!0)},function(t,e,n){"use strict";var r=n(0),o=n(64),i=n(93),a=n(1),u=n(37),s=n(8),c=n(4),l=n(2).ArrayBuffer,f=n(61),p=i.ArrayBuffer,d=i.DataView,h=o.ABV&&l.isView,v=p.prototype.slice,m=o.VIEW;r(r.G+r.W+r.F*(l!==p),{ArrayBuffer:p}),r(r.S+r.F*!o.CONSTR,"ArrayBuffer",{isView:function(t){return h&&h(t)||c(t)&&m in t}}),r(r.P+r.U+r.F*n(3)(function(){return!new p(2).slice(1,void 0).byteLength}),"ArrayBuffer",{slice:function(t,e){if(void 0!==v&&void 0===e)return v.call(a(this),t);for(var n=a(this).byteLength,r=u(t,n),o=u(void 0===e?n:e,n),i=new(f(this,p))(s(o-r)),c=new d(this),l=new d(i),h=0;r<o;)l.setUint8(h++,c.getUint8(r++));return i}}),n(40)("ArrayBuffer")},function(t,e,n){var r=n(0);r(r.G+r.W+r.F*!n(64).ABV,{DataView:n(93).DataView})},function(t,e,n){n(28)("Int8",1,function(t){return function(e,n,r){return t(this,e,n,r)}})},function(t,e,n){n(28)("Uint8",1,function(t){return function(e,n,r){return t(this,e,n,r)}})},function(t,e,n){n(28)("Uint8",1,function(t){return function(e,n,r){return t(this,e,n,r)}},!0)},function(t,e,n){n(28)("Int16",2,function(t){return function(e,n,r){return t(this,e,n,r)}})},function(t,e,n){n(28)("Uint16",2,function(t){return function(e,n,r){return t(this,e,n,r)}})},function(t,e,n){n(28)("Int32",4,function(t){return function(e,n,r){return t(this,e,n,r)}})},function(t,e,n){n(28)("Uint32",4,function(t){return function(e,n,r){return t(this,e,n,r)}})},function(t,e,n){n(28)("Float32",4,function(t){return function(e,n,r){return t(this,e,n,r)}})},function(t,e,n){n(28)("Float64",8,function(t){return function(e,n,r){return t(this,e,n,r)}})},function(t,e,n){var r=n(0),o=n(10),i=n(1),a=(n(2).Reflect||{}).apply,u=Function.apply;r(r.S+r.F*!n(3)(function(){a(function(){})}),"Reflect",{apply:function(t,e,n){var r=o(t),s=i(n);return a?a(r,e,s):u.call(r,e,s)}})},function(t,e,n){var r=n(0),o=n(38),i=n(10),a=n(1),u=n(4),s=n(3),c=n(107),l=(n(2).Reflect||{}).construct,f=s(function(){function t(){}return!(l(function(){},[],t)instanceof t)}),p=!s(function(){l(function(){})});r(r.S+r.F*(f||p),"Reflect",{construct:function(t,e){i(t),a(e);var n=arguments.length<3?t:i(arguments[2]);if(p&&!f)return l(t,e,n);if(t==n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var r=[null];return r.push.apply(r,e),new(c.apply(t,r))}var s=n.prototype,d=o(u(s)?s:Object.prototype),h=Function.apply.call(t,d,e);return u(h)?h:d}})},function(t,e,n){var r=n(7),o=n(0),i=n(1),a=n(23);o(o.S+o.F*n(3)(function(){Reflect.defineProperty(r.f({},1,{value:1}),1,{value:2})}),"Reflect",{defineProperty:function(t,e,n){i(t),e=a(e,!0),i(n);try{return r.f(t,e,n),!0}catch(t){return!1}}})},function(t,e,n){var r=n(0),o=n(16).f,i=n(1);r(r.S,"Reflect",{deleteProperty:function(t,e){var n=o(i(t),e);return!(n&&!n.configurable)&&delete t[e]}})},function(t,e,n){"use strict";var r=n(0),o=n(1),i=function(t){this._t=o(t),this._i=0;var e,n=this._k=[];for(e in t)n.push(e)};n(81)(i,"Object",function(){var t,e=this,n=e._k;do{if(e._i>=n.length)return{value:void 0,done:!0}}while(!((t=n[e._i++])in e._t));return{value:t,done:!1}}),r(r.S,"Reflect",{enumerate:function(t){return new i(t)}})},function(t,e,n){function r(t,e){var n,u,l=arguments.length<3?t:arguments[2];return c(t)===l?t[e]:(n=o.f(t,e))?a(n,"value")?n.value:void 0!==n.get?n.get.call(l):void 0:s(u=i(t))?r(u,e,l):void 0}var o=n(16),i=n(17),a=n(14),u=n(0),s=n(4),c=n(1);u(u.S,"Reflect",{get:r})},function(t,e,n){var r=n(16),o=n(0),i=n(1);o(o.S,"Reflect",{getOwnPropertyDescriptor:function(t,e){return r.f(i(t),e)}})},function(t,e,n){var r=n(0),o=n(17),i=n(1);r(r.S,"Reflect",{getPrototypeOf:function(t){return o(i(t))}})},function(t,e,n){var r=n(0);r(r.S,"Reflect",{has:function(t,e){return e in t}})},function(t,e,n){var r=n(0),o=n(1),i=Object.isExtensible;r(r.S,"Reflect",{isExtensible:function(t){return o(t),!i||i(t)}})},function(t,e,n){var r=n(0);r(r.S,"Reflect",{ownKeys:n(128)})},function(t,e,n){var r=n(0),o=n(1),i=Object.preventExtensions;r(r.S,"Reflect",{preventExtensions:function(t){o(t);try{return i&&i(t),!0}catch(t){return!1}}})},function(t,e,n){function r(t,e,n){var s,p,d=arguments.length<4?t:arguments[3],h=i.f(l(t),e);if(!h){if(f(p=a(t)))return r(p,e,n,d);h=c(0)}if(u(h,"value")){if(!1===h.writable||!f(d))return!1;if(s=i.f(d,e)){if(s.get||s.set||!1===s.writable)return!1;s.value=n,o.f(d,e,s)}else o.f(d,e,c(0,n));return!0}return void 0!==h.set&&(h.set.call(d,n),!0)}var o=n(7),i=n(16),a=n(17),u=n(14),s=n(0),c=n(34),l=n(1),f=n(4);s(s.S,"Reflect",{set:r})},function(t,e,n){var r=n(0),o=n(73);o&&r(r.S,"Reflect",{setPrototypeOf:function(t,e){o.check(t,e);try{return o.set(t,e),!0}catch(t){return!1}}})},function(t,e,n){"use strict";var r=n(0),o=n(54)(!0);r(r.P,"Array",{includes:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),n(33)("includes")},function(t,e,n){"use strict";var r=n(0),o=n(129),i=n(9),a=n(8),u=n(10),s=n(87);r(r.P,"Array",{flatMap:function(t){var e,n,r=i(this);return u(t),e=a(r.length),n=s(r,0),o(n,r,r,e,0,1,t,arguments[1]),n}}),n(33)("flatMap")},function(t,e,n){"use strict";var r=n(0),o=n(129),i=n(9),a=n(8),u=n(25),s=n(87);r(r.P,"Array",{flatten:function(){var t=arguments[0],e=i(this),n=a(e.length),r=s(e,0);return o(r,e,e,n,0,void 0===t?1:u(t)),r}}),n(33)("flatten")},function(t,e,n){"use strict";var r=n(0),o=n(79)(!0);r(r.P,"String",{at:function(t){return o(this,t)}})},function(t,e,n){"use strict";var r=n(0),o=n(130),i=n(62);r(r.P+r.F*/Version\/10\.\d+(\.\d+)? Safari\//.test(i),"String",{padStart:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0,!0)}})},function(t,e,n){"use strict";var r=n(0),o=n(130),i=n(62);r(r.P+r.F*/Version\/10\.\d+(\.\d+)? Safari\//.test(i),"String",{padEnd:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0,!1)}})},function(t,e,n){"use strict";n(45)("trimLeft",function(t){return function(){return t(this,1)}},"trimStart")},function(t,e,n){"use strict";n(45)("trimRight",function(t){return function(){return t(this,2)}},"trimEnd")},function(t,e,n){"use strict";var r=n(0),o=n(24),i=n(8),a=n(57),u=n(59),s=RegExp.prototype,c=function(t,e){this._r=t,this._s=e};n(81)(c,"RegExp String",function(){var t=this._r.exec(this._s);return{value:t,done:null===t}}),r(r.P,"String",{matchAll:function(t){if(o(this),!a(t))throw TypeError(t+" is not a regexp!");var e=String(this),n="flags"in s?String(t.flags):u.call(t),r=new RegExp(t.source,~n.indexOf("g")?n:"g"+n);return r.lastIndex=i(t.lastIndex),new c(r,e)}})},function(t,e,n){n(69)("asyncIterator")},function(t,e,n){n(69)("observable")},function(t,e,n){var r=n(0),o=n(128),i=n(15),a=n(16),u=n(85);r(r.S,"Object",{getOwnPropertyDescriptors:function(t){for(var e,n,r=i(t),s=a.f,c=o(r),l={},f=0;c.length>f;)void 0!==(n=s(r,e=c[f++]))&&u(l,e,n);return l}})},function(t,e,n){var r=n(0),o=n(131)(!1);r(r.S,"Object",{values:function(t){return o(t)}})},function(t,e,n){var r=n(0),o=n(131)(!0);r(r.S,"Object",{entries:function(t){return o(t)}})},function(t,e,n){"use strict";var r=n(0),o=n(9),i=n(10),a=n(7);n(6)&&r(r.P+n(65),"Object",{__defineGetter__:function(t,e){a.f(o(this),t,{get:i(e),enumerable:!0,configurable:!0})}})},function(t,e,n){"use strict";var r=n(0),o=n(9),i=n(10),a=n(7);n(6)&&r(r.P+n(65),"Object",{__defineSetter__:function(t,e){a.f(o(this),t,{set:i(e),enumerable:!0,configurable:!0})}})},function(t,e,n){"use strict";var r=n(0),o=n(9),i=n(23),a=n(17),u=n(16).f;n(6)&&r(r.P+n(65),"Object",{__lookupGetter__:function(t){var e,n=o(this),r=i(t,!0);do{if(e=u(n,r))return e.get}while(n=a(n))}})},function(t,e,n){"use strict";var r=n(0),o=n(9),i=n(23),a=n(17),u=n(16).f;n(6)&&r(r.P+n(65),"Object",{__lookupSetter__:function(t){var e,n=o(this),r=i(t,!0);do{if(e=u(n,r))return e.set}while(n=a(n))}})},function(t,e,n){var r=n(0);r(r.P+r.R,"Map",{toJSON:n(132)("Map")})},function(t,e,n){var r=n(0);r(r.P+r.R,"Set",{toJSON:n(132)("Set")})},function(t,e,n){n(66)("Map")},function(t,e,n){n(66)("Set")},function(t,e,n){n(66)("WeakMap")},function(t,e,n){n(66)("WeakSet")},function(t,e,n){n(67)("Map")},function(t,e,n){n(67)("Set")},function(t,e,n){n(67)("WeakMap")},function(t,e,n){n(67)("WeakSet")},function(t,e,n){var r=n(0);r(r.G,{global:n(2)})},function(t,e,n){var r=n(0);r(r.S,"System",{global:n(2)})},function(t,e,n){var r=n(0),o=n(20);r(r.S,"Error",{isError:function(t){return"Error"===o(t)}})},function(t,e,n){var r=n(0);r(r.S,"Math",{clamp:function(t,e,n){return Math.min(n,Math.max(e,t))}})},function(t,e,n){var r=n(0);r(r.S,"Math",{DEG_PER_RAD:Math.PI/180})},function(t,e,n){var r=n(0),o=180/Math.PI;r(r.S,"Math",{degrees:function(t){return t*o}})},function(t,e,n){var r=n(0),o=n(134),i=n(114);r(r.S,"Math",{fscale:function(t,e,n,r,a){return i(o(t,e,n,r,a))}})},function(t,e,n){var r=n(0);r(r.S,"Math",{iaddh:function(t,e,n,r){var o=t>>>0,i=e>>>0,a=n>>>0;return i+(r>>>0)+((o&a|(o|a)&~(o+a>>>0))>>>31)|0}})},function(t,e,n){var r=n(0);r(r.S,"Math",{isubh:function(t,e,n,r){var o=t>>>0,i=e>>>0,a=n>>>0;return i-(r>>>0)-((~o&a|~(o^a)&o-a>>>0)>>>31)|0}})},function(t,e,n){var r=n(0);r(r.S,"Math",{imulh:function(t,e){var n=+t,r=+e,o=65535&n,i=65535&r,a=n>>16,u=r>>16,s=(a*i>>>0)+(o*i>>>16);return a*u+(s>>16)+((o*u>>>0)+(65535&s)>>16)}})},function(t,e,n){var r=n(0);r(r.S,"Math",{RAD_PER_DEG:180/Math.PI})},function(t,e,n){var r=n(0),o=Math.PI/180;r(r.S,"Math",{radians:function(t){return t*o}})},function(t,e,n){var r=n(0);r(r.S,"Math",{scale:n(134)})},function(t,e,n){var r=n(0);r(r.S,"Math",{umulh:function(t,e){var n=+t,r=+e,o=65535&n,i=65535&r,a=n>>>16,u=r>>>16,s=(a*i>>>0)+(o*i>>>16);return a*u+(s>>>16)+((o*u>>>0)+(65535&s)>>>16)}})},function(t,e,n){var r=n(0);r(r.S,"Math",{signbit:function(t){return(t=+t)!=t?t:0==t?1/t==1/0:t>0}})},function(t,e,n){"use strict";var r=n(0),o=n(18),i=n(2),a=n(61),u=n(121);r(r.P+r.R,"Promise",{finally:function(t){var e=a(this,o.Promise||i.Promise),n="function"==typeof t;return this.then(n?function(n){return u(e,t()).then(function(){return n})}:t,n?function(n){return u(e,t()).then(function(){throw n})}:t)}})},function(t,e,n){"use strict";var r=n(0),o=n(92),i=n(120);r(r.S,"Promise",{try:function(t){var e=o.f(this),n=i(t);return(n.e?e.reject:e.resolve)(n.v),e.promise}})},function(t,e,n){var r=n(29),o=n(1),i=r.key,a=r.set;r.exp({defineMetadata:function(t,e,n,r){a(t,e,o(n),i(r))}})},function(t,e,n){var r=n(29),o=n(1),i=r.key,a=r.map,u=r.store;r.exp({deleteMetadata:function(t,e){var n=arguments.length<3?void 0:i(arguments[2]),r=a(o(e),n,!1);if(void 0===r||!r.delete(t))return!1;if(r.size)return!0;var s=u.get(e);return s.delete(n),!!s.size||u.delete(e)}})},function(t,e,n){var r=n(29),o=n(1),i=n(17),a=r.has,u=r.get,s=r.key,c=function(t,e,n){if(a(t,e,n))return u(t,e,n);var r=i(e);return null!==r?c(t,r,n):void 0};r.exp({getMetadata:function(t,e){return c(t,o(e),arguments.length<3?void 0:s(arguments[2]))}})},function(t,e,n){var r=n(124),o=n(133),i=n(29),a=n(1),u=n(17),s=i.keys,c=i.key,l=function(t,e){var n=s(t,e),i=u(t);if(null===i)return n;var a=l(i,e);return a.length?n.length?o(new r(n.concat(a))):a:n};i.exp({getMetadataKeys:function(t){return l(a(t),arguments.length<2?void 0:c(arguments[1]))}})},function(t,e,n){var r=n(29),o=n(1),i=r.get,a=r.key;r.exp({getOwnMetadata:function(t,e){return i(t,o(e),arguments.length<3?void 0:a(arguments[2]))}})},function(t,e,n){var r=n(29),o=n(1),i=r.keys,a=r.key;r.exp({getOwnMetadataKeys:function(t){return i(o(t),arguments.length<2?void 0:a(arguments[1]))}})},function(t,e,n){var r=n(29),o=n(1),i=n(17),a=r.has,u=r.key,s=function(t,e,n){if(a(t,e,n))return!0;var r=i(e);return null!==r&&s(t,r,n)};r.exp({hasMetadata:function(t,e){return s(t,o(e),arguments.length<3?void 0:u(arguments[2]))}})},function(t,e,n){var r=n(29),o=n(1),i=r.has,a=r.key;r.exp({hasOwnMetadata:function(t,e){return i(t,o(e),arguments.length<3?void 0:a(arguments[2]))}})},function(t,e,n){var r=n(29),o=n(1),i=n(10),a=r.key,u=r.set;r.exp({metadata:function(t,e){return function(n,r){u(t,e,(void 0!==r?o:i)(n),a(r))}}})},function(t,e,n){var r=n(0),o=n(91)(),i=n(2).process,a="process"==n(20)(i);r(r.G,{asap:function(t){var e=a&&i.domain;o(e?e.bind(t):t)}})},function(t,e,n){"use strict";var r=n(0),o=n(2),i=n(18),a=n(91)(),u=n(5)("observable"),s=n(10),c=n(1),l=n(41),f=n(43),p=n(11),d=n(42),h=d.RETURN,v=function(t){return null==t?void 0:s(t)},m=function(t){var e=t._c;e&&(t._c=void 0,e())},y=function(t){return void 0===t._o},g=function(t){y(t)||(t._o=void 0,m(t))},_=function(t,e){c(t),this._c=void 0,this._o=t,t=new b(this);try{var n=e(t),r=n;null!=n&&("function"==typeof n.unsubscribe?n=function(){r.unsubscribe()}:s(n),this._c=n)}catch(e){return void t.error(e)}y(this)&&m(this)};_.prototype=f({},{unsubscribe:function(){g(this)}});var b=function(t){this._s=t};b.prototype=f({},{next:function(t){var e=this._s;if(!y(e)){var n=e._o;try{var r=v(n.next);if(r)return r.call(n,t)}catch(t){try{g(e)}finally{throw t}}}},error:function(t){var e=this._s;if(y(e))throw t;var n=e._o;e._o=void 0;try{var r=v(n.error);if(!r)throw t;t=r.call(n,t)}catch(t){try{m(e)}finally{throw t}}return m(e),t},complete:function(t){var e=this._s;if(!y(e)){var n=e._o;e._o=void 0;try{var r=v(n.complete);t=r?r.call(n,t):void 0}catch(t){try{m(e)}finally{throw t}}return m(e),t}}});var w=function(t){l(this,w,"Observable","_f")._f=s(t)};f(w.prototype,{subscribe:function(t){return new _(t,this._f)},forEach:function(t){var e=this;return new(i.Promise||o.Promise)(function(n,r){s(t);var o=e.subscribe({next:function(e){try{return t(e)}catch(t){r(t),o.unsubscribe()}},error:r,complete:n})})}}),f(w,{from:function(t){var e="function"==typeof this?this:w,n=v(c(t)[u]);if(n){var r=c(n.call(t));return r.constructor===e?r:new e(function(t){return r.subscribe(t)})}return new e(function(e){var n=!1;return a(function(){if(!n){try{if(d(t,!1,function(t){if(e.next(t),n)return h})===h)return}catch(t){if(n)throw t;return void e.error(t)}e.complete()}}),function(){n=!0}})},of:function(){for(var t=0,e=arguments.length,n=new Array(e);t<e;)n[t]=arguments[t++];return new("function"==typeof this?this:w)(function(t){var e=!1;return a(function(){if(!e){for(var r=0;r<n.length;++r)if(t.next(n[r]),e)return;t.complete()}}),function(){e=!0}})}}),p(w.prototype,u,function(){return this}),r(r.G,{Observable:w}),n(40)("Observable")},function(t,e,n){var r=n(2),o=n(0),i=n(62),a=[].slice,u=/MSIE .\./.test(i),s=function(t){return function(e,n){var r=arguments.length>2,o=!!r&&a.call(arguments,2);return t(r?function(){("function"==typeof e?e:Function(e)).apply(this,o)}:e,n)}};o(o.G+o.B+o.F*u,{setTimeout:s(r.setTimeout),setInterval:s(r.setInterval)})},function(t,e,n){var r=n(0),o=n(90);r(r.G+r.B,{setImmediate:o.set,clearImmediate:o.clear})},function(t,e,n){for(var r=n(89),o=n(36),i=n(12),a=n(2),u=n(11),s=n(46),c=n(5),l=c("iterator"),f=c("toStringTag"),p=s.Array,d={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},h=o(d),v=0;v<h.length;v++){var m,y=h[v],g=d[y],_=a[y],b=_&&_.prototype;if(b&&(b[l]||u(b,l,p),b[f]||u(b,f,y),s[y]=p,g))for(m in r)b[m]||i(b,m,r[m],!0)}},function(t,e,n){(function(e){!function(e){"use strict";function n(t,e,n,r){var i=e&&e.prototype instanceof o?e:o,a=Object.create(i.prototype),u=new d(r||[]);return a._invoke=c(t,n,u),a}function r(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}function o(){}function i(){}function a(){}function u(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function s(t){function n(e,o,i,a){var u=r(t[e],t,o);if("throw"!==u.type){var s=u.arg,c=s.value;return c&&"object"==typeof c&&g.call(c,"__await")?Promise.resolve(c.__await).then(function(t){n("next",t,i,a)},function(t){n("throw",t,i,a)}):Promise.resolve(c).then(function(t){s.value=t,i(s)},a)}a(u.arg)}function o(t,e){function r(){return new Promise(function(r,o){n(t,e,r,o)})}return i=i?i.then(r,r):r()}"object"==typeof e.process&&e.process.domain&&(n=e.process.domain.bind(n));var i;this._invoke=o}function c(t,e,n){var o=O;return function(i,a){if(o===S)throw new Error("Generator is already running");if(o===N){if("throw"===i)throw a;return v()}for(n.method=i,n.arg=a;;){var u=n.delegate;if(u){var s=l(u,n);if(s){if(s===C)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===O)throw o=N,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=S;var c=r(t,e,n);if("normal"===c.type){if(o=n.done?N:k,c.arg===C)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=N,n.method="throw",n.arg=c.arg)}}}function l(t,e){var n=t.iterator[e.method];if(n===m){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=m,l(t,e),"throw"===e.method))return C;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return C}var o=r(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,C;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=m),e.delegate=null,C):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,C)}function f(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function p(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function d(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(f,this),this.reset(!0)}function h(t){if(t){var e=t[b];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function e(){for(;++n<t.length;)if(g.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=m,e.done=!0,e};return r.next=r}}return{next:v}}function v(){return{value:m,done:!0}}var m,y=Object.prototype,g=y.hasOwnProperty,_="function"==typeof Symbol?Symbol:{},b=_.iterator||"@@iterator",w=_.asyncIterator||"@@asyncIterator",x=_.toStringTag||"@@toStringTag",E="object"==typeof t,T=e.regeneratorRuntime;if(T)return void(E&&(t.exports=T));T=e.regeneratorRuntime=E?t.exports:{},T.wrap=n;var O="suspendedStart",k="suspendedYield",S="executing",N="completed",C={},P={};P[b]=function(){return this};var M=Object.getPrototypeOf,j=M&&M(M(h([])));j&&j!==y&&g.call(j,b)&&(P=j);var I=a.prototype=o.prototype=Object.create(P);i.prototype=I.constructor=a,a.constructor=i,a[x]=i.displayName="GeneratorFunction",T.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===i||"GeneratorFunction"===(e.displayName||e.name))},T.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,a):(t.__proto__=a,x in t||(t[x]="GeneratorFunction")),t.prototype=Object.create(I),t},T.awrap=function(t){return{__await:t}},u(s.prototype),s.prototype[w]=function(){return this},T.AsyncIterator=s,T.async=function(t,e,r,o){var i=new s(n(t,e,r,o));return T.isGeneratorFunction(e)?i:i.next().then(function(t){return t.done?t.value:i.next()})},u(I),I[x]="Generator",I[b]=function(){return this},I.toString=function(){return"[object Generator]"},T.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},T.values=h,d.prototype={constructor:d,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=m,this.done=!1,this.delegate=null,this.method="next",this.arg=m,this.tryEntries.forEach(p),!t)for(var e in this)"t"===e.charAt(0)&&g.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=m)},stop:function(){this.done=!0;var t=this.tryEntries[0],e=t.completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){function e(e,r){return i.type="throw",i.arg=t,n.next=e,r&&(n.method="next",n.arg=m),!!r}if(this.done)throw t;for(var n=this,r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],i=o.completion;if("root"===o.tryLoc)return e("end");if(o.tryLoc<=this.prev){var a=g.call(o,"catchLoc"),u=g.call(o,"finallyLoc");if(a&&u){if(this.prev<o.catchLoc)return e(o.catchLoc,!0);if(this.prev<o.finallyLoc)return e(o.finallyLoc)}else if(a){if(this.prev<o.catchLoc)return e(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return e(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&g.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,C):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),C},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),p(n),C}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;p(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:h(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=m),C}}}("object"==typeof e?e:"object"==typeof window?window:"object"==typeof self?self:this)}).call(e,n(52))},function(t,e,n){n(374),t.exports=n(18).RegExp.escape},function(t,e,n){var r=n(0),o=n(375)(/[\\^$*+?.()|[\]{}]/g,"\\$&");r(r.S,"RegExp",{escape:function(t){return o(t)}})},function(t,e){t.exports=function(t,e){var n=e===Object(e)?function(t){return e[t]}:e;return function(e){return String(e).replace(t,n)}}}]); //# sourceMappingURL=vendor.dll.js.map
12,296.487805
217,435
0.675448
a7630deeb7369a0dffb18bd32d7b272d9a64af45
61,949
js
JavaScript
token/js/client/token.js
paychains-labs/paychains-program-library
4ca9bcc9ac6adf0c8e9869839d4507e9c86acfe1
[ "Apache-2.0" ]
null
null
null
token/js/client/token.js
paychains-labs/paychains-program-library
4ca9bcc9ac6adf0c8e9869839d4507e9c86acfe1
[ "Apache-2.0" ]
null
null
null
token/js/client/token.js
paychains-labs/paychains-program-library
4ca9bcc9ac6adf0c8e9869839d4507e9c86acfe1
[ "Apache-2.0" ]
1
2022-03-20T20:00:45.000Z
2022-03-20T20:00:45.000Z
/** * @flow */ import {Buffer} from 'buffer'; import assert from 'assert'; import BN from 'bn.js'; import * as BufferLayout from '@paychains/buffer-layout'; import { Keypair, PublicKey, SystemProgram, Transaction, TransactionInstruction, SYSVAR_RENT_PUBKEY, } from '@paychains/web3.js'; import type { Connection, Commitment, Signer, TransactionSignature, } from '@paychains/web3.js'; import * as Layout from './layout'; import {sendAndConfirmTransaction} from './util/send-and-confirm-transaction'; export const TOKEN_PROGRAM_ID: PublicKey = new PublicKey( 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA', ); export const ASSOCIATED_TOKEN_PROGRAM_ID: PublicKey = new PublicKey( 'ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL', ); const FAILED_TO_FIND_ACCOUNT = 'Failed to find account'; const INVALID_ACCOUNT_OWNER = 'Invalid account owner'; /** * Unfortunately, BufferLayout.encode uses an `instanceof` check for `Buffer` * which fails when using `publicKey.toBuffer()` directly because the bundled `Buffer` * class in `@paychains/web3.js` is different from the bundled `Buffer` class in this package */ function pubkeyToBuffer(publicKey: PublicKey): typeof Buffer { return Buffer.from(publicKey.toBuffer()); } /** * 64-bit value */ export class u64 extends BN { /** * Convert to Buffer representation */ toBuffer(): typeof Buffer { const a = super.toArray().reverse(); const b = Buffer.from(a); if (b.length === 8) { return b; } assert(b.length < 8, 'u64 too large'); const zeroPad = Buffer.alloc(8); b.copy(zeroPad); return zeroPad; } /** * Construct a u64 from Buffer representation */ static fromBuffer(buffer: typeof Buffer): u64 { assert(buffer.length === 8, `Invalid buffer length: ${buffer.length}`); return new u64( [...buffer] .reverse() .map(i => `00${i.toString(16)}`.slice(-2)) .join(''), 16, ); } } function isAccount(accountOrPublicKey: any): boolean { return 'publicKey' in accountOrPublicKey; } type AuthorityType = | 'MintTokens' | 'FreezeAccount' | 'AccountOwner' | 'CloseAccount'; const AuthorityTypeCodes = { MintTokens: 0, FreezeAccount: 1, AccountOwner: 2, CloseAccount: 3, }; // The address of the special mint for wrapped native token. export const NATIVE_MINT: PublicKey = new PublicKey( 'So11111111111111111111111111111111111111112', ); /** * Information about the mint */ type MintInfo = {| /** * Optional authority used to mint new tokens. The mint authority may only be provided during * mint creation. If no mint authority is present then the mint has a fixed supply and no * further tokens may be minted. */ mintAuthority: null | PublicKey, /** * Total supply of tokens */ supply: u64, /** * Number of base 10 digits to the right of the decimal place */ decimals: number, /** * Is this mint initialized */ isInitialized: boolean, /** * Optional authority to freeze token accounts */ freezeAuthority: null | PublicKey, |}; export const MintLayout: typeof BufferLayout.Structure = BufferLayout.struct([ BufferLayout.u32('mintAuthorityOption'), Layout.publicKey('mintAuthority'), Layout.uint64('supply'), BufferLayout.u8('decimals'), BufferLayout.u8('isInitialized'), BufferLayout.u32('freezeAuthorityOption'), Layout.publicKey('freezeAuthority'), ]); /** * Information about an account */ type AccountInfo = {| /** * The address of this account */ address: PublicKey, /** * The mint associated with this account */ mint: PublicKey, /** * Owner of this account */ owner: PublicKey, /** * Amount of tokens this account holds */ amount: u64, /** * The delegate for this account */ delegate: null | PublicKey, /** * The amount of tokens the delegate authorized to the delegate */ delegatedAmount: u64, /** * Is this account initialized */ isInitialized: boolean, /** * Is this account frozen */ isFrozen: boolean, /** * Is this a native token account */ isNative: boolean, /** * If this account is a native token, it must be rent-exempt. This * value logs the rent-exempt reserve which must remain in the balance * until the account is closed. */ rentExemptReserve: null | u64, /** * Optional authority to close the account */ closeAuthority: null | PublicKey, |}; /** * @private */ export const AccountLayout: typeof BufferLayout.Structure = BufferLayout.struct( [ Layout.publicKey('mint'), Layout.publicKey('owner'), Layout.uint64('amount'), BufferLayout.u32('delegateOption'), Layout.publicKey('delegate'), BufferLayout.u8('state'), BufferLayout.u32('isNativeOption'), Layout.uint64('isNative'), Layout.uint64('delegatedAmount'), BufferLayout.u32('closeAuthorityOption'), Layout.publicKey('closeAuthority'), ], ); /** * Information about an multisig */ type MultisigInfo = {| /** * The number of signers required */ m: number, /** * Number of possible signers, corresponds to the * number of `signers` that are valid. */ n: number, /** * Is this mint initialized */ initialized: boolean, /** * The signers */ signer1: PublicKey, signer2: PublicKey, signer3: PublicKey, signer4: PublicKey, signer5: PublicKey, signer6: PublicKey, signer7: PublicKey, signer8: PublicKey, signer9: PublicKey, signer10: PublicKey, signer11: PublicKey, |}; /** * @private */ const MultisigLayout = BufferLayout.struct([ BufferLayout.u8('m'), BufferLayout.u8('n'), BufferLayout.u8('is_initialized'), Layout.publicKey('signer1'), Layout.publicKey('signer2'), Layout.publicKey('signer3'), Layout.publicKey('signer4'), Layout.publicKey('signer5'), Layout.publicKey('signer6'), Layout.publicKey('signer7'), Layout.publicKey('signer8'), Layout.publicKey('signer9'), Layout.publicKey('signer10'), Layout.publicKey('signer11'), ]); /** * An ERC20-like Token */ export class Token { /** * @private */ connection: Connection; /** * The public key identifying this mint */ publicKey: PublicKey; /** * Program Identifier for the Token program */ programId: PublicKey; /** * Program Identifier for the Associated Token program */ associatedProgramId: PublicKey; /** * Fee payer */ payer: Signer; /** * Create a Token object attached to the specific mint * * @param connection The connection to use * @param token Public key of the mint * @param programId token programId * @param payer Payer of fees */ constructor( connection: Connection, publicKey: PublicKey, programId: PublicKey, payer: Signer, ) { Object.assign(this, { connection, publicKey, programId, payer, // Hard code is ok; Overriding is needed only for tests associatedProgramId: ASSOCIATED_TOKEN_PROGRAM_ID, }); } /** * Get the minimum balance for the mint to be rent exempt * * @return Number of lamports required */ static async getMinBalanceRentForExemptMint( connection: Connection, ): Promise<number> { return await connection.getMinimumBalanceForRentExemption(MintLayout.span); } /** * Get the minimum balance for the account to be rent exempt * * @return Number of lamports required */ static async getMinBalanceRentForExemptAccount( connection: Connection, ): Promise<number> { return await connection.getMinimumBalanceForRentExemption( AccountLayout.span, ); } /** * Get the minimum balance for the multsig to be rent exempt * * @return Number of lamports required */ static async getMinBalanceRentForExemptMultisig( connection: Connection, ): Promise<number> { return await connection.getMinimumBalanceForRentExemption( MultisigLayout.span, ); } /** * Create and initialize a token. * * @param connection The connection to use * @param payer Fee payer for transaction * @param mintAuthority Account or multisig that will control minting * @param freezeAuthority Optional account or multisig that can freeze token accounts * @param decimals Location of the decimal place * @param programId Optional token programId, uses the system programId by default * @return Token object for the newly minted token */ static async createMint( connection: Connection, payer: Signer, mintAuthority: PublicKey, freezeAuthority: PublicKey | null, decimals: number, programId: PublicKey, ): Promise<Token> { const mintAccount = Keypair.generate(); const token = new Token( connection, mintAccount.publicKey, programId, payer, ); // Allocate memory for the account const balanceNeeded = await Token.getMinBalanceRentForExemptMint( connection, ); const transaction = new Transaction(); transaction.add( SystemProgram.createAccount({ fromPubkey: payer.publicKey, newAccountPubkey: mintAccount.publicKey, lamports: balanceNeeded, space: MintLayout.span, programId, }), ); transaction.add( Token.createInitMintInstruction( programId, mintAccount.publicKey, decimals, mintAuthority, freezeAuthority, ), ); // Send the two instructions await sendAndConfirmTransaction( 'createAccount and InitializeMint', connection, transaction, payer, mintAccount, ); return token; } /** * Create and initialize a new account. * * This account may then be used as a `transfer()` or `approve()` destination * * @param owner User account that will own the new account * @return Public key of the new empty account */ async createAccount(owner: PublicKey): Promise<PublicKey> { // Allocate memory for the account const balanceNeeded = await Token.getMinBalanceRentForExemptAccount( this.connection, ); const newAccount = Keypair.generate(); const transaction = new Transaction(); transaction.add( SystemProgram.createAccount({ fromPubkey: this.payer.publicKey, newAccountPubkey: newAccount.publicKey, lamports: balanceNeeded, space: AccountLayout.span, programId: this.programId, }), ); const mintPublicKey = this.publicKey; transaction.add( Token.createInitAccountInstruction( this.programId, mintPublicKey, newAccount.publicKey, owner, ), ); // Send the two instructions await sendAndConfirmTransaction( 'createAccount and InitializeAccount', this.connection, transaction, this.payer, newAccount, ); return newAccount.publicKey; } /** * Create and initialize the associated account. * * This account may then be used as a `transfer()` or `approve()` destination * * @param owner User account that will own the new account * @return Public key of the new associated account */ async createAssociatedTokenAccount(owner: PublicKey): Promise<PublicKey> { const associatedAddress = await Token.getAssociatedTokenAddress( this.associatedProgramId, this.programId, this.publicKey, owner, ); return this.createAssociatedTokenAccountInternal(owner, associatedAddress); } async createAssociatedTokenAccountInternal( owner: PublicKey, associatedAddress: PublicKey, ): Promise<PublicKey> { await sendAndConfirmTransaction( 'CreateAssociatedTokenAccount', this.connection, new Transaction().add( Token.createAssociatedTokenAccountInstruction( this.associatedProgramId, this.programId, this.publicKey, associatedAddress, owner, this.payer.publicKey, ), ), this.payer, ); return associatedAddress; } /** * Retrieve the associated account or create one if not found. * * This account may then be used as a `transfer()` or `approve()` destination * * @param owner User account that will own the new account * @return The new associated account */ async getOrCreateAssociatedAccountInfo( owner: PublicKey, ): Promise<AccountInfo> { const associatedAddress = await Token.getAssociatedTokenAddress( this.associatedProgramId, this.programId, this.publicKey, owner, ); // This is the optimum logic, considering TX fee, client-side computation, // RPC roundtrips and guaranteed idempotent. // Sadly we can't do this atomically; try { return await this.getAccountInfo(associatedAddress); } catch (err) { // INVALID_ACCOUNT_OWNER can be possible if the associatedAddress has // already been received some lamports (= became system accounts). // Assuming program derived addressing is safe, this is the only case // for the INVALID_ACCOUNT_OWNER in this code-path if ( err.message === FAILED_TO_FIND_ACCOUNT || err.message === INVALID_ACCOUNT_OWNER ) { // as this isn't atomic, it's possible others can create associated // accounts meanwhile try { await this.createAssociatedTokenAccountInternal( owner, associatedAddress, ); } catch (err) { // ignore all errors; for now there is no API compatible way to // selectively ignore the expected instruction error if the // associated account is existing already. } // Now this should always succeed return await this.getAccountInfo(associatedAddress); } else { throw err; } } } /** * Create and initialize a new account on the special native token mint. * * In order to be wrapped, the account must have a balance of native tokens * when it is initialized with the token program. * * This function sends lamports to the new account before initializing it. * * @param connection A paychains web3 connection * @param programId The token program ID * @param owner The owner of the new token account * @param payer The source of the lamports to initialize, and payer of the initialization fees. * @param amount The amount of lamports to wrap * @return {Promise<PublicKey>} The new token account */ static async createWrappedNativeAccount( connection: Connection, programId: PublicKey, owner: PublicKey, payer: Signer, amount: number, ): Promise<PublicKey> { // Allocate memory for the account const balanceNeeded = await Token.getMinBalanceRentForExemptAccount( connection, ); // Create a new account const newAccount = Keypair.generate(); const transaction = new Transaction(); transaction.add( SystemProgram.createAccount({ fromPubkey: payer.publicKey, newAccountPubkey: newAccount.publicKey, lamports: balanceNeeded, space: AccountLayout.span, programId, }), ); // Send lamports to it (these will be wrapped into native tokens by the token program) transaction.add( SystemProgram.transfer({ fromPubkey: payer.publicKey, toPubkey: newAccount.publicKey, lamports: amount, }), ); // Assign the new account to the native token mint. // the account will be initialized with a balance equal to the native token balance. // (i.e. amount) transaction.add( Token.createInitAccountInstruction( programId, NATIVE_MINT, newAccount.publicKey, owner, ), ); // Send the three instructions await sendAndConfirmTransaction( 'createAccount, transfer, and initializeAccount', connection, transaction, payer, newAccount, ); return newAccount.publicKey; } /** * Create and initialize a new multisig. * * This account may then be used for multisignature verification * * @param m Number of required signatures * @param signers Full set of signers * @return Public key of the new multisig account */ async createMultisig( m: number, signers: Array<PublicKey>, ): Promise<PublicKey> { const multisigAccount = Keypair.generate(); // Allocate memory for the account const balanceNeeded = await Token.getMinBalanceRentForExemptMultisig( this.connection, ); const transaction = new Transaction(); transaction.add( SystemProgram.createAccount({ fromPubkey: this.payer.publicKey, newAccountPubkey: multisigAccount.publicKey, lamports: balanceNeeded, space: MultisigLayout.span, programId: this.programId, }), ); // create the new account let keys = [ {pubkey: multisigAccount.publicKey, isSigner: false, isWritable: true}, {pubkey: SYSVAR_RENT_PUBKEY, isSigner: false, isWritable: false}, ]; signers.forEach(signer => keys.push({pubkey: signer, isSigner: false, isWritable: false}), ); const dataLayout = BufferLayout.struct([ BufferLayout.u8('instruction'), BufferLayout.u8('m'), ]); const data = Buffer.alloc(dataLayout.span); dataLayout.encode( { instruction: 2, // InitializeMultisig instruction m, }, data, ); transaction.add({ keys, programId: this.programId, data, }); // Send the two instructions await sendAndConfirmTransaction( 'createAccount and InitializeMultisig', this.connection, transaction, this.payer, multisigAccount, ); return multisigAccount.publicKey; } /** * Retrieve mint information */ async getMintInfo(): Promise<MintInfo> { const info = await this.connection.getAccountInfo(this.publicKey); if (info === null) { throw new Error('Failed to find mint account'); } if (!info.owner.equals(this.programId)) { throw new Error(`Invalid mint owner: ${JSON.stringify(info.owner)}`); } if (info.data.length != MintLayout.span) { throw new Error(`Invalid mint size`); } const data = Buffer.from(info.data); const mintInfo = MintLayout.decode(data); if (mintInfo.mintAuthorityOption === 0) { mintInfo.mintAuthority = null; } else { mintInfo.mintAuthority = new PublicKey(mintInfo.mintAuthority); } mintInfo.supply = u64.fromBuffer(mintInfo.supply); mintInfo.isInitialized = mintInfo.isInitialized != 0; if (mintInfo.freezeAuthorityOption === 0) { mintInfo.freezeAuthority = null; } else { mintInfo.freezeAuthority = new PublicKey(mintInfo.freezeAuthority); } return mintInfo; } /** * Retrieve account information * * @param account Public key of the account */ async getAccountInfo( account: PublicKey, commitment?: Commitment, ): Promise<AccountInfo> { const info = await this.connection.getAccountInfo(account, commitment); if (info === null) { throw new Error(FAILED_TO_FIND_ACCOUNT); } if (!info.owner.equals(this.programId)) { throw new Error(INVALID_ACCOUNT_OWNER); } if (info.data.length != AccountLayout.span) { throw new Error(`Invalid account size`); } const data = Buffer.from(info.data); const accountInfo = AccountLayout.decode(data); accountInfo.address = account; accountInfo.mint = new PublicKey(accountInfo.mint); accountInfo.owner = new PublicKey(accountInfo.owner); accountInfo.amount = u64.fromBuffer(accountInfo.amount); if (accountInfo.delegateOption === 0) { accountInfo.delegate = null; accountInfo.delegatedAmount = new u64(); } else { accountInfo.delegate = new PublicKey(accountInfo.delegate); accountInfo.delegatedAmount = u64.fromBuffer(accountInfo.delegatedAmount); } accountInfo.isInitialized = accountInfo.state !== 0; accountInfo.isFrozen = accountInfo.state === 2; if (accountInfo.isNativeOption === 1) { accountInfo.rentExemptReserve = u64.fromBuffer(accountInfo.isNative); accountInfo.isNative = true; } else { accountInfo.rentExemptReserve = null; accountInfo.isNative = false; } if (accountInfo.closeAuthorityOption === 0) { accountInfo.closeAuthority = null; } else { accountInfo.closeAuthority = new PublicKey(accountInfo.closeAuthority); } if (!accountInfo.mint.equals(this.publicKey)) { throw new Error( `Invalid account mint: ${JSON.stringify( accountInfo.mint, )} !== ${JSON.stringify(this.publicKey)}`, ); } return accountInfo; } /** * Retrieve Multisig information * * @param multisig Public key of the account */ async getMultisigInfo(multisig: PublicKey): Promise<MultisigInfo> { const info = await this.connection.getAccountInfo(multisig); if (info === null) { throw new Error('Failed to find multisig'); } if (!info.owner.equals(this.programId)) { throw new Error(`Invalid multisig owner`); } if (info.data.length != MultisigLayout.span) { throw new Error(`Invalid multisig size`); } const data = Buffer.from(info.data); const multisigInfo = MultisigLayout.decode(data); multisigInfo.signer1 = new PublicKey(multisigInfo.signer1); multisigInfo.signer2 = new PublicKey(multisigInfo.signer2); multisigInfo.signer3 = new PublicKey(multisigInfo.signer3); multisigInfo.signer4 = new PublicKey(multisigInfo.signer4); multisigInfo.signer5 = new PublicKey(multisigInfo.signer5); multisigInfo.signer6 = new PublicKey(multisigInfo.signer6); multisigInfo.signer7 = new PublicKey(multisigInfo.signer7); multisigInfo.signer8 = new PublicKey(multisigInfo.signer8); multisigInfo.signer9 = new PublicKey(multisigInfo.signer9); multisigInfo.signer10 = new PublicKey(multisigInfo.signer10); multisigInfo.signer11 = new PublicKey(multisigInfo.signer11); return multisigInfo; } /** * Transfer tokens to another account * * @param source Source account * @param destination Destination account * @param owner Owner of the source account * @param multiSigners Signing accounts if `owner` is a multiSig * @param amount Number of tokens to transfer */ async transfer( source: PublicKey, destination: PublicKey, owner: any, multiSigners: Array<Signer>, amount: number | u64, ): Promise<TransactionSignature> { let ownerPublicKey; let signers; if (isAccount(owner)) { ownerPublicKey = owner.publicKey; signers = [owner]; } else { ownerPublicKey = owner; signers = multiSigners; } return await sendAndConfirmTransaction( 'Transfer', this.connection, new Transaction().add( Token.createTransferInstruction( this.programId, source, destination, ownerPublicKey, multiSigners, amount, ), ), this.payer, ...signers, ); } /** * Grant a third-party permission to transfer up the specified number of tokens from an account * * @param account Public key of the account * @param delegate Account authorized to perform a transfer tokens from the source account * @param owner Owner of the source account * @param multiSigners Signing accounts if `owner` is a multiSig * @param amount Maximum number of tokens the delegate may transfer */ async approve( account: PublicKey, delegate: PublicKey, owner: any, multiSigners: Array<Signer>, amount: number | u64, ): Promise<void> { let ownerPublicKey; let signers; if (isAccount(owner)) { ownerPublicKey = owner.publicKey; signers = [owner]; } else { ownerPublicKey = owner; signers = multiSigners; } await sendAndConfirmTransaction( 'Approve', this.connection, new Transaction().add( Token.createApproveInstruction( this.programId, account, delegate, ownerPublicKey, multiSigners, amount, ), ), this.payer, ...signers, ); } /** * Remove approval for the transfer of any remaining tokens * * @param account Public key of the account * @param owner Owner of the source account * @param multiSigners Signing accounts if `owner` is a multiSig */ async revoke( account: PublicKey, owner: any, multiSigners: Array<Signer>, ): Promise<void> { let ownerPublicKey; let signers; if (isAccount(owner)) { ownerPublicKey = owner.publicKey; signers = [owner]; } else { ownerPublicKey = owner; signers = multiSigners; } await sendAndConfirmTransaction( 'Revoke', this.connection, new Transaction().add( Token.createRevokeInstruction( this.programId, account, ownerPublicKey, multiSigners, ), ), this.payer, ...signers, ); } /** * Assign a new authority to the account * * @param account Public key of the account * @param newAuthority New authority of the account * @param authorityType Type of authority to set * @param currentAuthority Current authority of the account * @param multiSigners Signing accounts if `currentAuthority` is a multiSig */ async setAuthority( account: PublicKey, newAuthority: PublicKey | null, authorityType: AuthorityType, currentAuthority: any, multiSigners: Array<Signer>, ): Promise<void> { let currentAuthorityPublicKey: PublicKey; let signers; if (isAccount(currentAuthority)) { currentAuthorityPublicKey = currentAuthority.publicKey; signers = [currentAuthority]; } else { currentAuthorityPublicKey = currentAuthority; signers = multiSigners; } await sendAndConfirmTransaction( 'SetAuthority', this.connection, new Transaction().add( Token.createSetAuthorityInstruction( this.programId, account, newAuthority, authorityType, currentAuthorityPublicKey, multiSigners, ), ), this.payer, ...signers, ); } /** * Mint new tokens * * @param dest Public key of the account to mint to * @param authority Minting authority * @param multiSigners Signing accounts if `authority` is a multiSig * @param amount Amount to mint */ async mintTo( dest: PublicKey, authority: any, multiSigners: Array<Signer>, amount: number | u64, ): Promise<void> { let ownerPublicKey; let signers; if (isAccount(authority)) { ownerPublicKey = authority.publicKey; signers = [authority]; } else { ownerPublicKey = authority; signers = multiSigners; } await sendAndConfirmTransaction( 'MintTo', this.connection, new Transaction().add( Token.createMintToInstruction( this.programId, this.publicKey, dest, ownerPublicKey, multiSigners, amount, ), ), this.payer, ...signers, ); } /** * Burn tokens * * @param account Account to burn tokens from * @param owner Account owner * @param multiSigners Signing accounts if `owner` is a multiSig * @param amount Amount to burn */ async burn( account: PublicKey, owner: any, multiSigners: Array<Signer>, amount: number | u64, ): Promise<void> { let ownerPublicKey; let signers; if (isAccount(owner)) { ownerPublicKey = owner.publicKey; signers = [owner]; } else { ownerPublicKey = owner; signers = multiSigners; } await sendAndConfirmTransaction( 'Burn', this.connection, new Transaction().add( Token.createBurnInstruction( this.programId, this.publicKey, account, ownerPublicKey, multiSigners, amount, ), ), this.payer, ...signers, ); } /** * Close account * * @param account Account to close * @param dest Account to receive the remaining balance of the closed account * @param authority Authority which is allowed to close the account * @param multiSigners Signing accounts if `authority` is a multiSig */ async closeAccount( account: PublicKey, dest: PublicKey, authority: any, multiSigners: Array<Signer>, ): Promise<void> { let authorityPublicKey; let signers; if (isAccount(authority)) { authorityPublicKey = authority.publicKey; signers = [authority]; } else { authorityPublicKey = authority; signers = multiSigners; } await sendAndConfirmTransaction( 'CloseAccount', this.connection, new Transaction().add( Token.createCloseAccountInstruction( this.programId, account, dest, authorityPublicKey, multiSigners, ), ), this.payer, ...signers, ); } /** * Freeze account * * @param account Account to freeze * @param authority The mint freeze authority * @param multiSigners Signing accounts if `authority` is a multiSig */ async freezeAccount( account: PublicKey, authority: any, multiSigners: Array<Signer>, ): Promise<void> { let authorityPublicKey; let signers; if (isAccount(authority)) { authorityPublicKey = authority.publicKey; signers = [authority]; } else { authorityPublicKey = authority; signers = multiSigners; } await sendAndConfirmTransaction( 'FreezeAccount', this.connection, new Transaction().add( Token.createFreezeAccountInstruction( this.programId, account, this.publicKey, authorityPublicKey, multiSigners, ), ), this.payer, ...signers, ); } /** * Thaw account * * @param account Account to thaw * @param authority The mint freeze authority * @param multiSigners Signing accounts if `authority` is a multiSig */ async thawAccount( account: PublicKey, authority: any, multiSigners: Array<Signer>, ): Promise<void> { let authorityPublicKey; let signers; if (isAccount(authority)) { authorityPublicKey = authority.publicKey; signers = [authority]; } else { authorityPublicKey = authority; signers = multiSigners; } await sendAndConfirmTransaction( 'ThawAccount', this.connection, new Transaction().add( Token.createThawAccountInstruction( this.programId, account, this.publicKey, authorityPublicKey, multiSigners, ), ), this.payer, ...signers, ); } /** * Transfer tokens to another account, asserting the token mint and decimals * * @param source Source account * @param destination Destination account * @param owner Owner of the source account * @param multiSigners Signing accounts if `owner` is a multiSig * @param amount Number of tokens to transfer * @param decimals Number of decimals in transfer amount */ async transferChecked( source: PublicKey, destination: PublicKey, owner: any, multiSigners: Array<Signer>, amount: number | u64, decimals: number, ): Promise<TransactionSignature> { let ownerPublicKey; let signers; if (isAccount(owner)) { ownerPublicKey = owner.publicKey; signers = [owner]; } else { ownerPublicKey = owner; signers = multiSigners; } return await sendAndConfirmTransaction( 'TransferChecked', this.connection, new Transaction().add( Token.createTransferCheckedInstruction( this.programId, source, this.publicKey, destination, ownerPublicKey, multiSigners, amount, decimals, ), ), this.payer, ...signers, ); } /** * Grant a third-party permission to transfer up the specified number of tokens from an account, * asserting the token mint and decimals * * @param account Public key of the account * @param delegate Account authorized to perform a transfer tokens from the source account * @param owner Owner of the source account * @param multiSigners Signing accounts if `owner` is a multiSig * @param amount Maximum number of tokens the delegate may transfer * @param decimals Number of decimals in approve amount */ async approveChecked( account: PublicKey, delegate: PublicKey, owner: any, multiSigners: Array<Signer>, amount: number | u64, decimals: number, ): Promise<void> { let ownerPublicKey; let signers; if (isAccount(owner)) { ownerPublicKey = owner.publicKey; signers = [owner]; } else { ownerPublicKey = owner; signers = multiSigners; } await sendAndConfirmTransaction( 'ApproveChecked', this.connection, new Transaction().add( Token.createApproveCheckedInstruction( this.programId, account, this.publicKey, delegate, ownerPublicKey, multiSigners, amount, decimals, ), ), this.payer, ...signers, ); } /** * Mint new tokens, asserting the token mint and decimals * * @param dest Public key of the account to mint to * @param authority Minting authority * @param multiSigners Signing accounts if `authority` is a multiSig * @param amount Amount to mint * @param decimals Number of decimals in amount to mint */ async mintToChecked( dest: PublicKey, authority: any, multiSigners: Array<Signer>, amount: number | u64, decimals: number, ): Promise<void> { let ownerPublicKey; let signers; if (isAccount(authority)) { ownerPublicKey = authority.publicKey; signers = [authority]; } else { ownerPublicKey = authority; signers = multiSigners; } await sendAndConfirmTransaction( 'MintToChecked', this.connection, new Transaction().add( Token.createMintToCheckedInstruction( this.programId, this.publicKey, dest, ownerPublicKey, multiSigners, amount, decimals, ), ), this.payer, ...signers, ); } /** * Burn tokens, asserting the token mint and decimals * * @param account Account to burn tokens from * @param owner Account owner * @param multiSigners Signing accounts if `owner` is a multiSig * @param amount Amount to burn * @param decimals Number of decimals in amount to burn */ async burnChecked( account: PublicKey, owner: any, multiSigners: Array<Signer>, amount: number | u64, decimals: number, ): Promise<void> { let ownerPublicKey; let signers; if (isAccount(owner)) { ownerPublicKey = owner.publicKey; signers = [owner]; } else { ownerPublicKey = owner; signers = multiSigners; } await sendAndConfirmTransaction( 'BurnChecked', this.connection, new Transaction().add( Token.createBurnCheckedInstruction( this.programId, this.publicKey, account, ownerPublicKey, multiSigners, amount, decimals, ), ), this.payer, ...signers, ); } /** * Sync amount in native SPL token account to underlying lamports * * @param nativeAccount Account to sync */ async syncNative(nativeAccount: PublicKey): Promise<void> { await sendAndConfirmTransaction( 'SyncNative', this.connection, new Transaction().add( Token.createSyncNativeInstruction(this.programId, nativeAccount), ), this.payer, ); } /** * Construct an InitializeMint instruction * * @param programId SPL Token program account * @param mint Token mint account * @param decimals Number of decimals in token account amounts * @param mintAuthority Minting authority * @param freezeAuthority Optional authority that can freeze token accounts */ static createInitMintInstruction( programId: PublicKey, mint: PublicKey, decimals: number, mintAuthority: PublicKey, freezeAuthority: PublicKey | null, ): TransactionInstruction { let keys = [ {pubkey: mint, isSigner: false, isWritable: true}, {pubkey: SYSVAR_RENT_PUBKEY, isSigner: false, isWritable: false}, ]; const commandDataLayout = BufferLayout.struct([ BufferLayout.u8('instruction'), BufferLayout.u8('decimals'), Layout.publicKey('mintAuthority'), BufferLayout.u8('option'), Layout.publicKey('freezeAuthority'), ]); let data = Buffer.alloc(1024); { const encodeLength = commandDataLayout.encode( { instruction: 0, // InitializeMint instruction decimals, mintAuthority: pubkeyToBuffer(mintAuthority), option: freezeAuthority === null ? 0 : 1, freezeAuthority: pubkeyToBuffer(freezeAuthority || new PublicKey(0)), }, data, ); data = data.slice(0, encodeLength); } return new TransactionInstruction({ keys, programId, data, }); } /** * Construct an InitializeAccount instruction * * @param programId SPL Token program account * @param mint Token mint account * @param account New account * @param owner Owner of the new account */ static createInitAccountInstruction( programId: PublicKey, mint: PublicKey, account: PublicKey, owner: PublicKey, ): TransactionInstruction { const keys = [ {pubkey: account, isSigner: false, isWritable: true}, {pubkey: mint, isSigner: false, isWritable: false}, {pubkey: owner, isSigner: false, isWritable: false}, {pubkey: SYSVAR_RENT_PUBKEY, isSigner: false, isWritable: false}, ]; const dataLayout = BufferLayout.struct([BufferLayout.u8('instruction')]); const data = Buffer.alloc(dataLayout.span); dataLayout.encode( { instruction: 1, // InitializeAccount instruction }, data, ); return new TransactionInstruction({ keys, programId, data, }); } /** * Construct a Transfer instruction * * @param programId SPL Token program account * @param source Source account * @param destination Destination account * @param owner Owner of the source account * @param multiSigners Signing accounts if `authority` is a multiSig * @param amount Number of tokens to transfer */ static createTransferInstruction( programId: PublicKey, source: PublicKey, destination: PublicKey, owner: PublicKey, multiSigners: Array<Signer>, amount: number | u64, ): TransactionInstruction { const dataLayout = BufferLayout.struct([ BufferLayout.u8('instruction'), Layout.uint64('amount'), ]); const data = Buffer.alloc(dataLayout.span); dataLayout.encode( { instruction: 3, // Transfer instruction amount: new u64(amount).toBuffer(), }, data, ); let keys = [ {pubkey: source, isSigner: false, isWritable: true}, {pubkey: destination, isSigner: false, isWritable: true}, ]; if (multiSigners.length === 0) { keys.push({ pubkey: owner, isSigner: true, isWritable: false, }); } else { keys.push({pubkey: owner, isSigner: false, isWritable: false}); multiSigners.forEach(signer => keys.push({ pubkey: signer.publicKey, isSigner: true, isWritable: false, }), ); } return new TransactionInstruction({ keys, programId: programId, data, }); } /** * Construct an Approve instruction * * @param programId SPL Token program account * @param account Public key of the account * @param delegate Account authorized to perform a transfer of tokens from the source account * @param owner Owner of the source account * @param multiSigners Signing accounts if `owner` is a multiSig * @param amount Maximum number of tokens the delegate may transfer */ static createApproveInstruction( programId: PublicKey, account: PublicKey, delegate: PublicKey, owner: PublicKey, multiSigners: Array<Signer>, amount: number | u64, ): TransactionInstruction { const dataLayout = BufferLayout.struct([ BufferLayout.u8('instruction'), Layout.uint64('amount'), ]); const data = Buffer.alloc(dataLayout.span); dataLayout.encode( { instruction: 4, // Approve instruction amount: new u64(amount).toBuffer(), }, data, ); let keys = [ {pubkey: account, isSigner: false, isWritable: true}, {pubkey: delegate, isSigner: false, isWritable: false}, ]; if (multiSigners.length === 0) { keys.push({pubkey: owner, isSigner: true, isWritable: false}); } else { keys.push({pubkey: owner, isSigner: false, isWritable: false}); multiSigners.forEach(signer => keys.push({ pubkey: signer.publicKey, isSigner: true, isWritable: false, }), ); } return new TransactionInstruction({ keys, programId: programId, data, }); } /** * Construct a Revoke instruction * * @param programId SPL Token program account * @param account Public key of the account * @param owner Owner of the source account * @param multiSigners Signing accounts if `owner` is a multiSig */ static createRevokeInstruction( programId: PublicKey, account: PublicKey, owner: PublicKey, multiSigners: Array<Signer>, ): TransactionInstruction { const dataLayout = BufferLayout.struct([BufferLayout.u8('instruction')]); const data = Buffer.alloc(dataLayout.span); dataLayout.encode( { instruction: 5, // Approve instruction }, data, ); let keys = [{pubkey: account, isSigner: false, isWritable: true}]; if (multiSigners.length === 0) { keys.push({pubkey: owner, isSigner: true, isWritable: false}); } else { keys.push({pubkey: owner, isSigner: false, isWritable: false}); multiSigners.forEach(signer => keys.push({ pubkey: signer.publicKey, isSigner: true, isWritable: false, }), ); } return new TransactionInstruction({ keys, programId: programId, data, }); } /** * Construct a SetAuthority instruction * * @param programId SPL Token program account * @param account Public key of the account * @param newAuthority New authority of the account * @param authorityType Type of authority to set * @param currentAuthority Current authority of the specified type * @param multiSigners Signing accounts if `currentAuthority` is a multiSig */ static createSetAuthorityInstruction( programId: PublicKey, account: PublicKey, newAuthority: PublicKey | null, authorityType: AuthorityType, currentAuthority: PublicKey, multiSigners: Array<Signer>, ): TransactionInstruction { const commandDataLayout = BufferLayout.struct([ BufferLayout.u8('instruction'), BufferLayout.u8('authorityType'), BufferLayout.u8('option'), Layout.publicKey('newAuthority'), ]); let data = Buffer.alloc(1024); { const encodeLength = commandDataLayout.encode( { instruction: 6, // SetAuthority instruction authorityType: AuthorityTypeCodes[authorityType], option: newAuthority === null ? 0 : 1, newAuthority: pubkeyToBuffer(newAuthority || new PublicKey(0)), }, data, ); data = data.slice(0, encodeLength); } let keys = [{pubkey: account, isSigner: false, isWritable: true}]; if (multiSigners.length === 0) { keys.push({pubkey: currentAuthority, isSigner: true, isWritable: false}); } else { keys.push({pubkey: currentAuthority, isSigner: false, isWritable: false}); multiSigners.forEach(signer => keys.push({ pubkey: signer.publicKey, isSigner: true, isWritable: false, }), ); } return new TransactionInstruction({ keys, programId: programId, data, }); } /** * Construct a MintTo instruction * * @param programId SPL Token program account * @param mint Public key of the mint * @param dest Public key of the account to mint to * @param authority The mint authority * @param multiSigners Signing accounts if `authority` is a multiSig * @param amount Amount to mint */ static createMintToInstruction( programId: PublicKey, mint: PublicKey, dest: PublicKey, authority: PublicKey, multiSigners: Array<Signer>, amount: number | u64, ): TransactionInstruction { const dataLayout = BufferLayout.struct([ BufferLayout.u8('instruction'), Layout.uint64('amount'), ]); const data = Buffer.alloc(dataLayout.span); dataLayout.encode( { instruction: 7, // MintTo instruction amount: new u64(amount).toBuffer(), }, data, ); let keys = [ {pubkey: mint, isSigner: false, isWritable: true}, {pubkey: dest, isSigner: false, isWritable: true}, ]; if (multiSigners.length === 0) { keys.push({ pubkey: authority, isSigner: true, isWritable: false, }); } else { keys.push({pubkey: authority, isSigner: false, isWritable: false}); multiSigners.forEach(signer => keys.push({ pubkey: signer.publicKey, isSigner: true, isWritable: false, }), ); } return new TransactionInstruction({ keys, programId: programId, data, }); } /** * Construct a Burn instruction * * @param programId SPL Token program account * @param mint Mint for the account * @param account Account to burn tokens from * @param owner Owner of the account * @param multiSigners Signing accounts if `authority` is a multiSig * @param amount amount to burn */ static createBurnInstruction( programId: PublicKey, mint: PublicKey, account: PublicKey, owner: PublicKey, multiSigners: Array<Signer>, amount: number | u64, ): TransactionInstruction { const dataLayout = BufferLayout.struct([ BufferLayout.u8('instruction'), Layout.uint64('amount'), ]); const data = Buffer.alloc(dataLayout.span); dataLayout.encode( { instruction: 8, // Burn instruction amount: new u64(amount).toBuffer(), }, data, ); let keys = [ {pubkey: account, isSigner: false, isWritable: true}, {pubkey: mint, isSigner: false, isWritable: true}, ]; if (multiSigners.length === 0) { keys.push({ pubkey: owner, isSigner: true, isWritable: false, }); } else { keys.push({pubkey: owner, isSigner: false, isWritable: false}); multiSigners.forEach(signer => keys.push({ pubkey: signer.publicKey, isSigner: true, isWritable: false, }), ); } return new TransactionInstruction({ keys, programId: programId, data, }); } /** * Construct a Close instruction * * @param programId SPL Token program account * @param account Account to close * @param dest Account to receive the remaining balance of the closed account * @param authority Account Close authority * @param multiSigners Signing accounts if `owner` is a multiSig */ static createCloseAccountInstruction( programId: PublicKey, account: PublicKey, dest: PublicKey, owner: PublicKey, multiSigners: Array<Signer>, ): TransactionInstruction { const dataLayout = BufferLayout.struct([BufferLayout.u8('instruction')]); const data = Buffer.alloc(dataLayout.span); dataLayout.encode( { instruction: 9, // CloseAccount instruction }, data, ); let keys = [ {pubkey: account, isSigner: false, isWritable: true}, {pubkey: dest, isSigner: false, isWritable: true}, ]; if (multiSigners.length === 0) { keys.push({pubkey: owner, isSigner: true, isWritable: false}); } else { keys.push({pubkey: owner, isSigner: false, isWritable: false}); multiSigners.forEach(signer => keys.push({ pubkey: signer.publicKey, isSigner: true, isWritable: false, }), ); } return new TransactionInstruction({ keys, programId: programId, data, }); } /** * Construct a Freeze instruction * * @param programId SPL Token program account * @param account Account to freeze * @param mint Mint account * @param authority Mint freeze authority * @param multiSigners Signing accounts if `owner` is a multiSig */ static createFreezeAccountInstruction( programId: PublicKey, account: PublicKey, mint: PublicKey, authority: PublicKey, multiSigners: Array<Signer>, ): TransactionInstruction { const dataLayout = BufferLayout.struct([BufferLayout.u8('instruction')]); const data = Buffer.alloc(dataLayout.span); dataLayout.encode( { instruction: 10, // FreezeAccount instruction }, data, ); let keys = [ {pubkey: account, isSigner: false, isWritable: true}, {pubkey: mint, isSigner: false, isWritable: false}, ]; if (multiSigners.length === 0) { keys.push({pubkey: authority, isSigner: true, isWritable: false}); } else { keys.push({pubkey: authority, isSigner: false, isWritable: false}); multiSigners.forEach(signer => keys.push({ pubkey: signer.publicKey, isSigner: true, isWritable: false, }), ); } return new TransactionInstruction({ keys, programId: programId, data, }); } /** * Construct a Thaw instruction * * @param programId SPL Token program account * @param account Account to thaw * @param mint Mint account * @param authority Mint freeze authority * @param multiSigners Signing accounts if `owner` is a multiSig */ static createThawAccountInstruction( programId: PublicKey, account: PublicKey, mint: PublicKey, authority: PublicKey, multiSigners: Array<Signer>, ): TransactionInstruction { const dataLayout = BufferLayout.struct([BufferLayout.u8('instruction')]); const data = Buffer.alloc(dataLayout.span); dataLayout.encode( { instruction: 11, // ThawAccount instruction }, data, ); let keys = [ {pubkey: account, isSigner: false, isWritable: true}, {pubkey: mint, isSigner: false, isWritable: false}, ]; if (multiSigners.length === 0) { keys.push({pubkey: authority, isSigner: true, isWritable: false}); } else { keys.push({pubkey: authority, isSigner: false, isWritable: false}); multiSigners.forEach(signer => keys.push({ pubkey: signer.publicKey, isSigner: true, isWritable: false, }), ); } return new TransactionInstruction({ keys, programId: programId, data, }); } /** * Construct a TransferChecked instruction * * @param programId SPL Token program account * @param source Source account * @param mint Mint account * @param destination Destination account * @param owner Owner of the source account * @param multiSigners Signing accounts if `authority` is a multiSig * @param amount Number of tokens to transfer * @param decimals Number of decimals in transfer amount */ static createTransferCheckedInstruction( programId: PublicKey, source: PublicKey, mint: PublicKey, destination: PublicKey, owner: PublicKey, multiSigners: Array<Signer>, amount: number | u64, decimals: number, ): TransactionInstruction { const dataLayout = BufferLayout.struct([ BufferLayout.u8('instruction'), Layout.uint64('amount'), BufferLayout.u8('decimals'), ]); const data = Buffer.alloc(dataLayout.span); dataLayout.encode( { instruction: 12, // TransferChecked instruction amount: new u64(amount).toBuffer(), decimals, }, data, ); let keys = [ {pubkey: source, isSigner: false, isWritable: true}, {pubkey: mint, isSigner: false, isWritable: false}, {pubkey: destination, isSigner: false, isWritable: true}, ]; if (multiSigners.length === 0) { keys.push({ pubkey: owner, isSigner: true, isWritable: false, }); } else { keys.push({pubkey: owner, isSigner: false, isWritable: false}); multiSigners.forEach(signer => keys.push({ pubkey: signer.publicKey, isSigner: true, isWritable: false, }), ); } return new TransactionInstruction({ keys, programId: programId, data, }); } /** * Construct an ApproveChecked instruction * * @param programId SPL Token program account * @param account Public key of the account * @param mint Mint account * @param delegate Account authorized to perform a transfer of tokens from the source account * @param owner Owner of the source account * @param multiSigners Signing accounts if `owner` is a multiSig * @param amount Maximum number of tokens the delegate may transfer * @param decimals Number of decimals in approve amount */ static createApproveCheckedInstruction( programId: PublicKey, account: PublicKey, mint: PublicKey, delegate: PublicKey, owner: PublicKey, multiSigners: Array<Signer>, amount: number | u64, decimals: number, ): TransactionInstruction { const dataLayout = BufferLayout.struct([ BufferLayout.u8('instruction'), Layout.uint64('amount'), BufferLayout.u8('decimals'), ]); const data = Buffer.alloc(dataLayout.span); dataLayout.encode( { instruction: 13, // ApproveChecked instruction amount: new u64(amount).toBuffer(), decimals, }, data, ); let keys = [ {pubkey: account, isSigner: false, isWritable: true}, {pubkey: mint, isSigner: false, isWritable: false}, {pubkey: delegate, isSigner: false, isWritable: false}, ]; if (multiSigners.length === 0) { keys.push({pubkey: owner, isSigner: true, isWritable: false}); } else { keys.push({pubkey: owner, isSigner: false, isWritable: false}); multiSigners.forEach(signer => keys.push({ pubkey: signer.publicKey, isSigner: true, isWritable: false, }), ); } return new TransactionInstruction({ keys, programId: programId, data, }); } /** * Construct a MintToChecked instruction * * @param programId SPL Token program account * @param mint Public key of the mint * @param dest Public key of the account to mint to * @param authority The mint authority * @param multiSigners Signing accounts if `authority` is a multiSig * @param amount Amount to mint * @param decimals Number of decimals in amount to mint */ static createMintToCheckedInstruction( programId: PublicKey, mint: PublicKey, dest: PublicKey, authority: PublicKey, multiSigners: Array<Signer>, amount: number | u64, decimals: number, ): TransactionInstruction { const dataLayout = BufferLayout.struct([ BufferLayout.u8('instruction'), Layout.uint64('amount'), BufferLayout.u8('decimals'), ]); const data = Buffer.alloc(dataLayout.span); dataLayout.encode( { instruction: 14, // MintToChecked instruction amount: new u64(amount).toBuffer(), decimals, }, data, ); let keys = [ {pubkey: mint, isSigner: false, isWritable: true}, {pubkey: dest, isSigner: false, isWritable: true}, ]; if (multiSigners.length === 0) { keys.push({ pubkey: authority, isSigner: true, isWritable: false, }); } else { keys.push({pubkey: authority, isSigner: false, isWritable: false}); multiSigners.forEach(signer => keys.push({ pubkey: signer.publicKey, isSigner: true, isWritable: false, }), ); } return new TransactionInstruction({ keys, programId: programId, data, }); } /** * Construct a BurnChecked instruction * * @param programId SPL Token program account * @param mint Mint for the account * @param account Account to burn tokens from * @param owner Owner of the account * @param multiSigners Signing accounts if `authority` is a multiSig * @param amount amount to burn */ static createBurnCheckedInstruction( programId: PublicKey, mint: PublicKey, account: PublicKey, owner: PublicKey, multiSigners: Array<Signer>, amount: number | u64, decimals: number, ): TransactionInstruction { const dataLayout = BufferLayout.struct([ BufferLayout.u8('instruction'), Layout.uint64('amount'), BufferLayout.u8('decimals'), ]); const data = Buffer.alloc(dataLayout.span); dataLayout.encode( { instruction: 15, // BurnChecked instruction amount: new u64(amount).toBuffer(), decimals, }, data, ); let keys = [ {pubkey: account, isSigner: false, isWritable: true}, {pubkey: mint, isSigner: false, isWritable: true}, ]; if (multiSigners.length === 0) { keys.push({ pubkey: owner, isSigner: true, isWritable: false, }); } else { keys.push({pubkey: owner, isSigner: false, isWritable: false}); multiSigners.forEach(signer => keys.push({ pubkey: signer.publicKey, isSigner: true, isWritable: false, }), ); } return new TransactionInstruction({ keys, programId: programId, data, }); } /** * Construct a SyncNative instruction * * @param programId SPL Token program account * @param nativeAccount Account to sync lamports from */ static createSyncNativeInstruction( programId: PublicKey, nativeAccount: PublicKey, ): TransactionInstruction { const dataLayout = BufferLayout.struct([BufferLayout.u8('instruction')]); const data = Buffer.alloc(dataLayout.span); dataLayout.encode( { instruction: 17, // SyncNative instruction }, data, ); let keys = [{pubkey: nativeAccount, isSigner: false, isWritable: true}]; return new TransactionInstruction({keys, programId: programId, data}); } /** * Get the address for the associated token account * * @param associatedProgramId SPL Associated Token program account * @param programId SPL Token program account * @param mint Token mint account * @param owner Owner of the new account * @return Public key of the associated token account */ static async getAssociatedTokenAddress( associatedProgramId: PublicKey, programId: PublicKey, mint: PublicKey, owner: PublicKey, allowOwnerOffCurve: boolean = false, ): Promise<PublicKey> { if (!allowOwnerOffCurve && !PublicKey.isOnCurve(owner.toBuffer())) { throw new Error(`Owner cannot sign: ${owner.toString()}`); } return ( await PublicKey.findProgramAddress( [owner.toBuffer(), programId.toBuffer(), mint.toBuffer()], associatedProgramId, ) )[0]; } /** * Construct the AssociatedTokenProgram instruction to create the associated * token account * * @param associatedProgramId SPL Associated Token program account * @param programId SPL Token program account * @param mint Token mint account * @param associatedAccount New associated account * @param owner Owner of the new account * @param payer Payer of fees */ static createAssociatedTokenAccountInstruction( associatedProgramId: PublicKey, programId: PublicKey, mint: PublicKey, associatedAccount: PublicKey, owner: PublicKey, payer: PublicKey, ): TransactionInstruction { const data = Buffer.alloc(0); let keys = [ {pubkey: payer, isSigner: true, isWritable: true}, {pubkey: associatedAccount, isSigner: false, isWritable: true}, {pubkey: owner, isSigner: false, isWritable: false}, {pubkey: mint, isSigner: false, isWritable: false}, {pubkey: SystemProgram.programId, isSigner: false, isWritable: false}, {pubkey: programId, isSigner: false, isWritable: false}, {pubkey: SYSVAR_RENT_PUBKEY, isSigner: false, isWritable: false}, ]; return new TransactionInstruction({ keys, programId: associatedProgramId, data, }); } }
26.553365
98
0.638396
a7631db7258c54db673fb5ce6b79eef2944c7535
732
js
JavaScript
7-kyu/Automorphic Number (Special Numbers Series #6)/index.test.js
ayessetova/codeW
fa5479162a19b863047ea318ad728c86946a3f46
[ "MIT" ]
314
2017-12-08T16:51:31.000Z
2022-03-30T01:59:49.000Z
7-kyu/Automorphic Number (Special Numbers Series #6)/index.test.js
ayessetova/codeW
fa5479162a19b863047ea318ad728c86946a3f46
[ "MIT" ]
4
2018-04-27T03:54:20.000Z
2020-12-06T20:13:40.000Z
7-kyu/Automorphic Number (Special Numbers Series #6)/index.test.js
ayessetova/codeW
fa5479162a19b863047ea318ad728c86946a3f46
[ "MIT" ]
141
2017-12-18T18:19:13.000Z
2022-03-29T12:16:38.000Z
const automorphic = require('.') test('Test 1', () => { expect(automorphic(1)).toBe('Automorphic') }) test('Test 2', () => { expect(automorphic(3)).toBe('Not!!') }) test('Test 3', () => { expect(automorphic(6)).toBe('Automorphic') }) test('Test 4', () => { expect(automorphic(9)).toBe('Not!!') }) test('Test 5', () => { expect(automorphic(25)).toBe('Automorphic') }) test('Test 6', () => { expect(automorphic(53)).toBe('Not!!') }) test('Test 7', () => { expect(automorphic(76)).toBe('Automorphic') }) test('Test 8', () => { expect(automorphic(95)).toBe('Not!!') }) test('Test 9', () => { expect(automorphic(625)).toBe('Automorphic') }) test('Test 10', () => { expect(automorphic(225)).toBe('Not!!') })
17.428571
46
0.562842
a76374dbcd7a2c7d44b5ff07e4939e1106dc6265
1,617
js
JavaScript
src/processors/js.js
KuroTsuto/eslint-plugin-hackmud
0afc9bdb25f2984bf96beae375103f5a93441599
[ "MIT" ]
3
2017-07-08T23:11:19.000Z
2020-02-23T21:20:34.000Z
src/processors/js.js
KuroTsuto/eslint-plugin-hackmud
0afc9bdb25f2984bf96beae375103f5a93441599
[ "MIT" ]
5
2017-08-02T21:57:44.000Z
2017-10-29T03:43:48.000Z
src/processors/js.js
KuroTsuto/eslint-plugin-hackmud
0afc9bdb25f2984bf96beae375103f5a93441599
[ "MIT" ]
2
2020-04-12T17:01:45.000Z
2020-04-12T17:30:31.000Z
import { SUBSCRIPT_PREFIX, DATABASE_PREFIX, PREPROC_G, PREPROC_D, PREPROC_FMCL } from '../config.js' function pre( text, filename ) { // TODO: handle multiple top-level anonymous closures text = text .replace( /#(\w)?s\./g, '$$$1S_' ) .replace( /#db\./g, DATABASE_PREFIX ) .replace( /#D/g, PREPROC_D ) .replace( /#G/g, PREPROC_G ) .replace( /#FMCL/g, PREPROC_FMCL ) return [`return ${text}`] } function post( messages, filename ) { messages = messages[0] .map( message => { if( message.line == 1 ) message.column -= 7 /*message.source = message.source .replace( /$(\w?S_)/g, '#s.' ) .replace( DATABASE_PREFIX, '#db.' ) .replace( PREPROC_D, '#D' ) .replace( PREPROC_G, '#G' ) .replace( PREPROC_FMCL, '#FMCL' )*/ message.message = message.message .replace( /$(\w?S_)/g, '#$1s.' ) .replace( DATABASE_PREFIX, '#db.' ) .replace( PREPROC_D, '#D' ) .replace( PREPROC_G, '#G' ) .replace( PREPROC_FMCL, '#FMCL' ) return message }) .filter( ( msg, i, msgs ) => { if( msg.ruleId == 'no-unreachable' && msgs.some( m => m.ruleId == 'hackmud2/no-closure-siblings' && m.line == msg.line ) ) return false if( msg.ruleId == 'no-undef' && msgs.some( m => m.ruleId == 'hackmud2/validate-subscript-syntax' && m.line == msg.line ) ) return false return true }) .sort( ( a, b ) => a.severity == b.severity ? 0 : a.severity > b.severity ? -1 : 1 ) return messages } export default { preprocess: pre, postprocess: post }
26.508197
128
0.55906
a7638861f559f0cab0b9fcba14ad0fe657bcb061
369
js
JavaScript
GCanvas/js/src/context-webgl/Shader.js
nicholasalx/GCanvas
b65dc955e62cad69b65cad35c1e7c920eaf9cdfd
[ "Apache-2.0" ]
2,076
2019-07-08T15:02:56.000Z
2022-03-31T23:47:40.000Z
GCanvas/js/src/context-webgl/Shader.js
nicholasalx/GCanvas
b65dc955e62cad69b65cad35c1e7c920eaf9cdfd
[ "Apache-2.0" ]
95
2019-07-09T01:41:36.000Z
2022-02-21T08:40:15.000Z
GCanvas/js/src/context-webgl/Shader.js
nicholasalx/GCanvas
b65dc955e62cad69b65cad35c1e7c920eaf9cdfd
[ "Apache-2.0" ]
393
2019-07-09T01:31:05.000Z
2022-03-28T09:44:37.000Z
import {getTransferedObjectUUID} from './classUtils'; const name = 'WebGLShader'; function uuid(id) { return getTransferedObjectUUID(name, id); } export default class WebGLShader { className = name; constructor(id, type) { this.id = id; this.type = type; } static uuid = uuid; uuid() { return uuid(this.id); } }
16.772727
53
0.609756
a7649d78cdabda48cccbe1ab08ef8919ea6d7165
2,274
js
JavaScript
server/shopify/api/giftcard.js
gregorybesson/shopify-app-starter
96092ddc6c5b1f161a580c7e64374356533592b0
[ "MIT" ]
2
2021-04-23T18:15:24.000Z
2021-12-27T13:21:03.000Z
server/shopify/api/giftcard.js
gregorybesson/shopify-app-starter
96092ddc6c5b1f161a580c7e64374356533592b0
[ "MIT" ]
null
null
null
server/shopify/api/giftcard.js
gregorybesson/shopify-app-starter
96092ddc6c5b1f161a580c7e64374356533592b0
[ "MIT" ]
null
null
null
import axios from "axios"; import dotenv from "dotenv"; import _ from "lodash"; import { get, put, post, del, getUrl } from "../query"; dotenv.config(); /** * GET /admin/api/2020-04/gift_cards.json Retrieves a list of gift cards GET /admin/api/2020-04/gift_cards/{gift_card_id}.json Retrieves a single gift card GET /admin/api/2020-04/gift_cards/count.json?status=enabled Retrieves a count of gift cards POST /admin/api/2020-04/gift_cards.json Creates a gift card PUT /admin/api/2020-04/gift_cards/{gift_card_id}.json Updates an existing gift card POST /admin/api/2020-04/gift_cards/{gift_card_id}/disable.json Disables a gift card GET /admin/api/2020-04/gift_cards/search.json?query=mnop Searches for gift cards */ export const getGiftCards = async () => { const result = await get(`/gift_cards.json`); return result.data.gift_cards; }; export const getGiftCard = async (giftCardId) => { const result = await get(`/gift_cards/${giftCardId}.json`); return result.data.gift_card; }; export const createGiftCard = async (changeset) => { // changeset = { // "note": "This is a note", // "initial_value": 100.0, // "code": "ABCDEFGHIJKLMNOP", // "template_suffix": "gift_cards.liquid" // } let result = null; console.log("changeset createGiftCard", changeset); try { const req = await post(`/gift_cards.json`, { gift_card: changeset, }); result = req.data; } catch (e) { console.log( "createGiftCard error :", _.get(e, "response.data.errors", _.get(e, "response.data.error", e)) ); } return result; }; export const updateGiftCard = async (giftCardId, changeset) => { changeset = { gift_card: { id: giftCardId, ...changeset, }, }; const result = await put( `/gift_cards/${giftCardId}.json`, changeset ); return result.data; }; export const disableGiftCard = async (giftCardId) => { let result = null; try { const req = await post( `/gift_cards/${giftCardId}/disable.json` ); result = req.data; } catch (e) { console.log( "disableGiftCard error :", _.get(e, "response.data.errors", _.get(e, "response.data.error", e)) ); } return result; };
22.514851
74
0.640721
a764eb59f09d6d56942febd142a49517bd85af1d
23,351
js
JavaScript
Minor_Packages/SCWeatherMap/root/js/NewWeatherMap.js
perfsonar/historical
9f21b87cb170d1dfe712195e1003b071f8348744
[ "Apache-2.0" ]
null
null
null
Minor_Packages/SCWeatherMap/root/js/NewWeatherMap.js
perfsonar/historical
9f21b87cb170d1dfe712195e1003b071f8348744
[ "Apache-2.0" ]
null
null
null
Minor_Packages/SCWeatherMap/root/js/NewWeatherMap.js
perfsonar/historical
9f21b87cb170d1dfe712195e1003b071f8348744
[ "Apache-2.0" ]
null
null
null
var canvas; var endpoints; var icons; var links; var background_image_src; var background_image; var background_height; var background_width; var background_color; var background_loaded = 0; function initWeatherMap() { canvas = document.getElementById('drawing'); /* var ep1 = new Array(); ep1["id"] = "ep1"; ep1["x"] = 30; ep1["y"] = 300; ep1["icon"] = "images/sc08_mini_logo2.png"; var ep2 = new Array(); ep2["id"] = "ep2"; ep2["x"] = 200; ep2["y"] = 200; ep2["icon"] = "images/sc08_mini_logo2.png"; var ep3 = new Array(); ep3["id"] = "ep3"; ep3["x"] = 800; ep3["y"] = 400; //ep3["icon"] = "images/sc08_mini_logo2.png"; ep3["icon"] = "images/color_key.png"; endpoints = new Array(); endpoints[ep1["id"]] = ep1; endpoints[ep2["id"]] = ep2; endpoints[ep3["id"]] = ep3; var link1 = new Array(); link1["source"] = "ep1"; link1["destination"] = "ep2"; link1["type"] = "unidirectional"; link1["arrow-scale"] = 1; link1["source-destination"] = { "suggested-color": "rgb(255, 128, 0)" }; var link3 = new Array(); link3["source"] = "ep2"; link3["destination"] = "ep1"; link3["type"] = "unidirectional"; link3["arrow-scale"] = 1; link3["source-destination"] = { "suggested-color": "rgb(0, 255, 0)" }; var link2 = new Array(); link2["source"] = "ep2"; link2["destination"] = "ep3"; link2["type"] = "bidirectional-pair"; link2["arrow-scale"] = 1; link2["source-destination"] = { "suggested-color": "rgb(0, 255, 255)" }; link2["destination-source"] = { "suggested-color": "rgb(0, 0, 255)" }; links = new Array(); links[0] = link1; links[1] = link1; links[2] = link2; links[3] = link2; links[4] = link2; links[5] = link2; links[6] = link2; links[7] = link2; links[8] = link2; links[9] = link2; links[10] = link1; links[11] = link3; links[12] = link3; */ getMapState(); } function refreshMap() { background_loaded = 0; if (background_image_src != null) { var bgImg = new Image(); bgImg.onload = function() { background_image = this; background_loaded = 1; drawMap(); } bgImg.src = background_image_src; } else { // if it's not a picture, it's already 'loaded' background_loaded = 1; } for(var link_id in links) { var link = links[link_id]; var directions = [ "source", "destination" ]; for(var direction_id in directions) { var direction = directions[direction_id]; if (endpoints[link[direction]]["children"] == null) { endpoints[link[direction]]["children"] = new Array(); } endpoints[link[direction]]["children"][link_id] = link; } } for(var icon_id in icons) { var icon = icons[icon_id]; var iconImg = new Image(); iconImg.icon = icon; icon.image_obj = iconImg; icon.loaded = 0; icon.drawn = 0; iconImg.onload = function() { this.icon.loaded = 1; if (!this.icon["height"] && !this.icon["width"]) { this.icon.height = this.height; this.icon.width = this.width; } else if (this.icon["height"]) { this.icon.width = this.icon["height"]/this.height*this.width; } else if (this.icon["width"]) { this.icon.height = this.icon.width/this.width*this.height; } drawMap(); } iconImg.src = icon.image; } for(var ep_id in endpoints) { log("Debug: Adding "+ep_id); var endpoint = endpoints[ep_id]; if (endpoint['icon']) { var iconImg = new Image(); iconImg.endpoint = endpoint; endpoint.image = iconImg; endpoint.loaded = 0; endpoint.drawn = 0; iconImg.onload = function() { this.endpoint.loaded = 1; if (!this.endpoint["height"] && !this.endpoint["width"]) { this.endpoint.height = this.height; this.endpoint.width = this.width; } else if (this.endpoint["height"]) { this.endpoint.width = this.endpoint["height"]/this.height*this.width; } else if (this.endpoint["width"]) { this.endpoint.height = this.endpoint.width/this.width*this.height; } drawMap(); } iconImg.src = endpoint.icon; } else { endpoint.loaded = 1; endpoint.drawn = 0; } } drawMap(); return false; } function drawMap() { log("Debug: drawMap()"); if (background_loaded == 0) { log("Debug: no background"); return; } for(var ep_id in endpoints) { var endpoint = endpoints[ep_id]; if (endpoint['loaded'] == 0) { log("Debug: ep "+ep_id+" not loaded"); return; } } for(var icon_id in icons) { var icon = icons[icon_id]; if (icon['loaded'] == 0) { log("Debug: icon "+icon['image']+" not loaded"); return; } } var canvas_ctx = canvas.getContext('2d'); var height; if (background_height != null) { height = background_height; } else if (background_image != null) { height = background_image.height; } var width; if (background_width != null) { width = background_width; }else if (background_image != null) { width = background_image.width; } canvas_ctx.clearRect(0,0,width,height); if (background_image) { canvas_ctx.drawImage(background_image, 0, 0, width,height); } else if (background_color) { var prevFill = canvas_ctx.fillStyle; canvas_ctx.fillStyle = background_color; canvas_ctx.fillRect(0, 0, width,height); canvas_ctx.fillStyle = prevFill; } // fill in the height/width for the non-image endpoints for(var ep_id in endpoints) { var endpoint = endpoints[ep_id]; if (endpoint.type == 'radial') { var outerRadius = 4.5; if (endpoint.outerRadius) { outerRadius = endpoint.outerRadius; } endpoint["height"] = outerRadius * 2; endpoint["width"] = outerRadius * 2; } else if (endpoint.type == 'hidden') { if (endpoint["height"] == null) { endpoint["height"] = 1; } if (endpoint["width"] == null) { endpoint["width"] = 1; } } } var intra_link_count = new Array(); for(var link_id in links) { var link = links[link_id]; if (link["source"] == link["destination"]) { log("Debug: loopback found. ignoring."); continue; } var num_links_between_id; log("Drawing line from "+link["source"]+" to "+link["destination"]); if (link["source"] < link["destination"]) { num_links_between_id = link["source"]+link["destination"]; } else { num_links_between_id = link["destination"]+link["source"]; } if (intra_link_count[num_links_between_id] == null) { intra_link_count[num_links_between_id] = 1; } else { intra_link_count[num_links_between_id]++; } var src_x = parseInt(endpoints[link["source"]]["x"], 10); var src_y = parseInt(endpoints[link["source"]]["y"], 10); var dst_x = parseInt(endpoints[link["destination"]]["x"], 10); var dst_y = parseInt(endpoints[link["destination"]]["y"], 10); // we draw a "circle" around the pictures, and offset everything from that circle var ang = Math.atan2(dst_y-src_y,dst_x-src_x); log("Debug: src("+src_x+","+src_y+"), dst("+dst_x+","+dst_y+")"); var src_radius = Math.sqrt(Math.pow(endpoints[link["source"]]["width"], 2) + Math.pow(endpoints[link["source"]]["height"], 2))/2; log("Debug: (width, height): ("+endpoints[link["source"]]["width"]+","+endpoints[link["source"]]["height"]+")"); var dst_radius = Math.sqrt(Math.pow(endpoints[link["destination"]]["width"], 2) + Math.pow(endpoints[link["destination"]]["height"], 2))/2; log("Debug: (src, dst): ("+src_radius+","+dst_radius+")"); src_x += src_radius * Math.cos(ang); src_y += src_radius * Math.sin(ang); dst_x -= dst_radius * Math.cos(ang); dst_y -= dst_radius * Math.sin(ang); log("Debug: src("+src_x+","+src_y+"), dst("+dst_x+","+dst_y+"): post-y-mod"); // Offset the arrow some if there are multiple links if (intra_link_count[num_links_between_id] > 1) { var ang = Math.PI - Math.atan2(dst_y-src_y,dst_x-src_x); var distance_offset = 2*8*(Math.floor((intra_link_count[num_links_between_id])/2))*(Math.pow(-1, intra_link_count[num_links_between_id])); var x_offset = Math.sin(ang)*distance_offset; var y_offset = Math.cos(ang)*distance_offset; src_x += x_offset; src_y += y_offset; dst_x += x_offset; dst_y += y_offset; } // Offset the arrow according to the src/dst image edges. var ang = Math.atan2(dst_y-src_y,dst_x-src_x); log("Debug: fwd src("+src_x+","+src_y+"), dst("+dst_x+","+dst_y+"): "+ang); log("Debug: rev src("+src_x+","+src_y+"), dst("+dst_x+","+dst_y+"): "+Math.atan2(src_y-dst_y,src_x-dst_x)); var i; for(i = 0; i <= 2; i++) { var j; for(var j = 0; j <= 2; j++) { if (i == 1 && j == 1) { continue; } var ang = Math.atan2(j-1, i-1); log("Debug: fwd src("+1+","+1+"), dst("+i+","+j+"): "+ang+", "+(180/Math.PI*ang)); } } var src_color; var dst_color; var arrow_scale; if (link["arrow_scale"]) { arrow_scale = link["arrow_scale"]; } else { arrow_scale = 1; } if (link["suggested-colors"]) { if (link["suggested-colors"]["source-destination"]) { src_color = link["suggested-colors"]["source-destination"]; } if (link["suggested-colors"]["destination-source"]) { dst_color = link["suggested-colors"]["destination-source"]; } } log("Debug: src_color: "+src_color); log("Debug: dst_color: "+dst_color); log("Debug: arrow_scale: "+arrow_scale); log("Debug: (src_x, src_y): ("+src_x+","+src_y+")"); log("Debug: (dst_x, dst_y): ("+dst_x+","+dst_y+")"); if (link["type"] == "bidirectional") { drawArrow(canvas_ctx, src_x, src_y, dst_x, dst_y, src_color, arrow_scale ); drawArrow(canvas_ctx, dst_x, dst_y, src_x, src_y, src_color, arrow_scale ); } else if (link["type"] == "unidirectional") { drawArrow(canvas_ctx, src_x, src_y, dst_x, dst_y, src_color, arrow_scale ); } else if (link["type"] == "bidirectional-pair") { var midpt_x = (src_x + dst_x)/2; var midpt_y = (src_y + dst_y)/2; drawArrow(canvas_ctx, src_x, src_y, midpt_x, midpt_y, src_color, arrow_scale, 5 ); drawArrow(canvas_ctx, dst_x, dst_y, midpt_x, midpt_y, dst_color, arrow_scale, 5 ); } else if (link["type"] == "unidirectional-line") { var prevLineWidth = canvas_ctx.lineWidth; var prevStrokeStyle = canvas_ctx.strokeStyle; canvas_ctx.lineWidth = 2 * arrow_scale; if (src_color != null) { canvas_ctx.strokeStyle = src_color; } canvas_ctx.beginPath(); canvas_ctx.moveTo(src_x,src_y); canvas_ctx.lineTo(dst_x, dst_y); canvas_ctx.stroke(); canvas_ctx.strokeStyle = prevStrokeStyle; canvas_ctx.strokeStyle = prevStrokeStyle; canvas_ctx.lineWidth = prevLineWidth; } } for(var ep_id in endpoints) { var endpoint = endpoints[ep_id]; var x = parseInt(endpoint["x"], 10); var y = parseInt(endpoint["y"], 10); var height; var width; if (endpoint.type == "radial") { var innerColor = "#FFCE00"; var outerColor = "#FF0000"; var innerRadius = 1.0; var outerRadius = 4.5; if (endpoint.innerColor) { innerColor = endpoint.innerColor; } if (endpoint.outerColor) { outerColor = endpoint.outerColor; } if (endpoint.innerRadius) { innerRadius = endpoint.innerRadius; } if (endpoint.outerRadius) { outerRadius = endpoint.outerRadius; } endpoint["height"] = outerRadius * 2; endpoint["width"] = outerRadius * 2; var prevFillStyle = canvas_ctx.fillStyle; var radgrad = canvas_ctx.createRadialGradient(endpoint.x,endpoint.y, innerRadius,endpoint.x, endpoint.y,outerRadius); radgrad.addColorStop(0, innerColor); radgrad.addColorStop(1, outerColor); canvas_ctx.fillStyle = radgrad; canvas_ctx.beginPath(); canvas_ctx.arc(endpoint.x,endpoint.y,outerRadius,0,Math.PI*2,true); canvas_ctx.fill(); canvas_ctx.fillStyle = prevFillStyle; log("EP: "+endpoint["height"]+"/"+endpoint["width"]); } else if (endpoint.type == "icon" || (endpoint.type == null && endpoint.image != null)) { if (endpoint["height"] && endpoint["width"]) { height = endpoint["height"]; width = endpoint["width"]; } else if (endpoint["height"]) { height = endpoint["height"]; width = endpoint["height"]/endpoint.image.height*endpoint.image.width; } else if (endpoint["width"]) { width = endpoint["width"]; height = endpoint["width"]/endpoint.image.width*endpoint.image.height; } else { height = endpoint.image.height; width = endpoint.image.width; } endpoint["height"] = height; endpoint["width"] = width; y -= height/2; x -= width/2; log("Debug: Drawing "+ep_id+" image at ("+x+","+y+")"); /* var new_rad = Math.sqrt(width*width+height*height)/2; canvas_ctx.strokeStyle = "rgb(0, 0, 0)"; canvas_ctx.beginPath(); canvas_ctx.arc(x + width/2, y + height/2, new_rad, 0, 2*Math.PI, true); canvas_ctx.closePath(); canvas_ctx.stroke(); canvas_ctx.fillStyle = prevFill; */ try { canvas_ctx.drawImage(endpoint["image"], x, y, width, height); } catch(err) { log("Error: "+err); }; } log("EP: "+endpoint["height"]+"/"+endpoint["width"]); } for(var icon_id in icons) { var icon = icons[icon_id]; var x = parseInt(icon["x"], 10); var y = parseInt(icon["y"], 10); var height; var width; if (icon["height"] && icon["width"]) { height = icon["height"]; width = icon["width"]; } else if (icon["height"]) { height = icon["height"]; width = icon["height"]/icon.image.height*icon.image.width; } else if (icon["width"]) { width = icon["width"]; height = icon["width"]/icon.image.width*icon.image.height; } else { height = icon.image.height; width = icon.image.width; } icon["height"] = height; icon["width"] = width; y -= height/2; x -= width/2; log("Debug: Drawing "+icon_id+" image at ("+x+","+y+")"); var prevFill = canvas_ctx.fillStyle; canvas_ctx.fillStyle = "rgb(255, 255, 255)"; canvas_ctx.fillRect(x, y, width,height); canvas_ctx.fillStyle = prevFill; canvas_ctx.drawImage(icon.image_obj, x, y, width, height); } } /** * Title: getMapState * Arguments: None * Purpose: Call an external CGI to obtain the new map to generate. **/ function getMapState() { // Call a 'local' CGI script that outputs data in JSON format var query = "out.json"; log("Debug: getMapState: Calling cgi script \"" + query + "\"" ); var doreq = MochiKit.Async.doSimpleXMLHttpRequest( query ); doreq.addCallback( handleStateUpdate ); MochiKit.Async.callLater( 120, getMapState ); } /** * Title: handleUpdate * Arguments: req - JSON data from external CGI * Purpose: Process the JSON data, update the arrows/displays on the map accordingly **/ function handleStateUpdate( req ) { log("Debug: handleUpdate: Data received \"" + Date() + "\"" ); log("Debug: handleUpdate: JSON \"" + req.responseText + "\"" ); var json; try { json = MochiKit.Async.evalJSONRequest( req ); if( json == null ) { log("Debug: handleUpdate: got null json"); return; } } catch(err) { log("Error parsing json: "+err); return; } background_image_src = json["background"]["image"]; background_color = json["background"]["color"]; background_height = json["background"]["height"]; background_width = json["background"]["width"]; endpoints = json["endpoints"]; links = json["links"]; icons = json["icons"]; refreshMap(); } /** * Title: drawString * Arguments: ctx - Canvas element * txt - Text string to write * col - color * fh - font 'size' * tx - x coordinate * ty - y coordinate * Purpose: Draw various string characters **/ function drawString(ctx, txt, col, fh, tx, ty) { var fw = fh*0.666666; var lw = fh*0.125; var ls = lw/2; var xp = 0; var cr = lw; ctx.lineCap = "round"; ctx.lineJoin = "round" ctx.lineWidth = lw; ctx.strokeStyle = col; for (var i = 0; i < txt.length; i++) { drawSymbol(ctx, txt[i], ls, tx+xp, ty, fw, fh); xp += (txt[i]!="."?fw+cr:(fw/2)+cr); } } /** * Title: drawSymbol * Arguments: ctx - Canvas element * symbol - Character to draw * fc - offset * cx - x coordinate * cy - y coordinate * ch - Character size * Purpose: Draws a specific symbol **/ function drawSymbol( ctx, symbol, fc, cx, cy, cw, ch ) { ctx.beginPath(); switch ( symbol ) { case "0": ctx.moveTo(cx+fc,cy+(ch*0.333333)); ctx.arc(cx+(cw/2),cy+(cw/2),(cw/2)-fc,deg2rad(180),0, false); ctx.arc(cx+(cw/2),(cy+ch)-(cw/2),(cw/2)-fc,0,deg2rad(180), false); ctx.closePath(); break; case "1": ctx.moveTo(cx+(cw*0.1)+fc,cy+ch-fc); ctx.lineTo(cx+cw-fc,cy+ch-fc); ctx.moveTo(cx+(cw*0.666666),cy+ch-fc); ctx.lineTo(cx+(cw*0.666666),cy+fc); ctx.lineTo(cx+(cw*0.25),cy+(ch*0.25)); break; case "2": ctx.moveTo(cx+cw-fc,cy+(ch*0.8)); ctx.lineTo(cx+cw-fc,cy+ch-fc); ctx.lineTo(cx+fc,cy+ch-fc); ctx.arc(cx+(cw/2),cy+(cw*0.425),(cw*0.425)-fc,deg2rad(45),deg2rad(-180), true); break; case "3": ctx.moveTo(cx+(cw*0.1)+fc,cy+fc); ctx.lineTo(cx+(cw*0.9)-fc,cy+fc); ctx.arc(cx+(cw/2),cy+ch-(cw*0.5),(cw*0.5)-fc,deg2rad(-90),deg2rad(180), false); break; case "4": ctx.moveTo(cx+(cw*0.75),cy+ch-fc); ctx.lineTo(cx+(cw*0.75),cy+fc); ctx.moveTo(cx+cw-fc,cy+(ch*0.666666)); ctx.lineTo(cx+fc,cy+(ch*0.666666)); ctx.lineTo(cx+(cw*0.75),cy+fc); ctx.moveTo(cx+cw-fc,cy+ch-fc); ctx.lineTo(cx+(cw*0.5),cy+ch-fc); break; case "5": ctx.moveTo(cx+(cw*0.9)-fc,cy+fc); ctx.lineTo(cx+(cw*0.1)+fc,cy+fc); ctx.lineTo(cx+(cw*0.1)+fc,cy+(ch*0.333333)); ctx.arc(cx+(cw/2),cy+ch-(cw*0.5),(cw*0.5)-fc,deg2rad(-80),deg2rad(180), false); break; case "6": ctx.moveTo(cx+fc,cy+ch-(cw*0.5)-fc); ctx.arc(cx+(cw/2),cy+ch-(cw*0.5),(cw*0.5)-fc,deg2rad(-180),deg2rad(180), false); ctx.bezierCurveTo(cx+fc,cy+fc,cx+fc,cy+fc,cx+(cw*0.9)-fc,cy+fc); ctx.moveTo(cx+(cw*0.9)-fc,cy+fc); break; case "7": ctx.moveTo(cx+(cw*0.5),cy+ch-fc); ctx.lineTo(cx+cw-fc,cy+fc); ctx.lineTo(cx+(cw*0.1)+fc,cy+fc); ctx.lineTo(cx+(cw*0.1)+fc,cy+(ch*0.25)-fc); break; case "8": ctx.moveTo(cx+(cw*0.92)-fc,cy+(cw*0.59)); ctx.arc(cx+(cw/2),cy+(cw*0.45),(cw*0.45)-fc,deg2rad(25),deg2rad(-205), true); ctx.arc(cx+(cw/2),cy+ch-(cw*0.5),(cw*0.5)-fc,deg2rad(-135),deg2rad(-45), true); ctx.closePath(); ctx.moveTo(cx+(cw*0.79),cy+(ch*0.47)); ctx.lineTo(cx+(cw*0.21),cy+(ch*0.47)); break; case "9": ctx.moveTo(cx+cw-fc,cy+(cw*0.5)); ctx.arc(cx+(cw/2),cy+(cw*0.5),(cw*0.5)-fc,deg2rad(0),deg2rad(360), false); ctx.bezierCurveTo(cx+cw-fc,cy+ch-fc,cx+cw-fc,cy+ch-fc,cx+(cw*0.1)+fc,cy+ch-fc); break; case "%": ctx.moveTo(cx+fc,cy+(ch*0.75)); ctx.lineTo(cx+cw-fc,cy+(ch*0.25)); ctx.moveTo(cx+(cw*0.505),cy+(cw*0.3)); ctx.arc(cx+(cw*0.3),cy+(cw*0.3),(cw*0.3)-fc,deg2rad(0),deg2rad(360), false); ctx.moveTo(cx+(cw*0.905),cy+ch-(cw*0.3)); ctx.arc(cx+(cw*0.7),cy+ch-(cw*0.3),(cw*0.3)-fc,deg2rad(0),deg2rad(360), false); break; case ".": ctx.moveTo(cx+(cw*0.25),cy+ch-fc-fc); ctx.arc(cx+(cw*0.25),cy+ch-fc-fc,fc,deg2rad(0),deg2rad(360), false); ctx.closePath(); break; case "M": ctx.moveTo(cx+(cw*0.083),cy+ch-fc); ctx.lineTo(cx+(cw*0.083),cy+fc); ctx.moveTo(cx+(cw*0.083),cy+fc); ctx.lineTo(cx+(cw*0.4167),cy+ch-fc); ctx.moveTo(cx+(cw*0.4167),cy+ch-fc); ctx.lineTo(cx+(cw*0.75),cy+fc); ctx.moveTo(cx+(cw*0.75),cy+ch-fc); ctx.lineTo(cx+(cw*0.75),cy+fc); break; case "G": ctx.moveTo(cx+fc,cy+(ch*0.333333)); ctx.arc(cx+(cw/2),cy+ch-(cw*0.5),(cw*0.5)-fc,deg2rad(180),deg2rad(-15), true); ctx.moveTo(cx+fc,cy+(ch*0.333333)); ctx.bezierCurveTo(cx+fc,cy+fc,cx+fc,cy+fc,cx+(cw*0.9)-fc,cy+fc); ctx.moveTo(cx+(cw*1.00),cy+(ch*0.5)); ctx.lineTo(cx+(cw*0.60),cy+(ch*0.5)); break; case "b": ctx.moveTo(cx+fc,cy+ch-(cw*0.5)-fc); ctx.arc(cx+(cw/2),cy+ch-(cw*0.5),(cw*0.5)-fc,deg2rad(-180),deg2rad(180), false); ctx.bezierCurveTo(cx+fc,cy+fc,cx+fc,cy+fc,cx+(cw*0.2)-fc,cy+fc); ctx.moveTo(cx+(cw*0.9)-fc,cy+fc); break; case "B": ctx.moveTo(cx+(cw*0.92)-fc,cy+(cw*0.59)); ctx.arc(cx+(cw/2),cy+(cw*0.45),(cw*0.45)-fc,deg2rad(25),deg2rad(-165), true); ctx.arc(cx+(cw/2),cy+ch-(cw*0.5),(cw*0.5)-fc,deg2rad(-215),deg2rad(-45), true); ctx.closePath(); ctx.moveTo(cx+(cw*0.79),cy+(ch*0.47)); ctx.lineTo(cx+(cw*0.21),cy+(ch*0.47)); break; default: break; } ctx.stroke(); }
32.386963
150
0.535309
a7654f93956e9f3111e393dce761dbf96ffe4e3e
1,145
js
JavaScript
src/ui/js/orderView.js
nitinsurana/franklin
bc9ed7cb898db1d79cd367348456cdc0d214b720
[ "MIT" ]
1
2019-05-07T04:54:19.000Z
2019-05-07T04:54:19.000Z
src/ui/js/orderView.js
nitinsurana/franklin
bc9ed7cb898db1d79cd367348456cdc0d214b720
[ "MIT" ]
4
2020-07-16T19:58:24.000Z
2021-09-01T01:55:40.000Z
src/ui/js/orderView.js
nitinsurana/franklin
bc9ed7cb898db1d79cd367348456cdc0d214b720
[ "MIT" ]
null
null
null
/* global define, $ */ define(['backbone', 'underscore', 'text!template/order.html', 'select2', 'bootstrap'], function (Backbone, _, OrderTemplate) { return Backbone.View.extend({ template: _.template(OrderTemplate), initialize: function (options) { const orderCollection = this.orderCollection = options.orderCollection orderCollection.on('sync', this.render.bind(this)) orderCollection.on('add', this.render.bind(this)) orderCollection.on('remove', this.render.bind(this)) this.render() }, events: { 'click .add-order': 'addNewOrder', 'click .edit-order': 'editOrder', 'click .delete-order': 'delOrder' }, addNewOrder: function () { this.trigger('addNewOrder') }, delOrder: function (e) { const id = $(e.currentTarget).attr('data-id') this.orderCollection.get(id).destroy() this.orderCollection.remove(id) }, editOrder: function (e) { this.trigger('editOrder', $(e.currentTarget).attr('data-id')) }, render: function () { this.$el.html(this.template({ orders: this.orderCollection.toJSON() })) } }) })
33.676471
126
0.632314
a766af74a9bdc4deb562fa8ec6ba313a93e1197c
5,501
js
JavaScript
sds-biz-suite/bizcore/scripts/cis/public.js
Clariones/spec_desc_spec
fc8aaef56336e912300a12c7ae0371449e00fd61
[ "Apache-2.0" ]
null
null
null
sds-biz-suite/bizcore/scripts/cis/public.js
Clariones/spec_desc_spec
fc8aaef56336e912300a12c7ae0371449e00fd61
[ "Apache-2.0" ]
null
null
null
sds-biz-suite/bizcore/scripts/cis/public.js
Clariones/spec_desc_spec
fc8aaef56336e912300a12c7ae0371449e00fd61
[ "Apache-2.0" ]
null
null
null
var UTILS = new function(){ var me = this; function collectFormValue(){ var data = {}; $("form").find(".form-field").each(function(i, elem){ data[$(elem).attr('name')] = me.getValue(elem); }); return data; } function getInputElementValue(elem){ var elemDataType = $(elem).prop('type'); if (elemDataType == 'checkbox'){ var checked = $(elem).prop('checked'); var inputType = $(elem).data("input-type"); if (inputType == "checkbox"){ return checked?$(elem).val():null; } return checked; } return $(elem).val(); } function appendFileData(formData, fileElemId){ var fileElem = $('#'+fileElemId); formData.append(fileElem.attr('name'), fileElem[0].files[0]); } function ajaxPostFormForJsonResponse(url, formData, callback){ $.ajax({ url: url, type: 'POST', data: formData, dataType: "json", processData: false, contentType: false, beforeSend: function () { //console.log("正在进行,请稍候"); if (typeof callback.beforeSend == 'function') { callback.beforeSend(); }else{ console.log("开始上传,请稍候"); } }, success: function (data) { if (typeof callback.success == 'function') { callback.success(data); }else{ console.log(JSON.stringify(data, null, " ")); } }, xhr: function(){ var xhr = $.ajaxSettings.xhr(); xhr.upload.onload = function (){ if (typeof callback.onloaded == 'function') { callback.onloaded(); }else{ console.log('finish uploading'); } } xhr.upload.onprogress = function (ev) { if(ev.lengthComputable) { var progress = parseInt(ev.loaded / ev.total * 1000, 10)/10; progress = Math.min(progress, 99); if (typeof callback.onprogress == 'function') { callback.onprogress(progress); }else{ console.log('uploading progress ' + progress); } } } return xhr; }, error: function (xhr, responseStr, throwable) { if (typeof callback.error == 'function') { callback.error(xhr, responseStr, throwable); }else{ console.log("error: " + responseStr+", status=" + xhr.status); } } }); } // ///////////////////////////////////////////////////// // below are interface functions me.toggleClass = function (elem, className){ if ($(elem).hasClass(className)){ $(elem).removeClass(className); }else{ $(elem).addClass(className); } } me.gotoUrl = function(url){ window.location.href=url; } me.getValue = function(elem){ var elemNodeType = $(elem).prop('tagName'); if (elemNodeType == 'INPUT'){ return getInputElementValue(elem); }else if (elemNodeType == 'SELECT'){ return $(elem).val(); } return null; } me.getRequestAsHtml = function(url) { return $.ajax({ url : url, type : "GET", dataType : "html" }); } me.getRequestAsJson = function(url) { return $.ajax({ url : url, type : "GET", dataType : "json" }); } me.reloadPage = function(){ window.location.reload(); } me.uploadSingleImage = function(imageArgs, callback){ if (typeof callback == 'undefined') { callback = {}; } var args = { appKey: imageArgs.appKey, medias: [ { needAuth: false, category: imageArgs.category, resourceKey: imageArgs.resourceKey } ] }; var formData = new FormData(); formData.append("jsonstr", JSON.stringify(args)); appendFileData(formData, imageArgs.fileElementId); ajaxPostFormForJsonResponse(imageArgs.serverHost+'/upload.ajax', formData, callback); } me.vehiclePermitOcr = function(fileElemId, url, callback){ if (typeof callback == 'undefined') { callback = {}; } var formData = new FormData(); var fileElem = $('#'+fileElemId); formData.append('face', fileElem[0].files[0]); ajaxPostFormForJsonResponse(url, formData, callback); } me.postFormForJsonResponse = function(url, formData, callback){ ajaxPostFormForJsonResponse(url, formData, callback); } me.onFormActionClick = function(){ var url = $(this).data('action-url'); var formData = collectFormValue(); // console.log(JSON.stringify(formData)); $('#action_form').find('input').val(JSON.stringify(formData)); document.getElementById('action_form').action = url; document.getElementById("action_form").submit(); } me.showConfirm = function(title, content, onCancel, onConfirm){ var dialog = $("#dialog_confirm"); $("#dialog_confirm_title").html(title); $("#dialog_confirm_content").html(content); $("#dialog_confirm_cancel").on("click", function(){ dialog.fadeOut(200); onCancel(); }); $("#dialog_confirm_ok").on("click", function(){ dialog.fadeOut(200); onConfirm(); }); dialog.fadeIn(200); } me.collectFormInputValues = function(formSelector){ var data = {}; $(formSelector).find(".form_input").each(function(i, elem){ var inputName = $(elem).attr('name'); var inputValue = me.getValue(elem); //console.log("==>"+inputName+" = "+inputValue); if (inputValue == null){ return; } if (!data[inputName]){ data[inputName] = inputValue; return; } if ($.isArray(data[inputName])){ data[inputName].push(inputValue); return; } var values = new Array(); values.push(data[inputName]); values.push(inputValue); data[inputName] = values; }); return data; } me.getResponseExceptionMessage = function(responseMessage){ index = responseMessage.indexOf("Exception"); return responseMessage.substring(index).split('\n')[0]; } }
26.703883
87
0.626068
a766b10b9995f43015a5d9f80251afd4563ec9c2
965
js
JavaScript
frontend/src/App.js
SoftBlankie/chat-app
adf93d34ced9619f77caa02e13c2bb3f77bc928b
[ "Unlicense", "MIT" ]
null
null
null
frontend/src/App.js
SoftBlankie/chat-app
adf93d34ced9619f77caa02e13c2bb3f77bc928b
[ "Unlicense", "MIT" ]
null
null
null
frontend/src/App.js
SoftBlankie/chat-app
adf93d34ced9619f77caa02e13c2bb3f77bc928b
[ "Unlicense", "MIT" ]
null
null
null
import React, { Component } from "react"; import './App.css'; import { connect, sendMsg } from "./api"; import Header from "./components/Header/Header"; import ChatHistory from "./components/ChatHistory/ChatHistory"; import ChatInput from "./components/ChatInput/ChatInput"; class App extends Component { constructor(props) { super(props); this.state = { chatHistory: [] } } componentDidMount() { connect((msg) => { console.log("New Message") this.setState(prevState => ({ chatHistory: [...this.state.chatHistory, msg] })) console.log(this.state) }); } send(event) { if(event.keyCode === 13) { sendMsg(event.target.value); event.target.value = ""; } } render() { return ( <div className="App"> <Header /> <ChatHistory chatHistory={this.state.chatHistory} /> <ChatInput send={this.send} /> </div> ) } } export default App;
21.444444
63
0.596891
a766e24eb8cd9310f90efc054cc7da783ff5c2a8
315
js
JavaScript
packages/ramda-extension/src/isString.js
dphaener/ramda-extension
ce53719e30a197787f548cee8110fa1547730d45
[ "Apache-2.0" ]
162
2016-12-07T13:06:50.000Z
2022-02-21T17:11:50.000Z
packages/ramda-extension/src/isString.js
dphaener/ramda-extension
ce53719e30a197787f548cee8110fa1547730d45
[ "Apache-2.0" ]
139
2017-11-04T19:20:59.000Z
2021-09-22T13:52:15.000Z
packages/ramda-extension/src/isString.js
dphaener/ramda-extension
ce53719e30a197787f548cee8110fa1547730d45
[ "Apache-2.0" ]
31
2017-11-04T13:49:19.000Z
2020-12-17T16:33:20.000Z
import { is } from 'ramda'; /** * Returns true if argument is type of String. * * @func * @category Type * * @example * * R_.isString({}) // false * R_.isString([]) // false * R_.isString('') // true * * @sig a -> Boolean */ const isString = is(String); export default isString;
15.75
46
0.546032
a767a136a7f2bb2b9e256ab29a5d07d4cb447078
3,026
js
JavaScript
platform-vue/src/service/mock/req/home.js
freewlt/platform
7e34ad2db1ade87d8dc378be0b660703321be35b
[ "Apache-2.0" ]
55
2019-02-20T02:15:04.000Z
2022-03-25T03:53:16.000Z
platform-vue/src/service/mock/req/home.js
freewlt/platform
7e34ad2db1ade87d8dc378be0b660703321be35b
[ "Apache-2.0" ]
9
2019-11-13T09:43:02.000Z
2022-01-21T23:29:06.000Z
platform-vue/src/service/mock/req/home.js
freewlt/platform
7e34ad2db1ade87d8dc378be0b660703321be35b
[ "Apache-2.0" ]
25
2019-03-01T03:04:07.000Z
2022-03-25T03:53:57.000Z
export default { getHomeInfo: req => { return { success: true, code: 200, data: { recommend: { swipper: [ { image: 'https://yanxuan.nosdn.127.net/b8dc2f69673852d93f04ffec0ca522e3.jpg?imageView&thumbnail=750x0&quality=75' }, { image: 'https://yanxuan.nosdn.127.net/0e78165e335c1307c79027a745eb3143.jpg?imageView&thumbnail=750x0&quality=75' }, { image: 'https://yanxuan.nosdn.127.net/15ffdaa798eb00ca122efcd72292cfa1.jpg?imageView&thumbnail=750x0&quality=75' } ], directSupply: [ { name: 'CK制造商', price: '25', img: 'http://yanxuan.nosdn.127.net/2cb9d45516776f5fee3fd958b174c23a.png?imageView&thumbnail=355x0&quality=65' }, { name: 'Kenneth Cole制造商', price: '55', img: 'http://yanxuan.nosdn.127.net/f21dd124093bf7ff49ef9b8a9c813d1f.png?imageView&thumbnail=355x0&quality=65' }, { name: 'Ralph Lauren制造商', price: '19', img: 'http://yanxuan.nosdn.127.net/7f55f337f98a198ac3d629847171d5d2.png?imageView&thumbnail=355x0&quality=65' } ], release: [ { name: '网易智造X3 Plus蓝牙HiFi耳机', desc: '新一代X3蓝牙耳机 全新升级', price: '99', img: 'http://yanxuan.nosdn.127.net/ccdbdc82bdc8929723e4941a93f85550.png?imageView&quality=65&thumbnail=330x330' } ], popular: [ { name: '网易智造减压眼部按摩仪', desc: '让眼睛享受全方位按摩', price: '381.7', img: 'http://yanxuan.nosdn.127.net/73af63aa5c47c369fe7e2f30b3815aac.png?imageView&quality=65&thumbnail=330x330' } ] }, section: [ { id: 22, tag: 'live', title: '居家', items: [ { name: '自然光多功能触控阅读灯', desc: '12档拟自然光源,轻薄冷峻线条', price: '99', img: 'http://yanxuan.nosdn.127.net/2ab7b86be448341df0247b4e44fc2e3b.png?imageView&quality=65&thumbnail=330x330' }, { name: '模块懒人随席垫', desc: '自由变化,贴心承托可拆洗', price: '459', img: 'http://yanxuan.nosdn.127.net/a72122fe6d88938b14557660a08ce231.png?imageView&quality=65&thumbnail=330x330' } ] }, { id: 23, tag: 'bag', title: '鞋包配饰', items: [ { name: '牛皮拉链单肩包', desc: '精简商务风,实用为先', price: '399', img: 'http://yanxuan.nosdn.127.net/c510a46d45d0201643b794a789d3a88d.png?imageView&quality=65&thumbnail=330x330' } ] } ] }, msg: '获取首页信息成功' } } }
32.891304
127
0.47885
a7687cbc26f47f925c031d7a79e98cfcc139f679
2,273
js
JavaScript
public/js/init_editor.js
OsalaV/OBA-Web
b6932082df24afb7d5106eff46342cb9f8e2a693
[ "MIT" ]
null
null
null
public/js/init_editor.js
OsalaV/OBA-Web
b6932082df24afb7d5106eff46342cb9f8e2a693
[ "MIT" ]
null
null
null
public/js/init_editor.js
OsalaV/OBA-Web
b6932082df24afb7d5106eff46342cb9f8e2a693
[ "MIT" ]
null
null
null
$(document).ready(function() { $('.savbtn').click(function() { if($("#descr").length){$("#descr").empty();} $('#descr').html($('#editor').html()); }); }); $(function() { function initToolbarBootstrapBindings() { var fonts = ['sans-serif', 'Sans', 'Arial', 'Arial Black', 'Courier', 'Courier New', 'Comic Sans MS', 'Helvetica', 'Impact', 'Lucida Grande', 'Lucida Sans', 'Tahoma', 'Times', 'Times New Roman', 'Verdana' ], fontTarget = $('[title=Font]').siblings('.dropdown-menu'); $.each(fonts, function(idx, fontName) { fontTarget.append($('<li><a data-edit="fontName ' + fontName + '" style="font-family:\'' + fontName + '\'">' + fontName + '</a></li>')); }); $('a[title]').tooltip({ container: 'body' }); $('.dropdown-menu input').click(function() { return false; }) .change(function() { $(this).parent('.dropdown-menu').siblings('.dropdown-toggle').dropdown('toggle'); }) .keydown('esc', function() { this.value = ''; $(this).change(); }); $('[data-role=magic-overlay]').each(function() { var overlay = $(this), target = $(overlay.data('target')); overlay.css('opacity', 0).css('position', 'absolute').offset(target.offset()).width(target.outerWidth()).height(target.outerHeight()); }); if ("onwebkitspeechchange" in document.createElement("input")) { var editorOffset = $('#editor').offset(); $('#voiceBtn').css('position', 'absolute').offset({ top: editorOffset.top, left: editorOffset.left + $('#editor').innerWidth() - 35 }); } else { $('#voiceBtn').hide(); } }; function showErrorAlert(reason, detail) { var msg = ''; if (reason === 'unsupported-file-type') { msg = "Unsupported format " + detail; } else { console.log("error uploading file", reason, detail); } $('<div class="alert"> <button type="button" class="close" data-dismiss="alert">&times;</button>' + '<strong>File upload error</strong> ' + msg + ' </div>').prependTo('#alerts'); }; initToolbarBootstrapBindings(); $('#editor').wysiwyg({ fileUploadError: showErrorAlert }); window.prettyPrint && prettyPrint(); });
34.969231
142
0.561813
a76888ee5c9c9b24d2530aab2dea38bf1aa19cd1
9,052
js
JavaScript
web/js/layers/wv.layers.sidebar.js
githubcitizen/eagle
9bc09d891ceebe2145d16586eeb766609511a886
[ "NASA-1.3" ]
null
null
null
web/js/layers/wv.layers.sidebar.js
githubcitizen/eagle
9bc09d891ceebe2145d16586eeb766609511a886
[ "NASA-1.3" ]
null
null
null
web/js/layers/wv.layers.sidebar.js
githubcitizen/eagle
9bc09d891ceebe2145d16586eeb766609511a886
[ "NASA-1.3" ]
null
null
null
/* * NASA Worldview * * This code was originally developed at NASA/Goddard Space Flight Center for * the Earth Science Data and Information System (ESDIS) project. * * Copyright (C) 2013 United States Government as represented by the * Administrator of the National Aeronautics and Space Administration. * All Rights Reserved. */ /** * @module wv.layers */ var wv = wv || {}; wv.layers = wv.layers || {}; /** * @class wv.layers.sidebar */ wv.layers.sidebar = wv.layers.sidebar || function(models, config) { var HTML_TAB_ACTIVE_SELECTED = "<i class='productsIcon selected icon-layers'></i>" + "Layers"; var HTML_TAB_ACTIVE_UNSELECTED = "<i class='productsIcon selected icon-layers' title='Active Layers'></i>" + "Layers"; var HTML_TAB_EVENTS_SELECTED = "<i class='selected icon-events'></i>" + "Events"; var HTML_TAB_EVENTS_UNSELECTED = "<i class='selected icon-events' title='Events'></i>" + "Events"; var HTML_TAB_DOWNLOAD_SELECTED = "<i class='productsIcon selected icon-download'></i>" + "Data"; var HTML_TAB_DOWNLOAD_UNSELECTED = "<i class='productsIcon selected icon-download' title='Data'></i>" + "Data"; var collapsed = false; var collapseRequested = false; var portrait = false; var mobile = false; var self = {}; self.id = "productsHolder"; self.selector = "#productsHolder"; self.events = wv.util.events(); var init = function() { render(); $(window) .resize(resize); models.proj.events.on("select", onProjectionChange); resize(); if (wv.util.browser.localStorage) { if (localStorage.getItem("sidebarState") === "collapsed") { self.collapseNow(); collapseRequested = true; } } }; self.selectTab = function(tabName) { if (tabName === "active") { $(self.selector) .tabs("option", "active", 0); } else if (tabName === "events") { $(self.selector) .tabs("option", "active", 1); } else if (tabName === "download") { $(self.selector) .tabs("option", "active", 2); } else { throw new Error("Invalid tab: " + tabName); } }; self.collapse = function(now) { if (collapsed) { return; } collapsed = true; $('.accordionToggler') .removeClass('atcollapse') .addClass('dateHolder') .removeClass('arrow') .addClass('staticLayers'); $('.accordionToggler') .attr("title", "Show Layer Selector"); $('.accordionToggler') .html("Layers (" + models.layers.get() .length + ")"); var speed = (now) ? undefined : "fast"; $('.products') .hide(speed); $("#" + self.id) .after($('.accordionToggler')); if (wv.util.browser.localStorage) { localStorage.setItem("sidebarState", "collapsed"); } }; self.collapseNow = function() { self.collapse(true); }; self.expand = function(now) { if (!collapsed) { return; } collapsed = false; $('.accordionToggler') .removeClass('atexpand') .addClass('atcollapse') .removeClass('staticLayers dateHolder') .addClass('arrow'); $('.accordionToggler') .attr("title", "Hide Layer Selector"); $('.accordionToggler') .empty(); var speed = (now) ? undefined : "fast"; $('.products') .show(speed, function() { models.wv.events.trigger("sidebar-expand"); }); $('.accordionToggler') .appendTo("#" + self.id + "toggleButtonHolder"); if (wv.util.browser.localStorage) { localStorage.setItem("sidebarState", "expanded"); } }; self.expandNow = function() { self.expand(true); }; self.toggle = function() { if (collapsed) { self.expand(); collapseRequested = false; } else { self.collapse(); collapseRequested = true; } }; var render = function() { var $container = $(self.selector); $container.addClass("products"); var $tabs = $("ul#productsHolder-tabs"); var $activeTab = $("<li></li>") .addClass("layerPicker") .addClass("first") .attr("data-tab", "active"); $(self.selector + " footer button") .hide(); $("#layers-add") .show(); var $activeLink = $("<a></a>") .attr("href", "#products") .addClass("activetab") .addClass("tab") .html(HTML_TAB_ACTIVE_SELECTED); $activeTab.append($activeLink); $tabs.append($activeTab); if (config.features.naturalEvents) { var $eventsTab = $("<li></li>") .addClass("layerPicker") .addClass("second") .attr("data-tab", "events"); var $eventsLink = $("<a></a>") .attr("href", "#wv-events") .addClass("tab") .html(HTML_TAB_EVENTS_UNSELECTED); $eventsTab.append($eventsLink); $tabs.append($eventsTab); } if (config.features.dataDownload) { var $downloadTab = $("<li></li>") .addClass("layerPicker") .addClass("third") .attr("data-tab", "download"); var $downloadLink = $("<a></a>") .attr("href", "#wv-data") .addClass("tab") .html(HTML_TAB_DOWNLOAD_UNSELECTED); $downloadTab.append($downloadLink); $tabs.append($downloadTab); } //$container.append($tabs); var $collapseContainer = $("div#productsHoldertoggleButtonHolder") .addClass("toggleButtonHolder"); var $collapseButton = $("<a></a>") .addClass("accordionToggler") .addClass("atcollapse") .addClass("arrow") .attr("title", "Hide"); $collapseContainer.append($collapseButton); //$container.append($collapseContainer); //$container//.append($("<div id='products'></div>")) //.append($("<div id='selectorbox'></div>")) //.append($("<div id='wv-data'></div>")); $container.tabs({ beforeActivate: onBeforeTabChange, activate: onTabChange }); $('.accordionToggler') .bind('click', self.toggle); }; var onTabChange = function(e, ui) { var tab = ui.newTab.attr("data-tab"); if (tab === "events" || tab === "download") { $("#wv-layers-options-dialog") .dialog("close"); } self.events.trigger("select", ui.newTab.attr("data-tab")); if (e.currentTarget) { e.currentTarget.blur(); } }; var onBeforeTabChange = function(e, ui) { var $footerBtns = $(self.selector + " footer"); // FIXME: This code is very clunky. var tab = ui.newTab.attr("data-tab"); if (tab === "active") { $('.ui-tabs-nav') .addClass('firstselected') .removeClass('secondselected') .removeClass('thirdselected'); $('.ui-tabs-nav li.first') .addClass("ui-state-active"); $('.ui-tabs-nav li.second') .removeClass("ui-state-active"); $('.ui-tabs-nav li.third') .removeClass("ui-state-active"); $footerBtns.show(); $footerBtns.find("button") .hide(); $("#layers-add") .show(); } else if (tab === "events") { WVC.GA.event('Natural Events', 'Click', 'Events Tab'); $('.ui-tabs-nav') .removeClass('firstselected') .addClass('secondselected') .removeClass('thirdselected'); $('.ui-tabs-nav li.first') .removeClass("ui-state-active"); $('.ui-tabs-nav li.second') .addClass("ui-state-active"); $('.ui-tabs-nav li.third') .removeClass("ui-state-active"); $footerBtns.hide(); } else if (tab === "download") { $('.ui-tabs-nav') .removeClass('firstselected') .removeClass('secondselected') .addClass('thirdselected'); $('.ui-tabs-nav li.first') .removeClass("ui-state-active"); $('.ui-tabs-nav li.second') .removeClass("ui-state-active"); $('.ui-tabs-nav li.third') .addClass("ui-state-active"); $footerBtns.show(); $footerBtns.find("button") .hide(); $("#wv-data-download-button") .show(); } else { throw new Error("Invalid tab index: " + ui.index); } var tab1 = (tab === "active") ? HTML_TAB_ACTIVE_SELECTED : HTML_TAB_ACTIVE_UNSELECTED; var tab2 = (tab === "events") ? HTML_TAB_EVENTS_SELECTED : HTML_TAB_EVENTS_UNSELECTED; var tab3 = (tab === "download") ? HTML_TAB_DOWNLOAD_SELECTED : HTML_TAB_DOWNLOAD_UNSELECTED; self.events.trigger("before-select", tab); $('.ui-tabs-nav li.first a') .html(tab1); $('.ui-tabs-nav li.second a') .html(tab2); $('.ui-tabs-nav li.third a') .html(tab3); return true; }; var resize = function() { if (!mobile && wv.util.browser.small) { self.collapseNow(); mobile = true; } else if (mobile && !wv.util.browser.small && !collapseRequested) { self.expandNow(); mobile = false; } }; var onProjectionChange = function() { if (collapsed) { $('.accordionToggler') .html("Layers (" + models.layers.get() .length + ")"); } }; init(); return self; };
26.313953
79
0.572691
a768b0f383fa8fea901590a3a263e4d6beb72aeb
3,561
js
JavaScript
app/components/UI/AssetActionButtons/index.js
rectinajh/metamask-mobile
243cf80cbcba5fe9bd16f4772a53915170a49b8a
[ "MIT" ]
2
2021-02-03T09:02:46.000Z
2021-07-07T21:28:47.000Z
app/components/UI/AssetActionButtons/index.js
cusomeday/metamask-mobile
efc39fb6c794fe574fcf33fc2f71b2a069ecc4e7
[ "MIT" ]
5
2021-05-08T19:11:23.000Z
2022-03-02T18:00:41.000Z
app/components/UI/AssetActionButtons/index.js
cusomeday/metamask-mobile
efc39fb6c794fe574fcf33fc2f71b2a069ecc4e7
[ "MIT" ]
1
2021-02-18T11:22:37.000Z
2021-02-18T11:22:37.000Z
import React, { PureComponent } from 'react'; import { StyleSheet, Text, View, TouchableOpacity } from 'react-native'; import PropTypes from 'prop-types'; import MaterialCommunityIcon from 'react-native-vector-icons/MaterialCommunityIcons'; import Ionicon from 'react-native-vector-icons/Ionicons'; import { colors, fontStyles } from '../../../styles/common'; import Device from '../../../util/Device'; const styles = StyleSheet.create({ buttons: { flexDirection: 'row', width: '50%', alignContent: 'center', alignItems: 'center' }, button: { flex: 1, justifyContent: 'center', alignContent: 'center', alignItems: 'center' }, buttonIconWrapper: { width: 36, height: 36, paddingTop: Device.isAndroid() ? 2 : 4, paddingLeft: 1, justifyContent: 'center', alignContent: 'center', color: colors.white, borderRadius: 18, backgroundColor: colors.blue }, buttonIcon: { justifyContent: 'center', alignContent: 'center', textAlign: 'center', color: colors.white }, buttonText: { marginTop: 12, textAlign: 'center', color: colors.blue, fontSize: 11, ...fontStyles.normal }, sendIcon: { paddingTop: 0, paddingLeft: 0 }, receive: { right: Device.isIos() ? 1 : 0, bottom: 1, transform: [{ rotate: '90deg' }] } }); /** * View that displays two action buttons for asset overview */ export default class AssetActionButtons extends PureComponent { static propTypes = { /** * String to display on left button */ leftText: PropTypes.string, /** * Callback triggered on left button press */ onLeftPress: PropTypes.func, /** * Callback triggered on middle button press */ onMiddlePress: PropTypes.func, /** * Callback triggered on right button press */ onRightPress: PropTypes.func, /** * String to display on middle button */ middleText: PropTypes.string, /** * Middle button type, receive or add */ middleType: PropTypes.oneOf(['add', 'receive']), /** * String to display on left button */ rightText: PropTypes.string }; render() { const { onLeftPress, onMiddlePress, onRightPress, leftText, middleText, rightText, middleType } = this.props; return ( <View style={styles.buttons}> {leftText && ( <TouchableOpacity type={'normal'} onPress={onLeftPress} style={styles.button}> <View style={styles.buttonIconWrapper}> <MaterialCommunityIcon name={'arrow-top-right'} size={20} color={colors.blue} style={[styles.buttonIcon, styles.sendIcon]} /> </View> <Text style={styles.buttonText}>{leftText}</Text> </TouchableOpacity> )} <TouchableOpacity type={'normal'} onPress={onMiddlePress} style={styles.button}> <View style={styles.buttonIconWrapper}> {middleType === 'add' ? ( <Ionicon name={'ios-add'} size={30} color={colors.white} style={styles.buttonIcon} /> ) : ( <MaterialCommunityIcon name={'keyboard-tab'} size={20} color={colors.white} style={[styles.buttonIcon, styles.receive]} /> )} </View> <Text style={styles.buttonText}>{middleText}</Text> </TouchableOpacity> {rightText && ( <TouchableOpacity type={'normal'} onPress={onRightPress} style={styles.button}> <View style={styles.buttonIconWrapper}> <Ionicon name={'md-information'} size={30} color={colors.white} style={styles.buttonIcon} /> </View> <Text style={styles.buttonText}>{rightText}</Text> </TouchableOpacity> )} </View> ); } }
25.804348
111
0.646167
a768b25246d385cdafa974855a5ba1310201459c
2,768
js
JavaScript
src/core_modules/capture-core/components/Pages/NewEvent/DataEntry/epics/getConvertedNewSingleEvent.js
hispindia/dhis2-capture-app
0d9afe7ad66379e8d47c7c723366e1869ca1931e
[ "BSD-2-Clause" ]
null
null
null
src/core_modules/capture-core/components/Pages/NewEvent/DataEntry/epics/getConvertedNewSingleEvent.js
hispindia/dhis2-capture-app
0d9afe7ad66379e8d47c7c723366e1869ca1931e
[ "BSD-2-Clause" ]
177
2020-09-28T07:12:22.000Z
2022-03-21T08:10:58.000Z
src/core_modules/capture-core/components/Pages/NewEvent/DataEntry/epics/getConvertedNewSingleEvent.js
hispindia/dhis2-capture-app
0d9afe7ad66379e8d47c7c723366e1869ca1931e
[ "BSD-2-Clause" ]
null
null
null
// @flow import { moment } from 'capture-core-utils/moment'; import { getFormattedStringFromMomentUsingEuropeanGlyphs } from 'capture-core-utils/date'; import convertDataEntryToClientValues from '../../../../DataEntry/common/convertDataEntryToClientValues'; import { convertValue as convertToServerValue } from '../../../../../converters/clientToServer'; import { convertMainEventClientToServer } from '../../../../../events/mainConverters'; import { type RenderFoundation } from '../../../../../metaData'; const getApiCategoriesArgument = (categories: ?{ [id: string]: string}) => { if (!categories) { return null; } return { attributeCategoryOptions: Object .keys(categories) .map(key => categories[key]) .join(';'), }; }; export const getNewEventServerData = (state: ReduxState, formFoundation: RenderFoundation, formClientValues: Object, mainDataClientValues: Object) => { const formServerValues = formFoundation.convertValues(formClientValues, convertToServerValue); const mainDataServerValues: Object = convertMainEventClientToServer(mainDataClientValues); if (mainDataServerValues.status === 'COMPLETED') { mainDataServerValues.completedDate = getFormattedStringFromMomentUsingEuropeanGlyphs(moment()); } return { ...mainDataServerValues, program: state.currentSelections.programId, programStage: formFoundation.id, orgUnit: state.currentSelections.orgUnitId, ...getApiCategoriesArgument(state.currentSelections.categories), dataValues: Object .keys(formServerValues) .map(key => ({ dataElement: key, value: formServerValues[key], })), }; }; function getDataEntriesNotes(state: ReduxState, dataEntryKey: string) { const notes = state.dataEntriesNotes && state.dataEntriesNotes[dataEntryKey]; return notes ? notes.map(note => ({ value: note.value })) : []; } export const getNewEventClientValues = (state: ReduxState, dataEntryKey: string, formFoundation: RenderFoundation) => { const formValues = state.formsValues[dataEntryKey]; const dataEntryValues = state.dataEntriesFieldsValue[dataEntryKey]; const dataEntryValuesMeta = state.dataEntriesFieldsMeta[dataEntryKey]; const prevEventMainData = {}; const { formClientValues, dataEntryClientValues } = convertDataEntryToClientValues( formFoundation, formValues, dataEntryValues, dataEntryValuesMeta, prevEventMainData, ); const mainDataClientValues = { ...prevEventMainData, ...dataEntryClientValues, notes: getDataEntriesNotes(state, dataEntryKey) }; return { formClientValues, mainDataClientValues }; };
40.705882
151
0.698699
a768fc09456d7fc13dd8d4c4c485983d8d2b1edd
194
js
JavaScript
src/sap.ui.documentation/src/sap/ui/documentation/sdk/controller/NotFound.controller.js
4lexBaum/openui5
17a691d8223649489697d3b02a352126bc050f06
[ "Apache-2.0" ]
1
2019-07-08T06:14:23.000Z
2019-07-08T06:14:23.000Z
src/sap.ui.documentation/src/sap/ui/documentation/sdk/controller/NotFound.controller.js
4lexBaum/openui5
17a691d8223649489697d3b02a352126bc050f06
[ "Apache-2.0" ]
22
2020-11-25T22:03:36.000Z
2022-03-06T10:12:20.000Z
src/sap.ui.documentation/src/sap/ui/documentation/sdk/controller/NotFound.controller.js
4lexBaum/openui5
17a691d8223649489697d3b02a352126bc050f06
[ "Apache-2.0" ]
null
null
null
/*! * ${copyright} */ sap.ui.define([ "./BaseController" ], function (BaseController) { "use strict"; return BaseController.extend("sap.ui.documentation.sdk.controller.NotFound", {}); });
17.636364
82
0.670103
a7692b78ee2d5b7781ec385fcf5c364689bd350b
1,248
js
JavaScript
server/datastore.js
lonekorean/share-calendar
247a9c70e80e79a7e08be720017f0722f4fad904
[ "MIT" ]
null
null
null
server/datastore.js
lonekorean/share-calendar
247a9c70e80e79a7e08be720017f0722f4fad904
[ "MIT" ]
null
null
null
server/datastore.js
lonekorean/share-calendar
247a9c70e80e79a7e08be720017f0722f4fad904
[ "MIT" ]
null
null
null
module.exports = { calendars: [ { userId: 41, events: [ { uid: '439423062ce549ada62b6940e0e541b8', dtstart: '20160421T190000Z', dtend: '20160421T210000Z', summary: 'UX Dev Webinar', location: 'Atlanta, GA', description: 'Be sure to demo the app that you\'re demoing right now.' }, { uid: 'a64c2efb870e4d798773719f2d7127ad', dtstart: '20160528T200000Z', dtend: '20160528T022000Z', summary: 'Recruiting Event', location: 'Atlanta, GA', description: 'Find some people.' } ] } ], shares: [ { uid: 'b8019e2ff5484732aac7d8e143091678', userId: 41, recipientEmail: 'carson@gearfactory.com', showEmails: true, showWebinars: true, showEvents: true, showSocial: true, showCustom: true }, { uid: '18edd9145684487aac2f6e0956e922a1', userId: 41, recipientEmail: 'elisabeth@gearfactory.com', showEmails: false, showWebinars: true, showEvents: true, showSocial: false, showCustom: true }, { uid: '6c9964b60e5b489fa77716f16ed63dc9', userId: 9, recipientEmail: 'dan@potatonetwork.com', showEmails: false, showWebinars: false, showEvents: false, showSocial: false, showCustom: false } ] };
21.517241
75
0.647436
a7698d637652b6cc16da7c938eae9822cea09db6
833
js
JavaScript
ispPage.js
baudo2048/uxlang
a865f2b0120b38ec0bc61f77867506ce99519417
[ "Apache-2.0" ]
null
null
null
ispPage.js
baudo2048/uxlang
a865f2b0120b38ec0bc61f77867506ce99519417
[ "Apache-2.0" ]
null
null
null
ispPage.js
baudo2048/uxlang
a865f2b0120b38ec0bc61f77867506ce99519417
[ "Apache-2.0" ]
null
null
null
import ispHeader_3_ from './ispHeader.js' export default function functionName() { var root = document.createElement('div') root.style.display='flex' root.style.flexDirection='column' var ispHeader_3 = ispHeader_3_() var page = document.createElement('div') page.style.display='flex' page.style.flexDirection='column' page.style.flexGrow='1' page.style.alignItems='center' var h1_9 = document.createElement('h1') h1_9.append(document.createTextNode( 'Title')) var p_10 = document.createElement('p') p_10.append(document.createTextNode( ' lorem ipsum')) var img_11 = document.createElement('img') img_11.style.width='1000px' img_11.style.height='700px' img_11.src= './img/pmmap.png' page.appendChild(h1_9) page.appendChild(p_10) page.appendChild(img_11) root.appendChild(ispHeader_3) root.appendChild(page) return root }
20.825
53
0.770708
a769e21c7f1adf00cbcd2570ad3b7a927ea8b4c8
322
js
JavaScript
models/User.js
ristiriantoadi/Sistem-Informasi-Peminjaman-Ruangan-SIPR-
9965da59ad7fc80aea38c6fdaf9cf5b9fd492697
[ "MIT" ]
null
null
null
models/User.js
ristiriantoadi/Sistem-Informasi-Peminjaman-Ruangan-SIPR-
9965da59ad7fc80aea38c6fdaf9cf5b9fd492697
[ "MIT" ]
null
null
null
models/User.js
ristiriantoadi/Sistem-Informasi-Peminjaman-Ruangan-SIPR-
9965da59ad7fc80aea38c6fdaf9cf5b9fd492697
[ "MIT" ]
null
null
null
const mongoose = require('mongoose') const UserSchema = mongoose.Schema({ nim:{ type:String, required:true }, namaLengkap:{ type:String, required:true }, password:{ type:String, required:true } }) module.exports = mongoose.model('users',UserSchema)
17.888889
51
0.57764
a76a49b719eb86905aaad3c3c6327955b1ab673c
2,739
js
JavaScript
09_JS_Advanced/JavaScript/WebContent/20_OldExams/20161113_exam.js
akkirilov/ProgrammingFundamentalsHomeworks
709d2d1981c1bb6f1d652fe4101c1693f5afa376
[ "MIT" ]
null
null
null
09_JS_Advanced/JavaScript/WebContent/20_OldExams/20161113_exam.js
akkirilov/ProgrammingFundamentalsHomeworks
709d2d1981c1bb6f1d652fe4101c1693f5afa376
[ "MIT" ]
null
null
null
09_JS_Advanced/JavaScript/WebContent/20_OldExams/20161113_exam.js
akkirilov/ProgrammingFundamentalsHomeworks
709d2d1981c1bb6f1d652fe4101c1693f5afa376
[ "MIT" ]
null
null
null
// 01. Add / Remove Towns function attachEvents() { $('#btnDelete').on('click', function() { $('#towns option:selected').remove(); }); $('#btnAdd').on('click', function() { let newItem = $('#newItem'); if (newItem.val() == '') { return; } $('#towns').append($('<option>').text(newItem.val())); newItem.val(''); }); } // 02. Add / Swap / Shift Left / Right in List //Tests in p20_20161113_02_tests.js function createList() { let data = []; return { add: function (item) { data.push(item) }, shiftLeft: function () { if (data.length > 1) { let first = data.shift(); data.push(first); } }, shiftRight: function () { if (data.length > 1) { let last = data.pop(); data.unshift(last); } }, swap: function (index1, index2) { if (!Number.isInteger(index1) || index1 < 0 || index1 >= data.length || !Number.isInteger(index2) || index2 < 0 || index2 >= data.length || index1 === index2) { return false; } let temp = data[index1]; data[index1] = data[index2]; data[index2] = temp; return true; }, toString: function () { return data.join(", "); } }; } // 03. Mail Box class MailBox { constructor() { this.messages = []; } get messageCount() { return this.messages.length; } addMessage(subject, text) { this.messages.push({subject: subject, text: text}); return this; } deleteAllMessages() { this.messages = []; } findBySubject(substr) { return this.messages.filter(x => x.subject.includes(substr)); } toString() { if (this.messages.length === 0) { return '* (empty mailbox)'; } return this.messages.map(x => '* [' + x.subject + '] ' + x.text).join('\n'); } } // 04. Cards function cardDeckBuilder(selector) { let validFaces = ['2', '3', '4', '5', '6', '7', '8', '9', '10', 'J', 'Q', 'K', 'A']; let validSuits = {C: '\u2663', S: '\u2660', D: '\u2666', H: '\u2665'} let el = $(selector); function createCard(face, suit) { if (validFaces.indexOf(face) < 0 || validSuits[suit] === undefined) { return undefined; } return face + ' ' + validSuits[suit]; } function reverseOrder() { let cards = el.children('.card'); el.append(cards.get().reverse()); } return { addCard: function (face, suit) { let card = createCard(face, suit); if (card !== undefined) { let newCard = $('<div>').addClass('card').text(card); newCard.on('click', reverseOrder); el.append(newCard); } } } } module.exports = { createList };
25.598131
85
0.525374
a76a5d7b945491dddfd554e1594653d24e8e2015
4,024
js
JavaScript
src/module.js
rossmills99/runtime
7dae5fb0b62022eb7071952ae5837e01deb69569
[ "ISC" ]
1
2019-08-20T19:31:58.000Z
2019-08-20T19:31:58.000Z
src/module.js
rossmills99/runtime
7dae5fb0b62022eb7071952ae5837e01deb69569
[ "ISC" ]
null
null
null
src/module.js
rossmills99/runtime
7dae5fb0b62022eb7071952ae5837e01deb69569
[ "ISC" ]
null
null
null
import {forEach} from "./array"; import constant from "./constant"; import {RuntimeError} from "./errors"; import identity from "./identity"; import rethrow from "./rethrow"; import {variable_invalidation, variable_visibility} from "./runtime"; import Variable, {TYPE_DUPLICATE, TYPE_IMPLICIT, TYPE_NORMAL, no_observer} from "./variable"; var none = new Map; export default function Module(runtime) { Object.defineProperties(this, { _runtime: {value: runtime}, _scope: {value: new Map} }); } Object.defineProperties(Module.prototype, { _copy: {value: module_copy, writable: true, configurable: true}, _resolve: {value: module_resolve, writable: true, configurable: true}, redefine: {value: module_redefine, writable: true, configurable: true}, define: {value: module_define, writable: true, configurable: true}, derive: {value: module_derive, writable: true, configurable: true}, import: {value: module_import, writable: true, configurable: true}, value: {value: module_value, writable: true, configurable: true}, variable: {value: module_variable, writable: true, configurable: true} }); function module_redefine(name) { var v = this._scope.get(name); if (!v) throw new RuntimeError(name + " is not defined"); if (v._type === TYPE_DUPLICATE) throw new RuntimeError(name + " is defined more than once"); return v.define.apply(v, arguments); } function module_define() { var v = new Variable(TYPE_NORMAL, this); return v.define.apply(v, arguments); } function module_import() { var v = new Variable(TYPE_NORMAL, this); return v.import.apply(v, arguments); } function module_variable(observer) { return new Variable(TYPE_NORMAL, this, observer); } async function module_value(name) { var v = this._scope.get(name); if (!v) throw new RuntimeError(name + " is not defined"); if (v._observer === no_observer) { v._observer = true; this._runtime._dirty.add(v); } await this._runtime._compute(); return v._promise; } function module_derive(injects, injectModule) { var injectByAlias = new Map; forEach.call(injects, function(inject) { if (typeof inject !== "object") inject = {name: inject + ""}; if (inject.alias == null) inject.alias = inject.name; injectByAlias.set(inject.alias, inject); }); var copy = new Module(this._runtime); Promise.resolve().then(() => this._copy(copy, injectByAlias, injectModule, new Map)); return copy; } function module_copy(copy, injectByAlias, injectModule, map) { map.set(this, copy); this._scope.forEach(function(source, name) { var target = new Variable(source._type, copy), inject; if (inject = injectByAlias.get(name)) { target.import(inject.name, inject.alias, injectModule); } else if (source._definition === identity) { // import! var sourceInput = source._inputs[0], sourceModule = sourceInput._module, targetModule = map.get(sourceModule) || sourceModule._copy(new Module(copy._runtime), none, null, map); target.import(sourceInput._name, name, targetModule); } else { target.define(name, source._inputs.map(variable_name), source._definition); } }); return copy; } function module_resolve(name) { var variable = this._scope.get(name), value; if (!variable) { variable = new Variable(TYPE_IMPLICIT, this); if (this._runtime._builtin._scope.has(name)) { variable.import(name, this._runtime._builtin); } else if (name === "invalidation") { variable.define(name, variable_invalidation); } else if (name === "visibility") { variable.define(name, variable_visibility); } else { try { value = this._runtime._global(name); } catch (error) { return variable.define(name, rethrow(error)); } if (value === undefined) { this._scope.set(variable._name = name, variable); } else { variable.define(name, constant(value)); } } } return variable; } function variable_name(variable) { return variable._name; }
33.533333
113
0.68663
a76af14aa58e4a099dd065dc964dfbbe8b8398d2
358
js
JavaScript
src/lib/response.js
quiverjs/quiver-http-head
6f1db1e81d2c6013b92535bd173eda0b0e65ed5e
[ "MIT" ]
null
null
null
src/lib/response.js
quiverjs/quiver-http-head
6f1db1e81d2c6013b92535bd173eda0b0e65ed5e
[ "MIT" ]
null
null
null
src/lib/response.js
quiverjs/quiver-http-head
6f1db1e81d2c6013b92535bd173eda0b0e65ed5e
[ "MIT" ]
null
null
null
import { HttpHead, $getHeader, $setHeader } from './head' export class ResponseHead extends HttpHead { get status() { return this[$getHeader](':status') } setStatus(status) { if(typeof(status) === 'number') status = status.toString() return this[$setHeader](':status', status) } get isResponseHead() { return true } }
17.047619
46
0.628492
a76b99bdf2fc26fcfacb32a6a4bc9473e48ac24a
474
js
JavaScript
node_modules/imdb-scrapper/generateReadMe.js
ThenoobMario/mr-kino-suggests
15946605c29a047a36141d67728f4b08e2f3d36e
[ "MIT" ]
null
null
null
node_modules/imdb-scrapper/generateReadMe.js
ThenoobMario/mr-kino-suggests
15946605c29a047a36141d67728f4b08e2f3d36e
[ "MIT" ]
null
null
null
node_modules/imdb-scrapper/generateReadMe.js
ThenoobMario/mr-kino-suggests
15946605c29a047a36141d67728f4b08e2f3d36e
[ "MIT" ]
1
2021-03-16T17:07:11.000Z
2021-03-16T17:07:11.000Z
function template(name, value) { return ` ## ${name} \`\`\`javascript ${name}.then(val=>console.log(val)) \`\`\` ### output \`\`\`json ${value} \`\`\` `; } function imageTemplate(url, quality) { return ` ## ${quality} ![quality-${quality}](${url}) `; } function imageTemplateGroup(array = []) { return ` ## changeQuality(n) ### n can be 0,1,2,3,4,5 ${array.join("\n")}`; } module.exports = { template, imageTemplate, imageTemplateGroup };
17.555556
65
0.56962
a76c1b23a719fa1a9a4ff1cdb9d7a554f072b80f
1,076
js
JavaScript
src/index.js
darx/svelte-set-css-vars
8ffaecdc0032616eca2b0e54b259fc28eb28652b
[ "MIT" ]
null
null
null
src/index.js
darx/svelte-set-css-vars
8ffaecdc0032616eca2b0e54b259fc28eb28652b
[ "MIT" ]
null
null
null
src/index.js
darx/svelte-set-css-vars
8ffaecdc0032616eca2b0e54b259fc28eb28652b
[ "MIT" ]
null
null
null
const get = (t, path) => path.split(".").reduce((r, k) => r?.[k], t); const objectDeepKeys = object => { return Object.keys(object) .filter(key => object[key] instanceof Object) .map(key => objectDeepKeys(object[key]).map(k => `${key}.${k}`)) .reduce((x, y) => x.concat(y), Object.keys(object)); }; const setVariableProperty = (item, value, context) => { if ( !context.style.getPropertyValue(item) || context.style.getPropertyValue(item) != value ) { context.style.setProperty(item, value); } }; const setVariables = (object, node = document.documentElement) => { const items = objectDeepKeys(object); for (let i = 0, len = items.length; i < len; i++) { let item = get(object, items[i]); if (["number", "string"].indexOf(typeof item) !== -1) { setVariableProperty("--" + items[i].replace(/\./g, "-"), item, node); } } }; export default function setVars(node, object) { const update = stub => setVariables(stub, node); update(object); return { update: update }; } export { setVariableProperty, setVariables };
29.888889
75
0.620818
a76c2efb5e055f80007ca7ea8c9be2889614277d
2,796
js
JavaScript
ui/modules/infrastructure/infrastructure.js
serbaut/cloudstack
9513053f4256375e892df27d0c26644d1fe41725
[ "Apache-2.0" ]
14
2015-01-12T13:46:12.000Z
2021-07-19T19:33:28.000Z
ui/modules/infrastructure/infrastructure.js
serbaut/cloudstack
9513053f4256375e892df27d0c26644d1fe41725
[ "Apache-2.0" ]
20
2020-12-19T22:32:23.000Z
2022-02-01T01:07:06.000Z
ui/modules/infrastructure/infrastructure.js
serbaut/cloudstack
9513053f4256375e892df27d0c26644d1fe41725
[ "Apache-2.0" ]
15
2017-01-12T11:17:48.000Z
2019-04-19T10:09:31.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. (function($, cloudStack) { cloudStack.modules.infrastructure = function(module) { module.pluginAPI.extend({ networkServiceProvider: function(args) { var name = args.name; var id = args.id; var state = args.state; var detailView = args.detailView; var listView = args.listView; cloudStack.sections.system.naas.networkProviders.types[id] = detailView; cloudStack.sections.system.subsections[listView.id] = { id: listView.id, title: name, listView: listView }; $(window).bind('cloudStack.system.serviceProviders.makeHarcodedArray', function(event, data) { var nspHardcodingArray = data.nspHardcodingArray; var selectedZoneObj = data.selectedZoneObj; var selectedPhysicalNetworkObj = data.selectedPhysicalNetworkObj; if(selectedZoneObj.networktype == "Advanced"){ var selectedProviderObj = null; $.ajax({ url: createURL('listNetworkServiceProviders'), data: { name: id, //e.g. 'CiscoVnmc' physicalnetworkid: selectedPhysicalNetworkObj.id }, async: false, success: function(json){ var items = json.listnetworkserviceprovidersresponse.networkserviceprovider; if(items != null && items.length > 0) { selectedProviderObj = items[0]; } } }); nspHardcodingArray.push({ id: id, name: name, state: selectedProviderObj? selectedProviderObj.state : 'Absent' }); } }); }, resource: function(args) { var type = args.type; if (type) { return cloudStack.sections.system.subsections[type]; } else { return false; } } }); }; }(jQuery, cloudStack));
36.789474
102
0.607296
a76cadda5c62a09a7235414e6559974c45a88f01
3,617
js
JavaScript
app.js
ziibii88/Monster_Slayer
ff5f4c52ce7bac182ea2698b2b598736f3eca190
[ "MIT" ]
4
2020-11-18T07:55:57.000Z
2020-11-24T07:32:14.000Z
app.js
ziibii88/Monster_Slayer
ff5f4c52ce7bac182ea2698b2b598736f3eca190
[ "MIT" ]
null
null
null
app.js
ziibii88/Monster_Slayer
ff5f4c52ce7bac182ea2698b2b598736f3eca190
[ "MIT" ]
null
null
null
function getRandomValue(min, max) { // Returns a random attack integer value between min and max args return Math.floor(Math.random() * (max - min)) + min; } const app = Vue.createApp({ data() { return { healthPlayer: 100, // starting health of the Player healthMonster: 100, // starting health of the Monster currentRound: 0, // round obviously starts at 0 winner: null, // winner of the game logs: [] // battle logs } }, watch: { healthPlayer(value) { if(value <= 0 && this.healthMonster <= 0) { this.winner = 'draw' } else if(value > 0 && this.healthMonster <= 0) { this.winner = 'player' } }, healthMonster(value) { if(value > 0 && this.healthPlayer <= 0) { this.winner = 'monster' } } }, computed: { healthMonsterStyle() { if(this.healthMonster <= 0) { return { width: '0%' } // fixes the health bar } else { return { width: this.healthMonster + '%' } } }, healthPlayerStyle() { if(this.healthPlayer <= 0) { return { width: '0%' } // fixes the health bar } else { return { width: this.healthPlayer + '%' } } }, disableSpecialAttack() { // allow to use SpecialAttack every 3 rounds return this.currentRound % 3 !== 0 || this.currentRound === 0 } }, methods: { startGame() { // reset the data for new game this.healthPlayer = 100 this.healthMonster = 100 this.currentRound = 0 this.winner = null this.logs = [] }, attackByMonster() { const attackVal = getRandomValue(8, 15) this.healthPlayer -= attackVal this.addLog('monster', 'attack', attackVal) }, attackByPlayer() { this.currentRound++ // increment the round count const attackVal = getRandomValue(5, 12) this.healthMonster -= attackVal this.addLog('player', 'attack', attackVal) this.attackByMonster() // player gets hit by monster on each attack }, specialAttack() { this.currentRound++ // increment the round count const attackVal = getRandomValue(10, 25) // larger value than normal this.healthMonster -= attackVal this.addLog('player', 'attack', attackVal) this.attackByMonster() // player should still get hit by monster }, healPlayer() { this.currentRound++ // increment the round count const healVal = getRandomValue(8, 15) // make sure the health value does not exceed 100 if(this.healthPlayer + healVal > 100) { this.healthPlayer = 100; } else { this.healthPlayer += healVal; } this.addLog('player', 'heal', healVal) this.attackByMonster() // player should still get hit by monster }, surrender() { this.winner = 'monster' }, addLog(actionBy, actionType, actionValue) { this.logs.unshift({ actionBy: actionBy, actionType: actionType, actionValue: actionValue }) } } }); app.mount('#game');
34.778846
80
0.499032
a76db2504199437f4b6aed6ea9e40670469706e3
82
js
JavaScript
src/config/config.js
playwolsey/klaus
8473a1c498752d17b8045d3bb6d36bef4cb4e107
[ "MIT" ]
1
2017-12-02T14:07:43.000Z
2017-12-02T14:07:43.000Z
src/config/config.js
playwolsey/klaus
8473a1c498752d17b8045d3bb6d36bef4cb4e107
[ "MIT" ]
null
null
null
src/config/config.js
playwolsey/klaus
8473a1c498752d17b8045d3bb6d36bef4cb4e107
[ "MIT" ]
null
null
null
module.exports = { app: { port: process.env.NODE_PORT || 3000 } }
13.666667
43
0.52439
a76dfb165e1e25c4c34cc5ff96ab90a796257bdf
896
js
JavaScript
gulpfile.js
hackclub/shipit
a925b6584260dc01a882aff7dd383bbea74e43a9
[ "MIT" ]
6
2018-01-04T23:02:38.000Z
2021-09-26T14:00:10.000Z
gulpfile.js
hackclub/shipit
a925b6584260dc01a882aff7dd383bbea74e43a9
[ "MIT" ]
10
2015-12-10T23:33:14.000Z
2018-01-10T12:40:05.000Z
gulpfile.js
hackclub/shipit
a925b6584260dc01a882aff7dd383bbea74e43a9
[ "MIT" ]
5
2016-03-08T22:03:18.000Z
2020-02-07T17:58:40.000Z
const gulp = require("gulp"); const autoPrefixer = require("gulp-autoprefixer"); const cleanCSS = require("gulp-clean-css"); const concat = require("gulp-concat"); const sass = require("gulp-sass"); const pump = require("pump"); // Change to another module with ES6 support const composer = require("gulp-uglify/composer"); const uglify = composer(require("uglify-es"), console); const SASS_PATHS = [ "asset/sass/**/*.scss" ]; gulp.task("default", ["watch"]); gulp.task("build", ["build-css"]); gulp.task("build-css", cb => { pump([ gulp.src(SASS_PATHS), sass(), autoPrefixer(), cleanCSS({ compatibility: "ie8", rebase: false }), concat("shipit.min.css"), gulp.dest("asset/dist/") ], cb); }); gulp.task("watch", ["watch-css"]); gulp.task("watch-css", () => gulp.watch(SASS_PATHS, ["build-css"]));
24.216216
68
0.600446
a76e73a5aa42ae6ef2f91f314a2699eeffb0ce9b
467
js
JavaScript
app/confirmation/confirmationController.js
THEPortatCERN/Hackathon2016-Pier3
fa2069bfca2b84d4050c6b55c3b9ca3ef985a1ac
[ "CC-BY-4.0" ]
null
null
null
app/confirmation/confirmationController.js
THEPortatCERN/Hackathon2016-Pier3
fa2069bfca2b84d4050c6b55c3b9ca3ef985a1ac
[ "CC-BY-4.0" ]
null
null
null
app/confirmation/confirmationController.js
THEPortatCERN/Hackathon2016-Pier3
fa2069bfca2b84d4050c6b55c3b9ca3ef985a1ac
[ "CC-BY-4.0" ]
null
null
null
(function (angular) { 'use strict'; var app = angular.module('hermitCrabs'); app.controller('confirmationController', function ($location, matchService, userService) { this.vm = {}; var vm = this.vm; vm.donations = matchService.userCanDonate(); vm.receptions = matchService.userCanReceive(); vm.userInfo = userService.getInfo; vm.showUser = function (userId) { $location.url(`user/${userId}`); } }); })(window.angular);
23.35
92
0.653105
a76eb0e90ecc511e5c1ff6febfb791ccbcac257b
111
js
JavaScript
Projekt/src/ProgramistaNorthwind/wwwroot/jspm_packages/npm/aurelia-templating-binding@1.0.0.js
krzysztofkolek/au-northwind
95c293a6b757547c86c9e08213dde1e9a6ec017b
[ "MIT" ]
null
null
null
Projekt/src/ProgramistaNorthwind/wwwroot/jspm_packages/npm/aurelia-templating-binding@1.0.0.js
krzysztofkolek/au-northwind
95c293a6b757547c86c9e08213dde1e9a6ec017b
[ "MIT" ]
1
2021-02-02T16:31:26.000Z
2021-02-02T16:31:26.000Z
Projekt/src/ProgramistaNorthwind/wwwroot/jspm_packages/npm/aurelia-templating-binding@1.0.0.js
krzysztofkolek/au-northwind
95c293a6b757547c86c9e08213dde1e9a6ec017b
[ "MIT" ]
null
null
null
define(["npm:aurelia-templating-binding@1.0.0/aurelia-templating-binding"], function(main) { return main; });
37
92
0.738739
a76f93c505ac3ca2813d005b822a23c5c0737e2b
19,678
js
JavaScript
public/js/pages/features/miscellaneous/kanban-board.js
ahmadhussain03/farmlooker
41929d12de65daa0b02a55e9cae2d241483004f7
[ "MIT" ]
null
null
null
public/js/pages/features/miscellaneous/kanban-board.js
ahmadhussain03/farmlooker
41929d12de65daa0b02a55e9cae2d241483004f7
[ "MIT" ]
null
null
null
public/js/pages/features/miscellaneous/kanban-board.js
ahmadhussain03/farmlooker
41929d12de65daa0b02a55e9cae2d241483004f7
[ "MIT" ]
null
null
null
/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) { /******/ return installedModules[moduleId].exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = installedModules[moduleId] = { /******/ i: moduleId, /******/ l: false, /******/ exports: {} /******/ }; /******/ /******/ // Execute the module function /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Flag the module as loaded /******/ module.l = true; /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /******/ /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = modules; /******/ /******/ // expose the module cache /******/ __webpack_require__.c = installedModules; /******/ /******/ // define getter function for harmony exports /******/ __webpack_require__.d = function(exports, name, getter) { /******/ if(!__webpack_require__.o(exports, name)) { /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); /******/ } /******/ }; /******/ /******/ // define __esModule on exports /******/ __webpack_require__.r = function(exports) { /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); /******/ } /******/ Object.defineProperty(exports, '__esModule', { value: true }); /******/ }; /******/ /******/ // create a fake namespace object /******/ // mode & 1: value is a module id, require it /******/ // mode & 2: merge all properties of value into the ns /******/ // mode & 4: return value when already ns object /******/ // mode & 8|1: behave like require /******/ __webpack_require__.t = function(value, mode) { /******/ if(mode & 1) value = __webpack_require__(value); /******/ if(mode & 8) return value; /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; /******/ var ns = Object.create(null); /******/ __webpack_require__.r(ns); /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); /******/ return ns; /******/ }; /******/ /******/ // getDefaultExport function for compatibility with non-harmony modules /******/ __webpack_require__.n = function(module) { /******/ var getter = module && module.__esModule ? /******/ function getDefault() { return module['default']; } : /******/ function getModuleExports() { return module; }; /******/ __webpack_require__.d(getter, 'a', getter); /******/ return getter; /******/ }; /******/ /******/ // Object.prototype.hasOwnProperty.call /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ /******/ __webpack_require__.p = "/"; /******/ /******/ /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = 140); /******/ }) /************************************************************************/ /******/ ({ /***/ "./resources/metronic/js/pages/features/miscellaneous/kanban-board.js": /*!****************************************************************************!*\ !*** ./resources/metronic/js/pages/features/miscellaneous/kanban-board.js ***! \****************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; // Class definition var KTKanbanBoardDemo = function () { // Private functions var _demo1 = function _demo1() { var kanban = new jKanban({ element: '#kt_kanban_1', gutter: '0', widthBoard: '250px', boards: [{ 'id': '_inprocess', 'title': 'In Process', 'item': [{ 'title': '<span class="font-weight-bold">You can drag me too</span>' }, { 'title': '<span class="font-weight-bold">Buy Milk</span>' }] }, { 'id': '_working', 'title': 'Working', 'item': [{ 'title': '<span class="font-weight-bold">Do Something!</span>' }, { 'title': '<span class="font-weight-bold">Run?</span>' }] }, { 'id': '_done', 'title': 'Done', 'item': [{ 'title': '<span class="font-weight-bold">All right</span>' }, { 'title': '<span class="font-weight-bold">Ok!</span>' }] }] }); }; var _demo2 = function _demo2() { var kanban = new jKanban({ element: '#kt_kanban_2', gutter: '0', widthBoard: '250px', boards: [{ 'id': '_inprocess', 'title': 'In Process', 'class': 'primary', 'item': [{ 'title': '<span class="font-weight-bold">You can drag me too</span>', 'class': 'light-primary' }, { 'title': '<span class="font-weight-bold">Buy Milk</span>', 'class': 'light-primary' }] }, { 'id': '_working', 'title': 'Working', 'class': 'success', 'item': [{ 'title': '<span class="font-weight-bold">Do Something!</span>', 'class': 'light-success' }, { 'title': '<span class="font-weight-bold">Run?</span>', 'class': 'light-success' }] }, { 'id': '_done', 'title': 'Done', 'class': 'danger', 'item': [{ 'title': '<span class="font-weight-bold">All right</span>', 'class': 'light-danger' }, { 'title': '<span class="font-weight-bold">Ok!</span>', 'class': 'light-danger' }] }] }); }; var _demo3 = function _demo3() { var kanban = new jKanban({ element: '#kt_kanban_3', gutter: '0', widthBoard: '250px', click: function click(el) { alert(el.innerHTML); }, boards: [{ 'id': '_todo', 'title': 'To Do', 'class': 'light-primary', 'dragTo': ['_working'], 'item': [{ 'title': 'My Task Test', 'class': 'primary' }, { 'title': 'Buy Milk', 'class': 'primary' }] }, { 'id': '_working', 'title': 'Working', 'class': 'light-warning', 'item': [{ 'title': 'Do Something!', 'class': 'warning' }, { 'title': 'Run?', 'class': 'warning' }] }, { 'id': '_done', 'title': 'Done', 'class': 'light-success', 'dragTo': ['_working'], 'item': [{ 'title': 'All right', 'class': 'success' }, { 'title': 'Ok!', 'class': 'success' }] }, { 'id': '_notes', 'title': 'Notes', 'class': 'light-danger', 'item': [{ 'title': 'Warning Task', 'class': 'danger' }, { 'title': 'Do not enter', 'class': 'danger' }] }] }); }; var _demo4 = function _demo4() { var kanban = new jKanban({ element: '#kt_kanban_4', gutter: '0', click: function click(el) { alert(el.innerHTML); }, boards: [{ 'id': '_backlog', 'title': 'Backlog', 'class': 'light-dark', 'item': [{ 'title': "\n <div class=\"d-flex align-items-center\">\n \t <div class=\"symbol symbol-success mr-3\">\n \t <img alt=\"Pic\" src=\"assets/media/users/300_24.jpg\" />\n \t </div>\n \t <div class=\"d-flex flex-column align-items-start\">\n \t <span class=\"text-dark-50 font-weight-bold mb-1\">SEO Optimization</span>\n \t <span class=\"label label-inline label-light-success font-weight-bold\">In progress</span>\n \t </div>\n \t </div>\n " }, { 'title': "\n <div class=\"d-flex align-items-center\">\n \t <div class=\"symbol symbol-success mr-3\">\n \t <span class=\"symbol-label font-size-h4\">A.D</span>\n \t </div>\n \t <div class=\"d-flex flex-column align-items-start\">\n \t <span class=\"text-dark-50 font-weight-bold mb-1\">Finance</span>\n \t <span class=\"label label-inline label-light-danger font-weight-bold\">Pending</span>\n \t </div>\n \t </div>\n " }] }, { 'id': '_todo', 'title': 'To Do', 'class': 'light-danger', 'item': [{ 'title': "\n <div class=\"d-flex align-items-center\">\n \t <div class=\"symbol symbol-success mr-3\">\n \t <img alt=\"Pic\" src=\"assets/media/users/300_16.jpg\" />\n \t </div>\n \t <div class=\"d-flex flex-column align-items-start\">\n \t <span class=\"text-dark-50 font-weight-bold mb-1\">Server Setup</span>\n \t <span class=\"label label-inline label-light-dark font-weight-bold\">Completed</span>\n \t </div>\n \t </div>\n " }, { 'title': "\n <div class=\"d-flex align-items-center\">\n \t <div class=\"symbol symbol-success mr-3\">\n \t <img alt=\"Pic\" src=\"assets/media/users/300_15.jpg\" />\n \t </div>\n \t <div class=\"d-flex flex-column align-items-start\">\n \t <span class=\"text-dark-50 font-weight-bold mb-1\">Report Generation</span>\n \t <span class=\"label label-inline label-light-warning font-weight-bold\">Due</span>\n \t </div>\n \t </div>\n " }] }, { 'id': '_working', 'title': 'Working', 'class': 'light-primary', 'item': [{ 'title': "\n <div class=\"d-flex align-items-center\">\n \t <div class=\"symbol symbol-success mr-3\">\n \t <img alt=\"Pic\" src=\"assets/media/users/300_24.jpg\" />\n \t </div>\n \t <div class=\"d-flex flex-column align-items-start\">\n \t <span class=\"text-dark-50 font-weight-bold mb-1\">Marketing</span>\n \t <span class=\"label label-inline label-light-danger font-weight-bold\">Planning</span>\n \t </div>\n \t </div>\n " }, { 'title': "\n <div class=\"d-flex align-items-center\">\n \t <div class=\"symbol symbol-light-info mr-3\">\n \t <span class=\"symbol-label font-size-h4\">A.P</span>\n \t </div>\n \t <div class=\"d-flex flex-column align-items-start\">\n \t <span class=\"text-dark-50 font-weight-bold mb-1\">Finance</span>\n \t <span class=\"label label-inline label-light-primary font-weight-bold\">Done</span>\n \t </div>\n \t </div>\n " }] }, { 'id': '_done', 'title': 'Done', 'class': 'light-success', 'item': [{ 'title': "\n <div class=\"d-flex align-items-center\">\n \t <div class=\"symbol symbol-success mr-3\">\n \t <img alt=\"Pic\" src=\"assets/media/users/300_11.jpg\" />\n \t </div>\n \t <div class=\"d-flex flex-column align-items-start\">\n \t <span class=\"text-dark-50 font-weight-bold mb-1\">SEO Optimization</span>\n \t <span class=\"label label-inline label-light-success font-weight-bold\">In progress</span>\n \t </div>\n \t </div>\n " }, { 'title': "\n <div class=\"d-flex align-items-center\">\n \t <div class=\"symbol symbol-success mr-3\">\n \t <img alt=\"Pic\" src=\"assets/media/users/300_20.jpg\" />\n \t </div>\n \t <div class=\"d-flex flex-column align-items-start\">\n \t <span class=\"text-dark-50 font-weight-bold mb-1\">Product Team</span>\n \t <span class=\"label label-inline label-light-danger font-weight-bold\">In progress</span>\n \t </div>\n \t </div>\n " }] }, { 'id': '_deploy', 'title': 'Deploy', 'class': 'light-primary', 'item': [{ 'title': "\n <div class=\"d-flex align-items-center\">\n \t <div class=\"symbol symbol-light-warning mr-3\">\n \t <span class=\"symbol-label font-size-h4\">D.L</span>\n \t </div>\n \t <div class=\"d-flex flex-column align-items-start\">\n \t <span class=\"text-dark-50 font-weight-bold mb-1\">SEO Optimization</span>\n \t <span class=\"label label-inline label-light-success font-weight-bold\">In progress</span>\n \t </div>\n \t </div>\n " }, { 'title': "\n <div class=\"d-flex align-items-center\">\n \t <div class=\"symbol symbol-light-danger mr-3\">\n \t <span class=\"symbol-label font-size-h4\">E.K</span>\n \t </div>\n \t <div class=\"d-flex flex-column align-items-start\">\n \t <span class=\"text-dark-50 font-weight-bold mb-1\">Requirement Study</span>\n \t <span class=\"label label-inline label-light-warning font-weight-bold\">Scheduled</span>\n \t </div>\n \t </div>\n " }] }] }); var toDoButton = document.getElementById('addToDo'); toDoButton.addEventListener('click', function () { kanban.addElement('_todo', { 'title': "\n <div class=\"d-flex align-items-center\">\n <div class=\"symbol symbol-light-primary mr-3\">\n <img alt=\"Pic\" src=\"assets/media/users/300_14.jpg\" />\n </div>\n <div class=\"d-flex flex-column align-items-start\">\n <span class=\"text-dark-50 font-weight-bold mb-1\">Requirement Study</span>\n <span class=\"label label-inline label-light-success font-weight-bold\">Scheduled</span>\n </div>\n </div>\n " }); }); var addBoardDefault = document.getElementById('addDefault'); addBoardDefault.addEventListener('click', function () { kanban.addBoards([{ 'id': '_default', 'title': 'New Board', 'class': 'primary-light', 'item': [{ 'title': "\n <div class=\"d-flex align-items-center\">\n <div class=\"symbol symbol-success mr-3\">\n <img alt=\"Pic\" src=\"assets/media/users/300_13.jpg\" />\n </div>\n <div class=\"d-flex flex-column align-items-start\">\n <span class=\"text-dark-50 font-weight-bold mb-1\">Payment Modules</span>\n <span class=\"label label-inline label-light-primary font-weight-bold\">In development</span>\n </div>\n </div>\n " }, { 'title': "\n <div class=\"d-flex align-items-center\">\n <div class=\"symbol symbol-success mr-3\">\n <img alt=\"Pic\" src=\"assets/media/users/300_12.jpg\" />\n </div>\n <div class=\"d-flex flex-column align-items-start\">\n <span class=\"text-dark-50 font-weight-bold mb-1\">New Project</span>\n <span class=\"label label-inline label-light-danger font-weight-bold\">Pending</span>\n </div>\n </div>\n " }] }]); }); var removeBoard = document.getElementById('removeBoard'); removeBoard.addEventListener('click', function () { kanban.removeBoard('_done'); }); }; // Public functions return { init: function init() { _demo1(); _demo2(); _demo3(); _demo4(); } }; }(); jQuery(document).ready(function () { KTKanbanBoardDemo.init(); }); /***/ }), /***/ 140: /*!**********************************************************************************!*\ !*** multi ./resources/metronic/js/pages/features/miscellaneous/kanban-board.js ***! \**********************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { module.exports = __webpack_require__(/*! C:\wamp64\www\keenthemes\themes\metronic\theme\html_laravel\demo1\skeleton\resources\metronic\js\pages\features\miscellaneous\kanban-board.js */"./resources/metronic/js/pages/features/miscellaneous/kanban-board.js"); /***/ }) /******/ });
57.037681
769
0.43043
a76fbbeedcbb4a707c5ef138ea6783f6fc5f6244
4,576
js
JavaScript
Zone.UmbracoPersonalisationGroups.Common/Criteria/Continent/definition.editor.controller.js
oliemason/UmbracoPersonalisationGroups
476652d465540e3d3fbeb78fdc4accd70911598d
[ "MIT" ]
40
2015-05-03T07:21:13.000Z
2020-01-18T15:07:21.000Z
Zone.UmbracoPersonalisationGroups.Common/Criteria/Continent/definition.editor.controller.js
AndyButland/UmbracoVisitorGroups
b69244d2cf8e843ebee6d4a122190be7750d2127
[ "MIT" ]
23
2015-05-05T12:41:44.000Z
2021-07-12T14:43:57.000Z
Zone.UmbracoPersonalisationGroups.Common/Criteria/Continent/definition.editor.controller.js
AndyButland/UmbracoVisitorGroups
b69244d2cf8e843ebee6d4a122190be7750d2127
[ "MIT" ]
22
2015-05-05T12:18:13.000Z
2021-09-23T20:21:58.000Z
angular.module("umbraco") .controller("UmbracoPersonalisationGroups.ContinentPersonalisationGroupCriteriaController", function ($scope, geoLocationService) { // Handle passed value for V7 (will have populated dialogOptions), falling back to V8 if not found. var definition = $scope.dialogOptions ? $scope.dialogOptions.definition : $scope.model.definition; function initAvailableContinentsList() { geoLocationService.getContinentList() .then(function (result) { $scope.availableCountries = result.data; }); }; initAvailableContinentsList(); function resetNewContinent() { $scope.newContinent = { code: "", hasError: false }; } $scope.renderModel = { match: "IsLocatedIn" }; $scope.renderModel.continents = []; if (definition) { var continentSettings = JSON.parse(definition); $scope.renderModel.match = continentSettings.match; if (continentSettings.codes) { for (var i = 0; i < continentSettings.codes.length; i++) { $scope.renderModel.continents.push({ code: continentSettings.codes[i], edit: false }); } } } resetNewContinent(); $scope.geoDetailsRequired = function () { return $scope.renderModel.match !== "CouldNotBeLocated"; }; $scope.getContinentName = function (code) { return geoLocationService.getContinentName(code, $scope.availableCountries); } $scope.edit = function (index) { for (var i = 0; i < $scope.renderModel.continents.length; i++) { $scope.renderModel.continents[i].edit = false; } $scope.renderModel.continents[index].edit = true; }; $scope.saveEdit = function (index) { $scope.renderModel.continents[index].edit = false; }; $scope.delete = function (index) { $scope.renderModel.continents.splice(index, 1); }; function isValidContinentCode(code) { return code.length === 2; }; $scope.add = function () { if (isValidContinentCode($scope.newContinent.code)) { var country = { code: $scope.newContinent.code, edit: false }; $scope.renderModel.continents.push(country); resetNewContinent(); } else { $scope.newContinent.hasError = true; } }; $scope.saveAndClose = function () { var serializedResult = "{ \"match\": \"" + $scope.renderModel.match + "\" "; if ($scope.renderModel.match !== "CouldNotBeLocated") { serializedResult += ", \"codes\": ["; for (var i = 0; i < $scope.renderModel.continents.length; i++) { if (i > 0) { serializedResult += ", "; } serializedResult += "\"" + $scope.renderModel.continents[i].code + "\""; } serializedResult += "], "; serializedResult += "\"names\": ["; for (var i = 0; i < $scope.renderModel.continents.length; i++) { if (i > 0) { serializedResult += ", "; } serializedResult += "\"" + geoLocationService.getContinentName($scope.renderModel.continents[i].code, $scope.availableCountries) + "\""; } serializedResult += "]"; } serializedResult += " }"; // For V7 we use $scope.submit(), for V8 $scope.model.submit() if ($scope.submit) { $scope.submit(serializedResult); } else { $scope.model.submit(serializedResult); } }; // For V8 we need to make a call to fire any handler on the close of the dialog if ($scope.model && $scope.model.close) { $scope.close = function () { $scope.model.close(); } } });
38.779661
160
0.478147
a7705040b836f432dccf4d8252c8b3b3be10b240
2,706
js
JavaScript
src/InputStepper/InputStepperStateless/index.js
jansedlon/orbit-components
337356b6b6e31760a271300a79bcd2f78ea3da8a
[ "MIT" ]
null
null
null
src/InputStepper/InputStepperStateless/index.js
jansedlon/orbit-components
337356b6b6e31760a271300a79bcd2f78ea3da8a
[ "MIT" ]
null
null
null
src/InputStepper/InputStepperStateless/index.js
jansedlon/orbit-components
337356b6b6e31760a271300a79bcd2f78ea3da8a
[ "MIT" ]
null
null
null
// @flow import * as React from "react"; import styled from "styled-components"; import { SIZE_OPTIONS } from "../../InputField/consts"; import PlusCircle from "../../icons/PlusCircle"; import MinusCircle from "../../icons/MinusCircle"; import ButtonLink from "../../ButtonLink"; import InputField, { Input, Prefix } from "../../InputField"; import defaultTheme from "../../defaultTheme"; import getSpacingToken from "../../common/getSpacingToken"; import type { StateLessProps } from "./index.js.flow"; const StyledInputStepper = styled.div` width: 100%; margin-bottom: ${getSpacingToken}; ${Input} { text-align: center; } ${Prefix} { padding: 0; pointer-events: auto; } `; StyledInputStepper.defaultProps = { theme: defaultTheme, }; const InputStepperStateless = ({ label, error, onBlur, onFocus, onChange, onKeyDown, help, disabled, name, dataTest, size = SIZE_OPTIONS.NORMAL, maxValue, minValue, required, tabIndex, forwardedRef, spaceAfter, value, onDecrement, onIncrement, disabledIncrement, disabledDecrement, titleIncrement, titleDecrement, }: StateLessProps) => { return ( <StyledInputStepper spaceAfter={spaceAfter}> <InputField dataTest={dataTest} size={size} label={label} disabled={disabled} required={required} name={name} error={error} help={help} type={typeof value === "number" ? "number" : "text"} onChange={onChange} onBlur={onBlur} onFocus={onFocus} onKeyDown={onKeyDown} value={value} minValue={minValue} maxValue={maxValue} tabIndex={tabIndex} ref={forwardedRef} prefix={ <ButtonLink type="secondary" disabled={ disabledDecrement || disabled || (typeof value === "number" && value <= +minValue) } iconLeft={<MinusCircle color="secondary" />} size={size} onClick={onDecrement} transparent title={titleDecrement} asComponent={props => <div {...props} />} /> } suffix={ <ButtonLink disabled={ disabledIncrement || disabled || (typeof value === "number" && value >= +maxValue) } type="secondary" iconLeft={<PlusCircle color="secondary" />} size={size} onClick={onIncrement} transparent title={titleIncrement} asComponent={props => <div {...props} />} /> } /> </StyledInputStepper> ); }; export default InputStepperStateless;
24.378378
96
0.577605
a7705b3774c33135355adc8e538a95d66fefb2db
1,074
js
JavaScript
internal/generator/component/index.js
veraoul/interactive_project_template
9d34153fbb2f194f98815d52644e795fbcd7c931
[ "MIT" ]
null
null
null
internal/generator/component/index.js
veraoul/interactive_project_template
9d34153fbb2f194f98815d52644e795fbcd7c931
[ "MIT" ]
null
null
null
internal/generator/component/index.js
veraoul/interactive_project_template
9d34153fbb2f194f98815d52644e795fbcd7c931
[ "MIT" ]
null
null
null
const path = require('path'); const { componentExists } = require('../util'); const componentPath = path.resolve('src/js/component'); module.exports = { description: 'add Component', prompts: [ { type: 'input', name: 'name', message: 'What should it be called', default: 'Button', validate(value) { if (!/^[A-Za-z][A-Za-z0-9]+$/.test(value)) return 'Invalidte component name!'; return componentExists(value) ? 'Component name already exists!' : true; }, }, ], actions: () => [ { type: 'add', path: `${componentPath}/{{properCase name}}/index.js`, templateFile: 'component/index.hbs', abortOnFail: true, }, { type: 'add', path: `${componentPath}/{{properCase name}}/{{properCase name}}.vue`, templateFile: 'component/vue.hbs', abortOnFail: true, }, { type: 'add', path: `${componentPath}/{{properCase name}}/{{properCase name}}.stories.js`, templateFile: 'component/stories.hbs', abortOnFail: true, }, ], };
26.85
86
0.569832
a770c785b3c9994fcc127b7c2ce03d8f52edcf4a
301
js
JavaScript
src/index.js
StevenPss/kaizerchiefs-redesign
5a311233796ef63934d1d9570a400a8b3781db26
[ "MIT" ]
null
null
null
src/index.js
StevenPss/kaizerchiefs-redesign
5a311233796ef63934d1d9570a400a8b3781db26
[ "MIT" ]
null
null
null
src/index.js
StevenPss/kaizerchiefs-redesign
5a311233796ef63934d1d9570a400a8b3781db26
[ "MIT" ]
null
null
null
import * as bootstrap from "bootstrap"; import helloWorld from "./scripts/helloWorld"; import loadDataTables from "./scripts/loadDataTables"; import animations from "./scripts/animations"; // expose bootstrap to the window window.bootstrap = bootstrap; helloWorld(); loadDataTables(); animations();
25.083333
54
0.774086
a7712fb4ddac0005225c85641d64924b119aec98
4,706
js
JavaScript
examples/HierarchicalKey.js
AKCore/arcadecore
345950ac79df4d358128944739421a559b3500cc
[ "MIT" ]
null
null
null
examples/HierarchicalKey.js
AKCore/arcadecore
345950ac79df4d358128944739421a559b3500cc
[ "MIT" ]
null
null
null
examples/HierarchicalKey.js
AKCore/arcadecore
345950ac79df4d358128944739421a559b3500cc
[ "MIT" ]
null
null
null
var run = function() { bitcore = typeof(bitcore) === 'undefined' ? require('../monacore') : bitcore; var HierarchicalKey = bitcore.HierarchicalKey; var Address = bitcore.Address; var networks = bitcore.networks; var coinUtil = bitcore.util; var crypto = require('crypto'); console.log('HierarchicalKey: Hierarchical Deterministic Wallets (BIP32)'); console.log('https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki\n'); console.log('1) Make new hkey from randomly generated new seed'); var randomBytes = crypto.randomBytes(32); var hkey = HierarchicalKey.seed(randomBytes); console.log('master extended private key: ' + hkey.extendedPrivateKeyString()); console.log('master extended public key: ' + hkey.extendedPublicKeyString()); console.log('m/0/3/5 extended private key: ' + hkey.derive('m/0/3/5').extendedPrivateKeyString()); console.log('m/0/3/5 extended public key: ' + hkey.derive('m/0/3/5').extendedPublicKeyString()); console.log(); console.log('2) Make new hkey from known seed'); var knownBytes = coinUtil.sha256('do not use this password as a brain wallet'); var hkey = HierarchicalKey.seed(knownBytes); console.log('master extended private key: ' + hkey.extendedPrivateKeyString()); console.log('master extended public key: ' + hkey.extendedPublicKeyString()); console.log('m/0/3/5 extended private key: ' + hkey.derive('m/0/3/5').extendedPrivateKeyString()); console.log('m/0/3/5 extended public key: ' + hkey.derive('m/0/3/5').extendedPublicKeyString()); console.log(); console.log('3) Make new hkey from known master private key'); var knownMasterPrivateKey = 'xprv9s21ZrQH143K2LvayFZWVVTomiDKheKWvnupDB8fmjKwxkKG47uvzmFa3vCXoy9fxPJhRYsU19apVfexvMeLpJQuF2XtX1zRF3eao9GqqaQ'; var hkey = new HierarchicalKey(knownMasterPrivateKey); console.log('master extended private key: ' + hkey.extendedPrivateKeyString()); console.log('master extended public key: ' + hkey.extendedPublicKeyString()); console.log('m/0/3/5 extended private key: ' + hkey.derive('m/0/3/5').extendedPrivateKeyString()); console.log('m/0/3/5 extended public key: ' + hkey.derive('m/0/3/5').extendedPublicKeyString()); console.log(); console.log('4) Make new hkey from known master public key'); var knownMasterPublicKey = 'xpub661MyMwAqRbcGpiFufipqsKKBG1NHNwfJKishAEFNqJ6ryLcKeKyFNEZces7gMWd4XGg4uUhXy8DS64o1oPGUECVHeLq957Txjwagxt475H'; var hkey = new HierarchicalKey(knownMasterPublicKey); console.log('master extended private key: cannot derive'); console.log('master extended public key: ' + hkey.extendedPublicKeyString()); console.log('m/0/3/5 extended private key: cannot derive'); console.log('m/0/3/5 extended public key: ' + hkey.derive('m/0/3/5').extendedPublicKeyString()); console.log(); console.log('5) Make new hkey from known derived public key'); var knownPublicKey = 'xpub6CZei1p2zk68UwkcBDqzRonLHJWAiPZZ58sMgHJAn9fmpmnPayVEAvAs3XvTSUMZ1J8dNaxnv4wnt7YpRKr6BsqeWbW8msqeuuhiSzsQEC3'; var hkey = new HierarchicalKey(knownPublicKey); console.log('master extended private key: cannot derive'); console.log('master extended public key: ' + hkey.extendedPublicKeyString()); console.log('m/0/3/5 extended private key: cannot derive'); console.log('m/0/3/5 extended public key: ' + hkey.derive('m/0/3/5').extendedPublicKeyString()); console.log(); console.log('6) Make a bunch of new addresses from known public key'); var knownPublicKey = 'xpub6CZei1p2zk68UwkcBDqzRonLHJWAiPZZ58sMgHJAn9fmpmnPayVEAvAs3XvTSUMZ1J8dNaxnv4wnt7YpRKr6BsqeWbW8msqeuuhiSzsQEC3'; var hkey = new HierarchicalKey(knownPublicKey); console.log('m/0 address: ' + Address.fromPubKey(hkey.derive('m/0').eckey.public).toString()); //console.log('m/1 extended public key: ' + hkey.derive('m/1').extendedPublicKeyString()); console.log('m/1 address: ' + Address.fromPubKey(hkey.derive('m/1').eckey.public).toString()); //console.log('m/2 extended public key: ' + hkey.derive('m/2').extendedPublicKeyString()); console.log('m/2 address: ' + Address.fromPubKey(hkey.derive('m/2').eckey.public).toString()); //console.log('m/3 extended public key: ' + hkey.derive('m/3').extendedPublicKeyString()); console.log('m/3 address: ' + Address.fromPubKey(hkey.derive('m/3').eckey.public).toString()); console.log('...'); //console.log('m/100 extended public key: ' + hkey.derive('m/100').extendedPublicKeyString()); console.log('m/100 address: ' + Address.fromPubKey(hkey.derive('m/100').eckey.public).toString()); console.log(); }; // This is just for browser & mocha compatibility if (typeof module !== 'undefined') { module.exports.run = run; if (require.main === module) { run(); } } else { run(); }
56.02381
144
0.734382
a771949743530ae12752850cd25b20547115d7f5
698
js
JavaScript
REF/Admin/add_data.js
Apizz789/Project_SOFTDEV
b2e389289e201b284cb1b1b545be25279b677fe0
[ "MIT" ]
2
2021-11-17T04:27:26.000Z
2022-01-20T06:17:17.000Z
REF/Admin/add_data.js
Apizz789/Project_SOFTDEV
b2e389289e201b284cb1b1b545be25279b677fe0
[ "MIT" ]
null
null
null
REF/Admin/add_data.js
Apizz789/Project_SOFTDEV
b2e389289e201b284cb1b1b545be25279b677fe0
[ "MIT" ]
null
null
null
const db=firebase.firestore(); const form=document.querySelector('#add_trian'); form.addEventListener('submit',(e)=>{ e.preventDefault(); //console.log(form.C.value); //console.log(form.line.value); db.collection('Station').add({ Company:form.C.value, ID:form.id.value, Line:form.line.value, Thai_Name:form.thaistation.value, Eng_Name:form.engname.value, Tran_ID:form.tran.value, }); alert("เพิ่มข้อมูลแล้ว"); console.log(form.ticket_id.value); // window.setTimeout(turn_to_main,2000); // function turn_to_main() { // window.location.assign('test_index.html'); // } })
27.92
55
0.600287
a771f404d11c0752c193a2716ef20aa3f49579e4
296
js
JavaScript
src/chrome/content/asbcustom/namespace.js
blackcrack/thunderbird-custom-address-sidebar
bb4f772e0b7798a1046d31ced672c61b3f605448
[ "MIT" ]
1
2021-02-07T11:34:00.000Z
2021-02-07T11:34:00.000Z
src/chrome/content/asbcustom/namespace.js
blackcrack/thunderbird-custom-address-sidebar
bb4f772e0b7798a1046d31ced672c61b3f605448
[ "MIT" ]
10
2017-10-22T14:57:28.000Z
2020-02-11T05:54:39.000Z
src/chrome/content/asbcustom/namespace.js
blackcrack/thunderbird-custom-address-sidebar
bb4f772e0b7798a1046d31ced672c61b3f605448
[ "MIT" ]
4
2018-07-18T16:05:02.000Z
2019-12-29T22:46:33.000Z
var com = com || {}; com.namespace = function(string) { var object = window; var levels = string.split("."); for (var i = 0, l = levels.length; i < l; i++) { if (typeof object[levels[i]] == "undefined") { object[levels[i]] = {}; } object = object[levels[i]]; } return object; }
17.411765
49
0.567568
a77226cc367fbe0a475f5239a79ca7ed517fa343
368
js
JavaScript
games/page/share/share.js
luckyadam/xgames
651d1284bb1dde445a7ca32c1e188bc7eefa1b40
[ "MIT" ]
null
null
null
games/page/share/share.js
luckyadam/xgames
651d1284bb1dde445a7ca32c1e188bc7eefa1b40
[ "MIT" ]
null
null
null
games/page/share/share.js
luckyadam/xgames
651d1284bb1dde445a7ca32c1e188bc7eefa1b40
[ "MIT" ]
1
2020-09-11T09:11:55.000Z
2020-09-11T09:11:55.000Z
'use strict'; /** * @author luckyadam * @date 2015-11-6 * @desc 分享页 */ PP.define('games/page/share', function (require, exports, module) { var Share = _.Class.extend({ construct: function (opts) { this.conf = $.extend({ $el: null }, opts); this.init(); }, init: function () { } }); module.exports = Share; });
14.153846
67
0.529891
a77266eefa8a6c6af779ab5c6f6b6f0b4aab6bde
2,118
js
JavaScript
client/app/services/notes-service.js
FretlessJS-2016-03/Notely_Stephanie
ea2326ee72753a9740b3cbf56930865ef242e549
[ "MIT" ]
null
null
null
client/app/services/notes-service.js
FretlessJS-2016-03/Notely_Stephanie
ea2326ee72753a9740b3cbf56930865ef242e549
[ "MIT" ]
null
null
null
client/app/services/notes-service.js
FretlessJS-2016-03/Notely_Stephanie
ea2326ee72753a9740b3cbf56930865ef242e549
[ "MIT" ]
null
null
null
(function() { angular.module('notely') .service('NotesService', NotesService); NotesService.$inject = ['$http', 'API_BASE']; function NotesService($http, API_BASE) { var _this = this; _this.notes = []; _this.fetch = function() { return $http.get(API_BASE + 'notes') .then( // Success function(response) { _this.notes = response.data; }, // Failure function(response) { console.log(`aww, snap: ${response}`); } ); }; _this.getNotes = function() { return _this.notes; }; _this.create = function(note) { var creationPromise = $http.post(API_BASE + 'notes', { note: note }); creationPromise.then(function(response) { _this.notes.unshift(response.data.note); }); return creationPromise; }; _this.update = function(note) { return $http.put(API_BASE + 'notes/' + note._id, { note: { title: note.title, body_html: note.body_html } }).then(function(response) { _this.replaceNote(response.data.note); }); }; _this.delete = function(note) { return $http.delete(API_BASE + 'notes/' + note._id ).then(function(response) { _this.removeNote(response.data.note); }); }; _this.removeNote = function(note) { for (var i = 0; i < _this.notes.length; i++) { if (_this.notes[i]._id === note._id) { _this.notes.splice(i, 1); return; } } }; _this.replaceNote = function(updatedNote) { for (var i = 0; i < _this.notes.length; i++) { if (_this.notes[i]._id === updatedNote._id) { _this.notes[i] = updatedNote; return; } } }; _this.findById = function(noteId) { for (var i = 0; i < _this.notes.length; i++) { // If the IDs match, return the current note if (_this.notes[i]._id === noteId) { return angular.copy(_this.notes[i]); } } return {}; }; } }());
23.797753
60
0.518414
a7726d26efa9b9b2245129e3129b0972bd94eb95
1,783
js
JavaScript
app/lib/multicastReceive.js
vidterra/multitak
8d9711d929b7578aa26f1f8a98de468f8a575c9b
[ "MIT" ]
5
2021-08-13T19:12:31.000Z
2022-02-04T05:00:15.000Z
app/lib/multicastReceive.js
vidterra/multitak
8d9711d929b7578aa26f1f8a98de468f8a575c9b
[ "MIT" ]
null
null
null
app/lib/multicastReceive.js
vidterra/multitak
8d9711d929b7578aa26f1f8a98de468f8a575c9b
[ "MIT" ]
null
null
null
const dgram = require('dgram') const helper = require('@lib/helper') const COT_PORT = 6969 const COT_ADDRESS = '239.2.3.1' const cotReceiveSockets = {} const interfaceBlacklist = process.env.INTERFACE_BLACKLIST_RECEIVE ? process.env.INTERFACE_BLACKLIST_RECEIVE.split(',') : [] const run = (int) => { const cotReceiveSocket = dgram.createSocket({ type: 'udp4', reuseAddr: true, }) cotReceiveSocket.bind(COT_PORT, () => { const addMembership = () => { try { for (const int of helper.getInterfaces()) { if(!interfaceBlacklist.includes(int.name)) { cotReceiveSocket.addMembership(COT_ADDRESS, int.address) console.debug(`Connected multicast receive to interface ${int.name} at ${int.address}`) } } } catch (e) { setTimeout(() => { addMembership() }, 2000) } } addMembership() }) cotReceiveSocket.on('error', (err) => { console.error(`Socket error:\n${err.stack}`) }) cotReceiveSocket.on('message', (raw, rdata) => { //if (rdata.address === int.address) return // do not process multicast messages sent by this server //if(helper.getInterfaceAddresses().includes(rdata.address)) return // do not process multicast messages sent by this server const message = helper.parseMessage(raw) // todo improve by detecting which interface this packet was received on and not sending the packet back to the same interface // this can waste bandwidth because it duplicates every multicast packet if (message) { console.debug(`Received multicast TAK message on interface from ${rdata.address}`) messageEmitter.emit('cotAdd', { source: { type: 'multicast', ip: rdata.address }, date: Date.now(), raw, message }) } }) cotReceiveSockets[int] = cotReceiveSocket } run()
28.301587
128
0.681436
a772ea29f48f5f20bc24b73c8463f506e496e831
584
js
JavaScript
node_modules/@material-ui/icons/esm/MobileFriendlyRounded.js
InonBr/ND_home_assignment_front_end
116b8c5cbf5c7d73a1d8463ff75d03a28d6e45c5
[ "MIT" ]
5
2019-12-31T14:31:50.000Z
2022-03-17T18:06:59.000Z
node_modules/@material-ui/icons/esm/MobileFriendlyRounded.js
InonBr/ND_home_assignment_front_end
116b8c5cbf5c7d73a1d8463ff75d03a28d6e45c5
[ "MIT" ]
21
2020-09-08T15:05:30.000Z
2022-02-27T09:57:39.000Z
node_modules/@material-ui/icons/esm/MobileFriendlyRounded.js
InonBr/ND_home_assignment_front_end
116b8c5cbf5c7d73a1d8463ff75d03a28d6e45c5
[ "MIT" ]
3
2020-01-22T23:08:41.000Z
2020-03-01T11:49:50.000Z
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon(React.createElement(React.Fragment, null, React.createElement("path", { fill: "none", d: "M0 0h24v24H0V0z" }), React.createElement("path", { d: "M19 1H9c-1.1 0-2 .9-2 2v2c0 .55.45 1 1 1s1-.45 1-1V4h10v16H9v-1c0-.55-.45-1-1-1s-1 .45-1 1v2c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zM7.01 13.47l-1.92-1.92c-.35-.35-.92-.35-1.27 0s-.35.92 0 1.27l2.47 2.47c.39.39 1.02.39 1.41 0l5.85-5.85c.35-.35.35-.92 0-1.27s-.92-.35-1.27 0l-5.27 5.3z" })), 'MobileFriendlyRounded');
73
301
0.67637
a7731a3bae03aece44eac3a9259be7b0410e0ecc
18,423
js
JavaScript
node-tests/unit/models/plugin-registry-test.js
CrowdStrike/ember-cli-deploy
bd7b08d1084921193042787ce27570a00dafd5aa
[ "MIT" ]
394
2015-02-27T01:23:55.000Z
2016-04-09T17:11:41.000Z
node-tests/unit/models/plugin-registry-test.js
CrowdStrike/ember-cli-deploy
bd7b08d1084921193042787ce27570a00dafd5aa
[ "MIT" ]
291
2015-02-26T22:19:36.000Z
2016-04-13T12:05:20.000Z
node-tests/unit/models/plugin-registry-test.js
CrowdStrike/ember-cli-deploy
bd7b08d1084921193042787ce27570a00dafd5aa
[ "MIT" ]
100
2015-02-28T19:18:29.000Z
2016-04-08T22:26:40.000Z
var expect = require('../../helpers/expect'); var PluginRegistry = require('../../../lib/models/plugin-registry'); var logOutput, mockUi; describe('Plugin Registry', function() { beforeEach(function() { logOutput = []; mockUi = { writeLine: function(s) { var sanitized = s.replace('\u001b[33m', '') .replace('\u001b[39m', '') .replace(/\n/g, ''); logOutput.push(sanitized); }, writeError: function(s) { var sanitized = s.replace('\u001b[33m', '') .replace('\u001b[39m', '') .replace(/\n/g, ''); logOutput.push(sanitized); } }; }); afterEach(function() { logOutput = null; mockUi = null; }); describe('initialization', function() { it('initializes the pipeline correctly', function() { var project = makeProject(['foo']); var config = { pipeline: { alias: {}, runOrder: {}, disabled: {}, }, }; var registry = new PluginRegistry(project, mockUi, config); expect(registry._project).to.deep.equal(project); expect(registry._ui).to.deep.equal(mockUi); expect(registry._aliasConfig).to.equal(config.pipeline.alias); expect(registry._runOrderConfig).to.equal(config.pipeline.runOrder); expect(registry._disabledConfig).to.equal(config.pipeline.disabled); }); it('initializes the pipeline correctly when pipeline is undefined', function() { var project = makeProject(['foo']); var config = { }; var registry = new PluginRegistry(project, mockUi, config); expect(registry._project).to.deep.equal(project); expect(registry._ui).to.deep.equal(mockUi); expect(registry._aliasConfig).to.deep.equal({}); expect(registry._runOrderConfig).to.deep.equal({}); expect(registry._disabledConfig).to.deep.equal({}); }); it('initializes the pipeline correctly when pipeline is defined but plugin controls are not', function() { var project = makeProject(['foo']); var config = { pipeline: {}, }; var registry = new PluginRegistry(project, mockUi, config); expect(registry._project).to.deep.equal(project); expect(registry._ui).to.deep.equal(mockUi); expect(registry._aliasConfig).to.deep.equal({}); expect(registry._runOrderConfig).to.deep.equal({}); expect(registry._disabledConfig).to.deep.equal({}); }); }); it('warns if no plugins are installed', function() { var project = makeProject([]); var registry = new PluginRegistry(project, mockUi, {}); registry.pluginInstances(); expect(logOutput.length).to.eq(4); expect(logOutput[0]).to.eq('WARNING: No plugins installed/enabled'); expect(logOutput[1]).to.eq('ember-cli-deploy works by registering plugins in it\'s pipeline.'); expect(logOutput[2]).to.eq('In order to execute a deployment you must install at least one ember-cli-deploy compatible plugin.'); expect(logOutput[3]).to.eq('Visit http://ember-cli-deploy.com/plugins/ for a list of supported plugins.'); }); it('accepts plugins with names not starting with ember-cli-deploy and renames those starting with', function() { var validPlugin = makePlugin('foo'); var otherNamedPlugin = makePlugin('bar'); otherNamedPlugin.name = 'my-other-bar'; var project = { name: function() {return 'test-project';}, root: process.cwd(), addons: [validPlugin, otherNamedPlugin], }; var registry = new PluginRegistry(project, mockUi, {}); var plugins = registry.pluginInstances(); expect(plugins.length).to.equal(2); expect(plugins[0].name).to.equal('foo'); expect(plugins[1].name).to.equal('my-other-bar'); }); it('returns plugins for addons that have the correct keyword and implement the plugin function', function() { var validPlugin = makePlugin('foo'); var addonMissingKeyword = makeAddon('bar'); var addonMissingPluginFunction = makePlugin('bar'); delete addonMissingPluginFunction.createDeployPlugin; var project = { name: function() {return 'test-project';}, root: process.cwd(), addons: [validPlugin, addonMissingKeyword, addonMissingPluginFunction], }; var registry = new PluginRegistry(project, mockUi, {}); var plugins = registry.pluginInstances(); expect(plugins.length).to.equal(1); expect(plugins[0].name).to.equal('foo'); expect(typeof plugins[0].willDeploy).to.equal('function'); expect(typeof plugins[0].upload).to.equal('function'); }); it('returns plugins from plugin packs', function() { var validPlugin = makePlugin('foo'); var validPluginPack = makePluginPack('bar', [validPlugin]); var project = { name: function() {return 'test-project';}, root: process.cwd(), addons: [validPluginPack], }; var registry = new PluginRegistry(project, mockUi, {}); var plugins = registry.pluginInstances(); expect(plugins.length).to.equal(1); expect(plugins[0].name).to.equal('foo'); }); it('includes plugin packs that are also plugins', function() { var validPlugin = makePlugin('foo'); var validPluginPack = makePluginPack('bar', [validPlugin]); validPluginPack.pkg.keywords.push('ember-cli-deploy-plugin'); validPluginPack.createDeployPlugin = function(options) { return { name: options.name }; }; var project = { name: function() {return 'test-project';}, root: process.cwd(), addons: [validPluginPack], }; var registry = new PluginRegistry(project, mockUi, {}); var plugins = registry.pluginInstances(); expect(plugins.length).to.equal(2); expect(plugins[0].name).to.equal('bar'); expect(plugins[1].name).to.equal('foo'); }); describe('aliasing plugins', function() { it('returns plugin instances for aliases defined in config', function() { var project = makeProject(['foo', 'bar', 'baz']); var registry = new PluginRegistry(project, mockUi, { pipeline: { alias: { foo: { as: 'xxx' }, bar: { as: ['bar', 'bbb'] }, }, }, }); var plugins = registry.pluginInstances(); expect(plugins.length).to.equal(4); expect(plugins[0].name).to.equal('xxx'); expect(plugins[1].name).to.equal('bar'); expect(plugins[2].name).to.equal('bbb'); expect(plugins[3].name).to.equal('baz'); }); it('warns if alias config references an addon that is not installed', function() { var project = makeProject(['foo']); var registry = new PluginRegistry(project, mockUi, { pipeline: { alias: { bar: { as: ['baz'] }, }, }, }); registry.pluginInstances(); expect(logOutput.length).to.eq(2); expect(logOutput[0]).to.eq('Your config has referenced the following unknown plugins or aliases in `config.pipeline.alias`:'); expect(logOutput[1]).to.eq('- bar'); }); }); describe('disabling plugins', function() { it('returns only plugins that are not marked as disabled', function() { var project = makeProject(['foo', 'bar', 'baz']); var registry = new PluginRegistry(project, mockUi, { pipeline: { alias: { baz: { as: ['aaa', 'bbb'] }, }, disabled: { foo: true, bar: false, bbb: true, }, }, }); var plugins = registry.pluginInstances(); expect(plugins.length).to.equal(2); expect(plugins[0].name).to.equal('bar'); expect(plugins[1].name).to.equal('aaa'); expect(logOutput.length).to.eq(0); registry = new PluginRegistry(project, mockUi, { pipeline: { alias: { baz: { as: ['aaa', 'bbb'] }, }, disabled: { allExcept: 'aaa', }, }, }); plugins = registry.pluginInstances(); expect(plugins.length).to.equal(1); expect(plugins[0].name).to.equal('aaa'); expect(logOutput.length).to.eq(0); registry = new PluginRegistry(project, mockUi, { pipeline: { alias: { baz: { as: ['aaa', 'bbb'] }, }, disabled: { allExcept: 'aaa', foo: false, }, }, }); plugins = registry.pluginInstances(); expect(plugins.length).to.equal(2); expect(plugins[0].name).to.equal('foo'); expect(plugins[1].name).to.equal('aaa'); expect(logOutput.length).to.eq(0); }); it('warns if disabled config references an addon that is not installed', function() { var project = makeProject(['foo']); var registry = new PluginRegistry(project, mockUi, { pipeline: { disabled: { allExcept: ['xxx', 'bbb'], bar: true, foo: false, }, }, }); registry.pluginInstances(); expect(logOutput.length).to.eq(4); expect(logOutput[0]).to.eq('Your config has referenced the following unknown plugins or aliases in `config.pipeline.disabled`:'); expect(logOutput[1]).to.eq('- bar'); expect(logOutput[2]).to.eq('- xxx'); expect(logOutput[3]).to.eq('- bbb'); }); }); describe('specifying plugin run order', function() { it('warns if runOrder config references an addon that is not installed', function() { var project = makeProject(['foo']); var registry = new PluginRegistry(project, mockUi, { pipeline: { runOrder: { baz: { before: ['foo'] }, foo: { after: 'xxx' }, }, }, }); registry.pluginInstances(); expect(logOutput.length).to.eq(3); expect(logOutput[0]).to.eq('Your config has referenced the following unknown plugins or aliases in `config.pipeline.runOrder`:'); expect(logOutput[1]).to.eq('- baz'); expect(logOutput[2]).to.eq('- xxx'); }); it('returns plugins ordered by config specified run before', function() { var project = makeProject(['foo', 'bar']); testOrder(project, { pipeline: { runOrder: { bar: { before: 'foo' }, }, }, }, ['bar', 'foo']); testOrder(project, { pipeline: { runOrder: { foo: { before: 'bar' }, }, }, }, ['foo', 'bar']); testOrder(project, { pipeline: { alias: { bar: { as: ['bar', 'baz'] }, }, runOrder: { bar: { before: 'foo' }, baz: { before: 'bar' }, }, }, }, ['baz', 'bar', 'foo']); }); it('returns plugins ordered by config specified run after', function() { var project = makeProject(['foo', 'bar']); testOrder(project, { pipeline: { runOrder: { bar: { after: 'foo' }, }, }, }, ['foo', 'bar']); testOrder(project, { pipeline: { runOrder: { foo: { after: 'bar' }, }, }, }, ['bar', 'foo']); testOrder(project, { pipeline: { alias: { bar: { as: ['bar', 'baz'] }, }, runOrder: { bar: { after: 'foo' }, baz: { after: 'bar' }, }, }, }, ['foo', 'bar', 'baz']); }); it('returns plugins ordered by multiple config specified run order constraints', function() { var project = makeProject(['foo', 'bar', 'baz']); testOrder(project, { pipeline: { runOrder: { foo: { after: ['bar', 'baz'] }, baz: { after: ['bar'] }, }, }, }, ['bar', 'baz', 'foo']); testOrder(project, { pipeline: { runOrder: { bar: { after: ['foo', 'baz'] }, baz: { after: ['foo'] }, }, }, }, ['foo', 'baz', 'bar']); }); it('returns plugins ordered by author specified run order', function() { var project = { name: function() {return 'test-project';}, root: process.cwd(), addons: [ makePlugin('foo', {}), makePlugin('bar', { runAfter: ['foo'] }), makePlugin('baz', { runBefore: ['foo'] }) ] }; testOrder(project, {}, ['baz', 'foo', 'bar']); }); it('returns plugins ordered by merged config and author provided run order', function() { var project = { name: function() {return 'test-project';}, root: process.cwd(), addons: [ makePlugin('foo', {}), makePlugin('bar', { runAfter: ['foo'] }), makePlugin('baz', { }) ] }; testOrder(project, { pipeline: { runOrder: { baz: { before: ['foo'] }, }, }, }, ['baz', 'foo', 'bar']); testOrder(project, { pipeline: { runOrder: { baz: { after: ['foo', 'bar'] }, }, }, }, ['foo', 'bar', 'baz']); project = { name: function() {return 'test-project';}, root: process.cwd(), addons: [ makePlugin('foo', {}), makePlugin('bar', { runBefore: ['foo'] }), makePlugin('baz', { }) ] }; testOrder(project, { pipeline: { runOrder: { baz: { before: ['foo', 'bar'] }, }, }, }, ['baz', 'bar', 'foo']); testOrder(project, { pipeline: { runOrder: { baz: { after: ['foo'] }, }, }, }, ['bar', 'foo', 'baz']); project = { name: function() {return 'test-project';}, root: process.cwd(), addons: [ makePlugin('foo', { runAfter: ['bar'] }), makePlugin('bar', {}), makePlugin('baz', {}) ] }; testOrder(project, { pipeline: { runOrder: { foo: { after: 'baz' }, }, }, }, ['bar', 'baz', 'foo']); }); it('respects aliases when ordering plugins by author provided run order', function() { var project = { name: function() {return 'test-project';}, root: process.cwd(), addons: [ makePlugin('foo', { runAfter: ['bar'] }), makePlugin('bar', {}), makePlugin('baz', {}), makePlugin('bop', {}), ] }; testOrder(project, { pipeline: { alias: { bar: { as: ['boo', 'bee'] }, }, }, }, ['boo', 'bee', 'foo', 'baz', 'bop']); testOrder(project, { pipeline: { alias: { bar: { as: ['bar', 'boo'] }, }, }, }, ['bar', 'boo', 'foo', 'baz', 'bop']); testOrder(project, { pipeline: { alias: { bar: { as: ['bar', 'boo'] }, }, runOrder: { foo: { after: 'bop', before: 'baz' }, }, }, }, ['bar', 'boo', 'bop', 'foo', 'baz']); project = { name: function() {return 'test-project';}, root: process.cwd(), addons: [ makePlugin('foo', {}), makePlugin('bar', {}), makePlugin('baz', { runBefore: ['foo'] }), makePlugin('bop', {}), ] }; testOrder(project, { pipeline: { alias: { foo: { as: ['boo', 'bee'] }, }, }, }, ['baz', 'boo', 'bee', 'bar', 'bop']); testOrder(project, { pipeline: { alias: { foo: { as: ['foo', 'boo'] }, }, }, }, ['baz', 'foo', 'boo', 'bar', 'bop']); testOrder(project, { pipeline: { alias: { foo: { as: ['foo', 'boo'] }, }, runOrder: { baz: { after: 'bop', before: 'bar' }, }, }, }, ['bop', 'baz', 'foo', 'boo', 'bar']); }); it('detects circular dependencies', function() { var project = makeProject(['foo', 'bar', 'baz']); expect(function() { testOrder(project, { pipeline: { runOrder: { foo: { after: ['bar'] }, bar: { after: ['baz'] }, baz: { after: ['foo'] }, }, }, }); }).to.throw(/your ember-cli-deploy plugins have a circular dependency.*baz.*foo.*bar.*baz/); project = { name: function() {return 'test-project';}, root: process.cwd(), addons: [ makePlugin('foo', { runAfter: ['bar'] }), makePlugin('bar', {}), makePlugin('baz', {}) ] }; expect(function() { testOrder(project, { pipeline: { runOrder: { foo: { before: 'bar' }, }, }, }); }).to.throw(/your ember-cli-deploy plugins have a circular dependency:cycle detected: foo <- bar <- foo/); }); }); }); function makeProject(addonNames) { return { name: function() {return 'test-project';}, root: process.cwd(), addons: addonNames.map(function(name){ return makePlugin(name); }) }; } function makeAddon(name) { return { name: 'ember-cli-deploy-' + name, pkg: { keywords: [ ] }, }; } function makePlugin(name, props) { return { name: 'ember-cli-deploy-' + name, pkg: { keywords: [ 'ember-cli-deploy-plugin' ] }, createDeployPlugin: function(options) { var plugin = Object.create({ name: options.name, willDeploy: function() {}, upload: function() {} }); if (props) { Object.keys(props).forEach(function(key) { plugin[key] = props[key]; }); } return plugin; } }; } function makePluginPack(name, plugins) { return { name: 'ember-cli-deploy-' + name, pkg: { keywords: [ 'ember-cli-deploy-plugin-pack' ] }, addons: plugins, }; } function testOrder(project, config, expectedNames) { var registry = new PluginRegistry(project, mockUi, config); var plugins = registry.pluginInstances(); expect(plugins.map(function(plugin){ return plugin.name; })).to.deep.equal(expectedNames); }
27.703759
135
0.516854
a7737ef744c1a5789f3db172ebcc8984ea81e322
4,198
js
JavaScript
packages/plugins/typescript/vue-urql/dist/index.js
shiwano/graphql-code-generator
eaea03094e4c95706600fc0fff5556729603e28c
[ "MIT" ]
null
null
null
packages/plugins/typescript/vue-urql/dist/index.js
shiwano/graphql-code-generator
eaea03094e4c95706600fc0fff5556729603e28c
[ "MIT" ]
null
null
null
packages/plugins/typescript/vue-urql/dist/index.js
shiwano/graphql-code-generator
eaea03094e4c95706600fc0fff5556729603e28c
[ "MIT" ]
null
null
null
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } const graphql = require('graphql'); const visitorPluginCommon = require('@graphql-codegen/visitor-plugin-common'); const autoBind = _interopDefault(require('auto-bind')); const changeCaseAll = require('change-case-all'); const path = require('path'); class UrqlVisitor extends visitorPluginCommon.ClientSideBaseVisitor { constructor(schema, fragments, rawConfig) { super(schema, fragments, rawConfig, { withComposition: visitorPluginCommon.getConfigValue(rawConfig.withComposition, true), urqlImportFrom: visitorPluginCommon.getConfigValue(rawConfig.urqlImportFrom, '@urql/vue'), }); autoBind(this); } getImports() { const baseImports = super.getImports(); const imports = []; const hasOperations = this._collectedOperations.length > 0; if (!hasOperations) { return baseImports; } if (this.config.withComposition) { imports.push(`import * as Urql from '${this.config.urqlImportFrom}';`); } imports.push(visitorPluginCommon.OMIT_TYPE); return [...baseImports, ...imports]; } _buildCompositionFn(node, operationType, documentVariableName, operationResultType, operationVariablesTypes) { var _a, _b; const operationName = this.convertName((_b = (_a = node.name) === null || _a === void 0 ? void 0 : _a.value) !== null && _b !== void 0 ? _b : '', { suffix: this.config.omitOperationSuffix ? '' : changeCaseAll.pascalCase(operationType), useTypesPrefix: false, }); if (operationType === 'Mutation') { return ` export function use${operationName}() { return Urql.use${operationType}<${operationResultType}, ${operationVariablesTypes}>(${documentVariableName}); };`; } if (operationType === 'Subscription') { return ` export function use${operationName}<R = ${operationResultType}>(options: Omit<Urql.Use${operationType}Args<never, ${operationVariablesTypes}>, 'query'> = {}, handler?: Urql.SubscriptionHandlerArg<${operationResultType}, R>) { return Urql.use${operationType}<${operationResultType}, R, ${operationVariablesTypes}>({ query: ${documentVariableName}, ...options }, handler); };`; } return ` export function use${operationName}(options: Omit<Urql.Use${operationType}Args<never, ${operationVariablesTypes}>, 'query'> = {}) { return Urql.use${operationType}<${operationResultType}>({ query: ${documentVariableName}, ...options }); };`; } buildOperation(node, documentVariableName, operationType, operationResultType, operationVariablesTypes) { const composition = this.config.withComposition ? this._buildCompositionFn(node, operationType, documentVariableName, operationResultType, operationVariablesTypes) : null; return [composition].filter(a => a).join('\n'); } } const plugin = (schema, documents, config) => { const allAst = graphql.concatAST(documents.map(v => v.document)); const allFragments = [ ...allAst.definitions.filter(d => d.kind === graphql.Kind.FRAGMENT_DEFINITION).map(fragmentDef => ({ node: fragmentDef, name: fragmentDef.name.value, onType: fragmentDef.typeCondition.name.value, isExternal: false, })), ...(config.externalFragments || []), ]; const visitor = new UrqlVisitor(schema, allFragments, config); const visitorResult = graphql.visit(allAst, { leave: visitor }); return { prepend: visitor.getImports(), content: [visitor.fragments, ...visitorResult.definitions.filter(t => typeof t === 'string')].join('\n'), }; }; const validate = async (schema, documents, config, outputFile) => { if (path.extname(outputFile) !== '.ts') { throw new Error(`Plugin "typescript-vue-urql" requires extension to be ".ts"!`); } }; exports.UrqlVisitor = UrqlVisitor; exports.plugin = plugin; exports.validate = validate;
45.630435
225
0.657218
a77673add0234d54bdd39719e6d60eb80530d94e
10,674
js
JavaScript
test/index.js
SukkaW/hexo-generator-tag
d95c34cd333fddb51d73281cee0f22d1c48e455e
[ "MIT" ]
31
2015-02-03T21:59:35.000Z
2021-11-08T12:22:45.000Z
test/index.js
SukkaW/hexo-generator-tag
d95c34cd333fddb51d73281cee0f22d1c48e455e
[ "MIT" ]
62
2015-06-03T20:51:09.000Z
2022-03-01T22:37:57.000Z
test/index.js
SukkaW/hexo-generator-tag
d95c34cd333fddb51d73281cee0f22d1c48e455e
[ "MIT" ]
26
2015-03-21T14:48:03.000Z
2022-02-08T16:53:58.000Z
'use strict'; const should = require('chai').should(); // eslint-disable-line const Hexo = require('hexo'); describe('Tag generator', () => { const hexo = new Hexo(__dirname, {silent: true}); hexo.init(); const Post = hexo.model('Post'); const generator = require('../lib/generator').bind(hexo); let posts = {}; let locals = {}; // Default config hexo.config.tag_generator = { per_page: 10 }; before(() => { return Post.insert([ {source: 'foo', slug: 'foo', date: 1e8}, {source: 'bar', slug: 'bar', date: 1e8 + 1}, {source: 'baz', slug: 'baz', date: 1e8 - 1}, {source: 'boo', slug: 'boo', date: 1e8 + 2} ]).then(data => { posts = data; return posts[0].setTags(['foo']).then(() => { return posts[1].setTags(['bar']); }).then(() => { return posts[2].setTags(['foo']); }).then(() => { return posts[3].setTags(['foo']); }); }).then(() => { locals = hexo.locals.toObject(); }); }); describe('Disable index page', () => { it('pagination enabled', () => { hexo.config.tag_generator.per_page = 2; const result = generator(locals); result.length.should.eql(3); for (let i = 0, len = result.length; i < len; i++) { result[i].layout.should.eql(['tag', 'archive', 'index']); } result[0].path.should.eql('tags/foo/'); result[0].data.base.should.eql('tags/foo/'); result[0].data.total.should.eql(2); result[0].data.current.should.eql(1); result[0].data.current_url.should.eql('tags/foo/'); result[0].data.posts.eq(0)._id.should.eql(posts[3]._id); result[0].data.posts.eq(1)._id.should.eql(posts[0]._id); result[0].data.prev.should.eql(0); result[0].data.prev_link.should.eql(''); result[0].data.next.should.eql(2); result[0].data.next_link.should.eql('tags/foo/page/2/'); result[0].data.tag.should.eql('foo'); result[1].path.should.eql('tags/foo/page/2/'); result[1].data.base.should.eql('tags/foo/'); result[1].data.total.should.eql(2); result[1].data.current.should.eql(2); result[1].data.current_url.should.eql('tags/foo/page/2/'); result[1].data.posts.eq(0)._id.should.eql(posts[2]._id); result[1].data.prev.should.eql(1); result[1].data.prev_link.should.eql('tags/foo/'); result[1].data.next.should.eql(0); result[1].data.next_link.should.eql(''); result[1].data.tag.should.eql('foo'); result[2].path.should.eql('tags/bar/'); result[2].data.base.should.eql('tags/bar/'); result[2].data.total.should.eql(1); result[2].data.current.should.eql(1); result[2].data.current_url.should.eql('tags/bar/'); result[2].data.posts.eq(0)._id.should.eql(posts[1]._id); result[2].data.prev.should.eql(0); result[2].data.prev_link.should.eql(''); result[2].data.next.should.eql(0); result[2].data.next_link.should.eql(''); result[2].data.tag.should.eql('bar'); // Restore config hexo.config.tag_generator.per_page = 10; }); it('pagination disabled', () => { hexo.config.tag_generator.per_page = 0; const result = generator(locals); result.length.should.eql(2); for (let i = 0, len = result.length; i < len; i++) { result[i].layout.should.eql(['tag', 'archive', 'index']); } result[0].path.should.eql('tags/foo/'); result[0].data.base.should.eql('tags/foo/'); result[0].data.total.should.eql(1); result[0].data.current.should.eql(1); result[0].data.current_url.should.eql('tags/foo/'); result[0].data.posts.eq(0)._id.should.eql(posts[3]._id); result[0].data.posts.eq(1)._id.should.eql(posts[0]._id); result[0].data.posts.eq(2)._id.should.eql(posts[2]._id); result[0].data.prev.should.eql(0); result[0].data.prev_link.should.eql(''); result[0].data.next.should.eql(0); result[0].data.next_link.should.eql(''); result[0].data.tag.should.eql('foo'); result[1].path.should.eql('tags/bar/'); result[1].data.base.should.eql('tags/bar/'); result[1].data.total.should.eql(1); result[1].data.current.should.eql(1); result[1].data.current_url.should.eql('tags/bar/'); result[1].data.posts.eq(0)._id.should.eql(posts[1]._id); result[1].data.prev.should.eql(0); result[1].data.prev_link.should.eql(''); result[1].data.next.should.eql(0); result[1].data.next_link.should.eql(''); result[1].data.tag.should.eql('bar'); // Restore config hexo.config.tag_generator.per_page = 10; }); it('custom pagination_dir', () => { hexo.config.tag_generator.per_page = 2; hexo.config.pagination_dir = 'yo'; const result = generator(locals); result.map(item => { return item.path; }).should.eql(['tags/foo/', 'tags/foo/yo/2/', 'tags/bar/']); // Restore config hexo.config.tag_generator.per_page = 10; hexo.config.pagination_dir = 'page'; }); }); describe('Enable index page', () => { it('pagination enabled', () => { hexo.config.tag_generator.per_page = 2; hexo.config.tag_generator.enable_index_page = true; const result = generator(locals); result.length.should.eql(4); for (let i = 0, len = result.length - 1; i < len; i++) { result[i].layout.should.eql(['tag', 'archive', 'index']); } result[3].layout.should.eql(['tag-index', 'tag', 'archive', 'index']); result[0].path.should.eql('tags/foo/'); result[0].data.base.should.eql('tags/foo/'); result[0].data.total.should.eql(2); result[0].data.current.should.eql(1); result[0].data.current_url.should.eql('tags/foo/'); result[0].data.posts.eq(0)._id.should.eql(posts[3]._id); result[0].data.posts.eq(1)._id.should.eql(posts[0]._id); result[0].data.prev.should.eql(0); result[0].data.prev_link.should.eql(''); result[0].data.next.should.eql(2); result[0].data.next_link.should.eql('tags/foo/page/2/'); result[0].data.tag.should.eql('foo'); result[1].path.should.eql('tags/foo/page/2/'); result[1].data.base.should.eql('tags/foo/'); result[1].data.total.should.eql(2); result[1].data.current.should.eql(2); result[1].data.current_url.should.eql('tags/foo/page/2/'); result[1].data.posts.eq(0)._id.should.eql(posts[2]._id); result[1].data.prev.should.eql(1); result[1].data.prev_link.should.eql('tags/foo/'); result[1].data.next.should.eql(0); result[1].data.next_link.should.eql(''); result[1].data.tag.should.eql('foo'); result[2].path.should.eql('tags/bar/'); result[2].data.base.should.eql('tags/bar/'); result[2].data.total.should.eql(1); result[2].data.current.should.eql(1); result[2].data.current_url.should.eql('tags/bar/'); result[2].data.posts.eq(0)._id.should.eql(posts[1]._id); result[2].data.prev.should.eql(0); result[2].data.prev_link.should.eql(''); result[2].data.next.should.eql(0); result[2].data.next_link.should.eql(''); result[2].data.tag.should.eql('bar'); result[3].path.should.eql('tags/'); result[3].data.base.should.eql('tags/'); result[3].data.total.should.eql(1); result[3].data.current.should.eql(1); result[3].data.current_url.should.eql('tags/'); // just all posts result[3].data.posts.should.eql(locals.posts); result[3].data.prev.should.eql(0); result[3].data.prev_link.should.eql(''); result[3].data.next.should.eql(0); result[3].data.next_link.should.eql(''); // no tag, tags instead (result[3].data.tag === undefined).should.be.true; result[3].data.tags.should.eql(locals.tags); // Restore config hexo.config.tag_generator.per_page = 10; }); it('pagination disabled', () => { hexo.config.tag_generator.per_page = 0; hexo.config.tag_generator.enable_index_page = true; const result = generator(locals); result.length.should.eql(3); for (let i = 0, len = result.length - 1; i < len; i++) { result[i].layout.should.eql(['tag', 'archive', 'index']); } result[2].layout.should.eql(['tag-index', 'tag', 'archive', 'index']); result[0].path.should.eql('tags/foo/'); result[0].data.base.should.eql('tags/foo/'); result[0].data.total.should.eql(1); result[0].data.current.should.eql(1); result[0].data.current_url.should.eql('tags/foo/'); result[0].data.posts.eq(0)._id.should.eql(posts[3]._id); result[0].data.posts.eq(1)._id.should.eql(posts[0]._id); result[0].data.posts.eq(2)._id.should.eql(posts[2]._id); result[0].data.prev.should.eql(0); result[0].data.prev_link.should.eql(''); result[0].data.next.should.eql(0); result[0].data.next_link.should.eql(''); result[0].data.tag.should.eql('foo'); result[1].path.should.eql('tags/bar/'); result[1].data.base.should.eql('tags/bar/'); result[1].data.total.should.eql(1); result[1].data.current.should.eql(1); result[1].data.current_url.should.eql('tags/bar/'); result[1].data.posts.eq(0)._id.should.eql(posts[1]._id); result[1].data.prev.should.eql(0); result[1].data.prev_link.should.eql(''); result[1].data.next.should.eql(0); result[1].data.next_link.should.eql(''); result[1].data.tag.should.eql('bar'); result[2].path.should.eql('tags/'); result[2].data.base.should.eql('tags/'); result[2].data.total.should.eql(1); result[2].data.current.should.eql(1); result[2].data.current_url.should.eql('tags/'); result[2].data.posts.should.eql(locals.posts); result[2].data.prev.should.eql(0); result[2].data.prev_link.should.eql(''); result[2].data.next.should.eql(0); result[2].data.next_link.should.eql(''); (result[2].data.tag === undefined).should.be.true; result[2].data.tags.should.eql(locals.tags); // Restore config hexo.config.tag_generator.per_page = 10; }); it('custom pagination_dir', () => { hexo.config.tag_generator.per_page = 2; hexo.config.pagination_dir = 'yo'; hexo.config.tag_generator.enable_index_page = true; const result = generator(locals); result.map(item => { return item.path; }).should.eql(['tags/foo/', 'tags/foo/yo/2/', 'tags/bar/', 'tags/']); // Restore config hexo.config.tag_generator.per_page = 10; hexo.config.pagination_dir = 'page'; }); }); });
36.183051
76
0.599213
a776e1b822921e3310b0be950c852698dc15eb51
10,417
js
JavaScript
web_pages/javaScript/tod_alarms.js
glenn-edgar/lua_frame_work
417b72fe254a4359f89f77570733aead2552dfaf
[ "MIT" ]
null
null
null
web_pages/javaScript/tod_alarms.js
glenn-edgar/lua_frame_work
417b72fe254a4359f89f77570733aead2552dfaf
[ "MIT" ]
null
null
null
web_pages/javaScript/tod_alarms.js
glenn-edgar/lua_frame_work
417b72fe254a4359f89f77570733aead2552dfaf
[ "MIT" ]
null
null
null
/* ** ** File tod_alarms.js ** ** ** ** */ var currentIndex; var masterObject = {} var alarmData function getData() { masterObject.inputs = new Array(); masterObject.inputs[0] = getTod(); masterObject.backup = toJson( masterObject.inputs ); alarmData = getAlarmData(); } function saveData() { saveTodData(masterObject.inputs[0] ); masterObject.backup = toJson( masterObject.inputs ); $("#save").attr("disabled", true); } function showFunctionInitial() { var temp; currentIndex = 0; if( masterObject.init[ 0] == 0 ) { masterObject.init[0] = 1; } initLocalControls( 0 ); registerControlButtons( 0 ); temp = "#edit-"+currentIndex; $(temp).hide(); masterObject.tab_index = 0; drawLines(); } function showFunction( event, tab) { var temp; masterObject.tab_index = 0; drawLines(); } function ready() { var temp; temp = "#edit-"+currentIndex; $(temp).hide(); masterObject = {} masterObject.maxNumber = 100 masterObject.init = [0,0,0]; masterObject.initFunctions = [initTod ] masterObject.loadControl = [ loadTod ]; masterObject.loadCreate = [ todCreate ]; masterObject.saveData = [saveTod ]; masterObject.drawLines = [ drawTod ] getData(); $("#reset").bind("click",resetData); $("#save").bind("click",saveData); showFunctionInitial() } $(document).ready( ready); function getCurrentTab() { return 0; } function getGurrentName( index) { var temp; temp = ["TOD"] return temp[0]; } function saveTodData( dataObject) { parent.masterSave = 0; pushJason( "/storeTxdFile.json?name=todalarm", dataObject ); } /* ** ** Note: Need to normalize this data ** ** ** ** */ function getTod() { var temp; temp = {}; temp = getJsonFiltered("/getTxdFile.json?name=todalarm") return temp; } function initTod() { todSec = [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9,10,11,12,13,14,15,16,17,18,19, 20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39, 40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59 ]; todYear = [ 2009,2010,2011,2012,2013,2014,2015,2016,2017,2018,2019,2020,2021,2022,2023,2024,2025, 2026,2027,2028,2029,2030,2031,2032 ]; $("#edit-0-yearCheck").bind("click",yearFunction); $("#edit-0-dowCheck").bind("click",dowFunction); $("#edit-0-number").bind("keypress",numericInput); } function drawTod(index, dataElement) { var temp; temp = "<td>"+dataElement.number+"</td> <td>"+dataElement.name+"</td><td>"+dataElement.alarmNumber+"</td><td></td>" return temp; } function loadTod( data) { $("#editTitle").html("Edit TOD #"+data.number) $("#edit-0-number").attr("value",data.number); $("#edit-0-name").attr("value",data.name); load_select_composite_values( "edit-0-alarmNumber" ,alarmData, data.alarmNumber); load_select( "edit-0-minutes", todSec, data.AlarmMinutes); load_select( "edit-0-seconds", todSec, data.AlarmSeconds); load_select( "edit-0-yearEntry",todYear, data.year); if( data.yearFlag == 0 ) { $("#edit-0-yearCheck").attr("checked",false); } else { $("#edit-0-yearCheck").attr("checked",true); } if( data.DowFlag == 0 ) { $("#edit-0-dowCheck").attr("checked",false); } else { $("#edit-0-dowCheck").attr("checked",true); } markBoxes( [ "#JANUARY", "#FEBRUARY", "#MARCH", "#APRIL", "#MAY", "#JUNE" , "#JULY" , "#AUGUST" , "#SEPTEMBER" , "#OCTOBER" , "#NOVEMBER" , "#DECEMBER" ], data.alarmMonth); markBoxes( [ "#dow-1" ,"#dow-2", "#dow-3", "#dow-4" ,"#dow-5", "#dow-6", "#dow-7", // 0 -- 6 null ,null, null, null ,null, null, null, // 7 - 13 spacers null,null, // 14-15 spacers "#dow-8","#dow-9","#dow-10","#dow-11", "#dow-12", "#last_week" ], data.todDay ); markBoxes( [ "#day-1", "#day-2", "#day-3", "#day-4", "#day-5", "#day-6", "#day-7", "#day-8", "#day-9", "#day-10", "#day-11", "#day-12", "#day-13", "#day-14", "#day-15", "#day-16", "#day-17", "#day-18", "#day-19", "#day-20", "#day-21", "#day-22", "#day-23", "#day-24", "#day-25", "#day-26", "#day-27", "#day-28", "#day-29", "#day-30", "#day-31", "#edit-0-lastDay" ], data.todDay ); markBoxes( [ "#hr-0", "#hr-1", "#hr-2", "#hr-3", "#hr-4", "#hr-5", "#hr-6", "#hr-7", "#hr-8", "#hr-9", "#hr-10", "#hr-11", "#hr-12", "#hr-13", "#hr-14", "#hr-15", "#hr-16", "#hr-17", "#hr-18", "#hr-19" , "#hr-20", "#hr-21", "#hr-22", "#hr-23" ], data.AlarmHours); yearFunction(); dowFunctionInitial(); } function todCreate() { var data; data = {}; data.number = findHoleElement() data.name = "FILL ME IN"; data.yearFlag= 1; data.year = 2010; data.alarmMonth = 0; data.DowFlag = 0; data.todDay = 0; data.alarmNumber = 0; data.AlarmHours = 0; data.AlarmMinutes = 0; data.AlarmSeconds = 0; if( data.number == -1 ) { alert("Exceeded Maximium Table Element") } else { loadTod( data) } return data.number; } function saveTod( dataArray ) { var index; var data; var returnNumber; data = {}; index = $("#edit-0-number").attr("value"); data.number = index; data.name = $("#edit-0-name").attr("value"); data.alarmNumber = get_singleSelect( "edit-0-alarmNumber"); data.AlarmMinutes = get_singleSelect( "edit-0-minutes"); data.AlarmSeconds = get_singleSelect( "edit-0-seconds"); data.year = get_singleSelect( "edit-0-yearEntry"); if( $("#edit-0-yearCheck").attr("checked") == false ) { data.yearFlag= 0; } else { data.yearFlag= 1; } if( $("#edit-0-dowCheck").attr("checked") == false ) { data.DowFlag = 0; } else { data.DowFlag = 1; } data.alarmMonth = recordBoxes( [ "#JANUARY", "#FEBRUARY", "#MARCH", "#APRIL", "#MAY", "#JUNE" , "#JULY" , "#AUGUST" , "#SEPTEMBER" , "#OCTOBER" , "#NOVEMBER" , "#DECEMBER" ]); if( data.DowFlag == 1) { data.todDay = recordBoxes( [ "#dow-1" ,"#dow-2", "#dow-3", "#dow-4" ,"#dow-5", "#dow-6", "#dow-7", null ,null, null, null ,null, null, null, // 7 - 13 spacers null,null, // 14-15 spacers "#dow-8","#dow-9","#dow-10","#dow-11", "#dow-12", "#last_week" ] ); } else { data.todDay = recordBoxes( [ "#day-1", "#day-2", "#day-3", "#day-4", "#day-5", "#day-6", "#day-7", "#day-8", "#day-9", "#day-10", "#day-11", "#day-12", "#day-13", "#day-14", "#day-15", "#day-16", "#day-17", "#day-18", "#day-19", "#day-20", "#day-21", "#day-22", "#day-23", "#day-24", "#day-25", "#day-26", "#day-27", "#day-28", "#day-29", "#day-30", "#day-31", "#edit-0-lastDay" ]); } data.AlarmHours = recordBoxes( [ "#hr-0", "#hr-1", "#hr-2", "#hr-3", "#hr-4", "#hr-5", "#hr-6", "#hr-7", "#hr-8", "#hr-9", "#hr-10", "#hr-11", "#hr-12", "#hr-13", "#hr-14", "#hr-15", "#hr-16", "#hr-17", "#hr-18", "#hr-19" , "#hr-20", "#hr-21", "#hr-22", "#hr-23" ]); returnNumber = 0; if( data.number > masterObject.maxNumber ) { alert("Number field is to large ") returnNumber = -1; return returnNumber; } if( dataArray[ data.number ] != null ) { if( confirm("Over write existing item") ) { returnNumber = 0; } else { returnNumber = -1; return returnNumber; } } dataArray[ index] = data; return returnNumber; } function yearFunction() { if( $("#edit-0-yearCheck").attr("checked") == false) { /*$("#enterYear").show();*/ $("#edit-0-yearEntry").attr("disabled", false); } else { /*$("#enterYear").hide();*/ $("#edit-0-yearEntry").attr("disabled", true); } } function dowFunctionInitial() { if( $("#edit-0-dowCheck").attr("checked") == false) { $("#dayOfWeekTable").hide(); $("#dayTable").show(); $("#dayTable_a").show(); } else { $("#dayOfWeekTable").show(); $("#dayTable").hide(); $("#dayTable_a").hide(); } } function dowFunction() { if( $("#edit-0-dowCheck").attr("checked") == false) { $("#dayOfWeekTable").hide(); $("#dayTable").show(); $("#dayTable_a").show(); } else { $("#dayOfWeekTable").show(); $("#dayTable").hide(); $("#dayTable_a").hide(); } markBoxes( [ "#dow-1" ,"#dow-2", "#dow-3", "#dow-4" ,"#dow-5", "#dow-6", "#dow-7", // 0 -- 6 null ,null, null, null ,null, null, null, // 7 - 13 spacers null,null, // 14-15 spacers "#dow-8","#dow-9","#dow-10","#dow-11", "#dow-12", "#last_week" ], 0 ); markBoxes( [ "#day-1", "#day-2", "#day-3", "#day-4", "#day-5", "#day-6", "#day-7", "#day-8", "#day-9", "#day-10", "#day-11", "#day-12", "#day-13", "#day-14", "#day-15", "#day-16", "#day-17", "#day-18", "#day-19", "#day-20", "#day-21", "#day-22", "#day-23", "#day-24", "#day-25", "#day-26", "#day-27", "#day-28", "#day-29", "#day-30", "#day-31", "#edit-0-lastDay" ], 0); } function markBoxes( elementArray, binaryData) { var index; var mask; var returnValue; mask = 1; for( index = 0 ; index < elementArray.length; index++) { if( $(elementArray[index]) != null ) { if( (binaryData & mask) == 0 ) { $(elementArray[index]).attr("checked",false); } else { $(elementArray[index]).attr("checked",true); } } mask = mask << 1; } } function recordBoxes( elementArray) { var index; var mask; var returnValue; mask = 1; returnValue = 0; for( index = 0 ; index < elementArray.length; index++) { if( $(elementArray[index]) != null ) { if( $(elementArray[index]).attr("checked") == true) { returnValue = returnValue | mask; } } mask = mask << 1; } return returnValue; }
24.626478
129
0.50792