@teambit/env 1.0.873 → 1.0.874

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -746,7 +746,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
746
746
  `),headers=parseHeaders(message.slice(0,i)),contentType_1=headers["content-type"],contentType_1&&contentType_1.toLowerCase().indexOf("application/json")===-1)throw new Error("Unsupported patch content type: application/json is required.");if(body=message.slice(i),body){if(result=parseJsonBody(response,body),Object.keys(result).length>1||"data"in result||"incremental"in result||"errors"in result||"payload"in result)if(isApolloPayloadResult(result)){if(next={},"payload"in result){if(Object.keys(result).length===1&&result.payload===null)return[2];next=tslib_es6_assign({},result.payload)}"errors"in result&&(next=tslib_es6_assign(tslib_es6_assign({},next),{extensions:tslib_es6_assign(tslib_es6_assign({},"extensions"in next?next.extensions:null),(_c={},_c[PROTOCOL_ERRORS_SYMBOL]=result.errors,_c))})),nextValue(next)}else nextValue(result);else if(Object.keys(result).length===1&&"hasNext"in result&&!result.hasNext)return[2]}bi=buffer.indexOf(boundary)}return[3,1];case 3:return[2]}})})}function parseHeaders(headerText){var headersInit={};return headerText.split(`
747
747
  `).forEach(function(line){var i=line.indexOf(":");if(i>-1){var name_1=line.slice(0,i).trim().toLowerCase(),value=line.slice(i+1).trim();headersInit[name_1]=value}}),headersInit}function parseJsonBody(response,bodyText){if(response.status>=300){var getResult=function(){try{return JSON.parse(bodyText)}catch{return bodyText}};throwServerError(response,getResult(),"Response not successful: Received status code ".concat(response.status))}try{return JSON.parse(bodyText)}catch(err){var parseError=err;throw parseError.name="ServerParseError",parseError.response=response,parseError.statusCode=response.status,parseError.bodyText=bodyText,parseError}}function handleError(err,observer){err.result&&err.result.errors&&err.result.data&&observer.next(err.result),observer.error(err)}function parseAndCheckHttpResponse(operations){return function(response){return response.text().then(function(bodyText){return parseJsonBody(response,bodyText)}).then(function(result){return!Array.isArray(result)&&!parseAndCheckHttpResponse_hasOwnProperty.call(result,"data")&&!parseAndCheckHttpResponse_hasOwnProperty.call(result,"errors")&&throwServerError(response,result,"Server response was missing for query '".concat(Array.isArray(operations)?operations.map(function(op){return op.operationName}):operations.operationName,"'.")),result})}}var checkFetcher=function(fetcher){if(!fetcher&&typeof fetch>"u")throw newInvariantError(40)},printer=__webpack_require__(88172),printCache,print=Object.assign(function(ast){var result=printCache.get(ast);return result||(result=(0,printer.print)(ast),printCache.set(ast,result)),result},{reset:function(){printCache=new AutoCleanedWeakCache(cacheSizes.print||2e3)}});print.reset(),globalThis.__DEV__!==!1&&registerGlobalCache("print",function(){return printCache?printCache.size:0});var defaultHttpOptions={includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},defaultHeaders={accept:"*/*","content-type":"application/json"},defaultOptions={method:"POST"},fallbackHttpConfig={http:defaultHttpOptions,headers:defaultHeaders,options:defaultOptions},defaultPrinter=function(ast,printer2){return printer2(ast)};function selectHttpOptionsAndBody(operation,fallbackConfig){for(var configs=[],_i=2;_i<arguments.length;_i++)configs[_i-2]=arguments[_i];return configs.unshift(fallbackConfig),selectHttpOptionsAndBodyInternal.apply(void 0,__spreadArray([operation,defaultPrinter],configs,!1))}function selectHttpOptionsAndBodyInternal(operation,printer2){for(var configs=[],_i=2;_i<arguments.length;_i++)configs[_i-2]=arguments[_i];var options={},http={};configs.forEach(function(config){options=tslib_es6_assign(tslib_es6_assign(tslib_es6_assign({},options),config.options),{headers:tslib_es6_assign(tslib_es6_assign({},options.headers),config.headers)}),config.credentials&&(options.credentials=config.credentials),http=tslib_es6_assign(tslib_es6_assign({},http),config.http)}),options.headers&&(options.headers=removeDuplicateHeaders(options.headers,http.preserveHeaderCase));var operationName2=operation.operationName,extensions=operation.extensions,variables=operation.variables,query=operation.query,body={operationName:operationName2,variables};return http.includeExtensions&&(body.extensions=extensions),http.includeQuery&&(body.query=printer2(query,print)),{options,body}}function removeDuplicateHeaders(headers,preserveHeaderCase){if(!preserveHeaderCase){var normalizedHeaders_1={};return Object.keys(Object(headers)).forEach(function(name){normalizedHeaders_1[name.toLowerCase()]=headers[name]}),normalizedHeaders_1}var headerData={};Object.keys(Object(headers)).forEach(function(name){headerData[name.toLowerCase()]={originalName:name,value:headers[name]}});var normalizedHeaders={};return Object.keys(headerData).forEach(function(name){normalizedHeaders[headerData[name].originalName]=headerData[name].value}),normalizedHeaders}function rewriteURIForGET(chosenURI,body){var queryParams=[],addQueryParam=function(key,value){queryParams.push("".concat(key,"=").concat(encodeURIComponent(value)))};if("query"in body&&addQueryParam("query",body.query),body.operationName&&addQueryParam("operationName",body.operationName),body.variables){var serializedVariables=void 0;try{serializedVariables=serializeFetchParameter(body.variables,"Variables map")}catch(parseError){return{parseError}}addQueryParam("variables",serializedVariables)}if(body.extensions){var serializedExtensions=void 0;try{serializedExtensions=serializeFetchParameter(body.extensions,"Extensions map")}catch(parseError){return{parseError}}addQueryParam("extensions",serializedExtensions)}var fragment="",preFragment=chosenURI,fragmentStart=chosenURI.indexOf("#");fragmentStart!==-1&&(fragment=chosenURI.substr(fragmentStart),preFragment=chosenURI.substr(0,fragmentStart));var queryParamsPrefix=preFragment.indexOf("?")===-1?"?":"&",newURI=preFragment+queryParamsPrefix+queryParams.join("&")+fragment;return{newURI}}function fromError(errorValue){return new Observable(function(observer){observer.error(errorValue)})}function filterOperationVariables(variables,query){var result=tslib_es6_assign({},variables),unusedNames=new Set(Object.keys(variables));return(0,visitor.YR)(query,{Variable:function(node,_key,parent2){parent2&&parent2.kind!=="VariableDefinition"&&unusedNames.delete(node.name.value)}}),unusedNames.forEach(function(name){delete result[name]}),result}var TYPENAME_FIELD={kind:kinds.b.FIELD,name:{kind:kinds.b.NAME,value:"__typename"}};function isEmpty(op,fragmentMap){return!op||op.selectionSet.selections.every(function(selection){return selection.kind===kinds.b.FRAGMENT_SPREAD&&isEmpty(fragmentMap[selection.name.value],fragmentMap)})}function nullIfDocIsEmpty(doc){return isEmpty(getOperationDefinition(doc)||getFragmentDefinition(doc),createFragmentMap(getFragmentDefinitions(doc)))?null:doc}function getDirectiveMatcher(configs){var names=new Map,tests=new Map;return configs.forEach(function(directive){directive&&(directive.name?names.set(directive.name,directive):directive.test&&tests.set(directive.test,directive))}),function(directive){var config=names.get(directive.name.value);return!config&&tests.size&&tests.forEach(function(testConfig,test){test(directive)&&(config=testConfig)}),config}}function makeInUseGetterFunction(defaultKey){var map=new Map;return function(key){key===void 0&&(key=defaultKey);var inUse=map.get(key);return inUse||map.set(key,inUse={variables:new Set,fragmentSpreads:new Set}),inUse}}function removeDirectivesFromDocument(directives,doc){getFromAST_checkDocument(doc);for(var getInUseByOperationName=makeInUseGetterFunction(""),getInUseByFragmentName=makeInUseGetterFunction(""),getInUse=function(ancestors){for(var p=0,ancestor=void 0;p<ancestors.length&&(ancestor=ancestors[p]);++p)if(!isArray(ancestor)){if(ancestor.kind===kinds.b.OPERATION_DEFINITION)return getInUseByOperationName(ancestor.name&&ancestor.name.value);if(ancestor.kind===kinds.b.FRAGMENT_DEFINITION)return getInUseByFragmentName(ancestor.name.value)}return globalThis.__DEV__!==!1&&invariantWrappers_invariant.error(97),null},operationCount=0,i=doc.definitions.length-1;i>=0;--i)doc.definitions[i].kind===kinds.b.OPERATION_DEFINITION&&++operationCount;var directiveMatcher=getDirectiveMatcher(directives),shouldRemoveField=function(nodeDirectives){return isNonEmptyArray(nodeDirectives)&&nodeDirectives.map(directiveMatcher).some(function(config){return config&&config.remove})},originalFragmentDefsByPath=new Map,firstVisitMadeChanges=!1,fieldOrInlineFragmentVisitor={enter:function(node){if(shouldRemoveField(node.directives))return firstVisitMadeChanges=!0,null}},docWithoutDirectiveSubtrees=(0,visitor.YR)(doc,{Field:fieldOrInlineFragmentVisitor,InlineFragment:fieldOrInlineFragmentVisitor,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(node,_key,_parent,_path,ancestors){var inUse=getInUse(ancestors);inUse&&inUse.variables.add(node.name.value)}},FragmentSpread:{enter:function(node,_key,_parent,_path,ancestors){if(shouldRemoveField(node.directives))return firstVisitMadeChanges=!0,null;var inUse=getInUse(ancestors);inUse&&inUse.fragmentSpreads.add(node.name.value)}},FragmentDefinition:{enter:function(node,_key,_parent,path){originalFragmentDefsByPath.set(JSON.stringify(path),node)},leave:function(node,_key,_parent,path){var originalNode=originalFragmentDefsByPath.get(JSON.stringify(path));if(node===originalNode)return node;if(operationCount>0&&node.selectionSet.selections.every(function(selection){return selection.kind===kinds.b.FIELD&&selection.name.value==="__typename"}))return getInUseByFragmentName(node.name.value).removed=!0,firstVisitMadeChanges=!0,null}},Directive:{leave:function(node){if(directiveMatcher(node))return firstVisitMadeChanges=!0,null}}});if(!firstVisitMadeChanges)return doc;var populateTransitiveVars=function(inUse){return inUse.transitiveVars||(inUse.transitiveVars=new Set(inUse.variables),inUse.removed||inUse.fragmentSpreads.forEach(function(childFragmentName){populateTransitiveVars(getInUseByFragmentName(childFragmentName)).transitiveVars.forEach(function(varName){inUse.transitiveVars.add(varName)})})),inUse},allFragmentNamesUsed=new Set;docWithoutDirectiveSubtrees.definitions.forEach(function(def){def.kind===kinds.b.OPERATION_DEFINITION?populateTransitiveVars(getInUseByOperationName(def.name&&def.name.value)).fragmentSpreads.forEach(function(childFragmentName){allFragmentNamesUsed.add(childFragmentName)}):def.kind===kinds.b.FRAGMENT_DEFINITION&&operationCount===0&&!getInUseByFragmentName(def.name.value).removed&&allFragmentNamesUsed.add(def.name.value)}),allFragmentNamesUsed.forEach(function(fragmentName){populateTransitiveVars(getInUseByFragmentName(fragmentName)).fragmentSpreads.forEach(function(childFragmentName){allFragmentNamesUsed.add(childFragmentName)})});var fragmentWillBeRemoved=function(fragmentName){return!!(!allFragmentNamesUsed.has(fragmentName)||getInUseByFragmentName(fragmentName).removed)},enterVisitor={enter:function(node){if(fragmentWillBeRemoved(node.name.value))return null}};return nullIfDocIsEmpty((0,visitor.YR)(docWithoutDirectiveSubtrees,{FragmentSpread:enterVisitor,FragmentDefinition:enterVisitor,OperationDefinition:{leave:function(node){if(node.variableDefinitions){var usedVariableNames_1=populateTransitiveVars(getInUseByOperationName(node.name&&node.name.value)).transitiveVars;if(usedVariableNames_1.size<node.variableDefinitions.length)return tslib_es6_assign(tslib_es6_assign({},node),{variableDefinitions:node.variableDefinitions.filter(function(varDef){return usedVariableNames_1.has(varDef.variable.name.value)})})}}}}))}var addTypenameToDocument=Object.assign(function(doc){return(0,visitor.YR)(doc,{SelectionSet:{enter:function(node,_key,parent2){if(!(parent2&&parent2.kind===kinds.b.OPERATION_DEFINITION)){var selections=node.selections;if(!!selections){var skip=selections.some(function(selection){return storeUtils_isField(selection)&&(selection.name.value==="__typename"||selection.name.value.lastIndexOf("__",0)===0)});if(!skip){var field=parent2;if(!(storeUtils_isField(field)&&field.directives&&field.directives.some(function(d){return d.name.value==="export"})))return tslib_es6_assign(tslib_es6_assign({},node),{selections:__spreadArray(__spreadArray([],selections,!0),[TYPENAME_FIELD],!1)})}}}}}})},{added:function(field){return field===TYPENAME_FIELD}}),connectionRemoveConfig={test:function(directive){var willRemove=directive.name.value==="connection";return willRemove&&(!directive.arguments||!directive.arguments.some(function(arg){return arg.name.value==="key"}))&&globalThis.__DEV__!==!1&&invariantWrappers_invariant.warn(98),willRemove}};function removeConnectionDirectiveFromDocument(doc){return removeDirectivesFromDocument([connectionRemoveConfig],checkDocument(doc))}function hasDirectivesInSelectionSet(directives,selectionSet,nestedCheck){return nestedCheck===void 0&&(nestedCheck=!0),!!selectionSet&&selectionSet.selections&&selectionSet.selections.some(function(selection){return hasDirectivesInSelection(directives,selection,nestedCheck)})}function hasDirectivesInSelection(directives,selection,nestedCheck){return nestedCheck===void 0&&(nestedCheck=!0),isField(selection)?selection.directives?selection.directives.some(getDirectiveMatcher(directives))||nestedCheck&&hasDirectivesInSelectionSet(directives,selection.selectionSet,nestedCheck):!1:!0}function getArgumentMatcher(config){return function(argument){return config.some(function(aConfig){return argument.value&&argument.value.kind===Kind.VARIABLE&&argument.value.name&&(aConfig.name===argument.value.name.value||aConfig.test&&aConfig.test(argument))})}}function removeArgumentsFromDocument(config,doc){var argMatcher=getArgumentMatcher(config);return nullIfDocIsEmpty(visit(doc,{OperationDefinition:{enter:function(node){return __assign(__assign({},node),{variableDefinitions:node.variableDefinitions?node.variableDefinitions.filter(function(varDef){return!config.some(function(arg){return arg.name===varDef.variable.name.value})}):[]})}},Field:{enter:function(node){var shouldRemoveField=config.some(function(argConfig){return argConfig.remove});if(shouldRemoveField){var argMatchCount_1=0;if(node.arguments&&node.arguments.forEach(function(arg){argMatcher(arg)&&(argMatchCount_1+=1)}),argMatchCount_1===1)return null}}},Argument:{enter:function(node){if(argMatcher(node))return null}}}))}function removeFragmentSpreadFromDocument(config,doc){function enter(node){if(config.some(function(def){return def.name===node.name.value}))return null}return nullIfDocIsEmpty(visit(doc,{FragmentSpread:{enter},FragmentDefinition:{enter}}))}function buildQueryFromSelectionSet(document2){var definition=getMainDefinition(document2),definitionOperation=definition.operation;if(definitionOperation==="query")return document2;var modifiedDoc=(0,visitor.YR)(document2,{OperationDefinition:{enter:function(node){return tslib_es6_assign(tslib_es6_assign({},node),{operation:"query"})}}});return modifiedDoc}function removeClientSetsFromDocument(document2){getFromAST_checkDocument(document2);var modifiedDoc=removeDirectivesFromDocument([{test:function(directive){return directive.name.value==="client"},remove:!0}],document2);return modifiedDoc}function addNonReactiveToNamedFragments(document2){return getFromAST_checkDocument(document2),(0,visitor.YR)(document2,{FragmentSpread:function(node){var _a2;if(!(!((_a2=node.directives)===null||_a2===void 0)&&_a2.some(function(directive){return directive.name.value==="unmask"})))return tslib_es6_assign(tslib_es6_assign({},node),{directives:__spreadArray(__spreadArray([],node.directives||[],!0),[{kind:kinds.b.DIRECTIVE,name:{kind:kinds.b.NAME,value:"nonreactive"}}],!1)})}})}var backupFetch=maybe(function(){return fetch}),createHttpLink=function(linkOptions){linkOptions===void 0&&(linkOptions={});var _a2=linkOptions.uri,uri=_a2===void 0?"/graphql":_a2,preferredFetch=linkOptions.fetch,_b=linkOptions.print,print2=_b===void 0?defaultPrinter:_b,includeExtensions=linkOptions.includeExtensions,preserveHeaderCase=linkOptions.preserveHeaderCase,useGETForQueries=linkOptions.useGETForQueries,_c=linkOptions.includeUnusedVariables,includeUnusedVariables=_c===void 0?!1:_c,requestOptions=__rest(linkOptions,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);globalThis.__DEV__!==!1&&checkFetcher(preferredFetch||backupFetch);var linkConfig={http:{includeExtensions,preserveHeaderCase},options:requestOptions.fetchOptions,credentials:requestOptions.credentials,headers:requestOptions.headers};return new ApolloLink(function(operation){var chosenURI=selectURI(operation,uri),context=operation.getContext(),clientAwarenessHeaders={};if(context.clientAwareness){var _a3=context.clientAwareness,name_1=_a3.name,version2=_a3.version;name_1&&(clientAwarenessHeaders["apollographql-client-name"]=name_1),version2&&(clientAwarenessHeaders["apollographql-client-version"]=version2)}var contextHeaders=tslib_es6_assign(tslib_es6_assign({},clientAwarenessHeaders),context.headers),contextConfig={http:context.http,options:context.fetchOptions,credentials:context.credentials,headers:contextHeaders};if(hasDirectives(["client"],operation.query)){var transformedQuery=removeClientSetsFromDocument(operation.query);if(!transformedQuery)return fromError(new Error("HttpLink: Trying to send a client-only query to the server. To send to the server, ensure a non-client field is added to the query or set the `transformOptions.removeClientFields` option to `true`."));operation.query=transformedQuery}var _b2=selectHttpOptionsAndBodyInternal(operation,print2,fallbackHttpConfig,linkConfig,contextConfig),options=_b2.options,body=_b2.body;body.variables&&!includeUnusedVariables&&(body.variables=filterOperationVariables(body.variables,operation.query));var controller;!options.signal&&typeof AbortController<"u"&&(controller=new AbortController,options.signal=controller.signal);var definitionIsMutation=function(d){return d.kind==="OperationDefinition"&&d.operation==="mutation"},definitionIsSubscription=function(d){return d.kind==="OperationDefinition"&&d.operation==="subscription"},isSubscription=definitionIsSubscription(getMainDefinition(operation.query)),hasDefer=hasDirectives(["defer"],operation.query);if(useGETForQueries&&!operation.query.definitions.some(definitionIsMutation)&&(options.method="GET"),hasDefer||isSubscription){options.headers=options.headers||{};var acceptHeader="multipart/mixed;";isSubscription&&hasDefer&&globalThis.__DEV__!==!1&&invariantWrappers_invariant.warn(41),isSubscription?acceptHeader+="boundary=graphql;subscriptionSpec=1.0,application/json":hasDefer&&(acceptHeader+="deferSpec=20220824,application/json"),options.headers.accept=acceptHeader}if(options.method==="GET"){var _c2=rewriteURIForGET(chosenURI,body),newURI=_c2.newURI,parseError=_c2.parseError;if(parseError)return fromError(parseError);chosenURI=newURI}else try{options.body=serializeFetchParameter(body,"Payload")}catch(parseError2){return fromError(parseError2)}return new Observable(function(observer){var currentFetch=preferredFetch||maybe(function(){return fetch})||backupFetch,observerNext=observer.next.bind(observer);return currentFetch(chosenURI,options).then(function(response){var _a4;operation.setContext({response});var ctype=(_a4=response.headers)===null||_a4===void 0?void 0:_a4.get("content-type");return ctype!==null&&/^multipart\/mixed/i.test(ctype)?readMultipartBody(response,observerNext):parseAndCheckHttpResponse(operation)(response).then(observerNext)}).then(function(){controller=void 0,observer.complete()}).catch(function(err){controller=void 0,handleError(err,observer)}),function(){controller&&controller.abort()}})})},HttpLink=function(_super){__extends(HttpLink2,_super);function HttpLink2(options){options===void 0&&(options={});var _this=_super.call(this,createHttpLink(options).request)||this;return _this.options=options,_this}return HttpLink2}(ApolloLink);const{toString:lib_toString,hasOwnProperty:lib_hasOwnProperty}=Object.prototype,fnToStr=Function.prototype.toString,previousComparisons=new Map;function equal(a,b){try{return check(a,b)}finally{previousComparisons.clear()}}const lib=equal;function check(a,b){if(a===b)return!0;const aTag=lib_toString.call(a),bTag=lib_toString.call(b);if(aTag!==bTag)return!1;switch(aTag){case"[object Array]":if(a.length!==b.length)return!1;case"[object Object]":{if(previouslyCompared(a,b))return!0;const aKeys=definedKeys(a),bKeys=definedKeys(b),keyCount=aKeys.length;if(keyCount!==bKeys.length)return!1;for(let k=0;k<keyCount;++k)if(!lib_hasOwnProperty.call(b,aKeys[k]))return!1;for(let k=0;k<keyCount;++k){const key=aKeys[k];if(!check(a[key],b[key]))return!1}return!0}case"[object Error]":return a.name===b.name&&a.message===b.message;case"[object Number]":if(a!==a)return b!==b;case"[object Boolean]":case"[object Date]":return+a==+b;case"[object RegExp]":case"[object String]":return a==`${b}`;case"[object Map]":case"[object Set]":{if(a.size!==b.size)return!1;if(previouslyCompared(a,b))return!0;const aIterator=a.entries(),isMap=aTag==="[object Map]";for(;;){const info=aIterator.next();if(info.done)break;const[aKey,aValue]=info.value;if(!b.has(aKey)||isMap&&!check(aValue,b.get(aKey)))return!1}return!0}case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":a=new Uint8Array(a),b=new Uint8Array(b);case"[object DataView]":{let len=a.byteLength;if(len===b.byteLength)for(;len--&&a[len]===b[len];);return len===-1}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{const aCode=fnToStr.call(a);return aCode!==fnToStr.call(b)?!1:!endsWith(aCode,nativeCodeSuffix)}}return!1}function definedKeys(obj){return Object.keys(obj).filter(isDefinedKey,obj)}function isDefinedKey(key){return this[key]!==void 0}const nativeCodeSuffix="{ [native code] }";function endsWith(full,suffix){const fromIndex=full.length-suffix.length;return fromIndex>=0&&full.indexOf(suffix,fromIndex)===fromIndex}function previouslyCompared(a,b){let bSet=previousComparisons.get(a);if(bSet){if(bSet.has(b))return!0}else previousComparisons.set(a,bSet=new Set);return bSet.add(b),!1}const defaultMakeData=()=>Object.create(null),{forEach,slice}=Array.prototype,{hasOwnProperty:trie_lib_hasOwnProperty}=Object.prototype;class Trie{constructor(weakness=!0,makeData=defaultMakeData){this.weakness=weakness,this.makeData=makeData}lookup(){return this.lookupArray(arguments)}lookupArray(array){let node=this;return forEach.call(array,key=>node=node.getChildTrie(key)),trie_lib_hasOwnProperty.call(node,"data")?node.data:node.data=this.makeData(slice.call(array))}peek(){return this.peekArray(arguments)}peekArray(array){let node=this;for(let i=0,len=array.length;node&&i<len;++i){const map=node.mapFor(array[i],!1);node=map&&map.get(array[i])}return node&&node.data}remove(){return this.removeArray(arguments)}removeArray(array){let data;if(array.length){const head=array[0],map=this.mapFor(head,!1),child=map&&map.get(head);child&&(data=child.removeArray(slice.call(array,1)),!child.data&&!child.weak&&!(child.strong&&child.strong.size)&&map.delete(head))}else data=this.data,delete this.data;return data}getChildTrie(key){const map=this.mapFor(key,!0);let child=map.get(key);return child||map.set(key,child=new Trie(this.weakness,this.makeData)),child}mapFor(key,create){return this.weakness&&isObjRef(key)?this.weak||(create?this.weak=new WeakMap:void 0):this.strong||(create?this.strong=new Map:void 0)}}function isObjRef(value){switch(typeof value){case"object":if(value===null)break;case"function":return!0}return!1}let currentContext=null;const MISSING_VALUE={};let idCounter=1;const makeSlotClass=()=>class{constructor(){this.id=["slot",idCounter++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let context=currentContext;context;context=context.parent)if(this.id in context.slots){const value=context.slots[this.id];if(value===MISSING_VALUE)break;return context!==currentContext&&(currentContext.slots[this.id]=value),!0}return currentContext&&(currentContext.slots[this.id]=MISSING_VALUE),!1}getValue(){if(this.hasValue())return currentContext.slots[this.id]}withValue(value,callback,args,thisArg){const slots={__proto__:null,[this.id]:value},parent2=currentContext;currentContext={parent:parent2,slots};try{return callback.apply(thisArg,args)}finally{currentContext=parent2}}static bind(callback){const context=currentContext;return function(){const saved=currentContext;try{return currentContext=context,callback.apply(this,arguments)}finally{currentContext=saved}}}static noContext(callback,args,thisArg){if(currentContext){const saved=currentContext;try{return currentContext=null,callback.apply(thisArg,args)}finally{currentContext=saved}}else return callback.apply(thisArg,args)}};function slot_maybe(fn){try{return fn()}catch{}}const globalKey="@wry/context:Slot",globalHost=slot_maybe(()=>globalThis)||slot_maybe(()=>global)||Object.create(null),Slot=globalHost[globalKey]||Array[globalKey]||function(Slot2){try{Object.defineProperty(globalHost,globalKey,{value:Slot2,enumerable:!1,writable:!1,configurable:!0})}finally{return Slot2}}(makeSlotClass()),{bind,noContext}=Slot;function setTimeoutWithContext(callback,delay){return setTimeout(bind(callback),delay)}function asyncFromGen(genFn){return function(){const gen=genFn.apply(this,arguments),boundNext=bind(gen.next),boundThrow=bind(gen.throw);return new Promise((resolve,reject)=>{function invoke(method,argument){try{var result=method.call(gen,argument)}catch(error){return reject(error)}const next=result.done?resolve:invokeNext;isPromiseLike(result.value)?result.value.then(next,result.done?reject:invokeThrow):next(result.value)}const invokeNext=value=>invoke(boundNext,value),invokeThrow=error=>invoke(boundThrow,error);invokeNext()})}}function isPromiseLike(value){return value&&typeof value.then=="function"}const wrappedFibers=null;function wrapYieldingFiberMethods(Fiber){if(wrappedFibers.indexOf(Fiber)<0){const wrap2=(obj,method)=>{const fn=obj[method];obj[method]=function(){return noContext(fn,arguments,this)}};wrap2(Fiber,"yield"),wrap2(Fiber.prototype,"run"),wrap2(Fiber.prototype,"throwInto"),wrappedFibers.push(Fiber)}return Fiber}const parentEntrySlot=new Slot;function nonReactive(fn){return parentEntrySlot.withValue(void 0,fn)}const{hasOwnProperty:helpers_hasOwnProperty}=Object.prototype,arrayFromSet=Array.from||function(set){const array=[];return set.forEach(item=>array.push(item)),array};function maybeUnsubscribe(entryOrDep){const{unsubscribe}=entryOrDep;typeof unsubscribe=="function"&&(entryOrDep.unsubscribe=void 0,unsubscribe())}const emptySetPool=[],POOL_TARGET_SIZE=100;function assert(condition,optionalMessage){if(!condition)throw new Error(optionalMessage||"assertion failure")}function valueIs(a,b){const len=a.length;return len>0&&len===b.length&&a[len-1]===b[len-1]}function valueGet(value){switch(value.length){case 0:throw new Error("unknown value");case 1:return value[0];case 2:throw value[1]}}function valueCopy(value){return value.slice(0)}class Entry{constructor(fn){this.fn=fn,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++Entry.count}peek(){if(this.value.length===1&&!mightBeDirty(this))return rememberParent(this),this.value[0]}recompute(args){return assert(!this.recomputing,"already recomputing"),rememberParent(this),mightBeDirty(this)?reallyRecompute(this,args):valueGet(this.value)}setDirty(){this.dirty||(this.dirty=!0,reportDirty(this),maybeUnsubscribe(this))}dispose(){this.setDirty(),forgetChildren(this),eachParent(this,(parent2,child)=>{parent2.setDirty(),forgetChild(parent2,this)})}forget(){this.dispose()}dependOn(dep2){dep2.add(this),this.deps||(this.deps=emptySetPool.pop()||new Set),this.deps.add(dep2)}forgetDeps(){this.deps&&(arrayFromSet(this.deps).forEach(dep2=>dep2.delete(this)),this.deps.clear(),emptySetPool.push(this.deps),this.deps=null)}}Entry.count=0;function rememberParent(child){const parent2=parentEntrySlot.getValue();if(parent2)return child.parents.add(parent2),parent2.childValues.has(child)||parent2.childValues.set(child,[]),mightBeDirty(child)?reportDirtyChild(parent2,child):reportCleanChild(parent2,child),parent2}function reallyRecompute(entry,args){return forgetChildren(entry),parentEntrySlot.withValue(entry,recomputeNewValue,[entry,args]),maybeSubscribe(entry,args)&&setClean(entry),valueGet(entry.value)}function recomputeNewValue(entry,args){entry.recomputing=!0;const{normalizeResult}=entry;let oldValueCopy;normalizeResult&&entry.value.length===1&&(oldValueCopy=valueCopy(entry.value)),entry.value.length=0;try{if(entry.value[0]=entry.fn.apply(null,args),normalizeResult&&oldValueCopy&&!valueIs(oldValueCopy,entry.value))try{entry.value[0]=normalizeResult(entry.value[0],oldValueCopy[0])}catch{}}catch(e){entry.value[1]=e}entry.recomputing=!1}function mightBeDirty(entry){return entry.dirty||!!(entry.dirtyChildren&&entry.dirtyChildren.size)}function setClean(entry){entry.dirty=!1,!mightBeDirty(entry)&&reportClean(entry)}function reportDirty(child){eachParent(child,reportDirtyChild)}function reportClean(child){eachParent(child,reportCleanChild)}function eachParent(child,callback){const parentCount=child.parents.size;if(parentCount){const parents=arrayFromSet(child.parents);for(let i=0;i<parentCount;++i)callback(parents[i],child)}}function reportDirtyChild(parent2,child){assert(parent2.childValues.has(child)),assert(mightBeDirty(child));const parentWasClean=!mightBeDirty(parent2);if(!parent2.dirtyChildren)parent2.dirtyChildren=emptySetPool.pop()||new Set;else if(parent2.dirtyChildren.has(child))return;parent2.dirtyChildren.add(child),parentWasClean&&reportDirty(parent2)}function reportCleanChild(parent2,child){assert(parent2.childValues.has(child)),assert(!mightBeDirty(child));const childValue=parent2.childValues.get(child);childValue.length===0?parent2.childValues.set(child,valueCopy(child.value)):valueIs(childValue,child.value)||parent2.setDirty(),removeDirtyChild(parent2,child),!mightBeDirty(parent2)&&reportClean(parent2)}function removeDirtyChild(parent2,child){const dc=parent2.dirtyChildren;dc&&(dc.delete(child),dc.size===0&&(emptySetPool.length<POOL_TARGET_SIZE&&emptySetPool.push(dc),parent2.dirtyChildren=null))}function forgetChildren(parent2){parent2.childValues.size>0&&parent2.childValues.forEach((_value,child)=>{forgetChild(parent2,child)}),parent2.forgetDeps(),assert(parent2.dirtyChildren===null)}function forgetChild(parent2,child){child.parents.delete(parent2),parent2.childValues.delete(child),removeDirtyChild(parent2,child)}function maybeSubscribe(entry,args){if(typeof entry.subscribe=="function")try{maybeUnsubscribe(entry),entry.unsubscribe=entry.subscribe.apply(null,args)}catch{return entry.setDirty(),!1}return!0}const EntryMethods={setDirty:!0,dispose:!0,forget:!0};function dep(options){const depsByKey=new Map,subscribe=options&&options.subscribe;function depend(key){const parent2=parentEntrySlot.getValue();if(parent2){let dep2=depsByKey.get(key);dep2||depsByKey.set(key,dep2=new Set),parent2.dependOn(dep2),typeof subscribe=="function"&&(maybeUnsubscribe(dep2),dep2.unsubscribe=subscribe(key))}}return depend.dirty=function(key,entryMethodName){const dep2=depsByKey.get(key);if(dep2){const m=entryMethodName&&helpers_hasOwnProperty.call(EntryMethods,entryMethodName)?entryMethodName:"setDirty";arrayFromSet(dep2).forEach(entry=>entry[m]()),depsByKey.delete(key),maybeUnsubscribe(dep2)}},depend}let defaultKeyTrie;function defaultMakeCacheKey(...args){return(defaultKeyTrie||(defaultKeyTrie=new Trie(typeof WeakMap=="function"))).lookupArray(args)}const caches=new Set;function lib_wrap(originalFunction,{max=Math.pow(2,16),keyArgs,makeCacheKey=defaultMakeCacheKey,normalizeResult,subscribe,cache:cacheOption=StrongCache}=Object.create(null)){const cache2=typeof cacheOption=="function"?new cacheOption(max,entry=>entry.dispose()):cacheOption,optimistic=function(){const key=makeCacheKey.apply(null,keyArgs?keyArgs.apply(null,arguments):arguments);if(key===void 0)return originalFunction.apply(null,arguments);let entry=cache2.get(key);entry||(cache2.set(key,entry=new Entry(originalFunction)),entry.normalizeResult=normalizeResult,entry.subscribe=subscribe,entry.forget=()=>cache2.delete(key));const value=entry.recompute(Array.prototype.slice.call(arguments));return cache2.set(key,entry),caches.add(cache2),parentEntrySlot.hasValue()||(caches.forEach(cache3=>cache3.clean()),caches.clear()),value};Object.defineProperty(optimistic,"size",{get:()=>cache2.size,configurable:!1,enumerable:!1}),Object.freeze(optimistic.options={max,keyArgs,makeCacheKey,normalizeResult,subscribe,cache:cache2});function dirtyKey(key){const entry=key&&cache2.get(key);entry&&entry.setDirty()}optimistic.dirtyKey=dirtyKey,optimistic.dirty=function(){dirtyKey(makeCacheKey.apply(null,arguments))};function peekKey(key){const entry=key&&cache2.get(key);if(entry)return entry.peek()}optimistic.peekKey=peekKey,optimistic.peek=function(){return peekKey(makeCacheKey.apply(null,arguments))};function forgetKey(key){return key?cache2.delete(key):!1}return optimistic.forgetKey=forgetKey,optimistic.forget=function(){return forgetKey(makeCacheKey.apply(null,arguments))},optimistic.makeCacheKey=makeCacheKey,optimistic.getKey=keyArgs?function(){return makeCacheKey.apply(null,keyArgs.apply(null,arguments))}:makeCacheKey,Object.freeze(optimistic)}function identity(document2){return document2}var DocumentTransform=function(){function DocumentTransform2(transform,options){options===void 0&&(options=Object.create(null)),this.resultCache=canUseWeakSet?new WeakSet:new Set,this.transform=transform,options.getCacheKey&&(this.getCacheKey=options.getCacheKey),this.cached=options.cache!==!1,this.resetCache()}return DocumentTransform2.prototype.getCacheKey=function(document2){return[document2]},DocumentTransform2.identity=function(){return new DocumentTransform2(identity,{cache:!1})},DocumentTransform2.split=function(predicate,left,right){return right===void 0&&(right=DocumentTransform2.identity()),Object.assign(new DocumentTransform2(function(document2){var documentTransform=predicate(document2)?left:right;return documentTransform.transformDocument(document2)},{cache:!1}),{left,right})},DocumentTransform2.prototype.resetCache=function(){var _this=this;if(this.cached){var stableCacheKeys_1=new Trie(canUseWeakMap);this.performWork=lib_wrap(DocumentTransform2.prototype.performWork.bind(this),{makeCacheKey:function(document2){var cacheKeys=_this.getCacheKey(document2);if(cacheKeys)return invariantWrappers_invariant(Array.isArray(cacheKeys),77),stableCacheKeys_1.lookupArray(cacheKeys)},max:cacheSizes["documentTransform.cache"],cache:WeakCache})}},DocumentTransform2.prototype.performWork=function(document2){return getFromAST_checkDocument(document2),this.transform(document2)},DocumentTransform2.prototype.transformDocument=function(document2){if(this.resultCache.has(document2))return document2;var transformedDocument=this.performWork(document2);return this.resultCache.add(transformedDocument),transformedDocument},DocumentTransform2.prototype.concat=function(otherTransform){var _this=this;return Object.assign(new DocumentTransform2(function(document2){return otherTransform.transformDocument(_this.transformDocument(document2))},{cache:!1}),{left:this,right:otherTransform})},DocumentTransform2}();function asyncMap(observable,mapFn,catchFn){return new Observable(function(observer){var promiseQueue={then:function(callback){return new Promise(function(resolve){return resolve(callback())})}};function makeCallback(examiner,key){return function(arg){if(examiner){var both=function(){return observer.closed?0:examiner(arg)};promiseQueue=promiseQueue.then(both,both).then(function(result){return observer.next(result)},function(error){return observer.error(error)})}else observer[key](arg)}}var handler={next:makeCallback(mapFn,"next"),error:makeCallback(catchFn,"error"),complete:function(){promiseQueue.then(function(){return observer.complete()})}},sub=observable.subscribe(handler);return function(){return sub.unsubscribe()}})}function graphQLResultHasError(result){var errors=getGraphQLErrorsFromResult(result);return isNonEmptyArray(errors)}function getGraphQLErrorsFromResult(result){var graphQLErrors=isNonEmptyArray(result.errors)?result.errors.slice(0):[];return isExecutionPatchIncrementalResult(result)&&isNonEmptyArray(result.incremental)&&result.incremental.forEach(function(incrementalResult){incrementalResult.errors&&graphQLErrors.push.apply(graphQLErrors,incrementalResult.errors)}),graphQLErrors}function iterateObserversSafely(observers,method,argument){var observersWithMethod=[];observers.forEach(function(obs){return obs[method]&&observersWithMethod.push(obs)}),observersWithMethod.forEach(function(obs){return obs[method](argument)})}function fixObservableSubclass(subclass){function set(key){Object.defineProperty(subclass,key,{value:Observable})}return canUseSymbol&&Symbol.species&&set(Symbol.species),set("@@species"),subclass}function Concast_isPromiseLike(value){return value&&typeof value.then=="function"}var Concast=function(_super){__extends(Concast2,_super);function Concast2(sources){var _this=_super.call(this,function(observer){return _this.addObserver(observer),function(){return _this.removeObserver(observer)}})||this;return _this.observers=new Set,_this.promise=new Promise(function(resolve,reject){_this.resolve=resolve,_this.reject=reject}),_this.handlers={next:function(result){_this.sub!==null&&(_this.latest=["next",result],_this.notify("next",result),iterateObserversSafely(_this.observers,"next",result))},error:function(error){var sub=_this.sub;sub!==null&&(sub&&setTimeout(function(){return sub.unsubscribe()}),_this.sub=null,_this.latest=["error",error],_this.reject(error),_this.notify("error",error),iterateObserversSafely(_this.observers,"error",error))},complete:function(){var _a2=_this,sub=_a2.sub,_b=_a2.sources,sources2=_b===void 0?[]:_b;if(sub!==null){var value=sources2.shift();value?Concast_isPromiseLike(value)?value.then(function(obs){return _this.sub=obs.subscribe(_this.handlers)},_this.handlers.error):_this.sub=value.subscribe(_this.handlers):(sub&&setTimeout(function(){return sub.unsubscribe()}),_this.sub=null,_this.latest&&_this.latest[0]==="next"?_this.resolve(_this.latest[1]):_this.resolve(),_this.notify("complete"),iterateObserversSafely(_this.observers,"complete"))}}},_this.nextResultListeners=new Set,_this.cancel=function(reason){_this.reject(reason),_this.sources=[],_this.handlers.error(reason)},_this.promise.catch(function(_){}),typeof sources=="function"&&(sources=[new Observable(sources)]),Concast_isPromiseLike(sources)?sources.then(function(iterable){return _this.start(iterable)},_this.handlers.error):_this.start(sources),_this}return Concast2.prototype.start=function(sources){this.sub===void 0&&(this.sources=Array.from(sources),this.handlers.complete())},Concast2.prototype.deliverLastMessage=function(observer){if(this.latest){var nextOrError=this.latest[0],method=observer[nextOrError];method&&method.call(observer,this.latest[1]),this.sub===null&&nextOrError==="next"&&observer.complete&&observer.complete()}},Concast2.prototype.addObserver=function(observer){this.observers.has(observer)||(this.deliverLastMessage(observer),this.observers.add(observer))},Concast2.prototype.removeObserver=function(observer){this.observers.delete(observer)&&this.observers.size<1&&this.handlers.complete()},Concast2.prototype.notify=function(method,arg){var nextResultListeners=this.nextResultListeners;nextResultListeners.size&&(this.nextResultListeners=new Set,nextResultListeners.forEach(function(listener){return listener(method,arg)}))},Concast2.prototype.beforeNext=function(callback){var called=!1;this.nextResultListeners.add(function(method,arg){called||(called=!0,callback(method,arg))})},Concast2}(Observable);fixObservableSubclass(Concast);var NetworkStatus;(function(NetworkStatus2){NetworkStatus2[NetworkStatus2.loading=1]="loading",NetworkStatus2[NetworkStatus2.setVariables=2]="setVariables",NetworkStatus2[NetworkStatus2.fetchMore=3]="fetchMore",NetworkStatus2[NetworkStatus2.refetch=4]="refetch",NetworkStatus2[NetworkStatus2.poll=6]="poll",NetworkStatus2[NetworkStatus2.ready=7]="ready",NetworkStatus2[NetworkStatus2.error=8]="error"})(NetworkStatus||(NetworkStatus={}));function isNetworkRequestInFlight(networkStatus){return networkStatus?networkStatus<7:!1}function isNetworkRequestSettled(networkStatus){return networkStatus===7||networkStatus===8}function compact(){for(var objects=[],_i=0;_i<arguments.length;_i++)objects[_i]=arguments[_i];var result=Object.create(null);return objects.forEach(function(obj){!obj||Object.keys(obj).forEach(function(key){var value=obj[key];value!==void 0&&(result[key]=value)})}),result}var cloneDeep_toString=Object.prototype.toString;function cloneDeep(value){return cloneDeepHelper(value)}function cloneDeepHelper(val,seen){switch(cloneDeep_toString.call(val)){case"[object Array]":{if(seen=seen||new Map,seen.has(val))return seen.get(val);var copy_1=val.slice(0);return seen.set(val,copy_1),copy_1.forEach(function(child,i){copy_1[i]=cloneDeepHelper(child,seen)}),copy_1}case"[object Object]":{if(seen=seen||new Map,seen.has(val))return seen.get(val);var copy_2=Object.create(Object.getPrototypeOf(val));return seen.set(val,copy_2),Object.keys(val).forEach(function(key){copy_2[key]=cloneDeepHelper(val[key],seen)}),copy_2}default:return val}}function preventUnhandledRejection(promise){return promise.catch(function(){}),promise}function equalByQuery(query,_a2,_b,variables){var aData=_a2.data,aRest=__rest(_a2,["data"]),bData=_b.data,bRest=__rest(_b,["data"]);return lib(aRest,bRest)&&equalBySelectionSet(getMainDefinition(query).selectionSet,aData,bData,{fragmentMap:createFragmentMap(getFragmentDefinitions(query)),variables})}function equalBySelectionSet(selectionSet,aResult,bResult,context){if(aResult===bResult)return!0;var seenSelections=new Set;return selectionSet.selections.every(function(selection){if(seenSelections.has(selection)||(seenSelections.add(selection),!shouldInclude(selection,context.variables))||selectionHasNonreactiveDirective(selection))return!0;if(storeUtils_isField(selection)){var resultKey=resultKeyNameFromField(selection),aResultChild=aResult&&aResult[resultKey],bResultChild=bResult&&bResult[resultKey],childSelectionSet=selection.selectionSet;if(!childSelectionSet)return lib(aResultChild,bResultChild);var aChildIsArray=Array.isArray(aResultChild),bChildIsArray=Array.isArray(bResultChild);if(aChildIsArray!==bChildIsArray)return!1;if(aChildIsArray&&bChildIsArray){var length_1=aResultChild.length;if(bResultChild.length!==length_1)return!1;for(var i=0;i<length_1;++i)if(!equalBySelectionSet(childSelectionSet,aResultChild[i],bResultChild[i],context))return!1;return!0}return equalBySelectionSet(childSelectionSet,aResultChild,bResultChild,context)}else{var fragment=getFragmentFromSelection(selection,context.fragmentMap);if(fragment)return selectionHasNonreactiveDirective(fragment)?!0:equalBySelectionSet(fragment.selectionSet,aResult,bResult,context)}})}function selectionHasNonreactiveDirective(selection){return!!selection.directives&&selection.directives.some(directiveIsNonreactive)}function directiveIsNonreactive(dir){return dir.name.value==="nonreactive"}var ObservableQuery_assign=Object.assign,ObservableQuery_hasOwnProperty=Object.hasOwnProperty,ObservableQuery=function(_super){__extends(ObservableQuery2,_super);function ObservableQuery2(_a2){var queryManager=_a2.queryManager,queryInfo=_a2.queryInfo,options=_a2.options,_this=_super.call(this,function(observer){try{var subObserver=observer._subscription._observer;subObserver&&!subObserver.error&&(subObserver.error=defaultSubscriptionObserverErrorCallback)}catch{}var first=!_this.observers.size;_this.observers.add(observer);var last=_this.last;return last&&last.error?observer.error&&observer.error(last.error):last&&last.result&&observer.next&&observer.next(_this.maskResult(last.result)),first&&_this.reobserve().catch(function(){}),function(){_this.observers.delete(observer)&&!_this.observers.size&&_this.tearDownQuery()}})||this;_this.observers=new Set,_this.subscriptions=new Set,_this.queryInfo=queryInfo,_this.queryManager=queryManager,_this.waitForOwnResult=skipCacheDataFor(options.fetchPolicy),_this.isTornDown=!1,_this.subscribeToMore=_this.subscribeToMore.bind(_this),_this.maskResult=_this.maskResult.bind(_this);var _b=queryManager.defaultOptions.watchQuery,_c=_b===void 0?{}:_b,_d=_c.fetchPolicy,defaultFetchPolicy=_d===void 0?"cache-first":_d,_e=options.fetchPolicy,fetchPolicy=_e===void 0?defaultFetchPolicy:_e,_f=options.initialFetchPolicy,initialFetchPolicy=_f===void 0?fetchPolicy==="standby"?defaultFetchPolicy:fetchPolicy:_f;_this.options=tslib_es6_assign(tslib_es6_assign({},options),{initialFetchPolicy,fetchPolicy}),_this.queryId=queryInfo.queryId||queryManager.generateQueryId();var opDef=getOperationDefinition(_this.query);return _this.queryName=opDef&&opDef.name&&opDef.name.value,_this}return Object.defineProperty(ObservableQuery2.prototype,"query",{get:function(){return this.lastQuery||this.options.query},enumerable:!1,configurable:!0}),Object.defineProperty(ObservableQuery2.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),ObservableQuery2.prototype.result=function(){var _this=this;return new Promise(function(resolve,reject){var observer={next:function(result){resolve(result),_this.observers.delete(observer),_this.observers.size||_this.queryManager.removeQuery(_this.queryId),setTimeout(function(){subscription.unsubscribe()},0)},error:reject},subscription=_this.subscribe(observer)})},ObservableQuery2.prototype.resetDiff=function(){this.queryInfo.resetDiff()},ObservableQuery2.prototype.getCurrentFullResult=function(saveAsLastResult){saveAsLastResult===void 0&&(saveAsLastResult=!0);var lastResult=this.getLastResult(!0),networkStatus=this.queryInfo.networkStatus||lastResult&&lastResult.networkStatus||NetworkStatus.ready,result=tslib_es6_assign(tslib_es6_assign({},lastResult),{loading:isNetworkRequestInFlight(networkStatus),networkStatus}),_a2=this.options.fetchPolicy,fetchPolicy=_a2===void 0?"cache-first":_a2;if(!(skipCacheDataFor(fetchPolicy)||this.queryManager.getDocumentInfo(this.query).hasForcedResolvers))if(this.waitForOwnResult)this.queryInfo.updateWatch();else{var diff=this.queryInfo.getDiff();(diff.complete||this.options.returnPartialData)&&(result.data=diff.result),equal(result.data,{})&&(result.data=void 0),diff.complete?(delete result.partial,diff.complete&&result.networkStatus===NetworkStatus.loading&&(fetchPolicy==="cache-first"||fetchPolicy==="cache-only")&&(result.networkStatus=NetworkStatus.ready,result.loading=!1)):result.partial=!0,globalThis.__DEV__!==!1&&!diff.complete&&!this.options.partialRefetch&&!result.loading&&!result.data&&!result.error&&logMissingFieldErrors(diff.missing)}return saveAsLastResult&&this.updateLastResult(result),result},ObservableQuery2.prototype.getCurrentResult=function(saveAsLastResult){return saveAsLastResult===void 0&&(saveAsLastResult=!0),this.maskResult(this.getCurrentFullResult(saveAsLastResult))},ObservableQuery2.prototype.isDifferentFromLastResult=function(newResult,variables){if(!this.last)return!0;var documentInfo=this.queryManager.getDocumentInfo(this.query),dataMasking=this.queryManager.dataMasking,query=dataMasking?documentInfo.nonReactiveQuery:this.query,resultIsDifferent=dataMasking||documentInfo.hasNonreactiveDirective?!equalByQuery(query,this.last.result,newResult,this.variables):!equal(this.last.result,newResult);return resultIsDifferent||variables&&!equal(this.last.variables,variables)},ObservableQuery2.prototype.getLast=function(key,variablesMustMatch){var last=this.last;if(last&&last[key]&&(!variablesMustMatch||equal(last.variables,this.variables)))return last[key]},ObservableQuery2.prototype.getLastResult=function(variablesMustMatch){return this.getLast("result",variablesMustMatch)},ObservableQuery2.prototype.getLastError=function(variablesMustMatch){return this.getLast("error",variablesMustMatch)},ObservableQuery2.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},ObservableQuery2.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},ObservableQuery2.prototype.refetch=function(variables){var _a2,reobserveOptions={pollInterval:0},fetchPolicy=this.options.fetchPolicy;if(fetchPolicy==="cache-and-network"?reobserveOptions.fetchPolicy=fetchPolicy:fetchPolicy==="no-cache"?reobserveOptions.fetchPolicy="no-cache":reobserveOptions.fetchPolicy="network-only",globalThis.__DEV__!==!1&&variables&&ObservableQuery_hasOwnProperty.call(variables,"variables")){var queryDef=getQueryDefinition(this.query),vars=queryDef.variableDefinitions;(!vars||!vars.some(function(v){return v.variable.name.value==="variables"}))&&globalThis.__DEV__!==!1&&invariantWrappers_invariant.warn(21,variables,((_a2=queryDef.name)===null||_a2===void 0?void 0:_a2.value)||queryDef)}return variables&&!equal(this.options.variables,variables)&&(reobserveOptions.variables=this.options.variables=tslib_es6_assign(tslib_es6_assign({},this.options.variables),variables)),this.queryInfo.resetLastWrite(),this.reobserve(reobserveOptions,NetworkStatus.refetch)},ObservableQuery2.prototype.fetchMore=function(fetchMoreOptions){var _this=this,combinedOptions=tslib_es6_assign(tslib_es6_assign({},fetchMoreOptions.query?fetchMoreOptions:tslib_es6_assign(tslib_es6_assign(tslib_es6_assign(tslib_es6_assign({},this.options),{query:this.options.query}),fetchMoreOptions),{variables:tslib_es6_assign(tslib_es6_assign({},this.options.variables),fetchMoreOptions.variables)})),{fetchPolicy:"no-cache"});combinedOptions.query=this.transformDocument(combinedOptions.query);var qid=this.queryManager.generateQueryId();this.lastQuery=fetchMoreOptions.query?this.transformDocument(this.options.query):combinedOptions.query;var queryInfo=this.queryInfo,originalNetworkStatus=queryInfo.networkStatus;queryInfo.networkStatus=NetworkStatus.fetchMore,combinedOptions.notifyOnNetworkStatusChange&&this.observe();var updatedQuerySet=new Set,updateQuery=fetchMoreOptions?.updateQuery,isCached=this.options.fetchPolicy!=="no-cache";return isCached||invariantWrappers_invariant(updateQuery,22),this.queryManager.fetchQuery(qid,combinedOptions,NetworkStatus.fetchMore).then(function(fetchMoreResult){if(_this.queryManager.removeQuery(qid),queryInfo.networkStatus===NetworkStatus.fetchMore&&(queryInfo.networkStatus=originalNetworkStatus),isCached)_this.queryManager.cache.batch({update:function(cache2){var updateQuery2=fetchMoreOptions.updateQuery;updateQuery2?cache2.updateQuery({query:_this.query,variables:_this.variables,returnPartialData:!0,optimistic:!1},function(previous){return updateQuery2(previous,{fetchMoreResult:fetchMoreResult.data,variables:combinedOptions.variables})}):cache2.writeQuery({query:combinedOptions.query,variables:combinedOptions.variables,data:fetchMoreResult.data})},onWatchUpdated:function(watch){updatedQuerySet.add(watch.query)}});else{var lastResult=_this.getLast("result"),data=updateQuery(lastResult.data,{fetchMoreResult:fetchMoreResult.data,variables:combinedOptions.variables});_this.reportResult(tslib_es6_assign(tslib_es6_assign({},lastResult),{data}),_this.variables)}return _this.maskResult(fetchMoreResult)}).finally(function(){isCached&&!updatedQuerySet.has(_this.query)&&reobserveCacheFirst(_this)})},ObservableQuery2.prototype.subscribeToMore=function(options){var _this=this,subscription=this.queryManager.startGraphQLSubscription({query:options.document,variables:options.variables,context:options.context}).subscribe({next:function(subscriptionData){var updateQuery=options.updateQuery;updateQuery&&_this.updateQuery(function(previous,_a2){var variables=_a2.variables;return updateQuery(previous,{subscriptionData,variables})})},error:function(err){if(options.onError){options.onError(err);return}globalThis.__DEV__!==!1&&invariantWrappers_invariant.error(23,err)}});return this.subscriptions.add(subscription),function(){_this.subscriptions.delete(subscription)&&subscription.unsubscribe()}},ObservableQuery2.prototype.setOptions=function(newOptions){return this.reobserve(newOptions)},ObservableQuery2.prototype.silentSetOptions=function(newOptions){var mergedOptions=compact(this.options,newOptions||{});ObservableQuery_assign(this.options,mergedOptions)},ObservableQuery2.prototype.setVariables=function(variables){return equal(this.variables,variables)?this.observers.size?this.result():Promise.resolve():(this.options.variables=variables,this.observers.size?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables},NetworkStatus.setVariables):Promise.resolve())},ObservableQuery2.prototype.updateQuery=function(mapFn){var queryManager=this.queryManager,result=queryManager.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}).result,newResult=mapFn(result,{variables:this.variables});newResult&&(queryManager.cache.writeQuery({query:this.options.query,data:newResult,variables:this.variables}),queryManager.broadcastQueries())},ObservableQuery2.prototype.startPolling=function(pollInterval){this.options.pollInterval=pollInterval,this.updatePolling()},ObservableQuery2.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},ObservableQuery2.prototype.applyNextFetchPolicy=function(reason,options){if(options.nextFetchPolicy){var _a2=options.fetchPolicy,fetchPolicy=_a2===void 0?"cache-first":_a2,_b=options.initialFetchPolicy,initialFetchPolicy=_b===void 0?fetchPolicy:_b;fetchPolicy==="standby"||(typeof options.nextFetchPolicy=="function"?options.fetchPolicy=options.nextFetchPolicy(fetchPolicy,{reason,options,observable:this,initialFetchPolicy}):reason==="variables-changed"?options.fetchPolicy=initialFetchPolicy:options.fetchPolicy=options.nextFetchPolicy)}return options.fetchPolicy},ObservableQuery2.prototype.fetch=function(options,newNetworkStatus,query){return this.queryManager.setObservableQuery(this),this.queryManager.fetchConcastWithInfo(this.queryId,options,newNetworkStatus,query)},ObservableQuery2.prototype.updatePolling=function(){var _this=this;if(!this.queryManager.ssrMode){var _a2=this,pollingInfo=_a2.pollingInfo,pollInterval=_a2.options.pollInterval;if(!pollInterval||!this.hasObservers()){pollingInfo&&(clearTimeout(pollingInfo.timeout),delete this.pollingInfo);return}if(!(pollingInfo&&pollingInfo.interval===pollInterval)){invariantWrappers_invariant(pollInterval,24);var info=pollingInfo||(this.pollingInfo={});info.interval=pollInterval;var maybeFetch=function(){var _a3,_b;_this.pollingInfo&&(!isNetworkRequestInFlight(_this.queryInfo.networkStatus)&&!(!((_b=(_a3=_this.options).skipPollAttempt)===null||_b===void 0)&&_b.call(_a3))?_this.reobserve({fetchPolicy:_this.options.initialFetchPolicy==="no-cache"?"no-cache":"network-only"},NetworkStatus.poll).then(poll,poll):poll())},poll=function(){var info2=_this.pollingInfo;info2&&(clearTimeout(info2.timeout),info2.timeout=setTimeout(maybeFetch,info2.interval))};poll()}}},ObservableQuery2.prototype.updateLastResult=function(newResult,variables){variables===void 0&&(variables=this.variables);var error=this.getLastError();return error&&this.last&&!equal(variables,this.last.variables)&&(error=void 0),this.last=tslib_es6_assign({result:this.queryManager.assumeImmutableResults?newResult:cloneDeep(newResult),variables},error?{error}:null)},ObservableQuery2.prototype.reobserveAsConcast=function(newOptions,newNetworkStatus){var _this=this;this.isTornDown=!1;var useDisposableConcast=newNetworkStatus===NetworkStatus.refetch||newNetworkStatus===NetworkStatus.fetchMore||newNetworkStatus===NetworkStatus.poll,oldVariables=this.options.variables,oldFetchPolicy=this.options.fetchPolicy,mergedOptions=compact(this.options,newOptions||{}),options=useDisposableConcast?mergedOptions:ObservableQuery_assign(this.options,mergedOptions),query=this.transformDocument(options.query);this.lastQuery=query,useDisposableConcast||(this.updatePolling(),newOptions&&newOptions.variables&&!equal(newOptions.variables,oldVariables)&&options.fetchPolicy!=="standby"&&(options.fetchPolicy===oldFetchPolicy||typeof options.nextFetchPolicy=="function")&&(this.applyNextFetchPolicy("variables-changed",options),newNetworkStatus===void 0&&(newNetworkStatus=NetworkStatus.setVariables))),this.waitForOwnResult&&(this.waitForOwnResult=skipCacheDataFor(options.fetchPolicy));var finishWaitingForOwnResult=function(){_this.concast===concast&&(_this.waitForOwnResult=!1)},variables=options.variables&&tslib_es6_assign({},options.variables),_a2=this.fetch(options,newNetworkStatus,query),concast=_a2.concast,fromLink=_a2.fromLink,observer={next:function(result){equal(_this.variables,variables)&&(finishWaitingForOwnResult(),_this.reportResult(result,variables))},error:function(error){equal(_this.variables,variables)&&(isApolloError(error)||(error=new ApolloError({networkError:error})),finishWaitingForOwnResult(),_this.reportError(error,variables))}};return!useDisposableConcast&&(fromLink||!this.concast)&&(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=concast,this.observer=observer),concast.addObserver(observer),concast},ObservableQuery2.prototype.reobserve=function(newOptions,newNetworkStatus){return preventUnhandledRejection(this.reobserveAsConcast(newOptions,newNetworkStatus).promise.then(this.maskResult))},ObservableQuery2.prototype.resubscribeAfterError=function(){for(var args=[],_i=0;_i<arguments.length;_i++)args[_i]=arguments[_i];var last=this.last;this.resetLastResults();var subscription=this.subscribe.apply(this,args);return this.last=last,subscription},ObservableQuery2.prototype.observe=function(){this.reportResult(this.getCurrentFullResult(!1),this.variables)},ObservableQuery2.prototype.reportResult=function(result,variables){var lastError=this.getLastError(),isDifferent=this.isDifferentFromLastResult(result,variables);(lastError||!result.partial||this.options.returnPartialData)&&this.updateLastResult(result,variables),(lastError||isDifferent)&&iterateObserversSafely(this.observers,"next",this.maskResult(result))},ObservableQuery2.prototype.reportError=function(error,variables){var errorResult=tslib_es6_assign(tslib_es6_assign({},this.getLastResult()),{error,errors:error.graphQLErrors,networkStatus:NetworkStatus.error,loading:!1});this.updateLastResult(errorResult,variables),iterateObserversSafely(this.observers,"error",this.last.error=error)},ObservableQuery2.prototype.hasObservers=function(){return this.observers.size>0},ObservableQuery2.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach(function(sub){return sub.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},ObservableQuery2.prototype.transformDocument=function(document2){return this.queryManager.transform(document2)},ObservableQuery2.prototype.maskResult=function(result){return result&&"data"in result?tslib_es6_assign(tslib_es6_assign({},result),{data:this.queryManager.maskOperation({document:this.query,data:result.data,fetchPolicy:this.options.fetchPolicy,id:this.queryId})}):result},ObservableQuery2}(Observable);fixObservableSubclass(ObservableQuery);function reobserveCacheFirst(obsQuery){var _a2=obsQuery.options,fetchPolicy=_a2.fetchPolicy,nextFetchPolicy=_a2.nextFetchPolicy;return fetchPolicy==="cache-and-network"||fetchPolicy==="network-only"?obsQuery.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(currentFetchPolicy,context){return this.nextFetchPolicy=nextFetchPolicy,typeof this.nextFetchPolicy=="function"?this.nextFetchPolicy(currentFetchPolicy,context):fetchPolicy}}):obsQuery.reobserve()}function defaultSubscriptionObserverErrorCallback(error){globalThis.__DEV__!==!1&&invariantWrappers_invariant.error(25,error.message,error.stack)}function logMissingFieldErrors(missing){globalThis.__DEV__!==!1&&missing&&globalThis.__DEV__!==!1&&invariantWrappers_invariant.debug(26,missing)}function skipCacheDataFor(fetchPolicy){return fetchPolicy==="network-only"||fetchPolicy==="no-cache"||fetchPolicy==="standby"}var destructiveMethodCounts=new(canUseWeakMap?WeakMap:Map);function wrapDestructiveCacheMethod(cache2,methodName){var original=cache2[methodName];typeof original=="function"&&(cache2[methodName]=function(){return destructiveMethodCounts.set(cache2,(destructiveMethodCounts.get(cache2)+1)%1e15),original.apply(this,arguments)})}function cancelNotifyTimeout(info){info.notifyTimeout&&(clearTimeout(info.notifyTimeout),info.notifyTimeout=void 0)}var QueryInfo=function(){function QueryInfo2(queryManager,queryId){queryId===void 0&&(queryId=queryManager.generateQueryId()),this.queryId=queryId,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var cache2=this.cache=queryManager.cache;destructiveMethodCounts.has(cache2)||(destructiveMethodCounts.set(cache2,0),wrapDestructiveCacheMethod(cache2,"evict"),wrapDestructiveCacheMethod(cache2,"modify"),wrapDestructiveCacheMethod(cache2,"reset"))}return QueryInfo2.prototype.init=function(query){var networkStatus=query.networkStatus||NetworkStatus.loading;return this.variables&&this.networkStatus!==NetworkStatus.loading&&!equal(this.variables,query.variables)&&(networkStatus=NetworkStatus.setVariables),equal(query.variables,this.variables)||(this.lastDiff=void 0),Object.assign(this,{document:query.document,variables:query.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus}),query.observableQuery&&this.setObservableQuery(query.observableQuery),query.lastRequestId&&(this.lastRequestId=query.lastRequestId),this},QueryInfo2.prototype.reset=function(){cancelNotifyTimeout(this),this.dirty=!1},QueryInfo2.prototype.resetDiff=function(){this.lastDiff=void 0},QueryInfo2.prototype.getDiff=function(){var options=this.getDiffOptions();if(this.lastDiff&&equal(options,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables);var oq=this.observableQuery;if(oq&&oq.options.fetchPolicy==="no-cache")return{complete:!1};var diff=this.cache.diff(options);return this.updateLastDiff(diff,options),diff},QueryInfo2.prototype.updateLastDiff=function(diff,options){this.lastDiff=diff?{diff,options:options||this.getDiffOptions()}:void 0},QueryInfo2.prototype.getDiffOptions=function(variables){var _a2;return variables===void 0&&(variables=this.variables),{query:this.document,variables,returnPartialData:!0,optimistic:!0,canonizeResults:(_a2=this.observableQuery)===null||_a2===void 0?void 0:_a2.options.canonizeResults}},QueryInfo2.prototype.setDiff=function(diff){var _this=this,_a2,oldDiff=this.lastDiff&&this.lastDiff.diff;diff&&!diff.complete&&((_a2=this.observableQuery)===null||_a2===void 0?void 0:_a2.getLastError())||(this.updateLastDiff(diff),!this.dirty&&!equal(oldDiff&&oldDiff.result,diff&&diff.result)&&(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return _this.notify()},0))))},QueryInfo2.prototype.setObservableQuery=function(oq){var _this=this;oq!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=oq,oq?(oq.queryInfo=this,this.listeners.add(this.oqListener=function(){var diff=_this.getDiff();diff.fromOptimisticTransaction?oq.observe():reobserveCacheFirst(oq)})):delete this.oqListener)},QueryInfo2.prototype.notify=function(){var _this=this;cancelNotifyTimeout(this),this.shouldNotify()&&this.listeners.forEach(function(listener){return listener(_this)}),this.dirty=!1},QueryInfo2.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if(isNetworkRequestInFlight(this.networkStatus)&&this.observableQuery){var fetchPolicy=this.observableQuery.options.fetchPolicy;if(fetchPolicy!=="cache-only"&&fetchPolicy!=="cache-and-network")return!1}return!0},QueryInfo2.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),this.cancel=QueryInfo2.prototype.cancel;var oq=this.observableQuery;oq&&oq.stopPolling()}},QueryInfo2.prototype.cancel=function(){},QueryInfo2.prototype.updateWatch=function(variables){var _this=this;variables===void 0&&(variables=this.variables);var oq=this.observableQuery;if(!(oq&&oq.options.fetchPolicy==="no-cache")){var watchOptions=tslib_es6_assign(tslib_es6_assign({},this.getDiffOptions(variables)),{watcher:this,callback:function(diff){return _this.setDiff(diff)}});(!this.lastWatch||!equal(watchOptions,this.lastWatch))&&(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=watchOptions))}},QueryInfo2.prototype.resetLastWrite=function(){this.lastWrite=void 0},QueryInfo2.prototype.shouldWrite=function(result,variables){var lastWrite=this.lastWrite;return!(lastWrite&&lastWrite.dmCount===destructiveMethodCounts.get(this.cache)&&equal(variables,lastWrite.variables)&&equal(result.data,lastWrite.result.data))},QueryInfo2.prototype.markResult=function(result,document2,options,cacheWriteBehavior){var _this=this,merger=new DeepMerger,graphQLErrors=isNonEmptyArray(result.errors)?result.errors.slice(0):[];if(this.reset(),"incremental"in result&&isNonEmptyArray(result.incremental)){var mergedData=mergeIncrementalData(this.getDiff().result,result);result.data=mergedData}else if("hasNext"in result&&result.hasNext){var diff=this.getDiff();result.data=merger.merge(diff.result,result.data)}this.graphQLErrors=graphQLErrors,options.fetchPolicy==="no-cache"?this.updateLastDiff({result:result.data,complete:!0},this.getDiffOptions(options.variables)):cacheWriteBehavior!==0&&(shouldWriteResult(result,options.errorPolicy)?this.cache.performTransaction(function(cache2){if(_this.shouldWrite(result,options.variables))cache2.writeQuery({query:document2,data:result.data,variables:options.variables,overwrite:cacheWriteBehavior===1}),_this.lastWrite={result,variables:options.variables,dmCount:destructiveMethodCounts.get(_this.cache)};else if(_this.lastDiff&&_this.lastDiff.diff.complete){result.data=_this.lastDiff.diff.result;return}var diffOptions=_this.getDiffOptions(options.variables),diff2=cache2.diff(diffOptions);!_this.stopped&&equal(_this.variables,options.variables)&&_this.updateWatch(options.variables),_this.updateLastDiff(diff2,diffOptions),diff2.complete&&(result.data=diff2.result)}):this.lastWrite=void 0)},QueryInfo2.prototype.markReady=function(){return this.networkError=null,this.networkStatus=NetworkStatus.ready},QueryInfo2.prototype.markError=function(error){return this.networkStatus=NetworkStatus.error,this.lastWrite=void 0,this.reset(),error.graphQLErrors&&(this.graphQLErrors=error.graphQLErrors),error.networkError&&(this.networkError=error.networkError),error},QueryInfo2}();function shouldWriteResult(result,errorPolicy){errorPolicy===void 0&&(errorPolicy="none");var ignoreErrors=errorPolicy==="ignore"||errorPolicy==="all",writeWithErrors=!graphQLResultHasError(result);return!writeWithErrors&&ignoreErrors&&result.data&&(writeWithErrors=!0),writeWithErrors}function deepFreeze(value){var workSet=new Set([value]);return workSet.forEach(function(obj){isNonNullObject(obj)&&shallowFreeze(obj)===obj&&Object.getOwnPropertyNames(obj).forEach(function(name){isNonNullObject(obj[name])&&workSet.add(obj[name])})}),value}function shallowFreeze(obj){if(globalThis.__DEV__!==!1&&!Object.isFrozen(obj))try{Object.freeze(obj)}catch(e){if(e instanceof TypeError)return null;throw e}return obj}function maybeDeepFreeze(obj){return globalThis.__DEV__!==!1&&deepFreeze(obj),obj}var MapImpl=canUseWeakMap?WeakMap:Map,SetImpl=canUseWeakSet?WeakSet:Set,disableWarningsSlot=new Slot,issuedWarning=!1;function warnOnImproperCacheImplementation(){issuedWarning||(issuedWarning=!0,globalThis.__DEV__!==!1&&invariantWrappers_invariant.warn(52))}function maskDefinition(data,selectionSet,context){return disableWarningsSlot.withValue(!0,function(){var masked=maskSelectionSet(data,selectionSet,context,!1);return Object.isFrozen(data)&&maybeDeepFreeze(masked),masked})}function getMutableTarget(data,mutableTargets){if(mutableTargets.has(data))return mutableTargets.get(data);var mutableTarget=Array.isArray(data)?[]:Object.create(null);return mutableTargets.set(data,mutableTarget),mutableTarget}function maskSelectionSet(data,selectionSet,context,migration,path){var _a2,knownChanged=context.knownChanged,memo=getMutableTarget(data,context.mutableTargets);if(Array.isArray(data)){for(var _i=0,_b=Array.from(data.entries());_i<_b.length;_i++){var _c=_b[_i],index=_c[0],item=_c[1];if(item===null){memo[index]=null;continue}var masked=maskSelectionSet(item,selectionSet,context,migration,globalThis.__DEV__!==!1?"".concat(path||"","[").concat(index,"]"):void 0);knownChanged.has(masked)&&knownChanged.add(memo),memo[index]=masked}return knownChanged.has(memo)?memo:data}for(var _d=0,_e=selectionSet.selections;_d<_e.length;_d++){var selection=_e[_d],value=void 0;if(migration&&knownChanged.add(memo),selection.kind===kinds.b.FIELD){var keyName=resultKeyNameFromField(selection),childSelectionSet=selection.selectionSet;if(value=memo[keyName]||data[keyName],value===void 0)continue;if(childSelectionSet&&value!==null){var masked=maskSelectionSet(data[keyName],childSelectionSet,context,migration,globalThis.__DEV__!==!1?"".concat(path||"",".").concat(keyName):void 0);knownChanged.has(masked)&&(value=masked)}globalThis.__DEV__===!1&&(memo[keyName]=value),globalThis.__DEV__!==!1&&(migration&&keyName!=="__typename"&&!(!((_a2=Object.getOwnPropertyDescriptor(memo,keyName))===null||_a2===void 0)&&_a2.value)?Object.defineProperty(memo,keyName,getAccessorWarningDescriptor(keyName,value,path||"",context.operationName,context.operationType)):(delete memo[keyName],memo[keyName]=value))}if(selection.kind===kinds.b.INLINE_FRAGMENT&&(!selection.typeCondition||context.cache.fragmentMatches(selection,data.__typename))&&(value=maskSelectionSet(data,selection.selectionSet,context,migration,path)),selection.kind===kinds.b.FRAGMENT_SPREAD){var fragmentName=selection.name.value,fragment=context.fragmentMap[fragmentName]||(context.fragmentMap[fragmentName]=context.cache.lookupFragment(fragmentName));invariantWrappers_invariant(fragment,47,fragmentName);var mode=getFragmentMaskMode(selection);mode!=="mask"&&(value=maskSelectionSet(data,fragment.selectionSet,context,mode==="migrate",path))}knownChanged.has(value)&&knownChanged.add(memo)}return"__typename"in data&&!("__typename"in memo)&&(memo.__typename=data.__typename),Object.keys(memo).length!==Object.keys(data).length&&knownChanged.add(memo),knownChanged.has(memo)?memo:data}function getAccessorWarningDescriptor(fieldName,value,path,operationName2,operationType){var getValue=function(){return disableWarningsSlot.getValue()||(globalThis.__DEV__!==!1&&invariantWrappers_invariant.warn(48,operationName2?"".concat(operationType," '").concat(operationName2,"'"):"anonymous ".concat(operationType),"".concat(path,".").concat(fieldName).replace(/^\./,"")),getValue=function(){return value}),value};return{get:function(){return getValue()},set:function(newValue){getValue=function(){return newValue}},enumerable:!0,configurable:!0}}function maskOperation(data,document2,cache2){var _a2;if(!cache2.fragmentMatches)return globalThis.__DEV__!==!1&&warnOnImproperCacheImplementation(),data;var definition=getOperationDefinition(document2);return invariantWrappers_invariant(definition,51),data==null?data:maskDefinition(data,definition.selectionSet,{operationType:definition.operation,operationName:(_a2=definition.name)===null||_a2===void 0?void 0:_a2.value,fragmentMap:createFragmentMap(getFragmentDefinitions(document2)),cache:cache2,mutableTargets:new MapImpl,knownChanged:new SetImpl})}function maskFragment(data,document2,cache2,fragmentName){if(!cache2.fragmentMatches)return globalThis.__DEV__!==!1&&warnOnImproperCacheImplementation(),data;var fragments=document2.definitions.filter(function(node){return node.kind===kinds.b.FRAGMENT_DEFINITION});typeof fragmentName>"u"&&(invariantWrappers_invariant(fragments.length===1,49,fragments.length),fragmentName=fragments[0].name.value);var fragment=fragments.find(function(fragment2){return fragment2.name.value===fragmentName});return invariantWrappers_invariant(!!fragment,50,fragmentName),data==null||lib(data,{})?data:maskDefinition(data,fragment.selectionSet,{operationType:"fragment",operationName:fragment.name.value,fragmentMap:createFragmentMap(getFragmentDefinitions(document2)),cache:cache2,mutableTargets:new MapImpl,knownChanged:new SetImpl})}var QueryManager_hasOwnProperty=Object.prototype.hasOwnProperty,IGNORE=Object.create(null),QueryManager=function(){function QueryManager2(options){var _this=this;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new AutoCleanedWeakCache(cacheSizes["queryManager.getDocumentInfo"]||2e3),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Trie(!1),this.noCacheWarningsByQueryId=new Set;var defaultDocumentTransform=new DocumentTransform(function(document2){return _this.cache.transformDocument(document2)},{cache:!1});this.cache=options.cache,this.link=options.link,this.defaultOptions=options.defaultOptions,this.queryDeduplication=options.queryDeduplication,this.clientAwareness=options.clientAwareness,this.localState=options.localState,this.ssrMode=options.ssrMode,this.assumeImmutableResults=options.assumeImmutableResults,this.dataMasking=options.dataMasking;var documentTransform=options.documentTransform;this.documentTransform=documentTransform?defaultDocumentTransform.concat(documentTransform).concat(defaultDocumentTransform):defaultDocumentTransform,this.defaultContext=options.defaultContext||Object.create(null),(this.onBroadcast=options.onBroadcast)&&(this.mutationStore=Object.create(null))}return QueryManager2.prototype.stop=function(){var _this=this;this.queries.forEach(function(_info,queryId){_this.stopQueryNoBroadcast(queryId)}),this.cancelPendingFetches(newInvariantError(27))},QueryManager2.prototype.cancelPendingFetches=function(error){this.fetchCancelFns.forEach(function(cancel){return cancel(error)}),this.fetchCancelFns.clear()},QueryManager2.prototype.mutate=function(_a2){return __awaiter(this,arguments,void 0,function(_b){var mutationId,hasClientExports2,mutationStoreValue,isOptimistic,self2,_c,_d,mutation=_b.mutation,variables=_b.variables,optimisticResponse=_b.optimisticResponse,updateQueries=_b.updateQueries,_e=_b.refetchQueries,refetchQueries=_e===void 0?[]:_e,_f=_b.awaitRefetchQueries,awaitRefetchQueries=_f===void 0?!1:_f,updateWithProxyFn=_b.update,onQueryUpdated=_b.onQueryUpdated,_g=_b.fetchPolicy,fetchPolicy=_g===void 0?((_c=this.defaultOptions.mutate)===null||_c===void 0?void 0:_c.fetchPolicy)||"network-only":_g,_h=_b.errorPolicy,errorPolicy=_h===void 0?((_d=this.defaultOptions.mutate)===null||_d===void 0?void 0:_d.errorPolicy)||"none":_h,keepRootFields=_b.keepRootFields,context=_b.context;return __generator(this,function(_j){switch(_j.label){case 0:return invariantWrappers_invariant(mutation,28),invariantWrappers_invariant(fetchPolicy==="network-only"||fetchPolicy==="no-cache",29),mutationId=this.generateMutationId(),mutation=this.cache.transformForLink(this.transform(mutation)),hasClientExports2=this.getDocumentInfo(mutation).hasClientExports,variables=this.getVariables(mutation,variables),hasClientExports2?[4,this.localState.addExportedVariables(mutation,variables,context)]:[3,2];case 1:variables=_j.sent(),_j.label=2;case 2:return mutationStoreValue=this.mutationStore&&(this.mutationStore[mutationId]={mutation,variables,loading:!0,error:null}),isOptimistic=optimisticResponse&&this.markMutationOptimistic(optimisticResponse,{mutationId,document:mutation,variables,fetchPolicy,errorPolicy,context,updateQueries,update:updateWithProxyFn,keepRootFields}),this.broadcastQueries(),self2=this,[2,new Promise(function(resolve,reject){return asyncMap(self2.getObservableFromLink(mutation,tslib_es6_assign(tslib_es6_assign({},context),{optimisticResponse:isOptimistic?optimisticResponse:void 0}),variables,{},!1),function(result){if(graphQLResultHasError(result)&&errorPolicy==="none")throw new ApolloError({graphQLErrors:getGraphQLErrorsFromResult(result)});mutationStoreValue&&(mutationStoreValue.loading=!1,mutationStoreValue.error=null);var storeResult=tslib_es6_assign({},result);return typeof refetchQueries=="function"&&(refetchQueries=refetchQueries(storeResult)),errorPolicy==="ignore"&&graphQLResultHasError(storeResult)&&delete storeResult.errors,self2.markMutationResult({mutationId,result:storeResult,document:mutation,variables,fetchPolicy,errorPolicy,context,update:updateWithProxyFn,updateQueries,awaitRefetchQueries,refetchQueries,removeOptimistic:isOptimistic?mutationId:void 0,onQueryUpdated,keepRootFields})}).subscribe({next:function(storeResult){self2.broadcastQueries(),(!("hasNext"in storeResult)||storeResult.hasNext===!1)&&resolve(tslib_es6_assign(tslib_es6_assign({},storeResult),{data:self2.maskOperation({document:mutation,data:storeResult.data,fetchPolicy,id:mutationId})}))},error:function(err){mutationStoreValue&&(mutationStoreValue.loading=!1,mutationStoreValue.error=err),isOptimistic&&self2.cache.removeOptimistic(mutationId),self2.broadcastQueries(),reject(err instanceof ApolloError?err:new ApolloError({networkError:err}))}})})]}})})},QueryManager2.prototype.markMutationResult=function(mutation,cache2){var _this=this;cache2===void 0&&(cache2=this.cache);var result=mutation.result,cacheWrites=[],skipCache=mutation.fetchPolicy==="no-cache";if(!skipCache&&shouldWriteResult(result,mutation.errorPolicy)){if(isExecutionPatchIncrementalResult(result)||cacheWrites.push({result:result.data,dataId:"ROOT_MUTATION",query:mutation.document,variables:mutation.variables}),isExecutionPatchIncrementalResult(result)&&isNonEmptyArray(result.incremental)){var diff=cache2.diff({id:"ROOT_MUTATION",query:this.getDocumentInfo(mutation.document).asQuery,variables:mutation.variables,optimistic:!1,returnPartialData:!0}),mergedData=void 0;diff.result&&(mergedData=mergeIncrementalData(diff.result,result)),typeof mergedData<"u"&&(result.data=mergedData,cacheWrites.push({result:mergedData,dataId:"ROOT_MUTATION",query:mutation.document,variables:mutation.variables}))}var updateQueries_1=mutation.updateQueries;updateQueries_1&&this.queries.forEach(function(_a2,queryId){var observableQuery=_a2.observableQuery,queryName=observableQuery&&observableQuery.queryName;if(!(!queryName||!QueryManager_hasOwnProperty.call(updateQueries_1,queryName))){var updater=updateQueries_1[queryName],_b=_this.queries.get(queryId),document2=_b.document,variables=_b.variables,_c=cache2.diff({query:document2,variables,returnPartialData:!0,optimistic:!1}),currentQueryResult=_c.result,complete=_c.complete;if(complete&&currentQueryResult){var nextQueryResult=updater(currentQueryResult,{mutationResult:result,queryName:document2&&getOperationName(document2)||void 0,queryVariables:variables});nextQueryResult&&cacheWrites.push({result:nextQueryResult,dataId:"ROOT_QUERY",query:document2,variables})}}})}if(cacheWrites.length>0||(mutation.refetchQueries||"").length>0||mutation.update||mutation.onQueryUpdated||mutation.removeOptimistic){var results_1=[];if(this.refetchQueries({updateCache:function(cache3){skipCache||cacheWrites.forEach(function(write){return cache3.write(write)});var update=mutation.update,isFinalResult=!isExecutionPatchResult(result)||isExecutionPatchIncrementalResult(result)&&!result.hasNext;if(update){if(!skipCache){var diff2=cache3.diff({id:"ROOT_MUTATION",query:_this.getDocumentInfo(mutation.document).asQuery,variables:mutation.variables,optimistic:!1,returnPartialData:!0});diff2.complete&&(result=tslib_es6_assign(tslib_es6_assign({},result),{data:diff2.result}),"incremental"in result&&delete result.incremental,"hasNext"in result&&delete result.hasNext)}isFinalResult&&update(cache3,result,{context:mutation.context,variables:mutation.variables})}!skipCache&&!mutation.keepRootFields&&isFinalResult&&cache3.modify({id:"ROOT_MUTATION",fields:function(value,_a2){var fieldName=_a2.fieldName,DELETE2=_a2.DELETE;return fieldName==="__typename"?value:DELETE2}})},include:mutation.refetchQueries,optimistic:!1,removeOptimistic:mutation.removeOptimistic,onQueryUpdated:mutation.onQueryUpdated||null}).forEach(function(result2){return results_1.push(result2)}),mutation.awaitRefetchQueries||mutation.onQueryUpdated)return Promise.all(results_1).then(function(){return result})}return Promise.resolve(result)},QueryManager2.prototype.markMutationOptimistic=function(optimisticResponse,mutation){var _this=this,data=typeof optimisticResponse=="function"?optimisticResponse(mutation.variables,{IGNORE}):optimisticResponse;return data===IGNORE?!1:(this.cache.recordOptimisticTransaction(function(cache2){try{_this.markMutationResult(tslib_es6_assign(tslib_es6_assign({},mutation),{result:{data}}),cache2)}catch(error){globalThis.__DEV__!==!1&&invariantWrappers_invariant.error(error)}},mutation.mutationId),!0)},QueryManager2.prototype.fetchQuery=function(queryId,options,networkStatus){return this.fetchConcastWithInfo(queryId,options,networkStatus).concast.promise},QueryManager2.prototype.getQueryStore=function(){var store=Object.create(null);return this.queries.forEach(function(info,queryId){store[queryId]={variables:info.variables,networkStatus:info.networkStatus,networkError:info.networkError,graphQLErrors:info.graphQLErrors}}),store},QueryManager2.prototype.resetErrors=function(queryId){var queryInfo=this.queries.get(queryId);queryInfo&&(queryInfo.networkError=void 0,queryInfo.graphQLErrors=[])},QueryManager2.prototype.transform=function(document2){return this.documentTransform.transformDocument(document2)},QueryManager2.prototype.getDocumentInfo=function(document2){var transformCache=this.transformCache;if(!transformCache.has(document2)){var cacheEntry={hasClientExports:hasClientExports(document2),hasForcedResolvers:this.localState.shouldForceResolvers(document2),hasNonreactiveDirective:hasDirectives(["nonreactive"],document2),nonReactiveQuery:addNonReactiveToNamedFragments(document2),clientQuery:this.localState.clientQuery(document2),serverQuery:removeDirectivesFromDocument([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"},{name:"unmask"}],document2),defaultVars:getDefaultValues(getOperationDefinition(document2)),asQuery:tslib_es6_assign(tslib_es6_assign({},document2),{definitions:document2.definitions.map(function(def){return def.kind==="OperationDefinition"&&def.operation!=="query"?tslib_es6_assign(tslib_es6_assign({},def),{operation:"query"}):def})})};transformCache.set(document2,cacheEntry)}return transformCache.get(document2)},QueryManager2.prototype.getVariables=function(document2,variables){return tslib_es6_assign(tslib_es6_assign({},this.getDocumentInfo(document2).defaultVars),variables)},QueryManager2.prototype.watchQuery=function(options){var query=this.transform(options.query);options=tslib_es6_assign(tslib_es6_assign({},options),{variables:this.getVariables(query,options.variables)}),typeof options.notifyOnNetworkStatusChange>"u"&&(options.notifyOnNetworkStatusChange=!1);var queryInfo=new QueryInfo(this),observable=new ObservableQuery({queryManager:this,queryInfo,options});return observable.lastQuery=query,this.queries.set(observable.queryId,queryInfo),queryInfo.init({document:query,observableQuery:observable,variables:observable.variables}),observable},QueryManager2.prototype.query=function(options,queryId){var _this=this;queryId===void 0&&(queryId=this.generateQueryId()),invariantWrappers_invariant(options.query,30),invariantWrappers_invariant(options.query.kind==="Document",31),invariantWrappers_invariant(!options.returnPartialData,32),invariantWrappers_invariant(!options.pollInterval,33);var query=this.transform(options.query);return this.fetchQuery(queryId,tslib_es6_assign(tslib_es6_assign({},options),{query})).then(function(result){return result&&tslib_es6_assign(tslib_es6_assign({},result),{data:_this.maskOperation({document:query,data:result.data,fetchPolicy:options.fetchPolicy,id:queryId})})}).finally(function(){return _this.stopQuery(queryId)})},QueryManager2.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},QueryManager2.prototype.generateRequestId=function(){return this.requestIdCounter++},QueryManager2.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},QueryManager2.prototype.stopQueryInStore=function(queryId){this.stopQueryInStoreNoBroadcast(queryId),this.broadcastQueries()},QueryManager2.prototype.stopQueryInStoreNoBroadcast=function(queryId){var queryInfo=this.queries.get(queryId);queryInfo&&queryInfo.stop()},QueryManager2.prototype.clearStore=function(options){return options===void 0&&(options={discardWatches:!0}),this.cancelPendingFetches(newInvariantError(34)),this.queries.forEach(function(queryInfo){queryInfo.observableQuery?queryInfo.networkStatus=NetworkStatus.loading:queryInfo.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(options)},QueryManager2.prototype.getObservableQueries=function(include){var _this=this;include===void 0&&(include="active");var queries=new Map,queryNamesAndDocs=new Map,legacyQueryOptions=new Set;return Array.isArray(include)&&include.forEach(function(desc){typeof desc=="string"?queryNamesAndDocs.set(desc,!1):isDocumentNode(desc)?queryNamesAndDocs.set(_this.transform(desc),!1):isNonNullObject(desc)&&desc.query&&legacyQueryOptions.add(desc)}),this.queries.forEach(function(_a2,queryId){var oq=_a2.observableQuery,document2=_a2.document;if(oq){if(include==="all"){queries.set(queryId,oq);return}var queryName=oq.queryName,fetchPolicy=oq.options.fetchPolicy;if(fetchPolicy==="standby"||include==="active"&&!oq.hasObservers())return;(include==="active"||queryName&&queryNamesAndDocs.has(queryName)||document2&&queryNamesAndDocs.has(document2))&&(queries.set(queryId,oq),queryName&&queryNamesAndDocs.set(queryName,!0),document2&&queryNamesAndDocs.set(document2,!0))}}),legacyQueryOptions.size&&legacyQueryOptions.forEach(function(options){var queryId=makeUniqueId("legacyOneTimeQuery"),queryInfo=_this.getQuery(queryId).init({document:options.query,variables:options.variables}),oq=new ObservableQuery({queryManager:_this,queryInfo,options:tslib_es6_assign(tslib_es6_assign({},options),{fetchPolicy:"network-only"})});invariantWrappers_invariant(oq.queryId===queryId),queryInfo.setObservableQuery(oq),queries.set(queryId,oq)}),globalThis.__DEV__!==!1&&queryNamesAndDocs.size&&queryNamesAndDocs.forEach(function(included,nameOrDoc){included||globalThis.__DEV__!==!1&&invariantWrappers_invariant.warn(typeof nameOrDoc=="string"?35:36,nameOrDoc)}),queries},QueryManager2.prototype.reFetchObservableQueries=function(includeStandby){var _this=this;includeStandby===void 0&&(includeStandby=!1);var observableQueryPromises=[];return this.getObservableQueries(includeStandby?"all":"active").forEach(function(observableQuery,queryId){var fetchPolicy=observableQuery.options.fetchPolicy;observableQuery.resetLastResults(),(includeStandby||fetchPolicy!=="standby"&&fetchPolicy!=="cache-only")&&observableQueryPromises.push(observableQuery.refetch()),_this.getQuery(queryId).setDiff(null)}),this.broadcastQueries(),Promise.all(observableQueryPromises)},QueryManager2.prototype.setObservableQuery=function(observableQuery){this.getQuery(observableQuery.queryId).setObservableQuery(observableQuery)},QueryManager2.prototype.startGraphQLSubscription=function(options){var _this=this,query=options.query,variables=options.variables,fetchPolicy=options.fetchPolicy,_a2=options.errorPolicy,errorPolicy=_a2===void 0?"none":_a2,_b=options.context,context=_b===void 0?{}:_b,_c=options.extensions,extensions=_c===void 0?{}:_c;query=this.transform(query),variables=this.getVariables(query,variables);var makeObservable=function(variables2){return _this.getObservableFromLink(query,context,variables2,extensions).map(function(result){fetchPolicy!=="no-cache"&&(shouldWriteResult(result,errorPolicy)&&_this.cache.write({query,result:result.data,dataId:"ROOT_SUBSCRIPTION",variables:variables2}),_this.broadcastQueries());var hasErrors=graphQLResultHasError(result),hasProtocolErrors=graphQLResultHasProtocolErrors(result);if(hasErrors||hasProtocolErrors){var errors={};if(hasErrors&&(errors.graphQLErrors=result.errors),hasProtocolErrors&&(errors.protocolErrors=result.extensions[PROTOCOL_ERRORS_SYMBOL]),errorPolicy==="none"||hasProtocolErrors)throw new ApolloError(errors)}return errorPolicy==="ignore"&&delete result.errors,result})};if(this.getDocumentInfo(query).hasClientExports){var observablePromise_1=this.localState.addExportedVariables(query,variables,context).then(makeObservable);return new Observable(function(observer){var sub=null;return observablePromise_1.then(function(observable){return sub=observable.subscribe(observer)},observer.error),function(){return sub&&sub.unsubscribe()}})}return makeObservable(variables)},QueryManager2.prototype.stopQuery=function(queryId){this.stopQueryNoBroadcast(queryId),this.broadcastQueries()},QueryManager2.prototype.stopQueryNoBroadcast=function(queryId){this.stopQueryInStoreNoBroadcast(queryId),this.removeQuery(queryId)},QueryManager2.prototype.removeQuery=function(queryId){this.fetchCancelFns.delete(queryId),this.queries.has(queryId)&&(this.getQuery(queryId).stop(),this.queries.delete(queryId))},QueryManager2.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(info){return info.notify()})},QueryManager2.prototype.getLocalState=function(){return this.localState},QueryManager2.prototype.getObservableFromLink=function(query,context,variables,extensions,deduplication){var _this=this,_a2;deduplication===void 0&&(deduplication=(_a2=context?.queryDeduplication)!==null&&_a2!==void 0?_a2:this.queryDeduplication);var observable,_b=this.getDocumentInfo(query),serverQuery=_b.serverQuery,clientQuery=_b.clientQuery;if(serverQuery){var _c=this,inFlightLinkObservables_1=_c.inFlightLinkObservables,link=_c.link,operation={query:serverQuery,variables,operationName:getOperationName(serverQuery)||void 0,context:this.prepareContext(tslib_es6_assign(tslib_es6_assign({},context),{forceFetch:!deduplication})),extensions};if(context=operation.context,deduplication){var printedServerQuery_1=print(serverQuery),varJson_1=canonicalStringify(variables),entry=inFlightLinkObservables_1.lookup(printedServerQuery_1,varJson_1);if(observable=entry.observable,!observable){var concast=new Concast([execute(link,operation)]);observable=entry.observable=concast,concast.beforeNext(function(){inFlightLinkObservables_1.remove(printedServerQuery_1,varJson_1)})}}else observable=new Concast([execute(link,operation)])}else observable=new Concast([Observable.of({data:{}})]),context=this.prepareContext(context);return clientQuery&&(observable=asyncMap(observable,function(result){return _this.localState.runResolvers({document:clientQuery,remoteResult:result,context,variables})})),observable},QueryManager2.prototype.getResultsFromLink=function(queryInfo,cacheWriteBehavior,options){var requestId=queryInfo.lastRequestId=this.generateRequestId(),linkDocument=this.cache.transformForLink(options.query);return asyncMap(this.getObservableFromLink(linkDocument,options.context,options.variables),function(result){var graphQLErrors=getGraphQLErrorsFromResult(result),hasErrors=graphQLErrors.length>0,errorPolicy=options.errorPolicy;if(requestId>=queryInfo.lastRequestId){if(hasErrors&&errorPolicy==="none")throw queryInfo.markError(new ApolloError({graphQLErrors}));queryInfo.markResult(result,linkDocument,options,cacheWriteBehavior),queryInfo.markReady()}var aqr={data:result.data,loading:!1,networkStatus:NetworkStatus.ready};return hasErrors&&errorPolicy==="none"&&(aqr.data=void 0),hasErrors&&errorPolicy!=="ignore"&&(aqr.errors=graphQLErrors,aqr.networkStatus=NetworkStatus.error),aqr},function(networkError){var error=isApolloError(networkError)?networkError:new ApolloError({networkError});throw requestId>=queryInfo.lastRequestId&&queryInfo.markError(error),error})},QueryManager2.prototype.fetchConcastWithInfo=function(queryId,options,networkStatus,query){var _this=this;networkStatus===void 0&&(networkStatus=NetworkStatus.loading),query===void 0&&(query=options.query);var variables=this.getVariables(query,options.variables),queryInfo=this.getQuery(queryId),defaults=this.defaultOptions.watchQuery,_a2=options.fetchPolicy,fetchPolicy=_a2===void 0?defaults&&defaults.fetchPolicy||"cache-first":_a2,_b=options.errorPolicy,errorPolicy=_b===void 0?defaults&&defaults.errorPolicy||"none":_b,_c=options.returnPartialData,returnPartialData=_c===void 0?!1:_c,_d=options.notifyOnNetworkStatusChange,notifyOnNetworkStatusChange=_d===void 0?!1:_d,_e=options.context,context=_e===void 0?{}:_e,normalized=Object.assign({},options,{query,variables,fetchPolicy,errorPolicy,returnPartialData,notifyOnNetworkStatusChange,context}),fromVariables=function(variables2){normalized.variables=variables2;var sourcesWithInfo2=_this.fetchQueryByPolicy(queryInfo,normalized,networkStatus);return normalized.fetchPolicy!=="standby"&&sourcesWithInfo2.sources.length>0&&queryInfo.observableQuery&&queryInfo.observableQuery.applyNextFetchPolicy("after-fetch",options),sourcesWithInfo2},cleanupCancelFn=function(){return _this.fetchCancelFns.delete(queryId)};this.fetchCancelFns.set(queryId,function(reason){cleanupCancelFn(),setTimeout(function(){return concast.cancel(reason)})});var concast,containsDataFromLink;if(this.getDocumentInfo(normalized.query).hasClientExports)concast=new Concast(this.localState.addExportedVariables(normalized.query,normalized.variables,normalized.context).then(fromVariables).then(function(sourcesWithInfo2){return sourcesWithInfo2.sources})),containsDataFromLink=!0;else{var sourcesWithInfo=fromVariables(normalized.variables);containsDataFromLink=sourcesWithInfo.fromLink,concast=new Concast(sourcesWithInfo.sources)}return concast.promise.then(cleanupCancelFn,cleanupCancelFn),{concast,fromLink:containsDataFromLink}},QueryManager2.prototype.refetchQueries=function(_a2){var _this=this,updateCache=_a2.updateCache,include=_a2.include,_b=_a2.optimistic,optimistic=_b===void 0?!1:_b,_c=_a2.removeOptimistic,removeOptimistic=_c===void 0?optimistic?makeUniqueId("refetchQueries"):void 0:_c,onQueryUpdated=_a2.onQueryUpdated,includedQueriesById=new Map;include&&this.getObservableQueries(include).forEach(function(oq,queryId){includedQueriesById.set(queryId,{oq,lastDiff:_this.getQuery(queryId).getDiff()})});var results=new Map;return updateCache&&this.cache.batch({update:updateCache,optimistic:optimistic&&removeOptimistic||!1,removeOptimistic,onWatchUpdated:function(watch,diff,lastDiff){var oq=watch.watcher instanceof QueryInfo&&watch.watcher.observableQuery;if(oq){if(onQueryUpdated){includedQueriesById.delete(oq.queryId);var result=onQueryUpdated(oq,diff,lastDiff);return result===!0&&(result=oq.refetch()),result!==!1&&results.set(oq,result),result}onQueryUpdated!==null&&includedQueriesById.set(oq.queryId,{oq,lastDiff,diff})}}}),includedQueriesById.size&&includedQueriesById.forEach(function(_a3,queryId){var oq=_a3.oq,lastDiff=_a3.lastDiff,diff=_a3.diff,result;if(onQueryUpdated){if(!diff){var info=oq.queryInfo;info.reset(),diff=info.getDiff()}result=onQueryUpdated(oq,diff,lastDiff)}(!onQueryUpdated||result===!0)&&(result=oq.refetch()),result!==!1&&results.set(oq,result),queryId.indexOf("legacyOneTimeQuery")>=0&&_this.stopQueryNoBroadcast(queryId)}),removeOptimistic&&this.cache.removeOptimistic(removeOptimistic),results},QueryManager2.prototype.maskOperation=function(options){var _a2,_b,_c,document2=options.document,data=options.data;if(globalThis.__DEV__!==!1){var fetchPolicy=options.fetchPolicy,id=options.id,operationType=(_a2=getOperationDefinition(document2))===null||_a2===void 0?void 0:_a2.operation,operationId=((_b=operationType?.[0])!==null&&_b!==void 0?_b:"o")+id;this.dataMasking&&fetchPolicy==="no-cache"&&!isFullyUnmaskedOperation(document2)&&!this.noCacheWarningsByQueryId.has(operationId)&&(this.noCacheWarningsByQueryId.add(operationId),globalThis.__DEV__!==!1&&invariantWrappers_invariant.warn(37,(_c=getOperationName(document2))!==null&&_c!==void 0?_c:"Unnamed ".concat(operationType??"operation")))}return this.dataMasking?maskOperation(data,document2,this.cache):data},QueryManager2.prototype.maskFragment=function(options){var data=options.data,fragment=options.fragment,fragmentName=options.fragmentName;return this.dataMasking?maskFragment(data,fragment,this.cache,fragmentName):data},QueryManager2.prototype.fetchQueryByPolicy=function(queryInfo,_a2,networkStatus){var _this=this,query=_a2.query,variables=_a2.variables,fetchPolicy=_a2.fetchPolicy,refetchWritePolicy=_a2.refetchWritePolicy,errorPolicy=_a2.errorPolicy,returnPartialData=_a2.returnPartialData,context=_a2.context,notifyOnNetworkStatusChange=_a2.notifyOnNetworkStatusChange,oldNetworkStatus=queryInfo.networkStatus;queryInfo.init({document:query,variables,networkStatus});var readCache=function(){return queryInfo.getDiff()},resultsFromCache=function(diff2,networkStatus2){networkStatus2===void 0&&(networkStatus2=queryInfo.networkStatus||NetworkStatus.loading);var data=diff2.result;globalThis.__DEV__!==!1&&!returnPartialData&&!equal(data,{})&&logMissingFieldErrors(diff2.missing);var fromData=function(data2){return Observable.of(tslib_es6_assign({data:data2,loading:isNetworkRequestInFlight(networkStatus2),networkStatus:networkStatus2},diff2.complete?null:{partial:!0}))};return data&&_this.getDocumentInfo(query).hasForcedResolvers?_this.localState.runResolvers({document:query,remoteResult:{data},context,variables,onlyRunForcedResolvers:!0}).then(function(resolved){return fromData(resolved.data||void 0)}):errorPolicy==="none"&&networkStatus2===NetworkStatus.refetch&&Array.isArray(diff2.missing)?fromData(void 0):fromData(data)},cacheWriteBehavior=fetchPolicy==="no-cache"?0:networkStatus===NetworkStatus.refetch&&refetchWritePolicy!=="merge"?1:2,resultsFromLink=function(){return _this.getResultsFromLink(queryInfo,cacheWriteBehavior,{query,variables,context,fetchPolicy,errorPolicy})},shouldNotify=notifyOnNetworkStatusChange&&typeof oldNetworkStatus=="number"&&oldNetworkStatus!==networkStatus&&isNetworkRequestInFlight(networkStatus);switch(fetchPolicy){default:case"cache-first":{var diff=readCache();return diff.complete?{fromLink:!1,sources:[resultsFromCache(diff,queryInfo.markReady())]}:returnPartialData||shouldNotify?{fromLink:!0,sources:[resultsFromCache(diff),resultsFromLink()]}:{fromLink:!0,sources:[resultsFromLink()]}}case"cache-and-network":{var diff=readCache();return diff.complete||returnPartialData||shouldNotify?{fromLink:!0,sources:[resultsFromCache(diff),resultsFromLink()]}:{fromLink:!0,sources:[resultsFromLink()]}}case"cache-only":return{fromLink:!1,sources:[resultsFromCache(readCache(),queryInfo.markReady())]};case"network-only":return shouldNotify?{fromLink:!0,sources:[resultsFromCache(readCache()),resultsFromLink()]}:{fromLink:!0,sources:[resultsFromLink()]};case"no-cache":return shouldNotify?{fromLink:!0,sources:[resultsFromCache(queryInfo.getDiff()),resultsFromLink()]}:{fromLink:!0,sources:[resultsFromLink()]};case"standby":return{fromLink:!1,sources:[]}}},QueryManager2.prototype.getQuery=function(queryId){return queryId&&!this.queries.has(queryId)&&this.queries.set(queryId,new QueryInfo(this,queryId)),this.queries.get(queryId)},QueryManager2.prototype.prepareContext=function(context){context===void 0&&(context={});var newContext=this.localState.prepareContext(context);return tslib_es6_assign(tslib_es6_assign(tslib_es6_assign({},this.defaultContext),newContext),{clientAwareness:this.clientAwareness})},QueryManager2}();function isDefinitionNode(node){return isExecutableDefinitionNode(node)||isTypeSystemDefinitionNode(node)||isTypeSystemExtensionNode(node)}function isExecutableDefinitionNode(node){return node.kind===Kind.OPERATION_DEFINITION||node.kind===Kind.FRAGMENT_DEFINITION}function isSelectionNode(node){return node.kind===kinds.b.FIELD||node.kind===kinds.b.FRAGMENT_SPREAD||node.kind===kinds.b.INLINE_FRAGMENT}function isValueNode(node){return node.kind===Kind.VARIABLE||node.kind===Kind.INT||node.kind===Kind.FLOAT||node.kind===Kind.STRING||node.kind===Kind.BOOLEAN||node.kind===Kind.NULL||node.kind===Kind.ENUM||node.kind===Kind.LIST||node.kind===Kind.OBJECT}function isTypeNode(node){return node.kind===Kind.NAMED_TYPE||node.kind===Kind.LIST_TYPE||node.kind===Kind.NON_NULL_TYPE}function isTypeSystemDefinitionNode(node){return node.kind===Kind.SCHEMA_DEFINITION||isTypeDefinitionNode(node)||node.kind===Kind.DIRECTIVE_DEFINITION}function isTypeDefinitionNode(node){return node.kind===Kind.SCALAR_TYPE_DEFINITION||node.kind===Kind.OBJECT_TYPE_DEFINITION||node.kind===Kind.INTERFACE_TYPE_DEFINITION||node.kind===Kind.UNION_TYPE_DEFINITION||node.kind===Kind.ENUM_TYPE_DEFINITION||node.kind===Kind.INPUT_OBJECT_TYPE_DEFINITION}function isTypeSystemExtensionNode(node){return node.kind===Kind.SCHEMA_EXTENSION||isTypeExtensionNode(node)}function isTypeExtensionNode(node){return node.kind===Kind.SCALAR_TYPE_EXTENSION||node.kind===Kind.OBJECT_TYPE_EXTENSION||node.kind===Kind.INTERFACE_TYPE_EXTENSION||node.kind===Kind.UNION_TYPE_EXTENSION||node.kind===Kind.ENUM_TYPE_EXTENSION||node.kind===Kind.INPUT_OBJECT_TYPE_EXTENSION}var cacheSlot=new Slot,cacheInfoMap=new WeakMap;function getCacheInfo(cache2){var info=cacheInfoMap.get(cache2);return info||cacheInfoMap.set(cache2,info={vars:new Set,dep:dep()}),info}function forgetCache(cache2){getCacheInfo(cache2).vars.forEach(function(rv){return rv.forgetCache(cache2)})}function recallCache(cache2){getCacheInfo(cache2).vars.forEach(function(rv){return rv.attachCache(cache2)})}function makeVar(value){var caches2=new Set,listeners=new Set,rv=function(newValue){if(arguments.length>0){if(value!==newValue){value=newValue,caches2.forEach(function(cache3){getCacheInfo(cache3).dep.dirty(rv),broadcast(cache3)});var oldListeners=Array.from(listeners);listeners.clear(),oldListeners.forEach(function(listener){return listener(value)})}}else{var cache2=cacheSlot.getValue();cache2&&(attach(cache2),getCacheInfo(cache2).dep(rv))}return value};rv.onNextChange=function(listener){return listeners.add(listener),function(){listeners.delete(listener)}};var attach=rv.attachCache=function(cache2){return caches2.add(cache2),getCacheInfo(cache2).vars.add(rv),rv};return rv.forgetCache=function(cache2){return caches2.delete(cache2)},rv}function broadcast(cache2){cache2.broadcastWatches&&cache2.broadcastWatches()}var LocalState=function(){function LocalState2(_a2){var cache2=_a2.cache,client=_a2.client,resolvers=_a2.resolvers,fragmentMatcher=_a2.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=cache2,client&&(this.client=client),resolvers&&this.addResolvers(resolvers),fragmentMatcher&&this.setFragmentMatcher(fragmentMatcher)}return LocalState2.prototype.addResolvers=function(resolvers){var _this=this;this.resolvers=this.resolvers||{},Array.isArray(resolvers)?resolvers.forEach(function(resolverGroup){_this.resolvers=mergeDeep(_this.resolvers,resolverGroup)}):this.resolvers=mergeDeep(this.resolvers,resolvers)},LocalState2.prototype.setResolvers=function(resolvers){this.resolvers={},this.addResolvers(resolvers)},LocalState2.prototype.getResolvers=function(){return this.resolvers||{}},LocalState2.prototype.runResolvers=function(_a2){return __awaiter(this,arguments,void 0,function(_b){var document2=_b.document,remoteResult=_b.remoteResult,context=_b.context,variables=_b.variables,_c=_b.onlyRunForcedResolvers,onlyRunForcedResolvers=_c===void 0?!1:_c;return __generator(this,function(_d){return document2?[2,this.resolveDocument(document2,remoteResult.data,context,variables,this.fragmentMatcher,onlyRunForcedResolvers).then(function(localResult){return tslib_es6_assign(tslib_es6_assign({},remoteResult),{data:localResult.result})})]:[2,remoteResult]})})},LocalState2.prototype.setFragmentMatcher=function(fragmentMatcher){this.fragmentMatcher=fragmentMatcher},LocalState2.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},LocalState2.prototype.clientQuery=function(document2){return hasDirectives(["client"],document2)&&this.resolvers?document2:null},LocalState2.prototype.serverQuery=function(document2){return removeClientSetsFromDocument(document2)},LocalState2.prototype.prepareContext=function(context){var cache2=this.cache;return tslib_es6_assign(tslib_es6_assign({},context),{cache:cache2,getCacheKey:function(obj){return cache2.identify(obj)}})},LocalState2.prototype.addExportedVariables=function(document_1){return __awaiter(this,arguments,void 0,function(document2,variables,context){return variables===void 0&&(variables={}),context===void 0&&(context={}),__generator(this,function(_a2){return document2?[2,this.resolveDocument(document2,this.buildRootValueFromCache(document2,variables)||{},this.prepareContext(context),variables).then(function(data){return tslib_es6_assign(tslib_es6_assign({},variables),data.exportedVariables)})]:[2,tslib_es6_assign({},variables)]})})},LocalState2.prototype.shouldForceResolvers=function(document2){var forceResolvers=!1;return(0,visitor.YR)(document2,{Directive:{enter:function(node){if(node.name.value==="client"&&node.arguments&&(forceResolvers=node.arguments.some(function(arg){return arg.name.value==="always"&&arg.value.kind==="BooleanValue"&&arg.value.value===!0}),forceResolvers))return visitor.sP}}}),forceResolvers},LocalState2.prototype.buildRootValueFromCache=function(document2,variables){return this.cache.diff({query:buildQueryFromSelectionSet(document2),variables,returnPartialData:!0,optimistic:!1}).result},LocalState2.prototype.resolveDocument=function(document_1,rootValue_1){return __awaiter(this,arguments,void 0,function(document2,rootValue,context,variables,fragmentMatcher,onlyRunForcedResolvers){var mainDefinition,fragments,fragmentMap,selectionsToResolve,definitionOperation,defaultOperationType,_a2,cache2,client,execContext,isClientFieldDescendant;return context===void 0&&(context={}),variables===void 0&&(variables={}),fragmentMatcher===void 0&&(fragmentMatcher=function(){return!0}),onlyRunForcedResolvers===void 0&&(onlyRunForcedResolvers=!1),__generator(this,function(_b){return mainDefinition=getMainDefinition(document2),fragments=getFragmentDefinitions(document2),fragmentMap=createFragmentMap(fragments),selectionsToResolve=this.collectSelectionsToResolve(mainDefinition,fragmentMap),definitionOperation=mainDefinition.operation,defaultOperationType=definitionOperation?definitionOperation.charAt(0).toUpperCase()+definitionOperation.slice(1):"Query",_a2=this,cache2=_a2.cache,client=_a2.client,execContext={fragmentMap,context:tslib_es6_assign(tslib_es6_assign({},context),{cache:cache2,client}),variables,fragmentMatcher,defaultOperationType,exportedVariables:{},selectionsToResolve,onlyRunForcedResolvers},isClientFieldDescendant=!1,[2,this.resolveSelectionSet(mainDefinition.selectionSet,isClientFieldDescendant,rootValue,execContext).then(function(result){return{result,exportedVariables:execContext.exportedVariables}})]})})},LocalState2.prototype.resolveSelectionSet=function(selectionSet,isClientFieldDescendant,rootValue,execContext){return __awaiter(this,void 0,void 0,function(){var fragmentMap,context,variables,resultsToMerge,execute2,_this=this;return __generator(this,function(_a2){return fragmentMap=execContext.fragmentMap,context=execContext.context,variables=execContext.variables,resultsToMerge=[rootValue],execute2=function(selection){return __awaiter(_this,void 0,void 0,function(){var fragment,typeCondition;return __generator(this,function(_a3){return!isClientFieldDescendant&&!execContext.selectionsToResolve.has(selection)?[2]:shouldInclude(selection,variables)?storeUtils_isField(selection)?[2,this.resolveField(selection,isClientFieldDescendant,rootValue,execContext).then(function(fieldResult){var _a4;typeof fieldResult<"u"&&resultsToMerge.push((_a4={},_a4[resultKeyNameFromField(selection)]=fieldResult,_a4))})]:(isInlineFragment(selection)?fragment=selection:(fragment=fragmentMap[selection.name.value],invariantWrappers_invariant(fragment,19,selection.name.value)),fragment&&fragment.typeCondition&&(typeCondition=fragment.typeCondition.name.value,execContext.fragmentMatcher(rootValue,typeCondition,context))?[2,this.resolveSelectionSet(fragment.selectionSet,isClientFieldDescendant,rootValue,execContext).then(function(fragmentResult){resultsToMerge.push(fragmentResult)})]:[2]):[2]})})},[2,Promise.all(selectionSet.selections.map(execute2)).then(function(){return mergeDeepArray(resultsToMerge)})]})})},LocalState2.prototype.resolveField=function(field,isClientFieldDescendant,rootValue,execContext){return __awaiter(this,void 0,void 0,function(){var variables,fieldName,aliasedFieldName,aliasUsed,defaultResult,resultPromise,resolverType,resolverMap,resolve,_this=this;return __generator(this,function(_a2){return rootValue?(variables=execContext.variables,fieldName=field.name.value,aliasedFieldName=resultKeyNameFromField(field),aliasUsed=fieldName!==aliasedFieldName,defaultResult=rootValue[aliasedFieldName]||rootValue[fieldName],resultPromise=Promise.resolve(defaultResult),(!execContext.onlyRunForcedResolvers||this.shouldForceResolvers(field))&&(resolverType=rootValue.__typename||execContext.defaultOperationType,resolverMap=this.resolvers&&this.resolvers[resolverType],resolverMap&&(resolve=resolverMap[aliasUsed?fieldName:aliasedFieldName],resolve&&(resultPromise=Promise.resolve(cacheSlot.withValue(this.cache,resolve,[rootValue,argumentsObjectFromField(field,variables),execContext.context,{field,fragmentMap:execContext.fragmentMap}]))))),[2,resultPromise.then(function(result){var _a3,_b;if(result===void 0&&(result=defaultResult),field.directives&&field.directives.forEach(function(directive){directive.name.value==="export"&&directive.arguments&&directive.arguments.forEach(function(arg){arg.name.value==="as"&&arg.value.kind==="StringValue"&&(execContext.exportedVariables[arg.value.value]=result)})}),!field.selectionSet||result==null)return result;var isClientField=(_b=(_a3=field.directives)===null||_a3===void 0?void 0:_a3.some(function(d){return d.name.value==="client"}))!==null&&_b!==void 0?_b:!1;if(Array.isArray(result))return _this.resolveSubSelectedArray(field,isClientFieldDescendant||isClientField,result,execContext);if(field.selectionSet)return _this.resolveSelectionSet(field.selectionSet,isClientFieldDescendant||isClientField,result,execContext)})]):[2,null]})})},LocalState2.prototype.resolveSubSelectedArray=function(field,isClientFieldDescendant,result,execContext){var _this=this;return Promise.all(result.map(function(item){if(item===null)return null;if(Array.isArray(item))return _this.resolveSubSelectedArray(field,isClientFieldDescendant,item,execContext);if(field.selectionSet)return _this.resolveSelectionSet(field.selectionSet,isClientFieldDescendant,item,execContext)}))},LocalState2.prototype.collectSelectionsToResolve=function(mainDefinition,fragmentMap){var isSingleASTNode=function(node){return!Array.isArray(node)},selectionsToResolveCache=this.selectionsToResolveCache;function collectByDefinition(definitionNode){if(!selectionsToResolveCache.has(definitionNode)){var matches_1=new Set;selectionsToResolveCache.set(definitionNode,matches_1),(0,visitor.YR)(definitionNode,{Directive:function(node,_,__,___,ancestors){node.name.value==="client"&&ancestors.forEach(function(node2){isSingleASTNode(node2)&&isSelectionNode(node2)&&matches_1.add(node2)})},FragmentSpread:function(spread,_,__,___,ancestors){var fragment=fragmentMap[spread.name.value];invariantWrappers_invariant(fragment,20,spread.name.value);var fragmentSelections=collectByDefinition(fragment);fragmentSelections.size>0&&(ancestors.forEach(function(node){isSingleASTNode(node)&&isSelectionNode(node)&&matches_1.add(node)}),matches_1.add(spread),fragmentSelections.forEach(function(selection){matches_1.add(selection)}))}})}return selectionsToResolveCache.get(definitionNode)}return collectByDefinition(mainDefinition)},LocalState2}();function mergeOptions(defaults,options){return compact(defaults,options,options.variables&&{variables:compact(tslib_es6_assign(tslib_es6_assign({},defaults&&defaults.variables),options.variables))})}var hasSuggestedDevtools=!1,ApolloClient=function(){function ApolloClient2(options){var _this=this,_a2;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!options.cache)throw newInvariantError(16);var uri=options.uri,credentials=options.credentials,headers=options.headers,cache2=options.cache,documentTransform=options.documentTransform,_b=options.ssrMode,ssrMode=_b===void 0?!1:_b,_c=options.ssrForceFetchDelay,ssrForceFetchDelay=_c===void 0?0:_c,connectToDevTools=options.connectToDevTools,_d=options.queryDeduplication,queryDeduplication=_d===void 0?!0:_d,defaultOptions2=options.defaultOptions,defaultContext=options.defaultContext,_e=options.assumeImmutableResults,assumeImmutableResults=_e===void 0?cache2.assumeImmutableResults:_e,resolvers=options.resolvers,typeDefs=options.typeDefs,fragmentMatcher=options.fragmentMatcher,clientAwarenessName=options.name,clientAwarenessVersion=options.version,devtools=options.devtools,dataMasking=options.dataMasking,link=options.link;link||(link=uri?new HttpLink({uri,credentials,headers}):ApolloLink.empty()),this.link=link,this.cache=cache2,this.disableNetworkFetches=ssrMode||ssrForceFetchDelay>0,this.queryDeduplication=queryDeduplication,this.defaultOptions=defaultOptions2||Object.create(null),this.typeDefs=typeDefs,this.devtoolsConfig=tslib_es6_assign(tslib_es6_assign({},devtools),{enabled:(_a2=devtools?.enabled)!==null&&_a2!==void 0?_a2:connectToDevTools}),this.devtoolsConfig.enabled===void 0&&(this.devtoolsConfig.enabled=globalThis.__DEV__!==!1),ssrForceFetchDelay&&setTimeout(function(){return _this.disableNetworkFetches=!1},ssrForceFetchDelay),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.watchFragment=this.watchFragment.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),this.version=version,this.localState=new LocalState({cache:cache2,client:this,resolvers,fragmentMatcher}),this.queryManager=new QueryManager({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,defaultContext,documentTransform,queryDeduplication,ssrMode,dataMasking:!!dataMasking,clientAwareness:{name:clientAwarenessName,version:clientAwarenessVersion},localState:this.localState,assumeImmutableResults,onBroadcast:this.devtoolsConfig.enabled?function(){_this.devToolsHookCb&&_this.devToolsHookCb({action:{},state:{queries:_this.queryManager.getQueryStore(),mutations:_this.queryManager.mutationStore||{}},dataWithOptimisticResults:_this.cache.extract(!0)})}:void 0}),this.devtoolsConfig.enabled&&this.connectToDevTools()}return ApolloClient2.prototype.connectToDevTools=function(){if(!(typeof window>"u")){var windowWithDevTools=window,devtoolsSymbol=Symbol.for("apollo.devtools");(windowWithDevTools[devtoolsSymbol]=windowWithDevTools[devtoolsSymbol]||[]).push(this),windowWithDevTools.__APOLLO_CLIENT__=this,!hasSuggestedDevtools&&globalThis.__DEV__!==!1&&(hasSuggestedDevtools=!0,window.document&&window.top===window.self&&/^(https?|file):$/.test(window.location.protocol)&&setTimeout(function(){if(!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__){var nav=window.navigator,ua=nav&&nav.userAgent,url=void 0;typeof ua=="string"&&(ua.indexOf("Chrome/")>-1?url="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":ua.indexOf("Firefox/")>-1&&(url="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),url&&globalThis.__DEV__!==!1&&invariantWrappers_invariant.log("Download the Apollo DevTools for a better development experience: %s",url)}},1e4))}},Object.defineProperty(ApolloClient2.prototype,"documentTransform",{get:function(){return this.queryManager.documentTransform},enumerable:!1,configurable:!0}),ApolloClient2.prototype.stop=function(){this.queryManager.stop()},ApolloClient2.prototype.watchQuery=function(options){return this.defaultOptions.watchQuery&&(options=mergeOptions(this.defaultOptions.watchQuery,options)),this.disableNetworkFetches&&(options.fetchPolicy==="network-only"||options.fetchPolicy==="cache-and-network")&&(options=tslib_es6_assign(tslib_es6_assign({},options),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(options)},ApolloClient2.prototype.query=function(options){return this.defaultOptions.query&&(options=mergeOptions(this.defaultOptions.query,options)),invariantWrappers_invariant(options.fetchPolicy!=="cache-and-network",17),this.disableNetworkFetches&&options.fetchPolicy==="network-only"&&(options=tslib_es6_assign(tslib_es6_assign({},options),{fetchPolicy:"cache-first"})),this.queryManager.query(options)},ApolloClient2.prototype.mutate=function(options){return this.defaultOptions.mutate&&(options=mergeOptions(this.defaultOptions.mutate,options)),this.queryManager.mutate(options)},ApolloClient2.prototype.subscribe=function(options){var _this=this,id=this.queryManager.generateQueryId();return this.queryManager.startGraphQLSubscription(options).map(function(result){return tslib_es6_assign(tslib_es6_assign({},result),{data:_this.queryManager.maskOperation({document:options.query,data:result.data,fetchPolicy:options.fetchPolicy,id})})})},ApolloClient2.prototype.readQuery=function(options,optimistic){return optimistic===void 0&&(optimistic=!1),this.cache.readQuery(options,optimistic)},ApolloClient2.prototype.watchFragment=function(options){var _a2;return this.cache.watchFragment(tslib_es6_assign(tslib_es6_assign({},options),(_a2={},_a2[Symbol.for("apollo.dataMasking")]=this.queryManager.dataMasking,_a2)))},ApolloClient2.prototype.readFragment=function(options,optimistic){return optimistic===void 0&&(optimistic=!1),this.cache.readFragment(options,optimistic)},ApolloClient2.prototype.writeQuery=function(options){var ref=this.cache.writeQuery(options);return options.broadcast!==!1&&this.queryManager.broadcastQueries(),ref},ApolloClient2.prototype.writeFragment=function(options){var ref=this.cache.writeFragment(options);return options.broadcast!==!1&&this.queryManager.broadcastQueries(),ref},ApolloClient2.prototype.__actionHookForDevTools=function(cb){this.devToolsHookCb=cb},ApolloClient2.prototype.__requestRaw=function(payload){return execute(this.link,payload)},ApolloClient2.prototype.resetStore=function(){var _this=this;return Promise.resolve().then(function(){return _this.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(_this.resetStoreCallbacks.map(function(fn){return fn()}))}).then(function(){return _this.reFetchObservableQueries()})},ApolloClient2.prototype.clearStore=function(){var _this=this;return Promise.resolve().then(function(){return _this.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(_this.clearStoreCallbacks.map(function(fn){return fn()}))})},ApolloClient2.prototype.onResetStore=function(cb){var _this=this;return this.resetStoreCallbacks.push(cb),function(){_this.resetStoreCallbacks=_this.resetStoreCallbacks.filter(function(c){return c!==cb})}},ApolloClient2.prototype.onClearStore=function(cb){var _this=this;return this.clearStoreCallbacks.push(cb),function(){_this.clearStoreCallbacks=_this.clearStoreCallbacks.filter(function(c){return c!==cb})}},ApolloClient2.prototype.reFetchObservableQueries=function(includeStandby){return this.queryManager.reFetchObservableQueries(includeStandby)},ApolloClient2.prototype.refetchQueries=function(options){var map=this.queryManager.refetchQueries(options),queries=[],results=[];map.forEach(function(result2,obsQuery){queries.push(obsQuery),results.push(result2)});var result=Promise.all(results);return result.queries=queries,result.results=results,result.catch(function(error){globalThis.__DEV__!==!1&&invariantWrappers_invariant.debug(18,error)}),result},ApolloClient2.prototype.getObservableQueries=function(include){return include===void 0&&(include="active"),this.queryManager.getObservableQueries(include)},ApolloClient2.prototype.extract=function(optimistic){return this.cache.extract(optimistic)},ApolloClient2.prototype.restore=function(serializedState){return this.cache.restore(serializedState)},ApolloClient2.prototype.addResolvers=function(resolvers){this.localState.addResolvers(resolvers)},ApolloClient2.prototype.setResolvers=function(resolvers){this.localState.setResolvers(resolvers)},ApolloClient2.prototype.getResolvers=function(){return this.localState.getResolvers()},ApolloClient2.prototype.setLocalStateFragmentMatcher=function(fragmentMatcher){this.localState.setFragmentMatcher(fragmentMatcher)},ApolloClient2.prototype.setLink=function(newLink){this.link=this.queryManager.link=newLink},Object.defineProperty(ApolloClient2.prototype,"defaultContext",{get:function(){return this.queryManager.defaultContext},enumerable:!1,configurable:!0}),ApolloClient2}();globalThis.__DEV__!==!1&&(ApolloClient.prototype.getMemoryInternals=getApolloClientMemoryInternals);var Cache;(function(Cache2){})(Cache||(Cache={}));var ApolloCache=function(){function ApolloCache2(){this.assumeImmutableResults=!1,this.getFragmentDoc=lib_wrap(getFragmentQueryDocument,{max:cacheSizes["cache.fragmentQueryDocuments"]||1e3,cache:WeakCache})}return ApolloCache2.prototype.lookupFragment=function(fragmentName){return null},ApolloCache2.prototype.batch=function(options){var _this=this,optimisticId=typeof options.optimistic=="string"?options.optimistic:options.optimistic===!1?null:void 0,updateResult;return this.performTransaction(function(){return updateResult=options.update(_this)},optimisticId),updateResult},ApolloCache2.prototype.recordOptimisticTransaction=function(transaction,optimisticId){this.performTransaction(transaction,optimisticId)},ApolloCache2.prototype.transformDocument=function(document2){return document2},ApolloCache2.prototype.transformForLink=function(document2){return document2},ApolloCache2.prototype.identify=function(object){},ApolloCache2.prototype.gc=function(){return[]},ApolloCache2.prototype.modify=function(options){return!1},ApolloCache2.prototype.readQuery=function(options,optimistic){return optimistic===void 0&&(optimistic=!!options.optimistic),this.read(tslib_es6_assign(tslib_es6_assign({},options),{rootId:options.id||"ROOT_QUERY",optimistic}))},ApolloCache2.prototype.watchFragment=function(options){var _this=this,fragment=options.fragment,fragmentName=options.fragmentName,from2=options.from,_a2=options.optimistic,optimistic=_a2===void 0?!0:_a2,otherOptions=__rest(options,["fragment","fragmentName","from","optimistic"]),query=this.getFragmentDoc(fragment,fragmentName),id=typeof from2>"u"||typeof from2=="string"?from2:this.identify(from2),dataMasking=!!options[Symbol.for("apollo.dataMasking")];if(globalThis.__DEV__!==!1){var actualFragmentName=fragmentName||getFragmentDefinition(fragment).name.value;id||globalThis.__DEV__!==!1&&invariantWrappers_invariant.warn(1,actualFragmentName)}var diffOptions=tslib_es6_assign(tslib_es6_assign({},otherOptions),{returnPartialData:!0,id,query,optimistic}),latestDiff;return new Observable(function(observer){return _this.watch(tslib_es6_assign(tslib_es6_assign({},diffOptions),{immediate:!0,callback:function(diff){var data=dataMasking?maskFragment(diff.result,fragment,_this,fragmentName):diff.result;if(!(latestDiff&&equalByQuery(query,{data:latestDiff?.result},{data}))){var result={data,complete:!!diff.complete};diff.missing&&(result.missing=mergeDeepArray(diff.missing.map(function(error){return error.missing}))),latestDiff=tslib_es6_assign(tslib_es6_assign({},diff),{result:data}),observer.next(result)}}}))})},ApolloCache2.prototype.readFragment=function(options,optimistic){return optimistic===void 0&&(optimistic=!!options.optimistic),this.read(tslib_es6_assign(tslib_es6_assign({},options),{query:this.getFragmentDoc(options.fragment,options.fragmentName),rootId:options.id,optimistic}))},ApolloCache2.prototype.writeQuery=function(_a2){var id=_a2.id,data=_a2.data,options=__rest(_a2,["id","data"]);return this.write(Object.assign(options,{dataId:id||"ROOT_QUERY",result:data}))},ApolloCache2.prototype.writeFragment=function(_a2){var id=_a2.id,data=_a2.data,fragment=_a2.fragment,fragmentName=_a2.fragmentName,options=__rest(_a2,["id","data","fragment","fragmentName"]);return this.write(Object.assign(options,{query:this.getFragmentDoc(fragment,fragmentName),dataId:id,result:data}))},ApolloCache2.prototype.updateQuery=function(options,update){return this.batch({update:function(cache2){var value=cache2.readQuery(options),data=update(value);return data==null?value:(cache2.writeQuery(tslib_es6_assign(tslib_es6_assign({},options),{data})),data)}})},ApolloCache2.prototype.updateFragment=function(options,update){return this.batch({update:function(cache2){var value=cache2.readFragment(options),data=update(value);return data==null?value:(cache2.writeFragment(tslib_es6_assign(tslib_es6_assign({},options),{data})),data)}})},ApolloCache2}();globalThis.__DEV__!==!1&&(ApolloCache.prototype.getMemoryInternals=getApolloCacheMemoryInternals);var MissingFieldError=function(_super){__extends(MissingFieldError2,_super);function MissingFieldError2(message,path,query,variables){var _a2,_this=_super.call(this,message)||this;if(_this.message=message,_this.path=path,_this.query=query,_this.variables=variables,Array.isArray(_this.path)){_this.missing=_this.message;for(var i=_this.path.length-1;i>=0;--i)_this.missing=(_a2={},_a2[_this.path[i]]=_this.missing,_a2)}else _this.missing=_this.path;return _this.__proto__=MissingFieldError2.prototype,_this}return MissingFieldError2}(Error),hasOwn=Object.prototype.hasOwnProperty;function isNullish(value){return value==null}function defaultDataIdFromObject(_a2,context){var __typename=_a2.__typename,id=_a2.id,_id=_a2._id;if(typeof __typename=="string"&&(context&&(context.keyObject=isNullish(id)?isNullish(_id)?void 0:{_id}:{id}),isNullish(id)&&!isNullish(_id)&&(id=_id),!isNullish(id)))return"".concat(__typename,":").concat(typeof id=="number"||typeof id=="string"?id:JSON.stringify(id))}var defaultConfig={dataIdFromObject:defaultDataIdFromObject,addTypename:!0,resultCaching:!0,canonizeResults:!1};function normalizeConfig(config){return compact(defaultConfig,config)}function shouldCanonizeResults(config){var value=config.canonizeResults;return value===void 0?defaultConfig.canonizeResults:value}function getTypenameFromStoreObject(store,objectOrReference){return isReference(objectOrReference)?store.get(objectOrReference.__ref,"__typename"):objectOrReference&&objectOrReference.__typename}var TypeOrFieldNameRegExp=/^[_a-z][_0-9a-z]*/i;function fieldNameFromStoreName(storeFieldName){var match=storeFieldName.match(TypeOrFieldNameRegExp);return match?match[0]:storeFieldName}function selectionSetMatchesResult(selectionSet,result,variables){return isNonNullObject(result)?isArray(result)?result.every(function(item){return selectionSetMatchesResult(selectionSet,item,variables)}):selectionSet.selections.every(function(field){if(storeUtils_isField(field)&&shouldInclude(field,variables)){var key=resultKeyNameFromField(field);return hasOwn.call(result,key)&&(!field.selectionSet||selectionSetMatchesResult(field.selectionSet,result[key],variables))}return!0}):!1}function storeValueIsStoreObject(value){return isNonNullObject(value)&&!isReference(value)&&!isArray(value)}function makeProcessedFieldsMerger(){return new DeepMerger}function extractFragmentContext(document2,fragments){var fragmentMap=createFragmentMap(getFragmentDefinitions(document2));return{fragmentMap,lookupFragment:function(name){var def=fragmentMap[name];return!def&&fragments&&(def=fragments.lookup(name)),def||null}}}var DELETE=Object.create(null),delModifier=function(){return DELETE},INVALIDATE=Object.create(null),EntityStore=function(){function EntityStore2(policies,group){var _this=this;this.policies=policies,this.group=group,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(objectOrReference,storeFieldName){return maybeDeepFreeze(isReference(objectOrReference)?_this.get(objectOrReference.__ref,storeFieldName):objectOrReference&&objectOrReference[storeFieldName])},this.canRead=function(objOrRef){return isReference(objOrRef)?_this.has(objOrRef.__ref):typeof objOrRef=="object"},this.toReference=function(objOrIdOrRef,mergeIntoStore){if(typeof objOrIdOrRef=="string")return makeReference(objOrIdOrRef);if(isReference(objOrIdOrRef))return objOrIdOrRef;var id=_this.policies.identify(objOrIdOrRef)[0];if(id){var ref=makeReference(id);return mergeIntoStore&&_this.merge(id,objOrIdOrRef),ref}}}return EntityStore2.prototype.toObject=function(){return tslib_es6_assign({},this.data)},EntityStore2.prototype.has=function(dataId){return this.lookup(dataId,!0)!==void 0},EntityStore2.prototype.get=function(dataId,fieldName){if(this.group.depend(dataId,fieldName),hasOwn.call(this.data,dataId)){var storeObject=this.data[dataId];if(storeObject&&hasOwn.call(storeObject,fieldName))return storeObject[fieldName]}if(fieldName==="__typename"&&hasOwn.call(this.policies.rootTypenamesById,dataId))return this.policies.rootTypenamesById[dataId];if(this instanceof Layer)return this.parent.get(dataId,fieldName)},EntityStore2.prototype.lookup=function(dataId,dependOnExistence){if(dependOnExistence&&this.group.depend(dataId,"__exists"),hasOwn.call(this.data,dataId))return this.data[dataId];if(this instanceof Layer)return this.parent.lookup(dataId,dependOnExistence);if(this.policies.rootTypenamesById[dataId])return Object.create(null)},EntityStore2.prototype.merge=function(older,newer){var _this=this,dataId;isReference(older)&&(older=older.__ref),isReference(newer)&&(newer=newer.__ref);var existing=typeof older=="string"?this.lookup(dataId=older):older,incoming=typeof newer=="string"?this.lookup(dataId=newer):newer;if(!!incoming){invariantWrappers_invariant(typeof dataId=="string",2);var merged=new DeepMerger(storeObjectReconciler).merge(existing,incoming);if(this.data[dataId]=merged,merged!==existing&&(delete this.refs[dataId],this.group.caching)){var fieldsToDirty_1=Object.create(null);existing||(fieldsToDirty_1.__exists=1),Object.keys(incoming).forEach(function(storeFieldName){if(!existing||existing[storeFieldName]!==merged[storeFieldName]){fieldsToDirty_1[storeFieldName]=1;var fieldName=fieldNameFromStoreName(storeFieldName);fieldName!==storeFieldName&&!_this.policies.hasKeyArgs(merged.__typename,fieldName)&&(fieldsToDirty_1[fieldName]=1),merged[storeFieldName]===void 0&&!(_this instanceof Layer)&&delete merged[storeFieldName]}}),fieldsToDirty_1.__typename&&!(existing&&existing.__typename)&&this.policies.rootTypenamesById[dataId]===merged.__typename&&delete fieldsToDirty_1.__typename,Object.keys(fieldsToDirty_1).forEach(function(fieldName){return _this.group.dirty(dataId,fieldName)})}}},EntityStore2.prototype.modify=function(dataId,fields){var _this=this,storeObject=this.lookup(dataId);if(storeObject){var changedFields_1=Object.create(null),needToMerge_1=!1,allDeleted_1=!0,sharedDetails_1={DELETE,INVALIDATE,isReference,toReference:this.toReference,canRead:this.canRead,readField:function(fieldNameOrOptions,from2){return _this.policies.readField(typeof fieldNameOrOptions=="string"?{fieldName:fieldNameOrOptions,from:from2||makeReference(dataId)}:fieldNameOrOptions,{store:_this})}};if(Object.keys(storeObject).forEach(function(storeFieldName){var fieldName=fieldNameFromStoreName(storeFieldName),fieldValue=storeObject[storeFieldName];if(fieldValue!==void 0){var modify=typeof fields=="function"?fields:fields[storeFieldName]||fields[fieldName];if(modify){var newValue=modify===delModifier?DELETE:modify(maybeDeepFreeze(fieldValue),tslib_es6_assign(tslib_es6_assign({},sharedDetails_1),{fieldName,storeFieldName,storage:_this.getStorage(dataId,storeFieldName)}));if(newValue===INVALIDATE)_this.group.dirty(dataId,storeFieldName);else if(newValue===DELETE&&(newValue=void 0),newValue!==fieldValue&&(changedFields_1[storeFieldName]=newValue,needToMerge_1=!0,fieldValue=newValue,globalThis.__DEV__!==!1)){var checkReference=function(ref){if(_this.lookup(ref.__ref)===void 0)return globalThis.__DEV__!==!1&&invariantWrappers_invariant.warn(3,ref),!0};if(isReference(newValue))checkReference(newValue);else if(Array.isArray(newValue))for(var seenReference=!1,someNonReference=void 0,_i=0,newValue_1=newValue;_i<newValue_1.length;_i++){var value=newValue_1[_i];if(isReference(value)){if(seenReference=!0,checkReference(value))break}else if(typeof value=="object"&&!!value){var id=_this.policies.identify(value)[0];id&&(someNonReference=value)}if(seenReference&&someNonReference!==void 0){globalThis.__DEV__!==!1&&invariantWrappers_invariant.warn(4,someNonReference);break}}}}fieldValue!==void 0&&(allDeleted_1=!1)}}),needToMerge_1)return this.merge(dataId,changedFields_1),allDeleted_1&&(this instanceof Layer?this.data[dataId]=void 0:delete this.data[dataId],this.group.dirty(dataId,"__exists")),!0}return!1},EntityStore2.prototype.delete=function(dataId,fieldName,args){var _a2,storeObject=this.lookup(dataId);if(storeObject){var typename=this.getFieldValue(storeObject,"__typename"),storeFieldName=fieldName&&args?this.policies.getStoreFieldName({typename,fieldName,args}):fieldName;return this.modify(dataId,storeFieldName?(_a2={},_a2[storeFieldName]=delModifier,_a2):delModifier)}return!1},EntityStore2.prototype.evict=function(options,limit){var evicted=!1;return options.id&&(hasOwn.call(this.data,options.id)&&(evicted=this.delete(options.id,options.fieldName,options.args)),this instanceof Layer&&this!==limit&&(evicted=this.parent.evict(options,limit)||evicted),(options.fieldName||evicted)&&this.group.dirty(options.id,options.fieldName||"__exists")),evicted},EntityStore2.prototype.clear=function(){this.replace(null)},EntityStore2.prototype.extract=function(){var _this=this,obj=this.toObject(),extraRootIds=[];return this.getRootIdSet().forEach(function(id){hasOwn.call(_this.policies.rootTypenamesById,id)||extraRootIds.push(id)}),extraRootIds.length&&(obj.__META={extraRootIds:extraRootIds.sort()}),obj},EntityStore2.prototype.replace=function(newData){var _this=this;if(Object.keys(this.data).forEach(function(dataId){newData&&hasOwn.call(newData,dataId)||_this.delete(dataId)}),newData){var __META=newData.__META,rest_1=__rest(newData,["__META"]);Object.keys(rest_1).forEach(function(dataId){_this.merge(dataId,rest_1[dataId])}),__META&&__META.extraRootIds.forEach(this.retain,this)}},EntityStore2.prototype.retain=function(rootId){return this.rootIds[rootId]=(this.rootIds[rootId]||0)+1},EntityStore2.prototype.release=function(rootId){if(this.rootIds[rootId]>0){var count=--this.rootIds[rootId];return count||delete this.rootIds[rootId],count}return 0},EntityStore2.prototype.getRootIdSet=function(ids){return ids===void 0&&(ids=new Set),Object.keys(this.rootIds).forEach(ids.add,ids),this instanceof Layer?this.parent.getRootIdSet(ids):Object.keys(this.policies.rootTypenamesById).forEach(ids.add,ids),ids},EntityStore2.prototype.gc=function(){var _this=this,ids=this.getRootIdSet(),snapshot=this.toObject();ids.forEach(function(id){hasOwn.call(snapshot,id)&&(Object.keys(_this.findChildRefIds(id)).forEach(ids.add,ids),delete snapshot[id])});var idsToRemove=Object.keys(snapshot);if(idsToRemove.length){for(var root_1=this;root_1 instanceof Layer;)root_1=root_1.parent;idsToRemove.forEach(function(id){return root_1.delete(id)})}return idsToRemove},EntityStore2.prototype.findChildRefIds=function(dataId){if(!hasOwn.call(this.refs,dataId)){var found_1=this.refs[dataId]=Object.create(null),root=this.data[dataId];if(!root)return found_1;var workSet_1=new Set([root]);workSet_1.forEach(function(obj){isReference(obj)&&(found_1[obj.__ref]=!0),isNonNullObject(obj)&&Object.keys(obj).forEach(function(key){var child=obj[key];isNonNullObject(child)&&workSet_1.add(child)})})}return this.refs[dataId]},EntityStore2.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},EntityStore2}(),CacheGroup=function(){function CacheGroup2(caching,parent2){parent2===void 0&&(parent2=null),this.caching=caching,this.parent=parent2,this.d=null,this.resetCaching()}return CacheGroup2.prototype.resetCaching=function(){this.d=this.caching?dep():null,this.keyMaker=new Trie(canUseWeakMap)},CacheGroup2.prototype.depend=function(dataId,storeFieldName){if(this.d){this.d(makeDepKey(dataId,storeFieldName));var fieldName=fieldNameFromStoreName(storeFieldName);fieldName!==storeFieldName&&this.d(makeDepKey(dataId,fieldName)),this.parent&&this.parent.depend(dataId,storeFieldName)}},CacheGroup2.prototype.dirty=function(dataId,storeFieldName){this.d&&this.d.dirty(makeDepKey(dataId,storeFieldName),storeFieldName==="__exists"?"forget":"setDirty")},CacheGroup2}();function makeDepKey(dataId,storeFieldName){return storeFieldName+"#"+dataId}function maybeDependOnExistenceOfEntity(store,entityId){supportsResultCaching(store)&&store.group.depend(entityId,"__exists")}(function(EntityStore2){var Root=function(_super){__extends(Root2,_super);function Root2(_a2){var policies=_a2.policies,_b=_a2.resultCaching,resultCaching=_b===void 0?!0:_b,seed=_a2.seed,_this=_super.call(this,policies,new CacheGroup(resultCaching))||this;return _this.stump=new Stump(_this),_this.storageTrie=new Trie(canUseWeakMap),seed&&_this.replace(seed),_this}return Root2.prototype.addLayer=function(layerId,replay){return this.stump.addLayer(layerId,replay)},Root2.prototype.removeLayer=function(){return this},Root2.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},Root2}(EntityStore2);EntityStore2.Root=Root})(EntityStore||(EntityStore={}));var Layer=function(_super){__extends(Layer2,_super);function Layer2(id,parent2,replay,group){var _this=_super.call(this,parent2.policies,group)||this;return _this.id=id,_this.parent=parent2,_this.replay=replay,_this.group=group,replay(_this),_this}return Layer2.prototype.addLayer=function(layerId,replay){return new Layer2(layerId,this,replay,this.group)},Layer2.prototype.removeLayer=function(layerId){var _this=this,parent2=this.parent.removeLayer(layerId);return layerId===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(dataId){var ownStoreObject=_this.data[dataId],parentStoreObject=parent2.lookup(dataId);parentStoreObject?ownStoreObject?ownStoreObject!==parentStoreObject&&Object.keys(ownStoreObject).forEach(function(storeFieldName){equal(ownStoreObject[storeFieldName],parentStoreObject[storeFieldName])||_this.group.dirty(dataId,storeFieldName)}):(_this.group.dirty(dataId,"__exists"),Object.keys(parentStoreObject).forEach(function(storeFieldName){_this.group.dirty(dataId,storeFieldName)})):_this.delete(dataId)}),parent2):parent2===this.parent?this:parent2.addLayer(this.id,this.replay)},Layer2.prototype.toObject=function(){return tslib_es6_assign(tslib_es6_assign({},this.parent.toObject()),this.data)},Layer2.prototype.findChildRefIds=function(dataId){var fromParent=this.parent.findChildRefIds(dataId);return hasOwn.call(this.data,dataId)?tslib_es6_assign(tslib_es6_assign({},fromParent),_super.prototype.findChildRefIds.call(this,dataId)):fromParent},Layer2.prototype.getStorage=function(){for(var p=this.parent;p.parent;)p=p.parent;return p.getStorage.apply(p,arguments)},Layer2}(EntityStore),Stump=function(_super){__extends(Stump2,_super);function Stump2(root){return _super.call(this,"EntityStore.Stump",root,function(){},new CacheGroup(root.group.caching,root.group))||this}return Stump2.prototype.removeLayer=function(){return this},Stump2.prototype.merge=function(older,newer){return this.parent.merge(older,newer)},Stump2}(Layer);function storeObjectReconciler(existingObject,incomingObject,property){var existingValue=existingObject[property],incomingValue=incomingObject[property];return equal(existingValue,incomingValue)?existingValue:incomingValue}function supportsResultCaching(store){return!!(store instanceof EntityStore&&store.group.caching)}function shallowCopy(value){return isNonNullObject(value)?isArray(value)?value.slice(0):tslib_es6_assign({__proto__:Object.getPrototypeOf(value)},value):value}var ObjectCanon=function(){function ObjectCanon2(){this.known=new(canUseWeakSet?WeakSet:Set),this.pool=new Trie(canUseWeakMap),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return ObjectCanon2.prototype.isKnown=function(value){return isNonNullObject(value)&&this.known.has(value)},ObjectCanon2.prototype.pass=function(value){if(isNonNullObject(value)){var copy=shallowCopy(value);return this.passes.set(copy,value),copy}return value},ObjectCanon2.prototype.admit=function(value){var _this=this;if(isNonNullObject(value)){var original=this.passes.get(value);if(original)return original;var proto=Object.getPrototypeOf(value);switch(proto){case Array.prototype:{if(this.known.has(value))return value;var array=value.map(this.admit,this),node=this.pool.lookupArray(array);return node.array||(this.known.add(node.array=array),globalThis.__DEV__!==!1&&Object.freeze(array)),node.array}case null:case Object.prototype:{if(this.known.has(value))return value;var proto_1=Object.getPrototypeOf(value),array_1=[proto_1],keys=this.sortedKeys(value);array_1.push(keys.json);var firstValueIndex_1=array_1.length;keys.sorted.forEach(function(key){array_1.push(_this.admit(value[key]))});var node=this.pool.lookupArray(array_1);if(!node.object){var obj_1=node.object=Object.create(proto_1);this.known.add(obj_1),keys.sorted.forEach(function(key,i){obj_1[key]=array_1[firstValueIndex_1+i]}),globalThis.__DEV__!==!1&&Object.freeze(obj_1)}return node.object}}}return value},ObjectCanon2.prototype.sortedKeys=function(obj){var keys=Object.keys(obj),node=this.pool.lookupArray(keys);if(!node.keys){keys.sort();var json=JSON.stringify(keys);(node.keys=this.keysByJSON.get(json))||this.keysByJSON.set(json,node.keys={sorted:keys,json})}return node.keys},ObjectCanon2}();function execSelectionSetKeyArgs(options){return[options.selectionSet,options.objectOrReference,options.context,options.context.canonizeResults]}var StoreReader=function(){function StoreReader2(config){var _this=this;this.knownResults=new(canUseWeakMap?WeakMap:Map),this.config=compact(config,{addTypename:config.addTypename!==!1,canonizeResults:shouldCanonizeResults(config)}),this.canon=config.canon||new ObjectCanon,this.executeSelectionSet=lib_wrap(function(options){var _a2,canonizeResults=options.context.canonizeResults,peekArgs=execSelectionSetKeyArgs(options);peekArgs[3]=!canonizeResults;var other=(_a2=_this.executeSelectionSet).peek.apply(_a2,peekArgs);return other?canonizeResults?tslib_es6_assign(tslib_es6_assign({},other),{result:_this.canon.admit(other.result)}):other:(maybeDependOnExistenceOfEntity(options.context.store,options.enclosingRef.__ref),_this.execSelectionSetImpl(options))},{max:this.config.resultCacheMaxSize||cacheSizes["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:execSelectionSetKeyArgs,makeCacheKey:function(selectionSet,parent2,context,canonizeResults){if(supportsResultCaching(context.store))return context.store.makeCacheKey(selectionSet,isReference(parent2)?parent2.__ref:parent2,context.varString,canonizeResults)}}),this.executeSubSelectedArray=lib_wrap(function(options){return maybeDependOnExistenceOfEntity(options.context.store,options.enclosingRef.__ref),_this.execSubSelectedArrayImpl(options)},{max:this.config.resultCacheMaxSize||cacheSizes["inMemoryCache.executeSubSelectedArray"]||1e4,makeCacheKey:function(_a2){var field=_a2.field,array=_a2.array,context=_a2.context;if(supportsResultCaching(context.store))return context.store.makeCacheKey(field,array,context.varString)}})}return StoreReader2.prototype.resetCanon=function(){this.canon=new ObjectCanon},StoreReader2.prototype.diffQueryAgainstStore=function(_a2){var store=_a2.store,query=_a2.query,_b=_a2.rootId,rootId=_b===void 0?"ROOT_QUERY":_b,variables=_a2.variables,_c=_a2.returnPartialData,returnPartialData=_c===void 0?!0:_c,_d=_a2.canonizeResults,canonizeResults=_d===void 0?this.config.canonizeResults:_d,policies=this.config.cache.policies;variables=tslib_es6_assign(tslib_es6_assign({},getDefaultValues(getQueryDefinition(query))),variables);var rootRef=makeReference(rootId),execResult=this.executeSelectionSet({selectionSet:getMainDefinition(query).selectionSet,objectOrReference:rootRef,enclosingRef:rootRef,context:tslib_es6_assign({store,query,policies,variables,varString:canonicalStringify(variables),canonizeResults},extractFragmentContext(query,this.config.fragments))}),missing;if(execResult.missing&&(missing=[new MissingFieldError(firstMissing(execResult.missing),execResult.missing,query,variables)],!returnPartialData))throw missing[0];return{result:execResult.result,complete:!missing,missing}},StoreReader2.prototype.isFresh=function(result,parent2,selectionSet,context){if(supportsResultCaching(context.store)&&this.knownResults.get(result)===selectionSet){var latest=this.executeSelectionSet.peek(selectionSet,parent2,context,this.canon.isKnown(result));if(latest&&result===latest.result)return!0}return!1},StoreReader2.prototype.execSelectionSetImpl=function(_a2){var _this=this,selectionSet=_a2.selectionSet,objectOrReference=_a2.objectOrReference,enclosingRef=_a2.enclosingRef,context=_a2.context;if(isReference(objectOrReference)&&!context.policies.rootTypenamesById[objectOrReference.__ref]&&!context.store.has(objectOrReference.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(objectOrReference.__ref," object")};var variables=context.variables,policies=context.policies,store=context.store,typename=store.getFieldValue(objectOrReference,"__typename"),objectsToMerge=[],missing,missingMerger=new DeepMerger;this.config.addTypename&&typeof typename=="string"&&!policies.rootIdsByTypename[typename]&&objectsToMerge.push({__typename:typename});function handleMissing(result2,resultName){var _a3;return result2.missing&&(missing=missingMerger.merge(missing,(_a3={},_a3[resultName]=result2.missing,_a3))),result2.result}var workSet=new Set(selectionSet.selections);workSet.forEach(function(selection){var _a3,_b;if(!!shouldInclude(selection,variables))if(storeUtils_isField(selection)){var fieldValue=policies.readField({fieldName:selection.name.value,field:selection,variables:context.variables,from:objectOrReference},context),resultName=resultKeyNameFromField(selection);fieldValue===void 0?addTypenameToDocument.added(selection)||(missing=missingMerger.merge(missing,(_a3={},_a3[resultName]="Can't find field '".concat(selection.name.value,"' on ").concat(isReference(objectOrReference)?objectOrReference.__ref+" object":"object "+JSON.stringify(objectOrReference,null,2)),_a3))):isArray(fieldValue)?fieldValue.length>0&&(fieldValue=handleMissing(_this.executeSubSelectedArray({field:selection,array:fieldValue,enclosingRef,context}),resultName)):selection.selectionSet?fieldValue!=null&&(fieldValue=handleMissing(_this.executeSelectionSet({selectionSet:selection.selectionSet,objectOrReference:fieldValue,enclosingRef:isReference(fieldValue)?fieldValue:enclosingRef,context}),resultName)):context.canonizeResults&&(fieldValue=_this.canon.pass(fieldValue)),fieldValue!==void 0&&objectsToMerge.push((_b={},_b[resultName]=fieldValue,_b))}else{var fragment=getFragmentFromSelection(selection,context.lookupFragment);if(!fragment&&selection.kind===kinds.b.FRAGMENT_SPREAD)throw newInvariantError(10,selection.name.value);fragment&&policies.fragmentMatches(fragment,typename)&&fragment.selectionSet.selections.forEach(workSet.add,workSet)}});var result=mergeDeepArray(objectsToMerge),finalResult={result,missing},frozen=context.canonizeResults?this.canon.admit(finalResult):maybeDeepFreeze(finalResult);return frozen.result&&this.knownResults.set(frozen.result,selectionSet),frozen},StoreReader2.prototype.execSubSelectedArrayImpl=function(_a2){var _this=this,field=_a2.field,array=_a2.array,enclosingRef=_a2.enclosingRef,context=_a2.context,missing,missingMerger=new DeepMerger;function handleMissing(childResult,i){var _a3;return childResult.missing&&(missing=missingMerger.merge(missing,(_a3={},_a3[i]=childResult.missing,_a3))),childResult.result}return field.selectionSet&&(array=array.filter(context.store.canRead)),array=array.map(function(item,i){return item===null?null:isArray(item)?handleMissing(_this.executeSubSelectedArray({field,array:item,enclosingRef,context}),i):field.selectionSet?handleMissing(_this.executeSelectionSet({selectionSet:field.selectionSet,objectOrReference:item,enclosingRef:isReference(item)?item:enclosingRef,context}),i):(globalThis.__DEV__!==!1&&assertSelectionSetForIdValue(context.store,field,item),item)}),{result:context.canonizeResults?this.canon.admit(array):array,missing}},StoreReader2}();function firstMissing(tree){try{JSON.stringify(tree,function(_,value){if(typeof value=="string")throw value;return value})}catch(result){return result}}function assertSelectionSetForIdValue(store,field,fieldValue){if(!field.selectionSet){var workSet_1=new Set([fieldValue]);workSet_1.forEach(function(value){isNonNullObject(value)&&(invariantWrappers_invariant(!isReference(value),11,getTypenameFromStoreObject(store,value),field.name.value),Object.values(value).forEach(workSet_1.add,workSet_1))})}}var specifierInfoCache=Object.create(null);function lookupSpecifierInfo(spec){var cacheKey=JSON.stringify(spec);return specifierInfoCache[cacheKey]||(specifierInfoCache[cacheKey]=Object.create(null))}function keyFieldsFnFromSpecifier(specifier){var info=lookupSpecifierInfo(specifier);return info.keyFieldsFn||(info.keyFieldsFn=function(object,context){var extract=function(from2,key){return context.readField(key,from2)},keyObject=context.keyObject=collectSpecifierPaths(specifier,function(schemaKeyPath){var extracted=extractKeyPath(context.storeObject,schemaKeyPath,extract);return extracted===void 0&&object!==context.storeObject&&hasOwn.call(object,schemaKeyPath[0])&&(extracted=extractKeyPath(object,schemaKeyPath,extractKey)),invariantWrappers_invariant(extracted!==void 0,5,schemaKeyPath.join("."),object),extracted});return"".concat(context.typename,":").concat(JSON.stringify(keyObject))})}function keyArgsFnFromSpecifier(specifier){var info=lookupSpecifierInfo(specifier);return info.keyArgsFn||(info.keyArgsFn=function(args,_a2){var field=_a2.field,variables=_a2.variables,fieldName=_a2.fieldName,collected=collectSpecifierPaths(specifier,function(keyPath){var firstKey=keyPath[0],firstChar=firstKey.charAt(0);if(firstChar==="@"){if(field&&isNonEmptyArray(field.directives)){var directiveName_1=firstKey.slice(1),d=field.directives.find(function(d2){return d2.name.value===directiveName_1}),directiveArgs=d&&argumentsObjectFromField(d,variables);return directiveArgs&&extractKeyPath(directiveArgs,keyPath.slice(1))}return}if(firstChar==="$"){var variableName=firstKey.slice(1);if(variables&&hasOwn.call(variables,variableName)){var varKeyPath=keyPath.slice(0);return varKeyPath[0]=variableName,extractKeyPath(variables,varKeyPath)}return}if(args)return extractKeyPath(args,keyPath)}),suffix=JSON.stringify(collected);return(args||suffix!=="{}")&&(fieldName+=":"+suffix),fieldName})}function collectSpecifierPaths(specifier,extractor){var merger=new DeepMerger;return getSpecifierPaths(specifier).reduce(function(collected,path){var _a2,toMerge=extractor(path);if(toMerge!==void 0){for(var i=path.length-1;i>=0;--i)toMerge=(_a2={},_a2[path[i]]=toMerge,_a2);collected=merger.merge(collected,toMerge)}return collected},Object.create(null))}function getSpecifierPaths(spec){var info=lookupSpecifierInfo(spec);if(!info.paths){var paths_1=info.paths=[],currentPath_1=[];spec.forEach(function(s,i){isArray(s)?(getSpecifierPaths(s).forEach(function(p){return paths_1.push(currentPath_1.concat(p))}),currentPath_1.length=0):(currentPath_1.push(s),isArray(spec[i+1])||(paths_1.push(currentPath_1.slice(0)),currentPath_1.length=0))})}return info.paths}function extractKey(object,key){return object[key]}function extractKeyPath(object,path,extract){return extract=extract||extractKey,normalize(path.reduce(function reducer(obj,key){return isArray(obj)?obj.map(function(child){return reducer(child,key)}):obj&&extract(obj,key)},object))}function normalize(value){return isNonNullObject(value)?isArray(value)?value.map(normalize):collectSpecifierPaths(Object.keys(value).sort(),function(path){return extractKeyPath(value,path)}):value}function argsFromFieldSpecifier(spec){return spec.args!==void 0?spec.args:spec.field?argumentsObjectFromField(spec.field,spec.variables):null}var nullKeyFieldsFn=function(){},simpleKeyArgsFn=function(_args,context){return context.fieldName},mergeTrueFn=function(existing,incoming,_a2){var mergeObjects=_a2.mergeObjects;return mergeObjects(existing,incoming)},mergeFalseFn=function(_,incoming){return incoming},Policies=function(){function Policies2(config){this.config=config,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=tslib_es6_assign({dataIdFromObject:defaultDataIdFromObject},config),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),config.possibleTypes&&this.addPossibleTypes(config.possibleTypes),config.typePolicies&&this.addTypePolicies(config.typePolicies)}return Policies2.prototype.identify=function(object,partialContext){var _a2,policies=this,typename=partialContext&&(partialContext.typename||((_a2=partialContext.storeObject)===null||_a2===void 0?void 0:_a2.__typename))||object.__typename;if(typename===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];var storeObject=partialContext&&partialContext.storeObject||object,context=tslib_es6_assign(tslib_es6_assign({},partialContext),{typename,storeObject,readField:partialContext&&partialContext.readField||function(){var options=normalizeReadFieldOptions(arguments,storeObject);return policies.readField(options,{store:policies.cache.data,variables:options.variables})}}),id,policy=typename&&this.getTypePolicy(typename),keyFn=policy&&policy.keyFn||this.config.dataIdFromObject;return disableWarningsSlot.withValue(!0,function(){for(;keyFn;){var specifierOrId=keyFn(tslib_es6_assign(tslib_es6_assign({},object),storeObject),context);if(isArray(specifierOrId))keyFn=keyFieldsFnFromSpecifier(specifierOrId);else{id=specifierOrId;break}}}),id=id?String(id):void 0,context.keyObject?[id,context.keyObject]:[id]},Policies2.prototype.addTypePolicies=function(typePolicies){var _this=this;Object.keys(typePolicies).forEach(function(typename){var _a2=typePolicies[typename],queryType=_a2.queryType,mutationType=_a2.mutationType,subscriptionType=_a2.subscriptionType,incoming=__rest(_a2,["queryType","mutationType","subscriptionType"]);queryType&&_this.setRootTypename("Query",typename),mutationType&&_this.setRootTypename("Mutation",typename),subscriptionType&&_this.setRootTypename("Subscription",typename),hasOwn.call(_this.toBeAdded,typename)?_this.toBeAdded[typename].push(incoming):_this.toBeAdded[typename]=[incoming]})},Policies2.prototype.updateTypePolicy=function(typename,incoming){var _this=this,existing=this.getTypePolicy(typename),keyFields=incoming.keyFields,fields=incoming.fields;function setMerge(existing2,merge){existing2.merge=typeof merge=="function"?merge:merge===!0?mergeTrueFn:merge===!1?mergeFalseFn:existing2.merge}setMerge(existing,incoming.merge),existing.keyFn=keyFields===!1?nullKeyFieldsFn:isArray(keyFields)?keyFieldsFnFromSpecifier(keyFields):typeof keyFields=="function"?keyFields:existing.keyFn,fields&&Object.keys(fields).forEach(function(fieldName){var existing2=_this.getFieldPolicy(typename,fieldName,!0),incoming2=fields[fieldName];if(typeof incoming2=="function")existing2.read=incoming2;else{var keyArgs=incoming2.keyArgs,read=incoming2.read,merge=incoming2.merge;existing2.keyFn=keyArgs===!1?simpleKeyArgsFn:isArray(keyArgs)?keyArgsFnFromSpecifier(keyArgs):typeof keyArgs=="function"?keyArgs:existing2.keyFn,typeof read=="function"&&(existing2.read=read),setMerge(existing2,merge)}existing2.read&&existing2.merge&&(existing2.keyFn=existing2.keyFn||simpleKeyArgsFn)})},Policies2.prototype.setRootTypename=function(which,typename){typename===void 0&&(typename=which);var rootId="ROOT_"+which.toUpperCase(),old=this.rootTypenamesById[rootId];typename!==old&&(invariantWrappers_invariant(!old||old===which,6,which),old&&delete this.rootIdsByTypename[old],this.rootIdsByTypename[typename]=rootId,this.rootTypenamesById[rootId]=typename)},Policies2.prototype.addPossibleTypes=function(possibleTypes){var _this=this;this.usingPossibleTypes=!0,Object.keys(possibleTypes).forEach(function(supertype){_this.getSupertypeSet(supertype,!0),possibleTypes[supertype].forEach(function(subtype){_this.getSupertypeSet(subtype,!0).add(supertype);var match=subtype.match(TypeOrFieldNameRegExp);(!match||match[0]!==subtype)&&_this.fuzzySubtypes.set(subtype,new RegExp(subtype))})})},Policies2.prototype.getTypePolicy=function(typename){var _this=this;if(!hasOwn.call(this.typePolicies,typename)){var policy_1=this.typePolicies[typename]=Object.create(null);policy_1.fields=Object.create(null);var supertypes_1=this.supertypeMap.get(typename);!supertypes_1&&this.fuzzySubtypes.size&&(supertypes_1=this.getSupertypeSet(typename,!0),this.fuzzySubtypes.forEach(function(regExp,fuzzy){if(regExp.test(typename)){var fuzzySupertypes=_this.supertypeMap.get(fuzzy);fuzzySupertypes&&fuzzySupertypes.forEach(function(supertype){return supertypes_1.add(supertype)})}})),supertypes_1&&supertypes_1.size&&supertypes_1.forEach(function(supertype){var _a2=_this.getTypePolicy(supertype),fields=_a2.fields,rest=__rest(_a2,["fields"]);Object.assign(policy_1,rest),Object.assign(policy_1.fields,fields)})}var inbox=this.toBeAdded[typename];return inbox&&inbox.length&&inbox.splice(0).forEach(function(policy){_this.updateTypePolicy(typename,policy)}),this.typePolicies[typename]},Policies2.prototype.getFieldPolicy=function(typename,fieldName,createIfMissing){if(typename){var fieldPolicies=this.getTypePolicy(typename).fields;return fieldPolicies[fieldName]||createIfMissing&&(fieldPolicies[fieldName]=Object.create(null))}},Policies2.prototype.getSupertypeSet=function(subtype,createIfMissing){var supertypeSet=this.supertypeMap.get(subtype);return!supertypeSet&&createIfMissing&&this.supertypeMap.set(subtype,supertypeSet=new Set),supertypeSet},Policies2.prototype.fragmentMatches=function(fragment,typename,result,variables){var _this=this;if(!fragment.typeCondition)return!0;if(!typename)return!1;var supertype=fragment.typeCondition.name.value;if(typename===supertype)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(supertype))for(var typenameSupertypeSet=this.getSupertypeSet(typename,!0),workQueue_1=[typenameSupertypeSet],maybeEnqueue_1=function(subtype){var supertypeSet2=_this.getSupertypeSet(subtype,!1);supertypeSet2&&supertypeSet2.size&&workQueue_1.indexOf(supertypeSet2)<0&&workQueue_1.push(supertypeSet2)},needToCheckFuzzySubtypes=!!(result&&this.fuzzySubtypes.size),checkingFuzzySubtypes=!1,i=0;i<workQueue_1.length;++i){var supertypeSet=workQueue_1[i];if(supertypeSet.has(supertype))return typenameSupertypeSet.has(supertype)||(checkingFuzzySubtypes&&globalThis.__DEV__!==!1&&invariantWrappers_invariant.warn(7,typename,supertype),typenameSupertypeSet.add(supertype)),!0;supertypeSet.forEach(maybeEnqueue_1),needToCheckFuzzySubtypes&&i===workQueue_1.length-1&&selectionSetMatchesResult(fragment.selectionSet,result,variables)&&(needToCheckFuzzySubtypes=!1,checkingFuzzySubtypes=!0,this.fuzzySubtypes.forEach(function(regExp,fuzzyString){var match=typename.match(regExp);match&&match[0]===typename&&maybeEnqueue_1(fuzzyString)}))}return!1},Policies2.prototype.hasKeyArgs=function(typename,fieldName){var policy=this.getFieldPolicy(typename,fieldName,!1);return!!(policy&&policy.keyFn)},Policies2.prototype.getStoreFieldName=function(fieldSpec){var typename=fieldSpec.typename,fieldName=fieldSpec.fieldName,policy=this.getFieldPolicy(typename,fieldName,!1),storeFieldName,keyFn=policy&&policy.keyFn;if(keyFn&&typename)for(var context={typename,fieldName,field:fieldSpec.field||null,variables:fieldSpec.variables},args=argsFromFieldSpecifier(fieldSpec);keyFn;){var specifierOrString=keyFn(args,context);if(isArray(specifierOrString))keyFn=keyArgsFnFromSpecifier(specifierOrString);else{storeFieldName=specifierOrString||fieldName;break}}return storeFieldName===void 0&&(storeFieldName=fieldSpec.field?storeKeyNameFromField(fieldSpec.field,fieldSpec.variables):getStoreKeyName(fieldName,argsFromFieldSpecifier(fieldSpec))),storeFieldName===!1?fieldName:fieldName===fieldNameFromStoreName(storeFieldName)?storeFieldName:fieldName+":"+storeFieldName},Policies2.prototype.readField=function(options,context){var objectOrReference=options.from;if(!!objectOrReference){var nameOrField=options.field||options.fieldName;if(!!nameOrField){if(options.typename===void 0){var typename=context.store.getFieldValue(objectOrReference,"__typename");typename&&(options.typename=typename)}var storeFieldName=this.getStoreFieldName(options),fieldName=fieldNameFromStoreName(storeFieldName),existing=context.store.getFieldValue(objectOrReference,storeFieldName),policy=this.getFieldPolicy(options.typename,fieldName,!1),read=policy&&policy.read;if(read){var readOptions=makeFieldFunctionOptions(this,objectOrReference,options,context,context.store.getStorage(isReference(objectOrReference)?objectOrReference.__ref:objectOrReference,storeFieldName));return cacheSlot.withValue(this.cache,read,[existing,readOptions])}return existing}}},Policies2.prototype.getReadFunction=function(typename,fieldName){var policy=this.getFieldPolicy(typename,fieldName,!1);return policy&&policy.read},Policies2.prototype.getMergeFunction=function(parentTypename,fieldName,childTypename){var policy=this.getFieldPolicy(parentTypename,fieldName,!1),merge=policy&&policy.merge;return!merge&&childTypename&&(policy=this.getTypePolicy(childTypename),merge=policy&&policy.merge),merge},Policies2.prototype.runMergeFunction=function(existing,incoming,_a2,context,storage){var field=_a2.field,typename=_a2.typename,merge=_a2.merge;return merge===mergeTrueFn?makeMergeObjectsFunction(context.store)(existing,incoming):merge===mergeFalseFn?incoming:(context.overwrite&&(existing=void 0),merge(existing,incoming,makeFieldFunctionOptions(this,void 0,{typename,fieldName:field.name.value,field,variables:context.variables},context,storage||Object.create(null))))},Policies2}();function makeFieldFunctionOptions(policies,objectOrReference,fieldSpec,context,storage){var storeFieldName=policies.getStoreFieldName(fieldSpec),fieldName=fieldNameFromStoreName(storeFieldName),variables=fieldSpec.variables||context.variables,_a2=context.store,toReference=_a2.toReference,canRead=_a2.canRead;return{args:argsFromFieldSpecifier(fieldSpec),field:fieldSpec.field||null,fieldName,storeFieldName,variables,isReference,toReference,storage,cache:policies.cache,canRead,readField:function(){return policies.readField(normalizeReadFieldOptions(arguments,objectOrReference,variables),context)},mergeObjects:makeMergeObjectsFunction(context.store)}}function normalizeReadFieldOptions(readFieldArgs,objectOrReference,variables){var fieldNameOrOptions=readFieldArgs[0],from2=readFieldArgs[1],argc=readFieldArgs.length,options;return typeof fieldNameOrOptions=="string"?options={fieldName:fieldNameOrOptions,from:argc>1?from2:objectOrReference}:(options=tslib_es6_assign({},fieldNameOrOptions),hasOwn.call(options,"from")||(options.from=objectOrReference)),globalThis.__DEV__!==!1&&options.from===void 0&&globalThis.__DEV__!==!1&&invariantWrappers_invariant.warn(8,stringifyForDisplay(Array.from(readFieldArgs))),options.variables===void 0&&(options.variables=variables),options}function makeMergeObjectsFunction(store){return function(existing,incoming){if(isArray(existing)||isArray(incoming))throw newInvariantError(9);if(isNonNullObject(existing)&&isNonNullObject(incoming)){var eType=store.getFieldValue(existing,"__typename"),iType=store.getFieldValue(incoming,"__typename"),typesDiffer=eType&&iType&&eType!==iType;if(typesDiffer)return incoming;if(isReference(existing)&&storeValueIsStoreObject(incoming))return store.merge(existing.__ref,incoming),existing;if(storeValueIsStoreObject(existing)&&isReference(incoming))return store.merge(existing,incoming.__ref),incoming;if(storeValueIsStoreObject(existing)&&storeValueIsStoreObject(incoming))return tslib_es6_assign(tslib_es6_assign({},existing),incoming)}return incoming}}function getContextFlavor(context,clientOnly,deferred){var key="".concat(clientOnly).concat(deferred),flavored=context.flavors.get(key);return flavored||context.flavors.set(key,flavored=context.clientOnly===clientOnly&&context.deferred===deferred?context:tslib_es6_assign(tslib_es6_assign({},context),{clientOnly,deferred})),flavored}var StoreWriter=function(){function StoreWriter2(cache2,reader,fragments){this.cache=cache2,this.reader=reader,this.fragments=fragments}return StoreWriter2.prototype.writeToStore=function(store,_a2){var _this=this,query=_a2.query,result=_a2.result,dataId=_a2.dataId,variables=_a2.variables,overwrite=_a2.overwrite,operationDefinition=getOperationDefinition(query),merger=makeProcessedFieldsMerger();variables=tslib_es6_assign(tslib_es6_assign({},getDefaultValues(operationDefinition)),variables);var context=tslib_es6_assign(tslib_es6_assign({store,written:Object.create(null),merge:function(existing,incoming){return merger.merge(existing,incoming)},variables,varString:canonicalStringify(variables)},extractFragmentContext(query,this.fragments)),{overwrite:!!overwrite,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),ref=this.processSelectionSet({result:result||Object.create(null),dataId,selectionSet:operationDefinition.selectionSet,mergeTree:{map:new Map},context});if(!isReference(ref))throw newInvariantError(12,result);return context.incomingById.forEach(function(_a3,dataId2){var storeObject=_a3.storeObject,mergeTree=_a3.mergeTree,fieldNodeSet=_a3.fieldNodeSet,entityRef=makeReference(dataId2);if(mergeTree&&mergeTree.map.size){var applied=_this.applyMerges(mergeTree,entityRef,storeObject,context);if(isReference(applied))return;storeObject=applied}if(globalThis.__DEV__!==!1&&!context.overwrite){var fieldsWithSelectionSets_1=Object.create(null);fieldNodeSet.forEach(function(field){field.selectionSet&&(fieldsWithSelectionSets_1[field.name.value]=!0)});var hasSelectionSet_1=function(storeFieldName){return fieldsWithSelectionSets_1[fieldNameFromStoreName(storeFieldName)]===!0},hasMergeFunction_1=function(storeFieldName){var childTree=mergeTree&&mergeTree.map.get(storeFieldName);return Boolean(childTree&&childTree.info&&childTree.info.merge)};Object.keys(storeObject).forEach(function(storeFieldName){hasSelectionSet_1(storeFieldName)&&!hasMergeFunction_1(storeFieldName)&&warnAboutDataLoss(entityRef,storeObject,storeFieldName,context.store)})}store.merge(dataId2,storeObject)}),store.retain(ref.__ref),ref},StoreWriter2.prototype.processSelectionSet=function(_a2){var _this=this,dataId=_a2.dataId,result=_a2.result,selectionSet=_a2.selectionSet,context=_a2.context,mergeTree=_a2.mergeTree,policies=this.cache.policies,incoming=Object.create(null),typename=dataId&&policies.rootTypenamesById[dataId]||getTypenameFromResult(result,selectionSet,context.fragmentMap)||dataId&&context.store.get(dataId,"__typename");typeof typename=="string"&&(incoming.__typename=typename);var readField=function(){var options=normalizeReadFieldOptions(arguments,incoming,context.variables);if(isReference(options.from)){var info=context.incomingById.get(options.from.__ref);if(info){var result_1=policies.readField(tslib_es6_assign(tslib_es6_assign({},options),{from:info.storeObject}),context);if(result_1!==void 0)return result_1}}return policies.readField(options,context)},fieldNodeSet=new Set;this.flattenFields(selectionSet,result,context,typename).forEach(function(context2,field){var _a3,resultFieldKey=resultKeyNameFromField(field),value=result[resultFieldKey];if(fieldNodeSet.add(field),value!==void 0){var storeFieldName=policies.getStoreFieldName({typename,fieldName:field.name.value,field,variables:context2.variables}),childTree=getChildMergeTree(mergeTree,storeFieldName),incomingValue=_this.processFieldValue(value,field,field.selectionSet?getContextFlavor(context2,!1,!1):context2,childTree),childTypename=void 0;field.selectionSet&&(isReference(incomingValue)||storeValueIsStoreObject(incomingValue))&&(childTypename=readField("__typename",incomingValue));var merge=policies.getMergeFunction(typename,field.name.value,childTypename);merge?childTree.info={field,typename,merge}:maybeRecycleChildMergeTree(mergeTree,storeFieldName),incoming=context2.merge(incoming,(_a3={},_a3[storeFieldName]=incomingValue,_a3))}else globalThis.__DEV__!==!1&&!context2.clientOnly&&!context2.deferred&&!addTypenameToDocument.added(field)&&!policies.getReadFunction(typename,field.name.value)&&globalThis.__DEV__!==!1&&invariantWrappers_invariant.error(13,resultKeyNameFromField(field),result)});try{var _b=policies.identify(result,{typename,selectionSet,fragmentMap:context.fragmentMap,storeObject:incoming,readField}),id=_b[0],keyObject=_b[1];dataId=dataId||id,keyObject&&(incoming=context.merge(incoming,keyObject))}catch(e){if(!dataId)throw e}if(typeof dataId=="string"){var dataRef=makeReference(dataId),sets=context.written[dataId]||(context.written[dataId]=[]);if(sets.indexOf(selectionSet)>=0||(sets.push(selectionSet),this.reader&&this.reader.isFresh(result,dataRef,selectionSet,context)))return dataRef;var previous_1=context.incomingById.get(dataId);return previous_1?(previous_1.storeObject=context.merge(previous_1.storeObject,incoming),previous_1.mergeTree=mergeMergeTrees(previous_1.mergeTree,mergeTree),fieldNodeSet.forEach(function(field){return previous_1.fieldNodeSet.add(field)})):context.incomingById.set(dataId,{storeObject:incoming,mergeTree:mergeTreeIsEmpty(mergeTree)?void 0:mergeTree,fieldNodeSet}),dataRef}return incoming},StoreWriter2.prototype.processFieldValue=function(value,field,context,mergeTree){var _this=this;return!field.selectionSet||value===null?globalThis.__DEV__!==!1?cloneDeep(value):value:isArray(value)?value.map(function(item,i){var value2=_this.processFieldValue(item,field,context,getChildMergeTree(mergeTree,i));return maybeRecycleChildMergeTree(mergeTree,i),value2}):this.processSelectionSet({result:value,selectionSet:field.selectionSet,context,mergeTree})},StoreWriter2.prototype.flattenFields=function(selectionSet,result,context,typename){typename===void 0&&(typename=getTypenameFromResult(result,selectionSet,context.fragmentMap));var fieldMap=new Map,policies=this.cache.policies,limitingTrie=new Trie(!1);return function flatten(selectionSet2,inheritedContext){var visitedNode=limitingTrie.lookup(selectionSet2,inheritedContext.clientOnly,inheritedContext.deferred);visitedNode.visited||(visitedNode.visited=!0,selectionSet2.selections.forEach(function(selection){if(!!shouldInclude(selection,context.variables)){var clientOnly=inheritedContext.clientOnly,deferred=inheritedContext.deferred;if(!(clientOnly&&deferred)&&isNonEmptyArray(selection.directives)&&selection.directives.forEach(function(dir){var name=dir.name.value;if(name==="client"&&(clientOnly=!0),name==="defer"){var args=argumentsObjectFromField(dir,context.variables);(!args||args.if!==!1)&&(deferred=!0)}}),storeUtils_isField(selection)){var existing=fieldMap.get(selection);existing&&(clientOnly=clientOnly&&existing.clientOnly,deferred=deferred&&existing.deferred),fieldMap.set(selection,getContextFlavor(context,clientOnly,deferred))}else{var fragment=getFragmentFromSelection(selection,context.lookupFragment);if(!fragment&&selection.kind===kinds.b.FRAGMENT_SPREAD)throw newInvariantError(14,selection.name.value);fragment&&policies.fragmentMatches(fragment,typename,result,context.variables)&&flatten(fragment.selectionSet,getContextFlavor(context,clientOnly,deferred))}}}))}(selectionSet,context),fieldMap},StoreWriter2.prototype.applyMerges=function(mergeTree,existing,incoming,context,getStorageArgs){var _a2,_this=this;if(mergeTree.map.size&&!isReference(incoming)){var e_1=!isArray(incoming)&&(isReference(existing)||storeValueIsStoreObject(existing))?existing:void 0,i_1=incoming;e_1&&!getStorageArgs&&(getStorageArgs=[isReference(e_1)?e_1.__ref:e_1]);var changedFields_1,getValue_1=function(from2,name){return isArray(from2)?typeof name=="number"?from2[name]:void 0:context.store.getFieldValue(from2,String(name))};mergeTree.map.forEach(function(childTree,storeFieldName){var eVal=getValue_1(e_1,storeFieldName),iVal=getValue_1(i_1,storeFieldName);if(iVal!==void 0){getStorageArgs&&getStorageArgs.push(storeFieldName);var aVal=_this.applyMerges(childTree,eVal,iVal,context,getStorageArgs);aVal!==iVal&&(changedFields_1=changedFields_1||new Map,changedFields_1.set(storeFieldName,aVal)),getStorageArgs&&invariantWrappers_invariant(getStorageArgs.pop()===storeFieldName)}}),changedFields_1&&(incoming=isArray(i_1)?i_1.slice(0):tslib_es6_assign({},i_1),changedFields_1.forEach(function(value,name){incoming[name]=value}))}return mergeTree.info?this.cache.policies.runMergeFunction(existing,incoming,mergeTree.info,context,getStorageArgs&&(_a2=context.store).getStorage.apply(_a2,getStorageArgs)):incoming},StoreWriter2}(),emptyMergeTreePool=[];function getChildMergeTree(_a2,name){var map=_a2.map;return map.has(name)||map.set(name,emptyMergeTreePool.pop()||{map:new Map}),map.get(name)}function mergeMergeTrees(left,right){if(left===right||!right||mergeTreeIsEmpty(right))return left;if(!left||mergeTreeIsEmpty(left))return right;var info=left.info&&right.info?tslib_es6_assign(tslib_es6_assign({},left.info),right.info):left.info||right.info,needToMergeMaps=left.map.size&&right.map.size,map=needToMergeMaps?new Map:left.map.size?left.map:right.map,merged={info,map};if(needToMergeMaps){var remainingRightKeys_1=new Set(right.map.keys());left.map.forEach(function(leftTree,key){merged.map.set(key,mergeMergeTrees(leftTree,right.map.get(key))),remainingRightKeys_1.delete(key)}),remainingRightKeys_1.forEach(function(key){merged.map.set(key,mergeMergeTrees(right.map.get(key),left.map.get(key)))})}return merged}function mergeTreeIsEmpty(tree){return!tree||!(tree.info||tree.map.size)}function maybeRecycleChildMergeTree(_a2,name){var map=_a2.map,childTree=map.get(name);childTree&&mergeTreeIsEmpty(childTree)&&(emptyMergeTreePool.push(childTree),map.delete(name))}var warnings=new Set;function warnAboutDataLoss(existingRef,incomingObj,storeFieldName,store){var getChild=function(objOrRef){var child=store.getFieldValue(objOrRef,storeFieldName);return typeof child=="object"&&child},existing=getChild(existingRef);if(!!existing){var incoming=getChild(incomingObj);if(!!incoming&&!isReference(existing)&&!equal(existing,incoming)&&!Object.keys(existing).every(function(key){return store.getFieldValue(incoming,key)!==void 0})){var parentType=store.getFieldValue(existingRef,"__typename")||store.getFieldValue(incomingObj,"__typename"),fieldName=fieldNameFromStoreName(storeFieldName),typeDotName="".concat(parentType,".").concat(fieldName);if(!warnings.has(typeDotName)){warnings.add(typeDotName);var childTypenames=[];!isArray(existing)&&!isArray(incoming)&&[existing,incoming].forEach(function(child){var typename=store.getFieldValue(child,"__typename");typeof typename=="string"&&!childTypenames.includes(typename)&&childTypenames.push(typename)}),globalThis.__DEV__!==!1&&invariantWrappers_invariant.warn(15,fieldName,parentType,childTypenames.length?"either ensure all objects of type "+childTypenames.join(" and ")+" have an ID or a custom merge function, or ":"",typeDotName,tslib_es6_assign({},existing),tslib_es6_assign({},incoming))}}}}var InMemoryCache=function(_super){__extends(InMemoryCache2,_super);function InMemoryCache2(config){config===void 0&&(config={});var _this=_super.call(this)||this;return _this.watches=new Set,_this.addTypenameTransform=new DocumentTransform(addTypenameToDocument),_this.assumeImmutableResults=!0,_this.makeVar=makeVar,_this.txCount=0,_this.config=normalizeConfig(config),_this.addTypename=!!_this.config.addTypename,_this.policies=new Policies({cache:_this,dataIdFromObject:_this.config.dataIdFromObject,possibleTypes:_this.config.possibleTypes,typePolicies:_this.config.typePolicies}),_this.init(),_this}return InMemoryCache2.prototype.init=function(){var rootStore=this.data=new EntityStore.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=rootStore.stump,this.resetResultCache()},InMemoryCache2.prototype.resetResultCache=function(resetResultIdentities){var _this=this,previousReader=this.storeReader,fragments=this.config.fragments;this.storeWriter=new StoreWriter(this,this.storeReader=new StoreReader({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:shouldCanonizeResults(this.config),canon:resetResultIdentities?void 0:previousReader&&previousReader.canon,fragments}),fragments),this.maybeBroadcastWatch=lib_wrap(function(c,options){return _this.broadcastWatch(c,options)},{max:this.config.resultCacheMaxSize||cacheSizes["inMemoryCache.maybeBroadcastWatch"]||5e3,makeCacheKey:function(c){var store=c.optimistic?_this.optimisticData:_this.data;if(supportsResultCaching(store)){var optimistic=c.optimistic,id=c.id,variables=c.variables;return store.makeCacheKey(c.query,c.callback,canonicalStringify({optimistic,id,variables}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach(function(group){return group.resetCaching()})},InMemoryCache2.prototype.restore=function(data){return this.init(),data&&this.data.replace(data),this},InMemoryCache2.prototype.extract=function(optimistic){return optimistic===void 0&&(optimistic=!1),(optimistic?this.optimisticData:this.data).extract()},InMemoryCache2.prototype.read=function(options){var _a2=options.returnPartialData,returnPartialData=_a2===void 0?!1:_a2;try{return this.storeReader.diffQueryAgainstStore(tslib_es6_assign(tslib_es6_assign({},options),{store:options.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData})).result||null}catch(e){if(e instanceof MissingFieldError)return null;throw e}},InMemoryCache2.prototype.write=function(options){try{return++this.txCount,this.storeWriter.writeToStore(this.data,options)}finally{!--this.txCount&&options.broadcast!==!1&&this.broadcastWatches()}},InMemoryCache2.prototype.modify=function(options){if(hasOwn.call(options,"id")&&!options.id)return!1;var store=options.optimistic?this.optimisticData:this.data;try{return++this.txCount,store.modify(options.id||"ROOT_QUERY",options.fields)}finally{!--this.txCount&&options.broadcast!==!1&&this.broadcastWatches()}},InMemoryCache2.prototype.diff=function(options){return this.storeReader.diffQueryAgainstStore(tslib_es6_assign(tslib_es6_assign({},options),{store:options.optimistic?this.optimisticData:this.data,rootId:options.id||"ROOT_QUERY",config:this.config}))},InMemoryCache2.prototype.watch=function(watch){var _this=this;return this.watches.size||recallCache(this),this.watches.add(watch),watch.immediate&&this.maybeBroadcastWatch(watch),function(){_this.watches.delete(watch)&&!_this.watches.size&&forgetCache(_this),_this.maybeBroadcastWatch.forget(watch)}},InMemoryCache2.prototype.gc=function(options){var _a2;canonicalStringify.reset(),print.reset(),this.addTypenameTransform.resetCache(),(_a2=this.config.fragments)===null||_a2===void 0||_a2.resetCaches();var ids=this.optimisticData.gc();return options&&!this.txCount&&(options.resetResultCache?this.resetResultCache(options.resetResultIdentities):options.resetResultIdentities&&this.storeReader.resetCanon()),ids},InMemoryCache2.prototype.retain=function(rootId,optimistic){return(optimistic?this.optimisticData:this.data).retain(rootId)},InMemoryCache2.prototype.release=function(rootId,optimistic){return(optimistic?this.optimisticData:this.data).release(rootId)},InMemoryCache2.prototype.identify=function(object){if(isReference(object))return object.__ref;try{return this.policies.identify(object)[0]}catch(e){globalThis.__DEV__!==!1&&invariantWrappers_invariant.warn(e)}},InMemoryCache2.prototype.evict=function(options){if(!options.id){if(hasOwn.call(options,"id"))return!1;options=tslib_es6_assign(tslib_es6_assign({},options),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(options,this.data)}finally{!--this.txCount&&options.broadcast!==!1&&this.broadcastWatches()}},InMemoryCache2.prototype.reset=function(options){var _this=this;return this.init(),canonicalStringify.reset(),options&&options.discardWatches?(this.watches.forEach(function(watch){return _this.maybeBroadcastWatch.forget(watch)}),this.watches.clear(),forgetCache(this)):this.broadcastWatches(),Promise.resolve()},InMemoryCache2.prototype.removeOptimistic=function(idToRemove){var newOptimisticData=this.optimisticData.removeLayer(idToRemove);newOptimisticData!==this.optimisticData&&(this.optimisticData=newOptimisticData,this.broadcastWatches())},InMemoryCache2.prototype.batch=function(options){var _this=this,update=options.update,_a2=options.optimistic,optimistic=_a2===void 0?!0:_a2,removeOptimistic=options.removeOptimistic,onWatchUpdated=options.onWatchUpdated,updateResult,perform=function(layer){var _a3=_this,data=_a3.data,optimisticData=_a3.optimisticData;++_this.txCount,layer&&(_this.data=_this.optimisticData=layer);try{return updateResult=update(_this)}finally{--_this.txCount,_this.data=data,_this.optimisticData=optimisticData}},alreadyDirty=new Set;return onWatchUpdated&&!this.txCount&&this.broadcastWatches(tslib_es6_assign(tslib_es6_assign({},options),{onWatchUpdated:function(watch){return alreadyDirty.add(watch),!1}})),typeof optimistic=="string"?this.optimisticData=this.optimisticData.addLayer(optimistic,perform):optimistic===!1?perform(this.data):perform(),typeof removeOptimistic=="string"&&(this.optimisticData=this.optimisticData.removeLayer(removeOptimistic)),onWatchUpdated&&alreadyDirty.size?(this.broadcastWatches(tslib_es6_assign(tslib_es6_assign({},options),{onWatchUpdated:function(watch,diff){var result=onWatchUpdated.call(this,watch,diff);return result!==!1&&alreadyDirty.delete(watch),result}})),alreadyDirty.size&&alreadyDirty.forEach(function(watch){return _this.maybeBroadcastWatch.dirty(watch)})):this.broadcastWatches(options),updateResult},InMemoryCache2.prototype.performTransaction=function(update,optimisticId){return this.batch({update,optimistic:optimisticId||optimisticId!==null})},InMemoryCache2.prototype.transformDocument=function(document2){return this.addTypenameToDocument(this.addFragmentsToDocument(document2))},InMemoryCache2.prototype.fragmentMatches=function(fragment,typename){return this.policies.fragmentMatches(fragment,typename)},InMemoryCache2.prototype.lookupFragment=function(fragmentName){var _a2;return((_a2=this.config.fragments)===null||_a2===void 0?void 0:_a2.lookup(fragmentName))||null},InMemoryCache2.prototype.broadcastWatches=function(options){var _this=this;this.txCount||this.watches.forEach(function(c){return _this.maybeBroadcastWatch(c,options)})},InMemoryCache2.prototype.addFragmentsToDocument=function(document2){var fragments=this.config.fragments;return fragments?fragments.transform(document2):document2},InMemoryCache2.prototype.addTypenameToDocument=function(document2){return this.addTypename?this.addTypenameTransform.transformDocument(document2):document2},InMemoryCache2.prototype.broadcastWatch=function(c,options){var lastDiff=c.lastDiff,diff=this.diff(c);options&&(c.optimistic&&typeof options.optimistic=="string"&&(diff.fromOptimisticTransaction=!0),options.onWatchUpdated&&options.onWatchUpdated.call(this,c,diff,lastDiff)===!1)||(!lastDiff||!equal(lastDiff.result,diff.result))&&c.callback(c.lastDiff=diff,lastDiff)},InMemoryCache2}(ApolloCache);globalThis.__DEV__!==!1&&(InMemoryCache.prototype.getMemoryInternals=getInMemoryCacheMemoryInternals);var empty=ApolloLink.empty,from=ApolloLink.from,split=ApolloLink.split,concat=ApolloLink.concat,createSignalIfSupported=function(){if(typeof AbortController>"u")return{controller:!1,signal:!1};var controller=new AbortController,signal=controller.signal;return{controller,signal}};function toPromise(observable){var completed=!1;return new Promise(function(resolve,reject){observable.subscribe({next:function(data){completed?globalThis.__DEV__!==!1&&invariantWrappers_invariant.warn(45):(completed=!0,resolve(data))},error:reject})})}function fromPromise(promise){return new Observable(function(observer){promise.then(function(value){observer.next(value),observer.complete()}).catch(observer.error.bind(observer))})}var parser=__webpack_require__(82457),docCache=new Map,fragmentSourceMap=new Map,printFragmentWarnings=!0,experimentalFragmentVariables=!1;function lib_normalize(string){return string.replace(/[\s,]+/g," ").trim()}function cacheKeyFromLoc(loc){return lib_normalize(loc.source.body.substring(loc.start,loc.end))}function processFragments(ast){var seenKeys=new Set,definitions=[];return ast.definitions.forEach(function(fragmentDefinition){if(fragmentDefinition.kind==="FragmentDefinition"){var fragmentName=fragmentDefinition.name.value,sourceKey=cacheKeyFromLoc(fragmentDefinition.loc),sourceKeySet=fragmentSourceMap.get(fragmentName);sourceKeySet&&!sourceKeySet.has(sourceKey)?printFragmentWarnings&&console.warn("Warning: fragment with name "+fragmentName+` already exists.
748
748
  graphql-tag enforces all fragment names across your application to be unique; read more about
749
- this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):sourceKeySet||fragmentSourceMap.set(fragmentName,sourceKeySet=new Set),sourceKeySet.add(sourceKey),seenKeys.has(sourceKey)||(seenKeys.add(sourceKey),definitions.push(fragmentDefinition))}else definitions.push(fragmentDefinition)}),tslib_es6_assign(tslib_es6_assign({},ast),{definitions})}function stripLoc(doc){var workSet=new Set(doc.definitions);workSet.forEach(function(node){node.loc&&delete node.loc,Object.keys(node).forEach(function(key){var value=node[key];value&&typeof value=="object"&&workSet.add(value)})});var loc=doc.loc;return loc&&(delete loc.startToken,delete loc.endToken),doc}function parseDocument(source){var cacheKey=lib_normalize(source);if(!docCache.has(cacheKey)){var parsed=(0,parser.parse)(source,{experimentalFragmentVariables,allowLegacyFragmentVariables:experimentalFragmentVariables});if(!parsed||parsed.kind!=="Document")throw new Error("Not a valid GraphQL document.");docCache.set(cacheKey,stripLoc(processFragments(parsed)))}return docCache.get(cacheKey)}function gql(literals){for(var args=[],_i=1;_i<arguments.length;_i++)args[_i-1]=arguments[_i];typeof literals=="string"&&(literals=[literals]);var result=literals[0];return args.forEach(function(arg,i){arg&&arg.kind==="Document"?result+=arg.loc.source.body:result+=arg,result+=literals[i+1]}),parseDocument(result)}function resetCaches(){docCache.clear(),fragmentSourceMap.clear()}function disableFragmentWarnings(){printFragmentWarnings=!1}function enableExperimentalFragmentVariables(){experimentalFragmentVariables=!0}function disableExperimentalFragmentVariables(){experimentalFragmentVariables=!1}var extras={gql,resetCaches,disableFragmentWarnings,enableExperimentalFragmentVariables,disableExperimentalFragmentVariables};(function(gql_1){gql_1.gql=extras.gql,gql_1.resetCaches=extras.resetCaches,gql_1.disableFragmentWarnings=extras.disableFragmentWarnings,gql_1.enableExperimentalFragmentVariables=extras.enableExperimentalFragmentVariables,gql_1.disableExperimentalFragmentVariables=extras.disableExperimentalFragmentVariables})(gql||(gql={})),gql.default=gql;const graphql_tag_lib=null;setVerbosity(globalThis.__DEV__!==!1?"log":"silent");var rehackt=__webpack_require__(89515),rehackt_namespaceObject=__webpack_require__.t(rehackt,2),contextKey=canUseSymbol?Symbol.for("__APOLLO_CONTEXT__"):"__APOLLO_CONTEXT__";function getApolloContext(){invariantWrappers_invariant("createContext"in rehackt_namespaceObject,54);var context=rehackt.createContext[contextKey];return context||(Object.defineProperty(rehackt.createContext,contextKey,{value:context=rehackt.createContext({}),enumerable:!1,writable:!1,configurable:!0}),context.displayName="ApolloContext"),context}var resetApolloContext=getApolloContext,ApolloProvider=function(_a2){var client=_a2.client,children=_a2.children,ApolloContext=getApolloContext(),parentContext=rehackt.useContext(ApolloContext),context=rehackt.useMemo(function(){return tslib_es6_assign(tslib_es6_assign({},parentContext),{client:client||parentContext.client})},[parentContext,client]);return invariantWrappers_invariant(context.client,55),rehackt.createElement(ApolloContext.Provider,{value:context},children)},ApolloConsumer=function(props){var ApolloContext=getApolloContext();return rehackt.createElement(ApolloContext.Consumer,null,function(context){return invariantWrappers_invariant(context&&context.client,53),props.children(context.client)})};function useApolloClient(override){var context=rehackt.useContext(getApolloContext()),client=override||context.client;return invariantWrappers_invariant(!!client,58),client}var didWarnUncachedGetSnapshot=!1,uSESKey="useSyncExternalStore",realHook=rehackt_namespaceObject[uSESKey],useSyncExternalStore=realHook||function(subscribe,getSnapshot,getServerSnapshot){var value=getSnapshot();globalThis.__DEV__!==!1&&!didWarnUncachedGetSnapshot&&value!==getSnapshot()&&(didWarnUncachedGetSnapshot=!0,globalThis.__DEV__!==!1&&invariantWrappers_invariant.error(68));var _a2=rehackt.useState({inst:{value,getSnapshot}}),inst=_a2[0].inst,forceUpdate=_a2[1];return canUseLayoutEffect?rehackt.useLayoutEffect(function(){Object.assign(inst,{value,getSnapshot}),checkIfSnapshotChanged(inst)&&forceUpdate({inst})},[subscribe,value,getSnapshot]):Object.assign(inst,{value,getSnapshot}),rehackt.useEffect(function(){return checkIfSnapshotChanged(inst)&&forceUpdate({inst}),subscribe(function(){checkIfSnapshotChanged(inst)&&forceUpdate({inst})})},[subscribe]),value};function checkIfSnapshotChanged(_a2){var value=_a2.value,getSnapshot=_a2.getSnapshot;try{return value!==getSnapshot()}catch{return!0}}var DocumentType;(function(DocumentType2){DocumentType2[DocumentType2.Query=0]="Query",DocumentType2[DocumentType2.Mutation=1]="Mutation",DocumentType2[DocumentType2.Subscription=2]="Subscription"})(DocumentType||(DocumentType={}));var cache;function operationName(type){var name;switch(type){case DocumentType.Query:name="Query";break;case DocumentType.Mutation:name="Mutation";break;case DocumentType.Subscription:name="Subscription";break}return name}function parser_parser(document2){cache||(cache=new AutoCleanedWeakCache(cacheSizes.parser||1e3));var cached=cache.get(document2);if(cached)return cached;var variables,type,name;invariantWrappers_invariant(!!document2&&!!document2.kind,70,document2);for(var fragments=[],queries=[],mutations=[],subscriptions=[],_i=0,_a2=document2.definitions;_i<_a2.length;_i++){var x=_a2[_i];if(x.kind==="FragmentDefinition"){fragments.push(x);continue}if(x.kind==="OperationDefinition")switch(x.operation){case"query":queries.push(x);break;case"mutation":mutations.push(x);break;case"subscription":subscriptions.push(x);break}}invariantWrappers_invariant(!fragments.length||queries.length||mutations.length||subscriptions.length,71),invariantWrappers_invariant(queries.length+mutations.length+subscriptions.length<=1,72,document2,queries.length,subscriptions.length,mutations.length),type=queries.length?DocumentType.Query:DocumentType.Mutation,!queries.length&&!mutations.length&&(type=DocumentType.Subscription);var definitions=queries.length?queries:mutations.length?mutations:subscriptions;invariantWrappers_invariant(definitions.length===1,73,document2,definitions.length);var definition=definitions[0];variables=definition.variableDefinitions||[],definition.name&&definition.name.kind==="Name"?name=definition.name.value:name="data";var payload={name,type,variables};return cache.set(document2,payload),payload}parser_parser.resetCache=function(){cache=void 0},globalThis.__DEV__!==!1&&registerGlobalCache("parser",function(){return cache?cache.size:0});function verifyDocumentType(document2,type){var operation=parser_parser(document2),requiredOperationName=operationName(type),usedOperationName=operationName(operation.type);invariantWrappers_invariant(operation.type===type,74,requiredOperationName,requiredOperationName,usedOperationName)}var wrapperSymbol=Symbol.for("apollo.hook.wrappers");function wrapHook(hookName,useHook,clientOrObsQuery){var queryManager=clientOrObsQuery.queryManager,wrappers=queryManager&&queryManager[wrapperSymbol],wrapper=wrappers&&wrappers[hookName];return wrapper?wrapper(useHook):useHook}var useQuery_hasOwnProperty=Object.prototype.hasOwnProperty;function useQuery_noop(){}var lastWatchOptions=Symbol();function useQuery(query,options){return options===void 0&&(options=Object.create(null)),wrapHook("useQuery",_useQuery,useApolloClient(options&&options.client))(query,options)}function _useQuery(query,options){var _a2=useQueryInternals(query,options),result=_a2.result,obsQueryFields=_a2.obsQueryFields;return rehackt.useMemo(function(){return tslib_es6_assign(tslib_es6_assign({},result),obsQueryFields)},[result,obsQueryFields])}function useInternalState(client,query,options,renderPromises,makeWatchQueryOptions){function createInternalState(previous){var _a3;verifyDocumentType(query,DocumentType.Query);var internalState2={client,query,observable:renderPromises&&renderPromises.getSSRObservable(makeWatchQueryOptions())||client.watchQuery(getObsQueryOptions(void 0,client,options,makeWatchQueryOptions())),resultData:{previousData:(_a3=previous?.resultData.current)===null||_a3===void 0?void 0:_a3.data}};return internalState2}var _a2=rehackt.useState(createInternalState),internalState=_a2[0],updateInternalState=_a2[1];function onQueryExecuted(watchQueryOptions){var _a3,_b;Object.assign(internalState.observable,(_a3={},_a3[lastWatchOptions]=watchQueryOptions,_a3));var resultData=internalState.resultData;updateInternalState(tslib_es6_assign(tslib_es6_assign({},internalState),{query:watchQueryOptions.query,resultData:Object.assign(resultData,{previousData:((_b=resultData.current)===null||_b===void 0?void 0:_b.data)||resultData.previousData,current:void 0})}))}if(client!==internalState.client||query!==internalState.query){var newInternalState=createInternalState(internalState);return updateInternalState(newInternalState),[newInternalState,onQueryExecuted]}return[internalState,onQueryExecuted]}function useQueryInternals(query,options){var client=useApolloClient(options.client),renderPromises=rehackt.useContext(getApolloContext()).renderPromises,isSyncSSR=!!renderPromises,disableNetworkFetches=client.disableNetworkFetches,ssrAllowed=options.ssr!==!1&&!options.skip,partialRefetch=options.partialRefetch,makeWatchQueryOptions=createMakeWatchQueryOptions(client,query,options,isSyncSSR),_a2=useInternalState(client,query,options,renderPromises,makeWatchQueryOptions),_b=_a2[0],observable=_b.observable,resultData=_b.resultData,onQueryExecuted=_a2[1],watchQueryOptions=makeWatchQueryOptions(observable);useResubscribeIfNecessary(resultData,observable,client,options,watchQueryOptions);var obsQueryFields=rehackt.useMemo(function(){return bindObservableMethods(observable)},[observable]);useRegisterSSRObservable(observable,renderPromises,ssrAllowed);var result=useObservableSubscriptionResult(resultData,observable,client,options,watchQueryOptions,disableNetworkFetches,partialRefetch,isSyncSSR,{onCompleted:options.onCompleted||useQuery_noop,onError:options.onError||useQuery_noop});return{result,obsQueryFields,observable,resultData,client,onQueryExecuted}}function useObservableSubscriptionResult(resultData,observable,client,options,watchQueryOptions,disableNetworkFetches,partialRefetch,isSyncSSR,callbacks){var callbackRef=rehackt.useRef(callbacks);rehackt.useEffect(function(){callbackRef.current=callbacks});var resultOverride=(isSyncSSR||disableNetworkFetches)&&options.ssr===!1&&!options.skip?ssrDisabledResult:options.skip||watchQueryOptions.fetchPolicy==="standby"?skipStandbyResult:void 0,previousData=resultData.previousData,currentResultOverride=rehackt.useMemo(function(){return resultOverride&&toQueryResult(resultOverride,previousData,observable,client)},[client,observable,resultOverride,previousData]);return useSyncExternalStore(rehackt.useCallback(function(handleStoreChange){if(isSyncSSR)return function(){};var onNext=function(){var previousResult=resultData.current,result=observable.getCurrentResult();previousResult&&previousResult.loading===result.loading&&previousResult.networkStatus===result.networkStatus&&equal(previousResult.data,result.data)||setResult(result,resultData,observable,client,partialRefetch,handleStoreChange,callbackRef.current)},onError=function(error){if(subscription.current.unsubscribe(),subscription.current=observable.resubscribeAfterError(onNext,onError),!useQuery_hasOwnProperty.call(error,"graphQLErrors"))throw error;var previousResult=resultData.current;(!previousResult||previousResult&&previousResult.loading||!equal(error,previousResult.error))&&setResult({data:previousResult&&previousResult.data,error,loading:!1,networkStatus:NetworkStatus.error},resultData,observable,client,partialRefetch,handleStoreChange,callbackRef.current)},subscription={current:observable.subscribe(onNext,onError)};return function(){setTimeout(function(){return subscription.current.unsubscribe()})}},[disableNetworkFetches,isSyncSSR,observable,resultData,partialRefetch,client]),function(){return currentResultOverride||getCurrentResult(resultData,observable,callbackRef.current,partialRefetch,client)},function(){return currentResultOverride||getCurrentResult(resultData,observable,callbackRef.current,partialRefetch,client)})}function useRegisterSSRObservable(observable,renderPromises,ssrAllowed){renderPromises&&ssrAllowed&&(renderPromises.registerSSRObservable(observable),observable.getCurrentResult().loading&&renderPromises.addObservableQueryPromise(observable))}function useResubscribeIfNecessary(resultData,observable,client,options,watchQueryOptions){var _a2;observable[lastWatchOptions]&&!equal(observable[lastWatchOptions],watchQueryOptions)&&(observable.reobserve(getObsQueryOptions(observable,client,options,watchQueryOptions)),resultData.previousData=((_a2=resultData.current)===null||_a2===void 0?void 0:_a2.data)||resultData.previousData,resultData.current=void 0),observable[lastWatchOptions]=watchQueryOptions}function createMakeWatchQueryOptions(client,query,_a2,isSyncSSR){_a2===void 0&&(_a2={});var skip=_a2.skip,ssr=_a2.ssr,onCompleted=_a2.onCompleted,onError=_a2.onError,defaultOptions2=_a2.defaultOptions,otherOptions=__rest(_a2,["skip","ssr","onCompleted","onError","defaultOptions"]);return function(observable){var watchQueryOptions=Object.assign(otherOptions,{query});return isSyncSSR&&(watchQueryOptions.fetchPolicy==="network-only"||watchQueryOptions.fetchPolicy==="cache-and-network")&&(watchQueryOptions.fetchPolicy="cache-first"),watchQueryOptions.variables||(watchQueryOptions.variables={}),skip?(watchQueryOptions.initialFetchPolicy=watchQueryOptions.initialFetchPolicy||watchQueryOptions.fetchPolicy||getDefaultFetchPolicy(defaultOptions2,client.defaultOptions),watchQueryOptions.fetchPolicy="standby"):watchQueryOptions.fetchPolicy||(watchQueryOptions.fetchPolicy=observable?.options.initialFetchPolicy||getDefaultFetchPolicy(defaultOptions2,client.defaultOptions)),watchQueryOptions}}function getObsQueryOptions(observable,client,queryHookOptions,watchQueryOptions){var toMerge=[],globalDefaults=client.defaultOptions.watchQuery;return globalDefaults&&toMerge.push(globalDefaults),queryHookOptions.defaultOptions&&toMerge.push(queryHookOptions.defaultOptions),toMerge.push(compact(observable&&observable.options,watchQueryOptions)),toMerge.reduce(mergeOptions)}function setResult(nextResult,resultData,observable,client,partialRefetch,forceUpdate,callbacks){var previousResult=resultData.current;previousResult&&previousResult.data&&(resultData.previousData=previousResult.data),!nextResult.error&&isNonEmptyArray(nextResult.errors)&&(nextResult.error=new ApolloError({graphQLErrors:nextResult.errors})),resultData.current=toQueryResult(unsafeHandlePartialRefetch(nextResult,observable,partialRefetch),resultData.previousData,observable,client),forceUpdate(),handleErrorOrCompleted(nextResult,previousResult?.networkStatus,callbacks)}function handleErrorOrCompleted(result,previousNetworkStatus,callbacks){if(!result.loading){var error_1=toApolloError(result);Promise.resolve().then(function(){error_1?callbacks.onError(error_1):result.data&&previousNetworkStatus!==result.networkStatus&&result.networkStatus===NetworkStatus.ready&&callbacks.onCompleted(result.data)}).catch(function(error){globalThis.__DEV__!==!1&&invariantWrappers_invariant.warn(error)})}}function getCurrentResult(resultData,observable,callbacks,partialRefetch,client){return resultData.current||setResult(observable.getCurrentResult(),resultData,observable,client,partialRefetch,function(){},callbacks),resultData.current}function getDefaultFetchPolicy(queryHookDefaultOptions,clientDefaultOptions){var _a2;return queryHookDefaultOptions?.fetchPolicy||((_a2=clientDefaultOptions?.watchQuery)===null||_a2===void 0?void 0:_a2.fetchPolicy)||"cache-first"}function toApolloError(result){return isNonEmptyArray(result.errors)?new ApolloError({graphQLErrors:result.errors}):result.error}function toQueryResult(result,previousData,observable,client){var data=result.data,partial=result.partial,resultWithoutPartial=__rest(result,["data","partial"]),queryResult=tslib_es6_assign(tslib_es6_assign({data},resultWithoutPartial),{client,observable,variables:observable.variables,called:result!==ssrDisabledResult&&result!==skipStandbyResult,previousData});return queryResult}function unsafeHandlePartialRefetch(result,observable,partialRefetch){return result.partial&&partialRefetch&&!result.loading&&(!result.data||Object.keys(result.data).length===0)&&observable.options.fetchPolicy!=="cache-only"?(observable.refetch(),tslib_es6_assign(tslib_es6_assign({},result),{loading:!0,networkStatus:NetworkStatus.refetch})):result}var ssrDisabledResult=maybeDeepFreeze({loading:!0,data:void 0,error:void 0,networkStatus:NetworkStatus.loading}),skipStandbyResult=maybeDeepFreeze({loading:!1,data:void 0,error:void 0,networkStatus:NetworkStatus.ready});function bindObservableMethods(observable){return{refetch:observable.refetch.bind(observable),reobserve:observable.reobserve.bind(observable),fetchMore:observable.fetchMore.bind(observable),updateQuery:observable.updateQuery.bind(observable),startPolling:observable.startPolling.bind(observable),stopPolling:observable.stopPolling.bind(observable),subscribeToMore:observable.subscribeToMore.bind(observable)}}var useIsomorphicLayoutEffect=canUseDOM?rehackt.useLayoutEffect:rehackt.useEffect,EAGER_METHODS=["refetch","reobserve","fetchMore","updateQuery","startPolling","stopPolling","subscribeToMore"];function useLazyQuery(query,options){var _a2,execOptionsRef=rehackt.useRef(),optionsRef=rehackt.useRef(),queryRef=rehackt.useRef(),merged=mergeOptions(options,execOptionsRef.current||{}),document2=(_a2=merged?.query)!==null&&_a2!==void 0?_a2:query;optionsRef.current=options,queryRef.current=document2;var queryHookOptions=tslib_es6_assign(tslib_es6_assign({},merged),{skip:!execOptionsRef.current}),_b=useQueryInternals(document2,queryHookOptions),obsQueryFields=_b.obsQueryFields,useQueryResult=_b.result,client=_b.client,resultData=_b.resultData,observable=_b.observable,onQueryExecuted=_b.onQueryExecuted,initialFetchPolicy=observable.options.initialFetchPolicy||getDefaultFetchPolicy(queryHookOptions.defaultOptions,client.defaultOptions),forceUpdateState=rehackt.useReducer(function(tick){return tick+1},0)[1],eagerMethods=rehackt.useMemo(function(){for(var eagerMethods2={},_loop_1=function(key2){var method=obsQueryFields[key2];eagerMethods2[key2]=function(){return execOptionsRef.current||(execOptionsRef.current=Object.create(null),forceUpdateState()),method.apply(this,arguments)}},_i=0,EAGER_METHODS_1=EAGER_METHODS;_i<EAGER_METHODS_1.length;_i++){var key=EAGER_METHODS_1[_i];_loop_1(key)}return eagerMethods2},[forceUpdateState,obsQueryFields]),called=!!execOptionsRef.current,result=rehackt.useMemo(function(){return tslib_es6_assign(tslib_es6_assign(tslib_es6_assign({},useQueryResult),eagerMethods),{called})},[useQueryResult,eagerMethods,called]),execute2=rehackt.useCallback(function(executeOptions){execOptionsRef.current=executeOptions?tslib_es6_assign(tslib_es6_assign({},executeOptions),{fetchPolicy:executeOptions.fetchPolicy||initialFetchPolicy}):{fetchPolicy:initialFetchPolicy};var options2=mergeOptions(optionsRef.current,tslib_es6_assign({query:queryRef.current},execOptionsRef.current)),promise=executeQuery(resultData,observable,client,document2,tslib_es6_assign(tslib_es6_assign({},options2),{skip:!1}),onQueryExecuted).then(function(queryResult){return Object.assign(queryResult,eagerMethods)});return promise.catch(function(){}),promise},[client,document2,eagerMethods,initialFetchPolicy,observable,resultData,onQueryExecuted]),executeRef=rehackt.useRef(execute2);useIsomorphicLayoutEffect(function(){executeRef.current=execute2});var stableExecute=rehackt.useCallback(function(){for(var args=[],_i=0;_i<arguments.length;_i++)args[_i]=arguments[_i];return executeRef.current.apply(executeRef,args)},[]);return[stableExecute,result]}function executeQuery(resultData,observable,client,currentQuery,options,onQueryExecuted){var query=options.query||currentQuery,watchQueryOptions=createMakeWatchQueryOptions(client,query,options,!1)(observable),concast=observable.reobserveAsConcast(getObsQueryOptions(observable,client,options,watchQueryOptions));return onQueryExecuted(watchQueryOptions),new Promise(function(resolve){var result;concast.subscribe({next:function(value){result=value},error:function(){resolve(toQueryResult(observable.getCurrentResult(),resultData.previousData,observable,client))},complete:function(){resolve(toQueryResult(observable.maskResult(result),resultData.previousData,observable,client))}})})}function useMutation(mutation,options){var client=useApolloClient(options?.client);verifyDocumentType(mutation,DocumentType.Mutation);var _a2=rehackt.useState({called:!1,loading:!1,client}),result=_a2[0],setResult2=_a2[1],ref=rehackt.useRef({result,mutationId:0,isMounted:!0,client,mutation,options});useIsomorphicLayoutEffect(function(){Object.assign(ref.current,{client,options,mutation})});var execute2=rehackt.useCallback(function(executeOptions){executeOptions===void 0&&(executeOptions={});var _a3=ref.current,options2=_a3.options,mutation2=_a3.mutation,baseOptions=tslib_es6_assign(tslib_es6_assign({},options2),{mutation:mutation2}),client2=executeOptions.client||ref.current.client;!ref.current.result.loading&&!baseOptions.ignoreResults&&ref.current.isMounted&&setResult2(ref.current.result={loading:!0,error:void 0,data:void 0,called:!0,client:client2});var mutationId=++ref.current.mutationId,clientOptions=mergeOptions(baseOptions,executeOptions);return client2.mutate(clientOptions).then(function(response){var _a4,_b,data=response.data,errors=response.errors,error=errors&&errors.length>0?new ApolloError({graphQLErrors:errors}):void 0,onError=executeOptions.onError||((_a4=ref.current.options)===null||_a4===void 0?void 0:_a4.onError);if(error&&onError&&onError(error,clientOptions),mutationId===ref.current.mutationId&&!clientOptions.ignoreResults){var result_1={called:!0,loading:!1,data,error,client:client2};ref.current.isMounted&&!equal(ref.current.result,result_1)&&setResult2(ref.current.result=result_1)}var onCompleted=executeOptions.onCompleted||((_b=ref.current.options)===null||_b===void 0?void 0:_b.onCompleted);return error||onCompleted?.(response.data,clientOptions),response}).catch(function(error){var _a4;if(mutationId===ref.current.mutationId&&ref.current.isMounted){var result_2={loading:!1,error,data:void 0,called:!0,client:client2};equal(ref.current.result,result_2)||setResult2(ref.current.result=result_2)}var onError=executeOptions.onError||((_a4=ref.current.options)===null||_a4===void 0?void 0:_a4.onError);if(onError)return onError(error,clientOptions),{data:void 0,errors:error};throw error})},[]),reset=rehackt.useCallback(function(){if(ref.current.isMounted){var result_3={called:!1,loading:!1,client:ref.current.client};Object.assign(ref.current,{mutationId:0,result:result_3}),setResult2(result_3)}},[]);return rehackt.useEffect(function(){var current=ref.current;return current.isMounted=!0,function(){current.isMounted=!1}},[]),[execute2,tslib_es6_assign({reset},result)]}function useDeepMemo(memoFn,deps){var ref=rehackt.useRef();return(!ref.current||!equal(ref.current.deps,deps))&&(ref.current={value:memoFn(),deps}),ref.current.value}function useSubscription(subscription,options){options===void 0&&(options=Object.create(null));var hasIssuedDeprecationWarningRef=rehackt.useRef(!1),client=useApolloClient(options.client);verifyDocumentType(subscription,DocumentType.Subscription),hasIssuedDeprecationWarningRef.current||(hasIssuedDeprecationWarningRef.current=!0,options.onSubscriptionData&&globalThis.__DEV__!==!1&&invariantWrappers_invariant.warn(options.onData?61:62),options.onSubscriptionComplete&&globalThis.__DEV__!==!1&&invariantWrappers_invariant.warn(options.onComplete?63:64));var skip=options.skip,fetchPolicy=options.fetchPolicy,errorPolicy=options.errorPolicy,shouldResubscribe=options.shouldResubscribe,context=options.context,extensions=options.extensions,ignoreResults=options.ignoreResults,variables=useDeepMemo(function(){return options.variables},[options.variables]),recreate=function(){return createSubscription(client,subscription,variables,fetchPolicy,errorPolicy,context,extensions)},_a2=rehackt.useState(options.skip?null:recreate),observable=_a2[0],setObservable=_a2[1],recreateRef=rehackt.useRef(recreate);useIsomorphicLayoutEffect(function(){recreateRef.current=recreate}),skip?observable&&setObservable(observable=null):(!observable||(client!==observable.__.client||subscription!==observable.__.query||fetchPolicy!==observable.__.fetchPolicy||errorPolicy!==observable.__.errorPolicy||!equal(variables,observable.__.variables))&&(typeof shouldResubscribe=="function"?!!shouldResubscribe(options):shouldResubscribe)!==!1)&&setObservable(observable=recreate());var optionsRef=rehackt.useRef(options);rehackt.useEffect(function(){optionsRef.current=options});var fallbackLoading=!skip&&!ignoreResults,fallbackResult=rehackt.useMemo(function(){return{loading:fallbackLoading,error:void 0,data:void 0,variables}},[fallbackLoading,variables]),ignoreResultsRef=rehackt.useRef(ignoreResults);useIsomorphicLayoutEffect(function(){ignoreResultsRef.current=ignoreResults});var ret=useSyncExternalStore(rehackt.useCallback(function(update){if(!observable)return function(){};var subscriptionStopped=!1,variables2=observable.__.variables,client2=observable.__.client,subscription2=observable.subscribe({next:function(fetchResult){var _a3,_b;if(!subscriptionStopped){var result={loading:!1,data:fetchResult.data,error:toApolloError(fetchResult),variables:variables2};observable.__.setResult(result),ignoreResultsRef.current||update(),result.error?(_b=(_a3=optionsRef.current).onError)===null||_b===void 0||_b.call(_a3,result.error):optionsRef.current.onData?optionsRef.current.onData({client:client2,data:result}):optionsRef.current.onSubscriptionData&&optionsRef.current.onSubscriptionData({client:client2,subscriptionData:result})}},error:function(error){var _a3,_b;error=error instanceof ApolloError?error:new ApolloError({protocolErrors:[error]}),subscriptionStopped||(observable.__.setResult({loading:!1,data:void 0,error,variables:variables2}),ignoreResultsRef.current||update(),(_b=(_a3=optionsRef.current).onError)===null||_b===void 0||_b.call(_a3,error))},complete:function(){subscriptionStopped||(optionsRef.current.onComplete?optionsRef.current.onComplete():optionsRef.current.onSubscriptionComplete&&optionsRef.current.onSubscriptionComplete())}});return function(){subscriptionStopped=!0,setTimeout(function(){subscription2.unsubscribe()})}},[observable]),function(){return observable&&!skip&&!ignoreResults?observable.__.result:fallbackResult},function(){return fallbackResult}),restart=rehackt.useCallback(function(){invariantWrappers_invariant(!optionsRef.current.skip,65),setObservable(recreateRef.current())},[optionsRef,recreateRef]);return rehackt.useMemo(function(){return tslib_es6_assign(tslib_es6_assign({},ret),{restart})},[ret,restart])}function createSubscription(client,query,variables,fetchPolicy,errorPolicy,context,extensions){var options={query,variables,fetchPolicy,errorPolicy,context,extensions},__=tslib_es6_assign(tslib_es6_assign({},options),{client,result:{loading:!0,data:void 0,error:void 0,variables},setResult:function(result){__.result=result}}),observable=null;return Object.assign(new Observable(function(observer){observable||(observable=client.subscribe(options));var sub=observable.subscribe(observer);return function(){return sub.unsubscribe()}}),{__})}function useReactiveVar(rv){return useSyncExternalStore(rehackt.useCallback(function(update){return rv.onNextChange(function onNext(){update(),rv.onNextChange(onNext)})},[rv]),rv,rv)}function useFragment(options){return wrapHook("useFragment",_useFragment,useApolloClient(options.client))(options)}function _useFragment(options){var client=useApolloClient(options.client),cache2=client.cache,from2=options.from,rest=__rest(options,["from"]),id=rehackt.useMemo(function(){return typeof from2=="string"?from2:from2===null?null:cache2.identify(from2)},[cache2,from2]),stableOptions=useDeepMemo(function(){return tslib_es6_assign(tslib_es6_assign({},rest),{from:id})},[rest,id]),diff=rehackt.useMemo(function(){var fragment=stableOptions.fragment,fragmentName=stableOptions.fragmentName,from3=stableOptions.from,_a2=stableOptions.optimistic,optimistic=_a2===void 0?!0:_a2;if(from3===null)return{result:diffToResult({result:{},complete:!1})};var cache3=client.cache,diff2=cache3.diff(tslib_es6_assign(tslib_es6_assign({},stableOptions),{returnPartialData:!0,id:from3,query:cache3.getFragmentDoc(fragment,fragmentName),optimistic}));return{result:diffToResult(tslib_es6_assign(tslib_es6_assign({},diff2),{result:client.queryManager.maskFragment({fragment,fragmentName,data:diff2.result})}))}},[client,stableOptions]),getSnapshot=rehackt.useCallback(function(){return diff.result},[diff]);return useSyncExternalStore(rehackt.useCallback(function(forceUpdate){var lastTimeout=0,subscription=stableOptions.from===null?null:client.watchFragment(stableOptions).subscribe({next:function(result){lib(result,diff.result)||(diff.result=result,clearTimeout(lastTimeout),lastTimeout=setTimeout(forceUpdate))}});return function(){subscription?.unsubscribe(),clearTimeout(lastTimeout)}},[client,stableOptions,diff]),getSnapshot,getSnapshot)}function diffToResult(diff){var result={data:diff.result,complete:!!diff.complete};return diff.missing&&(result.missing=mergeDeepArray(diff.missing.map(function(error){return error.missing}))),result}function createFulfilledPromise(value){var promise=Promise.resolve(value);return promise.status="fulfilled",promise.value=value,promise}function createRejectedPromise(reason){var promise=Promise.reject(reason);return promise.catch(function(){}),promise.status="rejected",promise.reason=reason,promise}function isStatefulPromise(promise){return"status"in promise}function wrapPromiseWithState(promise){if(isStatefulPromise(promise))return promise;var pendingPromise=promise;return pendingPromise.status="pending",pendingPromise.then(function(value){if(pendingPromise.status==="pending"){var fulfilledPromise=pendingPromise;fulfilledPromise.status="fulfilled",fulfilledPromise.value=value}},function(reason){if(pendingPromise.status==="pending"){var rejectedPromise=pendingPromise;rejectedPromise.status="rejected",rejectedPromise.reason=reason}}),promise}var useKey="use",_use_realHook=rehackt_namespaceObject[useKey],__use=_use_realHook||function(promise){var statefulPromise=wrapPromiseWithState(promise);switch(statefulPromise.status){case"pending":throw statefulPromise;case"rejected":throw statefulPromise.reason;case"fulfilled":return statefulPromise.value}},QUERY_REFERENCE_SYMBOL=Symbol(),PROMISE_SYMBOL=Symbol();function wrapQueryRef(internalQueryRef){var _a2,ref=(_a2={toPromise:function(){return getWrappedPromise(ref).then(function(){return ref})}},_a2[QUERY_REFERENCE_SYMBOL]=internalQueryRef,_a2[PROMISE_SYMBOL]=internalQueryRef.promise,_a2);return ref}function assertWrappedQueryRef(queryRef){invariantWrappers_invariant(!queryRef||QUERY_REFERENCE_SYMBOL in queryRef,69)}function getWrappedPromise(queryRef){var internalQueryRef=unwrapQueryRef(queryRef);return internalQueryRef.promise.status==="fulfilled"?internalQueryRef.promise:queryRef[PROMISE_SYMBOL]}function unwrapQueryRef(queryRef){return queryRef[QUERY_REFERENCE_SYMBOL]}function updateWrappedQueryRef(queryRef,promise){queryRef[PROMISE_SYMBOL]=promise}var OBSERVED_CHANGED_OPTIONS=["canonizeResults","context","errorPolicy","fetchPolicy","refetchWritePolicy","returnPartialData"],InternalQueryReference=function(){function InternalQueryReference2(observable,options){var _this=this;this.key={},this.listeners=new Set,this.references=0,this.softReferences=0,this.handleNext=this.handleNext.bind(this),this.handleError=this.handleError.bind(this),this.dispose=this.dispose.bind(this),this.observable=observable,options.onDispose&&(this.onDispose=options.onDispose),this.setResult(),this.subscribeToQuery();var startDisposeTimer=function(){var _a2;_this.references||(_this.autoDisposeTimeoutId=setTimeout(_this.dispose,(_a2=options.autoDisposeTimeoutMs)!==null&&_a2!==void 0?_a2:3e4))};this.promise.then(startDisposeTimer,startDisposeTimer)}return Object.defineProperty(InternalQueryReference2.prototype,"disposed",{get:function(){return this.subscription.closed},enumerable:!1,configurable:!0}),Object.defineProperty(InternalQueryReference2.prototype,"watchQueryOptions",{get:function(){return this.observable.options},enumerable:!1,configurable:!0}),InternalQueryReference2.prototype.reinitialize=function(){var observable=this.observable,originalFetchPolicy=this.watchQueryOptions.fetchPolicy,avoidNetworkRequests=originalFetchPolicy==="no-cache"||originalFetchPolicy==="standby";try{if(avoidNetworkRequests?observable.silentSetOptions({fetchPolicy:"standby"}):(observable.resetLastResults(),observable.silentSetOptions({fetchPolicy:"cache-first"})),this.subscribeToQuery(),avoidNetworkRequests)return;observable.resetDiff(),this.setResult()}finally{observable.silentSetOptions({fetchPolicy:originalFetchPolicy})}},InternalQueryReference2.prototype.retain=function(){var _this=this;this.references++,clearTimeout(this.autoDisposeTimeoutId);var disposed=!1;return function(){disposed||(disposed=!0,_this.references--,setTimeout(function(){_this.references||_this.dispose()}))}},InternalQueryReference2.prototype.softRetain=function(){var _this=this;this.softReferences++;var disposed=!1;return function(){disposed||(disposed=!0,_this.softReferences--,setTimeout(function(){!_this.softReferences&&!_this.references&&_this.dispose()}))}},InternalQueryReference2.prototype.didChangeOptions=function(watchQueryOptions){var _this=this;return OBSERVED_CHANGED_OPTIONS.some(function(option){return option in watchQueryOptions&&!equal(_this.watchQueryOptions[option],watchQueryOptions[option])})},InternalQueryReference2.prototype.applyOptions=function(watchQueryOptions){var _a2=this.watchQueryOptions,currentFetchPolicy=_a2.fetchPolicy,currentCanonizeResults=_a2.canonizeResults;return currentFetchPolicy==="standby"&&currentFetchPolicy!==watchQueryOptions.fetchPolicy?this.initiateFetch(this.observable.reobserve(watchQueryOptions)):(this.observable.silentSetOptions(watchQueryOptions),currentCanonizeResults!==watchQueryOptions.canonizeResults&&(this.result=tslib_es6_assign(tslib_es6_assign({},this.result),this.observable.getCurrentResult()),this.promise=createFulfilledPromise(this.result))),this.promise},InternalQueryReference2.prototype.listen=function(listener){var _this=this;return this.listeners.add(listener),function(){_this.listeners.delete(listener)}},InternalQueryReference2.prototype.refetch=function(variables){return this.initiateFetch(this.observable.refetch(variables))},InternalQueryReference2.prototype.fetchMore=function(options){return this.initiateFetch(this.observable.fetchMore(options))},InternalQueryReference2.prototype.dispose=function(){this.subscription.unsubscribe(),this.onDispose()},InternalQueryReference2.prototype.onDispose=function(){},InternalQueryReference2.prototype.handleNext=function(result){var _a2;switch(this.promise.status){case"pending":{result.data===void 0&&(result.data=this.result.data),this.result=result,(_a2=this.resolve)===null||_a2===void 0||_a2.call(this,result);break}default:{if(result.data===this.result.data&&result.networkStatus===this.result.networkStatus)return;result.data===void 0&&(result.data=this.result.data),this.result=result,this.promise=createFulfilledPromise(result),this.deliver(this.promise);break}}},InternalQueryReference2.prototype.handleError=function(error){var _a2;switch(this.subscription.unsubscribe(),this.subscription=this.observable.resubscribeAfterError(this.handleNext,this.handleError),this.promise.status){case"pending":{(_a2=this.reject)===null||_a2===void 0||_a2.call(this,error);break}default:this.promise=createRejectedPromise(error),this.deliver(this.promise)}},InternalQueryReference2.prototype.deliver=function(promise){this.listeners.forEach(function(listener){return listener(promise)})},InternalQueryReference2.prototype.initiateFetch=function(returnedPromise){var _this=this;return this.promise=this.createPendingPromise(),this.promise.catch(function(){}),returnedPromise.then(function(){setTimeout(function(){var _a2;_this.promise.status==="pending"&&(_this.result=_this.observable.getCurrentResult(),(_a2=_this.resolve)===null||_a2===void 0||_a2.call(_this,_this.result))})}).catch(function(error){var _a2;return(_a2=_this.reject)===null||_a2===void 0?void 0:_a2.call(_this,error)}),returnedPromise},InternalQueryReference2.prototype.subscribeToQuery=function(){var _this=this;this.subscription=this.observable.filter(function(result){return!equal(result.data,{})&&!equal(result,_this.result)}).subscribe(this.handleNext,this.handleError)},InternalQueryReference2.prototype.setResult=function(){var result=this.observable.getCurrentResult(!1);equal(result,this.result)||(this.result=result,this.promise=result.data&&(!result.partial||this.watchQueryOptions.returnPartialData)?createFulfilledPromise(result):this.createPendingPromise())},InternalQueryReference2.prototype.createPendingPromise=function(){var _this=this;return wrapPromiseWithState(new Promise(function(resolve,reject){_this.resolve=resolve,_this.reject=reject}))},InternalQueryReference2}(),SuspenseCache=function(){function SuspenseCache2(options){options===void 0&&(options=Object.create(null)),this.queryRefs=new Trie(canUseWeakMap),this.options=options}return SuspenseCache2.prototype.getQueryRef=function(cacheKey,createObservable){var ref=this.queryRefs.lookupArray(cacheKey);return ref.current||(ref.current=new InternalQueryReference(createObservable(),{autoDisposeTimeoutMs:this.options.autoDisposeTimeoutMs,onDispose:function(){delete ref.current}})),ref.current},SuspenseCache2.prototype.add=function(cacheKey,queryRef){var ref=this.queryRefs.lookupArray(cacheKey);ref.current=queryRef},SuspenseCache2}(),suspenseCacheSymbol=Symbol.for("apollo.suspenseCache");function getSuspenseCache(client){var _a2;return client[suspenseCacheSymbol]||(client[suspenseCacheSymbol]=new SuspenseCache((_a2=client.defaultOptions.react)===null||_a2===void 0?void 0:_a2.suspense)),client[suspenseCacheSymbol]}var skipToken=Symbol.for("apollo.skipToken");function useSuspenseQuery(query,options){return options===void 0&&(options=Object.create(null)),wrapHook("useSuspenseQuery",_useSuspenseQuery,useApolloClient(typeof options=="object"?options.client:void 0))(query,options)}function _useSuspenseQuery(query,options){var client=useApolloClient(options.client),suspenseCache=getSuspenseCache(client),watchQueryOptions=useWatchQueryOptions({client,query,options}),fetchPolicy=watchQueryOptions.fetchPolicy,variables=watchQueryOptions.variables,_a2=options.queryKey,queryKey=_a2===void 0?[]:_a2,cacheKey=__spreadArray([query,canonicalStringify(variables)],[].concat(queryKey),!0),queryRef=suspenseCache.getQueryRef(cacheKey,function(){return client.watchQuery(watchQueryOptions)}),_b=rehackt.useState([queryRef.key,queryRef.promise]),current=_b[0],setPromise=_b[1];current[0]!==queryRef.key&&(current[0]=queryRef.key,current[1]=queryRef.promise);var promise=current[1];queryRef.didChangeOptions(watchQueryOptions)&&(current[1]=promise=queryRef.applyOptions(watchQueryOptions)),rehackt.useEffect(function(){var dispose=queryRef.retain(),removeListener=queryRef.listen(function(promise2){setPromise([queryRef.key,promise2])});return function(){removeListener(),dispose()}},[queryRef]);var skipResult=rehackt.useMemo(function(){var error=useSuspenseQuery_toApolloError(queryRef.result);return{loading:!1,data:queryRef.result.data,networkStatus:error?NetworkStatus.error:NetworkStatus.ready,error}},[queryRef.result]),result=fetchPolicy==="standby"?skipResult:__use(promise),fetchMore=rehackt.useCallback(function(options2){var promise2=queryRef.fetchMore(options2);return setPromise([queryRef.key,queryRef.promise]),promise2},[queryRef]),refetch=rehackt.useCallback(function(variables2){var promise2=queryRef.refetch(variables2);return setPromise([queryRef.key,queryRef.promise]),promise2},[queryRef]),subscribeToMore=queryRef.observable.subscribeToMore;return rehackt.useMemo(function(){return{client,data:result.data,error:useSuspenseQuery_toApolloError(result),networkStatus:result.networkStatus,fetchMore,refetch,subscribeToMore}},[client,fetchMore,refetch,result,subscribeToMore])}function validateOptions(options){var query=options.query,fetchPolicy=options.fetchPolicy,returnPartialData=options.returnPartialData;verifyDocumentType(query,DocumentType.Query),validateFetchPolicy(fetchPolicy),validatePartialDataReturn(fetchPolicy,returnPartialData)}function validateFetchPolicy(fetchPolicy){fetchPolicy===void 0&&(fetchPolicy="cache-first");var supportedFetchPolicies=["cache-first","network-only","no-cache","cache-and-network"];invariantWrappers_invariant(supportedFetchPolicies.includes(fetchPolicy),66,fetchPolicy)}function validatePartialDataReturn(fetchPolicy,returnPartialData){fetchPolicy==="no-cache"&&returnPartialData&&globalThis.__DEV__!==!1&&invariantWrappers_invariant.warn(67)}function useSuspenseQuery_toApolloError(result){return isNonEmptyArray(result.errors)?new ApolloError({graphQLErrors:result.errors}):result.error}function useWatchQueryOptions(_a2){var client=_a2.client,query=_a2.query,options=_a2.options;return useDeepMemo(function(){var _a3;if(options===skipToken)return{query,fetchPolicy:"standby"};var fetchPolicy=options.fetchPolicy||((_a3=client.defaultOptions.watchQuery)===null||_a3===void 0?void 0:_a3.fetchPolicy)||"cache-first",watchQueryOptions=tslib_es6_assign(tslib_es6_assign({},options),{fetchPolicy,query,notifyOnNetworkStatusChange:!1,nextFetchPolicy:void 0});return globalThis.__DEV__!==!1&&validateOptions(watchQueryOptions),options.skip&&(watchQueryOptions.fetchPolicy="standby"),watchQueryOptions},[client,options,query])}function useBackgroundQuery(query,options){return options===void 0&&(options=Object.create(null)),wrapHook("useBackgroundQuery",_useBackgroundQuery,useApolloClient(typeof options=="object"?options.client:void 0))(query,options)}function _useBackgroundQuery(query,options){var client=useApolloClient(options.client),suspenseCache=getSuspenseCache(client),watchQueryOptions=useWatchQueryOptions({client,query,options}),fetchPolicy=watchQueryOptions.fetchPolicy,variables=watchQueryOptions.variables,_a2=options.queryKey,queryKey=_a2===void 0?[]:_a2,didFetchResult=rehackt.useRef(fetchPolicy!=="standby");didFetchResult.current||(didFetchResult.current=fetchPolicy!=="standby");var cacheKey=__spreadArray([query,canonicalStringify(variables)],[].concat(queryKey),!0),queryRef=suspenseCache.getQueryRef(cacheKey,function(){return client.watchQuery(watchQueryOptions)}),_b=rehackt.useState(wrapQueryRef(queryRef)),wrappedQueryRef=_b[0],setWrappedQueryRef=_b[1];if(unwrapQueryRef(wrappedQueryRef)!==queryRef&&setWrappedQueryRef(wrapQueryRef(queryRef)),queryRef.didChangeOptions(watchQueryOptions)){var promise=queryRef.applyOptions(watchQueryOptions);updateWrappedQueryRef(wrappedQueryRef,promise)}rehackt.useEffect(function(){var id=setTimeout(function(){queryRef.disposed&&suspenseCache.add(cacheKey,queryRef)});return function(){return clearTimeout(id)}});var fetchMore=rehackt.useCallback(function(options2){var promise2=queryRef.fetchMore(options2);return setWrappedQueryRef(wrapQueryRef(queryRef)),promise2},[queryRef]),refetch=rehackt.useCallback(function(variables2){var promise2=queryRef.refetch(variables2);return setWrappedQueryRef(wrapQueryRef(queryRef)),promise2},[queryRef]);return rehackt.useEffect(function(){return queryRef.softRetain()},[queryRef]),[didFetchResult.current?wrappedQueryRef:void 0,{fetchMore,refetch,subscribeToMore:queryRef.observable.subscribeToMore}]}var Ctx;function useRenderGuard_noop(){}function useRenderGuard(){return Ctx||(Ctx=rehackt.createContext(null)),rehackt.useCallback(function(){var orig=console.error;try{return console.error=useRenderGuard_noop,rehackt.useContext(Ctx),!0}catch{return!1}finally{console.error=orig}},[])}function useLoadableQuery(query,options){options===void 0&&(options=Object.create(null));var client=useApolloClient(options.client),suspenseCache=getSuspenseCache(client),watchQueryOptions=useWatchQueryOptions({client,query,options}),_a2=options.queryKey,queryKey=_a2===void 0?[]:_a2,_b=rehackt.useState(null),queryRef=_b[0],setQueryRef=_b[1];assertWrappedQueryRef(queryRef);var internalQueryRef=queryRef&&unwrapQueryRef(queryRef);if(queryRef&&internalQueryRef?.didChangeOptions(watchQueryOptions)){var promise=internalQueryRef.applyOptions(watchQueryOptions);updateWrappedQueryRef(queryRef,promise)}var calledDuringRender=useRenderGuard(),fetchMore=rehackt.useCallback(function(options2){if(!internalQueryRef)throw new Error("The query has not been loaded. Please load the query.");var promise2=internalQueryRef.fetchMore(options2);return setQueryRef(wrapQueryRef(internalQueryRef)),promise2},[internalQueryRef]),refetch=rehackt.useCallback(function(options2){if(!internalQueryRef)throw new Error("The query has not been loaded. Please load the query.");var promise2=internalQueryRef.refetch(options2);return setQueryRef(wrapQueryRef(internalQueryRef)),promise2},[internalQueryRef]),loadQuery=rehackt.useCallback(function(){for(var args=[],_i=0;_i<arguments.length;_i++)args[_i]=arguments[_i];invariantWrappers_invariant(!calledDuringRender(),59);var variables=args[0],cacheKey=__spreadArray([query,canonicalStringify(variables)],[].concat(queryKey),!0),queryRef2=suspenseCache.getQueryRef(cacheKey,function(){return client.watchQuery(tslib_es6_assign(tslib_es6_assign({},watchQueryOptions),{variables}))});setQueryRef(wrapQueryRef(queryRef2))},[query,queryKey,suspenseCache,watchQueryOptions,calledDuringRender,client]),subscribeToMore=rehackt.useCallback(function(options2){return invariantWrappers_invariant(internalQueryRef,60),internalQueryRef.observable.subscribeToMore(options2)},[internalQueryRef]),reset=rehackt.useCallback(function(){setQueryRef(null)},[]);return[loadQuery,queryRef,{fetchMore,refetch,reset,subscribeToMore}]}function useQueryRefHandlers(queryRef){var unwrapped=unwrapQueryRef(queryRef);return wrapHook("useQueryRefHandlers",_useQueryRefHandlers,unwrapped?unwrapped.observable:useApolloClient())(queryRef)}function _useQueryRefHandlers(queryRef){assertWrappedQueryRef(queryRef);var _a2=rehackt.useState(queryRef),previousQueryRef=_a2[0],setPreviousQueryRef=_a2[1],_b=rehackt.useState(queryRef),wrappedQueryRef=_b[0],setWrappedQueryRef=_b[1],internalQueryRef=unwrapQueryRef(queryRef);previousQueryRef!==queryRef?(setPreviousQueryRef(queryRef),setWrappedQueryRef(queryRef)):updateWrappedQueryRef(queryRef,getWrappedPromise(wrappedQueryRef));var refetch=rehackt.useCallback(function(variables){var promise=internalQueryRef.refetch(variables);return setWrappedQueryRef(wrapQueryRef(internalQueryRef)),promise},[internalQueryRef]),fetchMore=rehackt.useCallback(function(options){var promise=internalQueryRef.fetchMore(options);return setWrappedQueryRef(wrapQueryRef(internalQueryRef)),promise},[internalQueryRef]);return{refetch,fetchMore,subscribeToMore:internalQueryRef.observable.subscribeToMore}}function useReadQuery(queryRef){var unwrapped=unwrapQueryRef(queryRef);return wrapHook("useReadQuery",_useReadQuery,unwrapped?unwrapped.observable:useApolloClient())(queryRef)}function _useReadQuery(queryRef){assertWrappedQueryRef(queryRef);var internalQueryRef=rehackt.useMemo(function(){return unwrapQueryRef(queryRef)},[queryRef]),getPromise=rehackt.useCallback(function(){return getWrappedPromise(queryRef)},[queryRef]);internalQueryRef.disposed&&(internalQueryRef.reinitialize(),updateWrappedQueryRef(queryRef,internalQueryRef.promise)),rehackt.useEffect(function(){return internalQueryRef.retain()},[internalQueryRef]);var promise=useSyncExternalStore(rehackt.useCallback(function(forceUpdate){return internalQueryRef.listen(function(promise2){updateWrappedQueryRef(queryRef,promise2),forceUpdate()})},[internalQueryRef,queryRef]),getPromise,getPromise),result=__use(promise);return rehackt.useMemo(function(){return{data:result.data,networkStatus:result.networkStatus,error:useSuspenseQuery_toApolloError(result)}},[result])}function createQueryPreloader(client){return wrapHook("createQueryPreloader",_createQueryPreloader,client)(client)}var _createQueryPreloader=function(client){return function(query,options){var _a2,_b;options===void 0&&(options=Object.create(null));var queryRef=new InternalQueryReference(client.watchQuery(tslib_es6_assign(tslib_es6_assign({},options),{query})),{autoDisposeTimeoutMs:(_b=(_a2=client.defaultOptions.react)===null||_a2===void 0?void 0:_a2.suspense)===null||_b===void 0?void 0:_b.autoDisposeTimeoutMs});return wrapQueryRef(queryRef)}}},83807:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>inspect});var _nodejsCustomInspectSymbol_mjs__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(43800);function _typeof(obj){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof=function(obj2){return typeof obj2}:_typeof=function(obj2){return obj2&&typeof Symbol=="function"&&obj2.constructor===Symbol&&obj2!==Symbol.prototype?"symbol":typeof obj2},_typeof(obj)}var MAX_ARRAY_LENGTH=10,MAX_RECURSIVE_DEPTH=2;function inspect(value){return formatValue(value,[])}function formatValue(value,seenValues){switch(_typeof(value)){case"string":return JSON.stringify(value);case"function":return value.name?"[function ".concat(value.name,"]"):"[function]";case"object":return value===null?"null":formatObjectValue(value,seenValues);default:return String(value)}}function formatObjectValue(value,previouslySeenValues){if(previouslySeenValues.indexOf(value)!==-1)return"[Circular]";var seenValues=[].concat(previouslySeenValues,[value]),customInspectFn=getCustomFn(value);if(customInspectFn!==void 0){var customValue=customInspectFn.call(value);if(customValue!==value)return typeof customValue=="string"?customValue:formatValue(customValue,seenValues)}else if(Array.isArray(value))return formatArray(value,seenValues);return formatObject(value,seenValues)}function formatObject(object,seenValues){var keys=Object.keys(object);if(keys.length===0)return"{}";if(seenValues.length>MAX_RECURSIVE_DEPTH)return"["+getObjectTag(object)+"]";var properties=keys.map(function(key){var value=formatValue(object[key],seenValues);return key+": "+value});return"{ "+properties.join(", ")+" }"}function formatArray(array,seenValues){if(array.length===0)return"[]";if(seenValues.length>MAX_RECURSIVE_DEPTH)return"[Array]";for(var len=Math.min(MAX_ARRAY_LENGTH,array.length),remaining=array.length-len,items=[],i=0;i<len;++i)items.push(formatValue(array[i],seenValues));return remaining===1?items.push("... 1 more item"):remaining>1&&items.push("... ".concat(remaining," more items")),"["+items.join(", ")+"]"}function getCustomFn(object){var customInspectFn=object[String(_nodejsCustomInspectSymbol_mjs__WEBPACK_IMPORTED_MODULE_0__.A)];if(typeof customInspectFn=="function")return customInspectFn;if(typeof object.inspect=="function")return object.inspect}function getObjectTag(object){var tag=Object.prototype.toString.call(object).replace(/^\[object /,"").replace(/]$/,"");if(tag==="Object"&&typeof object.constructor=="function"){var name=object.constructor.name;if(typeof name=="string"&&name!=="")return name}return tag}},43800:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var nodejsCustomInspectSymbol=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):void 0;const __WEBPACK_DEFAULT_EXPORT__=nodejsCustomInspectSymbol},12890:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{aZ:()=>Location,ou:()=>Token,Ll:()=>isNode});function invariant(condition,message){var booleanCondition=Boolean(condition);if(!booleanCondition)throw new Error(message??"Unexpected invariant triggered.")}var nodejsCustomInspectSymbol=__webpack_require__(43800);function defineInspect(classObject){var fn=classObject.prototype.toJSON;typeof fn=="function"||invariant(0),classObject.prototype.inspect=fn,nodejsCustomInspectSymbol.A&&(classObject.prototype[nodejsCustomInspectSymbol.A]=fn)}var Location=function(){function Location2(startToken,endToken,source){this.start=startToken.start,this.end=endToken.end,this.startToken=startToken,this.endToken=endToken,this.source=source}var _proto=Location2.prototype;return _proto.toJSON=function(){return{start:this.start,end:this.end}},Location2}();defineInspect(Location);var Token=function(){function Token2(kind,start,end,line,column,prev,value){this.kind=kind,this.start=start,this.end=end,this.line=line,this.column=column,this.value=value,this.prev=prev,this.next=null}var _proto2=Token2.prototype;return _proto2.toJSON=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}},Token2}();defineInspect(Token);function isNode(maybeNode){return maybeNode!=null&&typeof maybeNode.kind=="string"}},21488:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{i$:()=>dedentBlockStringValue,yo:()=>printBlockString});function dedentBlockStringValue(rawString){var lines=rawString.split(/\r\n|[\n\r]/g),commonIndent=getBlockStringIndentation(rawString);if(commonIndent!==0)for(var i=1;i<lines.length;i++)lines[i]=lines[i].slice(commonIndent);for(var startLine=0;startLine<lines.length&&isBlank(lines[startLine]);)++startLine;for(var endLine=lines.length;endLine>startLine&&isBlank(lines[endLine-1]);)--endLine;return lines.slice(startLine,endLine).join(`
749
+ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):sourceKeySet||fragmentSourceMap.set(fragmentName,sourceKeySet=new Set),sourceKeySet.add(sourceKey),seenKeys.has(sourceKey)||(seenKeys.add(sourceKey),definitions.push(fragmentDefinition))}else definitions.push(fragmentDefinition)}),tslib_es6_assign(tslib_es6_assign({},ast),{definitions})}function stripLoc(doc){var workSet=new Set(doc.definitions);workSet.forEach(function(node){node.loc&&delete node.loc,Object.keys(node).forEach(function(key){var value=node[key];value&&typeof value=="object"&&workSet.add(value)})});var loc=doc.loc;return loc&&(delete loc.startToken,delete loc.endToken),doc}function parseDocument(source){var cacheKey=lib_normalize(source);if(!docCache.has(cacheKey)){var parsed=(0,parser.parse)(source,{experimentalFragmentVariables,allowLegacyFragmentVariables:experimentalFragmentVariables});if(!parsed||parsed.kind!=="Document")throw new Error("Not a valid GraphQL document.");docCache.set(cacheKey,stripLoc(processFragments(parsed)))}return docCache.get(cacheKey)}function gql(literals){for(var args=[],_i=1;_i<arguments.length;_i++)args[_i-1]=arguments[_i];typeof literals=="string"&&(literals=[literals]);var result=literals[0];return args.forEach(function(arg,i){arg&&arg.kind==="Document"?result+=arg.loc.source.body:result+=arg,result+=literals[i+1]}),parseDocument(result)}function resetCaches(){docCache.clear(),fragmentSourceMap.clear()}function disableFragmentWarnings(){printFragmentWarnings=!1}function enableExperimentalFragmentVariables(){experimentalFragmentVariables=!0}function disableExperimentalFragmentVariables(){experimentalFragmentVariables=!1}var extras={gql,resetCaches,disableFragmentWarnings,enableExperimentalFragmentVariables,disableExperimentalFragmentVariables};(function(gql_1){gql_1.gql=extras.gql,gql_1.resetCaches=extras.resetCaches,gql_1.disableFragmentWarnings=extras.disableFragmentWarnings,gql_1.enableExperimentalFragmentVariables=extras.enableExperimentalFragmentVariables,gql_1.disableExperimentalFragmentVariables=extras.disableExperimentalFragmentVariables})(gql||(gql={})),gql.default=gql;const graphql_tag_lib=null;setVerbosity(globalThis.__DEV__!==!1?"log":"silent");var rehackt=__webpack_require__(89515),rehackt_namespaceObject=__webpack_require__.t(rehackt,2),contextKey=canUseSymbol?Symbol.for("__APOLLO_CONTEXT__"):"__APOLLO_CONTEXT__";function getApolloContext(){invariantWrappers_invariant("createContext"in rehackt_namespaceObject,54);var context=rehackt.createContext[contextKey];return context||(Object.defineProperty(rehackt.createContext,contextKey,{value:context=rehackt.createContext({}),enumerable:!1,writable:!1,configurable:!0}),context.displayName="ApolloContext"),context}var resetApolloContext=getApolloContext,ApolloProvider=function(_a2){var client=_a2.client,children=_a2.children,ApolloContext=getApolloContext(),parentContext=rehackt.useContext(ApolloContext),context=rehackt.useMemo(function(){return tslib_es6_assign(tslib_es6_assign({},parentContext),{client:client||parentContext.client})},[parentContext,client]);return invariantWrappers_invariant(context.client,55),rehackt.createElement(ApolloContext.Provider,{value:context},children)},ApolloConsumer=function(props){var ApolloContext=getApolloContext();return rehackt.createElement(ApolloContext.Consumer,null,function(context){return invariantWrappers_invariant(context&&context.client,53),props.children(context.client)})};function useApolloClient(override){var context=rehackt.useContext(getApolloContext()),client=override||context.client;return invariantWrappers_invariant(!!client,58),client}var didWarnUncachedGetSnapshot=!1,uSESKey="useSyncExternalStore",realHook=rehackt_namespaceObject[uSESKey],useSyncExternalStore=realHook||function(subscribe,getSnapshot,getServerSnapshot){var value=getSnapshot();globalThis.__DEV__!==!1&&!didWarnUncachedGetSnapshot&&value!==getSnapshot()&&(didWarnUncachedGetSnapshot=!0,globalThis.__DEV__!==!1&&invariantWrappers_invariant.error(68));var _a2=rehackt.useState({inst:{value,getSnapshot}}),inst=_a2[0].inst,forceUpdate=_a2[1];return canUseLayoutEffect?rehackt.useLayoutEffect(function(){Object.assign(inst,{value,getSnapshot}),checkIfSnapshotChanged(inst)&&forceUpdate({inst})},[subscribe,value,getSnapshot]):Object.assign(inst,{value,getSnapshot}),rehackt.useEffect(function(){return checkIfSnapshotChanged(inst)&&forceUpdate({inst}),subscribe(function(){checkIfSnapshotChanged(inst)&&forceUpdate({inst})})},[subscribe]),value};function checkIfSnapshotChanged(_a2){var value=_a2.value,getSnapshot=_a2.getSnapshot;try{return value!==getSnapshot()}catch{return!0}}var DocumentType;(function(DocumentType2){DocumentType2[DocumentType2.Query=0]="Query",DocumentType2[DocumentType2.Mutation=1]="Mutation",DocumentType2[DocumentType2.Subscription=2]="Subscription"})(DocumentType||(DocumentType={}));var cache;function operationName(type){var name;switch(type){case DocumentType.Query:name="Query";break;case DocumentType.Mutation:name="Mutation";break;case DocumentType.Subscription:name="Subscription";break}return name}function parser_parser(document2){cache||(cache=new AutoCleanedWeakCache(cacheSizes.parser||1e3));var cached=cache.get(document2);if(cached)return cached;var variables,type,name;invariantWrappers_invariant(!!document2&&!!document2.kind,70,document2);for(var fragments=[],queries=[],mutations=[],subscriptions=[],_i=0,_a2=document2.definitions;_i<_a2.length;_i++){var x=_a2[_i];if(x.kind==="FragmentDefinition"){fragments.push(x);continue}if(x.kind==="OperationDefinition")switch(x.operation){case"query":queries.push(x);break;case"mutation":mutations.push(x);break;case"subscription":subscriptions.push(x);break}}invariantWrappers_invariant(!fragments.length||queries.length||mutations.length||subscriptions.length,71),invariantWrappers_invariant(queries.length+mutations.length+subscriptions.length<=1,72,document2,queries.length,subscriptions.length,mutations.length),type=queries.length?DocumentType.Query:DocumentType.Mutation,!queries.length&&!mutations.length&&(type=DocumentType.Subscription);var definitions=queries.length?queries:mutations.length?mutations:subscriptions;invariantWrappers_invariant(definitions.length===1,73,document2,definitions.length);var definition=definitions[0];variables=definition.variableDefinitions||[],definition.name&&definition.name.kind==="Name"?name=definition.name.value:name="data";var payload={name,type,variables};return cache.set(document2,payload),payload}parser_parser.resetCache=function(){cache=void 0},globalThis.__DEV__!==!1&&registerGlobalCache("parser",function(){return cache?cache.size:0});function verifyDocumentType(document2,type){var operation=parser_parser(document2),requiredOperationName=operationName(type),usedOperationName=operationName(operation.type);invariantWrappers_invariant(operation.type===type,74,requiredOperationName,requiredOperationName,usedOperationName)}var wrapperSymbol=Symbol.for("apollo.hook.wrappers");function wrapHook(hookName,useHook,clientOrObsQuery){var queryManager=clientOrObsQuery.queryManager,wrappers=queryManager&&queryManager[wrapperSymbol],wrapper=wrappers&&wrappers[hookName];return wrapper?wrapper(useHook):useHook}var useQuery_hasOwnProperty=Object.prototype.hasOwnProperty;function useQuery_noop(){}var lastWatchOptions=Symbol();function useQuery(query,options){return options===void 0&&(options=Object.create(null)),wrapHook("useQuery",_useQuery,useApolloClient(options&&options.client))(query,options)}function _useQuery(query,options){var _a2=useQueryInternals(query,options),result=_a2.result,obsQueryFields=_a2.obsQueryFields;return rehackt.useMemo(function(){return tslib_es6_assign(tslib_es6_assign({},result),obsQueryFields)},[result,obsQueryFields])}function useInternalState(client,query,options,renderPromises,makeWatchQueryOptions){function createInternalState(previous){var _a3;verifyDocumentType(query,DocumentType.Query);var internalState2={client,query,observable:renderPromises&&renderPromises.getSSRObservable(makeWatchQueryOptions())||client.watchQuery(getObsQueryOptions(void 0,client,options,makeWatchQueryOptions())),resultData:{previousData:(_a3=previous?.resultData.current)===null||_a3===void 0?void 0:_a3.data}};return internalState2}var _a2=rehackt.useState(createInternalState),internalState=_a2[0],updateInternalState=_a2[1];function onQueryExecuted(watchQueryOptions){var _a3,_b;Object.assign(internalState.observable,(_a3={},_a3[lastWatchOptions]=watchQueryOptions,_a3));var resultData=internalState.resultData;updateInternalState(tslib_es6_assign(tslib_es6_assign({},internalState),{query:watchQueryOptions.query,resultData:Object.assign(resultData,{previousData:((_b=resultData.current)===null||_b===void 0?void 0:_b.data)||resultData.previousData,current:void 0})}))}if(client!==internalState.client||query!==internalState.query){var newInternalState=createInternalState(internalState);return updateInternalState(newInternalState),[newInternalState,onQueryExecuted]}return[internalState,onQueryExecuted]}function useQueryInternals(query,options){var client=useApolloClient(options.client),renderPromises=rehackt.useContext(getApolloContext()).renderPromises,isSyncSSR=!!renderPromises,disableNetworkFetches=client.disableNetworkFetches,ssrAllowed=options.ssr!==!1&&!options.skip,partialRefetch=options.partialRefetch,makeWatchQueryOptions=createMakeWatchQueryOptions(client,query,options,isSyncSSR),_a2=useInternalState(client,query,options,renderPromises,makeWatchQueryOptions),_b=_a2[0],observable=_b.observable,resultData=_b.resultData,onQueryExecuted=_a2[1],watchQueryOptions=makeWatchQueryOptions(observable);useResubscribeIfNecessary(resultData,observable,client,options,watchQueryOptions);var obsQueryFields=rehackt.useMemo(function(){return bindObservableMethods(observable)},[observable]);useRegisterSSRObservable(observable,renderPromises,ssrAllowed);var result=useObservableSubscriptionResult(resultData,observable,client,options,watchQueryOptions,disableNetworkFetches,partialRefetch,isSyncSSR,{onCompleted:options.onCompleted||useQuery_noop,onError:options.onError||useQuery_noop});return{result,obsQueryFields,observable,resultData,client,onQueryExecuted}}function useObservableSubscriptionResult(resultData,observable,client,options,watchQueryOptions,disableNetworkFetches,partialRefetch,isSyncSSR,callbacks){var callbackRef=rehackt.useRef(callbacks);rehackt.useEffect(function(){callbackRef.current=callbacks});var resultOverride=(isSyncSSR||disableNetworkFetches)&&options.ssr===!1&&!options.skip?ssrDisabledResult:options.skip||watchQueryOptions.fetchPolicy==="standby"?skipStandbyResult:void 0,previousData=resultData.previousData,currentResultOverride=rehackt.useMemo(function(){return resultOverride&&toQueryResult(resultOverride,previousData,observable,client)},[client,observable,resultOverride,previousData]);return useSyncExternalStore(rehackt.useCallback(function(handleStoreChange){if(isSyncSSR)return function(){};var onNext=function(){var previousResult=resultData.current,result=observable.getCurrentResult();previousResult&&previousResult.loading===result.loading&&previousResult.networkStatus===result.networkStatus&&equal(previousResult.data,result.data)||setResult(result,resultData,observable,client,partialRefetch,handleStoreChange,callbackRef.current)},onError=function(error){if(subscription.current.unsubscribe(),subscription.current=observable.resubscribeAfterError(onNext,onError),!useQuery_hasOwnProperty.call(error,"graphQLErrors"))throw error;var previousResult=resultData.current;(!previousResult||previousResult&&previousResult.loading||!equal(error,previousResult.error))&&setResult({data:previousResult&&previousResult.data,error,loading:!1,networkStatus:NetworkStatus.error},resultData,observable,client,partialRefetch,handleStoreChange,callbackRef.current)},subscription={current:observable.subscribe(onNext,onError)};return function(){setTimeout(function(){return subscription.current.unsubscribe()})}},[disableNetworkFetches,isSyncSSR,observable,resultData,partialRefetch,client]),function(){return currentResultOverride||getCurrentResult(resultData,observable,callbackRef.current,partialRefetch,client)},function(){return currentResultOverride||getCurrentResult(resultData,observable,callbackRef.current,partialRefetch,client)})}function useRegisterSSRObservable(observable,renderPromises,ssrAllowed){renderPromises&&ssrAllowed&&(renderPromises.registerSSRObservable(observable),observable.getCurrentResult().loading&&renderPromises.addObservableQueryPromise(observable))}function useResubscribeIfNecessary(resultData,observable,client,options,watchQueryOptions){var _a2;observable[lastWatchOptions]&&!equal(observable[lastWatchOptions],watchQueryOptions)&&(observable.reobserve(getObsQueryOptions(observable,client,options,watchQueryOptions)),resultData.previousData=((_a2=resultData.current)===null||_a2===void 0?void 0:_a2.data)||resultData.previousData,resultData.current=void 0),observable[lastWatchOptions]=watchQueryOptions}function createMakeWatchQueryOptions(client,query,_a2,isSyncSSR){_a2===void 0&&(_a2={});var skip=_a2.skip,ssr=_a2.ssr,onCompleted=_a2.onCompleted,onError=_a2.onError,defaultOptions2=_a2.defaultOptions,otherOptions=__rest(_a2,["skip","ssr","onCompleted","onError","defaultOptions"]);return function(observable){var watchQueryOptions=Object.assign(otherOptions,{query});return isSyncSSR&&(watchQueryOptions.fetchPolicy==="network-only"||watchQueryOptions.fetchPolicy==="cache-and-network")&&(watchQueryOptions.fetchPolicy="cache-first"),watchQueryOptions.variables||(watchQueryOptions.variables={}),skip?(watchQueryOptions.initialFetchPolicy=watchQueryOptions.initialFetchPolicy||watchQueryOptions.fetchPolicy||getDefaultFetchPolicy(defaultOptions2,client.defaultOptions),watchQueryOptions.fetchPolicy="standby"):watchQueryOptions.fetchPolicy||(watchQueryOptions.fetchPolicy=observable?.options.initialFetchPolicy||getDefaultFetchPolicy(defaultOptions2,client.defaultOptions)),watchQueryOptions}}function getObsQueryOptions(observable,client,queryHookOptions,watchQueryOptions){var toMerge=[],globalDefaults=client.defaultOptions.watchQuery;return globalDefaults&&toMerge.push(globalDefaults),queryHookOptions.defaultOptions&&toMerge.push(queryHookOptions.defaultOptions),toMerge.push(compact(observable&&observable.options,watchQueryOptions)),toMerge.reduce(mergeOptions)}function setResult(nextResult,resultData,observable,client,partialRefetch,forceUpdate,callbacks){var previousResult=resultData.current;previousResult&&previousResult.data&&(resultData.previousData=previousResult.data),!nextResult.error&&isNonEmptyArray(nextResult.errors)&&(nextResult.error=new ApolloError({graphQLErrors:nextResult.errors})),resultData.current=toQueryResult(unsafeHandlePartialRefetch(nextResult,observable,partialRefetch),resultData.previousData,observable,client),forceUpdate(),handleErrorOrCompleted(nextResult,previousResult?.networkStatus,callbacks)}function handleErrorOrCompleted(result,previousNetworkStatus,callbacks){if(!result.loading){var error_1=toApolloError(result);Promise.resolve().then(function(){error_1?callbacks.onError(error_1):result.data&&previousNetworkStatus!==result.networkStatus&&result.networkStatus===NetworkStatus.ready&&callbacks.onCompleted(result.data)}).catch(function(error){globalThis.__DEV__!==!1&&invariantWrappers_invariant.warn(error)})}}function getCurrentResult(resultData,observable,callbacks,partialRefetch,client){return resultData.current||setResult(observable.getCurrentResult(),resultData,observable,client,partialRefetch,function(){},callbacks),resultData.current}function getDefaultFetchPolicy(queryHookDefaultOptions,clientDefaultOptions){var _a2;return queryHookDefaultOptions?.fetchPolicy||((_a2=clientDefaultOptions?.watchQuery)===null||_a2===void 0?void 0:_a2.fetchPolicy)||"cache-first"}function toApolloError(result){return isNonEmptyArray(result.errors)?new ApolloError({graphQLErrors:result.errors}):result.error}function toQueryResult(result,previousData,observable,client){var data=result.data,partial=result.partial,resultWithoutPartial=__rest(result,["data","partial"]),queryResult=tslib_es6_assign(tslib_es6_assign({data},resultWithoutPartial),{client,observable,variables:observable.variables,called:result!==ssrDisabledResult&&result!==skipStandbyResult,previousData});return queryResult}function unsafeHandlePartialRefetch(result,observable,partialRefetch){return result.partial&&partialRefetch&&!result.loading&&(!result.data||Object.keys(result.data).length===0)&&observable.options.fetchPolicy!=="cache-only"?(observable.refetch(),tslib_es6_assign(tslib_es6_assign({},result),{loading:!0,networkStatus:NetworkStatus.refetch})):result}var ssrDisabledResult=maybeDeepFreeze({loading:!0,data:void 0,error:void 0,networkStatus:NetworkStatus.loading}),skipStandbyResult=maybeDeepFreeze({loading:!1,data:void 0,error:void 0,networkStatus:NetworkStatus.ready});function bindObservableMethods(observable){return{refetch:observable.refetch.bind(observable),reobserve:observable.reobserve.bind(observable),fetchMore:observable.fetchMore.bind(observable),updateQuery:observable.updateQuery.bind(observable),startPolling:observable.startPolling.bind(observable),stopPolling:observable.stopPolling.bind(observable),subscribeToMore:observable.subscribeToMore.bind(observable)}}var useIsomorphicLayoutEffect=canUseDOM?rehackt.useLayoutEffect:rehackt.useEffect,EAGER_METHODS=["refetch","reobserve","fetchMore","updateQuery","startPolling","stopPolling","subscribeToMore"];function useLazyQuery(query,options){var _a2,execOptionsRef=rehackt.useRef(),optionsRef=rehackt.useRef(),queryRef=rehackt.useRef(),merged=mergeOptions(options,execOptionsRef.current||{}),document2=(_a2=merged?.query)!==null&&_a2!==void 0?_a2:query;optionsRef.current=options,queryRef.current=document2;var queryHookOptions=tslib_es6_assign(tslib_es6_assign({},merged),{skip:!execOptionsRef.current}),_b=useQueryInternals(document2,queryHookOptions),obsQueryFields=_b.obsQueryFields,useQueryResult=_b.result,client=_b.client,resultData=_b.resultData,observable=_b.observable,onQueryExecuted=_b.onQueryExecuted,initialFetchPolicy=observable.options.initialFetchPolicy||getDefaultFetchPolicy(queryHookOptions.defaultOptions,client.defaultOptions),forceUpdateState=rehackt.useReducer(function(tick){return tick+1},0)[1],eagerMethods=rehackt.useMemo(function(){for(var eagerMethods2={},_loop_1=function(key2){var method=obsQueryFields[key2];eagerMethods2[key2]=function(){return execOptionsRef.current||(execOptionsRef.current=Object.create(null),forceUpdateState()),method.apply(this,arguments)}},_i=0,EAGER_METHODS_1=EAGER_METHODS;_i<EAGER_METHODS_1.length;_i++){var key=EAGER_METHODS_1[_i];_loop_1(key)}return eagerMethods2},[forceUpdateState,obsQueryFields]),called=!!execOptionsRef.current,result=rehackt.useMemo(function(){return tslib_es6_assign(tslib_es6_assign(tslib_es6_assign({},useQueryResult),eagerMethods),{called})},[useQueryResult,eagerMethods,called]),execute2=rehackt.useCallback(function(executeOptions){execOptionsRef.current=executeOptions?tslib_es6_assign(tslib_es6_assign({},executeOptions),{fetchPolicy:executeOptions.fetchPolicy||initialFetchPolicy}):{fetchPolicy:initialFetchPolicy};var options2=mergeOptions(optionsRef.current,tslib_es6_assign({query:queryRef.current},execOptionsRef.current)),promise=executeQuery(resultData,observable,client,document2,tslib_es6_assign(tslib_es6_assign({},options2),{skip:!1}),onQueryExecuted).then(function(queryResult){return Object.assign(queryResult,eagerMethods)});return promise.catch(function(){}),promise},[client,document2,eagerMethods,initialFetchPolicy,observable,resultData,onQueryExecuted]),executeRef=rehackt.useRef(execute2);useIsomorphicLayoutEffect(function(){executeRef.current=execute2});var stableExecute=rehackt.useCallback(function(){for(var args=[],_i=0;_i<arguments.length;_i++)args[_i]=arguments[_i];return executeRef.current.apply(executeRef,args)},[]);return[stableExecute,result]}function executeQuery(resultData,observable,client,currentQuery,options,onQueryExecuted){var query=options.query||currentQuery,watchQueryOptions=createMakeWatchQueryOptions(client,query,options,!1)(observable),concast=observable.reobserveAsConcast(getObsQueryOptions(observable,client,options,watchQueryOptions));return onQueryExecuted(watchQueryOptions),new Promise(function(resolve){var result;concast.subscribe({next:function(value){result=value},error:function(){resolve(toQueryResult(observable.getCurrentResult(),resultData.previousData,observable,client))},complete:function(){resolve(toQueryResult(observable.maskResult(result),resultData.previousData,observable,client))}})})}function useMutation(mutation,options){var client=useApolloClient(options?.client);verifyDocumentType(mutation,DocumentType.Mutation);var _a2=rehackt.useState({called:!1,loading:!1,client}),result=_a2[0],setResult2=_a2[1],ref=rehackt.useRef({result,mutationId:0,isMounted:!0,client,mutation,options});useIsomorphicLayoutEffect(function(){Object.assign(ref.current,{client,options,mutation})});var execute2=rehackt.useCallback(function(executeOptions){executeOptions===void 0&&(executeOptions={});var _a3=ref.current,options2=_a3.options,mutation2=_a3.mutation,baseOptions=tslib_es6_assign(tslib_es6_assign({},options2),{mutation:mutation2}),client2=executeOptions.client||ref.current.client;!ref.current.result.loading&&!baseOptions.ignoreResults&&ref.current.isMounted&&setResult2(ref.current.result={loading:!0,error:void 0,data:void 0,called:!0,client:client2});var mutationId=++ref.current.mutationId,clientOptions=mergeOptions(baseOptions,executeOptions);return client2.mutate(clientOptions).then(function(response){var _a4,_b,data=response.data,errors=response.errors,error=errors&&errors.length>0?new ApolloError({graphQLErrors:errors}):void 0,onError=executeOptions.onError||((_a4=ref.current.options)===null||_a4===void 0?void 0:_a4.onError);if(error&&onError&&onError(error,clientOptions),mutationId===ref.current.mutationId&&!clientOptions.ignoreResults){var result_1={called:!0,loading:!1,data,error,client:client2};ref.current.isMounted&&!equal(ref.current.result,result_1)&&setResult2(ref.current.result=result_1)}var onCompleted=executeOptions.onCompleted||((_b=ref.current.options)===null||_b===void 0?void 0:_b.onCompleted);return error||onCompleted?.(response.data,clientOptions),response}).catch(function(error){var _a4;if(mutationId===ref.current.mutationId&&ref.current.isMounted){var result_2={loading:!1,error,data:void 0,called:!0,client:client2};equal(ref.current.result,result_2)||setResult2(ref.current.result=result_2)}var onError=executeOptions.onError||((_a4=ref.current.options)===null||_a4===void 0?void 0:_a4.onError);if(onError)return onError(error,clientOptions),{data:void 0,errors:error};throw error})},[]),reset=rehackt.useCallback(function(){if(ref.current.isMounted){var result_3={called:!1,loading:!1,client:ref.current.client};Object.assign(ref.current,{mutationId:0,result:result_3}),setResult2(result_3)}},[]);return rehackt.useEffect(function(){var current=ref.current;return current.isMounted=!0,function(){current.isMounted=!1}},[]),[execute2,tslib_es6_assign({reset},result)]}function useDeepMemo(memoFn,deps){var ref=rehackt.useRef();return(!ref.current||!equal(ref.current.deps,deps))&&(ref.current={value:memoFn(),deps}),ref.current.value}function useSubscription(subscription,options){options===void 0&&(options=Object.create(null));var hasIssuedDeprecationWarningRef=rehackt.useRef(!1),client=useApolloClient(options.client);verifyDocumentType(subscription,DocumentType.Subscription),hasIssuedDeprecationWarningRef.current||(hasIssuedDeprecationWarningRef.current=!0,options.onSubscriptionData&&globalThis.__DEV__!==!1&&invariantWrappers_invariant.warn(options.onData?61:62),options.onSubscriptionComplete&&globalThis.__DEV__!==!1&&invariantWrappers_invariant.warn(options.onComplete?63:64));var skip=options.skip,fetchPolicy=options.fetchPolicy,errorPolicy=options.errorPolicy,shouldResubscribe=options.shouldResubscribe,context=options.context,extensions=options.extensions,ignoreResults=options.ignoreResults,variables=useDeepMemo(function(){return options.variables},[options.variables]),recreate=function(){return createSubscription(client,subscription,variables,fetchPolicy,errorPolicy,context,extensions)},_a2=rehackt.useState(options.skip?null:recreate),observable=_a2[0],setObservable=_a2[1],recreateRef=rehackt.useRef(recreate);useIsomorphicLayoutEffect(function(){recreateRef.current=recreate}),skip?observable&&setObservable(observable=null):(!observable||(client!==observable.__.client||subscription!==observable.__.query||fetchPolicy!==observable.__.fetchPolicy||errorPolicy!==observable.__.errorPolicy||!equal(variables,observable.__.variables))&&(typeof shouldResubscribe=="function"?!!shouldResubscribe(options):shouldResubscribe)!==!1)&&setObservable(observable=recreate());var optionsRef=rehackt.useRef(options);rehackt.useEffect(function(){optionsRef.current=options});var fallbackLoading=!skip&&!ignoreResults,fallbackResult=rehackt.useMemo(function(){return{loading:fallbackLoading,error:void 0,data:void 0,variables}},[fallbackLoading,variables]),ignoreResultsRef=rehackt.useRef(ignoreResults);useIsomorphicLayoutEffect(function(){ignoreResultsRef.current=ignoreResults});var ret=useSyncExternalStore(rehackt.useCallback(function(update){if(!observable)return function(){};var subscriptionStopped=!1,variables2=observable.__.variables,client2=observable.__.client,subscription2=observable.subscribe({next:function(fetchResult){var _a3,_b;if(!subscriptionStopped){var result={loading:!1,data:fetchResult.data,error:toApolloError(fetchResult),variables:variables2};observable.__.setResult(result),ignoreResultsRef.current||update(),result.error?(_b=(_a3=optionsRef.current).onError)===null||_b===void 0||_b.call(_a3,result.error):optionsRef.current.onData?optionsRef.current.onData({client:client2,data:result}):optionsRef.current.onSubscriptionData&&optionsRef.current.onSubscriptionData({client:client2,subscriptionData:result})}},error:function(error){var _a3,_b;error=error instanceof ApolloError?error:new ApolloError({protocolErrors:[error]}),subscriptionStopped||(observable.__.setResult({loading:!1,data:void 0,error,variables:variables2}),ignoreResultsRef.current||update(),(_b=(_a3=optionsRef.current).onError)===null||_b===void 0||_b.call(_a3,error))},complete:function(){subscriptionStopped||(optionsRef.current.onComplete?optionsRef.current.onComplete():optionsRef.current.onSubscriptionComplete&&optionsRef.current.onSubscriptionComplete())}});return function(){subscriptionStopped=!0,setTimeout(function(){subscription2.unsubscribe()})}},[observable]),function(){return observable&&!skip&&!ignoreResults?observable.__.result:fallbackResult},function(){return fallbackResult}),restart=rehackt.useCallback(function(){invariantWrappers_invariant(!optionsRef.current.skip,65),setObservable(recreateRef.current())},[optionsRef,recreateRef]);return rehackt.useMemo(function(){return tslib_es6_assign(tslib_es6_assign({},ret),{restart})},[ret,restart])}function createSubscription(client,query,variables,fetchPolicy,errorPolicy,context,extensions){var options={query,variables,fetchPolicy,errorPolicy,context,extensions},__=tslib_es6_assign(tslib_es6_assign({},options),{client,result:{loading:!0,data:void 0,error:void 0,variables},setResult:function(result){__.result=result}}),observable=null;return Object.assign(new Observable(function(observer){observable||(observable=client.subscribe(options));var sub=observable.subscribe(observer);return function(){return sub.unsubscribe()}}),{__})}function useReactiveVar(rv){return useSyncExternalStore(rehackt.useCallback(function(update){return rv.onNextChange(function onNext(){update(),rv.onNextChange(onNext)})},[rv]),rv,rv)}function useFragment(options){return wrapHook("useFragment",_useFragment,useApolloClient(options.client))(options)}function _useFragment(options){var client=useApolloClient(options.client),cache2=client.cache,from2=options.from,rest=__rest(options,["from"]),id=rehackt.useMemo(function(){return typeof from2=="string"?from2:from2===null?null:cache2.identify(from2)},[cache2,from2]),stableOptions=useDeepMemo(function(){return tslib_es6_assign(tslib_es6_assign({},rest),{from:id})},[rest,id]),diff=rehackt.useMemo(function(){var fragment=stableOptions.fragment,fragmentName=stableOptions.fragmentName,from3=stableOptions.from,_a2=stableOptions.optimistic,optimistic=_a2===void 0?!0:_a2;if(from3===null)return{result:diffToResult({result:{},complete:!1})};var cache3=client.cache,diff2=cache3.diff(tslib_es6_assign(tslib_es6_assign({},stableOptions),{returnPartialData:!0,id:from3,query:cache3.getFragmentDoc(fragment,fragmentName),optimistic}));return{result:diffToResult(tslib_es6_assign(tslib_es6_assign({},diff2),{result:client.queryManager.maskFragment({fragment,fragmentName,data:diff2.result})}))}},[client,stableOptions]),getSnapshot=rehackt.useCallback(function(){return diff.result},[diff]);return useSyncExternalStore(rehackt.useCallback(function(forceUpdate){var lastTimeout=0,subscription=stableOptions.from===null?null:client.watchFragment(stableOptions).subscribe({next:function(result){lib(result,diff.result)||(diff.result=result,clearTimeout(lastTimeout),lastTimeout=setTimeout(forceUpdate))}});return function(){subscription?.unsubscribe(),clearTimeout(lastTimeout)}},[client,stableOptions,diff]),getSnapshot,getSnapshot)}function diffToResult(diff){var result={data:diff.result,complete:!!diff.complete};return diff.missing&&(result.missing=mergeDeepArray(diff.missing.map(function(error){return error.missing}))),result}function createFulfilledPromise(value){var promise=Promise.resolve(value);return promise.status="fulfilled",promise.value=value,promise}function createRejectedPromise(reason){var promise=Promise.reject(reason);return promise.catch(function(){}),promise.status="rejected",promise.reason=reason,promise}function isStatefulPromise(promise){return"status"in promise}function wrapPromiseWithState(promise){if(isStatefulPromise(promise))return promise;var pendingPromise=promise;return pendingPromise.status="pending",pendingPromise.then(function(value){if(pendingPromise.status==="pending"){var fulfilledPromise=pendingPromise;fulfilledPromise.status="fulfilled",fulfilledPromise.value=value}},function(reason){if(pendingPromise.status==="pending"){var rejectedPromise=pendingPromise;rejectedPromise.status="rejected",rejectedPromise.reason=reason}}),promise}var useKey="use",_use_realHook=rehackt_namespaceObject[useKey],__use=_use_realHook||function(promise){var statefulPromise=wrapPromiseWithState(promise);switch(statefulPromise.status){case"pending":throw statefulPromise;case"rejected":throw statefulPromise.reason;case"fulfilled":return statefulPromise.value}},QUERY_REFERENCE_SYMBOL=Symbol(),PROMISE_SYMBOL=Symbol();function wrapQueryRef(internalQueryRef){var _a2,ref=(_a2={toPromise:function(){return getWrappedPromise(ref).then(function(){return ref})}},_a2[QUERY_REFERENCE_SYMBOL]=internalQueryRef,_a2[PROMISE_SYMBOL]=internalQueryRef.promise,_a2);return ref}function assertWrappedQueryRef(queryRef){invariantWrappers_invariant(!queryRef||QUERY_REFERENCE_SYMBOL in queryRef,69)}function getWrappedPromise(queryRef){var internalQueryRef=unwrapQueryRef(queryRef);return internalQueryRef.promise.status==="fulfilled"?internalQueryRef.promise:queryRef[PROMISE_SYMBOL]}function unwrapQueryRef(queryRef){return queryRef[QUERY_REFERENCE_SYMBOL]}function updateWrappedQueryRef(queryRef,promise){queryRef[PROMISE_SYMBOL]=promise}var OBSERVED_CHANGED_OPTIONS=["canonizeResults","context","errorPolicy","fetchPolicy","refetchWritePolicy","returnPartialData"],InternalQueryReference=function(){function InternalQueryReference2(observable,options){var _this=this;this.key={},this.listeners=new Set,this.references=0,this.softReferences=0,this.handleNext=this.handleNext.bind(this),this.handleError=this.handleError.bind(this),this.dispose=this.dispose.bind(this),this.observable=observable,options.onDispose&&(this.onDispose=options.onDispose),this.setResult(),this.subscribeToQuery();var startDisposeTimer=function(){var _a2;_this.references||(_this.autoDisposeTimeoutId=setTimeout(_this.dispose,(_a2=options.autoDisposeTimeoutMs)!==null&&_a2!==void 0?_a2:3e4))};this.promise.then(startDisposeTimer,startDisposeTimer)}return Object.defineProperty(InternalQueryReference2.prototype,"disposed",{get:function(){return this.subscription.closed},enumerable:!1,configurable:!0}),Object.defineProperty(InternalQueryReference2.prototype,"watchQueryOptions",{get:function(){return this.observable.options},enumerable:!1,configurable:!0}),InternalQueryReference2.prototype.reinitialize=function(){var observable=this.observable,originalFetchPolicy=this.watchQueryOptions.fetchPolicy,avoidNetworkRequests=originalFetchPolicy==="no-cache"||originalFetchPolicy==="standby";try{if(avoidNetworkRequests?observable.silentSetOptions({fetchPolicy:"standby"}):(observable.resetLastResults(),observable.silentSetOptions({fetchPolicy:"cache-first"})),this.subscribeToQuery(),avoidNetworkRequests)return;observable.resetDiff(),this.setResult()}finally{observable.silentSetOptions({fetchPolicy:originalFetchPolicy})}},InternalQueryReference2.prototype.retain=function(){var _this=this;this.references++,clearTimeout(this.autoDisposeTimeoutId);var disposed=!1;return function(){disposed||(disposed=!0,_this.references--,setTimeout(function(){_this.references||_this.dispose()}))}},InternalQueryReference2.prototype.softRetain=function(){var _this=this;this.softReferences++;var disposed=!1;return function(){disposed||(disposed=!0,_this.softReferences--,setTimeout(function(){!_this.softReferences&&!_this.references&&_this.dispose()}))}},InternalQueryReference2.prototype.didChangeOptions=function(watchQueryOptions){var _this=this;return OBSERVED_CHANGED_OPTIONS.some(function(option){return option in watchQueryOptions&&!equal(_this.watchQueryOptions[option],watchQueryOptions[option])})},InternalQueryReference2.prototype.applyOptions=function(watchQueryOptions){var _a2=this.watchQueryOptions,currentFetchPolicy=_a2.fetchPolicy,currentCanonizeResults=_a2.canonizeResults;return currentFetchPolicy==="standby"&&currentFetchPolicy!==watchQueryOptions.fetchPolicy?this.initiateFetch(this.observable.reobserve(watchQueryOptions)):(this.observable.silentSetOptions(watchQueryOptions),currentCanonizeResults!==watchQueryOptions.canonizeResults&&(this.result=tslib_es6_assign(tslib_es6_assign({},this.result),this.observable.getCurrentResult()),this.promise=createFulfilledPromise(this.result))),this.promise},InternalQueryReference2.prototype.listen=function(listener){var _this=this;return this.listeners.add(listener),function(){_this.listeners.delete(listener)}},InternalQueryReference2.prototype.refetch=function(variables){return this.initiateFetch(this.observable.refetch(variables))},InternalQueryReference2.prototype.fetchMore=function(options){return this.initiateFetch(this.observable.fetchMore(options))},InternalQueryReference2.prototype.dispose=function(){this.subscription.unsubscribe(),this.onDispose()},InternalQueryReference2.prototype.onDispose=function(){},InternalQueryReference2.prototype.handleNext=function(result){var _a2;switch(this.promise.status){case"pending":{result.data===void 0&&(result.data=this.result.data),this.result=result,(_a2=this.resolve)===null||_a2===void 0||_a2.call(this,result);break}default:{if(result.data===this.result.data&&result.networkStatus===this.result.networkStatus)return;result.data===void 0&&(result.data=this.result.data),this.result=result,this.promise=createFulfilledPromise(result),this.deliver(this.promise);break}}},InternalQueryReference2.prototype.handleError=function(error){var _a2;switch(this.subscription.unsubscribe(),this.subscription=this.observable.resubscribeAfterError(this.handleNext,this.handleError),this.promise.status){case"pending":{(_a2=this.reject)===null||_a2===void 0||_a2.call(this,error);break}default:this.promise=createRejectedPromise(error),this.deliver(this.promise)}},InternalQueryReference2.prototype.deliver=function(promise){this.listeners.forEach(function(listener){return listener(promise)})},InternalQueryReference2.prototype.initiateFetch=function(returnedPromise){var _this=this;return this.promise=this.createPendingPromise(),this.promise.catch(function(){}),returnedPromise.then(function(){setTimeout(function(){var _a2;_this.promise.status==="pending"&&(_this.result=_this.observable.getCurrentResult(),(_a2=_this.resolve)===null||_a2===void 0||_a2.call(_this,_this.result))})}).catch(function(error){var _a2;return(_a2=_this.reject)===null||_a2===void 0?void 0:_a2.call(_this,error)}),returnedPromise},InternalQueryReference2.prototype.subscribeToQuery=function(){var _this=this;this.subscription=this.observable.filter(function(result){return!equal(result.data,{})&&!equal(result,_this.result)}).subscribe(this.handleNext,this.handleError)},InternalQueryReference2.prototype.setResult=function(){var result=this.observable.getCurrentResult(!1);equal(result,this.result)||(this.result=result,this.promise=result.data&&(!result.partial||this.watchQueryOptions.returnPartialData)?createFulfilledPromise(result):this.createPendingPromise())},InternalQueryReference2.prototype.createPendingPromise=function(){var _this=this;return wrapPromiseWithState(new Promise(function(resolve,reject){_this.resolve=resolve,_this.reject=reject}))},InternalQueryReference2}(),SuspenseCache=function(){function SuspenseCache2(options){options===void 0&&(options=Object.create(null)),this.queryRefs=new Trie(canUseWeakMap),this.options=options}return SuspenseCache2.prototype.getQueryRef=function(cacheKey,createObservable){var ref=this.queryRefs.lookupArray(cacheKey);return ref.current||(ref.current=new InternalQueryReference(createObservable(),{autoDisposeTimeoutMs:this.options.autoDisposeTimeoutMs,onDispose:function(){delete ref.current}})),ref.current},SuspenseCache2.prototype.add=function(cacheKey,queryRef){var ref=this.queryRefs.lookupArray(cacheKey);ref.current=queryRef},SuspenseCache2}(),suspenseCacheSymbol=Symbol.for("apollo.suspenseCache");function getSuspenseCache(client){var _a2;return client[suspenseCacheSymbol]||(client[suspenseCacheSymbol]=new SuspenseCache((_a2=client.defaultOptions.react)===null||_a2===void 0?void 0:_a2.suspense)),client[suspenseCacheSymbol]}var skipToken=Symbol.for("apollo.skipToken");function useSuspenseQuery(query,options){return options===void 0&&(options=Object.create(null)),wrapHook("useSuspenseQuery",_useSuspenseQuery,useApolloClient(typeof options=="object"?options.client:void 0))(query,options)}function _useSuspenseQuery(query,options){var client=useApolloClient(options.client),suspenseCache=getSuspenseCache(client),watchQueryOptions=useWatchQueryOptions({client,query,options}),fetchPolicy=watchQueryOptions.fetchPolicy,variables=watchQueryOptions.variables,_a2=options.queryKey,queryKey=_a2===void 0?[]:_a2,cacheKey=__spreadArray([query,canonicalStringify(variables)],[].concat(queryKey),!0),queryRef=suspenseCache.getQueryRef(cacheKey,function(){return client.watchQuery(watchQueryOptions)}),_b=rehackt.useState([queryRef.key,queryRef.promise]),current=_b[0],setPromise=_b[1];current[0]!==queryRef.key&&(current[0]=queryRef.key,current[1]=queryRef.promise);var promise=current[1];queryRef.didChangeOptions(watchQueryOptions)&&(current[1]=promise=queryRef.applyOptions(watchQueryOptions)),rehackt.useEffect(function(){var dispose=queryRef.retain(),removeListener=queryRef.listen(function(promise2){setPromise([queryRef.key,promise2])});return function(){removeListener(),dispose()}},[queryRef]);var skipResult=rehackt.useMemo(function(){var error=useSuspenseQuery_toApolloError(queryRef.result);return{loading:!1,data:queryRef.result.data,networkStatus:error?NetworkStatus.error:NetworkStatus.ready,error}},[queryRef.result]),result=fetchPolicy==="standby"?skipResult:__use(promise),fetchMore=rehackt.useCallback(function(options2){var promise2=queryRef.fetchMore(options2);return setPromise([queryRef.key,queryRef.promise]),promise2},[queryRef]),refetch=rehackt.useCallback(function(variables2){var promise2=queryRef.refetch(variables2);return setPromise([queryRef.key,queryRef.promise]),promise2},[queryRef]),subscribeToMore=queryRef.observable.subscribeToMore;return rehackt.useMemo(function(){return{client,data:result.data,error:useSuspenseQuery_toApolloError(result),networkStatus:result.networkStatus,fetchMore,refetch,subscribeToMore}},[client,fetchMore,refetch,result,subscribeToMore])}function validateOptions(options){var query=options.query,fetchPolicy=options.fetchPolicy,returnPartialData=options.returnPartialData;verifyDocumentType(query,DocumentType.Query),validateFetchPolicy(fetchPolicy),validatePartialDataReturn(fetchPolicy,returnPartialData)}function validateFetchPolicy(fetchPolicy){fetchPolicy===void 0&&(fetchPolicy="cache-first");var supportedFetchPolicies=["cache-first","network-only","no-cache","cache-and-network"];invariantWrappers_invariant(supportedFetchPolicies.includes(fetchPolicy),66,fetchPolicy)}function validatePartialDataReturn(fetchPolicy,returnPartialData){fetchPolicy==="no-cache"&&returnPartialData&&globalThis.__DEV__!==!1&&invariantWrappers_invariant.warn(67)}function useSuspenseQuery_toApolloError(result){return isNonEmptyArray(result.errors)?new ApolloError({graphQLErrors:result.errors}):result.error}function useWatchQueryOptions(_a2){var client=_a2.client,query=_a2.query,options=_a2.options;return useDeepMemo(function(){var _a3;if(options===skipToken)return{query,fetchPolicy:"standby"};var fetchPolicy=options.fetchPolicy||((_a3=client.defaultOptions.watchQuery)===null||_a3===void 0?void 0:_a3.fetchPolicy)||"cache-first",watchQueryOptions=tslib_es6_assign(tslib_es6_assign({},options),{fetchPolicy,query,notifyOnNetworkStatusChange:!1,nextFetchPolicy:void 0});return globalThis.__DEV__!==!1&&validateOptions(watchQueryOptions),options.skip&&(watchQueryOptions.fetchPolicy="standby"),watchQueryOptions},[client,options,query])}function useBackgroundQuery(query,options){return options===void 0&&(options=Object.create(null)),wrapHook("useBackgroundQuery",_useBackgroundQuery,useApolloClient(typeof options=="object"?options.client:void 0))(query,options)}function _useBackgroundQuery(query,options){var client=useApolloClient(options.client),suspenseCache=getSuspenseCache(client),watchQueryOptions=useWatchQueryOptions({client,query,options}),fetchPolicy=watchQueryOptions.fetchPolicy,variables=watchQueryOptions.variables,_a2=options.queryKey,queryKey=_a2===void 0?[]:_a2,didFetchResult=rehackt.useRef(fetchPolicy!=="standby");didFetchResult.current||(didFetchResult.current=fetchPolicy!=="standby");var cacheKey=__spreadArray([query,canonicalStringify(variables)],[].concat(queryKey),!0),queryRef=suspenseCache.getQueryRef(cacheKey,function(){return client.watchQuery(watchQueryOptions)}),_b=rehackt.useState(wrapQueryRef(queryRef)),wrappedQueryRef=_b[0],setWrappedQueryRef=_b[1];if(unwrapQueryRef(wrappedQueryRef)!==queryRef&&setWrappedQueryRef(wrapQueryRef(queryRef)),queryRef.didChangeOptions(watchQueryOptions)){var promise=queryRef.applyOptions(watchQueryOptions);updateWrappedQueryRef(wrappedQueryRef,promise)}rehackt.useEffect(function(){var id=setTimeout(function(){queryRef.disposed&&suspenseCache.add(cacheKey,queryRef)});return function(){return clearTimeout(id)}});var fetchMore=rehackt.useCallback(function(options2){var promise2=queryRef.fetchMore(options2);return setWrappedQueryRef(wrapQueryRef(queryRef)),promise2},[queryRef]),refetch=rehackt.useCallback(function(variables2){var promise2=queryRef.refetch(variables2);return setWrappedQueryRef(wrapQueryRef(queryRef)),promise2},[queryRef]);return rehackt.useEffect(function(){return queryRef.softRetain()},[queryRef]),[didFetchResult.current?wrappedQueryRef:void 0,{fetchMore,refetch,subscribeToMore:queryRef.observable.subscribeToMore}]}var Ctx;function useRenderGuard_noop(){}function useRenderGuard(){return Ctx||(Ctx=rehackt.createContext(null)),rehackt.useCallback(function(){var orig=console.error;try{return console.error=useRenderGuard_noop,rehackt.useContext(Ctx),!0}catch{return!1}finally{console.error=orig}},[])}function useLoadableQuery(query,options){options===void 0&&(options=Object.create(null));var client=useApolloClient(options.client),suspenseCache=getSuspenseCache(client),watchQueryOptions=useWatchQueryOptions({client,query,options}),_a2=options.queryKey,queryKey=_a2===void 0?[]:_a2,_b=rehackt.useState(null),queryRef=_b[0],setQueryRef=_b[1];assertWrappedQueryRef(queryRef);var internalQueryRef=queryRef&&unwrapQueryRef(queryRef);if(queryRef&&internalQueryRef?.didChangeOptions(watchQueryOptions)){var promise=internalQueryRef.applyOptions(watchQueryOptions);updateWrappedQueryRef(queryRef,promise)}var calledDuringRender=useRenderGuard(),fetchMore=rehackt.useCallback(function(options2){if(!internalQueryRef)throw new Error("The query has not been loaded. Please load the query.");var promise2=internalQueryRef.fetchMore(options2);return setQueryRef(wrapQueryRef(internalQueryRef)),promise2},[internalQueryRef]),refetch=rehackt.useCallback(function(options2){if(!internalQueryRef)throw new Error("The query has not been loaded. Please load the query.");var promise2=internalQueryRef.refetch(options2);return setQueryRef(wrapQueryRef(internalQueryRef)),promise2},[internalQueryRef]),loadQuery=rehackt.useCallback(function(){for(var args=[],_i=0;_i<arguments.length;_i++)args[_i]=arguments[_i];invariantWrappers_invariant(!calledDuringRender(),59);var variables=args[0],cacheKey=__spreadArray([query,canonicalStringify(variables)],[].concat(queryKey),!0),queryRef2=suspenseCache.getQueryRef(cacheKey,function(){return client.watchQuery(tslib_es6_assign(tslib_es6_assign({},watchQueryOptions),{variables}))});setQueryRef(wrapQueryRef(queryRef2))},[query,queryKey,suspenseCache,watchQueryOptions,calledDuringRender,client]),subscribeToMore=rehackt.useCallback(function(options2){return invariantWrappers_invariant(internalQueryRef,60),internalQueryRef.observable.subscribeToMore(options2)},[internalQueryRef]),reset=rehackt.useCallback(function(){setQueryRef(null)},[]);return[loadQuery,queryRef,{fetchMore,refetch,reset,subscribeToMore}]}function useQueryRefHandlers(queryRef){var unwrapped=unwrapQueryRef(queryRef);return wrapHook("useQueryRefHandlers",_useQueryRefHandlers,unwrapped?unwrapped.observable:useApolloClient())(queryRef)}function _useQueryRefHandlers(queryRef){assertWrappedQueryRef(queryRef);var _a2=rehackt.useState(queryRef),previousQueryRef=_a2[0],setPreviousQueryRef=_a2[1],_b=rehackt.useState(queryRef),wrappedQueryRef=_b[0],setWrappedQueryRef=_b[1],internalQueryRef=unwrapQueryRef(queryRef);previousQueryRef!==queryRef?(setPreviousQueryRef(queryRef),setWrappedQueryRef(queryRef)):updateWrappedQueryRef(queryRef,getWrappedPromise(wrappedQueryRef));var refetch=rehackt.useCallback(function(variables){var promise=internalQueryRef.refetch(variables);return setWrappedQueryRef(wrapQueryRef(internalQueryRef)),promise},[internalQueryRef]),fetchMore=rehackt.useCallback(function(options){var promise=internalQueryRef.fetchMore(options);return setWrappedQueryRef(wrapQueryRef(internalQueryRef)),promise},[internalQueryRef]);return{refetch,fetchMore,subscribeToMore:internalQueryRef.observable.subscribeToMore}}function useReadQuery(queryRef){var unwrapped=unwrapQueryRef(queryRef);return wrapHook("useReadQuery",_useReadQuery,unwrapped?unwrapped.observable:useApolloClient())(queryRef)}function _useReadQuery(queryRef){assertWrappedQueryRef(queryRef);var internalQueryRef=rehackt.useMemo(function(){return unwrapQueryRef(queryRef)},[queryRef]),getPromise=rehackt.useCallback(function(){return getWrappedPromise(queryRef)},[queryRef]);internalQueryRef.disposed&&(internalQueryRef.reinitialize(),updateWrappedQueryRef(queryRef,internalQueryRef.promise)),rehackt.useEffect(function(){return internalQueryRef.retain()},[internalQueryRef]);var promise=useSyncExternalStore(rehackt.useCallback(function(forceUpdate){return internalQueryRef.listen(function(promise2){updateWrappedQueryRef(queryRef,promise2),forceUpdate()})},[internalQueryRef,queryRef]),getPromise,getPromise),result=__use(promise);return rehackt.useMemo(function(){return{data:result.data,networkStatus:result.networkStatus,error:useSuspenseQuery_toApolloError(result)}},[result])}function createQueryPreloader(client){return wrapHook("createQueryPreloader",_createQueryPreloader,client)(client)}var _createQueryPreloader=function(client){return function(query,options){var _a2,_b;options===void 0&&(options=Object.create(null));var queryRef=new InternalQueryReference(client.watchQuery(tslib_es6_assign(tslib_es6_assign({},options),{query})),{autoDisposeTimeoutMs:(_b=(_a2=client.defaultOptions.react)===null||_a2===void 0?void 0:_a2.suspense)===null||_b===void 0?void 0:_b.autoDisposeTimeoutMs});return wrapQueryRef(queryRef)}}},6188:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>inspect});var _nodejsCustomInspectSymbol_mjs__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(43800);function _typeof(obj){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof=function(obj2){return typeof obj2}:_typeof=function(obj2){return obj2&&typeof Symbol=="function"&&obj2.constructor===Symbol&&obj2!==Symbol.prototype?"symbol":typeof obj2},_typeof(obj)}var MAX_ARRAY_LENGTH=10,MAX_RECURSIVE_DEPTH=2;function inspect(value){return formatValue(value,[])}function formatValue(value,seenValues){switch(_typeof(value)){case"string":return JSON.stringify(value);case"function":return value.name?"[function ".concat(value.name,"]"):"[function]";case"object":return value===null?"null":formatObjectValue(value,seenValues);default:return String(value)}}function formatObjectValue(value,previouslySeenValues){if(previouslySeenValues.indexOf(value)!==-1)return"[Circular]";var seenValues=[].concat(previouslySeenValues,[value]),customInspectFn=getCustomFn(value);if(customInspectFn!==void 0){var customValue=customInspectFn.call(value);if(customValue!==value)return typeof customValue=="string"?customValue:formatValue(customValue,seenValues)}else if(Array.isArray(value))return formatArray(value,seenValues);return formatObject(value,seenValues)}function formatObject(object,seenValues){var keys=Object.keys(object);if(keys.length===0)return"{}";if(seenValues.length>MAX_RECURSIVE_DEPTH)return"["+getObjectTag(object)+"]";var properties=keys.map(function(key){var value=formatValue(object[key],seenValues);return key+": "+value});return"{ "+properties.join(", ")+" }"}function formatArray(array,seenValues){if(array.length===0)return"[]";if(seenValues.length>MAX_RECURSIVE_DEPTH)return"[Array]";for(var len=Math.min(MAX_ARRAY_LENGTH,array.length),remaining=array.length-len,items=[],i=0;i<len;++i)items.push(formatValue(array[i],seenValues));return remaining===1?items.push("... 1 more item"):remaining>1&&items.push("... ".concat(remaining," more items")),"["+items.join(", ")+"]"}function getCustomFn(object){var customInspectFn=object[String(_nodejsCustomInspectSymbol_mjs__WEBPACK_IMPORTED_MODULE_0__.A)];if(typeof customInspectFn=="function")return customInspectFn;if(typeof object.inspect=="function")return object.inspect}function getObjectTag(object){var tag=Object.prototype.toString.call(object).replace(/^\[object /,"").replace(/]$/,"");if(tag==="Object"&&typeof object.constructor=="function"){var name=object.constructor.name;if(typeof name=="string"&&name!=="")return name}return tag}},43800:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var nodejsCustomInspectSymbol=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):void 0;const __WEBPACK_DEFAULT_EXPORT__=nodejsCustomInspectSymbol},12890:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{aZ:()=>Location,ou:()=>Token,Ll:()=>isNode});function invariant(condition,message){var booleanCondition=Boolean(condition);if(!booleanCondition)throw new Error(message??"Unexpected invariant triggered.")}var nodejsCustomInspectSymbol=__webpack_require__(43800);function defineInspect(classObject){var fn=classObject.prototype.toJSON;typeof fn=="function"||invariant(0),classObject.prototype.inspect=fn,nodejsCustomInspectSymbol.A&&(classObject.prototype[nodejsCustomInspectSymbol.A]=fn)}var Location=function(){function Location2(startToken,endToken,source){this.start=startToken.start,this.end=endToken.end,this.startToken=startToken,this.endToken=endToken,this.source=source}var _proto=Location2.prototype;return _proto.toJSON=function(){return{start:this.start,end:this.end}},Location2}();defineInspect(Location);var Token=function(){function Token2(kind,start,end,line,column,prev,value){this.kind=kind,this.start=start,this.end=end,this.line=line,this.column=column,this.value=value,this.prev=prev,this.next=null}var _proto2=Token2.prototype;return _proto2.toJSON=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}},Token2}();defineInspect(Token);function isNode(maybeNode){return maybeNode!=null&&typeof maybeNode.kind=="string"}},21488:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{i$:()=>dedentBlockStringValue,yo:()=>printBlockString});function dedentBlockStringValue(rawString){var lines=rawString.split(/\r\n|[\n\r]/g),commonIndent=getBlockStringIndentation(rawString);if(commonIndent!==0)for(var i=1;i<lines.length;i++)lines[i]=lines[i].slice(commonIndent);for(var startLine=0;startLine<lines.length&&isBlank(lines[startLine]);)++startLine;for(var endLine=lines.length;endLine>startLine&&isBlank(lines[endLine-1]);)--endLine;return lines.slice(startLine,endLine).join(`
750
750
  `)}function isBlank(str){for(var i=0;i<str.length;++i)if(str[i]!==" "&&str[i]!==" ")return!1;return!0}function getBlockStringIndentation(value){for(var _commonIndent,isFirstLine=!0,isEmptyLine=!0,indent=0,commonIndent=null,i=0;i<value.length;++i)switch(value.charCodeAt(i)){case 13:value.charCodeAt(i+1)===10&&++i;case 10:isFirstLine=!1,isEmptyLine=!0,indent=0;break;case 9:case 32:++indent;break;default:isEmptyLine&&!isFirstLine&&(commonIndent===null||indent<commonIndent)&&(commonIndent=indent),isEmptyLine=!1}return(_commonIndent=commonIndent)!==null&&_commonIndent!==void 0?_commonIndent:0}function printBlockString(value){var indentation=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",preferMultipleLines=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,isSingleLine=value.indexOf(`
751
751
  `)===-1,hasLeadingSpace=value[0]===" "||value[0]===" ",hasTrailingQuote=value[value.length-1]==='"',hasTrailingSlash=value[value.length-1]==="\\",printAsMultipleLines=!isSingleLine||hasTrailingQuote||hasTrailingSlash||preferMultipleLines,result="";return printAsMultipleLines&&!(isSingleLine&&hasLeadingSpace)&&(result+=`
752
752
  `+indentation),result+=indentation?value.replace(/\n/g,`
@@ -757,7 +757,7 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):s
757
757
 
758
758
  `+printLocation(node.loc))}else if(error.source&&error.locations)for(var _i6=0,_error$locations2=error.locations;_i6<_error$locations2.length;_i6++){var location=_error$locations2[_i6];output+=`
759
759
 
760
- `+printSourceLocation(error.source,location)}return output}function syntaxError(source,position,description){return new GraphQLError("Syntax Error: ".concat(description),void 0,source,[position])}var kinds=__webpack_require__(19569),ast=__webpack_require__(12890),TokenKind=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"}),inspect=__webpack_require__(83807);function devAssert(condition,message){var booleanCondition=Boolean(condition);if(!booleanCondition)throw new Error(message)}function instanceOf_typeof(obj){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?instanceOf_typeof=function(obj2){return typeof obj2}:instanceOf_typeof=function(obj2){return obj2&&typeof Symbol=="function"&&obj2.constructor===Symbol&&obj2!==Symbol.prototype?"symbol":typeof obj2},instanceOf_typeof(obj)}const instanceOf=function(value,constructor){return value instanceof constructor};function source_defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function source_createClass(Constructor,protoProps,staticProps){return protoProps&&source_defineProperties(Constructor.prototype,protoProps),staticProps&&source_defineProperties(Constructor,staticProps),Constructor}var Source=function(){function Source2(body){var name=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"GraphQL request",locationOffset=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{line:1,column:1};typeof body=="string"||devAssert(0,"Body must be a string. Received: ".concat((0,inspect.A)(body),".")),this.body=body,this.name=name,this.locationOffset=locationOffset,this.locationOffset.line>0||devAssert(0,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||devAssert(0,"column in locationOffset is 1-indexed and must be positive.")}return source_createClass(Source2,[{key:SYMBOL_TO_STRING_TAG,get:function(){return"Source"}}]),Source2}();function isSource(source){return instanceOf(source,Source)}var DirectiveLocation=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"}),blockString=__webpack_require__(21488),Lexer=function(){function Lexer2(source){var startOfFileToken=new ast.ou(TokenKind.SOF,0,0,0,0,null);this.source=source,this.lastToken=startOfFileToken,this.token=startOfFileToken,this.line=1,this.lineStart=0}var _proto=Lexer2.prototype;return _proto.advance=function(){this.lastToken=this.token;var token=this.token=this.lookahead();return token},_proto.lookahead=function(){var token=this.token;if(token.kind!==TokenKind.EOF)do{var _token$next;token=(_token$next=token.next)!==null&&_token$next!==void 0?_token$next:token.next=readToken(this,token)}while(token.kind===TokenKind.COMMENT);return token},Lexer2}();function isPunctuatorTokenKind(kind){return kind===TokenKind.BANG||kind===TokenKind.DOLLAR||kind===TokenKind.AMP||kind===TokenKind.PAREN_L||kind===TokenKind.PAREN_R||kind===TokenKind.SPREAD||kind===TokenKind.COLON||kind===TokenKind.EQUALS||kind===TokenKind.AT||kind===TokenKind.BRACKET_L||kind===TokenKind.BRACKET_R||kind===TokenKind.BRACE_L||kind===TokenKind.PIPE||kind===TokenKind.BRACE_R}function printCharCode(code){return isNaN(code)?TokenKind.EOF:code<127?JSON.stringify(String.fromCharCode(code)):'"\\u'.concat(("00"+code.toString(16).toUpperCase()).slice(-4),'"')}function readToken(lexer,prev){for(var source=lexer.source,body=source.body,bodyLength=body.length,pos=prev.end;pos<bodyLength;){var code=body.charCodeAt(pos),_line=lexer.line,_col=1+pos-lexer.lineStart;switch(code){case 65279:case 9:case 32:case 44:++pos;continue;case 10:++pos,++lexer.line,lexer.lineStart=pos;continue;case 13:body.charCodeAt(pos+1)===10?pos+=2:++pos,++lexer.line,lexer.lineStart=pos;continue;case 33:return new ast.ou(TokenKind.BANG,pos,pos+1,_line,_col,prev);case 35:return readComment(source,pos,_line,_col,prev);case 36:return new ast.ou(TokenKind.DOLLAR,pos,pos+1,_line,_col,prev);case 38:return new ast.ou(TokenKind.AMP,pos,pos+1,_line,_col,prev);case 40:return new ast.ou(TokenKind.PAREN_L,pos,pos+1,_line,_col,prev);case 41:return new ast.ou(TokenKind.PAREN_R,pos,pos+1,_line,_col,prev);case 46:if(body.charCodeAt(pos+1)===46&&body.charCodeAt(pos+2)===46)return new ast.ou(TokenKind.SPREAD,pos,pos+3,_line,_col,prev);break;case 58:return new ast.ou(TokenKind.COLON,pos,pos+1,_line,_col,prev);case 61:return new ast.ou(TokenKind.EQUALS,pos,pos+1,_line,_col,prev);case 64:return new ast.ou(TokenKind.AT,pos,pos+1,_line,_col,prev);case 91:return new ast.ou(TokenKind.BRACKET_L,pos,pos+1,_line,_col,prev);case 93:return new ast.ou(TokenKind.BRACKET_R,pos,pos+1,_line,_col,prev);case 123:return new ast.ou(TokenKind.BRACE_L,pos,pos+1,_line,_col,prev);case 124:return new ast.ou(TokenKind.PIPE,pos,pos+1,_line,_col,prev);case 125:return new ast.ou(TokenKind.BRACE_R,pos,pos+1,_line,_col,prev);case 34:return body.charCodeAt(pos+1)===34&&body.charCodeAt(pos+2)===34?readBlockString(source,pos,_line,_col,prev,lexer):readString(source,pos,_line,_col,prev);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return readNumber(source,pos,code,_line,_col,prev);case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:return readName(source,pos,_line,_col,prev)}throw syntaxError(source,pos,unexpectedCharacterMessage(code))}var line=lexer.line,col=1+pos-lexer.lineStart;return new ast.ou(TokenKind.EOF,bodyLength,bodyLength,line,col,prev)}function unexpectedCharacterMessage(code){return code<32&&code!==9&&code!==10&&code!==13?"Cannot contain the invalid character ".concat(printCharCode(code),"."):code===39?`Unexpected single quote character ('), did you mean to use a double quote (")?`:"Cannot parse the unexpected character ".concat(printCharCode(code),".")}function readComment(source,start,line,col,prev){var body=source.body,code,position=start;do code=body.charCodeAt(++position);while(!isNaN(code)&&(code>31||code===9));return new ast.ou(TokenKind.COMMENT,start,position,line,col,prev,body.slice(start+1,position))}function readNumber(source,start,firstCode,line,col,prev){var body=source.body,code=firstCode,position=start,isFloat=!1;if(code===45&&(code=body.charCodeAt(++position)),code===48){if(code=body.charCodeAt(++position),code>=48&&code<=57)throw syntaxError(source,position,"Invalid number, unexpected digit after 0: ".concat(printCharCode(code),"."))}else position=readDigits(source,position,code),code=body.charCodeAt(position);if(code===46&&(isFloat=!0,code=body.charCodeAt(++position),position=readDigits(source,position,code),code=body.charCodeAt(position)),(code===69||code===101)&&(isFloat=!0,code=body.charCodeAt(++position),(code===43||code===45)&&(code=body.charCodeAt(++position)),position=readDigits(source,position,code),code=body.charCodeAt(position)),code===46||isNameStart(code))throw syntaxError(source,position,"Invalid number, expected digit but got: ".concat(printCharCode(code),"."));return new ast.ou(isFloat?TokenKind.FLOAT:TokenKind.INT,start,position,line,col,prev,body.slice(start,position))}function readDigits(source,start,firstCode){var body=source.body,position=start,code=firstCode;if(code>=48&&code<=57){do code=body.charCodeAt(++position);while(code>=48&&code<=57);return position}throw syntaxError(source,position,"Invalid number, expected digit but got: ".concat(printCharCode(code),"."))}function readString(source,start,line,col,prev){for(var body=source.body,position=start+1,chunkStart=position,code=0,value="";position<body.length&&!isNaN(code=body.charCodeAt(position))&&code!==10&&code!==13;){if(code===34)return value+=body.slice(chunkStart,position),new ast.ou(TokenKind.STRING,start,position+1,line,col,prev,value);if(code<32&&code!==9)throw syntaxError(source,position,"Invalid character within String: ".concat(printCharCode(code),"."));if(++position,code===92){switch(value+=body.slice(chunkStart,position-1),code=body.charCodeAt(position),code){case 34:value+='"';break;case 47:value+="/";break;case 92:value+="\\";break;case 98:value+="\b";break;case 102:value+="\f";break;case 110:value+=`
760
+ `+printSourceLocation(error.source,location)}return output}function syntaxError(source,position,description){return new GraphQLError("Syntax Error: ".concat(description),void 0,source,[position])}var kinds=__webpack_require__(19569),ast=__webpack_require__(12890),TokenKind=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"}),inspect=__webpack_require__(6188);function devAssert(condition,message){var booleanCondition=Boolean(condition);if(!booleanCondition)throw new Error(message)}function instanceOf_typeof(obj){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?instanceOf_typeof=function(obj2){return typeof obj2}:instanceOf_typeof=function(obj2){return obj2&&typeof Symbol=="function"&&obj2.constructor===Symbol&&obj2!==Symbol.prototype?"symbol":typeof obj2},instanceOf_typeof(obj)}const instanceOf=function(value,constructor){return value instanceof constructor};function source_defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function source_createClass(Constructor,protoProps,staticProps){return protoProps&&source_defineProperties(Constructor.prototype,protoProps),staticProps&&source_defineProperties(Constructor,staticProps),Constructor}var Source=function(){function Source2(body){var name=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"GraphQL request",locationOffset=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{line:1,column:1};typeof body=="string"||devAssert(0,"Body must be a string. Received: ".concat((0,inspect.A)(body),".")),this.body=body,this.name=name,this.locationOffset=locationOffset,this.locationOffset.line>0||devAssert(0,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||devAssert(0,"column in locationOffset is 1-indexed and must be positive.")}return source_createClass(Source2,[{key:SYMBOL_TO_STRING_TAG,get:function(){return"Source"}}]),Source2}();function isSource(source){return instanceOf(source,Source)}var DirectiveLocation=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"}),blockString=__webpack_require__(21488),Lexer=function(){function Lexer2(source){var startOfFileToken=new ast.ou(TokenKind.SOF,0,0,0,0,null);this.source=source,this.lastToken=startOfFileToken,this.token=startOfFileToken,this.line=1,this.lineStart=0}var _proto=Lexer2.prototype;return _proto.advance=function(){this.lastToken=this.token;var token=this.token=this.lookahead();return token},_proto.lookahead=function(){var token=this.token;if(token.kind!==TokenKind.EOF)do{var _token$next;token=(_token$next=token.next)!==null&&_token$next!==void 0?_token$next:token.next=readToken(this,token)}while(token.kind===TokenKind.COMMENT);return token},Lexer2}();function isPunctuatorTokenKind(kind){return kind===TokenKind.BANG||kind===TokenKind.DOLLAR||kind===TokenKind.AMP||kind===TokenKind.PAREN_L||kind===TokenKind.PAREN_R||kind===TokenKind.SPREAD||kind===TokenKind.COLON||kind===TokenKind.EQUALS||kind===TokenKind.AT||kind===TokenKind.BRACKET_L||kind===TokenKind.BRACKET_R||kind===TokenKind.BRACE_L||kind===TokenKind.PIPE||kind===TokenKind.BRACE_R}function printCharCode(code){return isNaN(code)?TokenKind.EOF:code<127?JSON.stringify(String.fromCharCode(code)):'"\\u'.concat(("00"+code.toString(16).toUpperCase()).slice(-4),'"')}function readToken(lexer,prev){for(var source=lexer.source,body=source.body,bodyLength=body.length,pos=prev.end;pos<bodyLength;){var code=body.charCodeAt(pos),_line=lexer.line,_col=1+pos-lexer.lineStart;switch(code){case 65279:case 9:case 32:case 44:++pos;continue;case 10:++pos,++lexer.line,lexer.lineStart=pos;continue;case 13:body.charCodeAt(pos+1)===10?pos+=2:++pos,++lexer.line,lexer.lineStart=pos;continue;case 33:return new ast.ou(TokenKind.BANG,pos,pos+1,_line,_col,prev);case 35:return readComment(source,pos,_line,_col,prev);case 36:return new ast.ou(TokenKind.DOLLAR,pos,pos+1,_line,_col,prev);case 38:return new ast.ou(TokenKind.AMP,pos,pos+1,_line,_col,prev);case 40:return new ast.ou(TokenKind.PAREN_L,pos,pos+1,_line,_col,prev);case 41:return new ast.ou(TokenKind.PAREN_R,pos,pos+1,_line,_col,prev);case 46:if(body.charCodeAt(pos+1)===46&&body.charCodeAt(pos+2)===46)return new ast.ou(TokenKind.SPREAD,pos,pos+3,_line,_col,prev);break;case 58:return new ast.ou(TokenKind.COLON,pos,pos+1,_line,_col,prev);case 61:return new ast.ou(TokenKind.EQUALS,pos,pos+1,_line,_col,prev);case 64:return new ast.ou(TokenKind.AT,pos,pos+1,_line,_col,prev);case 91:return new ast.ou(TokenKind.BRACKET_L,pos,pos+1,_line,_col,prev);case 93:return new ast.ou(TokenKind.BRACKET_R,pos,pos+1,_line,_col,prev);case 123:return new ast.ou(TokenKind.BRACE_L,pos,pos+1,_line,_col,prev);case 124:return new ast.ou(TokenKind.PIPE,pos,pos+1,_line,_col,prev);case 125:return new ast.ou(TokenKind.BRACE_R,pos,pos+1,_line,_col,prev);case 34:return body.charCodeAt(pos+1)===34&&body.charCodeAt(pos+2)===34?readBlockString(source,pos,_line,_col,prev,lexer):readString(source,pos,_line,_col,prev);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return readNumber(source,pos,code,_line,_col,prev);case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:return readName(source,pos,_line,_col,prev)}throw syntaxError(source,pos,unexpectedCharacterMessage(code))}var line=lexer.line,col=1+pos-lexer.lineStart;return new ast.ou(TokenKind.EOF,bodyLength,bodyLength,line,col,prev)}function unexpectedCharacterMessage(code){return code<32&&code!==9&&code!==10&&code!==13?"Cannot contain the invalid character ".concat(printCharCode(code),"."):code===39?`Unexpected single quote character ('), did you mean to use a double quote (")?`:"Cannot parse the unexpected character ".concat(printCharCode(code),".")}function readComment(source,start,line,col,prev){var body=source.body,code,position=start;do code=body.charCodeAt(++position);while(!isNaN(code)&&(code>31||code===9));return new ast.ou(TokenKind.COMMENT,start,position,line,col,prev,body.slice(start+1,position))}function readNumber(source,start,firstCode,line,col,prev){var body=source.body,code=firstCode,position=start,isFloat=!1;if(code===45&&(code=body.charCodeAt(++position)),code===48){if(code=body.charCodeAt(++position),code>=48&&code<=57)throw syntaxError(source,position,"Invalid number, unexpected digit after 0: ".concat(printCharCode(code),"."))}else position=readDigits(source,position,code),code=body.charCodeAt(position);if(code===46&&(isFloat=!0,code=body.charCodeAt(++position),position=readDigits(source,position,code),code=body.charCodeAt(position)),(code===69||code===101)&&(isFloat=!0,code=body.charCodeAt(++position),(code===43||code===45)&&(code=body.charCodeAt(++position)),position=readDigits(source,position,code),code=body.charCodeAt(position)),code===46||isNameStart(code))throw syntaxError(source,position,"Invalid number, expected digit but got: ".concat(printCharCode(code),"."));return new ast.ou(isFloat?TokenKind.FLOAT:TokenKind.INT,start,position,line,col,prev,body.slice(start,position))}function readDigits(source,start,firstCode){var body=source.body,position=start,code=firstCode;if(code>=48&&code<=57){do code=body.charCodeAt(++position);while(code>=48&&code<=57);return position}throw syntaxError(source,position,"Invalid number, expected digit but got: ".concat(printCharCode(code),"."))}function readString(source,start,line,col,prev){for(var body=source.body,position=start+1,chunkStart=position,code=0,value="";position<body.length&&!isNaN(code=body.charCodeAt(position))&&code!==10&&code!==13;){if(code===34)return value+=body.slice(chunkStart,position),new ast.ou(TokenKind.STRING,start,position+1,line,col,prev,value);if(code<32&&code!==9)throw syntaxError(source,position,"Invalid character within String: ".concat(printCharCode(code),"."));if(++position,code===92){switch(value+=body.slice(chunkStart,position-1),code=body.charCodeAt(position),code){case 34:value+='"';break;case 47:value+="/";break;case 92:value+="\\";break;case 98:value+="\b";break;case 102:value+="\f";break;case 110:value+=`
761
761
  `;break;case 114:value+="\r";break;case 116:value+=" ";break;case 117:{var charCode=uniCharCode(body.charCodeAt(position+1),body.charCodeAt(position+2),body.charCodeAt(position+3),body.charCodeAt(position+4));if(charCode<0){var invalidSequence=body.slice(position+1,position+5);throw syntaxError(source,position,"Invalid character escape sequence: \\u".concat(invalidSequence,"."))}value+=String.fromCharCode(charCode),position+=4;break}default:throw syntaxError(source,position,"Invalid character escape sequence: \\".concat(String.fromCharCode(code),"."))}++position,chunkStart=position}}throw syntaxError(source,position,"Unterminated string.")}function readBlockString(source,start,line,col,prev,lexer){for(var body=source.body,position=start+3,chunkStart=position,code=0,rawValue="";position<body.length&&!isNaN(code=body.charCodeAt(position));){if(code===34&&body.charCodeAt(position+1)===34&&body.charCodeAt(position+2)===34)return rawValue+=body.slice(chunkStart,position),new ast.ou(TokenKind.BLOCK_STRING,start,position+3,line,col,prev,(0,blockString.i$)(rawValue));if(code<32&&code!==9&&code!==10&&code!==13)throw syntaxError(source,position,"Invalid character within String: ".concat(printCharCode(code),"."));code===10?(++position,++lexer.line,lexer.lineStart=position):code===13?(body.charCodeAt(position+1)===10?position+=2:++position,++lexer.line,lexer.lineStart=position):code===92&&body.charCodeAt(position+1)===34&&body.charCodeAt(position+2)===34&&body.charCodeAt(position+3)===34?(rawValue+=body.slice(chunkStart,position)+'"""',position+=4,chunkStart=position):++position}throw syntaxError(source,position,"Unterminated string.")}function uniCharCode(a,b,c,d){return char2hex(a)<<12|char2hex(b)<<8|char2hex(c)<<4|char2hex(d)}function char2hex(a){return a>=48&&a<=57?a-48:a>=65&&a<=70?a-55:a>=97&&a<=102?a-87:-1}function readName(source,start,line,col,prev){for(var body=source.body,bodyLength=body.length,position=start+1,code=0;position!==bodyLength&&!isNaN(code=body.charCodeAt(position))&&(code===95||code>=48&&code<=57||code>=65&&code<=90||code>=97&&code<=122);)++position;return new ast.ou(TokenKind.NAME,start,position,line,col,prev,body.slice(start,position))}function isNameStart(code){return code===95||code>=65&&code<=90||code>=97&&code<=122}function parse(source,options){var parser=new Parser(source,options);return parser.parseDocument()}function parseValue(source,options){var parser=new Parser(source,options);parser.expectToken(TokenKind.SOF);var value=parser.parseValueLiteral(!1);return parser.expectToken(TokenKind.EOF),value}function parseType(source,options){var parser=new Parser(source,options);parser.expectToken(TokenKind.SOF);var type=parser.parseTypeReference();return parser.expectToken(TokenKind.EOF),type}var Parser=function(){function Parser2(source,options){var sourceObj=isSource(source)?source:new Source(source);this._lexer=new Lexer(sourceObj),this._options=options}var _proto=Parser2.prototype;return _proto.parseName=function(){var token=this.expectToken(TokenKind.NAME);return{kind:kinds.b.NAME,value:token.value,loc:this.loc(token)}},_proto.parseDocument=function(){var start=this._lexer.token;return{kind:kinds.b.DOCUMENT,definitions:this.many(TokenKind.SOF,this.parseDefinition,TokenKind.EOF),loc:this.loc(start)}},_proto.parseDefinition=function(){if(this.peek(TokenKind.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(TokenKind.BRACE_L))return this.parseOperationDefinition();if(this.peekDescription())return this.parseTypeSystemDefinition()}throw this.unexpected()},_proto.parseOperationDefinition=function(){var start=this._lexer.token;if(this.peek(TokenKind.BRACE_L))return{kind:kinds.b.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(start)};var operation=this.parseOperationType(),name;return this.peek(TokenKind.NAME)&&(name=this.parseName()),{kind:kinds.b.OPERATION_DEFINITION,operation,name,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(start)}},_proto.parseOperationType=function(){var operationToken=this.expectToken(TokenKind.NAME);switch(operationToken.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(operationToken)},_proto.parseVariableDefinitions=function(){return this.optionalMany(TokenKind.PAREN_L,this.parseVariableDefinition,TokenKind.PAREN_R)},_proto.parseVariableDefinition=function(){var start=this._lexer.token;return{kind:kinds.b.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(TokenKind.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(TokenKind.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(start)}},_proto.parseVariable=function(){var start=this._lexer.token;return this.expectToken(TokenKind.DOLLAR),{kind:kinds.b.VARIABLE,name:this.parseName(),loc:this.loc(start)}},_proto.parseSelectionSet=function(){var start=this._lexer.token;return{kind:kinds.b.SELECTION_SET,selections:this.many(TokenKind.BRACE_L,this.parseSelection,TokenKind.BRACE_R),loc:this.loc(start)}},_proto.parseSelection=function(){return this.peek(TokenKind.SPREAD)?this.parseFragment():this.parseField()},_proto.parseField=function(){var start=this._lexer.token,nameOrAlias=this.parseName(),alias,name;return this.expectOptionalToken(TokenKind.COLON)?(alias=nameOrAlias,name=this.parseName()):name=nameOrAlias,{kind:kinds.b.FIELD,alias,name,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(TokenKind.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(start)}},_proto.parseArguments=function(isConst){var item=isConst?this.parseConstArgument:this.parseArgument;return this.optionalMany(TokenKind.PAREN_L,item,TokenKind.PAREN_R)},_proto.parseArgument=function(){var start=this._lexer.token,name=this.parseName();return this.expectToken(TokenKind.COLON),{kind:kinds.b.ARGUMENT,name,value:this.parseValueLiteral(!1),loc:this.loc(start)}},_proto.parseConstArgument=function(){var start=this._lexer.token;return{kind:kinds.b.ARGUMENT,name:this.parseName(),value:(this.expectToken(TokenKind.COLON),this.parseValueLiteral(!0)),loc:this.loc(start)}},_proto.parseFragment=function(){var start=this._lexer.token;this.expectToken(TokenKind.SPREAD);var hasTypeCondition=this.expectOptionalKeyword("on");return!hasTypeCondition&&this.peek(TokenKind.NAME)?{kind:kinds.b.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(start)}:{kind:kinds.b.INLINE_FRAGMENT,typeCondition:hasTypeCondition?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(start)}},_proto.parseFragmentDefinition=function(){var _this$_options,start=this._lexer.token;return this.expectKeyword("fragment"),((_this$_options=this._options)===null||_this$_options===void 0?void 0:_this$_options.experimentalFragmentVariables)===!0?{kind:kinds.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(start)}:{kind:kinds.b.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(start)}},_proto.parseFragmentName=function(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()},_proto.parseValueLiteral=function(isConst){var token=this._lexer.token;switch(token.kind){case TokenKind.BRACKET_L:return this.parseList(isConst);case TokenKind.BRACE_L:return this.parseObject(isConst);case TokenKind.INT:return this._lexer.advance(),{kind:kinds.b.INT,value:token.value,loc:this.loc(token)};case TokenKind.FLOAT:return this._lexer.advance(),{kind:kinds.b.FLOAT,value:token.value,loc:this.loc(token)};case TokenKind.STRING:case TokenKind.BLOCK_STRING:return this.parseStringLiteral();case TokenKind.NAME:switch(this._lexer.advance(),token.value){case"true":return{kind:kinds.b.BOOLEAN,value:!0,loc:this.loc(token)};case"false":return{kind:kinds.b.BOOLEAN,value:!1,loc:this.loc(token)};case"null":return{kind:kinds.b.NULL,loc:this.loc(token)};default:return{kind:kinds.b.ENUM,value:token.value,loc:this.loc(token)}}case TokenKind.DOLLAR:if(!isConst)return this.parseVariable();break}throw this.unexpected()},_proto.parseStringLiteral=function(){var token=this._lexer.token;return this._lexer.advance(),{kind:kinds.b.STRING,value:token.value,block:token.kind===TokenKind.BLOCK_STRING,loc:this.loc(token)}},_proto.parseList=function(isConst){var _this=this,start=this._lexer.token,item=function(){return _this.parseValueLiteral(isConst)};return{kind:kinds.b.LIST,values:this.any(TokenKind.BRACKET_L,item,TokenKind.BRACKET_R),loc:this.loc(start)}},_proto.parseObject=function(isConst){var _this2=this,start=this._lexer.token,item=function(){return _this2.parseObjectField(isConst)};return{kind:kinds.b.OBJECT,fields:this.any(TokenKind.BRACE_L,item,TokenKind.BRACE_R),loc:this.loc(start)}},_proto.parseObjectField=function(isConst){var start=this._lexer.token,name=this.parseName();return this.expectToken(TokenKind.COLON),{kind:kinds.b.OBJECT_FIELD,name,value:this.parseValueLiteral(isConst),loc:this.loc(start)}},_proto.parseDirectives=function(isConst){for(var directives=[];this.peek(TokenKind.AT);)directives.push(this.parseDirective(isConst));return directives},_proto.parseDirective=function(isConst){var start=this._lexer.token;return this.expectToken(TokenKind.AT),{kind:kinds.b.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(isConst),loc:this.loc(start)}},_proto.parseTypeReference=function(){var start=this._lexer.token,type;return this.expectOptionalToken(TokenKind.BRACKET_L)?(type=this.parseTypeReference(),this.expectToken(TokenKind.BRACKET_R),type={kind:kinds.b.LIST_TYPE,type,loc:this.loc(start)}):type=this.parseNamedType(),this.expectOptionalToken(TokenKind.BANG)?{kind:kinds.b.NON_NULL_TYPE,type,loc:this.loc(start)}:type},_proto.parseNamedType=function(){var start=this._lexer.token;return{kind:kinds.b.NAMED_TYPE,name:this.parseName(),loc:this.loc(start)}},_proto.parseTypeSystemDefinition=function(){var keywordToken=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(keywordToken.kind===TokenKind.NAME)switch(keywordToken.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(keywordToken)},_proto.peekDescription=function(){return this.peek(TokenKind.STRING)||this.peek(TokenKind.BLOCK_STRING)},_proto.parseDescription=function(){if(this.peekDescription())return this.parseStringLiteral()},_proto.parseSchemaDefinition=function(){var start=this._lexer.token,description=this.parseDescription();this.expectKeyword("schema");var directives=this.parseDirectives(!0),operationTypes=this.many(TokenKind.BRACE_L,this.parseOperationTypeDefinition,TokenKind.BRACE_R);return{kind:kinds.b.SCHEMA_DEFINITION,description,directives,operationTypes,loc:this.loc(start)}},_proto.parseOperationTypeDefinition=function(){var start=this._lexer.token,operation=this.parseOperationType();this.expectToken(TokenKind.COLON);var type=this.parseNamedType();return{kind:kinds.b.OPERATION_TYPE_DEFINITION,operation,type,loc:this.loc(start)}},_proto.parseScalarTypeDefinition=function(){var start=this._lexer.token,description=this.parseDescription();this.expectKeyword("scalar");var name=this.parseName(),directives=this.parseDirectives(!0);return{kind:kinds.b.SCALAR_TYPE_DEFINITION,description,name,directives,loc:this.loc(start)}},_proto.parseObjectTypeDefinition=function(){var start=this._lexer.token,description=this.parseDescription();this.expectKeyword("type");var name=this.parseName(),interfaces=this.parseImplementsInterfaces(),directives=this.parseDirectives(!0),fields=this.parseFieldsDefinition();return{kind:kinds.b.OBJECT_TYPE_DEFINITION,description,name,interfaces,directives,fields,loc:this.loc(start)}},_proto.parseImplementsInterfaces=function(){var _this$_options2;if(!this.expectOptionalKeyword("implements"))return[];if(((_this$_options2=this._options)===null||_this$_options2===void 0?void 0:_this$_options2.allowLegacySDLImplementsInterfaces)===!0){var types=[];this.expectOptionalToken(TokenKind.AMP);do types.push(this.parseNamedType());while(this.expectOptionalToken(TokenKind.AMP)||this.peek(TokenKind.NAME));return types}return this.delimitedMany(TokenKind.AMP,this.parseNamedType)},_proto.parseFieldsDefinition=function(){var _this$_options3;return((_this$_options3=this._options)===null||_this$_options3===void 0?void 0:_this$_options3.allowLegacySDLEmptyFields)===!0&&this.peek(TokenKind.BRACE_L)&&this._lexer.lookahead().kind===TokenKind.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(TokenKind.BRACE_L,this.parseFieldDefinition,TokenKind.BRACE_R)},_proto.parseFieldDefinition=function(){var start=this._lexer.token,description=this.parseDescription(),name=this.parseName(),args=this.parseArgumentDefs();this.expectToken(TokenKind.COLON);var type=this.parseTypeReference(),directives=this.parseDirectives(!0);return{kind:kinds.b.FIELD_DEFINITION,description,name,arguments:args,type,directives,loc:this.loc(start)}},_proto.parseArgumentDefs=function(){return this.optionalMany(TokenKind.PAREN_L,this.parseInputValueDef,TokenKind.PAREN_R)},_proto.parseInputValueDef=function(){var start=this._lexer.token,description=this.parseDescription(),name=this.parseName();this.expectToken(TokenKind.COLON);var type=this.parseTypeReference(),defaultValue;this.expectOptionalToken(TokenKind.EQUALS)&&(defaultValue=this.parseValueLiteral(!0));var directives=this.parseDirectives(!0);return{kind:kinds.b.INPUT_VALUE_DEFINITION,description,name,type,defaultValue,directives,loc:this.loc(start)}},_proto.parseInterfaceTypeDefinition=function(){var start=this._lexer.token,description=this.parseDescription();this.expectKeyword("interface");var name=this.parseName(),interfaces=this.parseImplementsInterfaces(),directives=this.parseDirectives(!0),fields=this.parseFieldsDefinition();return{kind:kinds.b.INTERFACE_TYPE_DEFINITION,description,name,interfaces,directives,fields,loc:this.loc(start)}},_proto.parseUnionTypeDefinition=function(){var start=this._lexer.token,description=this.parseDescription();this.expectKeyword("union");var name=this.parseName(),directives=this.parseDirectives(!0),types=this.parseUnionMemberTypes();return{kind:kinds.b.UNION_TYPE_DEFINITION,description,name,directives,types,loc:this.loc(start)}},_proto.parseUnionMemberTypes=function(){return this.expectOptionalToken(TokenKind.EQUALS)?this.delimitedMany(TokenKind.PIPE,this.parseNamedType):[]},_proto.parseEnumTypeDefinition=function(){var start=this._lexer.token,description=this.parseDescription();this.expectKeyword("enum");var name=this.parseName(),directives=this.parseDirectives(!0),values=this.parseEnumValuesDefinition();return{kind:kinds.b.ENUM_TYPE_DEFINITION,description,name,directives,values,loc:this.loc(start)}},_proto.parseEnumValuesDefinition=function(){return this.optionalMany(TokenKind.BRACE_L,this.parseEnumValueDefinition,TokenKind.BRACE_R)},_proto.parseEnumValueDefinition=function(){var start=this._lexer.token,description=this.parseDescription(),name=this.parseName(),directives=this.parseDirectives(!0);return{kind:kinds.b.ENUM_VALUE_DEFINITION,description,name,directives,loc:this.loc(start)}},_proto.parseInputObjectTypeDefinition=function(){var start=this._lexer.token,description=this.parseDescription();this.expectKeyword("input");var name=this.parseName(),directives=this.parseDirectives(!0),fields=this.parseInputFieldsDefinition();return{kind:kinds.b.INPUT_OBJECT_TYPE_DEFINITION,description,name,directives,fields,loc:this.loc(start)}},_proto.parseInputFieldsDefinition=function(){return this.optionalMany(TokenKind.BRACE_L,this.parseInputValueDef,TokenKind.BRACE_R)},_proto.parseTypeSystemExtension=function(){var keywordToken=this._lexer.lookahead();if(keywordToken.kind===TokenKind.NAME)switch(keywordToken.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(keywordToken)},_proto.parseSchemaExtension=function(){var start=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var directives=this.parseDirectives(!0),operationTypes=this.optionalMany(TokenKind.BRACE_L,this.parseOperationTypeDefinition,TokenKind.BRACE_R);if(directives.length===0&&operationTypes.length===0)throw this.unexpected();return{kind:kinds.b.SCHEMA_EXTENSION,directives,operationTypes,loc:this.loc(start)}},_proto.parseScalarTypeExtension=function(){var start=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var name=this.parseName(),directives=this.parseDirectives(!0);if(directives.length===0)throw this.unexpected();return{kind:kinds.b.SCALAR_TYPE_EXTENSION,name,directives,loc:this.loc(start)}},_proto.parseObjectTypeExtension=function(){var start=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var name=this.parseName(),interfaces=this.parseImplementsInterfaces(),directives=this.parseDirectives(!0),fields=this.parseFieldsDefinition();if(interfaces.length===0&&directives.length===0&&fields.length===0)throw this.unexpected();return{kind:kinds.b.OBJECT_TYPE_EXTENSION,name,interfaces,directives,fields,loc:this.loc(start)}},_proto.parseInterfaceTypeExtension=function(){var start=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var name=this.parseName(),interfaces=this.parseImplementsInterfaces(),directives=this.parseDirectives(!0),fields=this.parseFieldsDefinition();if(interfaces.length===0&&directives.length===0&&fields.length===0)throw this.unexpected();return{kind:kinds.b.INTERFACE_TYPE_EXTENSION,name,interfaces,directives,fields,loc:this.loc(start)}},_proto.parseUnionTypeExtension=function(){var start=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var name=this.parseName(),directives=this.parseDirectives(!0),types=this.parseUnionMemberTypes();if(directives.length===0&&types.length===0)throw this.unexpected();return{kind:kinds.b.UNION_TYPE_EXTENSION,name,directives,types,loc:this.loc(start)}},_proto.parseEnumTypeExtension=function(){var start=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var name=this.parseName(),directives=this.parseDirectives(!0),values=this.parseEnumValuesDefinition();if(directives.length===0&&values.length===0)throw this.unexpected();return{kind:kinds.b.ENUM_TYPE_EXTENSION,name,directives,values,loc:this.loc(start)}},_proto.parseInputObjectTypeExtension=function(){var start=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var name=this.parseName(),directives=this.parseDirectives(!0),fields=this.parseInputFieldsDefinition();if(directives.length===0&&fields.length===0)throw this.unexpected();return{kind:kinds.b.INPUT_OBJECT_TYPE_EXTENSION,name,directives,fields,loc:this.loc(start)}},_proto.parseDirectiveDefinition=function(){var start=this._lexer.token,description=this.parseDescription();this.expectKeyword("directive"),this.expectToken(TokenKind.AT);var name=this.parseName(),args=this.parseArgumentDefs(),repeatable=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var locations=this.parseDirectiveLocations();return{kind:kinds.b.DIRECTIVE_DEFINITION,description,name,arguments:args,repeatable,locations,loc:this.loc(start)}},_proto.parseDirectiveLocations=function(){return this.delimitedMany(TokenKind.PIPE,this.parseDirectiveLocation)},_proto.parseDirectiveLocation=function(){var start=this._lexer.token,name=this.parseName();if(DirectiveLocation[name.value]!==void 0)return name;throw this.unexpected(start)},_proto.loc=function(startToken){var _this$_options4;if(((_this$_options4=this._options)===null||_this$_options4===void 0?void 0:_this$_options4.noLocation)!==!0)return new ast.aZ(startToken,this._lexer.lastToken,this._lexer.source)},_proto.peek=function(kind){return this._lexer.token.kind===kind},_proto.expectToken=function(kind){var token=this._lexer.token;if(token.kind===kind)return this._lexer.advance(),token;throw syntaxError(this._lexer.source,token.start,"Expected ".concat(getTokenKindDesc(kind),", found ").concat(getTokenDesc(token),"."))},_proto.expectOptionalToken=function(kind){var token=this._lexer.token;if(token.kind===kind)return this._lexer.advance(),token},_proto.expectKeyword=function(value){var token=this._lexer.token;if(token.kind===TokenKind.NAME&&token.value===value)this._lexer.advance();else throw syntaxError(this._lexer.source,token.start,'Expected "'.concat(value,'", found ').concat(getTokenDesc(token),"."))},_proto.expectOptionalKeyword=function(value){var token=this._lexer.token;return token.kind===TokenKind.NAME&&token.value===value?(this._lexer.advance(),!0):!1},_proto.unexpected=function(atToken){var token=atToken??this._lexer.token;return syntaxError(this._lexer.source,token.start,"Unexpected ".concat(getTokenDesc(token),"."))},_proto.any=function(openKind,parseFn,closeKind){this.expectToken(openKind);for(var nodes=[];!this.expectOptionalToken(closeKind);)nodes.push(parseFn.call(this));return nodes},_proto.optionalMany=function(openKind,parseFn,closeKind){if(this.expectOptionalToken(openKind)){var nodes=[];do nodes.push(parseFn.call(this));while(!this.expectOptionalToken(closeKind));return nodes}return[]},_proto.many=function(openKind,parseFn,closeKind){this.expectToken(openKind);var nodes=[];do nodes.push(parseFn.call(this));while(!this.expectOptionalToken(closeKind));return nodes},_proto.delimitedMany=function(delimiterKind,parseFn){this.expectOptionalToken(delimiterKind);var nodes=[];do nodes.push(parseFn.call(this));while(this.expectOptionalToken(delimiterKind));return nodes},Parser2}();function getTokenDesc(token){var value=token.value;return getTokenKindDesc(token.kind)+(value!=null?' "'.concat(value,'"'):"")}function getTokenKindDesc(kind){return isPunctuatorTokenKind(kind)?'"'.concat(kind,'"'):kind}},88172:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{print:()=>print});var _visitor_mjs__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(23838),_blockString_mjs__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(21488);function print(ast){return(0,_visitor_mjs__WEBPACK_IMPORTED_MODULE_0__.YR)(ast,{leave:printDocASTReducer})}var MAX_LINE_LENGTH=80,printDocASTReducer={Name:function(node){return node.value},Variable:function(node){return"$"+node.name},Document:function(node){return join(node.definitions,`
762
762
 
763
763
  `)+`
@@ -776,4 +776,4 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):s
776
776
  `)),`
777
777
  }`)}function wrap(start,maybeString){var end=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";return maybeString!=null&&maybeString!==""?start+maybeString+end:""}function indent(str){return wrap(" ",str.replace(/\n/g,`
778
778
  `))}function isMultiline(str){return str.indexOf(`
779
- `)!==-1}function hasMultilineItems(maybeArray){return maybeArray!=null&&maybeArray.some(isMultiline)}},23838:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{YR:()=>visit2,sP:()=>BREAK});var _jsutils_inspect_mjs__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(83807),_ast_mjs__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(12890),QueryDocumentKeys={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["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"]},BREAK=Object.freeze({});function visit2(root,visitor){var visitorKeys=arguments.length>2&&arguments[2]!==void 0?arguments[2]:QueryDocumentKeys,stack=void 0,inArray=Array.isArray(root),keys=[root],index=-1,edits=[],node=void 0,key=void 0,parent2=void 0,path=[],ancestors=[],newRoot=root;do{index++;var isLeaving=index===keys.length,isEdited=isLeaving&&edits.length!==0;if(isLeaving){if(key=ancestors.length===0?void 0:path[path.length-1],node=parent2,parent2=ancestors.pop(),isEdited){if(inArray)node=node.slice();else{for(var clone={},_i2=0,_Object$keys2=Object.keys(node);_i2<_Object$keys2.length;_i2++){var k=_Object$keys2[_i2];clone[k]=node[k]}node=clone}for(var editOffset=0,ii=0;ii<edits.length;ii++){var editKey=edits[ii][0],editValue=edits[ii][1];inArray&&(editKey-=editOffset),inArray&&editValue===null?(node.splice(editKey,1),editOffset++):node[editKey]=editValue}}index=stack.index,keys=stack.keys,edits=stack.edits,inArray=stack.inArray,stack=stack.prev}else{if(key=parent2?inArray?index:keys[index]:void 0,node=parent2?parent2[key]:newRoot,node==null)continue;parent2&&path.push(key)}var result=void 0;if(!Array.isArray(node)){if(!(0,_ast_mjs__WEBPACK_IMPORTED_MODULE_0__.Ll)(node))throw new Error("Invalid AST Node: ".concat((0,_jsutils_inspect_mjs__WEBPACK_IMPORTED_MODULE_1__.A)(node),"."));var visitFn=getVisitFn(visitor,node.kind,isLeaving);if(visitFn){if(result=visitFn.call(visitor,node,key,parent2,path,ancestors),result===BREAK)break;if(result===!1){if(!isLeaving){path.pop();continue}}else if(result!==void 0&&(edits.push([key,result]),!isLeaving))if((0,_ast_mjs__WEBPACK_IMPORTED_MODULE_0__.Ll)(result))node=result;else{path.pop();continue}}}if(result===void 0&&isEdited&&edits.push([key,node]),isLeaving)path.pop();else{var _visitorKeys$node$kin;stack={inArray,index,keys,edits,prev:stack},inArray=Array.isArray(node),keys=inArray?node:(_visitorKeys$node$kin=visitorKeys[node.kind])!==null&&_visitorKeys$node$kin!==void 0?_visitorKeys$node$kin:[],index=-1,edits=[],parent2&&ancestors.push(parent2),parent2=node}}while(stack!==void 0);return edits.length!==0&&(newRoot=edits[edits.length-1][1]),newRoot}function visitInParallel(visitors){var skipping=new Array(visitors.length);return{enter:function(node){for(var i=0;i<visitors.length;i++)if(skipping[i]==null){var fn=getVisitFn(visitors[i],node.kind,!1);if(fn){var result=fn.apply(visitors[i],arguments);if(result===!1)skipping[i]=node;else if(result===BREAK)skipping[i]=BREAK;else if(result!==void 0)return result}}},leave:function(node){for(var i=0;i<visitors.length;i++)if(skipping[i]==null){var fn=getVisitFn(visitors[i],node.kind,!0);if(fn){var result=fn.apply(visitors[i],arguments);if(result===BREAK)skipping[i]=BREAK;else if(result!==void 0&&result!==!1)return result}}else skipping[i]===node&&(skipping[i]=null)}}}function getVisitFn(visitor,kind,isLeaving){var kindVisitor=visitor[kind];if(kindVisitor){if(!isLeaving&&typeof kindVisitor=="function")return kindVisitor;var kindSpecificVisitor=isLeaving?kindVisitor.leave:kindVisitor.enter;if(typeof kindSpecificVisitor=="function")return kindSpecificVisitor}else{var specificVisitor=isLeaving?visitor.leave:visitor.enter;if(specificVisitor){if(typeof specificVisitor=="function")return specificVisitor;var specificKindVisitor=specificVisitor[kind];if(typeof specificKindVisitor=="function")return specificKindVisitor}}}},95492:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";var _home_circleci_bit_bit_node_modules_teambit_react_ui_docs_app_dist_index_js__WEBPACK_IMPORTED_MODULE_0___namespace_cache;__webpack_require__.d(__webpack_exports__,{x:()=>_home_circleci_bit_bit_node_modules_teambit_react_ui_docs_app_dist_index_js__WEBPACK_IMPORTED_MODULE_0___namespace_cache||(_home_circleci_bit_bit_node_modules_teambit_react_ui_docs_app_dist_index_js__WEBPACK_IMPORTED_MODULE_0___namespace_cache=__webpack_require__.t(_home_circleci_bit_bit_node_modules_teambit_react_ui_docs_app_dist_index_js__WEBPACK_IMPORTED_MODULE_0__,2))});var _home_circleci_bit_bit_node_modules_teambit_react_ui_docs_app_dist_index_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(26143)},84472:module=>{"use strict";module.exports=JSON.parse('{"AElig":"\xC6","AMP":"&","Aacute":"\xC1","Acirc":"\xC2","Agrave":"\xC0","Aring":"\xC5","Atilde":"\xC3","Auml":"\xC4","COPY":"\xA9","Ccedil":"\xC7","ETH":"\xD0","Eacute":"\xC9","Ecirc":"\xCA","Egrave":"\xC8","Euml":"\xCB","GT":">","Iacute":"\xCD","Icirc":"\xCE","Igrave":"\xCC","Iuml":"\xCF","LT":"<","Ntilde":"\xD1","Oacute":"\xD3","Ocirc":"\xD4","Ograve":"\xD2","Oslash":"\xD8","Otilde":"\xD5","Ouml":"\xD6","QUOT":"\\"","REG":"\xAE","THORN":"\xDE","Uacute":"\xDA","Ucirc":"\xDB","Ugrave":"\xD9","Uuml":"\xDC","Yacute":"\xDD","aacute":"\xE1","acirc":"\xE2","acute":"\xB4","aelig":"\xE6","agrave":"\xE0","amp":"&","aring":"\xE5","atilde":"\xE3","auml":"\xE4","brvbar":"\xA6","ccedil":"\xE7","cedil":"\xB8","cent":"\xA2","copy":"\xA9","curren":"\xA4","deg":"\xB0","divide":"\xF7","eacute":"\xE9","ecirc":"\xEA","egrave":"\xE8","eth":"\xF0","euml":"\xEB","frac12":"\xBD","frac14":"\xBC","frac34":"\xBE","gt":">","iacute":"\xED","icirc":"\xEE","iexcl":"\xA1","igrave":"\xEC","iquest":"\xBF","iuml":"\xEF","laquo":"\xAB","lt":"<","macr":"\xAF","micro":"\xB5","middot":"\xB7","nbsp":"\xA0","not":"\xAC","ntilde":"\xF1","oacute":"\xF3","ocirc":"\xF4","ograve":"\xF2","ordf":"\xAA","ordm":"\xBA","oslash":"\xF8","otilde":"\xF5","ouml":"\xF6","para":"\xB6","plusmn":"\xB1","pound":"\xA3","quot":"\\"","raquo":"\xBB","reg":"\xAE","sect":"\xA7","shy":"\xAD","sup1":"\xB9","sup2":"\xB2","sup3":"\xB3","szlig":"\xDF","thorn":"\xFE","times":"\xD7","uacute":"\xFA","ucirc":"\xFB","ugrave":"\xF9","uml":"\xA8","uuml":"\xFC","yacute":"\xFD","yen":"\xA5","yuml":"\xFF"}')},78192:module=>{"use strict";module.exports=JSON.parse('{"0":"\uFFFD","128":"\u20AC","130":"\u201A","131":"\u0192","132":"\u201E","133":"\u2026","134":"\u2020","135":"\u2021","136":"\u02C6","137":"\u2030","138":"\u0160","139":"\u2039","140":"\u0152","142":"\u017D","145":"\u2018","146":"\u2019","147":"\u201C","148":"\u201D","149":"\u2022","150":"\u2013","151":"\u2014","152":"\u02DC","153":"\u2122","154":"\u0161","155":"\u203A","156":"\u0153","158":"\u017E","159":"\u0178"}')},71244:module=>{"use strict";module.exports=JSON.parse('{"year":{"previous":"last year","current":"this year","next":"next year","past":{"one":"a year ago","other":"{0} years ago"},"future":{"one":"in a year","other":"in {0} years"}},"quarter":{"previous":"last quarter","current":"this quarter","next":"next quarter","past":{"one":"a quarter ago","other":"{0} quarters ago"},"future":{"one":"in a quarter","other":"in {0} quarters"}},"month":{"previous":"last month","current":"this month","next":"next month","past":{"one":"a month ago","other":"{0} months ago"},"future":{"one":"in a month","other":"in {0} months"}},"week":{"previous":"last week","current":"this week","next":"next week","past":{"one":"a week ago","other":"{0} weeks ago"},"future":{"one":"in a week","other":"in {0} weeks"}},"day":{"previous":"yesterday","current":"today","next":"tomorrow","past":{"one":"a day ago","other":"{0} days ago"},"future":{"one":"in a day","other":"in {0} days"}},"hour":{"current":"this hour","past":{"one":"an hour ago","other":"{0} hours ago"},"future":{"one":"in an hour","other":"in {0} hours"}},"minute":{"current":"this minute","past":{"one":"a minute ago","other":"{0} minutes ago"},"future":{"one":"in a minute","other":"in {0} minutes"}},"second":{"current":"now","past":{"one":"a second ago","other":"{0} seconds ago"},"future":{"one":"in a second","other":"in {0} seconds"}},"now":{"future":"in a moment","past":"just now"}}')},71432:module=>{"use strict";module.exports=JSON.parse('{"year":{"one":"{0} year","other":"{0} years"},"month":{"one":"{0} month","other":"{0} months"},"week":{"one":"{0} week","other":"{0} weeks"},"day":{"one":"{0} day","other":"{0} days"},"hour":{"one":"{0} hour","other":"{0} hours"},"minute":{"one":"{0} minute","other":"{0} minutes"},"second":{"one":"{0} second","other":"{0} seconds"},"now":{"future":"in a moment","past":"just now"}}')},92e3:module=>{"use strict";module.exports=JSON.parse('{"year":{"previous":"last yr.","current":"this yr.","next":"next yr.","past":"{0} yr. ago","future":"in {0} yr."},"quarter":{"previous":"last qtr.","current":"this qtr.","next":"next qtr.","past":{"one":"{0} qtr. ago","other":"{0} qtrs. ago"},"future":{"one":"in {0} qtr.","other":"in {0} qtrs."}},"month":{"previous":"last mo.","current":"this mo.","next":"next mo.","past":"{0} mo. ago","future":"in {0} mo."},"week":{"previous":"last wk.","current":"this wk.","next":"next wk.","past":"{0} wk. ago","future":"in {0} wk."},"day":{"previous":"yesterday","current":"today","next":"tomorrow","past":{"one":"{0} day ago","other":"{0} days ago"},"future":{"one":"in {0} day","other":"in {0} days"}},"hour":{"current":"this hour","past":"{0} hr. ago","future":"in {0} hr."},"minute":{"current":"this minute","past":"{0} min. ago","future":"in {0} min."},"second":{"current":"now","past":"{0} sec. ago","future":"in {0} sec."},"now":{"future":"in a moment","past":"just now"}}')},9412:module=>{"use strict";module.exports=JSON.parse('{"year":"{0} yr.","month":"{0} mo.","week":"{0} wk.","day":{"one":"{0} day","other":"{0} days"},"hour":"{0} hr.","minute":"{0} min.","second":"{0} sec.","now":"now"}')},54634:module=>{"use strict";module.exports=JSON.parse('{"year":"{0}yr","month":"{0}mo","week":"{0}wk","day":"{0}d","hour":"{0}h","minute":"{0}m","second":"{0}s","now":"now"}')},34695:module=>{"use strict";module.exports=JSON.parse('{"year":{"previous":"last year","current":"this year","next":"next year","past":{"one":"{0} year ago","other":"{0} years ago"},"future":{"one":"in {0} year","other":"in {0} years"}},"quarter":{"previous":"last quarter","current":"this quarter","next":"next quarter","past":{"one":"{0} quarter ago","other":"{0} quarters ago"},"future":{"one":"in {0} quarter","other":"in {0} quarters"}},"month":{"previous":"last month","current":"this month","next":"next month","past":{"one":"{0} month ago","other":"{0} months ago"},"future":{"one":"in {0} month","other":"in {0} months"}},"week":{"previous":"last week","current":"this week","next":"next week","past":{"one":"{0} week ago","other":"{0} weeks ago"},"future":{"one":"in {0} week","other":"in {0} weeks"}},"day":{"previous":"yesterday","current":"today","next":"tomorrow","past":{"one":"{0} day ago","other":"{0} days ago"},"future":{"one":"in {0} day","other":"in {0} days"}},"hour":{"current":"this hour","past":{"one":"{0} hour ago","other":"{0} hours ago"},"future":{"one":"in {0} hour","other":"in {0} hours"}},"minute":{"current":"this minute","past":{"one":"{0} minute ago","other":"{0} minutes ago"},"future":{"one":"in {0} minute","other":"in {0} minutes"}},"second":{"current":"now","past":{"one":"{0} second ago","other":"{0} seconds ago"},"future":{"one":"in {0} second","other":"in {0} seconds"}}}')},84002:module=>{"use strict";module.exports=JSON.parse('{"year":{"previous":"last yr.","current":"this yr.","next":"next yr.","past":"{0} yr. ago","future":"in {0} yr."},"quarter":{"previous":"last qtr.","current":"this qtr.","next":"next qtr.","past":{"one":"{0} qtr. ago","other":"{0} qtrs. ago"},"future":{"one":"in {0} qtr.","other":"in {0} qtrs."}},"month":{"previous":"last mo.","current":"this mo.","next":"next mo.","past":"{0} mo. ago","future":"in {0} mo."},"week":{"previous":"last wk.","current":"this wk.","next":"next wk.","past":"{0} wk. ago","future":"in {0} wk."},"day":{"previous":"yesterday","current":"today","next":"tomorrow","past":{"one":"{0} day ago","other":"{0} days ago"},"future":{"one":"in {0} day","other":"in {0} days"}},"hour":{"current":"this hour","past":"{0} hr. ago","future":"in {0} hr."},"minute":{"current":"this minute","past":"{0} min. ago","future":"in {0} min."},"second":{"current":"now","past":"{0} sec. ago","future":"in {0} sec."}}')},52293:module=>{"use strict";module.exports=JSON.parse('{"year":{"previous":"last yr.","current":"this yr.","next":"next yr.","past":"{0} yr. ago","future":"in {0} yr."},"quarter":{"previous":"last qtr.","current":"this qtr.","next":"next qtr.","past":{"one":"{0} qtr. ago","other":"{0} qtrs. ago"},"future":{"one":"in {0} qtr.","other":"in {0} qtrs."}},"month":{"previous":"last mo.","current":"this mo.","next":"next mo.","past":"{0} mo. ago","future":"in {0} mo."},"week":{"previous":"last wk.","current":"this wk.","next":"next wk.","past":"{0} wk. ago","future":"in {0} wk."},"day":{"previous":"yesterday","current":"today","next":"tomorrow","past":{"one":"{0} day ago","other":"{0} days ago"},"future":{"one":"in {0} day","other":"in {0} days"}},"hour":{"current":"this hour","past":"{0} hr. ago","future":"in {0} hr."},"minute":{"current":"this minute","past":"{0} min. ago","future":"in {0} min."},"second":{"current":"now","past":"{0} sec. ago","future":"in {0} sec."}}')}}]);
779
+ `)!==-1}function hasMultilineItems(maybeArray){return maybeArray!=null&&maybeArray.some(isMultiline)}},23838:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{YR:()=>visit2,sP:()=>BREAK});var _jsutils_inspect_mjs__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(6188),_ast_mjs__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(12890),QueryDocumentKeys={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["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"]},BREAK=Object.freeze({});function visit2(root,visitor){var visitorKeys=arguments.length>2&&arguments[2]!==void 0?arguments[2]:QueryDocumentKeys,stack=void 0,inArray=Array.isArray(root),keys=[root],index=-1,edits=[],node=void 0,key=void 0,parent2=void 0,path=[],ancestors=[],newRoot=root;do{index++;var isLeaving=index===keys.length,isEdited=isLeaving&&edits.length!==0;if(isLeaving){if(key=ancestors.length===0?void 0:path[path.length-1],node=parent2,parent2=ancestors.pop(),isEdited){if(inArray)node=node.slice();else{for(var clone={},_i2=0,_Object$keys2=Object.keys(node);_i2<_Object$keys2.length;_i2++){var k=_Object$keys2[_i2];clone[k]=node[k]}node=clone}for(var editOffset=0,ii=0;ii<edits.length;ii++){var editKey=edits[ii][0],editValue=edits[ii][1];inArray&&(editKey-=editOffset),inArray&&editValue===null?(node.splice(editKey,1),editOffset++):node[editKey]=editValue}}index=stack.index,keys=stack.keys,edits=stack.edits,inArray=stack.inArray,stack=stack.prev}else{if(key=parent2?inArray?index:keys[index]:void 0,node=parent2?parent2[key]:newRoot,node==null)continue;parent2&&path.push(key)}var result=void 0;if(!Array.isArray(node)){if(!(0,_ast_mjs__WEBPACK_IMPORTED_MODULE_0__.Ll)(node))throw new Error("Invalid AST Node: ".concat((0,_jsutils_inspect_mjs__WEBPACK_IMPORTED_MODULE_1__.A)(node),"."));var visitFn=getVisitFn(visitor,node.kind,isLeaving);if(visitFn){if(result=visitFn.call(visitor,node,key,parent2,path,ancestors),result===BREAK)break;if(result===!1){if(!isLeaving){path.pop();continue}}else if(result!==void 0&&(edits.push([key,result]),!isLeaving))if((0,_ast_mjs__WEBPACK_IMPORTED_MODULE_0__.Ll)(result))node=result;else{path.pop();continue}}}if(result===void 0&&isEdited&&edits.push([key,node]),isLeaving)path.pop();else{var _visitorKeys$node$kin;stack={inArray,index,keys,edits,prev:stack},inArray=Array.isArray(node),keys=inArray?node:(_visitorKeys$node$kin=visitorKeys[node.kind])!==null&&_visitorKeys$node$kin!==void 0?_visitorKeys$node$kin:[],index=-1,edits=[],parent2&&ancestors.push(parent2),parent2=node}}while(stack!==void 0);return edits.length!==0&&(newRoot=edits[edits.length-1][1]),newRoot}function visitInParallel(visitors){var skipping=new Array(visitors.length);return{enter:function(node){for(var i=0;i<visitors.length;i++)if(skipping[i]==null){var fn=getVisitFn(visitors[i],node.kind,!1);if(fn){var result=fn.apply(visitors[i],arguments);if(result===!1)skipping[i]=node;else if(result===BREAK)skipping[i]=BREAK;else if(result!==void 0)return result}}},leave:function(node){for(var i=0;i<visitors.length;i++)if(skipping[i]==null){var fn=getVisitFn(visitors[i],node.kind,!0);if(fn){var result=fn.apply(visitors[i],arguments);if(result===BREAK)skipping[i]=BREAK;else if(result!==void 0&&result!==!1)return result}}else skipping[i]===node&&(skipping[i]=null)}}}function getVisitFn(visitor,kind,isLeaving){var kindVisitor=visitor[kind];if(kindVisitor){if(!isLeaving&&typeof kindVisitor=="function")return kindVisitor;var kindSpecificVisitor=isLeaving?kindVisitor.leave:kindVisitor.enter;if(typeof kindSpecificVisitor=="function")return kindSpecificVisitor}else{var specificVisitor=isLeaving?visitor.leave:visitor.enter;if(specificVisitor){if(typeof specificVisitor=="function")return specificVisitor;var specificKindVisitor=specificVisitor[kind];if(typeof specificKindVisitor=="function")return specificKindVisitor}}}},95492:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";var _home_circleci_bit_bit_node_modules_teambit_react_ui_docs_app_dist_index_js__WEBPACK_IMPORTED_MODULE_0___namespace_cache;__webpack_require__.d(__webpack_exports__,{x:()=>_home_circleci_bit_bit_node_modules_teambit_react_ui_docs_app_dist_index_js__WEBPACK_IMPORTED_MODULE_0___namespace_cache||(_home_circleci_bit_bit_node_modules_teambit_react_ui_docs_app_dist_index_js__WEBPACK_IMPORTED_MODULE_0___namespace_cache=__webpack_require__.t(_home_circleci_bit_bit_node_modules_teambit_react_ui_docs_app_dist_index_js__WEBPACK_IMPORTED_MODULE_0__,2))});var _home_circleci_bit_bit_node_modules_teambit_react_ui_docs_app_dist_index_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(26143)},84472:module=>{"use strict";module.exports=JSON.parse('{"AElig":"\xC6","AMP":"&","Aacute":"\xC1","Acirc":"\xC2","Agrave":"\xC0","Aring":"\xC5","Atilde":"\xC3","Auml":"\xC4","COPY":"\xA9","Ccedil":"\xC7","ETH":"\xD0","Eacute":"\xC9","Ecirc":"\xCA","Egrave":"\xC8","Euml":"\xCB","GT":">","Iacute":"\xCD","Icirc":"\xCE","Igrave":"\xCC","Iuml":"\xCF","LT":"<","Ntilde":"\xD1","Oacute":"\xD3","Ocirc":"\xD4","Ograve":"\xD2","Oslash":"\xD8","Otilde":"\xD5","Ouml":"\xD6","QUOT":"\\"","REG":"\xAE","THORN":"\xDE","Uacute":"\xDA","Ucirc":"\xDB","Ugrave":"\xD9","Uuml":"\xDC","Yacute":"\xDD","aacute":"\xE1","acirc":"\xE2","acute":"\xB4","aelig":"\xE6","agrave":"\xE0","amp":"&","aring":"\xE5","atilde":"\xE3","auml":"\xE4","brvbar":"\xA6","ccedil":"\xE7","cedil":"\xB8","cent":"\xA2","copy":"\xA9","curren":"\xA4","deg":"\xB0","divide":"\xF7","eacute":"\xE9","ecirc":"\xEA","egrave":"\xE8","eth":"\xF0","euml":"\xEB","frac12":"\xBD","frac14":"\xBC","frac34":"\xBE","gt":">","iacute":"\xED","icirc":"\xEE","iexcl":"\xA1","igrave":"\xEC","iquest":"\xBF","iuml":"\xEF","laquo":"\xAB","lt":"<","macr":"\xAF","micro":"\xB5","middot":"\xB7","nbsp":"\xA0","not":"\xAC","ntilde":"\xF1","oacute":"\xF3","ocirc":"\xF4","ograve":"\xF2","ordf":"\xAA","ordm":"\xBA","oslash":"\xF8","otilde":"\xF5","ouml":"\xF6","para":"\xB6","plusmn":"\xB1","pound":"\xA3","quot":"\\"","raquo":"\xBB","reg":"\xAE","sect":"\xA7","shy":"\xAD","sup1":"\xB9","sup2":"\xB2","sup3":"\xB3","szlig":"\xDF","thorn":"\xFE","times":"\xD7","uacute":"\xFA","ucirc":"\xFB","ugrave":"\xF9","uml":"\xA8","uuml":"\xFC","yacute":"\xFD","yen":"\xA5","yuml":"\xFF"}')},78192:module=>{"use strict";module.exports=JSON.parse('{"0":"\uFFFD","128":"\u20AC","130":"\u201A","131":"\u0192","132":"\u201E","133":"\u2026","134":"\u2020","135":"\u2021","136":"\u02C6","137":"\u2030","138":"\u0160","139":"\u2039","140":"\u0152","142":"\u017D","145":"\u2018","146":"\u2019","147":"\u201C","148":"\u201D","149":"\u2022","150":"\u2013","151":"\u2014","152":"\u02DC","153":"\u2122","154":"\u0161","155":"\u203A","156":"\u0153","158":"\u017E","159":"\u0178"}')},71244:module=>{"use strict";module.exports=JSON.parse('{"year":{"previous":"last year","current":"this year","next":"next year","past":{"one":"a year ago","other":"{0} years ago"},"future":{"one":"in a year","other":"in {0} years"}},"quarter":{"previous":"last quarter","current":"this quarter","next":"next quarter","past":{"one":"a quarter ago","other":"{0} quarters ago"},"future":{"one":"in a quarter","other":"in {0} quarters"}},"month":{"previous":"last month","current":"this month","next":"next month","past":{"one":"a month ago","other":"{0} months ago"},"future":{"one":"in a month","other":"in {0} months"}},"week":{"previous":"last week","current":"this week","next":"next week","past":{"one":"a week ago","other":"{0} weeks ago"},"future":{"one":"in a week","other":"in {0} weeks"}},"day":{"previous":"yesterday","current":"today","next":"tomorrow","past":{"one":"a day ago","other":"{0} days ago"},"future":{"one":"in a day","other":"in {0} days"}},"hour":{"current":"this hour","past":{"one":"an hour ago","other":"{0} hours ago"},"future":{"one":"in an hour","other":"in {0} hours"}},"minute":{"current":"this minute","past":{"one":"a minute ago","other":"{0} minutes ago"},"future":{"one":"in a minute","other":"in {0} minutes"}},"second":{"current":"now","past":{"one":"a second ago","other":"{0} seconds ago"},"future":{"one":"in a second","other":"in {0} seconds"}},"now":{"future":"in a moment","past":"just now"}}')},71432:module=>{"use strict";module.exports=JSON.parse('{"year":{"one":"{0} year","other":"{0} years"},"month":{"one":"{0} month","other":"{0} months"},"week":{"one":"{0} week","other":"{0} weeks"},"day":{"one":"{0} day","other":"{0} days"},"hour":{"one":"{0} hour","other":"{0} hours"},"minute":{"one":"{0} minute","other":"{0} minutes"},"second":{"one":"{0} second","other":"{0} seconds"},"now":{"future":"in a moment","past":"just now"}}')},92e3:module=>{"use strict";module.exports=JSON.parse('{"year":{"previous":"last yr.","current":"this yr.","next":"next yr.","past":"{0} yr. ago","future":"in {0} yr."},"quarter":{"previous":"last qtr.","current":"this qtr.","next":"next qtr.","past":{"one":"{0} qtr. ago","other":"{0} qtrs. ago"},"future":{"one":"in {0} qtr.","other":"in {0} qtrs."}},"month":{"previous":"last mo.","current":"this mo.","next":"next mo.","past":"{0} mo. ago","future":"in {0} mo."},"week":{"previous":"last wk.","current":"this wk.","next":"next wk.","past":"{0} wk. ago","future":"in {0} wk."},"day":{"previous":"yesterday","current":"today","next":"tomorrow","past":{"one":"{0} day ago","other":"{0} days ago"},"future":{"one":"in {0} day","other":"in {0} days"}},"hour":{"current":"this hour","past":"{0} hr. ago","future":"in {0} hr."},"minute":{"current":"this minute","past":"{0} min. ago","future":"in {0} min."},"second":{"current":"now","past":"{0} sec. ago","future":"in {0} sec."},"now":{"future":"in a moment","past":"just now"}}')},9412:module=>{"use strict";module.exports=JSON.parse('{"year":"{0} yr.","month":"{0} mo.","week":"{0} wk.","day":{"one":"{0} day","other":"{0} days"},"hour":"{0} hr.","minute":"{0} min.","second":"{0} sec.","now":"now"}')},54634:module=>{"use strict";module.exports=JSON.parse('{"year":"{0}yr","month":"{0}mo","week":"{0}wk","day":"{0}d","hour":"{0}h","minute":"{0}m","second":"{0}s","now":"now"}')},34695:module=>{"use strict";module.exports=JSON.parse('{"year":{"previous":"last year","current":"this year","next":"next year","past":{"one":"{0} year ago","other":"{0} years ago"},"future":{"one":"in {0} year","other":"in {0} years"}},"quarter":{"previous":"last quarter","current":"this quarter","next":"next quarter","past":{"one":"{0} quarter ago","other":"{0} quarters ago"},"future":{"one":"in {0} quarter","other":"in {0} quarters"}},"month":{"previous":"last month","current":"this month","next":"next month","past":{"one":"{0} month ago","other":"{0} months ago"},"future":{"one":"in {0} month","other":"in {0} months"}},"week":{"previous":"last week","current":"this week","next":"next week","past":{"one":"{0} week ago","other":"{0} weeks ago"},"future":{"one":"in {0} week","other":"in {0} weeks"}},"day":{"previous":"yesterday","current":"today","next":"tomorrow","past":{"one":"{0} day ago","other":"{0} days ago"},"future":{"one":"in {0} day","other":"in {0} days"}},"hour":{"current":"this hour","past":{"one":"{0} hour ago","other":"{0} hours ago"},"future":{"one":"in {0} hour","other":"in {0} hours"}},"minute":{"current":"this minute","past":{"one":"{0} minute ago","other":"{0} minutes ago"},"future":{"one":"in {0} minute","other":"in {0} minutes"}},"second":{"current":"now","past":{"one":"{0} second ago","other":"{0} seconds ago"},"future":{"one":"in {0} second","other":"in {0} seconds"}}}')},84002:module=>{"use strict";module.exports=JSON.parse('{"year":{"previous":"last yr.","current":"this yr.","next":"next yr.","past":"{0} yr. ago","future":"in {0} yr."},"quarter":{"previous":"last qtr.","current":"this qtr.","next":"next qtr.","past":{"one":"{0} qtr. ago","other":"{0} qtrs. ago"},"future":{"one":"in {0} qtr.","other":"in {0} qtrs."}},"month":{"previous":"last mo.","current":"this mo.","next":"next mo.","past":"{0} mo. ago","future":"in {0} mo."},"week":{"previous":"last wk.","current":"this wk.","next":"next wk.","past":"{0} wk. ago","future":"in {0} wk."},"day":{"previous":"yesterday","current":"today","next":"tomorrow","past":{"one":"{0} day ago","other":"{0} days ago"},"future":{"one":"in {0} day","other":"in {0} days"}},"hour":{"current":"this hour","past":"{0} hr. ago","future":"in {0} hr."},"minute":{"current":"this minute","past":"{0} min. ago","future":"in {0} min."},"second":{"current":"now","past":"{0} sec. ago","future":"in {0} sec."}}')},52293:module=>{"use strict";module.exports=JSON.parse('{"year":{"previous":"last yr.","current":"this yr.","next":"next yr.","past":"{0} yr. ago","future":"in {0} yr."},"quarter":{"previous":"last qtr.","current":"this qtr.","next":"next qtr.","past":{"one":"{0} qtr. ago","other":"{0} qtrs. ago"},"future":{"one":"in {0} qtr.","other":"in {0} qtrs."}},"month":{"previous":"last mo.","current":"this mo.","next":"next mo.","past":"{0} mo. ago","future":"in {0} mo."},"week":{"previous":"last wk.","current":"this wk.","next":"next wk.","past":"{0} wk. ago","future":"in {0} wk."},"day":{"previous":"yesterday","current":"today","next":"tomorrow","past":{"one":"{0} day ago","other":"{0} days ago"},"future":{"one":"in {0} day","other":"in {0} days"}},"hour":{"current":"this hour","past":"{0} hr. ago","future":"in {0} hr."},"minute":{"current":"this minute","past":"{0} min. ago","future":"in {0} min."},"second":{"current":"now","past":"{0} sec. ago","future":"in {0} sec."}}')}}]);