diff --git a/dist/bundle.js b/dist/bundle.js index 53aa9cf..be4686b 100644 --- a/dist/bundle.js +++ b/dist/bundle.js @@ -1,4 +1,4 @@ -!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={};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=131)}([function(t,e,n){var r=n(2),o=n(21),i=n(12),a=n(13),u=n(18),c=function(t,e,n){var l,s,f,p,d=t&c.F,h=t&c.G,v=t&c.S,g=t&c.P,y=t&c.B,m=h?r:v?r[e]||(r[e]={}):(r[e]||{}).prototype,b=h?o:o[e]||(o[e]={}),w=b.prototype||(b.prototype={});h&&(n=e);for(l in n)s=!d&&m&&void 0!==m[l],f=(s?m:n)[l],p=y&&s?u(f,r):g&&"function"==typeof f?u(Function.call,f):f,m&&a(m,l,f,t&c.U),b[l]!=f&&i(b,l,p),g&&w[l]!=f&&(w[l]=f)};r.core=o,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},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(51)("wks"),o=n(32),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(94),i=n(22),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(24),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e,n){var r=n(23);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){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var r=n(7),o=n(31);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(12),i=n(11),a=n(32)("src"),u=Function.toString,c=(""+u).split("toString");n(21).inspectSource=function(t){return u.call(t)},(t.exports=function(t,e,n,u){var l="function"==typeof n;l&&(i(n,"name")||o(n,"name",e)),t[e]!==n&&(l&&(i(n,a)||o(n,a,t[e]?""+t[e]:c.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(23),a=/"/g,u=function(t,e,n,r){var o=String(i(t)),u="<"+e;return""!==n&&(u+=" "+n+'="'+String(r).replace(a,""")+'"'),u+">"+o+""};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,n){var r=n(47),o=n(23);t.exports=function(t){return r(o(t))}},function(t,e,n){var r=n(48),o=n(31),i=n(15),a=n(22),u=n(11),c=n(94),l=Object.getOwnPropertyDescriptor;e.f=n(6)?l:function(t,e){if(t=i(t),e=a(e,!0),c)try{return l(t,e)}catch(t){}if(u(t,e))return o(!r.f.call(t,e),t[e])}},function(t,e,n){var r=n(11),o=n(9),i=n(68)("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,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){var n=t.exports={version:"2.5.1"};"number"==typeof __e&&(__e=n)},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(21),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(18),o=n(47),i=n(9),a=n(8),u=n(85);t.exports=function(t,e){var n=1==t,c=2==t,l=3==t,s=4==t,f=6==t,p=5==t||f,d=e||u;return function(e,u,h){for(var v,g,y=i(e),m=o(y),b=r(u,h,3),w=a(m.length),x=0,_=n?d(e,w):c?d(e,0):void 0;w>x;x++)if((p||x in m)&&(v=m[x],g=b(v,x,y),t))if(n)_[x]=g;else if(g)switch(t){case 3:return!0;case 5:return v;case 6:return x;case 2:_.push(v)}else if(s)return!1;return f?-1:l||s?s:_}}},function(t,e,n){"use strict";if(n(6)){var r=n(33),o=n(2),i=n(3),a=n(0),u=n(61),c=n(91),l=n(18),s=n(39),f=n(31),p=n(12),d=n(41),h=n(24),v=n(8),g=n(120),y=n(35),m=n(22),b=n(11),w=n(49),x=n(4),_=n(9),S=n(82),k=n(36),E=n(17),C=n(37).f,P=n(84),O=n(32),T=n(5),N=n(26),M=n(52),R=n(59),I=n(87),A=n(45),F=n(56),j=n(38),L=n(86),D=n(110),U=n(7),z=n(16),H=U.f,V=z.f,B=o.RangeError,W=o.TypeError,q=o.Uint8Array,K=Array.prototype,G=c.ArrayBuffer,$=c.DataView,Y=N(0),Q=N(2),J=N(3),X=N(4),Z=N(5),tt=N(6),et=M(!0),nt=M(!1),rt=I.values,ot=I.keys,it=I.entries,at=K.lastIndexOf,ut=K.reduce,ct=K.reduceRight,lt=K.join,st=K.sort,ft=K.slice,pt=K.toString,dt=K.toLocaleString,ht=T("iterator"),vt=T("toStringTag"),gt=O("typed_constructor"),yt=O("def_constructor"),mt=u.CONSTR,bt=u.TYPED,wt=u.VIEW,xt=N(1,function(t,e){return Ct(R(t,t[yt]),e)}),_t=i(function(){return 1===new q(new Uint16Array([1]).buffer)[0]}),St=!!q&&!!q.prototype.set&&i(function(){new q(1).set({})}),kt=function(t,e){var n=h(t);if(n<0||n%e)throw B("Wrong offset!");return n},Et=function(t){if(x(t)&&bt in t)return t;throw W(t+" is not a typed array!")},Ct=function(t,e){if(!(x(t)&> in t))throw W("It is not a typed array constructor!");return new t(e)},Pt=function(t,e){return Ot(R(t,t[yt]),e)},Ot=function(t,e){for(var n=0,r=e.length,o=Ct(t,r);r>n;)o[n]=e[n++];return o},Tt=function(t,e,n){H(t,e,{get:function(){return this._d[n]}})},Nt=function(t){var e,n,r,o,i,a,u=_(t),c=arguments.length,s=c>1?arguments[1]:void 0,f=void 0!==s,p=P(u);if(void 0!=p&&!S(p)){for(a=p.call(u),r=[],e=0;!(i=a.next()).done;e++)r.push(i.value);u=r}for(f&&c>2&&(s=l(s,arguments[2],2)),e=0,n=v(u.length),o=Ct(this,n);n>e;e++)o[e]=f?s(u[e],e):u[e];return o},Mt=function(){for(var t=0,e=arguments.length,n=Ct(this,e);e>t;)n[t]=arguments[t++];return n},Rt=!!q&&i(function(){dt.call(new q(1))}),It=function(){return dt.apply(Rt?ft.call(Et(this)):Et(this),arguments)},At={copyWithin:function(t,e){return D.call(Et(this),t,e,arguments.length>2?arguments[2]:void 0)},every:function(t){return X(Et(this),t,arguments.length>1?arguments[1]:void 0)},fill:function(t){return L.apply(Et(this),arguments)},filter:function(t){return Pt(this,Q(Et(this),t,arguments.length>1?arguments[1]:void 0))},find:function(t){return Z(Et(this),t,arguments.length>1?arguments[1]:void 0)},findIndex:function(t){return tt(Et(this),t,arguments.length>1?arguments[1]:void 0)},forEach:function(t){Y(Et(this),t,arguments.length>1?arguments[1]:void 0)},indexOf:function(t){return nt(Et(this),t,arguments.length>1?arguments[1]:void 0)},includes:function(t){return et(Et(this),t,arguments.length>1?arguments[1]:void 0)},join:function(t){return lt.apply(Et(this),arguments)},lastIndexOf:function(t){return at.apply(Et(this),arguments)},map:function(t){return xt(Et(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function(t){return ut.apply(Et(this),arguments)},reduceRight:function(t){return ct.apply(Et(this),arguments)},reverse:function(){for(var t,e=this,n=Et(e).length,r=Math.floor(n/2),o=0;o1?arguments[1]:void 0)},sort:function(t){return st.call(Et(this),t)},subarray:function(t,e){var n=Et(this),r=n.length,o=y(t,r);return new(R(n,n[yt]))(n.buffer,n.byteOffset+o*n.BYTES_PER_ELEMENT,v((void 0===e?r:y(e,r))-o))}},Ft=function(t,e){return Pt(this,ft.call(Et(this),t,e))},jt=function(t){Et(this);var e=kt(arguments[1],1),n=this.length,r=_(t),o=v(r.length),i=0;if(o+e>n)throw B("Wrong length!");for(;i255?255:255&r),o.v[d](n*e+o.o,r,_t)},T=function(t,e){H(t,e,{get:function(){return P(this,e)},set:function(t){return O(this,e,t)},enumerable:!0})};b?(h=n(function(t,n,r,o){s(t,h,l,"_d");var i,a,u,c,f=0,d=0;if(x(n)){if(!(n instanceof G||"ArrayBuffer"==(c=w(n))||"SharedArrayBuffer"==c))return bt in n?Ot(h,n):Nt.call(h,n);i=n,d=kt(r,e);var y=n.byteLength;if(void 0===o){if(y%e)throw B("Wrong length!");if((a=y-d)<0)throw B("Wrong length!")}else if((a=v(o)*e)+d>y)throw B("Wrong length!");u=a/e}else u=g(n),a=u*e,i=new G(a);for(p(t,"_d",{b:i,o:d,l:a,e:u,v:new $(i)});fdocument.F=Object<\/script>"),t.close(),c=t.F;r--;)delete c.prototype[i[r]];return c()};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=c(),void 0===e?n:o(n,e)}},function(t,e,n){var r=n(96),o=n(69).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(18),o=n(108),i=n(82),a=n(1),u=n(8),c=n(84),l={},s={},e=t.exports=function(t,e,n,f,p){var d,h,v,g,y=p?function(){return t}:c(t),m=r(n,f,e?2:1),b=0;if("function"!=typeof y)throw TypeError(t+" is not iterable!");if(i(y)){for(d=u(t.length);d>b;b++)if((g=e?m(a(h=t[b])[0],h[1]):m(t[b]))===l||g===s)return g}else for(v=y.call(t);!(h=v.next()).done;)if((g=o(v,m,h.value,e))===l||g===s)return g};e.BREAK=l,e.RETURN=s},function(t,e,n){var r=n(13);t.exports=function(t,e,n){for(var o in e)r(t,o,e[o],n);return t}},function(t,e,n){"use strict";t.exports=n(337)},function(t,e,n){var r=n(7).f,o=n(11),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(23),i=n(3),a=n(72),u="["+a+"]",c="​…",l=RegExp("^"+u+u+"*"),s=RegExp(u+u+"*$"),f=function(t,e,n){var o={},u=i(function(){return!!a[t]()||c[t]()!=c}),l=o[t]=u?e(p):a[t];n&&(o[n]=l),r(r.P+r.F*u,"String",o)},p=f.trim=function(t,e){return t=String(o(t)),1&e&&(t=t.replace(l,"")),2&e&&(t=t.replace(s,"")),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(19);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(19),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){t.exports=n(347)()},function(t,e,n){var r=n(2),o=r["__core-js_shared__"]||(r["__core-js_shared__"]={});t.exports=function(t){return o[t]||(o[t]={})}},function(t,e,n){var r=n(15),o=n(8),i=n(35);t.exports=function(t){return function(e,n,a){var u,c=r(e),l=o(c.length),s=i(a,l);if(t&&n!=n){for(;l>s;)if((u=c[s++])!=u)return!0}else for(;l>s;s++)if((t||s in c)&&c[s]===n)return t||s||0;return!t&&-1}}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(19);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(4),o=n(19),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(12),o=n(13),i=n(3),a=n(23),u=n(5);t.exports=function(t,e,n){var c=u(t),l=n(a,c,""[t]),s=l[0],f=l[1];i(function(){var e={};return e[c]=function(){return 7},7!=""[t](e)})&&(o(String.prototype,t,s),r(RegExp.prototype,c,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){"use strict";var r=n(2),o=n(0),i=n(13),a=n(41),u=n(29),c=n(40),l=n(39),s=n(4),f=n(3),p=n(56),d=n(43),h=n(73);t.exports=function(t,e,n,v,g,y){var m=r[t],b=m,w=g?"set":"add",x=b&&b.prototype,_={},S=function(t){var e=x[t];i(x,t,"delete"==t?function(t){return!(y&&!s(t))&&e.call(this,0===t?0:t)}:"has"==t?function(t){return!(y&&!s(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return y&&!s(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 b&&(y||x.forEach&&!f(function(){(new b).entries().next()}))){var k=new b,E=k[w](y?{}:-0,1)!=k,C=f(function(){k.has(1)}),P=p(function(t){new b(t)}),O=!y&&f(function(){for(var t=new b,e=5;e--;)t[w](e,e);return!t.has(-0)});P||(b=e(function(e,n){l(e,b,t);var r=h(new m,e,b);return void 0!=n&&c(n,g,r[w],r),r}),b.prototype=x,x.constructor=b),(C||O)&&(S("delete"),S("has"),g&&S("get")),(O||E)&&S(w),y&&x.clear&&delete x.clear}else b=v.getConstructor(e,t,g,w),a(b.prototype,n),u.NEED=!0;return d(b,t),_[t]=b,o(o.G+o.W+o.F*(b!=m),_),y||v.setStrong(b,t,g),b}},function(t,e,n){for(var r,o=n(2),i=n(12),a=n(32),u=a("typed_array"),c=a("view"),l=!(!o.ArrayBuffer||!o.DataView),s=l,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,c,!0)):s=!1;t.exports={ABV:l,CONSTR:s,TYPED:u,VIEW:c}},function(t,e,n){"use strict";t.exports=n(33)||!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=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(18),a=n(40);t.exports=function(t){r(r.S,t,{from:function(t){var e,n,r,u,c=arguments[1];return o(this),e=void 0!==c,e&&o(c),void 0==t?new this:(n=[],e?(r=0,u=i(c,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){"use strict";function r(t){return function(){return t}}var o=function(){};o.thatReturns=r,o.thatReturnsFalse=r(!1),o.thatReturnsTrue=r(!0),o.thatReturnsNull=r(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(t){return t},t.exports=o},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(21),i=n(33),a=n(95),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(51)("keys"),o=n(32);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(18)(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(71).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(24),o=n(23);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(24),o=n(23);t.exports=function(t){return function(e,n){var i,a,u=String(o(e)),c=r(n),l=u.length;return c<0||c>=l?t?"":void 0:(i=u.charCodeAt(c),i<55296||i>56319||c+1===l||(a=u.charCodeAt(c+1))<56320||a>57343?t?u.charAt(c):i:t?u.slice(c,c+2):a-56320+(i-55296<<10)+65536)}}},function(t,e,n){"use strict";var r=n(33),o=n(0),i=n(13),a=n(12),u=n(11),c=n(45),l=n(79),s=n(43),f=n(17),p=n(5)("iterator"),d=!([].keys&&"next"in[].keys()),h=function(){return this};t.exports=function(t,e,n,v,g,y,m){l(n,e,v);var b,w,x,_=function(t){if(!d&&t in C)return C[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},S=e+" Iterator",k="values"==g,E=!1,C=t.prototype,P=C[p]||C["@@iterator"]||g&&C[g],O=P||_(g),T=g?k?_("entries"):O:void 0,N="Array"==e?C.entries||P:P;if(N&&(x=f(N.call(new t)))!==Object.prototype&&x.next&&(s(x,S,!0),r||u(x,p)||a(x,p,h)),k&&P&&"values"!==P.name&&(E=!0,O=function(){return P.call(this)}),r&&!m||!d&&!E&&C[p]||a(C,p,O),c[e]=O,c[S]=h,g)if(b={values:k?O:_("values"),keys:y?O:_("keys"),entries:T},m)for(w in b)w in C||i(C,w,b[w]);else o(o.P+o.F*(d||E),e,b);return b}},function(t,e,n){"use strict";var r=n(36),o=n(31),i=n(43),a={};n(12)(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(55),o=n(23);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(45),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(31);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(49),o=n(5)("iterator"),i=n(45);t.exports=n(21).getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||i[r(t)]}},function(t,e,n){var r=n(224);t.exports=function(t,e){return new(r(t))(e)}},function(t,e,n){"use strict";var r=n(9),o=n(35),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),c=a>2?arguments[2]:void 0,l=void 0===c?n:o(c,n);l>u;)e[u++]=t;return e}},function(t,e,n){"use strict";var r=n(30),o=n(111),i=n(45),a=n(15);t.exports=n(78)(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(18),u=n(101),c=n(70),l=n(66),s=n(2),f=s.process,p=s.setImmediate,d=s.clearImmediate,h=s.MessageChannel,v=s.Dispatch,g=0,y={},m=function(){var t=+this;if(y.hasOwnProperty(t)){var e=y[t];delete y[t],e()}},b=function(t){m.call(t.data)};p&&d||(p=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return y[++g]=function(){u("function"==typeof t?t:Function(t),e)},r(g),g},d=function(t){delete y[t]},"process"==n(19)(f)?r=function(t){f.nextTick(a(m,t,1))}:v&&v.now?r=function(t){v.now(a(m,t,1))}:h?(o=new h,i=o.port2,o.port1.onmessage=b,r=a(i.postMessage,i,1)):s.addEventListener&&"function"==typeof postMessage&&!s.importScripts?(r=function(t){s.postMessage(t+"","*")},s.addEventListener("message",b,!1)):r="onreadystatechange"in l("script")?function(t){c.appendChild(l("script")).onreadystatechange=function(){c.removeChild(this),m.call(t)}}:function(t){setTimeout(a(m,t,1),0)}),t.exports={set:p,clear:d}},function(t,e,n){var r=n(2),o=n(88).set,i=r.MutationObserver||r.WebKitMutationObserver,a=r.process,u=r.Promise,c="process"==n(19)(a);t.exports=function(){var t,e,n,l=function(){var r,o;for(c&&(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(c)n=function(){a.nextTick(l)};else if(i){var s=!0,f=document.createTextNode("");new i(l).observe(f,{characterData:!0}),n=function(){f.data=s=!s}}else if(u&&u.resolve){var p=u.resolve();n=function(){p.then(l)}}else n=function(){o.call(r,l)};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=Array(n),u=8*n-e-1,c=(1<>1,s=23===e?D(2,-24)-D(2,-77):0,f=0,p=t<0||0===t&&1/t<0?1:0;for(t=L(t),t!=t||t===F?(o=t!=t?1:0,r=c):(r=U(z(t)/H),t*(i=D(2,-r))<1&&(r--,i*=2),t+=r+l>=1?s/i:s*D(2,1-l),t*i>=2&&(r++,i/=2),r+l>=c?(o=0,r=c):r+l>=1?(o=(t*i-1)*D(2,e),r+=l):(o=t*D(2,l-1)*D(2,e),r=0));e>=8;a[f++]=255&o,o/=256,e-=8);for(r=r<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<>1,u=o-7,c=n-1,l=t[c--],s=127&l;for(l>>=7;u>0;s=256*s+t[c],c--,u-=8);for(r=s&(1<<-u)-1,s>>=-u,u+=e;u>0;r=256*r+t[c],c--,u-=8);if(0===s)s=1-a;else{if(s===i)return r?NaN:l?-F:F;r+=D(2,e),s-=a}return(l?-1:1)*r*D(2,s-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 c(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function l(t){return r(t,52,8)}function s(t){return r(t,23,4)}function f(t,e,n){C(t[T],e,{get:function(){return this[n]}})}function p(t,e,n,r){var o=+n,i=k(o);if(i+e>t[B])throw A(N);var a=t[V]._b,u=i+t[W],c=a.slice(u,u+e);return r?c:c.reverse()}function d(t,e,n,r,o,i){var a=+n,u=k(a);if(u+e>t[B])throw A(N);for(var c=t[V]._b,l=u+t[W],s=r(+o),f=0;f$;)(q=G[$++])in M||m(M,q,j[q]);g||(K.constructor=M)}var Y=new R(new M(2)),Q=R[T].setInt8;Y.setInt8(0,2147483648),Y.setInt8(1,2147483649),!Y.getInt8(0)&&Y.getInt8(1)||b(R[T],{setInt8:function(t,e){Q.call(this,t,e<<24>>24)},setUint8:function(t,e){Q.call(this,t,e<<24>>24)}},!0)}else M=function(t){x(this,M,"ArrayBuffer");var e=k(t);this._b=P.call(Array(e),0),this[B]=e},R=function(t,e,n){x(this,R,"DataView"),x(t,M,"DataView");var r=t[B],o=_(e);if(o<0||o>r)throw A("Wrong offset!");if(n=void 0===n?r-o:S(n),o+n>r)throw A("Wrong length!");this[V]=t,this[W]=o,this[B]=n},v&&(f(M,"byteLength","_l"),f(R,"buffer","_b"),f(R,"byteLength","_l"),f(R,"byteOffset","_o")),b(R[T],{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,c,e,arguments[2])},setUint32:function(t,e){d(this,4,t,c,e,arguments[2])},setFloat32:function(t,e){d(this,4,t,s,e,arguments[2])},setFloat64:function(t,e){d(this,8,t,l,e,arguments[2])}});O(M,"ArrayBuffer"),O(R,"DataView"),m(R[T],y.VIEW,!0),e.ArrayBuffer=M,e.DataView=R},function(t,e,n){"use strict";function r(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e]+)>; rel="(next|last|first|prev)"/.exec(n);if(null==r||r.length<3)throw new Error("Pagination error");for(var o=r.length-1;o;)e[r[o]]=r[o-1],o-=2;return e}},{key:"_reducePullRequests",value:function(t){return t.reduce(function(t,e){var n=e.repository_url,r=t[n]||{open:0,merged:0,closed:0};return r[e.state]+=1,t[n]=r,t},{})}},{key:"_reduceIssues",value:function(t){return t.reduce(function(t,e){var n=e.repository_url,r=t[n]||{open:0,closed:0};return r[e.state]+=1,t[n]=r,t},{})}},{key:"_sortPullRequests",value:function(t){return t.sort(function(t,e){var n=t.open+t.closed+t.merged,r=e.open+e.closed+e.merged;return n==r?t.repository.stargazers_countc;)r(u,n=e[c++])&&(~i(l,n)||l.push(n));return l}},function(t,e,n){var r=n(7),o=n(1),i=n(34);t.exports=n(6)?Object.defineProperties:function(t,e){o(t);for(var n,a=i(e),u=a.length,c=0;u>c;)r.f(t,n=a[c++],e[n]);return t}},function(t,e,n){var r=n(15),o=n(37).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(34),o=n(53),i=n(48),a=n(9),u=n(47),c=Object.assign;t.exports=!c||n(3)(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=c({},t)[n]||Object.keys(c({},e)).join("")!=r})?function(t,e){for(var n=a(t),c=arguments.length,l=1,s=o.f,f=i.f;c>l;)for(var p,d=u(arguments[l++]),h=s?r(d).concat(s(d)):r(d),v=h.length,g=0;v>g;)f.call(d,p=h[g++])&&(n[p]=d[p]);return n}:c},function(t,e,n){"use strict";var r=n(10),o=n(4),i=n(101),a=[].slice,u={},c=function(t,e,n){if(!(e in u)){for(var r=[],o=0;o>>0||(a.test(n)?16:10))}:r},function(t,e,n){var r=n(2).parseFloat,o=n(44).trim;t.exports=1/r(n(72)+"-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(19);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(75),o=Math.pow,i=o(2,-52),a=o(2,-23),u=o(2,127)*(2-a),c=o(2,-126),l=function(t){return t+1/i-1/i};t.exports=Math.fround||function(t){var e,n,o=Math.abs(t),s=r(t);return ou||n!=n?s*(1/0):s*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(47),a=n(8);t.exports=function(t,e,n,u,c){r(e);var l=o(t),s=i(l),f=a(l.length),p=c?f-1:0,d=c?-1:1;if(n<2)for(;;){if(p in s){u=s[p],p+=d;break}if(p+=d,c?p<0:f<=p)throw TypeError("Reduce of empty array with no initial value")}for(;c?p>=0:f>p;p+=d)p in s&&(u=e(u,s[p],p,l));return u}},function(t,e,n){"use strict";var r=n(9),o=n(35),i=n(8);t.exports=[].copyWithin||function(t,e){var n=r(this),a=i(n.length),u=o(t,a),c=o(e,a),l=arguments.length>2?arguments[2]:void 0,s=Math.min((void 0===l?a:o(l,a))-c,a-u),f=1;for(c0;)c in n?n[u]=n[c]:delete n[u],u+=f,c+=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(57)})},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(90);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(116),o=n(46);t.exports=n(60)("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(36),i=n(41),a=n(18),u=n(39),c=n(40),l=n(78),s=n(111),f=n(38),p=n(6),d=n(29).fastKey,h=n(46),v=p?"_s":"size",g=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,l){var s=t(function(t,r){u(t,s,e,"_i"),t._t=e,t._i=o(null),t._f=void 0,t._l=void 0,t[v]=0,void 0!=r&&c(r,n,t[l],t)});return i(s.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=g(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!!g(h(this,e),t)}}),p&&r(s.prototype,"size",{get:function(){return h(this,e)[v]}}),s},def:function(t,e,n){var r,o,i=g(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:g,setStrong:function(t,e,n){l(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?s(0,n.k):"values"==e?s(0,n.v):s(0,[n.k,n.v]):(t._t=void 0,s(1))},n?"entries":"values",!n,!0),f(e)}}},function(t,e,n){"use strict";var r=n(116),o=n(46);t.exports=n(60)("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(26)(0),i=n(13),a=n(29),u=n(99),c=n(119),l=n(4),s=n(3),f=n(46),p=a.getWeak,d=Object.isExtensible,h=c.ufstore,v={},g=function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},y={get:function(t){if(l(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 c.def(f(this,"WeakMap"),t,e)}},m=t.exports=n(60)("WeakMap",g,y,c,!0,!0);s(function(){return 7!=(new m).set((Object.freeze||Object)(v),7).get(v)})&&(r=c.getConstructor(g,"WeakMap"),u(r.prototype,y),a.NEED=!0,o(["delete","has","get","set"],function(t){var e=m.prototype,n=e[t];i(e,t,function(e,o){if(l(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(41),o=n(29).getWeak,i=n(1),a=n(4),u=n(39),c=n(40),l=n(26),s=n(11),f=n(46),p=l(5),d=l(6),h=0,v=function(t){return t._l||(t._l=new g)},g=function(){this.a=[]},y=function(t,e){return p(t.a,function(t){return t[0]===e})};g.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 l=t(function(t,r){u(t,l,e,"_i"),t._t=e,t._i=h++,t._l=void 0,void 0!=r&&c(r,n,t[i],t)});return r(l.prototype,{delete:function(t){if(!a(t))return!1;var n=o(t);return!0===n?v(f(this,e)).delete(t):n&&s(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&&s(n,this._i)}}),l},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(24),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(37),o=n(53),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,l,s,f,p,d){for(var h,v,g=s,y=0,m=!!p&&u(p,d,3);y0)g=r(t,e,h,a(h.length),g,f-1)-1;else{if(g>=9007199254740991)throw TypeError();t[g]=h}g++}y++}return g}var o=n(54),i=n(4),a=n(8),u=n(18),c=n(5)("isConcatSpreadable");t.exports=r},function(t,e,n){var r=n(8),o=n(74),i=n(23);t.exports=function(t,e,n,a){var u=String(i(t)),c=u.length,l=void 0===n?" ":String(n),s=r(e);if(s<=c||""==l)return u;var f=s-c,p=o.call(l,Math.ceil(f/l.length));return p.length>f&&(p=p.slice(0,f)),a?p+u:u+p}},function(t,e,n){var r=n(34),o=n(15),i=n(48).f;t.exports=function(t){return function(e){for(var n,a=o(e),u=r(a),c=u.length,l=0,s=[];c>l;)i.call(a,n=u[l++])&&s.push(t?[n,a[n]]:a[n]);return s}}},function(t,e,n){var r=n(49),o=n(126);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(40);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){"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)}/* +!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={};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=131)}([function(t,e,n){var r=n(2),o=n(21),i=n(12),a=n(13),u=n(18),c=function(t,e,n){var l,s,f,p,d=t&c.F,h=t&c.G,v=t&c.S,g=t&c.P,y=t&c.B,m=h?r:v?r[e]||(r[e]={}):(r[e]||{}).prototype,b=h?o:o[e]||(o[e]={}),w=b.prototype||(b.prototype={});h&&(n=e);for(l in n)s=!d&&m&&void 0!==m[l],f=(s?m:n)[l],p=y&&s?u(f,r):g&&"function"==typeof f?u(Function.call,f):f,m&&a(m,l,f,t&c.U),b[l]!=f&&i(b,l,p),g&&w[l]!=f&&(w[l]=f)};r.core=o,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},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(51)("wks"),o=n(32),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(94),i=n(22),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(24),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e,n){var r=n(23);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){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var r=n(7),o=n(31);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(12),i=n(11),a=n(32)("src"),u=Function.toString,c=(""+u).split("toString");n(21).inspectSource=function(t){return u.call(t)},(t.exports=function(t,e,n,u){var l="function"==typeof n;l&&(i(n,"name")||o(n,"name",e)),t[e]!==n&&(l&&(i(n,a)||o(n,a,t[e]?""+t[e]:c.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(23),a=/"/g,u=function(t,e,n,r){var o=String(i(t)),u="<"+e;return""!==n&&(u+=" "+n+'="'+String(r).replace(a,""")+'"'),u+">"+o+""};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,n){var r=n(47),o=n(23);t.exports=function(t){return r(o(t))}},function(t,e,n){var r=n(48),o=n(31),i=n(15),a=n(22),u=n(11),c=n(94),l=Object.getOwnPropertyDescriptor;e.f=n(6)?l:function(t,e){if(t=i(t),e=a(e,!0),c)try{return l(t,e)}catch(t){}if(u(t,e))return o(!r.f.call(t,e),t[e])}},function(t,e,n){var r=n(11),o=n(9),i=n(68)("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,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){var n=t.exports={version:"2.5.1"};"number"==typeof __e&&(__e=n)},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(21),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(18),o=n(47),i=n(9),a=n(8),u=n(85);t.exports=function(t,e){var n=1==t,c=2==t,l=3==t,s=4==t,f=6==t,p=5==t||f,d=e||u;return function(e,u,h){for(var v,g,y=i(e),m=o(y),b=r(u,h,3),w=a(m.length),x=0,_=n?d(e,w):c?d(e,0):void 0;w>x;x++)if((p||x in m)&&(v=m[x],g=b(v,x,y),t))if(n)_[x]=g;else if(g)switch(t){case 3:return!0;case 5:return v;case 6:return x;case 2:_.push(v)}else if(s)return!1;return f?-1:l||s?s:_}}},function(t,e,n){"use strict";if(n(6)){var r=n(33),o=n(2),i=n(3),a=n(0),u=n(61),c=n(91),l=n(18),s=n(39),f=n(31),p=n(12),d=n(41),h=n(24),v=n(8),g=n(120),y=n(35),m=n(22),b=n(11),w=n(49),x=n(4),_=n(9),S=n(82),k=n(36),E=n(17),C=n(37).f,P=n(84),O=n(32),T=n(5),N=n(26),M=n(52),R=n(59),I=n(87),A=n(45),F=n(56),j=n(38),L=n(86),D=n(110),U=n(7),z=n(16),H=U.f,V=z.f,B=o.RangeError,W=o.TypeError,q=o.Uint8Array,K=Array.prototype,G=c.ArrayBuffer,$=c.DataView,Y=N(0),Q=N(2),J=N(3),X=N(4),Z=N(5),tt=N(6),et=M(!0),nt=M(!1),rt=I.values,ot=I.keys,it=I.entries,at=K.lastIndexOf,ut=K.reduce,ct=K.reduceRight,lt=K.join,st=K.sort,ft=K.slice,pt=K.toString,dt=K.toLocaleString,ht=T("iterator"),vt=T("toStringTag"),gt=O("typed_constructor"),yt=O("def_constructor"),mt=u.CONSTR,bt=u.TYPED,wt=u.VIEW,xt=N(1,function(t,e){return Ct(R(t,t[yt]),e)}),_t=i(function(){return 1===new q(new Uint16Array([1]).buffer)[0]}),St=!!q&&!!q.prototype.set&&i(function(){new q(1).set({})}),kt=function(t,e){var n=h(t);if(n<0||n%e)throw B("Wrong offset!");return n},Et=function(t){if(x(t)&&bt in t)return t;throw W(t+" is not a typed array!")},Ct=function(t,e){if(!(x(t)&> in t))throw W("It is not a typed array constructor!");return new t(e)},Pt=function(t,e){return Ot(R(t,t[yt]),e)},Ot=function(t,e){for(var n=0,r=e.length,o=Ct(t,r);r>n;)o[n]=e[n++];return o},Tt=function(t,e,n){H(t,e,{get:function(){return this._d[n]}})},Nt=function(t){var e,n,r,o,i,a,u=_(t),c=arguments.length,s=c>1?arguments[1]:void 0,f=void 0!==s,p=P(u);if(void 0!=p&&!S(p)){for(a=p.call(u),r=[],e=0;!(i=a.next()).done;e++)r.push(i.value);u=r}for(f&&c>2&&(s=l(s,arguments[2],2)),e=0,n=v(u.length),o=Ct(this,n);n>e;e++)o[e]=f?s(u[e],e):u[e];return o},Mt=function(){for(var t=0,e=arguments.length,n=Ct(this,e);e>t;)n[t]=arguments[t++];return n},Rt=!!q&&i(function(){dt.call(new q(1))}),It=function(){return dt.apply(Rt?ft.call(Et(this)):Et(this),arguments)},At={copyWithin:function(t,e){return D.call(Et(this),t,e,arguments.length>2?arguments[2]:void 0)},every:function(t){return X(Et(this),t,arguments.length>1?arguments[1]:void 0)},fill:function(t){return L.apply(Et(this),arguments)},filter:function(t){return Pt(this,Q(Et(this),t,arguments.length>1?arguments[1]:void 0))},find:function(t){return Z(Et(this),t,arguments.length>1?arguments[1]:void 0)},findIndex:function(t){return tt(Et(this),t,arguments.length>1?arguments[1]:void 0)},forEach:function(t){Y(Et(this),t,arguments.length>1?arguments[1]:void 0)},indexOf:function(t){return nt(Et(this),t,arguments.length>1?arguments[1]:void 0)},includes:function(t){return et(Et(this),t,arguments.length>1?arguments[1]:void 0)},join:function(t){return lt.apply(Et(this),arguments)},lastIndexOf:function(t){return at.apply(Et(this),arguments)},map:function(t){return xt(Et(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function(t){return ut.apply(Et(this),arguments)},reduceRight:function(t){return ct.apply(Et(this),arguments)},reverse:function(){for(var t,e=this,n=Et(e).length,r=Math.floor(n/2),o=0;o1?arguments[1]:void 0)},sort:function(t){return st.call(Et(this),t)},subarray:function(t,e){var n=Et(this),r=n.length,o=y(t,r);return new(R(n,n[yt]))(n.buffer,n.byteOffset+o*n.BYTES_PER_ELEMENT,v((void 0===e?r:y(e,r))-o))}},Ft=function(t,e){return Pt(this,ft.call(Et(this),t,e))},jt=function(t){Et(this);var e=kt(arguments[1],1),n=this.length,r=_(t),o=v(r.length),i=0;if(o+e>n)throw B("Wrong length!");for(;i255?255:255&r),o.v[d](n*e+o.o,r,_t)},T=function(t,e){H(t,e,{get:function(){return P(this,e)},set:function(t){return O(this,e,t)},enumerable:!0})};b?(h=n(function(t,n,r,o){s(t,h,l,"_d");var i,a,u,c,f=0,d=0;if(x(n)){if(!(n instanceof G||"ArrayBuffer"==(c=w(n))||"SharedArrayBuffer"==c))return bt in n?Ot(h,n):Nt.call(h,n);i=n,d=kt(r,e);var y=n.byteLength;if(void 0===o){if(y%e)throw B("Wrong length!");if((a=y-d)<0)throw B("Wrong length!")}else if((a=v(o)*e)+d>y)throw B("Wrong length!");u=a/e}else u=g(n),a=u*e,i=new G(a);for(p(t,"_d",{b:i,o:d,l:a,e:u,v:new $(i)});fdocument.F=Object<\/script>"),t.close(),c=t.F;r--;)delete c.prototype[i[r]];return c()};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=c(),void 0===e?n:o(n,e)}},function(t,e,n){var r=n(96),o=n(69).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(18),o=n(108),i=n(82),a=n(1),u=n(8),c=n(84),l={},s={},e=t.exports=function(t,e,n,f,p){var d,h,v,g,y=p?function(){return t}:c(t),m=r(n,f,e?2:1),b=0;if("function"!=typeof y)throw TypeError(t+" is not iterable!");if(i(y)){for(d=u(t.length);d>b;b++)if((g=e?m(a(h=t[b])[0],h[1]):m(t[b]))===l||g===s)return g}else for(v=y.call(t);!(h=v.next()).done;)if((g=o(v,m,h.value,e))===l||g===s)return g};e.BREAK=l,e.RETURN=s},function(t,e,n){var r=n(13);t.exports=function(t,e,n){for(var o in e)r(t,o,e[o],n);return t}},function(t,e,n){"use strict";t.exports=n(337)},function(t,e,n){var r=n(7).f,o=n(11),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(23),i=n(3),a=n(72),u="["+a+"]",c="​…",l=RegExp("^"+u+u+"*"),s=RegExp(u+u+"*$"),f=function(t,e,n){var o={},u=i(function(){return!!a[t]()||c[t]()!=c}),l=o[t]=u?e(p):a[t];n&&(o[n]=l),r(r.P+r.F*u,"String",o)},p=f.trim=function(t,e){return t=String(o(t)),1&e&&(t=t.replace(l,"")),2&e&&(t=t.replace(s,"")),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(19);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(19),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){t.exports=n(347)()},function(t,e,n){var r=n(2),o=r["__core-js_shared__"]||(r["__core-js_shared__"]={});t.exports=function(t){return o[t]||(o[t]={})}},function(t,e,n){var r=n(15),o=n(8),i=n(35);t.exports=function(t){return function(e,n,a){var u,c=r(e),l=o(c.length),s=i(a,l);if(t&&n!=n){for(;l>s;)if((u=c[s++])!=u)return!0}else for(;l>s;s++)if((t||s in c)&&c[s]===n)return t||s||0;return!t&&-1}}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(19);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(4),o=n(19),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(12),o=n(13),i=n(3),a=n(23),u=n(5);t.exports=function(t,e,n){var c=u(t),l=n(a,c,""[t]),s=l[0],f=l[1];i(function(){var e={};return e[c]=function(){return 7},7!=""[t](e)})&&(o(String.prototype,t,s),r(RegExp.prototype,c,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){"use strict";var r=n(2),o=n(0),i=n(13),a=n(41),u=n(29),c=n(40),l=n(39),s=n(4),f=n(3),p=n(56),d=n(43),h=n(73);t.exports=function(t,e,n,v,g,y){var m=r[t],b=m,w=g?"set":"add",x=b&&b.prototype,_={},S=function(t){var e=x[t];i(x,t,"delete"==t?function(t){return!(y&&!s(t))&&e.call(this,0===t?0:t)}:"has"==t?function(t){return!(y&&!s(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return y&&!s(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 b&&(y||x.forEach&&!f(function(){(new b).entries().next()}))){var k=new b,E=k[w](y?{}:-0,1)!=k,C=f(function(){k.has(1)}),P=p(function(t){new b(t)}),O=!y&&f(function(){for(var t=new b,e=5;e--;)t[w](e,e);return!t.has(-0)});P||(b=e(function(e,n){l(e,b,t);var r=h(new m,e,b);return void 0!=n&&c(n,g,r[w],r),r}),b.prototype=x,x.constructor=b),(C||O)&&(S("delete"),S("has"),g&&S("get")),(O||E)&&S(w),y&&x.clear&&delete x.clear}else b=v.getConstructor(e,t,g,w),a(b.prototype,n),u.NEED=!0;return d(b,t),_[t]=b,o(o.G+o.W+o.F*(b!=m),_),y||v.setStrong(b,t,g),b}},function(t,e,n){for(var r,o=n(2),i=n(12),a=n(32),u=a("typed_array"),c=a("view"),l=!(!o.ArrayBuffer||!o.DataView),s=l,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,c,!0)):s=!1;t.exports={ABV:l,CONSTR:s,TYPED:u,VIEW:c}},function(t,e,n){"use strict";t.exports=n(33)||!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=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(18),a=n(40);t.exports=function(t){r(r.S,t,{from:function(t){var e,n,r,u,c=arguments[1];return o(this),e=void 0!==c,e&&o(c),void 0==t?new this:(n=[],e?(r=0,u=i(c,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){"use strict";function r(t){return function(){return t}}var o=function(){};o.thatReturns=r,o.thatReturnsFalse=r(!1),o.thatReturnsTrue=r(!0),o.thatReturnsNull=r(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(t){return t},t.exports=o},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(21),i=n(33),a=n(95),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(51)("keys"),o=n(32);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(18)(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(71).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(24),o=n(23);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(24),o=n(23);t.exports=function(t){return function(e,n){var i,a,u=String(o(e)),c=r(n),l=u.length;return c<0||c>=l?t?"":void 0:(i=u.charCodeAt(c),i<55296||i>56319||c+1===l||(a=u.charCodeAt(c+1))<56320||a>57343?t?u.charAt(c):i:t?u.slice(c,c+2):a-56320+(i-55296<<10)+65536)}}},function(t,e,n){"use strict";var r=n(33),o=n(0),i=n(13),a=n(12),u=n(11),c=n(45),l=n(79),s=n(43),f=n(17),p=n(5)("iterator"),d=!([].keys&&"next"in[].keys()),h=function(){return this};t.exports=function(t,e,n,v,g,y,m){l(n,e,v);var b,w,x,_=function(t){if(!d&&t in C)return C[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},S=e+" Iterator",k="values"==g,E=!1,C=t.prototype,P=C[p]||C["@@iterator"]||g&&C[g],O=P||_(g),T=g?k?_("entries"):O:void 0,N="Array"==e?C.entries||P:P;if(N&&(x=f(N.call(new t)))!==Object.prototype&&x.next&&(s(x,S,!0),r||u(x,p)||a(x,p,h)),k&&P&&"values"!==P.name&&(E=!0,O=function(){return P.call(this)}),r&&!m||!d&&!E&&C[p]||a(C,p,O),c[e]=O,c[S]=h,g)if(b={values:k?O:_("values"),keys:y?O:_("keys"),entries:T},m)for(w in b)w in C||i(C,w,b[w]);else o(o.P+o.F*(d||E),e,b);return b}},function(t,e,n){"use strict";var r=n(36),o=n(31),i=n(43),a={};n(12)(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(55),o=n(23);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(45),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(31);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(49),o=n(5)("iterator"),i=n(45);t.exports=n(21).getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||i[r(t)]}},function(t,e,n){var r=n(224);t.exports=function(t,e){return new(r(t))(e)}},function(t,e,n){"use strict";var r=n(9),o=n(35),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),c=a>2?arguments[2]:void 0,l=void 0===c?n:o(c,n);l>u;)e[u++]=t;return e}},function(t,e,n){"use strict";var r=n(30),o=n(111),i=n(45),a=n(15);t.exports=n(78)(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(18),u=n(101),c=n(70),l=n(66),s=n(2),f=s.process,p=s.setImmediate,d=s.clearImmediate,h=s.MessageChannel,v=s.Dispatch,g=0,y={},m=function(){var t=+this;if(y.hasOwnProperty(t)){var e=y[t];delete y[t],e()}},b=function(t){m.call(t.data)};p&&d||(p=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return y[++g]=function(){u("function"==typeof t?t:Function(t),e)},r(g),g},d=function(t){delete y[t]},"process"==n(19)(f)?r=function(t){f.nextTick(a(m,t,1))}:v&&v.now?r=function(t){v.now(a(m,t,1))}:h?(o=new h,i=o.port2,o.port1.onmessage=b,r=a(i.postMessage,i,1)):s.addEventListener&&"function"==typeof postMessage&&!s.importScripts?(r=function(t){s.postMessage(t+"","*")},s.addEventListener("message",b,!1)):r="onreadystatechange"in l("script")?function(t){c.appendChild(l("script")).onreadystatechange=function(){c.removeChild(this),m.call(t)}}:function(t){setTimeout(a(m,t,1),0)}),t.exports={set:p,clear:d}},function(t,e,n){var r=n(2),o=n(88).set,i=r.MutationObserver||r.WebKitMutationObserver,a=r.process,u=r.Promise,c="process"==n(19)(a);t.exports=function(){var t,e,n,l=function(){var r,o;for(c&&(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(c)n=function(){a.nextTick(l)};else if(i){var s=!0,f=document.createTextNode("");new i(l).observe(f,{characterData:!0}),n=function(){f.data=s=!s}}else if(u&&u.resolve){var p=u.resolve();n=function(){p.then(l)}}else n=function(){o.call(r,l)};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=Array(n),u=8*n-e-1,c=(1<>1,s=23===e?D(2,-24)-D(2,-77):0,f=0,p=t<0||0===t&&1/t<0?1:0;for(t=L(t),t!=t||t===F?(o=t!=t?1:0,r=c):(r=U(z(t)/H),t*(i=D(2,-r))<1&&(r--,i*=2),t+=r+l>=1?s/i:s*D(2,1-l),t*i>=2&&(r++,i/=2),r+l>=c?(o=0,r=c):r+l>=1?(o=(t*i-1)*D(2,e),r+=l):(o=t*D(2,l-1)*D(2,e),r=0));e>=8;a[f++]=255&o,o/=256,e-=8);for(r=r<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<>1,u=o-7,c=n-1,l=t[c--],s=127&l;for(l>>=7;u>0;s=256*s+t[c],c--,u-=8);for(r=s&(1<<-u)-1,s>>=-u,u+=e;u>0;r=256*r+t[c],c--,u-=8);if(0===s)s=1-a;else{if(s===i)return r?NaN:l?-F:F;r+=D(2,e),s-=a}return(l?-1:1)*r*D(2,s-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 c(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function l(t){return r(t,52,8)}function s(t){return r(t,23,4)}function f(t,e,n){C(t[T],e,{get:function(){return this[n]}})}function p(t,e,n,r){var o=+n,i=k(o);if(i+e>t[B])throw A(N);var a=t[V]._b,u=i+t[W],c=a.slice(u,u+e);return r?c:c.reverse()}function d(t,e,n,r,o,i){var a=+n,u=k(a);if(u+e>t[B])throw A(N);for(var c=t[V]._b,l=u+t[W],s=r(+o),f=0;f$;)(q=G[$++])in M||m(M,q,j[q]);g||(K.constructor=M)}var Y=new R(new M(2)),Q=R[T].setInt8;Y.setInt8(0,2147483648),Y.setInt8(1,2147483649),!Y.getInt8(0)&&Y.getInt8(1)||b(R[T],{setInt8:function(t,e){Q.call(this,t,e<<24>>24)},setUint8:function(t,e){Q.call(this,t,e<<24>>24)}},!0)}else M=function(t){x(this,M,"ArrayBuffer");var e=k(t);this._b=P.call(Array(e),0),this[B]=e},R=function(t,e,n){x(this,R,"DataView"),x(t,M,"DataView");var r=t[B],o=_(e);if(o<0||o>r)throw A("Wrong offset!");if(n=void 0===n?r-o:S(n),o+n>r)throw A("Wrong length!");this[V]=t,this[W]=o,this[B]=n},v&&(f(M,"byteLength","_l"),f(R,"buffer","_b"),f(R,"byteLength","_l"),f(R,"byteOffset","_o")),b(R[T],{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,c,e,arguments[2])},setUint32:function(t,e){d(this,4,t,c,e,arguments[2])},setFloat32:function(t,e){d(this,4,t,s,e,arguments[2])},setFloat64:function(t,e){d(this,8,t,l,e,arguments[2])}});O(M,"ArrayBuffer"),O(R,"DataView"),m(R[T],y.VIEW,!0),e.ArrayBuffer=M,e.DataView=R},function(t,e,n){"use strict";function r(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e]+)>; rel="(next|last|first|prev)"/.exec(n);if(null==r||r.length<3)throw new Error("Pagination error");for(var o=r.length-1;o;)e[r[o]]=r[o-1],o-=2;return e}},{key:"_reducePullRequests",value:function(t){return t.reduce(function(t,e){var n=e.repository_url,r=t[n]||{open:0,merged:0,closed:0};return r[e.state]+=1,t[n]=r,t},{})}},{key:"_reduceIssues",value:function(t){return t.reduce(function(t,e){var n=e.repository_url,r=t[n]||{open:0,closed:0};return r[e.state]+=1,t[n]=r,t},{})}},{key:"_sortPullRequests",value:function(t){return t.sort(function(t,e){var n=t.open+t.closed+t.merged,r=e.open+e.closed+e.merged;return n==r?t.repository.stargazers_countc;)r(u,n=e[c++])&&(~i(l,n)||l.push(n));return l}},function(t,e,n){var r=n(7),o=n(1),i=n(34);t.exports=n(6)?Object.defineProperties:function(t,e){o(t);for(var n,a=i(e),u=a.length,c=0;u>c;)r.f(t,n=a[c++],e[n]);return t}},function(t,e,n){var r=n(15),o=n(37).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(34),o=n(53),i=n(48),a=n(9),u=n(47),c=Object.assign;t.exports=!c||n(3)(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=c({},t)[n]||Object.keys(c({},e)).join("")!=r})?function(t,e){for(var n=a(t),c=arguments.length,l=1,s=o.f,f=i.f;c>l;)for(var p,d=u(arguments[l++]),h=s?r(d).concat(s(d)):r(d),v=h.length,g=0;v>g;)f.call(d,p=h[g++])&&(n[p]=d[p]);return n}:c},function(t,e,n){"use strict";var r=n(10),o=n(4),i=n(101),a=[].slice,u={},c=function(t,e,n){if(!(e in u)){for(var r=[],o=0;o>>0||(a.test(n)?16:10))}:r},function(t,e,n){var r=n(2).parseFloat,o=n(44).trim;t.exports=1/r(n(72)+"-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(19);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(75),o=Math.pow,i=o(2,-52),a=o(2,-23),u=o(2,127)*(2-a),c=o(2,-126),l=function(t){return t+1/i-1/i};t.exports=Math.fround||function(t){var e,n,o=Math.abs(t),s=r(t);return ou||n!=n?s*(1/0):s*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(47),a=n(8);t.exports=function(t,e,n,u,c){r(e);var l=o(t),s=i(l),f=a(l.length),p=c?f-1:0,d=c?-1:1;if(n<2)for(;;){if(p in s){u=s[p],p+=d;break}if(p+=d,c?p<0:f<=p)throw TypeError("Reduce of empty array with no initial value")}for(;c?p>=0:f>p;p+=d)p in s&&(u=e(u,s[p],p,l));return u}},function(t,e,n){"use strict";var r=n(9),o=n(35),i=n(8);t.exports=[].copyWithin||function(t,e){var n=r(this),a=i(n.length),u=o(t,a),c=o(e,a),l=arguments.length>2?arguments[2]:void 0,s=Math.min((void 0===l?a:o(l,a))-c,a-u),f=1;for(c0;)c in n?n[u]=n[c]:delete n[u],u+=f,c+=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(57)})},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(90);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(116),o=n(46);t.exports=n(60)("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(36),i=n(41),a=n(18),u=n(39),c=n(40),l=n(78),s=n(111),f=n(38),p=n(6),d=n(29).fastKey,h=n(46),v=p?"_s":"size",g=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,l){var s=t(function(t,r){u(t,s,e,"_i"),t._t=e,t._i=o(null),t._f=void 0,t._l=void 0,t[v]=0,void 0!=r&&c(r,n,t[l],t)});return i(s.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=g(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!!g(h(this,e),t)}}),p&&r(s.prototype,"size",{get:function(){return h(this,e)[v]}}),s},def:function(t,e,n){var r,o,i=g(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:g,setStrong:function(t,e,n){l(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?s(0,n.k):"values"==e?s(0,n.v):s(0,[n.k,n.v]):(t._t=void 0,s(1))},n?"entries":"values",!n,!0),f(e)}}},function(t,e,n){"use strict";var r=n(116),o=n(46);t.exports=n(60)("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(26)(0),i=n(13),a=n(29),u=n(99),c=n(119),l=n(4),s=n(3),f=n(46),p=a.getWeak,d=Object.isExtensible,h=c.ufstore,v={},g=function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},y={get:function(t){if(l(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 c.def(f(this,"WeakMap"),t,e)}},m=t.exports=n(60)("WeakMap",g,y,c,!0,!0);s(function(){return 7!=(new m).set((Object.freeze||Object)(v),7).get(v)})&&(r=c.getConstructor(g,"WeakMap"),u(r.prototype,y),a.NEED=!0,o(["delete","has","get","set"],function(t){var e=m.prototype,n=e[t];i(e,t,function(e,o){if(l(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(41),o=n(29).getWeak,i=n(1),a=n(4),u=n(39),c=n(40),l=n(26),s=n(11),f=n(46),p=l(5),d=l(6),h=0,v=function(t){return t._l||(t._l=new g)},g=function(){this.a=[]},y=function(t,e){return p(t.a,function(t){return t[0]===e})};g.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 l=t(function(t,r){u(t,l,e,"_i"),t._t=e,t._i=h++,t._l=void 0,void 0!=r&&c(r,n,t[i],t)});return r(l.prototype,{delete:function(t){if(!a(t))return!1;var n=o(t);return!0===n?v(f(this,e)).delete(t):n&&s(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&&s(n,this._i)}}),l},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(24),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(37),o=n(53),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,l,s,f,p,d){for(var h,v,g=s,y=0,m=!!p&&u(p,d,3);y0)g=r(t,e,h,a(h.length),g,f-1)-1;else{if(g>=9007199254740991)throw TypeError();t[g]=h}g++}y++}return g}var o=n(54),i=n(4),a=n(8),u=n(18),c=n(5)("isConcatSpreadable");t.exports=r},function(t,e,n){var r=n(8),o=n(74),i=n(23);t.exports=function(t,e,n,a){var u=String(i(t)),c=u.length,l=void 0===n?" ":String(n),s=r(e);if(s<=c||""==l)return u;var f=s-c,p=o.call(l,Math.ceil(f/l.length));return p.length>f&&(p=p.slice(0,f)),a?p+u:u+p}},function(t,e,n){var r=n(34),o=n(15),i=n(48).f;t.exports=function(t){return function(e){for(var n,a=o(e),u=r(a),c=u.length,l=0,s=[];c>l;)i.call(a,n=u[l++])&&s.push(t?[n,a[n]]:a[n]);return s}}},function(t,e,n){var r=n(49),o=n(126);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(40);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){"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 diff --git a/src/api/GitHub.js b/src/api/GitHub.js index e2fc184..4633a96 100644 --- a/src/api/GitHub.js +++ b/src/api/GitHub.js @@ -231,8 +231,9 @@ export default class GitHub { async _fetchPullRequests() { const q = encodeURIComponent('type:pr author:' + this._author); const pullRequests = await this._fetchPages('https://api.github.com/search/issues?per_page=100&q=' + q); + const filtered = pullRequests.items.filter((item) => item.author_association != 'OWNER'); - const promises = pullRequests.items.map(async (item) => { + const promises = filtered.map(async (item) => { if (item.state == 'closed' && await this._isMerged(item.pull_request.url)) { item.state = 'merged'; } diff --git a/src/api/GitHub.test.js b/src/api/GitHub.test.js index 4278c6a..8a71488 100644 --- a/src/api/GitHub.test.js +++ b/src/api/GitHub.test.js @@ -124,6 +124,7 @@ describe('aggregatePullRequests', () => { return mockResponse({items: [ { repository_url: 'https://api.github.com/repos/user/repo1', + author_association: 'CONTRIBUTOR', pull_request: {url: 'https://api.github.com/repos/user/repo1/pulls/1'}, state: 'open', }, @@ -138,6 +139,7 @@ describe('aggregatePullRequests', () => { return mockResponse({items: [ { repository_url: 'https://api.github.com/repos/user/repo1', + author_association: 'CONTRIBUTOR', pull_request: {url: 'https://api.github.com/repos/user/repo1/pulls/2'}, state: 'closed', }, @@ -182,6 +184,54 @@ describe('aggregatePullRequests', () => { await expect(github.aggregatePullRequests()).resolves.toEqual(result); }); + it('filters owned', async () => { + window.fetch.mockImplementation((url) => { + switch (url) { + case 'https://api.github.com/search/issues?per_page=100&q=type%3Apr%20author%3Atest': + return mockResponse({items: [ + { + repository_url: 'https://api.github.com/repos/user/repo1', + author_association: 'CONTRIBUTOR', + pull_request: {url: 'https://api.github.com/repos/user/repo1/pulls/1'}, + state: 'open', + }, + { + repository_url: 'https://api.github.com/repos/user/repo2', + author_association: 'OWNER', + pull_request: {url: 'https://api.github.com/repos/user/repo2/pulls/1'}, + state: 'open', + }, + ]}); + case 'https://api.github.com/repos/user/repo1': + return mockResponse({ + html_url: 'https://github.com/user/repo1', + full_name: 'Repo 1', + stargazers_count: 1, + language: 'JavaScript', + }); + default: + return { ok: false }; + } + }); + + const result = [ + { + repository: { + html_url: 'https://github.com/user/repo1', + full_name: 'Repo 1', + stargazers_count: 1, + language: 'JavaScript', + }, + open: 1, + closed: 0, + merged: 0, + html_url: 'https://github.com/search?utf8=✓&q=type%3Apr%20author%3Atest%20repo%3ARepo%201', + }, + ]; + + await expect(github.aggregatePullRequests()).resolves.toEqual(result); + }); + it('aggregates', async () => { window.fetch.mockImplementation((url) => { switch (url) { @@ -189,36 +239,43 @@ describe('aggregatePullRequests', () => { return mockResponse({items: [ { repository_url: 'https://api.github.com/repos/user/repo1', + author_association: 'CONTRIBUTOR', pull_request: {url: 'https://api.github.com/repos/user/repo1/pulls/1'}, state: 'open', }, { repository_url: 'https://api.github.com/repos/user/repo1', + author_association: 'CONTRIBUTOR', pull_request: {url: 'https://api.github.com/repos/user/repo1/pulls/2'}, state: 'closed', }, { repository_url: 'https://api.github.com/repos/user/repo1', + author_association: 'CONTRIBUTOR', pull_request: {url: 'https://api.github.com/repos/user/repo1/pulls/3'}, state: 'closed', }, { repository_url: 'https://api.github.com/repos/user/repo2', + author_association: 'CONTRIBUTOR', pull_request: {url: 'https://api.github.com/repos/user/repo2/pulls/1'}, state: 'open', }, { repository_url: 'https://api.github.com/repos/user/repo2', + author_association: 'CONTRIBUTOR', pull_request: {url: 'https://api.github.com/repos/user/repo2/pulls/2'}, state: 'open', }, { repository_url: 'https://api.github.com/repos/user/repo3', + author_association: 'CONTRIBUTOR', pull_request: {url: 'https://api.github.com/repos/user/repo3/pulls/1'}, state: 'closed', }, { repository_url: 'https://api.github.com/repos/user/repo3', + author_association: 'CONTRIBUTOR', pull_request: {url: 'https://api.github.com/repos/user/repo3/pulls/2'}, state: 'closed', },