(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8687],{54098:function(e,t){var n="undefined"!=typeof self?self:this,r=function(){function F(){this.fetch=!1,this.DOMException=n.DOMException}return F.prototype=n,new F}();(function(e){var t={searchParams:"URLSearchParams"in r,iterable:"Symbol"in r&&"iterator"in Symbol,blob:"FileReader"in r&&"Blob"in r&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in r,arrayBuffer:"ArrayBuffer"in r};if(t.arrayBuffer)var n=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],i=ArrayBuffer.isView||function(e){return e&&n.indexOf(Object.prototype.toString.call(e))>-1};function normalizeName(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw TypeError("Invalid character in header field name");return e.toLowerCase()}function normalizeValue(e){return"string"!=typeof e&&(e=String(e)),e}function iteratorFor(e){var n={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return t.iterable&&(n[Symbol.iterator]=function(){return n}),n}function Headers(e){this.map={},e instanceof Headers?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function consumed(e){if(e.bodyUsed)return Promise.reject(TypeError("Already read"));e.bodyUsed=!0}function fileReaderReady(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function readBlobAsArrayBuffer(e){var t=new FileReader,n=fileReaderReady(t);return t.readAsArrayBuffer(e),n}function bufferClone(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function Body(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e,e){if("string"==typeof e)this._bodyText=e;else if(t.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(t.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(t.searchParams&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else{var n;t.arrayBuffer&&t.blob&&(n=e)&&DataView.prototype.isPrototypeOf(n)?(this._bodyArrayBuffer=bufferClone(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):t.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||i(e))?this._bodyArrayBuffer=bufferClone(e):this._bodyText=e=Object.prototype.toString.call(e)}}else this._bodyText="";!this.headers.get("content-type")&&("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):t.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},t.blob&&(this.blob=function(){var e=consumed(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(!this._bodyFormData)return Promise.resolve(new Blob([this._bodyText]));throw Error("could not read FormData body as blob")},this.arrayBuffer=function(){return this._bodyArrayBuffer?consumed(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(readBlobAsArrayBuffer)}),this.text=function(){var e,t,n,r=consumed(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,n=fileReaderReady(t=new FileReader),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=Array(t.length),r=0;r-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function decode(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(i))}}),t}function Response(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new Headers(t.headers),this.url=t.url||"",this._initBody(e)}Request.prototype.clone=function(){return new Request(this,{body:this._bodyInit})},Body.call(Request.prototype),Body.call(Response.prototype),Response.prototype.clone=function(){return new Response(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new Headers(this.headers),url:this.url})},Response.error=function(){var e=new Response(null,{status:0,statusText:""});return e.type="error",e};var a=[301,302,303,307,308];Response.redirect=function(e,t){if(-1===a.indexOf(t))throw RangeError("Invalid status code");return new Response(null,{status:t,headers:{location:e}})},e.DOMException=r.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function fetch(n,r){return new Promise(function(i,o){var a=new Request(n,r);if(a.signal&&a.signal.aborted)return o(new e.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function abortXhr(){s.abort()}s.onload=function(){var e,t,n={status:s.status,statusText:s.statusText,headers:(e=s.getAllResponseHeaders()||"",t=new Headers,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach(function(e){var n=e.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();t.append(r,i)}}),t)};n.url="responseURL"in s?s.responseURL:n.headers.get("X-Request-URL");var r="response"in s?s.response:s.responseText;i(new Response(r,n))},s.onerror=function(){o(TypeError("Network request failed"))},s.ontimeout=function(){o(TypeError("Network request failed"))},s.onabort=function(){o(new e.DOMException("Aborted","AbortError"))},s.open(a.method,a.url,!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&t.blob&&(s.responseType="blob"),a.headers.forEach(function(e,t){s.setRequestHeader(t,e)}),a.signal&&(a.signal.addEventListener("abort",abortXhr),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",abortXhr)}),s.send(void 0===a._bodyInit?null:a._bodyInit)})}fetch.polyfill=!0,r.fetch||(r.fetch=fetch,r.Headers=Headers,r.Request=Request,r.Response=Response),e.Headers=Headers,e.Request=Request,e.Response=Response,e.fetch=fetch,Object.defineProperty(e,"__esModule",{value:!0})})({}),r.fetch.ponyfill=!0,delete r.fetch.polyfill,(t=r.fetch).default=r.fetch,t.fetch=r.fetch,t.Headers=r.Headers,t.Request=r.Request,t.Response=r.Response,e.exports=t},72445:function(e){"use strict";e.exports=function(e){var t=e.uri,n=e.name,r=e.type;this.uri=t,this.name=n,this.type=r}},40804:function(e,t,n){"use strict";var r=n(51268);e.exports=function extractFiles(e,t,n){void 0===t&&(t=""),void 0===n&&(n=r);var i,o=new Map;function addFile(e,t){var n=o.get(t);n?n.push.apply(n,e):o.set(t,e)}if(n(e))i=null,addFile([t],e);else{var a=t?t+".":"";if("undefined"!=typeof FileList&&e instanceof FileList)i=Array.prototype.map.call(e,function(e,t){return addFile([""+a+t],e),null});else if(Array.isArray(e))i=e.map(function(e,t){var r=extractFiles(e,""+a+t,n);return r.files.forEach(addFile),r.clone});else if(e&&e.constructor===Object)for(var s in i={},e){var u=extractFiles(e[s],""+a+s,n);u.files.forEach(addFile),i[s]=u.clone}else i=e}return{clone:i,files:o}}},34823:function(e,t,n){"use strict";t.ReactNativeFile=n(72445),t.extractFiles=n(40804),t.isExtractableFile=n(51268)},51268:function(e,t,n){"use strict";var r=n(72445);e.exports=function(e){return"undefined"!=typeof File&&e instanceof File||"undefined"!=typeof Blob&&e instanceof Blob||e instanceof r}},6230:function(e){e.exports="object"==typeof self?self.FormData:window.FormData},78458:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(34823),o=r(n(6230)),isExtractableFileEnhanced=function(e){return i.isExtractableFile(e)||null!==e&&"object"==typeof e&&"function"==typeof e.pipe};t.default=function(e,t,n){var r=i.extractFiles({query:e,variables:t,operationName:n},"",isExtractableFileEnhanced),a=r.clone,s=r.files;if(0===s.size){if(!Array.isArray(e))return JSON.stringify(a);if(void 0!==t&&!Array.isArray(t))throw Error("Cannot create request body with given variable type, array expected");return JSON.stringify(e.reduce(function(e,n,r){return e.push({query:n,variables:t?t[r]:void 0}),e},[]))}var u=new("undefined"==typeof FormData?o.default:FormData);u.append("operations",JSON.stringify(a));var c={},f=0;return s.forEach(function(e){c[++f]=e}),u.append("map",JSON.stringify(c)),f=0,s.forEach(function(e,t){u.append(""+ ++f,t)}),u}},28687:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);it.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},f=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.gql=t.batchRequests=t.request=t.rawRequest=t.GraphQLClient=t.ClientError=void 0;var l=a(n(54098)),d=n(79627),p=f(n(78458)),h=n(8308);Object.defineProperty(t,"ClientError",{enumerable:!0,get:function(){return h.ClientError}});var resolveHeaders=function(e){var t,n={};return e&&("undefined"!=typeof Headers&&e instanceof Headers||e instanceof l.Headers?(t={},e.forEach(function(e,n){t[n]=e}),n=t):Array.isArray(e)?e.forEach(function(e){var t=e[0],r=e[1];n[t]=r}):n=e),n},queryCleanner=function(e){return e.replace(/([\s,]|#[^\n\r]+)+/g," ").trim()},buildGetQueryParams=function(e){var t=e.query,n=e.variables,r=e.operationName;if(!Array.isArray(t)){var i=["query="+encodeURIComponent(queryCleanner(t))];return n&&i.push("variables="+encodeURIComponent(JSON.stringify(n))),r&&i.push("operationName="+encodeURIComponent(r)),i.join("&")}if(void 0!==n&&!Array.isArray(n))throw Error("Cannot create query with given variable type, array expected");return"query="+encodeURIComponent(JSON.stringify(t.reduce(function(e,t,r){return e.push({query:queryCleanner(t),variables:n?JSON.stringify(n[r]):void 0}),e},[])))},post=function(e){var t=e.url,n=e.query,i=e.variables,o=e.operationName,a=e.headers,c=e.fetch,f=e.fetchOptions;return s(void 0,void 0,void 0,function(){var e;return u(this,function(s){switch(s.label){case 0:return e=p.default(n,i,o),[4,c(t,r({method:"POST",headers:r(r({},"string"==typeof e?{"Content-Type":"application/json"}:{}),a),body:e},f))];case 1:return[2,s.sent()]}})})},get=function(e){var t=e.url,n=e.query,i=e.variables,o=e.operationName,a=e.headers,c=e.fetch,f=e.fetchOptions;return s(void 0,void 0,void 0,function(){return u(this,function(e){switch(e.label){case 0:return[4,c(t+"?"+buildGetQueryParams({query:n,variables:i,operationName:o}),r({method:"GET",headers:a},f))];case 1:return[2,e.sent()]}})})},y=function(){function GraphQLClient(e,t){this.url=e,this.options=t||{}}return GraphQLClient.prototype.rawRequest=function(e,t,n){var i=this.options,o=i.headers,a=i.fetch,s=void 0===a?l.default:a,u=i.method,f=c(i,["headers","fetch","method"]);return makeRequest({url:this.url,query:e,variables:t,headers:r(r({},resolveHeaders(o)),resolveHeaders(n)),operationName:void 0,fetch:s,method:void 0===u?"POST":u,fetchOptions:f})},GraphQLClient.prototype.request=function(e,t,n){return s(this,void 0,void 0,function(){var i,o,a,s,f,d,p,h,y,v,m;return u(this,function(u){switch(u.label){case 0:return o=(i=this.options).headers,s=void 0===(a=i.fetch)?l.default:a,d=void 0===(f=i.method)?"POST":f,p=c(i,["headers","fetch","method"]),h=this.url,v=(y=resolveRequestDocument(e)).query,m=y.operationName,[4,makeRequest({url:h,query:v,variables:t,headers:r(r({},resolveHeaders(o)),resolveHeaders(n)),operationName:m,fetch:s,method:d,fetchOptions:p})];case 1:return[2,u.sent().data]}})})},GraphQLClient.prototype.batchRequests=function(e,t){return s(this,void 0,void 0,function(){var n,i,o,a,s,f,d;return u(this,function(u){switch(u.label){case 0:return i=(n=this.options).headers,a=void 0===(o=n.fetch)?l.default:o,f=void 0===(s=n.method)?"POST":s,d=c(n,["headers","fetch","method"]),[4,makeRequest({url:this.url,query:e.map(function(e){return resolveRequestDocument(e.document).query}),variables:e.map(function(e){return e.variables}),headers:r(r({},resolveHeaders(i)),resolveHeaders(t)),operationName:void 0,fetch:a,method:f,fetchOptions:d})];case 1:return[2,u.sent().data]}})})},GraphQLClient.prototype.setHeaders=function(e){return this.options.headers=e,this},GraphQLClient.prototype.setHeader=function(e,t){var n,r=this.options.headers;return r?r[e]=t:this.options.headers=((n={})[e]=t,n),this},GraphQLClient.prototype.setEndpoint=function(e){return this.url=e,this},GraphQLClient}();function makeRequest(e){var t=e.url,n=e.query,i=e.variables,o=e.headers,a=e.operationName,c=e.fetch,f=e.method,l=void 0===f?"POST":f,d=e.fetchOptions;return s(this,void 0,void 0,function(){var e,s,f,p,y,v,m,b;return u(this,function(u){switch(u.label){case 0:return e="POST"===l.toUpperCase()?post:get,s=Array.isArray(n),[4,e({url:t,query:n,variables:i,operationName:a,headers:o,fetch:c,fetchOptions:d})];case 1:var j,g;return[4,(g=(j=f=u.sent()).headers.get("Content-Type"))&&g.startsWith("application/json")?j.json():j.text()];case 2:if(p=u.sent(),y=s&&Array.isArray(p)?!p.some(function(e){return!e.data}):!!p.data,f.ok&&!p.errors&&y)return v=f.headers,m=f.status,[2,r(r({},s?{data:p}:p),{headers:v,status:m})];throw b="string"==typeof p?{error:p}:p,new h.ClientError(r(r({},b),{status:f.status,headers:f.headers}),{query:n,variables:i})}})})}function request(e,t,n,r){return s(this,void 0,void 0,function(){return u(this,function(i){return[2,new y(e).request(t,n,r)]})})}function resolveRequestDocument(e){if("string"==typeof e)return{query:e};var t,n=void 0,r=e.definitions.filter(function(e){return"OperationDefinition"===e.kind});return 1===r.length&&(n=null===(t=r[0].name)||void 0===t?void 0:t.value),{query:d.print(e),operationName:n}}t.GraphQLClient=y,t.rawRequest=function(e,t,n,r){return s(this,void 0,void 0,function(){return u(this,function(i){return[2,new y(e).rawRequest(t,n,r)]})})},t.request=request,t.batchRequests=function(e,t,n){return s(this,void 0,void 0,function(){return u(this,function(r){return[2,new y(e).batchRequests(t,n)]})})},t.default=request,t.gql=function(e){for(var t=[],n=1;n2&&void 0!==arguments[2]?arguments[2]:i,a=void 0,s=Array.isArray(e),u=[e],c=-1,f=[],l=void 0,d=void 0,p=void 0,h=[],y=[],v=e;do{var m,b=++c===u.length,j=b&&0!==f.length;if(b){if(d=0===y.length?void 0:h[h.length-1],l=p,p=y.pop(),j){if(s)l=l.slice();else{for(var g={},w=0,O=Object.keys(l);w2)return"[Array]";for(var n=Math.min(10,e.length),r=e.length-n,i=[],o=0;o1&&i.push("... ".concat(r," more items")),"["+i.join(", ")+"]"}(e,o);return 0===(i=Object.keys(e)).length?"{}":o.length>2?"["+function(e){var t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){var n=e.constructor.name;if("string"==typeof n&&""!==n)return n}return t}(e)+"]":"{ "+i.map(function(t){var n=formatValue(e[t],o);return t+": "+n}).join(", ")+" }"}(e,t);default:return String(e)}}(l,[]),"."));var A=function(e,t,n){var r=e[t];if(r){if(!n&&"function"==typeof r)return r;var i=n?r.leave:r.enter;if("function"==typeof i)return i}else{var o=n?e.leave:e.enter;if(o){if("function"==typeof o)return o;var a=o[t];if("function"==typeof a)return a}}}(t,l.kind,b);if(A){if((S=A.call(t,l,d,p,h,y))===o)break;if(!1===S){if(!b){h.pop();continue}}else if(void 0!==S&&(f.push([d,S]),!b)){if(isNode(S))l=S;else{h.pop();continue}}}}void 0===S&&j&&f.push([d,l]),b?h.pop():(a={inArray:s,index:c,keys:u,edits:f,prev:a},u=(s=Array.isArray(l))?l:null!==(m=n[l.kind])&&void 0!==m?m:[],c=-1,f=[],p&&y.push(p),p=l)}while(void 0!==a);return 0!==f.length&&(v=f[f.length-1][1]),v}(e,{leave:a})}var a={Name:function(e){return e.value},Variable:function(e){return"$"+e.name},Document:function(e){return join(e.definitions,"\n\n")+"\n"},OperationDefinition:function(e){var t=e.operation,n=e.name,r=wrap("(",join(e.variableDefinitions,", "),")"),i=join(e.directives," "),o=e.selectionSet;return n||i||r||"query"!==t?join([t,join([n,r]),i,o]," "):o},VariableDefinition:function(e){var t=e.variable,n=e.type,r=e.defaultValue,i=e.directives;return t+": "+n+wrap(" = ",r)+wrap(" ",join(i," "))},SelectionSet:function(e){return block(e.selections)},Field:function(e){var t=e.alias,n=e.name,r=e.arguments,i=e.directives,o=e.selectionSet,a=wrap("",t,": ")+n,s=a+wrap("(",join(r,", "),")");return s.length>80&&(s=a+wrap("(\n",indent(join(r,"\n")),"\n)")),join([s,join(i," "),o]," ")},Argument:function(e){return e.name+": "+e.value},FragmentSpread:function(e){return"..."+e.name+wrap(" ",join(e.directives," "))},InlineFragment:function(e){var t=e.typeCondition,n=e.directives,r=e.selectionSet;return join(["...",wrap("on ",t),join(n," "),r]," ")},FragmentDefinition:function(e){var t=e.name,n=e.typeCondition,r=e.variableDefinitions,i=e.directives,o=e.selectionSet;return"fragment ".concat(t).concat(wrap("(",join(r,", "),")")," ")+"on ".concat(n," ").concat(wrap("",join(i," ")," "))+o},IntValue:function(e){return e.value},FloatValue:function(e){return e.value},StringValue:function(e,t){var n=e.value;return e.block?function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=-1===e.indexOf("\n"),i=" "===e[0]||" "===e[0],o='"'===e[e.length-1],a="\\"===e[e.length-1],s=!r||o||a||n,u="";return s&&!(r&&i)&&(u+="\n"+t),u+=t?e.replace(/\n/g,"\n"+t):e,s&&(u+="\n"),'"""'+u.replace(/"""/g,'\\"""')+'"""'}(n,"description"===t?"":" "):JSON.stringify(n)},BooleanValue:function(e){return e.value?"true":"false"},NullValue:function(){return"null"},EnumValue:function(e){return e.value},ListValue:function(e){return"["+join(e.values,", ")+"]"},ObjectValue:function(e){return"{"+join(e.fields,", ")+"}"},ObjectField:function(e){return e.name+": "+e.value},Directive:function(e){return"@"+e.name+wrap("(",join(e.arguments,", "),")")},NamedType:function(e){return e.name},ListType:function(e){return"["+e.type+"]"},NonNullType:function(e){return e.type+"!"},SchemaDefinition:addDescription(function(e){var t=e.directives,n=e.operationTypes;return join(["schema",join(t," "),block(n)]," ")}),OperationTypeDefinition:function(e){return e.operation+": "+e.type},ScalarTypeDefinition:addDescription(function(e){return join(["scalar",e.name,join(e.directives," ")]," ")}),ObjectTypeDefinition:addDescription(function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return join(["type",t,wrap("implements ",join(n," & ")),join(r," "),block(i)]," ")}),FieldDefinition:addDescription(function(e){var t=e.name,n=e.arguments,r=e.type,i=e.directives;return t+(hasMultilineItems(n)?wrap("(\n",indent(join(n,"\n")),"\n)"):wrap("(",join(n,", "),")"))+": "+r+wrap(" ",join(i," "))}),InputValueDefinition:addDescription(function(e){var t=e.name,n=e.type,r=e.defaultValue,i=e.directives;return join([t+": "+n,wrap("= ",r),join(i," ")]," ")}),InterfaceTypeDefinition:addDescription(function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return join(["interface",t,wrap("implements ",join(n," & ")),join(r," "),block(i)]," ")}),UnionTypeDefinition:addDescription(function(e){var t=e.name,n=e.directives,r=e.types;return join(["union",t,join(n," "),r&&0!==r.length?"= "+join(r," | "):""]," ")}),EnumTypeDefinition:addDescription(function(e){var t=e.name,n=e.directives,r=e.values;return join(["enum",t,join(n," "),block(r)]," ")}),EnumValueDefinition:addDescription(function(e){return join([e.name,join(e.directives," ")]," ")}),InputObjectTypeDefinition:addDescription(function(e){var t=e.name,n=e.directives,r=e.fields;return join(["input",t,join(n," "),block(r)]," ")}),DirectiveDefinition:addDescription(function(e){var t=e.name,n=e.arguments,r=e.repeatable,i=e.locations;return"directive @"+t+(hasMultilineItems(n)?wrap("(\n",indent(join(n,"\n")),"\n)"):wrap("(",join(n,", "),")"))+(r?" repeatable":"")+" on "+join(i," | ")}),SchemaExtension:function(e){var t=e.directives,n=e.operationTypes;return join(["extend schema",join(t," "),block(n)]," ")},ScalarTypeExtension:function(e){return join(["extend scalar",e.name,join(e.directives," ")]," ")},ObjectTypeExtension:function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return join(["extend type",t,wrap("implements ",join(n," & ")),join(r," "),block(i)]," ")},InterfaceTypeExtension:function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return join(["extend interface",t,wrap("implements ",join(n," & ")),join(r," "),block(i)]," ")},UnionTypeExtension:function(e){var t=e.name,n=e.directives,r=e.types;return join(["extend union",t,join(n," "),r&&0!==r.length?"= "+join(r," | "):""]," ")},EnumTypeExtension:function(e){var t=e.name,n=e.directives,r=e.values;return join(["extend enum",t,join(n," "),block(r)]," ")},InputObjectTypeExtension:function(e){var t=e.name,n=e.directives,r=e.fields;return join(["extend input",t,join(n," "),block(r)]," ")}};function addDescription(e){return function(t){return join([t.description,e(t)],"\n")}}function join(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return null!==(t=null==e?void 0:e.filter(function(e){return e}).join(n))&&void 0!==t?t:""}function block(e){return wrap("{\n",indent(join(e,"\n")),"\n}")}function wrap(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return null!=t&&""!==t?e+t+n:""}function indent(e){return wrap(" ",e.replace(/\n/g,"\n "))}function isMultiline(e){return -1!==e.indexOf("\n")}function hasMultilineItems(e){return null!=e&&e.some(isMultiline)}}}]);