diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c3cc4c7e..0368e7f7 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -94,6 +94,6 @@ jobs: - name: Generate types run: npm run generate:type - name: Build bundle.js - run: npm run dist + run: npm run build - name: Check differences run: git diff --exit-code . diff --git a/Sources/Assets/bundle.js b/Sources/Assets/bundle.js index abe6e61d..4d0ba1a3 100644 --- a/Sources/Assets/bundle.js +++ b/Sources/Assets/bundle.js @@ -13,15 +13,15 @@ MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ -var r=function(e,t){return(r=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 i(e,t){function n(){this.constructor=e}r(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,r=arguments.length;n2&&void 0!==arguments[2]?arguments[2]:a,r=void 0,u=Array.isArray(e),l=[e],f=-1,p=[],d=void 0,h=void 0,v=void 0,y=[],T=[],m=e;do{var E=++f===l.length,b=E&&0!==p.length;if(E){if(h=0===T.length?void 0:y[y.length-1],d=v,v=T.pop(),b){if(u)d=d.slice();else{for(var O={},k=0,g=Object.keys(d);k1)for(var n=1;n2)return"[Array]";for(var n=Math.min(10,e.length),r=e.length-n,i=[],o=0;o1&&i.push("... ".concat(r," more items"));return"["+i.join(", ")+"]"}(e,n);return function(e,t){var n=Object.keys(e);if(0===n.length)return"{}";if(t.length>2)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+": "+a(e[n],t)})).join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0;t.default=r},function(e,t,n){"use strict";function r(e){for(var t=null,n=1;n0&&o(t[0]);)t.shift();for(;t.length>0&&o(t[t.length-1]);)t.pop();return t.join("\n")},t.getBlockStringIndentation=r,t.printBlockString=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=-1===e.indexOf("\n"),i=" "===e[0]||"\t"===e[0],o='"'===e[e.length-1],a="\\"===e[e.length-1],c=!r||o||a||n,s="";!c||r&&i||(s+="\n"+t);s+=t?e.replace(/\n/g,"\n"+t):e,c&&(s+="\n");return'"""'+s.replace(/"""/g,'\\"""')+'"""'}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(!Boolean(e))throw new Error(t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.syntaxError=function(e,t,n){return new r.GraphQLError("Syntax Error: ".concat(n),void 0,e,[t])};var r=n(29)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SYMBOL_TO_STRING_TAG=t.SYMBOL_ASYNC_ITERATOR=t.SYMBOL_ITERATOR=void 0;var r="function"==typeof Symbol?Symbol.iterator:"@@iterator";t.SYMBOL_ITERATOR=r;var i="function"==typeof Symbol?Symbol.asyncIterator:"@@asyncIterator";t.SYMBOL_ASYNC_ITERATOR=i;var o="function"==typeof Symbol?Symbol.toStringTag:"@@toStringTag";t.SYMBOL_TO_STRING_TAG=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLocation=function(e,t){var n,r=/\r\n|[\n\r]/g,i=1,o=t+1;for(;(n=r.exec(e.body))&&n.index",EOF:"",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"});t.TokenKind=r},function(e,t,n){"use strict";(function(t){var r=n(22); +var r=function(e,t){return(r=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 i(e,t){function n(){this.constructor=e}r(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,r=arguments.length;n2&&void 0!==arguments[2]?arguments[2]:a,r=void 0,u=Array.isArray(e),l=[e],f=-1,p=[],d=void 0,h=void 0,v=void 0,y=[],T=[],m=e;do{var E=++f===l.length,b=E&&0!==p.length;if(E){if(h=0===T.length?void 0:y[y.length-1],d=v,v=T.pop(),b){if(u)d=d.slice();else{for(var O={},k=0,g=Object.keys(d);k1)for(var n=1;n2)return"[Array]";for(var n=Math.min(10,e.length),r=e.length-n,i=[],o=0;o1&&i.push("... ".concat(r," more items"));return"["+i.join(", ")+"]"}(e,n);return function(e,t){var n=Object.keys(e);if(0===n.length)return"{}";if(t.length>2)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+": "+a(e[n],t)})).join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0;t.default=r},function(e,t,n){"use strict";function r(e){for(var t=null,n=1;n0&&o(t[0]);)t.shift();for(;t.length>0&&o(t[t.length-1]);)t.pop();return t.join("\n")},t.getBlockStringIndentation=r,t.printBlockString=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=-1===e.indexOf("\n"),i=" "===e[0]||"\t"===e[0],o='"'===e[e.length-1],a="\\"===e[e.length-1],c=!r||o||a||n,s="";!c||r&&i||(s+="\n"+t);s+=t?e.replace(/\n/g,"\n"+t):e,c&&(s+="\n");return'"""'+s.replace(/"""/g,'\\"""')+'"""'}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(!Boolean(e))throw new Error(t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.syntaxError=function(e,t,n){return new r.GraphQLError("Syntax Error: ".concat(n),void 0,e,[t])};var r=n(29)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SYMBOL_TO_STRING_TAG=t.SYMBOL_ASYNC_ITERATOR=t.SYMBOL_ITERATOR=void 0;var r="function"==typeof Symbol?Symbol.iterator:"@@iterator";t.SYMBOL_ITERATOR=r;var i="function"==typeof Symbol?Symbol.asyncIterator:"@@asyncIterator";t.SYMBOL_ASYNC_ITERATOR=i;var o="function"==typeof Symbol?Symbol.toStringTag:"@@toStringTag";t.SYMBOL_TO_STRING_TAG=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLocation=function(e,t){var n,r=/\r\n|[\n\r]/g,i=1,o=t+1;for(;(n=r.exec(e.body))&&n.index",EOF:"",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"});t.TokenKind=r},function(e,t,n){"use strict";(function(t){var r=n(22); /*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT - */function i(e,t){if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i=0;u--)if(l[u]!==f[u])return!1;for(u=l.length-1;u>=0;u--)if(c=l[u],!E(e[c],t[c],n,r))return!1;return!0}(e,t,n,r))}return n?e===t:e==t}function b(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function O(e,t){if(!e||!t)return!1;if("[object RegExp]"==Object.prototype.toString.call(t))return t.test(e);try{if(e instanceof t)return!0}catch(e){}return!Error.isPrototypeOf(t)&&!0===t.call({},e)}function k(e,t,n,r){var i;if("function"!=typeof t)throw new TypeError('"block" argument must be a function');"string"==typeof n&&(r=n,n=null),i=function(e){var t;try{e()}catch(e){t=e}return t}(t),r=(n&&n.name?" ("+n.name+").":".")+(r?" "+r:"."),e&&!i&&T(i,n,"Missing expected exception"+r);var o="string"==typeof r,c=!e&&i&&!n;if((!e&&a.isError(i)&&o&&O(i,n)||c)&&T(i,n,"Got unwanted exception"+r),e&&i&&n&&!O(i,n)||!e&&i)throw i}p.AssertionError=function(e){var t;this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=v(y((t=this).actual),128)+" "+t.operator+" "+v(y(t.expected),128),this.generatedMessage=!0);var n=e.stackStartFunction||T;if(Error.captureStackTrace)Error.captureStackTrace(this,n);else{var r=new Error;if(r.stack){var i=r.stack,o=h(n),a=i.indexOf("\n"+o);if(a>=0){var c=i.indexOf("\n",a+1);i=i.substring(c+1)}this.stack=i}}},a.inherits(p.AssertionError,Error),p.fail=T,p.ok=m,p.equal=function(e,t,n){e!=t&&T(e,t,n,"==",p.equal)},p.notEqual=function(e,t,n){e==t&&T(e,t,n,"!=",p.notEqual)},p.deepEqual=function(e,t,n){E(e,t,!1)||T(e,t,n,"deepEqual",p.deepEqual)},p.deepStrictEqual=function(e,t,n){E(e,t,!0)||T(e,t,n,"deepStrictEqual",p.deepStrictEqual)},p.notDeepEqual=function(e,t,n){E(e,t,!1)&&T(e,t,n,"notDeepEqual",p.notDeepEqual)},p.notDeepStrictEqual=function e(t,n,r){E(t,n,!0)&&T(t,n,r,"notDeepStrictEqual",e)},p.strictEqual=function(e,t,n){e!==t&&T(e,t,n,"===",p.strictEqual)},p.notStrictEqual=function(e,t,n){e===t&&T(e,t,n,"!==",p.notStrictEqual)},p.throws=function(e,t,n){k(!0,e,t,n)},p.doesNotThrow=function(e,t,n){k(!1,e,t,n)},p.ifError=function(e){if(e)throw e},p.strict=r((function e(t,n){t||T(t,!0,n,"==",e)}),p,{equal:p.strictEqual,deepEqual:p.deepStrictEqual,notEqual:p.notStrictEqual,notDeepEqual:p.notDeepStrictEqual}),p.strict.strict=p.strict;var g=Object.keys||function(e){var t=[];for(var n in e)c.call(e,n)&&t.push(n);return t}}).call(this,n(21))},function(e,t,n){e.exports=n(28).Observable},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.print=function(e){return(0,r.visit)(e,{leave:o})};var r=n(2),i=n(12);var o={Name:function(e){return e.value},Variable:function(e){return"$"+e.name},Document:function(e){return c(e.definitions,"\n\n")+"\n"},OperationDefinition:function(e){var t=e.operation,n=e.name,r=u("(",c(e.variableDefinitions,", "),")"),i=c(e.directives," "),o=e.selectionSet;return n||i||r||"query"!==t?c([t,c([n,r]),i,o]," "):o},VariableDefinition:function(e){var t=e.variable,n=e.type,r=e.defaultValue,i=e.directives;return t+": "+n+u(" = ",r)+u(" ",c(i," "))},SelectionSet:function(e){return s(e.selections)},Field:function(e){var t=e.alias,n=e.name,r=e.arguments,i=e.directives,o=e.selectionSet;return c([u("",t,": ")+n+u("(",c(r,", "),")"),c(i," "),o]," ")},Argument:function(e){return e.name+": "+e.value},FragmentSpread:function(e){return"..."+e.name+u(" ",c(e.directives," "))},InlineFragment:function(e){var t=e.typeCondition,n=e.directives,r=e.selectionSet;return c(["...",u("on ",t),c(n," "),r]," ")},FragmentDefinition:function(e){var t=e.name,n=e.typeCondition,r=e.variableDefinitions,i=e.directives,o=e.selectionSet;return"fragment ".concat(t).concat(u("(",c(r,", "),")")," ")+"on ".concat(n," ").concat(u("",c(i," ")," "))+o},IntValue:function(e){return e.value},FloatValue:function(e){return e.value},StringValue:function(e,t){var n=e.value;return e.block?(0,i.printBlockString)(n,"description"===t?"":" "):JSON.stringify(n)},BooleanValue:function(e){return e.value?"true":"false"},NullValue:function(){return"null"},EnumValue:function(e){return e.value},ListValue:function(e){return"["+c(e.values,", ")+"]"},ObjectValue:function(e){return"{"+c(e.fields,", ")+"}"},ObjectField:function(e){return e.name+": "+e.value},Directive:function(e){return"@"+e.name+u("(",c(e.arguments,", "),")")},NamedType:function(e){return e.name},ListType:function(e){return"["+e.type+"]"},NonNullType:function(e){return e.type+"!"},SchemaDefinition:a((function(e){var t=e.directives,n=e.operationTypes;return c(["schema",c(t," "),s(n)]," ")})),OperationTypeDefinition:function(e){return e.operation+": "+e.type},ScalarTypeDefinition:a((function(e){return c(["scalar",e.name,c(e.directives," ")]," ")})),ObjectTypeDefinition:a((function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return c(["type",t,u("implements ",c(n," & ")),c(r," "),s(i)]," ")})),FieldDefinition:a((function(e){var t=e.name,n=e.arguments,r=e.type,i=e.directives;return t+(p(n)?u("(\n",l(c(n,"\n")),"\n)"):u("(",c(n,", "),")"))+": "+r+u(" ",c(i," "))})),InputValueDefinition:a((function(e){var t=e.name,n=e.type,r=e.defaultValue,i=e.directives;return c([t+": "+n,u("= ",r),c(i," ")]," ")})),InterfaceTypeDefinition:a((function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return c(["interface",t,u("implements ",c(n," & ")),c(r," "),s(i)]," ")})),UnionTypeDefinition:a((function(e){var t=e.name,n=e.directives,r=e.types;return c(["union",t,c(n," "),r&&0!==r.length?"= "+c(r," | "):""]," ")})),EnumTypeDefinition:a((function(e){var t=e.name,n=e.directives,r=e.values;return c(["enum",t,c(n," "),s(r)]," ")})),EnumValueDefinition:a((function(e){return c([e.name,c(e.directives," ")]," ")})),InputObjectTypeDefinition:a((function(e){var t=e.name,n=e.directives,r=e.fields;return c(["input",t,c(n," "),s(r)]," ")})),DirectiveDefinition:a((function(e){var t=e.name,n=e.arguments,r=e.repeatable,i=e.locations;return"directive @"+t+(p(n)?u("(\n",l(c(n,"\n")),"\n)"):u("(",c(n,", "),")"))+(r?" repeatable":"")+" on "+c(i," | ")})),SchemaExtension:function(e){var t=e.directives,n=e.operationTypes;return c(["extend schema",c(t," "),s(n)]," ")},ScalarTypeExtension:function(e){return c(["extend scalar",e.name,c(e.directives," ")]," ")},ObjectTypeExtension:function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return c(["extend type",t,u("implements ",c(n," & ")),c(r," "),s(i)]," ")},InterfaceTypeExtension:function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return c(["extend interface",t,u("implements ",c(n," & ")),c(r," "),s(i)]," ")},UnionTypeExtension:function(e){var t=e.name,n=e.directives,r=e.types;return c(["extend union",t,c(n," "),r&&0!==r.length?"= "+c(r," | "):""]," ")},EnumTypeExtension:function(e){var t=e.name,n=e.directives,r=e.values;return c(["extend enum",t,c(n," "),s(r)]," ")},InputObjectTypeExtension:function(e){var t=e.name,n=e.directives,r=e.fields;return c(["extend input",t,c(n," "),s(r)]," ")}};function a(e){return function(t){return c([t.description,e(t)],"\n")}}function c(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return null!==(t=null==e?void 0:e.filter((function(e){return e})).join(n))&&void 0!==t?t:""}function s(e){return e&&0!==e.length?"{\n"+l(c(e,"\n"))+"\n}":""}function u(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return t?e+t+n:""}function l(e){return e&&" "+e.replace(/\n/g,"\n ")}function f(e){return-1!==e.indexOf("\n")}function p(e){return e&&e.some(f)}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict"; + */function i(e,t){if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i=0;u--)if(l[u]!==f[u])return!1;for(u=l.length-1;u>=0;u--)if(c=l[u],!E(e[c],t[c],n,r))return!1;return!0}(e,t,n,r))}return n?e===t:e==t}function b(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function O(e,t){if(!e||!t)return!1;if("[object RegExp]"==Object.prototype.toString.call(t))return t.test(e);try{if(e instanceof t)return!0}catch(e){}return!Error.isPrototypeOf(t)&&!0===t.call({},e)}function k(e,t,n,r){var i;if("function"!=typeof t)throw new TypeError('"block" argument must be a function');"string"==typeof n&&(r=n,n=null),i=function(e){var t;try{e()}catch(e){t=e}return t}(t),r=(n&&n.name?" ("+n.name+").":".")+(r?" "+r:"."),e&&!i&&T(i,n,"Missing expected exception"+r);var o="string"==typeof r,c=!e&&i&&!n;if((!e&&a.isError(i)&&o&&O(i,n)||c)&&T(i,n,"Got unwanted exception"+r),e&&i&&n&&!O(i,n)||!e&&i)throw i}p.AssertionError=function(e){var t;this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=v(y((t=this).actual),128)+" "+t.operator+" "+v(y(t.expected),128),this.generatedMessage=!0);var n=e.stackStartFunction||T;if(Error.captureStackTrace)Error.captureStackTrace(this,n);else{var r=new Error;if(r.stack){var i=r.stack,o=h(n),a=i.indexOf("\n"+o);if(a>=0){var c=i.indexOf("\n",a+1);i=i.substring(c+1)}this.stack=i}}},a.inherits(p.AssertionError,Error),p.fail=T,p.ok=m,p.equal=function(e,t,n){e!=t&&T(e,t,n,"==",p.equal)},p.notEqual=function(e,t,n){e==t&&T(e,t,n,"!=",p.notEqual)},p.deepEqual=function(e,t,n){E(e,t,!1)||T(e,t,n,"deepEqual",p.deepEqual)},p.deepStrictEqual=function(e,t,n){E(e,t,!0)||T(e,t,n,"deepStrictEqual",p.deepStrictEqual)},p.notDeepEqual=function(e,t,n){E(e,t,!1)&&T(e,t,n,"notDeepEqual",p.notDeepEqual)},p.notDeepStrictEqual=function e(t,n,r){E(t,n,!0)&&T(t,n,r,"notDeepStrictEqual",e)},p.strictEqual=function(e,t,n){e!==t&&T(e,t,n,"===",p.strictEqual)},p.notStrictEqual=function(e,t,n){e===t&&T(e,t,n,"!==",p.notStrictEqual)},p.throws=function(e,t,n){k(!0,e,t,n)},p.doesNotThrow=function(e,t,n){k(!1,e,t,n)},p.ifError=function(e){if(e)throw e},p.strict=r((function e(t,n){t||T(t,!0,n,"==",e)}),p,{equal:p.strictEqual,deepEqual:p.deepStrictEqual,notEqual:p.notStrictEqual,notDeepEqual:p.notDeepStrictEqual}),p.strict.strict=p.strict;var g=Object.keys||function(e){var t=[];for(var n in e)c.call(e,n)&&t.push(n);return t}}).call(this,n(21))},function(e,t,n){e.exports=n(26).Observable},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.print=function(e){return(0,r.visit)(e,{leave:o})};var r=n(2),i=n(12);var o={Name:function(e){return e.value},Variable:function(e){return"$"+e.name},Document:function(e){return c(e.definitions,"\n\n")+"\n"},OperationDefinition:function(e){var t=e.operation,n=e.name,r=u("(",c(e.variableDefinitions,", "),")"),i=c(e.directives," "),o=e.selectionSet;return n||i||r||"query"!==t?c([t,c([n,r]),i,o]," "):o},VariableDefinition:function(e){var t=e.variable,n=e.type,r=e.defaultValue,i=e.directives;return t+": "+n+u(" = ",r)+u(" ",c(i," "))},SelectionSet:function(e){return s(e.selections)},Field:function(e){var t=e.alias,n=e.name,r=e.arguments,i=e.directives,o=e.selectionSet;return c([u("",t,": ")+n+u("(",c(r,", "),")"),c(i," "),o]," ")},Argument:function(e){return e.name+": "+e.value},FragmentSpread:function(e){return"..."+e.name+u(" ",c(e.directives," "))},InlineFragment:function(e){var t=e.typeCondition,n=e.directives,r=e.selectionSet;return c(["...",u("on ",t),c(n," "),r]," ")},FragmentDefinition:function(e){var t=e.name,n=e.typeCondition,r=e.variableDefinitions,i=e.directives,o=e.selectionSet;return"fragment ".concat(t).concat(u("(",c(r,", "),")")," ")+"on ".concat(n," ").concat(u("",c(i," ")," "))+o},IntValue:function(e){return e.value},FloatValue:function(e){return e.value},StringValue:function(e,t){var n=e.value;return e.block?(0,i.printBlockString)(n,"description"===t?"":" "):JSON.stringify(n)},BooleanValue:function(e){return e.value?"true":"false"},NullValue:function(){return"null"},EnumValue:function(e){return e.value},ListValue:function(e){return"["+c(e.values,", ")+"]"},ObjectValue:function(e){return"{"+c(e.fields,", ")+"}"},ObjectField:function(e){return e.name+": "+e.value},Directive:function(e){return"@"+e.name+u("(",c(e.arguments,", "),")")},NamedType:function(e){return e.name},ListType:function(e){return"["+e.type+"]"},NonNullType:function(e){return e.type+"!"},SchemaDefinition:a((function(e){var t=e.directives,n=e.operationTypes;return c(["schema",c(t," "),s(n)]," ")})),OperationTypeDefinition:function(e){return e.operation+": "+e.type},ScalarTypeDefinition:a((function(e){return c(["scalar",e.name,c(e.directives," ")]," ")})),ObjectTypeDefinition:a((function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return c(["type",t,u("implements ",c(n," & ")),c(r," "),s(i)]," ")})),FieldDefinition:a((function(e){var t=e.name,n=e.arguments,r=e.type,i=e.directives;return t+(p(n)?u("(\n",l(c(n,"\n")),"\n)"):u("(",c(n,", "),")"))+": "+r+u(" ",c(i," "))})),InputValueDefinition:a((function(e){var t=e.name,n=e.type,r=e.defaultValue,i=e.directives;return c([t+": "+n,u("= ",r),c(i," ")]," ")})),InterfaceTypeDefinition:a((function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return c(["interface",t,u("implements ",c(n," & ")),c(r," "),s(i)]," ")})),UnionTypeDefinition:a((function(e){var t=e.name,n=e.directives,r=e.types;return c(["union",t,c(n," "),r&&0!==r.length?"= "+c(r," | "):""]," ")})),EnumTypeDefinition:a((function(e){var t=e.name,n=e.directives,r=e.values;return c(["enum",t,c(n," "),s(r)]," ")})),EnumValueDefinition:a((function(e){return c([e.name,c(e.directives," ")]," ")})),InputObjectTypeDefinition:a((function(e){var t=e.name,n=e.directives,r=e.fields;return c(["input",t,c(n," "),s(r)]," ")})),DirectiveDefinition:a((function(e){var t=e.name,n=e.arguments,r=e.repeatable,i=e.locations;return"directive @"+t+(p(n)?u("(\n",l(c(n,"\n")),"\n)"):u("(",c(n,", "),")"))+(r?" repeatable":"")+" on "+c(i," | ")})),SchemaExtension:function(e){var t=e.directives,n=e.operationTypes;return c(["extend schema",c(t," "),s(n)]," ")},ScalarTypeExtension:function(e){return c(["extend scalar",e.name,c(e.directives," ")]," ")},ObjectTypeExtension:function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return c(["extend type",t,u("implements ",c(n," & ")),c(r," "),s(i)]," ")},InterfaceTypeExtension:function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return c(["extend interface",t,u("implements ",c(n," & ")),c(r," "),s(i)]," ")},UnionTypeExtension:function(e){var t=e.name,n=e.directives,r=e.types;return c(["extend union",t,c(n," "),r&&0!==r.length?"= "+c(r," | "):""]," ")},EnumTypeExtension:function(e){var t=e.name,n=e.directives,r=e.values;return c(["extend enum",t,c(n," "),s(r)]," ")},InputObjectTypeExtension:function(e){var t=e.name,n=e.directives,r=e.fields;return c(["extend input",t,c(n," "),s(r)]," ")}};function a(e){return function(t){return c([t.description,e(t)],"\n")}}function c(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return null!==(t=null==e?void 0:e.filter((function(e){return e})).join(n))&&void 0!==t?t:""}function s(e){return e&&0!==e.length?"{\n"+l(c(e,"\n"))+"\n}":""}function u(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return t?e+t+n:""}function l(e){return e&&" "+e.replace(/\n/g,"\n ")}function f(e){return-1!==e.indexOf("\n")}function p(e){return e&&e.some(f)}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict"; /* object-assign (c) Sindre Sorhus @license MIT -*/var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function a(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,c,s=a(e),u=1;u=o)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}})),s=r[n];n=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),h(n)?r.showHidden=n:n&&t._extend(r,n),m(r.showHidden)&&(r.showHidden=!1),m(r.depth)&&(r.depth=2),m(r.colors)&&(r.colors=!1),m(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=s),l(r,e,r.depth)}function s(e,t){var n=c.styles[t];return n?"["+c.colors[n][0]+"m"+e+"["+c.colors[n][1]+"m":e}function u(e,t){return e}function l(e,n,r){if(e.customInspect&&n&&g(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var i=n.inspect(r,e);return T(i)||(i=l(e,i,r)),i}var o=function(e,t){if(m(t))return e.stylize("undefined","undefined");if(T(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(y(t))return e.stylize(""+t,"number");if(h(t))return e.stylize(""+t,"boolean");if(v(t))return e.stylize("null","null")}(e,n);if(o)return o;var a=Object.keys(n),c=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(n)),k(n)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return f(n);if(0===a.length){if(g(n)){var s=n.name?": "+n.name:"";return e.stylize("[Function"+s+"]","special")}if(E(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(O(n))return e.stylize(Date.prototype.toString.call(n),"date");if(k(n))return f(n)}var u,b="",_=!1,N=["{","}"];(d(n)&&(_=!0,N=["[","]"]),g(n))&&(b=" [Function"+(n.name?": "+n.name:"")+"]");return E(n)&&(b=" "+RegExp.prototype.toString.call(n)),O(n)&&(b=" "+Date.prototype.toUTCString.call(n)),k(n)&&(b=" "+f(n)),0!==a.length||_&&0!=n.length?r<0?E(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),u=_?function(e,t,n,r,i){for(var o=[],a=0,c=t.length;a=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60)return n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1];return n[0]+t+" "+e.join(", ")+" "+n[1]}(u,b,N)):N[0]+b+N[1]}function f(e){return"["+Error.prototype.toString.call(e)+"]"}function p(e,t,n,r,i,o){var a,c,s;if((s=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?c=s.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):s.set&&(c=e.stylize("[Setter]","special")),I(r,i)||(a="["+i+"]"),c||(e.seen.indexOf(s.value)<0?(c=v(n)?l(e,s.value,null):l(e,s.value,n-1)).indexOf("\n")>-1&&(c=o?c.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+c.split("\n").map((function(e){return" "+e})).join("\n")):c=e.stylize("[Circular]","special")),m(a)){if(o&&i.match(/^\d+$/))return c;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+c}function d(e){return Array.isArray(e)}function h(e){return"boolean"==typeof e}function v(e){return null===e}function y(e){return"number"==typeof e}function T(e){return"string"==typeof e}function m(e){return void 0===e}function E(e){return b(e)&&"[object RegExp]"===_(e)}function b(e){return"object"==typeof e&&null!==e}function O(e){return b(e)&&"[object Date]"===_(e)}function k(e){return b(e)&&("[object Error]"===_(e)||e instanceof Error)}function g(e){return"function"==typeof e}function _(e){return Object.prototype.toString.call(e)}function N(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(n){if(m(o)&&(o=e.env.NODE_DEBUG||""),n=n.toUpperCase(),!a[n])if(new RegExp("\\b"+n+"\\b","i").test(o)){var r=e.pid;a[n]=function(){var e=t.format.apply(t,arguments);console.error("%s %d: %s",n,r,e)}}else a[n]=function(){};return a[n]},t.inspect=c,c.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},c.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=d,t.isBoolean=h,t.isNull=v,t.isNullOrUndefined=function(e){return null==e},t.isNumber=y,t.isString=T,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=m,t.isRegExp=E,t.isObject=b,t.isDate=O,t.isError=k,t.isFunction=g,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=n(24);var x=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function S(){var e=new Date,t=[N(e.getHours()),N(e.getMinutes()),N(e.getSeconds())].join(":");return[e.getDate(),x[e.getMonth()],t].join(" ")}function I(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",S(),t.format.apply(t,arguments))},t.inherits=n(25),t._extend=function(e,t){if(!t||!b(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e};var w="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function D(e,t){if(!e){var n=new Error("Promise was rejected with a falsy value");n.reason=e,e=n}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(w&&e[w]){var t;if("function"!=typeof(t=e[w]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,w,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,n,r=new Promise((function(e,r){t=e,n=r})),i=[],o=0;o1,i=!1,o=arguments[1],a=o;return new n((function(n){return t.subscribe({next:function(t){var o=!i;if(i=!0,!o||r)try{a=e(a,t)}catch(e){return n.error(e)}else a=t},error:function(e){n.error(e)},complete:function(){if(!i&&!r)return n.error(new TypeError("Cannot reduce an empty sequence"));n.next(a),n.complete()}})}))}},{key:"concat",value:function(){for(var e=this,t=arguments.length,n=Array(t),r=0;r=0&&i.splice(e,1),a()}});i.push(o)},error:function(e){r.error(e)},complete:function(){a()}});function a(){o.closed&&0===i.length&&r.complete()}return function(){i.forEach((function(e){return e.unsubscribe()})),o.unsubscribe()}}))}},{key:u,value:function(){return this}}],[{key:"from",value:function(t){var n="function"==typeof this?this:e;if(null==t)throw new TypeError(t+" is not an object");var r=f(t,u);if(r){var i=r.call(t);if(Object(i)!==i)throw new TypeError(i+" is not an object");return d(i)&&i.constructor===n?i:new n((function(e){return i.subscribe(e)}))}if(a("iterator")&&(r=f(t,s)))return new n((function(e){v((function(){if(!e.closed){var n=!0,i=!1,o=void 0;try{for(var a,c=r.call(t)[Symbol.iterator]();!(n=(a=c.next()).done);n=!0){var s=a.value;if(e.next(s),e.closed)return}}catch(e){i=!0,o=e}finally{try{!n&&c.return&&c.return()}finally{if(i)throw o}}e.complete()}}))}));if(Array.isArray(t))return new n((function(e){v((function(){if(!e.closed){for(var n=0;n120){for(var h=Math.floor(l/80),v=l%80,y=[],T=0;T1&&void 0!==arguments[1]?arguments[1]:"GraphQL request",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{line:1,column:1};this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||(0,o.default)(0,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,o.default)(0,"column in locationOffset is 1-indexed and must be positive.")}var t,n,r;return t=e,(n=[{key:i.SYMBOL_TO_STRING_TAG,get:function(){return"Source"}}])&&a(t.prototype,n),r&&a(t,r),e}();t.Source=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveLocation=void 0;var r=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"});t.DirectiveLocation=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isPunctuatorTokenKind=function(e){return e===o.TokenKind.BANG||e===o.TokenKind.DOLLAR||e===o.TokenKind.AMP||e===o.TokenKind.PAREN_L||e===o.TokenKind.PAREN_R||e===o.TokenKind.SPREAD||e===o.TokenKind.COLON||e===o.TokenKind.EQUALS||e===o.TokenKind.AT||e===o.TokenKind.BRACKET_L||e===o.TokenKind.BRACKET_R||e===o.TokenKind.BRACE_L||e===o.TokenKind.PIPE||e===o.TokenKind.BRACE_R},t.Lexer=void 0;var r=n(14),i=n(7),o=n(17),a=n(12),c=function(){function e(e){var t=new i.Token(o.TokenKind.SOF,0,0,0,0,null);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}var t=e.prototype;return t.advance=function(){return this.lastToken=this.token,this.token=this.lookahead()},t.lookahead=function(){var e=this.token;if(e.kind!==o.TokenKind.EOF)do{var t;e=null!==(t=e.next)&&void 0!==t?t:e.next=u(this,e)}while(e.kind===o.TokenKind.COMMENT);return e},e}();function s(e){return isNaN(e)?o.TokenKind.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function u(e,t){var n=e.source,c=n.body,u=c.length,p=function(e,t,n){var r=e.length,i=t;for(;i=u)return new i.Token(o.TokenKind.EOF,u,u,d,h,t);var v=c.charCodeAt(p);switch(v){case 33:return new i.Token(o.TokenKind.BANG,p,p+1,d,h,t);case 35:return function(e,t,n,r,a){var c,s=e.body,u=t;do{c=s.charCodeAt(++u)}while(!isNaN(c)&&(c>31||9===c));return new i.Token(o.TokenKind.COMMENT,t,u,n,r,a,s.slice(t+1,u))}(n,p,d,h,t);case 36:return new i.Token(o.TokenKind.DOLLAR,p,p+1,d,h,t);case 38:return new i.Token(o.TokenKind.AMP,p,p+1,d,h,t);case 40:return new i.Token(o.TokenKind.PAREN_L,p,p+1,d,h,t);case 41:return new i.Token(o.TokenKind.PAREN_R,p,p+1,d,h,t);case 46:if(46===c.charCodeAt(p+1)&&46===c.charCodeAt(p+2))return new i.Token(o.TokenKind.SPREAD,p,p+3,d,h,t);break;case 58:return new i.Token(o.TokenKind.COLON,p,p+1,d,h,t);case 61:return new i.Token(o.TokenKind.EQUALS,p,p+1,d,h,t);case 64:return new i.Token(o.TokenKind.AT,p,p+1,d,h,t);case 91:return new i.Token(o.TokenKind.BRACKET_L,p,p+1,d,h,t);case 93:return new i.Token(o.TokenKind.BRACKET_R,p,p+1,d,h,t);case 123:return new i.Token(o.TokenKind.BRACE_L,p,p+1,d,h,t);case 124:return new i.Token(o.TokenKind.PIPE,p,p+1,d,h,t);case 125:return new i.Token(o.TokenKind.BRACE_R,p,p+1,d,h,t);case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:return function(e,t,n,r,a){var c=e.body,s=c.length,u=t+1,l=0;for(;u!==s&&!isNaN(l=c.charCodeAt(u))&&(95===l||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122);)++u;return new i.Token(o.TokenKind.NAME,t,u,n,r,a,c.slice(t,u))}(n,p,d,h,t);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return function(e,t,n,a,c,u){var f=e.body,p=n,d=t,h=!1;45===p&&(p=f.charCodeAt(++d));if(48===p){if((p=f.charCodeAt(++d))>=48&&p<=57)throw(0,r.syntaxError)(e,d,"Invalid number, unexpected digit after 0: ".concat(s(p),"."))}else d=l(e,d,p),p=f.charCodeAt(d);46===p&&(h=!0,p=f.charCodeAt(++d),d=l(e,d,p),p=f.charCodeAt(d));69!==p&&101!==p||(h=!0,43!==(p=f.charCodeAt(++d))&&45!==p||(p=f.charCodeAt(++d)),d=l(e,d,p),p=f.charCodeAt(d));if(46===p||function(e){return 95===e||e>=65&&e<=90||e>=97&&e<=122}(p))throw(0,r.syntaxError)(e,d,"Invalid number, expected digit but got: ".concat(s(p),"."));return new i.Token(h?o.TokenKind.FLOAT:o.TokenKind.INT,t,d,a,c,u,f.slice(t,d))}(n,p,v,d,h,t);case 34:return 34===c.charCodeAt(p+1)&&34===c.charCodeAt(p+2)?function(e,t,n,c,u,l){var f=e.body,p=t+3,d=p,h=0,v="";for(;p=48&&a<=57){do{a=i.charCodeAt(++o)}while(a>=48&&a<=57);return o}throw(0,r.syntaxError)(e,o,"Invalid number, expected digit but got: ".concat(s(a),"."))}function f(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}t.Lexer=c},function(e,t,n){"use strict";n.r(t);var r=n(18),i=n.n(r),o=n(9),a=n(20),c=n(19),s=n.n(c).a,u=n(0),l=n(1),f=n(5);!function(e){function t(t,n){var r=e.call(this,t)||this;return r.link=n,r}Object(l.b)(t,e)}(Error);function p(e){return e.request.length<=1}function d(e,t){var n=Object(l.a)({},e);return Object.defineProperty(t,"setContext",{enumerable:!1,value:function(e){n="function"==typeof e?Object(l.a)({},n,e(n)):Object(l.a)({},n,e)}}),Object.defineProperty(t,"getContext",{enumerable:!1,value:function(){return Object(l.a)({},n)}}),Object.defineProperty(t,"toKey",{enumerable:!1,value:function(){return function(e){var t=e.query,n=e.variables,r=e.operationName;return JSON.stringify([r,t,n])}(t)}}),t}function h(e,t){return t?t(e):s.of()}function v(e){return"function"==typeof e?new E(e):e}function y(){return new E((function(){return s.of()}))}function T(e){return 0===e.length?y():e.map(v).reduce((function(e,t){return e.concat(t)}))}function m(e,t,n){var r=v(t),i=v(n||new E(h));return p(r)&&p(i)?new E((function(t){return e(t)?r.request(t)||s.of():i.request(t)||s.of()})):new E((function(t,n){return e(t)?r.request(t,n)||s.of():i.request(t,n)||s.of()}))}var E=function(){function e(e){e&&(this.request=e)}return e.prototype.split=function(t,n,r){return this.concat(m(t,n,r||new e(h)))},e.prototype.concat=function(e){return function(e,t){var n=v(e);if(p(n))return n;var r=v(t);return p(r)?new E((function(e){return n.request(e,(function(e){return r.request(e)||s.of()}))||s.of()})):new E((function(e,t){return n.request(e,(function(e){return r.request(e,t)||s.of()}))||s.of()}))}(this,e)},e.prototype.request=function(e,t){throw new u.a(1)},e.empty=y,e.from=T,e.split=m,e.execute=b,e}();function b(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(f.a)(t.query):""),t}(function(e){for(var t=["query","operationName","variables","extensions","context"],n=0,r=Object.keys(e);n{}}evict(e){return{success:!0}}reset(){return I(this,void 0,void 0,(function*(){}))}restore(e){return this}extract(e=!1){var t;return null===(t=this.onExtract)||void 0===t||t.call(this),{}}removeOptimistic(e){}performTransaction(e){e(this)}recordOptimisticTransaction(e,t){e(this)}}!function(e){e.Stderr="stderr",e.Stdout="stdout"}(S||(S={}));var D=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{s(r.next(e))}catch(e){o(e)}}function c(e){try{s(r.throw(e))}catch(e){o(e)}}function s(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,c)}s((r=r.apply(e,t||[])).next())}))};const A=Object.freeze({stdout:"cadetblue",stderr:"tomato"});function K(e){var t;i()((t=e,Object.values(S).includes(null==t?void 0:t.type)&&("string"==typeof(null==t?void 0:t.data)||(null==t?void 0:t.data)instanceof String))),console.log("%c"+e.data,"color: "+A[e.type])}window.__APOLLO_CLIENT__=new class{constructor(){this.version="2.0.0",this.link=new E(e=>{return t=function(e){return D(this,void 0,void 0,(function*(){const t={variables:e.variables,operationName:e.operationName,query:Object(a.print)(e.query)},n={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)},r=yield fetch("/request",n);if(!r.ok)throw new Error(r.statusText);return yield r.json()}))}(e),new s((function(e){t.then((function(t){e.next(t),e.complete()})).catch(e.error.bind(e))}));var t}),this.cache=new w(this.startListening.bind(this)),this.readQuery=this.cache.readQuery.bind(this.cache),this.readFragment=this.cache.readFragment.bind(this.cache),this.writeQuery=this.cache.writeQuery.bind(this.cache),this.writeFragment=this.cache.writeFragment.bind(this.cache),this.writeData=this.cache.writeData.bind(this.cache)}startListening(){this.eventSource=new EventSource("/events"),this.eventSource.onmessage=e=>{var t;const n=function(e){return Object.assign(Object.assign({},e),{state:{queries:e.state.queries.map(e=>Object.assign(Object.assign({},e),{document:Object(o.parse)(e.document)})),mutations:e.state.mutations.map(e=>Object.assign(Object.assign({},e),{mutation:Object(o.parse)(e.mutation)}))}})}(JSON.parse(e.data));null===(t=this.devToolsHookCb)||void 0===t||t.call(this,n)},this.eventSource.addEventListener("stdout",e=>K(e)),this.eventSource.addEventListener("stderr",e=>K(e))}stopListening(){var e;null===(e=this.eventSource)||void 0===e||e.close()}__actionHookForDevTools(e){this.devToolsHookCb=e}}}]); \ No newline at end of file +*/var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function a(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,c,s=a(e),u=1;u=o)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}})),s=r[n];n=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),h(n)?r.showHidden=n:n&&t._extend(r,n),m(r.showHidden)&&(r.showHidden=!1),m(r.depth)&&(r.depth=2),m(r.colors)&&(r.colors=!1),m(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=s),l(r,e,r.depth)}function s(e,t){var n=c.styles[t];return n?"["+c.colors[n][0]+"m"+e+"["+c.colors[n][1]+"m":e}function u(e,t){return e}function l(e,n,r){if(e.customInspect&&n&&g(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var i=n.inspect(r,e);return T(i)||(i=l(e,i,r)),i}var o=function(e,t){if(m(t))return e.stylize("undefined","undefined");if(T(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(y(t))return e.stylize(""+t,"number");if(h(t))return e.stylize(""+t,"boolean");if(v(t))return e.stylize("null","null")}(e,n);if(o)return o;var a=Object.keys(n),c=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(n)),k(n)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return f(n);if(0===a.length){if(g(n)){var s=n.name?": "+n.name:"";return e.stylize("[Function"+s+"]","special")}if(E(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(O(n))return e.stylize(Date.prototype.toString.call(n),"date");if(k(n))return f(n)}var u,b="",_=!1,N=["{","}"];(d(n)&&(_=!0,N=["[","]"]),g(n))&&(b=" [Function"+(n.name?": "+n.name:"")+"]");return E(n)&&(b=" "+RegExp.prototype.toString.call(n)),O(n)&&(b=" "+Date.prototype.toUTCString.call(n)),k(n)&&(b=" "+f(n)),0!==a.length||_&&0!=n.length?r<0?E(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),u=_?function(e,t,n,r,i){for(var o=[],a=0,c=t.length;a=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60)return n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1];return n[0]+t+" "+e.join(", ")+" "+n[1]}(u,b,N)):N[0]+b+N[1]}function f(e){return"["+Error.prototype.toString.call(e)+"]"}function p(e,t,n,r,i,o){var a,c,s;if((s=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?c=s.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):s.set&&(c=e.stylize("[Setter]","special")),I(r,i)||(a="["+i+"]"),c||(e.seen.indexOf(s.value)<0?(c=v(n)?l(e,s.value,null):l(e,s.value,n-1)).indexOf("\n")>-1&&(c=o?c.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+c.split("\n").map((function(e){return" "+e})).join("\n")):c=e.stylize("[Circular]","special")),m(a)){if(o&&i.match(/^\d+$/))return c;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+c}function d(e){return Array.isArray(e)}function h(e){return"boolean"==typeof e}function v(e){return null===e}function y(e){return"number"==typeof e}function T(e){return"string"==typeof e}function m(e){return void 0===e}function E(e){return b(e)&&"[object RegExp]"===_(e)}function b(e){return"object"==typeof e&&null!==e}function O(e){return b(e)&&"[object Date]"===_(e)}function k(e){return b(e)&&("[object Error]"===_(e)||e instanceof Error)}function g(e){return"function"==typeof e}function _(e){return Object.prototype.toString.call(e)}function N(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(n){if(m(o)&&(o=e.env.NODE_DEBUG||""),n=n.toUpperCase(),!a[n])if(new RegExp("\\b"+n+"\\b","i").test(o)){var r=e.pid;a[n]=function(){var e=t.format.apply(t,arguments);console.error("%s %d: %s",n,r,e)}}else a[n]=function(){};return a[n]},t.inspect=c,c.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},c.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=d,t.isBoolean=h,t.isNull=v,t.isNullOrUndefined=function(e){return null==e},t.isNumber=y,t.isString=T,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=m,t.isRegExp=E,t.isObject=b,t.isDate=O,t.isError=k,t.isFunction=g,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=n(24);var x=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function S(){var e=new Date,t=[N(e.getHours()),N(e.getMinutes()),N(e.getSeconds())].join(":");return[e.getDate(),x[e.getMonth()],t].join(" ")}function I(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",S(),t.format.apply(t,arguments))},t.inherits=n(25),t._extend=function(e,t){if(!t||!b(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e};var w="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function D(e,t){if(!e){var n=new Error("Promise was rejected with a falsy value");n.reason=e,e=n}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(w&&e[w]){var t;if("function"!=typeof(t=e[w]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,w,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,n,r=new Promise((function(e,r){t=e,n=r})),i=[],o=0;o1,i=!1,o=arguments[1],a=o;return new n((function(n){return t.subscribe({next:function(t){var o=!i;if(i=!0,!o||r)try{a=e(a,t)}catch(e){return n.error(e)}else a=t},error:function(e){n.error(e)},complete:function(){if(!i&&!r)return n.error(new TypeError("Cannot reduce an empty sequence"));n.next(a),n.complete()}})}))}},{key:"concat",value:function(){for(var e=this,t=arguments.length,n=Array(t),r=0;r=0&&i.splice(e,1),a()}});i.push(o)},error:function(e){r.error(e)},complete:function(){a()}});function a(){o.closed&&0===i.length&&r.complete()}return function(){i.forEach((function(e){return e.unsubscribe()})),o.unsubscribe()}}))}},{key:u,value:function(){return this}}],[{key:"from",value:function(t){var n="function"==typeof this?this:e;if(null==t)throw new TypeError(t+" is not an object");var r=f(t,u);if(r){var i=r.call(t);if(Object(i)!==i)throw new TypeError(i+" is not an object");return d(i)&&i.constructor===n?i:new n((function(e){return i.subscribe(e)}))}if(a("iterator")&&(r=f(t,s)))return new n((function(e){v((function(){if(!e.closed){var n=!0,i=!1,o=void 0;try{for(var a,c=r.call(t)[Symbol.iterator]();!(n=(a=c.next()).done);n=!0){var s=a.value;if(e.next(s),e.closed)return}}catch(e){i=!0,o=e}finally{try{!n&&c.return&&c.return()}finally{if(i)throw o}}e.complete()}}))}));if(Array.isArray(t))return new n((function(e){v((function(){if(!e.closed){for(var n=0;n120){for(var h=Math.floor(l/80),v=l%80,y=[],T=0;T1&&void 0!==arguments[1]?arguments[1]:"GraphQL request",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{line:1,column:1};this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||(0,o.default)(0,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,o.default)(0,"column in locationOffset is 1-indexed and must be positive.")}var t,n,r;return t=e,(n=[{key:i.SYMBOL_TO_STRING_TAG,get:function(){return"Source"}}])&&a(t.prototype,n),r&&a(t,r),e}();t.Source=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveLocation=void 0;var r=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"});t.DirectiveLocation=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isPunctuatorTokenKind=function(e){return e===o.TokenKind.BANG||e===o.TokenKind.DOLLAR||e===o.TokenKind.AMP||e===o.TokenKind.PAREN_L||e===o.TokenKind.PAREN_R||e===o.TokenKind.SPREAD||e===o.TokenKind.COLON||e===o.TokenKind.EQUALS||e===o.TokenKind.AT||e===o.TokenKind.BRACKET_L||e===o.TokenKind.BRACKET_R||e===o.TokenKind.BRACE_L||e===o.TokenKind.PIPE||e===o.TokenKind.BRACE_R},t.Lexer=void 0;var r=n(14),i=n(7),o=n(17),a=n(12),c=function(){function e(e){var t=new i.Token(o.TokenKind.SOF,0,0,0,0,null);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}var t=e.prototype;return t.advance=function(){return this.lastToken=this.token,this.token=this.lookahead()},t.lookahead=function(){var e=this.token;if(e.kind!==o.TokenKind.EOF)do{var t;e=null!==(t=e.next)&&void 0!==t?t:e.next=u(this,e)}while(e.kind===o.TokenKind.COMMENT);return e},e}();function s(e){return isNaN(e)?o.TokenKind.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function u(e,t){var n=e.source,c=n.body,u=c.length,p=function(e,t,n){var r=e.length,i=t;for(;i=u)return new i.Token(o.TokenKind.EOF,u,u,d,h,t);var v=c.charCodeAt(p);switch(v){case 33:return new i.Token(o.TokenKind.BANG,p,p+1,d,h,t);case 35:return function(e,t,n,r,a){var c,s=e.body,u=t;do{c=s.charCodeAt(++u)}while(!isNaN(c)&&(c>31||9===c));return new i.Token(o.TokenKind.COMMENT,t,u,n,r,a,s.slice(t+1,u))}(n,p,d,h,t);case 36:return new i.Token(o.TokenKind.DOLLAR,p,p+1,d,h,t);case 38:return new i.Token(o.TokenKind.AMP,p,p+1,d,h,t);case 40:return new i.Token(o.TokenKind.PAREN_L,p,p+1,d,h,t);case 41:return new i.Token(o.TokenKind.PAREN_R,p,p+1,d,h,t);case 46:if(46===c.charCodeAt(p+1)&&46===c.charCodeAt(p+2))return new i.Token(o.TokenKind.SPREAD,p,p+3,d,h,t);break;case 58:return new i.Token(o.TokenKind.COLON,p,p+1,d,h,t);case 61:return new i.Token(o.TokenKind.EQUALS,p,p+1,d,h,t);case 64:return new i.Token(o.TokenKind.AT,p,p+1,d,h,t);case 91:return new i.Token(o.TokenKind.BRACKET_L,p,p+1,d,h,t);case 93:return new i.Token(o.TokenKind.BRACKET_R,p,p+1,d,h,t);case 123:return new i.Token(o.TokenKind.BRACE_L,p,p+1,d,h,t);case 124:return new i.Token(o.TokenKind.PIPE,p,p+1,d,h,t);case 125:return new i.Token(o.TokenKind.BRACE_R,p,p+1,d,h,t);case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:return function(e,t,n,r,a){var c=e.body,s=c.length,u=t+1,l=0;for(;u!==s&&!isNaN(l=c.charCodeAt(u))&&(95===l||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122);)++u;return new i.Token(o.TokenKind.NAME,t,u,n,r,a,c.slice(t,u))}(n,p,d,h,t);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return function(e,t,n,a,c,u){var f=e.body,p=n,d=t,h=!1;45===p&&(p=f.charCodeAt(++d));if(48===p){if((p=f.charCodeAt(++d))>=48&&p<=57)throw(0,r.syntaxError)(e,d,"Invalid number, unexpected digit after 0: ".concat(s(p),"."))}else d=l(e,d,p),p=f.charCodeAt(d);46===p&&(h=!0,p=f.charCodeAt(++d),d=l(e,d,p),p=f.charCodeAt(d));69!==p&&101!==p||(h=!0,43!==(p=f.charCodeAt(++d))&&45!==p||(p=f.charCodeAt(++d)),d=l(e,d,p),p=f.charCodeAt(d));if(46===p||function(e){return 95===e||e>=65&&e<=90||e>=97&&e<=122}(p))throw(0,r.syntaxError)(e,d,"Invalid number, expected digit but got: ".concat(s(p),"."));return new i.Token(h?o.TokenKind.FLOAT:o.TokenKind.INT,t,d,a,c,u,f.slice(t,d))}(n,p,v,d,h,t);case 34:return 34===c.charCodeAt(p+1)&&34===c.charCodeAt(p+2)?function(e,t,n,c,u,l){var f=e.body,p=t+3,d=p,h=0,v="";for(;p=48&&a<=57){do{a=i.charCodeAt(++o)}while(a>=48&&a<=57);return o}throw(0,r.syntaxError)(e,o,"Invalid number, expected digit but got: ".concat(s(a),"."))}function f(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}t.Lexer=c},function(e,t,n){"use strict";n.r(t);var r=n(18),i=n.n(r),o=n(9),a=n(20),c=n(19),s=n.n(c).a,u=n(0),l=n(1),f=n(5);!function(e){function t(t,n){var r=e.call(this,t)||this;return r.link=n,r}Object(l.b)(t,e)}(Error);function p(e){return e.request.length<=1}function d(e,t){var n=Object(l.a)({},e);return Object.defineProperty(t,"setContext",{enumerable:!1,value:function(e){n="function"==typeof e?Object(l.a)({},n,e(n)):Object(l.a)({},n,e)}}),Object.defineProperty(t,"getContext",{enumerable:!1,value:function(){return Object(l.a)({},n)}}),Object.defineProperty(t,"toKey",{enumerable:!1,value:function(){return function(e){var t=e.query,n=e.variables,r=e.operationName;return JSON.stringify([r,t,n])}(t)}}),t}function h(e,t){return t?t(e):s.of()}function v(e){return"function"==typeof e?new E(e):e}function y(){return new E((function(){return s.of()}))}function T(e){return 0===e.length?y():e.map(v).reduce((function(e,t){return e.concat(t)}))}function m(e,t,n){var r=v(t),i=v(n||new E(h));return p(r)&&p(i)?new E((function(t){return e(t)?r.request(t)||s.of():i.request(t)||s.of()})):new E((function(t,n){return e(t)?r.request(t,n)||s.of():i.request(t,n)||s.of()}))}var E=function(){function e(e){e&&(this.request=e)}return e.prototype.split=function(t,n,r){return this.concat(m(t,n,r||new e(h)))},e.prototype.concat=function(e){return function(e,t){var n=v(e);if(p(n))return n;var r=v(t);return p(r)?new E((function(e){return n.request(e,(function(e){return r.request(e)||s.of()}))||s.of()})):new E((function(e,t){return n.request(e,(function(e){return r.request(e,t)||s.of()}))||s.of()}))}(this,e)},e.prototype.request=function(e,t){throw new u.a(1)},e.empty=y,e.from=T,e.split=m,e.execute=b,e}();function b(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(f.a)(t.query):""),t}(function(e){for(var t=["query","operationName","variables","extensions","context"],n=0,r=Object.keys(e);n{}}evict(e){return{success:!0}}reset(){return I(this,void 0,void 0,(function*(){}))}restore(e){return this}extract(e=!1){var t;return null===(t=this.onExtract)||void 0===t||t.call(this),{}}removeOptimistic(e){}performTransaction(e){e(this)}recordOptimisticTransaction(e,t){e(this)}}!function(e){e.Stderr="stderr",e.Stdout="stdout"}(S||(S={}));var D=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{s(r.next(e))}catch(e){o(e)}}function c(e){try{s(r.throw(e))}catch(e){o(e)}}function s(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,c)}s((r=r.apply(e,t||[])).next())}))};const A=Object.freeze({stdout:"cadetblue",stderr:"tomato"});function K(e){var t;i()((t=e,Object.values(S).includes(null==t?void 0:t.type)&&("string"==typeof(null==t?void 0:t.data)||(null==t?void 0:t.data)instanceof String))),console.log("%c"+e.data,"color: "+A[e.type])}window.__APOLLO_CLIENT__=new class{constructor(){this.version="2.0.0",this.link=new E(e=>{return t=function(e){return D(this,void 0,void 0,(function*(){const t={variables:e.variables,operationName:e.operationName,query:Object(a.print)(e.query)},n={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)},r=yield fetch("/request",n);if(!r.ok)throw new Error(r.statusText);return yield r.json()}))}(e),new s((function(e){t.then((function(t){e.next(t),e.complete()})).catch(e.error.bind(e))}));var t}),this.cache=new w(this.startListening.bind(this)),this.readQuery=this.cache.readQuery.bind(this.cache),this.readFragment=this.cache.readFragment.bind(this.cache),this.writeQuery=this.cache.writeQuery.bind(this.cache),this.writeFragment=this.cache.writeFragment.bind(this.cache),this.writeData=this.cache.writeData.bind(this.cache)}startListening(){this.eventSource=new EventSource("/events"),this.eventSource.onmessage=e=>{var t;const n=function(e){return Object.assign(Object.assign({},e),{state:{queries:e.state.queries.map(e=>Object.assign(Object.assign({},e),{document:Object(o.parse)(e.document)})),mutations:e.state.mutations.map(e=>Object.assign(Object.assign({},e),{mutation:Object(o.parse)(e.mutation)}))}})}(JSON.parse(e.data));null===(t=this.devToolsHookCb)||void 0===t||t.call(this,n)},this.eventSource.addEventListener("stdout",e=>K(e)),this.eventSource.addEventListener("stderr",e=>K(e))}stopListening(){var e;null===(e=this.eventSource)||void 0===e||e.close()}__actionHookForDevTools(e){this.devToolsHookCb=e}}}]); \ No newline at end of file diff --git a/package.json b/package.json index 806920ec..40a5c048 100644 --- a/package.json +++ b/package.json @@ -3,18 +3,21 @@ "version": "0.14.1", "description": "Visual debug your app, that is based on Apollo iOS", "repository": "https://github.com/manicmaniac/ApolloDeveloperKit", + "author": "Ryosuke Ito ", + "license": "MIT", + "private": true, + "module": "src/index.ts", + "sideEffects": [ + "src/index.ts" + ], "scripts": { - "build": "webpack --mode=development", - "dist": "webpack --mode=production", + "build": "webpack", "lint": "eslint . --ext .ts", "test": "jest", "generate:type": "npm run generate:type:swift & npm run generate:type:typescript & wait", "generate:type:swift": "quicktype -l swift --just-types -t Schema -s schema -o Sources/Classes/Schema/Schema.swift ApolloDeveloperKit.schema.json", "generate:type:typescript": "quicktype -l typescript --just-types -t Schema -s schema -o src/schema.ts ApolloDeveloperKit.schema.json" }, - "author": "Ryosuke Ito ", - "license": "MIT", - "private": true, "devDependencies": { "@types/jest": "^26.0.10", "@typescript-eslint/eslint-plugin": "^3.10.1", diff --git a/tsconfig.json b/tsconfig.json index d423726b..cbb2ad4d 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,21 +1,12 @@ { "compilerOptions": { - "outDir": "./Sources/Assets/", - "sourceMap": true, - "lib": [ - "dom", - "es6", - "esnext.asynciterable" - ], "allowJs": true, "esModuleInterop": true, - "removeComments": true, "module": "es2015", "target": "es2015", "moduleResolution": "node", "strict": true, - "baseUrl": "src/types", - "noImplicitAny": true + "baseUrl": "src/types" }, "files": [ "src/index.ts", diff --git a/webpack.config.js b/webpack.config.js index 353b7397..7c33a180 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -1,7 +1,7 @@ -const path = require('path'); +const path = require('path') module.exports = { - entry: './src/index.ts', + mode: 'production', module: { rules: [ { @@ -18,4 +18,4 @@ module.exports = { filename: 'bundle.js', path: path.resolve(__dirname, 'Sources/Assets') } -}; +}