1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`29ae0319a6961340fd1207c714d43b4796313dfd`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`b99c43b8-b7ff-4924-85ac-fc4af6a3dc78`,e._sentryDebugIdIdentifier=`sentry-dbid-b99c43b8-b7ff-4924-85ac-fc4af6a3dc78`)}catch{}})();import{t as e}from"./tslib.es6-mIQOBwPr.js";import{a as t,c as n,d as r,l as i,n as a,o,p as s,r as c,s as l,t as u}from"./inspect-Cfi2gwnz.js";import{f as d,u as ee}from"./context-C3qquy3y.js";import{t as f}from"./useMutation-BKV8JYnG.js";import{o as p}from"./src-hId4uPmf.js";import{i as m,n as h}from"./toast-g7I4BrDR.js";import{t as g}from"./cacheManagement-DmCZVM8z.js";function te(e){return typeof e==`object`&&!!e}function _(e,t){if(!e)throw Error(t??`Unexpected invariant triggered.`)}var ne=/\r\n|[\n\r]/g;function v(e,t){let n=0,r=1;for(let i of e.body.matchAll(ne)){if(typeof i.index==`number`||_(!1),i.index>=t)break;n=i.index+i[0].length,r+=1}return{line:r,column:t+1-n}}function re(e){return y(e.source,v(e.source,e.start))}function y(e,t){let n=e.locationOffset.column-1,r=``.padStart(n)+e.body,i=t.line-1,a=e.locationOffset.line-1,o=t.line+a,s=t.line===1?n:0,c=t.column+s,l=`${e.name}:${o}:${c}\n`,u=r.split(/\r\n|[\n\r]/g),d=u[i];if(d.length>120){let e=Math.floor(c/80),t=c%80,n=[];for(let e=0;e<d.length;e+=80)n.push(d.slice(e,e+80));return l+b([[`${o} |`,n[0]],...n.slice(1,e+1).map(e=>[`|`,e]),[`|`,`^`.padStart(t)],[`|`,n[e+1]]])}return l+b([[`${o-1} |`,u[i-1]],[`${o} |`,d],[`|`,`^`.padStart(c)],[`${o+1} |`,u[i+1]]])}function b(e){let t=e.filter(([e,t])=>t!==void 0),n=Math.max(...t.map(([e])=>e.length));return t.map(([e,t])=>e.padStart(n)+(t?` `+t:``)).join(` 2`)}function ie(e){let t=e[0];return t==null||`kind`in t||`length`in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}var ae=class e extends Error{constructor(t,...n){let{nodes:r,source:i,positions:a,path:o,originalError:s,extensions:c}=ie(n);super(t),this.name=`GraphQLError`,this.path=o??void 0,this.originalError=s??void 0,this.nodes=x(Array.isArray(r)?r:r?[r]:void 0);let l=x(this.nodes?.map(e=>e.loc).filter(e=>e!=null));this.source=i??l?.[0]?.source,this.positions=a??l?.map(e=>e.start),this.locations=a&&i?a.map(e=>v(i,e)):l?.map(e=>v(e.source,e.start));let u=te(s?.extensions)?s?.extensions:void 0;this.extensions=c??u??Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),s!=null&&s.stack?Object.defineProperty(this,"stack",{value:s.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,e):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return`GraphQLError`}toString(){let e=this.message;if(this.nodes)for(let t of this.nodes)t.loc&&(e+=` 3 4`+re(t.loc));else if(this.source&&this.locations)for(let t of this.locations)e+=` 5 6`+y(this.source,t);return e}toJSON(){let e={message:this.message};return this.locations!=null&&(e.locations=this.locations),this.path!=null&&(e.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}};function x(e){return e===void 0||e.length===0?void 0:e}function S(e,t,n){return new ae(`Syntax Error: ${n}`,{source:e,positions:[t]})}var C;(function(e){e.QUERY=`QUERY`,e.MUTATION=`MUTATION`,e.SUBSCRIPTION=`SUBSCRIPTION`,e.FIELD=`FIELD`,e.FRAGMENT_DEFINITION=`FRAGMENT_DEFINITION`,e.FRAGMENT_SPREAD=`FRAGMENT_SPREAD`,e.INLINE_FRAGMENT=`INLINE_FRAGMENT`,e.VARIABLE_DEFINITION=`VARIABLE_DEFINITION`,e.SCHEMA=`SCHEMA`,e.SCALAR=`SCALAR`,e.OBJECT=`OBJECT`,e.FIELD_DEFINITION=`FIELD_DEFINITION`,e.ARGUMENT_DEFINITION=`ARGUMENT_DEFINITION`,e.INTERFACE=`INTERFACE`,e.UNION=`UNION`,e.ENUM=`ENUM`,e.ENUM_VALUE=`ENUM_VALUE`,e.INPUT_OBJECT=`INPUT_OBJECT`,e.INPUT_FIELD_DEFINITION=`INPUT_FIELD_DEFINITION`,e.DIRECTIVE_DEFINITION=`DIRECTIVE_DEFINITION`})(C||={});var w;(function(e){e.SOF=`<SOF>`,e.EOF=`<EOF>`,e.BANG=`!`,e.DOLLAR=`$`,e.AMP=`&`,e.PAREN_L=`(`,e.PAREN_R=`)`,e.DOT=`.`,e.SPREAD=`...`,e.COLON=`:`,e.EQUALS=`=`,e.AT=`@`,e.BRACKET_L=`[`,e.BRACKET_R=`]`,e.BRACE_L=`{`,e.PIPE=`|`,e.BRACE_R=`}`,e.NAME=`Name`,e.INT=`Int`,e.FLOAT=`Float`,e.STRING=`String`,e.BLOCK_STRING=`BlockString`,e.COMMENT=`Comment`})(w||={});var oe=class{constructor(e){let t=new r(w.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return`Lexer`}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==w.EOF)do if(e.next)e=e.next;else{let t=ce(this,e.end);e.next=t,t.prev=e,e=t}while(e.kind===w.COMMENT);return e}};function se(e){return e===w.BANG||e===w.DOLLAR||e===w.AMP||e===w.PAREN_L||e===w.PAREN_R||e===w.DOT||e===w.SPREAD||e===w.COLON||e===w.EQUALS||e===w.AT||e===w.BRACKET_L||e===w.BRACKET_R||e===w.BRACE_L||e===w.PIPE||e===w.BRACE_R}function T(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function E(e,t){return D(e.charCodeAt(t))&&O(e.charCodeAt(t+1))}function D(e){return e>=55296&&e<=56319}function O(e){return e>=56320&&e<=57343}function k(e,t){let n=e.source.body.codePointAt(t);if(n===void 0)return w.EOF;
vendor: 16,963 bytes, lines 6-19
6if(n>=32&&n<=126){let e=String.fromCodePoint(n);return e===`"`?`'"'`:`"${e}"`}return`U+`+n.toString(16).toUpperCase().padStart(4,`0`)}function A(e,t,n,i,a){let o=e.line;return new r(t,n,i,o,1+n-e.lineStart,a)}function ce(e,n){let r=e.source.body,i=r.length,a=n;for(;a<i;){let n=r.charCodeAt(a);switch(n){case 65279:case 9:case 32:case 44:++a;continue;case 10:++a,++e.line,e.lineStart=a;continue;case 13:r.charCodeAt(a+1)===10?a+=2:++a,++e.line,e.lineStart=a;continue;case 35:return le(e,a);case 33:return A(e,w.BANG,a,a+1);case 36:return A(e,w.DOLLAR,a,a+1);case 38:return A(e,w.AMP,a,a+1);case 40:return A(e,w.PAREN_L,a,a+1);case 41:return A(e,w.PAREN_R,a,a+1);case 46:if(r.charCodeAt(a+1)===46&&r.charCodeAt(a+2)===46)return A(e,w.SPREAD,a,a+3);break;case 58:return A(e,w.COLON,a,a+1);case 61:return A(e,w.EQUALS,a,a+1);case 64:return A(e,w.AT,a,a+1);case 91:return A(e,w.BRACKET_L,a,a+1);case 93:return A(e,w.BRACKET_R,a,a+1);case 123:return A(e,w.BRACE_L,a,a+1);case 124:return A(e,w.PIPE,a,a+1);case 125:return A(e,w.BRACE_R,a,a+1);case 34:return r.charCodeAt(a+1)===34&&r.charCodeAt(a+2)===34?F(e,a):de(e,a)}if(t(n)||n===45)return ue(e,a,n);if(l(n))return I(e,a);throw S(e.source,a,n===39?`Unexpected single quote character ('), did you mean to use a double quote (")?`:T(n)||E(r,a)?`Unexpected character: ${k(e,a)}.`:`Invalid character: ${k(e,a)}.`)}return A(e,w.EOF,i,i)}function le(e,t){let n=e.source.body,r=n.length,i=t+1;for(;i<r;){let e=n.charCodeAt(i);if(e===10||e===13)break;if(T(e))++i;else if(E(n,i))i+=2;else break}return A(e,w.COMMENT,t,i,n.slice(t+1,i))}function ue(e,n,r){let i=e.source.body,a=n,o=r,s=!1;if(o===45&&(o=i.charCodeAt(++a)),o===48){if(o=i.charCodeAt(++a),t(o))throw S(e.source,a,`Invalid number, unexpected digit after 0: ${k(e,a)}.`)}else a=j(e,a,o),o=i.charCodeAt(a);if(o===46&&(s=!0,o=i.charCodeAt(++a),a=j(e,a,o),o=i.charCodeAt(a)),(o===69||o===101)&&(s=!0,o=i.charCodeAt(++a),(o===43||o===45)&&(o=i.charCodeAt(++a)),a=j(e,a,o),o=i.charCodeAt(a)),o===46||l(o))throw S(e.source,a,`Invalid number, expected digit but got: ${k(e,a)}.`);return A(e,s?w.FLOAT:w.INT,n,a,i.slice(n,a))}function j(e,n,r){if(!t(r))throw S(e.source,n,`Invalid number, expected digit but got: ${k(e,n)}.`);let i=e.source.body,a=n+1;for(;t(i.charCodeAt(a));)++a;return a}function de(e,t){let n=e.source.body,r=n.length,i=t+1,a=i,o=``;for(;i<r;){let r=n.charCodeAt(i);if(r===34)return o+=n.slice(a,i),A(e,w.STRING,t,i+1,o);if(r===92){o+=n.slice(a,i);let t=n.charCodeAt(i+1)===117?n.charCodeAt(i+2)===123?fe(e,i):pe(e,i):P(e,i);o+=t.value,i+=t.size,a=i;continue}if(r===10||r===13)break;if(T(r))++i;else if(E(n,i))i+=2;else throw S(e.source,i,`Invalid character within String: ${k(e,i)}.`)}throw S(e.source,i,`Unterminated string.`)}function fe(e,t){let n=e.source.body,r=0,i=3;for(;i<12;){let e=n.charCodeAt(t+i++);if(e===125){if(i<5||!T(r))break;return{value:String.fromCodePoint(r),size:i}}if(r=r<<4|N(e),r<0)break}throw S(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+i)}".`)}function pe(e,t){let n=e.source.body,r=M(n,t+2);if(T(r))return{value:String.fromCodePoint(r),size:6};if(D(r)&&n.charCodeAt(t+6)===92&&n.charCodeAt(t+7)===117){let e=M(n,t+8);if(O(e))return{value:String.fromCodePoint(r,e),size:12}}throw S(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+6)}".`)}function M(e,t){return N(e.charCodeAt(t))<<12|N(e.charCodeAt(t+1))<<8|N(e.charCodeAt(t+2))<<4|N(e.charCodeAt(t+3))}function N(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function P(e,t){let n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:`"`,size:2};case 92:return{value:`\\`,size:2};case 47:return{value:`/`,size:2};case 98:return{value:`\b`,size:2};case 102:return{value:`\f`,size:2};case 110:return{value:` 7`,size:2};case 114:return{value:`\r`,size:2};case 116:return{value:` `,size:2}}throw S(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function F(e,t){let n=e.source.body,r=n.length,i=e.lineStart,a=t+3,o=a,s=``,l=[];for(;a<r;){let r=n.charCodeAt(a);if(r===34&&n.charCodeAt(a+1)===34&&n.charCodeAt(a+2)===34){s+=n.slice(o,a),l.push(s);let r=A(e,w.BLOCK_STRING,t,a+3,c(l).join(` 8`));return e.line+=l.length-1,e.lineStart=i,r}if(r===92&&n.charCodeAt(a+1)===34&&n.charCodeAt(a+2)===34&&n.charCodeAt(a+3)===34){s+=n.slice(o,a),o=a+1,a+=4;continue}if(r===10||r===13){s+=n.slice(o,a),l.push(s),r===13&&n.charCodeAt(a+1)===10?a+=2:++a,s=``,o=a,i=a;continue}if(T(r))++a;else if(E(n,a))a+=2;else throw S(e.source,a,`Invalid character within String: ${k(e,a)}.`)}throw S(e.source,a,`Unterminated string.`)}function I(e,t){let n=e.source.body,r=n.length,i=t+1;for(;i<r&&o(n.charCodeAt(i));)++i;return A(e,w.NAME,t,i,n.slice(t,i))}var L=globalThis.process?function(e,t){return e instanceof t}:function(e,t){if(e instanceof t)return!0;if(typeof e==`object`&&e){let n=t.prototype[Symbol.toStringTag];if(n===(Symbol.toStringTag in e?e[Symbol.toStringTag]:e.constructor?.name)){let t=u(e);throw Error(`Cannot use ${n} "${t}" from another module or realm. 9 10Ensure that there is only one instance of "graphql" in the node_modules 11directory. If different versions of "graphql" are the dependencies of other 12relied on modules, use "resolutions" to ensure only one version is installed. 13 14https://yarnpkg.com/en/docs/selective-version-resolutions 15 16Duplicate "graphql" modules cannot be used at the same time since different 17versions may have different capabilities and behavior. The data from one 18version used in the function from another could produce confusing and 19spurious results.`)}}return!1},R=class{constructor(e,t=`GraphQL request`,n={line:1,column:1}){typeof e==`string`||a(!1,`Body must be a string. Received: ${u(e)}.`),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||a(!1,`line in locationOffset is 1-indexed and must be positive.`),this.locationOffset.column>0||a(!1,`column in locationOffset is 1-indexed and must be positive.`)}get[Symbol.toStringTag](){return`Source`}};function z(e){return L(e,R)}function B(e,t){let n=new me(e,t),r=n.parseDocument();return Object.defineProperty(r,"tokenCount",{enumerable:!1,value:n.tokenCount}),r}var me=class{constructor(e,t={}){let{lexer:n,...r}=t;if(n)this._lexer=n;else{let t=z(e)?e:new R(e);this._lexer=new oe(t)}this._options=r,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){let e=this.expectToken(w.NAME);return this.node(e,{kind:s.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:s.DOCUMENT,definitions:this.many(w.SOF,this.parseDefinition,w.EOF)})}parseDefinition(){if(this.peek(w.BRACE_L))return this.parseOperationDefinition();let e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(e&&t.kind===w.BRACE_L)throw S(this._lexer.source,this._lexer.token.start,`Unexpected description, descriptions are not supported on shorthand queries.`);if(t.kind===w.NAME){switch(t.value){case`schema`:return this.parseSchemaDefinition();case`scalar`:return this.parseScalarTypeDefinition();case`type`:return this.parseObjectTypeDefinition();case`interface`:return this.parseInterfaceTypeDefinition();case`union`:return this.parseUnionTypeDefinition();case`enum`:return this.parseEnumTypeDefinition();case`input`:return this.parseInputObjectTypeDefinition();case`directive`:return this.parseDirectiveDefinition()}switch(t.value){case`query`:case`mutation`:case`subscription`:return this.parseOperationDefinition();case`fragment`:return this.parseFragmentDefinition()}if(e)throw S(this._lexer.source,this._lexer.token.start,`Unexpected description, only GraphQL definitions support descriptions.`);switch(t.value){case`extend`:return this.parseTypeSystemExtension()}}throw this.unexpected(t)}parseOperationDefinition(){let e=this._lexer.token;if(this.peek(w.BRACE_L))return this.node(e,{kind:s.OPERATION_DEFINITION,operation:i.QUERY,description:void 0,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let t=this.parseDescription(),n=this.parseOperationType(),r;return this.peek(w.NAME)&&(r=this.parseName()),this.node(e,{kind:s.OPERATION_DEFINITION,operation:n,description:t,name:r,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let e=this.expectToken(w.NAME);switch(e.value){case`query`:return i.QUERY;case`mutation`:return i.MUTATION;case`subscription`:return i.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(w.PAREN_L,this.parseVariableDefinition,w.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:s.VARIABLE_DEFINITION,description:this.parseDescription(),variable:this.parseVariable(),type:(this.expectToken(w.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(w.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let e=this._lexer.token;return this.expectToken(w.DOLLAR),this.node(e,{kind:s.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:s.SELECTION_SET,selections:this.many(w.BRACE_L,this.parseSelection,w.BRACE_R)})}parseSelection(){return this.peek(w.SPREAD)?this.parseFragment():this.parseField()}parseField(){let e=this._lexer.token,t=this.parseName(),n,r;return this.expectOptionalToken(w.COLON)?(n=t,r=this.parseName()):r=t,this.node(e,{kind:s.FIELD,alias:n,name:r,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(w.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){let t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(w.PAREN_L,t,w.PAREN_R)}parseArgument(e=!1){let t=this._lexer.token,n=this.parseName();return this.expectToken(w.COLON),this.node(t,{kind:s.ARGUMENT,name:n,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let e=this._lexer.token;this.expectToken(w.SPREAD);let t=this.expectOptionalKeyword(`on`);return!t&&this.peek(w.NAME)?this.node(e,{kind:s.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:s.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){let e=this._lexer.token,t=this.parseDescription();return this.expectKeyword(`fragment`),this._options.allowLegacyFragmentVariables===!0?this.node(e,{kind:s.FRAGMENT_DEFINITION,description:t,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword(`on`),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:s.FRAGMENT_DEFINITION,description:t,name:this.parseFragmentName(),typeCondition:(this.expectKeyword(`on`),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value===`on`)throw this.unexpected();return this.parseName()}parseValueLiteral(e){let t=this._lexer.token;switch(t.kind){case w.BRACKET_L:return this.parseList(e);case w.BRACE_L:return this.parseObject(e);case w.INT:return this.advanceLexer(),this.node(t,{kind:s.INT,value:t.value});case w.FLOAT:return this.advanceLexer(),this.node(t,{kind:s.FLOAT,value:t.value});case w.STRING:case w.BLOCK_STRING:return this.parseStringLiteral();case w.NAME:switch(this.advanceLexer(),t.value){case`true`:return this.node(t,{kind:s.BOOLEAN,value:!0});case`false`:return this.node(t,{kind:s.BOOLEAN,value:!1});case`null`:return this.node(t,{kind:s.NULL});default:return this.node(t,{kind:s.ENUM,value:t.value})}case w.DOLLAR:if(e)if(this.expectToken(w.DOLLAR),this._lexer.token.kind===w.NAME){let e=this._lexer.token.value;throw S(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}else throw this.unexpected(t);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){let e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:s.STRING,value:e.value,block:e.kind===w.BLOCK_STRING})}parseList(e){return this.node(this._lexer.token,{kind:s.LIST,values:this.any(w.BRACKET_L,()=>this.parseValueLiteral(e),w.BRACKET_R)})}parseObject(e){return this.node(this._lexer.token,{kind:s.OBJECT,fields:this.any(w.BRACE_L,()=>this.parseObjectField(e),w.BRACE_R)})}parseObjectField(e){let t=this._lexer.token,n=this.parseName();return this.expectToken(w.COLON),this.node(t,{kind:s.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e)})}parseDirectives(e){let t=[];for(;this.peek(w.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){let t=this._lexer.token;return this.expectToken(w.AT),this.node(t,{kind:s.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){let e=this._lexer.token,t;if(this.expectOptionalToken(w.BRACKET_L)){let n=this.parseTypeReference();this.expectToken(w.BRACKET_R),t=this.node(e,{kind:s.LIST_TYPE,type:n})}else t=this.parseNamedType();return this.expectOptionalToken(w.BANG)?this.node(e,{kind:s.NON_NULL_TYPE,type:t}):t}parseNamedType(){return this.node(this._lexer.token,{kind:s.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(w.STRING)||this.peek(w.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword(`schema`);let n=this.parseConstDirectives(),r=this.many(w.BRACE_L,this.parseOperationTypeDefinition,w.BRACE_R);return this.node(e,{kind:s.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r})}parseOperationTypeDefinition(){let e=this._lexer.token,t=this.parseOperationType();this.expectToken(w.COLON);let n=this.parseNamedType();return this.node(e,{kind:s.OPERATION_TYPE_DEFINITION,operation:t,type:n})}parseScalarTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword(`scalar`);let n=this.parseName(),r=this.parseConstDirectives();return this.node(e,{kind:s.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r})}parseObjectTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword(`type`);let n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(e,{kind:s.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:a})}parseImplementsInterfaces(){return this.expectOptionalKeyword(`implements`)?this.delimitedMany(w.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(w.BRACE_L,this.parseFieldDefinition,w.BRACE_R)}parseFieldDefinition(){let e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(w.COLON);let i=this.parseTypeReference(),a=this.parseConstDirectives();return this.node(e,{kind:s.FIELD_DEFINITION,description:t,name:n,arguments:r,type:i,directives:a})}parseArgumentDefs(){return this.optionalMany(w.PAREN_L,this.parseInputValueDef,w.PAREN_R)}parseInputValueDef(){let e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(w.COLON);let r=this.parseTypeReference(),i;this.expectOptionalToken(w.EQUALS)&&(i=this.parseConstValueLiteral());let a=this.parseConstDirectives();return this.node(e,{kind:s.INPUT_VALUE_DEFINITION,description:t,name:n,type:r,defaultValue:i,directives:a})}parseInterfaceTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword(`interface`);let n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(e,{kind:s.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:a})}parseUnionTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword(`union`);let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseUnionMemberTypes();return this.node(e,{kind:s.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:i})}parseUnionMemberTypes(){return this.expectOptionalToken(w.EQUALS)?this.delimitedMany(w.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword(`enum`);let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();return this.node(e,{kind:s.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:i})}parseEnumValuesDefinition(){return this.optionalMany(w.BRACE_L,this.parseEnumValueDefinition,w.BRACE_R)}parseEnumValueDefinition(){let e=this._lexer.token,t=this.parseDescription(),n=this.parseEnumValueName(),r=this.parseConstDirectives();return this.node(e,{kind:s.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r})}parseEnumValueName(){if(this._lexer.token.value===`true`||this._lexer.token.value===`fal
19se`||this._lexer.token.value===`null`)throw S(this._lexer.source,this._lexer.token.start,`${V(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword(`input`);let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();return this.node(e,{kind:s.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:i})}parseInputFieldsDefinition(){return this.optionalMany(w.BRACE_L,this.parseInputValueDef,w.BRACE_R)}parseTypeSystemExtension(){let e=this._lexer.lookahead();if(e.kind===w.NAME)switch(e.value){case`schema`:return this.parseSchemaExtension();case`scalar`:return this.parseScalarTypeExtension();case`type`:return this.parseObjectTypeExtension();case`interface`:return this.parseInterfaceTypeExtension();case`union`:return this.parseUnionTypeExtension();case`enum`:return this.parseEnumTypeExtension();case`input`:return this.parseInputObjectTypeExtension();case`directive`:if(this._options.experimentalDirectivesOnDirectiveDefinitions)return this.parseDirectiveDefinitionExtension();break}throw this.unexpected(e)}parseSchemaExtension(){let e=this._lexer.token;this.expectKeyword(`extend`),this.expectKeyword(`schema`);let t=this.parseConstDirectives(),n=this.optionalMany(w.BRACE_L,this.parseOperationTypeDefinition,w.BRACE_R);if(t.length===0&&n.length===0)throw this.unexpected();return this.node(e,{kind:s.SCHEMA_EXTENSION,directives:t,operationTypes:n})}parseScalarTypeExtension(){let e=this._lexer.token;this.expectKeyword(`extend`),this.expectKeyword(`scalar`);let t=this.parseName(),n=this.parseConstDirectives();if(n.length===0)throw this.unexpected();return this.node(e,{kind:s.SCALAR_TYPE_EXTENSION,name:t,directives:n})}parseObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword(`extend`),this.expectKeyword(`type`);let t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(n.length===0&&r.length===0&&i.length===0)throw this.unexpected();return this.node(e,{kind:s.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}parseInterfaceTypeExtension(){let e=this._lexer.token;this.expectKeyword(`extend`),this.expectKeyword(`interface`);let t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(n.length===0&&r.length===0&&i.length===0)throw this.unexpected();return this.node(e,{kind:s.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}parseUnionTypeExtension(){let e=this._lexer.token;this.expectKeyword(`extend`),this.expectKeyword(`union`);let t=this.parseName(),n=this.parseConstDirectives(),r=this.parseUnionMemberTypes();if(n.length===0&&r.length===0)throw this.unexpected();return this.node(e,{kind:s.UNION_TYPE_EXTENSION,name:t,directives:n,types:r})}parseEnumTypeExtension(){let e=this._lexer.token;this.expectKeyword(`extend`),this.expectKeyword(`enum`);let t=this.parseName(),n=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();if(n.length===0&&r.length===0)throw this.unexpected();return this.node(e,{kind:s.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r})}parseInputObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword(`extend`),this.expectKeyword(`input`);let t=this.parseName(),n=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();if(n.length===0&&r.length===0)throw this.unexpected();return this.node(e,{kind:s.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r})}parseDirectiveDefinitionExtension(){let e=this._lexer.token;this.expectKeyword(`extend`),this.expectKeyword(`directive`),this.expectToken(w.AT);let t=this.parseName(),n=this.parseConstDirectives();if(n.length===0)throw this.unexpected();return this.node(e,{kind:s.DIRECTIVE_EXTENSION,name:t,directives:n})}parseDirectiveDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword(`directive`),this.expectToken(w.AT);let n=this.parseName(),r=this.parseArgumentDefs(),i=this._options.experimentalDirectivesOnDirectiveDefinitions?this.parseConstDirectives():[],a=this.expectOptionalKeyword(`repeatable`);this.expectKeyword(`on`);let o=this.parseDirectiveLocations();return this.node(e,{kind:s.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,directives:i,repeatable:a,locations:o})}parseDirectiveLocations(){return this.delimitedMany(w.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(C,t.value))return t;throw this.unexpected(e)}parseSchemaCoordinate(){let e=this._lexer.token,t=this.expectOptionalToken(w.AT),n=this.parseName(),r;!t&&this.expectOptionalToken(w.DOT)&&(r=this.parseName());let i;return(t||r)&&this.expectOptionalToken(w.PAREN_L)&&(i=this.parseName(),this.expectToken(w.COLON),this.expectToken(w.PAREN_R)),t?i?this.node(e,{kind:s.DIRECTIVE_ARGUMENT_COORDINATE,name:n,argumentName:i}):this.node(e,{kind:s.DIRECTIVE_COORDINATE,name:n}):r?i?this.node(e,{kind:s.ARGUMENT_COORDINATE,name:n,fieldName:r,argumentName:i}):this.node(e,{kind:s.MEMBER_COORDINATE,name:n,memberName:r}):this.node(e,{kind:s.TYPE_COORDINATE,name:n})}node(e,t){return this._options.noLocation!==!0&&(t.loc=new n(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){let t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw S(this._lexer.source,t.start,`Expected ${H(e)}, found ${V(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e?(this.advanceLexer(),!0):!1}expectKeyword(e){let t=this._lexer.token;if(t.kind===w.NAME&&t.value===e)this.advanceLexer();else throw S(this._lexer.source,t.start,`Expected "${e}", found ${V(t)}.`)}expectOptionalKeyword(e){let t=this._lexer.token;return t.kind===w.NAME&&t.value===e?(this.advanceLexer(),!0):!1}unexpected(e){let t=e??this._lexer.token;return S(this._lexer.source,t.start,`Unexpected ${V(t)}.`)}any(e,t,n){this.expectToken(e);let r=[];for(;!this.expectOptionalToken(n);)r.push(t.call(this));return r}optionalMany(e,t,n){if(this.expectOptionalToken(e)){let e=[];do e.push(t.call(this));while(!this.expectOptionalToken(n));return e}return[]}many(e,t,n){this.expectToken(e);let r=[];do r.push(t.call(this));while(!this.expectOptionalToken(n));return r}delimitedMany(e,t){this.expectOptionalToken(e);let n=[];do n.push(t.call(this));while(this.expectOptionalToken(e));return n}advanceLexer(){let{maxTokens:e}=this._options,t=this._lexer.advance();if(t.kind!==w.EOF&&(++this._tokenCounter,e!==void 0&&this._tokenCounter>e))throw S(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}};function V(e){let t=e.value;return H(e.kind)+(t==null?``:` "${t}"`)}function H(e){return se(e)?`"${e}"`:e}var U=new Map,W=new Map,G=!0,K=!1;function q(e){return e.replace(/[\s,]+/g,` `).trim()}function he(e){return q(e.source.body.substring(e.start,e.end))}function ge(t){var n=new Set,r=[];return t.definitions.forEach(function(e){if(e.kind===`FragmentDefinition`){var t=e.name.value,i=he(e.loc),a=W.get(t);a&&!a.has(i)?G&&console.warn(`Warning: fragment with name `+t+` already exists. 20graphql-tag enforces all fragment names across your application to be unique; read more about 21this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):a||W.set(t,a=new Set),a.add(i),n.has(i)||(n.add(i),r.push(e))}else r.push(e)}),e(e({},t),{definitions:r})}function _e(e){var t=new Set(e.definitions);t.forEach(function(e){e.loc&&delete e.loc,Object.keys(e).forEach(function(n){var r=e[n];r&&typeof r==`object`&&t.add(r)})});var n=e.loc;return n&&(delete n.startToken,delete n.endToken),e}function ve(e){var t=q(e);if(!U.has(t)){var n=B(e,{experimentalFragmentVariables:K,allowLegacyFragmentVariables:K});if(!n||n.kind!==`Document`)throw Error(`Not a valid GraphQL document.`);U.set(t,_e(ge(n)))}return U.get(t)}function J(e){var t=[...arguments].slice(1);typeof e==`string`&&(e=[e]);var n=e[0];return t.forEach(function(t,r){t&&t.kind===`Document`?n+=t.loc.source.body:n+=t,n+=e[r+1]}),ve(n)}function ye(){U.clear(),W.clear()}function be(){G=!1}function xe(){K=!0}function Se(){K=!1}var Y={gql:J,resetCaches:ye,disableFragmentWarnings:be,enableExperimentalFragmentVariables:xe,disableExperimentalFragmentVariables:Se};(function(e){e.gql=Y.gql,e.resetCaches=Y.resetCaches,e.disableFragmentWarnings=Y.disableFragmentWarnings,e.enableExperimentalFragmentVariables=Y.enableExperimentalFragmentVariables,e.disableExperimentalFragmentVariables=Y.disableExperimentalFragmentVariables})(J||={}),J.default=J;var X=e=>{e.evict({id:`ROOT_QUERY`,fieldName:`listFolders`}),e.evict({id:`ROOT_QUERY`,fieldName:`getWorkspaceFolderById`}),e.gc()},Ce={kind:`Document`,definitions:[{kind:`OperationDefinition`,operation:`mutation`,name:{kind:`N
21ame`,value:`CreateProject`},variableDefinitions:[{kind:`VariableDefinition`,variable:{kind:`Variable`,name:{kind:`Name`,value:`input`}},type:{kind:`NonNullType`,type:{kind:`NamedType`,name:{kind:`Name`,value:`ProjectCreateBodyInput`}}}}],selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`createProject`},arguments:[{kind:`Argument`,name:{kind:`Name`,value:`input`},value:{kind:`Variable`,name:{kind:`Name`,value:`input`}}}],selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`__typename`}},{kind:`InlineFragment`,typeCondition:{kind:`NamedType`,name:{kind:`Name`,value:`Project`}},selectionSet:{kind:`SelectionSet`,selections:[{kind:`FragmentSpread`,name:{kind:`Name`,value:`CollatedProjectFields`}},{kind:`Field`,name:{kind:`Name`,value:`id`}},{kind:`Field`,name:{kind:`Name`,value:`templateId`}},{kind:`Field`,name:{kind:`Name`,value:`isCustomTemplate`}},{kind:`Field`,name:{kind:`Name`,value:`customTemplateId`}},{kind:`Field`,name:{kind:`Name`,value:`createdAt`}},{kind:`Field`,name:{kind:`Name`,value:`updatedAt`}},{kind:`Field`,name:{kind:`Name`,value:`duplicatedFrom`}},{kind:`Field`,name:{kind:`Name`,value:`expiresAt`}},{kind:`Field`,name:{kind:`Name`,value:`name`}},{kind:`Field`,name:{kind:`Name`,value:`thumbnailUrl`}},{kind:`Field`,name:{kind:`Name`,value:`privacy`}},{kind:`Field`,name:{kind:`Name`,value:`userId`}},{kind:`Field`,name:{kind:`Name`,value:`workspaceId`}}]}},{kind:`InlineFragment`,typeCondition:{kind:`NamedType`,name:{kind:`Name`,value:`HTTPError`}},selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`message`}},{kind:`Field`,name:{kind:`Name`,value:`statusCode`}}]}}]}}]}},{kind:`FragmentDefinition`,name:{kind:`Name`,value:`ProjectMigrationFields`},typeCondition:{kind:`NamedType`,name:{kind:`Name`,value:`Project`}},selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`id`}}]}},{kind:`FragmentDefinition`,name:{kind:`Name`,value:`ProjectPermissionsFields`},typeCondition:{kind:`NamedType`,name:{kind:`Name`,value:`ProjectPermissions`}},selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`allowCallToAction`}},{kind:`Field`,name:{kind:`Name`,value:`allowDownloads`}},{kind:`Field`,name:{kind:`Name`,value:`allowDuplicates`}},{kind:`Field`,name:{kind:`Name`,value:`allowShare`}},{kind:`Field`,name:{kind:`Name`,value:`allowTranscriptions`}}]}},{kind:`FragmentDefinition`,name:{kind:`Name`,value:`ProjectPrefFields`},typeCondition:{kind:`NamedType`,name:{kind:`Name`,value:`Project`}},selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`name`}},{kind:`Field`,name:{kind:`Name`,value:`privacy`}},{kind:`Field`,name:{kind:`Name`,value:`permissions`},selectionSet:{kind:`SelectionSet`,selections:[{kind:`FragmentSpread`,name:{kind:`Name`,value:`ProjectPermissionsFields`}}]}}]}},{kind:`FragmentDefinition`,name:{kind:`Name`,value:`RepurposeProjectFields`},typeCondition:{kind:`NamedType`,name:{kind:`Name`,value:`Project`}},selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`id`}},{kind:`Field`,name:{kind:`Name`,value:`folderId`}}]}},{kind:`FragmentDefinition`,name:{kind:`Name`,value:`ProjectUserPermissionsFields`},typeCondition:{kind:`NamedType`,name:{kind:`Name`,value:`Project`}},selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`currentUserPermissions`},selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`__typename`}},{kind:`InlineFragment`,typeCondition:{kind:`NamedType`,name:{kind:`Name`,value:`ProjectUserPermissions`}},selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`__typename`}},{kind:`Field`,name:{kind:`Name`,value:`canEdit`}},{kind:`Field`,name:{kind:`Name`,value:`canReview`}},{kind:`Field`,name:{kind:`Name`,value:`canReadWorkspace`}}]}}]}}]}},{kind:`FragmentDefinition`,name:{kind:`Name`,value:`ProjectSpaceFields`},typeCondition:{kind:`NamedType`,name:{kind:`Name`,value:`Project`}},selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`N
21ame`,value:`space`},selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`__typename`}},{kind:`InlineFragment`,typeCondition:{kind:`NamedType`,name:{kind:`Name`,value:`Space`}},selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`id`}},{kind:`Field`,name:{kind:`Name`,value:`privacy`}},{kind:`Field`,name:{kind:`Name`,value:`name`}},{kind:`Field`,name:{kind:`Name`,value:`workspaceId`}},{kind:`Field`,name:{kind:`Name`,value:`members`},selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`userId`}}]}}]}}]}}]}},{kind:`FragmentDefinition`,name:{kind:`Name`,value:`ProjectAnalyticsFields`},typeCondition:{kind:`NamedType`,name:{kind:`Name`,value:`Project`}},selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`id`}},{kind:`Field`,name:{kind:`Name`,value:`userId`}},{kind:`Field`,name:{kind:`Name`,value:`name`}},{kind:`Field`,name:{kind:`Name`,value:`duration`}},{kind:`Field`,name:{kind:`Name`,value:`thumbnailUrl`}}]}},{kind:`FragmentDefinition`,name:{kind:`Name`,value:`CollatedProjectFields`},typeCondition:{kind:`NamedType`,name:{kind:`Name`,value:`Project`}},selectionSet:{kind:`SelectionSet`,selections:[{kind:`FragmentSpread`,name:{kind:`Name`,value:`ProjectMigrationFields`}},{kind:`FragmentSpread`,name:{kind:`Name`,value:`ProjectPrefFields`}},{kind:`FragmentSpread`,name:{kind:`Name`,value:`RepurposeProjectFields`}},{kind:`FragmentSpread`,name:{kind:`Name`,value:`ProjectUserPermissionsFields`}},{kind:`FragmentSpread`,name:{kind:`Name`,value:`ProjectSpaceFields`}},{kind:`FragmentSpread`,name:{kind:`Name`,value:`ProjectAnalyticsFields`}},{kind:`Field`,name:{kind:`Name`,value:`id`}},{kind:`Field`,name:{kind:`Name`,value:`__typename`}},{kind:`Field`,name:{kind:`Name`,value:`name`}},{kind:`Field`,name:{kind:`Name`,value:`duration`}},{kind:`Field`,name:{kind:`Name`,value:`thumbnailUrl`}},{kind:`Field`,name:{kind:`Name`,value:`estimatedDuration`}},{kind:`Field`,name:{kind:`Name`,value:`status`}},{kind:`Field`,name:{kind:`Name`,value:`createdAt`}},{kind:`Field`,name:{kind:`Name`,value:`updatedAt`}},{kind:`Field`,name:{kind:`Name`,value:`lastRenderedUrl`}},{kind:`Field`,name:{kind:`Name`,value:`userId`}},{kind:`Field`,name:{kind:`Name`,value:`isExported`}},{kind:`Field`,name:{kind:`Name`,value:`type`}},{kind:`Field`,name:{kind:`Name`,value:`workspaceId`}}]}}]},we={kind:`Document`,definitions:[{kind:`OperationDefinition`,operation:`mutation`,name:{kind:`Name`,value:`CreateProjectWithAsset`},variableDefinitions:[{kind:`VariableDefinition`,variable:{kind:`Variable`,name:{kind:`Name`,value:`input`}},type:{kind:`NonNullType`,type:{kind:`NamedType`,name:{kind:`Name`,value:`CreateProjectWithAssetInput`}}}}],selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`createProjectWithAsset`},arguments:[{kind:`Argument`,name:{kind:`Name`,value:`input`},value:{kind:`Variable`,name:{kind:`Name`,value:`input`}}}],selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`__typename`}},{kind:`InlineFragment`,typeCondition:{kind:`NamedType`,name:{kind:`Name`,value:`Project`}},selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`id`}},{kind:`Field`,name:{kind:`Name`,value:`name`}},{kind:`Field`,name:{kind:`Name`,value:`workspaceId`}},{kind:`Field`,name:{kind:`Name`,value:`folderId`}},{kind:`Field`,name:{kind:`Name`,value:`spaceId`}}]}},{kind:`InlineFragment`,typeCondition:{kind:`NamedType`,name:{kind:`Name`,value:`HTTPError`}},selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`message`}},{kind:`Field`,name:{kind:`Name`,value:`statusCode`}}]}}]}}]}}]},Te={kind:`Document`,definitions:[{kind:`OperationDefinition`,operation:`mutation`,name:{kind:`Name`,value:`MoveProject`},variableDefinitions:[{kind:`VariableDefinition`,variable:{kind:`Variable`,name:{kind:`Name`,value:`projectId`}},type:{kind:`NonNullType`,type:{kind:`NamedType`,name:{kind:`Name`,value:`ID`}}}},{kind:`VariableDefinition`,variable:{kind:`Variable`,name:{kind:`N
21ame`,value:`folderId`}},type:{kind:`NamedType`,name:{kind:`Name`,value:`ID`}}}],selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`moveProject`},arguments:[{kind:`Argument`,name:{kind:`Name`,value:`projectId`},value:{kind:`Variable`,name:{kind:`Name`,value:`projectId`}}},{kind:`Argument`,name:{kind:`Name`,value:`folderId`},value:{kind:`Variable`,name:{kind:`Name`,value:`folderId`}}}],selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`__typename`}},{kind:`InlineFragment`,typeCondition:{kind:`NamedType`,name:{kind:`Name`,value:`Project`}},selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`id`}},{kind:`Field`,name:{kind:`Name`,value:`folderId`}},{kind:`Field`,name:{kind:`Name`,value:`workspaceId`}}]}},{kind:`InlineFragment`,typeCondition:{kind:`NamedType`,name:{kind:`Name`,value:`HTTPError`}},selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`message`}},{kind:`Field`,name:{kind:`Name`,value:`statusCode`}}]}}]}}]}}]},Ee={kind:`Document`,definitions:[{kind:`OperationDefinition`,operation:`mutation`,name:{kind:`Name`,value:`DeleteProject`},variableDefinitions:[{kind:`VariableDefinition`,variable:{kind:`Variable`,name:{kind:`Name`,value:`projectId`}},type:{kind:`NonNullType`,type:{kind:`NamedType`,name:{kind:`Name`,value:`ID`}}}},{kind:`VariableDefinition`,variable:{kind:`Variable`,name:{kind:`Name`,value:`isPermanent`}},type:{kind:`NamedType`,name:{kind:`Name`,value:`Boolean`}}}],selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`deleteProject`},arguments:[{kind:`Argument`,name:{kind:`Name`,value:`projectId`},value:{kind:`Variable`,name:{kind:`Name`,value:`projectId`}}},{kind:`Argument`,name:{kind:`Name`,value:`isPermanent`},value:{kind:`Variable`,name:{kind:`Name`,value:`isPermanent`}}}],selectionSet:{kind:`SelectionSet`,selections:[{kind:`InlineFragment`,typeCondition:{kind:`NamedType`,name:{kind:`Name`,value:`DeleteProjectSuccess`}},selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`success`}}]}},{kind:`InlineFragment`,typeCondition:{kind:`NamedType`,name:{kind:`Name`,value:`Error`}},selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`message`}}]}}]}}]}}]},De={kind:`Document`,definitions:[{kind:`OperationDefinition`,operation:`mutation`,name:{kind:`Name`,value:`RestoreProject`},variableDefinitions:[{kind:`VariableDefinition`,variable:{kind:`Variable`,name:{kind:`Name`,value:`projectId`}},type:{kind:`NonNullType`,type:{kind:`NamedType`,name:{kind:`Name`,value:`ID`}}}},{kind:`VariableDefinition`,variable:{kind:`Variable`,name:{kind:`Name`,value:`workspaceId`}},type:{kind:`NonNullType`,type:{kind:`NamedType`,name:{kind:`Name`,value:`ID`}}}},{kind:`VariableDefinition`,variable:{kind:`Variable`,name:{kind:`Name`,value:`parentId`}},type:{kind:`NamedType`,name:{kind:`Name`,value:`ID`}}}],selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`restoreProject`},arguments:[{kind:`Argument`,name:{kind:`Name`,value:`projectId`},value:{kind:`Variable`,name:{kind:`Name`,value:`projectId`}}},{kind:`Argument`,name:{kind:`Name`,value:`workspaceId`},value:{kind:`Variable`,name:{kind:`Name`,value:`workspaceId`}}},{kind:`Argument`,name:{kind:`Name`,value:`parentId`},value:{kind:`Variable`,name:{kind:`Name`,value:`parentId`}}}],selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`__typename`}},{kind:`InlineFragment`,typeCondition:{kind:`NamedType`,name:{kind:`Name`,value:`Project`}},selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`id`}},{kind:`Field`,name:{kind:`Name`,value:`folderId`}},{kind:`Field`,name:{kind:`Name`,value:`workspaceId`}}]}},{kind:`InlineFragment`,typeCondition:{kind:`NamedType`,name:{kind:`Name`,value:`Error`}},selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`message`}}]}}]}}]}}]},Oe={kind:`Document`,definitions:[{kind:`OperationDefinition`,operation:`mutation`,name:{kind:`N
21ame`,value:`DuplicateProject`},variableDefinitions:[{kind:`VariableDefinition`,variable:{kind:`Variable`,name:{kind:`Name`,value:`projectId`}},type:{kind:`NonNullType`,type:{kind:`NamedType`,name:{kind:`Name`,value:`ID`}}}},{kind:`VariableDefinition`,variable:{kind:`Variable`,name:{kind:`Name`,value:`projectName`}},type:{kind:`NamedType`,name:{kind:`Name`,value:`String`}}},{kind:`VariableDefinition`,variable:{kind:`Variable`,name:{kind:`Name`,value:`folderId`}},type:{kind:`NamedType`,name:{kind:`Name`,value:`ID`}}},{kind:`VariableDefinition`,variable:{kind:`Variable`,name:{kind:`Name`,value:`workspaceId`}},type:{kind:`NamedType`,name:{kind:`Name`,value:`ID`}}}],selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`duplicateProject`},arguments:[{kind:`Argument`,name:{kind:`Name`,value:`projectId`},value:{kind:`Variable`,name:{kind:`Name`,value:`projectId`}}},{kind:`Argument`,name:{kind:`Name`,value:`projectName`},value:{kind:`Variable`,name:{kind:`Name`,value:`projectName`}}},{kind:`Argument`,name:{kind:`Name`,value:`folderId`},value:{kind:`Variable`,name:{kind:`Name`,value:`folderId`}}},{kind:`Argument`,name:{kind:`Name`,value:`workspaceId`},value:{kind:`Variable`,name:{kind:`Name`,value:`workspaceId`}}}],selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`__typename`}},{kind:`InlineFragment`,typeCondition:{kind:`NamedType`,name:{kind:`Name`,value:`Project`}},selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`id`}},{kind:`Field`,name:{kind:`Name`,value:`duplicatedFrom`}},{kind:`Field`,name:{kind:`Name`,value:`folderId`}},{kind:`Field`,name:{kind:`Name`,value:`workspaceId`}}]}},{kind:`InlineFragment`,typeCondition:{kind:`NamedType`,name:{kind:`Name`,value:`HTTPError`}},selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`message`}},{kind:`Field`,name:{kind:`Name`,value:`statusCode`}}]}}]}}]}}]},ke={kind:`Document`,definitions:[{kind:`OperationDefinition`,operation:`mutation`,name:{kind:`Name`,value:`RenameProject`},variableDefinitions:[{kind:`VariableDefinition`,variable:{kind:`Variable`,name:{kind:`Name`,value:`projectId`}},type:{kind:`NonNullType`,type:{kind:`NamedType`,name:{kind:`Name`,value:`ID`}}}},{kind:`VariableDefinition`,variable:{kind:`Variable`,name:{kind:`Name`,value:`name`}},type:{kind:`NonNullType`,type:{kind:`NamedType`,name:{kind:`Name`,value:`String`}}}}],selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`renameProject`},arguments:[{kind:`Argument`,name:{kind:`Name`,value:`projectId`},value:{kind:`Variable`,name:{kind:`Name`,value:`projectId`}}},{kind:`Argument`,name:{kind:`Name`,value:`name`},value:{kind:`Variable`,name:{kind:`Name`,value:`name`}}}],selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`__typename`}},{kind:`InlineFragment`,typeCondition:{kind:`NamedType`,name:{kind:`Name`,value:`Project`}},selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`id`}},{kind:`Field`,name:{kind:`Name`,value:`name`}},{kind:`Field`,name:{kind:`Name`,value:`updatedAt`}}]}},{kind:`InlineFragment`,typeCondition:{kind:`NamedType`,name:{kind:`Name`,value:`Error`}},selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`message`}}]}}]}}]}}]},Ae={kind:`Document`,definitions:[{kind:`OperationDefinition`,operation:`mutation`,name:{kind:`Name`,value:`CreateTemplateFromProject`},variableDefinitions:[{kind:`VariableDefinition`,variable:{kind:`Variable`,name:{kind:`Name`,value:`projectId`}},type:{kind:`NonNullType`,type:{kind:`NamedType`,name:{kind:`Name`,value:`ID`}}}}],selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`createTemplateFromProject`},arguments:[{kind:`Argument`,name:{kind:`Name`,value:`projectId`},value:{kind:`Variable`,name:{kind:`Name`,value:`projectId`}}}],selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`__typename`}},{kind:`InlineFragment`,typeCondition:{kind:`NamedType`,name:{kind:`Name`,value:`Project`}},selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`N
21ame`,value:`id`}},{kind:`Field`,name:{kind:`Name`,value:`workspaceId`}},{kind:`Field`,name:{kind:`Name`,value:`isCustomTemplate`}},{kind:`Field`,name:{kind:`Name`,value:`customTemplateId`}}]}},{kind:`InlineFragment`,typeCondition:{kind:`NamedType`,name:{kind:`Name`,value:`HTTPError`}},selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`message`}},{kind:`Field`,name:{kind:`Name`,value:`statusCode`}}]}}]}}]}}]},je={kind:`Document`,definitions:[{kind:`OperationDefinition`,operation:`mutation`,name:{kind:`Name`,value:`UpdateProjectPrivacy`},variableDefinitions:[{kind:`VariableDefinition`,variable:{kind:`Variable`,name:{kind:`Name`,value:`projectId`}},type:{kind:`NonNullType`,type:{kind:`NamedType`,name:{kind:`Name`,value:`ID`}}}},{kind:`VariableDefinition`,variable:{kind:`Variable`,name:{kind:`Name`,value:`privacy`}},type:{kind:`NonNullType`,type:{kind:`NamedType`,name:{kind:`Name`,value:`ProjectPrivacy`}}}}],selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`updateProjectPrivacy`},arguments:[{kind:`Argument`,name:{kind:`Name`,value:`projectId`},value:{kind:`Variable`,name:{kind:`Name`,value:`projectId`}}},{kind:`Argument`,name:{kind:`Name`,value:`privacy`},value:{kind:`Variable`,name:{kind:`Name`,value:`privacy`}}}],selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`__typename`}},{kind:`InlineFragment`,typeCondition:{kind:`NamedType`,name:{kind:`Name`,value:`Project`}},selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`id`}},{kind:`Field`,name:{kind:`Name`,value:`privacy`}}]}},{kind:`InlineFragment`,typeCondition:{kind:`NamedType`,name:{kind:`Name`,value:`Error`}},selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`message`}}]}}]}}]}}]},Me={kind:`Document`,definitions:[{kind:`OperationDefinition`,operation:`mutation`,name:{kind:`Name`,value:`UpdateAllProjectsPrivacy`},variableDefinitions:[{kind:`VariableDefinition`,variable:{kind:`Variable`,name:{kind:`Name`,value:`workspaceId`}},type:{kind:`NonNullType`,type:{kind:`NamedType`,name:{kind:`Name`,value:`ID`}}}},{kind:`VariableDefinition`,variable:{kind:`Variable`,name:{kind:`Name`,value:`privacy`}},type:{kind:`NonNullType`,type:{kind:`NamedType`,name:{kind:`Name`,value:`ProjectPrivacy`}}}}],selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`updateAllProjectsPrivacy`},arguments:[{kind:`Argument`,name:{kind:`Name`,value:`workspaceId`},value:{kind:`Variable`,name:{kind:`Name`,value:`workspaceId`}}},{kind:`Argument`,name:{kind:`Name`,value:`privacy`},value:{kind:`Variable`,name:{kind:`Name`,value:`privacy`}}}],selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`__typename`}},{kind:`InlineFragment`,typeCondition:{kind:`NamedType`,name:{kind:`Name`,value:`UpdateAllProjectsPrivacySuccess`}},selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`success`}}]}},{kind:`InlineFragment`,typeCondition:{kind:`NamedType`,name:{kind:`Name`,value:`HTTPError`}},selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`message`}},{kind:`Field`,name:{kind:`Name`,value:`statusCode`}}]}}]}}]}}]},Ne={kind:`Document`,definitions:[{kind:`OperationDefinition`,operation:`mutation`,name:{kind:`Name`,value:`UpdateCommentSettings`},variableDefinitions:[{kind:`VariableDefinition`,variable:{kind:`Variable`,name:{kind:`Name`,value:`projectId`}},type:{kind:`NonNullType`,type:{kind:`NamedType`,name:{kind:`Name`,value:`ID`}}}},{kind:`VariableDefinition`,variable:{kind:`Variable`,name:{kind:`Name`,value:`input`}},type:{kind:`NonNullType`,type:{kind:`NamedType`,name:{kind:`Name`,value:`UpdateCommentSettingsInput`}}}}],selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`updateCommentSettings`},arguments:[{kind:`Argument`,name:{kind:`Name`,value:`projectId`},value:{kind:`Variable`,name:{kind:`Name`,value:`projectId`}}},{kind:`Argument`,name:{kind:`Name`,value:`input`}
21,value:{kind:`Variable`,name:{kind:`Name`,value:`input`}}}],selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`__typename`}},{kind:`InlineFragment`,typeCondition:{kind:`NamedType`,name:{kind:`Name`,value:`HTTPError`}},selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`message`}},{kind:`Field`,name:{kind:`Name`,value:`statusCode`}}]}},{kind:`InlineFragment`,typeCondition:{kind:`NamedType`,name:{kind:`Name`,value:`CommentSettings`}},selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`projectId`}},{kind:`Field`,name:{kind:`Name`,value:`allowAnonComments`}},{kind:`Field`,name:{kind:`Name`,value:`allowComments`}}]}}]}}]}}]},Pe={kind:`Document`,definitions:[{kind:`OperationDefinition`,operation:`mutation`,name:{kind:`Name`,value:`UpdateProjectPermissions`},variableDefinitions:[{kind:`VariableDefinition`,variable:{kind:`Variable`,name:{kind:`Name`,value:`projectId`}},type:{kind:`NonNullType`,type:{kind:`NamedType`,name:{kind:`Name`,value:`ID`}}}},{kind:`VariableDefinition`,variable:{kind:`Variable`,name:{kind:`Name`,value:`permissions`}},type:{kind:`NonNullType`,type:{kind:`NamedType`,name:{kind:`Name`,value:`ProjectPermissionsInput`}}}}],selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`updateProjectPermissions`},arguments:[{kind:`Argument`,name:{kind:`Name`,value:`projectId`},value:{kind:`Variable`,name:{kind:`Name`,value:`projectId`}}},{kind:`Argument`,name:{kind:`Name`,value:`permissions`},value:{kind:`Variable`,name:{kind:`Name`,value:`permissions`}}}],selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`__typename`}},{kind:`InlineFragment`,typeCondition:{kind:`NamedType`,name:{kind:`Name`,value:`HTTPError`}},selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`message`}},{kind:`Field`,name:{kind:`Name`,value:`statusCode`}}]}},{kind:`InlineFragment`,typeCondition:{kind:`NamedType`,name:{kind:`Name`,value:`ProjectPermissions`}},selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`allowDuplicates`}},{kind:`Field`,name:{kind:`Name`,value:`allowDownloads`}},{kind:`Field`,name:{kind:`Name`,value:`allowShare`}},{kind:`Field`,name:{kind:`Name`,value:`allowTranscriptions`}},{kind:`Field`,name:{kind:`Name`,value:`allowCallToAction`}}]}}]}}]}}]},Fe={kind:`Document`,definitions:[{kind:`OperationDefinition`,operation:`mutation`,name:{kind:`Name`,value:`SaveProjectToWorkspace`},variableDefinitions:[{kind:`VariableDefinition`,variable:{kind:`Variable`,name:{kind:`Name`,value:`projectId`}},type:{kind:`NonNullType`,type:{kind:`NamedType`,name:{kind:`Name`,value:`ID`}}}},{kind:`VariableDefinition`,variable:{kind:`Variable`,name:{kind:`Name`,value:`workspaceId`}},type:{kind:`NonNullType`,type:{kind:`NamedType`,name:{kind:`Name`,value:`ID`}}}},{kind:`VariableDefinition`,variable:{kind:`Variable`,name:{kind:`Name`,value:`clipJobId`}},type:{kind:`NamedType`,name:{kind:`Name`,value:`ID`}}}],selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`saveProjectToWorkspace`},arguments:[{kind:`Argument`,name:{kind:`Name`,value:`projectId`},value:{kind:`Variable`,name:{kind:`Name`,value:`projectId`}}},{kind:`Argument`,name:{kind:`Name`,value:`workspaceId`},value:{kind:`Variable`,name:{kind:`Name`,value:`workspaceId`}}},{kind:`Argument`,name:{kind:`Name`,value:`clipJobId`},value:{kind:`Variable`,name:{kind:`Name`,value:`clipJobId`}}}],selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`__typename`}},{kind:`InlineFragment`,typeCondition:{kind:`NamedType`,name:{kind:`Name`,value:`HTTPError`}},selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`message`}},{kind:`Field`,name:{kind:`Name`,value:`statusCode`}}]}},{kind:`InlineFragment`,typeCondition:{kind:`NamedType`,name:{kind:`Name`,value:`Project`}},selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`id`}},{kind:`Field`,name:{kind:`Name`,value:`workspaceId`}}]}}]}}]}}]},Z=e=>
21({update:(t,n,r)=>{g(t),X(t),e?.update&&e.update(t,n,r)},onCompleted:t=>{e?.onCompleted&&e.onCompleted(t)}});function Q(e){return t=>{let n=Z(t);return f(e,{...t,...n})}}var Ie=Q(Ae),Le=Q(Te),$=Q(Ee),Re=Q(De),ze=Q(Oe),Be=Q(ke),Ve=e=>{let t=Z(e);return f(Ce,{variables:{...e?.variables},...e,...t})},He=()=>{let[e,t]=f(we,{...Z()});return[t=>e({...t,onCompleted:e=>{e?.createProjectWithAsset?.__typename===`Project`?(h(m.projectCreatedFromAsset),t.onSuccess?.(e.createProjectWithAsset.id)):(p({error:Error(`Failed to create project with asset`),tags:{category:`Projects`,name:`CreateProjectWithAsset/onCompleted`}}),h(m.createProjectFromAssetFailed))},onError:e=>{p({error:e,tags:{category:`Projects`,name:`CreateProjectWithAsset/onError`}}),h(m.createProjectFromAssetFailed)}}),t]},Ue=e=>f(je,e),We=e=>f(Me,{update:e=>{g(e)},...e}),Ge=e=>f(Ne,{...e,optimisticResponse:e=>({updateCommentSettings:{__typename:`CommentSettings`,allowAnonComments:e.input.allowAnonComments,allowComments:e.input.allowComments,projectId:e.projectId}}),update:(e,t,n)=>{if(t.data?.updateCommentSettings?.__typename===`CommentSettings`){let{projectId:n,allowComments:r,allowAnonComments:i}=t.data.updateCommentSettings;e.writeQuery({query:ee,variables:{projectId:n},data:{getCommentSettingsByProjectId:{__typename:`CommentSettings`,projectId:n,allowComments:r,allowAnonComments:i}}})}}}),Ke=e=>f(Pe,{...e,optimisticResponse:t=>{let n={allowCallToAction:!1,allowDownloads:!1,allowDuplicates:!1,allowShare:!1,allowTranscriptions:!1},r=e?.client?.cache?.readQuery({query:d,variables:{projectId:t.projectId}});return r?.getProjectById?.__typename===`Project`&&(n={allowCallToAction:r.getProjectById.allowCallToAction??!1,allowDownloads:r.getProjectById.allowDownloads??!1,allowDuplicates:r.getProjectById.allowDuplicates??!1,allowShare:r.getProjectById.allowShare??!1,allowTranscriptions:r.getProjectById.allowTranscriptions??!1}),{updateProjectPermissions:{__typename:`ProjectPermissions`,allowCallToAction:t.permissions.allowCallToAction??n.allowCallToAction,allowDownloads:t.permissions.allowDownloads??n.allowDownloads,allowDuplicates:t.permissions.allowDuplicates??n.allowDuplicates,allowShare:t.permissions.allowShare??n.allowShare,allowTranscriptions:t.permissions.allowTranscriptions??n.allowTranscriptions}}},update:(e,t,n)=>{t.data?.updateProjectPermissions?.__typename===`ProjectPermissions`&&e.writeFragment({id:`Project:${n.variables?.projectId}`,fragment:J` 22 fragment ProjectUpdates on Project { 23 permissions { 24 allowCallToAction 25 allowDownloads 26 allowDuplicates 27 allowShare 28 allowTranscriptions 29 } 30 } 31 `,data:{permissions:{__typename:`ProjectPermissions`,allowCallToAction:t.data.updateProjectPermissions.allowCallToAction,allowDownloads:t.data.updateProjectPermissions.allowDownloads,allowDuplicates:t.data.updateProjectPermissions.allowDuplicates,allowShare:t.data.updateProjectPermissions.allowShare,allowTranscriptions:t.data.updateProjectPermissions.allowTranscriptions}}})}}),qe=e=>f(Fe,e);export{$ as a,Be as c,We as d,Ge as f,X as h,Ie as i,Re as l,Ue as m,Ve as n,ze as o,Ke as p,He as r,Le as s,Q as t,qe as u}; 32//# sourceMappingURL=useProjectMutations-CxhGVlM5.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.