1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="f0a7b7ae-cb47-0db5-5f0b-a80cdbaceef3")}catch(e){}}(); 2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,258332,189280,442341,206699,267757,417405,328262,159080,e=>{"use strict";var t,n,i,r,s,a,o,l,c,u=function(e,t){return(u=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},h=function(){return(h=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError,e.s(["__assign",()=>h,"__awaiter",0,function(e,t,n,i){return new(n||(n=Promise))(function(r,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?r(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,o)}l((i=i.apply(e,t||[])).next())})},"__extends",0,function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}u(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},"__generator",0,function(e,t){var n,i,r,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=o(0),a.throw=o(1),a.return=o(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function o(o){return function(l){var c=[o,l];if(n)throw TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(s=0)),s;)try{if(n=1,i&&(r=2&c[0]?i.return:c[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,c[1])).done)return r;switch(i=0,r&&(c=[2&c[0],r.value]),c[0]){case 0:case 1:r=c;break;case 4:return s.label++,{value:c[1],done:!1};case 5:s.label++,i=c[1],c=[0];continue;case 7:c=s.ops.pop(),s.trys.pop();continue;default:if(!(r=(r=s.trys).length>0&&r[r.length-1])&&(6===c[0]||2===c[0])){s=0;continue}if(3===c[0]&&(!r||c[1]>r[0]&&c[1]<r[3])){s.label=c[1];break}if(6===c[0]&&s.label<r[1]){s.label=r[1],r=c;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(c);break}r[2]&&s.ops.pop(),s.trys.pop();continue}c=t.call(e,s)}catch(e){c=[6,e],i=0}finally{n=r=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}},"__rest",0,function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)0>t.indexOf(i[r])&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n},"__spreadArray",0,function(e,t,n){if(n||2==arguments.length)for(var i,r=0,s=t.length;r<s;r++)!i&&r in t||(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}],189280);let p=/\r\n|[\n\r]/g;function d(e,t){let n=0,i=1;for(let r of e.body.matchAll(p)){if("number"==typeof r.index||function(e){if(!e)throw Error("Unexpected invariant triggered.")}(!1),r.index>=t)break;n=r.index+r[0].length,i+=1}return{line:i,column:t+1-n}}function f(e,t){let n=e.locationOffset.column-1,i="".padStart(n)+e.body,r=t.line-1,s=e.locationOffset.line-1,a=t.line+s,o=1===t.line?n:0,l=t.column+o,c=`${e.name}:${a}:${l} 3`,u=i.split(/\r\n|[\n\r]/g),h=u[r];if(h.length>120){let e=Math.floor(l/80),t=[];for(let e=0;e<h.length;e+=80)t.push(h.slice(e,e+80));return c+E([[`${a} |`,t[0]],...t.slice(1,e+1).map(e=>["|",e]),["|","^".padStart(l%80)],["|",t[e+1]]])}return c+E([[`${a-1} |`,u[r-1]],[`${a} |`,h],["|","^".padStart(l)],[`${a+1} |`,u[r+1]]])}function E(e){let t=e.filter(([e,t])=>void 0!==t),n=Math.max(...t.map(([e])=>e.length));return t.map(([e,t])=>e.padStart(n)+(t?" "+t:"")).join("\n")}
3class T extends Error{constructor(e,...t){var n,i,r;const{nodes:s,source:a,positions:o,path:l,originalError:c,extensions:u}=function(e){let t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}(t);super(e),this.name="GraphQLError",this.path=null!=l?l:void 0,this.originalError=null!=c?c:void 0,this.nodes=m(Array.isArray(s)?s:s?[s]:void 0);const h=m(null==(n=this.nodes)?void 0:n.map(e=>e.loc).filter(e=>null!=e));this.source=null!=a?a:null==h||null==(i=h[0])?void 0:i.source,this.positions=null!=o?o:null==h?void 0:h.map(e=>e.start),this.locations=o&&a?o.map(e=>d(a,e)):null==h?void 0:h.map(e=>d(e.source,e.start));const p=!function(e){return"object"==typeof e&&null!==e}(null==c?void 0:c.extensions)||null==c?void 0:c.extensions;this.extensions=null!=(r=null!=u?u:p)?r:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=c&&c.stack?Object.defineProperty(this,"stack",{value:c.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,T):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 n of this.nodes){var t;n.loc&&(e+="\n\n"+f((t=n.loc).source,d(t.source,t.start)))}else if(this.source&&this.locations)for(let t of this.locations)e+="\n\n"+f(this.source,t);return e}toJSON(){let e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function m(e){return void 0===e||0===e.length?void 0:e}function N(e,t,n){return new T(`Syntax Error: ${n}`,{source:e,positions:[t]})}class I{constructor(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class y{constructor(e,t,n,i,r,s){this.kind=e,this.start=t,this.end=n,this.line=i,this.column=r,this.value=s,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}let _={Name:[],Document:["definitions"],OperationDefinition:["description","name","variableDefinitions","directives","selectionSet"],VariableDefinition:["description","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:["description","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","directives","locations"],SchemaExtension:["directives","operationTypes"],DirectiveExtension:["name","directives"],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"],TypeCoordinate:["name"],MemberCoordinate:["name","memberName"],ArgumentCoordinate:["name","fieldName","argumentName"],DirectiveCoordinate:["name"],DirectiveArgumentCoordinate:["name","argumentName"]},g=new Set(Object.keys(_));function O(e){return 9===e||32===e}function D(e){return e>=48&&e<=57}function A(e){return e>=97&&e<=122||e>=65&&e<=90}function x(e){return A(e)||95===e}function v(e){var t,n;let i=Number.MAX_SAFE_INTEGER,r=null,s=-1;for(let t=0;t<e.length;++t){let a=e[t],o=function(e){let t=0;for(;t<e.length&&O(e.charCodeAt(t));)++t;return t}(a);o!==a.length&&(r=null!=(n=r)?n:t,s=t,0!==t&&o<i&&(i=o))}return e.map((e,t)=>0===t?e:e.slice(i)).slice(null!=(t=r)?t:0,s+1)}(t=a||(a={})).QUERY="query",t.MUTATION="mutation",t.SUBSCRIPTION="subscription",e.s(["Location",0,I,"OperationTypeNode",0,a,"QueryDocumentKeys",0,_,"Token",0,y,"isNode",0,function(e){let t=null==e?void 0:e.kind;return"string"==typeof t&&g.has(t)}],442341),(n=o||(o={})).QUERY="QUERY",n.MUTATION="MUTATION",n.SUBSCRIPTION="SUBSCRIPTION",n.FIELD="FIELD",n.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",n.FRAGMENT_SPREAD="FRAGMENT_SPREAD",n.INLINE_FRAGMENT="INLINE_FRAGMENT",n.VARIABLE_DEFINITION="VARIABLE_DEFINITION",n.SCHEMA="SCHEMA",n.SCALAR="SCALAR",n.OBJECT="OBJECT",n.FIELD_DEFINITION="FIELD_DEFINITION",n.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",n.INTERFACE="INTERFACE",n.UNION="UNION",n.ENUM="ENUM",n.ENUM_VALUE="ENUM_VALUE",n.INPUT_OBJECT="INPUT_OBJECT",n.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION",n.DIRECTIVE_DEFINITION="DIRECTIVE_DEFINITION",(i=l||(l={})).NAME="Name",i.DOCUMENT="Document",i.OPERATION_DEFINITION="OperationDefinition",i.VARIABLE_DEFINITION="VariableDefinition",i.SELECTION_SET="SelectionSet",i.FIELD="Field",i.ARGUMENT="Argument",i.FRAGMENT_SPREAD="FragmentSpread",i.INLINE_FRAGMENT="InlineFragment",i.FRAGMENT_DEFINITION="FragmentDefinition",i.VARIABLE="Variable",i.INT="IntValue",i.FLOAT="FloatValue",i.STRING="Str
3ingValue",i.BOOLEAN="BooleanValue",i.NULL="NullValue",i.ENUM="EnumValue",i.LIST="ListValue",i.OBJECT="ObjectValue",i.OBJECT_FIELD="ObjectField",i.DIRECTIVE="Directive",i.NAMED_TYPE="NamedType",i.LIST_TYPE="ListType",i.NON_NULL_TYPE="NonNullType",i.SCHEMA_DEFINITION="SchemaDefinition",i.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",i.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",i.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",i.FIELD_DEFINITION="FieldDefinition",i.INPUT_VALUE_DEFINITION="InputValueDefinition",i.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",i.UNION_TYPE_DEFINITION="UnionTypeDefinition",i.ENUM_TYPE_DEFINITION="EnumTypeDefinition",i.ENUM_VALUE_DEFINITION="EnumValueDefinition",i.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",i.DIRECTIVE_DEFINITION="DirectiveDefinition",i.SCHEMA_EXTENSION="SchemaExtension",i.DIRECTIVE_EXTENSION="DirectiveExtension",i.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",i.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",i.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",i.UNION_TYPE_EXTENSION="UnionTypeExtension",i.ENUM_TYPE_EXTENSION="EnumTypeExtension",i.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension",i.TYPE_COORDINATE="TypeCoordinate",i.MEMBER_COORDINATE="MemberCoordinate",i.ARGUMENT_COORDINATE="ArgumentCoordinate",i.DIRECTIVE_COORDINATE="DirectiveCoordinate",i.DIRECTIVE_ARGUMENT_COORDINATE="DirectiveArgumentCoordinate",e.s(["Kind",0,l],206699),e.s(["dedentBlockStringLines",0,v,"printBlockString",0,function(e,t){let n=e.replace(/"""/g,'\\"""'),i=n.split(/\r\n|[\n\r]/g),r=1===i.length,s=i.length>1&&i.slice(1).every(e=>0===e.length||O(e.charCodeAt(0))),a=n.endsWith('\\"""'),o=e.endsWith('"')&&!a,l=e.endsWith("\\"),c=o||l,u=!(null!=t&&t.minimize)&&(!r||e.length>70||c||s||a),h="",p=r&&O(e.charCodeAt(0));return(u&&!p||s)&&(h+="\n"),h+=n,(u||c)&&(h+="\n"),'"""'+h+'"""'}],267757),(r=c||(c={})).SOF="<SOF>",r.EOF="<EOF>",r.BANG="!",r.DOLLAR="$",r.AMP="&",r.PAREN_L="(",r.PAREN_R=")",r.DOT=".",r.SPREAD="...",r.COLON=":",r.EQUALS="=",r.AT="@",r.BRACKET_L="[",r.BRACKET_R="]",r.BRACE_L="{",r.PIPE="|",r.BRACE_R="}",r.NAME="Name",r.INT="Int",r.FLOAT="Float",r.STRING="String",r.BLOCK_STRING="BlockString",r.COMMENT="Comment";class k{constructor(e){const t=new y(c.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!==c.EOF)do if(e.next)e=e.next;else{let t=function(e,t){let n=e.source.body,i=n.length,r=t;for(;r<i;){let t=n.charCodeAt(r);switch(t){case 65279:case 9:case 32:case 44:++r;continue;case 10:++r,++e.line,e.lineStart=r;continue;case 13:10===n.charCodeAt(r+1)?r+=2:++r,++e.line,e.lineStart=r;continue;case 35:return function(e,t){let n=e.source.body,i=n.length,r=t+1;for(;r<i;){let e=n.charCodeAt(r);if(10===e||13===e)break;if(S(e))++r;else if(C(n,r))r+=2;else break}return F(e,c.COMMENT,t,r,n.slice(t+1,r))}(e,r);case 33:return F(e,c.BANG,r,r+1);case 36:return F(e,c.DOLLAR,r,r+1);case 38:return F(e,c.AMP,r,r+1);case 40:return F(e,c.PAREN_L,r,r+1);case 41:return F(e,c.PAREN_R,r,r+1);case 46:if(46===n.charCodeAt(r+1)&&46===n.charCodeAt(r+2))return F(e,c.SPREAD,r,r+3);break;case 58:return F(e,c.COLON,r,r+1);case 61:return F(e,c.EQUALS,r,r+1);case 64:return F(e,c.AT,r,r+1);case 91:return F(e,c.BRACKET_L,r,r+1);case 93:return F(e,c.BRACKET_R,r,r+1);case 123:return F(e,c.BRACE_L,r,r+1);case 124:return F(e,c.PIPE,r,r+1);case 125:return F(e,c.BRACE_R,r,r+1);case 34:if(34===n.charCodeAt(r+1)&&34===n.charCodeAt(r+2))return function(e,t){let n=e.source.body,i=n.length,r=e.lineStart,s=t+3,a=s,o="",l=[];for(;s<i;){let i=n.charCodeAt(s);if(34===i&&34===n.charCodeAt(s+1)&&34===n.charCodeAt(s+2)){o+=n.slice(a,s),l.push(o);let i=F(e,c.BLOCK_STRING,t,s+3,v(l).join("\n"));return e.line+=l.length-1,e.lineStart=r,i}if(92===i&&34===n.charCodeAt(s+1)&&34===n.charCodeAt(s+2)&&34===n.charCodeAt(s+3)){o+=n.slice(a,s),a=s+1,s+=4;continue}if(10===i||13===i){o+=n.slice(a,s),l.push(o),13===i&&10===n.charCodeAt(s+1)?s+=2:++s,o="",a=s,r=s;continue}if(S(i))++s;else if(C(n,s))s+=2;else throw N(e.source,s,`Invalid character within String: ${L(e,s)}.`)}throw N(e.source,s,"Unterminated string.")}(e,r);return function(e,t){let n=e.source.body,i=n.length,r=t+1,s=r,a="";for(;r<i;){let i=n.charCodeAt(r);if(34===i)return a+=n.slice(s,r),F(e,c.STRING,t,r+1,a);if(92===i){a+=n.slice(s,r);let t=117===n.charCodeAt(r+1)?123===n.charCodeAt(r+2)?function(e,t){let n=e.source.body,i=0,r=3;for(;r<12;){let e=n.charCodeAt(t+r++);if(125===e){if(r<5||!S(i))break;return{value:String.fromCodePoint(i),size:r}}if((i=i<<4|M(e))<0)break}throw N(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+r)}".`)}(e,r):function(e,t){let n=e.source.body,i=P(n,t+2);if(S(i))return{value:String.fromCodePoint(i),size:6};if(R(i)&&92===n.charCodeAt(t+6)&&117===n.charCodeAt(t+7)){let e=P(n,t+8);if(b(e))return{value:String.fromCodePoint(i,e),size:12}}throw N(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+6)}".`)}(e,r):function(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:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:" ",size:2}}throw N(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}(e,r);a+=t.value,r+=t.size,s=r;continue}if(10===i||13===i)break;if(S(i))++r;else if(C(n,r))r+=2;else throw N(e.source,r,`Invalid character within String: ${L(e,r)}.`)}throw N(e.source,r,"Unterminated string.")}(e,r)}if(D(t)||45===t)return function(e,t,n){let i=e.source.body,r=t,s=n,a=!1;if(45===s&&(s=i.charCodeAt(++r)),48===s){if(D(s=i.charCodeAt(++r)))throw N(e.source,r,`Invalid number, unexpected digit after 0: ${L(e,r)}.`)}else r=w(e,r,s),s=i.charCodeAt(r);if(46===s&&(a=!0,s=i.charCodeAt(++r),r=w(e,r,s),s=i.charCodeAt(r)),(69===s||101===s)&&(a=!0,(43===(s=i.charCodeAt(++r))||45===s)&&(s=i.charCodeAt(++r)),r=w(e,r,s),s=i.charCodeAt(r)),46===s||x(s))throw N(e.source,r,`Invalid number, expected digit but got: ${L(e,r)}.`);return F(e,a?c.FLOAT:c.INT,t,r,i.slice(t,r))}(e,r,t);if(x(t))return function(e,t){let n=e.source.body,i=n.length,r=t+1;for(;r<i;){var s;if(A(s=n.charCodeAt(r))||D(s)||95===s)++r;else break}return F(e,c.NAME,t,r,n.slice(t,r))}(e,r);throw N(e.source,r,39===t?"Unexpected single quote character ('), did you mean to use a double quote (\")?":S(t)||C(n,r)?`Unexpected character: ${L(e,r)}.`:`Invalid character: ${L(e,r)}.`)}return F(e,c.EOF,i,i)}(this,e.end);e.next=t,t.prev=e,e=t}while(e.kind===c.COMMENT)return e}}function S(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function C(e,t){return R(e.charCodeAt(t))&&b(e.charCodeAt(t+1))}function R(e){return e>=55296&&e<=56319}function b(e){return e>=56320&&e<=57343}function L(e,t){let n=e.source.body.codePointAt(t);if(void 0===n)return c.EOF;
3if(n>=32&&n<=126){let e=String.fromCodePoint(n);return'"'===e?"'\"'":`"${e}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function F(e,t,n,i,r){let s=e.line,a=1+n-e.lineStart;return new y(t,n,i,s,a,r)}function w(e,t,n){if(!D(n))throw N(e.source,t,`Invalid number, expected digit but got: ${L(e,t)}.`);let i=e.source.body,r=t+1;for(;D(i.charCodeAt(r));)++r;return r}function P(e,t){return M(e.charCodeAt(t))<<12|M(e.charCodeAt(t+1))<<8|M(e.charCodeAt(t+2))<<4|M(e.charCodeAt(t+3))}function M(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function $(e,t){if(!e)throw Error(t)}function U(e){return function e(t,n){switch(typeof t){case"string":return JSON.stringify(t);case"function":return t.name?`[function ${t.name}]`:"[function]";case"object":return function(t,n){let i;if(null===t)return"null";if(n.includes(t))return"[Circular]";let r=[...n,t];if("function"==typeof t.toJSON){let n=t.toJSON();if(n!==t)return"string"==typeof n?n:e(n,r)}else if(Array.isArray(t)){var s,a,o=t,l=r;if(0===o.length)return"[]";if(l.length>2)return"[Array]";let n=Math.min(10,o.length),i=o.length-n,c=[];for(let t=0;t<n;++t)c.push(e(o[t],l));return 1===i?c.push("... 1 more item"):i>1&&c.push(`... ${i} more items`),"["+c.join(", ")+"]"}return s=t,a=r,0===(i=Object.entries(s)).length?"{}":a.length>2?"["+function(e){let t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){let t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}(s)+"]":"{ "+i.map(([t,n])=>t+": "+e(n,a)).join(", ")+" }"}(t,n);default:return String(t)}}(e,[])}e.s(["devAssert",0,$],417405);e.s(["inspect",0,U],328262);let B=globalThis.process&&1?function(e,t){return e instanceof t}:function(e,t){if(e instanceof t)return!0;if("object"==typeof e&&null!==e){var n;let i=t.prototype[Symbol.toStringTag];if(i===(Symbol.toStringTag in e?e[Symbol.toStringTag]:null==(n=e.constructor)?void 0:n.name)){let t=U(e);throw Error(`Cannot use ${i} "${t}" from another module or realm. 4 5Ensure that there is only one instance of "graphql" in the node_modules 6directory. If different versions of "graphql" are the dependencies of other 7relied on modules, use "resolutions" to ensure only one version is installed. 8 9https://yarnpkg.com/en/docs/selective-version-resolutions 10 11Duplicate "graphql" modules cannot be used at the same time since different 12versions may have different capabilities and behavior. The data from one 13version used in the function from another could produce confusing and 14spurious results.`)}}return!1};class V{constructor(e,t="GraphQL request",n={line:1,column:1}){"string"==typeof e||$(!1,`Body must be a string. Received: ${U(e)}.`),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||$(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||$(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}class G{constructor(e,t={}){const{lexer:n,...i}=t;if(n)this._lexer=n;else{const t=!function(e){return B(e,V)}(e)?new V(e):e;this._lexer=new k(t)}this._options=i,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){let e=this.expectToken(c.NAME);return this.node(e,{kind:l.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:l.DOCUMENT,definitions:this.many(c.SOF,this.parseDefinition,c.EOF)})}parseDefinition(){if(this.peek(c.BRACE_L))return this.parseOperationDefinition();let e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(e&&t.kind===c.BRACE_L)throw N(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are not supported on shorthand queries.");if(t.kind===c.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 N(this._lexer.source,this._lexer.token.start,"Unexpected description, only GraphQL definitions supp
14ort descriptions.");if("extend"===t.value)return this.parseTypeSystemExtension()}throw this.unexpected(t)}parseOperationDefinition(){let e,t=this._lexer.token;if(this.peek(c.BRACE_L))return this.node(t,{kind:l.OPERATION_DEFINITION,operation:a.QUERY,description:void 0,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let n=this.parseDescription(),i=this.parseOperationType();return this.peek(c.NAME)&&(e=this.parseName()),this.node(t,{kind:l.OPERATION_DEFINITION,operation:i,description:n,name:e,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let e=this.expectToken(c.NAME);switch(e.value){case"query":return a.QUERY;case"mutation":return a.MUTATION;case"subscription":return a.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(c.PAREN_L,this.parseVariableDefinition,c.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:l.VARIABLE_DEFINITION,description:this.parseDescription(),variable:this.parseVariable(),type:(this.expectToken(c.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(c.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let e=this._lexer.token;return this.expectToken(c.DOLLAR),this.node(e,{kind:l.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:l.SELECTION_SET,selections:this.many(c.BRACE_L,this.parseSelection,c.BRACE_R)})}parseSelection(){return this.peek(c.SPREAD)?this.parseFragment():this.parseField()}parseField(){let e,t,n=this._lexer.token,i=this.parseName();return this.expectOptionalToken(c.COLON)?(e=i,t=this.parseName()):t=i,this.node(n,{kind:l.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(c.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){let t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(c.PAREN_L,t,c.PAREN_R)}parseArgument(e=!1){let t=this._lexer.token,n=this.parseName();return this.expectToken(c.COLON),this.node(t,{kind:l.ARGUMENT,name:n,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let e=this._lexer.token;this.expectToken(c.SPREAD);let t=this.expectOptionalKeyword("on");return!t&&this.peek(c.NAME)?this.node(e,{kind:l.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:l.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"),!0===this._options.allowLegacyFragmentVariables)?this.node(e,{kind:l.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:l.FRAGMENT_DEFINITION,description:t,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(e){let t=this._lexer.token;switch(t.kind){case c.BRACKET_L:return this.parseList(e);case c.BRACE_L:return this.parseObject(e);case c.INT:return this.advanceLexer(),this.node(t,{kind:l.INT,value:t.value});case c.FLOAT:return this.advanceLexer(),this.node(t,{kind:l.FLOAT,value:t.value});case c.STRING:case c.BLOCK_STRING:return this.parseStringLiteral();case c.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:l.BOOLEAN,value:!0});case"false":return this.node(t,{kind:l.BOOLEAN,value:!1});case"null":return this.node(t,{kind:l.NULL});default:return this.node(t,{kind:l.ENUM,value:t.value})}case c.DOLLAR:if(e){if(this.expectToken(c.DOLLAR),this._lexer.token.kind===c.NAME){let e=this._lexer.token.value;throw N(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}throw this.unexpected(t)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){let e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:l.STRING,value:e.value,block:e.kind===c.BLOCK_STRING})}parseList(e){let t=()=>this.parseValueLiteral(e);return this.node(this._lexer.token,{kind:l.LIST,values:this.any(c.BRACKET_L,t,c.BRACKET_R)})}parseObject(e){let t=()=>this.parseObjectField(e);return this.node(this._lexer.token,{kind:l.OBJECT,fields:this.any(c.BRACE_L,t,c.BRACE_R)})}parseObjectField(e){let t=this._lexer.token,n=this.parseName();return this.expectToken(c.COLON),this.node(t,{kind:l.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e)})}parseDirectives(e){let t=[];for(;this.peek(c.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){let t=this._lexer.token;return this.expectToken(c.AT),this.node(t,{kind:l.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){let e,t=this._lexer.token;if(this.expectOptionalToken(c.BRACKET_L)){let n=this.parseTypeReference();this.expectToken(c.BRACKET_R),e=this.node(t,{kind:l.LIST_TYPE,type:n})}else e=this.parseNamedType();return this.expectOptionalToken(c.BANG)?this.node(t,{kind:l.NON_NULL_TYPE,type:e}):e}parseNamedType(){return this.node(this._lexer.token,{kind:l.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(c.STRING)||this.peek(c.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(),i=this.many(c.BRACE_L,this.parseOperationTypeDefinition,c.BRACE_R);return this.node(e,{kind:l.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:i})}parseOperationTypeDefinition(){let e=this._lexer.token,t=this.parseOperationType();this.expectToken(c.COLON);let n=this.parseNamedType();return this.node(e,{kind:l.OPERATION_TYPE_DEFINITION,operation:t,type:n})}parseScalarTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");let n=this.parseName(),i=this.parseConstDirectives();return this.node(e,{kind:l.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:i})}parseObjectTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");let n=this.parseName(),i=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(e,{kind:l.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:i,directives:r,fields:s})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(c.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(c.BRACE_L,this.parseFieldDefinition,c.BRACE_R)}parseFieldDefinition(){let e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),i=this.parseArgumentDefs();this.expectToken(c.COLON);let r=this.parseTypeReference(),s=this.parseConstDirectives();return this.node(e,{kind:l.FIELD_DEFINITION,description:t,name:n,arguments:i,type:r,directives:s})}parseArgumentDefs(){return this.optionalMany(c.PAREN_L,this.parseInputValueDef,c.PAREN_R)}parseInputValueDef(){let e,t=this._lexer.token,n=this.parseDescription(),i=this.parseName();this.expectToken(c.COLON);let r=this.parseTypeReference();this.expectOptionalToken(c.EQUALS)&&(e=this.parseConstValueLiteral());let s=this.parseConstDirectives();return this.node(t,{kind:l.INPUT_VALUE_DEFINITION,description:n,name:i,type:r,defaultValue:e,directives:s})}parseInterfaceTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");let n=this.parseName(),i=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(e,{kind:l.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:i,directives:r,fields:s})}parseUnionTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");let n=this.parseName(),i=this.parseConstDirectives(),r=this.parseUnionMemberTypes();return this.node(e,{kind:l.UNION_TYPE_DEFINITION,description:t,name:n,directives:i,types:r})}parseUnionMemberTypes(){return this.expectOptionalToken(c.EQUALS)?this.delimitedMany(c.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");let n=this.parseName(),i=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();return this.node(e,{kind:l.ENUM_TYPE_DEFINITION,description:t,name:n,directives:i,values:r})}parseEnumValuesDefinition(){return this.optionalMany(c.BRACE_L,this.parseEnumValueDefinition,c.BRACE_R)}parseEnumValueDefinition(){let e=this._lexer.token,t=this.parseDescription(),n=this.parseEnumValueName(),i=this.parseConstDirectives();return this.node(e,{kind:l.ENUM_VALUE_DEFINITION,description:t,name:n,directives:i})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw N(this._lexer.source,this._lexer.token.start,`${j(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(),i=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();return this.node(e,{kind:l.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:i,fields:r})}parseInputFieldsDefinition(){return this.optionalMany(c.BRACE_L,this.parseInputValueDef,c.BRACE_R)}parseTypeSystemExtension(){let e=this._lexer.lookahead();if(e.kind===c.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()}throw this.unexpected(e)}parseSchemaExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");let t=this.parseConstDirectives(),n=this.optionalMany(c.BRACE_L,this.parseOperationTypeDefinition,c.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:l.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(0===n.length)throw this.unexpected();return this.node(e,{kind:l.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(),i=this.parseConstDirectives(),r=this.parseFieldsDefinition();if(0===n.length&&0===i.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:l.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:i,fields:r})}parseInterfaceTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");let t=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),r=this.parseFieldsDefinition();if(0===n.length&&0===i.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:l.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:i,fields:r})}parseUnionTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");let t=this.parseName(),n=this.parseConstDirectives(),i=this.parseUnionMemberTypes();if(0===n.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:l.UNION_TYPE_EXTENSION,name:t,directives:n,types:i})}parseEnumTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");let t=this.parseName(),n=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();if(0===n.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:l.ENUM_TYPE_EXTENSION,name:t,directives:n,values:i})}parseInputObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");let t=this.parseName(),n=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();if(0===n.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:l.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:i})}parseDirectiveDefinitionExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("directive"),this.expectToken(c.AT);let t=this.parseName(),n=this.parseConstDirectives();if(0===n.length)throw this.unexpected();return this.node(e,{kind:l.DIRECTIVE_EXTENSION,name:t,directives:n})}parseDirectiveDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(c.AT);let n=this.parseName(),i=this.parseArgumentDefs(),r=this._options.experimentalDirectivesOnDirectiveDefinitions?this.parseConstDirectives():[],s=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let a=this.parseDirectiveLocations();return this.node(e,{kind:l.DIRECTIVE_DEFINITION,description:t,name:n,arguments:i,directives:r,repeatable:s,locations:a})}parseDirectiveLocations(){return this.delimitedMany(c.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(o,t.value))return t;throw this.unexpected(e)}parseSchemaCoordinate(){let e,t,n=this._lexer.token,i=this.expectOptionalToken(c.AT),r=this.parseName();return(!i&&this.expectOptionalToken(c.DOT)&&(e=this.parseName()),(i||e)&&this.expectOptionalToken(c.PAREN_L)&&(t=this.parseName(),this.expectToken(c.COLON),this.expectToken(c.PAREN_R)),i)?t?this.node(n,{kind:l.DIRECTIVE_ARGUMENT_COORDINATE,name:r,argumentName:t}):this.node(n,{kind:l.DIRECTIVE_COORDINATE,name:r}):e?t?this.node(n,{kind:l.ARGUMENT_COORDINATE,name:r,fieldName:e,argumentName:t}):this.node(n,{kind:l.MEMBER_COORDINATE,name:r,memberName:e}):this.node(n,{kind:l.TYPE_COORDINATE,name:r})}node(e,t){return!0!==this._options.noLocation&&(t.loc=new I(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 N(this._lexer.source,t.start,`Expected ${K(e)}, found ${j(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this.advanceLexer(),!0)}expectKeyword(e){let t=this._lexer.token;if(t.kind===c.NAME&&t.value===e)this.advanceLexer();else throw N(this._lexer.source,t.start,`Expected "${e}", found ${j(t)}.`)}expectOptionalKeyword(e){let t=this._lexer.token;return t.kind===c.NAME&&t.value===e&&(this.advanceLexer(),!0)}unexpected(e){let t=null!=e?e:this._lexer.token;return N(this._lexer.source,t.start,`Unexpected ${j(t)}.`)}any(e,t,n){this.expectToken(e);let i=[];for(;!this.expectOptionalToken(n);)i.push(t.call(this));return i}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 i=[];do i.push(t.call(this));while(!this.expectOptionalToken(n))return i}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!==c.EOF&&(++this._tokenCounter,void 0!==e&&this._tokenCounter>e))throw N(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}function j(e){let t=e.value;return K(e.kind)+(null!=t?` "${t}"`:"")}function K(e){return e===c.BANG||e===c.DOLLAR||e===c.AMP||e===c.PAREN_L||e===c.PAREN_R||e===c.DOT||e===c.SPREAD||e===c.COLON||e===c.EQUALS||e===c.AT||e===c.BRACKET_L||e===c.BRACKET_R||e===c.BRACE_L||e===c.PIP
14E||e===c.BRACE_R?`"${e}"`:e}var Y=new Map,q=new Map,J=!0,Q=!1;function X(e){return e.replace(/[\s,]+/g," ").trim()}function z(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];"string"==typeof e&&(e=[e]);var i=e[0];return t.forEach(function(t,n){t&&"Document"===t.kind?i+=t.loc.source.body:i+=t,i+=e[n+1]}),function(e){var t=X(e);if(!Y.has(t)){let l,c;var n,i,r,s,a,o=(Object.defineProperty(c=(l=new G(e,{experimentalFragmentVariables:Q,allowLegacyFragmentVariables:Q})).parseDocument(),"tokenCount",{enumerable:!1,value:l.tokenCount}),c);if(!o||"Document"!==o.kind)throw Error("Not a valid GraphQL document.");Y.set(t,((s=new Set((n=new Set,i=[],o.definitions.forEach(function(e){if("FragmentDefinition"===e.kind){var t,r=e.name.value,s=X((t=e.loc).source.body.substring(t.start,t.end)),a=q.get(r);a&&!a.has(s)?J&&console.warn("Warning: fragment with name "+r+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):a||q.set(r,a=new Set),a.add(s),n.has(s)||(n.add(s),i.push(e))}else i.push(e)}),r=h(h({},o),{definitions:i})).definitions)).forEach(function(e){e.loc&&delete e.loc,Object.keys(e).forEach(function(t){var n=e[t];n&&"object"==typeof n&&s.add(n)})}),(a=r.loc)&&(delete a.startToken,delete a.endToken),r))}return Y.get(t)}(i)}var H=z;(s=z||(z={})).gql=H,s.resetCaches=function(){Y.clear(),q.clear()},s.disableFragmentWarnings=function(){J=!1},s.enableExperimentalFragmentVariables=function(){Q=!0},s.disableExperimentalFragmentVariables=function(){Q=!1},z.default=z,e.s(["gql",0,z],159080);let W=z` 15 fragment CmsRedirects on cms_redirects { 16 type 17 isAdvanced: is_advanced 18 fromUrl: from_url 19 toUrl: to_url 20 } 21`,Z=z` 22 query GetRedirectsByChannel($channel: String!) { 23 cms_redirects(channel: $channel, limit: 9999) { 24 data { 25 ...CmsRedirects 26 } 27 } 28 } 29 ${W} 30`;z` 31 query GetLegacyNewsMetaInfo($channel: String!, $legacyId: String!) { 32 cms_articles(channel: $channel, legacy_id: $legacyId) { 33 data { 34 id 35 slug 36 37 cmsCategories: cms_categories { 38 id 39 slug 40 } 41 } 42 } 43 } 44`,z` 45 query GetLegacyTrackMetaInfo($channel: String!, $legacyId: String!) { 46 radio_tracks(channel: $channel, legacy_id: $legacyId) { 47 data { 48 legacy_id 49 id 50 slug 51 } 52 } 53 } 54`,z` 55 query GetLegacyTrackMetaInfoBySlug($channel: String!, $slug: String!) { 56 radio_tracks(channel: $channel, slug: $slug) { 57 data { 58 legacy_id 59 id 60 slug 61 } 62 } 63 } 64`,z` 65 query GetLegacyArtistMetaInfo($channel: String!, $legacyId: String!) { 66 radio_artists(channel: $channel, legacy_id: $legacyId) { 67 data { 68 id 69 slug 70 } 71 } 72 } 73`,z` 74 query GetLegacyArtistMetaInfoBySlug($channel: String!, $slug: String!) { 75 radio_artists(channel: $channel, slug: $slug) { 76 data { 77 id 78 slug 79 } 80 } 81 } 82`,z` 83 query GetLegacyFragmentMetaInfo($channel: String!, $legacyId: String!) { 84 radio_broadcast_items(channel: $channel, legacy_id: $legacyId) { 85 data { 86 id 87 slug 88 published_at 89 90 radio_programmes { 91 slug 92 } 93 } 94 } 95 } 96`,z` 97 query GetLegacyFragmentMetaInfoBySlug($channel: String!, $dateFrom: String, $slug: String, $nameContains: String) { 98 radio_broadcast_items(channel: $channel, date_from: $dateFrom, slug: $slug, name_contains: $nameContains) { 99 data { 100 id 101 slug 102 published_at 103 name 104 105 radio_programmes { 106 slug 107 name 108 } 109 } 110 } 111 } 112`,z` 113 query GetLegacyRadioBroadcastMetaInfo($channel: String!, $legacyId: String!) { 114 radio_broadcasts(channel: $channel, legacy_id: $legacyId) { 115 data { 116 id 117 slug 118 published_at 119 120 radio_programmes { 121 slug 122 } 123 } 124 } 125 } 126`,z` 127 query GetLegacyRadioBroadcastByDateMetaInfo($channel: String!, $dateFrom: String!) { 128 radio_broadcasts(channel: $channel, date_from: $dateFrom) { 129 data { 130 id 131 slug 132 published_at 133 from 134 135 radio_programmes { 136 slug 137 } 138 } 139 } 140 } 141`,z` 142 query GetLegacyPlaylistIdBySlug($channel: String!, $slug: String!) { 143 cms_playlists(channel: $channel, slug: $slug) { 144 data { 145 id 146 } 147 } 148 } 149`,z` 150 query GetLegacyComposerIdBySlug($channel: String!, $slug: String!) { 151 cms_composers(channel: $channel, slug: $slug) { 152 data { 153 id 154 } 155 } 156 } 157`,z` 158 query GetLegacyConcertIdBySlug($channel: String!, $legacy_id: String!) { 159 cms_concerts(channel: $channel, legacy_id: $legacy_id, type: "concert") { 160 data { 161 id 162 slug 163 } 164 } 165 } 166`,z` 167 query GetLegacyEventIdBySlug($channel: String!, $slug: String!) { 168 cms_concerts(channel: $channel, slug: $slug, type: "event") { 169 data { 170 id 171 } 172 } 173 } 174`,z` 175 query GetLegacyBroadcastBySlugAndDate($channel: String!, $slug: String!, $dateFrom: String!) { 176 radio_broadcasts(channel: $channel, programme: $slug, date_from: $dateFrom, limit: 1) { 177 data { 178 published_at 179 slug 180 id 181 182 radio_programmes { 183 slug 184 } 185 } 186 } 187 } 188`;let ee=({fromUrl:e,isAdvanced:t,toUrl:n,type:i})=>({fromUrl:e?.toLowerCase(),isAdvanced:t,toUrl:n,type:i});var et=e.i(379808);let en=async(e,t,n,i,r)=>{let s=500;if(t instanceof et.NotFoundError)try{if(s=404,n&&i){let{cms_redirects:{data:t}}=(await n.query({query:Z,variables:{channel:i}})).data;if(t.length>0){let n=t.map(ee).find(({fromUrl:t,isAdvanced:n})=>{let i=e.resolvedUrl.toLowerCase();return n?new RegExp(t.replace(/^\/|\/$/g,"")).test(i):i===t});if(n){var a;let t;
188return e.res.setHeader("Cache-Control","public, s-maxage=30, max-age=5"),{redirect:{destination:n.toUrl,statusCode:n.type?(a=n.type,t=Number(a),301===t||302===t||303===t||307===t||308===t?t:307):307}}}}}}catch(e){s=500,console.error(e)}else if(t.networkError&&"statusCode"in t.networkError&&504===t.networkError.statusCode)console.log("API response: 504 Gateway timeout");else{if(t.graphQLErrors?.find(e=>"Unauthenticated"===e.message))return{redirect:{destination:r||"/",permanent:!1}};console.error(t),t.graphQLErrors&&console.log(JSON.stringify(t.graphQLErrors,null,3))}return e.res&&(e.res.statusCode=s),{props:{initializationError:!0,statusCode:s}}};e.s(["handleErrorServerSide",0,en,"isError",0,e=>!0===e.initializationError],258332)}]); 189 190//# debugId=f0a7b7ae-cb47-0db5-5f0b-a80cdbaceef3
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.