@enface/sdk
Version:
Enface biometric services
2 lines • 318 kB
JavaScript
/*! For license information please see enface.node.js.LICENSE */
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Enface=t():e.Enface=t()}(this,(function(){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var a=t[i]={i:i,l:!1,exports:{}};return e[i].call(a.exports,a,a.exports,n),a.l=!0,a.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 a in e)n.d(i,a,function(t){return e[t]}.bind(null,a));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=53)}([function(e,t,n){"use strict";n.d(t,"a",(function(){return Q})),n.d(t,"b",(function(){return d})),n.d(t,"c",(function(){return E})),n.d(t,"d",(function(){return V})),n.d(t,"e",(function(){return U})),n.d(t,"f",(function(){return K})),n.d(t,"g",(function(){return R})),n.d(t,"h",(function(){return A})),n.d(t,"i",(function(){return y})),n.d(t,"j",(function(){return I})),n.d(t,"k",(function(){return j})),n.d(t,"l",(function(){return D})),n.d(t,"m",(function(){return _})),n.d(t,"n",(function(){return T})),n.d(t,"o",(function(){return N})),n.d(t,"p",(function(){return l})),n.d(t,"q",(function(){return W})),n.d(t,"r",(function(){return k})),n.d(t,"s",(function(){return w})),n.d(t,"t",(function(){return f})),n.d(t,"u",(function(){return h})),n.d(t,"v",(function(){return v})),n.d(t,"w",(function(){return b})),n.d(t,"x",(function(){return Y})),n.d(t,"y",(function(){return H})),n.d(t,"z",(function(){return X})),n.d(t,"A",(function(){return ee})),n.d(t,"B",(function(){return te})),n.d(t,"C",(function(){return B})),n.d(t,"D",(function(){return z})),n.d(t,"E",(function(){return m})),n.d(t,"F",(function(){return g})),n.d(t,"G",(function(){return u})),n.d(t,"H",(function(){return x})),n.d(t,"I",(function(){return J}));var i=n(6),a=n(2),o=n(1),r=n(32),s=n.n(r);n(26);function c(e,t,n,i){if(function(e){return"IntValue"===e.kind}(n)||function(e){return"FloatValue"===e.kind}(n))e[t.value]=Number(n.value);else if(function(e){return"BooleanValue"===e.kind}(n)||function(e){return"StringValue"===e.kind}(n))e[t.value]=n.value;else if(function(e){return"ObjectValue"===e.kind}(n)){var o={};n.fields.map((function(e){return c(o,e.name,e.value,i)})),e[t.value]=o}else if(function(e){return"Variable"===e.kind}(n)){var r=(i||{})[n.name.value];e[t.value]=r}else if(function(e){return"ListValue"===e.kind}(n))e[t.value]=n.values.map((function(e){var n={};return c(n,t,e,i),n[t.value]}));else if(function(e){return"EnumValue"===e.kind}(n))e[t.value]=n.value;else{if(!function(e){return"NullValue"===e.kind}(n))throw new a.a(17);e[t.value]=null}}function u(e,t){var n=null;e.directives&&(n={},e.directives.forEach((function(e){n[e.name.value]={},e.arguments&&e.arguments.forEach((function(i){var a=i.name,o=i.value;return c(n[e.name.value],a,o,t)}))})));var i=null;return e.arguments&&e.arguments.length&&(i={},e.arguments.forEach((function(e){var n=e.name,a=e.value;return c(i,n,a,t)}))),l(e.name.value,i,n)}var p=["connection","include","skip","client","rest","export"];function l(e,t,n){if(n&&n.connection&&n.connection.key){if(n.connection.filter&&n.connection.filter.length>0){var i=n.connection.filter?n.connection.filter:[];i.sort();var a=t,o={};return i.forEach((function(e){o[e]=a[e]})),n.connection.key+"("+JSON.stringify(o)+")"}return n.connection.key}var r=e;if(t){var c=s()(t);r+="("+c+")"}return n&&Object.keys(n).forEach((function(e){-1===p.indexOf(e)&&(n[e]&&Object.keys(n[e]).length?r+="@"+e+"("+JSON.stringify(n[e])+")":r+="@"+e)})),r}function d(e,t){if(e.arguments&&e.arguments.length){var n={};return e.arguments.forEach((function(e){var i=e.name,a=e.value;return c(n,i,a,t)})),n}return null}function m(e){return e.alias?e.alias.value:e.name.value}function f(e){return"Field"===e.kind}function v(e){return"InlineFragment"===e.kind}function h(e){return e&&"id"===e.type&&"boolean"==typeof e.generated}function x(e,t){return void 0===t&&(t=!1),Object(o.a)({type:"id",generated:t},"string"==typeof e?{id:e,typename:void 0}:e)}function b(e){return null!=e&&"object"==typeof e&&"json"===e.type}function y(e,t){if(e.directives&&e.directives.length){var n={};return e.directives.forEach((function(e){n[e.name.value]=d(e,t)})),n}return null}function g(e,t){return void 0===t&&(t={}),(n=e.directives,n?n.filter(O).map((function(e){var t=e.arguments;e.name.value,Object(a.b)(t&&1===t.length,4);var n=t[0];Object(a.b)(n.name&&"if"===n.name.value,5);var i=n.value;return Object(a.b)(i&&("Variable"===i.kind||"BooleanValue"===i.kind),6),{directive:e,ifArgument:n}})):[]).every((function(e){var n=e.directive,i=e.ifArgument,o=!1;return"Variable"===i.value.kind?(o=t[i.value.name.value],Object(a.b)(void 0!==o,3)):o=i.value.value,"skip"===n.name.value?!o:o}));var n}function w(e,t){return function(e){var t=[];return Object(i.b)(e,{Directive:function(e){t.push(e.name.value)}}),t}(t).some((function(t){return e.indexOf(t)>-1}))}function k(e){return e&&w(["client"],e)&&w(["export"],e)}function O(e){var t=e.name.value;return"skip"===t||"include"===t}function j(e,t){var n=t,i=[];return e.definitions.forEach((function(e){if("OperationDefinition"===e.kind)throw new a.a(1);"FragmentDefinition"===e.kind&&i.push(e)})),void 0===n&&(Object(a.b)(1===i.length,2),n=i[0].name.value),Object(o.a)({},e,{definitions:[{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:n}}]}}].concat(e.definitions)})}function E(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.forEach((function(t){null!=t&&Object.keys(t).forEach((function(n){e[n]=t[n]}))})),e}function S(e){Object(a.b)(e&&"Document"===e.kind,8);var t=e.definitions.filter((function(e){return"FragmentDefinition"!==e.kind})).map((function(e){if("OperationDefinition"!==e.kind)throw new a.a(9);return e}));return Object(a.b)(t.length<=1,10),e}function _(e){return S(e),e.definitions.filter((function(e){return"OperationDefinition"===e.kind}))[0]}function T(e){return e.definitions.filter((function(e){return"OperationDefinition"===e.kind&&e.name})).map((function(e){return e.name.value}))[0]||null}function I(e){return e.definitions.filter((function(e){return"FragmentDefinition"===e.kind}))}function N(e){var t=_(e);return Object(a.b)(t&&"query"===t.operation,12),t}function D(e){var t;S(e);for(var n=0,i=e.definitions;n<i.length;n++){var o=i[n];if("OperationDefinition"===o.kind){var r=o.operation;if("query"===r||"mutation"===r||"subscription"===r)return o}"FragmentDefinition"!==o.kind||t||(t=o)}if(t)return t;throw new a.a(16)}function R(e){void 0===e&&(e=[]);var t={};return e.forEach((function(e){t[e.name.value]=e})),t}function A(e){if(e&&e.variableDefinitions&&e.variableDefinitions.length){var t=e.variableDefinitions.filter((function(e){return e.defaultValue})).map((function(e){var t=e.variable,n=e.defaultValue,i={};return c(i,t.name,n),i}));return E.apply(void 0,[{}].concat(t))}return{}}function q(e,t,n){var i=0;return e.forEach((function(n,a){t.call(this,n,a,e)&&(e[i++]=n)}),n),e.length=i,e}var F={kind:"Field",name:{kind:"Name",value:"__typename"}};function L(e){return function e(t,n){return t.selectionSet.selections.every((function(t){return"FragmentSpread"===t.kind&&e(n[t.name.value],n)}))}(_(e)||function(e){Object(a.b)("Document"===e.kind,13),Object(a.b)(e.definitions.length<=1,14);var t=e.definitions[0];return Object(a.b)("FragmentDefinition"===t.kind,15),t}(e),R(I(e)))?null:e}function C(e){return function(t){return e.some((function(e){return e.name&&e.name===t.name.value||e.test&&e.test(t)}))}}function P(e,t){var n=Object.create(null),a=[],r=Object.create(null),s=[],c=L(Object(i.b)(t,{Variable:{enter:function(e,t,i){"VariableDefinition"!==i.kind&&(n[e.name.value]=!0)}},Field:{enter:function(t){if(e&&t.directives&&(e.some((function(e){return e.remove}))&&t.directives&&t.directives.some(C(e))))return t.arguments&&t.arguments.forEach((function(e){"Variable"===e.value.kind&&a.push({name:e.value.name.value})})),t.selectionSet&&function e(t){var n=[];t.selections.forEach((function(t){(f(t)||v(t))&&t.selectionSet?e(t.selectionSet).forEach((function(e){return n.push(e)})):"FragmentSpread"===t.kind&&n.push(t)}));return n}(t.selectionSet).forEach((function(e){s.push({name:e.name.value})})),null}},FragmentSpread:{enter:function(e){r[e.name.value]=!0}},Directive:{enter:function(t){if(C(e)(t))return null}}}));return c&&q(a,(function(e){return!n[e.name]})).length&&(c=function(e,t){var n=function(e){return function(t){return e.some((function(e){return t.value&&"Variable"===t.value.kind&&t.value.name&&(e.name===t.value.name.value||e.test&&e.test(t))}))}}(e);return L(Object(i.b)(t,{OperationDefinition:{enter:function(t){return Object(o.a)({},t,{variableDefinitions:t.variableDefinitions.filter((function(t){return!e.some((function(e){return e.name===t.variable.name.value}))}))})}},Field:{enter:function(t){if(e.some((function(e){return e.remove}))){var i=0;if(t.arguments.forEach((function(e){n(e)&&(i+=1)})),1===i)return null}}},Argument:{enter:function(e){if(n(e))return null}}}))}(a,c)),c&&q(s,(function(e){return!r[e.name]})).length&&(c=function(e,t){function n(t){if(e.some((function(e){return e.name===t.name.value})))return null}return L(Object(i.b)(t,{FragmentSpread:{enter:n},FragmentDefinition:{enter:n}}))}(s,c)),c}function Q(e){return Object(i.b)(S(e),{SelectionSet:{enter:function(e,t,n){if(!n||"OperationDefinition"!==n.kind){var i=e.selections;if(i)if(!i.some((function(e){return f(e)&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))}))){var a=n;if(!(f(a)&&a.directives&&a.directives.some((function(e){return"export"===e.name.value}))))return Object(o.a)({},e,{selections:i.concat([F])})}}}}})}var M={test:function(e){var t="connection"===e.name.value;return t&&(!e.arguments||e.arguments.some((function(e){return"key"===e.name.value}))),t}};function z(e){return P([M],S(e))}function V(e){return"query"===D(e).operation?e:Object(i.b)(e,{OperationDefinition:{enter:function(e){return Object(o.a)({},e,{operation:"query"})}}})}function B(e){S(e);var t=P([{test:function(e){return"client"===e.name.value},remove:!0}],e);return t&&(t=Object(i.b)(t,{FragmentDefinition:{enter:function(e){if(e.selectionSet&&e.selectionSet.selections.every((function(e){return f(e)&&"__typename"===e.name.value})))return null}}})),t}var U="function"==typeof WeakMap&&!("object"==typeof navigator&&"ReactNative"===navigator.product),$=Object.prototype.toString;function K(e){return function e(t,n){switch($.call(t)){case"[object Array]":if(n.has(t))return n.get(t);var i=t.slice(0);return n.set(t,i),i.forEach((function(t,a){i[a]=e(t,n)})),i;case"[object Object]":if(n.has(t))return n.get(t);var a=Object.create(Object.getPrototypeOf(t));return n.set(t,a),Object.keys(t).forEach((function(i){a[i]=e(t[i],n)})),a;default:return t}}(e,new Map)}function G(e){return("undefined"!=typeof process?"production":"development")===e}function Y(){return!0===G("production")}function H(){return!0===G("test")}function J(e){try{return e()}catch(e){console.error&&console.error(e)}}function W(e){return e.errors&&e.errors.length}function X(e){if((!0===G("development")||H())&&!("function"==typeof Symbol&&"string"==typeof Symbol("")))return function e(t){return Object.freeze(t),Object.getOwnPropertyNames(t).forEach((function(n){null===t[n]||"object"!=typeof t[n]&&"function"!=typeof t[n]||Object.isFrozen(t[n])||e(t[n])})),t}(e);return e}var Z=Object.prototype.hasOwnProperty;function ee(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return te(e)}function te(e){var t=e[0]||{},n=e.length;if(n>1){var i=[];t=ae(t,i);for(var a=1;a<n;++a)t=ie(t,e[a],i)}return t}function ne(e){return null!==e&&"object"==typeof e}function ie(e,t,n){return ne(t)&&ne(e)?(Object.isExtensible&&!Object.isExtensible(e)&&(e=ae(e,n)),Object.keys(t).forEach((function(i){var a=t[i];if(Z.call(e,i)){var o=e[i];a!==o&&(e[i]=ie(ae(o,n),a,n))}else e[i]=a})),e):t}function ae(e,t){return null!==e&&"object"==typeof e&&t.indexOf(e)<0&&(e=Array.isArray(e)?e.slice(0):Object(o.a)({__proto__:Object.getPrototypeOf(e)},e),t.push(e)),e}Object.create({})},function(e,t,n){"use strict";n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return r})),n.d(t,"d",(function(){return s}));var i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function a(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return(o=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)};function r(e,t,n,i){return new(n||(n=Promise))((function(a,o){function r(e){try{c(i.next(e))}catch(e){o(e)}}function s(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){e.done?a(e.value):new n((function(t){t(e.value)})).then(r,s)}c((i=i.apply(e,t||[])).next())}))}function s(e,t){var n,i,a,o,r={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(a=2&o[0]?i.return:o[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,o[1])).done)return a;switch(i=0,a&&(o=[2&o[0],a.value]),o[0]){case 0:case 1:a=o;break;case 4:return r.label++,{value:o[1],done:!1};case 5:r.label++,i=o[1],o=[0];continue;case 7:o=r.ops.pop(),r.trys.pop();continue;default:if(!(a=(a=r.trys).length>0&&a[a.length-1])&&(6===o[0]||2===o[0])){r=0;continue}if(3===o[0]&&(!a||o[1]>a[0]&&o[1]<a[3])){r.label=o[1];break}if(6===o[0]&&r.label<a[1]){r.label=a[1],a=o;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(o);break}a[2]&&r.ops.pop(),r.trys.pop();continue}o=t.call(e,r)}catch(e){o=[6,e],i=0}finally{n=a=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return c}));var i=n(1),a="Invariant Violation",o=Object.setPrototypeOf,r=void 0===o?function(e,t){return e.__proto__=t,e}:o,s=function(e){function t(n){void 0===n&&(n=a);var i=e.call(this,"number"==typeof n?a+": "+n+" (see https://github.com/apollographql/invariant-packages)":n)||this;return i.framesToPop=1,i.name=a,r(i,t.prototype),i}return Object(i.c)(t,e),t}(Error);function c(e,t){if(!e)throw new s(t)}function u(e){return function(){return console[e].apply(console,arguments)}}!function(e){e.warn=u("warn"),e.error=u("error")}(c||(c={}));var p={env:{}};if("object"==typeof process)p=process;else try{Function("stub","process = stub")(p)}catch(e){}},function(e,t,n){e.exports=n(35)},function(e,t,n){"use strict";var i=n(31),a=n.n(i).a;t.a=a},function(e,t){e.exports=require("stream")},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return r}));var i=n(13),a={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},o=Object.freeze({});function r(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a,r=void 0,u=Array.isArray(e),p=[e],l=-1,d=[],m=void 0,f=void 0,v=void 0,h=[],x=[],b=e;do{var y=++l===p.length,g=y&&0!==d.length;if(y){if(f=0===x.length?void 0:h[h.length-1],m=v,v=x.pop(),g){if(u)m=m.slice();else{for(var w={},k=0,O=Object.keys(m);k<O.length;k++){var j=O[k];w[j]=m[j]}m=w}for(var E=0,S=0;S<d.length;S++){var _=d[S][0],T=d[S][1];u&&(_-=E),u&&null===T?(m.splice(_,1),E++):m[_]=T}}l=r.index,p=r.keys,d=r.edits,u=r.inArray,r=r.prev}else{if(f=v?u?l:p[l]:void 0,null==(m=v?v[f]:b))continue;v&&h.push(f)}var I=void 0;if(!Array.isArray(m)){if(!s(m))throw new Error("Invalid AST Node: "+Object(i.a)(m));var N=c(t,m.kind,y);if(N){if((I=N.call(t,m,f,v,h,x))===o)break;if(!1===I){if(!y){h.pop();continue}}else if(void 0!==I&&(d.push([f,I]),!y)){if(!s(I)){h.pop();continue}m=I}}}void 0===I&&g&&d.push([f,m]),y?h.pop():(r={inArray:u,index:l,keys:p,edits:d,prev:r},p=(u=Array.isArray(m))?m:n[m.kind]||[],l=-1,d=[],v&&x.push(v),v=m)}while(void 0!==r);return 0!==d.length&&(b=d[d.length-1][1]),b}function s(e){return Boolean(e&&"string"==typeof e.kind)}function c(e,t,n){var i=e[t];if(i){if(!n&&"function"==typeof i)return i;var a=n?i.leave:i.enter;if("function"==typeof a)return a}else{var o=n?e.leave:e.enter;if(o){if("function"==typeof o)return o;var r=o[t];if("function"==typeof r)return r}}}},function(e,t){e.exports=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}},function(e,t,n){var i=n(54).parse;function a(e){return e.replace(/[\s,]+/g," ").trim()}var o={},r={};var s=!0;var c=!1;function u(e){var t=a(e);if(o[t])return o[t];var n=i(e,{experimentalFragmentVariables:c});if(!n||"Document"!==n.kind)throw new Error("Not a valid GraphQL document.");return n=function e(t,n){var i=Object.prototype.toString.call(t);if("[object Array]"===i)return t.map((function(t){return e(t,n)}));if("[object Object]"!==i)throw new Error("Unexpected input.");n&&t.loc&&delete t.loc,t.loc&&(delete t.loc.startToken,delete t.loc.endToken);var a,o,r,s=Object.keys(t);for(a in s)s.hasOwnProperty(a)&&(o=t[s[a]],"[object Object]"!==(r=Object.prototype.toString.call(o))&&"[object Array]"!==r||(t[s[a]]=e(o,!0)));return t}(n=function(e){for(var t,n={},i=[],o=0;o<e.definitions.length;o++){var c=e.definitions[o];if("FragmentDefinition"===c.kind){var u=c.name.value,p=a((t=c.loc).source.body.substring(t.start,t.end));r.hasOwnProperty(u)&&!r[u][p]?(s&&console.warn("Warning: fragment with name "+u+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"),r[u][p]=!0):r.hasOwnProperty(u)||(r[u]={},r[u][p]=!0),n[p]||(n[p]=!0,i.push(c))}else i.push(c)}return e.definitions=i,e}(n),!1),o[t]=n,n}function p(){for(var e=Array.prototype.slice.call(arguments),t=e[0],n="string"==typeof t?t:t[0],i=1;i<e.length;i++)e[i]&&e[i].kind&&"Document"===e[i].kind?n+=e[i].loc.source.body:n+=e[i],n+=t[i];return u(n)}p.default=p,p.resetCaches=function(){o={},r={}},p.disableFragmentWarnings=function(){s=!1},p.enableExperimentalFragmentVariables=function(){c=!0},p.disableExperimentalFragmentVariables=function(){c=!1},e.exports=p},function(e,t,n){"use strict";n.r(t),n.d(t,"ApolloLink",(function(){return y})),n.d(t,"concat",(function(){return b})),n.d(t,"createOperation",(function(){return d})),n.d(t,"empty",(function(){return v})),n.d(t,"execute",(function(){return g})),n.d(t,"from",(function(){return h})),n.d(t,"fromError",(function(){return l})),n.d(t,"fromPromise",(function(){return p})),n.d(t,"makePromise",(function(){return u})),n.d(t,"split",(function(){return x})),n.d(t,"toPromise",(function(){return c}));var i=n(4);n.d(t,"Observable",(function(){return i.a}));var a=n(2),o=n(1),r=n(0);n.d(t,"getOperationName",(function(){return r.n}));!function(e){function t(t,n){var i=e.call(this,t)||this;return i.link=n,i}Object(o.c)(t,e)}(Error);function s(e){return e.request.length<=1}function c(e){var t=!1;return new Promise((function(n,i){e.subscribe({next:function(e){t||(t=!0,n(e))},error:i})}))}var u=c;function p(e){return new i.a((function(t){e.then((function(e){t.next(e),t.complete()})).catch(t.error.bind(t))}))}function l(e){return new i.a((function(t){t.error(e)}))}function d(e,t){var n=Object(o.a)({},e);return Object.defineProperty(t,"setContext",{enumerable:!1,value:function(e){n="function"==typeof e?Object(o.a)({},n,e(n)):Object(o.a)({},n,e)}}),Object.defineProperty(t,"getContext",{enumerable:!1,value:function(){return Object(o.a)({},n)}}),Object.defineProperty(t,"toKey",{enumerable:!1,value:function(){return function(e){var t=e.query,n=e.variables,i=e.operationName;return JSON.stringify([i,t,n])}(t)}}),t}function m(e,t){return t?t(e):i.a.of()}function f(e){return"function"==typeof e?new y(e):e}function v(){return new y((function(){return i.a.of()}))}function h(e){return 0===e.length?v():e.map(f).reduce((function(e,t){return e.concat(t)}))}function x(e,t,n){var a=f(t),o=f(n||new y(m));return s(a)&&s(o)?new y((function(t){return e(t)?a.request(t)||i.a.of():o.request(t)||i.a.of()})):new y((function(t,n){return e(t)?a.request(t,n)||i.a.of():o.request(t,n)||i.a.of()}))}var b=function(e,t){var n=f(e);if(s(n))return n;var a=f(t);return s(a)?new y((function(e){return n.request(e,(function(e){return a.request(e)||i.a.of()}))||i.a.of()})):new y((function(e,t){return n.request(e,(function(e){return a.request(e,t)||i.a.of()}))||i.a.of()}))},y=function(){function e(e){e&&(this.request=e)}return e.prototype.split=function(t,n,i){return this.concat(x(t,n,i||new e(m)))},e.prototype.concat=function(e){return b(this,e)},e.prototype.request=function(e,t){throw new a.a(1)},e.empty=v,e.from=h,e.split=x,e.execute=g,e}();function g(e,t){return e.request(d(t.context,function(e){var t={variables:e.variables||{},extensions:e.extensions||{},operationName:e.operationName,query:e.query};return t.operationName||(t.operationName="string"!=typeof t.query?Object(r.n)(t.query):""),t}(function(e){for(var t=["query","operationName","variables","extensions","context"],n=0,i=Object.keys(e);n<i.length;n++){var o=i[n];if(t.indexOf(o)<0)throw new a.a(2)}return e}(t))))||i.a.of()}},function(e,t){e.exports=require("zlib")},function(e,t,n){"use strict";var i="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0;t.a=i},function(e,t){e.exports=require("url")},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var i=n(11);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=10,r=2;function s(e){return c(e,[])}function c(e,t){switch(a(e)){case"string":return JSON.stringify(e);case"function":return e.name?"[function ".concat(e.name,"]"):"[function]";case"object":return null===e?"null":function(e,t){if(-1!==t.indexOf(e))return"[Circular]";var n=[].concat(t,[e]),a=function(e){var t=e[String(i.a)];if("function"==typeof t)return t;if("function"==typeof e.inspect)return e.inspect}(e);if(void 0!==a){var s=a.call(e);if(s!==e)return"string"==typeof s?s:c(s,n)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>r)return"[Array]";for(var n=Math.min(o,e.length),i=e.length-n,a=[],s=0;s<n;++s)a.push(c(e[s],t));1===i?a.push("... 1 more item"):i>1&&a.push("... ".concat(i," more items"));return"["+a.join(", ")+"]"}(e,n);return function(e,t){var n=Object.keys(e);if(0===n.length)return"{}";if(t.length>r)return"["+function(e){var t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){var n=e.constructor.name;if("string"==typeof n&&""!==n)return n}return t}(e)+"]";return"{ "+n.map((function(n){return n+": "+c(e[n],t)})).join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}},function(e,t,n){"use strict";function i(e){var t=e.split(/\r\n|[\n\r]/g),n=function(e){for(var t=null,n=1;n<e.length;n++){var i=e[n],o=a(i);if(o!==i.length&&((null===t||o<t)&&0===(t=o)))break}return null===t?0:t}(t);if(0!==n)for(var i=1;i<t.length;i++)t[i]=t[i].slice(n);for(;t.length>0&&o(t[0]);)t.shift();for(;t.length>0&&o(t[t.length-1]);)t.pop();return t.join("\n")}function a(e){for(var t=0;t<e.length&&(" "===e[t]||"\t"===e[t]);)t++;return t}function o(e){return a(e)===e.length}function r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=-1===e.indexOf("\n"),a=" "===e[0]||"\t"===e[0],o='"'===e[e.length-1],r=!i||o||n,s="";return!r||i&&a||(s+="\n"+t),s+=t?e.replace(/\n/g,"\n"+t):e,r&&(s+="\n"),'"""'+s.replace(/"""/g,'\\"""')+'"""'}n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return r}))},function(e,t){e.exports=require("http")},function(e,t){e.exports=require("util")},function(e,t){e.exports=require("https")},function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(t){return"function"==typeof Symbol&&"symbol"===n(Symbol.iterator)?e.exports=i=function(e){return n(e)}:e.exports=i=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":n(e)},i(t)}e.exports=i},function(e,t){e.exports=require("path")},function(e,t,n){var i=n(21),a=n(22);e.exports=function(e,t,n,o){var r=n.keyedList?n.keyedList[n.index]:n.index;n.jobs[r]=function(e,t,n,a){var o;o=2==e.length?e(n,i(a)):e(n,t,i(a));return o}(t,r,e[r],(function(e,t){r in n.jobs&&(delete n.jobs[r],e?a(n):n.results[r]=t,o(e,n.results))}))}},function(e,t,n){var i=n(47);e.exports=function(e){var t=!1;return i((function(){t=!0})),function(n,a){t?e(n,a):i((function(){e(n,a)}))}}},function(e,t){function n(e){"function"==typeof this.jobs[e]&&this.jobs[e]()}e.exports=function(e){Object.keys(e.jobs).forEach(n.bind(e)),e.jobs={}}},function(e,t){e.exports=function(e,t){var n=!Array.isArray(e),i={index:0,keyedList:n||t?Object.keys(e):null,jobs:{},results:n?{}:[],size:n?Object.keys(e).length:e.length};t&&i.keyedList.sort(n?t:function(n,i){return t(e[n],e[i])});return i}},function(e,t,n){var i=n(22),a=n(21);e.exports=function(e){if(!Object.keys(this.jobs).length)return;this.index=this.size,i(this),a(e)(null,this.results)}},function(e,t,n){var i=n(20),a=n(23),o=n(24);function r(e,t){return e<t?-1:e>t?1:0}e.exports=function(e,t,n,r){var s=a(e,n);return i(e,t,s,(function n(a,o){a?r(a,o):(s.index++,s.index<(s.keyedList||e).length?i(e,t,s,n):r(null,s.results))})),o.bind(s,r)},e.exports.ascending=r,e.exports.descending=function(e,t){return-1*r(e,t)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var i=Object.prototype,a=i.toString,o=i.hasOwnProperty,r=new Map;function s(e,t){try{return function e(t,n){if(t===n)return!0;var i=a.call(t);var r=a.call(n);if(i!==r)return!1;switch(i){case"[object Array]":if(t.length!==n.length)return!1;case"[object Object]":if(c(t,n))return!0;var s=Object.keys(t),u=Object.keys(n),p=s.length;if(p!==u.length)return!1;for(var l=0;l<p;++l)if(!o.call(n,s[l]))return!1;for(l=0;l<p;++l){var d=s[l];if(!e(t[d],n[d]))return!1}return!0;case"[object Error]":return t.name===n.name&&t.message===n.message;case"[object Number]":if(t!=t)return n!=n;case"[object Boolean]":case"[object Date]":return+t==+n;case"[object RegExp]":case"[object String]":return t==""+n;case"[object Map]":case"[object Set]":if(t.size!==n.size)return!1;if(c(t,n))return!0;for(var m=t.entries(),f="[object Map]"===i;;){var v=m.next();if(v.done)break;var h=v.value,x=h[0],b=h[1];if(!n.has(x))return!1;if(f&&!e(b,n.get(x)))return!1}return!0}return!1}(e,t)}finally{r.clear()}}function c(e,t){var n=r.get(e);if(n){if(n.has(t))return!0}else r.set(e,n=new Set);return n.add(t),!1}},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}e.exports=function(e,t,i){return t&&n(e.prototype,t),i&&n(e,i),e}},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){var i=n(39),a=n(16),o=n(19),r=n(15),s=n(17),c=n(12).parse,u=n(41),p=n(42),l=n(45),d=n(49);function m(e){if(!(this instanceof m))return new m;for(var t in this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],i.call(this),e=e||{})this[t]=e[t]}e.exports=m,a.inherits(m,i),m.LINE_BREAK="\r\n",m.DEFAULT_CONTENT_TYPE="application/octet-stream",m.prototype.append=function(e,t,n){"string"==typeof(n=n||{})&&(n={filename:n});var o=i.prototype.append.bind(this);if("number"==typeof t&&(t=""+t),a.isArray(t))this._error(new Error("Arrays are not supported."));else{var r=this._multiPartHeader(e,t,n),s=this._multiPartFooter();o(r),o(t),o(s),this._trackLength(r,t,n)}},m.prototype._trackLength=function(e,t,n){var i=0;null!=n.knownLength?i+=+n.knownLength:Buffer.isBuffer(t)?i=t.length:"string"==typeof t&&(i=Buffer.byteLength(t)),this._valueLength+=i,this._overheadLength+=Buffer.byteLength(e)+m.LINE_BREAK.length,t&&(t.path||t.readable&&t.hasOwnProperty("httpVersion"))&&(n.knownLength||this._valuesToMeasure.push(t))},m.prototype._lengthRetriever=function(e,t){e.hasOwnProperty("fd")?null!=e.end&&e.end!=1/0&&null!=e.start?t(null,e.end+1-(e.start?e.start:0)):u.stat(e.path,(function(n,i){var a;n?t(n):(a=i.size-(e.start?e.start:0),t(null,a))})):e.hasOwnProperty("httpVersion")?t(null,+e.headers["content-length"]):e.hasOwnProperty("httpModule")?(e.on("response",(function(n){e.pause(),t(null,+n.headers["content-length"])})),e.resume()):t("Unknown stream")},m.prototype._multiPartHeader=function(e,t,n){if("string"==typeof n.header)return n.header;var i,a=this._getContentDisposition(t,n),o=this._getContentType(t,n),r="",s={"Content-Disposition":["form-data",'name="'+e+'"'].concat(a||[]),"Content-Type":[].concat(o||[])};for(var c in"object"==typeof n.header&&d(s,n.header),s)s.hasOwnProperty(c)&&null!=(i=s[c])&&(Array.isArray(i)||(i=[i]),i.length&&(r+=c+": "+i.join("; ")+m.LINE_BREAK));return"--"+this.getBoundary()+m.LINE_BREAK+r+m.LINE_BREAK},m.prototype._getContentDisposition=function(e,t){var n,i;return"string"==typeof t.filepath?n=o.normalize(t.filepath).replace(/\\/g,"/"):t.filename||e.name||e.path?n=o.basename(t.filename||e.name||e.path):e.readable&&e.hasOwnProperty("httpVersion")&&(n=o.basename(e.client._httpMessage.path)),n&&(i='filename="'+n+'"'),i},m.prototype._getContentType=function(e,t){var n=t.contentType;return!n&&e.name&&(n=p.lookup(e.name)),!n&&e.path&&(n=p.lookup(e.path)),!n&&e.readable&&e.hasOwnProperty("httpVersion")&&(n=e.headers["content-type"]),n||!t.filepath&&!t.filename||(n=p.lookup(t.filepath||t.filename)),n||"object"!=typeof e||(n=m.DEFAULT_CONTENT_TYPE),n},m.prototype._multiPartFooter=function(){return function(e){var t=m.LINE_BREAK;0===this._streams.length&&(t+=this._lastBoundary()),e(t)}.bind(this)},m.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+m.LINE_BREAK},m.prototype.getHeaders=function(e){var t,n={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(t in e)e.hasOwnProperty(t)&&(n[t.toLowerCase()]=e[t]);return n},m.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary},m.prototype._generateBoundary=function(){for(var e="--------------------------",t=0;t<24;t++)e+=Math.floor(10*Math.random()).toString(16);this._boundary=e},m.prototype.getLengthSync=function(){var e=this._overheadLength+this._valueLength;return this._streams.length&&(e+=this._lastBoundary().length),this.hasKnownLength()||this._error(new Error("Cannot calculate proper length in synchronous way.")),e},m.prototype.hasKnownLength=function(){var e=!0;return this._valuesToMeasure.length&&(e=!1),e},m.prototype.getLength=function(e){var t=this._overheadLength+this._valueLength;this._streams.length&&(t+=this._lastBoundary().length),this._valuesToMeasure.length?l.parallel(this._valuesToMeasure,this._lengthRetriever,(function(n,i){n?e(n):(i.forEach((function(e){t+=e})),e(null,t))})):process.nextTick(e.bind(this,null,t))},m.prototype.submit=function(e,t){var n,i,a={method:"post"};return"string"==typeof e?(e=c(e),i=d({port:e.port,path:e.pathname,host:e.hostname,protocol:e.protocol},a)):(i=d(e,a)).port||(i.port="https:"==i.protocol?443:80),i.headers=this.getHeaders(e.headers),n="https:"==i.protocol?s.request(i):r.request(i),this.getLength(function(e,i){e?this._error(e):(n.setHeader("Content-Length",i),this.pipe(n),t&&(n.on("error",t),n.on("response",t.bind(this,null))))}.bind(this)),n},m.prototype._error=function(e){this.error||(this.error=e,this.pause(),this.emit("error",e))},m.prototype.toString=function(){return"[object FormData]"}},function(e,t,n){e.exports=n(50).Observable},function(e,t,n){"use strict";e.exports=function(e,t){t||(t={}),"function"==typeof t&&(t={cmp:t});var n,i="boolean"==typeof t.cycles&&t.cycles,a=t.cmp&&(n=t.cmp,function(e){return function(t,i){var a={key:t,value:e[t]},o={key:i,value:e[i]};return n(a,o)}}),o=[];return function e(t){if(t&&t.toJSON&&"function"==typeof t.toJSON&&(t=t.toJSON()),void 0!==t){if("number"==typeof t)return isFinite(t)?""+t:"null";if("object"!=typeof t)return JSON.stringify(t);var n,r;if(Array.isArray(t)){for(r="[",n=0;n<t.length;n++)n&&(r+=","),r+=e(t[n])||"null";return r+"]"}if(null===t)return"null";if(-1!==o.indexOf(t)){if(i)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var s=o.push(t)-1,c=Object.keys(t).sort(a&&a(t));for(r="",n=0;n<c.length;n++){var u=c[n],p=e(t[u]);p&&(r&&(r+=","),r+=JSON.stringify(u)+":"+p)}return o.splice(s,1),"{"+r+"}"}}(e)}},function(e,t,n){"use strict";(function(e){var i,a=n(34);i="undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:e;var o=Object(a.a)(i);t.a=o}).call(this,n(52)(e))},function(e,t,n){"use strict";function i(e){var t,n=e.Symbol;return"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}n.d(t,"a",(function(){return i}))},function(e,t,n){var i=function(e){"use strict";var t,n=Object.prototype,i=n.hasOwnProperty,a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",r=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function c(e,t,n,i){var a=t&&t.prototype instanceof v?t:v,o=Object.create(a.prototype),r=new _(i||[]);return o._invoke=function(e,t,n){var i=p;return function(a,o){if(i===d)throw new Error("Generator is already running");if(i===m){if("throw"===a)throw o;return I()}for(n.method=a,n.arg=o;;){var r=n.delegate;if(r){var s=j(r,n);if(s){if(s===f)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===p)throw i=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=d;var c=u(e,t,n);if("normal"===c.type){if(i=n.done?m:l,c.arg===f)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=m,n.method="throw",n.arg=c.arg)}}}(e,n,r),o}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var p="suspendedStart",l="suspendedYield",d="executing",m="completed",f={};function v(){}function h(){}function x(){}var b={};b[o]=function(){return this};var y=Object.getPrototypeOf,g=y&&y(y(T([])));g&&g!==n&&i.call(g,o)&&(b=g);var w=x.prototype=v.prototype=Object.create(b);function k(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function O(e){var t;this._invoke=function(n,a){function o(){return new Promise((function(t,o){!function t(n,a,o,r){var s=u(e[n],e,a);if("throw"!==s.type){var c=s.arg,p=c.value;return p&&"object"==typeof p&&i.call(p,"__await")?Promise.resolve(p.__await).then((function(e){t("next",e,o,r)}),(function(e){t("throw",e,o,r)})):Promise.resolve(p).then((function(e){c.value=e,o(c)}),(function(e){return t("throw",e,o,r)}))}r(s.arg)}(n,a,t,o)}))}return t=t?t.then(o,o):o()}}function j(e,n){var i=e.iterator[n.method];if(i===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,j(e,n),"throw"===n.method))return f;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var a=u(i,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,f;var o=a.arg;return o?o.done?(n[e.resultName]=o.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,f):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,f)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function _(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function T(e){if(e){var n=e[o];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,r=function n(){for(;++a<e.length;)if(i.call(e,a))return n.value=e[a],n.done=!1,n;return n.value=t,n.done=!0,n};return r.next=r}}return{next:I}}function I(){return{value:t,done:!0}}return h.prototype=w.constructor=x,x.constructor=h,x[s]=h.displayName="GeneratorFunction",e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,x):(e.__proto__=x,s in e||(e[s]="GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},k(O.prototype),O.prototype[r]=function(){return this},e.AsyncIterator=O,e.async=function(t,n,i,a){var o=new O(c(t,n,i,a));return e.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},k(w),w[s]="Generator",w[o]=function(){return this},w.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var i=t.pop();if(i in e)return n.value=i,n.done=!1,n}return n.done=!0,n}},e.values=T,_.prototype={constructor:_,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(S),!e)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function a(i,a){return s.type="throw",s.arg=e,n.next=i,a&&(n.method="next",n.arg=t),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var r=this.tryEntries[o],s=r.completion;if("root"===r.tryLoc)return a("end");if(r.tryLoc<=this.prev){var c=i.call(r,"catchLoc"),u=i.call(r,"finallyLoc");if(c&&u){if(this.prev<r.catchLoc)return a(r.catchLoc,!0);if(this.prev<r.finallyLoc)return a(r.finallyLoc)}else if(c){if(this.prev<r.catchLoc)return a(r.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<r.finallyLoc)return a(r.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&i.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var r=o?o.completion:{};return r.type=e,r.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(r)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var a=i.arg;S(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,i){return this.delegate={iterator:T(e),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=t),f}},e}(e.exports);try{regeneratorRuntime=i}catch(e){Function("r","regeneratorRuntime = r")(i)}},function(e,t,n){var i=n(37),a=i.fetch.bind({});a.polyfill=!0,global.fetch||(global.fetch=a,global.Response=i.Response,global.Headers=i.Headers,global.Request=i.Request)},function(e,t,n){var i=n(38),a=i.default||i,o=function(e,t){return/^\/\//.test(e)&&(e="https:"+e),a.call(this,e,t)};e.exports=t=o,t.fetch=o,t.Headers=i.Headers,t.Request=i.Request,t.Response=i.Response,t.default=o},function(e,t,n){"use strict";n.r(t),n.d(t,"Headers",(function(){return I})),n.d(t,"Request",(function(){return B})),n.d(t,"Response",(function(){return C})),n.d(t,"FetchError",(function(){return d}));var i=n(5),a=n(15),o=n(12),r=n(17),s=n(10);const c=i.Readable,u=Symbol("buffer"),p=Symbol("type");class l{constructor(){this[p]="";const e=arguments[0],t=arguments[1],n=[];let i=0;if(e){const t=e,a=Number(t.length);for(let e=0;e<a;e++){const a=t[e];let o;i+=(o=a instanceof Buffer?a:ArrayBuffer.isView(a)?Buffer.from(a.buffer,a.byteOffset,a.byteLength):a instanceof ArrayBuffer?Buffer.from(a):a instanceof l?a[u]:Buffer.from("string"==typeof a?a:String(a))).length,n.push(o)}}this[u]=Buffer.concat(n);let a=t&&void 0!==t.type&&String(t.type).toLowerCase();a&&!/[^\u0020-\u007E]/.test(a)&&(this[p]=a)}get size(){return this[u].length}get type(){return this[p]}text(){return Promise.resolve(this[u].toString())}arrayBuffer(){const e=this[u],t=e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength);return Promise.resolve(t)}stream(){const e=new c;return e._read=function(){},e.push(this[u]),e.push(null),e}toString(){return"[object Blob]"}slice(){const e=this.size,t=arguments[0],n=arguments[1];let i,a;i=void 0===t?0:t<0?Math.max(e+t,0):Math.min(t,e),a=void 0===n?e:n<0?Math.max(e+n,0):Math.min(n,e);const o=Math.max(a-i,0),r=this[u].slice(i,i+o),s=new l([],{type:arguments[2]});return s[u]=r,s}}function d(e,t,n){Error.call(this,e),this.message=e,this.type=t,n&&(this.code=this.errno=n.code),Error.captureStackTrace(this,this.constructor)}let m;Object.defineProperties(l.prototype,{size:{enumerable:!0},type:{enumerable:!0},slice:{enumerable:!0}}),Object.defineProperty(l.prototype,Symbol.toStringTag,{value:"Blob",writable:!1,enumerable:!1,configurable:!0}),d.prototype=Object.create(Error.prototype),d.prototype.constructor=d,d.prototype.name="FetchError";try{m=require("encoding").convert}catch(e){}const f=Symbol("Body internals"),v=i.PassThrough;function h(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=n.size;let o=void 0===a?0:a;var r=n.timeout;let s=void 0===r?0:r;null==e?e=null:b(e)?e=Buffer.from(e.toString()):y(e)||Buffer.isBuffer(e)||("[object ArrayBuffer]"===Object.prototype.toString.call(e)?e=Buffer.from(e):ArrayBuffer.isView(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):e instanceof i||(e=Buffer.from(String(e)))),this[f]={body:e,disturbed:!1,error:null},this.size=o,this.timeout=s,e instanceof i&&e.on("error",(function(e){const n="AbortError"===e.name?e:new d(`Invalid response body while trying to fetch ${t.url}: ${e.message}`,"system",e);t[f].error=n}))}function x(){var e=this;if(this[f].disturbed)return h.Promise.reject(new TypeError(`body used already for: ${this.url}`));if(this[f].disturbed=!0,this[f].error)return h.Promise.reject(this[f].error);let t=this.body;if(null===t)return h.Promise.resolve(Buffer.alloc(0));if(y(t)&&(t=t.stream()),Buffer.isBuffer(t))return h.Promise.resolve(t);if(!(t instanceof i))return h.Promise.resolve(Buffer.alloc(0));let n=[],a=0,o=!1;return new h.Promise((function(i,r){let s;e.timeout&&(s=setTimeout((function(){o=!0,r(new d(`Response timeout while trying to fetch ${e.url} (over ${e.timeout}ms)`,"body-timeout"))}),e.timeout)),t.on("error",(function(t){"AbortError"===t.name?(o=!0,r(t)):r(new d(`Invalid response body while trying to fetch ${e.url}: ${t.message}`,"system",t))})),t.on("data",(function(t){if(!o&&null!==t){if(e.size&&a+t.length>e.size)return o=!0,void r(new d(`content size at ${e.url} over limit: ${e.size}`,"max-size"));a+=t.length,n.push(t)}})),t.on("end",(function(){if(!o){clearTimeout(s);try{i(Buffer.concat(n,a))}catch(t){r(new d(`Could not create Buffer from response body for ${e.url}: ${t.message}`,"system",t))}}}))}))}function b(e){return"object"==typeof e&&"function"==typeof e.append&&"function"==typeof e.delete&&"function"==typeof e.get&&"function"==typeof e.getAll&&"function"==typeof e.has&&"function"==typeof e.set&&("URLSearchParams"===e.constructor.name||"[object URLSearchParams]"===Object.prototype.toString.call(e)||"function"==typeof e.sort)}function y(e){return"object"==typeof e&&"function"==typeof e.arrayBuffer&&"string"==typeof e.type&&"function"==typeof e.stream&&"function"==typeof e.constructor&&"string"==typeof e.constructor.name&&/^(Blob|File)$/.test(e.constructor.name)&&/^(Blob|File)$/.test(e[Symbol.toStringTag])}function g(e){let t,n,a=e.body;if(e.bodyUsed)throw new Error("cannot clone body after it is used");return a instanceof i&&"function"!=typeof a.getBoundary&&(t=new v,n=new v,a.pipe(t),a.pipe(n),e[f].body=t,a=n),a}function w(e){return null===e?null:"string"==typeof e?"text/plain;charset=UTF-8":b(e)?"application/x-www-form-urlencoded;charset=UTF-8":y(e)?e.type||null:Buffer.isBuffer(e)?null:"[object ArrayBuffer]"===Object.prototype.toString.call(e)?null:ArrayBuffer.isView(e)?null:"function"==typeof e.getBoundary?`multipart/form-data;boundary=${e.getBoundary()}`:e instanceof i?null:"text/plain;charset=UTF-8"}function k(e){const t=e.body;return null===t?0:y(t)?t.size:Buffer.isBuffer(t)?t.length:t&&"function"==typeof t.getLengthSync&&(t._lengthRetrievers&&0==t._lengthRetrievers.length||t.hasKnownLength&&t.hasKnownLength())?t.getLengthSync():null}h.prototype={get body(){return this[f].body},get bodyUsed(){return this[f].disturbed},arrayBuffer(){return x.call(this).then((function(e){return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}))},blob(){let e=this.headers&&this.headers.get("content-type")||"";return x.call(this).then((function(t){return Object.assign(new l([],{type:e.toLowerCase()}),{[u]:t})}))},json(){var e=this;return x.call(this).then((function(t){try{return JSON.parse(t.toString())}catch(t){return h.Promise.reject(new d(`invalid json response body at ${e.url} reason: ${t.message}`,"invalid-json"))}}))},text(){return x.call(this).then((function(e){return e.toString()}))},buffer(){return x.call(this)},textConverted(){var e=this;return x.call(this).then((function(t){return function(e,t){if("function"!=typeof m)throw new Error("The package `encoding` must be installed to use the textConverted() function");const n=t.get("content-type");let i,a,o="utf-8";n&&(i=/charset=([^;]*)/i.exec(n));a=e.slice(0,1024).toString(),!i&&a&&(i=/<meta.+?charset=(['"])(.+?)\1/i.exec(a));!i&&a&&(i=/<meta[\s]+?http-equiv=(['"])content-type\1[\s]+?content=(['"])(.+?)\2/i.exec(a))&&(i=/charset=(.*)/i.exec(i.pop()));!i&&a&&(i=/<\?xml.+?encoding=(['"])(.+?)\1/i.exec(a));i&&("gb2312"!==(o=i.pop())&&"gbk"!==o||(o="gb18030"));return m(e,"UTF-8",o).toString()}(t,e.headers)}))}},Object.defineProperties(h.prototype,{body:{enumerable:!0},bodyUsed:{enumerable:!0},arrayBuffer:{enumerable:!0},blob:{enumerable:!0},json:{enumerable:!0},text:{enumerable:!0}}),h.mixIn=function(e){for(const t of Object.getOwnPropertyNames(h.prototype))if(!(t in e)){const n=Object.getOwnPropertyDescriptor(h.prototype,t);Object.defineProperty(e,t,n)}},h.Promise=global.Promise;const O=/[^\^_`a-zA-Z\-0-9!#$%&'*+.|~]/,j=/[^\t\x20-\x7e\x80-\xff]/;function E(e){if(e=`${e}`,O.test(e)||""===e)throw new TypeError(`${e} is not a legal HTTP header name`)}function S(e){if(e=`${e}`,j.test(e))throw new TypeError(`${e} is not a legal HTTP header value`)}function _(e,t){t=t.toLowerCase();for(const n in e)if(n.toLowerCase()===t)return n}const T=Symbol("map");class I{constructor(){let e