PageSourceSearch

https://www.clubic.com/_next/static/chunks/api-sdk-e327fae608728cc8.js

js clubic.com collected 2026-09-24 08:28:21 UTC 84,696 bytes, 924 lines download raw bytes

1try{!function(){var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="cd94f82b-2142-4a7a-b0a9-6ed4dbc966a7",e._sentryDebugIdIdentifier="sentry-dbid-cd94f82b-2142-4a7a-b0a9-6ed4dbc966a7")}()}catch(e){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3858],{6096:(e,t,n)=>{n.d(t,{HQ:()=>c,JG:()=>s,ct:()=>o,s6:()=>u});var i=n(72660),r=n(10759),a=n(13906);function o(e,t){var n=t,a=[];return e.definitions.forEach(function(e){if("OperationDefinition"===e.kind)throw(0,r.vA)(85,e.operation,e.name?" named '".concat(e.name.value,"'"):"");"FragmentDefinition"===e.kind&&a.push(e)}),void 0===n&&((0,r.V1)(1===a.length,86,a.length),n=a[0].name.value),(0,i.Cl)((0,i.Cl)({},e),{definitions:(0,i.fX)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:n}}]}}],e.definitions,!0)})}function s(e){void 0===e&&(e=[]);var t={};return e.forEach(function(e){t[e.name.value]=e}),t}function c(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":var n=e.name.value;if("function"==typeof t)return t(n);var i=t&&t[n];return(0,r.V1)(i,87,n),i||null;default:return null}}function u(e){var t=!0;return(0,a.YR)(e,{FragmentSpread:function(e){if(!(t=!!e.directives&&e.directives.some(function(e){return"unmask"===e.name.value})))return a.sP}}),t}},8370:(e,t,n)=>{n.d(t,{X:()=>o});var i=n(95751),r=n(10443);let a=(0,i.J1)`
2  mutation rateSoftware($sourceId: String!, $rate: Float!, $type: String!, $token: String!) {
3    rateSoftware(sourceId: $sourceId, rate: $rate, type: $type, token: $token) {
4      message
5    }
6  }
7`,o=e=>{let[t,{data:n,loading:i}]=(0,r.n)(a,e);return[t,n?.rateSoftware?.message,i]}},9794:(e,t,n)=>{n.d(t,{BC:()=>k,Bq:()=>E,Jm:()=>N,Tu:()=>D,checkIsConnected:()=>A,gD:()=>f,mP:()=>O,r3:()=>T,tT:()=>S});var i=n(29205),r=n(95751),a=n(4338),o=n(7620);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach(function(t){(0,i.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}let u=(e,t=[],n=[])=>{let i=new Map;return[...t,...n].forEach(t=>{t&&i.set(e(t),t)}),[...i.values()]},l=async(e,t,n,i)=>{await n(c(c({},e),{},{offset:0})),await (e=>{let t=[];for(let n=19;n<=e;n+=19)t.push(n);return t})(t).reduce((t,n)=>t.then(()=>i(c(c({},e),{},{offset:n}))),Promise.resolve(void 0))},p=(0,r.J1)`
8  query GetTopic($id: ID!, $userToken: String, $offset: Int) {
9    topicByExternalId(id: $id, userToken: $userToken, offset: $offset) {
10      id
11      likeCount
12      closed
13      title
14      postsCount
15      validReactions
16      topicPost {
17        id
18        topicId
19        actionsSummary {
20          actionId
21          canAct
22          count
23          acted
24        }
25        reactions {
26          id
27          type
28          count
29        }
30        currentUserReaction {
31          id
32          type
33          canUndo
34        }
35        currentUserUsedMainReaction
36      }
37      postStream {
38        posts {
39          id
40          yours
41          topicId
42          avatarTemplate
43          replyToPostNumber
44          createdAt
45          name
46          username
47          primaryGroupName
48          badges {
49            id
50            name
51          }
52          postNumber
53          cooked
54          actionsSummary {
55            actionId
56            canAct
57            count
58            acted
59          }
60          reactions {
61            id
62            type
63            count
64          }
65          currentUserReaction {
66            id
67            type
68            canUndo
69          }
70          currentUserUsedMainReaction
71        }
72        allPosts {
73          postNumber
74          username
75          replyToPostNumber
76        }
77        streams
78      }
79    }
80  }
81`,d=(0,r.J1)`
82  query GetReactionUsers($postId: Int!) {
83    reactionUsers(postId: $postId) {
84      id
85      count
86      users {
87        username
88        name
89        avatarTemplate
90        reaction
91      }
92    }
93  }
94`,f=async(e,t)=>{let{data:n}=await e.query({query:d,variables:{postId:t},fetchPolicy:"network-only"});return n?.reactionUsers??[]};(0,r.J1)`
95  mutation GetSsoPayload($return_sso_url: String!, $referer: String!) {
96    sso(return_sso_url: $return_sso_url, referer: $referer) {
97      sig
98      sso
99    }
100  }
101`;let m=(0,r.J1)`
102  mutation CheckSsoResponse($sso: String!, $sig: String!) {
103    ssoResponse(sso: $sso, sig: $sig) {
104      isConnected
105      userToken
106      email
107      username
108      referer
109    }
110  }
111`,h=(0,r.J1)`
112  mutation CheckSsoConnected {
113    ssoStatus {
114      isValid
115      username
116      avatar
117      email
118      hasActiveSubscription
119      userToken
120      roles
121      permissions {
122        communityAccess
123        communityModerate
124      }
125    }
126  }
127`,v=(0,r.J1)`
128  mutation AddCommentTopic($topicId: Int, $postId: Int, $raw: String, $itemId: String) {
129    addComment(topicId: $topicId, postId: $postId, raw: $raw, itemId: $itemId) {
130      topicId
131    }
132  }
133`,y=(0,r.J1)`
134  mutation LikeComment($postId: Int, $type: String) {
135    likeComment(postId: $postId, type: $type) {
136      topicId
137    }
138  }
139`,g=(0,r.J1)`
140  mutation ReactComment($postId: Int!, $reaction: String!) {
141    reactComment(postId: $postId, reaction: $reaction) {
142      topicId
143    }
144  }
145`,b=(0,r.J1)`
146  mutation ReactToItem($itemId: ID!, $reaction: String!) {
147    reactToItem(itemId: $itemId, reaction: $reaction) {
148      id
149      postsCount
150      validReactions
151      topicPost {
152        id
153        topicId
154        reactions {
155          id
156          type
157          count
158        }
159        currentUserReaction {
160          id
161          type
162          canUndo
163        }
164      }
165    }
166  }
167`,I=(0,r.J1)`
168  mutation deleteComment($postId: Int) {
169    deleteComment(postId: $postId)
170  }
171`,E=()=>{let[e,{loading:t,error:n,data:i,fetchMore:r,refetch:s}]=(0,a._)(p),d=(0,o.useCallback)(t=>e(c(c({},t),{},{fetchPolicy:"network-only"})),[e]),f=(0,o.useCallback)(async e=>{await r({updateQuery:(e,{fetchMoreResult:t})=>{let n,i;return c(c({},e),{},{topicByExternalId:c(c({},e.topicByExternalId),{},{postStream:(n=e.topicByExternalId.postStream,i=t.topicByExternalId.postStream,c(c(c({},n),i),{},{posts:u(({id:e})=>e,n?.posts,i?.posts),allPosts:u(({postNumber:e})=>e,n?.allPosts,i?.allPosts)}))})})},variables:e})},[r]),m=(0,o.useCallback)(async(t,n=0)=>{await l(t,n,t=>e({variables:t,fetchPolicy:"network-only"}),f)},[f,e]);return{refetch:s,fetchData:d,fetchMoreComments:f,refreshLoadedComments:m,loading:t,error:n,topic:i?.topicByExternalId}},T=(e,t,n)=>e.mutate({mutation:m,variables:{sso:t,sig:n}}),k=(e,t,n,i,r=null)=>e.mutate({mutation:v,variables:{topicId:t,postId:n,raw:i,itemId:r}}),S=(e,t,n)=>e.mutate({mutation:y,variables:{postId:t,type:n}}),N=(e,t,n)=>e.mutate({mutation:g,variables:{postId:t,reaction:n}}),O=(e,t,n)=>e.mutate({mutation:b,variables:{itemId:t,reaction:n}}),D=(e,t)=>e.mutate({mutation:I,variables:{postId:t}}),A=async e=>{let{data:t}=await e.mutate({mutation:h});return t?.ssoStatus}},10626:(e,t,n)=>{n.d(t,{y:()=>y});var i,r=n(13906),a=n(73508),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,i=l("(",c(e.variableDefinitions,", "),")"),r=c(e.directives," "),a=e.selectionSet;return n||r||i||"query"!==t?c([t,c([n,i]),r,a]," "):a},VariableDefinition:function(e){var t=e.variable,n=e.type,i=e.defaultValue,r=e.directives;return t+": "+n+l(" = ",i)+l(" ",c(r," "))},SelectionSet:function(e){return u(e.selections)},Field:function(e){var t=e.alias,n=e.name,i=e.arguments,r=e.directives,a=e.selectionSet,o=l("",t,": ")+n,s=o+l("(",c(i,", "),")");return s.length>80&&(s=o+l("(\n",p(c(i,"\n")),"\n)")),c([s,c(r," "),a]," ")},Argument:function(e){return e.name+": "+e.value},FragmentSpread:function(e){return"..."+e.name+l(" ",c(e.directives," "))},InlineFragment:function(e){var t=e.typeCondition,n=e.directives,i=e.selectionSet;return c(["...",l("on ",t),c(n," "),i]," ")},FragmentDefinition:function(e){var t=e.name,n=e.typeCondition,i=e.variableDefinitions,r=e.directives,a=e.selectionSet;return"fragment ".concat(t).concat(l("(",c(i,", "),")")," ")+"on ".concat(n," ").concat(l("",c(r," ")," "))+a},IntValue:function(e){return e.value},FloatValue:function(e){return e.value},StringValue:function(e,t){var n=e.value;return e.block?(0,a.yo)(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}
171,Directive:function(e){return"@"+e.name+l("(",c(e.arguments,", "),")")},NamedType:function(e){return e.name},ListType:function(e){return"["+e.type+"]"},NonNullType:function(e){return e.type+"!"},SchemaDefinition:s(function(e){var t=e.directives,n=e.operationTypes;return c(["schema",c(t," "),u(n)]," ")}),OperationTypeDefinition:function(e){return e.operation+": "+e.type},ScalarTypeDefinition:s(function(e){return c(["scalar",e.name,c(e.directives," ")]," ")}),ObjectTypeDefinition:s(function(e){var t=e.name,n=e.interfaces,i=e.directives,r=e.fields;return c(["type",t,l("implements ",c(n," & ")),c(i," "),u(r)]," ")}),FieldDefinition:s(function(e){var t=e.name,n=e.arguments,i=e.type,r=e.directives;return t+(f(n)?l("(\n",p(c(n,"\n")),"\n)"):l("(",c(n,", "),")"))+": "+i+l(" ",c(r," "))}),InputValueDefinition:s(function(e){var t=e.name,n=e.type,i=e.defaultValue,r=e.directives;return c([t+": "+n,l("= ",i),c(r," ")]," ")}),InterfaceTypeDefinition:s(function(e){var t=e.name,n=e.interfaces,i=e.directives,r=e.fields;return c(["interface",t,l("implements ",c(n," & ")),c(i," "),u(r)]," ")}),UnionTypeDefinition:s(function(e){var t=e.name,n=e.directives,i=e.types;return c(["union",t,c(n," "),i&&0!==i.length?"= "+c(i," | "):""]," ")}),EnumTypeDefinition:s(function(e){var t=e.name,n=e.directives,i=e.values;return c(["enum",t,c(n," "),u(i)]," ")}),EnumValueDefinition:s(function(e){return c([e.name,c(e.directives," ")]," ")}),InputObjectTypeDefinition:s(function(e){var t=e.name,n=e.directives,i=e.fields;return c(["input",t,c(n," "),u(i)]," ")}),DirectiveDefinition:s(function(e){var t=e.name,n=e.arguments,i=e.repeatable,r=e.locations;return"directive @"+t+(f(n)?l("(\n",p(c(n,"\n")),"\n)"):l("(",c(n,", "),")"))+(i?" repeatable":"")+" on "+c(r," | ")}),SchemaExtension:function(e){var t=e.directives,n=e.operationTypes;return c(["extend schema",c(t," "),u(n)]," ")},ScalarTypeExtension:function(e){return c(["extend scalar",e.name,c(e.directives," ")]," ")},ObjectTypeExtension:function(e){var t=e.name,n=e.interfaces,i=e.directives,r=e.fields;return c(["extend type",t,l("implements ",c(n," & ")),c(i," "),u(r)]," ")},InterfaceTypeExtension:function(e){var t=e.name,n=e.interfaces,i=e.directives,r=e.fields;return c(["extend interface",t,l("implements ",c(n," & ")),c(i," "),u(r)]," ")},UnionTypeExtension:function(e){var t=e.name,n=e.directives,i=e.types;return c(["extend union",t,c(n," "),i&&0!==i.length?"= "+c(i," | "):""]," ")},EnumTypeExtension:function(e){var t=e.name,n=e.directives,i=e.values;return c(["extend enum",t,c(n," "),u(i)]," ")},InputObjectTypeExtension:function(e){var t=e.name,n=e.directives,i=e.fields;return c(["extend input",t,c(n," "),u(i)]," ")}};function s(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))?t:""}function u(e){return l("{\n",p(c(e,"\n")),"\n}")}function l(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return null!=t&&""!==t?e+t+n:""}function p(e){return l("  ",e.replace(/\n/g,"\n  "))}function d(e){return -1!==e.indexOf("\n")}function f(e){return null!=e&&e.some(d)}var m=n(58660),h=n(44991),v=n(19600),y=Object.assign(function(e){var t=i.get(e);return t||(t=(0,r.YR)(e,{leave:o}),i.set(e,t)),t},{reset:function(){i=new m.A(h.v.print||2e3)}});y.reset(),!1!==globalThis.__DEV__&&(0,v.D_)("print",function(){return i?i.size:0})},11986:(e,t,n)=>{n.d(t,{A:()=>a});var i=n(69222);function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e){return function e(t,n){switch(r(t)){case"string":return JSON.stringify(t);case"function":return t.name?"[function ".concat(t.name,"]"):"[function]";case"object":if(null===t)return"null";return function(t,n){if(-1!==n.indexOf(t))return"[Circular]";var r,a,o,s,c,u=[].concat(n,[t]),l="function"==typeof(a=(r=t)[String(i.A)])?a:"function"==typeof r.inspect?r.inspect:void 0;if(void 0!==l){var p=l.call(t);if(p!==t)return"string"==typeof p?p:e(p,u)}else if(Array.isArray(t)){var d=t,f=u;if(0===d.length)return"[]";if(f.length>2)return"[Array]";for(var m=Math.min(10,d.length),h=d.length-m,v=[],y=0;y<m;++y)v.push(e(d[y],f));return 1===h?v.push("... 1 more item"):h>1&&v.push("... ".concat(h," more items")),"["+v.join(", ")+"]"}return o=t,s=u,0===(c=Object.keys(o)).length?"{}":s.length>2?"["+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}(o)+"]":"{ "+c.map(function(t){var n=e(o[t],s);return t+": "+n}).join(", ")+" }"}(t,n);default:return String(t)}}(e,[])}},13906:(e,t,n)=>{n.d(t,{YR:()=>s,sP:()=>o});var i=n(11986),r=n(56500),a={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],Float
171Value:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},o=Object.freeze({});function s(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a,s=void 0,c=Array.isArray(e),u=[e],l=-1,p=[],d=void 0,f=void 0,m=void 0,h=[],v=[],y=e;do{var g,b=++l===u.length,I=b&&0!==p.length;if(b){if(f=0===v.length?void 0:h[h.length-1],d=m,m=v.pop(),I){if(c)d=d.slice();else{for(var E={},T=0,k=Object.keys(d);T<k.length;T++){var S=k[T];E[S]=d[S]}d=E}for(var N=0,O=0;O<p.length;O++){var D=p[O][0],A=p[O][1];c&&(D-=N),c&&null===A?(d.splice(D,1),N++):d[D]=A}}l=s.index,u=s.keys,p=s.edits,c=s.inArray,s=s.prev}else{if(f=m?c?l:u[l]:void 0,null==(d=m?m[f]:y))continue;m&&h.push(f)}var _=void 0;if(!Array.isArray(d)){if(!(0,r.Ll)(d))throw Error("Invalid AST Node: ".concat((0,i.A)(d),"."));var w=function(e,t,n){var i=e[t];if(i){if(!n&&"function"==typeof i)return i;var r=n?i.leave:i.enter;if("function"==typeof r)return r}else{var a=n?e.leave:e.enter;if(a){if("function"==typeof a)return a;var o=a[t];if("function"==typeof o)return o}}}(t,d.kind,b);if(w){if((_=w.call(t,d,f,m,h,v))===o)break;if(!1===_){if(!b){h.pop();continue}}else if(void 0!==_&&(p.push([f,_]),!b))if((0,r.Ll)(_))d=_;else{h.pop();continue}}}void 0===_&&I&&p.push([f,d]),b?h.pop():(s={inArray:c,index:l,keys:u,edits:p,prev:s},u=(c=Array.isArray(d))?d:null!=(g=n[d.kind])?g:[],l=-1,p=[],m&&v.push(m),m=d)}while(void 0!==s);return 0!==p.length&&(y=p[p.length-1][1]),y}},16729:(e,t,n)=>{n.d(t,{i:()=>c});var i=n(95751),r=n(4338),a=n(7620),o=n(94243);let s=(0,i.J1)`
172  ${o.s}
173  query GetGenericItemBySection(
174    $sectionId: ID!
175    $sort: String
176    $dataSheetFilters: [DataSheetFilter]
177    $from: Int0to10000
178    $size: Int0to200
179    $tag: String
180  ) {
181    genericItemBySection(
182      sectionId: $sectionId
183      dataSheetFilters: $dataSheetFilters
184      sort: $sort
185      from: $from
186      size: $size
187      tag: $tag
188    ) {
189      total
190      genericItems {
191        ...GenericItem
192      }
193    }
194  }
195`,c=e=>{let[t,{called:n,loading:i,data:o,fetchMore:c,error:u,networkStatus:l,client:p}]=(0,r._)(s,e),{0:d,1:f}=(0,a.useState)(o),{0:m,1:h}=(0,a.useState)(n);return(0,a.useEffect)(()=>{f(o)},[o]),{networkStatus:l,loading:i,error:u,result:d,called:m,fetchData:(0,a.useCallback)(e=>{if(e.reset){f(null),h(!1);return}t(e),h(!0)},[f,h,t]),fetchMoreData:(0,a.useCallback)(async e=>{await c({updateQuery:(e,{fetchMoreResult:t})=>({genericItemBySection:{__typename:"GenericItems",total:e?.genericItemBySection?.total,genericItems:[...e?.genericItemBySection.genericItems,...t.genericItemBySection.genericItems]}}),variables:e})},[c]),client:p}}},28738:(e,t,n)=>{var i;n.d(t,{XL:()=>r});let r=((i={}).Checkbox="checkbox",i.LinearRange="linear_range",i.ListRange="list_range",i.Select="select",i)},37544:(e,t,n)=>{n.d(t,{jt:()=>l,su:()=>u});var i=n(95751),r=n(10443),a=n(7620);let o=(0,i.J1)`
196  mutation trackView(
197    $userToken: String!
198    $url: String!
199    $title: String!
200    $urlReferer: String!
201    $userAgent: String!
202    $customDimensions: [TrackViewDimension]
203    $tags: [String]
204  ) {
205    trackView(
206      userToken: $userToken
207      url: $url
208      title: $title
209      urlReferer: $urlReferer
210      userAgent: $userAgent
211      customDimensions: $customDimensions
212      tags: $tags
213    ) {
214      error
215    }
216  }
217`,s=(0,i.J1)`
218  mutation trackEvent(
219    $userToken: String!
220    $url: String!
221    $eventCategory: String!
222    $eventName: String!
223    $eventValue: String!
224    $actionName: String!
225    $customDimensions: [TrackViewDimension]
226    $customVariables: [TrackEventCustomVariable]
227  ) {
228    trackEvent(
229      userToken: $userToken
230      url: $url
231      eventCategory: $eventCategory
232      eventName: $eventName
233      eventValue: $eventValue
234      actionName: $actionName
235      customDimensions: $customDimensions
236      customVariables: $customVariables
237    ) {
238      error
239    }
240  }
241`;(0,i.J1)`
242  mutation trackClick($userToken: String!, $urlClick: String!, $urlPage: String!) {
243    trackClick(userToken: $userToken, urlClick: $urlClick, urlPage: $urlPage) {
244      error
245    }
246  }
247`;let c="requestIdleCallback"in window,u=e=>{let[t,{loading:n}]=(0,r.n)(o,e);return[t,"ok",n]},l=e=>{let[t,{loading:n}]=(0,r.n)(s,e);return[(0,a.useCallback)(e=>{c?requestIdleCallback(()=>t(e)):t(e)},[t]),"ok",n]}},40837:(e,t,n)=>{n.d(t,{MS:()=>o,d8:()=>s,f2:()=>c,s7:()=>u});var i=n(10759),r=n(13906),a=n(78961);function o(e,t){var n,r,a=e.directives;
247return!a||!a.length||(r=[],(n=a)&&n.length&&n.forEach(function(e){if("skip"===(t=e.name.value)||"include"===t){var t,n=e.arguments,a=e.name.value;(0,i.V1)(n&&1===n.length,79,a);var o=n[0];(0,i.V1)(o.name&&"if"===o.name.value,80,a);var s=o.value;(0,i.V1)(s&&("Variable"===s.kind||"BooleanValue"===s.kind),81,a),r.push({directive:e,ifArgument:o})}}),r).every(function(e){var n=e.directive,r=e.ifArgument,a=!1;return"Variable"===r.value.kind?(a=t&&t[r.value.name.value],(0,i.V1)(void 0!==a,78,n.name.value)):a=r.value.value,"skip"===n.name.value?!a:a})}function s(e,t,n){var i=new Set(e),a=i.size;return(0,r.YR)(t,{Directive:function(e){if(i.delete(e.name.value)&&(!n||!i.size))return r.sP}}),n?!i.size:i.size<a}function c(e){return e&&s(["client","export"],e,!0)}function u(e){var t,n,r=null==(t=e.directives)?void 0:t.find(function(e){return"unmask"===e.name.value});if(!r)return"mask";var o=null==(n=r.arguments)?void 0:n.find(function(e){return"mode"===e.name.value});return(!1!==globalThis.__DEV__&&o&&(o.value.kind===a.b.VARIABLE?!1!==globalThis.__DEV__&&i.V1.warn(82):o.value.kind!==a.b.STRING?!1!==globalThis.__DEV__&&i.V1.warn(83):"migrate"!==o.value.value&&!1!==globalThis.__DEV__&&i.V1.warn(84,o.value.value)),o&&"value"in o.value&&"migrate"===o.value.value)?"migrate":"unmask"}},42719:(e,t,n)=>{n.d(t,{A:()=>l});var i=n(95751),r=n(30876),a=n(7620);let o="requestIdleCallback"in window,s=(0,i.J1)`
248  query GetProgrammableComponent(
249    $userToken: String!
250    $urlReferer: String!
251    $gdpr: String!
252    $userAgent: String!
253    $zones: [ZoneAdServer]!
254  ) {
255    programmableComponent(
256      userToken: $userToken
257      urlReferer: $urlReferer
258      gdpr: $gdpr
259      userAgent: $userAgent
260      zones: $zones
261    ) {
262      errors {
263        zone
264        message
265        data
266      }
267      zones {
268        zone
269        component {
270          data
271          id
272          template
273          name
274        }
275        impressionCount
276        clickRef
277        id
278      }
279    }
280  }
281`,c=(0,i.J1)`
282  mutation ProgrammableComponentImpression($impressionHash: String!) {
283    programmableComponentImpression(impressionHash: $impressionHash)
284  }
285`,u=(0,i.J1)`
286  mutation ProgrammableComponentClick($clickRefHash: String!) {
287    programmableComponentClick(clickRefHash: $clickRefHash)
288  }
289`,l=()=>{let e=(0,r.m)(),t=(0,a.useCallback)(async t=>{let{data:n}=await e.query({query:s,variables:t});return n},[e]),n=(0,a.useCallback)(t=>e.mutate({mutation:c,variables:{impressionHash:t}}),[e]),i=(0,a.useCallback)(t=>o?(requestIdleCallback(()=>e.mutate({mutation:u,variables:{clickRefHash:t}})),null):e.mutate({mutation:u,variables:{clickRefHash:t}}),[e]);return(0,a.useMemo)(()=>({fetch:t,countImpression:n,countClickRef:i}),[t,n,i])}},46317:(e,t,n)=>{n.d(t,{A_:()=>c,D$:()=>function e(t,n,i){for(var r,o=0,s=n.selections;o<s.length;o++){var c=s[o];if(y(c)){if("__typename"===c.name.value)return t[v(c)]}else r?r.push(c):r=[c]}if("string"==typeof t.__typename)return t.__typename;if(r)for(var u=0,l=r;u<l.length;u++){var c=l[u],p=e(t,(0,a.HQ)(c,i).selectionSet,i);if("string"==typeof p)return p}},Ii:()=>p,J:()=>l,Kc:()=>u,MB:()=>h,WU:()=>s,dt:()=>y,kd:()=>g,o5:()=>m,ue:()=>v});var i=n(10759),r=n(94127),a=n(6096),o=n(31842);function s(e){return{__ref:String(e)}}function c(e){return!!(e&&"object"==typeof e&&"string"==typeof e.__ref)}function u(e){return(0,r.U)(e)&&"Document"===e.kind&&Array.isArray(e.definitions)}function l(e,t,n,r){if("IntValue"===n.kind||"FloatValue"===n.kind)e[t.value]=Number(n.value);else if("BooleanValue"===n.kind||"StringValue"===n.kind)e[t.value]=n.value;else if("ObjectValue"===n.kind){var a={};n.fields.map(function(e){return l(a,e.name,e.value,r)}),e[t.value]=a}else if("Variable"===n.kind){var o=(r||{})[n.name.value];e[t.value]=o}else if("ListValue"===n.kind)e[t.value]=n.values.map(function(e){var n={};return l(n,t,e,r),n[t.value]});else if("EnumValue"===n.kind)e[t.value]=n.value;else if("NullValue"===n.kind)e[t.value]=null;else throw(0,i.vA)(96,t.value,n.kind)}function p(e,t){var n=null;e.directives&&(n={},e.directives.forEach(function(e){n[e.name.value]={}
289,e.arguments&&e.arguments.forEach(function(i){var r=i.name,a=i.value;return l(n[e.name.value],r,a,t)})}));var i=null;return e.arguments&&e.arguments.length&&(i={},e.arguments.forEach(function(e){var n=e.name,r=e.value;return l(i,n,r,t)})),m(e.name.value,i,n)}var d=["connection","include","skip","client","rest","export","nonreactive"],f=o.M,m=Object.assign(function(e,t,n){if(t&&n&&n.connection&&n.connection.key)if(!n.connection.filter||!(n.connection.filter.length>0))return n.connection.key;else{var i=n.connection.filter?n.connection.filter:[];i.sort();var r={};return i.forEach(function(e){r[e]=t[e]}),"".concat(n.connection.key,"(").concat(f(r),")")}var a=e;if(t){var o=f(t);a+="(".concat(o,")")}return n&&Object.keys(n).forEach(function(e){-1===d.indexOf(e)&&(n[e]&&Object.keys(n[e]).length?a+="@".concat(e,"(").concat(f(n[e]),")"):a+="@".concat(e))}),a},{setStringify:function(e){var t=f;return f=e,t}});function h(e,t){if(e.arguments&&e.arguments.length){var n={};return e.arguments.forEach(function(e){return l(n,e.name,e.value,t)}),n}return null}function v(e){return e.alias?e.alias.value:e.name.value}function y(e){return"Field"===e.kind}function g(e){return"InlineFragment"===e.kind}},46642:(e,t,n)=>{n.d(t,{Hs:()=>c,sj:()=>s});var i=n(95751),r=n(10443);let a=(0,i.J1)`
290  mutation sendMail(
291    $userToken: String!
292    $subject: String!
293    $from: String!
294    $message: String!
295    $reason: String!
296    $tokenCf: String!
297  ) {
298    sendMail(
299      userToken: $userToken
300      subject: $subject
301      from: $from
302      message: $message
303      reason: $reason
304      tokenCf: $tokenCf
305    ) {
306      message
307      id
308    }
309  }
310`,o=(0,i.J1)`
311  mutation sendySubscribe($email: String!, $name: String, $listSlug: String) {
312    sendySubscribe(email: $email, name: $name, listSlug: $listSlug) {
313      success
314      message
315      raw
316    }
317  }
318`,s=(e,t,n,i,r,o,s)=>e.mutate({mutation:a,variables:{userToken:t,subject:n,from:i,message:r,reason:o,tokenCf:s}}),c=e=>{let[t,{data:n,loading:i}]=(0,r.n)(o,e);return[t,n?.sendySubscribe,i]}},50789:(e,t,n)=>{let i;n.d(t,{Kv:()=>f.X,fc:()=>b,vW:()=>v,eL:()=>I,qG:()=>E});var r=n(29205),a=n(7620),o=n(2899),s=n(82482),c=n(17436),u=n(93357),l=n.n(u),p=n(38294),d=n.n(p),f=n(83558);function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach(function(t){(0,r.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function v(e){globalThis.constantContext.apiSdkConfig=e}new(l()).Agent({keepAlive:!0}),new(d()).Agent({keepAlive:!0});let y=JSON.stringify({});function g(){if(!window.localStorage)return null;let e=window.localStorage.getItem("userToken");return e||null}let b=()=>{let e=globalThis.constantContext?.apiSdkConfig,t=null;g()&&(t=g());let n=e.apiURL,{protocol:i}=new URL(n);return new o.P(h(h({uri:n,fetch},{}),{},{headers:{"X-Site-Name":e.siteName,features:function(){if(!window.localStorage)return y;let e=window.localStorage.getItem("martyjs.features");return e||y}(),userToken:t}}))};function I(e=null){let t=i??function(){let e=globalThis.constantContext?.apiSdkConfig;if(!e)throw Error("SDK has not been configured. Please, be sure to call configure method before using this sdk.");let t=h(h({},e.cacheConfig),{},{typePolicies:h(h({},e.cacheConfig?.typePolicies),{},{Reaction:h({keyFields:!1},e.cacheConfig?.typePolicies?.Reaction)})});return new s.R({ssrMode:!1,link:b(),cache:new c.D(t)})}(),n=t.extract(),r=Object.keys(n).length>0;if(e&&!r){let i=h(h({},e),n);t.cache.restore(i)}return i||(i=t),t}function E(e){let t=e?.__APOLLO_STATE__;return(0,a.useMemo)(()=>I(t),[t])}},56500:(e,t,n)=>{n.d(t,{aZ:()=>a,ou:()=>o,Ll:()=>s});var i=n(69222);function r(e){var t=e.prototype.toJSON;"function"==typeof t||function(){throw Error("Unexpected invariant triggered.")}(),e.prototype.inspect=t,i.A&&(e.prototype[i.A]=t)}var a=function(){function e(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}return e.prototype.toJSON=function(){return{start:this.start,end:this.end}},e}();r(a);var o=function(){function e(e,t,n,i,r,a,o){this.kind=e,this.start=t,this.end=n,this.line=i,this.column=r,this.value=o,this.prev=a,this.next=null}return e.prototype.toJSON=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}},e}();function s(e){return null!=e&&"string"==typeof e.kind}r(o)},61997:(e,t,n)=>{n.d(t,{XY:()=>m,er:()=>v,iz:()=>f,x3:()=>y,zc:()=>h});var i=n(72660),r=n(10759),a=n(78961),o=n(13906),s=n(78919),c=n(46317),u=n(6096),l=n(81455),p={kind:a.b.FIELD,name:{kind:a.b.NAME,value:"__typename"}};function d(e){var t=new Map;return function(n){void 0===n&&(n=e);var i=t.get(n);return i||t.set(n,i={variables:new Set,fragmentSpreads:new Set}),i}}function f(e,t){(0,s.sw)(t);for(var n,c,p,f=d(""),m=d(""),h=function(e){for(var t=0,n=void 0;t<e.length&&(n=e[t]);++t)if(!(0,l.c)(n)){if(n.kind===a.b.OPERATION_DEFINITION)return f(n.name&&n.name.value);if(n.kind===a.b.FRAGMENT_DEFINITION)return m(n.name.value)}return!1!==globalThis.__DEV__&&r.V1.error(97),null},v=0,y=t.definitions.length-1;y>=0;--y)t.definitions[y].kind===a.b.OPERATION_DEFINITION&&++v;var g=(n=new Map,c=new Map,e.forEach(function(e){e&&(e.name?n.set(e.name,e):e.test&&c.set(e.test,e))}),function(e){var t=n.get(e.name.value);
318return!t&&c.size&&c.forEach(function(n,i){i(e)&&(t=n)}),t}),b=function(e){return(0,l.E)(e)&&e.map(g).some(function(e){return e&&e.remove})},I=new Map,E=!1,T={enter:function(e){if(b(e.directives))return E=!0,null}},k=(0,o.YR)(t,{Field:T,InlineFragment:T,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(e,t,n,i,r){var a=h(r);a&&a.variables.add(e.name.value)}},FragmentSpread:{enter:function(e,t,n,i,r){if(b(e.directives))return E=!0,null;var a=h(r);a&&a.fragmentSpreads.add(e.name.value)}},FragmentDefinition:{enter:function(e,t,n,i){I.set(JSON.stringify(i),e)},leave:function(e,t,n,i){return e===I.get(JSON.stringify(i))?e:v>0&&e.selectionSet.selections.every(function(e){return e.kind===a.b.FIELD&&"__typename"===e.name.value})?(m(e.name.value).removed=!0,E=!0,null):void 0}},Directive:{leave:function(e){if(g(e))return E=!0,null}}});if(!E)return t;var S=function(e){return!e.transitiveVars&&(e.transitiveVars=new Set(e.variables),e.removed||e.fragmentSpreads.forEach(function(t){S(m(t)).transitiveVars.forEach(function(t){e.transitiveVars.add(t)})})),e},N=new Set;k.definitions.forEach(function(e){e.kind===a.b.OPERATION_DEFINITION?S(f(e.name&&e.name.value)).fragmentSpreads.forEach(function(e){N.add(e)}):e.kind!==a.b.FRAGMENT_DEFINITION||0!==v||m(e.name.value).removed||N.add(e.name.value)}),N.forEach(function(e){S(m(e)).fragmentSpreads.forEach(function(e){N.add(e)})});var O={enter:function(e){var t;if(t=e.name.value,!N.has(t)||m(t).removed)return null}};return p=(0,o.YR)(k,{FragmentSpread:O,FragmentDefinition:O,OperationDefinition:{leave:function(e){if(e.variableDefinitions){var t=S(f(e.name&&e.name.value)).transitiveVars;if(t.size<e.variableDefinitions.length)return(0,i.Cl)((0,i.Cl)({},e),{variableDefinitions:e.variableDefinitions.filter(function(e){return t.has(e.variable.name.value)})})}}}}),!function e(t,n){return!t||t.selectionSet.selections.every(function(t){return t.kind===a.b.FRAGMENT_SPREAD&&e(n[t.name.value],n)})}((0,s.Vu)(p)||(0,s.E4)(p),(0,u.JG)((0,s.zK)(p)))?p:null}var m=Object.assign(function(e){return(0,o.YR)(e,{SelectionSet:{enter:function(e,t,n){if(!n||n.kind!==a.b.OPERATION_DEFINITION){var r=e.selections;if(!(!r||r.some(function(e){return(0,c.dt)(e)&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))}))&&!((0,c.dt)(n)&&n.directives&&n.directives.some(function(e){return"export"===e.name.value})))return(0,i.Cl)((0,i.Cl)({},e),{selections:(0,i.fX)((0,i.fX)([],r,!0),[p],!1)})}}}})},{added:function(e){return e===p}});function h(e){return"query"===(0,s.Vn)(e).operation?e:(0,o.YR)(e,{OperationDefinition:{enter:function(e){return(0,i.Cl)((0,i.Cl)({},e),{operation:"query"})}}})}function v(e){return(0,s.sw)(e),f([{test:function(e){return"client"===e.name.value},remove:!0}],e)}function y(e){return(0,s.sw)(e),(0,o.YR)(e,{FragmentSpread:function(e){var t;if(null==(t=e.directives)||!t.some(function(e){return"unmask"===e.name.value}))return(0,i.Cl)((0,i.Cl)({},e),{directives:(0,i.fX)((0,i.fX)([],e.directives||[],!0),[{kind:a.b.DIRECTIVE,name:{kind:a.b.NAME,value:"nonreactive"}}
318],!1)})}})}},65816:(e,t,n)=>{n.d(t,{VK:()=>r});var i=n(78961);function r(e){return e.kind===i.b.FIELD||e.kind===i.b.FRAGMENT_SPREAD||e.kind===i.b.INLINE_FRAGMENT}},69222:(e,t,n)=>{n.d(t,{A:()=>i});let i="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0},69483:(e,t,n)=>{n.d(t,{WI:()=>s});var i=n(69187),r=n(7620),a=n(95751);(0,a.J1)`
319  query GetItems {
320    items {
321      id
322      title
323      summary
324      label
325      url
326      externalLink
327      imageId
328      layout
329      republishedAt
330      productReviewScore
331      comments
332      updatedAt
333    }
334  }
335`,(0,a.J1)`
336  query GetItemsQuery($query: String!, $from: Int0to10000, $size: Int0to200) {
337    items(queryBy: { type: queryConfig, value: $query }, from: $from, size: $size) {
338      id
339      title
340      summary
341      label
342      url
343      externalLink
344      imageId
345      layout
346      republishedAt
347      linkedWith {
348        author {
349          title
350        }
351      }
352      updatedAt
353      productReviewScore
354      comments
355      popularity
356    }
357  }
358`,(0,a.J1)`
359  query GetItemsForArchive($date: String!, $from: Int0to10000, $queryType: QueryByType!) {
360    archive(queryBy: { type: $queryType, value: $date }, from: $from, size: 100) {
361      itemsByDate {
362        id
363        title
364        summary
365        label
366        url
367        externalLink
368        imageId
369        layout
370        republishedAt
371        updatedAt
372        releasedAt
373        comments
374        approximateReleasedAt {
375          quarter
376          year
377        }
378        productReviewScore
379        comments
380      }
381      daysList {
382        date
383        docCount
384        groupByDay {
385          docCount
386          date
387        }
388      }
389    }
390  }
391`,(0,a.J1)`
392  query GetItem($id: ID!) {
393    item(id: $id) {
394      id
395      title
396      imageId
397      url
398      popularity
399      userRating
400      sponsors {
401        title
402        url
403        order
404      }
405      userRatingNb
406      ratingData
407      ratingConclusion
408      linkedWith {
409        author {
410          id
411          title
412          imageId
413          url
414          summary
415          mainDataSheet {
416            groups {
417              shortSlug
418              attributes {
419                shortSlug
420                topSpec
421                iconSlug
422                type
423                url
424                value
425                name
426              }
427            }
428          }
429        }
430      }
431      mainDataSheet {
432        groups {
433          shortSlug
434          attributes {
435            shortSlug
436            topSpec
437            iconSlug
438            type
439            url
440            value
441            name
442          }
443        }
444      }
445      comments
446      updatedAt
447      republishedAt
448      layout
449    }
450  }
451`;let o=(0,a.J1)`
452  query GetListItems($id: String!, $from: Int0to10000, $size: Int0to200) {
453    items(queryBy: { type: item, value: $id }, from: $from, size: $size) {
454      id
455      title
456      summary
457      url
458      imageId
459      layout
460      republishedAt
461      updatedAt
462      comments
463    }
464  }
465`,s=e=>{let{loading:t,error:n,data:a,fetchMore:s}=(0,i.IT)(o,e),{0:c,1:u}=(0,r.useState)(a?.items),{0:l,1:p}=(0,r.useState)(t);return{loading:l,error:n,items:c,fetchMoreData:({variables:e})=>{p(!0),s({variables:e}).then(e=>{u(c?.concat(e.data?.items)||e.data?.items)}).finally(()=>{p(!1)})}}}},71664:(e,t,n)=>{n.d(t,{Ax:()=>y,F9:()=>m,H1:()=>f,_1:()=>h,mM:()=>d,s:()=>v,v5:()=>o});var i=n(95751);let r=(0,i.J1)`
466  query CommunityFeed($sort: String, $limit: Int, $offset: Int) {
467    communityFeed(sort: $sort, limit: $limit, offset: $offset) {
468      id
469      parentId
470      status
471      url
472      title
473      description
474      aiResume
475      imageUrl
476      tags
477      primaryDomain
478      createdAt
479      validatedAt
480      score
481      sourceCount
482      reportCount
483      voteUp
484      voteDown
485      currentVote
486      currentUserReported
487      authorPseudo
488      clubicMatch {
489        itemId
490        title
491        url
492        imageId
493        similarityScore
494        matchedAt
495      }
496    }
497  }
498`,a=(0,i.J1)`
499  query CommunityFeedPromotion {
500    communityFeed(sort: "recent", limit: 1, offset: 0) {
501      id
502      title
503      aiResume
504      tags
505      primaryDomain
506      validatedAt
507      createdAt
508      voteUp
509      voteDown
510      authorPseudo
511    }
512  }
513`,o=async e=>{let{data:t}=await e.query({query:a,fetchPolicy:"network-only"});return t?.communityFeed?.[0]??null},s=(0,i.J1)`
514  query CommunityFeedVotes($ids: [ID!]!) {
515    communityFeedVotes(ids: $ids) {
516      id
517      status
518      score
519      voteUp
520      voteDown
521      reportCount
522    }
523  }
524`,c=(0,i.J1)`
525  query CommunityFeedViewerState($ids: [ID!]!) {
526    communityFeedViewerState(ids: $ids) {
527      id
528      currentVote
529      currentUserReported
530    }
531  }
532`;(0,i.J1)`
533  query CommunityFeedCount {
534    communityFeedCount
535  }
536`,(0,i.J1)`
537  query CommunityFeedSidebar($days: Int!, $limit: Int!) {
538    trending: communityFeedTrendingTopics(days: $days, limit: $limit) {
539      days
540      topics {
541        tag
542        count
543      }
544    }
545    topContributors: communityFeedTopContributors(limit: $limit) {
546      days
547      contributors {
548        pseudo
549        linkCount
550        avatarUrl
551      }
552    }
553  }
554`;let u=(0,i.J1)`
555  mutation SubmitCommunityFeed($url: String!, $title: String, $description: String) {
556    submitCommunityFeed(url: $url, title: $title, description: $description) {
557      message
558      errorCode
559      feedItem {
560        id
561        parentId
562        status
563        url
564        title
565        sourceCount
566      }
567    }
568  }
569`,l=(0,i.J1)`
570  mutation VoteCommunityFeed($id: ID!, $value: Int!) {
571    voteCommunityFeed(id: $id, value: $value) {
572      message
573      errorCode
574      feedItem {
575        id
576        score
577        voteUp
578        voteDown
579        currentVote
580      }
581    }
582  }
583`,p=(0,i.J1)`
584  mutation FlagCommunityFeed($id: ID!, $reported: Boolean!) {
585    flagCommunityFeed(id: $id, reported: $reported) {
586      message
587      errorCode
588      feedItem {
589        id
590        status
591        reportCount
592        currentUserReported
593      }
594    }
595  }
596`,d=async(e,t="recent",n=30,i=0)=>{let{data:a}=await e.query({query:r,variables:{sort:t,limit:n,offset:i},fetchPolicy:"network-only"});return a?.communityFeed??[]},f=async(e,t)=>{let{data:n}=await e.query({query:s,variables:{ids:t},fetchPolicy:"network-only"});return n?.communityFeedVotes??[]},m=async(e,t)=>{let{data:n}=await e.query({query:c,variables:{ids:t},fetchPolicy:"network-only"});return n?.communityFeedViewerState??[]},h=(e,t,n,i)=>e.mutate({mutation:u,variables:{url:t,title:n,description:i}}
596),v=(e,t,n)=>e.mutate({mutation:l,variables:{id:t,value:n}}),y=(e,t,n)=>e.mutate({mutation:p,variables:{id:t,reported:n}})},73508:(e,t,n)=>{function i(e){var t=e.split(/\r\n|[\n\r]/g),n=function(e){for(var t,n=!0,i=!0,r=0,a=null,o=0;o<e.length;++o)switch(e.charCodeAt(o)){case 13:10===e.charCodeAt(o+1)&&++o;case 10:n=!1,i=!0,r=0;break;case 9:case 32:++r;break;default:i&&!n&&(null===a||r<a)&&(a=r),i=!1}return null!=(t=a)?t:0}(e);if(0!==n)for(var i=1;i<t.length;i++)t[i]=t[i].slice(n);for(var a=0;a<t.length&&r(t[a]);)++a;for(var o=t.length;o>a&&r(t[o-1]);)--o;return t.slice(a,o).join("\n")}function r(e){for(var t=0;t<e.length;++t)if(" "!==e[t]&&"	"!==e[t])return!1;return!0}function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=-1===e.indexOf("\n"),r=" "===e[0]||"	"===e[0],a='"'===e[e.length-1],o="\\"===e[e.length-1],s=!i||a||o||n,c="";return s&&!(i&&r)&&(c+="\n"+t),c+=t?e.replace(/\n/g,"\n"+t):e,s&&(c+="\n"),'"""'+c.replace(/"""/g,'\\"""')+'"""'}n.d(t,{i$:()=>i,yo:()=>a})},78919:(e,t,n)=>{n.d(t,{AT:()=>u,E4:()=>l,Vn:()=>p,Vu:()=>o,n4:()=>s,sw:()=>a,wY:()=>d,zK:()=>c});var i=n(10759),r=n(46317);function a(e){(0,i.V1)(e&&"Document"===e.kind,88);var t=e.definitions.filter(function(e){return"FragmentDefinition"!==e.kind}).map(function(e){if("OperationDefinition"!==e.kind)throw(0,i.vA)(89,e.kind);return e});return(0,i.V1)(t.length<=1,90,t.length),e}function o(e){return a(e),e.definitions.filter(function(e){return"OperationDefinition"===e.kind})[0]}function s(e){return e.definitions.filter(function(e){return"OperationDefinition"===e.kind&&!!e.name}).map(function(e){return e.name.value})[0]||null}function c(e){return e.definitions.filter(function(e){return"FragmentDefinition"===e.kind})}function u(e){var t=o(e);return(0,i.V1)(t&&"query"===t.operation,91),t}function l(e){(0,i.V1)("Document"===e.kind,92),(0,i.V1)(e.definitions.length<=1,93);var t=e.definitions[0];return(0,i.V1)("FragmentDefinition"===t.kind,94),t}function p(e){a(e);for(var t,n=0,r=e.definitions;n<r.length;n++){var o=r[n];if("OperationDefinition"===o.kind){var s=o.operation;if("query"===s||"mutation"===s||"subscription"===s)return o}"FragmentDefinition"!==o.kind||t||(t=o)}if(t)return t;throw(0,i.vA)(95)}function d(e){var t=Object.create(null),n=e&&e.variableDefinitions;return n&&n.length&&n.forEach(function(e){e.defaultValue&&(0,r.J)(t,e.variable.name,e.defaultValue)}),t}},78961:(e,t,n)=>{n.d(t,{b:()=>i});var i=Object.freeze({NAME:"Name",DOCUMENT:"Document",OPERATION_DEFINITION:"OperationDefinition",VARIABLE_DEFINITION:"VariableDefinition",SELECTION_SET:"SelectionSet",FIELD:"Field",ARGUMENT:"Argument",FRAGMENT_SPREAD:"FragmentSpread",INLINE_FRAGMENT:"InlineFragment",FRAGMENT_DEFINITION:"FragmentDefinition",VARIABLE:"Variable",INT:"IntValue",FLOAT:"FloatValue",STRING:"StringValue",BOOLEAN:"BooleanValue",NULL:"NullValue",ENUM:"EnumValue",LIST:"ListValue",OBJECT:"ObjectValue",OBJECT_FIELD:"ObjectField",DIRECTIVE:"Directive",NAMED_TYPE:"NamedType",LIST_TYPE:"ListType",NON_NULL_TYPE:"NonNullType",SCHEMA_DEFINITION:"SchemaDefinition",OPERATION_TYPE_DEFINITION:"OperationTypeDefinition",SCALAR_TYPE_DEFINITION:"ScalarTypeDefinition",OBJECT_TYPE_DEFINITION:"ObjectTypeDefinition",FIELD_DEFINITION:"FieldDefinition",INPUT_VALUE_DEFINITION:"InputValueDefinition",INTERFACE_TYPE_DEFINITION:"InterfaceTypeDefinition",UNION_TYPE_DEFINITION:"UnionTypeDefinition",ENUM_TYPE_DEFINITION:"EnumTypeDefinition",ENUM_VALUE_DEFINITION:"EnumValueDefinition",INPUT_OBJECT_TYPE_DEFINITION:"InputObjectTypeDefinition",DIRECTIVE_DEFINITION:"DirectiveDefinition",SCHEMA_EXTENSION:"SchemaExtension",SCALAR_TYPE_EXTENSION:"ScalarTypeExtension",OBJECT_TYPE_EXTENSION:"ObjectTypeExtension",INTERFACE_TYPE_EXTENSION:"InterfaceTypeExtension",UNION_TYPE_EXTENSION:"UnionTypeExtension",ENUM_TYPE_EXTENSION:"EnumTypeExtension",INPUT_OBJECT_TYPE_EXTENSION:"InputObjectTypeExtension"})},84850:(e,t,n)=>{n.d(t,{c:()=>p});var i=n(1290),r=n(21012),a=n(78919),o=n(10759),s=n(18383),c=n(28941),u=n(44991);function l(e){return e}var p=function(){function e(e,t){void 0===t&&(t=Object.create(null)),this.resultCache=r.En?new WeakSet:new Set,this.transform=e,t.getCacheKey&&(this.getCacheKey=t.getCacheKey),this.cached=!1!==t.cache,this.resetCache()}return e.prototype.getCacheKey=function(e){return[e]},e.identity=function(){return new e(l,{cache:!1})},e.split=function(t,n,i){return void 0===i&&(i=e.identity()),Object.assign(new e(function(e){return(t(e)?n:i).transformDocument(e)},{cache:!1}),{left:n,right:i})},e.prototype.resetCache=function(){var t=this;if(this.cached){var n=new i.b(r.et);this.performWork=(0,c.LV)(e.prototype.performWork.bind(this),{makeCacheKey:function(e){var i=t.getCacheKey(e);if(i)return(0,o.V1)(Array.isArray(i),77),n.lookupArray(i)},max:u.v["documentTransform.cache"],cache:s.l})}},e.prototype.performWork=function(e){return(0,a.sw)(e),this.transform(e)},e.prototype.transformDocument=function(e){if(this.resultCache.has(e))return e;var t=this.performWork(e);return this.resultCache.add(t),t},e.prototype.concat=function(t){var n=this;return Object.assign(new e(function(e){return t.transformDocument(n.transformDocument(e))},{cache:!1}),{left:this,right:t})},e}()},91253:(e,t,n)=>{n.d(t,{q:()=>r});var i=n(95751);let r=async e=>{let{data:t}=await e.query({query:(0,i.J1)`
597      query NotificationSession {
598        notificationSession {
599          provider
600          subscriberId
601          enabledTypes
602          configuration {
603            key
604            value
605          }
606        }
607      }
608    `,fetchPolicy:"no-cache"});return t?.notificationSession}}
608,94243:(e,t,n)=>{n.d(t,{s:()=>r});var i=n(95751);let r=(0,i.J1)`
609  fragment GenericItem on GenericItem {
610    id
611    type
612    title
613    publishedAt
614    republishedAt
615    updatedAt
616    officialReleasedAt
617    approximateReleasedAt
618    mainVariantName
619    lead
620    tagSlugs
621    mainTag
622    layout
623    globalScore
624    item {
625      title
626      id
627    }
628    commentsNb
629    authors {
630      id
631      url
632      title
633    }
634    userRating
635    userRatingNb
636    imageId
637    url
638    price {
639      price
640      link
641      stock
642      model
643      preDiscountPrice
644      expirationDate
645      specificConditions
646      marketplace
647      intPrice
648      popularity
649      offerName
650      monthly
651      shop {
652        icon
653        name
654      }
655    }
656    downloads {
657      os
658      fileId
659      url
660      name
661    }
662    review {
663      id
664      title
665      url
666      externalLink
667      imageId
668      summary
669      publishedAt
670      updatedAt
671      republishedAt
672      plannedAt
673      ratingData
674      comments
675      layout
676      tagSlugs
677      authors {
678        id
679        title
680        url
681        description
682        imageId
683      }
684    }
685    reviewedItem {
686      id
687      title
688      url
689      externalLink
690      imageId
691      summary
692      publishedAt
693      updatedAt
694      republishedAt
695      plannedAt
696      ratingData
697      comments
698      layout
699      tagSlugs
700      detailedSticker {
701        name
702        slug
703        family
704      }
705    }
706    productReviewScore
707    detailedSticker {
708      name
709      slug
710      family
711    }
712    dataSheet {
713      itemTitle
714      groups {
715        name
716        shortSlug
717        attributes {
718          shortSlug
719          topSpec
720          boolValue
721          slug
722          iconSlug
723          type
724          value
725          url
726          name
727        }
728      }
729    }
730  }
731`;(0,i.J1)`
732  fragment Item on PageInfo {
733    item {
734      id
735      title
736      popularity
737      downloadCount
738      imageId
739      url
740      lead
741      resumeJson
742      faqJson
743      sponsors {
744        title
745        url
746        order
747      }
748      medias {
749        mediaType
750        src
751        order
752        main
753      }
754      tagSlugs
755      userRating
756      userRatingNb
757      ratingData
758      ratingConclusion
759      linkedWith {
760        author {
761          id
762          title
763          imageId
764          summary
765          url
766          mainDataSheet {
767            groups {
768              name
769              shortSlug
770              attributes {
771                shortSlug
772                topSpec
773                boolValue
774                slug
775                iconSlug
776                type
777                value
778                url
779                name
780              }
781            }
782          }
783        }
784      }
785      variants {
786        id
787        variant
788        officialReleasedAt
789        approximateReleasedAt
790        mainVariantName
791        name
792        shortName
793        dataSheet {
794          groups {
795            shortSlug
796            attributes {
797              shortSlug
798              type
799              url
800              value
801              name
802            }
803          }
804        }
805        prices {
806          price
807          link
808          intPrice
809          condition
810          marketplace
811          offerName
812          monthly
813          shop {
814            icon
815            name
816          }
817        }
818        similarItemPrices {
819          imageId
820          name
821          link
822          price
823        }
824      }
825      mainDataSheet {
826        tag {
827          name
828        }
829        groups {
830          shortSlug
831          name
832          attributes {
833            shortSlug
834            topSpec
835            boolValue
836            slug
837            iconSlug
838            type
839            value
840            url
841            name
842          }
843        }
844      }
845      comments
846      externalLink
847      updatedAt
848      publishedAt
849      republishedAt
850      label
851      detailedSticker {
852        name
853        slug
854        family
855      }
856    }
857  }
858`},94437:(e,t,n)=>{n.d(t,{Hx:()=>h,eV:()=>m,z2:()=>f});var i=n(29205),r=n(95751),a=n(69187),o=n(7620),s=n(94243);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
858t%2?c(Object(n),!0).forEach(function(t){(0,i.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}let l=(0,r.J1)`
859  ${s.s}
860  query GetGenericItemByKeyword($keyword: String!, $from: Int0to10000, $size: Int0to200, $group: SearchResultGroup) {
861    genericItemByKeyword(keyword: $keyword, from: $from, size: $size, group: $group) {
862      total
863      genericItems {
864        ...GenericItem
865        layoutName
866        officialReleasedAt
867        approximateReleasedAt
868      }
869    }
870  }
871`,p=(0,r.J1)`
872  ${s.s}
873  query GetGenericItemProductByKeyword(
874    $keyword: String!
875    $from: Int0to10000
876    $size: Int0to200
877    $dataSheetFilters: [DataSheetFilter]
878  ) {
879    genericItemProductByKeyword(keyword: $keyword, from: $from, size: $size, dataSheetFilters: $dataSheetFilters) {
880      total
881      genericItems {
882        ...GenericItem
883        layoutName
884        officialReleasedAt
885        approximateReleasedAt
886      }
887    }
888  }
889`,d=(0,r.J1)`
890  query GetGenericItemProductByKeywordAggs($keyword: String!) {
891    filterAggs(type: byKeyword, value: $keyword, index: item) {
892      prices {
893        min
894        max
895        count
896      }
897      aggsDataSheetAttributes {
898        dataSheetAttribute {
899          id
900          name
901          shortSlug
902          type
903          enumValues {
904            id
905            value
906          }
907          filterPickerType
908        }
909        buckets {
910          unlimited
911          stats {
912            min
913            max
914            count
915          }
916          list {
917            value
918            count
919          }
920        }
921      }
922    }
923  }
924`,f=e=>{e.variables.keyword&&(e.variables.keyword=e.variables.keyword.trim()),(!e.variables.keyword||e.variables.keyword.length<2)&&(e.skip=!0);let{loading:t,error:n,data:i,fetchMore:r}=(0,a.IT)(p,e),s=(0,o.useCallback)(async e=>{await r({updateQuery:(e,{fetchMoreResult:t})=>({genericItemProductByKeyword:u(u({},e.genericItemProductByKeyword),{},{genericItems:[...e.genericItemProductByKeyword.genericItems,...t.genericItemProductByKeyword.genericItems]})}),variables:e})},[r]);return{loading:!e.skip&&t,result:i?.genericItemProductByKeyword,error:n,fetchMoreData:s}},m=e=>{e.variables.keyword&&(e.variables.keyword=e.variables.keyword.trim()),(!e.variables.keyword||e.variables.keyword.length<2)&&(e.skip=!0);let{loading:t,error:n,data:i,fetchMore:r}=(0,a.IT)(l,e),s=(0,o.useCallback)(async e=>{await r({updateQuery:(e,{fetchMoreResult:t})=>({genericItemByKeyword:u(u({},e.genericItemByKeyword),{},{genericItems:[...e.genericItemByKeyword.genericItems,...t.genericItemByKeyword.genericItems]})}),variables:e})},[r]);return{loading:!e.skip&&t,result:i?.genericItemByKeyword,error:n,fetchMoreData:s}},h=e=>{e.variables.keyword&&(e.variables.keyword=e.variables.keyword.trim()),(!e.variables.keyword||e.variables.keyword.length<2)&&(e.skip=!0);let{loading:t,error:n,data:i}=(0,a.IT)(d,e);return{loading:t,error:n,resultAggs:i?.filterAggs}}},95751:(e,t,n)=>{n.d(t,{J1:()=>K});var i,r=n(72660);function a(e,t){if(!e)throw Error(t)}function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var s="function"==typeof Symbol&&null!=Symbol.toStringTag?Symbol.toStringTag:"@@toStringTag";function c(e,t){for(var n,i=/\r\n|[\n\r]/g,r=1,a=t+1;(n=i.exec(e.body))&&n.index<t;)r+=1,a=t+1-(n.index+n[0].length);return{line:r,column:a}}function u(e,t){var n=e.locationOffset.column-1,i=p(n)+e.body,r=t.line-1,a=e.locationOffset.line-1,o=t.line+a,s=1===t.line?n:0,c=t.column+s,u="".concat(e.name,":").concat(o,":").concat(c,"\n"),d=i.split(/\r\n|[\n\r]/g),f=d[r];if(f.length>120){for(var m=Math.floor(c/80),h=c%80,v=[],y=0;y<f.length;y+=80)v.push(f.slice(y,y+80));return u+l([["".concat(o),v[0]]].concat(v.slice(1,m+1).map(function(e){return["",e]}),[[" ",p(h-1)+"^"],["",v[m+1]]]))}return u+l([["".concat(o-1),d[r-1]],["".concat(o),f],["",p(c-1)+"^"],["".concat(o+1),d[r+1
924]]])}function l(e){var t=e.filter(function(e){return e[0],void 0!==e[1]}),n=Math.max.apply(Math,t.map(function(e){return e[0].length}));return t.map(function(e){var t,i=e[0],r=e[1];return p(n-(t=i).length)+t+(r?" | "+r:" |")}).join("\n")}function p(e){return Array(e+1).join(" ")}function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function m(e,t){return t&&("object"===d(t)||"function"==typeof t)?t:h(e)}function h(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(e){var t="function"==typeof Map?new Map:void 0;return(v=function(e){var n;if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,i)}function i(){return y(e,arguments,I(this).constructor)}return i.prototype=Object.create(e.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),b(i,e)})(e)}function y(e,t,n){return(y=g()?Reflect.construct:function(e,t,n){var i=[null];i.push.apply(i,t);var r=new(Function.bind.apply(e,i));return n&&b(r,n.prototype),r}).apply(null,arguments)}function g(){if("u"<typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function b(e,t){return(b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function I(e){return(I=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var E=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),e&&b(r,e);var t,n,i=(t=g(),function(){var e,n=I(r);return e=t?Reflect.construct(n,arguments,I(this).constructor):n.apply(this,arguments),m(this,e)});function r(e,t,n,a,s,u,l){if(!(this instanceof r))throw TypeError("Cannot call a class as a function");(E=i.call(this,e)).name="GraphQLError",E.originalError=null!=u?u:void 0,E.nodes=T(Array.isArray(t)?t:t?[t]:void 0);for(var p=[],d=0,v=null!=(k=E.nodes)?k:[];d<v.length;d++){var y,g,b,I,E,k,S=v[d].loc;null!=S&&p.push(S)}p=T(p),E.source=null!=n?n:null==(g=p)?void 0:g[0].source,E.positions=null!=a?a:null==(b=p)?void 0:b.map(function(e){return e.start}),E.locations=a&&n?a.map(function(e){return c(n,e)}):null==(I=p)?void 0:I.map(function(e){return c(e.source,e.start)}),E.path=null!=s?s:void 0;var N=null==u?void 0:u.extensions;return null==l&&"object"==o(y=N)&&null!==y?E.extensions=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach(function(t){var i,r,a;i=e,r=t,a=n[t],r in i?Object.defineProperty(i,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):i[r]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},N):E.extensions=null!=l?l:{},(Object.defineProperties(h(E),{message:{enumerable:!0},locations:{enumerable:null!=E.locations},path:{enumerable:null!=E.path},extensions:{enumerable:null!=E.extensions&&Object.keys(E.extensions).length>0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=u&&u.stack)?(Object.defineProperty(h(E),"stack",{value:u.stack,writable:!0,configurable:!0}),m(E)):(Error.captureStackTrace?Error.captureStackTrace(h(E),r):Object.defineProperty(h(E),"stack",{value:Error().stack,writable:!0,configurable:!0}),E)}return n=[{key:"toString",value:function(){return function(e){var t=e.message;if(e.nodes)for(var n=0,i=e.nodes;n<i.length;n++){var r,a=i[n];a.loc&&(t+="\n\n"+u((r=a.loc).source,c(r.source,r.start)))}else if(e.source&&e.locations)for(var o=0,s=e.locations;o<s.length;o++){var l=s[o];t+="\n\n"+u(e.source,l)}
924return t}(this)}},{key:"toJSON",value:function(){var e,t,n,i,r,o;return e=this,e||a(0,"Received null or undefined error."),n=null!=(t=e.message)?t:"An unknown error occurred.",i=e.locations,r=e.path,(o=e.extensions)&&Object.keys(o).length>0?{message:n,locations:i,path:r,extensions:o}:{message:n,locations:i,path:r}}},{key:s,get:function(){return"Object"}}],function(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}(r.prototype,n),r}(v(Error));function T(e){return void 0===e||0===e.length?void 0:e}function k(e,t,n){return new E("Syntax Error: ".concat(n),void 0,e,[t])}var S=n(78961),N=n(56500),O=Object.freeze({SOF:"<SOF>",EOF:"<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"}),D=n(11986),A=function(){var e;function t(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"GraphQL request",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{line:1,column:1};"string"==typeof e||a(0,"Body must be a string. Received: ".concat((0,D.A)(e),".")),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||a(0,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||a(0,"column in locationOffset is 1-indexed and must be positive.")}return e=[{key:s,get:function(){return"Source"}}],function(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}(t.prototype,e),t}(),_=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"}),w=n(73508),C=function(){function e(e){var t=new N.ou(O.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,t=this.token;if(t.kind!==O.EOF)do t=null!=(e=t.next)?e:t.next=function(e,t){for(var n=e.source,i=n.body,r=i.length,a=t.end;a<r;){var o,s=i.charCodeAt(a),c=e.line,u=1+a-e.lineStart;switch(s){case 65279:case 9:case 32:case 44:++a;continue;case 10:++a,++e.line,e.lineStart=a;continue;case 13:10===i.charCodeAt(a+1)?a+=2:++a,++e.line,e.lineStart=a;continue;case 33:return new N.ou(O.BANG,a,a+1,c,u,t);case 35:return function(e,t,n,i,r){var a,o=e.body,s=t;do a=o.charCodeAt(++s);while(!isNaN(a)&&(a>31||9===a));return new N.ou(O.COMMENT,t,s,n,i,r,o.slice(t+1,s))}(n,a,c,u,t);case 36:return new N.ou(O.DOLLAR,a,a+1,c,u,t);case 38:return new N.ou(O.AMP,a,a+1,c,u,t);case 40:return new N.ou(O.PAREN_L,a,a+1,c,u,t);case 41:return new N.ou(O.PAREN_R,a,a+1,c,u,t);case 46:if(46===i.charCodeAt(a+1)&&46===i.charCodeAt(a+2))return new N.ou(O.SPREAD,a,a+3,c,u,t);break;case 58:return new N.ou(O.COLON,a,a+1,c,u,t);case 61:return new N.ou(O.EQUALS,a,a+1,c,u,t);case 64:return new N.ou(O.AT,a,a+1,c,u,t);case 91:return new N.ou(O.BRACKET_L,a,a+1,c,u,t);case 93:return new N.ou(O.BRACKET_R,a,a+1,c,u,t);case 123:return new N.ou(O.BRACE_L,a,a+1,c,u,t);case 124:return new N.ou(O.PIPE,a,a+1,c,u,t);case 125:return new N.ou(O.BRACE_R,a,a+1,c,u,t);case 34:if(34===i.charCodeAt(a+1)&&34===i.charCodeAt(a+2))return function(e,t,n,i,r,a){for(var o=e.body,s=t
924+3,c=s,u=0,l="";s<o.length&&!isNaN(u=o.charCodeAt(s));){if(34===u&&34===o.charCodeAt(s+1)&&34===o.charCodeAt(s+2))return l+=o.slice(c,s),new N.ou(O.BLOCK_STRING,t,s+3,n,i,r,(0,w.i$)(l));if(u<32&&9!==u&&10!==u&&13!==u)throw k(e,s,"Invalid character within String: ".concat(x(u),"."));10===u?(++s,++a.line,a.lineStart=s):13===u?(10===o.charCodeAt(s+1)?s+=2:++s,++a.line,a.lineStart=s):92===u&&34===o.charCodeAt(s+1)&&34===o.charCodeAt(s+2)&&34===o.charCodeAt(s+3)?(l+=o.slice(c,s)+'"""',s+=4,c=s):++s}throw k(e,s,"Unterminated string.")}(n,a,c,u,t,e);return function(e,t,n,i,r){for(var a=e.body,o=t+1,s=o,c=0,u="";o<a.length&&!isNaN(c=a.charCodeAt(o))&&10!==c&&13!==c;){if(34===c)return u+=a.slice(s,o),new N.ou(O.STRING,t,o+1,n,i,r,u);if(c<32&&9!==c)throw k(e,o,"Invalid character within String: ".concat(x(c),"."));if(++o,92===c){switch(u+=a.slice(s,o-1),c=a.charCodeAt(o)){case 34:u+='"';break;case 47:u+="/";break;case 92:u+="\\";break;case 98:u+="\b";break;case 102:u+="\f";break;case 110:u+="\n";break;case 114:u+="\r";break;case 116:u+="	";break;case 117:var l,p,d,f,m=(l=a.charCodeAt(o+1),p=a.charCodeAt(o+2),d=a.charCodeAt(o+3),f=a.charCodeAt(o+4),F(l)<<12|F(p)<<8|F(d)<<4|F(f));if(m<0){var h=a.slice(o+1,o+5);throw k(e,o,"Invalid character escape sequence: \\u".concat(h,"."))}u+=String.fromCharCode(m),o+=4;break;default:throw k(e,o,"Invalid character escape sequence: \\".concat(String.fromCharCode(c),"."))}s=++o}}throw k(e,o,"Unterminated string.")}(n,a,c,u,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,i,r,a){var o,s=e.body,c=n,u=t,l=!1;if(45===c&&(c=s.charCodeAt(++u)),48===c){if((c=s.charCodeAt(++u))>=48&&c<=57)throw k(e,u,"Invalid number, unexpected digit after 0: ".concat(x(c),"."))}else u=R(e,u,c),c=s.charCodeAt(u);if(46===c&&(l=!0,c=s.charCodeAt(++u),u=R(e,u,c),c=s.charCodeAt(u)),(69===c||101===c)&&(l=!0,(43===(c=s.charCodeAt(++u))||45===c)&&(c=s.charCodeAt(++u)),u=R(e,u,c),c=s.charCodeAt(u)),46===c||95===(o=c)||o>=65&&o<=90||o>=97&&o<=122)throw k(e,u,"Invalid number, expected digit but got: ".concat(x(c),"."));return new N.ou(l?O.FLOAT:O.INT,t,u,i,r,a,s.slice(t,u))}(n,a,s,c,u,t);
924case 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:for(var l=n,p=a,d=c,f=u,m=t,h=l.body,v=h.length,y=p+1,g=0;y!==v&&!isNaN(g=h.charCodeAt(y))&&(95===g||g>=48&&g<=57||g>=65&&g<=90||g>=97&&g<=122);)++y;return new N.ou(O.NAME,p,y,d,f,m,h.slice(p,y))}throw k(n,a,(o=s)<32&&9!==o&&10!==o&&13!==o?"Cannot contain the invalid character ".concat(x(o),"."):39===o?"Unexpected single quote character ('), did you mean to use a double quote (\")?":"Cannot parse the unexpected character ".concat(x(o),"."))}var b=e.line,I=1+a-e.lineStart;return new N.ou(O.EOF,r,r,b,I,t)}(this,t);while(t.kind===O.COMMENT);return t},e}();function x(e){return isNaN(e)?O.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function R(e,t,n){var i=e.body,r=t,a=n;if(a>=48&&a<=57){do a=i.charCodeAt(++r);while(a>=48&&a<=57);return r}throw k(e,r,"Invalid number, expected digit but got: ".concat(x(a),"."))}function F(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}var $=function(){function e(e,t){var n=e instanceof A?e:new A(e);this._lexer=new C(n),this._options=t}var t=e.prototype;return t.parseName=function(){var e=this.expectToken(O.NAME);return{kind:S.b.NAME,value:e.value,loc:this.loc(e)}},t.parseDocument=function(){var e=this._lexer.token;return{kind:S.b.DOCUMENT,definitions:this.many(O.SOF,this.parseDefinition,O.EOF),loc:this.loc(e)}},t.parseDefinition=function(){if(this.peek(O.NAME))switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}else if(this.peek(O.BRACE_L))return this.parseOperationDefinition();else if(this.peekDescription())return this.parseTypeSystemDefinition();throw this.unexpected()},t.parseOperationDefinition=function(){var e,t=this._lexer.token;if(this.peek(O.BRACE_L))return{kind:S.b.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(t)};var n=this.parseOperationType();return this.peek(O.NAME)&&(e=this.parseName()),{kind:S.b.OPERATION_DEFINITION,operation:n,name:e,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}},t.parseOperationType=function(){var e=this.expectToken(O.NAME);switch(e.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(e)},t.parseVariableDefinitions=function(){return this.optionalMany(O.PAREN_L,this.parseVariableDefinition,O.PAREN_R)},t.parseVariableDefinition=function(){var e=this._lexer.token;return{kind:S.b.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(O.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(O.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(e)}},t.parseVariable=function(){var e=this._lexer.token;return this.expectToken(O.DOLLAR),{kind:S.b.VARIABLE,name:this.parseName(),loc:this.loc(e)}},t.parseSelectionSet=function(){var e=this._lexer.token;return{kind:S.b.SELECTION_SET,selections:this.many(O.BRACE_L,this.parseSelection,O.BRACE_R),loc:this.loc(e)}},t.parseSelection=function(){return this.peek(O.SPREAD)?this.parseFragment():this.parseField()},t.parseField=function(){var e,t,n=this._lexer.token,i=this.parseName();return this.expectOptionalToken(O.COLON)?(e=i,t=this.parseName()):t=i,{kind:S.b.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(O.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(n)}},t.parseArguments=function(e){var t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(O.PAREN_L,t,O.PAREN_R)},t.parseArgument=function(){var e=this._lexer.token,t=this.parseName();return this.expectToken(O.COLON),{kind:S.b.ARGUMENT,name:t,value:this.parseValueLiteral(!1),loc:this.loc(e)}},t.parseConstArgument=function(){var e=this._lexer.token;return{kind:S.b.ARGUMENT,name:this.parseName(),value:(this.expectToken(O.COLON),this.parseValueLiteral(!0)),loc:this.loc(e)}},t.parseFragment=function(){var e=this._lexer.token;this.expectToken(O.SPREAD);var t=this.expectOptionalKeyword("on");return!t&&this.peek(O.NAME)?{kind:S.b.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(e)}:{kind:S.b.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseFragmentDefinition=function(){var e,t=this._lexer.token;return(this.expectKeyword("fragment"),(null==(e=this._options)?void 0:e.experimentalFragmentVariables)===!0)?{kind:S.b.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}:{kind:S.b.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}},t.parseFragmentName=function(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()},t.parseValueLiteral=function(e){var t=this._lexer.token;switch(t.kind){case O.BRACKET_L:return this.parseList(e);case O.BRACE_L:return this.parseObject(e);case O.INT:return this._lexer.advance(),{kind:S.b.INT,value:t.value,loc:this.loc(t)};case O.FLOAT:return this._lexer.advance(),{kind:S.b.FLOAT,value:t.value,loc:this.loc(t)};case O.STRING:case O.BLOCK_STRING:return this.parseStringLiteral();case O.NAME:switch(this._lexer.advance(),t.value){case"true":return{kind:S.b.BOOLEAN,value:!0,loc:this.loc(t)};case"false":return{kind:S.b.BOOLEAN,value:!1,loc:this.loc(t)};case"null":return{kind:S.b.NULL,loc:this.loc(t)};default:return{kind:S.b.ENUM,value:t.value,loc:this.loc(t)}}case O.DOLLAR:if(!e)return this.parseVariable()}throw this.unexpected()},t.parseStringLiteral=function(){var e=this._lexer.token;return this._lexer.advance(),{kind:S.b.STRING,value:e.value,block:e.kind===O.BLOCK_STRING,loc:this.loc(e)}},t.parseList=function(e){var t=this,n=this._lexer.token;return{kind:S.b.LIST,values:this.any(O.BRACKET_L,function(){return t.parseValueLiteral(e)},O.BRACKET_R),loc:this.loc(n)}},t.parseObject=function(e){var t=this,n=this._lexer.token;return{kind:S.b.OBJECT,fields:this.any(O.BRACE_L,function(){return t.parseObjectField(e)},O.BRACE_R),loc:this.loc(n)}},t.parseObjectField=function(e){var t=this._lexer.token,n=this.parseName();return this.expectToken(O.COLON),{kind:S.b.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e),loc:this.loc(t)}},t.parseDirectives=function(e){for(var t=[];this.peek(O.AT);)t.push(this.parseDirective(e));return t},t.parseDirective=function(e){var t=this._lexer.token;return this.expectToken(O.AT),{kind:S.b.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e),loc:this.loc(t)}},t.parseTypeReference=function(){var e,t=this._lexer.token;return(this.expectOptionalToken(O.BRACKET_L)?(e=this.parseTypeReference(),this.expectToken(O.BRACKET_R),e={kind:S.b.LIST_TYPE,type:e,loc:this.loc(t)}):e=this.parseNamedType(),this.expectOptionalToken(O.BANG))?{kind:S.b.NON_NULL_TYPE,type:e,loc:this.loc(t)}:e},t.parseNamedType=function(){var e=this._lexer.token;return{kind:S.b.NAMED_TYPE,name:this.parseName(),loc:this.loc(e)}},t.parseTypeSystemDefinition=function(){var e=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(e.kind===O.NAME)switch(e.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()}throw this.unexpected(e)},t.peekDescription=function(){return this.peek(O.STRING)||this.peek(O.BLOCK_STRING)},t.parseDescription=function(){if(this.peekDescription())return this.parseStringLiteral()},t.parseSchemaDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");var n=this.parseDirectives(!0),i=this.many(O.BRACE_L,this.parseOperationTypeDefinition,O.BRACE_R);return{kind:S.b.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:i,loc:this.loc(e)}},t.parseOperationTypeDefinition=function(){var e=this._lexer.token,t=this.parseOperationType();this.expectToken(O.COLON);var n=this.parseNamedType();return{kind:S.b.OPERATION_TYPE_DEFINITION,operation:t,type:n,loc:this.loc(e)}},t.parseScalarTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");var n=this.parseName(),i=this.parseDirectives(!0);return{kind:S.b.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:i,loc:this.loc(e)}},t.parseObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");var n=this.parseName(),i=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),a=this.parseFieldsDefinition();return{kind:S.b.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:i,directives:r,fields:a,loc:this.loc(e)}},t.parseImplementsInterfaces=function(){var e;if(!this.expectOptionalKeyword("implements"))return[];if((null==(e=this._options)?void 0:e.allowLegacySDLImplementsInterfaces)===!0){var t=[];this.expectOptionalToken(O.AMP);do t.push(this.parseNamedType());while(this.expectOptionalToken(O.AMP)||this.peek(O.NAME));return t}return this.delimitedMany(O.AMP,this.parseNamedType)},t.parseFieldsDefinition=function(){var e;return(null==(e=this._options)?void 0:e.allowLegacySDLEmptyFields)===!0&&this.peek(O.BRACE_L)&&this._lexer.lookahead().kind===O.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(O.BRACE_L,this.parseFieldDefinition,O.BRACE_R)},t.parseFieldDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),i=this.parseArgumentDefs();this.expectToken(O.COLON);var r=this.parseTypeReference(),a=this.parseDirectives(!0);return{kind:S.b.FIELD_DEFINITION,description:t,name:n,arguments:i,type:r,directives:a,loc:this.loc(e)}},t.parseArgumentDefs=function(){return this.optionalMany(O.PAREN_L,this.parseInputValueDef,O.PAREN_R)},t.parseInputValueDef=function(){var e,t=this._lexer.token,n=this.parseDescription(),i=this.parseName();this.expectToken(O.COLON);var r=this.parseTypeReference();this.expectOptionalToken(O.EQUALS)&&(e=this.parseValueLiteral(!0));var a=this.parseDirectives(!0);return{kind:S.b.INPUT_VALUE_DEFINITION,description:n,name:i,type:r,defaultValue:e,directives:a,loc:this.loc(t)}},t.parseInterfaceTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");var n=this.parseName(),i=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),a=this.parseFieldsDefinition();return{kind:S.b.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:i,directives:r,fields:a,loc:this.loc(e)}},t.parseUnionTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");var n=this.parseName(),i=this.parseDirectives(!0),r=this.parseUnionMemberTypes();return{kind:S.b.UNION_TYPE_DEFINITION,description:t,name:n,directives:i,types:r,loc:this.loc(e)}},t.parseUnionMemberTypes=function(){return this.expectOptionalToken(O.EQUALS)?this.delimitedMany(O.PIPE,this.parseNamedType):[]},t.parseEnumTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");var n=this.parseName(),i=this.parseDirectives(!0),r=this.parseEnumValuesDefinition();return{kind:S.b.ENUM_TYPE_DEFINITION,description:t,name:n,directives:i,values:r,loc:this.loc(e)}},t.parseEnumValuesDefinition=function(){return this.optionalMany(O.BRACE_L,this.parseEnumValueDefinition,O.BRACE_R)},t.parseEnumValueDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),i=this.parseDirectives(!0);return{kind:S.b.ENUM_VALUE_DEFINITION,description:t,name:n,directives:i,loc:this.loc(e)}},t.parseInputObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");var n=this.parseName(),i=this.parseDirectives(!0),r=this.parseInputFieldsDefinition();return{kind:S.b.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:i,fields:r,loc:this.loc(e)}},t.parseInputFieldsDefinition=function(){return this.optionalMany(O.BRACE_L,this.parseInputValueDef,O.BRACE_R)},t.parseTypeSystemExtension=function(){var e=this._lexer.lookahead();if(e.kind===O.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)},t.parseSchemaExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var t=this.parseDirectives(!0),n=this.optionalMany(O.BRACE_L,this.parseOperationTypeDefinition,O.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return{kind:S.b.SCHEMA_EXTENSION,directives:t,operationTypes:n,loc:this.loc(e)}},t.parseScalarTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var t=this.parseName(),n=this.parseDirectives(!0);if(0===n.length)throw this.unexpected();return{kind:S.b.SCALAR_TYPE_EXTENSION,name:t,directives:n,loc:this.loc(e)}},t.parseObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var t=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),r=this.parseFieldsDefinition();if(0===n.length&&0===i.length&&0===r.length)throw this.unexpected();return{kind:S.b.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:i,fields:r,loc:this.loc(e)}},t.parseInterfaceTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var t=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),r=this.parseFieldsDefinition();if(0===n.length&&0===i.length&&0===r.length)throw this.unexpected();return{kind:S.b.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:i,fields:r,loc:this.loc(e)}},t.parseUnionTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var t=this.parseName(),n=this.parseDirectives(!0),i=this.parseUnionMemberTypes();if(0===n.length&&0===i.length)throw this.unexpected();return{kind:S.b.UNION_TYPE_EXTENSION,name:t,directives:n,types:i,loc:this.loc(e)}},t.parseEnumTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var t=this.parseName(),n=this.parseDirectives(!0),i=this.parseEnumValuesDefinition();if(0===n.length&&0===i.length)throw this.unexpected();return{kind:S.b.ENUM_TYPE_EXTENSION,name:t,directives:n,values:i,loc:this.loc(e)}},t.parseInputObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var t=this.parseName(),n=this.parseDirectives(!0),i=this.parseInputFieldsDefinition();if(0===n.length&&0===i.length)throw this.unexpected();return{kind:S.b.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:i,loc:this.loc(e)}},t.parseDirectiveDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.e
924xpectKeyword("directive"),this.expectToken(O.AT);var n=this.parseName(),i=this.parseArgumentDefs(),r=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var a=this.parseDirectiveLocations();return{kind:S.b.DIRECTIVE_DEFINITION,description:t,name:n,arguments:i,repeatable:r,locations:a,loc:this.loc(e)}},t.parseDirectiveLocations=function(){return this.delimitedMany(O.PIPE,this.parseDirectiveLocation)},t.parseDirectiveLocation=function(){var e=this._lexer.token,t=this.parseName();if(void 0!==_[t.value])return t;throw this.unexpected(e)},t.loc=function(e){var t;if((null==(t=this._options)?void 0:t.noLocation)!==!0)return new N.aZ(e,this._lexer.lastToken,this._lexer.source)},t.peek=function(e){return this._lexer.token.kind===e},t.expectToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t;throw k(this._lexer.source,t.start,"Expected ".concat(L(e),", found ").concat(P(t),"."))},t.expectOptionalToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t},t.expectKeyword=function(e){var t=this._lexer.token;if(t.kind===O.NAME&&t.value===e)this._lexer.advance();else throw k(this._lexer.source,t.start,'Expected "'.concat(e,'", found ').concat(P(t),"."))},t.expectOptionalKeyword=function(e){var t=this._lexer.token;return t.kind===O.NAME&&t.value===e&&(this._lexer.advance(),!0)},t.unexpected=function(e){var t=null!=e?e:this._lexer.token;return k(this._lexer.source,t.start,"Unexpected ".concat(P(t),"."))},t.any=function(e,t,n){this.expectToken(e);for(var i=[];!this.expectOptionalToken(n);)i.push(t.call(this));return i},t.optionalMany=function(e,t,n){if(this.expectOptionalToken(e)){var i=[];do i.push(t.call(this));while(!this.expectOptionalToken(n));return i}return[]},t.many=function(e,t,n){this.expectToken(e);var i=[];do i.push(t.call(this));while(!this.expectOptionalToken(n));return i},t.delimitedMany=function(e,t){this.expectOptionalToken(e);var n=[];do n.push(t.call(this));while(this.expectOptionalToken(e));return n},e}();function P(e){var t=e.value;return L(e.kind)+(null!=t?' "'.concat(t,'"'):"")}function L(e){return e===O.BANG||e===O.DOLLAR||e===O.AMP||e===O.PAREN_L||e===O.PAREN_R||e===O.SPREAD||e===O.COLON||e===O.EQUALS||e===O.AT||e===O.BRACKET_L||e===O.BRACKET_R||e===O.BRACE_L||e===O.PIPE||e===O.BRACE_R?'"'.concat(e,'"'):e}var V=new Map,j=new Map,M=!0,B=!1;function U(e){return e.replace(/[\s,]+/g," ").trim()}function K(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];"string"==typeof e&&(e=[e]);var i=e[0];return t.forEach(function(t,n){t&&"Document"===t.kind?i+=t.loc.source.body:i+=t,i+=e[n+1]}),function(e){var t=U(e);if(!V.has(t)){var n,i,a,o,s,c=new $(e,{experimentalFragmentVariables:B,allowLegacyFragmentVariables:B}).parseDocument();if(!c||"Document"!==c.kind)throw Error("Not a valid GraphQL document.");V.set(t,((o=new Set((n=new Set,i=[],c.definitions.forEach(function(e){if("FragmentDefinition"===e.kind){var t,r=e.name.value,a=U((t=e.loc).source.body.substring(t.start,t.end)),o=j.get(r);o&&!o.has(a)?M&&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"):o||j.set(r,o=new Set),o.add(a),n.has(a)||(n.add(a),i.push(e))}else i.push(e)}),a=(0,r.Cl)((0,r.Cl)({},c),{definitions:i})).definitions)).forEach(function(e){e.loc&&delete e.loc,Object.keys(e).forEach(function(t){var n=e[t];n&&"object"==typeof n&&o.add(n)})}),(s=a.loc)&&(delete s.startToken,delete s.endToken),a))}return V.get(t)}(i)}var J=K;(i=K||(K={})).gql=J,i.resetCaches=function(){V.clear(),j.clear()},i.disableFragmentWarnings=function(){M=!1},i.enableExperimentalFragmentVariables=function(){B=!0},i.disableExperimentalFragmentVariables=function(){B=!1},K.default=K}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.