forked from Stock-control-supervisors/awesome-go
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
1440-10d1111ba2f5a768.js.download
6 lines (6 loc) · 36.4 KB
/
1440-10d1111ba2f5a768.js.download
1
2
3
4
5
6
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1440],{71870:function(e,t){/*!
* cookie
* Copyright(c) 2012-2014 Roman Shtylman
* Copyright(c) 2015 Douglas Christopher Wilson
* MIT Licensed
*/t.parse=function(e,t){if("string"!=typeof e)throw TypeError("argument str must be a string");for(var n={},r=e.split(";"),s=(t||{}).decode||i,a=0;a<r.length;a++){var o=r[a],l=o.indexOf("=");if(!(l<0)){var c=o.substring(0,l).trim();if(void 0==n[c]){var h=o.substring(l+1,o.length).trim();'"'===h[0]&&(h=h.slice(1,-1)),n[c]=function(e,t){try{return t(e)}catch(t){return e}}(h,s)}}}return n},t.serialize=function(e,t,i){var s=i||{},a=s.encode||n;if("function"!=typeof a)throw TypeError("option encode is invalid");if(!r.test(e))throw TypeError("argument name is invalid");var o=a(t);if(o&&!r.test(o))throw TypeError("argument val is invalid");var l=e+"="+o;if(null!=s.maxAge){var c=s.maxAge-0;if(isNaN(c)||!isFinite(c))throw TypeError("option maxAge is invalid");l+="; Max-Age="+Math.floor(c)}if(s.domain){if(!r.test(s.domain))throw TypeError("option domain is invalid");l+="; Domain="+s.domain}if(s.path){if(!r.test(s.path))throw TypeError("option path is invalid");l+="; Path="+s.path}if(s.expires){if("function"!=typeof s.expires.toUTCString)throw TypeError("option expires is invalid");l+="; Expires="+s.expires.toUTCString()}if(s.httpOnly&&(l+="; HttpOnly"),s.secure&&(l+="; Secure"),s.sameSite)switch("string"==typeof s.sameSite?s.sameSite.toLowerCase():s.sameSite){case!0:case"strict":l+="; SameSite=Strict";break;case"lax":l+="; SameSite=Lax";break;case"none":l+="; SameSite=None";break;default:throw TypeError("option sameSite is invalid")}return l};var i=decodeURIComponent,n=encodeURIComponent,r=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/},66722:function(e,t,i){let n,r,s,a;i.d(t,{Ps:function(){return J}});var o,l,c,h,u,p=i(84213);let d=/\r\n|[\n\r]/g;function f(e,t){let i=0,n=1;for(let r of e.body.matchAll(d)){if("number"==typeof r.index||function(e,t){if(!e)throw Error(null!=t?t:"Unexpected invariant triggered.")}(!1),r.index>=t)break;i=r.index+r[0].length,n+=1}return{line:n,column:t+1-i}}function E(e,t){let i=e.locationOffset.column-1,n="".padStart(i)+e.body,r=t.line-1,s=e.locationOffset.line-1,a=t.line+s,o=1===t.line?i:0,l=t.column+o,c="".concat(e.name,":").concat(a,":").concat(l,"\n"),h=n.split(/\r\n|[\n\r]/g),u=h[r];if(u.length>120){let e=Math.floor(l/80),t=l%80,i=[];for(let e=0;e<u.length;e+=80)i.push(u.slice(e,e+80));return c+T([["".concat(a," |"),i[0]],...i.slice(1,e+1).map(e=>["|",e]),["|","^".padStart(t)],["|",i[e+1]]])}return c+T([["".concat(a-1," |"),h[r-1]],["".concat(a," |"),u],["|","^".padStart(l)],["".concat(a+1," |"),h[r+1]]])}function T(e){let t=e.filter(e=>{let[t,i]=e;return void 0!==i}),i=Math.max(...t.map(e=>{let[t]=e;return t.length}));return t.map(e=>{let[t,n]=e;return t.padStart(i)+(n?" "+n:"")}).join("\n")}class N extends Error{get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes){for(let i of this.nodes)if(i.loc){var t;e+="\n\n"+E((t=i.loc).source,f(t.source,t.start))}}else if(this.source&&this.locations)for(let t of this.locations)e+="\n\n"+E(this.source,t);return e}toJSON(){let e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}constructor(e,...t){var i,n,r,s;let{nodes:a,source:o,positions:l,path:c,originalError:h,extensions:u}=function(e){let t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}(t);super(e),this.name="GraphQLError",this.path=null!=c?c:void 0,this.originalError=null!=h?h:void 0,this.nodes=m(Array.isArray(a)?a:a?[a]:void 0);let p=m(null===(i=this.nodes)||void 0===i?void 0:i.map(e=>e.loc).filter(e=>null!=e));this.source=null!=o?o:null==p?void 0:null===(n=p[0])||void 0===n?void 0:n.source,this.positions=null!=l?l:null==p?void 0:p.map(e=>e.start),this.locations=l&&o?l.map(e=>f(o,e)):null==p?void 0:p.map(e=>f(e.source,e.start));let d="object"==typeof(s=null==h?void 0:h.extensions)&&null!==s?null==h?void 0:h.extensions:void 0;this.extensions=null!==(r=null!=u?u:d)&&void 0!==r?r:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=h&&h.stack?Object.defineProperty(this,"stack",{value:h.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,N):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}}function m(e){return void 0===e||0===e.length?void 0:e}function I(e,t,i){return new N("Syntax Error: ".concat(i),{source:e,positions:[t]})}class _{get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}constructor(e,t,i){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=i}}class A{get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}constructor(e,t,i,n,r,s){this.kind=e,this.start=t,this.end=i,this.line=n,this.column=r,this.value=s,this.prev=null,this.next=null}}function O(e){return e>=48&&e<=57}function x(e){return e>=97&&e<=122||e>=65&&e<=90}function k(e){return x(e)||95===e}(o=n||(n={})).QUERY="query",o.MUTATION="mutation",o.SUBSCRIPTION="subscription",(l=r||(r={})).QUERY="QUERY",l.MUTATION="MUTATION",l.SUBSCRIPTION="SUBSCRIPTION",l.FIELD="FIELD",l.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",l.FRAGMENT_SPREAD="FRAGMENT_SPREAD",l.INLINE_FRAGMENT="INLINE_FRAGMENT",l.VARIABLE_DEFINITION="VARIABLE_DEFINITION",l.SCHEMA="SCHEMA",l.SCALAR="SCALAR",l.OBJECT="OBJECT",l.FIELD_DEFINITION="FIELD_DEFINITION",l.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",l.INTERFACE="INTERFACE",l.UNION="UNION",l.ENUM="ENUM",l.ENUM_VALUE="ENUM_VALUE",l.INPUT_OBJECT="INPUT_OBJECT",l.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION",(c=s||(s={})).NAME="Name",c.DOCUMENT="Document",c.OPERATION_DEFINITION="OperationDefinition",c.VARIABLE_DEFINITION="VariableDefinition",c.SELECTION_SET="SelectionSet",c.FIELD="Field",c.ARGUMENT="Argument",c.FRAGMENT_SPREAD="FragmentSpread",c.INLINE_FRAGMENT="InlineFragment",c.FRAGMENT_DEFINITION="FragmentDefinition",c.VARIABLE="Variable",c.INT="IntValue",c.FLOAT="FloatValue",c.STRING="StringValue",c.BOOLEAN="BooleanValue",c.NULL="NullValue",c.ENUM="EnumValue",c.LIST="ListValue",c.OBJECT="ObjectValue",c.OBJECT_FIELD="ObjectField",c.DIRECTIVE="Directive",c.NAMED_TYPE="NamedType",c.LIST_TYPE="ListType",c.NON_NULL_TYPE="NonNullType",c.SCHEMA_DEFINITION="SchemaDefinition",c.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",c.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",c.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",c.FIELD_DEFINITION="FieldDefinition",c.INPUT_VALUE_DEFINITION="InputValueDefinition",c.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",c.UNION_TYPE_DEFINITION="UnionTypeDefinition",c.ENUM_TYPE_DEFINITION="EnumTypeDefinition",c.ENUM_VALUE_DEFINITION="EnumValueDefinition",c.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",c.DIRECTIVE_DEFINITION="DirectiveDefinition",c.SCHEMA_EXTENSION="SchemaExtension",c.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",c.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",c.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",c.UNION_TYPE_EXTENSION="UnionTypeExtension",c.ENUM_TYPE_EXTENSION="EnumTypeExtension",c.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension",(h=a||(a={})).SOF="<SOF>",h.EOF="<EOF>",h.BANG="!",h.DOLLAR="$",h.AMP="&",h.PAREN_L="(",h.PAREN_R=")",h.SPREAD="...",h.COLON=":",h.EQUALS="=",h.AT="@",h.BRACKET_L="[",h.BRACKET_R="]",h.BRACE_L="{",h.PIPE="|",h.BRACE_R="}",h.NAME="Name",h.INT="Int",h.FLOAT="Float",h.STRING="String",h.BLOCK_STRING="BlockString",h.COMMENT="Comment";class y{get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==a.EOF)do if(e.next)e=e.next;else{let t=function(e,t){let i=e.source.body,n=i.length,r=t;for(;r<n;){let t=i.charCodeAt(r);switch(t){case 65279:case 9:case 32:case 44:++r;continue;case 10:++r,++e.line,e.lineStart=r;continue;case 13:10===i.charCodeAt(r+1)?r+=2:++r,++e.line,e.lineStart=r;continue;case 35:return function(e,t){let i=e.source.body,n=i.length,r=t+1;for(;r<n;){let e=i.charCodeAt(r);if(10===e||13===e)break;if(v(e))++r;else if(g(i,r))r+=2;else break}return R(e,a.COMMENT,t,r,i.slice(t+1,r))}(e,r);case 33:return R(e,a.BANG,r,r+1);case 36:return R(e,a.DOLLAR,r,r+1);case 38:return R(e,a.AMP,r,r+1);case 40:return R(e,a.PAREN_L,r,r+1);case 41:return R(e,a.PAREN_R,r,r+1);case 46:if(46===i.charCodeAt(r+1)&&46===i.charCodeAt(r+2))return R(e,a.SPREAD,r,r+3);break;case 58:return R(e,a.COLON,r,r+1);case 61:return R(e,a.EQUALS,r,r+1);case 64:return R(e,a.AT,r,r+1);case 91:return R(e,a.BRACKET_L,r,r+1);case 93:return R(e,a.BRACKET_R,r,r+1);case 123:return R(e,a.BRACE_L,r,r+1);case 124:return R(e,a.PIPE,r,r+1);case 125:return R(e,a.BRACE_R,r,r+1);case 34:if(34===i.charCodeAt(r+1)&&34===i.charCodeAt(r+2))return function(e,t){let i=e.source.body,n=i.length,r=e.lineStart,s=t+3,o=s,l="",c=[];for(;s<n;){let n=i.charCodeAt(s);if(34===n&&34===i.charCodeAt(s+1)&&34===i.charCodeAt(s+2)){l+=i.slice(o,s),c.push(l);let n=R(e,a.BLOCK_STRING,t,s+3,(function(e){var t,i;let n=Number.MAX_SAFE_INTEGER,r=null,s=-1;for(let t=0;t<e.length;++t){let a=e[t],o=function(e){var t;let i=0;for(;i<e.length&&(9===(t=e.charCodeAt(i))||32===t);)++i;return i}(a);o!==a.length&&(r=null!==(i=r)&&void 0!==i?i:t,s=t,0!==t&&o<n&&(n=o))}return e.map((e,t)=>0===t?e:e.slice(n)).slice(null!==(t=r)&&void 0!==t?t:0,s+1)})(c).join("\n"));return e.line+=c.length-1,e.lineStart=r,n}if(92===n&&34===i.charCodeAt(s+1)&&34===i.charCodeAt(s+2)&&34===i.charCodeAt(s+3)){l+=i.slice(o,s),o=s+1,s+=4;continue}if(10===n||13===n){l+=i.slice(o,s),c.push(l),13===n&&10===i.charCodeAt(s+1)?s+=2:++s,l="",o=s,r=s;continue}if(v(n))++s;else if(g(i,s))s+=2;else throw I(e.source,s,"Invalid character within String: ".concat(C(e,s),"."))}throw I(e.source,s,"Unterminated string.")}(e,r);return function(e,t){let i=e.source.body,n=i.length,r=t+1,s=r,o="";for(;r<n;){let n=i.charCodeAt(r);if(34===n)return o+=i.slice(s,r),R(e,a.STRING,t,r+1,o);if(92===n){o+=i.slice(s,r);let t=117===i.charCodeAt(r+1)?123===i.charCodeAt(r+2)?function(e,t){let i=e.source.body,n=0,r=3;for(;r<12;){let e=i.charCodeAt(t+r++);if(125===e){if(r<5||!v(n))break;return{value:String.fromCodePoint(n),size:r}}if((n=n<<4|F(e))<0)break}throw I(e.source,t,'Invalid Unicode escape sequence: "'.concat(i.slice(t,t+r),'".'))}(e,r):function(e,t){let i=e.source.body,n=L(i,t+2);if(v(n))return{value:String.fromCodePoint(n),size:6};if(D(n)&&92===i.charCodeAt(t+6)&&117===i.charCodeAt(t+7)){let e=L(i,t+8);if(S(e))return{value:String.fromCodePoint(n,e),size:12}}throw I(e.source,t,'Invalid Unicode escape sequence: "'.concat(i.slice(t,t+6),'".'))}(e,r):function(e,t){let i=e.source.body;switch(i.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:" ",size:2}}throw I(e.source,t,'Invalid character escape sequence: "'.concat(i.slice(t,t+2),'".'))}(e,r);o+=t.value,r+=t.size,s=r;continue}if(10===n||13===n)break;if(v(n))++r;else if(g(i,r))r+=2;else throw I(e.source,r,"Invalid character within String: ".concat(C(e,r),"."))}throw I(e.source,r,"Unterminated string.")}(e,r)}if(O(t)||45===t)return function(e,t,i){let n=e.source.body,r=t,s=i,o=!1;if(45===s&&(s=n.charCodeAt(++r)),48===s){if(O(s=n.charCodeAt(++r)))throw I(e.source,r,"Invalid number, unexpected digit after 0: ".concat(C(e,r),"."))}else r=b(e,r,s),s=n.charCodeAt(r);if(46===s&&(o=!0,s=n.charCodeAt(++r),r=b(e,r,s),s=n.charCodeAt(r)),(69===s||101===s)&&(o=!0,(43===(s=n.charCodeAt(++r))||45===s)&&(s=n.charCodeAt(++r)),r=b(e,r,s),s=n.charCodeAt(r)),46===s||k(s))throw I(e.source,r,"Invalid number, expected digit but got: ".concat(C(e,r),"."));return R(e,o?a.FLOAT:a.INT,t,r,n.slice(t,r))}(e,r,t);if(k(t))return function(e,t){let i=e.source.body,n=i.length,r=t+1;for(;r<n;){var s;if(x(s=i.charCodeAt(r))||O(s)||95===s)++r;else break}return R(e,a.NAME,t,r,i.slice(t,r))}(e,r);throw I(e.source,r,39===t?"Unexpected single quote character ('), did you mean to use a double quote (\")?":v(t)||g(i,r)?"Unexpected character: ".concat(C(e,r),"."):"Invalid character: ".concat(C(e,r),"."))}return R(e,a.EOF,n,n)}(this,e.end);e.next=t,t.prev=e,e=t}while(e.kind===a.COMMENT);return e}constructor(e){let t=new A(a.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}}function v(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function g(e,t){return D(e.charCodeAt(t))&&S(e.charCodeAt(t+1))}function D(e){return e>=55296&&e<=56319}function S(e){return e>=56320&&e<=57343}function C(e,t){let i=e.source.body.codePointAt(t);if(void 0===i)return a.EOF;if(i>=32&&i<=126){let e=String.fromCodePoint(i);return'"'===e?"'\"'":'"'.concat(e,'"')}return"U+"+i.toString(16).toUpperCase().padStart(4,"0")}function R(e,t,i,n,r){let s=e.line,a=1+i-e.lineStart;return new A(t,i,n,s,a,r)}function b(e,t,i){if(!O(i))throw I(e.source,t,"Invalid number, expected digit but got: ".concat(C(e,t),"."));let n=e.source.body,r=t+1;for(;O(n.charCodeAt(r));)++r;return r}function L(e,t){return F(e.charCodeAt(t))<<12|F(e.charCodeAt(t+1))<<8|F(e.charCodeAt(t+2))<<4|F(e.charCodeAt(t+3))}function F(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function w(e,t){if(!e)throw Error(t)}class P{get[Symbol.toStringTag](){return"Source"}constructor(e,t="GraphQL request",i={line:1,column:1}){"string"==typeof e||w(!1,"Body must be a string. Received: ".concat(function e(t,i){switch(typeof t){case"string":return JSON.stringify(t);case"function":return t.name?"[function ".concat(t.name,"]"):"[function]";case"object":return function(t,i){if(null===t)return"null";if(i.includes(t))return"[Circular]";let n=[...i,t];if("function"==typeof t.toJSON){let i=t.toJSON();if(i!==t)return"string"==typeof i?i:e(i,n)}else if(Array.isArray(t))return function(t,i){if(0===t.length)return"[]";if(i.length>2)return"[Array]";let n=Math.min(10,t.length),r=t.length-n,s=[];for(let r=0;r<n;++r)s.push(e(t[r],i));return 1===r?s.push("... 1 more item"):r>1&&s.push("... ".concat(r," more items")),"["+s.join(", ")+"]"}(t,n);return function(t,i){let n=Object.entries(t);return 0===n.length?"{}":i.length>2?"["+function(e){let t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){let t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}(t)+"]":"{ "+n.map(t=>{let[n,r]=t;return n+": "+e(r,i)}).join(", ")+" }"}(t,n)}(t,i);default:return String(t)}}(e,[]),".")),this.body=e,this.name=t,this.locationOffset=i,this.locationOffset.line>0||w(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||w(!1,"column in locationOffset is 1-indexed and must be positive.")}}class M{parseName(){let e=this.expectToken(a.NAME);return this.node(e,{kind:s.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:s.DOCUMENT,definitions:this.many(a.SOF,this.parseDefinition,a.EOF)})}parseDefinition(){if(this.peek(a.BRACE_L))return this.parseOperationDefinition();let e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(t.kind===a.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(e)throw I(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(t)}parseOperationDefinition(){let e;let t=this._lexer.token;if(this.peek(a.BRACE_L))return this.node(t,{kind:s.OPERATION_DEFINITION,operation:n.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let i=this.parseOperationType();return this.peek(a.NAME)&&(e=this.parseName()),this.node(t,{kind:s.OPERATION_DEFINITION,operation:i,name:e,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let e=this.expectToken(a.NAME);switch(e.value){case"query":return n.QUERY;case"mutation":return n.MUTATION;case"subscription":return n.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(a.PAREN_L,this.parseVariableDefinition,a.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:s.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(a.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(a.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let e=this._lexer.token;return this.expectToken(a.DOLLAR),this.node(e,{kind:s.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:s.SELECTION_SET,selections:this.many(a.BRACE_L,this.parseSelection,a.BRACE_R)})}parseSelection(){return this.peek(a.SPREAD)?this.parseFragment():this.parseField()}parseField(){let e,t;let i=this._lexer.token,n=this.parseName();return this.expectOptionalToken(a.COLON)?(e=n,t=this.parseName()):t=n,this.node(i,{kind:s.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(a.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){let t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(a.PAREN_L,t,a.PAREN_R)}parseArgument(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this._lexer.token,i=this.parseName();return this.expectToken(a.COLON),this.node(t,{kind:s.ARGUMENT,name:i,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let e=this._lexer.token;this.expectToken(a.SPREAD);let t=this.expectOptionalKeyword("on");return!t&&this.peek(a.NAME)?this.node(e,{kind:s.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:s.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){var e;let t=this._lexer.token;return(this.expectKeyword("fragment"),(null===(e=this._options)||void 0===e?void 0:e.allowLegacyFragmentVariables)===!0)?this.node(t,{kind:s.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(t,{kind:s.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(e){let t=this._lexer.token;switch(t.kind){case a.BRACKET_L:return this.parseList(e);case a.BRACE_L:return this.parseObject(e);case a.INT:return this._lexer.advance(),this.node(t,{kind:s.INT,value:t.value});case a.FLOAT:return this._lexer.advance(),this.node(t,{kind:s.FLOAT,value:t.value});case a.STRING:case a.BLOCK_STRING:return this.parseStringLiteral();case a.NAME:switch(this._lexer.advance(),t.value){case"true":return this.node(t,{kind:s.BOOLEAN,value:!0});case"false":return this.node(t,{kind:s.BOOLEAN,value:!1});case"null":return this.node(t,{kind:s.NULL});default:return this.node(t,{kind:s.ENUM,value:t.value})}case a.DOLLAR:if(e){if(this.expectToken(a.DOLLAR),this._lexer.token.kind===a.NAME){let e=this._lexer.token.value;throw I(this._lexer.source,t.start,'Unexpected variable "$'.concat(e,'" in constant value.'))}throw this.unexpected(t)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){let e=this._lexer.token;return this._lexer.advance(),this.node(e,{kind:s.STRING,value:e.value,block:e.kind===a.BLOCK_STRING})}parseList(e){return this.node(this._lexer.token,{kind:s.LIST,values:this.any(a.BRACKET_L,()=>this.parseValueLiteral(e),a.BRACKET_R)})}parseObject(e){return this.node(this._lexer.token,{kind:s.OBJECT,fields:this.any(a.BRACE_L,()=>this.parseObjectField(e),a.BRACE_R)})}parseObjectField(e){let t=this._lexer.token,i=this.parseName();return this.expectToken(a.COLON),this.node(t,{kind:s.OBJECT_FIELD,name:i,value:this.parseValueLiteral(e)})}parseDirectives(e){let t=[];for(;this.peek(a.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){let t=this._lexer.token;return this.expectToken(a.AT),this.node(t,{kind:s.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){let e;let t=this._lexer.token;if(this.expectOptionalToken(a.BRACKET_L)){let i=this.parseTypeReference();this.expectToken(a.BRACKET_R),e=this.node(t,{kind:s.LIST_TYPE,type:i})}else e=this.parseNamedType();return this.expectOptionalToken(a.BANG)?this.node(t,{kind:s.NON_NULL_TYPE,type:e}):e}parseNamedType(){return this.node(this._lexer.token,{kind:s.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(a.STRING)||this.peek(a.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");let i=this.parseConstDirectives(),n=this.many(a.BRACE_L,this.parseOperationTypeDefinition,a.BRACE_R);return this.node(e,{kind:s.SCHEMA_DEFINITION,description:t,directives:i,operationTypes:n})}parseOperationTypeDefinition(){let e=this._lexer.token,t=this.parseOperationType();this.expectToken(a.COLON);let i=this.parseNamedType();return this.node(e,{kind:s.OPERATION_TYPE_DEFINITION,operation:t,type:i})}parseScalarTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");let i=this.parseName(),n=this.parseConstDirectives();return this.node(e,{kind:s.SCALAR_TYPE_DEFINITION,description:t,name:i,directives:n})}parseObjectTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");let i=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(e,{kind:s.OBJECT_TYPE_DEFINITION,description:t,name:i,interfaces:n,directives:r,fields:a})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(a.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(a.BRACE_L,this.parseFieldDefinition,a.BRACE_R)}parseFieldDefinition(){let e=this._lexer.token,t=this.parseDescription(),i=this.parseName(),n=this.parseArgumentDefs();this.expectToken(a.COLON);let r=this.parseTypeReference(),o=this.parseConstDirectives();return this.node(e,{kind:s.FIELD_DEFINITION,description:t,name:i,arguments:n,type:r,directives:o})}parseArgumentDefs(){return this.optionalMany(a.PAREN_L,this.parseInputValueDef,a.PAREN_R)}parseInputValueDef(){let e;let t=this._lexer.token,i=this.parseDescription(),n=this.parseName();this.expectToken(a.COLON);let r=this.parseTypeReference();this.expectOptionalToken(a.EQUALS)&&(e=this.parseConstValueLiteral());let o=this.parseConstDirectives();return this.node(t,{kind:s.INPUT_VALUE_DEFINITION,description:i,name:n,type:r,defaultValue:e,directives:o})}parseInterfaceTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");let i=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(e,{kind:s.INTERFACE_TYPE_DEFINITION,description:t,name:i,interfaces:n,directives:r,fields:a})}parseUnionTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");let i=this.parseName(),n=this.parseConstDirectives(),r=this.parseUnionMemberTypes();return this.node(e,{kind:s.UNION_TYPE_DEFINITION,description:t,name:i,directives:n,types:r})}parseUnionMemberTypes(){return this.expectOptionalToken(a.EQUALS)?this.delimitedMany(a.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");let i=this.parseName(),n=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();return this.node(e,{kind:s.ENUM_TYPE_DEFINITION,description:t,name:i,directives:n,values:r})}parseEnumValuesDefinition(){return this.optionalMany(a.BRACE_L,this.parseEnumValueDefinition,a.BRACE_R)}parseEnumValueDefinition(){let e=this._lexer.token,t=this.parseDescription(),i=this.parseEnumValueName(),n=this.parseConstDirectives();return this.node(e,{kind:s.ENUM_VALUE_DEFINITION,description:t,name:i,directives:n})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw I(this._lexer.source,this._lexer.token.start,"".concat(U(this._lexer.token)," is reserved and cannot be used for an enum value."));return this.parseName()}parseInputObjectTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");let i=this.parseName(),n=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();return this.node(e,{kind:s.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:i,directives:n,fields:r})}parseInputFieldsDefinition(){return this.optionalMany(a.BRACE_L,this.parseInputValueDef,a.BRACE_R)}parseTypeSystemExtension(){let e=this._lexer.lookahead();if(e.kind===a.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}parseSchemaExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");let t=this.parseConstDirectives(),i=this.optionalMany(a.BRACE_L,this.parseOperationTypeDefinition,a.BRACE_R);if(0===t.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:s.SCHEMA_EXTENSION,directives:t,operationTypes:i})}parseScalarTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");let t=this.parseName(),i=this.parseConstDirectives();if(0===i.length)throw this.unexpected();return this.node(e,{kind:s.SCALAR_TYPE_EXTENSION,name:t,directives:i})}parseObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");let t=this.parseName(),i=this.parseImplementsInterfaces(),n=this.parseConstDirectives(),r=this.parseFieldsDefinition();if(0===i.length&&0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:s.OBJECT_TYPE_EXTENSION,name:t,interfaces:i,directives:n,fields:r})}parseInterfaceTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");let t=this.parseName(),i=this.parseImplementsInterfaces(),n=this.parseConstDirectives(),r=this.parseFieldsDefinition();if(0===i.length&&0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:s.INTERFACE_TYPE_EXTENSION,name:t,interfaces:i,directives:n,fields:r})}parseUnionTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");let t=this.parseName(),i=this.parseConstDirectives(),n=this.parseUnionMemberTypes();if(0===i.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:s.UNION_TYPE_EXTENSION,name:t,directives:i,types:n})}parseEnumTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");let t=this.parseName(),i=this.parseConstDirectives(),n=this.parseEnumValuesDefinition();if(0===i.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:s.ENUM_TYPE_EXTENSION,name:t,directives:i,values:n})}parseInputObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");let t=this.parseName(),i=this.parseConstDirectives(),n=this.parseInputFieldsDefinition();if(0===i.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:s.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:i,fields:n})}parseDirectiveDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(a.AT);let i=this.parseName(),n=this.parseArgumentDefs(),r=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let o=this.parseDirectiveLocations();return this.node(e,{kind:s.DIRECTIVE_DEFINITION,description:t,name:i,arguments:n,repeatable:r,locations:o})}parseDirectiveLocations(){return this.delimitedMany(a.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(r,t.value))return t;throw this.unexpected(e)}node(e,t){var i;return(null===(i=this._options)||void 0===i?void 0:i.noLocation)!==!0&&(t.loc=new _(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){let t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t;throw I(this._lexer.source,t.start,"Expected ".concat(B(e),", found ").concat(U(t),"."))}expectOptionalToken(e){return this._lexer.token.kind===e&&(this._lexer.advance(),!0)}expectKeyword(e){let t=this._lexer.token;if(t.kind===a.NAME&&t.value===e)this._lexer.advance();else throw I(this._lexer.source,t.start,'Expected "'.concat(e,'", found ').concat(U(t),"."))}expectOptionalKeyword(e){let t=this._lexer.token;return t.kind===a.NAME&&t.value===e&&(this._lexer.advance(),!0)}unexpected(e){let t=null!=e?e:this._lexer.token;return I(this._lexer.source,t.start,"Unexpected ".concat(U(t),"."))}any(e,t,i){this.expectToken(e);let n=[];for(;!this.expectOptionalToken(i);)n.push(t.call(this));return n}optionalMany(e,t,i){if(this.expectOptionalToken(e)){let e=[];do e.push(t.call(this));while(!this.expectOptionalToken(i));return e}return[]}many(e,t,i){this.expectToken(e);let n=[];do n.push(t.call(this));while(!this.expectOptionalToken(i));return n}delimitedMany(e,t){this.expectOptionalToken(e);let i=[];do i.push(t.call(this));while(this.expectOptionalToken(e));return i}constructor(e,t){let i=e instanceof P?e:new P(e);this._lexer=new y(i),this._options=t}}function U(e){let t=e.value;return B(e.kind)+(null!=t?' "'.concat(t,'"'):"")}function B(e){return e===a.BANG||e===a.DOLLAR||e===a.AMP||e===a.PAREN_L||e===a.PAREN_R||e===a.SPREAD||e===a.COLON||e===a.EQUALS||e===a.AT||e===a.BRACKET_L||e===a.BRACKET_R||e===a.BRACE_L||e===a.PIPE||e===a.BRACE_R?'"'.concat(e,'"'):e}var V=new Map,j=new Map,K=!0,G=!1;function Y(e){return e.replace(/[\s,]+/g," ").trim()}function J(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];"string"==typeof e&&(e=[e]);var n=e[0];return t.forEach(function(t,i){t&&"Document"===t.kind?n+=t.loc.source.body:n+=t,n+=e[i+1]}),function(e){var t=Y(e);if(!V.has(t)){var i,n,r,s,a,o=new M(e,{experimentalFragmentVariables:G,allowLegacyFragmentVariables:G}).parseDocument();if(!o||"Document"!==o.kind)throw Error("Not a valid GraphQL document.");V.set(t,(i=new Set,n=[],o.definitions.forEach(function(e){if("FragmentDefinition"===e.kind){var t,r=e.name.value,s=Y((t=e.loc).source.body.substring(t.start,t.end)),a=j.get(r);a&&!a.has(s)?K&&console.warn("Warning: fragment with name "+r+" 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"):a||j.set(r,a=new Set),a.add(s),i.has(s)||(i.add(s),n.push(e))}else n.push(e)}),r=(0,p.__assign)((0,p.__assign)({},o),{definitions:n}),(s=new Set(r.definitions)).forEach(function(e){e.loc&&delete e.loc,Object.keys(e).forEach(function(t){var i=e[t];i&&"object"==typeof i&&s.add(i)})}),(a=r.loc)&&(delete a.startToken,delete a.endToken),r))}return V.get(t)}(n)}var q={gql:J,resetCaches:function(){V.clear(),j.clear()},disableFragmentWarnings:function(){K=!1},enableExperimentalFragmentVariables:function(){G=!0},disableExperimentalFragmentVariables:function(){G=!1}};(u=J||(J={})).gql=q.gql,u.resetCaches=q.resetCaches,u.disableFragmentWarnings=q.disableFragmentWarnings,u.enableExperimentalFragmentVariables=q.enableExperimentalFragmentVariables,u.disableExperimentalFragmentVariables=q.disableExperimentalFragmentVariables,J.default=J},57023:function(e,t,i){var n=function(){return(n=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},r=i(71870),s=i(99097),a=function(){return!0};t.ZP={set:function(e,t,i,o){if(e&&e.res&&e.res.getHeader&&e.res.setHeader){var l=e.res.getHeader("Set-Cookie")||[];"string"==typeof l&&(l=[l]),"number"==typeof l&&(l=[]);var c=s.parse(l),h=[];c.forEach(function(e){var s,a,l,c;!0===(s=o.sameSite)&&(s="strict"),(void 0===s||!1===s)&&(s="lax"),a=n(n({},o),{sameSite:s}),delete a.encode,l=n({name:t,value:i},a),c=e.sameSite===l.sameSite,"string"==typeof e.sameSite&&"string"==typeof l.sameSite&&(c=e.sameSite.toLowerCase()===l.sameSite.toLowerCase()),function(e,t){var i=Object.getOwnPropertyNames(e),n=Object.getOwnPropertyNames(t);if(i.length!==n.length)return!1;for(var r=0;r<i.length;r++){var s=i[r];if(e[s]!==t[s])return!1}return!0}(n(n({},e),{sameSite:void 0}),n(n({},l),{sameSite:void 0}))&&c||h.push(r.serialize(e.name,e.value,n({encode:function(e){return e}},e)))}),h.push(r.serialize(t,i,o)),e.res.finished||e.res.setHeader("Set-Cookie",h)}if(a()){if(o&&o.httpOnly)throw Error("Can not set a httpOnly cookie in the browser.");document.cookie=r.serialize(t,i,o)}return{}},get:function(e,t){return e&&e.req&&e.req.headers&&e.req.headers.cookie?r.parse(e.req.headers.cookie,t):a()?r.parse(document.cookie,t):{}},destroy:function(e,t,i){var s=n(n({},i||{}),{maxAge:-1});if(e&&e.res&&e.res.setHeader&&e.res.getHeader){var o=e.res.getHeader("Set-Cookie")||[];"string"==typeof o&&(o=[o]),"number"==typeof o&&(o=[]),o.push(r.serialize(t,"",s)),e.res.setHeader("Set-Cookie",o)}return a()&&(document.cookie=r.serialize(t,"",s)),{}}}},99097:function(e){var t={decodeValues:!0,map:!1,silent:!1};function i(e){return"string"==typeof e&&!!e.trim()}function n(e,n){var r,s,a,o,l=e.split(";").filter(i),c=(r=l.shift(),s="",a="",(o=r.split("=")).length>1?(s=o.shift(),a=o.join("=")):a=r,{name:s,value:a}),h=c.name,u=c.value;n=n?Object.assign({},t,n):t;try{u=n.decodeValues?decodeURIComponent(u):u}catch(e){console.error("set-cookie-parser encountered an error while decoding a cookie with value '"+u+"'. Set options.decodeValues to false to disable this feature.",e)}var p={name:h,value:u};return l.forEach(function(e){var t=e.split("="),i=t.shift().trimLeft().toLowerCase(),n=t.join("=");"expires"===i?p.expires=new Date(n):"max-age"===i?p.maxAge=parseInt(n,10):"secure"===i?p.secure=!0:"httponly"===i?p.httpOnly=!0:"samesite"===i?p.sameSite=n:p[i]=n}),p}function r(e,r){if(r=r?Object.assign({},t,r):t,!e)return r.map?{}:[];if(e.headers){if("function"==typeof e.headers.getSetCookie)e=e.headers.getSetCookie();else if(e.headers["set-cookie"])e=e.headers["set-cookie"];else{var s=e.headers[Object.keys(e.headers).find(function(e){return"set-cookie"===e.toLowerCase()})];s||!e.headers.cookie||r.silent||console.warn("Warning: set-cookie-parser appears to have been called on a request object. It is designed to parse Set-Cookie headers from responses, not Cookie headers from requests. Set the option {silent: true} to suppress this warning."),e=s}}return(Array.isArray(e)||(e=[e]),(r=r?Object.assign({},t,r):t).map)?e.filter(i).reduce(function(e,t){var i=n(t,r);return e[i.name]=i,e},{}):e.filter(i).map(function(e){return n(e,r)})}e.exports=r,e.exports.parse=r,e.exports.parseString=n,e.exports.splitCookiesString=function(e){if(Array.isArray(e))return e;if("string"!=typeof e)return[];var t,i,n,r,s,a=[],o=0;function l(){for(;o<e.length&&/\s/.test(e.charAt(o));)o+=1;return o<e.length}for(;o<e.length;){for(t=o,s=!1;l();)if(","===(i=e.charAt(o))){for(n=o,o+=1,l(),r=o;o<e.length&&"="!==(i=e.charAt(o))&&";"!==i&&","!==i;)o+=1;o<e.length&&"="===e.charAt(o)?(s=!0,o=r,a.push(e.substring(t,n)),t=o):o=n+1}else o+=1;(!s||o>=e.length)&&a.push(e.substring(t,e.length))}return a}}}]);