diff --git a/src/OrchardCore.Modules/OrchardCore.Apis.GraphQL/package-lock.json b/src/OrchardCore.Modules/OrchardCore.Apis.GraphQL/package-lock.json index 171fa03c7f8..659c7f7604d 100644 --- a/src/OrchardCore.Modules/OrchardCore.Apis.GraphQL/package-lock.json +++ b/src/OrchardCore.Modules/OrchardCore.Apis.GraphQL/package-lock.json @@ -9,7 +9,7 @@ "version": "1.0.0", "license": "MIT", "dependencies": { - "graphiql": "^1.9.9", + "graphiql": "^1.11.5", "graphiql-explorer": "^0.9.0", "graphql": "^15.8.0", "react": "^18.1.0", @@ -1821,11 +1821,11 @@ } }, "node_modules/@graphiql/react": { - "version": "0.4.2", - "resolved": "https://registry.npmjs.org/@graphiql/react/-/react-0.4.2.tgz", - "integrity": "sha512-Df2BaA0HGRkzETCaUw4ZSDe///sfIAGZ6H436A08hmg7SU3yoWJboWGWGc/QD2NyBKVgVBMmzmHcgWhsYh03EA==", + "version": "0.10.0", + "resolved": "https://registry.npmjs.org/@graphiql/react/-/react-0.10.0.tgz", + "integrity": "sha512-8Xo1O6SQps6R+mOozN7Ht85/07RwyXgJcKNeR2dWPkJz/1Lww8wVHIKM/AUpo0Aaoh6Ps3UK9ep8DDRfBT4XrQ==", "dependencies": { - "@graphiql/toolkit": "^0.6.0", + "@graphiql/toolkit": "^0.6.1", "codemirror": "^5.65.3", "codemirror-graphql": "^1.3.2", "copy-to-clipboard": "^3.2.0", @@ -1841,9 +1841,9 @@ } }, "node_modules/@graphiql/toolkit": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/@graphiql/toolkit/-/toolkit-0.6.0.tgz", - "integrity": "sha512-mbAwbt4lw2bFp9QW3NLVmh/r/ymczlcqvXk1HfvuC7Ma4h0yzrJiQauJyh1/gF5kjqevcRSquvP/YQJSvh1u6w==", + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/@graphiql/toolkit/-/toolkit-0.6.1.tgz", + "integrity": "sha512-rRjbHko6aSg1RWGr3yOJQqEV1tKe8yw9mDSr/18B+eDhVLQ30yyKk2NznFUT9NmIDzWFGR2pH/0lbBhHKmUCqw==", "dependencies": { "@n1ru4l/push-pull-async-iterable-iterator": "^3.1.0", "meros": "^1.1.4" @@ -2492,9 +2492,9 @@ } }, "node_modules/codemirror": { - "version": "5.65.5", - "resolved": "https://registry.npmjs.org/codemirror/-/codemirror-5.65.5.tgz", - "integrity": "sha512-HNyhvGLnYz5c+kIsB9QKVitiZUevha3ovbIYaQiGzKo7ECSL/elWD9RXt3JgNr0NdnyqE9/Rc/7uLfkJQL638w==" + "version": "5.65.8", + "resolved": "https://registry.npmjs.org/codemirror/-/codemirror-5.65.8.tgz", + "integrity": "sha512-TNGkSkkoAsmZSf6W6g35LMVQJBHKasc2CKwhr/fTxSYun7cn6J+CbtyNjV/MYlFVkNTsqZoviegyCZimWhoMMA==" }, "node_modules/codemirror-graphql": { "version": "1.3.2", @@ -2555,9 +2555,9 @@ } }, "node_modules/copy-to-clipboard": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/copy-to-clipboard/-/copy-to-clipboard-3.3.1.tgz", - "integrity": "sha512-i13qo6kIHTTpCm8/Wup+0b1mVWETvu2kIMzKoK8FpkLkFxlt0znUAHcMzox+T8sPlqtZXq3CulEjQHsYiGFJUw==", + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/copy-to-clipboard/-/copy-to-clipboard-3.3.2.tgz", + "integrity": "sha512-Vme1Z6RUDzrb6xAI7EZlVZ5uvOk2F//GaxKUxajDqm9LhOVM1inxNAD2vy+UZDYsd0uyA9s7b3/FVZPSxqrCfg==", "dependencies": { "toggle-selection": "^1.0.6" } @@ -3086,12 +3086,12 @@ "dev": true }, "node_modules/graphiql": { - "version": "1.9.9", - "resolved": "https://registry.npmjs.org/graphiql/-/graphiql-1.9.9.tgz", - "integrity": "sha512-eJ5kGpXFXw69QG/1SJrQs/mzGpDIv4XeGqohGSKQCOh7NtsAsQIxs/VMVR8Lvv9tx6YiIFUvAHp997NlyOwHbQ==", + "version": "1.11.5", + "resolved": "https://registry.npmjs.org/graphiql/-/graphiql-1.11.5.tgz", + "integrity": "sha512-NI92XdSVwXTsqzJc6ykaAkKVMeC8IRRp3XzkxVQwtqDsZlVKtR2ZnssXNYt05TMGbi1ehoipn9tFywVohOlHjg==", "dependencies": { - "@graphiql/react": "^0.4.2", - "@graphiql/toolkit": "^0.6.0", + "@graphiql/react": "^0.10.0", + "@graphiql/toolkit": "^0.6.1", "entities": "^2.0.0", "graphql-language-service": "^5.0.6", "markdown-it": "^12.2.0" @@ -3136,9 +3136,9 @@ } }, "node_modules/graphql-ws": { - "version": "5.9.0", - "resolved": "https://registry.npmjs.org/graphql-ws/-/graphql-ws-5.9.0.tgz", - "integrity": "sha512-CXv0l0nI1bgChwl4Rm+BqNOAKwL/C9T2N8RfmTkhQ38YLFdUXCi2WNW4oFp8BJP+t75nCLzjHHgR04sP1oF02w==", + "version": "5.10.1", + "resolved": "https://registry.npmjs.org/graphql-ws/-/graphql-ws-5.10.1.tgz", + "integrity": "sha512-MKm/3SRd1vj5Km8NaujsgeGRTKZQjUN5HRnIMJ8dL2UznKoxvrtQyJqTmqJt0f6vQd9AooDg/+baXo3huiY4Ew==", "peer": true, "engines": { "node": ">=10" @@ -5003,14 +5003,14 @@ "dev": true }, "node_modules/vscode-languageserver-types": { - "version": "3.17.1", - "resolved": "https://registry.npmjs.org/vscode-languageserver-types/-/vscode-languageserver-types-3.17.1.tgz", - "integrity": "sha512-K3HqVRPElLZVVPtMeKlsyL9aK0GxGQpvtAUTfX4k7+iJ4mc1M+JM+zQwkgGy2LzY0f0IAafe8MKqIkJrxfGGjQ==" + "version": "3.17.2", + "resolved": "https://registry.npmjs.org/vscode-languageserver-types/-/vscode-languageserver-types-3.17.2.tgz", + "integrity": "sha512-zHhCWatviizPIq9B7Vh9uvrH6x3sK8itC84HkamnBWoDFJtzBf7SWlpLCZUit72b3os45h6RWQNC9xHRDF8dRA==" }, "node_modules/w3c-keyname": { - "version": "2.2.4", - "resolved": "https://registry.npmjs.org/w3c-keyname/-/w3c-keyname-2.2.4.tgz", - "integrity": "sha512-tOhfEwEzFLJzf6d1ZPkYfGj+FWhIpBux9ppoP3rlclw3Z0BZv3N7b7030Z1kYth+6rDuAsXUFr+d0VE6Ed1ikw==", + "version": "2.2.6", + "resolved": "https://registry.npmjs.org/w3c-keyname/-/w3c-keyname-2.2.6.tgz", + "integrity": "sha512-f+fciywl1SJEniZHD6H+kUO8gOnwIr7f4ijKA6+ZvJFjeGi1r4PDLl53Ayud9O/rk64RqgoQine0feoeOU0kXg==", "peer": true }, "node_modules/watchpack": { @@ -6469,11 +6469,11 @@ "dev": true }, "@graphiql/react": { - "version": "0.4.2", - "resolved": "https://registry.npmjs.org/@graphiql/react/-/react-0.4.2.tgz", - "integrity": "sha512-Df2BaA0HGRkzETCaUw4ZSDe///sfIAGZ6H436A08hmg7SU3yoWJboWGWGc/QD2NyBKVgVBMmzmHcgWhsYh03EA==", + "version": "0.10.0", + "resolved": "https://registry.npmjs.org/@graphiql/react/-/react-0.10.0.tgz", + "integrity": "sha512-8Xo1O6SQps6R+mOozN7Ht85/07RwyXgJcKNeR2dWPkJz/1Lww8wVHIKM/AUpo0Aaoh6Ps3UK9ep8DDRfBT4XrQ==", "requires": { - "@graphiql/toolkit": "^0.6.0", + "@graphiql/toolkit": "^0.6.1", "codemirror": "^5.65.3", "codemirror-graphql": "^1.3.2", "copy-to-clipboard": "^3.2.0", @@ -6484,9 +6484,9 @@ } }, "@graphiql/toolkit": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/@graphiql/toolkit/-/toolkit-0.6.0.tgz", - "integrity": "sha512-mbAwbt4lw2bFp9QW3NLVmh/r/ymczlcqvXk1HfvuC7Ma4h0yzrJiQauJyh1/gF5kjqevcRSquvP/YQJSvh1u6w==", + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/@graphiql/toolkit/-/toolkit-0.6.1.tgz", + "integrity": "sha512-rRjbHko6aSg1RWGr3yOJQqEV1tKe8yw9mDSr/18B+eDhVLQ30yyKk2NznFUT9NmIDzWFGR2pH/0lbBhHKmUCqw==", "requires": { "@n1ru4l/push-pull-async-iterable-iterator": "^3.1.0", "meros": "^1.1.4" @@ -7019,9 +7019,9 @@ } }, "codemirror": { - "version": "5.65.5", - "resolved": "https://registry.npmjs.org/codemirror/-/codemirror-5.65.5.tgz", - "integrity": "sha512-HNyhvGLnYz5c+kIsB9QKVitiZUevha3ovbIYaQiGzKo7ECSL/elWD9RXt3JgNr0NdnyqE9/Rc/7uLfkJQL638w==" + "version": "5.65.8", + "resolved": "https://registry.npmjs.org/codemirror/-/codemirror-5.65.8.tgz", + "integrity": "sha512-TNGkSkkoAsmZSf6W6g35LMVQJBHKasc2CKwhr/fTxSYun7cn6J+CbtyNjV/MYlFVkNTsqZoviegyCZimWhoMMA==" }, "codemirror-graphql": { "version": "1.3.2", @@ -7074,9 +7074,9 @@ } }, "copy-to-clipboard": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/copy-to-clipboard/-/copy-to-clipboard-3.3.1.tgz", - "integrity": "sha512-i13qo6kIHTTpCm8/Wup+0b1mVWETvu2kIMzKoK8FpkLkFxlt0znUAHcMzox+T8sPlqtZXq3CulEjQHsYiGFJUw==", + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/copy-to-clipboard/-/copy-to-clipboard-3.3.2.tgz", + "integrity": "sha512-Vme1Z6RUDzrb6xAI7EZlVZ5uvOk2F//GaxKUxajDqm9LhOVM1inxNAD2vy+UZDYsd0uyA9s7b3/FVZPSxqrCfg==", "requires": { "toggle-selection": "^1.0.6" } @@ -7468,12 +7468,12 @@ "dev": true }, "graphiql": { - "version": "1.9.9", - "resolved": "https://registry.npmjs.org/graphiql/-/graphiql-1.9.9.tgz", - "integrity": "sha512-eJ5kGpXFXw69QG/1SJrQs/mzGpDIv4XeGqohGSKQCOh7NtsAsQIxs/VMVR8Lvv9tx6YiIFUvAHp997NlyOwHbQ==", + "version": "1.11.5", + "resolved": "https://registry.npmjs.org/graphiql/-/graphiql-1.11.5.tgz", + "integrity": "sha512-NI92XdSVwXTsqzJc6ykaAkKVMeC8IRRp3XzkxVQwtqDsZlVKtR2ZnssXNYt05TMGbi1ehoipn9tFywVohOlHjg==", "requires": { - "@graphiql/react": "^0.4.2", - "@graphiql/toolkit": "^0.6.0", + "@graphiql/react": "^0.10.0", + "@graphiql/toolkit": "^0.6.1", "entities": "^2.0.0", "graphql-language-service": "^5.0.6", "markdown-it": "^12.2.0" @@ -7500,9 +7500,9 @@ } }, "graphql-ws": { - "version": "5.9.0", - "resolved": "https://registry.npmjs.org/graphql-ws/-/graphql-ws-5.9.0.tgz", - "integrity": "sha512-CXv0l0nI1bgChwl4Rm+BqNOAKwL/C9T2N8RfmTkhQ38YLFdUXCi2WNW4oFp8BJP+t75nCLzjHHgR04sP1oF02w==", + "version": "5.10.1", + "resolved": "https://registry.npmjs.org/graphql-ws/-/graphql-ws-5.10.1.tgz", + "integrity": "sha512-MKm/3SRd1vj5Km8NaujsgeGRTKZQjUN5HRnIMJ8dL2UznKoxvrtQyJqTmqJt0f6vQd9AooDg/+baXo3huiY4Ew==", "peer": true, "requires": {} }, @@ -8834,14 +8834,14 @@ "dev": true }, "vscode-languageserver-types": { - "version": "3.17.1", - "resolved": "https://registry.npmjs.org/vscode-languageserver-types/-/vscode-languageserver-types-3.17.1.tgz", - "integrity": "sha512-K3HqVRPElLZVVPtMeKlsyL9aK0GxGQpvtAUTfX4k7+iJ4mc1M+JM+zQwkgGy2LzY0f0IAafe8MKqIkJrxfGGjQ==" + "version": "3.17.2", + "resolved": "https://registry.npmjs.org/vscode-languageserver-types/-/vscode-languageserver-types-3.17.2.tgz", + "integrity": "sha512-zHhCWatviizPIq9B7Vh9uvrH6x3sK8itC84HkamnBWoDFJtzBf7SWlpLCZUit72b3os45h6RWQNC9xHRDF8dRA==" }, "w3c-keyname": { - "version": "2.2.4", - "resolved": "https://registry.npmjs.org/w3c-keyname/-/w3c-keyname-2.2.4.tgz", - "integrity": "sha512-tOhfEwEzFLJzf6d1ZPkYfGj+FWhIpBux9ppoP3rlclw3Z0BZv3N7b7030Z1kYth+6rDuAsXUFr+d0VE6Ed1ikw==", + "version": "2.2.6", + "resolved": "https://registry.npmjs.org/w3c-keyname/-/w3c-keyname-2.2.6.tgz", + "integrity": "sha512-f+fciywl1SJEniZHD6H+kUO8gOnwIr7f4ijKA6+ZvJFjeGi1r4PDLl53Ayud9O/rk64RqgoQine0feoeOU0kXg==", "peer": true }, "watchpack": { diff --git a/src/OrchardCore.Modules/OrchardCore.Apis.GraphQL/package.json b/src/OrchardCore.Modules/OrchardCore.Apis.GraphQL/package.json index 35232fda93e..1f3a0d6b91d 100644 --- a/src/OrchardCore.Modules/OrchardCore.Apis.GraphQL/package.json +++ b/src/OrchardCore.Modules/OrchardCore.Apis.GraphQL/package.json @@ -5,7 +5,7 @@ "license": "MIT", "description": "A GraphiQL module for OrchardCore.", "dependencies": { - "graphiql": "^1.9.9", + "graphiql": "^1.11.5", "graphiql-explorer": "^0.9.0", "graphql": "^15.8.0", "react": "^18.1.0", diff --git a/src/OrchardCore.Modules/OrchardCore.Apis.GraphQL/wwwroot/Scripts/178.graphiql-orchard.js b/src/OrchardCore.Modules/OrchardCore.Apis.GraphQL/wwwroot/Scripts/178.graphiql-orchard.js index 4302624594f..5bb1d556372 100644 --- a/src/OrchardCore.Modules/OrchardCore.Apis.GraphQL/wwwroot/Scripts/178.graphiql-orchard.js +++ b/src/OrchardCore.Modules/OrchardCore.Apis.GraphQL/wwwroot/Scripts/178.graphiql-orchard.js @@ -1 +1 @@ -"use strict";(self.webpackChunkorchardcore_apis_graphql=self.webpackChunkorchardcore_apis_graphql||[]).push([[178],{4178:(e,t,n)=>{n.r(t);var r=n(7480),l=n(9361),a=n(8007),u=(n(7294),n(3935),Object.defineProperty),i=(e,t)=>u(e,"name",{value:t,configurable:!0});function s(e,t){var n,r;const l=e.levels;return((l&&0!==l.length?l[l.length-1]-((null===(n=this.electricInput)||void 0===n?void 0:n.test(t))?1:0):e.indentLevel)||0)*((null===(r=this.config)||void 0===r?void 0:r.indentUnit)||0)}r.C.defineMode("graphql-variables",(e=>{const t=(0,a.o)({eatWhitespace:e=>e.eatSpace(),lexRules:o,parseRules:c,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:s,electricInput:/^\s*[}\]]/,fold:"brace",closeBrackets:{pairs:'[]{}""',explode:"[]{}"}}})),i(s,"indent");const o={Punctuation:/^\[|]|\{|\}|:|,/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?/,Keyword:/^true|false|null/},c={Document:[(0,l.p)("{"),(0,l.l)("Variable",(0,l.o)((0,l.p)(","))),(0,l.p)("}")],Variable:[p("variable"),(0,l.p)(":"),"Value"],Value(e){switch(e.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(e.value){case"[":return"ListValue";case"{":return"ObjectValue"}return null;case"Keyword":switch(e.value){case"true":case"false":return"BooleanValue";case"null":return"NullValue"}return null}},NumberValue:[(0,l.t)("Number","number")],StringValue:[(0,l.t)("String","string")],BooleanValue:[(0,l.t)("Keyword","builtin")],NullValue:[(0,l.t)("Keyword","keyword")],ListValue:[(0,l.p)("["),(0,l.l)("Value",(0,l.o)((0,l.p)(","))),(0,l.p)("]")],ObjectValue:[(0,l.p)("{"),(0,l.l)("ObjectField",(0,l.o)((0,l.p)(","))),(0,l.p)("}")],ObjectField:[p("attribute"),(0,l.p)(":"),"Value"]};function p(e){return{style:e,match:e=>"String"===e.kind,update(e,t){e.name=t.value.slice(1,-1)}}}i(p,"namedKey")},8007:(e,t,n)=>{n.d(t,{o:()=>i});var r=n(9361),l=n(6450),a=Object.defineProperty,u=(e,t)=>a(e,"name",{value:t,configurable:!0});function i(e={eatWhitespace:e=>e.eatWhile(r.i),lexRules:r.L,parseRules:r.P,editorConfig:{}}){return{startState(){const t={level:0,step:0,name:null,kind:null,type:null,rule:null,needsSeperator:!1,prevState:null};return p(e.parseRules,t,l.h.DOCUMENT),t},token:(t,n)=>s(t,n,e)}}function s(e,t,n){var r;if(t.inBlockstring)return e.match(/.*"""/)?(t.inBlockstring=!1,"string"):(e.skipToEnd(),"string");const{lexRules:l,parseRules:a,eatWhitespace:u,editorConfig:i}=n;if(t.rule&&0===t.rule.length?d(t):t.needsAdvance&&(t.needsAdvance=!1,f(t,!0)),e.sol()){const n=(null==i?void 0:i.tabSize)||2;t.indentLevel=Math.floor(e.indentation()/n)}if(u(e))return"ws";const s=S(l,e);if(!s)return e.match(/\S+/)||e.match(/\s/),p(c,t,"Invalid"),"invalidchar";if("Comment"===s.kind)return p(c,t,"Comment"),"comment";const v=o({},t);if("Punctuation"===s.kind)if(/^[{([]/.test(s.value))void 0!==t.indentLevel&&(t.levels=(t.levels||[]).concat(t.indentLevel+1));else if(/^[})\]]/.test(s.value)){const e=t.levels=(t.levels||[]).slice(0,-1);t.indentLevel&&e.length>0&&e[e.length-1]{n.r(t);var r=n(7480),l=n(9361),a=n(8007),u=(n(7294),n(3935),Object.defineProperty),i=(e,t)=>u(e,"name",{value:t,configurable:!0});function s(e,t){var n,r;const l=e.levels;return((l&&0!==l.length?l[l.length-1]-((null===(n=this.electricInput)||void 0===n?void 0:n.test(t))?1:0):e.indentLevel)||0)*((null===(r=this.config)||void 0===r?void 0:r.indentUnit)||0)}r.C.defineMode("graphql-variables",(e=>{const t=(0,a.o)({eatWhitespace:e=>e.eatSpace(),lexRules:o,parseRules:c,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:s,electricInput:/^\s*[}\]]/,fold:"brace",closeBrackets:{pairs:'[]{}""',explode:"[]{}"}}})),i(s,"indent");const o={Punctuation:/^\[|]|\{|\}|:|,/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?/,Keyword:/^true|false|null/},c={Document:[(0,l.p)("{"),(0,l.l)("Variable",(0,l.o)((0,l.p)(","))),(0,l.p)("}")],Variable:[p("variable"),(0,l.p)(":"),"Value"],Value(e){switch(e.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(e.value){case"[":return"ListValue";case"{":return"ObjectValue"}return null;case"Keyword":switch(e.value){case"true":case"false":return"BooleanValue";case"null":return"NullValue"}return null}},NumberValue:[(0,l.t)("Number","number")],StringValue:[(0,l.t)("String","string")],BooleanValue:[(0,l.t)("Keyword","builtin")],NullValue:[(0,l.t)("Keyword","keyword")],ListValue:[(0,l.p)("["),(0,l.l)("Value",(0,l.o)((0,l.p)(","))),(0,l.p)("]")],ObjectValue:[(0,l.p)("{"),(0,l.l)("ObjectField",(0,l.o)((0,l.p)(","))),(0,l.p)("}")],ObjectField:[p("attribute"),(0,l.p)(":"),"Value"]};function p(e){return{style:e,match:e=>"String"===e.kind,update(e,t){e.name=t.value.slice(1,-1)}}}i(p,"namedKey")},8007:(e,t,n)=>{n.d(t,{o:()=>i});var r=n(9361),l=n(6450),a=Object.defineProperty,u=(e,t)=>a(e,"name",{value:t,configurable:!0});function i(e={eatWhitespace:e=>e.eatWhile(r.i),lexRules:r.L,parseRules:r.P,editorConfig:{}}){return{startState(){const t={level:0,step:0,name:null,kind:null,type:null,rule:null,needsSeparator:!1,prevState:null};return p(e.parseRules,t,l.h.DOCUMENT),t},token:(t,n)=>s(t,n,e)}}function s(e,t,n){var r;if(t.inBlockstring)return e.match(/.*"""/)?(t.inBlockstring=!1,"string"):(e.skipToEnd(),"string");const{lexRules:l,parseRules:a,eatWhitespace:u,editorConfig:i}=n;if(t.rule&&0===t.rule.length?d(t):t.needsAdvance&&(t.needsAdvance=!1,f(t,!0)),e.sol()){const n=(null==i?void 0:i.tabSize)||2;t.indentLevel=Math.floor(e.indentation()/n)}if(u(e))return"ws";const s=S(l,e);if(!s)return e.match(/\S+/)||e.match(/\s/),p(c,t,"Invalid"),"invalidchar";if("Comment"===s.kind)return p(c,t,"Comment"),"comment";const v=o({},t);if("Punctuation"===s.kind)if(/^[{([]/.test(s.value))void 0!==t.indentLevel&&(t.levels=(t.levels||[]).concat(t.indentLevel+1));else if(/^[})\]]/.test(s.value)){const e=t.levels=(t.levels||[]).slice(0,-1);t.indentLevel&&e.length>0&&e[e.length-1]{n.d(t,{C:()=>a,P:()=>o,R:()=>s});var i=Object.defineProperty,r=(e,t)=>i(e,"name",{value:t,configurable:!0});class a{constructor(e){this.getStartOfToken=()=>this._start,this.getCurrentPosition=()=>this._pos,this.eol=()=>this._sourceText.length===this._pos,this.sol=()=>0===this._pos,this.peek=()=>this._sourceText.charAt(this._pos)?this._sourceText.charAt(this._pos):null,this.next=()=>{const e=this._sourceText.charAt(this._pos);return this._pos++,e},this.eat=e=>{if(this._testNextCharacter(e))return this._start=this._pos,this._pos++,this._sourceText.charAt(this._pos-1)},this.eatWhile=e=>{let t=this._testNextCharacter(e),n=!1;for(t&&(n=t,this._start=this._pos);t;)this._pos++,t=this._testNextCharacter(e),n=!0;return n},this.eatSpace=()=>this.eatWhile(/[\s\u00a0]/),this.skipToEnd=()=>{this._pos=this._sourceText.length},this.skipTo=e=>{this._pos=e},this.match=(e,t=!0,n=!1)=>{let i=null,r=null;return"string"==typeof e?(r=new RegExp(e,n?"i":"g").test(this._sourceText.substr(this._pos,e.length)),i=e):e instanceof RegExp&&(r=this._sourceText.slice(this._pos).match(e),i=null==r?void 0:r[0]),!(null==r||!("string"==typeof e||r instanceof Array&&this._sourceText.startsWith(r[0],this._pos)))&&(t&&(this._start=this._pos,i&&i.length&&(this._pos+=i.length)),r)},this.backUp=e=>{this._pos-=e},this.column=()=>this._pos,this.indentation=()=>{const e=this._sourceText.match(/\s*/);let t=0;if(e&&0!==e.length){const n=e[0];let i=0;for(;n.length>i;)9===n.charCodeAt(i)?t+=2:t++,i++}return t},this.current=()=>this._sourceText.slice(this._start,this._pos),this._start=0,this._pos=0,this._sourceText=e}_testNextCharacter(e){const t=this._sourceText.charAt(this._pos);let n=!1;return n="string"==typeof e?t===e:e instanceof RegExp?e.test(t):e(t),n}}r(a,"CharacterStream");class s{constructor(e,t){this.containsPosition=e=>this.start.line===e.line?this.start.character<=e.character:this.end.line===e.line?this.end.character>=e.character:this.start.line<=e.line&&this.end.line>=e.line,this.start=e,this.end=t}setStart(e,t){this.start=new o(e,t)}setEnd(e,t){this.end=new o(e,t)}}r(s,"Range");class o{constructor(e,t){this.lessThanOrEqualTo=e=>this.line{n.r(t);var i=n(7480),r=(n(6079),n(275)),a=n(7636),s=n(9691),o=n(375),l=n(4166),c=n(2575),u=n(6450),p=n(4643),d=n(9361),f=n(45),h=n(8007),v=n(2584),E=(n(7294),n(3935),Object.defineProperty),g=(e,t)=>E(e,"name",{value:t,configurable:!0});function T(e){let t;return R(e,(e=>{switch(e.kind){case"Query":case"ShortQuery":case"Mutation":case"Subscription":case"FragmentDefinition":t=e}})),t}function m(e,t,n){return n===v.S.name&&e.getQueryType()===t?v.S:n===v.T.name&&e.getQueryType()===t?v.T:n===v.a.name&&(0,r.Gv)(t)?v.a:"getFields"in t?t.getFields()[n]:null}function R(e,t){const n=[];let i=e;for(;null==i?void 0:i.kind;)n.push(i),i=i.prevState;for(let e=n.length-1;e>=0;e--)t(n[e])}function S(e){const t=Object.keys(e),n=t.length,i=new Array(n);for(let r=0;r({proximity:D(N(e.label),t),entry:e}))),(e=>e.proximity<=2)),(e=>!e.entry.isDeprecated)).sort(((e,t)=>(e.entry.isDeprecated?1:0)-(t.entry.isDeprecated?1:0)||e.proximity-t.proximity||e.entry.label.length-t.entry.label.length)).map((e=>e.entry)):I(e,(e=>!e.isDeprecated))}function I(e,t){const n=e.filter(t);return 0===n.length?e:n}function N(e){return e.toLowerCase().replace(/\W/g,"")}function D(e,t){let n=k(t,e);return e.length>t.length&&(n-=e.length-t.length-1,n+=0===e.indexOf(t)?0:.5),n}function k(e,t){let n,i;const r=[],a=e.length,s=t.length;for(n=0;n<=a;n++)r[n]=[n];for(i=1;i<=s;i++)r[0][i]=i;for(n=1;n<=a;n++)for(i=1;i<=s;i++){const a=e[n-1]===t[i-1]?0:1;r[n][i]=Math.min(r[n-1][i]+1,r[n][i-1]+1,r[n-1][i-1]+a),n>1&&i>1&&e[n-1]===t[i-2]&&e[n-2]===t[i-1]&&(r[n][i]=Math.min(r[n][i],r[n-2][i-2]+a))}return r[a][s]}g(T,"getDefinitionState"),g(m,"getFieldDef"),g(R,"forEachState"),g(S,"objectValues"),g(y,"hintList"),g(_,"filterAndSortList"),g(I,"filterNonEmpty"),g(N,"normalizeText"),g(D,"getProximity"),g(k,"lexicalDistance");const A={command:"editor.action.triggerSuggest",title:"Suggestions"},C=g((e=>{const t=[];if(e)try{(0,a.Vn)((0,s.Qc)(e),{FragmentDefinition(e){t.push(e)}})}catch(e){return[]}return t}),"collectFragmentDefs");function F(e,t,n,i,a,s){var o;const l=Object.assign(Object.assign({},s),{schema:e}),c=i||Y(t,n),u="Invalid"===c.state.kind?c.state.prevState:c.state;if(!u)return[];const p=u.kind,f=u.step,h=J(e,c.state);if(p===d.R.DOCUMENT)return y(c,[{label:"query",kind:d.C.Function},{label:"mutation",kind:d.C.Function},{label:"subscription",kind:d.C.Function},{label:"fragment",kind:d.C.Function},{label:"{",kind:d.C.Constructor}]);if(p===d.R.IMPLEMENTS||p===d.R.NAMED_TYPE&&(null===(o=u.prevState)||void 0===o?void 0:o.kind)===d.R.IMPLEMENTS)return M(c,u,e,t,h);if(p===d.R.SELECTION_SET||p===d.R.FIELD||p===d.R.ALIASED_FIELD)return x(c,h,l);if(p===d.R.ARGUMENTS||p===d.R.ARGUMENT&&0===f){const e=h.argDefs;if(e)return y(c,e.map((e=>{var t;return{label:e.name,insertText:e.name+": ",command:A,detail:String(e.type),documentation:null!==(t=e.description)&&void 0!==t?t:void 0,kind:d.C.Variable,type:e.type}})))}if((p===d.R.OBJECT_VALUE||p===d.R.OBJECT_FIELD&&0===f)&&h.objectFieldDefs){const e=S(h.objectFieldDefs),t=p===d.R.OBJECT_VALUE?d.C.Value:d.C.Field;return y(c,e.map((e=>{var n;return{label:e.name,detail:String(e.type),documentation:null!==(n=e.description)&&void 0!==n?n:void 0,kind:t,type:e.type}})))}if(p===d.R.ENUM_VALUE||p===d.R.LIST_VALUE&&1===f||p===d.R.OBJECT_FIELD&&2===f||p===d.R.ARGUMENT&&2===f)return L(c,h,t,e);if(p===d.R.VARIABLE&&1===f){const n=(0,r.xC)(h.inputType);return y(c,V(t,e,c).filter((e=>e.detail===(null==n?void 0:n.name))))}return p===d.R.TYPE_CONDITION&&1===f||p===d.R.NAMED_TYPE&&null!=u.prevState&&u.prevState.kind===d.R.TYPE_CONDITION?P(c,h,e):p===d.R.FRAGMENT_SPREAD&&1===f?U(c,h,e,t,Array.isArray(a)?a:C(a)):p===d.R.VARIABLE_DEFINITION&&2===f||p===d.R.LIST_TYPE&&1===f||p===d.R.NAMED_TYPE&&u.prevState&&(u.prevState.kind===d.R.VARIABLE_DEFINITION||u.prevState.kind===d.R.LIST_TYPE||u.prevState.kind===d.R.NON_NULL_TYPE)?j(c,e):p===d.R.DIRECTIVE?w(c,u,e):[]}g(F,"getAutocompleteSuggestions");const b=" {\n $1\n}",O=g((e=>{const t=e.type;if((0,r.Gv)(t))return b;if((0,r.HG)(t)&&(0,r.Gv)(t.ofType))return b;if((0,r.zM)(t)){if((0,r.Gv)(t.ofType))return b;if((0,r.HG)(t.ofType)&&(0,r.Gv)(t.ofType.ofType))return b}return null}),"getInsertText");function x(e,t,n){var i;if(t.parentType){const a=t.parentType;let s=[];return"getFields"in a&&(s=S(a.getFields())),(0,r.Gv)(a)&&s.push(o.hU),a===(null===(i=null==n?void 0:n.schema)||void 0===i?void 0:i.getQueryType())&&s.push(o.Az,o.tF),y(e,s.map(((e,t)=>{var n;const i={sortText:String(t)+e.name,label:e.name,detail:String(e.type),documentation:null!==(n=e.description)&&void 0!==n?n:void 0,deprecated:Boolean(e.deprecationReason),isDeprecated:Boolean(e.deprecationReason),deprecationReason:e.deprecationReason,kind:d.C.Field,type:e.type},r=O(e);return r&&(i.insertText=e.name+r,i.insertTextFormat=d.I.Snippet,i.command=A),i})))}return[]}function L(e,t,n,i){const a=(0,r.xC)(t.inputType),s=V(n,i,e).filter((e=>e.detail===a.name));return a instanceof r.mR?y(e,a.getValues().map((e=>{var t;return{label:e.name,detail:String(a),documentation:null!==(t=e.description)&&void 0!==t?t:void 0,deprecated:Boolean(e.deprecationReason),isDeprecated:Boolean(e.deprecationReason),deprecationReason:e.deprecationReason,kind:d.C.EnumMember,type:a}})).concat(s)):a===l.EZ?y(e,s.concat([{label:"true",detail:String(l.EZ),documentation:"Not false.",kind:d.C.Variable,type:l.EZ},{label:"false",detail:String(l.EZ),documentation:"Not true.",kind:d.C.Variable,type:l.EZ}])):s}function M(e,t,n,i,a){if(t.needsSeperator)return[];const s=S(n.getTypeMap()).filter(r.oT),o=s.map((({name:e})=>e)),l=new Set;Q(i,((e,t)=>{var i,s,c,u,p;if(t.name&&(t.kind!==d.R.INTERFACE_DEF||o.includes(t.name)||l.add(t.name),t.kind===d.R.NAMED_TYPE&&(null===(i=t.prevState)||void 0===i?void 0:i.kind)===d.R.IMPLEMENTS))if(a.interfaceDef){if(null===(s=a.interfaceDef)||void 0===s?void 0:s.getInterfaces().find((({name:e})=>e===t.name)))return;const e=n.getType(t.name),i=null===(c=a.interfaceDef)||void 0===c?void 0:c.toConfig();a.interfaceDef=new r.oW(Object.assign(Object.assign({},i),{interfaces:[...i.interfaces,e||new r.oW({name:t.name,fields:{}})]}))}else if(a.objectTypeDef){if(null===(u=a.objectTypeDef)||void 0===u?void 0:u.getInterfaces().find((({name:e})=>e===t.name)))return;const e=n.getType(t.name),i=null===(p=a.objectTypeDef)||void 0===p?void 0:p.toConfig();a.objectTypeDef=new r.h6(Object.assign(Object.assign({},i),{interfaces:[...i.interfaces,e||new r.oW({name:t.name,fields:{}})]}))}}));const c=a.interfaceDef||a.objectTypeDef,u=((null==c?void 0:c.getInterfaces())||[]).map((({name:e})=>e));return y(e,s.concat([...l].map((e=>({name:e})))).filter((({name:e})=>e!==(null==c?void 0:c.name)&&!u.includes(e))).map((e=>{const t={label:e.name,kind:d.C.Interface,type:e};return(null==e?void 0:e.description)&&(t.documentation=e.description),t})))}function P(e,t,n,i){let a;if(t.parentType)if((0,r.m0)(t.parentType)){const e=(0,r.fU)(t.parentType),i=n.getPossibleTypes(e),s=Object.create(null);i.forEach((e=>{e.getInterfaces().forEach((e=>{s[e.name]=e}))})),a=i.concat(S(s))}else a=[t.parentType];else a=S(n.getTypeMap()).filter(r.Gv);return y(e,a.map((e=>{const t=(0,r.xC)(e);return{label:String(e),documentation:(null==t?void 0:t.description)||"",kind:d.C.Field}})))}function U(e,t,n,i,a){if(!i)return[];const s=n.getTypeMap(),o=T(e.state),l=G(i);return a&&a.length>0&&l.push(...a),y(e,l.filter((e=>s[e.typeCondition.name.value]&&!(o&&o.kind===d.R.FRAGMENT_DEFINITION&&o.name===e.name.value)&&(0,r.Gv)(t.parentType)&&(0,r.Gv)(s[e.typeCondition.name.value])&&(0,c.zR)(n,t.parentType,s[e.typeCondition.name.value]))).map((e=>({label:e.name.value,detail:String(s[e.typeCondition.name.value]),documentation:`fragment ${e.name.value} on ${e.typeCondition.name.value}`,kind:d.C.Field,type:s[e.typeCondition.name.value]}))))}g(x,"getSuggestionsForFieldNames"),g(L,"getSuggestionsForInputValues"),g(M,"getSuggestionsForImplements"),g(P,"getSuggestionsForFragmentTypeConditions"),g(U,"getSuggestionsForFragmentSpread");const B=g(((e,t)=>{var n,i,r,a,s,o,l,c,u,p;return(null===(n=e.prevState)||void 0===n?void 0:n.kind)===t?e.prevState:(null===(r=null===(i=e.prevState)||void 0===i?void 0:i.prevState)||void 0===r?void 0:r.kind)===t?e.prevState.prevState:(null===(o=null===(s=null===(a=e.prevState)||void 0===a?void 0:a.prevState)||void 0===s?void 0:s.prevState)||void 0===o?void 0:o.kind)===t?e.prevState.prevState.prevState:(null===(p=null===(u=null===(c=null===(l=e.prevState)||void 0===l?void 0:l.prevState)||void 0===c?void 0:c.prevState)||void 0===u?void 0:u.prevState)||void 0===p?void 0:p.kind)===t?e.prevState.prevState.prevState.prevState:void 0}),"getParentDefinition");function V(e,t,n){let i,r=null;const a=Object.create({});return Q(e,((e,s)=>{if((null==s?void 0:s.kind)===d.R.VARIABLE&&s.name&&(r=s.name),(null==s?void 0:s.kind)===d.R.NAMED_TYPE&&r){const e=B(s,d.R.TYPE);(null==e?void 0:e.type)&&(i=t.getType(null==e?void 0:e.type))}r&&i&&(a[r]||(a[r]={detail:i.toString(),insertText:"$"===n.string?r:"$"+r,label:r,type:i,kind:d.C.Variable},r=null,i=null))})),S(a)}function G(e){const t=[];return Q(e,((e,n)=>{n.kind===d.R.FRAGMENT_DEFINITION&&n.name&&n.type&&t.push({kind:d.R.FRAGMENT_DEFINITION,name:{kind:u.h.NAME,value:n.name},selectionSet:{kind:d.R.SELECTION_SET,selections:[]},typeCondition:{kind:d.R.NAMED_TYPE,name:{kind:u.h.NAME,value:n.type}}})})),t}function j(e,t,n){return y(e,S(t.getTypeMap()).filter(r.j$).map((e=>({label:e.name,documentation:e.description,kind:d.C.Variable}))))}function w(e,t,n,i){var r;return(null===(r=t.prevState)||void 0===r?void 0:r.kind)?y(e,n.getDirectives().filter((e=>W(t.prevState,e))).map((e=>({label:e.name,documentation:e.description||"",kind:d.C.Function})))):[]}function Y(e,t){let n=null,i=null,r=null;const a=Q(e,((e,a,s,o)=>{if(o===t.line&&e.getCurrentPosition()>=t.character)return n=s,i=Object.assign({},a),r=e.current(),"BREAK"}));return{start:a.start,end:a.end,string:r||a.string,state:i||a.state,style:n||a.style}}function Q(e,t){const n=e.split("\n"),i=(0,h.o)();let r=i.startState(),a="",s=new f.C("");for(let e=0;e{var v;switch(t.kind){case d.R.QUERY:case"ShortQuery":f=e.getQueryType();break;case d.R.MUTATION:f=e.getMutationType();break;case d.R.SUBSCRIPTION:f=e.getSubscriptionType();break;case d.R.INLINE_FRAGMENT:case d.R.FRAGMENT_DEFINITION:t.type&&(f=e.getType(t.type));break;case d.R.FIELD:case d.R.ALIASED_FIELD:f&&t.name?(o=p?m(e,p,t.name):null,f=o?o.type:null):o=null;break;case d.R.SELECTION_SET:p=(0,r.xC)(f);break;case d.R.DIRECTIVE:a=t.name?e.getDirective(t.name):null;break;case d.R.INTERFACE_DEF:t.name&&(c=null,h=new r.oW({name:t.name,interfaces:[],fields:{}}));break;case d.R.OBJECT_TYPE_DEF:t.name&&(h=null,c=new r.h6({name:t.name,interfaces:[],fields:{}}));break;case d.R.ARGUMENTS:if(t.prevState)switch(t.prevState.kind){case d.R.FIELD:i=o&&o.args;break;case d.R.DIRECTIVE:i=a&&a.args;break;case d.R.ALIASED_FIELD:{const n=null===(v=t.prevState)||void 0===v?void 0:v.name;if(!n){i=null;break}const r=p?m(e,p,n):null;if(!r){i=null;break}i=r.args;break}default:i=null}else i=null;break;case d.R.ARGUMENT:if(i)for(let e=0;ee.value===t.name)):null;break;case d.R.LIST_VALUE:const g=(0,r.tf)(l);l=g instanceof r.p2?g.ofType:null;break;case d.R.OBJECT_VALUE:const T=(0,r.xC)(l);u=T instanceof r.sR?T.getFields():null;break;case d.R.OBJECT_FIELD:const R=t.name&&u?u[t.name]:null;l=null==R?void 0:R.type;break;case d.R.NAMED_TYPE:t.name&&(f=e.getType(t.name))}})),{argDef:n,argDefs:i,directiveDef:a,enumValue:s,fieldDef:o,inputType:l,objectFieldDefs:u,parentType:p,type:f,interfaceDef:h,objectTypeDef:c}}g(V,"getVariableCompletions"),g(G,"getFragmentDefinitions"),g(j,"getSuggestionsForVariableDefinition"),g(w,"getSuggestionsForDirective"),g(Y,"getTokenAtPosition"),g(Q,"runOnlineParser"),g(W,"canUseDirective"),g(J,"getTypeInfo"),i.C.registerHelper("hint","graphql",((e,t)=>{const n=t.schema;if(!n)return;const r=e.getCursor(),a=e.getTokenAt(r),s=null!==a.type&&/"|\w/.test(a.string[0])?a.start:a.end,o=new f.P(r.line,s),l={list:F(n,e.getValue(),o,a,t.externalFragments).map((e=>({text:e.label,type:e.type,description:e.documentation,isDeprecated:e.isDeprecated,deprecationReason:e.deprecationReason}))),from:{line:r.line,ch:s},to:{line:r.line,ch:a.end}};return(null==l?void 0:l.list)&&l.list.length>0&&(l.from=i.C.Pos(l.from.line,l.from.ch),l.to=i.C.Pos(l.to.line,l.to.ch),i.C.signal(e,"hasCompletion",e,l,a)),l}))},8007:(e,t,n)=>{n.d(t,{o:()=>o});var i=n(9361),r=n(6450),a=Object.defineProperty,s=(e,t)=>a(e,"name",{value:t,configurable:!0});function o(e={eatWhitespace:e=>e.eatWhile(i.i),lexRules:i.L,parseRules:i.P,editorConfig:{}}){return{startState(){const t={level:0,step:0,name:null,kind:null,type:null,rule:null,needsSeperator:!1,prevState:null};return p(e.parseRules,t,r.h.DOCUMENT),t},token:(t,n)=>l(t,n,e)}}function l(e,t,n){var i;if(t.inBlockstring)return e.match(/.*"""/)?(t.inBlockstring=!1,"string"):(e.skipToEnd(),"string");const{lexRules:r,parseRules:a,eatWhitespace:s,editorConfig:o}=n;if(t.rule&&0===t.rule.length?d(t):t.needsAdvance&&(t.needsAdvance=!1,f(t,!0)),e.sol()){const n=(null==o?void 0:o.tabSize)||2;t.indentLevel=Math.floor(e.indentation()/n)}if(s(e))return"ws";const l=E(r,e);if(!l)return e.match(/\S+/)||e.match(/\s/),p(u,t,"Invalid"),"invalidchar";if("Comment"===l.kind)return p(u,t,"Comment"),"comment";const h=c({},t);if("Punctuation"===l.kind)if(/^[{([]/.test(l.value))void 0!==t.indentLevel&&(t.levels=(t.levels||[]).concat(t.indentLevel+1));else if(/^[})\]]/.test(l.value)){const e=t.levels=(t.levels||[]).slice(0,-1);t.indentLevel&&e.length>0&&e[e.length-1]{n.d(t,{C:()=>a,P:()=>o,R:()=>s});var i=Object.defineProperty,r=(e,t)=>i(e,"name",{value:t,configurable:!0});class a{constructor(e){this.getStartOfToken=()=>this._start,this.getCurrentPosition=()=>this._pos,this.eol=()=>this._sourceText.length===this._pos,this.sol=()=>0===this._pos,this.peek=()=>this._sourceText.charAt(this._pos)?this._sourceText.charAt(this._pos):null,this.next=()=>{const e=this._sourceText.charAt(this._pos);return this._pos++,e},this.eat=e=>{if(this._testNextCharacter(e))return this._start=this._pos,this._pos++,this._sourceText.charAt(this._pos-1)},this.eatWhile=e=>{let t=this._testNextCharacter(e),n=!1;for(t&&(n=t,this._start=this._pos);t;)this._pos++,t=this._testNextCharacter(e),n=!0;return n},this.eatSpace=()=>this.eatWhile(/[\s\u00a0]/),this.skipToEnd=()=>{this._pos=this._sourceText.length},this.skipTo=e=>{this._pos=e},this.match=(e,t=!0,n=!1)=>{let i=null,r=null;return"string"==typeof e?(r=new RegExp(e,n?"i":"g").test(this._sourceText.substr(this._pos,e.length)),i=e):e instanceof RegExp&&(r=this._sourceText.slice(this._pos).match(e),i=null==r?void 0:r[0]),!(null==r||!("string"==typeof e||r instanceof Array&&this._sourceText.startsWith(r[0],this._pos)))&&(t&&(this._start=this._pos,i&&i.length&&(this._pos+=i.length)),r)},this.backUp=e=>{this._pos-=e},this.column=()=>this._pos,this.indentation=()=>{const e=this._sourceText.match(/\s*/);let t=0;if(e&&0!==e.length){const n=e[0];let i=0;for(;n.length>i;)9===n.charCodeAt(i)?t+=2:t++,i++}return t},this.current=()=>this._sourceText.slice(this._start,this._pos),this._start=0,this._pos=0,this._sourceText=e}_testNextCharacter(e){const t=this._sourceText.charAt(this._pos);let n=!1;return n="string"==typeof e?t===e:e instanceof RegExp?e.test(t):e(t),n}}r(a,"CharacterStream");class s{constructor(e,t){this.containsPosition=e=>this.start.line===e.line?this.start.character<=e.character:this.end.line===e.line?this.end.character>=e.character:this.start.line<=e.line&&this.end.line>=e.line,this.start=e,this.end=t}setStart(e,t){this.start=new o(e,t)}setEnd(e,t){this.end=new o(e,t)}}r(s,"Range");class o{constructor(e,t){this.lessThanOrEqualTo=e=>this.line{n.r(t);var i=n(7480),r=(n(6079),n(275)),a=n(7636),s=n(9691),o=n(375),l=n(4166),c=n(2575),u=n(6450),p=n(4643),d=n(9361),f=n(45),h=n(8007),v=n(2584),E=(n(7294),n(3935),Object.defineProperty),g=(e,t)=>E(e,"name",{value:t,configurable:!0});function T(e){let t;return R(e,(e=>{switch(e.kind){case"Query":case"ShortQuery":case"Mutation":case"Subscription":case"FragmentDefinition":t=e}})),t}function m(e,t,n){return n===v.S.name&&e.getQueryType()===t?v.S:n===v.T.name&&e.getQueryType()===t?v.T:n===v.a.name&&(0,r.Gv)(t)?v.a:"getFields"in t?t.getFields()[n]:null}function R(e,t){const n=[];let i=e;for(;null==i?void 0:i.kind;)n.push(i),i=i.prevState;for(let e=n.length-1;e>=0;e--)t(n[e])}function S(e){const t=Object.keys(e),n=t.length,i=new Array(n);for(let r=0;r({proximity:D(N(e.label),t),entry:e}))),(e=>e.proximity<=2)),(e=>!e.entry.isDeprecated)).sort(((e,t)=>(e.entry.isDeprecated?1:0)-(t.entry.isDeprecated?1:0)||e.proximity-t.proximity||e.entry.label.length-t.entry.label.length)).map((e=>e.entry)):I(e,(e=>!e.isDeprecated))}function I(e,t){const n=e.filter(t);return 0===n.length?e:n}function N(e){return e.toLowerCase().replace(/\W/g,"")}function D(e,t){let n=k(t,e);return e.length>t.length&&(n-=e.length-t.length-1,n+=0===e.indexOf(t)?0:.5),n}function k(e,t){let n,i;const r=[],a=e.length,s=t.length;for(n=0;n<=a;n++)r[n]=[n];for(i=1;i<=s;i++)r[0][i]=i;for(n=1;n<=a;n++)for(i=1;i<=s;i++){const a=e[n-1]===t[i-1]?0:1;r[n][i]=Math.min(r[n-1][i]+1,r[n][i-1]+1,r[n-1][i-1]+a),n>1&&i>1&&e[n-1]===t[i-2]&&e[n-2]===t[i-1]&&(r[n][i]=Math.min(r[n][i],r[n-2][i-2]+a))}return r[a][s]}g(T,"getDefinitionState"),g(m,"getFieldDef"),g(R,"forEachState"),g(S,"objectValues"),g(y,"hintList"),g(_,"filterAndSortList"),g(I,"filterNonEmpty"),g(N,"normalizeText"),g(D,"getProximity"),g(k,"lexicalDistance");const A={command:"editor.action.triggerSuggest",title:"Suggestions"},C=g((e=>{const t=[];if(e)try{(0,a.Vn)((0,s.Qc)(e),{FragmentDefinition(e){t.push(e)}})}catch(e){return[]}return t}),"collectFragmentDefs");function F(e,t,n,i,a,s){var o;const l=Object.assign(Object.assign({},s),{schema:e}),c=i||Y(t,n),u="Invalid"===c.state.kind?c.state.prevState:c.state;if(!u)return[];const p=u.kind,f=u.step,h=J(e,c.state);if(p===d.R.DOCUMENT)return y(c,[{label:"query",kind:d.C.Function},{label:"mutation",kind:d.C.Function},{label:"subscription",kind:d.C.Function},{label:"fragment",kind:d.C.Function},{label:"{",kind:d.C.Constructor}]);if(p===d.R.IMPLEMENTS||p===d.R.NAMED_TYPE&&(null===(o=u.prevState)||void 0===o?void 0:o.kind)===d.R.IMPLEMENTS)return M(c,u,e,t,h);if(p===d.R.SELECTION_SET||p===d.R.FIELD||p===d.R.ALIASED_FIELD)return x(c,h,l);if(p===d.R.ARGUMENTS||p===d.R.ARGUMENT&&0===f){const e=h.argDefs;if(e)return y(c,e.map((e=>{var t;return{label:e.name,insertText:e.name+": ",command:A,detail:String(e.type),documentation:null!==(t=e.description)&&void 0!==t?t:void 0,kind:d.C.Variable,type:e.type}})))}if((p===d.R.OBJECT_VALUE||p===d.R.OBJECT_FIELD&&0===f)&&h.objectFieldDefs){const e=S(h.objectFieldDefs),t=p===d.R.OBJECT_VALUE?d.C.Value:d.C.Field;return y(c,e.map((e=>{var n;return{label:e.name,detail:String(e.type),documentation:null!==(n=e.description)&&void 0!==n?n:void 0,kind:t,type:e.type}})))}if(p===d.R.ENUM_VALUE||p===d.R.LIST_VALUE&&1===f||p===d.R.OBJECT_FIELD&&2===f||p===d.R.ARGUMENT&&2===f)return L(c,h,t,e);if(p===d.R.VARIABLE&&1===f){const n=(0,r.xC)(h.inputType);return y(c,V(t,e,c).filter((e=>e.detail===(null==n?void 0:n.name))))}return p===d.R.TYPE_CONDITION&&1===f||p===d.R.NAMED_TYPE&&null!=u.prevState&&u.prevState.kind===d.R.TYPE_CONDITION?P(c,h,e):p===d.R.FRAGMENT_SPREAD&&1===f?U(c,h,e,t,Array.isArray(a)?a:C(a)):p===d.R.VARIABLE_DEFINITION&&2===f||p===d.R.LIST_TYPE&&1===f||p===d.R.NAMED_TYPE&&u.prevState&&(u.prevState.kind===d.R.VARIABLE_DEFINITION||u.prevState.kind===d.R.LIST_TYPE||u.prevState.kind===d.R.NON_NULL_TYPE)?j(c,e):p===d.R.DIRECTIVE?w(c,u,e):[]}g(F,"getAutocompleteSuggestions");const b=" {\n $1\n}",O=g((e=>{const t=e.type;if((0,r.Gv)(t))return b;if((0,r.HG)(t)&&(0,r.Gv)(t.ofType))return b;if((0,r.zM)(t)){if((0,r.Gv)(t.ofType))return b;if((0,r.HG)(t.ofType)&&(0,r.Gv)(t.ofType.ofType))return b}return null}),"getInsertText");function x(e,t,n){var i;if(t.parentType){const a=t.parentType;let s=[];return"getFields"in a&&(s=S(a.getFields())),(0,r.Gv)(a)&&s.push(o.hU),a===(null===(i=null==n?void 0:n.schema)||void 0===i?void 0:i.getQueryType())&&s.push(o.Az,o.tF),y(e,s.map(((e,t)=>{var n;const i={sortText:String(t)+e.name,label:e.name,detail:String(e.type),documentation:null!==(n=e.description)&&void 0!==n?n:void 0,deprecated:Boolean(e.deprecationReason),isDeprecated:Boolean(e.deprecationReason),deprecationReason:e.deprecationReason,kind:d.C.Field,type:e.type},r=O(e);return r&&(i.insertText=e.name+r,i.insertTextFormat=d.I.Snippet,i.command=A),i})))}return[]}function L(e,t,n,i){const a=(0,r.xC)(t.inputType),s=V(n,i,e).filter((e=>e.detail===a.name));return a instanceof r.mR?y(e,a.getValues().map((e=>{var t;return{label:e.name,detail:String(a),documentation:null!==(t=e.description)&&void 0!==t?t:void 0,deprecated:Boolean(e.deprecationReason),isDeprecated:Boolean(e.deprecationReason),deprecationReason:e.deprecationReason,kind:d.C.EnumMember,type:a}})).concat(s)):a===l.EZ?y(e,s.concat([{label:"true",detail:String(l.EZ),documentation:"Not false.",kind:d.C.Variable,type:l.EZ},{label:"false",detail:String(l.EZ),documentation:"Not true.",kind:d.C.Variable,type:l.EZ}])):s}function M(e,t,n,i,a){if(t.needsSeparator)return[];const s=S(n.getTypeMap()).filter(r.oT),o=s.map((({name:e})=>e)),l=new Set;Q(i,((e,t)=>{var i,s,c,u,p;if(t.name&&(t.kind!==d.R.INTERFACE_DEF||o.includes(t.name)||l.add(t.name),t.kind===d.R.NAMED_TYPE&&(null===(i=t.prevState)||void 0===i?void 0:i.kind)===d.R.IMPLEMENTS))if(a.interfaceDef){if(null===(s=a.interfaceDef)||void 0===s?void 0:s.getInterfaces().find((({name:e})=>e===t.name)))return;const e=n.getType(t.name),i=null===(c=a.interfaceDef)||void 0===c?void 0:c.toConfig();a.interfaceDef=new r.oW(Object.assign(Object.assign({},i),{interfaces:[...i.interfaces,e||new r.oW({name:t.name,fields:{}})]}))}else if(a.objectTypeDef){if(null===(u=a.objectTypeDef)||void 0===u?void 0:u.getInterfaces().find((({name:e})=>e===t.name)))return;const e=n.getType(t.name),i=null===(p=a.objectTypeDef)||void 0===p?void 0:p.toConfig();a.objectTypeDef=new r.h6(Object.assign(Object.assign({},i),{interfaces:[...i.interfaces,e||new r.oW({name:t.name,fields:{}})]}))}}));const c=a.interfaceDef||a.objectTypeDef,u=((null==c?void 0:c.getInterfaces())||[]).map((({name:e})=>e));return y(e,s.concat([...l].map((e=>({name:e})))).filter((({name:e})=>e!==(null==c?void 0:c.name)&&!u.includes(e))).map((e=>{const t={label:e.name,kind:d.C.Interface,type:e};return(null==e?void 0:e.description)&&(t.documentation=e.description),t})))}function P(e,t,n,i){let a;if(t.parentType)if((0,r.m0)(t.parentType)){const e=(0,r.fU)(t.parentType),i=n.getPossibleTypes(e),s=Object.create(null);i.forEach((e=>{e.getInterfaces().forEach((e=>{s[e.name]=e}))})),a=i.concat(S(s))}else a=[t.parentType];else a=S(n.getTypeMap()).filter(r.Gv);return y(e,a.map((e=>{const t=(0,r.xC)(e);return{label:String(e),documentation:(null==t?void 0:t.description)||"",kind:d.C.Field}})))}function U(e,t,n,i,a){if(!i)return[];const s=n.getTypeMap(),o=T(e.state),l=G(i);return a&&a.length>0&&l.push(...a),y(e,l.filter((e=>s[e.typeCondition.name.value]&&!(o&&o.kind===d.R.FRAGMENT_DEFINITION&&o.name===e.name.value)&&(0,r.Gv)(t.parentType)&&(0,r.Gv)(s[e.typeCondition.name.value])&&(0,c.zR)(n,t.parentType,s[e.typeCondition.name.value]))).map((e=>({label:e.name.value,detail:String(s[e.typeCondition.name.value]),documentation:`fragment ${e.name.value} on ${e.typeCondition.name.value}`,kind:d.C.Field,type:s[e.typeCondition.name.value]}))))}g(x,"getSuggestionsForFieldNames"),g(L,"getSuggestionsForInputValues"),g(M,"getSuggestionsForImplements"),g(P,"getSuggestionsForFragmentTypeConditions"),g(U,"getSuggestionsForFragmentSpread");const B=g(((e,t)=>{var n,i,r,a,s,o,l,c,u,p;return(null===(n=e.prevState)||void 0===n?void 0:n.kind)===t?e.prevState:(null===(r=null===(i=e.prevState)||void 0===i?void 0:i.prevState)||void 0===r?void 0:r.kind)===t?e.prevState.prevState:(null===(o=null===(s=null===(a=e.prevState)||void 0===a?void 0:a.prevState)||void 0===s?void 0:s.prevState)||void 0===o?void 0:o.kind)===t?e.prevState.prevState.prevState:(null===(p=null===(u=null===(c=null===(l=e.prevState)||void 0===l?void 0:l.prevState)||void 0===c?void 0:c.prevState)||void 0===u?void 0:u.prevState)||void 0===p?void 0:p.kind)===t?e.prevState.prevState.prevState.prevState:void 0}),"getParentDefinition");function V(e,t,n){let i,r=null;const a=Object.create({});return Q(e,((e,s)=>{if((null==s?void 0:s.kind)===d.R.VARIABLE&&s.name&&(r=s.name),(null==s?void 0:s.kind)===d.R.NAMED_TYPE&&r){const e=B(s,d.R.TYPE);(null==e?void 0:e.type)&&(i=t.getType(null==e?void 0:e.type))}r&&i&&(a[r]||(a[r]={detail:i.toString(),insertText:"$"===n.string?r:"$"+r,label:r,type:i,kind:d.C.Variable},r=null,i=null))})),S(a)}function G(e){const t=[];return Q(e,((e,n)=>{n.kind===d.R.FRAGMENT_DEFINITION&&n.name&&n.type&&t.push({kind:d.R.FRAGMENT_DEFINITION,name:{kind:u.h.NAME,value:n.name},selectionSet:{kind:d.R.SELECTION_SET,selections:[]},typeCondition:{kind:d.R.NAMED_TYPE,name:{kind:u.h.NAME,value:n.type}}})})),t}function j(e,t,n){return y(e,S(t.getTypeMap()).filter(r.j$).map((e=>({label:e.name,documentation:e.description,kind:d.C.Variable}))))}function w(e,t,n,i){var r;return(null===(r=t.prevState)||void 0===r?void 0:r.kind)?y(e,n.getDirectives().filter((e=>W(t.prevState,e))).map((e=>({label:e.name,documentation:e.description||"",kind:d.C.Function})))):[]}function Y(e,t){let n=null,i=null,r=null;const a=Q(e,((e,a,s,o)=>{if(o===t.line&&e.getCurrentPosition()>=t.character)return n=s,i=Object.assign({},a),r=e.current(),"BREAK"}));return{start:a.start,end:a.end,string:r||a.string,state:i||a.state,style:n||a.style}}function Q(e,t){const n=e.split("\n"),i=(0,h.o)();let r=i.startState(),a="",s=new f.C("");for(let e=0;e{var v;switch(t.kind){case d.R.QUERY:case"ShortQuery":f=e.getQueryType();break;case d.R.MUTATION:f=e.getMutationType();break;case d.R.SUBSCRIPTION:f=e.getSubscriptionType();break;case d.R.INLINE_FRAGMENT:case d.R.FRAGMENT_DEFINITION:t.type&&(f=e.getType(t.type));break;case d.R.FIELD:case d.R.ALIASED_FIELD:f&&t.name?(o=p?m(e,p,t.name):null,f=o?o.type:null):o=null;break;case d.R.SELECTION_SET:p=(0,r.xC)(f);break;case d.R.DIRECTIVE:a=t.name?e.getDirective(t.name):null;break;case d.R.INTERFACE_DEF:t.name&&(c=null,h=new r.oW({name:t.name,interfaces:[],fields:{}}));break;case d.R.OBJECT_TYPE_DEF:t.name&&(h=null,c=new r.h6({name:t.name,interfaces:[],fields:{}}));break;case d.R.ARGUMENTS:if(t.prevState)switch(t.prevState.kind){case d.R.FIELD:i=o&&o.args;break;case d.R.DIRECTIVE:i=a&&a.args;break;case d.R.ALIASED_FIELD:{const n=null===(v=t.prevState)||void 0===v?void 0:v.name;if(!n){i=null;break}const r=p?m(e,p,n):null;if(!r){i=null;break}i=r.args;break}default:i=null}else i=null;break;case d.R.ARGUMENT:if(i)for(let e=0;ee.value===t.name)):null;break;case d.R.LIST_VALUE:const g=(0,r.tf)(l);l=g instanceof r.p2?g.ofType:null;break;case d.R.OBJECT_VALUE:const T=(0,r.xC)(l);u=T instanceof r.sR?T.getFields():null;break;case d.R.OBJECT_FIELD:const R=t.name&&u?u[t.name]:null;l=null==R?void 0:R.type;break;case d.R.NAMED_TYPE:t.name&&(f=e.getType(t.name))}})),{argDef:n,argDefs:i,directiveDef:a,enumValue:s,fieldDef:o,inputType:l,objectFieldDefs:u,parentType:p,type:f,interfaceDef:h,objectTypeDef:c}}g(V,"getVariableCompletions"),g(G,"getFragmentDefinitions"),g(j,"getSuggestionsForVariableDefinition"),g(w,"getSuggestionsForDirective"),g(Y,"getTokenAtPosition"),g(Q,"runOnlineParser"),g(W,"canUseDirective"),g(J,"getTypeInfo"),i.C.registerHelper("hint","graphql",((e,t)=>{const n=t.schema;if(!n)return;const r=e.getCursor(),a=e.getTokenAt(r),s=null!==a.type&&/"|\w/.test(a.string[0])?a.start:a.end,o=new f.P(r.line,s),l={list:F(n,e.getValue(),o,a,t.externalFragments).map((e=>({text:e.label,type:e.type,description:e.documentation,isDeprecated:e.isDeprecated,deprecationReason:e.deprecationReason}))),from:{line:r.line,ch:s},to:{line:r.line,ch:a.end}};return(null==l?void 0:l.list)&&l.list.length>0&&(l.from=i.C.Pos(l.from.line,l.from.ch),l.to=i.C.Pos(l.to.line,l.to.ch),i.C.signal(e,"hasCompletion",e,l,a)),l}))},8007:(e,t,n)=>{n.d(t,{o:()=>o});var i=n(9361),r=n(6450),a=Object.defineProperty,s=(e,t)=>a(e,"name",{value:t,configurable:!0});function o(e={eatWhitespace:e=>e.eatWhile(i.i),lexRules:i.L,parseRules:i.P,editorConfig:{}}){return{startState(){const t={level:0,step:0,name:null,kind:null,type:null,rule:null,needsSeparator:!1,prevState:null};return p(e.parseRules,t,r.h.DOCUMENT),t},token:(t,n)=>l(t,n,e)}}function l(e,t,n){var i;if(t.inBlockstring)return e.match(/.*"""/)?(t.inBlockstring=!1,"string"):(e.skipToEnd(),"string");const{lexRules:r,parseRules:a,eatWhitespace:s,editorConfig:o}=n;if(t.rule&&0===t.rule.length?d(t):t.needsAdvance&&(t.needsAdvance=!1,f(t,!0)),e.sol()){const n=(null==o?void 0:o.tabSize)||2;t.indentLevel=Math.floor(e.indentation()/n)}if(s(e))return"ws";const l=E(r,e);if(!l)return e.match(/\S+/)||e.match(/\s/),p(u,t,"Invalid"),"invalidchar";if("Comment"===l.kind)return p(u,t,"Comment"),"comment";const h=c({},t);if("Punctuation"===l.kind)if(/^[{([]/.test(l.value))void 0!==t.indentLevel&&(t.levels=(t.levels||[]).concat(t.indentLevel+1));else if(/^[})\]]/.test(l.value)){const e=t.levels=(t.levels||[]).slice(0,-1);t.indentLevel&&e.length>0&&e[e.length-1]{n.d(t,{C:()=>i,P:()=>o,R:()=>a});var r=Object.defineProperty,s=(e,t)=>r(e,"name",{value:t,configurable:!0});class i{constructor(e){this.getStartOfToken=()=>this._start,this.getCurrentPosition=()=>this._pos,this.eol=()=>this._sourceText.length===this._pos,this.sol=()=>0===this._pos,this.peek=()=>this._sourceText.charAt(this._pos)?this._sourceText.charAt(this._pos):null,this.next=()=>{const e=this._sourceText.charAt(this._pos);return this._pos++,e},this.eat=e=>{if(this._testNextCharacter(e))return this._start=this._pos,this._pos++,this._sourceText.charAt(this._pos-1)},this.eatWhile=e=>{let t=this._testNextCharacter(e),n=!1;for(t&&(n=t,this._start=this._pos);t;)this._pos++,t=this._testNextCharacter(e),n=!0;return n},this.eatSpace=()=>this.eatWhile(/[\s\u00a0]/),this.skipToEnd=()=>{this._pos=this._sourceText.length},this.skipTo=e=>{this._pos=e},this.match=(e,t=!0,n=!1)=>{let r=null,s=null;return"string"==typeof e?(s=new RegExp(e,n?"i":"g").test(this._sourceText.substr(this._pos,e.length)),r=e):e instanceof RegExp&&(s=this._sourceText.slice(this._pos).match(e),r=null==s?void 0:s[0]),!(null==s||!("string"==typeof e||s instanceof Array&&this._sourceText.startsWith(s[0],this._pos)))&&(t&&(this._start=this._pos,r&&r.length&&(this._pos+=r.length)),s)},this.backUp=e=>{this._pos-=e},this.column=()=>this._pos,this.indentation=()=>{const e=this._sourceText.match(/\s*/);let t=0;if(e&&0!==e.length){const n=e[0];let r=0;for(;n.length>r;)9===n.charCodeAt(r)?t+=2:t++,r++}return t},this.current=()=>this._sourceText.slice(this._start,this._pos),this._start=0,this._pos=0,this._sourceText=e}_testNextCharacter(e){const t=this._sourceText.charAt(this._pos);let n=!1;return n="string"==typeof e?t===e:e instanceof RegExp?e.test(t):e(t),n}}s(i,"CharacterStream");class a{constructor(e,t){this.containsPosition=e=>this.start.line===e.line?this.start.character<=e.character:this.end.line===e.line?this.end.character>=e.character:this.start.line<=e.line&&this.end.line>=e.line,this.start=e,this.end=t}setStart(e,t){this.start=new o(e,t)}setEnd(e,t){this.end=new o(e,t)}}s(a,"Range");class o{constructor(e,t){this.lessThanOrEqualTo=e=>this.line{n.r(t);var r=n(7480),s=n(3174),i=n(387),a=n(6294),o=n(4266),l=n(6415),c=n(4818),u=n(8933),h=n(6522),p=n(8338),d=n(5427),f=n(5854),v=n(1269),g=n(4780),m=n(6063),_=n(9873),y=n(7249),S=n(2091),x=n(6450),k=n(778),C=n(9691),T=n(4610),R=n(8575),w=(n(9361),n(45)),A=n(8007),P=(n(7294),n(3935),Object.defineProperty),b=(e,t)=>P(e,"name",{value:t,configurable:!0});const L=[s.t,i.q,a.P,o.L,l.y,c.o,u.I,h.J,p.k,d.g,f.L,v.P];function E(e,t,n,r,s){const i=g.i.filter((e=>e!==m.J&&e!==_.i&&(!r||e!==y.a)));return n&&Array.prototype.push.apply(i,n),s&&Array.prototype.push.apply(i,L),(0,S.Gu)(e,t,i).filter((e=>{if(-1!==e.message.indexOf("Unknown directive")&&e.nodes){const t=e.nodes[0];if(t&&t.kind===x.h.DIRECTIVE){const e=t.name.value;if("arguments"===e||"argumentDefinitions"===e)return!1}}return!0}))}b(E,"validateWithCustomRules");const O={Error:1,Warning:2,Information:3,Hint:4},Q=b(((e,t)=>{if(!e)throw new Error(t)}),"invariant");function W(e,t=null,n,r,s){var i,a;let o=null;s&&(e+="string"==typeof s?"\n\n"+s:"\n\n"+s.reduce(((e,t)=>e+((0,k.S)(t)+"\n\n")),""));try{o=(0,C.Qc)(e)}catch(t){if(t instanceof T._){const n=q(null!==(a=null===(i=t.locations)||void 0===i?void 0:i[0])&&void 0!==a?a:{line:0,column:0},e);return[{severity:O.Error,message:t.message,source:"GraphQL: Syntax",range:n}]}throw t}return G(o,t,n,r)}function G(e,t=null,n,r){if(!t)return[];const s=I(E(t,e,n,r),(e=>j(e,O.Error,"Validation"))),i=I((0,S.Gu)(t,e,[R.r]),(e=>j(e,O.Warning,"Deprecation")));return s.concat(i)}function I(e,t){return Array.prototype.concat.apply([],e.map(t))}function j(e,t,n){if(!e.nodes)return[];const r=[];return e.nodes.forEach((s=>{const i="Variable"!==s.kind&&"name"in s&&void 0!==s.name?s.name:"variable"in s&&void 0!==s.variable?s.variable:s;if(i){Q(e.locations,"GraphQL validation error requires locations.");const s=e.locations[0],a=D(i),o=s.column+(a.end-a.start);r.push({source:`GraphQL: ${n}`,message:e.message,severity:t,range:new w.R(new w.P(s.line-1,s.column-1),new w.P(s.line-1,o))})}})),r}function q(e,t){const n=(0,A.o)(),r=n.startState(),s=t.split("\n");Q(s.length>=e.line,"Query text must have more lines than where the error happened");let i=null;for(let t=0;tW(e,t.schema,t.validationRules,void 0,t.externalFragments).map((e=>({message:e.message,severity:e.severity?N[e.severity-1]:N[0],type:e.source?U[e.source]:void 0,from:r.C.Pos(e.range.start.line,e.range.start.character),to:r.C.Pos(e.range.end.line,e.range.end.character)})))))},8007:(e,t,n)=>{n.d(t,{o:()=>o});var r=n(9361),s=n(6450),i=Object.defineProperty,a=(e,t)=>i(e,"name",{value:t,configurable:!0});function o(e={eatWhitespace:e=>e.eatWhile(r.i),lexRules:r.L,parseRules:r.P,editorConfig:{}}){return{startState(){const t={level:0,step:0,name:null,kind:null,type:null,rule:null,needsSeperator:!1,prevState:null};return h(e.parseRules,t,s.h.DOCUMENT),t},token:(t,n)=>l(t,n,e)}}function l(e,t,n){var r;if(t.inBlockstring)return e.match(/.*"""/)?(t.inBlockstring=!1,"string"):(e.skipToEnd(),"string");const{lexRules:s,parseRules:i,eatWhitespace:a,editorConfig:o}=n;if(t.rule&&0===t.rule.length?p(t):t.needsAdvance&&(t.needsAdvance=!1,d(t,!0)),e.sol()){const n=(null==o?void 0:o.tabSize)||2;t.indentLevel=Math.floor(e.indentation()/n)}if(a(e))return"ws";const l=g(s,e);if(!l)return e.match(/\S+/)||e.match(/\s/),h(u,t,"Invalid"),"invalidchar";if("Comment"===l.kind)return h(u,t,"Comment"),"comment";const f=c({},t);if("Punctuation"===l.kind)if(/^[{([]/.test(l.value))void 0!==t.indentLevel&&(t.levels=(t.levels||[]).concat(t.indentLevel+1));else if(/^[})\]]/.test(l.value)){const e=t.levels=(t.levels||[]).slice(0,-1);t.indentLevel&&e.length>0&&e[e.length-1]{n.d(t,{C:()=>i,P:()=>o,R:()=>a});var r=Object.defineProperty,s=(e,t)=>r(e,"name",{value:t,configurable:!0});class i{constructor(e){this.getStartOfToken=()=>this._start,this.getCurrentPosition=()=>this._pos,this.eol=()=>this._sourceText.length===this._pos,this.sol=()=>0===this._pos,this.peek=()=>this._sourceText.charAt(this._pos)?this._sourceText.charAt(this._pos):null,this.next=()=>{const e=this._sourceText.charAt(this._pos);return this._pos++,e},this.eat=e=>{if(this._testNextCharacter(e))return this._start=this._pos,this._pos++,this._sourceText.charAt(this._pos-1)},this.eatWhile=e=>{let t=this._testNextCharacter(e),n=!1;for(t&&(n=t,this._start=this._pos);t;)this._pos++,t=this._testNextCharacter(e),n=!0;return n},this.eatSpace=()=>this.eatWhile(/[\s\u00a0]/),this.skipToEnd=()=>{this._pos=this._sourceText.length},this.skipTo=e=>{this._pos=e},this.match=(e,t=!0,n=!1)=>{let r=null,s=null;return"string"==typeof e?(s=new RegExp(e,n?"i":"g").test(this._sourceText.substr(this._pos,e.length)),r=e):e instanceof RegExp&&(s=this._sourceText.slice(this._pos).match(e),r=null==s?void 0:s[0]),!(null==s||!("string"==typeof e||s instanceof Array&&this._sourceText.startsWith(s[0],this._pos)))&&(t&&(this._start=this._pos,r&&r.length&&(this._pos+=r.length)),s)},this.backUp=e=>{this._pos-=e},this.column=()=>this._pos,this.indentation=()=>{const e=this._sourceText.match(/\s*/);let t=0;if(e&&0!==e.length){const n=e[0];let r=0;for(;n.length>r;)9===n.charCodeAt(r)?t+=2:t++,r++}return t},this.current=()=>this._sourceText.slice(this._start,this._pos),this._start=0,this._pos=0,this._sourceText=e}_testNextCharacter(e){const t=this._sourceText.charAt(this._pos);let n=!1;return n="string"==typeof e?t===e:e instanceof RegExp?e.test(t):e(t),n}}s(i,"CharacterStream");class a{constructor(e,t){this.containsPosition=e=>this.start.line===e.line?this.start.character<=e.character:this.end.line===e.line?this.end.character>=e.character:this.start.line<=e.line&&this.end.line>=e.line,this.start=e,this.end=t}setStart(e,t){this.start=new o(e,t)}setEnd(e,t){this.end=new o(e,t)}}s(a,"Range");class o{constructor(e,t){this.lessThanOrEqualTo=e=>this.line{n.r(t);var r=n(7480),s=n(3174),i=n(387),a=n(6294),o=n(4266),l=n(6415),c=n(4818),u=n(8933),h=n(6522),p=n(8338),d=n(5427),f=n(5854),v=n(1269),g=n(4780),m=n(6063),_=n(9873),y=n(7249),S=n(2091),x=n(6450),k=n(778),C=n(9691),T=n(4610),R=n(8575),w=(n(9361),n(45)),A=n(8007),P=(n(7294),n(3935),Object.defineProperty),b=(e,t)=>P(e,"name",{value:t,configurable:!0});const L=[s.t,i.q,a.P,o.L,l.y,c.o,u.I,h.J,p.k,d.g,f.L,v.P];function E(e,t,n,r,s){const i=g.i.filter((e=>e!==m.J&&e!==_.i&&(!r||e!==y.a)));return n&&Array.prototype.push.apply(i,n),s&&Array.prototype.push.apply(i,L),(0,S.Gu)(e,t,i).filter((e=>{if(-1!==e.message.indexOf("Unknown directive")&&e.nodes){const t=e.nodes[0];if(t&&t.kind===x.h.DIRECTIVE){const e=t.name.value;if("arguments"===e||"argumentDefinitions"===e)return!1}}return!0}))}b(E,"validateWithCustomRules");const O={Error:1,Warning:2,Information:3,Hint:4},Q=b(((e,t)=>{if(!e)throw new Error(t)}),"invariant");function W(e,t=null,n,r,s){var i,a;let o=null;s&&(e+="string"==typeof s?"\n\n"+s:"\n\n"+s.reduce(((e,t)=>e+((0,k.S)(t)+"\n\n")),""));try{o=(0,C.Qc)(e)}catch(t){if(t instanceof T._){const n=q(null!==(a=null===(i=t.locations)||void 0===i?void 0:i[0])&&void 0!==a?a:{line:0,column:0},e);return[{severity:O.Error,message:t.message,source:"GraphQL: Syntax",range:n}]}throw t}return G(o,t,n,r)}function G(e,t=null,n,r){if(!t)return[];const s=I(E(t,e,n,r),(e=>j(e,O.Error,"Validation"))),i=I((0,S.Gu)(t,e,[R.r]),(e=>j(e,O.Warning,"Deprecation")));return s.concat(i)}function I(e,t){return Array.prototype.concat.apply([],e.map(t))}function j(e,t,n){if(!e.nodes)return[];const r=[];return e.nodes.forEach((s=>{const i="Variable"!==s.kind&&"name"in s&&void 0!==s.name?s.name:"variable"in s&&void 0!==s.variable?s.variable:s;if(i){Q(e.locations,"GraphQL validation error requires locations.");const s=e.locations[0],a=D(i),o=s.column+(a.end-a.start);r.push({source:`GraphQL: ${n}`,message:e.message,severity:t,range:new w.R(new w.P(s.line-1,s.column-1),new w.P(s.line-1,o))})}})),r}function q(e,t){const n=(0,A.o)(),r=n.startState(),s=t.split("\n");Q(s.length>=e.line,"Query text must have more lines than where the error happened");let i=null;for(let t=0;tW(e,t.schema,t.validationRules,void 0,t.externalFragments).map((e=>({message:e.message,severity:e.severity?N[e.severity-1]:N[0],type:e.source?U[e.source]:void 0,from:r.C.Pos(e.range.start.line,e.range.start.character),to:r.C.Pos(e.range.end.line,e.range.end.character)})))))},8007:(e,t,n)=>{n.d(t,{o:()=>o});var r=n(9361),s=n(6450),i=Object.defineProperty,a=(e,t)=>i(e,"name",{value:t,configurable:!0});function o(e={eatWhitespace:e=>e.eatWhile(r.i),lexRules:r.L,parseRules:r.P,editorConfig:{}}){return{startState(){const t={level:0,step:0,name:null,kind:null,type:null,rule:null,needsSeparator:!1,prevState:null};return h(e.parseRules,t,s.h.DOCUMENT),t},token:(t,n)=>l(t,n,e)}}function l(e,t,n){var r;if(t.inBlockstring)return e.match(/.*"""/)?(t.inBlockstring=!1,"string"):(e.skipToEnd(),"string");const{lexRules:s,parseRules:i,eatWhitespace:a,editorConfig:o}=n;if(t.rule&&0===t.rule.length?p(t):t.needsAdvance&&(t.needsAdvance=!1,d(t,!0)),e.sol()){const n=(null==o?void 0:o.tabSize)||2;t.indentLevel=Math.floor(e.indentation()/n)}if(a(e))return"ws";const l=g(s,e);if(!l)return e.match(/\S+/)||e.match(/\s/),h(u,t,"Invalid"),"invalidchar";if("Comment"===l.kind)return h(u,t,"Comment"),"comment";const f=c({},t);if("Punctuation"===l.kind)if(/^[{([]/.test(l.value))void 0!==t.indentLevel&&(t.levels=(t.levels||[]).concat(t.indentLevel+1));else if(/^[})\]]/.test(l.value)){const e=t.levels=(t.levels||[]).slice(0,-1);t.indentLevel&&e.length>0&&e[e.length-1]{n.r(t);var r=n(7480),l=n(9361),a=n(8007),u=(n(7294),n(3935),Object.defineProperty);function i(e,t){var n,r;const l=e.levels;return((l&&0!==l.length?l[l.length-1]-((null===(n=this.electricInput)||void 0===n?void 0:n.test(t))?1:0):e.indentLevel)||0)*((null===(r=this.config)||void 0===r?void 0:r.indentUnit)||0)}r.C.defineMode("graphql-results",(e=>{const t=(0,a.o)({eatWhitespace:e=>e.eatSpace(),lexRules:s,parseRules:o,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:i,electricInput:/^\s*[}\]]/,fold:"brace",closeBrackets:{pairs:'[]{}""',explode:"[]{}"}}})),u(i,"name",{value:"indent",configurable:!0});const s={Punctuation:/^\[|]|\{|\}|:|,/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?/,Keyword:/^true|false|null/},o={Document:[(0,l.p)("{"),(0,l.l)("Entry",(0,l.p)(",")),(0,l.p)("}")],Entry:[(0,l.t)("String","def"),(0,l.p)(":"),"Value"],Value(e){switch(e.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(e.value){case"[":return"ListValue";case"{":return"ObjectValue"}return null;case"Keyword":switch(e.value){case"true":case"false":return"BooleanValue";case"null":return"NullValue"}return null}},NumberValue:[(0,l.t)("Number","number")],StringValue:[(0,l.t)("String","string")],BooleanValue:[(0,l.t)("Keyword","builtin")],NullValue:[(0,l.t)("Keyword","keyword")],ListValue:[(0,l.p)("["),(0,l.l)("Value",(0,l.p)(",")),(0,l.p)("]")],ObjectValue:[(0,l.p)("{"),(0,l.l)("ObjectField",(0,l.p)(",")),(0,l.p)("}")],ObjectField:[(0,l.t)("String","property"),(0,l.p)(":"),"Value"]}},8007:(e,t,n)=>{n.d(t,{o:()=>i});var r=n(9361),l=n(6450),a=Object.defineProperty,u=(e,t)=>a(e,"name",{value:t,configurable:!0});function i(e={eatWhitespace:e=>e.eatWhile(r.i),lexRules:r.L,parseRules:r.P,editorConfig:{}}){return{startState(){const t={level:0,step:0,name:null,kind:null,type:null,rule:null,needsSeperator:!1,prevState:null};return p(e.parseRules,t,l.h.DOCUMENT),t},token:(t,n)=>s(t,n,e)}}function s(e,t,n){var r;if(t.inBlockstring)return e.match(/.*"""/)?(t.inBlockstring=!1,"string"):(e.skipToEnd(),"string");const{lexRules:l,parseRules:a,eatWhitespace:u,editorConfig:i}=n;if(t.rule&&0===t.rule.length?d(t):t.needsAdvance&&(t.needsAdvance=!1,f(t,!0)),e.sol()){const n=(null==i?void 0:i.tabSize)||2;t.indentLevel=Math.floor(e.indentation()/n)}if(u(e))return"ws";const s=h(l,e);if(!s)return e.match(/\S+/)||e.match(/\s/),p(c,t,"Invalid"),"invalidchar";if("Comment"===s.kind)return p(c,t,"Comment"),"comment";const v=o({},t);if("Punctuation"===s.kind)if(/^[{([]/.test(s.value))void 0!==t.indentLevel&&(t.levels=(t.levels||[]).concat(t.indentLevel+1));else if(/^[})\]]/.test(s.value)){const e=t.levels=(t.levels||[]).slice(0,-1);t.indentLevel&&e.length>0&&e[e.length-1]{n.r(t);var r=n(7480),l=n(9361),a=n(8007),u=(n(7294),n(3935),Object.defineProperty);function i(e,t){var n,r;const l=e.levels;return((l&&0!==l.length?l[l.length-1]-((null===(n=this.electricInput)||void 0===n?void 0:n.test(t))?1:0):e.indentLevel)||0)*((null===(r=this.config)||void 0===r?void 0:r.indentUnit)||0)}r.C.defineMode("graphql-results",(e=>{const t=(0,a.o)({eatWhitespace:e=>e.eatSpace(),lexRules:s,parseRules:o,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:i,electricInput:/^\s*[}\]]/,fold:"brace",closeBrackets:{pairs:'[]{}""',explode:"[]{}"}}})),u(i,"name",{value:"indent",configurable:!0});const s={Punctuation:/^\[|]|\{|\}|:|,/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?/,Keyword:/^true|false|null/},o={Document:[(0,l.p)("{"),(0,l.l)("Entry",(0,l.p)(",")),(0,l.p)("}")],Entry:[(0,l.t)("String","def"),(0,l.p)(":"),"Value"],Value(e){switch(e.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(e.value){case"[":return"ListValue";case"{":return"ObjectValue"}return null;case"Keyword":switch(e.value){case"true":case"false":return"BooleanValue";case"null":return"NullValue"}return null}},NumberValue:[(0,l.t)("Number","number")],StringValue:[(0,l.t)("String","string")],BooleanValue:[(0,l.t)("Keyword","builtin")],NullValue:[(0,l.t)("Keyword","keyword")],ListValue:[(0,l.p)("["),(0,l.l)("Value",(0,l.p)(",")),(0,l.p)("]")],ObjectValue:[(0,l.p)("{"),(0,l.l)("ObjectField",(0,l.p)(",")),(0,l.p)("}")],ObjectField:[(0,l.t)("String","property"),(0,l.p)(":"),"Value"]}},8007:(e,t,n)=>{n.d(t,{o:()=>i});var r=n(9361),l=n(6450),a=Object.defineProperty,u=(e,t)=>a(e,"name",{value:t,configurable:!0});function i(e={eatWhitespace:e=>e.eatWhile(r.i),lexRules:r.L,parseRules:r.P,editorConfig:{}}){return{startState(){const t={level:0,step:0,name:null,kind:null,type:null,rule:null,needsSeparator:!1,prevState:null};return p(e.parseRules,t,l.h.DOCUMENT),t},token:(t,n)=>s(t,n,e)}}function s(e,t,n){var r;if(t.inBlockstring)return e.match(/.*"""/)?(t.inBlockstring=!1,"string"):(e.skipToEnd(),"string");const{lexRules:l,parseRules:a,eatWhitespace:u,editorConfig:i}=n;if(t.rule&&0===t.rule.length?d(t):t.needsAdvance&&(t.needsAdvance=!1,f(t,!0)),e.sol()){const n=(null==i?void 0:i.tabSize)||2;t.indentLevel=Math.floor(e.indentation()/n)}if(u(e))return"ws";const s=h(l,e);if(!s)return e.match(/\S+/)||e.match(/\s/),p(c,t,"Invalid"),"invalidchar";if("Comment"===s.kind)return p(c,t,"Comment"),"comment";const v=o({},t);if("Punctuation"===s.kind)if(/^[{([]/.test(s.value))void 0!==t.indentLevel&&(t.levels=(t.levels||[]).concat(t.indentLevel+1));else if(/^[})\]]/.test(s.value)){const e=t.levels=(t.levels||[]).slice(0,-1);t.indentLevel&&e.length>0&&e[e.length-1]{n.r(t);var r=n(7480),l=n(9361),i=n(8007),a=(n(7294),n(3935),Object.defineProperty),s=(e,t)=>a(e,"name",{value:t,configurable:!0});function o(e,t){var n,r;const l=e.levels;return((l&&0!==l.length?l[l.length-1]-((null===(n=this.electricInput)||void 0===n?void 0:n.test(t))?1:0):e.indentLevel)||0)*((null===(r=this.config)||void 0===r?void 0:r.indentUnit)||0)}s(o,"indent");const u=s((e=>{const t=(0,i.o)({eatWhitespace:e=>e.eatWhile(l.i),lexRules:l.L,parseRules:l.P,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:o,electricInput:/^\s*[})\]]/,fold:"brace",lineComment:"#",closeBrackets:{pairs:'()[]{}""',explode:"()[]{}"}}}),"graphqlModeFactory");r.C.defineMode("graphql",u)},8007:(e,t,n)=>{n.d(t,{o:()=>s});var r=n(9361),l=n(6450),i=Object.defineProperty,a=(e,t)=>i(e,"name",{value:t,configurable:!0});function s(e={eatWhitespace:e=>e.eatWhile(r.i),lexRules:r.L,parseRules:r.P,editorConfig:{}}){return{startState(){const t={level:0,step:0,name:null,kind:null,type:null,rule:null,needsSeperator:!1,prevState:null};return p(e.parseRules,t,l.h.DOCUMENT),t},token:(t,n)=>o(t,n,e)}}function o(e,t,n){var r;if(t.inBlockstring)return e.match(/.*"""/)?(t.inBlockstring=!1,"string"):(e.skipToEnd(),"string");const{lexRules:l,parseRules:i,eatWhitespace:a,editorConfig:s}=n;if(t.rule&&0===t.rule.length?d(t):t.needsAdvance&&(t.needsAdvance=!1,f(t,!0)),e.sol()){const n=(null==s?void 0:s.tabSize)||2;t.indentLevel=Math.floor(e.indentation()/n)}if(a(e))return"ws";const o=S(l,e);if(!o)return e.match(/\S+/)||e.match(/\s/),p(c,t,"Invalid"),"invalidchar";if("Comment"===o.kind)return p(c,t,"Comment"),"comment";const v=u({},t);if("Punctuation"===o.kind)if(/^[{([]/.test(o.value))void 0!==t.indentLevel&&(t.levels=(t.levels||[]).concat(t.indentLevel+1));else if(/^[})\]]/.test(o.value)){const e=t.levels=(t.levels||[]).slice(0,-1);t.indentLevel&&e.length>0&&e[e.length-1]{n.r(t);var r=n(7480),l=n(9361),a=n(8007),i=(n(7294),n(3935),Object.defineProperty),s=(e,t)=>i(e,"name",{value:t,configurable:!0});function o(e,t){var n,r;const l=e.levels;return((l&&0!==l.length?l[l.length-1]-((null===(n=this.electricInput)||void 0===n?void 0:n.test(t))?1:0):e.indentLevel)||0)*((null===(r=this.config)||void 0===r?void 0:r.indentUnit)||0)}s(o,"indent");const u=s((e=>{const t=(0,a.o)({eatWhitespace:e=>e.eatWhile(l.i),lexRules:l.L,parseRules:l.P,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:o,electricInput:/^\s*[})\]]/,fold:"brace",lineComment:"#",closeBrackets:{pairs:'()[]{}""',explode:"()[]{}"}}}),"graphqlModeFactory");r.C.defineMode("graphql",u)},8007:(e,t,n)=>{n.d(t,{o:()=>s});var r=n(9361),l=n(6450),a=Object.defineProperty,i=(e,t)=>a(e,"name",{value:t,configurable:!0});function s(e={eatWhitespace:e=>e.eatWhile(r.i),lexRules:r.L,parseRules:r.P,editorConfig:{}}){return{startState(){const t={level:0,step:0,name:null,kind:null,type:null,rule:null,needsSeparator:!1,prevState:null};return p(e.parseRules,t,l.h.DOCUMENT),t},token:(t,n)=>o(t,n,e)}}function o(e,t,n){var r;if(t.inBlockstring)return e.match(/.*"""/)?(t.inBlockstring=!1,"string"):(e.skipToEnd(),"string");const{lexRules:l,parseRules:a,eatWhitespace:i,editorConfig:s}=n;if(t.rule&&0===t.rule.length?d(t):t.needsAdvance&&(t.needsAdvance=!1,f(t,!0)),e.sol()){const n=(null==s?void 0:s.tabSize)||2;t.indentLevel=Math.floor(e.indentation()/n)}if(i(e))return"ws";const o=S(l,e);if(!o)return e.match(/\S+/)||e.match(/\s/),p(c,t,"Invalid"),"invalidchar";if("Comment"===o.kind)return p(c,t,"Comment"),"comment";const v=u({},t);if("Punctuation"===o.kind)if(/^[{([]/.test(o.value))void 0!==t.indentLevel&&(t.levels=(t.levels||[]).concat(t.indentLevel+1));else if(/^[})\]]/.test(o.value)){const e=t.levels=(t.levels||[]).slice(0,-1);t.indentLevel&&e.length>0&&e[e.length-1]{var e,t,n={9361:(e,t,n)=>{"use strict";n.d(t,{A:()=>Ya,B:()=>ds,C:()=>Co,D:()=>fs,G:()=>$i,I:()=>Ao,J:()=>Wi,K:()=>Fl,L:()=>ca,P:()=>ua,R:()=>ha,a:()=>Tl,c:()=>A,d:()=>Wr,e:()=>Is,f:()=>Cl,g:()=>qs,h:()=>Fs,i:()=>la,j:()=>Ls,k:()=>Qs,l:()=>ia,m:()=>Dl,n:()=>_l,o:()=>ra,p:()=>sa,r:()=>es,s:()=>ts,t:()=>aa,u:()=>Rs,w:()=>_s,x:()=>Es,y:()=>Za,z:()=>Ga});var r=n(275),i=n(4610),o=n(9691),a=n(7766),s=n(7636),l=n(778),c=n(6450),u=n(3106),p=n(4166),d=n(7950),f=n(3982),h=n(2411),m=n(7294),g=n(3935),v=Object.defineProperty,y=Object.defineProperties,b=Object.getOwnPropertyDescriptors,_=Object.getOwnPropertySymbols,E=Object.prototype.hasOwnProperty,k=Object.prototype.propertyIsEnumerable,w=(e,t,n)=>t in e?v(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,x=(e,t)=>{for(var n in t||(t={}))E.call(t,n)&&w(e,n,t[n]);if(_)for(var n of _(t))k.call(t,n)&&w(e,n,t[n]);return e},T=(e,t)=>y(e,b(t)),C=(e,t)=>v(e,"name",{value:t,configurable:!0}),S=(e,t)=>{var n={};for(var r in e)E.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&_)for(var r of _(e))t.indexOf(r)<0&&k.call(e,r)&&(n[r]=e[r]);return n},A="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{};function N(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function D(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach((function(n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})})),t}C(N,"getDefaultExportFromCjs"),C(D,"getAugmentedNamespace");var O=/["'&<>]/,I=F;function F(e){var t,n=""+e,r=O.exec(n);if(!r)return n;var i="",o=0,a=0;for(o=r.index;o",GT:">",Gt:"≫",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",harrcir:"⥈",harr:"↔",hArr:"⇔",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",Hfr:"ℌ",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",Hopf:"ℍ",horbar:"―",HorizontalLine:"─",hscr:"𝒽",Hscr:"ℋ",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"⁣",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",Ifr:"ℑ",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",Im:"ℑ",imof:"⊷",imped:"Ƶ",Implies:"⇒",incare:"℅",in:"∈",infin:"∞",infintie:"⧝",inodot:"ı",intcal:"⊺",int:"∫",Int:"∬",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",Iscr:"ℐ",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",lang:"⟨",Lang:"⟪",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",larrb:"⇤",larrbfs:"⤟",larr:"←",Larr:"↞",lArr:"⇐",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",latail:"⤙",lAtail:"⤛",lat:"⪫",late:"⪭",lates:"⪭︀",lbarr:"⤌",lBarr:"⤎",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",lE:"≦",LeftAngleBracket:"⟨",LeftArrowBar:"⇤",leftarrow:"←",LeftArrow:"←",Leftarrow:"⇐",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVectorBar:"⥙",LeftDownVector:"⇃",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTeeArrow:"↤",LeftTee:"⊣",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangleBar:"⧏",LeftTriangle:"⊲",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVectorBar:"⥘",LeftUpVector:"↿",LeftVectorBar:"⥒",LeftVector:"↼",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",lescc:"⪨",les:"⩽",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",llarr:"⇇",ll:"≪",Ll:"⋘",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoustache:"⎰",lmoust:"⎰",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lnE:"≨",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftrightarrow:"⟷",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longmapsto:"⟼",longrightarrow:"⟶",LongRightArrow:"⟶",Longrightarrow:"⟹",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",Lscr:"ℒ",lsh:"↰",Lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",ltcc:"⪦",ltcir:"⩹",lt:"<",LT:"<",Lt:"≪",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",midast:"*",midcir:"⫰",mid:"∣",middot:"·",minusb:"⊟",minus:"−",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",mscr:"𝓂",Mscr:"ℳ",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natural:"♮",naturals:"ℕ",natur:"♮",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",ne:"≠",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nlE:"≦̸",nle:"≰",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",nopf:"𝕟",Nopf:"ℕ",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangleBar:"⧏̸",NotLeftTriangle:"⋪",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangleBar:"⧐̸",NotRightTriangle:"⋫",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",nparallel:"∦",npar:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",nprec:"⊀",npreceq:"⪯̸",npre:"⪯̸",nrarrc:"⤳̸",nrarr:"↛",nrArr:"⇏",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",Ocirc:"Ô",ocirc:"ô",ocir:"⊚",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",orarr:"↻",Or:"⩔",or:"∨",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",otimesas:"⨶",Otimes:"⨷",otimes:"⊗",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",para:"¶",parallel:"∥",par:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plus:"+",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",popf:"𝕡",Popf:"ℙ",pound:"£",prap:"⪷",Pr:"⪻",pr:"≺",prcue:"≼",precapprox:"⪷",prec:"≺",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",pre:"⪯",prE:"⪳",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportional:"∝",Proportion:"∷",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",qopf:"𝕢",Qopf:"ℚ",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",Rang:"⟫",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarr:"→",Rarr:"↠",rArr:"⇒",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",ratail:"⤚",rAtail:"⤜",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rBarr:"⤏",RBarr:"⤐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",Re:"ℜ",rect:"▭",reg:"®",REG:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",Rfr:"ℜ",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrowBar:"⇥",rightarrow:"→",RightArrow:"→",Rightarrow:"⇒",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVectorBar:"⥕",RightDownVector:"⇂",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTeeArrow:"↦",RightTee:"⊢",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangleBar:"⧐",RightTriangle:"⊳",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVectorBar:"⥔",RightUpVector:"↾",RightVectorBar:"⥓",RightVector:"⇀",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoustache:"⎱",rmoust:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",Ropf:"ℝ",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",rscr:"𝓇",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",scap:"⪸",Scaron:"Š",scaron:"š",Sc:"⪼",sc:"≻",sccue:"≽",sce:"⪰",scE:"⪴",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdotb:"⊡",sdot:"⋅",sdote:"⩦",searhk:"⤥",searr:"↘",seArr:"⇘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",solbar:"⌿",solb:"⧄",sol:"/",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squ:"□",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",Sub:"⋐",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succapprox:"⪸",succ:"≻",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",Sup:"⋑",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",therefore:"∴",Therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",ThinSpace:" ",thinsp:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",timesbar:"⨱",timesb:"⊠",times:"×",timesd:"⨰",tint:"∭",toea:"⤨",topbot:"⌶",topcir:"⫱",top:"⊤",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",uarr:"↑",Uarr:"↟",uArr:"⇑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrowBar:"⤒",uparrow:"↑",UpArrow:"↑",Uparrow:"⇑",UpArrowDownArrow:"⇅",updownarrow:"↕",UpDownArrow:"↕",Updownarrow:"⇕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTeeArrow:"↥",UpTee:"⊥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vBar:"⫨",Vbar:"⫫",vBarv:"⫩",Vcy:"В",vcy:"в",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",veebar:"⊻",vee:"∨",Vee:"⋁",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xharr:"⟷",xhArr:"⟺",Xi:"Ξ",xi:"ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",yuml:"ÿ",Yuml:"Ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"​",Zeta:"Ζ",zeta:"ζ",zfr:"𝔷",Zfr:"ℨ",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",Zopf:"ℤ",Zscr:"𝒵",zscr:"𝓏",zwj:"‍",zwnj:"‌"},M=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,P={},q={};function j(e){var t,n,r=q[e];if(r)return r;for(r=q[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),/^[0-9a-z]$/i.test(n)?r.push(n):r.push("%"+("0"+t.toString(16).toUpperCase()).slice(-2));for(t=0;t=55296&&o<=57343){if(o>=55296&&o<=56319&&r+1=56320&&a<=57343){l+=encodeURIComponent(e[r]+e[r+1]),r++;continue}l+="%EF%BF%BD"}else l+=encodeURIComponent(e[r]);return l}C(j,"getEncodeCache"),C(V,"encode$1"),V.defaultChars=";/?:@&=+$,-_.!~*'()#",V.componentChars="-_.!~*'()";var z=V,U={};function B(e){var t,n,r=U[e];if(r)return r;for(r=U[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),r.push(n);for(t=0;t=55296&&l<=57343?"���":String.fromCharCode(l),t+=6):240==(248&i)&&t+91114111?c+="����":(l-=65536,c+=String.fromCharCode(55296+(l>>10),56320+(1023&l))),t+=9):c+="�";return c}))}C(B,"getDecodeCache"),C(Z,"decode$1"),Z.defaultChars=";/?:@&=+$,#",Z.componentChars="";var G=Z,H=C((function(e){var t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&-1!==e.hostname.indexOf(":")?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",(t+=e.search||"")+(e.hash||"")}),"format");function Q(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}C(Q,"Url");var $=/^([a-z0-9.+-]+:)/i,W=/:[0-9]*$/,Y=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,K=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),J=["'"].concat(K),X=["%","/","?",";","#"].concat(J),ee=["/","?","#"],te=/^[+a-z0-9A-Z_-]{0,63}$/,ne=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,re={javascript:!0,"javascript:":!0},ie={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function oe(e,t){if(e&&e instanceof Q)return e;var n=new Q;return n.parse(e,t),n}C(oe,"urlParse"),Q.prototype.parse=function(e,t){var n,r,i,o,a,s=e;if(s=s.trim(),!t&&1===e.split("#").length){var l=Y.exec(s);if(l)return this.pathname=l[1],l[2]&&(this.search=l[2]),this}var c=$.exec(s);if(c&&(i=(c=c[0]).toLowerCase(),this.protocol=c,s=s.substr(c.length)),(t||c||s.match(/^\/\/[^@\/]+@[^@\/]+/))&&(!(a="//"===s.substr(0,2))||c&&re[c]||(s=s.substr(2),this.slashes=!0)),!re[c]&&(a||c&&!ie[c])){var u,p,d=-1;for(n=0;n127?v+="x":v+=g[y];if(!v.match(te)){var _=m.slice(0,n),E=m.slice(n+1),k=g.match(ne);k&&(_.push(k[1]),E.unshift(k[2])),E.length&&(s=E.join(".")+s),this.hostname=_.join(".");break}}}}this.hostname.length>255&&(this.hostname=""),h&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var w=s.indexOf("#");-1!==w&&(this.hash=s.substr(w),s=s.slice(0,w));var x=s.indexOf("?");return-1!==x&&(this.search=s.substr(x),s=s.slice(0,x)),s&&(this.pathname=s),ie[i]&&this.hostname&&!this.pathname&&(this.pathname=""),this},Q.prototype.parseHost=function(e){var t=W.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};var ae=oe;P.encode=z,P.decode=G,P.format=H,P.parse=ae;var se={},le=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,ce=/[\0-\x1F\x7F-\x9F]/,ue=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/;se.Any=le,se.Cc=ce,se.Cf=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,se.P=M,se.Z=ue,function(e){function t(e){return Object.prototype.toString.call(e)}function n(e){return"[object String]"===t(e)}C(t,"_class"),C(n,"isString");var r=Object.prototype.hasOwnProperty;function i(e,t){return r.call(e,t)}function o(e){var t=Array.prototype.slice.call(arguments,1);return t.forEach((function(t){if(t){if("object"!=typeof t)throw new TypeError(t+"must be object");Object.keys(t).forEach((function(n){e[n]=t[n]}))}})),e}function a(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function s(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||65535==(65535&e)||65534==(65535&e)||e>=0&&e<=8||11===e||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function l(e){if(e>65535){var t=55296+((e-=65536)>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}C(i,"has"),C(o,"assign"),C(a,"arrayReplaceAt"),C(s,"isValidEntityCode"),C(l,"fromCodePoint");var c=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,u=new RegExp(c.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),p=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,d=R;function f(e,t){var n=0;return i(d,t)?d[t]:35===t.charCodeAt(0)&&p.test(t)&&s(n="x"===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10))?l(n):e}function h(e){return e.indexOf("\\")<0?e:e.replace(c,"$1")}function m(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(u,(function(e,t,n){return t||f(e,n)}))}C(f,"replaceEntityPattern"),C(h,"unescapeMd"),C(m,"unescapeAll");var g=/[&<>"]/,v=/[&<>"]/g,y={"&":"&","<":"<",">":">",'"':"""};function b(e){return y[e]}function _(e){return g.test(e)?e.replace(v,b):e}C(b,"replaceUnsafeChar"),C(_,"escapeHtml");var E=/[.?*+^$[\]\\(){}|-]/g;function k(e){return e.replace(E,"\\$&")}function w(e){switch(e){case 9:case 32:return!0}return!1}function x(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}C(k,"escapeRE"),C(w,"isSpace"),C(x,"isWhiteSpace");var T=M;function S(e){return T.test(e)}function A(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function N(e){return e=e.trim().replace(/\s+/g," "),"Ṿ"==="ẞ".toLowerCase()&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}C(S,"isPunctChar"),C(A,"isMdAsciiPunct"),C(N,"normalizeReference"),e.lib={},e.lib.mdurl=P,e.lib.ucmicro=se,e.assign=o,e.isString=n,e.has=i,e.unescapeMd=h,e.unescapeAll=m,e.isValidEntityCode=s,e.fromCodePoint=l,e.escapeHtml=_,e.arrayReplaceAt=a,e.isSpace=w,e.isWhiteSpace=x,e.isMdAsciiPunct=A,e.isPunctChar=S,e.escapeRE=k,e.normalizeReference=N}(L);var pe={},de=C((function(e,t,n){var r,i,o,a,s=-1,l=e.posMax,c=e.pos;for(e.pos=t+1,r=1;e.pos32)return a;if(41===r){if(0===i)break;i--}t++}return o===t||0!==i||(a.str=fe(e.slice(o,t)),a.lines=0,a.pos=t,a.ok=!0),a}),"parseLinkDestination"),me=L.unescapeAll,ge=C((function(e,t,n){var r,i,o=0,a=t,s={ok:!1,pos:0,lines:0,str:""};if(t>=n)return s;if(34!==(i=e.charCodeAt(t))&&39!==i&&40!==i)return s;for(t++,40===i&&(i=41);t"+be(e[t].content)+""},_e.code_block=function(e,t,n,r,i){var o=e[t];return""+be(e[t].content)+"\n"},_e.fence=function(e,t,n,r,i){var o,a,s,l,c,u=e[t],p=u.info?ye(u.info).trim():"",d="",f="";return p&&(d=(s=p.split(/(\s+)/g))[0],f=s.slice(2).join("")),0===(o=n.highlight&&n.highlight(u.content,d,f)||be(u.content)).indexOf(""+o+"\n"):"
"+o+"
\n"},_e.image=function(e,t,n,r,i){var o=e[t];return o.attrs[o.attrIndex("alt")][1]=i.renderInlineAsText(o.children,n,r),i.renderToken(e,t,n)},_e.hardbreak=function(e,t,n){return n.xhtmlOut?"
\n":"
\n"},_e.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?"
\n":"
\n":"\n"},_e.text=function(e,t){return be(e[t].content)},_e.html_block=function(e,t){return e[t].content},_e.html_inline=function(e,t){return e[t].content},C(Ee,"Renderer$1"),Ee.prototype.renderAttrs=C((function(e){var t,n,r;if(!e.attrs)return"";for(r="",t=0,n=e.attrs.length;t\n":">")}),"renderToken"),Ee.prototype.renderInline=function(e,t,n){for(var r,i="",o=this.rules,a=0,s=e.length;a\s]/i.test(e)}function Ie(e){return/^<\/a\s*>/i.test(e)}C(Oe,"isLinkOpen"),C(Ie,"isLinkClose");var Fe=C((function(e){var t,n,r,i,o,a,s,l,c,u,p,d,f,h,m,g,v,y=e.tokens;if(e.md.options.linkify)for(n=0,r=y.length;n=0;t--)if("link_close"!==(a=i[t]).type){if("html_inline"===a.type&&(Oe(a.content)&&f>0&&f--,Ie(a.content)&&f++),!(f>0)&&"text"===a.type&&e.md.linkify.test(a.content)){for(c=a.content,v=e.md.linkify.match(c),s=[],d=a.level,p=0,l=0;lp&&((o=new e.Token("text","",0)).content=c.slice(p,u),o.level=d,s.push(o)),(o=new e.Token("link_open","a",1)).attrs=[["href",m]],o.level=d++,o.markup="linkify",o.info="auto",s.push(o),(o=new e.Token("text","",0)).content=g,o.level=d,s.push(o),(o=new e.Token("link_close","a",-1)).level=--d,o.markup="linkify",o.info="auto",s.push(o),p=v[l].lastIndex);p=0;t--)"text"!==(n=e[t]).type||r||(n.content=n.content.replace(Me,qe)),"link_open"===n.type&&"auto"===n.info&&r--,"link_close"===n.type&&"auto"===n.info&&r++}function Ve(e){var t,n,r=0;for(t=e.length-1;t>=0;t--)"text"!==(n=e[t]).type||r||Le.test(n.content)&&(n.content=n.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/gm,"$1—").replace(/(^|\s)--(?=\s|$)/gm,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/gm,"$1–")),"link_open"===n.type&&"auto"===n.info&&r--,"link_close"===n.type&&"auto"===n.info&&r++}C(qe,"replaceFn"),C(je,"replace_scoped"),C(Ve,"replace_rare");var ze=C((function(e){var t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&(Re.test(e.tokens[t].content)&&je(e.tokens[t].children),Le.test(e.tokens[t].content)&&Ve(e.tokens[t].children))}),"replace"),Ue=L.isWhiteSpace,Be=L.isPunctChar,Ze=L.isMdAsciiPunct,Ge=/['"]/,He=/['"]/g;function Qe(e,t,n){return e.substr(0,t)+n+e.substr(t+1)}function $e(e,t){var n,r,i,o,a,s,l,c,u,p,d,f,h,m,g,v,y,b,_,E,k;for(_=[],n=0;n=0&&!(_[y].level<=l);y--);if(_.length=y+1,"text"===r.type){a=0,s=(i=r.content).length;e:for(;a=0)u=i.charCodeAt(o.index-1);else for(y=n-1;y>=0&&"softbreak"!==e[y].type&&"hardbreak"!==e[y].type;y--)if(e[y].content){u=e[y].content.charCodeAt(e[y].content.length-1);break}if(p=32,a=48&&u<=57&&(v=g=!1),g&&v&&(g=d,v=f),g||v){if(v)for(y=_.length-1;y>=0&&(c=_[y],!(_[y].level=0;t--)"inline"===e.tokens[t].type&&Ge.test(e.tokens[t].content)&&$e(e.tokens[t].children,e)}),"smartquotes");function Ye(e,t,n){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}C(Ye,"Token$3"),Ye.prototype.attrIndex=C((function(e){var t,n,r;if(!this.attrs)return-1;for(n=0,r=(t=this.attrs).length;n=0&&(n=this.attrs[t][1]),n}),"attrGet"),Ye.prototype.attrJoin=C((function(e,t){var n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=this.attrs[n][1]+" "+t}),"attrJoin");var Ke=Ye,Je=Ke;function Xe(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}C(Xe,"StateCore"),Xe.prototype.Token=Je;var et=Xe,tt=xe,nt=[["normalize",Se],["block",Ae],["inline",Ne],["linkify",Fe],["replacements",ze],["smartquotes",We]];function rt(){this.ruler=new tt;for(var e=0;en)return!1;if(c=t+1,e.sCount[c]=4)return!1;if((a=e.bMarks[c]+e.tShift[c])>=e.eMarks[c])return!1;if(124!==(_=e.src.charCodeAt(a++))&&45!==_&&58!==_)return!1;if(a>=e.eMarks[c])return!1;if(124!==(E=e.src.charCodeAt(a++))&&45!==E&&58!==E&&!ot(E))return!1;if(45===_&&ot(E))return!1;for(;a=4)return!1;if((u=st(o)).length&&""===u[0]&&u.shift(),u.length&&""===u[u.length-1]&&u.pop(),0===(p=u.length)||p!==f.length)return!1;if(r)return!0;for(v=e.parentType,e.parentType="table",b=e.md.block.ruler.getRules("blockquote"),(d=e.push("table_open","table",1)).map=m=[t,0],(d=e.push("thead_open","thead",1)).map=[t,t+1],(d=e.push("tr_open","tr",1)).map=[t,t+1],s=0;s=4)break;for((u=st(o)).length&&""===u[0]&&u.shift(),u.length&&""===u[u.length-1]&&u.pop(),c===t+2&&((d=e.push("tbody_open","tbody",1)).map=g=[t+2,0]),(d=e.push("tr_open","tr",1)).map=[c,c+1],s=0;s=4))break;i=++r}return e.line=i,(o=e.push("code_block","code",0)).content=e.getLines(t,i,4+e.blkIndent,!1)+"\n",o.map=[t,e.line],!0}),"code"),ut=C((function(e,t,n,r){var i,o,a,s,l,c,u,p=!1,d=e.bMarks[t]+e.tShift[t],f=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(d+3>f)return!1;if(126!==(i=e.src.charCodeAt(d))&&96!==i)return!1;if(l=d,(o=(d=e.skipChars(d,i))-l)<3)return!1;if(u=e.src.slice(l,d),a=e.src.slice(d,f),96===i&&a.indexOf(String.fromCharCode(i))>=0)return!1;if(r)return!0;for(s=t;!(++s>=n||(d=l=e.bMarks[s]+e.tShift[s])<(f=e.eMarks[s])&&e.sCount[s]=4||(d=e.skipChars(d,i))-l=4)return!1;if(62!==e.src.charCodeAt(T++))return!1;if(r)return!0;for(s=d=e.sCount[t]+1,32===e.src.charCodeAt(T)?(T++,s++,d++,i=!1,b=!0):9===e.src.charCodeAt(T)?(b=!0,(e.bsCount[t]+d)%4==3?(T++,s++,d++,i=!1):i=!0):b=!1,f=[e.bMarks[t]],e.bMarks[t]=T;T=C,v=[e.sCount[t]],e.sCount[t]=d-s,y=[e.tShift[t]],e.tShift[t]=T-e.bMarks[t],E=e.md.block.ruler.getRules("blockquote"),g=e.parentType,e.parentType="blockquote",p=t+1;p=(C=e.eMarks[p])));p++)if(62!==e.src.charCodeAt(T++)||w){if(c)break;for(_=!1,a=0,l=E.length;a=C,h.push(e.bsCount[p]),e.bsCount[p]=e.sCount[p]+1+(b?1:0),v.push(e.sCount[p]),e.sCount[p]=d-s,y.push(e.tShift[p]),e.tShift[p]=T-e.bMarks[p]}for(m=e.blkIndent,e.blkIndent=0,(k=e.push("blockquote_open","blockquote",1)).markup=">",k.map=u=[t,0],e.md.block.tokenize(e,t,p),(k=e.push("blockquote_close","blockquote",-1)).markup=">",e.lineMax=x,e.parentType=g,u[1]=e.line,a=0;a=4)return!1;if(42!==(i=e.src.charCodeAt(l++))&&45!==i&&95!==i)return!1;for(o=1;l=o)return-1;if((n=e.src.charCodeAt(i++))<48||n>57)return-1;for(;;){if(i>=o)return-1;if(!((n=e.src.charCodeAt(i++))>=48&&n<=57)){if(41===n||46===n)break;return-1}if(i-r>=10)return-1}return i=4)return!1;if(e.listIndent>=0&&e.sCount[t]-e.listIndent>=4&&e.sCount[t]=e.blkIndent&&(I=!0),(C=vt(e,t))>=0){if(u=!0,A=e.bMarks[t]+e.tShift[t],g=Number(e.src.slice(A,C-1)),I&&1!==g)return!1}else{if(!((C=gt(e,t))>=0))return!1;u=!1}if(I&&e.skipSpaces(C)>=e.eMarks[t])return!1;if(m=e.src.charCodeAt(C-1),r)return!0;for(h=e.tokens.length,u?(O=e.push("ordered_list_open","ol",1),1!==g&&(O.attrs=[["start",g]])):O=e.push("bullet_list_open","ul",1),O.map=f=[t,0],O.markup=String.fromCharCode(m),y=t,S=!1,D=e.md.block.ruler.getRules("list"),E=e.parentType,e.parentType="list";y=v?1:b-c)>4&&(l=1),s=c+l,(O=e.push("list_item_open","li",1)).markup=String.fromCharCode(m),O.map=p=[t,0],u&&(O.info=e.src.slice(A,C-1)),x=e.tight,w=e.tShift[t],k=e.sCount[t],_=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=s,e.tight=!0,e.tShift[t]=o-e.bMarks[t],e.sCount[t]=b,o>=v&&e.isEmpty(t+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,t,n,!0),e.tight&&!S||(F=!1),S=e.line-t>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=_,e.tShift[t]=w,e.sCount[t]=k,e.tight=x,(O=e.push("list_item_close","li",-1)).markup=String.fromCharCode(m),y=t=e.line,p[1]=y,o=e.bMarks[t],y>=n)break;if(e.sCount[y]=4)break;for(N=!1,a=0,d=D.length;a=4)return!1;if(91!==e.src.charCodeAt(E))return!1;for(;++E3||e.sCount[w]<0)){for(v=!1,c=0,u=y.length;c`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",Tt="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",Ct=new RegExp("^(?:"+xt+"|"+Tt+"|\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e|<[?][\\s\\S]*?[?]>|]*>|)"),St=new RegExp("^(?:"+xt+"|"+Tt+")");wt.HTML_TAG_RE=Ct,wt.HTML_OPEN_CLOSE_TAG_RE=St;var At=wt.HTML_OPEN_CLOSE_TAG_RE,Nt=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^/,!0],[/^<\?/,/\?>/,!0],[/^/,!0],[/^/,!0],[new RegExp("^|$))","i"),/^$/,!0],[new RegExp(At.source+"\\s*$"),/^$/,!1]],Dt=C((function(e,t,n,r){var i,o,a,s,l=e.bMarks[t]+e.tShift[t],c=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(!e.md.options.html)return!1;if(60!==e.src.charCodeAt(l))return!1;for(s=e.src.slice(l,c),i=0;i=4)return!1;if(35!==(i=e.src.charCodeAt(l))||l>=c)return!1;for(o=1,i=e.src.charCodeAt(++l);35===i&&l6||ll&&Ot(e.src.charCodeAt(a-1))&&(c=a),e.line=t+1,(s=e.push("heading_open","h"+String(o),1)).markup="########".slice(0,o),s.map=[t,e.line],(s=e.push("inline","",0)).content=e.src.slice(l,c).trim(),s.map=[t,e.line],s.children=[],(s=e.push("heading_close","h"+String(o),-1)).markup="########".slice(0,o)),0))}),"heading"),Ft=C((function(e,t,n){var r,i,o,a,s,l,c,u,p,d,f=t+1,h=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;for(d=e.parentType,e.parentType="paragraph";f3)){if(e.sCount[f]>=e.blkIndent&&(l=e.bMarks[f]+e.tShift[f])<(c=e.eMarks[f])&&(45===(p=e.src.charCodeAt(l))||61===p)&&(l=e.skipChars(l,p),(l=e.skipSpaces(l))>=c)){u=61===p?1:2;break}if(!(e.sCount[f]<0)){for(i=!1,o=0,a=h.length;o3||e.sCount[l]<0)){for(r=!1,i=0,o=c.length;i0&&this.level++,this.tokens.push(r),r},Pt.prototype.isEmpty=C((function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]}),"isEmpty"),Pt.prototype.skipEmptyLines=C((function(e){for(var t=this.lineMax;et;)if(!Mt(this.src.charCodeAt(--e)))return e+1;return e}),"skipSpacesBack"),Pt.prototype.skipChars=C((function(e,t){for(var n=this.src.length;en;)if(t!==this.src.charCodeAt(--e))return e+1;return e}),"skipCharsBack"),Pt.prototype.getLines=C((function(e,t,n,r){var i,o,a,s,l,c,u,p=e;if(e>=t)return"";for(c=new Array(t-e),i=0;pn?new Array(o-n+1).join(" ")+this.src.slice(s,l):this.src.slice(s,l)}return c.join("")}),"getLines"),Pt.prototype.Token=Rt;var qt=Pt,jt=xe,Vt=[["table",lt,["paragraph","reference"]],["code",ct],["fence",ut,["paragraph","reference","blockquote","list"]],["blockquote",dt,["paragraph","reference","blockquote","list"]],["hr",ht,["paragraph","reference","blockquote","list"]],["list",bt,["paragraph","reference","blockquote"]],["reference",kt],["html_block",Dt,["paragraph","reference","blockquote"]],["heading",It,["paragraph","reference","blockquote"]],["lheading",Ft],["paragraph",Lt]];function zt(){this.ruler=new jt;for(var e=0;e=n))&&!(e.sCount[a]=l){e.line=n;break}for(r=0;r=0&&32===e.pending.charCodeAt(n)?n>=1&&32===e.pending.charCodeAt(n-1)?(e.pending=e.pending.replace(/ +$/,""),e.push("hardbreak","br",0)):(e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0)):e.push("softbreak","br",0)),i++;i?@[]^_`{|}~-".split("").forEach((function(e){$t[e.charCodeAt(0)]=1}));var Yt=C((function(e,t){var n,r=e.pos,i=e.posMax;if(92!==e.src.charCodeAt(r))return!1;if(++r=0;n--)95!==(r=t[n]).marker&&42!==r.marker||-1!==r.end&&(i=t[r.end],s=n>0&&t[n-1].end===r.end+1&&t[n-1].token===r.token-1&&t[r.end+1].token===i.token+1&&t[n-1].marker===r.marker,a=String.fromCharCode(r.marker),(o=e.tokens[r.token]).type=s?"strong_open":"em_open",o.tag=s?"strong":"em",o.nesting=1,o.markup=s?a+a:a,o.content="",(o=e.tokens[i.token]).type=s?"strong_close":"em_close",o.tag=s?"strong":"em",o.nesting=-1,o.markup=s?a+a:a,o.content="",s&&(e.tokens[t[n-1].token].content="",e.tokens[t[r.end+1].token].content="",n--))}en.tokenize=C((function(e,t){var n,r,i=e.pos,o=e.src.charCodeAt(i);if(t)return!1;if(95!==o&&42!==o)return!1;for(r=e.scanDelims(e.pos,42===o),n=0;n=f)return!1;if(h=s,(l=e.md.helpers.parseLinkDestination(e.src,s,e.posMax)).ok){for(u=e.md.normalizeLink(l.str),e.md.validateLink(u)?s=l.pos:u="",h=s;s=f||41!==e.src.charCodeAt(s))&&(m=!0),s++}if(m){if(void 0===e.env.references)return!1;if(s=0?i=e.src.slice(h,s++):s=o+1):s=o+1,i||(i=e.src.slice(a,o)),!(c=e.env.references[nn(i)]))return e.pos=d,!1;u=c.href,p=c.title}return t||(e.pos=a,e.posMax=o,e.push("link_open","a",1).attrs=n=[["href",u]],p&&n.push(["title",p]),e.md.inline.tokenize(e),e.push("link_close","a",-1)),e.pos=s,e.posMax=f,!0}),"link"),an=L.normalizeReference,sn=L.isSpace,ln=C((function(e,t){var n,r,i,o,a,s,l,c,u,p,d,f,h,m="",g=e.pos,v=e.posMax;if(33!==e.src.charCodeAt(e.pos))return!1;if(91!==e.src.charCodeAt(e.pos+1))return!1;if(s=e.pos+2,(a=e.md.helpers.parseLinkLabel(e,e.pos+1,!1))<0)return!1;if((l=a+1)=v)return!1;for(h=l,(u=e.md.helpers.parseLinkDestination(e.src,l,e.posMax)).ok&&(m=e.md.normalizeLink(u.str),e.md.validateLink(m)?l=u.pos:m=""),h=l;l=v||41!==e.src.charCodeAt(l))return e.pos=g,!1;l++}else{if(void 0===e.env.references)return!1;if(l=0?o=e.src.slice(h,l++):l=a+1):l=a+1,o||(o=e.src.slice(s,a)),!(c=e.env.references[an(o)]))return e.pos=g,!1;m=c.href,p=c.title}return t||(i=e.src.slice(s,a),e.md.inline.parse(i,e.md,e.env,f=[]),(d=e.push("image","img",0)).attrs=n=[["src",m],["alt",""]],d.children=f,d.content=i,p&&n.push(["title",p])),e.pos=l,e.posMax=v,!0}),"image"),cn=/^([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,un=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/,pn=C((function(e,t){var n,r,i,o,a,s,l=e.pos;if(60!==e.src.charCodeAt(l))return!1;for(a=e.pos,s=e.posMax;;){if(++l>=s)return!1;if(60===(o=e.src.charCodeAt(l)))return!1;if(62===o)break}return n=e.src.slice(a+1,l),un.test(n)?(r=e.md.normalizeLink(n),!!e.md.validateLink(r)&&(t||((i=e.push("link_open","a",1)).attrs=[["href",r]],i.markup="autolink",i.info="auto",(i=e.push("text","",0)).content=e.md.normalizeLinkText(n),(i=e.push("link_close","a",-1)).markup="autolink",i.info="auto"),e.pos+=n.length+2,!0)):!!cn.test(n)&&(r=e.md.normalizeLink("mailto:"+n),!!e.md.validateLink(r)&&(t||((i=e.push("link_open","a",1)).attrs=[["href",r]],i.markup="autolink",i.info="auto",(i=e.push("text","",0)).content=e.md.normalizeLinkText(n),(i=e.push("link_close","a",-1)).markup="autolink",i.info="auto"),e.pos+=n.length+2,!0))}),"autolink"),dn=wt.HTML_TAG_RE;function fn(e){var t=32|e;return t>=97&&t<=122}C(fn,"isLetter");var hn=C((function(e,t){var n,r,i,o=e.pos;return!(!e.md.options.html||(i=e.posMax,60!==e.src.charCodeAt(o)||o+2>=i||33!==(n=e.src.charCodeAt(o+1))&&63!==n&&47!==n&&!fn(n)||!(r=e.src.slice(o).match(dn))||(t||(e.push("html_inline","",0).content=e.src.slice(o,o+r[0].length)),e.pos+=r[0].length,0)))}),"html_inline"),mn=R,gn=L.has,vn=L.isValidEntityCode,yn=L.fromCodePoint,bn=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,_n=/^&([a-z][a-z0-9]{1,31});/i,En=C((function(e,t){var n,r,i=e.pos,o=e.posMax;if(38!==e.src.charCodeAt(i))return!1;if(i+1a;r-=o.jump+1)if((o=t[r]).marker===i.marker&&o.open&&o.end<0&&(l=!1,(o.close||i.open)&&(o.length+i.length)%3==0&&(o.length%3==0&&i.length%3==0||(l=!0)),!l)){c=r>0&&!t[r-1].open?t[r-1].jump+1:0,i.jump=n-r+c,i.open=!1,o.end=n,o.jump=c,o.close=!1,s=-1;break}-1!==s&&(u[i.marker][(i.open?3:0)+(i.length||0)%3]=s)}}C(kn,"processDelimiters");var wn=C((function(e){var t,n=e.tokens_meta,r=e.tokens_meta.length;for(kn(0,e.delimiters),t=0;t0&&r++,"text"===i[t].type&&t+10&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(i),r},Nn.prototype.scanDelims=function(e,t){var n,r,i,o,a,s,l,c,u,p=e,d=!0,f=!0,h=this.posMax,m=this.src.charCodeAt(e);for(n=e>0?this.src.charCodeAt(e-1):32;p=o)break}else e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},Ln.prototype.parse=function(e,t,n,r){var i,o,a,s=new this.State(e,t,n,r);for(this.tokenize(s),a=(o=this.ruler2.getRules("")).length,i=0;i<|]|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|[><|]|"+t.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|[><|]|[()[\\]{}.,\"'?!\\-;]).|\\[(?:(?!"+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-]).|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]).|"+(e&&e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+").|;(?!"+t.src_ZCc+").|\\!+(?!"+t.src_ZCc+"|[!]).|\\?(?!"+t.src_ZCc+"|[?]).)+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy='(^|[><|]|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}),"re");function Pn(e){var t=Array.prototype.slice.call(arguments,1);return t.forEach((function(t){t&&Object.keys(t).forEach((function(n){e[n]=t[n]}))})),e}function qn(e){return Object.prototype.toString.call(e)}function jn(e){return"[object String]"===qn(e)}function Vn(e){return"[object Object]"===qn(e)}function zn(e){return"[object RegExp]"===qn(e)}function Un(e){return"[object Function]"===qn(e)}function Bn(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}C(Pn,"assign"),C(qn,"_class"),C(jn,"isString"),C(Vn,"isObject$2"),C(zn,"isRegExp"),C(Un,"isFunction"),C(Bn,"escapeRE");var Zn={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function Gn(e){return Object.keys(e||{}).reduce((function(e,t){return e||Zn.hasOwnProperty(t)}),!1)}C(Gn,"isOptionsObj");var Hn={"http:":{validate:function(e,t,n){var r=e.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){var r=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r)?t>=3&&":"===e[t-3]||t>=3&&"/"===e[t-3]?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){var r=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},Qn="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function $n(e){e.__index__=-1,e.__text_cache__=""}function Wn(e){return function(t,n){var r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}function Yn(e){var t=e.re=Mn(e.__opts__),n=e.__tlds__.slice();function r(e){return e.replace("%TLDS%",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||n.push("a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]"),n.push(t.src_xn),t.src_tlds=n.join("|"),C(r,"untpl"),t.email_fuzzy=RegExp(r(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(r(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(r(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(r(t.tpl_host_fuzzy_test),"i");var i=[];function o(e,t){throw new Error('(LinkifyIt) Invalid schema "'+e+'": '+t)}e.__compiled__={},C(o,"schemaError"),Object.keys(e.__schemas__).forEach((function(t){var n=e.__schemas__[t];if(null!==n){var r={validate:null,link:null};if(e.__compiled__[t]=r,Vn(n))return zn(n.validate)?r.validate=Wn(n.validate):Un(n.validate)?r.validate=n.validate:o(t,n),void(Un(n.normalize)?r.normalize=n.normalize:n.normalize?o(t,n):r.normalize=function(e,t){t.normalize(e)});jn(n)?i.push(t):o(t,n)}})),i.forEach((function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)})),e.__compiled__[""]={validate:null,normalize:function(e,t){t.normalize(e)}};var a=Object.keys(e.__compiled__).filter((function(t){return t.length>0&&e.__compiled__[t]})).map(Bn).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+a+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+a+")","ig"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),$n(e)}function Kn(e,t){var n=e.__index__,r=e.__last_index__,i=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=i,this.text=i,this.url=i}function Jn(e,t){var n=new Kn(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function Xn(e,t){if(!(this instanceof Xn))return new Xn(e,t);t||Gn(e)&&(t=e,e={}),this.__opts__=Pn({},Zn,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=Pn({},Hn,e),this.__compiled__={},this.__tlds__=Qn,this.__tlds_replaced__=!1,this.re={},Yn(this)}C($n,"resetScanCache"),C(Wn,"createValidator"),C((function(){return function(e,t){t.normalize(e)}}),"createNormalizer"),C(Yn,"compile"),C(Kn,"Match"),C(Jn,"createMatch"),C(Xn,"LinkifyIt$1"),Xn.prototype.add=C((function(e,t){return this.__schemas__[e]=t,Yn(this),this}),"add"),Xn.prototype.set=C((function(e){return this.__opts__=Pn(this.__opts__,e),this}),"set"),Xn.prototype.test=C((function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var t,n,r,i,o,a,s,l;if(this.re.schema_test.test(e))for((s=this.re.schema_search).lastIndex=0;null!==(t=s.exec(e));)if(i=this.testSchemaAt(e,t[2],s.lastIndex)){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+i;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(l=e.search(this.re.host_fuzzy_test))>=0&&(this.__index__<0||l=0&&null!==(r=e.match(this.re.email_fuzzy))&&(o=r.index+r[1].length,a=r.index+r[0].length,(this.__index__<0||othis.__last_index__)&&(this.__schema__="mailto:",this.__index__=o,this.__last_index__=a)),this.__index__>=0}),"test"),Xn.prototype.pretest=C((function(e){return this.re.pretest.test(e)}),"pretest"),Xn.prototype.testSchemaAt=C((function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0}),"testSchemaAt"),Xn.prototype.match=C((function(e){var t=0,n=[];this.__index__>=0&&this.__text_cache__===e&&(n.push(Jn(this,t)),t=this.__last_index__);for(var r=t?e.slice(t):e;this.test(r);)n.push(Jn(this,t)),r=r.slice(this.__last_index__),t+=this.__last_index__;return n.length?n:null}),"match"),Xn.prototype.tlds=C((function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter((function(e,t,n){return e!==n[t-1]})).reverse(),Yn(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,Yn(this),this)}),"tlds"),Xn.prototype.normalize=C((function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)}),"normalize"),Xn.prototype.onCompile=C((function(){}),"onCompile");var er=Xn;const tr=2147483647,nr=36,rr=/^xn--/,ir=/[^\0-\x7E]/,or=/[\x2E\u3002\uFF0E\uFF61]/g,ar={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},sr=Math.floor,lr=String.fromCharCode;function cr(e){throw new RangeError(ar[e])}function ur(e,t){const n=[];let r=e.length;for(;r--;)n[r]=t(e[r]);return n}function pr(e,t){const n=e.split("@");let r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+ur((e=e.replace(or,".")).split("."),t).join(".")}function dr(e){const t=[];let n=0;const r=e.length;for(;n=55296&&i<=56319&&nString.fromCodePoint(...e)),"ucs2encode"),hr=C((function(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:nr}),"basicToDigit"),mr=C((function(e,t){return e+22+75*(e<26)-((0!=t)<<5)}),"digitToBasic"),gr=C((function(e,t,n){let r=0;for(e=n?sr(e/700):e>>1,e+=sr(e/t);e>455;r+=nr)e=sr(e/35);return sr(r+36*e/(e+38))}),"adapt"),vr=C((function(e){const t=[],n=e.length;let r=0,i=128,o=72,a=e.lastIndexOf("-");a<0&&(a=0);for(let n=0;n=128&&cr("not-basic"),t.push(e.charCodeAt(n));for(let s=a>0?a+1:0;s=n&&cr("invalid-input");const a=hr(e.charCodeAt(s++));(a>=nr||a>sr((tr-r)/t))&&cr("overflow"),r+=a*t;const l=i<=o?1:i>=o+26?26:i-o;if(asr(tr/c)&&cr("overflow"),t*=c}const l=t.length+1;o=gr(r-a,l,0==a),sr(r/l)>tr-i&&cr("overflow"),i+=sr(r/l),r%=l,t.splice(r++,0,i)}return String.fromCodePoint(...t)}),"decode"),yr=C((function(e){const t=[];let n=(e=dr(e)).length,r=128,i=0,o=72;for(const n of e)n<128&&t.push(lr(n));let a=t.length,s=a;for(a&&t.push("-");s=r&&tsr((tr-i)/l)&&cr("overflow"),i+=(n-r)*l,r=n;for(const n of e)if(ntr&&cr("overflow"),n==r){let e=i;for(let n=nr;;n+=nr){const r=n<=o?1:n>=o+26?26:n-o;if(e=0))try{t.hostname=Or.toASCII(t.hostname)}catch(e){}return Dr.encode(Dr.format(t))}function qr(e){var t=Dr.parse(e,!0);if(t.hostname&&(!t.protocol||Mr.indexOf(t.protocol)>=0))try{t.hostname=Or.toUnicode(t.hostname)}catch(e){}return Dr.decode(Dr.format(t),Dr.decode.defaultChars+"%")}function jr(e,t){if(!(this instanceof jr))return new jr(e,t);t||wr.isString(e)||(t=e||{},e="default"),this.inline=new Ar,this.block=new Sr,this.core=new Cr,this.renderer=new Tr,this.linkify=new Nr,this.validateLink=Rr,this.normalizeLink=Pr,this.normalizeLinkText=qr,this.utils=wr,this.helpers=wr.assign({},xr),this.options={},this.configure(e),t&&this.set(t)}C(Pr,"normalizeLink"),C(qr,"normalizeLinkText"),C(jr,"MarkdownIt"),jr.prototype.set=function(e){return wr.assign(this.options,e),this},jr.prototype.configure=function(e){var t,n=this;if(wr.isString(e)&&!(e=Ir[t=e]))throw new Error('Wrong `markdown-it` preset "'+t+'", check name');if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&n.set(e.options),e.components&&Object.keys(e.components).forEach((function(t){e.components[t].rules&&n[t].ruler.enableOnly(e.components[t].rules),e.components[t].rules2&&n[t].ruler2.enableOnly(e.components[t].rules2)})),this},jr.prototype.enable=function(e,t){var n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach((function(t){n=n.concat(this[t].ruler.enable(e,!0))}),this),n=n.concat(this.inline.ruler2.enable(e,!0));var r=e.filter((function(e){return n.indexOf(e)<0}));if(r.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this},jr.prototype.disable=function(e,t){var n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach((function(t){n=n.concat(this[t].ruler.disable(e,!0))}),this),n=n.concat(this.inline.ruler2.disable(e,!0));var r=e.filter((function(e){return n.indexOf(e)<0}));if(r.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this},jr.prototype.use=function(e){var t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},jr.prototype.parse=function(e,t){if("string"!=typeof e)throw new Error("Input data should be a String");var n=new this.core.State(e,this,t);return this.core.process(n),n.tokens},jr.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},jr.prototype.parseInline=function(e,t){var n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},jr.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};const Vr=new jr;var zr=Object.defineProperty,Ur=C(((e,t)=>zr(e,"name",{value:t,configurable:!0})),"__name$j");let Br=!1;"object"==typeof window&&(Br=0===window.navigator.platform.toLowerCase().indexOf("mac"));const Zr={[Br?"Cmd-F":"Ctrl-F"]:"findPersistent","Cmd-G":"findPersistent","Ctrl-G":"findPersistent","Ctrl-Left":"goSubwordLeft","Ctrl-Right":"goSubwordRight","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight"},Gr=[Promise.all([n.e(480),n.e(79)]).then(n.bind(n,6079)).then((function(e){return e.s})),Promise.all([n.e(480),n.e(980)]).then(n.bind(n,4980)).then((function(e){return e.m})),Promise.all([n.e(480),n.e(845)]).then(n.bind(n,845)).then((function(e){return e.c})),Promise.all([n.e(480),n.e(768)]).then(n.bind(n,768)).then((function(e){return e.b})),Promise.all([n.e(480),n.e(739)]).then(n.bind(n,5739)).then((function(e){return e.f})),Promise.all([n.e(480),n.e(481)]).then(n.bind(n,7481)).then((function(e){return e.l})),Promise.all([n.e(480),n.e(105)]).then(n.bind(n,6105)).then((function(e){return e.s})),Promise.all([n.e(480),n.e(198)]).then(n.bind(n,2198)).then((function(e){return e.j})),Promise.all([n.e(480),n.e(744)]).then(n.bind(n,9744)).then((function(e){return e.d})),Promise.all([n.e(480),n.e(571)]).then(n.bind(n,3571)).then((function(e){return e.s}))];async function Hr(e,t){const r=await n.e(480).then(n.bind(n,7480)).then((function(e){return e.c})).then((e=>"function"==typeof e?e:e.default)),i=!1===(null==t?void 0:t.useCommonAddons)?e:Gr.concat(e);return await Promise.all(i.map((e=>e))),r}C(Hr,"importCodeMirror"),Ur(Hr,"importCodeMirror");var Qr=Object.defineProperty,$r=C(((e,t)=>Qr(e,"name",{value:t,configurable:!0})),"__name$i");function Wr(e,t,n,r){function i(e){if(!(n&&r&&e.currentTarget instanceof HTMLElement&&"typeName"===e.currentTarget.className))return;const t=e.currentTarget.innerHTML,i=n.getType(t);i&&(r.show(),r.push({name:i.name,def:i}))}Hr([],{useCommonAddons:!1}).then((e=>{let n,r;e.on(t,"select",((e,t)=>{if(!n){const e=t.parentNode;let o;n=document.createElement("div"),n.className="CodeMirror-hint-information",n.addEventListener("click",i),e.appendChild(n),r=document.createElement("div"),r.className="CodeMirror-hint-deprecation",e.appendChild(r),e.addEventListener("DOMNodeRemoved",o=$r((t=>{t.target===e&&(e.removeEventListener("DOMNodeRemoved",o),n&&n.removeEventListener("click",i),n=null,r=null,o=null)}),"onRemoveFn"))}const o=e.description?Vr.render(e.description):"Self descriptive.",a=e.type?''+Yr(e.type)+"":"";if(n.innerHTML='
'+("

"===o.slice(0,3)?"

"+a+o.slice(3):a+o)+"

",e&&r&&e.deprecationReason){const t=e.deprecationReason?Vr.render(e.deprecationReason):"";r.innerHTML='Deprecated'+t,r.style.display="block"}else r&&(r.style.display="none")}))})),C(i,"onClickHintInformation"),$r(i,"onClickHintInformation")}function Yr(e){return(0,r.zM)(e)?`${Yr(e.ofType)}!`:(0,r.HG)(e)?`[${Yr(e.ofType)}]`:`${I(e.name)}`}C(Wr,"onHasCompletion"),$r(Wr,"onHasCompletion"),C(Yr,"renderType"),$r(Yr,"renderType");var Kr={exports:{}},Jr={};function Xr(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable,C((function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}),"toObject"),C(Xr,"shouldUseNative"),Xr()&&Object.assign;var ei=m,ti=60103;if(Jr.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var ni=Symbol.for;ti=ni("react.element"),Jr.Fragment=ni("react.fragment")}var ri=ei.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,ii=Object.prototype.hasOwnProperty,oi={key:!0,ref:!0,__self:!0,__source:!0};function ai(e,t,n){var r,i={},o=null,a=null;for(r in void 0!==n&&(o=""+n),void 0!==t.key&&(o=""+t.key),void 0!==t.ref&&(a=t.ref),t)ii.call(t,r)&&!oi.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:ti,type:e,key:o,ref:a,props:i,_owner:ri.current}}C(ai,"q"),Jr.jsx=ai,Jr.jsxs=ai,Kr.exports=Jr;const si=Kr.exports.jsx,li=Kr.exports.jsxs;var ci=Object.defineProperty,ui=C(((e,t)=>ci(e,"name",{value:t,configurable:!0})),"__name$h");function pi(e){var t;const[n,r]=(0,m.useState)({width:null,height:null}),[i,o]=(0,m.useState)(null),a=(0,m.useRef)(null),s=null==(t=di(e.token))?void 0:t.href;(0,m.useEffect)((()=>{if(a.current)return s?void fetch(s,{method:"HEAD"}).then((e=>{o(e.headers.get("Content-Type"))})).catch((()=>{o(null)})):(r({width:null,height:null}),void o(null))}),[s]);const l=null!==n.width&&null!==n.height?li("div",{children:[n.width,"x",n.height,null!==i?" "+i:null]}):null;return li("div",{children:[si("img",{onLoad:()=>{var e,t,n,i;r({width:null!=(t=null==(e=a.current)?void 0:e.naturalWidth)?t:null,height:null!=(i=null==(n=a.current)?void 0:n.naturalHeight)?i:null})},ref:a,src:s}),l]})}function di(e){if("string"!==e.type)return;const t=e.string.slice(1).slice(0,-1).trim();try{const e=window.location;return new URL(t,e.protocol+"//"+e.host)}catch(e){return}}function fi(e){return/(bmp|gif|jpeg|jpg|png|svg)$/.test(e.pathname)}function hi(e){return"object"==typeof e&&"function"==typeof e.then}function mi(e){return new Promise(((t,n)=>{const r=e.subscribe({next:e=>{t(e),r.unsubscribe()},error:n,complete:()=>{n(new Error("no value resolved"))}})}))}function gi(e){return"object"==typeof e&&"subscribe"in e&&"function"==typeof e.subscribe}function vi(e){return"object"==typeof e&&null!==e&&("AsyncGenerator"===e[Symbol.toStringTag]||Symbol.asyncIterator in e)}function yi(e){return new Promise(((t,n)=>{var r;const i=null===(r=("return"in e?e:e[Symbol.asyncIterator]()).return)||void 0===r?void 0:r.bind(e);("next"in e?e:e[Symbol.asyncIterator]()).next.bind(e)().then((e=>{t(e.value),null==i||i()})).catch((e=>{n(e)}))}))}function bi(e){return Promise.resolve(e).then((e=>vi(e)?yi(e):gi(e)?mi(e):e))}C(pi,"ImagePreview"),ui(pi,"ImagePreview"),pi.shouldRender=ui(C((function(e){const t=di(e);return!!t&&fi(t)}),"shouldRender"),"shouldRender"),C(di,"tokenToURL"),ui(di,"tokenToURL"),C(fi,"isImageURL"),ui(fi,"isImageURL"),C(hi,"isPromise"),C(mi,"observableToPromise"),C(gi,"isObservable"),C(vi,"isAsyncIterable"),C(yi,"asyncIterableToPromise"),C(bi,"fetcherReturnToPromise"),globalThis&&globalThis.__awaiter;var _i=globalThis&&globalThis.__await||function(e){return this instanceof _i?(this.v=e,this):new _i(e)};function Ei(e){return JSON.stringify(e,null,2)}globalThis&&globalThis.__asyncValues,globalThis&&globalThis.__asyncGenerator,C(Ei,"stringify");const ki=C((e=>Object.assign(Object.assign({},e),{message:e.message,stack:e.stack})),"formatSingleError");function wi(e){return e instanceof i._?e.toString():e instanceof Error?ki(e):e}function xi(e){return Array.isArray(e)?Ei({errors:e.map((e=>wi(e)))}):Ei({errors:wi(e)})}function Ti(e){return Ei(e)}function Ci(e,t,n){const r=[];if(!e||!t)return{insertions:r,result:t};let i;try{i=(0,o.Qc)(t)}catch(e){return{insertions:r,result:t}}const c=n||Si,u=new a.a(e);return(0,s.Vn)(i,{leave(e){u.leave(e)},enter(e){if(u.enter(e),"Field"===e.kind&&!e.selectionSet){const n=Ai(Oi(u.getType()),c);if(n&&e.loc){const i=Di(t,e.loc.start);r.push({index:e.loc.end,string:" "+(0,l.S)(n).replace(/\n/g,"\n"+i)})}}}}),{insertions:r,result:Ni(t,r)}}function Si(e){if(!("getFields"in e))return[];const t=e.getFields();if(t.id)return["id"];if(t.edges)return["edges"];if(t.node)return["node"];const n=[];return Object.keys(t).forEach((e=>{(0,r.UT)(t[e].type)&&n.push(e)})),n}function Ai(e,t){const n=(0,r.xC)(e);if(!e||(0,r.UT)(e))return;const i=t(n);return Array.isArray(i)&&0!==i.length&&"getFields"in n?{kind:c.h.SELECTION_SET,selections:i.map((e=>{const r=n.getFields()[e],i=r?r.type:null;return{kind:c.h.FIELD,name:{kind:c.h.NAME,value:e},selectionSet:Ai(i,t)}}))}:void 0}function Ni(e,t){if(0===t.length)return e;let n="",r=0;return t.forEach((({index:t,string:i})=>{n+=e.slice(r,t)+i,r=t})),n+=e.slice(r),n}function Di(e,t){let n=t,r=t;for(;n;){const t=e.charCodeAt(n-1);if(10===t||13===t||8232===t||8233===t)break;n--,9!==t&&11!==t&&12!==t&&32!==t&&160!==t&&(r=n)}return e.substring(n,r)}function Oi(e){if(e)return e}function Ii(e,t){var n;const r=new Map,i=[];for(const o of e)if("Field"===o.kind){const e=t(o),a=r.get(e);if(null===(n=o.directives)||void 0===n?void 0:n.length){const e=Object.assign({},o);i.push(e)}else if((null==a?void 0:a.selectionSet)&&o.selectionSet)a.selectionSet.selections=[...a.selectionSet.selections,...o.selectionSet.selections];else if(!a){const t=Object.assign({},o);r.set(e,t),i.push(t)}}else i.push(o);return i}function Fi(e,t,n){var i;const o=n?(0,r.xC)(n).name:null,a=[],s=[];for(let r of t){if("FragmentSpread"===r.kind){const t=r.name.value;if(!r.directives||0===r.directives.length){if(s.indexOf(t)>=0)continue;s.push(t)}const n=e[r.name.value];if(n){const{typeCondition:e,directives:t,selectionSet:i}=n;r={kind:c.h.INLINE_FRAGMENT,typeCondition:e,directives:t,selectionSet:i}}}if(r.kind===c.h.INLINE_FRAGMENT&&(!r.directives||0===(null===(i=r.directives)||void 0===i?void 0:i.length))){const t=r.typeCondition?r.typeCondition.name.value:null;if(!t||t===o){a.push(...Fi(e,r.selectionSet.selections,n));continue}}a.push(r)}return a}function Li(e,t){const n=t?new a.a(t):null,r=Object.create(null);for(const t of e.definitions)t.kind===c.h.FRAGMENT_DEFINITION&&(r[t.name.value]=t);const i={SelectionSet(e){const t=n?n.getParentType():null;let{selections:i}=e;return i=Fi(r,i,t),i=Ii(i,(e=>e.alias?e.alias.value:e.name.value)),Object.assign(Object.assign({},e),{selections:i})},FragmentDefinition:()=>null};return(0,s.Vn)(e,n?(0,a.y)(n,i):i)}function Ri(e,t,n){if(!n||n.length<1)return;const r=n.map((e=>{var t;return null===(t=e.name)||void 0===t?void 0:t.value}));if(t&&-1!==r.indexOf(t))return t;if(t&&e){const n=e.map((e=>{var t;return null===(t=e.name)||void 0===t?void 0:t.value})).indexOf(t);if(-1!==n&&nt.query===e.query&&t.variables===e.variables&&t.headers===e.headers&&t.operationName===e.operationName))}edit(e){const t=this.items.findIndex((t=>t.query===e.query&&t.variables===e.variables&&t.headers===e.headers&&t.operationName===e.operationName));-1!==t&&(this.items.splice(t,1,e),this.save())}delete(e){const t=this.items.findIndex((t=>t.query===e.query&&t.variables===e.variables&&t.headers===e.headers&&t.operationName===e.operationName));-1!==t&&(this.items.splice(t,1),this.save())}fetchRecent(){return this.items[this.items.length-1]}fetchAll(){const e=this.storage.get(this.key);return e?JSON.parse(e)[this.key]:[]}push(e){const t=[...this.items,e];this.maxSize&&t.length>this.maxSize&&t.shift();for(let e=0;e<5;e++){const e=this.storage.set(this.key,JSON.stringify({[this.key]:t}));if(e&&e.error){if(!e.isQuotaError||!this.maxSize)return;t.shift()}else this.items=t}}save(){this.storage.set(this.key,JSON.stringify({[this.key]:this.items}))}}C(ji,"QueryStore");class Vi{constructor(e,t){this.storage=e,this.maxHistoryLength=t,this.updateHistory=(e,t,n,r)=>{if(this.shouldSaveQuery(e,t,n,this.history.fetchRecent())){this.history.push({query:e,variables:t,headers:n,operationName:r});const i=this.history.items,o=this.favorite.items;this.queries=i.concat(o)}},this.history=new ji("queries",this.storage,this.maxHistoryLength),this.favorite=new ji("favorites",this.storage,null),this.queries=[...this.history.fetchAll(),...this.favorite.fetchAll()]}shouldSaveQuery(e,t,n,r){if(!e)return!1;try{(0,o.Qc)(e)}catch(e){return!1}if(e.length>1e5)return!1;if(!r)return!0;if(JSON.stringify(e)===JSON.stringify(r.query)){if(JSON.stringify(t)===JSON.stringify(r.variables)){if(JSON.stringify(n)===JSON.stringify(r.headers))return!1;if(n&&!r.headers)return!1}if(t&&!r.variables)return!1}return!0}toggleFavorite(e,t,n,r,i,o){const a={query:e,variables:t,headers:n,operationName:r,label:i};this.favorite.contains(a)?o&&(a.favorite=!1,this.favorite.delete(a)):(a.favorite=!0,this.favorite.push(a)),this.queries=[...this.history.items,...this.favorite.items]}editLabel(e,t,n,r,i,o){const a={query:e,variables:t,headers:n,operationName:r,label:i};o?this.favorite.edit(Object.assign(Object.assign({},a),{favorite:o})):this.history.edit(a),this.queries=[...this.history.items,...this.favorite.items]}}C(Vi,"HistoryStore");var zi=Object.defineProperty,Ui=C(((e,t)=>zi(e,"name",{value:t,configurable:!0})),"__name$g");function Bi(e){const t=(0,m.createContext)(null);return t.displayName=e,t}function Zi(e){function t(n){var r;const i=(0,m.useContext)(e);if(null===i&&(null==n?void 0:n.nonNull))throw new Error(`Tried to use \`${(null==(r=n.caller)?void 0:r.name)||t.caller.name}\` without the necessary context. Make sure to render the \`${e.displayName}Provider\` component higher up the tree.`);return i}return C(t,"useGivenContext"),Ui(t,"useGivenContext"),Object.defineProperty(t,"name",{value:`use${e.displayName}`}),t}C(Bi,"createNullableContext"),Ui(Bi,"createNullableContext"),C(Zi,"createContextHook"),Ui(Zi,"createContextHook");var Gi=Object.defineProperty,Hi=C(((e,t)=>Gi(e,"name",{value:t,configurable:!0})),"__name$f");const Qi=Bi("StorageContext");function $i(e){const t=(0,m.useRef)(!0),[n,r]=(0,m.useState)(new Pi(e.storage));return(0,m.useEffect)((()=>{t.current?t.current=!1:r(new Pi(e.storage))}),[e.storage]),si(Qi.Provider,{value:n,children:e.children})}C($i,"StorageContextProvider"),Hi($i,"StorageContextProvider");const Wi=Zi(Qi);var Yi,Ki,Ji,Xi,eo,to,no,ro,io,oo,ao,so,lo,co,uo,po,fo,ho,mo,go,vo,yo,bo;!function(e){function t(e,t){return{line:e,character:t}}function n(e){var t=e;return ta.objectLiteral(t)&&ta.number(t.line)&&ta.number(t.character)}C(t,"create"),e.create=t,C(n,"is"),e.is=n}(Yi||(Yi={})),function(e){function t(e,t,n,r){if(ta.number(e)&&ta.number(t)&&ta.number(n)&&ta.number(r))return{start:Yi.create(e,t),end:Yi.create(n,r)};if(Yi.is(e)&&Yi.is(t))return{start:e,end:t};throw new Error("Range#create called with invalid arguments["+e+", "+t+", "+n+", "+r+"]")}function n(e){var t=e;return ta.objectLiteral(t)&&Yi.is(t.start)&&Yi.is(t.end)}C(t,"create"),e.create=t,C(n,"is"),e.is=n}(Ki||(Ki={})),function(e){function t(e,t){return{uri:e,range:t}}function n(e){var t=e;return ta.defined(t)&&Ki.is(t.range)&&(ta.string(t.uri)||ta.undefined(t.uri))}C(t,"create"),e.create=t,C(n,"is"),e.is=n}(Ji||(Ji={})),function(e){function t(e,t,n,r){return{targetUri:e,targetRange:t,targetSelectionRange:n,originSelectionRange:r}}function n(e){var t=e;return ta.defined(t)&&Ki.is(t.targetRange)&&ta.string(t.targetUri)&&(Ki.is(t.targetSelectionRange)||ta.undefined(t.targetSelectionRange))&&(Ki.is(t.originSelectionRange)||ta.undefined(t.originSelectionRange))}C(t,"create"),e.create=t,C(n,"is"),e.is=n}(Xi||(Xi={})),function(e){function t(e,t,n,r){return{red:e,green:t,blue:n,alpha:r}}function n(e){var t=e;return ta.number(t.red)&&ta.number(t.green)&&ta.number(t.blue)&&ta.number(t.alpha)}C(t,"create"),e.create=t,C(n,"is"),e.is=n}(eo||(eo={})),function(e){function t(e,t){return{range:e,color:t}}function n(e){var t=e;return Ki.is(t.range)&&eo.is(t.color)}C(t,"create"),e.create=t,C(n,"is"),e.is=n}(to||(to={})),function(e){function t(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}}function n(e){var t=e;return ta.string(t.label)&&(ta.undefined(t.textEdit)||ho.is(t))&&(ta.undefined(t.additionalTextEdits)||ta.typedArray(t.additionalTextEdits,ho.is))}C(t,"create"),e.create=t,C(n,"is"),e.is=n}(no||(no={})),(io=ro||(ro={})).Comment="comment",io.Imports="imports",io.Region="region",function(e){function t(e,t,n,r,i){var o={startLine:e,endLine:t};return ta.defined(n)&&(o.startCharacter=n),ta.defined(r)&&(o.endCharacter=r),ta.defined(i)&&(o.kind=i),o}function n(e){var t=e;return ta.number(t.startLine)&&ta.number(t.startLine)&&(ta.undefined(t.startCharacter)||ta.number(t.startCharacter))&&(ta.undefined(t.endCharacter)||ta.number(t.endCharacter))&&(ta.undefined(t.kind)||ta.string(t.kind))}C(t,"create"),e.create=t,C(n,"is"),e.is=n}(oo||(oo={})),function(e){function t(e,t){return{location:e,message:t}}function n(e){var t=e;return ta.defined(t)&&Ji.is(t.location)&&ta.string(t.message)}C(t,"create"),e.create=t,C(n,"is"),e.is=n}(ao||(ao={})),(lo=so||(so={})).Error=1,lo.Warning=2,lo.Information=3,lo.Hint=4,(uo=co||(co={})).Unnecessary=1,uo.Deprecated=2,function(e){function t(e,t,n,r,i,o){var a={range:e,message:t};return ta.defined(n)&&(a.severity=n),ta.defined(r)&&(a.code=r),ta.defined(i)&&(a.source=i),ta.defined(o)&&(a.relatedInformation=o),a}function n(e){var t=e;return ta.defined(t)&&Ki.is(t.range)&&ta.string(t.message)&&(ta.number(t.severity)||ta.undefined(t.severity))&&(ta.number(t.code)||ta.string(t.code)||ta.undefined(t.code))&&(ta.string(t.source)||ta.undefined(t.source))&&(ta.undefined(t.relatedInformation)||ta.typedArray(t.relatedInformation,ao.is))}C(t,"create"),e.create=t,C(n,"is"),e.is=n}(po||(po={})),function(e){function t(e,t){for(var n=[],r=2;r0&&(i.arguments=n),i}function n(e){var t=e;return ta.defined(t)&&ta.string(t.title)&&ta.string(t.command)}C(t,"create"),e.create=t,C(n,"is"),e.is=n}(fo||(fo={})),function(e){function t(e,t){return{range:e,newText:t}}function n(e,t){return{range:{start:e,end:e},newText:t}}function r(e){return{range:e,newText:""}}function i(e){var t=e;return ta.objectLiteral(t)&&ta.string(t.newText)&&Ki.is(t.range)}C(t,"replace"),e.replace=t,C(n,"insert"),e.insert=n,C(r,"del"),e.del=r,C(i,"is"),e.is=i}(ho||(ho={})),function(e){function t(e,t){return{textDocument:e,edits:t}}function n(e){var t=e;return ta.defined(t)&&Eo.is(t.textDocument)&&Array.isArray(t.edits)}C(t,"create"),e.create=t,C(n,"is"),e.is=n}(mo||(mo={})),function(e){function t(e,t){var n={kind:"create",uri:e};return void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(n.options=t),n}function n(e){var t=e;return t&&"create"===t.kind&&ta.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||ta.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||ta.boolean(t.options.ignoreIfExists)))}C(t,"create"),e.create=t,C(n,"is"),e.is=n}(go||(go={})),function(e){function t(e,t,n){var r={kind:"rename",oldUri:e,newUri:t};return void 0===n||void 0===n.overwrite&&void 0===n.ignoreIfExists||(r.options=n),r}function n(e){var t=e;return t&&"rename"===t.kind&&ta.string(t.oldUri)&&ta.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||ta.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||ta.boolean(t.options.ignoreIfExists)))}C(t,"create"),e.create=t,C(n,"is"),e.is=n}(vo||(vo={})),function(e){function t(e,t){var n={kind:"delete",uri:e};return void 0===t||void 0===t.recursive&&void 0===t.ignoreIfNotExists||(n.options=t),n}function n(e){var t=e;return t&&"delete"===t.kind&&ta.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||ta.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||ta.boolean(t.options.ignoreIfNotExists)))}C(t,"create"),e.create=t,C(n,"is"),e.is=n}(yo||(yo={})),function(e){function t(e){var t=e;return t&&(void 0!==t.changes||void 0!==t.documentChanges)&&(void 0===t.documentChanges||t.documentChanges.every((function(e){return ta.string(e.kind)?go.is(e)||vo.is(e)||yo.is(e):mo.is(e)})))}C(t,"is"),e.is=t}(bo||(bo={}));var _o,Eo,ko,wo,xo,To,Co,So,Ao,No,Do,Oo,Io,Fo,Lo,Ro,Mo,Po,qo,jo,Vo,zo,Uo,Bo,Zo,Go,Ho,Qo,$o,Wo,Yo,Ko,Jo,Xo,ea=function(){function e(e){this.edits=e}return C(e,"TextEditChangeImpl"),e.prototype.insert=function(e,t){this.edits.push(ho.insert(e,t))},e.prototype.replace=function(e,t){this.edits.push(ho.replace(e,t))},e.prototype.delete=function(e){this.edits.push(ho.del(e))},e.prototype.add=function(e){this.edits.push(e)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e}();!function(){function e(e){var t=this;this._textEditChanges=Object.create(null),e&&(this._workspaceEdit=e,e.documentChanges?e.documentChanges.forEach((function(e){if(mo.is(e)){var n=new ea(e.edits);t._textEditChanges[e.textDocument.uri]=n}})):e.changes&&Object.keys(e.changes).forEach((function(n){var r=new ea(e.changes[n]);t._textEditChanges[n]=r})))}C(e,"WorkspaceChange"),Object.defineProperty(e.prototype,"edit",{get:function(){return this._workspaceEdit},enumerable:!0,configurable:!0}),e.prototype.getTextEditChange=function(e){if(Eo.is(e)){if(this._workspaceEdit||(this._workspaceEdit={documentChanges:[]}),!this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var t=e;if(!(r=this._textEditChanges[t.uri])){var n={textDocument:t,edits:i=[]};this._workspaceEdit.documentChanges.push(n),r=new ea(i),this._textEditChanges[t.uri]=r}return r}if(this._workspaceEdit||(this._workspaceEdit={changes:Object.create(null)}),!this._workspaceEdit.changes)throw new Error("Workspace edit is not configured for normal text edit changes.");var r;if(!(r=this._textEditChanges[e])){var i=[];this._workspaceEdit.changes[e]=i,r=new ea(i),this._textEditChanges[e]=r}return r},e.prototype.createFile=function(e,t){this.checkDocumentChanges(),this._workspaceEdit.documentChanges.push(go.create(e,t))},e.prototype.renameFile=function(e,t,n){this.checkDocumentChanges(),this._workspaceEdit.documentChanges.push(vo.create(e,t,n))},e.prototype.deleteFile=function(e,t){this.checkDocumentChanges(),this._workspaceEdit.documentChanges.push(yo.create(e,t))},e.prototype.checkDocumentChanges=function(){if(!this._workspaceEdit||!this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.")}}(),function(e){function t(e){return{uri:e}}function n(e){var t=e;return ta.defined(t)&&ta.string(t.uri)}C(t,"create"),e.create=t,C(n,"is"),e.is=n}(_o||(_o={})),function(e){function t(e,t){return{uri:e,version:t}}function n(e){var t=e;return ta.defined(t)&&ta.string(t.uri)&&(null===t.version||ta.number(t.version))}C(t,"create"),e.create=t,C(n,"is"),e.is=n}(Eo||(Eo={})),function(e){function t(e,t,n,r){return{uri:e,languageId:t,version:n,text:r}}function n(e){var t=e;return ta.defined(t)&&ta.string(t.uri)&&ta.string(t.languageId)&&ta.number(t.version)&&ta.string(t.text)}C(t,"create"),e.create=t,C(n,"is"),e.is=n}(ko||(ko={})),(xo=wo||(wo={})).PlainText="plaintext",xo.Markdown="markdown",function(e){function t(t){var n=t;return n===e.PlainText||n===e.Markdown}C(t,"is"),e.is=t}(wo||(wo={})),function(e){function t(e){var t=e;return ta.objectLiteral(e)&&wo.is(t.kind)&&ta.string(t.value)}C(t,"is"),e.is=t}(To||(To={})),(So=Co||(Co={})).Text=1,So.Method=2,So.Function=3,So.Constructor=4,So.Field=5,So.Variable=6,So.Class=7,So.Interface=8,So.Module=9,So.Property=10,So.Unit=11,So.Value=12,So.Enum=13,So.Keyword=14,So.Snippet=15,So.Color=16,So.File=17,So.Reference=18,So.Folder=19,So.EnumMember=20,So.Constant=21,So.Struct=22,So.Event=23,So.Operator=24,So.TypeParameter=25,(No=Ao||(Ao={})).PlainText=1,No.Snippet=2,(Do||(Do={})).Deprecated=1,function(e){function t(e){return{label:e}}C(t,"create"),e.create=t}(Oo||(Oo={})),function(e){function t(e,t){return{items:e||[],isIncomplete:!!t}}C(t,"create"),e.create=t}(Io||(Io={})),function(e){function t(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}function n(e){var t=e;return ta.string(t)||ta.objectLiteral(t)&&ta.string(t.language)&&ta.string(t.value)}C(t,"fromPlainText"),e.fromPlainText=t,C(n,"is"),e.is=n}(Fo||(Fo={})),function(e){function t(e){var t=e;return!!t&&ta.objectLiteral(t)&&(To.is(t.contents)||Fo.is(t.contents)||ta.typedArray(t.contents,Fo.is))&&(void 0===e.range||Ki.is(e.range))}C(t,"is"),e.is=t}(Lo||(Lo={})),function(e){function t(e,t){return t?{label:e,documentation:t}:{label:e}}C(t,"create"),e.create=t}(Ro||(Ro={})),function(e){function t(e,t){for(var n=[],r=2;r=0;a--){var s=r[a],l=e.offsetAt(s.range.start),c=e.offsetAt(s.range.end);if(!(c<=o))throw new Error("Overlapping edit");n=n.substring(0,l)+s.newText+n.substring(c,n.length),o=l}return n}function i(e,t){if(e.length<=1)return e;var n=e.length/2|0,r=e.slice(0,n),o=e.slice(n);i(r,t),i(o,t);for(var a=0,s=0,l=0;a0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets},e.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var t=this.getLineOffsets(),n=0,r=t.length;if(0===r)return Yi.create(0,e);for(;ne?r=i:n=i+1}var o=n-1;return Yi.create(o,e-t[o])},e.prototype.offsetAt=function(e){var t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;var n=t[e.line],r=e.line+1{let r=!1;return n&&(r=n(e)),r&&t.every((t=>t.match&&!t.match(e)))},e}function aa(e,t){return{style:t,match:t=>t.kind===e}}function sa(e,t){return{style:t||"punctuation",match:t=>"Punctuation"===t.kind&&t.value===e}}!function(e){var t=Object.prototype.toString;function n(e){return void 0!==e}function r(e){return void 0===e}function i(e){return!0===e||!1===e}function o(e){return"[object String]"===t.call(e)}function a(e){return"[object Number]"===t.call(e)}function s(e){return"[object Function]"===t.call(e)}function l(e){return null!==e&&"object"==typeof e}function c(e,t){return Array.isArray(e)&&e.every(t)}C(n,"defined"),e.defined=n,C(r,"undefined$1"),e.undefined=r,C(i,"boolean"),e.boolean=i,C(o,"string"),e.string=o,C(a,"number"),e.number=a,C(s,"func"),e.func=s,C(l,"objectLiteral"),e.objectLiteral=l,C(c,"typedArray"),e.typedArray=c}(ta||(ta={})),C(ra,"opt"),C(ia,"list"),C(oa,"butNot"),C(aa,"t"),C(sa,"p");const la=C((e=>" "===e||"\t"===e||","===e||"\n"===e||"\r"===e||"\ufeff"===e||" "===e),"isIgnored"),ca={Name:/^[_A-Za-z][_0-9A-Za-z]*/,Punctuation:/^(?:!|\$|\(|\)|\.\.\.|:|=|&|@|\[|]|\{|\||\})/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^(?:"""(?:\\"""|[^"]|"[^"]|""[^"])*(?:""")?|"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?)/,Comment:/^#.*/},ua={Document:[ia("Definition")],Definition(e){switch(e.value){case"{":return"ShortQuery";case"query":return"Query";case"mutation":return"Mutation";case"subscription":return"Subscription";case"fragment":return c.h.FRAGMENT_DEFINITION;case"schema":return"SchemaDef";case"scalar":return"ScalarDef";case"type":return"ObjectTypeDef";case"interface":return"InterfaceDef";case"union":return"UnionDef";case"enum":return"EnumDef";case"input":return"InputDef";case"extend":return"ExtendDef";case"directive":return"DirectiveDef"}},ShortQuery:["SelectionSet"],Query:[pa("query"),ra(da("def")),ra("VariableDefinitions"),ia("Directive"),"SelectionSet"],Mutation:[pa("mutation"),ra(da("def")),ra("VariableDefinitions"),ia("Directive"),"SelectionSet"],Subscription:[pa("subscription"),ra(da("def")),ra("VariableDefinitions"),ia("Directive"),"SelectionSet"],VariableDefinitions:[sa("("),ia("VariableDefinition"),sa(")")],VariableDefinition:["Variable",sa(":"),"Type",ra("DefaultValue")],Variable:[sa("$","variable"),da("variable")],DefaultValue:[sa("="),"Value"],SelectionSet:[sa("{"),ia("Selection"),sa("}")],Selection:(e,t)=>"..."===e.value?t.match(/[\s\u00a0,]*(on\b|@|{)/,!1)?"InlineFragment":"FragmentSpread":t.match(/[\s\u00a0,]*:/,!1)?"AliasedField":"Field",AliasedField:[da("property"),sa(":"),da("qualifier"),ra("Arguments"),ia("Directive"),ra("SelectionSet")],Field:[da("property"),ra("Arguments"),ia("Directive"),ra("SelectionSet")],Arguments:[sa("("),ia("Argument"),sa(")")],Argument:[da("attribute"),sa(":"),"Value"],FragmentSpread:[sa("..."),da("def"),ia("Directive")],InlineFragment:[sa("..."),ra("TypeCondition"),ia("Directive"),"SelectionSet"],FragmentDefinition:[pa("fragment"),ra(oa(da("def"),[pa("on")])),"TypeCondition",ia("Directive"),"SelectionSet"],TypeCondition:[pa("on"),"NamedType"],Value(e){switch(e.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(e.value){case"[":return"ListValue";case"{":return"ObjectValue";case"$":return"Variable";case"&":return"NamedType"}return null;case"Name":switch(e.value){case"true":case"false":return"BooleanValue"}return"null"===e.value?"NullValue":"EnumValue"}},NumberValue:[aa("Number","number")],StringValue:[{style:"string",match:e=>"String"===e.kind,update(e,t){t.value.startsWith('"""')&&(e.inBlockstring=!t.value.slice(3).endsWith('"""'))}}],BooleanValue:[aa("Name","builtin")],NullValue:[aa("Name","keyword")],EnumValue:[da("string-2")],ListValue:[sa("["),ia("Value"),sa("]")],ObjectValue:[sa("{"),ia("ObjectField"),sa("}")],ObjectField:[da("attribute"),sa(":"),"Value"],Type:e=>"["===e.value?"ListType":"NonNullType",ListType:[sa("["),"Type",sa("]"),ra(sa("!"))],NonNullType:["NamedType",ra(sa("!"))],NamedType:[fa("atom")],Directive:[sa("@","meta"),da("meta"),ra("Arguments")],DirectiveDef:[pa("directive"),sa("@","meta"),da("meta"),ra("ArgumentsDef"),pa("on"),ia("DirectiveLocation",sa("|"))],InterfaceDef:[pa("interface"),da("atom"),ra("Implements"),ia("Directive"),sa("{"),ia("FieldDef"),sa("}")],Implements:[pa("implements"),ia("NamedType",sa("&"))],DirectiveLocation:[da("string-2")],SchemaDef:[pa("schema"),ia("Directive"),sa("{"),ia("OperationTypeDef"),sa("}")],OperationTypeDef:[da("keyword"),sa(":"),da("atom")],ScalarDef:[pa("scalar"),da("atom"),ia("Directive")],ObjectTypeDef:[pa("type"),da("atom"),ra("Implements"),ia("Directive"),sa("{"),ia("FieldDef"),sa("}")],FieldDef:[da("property"),ra("ArgumentsDef"),sa(":"),"Type",ia("Directive")],ArgumentsDef:[sa("("),ia("InputValueDef"),sa(")")],InputValueDef:[da("attribute"),sa(":"),"Type",ra("DefaultValue"),ia("Directive")],UnionDef:[pa("union"),da("atom"),ia("Directive"),sa("="),ia("UnionMember",sa("|"))],UnionMember:["NamedType"],EnumDef:[pa("enum"),da("atom"),ia("Directive"),sa("{"),ia("EnumValueDef"),sa("}")],EnumValueDef:[da("string-2"),ia("Directive")],InputDef:[pa("input"),da("atom"),ia("Directive"),sa("{"),ia("InputValueDef"),sa("}")],ExtendDef:[pa("extend"),"ObjectTypeDef"]};function pa(e){return{style:"keyword",match:t=>"Name"===t.kind&&t.value===e}}function da(e){return{style:e,match:e=>"Name"===e.kind,update(e,t){e.name=t.value}}}function fa(e){return{style:e,match:e=>"Name"===e.kind,update(e,t){var n;(null===(n=e.prevState)||void 0===n?void 0:n.prevState)&&(e.name=t.value,e.prevState.prevState.type=t.value)}}}C(pa,"word"),C(da,"name"),C(fa,"type");const ha=Object.assign(Object.assign({},c.h),{ALIASED_FIELD:"AliasedField",ARGUMENTS:"Arguments",SHORT_QUERY:"ShortQuery",QUERY:"Query",MUTATION:"Mutation",SUBSCRIPTION:"Subscription",TYPE_CONDITION:"TypeCondition",INVALID:"Invalid",COMMENT:"Comment",SCHEMA_DEF:"SchemaDef",SCALAR_DEF:"ScalarDef",OBJECT_TYPE_DEF:"ObjectTypeDef",OBJECT_VALUE:"ObjectValue",LIST_VALUE:"ListValue",INTERFACE_DEF:"InterfaceDef",UNION_DEF:"UnionDef",ENUM_DEF:"EnumDef",ENUM_VALUE:"EnumValue",FIELD_DEF:"FieldDef",INPUT_DEF:"InputDef",INPUT_VALUE_DEF:"InputValueDef",ARGUMENTS_DEF:"ArgumentsDef",EXTEND_DEF:"ExtendDef",DIRECTIVE_DEF:"DirectiveDef",IMPLEMENTS:"Implements",VARIABLE_DEFINITIONS:"VariableDefinitions",TYPE:"Type"});var ma={exports:{}};function ga(e,t){if(null!=e)return e;var n=new Error(void 0!==t?t:"Got unexpected "+e);throw n.framesToPop=1,n}C(ga,"nullthrows"),ma.exports=ga,ma.exports.default=ga,Object.defineProperty(ma.exports,"__esModule",{value:!0});var va=N(ma.exports);const ya=C(((e,t)=>{if(!t)return[];const n=new Map,r=new Set;(0,s.Vn)(e,{FragmentDefinition(e){n.set(e.name.value,!0)},FragmentSpread(e){r.has(e.name.value)||r.add(e.name.value)}});const i=new Set;r.forEach((e=>{!n.has(e)&&t.has(e)&&i.add(va(t.get(e)))}));const o=[];return i.forEach((e=>{(0,s.Vn)(e,{FragmentSpread(e){!r.has(e.name.value)&&t.get(e.name.value)&&(i.add(va(t.get(e.name.value))),r.add(e.name.value))}}),n.has(e.name.value)||o.push(e)})),o}),"getFragmentDependenciesForAST");function ba(e,t){const n=Object.create(null);return t.definitions.forEach((t=>{if("OperationDefinition"===t.kind){const r=t.variableDefinitions;r&&r.forEach((({variable:t,type:r})=>{const i=(0,u._)(e,r);i?n[t.name.value]=i:r.kind===c.h.NAMED_TYPE&&"Float"===r.name.value&&(n[t.name.value]=p.av)}))}})),n}function _a(e,t){const n=t?ba(t,e):void 0,r=[];return(0,s.Vn)(e,{OperationDefinition(e){r.push(e)}}),{variableToType:n,operations:r}}function Ea(e,t){if(t)try{const n=(0,o.Qc)(t);return Object.assign(Object.assign({},_a(n,e)),{documentAST:n})}catch(e){return}}var ka;C(ba,"collectVariables"),C(_a,"getOperationASTFacts"),C(Ea,"getOperationFacts"),globalThis&&globalThis.__awaiter,function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25}(ka||(ka={}));var wa=C((function(e){return"object"==typeof e?null===e:"function"!=typeof e}),"isPrimitive"),xa=C((function(e){return null!=e&&"object"==typeof e&&!1===Array.isArray(e)}),"isObject");function Ta(e){return!0===xa(e)&&"[object Object]"===Object.prototype.toString.call(e)}C(Ta,"isObjectObject");var Ca=C((function(e){var t,n;return!1!==Ta(e)&&"function"==typeof(t=e.constructor)&&!1!==Ta(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf")}),"isPlainObject");const{deleteProperty:Sa}=Reflect,Aa=wa,Na=Ca,Da=C((e=>"object"==typeof e&&null!==e||"function"==typeof e),"isObject"),Oa=C((e=>"__proto__"===e||"constructor"===e||"prototype"===e),"isUnsafeKey"),Ia=C((e=>{if(!Aa(e))throw new TypeError("Object keys must be strings or symbols");if(Oa(e))throw new Error(`Cannot set unsafe key: "${e}"`)}),"validateKey"),Fa=C((e=>Array.isArray(e)?e.flat().map(String).join(","):e),"toStringKey"),La=C(((e,t)=>{if("string"!=typeof e||!t)return e;let n=e+";";return void 0!==t.arrays&&(n+=`arrays=${t.arrays};`),void 0!==t.separator&&(n+=`separator=${t.separator};`),void 0!==t.split&&(n+=`split=${t.split};`),void 0!==t.merge&&(n+=`merge=${t.merge};`),void 0!==t.preservePaths&&(n+=`preservePaths=${t.preservePaths};`),n}),"createMemoKey"),Ra=C(((e,t,n)=>{const r=Fa(t?La(e,t):e);Ia(r);const i=ja.cache.get(r)||n();return ja.cache.set(r,i),i}),"memoize"),Ma=C(((e,t={})=>{const n=t.separator||".",r="/"!==n&&t.preservePaths;if("string"==typeof e&&!1!==r&&/\//.test(e))return[e];const i=[];let o="";const a=C((e=>{let t;""!==e.trim()&&Number.isInteger(t=Number(e))?i.push(t):i.push(e)}),"push");for(let t=0;tt&&"function"==typeof t.split?t.split(e):"symbol"==typeof e?[e]:Array.isArray(e)?e:Ra(e,t,(()=>Ma(e,t)))),"split"),qa=C(((e,t,n,r)=>{if(Ia(t),void 0===n)Sa(e,t);else if(r&&r.merge){const i="function"===r.merge?r.merge:Object.assign;i&&Na(e[t])&&Na(n)?e[t]=i(e[t],n):e[t]=n}else e[t]=n;return e}),"assignProp"),ja=C(((e,t,n,r)=>{if(!t||!Da(e))return e;const i=Pa(t,r);let o=e;for(let e=0;e{ja.cache=new Map};var Va=ja,za=Object.defineProperty,Ua=C(((e,t)=>za(e,"name",{value:t,configurable:!0})),"__name$e");const Ba=Bi("HistoryContext");function Za(e){var t;const n=Wi(),r=(0,m.useRef)(new Vi(n||new Pi(null),e.maxHistoryLength||Ha)),[i,o]=(0,m.useState)((null==(t=r.current)?void 0:t.queries)||[]),[a,s]=(0,m.useState)("true"===(null==n?void 0:n.get(Qa))||!1),l=(0,m.useCallback)((({query:e,variables:t,headers:n,operationName:i})=>{var a;null==(a=r.current)||a.updateHistory(e,t,n,i),o(r.current.queries)}),[]),c=(0,m.useCallback)((({query:e,variables:t,headers:n,operationName:i,label:a,favorite:s})=>{r.current.editLabel(e,t,n,i,a,s),o(r.current.queries)}),[]),{onToggle:u}=e,p=(0,m.useCallback)((()=>{null==u||u(!1),null==n||n.set(Qa,JSON.stringify(!1)),s(!1)}),[u,n]),d=(0,m.useCallback)((()=>{null==u||u(!0),null==n||n.set(Qa,JSON.stringify(!0)),s(!0)}),[u,n]),f=(0,m.useCallback)((()=>{s((e=>{const t=!e;return null==u||u(t),null==n||n.set(Qa,JSON.stringify(t)),t}))}),[u,n]),h=(0,m.useCallback)((({query:e,variables:t,headers:n,operationName:i,label:a,favorite:s})=>{r.current.toggleFavorite(e,t,n,i,a,s),o(r.current.queries)}),[]),g=(0,m.useMemo)((()=>({addToHistory:l,editLabel:c,hide:p,isVisible:a,items:i,show:d,toggle:f,toggleFavorite:h})),[l,c,p,a,i,d,f,h]);return si(Ba.Provider,{value:g,children:e.children})}C(Za,"HistoryContextProvider"),Ua(Za,"HistoryContextProvider");const Ga=Zi(Ba),Ha=20,Qa="historyPaneOpen";var $a=Object.defineProperty,Wa=C(((e,t)=>$a(e,"name",{value:t,configurable:!0})),"__name$d");function Ya(){const{headerEditor:e,queryEditor:t,variableEditor:n}=Cl({nonNull:!0,caller:Ya});return r=>{var i,o,a;null==t||t.setValue(null!=(i=r.query)?i:""),null==n||n.setValue(null!=(o=r.variables)?o:""),null==e||e.setValue(null!=(a=r.headers)?a:"")}}C(Ya,"useSelectHistoryItem"),Wa(Ya,"useSelectHistoryItem");var Ka=Object.defineProperty,Ja=C(((e,t)=>Ka(e,"name",{value:t,configurable:!0})),"__name$c");const Xa=Bi("ExecutionContext");function es(e){const{headerEditor:t,queryEditor:n,responseEditor:r,variableEditor:i,updateActiveTabValues:a}=Cl({nonNull:!0,caller:es}),c=Ga(),u=Rs(),[p,d]=(0,m.useState)(!1),[f,h]=(0,m.useState)(null),g=(0,m.useRef)(0),v=(0,m.useCallback)((()=>{null==f||f.unsubscribe(),d(!1),h(null)}),[f]),{externalFragments:y,fetcher:b,onEditOperationName:_,shouldPersistHeaders:E}=e,k=(0,m.useCallback)((async e=>{var p;if(!n||!r)return;if(f)return void v();const m=Ja((e=>{r.setValue(e),a({response:e})}),"setResponse");g.current+=1;const k=g.current;let w=u()||n.getValue();const T=null==i?void 0:i.getValue();let C;try{C=ns({json:T,errorMessageParse:"Variables are invalid JSON",errorMessageType:"Variables are not a JSON object."})}catch(e){return void m(e instanceof Error?e.message:`${e}`)}const A=null==t?void 0:t.getValue();let N;try{N=ns({json:A,errorMessageParse:"Headers are invalid JSON",errorMessageType:"Headers are not a JSON object."})}catch(e){return void m(e instanceof Error?e.message:`${e}`)}const D=e||(()=>{var e;if(!n.operations||!n.hasFocus())return;const t=n.indexFromPos(n.getCursor());for(const r of n.operations)if(r.loc&&r.loc.start<=t&&r.loc.end>=t)return null==(e=r.name)?void 0:e.value})();let O=n.operationName;if(D&&D!==O&&(O=D,n.operationName=D,a({operationName:D}),null==_||_(D)),y){const e=new Map;Array.isArray(y)?y.forEach((t=>{e.set(t.name.value,t)})):(0,s.Vn)((0,o.Qc)(y,{}),{FragmentDefinition(t){e.set(t.name.value,t)}});const t=n.documentAST?ya(n.documentAST,e):[];t.length>0&&(w+="\n"+t.map((e=>(0,l.S)(e))).join("\n"))}m(""),d(!0),null==c||c.addToHistory({query:w,variables:T,headers:A,operationName:null!=O?O:void 0});try{let e={data:{}};const t=Ja((t=>{if(k!==g.current)return;let n=!!Array.isArray(t)&&t;if(!n&&"object"==typeof t&&null!==t&&"hasNext"in t&&(n=[t]),n){const t={data:e.data},r=[...(null==e?void 0:e.errors)||[],...n.map((e=>e.errors)).flat().filter(Boolean)];r.length&&(t.errors=r);for(const r of n){const n=r,{path:i,data:o,errors:a}=n,s=S(n,["path","data","errors"]);if(i){if(!o)throw new Error(`Expected part to contain a data property, but got ${r}`);Va(t.data,i,o,{merge:!0})}else o&&(t.data=r.data);e=x(x({},t),s)}d(!1),m(Ti(e))}else{const e=Ti(t);d(!1),m(e)}}),"handleResponse"),r=b({query:w,variables:C,operationName:n.operationName},{headers:null!=N?N:void 0,shouldPersistHeaders:E,documentAST:null!=(p=n.documentAST)?p:void 0}),i=await Promise.resolve(r);gi(i)?h(i.subscribe({next(e){t(e)},error(e){d(!1),e&&m(xi(e)),h(null)},complete(){d(!1),h(null)}})):vi(i)?((async()=>{try{for await(const e of i)t(e);d(!1),h(null)}catch(e){d(!1),m(xi(e instanceof Error?e:new Error(`${e}`))),h(null)}})(),h({unsubscribe:()=>{var e,t;return null==(t=(e=i[Symbol.asyncIterator]()).return)?void 0:t.call(e)}})):t(i)}catch(e){d(!1),m(xi(e instanceof Error?e:new Error(`${e}`))),h(null)}}),[u,y,b,t,c,_,n,r,E,v,f,a,i]),w=(0,m.useMemo)((()=>({isFetching:p,run:k,stop:v,subscription:f})),[p,k,v,f]);return si(Xa.Provider,{value:w,children:e.children})}C(es,"ExecutionContextProvider"),Ja(es,"ExecutionContextProvider");const ts=Zi(Xa);function ns({json:e,errorMessageParse:t,errorMessageType:n}){let r;try{r=e&&""!==e.trim()?JSON.parse(e):void 0}catch(e){throw new Error(`${t}: ${e instanceof Error?e.message:e}.`)}const i="object"==typeof r&&null!==r&&!Array.isArray(r);if(void 0!==r&&!i)throw new Error(n);return r}C(ns,"tryParseJsonObject"),Ja(ns,"tryParseJsonObject");var rs=C((function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;rcs(e,"name",{value:t,configurable:!0})),"__name$b");const ps=Bi("SchemaContext");function ds(e){const{initialHeaders:t,headerEditor:n}=Cl({nonNull:!0,caller:ds}),[r,i]=(0,m.useState)(e.schema||null),[o,a]=(0,m.useState)(!1),[s,l]=(0,m.useState)(null);(0,m.useEffect)((()=>{i(e.schema)}),[e.schema]);const c=(0,m.useRef)(t);(0,m.useEffect)((()=>{n&&(c.current=n.getValue())}));const{introspectionQuery:u,introspectionQueryName:p,introspectionQuerySansSubscriptions:h}=hs({inputValueDeprecation:e.inputValueDeprecation,introspectionQueryName:e.introspectionQueryName,schemaDescription:e.schemaDescription}),{fetcher:g}=e;(0,m.useEffect)((()=>{if(void 0!==e.schema)return;let t=!0;const n=ms(c.current);if(!n.isValidJSON)return void l("Introspection failed as headers are invalid.");const r=n.headers?{headers:n.headers}:{},o=bi(g({query:u,operationName:p},r));if(hi(o))return a(!0),o.then((e=>{if("object"==typeof e&&null!==e&&"data"in e)return e;const t=bi(g({query:h,operationName:p},r));if(!hi(t))throw new Error("Fetcher did not return a Promise for introspection.");return t})).then((e=>{if(t){if((null==e?void 0:e.data)&&"__schema"in e.data)try{const t=(0,d.Z)(e.data);i((e=>void 0===e?t:e))}catch(e){l(xi(e))}else{const t="string"==typeof e?e:Ti(e);l(t)}a(!1)}})).catch((e=>{t&&(l(xi(e)),a(!1))})),()=>{t=!1};l("Fetcher did not return a Promise for introspection.")}),[g,p,u,h,e.schema]);const v=(0,m.useMemo)((()=>{if(!r||e.dangerouslyAssumeSchemaIsValid)return null;const t=(0,f.F)(r);return t.length>0?t:null}),[r,e.dangerouslyAssumeSchemaIsValid]),y=(0,m.useMemo)((()=>({fetchError:s,isFetching:o,schema:r,setFetchError:l,setSchema:i,validationErrors:v})),[s,o,r,v]);return si(ps.Provider,{value:y,children:e.children})}C(ds,"SchemaContextProvider"),us(ds,"SchemaContextProvider");const fs=Zi(ps);function hs({inputValueDeprecation:e,introspectionQueryName:t,schemaDescription:n}){return(0,m.useMemo)((()=>{const r=t||"IntrospectionQuery";let i=(0,h.K)({inputValueDeprecation:e,schemaDescription:n});t&&(i=i.replace("query IntrospectionQuery",`query ${r}`));const o=i.replace("subscriptionType { name }","");return{introspectionQueryName:r,introspectionQuery:i,introspectionQuerySansSubscriptions:o}}),[e,t,n])}function ms(e){let t=null,n=!0;try{e&&(t=JSON.parse(e))}catch(e){n=!1}return{headers:t,isValidJSON:n}}C(hs,"useIntrospectionQuery"),us(hs,"useIntrospectionQuery"),C(ms,"parseHeaderString"),us(ms,"parseHeaderString");var gs=Object.defineProperty,vs=C(((e,t)=>gs(e,"name",{value:t,configurable:!0})),"__name$a");const ys={name:"Schema",title:"Documentation Explorer"},bs=Bi("ExplorerContext");function _s(e){var t,n;const{isFetching:r}=fs({nonNull:!0,caller:_s}),i=Wi(),[o,a]=(0,m.useState)(null!=(n=null!=(t=e.isVisible)?t:"true"===(null==i?void 0:i.get(ks)))&&n),[s,l]=(0,m.useState)([ys]),{onToggleVisibility:c}=e,u=(0,m.useRef)(!0);(0,m.useEffect)((()=>{u.current?u.current=!1:void 0!==e.isVisible&&a(e.isVisible)}),[e.isVisible]);const p=(0,m.useCallback)((()=>{null==c||c(!1),null==i||i.set(ks,"false"),a(!1)}),[c,i]),d=(0,m.useCallback)((e=>{l((t=>t[t.length-1].def===e.def?t:[...t,e]))}),[]),f=(0,m.useCallback)((()=>{l((e=>e.length>1?e.slice(0,-1):e))}),[]),h=(0,m.useCallback)((()=>{l((e=>1===e.length?e:[ys]))}),[]),g=(0,m.useCallback)((()=>{null==c||c(!0),null==i||i.set(ks,"true"),a(!0)}),[c,i]),v=(0,m.useCallback)((e=>{l((t=>{const n=t[t.length-1];return[...t.slice(0,-1),T(x({},n),{search:e})]}))}),[]);(0,m.useEffect)((()=>{r&&h()}),[r,h]);const y=(0,m.useMemo)((()=>({explorerNavStack:s,hide:p,isVisible:o,push:d,pop:f,reset:h,show:g,showSearch:v})),[p,o,s,d,f,h,g,v]);return si(bs.Provider,{value:y,children:e.children})}C(_s,"ExplorerContextProvider"),vs(_s,"ExplorerContextProvider");const Es=Zi(bs),ks="docExplorerOpen";var ws=Object.defineProperty,xs=C(((e,t)=>ws(e,"name",{value:t,configurable:!0})),"__name$9");function Ts(e,t){let n;return function(...r){n&&window.clearTimeout(n),n=window.setTimeout((()=>{n=null,t(...r)}),e)}}C(Ts,"debounce"),xs(Ts,"debounce");var Cs=Object.defineProperty,Ss=C(((e,t)=>Cs(e,"name",{value:t,configurable:!0})),"__name$8");function As(e,t){(0,m.useEffect)((()=>{e&&void 0!==t&&t!==e.getValue()&&e.setValue(t)}),[e,t])}function Ns(e,t,n,r,i){const{updateActiveTabValues:o}=Cl({nonNull:!0,caller:i}),a=Wi();(0,m.useEffect)((()=>{if(!e)return;const i=Ts(500,(e=>{a&&null!==n&&a.set(n,e)})),s=Ts(100,(e=>{o({[r]:e})})),l=Ss((e=>{const n=e.getValue();i(n),s(n),null==t||t(n)}),"handleChange");return e.on("change",l),()=>e.off("change",l)}),[t,e,a,n,r,o])}function Ds(e){const{schema:t}=fs({nonNull:!0,caller:Ds}),n=Es();(0,m.useEffect)((()=>{if(!e)return;const r=Ss(((e,r)=>{Wr(0,r,t,n)}),"handleCompletion");return e.on("hasCompletion",r),()=>e.off("hasCompletion",r)}),[e,n,t])}function Os(e,t,n){(0,m.useEffect)((()=>{if(e){for(const n of t)e.removeKeyMap(n);if(n){const r={};for(const e of t)r[e]=()=>n();e.addKeyMap(r)}}}),[e,t,n])}function Is({caller:e,onCopyQuery:t}={}){const{queryEditor:n}=Cl({nonNull:!0,caller:e||Is});return(0,m.useCallback)((()=>{if(!n)return;const e=n.getValue();ls(e),null==t||t(e)}),[n,t])}function Fs({caller:e}={}){const{queryEditor:t}=Cl({nonNull:!0,caller:e||Fs}),{schema:n}=fs({nonNull:!0,caller:Fs});return(0,m.useCallback)((()=>{const e=null==t?void 0:t.documentAST,r=null==t?void 0:t.getValue();e&&r&&t.setValue((0,l.S)(Li(e,n)))}),[t,n])}function Ls({caller:e}={}){const{queryEditor:t,headerEditor:n,variableEditor:r}=Cl({nonNull:!0,caller:e||Ls});return(0,m.useCallback)((()=>{if(r){const e=r.getValue();try{const t=JSON.stringify(JSON.parse(e),null,2);t!==e&&r.setValue(t)}catch{}}if(n){const e=n.getValue();try{const t=JSON.stringify(JSON.parse(e),null,2);t!==e&&n.setValue(t)}catch{}}if(t){const e=t.getValue(),n=(0,l.S)((0,o.Qc)(e));n!==e&&t.setValue(n)}}),[t,r,n])}function Rs({getDefaultFieldNames:e,caller:t}={}){const{schema:n}=fs({nonNull:!0,caller:t||Rs}),{queryEditor:r}=Cl({nonNull:!0,caller:t||Rs});return(0,m.useCallback)((()=>{if(!r)return;const t=r.getValue(),{insertions:i,result:o}=Ci(n,t,e);return i&&i.length>0&&r.operation((()=>{const e=r.getCursor(),t=r.indexFromPos(e);r.setValue(o||"");let n=0;const a=i.map((({index:e,string:t})=>r.markText(r.posFromIndex(e+n),r.posFromIndex(e+(n+=t.length)),{className:"autoInsertedLeaf",clearOnEnter:!0,title:"Automatically added leaf fields"})));setTimeout((()=>a.forEach((e=>e.clear()))),7e3);let s=t;i.forEach((({index:e,string:n})=>{eMs(e,"name",{value:t,configurable:!0})),"__name$7");function qs({editorTheme:e="graphiql",keyMap:t,onEdit:r,readOnly:i=!1,shouldPersistHeaders:o=!1}={}){const{initialHeaders:a,headerEditor:s,setHeaderEditor:l}=Cl({nonNull:!0,caller:qs}),c=ts(),u=Fs({caller:qs}),p=Ls({caller:qs}),d=(0,m.useRef)(null);return(0,m.useEffect)((()=>{let r=!0;return Hr([Promise.all([n.e(480),n.e(863)]).then(n.bind(n,9863)).then((function(e){return e.j}))]).then((n=>{if(!r)return;const o=d.current;if(!o)return;const s=n(o,{value:a,lineNumbers:!0,tabSize:2,mode:{name:"javascript",json:!0},theme:e,keyMap:null!=t?t:"sublime",autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:!!i&&"nocursor",foldGutter:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:Zr});s.addKeyMap({"Cmd-Space"(){s.showHint({completeSingle:!1,container:o})},"Ctrl-Space"(){s.showHint({completeSingle:!1,container:o})},"Alt-Space"(){s.showHint({completeSingle:!1,container:o})},"Shift-Space"(){s.showHint({completeSingle:!1,container:o})}}),s.on("keyup",((e,t)=>{const n=t.keyCode;(n>=65&&n<=90||!t.shiftKey&&n>=48&&n<=57||t.shiftKey&&189===n||t.shiftKey&&222===n)&&e.execCommand("autocomplete")})),l(s)})),()=>{r=!1}}),[e,a,i,l]),Ns(s,r,o?js:null,"headers",qs),Ds(s),Os(s,["Cmd-Enter","Ctrl-Enter"],null==c?void 0:c.run),Os(s,["Shift-Ctrl-P"],p),Os(s,["Shift-Ctrl-M"],u),d}C(qs,"useHeaderEditor"),Ps(qs,"useHeaderEditor");const js="headers";var Vs=Object.defineProperty,zs=C(((e,t)=>Vs(e,"name",{value:t,configurable:!0})),"__name$6");const Us=Array.from({length:11},((e,t)=>String.fromCharCode(8192+t))).concat(["\u2028","\u2029"," "," "]),Bs=new RegExp("["+Us.join("")+"]","g");function Zs(e){return e.replace(Bs," ")}C(Zs,"normalizeWhitespace"),zs(Zs,"normalizeWhitespace");var Gs=Object.defineProperty,Hs=C(((e,t)=>Gs(e,"name",{value:t,configurable:!0})),"__name$5");function Qs({editorTheme:e="graphiql",keyMap:t,externalFragments:r,onClickReference:i,onCopyQuery:o,onEdit:a,onEditOperationName:s,readOnly:l=!1,validationRules:c}={}){const{schema:u}=fs({nonNull:!0,caller:Qs}),{initialQuery:p,queryEditor:d,setQueryEditor:f,variableEditor:h,updateActiveTabValues:g}=Cl({nonNull:!0,caller:Qs}),v=ts(),y=Wi(),b=Es(),_=Is({caller:Qs,onCopyQuery:o}),E=Fs({caller:Qs}),k=Ls({caller:Qs}),w=(0,m.useRef)(null),S=(0,m.useRef)(),A=(0,m.useRef)((()=>{}));return(0,m.useEffect)((()=>{A.current=e=>{b&&(b.show(),e&&"Type"===e.kind?b.push({name:e.type.name,def:e.type}):"Field"===e.kind||"Argument"===e.kind&&e.field?b.push({name:e.field.name,def:e.field}):"EnumValue"===e.kind&&e.type&&b.push({name:e.type.name,def:e.type}),null==i||i(e))}}),[b,i]),(0,m.useEffect)((()=>{let r=!0;return Hr([Promise.all([n.e(480),n.e(92)]).then(n.bind(n,5092)).then((function(e){return e.c})),Promise.all([n.e(480),n.e(573)]).then(n.bind(n,2573)).then((function(e){return e.s})),Promise.all([n.e(480),n.e(584),n.e(79),n.e(441)]).then(n.bind(n,1441)),Promise.all([n.e(480),n.e(662)]).then(n.bind(n,7662)),Promise.all([n.e(480),n.e(584),n.e(471)]).then(n.bind(n,7471)),Promise.all([n.e(480),n.e(584),n.e(724)]).then(n.bind(n,724)),Promise.all([n.e(480),n.e(98)]).then(n.bind(n,2098))]).then((n=>{if(!r)return;S.current=n;const i=w.current;if(!i)return;const o=n(i,{value:p,lineNumbers:!0,tabSize:2,foldGutter:!0,mode:"graphql",theme:e,keyMap:null!=t?t:"sublime",autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:!!l&&"nocursor",lint:{schema:void 0,validationRules:null,externalFragments:void 0},hintOptions:{schema:void 0,closeOnUnfocus:!1,completeSingle:!1,container:i,externalFragments:void 0},info:{schema:void 0,renderDescription:e=>Vr.render(e),onClick:e=>{A.current(e)}},jump:{schema:void 0,onClick:e=>{A.current(e)}},gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:T(x({},Zr),{"Cmd-S"(){},"Ctrl-S"(){}})});o.addKeyMap({"Cmd-Space"(){o.showHint({completeSingle:!0,container:i})},"Ctrl-Space"(){o.showHint({completeSingle:!0,container:i})},"Alt-Space"(){o.showHint({completeSingle:!0,container:i})},"Shift-Space"(){o.showHint({completeSingle:!0,container:i})},"Shift-Alt-Space"(){o.showHint({completeSingle:!0,container:i})}}),o.on("keyup",((e,t)=>{Ks.test(t.key)&&e.execCommand("autocomplete")})),o.on("beforeChange",((e,t)=>{var n;if("paste"===t.origin){const e=t.text.map(Zs);null==(n=t.update)||n.call(t,t.from,t.to,e)}})),o.documentAST=null,o.operationName=null,o.operations=null,o.variableToType=null,f(o)})),()=>{r=!1}}),[e,p,l,f]),(0,m.useEffect)((()=>{if(!d)return;function e(e){var t,n,r,i,o,a;const s=Ea(u,e.getValue()),l=Ri(null!=(t=e.operations)?t:void 0,null!=(n=e.operationName)?n:void 0,null==s?void 0:s.operations);return e.documentAST=null!=(r=null==s?void 0:s.documentAST)?r:null,e.operationName=null!=l?l:null,e.operations=null!=(i=null==s?void 0:s.operations)?i:null,e.variableToType=null!=(o=null==s?void 0:s.variableToType)?o:null,h&&(h.state.lint.linterOptions.variableToType=null==s?void 0:s.variableToType,h.options.lint.variableToType=null==s?void 0:s.variableToType,h.options.hintOptions.variableToType=null==s?void 0:s.variableToType,null==(a=S.current)||a.signal(h,"change",h)),s?T(x({},s),{operationName:l}):null}C(e,"getAndUpdateOperationFacts"),Hs(e,"getAndUpdateOperationFacts");const t=Ts(100,(t=>{var n;const r=t.getValue();null==y||y.set(Js,r);const i=e(t);void 0!==(null==i?void 0:i.operationName)&&(null==y||y.set(Xs,i.operationName)),null==a||a(r,null==i?void 0:i.documentAST),s&&void 0!==(null==i?void 0:i.operationName)&&t.operationName!==i.operationName&&s(i.operationName),g({query:r,operationName:null!=(n=null==i?void 0:i.operationName)?n:null})}));return e(d),d.on("change",t),()=>d.off("change",t)}),[a,s,d,u,y,h,g]),$s(d,null!=u?u:null,S),Ws(d,null!=c?c:null,S),Ys(d,r,S),Ds(d),Os(d,["Cmd-Enter","Ctrl-Enter"],null==v?void 0:v.run),Os(d,["Shift-Ctrl-C"],_),Os(d,["Shift-Ctrl-P","Shift-Ctrl-F"],k),Os(d,["Shift-Ctrl-M"],E),w}function $s(e,t,n){(0,m.useEffect)((()=>{if(!e)return;const r=e.options.lint.schema!==t;e.state.lint.linterOptions.schema=t,e.options.lint.schema=t,e.options.hintOptions.schema=t,e.options.info.schema=t,e.options.jump.schema=t,r&&n.current&&n.current.signal(e,"change",e)}),[e,t,n])}function Ws(e,t,n){(0,m.useEffect)((()=>{if(!e)return;const r=e.options.lint.validationRules!==t;e.state.lint.linterOptions.validationRules=t,e.options.lint.validationRules=t,r&&n.current&&n.current.signal(e,"change",e)}),[e,t,n])}function Ys(e,t,n){(0,m.useEffect)((()=>{if(!e)return;const r=e.options.lint.externalFragments!==t;e.state.lint.linterOptions.externalFragments=t,e.options.lint.externalFragments=t,e.options.hintOptions.externalFragments=t,r&&n.current&&n.current.signal(e,"change",e)}),[e,t,n])}C(Qs,"useQueryEditor"),Hs(Qs,"useQueryEditor"),C($s,"useSynchronizeSchema"),Hs($s,"useSynchronizeSchema"),C(Ws,"useSynchronizeValidationRules"),Hs(Ws,"useSynchronizeValidationRules"),C(Ys,"useSynchronizeExternalFragments"),Hs(Ys,"useSynchronizeExternalFragments");const Ks=/^[a-zA-Z0-9_@(]$/,Js="query",Xs="operationName";var el=Object.defineProperty,tl=C(((e,t)=>el(e,"name",{value:t,configurable:!0})),"__name$4");function nl({headers:e,query:t,variables:n,storage:r}){const i=null==r?void 0:r.get(vl);try{if(!i)throw new Error("Storage for tabs is empty");const r=JSON.parse(i);if(rl(r)){const i=hl({query:t,variables:n,headers:e});let o=-1;for(let e=0;e=0)r.activeTabIndex=o;else{const o=t?ml(t):null;r.tabs.push({id:fl(),hash:i,title:o||gl,query:t,variables:n,headers:e,operationName:o,response:null})}return r}throw new Error("Storage for tabs is invalid")}catch(e){return null==r||r.set(vl,""),{activeTabIndex:0,tabs:[pl()]}}}function rl(e){return e&&"object"==typeof e&&!Array.isArray(e)&&ol(e,"activeTabIndex")&&"tabs"in e&&Array.isArray(e.tabs)&&e.tabs.every(il)}function il(e){return e&&"object"==typeof e&&!Array.isArray(e)&&al(e,"id")&&al(e,"title")&&sl(e,"query")&&sl(e,"variables")&&sl(e,"headers")&&sl(e,"operationName")&&sl(e,"response")}function ol(e,t){return t in e&&"number"==typeof e[t]}function al(e,t){return t in e&&"string"==typeof e[t]}function sl(e,t){return t in e&&("string"==typeof e[t]||null===e[t])}function ll({queryEditor:e,variableEditor:t,headerEditor:n,responseEditor:r}){return(0,m.useCallback)((i=>{var o,a,s,l,c;const u=null!=(o=null==e?void 0:e.getValue())?o:null,p=null!=(a=null==t?void 0:t.getValue())?a:null,d=null!=(s=null==n?void 0:n.getValue())?s:null,f=null!=(l=null==e?void 0:e.operationName)?l:null;return dl(i,{query:u,variables:p,headers:d,response:null!=(c=null==r?void 0:r.getValue())?c:null,operationName:f})}),[e,t,n,r])}function cl({storage:e,shouldPersistHeaders:t}){const n=(0,m.useCallback)(Ts(500,(t=>{null==e||e.set(vl,t)})),[e]);return(0,m.useCallback)((e=>{n(JSON.stringify(e,((e,n)=>"hash"===e||"response"===e||!t&&"headers"===e?null:n)))}),[t,n])}function ul({queryEditor:e,variableEditor:t,headerEditor:n,responseEditor:r}){return(0,m.useCallback)((({query:i,variables:o,headers:a,response:s})=>{null==e||e.setValue(null!=i?i:""),null==t||t.setValue(null!=o?o:""),null==n||n.setValue(null!=a?a:""),null==r||r.setValue(null!=s?s:"")}),[n,e,r,t])}function pl(){return{id:fl(),hash:hl({query:null,variables:null,headers:null}),title:gl,query:null,variables:null,headers:null,operationName:null,response:null}}function dl(e,t){return T(x({},e),{tabs:e.tabs.map(((n,r)=>{if(r!==e.activeTabIndex)return n;const i=x(x({},n),t);return T(x({},i),{hash:hl(i),title:i.operationName||(i.query?ml(i.query):void 0)||gl})}))})}function fl(){const e=tl((()=>Math.floor(65536*(1+Math.random())).toString(16).substring(1)),"s4");return`${e()}${e()}-${e()}-${e()}-${e()}-${e()}${e()}${e()}`}function hl(e){var t,n,r;return[null!=(t=e.query)?t:"",null!=(n=e.variables)?n:"",null!=(r=e.headers)?r:""].join("|")}function ml(e){var t;const n=/^(?!.*#).*(query|subscription|mutation)\s+([a-zA-Z0-9_]+)/.exec(e);return null!=(t=null==n?void 0:n[2])?t:null}C(nl,"getDefaultTabState"),tl(nl,"getDefaultTabState"),C(rl,"isTabsState"),tl(rl,"isTabsState"),C(il,"isTabState"),tl(il,"isTabState"),C(ol,"hasNumberKey"),tl(ol,"hasNumberKey"),C(al,"hasStringKey"),tl(al,"hasStringKey"),C(sl,"hasStringOrNullKey"),tl(sl,"hasStringOrNullKey"),C(ll,"useSynchronizeActiveTabValues"),tl(ll,"useSynchronizeActiveTabValues"),C(cl,"useStoreTabs"),tl(cl,"useStoreTabs"),C(ul,"useSetEditorValues"),tl(ul,"useSetEditorValues"),C(pl,"emptyTab"),tl(pl,"emptyTab"),C(dl,"setPropertiesInActiveTab"),tl(dl,"setPropertiesInActiveTab"),C(fl,"guid"),tl(fl,"guid"),C(hl,"hashFromTabContents"),tl(hl,"hashFromTabContents"),C(ml,"fuzzyExtractOperationName"),tl(ml,"fuzzyExtractOperationName");const gl="",vl="tabState";var yl=Object.defineProperty,bl=C(((e,t)=>yl(e,"name",{value:t,configurable:!0})),"__name$3");function _l({editorTheme:e="graphiql",keyMap:t,onEdit:r,readOnly:i=!1}={}){const{initialVariables:o,variableEditor:a,setVariableEditor:s}=Cl({nonNull:!0,caller:_l}),l=ts(),c=Fs({caller:_l}),u=Ls({caller:_l}),p=(0,m.useRef)(null),d=(0,m.useRef)();return(0,m.useEffect)((()=>{let r=!0;return Hr([Promise.all([n.e(480),n.e(995)]).then(n.bind(n,5995)),Promise.all([n.e(480),n.e(588)]).then(n.bind(n,7588)),Promise.all([n.e(480),n.e(178)]).then(n.bind(n,4178))]).then((n=>{if(!r)return;d.current=n;const a=p.current;if(!a)return;const l=n(a,{value:o,lineNumbers:!0,tabSize:2,mode:"graphql-variables",theme:e,keyMap:null!=t?t:"sublime",autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:!!i&&"nocursor",foldGutter:!0,lint:{variableToType:void 0},hintOptions:{closeOnUnfocus:!1,completeSingle:!1,container:a,variableToType:void 0},gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:Zr});l.addKeyMap({"Cmd-Space"(){l.showHint({completeSingle:!1,container:a})},"Ctrl-Space"(){l.showHint({completeSingle:!1,container:a})},"Alt-Space"(){l.showHint({completeSingle:!1,container:a})},"Shift-Space"(){l.showHint({completeSingle:!1,container:a})}}),l.on("keyup",((e,t)=>{const n=t.keyCode;(n>=65&&n<=90||!t.shiftKey&&n>=48&&n<=57||t.shiftKey&&189===n||t.shiftKey&&222===n)&&e.execCommand("autocomplete")})),s(l)})),()=>{r=!1}}),[e,o,i,s]),Ns(a,r,El,"variables",_l),Ds(a),Os(a,["Cmd-Enter","Ctrl-Enter"],null==l?void 0:l.run),Os(a,["Shift-Ctrl-P"],u),Os(a,["Shift-Ctrl-M"],c),p}C(_l,"useVariableEditor"),bl(_l,"useVariableEditor");const El="variables";var kl=Object.defineProperty,wl=C(((e,t)=>kl(e,"name",{value:t,configurable:!0})),"__name$2");const xl=Bi("EditorContext");function Tl(e){var t,n,r,i;const o=Wi(),[a,s]=(0,m.useState)(null),[l,c]=(0,m.useState)(null),[u,p]=(0,m.useState)(null),[d,f]=(0,m.useState)(null);As(a,e.headers),As(l,e.query),As(d,e.variables);const[h]=(0,m.useState)((()=>{var t,n,r,i,a,s;return{headers:null!=(n=null!=(t=e.headers)?t:null==o?void 0:o.get(js))?n:null,query:null!=(i=null!=(r=e.query)?r:null==o?void 0:o.get(Js))?i:null,variables:null!=(s=null!=(a=e.variables)?a:null==o?void 0:o.get(El))?s:null}})),[g,v]=(0,m.useState)((()=>nl(T(x({},h),{storage:o})))),y=cl({storage:o,shouldPersistHeaders:e.shouldPersistHeaders}),b=ll({queryEditor:l,variableEditor:d,headerEditor:a,responseEditor:u}),_=ul({queryEditor:l,variableEditor:d,headerEditor:a,responseEditor:u}),{onTabChange:E}=e,k=(0,m.useCallback)((()=>{v((e=>{const t=b(e),n={tabs:[...t.tabs,pl()],activeTabIndex:t.tabs.length};return y(n),_(n.tabs[n.activeTabIndex]),null==E||E(n),n}))}),[E,_,y,b]),w=(0,m.useCallback)((e=>{v((t=>{const n=T(x({},b(t)),{activeTabIndex:e});return y(n),_(n.tabs[n.activeTabIndex]),null==E||E(n),n}))}),[E,_,y,b]),C=(0,m.useCallback)((e=>{v((t=>{const n={tabs:t.tabs.filter(((t,n)=>e!==n)),activeTabIndex:Math.max(t.activeTabIndex-1,0)};return y(n),_(n.tabs[n.activeTabIndex]),null==E||E(n),n}))}),[E,_,y]),S=(0,m.useCallback)((e=>{v((t=>{const n=dl(t,e);return y(n),null==E||E(n),n}))}),[E,y]),A=g.activeTabIndex>0?"":null!=(t=e.defaultQuery)?t:Sl,N=(0,m.useRef)({initialHeaders:null!=(n=h.headers)?n:"",initialQuery:null!=(r=h.query)?r:A,initialVariables:null!=(i=h.variables)?i:""}),D=(0,m.useMemo)((()=>x(T(x({},g),{addTab:k,changeTab:w,closeTab:C,updateActiveTabValues:S,headerEditor:a,queryEditor:l,responseEditor:u,variableEditor:d,setHeaderEditor:s,setQueryEditor:c,setResponseEditor:p,setVariableEditor:f}),N.current)),[g,k,w,C,S,a,l,u,d]);return si(xl.Provider,{value:D,children:e.children})}C(Tl,"EditorContextProvider"),wl(Tl,"EditorContextProvider");const Cl=Zi(xl),Sl='# Welcome to GraphiQL\n#\n# GraphiQL is an in-browser tool for writing, validating, and\n# testing GraphQL queries.\n#\n# Type queries into this side of the screen, and you will see intelligent\n# typeaheads aware of the current GraphQL type schema and live syntax and\n# validation errors highlighted within the text.\n#\n# GraphQL queries typically start with a "{" character. Lines that start\n# with a # are ignored.\n#\n# An example GraphQL query might look like:\n#\n# {\n# field(arg: "value") {\n# subField\n# }\n# }\n#\n# Keyboard shortcuts:\n#\n# Prettify Query: Shift-Ctrl-P (or press the prettify button above)\n#\n# Merge Query: Shift-Ctrl-M (or press the merge button above)\n#\n# Run Query: Ctrl-Enter (or press the play button above)\n#\n# Auto Complete: Ctrl-Space (or just start typing)\n#\n\n';var Al=Object.defineProperty,Nl=C(((e,t)=>Al(e,"name",{value:t,configurable:!0})),"__name$1");function Dl({ResponseTooltip:e,editorTheme:t="graphiql",keyMap:r,value:i}={}){const{fetchError:o,validationErrors:a}=fs({nonNull:!0,caller:Dl}),{responseEditor:s,setResponseEditor:l}=Cl({nonNull:!0,caller:Dl}),c=(0,m.useRef)(null),u=(0,m.useRef)(e);(0,m.useEffect)((()=>{u.current=e}),[e]);const p=(0,m.useRef)(i);return(0,m.useEffect)((()=>{let e=!0;return Hr([Promise.all([n.e(480),n.e(739)]).then(n.bind(n,5739)).then((function(e){return e.f})),Promise.all([n.e(480),n.e(768)]).then(n.bind(n,768)).then((function(e){return e.b})),Promise.all([n.e(480),n.e(744)]).then(n.bind(n,9744)).then((function(e){return e.d})),Promise.all([n.e(480),n.e(573)]).then(n.bind(n,2573)).then((function(e){return e.s})),Promise.all([n.e(480),n.e(105)]).then(n.bind(n,6105)).then((function(e){return e.s})),Promise.all([n.e(480),n.e(198)]).then(n.bind(n,2198)).then((function(e){return e.j})),Promise.all([n.e(480),n.e(571)]).then(n.bind(n,3571)).then((function(e){return e.s})),Promise.all([n.e(480),n.e(896)]).then(n.bind(n,6896)),Promise.all([n.e(480),n.e(574)]).then(n.bind(n,1574))],{useCommonAddons:!1}).then((n=>{if(!e)return;const i=document.createElement("div");n.registerHelper("info","graphql-results",((e,t,n,r)=>{const o=[],a=u.current;return a&&o.push(si(a,{pos:r})),pi.shouldRender(e)&&o.push(si(pi,{token:e},"image-preview")),o.length?(g.render(o,i),i):(g.unmountComponentAtNode(i),null)}));const o=c.current;if(!o)return;const a=n(o,{value:p.current||"",lineWrapping:!0,readOnly:!0,theme:t,mode:"graphql-results",keyMap:null!=r?r:"sublime",foldGutter:!0,gutters:["CodeMirror-foldgutter"],info:!0,extraKeys:Zr});l(a)})),()=>{e=!1}}),[t,l]),As(s,i),(0,m.useEffect)((()=>{o&&(null==s||s.setValue(o)),a&&(null==s||s.setValue(xi(a)))}),[s,o,a]),c}C(Dl,"useResponseEditor"),Nl(Dl,"useResponseEditor");var Ol=Object.defineProperty,Il=C(((e,t)=>Ol(e,"name",{value:t,configurable:!0})),"__name");function Fl({defaultSizeRelation:e=Ll,direction:t,initiallyHidden:n,onHiddenElementChange:r,sizeThresholdFirst:i=100,sizeThresholdSecond:o=100,storageKey:a}){const s=Wi(),l=(0,m.useCallback)(Ts(500,(e=>{s&&a&&s.set(a,e)})),[s,a]),[c,u]=(0,m.useState)((()=>{const e=s&&a?s.get(a):null;return e===Rl||"first"===n?"first":e===Ml||"second"===n?"second":null})),p=(0,m.useCallback)((e=>{u(e),null==r||r(e)}),[r]),d=(0,m.useRef)(null),f=(0,m.useRef)(null),h=(0,m.useRef)(null),g=(0,m.useRef)(`${e}`);(0,m.useLayoutEffect)((()=>{const e=s&&a&&s.get(a)||g.current,n="horizontal"===t?"row":"column";d.current&&(d.current.style.display="flex",d.current.style.flexDirection=n,d.current.style.flex=e===Rl||e===Ml?g.current:e),h.current&&(h.current.style.display="flex",h.current.style.flexDirection=n,h.current.style.flex="1"),f.current&&(f.current.style.display="flex",f.current.style.flexDirection=n)}),[t,s,a]);const v=(0,m.useCallback)((e=>{const t="first"===e?d.current:h.current;if(t&&(t.style.left="-1000px",t.style.position="absolute",t.style.opacity="0",t.style.height="500px",t.style.width="500px",d.current)){const e=parseFloat(d.current.style.flex);(!Number.isFinite(e)||e<1)&&(d.current.style.flex="1"),d.current.style.flex}}),[]),y=(0,m.useCallback)((e=>{const t="first"===e?d.current:h.current;if(t&&(t.style.width="",t.style.height="",t.style.opacity="",t.style.position="",t.style.left="",d.current&&s&&a)){const e=null==s?void 0:s.get(a);e&&e!==Rl&&e!==Ml&&(d.current.style.flex=e)}}),[s,a]);return(0,m.useLayoutEffect)((()=>{"first"===c?v("first"):y("first"),"second"===c?v("second"):y("second")}),[c,v,y]),(0,m.useEffect)((()=>{if(!f.current||!d.current||!h.current)return;const e=f.current,n=d.current,r=n.parentElement,a="horizontal"===t?"clientX":"clientY",s="horizontal"===t?"left":"top",c="horizontal"===t?"right":"bottom",u="horizontal"===t?"clientWidth":"clientHeight";function m(t){t.preventDefault();const d=t[a]-e.getBoundingClientRect()[s];function f(t){if(0===t.buttons)return h();const f=t[a]-r.getBoundingClientRect()[s]-d,m=r.getBoundingClientRect()[c]-t[a]+d-e[u];if(f{e.removeEventListener("mousedown",m),e.removeEventListener("dblclick",v)}}),[t,p,i,o,l]),(0,m.useMemo)((()=>({dragBarRef:f,hiddenElement:c,firstRef:d,setHiddenElement:p,secondRef:h})),[c,p])}C(Fl,"useDragResize"),Il(Fl,"useDragResize");const Ll=1,Rl="hide-first",Ml="hide-second"},5405:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(8081),i=n.n(r),o=n(3645),a=n.n(o)()(i());a.push([e.id,"#graphiql .editorWrap {\r\n overflow-x: unset;\r\n}\r\n\r\n.graphiql-explorer-root {\r\n height: 100%;\r\n}\r\n\r\n.left-sidebar-compact #graphiql {\r\n left: 48px;\r\n transition: left 0.2s ease-in-out, width 0.2s ease-in-out;\r\n}\r\n\r\n[dir=rtl] .left-sidebar-compact #graphiql {\r\n right: 48px;\r\n transition: right 0.2s ease-in-out, width 0.2s ease-in-out;\r\n}\r\n\r\n.graphiql-container .docExplorerShow {\r\n white-space: nowrap;\r\n}\r\n\r\n.graphiql-container .doc-explorer-title, .graphiql-container .history-title, .graphiql-container .doc-explorer-back {\r\n overflow: unset;\r\n}\r\n\r\n.graphiql-container .topBar {\r\n height: unset;\r\n}\r\n\r\n.graphiql-explorer-node svg{\r\n margin-left: 0 !important;\r\n}\r\n\r\n:root .graphiql-container .CodeMirror {\r\n height: 100% !important;\r\n}\r\n\r\n:root .graphiql-container .CodeMirror pre {\r\n padding-left: unset;\r\n line-height: unset;\r\n margin: unset;\r\n font-size: unset;\r\n overflow: unset;\r\n}\r\n",""]);const s=a},1701:(e,t,n)=>{"use strict";n.d(t,{Z:()=>_});var r=n(8081),i=n.n(r),o=n(3645),a=n.n(o),s=n(1667),l=n.n(s),c=new URL(n(6089),n.b),u=new URL(n(7735),n.b),p=new URL(n(1090),n.b),d=new URL(n(6050),n.b),f=new URL(n(6192),n.b),h=a()(i()),m=l()(c),g=l()(u),v=l()(p),y=l()(d),b=l()(f);h.push([e.id,".graphiql-container,\n.graphiql-container button,\n.graphiql-container input {\n color: #141823;\n font-family: system, -apple-system, 'San Francisco', '.SFNSDisplay-Regular',\n 'Segoe UI', Segoe, 'Segoe WP', 'Helvetica Neue', helvetica, 'Lucida Grande',\n arial, sans-serif;\n font-size: 14px;\n}\n\n.graphiql-container {\n display: flex;\n flex-direction: row;\n height: 100%;\n margin: 0;\n overflow: hidden;\n width: 100%;\n}\n\n.graphiql-container .editorWrap {\n display: flex;\n flex-direction: column;\n flex: 1;\n overflow-x: hidden;\n}\n\n.graphiql-container .title {\n font-size: 18px;\n}\n\n.graphiql-container .title em {\n font-family: georgia;\n font-size: 19px;\n}\n\n.graphiql-container .topBarWrap {\n display: flex;\n flex-direction: row;\n}\n\n.graphiql-container .topBar {\n align-items: center;\n background: linear-gradient(#f7f7f7, #e2e2e2);\n border-bottom: 1px solid #d0d0d0;\n cursor: default;\n display: flex;\n flex-direction: row;\n flex: 1;\n height: 34px;\n overflow-y: visible;\n padding: 7px 14px 6px;\n user-select: none;\n}\n\n.graphiql-container .toolbar {\n overflow-x: visible;\n display: flex;\n}\n\n.graphiql-container .docExplorerShow,\n.graphiql-container .historyShow {\n background: linear-gradient(#f7f7f7, #e2e2e2);\n border-radius: 0;\n border-bottom: 1px solid #d0d0d0;\n border-right: none;\n border-top: none;\n color: #3b5998;\n cursor: pointer;\n font-size: 14px;\n margin: 0;\n padding: 2px 20px 0 18px;\n}\n\n.graphiql-container .docExplorerShow {\n border-left: 1px solid rgba(0, 0, 0, 0.2);\n}\n\n.graphiql-container .historyShow {\n border-right: 1px solid rgba(0, 0, 0, 0.2);\n border-left: 0;\n}\n\n.graphiql-container .docExplorerShow:before {\n border-left: 2px solid #3b5998;\n border-top: 2px solid #3b5998;\n content: '';\n display: inline-block;\n height: 9px;\n margin: 0 3px -1px 0;\n position: relative;\n transform: rotate(-45deg);\n width: 9px;\n}\n\n.graphiql-container .editorBar {\n display: flex;\n flex-direction: row;\n flex: 1;\n max-height: 100%;\n}\n\n.graphiql-container .queryWrap {\n display: flex;\n flex-direction: column;\n flex: 1;\n}\n\n.graphiql-container .resultWrap {\n display: flex;\n flex-direction: column;\n flex: 1;\n flex-basis: 1em;\n position: relative;\n}\n\n.graphiql-container .docExplorerWrap,\n.graphiql-container .historyPaneWrap {\n background: white;\n box-shadow: 0 0 8px rgba(0, 0, 0, 0.15);\n position: relative;\n width: 100%;\n z-index: 3;\n}\n\n.graphiql-container .historyPaneWrap {\n min-width: 230px;\n z-index: 5;\n}\n\n.graphiql-container .docExplorerResizer {\n cursor: col-resize;\n height: 100%;\n position: absolute;\n width: 10px;\n z-index: 10;\n}\n\n.graphiql-container .docExplorerHide {\n cursor: pointer;\n font-size: 18px;\n margin: -7px -8px -6px 0;\n padding: 18px 16px 15px 12px;\n background: 0;\n border: 0;\n line-height: 14px;\n}\n\n.graphiql-container div .query-editor {\n flex: 1;\n position: relative;\n}\n\n.graphiql-container .secondary-editor {\n display: flex;\n flex-direction: column;\n height: 100%;\n position: relative;\n}\n\n.graphiql-container .secondary-editor-title {\n background: #eeeeee;\n border-bottom: 1px solid #d6d6d6;\n border-top: 1px solid #e0e0e0;\n color: #777;\n cursor: row-resize;\n font-variant: small-caps;\n font-weight: bold;\n letter-spacing: 1px;\n line-height: 14px;\n padding: 6px 0 8px 43px;\n text-transform: lowercase;\n user-select: none;\n}\n\n.graphiql-container .codemirrorWrap {\n flex: 1;\n height: 100%;\n position: relative;\n}\n\n.graphiql-container .result-window {\n flex: 1;\n height: 100%;\n position: relative;\n}\n\n.graphiql-container .footer {\n background: #f6f7f8;\n border-left: 1px solid #e0e0e0;\n border-top: 1px solid #e0e0e0;\n margin-left: 12px;\n position: relative;\n}\n\n.graphiql-container .footer:before {\n background: #eeeeee;\n bottom: 0;\n content: ' ';\n left: -13px;\n position: absolute;\n top: -1px;\n width: 12px;\n}\n\n/* No `.graphiql-container` here so themes can overwrite */\n\n.result-window .CodeMirror.cm-s-graphiql {\n background: #f6f7f8;\n}\n\n.graphiql-container .result-window .CodeMirror-gutters {\n background-color: #f6f7f8;\n border: none;\n}\n\n.editor-drag-bar {\n width: 12px;\n background-color: #eeeeee;\n border-left: 1px solid #e0e0e0;\n border-right: 1px solid #e0e0e0;\n cursor: col-resize;\n}\n\n.graphiql-container .result-window .CodeMirror-foldgutter,\n.graphiql-container .result-window .CodeMirror-foldgutter-open:after,\n.graphiql-container .result-window .CodeMirror-foldgutter-folded:after {\n padding-left: 3px;\n}\n\n.graphiql-container .toolbar-button {\n background: #fdfdfd;\n background: linear-gradient(#f9f9f9, #ececec);\n border: 0;\n border-radius: 3px;\n box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2),\n 0 1px 0 rgba(255, 255, 255, 0.7), inset 0 1px #fff;\n color: #555;\n cursor: pointer;\n display: inline-block;\n margin: 0 5px;\n padding: 3px 11px 5px;\n text-decoration: none;\n text-overflow: ellipsis;\n white-space: nowrap;\n max-width: 150px;\n}\n\n.graphiql-container .toolbar-button:active {\n background: linear-gradient(#ececec, #d5d5d5);\n box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7),\n inset 0 0 0 1px rgba(0, 0, 0, 0.1), inset 0 1px 1px 1px rgba(0, 0, 0, 0.12),\n inset 0 0 5px rgba(0, 0, 0, 0.1);\n}\n\n.graphiql-container .toolbar-button.error {\n background: linear-gradient(#fdf3f3, #e6d6d7);\n color: #b00;\n}\n\n.graphiql-container .toolbar-button-group {\n margin: 0 5px;\n white-space: nowrap;\n}\n\n.graphiql-container .toolbar-button-group > * {\n margin: 0;\n}\n\n.graphiql-container .toolbar-button-group > *:not(:last-child) {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n}\n\n.graphiql-container .toolbar-button-group > *:not(:first-child) {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n margin-left: -1px;\n}\n\n.graphiql-container .execute-button-wrap {\n height: 34px;\n margin: 0 14px 0 28px;\n position: relative;\n}\n\n.graphiql-container .execute-button {\n background: linear-gradient(#fdfdfd, #d2d3d6);\n border-radius: 17px;\n border: 1px solid rgba(0, 0, 0, 0.25);\n box-shadow: 0 1px 0 #fff;\n cursor: pointer;\n fill: #444;\n height: 34px;\n margin: 0;\n padding: 0;\n width: 34px;\n}\n\n.graphiql-container .toolbar-button > svg,\n.graphiql-container .execute-button svg {\n pointer-events: none;\n}\n\n.graphiql-container .execute-button:active {\n background: linear-gradient(#e6e6e6, #c3c3c3);\n box-shadow: 0 1px 0 #fff, inset 0 0 2px rgba(0, 0, 0, 0.2),\n inset 0 0 6px rgba(0, 0, 0, 0.1);\n}\n\n.graphiql-container .toolbar-menu,\n.graphiql-container .toolbar-select {\n position: relative;\n}\n\n.graphiql-container .execute-options,\n.graphiql-container .toolbar-menu-items,\n.graphiql-container .toolbar-select-options {\n background: #fff;\n box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.25);\n margin: 0;\n padding: 6px 0;\n position: absolute;\n z-index: 100;\n}\n\n.graphiql-container .execute-options {\n min-width: 100px;\n top: 37px;\n left: -1px;\n}\n\n.graphiql-container .toolbar-menu-items {\n left: 1px;\n margin-top: -1px;\n min-width: 110%;\n top: 100%;\n visibility: hidden;\n}\n\n.graphiql-container .toolbar-menu-items.open {\n visibility: visible;\n}\n\n.graphiql-container .toolbar-select-options {\n left: 0;\n min-width: 100%;\n top: -5px;\n visibility: hidden;\n}\n\n.graphiql-container .toolbar-select-options.open {\n visibility: visible;\n}\n\n.graphiql-container .execute-options > li,\n.graphiql-container .toolbar-menu-items > li,\n.graphiql-container .toolbar-select-options > li {\n cursor: pointer;\n display: block;\n margin: none;\n max-width: 300px;\n overflow: hidden;\n padding: 2px 20px 4px 11px;\n white-space: nowrap;\n}\n\n.graphiql-container .execute-options > li.selected,\n.graphiql-container .toolbar-menu-items > li.hover,\n.graphiql-container .toolbar-menu-items > li:active,\n.graphiql-container .toolbar-menu-items > li:hover,\n.graphiql-container .toolbar-select-options > li.hover,\n.graphiql-container .toolbar-select-options > li:active,\n.graphiql-container .toolbar-select-options > li:hover,\n.graphiql-container .history-contents > li:hover,\n.graphiql-container .history-contents > li:active {\n background: #e10098;\n color: #fff;\n}\n\n.graphiql-container .toolbar-select-options > li > svg {\n display: inline;\n fill: #666;\n margin: 0 -6px 0 6px;\n pointer-events: none;\n vertical-align: middle;\n}\n\n.graphiql-container .toolbar-select-options > li.hover > svg,\n.graphiql-container .toolbar-select-options > li:active > svg,\n.graphiql-container .toolbar-select-options > li:hover > svg {\n fill: #fff;\n}\n\n.graphiql-container .CodeMirror-scroll {\n overflow-scrolling: touch;\n}\n\n.graphiql-container .CodeMirror {\n color: #141823;\n font-family: 'Consolas', 'Inconsolata', 'Droid Sans Mono', 'Monaco', monospace;\n font-size: 13px;\n height: 100%;\n left: 0;\n position: absolute;\n top: 0;\n width: 100%;\n}\n\n.graphiql-container .CodeMirror-lines {\n padding: 20px 0;\n}\n\n.CodeMirror-hint-information .content {\n box-orient: vertical;\n color: #141823;\n display: flex;\n font-family: system, -apple-system, 'San Francisco', '.SFNSDisplay-Regular',\n 'Segoe UI', Segoe, 'Segoe WP', 'Helvetica Neue', helvetica, 'Lucida Grande',\n arial, sans-serif;\n font-size: 13px;\n line-clamp: 3;\n line-height: 16px;\n max-height: 48px;\n overflow: hidden;\n text-overflow: -o-ellipsis-lastline;\n}\n\n.CodeMirror-hint-information .content p:first-child {\n margin-top: 0;\n}\n\n.CodeMirror-hint-information .content p:last-child {\n margin-bottom: 0;\n}\n\n.CodeMirror-hint-information .infoType {\n color: #ca9800;\n cursor: pointer;\n display: inline;\n margin-right: 0.5em;\n}\n\n.autoInsertedLeaf.cm-property {\n animation-duration: 6s;\n animation-name: insertionFade;\n border-bottom: 2px solid rgba(255, 255, 255, 0);\n border-radius: 2px;\n margin: -2px -4px -1px;\n padding: 2px 4px 1px;\n}\n\n@keyframes insertionFade {\n from,\n to {\n background: rgba(255, 255, 255, 0);\n border-color: rgba(255, 255, 255, 0);\n }\n\n 15%,\n 85% {\n background: #fbffc9;\n border-color: #f0f3c0;\n }\n}\n\ndiv.CodeMirror-lint-tooltip {\n background-color: white;\n border-radius: 2px;\n border: 0;\n color: #141823;\n box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);\n font-size: 13px;\n line-height: 16px;\n max-width: 430px;\n opacity: 0;\n padding: 8px 10px;\n transition: opacity 0.15s;\n white-space: pre-wrap;\n}\n\ndiv.CodeMirror-lint-tooltip > * {\n padding-left: 23px;\n}\n\ndiv.CodeMirror-lint-tooltip > * + * {\n margin-top: 12px;\n}\n\n.graphiql-container .variable-editor-title-text {\n cursor: pointer;\n display: inline-block;\n color: gray;\n}\n\n.graphiql-container .variable-editor-title-text.active {\n color: #000;\n}\n\n.graphiql-container .tabs {\n height: 42px;\n background-image: linear-gradient(#f7f7f7, #e2e2e2);\n display: flex;\n align-items: center;\n}\n\n.graphiql-container .tab {\n position: relative;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n padding-top: 0;\n padding-right: 6px;\n padding-left: 14px;\n height: 100%;\n color: rgba(0, 0, 0, 0.6);\n\n border-left: 1px solid lightgray;\n /*\n Needed for `button` components.\n */\n border-top-style: none;\n border-bottom-style: none;\n border-right-style: none;\n}\n\n/*\n If it's only one tab, we don't have the X button, so we want more padding.\n In the .tabs container, we have one more child - the plus button.\n So if this tab is first child and the second last at the same time,\n this is the case we want to target.\n*/\n\n.graphiql-container .tab:first-child:nth-last-child(2) {\n padding-right: 14px;\n}\n\n.graphiql-container .tab:hover {\n background-image: linear-gradient(\n rgba(245, 245, 245, 0.7),\n rgba(215, 215, 215, 1)\n );\n color: rgba(0, 0, 0, 0.8);\n}\n\n.graphiql-container .tab.active {\n background-image: linear-gradient(\n rgba(233, 233, 233, 0.7),\n rgba(205, 205, 205, 1)\n );\n color: black;\n}\n\n/* {\n background-image: linear-gradient(\n rgba(223, 223, 223, 0.5),\n rgba(196, 196, 196, 1)\n );\n} */\n\n.graphiql-container .tab .close {\n display: inline-block;\n cursor: pointer;\n border: none;\n background: transparent;\n margin-left: 6px;\n padding: 3px 6px;\n border-radius: 4px;\n}\n\n.graphiql-container .tab:hover .close,\n.graphiql-container .tab.active .close {\n opacity: 1;\n}\n\n.graphiql-container .tab .close::before {\n content: '✕';\n display: inline-block;\n font-weight: bold;\n font-size: 12px;\n color: rgba(0, 0, 0, 0.7);\n height: 14px;\n}\n\n.graphiql-container .tab .close:hover {\n background: rgba(0, 0, 0, 0.08);\n}\n\n.graphiql-container .tab .close:active {\n background: rgba(0, 0, 0, 0.12);\n}\n\n.graphiql-container .tab-add {\n display: flex;\n align-items: center;\n justify-content: center;\n border: none;\n background: transparent;\n line-height: 1;\n font-size: 26px;\n padding: 0 8px;\n height: 30px;\n border-radius: 4px;\n color: rgba(0, 0, 0, 0.5);\n padding-bottom: 3px;\n margin-left: 6px;\n cursor: pointer;\n}\n\n.graphiql-container .tab-add:hover {\n background: rgba(0, 0, 0, 0.06);\n}\n\n.graphiql-container .tab-add:active {\n background: rgba(0, 0, 0, 0.1);\n}\n\n/* COLORS */\n\n.graphiql-container .CodeMirror-foldmarker {\n border-radius: 4px;\n background: #08f;\n background: linear-gradient(#43a8ff, #0f83e8);\n box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2), inset 0 0 0 1px rgba(0, 0, 0, 0.1);\n color: white;\n font-family: arial;\n font-size: 12px;\n line-height: 0;\n margin: 0 3px;\n padding: 0px 4px 1px;\n text-shadow: 0 -1px rgba(0, 0, 0, 0.1);\n}\n\n.graphiql-container div.CodeMirror span.CodeMirror-matchingbracket {\n color: #555;\n text-decoration: underline;\n}\n\n.graphiql-container div.CodeMirror span.CodeMirror-nonmatchingbracket {\n color: #f00;\n}\n\n/* Comment */\n\n.cm-comment {\n color: #666;\n}\n\n/* Punctuation */\n\n.cm-punctuation {\n color: #555;\n}\n\n/* Keyword */\n\n.cm-keyword {\n color: #b11a04;\n}\n\n/* OperationName, FragmentName */\n\n.cm-def {\n color: #d2054e;\n}\n\n/* FieldName */\n\n.cm-property {\n color: #1f61a0;\n}\n\n/* FieldAlias */\n\n.cm-qualifier {\n color: #1c92a9;\n}\n\n/* ArgumentName and ObjectFieldName */\n\n.cm-attribute {\n color: #8b2bb9;\n}\n\n/* Number */\n\n.cm-number {\n color: #2882f9;\n}\n\n/* String */\n\n.cm-string {\n color: #d64292;\n}\n\n/* Boolean */\n\n.cm-builtin {\n color: #d47509;\n}\n\n/* EnumValue */\n\n.cm-string-2 {\n color: #0b7fc7;\n}\n\n/* Variable */\n\n.cm-variable {\n color: #397d13;\n}\n\n/* Directive */\n\n.cm-meta {\n color: #b33086;\n}\n\n/* Type */\n\n.cm-atom {\n color: #ca9800;\n}\n\n/* BASICS */\n\n.CodeMirror {\n /* Set height, width, borders, and global font properties here */\n color: black;\n font-family: monospace;\n height: 300px;\n}\n\n/* PADDING */\n\n.CodeMirror-lines {\n padding: 4px 0; /* Vertical padding around content */\n}\n\n.CodeMirror pre {\n padding: 0 4px; /* Horizontal padding of content */\n}\n\n.CodeMirror-scrollbar-filler,\n.CodeMirror-gutter-filler {\n background-color: white; /* The little square between H and V scrollbars */\n}\n\n/* GUTTER */\n\n.CodeMirror-gutters {\n border-right: 1px solid #ddd;\n background-color: #f7f7f7;\n white-space: nowrap;\n}\n\n.CodeMirror-linenumbers {\n}\n\n.CodeMirror-linenumber {\n color: #666;\n min-width: 20px;\n padding: 0 3px 0 5px;\n text-align: right;\n white-space: nowrap;\n}\n\n.CodeMirror-guttermarker {\n color: black;\n}\n\n.CodeMirror-guttermarker-subtle {\n color: #666;\n}\n\n/* CURSOR */\n\n.CodeMirror .CodeMirror-cursor {\n border-left: 1px solid black;\n}\n\n/* Shown when moving in bi-directional text */\n\n.CodeMirror div.CodeMirror-secondarycursor {\n border-left: 1px solid silver;\n}\n\n.CodeMirror.cm-fat-cursor div.CodeMirror-cursor {\n background: #7e7;\n border: 0;\n width: auto;\n}\n\n.CodeMirror.cm-fat-cursor div.CodeMirror-cursors {\n z-index: 1;\n}\n\n.cm-animate-fat-cursor {\n animation: blink 1.06s steps(1) infinite;\n border: 0;\n width: auto;\n}\n\n@keyframes blink {\n 0% {\n background: #7e7;\n }\n 50% {\n background: none;\n }\n 100% {\n background: #7e7;\n }\n}\n\n/* Can style cursor different in overwrite (non-insert) mode */\n\ndiv.CodeMirror-overwrite div.CodeMirror-cursor {\n}\n\n.cm-tab {\n display: inline-block;\n text-decoration: inherit;\n}\n\n.CodeMirror-ruler {\n border-left: 1px solid #ccc;\n position: absolute;\n}\n\n/* DEFAULT THEME */\n\n.cm-s-default .cm-keyword {\n color: #708;\n}\n\n.cm-s-default .cm-atom {\n color: #219;\n}\n\n.cm-s-default .cm-number {\n color: #164;\n}\n\n.cm-s-default .cm-def {\n color: #00f;\n}\n\n.cm-s-default .cm-variable,\n.cm-s-default .cm-punctuation,\n.cm-s-default .cm-property,\n.cm-s-default .cm-operator {\n}\n\n.cm-s-default .cm-variable-2 {\n color: #05a;\n}\n\n.cm-s-default .cm-variable-3 {\n color: #085;\n}\n\n.cm-s-default .cm-comment {\n color: #a50;\n}\n\n.cm-s-default .cm-string {\n color: #a11;\n}\n\n.cm-s-default .cm-string-2 {\n color: #f50;\n}\n\n.cm-s-default .cm-meta {\n color: #555;\n}\n\n.cm-s-default .cm-qualifier {\n color: #555;\n}\n\n.cm-s-default .cm-builtin {\n color: #30a;\n}\n\n.cm-s-default .cm-bracket {\n color: #666;\n}\n\n.cm-s-default .cm-tag {\n color: #170;\n}\n\n.cm-s-default .cm-attribute {\n color: #00c;\n}\n\n.cm-s-default .cm-header {\n color: blue;\n}\n\n.cm-s-default .cm-quote {\n color: #090;\n}\n\n.cm-s-default .cm-hr {\n color: #666;\n}\n\n.cm-s-default .cm-link {\n color: #00c;\n}\n\n.cm-negative {\n color: #d44;\n}\n\n.cm-positive {\n color: #292;\n}\n\n.cm-header,\n.cm-strong {\n font-weight: bold;\n}\n\n.cm-em {\n font-style: italic;\n}\n\n.cm-link {\n text-decoration: underline;\n}\n\n.cm-strikethrough {\n text-decoration: line-through;\n}\n\n.cm-s-default .cm-error {\n color: #f00;\n}\n\n.cm-invalidchar {\n color: #f00;\n}\n\n.CodeMirror-composing {\n border-bottom: 2px solid;\n}\n\n/* Default styles for common addons */\n\ndiv.CodeMirror span.CodeMirror-matchingbracket {\n color: #0f0;\n}\n\ndiv.CodeMirror span.CodeMirror-nonmatchingbracket {\n color: #f22;\n}\n\n.CodeMirror-matchingtag {\n background: rgba(255, 150, 0, 0.3);\n}\n\n.CodeMirror-activeline-background {\n background: #e8f2ff;\n}\n\n/* STOP */\n\n/* The rest of this file contains styles related to the mechanics of\n the editor. You probably shouldn't touch them. */\n\n.CodeMirror {\n background: white;\n overflow: hidden;\n position: relative;\n}\n\n.CodeMirror-scroll {\n height: 100%;\n /* 30px is the magic margin used to hide the element's real scrollbars */\n /* See overflow: hidden in .CodeMirror */\n margin-bottom: -30px;\n margin-right: -30px;\n outline: none; /* Prevent dragging from highlighting the element */\n overflow: scroll !important; /* Things will break if this is overridden */\n padding-bottom: 30px;\n position: relative;\n}\n\n.CodeMirror-sizer {\n border-right: 30px solid transparent;\n position: relative;\n}\n\n/* The fake, visible scrollbars. Used to force redraw during scrolling\n before actual scrolling happens, thus preventing shaking and\n flickering artifacts. */\n\n.CodeMirror-vscrollbar,\n.CodeMirror-hscrollbar,\n.CodeMirror-scrollbar-filler,\n.CodeMirror-gutter-filler {\n display: none;\n position: absolute;\n z-index: 6;\n}\n\n.CodeMirror-vscrollbar {\n overflow-x: hidden;\n overflow-y: scroll;\n right: 0;\n top: 0;\n}\n\n.CodeMirror-hscrollbar {\n bottom: 0;\n left: 0;\n overflow-x: scroll;\n overflow-y: hidden;\n}\n\n.CodeMirror-scrollbar-filler {\n right: 0;\n bottom: 0;\n}\n\n.CodeMirror-gutter-filler {\n left: 0;\n bottom: 0;\n}\n\n.CodeMirror-gutters {\n min-height: 100%;\n position: absolute;\n left: 0;\n top: 0;\n z-index: 3;\n}\n\n.CodeMirror-gutter {\n display: inline-block;\n height: 100%;\n margin-bottom: -30px;\n vertical-align: top;\n white-space: normal;\n}\n\n.CodeMirror-gutter-wrapper {\n background: none !important;\n border: none !important;\n position: absolute;\n z-index: 4;\n}\n\n.CodeMirror-gutter-background {\n position: absolute;\n top: 0;\n bottom: 0;\n z-index: 4;\n}\n\n.CodeMirror-gutter-elt {\n cursor: default;\n position: absolute;\n z-index: 4;\n}\n\n.CodeMirror-gutter-wrapper {\n user-select: none;\n}\n\n.CodeMirror-lines {\n cursor: text;\n min-height: 1px; /* prevents collapsing before first draw */\n}\n\n.CodeMirror pre {\n -webkit-tap-highlight-color: transparent;\n /* Reset some styles that the rest of the page might have set */\n background: transparent;\n border-radius: 0;\n border-width: 0;\n color: inherit;\n font-family: inherit;\n font-size: inherit;\n font-variant-ligatures: none;\n line-height: inherit;\n margin: 0;\n overflow: visible;\n position: relative;\n white-space: pre;\n word-wrap: normal;\n z-index: 2;\n}\n\n.CodeMirror-wrap pre {\n word-wrap: break-word;\n white-space: pre-wrap;\n word-break: normal;\n}\n\n.CodeMirror-linebackground {\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n z-index: 0;\n}\n\n.CodeMirror-linewidget {\n overflow: auto;\n position: relative;\n z-index: 2;\n}\n\n.CodeMirror-widget {\n}\n\n.CodeMirror-code {\n outline: none;\n}\n\n/* Force content-box sizing for the elements where we expect it */\n\n.CodeMirror-scroll,\n.CodeMirror-sizer,\n.CodeMirror-gutter,\n.CodeMirror-gutters,\n.CodeMirror-linenumber {\n box-sizing: content-box;\n}\n\n.CodeMirror-measure {\n height: 0;\n overflow: hidden;\n position: absolute;\n visibility: hidden;\n width: 100%;\n}\n\n.CodeMirror-cursor {\n position: absolute;\n}\n\n.CodeMirror-measure pre {\n position: static;\n}\n\ndiv.CodeMirror-cursors {\n position: relative;\n visibility: hidden;\n z-index: 3;\n}\n\ndiv.CodeMirror-dragcursors {\n visibility: visible;\n}\n\n.CodeMirror-focused div.CodeMirror-cursors {\n visibility: visible;\n}\n\n.CodeMirror-selected {\n background: #d9d9d9;\n}\n\n.CodeMirror-focused .CodeMirror-selected {\n background: #d7d4f0;\n}\n\n.CodeMirror-crosshair {\n cursor: crosshair;\n}\n\n.CodeMirror-line::selection,\n.CodeMirror-line > span::selection,\n.CodeMirror-line > span > span::selection {\n background: #d7d4f0;\n}\n\n.CodeMirror-line::-moz-selection,\n.CodeMirror-line > span::-moz-selection,\n.CodeMirror-line > span > span::-moz-selection {\n background: #d7d4f0;\n}\n\n.cm-searching {\n background: #ffa;\n background: rgba(255, 255, 0, 0.4);\n}\n\n/* Used to force a border model for a node */\n\n.cm-force-border {\n padding-right: 0.1px;\n}\n\n@media print {\n /* Hide the cursor when printing */\n .CodeMirror div.CodeMirror-cursors {\n visibility: hidden;\n }\n}\n\n/* See issue #2901 */\n\n.cm-tab-wrap-hack:after {\n content: '';\n}\n\n/* Help users use markselection to safely style text background */\n\nspan.CodeMirror-selectedtext {\n background: none;\n}\n\n.CodeMirror-dialog {\n background: inherit;\n color: inherit;\n left: 0;\n right: 0;\n overflow: hidden;\n padding: 0.1em 0.8em;\n position: absolute;\n z-index: 15;\n}\n\n.CodeMirror-dialog-top {\n border-bottom: 1px solid #eee;\n top: 0;\n}\n\n.CodeMirror-dialog-bottom {\n border-top: 1px solid #eee;\n bottom: 0;\n}\n\n.CodeMirror-dialog input {\n background: transparent;\n border: 1px solid #d3d6db;\n color: inherit;\n font-family: monospace;\n outline: none;\n width: 20em;\n}\n\n.CodeMirror-dialog button {\n font-size: 70%;\n}\n\n.CodeMirror-foldmarker {\n color: blue;\n cursor: pointer;\n font-family: arial;\n line-height: 0.3;\n text-shadow: #b9f 1px 1px 2px, #b9f -1px -1px 2px, #b9f 1px -1px 2px,\n #b9f -1px 1px 2px;\n}\n.CodeMirror-foldgutter {\n width: 0.7em;\n}\n.CodeMirror-foldgutter-open,\n.CodeMirror-foldgutter-folded {\n cursor: pointer;\n}\n.CodeMirror-foldgutter-open:after {\n content: '\\25BE';\n}\n.CodeMirror-foldgutter-folded:after {\n content: '\\25B8';\n}\n\n.CodeMirror-info {\n background: white;\n border-radius: 2px;\n box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);\n box-sizing: border-box;\n color: #555;\n font-family: system, -apple-system, 'San Francisco', '.SFNSDisplay-Regular',\n 'Segoe UI', Segoe, 'Segoe WP', 'Helvetica Neue', helvetica, 'Lucida Grande',\n arial, sans-serif;\n font-size: 13px;\n line-height: 16px;\n margin: 8px -8px;\n max-width: 400px;\n opacity: 0;\n overflow: hidden;\n padding: 8px 8px;\n position: fixed;\n transition: opacity 0.15s;\n z-index: 50;\n}\n\n.CodeMirror-info :first-child {\n margin-top: 0;\n}\n\n.CodeMirror-info :last-child {\n margin-bottom: 0;\n}\n\n.CodeMirror-info p {\n margin: 1em 0;\n}\n\n.CodeMirror-info .info-description {\n color: #777;\n line-height: 16px;\n margin-top: 1em;\n max-height: 80px;\n overflow: hidden;\n}\n\n.CodeMirror-info .info-deprecation {\n background: #fffae8;\n box-shadow: inset 0 1px 1px -1px #bfb063;\n color: #867f70;\n line-height: 16px;\n margin: -8px;\n margin-top: 8px;\n max-height: 80px;\n overflow: hidden;\n padding: 8px;\n}\n\n.CodeMirror-info .info-deprecation-label {\n color: #c79b2e;\n cursor: default;\n display: block;\n font-size: 9px;\n font-weight: bold;\n letter-spacing: 1px;\n line-height: 1;\n padding-bottom: 5px;\n text-transform: uppercase;\n user-select: none;\n}\n\n.CodeMirror-info .info-deprecation-label + * {\n margin-top: 0;\n}\n\n.CodeMirror-info a {\n text-decoration: none;\n}\n\n.CodeMirror-info a:hover {\n text-decoration: underline;\n}\n\n.CodeMirror-info .type-name {\n color: #ca9800;\n}\n\n.CodeMirror-info .field-name {\n color: #1f61a0;\n}\n\n.CodeMirror-info .enum-value {\n color: #0b7fc7;\n}\n\n.CodeMirror-info .arg-name {\n color: #8b2bb9;\n}\n\n.CodeMirror-info .directive-name {\n color: #b33086;\n}\n\n.CodeMirror-jump-token {\n text-decoration: underline;\n cursor: pointer;\n}\n\n/* The lint marker gutter */\n.CodeMirror-lint-markers {\n width: 16px;\n}\n.CodeMirror-lint-tooltip {\n background-color: infobackground;\n border-radius: 4px 4px 4px 4px;\n border: 1px solid black;\n color: infotext;\n font-family: monospace;\n font-size: 10pt;\n max-width: 600px;\n opacity: 0;\n overflow: hidden;\n padding: 2px 5px;\n position: fixed;\n transition: opacity 0.4s;\n white-space: pre-wrap;\n z-index: 100;\n}\n.CodeMirror-lint-mark-error,\n.CodeMirror-lint-mark-warning {\n background-position: left bottom;\n background-repeat: repeat-x;\n}\n.CodeMirror-lint-mark-error {\n background-image: url("+m+");\n}\n.CodeMirror-lint-mark-warning {\n background-image: url("+g+");\n}\n.CodeMirror-lint-marker-error,\n.CodeMirror-lint-marker-warning {\n background-position: center center;\n background-repeat: no-repeat;\n cursor: pointer;\n display: inline-block;\n height: 16px;\n position: relative;\n vertical-align: middle;\n width: 16px;\n}\n.CodeMirror-lint-message-error,\n.CodeMirror-lint-message-warning {\n background-position: top left;\n background-repeat: no-repeat;\n padding-left: 18px;\n}\n.CodeMirror-lint-marker-error,\n.CodeMirror-lint-message-error {\n background-image: url("+v+");\n}\n.CodeMirror-lint-marker-warning,\n.CodeMirror-lint-message-warning {\n background-image: url("+y+");\n}\n.CodeMirror-lint-marker-multiple {\n background-image: url("+b+");\n background-position: right bottom;\n background-repeat: no-repeat;\n width: 100%;\n height: 100%;\n}\n\n.graphiql-container .spinner-container {\n height: 36px;\n left: 50%;\n position: absolute;\n top: 50%;\n transform: translate(-50%, -50%);\n width: 36px;\n z-index: 10;\n}\n\n.graphiql-container .spinner {\n animation: rotation 0.6s infinite linear;\n border-bottom: 6px solid rgba(150, 150, 150, 0.15);\n border-left: 6px solid rgba(150, 150, 150, 0.15);\n border-radius: 100%;\n border-right: 6px solid rgba(150, 150, 150, 0.15);\n border-top: 6px solid rgba(150, 150, 150, 0.8);\n display: inline-block;\n height: 24px;\n position: absolute;\n vertical-align: middle;\n width: 24px;\n}\n\n@keyframes rotation {\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(359deg);\n }\n}\n\n.CodeMirror-hints {\n background: white;\n box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);\n font-family: 'Consolas', 'Inconsolata', 'Droid Sans Mono', 'Monaco', monospace;\n font-size: 13px;\n list-style: none;\n margin-left: -6px;\n margin: 0;\n max-height: 14.5em;\n overflow: hidden;\n overflow-y: auto;\n padding: 0;\n position: absolute;\n z-index: 10;\n}\n\n.CodeMirror-hint {\n border-top: solid 1px #f7f7f7;\n color: #141823;\n cursor: pointer;\n margin: 0;\n max-width: 300px;\n overflow: hidden;\n padding: 2px 6px;\n white-space: pre;\n}\n\nli.CodeMirror-hint-active {\n background-color: #08f;\n border-top-color: white;\n color: white;\n}\n\n.CodeMirror-hint-information {\n border-top: solid 1px #c0c0c0;\n max-width: 300px;\n padding: 4px 6px;\n position: relative;\n z-index: 1;\n}\n\n.CodeMirror-hint-information:first-child {\n border-bottom: solid 1px #c0c0c0;\n border-top: none;\n margin-bottom: -1px;\n}\n\n.CodeMirror-hint-deprecation {\n background: #fffae8;\n box-shadow: inset 0 1px 1px -1px #bfb063;\n color: #867f70;\n font-family: system, -apple-system, 'San Francisco', '.SFNSDisplay-Regular',\n 'Segoe UI', Segoe, 'Segoe WP', 'Helvetica Neue', helvetica, 'Lucida Grande',\n arial, sans-serif;\n font-size: 13px;\n line-height: 16px;\n margin-top: 4px;\n max-height: 80px;\n overflow: hidden;\n padding: 6px;\n}\n\n.CodeMirror-hint-deprecation .deprecation-label {\n color: #c79b2e;\n cursor: default;\n display: block;\n font-size: 9px;\n font-weight: bold;\n letter-spacing: 1px;\n line-height: 1;\n padding-bottom: 5px;\n text-transform: uppercase;\n user-select: none;\n}\n\n.CodeMirror-hint-deprecation .deprecation-label + * {\n margin-top: 0;\n}\n\n.CodeMirror-hint-deprecation :last-child {\n margin-bottom: 0;\n}\n\n.graphiql-container .doc-explorer {\n background: white;\n}\n\n.graphiql-container .doc-explorer-title-bar,\n.graphiql-container .history-title-bar {\n cursor: default;\n display: flex;\n height: 34px;\n line-height: 14px;\n padding: 8px 8px 5px;\n position: relative;\n user-select: none;\n}\n\n.graphiql-container .doc-explorer-title,\n.graphiql-container .history-title {\n flex: 1;\n font-weight: bold;\n overflow-x: hidden;\n padding: 10px 0 10px 10px;\n text-align: center;\n text-overflow: ellipsis;\n user-select: text;\n white-space: nowrap;\n}\n\n.graphiql-container .doc-explorer-back {\n color: #3b5998;\n cursor: pointer;\n margin: -7px 0 -6px -8px;\n overflow-x: hidden;\n padding: 17px 12px 16px 16px;\n text-overflow: ellipsis;\n white-space: nowrap;\n background: 0;\n border: 0;\n line-height: 14px;\n}\n\n.graphiql-container .doc-explorer-back:before {\n border-left: 2px solid #3b5998;\n border-top: 2px solid #3b5998;\n content: '';\n display: inline-block;\n height: 9px;\n margin: 0 3px -1px 0;\n position: relative;\n transform: rotate(-45deg);\n width: 9px;\n}\n\n.graphiql-container .doc-explorer-rhs {\n position: relative;\n}\n\n.graphiql-container .doc-explorer-contents,\n.graphiql-container .history-contents {\n background-color: #ffffff;\n border-top: 1px solid #d6d6d6;\n bottom: 0;\n left: 0;\n overflow-y: auto;\n padding: 20px 15px;\n position: absolute;\n right: 0;\n top: 47px;\n}\n\n.graphiql-container .doc-type-description p:first-child,\n.graphiql-container .doc-type-description blockquote:first-child {\n margin-top: 0;\n}\n\n.graphiql-container .doc-explorer-contents a {\n cursor: pointer;\n text-decoration: none;\n}\n\n.graphiql-container .doc-explorer-contents a:hover {\n text-decoration: underline;\n}\n\n.graphiql-container .doc-value-description > :first-child {\n margin-top: 4px;\n}\n\n.graphiql-container .doc-value-description > :last-child {\n margin-bottom: 4px;\n}\n\n.graphiql-container .doc-type-description code,\n.graphiql-container .doc-type-description pre,\n.graphiql-container .doc-category code,\n.graphiql-container .doc-category pre {\n --saf-0: rgba(var(--sk_foreground_low, 29, 28, 29), 0.13);\n font-size: 12px;\n line-height: 1.50001;\n font-variant-ligatures: none;\n white-space: pre;\n white-space: pre-wrap;\n word-wrap: break-word;\n word-break: normal;\n -webkit-tab-size: 4;\n -moz-tab-size: 4;\n tab-size: 4;\n}\n\n.graphiql-container .doc-type-description code,\n.graphiql-container .doc-category code {\n padding: 2px 3px 1px;\n border: 1px solid var(--saf-0);\n border-radius: 3px;\n background-color: rgba(var(--sk_foreground_min, 29, 28, 29), 0.04);\n color: #e01e5a;\n background-color: white;\n}\n\n.graphiql-container .doc-category {\n margin: 20px 0;\n}\n\n.graphiql-container .doc-category-title {\n border-bottom: 1px solid #e0e0e0;\n color: #777;\n cursor: default;\n font-size: 14px;\n font-variant: small-caps;\n font-weight: bold;\n letter-spacing: 1px;\n margin: 0 -15px 10px 0;\n padding: 10px 0;\n user-select: none;\n}\n\n.graphiql-container .doc-category-item {\n margin: 12px 0;\n color: #555;\n}\n\n.graphiql-container .keyword {\n color: #b11a04;\n}\n\n.graphiql-container .type-name {\n color: #ca9800;\n}\n\n.graphiql-container .field-name {\n color: #1f61a0;\n}\n\n.graphiql-container .field-short-description {\n color: #666;\n margin-left: 5px;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.graphiql-container .enum-value {\n color: #0b7fc7;\n}\n\n.graphiql-container .arg-name {\n color: #8b2bb9;\n}\n\n.graphiql-container .arg {\n display: block;\n margin-left: 1em;\n}\n\n.graphiql-container .arg:first-child:last-child,\n.graphiql-container .arg:first-child:nth-last-child(2),\n.graphiql-container .arg:first-child:nth-last-child(2) ~ .arg {\n display: inherit;\n margin: inherit;\n}\n\n.graphiql-container .arg:first-child:nth-last-child(2):after {\n content: ', ';\n}\n\n.graphiql-container .arg-default-value {\n color: #43a047;\n}\n\n.graphiql-container .doc-deprecation {\n background: #fffae8;\n box-shadow: inset 0 0 1px #bfb063;\n color: #867f70;\n line-height: 16px;\n margin: 8px -8px;\n max-height: 80px;\n overflow: hidden;\n padding: 8px;\n border-radius: 3px;\n}\n\n.graphiql-container .doc-deprecation:before {\n content: 'Deprecated:';\n color: #c79b2e;\n cursor: default;\n display: block;\n font-size: 9px;\n font-weight: bold;\n letter-spacing: 1px;\n line-height: 1;\n padding-bottom: 5px;\n text-transform: uppercase;\n user-select: none;\n}\n\n.graphiql-container .doc-deprecation > :first-child {\n margin-top: 0;\n}\n\n.graphiql-container .doc-deprecation > :last-child {\n margin-bottom: 0;\n}\n\n.graphiql-container .show-btn {\n -webkit-appearance: initial;\n display: block;\n border-radius: 3px;\n border: solid 1px #ccc;\n text-align: center;\n padding: 8px 12px 10px;\n width: 100%;\n box-sizing: border-box;\n background: #fbfcfc;\n color: #555;\n cursor: pointer;\n}\n\n.graphiql-container .search-box {\n border-bottom: 1px solid #d3d6db;\n display: flex;\n align-items: center;\n font-size: 14px;\n margin: -15px -15px 12px 0;\n position: relative;\n}\n\n.graphiql-container .search-box-icon {\n cursor: pointer;\n display: block;\n font-size: 24px;\n transform: rotate(-45deg);\n user-select: none;\n}\n\n.graphiql-container .search-box .search-box-clear {\n background-color: #d0d0d0;\n border-radius: 12px;\n color: #fff;\n cursor: pointer;\n font-size: 11px;\n padding: 1px 5px 2px;\n position: absolute;\n right: 3px;\n user-select: none;\n border: 0;\n}\n\n.graphiql-container .search-box .search-box-clear:hover {\n background-color: #b9b9b9;\n}\n\n.graphiql-container .search-box > input {\n border: none;\n box-sizing: border-box;\n font-size: 14px;\n outline: none;\n padding: 6px 24px 8px 20px;\n width: 100%;\n}\n\n.graphiql-container .error-container {\n font-weight: bold;\n left: 0;\n letter-spacing: 1px;\n opacity: 0.5;\n position: absolute;\n right: 0;\n text-align: center;\n text-transform: uppercase;\n top: 50%;\n transform: translate(0, -50%);\n}\n\n.graphiql-container .history-contents {\n font-family: 'Consolas', 'Inconsolata', 'Droid Sans Mono', 'Monaco', monospace;\n}\n\n.graphiql-container .history-contents {\n margin: 0;\n padding: 0;\n}\n\n.graphiql-container .history-contents li {\n align-items: center;\n display: flex;\n font-size: 12px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n margin: 0;\n padding: 8px;\n border-bottom: 1px solid #e0e0e0;\n}\n\n.graphiql-container .history-contents li button:not(.history-label) {\n display: none;\n margin-left: 10px;\n}\n\n.graphiql-container .history-contents li:hover button:not(.history-label),\n.graphiql-container\n .history-contents\n li:focus-within\n button:not(.history-label) {\n display: inline-block;\n}\n\n.graphiql-container .history-contents input,\n.graphiql-container .history-contents button {\n padding: 0;\n background: 0;\n border: 0;\n font-size: inherit;\n font-family: inherit;\n line-height: 14px;\n color: inherit;\n}\n\n.graphiql-container .history-contents input {\n flex-grow: 1;\n}\n\n.graphiql-container .history-contents input::placeholder {\n color: inherit;\n}\n\n.graphiql-container .history-contents button {\n cursor: pointer;\n text-align: left;\n}\n\n.graphiql-container .history-contents .history-label {\n flex-grow: 1;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n",""]);const _=h},3645:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,i,o){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(r)for(var s=0;s0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=o),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),i&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=i):u[4]="".concat(i)),t.push(u))}},t}},1667:e=>{"use strict";e.exports=function(e,t){return t||(t={}),e?(e=String(e.__esModule?e.default:e),/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]|(%20)/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e):e}},8081:e=>{"use strict";e.exports=function(e){return e[1]}},5875:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=Object.assign||function(e){for(var t=1;t0?""+a+s:a;var c=r.type.toString(),p={kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:t}},type:(0,l.parseType)(c),directives:[]},d=void 0,f={};if(null!=n){var h=(0,l.visit)(n,{Variable:function(t){var n,r=t.name.value,i=(n=r,(e.props.definition.variableDefinitions||[]).find((function(e){return e.variable.name.value===n})));if(f[r]=f[r]+1||1,i)return i.defaultValue}}),m="NonNullType"===p.type.kind?o({},p,{type:p.type.type}):p;d=o({},m,{defaultValue:h})}else d=p;var g=Object.entries(f).filter((function(e){var t=i(e,2);return t[0],t[1]<2})).map((function(e){var t=i(e,2),n=t[0];return t[1],n}));if(d){var v=e.props.setArgValue(d,!1);if(v){var y=v.definitions.find((function(t){return!!(t.operation&&t.name&&t.name.value&&e.props.definition.name&&e.props.definition.name.value)&&t.name.value===e.props.definition.name.value})),b=[].concat(u(y.variableDefinitions||[]),[d]).filter((function(e){return-1===g.indexOf(e.variable.name.value)})),_=o({},y,{variableDefinitions:b}),E=v.definitions.map((function(e){return y===e?_:e})),k=o({},v,{definitions:E});e.props.onCommit(k)}}}()},style:a.styles.actionButtonStyle},s.createElement("span",{style:{color:a.colors.variable}},"$")):null;return s.createElement("div",{style:{cursor:"pointer",minHeight:"16px",WebkitUserSelect:"none",userSelect:"none"},"data-arg-name":r.name,"data-arg-type":c.name,className:"graphiql-explorer-"+r.name},s.createElement("span",{style:{cursor:"pointer"},onClick:function(t){var r=!n;r?e.props.addArg(!0):e.props.removeArg(!0),e.setState({displayArgActions:r})}},(0,l.isInputObjectType)(c)?s.createElement("span",null,n?this.props.styleConfig.arrowOpen:this.props.styleConfig.arrowClosed):s.createElement(_,{checked:!!n,styleConfig:this.props.styleConfig}),s.createElement("span",{style:{color:a.colors.attribute},title:r.description,onMouseEnter:function(){null!=n&&e.setState({displayArgActions:!0})},onMouseLeave:function(){return e.setState({displayArgActions:!1})}},r.name,k(r)?"*":"",": ",h," ")," "),p||s.createElement("span",null)," ")}}]),t}(s.PureComponent),F=function(e){function t(){var e,n,r;p(this,t);for(var i=arguments.length,o=Array(i),a=0;a0&&e.setState({displayFieldActions:!0})},onMouseLeave:function(){return e.setState({displayFieldActions:!1})}},(0,l.isObjectType)(d)?s.createElement("span",null,p?this.props.styleConfig.arrowOpen:this.props.styleConfig.arrowClosed):null,(0,l.isObjectType)(d)?null:s.createElement(_,{checked:!!p,styleConfig:this.props.styleConfig}),s.createElement("span",{style:{color:c.colors.property},className:"graphiql-explorer-field-view"},r.name),this.state.displayFieldActions?s.createElement("button",{type:"submit",className:"toolbar-button",title:"Extract selections into a new reusable fragment",onClick:function(t){t.preventDefault(),t.stopPropagation();var n=d.name+"Fragment",r=(m||[]).filter((function(e){return e.name.value.startsWith(n)})).length;r>0&&(n=""+n+r);var i=p&&p.selectionSet?p.selectionSet.selections:[],a=[{kind:"FragmentSpread",name:{kind:"Name",value:n},directives:[]}],s={kind:"FragmentDefinition",name:{kind:"Name",value:n},typeCondition:{kind:"NamedType",name:{kind:"Name",value:d.name}},directives:[],selectionSet:{kind:"SelectionSet",selections:i}},l=e._modifyChildSelections(a,!1);if(l){var c=o({},l,{definitions:[].concat(u(l.definitions),[s])});e.props.onCommit(c)}else console.warn("Unable to complete extractFragment operation")},style:o({},c.styles.actionButtonStyle)},s.createElement("span",null,"…")):null),p&&f.length?s.createElement("div",{style:{marginLeft:16},className:"graphiql-explorer-graphql-arguments"},f.map((function(t){return s.createElement(A,{key:t.name,parentField:r,arg:t,selection:p,modifyArguments:e._setArguments,getDefaultScalarArgValue:e.props.getDefaultScalarArgValue,makeDefaultArg:e.props.makeDefaultArg,onRunOperation:e.props.onRunOperation,styleConfig:e.props.styleConfig,onCommit:e.props.onCommit,definition:e.props.definition})}))):null);if(p&&((0,l.isObjectType)(d)||(0,l.isInterfaceType)(d)||(0,l.isUnionType)(d))){var v=(0,l.isUnionType)(d)?{}:d.getFields(),y=p&&p.selectionSet?p.selectionSet.selections:[];return s.createElement("div",{className:"graphiql-explorer-"+r.name},g,s.createElement("div",{style:{marginLeft:16}},m?m.map((function(t){var n=i.getType(t.typeCondition.name.value),r=t.name.value;return n?s.createElement(L,{key:r,fragment:t,selections:y,modifySelections:e._modifyChildSelections,schema:i,styleConfig:e.props.styleConfig,onCommit:e.props.onCommit}):null})):null,Object.keys(v).sort().map((function(n){return s.createElement(t,{key:n,field:v[n],selections:y,modifySelections:e._modifyChildSelections,schema:i,getDefaultFieldNames:a,getDefaultScalarArgValue:e.props.getDefaultScalarArgValue,makeDefaultArg:e.props.makeDefaultArg,onRunOperation:e.props.onRunOperation,styleConfig:e.props.styleConfig,onCommit:e.props.onCommit,definition:e.props.definition,availableFragments:e.props.availableFragments})})),(0,l.isInterfaceType)(d)||(0,l.isUnionType)(d)?i.getPossibleTypes(d).map((function(t){return s.createElement(F,{key:t.name,implementingType:t,selections:y,modifySelections:e._modifyChildSelections,schema:i,getDefaultFieldNames:a,getDefaultScalarArgValue:e.props.getDefaultScalarArgValue,makeDefaultArg:e.props.makeDefaultArg,onRunOperation:e.props.onRunOperation,styleConfig:e.props.styleConfig,onCommit:e.props.onCommit,definition:e.props.definition})})):null))}return g}}]),t}(s.PureComponent),q={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",variableDefinitions:[],name:{kind:"Name",value:"MyQuery"},directives:[],selectionSet:{kind:"SelectionSet",selections:[]}}]},j=null;var V={buttonStyle:{fontSize:"1.2em",padding:"0px",backgroundColor:"white",border:"none",margin:"5px 0px",height:"40px",width:"100%",display:"block",maxWidth:"none"},actionButtonStyle:{padding:"0px",backgroundColor:"white",border:"none",margin:"0px",maxWidth:"none",height:"15px",width:"15px",display:"inline-block",fontSize:"smaller"},explorerActionsStyle:{margin:"4px -8px -8px",paddingLeft:"8px",bottom:"0px",width:"100%",textAlign:"center",background:"none",borderTop:"none",borderBottom:"none"}},z=function(e){function t(){var e,n,r;p(this,t);for(var i=arguments.length,a=Array(i),s=0;s{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Explorer=void 0;var r,i=(r=n(5875))&&r.__esModule?r:{default:r};t.Explorer=i.default,t.default=i.default},3927:(e,t,n)=>{"use strict";n.r(t),n.d(t,{DocExplorer:()=>j,GraphiQL:()=>de,QueryEditor:()=>m,ToolbarButton:()=>c,ToolbarGroup:()=>u,ToolbarMenu:()=>d,ToolbarMenuItem:()=>f,ToolbarSelect:()=>ke,ToolbarSelectOption:()=>we,VariableEditor:()=>g,default:()=>Se,fillLeafs:()=>Ne,getSelectedOperationName:()=>De,mergeAst:()=>Oe,onHasCompletion:()=>Ae});var r=n(7294),i=n(9361),o=(n(3935),function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a});function a(){var e=(0,i.f)({nonNull:!0}).queryEditor,t=(0,i.s)({nonNull:!0}),n=t.isFetching,a=t.run,s=t.stop,l=t.subscription,c=o((0,r.useState)(!1),2),u=c[0],p=c[1],d=o((0,r.useState)(null),2),f=d[0],h=d[1],m=n||Boolean(l),g=(null==e?void 0:e.operations)||[],v=g.length>1;return r.createElement("div",{className:"execute-button-wrap"},r.createElement("button",{type:"button",className:"execute-button",onMouseDown:m||!v||u?void 0:function(e){var t=!0,n=e.currentTarget;h(null),p(!0);var r=function(e){var i;t&&e.target===n?t=!1:(document.removeEventListener("mouseup",r),r=null,e.currentTarget&&(null===(i=n.parentNode)||void 0===i?void 0:i.compareDocumentPosition(e.currentTarget))&&Node.DOCUMENT_POSITION_CONTAINED_BY||p(!1))};document.addEventListener("mouseup",r)},onClick:m||!v?function(){m?s():a()}:void 0,title:"Execute Query (Ctrl-Enter)"},r.createElement("svg",{width:"34",height:"34"},m?r.createElement("path",{d:"M 10 10 L 23 10 L 23 23 L 10 23 z"}):r.createElement("path",{d:"M 11 9 L 24 16 L 11 23 z"}))),v&&u?r.createElement("ul",{className:"execute-options"},g.map((function(e,t){var n=e.name?e.name.value:"");return r.createElement("li",{key:"".concat(n,"-").concat(t),className:e===f?"selected":void 0,onMouseOver:function(){return h(e)},onMouseOut:function(){return h(null)},onMouseUp:function(){var t;p(!1),a(null===(t=e.name)||void 0===t?void 0:t.value)}},n)}))):null)}var s,l=(s=function(e,t){return s=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])},s(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}s(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(t){var n=e.call(this,t)||this;return n.handleClick=function(){try{n.props.onClick(),n.setState({error:null})}catch(e){if(e instanceof Error)return void n.setState({error:e});throw e}},n.state={error:null},n}return l(t,e),t.prototype.render=function(){var e=this.state.error;return r.createElement("button",{className:"toolbar-button"+(e?" error":""),onClick:this.handleClick,title:e?e.message:this.props.title,"aria-invalid":e?"true":"false"},this.props.label)},t}(r.Component);function u(e){var t=e.children;return r.createElement("div",{className:"toolbar-button-group"},t)}var p=function(){var e=function(t,n){return e=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,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),d=function(e){function t(t){var n=e.call(this,t)||this;return n._node=null,n._listener=null,n.handleOpen=function(e){h(e),n.setState({visible:!0}),n._subscribe()},n.state={visible:!1},n}return p(t,e),t.prototype.componentWillUnmount=function(){this._release()},t.prototype.render=function(){var e=this,t=this.state.visible;return r.createElement("a",{className:"toolbar-menu toolbar-button",onClick:this.handleOpen.bind(this),onMouseDown:h,ref:function(t){t&&(e._node=t)},title:this.props.title},this.props.label,r.createElement("svg",{width:"14",height:"8"},r.createElement("path",{fill:"#666",d:"M 5 1.5 L 14 1.5 L 9.5 7 z"})),r.createElement("ul",{className:"toolbar-menu-items"+(t?" open":"")},this.props.children))},t.prototype._subscribe=function(){this._listener||(this._listener=this.handleClick.bind(this),document.addEventListener("click",this._listener))},t.prototype._release=function(){this._listener&&(document.removeEventListener("click",this._listener),this._listener=null)},t.prototype.handleClick=function(e){this._node!==e.target&&(e.preventDefault(),this.setState({visible:!1}),this._release())},t}(r.Component),f=function(e){var t=e.onSelect,n=e.title,i=e.label;return r.createElement("li",{onMouseOver:function(e){e.currentTarget.className="hover"},onMouseOut:function(e){e.currentTarget.className=""},onMouseDown:h,onMouseUp:t,title:n},i)};function h(e){e.preventDefault()}function m(e){var t=(0,i.k)(e);return r.createElement("section",{className:"query-editor","aria-label":"Query Editor",ref:t})}function g(e){var t=e.active,n=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}(r.useState(!1),2),l=s[0],c=s[1],u=a[a.length-1].def;if(!u||(0,b.P9)(u))return null;if(u&&"args"in u&&u.args.length>0){t=r.createElement("div",{id:"doc-args",className:"doc-category"},r.createElement("div",{className:"doc-category-title"},"arguments"),u.args.filter((function(e){return!e.deprecationReason})).map((function(e){return r.createElement("div",{key:e.name,className:"doc-category-item"},r.createElement("div",null,r.createElement(x,{arg:e})),r.createElement(A,{className:"doc-value-description",markdown:e.description}),e&&"deprecationReason"in e&&r.createElement(A,{className:"doc-deprecation",markdown:null==e?void 0:e.deprecationReason}))})));var p=u.args.filter((function(e){return Boolean(e.deprecationReason)}));p.length>0&&(n=r.createElement("div",{id:"doc-deprecated-args",className:"doc-category"},r.createElement("div",{className:"doc-category-title"},"deprecated arguments"),l?p.map((function(e,t){return r.createElement("div",{key:t},r.createElement("div",null,r.createElement(x,{arg:e})),r.createElement(A,{className:"doc-value-description",markdown:e.description}),e&&"deprecationReason"in e&&r.createElement(A,{className:"doc-deprecation",markdown:null==e?void 0:e.deprecationReason}))})):r.createElement("button",{className:"show-btn",onClick:function(){return c(!l)}},"Show deprecated arguments...")))}return(null===(e=null==u?void 0:u.astNode)||void 0===e?void 0:e.directives)&&u.astNode.directives.length>0&&(o=r.createElement("div",{id:"doc-directives",className:"doc-category"},r.createElement("div",{className:"doc-category-title"},"directives"),u.astNode.directives.map((function(e){return r.createElement("div",{key:e.name.value,className:"doc-category-item"},r.createElement("div",null,r.createElement(T,{directive:e})))})))),r.createElement("div",null,r.createElement(A,{className:"doc-type-description",markdown:u.description||"No Description"}),u&&"deprecationReason"in u&&r.createElement(A,{className:"doc-deprecation",markdown:u.deprecationReason}),r.createElement("div",{className:"doc-category"},r.createElement("div",{className:"doc-category-title"},"type"),r.createElement(_,{type:u.type})),t,o,n)}function D(){var e,t,n=(0,i.D)({nonNull:!0}).schema;if(!n)return null;var o=n.getQueryType(),a=null===(e=n.getMutationType)||void 0===e?void 0:e.call(n),s=null===(t=n.getSubscriptionType)||void 0===t?void 0:t.call(n);return r.createElement("div",null,r.createElement(A,{className:"doc-type-description",markdown:n.description||"A GraphQL schema provides a root type for each kind of operation."}),r.createElement("div",{className:"doc-category"},r.createElement("div",{className:"doc-category-title"},"root types"),o?r.createElement("div",{className:"doc-category-item"},r.createElement("span",{className:"keyword"},"query"),": ",r.createElement(_,{type:o})):null,a&&r.createElement("div",{className:"doc-category-item"},r.createElement("span",{className:"keyword"},"mutation"),": ",r.createElement(_,{type:a})),s&&r.createElement("div",{className:"doc-category-item"},r.createElement("span",{className:"keyword"},"subscription"),": ",r.createElement(_,{type:s}))))}var O=function(){var e=function(t,n){return e=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,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const I=function(e){function t(t){var n,r,i=e.call(this,t)||this;return i.handleChange=function(e){var t=e.currentTarget.value;i.setState({value:t}),i.debouncedOnSearch(t)},i.handleClear=function(){i.setState({value:""}),i.props.onSearch("")},i.state={value:t.value||""},i.debouncedOnSearch=(200,n=i.props.onSearch,function(){for(var e=this,t=[],i=0;i=100)return"break";var t=d[e];if(l!==t&&R(e,s)&&u.push(r.createElement("div",{className:"doc-category-item",key:e},r.createElement(_,{type:t}))),t&&"getFields"in t){var n=t.getFields();Object.keys(n).forEach((function(i){var o,a=n[i];if(!R(i,s)){if(!("args"in a)||!a.args.length)return;if(0===(o=a.args.filter((function(e){return R(e.name,s)}))).length)return}var u=r.createElement("div",{className:"doc-category-item",key:e+"."+i},l!==t&&[r.createElement(_,{key:"type",type:t}),"."],r.createElement(F,{field:a}),o&&["(",r.createElement("span",{key:"args"},o.map((function(e){return r.createElement(x,{key:e.name,arg:e,showDefaultValue:!1})}))),")"]);l===t?c.push(u):p.push(u)}))}};try{for(var m=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(f),g=m.next();!g.done&&"break"!==h(g.value);g=m.next());}catch(t){e={error:t}}finally{try{g&&!g.done&&(t=m.return)&&t.call(m)}finally{if(e)throw e.error}}return c.length+u.length+p.length===0?r.createElement("span",{className:"doc-alert-text"},"No results found."):l&&u.length+p.length>0?r.createElement("div",null,c,r.createElement("div",{className:"doc-category"},r.createElement("div",{className:"doc-category-title"},"other results"),u,p)):r.createElement("div",{className:"doc-search-items"},c,u,p)}function R(e,t){try{var n=t.replace(/[^_0-9A-Za-z]/g,(function(e){return"\\"+e}));return-1!==e.search(new RegExp(n,"i"))}catch(n){return-1!==e.toLowerCase().indexOf(t.toLowerCase())}}function M(){var e=(0,i.D)({nonNull:!0}).schema,t=(0,i.x)({nonNull:!0}).explorerNavStack,n=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}((0,r.useState)(!1),2),o=n[0],a=n[1],s=t[t.length-1].def;if(!e||!(0,b.Zs)(s))return null;var l,c,u,p,d,f=null,h=[];if((0,b.EN)(s)?(f="possible types",h=e.getPossibleTypes(s)):(0,b.oT)(s)?(f="implementations",h=e.getPossibleTypes(s)):(0,b.lp)(s)&&(f="implements",h=s.getInterfaces()),h&&h.length>0&&(l=r.createElement("div",{id:"doc-types",className:"doc-category"},r.createElement("div",{className:"doc-category-title"},f),h.map((function(e){return r.createElement("div",{key:e.name,className:"doc-category-item"},r.createElement(_,{type:e}))})))),s&&"getFields"in s){var m=s.getFields(),g=Object.keys(m).map((function(e){return m[e]}));c=r.createElement("div",{id:"doc-fields",className:"doc-category"},r.createElement("div",{className:"doc-category-title"},"fields"),g.filter((function(e){return!e.deprecationReason})).map((function(e){return r.createElement(P,{key:e.name,type:s,field:e})})));var v=g.filter((function(e){return Boolean(e.deprecationReason)}));v.length>0&&(u=r.createElement("div",{id:"doc-deprecated-fields",className:"doc-category"},r.createElement("div",{className:"doc-category-title"},"deprecated fields"),o?v.map((function(e){return r.createElement(P,{key:e.name,type:s,field:e})})):r.createElement("button",{className:"show-btn",onClick:function(){a(!0)}},"Show deprecated fields...")))}if((0,b.EM)(s)){var y=s.getValues();p=r.createElement("div",{className:"doc-category"},r.createElement("div",{className:"doc-category-title"},"values"),y.filter((function(e){return Boolean(!e.deprecationReason)})).map((function(e){return r.createElement(q,{key:e.name,value:e})})));var E=y.filter((function(e){return Boolean(e.deprecationReason)}));E.length>0&&(d=r.createElement("div",{className:"doc-category"},r.createElement("div",{className:"doc-category-title"},"deprecated values"),o?E.map((function(e){return r.createElement(q,{key:e.name,value:e})})):r.createElement("button",{className:"show-btn",onClick:function(){a(!0)}},"Show deprecated values...")))}return r.createElement("div",null,r.createElement(A,{className:"doc-type-description",markdown:"description"in s&&s.description||"No Description"}),(0,b.lp)(s)&&l,c,u,p,d,!(0,b.lp)(s)&&l)}function P(e){var t=e.field;return r.createElement("div",{className:"doc-category-item"},r.createElement(F,{field:t}),"args"in t&&t.args&&t.args.length>0&&["(",r.createElement("span",{key:"args"},t.args.filter((function(e){return!e.deprecationReason})).map((function(e){return r.createElement(x,{key:e.name,arg:e})}))),")"],": ",r.createElement(_,{type:t.type}),r.createElement(w,{field:t}),t.description&&r.createElement(A,{className:"field-short-description",markdown:t.description}),"deprecationReason"in t&&t.deprecationReason&&r.createElement(A,{className:"doc-deprecation",markdown:t.deprecationReason}))}function q(e){var t=e.value;return r.createElement("div",{className:"doc-category-item"},r.createElement("div",{className:"enum-value"},t.name),r.createElement(A,{className:"doc-value-description",markdown:t.description}),t.deprecationReason&&r.createElement(A,{className:"doc-deprecation",markdown:t.deprecationReason}))}function j(e){var t=(0,i.D)({nonNull:!0}),n=t.fetchError,o=t.isFetching,a=t.schema,s=t.validationErrors,l=(0,i.x)({nonNull:!0}),c=l.explorerNavStack,u=l.hide,p=l.pop,d=l.showSearch,f=c[c.length-1],h=void 0===e.schema?a:e.schema,m=null;n?m=r.createElement("div",{className:"error-container"},"Error fetching schema"):s?m=r.createElement("div",{className:"error-container"},"Schema is invalid: ",s[0].message):o?m=r.createElement("div",{className:"spinner-container"},r.createElement("div",{className:"spinner"})):h?f.search?m=r.createElement(L,null):1===c.length?m=r.createElement(D,null):(0,b.P9)(f.def)?m=r.createElement(M,null):f.def&&(m=r.createElement(N,null)):m=r.createElement("div",{className:"error-container"},"No Schema Available");var g,v=1===c.length||(0,b.P9)(f.def)&&"getFields"in f.def;return c.length>1&&(g=c[c.length-2].name),r.createElement("section",{className:"doc-explorer",key:f.name,"aria-label":"Documentation Explorer"},r.createElement("div",{className:"doc-explorer-title-bar"},g&&r.createElement("button",{className:"doc-explorer-back",onClick:p,"aria-label":"Go back to ".concat(g)},g),r.createElement("div",{className:"doc-explorer-title"},f.title||f.name),r.createElement("div",{className:"doc-explorer-rhs"},r.createElement("button",{className:"docExplorerHide",onClick:function(){var t;u(),null===(t=e.onClose)||void 0===t||t.call(e)},"aria-label":"Close Documentation Explorer"},"✕"))),r.createElement("div",{className:"doc-explorer-contents"},v&&r.createElement(I,{value:f.search,placeholder:"Search ".concat(f.name,"..."),onSearch:d}),m))}var V=function(){return V=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}((0,r.useState)(!1),2),u=c[0],p=c[1];(0,r.useEffect)((function(){u&&l.current&&l.current.focus()}),[u]);var d=e.item.label||e.item.operationName||(null===(t=e.item.query)||void 0===t?void 0:t.split("\n").filter((function(e){return 0!==e.indexOf("#")})).join("")),f=e.item.favorite?"★":"☆";return r.createElement("li",{className:u?"editable":void 0},u?r.createElement("input",{type:"text",defaultValue:e.item.label,ref:l,onBlur:function(t){t.stopPropagation(),p(!1),o(V(V({},e.item),{label:t.target.value}))},onKeyDown:function(t){13===t.keyCode&&(t.stopPropagation(),p(!1),o(V(V({},e.item),{label:t.currentTarget.value})))},placeholder:"Type a label"}):r.createElement("button",{className:"history-label",onClick:function(){s(e.item)}},d),r.createElement("button",{onClick:function(e){e.stopPropagation(),p(!0)},"aria-label":"Edit label"},"✎"),r.createElement("button",{className:e.item.favorite?"favorited":void 0,onClick:function(t){t.stopPropagation(),a(e.item)},"aria-label":e.item.favorite?"Remove favorite":"Add favorite"},f))}function B(e,t){for(var n=0;nObject.assign(Object.assign({},e),{message:e.message,stack:e.stack}))(e):e}var Q=n(9691),$=n(7766),W=n(7636),Y=n(6450);function K(e,t,n){const r=[];if(!e||!t)return{insertions:r,result:t};let i;try{i=(0,Q.Qc)(t)}catch(e){return{insertions:r,result:t}}const o=n||J,a=new $.a(e);return(0,W.Vn)(i,{leave(e){a.leave(e)},enter(e){if(a.enter(e),"Field"===e.kind&&!e.selectionSet){const n=X(function(e){if(e)return e}(a.getType()),o);if(n&&e.loc){const i=function(e,t){let n=t,r=t;for(;n;){const t=e.charCodeAt(n-1);if(10===t||13===t||8232===t||8233===t)break;n--,9!==t&&11!==t&&12!==t&&32!==t&&160!==t&&(r=n)}return e.substring(n,r)}(t,e.loc.start);r.push({index:e.loc.end,string:" "+(0,E.S)(n).replace(/\n/g,"\n"+i)})}}}}),{insertions:r,result:ee(t,r)}}function J(e){if(!("getFields"in e))return[];const t=e.getFields();if(t.id)return["id"];if(t.edges)return["edges"];if(t.node)return["node"];const n=[];return Object.keys(t).forEach((e=>{(0,b.UT)(t[e].type)&&n.push(e)})),n}function X(e,t){const n=(0,b.xC)(e);if(!e||(0,b.UT)(e))return;const r=t(n);return Array.isArray(r)&&0!==r.length&&"getFields"in n?{kind:Y.h.SELECTION_SET,selections:r.map((e=>{const r=n.getFields()[e],i=r?r.type:null;return{kind:Y.h.FIELD,name:{kind:Y.h.NAME,value:e},selectionSet:X(i,t)}}))}:void 0}function ee(e,t){if(0===t.length)return e;let n="",r=0;return t.forEach((({index:t,string:i})=>{n+=e.slice(r,t)+i,r=t})),n+=e.slice(r),n}function te(e,t,n){var r;const i=n?(0,b.xC)(n).name:null,o=[],a=[];for(let s of t){if("FragmentSpread"===s.kind){const t=s.name.value;if(!s.directives||0===s.directives.length){if(a.indexOf(t)>=0)continue;a.push(t)}const n=e[s.name.value];if(n){const{typeCondition:e,directives:t,selectionSet:r}=n;s={kind:Y.h.INLINE_FRAGMENT,typeCondition:e,directives:t,selectionSet:r}}}if(s.kind===Y.h.INLINE_FRAGMENT&&(!s.directives||0===(null===(r=s.directives)||void 0===r?void 0:r.length))){const t=s.typeCondition?s.typeCondition.name.value:null;if(!t||t===i){o.push(...te(e,s.selectionSet.selections,n));continue}}o.push(s)}return o}function ne(e,t){const n=t?new $.a(t):null,r=Object.create(null);for(const t of e.definitions)t.kind===Y.h.FRAGMENT_DEFINITION&&(r[t.name.value]=t);const i={SelectionSet(e){const t=n?n.getParentType():null;let{selections:i}=e;return i=te(r,i,t),i=function(e,t){const n=new Map,r=[];for(const t of e)if("Field"===t.kind){const e=(i=t).alias?i.alias.value:i.name.value,o=n.get(e);if(t.directives&&t.directives.length){const e=Object.assign({},t);r.push(e)}else if(o&&o.selectionSet&&t.selectionSet)o.selectionSet.selections=[...o.selectionSet.selections,...t.selectionSet.selections];else if(!o){const i=Object.assign({},t);n.set(e,i),r.push(i)}}else r.push(t);var i;return r}(i),Object.assign(Object.assign({},e),{selections:i})},FragmentDefinition:()=>null};return(0,W.Vn)(e,n?(0,$.y)(n,i):i)}function re(e,t,n){if(!n||n.length<1)return;const r=n.map((e=>e.name&&e.name.value));if(t&&-1!==r.indexOf(t))return t;if(t&&e){const n=e.map((e=>e.name&&e.name.value)).indexOf(t);if(-1!==n&&nH(e)))}):G({errors:H(e)})}(e)},t.Logo=ge,t.Toolbar=ve,t.Footer=ye,t.QueryEditor=m,t.VariableEditor=g,t.HeaderEditor=v,t.ResultViewer=y,t.Button=c,t.ToolbarButton=c,t.Group=u,t.Menu=d,t.MenuItem=f,t}(r.Component),fe=(0,r.forwardRef)((function(e,t){var n=e.dangerouslyAssumeSchemaIsValid,o=e.docExplorerOpen,a=e.fetcher,s=e.inputValueDeprecation,l=e.introspectionQueryName,c=e.maxHistoryLength,u=e.onToggleHistory,p=e.onToggleDocs,d=e.storage,f=e.schema,h=e.schemaDescription,m=pe(e,["dangerouslyAssumeSchemaIsValid","docExplorerOpen","fetcher","inputValueDeprecation","introspectionQueryName","maxHistoryLength","onToggleHistory","onToggleDocs","storage","schema","schemaDescription"]);if("function"!=typeof a)throw new TypeError("GraphiQL requires a fetcher function.");return r.createElement(i.G,{storage:d},r.createElement(i.y,{maxHistoryLength:c,onToggle:u},r.createElement(i.a,{defaultQuery:m.defaultQuery,headers:m.headers,onTabChange:"object"==typeof m.tabs?m.tabs.onTabChange:void 0,query:m.query,shouldPersistHeaders:m.shouldPersistHeaders,variables:m.variables},r.createElement(i.B,{dangerouslyAssumeSchemaIsValid:n,fetcher:a,inputValueDeprecation:s,introspectionQueryName:l,schema:f,schemaDescription:h},r.createElement(i.r,{externalFragments:m.externalFragments,fetcher:a,onEditOperationName:m.onEditOperationName,shouldPersistHeaders:m.shouldPersistHeaders},r.createElement(i.w,{isVisible:o,onToggleVisibility:p},r.createElement(he,ue({},m,{ref:t}))))))))})),he=(0,r.forwardRef)((function(e,t){var n=e.getDefaultFieldNames,o=pe(e,["getDefaultFieldNames"]),a=(0,i.f)({nonNull:!0}),s=(0,i.s)({nonNull:!0}),l=(0,i.x)(),c=(0,i.z)(),u=(0,i.D)({nonNull:!0}),p=(0,i.J)(),d=(0,i.u)({getDefaultFieldNames:n}),f=(0,i.e)({onCopyQuery:o.onCopyQuery}),h=(0,i.h)(),m=(0,i.j)(),g=(0,i.K)({defaultSizeRelation:3,direction:"horizontal",initiallyHidden:(null==l?void 0:l.isVisible)?void 0:"second",onHiddenElementChange:function(e){"second"===e?null==l||l.hide():null==l||l.show()},sizeThresholdSecond:200,storageKey:"docExplorerFlex"}),v=(0,i.K)({direction:"horizontal",storageKey:"editorFlex"}),y=(0,i.K)({defaultSizeRelation:3,direction:"vertical",initiallyHidden:void 0!==o.defaultVariableEditorOpen?o.defaultVariableEditorOpen?void 0:"second":void 0!==o.defaultSecondaryEditorOpen?o.defaultSecondaryEditorOpen?void 0:"second":a.initialVariables||a.initialHeaders?void 0:"second",sizeThresholdSecond:60,storageKey:"secondaryEditorFlex"});return r.createElement(me,ue({},o,{editorContext:a,executionContext:s,explorerContext:l,historyContext:c,schemaContext:u,storageContext:p,autoCompleteLeafs:d,copy:f,merge:h,prettify:m,docResize:g,editorResize:v,secondaryEditorResize:y,ref:t}))})),me=function(e){function t(t){var n=e.call(this,t)||this;return n.state={activeSecondaryEditor:"variable"},n}return ce(t,e),t.prototype.render=function(){var e,t,n,i,o=this,s=r.Children.toArray(this.props.children),l=B(s,(function(e){return be(e,de.Logo)}))||r.createElement(de.Logo,null),u=B(s,(function(e){return be(e,de.Toolbar)}))||r.createElement(de.Toolbar,null,r.createElement(c,{onClick:function(){o.props.prettify()},title:"Prettify Query (Shift-Ctrl-P)",label:"Prettify"}),r.createElement(c,{onClick:function(){o.props.merge()},title:"Merge Query (Shift-Ctrl-M)",label:"Merge"}),r.createElement(c,{onClick:function(){o.props.copy()},title:"Copy Query (Shift-Ctrl-C)",label:"Copy"}),r.createElement(c,{onClick:function(){var e;return null===(e=o.props.historyContext)||void 0===e?void 0:e.toggle()},title:(null===(e=this.props.historyContext)||void 0===e?void 0:e.isVisible)?"Hide History":"Show History",label:"History"}),(null===(t=this.props.toolbar)||void 0===t?void 0:t.additionalContent)?this.props.toolbar.additionalContent:null),p=B(s,(function(e){return be(e,de.Footer)})),d=null===(n=this.props.headerEditorEnabled)||void 0===n||n;return r.createElement("div",{"data-testid":"graphiql-container",className:"graphiql-container"},r.createElement("div",{ref:this.props.docResize.firstRef},(null===(i=this.props.historyContext)||void 0===i?void 0:i.isVisible)&&r.createElement("div",{className:"historyPaneWrap",style:{width:"230px",zIndex:7}},r.createElement(z,null)),r.createElement("div",{className:"editorWrap"},r.createElement("div",{className:"topBarWrap"},this.props.beforeTopBarContent,r.createElement("div",{className:"topBar"},l,r.createElement(a,null),u),this.props.explorerContext&&!this.props.explorerContext.isVisible&&r.createElement("button",{className:"docExplorerShow",onClick:function(){var e;null===(e=o.props.explorerContext)||void 0===e||e.show(),o.props.docResize.setHiddenElement(null)},"aria-label":"Open Documentation Explorer"},"Docs")),this.props.tabs?r.createElement(le,{tabsProps:{"aria-label":"Select active operation"}},this.props.editorContext.tabs.map((function(e,t){return r.createElement(ae,{key:e.id,isActive:t===o.props.editorContext.activeTabIndex,title:e.title,isCloseable:o.props.editorContext.tabs.length>1,onSelect:function(){o.props.executionContext.stop(),o.props.editorContext.changeTab(t)},onClose:function(){o.props.editorContext.activeTabIndex===t&&o.props.executionContext.stop(),o.props.editorContext.closeTab(t)},tabProps:{"aria-controls":"sessionWrap",id:"session-tab-".concat(t)}})})),r.createElement(se,{onClick:function(){o.props.editorContext.addTab()}})):null,r.createElement("div",{role:"tabpanel",id:"sessionWrap",className:"editorBar","aria-labelledby":"session-tab-".concat(this.props.editorContext.activeTabIndex)},r.createElement("div",{ref:this.props.editorResize.firstRef},r.createElement("div",{className:"queryWrap"},r.createElement("div",{ref:this.props.secondaryEditorResize.firstRef},r.createElement(m,{editorTheme:this.props.editorTheme,externalFragments:this.props.externalFragments,onClickReference:function(){"second"===o.props.docResize.hiddenElement&&o.props.docResize.setHiddenElement(null)},keyMap:this.props.keyMap,onCopyQuery:this.props.onCopyQuery,onEdit:this.props.onEditQuery,onEditOperationName:this.props.onEditOperationName,readOnly:this.props.readOnly,validationRules:this.props.validationRules})),r.createElement("div",{ref:this.props.secondaryEditorResize.dragBarRef},r.createElement("div",{className:"secondary-editor-title variable-editor-title",id:"secondary-editor-title"},r.createElement("div",{className:"variable-editor-title-text".concat("variable"===this.state.activeSecondaryEditor?" active":""),onClick:function(){"second"===o.props.secondaryEditorResize.hiddenElement&&o.props.secondaryEditorResize.setHiddenElement(null),o.setState({activeSecondaryEditor:"variable"},(function(){var e;null===(e=o.props.editorContext.variableEditor)||void 0===e||e.refresh()}))}},"Query Variables"),d&&r.createElement("div",{style:{marginLeft:"20px"},className:"variable-editor-title-text".concat("header"===this.state.activeSecondaryEditor?" active":""),onClick:function(){"second"===o.props.secondaryEditorResize.hiddenElement&&o.props.secondaryEditorResize.setHiddenElement(null),o.setState({activeSecondaryEditor:"header"},(function(){var e;null===(e=o.props.editorContext.headerEditor)||void 0===e||e.refresh()}))}},"Request Headers"))),r.createElement("div",{ref:this.props.secondaryEditorResize.secondRef},r.createElement("section",{className:"variable-editor secondary-editor","aria-label":"variable"===this.state.activeSecondaryEditor?"Query Variables":"Request Headers"},r.createElement(g,{onEdit:this.props.onEditVariables,editorTheme:this.props.editorTheme,readOnly:this.props.readOnly,active:"variable"===this.state.activeSecondaryEditor,keyMap:this.props.keyMap}),d&&r.createElement(v,{active:"header"===this.state.activeSecondaryEditor,editorTheme:this.props.editorTheme,onEdit:this.props.onEditHeaders,readOnly:this.props.readOnly,shouldPersistHeaders:this.props.shouldPersistHeaders,keyMap:this.props.keyMap}))))),r.createElement("div",{ref:this.props.editorResize.dragBarRef},r.createElement("div",{className:"editor-drag-bar"})),r.createElement("div",{ref:this.props.editorResize.secondRef},r.createElement("div",{className:"resultWrap"},this.props.executionContext.isFetching&&r.createElement("div",{className:"spinner-container"},r.createElement("div",{className:"spinner"})),r.createElement(y,{value:this.props.response,editorTheme:this.props.editorTheme,ResponseTooltip:this.props.ResultsTooltip,keyMap:this.props.keyMap}),p))))),r.createElement("div",{ref:this.props.docResize.dragBarRef},r.createElement("div",{className:"docExplorerResizer"})),r.createElement("div",{ref:this.props.docResize.secondRef},r.createElement("div",{className:"docExplorerWrap"},r.createElement(j,{onClose:function(){return o.props.docResize.setHiddenElement("second")}}))))},t.prototype.getQueryEditor=function(){return this.props.editorContext.queryEditor||null},t.prototype.getVariableEditor=function(){return this.props.editorContext.variableEditor||null},t.prototype.getHeaderEditor=function(){return this.props.editorContext.headerEditor||null},t.prototype.refresh=function(){var e,t,n,r;null===(e=this.props.editorContext.queryEditor)||void 0===e||e.refresh(),null===(t=this.props.editorContext.variableEditor)||void 0===t||t.refresh(),null===(n=this.props.editorContext.headerEditor)||void 0===n||n.refresh(),null===(r=this.props.editorContext.responseEditor)||void 0===r||r.refresh()},t.prototype.autoCompleteLeafs=function(){return this.props.autoCompleteLeafs()},t}(r.Component);function ge(e){return r.createElement("div",{className:"title"},e.children||r.createElement("span",null,"Graph",r.createElement("em",null,"i"),"QL"))}function ve(e){return r.createElement("div",{className:"toolbar",role:"toolbar","aria-label":"Editor Commands"},e.children)}function ye(e){return r.createElement("div",{className:"footer"},e.children)}function be(e,t){var n;return!(!(null===(n=null==e?void 0:e.type)||void 0===n?void 0:n.displayName)||e.type.displayName!==t.displayName)||e.type===t}ge.displayName="GraphiQLLogo",ve.displayName="GraphiQLToolbar",ye.displayName="GraphiQLFooter";var _e=function(){var e=function(t,n){return e=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,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ee=function(){return Ee=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},Ce=function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;isetTimeout(e,t+Math.floor(2700*Math.random()+300))))},shouldRetry:m=s,isFatalConnectionProblem:g,on:v,webSocketImpl:y,generateID:b=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(e=>{const t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}))},jsonMessageReplacer:_,jsonMessageReviver:E}=e;let k;if(y){if(!("function"==typeof(w=y)&&"constructor"in w&&"CLOSED"in w&&"CLOSING"in w&&"CONNECTING"in w&&"OPEN"in w))throw new Error("Invalid WebSocket implementation provided");k=y}else"undefined"!=typeof WebSocket?k=WebSocket:void 0!==n.g?k=n.g.WebSocket||n.g.MozWebSocket:"undefined"!=typeof window&&(k=window.WebSocket||window.MozWebSocket);var w;if(!k)throw new Error("WebSocket implementation missing; on Node you can `import WebSocket from 'ws';` and pass `webSocketImpl: WebSocket` to `createClient`");const x=k,T=(()=>{const e=(()=>{const e={};return{on:(t,n)=>(e[t]=n,()=>{delete e[t]}),emit(t){var n;"id"in t&&(null===(n=e[t.id])||void 0===n||n.call(e,t))}}})(),t={connecting:(null==v?void 0:v.connecting)?[v.connecting]:[],opened:(null==v?void 0:v.opened)?[v.opened]:[],connected:(null==v?void 0:v.connected)?[v.connected]:[],ping:(null==v?void 0:v.ping)?[v.ping]:[],pong:(null==v?void 0:v.pong)?[v.pong]:[],message:(null==v?void 0:v.message)?[e.emit,v.message]:[e.emit],closed:(null==v?void 0:v.closed)?[v.closed]:[],error:(null==v?void 0:v.error)?[v.error]:[]};return{onMessage:e.on,on(e,n){const r=t[e];return r.push(n),()=>{r.splice(r.indexOf(n),1)}},emit(e,...n){for(const r of[...t[e]])r(...n)}}})();function C(e){const t=[T.on("error",(n=>{t.forEach((e=>e())),e(n)})),T.on("closed",(n=>{t.forEach((e=>e())),e(n)}))]}let S,A=0,N=!1,D=0,O=!1;async function I(){const[e,n]=await(null!=S?S:S=new Promise(((e,n)=>(async()=>{if(N){if(await h(D),!A)return S=void 0,n({code:1e3,reason:"All Subscriptions Gone"});D++}T.emit("connecting");const i=new x("function"==typeof t?await t():t,o.GRAPHQL_TRANSPORT_WS_PROTOCOL);let l,c;function f(){isFinite(u)&&u>0&&(clearTimeout(c),c=setTimeout((()=>{i.readyState===x.OPEN&&(i.send((0,o.stringifyMessage)({type:o.MessageType.Ping})),T.emit("ping",!1,void 0))}),u))}C((e=>{S=void 0,clearTimeout(l),clearTimeout(c),n(e),s(e)&&4499===e.code&&(i.close(4499,"Terminated"),i.onerror=null,i.onclose=null)})),i.onerror=e=>T.emit("error",e),i.onclose=e=>T.emit("closed",e),i.onopen=async()=>{try{T.emit("opened",i);const e="function"==typeof r?await r():r;if(i.readyState!==x.OPEN)return;i.send((0,o.stringifyMessage)(e?{type:o.MessageType.ConnectionInit,payload:e}:{type:o.MessageType.ConnectionInit},_)),isFinite(d)&&d>0&&(l=setTimeout((()=>{i.close(o.CloseCode.ConnectionAcknowledgementTimeout,"Connection acknowledgement timeout")}),d)),f()}catch(e){T.emit("error",e),i.close(o.CloseCode.InternalClientError,(0,a.limitCloseReason)(e instanceof Error?e.message:new Error(e).message,"Internal client error"))}};let m=!1;i.onmessage=({data:t})=>{try{const n=(0,o.parseMessage)(t,E);if(T.emit("message",n),"ping"===n.type||"pong"===n.type)return T.emit(n.type,!0,n.payload),void("pong"===n.type?f():p||(i.send((0,o.stringifyMessage)(n.payload?{type:o.MessageType.Pong,payload:n.payload}:{type:o.MessageType.Pong})),T.emit("pong",!1,n.payload)));if(m)return;if(n.type!==o.MessageType.ConnectionAck)throw new Error(`First message cannot be of type ${n.type}`);clearTimeout(l),m=!0,T.emit("connected",i,n.payload),N=!1,D=0,e([i,new Promise(((e,t)=>C(t)))])}catch(e){i.onmessage=null,T.emit("error",e),i.close(o.CloseCode.BadResponse,(0,a.limitCloseReason)(e instanceof Error?e.message:new Error(e).message,"Bad response"))}}})())));e.readyState===x.CLOSING&&await n;let i=()=>{};const l=new Promise((e=>i=e));return[e,i,Promise.race([l.then((()=>{if(!A){const t=()=>e.close(1e3,"Normal Closure");isFinite(c)&&c>0?setTimeout((()=>{A||e.readyState!==x.OPEN||t()}),c):t()}})),n])]}function F(e){if(s(e)&&(t=e.code,![1e3,1001,1006,1005,1012,1013,1013].includes(t)&&t>=1e3&&t<=1999||[o.CloseCode.InternalServerError,o.CloseCode.InternalClientError,o.CloseCode.BadRequest,o.CloseCode.BadResponse,o.CloseCode.Unauthorized,o.CloseCode.SubprotocolNotAcceptable,o.CloseCode.SubscriberAlreadyExists,o.CloseCode.TooManyInitialisationRequests].includes(e.code)))throw e;var t;if(O)return!1;if(s(e)&&1e3===e.code)return A>0;if(!f||D>=f)throw e;if(!m(e))throw e;if(null==g?void 0:g(e))throw e;return N=!0}return i||(async()=>{for(A++;;)try{const[,,e]=await I();await e}catch(e){try{if(!F(e))return}catch(e){return null==l?void 0:l(e)}}})(),{on:T.on,subscribe(e,t){const n=b();let r=!1,i=!1,a=()=>{A--,r=!0};return(async()=>{for(A++;;)try{const[s,l,c]=await I();if(r)return l();const u=T.onMessage(n,(e=>{switch(e.type){case o.MessageType.Next:return void t.next(e.payload);case o.MessageType.Error:return i=!0,r=!0,t.error(e.payload),void a();case o.MessageType.Complete:return r=!0,void a()}}));return s.send((0,o.stringifyMessage)({id:n,type:o.MessageType.Subscribe,payload:e},_)),a=()=>{r||s.readyState!==x.OPEN||s.send((0,o.stringifyMessage)({id:n,type:o.MessageType.Complete},_)),A--,r=!0,l()},void await c.finally(u)}catch(e){if(!F(e))return}})().then((()=>{i||t.complete()})).catch((e=>{t.error(e)})),()=>{r||a()}},async dispose(){if(O=!0,S){const[e]=await S;e.close(1e3,"Normal Closure")}},terminate(){S&&T.emit("closed",{code:4499,reason:"Terminated",wasClean:!1})}}}},1655:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringifyMessage=t.parseMessage=t.isMessage=t.validateMessage=t.MessageType=t.CloseCode=t.DEPRECATED_GRAPHQL_WS_PROTOCOL=t.GRAPHQL_TRANSPORT_WS_PROTOCOL=void 0;const r=n(7315);var i,o;function a(e){if(!(0,r.isObject)(e))throw new Error(`Message is expected to be an object, but got ${(0,r.extendedTypeof)(e)}`);if(!e.type)throw new Error("Message is missing the 'type' property");if("string"!=typeof e.type)throw new Error(`Message is expects the 'type' property to be a string, but got ${(0,r.extendedTypeof)(e.type)}`);switch(e.type){case i.ConnectionInit:case i.ConnectionAck:case i.Ping:case i.Pong:if("payload"in e&&!(0,r.isObject)(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object or missing, but got "${e.payload}"`);break;case i.Subscribe:if("string"!=typeof e.id)throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${(0,r.extendedTypeof)(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!(0,r.isObject)(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object, but got ${(0,r.extendedTypeof)(e.payload)}`);if("string"!=typeof e.payload.query)throw new Error(`"${e.type}" message payload expects the 'query' property to be a string, but got ${(0,r.extendedTypeof)(e.payload.query)}`);if(null!=e.payload.variables&&!(0,r.isObject)(e.payload.variables))throw new Error(`"${e.type}" message payload expects the 'variables' property to be a an object or nullish or missing, but got ${(0,r.extendedTypeof)(e.payload.variables)}`);if(null!=e.payload.operationName&&"string"!==(0,r.extendedTypeof)(e.payload.operationName))throw new Error(`"${e.type}" message payload expects the 'operationName' property to be a string or nullish or missing, but got ${(0,r.extendedTypeof)(e.payload.operationName)}`);if(null!=e.payload.extensions&&!(0,r.isObject)(e.payload.extensions))throw new Error(`"${e.type}" message payload expects the 'extensions' property to be a an object or nullish or missing, but got ${(0,r.extendedTypeof)(e.payload.extensions)}`);break;case i.Next:if("string"!=typeof e.id)throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${(0,r.extendedTypeof)(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!(0,r.isObject)(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object, but got ${(0,r.extendedTypeof)(e.payload)}`);break;case i.Error:if("string"!=typeof e.id)throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${(0,r.extendedTypeof)(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!(0,r.areGraphQLErrors)(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an array of GraphQL errors, but got ${JSON.stringify(e.payload)}`);break;case i.Complete:if("string"!=typeof e.id)throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${(0,r.extendedTypeof)(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);break;default:throw new Error(`Invalid message 'type' property "${e.type}"`)}return e}t.GRAPHQL_TRANSPORT_WS_PROTOCOL="graphql-transport-ws",t.DEPRECATED_GRAPHQL_WS_PROTOCOL="graphql-ws",(o=t.CloseCode||(t.CloseCode={}))[o.InternalServerError=4500]="InternalServerError",o[o.InternalClientError=4005]="InternalClientError",o[o.BadRequest=4400]="BadRequest",o[o.BadResponse=4004]="BadResponse",o[o.Unauthorized=4401]="Unauthorized",o[o.Forbidden=4403]="Forbidden",o[o.SubprotocolNotAcceptable=4406]="SubprotocolNotAcceptable",o[o.ConnectionInitialisationTimeout=4408]="ConnectionInitialisationTimeout",o[o.ConnectionAcknowledgementTimeout=4504]="ConnectionAcknowledgementTimeout",o[o.SubscriberAlreadyExists=4409]="SubscriberAlreadyExists",o[o.TooManyInitialisationRequests=4429]="TooManyInitialisationRequests",function(e){e.ConnectionInit="connection_init",e.ConnectionAck="connection_ack",e.Ping="ping",e.Pong="pong",e.Subscribe="subscribe",e.Next="next",e.Error="error",e.Complete="complete"}(i=t.MessageType||(t.MessageType={})),t.validateMessage=a,t.isMessage=function(e){try{return a(e),!0}catch(e){return!1}},t.parseMessage=function(e,t){try{return a(e)}catch(n){if("string"!=typeof e)throw new Error("Only strings are parsable messages");return a(JSON.parse(e,t))}},t.stringifyMessage=function(e,t){return a(e),JSON.stringify(e,t)}},1458:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(2451),t),i(n(9299),t),i(n(1655),t)},9299:function(e,t,n){"use strict";var r=this&&this.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,i){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,i,(t=e[n](t)).done,t.value)}))}}};Object.defineProperty(t,"__esModule",{value:!0}),t.handleProtocols=t.makeServer=void 0;const i=n(1337),o=n(1655),a=n(7315);t.makeServer=function(e){const{schema:t,context:n,roots:s,validate:l,execute:c,subscribe:u,connectionInitWaitTimeout:p=3e3,onConnect:d,onDisconnect:f,onClose:h,onSubscribe:m,onOperation:g,onNext:v,onError:y,onComplete:b,jsonMessageReviver:_,jsonMessageReplacer:E}=e;return{opened(e,k){const w={connectionInitReceived:!1,acknowledged:!1,subscriptions:{},extra:k};if(e.protocol!==o.GRAPHQL_TRANSPORT_WS_PROTOCOL)return e.close(o.CloseCode.SubprotocolNotAcceptable,"Subprotocol not acceptable"),async(e,t)=>{await(null==h?void 0:h(w,e,t))};const x=p>0&&isFinite(p)?setTimeout((()=>{w.connectionInitReceived||e.close(o.CloseCode.ConnectionInitialisationTimeout,"Connection initialisation timeout")}),p):null;return e.onMessage((async function(p){var f,h,k;let x;try{x=(0,o.parseMessage)(p,_)}catch(t){return e.close(o.CloseCode.BadRequest,"Invalid message received")}switch(x.type){case o.MessageType.ConnectionInit:{if(w.connectionInitReceived)return e.close(o.CloseCode.TooManyInitialisationRequests,"Too many initialisation requests");w.connectionInitReceived=!0,(0,a.isObject)(x.payload)&&(w.connectionParams=x.payload);const t=await(null==d?void 0:d(w));return!1===t?e.close(o.CloseCode.Forbidden,"Forbidden"):(await e.send((0,o.stringifyMessage)((0,a.isObject)(t)?{type:o.MessageType.ConnectionAck,payload:t}:{type:o.MessageType.ConnectionAck},E)),void(w.acknowledged=!0))}case o.MessageType.Ping:return e.onPing?await e.onPing(x.payload):void await e.send((0,o.stringifyMessage)(x.payload?{type:o.MessageType.Pong,payload:x.payload}:{type:o.MessageType.Pong}));case o.MessageType.Pong:return await(null===(k=e.onPong)||void 0===k?void 0:k.call(e,x.payload));case o.MessageType.Subscribe:{if(!w.acknowledged)return e.close(o.CloseCode.Unauthorized,"Unauthorized");const{id:p,payload:d}=x;if(p in w.subscriptions)return e.close(o.CloseCode.SubscriberAlreadyExists,`Subscriber for ${p} already exists`);w.subscriptions[p]=null;const _={next:async(t,n)=>{let r={id:p,type:o.MessageType.Next,payload:t};const i=await(null==v?void 0:v(w,r,n,t));i&&(r=Object.assign(Object.assign({},r),{payload:i})),await e.send((0,o.stringifyMessage)(r,E))},error:async t=>{let n={id:p,type:o.MessageType.Error,payload:t};const r=await(null==y?void 0:y(w,n,t));r&&(n=Object.assign(Object.assign({},n),{payload:r})),await e.send((0,o.stringifyMessage)(n,E))},complete:async t=>{const n={id:p,type:o.MessageType.Complete};await(null==b?void 0:b(w,n)),t&&await e.send((0,o.stringifyMessage)(n,E))}};try{let e;const o=await(null==m?void 0:m(w,x));if(o){if((0,a.areGraphQLErrors)(o))return await _.error(o);if(Array.isArray(o))throw new Error("Invalid return value from onSubscribe hook, expected an array of GraphQLError objects");e=o}else{if(!t)throw new Error("The GraphQL schema is not provided");const n={operationName:d.operationName,document:(0,i.parse)(d.query),variableValues:d.variables};e=Object.assign(Object.assign({},n),{schema:"function"==typeof t?await t(w,x,n):t});const r=(null!=l?l:i.validate)(e.schema,e.document);if(r.length>0)return await _.error(r)}const v=(0,i.getOperationAST)(e.document,e.operationName);if(!v)return await _.error([new i.GraphQLError("Unable to identify operation")]);let y;"rootValue"in e||(e.rootValue=null==s?void 0:s[v.operation]),"contextValue"in e||(e.contextValue="function"==typeof n?await n(w,x,e):n),y="subscription"===v.operation?await(null!=u?u:i.subscribe)(e):await(null!=c?c:i.execute)(e);const b=await(null==g?void 0:g(w,x,e,y));if(b&&(y=b),(0,a.isAsyncIterable)(y))if(p in w.subscriptions){w.subscriptions[p]=y;try{for(var T,C=r(y);!(T=await C.next()).done;){const t=T.value;await _.next(t,e)}}catch(e){f={error:e}}finally{try{T&&!T.done&&(h=C.return)&&await h.call(C)}finally{if(f)throw f.error}}}else(0,a.isAsyncGenerator)(y)&&y.return(void 0);else p in w.subscriptions&&await _.next(y,e);await _.complete(p in w.subscriptions)}finally{delete w.subscriptions[p]}return}case o.MessageType.Complete:{const e=w.subscriptions[x.id];return(0,a.isAsyncGenerator)(e)&&await e.return(void 0),void delete w.subscriptions[x.id]}default:throw new Error(`Unexpected message of type ${x.type} received`)}})),async(e,t)=>{x&&clearTimeout(x);for(const e of Object.values(w.subscriptions))(0,a.isAsyncGenerator)(e)&&await e.return(void 0);w.acknowledged&&await(null==f?void 0:f(w,e,t)),await(null==h?void 0:h(w,e,t))}}}},t.handleProtocols=function(e){switch(!0){case e instanceof Set&&e.has(o.GRAPHQL_TRANSPORT_WS_PROTOCOL):case Array.isArray(e)&&e.includes(o.GRAPHQL_TRANSPORT_WS_PROTOCOL):case"string"==typeof e&&e.split(",").map((e=>e.trim())).includes(o.GRAPHQL_TRANSPORT_WS_PROTOCOL):return o.GRAPHQL_TRANSPORT_WS_PROTOCOL;default:return!1}}},7315:(e,t)=>{"use strict";function n(e){return null===e?"null":Array.isArray(e)?"array":typeof e}function r(e){return"object"===n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.limitCloseReason=t.areGraphQLErrors=t.isAsyncGenerator=t.isAsyncIterable=t.isObject=t.extendedTypeof=void 0,t.extendedTypeof=n,t.isObject=r,t.isAsyncIterable=function(e){return"function"==typeof Object(e)[Symbol.asyncIterator]},t.isAsyncGenerator=function(e){return r(e)&&"function"==typeof Object(e)[Symbol.asyncIterator]&&"function"==typeof e.return},t.areGraphQLErrors=function(e){return Array.isArray(e)&&e.length>0&&e.every((e=>"message"in e))},t.limitCloseReason=function(e,t){return e.length<124?e:t}},4610:(e,t,n)=>{"use strict";n.d(t,{O:()=>_,_:()=>y});var r=n(9312),i=n(824),o=n(1654),a=n(6803);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e,t){for(var n=0;n0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=s&&s.stack?(Object.defineProperty(d(y),"stack",{value:s.stack,writable:!0,configurable:!0}),p(y)):(Error.captureStackTrace?Error.captureStackTrace(d(y),h):Object.defineProperty(d(y),"stack",{value:Error().stack,writable:!0,configurable:!0}),y)}return a=h,(s=[{key:"toString",value:function(){return _(this)}},{key:i.YF,get:function(){return"Object"}}])&&u(a.prototype,s),h}(f(Error));function b(e){return void 0===e||0===e.length?void 0:e}function _(e){var t=e.message;if(e.nodes)for(var n=0,r=e.nodes;n{"use strict";n.d(t,{y:()=>o});var r=n(6589),i=n(4610);function o(e,t,n){var o,a=e instanceof Error?e:new Error("Unexpected error value: "+(0,r.Z)(e));return Array.isArray(a.path)?a:new i._(a.message,null!==(o=a.nodes)&&void 0!==o?o:t,a.source,a.positions,n,a)}},7303:(e,t,n)=>{"use strict";n.d(t,{h:()=>i});var r=n(4610);function i(e,t,n){return new r._("Syntax Error: ".concat(n),void 0,e,[t])}},1337:(e,t,n)=>{"use strict";n.r(t),n.d(t,{BREAK:()=>_e.$_,BreakingChangeType:()=>hn,DEFAULT_DEPRECATION_REASON:()=>_.SY,DangerousChangeType:()=>mn,DirectiveLocation:()=>Ee.B,ExecutableDefinitionsRule:()=>Le.i,FieldsOnCorrectTypeRule:()=>Re.A,FragmentsOnCompositeTypesRule:()=>Me.T,GraphQLBoolean:()=>fe.EZ,GraphQLDeprecatedDirective:()=>_.fg,GraphQLDirective:()=>_.NZ,GraphQLEnumType:()=>E.mR,GraphQLError:()=>g._,GraphQLFloat:()=>fe.av,GraphQLID:()=>fe.km,GraphQLIncludeDirective:()=>_.Yf,GraphQLInputObjectType:()=>E.sR,GraphQLInt:()=>fe._o,GraphQLInterfaceType:()=>E.oW,GraphQLList:()=>E.p2,GraphQLNonNull:()=>E.bM,GraphQLObjectType:()=>E.h6,GraphQLScalarType:()=>E.n2,GraphQLSchema:()=>de.XO,GraphQLSkipDirective:()=>_.QE,GraphQLSpecifiedByDirective:()=>_.df,GraphQLString:()=>fe.kH,GraphQLUnionType:()=>E.Gp,Kind:()=>y.h,KnownArgumentNamesRule:()=>Pe.e,KnownDirectivesRule:()=>qe.J,KnownFragmentNamesRule:()=>je.a,KnownTypeNamesRule:()=>Ve.I,Lexer:()=>ye.h,Location:()=>he.Ye,LoneAnonymousOperationRule:()=>ze.F,LoneSchemaDefinitionRule:()=>at.t,NoDeprecatedCustomRule:()=>ft.r,NoFragmentCyclesRule:()=>Ue.H,NoSchemaIntrospectionCustomRule:()=>Oe,NoUndefinedVariablesRule:()=>Be.$,NoUnusedFragmentsRule:()=>Ze.J,NoUnusedVariablesRule:()=>Ge.p,OverlappingFieldsCanBeMergedRule:()=>He.y,PossibleFragmentSpreadsRule:()=>Qe.a,PossibleTypeExtensionsRule:()=>dt.g,ProvidedRequiredArgumentsRule:()=>$e.s,ScalarLeafsRule:()=>We.O,SchemaMetaFieldDef:()=>b.Az,SingleFieldSubscriptionsRule:()=>Ye.Z,Source:()=>me.H,Token:()=>he.WU,TokenKind:()=>be.T,TypeInfo:()=>Fn.a,TypeKind:()=>b.zU,TypeMetaFieldDef:()=>b.tF,TypeNameMetaFieldDef:()=>b.hU,UniqueArgumentNamesRule:()=>Ke.L,UniqueDirectiveNamesRule:()=>pt.o,UniqueDirectivesPerLocationRule:()=>Je.k,UniqueEnumValueNamesRule:()=>ct.L,UniqueFieldDefinitionNamesRule:()=>ut.y,UniqueFragmentNamesRule:()=>Xe.N,UniqueInputFieldNamesRule:()=>et.P,UniqueOperationNamesRule:()=>tt.H,UniqueOperationTypesRule:()=>st.q,UniqueTypeNamesRule:()=>lt.P,UniqueVariableNamesRule:()=>nt.H,ValidationContext:()=>Ie._t,ValuesOfCorrectTypeRule:()=>rt.j,VariablesAreInputTypesRule:()=>it.I,VariablesInAllowedPositionRule:()=>ot.w,__Directive:()=>b.l3,__DirectiveLocation:()=>b.x2,__EnumValue:()=>b.jT,__Field:()=>b.e_,__InputValue:()=>b.XQ,__Schema:()=>b.TK,__Type:()=>b.qz,__TypeKind:()=>b.PX,assertAbstractType:()=>E.fU,assertCompositeType:()=>E.M_,assertDirective:()=>_.CO,assertEnumType:()=>E.Zu,assertInputObjectType:()=>E.U8,assertInputType:()=>E.qT,assertInterfaceType:()=>E.k2,assertLeafType:()=>E.H5,assertListType:()=>E.kS,assertNamedType:()=>E.rM,assertNonNullType:()=>E.E$,assertNullableType:()=>E.i_,assertObjectType:()=>E.Z6,assertOutputType:()=>E.Gt,assertScalarType:()=>E.Pt,assertSchema:()=>de.EO,assertType:()=>E.p_,assertUnionType:()=>E.rc,assertValidName:()=>Rn.k,assertValidSchema:()=>l.J,assertWrappingType:()=>E.vX,astFromValue:()=>Bt.J,buildASTSchema:()=>It,buildClientSchema:()=>On.Z,buildSchema:()=>Ft,coerceInputValue:()=>I,concatAST:()=>on,createSourceEventStream:()=>De,defaultFieldResolver:()=>se,defaultTypeResolver:()=>ae,doTypesOverlap:()=>Ln.zR,execute:()=>j,executeSync:()=>V,extendSchema:()=>Ct,findBreakingChanges:()=>gn,findDangerousChanges:()=>vn,findDeprecatedUsages:()=>Dn,formatError:()=>ht,getDescription:()=>Ot,getDirectiveValues:()=>P,getIntrospectionQuery:()=>vt.K,getLocation:()=>ge.k,getNamedType:()=>E.xC,getNullableType:()=>E.tf,getOperationAST:()=>gt,getOperationRootType:()=>w,getVisitFn:()=>_e.CK,graphql:()=>ce,graphqlSync:()=>ue,introspectionFromSchema:()=>_t,introspectionTypes:()=>b.nL,isAbstractType:()=>E.m0,isCompositeType:()=>E.Gv,isDefinitionNode:()=>ke.Ir,isDirective:()=>_.wX,isEnumType:()=>E.EM,isEqualType:()=>Ln._7,isExecutableDefinitionNode:()=>ke.Wk,isInputObjectType:()=>E.hL,isInputType:()=>E.j$,isInterfaceType:()=>E.oT,isIntrospectionType:()=>b.s9,isLeafType:()=>E.UT,isListType:()=>E.HG,isNamedType:()=>E.Zs,isNonNullType:()=>E.zM,isNullableType:()=>E.zP,isObjectType:()=>E.lp,isOutputType:()=>E.SZ,isRequiredArgument:()=>E.dK,isRequiredInputField:()=>E.Wd,isScalarType:()=>E.KA,isSchema:()=>de.nN,isSelectionNode:()=>ke.pO,isSpecifiedDirective:()=>_.xg,isSpecifiedScalarType:()=>fe.u1,isType:()=>E.P9,isTypeDefinitionNode:()=>ke.zT,isTypeExtensionNode:()=>ke.D$,isTypeNode:()=>ke.VB,isTypeSubTypeOf:()=>Ln.uJ,isTypeSystemDefinitionNode:()=>ke.G4,isTypeSystemExtensionNode:()=>ke.aU,isUnionType:()=>E.EN,isValidNameError:()=>Rn.u,isValueNode:()=>ke.nr,isWrappingType:()=>E.fw,lexicographicSortSchema:()=>jt,locatedError:()=>v.y,parse:()=>a.Qc,parseType:()=>a.gZ,parseValue:()=>a.H2,print:()=>S.S,printError:()=>g.O,printIntrospectionSchema:()=>Gt,printLocation:()=>ve.Q,printSchema:()=>Zt,printSourceLocation:()=>ve.z,printType:()=>Wt,responsePathAsArray:()=>m,separateOperations:()=>an,specifiedDirectives:()=>_.V4,specifiedRules:()=>Fe.i,specifiedScalarTypes:()=>fe.HS,stripIgnoredCharacters:()=>cn,subscribe:()=>Se,syntaxError:()=>mt.h,typeFromAST:()=>k._,validate:()=>s.Gu,validateSchema:()=>l.F,valueFromAST:()=>A.u,valueFromASTUntyped:()=>In.M,version:()=>r,versionInfo:()=>i,visit:()=>_e.Vn,visitInParallel:()=>_e.j1,visitWithTypeInfo:()=>Fn.y});var r="15.8.0",i=Object.freeze({major:15,minor:8,patch:0,preReleaseTag:null});function o(e){return"function"==typeof(null==e?void 0:e.then)}var a=n(9691),s=n(2091),l=n(3982),c=n(6589),u=n(3077),p=n(3767),d=n(9312),f=n(7726);function h(e,t,n){return{prev:e,key:t,typename:n}}function m(e){for(var t=[],n=e;n;)t.push(n.key),n=n.prev;return t.reverse()}var g=n(4610),v=n(1677),y=n(6450),b=n(375),_=n(6751),E=n(275),k=n(3106);function w(e,t){if("query"===t.operation){var n=e.getQueryType();if(!n)throw new g._("Schema does not define the required query root type.",t);return n}if("mutation"===t.operation){var r=e.getMutationType();if(!r)throw new g._("Schema is not configured for mutations.",t);return r}if("subscription"===t.operation){var i=e.getSubscriptionType();if(!i)throw new g._("Schema is not configured for subscriptions.",t);return i}throw new g._("Can only have query, mutation and subscription operations.",t)}var x=n(1184),T=n(2059);function C(e){return e.map((function(e){return"number"==typeof e?"["+e.toString()+"]":"."+e})).join("")}var S=n(778),A=n(5574),N=n(9622),D=n(6296),O=n(9800);function I(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:F;return L(e,t,n)}function F(e,t,n){var r="Invalid value "+(0,c.Z)(t);throw e.length>0&&(r+=' at "value'.concat(C(e),'"')),n.message=r+": "+n.message,n}function L(e,t,n,r){if((0,E.zM)(t))return null!=e?L(e,t.ofType,n,r):void n(m(r),e,new g._('Expected non-nullable type "'.concat((0,c.Z)(t),'" not to be null.')));if(null==e)return null;if((0,E.HG)(t)){var i=t.ofType,o=(0,f.Z)(e,(function(e,t){var o=h(r,t,void 0);return L(e,i,n,o)}));return null!=o?o:[L(e,i,n,r)]}if((0,E.hL)(t)){if(!(0,d.Z)(e))return void n(m(r),e,new g._('Expected type "'.concat(t.name,'" to be an object.')));for(var a={},s=t.getFields(),l=0,p=(0,N.Z)(s);l0&&(i+=' at "'.concat(s).concat(C(e),'"')),r(new g._(i+"; "+n.message,a,void 0,void 0,void 0,n.originalError))}))},a=0;a=o)throw new g._("Too many errors processing variables, error limit reached. Execution aborted.");i.push(e)}));if(0===i.length)return{coerced:a}}catch(e){i.push(e)}return{errors:i}}function M(e,t,n){for(var r,i={},o=null!==(r=t.arguments)&&void 0!==r?r:[],a=(0,T.Z)(o,(function(e){return e.name.value})),s=0,l=e.args;s0)return{errors:f};try{t=(0,a.Qc)(r)}catch(e){return{errors:[e]}}var h=(0,s.Gu)(n,t);return h.length>0?{errors:h}:j({schema:n,document:t,rootValue:i,contextValue:o,variableValues:c,operationName:u,fieldResolver:p,typeResolver:d})}var de=n(4054),fe=n(4166),he=n(2387),me=n(1112),ge=n(1654),ve=n(6803),ye=n(2496),be=n(7525),_e=n(7636),Ee=n(4643),ke=n(6453),we=n(824);function xe(e){return"function"==typeof(null==e?void 0:e[we.PA])}function Te(e,t){return new Promise((function(n){return n(t(e))}))}function Ce(e){return{value:e,done:!1}}function Se(e,t,n,r,i,o,a,s){return Ne(1===arguments.length?e:{schema:e,document:t,rootValue:n,contextValue:r,variableValues:i,operationName:o,fieldResolver:a,subscribeFieldResolver:s})}function Ae(e){if(e instanceof g._)return{errors:[e]};throw e}function Ne(e){var t=e.schema,n=e.document,r=e.rootValue,i=e.contextValue,o=e.variableValues,a=e.operationName,s=e.fieldResolver,l=e.subscribeFieldResolver,c=De(t,n,r,i,o,a,l),u=function(e){return j({schema:t,document:n,rootValue:e,contextValue:i,variableValues:o,operationName:a,fieldResolver:s})};return c.then((function(e){return xe(e)?function(e,t,n){var r,i,o,a,s,l,c=e[we.PA].call(e);function u(e){return e.done?e:Te(e.value,t).then(Ce,i)}if("function"==typeof c.return&&(r=c.return,i=function(e){var t=function(){return Promise.reject(e)};return r.call(c).then(t,t)}),n){var p=n;o=function(e){return Te(e,p).then(Ce,i)}}return a={next:function(){return c.next().then(u,o)},return:function(){return r?r.call(c).then(u,o):Promise.resolve({value:void 0,done:!0})},throw:function(e){return"function"==typeof c.throw?c.throw(e).then(u,o):Promise.reject(e).catch(i)}},l=function(){return this},(s=we.PA)in a?Object.defineProperty(a,s,{value:l,enumerable:!0,configurable:!0,writable:!0}):a[s]=l,a}(e,u,Ae):e}))}function De(e,t,n,r,i,o,a){return B(e,t,i),new Promise((function(s){var l=Z(e,t,n,r,i,o,a);s(Array.isArray(l)?{errors:l}:function(e){var t=e.schema,n=e.operation,r=e.variableValues,i=e.rootValue,o=w(t,n),a=H(e,o,n.selectionSet,Object.create(null),Object.create(null)),s=Object.keys(a)[0],l=a[s],u=l[0].name.value,p=le(t,o,u);if(!p)throw new g._('The subscription field "'.concat(u,'" is not defined.'),l);var d=h(void 0,s,o.name),f=Y(e,p,l,o,d);return new Promise((function(t){var n,o=M(p,l[0],r),a=e.contextValue;t((null!==(n=p.subscribe)&&void 0!==n?n:e.fieldResolver)(i,o,a,f))})).then((function(e){if(e instanceof Error)throw(0,v.y)(e,l,m(d));if(!xe(e))throw new Error("Subscription field must return Async Iterable. "+"Received: ".concat((0,c.Z)(e),"."));return e}),(function(e){throw(0,v.y)(e,l,m(d))}))}(l))})).catch(Ae)}function Oe(e){return{Field:function(t){var n=(0,E.xC)(e.getType());n&&(0,b.s9)(n)&&e.reportError(new g._('GraphQL introspection has been disabled, but the requested query contained the field "'.concat(t.name.value,'".'),t))}}}var Ie=n(5048),Fe=n(4780),Le=n(9873),Re=n(6057),Me=n(399),Pe=n(1792),qe=n(6522),je=n(7249),Ve=n(8933),ze=n(581),Ue=n(7978),Be=n(6129),Ze=n(6063),Ge=n(1983),He=n(9715),Qe=n(6175),$e=n(9389),We=n(7828),Ye=n(524),Ke=n(5854),Je=n(8338),Xe=n(6862),et=n(1269),tt=n(1373),nt=n(9090),rt=n(2542),it=n(7006),ot=n(429),at=n(3174),st=n(387),lt=n(6294),ct=n(4266),ut=n(6415),pt=n(4818),dt=n(5427),ft=n(8575);function ht(e){var t;e||(0,p.Z)(0,"Received null or undefined error.");var n=null!==(t=e.message)&&void 0!==t?t:"An unknown error occurred.",r=e.locations,i=e.path,o=e.extensions;return o&&Object.keys(o).length>0?{message:n,locations:r,path:i,extensions:o}:{message:n,locations:r,path:i}}var mt=n(7303);function gt(e,t){for(var n=null,r=0,i=e.definitions;r0?n.reverse().join("\n"):void 0}}(e);if(void 0!==n)return(0,kt.W7)("\n"+n)}}function It(e,t){null!=e&&e.kind===y.h.DOCUMENT||(0,p.Z)(0,"Must provide valid Document AST."),!0!==(null==t?void 0:t.assumeValid)&&!0!==(null==t?void 0:t.assumeValidSDL)&&(0,s.zo)(e);var n=St({description:void 0,types:[],directives:[],extensions:void 0,extensionASTNodes:[],assumeValid:!1},e,t);if(null==n.astNode)for(var r=0,i=n.types;r2&&void 0!==arguments[2]?arguments[2]:"";return 0===t.length?"":t.every((function(e){return!e.description}))?"("+t.map(en).join(", ")+")":"(\n"+t.map((function(t,r){return nn(e,t," "+n,!r)+" "+n+en(t)})).join("\n")+"\n"+n+")"}function en(e){var t=(0,Bt.J)(e.defaultValue,e.type),n=e.name+": "+String(e.type);return t&&(n+=" = ".concat((0,S.S)(t))),n+tn(e.deprecationReason)}function tn(e){if(null==e)return"";var t=(0,Bt.J)(e,fe.kH);return t&&e!==_.SY?" @deprecated(reason: "+(0,S.S)(t)+")":" @deprecated"}function nn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=t.description;if(null==i)return"";if(!0===(null==e?void 0:e.commentDescriptions))return rn(i,n,r);var o=i.length>70,a=(0,kt.LZ)(i,"",o),s=n&&!r?"\n"+n:n;return s+a.replace(/\n/g,"\n"+n)+"\n"}function rn(e,t,n){return(t&&!n?"\n":"")+e.split("\n").map((function(e){return t+(""!==e?"# "+e:"#")})).join("\n")+"\n"}function on(e){for(var t=[],n=0;n0&&(n="\n"+n);var r=n[n.length-1];return('"'===r&&'\\"""'!==n.slice(-4)||"\\"===r)&&(n+="\n"),'"""'+n+'"""'}function pn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function dn(e){for(var t=1;t{"use strict";n.d(t,{Z:()=>o});var r=n(3077),i=n(7986);function o(e){var t=e.prototype.toJSON;"function"==typeof t||(0,r.Z)(0),e.prototype.inspect=t,i.Z&&(e.prototype[i.Z]=t)}},3767:(e,t,n)=>{"use strict";function r(e,t){if(!Boolean(e))throw new Error(t)}n.d(t,{Z:()=>r})},6296:(e,t,n)=>{"use strict";function r(e,t){var n="string"==typeof e?[e,t]:[void 0,e],r=n[0],i=" Did you mean ";r&&(i+=r+" ");var o=n[1].map((function(e){return'"'.concat(e,'"')}));switch(o.length){case 0:return"";case 1:return i+o[0]+"?";case 2:return i+o[0]+" or "+o[1]+"?"}var a=o.slice(0,5),s=a.pop();return i+a.join(", ")+", or "+s+"?"}n.d(t,{Z:()=>r})},6589:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(7986);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function o(e){return a(e,[])}function a(e,t){switch(i(e)){case"string":return JSON.stringify(e);case"function":return e.name?"[function ".concat(e.name,"]"):"[function]";case"object":return null===e?"null":function(e,t){if(-1!==t.indexOf(e))return"[Circular]";var n=[].concat(t,[e]),i=function(e){var t=e[String(r.Z)];return"function"==typeof t?t:"function"==typeof e.inspect?e.inspect:void 0}(e);if(void 0!==i){var o=i.call(e);if(o!==e)return"string"==typeof o?o:a(o,n)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>2)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,n);return function(e,t){var n=Object.keys(e);return 0===n.length?"{}":t.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)+"]":"{ "+n.map((function(n){return n+": "+a(e[n],t)})).join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}},9495:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=function(e,t){return e instanceof t}},3077:(e,t,n)=>{"use strict";function r(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}n.d(t,{Z:()=>r})},9312:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e){return"object"==r(e)&&null!==e}n.d(t,{Z:()=>i})},2059:(e,t,n)=>{"use strict";function r(e,t){return e.reduce((function(e,n){return e[t(n)]=n,e}),Object.create(null))}n.d(t,{Z:()=>r})},6193:(e,t,n)=>{"use strict";function r(e,t,n){return e.reduce((function(e,r){return e[t(r)]=n(r),e}),Object.create(null))}n.d(t,{Z:()=>r})},5628:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(3846);function i(e,t){for(var n=Object.create(null),i=0,o=(0,r.Z)(e);i{"use strict";function r(e,t){for(var n=0,r=0;n0);var c=0;do{++r,c=10*c+s-i,s=t.charCodeAt(r)}while(o(s)&&c>0);if(lc)return 1}else{if(as)return 1;++n,++r}}return e.length-t.length}n.d(t,{Z:()=>r});var i=48;function o(e){return!isNaN(e)&&i<=e&&e<=57}},7986:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0},7726:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(824);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e};if(null==e||"object"!==i(e))return null;if(Array.isArray(e))return e.map(t);var n=e[r.Xr];if("function"==typeof n){for(var o,a=n.call(e),s=[],l=0;!(o=a.next()).done;++l)s.push(t(o.value,l));return s}var c=e.length;if("number"==typeof c&&c>=0&&c%1==0){for(var u=[],p=0;p{"use strict";n.d(t,{Z:()=>i});var r=n(7689);function i(e,t){for(var n=Object.create(null),i=new o(e),a=Math.floor(.4*e.length)+1,s=0;st)){for(var c=this._rows,u=0;u<=l;u++)c[0][u]=u;for(var p=1;p<=s;p++){for(var d=c[(p-1)%3],f=c[p%3],h=f[0]=p,m=1;m<=l;m++){var g=r[p-1]===i[m-1]?0:1,v=Math.min(d[m]+1,f[m-1]+1,d[m-1]+g);if(p>1&&m>1&&r[p-1]===i[m-2]&&r[p-2]===i[m-1]){var y=c[(p-2)%3][m-2];v=Math.min(v,y+1)}vt)return}var b=c[s%3][l];return b<=t?b:void 0}},e}();function a(e){for(var t=e.length,n=new Array(t),r=0;r{"use strict";n.d(t,{Z:()=>i});var r=n(3846);function i(e){if(null===Object.getPrototypeOf(e))return e;for(var t=Object.create(null),n=0,i=(0,r.Z)(e);n{"use strict";n.d(t,{UG:()=>a,WU:()=>o,Ye:()=>i});var r=n(1087),i=function(){function e(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}return e.prototype.toJSON=function(){return{start:this.start,end:this.end}},e}();(0,r.Z)(i);var o=function(){function e(e,t,n,r,i,o,a){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=i,this.value=a,this.prev=o,this.next=null}return e.prototype.toJSON=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}},e}();function a(e){return null!=e&&"string"==typeof e.kind}(0,r.Z)(o)},7420:(e,t,n)=>{"use strict";function r(e){var t=e.split(/\r\n|[\n\r]/g),n=o(e);if(0!==n)for(var r=1;ra&&i(t[s-1]);)--s;return t.slice(a,s).join("\n")}function i(e){for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=-1===e.indexOf("\n"),i=" "===e[0]||"\t"===e[0],o='"'===e[e.length-1],a="\\"===e[e.length-1],s=!r||o||a||n,l="";return!s||r&&i||(l+="\n"+t),l+=t?e.replace(/\n/g,"\n"+t):e,s&&(l+="\n"),'"""'+l.replace(/"""/g,'\\"""')+'"""'}n.d(t,{LZ:()=>a,W7:()=>r,Z2:()=>o})},4643:(e,t,n)=>{"use strict";n.d(t,{B:()=>r});var r=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"})},6450:(e,t,n)=>{"use strict";n.d(t,{h:()=>r});var r=Object.freeze({NAME:"Name",DOCUMENT:"Document",OPERATION_DEFINITION:"OperationDefinition",VARIABLE_DEFINITION:"VariableDefinition",SELECTION_SET:"SelectionSet",FIELD:"Field",ARGUMENT:"Argument",FRAGMENT_SPREAD:"FragmentSpread",INLINE_FRAGMENT:"InlineFragment",FRAGMENT_DEFINITION:"FragmentDefinition",VARIABLE:"Variable",INT:"IntValue",FLOAT:"FloatValue",STRING:"StringValue",BOOLEAN:"BooleanValue",NULL:"NullValue",ENUM:"EnumValue",LIST:"ListValue",OBJECT:"ObjectValue",OBJECT_FIELD:"ObjectField",DIRECTIVE:"Directive",NAMED_TYPE:"NamedType",LIST_TYPE:"ListType",NON_NULL_TYPE:"NonNullType",SCHEMA_DEFINITION:"SchemaDefinition",OPERATION_TYPE_DEFINITION:"OperationTypeDefinition",SCALAR_TYPE_DEFINITION:"ScalarTypeDefinition",OBJECT_TYPE_DEFINITION:"ObjectTypeDefinition",FIELD_DEFINITION:"FieldDefinition",INPUT_VALUE_DEFINITION:"InputValueDefinition",INTERFACE_TYPE_DEFINITION:"InterfaceTypeDefinition",UNION_TYPE_DEFINITION:"UnionTypeDefinition",ENUM_TYPE_DEFINITION:"EnumTypeDefinition",ENUM_VALUE_DEFINITION:"EnumValueDefinition",INPUT_OBJECT_TYPE_DEFINITION:"InputObjectTypeDefinition",DIRECTIVE_DEFINITION:"DirectiveDefinition",SCHEMA_EXTENSION:"SchemaExtension",SCALAR_TYPE_EXTENSION:"ScalarTypeExtension",OBJECT_TYPE_EXTENSION:"ObjectTypeExtension",INTERFACE_TYPE_EXTENSION:"InterfaceTypeExtension",UNION_TYPE_EXTENSION:"UnionTypeExtension",ENUM_TYPE_EXTENSION:"EnumTypeExtension",INPUT_OBJECT_TYPE_EXTENSION:"InputObjectTypeExtension"})},2496:(e,t,n)=>{"use strict";n.d(t,{h:()=>s,u:()=>l});var r=n(7303),i=n(2387),o=n(7525),a=n(7420),s=function(){function e(e){var t=new i.WU(o.T.SOF,0,0,0,0,null);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}var t=e.prototype;return t.advance=function(){return this.lastToken=this.token,this.token=this.lookahead()},t.lookahead=function(){var e=this.token;if(e.kind!==o.T.EOF)do{var t;e=null!==(t=e.next)&&void 0!==t?t:e.next=u(this,e)}while(e.kind===o.T.COMMENT);return e},e}();function l(e){return e===o.T.BANG||e===o.T.DOLLAR||e===o.T.AMP||e===o.T.PAREN_L||e===o.T.PAREN_R||e===o.T.SPREAD||e===o.T.COLON||e===o.T.EQUALS||e===o.T.AT||e===o.T.BRACKET_L||e===o.T.BRACKET_R||e===o.T.BRACE_L||e===o.T.PIPE||e===o.T.BRACE_R}function c(e){return isNaN(e)?o.T.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function u(e,t){for(var n=e.source,a=n.body,s=a.length,l=t.end;l31||9===s));return new i.WU(o.T.COMMENT,t,c,n,r,a,l.slice(t+1,c))}function f(e,t,n,a,s,l){var u=e.body,p=n,d=t,f=!1;if(45===p&&(p=u.charCodeAt(++d)),48===p){if((p=u.charCodeAt(++d))>=48&&p<=57)throw(0,r.h)(e,d,"Invalid number, unexpected digit after 0: ".concat(c(p),"."))}else d=h(e,d,p),p=u.charCodeAt(d);if(46===p&&(f=!0,p=u.charCodeAt(++d),d=h(e,d,p),p=u.charCodeAt(d)),69!==p&&101!==p||(f=!0,43!==(p=u.charCodeAt(++d))&&45!==p||(p=u.charCodeAt(++d)),d=h(e,d,p),p=u.charCodeAt(d)),46===p||function(e){return 95===e||e>=65&&e<=90||e>=97&&e<=122}(p))throw(0,r.h)(e,d,"Invalid number, expected digit but got: ".concat(c(p),"."));return new i.WU(f?o.T.FLOAT:o.T.INT,t,d,a,s,l,u.slice(t,d))}function h(e,t,n){var i=e.body,o=t,a=n;if(a>=48&&a<=57){do{a=i.charCodeAt(++o)}while(a>=48&&a<=57);return o}throw(0,r.h)(e,o,"Invalid number, expected digit but got: ".concat(c(a),"."))}function m(e,t,n,a,s){for(var l,u,p,d,f=e.body,h=t+1,m=h,g=0,y="";h=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function y(e,t,n,r,a){for(var s=e.body,l=s.length,c=t+1,u=0;c!==l&&!isNaN(u=s.charCodeAt(c))&&(95===u||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122);)++c;return new i.WU(o.T.NAME,t,c,n,r,a,s.slice(t,c))}},1654:(e,t,n)=>{"use strict";function r(e,t){for(var n,r=/\r\n|[\n\r]/g,i=1,o=t+1;(n=r.exec(e.body))&&n.indexr})},9691:(e,t,n)=>{"use strict";n.d(t,{H2:()=>p,Qc:()=>u,gZ:()=>d});var r=n(7303),i=n(6450),o=n(2387),a=n(7525),s=n(1112),l=n(4643),c=n(2496);function u(e,t){return new f(e,t).parseDocument()}function p(e,t){var n=new f(e,t);n.expectToken(a.T.SOF);var r=n.parseValueLiteral(!1);return n.expectToken(a.T.EOF),r}function d(e,t){var n=new f(e,t);n.expectToken(a.T.SOF);var r=n.parseTypeReference();return n.expectToken(a.T.EOF),r}var f=function(){function e(e,t){var n=(0,s.T)(e)?e:new s.H(e);this._lexer=new c.h(n),this._options=t}var t=e.prototype;return t.parseName=function(){var e=this.expectToken(a.T.NAME);return{kind:i.h.NAME,value:e.value,loc:this.loc(e)}},t.parseDocument=function(){var e=this._lexer.token;return{kind:i.h.DOCUMENT,definitions:this.many(a.T.SOF,this.parseDefinition,a.T.EOF),loc:this.loc(e)}},t.parseDefinition=function(){if(this.peek(a.T.NAME))switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}else{if(this.peek(a.T.BRACE_L))return this.parseOperationDefinition();if(this.peekDescription())return this.parseTypeSystemDefinition()}throw this.unexpected()},t.parseOperationDefinition=function(){var e=this._lexer.token;if(this.peek(a.T.BRACE_L))return{kind:i.h.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(e)};var t,n=this.parseOperationType();return this.peek(a.T.NAME)&&(t=this.parseName()),{kind:i.h.OPERATION_DEFINITION,operation:n,name:t,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseOperationType=function(){var e=this.expectToken(a.T.NAME);switch(e.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(e)},t.parseVariableDefinitions=function(){return this.optionalMany(a.T.PAREN_L,this.parseVariableDefinition,a.T.PAREN_R)},t.parseVariableDefinition=function(){var e=this._lexer.token;return{kind:i.h.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(a.T.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(a.T.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(e)}},t.parseVariable=function(){var e=this._lexer.token;return this.expectToken(a.T.DOLLAR),{kind:i.h.VARIABLE,name:this.parseName(),loc:this.loc(e)}},t.parseSelectionSet=function(){var e=this._lexer.token;return{kind:i.h.SELECTION_SET,selections:this.many(a.T.BRACE_L,this.parseSelection,a.T.BRACE_R),loc:this.loc(e)}},t.parseSelection=function(){return this.peek(a.T.SPREAD)?this.parseFragment():this.parseField()},t.parseField=function(){var e,t,n=this._lexer.token,r=this.parseName();return this.expectOptionalToken(a.T.COLON)?(e=r,t=this.parseName()):t=r,{kind:i.h.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(a.T.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(n)}},t.parseArguments=function(e){var t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(a.T.PAREN_L,t,a.T.PAREN_R)},t.parseArgument=function(){var e=this._lexer.token,t=this.parseName();return this.expectToken(a.T.COLON),{kind:i.h.ARGUMENT,name:t,value:this.parseValueLiteral(!1),loc:this.loc(e)}},t.parseConstArgument=function(){var e=this._lexer.token;return{kind:i.h.ARGUMENT,name:this.parseName(),value:(this.expectToken(a.T.COLON),this.parseValueLiteral(!0)),loc:this.loc(e)}},t.parseFragment=function(){var e=this._lexer.token;this.expectToken(a.T.SPREAD);var t=this.expectOptionalKeyword("on");return!t&&this.peek(a.T.NAME)?{kind:i.h.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(e)}:{kind:i.h.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseFragmentDefinition=function(){var e,t=this._lexer.token;return this.expectKeyword("fragment"),!0===(null===(e=this._options)||void 0===e?void 0:e.experimentalFragmentVariables)?{kind:i.h.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}:{kind:i.h.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}},t.parseFragmentName=function(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()},t.parseValueLiteral=function(e){var t=this._lexer.token;switch(t.kind){case a.T.BRACKET_L:return this.parseList(e);case a.T.BRACE_L:return this.parseObject(e);case a.T.INT:return this._lexer.advance(),{kind:i.h.INT,value:t.value,loc:this.loc(t)};case a.T.FLOAT:return this._lexer.advance(),{kind:i.h.FLOAT,value:t.value,loc:this.loc(t)};case a.T.STRING:case a.T.BLOCK_STRING:return this.parseStringLiteral();case a.T.NAME:switch(this._lexer.advance(),t.value){case"true":return{kind:i.h.BOOLEAN,value:!0,loc:this.loc(t)};case"false":return{kind:i.h.BOOLEAN,value:!1,loc:this.loc(t)};case"null":return{kind:i.h.NULL,loc:this.loc(t)};default:return{kind:i.h.ENUM,value:t.value,loc:this.loc(t)}}case a.T.DOLLAR:if(!e)return this.parseVariable()}throw this.unexpected()},t.parseStringLiteral=function(){var e=this._lexer.token;return this._lexer.advance(),{kind:i.h.STRING,value:e.value,block:e.kind===a.T.BLOCK_STRING,loc:this.loc(e)}},t.parseList=function(e){var t=this,n=this._lexer.token;return{kind:i.h.LIST,values:this.any(a.T.BRACKET_L,(function(){return t.parseValueLiteral(e)}),a.T.BRACKET_R),loc:this.loc(n)}},t.parseObject=function(e){var t=this,n=this._lexer.token;return{kind:i.h.OBJECT,fields:this.any(a.T.BRACE_L,(function(){return t.parseObjectField(e)}),a.T.BRACE_R),loc:this.loc(n)}},t.parseObjectField=function(e){var t=this._lexer.token,n=this.parseName();return this.expectToken(a.T.COLON),{kind:i.h.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e),loc:this.loc(t)}},t.parseDirectives=function(e){for(var t=[];this.peek(a.T.AT);)t.push(this.parseDirective(e));return t},t.parseDirective=function(e){var t=this._lexer.token;return this.expectToken(a.T.AT),{kind:i.h.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e),loc:this.loc(t)}},t.parseTypeReference=function(){var e,t=this._lexer.token;return this.expectOptionalToken(a.T.BRACKET_L)?(e=this.parseTypeReference(),this.expectToken(a.T.BRACKET_R),e={kind:i.h.LIST_TYPE,type:e,loc:this.loc(t)}):e=this.parseNamedType(),this.expectOptionalToken(a.T.BANG)?{kind:i.h.NON_NULL_TYPE,type:e,loc:this.loc(t)}:e},t.parseNamedType=function(){var e=this._lexer.token;return{kind:i.h.NAMED_TYPE,name:this.parseName(),loc:this.loc(e)}},t.parseTypeSystemDefinition=function(){var e=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(e.kind===a.T.NAME)switch(e.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}throw this.unexpected(e)},t.peekDescription=function(){return this.peek(a.T.STRING)||this.peek(a.T.BLOCK_STRING)},t.parseDescription=function(){if(this.peekDescription())return this.parseStringLiteral()},t.parseSchemaDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");var n=this.parseDirectives(!0),r=this.many(a.T.BRACE_L,this.parseOperationTypeDefinition,a.T.BRACE_R);return{kind:i.h.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r,loc:this.loc(e)}},t.parseOperationTypeDefinition=function(){var e=this._lexer.token,t=this.parseOperationType();this.expectToken(a.T.COLON);var n=this.parseNamedType();return{kind:i.h.OPERATION_TYPE_DEFINITION,operation:t,type:n,loc:this.loc(e)}},t.parseScalarTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");var n=this.parseName(),r=this.parseDirectives(!0);return{kind:i.h.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r,loc:this.loc(e)}},t.parseObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");var n=this.parseName(),r=this.parseImplementsInterfaces(),o=this.parseDirectives(!0),a=this.parseFieldsDefinition();return{kind:i.h.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:o,fields:a,loc:this.loc(e)}},t.parseImplementsInterfaces=function(){var e;if(!this.expectOptionalKeyword("implements"))return[];if(!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacySDLImplementsInterfaces)){var t=[];this.expectOptionalToken(a.T.AMP);do{t.push(this.parseNamedType())}while(this.expectOptionalToken(a.T.AMP)||this.peek(a.T.NAME));return t}return this.delimitedMany(a.T.AMP,this.parseNamedType)},t.parseFieldsDefinition=function(){var e;return!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacySDLEmptyFields)&&this.peek(a.T.BRACE_L)&&this._lexer.lookahead().kind===a.T.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(a.T.BRACE_L,this.parseFieldDefinition,a.T.BRACE_R)},t.parseFieldDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(a.T.COLON);var o=this.parseTypeReference(),s=this.parseDirectives(!0);return{kind:i.h.FIELD_DEFINITION,description:t,name:n,arguments:r,type:o,directives:s,loc:this.loc(e)}},t.parseArgumentDefs=function(){return this.optionalMany(a.T.PAREN_L,this.parseInputValueDef,a.T.PAREN_R)},t.parseInputValueDef=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(a.T.COLON);var r,o=this.parseTypeReference();this.expectOptionalToken(a.T.EQUALS)&&(r=this.parseValueLiteral(!0));var s=this.parseDirectives(!0);return{kind:i.h.INPUT_VALUE_DEFINITION,description:t,name:n,type:o,defaultValue:r,directives:s,loc:this.loc(e)}},t.parseInterfaceTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");var n=this.parseName(),r=this.parseImplementsInterfaces(),o=this.parseDirectives(!0),a=this.parseFieldsDefinition();return{kind:i.h.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:o,fields:a,loc:this.loc(e)}},t.parseUnionTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");var n=this.parseName(),r=this.parseDirectives(!0),o=this.parseUnionMemberTypes();return{kind:i.h.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:o,loc:this.loc(e)}},t.parseUnionMemberTypes=function(){return this.expectOptionalToken(a.T.EQUALS)?this.delimitedMany(a.T.PIPE,this.parseNamedType):[]},t.parseEnumTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");var n=this.parseName(),r=this.parseDirectives(!0),o=this.parseEnumValuesDefinition();return{kind:i.h.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:o,loc:this.loc(e)}},t.parseEnumValuesDefinition=function(){return this.optionalMany(a.T.BRACE_L,this.parseEnumValueDefinition,a.T.BRACE_R)},t.parseEnumValueDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseDirectives(!0);return{kind:i.h.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r,loc:this.loc(e)}},t.parseInputObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");var n=this.parseName(),r=this.parseDirectives(!0),o=this.parseInputFieldsDefinition();return{kind:i.h.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:o,loc:this.loc(e)}},t.parseInputFieldsDefinition=function(){return this.optionalMany(a.T.BRACE_L,this.parseInputValueDef,a.T.BRACE_R)},t.parseTypeSystemExtension=function(){var e=this._lexer.lookahead();if(e.kind===a.T.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)},t.parseSchemaExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var t=this.parseDirectives(!0),n=this.optionalMany(a.T.BRACE_L,this.parseOperationTypeDefinition,a.T.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return{kind:i.h.SCHEMA_EXTENSION,directives:t,operationTypes:n,loc:this.loc(e)}},t.parseScalarTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var t=this.parseName(),n=this.parseDirectives(!0);if(0===n.length)throw this.unexpected();return{kind:i.h.SCALAR_TYPE_EXTENSION,name:t,directives:n,loc:this.loc(e)}},t.parseObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),o=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===o.length)throw this.unexpected();return{kind:i.h.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:o,loc:this.loc(e)}},t.parseInterfaceTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),o=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===o.length)throw this.unexpected();return{kind:i.h.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:o,loc:this.loc(e)}},t.parseUnionTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseUnionMemberTypes();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:i.h.UNION_TYPE_EXTENSION,name:t,directives:n,types:r,loc:this.loc(e)}},t.parseEnumTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseEnumValuesDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:i.h.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r,loc:this.loc(e)}},t.parseInputObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseInputFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:i.h.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r,loc:this.loc(e)}},t.parseDirectiveDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(a.T.AT);var n=this.parseName(),r=this.parseArgumentDefs(),o=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var s=this.parseDirectiveLocations();return{kind:i.h.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:o,locations:s,loc:this.loc(e)}},t.parseDirectiveLocations=function(){return this.delimitedMany(a.T.PIPE,this.parseDirectiveLocation)},t.parseDirectiveLocation=function(){var e=this._lexer.token,t=this.parseName();if(void 0!==l.B[t.value])return t;throw this.unexpected(e)},t.loc=function(e){var t;if(!0!==(null===(t=this._options)||void 0===t?void 0:t.noLocation))return new o.Ye(e,this._lexer.lastToken,this._lexer.source)},t.peek=function(e){return this._lexer.token.kind===e},t.expectToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t;throw(0,r.h)(this._lexer.source,t.start,"Expected ".concat(m(e),", found ").concat(h(t),"."))},t.expectOptionalToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t},t.expectKeyword=function(e){var t=this._lexer.token;if(t.kind!==a.T.NAME||t.value!==e)throw(0,r.h)(this._lexer.source,t.start,'Expected "'.concat(e,'", found ').concat(h(t),"."));this._lexer.advance()},t.expectOptionalKeyword=function(e){var t=this._lexer.token;return t.kind===a.T.NAME&&t.value===e&&(this._lexer.advance(),!0)},t.unexpected=function(e){var t=null!=e?e:this._lexer.token;return(0,r.h)(this._lexer.source,t.start,"Unexpected ".concat(h(t),"."))},t.any=function(e,t,n){this.expectToken(e);for(var r=[];!this.expectOptionalToken(n);)r.push(t.call(this));return r},t.optionalMany=function(e,t,n){if(this.expectOptionalToken(e)){var r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r}return[]},t.many=function(e,t,n){this.expectToken(e);var r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r},t.delimitedMany=function(e,t){this.expectOptionalToken(e);var n=[];do{n.push(t.call(this))}while(this.expectOptionalToken(e));return n},e}();function h(e){var t=e.value;return m(e.kind)+(null!=t?' "'.concat(t,'"'):"")}function m(e){return(0,c.u)(e)?'"'.concat(e,'"'):e}},6453:(e,t,n)=>{"use strict";n.d(t,{D$:()=>d,G4:()=>c,Ir:()=>i,VB:()=>l,Wk:()=>o,aU:()=>p,nr:()=>s,pO:()=>a,zT:()=>u});var r=n(6450);function i(e){return o(e)||c(e)||p(e)}function o(e){return e.kind===r.h.OPERATION_DEFINITION||e.kind===r.h.FRAGMENT_DEFINITION}function a(e){return e.kind===r.h.FIELD||e.kind===r.h.FRAGMENT_SPREAD||e.kind===r.h.INLINE_FRAGMENT}function s(e){return e.kind===r.h.VARIABLE||e.kind===r.h.INT||e.kind===r.h.FLOAT||e.kind===r.h.STRING||e.kind===r.h.BOOLEAN||e.kind===r.h.NULL||e.kind===r.h.ENUM||e.kind===r.h.LIST||e.kind===r.h.OBJECT}function l(e){return e.kind===r.h.NAMED_TYPE||e.kind===r.h.LIST_TYPE||e.kind===r.h.NON_NULL_TYPE}function c(e){return e.kind===r.h.SCHEMA_DEFINITION||u(e)||e.kind===r.h.DIRECTIVE_DEFINITION}function u(e){return e.kind===r.h.SCALAR_TYPE_DEFINITION||e.kind===r.h.OBJECT_TYPE_DEFINITION||e.kind===r.h.INTERFACE_TYPE_DEFINITION||e.kind===r.h.UNION_TYPE_DEFINITION||e.kind===r.h.ENUM_TYPE_DEFINITION||e.kind===r.h.INPUT_OBJECT_TYPE_DEFINITION}function p(e){return e.kind===r.h.SCHEMA_EXTENSION||d(e)}function d(e){return e.kind===r.h.SCALAR_TYPE_EXTENSION||e.kind===r.h.OBJECT_TYPE_EXTENSION||e.kind===r.h.INTERFACE_TYPE_EXTENSION||e.kind===r.h.UNION_TYPE_EXTENSION||e.kind===r.h.ENUM_TYPE_EXTENSION||e.kind===r.h.INPUT_OBJECT_TYPE_EXTENSION}},6803:(e,t,n)=>{"use strict";n.d(t,{Q:()=>i,z:()=>o});var r=n(1654);function i(e){return o(e.source,(0,r.k)(e.source,e.start))}function o(e,t){var n=e.locationOffset.column-1,r=s(n)+e.body,i=t.line-1,o=e.locationOffset.line-1,l=t.line+o,c=1===t.line?n:0,u=t.column+c,p="".concat(e.name,":").concat(l,":").concat(u,"\n"),d=r.split(/\r\n|[\n\r]/g),f=d[i];if(f.length>120){for(var h=Math.floor(u/80),m=u%80,g=[],v=0;v{"use strict";n.d(t,{S:()=>o});var r=n(7636),i=n(7420);function o(e){return(0,r.Vn)(e,{leave:a})}var a={Name:function(e){return e.value},Variable:function(e){return"$"+e.name},Document:function(e){return l(e.definitions,"\n\n")+"\n"},OperationDefinition:function(e){var t=e.operation,n=e.name,r=u("(",l(e.variableDefinitions,", "),")"),i=l(e.directives," "),o=e.selectionSet;return n||i||r||"query"!==t?l([t,l([n,r]),i,o]," "):o},VariableDefinition:function(e){var t=e.variable,n=e.type,r=e.defaultValue,i=e.directives;return t+": "+n+u(" = ",r)+u(" ",l(i," "))},SelectionSet:function(e){return c(e.selections)},Field:function(e){var t=e.alias,n=e.name,r=e.arguments,i=e.directives,o=e.selectionSet,a=u("",t,": ")+n,s=a+u("(",l(r,", "),")");return s.length>80&&(s=a+u("(\n",p(l(r,"\n")),"\n)")),l([s,l(i," "),o]," ")},Argument:function(e){return e.name+": "+e.value},FragmentSpread:function(e){return"..."+e.name+u(" ",l(e.directives," "))},InlineFragment:function(e){var t=e.typeCondition,n=e.directives,r=e.selectionSet;return l(["...",u("on ",t),l(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(u("(",l(r,", "),")")," ")+"on ".concat(n," ").concat(u("",l(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?(0,i.LZ)(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"["+l(e.values,", ")+"]"},ObjectValue:function(e){return"{"+l(e.fields,", ")+"}"},ObjectField:function(e){return e.name+": "+e.value},Directive:function(e){return"@"+e.name+u("(",l(e.arguments,", "),")")},NamedType:function(e){return e.name},ListType:function(e){return"["+e.type+"]"},NonNullType:function(e){return e.type+"!"},SchemaDefinition:s((function(e){var t=e.directives,n=e.operationTypes;return l(["schema",l(t," "),c(n)]," ")})),OperationTypeDefinition:function(e){return e.operation+": "+e.type},ScalarTypeDefinition:s((function(e){return l(["scalar",e.name,l(e.directives," ")]," ")})),ObjectTypeDefinition:s((function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return l(["type",t,u("implements ",l(n," & ")),l(r," "),c(i)]," ")})),FieldDefinition:s((function(e){var t=e.name,n=e.arguments,r=e.type,i=e.directives;return t+(f(n)?u("(\n",p(l(n,"\n")),"\n)"):u("(",l(n,", "),")"))+": "+r+u(" ",l(i," "))})),InputValueDefinition:s((function(e){var t=e.name,n=e.type,r=e.defaultValue,i=e.directives;return l([t+": "+n,u("= ",r),l(i," ")]," ")})),InterfaceTypeDefinition:s((function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return l(["interface",t,u("implements ",l(n," & ")),l(r," "),c(i)]," ")})),UnionTypeDefinition:s((function(e){var t=e.name,n=e.directives,r=e.types;return l(["union",t,l(n," "),r&&0!==r.length?"= "+l(r," | "):""]," ")})),EnumTypeDefinition:s((function(e){var t=e.name,n=e.directives,r=e.values;return l(["enum",t,l(n," "),c(r)]," ")})),EnumValueDefinition:s((function(e){return l([e.name,l(e.directives," ")]," ")})),InputObjectTypeDefinition:s((function(e){var t=e.name,n=e.directives,r=e.fields;return l(["input",t,l(n," "),c(r)]," ")})),DirectiveDefinition:s((function(e){var t=e.name,n=e.arguments,r=e.repeatable,i=e.locations;return"directive @"+t+(f(n)?u("(\n",p(l(n,"\n")),"\n)"):u("(",l(n,", "),")"))+(r?" repeatable":"")+" on "+l(i," | ")})),SchemaExtension:function(e){var t=e.directives,n=e.operationTypes;return l(["extend schema",l(t," "),c(n)]," ")},ScalarTypeExtension:function(e){return l(["extend scalar",e.name,l(e.directives," ")]," ")},ObjectTypeExtension:function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return l(["extend type",t,u("implements ",l(n," & ")),l(r," "),c(i)]," ")},InterfaceTypeExtension:function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return l(["extend interface",t,u("implements ",l(n," & ")),l(r," "),c(i)]," ")},UnionTypeExtension:function(e){var t=e.name,n=e.directives,r=e.types;return l(["extend union",t,l(n," "),r&&0!==r.length?"= "+l(r," | "):""]," ")},EnumTypeExtension:function(e){var t=e.name,n=e.directives,r=e.values;return l(["extend enum",t,l(n," "),c(r)]," ")},InputObjectTypeExtension:function(e){var t=e.name,n=e.directives,r=e.fields;return l(["extend input",t,l(n," "),c(r)]," ")}};function s(e){return function(t){return l([t.description,e(t)],"\n")}}function l(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 c(e){return u("{\n",p(l(e,"\n")),"\n}")}function u(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return null!=t&&""!==t?e+t+n:""}function p(e){return u(" ",e.replace(/\n/g,"\n "))}function d(e){return-1!==e.indexOf("\n")}function f(e){return null!=e&&e.some(d)}},1112:(e,t,n)=>{"use strict";n.d(t,{H:()=>l,T:()=>c});var r=n(824),i=n(6589),o=n(3767),a=n(9495);function s(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:"GraphQL request",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{line:1,column:1};"string"==typeof e||(0,o.Z)(0,"Body must be a string. Received: ".concat((0,i.Z)(e),".")),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||(0,o.Z)(0,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,o.Z)(0,"column in locationOffset is 1-indexed and must be positive.")}var t,n;return t=e,(n=[{key:r.YF,get:function(){return"Source"}}])&&s(t.prototype,n),e}();function c(e){return(0,a.Z)(e,l)}},7525:(e,t,n)=>{"use strict";n.d(t,{T:()=>r});var r=Object.freeze({SOF:"",EOF:"",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"})},7636:(e,t,n)=>{"use strict";n.d(t,{$_:()=>a,CK:()=>c,Vn:()=>s,j1:()=>l});var r=n(6589),i=n(2387),o={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},a=Object.freeze({});function s(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o,s=void 0,l=Array.isArray(e),u=[e],p=-1,d=[],f=void 0,h=void 0,m=void 0,g=[],v=[],y=e;do{var b=++p===u.length,_=b&&0!==d.length;if(b){if(h=0===v.length?void 0:g[g.length-1],f=m,m=v.pop(),_){if(l)f=f.slice();else{for(var E={},k=0,w=Object.keys(f);k{"use strict";n.d(t,{Z:()=>i});var r=n(824);const i=Array.from||function(e,t,n){if(null==e)throw new TypeError("Array.from requires an array-like object - not null or undefined");var i=e[r.Xr];if("function"==typeof i){for(var o,a=i.call(e),s=[],l=0;!(o=a.next()).done;++l)if(s.push(t.call(n,o.value,l)),l>9999999)throw new TypeError("Near-infinite iteration.");return s}var c=e.length;if("number"==typeof c&&c>=0&&c%1==0){for(var u=[],p=0;p{"use strict";n.d(t,{Z:()=>r});const r=Array.prototype.find?function(e,t){return Array.prototype.find.call(e,t)}:function(e,t){for(var n=0;n{"use strict";n.d(t,{Z:()=>r});const r=Number.isFinite||function(e){return"number"==typeof e&&isFinite(e)}},3846:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=Object.entries||function(e){return Object.keys(e).map((function(t){return[t,e[t]]}))}},9622:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))}},824:(e,t,n)=>{"use strict";n.d(t,{PA:()=>i,Xr:()=>r,YF:()=>o});var r="function"==typeof Symbol&&null!=Symbol.iterator?Symbol.iterator:"@@iterator",i="function"==typeof Symbol&&null!=Symbol.asyncIterator?Symbol.asyncIterator:"@@asyncIterator",o="function"==typeof Symbol&&null!=Symbol.toStringTag?Symbol.toStringTag:"@@toStringTag"},275:(e,t,n)=>{"use strict";n.d(t,{mR:()=>_e,sR:()=>ke,oW:()=>ve,p2:()=>K,bM:()=>J,h6:()=>ue,n2:()=>ce,Gp:()=>ye,DM:()=>me,fU:()=>Y,M_:()=>$,Zu:()=>L,U8:()=>M,qT:()=>U,k2:()=>D,H5:()=>H,kS:()=>q,rM:()=>oe,E$:()=>V,i_:()=>ne,Z6:()=>A,Gt:()=>Z,Pt:()=>C,p_:()=>x,rc:()=>I,vX:()=>ee,xC:()=>ae,tf:()=>re,m0:()=>W,Gv:()=>Q,EM:()=>F,hL:()=>R,j$:()=>z,oT:()=>N,UT:()=>G,HG:()=>P,Zs:()=>ie,zM:()=>j,zP:()=>te,lp:()=>S,SZ:()=>B,dK:()=>ge,Wd:()=>xe,KA:()=>T,P9:()=>w,EN:()=>O,fw:()=>X});var r=n(3846),i=n(824),o=n(6589),a=n(2059),s=n(5628),l=n(1471),c=n(3767),u=n(6193),p=n(9495),d=n(6296),f=n(9312);function h(e){return e}var m=n(1087),g=n(9800),v=n(4610),y=n(6450),b=n(778),_=n(4550);function E(e,t){for(var n=0;n0?e:void 0}K.prototype.toString=function(){return"["+String(this.ofType)+"]"},K.prototype.toJSON=function(){return this.toString()},Object.defineProperty(K.prototype,i.YF,{get:function(){return"GraphQLList"}}),(0,m.Z)(K),J.prototype.toString=function(){return String(this.ofType)+"!"},J.prototype.toJSON=function(){return this.toString()},Object.defineProperty(J.prototype,i.YF,{get:function(){return"GraphQLNonNull"}}),(0,m.Z)(J);var ce=function(){function e(e){var t,n,r,i=null!==(t=e.parseValue)&&void 0!==t?t:h;this.name=e.name,this.description=e.description,this.specifiedByUrl=e.specifiedByUrl,this.serialize=null!==(n=e.serialize)&&void 0!==n?n:h,this.parseValue=i,this.parseLiteral=null!==(r=e.parseLiteral)&&void 0!==r?r:function(e,t){return i((0,_.M)(e,t))},this.extensions=e.extensions&&(0,l.Z)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=le(e.extensionASTNodes),"string"==typeof e.name||(0,c.Z)(0,"Must provide name."),null==e.specifiedByUrl||"string"==typeof e.specifiedByUrl||(0,c.Z)(0,"".concat(this.name,' must provide "specifiedByUrl" as a string, ')+"but got: ".concat((0,o.Z)(e.specifiedByUrl),".")),null==e.serialize||"function"==typeof e.serialize||(0,c.Z)(0,"".concat(this.name,' must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.')),e.parseLiteral&&("function"==typeof e.parseValue&&"function"==typeof e.parseLiteral||(0,c.Z)(0,"".concat(this.name,' must provide both "parseValue" and "parseLiteral" functions.')))}var t=e.prototype;return t.toConfig=function(){var e;return{name:this.name,description:this.description,specifiedByUrl:this.specifiedByUrl,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(e=this.extensionASTNodes)&&void 0!==e?e:[]}},t.toString=function(){return this.name},t.toJSON=function(){return this.toString()},k(e,[{key:i.YF,get:function(){return"GraphQLScalarType"}}]),e}();(0,m.Z)(ce);var ue=function(){function e(e){this.name=e.name,this.description=e.description,this.isTypeOf=e.isTypeOf,this.extensions=e.extensions&&(0,l.Z)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=le(e.extensionASTNodes),this._fields=de.bind(void 0,e),this._interfaces=pe.bind(void 0,e),"string"==typeof e.name||(0,c.Z)(0,"Must provide name."),null==e.isTypeOf||"function"==typeof e.isTypeOf||(0,c.Z)(0,"".concat(this.name,' must provide "isTypeOf" as a function, ')+"but got: ".concat((0,o.Z)(e.isTypeOf),"."))}var t=e.prototype;return t.getFields=function(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields},t.getInterfaces=function(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces},t.toConfig=function(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:he(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes||[]}},t.toString=function(){return this.name},t.toJSON=function(){return this.toString()},k(e,[{key:i.YF,get:function(){return"GraphQLObjectType"}}]),e}();function pe(e){var t,n=null!==(t=se(e.interfaces))&&void 0!==t?t:[];return Array.isArray(n)||(0,c.Z)(0,"".concat(e.name," interfaces must be an Array or a function which returns an Array.")),n}function de(e){var t=se(e.fields);return fe(t)||(0,c.Z)(0,"".concat(e.name," fields must be an object with field names as keys or a function which returns such an object.")),(0,s.Z)(t,(function(t,n){var i;fe(t)||(0,c.Z)(0,"".concat(e.name,".").concat(n," field config must be an object.")),!("isDeprecated"in t)||(0,c.Z)(0,"".concat(e.name,".").concat(n,' should provide "deprecationReason" instead of "isDeprecated".')),null==t.resolve||"function"==typeof t.resolve||(0,c.Z)(0,"".concat(e.name,".").concat(n," field resolver must be a function if ")+"provided, but got: ".concat((0,o.Z)(t.resolve),"."));var a=null!==(i=t.args)&&void 0!==i?i:{};fe(a)||(0,c.Z)(0,"".concat(e.name,".").concat(n," args must be an object with argument names as keys."));var s=(0,r.Z)(a).map((function(e){var t=e[0],n=e[1];return{name:t,description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:n.extensions&&(0,l.Z)(n.extensions),astNode:n.astNode}}));return{name:n,description:t.description,type:t.type,args:s,resolve:t.resolve,subscribe:t.subscribe,isDeprecated:null!=t.deprecationReason,deprecationReason:t.deprecationReason,extensions:t.extensions&&(0,l.Z)(t.extensions),astNode:t.astNode}}))}function fe(e){return(0,f.Z)(e)&&!Array.isArray(e)}function he(e){return(0,s.Z)(e,(function(e){return{description:e.description,type:e.type,args:me(e.args),resolve:e.resolve,subscribe:e.subscribe,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}}))}function me(e){return(0,u.Z)(e,(function(e){return e.name}),(function(e){return{description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}}))}function ge(e){return j(e.type)&&void 0===e.defaultValue}(0,m.Z)(ue);var ve=function(){function e(e){this.name=e.name,this.description=e.description,this.resolveType=e.resolveType,this.extensions=e.extensions&&(0,l.Z)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=le(e.extensionASTNodes),this._fields=de.bind(void 0,e),this._interfaces=pe.bind(void 0,e),"string"==typeof e.name||(0,c.Z)(0,"Must provide name."),null==e.resolveType||"function"==typeof e.resolveType||(0,c.Z)(0,"".concat(this.name,' must provide "resolveType" as a function, ')+"but got: ".concat((0,o.Z)(e.resolveType),"."))}var t=e.prototype;return t.getFields=function(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields},t.getInterfaces=function(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces},t.toConfig=function(){var e;return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:he(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(e=this.extensionASTNodes)&&void 0!==e?e:[]}},t.toString=function(){return this.name},t.toJSON=function(){return this.toString()},k(e,[{key:i.YF,get:function(){return"GraphQLInterfaceType"}}]),e}();(0,m.Z)(ve);var ye=function(){function e(e){this.name=e.name,this.description=e.description,this.resolveType=e.resolveType,this.extensions=e.extensions&&(0,l.Z)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=le(e.extensionASTNodes),this._types=be.bind(void 0,e),"string"==typeof e.name||(0,c.Z)(0,"Must provide name."),null==e.resolveType||"function"==typeof e.resolveType||(0,c.Z)(0,"".concat(this.name,' must provide "resolveType" as a function, ')+"but got: ".concat((0,o.Z)(e.resolveType),"."))}var t=e.prototype;return t.getTypes=function(){return"function"==typeof this._types&&(this._types=this._types()),this._types},t.toConfig=function(){var e;return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(e=this.extensionASTNodes)&&void 0!==e?e:[]}},t.toString=function(){return this.name},t.toJSON=function(){return this.toString()},k(e,[{key:i.YF,get:function(){return"GraphQLUnionType"}}]),e}();function be(e){var t=se(e.types);return Array.isArray(t)||(0,c.Z)(0,"Must provide Array of types or a function which returns such an array for Union ".concat(e.name,".")),t}(0,m.Z)(ye);var _e=function(){function e(e){var t,n;this.name=e.name,this.description=e.description,this.extensions=e.extensions&&(0,l.Z)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=le(e.extensionASTNodes),this._values=(t=this.name,fe(n=e.values)||(0,c.Z)(0,"".concat(t," values must be an object with value names as keys.")),(0,r.Z)(n).map((function(e){var n=e[0],r=e[1];return fe(r)||(0,c.Z)(0,"".concat(t,".").concat(n,' must refer to an object with a "value" key ')+"representing an internal value but got: ".concat((0,o.Z)(r),".")),!("isDeprecated"in r)||(0,c.Z)(0,"".concat(t,".").concat(n,' should provide "deprecationReason" instead of "isDeprecated".')),{name:n,description:r.description,value:void 0!==r.value?r.value:n,isDeprecated:null!=r.deprecationReason,deprecationReason:r.deprecationReason,extensions:r.extensions&&(0,l.Z)(r.extensions),astNode:r.astNode}}))),this._valueLookup=new Map(this._values.map((function(e){return[e.value,e]}))),this._nameLookup=(0,a.Z)(this._values,(function(e){return e.name})),"string"==typeof e.name||(0,c.Z)(0,"Must provide name.")}var t=e.prototype;return t.getValues=function(){return this._values},t.getValue=function(e){return this._nameLookup[e]},t.serialize=function(e){var t=this._valueLookup.get(e);if(void 0===t)throw new v._('Enum "'.concat(this.name,'" cannot represent value: ').concat((0,o.Z)(e)));return t.name},t.parseValue=function(e){if("string"!=typeof e){var t=(0,o.Z)(e);throw new v._('Enum "'.concat(this.name,'" cannot represent non-string value: ').concat(t,".")+Ee(this,t))}var n=this.getValue(e);if(null==n)throw new v._('Value "'.concat(e,'" does not exist in "').concat(this.name,'" enum.')+Ee(this,e));return n.value},t.parseLiteral=function(e,t){if(e.kind!==y.h.ENUM){var n=(0,b.S)(e);throw new v._('Enum "'.concat(this.name,'" cannot represent non-enum value: ').concat(n,".")+Ee(this,n),e)}var r=this.getValue(e.value);if(null==r){var i=(0,b.S)(e);throw new v._('Value "'.concat(i,'" does not exist in "').concat(this.name,'" enum.')+Ee(this,i),e)}return r.value},t.toConfig=function(){var e,t=(0,u.Z)(this.getValues(),(function(e){return e.name}),(function(e){return{description:e.description,value:e.value,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}}));return{name:this.name,description:this.description,values:t,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(e=this.extensionASTNodes)&&void 0!==e?e:[]}},t.toString=function(){return this.name},t.toJSON=function(){return this.toString()},k(e,[{key:i.YF,get:function(){return"GraphQLEnumType"}}]),e}();function Ee(e,t){var n=e.getValues().map((function(e){return e.name})),r=(0,g.Z)(t,n);return(0,d.Z)("the enum value",r)}(0,m.Z)(_e);var ke=function(){function e(e){this.name=e.name,this.description=e.description,this.extensions=e.extensions&&(0,l.Z)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=le(e.extensionASTNodes),this._fields=we.bind(void 0,e),"string"==typeof e.name||(0,c.Z)(0,"Must provide name.")}var t=e.prototype;return t.getFields=function(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields},t.toConfig=function(){var e,t=(0,s.Z)(this.getFields(),(function(e){return{description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}}));return{name:this.name,description:this.description,fields:t,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(e=this.extensionASTNodes)&&void 0!==e?e:[]}},t.toString=function(){return this.name},t.toJSON=function(){return this.toString()},k(e,[{key:i.YF,get:function(){return"GraphQLInputObjectType"}}]),e}();function we(e){var t=se(e.fields);return fe(t)||(0,c.Z)(0,"".concat(e.name," fields must be an object with field names as keys or a function which returns such an object.")),(0,s.Z)(t,(function(t,n){return!("resolve"in t)||(0,c.Z)(0,"".concat(e.name,".").concat(n," field has a resolve property, but Input Types cannot define resolvers.")),{name:n,description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:t.extensions&&(0,l.Z)(t.extensions),astNode:t.astNode}}))}function xe(e){return j(e.type)&&void 0===e.defaultValue}(0,m.Z)(ke)},6751:(e,t,n)=>{"use strict";n.d(t,{CO:()=>g,NZ:()=>v,QE:()=>b,SY:()=>_,V4:()=>w,Yf:()=>y,df:()=>k,fg:()=>E,wX:()=>m,xg:()=>x});var r=n(3846),i=n(824),o=n(6589),a=n(1471),s=n(3767),l=n(9495),c=n(9312),u=n(1087),p=n(4643),d=n(4166),f=n(275);function h(e,t){for(var n=0;n{"use strict";n.d(t,{Az:()=>_,PX:()=>b,TK:()=>p,XQ:()=>g,e_:()=>m,hU:()=>k,jT:()=>v,l3:()=>d,nL:()=>w,qz:()=>h,s9:()=>x,tF:()=>E,x2:()=>f,zU:()=>y});var r=n(9622),i=n(6589),o=n(3077),a=n(778),s=n(4643),l=n(508),c=n(4166),u=n(275),p=new u.h6({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:function(){return{description:{type:c.kH,resolve:function(e){return e.description}},types:{description:"A list of all types supported by this server.",type:new u.bM(new u.p2(new u.bM(h))),resolve:function(e){return(0,r.Z)(e.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new u.bM(h),resolve:function(e){return e.getQueryType()}},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:h,resolve:function(e){return e.getMutationType()}},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:h,resolve:function(e){return e.getSubscriptionType()}},directives:{description:"A list of all directives supported by this server.",type:new u.bM(new u.p2(new u.bM(d))),resolve:function(e){return e.getDirectives()}}}}}),d=new u.h6({name:"__Directive",description:"A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.\n\nIn some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.",fields:function(){return{name:{type:new u.bM(c.kH),resolve:function(e){return e.name}},description:{type:c.kH,resolve:function(e){return e.description}},isRepeatable:{type:new u.bM(c.EZ),resolve:function(e){return e.isRepeatable}},locations:{type:new u.bM(new u.p2(new u.bM(f))),resolve:function(e){return e.locations}},args:{type:new u.bM(new u.p2(new u.bM(g))),args:{includeDeprecated:{type:c.EZ,defaultValue:!1}},resolve:function(e,t){return t.includeDeprecated?e.args:e.args.filter((function(e){return null==e.deprecationReason}))}}}}}),f=new u.mR({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:s.B.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:s.B.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:s.B.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:s.B.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:s.B.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:s.B.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:s.B.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:s.B.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:s.B.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:s.B.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:s.B.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:s.B.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:s.B.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:s.B.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:s.B.UNION,description:"Location adjacent to a union definition."},ENUM:{value:s.B.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:s.B.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:s.B.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:s.B.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}}),h=new u.h6({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByUrl`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:function(){return{kind:{type:new u.bM(b),resolve:function(e){return(0,u.KA)(e)?y.SCALAR:(0,u.lp)(e)?y.OBJECT:(0,u.oT)(e)?y.INTERFACE:(0,u.EN)(e)?y.UNION:(0,u.EM)(e)?y.ENUM:(0,u.hL)(e)?y.INPUT_OBJECT:(0,u.HG)(e)?y.LIST:(0,u.zM)(e)?y.NON_NULL:void(0,o.Z)(0,'Unexpected type: "'.concat((0,i.Z)(e),'".'))}},name:{type:c.kH,resolve:function(e){return void 0!==e.name?e.name:void 0}},description:{type:c.kH,resolve:function(e){return void 0!==e.description?e.description:void 0}},specifiedByUrl:{type:c.kH,resolve:function(e){return void 0!==e.specifiedByUrl?e.specifiedByUrl:void 0}},fields:{type:new u.p2(new u.bM(m)),args:{includeDeprecated:{type:c.EZ,defaultValue:!1}},resolve:function(e,t){var n=t.includeDeprecated;if((0,u.lp)(e)||(0,u.oT)(e)){var i=(0,r.Z)(e.getFields());return n?i:i.filter((function(e){return null==e.deprecationReason}))}}},interfaces:{type:new u.p2(new u.bM(h)),resolve:function(e){if((0,u.lp)(e)||(0,u.oT)(e))return e.getInterfaces()}},possibleTypes:{type:new u.p2(new u.bM(h)),resolve:function(e,t,n,r){var i=r.schema;if((0,u.m0)(e))return i.getPossibleTypes(e)}},enumValues:{type:new u.p2(new u.bM(v)),args:{includeDeprecated:{type:c.EZ,defaultValue:!1}},resolve:function(e,t){var n=t.includeDeprecated;if((0,u.EM)(e)){var r=e.getValues();return n?r:r.filter((function(e){return null==e.deprecationReason}))}}},inputFields:{type:new u.p2(new u.bM(g)),args:{includeDeprecated:{type:c.EZ,defaultValue:!1}},resolve:function(e,t){var n=t.includeDeprecated;if((0,u.hL)(e)){var i=(0,r.Z)(e.getFields());return n?i:i.filter((function(e){return null==e.deprecationReason}))}}},ofType:{type:h,resolve:function(e){return void 0!==e.ofType?e.ofType:void 0}}}}}),m=new u.h6({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:function(){return{name:{type:new u.bM(c.kH),resolve:function(e){return e.name}},description:{type:c.kH,resolve:function(e){return e.description}},args:{type:new u.bM(new u.p2(new u.bM(g))),args:{includeDeprecated:{type:c.EZ,defaultValue:!1}},resolve:function(e,t){return t.includeDeprecated?e.args:e.args.filter((function(e){return null==e.deprecationReason}))}},type:{type:new u.bM(h),resolve:function(e){return e.type}},isDeprecated:{type:new u.bM(c.EZ),resolve:function(e){return null!=e.deprecationReason}},deprecationReason:{type:c.kH,resolve:function(e){return e.deprecationReason}}}}}),g=new u.h6({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:function(){return{name:{type:new u.bM(c.kH),resolve:function(e){return e.name}},description:{type:c.kH,resolve:function(e){return e.description}},type:{type:new u.bM(h),resolve:function(e){return e.type}},defaultValue:{type:c.kH,description:"A GraphQL-formatted string representing the default value for this input value.",resolve:function(e){var t=e.type,n=e.defaultValue,r=(0,l.J)(n,t);return r?(0,a.S)(r):null}},isDeprecated:{type:new u.bM(c.EZ),resolve:function(e){return null!=e.deprecationReason}},deprecationReason:{type:c.kH,resolve:function(e){return e.deprecationReason}}}}}),v=new u.h6({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:function(){return{name:{type:new u.bM(c.kH),resolve:function(e){return e.name}},description:{type:c.kH,resolve:function(e){return e.description}},isDeprecated:{type:new u.bM(c.EZ),resolve:function(e){return null!=e.deprecationReason}},deprecationReason:{type:c.kH,resolve:function(e){return e.deprecationReason}}}}}),y=Object.freeze({SCALAR:"SCALAR",OBJECT:"OBJECT",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",INPUT_OBJECT:"INPUT_OBJECT",LIST:"LIST",NON_NULL:"NON_NULL"}),b=new u.mR({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:y.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:y.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:y.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:y.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:y.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:y.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:y.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:y.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}}),_={name:"__schema",type:new u.bM(p),description:"Access the current type schema of this server.",args:[],resolve:function(e,t,n,r){return r.schema},isDeprecated:!1,deprecationReason:void 0,extensions:void 0,astNode:void 0},E={name:"__type",type:h,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new u.bM(c.kH),defaultValue:void 0,deprecationReason:void 0,extensions:void 0,astNode:void 0}],resolve:function(e,t,n,r){var i=t.name;return r.schema.getType(i)},isDeprecated:!1,deprecationReason:void 0,extensions:void 0,astNode:void 0},k={name:"__typename",type:new u.bM(c.kH),description:"The name of the current Object type at runtime.",args:[],resolve:function(e,t,n,r){return r.parentType.name},isDeprecated:!1,deprecationReason:void 0,extensions:void 0,astNode:void 0},w=Object.freeze([p,d,f,h,m,g,v,b]);function x(e){return w.some((function(t){var n=t.name;return e.name===n}))}},4166:(e,t,n)=>{"use strict";n.d(t,{EZ:()=>v,av:()=>h,km:()=>y,_o:()=>f,kH:()=>g,u1:()=>_,HS:()=>b});var r=n(5731);const i=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e};var o=n(6589),a=n(9312),s=n(6450),l=n(778),c=n(4610),u=n(275),p=2147483647,d=-2147483648,f=new u.n2({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize:function(e){var t=m(e);if("boolean"==typeof t)return t?1:0;var n=t;if("string"==typeof t&&""!==t&&(n=Number(t)),!i(n))throw new c._("Int cannot represent non-integer value: ".concat((0,o.Z)(t)));if(n>p||np||ep||t{"use strict";n.d(t,{EO:()=>v,XO:()=>y,nN:()=>g});var r=n(1184),i=n(708),o=n(9622),a=n(824),s=n(6589),l=n(1471),c=n(3767),u=n(9495),p=n(9312),d=n(375),f=n(6751),h=n(275);function m(e,t){for(var n=0;n{"use strict";n.d(t,{F:()=>h,J:()=>m});var r=n(1184),i=n(9622),o=n(6589),a=n(4610),s=n(1677),l=n(9818),c=n(2575),u=n(4054),p=n(375),d=n(6751),f=n(275);function h(e){if((0,u.EO)(e),e.__validationErrors)return e.__validationErrors;var t=new g(e);!function(e){var t=e.schema,n=t.getQueryType();if(n){if(!(0,f.lp)(n)){var r;e.reportError("Query root type must be Object type, it cannot be ".concat((0,o.Z)(n),"."),null!==(r=v(t,"query"))&&void 0!==r?r:n.astNode)}}else e.reportError("Query root type must be provided.",t.astNode);var i,a=t.getMutationType();a&&!(0,f.lp)(a)&&e.reportError("Mutation root type must be Object type if provided, it cannot be "+"".concat((0,o.Z)(a),"."),null!==(i=v(t,"mutation"))&&void 0!==i?i:a.astNode);var s,l=t.getSubscriptionType();l&&!(0,f.lp)(l)&&e.reportError("Subscription root type must be Object type if provided, it cannot be "+"".concat((0,o.Z)(l),"."),null!==(s=v(t,"subscription"))&&void 0!==s?s:l.astNode)}(t),function(e){for(var t=0,n=e.schema.getDirectives();t{"use strict";n.d(t,{a:()=>u,y:()=>d});var r=n(1184),i=n(6450),o=n(2387),a=n(7636),s=n(275),l=n(375),c=n(3106),u=function(){function e(e,t,n){this._schema=e,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=null!=t?t:p,n&&((0,s.j$)(n)&&this._inputTypeStack.push(n),(0,s.Gv)(n)&&this._parentTypeStack.push(n),(0,s.SZ)(n)&&this._typeStack.push(n))}var t=e.prototype;return t.getType=function(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]},t.getParentType=function(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]},t.getInputType=function(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]},t.getParentInputType=function(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]},t.getFieldDef=function(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]},t.getDefaultValue=function(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]},t.getDirective=function(){return this._directive},t.getArgument=function(){return this._argument},t.getEnumValue=function(){return this._enumValue},t.enter=function(e){var t=this._schema;switch(e.kind){case i.h.SELECTION_SET:var n=(0,s.xC)(this.getType());this._parentTypeStack.push((0,s.Gv)(n)?n:void 0);break;case i.h.FIELD:var o,a,l=this.getParentType();l&&(o=this._getFieldDef(t,l,e))&&(a=o.type),this._fieldDefStack.push(o),this._typeStack.push((0,s.SZ)(a)?a:void 0);break;case i.h.DIRECTIVE:this._directive=t.getDirective(e.name.value);break;case i.h.OPERATION_DEFINITION:var u;switch(e.operation){case"query":u=t.getQueryType();break;case"mutation":u=t.getMutationType();break;case"subscription":u=t.getSubscriptionType()}this._typeStack.push((0,s.lp)(u)?u:void 0);break;case i.h.INLINE_FRAGMENT:case i.h.FRAGMENT_DEFINITION:var p=e.typeCondition,d=p?(0,c._)(t,p):(0,s.xC)(this.getType());this._typeStack.push((0,s.SZ)(d)?d:void 0);break;case i.h.VARIABLE_DEFINITION:var f=(0,c._)(t,e.type);this._inputTypeStack.push((0,s.j$)(f)?f:void 0);break;case i.h.ARGUMENT:var h,m,g,v=null!==(h=this.getDirective())&&void 0!==h?h:this.getFieldDef();v&&(m=(0,r.Z)(v.args,(function(t){return t.name===e.name.value})))&&(g=m.type),this._argument=m,this._defaultValueStack.push(m?m.defaultValue:void 0),this._inputTypeStack.push((0,s.j$)(g)?g:void 0);break;case i.h.LIST:var y=(0,s.tf)(this.getInputType()),b=(0,s.HG)(y)?y.ofType:y;this._defaultValueStack.push(void 0),this._inputTypeStack.push((0,s.j$)(b)?b:void 0);break;case i.h.OBJECT_FIELD:var _,E,k=(0,s.xC)(this.getInputType());(0,s.hL)(k)&&(E=k.getFields()[e.name.value])&&(_=E.type),this._defaultValueStack.push(E?E.defaultValue:void 0),this._inputTypeStack.push((0,s.j$)(_)?_:void 0);break;case i.h.ENUM:var w,x=(0,s.xC)(this.getInputType());(0,s.EM)(x)&&(w=x.getValue(e.value)),this._enumValue=w}},t.leave=function(e){switch(e.kind){case i.h.SELECTION_SET:this._parentTypeStack.pop();break;case i.h.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case i.h.DIRECTIVE:this._directive=null;break;case i.h.OPERATION_DEFINITION:case i.h.INLINE_FRAGMENT:case i.h.FRAGMENT_DEFINITION:this._typeStack.pop();break;case i.h.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case i.h.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case i.h.LIST:case i.h.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case i.h.ENUM:this._enumValue=null}},e}();function p(e,t,n){var r=n.name.value;return r===l.Az.name&&e.getQueryType()===t?l.Az:r===l.tF.name&&e.getQueryType()===t?l.tF:r===l.hU.name&&(0,s.Gv)(t)?l.hU:(0,s.lp)(t)||(0,s.oT)(t)?t.getFields()[r]:void 0}function d(e,t){return{enter:function(n){e.enter(n);var r=(0,a.CK)(t,n.kind,!1);if(r){var i=r.apply(t,arguments);return void 0!==i&&(e.leave(n),(0,o.UG)(i)&&e.enter(i)),i}},leave:function(n){var r,i=(0,a.CK)(t,n.kind,!0);return i&&(r=i.apply(t,arguments)),e.leave(n),r}}}},9818:(e,t,n)=>{"use strict";n.d(t,{k:()=>a,u:()=>s});var r=n(3767),i=n(4610),o=/^[_a-zA-Z][_a-zA-Z0-9]*$/;function a(e){var t=s(e);if(t)throw t;return e}function s(e){return"string"==typeof e||(0,r.Z)(0,"Expected name to be a string."),e.length>1&&"_"===e[0]&&"_"===e[1]?new i._('Name "'.concat(e,'" must not begin with "__", which is reserved by GraphQL introspection.')):o.test(e)?void 0:new i._('Names must match /^[_a-zA-Z][_a-zA-Z0-9]*$/ but "'.concat(e,'" does not.'))}},508:(e,t,n)=>{"use strict";n.d(t,{J:()=>d});var r=n(5731),i=n(9622),o=n(6589),a=n(3077),s=n(9312),l=n(7726),c=n(6450),u=n(4166),p=n(275);function d(e,t){if((0,p.zM)(t)){var n=d(e,t.ofType);return(null==n?void 0:n.kind)===c.h.NULL?null:n}if(null===e)return{kind:c.h.NULL};if(void 0===e)return null;if((0,p.HG)(t)){var h=t.ofType,m=(0,l.Z)(e);if(null!=m){for(var g=[],v=0;v{"use strict";n.d(t,{Z:()=>m});var r=n(9622),i=n(6589),o=n(3767),a=n(6193),s=n(9312),l=n(9691),c=n(4054),u=n(6751),p=n(4166),d=n(375),f=n(275),h=n(5574);function m(e,t){(0,s.Z)(e)&&(0,s.Z)(e.__schema)||(0,o.Z)(0,'Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: '.concat((0,i.Z)(e),"."));for(var n=e.__schema,m=(0,a.Z)(n.types,(function(e){return e.name}),(function(e){return function(e){if(null!=e&&null!=e.name&&null!=e.kind)switch(e.kind){case d.zU.SCALAR:return r=e,new f.n2({name:r.name,description:r.description,specifiedByUrl:r.specifiedByUrl});case d.zU.OBJECT:return n=e,new f.h6({name:n.name,description:n.description,interfaces:function(){return S(n)},fields:function(){return A(n)}});case d.zU.INTERFACE:return t=e,new f.oW({name:t.name,description:t.description,interfaces:function(){return S(t)},fields:function(){return A(t)}});case d.zU.UNION:return function(e){if(!e.possibleTypes){var t=(0,i.Z)(e);throw new Error("Introspection result missing possibleTypes: ".concat(t,"."))}return new f.Gp({name:e.name,description:e.description,types:function(){return e.possibleTypes.map(T)}})}(e);case d.zU.ENUM:return function(e){if(!e.enumValues){var t=(0,i.Z)(e);throw new Error("Introspection result missing enumValues: ".concat(t,"."))}return new f.mR({name:e.name,description:e.description,values:(0,a.Z)(e.enumValues,(function(e){return e.name}),(function(e){return{description:e.description,deprecationReason:e.deprecationReason}}))})}(e);case d.zU.INPUT_OBJECT:return function(e){if(!e.inputFields){var t=(0,i.Z)(e);throw new Error("Introspection result missing inputFields: ".concat(t,"."))}return new f.sR({name:e.name,description:e.description,fields:function(){return D(e.inputFields)}})}(e)}var t,n,r,o=(0,i.Z)(e);throw new Error("Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ".concat(o,"."))}(e)})),g=0,v=[].concat(p.HS,d.nL);g{"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){var t=function(e){for(var t=1;to})},2575:(e,t,n)=>{"use strict";n.d(t,{_7:()=>i,uJ:()=>o,zR:()=>a});var r=n(275);function i(e,t){return e===t||((0,r.zM)(e)&&(0,r.zM)(t)||!(!(0,r.HG)(e)||!(0,r.HG)(t)))&&i(e.ofType,t.ofType)}function o(e,t,n){return t===n||((0,r.zM)(n)?!!(0,r.zM)(t)&&o(e,t.ofType,n.ofType):(0,r.zM)(t)?o(e,t.ofType,n):(0,r.HG)(n)?!!(0,r.HG)(t)&&o(e,t.ofType,n.ofType):!(0,r.HG)(t)&&(0,r.m0)(n)&&((0,r.oT)(t)||(0,r.lp)(t))&&e.isSubType(n,t))}function a(e,t,n){return t===n||((0,r.m0)(t)?(0,r.m0)(n)?e.getPossibleTypes(t).some((function(t){return e.isSubType(n,t)})):e.isSubType(t,n):!!(0,r.m0)(n)&&e.isSubType(n,t))}},3106:(e,t,n)=>{"use strict";n.d(t,{_:()=>s});var r=n(6589),i=n(3077),o=n(6450),a=n(275);function s(e,t){var n;return t.kind===o.h.LIST_TYPE?(n=s(e,t.type))&&new a.p2(n):t.kind===o.h.NON_NULL_TYPE?(n=s(e,t.type))&&new a.bM(n):t.kind===o.h.NAMED_TYPE?e.getType(t.name.value):void(0,i.Z)(0,"Unexpected type node: "+(0,r.Z)(t))}},5574:(e,t,n)=>{"use strict";n.d(t,{u:()=>c});var r=n(9622),i=n(2059),o=n(6589),a=n(3077),s=n(6450),l=n(275);function c(e,t,n){if(e){if(e.kind===s.h.VARIABLE){var p=e.name.value;if(null==n||void 0===n[p])return;var d=n[p];if(null===d&&(0,l.zM)(t))return;return d}if((0,l.zM)(t)){if(e.kind===s.h.NULL)return;return c(e,t.ofType,n)}if(e.kind===s.h.NULL)return null;if((0,l.HG)(t)){var f=t.ofType;if(e.kind===s.h.LIST){for(var h=[],m=0,g=e.values;m{"use strict";n.d(t,{M:()=>s});var r=n(6589),i=n(3077),o=n(6193),a=n(6450);function s(e,t){switch(e.kind){case a.h.NULL:return null;case a.h.INT:return parseInt(e.value,10);case a.h.FLOAT:return parseFloat(e.value);case a.h.STRING:case a.h.ENUM:case a.h.BOOLEAN:return e.value;case a.h.LIST:return e.values.map((function(e){return s(e,t)}));case a.h.OBJECT:return(0,o.Z)(e.fields,(function(e){return e.name.value}),(function(e){return s(e.value,t)}));case a.h.VARIABLE:return null==t?void 0:t[e.name.value]}(0,i.Z)(0,"Unexpected value node: "+(0,r.Z)(e))}},5048:(e,t,n)=>{"use strict";n.d(t,{_t:()=>c,yv:()=>l});var r=n(6450),i=n(7636),o=n(7766);function a(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var s=function(){function e(e,t){this._ast=e,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=t}var t=e.prototype;return t.reportError=function(e){this._onError(e)},t.getDocument=function(){return this._ast},t.getFragment=function(e){var t=this._fragments;return t||(this._fragments=t=this.getDocument().definitions.reduce((function(e,t){return t.kind===r.h.FRAGMENT_DEFINITION&&(e[t.name.value]=t),e}),Object.create(null))),t[e]},t.getFragmentSpreads=function(e){var t=this._fragmentSpreads.get(e);if(!t){t=[];for(var n=[e];0!==n.length;)for(var i=0,o=n.pop().selections;i{"use strict";n.d(t,{i:()=>a});var r=n(4610),i=n(6450),o=n(6453);function a(e){return{Document:function(t){for(var n=0,a=t.definitions;n{"use strict";n.d(t,{A:()=>c});var r=n(708),i=n(6296),o=n(9800),a=n(7689),s=n(4610),l=n(275);function c(e){return{Field:function(t){var n=e.getParentType();if(n&&!e.getFieldDef()){var c=e.getSchema(),u=t.name.value,p=(0,i.Z)("to use an inline fragment on",function(e,t,n){if(!(0,l.m0)(t))return[];for(var i=new Set,o=Object.create(null),s=0,c=e.getPossibleTypes(t);s{"use strict";n.d(t,{T:()=>s});var r=n(4610),i=n(778),o=n(275),a=n(3106);function s(e){return{InlineFragment:function(t){var n=t.typeCondition;if(n){var s=(0,a._)(e.getSchema(),n);if(s&&!(0,o.Gv)(s)){var l=(0,i.S)(n);e.reportError(new r._('Fragment cannot condition on non composite type "'.concat(l,'".'),n))}}},FragmentDefinition:function(t){var n=(0,a._)(e.getSchema(),t.typeCondition);if(n&&!(0,o.Gv)(n)){var s=(0,i.S)(t.typeCondition);e.reportError(new r._('Fragment "'.concat(t.name.value,'" cannot condition on non composite type "').concat(s,'".'),t.typeCondition))}}}}},1792:(e,t,n)=>{"use strict";n.d(t,{e:()=>p,o:()=>d});var r=n(6296),i=n(9800),o=n(4610),a=n(6450),s=n(6751);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t{"use strict";n.d(t,{J:()=>c});var r=n(6589),i=n(3077),o=n(4610),a=n(6450),s=n(4643),l=n(6751);function c(e){for(var t=Object.create(null),n=e.getSchema(),c=n?n.getDirectives():l.V4,u=0;u{"use strict";n.d(t,{a:()=>i});var r=n(4610);function i(e){return{FragmentSpread:function(t){var n=t.name.value;e.getFragment(n)||e.reportError(new r._('Unknown fragment "'.concat(n,'".'),t.name))}}}},8933:(e,t,n)=>{"use strict";n.d(t,{I:()=>c});var r=n(6296),i=n(9800),o=n(4610),a=n(6453),s=n(4166),l=n(375);function c(e){for(var t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),s=Object.create(null),l=0,c=e.getDocument().definitions;l{"use strict";n.d(t,{F:()=>o});var r=n(4610),i=n(6450);function o(e){var t=0;return{Document:function(e){t=e.definitions.filter((function(e){return e.kind===i.h.OPERATION_DEFINITION})).length},OperationDefinition:function(n){!n.name&&t>1&&e.reportError(new r._("This anonymous operation must be the only defined operation.",n))}}}},3174:(e,t,n)=>{"use strict";n.d(t,{t:()=>i});var r=n(4610);function i(e){var t,n,i,o=e.getSchema(),a=null!==(t=null!==(n=null!==(i=null==o?void 0:o.astNode)&&void 0!==i?i:null==o?void 0:o.getQueryType())&&void 0!==n?n:null==o?void 0:o.getMutationType())&&void 0!==t?t:null==o?void 0:o.getSubscriptionType(),s=0;return{SchemaDefinition:function(t){a?e.reportError(new r._("Cannot define a new schema within a schema extension.",t)):(s>0&&e.reportError(new r._("Must provide only one schema definition.",t)),++s)}}}},7978:(e,t,n)=>{"use strict";n.d(t,{H:()=>i});var r=n(4610);function i(e){var t=Object.create(null),n=[],i=Object.create(null);return{OperationDefinition:function(){return!1},FragmentDefinition:function(e){return o(e),!1}};function o(a){if(!t[a.name.value]){var s=a.name.value;t[s]=!0;var l=e.getFragmentSpreads(a.selectionSet);if(0!==l.length){i[s]=n.length;for(var c=0;c{"use strict";n.d(t,{$:()=>i});var r=n(4610);function i(e){var t=Object.create(null);return{OperationDefinition:{enter:function(){t=Object.create(null)},leave:function(n){for(var i=e.getRecursiveVariableUsages(n),o=0;o{"use strict";n.d(t,{J:()=>i});var r=n(4610);function i(e){var t=[],n=[];return{OperationDefinition:function(e){return t.push(e),!1},FragmentDefinition:function(e){return n.push(e),!1},Document:{leave:function(){for(var i=Object.create(null),o=0;o{"use strict";n.d(t,{p:()=>i});var r=n(4610);function i(e){var t=[];return{OperationDefinition:{enter:function(){t=[]},leave:function(n){for(var i=Object.create(null),o=e.getRecursiveVariableUsages(n),a=0;a{"use strict";n.d(t,{y:()=>d});var r=n(1184),i=n(3846),o=n(6589),a=n(4610),s=n(6450),l=n(778),c=n(275),u=n(3106);function p(e){return Array.isArray(e)?e.map((function(e){var t=e[0],n=e[1];return'subfields "'.concat(t,'" conflict because ')+p(n)})).join(" and "):e}function d(e){var t=new E,n=new Map;return{SelectionSet:function(r){for(var o=function(e,t,n,r,o){var a=[],s=y(e,t,r,o),l=s[0],c=s[1];if(function(e,t,n,r,o){for(var a=0,s=(0,i.Z)(o);a1)for(var p=0;p0)return[[t,e.map((function(e){return e[0]}))],e.reduce((function(e,t){var n=t[1];return e.concat(n)}),[n]),e.reduce((function(e,t){var n=t[2];return e.concat(n)}),[r])]}(F,a,b,k)}}function v(e,t){return(0,c.HG)(e)?!(0,c.HG)(t)||v(e.ofType,t.ofType):!!(0,c.HG)(t)||((0,c.zM)(e)?!(0,c.zM)(t)||v(e.ofType,t.ofType):!!(0,c.zM)(t)||!(!(0,c.UT)(e)&&!(0,c.UT)(t))&&e!==t)}function y(e,t,n,r){var i=t.get(r);if(!i){var o=Object.create(null),a=Object.create(null);_(e,n,r,o,a),i=[o,Object.keys(a)],t.set(r,i)}return i}function b(e,t,n){var r=t.get(n.selectionSet);if(r)return r;var i=(0,u._)(e.getSchema(),n.typeCondition);return y(e,t,i,n.selectionSet)}function _(e,t,n,r,i){for(var o=0,a=n.selections;o{"use strict";n.d(t,{a:()=>l});var r=n(6589),i=n(4610),o=n(275),a=n(3106),s=n(2575);function l(e){return{InlineFragment:function(t){var n=e.getType(),a=e.getParentType();if((0,o.Gv)(n)&&(0,o.Gv)(a)&&!(0,s.zR)(e.getSchema(),n,a)){var l=(0,r.Z)(a),c=(0,r.Z)(n);e.reportError(new i._('Fragment cannot be spread here as objects of type "'.concat(l,'" can never be of type "').concat(c,'".'),t))}},FragmentSpread:function(t){var n=t.name.value,l=function(e,t){var n=e.getFragment(t);if(n){var r=(0,a._)(e.getSchema(),n.typeCondition);if((0,o.Gv)(r))return r}}(e,n),c=e.getParentType();if(l&&c&&!(0,s.zR)(e.getSchema(),l,c)){var u=(0,r.Z)(c),p=(0,r.Z)(l);e.reportError(new i._('Fragment "'.concat(n,'" cannot be spread here as objects of type "').concat(u,'" can never be of type "').concat(p,'".'),t))}}}}},5427:(e,t,n)=>{"use strict";n.d(t,{g:()=>f});var r,i=n(6589),o=n(3077),a=n(6296),s=n(9800),l=n(4610),c=n(6450),u=n(6453),p=n(275);function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e){for(var t=e.getSchema(),n=Object.create(null),r=0,d=e.getDocument().definitions;r{"use strict";n.d(t,{c:()=>h,s:()=>f});var r=n(6589),i=n(2059),o=n(4610),a=n(6450),s=n(778),l=n(6751),c=n(275);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t{"use strict";n.d(t,{O:()=>a});var r=n(6589),i=n(4610),o=n(275);function a(e){return{Field:function(t){var n=e.getType(),a=t.selectionSet;if(n)if((0,o.UT)((0,o.xC)(n))){if(a){var s=t.name.value,l=(0,r.Z)(n);e.reportError(new i._('Field "'.concat(s,'" must not have a selection since type "').concat(l,'" has no subfields.'),a))}}else if(!a){var c=t.name.value,u=(0,r.Z)(n);e.reportError(new i._('Field "'.concat(c,'" of type "').concat(u,'" must have a selection of subfields. Did you mean "').concat(c,' { ... }"?'),t))}}}}},524:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(4610);function i(e){return{OperationDefinition:function(t){"subscription"===t.operation&&1!==t.selectionSet.selections.length&&e.reportError(new r._(t.name?'Subscription "'.concat(t.name.value,'" must select only one top level field.'):"Anonymous Subscription must select only one top level field.",t.selectionSet.selections.slice(1)))}}}},5854:(e,t,n)=>{"use strict";n.d(t,{L:()=>i});var r=n(4610);function i(e){var t=Object.create(null);return{Field:function(){t=Object.create(null)},Directive:function(){t=Object.create(null)},Argument:function(n){var i=n.name.value;return t[i]?e.reportError(new r._('There can be only one argument named "'.concat(i,'".'),[t[i],n.name])):t[i]=n.name,!1}}}},4818:(e,t,n)=>{"use strict";n.d(t,{o:()=>i});var r=n(4610);function i(e){var t=Object.create(null),n=e.getSchema();return{DirectiveDefinition:function(i){var o=i.name.value;if(null==n||!n.getDirective(o))return t[o]?e.reportError(new r._('There can be only one directive named "@'.concat(o,'".'),[t[o],i.name])):t[o]=i.name,!1;e.reportError(new r._('Directive "@'.concat(o,'" already exists in the schema. It cannot be redefined.'),i.name))}}}},8338:(e,t,n)=>{"use strict";n.d(t,{k:()=>s});var r=n(4610),i=n(6450),o=n(6453),a=n(6751);function s(e){for(var t=Object.create(null),n=e.getSchema(),s=n?n.getDirectives():a.V4,l=0;l{"use strict";n.d(t,{L:()=>o});var r=n(4610),i=n(275);function o(e){var t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),o=Object.create(null);return{EnumTypeDefinition:a,EnumTypeExtension:a};function a(t){var a,s=t.name.value;o[s]||(o[s]=Object.create(null));for(var l=null!==(a=t.values)&&void 0!==a?a:[],c=o[s],u=0;u{"use strict";n.d(t,{y:()=>o});var r=n(4610),i=n(275);function o(e){var t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),i=Object.create(null);return{InputObjectTypeDefinition:o,InputObjectTypeExtension:o,InterfaceTypeDefinition:o,InterfaceTypeExtension:o,ObjectTypeDefinition:o,ObjectTypeExtension:o};function o(t){var o,s=t.name.value;i[s]||(i[s]=Object.create(null));for(var l=null!==(o=t.fields)&&void 0!==o?o:[],c=i[s],u=0;u{"use strict";n.d(t,{N:()=>i});var r=n(4610);function i(e){var t=Object.create(null);return{OperationDefinition:function(){return!1},FragmentDefinition:function(n){var i=n.name.value;return t[i]?e.reportError(new r._('There can be only one fragment named "'.concat(i,'".'),[t[i],n.name])):t[i]=n.name,!1}}}},1269:(e,t,n)=>{"use strict";n.d(t,{P:()=>i});var r=n(4610);function i(e){var t=[],n=Object.create(null);return{ObjectValue:{enter:function(){t.push(n),n=Object.create(null)},leave:function(){n=t.pop()}},ObjectField:function(t){var i=t.name.value;n[i]?e.reportError(new r._('There can be only one input field named "'.concat(i,'".'),[n[i],t.name])):n[i]=t.name}}}},1373:(e,t,n)=>{"use strict";n.d(t,{H:()=>i});var r=n(4610);function i(e){var t=Object.create(null);return{OperationDefinition:function(n){var i=n.name;return i&&(t[i.value]?e.reportError(new r._('There can be only one operation named "'.concat(i.value,'".'),[t[i.value],i])):t[i.value]=i),!1},FragmentDefinition:function(){return!1}}}},387:(e,t,n)=>{"use strict";n.d(t,{q:()=>i});var r=n(4610);function i(e){var t=e.getSchema(),n=Object.create(null),i=t?{query:t.getQueryType(),mutation:t.getMutationType(),subscription:t.getSubscriptionType()}:{};return{SchemaDefinition:o,SchemaExtension:o};function o(t){for(var o,a=null!==(o=t.operationTypes)&&void 0!==o?o:[],s=0;s{"use strict";n.d(t,{P:()=>i});var r=n(4610);function i(e){var t=Object.create(null),n=e.getSchema();return{ScalarTypeDefinition:i,ObjectTypeDefinition:i,InterfaceTypeDefinition:i,UnionTypeDefinition:i,EnumTypeDefinition:i,InputObjectTypeDefinition:i};function i(i){var o=i.name.value;if(null==n||!n.getType(o))return t[o]?e.reportError(new r._('There can be only one type named "'.concat(o,'".'),[t[o],i.name])):t[o]=i.name,!1;e.reportError(new r._('Type "'.concat(o,'" already exists in the schema. It cannot also be defined in this type definition.'),i.name))}}},9090:(e,t,n)=>{"use strict";n.d(t,{H:()=>i});var r=n(4610);function i(e){var t=Object.create(null);return{OperationDefinition:function(){t=Object.create(null)},VariableDefinition:function(n){var i=n.variable.name.value;t[i]?e.reportError(new r._('There can be only one variable named "$'.concat(i,'".'),[t[i],n.variable.name])):t[i]=n.variable.name}}}},2542:(e,t,n)=>{"use strict";n.d(t,{j:()=>p});var r=n(9622),i=n(2059),o=n(6589),a=n(6296),s=n(9800),l=n(4610),c=n(778),u=n(275);function p(e){return{ListValue:function(t){var n=(0,u.tf)(e.getParentInputType());if(!(0,u.HG)(n))return d(e,t),!1},ObjectValue:function(t){var n=(0,u.xC)(e.getInputType());if(!(0,u.hL)(n))return d(e,t),!1;for(var a=(0,i.Z)(t.fields,(function(e){return e.name.value})),s=0,c=(0,r.Z)(n.getFields());s{"use strict";n.d(t,{I:()=>s});var r=n(4610),i=n(778),o=n(275),a=n(3106);function s(e){return{VariableDefinition:function(t){var n=(0,a._)(e.getSchema(),t.type);if(n&&!(0,o.j$)(n)){var s=t.variable.name.value,l=(0,i.S)(t.type);e.reportError(new r._('Variable "$'.concat(s,'" cannot be non-input type "').concat(l,'".'),t.type))}}}}},429:(e,t,n)=>{"use strict";n.d(t,{w:()=>c});var r=n(6589),i=n(4610),o=n(6450),a=n(275),s=n(3106),l=n(2575);function c(e){var t=Object.create(null);return{OperationDefinition:{enter:function(){t=Object.create(null)},leave:function(n){for(var o=e.getRecursiveVariableUsages(n),a=0;a{"use strict";n.d(t,{r:()=>a});var r=n(3077),i=n(4610),o=n(275);function a(e){return{Field:function(t){var n=e.getFieldDef(),o=null==n?void 0:n.deprecationReason;if(n&&null!=o){var a=e.getParentType();null!=a||(0,r.Z)(0),e.reportError(new i._("The field ".concat(a.name,".").concat(n.name," is deprecated. ").concat(o),t))}},Argument:function(t){var n=e.getArgument(),o=null==n?void 0:n.deprecationReason;if(n&&null!=o){var a=e.getDirective();if(null!=a)e.reportError(new i._('Directive "@'.concat(a.name,'" argument "').concat(n.name,'" is deprecated. ').concat(o),t));else{var s=e.getParentType(),l=e.getFieldDef();null!=s&&null!=l||(0,r.Z)(0),e.reportError(new i._('Field "'.concat(s.name,".").concat(l.name,'" argument "').concat(n.name,'" is deprecated. ').concat(o),t))}}},ObjectField:function(t){var n=(0,o.xC)(e.getParentInputType());if((0,o.hL)(n)){var r=n.getFields()[t.name.value],a=null==r?void 0:r.deprecationReason;null!=a&&e.reportError(new i._("The input field ".concat(n.name,".").concat(r.name," is deprecated. ").concat(a),t))}},EnumValue:function(t){var n=e.getEnumValue(),a=null==n?void 0:n.deprecationReason;if(n&&null!=a){var s=(0,o.xC)(e.getInputType());null!=s||(0,r.Z)(0),e.reportError(new i._('The enum value "'.concat(s.name,".").concat(n.name,'" is deprecated. ').concat(a),t))}}}}},4780:(e,t,n)=>{"use strict";n.d(t,{M:()=>P,i:()=>M});var r=n(9873),i=n(1373),o=n(581),a=n(524),s=n(8933),l=n(399),c=n(7006),u=n(7828),p=n(6057),d=n(6862),f=n(7249),h=n(6063),m=n(6175),g=n(7978),v=n(9090),y=n(6129),b=n(1983),_=n(6522),E=n(8338),k=n(1792),w=n(5854),x=n(2542),T=n(9389),C=n(429),S=n(9715),A=n(1269),N=n(3174),D=n(387),O=n(6294),I=n(4266),F=n(6415),L=n(4818),R=n(5427),M=Object.freeze([r.i,i.H,o.F,a.Z,s.I,l.T,c.I,u.O,p.A,d.N,f.a,h.J,m.a,g.H,v.H,y.$,b.p,_.J,E.k,k.e,w.L,x.j,T.s,C.w,S.y,A.P]),P=Object.freeze([N.t,D.q,O.P,I.L,F.y,L.o,s.I,_.J,E.k,R.g,k.o,w.L,A.P,T.c])},2091:(e,t,n)=>{"use strict";n.d(t,{ED:()=>f,Gu:()=>u,zo:()=>d});var r=n(3767),i=n(4610),o=n(7636),a=n(3982),s=n(7766),l=n(4780),c=n(5048);function u(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l.i,u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new s.a(e),p=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{maxErrors:void 0};t||(0,r.Z)(0,"Must provide document."),(0,a.J)(e);var d=Object.freeze({}),f=[],h=new c._t(e,t,u,(function(e){if(null!=p.maxErrors&&f.length>=p.maxErrors)throw f.push(new i._("Too many validation errors, error limit reached. Validation aborted.")),d;f.push(e)})),m=(0,o.j1)(n.map((function(e){return e(h)})));try{(0,o.Vn)(t,(0,s.y)(u,m))}catch(e){if(e!==d)throw e}return f}function p(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l.M,r=[],i=new c.yv(e,t,(function(e){r.push(e)})),a=n.map((function(e){return e(i)}));return(0,o.Vn)(e,(0,o.j1)(a)),r}function d(e){var t=p(e);if(0!==t.length)throw new Error(t.map((function(e){return e.message})).join("\n\n"))}function f(e,t){var n=p(e,t);if(0!==n.length)throw new Error(n.map((function(e){return e.message})).join("\n\n"))}},8337:(e,t,n)=>{"use strict";function r(e){var t=Array.prototype.slice.call(arguments,1);return t.forEach((function(t){t&&Object.keys(t).forEach((function(n){e[n]=t[n]}))})),e}function i(e){return Object.prototype.toString.call(e)}function o(e){return"[object Function]"===i(e)}function a(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var s={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1},l={"http:":{validate:function(e,t,n){var r=e.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){var r=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r)?t>=3&&":"===e[t-3]||t>=3&&"/"===e[t-3]?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){var r=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},c="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function u(e){var t=e.re=n(6066)(e.__opts__),r=e.__tlds__.slice();function s(e){return e.replace("%TLDS%",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||r.push("a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]"),r.push(t.src_xn),t.src_tlds=r.join("|"),t.email_fuzzy=RegExp(s(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(s(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(s(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(s(t.tpl_host_fuzzy_test),"i");var l=[];function c(e,t){throw new Error('(LinkifyIt) Invalid schema "'+e+'": '+t)}e.__compiled__={},Object.keys(e.__schemas__).forEach((function(t){var n=e.__schemas__[t];if(null!==n){var r={validate:null,link:null};if(e.__compiled__[t]=r,"[object Object]"===i(n))return"[object RegExp]"!==i(n.validate)?o(n.validate)?r.validate=n.validate:c(t,n):r.validate=function(e){return function(t,n){var r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}(n.validate),void(o(n.normalize)?r.normalize=n.normalize:n.normalize?c(t,n):r.normalize=function(e,t){t.normalize(e)});!function(e){return"[object String]"===i(e)}(n)?c(t,n):l.push(t)}})),l.forEach((function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)})),e.__compiled__[""]={validate:null,normalize:function(e,t){t.normalize(e)}};var u=Object.keys(e.__compiled__).filter((function(t){return t.length>0&&e.__compiled__[t]})).map(a).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+u+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+u+")","ig"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),function(e){e.__index__=-1,e.__text_cache__=""}(e)}function p(e,t){var n=e.__index__,r=e.__last_index__,i=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=i,this.text=i,this.url=i}function d(e,t){var n=new p(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function f(e,t){if(!(this instanceof f))return new f(e,t);var n;t||(n=e,Object.keys(n||{}).reduce((function(e,t){return e||s.hasOwnProperty(t)}),!1)&&(t=e,e={})),this.__opts__=r({},s,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=r({},l,e),this.__compiled__={},this.__tlds__=c,this.__tlds_replaced__=!1,this.re={},u(this)}f.prototype.add=function(e,t){return this.__schemas__[e]=t,u(this),this},f.prototype.set=function(e){return this.__opts__=r(this.__opts__,e),this},f.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var t,n,r,i,o,a,s,l;if(this.re.schema_test.test(e))for((s=this.re.schema_search).lastIndex=0;null!==(t=s.exec(e));)if(i=this.testSchemaAt(e,t[2],s.lastIndex)){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+i;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(l=e.search(this.re.host_fuzzy_test))>=0&&(this.__index__<0||l=0&&null!==(r=e.match(this.re.email_fuzzy))&&(o=r.index+r[1].length,a=r.index+r[0].length,(this.__index__<0||othis.__last_index__)&&(this.__schema__="mailto:",this.__index__=o,this.__last_index__=a)),this.__index__>=0},f.prototype.pretest=function(e){return this.re.pretest.test(e)},f.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},f.prototype.match=function(e){var t=0,n=[];this.__index__>=0&&this.__text_cache__===e&&(n.push(d(this,t)),t=this.__last_index__);for(var r=t?e.slice(t):e;this.test(r);)n.push(d(this,t)),r=r.slice(this.__last_index__),t+=this.__last_index__;return n.length?n:null},f.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter((function(e,t,n){return e!==n[t-1]})).reverse(),u(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,u(this),this)},f.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},f.prototype.onCompile=function(){},e.exports=f},6066:(e,t,n)=>{"use strict";e.exports=function(e){var t={};return t.src_Any=n(9369).source,t.src_Cc=n(9413).source,t.src_Z=n(5045).source,t.src_P=n(3189).source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|"),t.src_pseudo_letter="(?:(?![><|]|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|[><|]|"+t.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|[><|]|[()[\\]{}.,\"'?!\\-;]).|\\[(?:(?!"+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-]).|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]).|"+(e&&e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+").|;(?!"+t.src_ZCc+").|\\!+(?!"+t.src_ZCc+"|[!]).|\\?(?!"+t.src_ZCc+"|[?]).)+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy='(^|[><|]|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}},9980:(e,t,n)=>{"use strict";e.exports=n(7024)},6233:(e,t,n)=>{"use strict";e.exports=n(5485)},813:e=>{"use strict";e.exports=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]},1947:e=>{"use strict";var t="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",n="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",r=new RegExp("^(?:"+t+"|"+n+"|\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e|<[?][\\s\\S]*?[?]>|]*>|)"),i=new RegExp("^(?:"+t+"|"+n+")");e.exports.n=r,e.exports.q=i},7022:(e,t,n)=>{"use strict";var r=Object.prototype.hasOwnProperty;function i(e,t){return r.call(e,t)}function o(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||65535==(65535&e)||65534==(65535&e)||e>=0&&e<=8||11===e||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function a(e){if(e>65535){var t=55296+((e-=65536)>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}var s=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,l=new RegExp(s.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),c=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,u=n(6233),p=/[&<>"]/,d=/[&<>"]/g,f={"&":"&","<":"<",">":">",'"':"""};function h(e){return f[e]}var m=/[.?*+^$[\]\\(){}|-]/g,g=n(3189);t.lib={},t.lib.mdurl=n(8765),t.lib.ucmicro=n(4205),t.assign=function(e){var t=Array.prototype.slice.call(arguments,1);return t.forEach((function(t){if(t){if("object"!=typeof t)throw new TypeError(t+"must be object");Object.keys(t).forEach((function(n){e[n]=t[n]}))}})),e},t.isString=function(e){return"[object String]"===function(e){return Object.prototype.toString.call(e)}(e)},t.has=i,t.unescapeMd=function(e){return e.indexOf("\\")<0?e:e.replace(s,"$1")},t.unescapeAll=function(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(l,(function(e,t,n){return t||function(e,t){var n=0;return i(u,t)?u[t]:35===t.charCodeAt(0)&&c.test(t)&&o(n="x"===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10))?a(n):e}(e,n)}))},t.isValidEntityCode=o,t.fromCodePoint=a,t.escapeHtml=function(e){return p.test(e)?e.replace(d,h):e},t.arrayReplaceAt=function(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))},t.isSpace=function(e){switch(e){case 9:case 32:return!0}return!1},t.isWhiteSpace=function(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1},t.isMdAsciiPunct=function(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}},t.isPunctChar=function(e){return g.test(e)},t.escapeRE=function(e){return e.replace(m,"\\$&")},t.normalizeReference=function(e){return e=e.trim().replace(/\s+/g," "),"Ṿ"==="ẞ".toLowerCase()&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}},1685:(e,t,n)=>{"use strict";t.parseLinkLabel=n(3595),t.parseLinkDestination=n(2548),t.parseLinkTitle=n(8040)},2548:(e,t,n)=>{"use strict";var r=n(7022).unescapeAll;e.exports=function(e,t,n){var i,o,a=t,s={ok:!1,pos:0,lines:0,str:""};if(60===e.charCodeAt(t)){for(t++;t32)return s;if(41===i){if(0===o)break;o--}t++}return a===t||0!==o||(s.str=r(e.slice(a,t)),s.lines=0,s.pos=t,s.ok=!0),s}},3595:e=>{"use strict";e.exports=function(e,t,n){var r,i,o,a,s=-1,l=e.posMax,c=e.pos;for(e.pos=t+1,r=1;e.pos{"use strict";var r=n(7022).unescapeAll;e.exports=function(e,t,n){var i,o,a=0,s=t,l={ok:!1,pos:0,lines:0,str:""};if(t>=n)return l;if(34!==(o=e.charCodeAt(t))&&39!==o&&40!==o)return l;for(t++,40===o&&(o=41);t{"use strict";var r=n(7022),i=n(1685),o=n(7529),a=n(7346),s=n(2471),l=n(4485),c=n(8337),u=n(8765),p=n(3689),d={default:n(4218),zero:n(873),commonmark:n(6895)},f=/^(vbscript|javascript|file|data):/,h=/^data:image\/(gif|png|jpeg|webp);/;function m(e){var t=e.trim().toLowerCase();return!f.test(t)||!!h.test(t)}var g=["http:","https:","mailto:"];function v(e){var t=u.parse(e,!0);if(t.hostname&&(!t.protocol||g.indexOf(t.protocol)>=0))try{t.hostname=p.toASCII(t.hostname)}catch(e){}return u.encode(u.format(t))}function y(e){var t=u.parse(e,!0);if(t.hostname&&(!t.protocol||g.indexOf(t.protocol)>=0))try{t.hostname=p.toUnicode(t.hostname)}catch(e){}return u.decode(u.format(t),u.decode.defaultChars+"%")}function b(e,t){if(!(this instanceof b))return new b(e,t);t||r.isString(e)||(t=e||{},e="default"),this.inline=new l,this.block=new s,this.core=new a,this.renderer=new o,this.linkify=new c,this.validateLink=m,this.normalizeLink=v,this.normalizeLinkText=y,this.utils=r,this.helpers=r.assign({},i),this.options={},this.configure(e),t&&this.set(t)}b.prototype.set=function(e){return r.assign(this.options,e),this},b.prototype.configure=function(e){var t,n=this;if(r.isString(e)&&!(e=d[t=e]))throw new Error('Wrong `markdown-it` preset "'+t+'", check name');if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&n.set(e.options),e.components&&Object.keys(e.components).forEach((function(t){e.components[t].rules&&n[t].ruler.enableOnly(e.components[t].rules),e.components[t].rules2&&n[t].ruler2.enableOnly(e.components[t].rules2)})),this},b.prototype.enable=function(e,t){var n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach((function(t){n=n.concat(this[t].ruler.enable(e,!0))}),this),n=n.concat(this.inline.ruler2.enable(e,!0));var r=e.filter((function(e){return n.indexOf(e)<0}));if(r.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this},b.prototype.disable=function(e,t){var n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach((function(t){n=n.concat(this[t].ruler.disable(e,!0))}),this),n=n.concat(this.inline.ruler2.disable(e,!0));var r=e.filter((function(e){return n.indexOf(e)<0}));if(r.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this},b.prototype.use=function(e){var t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},b.prototype.parse=function(e,t){if("string"!=typeof e)throw new Error("Input data should be a String");var n=new this.core.State(e,this,t);return this.core.process(n),n.tokens},b.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},b.prototype.parseInline=function(e,t){var n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},b.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)},e.exports=b},2471:(e,t,n)=>{"use strict";var r=n(9580),i=[["table",n(1785),["paragraph","reference"]],["code",n(8768)],["fence",n(3542),["paragraph","reference","blockquote","list"]],["blockquote",n(5258),["paragraph","reference","blockquote","list"]],["hr",n(5634),["paragraph","reference","blockquote","list"]],["list",n(8532),["paragraph","reference","blockquote"]],["reference",n(3804)],["html_block",n(6329),["paragraph","reference","blockquote"]],["heading",n(1630),["paragraph","reference","blockquote"]],["lheading",n(6850)],["paragraph",n(6864)]];function o(){this.ruler=new r;for(var e=0;e=n))&&!(e.sCount[a]=l){e.line=n;break}for(r=0;r{"use strict";var r=n(9580),i=[["normalize",n(4129)],["block",n(898)],["inline",n(9827)],["linkify",n(7830)],["replacements",n(2834)],["smartquotes",n(8450)]];function o(){this.ruler=new r;for(var e=0;e{"use strict";var r=n(9580),i=[["text",n(9941)],["newline",n(3905)],["escape",n(1917)],["backticks",n(9755)],["strikethrough",n(4814).w],["emphasis",n(7894).w],["link",n(1727)],["image",n(3006)],["autolink",n(3420)],["html_inline",n(1779)],["entity",n(9391)]],o=[["balance_pairs",n(9354)],["strikethrough",n(4814).g],["emphasis",n(7894).g],["text_collapse",n(8996)]];function a(){var e;for(this.ruler=new r,e=0;e=o)break}else e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},a.prototype.parse=function(e,t,n,r){var i,o,a,s=new this.State(e,t,n,r);for(this.tokenize(s),a=(o=this.ruler2.getRules("")).length,i=0;i{"use strict";e.exports={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","text_collapse"]}}}},4218:e=>{"use strict";e.exports={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}}},873:e=>{"use strict";e.exports={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","text_collapse"]}}}},7529:(e,t,n)=>{"use strict";var r=n(7022).assign,i=n(7022).unescapeAll,o=n(7022).escapeHtml,a={};function s(){this.rules=r({},a)}a.code_inline=function(e,t,n,r,i){var a=e[t];return""+o(e[t].content)+""},a.code_block=function(e,t,n,r,i){var a=e[t];return""+o(e[t].content)+"\n"},a.fence=function(e,t,n,r,a){var s,l,c,u,p,d=e[t],f=d.info?i(d.info).trim():"",h="",m="";return f&&(h=(c=f.split(/(\s+)/g))[0],m=c.slice(2).join("")),0===(s=n.highlight&&n.highlight(d.content,h,m)||o(d.content)).indexOf(""+s+"\n"):"
"+s+"
\n"},a.image=function(e,t,n,r,i){var o=e[t];return o.attrs[o.attrIndex("alt")][1]=i.renderInlineAsText(o.children,n,r),i.renderToken(e,t,n)},a.hardbreak=function(e,t,n){return n.xhtmlOut?"
\n":"
\n"},a.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?"
\n":"
\n":"\n"},a.text=function(e,t){return o(e[t].content)},a.html_block=function(e,t){return e[t].content},a.html_inline=function(e,t){return e[t].content},s.prototype.renderAttrs=function(e){var t,n,r;if(!e.attrs)return"";for(r="",t=0,n=e.attrs.length;t\n":">")},s.prototype.renderInline=function(e,t,n){for(var r,i="",o=this.rules,a=0,s=e.length;a{"use strict";function t(){this.__rules__=[],this.__cache__=null}t.prototype.__find__=function(e){for(var t=0;t{"use strict";var r=n(7022).isSpace;e.exports=function(e,t,n,i){var o,a,s,l,c,u,p,d,f,h,m,g,v,y,b,_,E,k,w,x,T=e.lineMax,C=e.bMarks[t]+e.tShift[t],S=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(62!==e.src.charCodeAt(C++))return!1;if(i)return!0;for(l=f=e.sCount[t]+1,32===e.src.charCodeAt(C)?(C++,l++,f++,o=!1,_=!0):9===e.src.charCodeAt(C)?(_=!0,(e.bsCount[t]+f)%4==3?(C++,l++,f++,o=!1):o=!0):_=!1,h=[e.bMarks[t]],e.bMarks[t]=C;C=S,y=[e.sCount[t]],e.sCount[t]=f-l,b=[e.tShift[t]],e.tShift[t]=C-e.bMarks[t],k=e.md.block.ruler.getRules("blockquote"),v=e.parentType,e.parentType="blockquote",d=t+1;d=(S=e.eMarks[d])));d++)if(62!==e.src.charCodeAt(C++)||x){if(u)break;for(E=!1,s=0,c=k.length;s=S,m.push(e.bsCount[d]),e.bsCount[d]=e.sCount[d]+1+(_?1:0),y.push(e.sCount[d]),e.sCount[d]=f-l,b.push(e.tShift[d]),e.tShift[d]=C-e.bMarks[d]}for(g=e.blkIndent,e.blkIndent=0,(w=e.push("blockquote_open","blockquote",1)).markup=">",w.map=p=[t,0],e.md.block.tokenize(e,t,d),(w=e.push("blockquote_close","blockquote",-1)).markup=">",e.lineMax=T,e.parentType=v,p[1]=e.line,s=0;s{"use strict";e.exports=function(e,t,n){var r,i,o;if(e.sCount[t]-e.blkIndent<4)return!1;for(i=r=t+1;r=4))break;i=++r}return e.line=i,(o=e.push("code_block","code",0)).content=e.getLines(t,i,4+e.blkIndent,!1)+"\n",o.map=[t,e.line],!0}},3542:e=>{"use strict";e.exports=function(e,t,n,r){var i,o,a,s,l,c,u,p=!1,d=e.bMarks[t]+e.tShift[t],f=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(d+3>f)return!1;if(126!==(i=e.src.charCodeAt(d))&&96!==i)return!1;if(l=d,(o=(d=e.skipChars(d,i))-l)<3)return!1;if(u=e.src.slice(l,d),a=e.src.slice(d,f),96===i&&a.indexOf(String.fromCharCode(i))>=0)return!1;if(r)return!0;for(s=t;!(++s>=n||(d=l=e.bMarks[s]+e.tShift[s])<(f=e.eMarks[s])&&e.sCount[s]=4||(d=e.skipChars(d,i))-l{"use strict";var r=n(7022).isSpace;e.exports=function(e,t,n,i){var o,a,s,l,c=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(35!==(o=e.src.charCodeAt(c))||c>=u)return!1;for(a=1,o=e.src.charCodeAt(++c);35===o&&c6||cc&&r(e.src.charCodeAt(s-1))&&(u=s),e.line=t+1,(l=e.push("heading_open","h"+String(a),1)).markup="########".slice(0,a),l.map=[t,e.line],(l=e.push("inline","",0)).content=e.src.slice(c,u).trim(),l.map=[t,e.line],l.children=[],(l=e.push("heading_close","h"+String(a),-1)).markup="########".slice(0,a)),0))}},5634:(e,t,n)=>{"use strict";var r=n(7022).isSpace;e.exports=function(e,t,n,i){var o,a,s,l,c=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(42!==(o=e.src.charCodeAt(c++))&&45!==o&&95!==o)return!1;for(a=1;c{"use strict";var r=n(813),i=n(1947).q,o=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^/,!0],[/^<\?/,/\?>/,!0],[/^/,!0],[/^/,!0],[new RegExp("^|$))","i"),/^$/,!0],[new RegExp(i.source+"\\s*$"),/^$/,!1]];e.exports=function(e,t,n,r){var i,a,s,l,c=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(!e.md.options.html)return!1;if(60!==e.src.charCodeAt(c))return!1;for(l=e.src.slice(c,u),i=0;i{"use strict";e.exports=function(e,t,n){var r,i,o,a,s,l,c,u,p,d,f=t+1,h=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;for(d=e.parentType,e.parentType="paragraph";f3)){if(e.sCount[f]>=e.blkIndent&&(l=e.bMarks[f]+e.tShift[f])<(c=e.eMarks[f])&&(45===(p=e.src.charCodeAt(l))||61===p)&&(l=e.skipChars(l,p),(l=e.skipSpaces(l))>=c)){u=61===p?1:2;break}if(!(e.sCount[f]<0)){for(i=!1,o=0,a=h.length;o{"use strict";var r=n(7022).isSpace;function i(e,t){var n,i,o,a;return i=e.bMarks[t]+e.tShift[t],o=e.eMarks[t],42!==(n=e.src.charCodeAt(i++))&&45!==n&&43!==n||i=a)return-1;if((n=e.src.charCodeAt(o++))<48||n>57)return-1;for(;;){if(o>=a)return-1;if(!((n=e.src.charCodeAt(o++))>=48&&n<=57)){if(41===n||46===n)break;return-1}if(o-i>=10)return-1}return o=4)return!1;if(e.listIndent>=0&&e.sCount[t]-e.listIndent>=4&&e.sCount[t]=e.blkIndent&&(L=!0),(A=o(e,t))>=0){if(d=!0,D=e.bMarks[t]+e.tShift[t],y=Number(e.src.slice(D,A-1)),L&&1!==y)return!1}else{if(!((A=i(e,t))>=0))return!1;d=!1}if(L&&e.skipSpaces(A)>=e.eMarks[t])return!1;if(v=e.src.charCodeAt(A-1),r)return!0;for(g=e.tokens.length,d?(F=e.push("ordered_list_open","ol",1),1!==y&&(F.attrs=[["start",y]])):F=e.push("bullet_list_open","ul",1),F.map=m=[t,0],F.markup=String.fromCharCode(v),_=t,N=!1,I=e.md.block.ruler.getRules("list"),w=e.parentType,e.parentType="list";_=b?1:E-p)>4&&(u=1),c=p+u,(F=e.push("list_item_open","li",1)).markup=String.fromCharCode(v),F.map=f=[t,0],d&&(F.info=e.src.slice(D,A-1)),C=e.tight,T=e.tShift[t],x=e.sCount[t],k=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=c,e.tight=!0,e.tShift[t]=s-e.bMarks[t],e.sCount[t]=E,s>=b&&e.isEmpty(t+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,t,n,!0),e.tight&&!N||(R=!1),N=e.line-t>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=k,e.tShift[t]=T,e.sCount[t]=x,e.tight=C,(F=e.push("list_item_close","li",-1)).markup=String.fromCharCode(v),_=t=e.line,f[1]=_,s=e.bMarks[t],_>=n)break;if(e.sCount[_]=4)break;for(O=!1,l=0,h=I.length;l{"use strict";e.exports=function(e,t){var n,r,i,o,a,s,l=t+1,c=e.md.block.ruler.getRules("paragraph"),u=e.lineMax;for(s=e.parentType,e.parentType="paragraph";l3||e.sCount[l]<0)){for(r=!1,i=0,o=c.length;i{"use strict";var r=n(7022).normalizeReference,i=n(7022).isSpace;e.exports=function(e,t,n,o){var a,s,l,c,u,p,d,f,h,m,g,v,y,b,_,E,k=0,w=e.bMarks[t]+e.tShift[t],x=e.eMarks[t],T=t+1;if(e.sCount[t]-e.blkIndent>=4)return!1;if(91!==e.src.charCodeAt(w))return!1;for(;++w3||e.sCount[T]<0)){for(b=!1,p=0,d=_.length;p{"use strict";var r=n(5872),i=n(7022).isSpace;function o(e,t,n,r){var o,a,s,l,c,u,p,d;for(this.src=e,this.md=t,this.env=n,this.tokens=r,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0,this.result="",d=!1,s=l=u=p=0,c=(a=this.src).length;l0&&this.level++,this.tokens.push(i),i},o.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},o.prototype.skipEmptyLines=function(e){for(var t=this.lineMax;et;)if(!i(this.src.charCodeAt(--e)))return e+1;return e},o.prototype.skipChars=function(e,t){for(var n=this.src.length;en;)if(t!==this.src.charCodeAt(--e))return e+1;return e},o.prototype.getLines=function(e,t,n,r){var o,a,s,l,c,u,p,d=e;if(e>=t)return"";for(u=new Array(t-e),o=0;dn?new Array(a-n+1).join(" ")+this.src.slice(l,c):this.src.slice(l,c)}return u.join("")},o.prototype.Token=r,e.exports=o},1785:(e,t,n)=>{"use strict";var r=n(7022).isSpace;function i(e,t){var n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];return e.src.substr(n,r-n)}function o(e){var t,n=[],r=0,i=e.length,o=!1,a=0,s="";for(t=e.charCodeAt(r);rn)return!1;if(d=t+1,e.sCount[d]=4)return!1;if((c=e.bMarks[d]+e.tShift[d])>=e.eMarks[d])return!1;if(124!==(w=e.src.charCodeAt(c++))&&45!==w&&58!==w)return!1;if(c>=e.eMarks[d])return!1;if(124!==(x=e.src.charCodeAt(c++))&&45!==x&&58!==x&&!r(x))return!1;if(45===w&&r(x))return!1;for(;c=4)return!1;if((f=o(l)).length&&""===f[0]&&f.shift(),f.length&&""===f[f.length-1]&&f.pop(),0===(h=f.length)||h!==g.length)return!1;if(a)return!0;for(_=e.parentType,e.parentType="table",k=e.md.block.ruler.getRules("blockquote"),(m=e.push("table_open","table",1)).map=y=[t,0],(m=e.push("thead_open","thead",1)).map=[t,t+1],(m=e.push("tr_open","tr",1)).map=[t,t+1],u=0;u=4)break;for((f=o(l)).length&&""===f[0]&&f.shift(),f.length&&""===f[f.length-1]&&f.pop(),d===t+2&&((m=e.push("tbody_open","tbody",1)).map=b=[t+2,0]),(m=e.push("tr_open","tr",1)).map=[d,d+1],u=0;u{"use strict";e.exports=function(e){var t;e.inlineMode?((t=new e.Token("inline","",0)).content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}},9827:e=>{"use strict";e.exports=function(e){var t,n,r,i=e.tokens;for(n=0,r=i.length;n{"use strict";var r=n(7022).arrayReplaceAt;function i(e){return/^<\/a\s*>/i.test(e)}e.exports=function(e){var t,n,o,a,s,l,c,u,p,d,f,h,m,g,v,y,b,_,E=e.tokens;if(e.md.options.linkify)for(n=0,o=E.length;n=0;t--)if("link_close"!==(l=a[t]).type){if("html_inline"===l.type&&(_=l.content,/^\s]/i.test(_)&&m>0&&m--,i(l.content)&&m++),!(m>0)&&"text"===l.type&&e.md.linkify.test(l.content)){for(p=l.content,b=e.md.linkify.match(p),c=[],h=l.level,f=0,u=0;uf&&((s=new e.Token("text","",0)).content=p.slice(f,d),s.level=h,c.push(s)),(s=new e.Token("link_open","a",1)).attrs=[["href",v]],s.level=h++,s.markup="linkify",s.info="auto",c.push(s),(s=new e.Token("text","",0)).content=y,s.level=h,c.push(s),(s=new e.Token("link_close","a",-1)).level=--h,s.markup="linkify",s.info="auto",c.push(s),f=b[u].lastIndex);f{"use strict";var t=/\r\n?|\n/g,n=/\0/g;e.exports=function(e){var r;r=(r=e.src.replace(t,"\n")).replace(n,"�"),e.src=r}},2834:e=>{"use strict";var t=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,n=/\((c|tm|r|p)\)/i,r=/\((c|tm|r|p)\)/gi,i={c:"©",r:"®",p:"§",tm:"™"};function o(e,t){return i[t.toLowerCase()]}function a(e){var t,n,i=0;for(t=e.length-1;t>=0;t--)"text"!==(n=e[t]).type||i||(n.content=n.content.replace(r,o)),"link_open"===n.type&&"auto"===n.info&&i--,"link_close"===n.type&&"auto"===n.info&&i++}function s(e){var n,r,i=0;for(n=e.length-1;n>=0;n--)"text"!==(r=e[n]).type||i||t.test(r.content)&&(r.content=r.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/gm,"$1—").replace(/(^|\s)--(?=\s|$)/gm,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/gm,"$1–")),"link_open"===r.type&&"auto"===r.info&&i--,"link_close"===r.type&&"auto"===r.info&&i++}e.exports=function(e){var r;if(e.md.options.typographer)for(r=e.tokens.length-1;r>=0;r--)"inline"===e.tokens[r].type&&(n.test(e.tokens[r].content)&&a(e.tokens[r].children),t.test(e.tokens[r].content)&&s(e.tokens[r].children))}},8450:(e,t,n)=>{"use strict";var r=n(7022).isWhiteSpace,i=n(7022).isPunctChar,o=n(7022).isMdAsciiPunct,a=/['"]/,s=/['"]/g;function l(e,t,n){return e.substr(0,t)+n+e.substr(t+1)}function c(e,t){var n,a,c,u,p,d,f,h,m,g,v,y,b,_,E,k,w,x,T,C,S;for(T=[],n=0;n=0&&!(T[w].level<=f);w--);if(T.length=w+1,"text"===a.type){p=0,d=(c=a.content).length;e:for(;p=0)m=c.charCodeAt(u.index-1);else for(w=n-1;w>=0&&"softbreak"!==e[w].type&&"hardbreak"!==e[w].type;w--)if(e[w].content){m=e[w].content.charCodeAt(e[w].content.length-1);break}if(g=32,p=48&&m<=57&&(k=E=!1),E&&k&&(E=v,k=y),E||k){if(k)for(w=T.length-1;w>=0&&(h=T[w],!(T[w].level=0;t--)"inline"===e.tokens[t].type&&a.test(e.tokens[t].content)&&c(e.tokens[t].children,e)}},6480:(e,t,n)=>{"use strict";var r=n(5872);function i(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}i.prototype.Token=r,e.exports=i},3420:e=>{"use strict";var t=/^([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,n=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/;e.exports=function(e,r){var i,o,a,s,l,c,u=e.pos;if(60!==e.src.charCodeAt(u))return!1;for(l=e.pos,c=e.posMax;;){if(++u>=c)return!1;if(60===(s=e.src.charCodeAt(u)))return!1;if(62===s)break}return i=e.src.slice(l+1,u),n.test(i)?(o=e.md.normalizeLink(i),!!e.md.validateLink(o)&&(r||((a=e.push("link_open","a",1)).attrs=[["href",o]],a.markup="autolink",a.info="auto",(a=e.push("text","",0)).content=e.md.normalizeLinkText(i),(a=e.push("link_close","a",-1)).markup="autolink",a.info="auto"),e.pos+=i.length+2,!0)):!!t.test(i)&&(o=e.md.normalizeLink("mailto:"+i),!!e.md.validateLink(o)&&(r||((a=e.push("link_open","a",1)).attrs=[["href",o]],a.markup="autolink",a.info="auto",(a=e.push("text","",0)).content=e.md.normalizeLinkText(i),(a=e.push("link_close","a",-1)).markup="autolink",a.info="auto"),e.pos+=i.length+2,!0))}},9755:e=>{"use strict";e.exports=function(e,t){var n,r,i,o,a,s,l,c,u=e.pos;if(96!==e.src.charCodeAt(u))return!1;for(n=u,u++,r=e.posMax;u{"use strict";function t(e,t){var n,r,i,o,a,s,l,c,u={},p=t.length;if(p){var d=0,f=-2,h=[];for(n=0;na;r-=h[r]+1)if((o=t[r]).marker===i.marker&&o.open&&o.end<0&&(l=!1,(o.close||i.open)&&(o.length+i.length)%3==0&&(o.length%3==0&&i.length%3==0||(l=!0)),!l)){c=r>0&&!t[r-1].open?h[r-1]+1:0,h[n]=n-r+c,h[r]=c,i.open=!1,o.end=n,o.close=!1,s=-1,f=-2;break}-1!==s&&(u[i.marker][(i.open?3:0)+(i.length||0)%3]=s)}}}e.exports=function(e){var n,r=e.tokens_meta,i=e.tokens_meta.length;for(t(0,e.delimiters),n=0;n{"use strict";function t(e,t){var n,r,i,o,a,s;for(n=t.length-1;n>=0;n--)95!==(r=t[n]).marker&&42!==r.marker||-1!==r.end&&(i=t[r.end],s=n>0&&t[n-1].end===r.end+1&&t[n-1].marker===r.marker&&t[n-1].token===r.token-1&&t[r.end+1].token===i.token+1,a=String.fromCharCode(r.marker),(o=e.tokens[r.token]).type=s?"strong_open":"em_open",o.tag=s?"strong":"em",o.nesting=1,o.markup=s?a+a:a,o.content="",(o=e.tokens[i.token]).type=s?"strong_close":"em_close",o.tag=s?"strong":"em",o.nesting=-1,o.markup=s?a+a:a,o.content="",s&&(e.tokens[t[n-1].token].content="",e.tokens[t[r.end+1].token].content="",n--))}e.exports.w=function(e,t){var n,r,i=e.pos,o=e.src.charCodeAt(i);if(t)return!1;if(95!==o&&42!==o)return!1;for(r=e.scanDelims(e.pos,42===o),n=0;n{"use strict";var r=n(6233),i=n(7022).has,o=n(7022).isValidEntityCode,a=n(7022).fromCodePoint,s=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,l=/^&([a-z][a-z0-9]{1,31});/i;e.exports=function(e,t){var n,c,u=e.pos,p=e.posMax;if(38!==e.src.charCodeAt(u))return!1;if(u+1{"use strict";for(var r=n(7022).isSpace,i=[],o=0;o<256;o++)i.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach((function(e){i[e.charCodeAt(0)]=1})),e.exports=function(e,t){var n,o=e.pos,a=e.posMax;if(92!==e.src.charCodeAt(o))return!1;if(++o{"use strict";var r=n(1947).n;e.exports=function(e,t){var n,i,o,a=e.pos;return!(!e.md.options.html||(o=e.posMax,60!==e.src.charCodeAt(a)||a+2>=o||33!==(n=e.src.charCodeAt(a+1))&&63!==n&&47!==n&&!function(e){var t=32|e;return t>=97&&t<=122}(n)||!(i=e.src.slice(a).match(r))||(t||(e.push("html_inline","",0).content=e.src.slice(a,a+i[0].length)),e.pos+=i[0].length,0)))}},3006:(e,t,n)=>{"use strict";var r=n(7022).normalizeReference,i=n(7022).isSpace;e.exports=function(e,t){var n,o,a,s,l,c,u,p,d,f,h,m,g,v="",y=e.pos,b=e.posMax;if(33!==e.src.charCodeAt(e.pos))return!1;if(91!==e.src.charCodeAt(e.pos+1))return!1;if(c=e.pos+2,(l=e.md.helpers.parseLinkLabel(e,e.pos+1,!1))<0)return!1;if((u=l+1)=b)return!1;for(g=u,(d=e.md.helpers.parseLinkDestination(e.src,u,e.posMax)).ok&&(v=e.md.normalizeLink(d.str),e.md.validateLink(v)?u=d.pos:v=""),g=u;u=b||41!==e.src.charCodeAt(u))return e.pos=y,!1;u++}else{if(void 0===e.env.references)return!1;if(u=0?s=e.src.slice(g,u++):u=l+1):u=l+1,s||(s=e.src.slice(c,l)),!(p=e.env.references[r(s)]))return e.pos=y,!1;v=p.href,f=p.title}return t||(a=e.src.slice(c,l),e.md.inline.parse(a,e.md,e.env,m=[]),(h=e.push("image","img",0)).attrs=n=[["src",v],["alt",""]],h.children=m,h.content=a,f&&n.push(["title",f])),e.pos=u,e.posMax=b,!0}},1727:(e,t,n)=>{"use strict";var r=n(7022).normalizeReference,i=n(7022).isSpace;e.exports=function(e,t){var n,o,a,s,l,c,u,p,d="",f="",h=e.pos,m=e.posMax,g=e.pos,v=!0;if(91!==e.src.charCodeAt(e.pos))return!1;if(l=e.pos+1,(s=e.md.helpers.parseLinkLabel(e,e.pos,!0))<0)return!1;if((c=s+1)=m)return!1;if(g=c,(u=e.md.helpers.parseLinkDestination(e.src,c,e.posMax)).ok){for(d=e.md.normalizeLink(u.str),e.md.validateLink(d)?c=u.pos:d="",g=c;c=m||41!==e.src.charCodeAt(c))&&(v=!0),c++}if(v){if(void 0===e.env.references)return!1;if(c=0?a=e.src.slice(g,c++):c=s+1):c=s+1,a||(a=e.src.slice(l,s)),!(p=e.env.references[r(a)]))return e.pos=h,!1;d=p.href,f=p.title}return t||(e.pos=l,e.posMax=s,e.push("link_open","a",1).attrs=n=[["href",d]],f&&n.push(["title",f]),e.md.inline.tokenize(e),e.push("link_close","a",-1)),e.pos=c,e.posMax=m,!0}},3905:(e,t,n)=>{"use strict";var r=n(7022).isSpace;e.exports=function(e,t){var n,i,o,a=e.pos;if(10!==e.src.charCodeAt(a))return!1;if(n=e.pending.length-1,i=e.posMax,!t)if(n>=0&&32===e.pending.charCodeAt(n))if(n>=1&&32===e.pending.charCodeAt(n-1)){for(o=n-1;o>=1&&32===e.pending.charCodeAt(o-1);)o--;e.pending=e.pending.slice(0,o),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(a++;a{"use strict";var r=n(5872),i=n(7022).isWhiteSpace,o=n(7022).isPunctChar,a=n(7022).isMdAsciiPunct;function s(e,t,n,r){this.src=e,this.env=n,this.md=t,this.tokens=r,this.tokens_meta=Array(r.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1}s.prototype.pushPending=function(){var e=new r("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e},s.prototype.push=function(e,t,n){this.pending&&this.pushPending();var i=new r(e,t,n),o=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),i.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],o={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(i),this.tokens_meta.push(o),i},s.prototype.scanDelims=function(e,t){var n,r,s,l,c,u,p,d,f,h=e,m=!0,g=!0,v=this.posMax,y=this.src.charCodeAt(e);for(n=e>0?this.src.charCodeAt(e-1):32;h{"use strict";function t(e,t){var n,r,i,o,a,s=[],l=t.length;for(n=0;n{"use strict";function t(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}e.exports=function(e,n){for(var r=e.pos;r{"use strict";e.exports=function(e){var t,n,r=0,i=e.tokens,o=e.tokens.length;for(t=n=0;t0&&r++,"text"===i[t].type&&t+1{"use strict";function t(e,t,n){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}t.prototype.attrIndex=function(e){var t,n,r;if(!this.attrs)return-1;for(n=0,r=(t=this.attrs).length;n=0&&(n=this.attrs[t][1]),n},t.prototype.attrJoin=function(e,t){var n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=this.attrs[n][1]+" "+t},e.exports=t},3122:e=>{"use strict";var t={};function n(e,r){var i;return"string"!=typeof r&&(r=n.defaultChars),i=function(e){var n,r,i=t[e];if(i)return i;for(i=t[e]=[],n=0;n<128;n++)r=String.fromCharCode(n),i.push(r);for(n=0;n=55296&&l<=57343?"���":String.fromCharCode(l),t+=6):240==(248&r)&&t+91114111?c+="����":(l-=65536,c+=String.fromCharCode(55296+(l>>10),56320+(1023&l))),t+=9):c+="�";return c}))}n.defaultChars=";/?:@&=+$,#",n.componentChars="",e.exports=n},729:e=>{"use strict";var t={};function n(e,r,i){var o,a,s,l,c,u="";for("string"!=typeof r&&(i=r,r=n.defaultChars),void 0===i&&(i=!0),c=function(e){var n,r,i=t[e];if(i)return i;for(i=t[e]=[],n=0;n<128;n++)r=String.fromCharCode(n),/^[0-9a-z]$/i.test(r)?i.push(r):i.push("%"+("0"+n.toString(16).toUpperCase()).slice(-2));for(n=0;n=55296&&s<=57343){if(s>=55296&&s<=56319&&o+1=56320&&l<=57343){u+=encodeURIComponent(e[o]+e[o+1]),o++;continue}u+="%EF%BF%BD"}else u+=encodeURIComponent(e[o]);return u}n.defaultChars=";/?:@&=+$,-_.!~*'()#",n.componentChars="-_.!~*'()",e.exports=n},2201:e=>{"use strict";e.exports=function(e){var t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&-1!==e.hostname.indexOf(":")?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",(t+=e.search||"")+(e.hash||"")}},8765:(e,t,n)=>{"use strict";e.exports.encode=n(729),e.exports.decode=n(3122),e.exports.format=n(2201),e.exports.parse=n(9553)},9553:e=>{"use strict";function t(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var n=/^([a-z0-9.+-]+:)/i,r=/:[0-9]*$/,i=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,o=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),a=["'"].concat(o),s=["%","/","?",";","#"].concat(a),l=["/","?","#"],c=/^[+a-z0-9A-Z_-]{0,63}$/,u=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,p={javascript:!0,"javascript:":!0},d={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};t.prototype.parse=function(e,t){var r,o,a,f,h,m=e;if(m=m.trim(),!t&&1===e.split("#").length){var g=i.exec(m);if(g)return this.pathname=g[1],g[2]&&(this.search=g[2]),this}var v=n.exec(m);if(v&&(a=(v=v[0]).toLowerCase(),this.protocol=v,m=m.substr(v.length)),(t||v||m.match(/^\/\/[^@\/]+@[^@\/]+/))&&(!(h="//"===m.substr(0,2))||v&&p[v]||(m=m.substr(2),this.slashes=!0)),!p[v]&&(h||v&&!d[v])){var y,b,_=-1;for(r=0;r127?T+="x":T+=x[C];if(!T.match(c)){var A=w.slice(0,r),N=w.slice(r+1),D=x.match(u);D&&(A.push(D[1]),N.unshift(D[2])),N.length&&(m=N.join(".")+m),this.hostname=A.join(".");break}}}}this.hostname.length>255&&(this.hostname=""),k&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var O=m.indexOf("#");-1!==O&&(this.hash=m.substr(O),m=m.slice(0,O));var I=m.indexOf("?");return-1!==I&&(this.search=m.substr(I),m=m.slice(0,I)),m&&(this.pathname=m),d[a]&&this.hostname&&!this.pathname&&(this.pathname=""),this},t.prototype.parseHost=function(e){var t=r.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)},e.exports=function(e,n){if(e&&e instanceof t)return e;var r=new t;return r.parse(e,n),r}},3689:(e,t,n)=>{"use strict";n.r(t),n.d(t,{decode:()=>v,default:()=>E,encode:()=>y,toASCII:()=>_,toUnicode:()=>b,ucs2decode:()=>f,ucs2encode:()=>h});const r=2147483647,i=36,o=/^xn--/,a=/[^\0-\x7E]/,s=/[\x2E\u3002\uFF0E\uFF61]/g,l={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},c=Math.floor,u=String.fromCharCode;function p(e){throw new RangeError(l[e])}function d(e,t){const n=e.split("@");let r="";n.length>1&&(r=n[0]+"@",e=n[1]);const i=function(e,t){const n=[];let r=e.length;for(;r--;)n[r]=t(e[r]);return n}((e=e.replace(s,".")).split("."),t).join(".");return r+i}function f(e){const t=[];let n=0;const r=e.length;for(;n=55296&&i<=56319&&nString.fromCodePoint(...e),m=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},g=function(e,t,n){let r=0;for(e=n?c(e/700):e>>1,e+=c(e/t);e>455;r+=i)e=c(e/35);return c(r+36*e/(e+38))},v=function(e){const t=[],n=e.length;let o=0,a=128,s=72,l=e.lastIndexOf("-");l<0&&(l=0);for(let n=0;n=128&&p("not-basic"),t.push(e.charCodeAt(n));for(let d=l>0?l+1:0;d=n&&p("invalid-input");const l=(u=e.charCodeAt(d++))-48<10?u-22:u-65<26?u-65:u-97<26?u-97:i;(l>=i||l>c((r-o)/t))&&p("overflow"),o+=l*t;const f=a<=s?1:a>=s+26?26:a-s;if(lc(r/h)&&p("overflow"),t*=h}const f=t.length+1;s=g(o-l,f,0==l),c(o/f)>r-a&&p("overflow"),a+=c(o/f),o%=f,t.splice(o++,0,a)}var u;return String.fromCodePoint(...t)},y=function(e){const t=[];let n=(e=f(e)).length,o=128,a=0,s=72;for(const n of e)n<128&&t.push(u(n));let l=t.length,d=l;for(l&&t.push("-");d=o&&tc((r-a)/f)&&p("overflow"),a+=(n-o)*f,o=n;for(const n of e)if(nr&&p("overflow"),n==o){let e=a;for(let n=i;;n+=i){const r=n<=s?1:n>=s+26?26:n-s;if(e{"use strict";var r=n(7294),i=n(3840);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n