From 721eabaae834ac550cd6f1d00c2ac25e89bbc50d Mon Sep 17 00:00:00 2001 From: Dennis Torres Date: Thu, 23 May 2024 02:15:44 -0400 Subject: [PATCH] Create Next.js Grafserv package and create an example PostGraphile server (#17) --- .github/workflows/check.yaml | 7 + .gitignore | 5 +- .python-version | 1 + .sqlfluff | 37 + .sqlfluffignore | 2 + .../ruru-npm-2.0.0-beta.12-299bc077af.patch | 71 + .../plugins/@yarnpkg/plugin-after-install.cjs | 9 + .yarnrc.yml | 9 +- package.json | 17 +- packages/example-postgraphile-server/.env | 1 + .../.env.development | 1 + .../example-postgraphile-server/.gitignore | 3 + .../example-postgraphile-server/.gmrc.cjs | 6 + .../.prettierignore | 2 + .../example-postgraphile-server/.squawk.toml | 9 + .../example-postgraphile-server/README.md | 17 + .../docker-compose.yaml | 18 + .../eslint.config.js | 12 + .../example-postgraphile-server/next-env.d.ts | 5 + .../next.config.js | 23 + .../npmpackagejsonlint.config.cjs | 11 + .../example-postgraphile-server/package.json | 70 + .../src/app/api/graphiql/route.ts | 8 + .../src/app/api/graphql/route.ts | 38 + .../src/app/api/graphql/schema.graphql | 294 +++ .../src/migrations/current/1-migration.sql | 17 + .../functions/trigger--update-datetime.sql | 24 + .../example-postgraphile-server/tsconfig.json | 24 + packages/grafserv-next-server/.gitignore | 2 + packages/grafserv-next-server/.prettierignore | 2 + packages/grafserv-next-server/README.md | 9 + .../grafserv-next-server/eslint.config.js | 12 + .../npmpackagejsonlint.config.cjs | 3 + packages/grafserv-next-server/package.json | 71 + packages/grafserv-next-server/src/index.ts | 111 + packages/grafserv-next-server/tsconfig.json | 5 + .../graphile-sort-schema-plugin/package.json | 12 +- poetry.lock | 499 ++++ poetry.toml | 2 + pyproject.toml | 16 + turbo.json | 40 +- workspace.code-workspace | 16 + yarn.lock | 2082 ++++++++++++++--- 43 files changed, 3252 insertions(+), 371 deletions(-) create mode 100644 .python-version create mode 100644 .sqlfluff create mode 100644 .sqlfluffignore create mode 100644 .yarn/patches/ruru-npm-2.0.0-beta.12-299bc077af.patch create mode 100644 .yarn/plugins/@yarnpkg/plugin-after-install.cjs create mode 100644 packages/example-postgraphile-server/.env create mode 100644 packages/example-postgraphile-server/.env.development create mode 100644 packages/example-postgraphile-server/.gitignore create mode 100644 packages/example-postgraphile-server/.gmrc.cjs create mode 100644 packages/example-postgraphile-server/.prettierignore create mode 100644 packages/example-postgraphile-server/.squawk.toml create mode 100644 packages/example-postgraphile-server/README.md create mode 100644 packages/example-postgraphile-server/docker-compose.yaml create mode 100644 packages/example-postgraphile-server/eslint.config.js create mode 100644 packages/example-postgraphile-server/next-env.d.ts create mode 100644 packages/example-postgraphile-server/next.config.js create mode 100644 packages/example-postgraphile-server/npmpackagejsonlint.config.cjs create mode 100644 packages/example-postgraphile-server/package.json create mode 100644 packages/example-postgraphile-server/src/app/api/graphiql/route.ts create mode 100644 packages/example-postgraphile-server/src/app/api/graphql/route.ts create mode 100644 packages/example-postgraphile-server/src/app/api/graphql/schema.graphql create mode 100644 packages/example-postgraphile-server/src/migrations/current/1-migration.sql create mode 100644 packages/example-postgraphile-server/src/migrations/fixtures/functions/trigger--update-datetime.sql create mode 100644 packages/example-postgraphile-server/tsconfig.json create mode 100644 packages/grafserv-next-server/.gitignore create mode 100644 packages/grafserv-next-server/.prettierignore create mode 100644 packages/grafserv-next-server/README.md create mode 100644 packages/grafserv-next-server/eslint.config.js create mode 100644 packages/grafserv-next-server/npmpackagejsonlint.config.cjs create mode 100644 packages/grafserv-next-server/package.json create mode 100644 packages/grafserv-next-server/src/index.ts create mode 100644 packages/grafserv-next-server/tsconfig.json create mode 100644 poetry.lock create mode 100644 poetry.toml create mode 100644 pyproject.toml diff --git a/.github/workflows/check.yaml b/.github/workflows/check.yaml index ed97334..336ce53 100644 --- a/.github/workflows/check.yaml +++ b/.github/workflows/check.yaml @@ -24,11 +24,18 @@ jobs: uses: actions/checkout@v4.1.6 with: fetch-depth: 2 + - name: Install Poetry + run: pipx install poetry - name: Setup Node.js uses: actions/setup-node@v4.0.2 with: cache: yarn node-version-file: .node-version + - name: Setup Python + uses: actions/setup-python@v5.1.0 + with: + cache: poetry + python-version-file: .python-version - name: Install Node.js dependencies run: yarn install --immutable - name: Build diff --git a/.gitignore b/.gitignore index 99d89f0..584fafd 100644 --- a/.gitignore +++ b/.gitignore @@ -1,9 +1,10 @@ *.log .DS_Store -.turbo -node_modules .pnp.* +.turbo +.venv .yarn/* +node_modules !.yarn/patches !.yarn/plugins !.yarn/releases diff --git a/.python-version b/.python-version new file mode 100644 index 0000000..2c07333 --- /dev/null +++ b/.python-version @@ -0,0 +1 @@ +3.11 diff --git a/.sqlfluff b/.sqlfluff new file mode 100644 index 0000000..12ff2ab --- /dev/null +++ b/.sqlfluff @@ -0,0 +1,37 @@ +[sqlfluff] +dialect = postgres +max_line_length = 120 +templater = placeholder + +[sqlfluff:templater:placeholder] +DATABASE_OWNER=owner_role +param_style = colon + +[sqlfluff:rules:ambiguous.column_references] +group_by_and_order_by_style = explicit + +[sqlfluff:rules:ambiguous.join] +fully_qualify_join_types = both + +[sqlfluff:rules:capitalisation.functions] +capitalisation_policy = lower +extended_capitalisation_policy = lower + +[sqlfluff:rules:capitalisation.identifiers] +capitalisation_policy = lower +extended_capitalisation_policy = lower + +[sqlfluff:rules:capitalisation.literals] +capitalisation_policy = upper + +[sqlfluff:rules:capitalisation.keywords] +capitalisation_policy = upper + +[sqlfluff:rules:capitalisation.types] +extended_capitalisation_policy = lower + +[sqlfluff:rules:convention.casting_style] +preferred_type_casting_style = shorthand + +[sqlfluff:rules:references.consistent] +single_table_references = unqualified diff --git a/.sqlfluffignore b/.sqlfluffignore new file mode 100644 index 0000000..1da2b14 --- /dev/null +++ b/.sqlfluffignore @@ -0,0 +1,2 @@ +**/committed/*.sql +schema.sql diff --git a/.yarn/patches/ruru-npm-2.0.0-beta.12-299bc077af.patch b/.yarn/patches/ruru-npm-2.0.0-beta.12-299bc077af.patch new file mode 100644 index 0000000..d5ce163 --- /dev/null +++ b/.yarn/patches/ruru-npm-2.0.0-beta.12-299bc077af.patch @@ -0,0 +1,71 @@ +diff --git a/dist/server.js b/dist/server.js +index 8ab43cb0c0a9ea7f6573d3766986fa4b50dbf338..1808a9d8c22a54e5b521ac94faca42e2e0bccbae 100644 +--- a/dist/server.js ++++ b/dist/server.js +@@ -1,18 +1,15 @@ + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.ruruHTML = exports.defaultHTMLParts = exports.makeHTMLParts = void 0; +-const tslib_1 = require("tslib"); +-const fs_1 = require("fs"); +-const path = tslib_1.__importStar(require("path")); +-const { version } = JSON.parse((0, fs_1.readFileSync)(path.resolve(__dirname, `../package.json`), "utf8")); +-// ENHANCE: make this 'readFileSync' call webpackable +-const graphiQLContent = (0, fs_1.readFileSync)(path.resolve(__dirname, "../bundle/ruru.min.js"), "utf8"); ++const version = "2.0.0-beta.12"; ++const graphiQLContent = ++ '/*! For license information please see ruru.min.js.LICENSE.txt */\r\nvar RuruBundle;(()=>{var e,t,n={9365:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.planToMermaid=t.mermaidEscape=t.COLORS=void 0;const r=n(2970),o=n(1290);function i(e){return e?e.map((e=>`${e}`)).join("\\n"):""}t.COLORS=["#696969","#00bfff","#7f007f","#ffa500","#0000ff","#7fff00","#ff1493","#808000","#dda0dd","#ff0000","#ffff00","#00ffff","#4169e1","#3cb371","#a52a2a","#ff00ff","#f5deb3"],t.mermaidEscape=e=>e.match(/^[a-z0-9 ]+$/i)?e:`"${(0,o.stripAnsi)(e.trim()).replace(/[#"<>]/g,(e=>({"#":"\uA59B",\'"\':"\u201D","<":"\u1438",">":"\u1433"}[e]))).replace(/\\r?\\n/g,"
")}"`,t.planToMermaid=function(e,{concise:r=!1,skipBuckets:a=n.g.grafastExplainMermaidSkipBuckets??!1}={}){if("v1"!==e.version)throw new Error("planToMermaid only supports v1 plan JSON");const s=Object.create(null),l=Object.create(null),u=Object.create(null),c=[],d=e=>{l[e.id]=e;const t=[...e.steps].sort(((e,t)=>t.dependencyIds.length-e.dependencyIds.length));for(const e of t){if(s[e.id])throw new Error(`Step ${e.id} (${e.stepClass}/${e.metaString}) duplicated in plan?!`);s[e.id]=e,c.push(e);for(const t of e.dependencyIds)u[t]?u[t].push(e):u[t]=[e]}for(const t of e.children)d(t)};d(e.rootBucket);const f=e=>t.COLORS[e%t.COLORS.length],p=["%%{init: {\'themeVariables\': { \'fontSize\': \'12px\'}}}%%",(r?"flowchart":"graph")+" TD"," classDef path fill:#eee,stroke:#000,color:#000"," classDef plan fill:#fff,stroke-width:1px,color:#000"," classDef itemplan fill:#fff,stroke-width:2px,color:#000"," classDef unbatchedplan fill:#dff,stroke-width:1px,color:#000"," classDef sideeffectplan fill:#fcc,stroke-width:2px,color:#000"," classDef bucket fill:#f6f6f6,color:#000,stroke-width:2px,text-align:left",""],h=Object.create(null),m=e=>{if(!h[e.id]){const n=e.stepClass.replace(/Step$/,""),a=`${n}${e.id}`;h[e.id]=a;const l=e.metaString,u=null!=l?(0,o.stripAnsi)(l):null,c=r&&u?((e,t=8,n=8)=>e.length>t+n+4?`${e.slice(0,t)}...${e.slice(e.length-n)}`:e)(u):u,d=e.supportsUnbatched,f=i(e.polymorphicPaths),m=1===e.dependencyIds.length&&i(s[e.dependencyIds[0]].polymorphicPaths)===f?"":`\\n${f}`,g=`${n}[${e.id}\u2208${e.bucketId}]${c?`\\n<${c}>`:""}${m}`,[v,y]="__ItemStep"===e.stepClass?["[/","\\\\]"]:e.isSyncAndSafe?d?["{{","}}"]:["[","]"]:["[[","]]"],b=e.hasSideEffects?"sideeffectplan":"__ItemStep"===e.stepClass?"itemplan":d&&!e.isSyncAndSafe?"unbatchedplan":"plan";p.push(` ${a}${v}${(0,t.mermaidEscape)(g)}${y}:::${b}`)}return h[e.id]};p.push(""),p.push(" %% plan dependencies");const g=Object.create(null),v=(e,n)=>{const r=e.dependencyForbiddenFlags[n],i=e.dependencyOnReject[n],a=[];r&&(2==(2&r)&&a.push("rejectNull"),0==(1&r)&&a.push("trapError"),0==(4&r)&&a.push("trapInhibited"),i&&a.push(`onReject=${function(e,t=15){return e.length>t?e.substring(0,t-2)+"\u2026":e}((0,o.stripAnsi)(i))}`));const s=a.join(";");return s?`|${(0,t.mermaidEscape)(s)}|`:""};c.forEach((e=>{const t=m(e),n=e.dependencyIds.map((e=>m(s[e])));if(n.length>0)if("__ItemStep"===e.stepClass){const[r,...o]=n,i=null==e.extra?.transformStepId?"==>":"-.->";if(p.push(` ${r} ${i}${v(e,0)} ${t}`),o.length>0){const n=[];for(let r=0;r{m(e)})),p.push(""),r||a||p.push(" subgraph Buckets");const y=Object.values(l);for(let e=0,n=y.length;e0?`\\nDeps: ${n.copyStepIds.map((e=>s[e].id)).join(", ")}\\n`:""}${"polymorphic"===n.reason.type?i(n.reason.polymorphicPaths):""}${null!=n.rootStepId&&"root"!==n.reason.type?"\\nROOT "+(b=s[n.rootStepId],`${b.stepClass.replace(/Step$/,"")}${0===b.bucketId?"":`{${b.bucketId}}`}${b.metaString?`<${b.metaString}>`:""}[${b.id}]`):""}${A(n)}\\n${l.join("\\n")}`)}):::bucket`),p.push(` classDef bucket${n.id} stroke:${f(n.id)}`),p.push(` class ${[`Bucket${n.id}`,...r.map(m)].join(",")} bucket${n.id}`)}var b;if(!a)for(let e=0,t=y.length;e`Bucket${e.id}`));n.length>0&&p.push(` Bucket${t.id} --\\x3e ${n.join(" & ")}`)}return p.push(` classDef unary fill:#fafffa,borderWidth:8px\\n class ${c.filter((e=>e.isUnary)).map(m)} unary`),r||a||p.push(" end"),p.join("\\n");function A(e){function t(e){return`${e.stepClass.replace(/Step$/,"")??""}[${e.id}]`}function n(e){if(!e)return"";const n=e.map(t).join(", ");return n.length<40?n:e.map((e=>e.id)).join(", ")}return 1===e.phases.length?"":`\\n${e.phases.map(((e,t)=>`${t+1}: ${n(e.normalStepIds?.map((e=>s[e])))}${e.unbatchedStepIds?`\\n>: ${n(e.unbatchedStepIds.map((e=>s[e])))}`:""}`)).join("\\n")}`}},r.__exportStar(n(2141),t)},2141:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1290:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stripAnsi=t.ANSI_REGEXP=void 0,t.ANSI_REGEXP=/[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)|(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))/g,t.stripAnsi=function(e){return e.replace(t.ANSI_REGEXP,"")}},981:(e,t,n)=>{"use strict";n.d(t,{a:()=>d,b:()=>f,c:()=>p,d:()=>h,e:()=>m,g:()=>l});var r=n(9963),o=n(2437),i=n(3690),a=Object.defineProperty,s=(e,t)=>a(e,"name",{value:t,configurable:!0});function l(e,t){const n={schema:e,type:null,parentType:null,inputType:null,directiveDef:null,fieldDef:null,argDef:null,argDefs:null,objectFieldDefs:null};return(0,i.f)(t,(t=>{var o,i;switch(t.kind){case"Query":case"ShortQuery":n.type=e.getQueryType();break;case"Mutation":n.type=e.getMutationType();break;case"Subscription":n.type=e.getSubscriptionType();break;case"InlineFragment":case"FragmentDefinition":t.type&&(n.type=e.getType(t.type));break;case"Field":case"AliasedField":n.fieldDef=n.type&&t.name?u(e,n.parentType,t.name):null,n.type=null===(o=n.fieldDef)||void 0===o?void 0:o.type;break;case"SelectionSet":n.parentType=n.type?(0,r.xC)(n.type):null;break;case"Directive":n.directiveDef=t.name?e.getDirective(t.name):null;break;case"Arguments":const a=t.prevState?"Field"===t.prevState.kind?n.fieldDef:"Directive"===t.prevState.kind?n.directiveDef:"AliasedField"===t.prevState.kind?t.prevState.name&&u(e,n.parentType,t.prevState.name):null:null;n.argDefs=a?a.args:null;break;case"Argument":if(n.argDef=null,n.argDefs)for(let e=0;ee.value===t.name)):null;break;case"ListValue":const l=n.inputType?(0,r.tf)(n.inputType):null;n.inputType=l instanceof r.p2?l.ofType:null;break;case"ObjectValue":const d=n.inputType?(0,r.xC)(n.inputType):null;n.objectFieldDefs=d instanceof r.sR?d.getFields():null;break;case"ObjectField":const f=t.name&&n.objectFieldDefs?n.objectFieldDefs[t.name]:null;n.inputType=null==f?void 0:f.type;break;case"NamedType":n.type=t.name?e.getType(t.name):null}})),n}function u(e,t,n){return n===o.Az.name&&e.getQueryType()===t?o.Az:n===o.tF.name&&e.getQueryType()===t?o.tF:n===o.hU.name&&(0,r.Gv)(t)?o.hU:t&&t.getFields?t.getFields()[n]:void 0}function c(e,t){for(let n=0;n{"use strict";n.r(t),n.d(t,{b:()=>l});var r=n(6424),o=Object.defineProperty,i=(e,t)=>o(e,"name",{value:t,configurable:!0});function a(e,t){for(var n=0;nr[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}i(a,"_mergeNamespaces"),function(e){function t(t){return function(n,r){var o=r.line,a=n.getLine(o);function s(t){for(var i,s=r.ch,l=0;;){var u=s<=0?-1:a.lastIndexOf(t[0],s-1);if(-1!=u){if(1==l&&ut.lastLine())return null;var r=t.getTokenAt(e.Pos(n,1));if(/\\S/.test(r.string)||(r=t.getTokenAt(e.Pos(n,r.end+1))),"keyword"!=r.type||"import"!=r.string)return null;for(var o=n,i=Math.min(t.lastLine(),n+10);o<=i;++o){var a=t.getLine(o).indexOf(";");if(-1!=a)return{startCh:r.end,end:e.Pos(o,a)}}}i(r,"hasImport");var o,a=n.line,s=r(a);if(!s||r(a-1)||(o=r(a-2))&&o.end.line==a-1)return null;for(var l=s.end;;){var u=r(l.line+1);if(null==u)break;l=u.end}return{from:t.clipPos(e.Pos(a,s.startCh+1)),to:l}})),e.registerHelper("fold","include",(function(t,n){function r(n){if(nt.lastLine())return null;var r=t.getTokenAt(e.Pos(n,1));return/\\S/.test(r.string)||(r=t.getTokenAt(e.Pos(n,r.end+1))),"meta"==r.type&&"#include"==r.string.slice(0,8)?r.start+8:void 0}i(r,"hasInclude");var o=n.line,a=r(o);if(null==a||null!=r(o-1))return null;for(var s=o;null!=r(s+1);)++s;return{from:e.Pos(o,a+1),to:t.clipPos(e.Pos(s))}}))}((0,r.r)());var s={};const l=a({__proto__:null,default:(0,r.g)(s)},[s])},7511:(e,t,n)=>{"use strict";n.r(t),n.d(t,{c:()=>l});var r=n(6424),o=Object.defineProperty,i=(e,t)=>o(e,"name",{value:t,configurable:!0});function a(e,t){for(var n=0;nr[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}i(a,"_mergeNamespaces"),function(e){var t={pairs:"()[]{}\'\'\\"\\"",closeBefore:")]}\'\\":;>",triples:"",explode:"[]{}"},n=e.Pos;function r(e,n){return"pairs"==n&&"string"==typeof e?e:"object"==typeof e&&null!=e[n]?e[n]:t[n]}e.defineOption("autoCloseBrackets",!1,(function(t,n,i){i&&i!=e.Init&&(t.removeKeyMap(o),t.state.closeBrackets=null),n&&(a(r(n,"pairs")),t.state.closeBrackets=n,t.addKeyMap(o))})),i(r,"getOption");var o={Backspace:u,Enter:c};function a(e){for(var t=0;t=0;s--){var c=a[s].head;t.replaceRange("",n(c.line,c.ch-1),n(c.line,c.ch+1),"+delete")}}function c(t){var n=l(t),o=n&&r(n,"explode");if(!o||t.getOption("disableInput"))return e.Pass;for(var i=t.listSelections(),a=0;a0?{line:a.head.line,ch:a.head.ch+t}:{line:a.head.line-1};n.push({anchor:s,head:s})}e.setSelections(n,o)}function f(t){var r=e.cmpPos(t.anchor,t.head)>0;return{anchor:new n(t.anchor.line,t.anchor.ch+(r?-1:1)),head:new n(t.head.line,t.head.ch+(r?1:-1))}}function p(t,o){var i=l(t);if(!i||t.getOption("disableInput"))return e.Pass;var a=r(i,"pairs"),s=a.indexOf(o);if(-1==s)return e.Pass;for(var u,c=r(i,"closeBefore"),p=r(i,"triples"),h=a.charAt(s+1)==o,g=t.listSelections(),v=s%2==0,y=0;y1&&p.indexOf(o)>=0&&t.getRange(n(w.line,w.ch-2),w)==o+o){if(w.ch>2&&/\\bstring/.test(t.getTokenTypeAt(n(w.line,w.ch-2))))return e.Pass;b="addFour"}else if(h){var E=0==w.ch?" ":t.getRange(n(w.line,w.ch-1),w);if(e.isWordChar(x)||E==o||e.isWordChar(E))return e.Pass;b="both"}else{if(!v||!(0===x.length||/\\s/.test(x)||c.indexOf(x)>-1))return e.Pass;b="both"}else b=h&&m(t,w)?"both":p.indexOf(o)>=0&&t.getRange(w,n(w.line,w.ch+3))==o+o+o?"skipThree":"skip";if(u){if(u!=b)return e.Pass}else u=b}var C=s%2?a.charAt(s-1):o,k=s%2?o:a.charAt(s+1);t.operation((function(){if("skip"==u)d(t,1);else if("skipThree"==u)d(t,3);else if("surround"==u){for(var e=t.getSelections(),n=0;n{"use strict";n.r(t),n.d(t,{C:()=>a,c:()=>s});var r=n(6424);function o(e,t){for(var n=0;nr[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(0,Object.defineProperty)(o,"name",{value:"_mergeNamespaces",configurable:!0});var i=(0,r.r)();const a=(0,r.g)(i),s=o({__proto__:null,default:a},[i])},6424:(e,t,n)=>{"use strict";n.d(t,{g:()=>i,r:()=>l});var r=Object.defineProperty,o=(e,t)=>r(e,"name",{value:t,configurable:!0});function i(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof n.g<"u"?n.g:typeof self<"u"&&self,o(i,"getDefaultExportFromCjs");var a,s={exports:{}};function l(){return a||(a=1,s.exports=function(){var e=navigator.userAgent,t=navigator.platform,n=/gecko\\/\\d/i.test(e),r=/MSIE \\d/.test(e),i=/Trident\\/(?:[7-9]|\\d{2,})\\..*rv:(\\d+)/.exec(e),a=/Edge\\/(\\d+)/.exec(e),s=r||i||a,l=s&&(r?document.documentMode||6:+(a||i)[1]),u=!a&&/WebKit\\//.test(e),c=u&&/Qt\\/\\d+\\.\\d+/.test(e),d=!a&&/Chrome\\//.test(e),f=/Opera\\//.test(e),p=/Apple Computer/.test(navigator.vendor),h=/Mac OS X 1\\d\\D([8-9]|\\d\\d)\\D/.test(e),m=/PhantomJS/.test(e),g=p&&(/Mobile\\/\\w+/.test(e)||navigator.maxTouchPoints>2),v=/Android/.test(e),y=g||v||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),b=g||/Mac/.test(t),A=/\\bCrOS\\b/.test(e),w=/win/i.test(t),x=f&&e.match(/Version\\/(\\d*\\.\\d*)/);x&&(x=Number(x[1])),x&&x>=15&&(f=!1,u=!0);var E=b&&(c||f&&(null==x||x<12.11)),C=n||s&&l>=9;function k(e){return new RegExp("(^|\\\\s)"+e+"(?:$|\\\\s)\\\\s*")}o(k,"classTest");var T,S=o((function(e,t){var n=e.className,r=k(t).exec(n);if(r){var o=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(o?r[1]+o:"")}}),"rmClass");function N(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function O(e,t){return N(e).appendChild(t)}function L(e,t,n,r){var o=document.createElement(e);if(n&&(o.className=n),r&&(o.style.cssText=r),"string"==typeof t)o.appendChild(document.createTextNode(t));else if(t)for(var i=0;i=t)return a+(t-i);a+=s-i,a+=n-a%n,i=s+1}}g?P=o((function(e){e.selectionStart=0,e.selectionEnd=e.value.length}),"selectInput"):s&&(P=o((function(e){try{e.select()}catch{}}),"selectInput")),o(j,"bind"),o(V,"copyObj"),o(B,"countColumn");var q=o((function(){this.id=null,this.f=null,this.time=0,this.handler=j(this.onTimeout,this)}),"Delayed");function U(e,t){for(var n=0;n=t)return r+Math.min(a,t-o);if(o+=i-r,r=i+1,(o+=n-o%n)>=t)return r}}o(Q,"findColumn");var K=[""];function X(e){for(;K.length<=e;)K.push(Z(K)+" ");return K[e]}function Z(e){return e[e.length-1]}function J(e,t){for(var n=[],r=0;r"\u0080"&&(e.toUpperCase()!=e.toLowerCase()||te.test(e))}function re(e,t){return t?!!(t.source.indexOf("\\\\w")>-1&&ne(e))||t.test(e):ne(e)}function oe(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}o(ne,"isWordCharBasic"),o(re,"isWordChar"),o(oe,"isEmpty");var ie=/[\\u0300-\\u036f\\u0483-\\u0489\\u0591-\\u05bd\\u05bf\\u05c1\\u05c2\\u05c4\\u05c5\\u05c7\\u0610-\\u061a\\u064b-\\u065e\\u0670\\u06d6-\\u06dc\\u06de-\\u06e4\\u06e7\\u06e8\\u06ea-\\u06ed\\u0711\\u0730-\\u074a\\u07a6-\\u07b0\\u07eb-\\u07f3\\u0816-\\u0819\\u081b-\\u0823\\u0825-\\u0827\\u0829-\\u082d\\u0900-\\u0902\\u093c\\u0941-\\u0948\\u094d\\u0951-\\u0955\\u0962\\u0963\\u0981\\u09bc\\u09be\\u09c1-\\u09c4\\u09cd\\u09d7\\u09e2\\u09e3\\u0a01\\u0a02\\u0a3c\\u0a41\\u0a42\\u0a47\\u0a48\\u0a4b-\\u0a4d\\u0a51\\u0a70\\u0a71\\u0a75\\u0a81\\u0a82\\u0abc\\u0ac1-\\u0ac5\\u0ac7\\u0ac8\\u0acd\\u0ae2\\u0ae3\\u0b01\\u0b3c\\u0b3e\\u0b3f\\u0b41-\\u0b44\\u0b4d\\u0b56\\u0b57\\u0b62\\u0b63\\u0b82\\u0bbe\\u0bc0\\u0bcd\\u0bd7\\u0c3e-\\u0c40\\u0c46-\\u0c48\\u0c4a-\\u0c4d\\u0c55\\u0c56\\u0c62\\u0c63\\u0cbc\\u0cbf\\u0cc2\\u0cc6\\u0ccc\\u0ccd\\u0cd5\\u0cd6\\u0ce2\\u0ce3\\u0d3e\\u0d41-\\u0d44\\u0d4d\\u0d57\\u0d62\\u0d63\\u0dca\\u0dcf\\u0dd2-\\u0dd4\\u0dd6\\u0ddf\\u0e31\\u0e34-\\u0e3a\\u0e47-\\u0e4e\\u0eb1\\u0eb4-\\u0eb9\\u0ebb\\u0ebc\\u0ec8-\\u0ecd\\u0f18\\u0f19\\u0f35\\u0f37\\u0f39\\u0f71-\\u0f7e\\u0f80-\\u0f84\\u0f86\\u0f87\\u0f90-\\u0f97\\u0f99-\\u0fbc\\u0fc6\\u102d-\\u1030\\u1032-\\u1037\\u1039\\u103a\\u103d\\u103e\\u1058\\u1059\\u105e-\\u1060\\u1071-\\u1074\\u1082\\u1085\\u1086\\u108d\\u109d\\u135f\\u1712-\\u1714\\u1732-\\u1734\\u1752\\u1753\\u1772\\u1773\\u17b7-\\u17bd\\u17c6\\u17c9-\\u17d3\\u17dd\\u180b-\\u180d\\u18a9\\u1920-\\u1922\\u1927\\u1928\\u1932\\u1939-\\u193b\\u1a17\\u1a18\\u1a56\\u1a58-\\u1a5e\\u1a60\\u1a62\\u1a65-\\u1a6c\\u1a73-\\u1a7c\\u1a7f\\u1b00-\\u1b03\\u1b34\\u1b36-\\u1b3a\\u1b3c\\u1b42\\u1b6b-\\u1b73\\u1b80\\u1b81\\u1ba2-\\u1ba5\\u1ba8\\u1ba9\\u1c2c-\\u1c33\\u1c36\\u1c37\\u1cd0-\\u1cd2\\u1cd4-\\u1ce0\\u1ce2-\\u1ce8\\u1ced\\u1dc0-\\u1de6\\u1dfd-\\u1dff\\u200c\\u200d\\u20d0-\\u20f0\\u2cef-\\u2cf1\\u2de0-\\u2dff\\u302a-\\u302f\\u3099\\u309a\\ua66f-\\ua672\\ua67c\\ua67d\\ua6f0\\ua6f1\\ua802\\ua806\\ua80b\\ua825\\ua826\\ua8c4\\ua8e0-\\ua8f1\\ua926-\\ua92d\\ua947-\\ua951\\ua980-\\ua982\\ua9b3\\ua9b6-\\ua9b9\\ua9bc\\uaa29-\\uaa2e\\uaa31\\uaa32\\uaa35\\uaa36\\uaa43\\uaa4c\\uaab0\\uaab2-\\uaab4\\uaab7\\uaab8\\uaabe\\uaabf\\uaac1\\uabe5\\uabe8\\uabed\\udc00-\\udfff\\ufb1e\\ufe00-\\ufe0f\\ufe20-\\ufe26\\uff9e\\uff9f]/;function ae(e){return e.charCodeAt(0)>=768&&ie.test(e)}function se(e,t,n){for(;(n<0?t>0:tn?-1:1;;){if(t==n)return t;var o=(t+n)/2,i=r<0?Math.ceil(o):Math.floor(o);if(i==t)return e(i)?t:n;e(i)?n=i:t=i+r}}function ue(e,t,n,r){if(!e)return r(t,n,"ltr",0);for(var o=!1,i=0;it||t==n&&a.to==t)&&(r(Math.max(a.from,t),Math.min(a.to,n),1==a.level?"rtl":"ltr",i),o=!0)}o||r(t,n,"ltr")}o(ae,"isExtendingChar"),o(se,"skipExtendingChars"),o(le,"findFirst"),o(ue,"iterateBidiSections");var ce=null;function de(e,t,n){var r;ce=null;for(var o=0;ot)return o;i.to==t&&(i.from!=i.to&&"before"==n?r=o:ce=o),i.from==t&&(i.from!=i.to&&"before"!=n?r=o:ce=o)}return r??ce}o(de,"getBidiPartAt");var fe=function(){function e(e){return e<=247?"bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN".charAt(e):1424<=e&&e<=1524?"R":1536<=e&&e<=1785?"nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111".charAt(e-1536):1774<=e&&e<=2220?"r":8192<=e&&e<=8203?"w":8204==e?"b":"L"}o(e,"charType");var t=/[\\u0590-\\u05f4\\u0600-\\u06ff\\u0700-\\u08ac]/,n=/[stwN]/,r=/[LRr]/,i=/[Lb1n]/,a=/[1n]/;function s(e,t,n){this.level=e,this.from=t,this.to=n}return o(s,"BidiSpan"),function(o,l){var u="ltr"==l?"L":"R";if(0==o.length||"ltr"==l&&!t.test(o))return!1;for(var c=o.length,d=[],f=0;f-1&&(r[t]=o.slice(0,i).concat(o.slice(i+1)))}}}function ye(e,t){var n=ge(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),o=0;o0}function xe(e){e.prototype.on=function(e,t){me(this,e,t)},e.prototype.off=function(e,t){ve(this,e,t)}}function Ee(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Ce(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function ke(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function Te(e){Ee(e),Ce(e)}function Se(e){return e.target||e.srcElement}function Ne(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),b&&e.ctrlKey&&1==t&&(t=3),t}o(ge,"getHandlers"),o(ve,"off"),o(ye,"signal"),o(be,"signalDOMEvent"),o(Ae,"signalCursorActivity"),o(we,"hasHandler"),o(xe,"eventMixin"),o(Ee,"e_preventDefault"),o(Ce,"e_stopPropagation"),o(ke,"e_defaultPrevented"),o(Te,"e_stop"),o(Se,"e_target"),o(Ne,"e_button");var Oe,Le,De=function(){if(s&&l<9)return!1;var e=L("div");return"draggable"in e||"dragDrop"in e}();function Me(e){if(null==Oe){var t=L("span","\u200B");O(e,L("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(Oe=t.offsetWidth<=1&&t.offsetHeight>2&&!(s&&l<8))}var n=Oe?L("span","\u200B"):L("span","\u00A0",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function Ie(e){if(null!=Le)return Le;var t=O(e,document.createTextNode("A\u062EA")),n=T(t,0,1).getBoundingClientRect(),r=T(t,1,2).getBoundingClientRect();return N(e),!(!n||n.left==n.right)&&(Le=r.right-n.right<3)}o(Me,"zeroWidthElement"),o(Ie,"hasBadBidiRects");var Re,Fe=3!="\\n\\nb".split(/\\n/).length?function(e){for(var t=0,n=[],r=e.length;t<=r;){var o=e.indexOf("\\n",t);-1==o&&(o=e.length);var i=e.slice(t,"\\r"==e.charAt(o-1)?o-1:o),a=i.indexOf("\\r");-1!=a?(n.push(i.slice(0,a)),t+=a+1):(n.push(i),t=o+1)}return n}:function(e){return e.split(/\\r\\n?|\\n/)},Pe=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch{return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch{}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},je="oncopy"in(Re=L("div"))||(Re.setAttribute("oncopy","return;"),"function"==typeof Re.oncopy),Ve=null;function Be(e){if(null!=Ve)return Ve;var t=O(e,L("span","x")),n=t.getBoundingClientRect(),r=T(t,0,1).getBoundingClientRect();return Ve=Math.abs(n.left-r.left)>1}o(Be,"hasBadZoomedRects");var qe={},Ue={};function ze(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),qe[e]=t}function He(e,t){Ue[e]=t}function We(e){if("string"==typeof e&&Ue.hasOwnProperty(e))e=Ue[e];else if(e&&"string"==typeof e.name&&Ue.hasOwnProperty(e.name)){var t=Ue[e.name];"string"==typeof t&&(t={name:t}),(e=ee(t,e)).name=t.name}else{if("string"==typeof e&&/^[\\w\\-]+\\/[\\w\\-]+\\+xml$/.test(e))return We("application/xml");if("string"==typeof e&&/^[\\w\\-]+\\/[\\w\\-]+\\+json$/.test(e))return We("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function Ge(e,t){t=We(t);var n=qe[t.name];if(!n)return Ge(e,"text/plain");var r=n(e,t);if(Ye.hasOwnProperty(t.name)){var o=Ye[t.name];for(var i in o)o.hasOwnProperty(i)&&(r.hasOwnProperty(i)&&(r["_"+i]=r[i]),r[i]=o[i])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var a in t.modeProps)r[a]=t.modeProps[a];return r}o(ze,"defineMode"),o(He,"defineMIME"),o(We,"resolveMode"),o(Ge,"getMode");var Ye={};function Qe(e,t){V(t,Ye.hasOwnProperty(e)?Ye[e]:Ye[e]={})}function Ke(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var o=t[r];o instanceof Array&&(o=o.concat([])),n[r]=o}return n}function Xe(e,t){for(var n;e.innerMode&&(n=e.innerMode(t))&&n.mode!=e;)t=n.state,e=n.mode;return n||{mode:e,state:t}}function Ze(e,t,n){return!e.startState||e.startState(t,n)}o(Qe,"extendMode"),o(Ke,"copyState"),o(Xe,"innerMode"),o(Ze,"startState");var Je=o((function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n}),"StringStream");function _e(e,t){if((t-=e.first)<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var n=e;!n.lines;)for(var r=0;;++r){var o=n.children[r],i=o.chunkSize();if(t=e.first&&tn?at(n,_e(e,n).text.length):ht(t,_e(e,t.line).text.length)}function ht(e,t){var n=e.ch;return null==n||n>t?at(e.line,t):n<0?at(e.line,0):e}function mt(e,t){for(var n=[],r=0;r=this.string.length},Je.prototype.sol=function(){return this.pos==this.lineStart},Je.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Je.prototype.next=function(){if(this.post},Je.prototype.eatSpace=function(){for(var e=this.pos;/[\\s\\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Je.prototype.skipToEnd=function(){this.pos=this.string.length},Je.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Je.prototype.backUp=function(e){this.pos-=e},Je.prototype.column=function(){return this.lastColumnPos0?null:(r&&!1!==t&&(this.pos+=r[0].length),r)}var i=o((function(e){return n?e.toLowerCase():e}),"cased");if(i(this.string.substr(this.pos,e.length))==i(e))return!1!==t&&(this.pos+=e.length),!0},Je.prototype.current=function(){return this.string.slice(this.start,this.pos)},Je.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Je.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Je.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)},o(_e,"getLine"),o($e,"getBetween"),o(et,"getLines"),o(tt,"updateLineHeight"),o(nt,"lineNo"),o(rt,"lineAtHeight"),o(ot,"isLine"),o(it,"lineNumberFor"),o(at,"Pos"),o(st,"cmp"),o(lt,"equalCursorPos"),o(ut,"copyPos"),o(ct,"maxPos"),o(dt,"minPos"),o(ft,"clipLine"),o(pt,"clipPos"),o(ht,"clipToLen"),o(mt,"clipPosArray");var gt=o((function(e,t){this.state=e,this.lookAhead=t}),"SavedContext"),vt=o((function(e,t,n,r){this.state=t,this.doc=e,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1}),"Context");function yt(e,t,n,r){var i=[e.state.modeGen],a={};St(e,t.text,e.doc.mode,n,(function(e,t){return i.push(e,t)}),a,r);for(var s=n.state,l=o((function(r){n.baseTokens=i;var o=e.state.overlays[r],l=1,u=0;n.state=!0,St(e,t.text,o.mode,n,(function(e,t){for(var n=l;ue&&i.splice(l,1,e,i[l+1],r),l+=2,u=Math.min(e,r)}if(t)if(o.opaque)i.splice(n,l-n,e,"overlay "+t),l=n+2;else for(;ne.options.maxHighlightLength&&Ke(e.doc.mode,r.state),i=yt(e,t,r);o&&(r.state=o),t.stateAfter=r.save(!o),t.styles=i.styles,i.classes?t.styleClasses=i.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function At(e,t,n){var r=e.doc,o=e.display;if(!r.mode.startState)return new vt(r,!0,t);var i=Nt(e,t,n),a=i>r.first&&_e(r,i-1).stateAfter,s=a?vt.fromSaved(r,a,i):new vt(r,Ze(r.mode),i);return r.iter(i,t,(function(n){wt(e,n.text,s);var r=s.line;n.stateAfter=r==t-1||r%5==0||r>=o.viewFrom&&rt.start)return i}throw new Error("Mode "+e.name+" failed to advance stream.")}vt.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},vt.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},vt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},vt.fromSaved=function(e,t,n){return t instanceof gt?new vt(e,Ke(e.mode,t.state),n,t.lookAhead):new vt(e,Ke(e.mode,t),n)},vt.prototype.save=function(e){var t=!1!==e?Ke(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new gt(t,this.maxLookAhead):t},o(yt,"highlightLine"),o(bt,"getLineStyles"),o(At,"getContextBefore"),o(wt,"processLine"),o(xt,"callBlankLine"),o(Et,"readToken");var Ct=o((function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n}),"Token");function kt(e,t,n,r){var o,i,a=e.doc,s=a.mode,l=_e(a,(t=pt(a,t)).line),u=At(e,t.line,n),c=new Je(l.text,e.options.tabSize,u);for(r&&(i=[]);(r||c.pose.options.maxHighlightLength?(s=!1,a&&wt(e,t,r,d.pos),d.pos=t.length,l=null):l=Tt(Et(n,d,r.state,f),i),f){var p=f[0].name;p&&(l="m-"+(l?p+" "+l:p))}if(!s||c!=l){for(;ua;--s){if(s<=i.first)return i.first;var l=_e(i,s-1),u=l.stateAfter;if(u&&(!n||s+(u instanceof gt?u.lookAhead:0)<=i.modeFrontier))return s;var c=B(l.text,null,e.options.tabSize);(null==o||r>c)&&(o=s-1,r=c)}return o}function Ot(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontiern;r--){var o=_e(e,r).stateAfter;if(o&&(!(o instanceof gt)||r+o.lookAhead=t:i.to>t);(r||(r=[])).push(new Rt(a,i.from,s?null:i.to))}}return r}function Bt(e,t,n){var r;if(e)for(var o=0;o=t:i.to>t)||i.from==t&&"bookmark"==a.type&&(!n||i.marker.insertLeft)){var s=null==i.from||(a.inclusiveLeft?i.from<=t:i.from0&&s)for(var b=0;b0)){var c=[l,1],d=st(u.from,s.from),f=st(u.to,s.to);(d<0||!a.inclusiveLeft&&!d)&&c.push({from:u.from,to:s.from}),(f>0||!a.inclusiveRight&&!f)&&c.push({from:s.to,to:u.to}),o.splice.apply(o,c),l+=c.length-3}}return o}function Ht(e){var t=e.markedSpans;if(t){for(var n=0;nt)&&(!n||Qt(n,i.marker)<0)&&(n=i.marker)}return n}function _t(e,t,n,r,o){var i=_e(e,t),a=Dt&&i.markedSpans;if(a)for(var s=0;s=0&&d<=0||c<=0&&d>=0)&&(c<=0&&(l.marker.inclusiveRight&&o.inclusiveLeft?st(u.to,n)>=0:st(u.to,n)>0)||c>=0&&(l.marker.inclusiveRight&&o.inclusiveLeft?st(u.from,r)<=0:st(u.from,r)<0)))return!0}}}function $t(e){for(var t;t=Xt(e);)e=t.find(-1,!0).line;return e}function en(e){for(var t;t=Zt(e);)e=t.find(1,!0).line;return e}function tn(e){for(var t,n;t=Zt(e);)e=t.find(1,!0).line,(n||(n=[])).push(e);return n}function nn(e,t){var n=_e(e,t),r=$t(n);return n==r?t:nt(r)}function rn(e,t){if(t>e.lastLine())return t;var n,r=_e(e,t);if(!on(e,r))return t;for(;n=Zt(r);)r=n.find(1,!0).line;return nt(r)+1}function on(e,t){var n=Dt&&t.markedSpans;if(n)for(var r=void 0,o=0;ot.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)}))}o(Mt,"seeReadOnlySpans"),o(It,"seeCollapsedSpans"),o(Rt,"MarkedSpan"),o(Ft,"getMarkedSpanFor"),o(Pt,"removeMarkedSpan"),o(jt,"addMarkedSpan"),o(Vt,"markedSpansBefore"),o(Bt,"markedSpansAfter"),o(qt,"stretchSpansOverChange"),o(Ut,"clearEmptySpans"),o(zt,"removeReadOnlyRanges"),o(Ht,"detachMarkedSpans"),o(Wt,"attachMarkedSpans"),o(Gt,"extraLeft"),o(Yt,"extraRight"),o(Qt,"compareCollapsedMarkers"),o(Kt,"collapsedSpanAtSide"),o(Xt,"collapsedSpanAtStart"),o(Zt,"collapsedSpanAtEnd"),o(Jt,"collapsedSpanAround"),o(_t,"conflictingCollapsedRange"),o($t,"visualLine"),o(en,"visualLineEnd"),o(tn,"visualLineContinued"),o(nn,"visualLineNo"),o(rn,"visualLineEndNo"),o(on,"lineIsHidden"),o(an,"lineIsHiddenInner"),o(sn,"heightAtLine"),o(ln,"lineLength"),o(un,"findMaxLine");var cn=o((function(e,t,n){this.text=e,Wt(this,t),this.height=n?n(this):1}),"Line");function dn(e,t,n,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),null!=e.order&&(e.order=null),Ht(e),Wt(e,n);var o=r?r(e):1;o!=e.height&&tt(e,o)}function fn(e){e.parent=null,Ht(e)}cn.prototype.lineNo=function(){return nt(this)},xe(cn),o(dn,"updateLine"),o(fn,"cleanUpLine");var pn={},hn={};function mn(e,t){if(!e||/^\\s*$/.test(e))return null;var n=t.addModeClass?hn:pn;return n[e]||(n[e]=e.replace(/\\S+/g,"cm-$&"))}function gn(e,t){var n=D("span",null,null,u?"padding-right: .1px":null),r={pre:D("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var o=0;o<=(t.rest?t.rest.length:0);o++){var i=o?t.rest[o-1]:t.line,a=void 0;r.pos=0,r.addToken=yn,Ie(e.display.measure)&&(a=pe(i,e.doc.direction))&&(r.addToken=An(r.addToken,a)),r.map=[],xn(i,r,bt(e,i,t!=e.display.externalMeasured&&nt(i))),i.styleClasses&&(i.styleClasses.bgClass&&(r.bgClass=F(i.styleClasses.bgClass,r.bgClass||"")),i.styleClasses.textClass&&(r.textClass=F(i.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(Me(e.display.measure))),0==o?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(u){var s=r.content.lastChild;(/\\bcm-tab\\b/.test(s.className)||s.querySelector&&s.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return ye(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=F(r.pre.className,r.textClass||"")),r}function vn(e){var t=L("span","\u2022","cm-invalidchar");return t.title="\\\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function yn(e,t,n,r,o,i,a){if(t){var u,c=e.splitSpaces?bn(t,e.trailingSpace):t,d=e.cm.state.specialChars,f=!1;if(d.test(t)){u=document.createDocumentFragment();for(var p=0;;){d.lastIndex=p;var h=d.exec(t),m=h?h.index-p:t.length-p;if(m){var g=document.createTextNode(c.slice(p,p+m));s&&l<9?u.appendChild(L("span",[g])):u.appendChild(g),e.map.push(e.pos,e.pos+m,g),e.col+=m,e.pos+=m}if(!h)break;p+=m+1;var v=void 0;if("\\t"==h[0]){var y=e.cm.options.tabSize,b=y-e.col%y;(v=u.appendChild(L("span",X(b),"cm-tab"))).setAttribute("role","presentation"),v.setAttribute("cm-text","\\t"),e.col+=b}else"\\r"==h[0]||"\\n"==h[0]?((v=u.appendChild(L("span","\\r"==h[0]?"\u240D":"\u2424","cm-invalidchar"))).setAttribute("cm-text",h[0]),e.col+=1):((v=e.cm.options.specialCharPlaceholder(h[0])).setAttribute("cm-text",h[0]),s&&l<9?u.appendChild(L("span",[v])):u.appendChild(v),e.col+=1);e.map.push(e.pos,e.pos+1,v),e.pos++}}else e.col+=t.length,u=document.createTextNode(c),e.map.push(e.pos,e.pos+t.length,u),s&&l<9&&(f=!0),e.pos+=t.length;if(e.trailingSpace=32==c.charCodeAt(t.length-1),n||r||o||f||i||a){var A=n||"";r&&(A+=r),o&&(A+=o);var w=L("span",[u],A,i);if(a)for(var x in a)a.hasOwnProperty(x)&&"style"!=x&&"class"!=x&&w.setAttribute(x,a[x]);return e.content.appendChild(w)}e.content.appendChild(u)}}function bn(e,t){if(e.length>1&&!/ /.test(e))return e;for(var n=t,r="",o=0;ou&&d.from<=u);f++);if(d.to>=c)return e(n,r,o,i,a,s,l);e(n,r.slice(0,d.to-u),o,i,null,s,l),i=null,r=r.slice(d.to-u),u=d.to}}}function wn(e,t,n,r){var o=!r&&n.widgetNode;o&&e.map.push(e.pos,e.pos+t,o),!r&&e.cm.display.input.needsContentAttribute&&(o||(o=e.content.appendChild(document.createElement("span"))),o.setAttribute("cm-marker",n.id)),o&&(e.cm.display.input.setUneditable(o),e.content.appendChild(o)),e.pos+=t,e.trailingSpace=!1}function xn(e,t,n){var r=e.markedSpans,o=e.text,i=0;if(r)for(var a,s,l,u,c,d,f,p=o.length,h=0,m=1,g="",v=0;;){if(v==h){l=u=c=s="",f=null,d=null,v=1/0;for(var y=[],b=void 0,A=0;Ah||x.collapsed&&w.to==h&&w.from==h)){if(null!=w.to&&w.to!=h&&v>w.to&&(v=w.to,u=""),x.className&&(l+=" "+x.className),x.css&&(s=(s?s+";":"")+x.css),x.startStyle&&w.from==h&&(c+=" "+x.startStyle),x.endStyle&&w.to==v&&(b||(b=[])).push(x.endStyle,w.to),x.title&&((f||(f={})).title=x.title),x.attributes)for(var E in x.attributes)(f||(f={}))[E]=x.attributes[E];x.collapsed&&(!d||Qt(d.marker,x)<0)&&(d=w)}else w.from>h&&v>w.from&&(v=w.from)}if(b)for(var C=0;C=p)break;for(var T=Math.min(p,v);;){if(g){var S=h+g.length;if(!d){var N=S>T?g.slice(0,T-h):g;t.addToken(t,N,a?a+l:l,c,h+N.length==v?u:"",s,f)}if(S>=T){g=g.slice(T-h),h=T;break}h=S,c=""}g=o.slice(i,i=n[m++]),a=mn(n[m++],t.cm.options)}}else for(var O=1;O2&&i.push((l.bottom+u.top)/2-n.top)}}i.push(n.bottom-n.top)}}function $n(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};if(e.rest){for(var r=0;rn)return{map:e.measure.maps[o],cache:e.measure.caches[o],before:!0}}}function er(e,t){var n=nt(t=$t(t)),r=e.display.externalMeasured=new En(e.doc,t,n);r.lineN=n;var o=r.built=gn(e,r);return r.text=o.pre,O(e.display.lineMeasure,o.pre),r}function tr(e,t,n,r){return or(e,rr(e,t),n,r)}function nr(e,t){if(t>=e.display.viewFrom&&t=n.lineN&&tt)&&(o=(i=l-s)-1,t>=l&&(a="right")),null!=o){if(r=e[u+2],s==l&&n==(r.insertLeft?"left":"right")&&(a=n),"left"==n&&0==o)for(;u&&e[u-2]==e[u-3]&&e[u-1].insertLeft;)r=e[2+(u-=3)],a="left";if("right"==n&&o==l-s)for(;u=0&&(n=e[o]).left==n.right;o--);return n}function ur(e,t,n,r){var o,i=sr(t.map,n,r),a=i.node,u=i.start,c=i.end,d=i.collapse;if(3==a.nodeType){for(var f=0;f<4;f++){for(;u&&ae(t.line.text.charAt(i.coverStart+u));)--u;for(;i.coverStart+c0&&(d=r="right"),o=e.options.lineWrapping&&(p=a.getClientRects()).length>1?p["right"==r?p.length-1:0]:a.getBoundingClientRect()}if(s&&l<9&&!u&&(!o||!o.left&&!o.right)){var h=a.parentNode.getClientRects()[0];o=h?{left:h.left,right:h.left+Dr(e.display),top:h.top,bottom:h.bottom}:ar}for(var m=o.top-t.rect.top,g=o.bottom-t.rect.top,v=(m+g)/2,y=t.view.measure.heights,b=0;b=r.text.length?(u=r.text.length,c="before"):u<=0&&(u=0,c="after"),!l)return s("before"==c?u-1:u,"before"==c);function d(e,t,n){return s(n?e-1:e,1==l[t].level!=n)}o(d,"getBidi");var f=de(l,u,c),p=ce,h=d(u,f,"before"==c);return null!=p&&(h.other=d(u,p,"before"!=c)),h}function wr(e,t){var n=0;t=pt(e.doc,t),e.options.lineWrapping||(n=Dr(e.display)*t.ch);var r=_e(e.doc,t.line),o=sn(r)+Yn(e.display);return{left:n,right:n,top:o,bottom:o+r.height}}function xr(e,t,n,r,o){var i=at(e,t,n);return i.xRel=o,r&&(i.outside=r),i}function Er(e,t,n){var r=e.doc;if((n+=e.display.viewOffset)<0)return xr(r.first,0,null,-1,-1);var o=rt(r,n),i=r.first+r.size-1;if(o>i)return xr(r.first+r.size-1,_e(r,i).text.length,null,1,1);t<0&&(t=0);for(var a=_e(r,o);;){var s=Sr(e,a,o,t,n),l=Jt(a,s.ch+(s.xRel>0||s.outside>0?1:0));if(!l)return s;var u=l.find(1);if(u.line==o)return u;a=_e(r,o=u.line)}}function Cr(e,t,n,r){r-=gr(t);var o=t.text.length,i=le((function(t){return or(e,n,t-1).bottom<=r}),o,0);return{begin:i,end:o=le((function(t){return or(e,n,t).top>r}),i,o)}}function kr(e,t,n,r){return n||(n=rr(e,t)),Cr(e,t,n,vr(e,t,or(e,n,r),"line").top)}function Tr(e,t,n,r){return!(e.bottom<=n)&&(e.top>n||(r?e.left:e.right)>t)}function Sr(e,t,n,r,o){o-=sn(t);var i=rr(e,t),a=gr(t),s=0,l=t.text.length,u=!0,c=pe(t,e.doc.direction);if(c){var d=(e.options.lineWrapping?Or:Nr)(e,t,n,i,c,r,o);s=(u=1!=d.level)?d.from:d.to-1,l=u?d.to:d.from-1}var f,p,h=null,m=null,g=le((function(t){var n=or(e,i,t);return n.top+=a,n.bottom+=a,!!Tr(n,r,o,!1)&&(n.top<=o&&n.left<=r&&(h=t,m=n),!0)}),s,l),v=!1;if(m){var y=r-m.left=A.bottom?1:0}return xr(n,g=se(t.text,g,1),p,v,r-f)}function Nr(e,t,n,r,o,i,a){var s=le((function(s){var l=o[s],u=1!=l.level;return Tr(Ar(e,at(n,u?l.to:l.from,u?"before":"after"),"line",t,r),i,a,!0)}),0,o.length-1),l=o[s];if(s>0){var u=1!=l.level,c=Ar(e,at(n,u?l.from:l.to,u?"after":"before"),"line",t,r);Tr(c,i,a,!0)&&c.top>a&&(l=o[s-1])}return l}function Or(e,t,n,r,o,i,a){var s=Cr(e,t,r,a),l=s.begin,u=s.end;/\\s/.test(t.text.charAt(u-1))&&u--;for(var c=null,d=null,f=0;f=u||p.to<=l)){var h=or(e,r,1!=p.level?Math.min(u,p.to)-1:Math.max(l,p.from)).right,m=hm)&&(c=p,d=m)}}return c||(c=o[o.length-1]),c.fromu&&(c={from:c.from,to:u,level:c.level}),c}function Lr(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==ir){ir=L("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)ir.appendChild(document.createTextNode("x")),ir.appendChild(L("br"));ir.appendChild(document.createTextNode("x"))}O(e.measure,ir);var n=ir.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),N(e.measure),n||1}function Dr(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=L("span","xxxxxxxxxx"),n=L("pre",[t],"CodeMirror-line-like");O(e.measure,n);var r=t.getBoundingClientRect(),o=(r.right-r.left)/10;return o>2&&(e.cachedCharWidth=o),o||10}function Mr(e){for(var t=e.display,n={},r={},o=t.gutters.clientLeft,i=t.gutters.firstChild,a=0;i;i=i.nextSibling,++a){var s=e.display.gutterSpecs[a].className;n[s]=i.offsetLeft+i.clientLeft+o,r[s]=i.clientWidth}return{fixedPos:Ir(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function Ir(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Rr(e){var t=Lr(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/Dr(e.display)-3);return function(o){if(on(e.doc,o))return 0;var i=0;if(o.widgets)for(var a=0;a0&&(l=_e(e.doc,u.line).text).length==u.ch){var c=B(l,l.length,e.options.tabSize)-l.length;u=at(u.line,Math.max(0,Math.round((i-Kn(e.display).left)/Dr(e.display))-c))}return u}function jr(e,t){if(t>=e.display.viewTo||(t-=e.display.viewFrom)<0)return null;for(var n=e.display.view,r=0;rt)&&(o.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=o.viewTo)Dt&&nn(e.doc,t)o.viewFrom?qr(e):(o.viewFrom+=r,o.viewTo+=r);else if(t<=o.viewFrom&&n>=o.viewTo)qr(e);else if(t<=o.viewFrom){var i=Ur(e,n,n+r,1);i?(o.view=o.view.slice(i.index),o.viewFrom=i.lineN,o.viewTo+=r):qr(e)}else if(n>=o.viewTo){var a=Ur(e,t,t,-1);a?(o.view=o.view.slice(0,a.index),o.viewTo=a.lineN):qr(e)}else{var s=Ur(e,t,t,-1),l=Ur(e,n,n+r,1);s&&l?(o.view=o.view.slice(0,s.index).concat(Cn(e,s.lineN,l.lineN)).concat(o.view.slice(l.index)),o.viewTo+=r):qr(e)}var u=o.externalMeasured;u&&(n=o.lineN&&t=r.viewTo)){var i=r.view[jr(e,t)];if(null!=i.node){var a=i.changes||(i.changes=[]);-1==U(a,n)&&a.push(n)}}}function qr(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Ur(e,t,n,r){var o,i=jr(e,t),a=e.display.view;if(!Dt||n==e.doc.first+e.doc.size)return{index:i,lineN:n};for(var s=e.display.viewFrom,l=0;l0){if(i==a.length-1)return null;o=s+a[i].size-t,i++}else o=s-t;t+=o,n+=o}for(;nn(e.doc,n)!=n;){if(i==(r<0?0:a.length-1))return null;n+=r*a[i-(r<0?1:0)].size,i+=r}return{index:i,lineN:n}}function zr(e,t,n){var r=e.display;0==r.view.length||t>=r.viewTo||n<=r.viewFrom?(r.view=Cn(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=Cn(e,t,r.viewFrom).concat(r.view):r.viewFromn&&(r.view=r.view.slice(0,jr(e,n)))),r.viewTo=n}function Hr(e){for(var t=e.display.view,n=0,r=0;r=e.display.viewTo||l.to().line0?a:e.defaultCharWidth())+"px"}if(r.other){var s=n.appendChild(L("div","\u00A0","CodeMirror-cursor CodeMirror-secondarycursor"));s.style.display="",s.style.left=r.other.left+"px",s.style.top=r.other.top+"px",s.style.height=.85*(r.other.bottom-r.other.top)+"px"}}function Qr(e,t){return e.top-t.top||e.left-t.left}function Kr(e,t,n){var r=e.display,i=e.doc,a=document.createDocumentFragment(),s=Kn(e.display),l=s.left,u=Math.max(r.sizerWidth,Zn(e)-r.sizer.offsetLeft)-s.right,c="ltr"==i.direction;function d(e,t,n,r){t<0&&(t=0),t=Math.round(t),r=Math.round(r),a.appendChild(L("div",null,"CodeMirror-selected","position: absolute; left: "+e+"px;\\n top: "+t+"px; width: "+(n??u-e)+"px;\\n height: "+(r-t)+"px"))}function f(t,n,r){var a,s,f=_e(i,t),p=f.text.length;function h(n,r){return br(e,at(t,n),"div",f,r)}function m(t,n,r){var o=kr(e,f,null,t),i="ltr"==n==("after"==r)?"left":"right";return h("after"==r?o.begin:o.end-(/\\s/.test(f.text.charAt(o.end-1))?2:1),i)[i]}o(h,"coords"),o(m,"wrapX");var g=pe(f,i.direction);return ue(g,n||0,r??p,(function(e,t,o,i){var f="ltr"==o,v=h(e,f?"left":"right"),y=h(t-1,f?"right":"left"),b=null==n&&0==e,A=null==r&&t==p,w=0==i,x=!g||i==g.length-1;if(y.top-v.top<=3){var E=(c?A:b)&&x,C=(c?b:A)&&w?l:(f?v:y).left,k=E?u:(f?y:v).right;d(C,v.top,k-C,v.bottom)}else{var T,S,N,O;f?(T=c&&b&&w?l:v.left,S=c?u:m(e,o,"before"),N=c?l:m(t,o,"after"),O=c&&A&&x?u:y.right):(T=c?m(e,o,"before"):l,S=!c&&b&&w?u:v.right,N=!c&&A&&x?l:y.left,O=c?m(t,o,"after"):u),d(T,v.top,S-T,v.bottom),v.bottom0?t.blinker=setInterval((function(){e.hasFocus()||$r(e),t.cursorDiv.style.visibility=(n=!n)?"":"hidden"}),e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function Zr(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||_r(e))}function Jr(e){e.state.delayingBlurEvent=!0,setTimeout((function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&$r(e))}),100)}function _r(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(ye(e,"focus",e,t),e.state.focused=!0,R(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),u&&setTimeout((function(){return e.display.input.reset(!0)}),20)),e.display.input.receivedFocus()),Xr(e))}function $r(e,t){e.state.delayingBlurEvent||(e.state.focused&&(ye(e,"blur",e,t),e.state.focused=!1,S(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout((function(){e.state.focused||(e.display.shift=!1)}),150))}function eo(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=Math.max(0,t.scroller.getBoundingClientRect().top),o=t.lineDiv.getBoundingClientRect().top,i=0,a=0;a.005||m<-.005)&&(oe.display.sizerWidth){var v=Math.ceil(f/Dr(e.display));v>e.display.maxLineLength&&(e.display.maxLineLength=v,e.display.maxLine=u.line,e.display.maxLineChanged=!0)}}}Math.abs(i)>2&&(t.scroller.scrollTop+=i)}function to(e){if(e.widgets)for(var t=0;t=a&&(i=rt(t,sn(_e(t,l))-e.wrapper.clientHeight),a=l)}return{from:i,to:Math.max(a,i+1)}}function ro(e,t){if(!be(e,"scrollCursorIntoView")){var n=e.display,r=n.sizer.getBoundingClientRect(),o=null;if(t.top+r.top<0?o=!0:t.bottom+r.top>(window.innerHeight||document.documentElement.clientHeight)&&(o=!1),null!=o&&!m){var i=L("div","\u200B",null,"position: absolute;\\n top: "+(t.top-n.viewOffset-Yn(e.display))+"px;\\n height: "+(t.bottom-t.top+Xn(e)+n.barHeight)+"px;\\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(i),i.scrollIntoView(o),e.display.lineSpace.removeChild(i)}}}function oo(e,t,n,r){var o;null==r&&(r=0),!e.options.lineWrapping&&t==n&&(n="before"==t.sticky?at(t.line,t.ch+1,"before"):t,t=t.ch?at(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t);for(var i=0;i<5;i++){var a=!1,s=Ar(e,t),l=n&&n!=t?Ar(e,n):s,u=ao(e,o={left:Math.min(s.left,l.left),top:Math.min(s.top,l.top)-r,right:Math.max(s.left,l.left),bottom:Math.max(s.bottom,l.bottom)+r}),c=e.doc.scrollTop,d=e.doc.scrollLeft;if(null!=u.scrollTop&&(ho(e,u.scrollTop),Math.abs(e.doc.scrollTop-c)>1&&(a=!0)),null!=u.scrollLeft&&(go(e,u.scrollLeft),Math.abs(e.doc.scrollLeft-d)>1&&(a=!0)),!a)break}return o}function io(e,t){var n=ao(e,t);null!=n.scrollTop&&ho(e,n.scrollTop),null!=n.scrollLeft&&go(e,n.scrollLeft)}function ao(e,t){var n=e.display,r=Lr(e.display);t.top<0&&(t.top=0);var o=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:n.scroller.scrollTop,i=Jn(e),a={};t.bottom-t.top>i&&(t.bottom=t.top+i);var s=e.doc.height+Qn(n),l=t.tops-r;if(t.topo+i){var c=Math.min(t.top,(u?s:t.bottom)-i);c!=o&&(a.scrollTop=c)}var d=e.options.fixedGutter?0:n.gutters.offsetWidth,f=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft-d,p=Zn(e)-n.gutters.offsetWidth,h=t.right-t.left>p;return h&&(t.right=t.left+p),t.left<10?a.scrollLeft=0:t.leftp+f-3&&(a.scrollLeft=t.right+(h?0:10)-p),a}function so(e,t){null!=t&&(fo(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function lo(e){fo(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function uo(e,t,n){(null!=t||null!=n)&&fo(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function co(e,t){fo(e),e.curOp.scrollToPos=t}function fo(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,po(e,wr(e,t.from),wr(e,t.to),t.margin))}function po(e,t,n,r){var o=ao(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-r,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+r});uo(e,o.scrollLeft,o.scrollTop)}function ho(e,t){Math.abs(e.doc.scrollTop-t)<2||(n||Go(e,{top:t}),mo(e,t,!0),n&&Go(e),jo(e,100))}function mo(e,t,n){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),(e.display.scroller.scrollTop!=t||n)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function go(e,t,n,r){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(!(n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)||r)&&(e.doc.scrollLeft=t,Xo(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function vo(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+Qn(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+Xn(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}o(sr,"nodeAndOffsetInLineMap"),o(lr,"getUsefulRect"),o(ur,"measureCharInner"),o(cr,"maybeUpdateRectForZooming"),o(dr,"clearLineMeasurementCacheFor"),o(fr,"clearLineMeasurementCache"),o(pr,"clearCaches"),o(hr,"pageScrollX"),o(mr,"pageScrollY"),o(gr,"widgetTopHeight"),o(vr,"intoCoordSystem"),o(yr,"fromCoordSystem"),o(br,"charCoords"),o(Ar,"cursorCoords"),o(wr,"estimateCoords"),o(xr,"PosWithInfo"),o(Er,"coordsChar"),o(Cr,"wrappedLineExtent"),o(kr,"wrappedLineExtentChar"),o(Tr,"boxIsAfter"),o(Sr,"coordsCharInner"),o(Nr,"coordsBidiPart"),o(Or,"coordsBidiPartWrapped"),o(Lr,"textHeight"),o(Dr,"charWidth"),o(Mr,"getDimensions"),o(Ir,"compensateForHScroll"),o(Rr,"estimateHeight"),o(Fr,"estimateLineHeights"),o(Pr,"posFromMouse"),o(jr,"findViewIndex"),o(Vr,"regChange"),o(Br,"regLineChange"),o(qr,"resetView"),o(Ur,"viewCuttingPoint"),o(zr,"adjustView"),o(Hr,"countDirtyView"),o(Wr,"updateSelection"),o(Gr,"prepareSelection"),o(Yr,"drawSelectionCursor"),o(Qr,"cmpCoords"),o(Kr,"drawSelectionRange"),o(Xr,"restartBlink"),o(Zr,"ensureFocus"),o(Jr,"delayBlurEvent"),o(_r,"onFocus"),o($r,"onBlur"),o(eo,"updateHeightsInViewport"),o(to,"updateWidgetHeight"),o(no,"visibleLines"),o(ro,"maybeScrollWindow"),o(oo,"scrollPosIntoView"),o(io,"scrollIntoView"),o(ao,"calculateScrollPos"),o(so,"addToScrollTop"),o(lo,"ensureCursorVisible"),o(uo,"scrollToCoords"),o(co,"scrollToRange"),o(fo,"resolveScrollToPos"),o(po,"scrollToCoordsRange"),o(ho,"updateScrollTop"),o(mo,"setScrollTop"),o(go,"setScrollLeft"),o(vo,"measureForScrollbars");var yo=o((function(e,t,n){this.cm=n;var r=this.vert=L("div",[L("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),o=this.horiz=L("div",[L("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=o.tabIndex=-1,e(r),e(o),me(r,"scroll",(function(){r.clientHeight&&t(r.scrollTop,"vertical")})),me(o,"scroll",(function(){o.clientWidth&&t(o.scrollLeft,"horizontal")})),this.checkedZeroWidth=!1,s&&l<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")}),"NativeScrollbars");yo.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0";var o=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+o)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=e.barLeft+"px";var i=e.viewWidth-e.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+i)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==r&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:t?r:0}},yo.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},yo.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},yo.prototype.zeroWidthHack=function(){var e=b&&!h?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new q,this.disableVert=new q},yo.prototype.enableZeroWidthBar=function(e,t,n){function r(){var o=e.getBoundingClientRect();("vert"==n?document.elementFromPoint(o.right-1,(o.top+o.bottom)/2):document.elementFromPoint((o.right+o.left)/2,o.bottom-1))!=e?e.style.pointerEvents="none":t.set(1e3,r)}e.style.pointerEvents="auto",o(r,"maybeDisable"),t.set(1e3,r)},yo.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var bo=o((function(){}),"NullScrollbars");function Ao(e,t){t||(t=vo(e));var n=e.display.barWidth,r=e.display.barHeight;wo(e,t);for(var o=0;o<4&&n!=e.display.barWidth||r!=e.display.barHeight;o++)n!=e.display.barWidth&&e.options.lineWrapping&&eo(e),wo(e,vo(e)),n=e.display.barWidth,r=e.display.barHeight}function wo(e,t){var n=e.display,r=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}bo.prototype.update=function(){return{bottom:0,right:0}},bo.prototype.setScrollLeft=function(){},bo.prototype.setScrollTop=function(){},bo.prototype.clear=function(){},o(Ao,"updateScrollbars"),o(wo,"updateScrollbarsInner");var xo={native:yo,null:bo};function Eo(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&S(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new xo[e.options.scrollbarStyle]((function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),me(t,"mousedown",(function(){e.state.focused&&setTimeout((function(){return e.display.input.focus()}),0)})),t.setAttribute("cm-not-content","true")}),(function(t,n){"horizontal"==n?go(e,t):ho(e,t)}),e),e.display.scrollbars.addClass&&R(e.display.wrapper,e.display.scrollbars.addClass)}o(Eo,"initScrollbars");var Co=0;function ko(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Co,markArrays:null},Tn(e.curOp)}function To(e){var t=e.curOp;t&&Nn(t,(function(e){for(var t=0;t=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new Bo(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Oo(e){e.updatedDisplay=e.mustUpdate&&Ho(e.cm,e.update)}function Lo(e){var t=e.cm,n=t.display;e.updatedDisplay&&eo(t),e.barMeasure=vo(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=tr(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+Xn(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-Zn(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function Do(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft=e.display.viewTo)){var n=+new Date+e.options.workTime,r=At(e,t.highlightFrontier),o=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),(function(i){if(r.line>=e.display.viewFrom){var a=i.styles,s=i.text.length>e.options.maxHighlightLength?Ke(t.mode,r.state):null,l=yt(e,i,r,!0);s&&(r.state=s),i.styles=l.styles;var u=i.styleClasses,c=l.classes;c?i.styleClasses=c:u&&(i.styleClasses=null);for(var d=!a||a.length!=i.styles.length||u!=c&&(!u||!c||u.bgClass!=c.bgClass||u.textClass!=c.textClass),f=0;!d&&fn)return jo(e,e.options.workDelay),!0})),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),o.length&&Io(e,(function(){for(var t=0;t=n.viewFrom&&t.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==Hr(e))return!1;Zo(e)&&(qr(e),t.dims=Mr(e));var o=r.first+r.size,i=Math.max(t.visible.from-e.options.viewportMargin,r.first),a=Math.min(o,t.visible.to+e.options.viewportMargin);n.viewFroma&&n.viewTo-a<20&&(a=Math.min(o,n.viewTo)),Dt&&(i=nn(e.doc,i),a=rn(e.doc,a));var s=i!=n.viewFrom||a!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;zr(e,i,a),n.viewOffset=sn(_e(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var l=Hr(e);if(!s&&0==l&&!t.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var u=Uo(e);return l>4&&(n.lineDiv.style.display="none"),Yo(e,n.updateLineNumbers,t.dims),l>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,zo(u),N(n.cursorDiv),N(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,s&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,jo(e,400)),n.updateLineNumbers=null,!0}function Wo(e,t){for(var n=t.viewport,r=!0;;r=!1){if(r&&e.options.lineWrapping&&t.oldDisplayWidth!=Zn(e))r&&(t.visible=no(e.display,e.doc,n));else if(n&&null!=n.top&&(n={top:Math.min(e.doc.height+Qn(e.display)-Jn(e),n.top)}),t.visible=no(e.display,e.doc,n),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break;if(!Ho(e,t))break;eo(e);var o=vo(e);Wr(e),Ao(e,o),Ko(e,o),t.force=!1}t.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function Go(e,t){var n=new Bo(e,t);if(Ho(e,n)){eo(e),Wo(e,n);var r=vo(e);Wr(e),Ao(e,r),Ko(e,r),n.finish()}}function Yo(e,t,n){var r=e.display,i=e.options.lineNumbers,a=r.lineDiv,s=a.firstChild;function l(t){var n=t.nextSibling;return u&&b&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),n}o(l,"rm");for(var c=r.view,d=r.viewFrom,f=0;f-1&&(h=!1),Mn(e,p,d,n)),h&&(N(p.lineNumber),p.lineNumber.appendChild(document.createTextNode(it(e.options,d)))),s=p.node.nextSibling}else{var m=qn(e,p,d,n);a.insertBefore(m,s)}d+=p.size}for(;s;)s=l(s)}function Qo(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",Ln(e,"gutterChanged",e)}function Ko(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+Xn(e)+"px"}function Xo(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var r=Ir(t)-t.scroller.scrollLeft+e.doc.scrollLeft,o=t.gutters.offsetWidth,i=r+"px",a=0;al.clientWidth,d=l.scrollHeight>l.clientHeight;if(o&&c||i&&d){if(i&&b&&u)e:for(var p=t.target,h=s.view;p!=l;p=p.parentNode)for(var m=0;m=0&&st(e,r.to())<=0)return n}return-1};var si=o((function(e,t){this.anchor=e,this.head=t}),"Range");function li(e,t,n){var r=e&&e.options.selectionsMayTouch,o=t[n];t.sort((function(e,t){return st(e.from(),t.from())})),n=U(t,o);for(var i=1;i0:l>=0){var u=dt(s.from(),a.from()),c=ct(s.to(),a.to()),d=s.empty()?a.from()==a.head:s.from()==s.head;i<=n&&--n,t.splice(--i,2,new si(d?c:u,d?u:c))}}return new ai(t,n)}function ui(e,t){return new ai([new si(e,t||e)],0)}function ci(e){return e.text?at(e.from.line+e.text.length-1,Z(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function di(e,t){if(st(e,t.from)<0)return e;if(st(e,t.to)<=0)return ci(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=ci(t).ch-t.to.ch),at(n,r)}function fi(e,t){for(var n=[],r=0;r1&&e.remove(l.line+1,m-1),e.insert(l.line+1,y)}Ln(e,"change",e,t)}function bi(e,t,n){function r(e,o,i){if(e.linked)for(var a=0;a1&&!e.done[e.done.length-2].ranges?(e.done.pop(),Z(e.done)):void 0}function Si(e,t,n,r){var o=e.history;o.undone.length=0;var i,a,s=+new Date;if((o.lastOp==r||o.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&o.lastModTime>s-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(i=Ti(o,o.lastOp==r)))a=Z(i.changes),0==st(t.from,t.to)&&0==st(t.from,a.to)?a.to=ci(t):i.changes.push(Ci(e,t));else{var l=Z(o.done);for((!l||!l.ranges)&&Li(e.sel,o.done),i={changes:[Ci(e,t)],generation:o.generation},o.done.push(i);o.done.length>o.undoDepth;)o.done.shift(),o.done[0].ranges||o.done.shift()}o.done.push(n),o.generation=++o.maxGeneration,o.lastModTime=o.lastSelTime=s,o.lastOp=o.lastSelOp=r,o.lastOrigin=o.lastSelOrigin=t.origin,a||ye(e,"historyAdded")}function Ni(e,t,n,r){var o=t.charAt(0);return"*"==o||"+"==o&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function Oi(e,t,n,r){var o=e.history,i=r&&r.origin;n==o.lastSelOp||i&&o.lastSelOrigin==i&&(o.lastModTime==o.lastSelTime&&o.lastOrigin==i||Ni(e,i,Z(o.done),t))?o.done[o.done.length-1]=t:Li(t,o.done),o.lastSelTime=+new Date,o.lastSelOrigin=i,o.lastSelOp=n,r&&!1!==r.clearRedo&&ki(o.undone)}function Li(e,t){var n=Z(t);n&&n.ranges&&n.equals(e)||t.push(e)}function Di(e,t,n,r){var o=t["spans_"+e.id],i=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,r),(function(n){n.markedSpans&&((o||(o=t["spans_"+e.id]={}))[i]=n.markedSpans),++i}))}function Mi(e){if(!e)return null;for(var t,n=0;n-1&&(Z(s)[d]=u[d],delete u[d])}}}return r}function Pi(e,t,n,r){if(r){var o=e.anchor;if(n){var i=st(t,o)<0;i!=st(n,o)<0?(o=t,t=n):i!=st(t,n)<0&&(t=n)}return new si(o,t)}return new si(n||t,t)}function ji(e,t,n,r,o){null==o&&(o=e.cm&&(e.cm.display.shift||e.extend)),Hi(e,new ai([Pi(e.sel.primary(),t,n,o)],0),r)}function Vi(e,t,n){for(var r=[],o=e.cm&&(e.cm.display.shift||e.extend),i=0;i=t.ch:s.to>t.ch))){if(o&&(ye(l,"beforeCursorEnter"),l.explicitlyCleared)){if(i.markedSpans){--a;continue}break}if(!l.atomic)continue;if(n){var d=l.find(r<0?1:-1),f=void 0;if((r<0?c:u)&&(d=Zi(e,d,-r,d&&d.line==t.line?i:null)),d&&d.line==t.line&&(f=st(d,n))&&(r<0?f<0:f>0))return Ki(e,d,t,r,o)}var p=l.find(r<0?-1:1);return(r<0?u:c)&&(p=Zi(e,p,r,p.line==t.line?i:null)),p?Ki(e,p,t,r,o):null}}return t}function Xi(e,t,n,r,o){var i=r||1;return Ki(e,t,n,i,o)||!o&&Ki(e,t,n,i,!0)||Ki(e,t,n,-i,o)||!o&&Ki(e,t,n,-i,!0)||(e.cantEdit=!0,at(e.first,0))}function Zi(e,t,n,r){return n<0&&0==t.ch?t.line>e.first?pt(e,at(t.line-1)):null:n>0&&t.ch==(r||_e(e,t.line)).text.length?t.line=0;--o)ea(e,{from:r[o].from,to:r[o].to,text:o?[""]:t.text,origin:t.origin});else ea(e,t)}}function ea(e,t){if(1!=t.text.length||""!=t.text[0]||0!=st(t.from,t.to)){var n=fi(e,t);Si(e,t,n,e.cm?e.cm.curOp.id:NaN),ra(e,t,n,qt(e,t));var r=[];bi(e,(function(e,n){!n&&-1==U(r,e.history)&&(la(e.history,t),r.push(e.history)),ra(e,t,null,qt(e,t))}))}}function ta(e,t,n){var r=e.cm&&e.cm.state.suppressEdits;if(!r||n){for(var i,a=e.history,s=e.sel,l="undo"==t?a.done:a.undone,u="undo"==t?a.undone:a.done,c=0;c=0;--h){var m=p(h);if(m)return m.v}}}}function na(e,t){if(0!=t&&(e.first+=t,e.sel=new ai(J(e.sel.ranges,(function(e){return new si(at(e.anchor.line+t,e.anchor.ch),at(e.head.line+t,e.head.ch))})),e.sel.primIndex),e.cm)){Vr(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;re.lastLine())){if(t.from.linei&&(t={from:t.from,to:at(i,_e(e,i).text.length),text:[t.text[0]],origin:t.origin}),t.removed=$e(e,t.from,t.to),n||(n=fi(e,t)),e.cm?oa(e.cm,t,r):yi(e,t,r),Wi(e,n,W),e.cantEdit&&Xi(e,at(e.firstLine(),0))&&(e.cantEdit=!1)}}function oa(e,t,n){var r=e.doc,o=e.display,i=t.from,a=t.to,s=!1,l=i.line;e.options.lineWrapping||(l=nt($t(_e(r,i.line))),r.iter(l,a.line+1,(function(e){if(e==o.maxLine)return s=!0,!0}))),r.sel.contains(t.from,t.to)>-1&&Ae(e),yi(r,t,n,Rr(e)),e.options.lineWrapping||(r.iter(l,i.line+t.text.length,(function(e){var t=ln(e);t>o.maxLineLength&&(o.maxLine=e,o.maxLineLength=t,o.maxLineChanged=!0,s=!1)})),s&&(e.curOp.updateMaxLine=!0)),Ot(r,i.line),jo(e,400);var u=t.text.length-(a.line-i.line)-1;t.full?Vr(e):i.line!=a.line||1!=t.text.length||vi(e.doc,t)?Vr(e,i.line,a.line+1,u):Br(e,i.line,"text");var c=we(e,"changes"),d=we(e,"change");if(d||c){var f={from:i,to:a,text:t.text,removed:t.removed,origin:t.origin};d&&Ln(e,"change",e,f),c&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(f)}e.display.selForContextMenu=null}function ia(e,t,n,r,o){var i;r||(r=n),st(r,n)<0&&(n=(i=[r,n])[0],r=i[1]),"string"==typeof t&&(t=e.splitLines(t)),$i(e,{from:n,to:r,text:t,origin:o})}function aa(e,t,n,r){n1||!(this.children[0]instanceof ca))){var s=[];this.collapse(s),this.children=[new ca(s)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t50){for(var a=o.lines.length%25+25,s=a;s10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=0;r0||0==a&&!1!==i.clearWhenEmpty)return i;if(i.replacedWith&&(i.collapsed=!0,i.widgetNode=D("span",[i.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||i.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(i.widgetNode.insertLeft=!0)),i.collapsed){if(_t(e,t.line,t,n,i)||t.line!=n.line&&_t(e,n.line,t,n,i))throw new Error("Inserting collapsed marker partially overlapping an existing one");It()}i.addToHistory&&Si(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var s,l=t.line,u=e.cm;if(e.iter(l,n.line+1,(function(r){u&&i.collapsed&&!u.options.lineWrapping&&$t(r)==u.display.maxLine&&(s=!0),i.collapsed&&l!=t.line&&tt(r,0),jt(r,new Rt(i,l==t.line?t.ch:null,l==n.line?n.ch:null),e.cm&&e.cm.curOp),++l})),i.collapsed&&e.iter(t.line,n.line+1,(function(t){on(e,t)&&tt(t,0)})),i.clearOnEnter&&me(i,"beforeCursorEnter",(function(){return i.clear()})),i.readOnly&&(Mt(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),i.collapsed&&(i.id=++ma,i.atomic=!0),u){if(s&&(u.curOp.updateMaxLine=!0),i.collapsed)Vr(u,t.line,n.line+1);else if(i.className||i.startStyle||i.endStyle||i.css||i.attributes||i.title)for(var c=t.line;c<=n.line;c++)Br(u,c,"text");i.atomic&&Yi(u.doc),Ln(u,"markerAdded",u,i)}return i}ga.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&ko(e),we(this,"clear")){var n=this.find();n&&Ln(this,"clear",n.from,n.to)}for(var r=null,o=null,i=0;ie.display.maxLineLength&&(e.display.maxLine=u,e.display.maxLineLength=c,e.display.maxLineChanged=!0)}null!=r&&e&&this.collapsed&&Vr(e,r,o+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Yi(e.doc)),e&&Ln(e,"markerCleared",e,this,r,o),t&&To(e),this.parent&&this.parent.clear()}},ga.prototype.find=function(e,t){null==e&&"bookmark"==this.type&&(e=1);for(var n,r,o=0;o=0;l--)$i(this,r[l]);s?zi(this,s):this.cm&&lo(this.cm)})),undo:Po((function(){ta(this,"undo")})),redo:Po((function(){ta(this,"redo")})),undoSelection:Po((function(){ta(this,"undo",!0)})),redoSelection:Po((function(){ta(this,"redo",!0)})),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,r=0;r=e.ch)&&t.push(o.marker.parent||o.marker)}return t},findMarks:function(e,t,n){e=pt(this,e),t=pt(this,t);var r=[],o=e.line;return this.iter(e.line,t.line+1,(function(i){var a=i.markedSpans;if(a)for(var s=0;s=l.to||null==l.from&&o!=e.line||null!=l.from&&o==t.line&&l.from>=t.ch)&&(!n||n(l.marker))&&r.push(l.marker.parent||l.marker)}++o})),r},getAllMarks:function(){var e=[];return this.iter((function(t){var n=t.markedSpans;if(n)for(var r=0;re)return t=e,!0;e-=i,++n})),pt(this,at(n,t))},indexFromPos:function(e){var t=(e=pt(this,e)).ch;if(e.linet&&(t=e.from),null!=e.to&&e.to-1)return t.state.draggingText(e),void setTimeout((function(){return t.display.input.focus()}),20);try{var f=e.dataTransfer.getData("Text");if(f){var p;if(t.state.draggingText&&!t.state.draggingText.copy&&(p=t.listSelections()),Wi(t.doc,ui(n,n)),p)for(var h=0;h=0;t--)ia(e.doc,"",r[t].from,r[t].to,"+delete");lo(e)}))}function Ka(e,t,n){var r=se(e.text,t+n,n);return r<0||r>e.text.length?null:r}function Xa(e,t,n){var r=Ka(e,t.ch,n);return null==r?null:new at(t.line,r,n<0?"after":"before")}function Za(e,t,n,r,o){if(e){"rtl"==t.doc.direction&&(o=-o);var i=pe(n,t.doc.direction);if(i){var a,s=o<0?Z(i):i[0],l=o<0==(1==s.level)?"after":"before";if(s.level>0||"rtl"==t.doc.direction){var u=rr(t,n);a=o<0?n.text.length-1:0;var c=or(t,u,a).top;a=le((function(e){return or(t,u,e).top==c}),o<0==(1==s.level)?s.from:s.to-1,a),"before"==l&&(a=Ka(n,a,1))}else a=o<0?s.to:s.from;return new at(r,a,l)}}return new at(r,o<0?n.text.length:0,o<0?"before":"after")}function Ja(e,t,n,r){var i=pe(t,e.doc.direction);if(!i)return Xa(t,n,r);n.ch>=t.text.length?(n.ch=t.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var a=de(i,n.ch,n.sticky),s=i[a];if("ltr"==e.doc.direction&&s.level%2==0&&(r>0?s.to>n.ch:s.from=s.from&&p>=d.begin)){var h=f?"before":"after";return new at(n.line,p,h)}}var m=o((function(e,t,r){for(var a=o((function(e,t){return t?new at(n.line,u(e,1),"before"):new at(n.line,e,"after")}),"getRes");e>=0&&e0==(1!=s.level),c=l?r.begin:u(r.end,-1);if(s.from<=c&&c0?d.end:u(d.begin,-1);return null==v||r>0&&v==t.text.length||!(g=m(r>0?0:i.length-1,r,c(v)))?null:g}Ba.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Ba.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Ba.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Ba.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Ba.default=b?Ba.macDefault:Ba.pcDefault,o(qa,"normalizeKeyName"),o(Ua,"normalizeKeyMap"),o(za,"lookupKey"),o(Ha,"isModifierKey"),o(Wa,"addModifierNames"),o(Ga,"keyName"),o(Ya,"getKeyMap"),o(Qa,"deleteNearSelection"),o(Ka,"moveCharLogically"),o(Xa,"moveLogically"),o(Za,"endOfLine"),o(Ja,"moveVisually");var _a={selectAll:Ji,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),W)},killLine:function(e){return Qa(e,(function(t){if(t.empty()){var n=_e(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line0)o=new at(o.line,o.ch+1),e.replaceRange(i.charAt(o.ch-1)+i.charAt(o.ch-2),at(o.line,o.ch-2),o,"+transpose");else if(o.line>e.doc.first){var a=_e(e.doc,o.line-1).text;a&&(o=new at(o.line,1),e.replaceRange(i.charAt(0)+e.doc.lineSeparator()+a.charAt(a.length-1),at(o.line-1,a.length-1),o,"+transpose"))}n.push(new si(o,o))}e.setSelections(n)}))},newlineAndIndent:function(e){return Io(e,(function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange(e.doc.lineSeparator(),t[n].anchor,t[n].head,"+input");t=e.listSelections();for(var r=0;r-1&&(st((o=a.ranges[o]).from(),t)<0||t.xRel>0)&&(st(o.to(),t)>0||t.xRel<0)?xs(e,r,t,i):Cs(e,r,t,i)}function xs(e,t,n,r){var i=e.display,a=!1,c=Ro(e,(function(t){u&&(i.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:Jr(e)),ve(i.wrapper.ownerDocument,"mouseup",c),ve(i.wrapper.ownerDocument,"mousemove",d),ve(i.scroller,"dragstart",f),ve(i.scroller,"drop",c),a||(Ee(t),r.addNew||ji(e.doc,n,null,null,r.extend),u&&!p||s&&9==l?setTimeout((function(){i.wrapper.ownerDocument.body.focus({preventScroll:!0}),i.input.focus()}),20):i.input.focus())})),d=o((function(e){a=a||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10}),"mouseMove"),f=o((function(){return a=!0}),"dragStart");u&&(i.scroller.draggable=!0),e.state.draggingText=c,c.copy=!r.moveOnDrag,me(i.wrapper.ownerDocument,"mouseup",c),me(i.wrapper.ownerDocument,"mousemove",d),me(i.scroller,"dragstart",f),me(i.scroller,"drop",c),e.state.delayingBlurEvent=!0,setTimeout((function(){return i.input.focus()}),20),i.scroller.dragDrop&&i.scroller.dragDrop()}function Es(e,t,n){if("char"==n)return new si(t,t);if("word"==n)return e.findWordAt(t);if("line"==n)return new si(at(t.line,0),pt(e.doc,at(t.line+1,0)));var r=n(e,t);return new si(r.from,r.to)}function Cs(e,t,n,r){s&&Jr(e);var i=e.display,a=e.doc;Ee(t);var l,u,c=a.sel,d=c.ranges;if(r.addNew&&!r.extend?(u=a.sel.contains(n),l=u>-1?d[u]:new si(n,n)):(l=a.sel.primary(),u=a.sel.primIndex),"rectangle"==r.unit)r.addNew||(l=new si(n,n)),n=Pr(e,t,!0,!0),u=-1;else{var f=Es(e,n,r.unit);l=r.extend?Pi(l,f.anchor,f.head,r.extend):f}r.addNew?-1==u?(u=d.length,Hi(a,li(e,d.concat([l]),u),{scroll:!1,origin:"*mouse"})):d.length>1&&d[u].empty()&&"char"==r.unit&&!r.extend?(Hi(a,li(e,d.slice(0,u).concat(d.slice(u+1)),0),{scroll:!1,origin:"*mouse"}),c=a.sel):Bi(a,u,l,G):(u=0,Hi(a,new ai([l],0),G),c=a.sel);var p=n;function h(t){if(0!=st(p,t))if(p=t,"rectangle"==r.unit){for(var o=[],i=e.options.tabSize,s=B(_e(a,n.line).text,n.ch,i),d=B(_e(a,t.line).text,t.ch,i),f=Math.min(s,d),h=Math.max(s,d),m=Math.min(n.line,t.line),g=Math.min(e.lastLine(),Math.max(n.line,t.line));m<=g;m++){var v=_e(a,m).text,y=Q(v,f,i);f==h?o.push(new si(at(m,y),at(m,y))):v.length>y&&o.push(new si(at(m,y),at(m,Q(v,h,i))))}o.length||o.push(new si(n,n)),Hi(a,li(e,c.ranges.slice(0,u).concat(o),u),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var b,A=l,w=Es(e,t,r.unit),x=A.anchor;st(w.anchor,x)>0?(b=w.head,x=dt(A.from(),w.anchor)):(b=w.anchor,x=ct(A.to(),w.head));var E=c.ranges.slice(0);E[u]=ks(e,new si(pt(a,x),b)),Hi(a,li(e,E,u),G)}}o(h,"extendTo");var m=i.wrapper.getBoundingClientRect(),g=0;function v(t){var n=++g,o=Pr(e,t,!0,"rectangle"==r.unit);if(o)if(0!=st(o,p)){e.curOp.focus=I(),h(o);var s=no(i,a);(o.line>=s.to||o.linem.bottom?20:0;l&&setTimeout(Ro(e,(function(){g==n&&(i.scroller.scrollTop+=l,v(t))})),50)}}function y(t){e.state.selectingText=!1,g=1/0,t&&(Ee(t),i.input.focus()),ve(i.wrapper.ownerDocument,"mousemove",b),ve(i.wrapper.ownerDocument,"mouseup",A),a.history.lastSelOrigin=null}o(v,"extend"),o(y,"done");var b=Ro(e,(function(e){0!==e.buttons&&Ne(e)?v(e):y(e)})),A=Ro(e,y);e.state.selectingText=A,me(i.wrapper.ownerDocument,"mousemove",b),me(i.wrapper.ownerDocument,"mouseup",A)}function ks(e,t){var n=t.anchor,r=t.head,o=_e(e.doc,n.line);if(0==st(n,r)&&n.sticky==r.sticky)return t;var i=pe(o);if(!i)return t;var a=de(i,n.ch,n.sticky),s=i[a];if(s.from!=n.ch&&s.to!=n.ch)return t;var l,u=a+(s.from==n.ch==(1!=s.level)?0:1);if(0==u||u==i.length)return t;if(r.line!=n.line)l=(r.line-n.line)*("ltr"==e.doc.direction?1:-1)>0;else{var c=de(i,r.ch,r.sticky),d=c-a||(r.ch-n.ch)*(1==s.level?-1:1);l=c==u-1||c==u?d<0:d>0}var f=i[u+(l?-1:0)],p=l==(1==f.level),h=p?f.from:f.to,m=p?"after":"before";return n.ch==h&&n.sticky==m?t:new si(new at(n.line,h,m),r)}function Ts(e,t,n,r){var o,i;if(t.touches)o=t.touches[0].clientX,i=t.touches[0].clientY;else try{o=t.clientX,i=t.clientY}catch{return!1}if(o>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&Ee(t);var a=e.display,s=a.lineDiv.getBoundingClientRect();if(i>s.bottom||!we(e,n))return ke(t);i-=s.top-a.viewOffset;for(var l=0;l=o)return ye(e,n,e,rt(e.doc,i),e.display.gutterSpecs[l].className,t),ke(t)}}function Ss(e,t){return Ts(e,t,"gutterClick",!0)}function Ns(e,t){Gn(e.display,t)||Os(e,t)||be(e,t,"contextmenu")||C||e.display.input.onContextMenu(t)}function Os(e,t){return!!we(e,"gutterContextMenu")&&Ts(e,t,"gutterContextMenu",!1)}function Ls(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\\s*cm-s-\\S+/g,"")+e.options.theme.replace(/(^|\\s)\\s*/g," cm-s-"),pr(e)}gs.prototype.compare=function(e,t,n){return this.time+400>e&&0==st(t,this.pos)&&n==this.button},o(vs,"clickRepeat"),o(ys,"onMouseDown"),o(bs,"handleMappedButton"),o(As,"configureMouse"),o(ws,"leftButtonDown"),o(xs,"leftButtonStartDrag"),o(Es,"rangeForUnit"),o(Cs,"leftButtonSelect"),o(ks,"bidiSimplify"),o(Ts,"gutterEvent"),o(Ss,"clickInGutter"),o(Ns,"onContextMenu"),o(Os,"contextMenuInGutter"),o(Ls,"themeChanged");var Ds={toString:function(){return"CodeMirror.Init"}},Ms={},Is={};function Rs(e){var t=e.optionHandlers;function n(n,r,o,i){e.defaults[n]=r,o&&(t[n]=i?function(e,t,n){n!=Ds&&o(e,t,n)}:o)}o(n,"option"),e.defineOption=n,e.Init=Ds,n("value","",(function(e,t){return e.setValue(t)}),!0),n("mode",null,(function(e,t){e.doc.modeOption=t,mi(e)}),!0),n("indentUnit",2,mi,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,(function(e){gi(e),pr(e),Vr(e)}),!0),n("lineSeparator",null,(function(e,t){if(e.doc.lineSep=t,t){var n=[],r=e.doc.first;e.doc.iter((function(e){for(var o=0;;){var i=e.text.indexOf(t,o);if(-1==i)break;o=i+t.length,n.push(at(r,i))}r++}));for(var o=n.length-1;o>=0;o--)ia(e.doc,t,n[o],at(n[o].line,n[o].ch+t.length))}})),n("specialChars",/[\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u061c\\u200b\\u200e\\u200f\\u2028\\u2029\\ufeff\\ufff9-\\ufffc]/g,(function(e,t,n){e.state.specialChars=new RegExp(t.source+(t.test("\\t")?"":"|\\t"),"g"),n!=Ds&&e.refresh()})),n("specialCharPlaceholder",vn,(function(e){return e.refresh()}),!0),n("electricChars",!0),n("inputStyle",y?"contenteditable":"textarea",(function(){throw new Error("inputStyle can not (yet) be changed in a running editor")}),!0),n("spellcheck",!1,(function(e,t){return e.getInputField().spellcheck=t}),!0),n("autocorrect",!1,(function(e,t){return e.getInputField().autocorrect=t}),!0),n("autocapitalize",!1,(function(e,t){return e.getInputField().autocapitalize=t}),!0),n("rtlMoveVisually",!w),n("wholeLineUpdateBefore",!0),n("theme","default",(function(e){Ls(e),$o(e)}),!0),n("keyMap","default",(function(e,t,n){var r=Ya(t),o=n!=Ds&&Ya(n);o&&o.detach&&o.detach(e,r),r.attach&&r.attach(e,o||null)})),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,Ps,!0),n("gutters",[],(function(e,t){e.display.gutterSpecs=Jo(t,e.options.lineNumbers),$o(e)}),!0),n("fixedGutter",!0,(function(e,t){e.display.gutters.style.left=t?Ir(e.display)+"px":"0",e.refresh()}),!0),n("coverGutterNextToScrollbar",!1,(function(e){return Ao(e)}),!0),n("scrollbarStyle","native",(function(e){Eo(e),Ao(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)}),!0),n("lineNumbers",!1,(function(e,t){e.display.gutterSpecs=Jo(e.options.gutters,t),$o(e)}),!0),n("firstLineNumber",1,$o,!0),n("lineNumberFormatter",(function(e){return e}),$o,!0),n("showCursorWhenSelecting",!1,Wr,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,(function(e,t){"nocursor"==t&&($r(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)})),n("screenReaderLabel",null,(function(e,t){t=""===t?null:t,e.display.input.screenReaderLabelChanged(t)})),n("disableInput",!1,(function(e,t){t||e.display.input.reset()}),!0),n("dragDrop",!0,Fs),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,Wr,!0),n("singleCursorHeightPerLine",!0,Wr,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,gi,!0),n("addModeClass",!1,gi,!0),n("pollInterval",100),n("undoDepth",200,(function(e,t){return e.doc.history.undoDepth=t})),n("historyEventDelay",1250),n("viewportMargin",10,(function(e){return e.refresh()}),!0),n("maxHighlightLength",1e4,gi,!0),n("moveInputWithCursor",!0,(function(e,t){t||e.display.input.resetPosition()})),n("tabindex",null,(function(e,t){return e.display.input.getField().tabIndex=t||""})),n("autofocus",null),n("direction","ltr",(function(e,t){return e.doc.setDirection(t)}),!0),n("phrases",null)}function Fs(e,t,n){if(!t!=!(n&&n!=Ds)){var r=e.display.dragFunctions,o=t?me:ve;o(e.display.scroller,"dragstart",r.start),o(e.display.scroller,"dragenter",r.enter),o(e.display.scroller,"dragover",r.over),o(e.display.scroller,"dragleave",r.leave),o(e.display.scroller,"drop",r.drop)}}function Ps(e){e.options.lineWrapping?(R(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(S(e.display.wrapper,"CodeMirror-wrap"),un(e)),Fr(e),Vr(e),pr(e),setTimeout((function(){return Ao(e)}),100)}function js(e,t){var n=this;if(!(this instanceof js))return new js(e,t);this.options=t=t?V(t):{},V(Ms,t,!1);var r=t.value;"string"==typeof r?r=new Ca(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var o=new js.inputStyles[t.inputStyle](this),i=this.display=new ei(e,r,o,t);for(var a in i.wrapper.CodeMirror=this,Ls(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Eo(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new q,keySeq:null,specialChars:null},t.autofocus&&!y&&i.input.focus(),s&&l<11&&setTimeout((function(){return n.display.input.reset(!0)}),20),Vs(this),Ma(),ko(this),this.curOp.forceUpdate=!0,Ai(this,r),t.autofocus&&!y||this.hasFocus()?setTimeout((function(){n.hasFocus()&&!n.state.focused&&_r(n)}),20):$r(this),Is)Is.hasOwnProperty(a)&&Is[a](this,t[a],Ds);Zo(this),t.finishInit&&t.finishInit(this);for(var c=0;c400}o(i,"finishTouch"),o(a,"isMouseLikeTouchEvent"),o(u,"farAway"),me(t.scroller,"touchstart",(function(o){if(!be(e,o)&&!a(o)&&!Ss(e,o)){t.input.ensurePolled(),clearTimeout(n);var i=+new Date;t.activeTouch={start:i,moved:!1,prev:i-r.end<=300?r:null},1==o.touches.length&&(t.activeTouch.left=o.touches[0].pageX,t.activeTouch.top=o.touches[0].pageY)}})),me(t.scroller,"touchmove",(function(){t.activeTouch&&(t.activeTouch.moved=!0)})),me(t.scroller,"touchend",(function(n){var r=t.activeTouch;if(r&&!Gn(t,n)&&null!=r.left&&!r.moved&&new Date-r.start<300){var o,a=e.coordsChar(t.activeTouch,"page");o=!r.prev||u(r,r.prev)?new si(a,a):!r.prev.prev||u(r,r.prev.prev)?e.findWordAt(a):new si(at(a.line,0),pt(e.doc,at(a.line+1,0))),e.setSelection(o.anchor,o.head),e.focus(),Ee(n)}i()})),me(t.scroller,"touchcancel",i),me(t.scroller,"scroll",(function(){t.scroller.clientHeight&&(ho(e,t.scroller.scrollTop),go(e,t.scroller.scrollLeft,!0),ye(e,"scroll",e))})),me(t.scroller,"mousewheel",(function(t){return ii(e,t)})),me(t.scroller,"DOMMouseScroll",(function(t){return ii(e,t)})),me(t.wrapper,"scroll",(function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0})),t.dragFunctions={enter:function(t){be(e,t)||Te(t)},over:function(t){be(e,t)||(Na(e,t),Te(t))},start:function(t){return Sa(e,t)},drop:Ro(e,Ta),leave:function(t){be(e,t)||Oa(e)}};var c=t.input.getField();me(c,"keyup",(function(t){return fs.call(e,t)})),me(c,"keydown",Ro(e,cs)),me(c,"keypress",Ro(e,ps)),me(c,"focus",(function(t){return _r(e,t)})),me(c,"blur",(function(t){return $r(e,t)}))}o(Rs,"defineOptions"),o(Fs,"dragDropChanged"),o(Ps,"wrappingChanged"),o(js,"CodeMirror"),js.defaults=Ms,js.optionHandlers=Is,o(Vs,"registerEventHandlers");var Bs=[];function qs(e,t,n,r){var o,i=e.doc;null==n&&(n="add"),"smart"==n&&(i.mode.indent?o=At(e,t).state:n="prev");var a=e.options.tabSize,s=_e(i,t),l=B(s.text,null,a);s.stateAfter&&(s.stateAfter=null);var u,c=s.text.match(/^\\s*/)[0];if(r||/\\S/.test(s.text)){if("smart"==n&&((u=i.mode.indent(o,s.text.slice(c.length),s.text))==H||u>150)){if(!r)return;n="prev"}}else u=0,n="not";"prev"==n?u=t>i.first?B(_e(i,t-1).text,null,a):0:"add"==n?u=l+e.options.indentUnit:"subtract"==n?u=l-e.options.indentUnit:"number"==typeof n&&(u=l+n),u=Math.max(0,u);var d="",f=0;if(e.options.indentWithTabs)for(var p=Math.floor(u/a);p;--p)f+=a,d+="\\t";if(fa,l=Fe(t),u=null;if(s&&r.ranges.length>1)if(Us&&Us.text.join("\\n")==t){if(r.ranges.length%Us.text.length==0){u=[];for(var c=0;c=0;f--){var p=r.ranges[f],h=p.from(),m=p.to();p.empty()&&(n&&n>0?h=at(h.line,h.ch-n):e.state.overwrite&&!s?m=at(m.line,Math.min(_e(i,m.line).text.length,m.ch+Z(l).length)):s&&Us&&Us.lineWise&&Us.text.join("\\n")==l.join("\\n")&&(h=m=at(h.line,0)));var g={from:h,to:m,text:u?u[f%u.length]:l,origin:o||(s?"paste":e.state.cutIncoming>a?"cut":"+input")};$i(e.doc,g),Ln(e,"inputRead",e,g)}t&&!s&&Gs(e,t),lo(e),e.curOp.updateInput<2&&(e.curOp.updateInput=d),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Ws(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),!t.isReadOnly()&&!t.options.disableInput&&Io(t,(function(){return Hs(t,n,0,null,"paste")})),!0}function Gs(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var n=e.doc.sel,r=n.ranges.length-1;r>=0;r--){var o=n.ranges[r];if(!(o.head.ch>100||r&&n.ranges[r-1].head.line==o.head.line)){var i=e.getModeAt(o.head),a=!1;if(i.electricChars){for(var s=0;s-1){a=qs(e,o.head.line,"smart");break}}else i.electricInput&&i.electricInput.test(_e(e.doc,o.head.line).text.slice(0,o.head.ch))&&(a=qs(e,o.head.line,"smart"));a&&Ln(e,"electricInput",e,o.head.line)}}}function Ys(e){for(var t=[],n=[],r=0;rn&&(qs(this,o.head.line,e,!0),n=o.head.line,r==this.doc.sel.primIndex&&lo(this));else{var i=o.from(),a=o.to(),s=Math.max(n,i.line);n=Math.min(this.lastLine(),a.line-(a.ch?0:1))+1;for(var l=s;l0&&Bi(this.doc,r,new si(i,u[r].to()),W)}}})),getTokenAt:function(e,t){return kt(this,e,t)},getLineTokens:function(e,t){return kt(this,at(e),t,!0)},getTokenTypeAt:function(e){e=pt(this.doc,e);var t,n=bt(this,_e(this.doc,e.line)),r=0,o=(n.length-1)/2,i=e.ch;if(0==i)t=n[2];else for(;;){var a=r+o>>1;if((a?n[2*a-1]:0)>=i)o=a;else{if(!(n[2*a+1]i&&(e=i,o=!0),r=_e(this.doc,e)}else r=e;return vr(this,r,{top:0,left:0},t||"page",n||o).top+(o?this.doc.height-sn(r):0)},defaultTextHeight:function(){return Lr(this.display)},defaultCharWidth:function(){return Dr(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,r,o){var i=this.display,a=(e=Ar(this,pt(this.doc,e))).bottom,s=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),i.sizer.appendChild(t),"over"==r)a=e.top;else if("above"==r||"near"==r){var l=Math.max(i.wrapper.clientHeight,this.doc.height),u=Math.max(i.sizer.clientWidth,i.lineSpace.clientWidth);("above"==r||e.bottom+t.offsetHeight>l)&&e.top>t.offsetHeight?a=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=l&&(a=e.bottom),s+t.offsetWidth>u&&(s=u-t.offsetWidth)}t.style.top=a+"px",t.style.left=t.style.right="","right"==o?(s=i.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==o?s=0:"middle"==o&&(s=(i.sizer.clientWidth-t.offsetWidth)/2),t.style.left=s+"px"),n&&io(this,{left:s,top:a,right:s+t.offsetWidth,bottom:a+t.offsetHeight})},triggerOnKeyDown:Fo(cs),triggerOnKeyPress:Fo(ps),triggerOnKeyUp:fs,triggerOnMouseDown:Fo(ys),execCommand:function(e){if(_a.hasOwnProperty(e))return _a[e].call(null,this)},triggerElectric:Fo((function(e){Gs(this,e)})),findPosH:function(e,t,n,r){var o=1;t<0&&(o=-1,t=-t);for(var i=pt(this.doc,e),a=0;a0&&a(t.charAt(n-1));)--n;for(;r.5||this.options.lineWrapping)&&Fr(this),ye(this,"refresh",this)})),swapDoc:Fo((function(e){var t=this.doc;return t.cm=null,this.state.selectingText&&this.state.selectingText(),Ai(this,e),pr(this),this.display.input.reset(),uo(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,Ln(this,"swapDoc",this,t),t})),phrase:function(e){var t=this.options.phrases;return t&&Object.prototype.hasOwnProperty.call(t,e)?t[e]:e},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},xe(e),e.registerHelper=function(t,r,o){n.hasOwnProperty(t)||(n[t]=e[t]={_global:[]}),n[t][r]=o},e.registerGlobalHelper=function(t,r,o,i){e.registerHelper(t,r,i),n[t]._global.push({pred:o,val:i})}}function Zs(e,t,n,r,i){var a=t,s=n,l=_e(e,t.line),u=i&&"rtl"==e.direction?-n:n;function c(){var n=t.line+u;return!(n=e.first+e.size)&&(t=new at(n,t.ch,t.sticky),l=_e(e,n))}function d(o){var a;if("codepoint"==r){var s=l.text.charCodeAt(t.ch+(n>0?0:-1));if(isNaN(s))a=null;else{var d=n>0?s>=55296&&s<56320:s>=56320&&s<57343;a=new at(t.line,Math.max(0,Math.min(l.text.length,t.ch+n*(d?2:1))),-n)}}else a=i?Ja(e.cm,l,t,n):Xa(l,t,n);if(null==a){if(o||!c())return!1;t=Za(i,e.cm,l,t.line,u)}else t=a;return!0}if(o(c,"findNextLine"),o(d,"moveOnce"),"char"==r||"codepoint"==r)d();else if("column"==r)d(!0);else if("word"==r||"group"==r)for(var f=null,p="group"==r,h=e.cm&&e.cm.getHelper(t,"wordChars"),m=!0;!(n<0)||d(!m);m=!1){var g=l.text.charAt(t.ch)||"\\n",v=re(g,h)?"w":p&&"\\n"==g?"n":!p||/\\s/.test(g)?null:"p";if(p&&!m&&!v&&(v="s"),f&&f!=v){n<0&&(n=1,d(),t.sticky="after");break}if(v&&(f=v),n>0&&!d(!m))break}var y=Xi(e,t,a,s,!0);return lt(a,y)&&(y.hitSide=!0),y}function Js(e,t,n,r){var o,i,a=e.doc,s=t.left;if("page"==r){var l=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),u=Math.max(l-.5*Lr(e.display),3);o=(n>0?t.bottom:t.top)+n*u}else"line"==r&&(o=n>0?t.bottom+3:t.top-3);for(;(i=Er(e,s,o)).outside;){if(n<0?o<=0:o>=a.height){i.hitSide=!0;break}o+=5*n}return i}o(zs,"setLastCopied"),o(Hs,"applyTextInput"),o(Ws,"handlePaste"),o(Gs,"triggerElectric"),o(Ys,"copyableRanges"),o(Qs,"disableBrowserMagic"),o(Ks,"hiddenTextarea"),o(Xs,"addEditorMethods"),o(Zs,"findPosH"),o(Js,"findPosV");var _s=o((function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new q,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null}),"ContentEditableInput");function $s(e,t){var n=nr(e,t.line);if(!n||n.hidden)return null;var r=_e(e.doc,t.line),o=$n(n,r,t.line),i=pe(r,e.doc.direction),a="left";i&&(a=de(i,t.ch)%2?"right":"left");var s=sr(o.map,t.ch,a);return s.offset="right"==s.collapse?s.end:s.start,s}function el(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function tl(e,t){return t&&(e.bad=!0),e}function nl(e,t,n,r,i){var a="",s=!1,l=e.doc.lineSeparator(),u=!1;function c(e){return function(t){return t.id==e}}function d(){s&&(a+=l,u&&(a+=l),s=u=!1)}function f(e){e&&(d(),a+=e)}function p(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(n)return void f(n);var o,a=t.getAttribute("cm-marker");if(a){var h=e.findMarks(at(r,0),at(i+1,0),c(+a));return void(h.length&&(o=h[0].find(0))&&f($e(e.doc,o.from,o.to).join(l)))}if("false"==t.getAttribute("contenteditable"))return;var m=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&0==t.textContent.length)return;m&&d();for(var g=0;g=t.display.viewTo||i.line=t.display.viewFrom&&$s(t,o)||{node:l[0].measure.map[2],offset:0},c=i.liner.firstLine()&&(a=at(a.line-1,_e(r.doc,a.line-1).length)),s.ch==_e(r.doc,s.line).text.length&&s.lineo.viewTo-1)return!1;a.line==o.viewFrom||0==(e=jr(r,a.line))?(t=nt(o.view[0].line),n=o.view[0].node):(t=nt(o.view[e].line),n=o.view[e-1].node.nextSibling);var l,u,c=jr(r,s.line);if(c==o.view.length-1?(l=o.viewTo-1,u=o.lineDiv.lastChild):(l=nt(o.view[c+1].line)-1,u=o.view[c+1].node.previousSibling),!n)return!1;for(var d=r.doc.splitLines(nl(r,n,u,t,l)),f=$e(r.doc,at(t,0),at(l,_e(r.doc,l).text.length));d.length>1&&f.length>1;)if(Z(d)==Z(f))d.pop(),f.pop(),l--;else{if(d[0]!=f[0])break;d.shift(),f.shift(),t++}for(var p=0,h=0,m=d[0],g=f[0],v=Math.min(m.length,g.length);pa.ch&&y.charCodeAt(y.length-h-1)==b.charCodeAt(b.length-h-1);)p--,h++;d[d.length-1]=y.slice(0,y.length-h).replace(/^\\u200b+/,""),d[0]=d[0].slice(p).replace(/\\u200b+$/,"");var w=at(t,p),x=at(l,f.length?Z(f).length-h:0);return d.length>1||d[0]||st(w,x)?(ia(r.doc,d,w,x,"+input"),!0):void 0},_s.prototype.ensurePolled=function(){this.forceCompositionEnd()},_s.prototype.reset=function(){this.forceCompositionEnd()},_s.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},_s.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout((function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()}),80))},_s.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&Io(this.cm,(function(){return Vr(e.cm)}))},_s.prototype.setUneditable=function(e){e.contentEditable="false"},_s.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||Ro(this.cm,Hs)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},_s.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},_s.prototype.onContextMenu=function(){},_s.prototype.resetPosition=function(){},_s.prototype.needsContentAttribute=!0,o($s,"posToDOM"),o(el,"isInGutter"),o(tl,"badPos"),o(nl,"domTextBetween"),o(rl,"domToPos"),o(ol,"locateNodeInLineView");var il=o((function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new q,this.hasSelection=!1,this.composing=null}),"TextareaInput");function al(e,t){if((t=t?V(t):{}).value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),null==t.autofocus){var n=I();t.autofocus=n==e||null!=e.getAttribute("autofocus")&&n==document.body}function r(){e.value=l.getValue()}var i;if(o(r,"save"),e.form&&(me(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var a=e.form;i=a.submit;try{var s=a.submit=function(){r(),a.submit=i,a.submit(),a.submit=s}}catch{}}t.finishInit=function(n){n.save=r,n.getTextArea=function(){return e},n.toTextArea=function(){n.toTextArea=isNaN,r(),e.parentNode.removeChild(n.getWrapperElement()),e.style.display="",e.form&&(ve(e.form,"submit",r),!t.leaveSubmitMethodAlone&&"function"==typeof e.form.submit&&(e.form.submit=i))}},e.style.display="none";var l=js((function(t){return e.parentNode.insertBefore(t,e.nextSibling)}),t);return l}function sl(e){e.off=ve,e.on=me,e.wheelEventPixels=oi,e.Doc=Ca,e.splitLines=Fe,e.countColumn=B,e.findColumn=Q,e.isWordChar=ne,e.Pass=H,e.signal=ye,e.Line=cn,e.changeEnd=ci,e.scrollbarModel=xo,e.Pos=at,e.cmpPos=st,e.modes=qe,e.mimeModes=Ue,e.resolveMode=We,e.getMode=Ge,e.modeExtensions=Ye,e.extendMode=Qe,e.copyState=Ke,e.startState=Ze,e.innerMode=Xe,e.commands=_a,e.keyMap=Ba,e.keyName=Ga,e.isModifierKey=Ha,e.lookupKey=za,e.normalizeKeyMap=Ua,e.StringStream=Je,e.SharedTextMarker=ya,e.TextMarker=ga,e.LineWidget=fa,e.e_preventDefault=Ee,e.e_stopPropagation=Ce,e.e_stop=Te,e.addClass=R,e.contains=M,e.rmClass=S,e.keyNames=Fa}il.prototype.init=function(e){var t=this,n=this,r=this.cm;this.createField(e);var i=this.textarea;function a(e){if(!be(r,e)){if(r.somethingSelected())zs({lineWise:!1,text:r.getSelections()});else{if(!r.options.lineWiseCopyCut)return;var t=Ys(r);zs({lineWise:!0,text:t.text}),"cut"==e.type?r.setSelections(t.ranges,null,W):(n.prevInput="",i.value=t.text.join("\\n"),P(i))}"cut"==e.type&&(r.state.cutIncoming=+new Date)}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),g&&(i.style.width="0px"),me(i,"input",(function(){s&&l>=9&&t.hasSelection&&(t.hasSelection=null),n.poll()})),me(i,"paste",(function(e){be(r,e)||Ws(e,r)||(r.state.pasteIncoming=+new Date,n.fastPoll())})),o(a,"prepareCopyCut"),me(i,"cut",a),me(i,"copy",a),me(e.scroller,"paste",(function(t){if(!Gn(e,t)&&!be(r,t)){if(!i.dispatchEvent)return r.state.pasteIncoming=+new Date,void n.focus();var o=new Event("paste");o.clipboardData=t.clipboardData,i.dispatchEvent(o)}})),me(e.lineSpace,"selectstart",(function(t){Gn(e,t)||Ee(t)})),me(i,"compositionstart",(function(){var e=r.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:e,range:r.markText(e,r.getCursor("to"),{className:"CodeMirror-composing"})}})),me(i,"compositionend",(function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)}))},il.prototype.createField=function(e){this.wrapper=Ks(),this.textarea=this.wrapper.firstChild},il.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},il.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=Gr(e);if(e.options.moveInputWithCursor){var o=Ar(e,n.sel.primary().head,"div"),i=t.wrapper.getBoundingClientRect(),a=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,o.top+a.top-i.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,o.left+a.left-i.left))}return r},il.prototype.showSelection=function(e){var t=this.cm.display;O(t.cursorDiv,e.cursors),O(t.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},il.prototype.reset=function(e){if(!this.contextMenuPending&&!this.composing){var t=this.cm;if(t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n,t.state.focused&&P(this.textarea),s&&l>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",s&&l>=9&&(this.hasSelection=null))}},il.prototype.getField=function(){return this.textarea},il.prototype.supportsTouch=function(){return!1},il.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!y||I()!=this.textarea))try{this.textarea.focus()}catch{}},il.prototype.blur=function(){this.textarea.blur()},il.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},il.prototype.receivedFocus=function(){this.slowPoll()},il.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,(function(){e.poll(),e.cm.state.focused&&e.slowPoll()}))},il.prototype.fastPoll=function(){var e=!1,t=this;function n(){t.poll()||e?(t.pollingFast=!1,t.slowPoll()):(e=!0,t.polling.set(60,n))}t.pollingFast=!0,o(n,"p"),t.polling.set(20,n)},il.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||!t.state.focused||Pe(n)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var o=n.value;if(o==r&&!t.somethingSelected())return!1;if(s&&l>=9&&this.hasSelection===o||b&&/[\\uf700-\\uf7ff]/.test(o))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var i=o.charCodeAt(0);if(8203==i&&!r&&(r="\u200B"),8666==i)return this.reset(),this.cm.execCommand("undo")}for(var a=0,u=Math.min(r.length,o.length);a1e3||o.indexOf("\\n")>-1?n.value=e.prevInput="":e.prevInput=o,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))})),!0},il.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},il.prototype.onKeyPress=function(){s&&l>=9&&(this.hasSelection=null),this.fastPoll()},il.prototype.onContextMenu=function(e){var t=this,n=t.cm,r=n.display,i=t.textarea;t.contextMenuPending&&t.contextMenuPending();var a=Pr(n,e),c=r.scroller.scrollTop;if(a&&!f){n.options.resetSelectionOnContextMenu&&-1==n.doc.sel.contains(a)&&Ro(n,Hi)(n.doc,ui(a),W);var d,p=i.style.cssText,h=t.wrapper.style.cssText,m=t.wrapper.offsetParent.getBoundingClientRect();if(t.wrapper.style.cssText="position: static",i.style.cssText="position: absolute; width: 30px; height: 30px;\\n top: "+(e.clientY-m.top-5)+"px; left: "+(e.clientX-m.left-5)+"px;\\n z-index: 1000; background: "+(s?"rgba(255, 255, 255, .05)":"transparent")+";\\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",u&&(d=window.scrollY),r.input.focus(),u&&window.scrollTo(null,d),r.input.reset(),n.somethingSelected()||(i.value=t.prevInput=" "),t.contextMenuPending=y,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll),o(v,"prepareSelectAllHack"),o(y,"rehide"),s&&l>=9&&v(),C){Te(e);var g=o((function(){ve(window,"mouseup",g),setTimeout(y,20)}),"mouseup");me(window,"mouseup",g)}else setTimeout(y,50)}function v(){if(null!=i.selectionStart){var e=n.somethingSelected(),o="\u200B"+(e?i.value:"");i.value="\u21DA",i.value=o,t.prevInput=e?"":"\u200B",i.selectionStart=1,i.selectionEnd=o.length,r.selForContextMenu=n.doc.sel}}function y(){if(t.contextMenuPending==y&&(t.contextMenuPending=!1,t.wrapper.style.cssText=h,i.style.cssText=p,s&&l<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=c),null!=i.selectionStart)){(!s||s&&l<9)&&v();var e=0,a=o((function(){r.selForContextMenu==n.doc.sel&&0==i.selectionStart&&i.selectionEnd>0&&"\u200B"==t.prevInput?Ro(n,Ji)(n):e++<10?r.detectingSelectAll=setTimeout(a,500):(r.selForContextMenu=null,r.input.reset())}),"poll");r.detectingSelectAll=setTimeout(a,200)}}},il.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e,this.textarea.readOnly=!!e},il.prototype.setUneditable=function(){},il.prototype.needsContentAttribute=!1,o(al,"fromTextArea"),o(sl,"addLegacyProps"),Rs(js),Xs(js);var ll="iter insert remove copy getEditor constructor".split(" ");for(var ul in Ca.prototype)Ca.prototype.hasOwnProperty(ul)&&U(ll,ul)<0&&(js.prototype[ul]=function(e){return function(){return e.apply(this.doc,arguments)}}(Ca.prototype[ul]));return xe(Ca),js.inputStyles={textarea:il,contenteditable:_s},js.defineMode=function(e){!js.defaults.mode&&"null"!=e&&(js.defaults.mode=e),ze.apply(this,arguments)},js.defineMIME=He,js.defineMode("null",(function(){return{token:function(e){return e.skipToEnd()}}})),js.defineMIME("text/plain","null"),js.defineExtension=function(e,t){js.prototype[e]=t},js.defineDocExtension=function(e,t){Ca.prototype[e]=t},js.fromTextArea=al,sl(js),js.version="5.65.3",js}()),s.exports}o(l,"requireCodemirror")},8518:(e,t,n)=>{"use strict";n.r(t),n.d(t,{c:()=>l});var r=n(6424),o=Object.defineProperty,i=(e,t)=>o(e,"name",{value:t,configurable:!0});function a(e,t){for(var n=0;nr[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}i(a,"_mergeNamespaces"),function(e){var t={},n=/[^\\s\\u00a0]/,r=e.Pos,o=e.cmpPos;function a(e){var t=e.search(n);return-1==t?0:t}function s(e,t,n){return/\\bstring\\b/.test(e.getTokenTypeAt(r(t.line,0)))&&!/^[\\\'\\"\\`]/.test(n)}function l(e,t){var n=e.getMode();return!1!==n.useInnerComments&&n.innerMode?e.getModeAt(t):n}i(a,"firstNonWS"),e.commands.toggleComment=function(e){e.toggleComment()},e.defineExtension("toggleComment",(function(e){e||(e=t);for(var n=this,o=1/0,i=this.listSelections(),a=null,s=i.length-1;s>=0;s--){var l=i[s].from(),u=i[s].to();l.line>=o||(u.line>=o&&(u=r(o,0)),o=l.line,null==a?n.uncomment(l,u,e)?a="un":(n.lineComment(l,u,e),a="line"):"un"==a?n.uncomment(l,u,e):n.lineComment(l,u,e))}})),i(s,"probablyInsideString"),i(l,"getMode"),e.defineExtension("lineComment",(function(e,o,i){i||(i=t);var u=this,c=l(u,e),d=u.getLine(e.line);if(null!=d&&!s(u,e,d)){var f=i.lineComment||c.lineComment;if(!f)return void((i.blockCommentStart||c.blockCommentStart)&&(i.fullLines=!0,u.blockComment(e,o,i)));var p=Math.min(0!=o.ch||o.line==e.line?o.line+1:o.line,u.lastLine()+1),h=null==i.padding?" ":i.padding,m=i.commentBlankLines||e.line==o.line;u.operation((function(){if(i.indent){for(var t=null,o=e.line;os.length)&&(t=s)}for(o=e.line;of||s.operation((function(){if(0!=a.fullLines){var t=n.test(s.getLine(f));s.replaceRange(p+d,r(f)),s.replaceRange(c+p,r(e.line,0));var l=a.blockCommentLead||u.blockCommentLead;if(null!=l)for(var h=e.line+1;h<=f;++h)(h!=f||t)&&s.replaceRange(l+p,r(h,0))}else{var m=0==o(s.getCursor("to"),i),g=!s.somethingSelected();s.replaceRange(d,i),m&&s.setSelection(g?i:s.getCursor("from"),i),s.replaceRange(c,e)}}))}}else(a.lineComment||u.lineComment)&&0!=a.fullLines&&s.lineComment(e,i,a)})),e.defineExtension("uncomment",(function(e,o,i){i||(i=t);var a,s=this,u=l(s,e),c=Math.min(0!=o.ch||o.line==e.line?o.line:o.line-1,s.lastLine()),d=Math.min(e.line,c),f=i.lineComment||u.lineComment,p=[],h=null==i.padding?" ":i.padding;e:if(f){for(var m=d;m<=c;++m){var g=s.getLine(m),v=g.indexOf(f);if(v>-1&&!/comment/.test(s.getTokenTypeAt(r(m,v+1)))&&(v=-1),-1==v&&n.test(g)||v>-1&&n.test(g.slice(0,v)))break e;p.push(g)}if(s.operation((function(){for(var e=d;e<=c;++e){var t=p[e-d],n=t.indexOf(f),o=n+f.length;n<0||(t.slice(o,o+h.length)==h&&(o+=h.length),a=!0,s.replaceRange("",r(e,n),r(e,o)))}})),a)return!0}var y=i.blockCommentStart||u.blockCommentStart,b=i.blockCommentEnd||u.blockCommentEnd;if(!y||!b)return!1;var A=i.blockCommentLead||u.blockCommentLead,w=s.getLine(d),x=w.indexOf(y);if(-1==x)return!1;var E=c==d?w:s.getLine(c),C=E.indexOf(b,c==d?x+y.length:0),k=r(d,x+1),T=r(c,C+1);if(-1==C||!/comment/.test(s.getTokenTypeAt(k))||!/comment/.test(s.getTokenTypeAt(T))||s.getRange(k,T,"\\n").indexOf(b)>-1)return!1;var S=w.lastIndexOf(y,e.ch),N=-1==S?-1:w.slice(0,e.ch).indexOf(b,S+y.length);if(-1!=S&&-1!=N&&N+b.length!=e.ch)return!1;N=E.indexOf(b,o.ch);var O=E.slice(o.ch).lastIndexOf(y,N-o.ch);return S=-1==N||-1==O?-1:o.ch+O,(-1==N||-1==S||S==o.ch)&&(s.operation((function(){s.replaceRange("",r(c,C-(h&&E.slice(C-h.length,C)==h?h.length:0)),r(c,C+b.length));var e=x+y.length;if(h&&w.slice(e,e+h.length)==h&&(e+=h.length),s.replaceRange("",r(d,x),r(d,e)),A)for(var t=d+1;t<=c;++t){var o=s.getLine(t),i=o.indexOf(A);if(-1!=i&&!n.test(o.slice(0,i))){var a=i+A.length;h&&o.slice(a,a+h.length)==h&&(a+=h.length),s.replaceRange("",r(t,i),r(t,a))}}})),!0)}))}((0,r.r)());var s={};const l=a({__proto__:null,default:(0,r.g)(s)},[s])},5043:(e,t,n)=>{"use strict";n.r(t),n.d(t,{a:()=>s,d:()=>l});var r=n(6424),o=Object.defineProperty,i=(e,t)=>o(e,"name",{value:t,configurable:!0});function a(e,t){for(var n=0;nr[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}i(a,"_mergeNamespaces"),function(e){function t(t,n,r){var o,i=t.getWrapperElement();return(o=i.appendChild(document.createElement("div"))).className=r?"CodeMirror-dialog CodeMirror-dialog-bottom":"CodeMirror-dialog CodeMirror-dialog-top","string"==typeof n?o.innerHTML=n:o.appendChild(n),e.addClass(i,"dialog-opened"),o}function n(e,t){e.state.currentNotificationClose&&e.state.currentNotificationClose(),e.state.currentNotificationClose=t}i(t,"dialogDiv"),i(n,"closeNotification"),e.defineExtension("openDialog",(function(r,o,a){a||(a={}),n(this,null);var s=t(this,r,a.bottom),l=!1,u=this;function c(t){if("string"==typeof t)f.value=t;else{if(l)return;l=!0,e.rmClass(s.parentNode,"dialog-opened"),s.parentNode.removeChild(s),u.focus(),a.onClose&&a.onClose(s)}}i(c,"close");var d,f=s.getElementsByTagName("input")[0];return f?(f.focus(),a.value&&(f.value=a.value,!1!==a.selectValueOnOpen&&f.select()),a.onInput&&e.on(f,"input",(function(e){a.onInput(e,f.value,c)})),a.onKeyUp&&e.on(f,"keyup",(function(e){a.onKeyUp(e,f.value,c)})),e.on(f,"keydown",(function(t){a&&a.onKeyDown&&a.onKeyDown(t,f.value,c)||((27==t.keyCode||!1!==a.closeOnEnter&&13==t.keyCode)&&(f.blur(),e.e_stop(t),c()),13==t.keyCode&&o(f.value,t))})),!1!==a.closeOnBlur&&e.on(s,"focusout",(function(e){null!==e.relatedTarget&&c()}))):(d=s.getElementsByTagName("button")[0])&&(e.on(d,"click",(function(){c(),u.focus()})),!1!==a.closeOnBlur&&e.on(d,"blur",c),d.focus()),c})),e.defineExtension("openConfirm",(function(r,o,a){n(this,null);var s=t(this,r,a&&a.bottom),l=s.getElementsByTagName("button"),u=!1,c=this,d=1;function f(){u||(u=!0,e.rmClass(s.parentNode,"dialog-opened"),s.parentNode.removeChild(s),c.focus())}i(f,"close"),l[0].focus();for(var p=0;p{"use strict";n.r(t),n.d(t,{f:()=>d});var r=n(6424),o=Object.defineProperty,i=(e,t)=>o(e,"name",{value:t,configurable:!0});function a(e,t){for(var n=0;nr[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}i(a,"_mergeNamespaces");var s,l={exports:{}};function u(){return s||(s=1,function(e){function t(t,r,a,s){if(a&&a.call){var l=a;a=null}else l=o(t,a,"rangeFinder");"number"==typeof r&&(r=e.Pos(r,0));var u=o(t,a,"minFoldSize");function c(e){var n=l(t,r);if(!n||n.to.line-n.from.linet.firstLine();)r=e.Pos(r.line-1,0),d=c(!1);if(d&&!d.cleared&&"unfold"!==s){var f=n(t,a,d);e.on(f,"mousedown",(function(t){p.clear(),e.e_preventDefault(t)}));var p=t.markText(d.from,d.to,{replacedWith:f,clearOnEnter:o(t,a,"clearOnEnter"),__isFold:!0});p.on("clear",(function(n,r){e.signal(t,"unfold",t,n,r)})),e.signal(t,"fold",t,d.from,d.to)}}function n(e,t,n){var r=o(e,t,"widget");if("function"==typeof r&&(r=r(n.from,n.to)),"string"==typeof r){var i=document.createTextNode(r);(r=document.createElement("span")).appendChild(i),r.className="CodeMirror-foldmarker"}else r&&(r=r.cloneNode(!0));return r}i(t,"doFold"),i(n,"makeWidget"),e.newFoldFunction=function(e,n){return function(r,o){t(r,o,{rangeFinder:e,widget:n})}},e.defineExtension("foldCode",(function(e,n,r){t(this,e,n,r)})),e.defineExtension("isFolded",(function(e){for(var t=this.findMarksAt(e),n=0;n=u){if(f&&l&&f.test(l.className))return;r=a(i.indicatorOpen)}}!r&&!l||e.setGutterMarker(n,i.gutter,r)}))}function l(e){return new RegExp("(^|\\\\s)"+e+"(?:$|\\\\s)\\\\s*")}function u(e){var t=e.getViewport(),n=e.state.foldGutter;n&&(e.operation((function(){s(e,t.from,t.to)})),n.from=t.from,n.to=t.to)}function c(e,n,r){var i=e.state.foldGutter;if(i){var a=i.options;if(r==a.gutter){var s=o(e,n);s?s.clear():e.foldCode(t(n,0),a)}}}function d(e){var t=e.state.foldGutter;if(t){var n=t.options;t.from=t.to=0,clearTimeout(t.changeUpdate),t.changeUpdate=setTimeout((function(){u(e)}),n.foldOnChangeTimeSpan||600)}}function f(e){var t=e.state.foldGutter;if(t){var n=t.options;clearTimeout(t.changeUpdate),t.changeUpdate=setTimeout((function(){var n=e.getViewport();t.from==t.to||n.from-t.to>20||t.from-n.to>20?u(e):e.operation((function(){n.fromt.to&&(s(e,t.to,n.to),t.to=n.to)}))}),n.updateViewportTimeSpan||400)}}function p(e,t){var n=e.state.foldGutter;if(n){var r=t.line;r>=n.from&&r{"use strict";function r(e,t){const n=[];let r=e;for(;null!=r&&r.kind;)n.push(r),r=r.prevState;for(let e=n.length-1;e>=0;e--)t(n[e])}n.d(t,{f:()=>r}),(0,Object.defineProperty)(r,"name",{value:"forEachState",configurable:!0})},9394:(e,t,n)=>{"use strict";n.r(t);var r=n(6312),o=(n(8258),n(3678));n(6424),r.C.registerHelper("hint","graphql",((e,t)=>{const{schema:n,externalFragments:i}=t;if(!n)return;const a=e.getCursor(),s=e.getTokenAt(a),l=null!==s.type&&/"|\\w/.test(s.string[0])?s.start:s.end,u=new o.Ly(a.line,l),c={list:(0,o.$1)(n,e.getValue(),u,s,i).map((e=>({text:e.label,type:e.type,description:e.documentation,isDeprecated:e.isDeprecated,deprecationReason:e.deprecationReason}))),from:{line:a.line,ch:l},to:{line:a.line,ch:s.end}};return null!=c&&c.list&&c.list.length>0&&(c.from=r.C.Pos(c.from.line,c.from.ch),c.to=r.C.Pos(c.to.line,c.to.ch),r.C.signal(e,"hasCompletion",e,c,s)),c}))},1198:(e,t,n)=>{"use strict";n.r(t);var r=n(6312),o=n(9963),i=n(9303),a=n(3690),s=(n(6424),Object.defineProperty),l=(e,t)=>s(e,"name",{value:t,configurable:!0});function u(e,t,n){const r=c(n,f(t.string));if(!r)return;const o=null!==t.type&&/"|\\w/.test(t.string[0])?t.start:t.end;return{list:r,from:{line:e.line,ch:o},to:{line:e.line,ch:t.end}}}function c(e,t){return t?d(d(e.map((e=>({proximity:p(f(e.text),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.text.length-t.entry.text.length)).map((e=>e.entry)):d(e,(e=>!e.isDeprecated))}function d(e,t){const n=e.filter(t);return 0===n.length?e:n}function f(e){return e.toLowerCase().replaceAll(/\\W/g,"")}function p(e,t){let n=h(t,e);return e.length>t.length&&(n-=e.length-t.length-1,n+=0===e.indexOf(t)?0:.5),n}function h(e,t){let n,r;const o=[],i=e.length,a=t.length;for(n=0;n<=i;n++)o[n]=[n];for(r=1;r<=a;r++)o[0][r]=r;for(n=1;n<=i;n++)for(r=1;r<=a;r++){const i=e[n-1]===t[r-1]?0:1;o[n][r]=Math.min(o[n-1][r]+1,o[n][r-1]+1,o[n-1][r-1]+i),n>1&&r>1&&e[n-1]===t[r-2]&&e[n-2]===t[r-1]&&(o[n][r]=Math.min(o[n][r],o[n-2][r-2]+i))}return o[i][a]}function m(e,t,n){const r="Invalid"===t.state.kind?t.state.prevState:t.state,{kind:a,step:s}=r;if("Document"===a&&0===s)return u(e,t,[{text:"{"}]);const{variableToType:l}=n;if(!l)return;const c=g(l,t.state);if("Document"===a||"Variable"===a&&0===s)return u(e,t,Object.keys(l).map((e=>({text:`"${e}": `,type:l[e]}))));if(("ObjectValue"===a||"ObjectField"===a&&0===s)&&c.fields)return u(e,t,Object.keys(c.fields).map((e=>c.fields[e])).map((e=>({text:`"${e.name}": `,type:e.type,description:e.description}))));if("StringValue"===a||"NumberValue"===a||"BooleanValue"===a||"NullValue"===a||"ListValue"===a&&1===s||"ObjectField"===a&&2===s||"Variable"===a&&2===s){const n=c.type?(0,o.xC)(c.type):void 0;if(n instanceof o.sR)return u(e,t,[{text:"{"}]);if(n instanceof o.mR)return u(e,t,n.getValues().map((e=>({text:`"${e.name}"`,type:n,description:e.description}))));if(n===i.EZ)return u(e,t,[{text:"true",type:i.EZ,description:"Not false."},{text:"false",type:i.EZ,description:"Not true."}])}}function g(e,t){const n={type:null,fields:null};return(0,a.f)(t,(t=>{switch(t.kind){case"Variable":n.type=e[t.name];break;case"ListValue":{const e=n.type?(0,o.tf)(n.type):void 0;n.type=e instanceof o.p2?e.ofType:null;break}case"ObjectValue":{const e=n.type?(0,o.xC)(n.type):void 0;n.fields=e instanceof o.sR?e.getFields():null;break}case"ObjectField":{const e=t.name&&n.fields?n.fields[t.name]:null;n.type=null==e?void 0:e.type;break}}})),n}l(u,"hintList"),l(c,"filterAndSortList"),l(d,"filterNonEmpty"),l(f,"normalizeText"),l(p,"getProximity"),l(h,"lexicalDistance"),r.C.registerHelper("hint","graphql-variables",((e,t)=>{const n=e.getCursor(),o=e.getTokenAt(n),i=m(n,o,t);return null!=i&&i.list&&i.list.length>0&&(i.from=r.C.Pos(i.from.line,i.from.ch),i.to=r.C.Pos(i.to.line,i.to.ch),r.C.signal(e,"hasCompletion",e,i,o)),i})),l(m,"getVariablesHint"),l(g,"getTypeInfo")},7770:(e,t,n)=>{"use strict";n.r(t);var r=n(6312),o=(n(6424),Object.defineProperty),i=(e,t)=>o(e,"name",{value:t,configurable:!0});function a(e){return{options:e instanceof Function?{render:e}:!0===e?{}:e}}function s(e){const{options:t}=e.state.info;return(null==t?void 0:t.hoverTime)||500}function l(e,t){const n=e.state.info,o=t.target||t.srcElement;if(!(o instanceof HTMLElement)||"SPAN"!==o.nodeName||void 0!==n.hoverTimeout)return;const a=o.getBoundingClientRect(),l=i((function(){clearTimeout(n.hoverTimeout),n.hoverTimeout=setTimeout(d,f)}),"onMouseMove"),c=i((function(){r.C.off(document,"mousemove",l),r.C.off(e.getWrapperElement(),"mouseout",c),clearTimeout(n.hoverTimeout),n.hoverTimeout=void 0}),"onMouseOut"),d=i((function(){r.C.off(document,"mousemove",l),r.C.off(e.getWrapperElement(),"mouseout",c),n.hoverTimeout=void 0,u(e,a)}),"onHover"),f=s(e);n.hoverTimeout=setTimeout(d,f),r.C.on(document,"mousemove",l),r.C.on(e.getWrapperElement(),"mouseout",c)}function u(e,t){const n=e.coordsChar({left:(t.left+t.right)/2,top:(t.top+t.bottom)/2},"window"),r=e.state.info,{options:o}=r,i=o.render||e.getHelper(n,"info");if(i){const r=e.getTokenAt(n,!0);if(r){const a=i(r,o,e,n);a&&c(e,t,a)}}}function c(e,t,n){const o=document.createElement("div");o.className="CodeMirror-info",o.append(n),document.body.append(o);const a=o.getBoundingClientRect(),s=window.getComputedStyle(o),l=a.right-a.left+parseFloat(s.marginLeft)+parseFloat(s.marginRight),u=a.bottom-a.top+parseFloat(s.marginTop)+parseFloat(s.marginBottom);let c=t.bottom;u>window.innerHeight-t.bottom-15&&t.top>window.innerHeight-t.bottom&&(c=t.top-u),c<0&&(c=t.bottom);let d,f=Math.max(0,window.innerWidth-l-15);f>t.left&&(f=t.left),o.style.opacity="1",o.style.top=c+"px",o.style.left=f+"px";const p=i((function(){clearTimeout(d)}),"onMouseOverPopup"),h=i((function(){clearTimeout(d),d=setTimeout(m,200)}),"onMouseOut"),m=i((function(){r.C.off(o,"mouseover",p),r.C.off(o,"mouseout",h),r.C.off(e.getWrapperElement(),"mouseout",h),o.style.opacity?(o.style.opacity="0",setTimeout((()=>{o.parentNode&&o.remove()}),600)):o.parentNode&&o.remove()}),"hidePopup");r.C.on(o,"mouseover",p),r.C.on(o,"mouseout",h),r.C.on(e.getWrapperElement(),"mouseout",h)}r.C.defineOption("info",!1,((e,t,n)=>{if(n&&n!==r.C.Init){const t=e.state.info.onMouseOver;r.C.off(e.getWrapperElement(),"mouseover",t),clearTimeout(e.state.info.hoverTimeout),delete e.state.info}if(t){const n=e.state.info=a(t);n.onMouseOver=l.bind(null,e),r.C.on(e.getWrapperElement(),"mouseover",n.onMouseOver)}})),i(a,"createState"),i(s,"getHoverTime"),i(l,"onMouseOver"),i(u,"onMouseHover"),i(c,"showPopup")},3629:(e,t,n)=>{"use strict";n.r(t);var r=n(9963),o=n(6312),i=n(981),a=(n(7770),n(6424),n(3690),Object.defineProperty),s=(e,t)=>a(e,"name",{value:t,configurable:!0});function l(e,t,n){u(e,t,n),p(e,t,n,t.type)}function u(e,t,n){var r;v(e,(null===(r=t.fieldDef)||void 0===r?void 0:r.name)||"","field-name",n,(0,i.a)(t))}function c(e,t,n){var r;v(e,"@"+((null===(r=t.directiveDef)||void 0===r?void 0:r.name)||""),"directive-name",n,(0,i.b)(t))}function d(e,t,n){var r;v(e,(null===(r=t.argDef)||void 0===r?void 0:r.name)||"","arg-name",n,(0,i.c)(t)),p(e,t,n,t.inputType)}function f(e,t,n){var r;const o=(null===(r=t.enumValue)||void 0===r?void 0:r.name)||"";h(e,t,n,t.inputType),v(e,"."),v(e,o,"enum-value",n,(0,i.d)(t))}function p(e,t,n,o){const a=document.createElement("span");a.className="type-name-pill",o instanceof r.bM?(h(a,t,n,o.ofType),v(a,"!")):o instanceof r.p2?(v(a,"["),h(a,t,n,o.ofType),v(a,"]")):v(a,(null==o?void 0:o.name)||"","type-name",n,(0,i.e)(t,o)),e.append(a)}function h(e,t,n,o){o instanceof r.bM?(h(e,t,n,o.ofType),v(e,"!")):o instanceof r.p2?(v(e,"["),h(e,t,n,o.ofType),v(e,"]")):v(e,(null==o?void 0:o.name)||"","type-name",n,(0,i.e)(t,o))}function m(e,t,n){const{description:r}=n;if(r){const n=document.createElement("div");n.className="info-description",t.renderDescription?n.innerHTML=t.renderDescription(r):n.append(document.createTextNode(r)),e.append(n)}g(e,t,n)}function g(e,t,n){const r=n.deprecationReason;if(r){const n=document.createElement("div");n.className="info-deprecation",e.append(n);const o=document.createElement("span");o.className="info-deprecation-label",o.append(document.createTextNode("Deprecated")),n.append(o);const i=document.createElement("div");i.className="info-deprecation-reason",t.renderDescription?i.innerHTML=t.renderDescription(r):i.append(document.createTextNode(r)),n.append(i)}}function v(e,t,n="",r={onClick:null},o=null){if(n){const{onClick:i}=r;let a;i?(a=document.createElement("a"),a.href="javascript:void 0",a.addEventListener("click",(e=>{i(o,e)}))):a=document.createElement("span"),a.className=n,a.append(document.createTextNode(t)),e.append(a)}else e.append(document.createTextNode(t))}o.C.registerHelper("info","graphql",((e,t)=>{if(!t.schema||!e.state)return;const{kind:n,step:r}=e.state,o=(0,i.g)(t.schema,e.state);if("Field"===n&&0===r&&o.fieldDef||"AliasedField"===n&&2===r&&o.fieldDef){const e=document.createElement("div");e.className="CodeMirror-info-header",l(e,o,t);const n=document.createElement("div");return n.append(e),m(n,t,o.fieldDef),n}if("Directive"===n&&1===r&&o.directiveDef){const e=document.createElement("div");e.className="CodeMirror-info-header",c(e,o,t);const n=document.createElement("div");return n.append(e),m(n,t,o.directiveDef),n}if("Argument"===n&&0===r&&o.argDef){const e=document.createElement("div");e.className="CodeMirror-info-header",d(e,o,t);const n=document.createElement("div");return n.append(e),m(n,t,o.argDef),n}if("EnumValue"===n&&o.enumValue&&o.enumValue.description){const e=document.createElement("div");e.className="CodeMirror-info-header",f(e,o,t);const n=document.createElement("div");return n.append(e),m(n,t,o.enumValue),n}if("NamedType"===n&&o.type&&o.type.description){const e=document.createElement("div");e.className="CodeMirror-info-header",h(e,o,t,o.type);const n=document.createElement("div");return n.append(e),m(n,t,o.type),n}})),s(l,"renderField"),s(u,"renderQualifiedField"),s(c,"renderDirective"),s(d,"renderArg"),s(f,"renderEnumValue"),s(p,"renderTypeAnnotation"),s(h,"renderType"),s(m,"renderDescription"),s(g,"renderDeprecation"),s(v,"text")},9620:(e,t,n)=>{"use strict";n.r(t),n.d(t,{j:()=>u});var r,o=n(6424),i=Object.defineProperty,a=(e,t)=>i(e,"name",{value:t,configurable:!0});function s(e,t){for(var n=0;nr[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}a(s,"_mergeNamespaces"),(r=(0,o.r)()).defineMode("javascript",(function(e,t){var n,o,i=e.indentUnit,s=t.statementIndent,l=t.jsonld,u=t.json||l,c=!1!==t.trackScope,d=t.typescript,f=t.wordCharacters||/[\\w$\\xa1-\\uffff]/,p=function(){function e(e){return{type:e,style:"keyword"}}a(e,"kw");var t=e("keyword a"),n=e("keyword b"),r=e("keyword c"),o=e("keyword d"),i=e("operator"),s={type:"atom",style:"atom"};return{if:e("if"),while:t,with:t,else:n,do:n,try:n,finally:n,return:o,break:o,continue:o,new:e("new"),delete:r,void:r,throw:r,debugger:e("debugger"),var:e("var"),const:e("var"),let:e("var"),function:e("function"),catch:e("catch"),for:e("for"),switch:e("switch"),case:e("case"),default:e("default"),in:i,typeof:i,instanceof:i,true:s,false:s,null:s,undefined:s,NaN:s,Infinity:s,this:e("this"),class:e("class"),super:e("atom"),yield:r,export:e("export"),import:e("import"),extends:r,await:r}}(),h=/[+\\-*&%=<>!?|~^@]/,m=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function g(e){for(var t,n=!1,r=!1;null!=(t=e.next());){if(!n){if("/"==t&&!r)return;"["==t?r=!0:r&&"]"==t&&(r=!1)}n=!n&&"\\\\"==t}}function v(e,t,r){return n=e,o=r,t}function y(e,t){var n=e.next();if(\'"\'==n||"\'"==n)return t.tokenize=b(n),t.tokenize(e,t);if("."==n&&e.match(/^\\d[\\d_]*(?:[eE][+\\-]?[\\d_]+)?/))return v("number","number");if("."==n&&e.match(".."))return v("spread","meta");if(/[\\[\\]{}\\(\\),;\\:\\.]/.test(n))return v(n);if("="==n&&e.eat(">"))return v("=>","operator");if("0"==n&&e.match(/^(?:x[\\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return v("number","number");if(/\\d/.test(n))return e.match(/^[\\d_]*(?:n|(?:\\.[\\d_]*)?(?:[eE][+\\-]?[\\d_]+)?)?/),v("number","number");if("/"==n)return e.eat("*")?(t.tokenize=A,A(e,t)):e.eat("/")?(e.skipToEnd(),v("comment","comment")):it(e,t,1)?(g(e),e.match(/^\\b(([gimyus])(?![gimyus]*\\2))+\\b/),v("regexp","string-2")):(e.eat("="),v("operator","operator",e.current()));if("`"==n)return t.tokenize=w,w(e,t);if("#"==n&&"!"==e.peek())return e.skipToEnd(),v("meta","meta");if("#"==n&&e.eatWhile(f))return v("variable","property");if("<"==n&&e.match("!--")||"-"==n&&e.match("->")&&!/\\S/.test(e.string.slice(0,e.start)))return e.skipToEnd(),v("comment","comment");if(h.test(n))return(">"!=n||!t.lexical||">"!=t.lexical.type)&&(e.eat("=")?("!"==n||"="==n)&&e.eat("="):/[<>*+\\-|&?]/.test(n)&&(e.eat(n),">"==n&&e.eat(n))),"?"==n&&e.eat(".")?v("."):v("operator","operator",e.current());if(f.test(n)){e.eatWhile(f);var r=e.current();if("."!=t.lastType){if(p.propertyIsEnumerable(r)){var o=p[r];return v(o.type,o.style,r)}if("async"==r&&e.match(/^(\\s|\\/\\*([^*]|\\*(?!\\/))*?\\*\\/)*[\\[\\(\\w]/,!1))return v("async","keyword",r)}return v("variable","variable",r)}}function b(e){return function(t,n){var r,o=!1;if(l&&"@"==t.peek()&&t.match(m))return n.tokenize=y,v("jsonld-keyword","meta");for(;null!=(r=t.next())&&(r!=e||o);)o=!o&&"\\\\"==r;return o||(n.tokenize=y),v("string","string")}}function A(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=y;break}r="*"==n}return v("comment","comment")}function w(e,t){for(var n,r=!1;null!=(n=e.next());){if(!r&&("`"==n||"$"==n&&e.eat("{"))){t.tokenize=y;break}r=!r&&"\\\\"==n}return v("quasi","string-2",e.current())}a(g,"readRegexp"),a(v,"ret"),a(y,"tokenBase"),a(b,"tokenString"),a(A,"tokenComment"),a(w,"tokenQuasi");var x="([{}])";function E(e,t){t.fatArrowAt&&(t.fatArrowAt=null);var n=e.string.indexOf("=>",e.start);if(!(n<0)){if(d){var r=/:\\s*(?:\\w+(?:<[^>]*>|\\[\\])?|\\{[^}]*\\})\\s*$/.exec(e.string.slice(e.start,n));r&&(n=r.index)}for(var o=0,i=!1,a=n-1;a>=0;--a){var s=e.string.charAt(a),l=x.indexOf(s);if(l>=0&&l<3){if(!o){++a;break}if(0==--o){"("==s&&(i=!0);break}}else if(l>=3&&l<6)++o;else if(f.test(s))i=!0;else if(/["\'\\/`]/.test(s))for(;;--a){if(0==a)return;if(e.string.charAt(a-1)==s&&"\\\\"!=e.string.charAt(a-2)){a--;break}}else if(i&&!o){++a;break}}i&&!o&&(t.fatArrowAt=a)}}a(E,"findFatArrow");var C={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function k(e,t,n,r,o,i){this.indented=e,this.column=t,this.type=n,this.prev=o,this.info=i,null!=r&&(this.align=r)}function T(e,t){if(!c)return!1;for(var n=e.localVars;n;n=n.next)if(n.name==t)return!0;for(var r=e.context;r;r=r.prev)for(n=r.vars;n;n=n.next)if(n.name==t)return!0}function S(e,t,n,r,o){var i=e.cc;for(N.state=e,N.stream=o,N.marked=null,N.cc=i,N.style=t,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);;)if((i.length?i.pop():u?Y:W)(n,r)){for(;i.length&&i[i.length-1].lex;)i.pop()();return N.marked?N.marked:"variable"==n&&T(e,r)?"variable-2":t}}a(k,"JSLexical"),a(T,"inScope"),a(S,"parseJS");var N={state:null,column:null,marked:null,cc:null};function O(){for(var e=arguments.length-1;e>=0;e--)N.cc.push(arguments[e])}function L(){return O.apply(null,arguments),!0}function D(e,t){for(var n=t;n;n=n.next)if(n.name==e)return!0;return!1}function M(e){var n=N.state;if(N.marked="def",c){if(n.context)if("var"==n.lexical.info&&n.context&&n.context.block){var r=I(e,n.context);if(null!=r)return void(n.context=r)}else if(!D(e,n.localVars))return void(n.localVars=new P(e,n.localVars));t.globalVars&&!D(e,n.globalVars)&&(n.globalVars=new P(e,n.globalVars))}}function I(e,t){if(t){if(t.block){var n=I(e,t.prev);return n?n==t.prev?t:new F(n,t.vars,!0):null}return D(e,t.vars)?t:new F(t.prev,new P(e,t.vars),!1)}return null}function R(e){return"public"==e||"private"==e||"protected"==e||"abstract"==e||"readonly"==e}function F(e,t,n){this.prev=e,this.vars=t,this.block=n}function P(e,t){this.name=e,this.next=t}a(O,"pass"),a(L,"cont"),a(D,"inList"),a(M,"register"),a(I,"registerVarScoped"),a(R,"isModifier"),a(F,"Context"),a(P,"Var");var j=new P("this",new P("arguments",null));function V(){N.state.context=new F(N.state.context,N.state.localVars,!1),N.state.localVars=j}function B(){N.state.context=new F(N.state.context,N.state.localVars,!0),N.state.localVars=null}function q(){N.state.localVars=N.state.context.vars,N.state.context=N.state.context.prev}function U(e,t){var n=a((function(){var n=N.state,r=n.indented;if("stat"==n.lexical.type)r=n.lexical.indented;else for(var o=n.lexical;o&&")"==o.type&&o.align;o=o.prev)r=o.indented;n.lexical=new k(r,N.stream.column(),e,null,n.lexical,t)}),"result");return n.lex=!0,n}function z(){var e=N.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function H(e){function t(n){return n==e?L():";"==e||"}"==n||")"==n||"]"==n?O():L(t)}return a(t,"exp"),t}function W(e,t){return"var"==e?L(U("vardef",t),Oe,H(";"),z):"keyword a"==e?L(U("form"),K,W,z):"keyword b"==e?L(U("form"),W,z):"keyword d"==e?N.stream.match(/^\\s*$/,!1)?L():L(U("stat"),Z,H(";"),z):"debugger"==e?L(H(";")):"{"==e?L(U("}"),B,pe,z,q):";"==e?L():"if"==e?("else"==N.state.lexical.info&&N.state.cc[N.state.cc.length-1]==z&&N.state.cc.pop()(),L(U("form"),K,W,z,Fe)):"function"==e?L(Be):"for"==e?L(U("form"),B,Pe,W,q,z):"class"==e||d&&"interface"==t?(N.marked="keyword",L(U("form","class"==e?e:t),We,z)):"variable"==e?d&&"declare"==t?(N.marked="keyword",L(W)):d&&("module"==t||"enum"==t||"type"==t)&&N.stream.match(/^\\s*\\w/,!1)?(N.marked="keyword","enum"==t?L(nt):"type"==t?L(Ue,H("operator"),ye,H(";")):L(U("form"),Le,H("{"),U("}"),pe,z,z)):d&&"namespace"==t?(N.marked="keyword",L(U("form"),Y,W,z)):d&&"abstract"==t?(N.marked="keyword",L(W)):L(U("stat"),ae):"switch"==e?L(U("form"),K,H("{"),U("}","switch"),B,pe,z,z,q):"case"==e?L(Y,H(":")):"default"==e?L(H(":")):"catch"==e?L(U("form"),V,G,W,z,q):"export"==e?L(U("stat"),Ke,z):"import"==e?L(U("stat"),Ze,z):"async"==e?L(W):"@"==t?L(Y,W):O(U("stat"),Y,H(";"),z)}function G(e){if("("==e)return L(ze,H(")"))}function Y(e,t){return X(e,t,!1)}function Q(e,t){return X(e,t,!0)}function K(e){return"("!=e?O():L(U(")"),Z,H(")"),z)}function X(e,t,n){if(N.state.fatArrowAt==N.stream.start){var r=n?ne:te;if("("==e)return L(V,U(")"),de(ze,")"),z,H("=>"),r,q);if("variable"==e)return O(V,Le,H("=>"),r,q)}var o=n?_:J;return C.hasOwnProperty(e)?L(o):"function"==e?L(Be,o):"class"==e||d&&"interface"==t?(N.marked="keyword",L(U("form"),He,z)):"keyword c"==e||"async"==e?L(n?Q:Y):"("==e?L(U(")"),Z,H(")"),z,o):"operator"==e||"spread"==e?L(n?Q:Y):"["==e?L(U("]"),tt,z,o):"{"==e?fe(le,"}",null,o):"quasi"==e?O($,o):"new"==e?L(re(n)):L()}function Z(e){return e.match(/[;\\}\\)\\],]/)?O():O(Y)}function J(e,t){return","==e?L(Z):_(e,t,!1)}function _(e,t,n){var r=0==n?J:_,o=0==n?Y:Q;if("=>"==e)return L(V,n?ne:te,q);if("operator"==e)return/\\+\\+|--/.test(t)||d&&"!"==t?L(r):d&&"<"==t&&N.stream.match(/^([^<>]|<[^<>]*>)*>\\s*\\(/,!1)?L(U(">"),de(ye,">"),z,r):"?"==t?L(Y,H(":"),o):L(o);if("quasi"==e)return O($,r);if(";"!=e){if("("==e)return fe(Q,")","call",r);if("."==e)return L(se,r);if("["==e)return L(U("]"),Z,H("]"),z,r);if(d&&"as"==t)return N.marked="keyword",L(ye,r);if("regexp"==e)return N.state.lastType=N.marked="operator",N.stream.backUp(N.stream.pos-N.stream.start-1),L(o)}}function $(e,t){return"quasi"!=e?O():"${"!=t.slice(t.length-2)?L($):L(Z,ee)}function ee(e){if("}"==e)return N.marked="string-2",N.state.tokenize=w,L($)}function te(e){return E(N.stream,N.state),O("{"==e?W:Y)}function ne(e){return E(N.stream,N.state),O("{"==e?W:Q)}function re(e){return function(t){return"."==t?L(e?ie:oe):"variable"==t&&d?L(Te,e?_:J):O(e?Q:Y)}}function oe(e,t){if("target"==t)return N.marked="keyword",L(J)}function ie(e,t){if("target"==t)return N.marked="keyword",L(_)}function ae(e){return":"==e?L(z,W):O(J,H(";"),z)}function se(e){if("variable"==e)return N.marked="property",L()}function le(e,t){return"async"==e?(N.marked="property",L(le)):"variable"==e||"keyword"==N.style?(N.marked="property","get"==t||"set"==t?L(ue):(d&&N.state.fatArrowAt==N.stream.start&&(n=N.stream.match(/^\\s*:\\s*/,!1))&&(N.state.fatArrowAt=N.stream.pos+n[0].length),L(ce))):"number"==e||"string"==e?(N.marked=l?"property":N.style+" property",L(ce)):"jsonld-keyword"==e?L(ce):d&&R(t)?(N.marked="keyword",L(le)):"["==e?L(Y,he,H("]"),ce):"spread"==e?L(Q,ce):"*"==t?(N.marked="keyword",L(le)):":"==e?O(ce):void 0;var n}function ue(e){return"variable"!=e?O(ce):(N.marked="property",L(Be))}function ce(e){return":"==e?L(Q):"("==e?O(Be):void 0}function de(e,t,n){function r(o,i){if(n?n.indexOf(o)>-1:","==o){var a=N.state.lexical;return"call"==a.info&&(a.pos=(a.pos||0)+1),L((function(n,r){return n==t||r==t?O():O(e)}),r)}return o==t||i==t?L():n&&n.indexOf(";")>-1?O(e):L(H(t))}return a(r,"proceed"),function(n,o){return n==t||o==t?L():O(e,r)}}function fe(e,t,n){for(var r=3;r"),ye):"quasi"==e?O(xe,ke):void 0}function be(e){if("=>"==e)return L(ye)}function Ae(e){return e.match(/[\\}\\)\\]]/)?L():","==e||";"==e?L(Ae):O(we,Ae)}function we(e,t){return"variable"==e||"keyword"==N.style?(N.marked="property",L(we)):"?"==t||"number"==e||"string"==e?L(we):":"==e?L(ye):"["==e?L(H("variable"),me,H("]"),we):"("==e?O(qe,we):e.match(/[;\\}\\)\\],]/)?void 0:L()}function xe(e,t){return"quasi"!=e?O():"${"!=t.slice(t.length-2)?L(xe):L(ye,Ee)}function Ee(e){if("}"==e)return N.marked="string-2",N.state.tokenize=w,L(xe)}function Ce(e,t){return"variable"==e&&N.stream.match(/^\\s*[?:]/,!1)||"?"==t?L(Ce):":"==e?L(ye):"spread"==e?L(Ce):O(ye)}function ke(e,t){return"<"==t?L(U(">"),de(ye,">"),z,ke):"|"==t||"."==e||"&"==t?L(ye):"["==e?L(ye,H("]"),ke):"extends"==t||"implements"==t?(N.marked="keyword",L(ye)):"?"==t?L(ye,H(":"),ye):void 0}function Te(e,t){if("<"==t)return L(U(">"),de(ye,">"),z,ke)}function Se(){return O(ye,Ne)}function Ne(e,t){if("="==t)return L(ye)}function Oe(e,t){return"enum"==t?(N.marked="keyword",L(nt)):O(Le,he,Ie,Re)}function Le(e,t){return d&&R(t)?(N.marked="keyword",L(Le)):"variable"==e?(M(t),L()):"spread"==e?L(Le):"["==e?fe(Me,"]"):"{"==e?fe(De,"}"):void 0}function De(e,t){return"variable"!=e||N.stream.match(/^\\s*:/,!1)?("variable"==e&&(N.marked="property"),"spread"==e?L(Le):"}"==e?O():"["==e?L(Y,H("]"),H(":"),De):L(H(":"),Le,Ie)):(M(t),L(Ie))}function Me(){return O(Le,Ie)}function Ie(e,t){if("="==t)return L(Q)}function Re(e){if(","==e)return L(Oe)}function Fe(e,t){if("keyword b"==e&&"else"==t)return L(U("form","else"),W,z)}function Pe(e,t){return"await"==t?L(Pe):"("==e?L(U(")"),je,z):void 0}function je(e){return"var"==e?L(Oe,Ve):"variable"==e?L(Ve):O(Ve)}function Ve(e,t){return")"==e?L():";"==e?L(Ve):"in"==t||"of"==t?(N.marked="keyword",L(Y,Ve)):O(Y,Ve)}function Be(e,t){return"*"==t?(N.marked="keyword",L(Be)):"variable"==e?(M(t),L(Be)):"("==e?L(V,U(")"),de(ze,")"),z,ge,W,q):d&&"<"==t?L(U(">"),de(Se,">"),z,Be):void 0}function qe(e,t){return"*"==t?(N.marked="keyword",L(qe)):"variable"==e?(M(t),L(qe)):"("==e?L(V,U(")"),de(ze,")"),z,ge,q):d&&"<"==t?L(U(">"),de(Se,">"),z,qe):void 0}function Ue(e,t){return"keyword"==e||"variable"==e?(N.marked="type",L(Ue)):"<"==t?L(U(">"),de(Se,">"),z):void 0}function ze(e,t){return"@"==t&&L(Y,ze),"spread"==e?L(ze):d&&R(t)?(N.marked="keyword",L(ze)):d&&"this"==e?L(he,Ie):O(Le,he,Ie)}function He(e,t){return"variable"==e?We(e,t):Ge(e,t)}function We(e,t){if("variable"==e)return M(t),L(Ge)}function Ge(e,t){return"<"==t?L(U(">"),de(Se,">"),z,Ge):"extends"==t||"implements"==t||d&&","==e?("implements"==t&&(N.marked="keyword"),L(d?ye:Y,Ge)):"{"==e?L(U("}"),Ye,z):void 0}function Ye(e,t){return"async"==e||"variable"==e&&("static"==t||"get"==t||"set"==t||d&&R(t))&&N.stream.match(/^\\s+[\\w$\\xa1-\\uffff]/,!1)?(N.marked="keyword",L(Ye)):"variable"==e||"keyword"==N.style?(N.marked="property",L(Qe,Ye)):"number"==e||"string"==e?L(Qe,Ye):"["==e?L(Y,he,H("]"),Qe,Ye):"*"==t?(N.marked="keyword",L(Ye)):d&&"("==e?O(qe,Ye):";"==e||","==e?L(Ye):"}"==e?L():"@"==t?L(Y,Ye):void 0}function Qe(e,t){if("!"==t||"?"==t)return L(Qe);if(":"==e)return L(ye,Ie);if("="==t)return L(Q);var n=N.state.lexical.prev;return O(n&&"interface"==n.info?qe:Be)}function Ke(e,t){return"*"==t?(N.marked="keyword",L(et,H(";"))):"default"==t?(N.marked="keyword",L(Y,H(";"))):"{"==e?L(de(Xe,"}"),et,H(";")):O(W)}function Xe(e,t){return"as"==t?(N.marked="keyword",L(H("variable"))):"variable"==e?O(Q,Xe):void 0}function Ze(e){return"string"==e?L():"("==e?O(Y):"."==e?O(J):O(Je,_e,et)}function Je(e,t){return"{"==e?fe(Je,"}"):("variable"==e&&M(t),"*"==t&&(N.marked="keyword"),L($e))}function _e(e){if(","==e)return L(Je,_e)}function $e(e,t){if("as"==t)return N.marked="keyword",L(Je)}function et(e,t){if("from"==t)return N.marked="keyword",L(Y)}function tt(e){return"]"==e?L():O(de(Q,"]"))}function nt(){return O(U("form"),Le,H("{"),U("}"),de(rt,"}"),z,z)}function rt(){return O(Le,Ie)}function ot(e,t){return"operator"==e.lastType||","==e.lastType||h.test(t.charAt(0))||/[,.]/.test(t.charAt(0))}function it(e,t,n){return t.tokenize==y&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\\[{}\\(,;:]|=>)$/.test(t.lastType)||"quasi"==t.lastType&&/\\{\\s*$/.test(e.string.slice(0,e.pos-(n||0)))}return a(V,"pushcontext"),a(B,"pushblockcontext"),V.lex=B.lex=!0,a(q,"popcontext"),q.lex=!0,a(U,"pushlex"),a(z,"poplex"),z.lex=!0,a(H,"expect"),a(W,"statement"),a(G,"maybeCatchBinding"),a(Y,"expression"),a(Q,"expressionNoComma"),a(K,"parenExpr"),a(X,"expressionInner"),a(Z,"maybeexpression"),a(J,"maybeoperatorComma"),a(_,"maybeoperatorNoComma"),a($,"quasi"),a(ee,"continueQuasi"),a(te,"arrowBody"),a(ne,"arrowBodyNoComma"),a(re,"maybeTarget"),a(oe,"target"),a(ie,"targetNoComma"),a(ae,"maybelabel"),a(se,"property"),a(le,"objprop"),a(ue,"getterSetter"),a(ce,"afterprop"),a(de,"commasep"),a(fe,"contCommasep"),a(pe,"block"),a(he,"maybetype"),a(me,"maybetypeOrIn"),a(ge,"mayberettype"),a(ve,"isKW"),a(ye,"typeexpr"),a(be,"maybeReturnType"),a(Ae,"typeprops"),a(we,"typeprop"),a(xe,"quasiType"),a(Ee,"continueQuasiType"),a(Ce,"typearg"),a(ke,"afterType"),a(Te,"maybeTypeArgs"),a(Se,"typeparam"),a(Ne,"maybeTypeDefault"),a(Oe,"vardef"),a(Le,"pattern"),a(De,"proppattern"),a(Me,"eltpattern"),a(Ie,"maybeAssign"),a(Re,"vardefCont"),a(Fe,"maybeelse"),a(Pe,"forspec"),a(je,"forspec1"),a(Ve,"forspec2"),a(Be,"functiondef"),a(qe,"functiondecl"),a(Ue,"typename"),a(ze,"funarg"),a(He,"classExpression"),a(We,"className"),a(Ge,"classNameAfter"),a(Ye,"classBody"),a(Qe,"classfield"),a(Ke,"afterExport"),a(Xe,"exportField"),a(Ze,"afterImport"),a(Je,"importSpec"),a(_e,"maybeMoreImports"),a($e,"maybeAs"),a(et,"maybeFrom"),a(tt,"arrayLiteral"),a(nt,"enumdef"),a(rt,"enummember"),a(ot,"isContinuedStatement"),a(it,"expressionAllowed"),{startState:function(e){var n={tokenize:y,lastType:"sof",cc:[],lexical:new k((e||0)-i,0,"block",!1),localVars:t.localVars,context:t.localVars&&new F(null,null,!1),indented:e||0};return t.globalVars&&"object"==typeof t.globalVars&&(n.globalVars=t.globalVars),n},token:function(e,t){if(e.sol()&&(t.lexical.hasOwnProperty("align")||(t.lexical.align=!1),t.indented=e.indentation(),E(e,t)),t.tokenize!=A&&e.eatSpace())return null;var r=t.tokenize(e,t);return"comment"==n?r:(t.lastType="operator"!=n||"++"!=o&&"--"!=o?n:"incdec",S(t,r,n,o,e))},indent:function(e,n){if(e.tokenize==A||e.tokenize==w)return r.Pass;if(e.tokenize!=y)return 0;var o,a=n&&n.charAt(0),l=e.lexical;if(!/^\\s*else\\b/.test(n))for(var u=e.cc.length-1;u>=0;--u){var c=e.cc[u];if(c==z)l=l.prev;else if(c!=Fe&&c!=q)break}for(;("stat"==l.type||"form"==l.type)&&("}"==a||(o=e.cc[e.cc.length-1])&&(o==J||o==_)&&!/^[,\\.=+\\-*:?[\\(]/.test(n));)l=l.prev;s&&")"==l.type&&"stat"==l.prev.type&&(l=l.prev);var d=l.type,f=a==d;return"vardef"==d?l.indented+("operator"==e.lastType||","==e.lastType?l.info.length+1:0):"form"==d&&"{"==a?l.indented:"form"==d?l.indented+i:"stat"==d?l.indented+(ot(e,n)?s||i:0):"switch"!=l.info||f||0==t.doubleIndentSwitch?l.align?l.column+(f?0:1):l.indented+(f?0:i):l.indented+(/^(?:case|default)\\b/.test(n)?i:2*i)},electricInput:/^\\s*(?:case .*?:|default:|\\{|\\})$/,blockCommentStart:u?null:"/*",blockCommentEnd:u?null:"*/",blockCommentContinue:u?null:" * ",lineComment:u?null:"//",fold:"brace",closeBrackets:"()[]{}\'\'\\"\\"``",helperType:u?"json":"javascript",jsonldMode:l,jsonMode:u,expressionAllowed:it,skipExpression:function(e){S(e,"atom","atom","true",new r.StringStream("",2,null))}}})),r.registerHelper("wordChars","javascript",/[\\w$]/),r.defineMIME("text/javascript","javascript"),r.defineMIME("text/ecmascript","javascript"),r.defineMIME("application/javascript","javascript"),r.defineMIME("application/x-javascript","javascript"),r.defineMIME("application/ecmascript","javascript"),r.defineMIME("application/json",{name:"javascript",json:!0}),r.defineMIME("application/x-json",{name:"javascript",json:!0}),r.defineMIME("application/manifest+json",{name:"javascript",json:!0}),r.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),r.defineMIME("text/typescript",{name:"javascript",typescript:!0}),r.defineMIME("application/typescript",{name:"javascript",typescript:!0});var l={};const u=s({__proto__:null,default:(0,o.g)(l)},[l])},4008:(e,t,n)=>{"use strict";n.r(t),n.d(t,{j:()=>u});var r=n(6424),o=n(5043),i=Object.defineProperty,a=(e,t)=>i(e,"name",{value:t,configurable:!0});function s(e,t){for(var n=0;nr[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}a(s,"_mergeNamespaces"),function(e){function t(e,t,n,r,o){e.openDialog?e.openDialog(t,o,{value:r,selectValueOnOpen:!0,bottom:e.options.search.bottom}):o(prompt(n,r))}function n(e){return e.phrase("Jump to line:")+\' \'+e.phrase("(Use line:column or scroll% syntax)")+""}function r(e,t){var n=Number(t);return/^[-+]/.test(t)?e.getCursor().line+n:n-1}e.defineOption("search",{bottom:!1}),a(t,"dialog"),a(n,"getJumpDialog"),a(r,"interpretLine"),e.commands.jumpToLine=function(e){var o=e.getCursor();t(e,n(e),e.phrase("Jump to line:"),o.line+1+":"+o.ch,(function(t){var n;if(t)if(n=/^\\s*([\\+\\-]?\\d+)\\s*\\:\\s*(\\d+)\\s*$/.exec(t))e.setCursor(r(e,n[1]),Number(n[2]));else if(n=/^\\s*([\\+\\-]?\\d+(\\.\\d+)?)\\%\\s*/.exec(t)){var i=Math.round(e.lineCount()*Number(n[1])/100);/^[-+]/.test(n[1])&&(i=o.line+i+1),e.setCursor(i-1,o.ch)}else(n=/^\\s*\\:?\\s*([\\+\\-]?\\d+)\\s*/.exec(t))&&e.setCursor(r(e,n[1]),o.ch)}))},e.keyMap.default["Alt-G"]="jumpToLine"}((0,r.r)(),o.a);var l={};const u=s({__proto__:null,default:(0,r.g)(l)},[l])},498:(e,t,n)=>{"use strict";n.r(t);var r=n(6312),o=n(981),i=(n(6424),n(3690),Object.defineProperty),a=(e,t)=>i(e,"name",{value:t,configurable:!0});function s(e,t){const n=t.target||t.srcElement;if(!(n instanceof HTMLElement)||"SPAN"!==(null==n?void 0:n.nodeName))return;const r=n.getBoundingClientRect(),o={left:(r.left+r.right)/2,top:(r.top+r.bottom)/2};e.state.jump.cursor=o,e.state.jump.isHoldingModifier&&f(e)}function l(e){e.state.jump.isHoldingModifier||!e.state.jump.cursor?e.state.jump.isHoldingModifier&&e.state.jump.marker&&p(e):e.state.jump.cursor=null}function u(e,t){if(e.state.jump.isHoldingModifier||!d(t.key))return;e.state.jump.isHoldingModifier=!0,e.state.jump.cursor&&f(e);const n=a((a=>{a.code===t.code&&(e.state.jump.isHoldingModifier=!1,e.state.jump.marker&&p(e),r.C.off(document,"keyup",n),r.C.off(document,"click",o),e.off("mousedown",i))}),"onKeyUp"),o=a((t=>{const{destination:n,options:r}=e.state.jump;n&&r.onClick(n,t)}),"onClick"),i=a(((t,n)=>{e.state.jump.destination&&(n.codemirrorIgnore=!0)}),"onMouseDown");r.C.on(document,"keyup",n),r.C.on(document,"click",o),e.on("mousedown",i)}r.C.defineOption("jump",!1,((e,t,n)=>{if(n&&n!==r.C.Init){const t=e.state.jump.onMouseOver;r.C.off(e.getWrapperElement(),"mouseover",t);const n=e.state.jump.onMouseOut;r.C.off(e.getWrapperElement(),"mouseout",n),r.C.off(document,"keydown",e.state.jump.onKeyDown),delete e.state.jump}if(t){const n=e.state.jump={options:t,onMouseOver:s.bind(null,e),onMouseOut:l.bind(null,e),onKeyDown:u.bind(null,e)};r.C.on(e.getWrapperElement(),"mouseover",n.onMouseOver),r.C.on(e.getWrapperElement(),"mouseout",n.onMouseOut),r.C.on(document,"keydown",n.onKeyDown)}})),a(s,"onMouseOver"),a(l,"onMouseOut"),a(u,"onKeyDown");const c=typeof navigator<"u"&&navigator&&navigator.appVersion.includes("Mac");function d(e){return e===(c?"Meta":"Control")}function f(e){if(e.state.jump.marker)return;const{cursor:t,options:n}=e.state.jump,r=e.coordsChar(t),o=e.getTokenAt(r,!0),i=n.getDestination||e.getHelper(r,"jump");if(i){const t=i(o,n,e);if(t){const n=e.markText({line:r.line,ch:o.start},{line:r.line,ch:o.end},{className:"CodeMirror-jump-token"});e.state.jump.marker=n,e.state.jump.destination=t}}}function p(e){const{marker:t}=e.state.jump;e.state.jump.marker=null,e.state.jump.destination=null,t.clear()}a(d,"isJumpModifier"),a(f,"enableJumpMode"),a(p,"disableJumpMode"),r.C.registerHelper("jump","graphql",((e,t)=>{if(!t.schema||!t.onClick||!e.state)return;const{state:n}=e,{kind:r,step:i}=n,a=(0,o.g)(t.schema,n);return"Field"===r&&0===i&&a.fieldDef||"AliasedField"===r&&2===i&&a.fieldDef?(0,o.a)(a):"Directive"===r&&1===i&&a.directiveDef?(0,o.b)(a):"Argument"===r&&0===i&&a.argDef?(0,o.c)(a):"EnumValue"===r&&a.enumValue?(0,o.d)(a):"NamedType"===r&&a.type?(0,o.e)(a):void 0}))},4588:(e,t,n)=>{"use strict";n.r(t),n.d(t,{l:()=>l});var r=n(6424),o=Object.defineProperty,i=(e,t)=>o(e,"name",{value:t,configurable:!0});function a(e,t){for(var n=0;nr[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}i(a,"_mergeNamespaces"),function(e){var t="CodeMirror-lint-markers",n="CodeMirror-lint-line-";function r(t,n,r){var o=document.createElement("div");function a(t){if(!o.parentNode)return e.off(document,"mousemove",a);o.style.top=Math.max(0,t.clientY-o.offsetHeight-5)+"px",o.style.left=t.clientX+5+"px"}return o.className="CodeMirror-lint-tooltip cm-s-"+t.options.theme,o.appendChild(r.cloneNode(!0)),t.state.lint.options.selfContain?t.getWrapperElement().appendChild(o):document.body.appendChild(o),i(a,"position"),e.on(document,"mousemove",a),a(n),null!=o.style.opacity&&(o.style.opacity=1),o}function o(e){e.parentNode&&e.parentNode.removeChild(e)}function a(e){e.parentNode&&(null==e.style.opacity&&o(e),e.style.opacity=0,setTimeout((function(){o(e)}),600))}function s(t,n,o,s){var l=r(t,n,o);function u(){e.off(s,"mouseout",u),l&&(a(l),l=null)}i(u,"hide");var c=setInterval((function(){if(l)for(var e=s;;e=e.parentNode){if(e&&11==e.nodeType&&(e=e.host),e==document.body)return;if(!e){u();break}}if(!l)return clearInterval(c)}),400);e.on(s,"mouseout",u)}function l(e,t,n){for(var r in this.marked=[],t instanceof Function&&(t={getAnnotations:t}),(!t||!0===t)&&(t={}),this.options={},this.linterOptions=t.options||{},u)this.options[r]=u[r];for(var r in t)u.hasOwnProperty(r)?null!=t[r]&&(this.options[r]=t[r]):t.options||(this.linterOptions[r]=t[r]);this.timeout=null,this.hasGutter=n,this.onMouseOver=function(t){w(e,t)},this.waitingFor=0}i(r,"showTooltip"),i(o,"rm"),i(a,"hideTooltip"),i(s,"showTooltipFor"),i(l,"LintState");var u={highlightLines:!1,tooltips:!0,delay:500,lintOnChange:!0,getAnnotations:null,async:!1,selfContain:null,formatAnnotation:null,onUpdateLinting:null};function c(e){var n=e.state.lint;n.hasGutter&&e.clearGutter(t),n.options.highlightLines&&d(e);for(var r=0;r-1)&&u.push(e.message)}));for(var d=null,g=o.hasGutter&&document.createDocumentFragment(),v=0;v1,i.tooltips)),i.highlightLines&&e.addLineClass(s,"wrap",n+d)}}i.onUpdateLinting&&i.onUpdateLinting(r,a,e)}}function b(e){var t=e.state.lint;t&&(clearTimeout(t.timeout),t.timeout=setTimeout((function(){v(e)}),t.options.delay))}function A(e,t,n){for(var r=n.target||n.srcElement,o=document.createDocumentFragment(),i=0;i{"use strict";n.r(t);var r=n(6312),o=n(3678);n(6424);const i=["error","warning","information","hint"],a={"GraphQL: Validation":"validation","GraphQL: Deprecation":"deprecation","GraphQL: Syntax":"syntax"};r.C.registerHelper("lint","graphql",((e,t)=>{const{schema:n,validationRules:s,externalFragments:l}=t;return(0,o.ge)(e,n,s,void 0,l).map((e=>({message:e.message,severity:e.severity?i[e.severity-1]:i[0],type:e.source?a[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)})))}))},7142:(e,t,n)=>{"use strict";n.r(t);var r=n(6312),o=n(9963),i=(n(6424),Object.defineProperty),a=(e,t)=>i(e,"name",{value:t,configurable:!0});function s(e){l=e,u=e.length,c=d=f=-1,C(),k();const t=m();return A("EOF"),t}let l,u,c,d,f,p,h;function m(){const e=c,t=[];if(A("{"),!E("}")){do{t.push(g())}while(E(","));A("}")}return{kind:"Object",start:e,end:f,members:t}}function g(){const e=c,t="String"===h?b():null;A("String"),A(":");const n=y();return{kind:"Member",start:e,end:f,key:t,value:n}}function v(){const e=c,t=[];if(A("["),!E("]")){do{t.push(y())}while(E(","));A("]")}return{kind:"Array",start:e,end:f,values:t}}function y(){switch(h){case"[":return v();case"{":return m();case"String":case"Number":case"Boolean":case"Null":const e=b();return k(),e}A("Value")}function b(){return{kind:h,start:c,end:d,value:JSON.parse(l.slice(c,d))}}function A(e){if(h===e)return void k();let t;if("EOF"===h)t="[end of file]";else if(d-c>1)t="`"+l.slice(c,d)+"`";else{const e=l.slice(c).match(/^.+?\\b/);t="`"+(e?e[0]:l[c])+"`"}throw x(`Expected ${e} but found ${t}.`)}a(s,"jsonParse"),a(m,"parseObj"),a(g,"parseMember"),a(v,"parseArr"),a(y,"parseVal"),a(b,"curToken"),a(A,"expect");class w extends Error{constructor(e,t){super(e),this.position=t}}function x(e){return new w(e,{start:c,end:d})}function E(e){if(h===e)return k(),!0}function C(){return d31;)if(92===p)switch(p=C(),p){case 34:case 47:case 92:case 98:case 102:case 110:case 114:case 116:C();break;case 117:C(),S(),S(),S(),S();break;default:throw x("Bad character escape sequence.")}else{if(d===u)throw x("Unterminated string.");C()}if(34!==p)throw x("Unterminated string.");C()}function S(){if(p>=48&&p<=57||p>=65&&p<=70||p>=97&&p<=102)return C();throw x("Expected hexadecimal digit.")}function N(){45===p&&C(),48===p?C():O(),46===p&&(C(),O()),(69===p||101===p)&&(p=C(),(43===p||45===p)&&C(),O())}function O(){if(p<48||p>57)throw x("Expected decimal digit.");do{C()}while(p>=48&&p<=57)}function L(e,t,n){var r;const o=[];for(const i of n.members)if(i){const n=null===(r=i.key)||void 0===r?void 0:r.value,a=t[n];if(a)for(const[t,n]of D(a,i.value))o.push(M(e,t,n));else o.push(M(e,i.key,`Variable "$${n}" does not appear in any GraphQL query.`))}return o}function D(e,t){if(!e||!t)return[];if(e instanceof o.bM)return"Null"===t.kind?[[t,`Type "${e}" is non-nullable and cannot be null.`]]:D(e.ofType,t);if("Null"===t.kind)return[];if(e instanceof o.p2){const n=e.ofType;return"Array"===t.kind?R(t.values||[],(e=>D(n,e))):D(n,t)}if(e instanceof o.sR){if("Object"!==t.kind)return[[t,`Type "${e}" must be an Object.`]];const n=Object.create(null),r=R(t.members,(t=>{var r;const o=null===(r=null==t?void 0:t.key)||void 0===r?void 0:r.value;n[o]=!0;const i=e.getFields()[o];return i?D(i?i.type:void 0,t.value):[[t.key,`Type "${e}" does not have a field "${o}".`]]}));for(const i of Object.keys(e.getFields())){const a=e.getFields()[i];!n[i]&&a.type instanceof o.bM&&!a.defaultValue&&r.push([t,`Object of type "${e}" is missing required field "${i}".`])}return r}return"Boolean"===e.name&&"Boolean"!==t.kind||"String"===e.name&&"String"!==t.kind||"ID"===e.name&&"Number"!==t.kind&&"String"!==t.kind||"Float"===e.name&&"Number"!==t.kind||"Int"===e.name&&("Number"!==t.kind||(0|t.value)!==t.value)||(e instanceof o.mR||e instanceof o.n2)&&("String"!==t.kind&&"Number"!==t.kind&&"Boolean"!==t.kind&&"Null"!==t.kind||I(e.parseValue(t.value)))?[[t,`Expected value of type "${e}".`]]:[]}function M(e,t,n){return{message:n,severity:"error",type:"validation",from:e.posFromIndex(t.start),to:e.posFromIndex(t.end)}}function I(e){return null==e||e!=e}function R(e,t){return Array.prototype.concat.apply([],e.map(t))}a(w,"JSONSyntaxError"),a(x,"syntaxError"),a(E,"skip"),a(C,"ch"),a(k,"lex"),a(T,"readString"),a(S,"readHex"),a(N,"readNumber"),a(O,"readDigits"),r.C.registerHelper("lint","graphql-variables",((e,t,n)=>{if(!e)return[];let r;try{r=s(e)}catch(e){if(e instanceof w)return[M(n,e.position,e.message)];throw e}const{variableToType:o}=t;return o?L(n,o,r):[]})),a(L,"validateVariables"),a(D,"validateValue"),a(M,"lintError"),a(I,"isNullish"),a(R,"mapCat")},1735:(e,t,n)=>{"use strict";n.r(t),n.d(t,{m:()=>s});var r=n(6424),o=n(6542);function i(e,t){for(var n=0;nr[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(0,Object.defineProperty)(i,"name",{value:"_mergeNamespaces",configurable:!0});var a=(0,o.r)();const s=i({__proto__:null,default:(0,r.g)(a)},[a])},6542:(e,t,n)=>{"use strict";n.d(t,{r:()=>l});var r,o=n(6424),i=Object.defineProperty,a=(e,t)=>i(e,"name",{value:t,configurable:!0}),s={exports:{}};function l(){return r||(r=1,function(e){var t=/MSIE \\d/.test(navigator.userAgent)&&(null==document.documentMode||document.documentMode<8),n=e.Pos,r={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function o(e){return e&&e.bracketRegex||/[(){}[\\]]/}function i(e,t,i){var a=e.getLineHandle(t.line),l=t.ch-1,u=i&&i.afterCursor;null==u&&(u=/(^| )cm-fat-cursor($| )/.test(e.getWrapperElement().className));var c=o(i),d=!u&&l>=0&&c.test(a.text.charAt(l))&&r[a.text.charAt(l)]||c.test(a.text.charAt(l+1))&&r[a.text.charAt(++l)];if(!d)return null;var f=">"==d.charAt(1)?1:-1;if(i&&i.strict&&f>0!=(l==t.ch))return null;var p=e.getTokenTypeAt(n(t.line,l+1)),h=s(e,n(t.line,l+(f>0?1:0)),f,p,i);return null==h?null:{from:n(t.line,l),to:h&&h.pos,match:h&&h.ch==d.charAt(0),forward:f>0}}function s(e,t,i,a,s){for(var l=s&&s.maxScanLineLength||1e4,u=s&&s.maxScanLines||1e3,c=[],d=o(s),f=i>0?Math.min(t.line+u,e.lastLine()+1):Math.max(e.firstLine()-1,t.line-u),p=t.line;p!=f;p+=i){var h=e.getLine(p);if(h){var m=i>0?0:h.length-1,g=i>0?h.length:-1;if(!(h.length>l))for(p==t.line&&(m=t.ch-(i<0?1:0));m!=g;m+=i){var v=h.charAt(m);if(d.test(v)&&(void 0===a||(e.getTokenTypeAt(n(p,m+1))||"")==(a||""))){var y=r[v];if(y&&">"==y.charAt(1)==i>0)c.push(v);else{if(!c.length)return{pos:n(p,m),ch:v};c.pop()}}}}}return p-i!=(i>0?e.lastLine():e.firstLine())&&null}function l(e,r,o){for(var s=e.state.matchBrackets.maxHighlightLineLength||1e3,l=o&&o.highlightNonMatching,u=[],c=e.listSelections(),d=0;d{"use strict";function r(e,t){var n,r;const{levels:o,indentLevel:i}=e;return((o&&0!==o.length?o.at(-1)-(null!==(n=this.electricInput)&&void 0!==n&&n.test(t)?1:0):i)||0)*((null===(r=this.config)||void 0===r?void 0:r.indentUnit)||0)}n.d(t,{i:()=>r}),(0,Object.defineProperty)(r,"name",{value:"indent",configurable:!0})},1279:(e,t,n)=>{"use strict";n.r(t);var r=n(6312),o=n(3678),i=n(3610),a=(n(6424),Object.defineProperty);const s=((e,t)=>a((e=>{const t=(0,o.Xs)({eatWhitespace:e=>e.eatWhile(o.WU),lexRules:o.nW,parseRules:o.kh,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:i.i,electricInput:/^\\s*[})\\]]/,fold:"brace",lineComment:"#",closeBrackets:{pairs:\'()[]{}""\',explode:"()[]{}"}}}),"name",{value:"graphqlModeFactory",configurable:!0}))();r.C.defineMode("graphql",s)},8801:(e,t,n)=>{"use strict";n.r(t);var r=n(6312),o=n(3678),i=n(3610),a=(n(6424),Object.defineProperty);r.C.defineMode("graphql-variables",(e=>{const t=(0,o.Xs)({eatWhitespace:e=>e.eatSpace(),lexRules:s,parseRules:l,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:i.i,electricInput:/^\\s*[}\\]]/,fold:"brace",closeBrackets:{pairs:\'[]{}""\',explode:"[]{}"}}}));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/},l={Document:[(0,o.p)("{"),(0,o.pb)("Variable",(0,o.MD)((0,o.p)(","))),(0,o.p)("}")],Variable:[u("variable"),(0,o.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,o.t)("Number","number")],StringValue:[(0,o.t)("String","string")],BooleanValue:[(0,o.t)("Keyword","builtin")],NullValue:[(0,o.t)("Keyword","keyword")],ListValue:[(0,o.p)("["),(0,o.pb)("Value",(0,o.MD)((0,o.p)(","))),(0,o.p)("]")],ObjectValue:[(0,o.p)("{"),(0,o.pb)("ObjectField",(0,o.MD)((0,o.p)(","))),(0,o.p)("}")],ObjectField:[u("attribute"),(0,o.p)(":"),"Value"]};function u(e){return{style:e,match:e=>"String"===e.kind,update(e,t){e.name=t.value.slice(1,-1)}}}a(u,"name",{value:"namedKey",configurable:!0})},4566:(e,t,n)=>{"use strict";n.r(t);var r=n(6312),o=n(3678),i=n(3610);n(6424),r.C.defineMode("graphql-results",(e=>{const t=(0,o.Xs)({eatWhitespace:e=>e.eatSpace(),lexRules:a,parseRules:s,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:i.i,electricInput:/^\\s*[}\\]]/,fold:"brace",closeBrackets:{pairs:\'[]{}""\',explode:"[]{}"}}}));const a={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/},s={Document:[(0,o.p)("{"),(0,o.pb)("Entry",(0,o.p)(",")),(0,o.p)("}")],Entry:[(0,o.t)("String","def"),(0,o.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,o.t)("Number","number")],StringValue:[(0,o.t)("String","string")],BooleanValue:[(0,o.t)("Keyword","builtin")],NullValue:[(0,o.t)("Keyword","keyword")],ListValue:[(0,o.p)("["),(0,o.pb)("Value",(0,o.p)(",")),(0,o.p)("]")],ObjectValue:[(0,o.p)("{"),(0,o.pb)("ObjectField",(0,o.p)(",")),(0,o.p)("}")],ObjectField:[(0,o.t)("String","property"),(0,o.p)(":"),"Value"]}},9661:(e,t,n)=>{"use strict";n.r(t),n.d(t,{s:()=>c});var r=n(6424),o=n(5498),i=n(5043),a=Object.defineProperty,s=(e,t)=>a(e,"name",{value:t,configurable:!0});function l(e,t){for(var n=0;nr[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}s(l,"_mergeNamespaces"),function(e){function t(e,t){return"string"==typeof e?e=new RegExp(e.replace(/[\\-\\[\\]\\/\\{\\}\\(\\)\\*\\+\\?\\.\\\\\\^\\$\\|]/g,"\\\\$&"),t?"gi":"g"):e.global||(e=new RegExp(e.source,e.ignoreCase?"gi":"g")),{token:function(t){e.lastIndex=t.pos;var n=e.exec(t.string);if(n&&n.index==t.pos)return t.pos+=n[0].length||1,"searching";n?t.pos=n.index:t.skipToEnd()}}}function n(){this.posFrom=this.posTo=this.lastQuery=this.query=null,this.overlay=null}function r(e){return e.state.search||(e.state.search=new n)}function o(e){return"string"==typeof e&&e==e.toLowerCase()}function i(e,t,n){return e.getSearchCursor(t,n,{caseFold:o(t),multiline:!0})}function a(e,t,n,r,o){e.openDialog(t,r,{value:n,selectValueOnOpen:!0,closeOnEnter:!1,onClose:function(){m(e)},onKeyDown:o,bottom:e.options.search.bottom})}function l(e,t,n,r,o){e.openDialog?e.openDialog(t,o,{value:r,selectValueOnOpen:!0,bottom:e.options.search.bottom}):o(prompt(n,r))}function u(e,t,n,r){e.openConfirm?e.openConfirm(t,r):confirm(n)&&r[0]()}function c(e){return e.replace(/\\\\([nrt\\\\])/g,(function(e,t){return"n"==t?"\\n":"r"==t?"\\r":"t"==t?"\\t":"\\\\"==t?"\\\\":e}))}function d(e){var t=e.match(/^\\/(.*)\\/([a-z]*)$/);if(t)try{e=new RegExp(t[1],-1==t[2].indexOf("i")?"":"i")}catch{}else e=c(e);return("string"==typeof e?""==e:e.test(""))&&(e=/x^/),e}function f(e,n,r){n.queryText=r,n.query=d(r),e.removeOverlay(n.overlay,o(n.query)),n.overlay=t(n.query,o(n.query)),e.addOverlay(n.overlay),e.showMatchesOnScrollbar&&(n.annotate&&(n.annotate.clear(),n.annotate=null),n.annotate=e.showMatchesOnScrollbar(n.query,o(n.query)))}function p(t,n,o,i){var u=r(t);if(u.query)return h(t,n);var c=t.getSelection()||u.lastQuery;if(c instanceof RegExp&&"x^"==c.source&&(c=null),o&&t.openDialog){var d=null,p=s((function(n,r){e.e_stop(r),n&&(n!=u.queryText&&(f(t,u,n),u.posFrom=u.posTo=t.getCursor()),d&&(d.style.opacity=1),h(t,r.shiftKey,(function(e,n){var r;n.line<3&&document.querySelector&&(r=t.display.wrapper.querySelector(".CodeMirror-dialog"))&&r.getBoundingClientRect().bottom-4>t.cursorCoords(n,"window").top&&((d=r).style.opacity=.4)})))}),"searchNext");a(t,v(t),c,p,(function(n,o){var i=e.keyName(n),a=t.getOption("extraKeys"),s=a&&a[i]||e.keyMap[t.getOption("keyMap")][i];"findNext"==s||"findPrev"==s||"findPersistentNext"==s||"findPersistentPrev"==s?(e.e_stop(n),f(t,r(t),o),t.execCommand(s)):("find"==s||"findPersistent"==s)&&(e.e_stop(n),p(o,n))})),i&&c&&(f(t,u,c),h(t,n))}else l(t,v(t),"Search for:",c,(function(e){e&&!u.query&&t.operation((function(){f(t,u,e),u.posFrom=u.posTo=t.getCursor(),h(t,n)}))}))}function h(t,n,o){t.operation((function(){var a=r(t),s=i(t,a.query,n?a.posFrom:a.posTo);!s.find(n)&&!(s=i(t,a.query,n?e.Pos(t.lastLine()):e.Pos(t.firstLine(),0))).find(n)||(t.setSelection(s.from(),s.to()),t.scrollIntoView({from:s.from(),to:s.to()},20),a.posFrom=s.from(),a.posTo=s.to(),o&&o(s.from(),s.to()))}))}function m(e){e.operation((function(){var t=r(e);t.lastQuery=t.query,t.query&&(t.query=t.queryText=null,e.removeOverlay(t.overlay),t.annotate&&(t.annotate.clear(),t.annotate=null))}))}function g(e,t){var n=e?document.createElement(e):document.createDocumentFragment();for(var r in t)n[r]=t[r];for(var o=2;o{"use strict";n.r(t),n.d(t,{s:()=>s});var r=n(6424),o=n(5498);function i(e,t){for(var n=0;nr[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(0,Object.defineProperty)(i,"name",{value:"_mergeNamespaces",configurable:!0});var a=(0,o.r)();const s=i({__proto__:null,default:(0,r.g)(a)},[a])},5498:(e,t,n)=>{"use strict";n.d(t,{r:()=>l});var r,o=n(6424),i=Object.defineProperty,a=(e,t)=>i(e,"name",{value:t,configurable:!0}),s={exports:{}};function l(){return r||(r=1,function(e){var t,n,r=e.Pos;function o(e){return e.flags??(e.ignoreCase?"i":"")+(e.global?"g":"")+(e.multiline?"m":"")}function i(e,t){for(var n=o(e),r=n,i=0;ic);d++){var f=e.getLine(u++);o=null==o?f:o+"\\n"+f}a*=2,t.lastIndex=n.ch;var p=t.exec(o);if(p){var h=o.slice(0,p.index).split("\\n"),m=p[0].split("\\n"),g=n.line+h.length-1,v=h[h.length-1].length;return{from:r(g,v),to:r(g+m.length-1,1==m.length?v+m[0].length:m[m.length-1].length),match:p}}}}function c(e,t,n){for(var r,o=0;o<=e.length;){t.lastIndex=o;var i=t.exec(e);if(!i)break;var a=i.index+i[0].length;if(a>e.length-n)break;(!r||a>r.index+r[0].length)&&(r=i),o=i.index+1}return r}function d(e,t,n){t=i(t,"g");for(var o=n.line,a=n.ch,s=e.firstLine();o>=s;o--,a=-1){var l=e.getLine(o),u=c(l,t,a<0?0:l.length-a);if(u)return{from:r(o,u.index),to:r(o,u.index+u[0].length),match:u}}}function f(e,t,n){if(!s(t))return d(e,t,n);t=i(t,"gm");for(var o,a=1,l=e.getLine(n.line).length-n.ch,u=n.line,f=e.firstLine();u>=f;){for(var p=0;p=f;p++){var h=e.getLine(u--);o=null==o?h:h+"\\n"+o}a*=2;var m=c(o,t,l);if(m){var g=o.slice(0,m.index).split("\\n"),v=m[0].split("\\n"),y=u+g.length,b=g[g.length-1].length;return{from:r(y,b),to:r(y+v.length-1,1==v.length?b+v[0].length:v[v.length-1].length),match:m}}}}function p(e,t,n,r){if(e.length==t.length)return n;for(var o=0,i=n+Math.max(0,e.length-t.length);;){if(o==i)return o;var a=o+i>>1,s=r(e.slice(0,a)).length;if(s==n)return a;s>n?i=a:o=a+1}}function h(e,o,i,a){if(!o.length)return null;var s=a?t:n,l=s(o).split(/\\r|\\n\\r?/);e:for(var u=i.line,c=i.ch,d=e.lastLine()+1-l.length;u<=d;u++,c=0){var f=e.getLine(u).slice(c),h=s(f);if(1==l.length){var m=h.indexOf(l[0]);if(-1==m)continue e;return i=p(f,h,m,s)+c,{from:r(u,p(f,h,m,s)+c),to:r(u,p(f,h,m+l[0].length,s)+c)}}var g=h.length-l[0].length;if(h.slice(g)==l[0]){for(var v=1;v=d;u--,c=-1){var f=e.getLine(u);c>-1&&(f=f.slice(0,c));var h=s(f);if(1==l.length){var m=h.lastIndexOf(l[0]);if(-1==m)continue e;return{from:r(u,p(f,h,m,s)),to:r(u,p(f,h,m+l[0].length,s))}}var g=l[l.length-1];if(h.slice(0,g.length)==g){var v=1;for(i=u-l.length+1;v(this.doc.getLine(n.line)||"").length&&(n.ch=0,n.line++)),0!=e.cmpPos(n,this.doc.clipPos(n))))return this.atOccurrence=!1;var o=this.matches(t,n);if(this.afterEmptyMatch=o&&0==e.cmpPos(o.from,o.to),o)return this.pos=o,this.atOccurrence=!0,this.pos.match||!0;var i=r(t?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:i,to:i},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(t,n){if(this.atOccurrence){var o=e.splitLines(t);this.doc.replaceRange(o,this.pos.from,this.pos.to,n),this.pos.to=r(this.pos.from.line+o.length-1,o[o.length-1].length+(1==o.length?this.pos.from.ch:0))}}},e.defineExtension("getSearchCursor",(function(e,t,n){return new g(this.doc,e,t,n)})),e.defineDocExtension("getSearchCursor",(function(e,t,n){return new g(this,e,t,n)})),e.defineExtension("selectMatches",(function(t,n){for(var r=[],o=this.getSearchCursor(t,this.getCursor("from"),n);o.findNext()&&!(e.cmpPos(o.to(),this.getCursor("to"))>0);)r.push({anchor:o.from(),head:o.to()});r.length&&this.setSelections(r,0)}))}((0,o.r)())),s.exports}a(l,"requireSearchcursor")},8258:(e,t,n)=>{"use strict";n.r(t),n.d(t,{s:()=>l});var r=n(6424),o=Object.defineProperty,i=(e,t)=>o(e,"name",{value:t,configurable:!0});function a(e,t){for(var n=0;nr[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}i(a,"_mergeNamespaces"),function(e){var t="CodeMirror-hint-active";function n(e,t){if(this.cm=e,this.options=t,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length,this.options.updateOnCursorActivity){var n=this;e.on("cursorActivity",this.activityFunc=function(){n.cursorActivity()})}}e.showHint=function(e,t,n){if(!t)return e.showHint(n);n&&n.async&&(t.async=!0);var r={hint:t};if(n)for(var o in n)r[o]=n[o];return e.showHint(r)},e.defineExtension("showHint",(function(t){t=a(this,this.getCursor("start"),t);var r=this.listSelections();if(!(r.length>1)){if(this.somethingSelected()){if(!t.hint.supportsSelection)return;for(var o=0;od.clientHeight+1;if(setTimeout((function(){L=i.getScrollInfo()})),D.bottom-O>0){var I=D.bottom-D.top;if(b.top-(b.bottom-D.top)-I>0)d.style.top=(w=b.top-I-C)+"px",x=!1;else if(I>O){d.style.height=O-5+"px",d.style.top=(w=b.bottom-D.top-C)+"px";var R=i.getCursor();r.from.ch!=R.ch&&(b=i.cursorCoords(R),d.style.left=(A=b.left-E)+"px",D=d.getBoundingClientRect())}}var F,P=D.right-N;if(M&&(P+=i.display.nativeBarWidth),P>0&&(D.right-D.left>N&&(d.style.width=N-5+"px",P-=D.right-D.left-N),d.style.left=(A=b.left-P-E)+"px"),M)for(var j=d.firstChild;j;j=j.nextSibling)j.style.paddingRight=i.display.nativeBarWidth+"px";i.addKeyMap(this.keyMap=l(n,{moveFocus:function(e,t){o.changeActive(o.selectedHint+e,t)},setFocus:function(e){o.changeActive(e)},menuSize:function(){return o.screenAmount()},length:p.length,close:function(){n.close()},pick:function(){o.pick()},data:r})),n.options.closeOnUnfocus&&(i.on("blur",this.onBlur=function(){F=setTimeout((function(){n.close()}),100)}),i.on("focus",this.onFocus=function(){clearTimeout(F)})),i.on("scroll",this.onScroll=function(){var e=i.getScrollInfo(),t=i.getWrapperElement().getBoundingClientRect();L||(L=i.getScrollInfo());var r=w+L.top-e.top,o=r-(c.pageYOffset||(a.documentElement||a.body).scrollTop);if(x||(o+=d.offsetHeight),o<=t.top||o>=t.bottom)return n.close();d.style.top=r+"px",d.style.left=A+L.left-e.left+"px"}),e.on(d,"dblclick",(function(e){var t=u(d,e.target||e.srcElement);t&&null!=t.hintId&&(o.changeActive(t.hintId),o.pick())})),e.on(d,"click",(function(e){var t=u(d,e.target||e.srcElement);t&&null!=t.hintId&&(o.changeActive(t.hintId),n.options.completeOnSingleClick&&o.pick())})),e.on(d,"mousedown",(function(){setTimeout((function(){i.focus()}),20)}));var V=this.getSelectedHintRange();return(0!==V.from||0!==V.to)&&this.scrollToActive(),e.signal(r,"select",p[this.selectedHint],d.childNodes[this.selectedHint]),!0}function d(e,t){if(!e.somethingSelected())return t;for(var n=[],r=0;r0?t(e):a(o+1)}))}i(a,"run"),a(0)}),"resolved");return a.async=!0,a.supportsSelection=!0,a}return(r=t.getHelper(t.getCursor(),"hintWords"))?function(t){return e.hint.fromList(t,{words:r})}:e.hint.anyword?function(t,n){return e.hint.anyword(t,n)}:function(){}}n.prototype={close:function(){this.active()&&(this.cm.state.completionActive=null,this.tick=null,this.options.updateOnCursorActivity&&this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&e.signal(this.data,"close"),this.widget&&this.widget.close(),e.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(t,n){var r=t.list[n],o=this;this.cm.operation((function(){r.hint?r.hint(o.cm,t,r):o.cm.replaceRange(s(r),r.from||t.from,r.to||t.to,"complete"),e.signal(t,"pick",r),o.cm.scrollIntoView()})),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(o(this.debounce),this.debounce=0);var e=this.startPos;this.data&&(e=this.data.from);var t=this.cm.getCursor(),n=this.cm.getLine(t.line);if(t.line!=this.startPos.line||n.length-t.ch!=this.startLen-this.startPos.ch||t.ch=this.data.list.length?n=r?this.data.list.length-1:0:n<0&&(n=r?0:this.data.list.length-1),this.selectedHint!=n){var o=this.hints.childNodes[this.selectedHint];o&&(o.className=o.className.replace(" "+t,""),o.removeAttribute("aria-selected")),(o=this.hints.childNodes[this.selectedHint=n]).className+=" "+t,o.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",o.id),this.scrollToActive(),e.signal(this.data,"select",this.data.list[this.selectedHint],o)}},scrollToActive:function(){var e=this.getSelectedHintRange(),t=this.hints.childNodes[e.from],n=this.hints.childNodes[e.to],r=this.hints.firstChild;t.offsetTopthis.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=n.offsetTop+n.offsetHeight-this.hints.clientHeight+r.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var e=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-e),to:Math.min(this.data.list.length-1,this.selectedHint+e)}}},i(d,"applicableHelpers"),i(f,"fetchHints"),i(p,"resolveAutoHints"),e.registerHelper("hint","auto",{resolve:p}),e.registerHelper("hint","fromList",(function(t,n){var r,o=t.getCursor(),i=t.getTokenAt(o),a=e.Pos(o.line,i.start),s=o;i.start,]/,closeOnPick:!0,closeOnUnfocus:!0,updateOnCursorActivity:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null,paddingForScrollbar:!0,moveOnOverlap:!0};e.defineOption("hintOptions",null)}((0,r.r)());var s={};const l=a({__proto__:null,default:(0,r.g)(s)},[s])},1363:(e,t,n)=>{"use strict";n.r(t),n.d(t,{s:()=>c});var r=n(6424),o=n(5498),i=n(6542),a=Object.defineProperty,s=(e,t)=>a(e,"name",{value:t,configurable:!0});function l(e,t){for(var n=0;nr[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}s(l,"_mergeNamespaces"),function(e){var t=e.commands,n=e.Pos;function r(t,r,o){if(o<0&&0==r.ch)return t.clipPos(n(r.line-1));var i=t.getLine(r.line);if(o>0&&r.ch>=i.length)return t.clipPos(n(r.line+1,0));for(var a,s="start",l=r.ch,u=l,c=o<0?0:i.length,d=0;u!=c;u+=o,d++){var f=i.charAt(o<0?u-1:u),p="_"!=f&&e.isWordChar(f)?"w":"o";if("w"==p&&f.toUpperCase()==f&&(p="W"),"start"==s)"o"!=p?(s="in",a=p):l=u+o;else if("in"==s&&a!=p){if("w"==a&&"W"==p&&o<0&&u--,"W"==a&&"w"==p&&o>0){if(u==l+1){a="w";continue}u--}break}}return n(r.line,u)}function o(e,t){e.extendSelectionsBy((function(n){return e.display.shift||e.doc.extend||n.empty()?r(e.doc,n.head,t):t<0?n.from():n.to()}))}function i(t,r){if(t.isReadOnly())return e.Pass;t.operation((function(){for(var e=t.listSelections().length,o=[],i=-1,a=0;a=n&&e.execCommand("goLineUp")}e.scrollTo(null,t.top-e.defaultTextHeight())},t.scrollLineDown=function(e){var t=e.getScrollInfo();if(!e.somethingSelected()){var n=e.lineAtHeight(t.top,"local")+1;e.getCursor().line<=n&&e.execCommand("goLineDown")}e.scrollTo(null,t.top+e.defaultTextHeight())},t.splitSelectionByLine=function(e){for(var t=e.listSelections(),r=[],o=0;oi.line&&s==a.line&&0==a.ch||r.push({anchor:s==i.line?i:n(s,0),head:s==a.line?a:n(s)});e.setSelections(r,0)},t.singleSelectionTop=function(e){var t=e.listSelections()[0];e.setSelection(t.anchor,t.head,{scroll:!1})},t.selectLine=function(e){for(var t=e.listSelections(),r=[],o=0;o=0;s--){var u=r[o[s]];if(!(l&&e.cmpPos(u.head,l)>0)){var c=a(t,u.head);l=c.from,t.replaceRange(n(c.word),c.from,c.to)}}}))}function m(t){var n=t.getCursor("from"),r=t.getCursor("to");if(0==e.cmpPos(n,r)){var o=a(t,n);if(!o.word)return;n=o.from,r=o.to}return{from:n,to:r,query:t.getRange(n,r),word:o}}function g(e,t){var r=m(e);if(r){var o=r.query,i=e.getSearchCursor(o,t?r.to:r.from);(t?i.findNext():i.findPrevious())?e.setSelection(i.from(),i.to()):(i=e.getSearchCursor(o,t?n(e.firstLine(),0):e.clipPos(n(e.lastLine()))),(t?i.findNext():i.findPrevious())?e.setSelection(i.from(),i.to()):r.word&&e.setSelection(r.from,r.to))}}s(d,"selectBetweenBrackets"),t.selectScope=function(e){d(e)||e.execCommand("selectAll")},t.selectBetweenBrackets=function(t){if(!d(t))return e.Pass},s(f,"puncType"),t.goToBracket=function(t){t.extendSelectionsBy((function(r){var o=t.scanForBracket(r.head,1,f(t.getTokenTypeAt(r.head)));if(o&&0!=e.cmpPos(o.pos,r.head))return o.pos;var i=t.scanForBracket(r.head,-1,f(t.getTokenTypeAt(n(r.head.line,r.head.ch+1))));return i&&n(i.pos.line,i.pos.ch+1)||r.head}))},t.swapLineUp=function(t){if(t.isReadOnly())return e.Pass;for(var r=t.listSelections(),o=[],i=t.firstLine()-1,a=[],s=0;si?o.push(u,c):o.length&&(o[o.length-1]=c),i=c}t.operation((function(){for(var e=0;et.lastLine()?t.replaceRange("\\n"+s,n(t.lastLine()),null,"+swapLine"):t.replaceRange(s+"\\n",n(i,0),null,"+swapLine")}t.setSelections(a),t.scrollIntoView()}))},t.swapLineDown=function(t){if(t.isReadOnly())return e.Pass;for(var r=t.listSelections(),o=[],i=t.lastLine()+1,a=r.length-1;a>=0;a--){var s=r[a],l=s.to().line+1,u=s.from().line;0==s.to().ch&&!s.empty()&&l--,l=0;e-=2){var r=o[e],i=o[e+1],a=t.getLine(r);r==t.lastLine()?t.replaceRange("",n(r-1),n(r),"+swapLine"):t.replaceRange("",n(r,0),n(r+1,0),"+swapLine"),t.replaceRange(a+"\\n",n(i,0),null,"+swapLine")}t.scrollIntoView()}))},t.toggleCommentIndented=function(e){e.toggleComment({indent:!0})},t.joinLines=function(e){for(var t=e.listSelections(),r=[],o=0;o=0;i--){var a=r[i].head,s=t.getRange({line:a.line,ch:0},a),l=e.countColumn(s,null,t.getOption("tabSize")),u=t.findPosH(a,-1,"char",!1);if(s&&!/\\S/.test(s)&&l%o==0){var c=new n(a.line,e.findColumn(s,l-o,o));c.ch!=a.ch&&(u=c)}t.replaceRange("",u,a,"+delete")}}))},t.delLineRight=function(e){e.operation((function(){for(var t=e.listSelections(),r=t.length-1;r>=0;r--)e.replaceRange("",t[r].anchor,n(t[r].to().line),"+delete");e.scrollIntoView()}))},t.upcaseAtCursor=function(e){h(e,(function(e){return e.toUpperCase()}))},t.downcaseAtCursor=function(e){h(e,(function(e){return e.toLowerCase()}))},t.setSublimeMark=function(e){e.state.sublimeMark&&e.state.sublimeMark.clear(),e.state.sublimeMark=e.setBookmark(e.getCursor())},t.selectToSublimeMark=function(e){var t=e.state.sublimeMark&&e.state.sublimeMark.find();t&&e.setSelection(e.getCursor(),t)},t.deleteToSublimeMark=function(t){var n=t.state.sublimeMark&&t.state.sublimeMark.find();if(n){var r=t.getCursor(),o=n;if(e.cmpPos(r,o)>0){var i=o;o=r,r=i}t.state.sublimeKilled=t.getRange(r,o),t.replaceRange("",r,o)}},t.swapWithSublimeMark=function(e){var t=e.state.sublimeMark&&e.state.sublimeMark.find();t&&(e.state.sublimeMark.clear(),e.state.sublimeMark=e.setBookmark(e.getCursor()),e.setCursor(t))},t.sublimeYank=function(e){null!=e.state.sublimeKilled&&e.replaceSelection(e.state.sublimeKilled,null,"paste")},t.showInCenter=function(e){var t=e.cursorCoords(null,"local");e.scrollTo(null,(t.top+t.bottom)/2-e.getScrollInfo().clientHeight/2)},s(m,"getTarget"),s(g,"findAndGoTo"),t.findUnder=function(e){g(e,!0)},t.findUnderPrevious=function(e){g(e,!1)},t.findAllUnder=function(e){var t=m(e);if(t){for(var n=e.getSearchCursor(t.query),r=[],o=-1;n.findNext();)r.push({anchor:n.from(),head:n.to()}),n.from().line<=t.from.line&&n.from().ch<=t.from.ch&&o++;e.setSelections(r,o)}};var v=e.keyMap;v.macSublime={"Cmd-Left":"goLineStartSmart","Shift-Tab":"indentLess","Shift-Ctrl-K":"deleteLine","Alt-Q":"wrapLines","Ctrl-Left":"goSubwordLeft","Ctrl-Right":"goSubwordRight","Ctrl-Alt-Up":"scrollLineUp","Ctrl-Alt-Down":"scrollLineDown","Cmd-L":"selectLine","Shift-Cmd-L":"splitSelectionByLine",Esc:"singleSelectionTop","Cmd-Enter":"insertLineAfter","Shift-Cmd-Enter":"insertLineBefore","Cmd-D":"selectNextOccurrence","Shift-Cmd-Space":"selectScope","Shift-Cmd-M":"selectBetweenBrackets","Cmd-M":"goToBracket","Cmd-Ctrl-Up":"swapLineUp","Cmd-Ctrl-Down":"swapLineDown","Cmd-/":"toggleCommentIndented","Cmd-J":"joinLines","Shift-Cmd-D":"duplicateLine",F5:"sortLines","Shift-F5":"reverseSortLines","Cmd-F5":"sortLinesInsensitive","Shift-Cmd-F5":"reverseSortLinesInsensitive",F2:"nextBookmark","Shift-F2":"prevBookmark","Cmd-F2":"toggleBookmark","Shift-Cmd-F2":"clearBookmarks","Alt-F2":"selectBookmarks",Backspace:"smartBackspace","Cmd-K Cmd-D":"skipAndSelectNextOccurrence","Cmd-K Cmd-K":"delLineRight","Cmd-K Cmd-U":"upcaseAtCursor","Cmd-K Cmd-L":"downcaseAtCursor","Cmd-K Cmd-Space":"setSublimeMark","Cmd-K Cmd-A":"selectToSublimeMark","Cmd-K Cmd-W":"deleteToSublimeMark","Cmd-K Cmd-X":"swapWithSublimeMark","Cmd-K Cmd-Y":"sublimeYank","Cmd-K Cmd-C":"showInCenter","Cmd-K Cmd-G":"clearBookmarks","Cmd-K Cmd-Backspace":"delLineLeft","Cmd-K Cmd-1":"foldAll","Cmd-K Cmd-0":"unfoldAll","Cmd-K Cmd-J":"unfoldAll","Ctrl-Shift-Up":"addCursorToPrevLine","Ctrl-Shift-Down":"addCursorToNextLine","Cmd-F3":"findUnder","Shift-Cmd-F3":"findUnderPrevious","Alt-F3":"findAllUnder","Shift-Cmd-[":"fold","Shift-Cmd-]":"unfold","Cmd-I":"findIncremental","Shift-Cmd-I":"findIncrementalReverse","Cmd-H":"replace",F3:"findNext","Shift-F3":"findPrev",fallthrough:"macDefault"},e.normalizeKeyMap(v.macSublime),v.pcSublime={"Shift-Tab":"indentLess","Shift-Ctrl-K":"deleteLine","Alt-Q":"wrapLines","Ctrl-T":"transposeChars","Alt-Left":"goSubwordLeft","Alt-Right":"goSubwordRight","Ctrl-Up":"scrollLineUp","Ctrl-Down":"scrollLineDown","Ctrl-L":"selectLine","Shift-Ctrl-L":"splitSelectionByLine",Esc:"singleSelectionTop","Ctrl-Enter":"insertLineAfter","Shift-Ctrl-Enter":"insertLineBefore","Ctrl-D":"selectNextOccurrence","Shift-Ctrl-Space":"selectScope","Shift-Ctrl-M":"selectBetweenBrackets","Ctrl-M":"goToBracket","Shift-Ctrl-Up":"swapLineUp","Shift-Ctrl-Down":"swapLineDown","Ctrl-/":"toggleCommentIndented","Ctrl-J":"joinLines","Shift-Ctrl-D":"duplicateLine",F9:"sortLines","Shift-F9":"reverseSortLines","Ctrl-F9":"sortLinesInsensitive","Shift-Ctrl-F9":"reverseSortLinesInsensitive",F2:"nextBookmark","Shift-F2":"prevBookmark","Ctrl-F2":"toggleBookmark","Shift-Ctrl-F2":"clearBookmarks","Alt-F2":"selectBookmarks",Backspace:"smartBackspace","Ctrl-K Ctrl-D":"skipAndSelectNextOccurrence","Ctrl-K Ctrl-K":"delLineRight","Ctrl-K Ctrl-U":"upcaseAtCursor","Ctrl-K Ctrl-L":"downcaseAtCursor","Ctrl-K Ctrl-Space":"setSublimeMark","Ctrl-K Ctrl-A":"selectToSublimeMark","Ctrl-K Ctrl-W":"deleteToSublimeMark","Ctrl-K Ctrl-X":"swapWithSublimeMark","Ctrl-K Ctrl-Y":"sublimeYank","Ctrl-K Ctrl-C":"showInCenter","Ctrl-K Ctrl-G":"clearBookmarks","Ctrl-K Ctrl-Backspace":"delLineLeft","Ctrl-K Ctrl-1":"foldAll","Ctrl-K Ctrl-0":"unfoldAll","Ctrl-K Ctrl-J":"unfoldAll","Ctrl-Alt-Up":"addCursorToPrevLine","Ctrl-Alt-Down":"addCursorToNextLine","Ctrl-F3":"findUnder","Shift-Ctrl-F3":"findUnderPrevious","Alt-F3":"findAllUnder","Shift-Ctrl-[":"fold","Shift-Ctrl-]":"unfold","Ctrl-I":"findIncremental","Shift-Ctrl-I":"findIncrementalReverse","Ctrl-H":"replace",F3:"findNext","Shift-F3":"findPrev",fallthrough:"pcDefault"},e.normalizeKeyMap(v.pcSublime);var y=v.default==v.macDefault;v.sublime=y?v.macSublime:v.pcSublime}((0,r.r)(),(0,o.r)(),(0,i.r)());var u={};const c=l({__proto__:null,default:(0,r.g)(u)},[u])},381:(e,t,n)=>{"use strict";var r=n(1706),o={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,i,a,s,l,u,c=!1;t||(t={}),n=t.debug||!1;try{if(a=r(),s=document.createRange(),l=document.getSelection(),(u=document.createElement("span")).textContent=e,u.ariaHidden="true",u.style.all="unset",u.style.position="fixed",u.style.top=0,u.style.clip="rect(0, 0, 0, 0)",u.style.whiteSpace="pre",u.style.webkitUserSelect="text",u.style.MozUserSelect="text",u.style.msUserSelect="text",u.style.userSelect="text",u.addEventListener("copy",(function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),void 0===r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var i=o[t.format]||o.default;window.clipboardData.setData(i,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))})),document.body.appendChild(u),s.selectNodeContents(u),l.addRange(s),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");c=!0}catch(r){n&&console.error("unable to copy using execCommand: ",r),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),c=!0}catch(r){n&&console.error("unable to copy using clipboardData: ",r),n&&console.error("falling back to prompt"),i=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return e.replace(/#{\\s*key\\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(i,e)}}finally{l&&("function"==typeof l.removeRange?l.removeRange(s):l.removeAllRanges()),u&&document.body.removeChild(u),a()}return c}},8085:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(9601),o=n.n(r),i=n(2609),a=n.n(i)()(o());a.push([e.id,\'.mermaid {\\n background-color: white;\\n}\\n.explainExpandedContainer {\\n position: absolute;\\n top: 1rem;\\n left: 1rem;\\n bottom: 1rem;\\n right: 1rem;\\n border-radius: 1rem;\\n background-color: white;\\n border: 1px solid black;\\n box-shadow: rgba(0, 0, 0, 0.8) 3px 3px 15px;\\n overflow: hidden;\\n padding: 1rem;\\n z-index: 1000;\\n font-family: "Roboto", sans-serif;\\n}\\n.explainExpandedTitle {\\n position: absolute;\\n top: 0;\\n left: 0;\\n right: 0;\\n height: 2rem;\\n text-align: center;\\n font-size: 1.5rem;\\n}\\n.explainExpandedCloseContainer {\\n position: absolute;\\n top: 0;\\n right: 0;\\n}\\n.explainExpandedCloseButton {\\n font-size: 2rem;\\n padding: 0;\\n margin: 0;\\n background: transparent;\\n border: none;\\n outline: none;\\n width: 2rem;\\n height: 2rem;\\n}\\n.explainExpandedMain {\\n overflow: auto;\\n position: absolute;\\n top: 2rem;\\n bottom: 0;\\n left: 0;\\n right: 0;\\n}\\n\\n.errorPopup {\\n position: absolute;\\n top: 10px;\\n right: 10px;\\n background-color: #ff9999;\\n color: black;\\n border: 1px solid black;\\n border-radius: 7;\\n width: 20rem;\\n max-width: 90vw;\\n}\\n.errorPopupClose {\\n float: right;\\n background: transparent;\\n border: none;\\n margin-left: 10px;\\n margin-bottom: 10px;\\n}\\n.errorPopupError {\\n padding: 10px;\\n}\\n\\n.explain-plan,\\n.explain-sql {\\n font-size: 0.75rem;\\n white-space: pre-wrap;\\n}\\n\',""]);const s=a},224:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(9601),o=n.n(r),i=n(2609),a=n.n(i)()(o());a.push([e.id,".docExplorerWrap{height:unset!important;min-width:unset!important;width:unset!important}.doc-explorer-title{font-size:var(--font-size-h2);font-weight:var(--font-weight-medium)}.doc-explorer-rhs{display:none}.graphiql-explorer-root{font-family:var(--font-family-mono)!important;font-size:var(--font-size-body)!important;padding:0!important}.graphiql-explorer-root>div:first-child{padding-left:var(--px-8);overflow:hidden!important}.graphiql-explorer-root input{background:hsl(var(--color-base))}.graphiql-explorer-root select{background-color:hsl(var(--color-base));border:1px solid hsla(var(--color-neutral),var(--alpha-secondary));border-radius:var(--border-radius-4);color:hsl(var(--color-neutral));margin:0 var(--px-4);padding:var(--px-4) var(--px-6)}\\n",""]);const s=a},1537:(e,t,n)=>{"use strict";n.d(t,{Z:()=>Re});var r=n(9601),o=n.n(r),i=n(2609),a=n.n(i),s=n(8991),l=n.n(s),u=new URL(n(7705),n.b),c=new URL(n(2779),n.b),d=new URL(n(5290),n.b),f=new URL(n(3242),n.b),p=new URL(n(8216),n.b),h=new URL(n(2825),n.b),m=new URL(n(3950),n.b),g=new URL(n(3809),n.b),v=new URL(n(4159),n.b),y=new URL(n(5725),n.b),b=new URL(n(5673),n.b),A=new URL(n(1031),n.b),w=new URL(n(8875),n.b),x=new URL(n(8742),n.b),E=new URL(n(2712),n.b),C=new URL(n(4965),n.b),k=new URL(n(1993),n.b),T=new URL(n(8399),n.b),S=new URL(n(5217),n.b),N=new URL(n(3224),n.b),O=new URL(n(3301),n.b),L=new URL(n(6802),n.b),D=new URL(n(6036),n.b),M=new URL(n(1138),n.b),I=new URL(n(3031),n.b),R=new URL(n(2278),n.b),F=new URL(n(433),n.b),P=new URL(n(9045),n.b),j=new URL(n(6729),n.b),V=new URL(n(2446),n.b),B=new URL(n(2540),n.b),q=new URL(n(9017),n.b),U=new URL(n(5923),n.b),z=new URL(n(7044),n.b),H=new URL(n(7735),n.b),W=new URL(n(6089),n.b),G=new URL(n(6050),n.b),Y=new URL(n(1090),n.b),Q=new URL(n(6192),n.b),K=a()(o()),X=l()(u),Z=l()(c),J=l()(d),_=l()(f),$=l()(p),ee=l()(h),te=l()(m),ne=l()(g),re=l()(v),oe=l()(y),ie=l()(b),ae=l()(A),se=l()(w),le=l()(x),ue=l()(E),ce=l()(C),de=l()(k),fe=l()(T),pe=l()(S),he=l()(N),me=l()(O),ge=l()(L),ve=l()(D),ye=l()(M),be=l()(I),Ae=l()(R),we=l()(F),xe=l()(P),Ee=l()(j),Ce=l()(V),ke=l()(B),Te=l()(q),Se=l()(U),Ne=l()(z),Oe=l()(H),Le=l()(W),De=l()(G),Me=l()(Y),Ie=l()(Q);K.push([e.id,`/*!*********************************************************************************************!*\\\\\\n !*** css ../../../node_modules/css-loader/dist/cjs.js!../../graphiql-react/font/roboto.css ***!\\n \\\\*********************************************************************************************/\\n@font-face {\\n font-family: Roboto;\\n font-style: italic;\\n font-weight: 400;\\n font-display: swap;\\n src: url(${X})\\n format(\'woff2\');\\n unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F,\\n U+FE2E-FE2F;\\n}\\n@font-face {\\n font-family: Roboto;\\n font-style: italic;\\n font-weight: 400;\\n font-display: swap;\\n src: url(${Z})\\n format(\'woff2\');\\n unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;\\n}\\n@font-face {\\n font-family: Roboto;\\n font-style: italic;\\n font-weight: 400;\\n font-display: swap;\\n src: url(${J})\\n format(\'woff2\');\\n unicode-range: U+1F00-1FFF;\\n}\\n@font-face {\\n font-family: Roboto;\\n font-style: italic;\\n font-weight: 400;\\n font-display: swap;\\n src: url(${_})\\n format(\'woff2\');\\n unicode-range: U+0370-03FF;\\n}\\n@font-face {\\n font-family: Roboto;\\n font-style: italic;\\n font-weight: 400;\\n font-display: swap;\\n src: url(${$})\\n format(\'woff2\');\\n unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1,\\n U+01AF-01B0, U+1EA0-1EF9, U+20AB;\\n}\\n@font-face {\\n font-family: Roboto;\\n font-style: italic;\\n font-weight: 400;\\n font-display: swap;\\n src: url(${ee})\\n format(\'woff2\');\\n unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB,\\n U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;\\n}\\n@font-face {\\n font-family: Roboto;\\n font-style: italic;\\n font-weight: 400;\\n font-display: swap;\\n src: url(${te})\\n format(\'woff2\');\\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,\\n U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,\\n U+FEFF, U+FFFD;\\n}\\n@font-face {\\n font-family: Roboto;\\n font-style: italic;\\n font-weight: 500;\\n font-display: swap;\\n src: url(${ne})\\n format(\'woff2\');\\n unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F,\\n U+FE2E-FE2F;\\n}\\n@font-face {\\n font-family: Roboto;\\n font-style: italic;\\n font-weight: 500;\\n font-display: swap;\\n src: url(${re})\\n format(\'woff2\');\\n unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;\\n}\\n@font-face {\\n font-family: Roboto;\\n font-style: italic;\\n font-weight: 500;\\n font-display: swap;\\n src: url(${oe})\\n format(\'woff2\');\\n unicode-range: U+1F00-1FFF;\\n}\\n@font-face {\\n font-family: Roboto;\\n font-style: italic;\\n font-weight: 500;\\n font-display: swap;\\n src: url(${ie})\\n format(\'woff2\');\\n unicode-range: U+0370-03FF;\\n}\\n@font-face {\\n font-family: Roboto;\\n font-style: italic;\\n font-weight: 500;\\n font-display: swap;\\n src: url(${ae})\\n format(\'woff2\');\\n unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1,\\n U+01AF-01B0, U+1EA0-1EF9, U+20AB;\\n}\\n@font-face {\\n font-family: Roboto;\\n font-style: italic;\\n font-weight: 500;\\n font-display: swap;\\n src: url(${se})\\n format(\'woff2\');\\n unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB,\\n U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;\\n}\\n@font-face {\\n font-family: Roboto;\\n font-style: italic;\\n font-weight: 500;\\n font-display: swap;\\n src: url(${le})\\n format(\'woff2\');\\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,\\n U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,\\n U+FEFF, U+FFFD;\\n}\\n@font-face {\\n font-family: Roboto;\\n font-style: normal;\\n font-weight: 400;\\n font-display: swap;\\n src: url(${ue})\\n format(\'woff2\');\\n unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F,\\n U+FE2E-FE2F;\\n}\\n@font-face {\\n font-family: Roboto;\\n font-style: normal;\\n font-weight: 400;\\n font-display: swap;\\n src: url(${ce})\\n format(\'woff2\');\\n unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;\\n}\\n@font-face {\\n font-family: Roboto;\\n font-style: normal;\\n font-weight: 400;\\n font-display: swap;\\n src: url(${de})\\n format(\'woff2\');\\n unicode-range: U+1F00-1FFF;\\n}\\n@font-face {\\n font-family: Roboto;\\n font-style: normal;\\n font-weight: 400;\\n font-display: swap;\\n src: url(${fe})\\n format(\'woff2\');\\n unicode-range: U+0370-03FF;\\n}\\n@font-face {\\n font-family: Roboto;\\n font-style: normal;\\n font-weight: 400;\\n font-display: swap;\\n src: url(${pe})\\n format(\'woff2\');\\n unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1,\\n U+01AF-01B0, U+1EA0-1EF9, U+20AB;\\n}\\n@font-face {\\n font-family: Roboto;\\n font-style: normal;\\n font-weight: 400;\\n font-display: swap;\\n src: url(${he})\\n format(\'woff2\');\\n unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB,\\n U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;\\n}\\n@font-face {\\n font-family: Roboto;\\n font-style: normal;\\n font-weight: 400;\\n font-display: swap;\\n src: url(${me})\\n format(\'woff2\');\\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,\\n U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,\\n U+FEFF, U+FFFD;\\n}\\n@font-face {\\n font-family: Roboto;\\n font-style: normal;\\n font-weight: 500;\\n font-display: swap;\\n src: url(${ge})\\n format(\'woff2\');\\n unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F,\\n U+FE2E-FE2F;\\n}\\n@font-face {\\n font-family: Roboto;\\n font-style: normal;\\n font-weight: 500;\\n font-display: swap;\\n src: url(${ve})\\n format(\'woff2\');\\n unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;\\n}\\n@font-face {\\n font-family: Roboto;\\n font-style: normal;\\n font-weight: 500;\\n font-display: swap;\\n src: url(${ye})\\n format(\'woff2\');\\n unicode-range: U+1F00-1FFF;\\n}\\n@font-face {\\n font-family: Roboto;\\n font-style: normal;\\n font-weight: 500;\\n font-display: swap;\\n src: url(${be})\\n format(\'woff2\');\\n unicode-range: U+0370-03FF;\\n}\\n@font-face {\\n font-family: Roboto;\\n font-style: normal;\\n font-weight: 500;\\n font-display: swap;\\n src: url(${Ae})\\n format(\'woff2\');\\n unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1,\\n U+01AF-01B0, U+1EA0-1EF9, U+20AB;\\n}\\n@font-face {\\n font-family: Roboto;\\n font-style: normal;\\n font-weight: 500;\\n font-display: swap;\\n src: url(${we})\\n format(\'woff2\');\\n unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB,\\n U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;\\n}\\n@font-face {\\n font-family: Roboto;\\n font-style: normal;\\n font-weight: 500;\\n font-display: swap;\\n src: url(${xe})\\n format(\'woff2\');\\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,\\n U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,\\n U+FEFF, U+FFFD;\\n}\\n\\n/*!************************************************************************************************!*\\\\\\n !*** css ../../../node_modules/css-loader/dist/cjs.js!../../graphiql-react/font/fira-code.css ***!\\n \\\\************************************************************************************************/\\n@font-face {\\n font-family: Fira Code;\\n font-style: normal;\\n font-weight: 400;\\n font-display: swap;\\n src: url(${Ee})\\n format(\'woff\');\\n unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F,\\n U+FE2E-FE2F;\\n}\\n@font-face {\\n font-family: Fira Code;\\n font-style: normal;\\n font-weight: 400;\\n font-display: swap;\\n src: url(${Ce})\\n format(\'woff\');\\n unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;\\n}\\n@font-face {\\n font-family: Fira Code;\\n font-style: normal;\\n font-weight: 400;\\n font-display: swap;\\n src: url(${ke})\\n format(\'woff\');\\n unicode-range: U+1F00-1FFF;\\n}\\n@font-face {\\n font-family: Fira Code;\\n font-style: normal;\\n font-weight: 400;\\n font-display: swap;\\n src: url(${Te})\\n format(\'woff\');\\n unicode-range: U+0370-03FF;\\n}\\n@font-face {\\n font-family: Fira Code;\\n font-style: normal;\\n font-weight: 400;\\n font-display: swap;\\n src: url(${Se})\\n format(\'woff\');\\n unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB,\\n U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;\\n}\\n@font-face {\\n font-family: Fira Code;\\n font-style: normal;\\n font-weight: 400;\\n font-display: swap;\\n src: url(${Ne})\\n format(\'woff\');\\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,\\n U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,\\n U+FEFF, U+FFFD;\\n}\\n\\n/*!********************************************************************************************!*\\\\\\n !*** css ../../../node_modules/css-loader/dist/cjs.js!../../graphiql-react/dist/style.css ***!\\n \\\\********************************************************************************************/\\n.graphiql-container *{box-sizing:border-box;font-variant-ligatures:none}.graphiql-container,.CodeMirror-info,.CodeMirror-lint-tooltip,.graphiql-dialog,.graphiql-dialog-overlay,.graphiql-tooltip,[data-radix-popper-content-wrapper]{--color-primary: 320, 95%, 43%;--color-secondary: 242, 51%, 61%;--color-tertiary: 188, 100%, 36%;--color-info: 208, 100%, 46%;--color-success: 158, 60%, 42%;--color-warning: 36, 100%, 41%;--color-error: 13, 93%, 58%;--color-neutral: 219, 28%, 32%;--color-base: 219, 28%, 100%;--alpha-secondary: .76;--alpha-tertiary: .5;--alpha-background-heavy: .15;--alpha-background-medium: .1;--alpha-background-light: .07;--font-family: "Roboto", sans-serif;--font-family-mono: "Fira Code", monospace;--font-size-hint:.75rem;--font-size-inline-code:.8125rem;--font-size-body:.9375rem;--font-size-h4:1.125rem;--font-size-h3:1.375rem;--font-size-h2:1.8125rem;--font-weight-regular: 400;--font-weight-medium: 500;--line-height: 1.5;--px-2: 2px;--px-4: 4px;--px-6: 6px;--px-8: 8px;--px-10: 10px;--px-12: 12px;--px-16: 16px;--px-20: 20px;--px-24: 24px;--border-radius-2: 2px;--border-radius-4: 4px;--border-radius-8: 8px;--border-radius-12: 12px;--popover-box-shadow: 0px 6px 20px rgba(59, 76, 106, .13), 0px 1.34018px 4.46726px rgba(59, 76, 106, .0774939), 0px .399006px 1.33002px rgba(59, 76, 106, .0525061);--popover-border: none;--sidebar-width: 60px;--toolbar-width: 40px;--session-header-height: 51px}@media (prefers-color-scheme: dark){body:not(.graphiql-light) .graphiql-container,body:not(.graphiql-light) .CodeMirror-info,body:not(.graphiql-light) .CodeMirror-lint-tooltip,body:not(.graphiql-light) .graphiql-dialog,body:not(.graphiql-light) .graphiql-dialog-overlay,body:not(.graphiql-light) .graphiql-tooltip,body:not(.graphiql-light) [data-radix-popper-content-wrapper]{--color-primary: 338, 100%, 67%;--color-secondary: 243, 100%, 77%;--color-tertiary: 188, 100%, 44%;--color-info: 208, 100%, 72%;--color-success: 158, 100%, 42%;--color-warning: 30, 100%, 80%;--color-error: 13, 100%, 58%;--color-neutral: 219, 29%, 78%;--color-base: 219, 29%, 18%;--popover-box-shadow: none;--popover-border: 1px solid hsl(var(--color-neutral))}}body.graphiql-dark .graphiql-container,body.graphiql-dark .CodeMirror-info,body.graphiql-dark .CodeMirror-lint-tooltip,body.graphiql-dark .graphiql-dialog,body.graphiql-dark .graphiql-dialog-overlay,body.graphiql-dark .graphiql-tooltip,body.graphiql-dark [data-radix-popper-content-wrapper]{--color-primary: 338, 100%, 67%;--color-secondary: 243, 100%, 77%;--color-tertiary: 188, 100%, 44%;--color-info: 208, 100%, 72%;--color-success: 158, 100%, 42%;--color-warning: 30, 100%, 80%;--color-error: 13, 100%, 58%;--color-neutral: 219, 29%, 78%;--color-base: 219, 29%, 18%;--popover-box-shadow: none;--popover-border: 1px solid hsl(var(--color-neutral))}.graphiql-container,.CodeMirror-info,.CodeMirror-lint-tooltip,.graphiql-dialog,.graphiql-container:is(button),.CodeMirror-info:is(button),.CodeMirror-lint-tooltip:is(button),.graphiql-dialog:is(button){color:hsla(var(--color-neutral),1);font-family:var(--font-family);font-size:var(--font-size-body);font-weight:var(----font-weight-regular);line-height:var(--line-height)}.graphiql-container input,.CodeMirror-info input,.CodeMirror-lint-tooltip input,.graphiql-dialog input{color:hsla(var(--color-neutral),1);font-family:var(--font-family);font-size:var(--font-size-caption)}.graphiql-container input::placeholder,.CodeMirror-info input::placeholder,.CodeMirror-lint-tooltip input::placeholder,.graphiql-dialog input::placeholder{color:hsla(var(--color-neutral),var(--alpha-secondary))}.graphiql-container a,.CodeMirror-info a,.CodeMirror-lint-tooltip a,.graphiql-dialog a{color:hsl(var(--color-primary))}.graphiql-container a:focus,.CodeMirror-info a:focus,.CodeMirror-lint-tooltip a:focus,.graphiql-dialog a:focus{outline:hsl(var(--color-primary)) auto 1px}.graphiql-un-styled,button.graphiql-un-styled{all:unset;border-radius:var(--border-radius-4);cursor:pointer}:is(.graphiql-un-styled,button.graphiql-un-styled):hover{background-color:hsla(var(--color-neutral),var(--alpha-background-light))}:is(.graphiql-un-styled,button.graphiql-un-styled):active{background-color:hsla(var(--color-neutral),var(--alpha-background-medium))}:is(.graphiql-un-styled,button.graphiql-un-styled):focus{outline:hsla(var(--color-neutral),var(--alpha-background-heavy)) auto 1px}.graphiql-button,button.graphiql-button{background-color:hsla(var(--color-neutral),var(--alpha-background-light));border:none;border-radius:var(--border-radius-4);color:hsla(var(--color-neutral),1);cursor:pointer;font-size:var(--font-size-body);padding:var(--px-8) var(--px-12)}:is(.graphiql-button,button.graphiql-button):hover,:is(.graphiql-button,button.graphiql-button):active{background-color:hsla(var(--color-neutral),var(--alpha-background-medium))}:is(.graphiql-button,button.graphiql-button):focus{outline:hsla(var(--color-neutral),var(--alpha-background-heavy)) auto 1px}.graphiql-button-success:is(.graphiql-button,button.graphiql-button){background-color:hsla(var(--color-success),var(--alpha-background-heavy))}.graphiql-button-error:is(.graphiql-button,button.graphiql-button){background-color:hsla(var(--color-error),var(--alpha-background-heavy))}.graphiql-button-group{background-color:hsla(var(--color-neutral),var(--alpha-background-light));border-radius:calc(var(--border-radius-4) + var(--px-4));display:flex;padding:var(--px-4)}.graphiql-button-group>button.graphiql-button{background-color:transparent}.graphiql-button-group>button.graphiql-button:hover{background-color:hsla(var(--color-neutral),var(--alpha-background-light))}.graphiql-button-group>button.graphiql-button.active{background-color:hsl(var(--color-base));cursor:default}.graphiql-button-group>*+*{margin-left:var(--px-8)}.graphiql-dialog-overlay{position:fixed;inset:0;background-color:hsla(var(--color-neutral),var(--alpha-background-heavy));z-index:10}.graphiql-dialog{background-color:hsl(var(--color-base));border:var(--popover-border);border-radius:var(--border-radius-12);box-shadow:var(--popover-box-shadow);margin:0;max-height:80vh;max-width:80vw;overflow:auto;padding:0;width:unset;transform:translate(-50%,-50%);top:50%;left:50%;position:fixed;z-index:10}.graphiql-dialog-close>svg{color:hsla(var(--color-neutral),var(--alpha-secondary));display:block;height:var(--px-12);padding:var(--px-12);width:var(--px-12)}.graphiql-dropdown-content{background-color:hsl(var(--color-base));border:var(--popover-border);border-radius:var(--border-radius-8);box-shadow:var(--popover-box-shadow);font-size:inherit;max-width:250px;padding:var(--px-4);font-family:var(--font-family);color:hsl(var(--color-neutral));max-height:min(calc(var(--radix-dropdown-menu-content-available-height) - 10px),400px);overflow-y:scroll}.graphiql-dropdown-item{border-radius:var(--border-radius-4);font-size:inherit;margin:var(--px-4);overflow:hidden;padding:var(--px-6) var(--px-8);text-overflow:ellipsis;white-space:nowrap;outline:none;cursor:pointer;line-height:var(--line-height)}.graphiql-dropdown-item[data-selected],.graphiql-dropdown-item[data-current-nav],.graphiql-dropdown-item:hover{background-color:hsla(var(--color-neutral),var(--alpha-background-light));color:inherit}.graphiql-dropdown-item:not(:first-child){margin-top:0}:is(.graphiql-markdown-description,.graphiql-markdown-deprecation,.CodeMirror-hint-information-description,.CodeMirror-hint-information-deprecation-reason,.CodeMirror-info .info-description,.CodeMirror-info .info-deprecation) blockquote{margin-left:0;margin-right:0;padding-left:var(--px-8)}:is(.graphiql-markdown-description,.graphiql-markdown-deprecation,.CodeMirror-hint-information-description,.CodeMirror-hint-information-deprecation-reason,.CodeMirror-info .info-description,.CodeMirror-info .info-deprecation) code,:is(.graphiql-markdown-description,.graphiql-markdown-deprecation,.CodeMirror-hint-information-description,.CodeMirror-hint-information-deprecation-reason,.CodeMirror-info .info-description,.CodeMirror-info .info-deprecation) pre{border-radius:var(--border-radius-4);font-family:var(--font-family-mono);font-size:var(--font-size-inline-code)}:is(.graphiql-markdown-description,.graphiql-markdown-deprecation,.CodeMirror-hint-information-description,.CodeMirror-hint-information-deprecation-reason,.CodeMirror-info .info-description,.CodeMirror-info .info-deprecation) code{padding:var(--px-2)}:is(.graphiql-markdown-description,.graphiql-markdown-deprecation,.CodeMirror-hint-information-description,.CodeMirror-hint-information-deprecation-reason,.CodeMirror-info .info-description,.CodeMirror-info .info-deprecation) pre{overflow:auto;padding:var(--px-6) var(--px-8)}:is(.graphiql-markdown-description,.graphiql-markdown-deprecation,.CodeMirror-hint-information-description,.CodeMirror-hint-information-deprecation-reason,.CodeMirror-info .info-description,.CodeMirror-info .info-deprecation) pre code{background-color:initial;border-radius:0;padding:0}:is(.graphiql-markdown-description,.graphiql-markdown-deprecation,.CodeMirror-hint-information-description,.CodeMirror-hint-information-deprecation-reason,.CodeMirror-info .info-description,.CodeMirror-info .info-deprecation) ol,:is(.graphiql-markdown-description,.graphiql-markdown-deprecation,.CodeMirror-hint-information-description,.CodeMirror-hint-information-deprecation-reason,.CodeMirror-info .info-description,.CodeMirror-info .info-deprecation) ul{padding-left:var(--px-16)}:is(.graphiql-markdown-description,.graphiql-markdown-deprecation,.CodeMirror-hint-information-description,.CodeMirror-hint-information-deprecation-reason,.CodeMirror-info .info-description,.CodeMirror-info .info-deprecation) ol{list-style-type:decimal}:is(.graphiql-markdown-description,.graphiql-markdown-deprecation,.CodeMirror-hint-information-description,.CodeMirror-hint-information-deprecation-reason,.CodeMirror-info .info-description,.CodeMirror-info .info-deprecation) ul{list-style-type:disc}:is(.graphiql-markdown-description,.graphiql-markdown-deprecation,.CodeMirror-hint-information-description,.CodeMirror-hint-information-deprecation-reason,.CodeMirror-info .info-description,.CodeMirror-info .info-deprecation) img{border-radius:var(--border-radius-4);max-height:120px;max-width:100%}:is(.graphiql-markdown-description,.graphiql-markdown-deprecation,.CodeMirror-hint-information-description,.CodeMirror-hint-information-deprecation-reason,.CodeMirror-info .info-description,.CodeMirror-info .info-deprecation)>:first-child{margin-top:0}:is(.graphiql-markdown-description,.graphiql-markdown-deprecation,.CodeMirror-hint-information-description,.CodeMirror-hint-information-deprecation-reason,.CodeMirror-info .info-description,.CodeMirror-info .info-deprecation)>:last-child{margin-bottom:0}:is(.graphiql-markdown-description,.CodeMirror-hint-information-description,.CodeMirror-info .info-description) a{color:hsl(var(--color-primary));text-decoration:none}:is(.graphiql-markdown-description,.CodeMirror-hint-information-description,.CodeMirror-info .info-description) a:hover{text-decoration:underline}:is(.graphiql-markdown-description,.CodeMirror-hint-information-description,.CodeMirror-info .info-description) blockquote{border-left:1.5px solid hsla(var(--color-neutral),var(--alpha-tertiary))}:is(.graphiql-markdown-description,.CodeMirror-hint-information-description,.CodeMirror-info .info-description) code,:is(.graphiql-markdown-description,.CodeMirror-hint-information-description,.CodeMirror-info .info-description) pre{background-color:hsla(var(--color-neutral),var(--alpha-background-light));color:hsla(var(--color-neutral),1)}:is(.graphiql-markdown-description,.CodeMirror-hint-information-description,.CodeMirror-info .info-description)>*{margin:var(--px-12) 0}:is(.graphiql-markdown-deprecation,.CodeMirror-hint-information-deprecation-reason,.CodeMirror-info .info-deprecation) a{color:hsl(var(--color-warning));text-decoration:underline}:is(.graphiql-markdown-deprecation,.CodeMirror-hint-information-deprecation-reason,.CodeMirror-info .info-deprecation) blockquote{border-left:1.5px solid hsl(var(--color-warning))}:is(.graphiql-markdown-deprecation,.CodeMirror-hint-information-deprecation-reason,.CodeMirror-info .info-deprecation) code,:is(.graphiql-markdown-deprecation,.CodeMirror-hint-information-deprecation-reason,.CodeMirror-info .info-deprecation) pre{background-color:hsla(var(--color-warning),var(--alpha-background-heavy))}:is(.graphiql-markdown-deprecation,.CodeMirror-hint-information-deprecation-reason,.CodeMirror-info .info-deprecation)>*{margin:var(--px-8) 0}.graphiql-markdown-preview>:not(:first-child){display:none}.CodeMirror-hint-information-deprecation,.CodeMirror-info .info-deprecation{background-color:hsla(var(--color-warning),var(--alpha-background-light));border:1px solid hsl(var(--color-warning));border-radius:var(--border-radius-4);color:hsl(var(--color-warning));margin-top:var(--px-12);padding:var(--px-6) var(--px-8)}.CodeMirror-hint-information-deprecation-label,.CodeMirror-info .info-deprecation-label{font-size:var(--font-size-hint);font-weight:var(--font-weight-medium)}.CodeMirror-hint-information-deprecation-reason,.CodeMirror-info .info-deprecation-reason{margin-top:var(--px-6)}.graphiql-spinner{height:56px;margin:auto;margin-top:var(--px-16);width:56px}.graphiql-spinner:after{animation:rotation .8s linear 0s infinite;border:4px solid transparent;border-radius:100%;border-top:4px solid hsla(var(--color-neutral),var(--alpha-tertiary));content:"";display:inline-block;height:46px;vertical-align:middle;width:46px}@keyframes rotation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.graphiql-tooltip{background:hsl(var(--color-base));border:var(--popover-border);border-radius:var(--border-radius-4);box-shadow:var(--popover-box-shadow);color:hsl(var(--color-neutral));font-size:inherit;padding:var(--px-4) var(--px-6);font-family:var(--font-family)}.graphiql-tabs{display:flex;align-items:center;overflow-x:auto;padding:var(--px-12)}.graphiql-tabs>:not(:first-child){margin-left:var(--px-12)}.graphiql-tab{align-items:stretch;border-radius:var(--border-radius-8);color:hsla(var(--color-neutral),var(--alpha-secondary));display:flex}.graphiql-tab>button.graphiql-tab-close{visibility:hidden}.graphiql-tab.graphiql-tab-active>button.graphiql-tab-close,.graphiql-tab:hover>button.graphiql-tab-close,.graphiql-tab:focus-within>button.graphiql-tab-close{visibility:unset}.graphiql-tab.graphiql-tab-active{background-color:hsla(var(--color-neutral),var(--alpha-background-heavy));color:hsla(var(--color-neutral),1)}button.graphiql-tab-button{padding:var(--px-4) 0 var(--px-4) var(--px-8)}button.graphiql-tab-close{align-items:center;display:flex;padding:var(--px-4) var(--px-8)}button.graphiql-tab-close>svg{height:var(--px-8);width:var(--px-8)}.graphiql-history-header{font-size:var(--font-size-h2);font-weight:var(--font-weight-medium);display:flex;justify-content:space-between;align-items:center}.graphiql-history-header button{font-size:var(--font-size-inline-code);padding:var(--px-6) var(--px-10)}.graphiql-history-items{margin:var(--px-16) 0 0;list-style:none;padding:0}.graphiql-history-item{border-radius:var(--border-radius-4);color:hsla(var(--color-neutral),var(--alpha-secondary));display:flex;font-size:var(--font-size-inline-code);font-family:var(--font-family-mono);height:34px}.graphiql-history-item:hover{color:hsla(var(--color-neutral),1);background-color:hsla(var(--color-neutral),var(--alpha-background-light))}.graphiql-history-item:not(:first-child){margin-top:var(--px-4)}.graphiql-history-item.editable{background-color:hsla(var(--color-primary),var(--alpha-background-medium))}.graphiql-history-item.editable>input{background:transparent;border:none;flex:1;margin:0;outline:none;padding:0 var(--px-10);width:100%}.graphiql-history-item.editable>input::placeholder{color:hsla(var(--color-neutral),var(--alpha-secondary))}.graphiql-history-item.editable>button{color:hsl(var(--color-primary));padding:0 var(--px-10)}.graphiql-history-item.editable>button:active{background-color:hsla(var(--color-primary),var(--alpha-background-heavy))}.graphiql-history-item.editable>button:focus{outline:hsl(var(--color-primary)) auto 1px}.graphiql-history-item.editable>button>svg{display:block}button.graphiql-history-item-label{flex:1;padding:var(--px-8) var(--px-10);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}button.graphiql-history-item-action{align-items:center;color:hsla(var(--color-neutral),var(--alpha-secondary));display:flex;padding:var(--px-8) var(--px-6)}button.graphiql-history-item-action:hover{color:hsla(var(--color-neutral),1)}button.graphiql-history-item-action>svg{height:14px;width:14px}.graphiql-history-item-spacer{height:var(--px-16)}.graphiql-doc-explorer-default-value{color:hsl(var(--color-success))}a.graphiql-doc-explorer-type-name{color:hsl(var(--color-warning));text-decoration:none}a.graphiql-doc-explorer-type-name:hover{text-decoration:underline}a.graphiql-doc-explorer-type-name:focus{outline:hsl(var(--color-warning)) auto 1px}.graphiql-doc-explorer-argument>*+*{margin-top:var(--px-12)}.graphiql-doc-explorer-argument-name{color:hsl(var(--color-secondary))}.graphiql-doc-explorer-argument-deprecation{background-color:hsla(var(--color-warning),var(--alpha-background-light));border:1px solid hsl(var(--color-warning));border-radius:var(--border-radius-4);color:hsl(var(--color-warning));padding:var(--px-8)}.graphiql-doc-explorer-argument-deprecation-label{font-size:var(--font-size-hint);font-weight:var(--font-weight-medium)}.graphiql-doc-explorer-deprecation{background-color:hsla(var(--color-warning),var(--alpha-background-light));border:1px solid hsl(var(--color-warning));border-radius:var(--px-4);color:hsl(var(--color-warning));padding:var(--px-8)}.graphiql-doc-explorer-deprecation-label{font-size:var(--font-size-hint);font-weight:var(--font-weight-medium)}.graphiql-doc-explorer-directive{color:hsl(var(--color-secondary))}.graphiql-doc-explorer-section-title{align-items:center;display:flex;font-size:var(--font-size-hint);font-weight:var(--font-weight-medium);line-height:1}.graphiql-doc-explorer-section-title>svg{height:var(--px-16);margin-right:var(--px-8);width:var(--px-16)}.graphiql-doc-explorer-section-content{margin-left:var(--px-8);margin-top:var(--px-16)}.graphiql-doc-explorer-section-content>*+*{margin-top:var(--px-16)}.graphiql-doc-explorer-root-type{color:hsl(var(--color-info))}.graphiql-doc-explorer-search{color:hsla(var(--color-neutral),var(--alpha-secondary))}.graphiql-doc-explorer-search:not([data-state="idle"]){border:var(--popover-border);border-radius:var(--border-radius-4);box-shadow:var(--popover-box-shadow);color:hsla(var(--color-neutral),1)}.graphiql-doc-explorer-search:not([data-state="idle"]) .graphiql-doc-explorer-search-input{background:hsl(var(--color-base))}.graphiql-doc-explorer-search-input{align-items:center;background-color:hsla(var(--color-neutral),var(--alpha-background-light));border-radius:var(--border-radius-4);display:flex;padding:var(--px-8) var(--px-12)}.graphiql-doc-explorer-search [role=combobox]{border:none;background-color:transparent;margin-left:var(--px-4);width:100%}.graphiql-doc-explorer-search [role=combobox]:focus{outline:none}.graphiql-doc-explorer-search [role=listbox]{background-color:hsl(var(--color-base));border:none;border-bottom-left-radius:var(--border-radius-4);border-bottom-right-radius:var(--border-radius-4);border-top:1px solid hsla(var(--color-neutral),var(--alpha-background-heavy));max-height:400px;overflow-y:auto;margin:0;font-size:var(--font-size-body);padding:var(--px-4);position:relative}.graphiql-doc-explorer-search [role=option]{border-radius:var(--border-radius-4);color:hsla(var(--color-neutral),var(--alpha-secondary));overflow-x:hidden;padding:var(--px-8) var(--px-12);text-overflow:ellipsis;white-space:nowrap;cursor:pointer}.graphiql-doc-explorer-search [role=option][data-headlessui-state=active]{background-color:hsla(var(--color-neutral),var(--alpha-background-light))}.graphiql-doc-explorer-search [role=option]:hover{background-color:hsla(var(--color-neutral),var(--alpha-background-medium))}.graphiql-doc-explorer-search [role=option][data-headlessui-state=active]:hover{background-color:hsla(var(--color-neutral),var(--alpha-background-heavy))}:is(.graphiql-doc-explorer-search [role="option"])+:is(.graphiql-doc-explorer-search [role="option"]){margin-top:var(--px-4)}.graphiql-doc-explorer-search-type{color:hsl(var(--color-info))}.graphiql-doc-explorer-search-field{color:hsl(var(--color-warning))}.graphiql-doc-explorer-search-argument{color:hsl(var(--color-secondary))}.graphiql-doc-explorer-search-divider{color:hsla(var(--color-neutral),var(--alpha-secondary));font-size:var(--font-size-hint);font-weight:var(--font-weight-medium);margin-top:var(--px-8);padding:var(--px-8) var(--px-12)}.graphiql-doc-explorer-search-empty{color:hsla(var(--color-neutral),var(--alpha-secondary));padding:var(--px-8) var(--px-12)}a.graphiql-doc-explorer-field-name{color:hsl(var(--color-info));text-decoration:none}a.graphiql-doc-explorer-field-name:hover{text-decoration:underline}a.graphiql-doc-explorer-field-name:focus{outline:hsl(var(--color-info)) auto 1px}.graphiql-doc-explorer-item>:not(:first-child){margin-top:var(--px-12)}.graphiql-doc-explorer-argument-multiple{margin-left:var(--px-8)}.graphiql-doc-explorer-enum-value{color:hsl(var(--color-info))}.graphiql-doc-explorer-header{display:flex;justify-content:space-between;position:relative}.graphiql-doc-explorer-header:focus-within .graphiql-doc-explorer-title{visibility:hidden}.graphiql-doc-explorer-header:focus-within .graphiql-doc-explorer-back:not(:focus){color:transparent}.graphiql-doc-explorer-header-content{display:flex;flex-direction:column;min-width:0}.graphiql-doc-explorer-search{position:absolute;right:0;top:0}.graphiql-doc-explorer-search:focus-within{left:0}.graphiql-doc-explorer-search [role=combobox]{height:24px;width:4ch}.graphiql-doc-explorer-search [role=combobox]:focus{width:100%}a.graphiql-doc-explorer-back{align-items:center;color:hsla(var(--color-neutral),var(--alpha-secondary));display:flex;text-decoration:none}a.graphiql-doc-explorer-back:hover{text-decoration:underline}a.graphiql-doc-explorer-back:focus{outline:hsla(var(--color-neutral),var(--alpha-secondary)) auto 1px}a.graphiql-doc-explorer-back:focus+.graphiql-doc-explorer-title{visibility:unset}a.graphiql-doc-explorer-back>svg{height:var(--px-8);margin-right:var(--px-8);width:var(--px-8)}.graphiql-doc-explorer-title{font-weight:var(--font-weight-medium);font-size:var(--font-size-h2);overflow-x:hidden;text-overflow:ellipsis;white-space:nowrap}.graphiql-doc-explorer-title:not(:first-child){font-size:var(--font-size-h3);margin-top:var(--px-8)}.graphiql-doc-explorer-content>*{color:hsla(var(--color-neutral),var(--alpha-secondary));margin-top:var(--px-20)}.graphiql-doc-explorer-error{background-color:hsla(var(--color-error),var(--alpha-background-heavy));border:1px solid hsl(var(--color-error));border-radius:var(--border-radius-8);color:hsl(var(--color-error));padding:var(--px-8) var(--px-12)}.CodeMirror{font-family:monospace;height:300px;color:#000;direction:ltr}.CodeMirror-lines{padding:4px 0}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{padding:0 4px}.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{background-color:#fff}.CodeMirror-gutters{border-right:1px solid #ddd;background-color:#f7f7f7;white-space:nowrap}.CodeMirror-linenumber{padding:0 3px 0 5px;min-width:20px;text-align:right;color:#999;white-space:nowrap}.CodeMirror-guttermarker{color:#000}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror-cursor{border-left:1px solid black;border-right:none;width:0}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.cm-fat-cursor .CodeMirror-cursor{width:auto;border:0!important;background:#7e7}.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-fat-cursor .CodeMirror-line::selection,.cm-fat-cursor .CodeMirror-line>span::selection,.cm-fat-cursor .CodeMirror-line>span>span::selection{background:transparent}.cm-fat-cursor .CodeMirror-line::-moz-selection,.cm-fat-cursor .CodeMirror-line>span::-moz-selection,.cm-fat-cursor .CodeMirror-line>span>span::-moz-selection{background:transparent}.cm-fat-cursor{caret-color:transparent}@-moz-keyframes blink{50%{background-color:transparent}}@-webkit-keyframes blink{50%{background-color:transparent}}@keyframes blink{50%{background-color:transparent}}.cm-tab{display:inline-block;text-decoration:inherit}.CodeMirror-rulers{position:absolute;left:0;right:0;top:-50px;bottom:0;overflow:hidden}.CodeMirror-ruler{border-left:1px solid #ccc;top:0;bottom:0;position:absolute}.cm-s-default .cm-header{color:#00f}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:700}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:#00f}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-variable-3,.cm-s-default .cm-type{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta,.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-s-default .cm-error,.cm-invalidchar{color:red}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0b0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#a22}.CodeMirror-matchingtag{background:rgba(255,150,0,.3)}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{position:relative;overflow:hidden;background:white}.CodeMirror-scroll{overflow:scroll!important;margin-bottom:-50px;margin-right:-50px;padding-bottom:50px;height:100%;outline:none;position:relative;z-index:0}.CodeMirror-sizer{position:relative;border-right:50px solid transparent}.CodeMirror-vscrollbar,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{position:absolute;z-index:6;display:none;outline:none}.CodeMirror-vscrollbar{right:0;top:0;overflow-x:hidden;overflow-y:scroll}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-y:hidden;overflow-x:scroll}.CodeMirror-scrollbar-filler{right:0;bottom:0}.CodeMirror-gutter-filler{left:0;bottom:0}.CodeMirror-gutters{position:absolute;left:0;top:0;min-height:100%;z-index:3}.CodeMirror-gutter{white-space:normal;height:100%;display:inline-block;vertical-align:top;margin-bottom:-50px}.CodeMirror-gutter-wrapper{position:absolute;z-index:4;background:none!important;border:none!important}.CodeMirror-gutter-background{position:absolute;top:0;bottom:0;z-index:4}.CodeMirror-gutter-elt{position:absolute;cursor:default;z-index:4}.CodeMirror-gutter-wrapper ::selection{background-color:transparent}.CodeMirror-gutter-wrapper ::-moz-selection{background-color:transparent}.CodeMirror-lines{cursor:text;min-height:1px}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{-moz-border-radius:0;-webkit-border-radius:0;border-radius:0;border-width:0;background:transparent;font-family:inherit;font-size:inherit;margin:0;white-space:pre;word-wrap:normal;line-height:inherit;color:inherit;z-index:2;position:relative;overflow:visible;-webkit-tap-highlight-color:transparent;-webkit-font-variant-ligatures:contextual;font-variant-ligatures:contextual}.CodeMirror-wrap pre.CodeMirror-line,.CodeMirror-wrap pre.CodeMirror-line-like{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{position:absolute;left:0;right:0;top:0;bottom:0;z-index:0}.CodeMirror-linewidget{position:relative;z-index:2;padding:.1px}.CodeMirror-rtl pre{direction:rtl}.CodeMirror-code{outline:none}.CodeMirror-scroll,.CodeMirror-sizer,.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber{-moz-box-sizing:content-box;box-sizing:content-box}.CodeMirror-measure{position:absolute;width:100%;height:0;overflow:hidden;visibility:hidden}.CodeMirror-cursor{position:absolute;pointer-events:none}.CodeMirror-measure pre{position:static}div.CodeMirror-cursors{visibility:hidden;position:relative;z-index:3}div.CodeMirror-dragcursors,.CodeMirror-focused div.CodeMirror-cursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:#d7d4f0}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}.cm-searching{background-color:#ffa;background-color:#ff06}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:""}span.CodeMirror-selectedtext{background:none}.graphiql-container .CodeMirror{height:100%;position:absolute;width:100%}.graphiql-container .CodeMirror{font-family:var(--font-family-mono)}.graphiql-container .CodeMirror,.graphiql-container .CodeMirror-gutters{background:none;background-color:var(--editor-background, hsl(var(--color-base)))}.graphiql-container .CodeMirror-linenumber{padding:0}.graphiql-container .CodeMirror-gutters{border:none}.cm-s-graphiql{color:hsla(var(--color-neutral),var(--alpha-tertiary))}.cm-s-graphiql .cm-keyword{color:hsl(var(--color-primary))}.cm-s-graphiql .cm-def{color:hsl(var(--color-tertiary))}.cm-s-graphiql .cm-punctuation{color:hsla(var(--color-neutral),var(--alpha-tertiary))}.cm-s-graphiql .cm-variable{color:hsl(var(--color-secondary))}.cm-s-graphiql .cm-atom{color:hsl(var(--color-tertiary))}.cm-s-graphiql .cm-number{color:hsl(var(--color-success))}.cm-s-graphiql .cm-string{color:hsl(var(--color-warning))}.cm-s-graphiql .cm-builtin{color:hsl(var(--color-success))}.cm-s-graphiql .cm-string-2{color:hsl(var(--color-secondary))}.cm-s-graphiql .cm-attribute,.cm-s-graphiql .cm-meta{color:hsl(var(--color-tertiary))}.cm-s-graphiql .cm-property{color:hsl(var(--color-info))}.cm-s-graphiql .cm-qualifier{color:hsl(var(--color-secondary))}.cm-s-graphiql .cm-comment{color:hsla(var(--color-neutral),var(--alpha-secondary))}.cm-s-graphiql .cm-ws{color:hsla(var(--color-neutral),var(--alpha-tertiary))}.cm-s-graphiql .cm-invalidchar{color:hsl(var(--color-error))}.cm-s-graphiql .CodeMirror-cursor{border-left:2px solid hsla(var(--color-neutral),var(--alpha-secondary))}.cm-s-graphiql .CodeMirror-linenumber{color:hsla(var(--color-neutral),var(--alpha-tertiary))}.graphiql-container div.CodeMirror span.CodeMirror-matchingbracket,.graphiql-container div.CodeMirror span.CodeMirror-nonmatchingbracket{color:hsl(var(--color-warning))}.graphiql-container .CodeMirror-selected,.graphiql-container .CodeMirror-focused .CodeMirror-selected{background:hsla(var(--color-neutral),var(--alpha-background-heavy))}.graphiql-container .CodeMirror-dialog{background:inherit;color:inherit;left:0;right:0;overflow:hidden;padding:var(--px-2) var(--px-6);position:absolute;z-index:6}.graphiql-container .CodeMirror-dialog-top{border-bottom:1px solid hsla(var(--color-neutral),var(--alpha-background-heavy));padding-bottom:var(--px-12);top:0}.graphiql-container .CodeMirror-dialog-bottom{border-top:1px solid hsla(var(--color-neutral),var(--alpha-background-heavy));bottom:0;padding-top:var(--px-12)}.graphiql-container .CodeMirror-search-hint{display:none}.graphiql-container .CodeMirror-dialog input{border:1px solid hsla(var(--color-neutral),var(--alpha-background-heavy));border-radius:var(--border-radius-4);padding:var(--px-4)}.graphiql-container .CodeMirror-dialog input:focus{outline:hsl(var(--color-primary)) solid 2px}.graphiql-container .cm-searching{background-color:hsla(var(--color-warning),var(--alpha-background-light));padding-bottom:1.5px;padding-top:.5px}.CodeMirror-foldmarker{color:#00f;text-shadow:#b9f 1px 1px 2px,#b9f -1px -1px 2px,#b9f 1px -1px 2px,#b9f -1px 1px 2px;font-family:arial;line-height:.3;cursor:pointer}.CodeMirror-foldgutter{width:.7em}.CodeMirror-foldgutter-open,.CodeMirror-foldgutter-folded{cursor:pointer}.CodeMirror-foldgutter-open:after{content:"\u25BE"}.CodeMirror-foldgutter-folded:after{content:"\u25B8"}.CodeMirror-foldgutter{width:var(--px-12)}.CodeMirror-foldmarker{background-color:hsl(var(--color-info));border-radius:var(--border-radius-4);color:hsl(var(--color-base));font-family:inherit;margin:0 var(--px-4);padding:0 var(--px-8);text-shadow:none}.CodeMirror-foldgutter-open,.CodeMirror-foldgutter-folded{color:hsla(var(--color-neutral),var(--alpha-tertiary))}.CodeMirror-foldgutter-open:after,.CodeMirror-foldgutter-folded:after{margin:0 var(--px-2)}.graphiql-editor{height:100%;position:relative;width:100%}.graphiql-editor.hidden{left:-9999px;position:absolute;top:-9999px;visibility:hidden}.CodeMirror-lint-markers{width:16px}.CodeMirror-lint-tooltip{background-color:#ffd;border:1px solid black;border-radius:4px;color:#000;font-family:monospace;font-size:10pt;overflow:hidden;padding:2px 5px;position:fixed;white-space:pre;white-space:pre-wrap;z-index:100;max-width:600px;opacity:0;transition:opacity .4s;-moz-transition:opacity .4s;-webkit-transition:opacity .4s;-o-transition:opacity .4s;-ms-transition:opacity .4s}.CodeMirror-lint-mark{background-position:left bottom;background-repeat:repeat-x}.CodeMirror-lint-mark-warning{background-image:url(${Oe})}.CodeMirror-lint-mark-error{background-image:url(${Le})}.CodeMirror-lint-marker{background-position:center center;background-repeat:no-repeat;cursor:pointer;display:inline-block;height:16px;width:16px;vertical-align:middle;position:relative}.CodeMirror-lint-message{padding-left:18px;background-position:top left;background-repeat:no-repeat}.CodeMirror-lint-marker-warning,.CodeMirror-lint-message-warning{background-image:url(${De})}.CodeMirror-lint-marker-error,.CodeMirror-lint-message-error{background-image:url(${Me})}.CodeMirror-lint-marker-multiple{background-image:url(${Ie});background-repeat:no-repeat;background-position:right bottom;width:100%;height:100%}.CodeMirror-lint-line-error{background-color:#b74c5114}.CodeMirror-lint-line-warning{background-color:#ffd3001a}.CodeMirror-lint-mark-error,.CodeMirror-lint-mark-warning{background-repeat:repeat-x;background-size:10px 3px;background-position:0 95%}.cm-s-graphiql .CodeMirror-lint-mark-error{color:hsl(var(--color-error))}.CodeMirror-lint-mark-error{background-image:linear-gradient(45deg,transparent 65%,hsl(var(--color-error)) 80%,transparent 90%),linear-gradient(135deg,transparent 5%,hsl(var(--color-error)) 15%,transparent 25%),linear-gradient(135deg,transparent 45%,hsl(var(--color-error)) 55%,transparent 65%),linear-gradient(45deg,transparent 25%,hsl(var(--color-error)) 35%,transparent 50%)}.cm-s-graphiql .CodeMirror-lint-mark-warning{color:hsl(var(--color-warning))}.CodeMirror-lint-mark-warning{background-image:linear-gradient(45deg,transparent 65%,hsl(var(--color-warning)) 80%,transparent 90%),linear-gradient(135deg,transparent 5%,hsl(var(--color-warning)) 15%,transparent 25%),linear-gradient(135deg,transparent 45%,hsl(var(--color-warning)) 55%,transparent 65%),linear-gradient(45deg,transparent 25%,hsl(var(--color-warning)) 35%,transparent 50%)}.CodeMirror-lint-tooltip{background-color:hsl(var(--color-base));border:var(--popover-border);border-radius:var(--border-radius-8);box-shadow:var(--popover-box-shadow);font-size:var(--font-size-body);font-family:var(--font-family);max-width:600px;overflow:hidden;padding:var(--px-12)}.CodeMirror-lint-message-error,.CodeMirror-lint-message-warning{background-image:none;padding:0}.CodeMirror-lint-message-error{color:hsl(var(--color-error))}.CodeMirror-lint-message-warning{color:hsl(var(--color-warning))}.CodeMirror-hints{position:absolute;z-index:10;overflow:hidden;list-style:none;margin:0;padding:2px;-webkit-box-shadow:2px 3px 5px rgba(0,0,0,.2);-moz-box-shadow:2px 3px 5px rgba(0,0,0,.2);box-shadow:2px 3px 5px #0003;border-radius:3px;border:1px solid silver;background:white;font-size:90%;font-family:monospace;max-height:20em;overflow-y:auto}.CodeMirror-hint{margin:0;padding:0 4px;border-radius:2px;white-space:pre;color:#000;cursor:pointer}li.CodeMirror-hint-active{background:#08f;color:#fff}.CodeMirror-hints{background:hsl(var(--color-base));border:var(--popover-border);border-radius:var(--border-radius-8);box-shadow:var(--popover-box-shadow);display:grid;font-family:var(--font-family);font-size:var(--font-size-body);grid-template-columns:auto fit-content(300px);max-height:264px;padding:0}.CodeMirror-hint{border-radius:var(--border-radius-4);color:hsla(var(--color-neutral),var(--alpha-secondary));grid-column:1 / 2;margin:var(--px-4);padding:var(--px-6) var(--px-8)!important}.CodeMirror-hint:not(:first-child){margin-top:0}li.CodeMirror-hint-active{background:hsla(var(--color-primary),var(--alpha-background-medium));color:hsl(var(--color-primary))}.CodeMirror-hint-information{border-left:1px solid hsla(var(--color-neutral),var(--alpha-background-heavy));grid-column:2 / 3;grid-row:1 / 99999;max-height:264px;overflow:auto;padding:var(--px-12)}.CodeMirror-hint-information-header{display:flex;align-items:baseline}.CodeMirror-hint-information-field-name{font-size:var(--font-size-h4);font-weight:var(--font-weight-medium)}.CodeMirror-hint-information-type-name-pill{border:1px solid hsla(var(--color-neutral),var(--alpha-tertiary));border-radius:var(--border-radius-4);color:hsla(var(--color-neutral),var(--alpha-secondary));margin-left:var(--px-6);padding:var(--px-4)}.CodeMirror-hint-information-type-name{color:inherit;text-decoration:none}.CodeMirror-hint-information-type-name:hover{text-decoration:underline dotted}.CodeMirror-hint-information-description{color:hsla(var(--color-neutral),var(--alpha-secondary));margin-top:var(--px-12)}.CodeMirror-info{background-color:hsl(var(--color-base));border:var(--popover-border);border-radius:var(--border-radius-8);box-shadow:var(--popover-box-shadow);color:hsla(var(--color-neutral),1);max-height:300px;max-width:400px;opacity:0;overflow:auto;padding:var(--px-12);position:fixed;transition:opacity .15s;z-index:10}.CodeMirror-info a{color:inherit;text-decoration:none}.CodeMirror-info a:hover{text-decoration:underline dotted}.CodeMirror-info .CodeMirror-info-header{display:flex;align-items:baseline}.CodeMirror-info .CodeMirror-info-header>.type-name,.CodeMirror-info .CodeMirror-info-header>.field-name,.CodeMirror-info .CodeMirror-info-header>.arg-name,.CodeMirror-info .CodeMirror-info-header>.directive-name,.CodeMirror-info .CodeMirror-info-header>.enum-value{font-size:var(--font-size-h4);font-weight:var(--font-weight-medium)}.CodeMirror-info .type-name-pill{border:1px solid hsla(var(--color-neutral),var(--alpha-tertiary));border-radius:var(--border-radius-4);color:hsla(var(--color-neutral),var(--alpha-secondary));margin-left:var(--px-6);padding:var(--px-4)}.CodeMirror-info .info-description{color:hsla(var(--color-neutral),var(--alpha-secondary));margin-top:var(--px-12);overflow:hidden}.CodeMirror-jump-token{text-decoration:underline dotted;cursor:pointer}.auto-inserted-leaf.cm-property{animation-duration:6s;animation-name:insertionFade;border-radius:var(--border-radius-4);padding:var(--px-2)}@keyframes insertionFade{0%,to{background-color:none}15%,85%{background-color:hsla(var(--color-warning),var(--alpha-background-light))}}button.graphiql-toolbar-button{display:flex;align-items:center;justify-content:center;height:var(--toolbar-width);width:var(--toolbar-width)}button.graphiql-toolbar-button.error{background:hsla(var(--color-error),var(--alpha-background-heavy))}.graphiql-execute-button-wrapper{position:relative}button.graphiql-execute-button{background-color:hsl(var(--color-primary));border:none;border-radius:var(--border-radius-8);cursor:pointer;height:var(--toolbar-width);padding:0;width:var(--toolbar-width)}button.graphiql-execute-button:hover{background-color:hsla(var(--color-primary),.9)}button.graphiql-execute-button:active{background-color:hsla(var(--color-primary),.8)}button.graphiql-execute-button:focus{outline:hsla(var(--color-primary),.8) auto 1px}button.graphiql-execute-button>svg{color:#fff;display:block;height:var(--px-16);margin:auto;width:var(--px-16)}button.graphiql-toolbar-menu{display:block;height:var(--toolbar-width);width:var(--toolbar-width)}\\n\\n/*!*********************************************************************************************************************!*\\\\\\n !*** css ../../../node_modules/css-loader/dist/cjs.js!../../../node_modules/postcss-loader/dist/cjs.js!./style.css ***!\\n \\\\*********************************************************************************************************************/\\n/* Everything */\\n.graphiql-container {\\n background-color: hsl(var(--color-base));\\n display: flex;\\n height: 100%;\\n margin: 0;\\n overflow: hidden;\\n width: 100%;\\n}\\n/* The sidebar */\\n.graphiql-container .graphiql-sidebar {\\n display: flex;\\n flex-direction: column;\\n justify-content: space-between;\\n padding: var(--px-8);\\n width: var(--sidebar-width);\\n}\\n.graphiql-container .graphiql-sidebar .graphiql-sidebar-section {\\n display: flex;\\n flex-direction: column;\\n gap: var(--px-8);\\n}\\n.graphiql-container .graphiql-sidebar button {\\n display: flex;\\n align-items: center;\\n justify-content: center;\\n color: hsla(var(--color-neutral), var(--alpha-secondary));\\n height: calc(var(--sidebar-width) - (2 * var(--px-8)));\\n width: calc(var(--sidebar-width) - (2 * var(--px-8)));\\n}\\n.graphiql-container .graphiql-sidebar button.active {\\n color: hsla(var(--color-neutral), 1);\\n}\\n.graphiql-container .graphiql-sidebar button:not(:first-child) {\\n margin-top: var(--px-4);\\n}\\n.graphiql-container .graphiql-sidebar button > svg {\\n height: var(--px-20);\\n width: var(--px-20);\\n}\\n/* The main content, i.e. everything except the sidebar */\\n.graphiql-container .graphiql-main {\\n display: flex;\\n flex: 1;\\n min-width: 0;\\n}\\n/* The current session and tabs */\\n.graphiql-container .graphiql-sessions {\\n background-color: hsla(var(--color-neutral), var(--alpha-background-light));\\n /* Adding the 8px of padding to the inner border radius of the query editor */\\n border-radius: calc(var(--border-radius-12) + var(--px-8));\\n display: flex;\\n flex-direction: column;\\n flex: 1;\\n max-height: 100%;\\n margin: var(--px-16);\\n margin-left: 0;\\n min-width: 0;\\n}\\n/* The session header containing tabs and the logo */\\n.graphiql-container .graphiql-session-header {\\n align-items: center;\\n display: flex;\\n justify-content: space-between;\\n height: var(--session-header-height);\\n}\\n/* The button to add a new tab */\\nbutton.graphiql-tab-add {\\n height: 100%;\\n padding: var(--px-4);\\n}\\nbutton.graphiql-tab-add > svg {\\n color: hsla(var(--color-neutral), var(--alpha-secondary));\\n display: block;\\n height: var(--px-16);\\n width: var(--px-16);\\n}\\n/* The right-hand-side of the session header */\\n.graphiql-container .graphiql-session-header-right {\\n align-items: center;\\n display: flex;\\n}\\n/* The GraphiQL logo */\\n.graphiql-container .graphiql-logo {\\n color: hsla(var(--color-neutral), var(--alpha-secondary));\\n font-size: var(--font-size-h4);\\n font-weight: var(--font-weight-medium);\\n padding: var(--px-12) var(--px-16);\\n}\\n/* Undo default link styling for the default GraphiQL logo link */\\n.graphiql-container .graphiql-logo .graphiql-logo-link {\\n color: hsla(var(--color-neutral), var(--alpha-secondary));\\n text-decoration: none;\\n}\\n/* The editor of the session */\\n.graphiql-container .graphiql-session {\\n display: flex;\\n flex: 1;\\n padding: 0 var(--px-8) var(--px-8);\\n}\\n/* All editors (query, variable, headers) */\\n.graphiql-container .graphiql-editors {\\n background-color: hsl(var(--color-base));\\n border-radius: calc(var(--border-radius-12));\\n box-shadow: var(--popover-box-shadow);\\n display: flex;\\n flex: 1;\\n flex-direction: column;\\n}\\n.graphiql-container .graphiql-editors.full-height {\\n margin-top: calc(var(--px-8) - var(--session-header-height));\\n}\\n/* The query editor and the toolbar */\\n.graphiql-container .graphiql-query-editor {\\n border-bottom: 1px solid\\n hsla(var(--color-neutral), var(--alpha-background-heavy));\\n padding: var(--px-16);\\n column-gap: var(--px-16);\\n display: flex;\\n width: 100%;\\n}\\n/* The vertical toolbar next to the query editor */\\n.graphiql-container .graphiql-toolbar {\\n width: var(--toolbar-width);\\n}\\n.graphiql-container .graphiql-toolbar > * + * {\\n margin-top: var(--px-8);\\n}\\n/* The toolbar icons */\\n.graphiql-toolbar-icon {\\n color: hsla(var(--color-neutral), var(--alpha-tertiary));\\n display: block;\\n height: calc(var(--toolbar-width) - (var(--px-8) * 2));\\n width: calc(var(--toolbar-width) - (var(--px-8) * 2));\\n}\\n/* The tab bar for editor tools */\\n.graphiql-container .graphiql-editor-tools {\\n cursor: row-resize;\\n display: flex;\\n width: 100%;\\n column-gap: var(--px-8);\\n padding: var(--px-8);\\n}\\n.graphiql-container .graphiql-editor-tools button {\\n color: hsla(var(--color-neutral), var(--alpha-secondary));\\n}\\n.graphiql-container .graphiql-editor-tools button.active {\\n color: hsla(var(--color-neutral), 1);\\n}\\n/* The tab buttons to switch between editor tools */\\n.graphiql-container\\n .graphiql-editor-tools\\n > button:not(.graphiql-toggle-editor-tools) {\\n padding: var(--px-8) var(--px-12);\\n}\\n.graphiql-container .graphiql-editor-tools .graphiql-toggle-editor-tools {\\n margin-left: auto;\\n}\\n/* An editor tool, e.g. variable or header editor */\\n.graphiql-container .graphiql-editor-tool {\\n flex: 1;\\n padding: var(--px-16);\\n}\\n/**\\n * The way CodeMirror editors are styled they overflow their containing\\n * element. For some OS-browser-combinations this might cause overlap issues,\\n * setting the position of this to \\`relative\\` makes sure this element will\\n * always be on top of any editors.\\n */\\n.graphiql-container .graphiql-toolbar,\\n.graphiql-container .graphiql-editor-tools,\\n.graphiql-container .graphiql-editor-tool {\\n position: relative;\\n}\\n/* The response view */\\n.graphiql-container .graphiql-response {\\n --editor-background: transparent;\\n display: flex;\\n width: 100%;\\n flex-direction: column;\\n}\\n/* The results editor wrapping container */\\n.graphiql-container .graphiql-response .result-window {\\n position: relative;\\n flex: 1;\\n}\\n/* The footer below the response view */\\n.graphiql-container .graphiql-footer {\\n border-top: 1px solid\\n hsla(var(--color-neutral), var(--alpha-background-heavy));\\n}\\n/* The plugin container */\\n.graphiql-container .graphiql-plugin {\\n border-left: 1px solid\\n hsla(var(--color-neutral), var(--alpha-background-heavy));\\n flex: 1;\\n overflow-y: auto;\\n padding: var(--px-16);\\n}\\n/* Generic drag bar for horizontal resizing */\\n.graphiql-horizontal-drag-bar {\\n width: var(--px-12);\\n cursor: col-resize;\\n}\\n.graphiql-horizontal-drag-bar:hover::after {\\n border: var(--px-2) solid\\n hsla(var(--color-neutral), var(--alpha-background-heavy));\\n border-radius: var(--border-radius-2);\\n content: \'\';\\n display: block;\\n height: 25%;\\n margin: 0 auto;\\n position: relative;\\n /* (100% - 25%) / 2 = 37.5% */\\n top: 37.5%;\\n width: 0;\\n}\\n.graphiql-container .graphiql-chevron-icon {\\n color: hsla(var(--color-neutral), var(--alpha-tertiary));\\n display: block;\\n height: var(--px-12);\\n margin: var(--px-12);\\n width: var(--px-12);\\n}\\n/* Generic spin animation */\\n.graphiql-spin {\\n animation: spin 0.8s linear 0s infinite;\\n}\\n@keyframes spin {\\n from {\\n transform: rotate(0deg);\\n }\\n to {\\n transform: rotate(360deg);\\n }\\n}\\n/* The header of the settings dialog */\\n.graphiql-dialog .graphiql-dialog-header {\\n align-items: center;\\n display: flex;\\n justify-content: space-between;\\n padding: var(--px-24);\\n}\\n/* The title of the settings dialog */\\n.graphiql-dialog .graphiql-dialog-title {\\n font-size: var(--font-size-h3);\\n font-weight: var(--font-weight-medium);\\n margin: 0;\\n}\\n/* A section inside the settings dialog */\\n.graphiql-dialog .graphiql-dialog-section {\\n align-items: center;\\n border-top: 1px solid\\n hsla(var(--color-neutral), var(--alpha-background-heavy));\\n display: flex;\\n justify-content: space-between;\\n padding: var(--px-24);\\n}\\n.graphiql-dialog .graphiql-dialog-section > :not(:first-child) {\\n margin-left: var(--px-24);\\n}\\n/* The section title in the settings dialog */\\n.graphiql-dialog .graphiql-dialog-section-title {\\n font-size: var(--font-size-h4);\\n font-weight: var(--font-weight-medium);\\n}\\n/* The section caption in the settings dialog */\\n.graphiql-dialog .graphiql-dialog-section-caption {\\n color: hsla(var(--color-neutral), var(--alpha-secondary));\\n}\\n.graphiql-dialog .graphiql-warning-text {\\n color: hsl(var(--color-warning));\\n font-weight: var(--font-weight-medium);\\n}\\n.graphiql-dialog .graphiql-table {\\n border-collapse: collapse;\\n width: 100%;\\n}\\n.graphiql-dialog .graphiql-table :is(th, td) {\\n border: 1px solid hsla(var(--color-neutral), var(--alpha-background-heavy));\\n padding: var(--px-8) var(--px-12);\\n}\\n/* A single key the short-key dialog */\\n.graphiql-dialog .graphiql-key {\\n background-color: hsla(var(--color-neutral), var(--alpha-background-medium));\\n border-radius: var(--border-radius-4);\\n padding: var(--px-4);\\n}\\n/* Avoid showing native tooltips for icons with titles */\\n.graphiql-container svg {\\n pointer-events: none;\\n}`,""]);const Re=K},2609: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,o,i){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(r)for(var s=0;s0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=i),n&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=n):c[2]=n),o&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=o):c[4]="".concat(o)),t.push(c))}},t}},8991: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}},9601:e=>{"use strict";e.exports=function(e){return e[1]}},3176:(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},o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=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){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=Object.assign||function(e){for(var t=1;t0?""+a+s:a;var u=r.type.toString(),d={kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:t}},type:(0,l.parseType)(u),directives:[]},f=void 0,p={};if(null!=n){var h=(0,l.visit)(n,{Variable:function(t){var n,r=t.name.value,o=(n=r,(e.props.definition.variableDefinitions||[]).find((function(e){return e.variable.name.value===n})));if(p[r]=p[r]+1||1,o)return o.defaultValue}}),m="NonNullType"===d.type.kind?i({},d,{type:d.type.type}):d;f=i({},m,{defaultValue:h})}else f=d;var g=Object.entries(p).filter((function(e){var t=o(e,2);return t[0],t[1]<2})).map((function(e){var t=o(e,2),n=t[0];return t[1],n}));if(f){var v=e.props.setArgValue(f,!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(c(y.variableDefinitions||[]),[f]).filter((function(e){return-1===g.indexOf(e.variable.name.value)})),A=i({},y,{variableDefinitions:b}),w=v.definitions.map((function(e){return y===e?A:e})),x=i({},v,{definitions:w});e.props.onCommit(x)}}}()},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":u.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)(u)?s.createElement("span",null,n?this.props.styleConfig.arrowOpen:this.props.styleConfig.arrowClosed):s.createElement(A,{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,x(r)?"*":"",": ",h," ")," "),d||s.createElement("span",null)," ")}}]),t}(s.PureComponent),D=function(e){function t(){var e,n,r;d(this,t);for(var o=arguments.length,i=Array(o),a=0;a0&&e.setState({displayFieldActions:!0})},onMouseLeave:function(){return e.setState({displayFieldActions:!1})}},(0,l.isObjectType)(f)?s.createElement("span",null,d?this.props.styleConfig.arrowOpen:this.props.styleConfig.arrowClosed):null,(0,l.isObjectType)(f)?null:s.createElement(A,{checked:!!d,styleConfig:this.props.styleConfig}),s.createElement("span",{style:{color:u.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=f.name+"Fragment",r=(m||[]).filter((function(e){return e.name.value.startsWith(n)})).length;r>0&&(n=""+n+r);var o=d&&d.selectionSet?d.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:f.name}},directives:[],selectionSet:{kind:"SelectionSet",selections:o}},l=e._modifyChildSelections(a,!1);if(l){var u=i({},l,{definitions:[].concat(c(l.definitions),[s])});e.props.onCommit(u)}else console.warn("Unable to complete extractFragment operation")},style:i({},u.styles.actionButtonStyle)},s.createElement("span",null,"\u2026")):null),d&&p.length?s.createElement("div",{style:{marginLeft:16},className:"graphiql-explorer-graphql-arguments"},p.map((function(t){return s.createElement(N,{key:t.name,parentField:r,arg:t,selection:d,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(d&&((0,l.isObjectType)(f)||(0,l.isInterfaceType)(f)||(0,l.isUnionType)(f))){var v=(0,l.isUnionType)(f)?{}:f.getFields(),y=d&&d.selectionSet?d.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=o.getType(t.typeCondition.name.value),r=t.name.value;return n?s.createElement(M,{key:r,fragment:t,selections:y,modifySelections:e._modifyChildSelections,schema:o,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:o,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)(f)||(0,l.isUnionType)(f)?o.getPossibleTypes(f).map((function(t){return s.createElement(D,{key:t.name,implementingType:t,selections:y,modifySelections:e._modifyChildSelections,schema:o,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),P={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"}},B=function(e){function t(){var e,n,r;d(this,t);for(var o=arguments.length,a=Array(o),s=0;s{"use strict";t.bC=void 0;var r,o=(r=n(3176))&&r.__esModule?r:{default:r};t.bC=o.default,o.default},3678:(e,t,n)=>{"use strict";n.d(t,{nW:()=>Ue,kh:()=>ze,Ly:()=>Et,$1:()=>dt,ge:()=>Kt,hw:()=>wt,y9:()=>zt,WU:()=>qe,pb:()=>je,Xs:()=>Ge,MD:()=>Pe,p:()=>Be,t:()=>Ve});var r,o,i,a,s,l,u,c,d,f,p,h,m,g,v,y,b,A,w,x,E,C,k,T,S,N,O,L,D=n(8867),M=n(5390),I=n(5115),R=n(9963),F=n(2437),P=n(9303),j=n(9546),V=n(9633);!function(e){e.is=function(e){return"string"==typeof e}}(r||(r={})),function(e){e.is=function(e){return"string"==typeof e}}(o||(o={})),function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647,e.is=function(t){return"number"==typeof t&&e.MIN_VALUE<=t&&t<=e.MAX_VALUE}}(i||(i={})),function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647,e.is=function(t){return"number"==typeof t&&e.MIN_VALUE<=t&&t<=e.MAX_VALUE}}(a||(a={})),function(e){e.create=function(e,t){return e===Number.MAX_VALUE&&(e=a.MAX_VALUE),t===Number.MAX_VALUE&&(t=a.MAX_VALUE),{line:e,character:t}},e.is=function(e){var t=e;return Me.objectLiteral(t)&&Me.uinteger(t.line)&&Me.uinteger(t.character)}}(s||(s={})),function(e){e.create=function(e,t,n,r){if(Me.uinteger(e)&&Me.uinteger(t)&&Me.uinteger(n)&&Me.uinteger(r))return{start:s.create(e,t),end:s.create(n,r)};if(s.is(e)&&s.is(t))return{start:e,end:t};throw new Error("Range#create called with invalid arguments[".concat(e,", ").concat(t,", ").concat(n,", ").concat(r,"]"))},e.is=function(e){var t=e;return Me.objectLiteral(t)&&s.is(t.start)&&s.is(t.end)}}(l||(l={})),function(e){e.create=function(e,t){return{uri:e,range:t}},e.is=function(e){var t=e;return Me.objectLiteral(t)&&l.is(t.range)&&(Me.string(t.uri)||Me.undefined(t.uri))}}(u||(u={})),function(e){e.create=function(e,t,n,r){return{targetUri:e,targetRange:t,targetSelectionRange:n,originSelectionRange:r}},e.is=function(e){var t=e;return Me.objectLiteral(t)&&l.is(t.targetRange)&&Me.string(t.targetUri)&&l.is(t.targetSelectionRange)&&(l.is(t.originSelectionRange)||Me.undefined(t.originSelectionRange))}}(c||(c={})),function(e){e.create=function(e,t,n,r){return{red:e,green:t,blue:n,alpha:r}},e.is=function(e){var t=e;return Me.objectLiteral(t)&&Me.numberRange(t.red,0,1)&&Me.numberRange(t.green,0,1)&&Me.numberRange(t.blue,0,1)&&Me.numberRange(t.alpha,0,1)}}(d||(d={})),function(e){e.create=function(e,t){return{range:e,color:t}},e.is=function(e){var t=e;return Me.objectLiteral(t)&&l.is(t.range)&&d.is(t.color)}}(f||(f={})),function(e){e.create=function(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}},e.is=function(e){var t=e;return Me.objectLiteral(t)&&Me.string(t.label)&&(Me.undefined(t.textEdit)||x.is(t))&&(Me.undefined(t.additionalTextEdits)||Me.typedArray(t.additionalTextEdits,x.is))}}(p||(p={})),function(e){e.Comment="comment",e.Imports="imports",e.Region="region"}(h||(h={})),function(e){e.create=function(e,t,n,r,o,i){var a={startLine:e,endLine:t};return Me.defined(n)&&(a.startCharacter=n),Me.defined(r)&&(a.endCharacter=r),Me.defined(o)&&(a.kind=o),Me.defined(i)&&(a.collapsedText=i),a},e.is=function(e){var t=e;return Me.objectLiteral(t)&&Me.uinteger(t.startLine)&&Me.uinteger(t.startLine)&&(Me.undefined(t.startCharacter)||Me.uinteger(t.startCharacter))&&(Me.undefined(t.endCharacter)||Me.uinteger(t.endCharacter))&&(Me.undefined(t.kind)||Me.string(t.kind))}}(m||(m={})),function(e){e.create=function(e,t){return{location:e,message:t}},e.is=function(e){var t=e;return Me.defined(t)&&u.is(t.location)&&Me.string(t.message)}}(g||(g={})),function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4}(v||(v={})),function(e){e.Unnecessary=1,e.Deprecated=2}(y||(y={})),function(e){e.is=function(e){var t=e;return Me.objectLiteral(t)&&Me.string(t.href)}}(b||(b={})),function(e){e.create=function(e,t,n,r,o,i){var a={range:e,message:t};return Me.defined(n)&&(a.severity=n),Me.defined(r)&&(a.code=r),Me.defined(o)&&(a.source=o),Me.defined(i)&&(a.relatedInformation=i),a},e.is=function(e){var t,n=e;return Me.defined(n)&&l.is(n.range)&&Me.string(n.message)&&(Me.number(n.severity)||Me.undefined(n.severity))&&(Me.integer(n.code)||Me.string(n.code)||Me.undefined(n.code))&&(Me.undefined(n.codeDescription)||Me.string(null===(t=n.codeDescription)||void 0===t?void 0:t.href))&&(Me.string(n.source)||Me.undefined(n.source))&&(Me.undefined(n.relatedInformation)||Me.typedArray(n.relatedInformation,g.is))}}(A||(A={})),function(e){e.create=function(e,t){for(var n=[],r=2;r0&&(o.arguments=n),o},e.is=function(e){var t=e;return Me.defined(t)&&Me.string(t.title)&&Me.string(t.command)}}(w||(w={})),function(e){e.replace=function(e,t){return{range:e,newText:t}},e.insert=function(e,t){return{range:{start:e,end:e},newText:t}},e.del=function(e){return{range:e,newText:""}},e.is=function(e){var t=e;return Me.objectLiteral(t)&&Me.string(t.newText)&&l.is(t.range)}}(x||(x={})),function(e){e.create=function(e,t,n){var r={label:e};return void 0!==t&&(r.needsConfirmation=t),void 0!==n&&(r.description=n),r},e.is=function(e){var t=e;return Me.objectLiteral(t)&&Me.string(t.label)&&(Me.boolean(t.needsConfirmation)||void 0===t.needsConfirmation)&&(Me.string(t.description)||void 0===t.description)}}(E||(E={})),function(e){e.is=function(e){var t=e;return Me.string(t)}}(C||(C={})),function(e){e.replace=function(e,t,n){return{range:e,newText:t,annotationId:n}},e.insert=function(e,t,n){return{range:{start:e,end:e},newText:t,annotationId:n}},e.del=function(e,t){return{range:e,newText:"",annotationId:t}},e.is=function(e){var t=e;return x.is(t)&&(E.is(t.annotationId)||C.is(t.annotationId))}}(k||(k={})),function(e){e.create=function(e,t){return{textDocument:e,edits:t}},e.is=function(e){var t=e;return Me.defined(t)&&U.is(t.textDocument)&&Array.isArray(t.edits)}}(T||(T={})),function(e){e.create=function(e,t,n){var r={kind:"create",uri:e};return void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(r.options=t),void 0!==n&&(r.annotationId=n),r},e.is=function(e){var t=e;return t&&"create"===t.kind&&Me.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||Me.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||Me.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||C.is(t.annotationId))}}(S||(S={})),function(e){e.create=function(e,t,n,r){var o={kind:"rename",oldUri:e,newUri:t};return void 0===n||void 0===n.overwrite&&void 0===n.ignoreIfExists||(o.options=n),void 0!==r&&(o.annotationId=r),o},e.is=function(e){var t=e;return t&&"rename"===t.kind&&Me.string(t.oldUri)&&Me.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||Me.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||Me.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||C.is(t.annotationId))}}(N||(N={})),function(e){e.create=function(e,t,n){var r={kind:"delete",uri:e};return void 0===t||void 0===t.recursive&&void 0===t.ignoreIfNotExists||(r.options=t),void 0!==n&&(r.annotationId=n),r},e.is=function(e){var t=e;return t&&"delete"===t.kind&&Me.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||Me.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||Me.boolean(t.options.ignoreIfNotExists)))&&(void 0===t.annotationId||C.is(t.annotationId))}}(O||(O={})),function(e){e.is=function(e){var t=e;return t&&(void 0!==t.changes||void 0!==t.documentChanges)&&(void 0===t.documentChanges||t.documentChanges.every((function(e){return Me.string(e.kind)?S.is(e)||N.is(e)||O.is(e):T.is(e)})))}}(L||(L={}));var B,q,U,z,H,W,G,Y,Q,K,X,Z,J,_,$,ee,te,ne,re,oe,ie,ae,se,le,ue,ce,de,fe,pe,he,me,ge,ve,ye,be,Ae,we,xe,Ee,Ce,ke,Te,Se,Ne,Oe,Le=function(){function e(e,t){this.edits=e,this.changeAnnotations=t}return e.prototype.insert=function(e,t,n){var r,o;if(void 0===n?r=x.insert(e,t):C.is(n)?(o=n,r=k.insert(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(n),r=k.insert(e,t,o)),this.edits.push(r),void 0!==o)return o},e.prototype.replace=function(e,t,n){var r,o;if(void 0===n?r=x.replace(e,t):C.is(n)?(o=n,r=k.replace(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(n),r=k.replace(e,t,o)),this.edits.push(r),void 0!==o)return o},e.prototype.delete=function(e,t){var n,r;if(void 0===t?n=x.del(e):C.is(t)?(r=t,n=k.del(e,t)):(this.assertChangeAnnotations(this.changeAnnotations),r=this.changeAnnotations.manage(t),n=k.del(e,r)),this.edits.push(n),void 0!==r)return r},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.prototype.assertChangeAnnotations=function(e){if(void 0===e)throw new Error("Text edit change is not configured to manage change annotations.")},e}(),De=function(){function e(e){this._annotations=void 0===e?Object.create(null):e,this._counter=0,this._size=0}return e.prototype.all=function(){return this._annotations},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.manage=function(e,t){var n;if(C.is(e)?n=e:(n=this.nextId(),t=e),void 0!==this._annotations[n])throw new Error("Id ".concat(n," is already in use."));if(void 0===t)throw new Error("No annotation provided for id ".concat(n));return this._annotations[n]=t,this._size++,n},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}();!function(){function e(e){var t=this;this._textEditChanges=Object.create(null),void 0!==e?(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new De(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach((function(e){if(T.is(e)){var n=new Le(e.edits,t._changeAnnotations);t._textEditChanges[e.textDocument.uri]=n}}))):e.changes&&Object.keys(e.changes).forEach((function(n){var r=new Le(e.changes[n]);t._textEditChanges[n]=r}))):this._workspaceEdit={}}Object.defineProperty(e.prototype,"edit",{get:function(){return this.initDocumentChanges(),void 0!==this._changeAnnotations&&(0===this._changeAnnotations.size?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),e.prototype.getTextEditChange=function(e){if(U.is(e)){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var t={uri:e.uri,version:e.version};if(!(r=this._textEditChanges[t.uri])){var n={textDocument:t,edits:o=[]};this._workspaceEdit.documentChanges.push(n),r=new Le(o,this._changeAnnotations),this._textEditChanges[t.uri]=r}return r}if(this.initChanges(),void 0===this._workspaceEdit.changes)throw new Error("Workspace edit is not configured for normal text edit changes.");var r;if(!(r=this._textEditChanges[e])){var o=[];this._workspaceEdit.changes[e]=o,r=new Le(o),this._textEditChanges[e]=r}return r},e.prototype.initDocumentChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._changeAnnotations=new De,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},e.prototype.initChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._workspaceEdit.changes=Object.create(null))},e.prototype.createFile=function(e,t,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var r,o,i;if(E.is(t)||C.is(t)?r=t:n=t,void 0===r?o=S.create(e,n):(i=C.is(r)?r:this._changeAnnotations.manage(r),o=S.create(e,n,i)),this._workspaceEdit.documentChanges.push(o),void 0!==i)return i},e.prototype.renameFile=function(e,t,n,r){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var o,i,a;if(E.is(n)||C.is(n)?o=n:r=n,void 0===o?i=N.create(e,t,r):(a=C.is(o)?o:this._changeAnnotations.manage(o),i=N.create(e,t,r,a)),this._workspaceEdit.documentChanges.push(i),void 0!==a)return a},e.prototype.deleteFile=function(e,t,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var r,o,i;if(E.is(t)||C.is(t)?r=t:n=t,void 0===r?o=O.create(e,n):(i=C.is(r)?r:this._changeAnnotations.manage(r),o=O.create(e,n,i)),this._workspaceEdit.documentChanges.push(o),void 0!==i)return i}}(),function(e){e.create=function(e){return{uri:e}},e.is=function(e){var t=e;return Me.defined(t)&&Me.string(t.uri)}}(B||(B={})),function(e){e.create=function(e,t){return{uri:e,version:t}},e.is=function(e){var t=e;return Me.defined(t)&&Me.string(t.uri)&&Me.integer(t.version)}}(q||(q={})),function(e){e.create=function(e,t){return{uri:e,version:t}},e.is=function(e){var t=e;return Me.defined(t)&&Me.string(t.uri)&&(null===t.version||Me.integer(t.version))}}(U||(U={})),function(e){e.create=function(e,t,n,r){return{uri:e,languageId:t,version:n,text:r}},e.is=function(e){var t=e;return Me.defined(t)&&Me.string(t.uri)&&Me.string(t.languageId)&&Me.integer(t.version)&&Me.string(t.text)}}(z||(z={})),function(e){e.PlainText="plaintext",e.Markdown="markdown",e.is=function(t){var n=t;return n===e.PlainText||n===e.Markdown}}(H||(H={})),function(e){e.is=function(e){var t=e;return Me.objectLiteral(e)&&H.is(t.kind)&&Me.string(t.value)}}(W||(W={})),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}(G||(G={})),function(e){e.PlainText=1,e.Snippet=2}(Y||(Y={})),function(e){e.Deprecated=1}(Q||(Q={})),function(e){e.create=function(e,t,n){return{newText:e,insert:t,replace:n}},e.is=function(e){var t=e;return t&&Me.string(t.newText)&&l.is(t.insert)&&l.is(t.replace)}}(K||(K={})),function(e){e.asIs=1,e.adjustIndentation=2}(X||(X={})),function(e){e.is=function(e){var t=e;return t&&(Me.string(t.detail)||void 0===t.detail)&&(Me.string(t.description)||void 0===t.description)}}(Z||(Z={})),function(e){e.create=function(e){return{label:e}}}(J||(J={})),function(e){e.create=function(e,t){return{items:e||[],isIncomplete:!!t}}}(_||(_={})),function(e){e.fromPlainText=function(e){return e.replace(/[\\\\`*_{}[\\]()#+\\-.!]/g,"\\\\$&")},e.is=function(e){var t=e;return Me.string(t)||Me.objectLiteral(t)&&Me.string(t.language)&&Me.string(t.value)}}($||($={})),function(e){e.is=function(e){var t=e;return!!t&&Me.objectLiteral(t)&&(W.is(t.contents)||$.is(t.contents)||Me.typedArray(t.contents,$.is))&&(void 0===e.range||l.is(e.range))}}(ee||(ee={})),function(e){e.create=function(e,t){return t?{label:e,documentation:t}:{label:e}}}(te||(te={})),function(e){e.create=function(e,t){for(var n=[],r=2;r=0;a--){var s=o[a],l=e.offsetAt(s.range.start),u=e.offsetAt(s.range.end);if(!(u<=i))throw new Error("Overlapping edit");r=r.substring(0,l)+s.newText+r.substring(u,r.length),i=l}return r}}(Oe||(Oe={}));var Me,Ie,Re=function(){function e(e,t,n,r){this._uri=e,this._languageId=t,this._version=n,this._content=r,this._lineOffsets=void 0}return Object.defineProperty(e.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),e.prototype.getText=function(e){if(e){var t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content},e.prototype.update=function(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0},e.prototype.getLineOffsets=function(){if(void 0===this._lineOffsets){for(var e=[],t=this._content,n=!0,r=0;r0&&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 s.create(0,e);for(;ne?r=o:n=o+1}var i=n-1;return s.create(i,e-t[i])},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+1this._start,this.getCurrentPosition=()=>this._pos,this.eol=()=>this._sourceText.length===this._pos,this.sol=()=>0===this._pos,this.peek=()=>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,o=null;return"string"==typeof e?(o=new RegExp(e,n?"i":"g").test(this._sourceText.slice(this._pos,this._pos+e.length)),r=e):e instanceof RegExp&&(o=this._sourceText.slice(this._pos).match(e),r=null==o?void 0:o[0]),!(null==o||!("string"==typeof e||o instanceof Array&&this._sourceText.startsWith(o[0],this._pos)))&&(t&&(this._start=this._pos,r&&r.length&&(this._pos+=r.length)),o)},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._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}}function Pe(e){return{ofRule:e}}function je(e,t){return{ofRule:e,isList:!0,separator:t}}function Ve(e,t){return{style:t,match:t=>t.kind===e}}function Be(e,t){return{style:t||"punctuation",match:t=>"Punctuation"===t.kind&&t.value===e}}const qe=e=>" "===e||"\\t"===e||","===e||"\\n"===e||"\\r"===e||"\\ufeff"===e||"\u00A0"===e,Ue={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:/^#.*/},ze={Document:[je("Definition")],Definition(e){switch(e.value){case"{":return"ShortQuery";case"query":return"Query";case"mutation":return"Mutation";case"subscription":return"Subscription";case"fragment":return I.Kind.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:[He("query"),Pe(We("def")),Pe("VariableDefinitions"),je("Directive"),"SelectionSet"],Mutation:[He("mutation"),Pe(We("def")),Pe("VariableDefinitions"),je("Directive"),"SelectionSet"],Subscription:[He("subscription"),Pe(We("def")),Pe("VariableDefinitions"),je("Directive"),"SelectionSet"],VariableDefinitions:[Be("("),je("VariableDefinition"),Be(")")],VariableDefinition:["Variable",Be(":"),"Type",Pe("DefaultValue")],Variable:[Be("$","variable"),We("variable")],DefaultValue:[Be("="),"Value"],SelectionSet:[Be("{"),je("Selection"),Be("}")],Selection:(e,t)=>"..."===e.value?t.match(/[\\s\\u00a0,]*(on\\b|@|{)/,!1)?"InlineFragment":"FragmentSpread":t.match(/[\\s\\u00a0,]*:/,!1)?"AliasedField":"Field",AliasedField:[We("property"),Be(":"),We("qualifier"),Pe("Arguments"),je("Directive"),Pe("SelectionSet")],Field:[We("property"),Pe("Arguments"),je("Directive"),Pe("SelectionSet")],Arguments:[Be("("),je("Argument"),Be(")")],Argument:[We("attribute"),Be(":"),"Value"],FragmentSpread:[Be("..."),We("def"),je("Directive")],InlineFragment:[Be("..."),Pe("TypeCondition"),je("Directive"),"SelectionSet"],FragmentDefinition:[He("fragment"),Pe(function(e,t){const n=e.match;return e.match=e=>{let r=!1;return n&&(r=n(e)),r&&t.every((t=>t.match&&!t.match(e)))},e}(We("def"),[He("on")])),"TypeCondition",je("Directive"),"SelectionSet"],TypeCondition:[He("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:[Ve("Number","number")],StringValue:[{style:"string",match:e=>"String"===e.kind,update(e,t){t.value.startsWith(\'"""\')&&(e.inBlockstring=!t.value.slice(3).endsWith(\'"""\'))}}],BooleanValue:[Ve("Name","builtin")],NullValue:[Ve("Name","keyword")],EnumValue:[We("string-2")],ListValue:[Be("["),je("Value"),Be("]")],ObjectValue:[Be("{"),je("ObjectField"),Be("}")],ObjectField:[We("attribute"),Be(":"),"Value"],Type:e=>"["===e.value?"ListType":"NonNullType",ListType:[Be("["),"Type",Be("]"),Pe(Be("!"))],NonNullType:["NamedType",Pe(Be("!"))],NamedType:[("atom",{style:"atom",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)}})],Directive:[Be("@","meta"),We("meta"),Pe("Arguments")],DirectiveDef:[He("directive"),Be("@","meta"),We("meta"),Pe("ArgumentsDef"),He("on"),je("DirectiveLocation",Be("|"))],InterfaceDef:[He("interface"),We("atom"),Pe("Implements"),je("Directive"),Be("{"),je("FieldDef"),Be("}")],Implements:[He("implements"),je("NamedType",Be("&"))],DirectiveLocation:[We("string-2")],SchemaDef:[He("schema"),je("Directive"),Be("{"),je("OperationTypeDef"),Be("}")],OperationTypeDef:[We("keyword"),Be(":"),We("atom")],ScalarDef:[He("scalar"),We("atom"),je("Directive")],ObjectTypeDef:[He("type"),We("atom"),Pe("Implements"),je("Directive"),Be("{"),je("FieldDef"),Be("}")],FieldDef:[We("property"),Pe("ArgumentsDef"),Be(":"),"Type",je("Directive")],ArgumentsDef:[Be("("),je("InputValueDef"),Be(")")],InputValueDef:[We("attribute"),Be(":"),"Type",Pe("DefaultValue"),je("Directive")],UnionDef:[He("union"),We("atom"),je("Directive"),Be("="),je("UnionMember",Be("|"))],UnionMember:["NamedType"],EnumDef:[He("enum"),We("atom"),je("Directive"),Be("{"),je("EnumValueDef"),Be("}")],EnumValueDef:[We("string-2"),je("Directive")],InputDef:[He("input"),We("atom"),je("Directive"),Be("{"),je("InputValueDef"),Be("}")],ExtendDef:[He("extend"),"ExtensionDefinition"],ExtensionDefinition(e){switch(e.value){case"schema":return I.Kind.SCHEMA_EXTENSION;case"scalar":return I.Kind.SCALAR_TYPE_EXTENSION;case"type":return I.Kind.OBJECT_TYPE_EXTENSION;case"interface":return I.Kind.INTERFACE_TYPE_EXTENSION;case"union":return I.Kind.UNION_TYPE_EXTENSION;case"enum":return I.Kind.ENUM_TYPE_EXTENSION;case"input":return I.Kind.INPUT_OBJECT_TYPE_EXTENSION}},[I.Kind.SCHEMA_EXTENSION]:["SchemaDef"],[I.Kind.SCALAR_TYPE_EXTENSION]:["ScalarDef"],[I.Kind.OBJECT_TYPE_EXTENSION]:["ObjectTypeDef"],[I.Kind.INTERFACE_TYPE_EXTENSION]:["InterfaceDef"],[I.Kind.UNION_TYPE_EXTENSION]:["UnionDef"],[I.Kind.ENUM_TYPE_EXTENSION]:["EnumDef"],[I.Kind.INPUT_OBJECT_TYPE_EXTENSION]:["InputDef"]};function He(e){return{style:"keyword",match:t=>"Name"===t.kind&&t.value===e}}function We(e){return{style:e,match:e=>"Name"===e.kind,update(e,t){e.name=t.value}}}function Ge(e={eatWhitespace:e=>e.eatWhile(qe),lexRules:Ue,parseRules:ze,editorConfig:{}}){return{startState(){const t={level:0,step:0,name:null,kind:null,type:null,rule:null,needsSeparator:!1,prevState:null};return Ke(e.parseRules,t,I.Kind.DOCUMENT),t},token:(t,n)=>function(e,t,n){var r;if(t.inBlockstring)return e.match(/.*"""/)?(t.inBlockstring=!1,"string"):(e.skipToEnd(),"string");const{lexRules:o,parseRules:i,eatWhitespace:a,editorConfig:s}=n;if(t.rule&&0===t.rule.length?Xe(t):t.needsAdvance&&(t.needsAdvance=!1,Ze(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 l=function(e,t){const n=Object.keys(e);for(let r=0;r0&&e.at(-1)=0;e--)t(n[e])}function nt(e){const t=Object.keys(e),n=t.length,r=new Array(n);for(let o=0;o!e.isDeprecated));return ot(ot(e.map((e=>({proximity:at(it(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))}(t,it(e.string))}function ot(e,t){const n=e.filter(t);return 0===n.length?e:n}function it(e){return e.toLowerCase().replaceAll(/\\W/g,"")}function at(e,t){let n=function(e,t){let n,r;const o=[],i=e.length,a=t.length;for(n=0;n<=i;n++)o[n]=[n];for(r=1;r<=a;r++)o[0][r]=r;for(n=1;n<=i;n++)for(r=1;r<=a;r++){const i=e[n-1]===t[r-1]?0:1;o[n][r]=Math.min(o[n-1][r]+1,o[n][r-1]+1,o[n-1][r-1]+i),n>1&&r>1&&e[n-1]===t[r-2]&&e[n-2]===t[r-1]&&(o[n][r]=Math.min(o[n][r],o[n-2][r-2]+i))}return o[i][a]}(t,e);return e.length>t.length&&(n-=e.length-t.length-1,n+=0===e.indexOf(t)?0:.5),n}const st={command:"editor.action.triggerSuggest",title:"Suggestions"},lt=e=>{const t=[];if(e)try{(0,D.Vn)((0,M.Qc)(e),{FragmentDefinition(e){t.push(e)}})}catch(e){return[]}return t},ut=[I.Kind.SCHEMA_DEFINITION,I.Kind.OPERATION_TYPE_DEFINITION,I.Kind.SCALAR_TYPE_DEFINITION,I.Kind.OBJECT_TYPE_DEFINITION,I.Kind.INTERFACE_TYPE_DEFINITION,I.Kind.UNION_TYPE_DEFINITION,I.Kind.ENUM_TYPE_DEFINITION,I.Kind.INPUT_OBJECT_TYPE_DEFINITION,I.Kind.DIRECTIVE_DEFINITION,I.Kind.SCHEMA_EXTENSION,I.Kind.SCALAR_TYPE_EXTENSION,I.Kind.OBJECT_TYPE_EXTENSION,I.Kind.INTERFACE_TYPE_EXTENSION,I.Kind.UNION_TYPE_EXTENSION,I.Kind.ENUM_TYPE_EXTENSION,I.Kind.INPUT_OBJECT_TYPE_EXTENSION],ct=e=>{let t=!1;if(e)try{(0,D.Vn)((0,M.Qc)(e),{enter(e){if("Document"!==e.kind)return!!ut.includes(e.kind)&&(t=!0,D.$_)}})}catch(e){return t}return t};function dt(e,t,n,r,o,i){var a;const s=Object.assign(Object.assign({},i),{schema:e}),l=r||function(e,t,n=0){let r=null,o=null,i=null;const a=gt(e,((e,a,s,l)=>{if(!(l!==t.line||e.getCurrentPosition()+n{var p;switch(t.kind){case $e.QUERY:case"ShortQuery":d=e.getQueryType();break;case $e.MUTATION:d=e.getMutationType();break;case $e.SUBSCRIPTION:d=e.getSubscriptionType();break;case $e.INLINE_FRAGMENT:case $e.FRAGMENT_DEFINITION:t.type&&(d=e.getType(t.type));break;case $e.FIELD:case $e.ALIASED_FIELD:d&&t.name?(a=c?et(e,c,t.name):null,d=a?a.type:null):a=null;break;case $e.SELECTION_SET:c=(0,R.xC)(d);break;case $e.DIRECTIVE:o=t.name?e.getDirective(t.name):null;break;case $e.INTERFACE_DEF:t.name&&(l=null,f=new R.oW({name:t.name,interfaces:[],fields:{}}));break;case $e.OBJECT_TYPE_DEF:t.name&&(f=null,l=new R.h6({name:t.name,interfaces:[],fields:{}}));break;case $e.ARGUMENTS:if(t.prevState)switch(t.prevState.kind){case $e.FIELD:r=a&&a.args;break;case $e.DIRECTIVE:r=o&&o.args;break;case $e.ALIASED_FIELD:{const n=null===(p=t.prevState)||void 0===p?void 0:p.name;if(!n){r=null;break}const o=c?et(e,c,n):null;if(!o){r=null;break}r=o.args;break}default:r=null}else r=null;break;case $e.ARGUMENT:if(r)for(let e=0;ee.value===t.name)):null;break;case $e.LIST_VALUE:const m=(0,R.tf)(s);s=m instanceof R.p2?m.ofType:null;break;case $e.OBJECT_VALUE:const g=(0,R.xC)(s);u=g instanceof R.sR?g.getFields():null;break;case $e.OBJECT_FIELD:const v=t.name&&u?u[t.name]:null;s=null==v?void 0:v.type;break;case $e.NAMED_TYPE:t.name&&(d=e.getType(t.name))}})),{argDef:n,argDefs:r,directiveDef:o,enumValue:i,fieldDef:a,inputType:s,objectFieldDefs:u,parentType:c,type:d,interfaceDef:f,objectTypeDef:l}}(e,l.state);if(p===$e.DOCUMENT)return c===vt.TYPE_SYSTEM?function(e){return rt(e,[{label:"extend",kind:Ie.Function},{label:"type",kind:Ie.Function},{label:"interface",kind:Ie.Function},{label:"union",kind:Ie.Function},{label:"input",kind:Ie.Function},{label:"scalar",kind:Ie.Function},{label:"schema",kind:Ie.Function}])}(l):function(e){return rt(e,[{label:"query",kind:Ie.Function},{label:"mutation",kind:Ie.Function},{label:"subscription",kind:Ie.Function},{label:"fragment",kind:Ie.Function},{label:"{",kind:Ie.Constructor}])}(l);if(p===$e.EXTEND_DEF)return function(e){return rt(e,[{label:"type",kind:Ie.Function},{label:"interface",kind:Ie.Function},{label:"union",kind:Ie.Function},{label:"input",kind:Ie.Function},{label:"scalar",kind:Ie.Function},{label:"schema",kind:Ie.Function}])}(l);if((null===(a=null==m?void 0:m.prevState)||void 0===a?void 0:a.kind)===$e.EXTENSION_DEFINITION&&u.name)return rt(l,[]);if((null==m?void 0:m.kind)===I.Kind.SCALAR_TYPE_EXTENSION)return rt(l,Object.values(e.getTypeMap()).filter(R.KA).map((e=>({label:e.name,kind:Ie.Function}))));if((null==m?void 0:m.kind)===I.Kind.OBJECT_TYPE_EXTENSION)return rt(l,Object.values(e.getTypeMap()).filter((e=>(0,R.lp)(e)&&!e.name.startsWith("__"))).map((e=>({label:e.name,kind:Ie.Function}))));if((null==m?void 0:m.kind)===I.Kind.INTERFACE_TYPE_EXTENSION)return rt(l,Object.values(e.getTypeMap()).filter(R.oT).map((e=>({label:e.name,kind:Ie.Function}))));if((null==m?void 0:m.kind)===I.Kind.UNION_TYPE_EXTENSION)return rt(l,Object.values(e.getTypeMap()).filter(R.EN).map((e=>({label:e.name,kind:Ie.Function}))));if((null==m?void 0:m.kind)===I.Kind.ENUM_TYPE_EXTENSION)return rt(l,Object.values(e.getTypeMap()).filter((e=>(0,R.EM)(e)&&!e.name.startsWith("__"))).map((e=>({label:e.name,kind:Ie.Function}))));if((null==m?void 0:m.kind)===I.Kind.INPUT_OBJECT_TYPE_EXTENSION)return rt(l,Object.values(e.getTypeMap()).filter(R.hL).map((e=>({label:e.name,kind:Ie.Function}))));if(p===$e.IMPLEMENTS||p===$e.NAMED_TYPE&&(null==m?void 0:m.kind)===$e.IMPLEMENTS)return function(e,t,n,r,o){if(t.needsSeparator)return[];const i=nt(n.getTypeMap()).filter(R.oT),a=i.map((({name:e})=>e)),s=new Set;gt(r,((e,t)=>{var r,i,l,u,c;if(t.name&&(t.kind!==$e.INTERFACE_DEF||a.includes(t.name)||s.add(t.name),t.kind===$e.NAMED_TYPE&&(null===(r=t.prevState)||void 0===r?void 0:r.kind)===$e.IMPLEMENTS))if(o.interfaceDef){if(null===(i=o.interfaceDef)||void 0===i?void 0:i.getInterfaces().find((({name:e})=>e===t.name)))return;const e=n.getType(t.name),r=null===(l=o.interfaceDef)||void 0===l?void 0:l.toConfig();o.interfaceDef=new R.oW(Object.assign(Object.assign({},r),{interfaces:[...r.interfaces,e||new R.oW({name:t.name,fields:{}})]}))}else if(o.objectTypeDef){if(null===(u=o.objectTypeDef)||void 0===u?void 0:u.getInterfaces().find((({name:e})=>e===t.name)))return;const e=n.getType(t.name),r=null===(c=o.objectTypeDef)||void 0===c?void 0:c.toConfig();o.objectTypeDef=new R.h6(Object.assign(Object.assign({},r),{interfaces:[...r.interfaces,e||new R.oW({name:t.name,fields:{}})]}))}}));const l=o.interfaceDef||o.objectTypeDef,u=((null==l?void 0:l.getInterfaces())||[]).map((({name:e})=>e));return rt(e,i.concat([...s].map((e=>({name:e})))).filter((({name:e})=>e!==(null==l?void 0:l.name)&&!u.includes(e))).map((e=>{const t={label:e.name,kind:Ie.Interface,type:e};return(null==e?void 0:e.description)&&(t.documentation=e.description),t})))}(l,u,e,t,g);if(p===$e.SELECTION_SET||p===$e.FIELD||p===$e.ALIASED_FIELD)return function(e,t,n){var r;if(t.parentType){const{parentType:o}=t;let i=[];return"getFields"in o&&(i=nt(o.getFields())),(0,R.Gv)(o)&&i.push(F.hU),o===(null===(r=null==n?void 0:n.schema)||void 0===r?void 0:r.getQueryType())&&i.push(F.Az,F.tF),rt(e,i.map(((e,t)=>{var r;const o={sortText:String(t)+e.name,label:e.name,detail:String(e.type),documentation:null!==(r=e.description)&&void 0!==r?r:void 0,deprecated:Boolean(e.deprecationReason),isDeprecated:Boolean(e.deprecationReason),deprecationReason:e.deprecationReason,kind:Ie.Field,type:e.type};if(null==n?void 0:n.fillLeafsOnComplete){const t=pt(e);t&&(o.insertText=e.name+t,o.insertTextFormat=Y.Snippet,o.command=st)}return o})))}return[]}(l,g,s);if(p===$e.ARGUMENTS||p===$e.ARGUMENT&&0===h){const{argDefs:e}=g;if(e)return rt(l,e.map((e=>{var t;return{label:e.name,insertText:e.name+": ",command:st,detail:String(e.type),documentation:null!==(t=e.description)&&void 0!==t?t:void 0,kind:Ie.Variable,type:e.type}})))}if((p===$e.OBJECT_VALUE||p===$e.OBJECT_FIELD&&0===h)&&g.objectFieldDefs){const e=nt(g.objectFieldDefs),t=p===$e.OBJECT_VALUE?Ie.Value:Ie.Field;return rt(l,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===$e.ENUM_VALUE||p===$e.LIST_VALUE&&1===h||p===$e.OBJECT_FIELD&&2===h||p===$e.ARGUMENT&&2===h)return function(e,t,n,r){const o=(0,R.xC)(t.inputType),i=mt(n,r,e).filter((e=>e.detail===o.name));return o instanceof R.mR?rt(e,o.getValues().map((e=>{var t;return{label:e.name,detail:String(o),documentation:null!==(t=e.description)&&void 0!==t?t:void 0,deprecated:Boolean(e.deprecationReason),isDeprecated:Boolean(e.deprecationReason),deprecationReason:e.deprecationReason,kind:Ie.EnumMember,type:o}})).concat(i)):o===P.EZ?rt(e,i.concat([{label:"true",detail:String(P.EZ),documentation:"Not false.",kind:Ie.Variable,type:P.EZ},{label:"false",detail:String(P.EZ),documentation:"Not true.",kind:Ie.Variable,type:P.EZ}])):i}(l,g,t,e);if(p===$e.VARIABLE&&1===h){const n=(0,R.xC)(g.inputType);return rt(l,mt(t,e,l).filter((e=>e.detail===(null==n?void 0:n.name))))}if(p===$e.TYPE_CONDITION&&1===h||p===$e.NAMED_TYPE&&null!=m&&m.kind===$e.TYPE_CONDITION)return function(e,t,n,r){let o;if(t.parentType)if((0,R.m0)(t.parentType)){const e=(0,R.fU)(t.parentType),r=n.getPossibleTypes(e),i=Object.create(null);for(const e of r)for(const t of e.getInterfaces())i[t.name]=t;o=r.concat(nt(i))}else o=[t.parentType];else o=nt(n.getTypeMap()).filter((e=>(0,R.Gv)(e)&&!e.name.startsWith("__")));return rt(e,o.map((e=>{const t=(0,R.xC)(e);return{label:String(e),documentation:(null==t?void 0:t.description)||"",kind:Ie.Field}})))}(l,g,e);if(p===$e.FRAGMENT_SPREAD&&1===h)return function(e,t,n,r,o){if(!r)return[];const i=n.getTypeMap(),a=function(e){let t;return tt(e,(e=>{switch(e.kind){case"Query":case"ShortQuery":case"Mutation":case"Subscription":case"FragmentDefinition":t=e}})),t}(e.state),s=function(e){const t=[];return gt(e,((e,n)=>{n.kind===$e.FRAGMENT_DEFINITION&&n.name&&n.type&&t.push({kind:$e.FRAGMENT_DEFINITION,name:{kind:I.Kind.NAME,value:n.name},selectionSet:{kind:$e.SELECTION_SET,selections:[]},typeCondition:{kind:$e.NAMED_TYPE,name:{kind:I.Kind.NAME,value:n.type}}})})),t}(r);o&&o.length>0&&s.push(...o);return rt(e,s.filter((e=>i[e.typeCondition.name.value]&&!(a&&a.kind===$e.FRAGMENT_DEFINITION&&a.name===e.name.value)&&(0,R.Gv)(t.parentType)&&(0,R.Gv)(i[e.typeCondition.name.value])&&(0,j.zR)(n,t.parentType,i[e.typeCondition.name.value]))).map((e=>({label:e.name.value,detail:String(i[e.typeCondition.name.value]),documentation:`fragment ${e.name.value} on ${e.typeCondition.name.value}`,kind:Ie.Field,type:i[e.typeCondition.name.value]}))))}(l,g,e,t,Array.isArray(o)?o:lt(o));const v=yt(u);if(c===vt.TYPE_SYSTEM&&!v.needsAdvance&&p===$e.NAMED_TYPE||p===$e.LIST_TYPE){if(v.kind===$e.FIELD_DEF)return rt(l,Object.values(e.getTypeMap()).filter((e=>(0,R.SZ)(e)&&!e.name.startsWith("__"))).map((e=>({label:e.name,kind:Ie.Function}))));if(v.kind===$e.INPUT_VALUE_DEF)return rt(l,Object.values(e.getTypeMap()).filter((e=>(0,R.j$)(e)&&!e.name.startsWith("__"))).map((e=>({label:e.name,kind:Ie.Function}))))}return p===$e.VARIABLE_DEFINITION&&2===h||p===$e.LIST_TYPE&&1===h||p===$e.NAMED_TYPE&&m&&(m.kind===$e.VARIABLE_DEFINITION||m.kind===$e.LIST_TYPE||m.kind===$e.NON_NULL_TYPE)?function(e,t,n){return rt(e,nt(t.getTypeMap()).filter(R.j$).map((e=>({label:e.name,documentation:e.description,kind:Ie.Variable}))))}(l,e):p===$e.DIRECTIVE?function(e,t,n,r){var o;if(null===(o=t.prevState)||void 0===o?void 0:o.kind){const r=n.getDirectives().filter((e=>function(e,t){if(!(null==e?void 0:e.kind))return!1;const{kind:n,prevState:r}=e,{locations:o}=t;switch(n){case $e.QUERY:return o.includes(V.B.QUERY);case $e.MUTATION:return o.includes(V.B.MUTATION);case $e.SUBSCRIPTION:return o.includes(V.B.SUBSCRIPTION);case $e.FIELD:case $e.ALIASED_FIELD:return o.includes(V.B.FIELD);case $e.FRAGMENT_DEFINITION:return o.includes(V.B.FRAGMENT_DEFINITION);case $e.FRAGMENT_SPREAD:return o.includes(V.B.FRAGMENT_SPREAD);case $e.INLINE_FRAGMENT:return o.includes(V.B.INLINE_FRAGMENT);case $e.SCHEMA_DEF:return o.includes(V.B.SCHEMA);case $e.SCALAR_DEF:return o.includes(V.B.SCALAR);case $e.OBJECT_TYPE_DEF:return o.includes(V.B.OBJECT);case $e.FIELD_DEF:return o.includes(V.B.FIELD_DEFINITION);case $e.INTERFACE_DEF:return o.includes(V.B.INTERFACE);case $e.UNION_DEF:return o.includes(V.B.UNION);case $e.ENUM_DEF:return o.includes(V.B.ENUM);case $e.ENUM_VALUE:return o.includes(V.B.ENUM_VALUE);case $e.INPUT_DEF:return o.includes(V.B.INPUT_OBJECT);case $e.INPUT_VALUE_DEF:switch(null==r?void 0:r.kind){case $e.ARGUMENTS_DEF:return o.includes(V.B.ARGUMENT_DEFINITION);case $e.INPUT_DEF:return o.includes(V.B.INPUT_FIELD_DEFINITION)}}return!1}(t.prevState,e)));return rt(e,r.map((e=>({label:e.name,documentation:e.description||"",kind:Ie.Function}))))}return[]}(l,u,e):[]}const ft=" {\\n $1\\n}",pt=e=>{const{type:t}=e;if((0,R.Gv)(t))return ft;if((0,R.HG)(t)&&(0,R.Gv)(t.ofType))return ft;if((0,R.zM)(t)){if((0,R.Gv)(t.ofType))return ft;if((0,R.HG)(t.ofType)&&(0,R.Gv)(t.ofType.ofType))return ft}return null},ht=(e,t)=>{var n,r,o,i,a,s,l,u,c,d;return(null===(n=e.prevState)||void 0===n?void 0:n.kind)===t?e.prevState:(null===(o=null===(r=e.prevState)||void 0===r?void 0:r.prevState)||void 0===o?void 0:o.kind)===t?e.prevState.prevState:(null===(s=null===(a=null===(i=e.prevState)||void 0===i?void 0:i.prevState)||void 0===a?void 0:a.prevState)||void 0===s?void 0:s.kind)===t?e.prevState.prevState.prevState:(null===(d=null===(c=null===(u=null===(l=e.prevState)||void 0===l?void 0:l.prevState)||void 0===u?void 0:u.prevState)||void 0===c?void 0:c.prevState)||void 0===d?void 0:d.kind)===t?e.prevState.prevState.prevState.prevState:void 0};function mt(e,t,n){let r,o=null;const i=Object.create({});return gt(e,((e,a)=>{if((null==a?void 0:a.kind)===$e.VARIABLE&&a.name&&(o=a.name),(null==a?void 0:a.kind)===$e.NAMED_TYPE&&o){const e=ht(a,$e.TYPE);(null==e?void 0:e.type)&&(r=t.getType(null==e?void 0:e.type))}o&&r&&!i[o]&&(i[o]={detail:r.toString(),insertText:"$"===n.string?o:"$"+o,label:o,type:r,kind:Ie.Variable},o=null,r=null)})),nt(i)}function gt(e,t){const n=e.split("\\n"),r=Ge();let o=r.startState(),i="",a=new Fe("");for(let e=0;e{if(!t)return[];const n=new Map,r=new Set;(0,D.Vn)(e,{FragmentDefinition(e){n.set(e.name.value,!0)},FragmentSpread(e){r.has(e.name.value)||r.add(e.name.value)}});const o=new Set;for(const e of r)!n.has(e)&&t.has(e)&&o.add(At()(t.get(e)));const i=[];for(const e of o)(0,D.Vn)(e,{FragmentSpread(e){!r.has(e.name.value)&&t.get(e.name.value)&&(o.add(At()(t.get(e.name.value))),r.add(e.name.value))}}),n.has(e.name.value)||i.push(e);return i};class xt{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 Et(e,t)}setEnd(e,t){this.end=new Et(e,t)}}class Et{constructor(e,t){this.lessThanOrEqualTo=e=>this.line{if(!e)throw new Error(t)};function Kt(e,t=null,n,r,o){var i,a;let s=null,l="";o&&(l="string"==typeof o?o:o.reduce(((e,t)=>e+(0,Ht.S)(t)+"\\n\\n"),""));const u=l?`${e}\\n\\n${l}`:e;try{s=(0,M.Qc)(u)}catch(e){if(e instanceof Wt.__){const t=function(e,t){const n=Ge(),r=n.startState(),o=t.split("\\n");Qt(o.length>=e.line,"Query text must have more lines than where the error happened");let i=null;for(let t=0;te!==jt.J&&e!==Vt.i&&(!r||e!==Bt.a)));return n&&Array.prototype.push.apply(i,n),(0,qt.Gu)(e,t,i).filter((e=>{if(e.message.includes("Unknown directive")&&e.nodes){const t=e.nodes[0];if(t&&t.kind===I.Kind.DIRECTIVE){const e=t.name.value;if("arguments"===e||"argumentDefinitions"===e)return!1}}return!0}))}(t,e,n,r).flatMap((e=>Xt(e,Yt.Error,"Validation"))),i=(0,qt.Gu)(t,e,[Gt.r]).flatMap((e=>Xt(e,Yt.Warning,"Deprecation")));return o.concat(i)}(s,t,n,r)}function Xt(e,t,n){if(!e.nodes)return[];const r=[];for(const[o,i]of e.nodes.entries()){const a="Variable"!==i.kind&&"name"in i&&void 0!==i.name?i.name:"variable"in i&&void 0!==i.variable?i.variable:i;if(a){Qt(e.locations,"GraphQL validation error requires locations.");const i=e.locations[o],s=Zt(a),l=i.column+(s.end-s.start);r.push({source:`GraphQL: ${n}`,message:e.message,severity:t,range:new xt(new Et(i.line-1,i.column-1),new Et(i.line-1,l))})}}return r}function Zt(e){const t=e.loc;return Qt(t,"Expected ASTNode to have a location."),t}const{INLINE_FRAGMENT:Jt}=I.Kind},1256:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)},i=this&&this.__await||function(e){return this instanceof i?(this.v=e,this):new i(e)},a=this&&this.__asyncGenerator||function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),a=[];return r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r;function s(e){o[e]&&(r[e]=function(t){return new Promise((function(n,r){a.push([e,t,n,r])>1||l(e,t)}))})}function l(e,t){try{(n=o[e](t)).value instanceof i?Promise.resolve(n.value.v).then(u,c):d(a[0][2],n)}catch(e){d(a[0][3],e)}var n}function u(e){l("next",e)}function c(e){l("throw",e)}function d(e,t){e(t),a.shift(),a.length&&l(a[0][0],a[0][1])}};Object.defineProperty(t,"__esModule",{value:!0}),t.createClient=void 0;const s=n(4139),l=n(7175);function u(e){return(0,l.isObject)(e)&&"code"in e&&"reason"in e}o(n(4139),t),t.createClient=function(e){const{url:t,connectionParams:r,lazy:o=!0,onNonLazyError:c=console.error,lazyCloseTimeout:d=0,keepAlive:f=0,disablePong:p,connectionAckWaitTimeout:h=0,retryAttempts:m=5,retryWait:g=async function(e){let t=1e3;for(let n=0;nsetTimeout(e,t+Math.floor(2700*Math.random()+300))))},shouldRetry:v=u,isFatalConnectionProblem:y,on:b,webSocketImpl:A,generateID:w=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:x,jsonMessageReviver:E}=e;let C;if(A){if(!("function"==typeof(k=A)&&"constructor"in k&&"CLOSED"in k&&"CLOSING"in k&&"CONNECTING"in k&&"OPEN"in k))throw new Error("Invalid WebSocket implementation provided");C=A}else"undefined"!=typeof WebSocket?C=WebSocket:void 0!==n.g?C=n.g.WebSocket||n.g.MozWebSocket:"undefined"!=typeof window&&(C=window.WebSocket||window.MozWebSocket);var k;if(!C)throw new Error("WebSocket implementation missing; on Node you can `import WebSocket from \'ws\';` and pass `webSocketImpl: WebSocket` to `createClient`");const T=C,S=(()=>{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==b?void 0:b.connecting)?[b.connecting]:[],opened:(null==b?void 0:b.opened)?[b.opened]:[],connected:(null==b?void 0:b.connected)?[b.connected]:[],ping:(null==b?void 0:b.ping)?[b.ping]:[],pong:(null==b?void 0:b.pong)?[b.pong]:[],message:(null==b?void 0:b.message)?[e.emit,b.message]:[e.emit],closed:(null==b?void 0:b.closed)?[b.closed]:[],error:(null==b?void 0:b.error)?[b.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 N(e){const t=[S.on("error",(n=>{t.forEach((e=>e())),e(n)})),S.on("closed",(n=>{t.forEach((e=>e())),e(n)}))]}let O,L,D=0,M=!1,I=0,R=!1;async function F(){clearTimeout(L);const[e,n]=await(null!=O?O:O=new Promise(((e,n)=>(async()=>{if(M){if(await g(I),!D)return O=void 0,n({code:1e3,reason:"All Subscriptions Gone"});I++}S.emit("connecting");const o=new T("function"==typeof t?await t():t,s.GRAPHQL_TRANSPORT_WS_PROTOCOL);let i,a;function c(){isFinite(f)&&f>0&&(clearTimeout(a),a=setTimeout((()=>{o.readyState===T.OPEN&&(o.send((0,s.stringifyMessage)({type:s.MessageType.Ping})),S.emit("ping",!1,void 0))}),f))}N((e=>{O=void 0,clearTimeout(i),clearTimeout(a),n(e),u(e)&&4499===e.code&&(o.close(4499,"Terminated"),o.onerror=null,o.onclose=null)})),o.onerror=e=>S.emit("error",e),o.onclose=e=>S.emit("closed",e),o.onopen=async()=>{try{S.emit("opened",o);const e="function"==typeof r?await r():r;if(o.readyState!==T.OPEN)return;o.send((0,s.stringifyMessage)(e?{type:s.MessageType.ConnectionInit,payload:e}:{type:s.MessageType.ConnectionInit},x)),isFinite(h)&&h>0&&(i=setTimeout((()=>{o.close(s.CloseCode.ConnectionAcknowledgementTimeout,"Connection acknowledgement timeout")}),h)),c()}catch(e){S.emit("error",e),o.close(s.CloseCode.InternalClientError,(0,l.limitCloseReason)(e instanceof Error?e.message:new Error(e).message,"Internal client error"))}};let d=!1;o.onmessage=({data:t})=>{try{const n=(0,s.parseMessage)(t,E);if(S.emit("message",n),"ping"===n.type||"pong"===n.type)return S.emit(n.type,!0,n.payload),void("pong"===n.type?c():p||(o.send((0,s.stringifyMessage)(n.payload?{type:s.MessageType.Pong,payload:n.payload}:{type:s.MessageType.Pong})),S.emit("pong",!1,n.payload)));if(d)return;if(n.type!==s.MessageType.ConnectionAck)throw new Error(`First message cannot be of type ${n.type}`);clearTimeout(i),d=!0,S.emit("connected",o,n.payload),M=!1,I=0,e([o,new Promise(((e,t)=>N(t)))])}catch(e){o.onmessage=null,S.emit("error",e),o.close(s.CloseCode.BadResponse,(0,l.limitCloseReason)(e instanceof Error?e.message:new Error(e).message,"Bad response"))}}})())));e.readyState===T.CLOSING&&await n;let o=()=>{};const i=new Promise((e=>o=e));return[e,o,Promise.race([i.then((()=>{if(!D){const t=()=>e.close(1e3,"Normal Closure");isFinite(d)&&d>0?L=setTimeout((()=>{e.readyState===T.OPEN&&t()}),d):t()}})),n])]}function P(e){if(u(e)&&(t=e.code,![1e3,1001,1006,1005,1012,1013,1013].includes(t)&&t>=1e3&&t<=1999||[s.CloseCode.InternalServerError,s.CloseCode.InternalClientError,s.CloseCode.BadRequest,s.CloseCode.BadResponse,s.CloseCode.Unauthorized,s.CloseCode.SubprotocolNotAcceptable,s.CloseCode.SubscriberAlreadyExists,s.CloseCode.TooManyInitialisationRequests].includes(e.code)))throw e;var t;if(R)return!1;if(u(e)&&1e3===e.code)return D>0;if(!m||I>=m)throw e;if(!v(e))throw e;if(null==y?void 0:y(e))throw e;return M=!0}return o||(async()=>{for(D++;;)try{const[,,e]=await F();await e}catch(e){try{if(!P(e))return}catch(e){return null==c?void 0:c(e)}}})(),{on:S.on,subscribe(e,t){const n=w(e);let r=!1,o=!1,i=()=>{D--,r=!0};return(async()=>{for(D++;;)try{const[a,l,u]=await F();if(r)return l();const c=S.onMessage(n,(e=>{switch(e.type){case s.MessageType.Next:return void t.next(e.payload);case s.MessageType.Error:return o=!0,r=!0,t.error(e.payload),void i();case s.MessageType.Complete:return r=!0,void i()}}));return a.send((0,s.stringifyMessage)({id:n,type:s.MessageType.Subscribe,payload:e},x)),i=()=>{r||a.readyState!==T.OPEN||a.send((0,s.stringifyMessage)({id:n,type:s.MessageType.Complete},x)),D--,r=!0,l()},void await u.finally(c)}catch(e){if(!P(e))return}})().then((()=>{o||t.complete()})).catch((e=>{t.error(e)})),()=>{r||i()}},iterate(e){const t=[],n={done:!1,error:null,resolve:()=>{}},r=this.subscribe(e,{next(e){t.push(e),n.resolve()},error(e){n.done=!0,n.error=e,n.resolve()},complete(){n.done=!0,n.resolve()}}),o=function(){return a(this,arguments,(function*(){for(;;){for(t.length||(yield i(new Promise((e=>n.resolve=e))));t.length;)yield yield i(t.shift());if(n.error)throw n.error;if(n.done)return yield i(void 0)}}))}();return o.throw=async e=>(n.done||(n.done=!0,n.error=e,n.resolve()),{done:!0,value:void 0}),o.return=async()=>(r(),{done:!0,value:void 0}),o},async dispose(){if(R=!0,O){const[e]=await O;e.close(1e3,"Normal Closure")}},terminate(){O&&S.emit("closed",{code:4499,reason:"Terminated",wasClean:!1})}}}},4139:(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(7175);var o,i;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(null!=e.payload&&!(0,r.isObject)(e.payload))throw new Error(`"${e.type}" message expects the \'payload\' property to be an object or nullish 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",function(e){e[e.InternalServerError=4500]="InternalServerError",e[e.InternalClientError=4005]="InternalClientError",e[e.BadRequest=4400]="BadRequest",e[e.BadResponse=4004]="BadResponse",e[e.Unauthorized=4401]="Unauthorized",e[e.Forbidden=4403]="Forbidden",e[e.SubprotocolNotAcceptable=4406]="SubprotocolNotAcceptable",e[e.ConnectionInitialisationTimeout=4408]="ConnectionInitialisationTimeout",e[e.ConnectionAcknowledgementTimeout=4504]="ConnectionAcknowledgementTimeout",e[e.SubscriberAlreadyExists=4409]="SubscriberAlreadyExists",e[e.TooManyInitialisationRequests=4429]="TooManyInitialisationRequests"}(o||(t.CloseCode=o={})),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=i={})),t.validateMessage=a,t.isMessage=function(e){try{return a(e),!0}catch(e){return!1}},t.parseMessage=function(e,t){return a("string"==typeof e?JSON.parse(e,t):e)},t.stringifyMessage=function(e,t){return a(e),JSON.stringify(e,t)}},7689:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=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}),o(n(1256),t),o(n(7567),t),o(n(4139),t)},7567: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,o){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,o,(t=e[n](t)).done,t.value)}))}}};Object.defineProperty(t,"__esModule",{value:!0}),t.handleProtocols=t.makeServer=void 0;const o=n(6617),i=n(4139),a=n(7175);t.makeServer=function(e){const{schema:t,context:n,roots:s,validate:l,execute:u,subscribe:c,connectionInitWaitTimeout:d=3e3,onConnect:f,onDisconnect:p,onClose:h,onSubscribe:m,onOperation:g,onNext:v,onError:y,onComplete:b,jsonMessageReviver:A,jsonMessageReplacer:w}=e;return{opened(e,x){const E={connectionInitReceived:!1,acknowledged:!1,subscriptions:{},extra:x};if(e.protocol!==i.GRAPHQL_TRANSPORT_WS_PROTOCOL)return e.close(i.CloseCode.SubprotocolNotAcceptable,"Subprotocol not acceptable"),async(e,t)=>{await(null==h?void 0:h(E,e,t))};const C=d>0&&isFinite(d)?setTimeout((()=>{E.connectionInitReceived||e.close(i.CloseCode.ConnectionInitialisationTimeout,"Connection initialisation timeout")}),d):null;return e.onMessage((async function(d){var p,h,x,C,k;let T;try{T=(0,i.parseMessage)(d,A)}catch(t){return e.close(i.CloseCode.BadRequest,"Invalid message received")}switch(T.type){case i.MessageType.ConnectionInit:{if(E.connectionInitReceived)return e.close(i.CloseCode.TooManyInitialisationRequests,"Too many initialisation requests");E.connectionInitReceived=!0,(0,a.isObject)(T.payload)&&(E.connectionParams=T.payload);const t=await(null==f?void 0:f(E));return!1===t?e.close(i.CloseCode.Forbidden,"Forbidden"):(await e.send((0,i.stringifyMessage)((0,a.isObject)(t)?{type:i.MessageType.ConnectionAck,payload:t}:{type:i.MessageType.ConnectionAck},w)),void(E.acknowledged=!0))}case i.MessageType.Ping:return e.onPing?await e.onPing(T.payload):void await e.send((0,i.stringifyMessage)(T.payload?{type:i.MessageType.Pong,payload:T.payload}:{type:i.MessageType.Pong}));case i.MessageType.Pong:return await(null===(k=e.onPong)||void 0===k?void 0:k.call(e,T.payload));case i.MessageType.Subscribe:{if(!E.acknowledged)return e.close(i.CloseCode.Unauthorized,"Unauthorized");const{id:d,payload:f}=T;if(d in E.subscriptions)return e.close(i.CloseCode.SubscriberAlreadyExists,`Subscriber for ${d} already exists`);E.subscriptions[d]=null;const A={next:async(t,n)=>{let r={id:d,type:i.MessageType.Next,payload:t};const o=await(null==v?void 0:v(E,r,n,t));o&&(r=Object.assign(Object.assign({},r),{payload:o})),await e.send((0,i.stringifyMessage)(r,w))},error:async t=>{let n={id:d,type:i.MessageType.Error,payload:t};const r=await(null==y?void 0:y(E,n,t));r&&(n=Object.assign(Object.assign({},n),{payload:r})),await e.send((0,i.stringifyMessage)(n,w))},complete:async t=>{const n={id:d,type:i.MessageType.Complete};await(null==b?void 0:b(E,n)),t&&await e.send((0,i.stringifyMessage)(n,w))}};try{let e;const i=await(null==m?void 0:m(E,T));if(i){if((0,a.areGraphQLErrors)(i))return await A.error(i);if(Array.isArray(i))throw new Error("Invalid return value from onSubscribe hook, expected an array of GraphQLError objects");e=i}else{if(!t)throw new Error("The GraphQL schema is not provided");const n={operationName:f.operationName,document:(0,o.parse)(f.query),variableValues:f.variables};e=Object.assign(Object.assign({},n),{schema:"function"==typeof t?await t(E,T,n):t});const r=(null!=l?l:o.validate)(e.schema,e.document);if(r.length>0)return await A.error(r)}const v=(0,o.getOperationAST)(e.document,e.operationName);if(!v)return await A.error([new o.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(E,T,e):n),y="subscription"===v.operation?await(null!=c?c:o.subscribe)(e):await(null!=u?u:o.execute)(e);const b=await(null==g?void 0:g(E,T,e,y));if(b&&(y=b),(0,a.isAsyncIterable)(y))if(d in E.subscriptions){E.subscriptions[d]=y;try{for(var S,N=!0,O=r(y);!(p=(S=await O.next()).done);N=!0){C=S.value,N=!1;const t=C;await A.next(t,e)}}catch(e){h={error:e}}finally{try{N||p||!(x=O.return)||await x.call(O)}finally{if(h)throw h.error}}}else(0,a.isAsyncGenerator)(y)&&y.return(void 0);else d in E.subscriptions&&await A.next(y,e);await A.complete(d in E.subscriptions)}finally{delete E.subscriptions[d]}return}case i.MessageType.Complete:{const e=E.subscriptions[T.id];return delete E.subscriptions[T.id],void((0,a.isAsyncGenerator)(e)&&await e.return(void 0))}default:throw new Error(`Unexpected message of type ${T.type} received`)}})),async(e,t)=>{C&&clearTimeout(C);for(const e of Object.values(E.subscriptions))(0,a.isAsyncGenerator)(e)&&await e.return(void 0);E.acknowledged&&await(null==p?void 0:p(E,e,t)),await(null==h?void 0:h(E,e,t))}}}},t.handleProtocols=function(e){switch(!0){case e instanceof Set&&e.has(i.GRAPHQL_TRANSPORT_WS_PROTOCOL):case Array.isArray(e)&&e.includes(i.GRAPHQL_TRANSPORT_WS_PROTOCOL):case"string"==typeof e&&e.split(",").map((e=>e.trim())).includes(i.GRAPHQL_TRANSPORT_WS_PROTOCOL):return i.GRAPHQL_TRANSPORT_WS_PROTOCOL;default:return!1}}},7175:(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}},5690:(e,t,n)=>{"use strict";var r=n(8558);function o(e){return!0===r(e)&&"[object Object]"===Object.prototype.toString.call(e)}e.exports=function(e){var t,n;return!1!==o(e)&&"function"==typeof(t=e.constructor)&&!1!==o(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf")}},50:e=>{"use strict";e.exports=function(e){return"object"==typeof e?null===e:"function"!=typeof e}},8558:e=>{"use strict";e.exports=function(e){return null!=e&&"object"==typeof e&&!1===Array.isArray(e)}},251:(e,t,n)=>{"use strict";function r(e){return Array.prototype.slice.call(arguments,1).forEach((function(t){t&&Object.keys(t).forEach((function(n){e[n]=t[n]}))})),e}function o(e){return Object.prototype.toString.call(e)}function i(e){return"[object Function]"===o(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}}},u="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]",c="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|\u0440\u0444".split("|");function d(e){var t=e.re=n(7998)(e.__opts__),r=e.__tlds__.slice();function s(e){return e.replace("%TLDS%",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||r.push(u),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]"===o(n))return"[object RegExp]"!==o(n.validate)?i(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(i(n.normalize)?r.normalize=n.normalize:n.normalize?c(t,n):r.normalize=function(e,t){t.normalize(e)});!function(e){return"[object String]"===o(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 d=Object.keys(e.__compiled__).filter((function(t){return t.length>0&&e.__compiled__[t]})).map(a).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><\uFF5C]|"+t.src_ZPCc+"))("+d+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><\uFF5C]|"+t.src_ZPCc+"))("+d+")","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 f(e,t){var n=e.__index__,r=e.__last_index__,o=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=o,this.text=o,this.url=o}function p(e,t){var n=new f(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function h(e,t){if(!(this instanceof h))return new h(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={},d(this)}h.prototype.add=function(e,t){return this.__schemas__[e]=t,d(this),this},h.prototype.set=function(e){return this.__opts__=r(this.__opts__,e),this},h.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var t,n,r,o,i,a,s,l;if(this.re.schema_test.test(e))for((s=this.re.schema_search).lastIndex=0;null!==(t=s.exec(e));)if(o=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+o;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))&&(i=r.index+r[1].length,a=r.index+r[0].length,(this.__index__<0||ithis.__last_index__)&&(this.__schema__="mailto:",this.__index__=i,this.__last_index__=a)),this.__index__>=0},h.prototype.pretest=function(e){return this.re.pretest.test(e)},h.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},h.prototype.match=function(e){var t=0,n=[];this.__index__>=0&&this.__text_cache__===e&&(n.push(p(this,t)),t=this.__last_index__);for(var r=t?e.slice(t):e;this.test(r);)n.push(p(this,t)),r=r.slice(this.__last_index__),t+=this.__last_index__;return n.length?n:null},h.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(),d(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,d(this),this)},h.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},h.prototype.onCompile=function(){},e.exports=h},7998:(e,t,n)=>{"use strict";e.exports=function(e){var t={};t.src_Any=n(3530).source,t.src_Cc=n(6889).source,t.src_Z=n(8442).source,t.src_P=n(7062).source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");return t.src_pseudo_letter="(?:(?![><\uFF5C]|"+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="(?=$|[><\uFF5C]|"+t.src_ZPCc+")(?!-|_|:\\\\d|\\\\.-|\\\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|[><\uFF5C]|[()[\\\\]{}.,\\"\'?!\\\\-;]).|\\\\[(?:(?!"+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=\'(^|[><\uFF5C]|"|\\\\(|\'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\\\-_@])(?:[$+<=>^`|\uFF5C]|"+t.src_ZPCc+"))((?![$+<=>^`|\uFF5C])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\\\-_@])(?:[$+<=>^`|\uFF5C]|"+t.src_ZPCc+"))((?![$+<=>^`|\uFF5C])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}},3054:(e,t,n)=>{"use strict";e.exports=n(1671)},3906:(e,t,n)=>{"use strict";e.exports=n(549)},5373: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"]},9372: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]*?[?]>|]*>|)"),o=new RegExp("^(?:"+t+"|"+n+")");e.exports.n=r,e.exports.q=o},5292:(e,t,n)=>{"use strict";var r=Object.prototype.hasOwnProperty;function o(e,t){return r.call(e,t)}function i(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"),u=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,c=n(3906),d=/[&<>"]/,f=/[&<>"]/g,p={"&":"&","<":"<",">":">",\'"\':"""};function h(e){return p[e]}var m=/[.?*+^$[\\]\\\\(){}|-]/g,g=n(7062);t.lib={},t.lib.mdurl=n(4976),t.lib.ucmicro=n(8579),t.assign=function(e){return Array.prototype.slice.call(arguments,1).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=o,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 o(c,t)?c[t]:35===t.charCodeAt(0)&&u.test(t)&&i(n="x"===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10))?a(n):e}(e,n)}))},t.isValidEntityCode=i,t.fromCodePoint=a,t.escapeHtml=function(e){return d.test(e)?e.replace(f,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," "),"\u1E7E"==="\u1E9E".toLowerCase()&&(e=e.replace(/\u1E9E/g,"\u00DF")),e.toLowerCase().toUpperCase()}},4960:(e,t,n)=>{"use strict";t.parseLinkLabel=n(1519),t.parseLinkDestination=n(5361),t.parseLinkTitle=n(5477)},5361:(e,t,n)=>{"use strict";var r=n(5292).unescapeAll;e.exports=function(e,t,n){var o,i,a=t,s={ok:!1,pos:0,lines:0,str:""};if(60===e.charCodeAt(t)){for(t++;t32)return s;if(41===o){if(0===i)break;i--}t++}return a===t||0!==i||(s.str=r(e.slice(a,t)),s.lines=0,s.pos=t,s.ok=!0),s}},1519:e=>{"use strict";e.exports=function(e,t,n){var r,o,i,a,s=-1,l=e.posMax,u=e.pos;for(e.pos=t+1,r=1;e.pos{"use strict";var r=n(5292).unescapeAll;e.exports=function(e,t,n){var o,i,a=0,s=t,l={ok:!1,pos:0,lines:0,str:""};if(t>=n)return l;if(34!==(i=e.charCodeAt(t))&&39!==i&&40!==i)return l;for(t++,40===i&&(i=41);t{"use strict";var r=n(5292),o=n(4960),i=n(3931),a=n(8777),s=n(9101),l=n(4197),u=n(251),c=n(4976),d=n(8058),f={default:n(1602),zero:n(8373),commonmark:n(5112)},p=/^(vbscript|javascript|file|data):/,h=/^data:image\\/(gif|png|jpeg|webp);/;function m(e){var t=e.trim().toLowerCase();return!p.test(t)||!!h.test(t)}var g=["http:","https:","mailto:"];function v(e){var t=c.parse(e,!0);if(t.hostname&&(!t.protocol||g.indexOf(t.protocol)>=0))try{t.hostname=d.toASCII(t.hostname)}catch(e){}return c.encode(c.format(t))}function y(e){var t=c.parse(e,!0);if(t.hostname&&(!t.protocol||g.indexOf(t.protocol)>=0))try{t.hostname=d.toUnicode(t.hostname)}catch(e){}return c.decode(c.format(t),c.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 i,this.linkify=new u,this.validateLink=m,this.normalizeLink=v,this.normalizeLinkText=y,this.utils=r,this.helpers=r.assign({},o),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=f[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},9101:(e,t,n)=>{"use strict";var r=n(1390),o=[["table",n(8781),["paragraph","reference"]],["code",n(1094)],["fence",n(5883),["paragraph","reference","blockquote","list"]],["blockquote",n(4261),["paragraph","reference","blockquote","list"]],["hr",n(1208),["paragraph","reference","blockquote","list"]],["list",n(1551),["paragraph","reference","blockquote"]],["reference",n(4600)],["html_block",n(5231),["paragraph","reference","blockquote"]],["heading",n(4758),["paragraph","reference","blockquote"]],["lheading",n(8971)],["paragraph",n(2248)]];function i(){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(1390),o=[["normalize",n(7244)],["block",n(2304)],["inline",n(4059)],["linkify",n(9357)],["replacements",n(8919)],["smartquotes",n(3616)]];function i(){this.ruler=new r;for(var e=0;e{"use strict";var r=n(1390),o=[["text",n(1414)],["newline",n(4537)],["escape",n(8199)],["backticks",n(8706)],["strikethrough",n(338).w],["emphasis",n(7147).w],["link",n(6267)],["image",n(2641)],["autolink",n(1858)],["html_inline",n(3095)],["entity",n(5796)]],i=[["balance_pairs",n(2877)],["strikethrough",n(338).g],["emphasis",n(7147).g],["text_collapse",n(3659)]];function a(){var e;for(this.ruler=new r,e=0;e=i)break}else e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},a.prototype.parse=function(e,t,n,r){var o,i,a,s=new this.State(e,t,n,r);for(this.tokenize(s),a=(i=this.ruler2.getRules("")).length,o=0;o{"use strict";e.exports={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201C\u201D\u2018\u2019",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"]}}}},1602:e=>{"use strict";e.exports={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201C\u201D\u2018\u2019",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}}},8373:e=>{"use strict";e.exports={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201C\u201D\u2018\u2019",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","text_collapse"]}}}},3931:(e,t,n)=>{"use strict";var r=n(5292).assign,o=n(5292).unescapeAll,i=n(5292).escapeHtml,a={};function s(){this.rules=r({},a)}a.code_inline=function(e,t,n,r,o){var a=e[t];return""+i(e[t].content)+""},a.code_block=function(e,t,n,r,o){var a=e[t];return""+i(e[t].content)+"\\n"},a.fence=function(e,t,n,r,a){var s,l,u,c,d,f=e[t],p=f.info?o(f.info).trim():"",h="",m="";return p&&(h=(u=p.split(/(\\s+)/g))[0],m=u.slice(2).join("")),0===(s=n.highlight&&n.highlight(f.content,h,m)||i(f.content)).indexOf(""+s+"\\n"):"
"+s+"
\\n"},a.image=function(e,t,n,r,o){var i=e[t];return i.attrs[i.attrIndex("alt")][1]=o.renderInlineAsText(i.children,n,r),o.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 i(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,o="",i=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(5292).isSpace;e.exports=function(e,t,n,o){var i,a,s,l,u,c,d,f,p,h,m,g,v,y,b,A,w,x,E,C,k=e.lineMax,T=e.bMarks[t]+e.tShift[t],S=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(62!==e.src.charCodeAt(T++))return!1;if(o)return!0;for(l=p=e.sCount[t]+1,32===e.src.charCodeAt(T)?(T++,l++,p++,i=!1,A=!0):9===e.src.charCodeAt(T)?(A=!0,(e.bsCount[t]+p)%4==3?(T++,l++,p++,i=!1):i=!0):A=!1,h=[e.bMarks[t]],e.bMarks[t]=T;T=S,y=[e.sCount[t]],e.sCount[t]=p-l,b=[e.tShift[t]],e.tShift[t]=T-e.bMarks[t],x=e.md.block.ruler.getRules("blockquote"),v=e.parentType,e.parentType="blockquote",f=t+1;f=(S=e.eMarks[f])));f++)if(62!==e.src.charCodeAt(T++)||C){if(c)break;for(w=!1,s=0,u=x.length;s=S,m.push(e.bsCount[f]),e.bsCount[f]=e.sCount[f]+1+(A?1:0),y.push(e.sCount[f]),e.sCount[f]=p-l,b.push(e.tShift[f]),e.tShift[f]=T-e.bMarks[f]}for(g=e.blkIndent,e.blkIndent=0,(E=e.push("blockquote_open","blockquote",1)).markup=">",E.map=d=[t,0],e.md.block.tokenize(e,t,f),(E=e.push("blockquote_close","blockquote",-1)).markup=">",e.lineMax=k,e.parentType=v,d[1]=e.line,s=0;s{"use strict";e.exports=function(e,t,n){var r,o,i;if(e.sCount[t]-e.blkIndent<4)return!1;for(o=r=t+1;r=4))break;o=++r}return e.line=o,(i=e.push("code_block","code",0)).content=e.getLines(t,o,4+e.blkIndent,!1)+"\\n",i.map=[t,e.line],!0}},5883:e=>{"use strict";e.exports=function(e,t,n,r){var o,i,a,s,l,u,c,d=!1,f=e.bMarks[t]+e.tShift[t],p=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(f+3>p)return!1;if(126!==(o=e.src.charCodeAt(f))&&96!==o)return!1;if(l=f,(i=(f=e.skipChars(f,o))-l)<3)return!1;if(c=e.src.slice(l,f),a=e.src.slice(f,p),96===o&&a.indexOf(String.fromCharCode(o))>=0)return!1;if(r)return!0;for(s=t;!(++s>=n||(f=l=e.bMarks[s]+e.tShift[s])<(p=e.eMarks[s])&&e.sCount[s]=4||(f=e.skipChars(f,o))-l{"use strict";var r=n(5292).isSpace;e.exports=function(e,t,n,o){var i,a,s,l,u=e.bMarks[t]+e.tShift[t],c=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(35!==(i=e.src.charCodeAt(u))||u>=c)return!1;for(a=1,i=e.src.charCodeAt(++u);35===i&&u6||uu&&r(e.src.charCodeAt(s-1))&&(c=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(u,c).trim(),l.map=[t,e.line],l.children=[],(l=e.push("heading_close","h"+String(a),-1)).markup="########".slice(0,a)),0))}},1208:(e,t,n)=>{"use strict";var r=n(5292).isSpace;e.exports=function(e,t,n,o){var i,a,s,l,u=e.bMarks[t]+e.tShift[t],c=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(42!==(i=e.src.charCodeAt(u++))&&45!==i&&95!==i)return!1;for(a=1;u{"use strict";var r=n(5373),o=n(9372).q,i=[[/^<(script|pre|style|textarea)(?=(\\s|>|$))/i,/<\\/(script|pre|style|textarea)>/i,!0],[/^/,!0],[/^<\\?/,/\\?>/,!0],[/^/,!0],[/^/,!0],[new RegExp("^|$))","i"),/^$/,!0],[new RegExp(o.source+"\\\\s*$"),/^$/,!1]];e.exports=function(e,t,n,r){var o,a,s,l,u=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(u))return!1;for(l=e.src.slice(u,c),o=0;o{"use strict";e.exports=function(e,t,n){var r,o,i,a,s,l,u,c,d,f,p=t+1,h=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;for(f=e.parentType,e.parentType="paragraph";p3)){if(e.sCount[p]>=e.blkIndent&&(l=e.bMarks[p]+e.tShift[p])<(u=e.eMarks[p])&&(45===(d=e.src.charCodeAt(l))||61===d)&&(l=e.skipChars(l,d),(l=e.skipSpaces(l))>=u)){c=61===d?1:2;break}if(!(e.sCount[p]<0)){for(o=!1,i=0,a=h.length;i{"use strict";var r=n(5292).isSpace;function o(e,t){var n,o,i,a;return o=e.bMarks[t]+e.tShift[t],i=e.eMarks[t],42!==(n=e.src.charCodeAt(o++))&&45!==n&&43!==n||o=a)return-1;if((n=e.src.charCodeAt(i++))<48||n>57)return-1;for(;;){if(i>=a)return-1;if(!((n=e.src.charCodeAt(i++))>=48&&n<=57)){if(41===n||46===n)break;return-1}if(i-o>=10)return-1}return i=4)return!1;if(e.listIndent>=0&&e.sCount[t]-e.listIndent>=4&&e.sCount[t]=e.blkIndent&&(R=!0),(N=i(e,t))>=0){if(f=!0,L=e.bMarks[t]+e.tShift[t],y=Number(e.src.slice(L,N-1)),R&&1!==y)return!1}else{if(!((N=o(e,t))>=0))return!1;f=!1}if(R&&e.skipSpaces(N)>=e.eMarks[t])return!1;if(v=e.src.charCodeAt(N-1),r)return!0;for(g=e.tokens.length,f?(I=e.push("ordered_list_open","ol",1),1!==y&&(I.attrs=[["start",y]])):I=e.push("bullet_list_open","ul",1),I.map=m=[t,0],I.markup=String.fromCharCode(v),A=t,O=!1,M=e.md.block.ruler.getRules("list"),E=e.parentType,e.parentType="list";A=b?1:w-d)>4&&(c=1),u=d+c,(I=e.push("list_item_open","li",1)).markup=String.fromCharCode(v),I.map=p=[t,0],f&&(I.info=e.src.slice(L,N-1)),T=e.tight,k=e.tShift[t],C=e.sCount[t],x=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=u,e.tight=!0,e.tShift[t]=s-e.bMarks[t],e.sCount[t]=w,s>=b&&e.isEmpty(t+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,t,n,!0),e.tight&&!O||(F=!1),O=e.line-t>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=x,e.tShift[t]=k,e.sCount[t]=C,e.tight=T,(I=e.push("list_item_close","li",-1)).markup=String.fromCharCode(v),A=t=e.line,p[1]=A,s=e.bMarks[t],A>=n)break;if(e.sCount[A]=4)break;for(D=!1,l=0,h=M.length;l{"use strict";e.exports=function(e,t){var n,r,o,i,a,s,l=t+1,u=e.md.block.ruler.getRules("paragraph"),c=e.lineMax;for(s=e.parentType,e.parentType="paragraph";l3||e.sCount[l]<0)){for(r=!1,o=0,i=u.length;o{"use strict";var r=n(5292).normalizeReference,o=n(5292).isSpace;e.exports=function(e,t,n,i){var a,s,l,u,c,d,f,p,h,m,g,v,y,b,A,w,x=0,E=e.bMarks[t]+e.tShift[t],C=e.eMarks[t],k=t+1;if(e.sCount[t]-e.blkIndent>=4)return!1;if(91!==e.src.charCodeAt(E))return!1;for(;++E3||e.sCount[k]<0)){for(b=!1,d=0,f=A.length;d{"use strict";var r=n(9147),o=n(5292).isSpace;function i(e,t,n,r){var i,a,s,l,u,c,d,f;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="",f=!1,s=l=c=d=0,u=(a=this.src).length;l0&&this.level++,this.tokens.push(o),o},i.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},i.prototype.skipEmptyLines=function(e){for(var t=this.lineMax;et;)if(!o(this.src.charCodeAt(--e)))return e+1;return e},i.prototype.skipChars=function(e,t){for(var n=this.src.length;en;)if(t!==this.src.charCodeAt(--e))return e+1;return e},i.prototype.getLines=function(e,t,n,r){var i,a,s,l,u,c,d,f=e;if(e>=t)return"";for(c=new Array(t-e),i=0;fn?new Array(a-n+1).join(" ")+this.src.slice(l,u):this.src.slice(l,u)}return c.join("")},i.prototype.Token=r,e.exports=i},8781:(e,t,n)=>{"use strict";var r=n(5292).isSpace;function o(e,t){var n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];return e.src.substr(n,r-n)}function i(e){var t,n=[],r=0,o=e.length,i=!1,a=0,s="";for(t=e.charCodeAt(r);rn)return!1;if(f=t+1,e.sCount[f]=4)return!1;if((u=e.bMarks[f]+e.tShift[f])>=e.eMarks[f])return!1;if(124!==(E=e.src.charCodeAt(u++))&&45!==E&&58!==E)return!1;if(u>=e.eMarks[f])return!1;if(124!==(C=e.src.charCodeAt(u++))&&45!==C&&58!==C&&!r(C))return!1;if(45===E&&r(C))return!1;for(;u=4)return!1;if((p=i(l)).length&&""===p[0]&&p.shift(),p.length&&""===p[p.length-1]&&p.pop(),0===(h=p.length)||h!==g.length)return!1;if(a)return!0;for(A=e.parentType,e.parentType="table",x=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],c=0;c=4)break;for((p=i(l)).length&&""===p[0]&&p.shift(),p.length&&""===p[p.length-1]&&p.pop(),f===t+2&&((m=e.push("tbody_open","tbody",1)).map=b=[t+2,0]),(m=e.push("tr_open","tr",1)).map=[f,f+1],c=0;c{"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)}},4059:e=>{"use strict";e.exports=function(e){var t,n,r,o=e.tokens;for(n=0,r=o.length;n{"use strict";var r=n(5292).arrayReplaceAt;function o(e){return/^<\\/a\\s*>/i.test(e)}e.exports=function(e){var t,n,i,a,s,l,u,c,d,f,p,h,m,g,v,y,b,A,w=e.tokens;if(e.md.options.linkify)for(n=0,i=w.length;n=0;t--)if("link_close"!==(l=a[t]).type){if("html_inline"===l.type&&(A=l.content,/^\\s]/i.test(A)&&m>0&&m--,o(l.content)&&m++),!(m>0)&&"text"===l.type&&e.md.linkify.test(l.content)){for(d=l.content,b=e.md.linkify.match(d),u=[],h=l.level,p=0,c=0;cp&&((s=new e.Token("text","",0)).content=d.slice(p,f),s.level=h,u.push(s)),(s=new e.Token("link_open","a",1)).attrs=[["href",v]],s.level=h++,s.markup="linkify",s.info="auto",u.push(s),(s=new e.Token("text","",0)).content=y,s.level=h,u.push(s),(s=new e.Token("link_close","a",-1)).level=--h,s.markup="linkify",s.info="auto",u.push(s),p=b[c].lastIndex);p{"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,"\uFFFD"),e.src=r}},8919:e=>{"use strict";var t=/\\+-|\\.\\.|\\?\\?\\?\\?|!!!!|,,|--/,n=/\\((c|tm|r|p)\\)/i,r=/\\((c|tm|r|p)\\)/gi,o={c:"\u00A9",r:"\u00AE",p:"\u00A7",tm:"\u2122"};function i(e,t){return o[t.toLowerCase()]}function a(e){var t,n,o=0;for(t=e.length-1;t>=0;t--)"text"!==(n=e[t]).type||o||(n.content=n.content.replace(r,i)),"link_open"===n.type&&"auto"===n.info&&o--,"link_close"===n.type&&"auto"===n.info&&o++}function s(e){var n,r,o=0;for(n=e.length-1;n>=0;n--)"text"!==(r=e[n]).type||o||t.test(r.content)&&(r.content=r.content.replace(/\\+-/g,"\u00B1").replace(/\\.{2,}/g,"\u2026").replace(/([?!])\u2026/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/gm,"$1\u2014").replace(/(^|\\s)--(?=\\s|$)/gm,"$1\u2013").replace(/(^|[^-\\s])--(?=[^-\\s]|$)/gm,"$1\u2013")),"link_open"===r.type&&"auto"===r.info&&o--,"link_close"===r.type&&"auto"===r.info&&o++}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))}},3616:(e,t,n)=>{"use strict";var r=n(5292).isWhiteSpace,o=n(5292).isPunctChar,i=n(5292).isMdAsciiPunct,a=/[\'"]/,s=/[\'"]/g;function l(e,t,n){return e.substr(0,t)+n+e.substr(t+1)}function u(e,t){var n,a,u,c,d,f,p,h,m,g,v,y,b,A,w,x,E,C,k,T,S;for(k=[],n=0;n=0&&!(k[E].level<=p);E--);if(k.length=E+1,"text"===a.type){d=0,f=(u=a.content).length;e:for(;d=0)m=u.charCodeAt(c.index-1);else for(E=n-1;E>=0&&"softbreak"!==e[E].type&&"hardbreak"!==e[E].type;E--)if(e[E].content){m=e[E].content.charCodeAt(e[E].content.length-1);break}if(g=32,d=48&&m<=57&&(x=w=!1),w&&x&&(w=v,x=y),w||x){if(x)for(E=k.length-1;E>=0&&(h=k[E],!(k[E].level=0;t--)"inline"===e.tokens[t].type&&a.test(e.tokens[t].content)&&u(e.tokens[t].children,e)}},7811:(e,t,n)=>{"use strict";var r=n(9147);function o(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}o.prototype.Token=r,e.exports=o},1858: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 o,i,a,s,l,u,c=e.pos;if(60!==e.src.charCodeAt(c))return!1;for(l=e.pos,u=e.posMax;;){if(++c>=u)return!1;if(60===(s=e.src.charCodeAt(c)))return!1;if(62===s)break}return o=e.src.slice(l+1,c),n.test(o)?(i=e.md.normalizeLink(o),!!e.md.validateLink(i)&&(r||((a=e.push("link_open","a",1)).attrs=[["href",i]],a.markup="autolink",a.info="auto",(a=e.push("text","",0)).content=e.md.normalizeLinkText(o),(a=e.push("link_close","a",-1)).markup="autolink",a.info="auto"),e.pos+=o.length+2,!0)):!!t.test(o)&&(i=e.md.normalizeLink("mailto:"+o),!!e.md.validateLink(i)&&(r||((a=e.push("link_open","a",1)).attrs=[["href",i]],a.markup="autolink",a.info="auto",(a=e.push("text","",0)).content=e.md.normalizeLinkText(o),(a=e.push("link_close","a",-1)).markup="autolink",a.info="auto"),e.pos+=o.length+2,!0))}},8706:e=>{"use strict";e.exports=function(e,t){var n,r,o,i,a,s,l,u,c=e.pos;if(96!==e.src.charCodeAt(c))return!1;for(n=c,c++,r=e.posMax;c{"use strict";function t(e,t){var n,r,o,i,a,s,l,u,c={},d=t.length;if(d){var f=0,p=-2,h=[];for(n=0;na;r-=h[r]+1)if((i=t[r]).marker===o.marker&&i.open&&i.end<0&&(l=!1,(i.close||o.open)&&(i.length+o.length)%3==0&&(i.length%3==0&&o.length%3==0||(l=!0)),!l)){u=r>0&&!t[r-1].open?h[r-1]+1:0,h[n]=n-r+u,h[r]=u,o.open=!1,i.end=n,i.close=!1,s=-1,p=-2;break}-1!==s&&(c[o.marker][(o.open?3:0)+(o.length||0)%3]=s)}}}e.exports=function(e){var n,r=e.tokens_meta,o=e.tokens_meta.length;for(t(0,e.delimiters),n=0;n{"use strict";function t(e,t){var n,r,o,i,a,s;for(n=t.length-1;n>=0;n--)95!==(r=t[n]).marker&&42!==r.marker||-1!==r.end&&(o=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===o.token+1,a=String.fromCharCode(r.marker),(i=e.tokens[r.token]).type=s?"strong_open":"em_open",i.tag=s?"strong":"em",i.nesting=1,i.markup=s?a+a:a,i.content="",(i=e.tokens[o.token]).type=s?"strong_close":"em_close",i.tag=s?"strong":"em",i.nesting=-1,i.markup=s?a+a:a,i.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,o=e.pos,i=e.src.charCodeAt(o);if(t)return!1;if(95!==i&&42!==i)return!1;for(r=e.scanDelims(e.pos,42===i),n=0;n{"use strict";var r=n(3906),o=n(5292).has,i=n(5292).isValidEntityCode,a=n(5292).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,u,c=e.pos,d=e.posMax;if(38!==e.src.charCodeAt(c))return!1;if(c+1{"use strict";for(var r=n(5292).isSpace,o=[],i=0;i<256;i++)o.push(0);"\\\\!\\"#$%&\'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach((function(e){o[e.charCodeAt(0)]=1})),e.exports=function(e,t){var n,i=e.pos,a=e.posMax;if(92!==e.src.charCodeAt(i))return!1;if(++i{"use strict";var r=n(9372).n;e.exports=function(e,t){var n,o,i,a=e.pos;return!(!e.md.options.html||(i=e.posMax,60!==e.src.charCodeAt(a)||a+2>=i||33!==(n=e.src.charCodeAt(a+1))&&63!==n&&47!==n&&!function(e){var t=32|e;return t>=97&&t<=122}(n)||!(o=e.src.slice(a).match(r))||(t||(e.push("html_inline","",0).content=e.src.slice(a,a+o[0].length)),e.pos+=o[0].length,0)))}},2641:(e,t,n)=>{"use strict";var r=n(5292).normalizeReference,o=n(5292).isSpace;e.exports=function(e,t){var n,i,a,s,l,u,c,d,f,p,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(u=e.pos+2,(l=e.md.helpers.parseLinkLabel(e,e.pos+1,!1))<0)return!1;if((c=l+1)=b)return!1;for(g=c,(f=e.md.helpers.parseLinkDestination(e.src,c,e.posMax)).ok&&(v=e.md.normalizeLink(f.str),e.md.validateLink(v)?c=f.pos:v=""),g=c;c=b||41!==e.src.charCodeAt(c))return e.pos=y,!1;c++}else{if(void 0===e.env.references)return!1;if(c=0?s=e.src.slice(g,c++):c=l+1):c=l+1,s||(s=e.src.slice(u,l)),!(d=e.env.references[r(s)]))return e.pos=y,!1;v=d.href,p=d.title}return t||(a=e.src.slice(u,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,p&&n.push(["title",p])),e.pos=c,e.posMax=b,!0}},6267:(e,t,n)=>{"use strict";var r=n(5292).normalizeReference,o=n(5292).isSpace;e.exports=function(e,t){var n,i,a,s,l,u,c,d,f="",p="",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((u=s+1)=m)return!1;if(g=u,(c=e.md.helpers.parseLinkDestination(e.src,u,e.posMax)).ok){for(f=e.md.normalizeLink(c.str),e.md.validateLink(f)?u=c.pos:f="",g=u;u=m||41!==e.src.charCodeAt(u))&&(v=!0),u++}if(v){if(void 0===e.env.references)return!1;if(u=0?a=e.src.slice(g,u++):u=s+1):u=s+1,a||(a=e.src.slice(l,s)),!(d=e.env.references[r(a)]))return e.pos=h,!1;f=d.href,p=d.title}return t||(e.pos=l,e.posMax=s,e.push("link_open","a",1).attrs=n=[["href",f]],p&&n.push(["title",p]),e.md.inline.tokenize(e),e.push("link_close","a",-1)),e.pos=u,e.posMax=m,!0}},4537:(e,t,n)=>{"use strict";var r=n(5292).isSpace;e.exports=function(e,t){var n,o,i,a=e.pos;if(10!==e.src.charCodeAt(a))return!1;if(n=e.pending.length-1,o=e.posMax,!t)if(n>=0&&32===e.pending.charCodeAt(n))if(n>=1&&32===e.pending.charCodeAt(n-1)){for(i=n-1;i>=1&&32===e.pending.charCodeAt(i-1);)i--;e.pending=e.pending.slice(0,i),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(9147),o=n(5292).isWhiteSpace,i=n(5292).isPunctChar,a=n(5292).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 o=new r(e,t,n),i=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),o.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(o),this.tokens_meta.push(i),o},s.prototype.scanDelims=function(e,t){var n,r,s,l,u,c,d,f,p,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,o,i,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,o=e.tokens,i=e.tokens.length;for(t=n=0;t0&&r++,"text"===o[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},3771:e=>{"use strict";var t={};function n(e,r){var o;return"string"!=typeof r&&(r=n.defaultChars),o=function(e){var n,r,o=t[e];if(o)return o;for(o=t[e]=[],n=0;n<128;n++)r=String.fromCharCode(n),o.push(r);for(n=0;n=55296&&l<=57343?"\uFFFD\uFFFD\uFFFD":String.fromCharCode(l),t+=6):240==(248&r)&&t+91114111?u+="\uFFFD\uFFFD\uFFFD\uFFFD":(l-=65536,u+=String.fromCharCode(55296+(l>>10),56320+(1023&l))),t+=9):u+="\uFFFD";return u}))}n.defaultChars=";/?:@&=+$,#",n.componentChars="",e.exports=n},1737:e=>{"use strict";var t={};function n(e,r,o){var i,a,s,l,u,c="";for("string"!=typeof r&&(o=r,r=n.defaultChars),void 0===o&&(o=!0),u=function(e){var n,r,o=t[e];if(o)return o;for(o=t[e]=[],n=0;n<128;n++)r=String.fromCharCode(n),/^[0-9a-z]$/i.test(r)?o.push(r):o.push("%"+("0"+n.toString(16).toUpperCase()).slice(-2));for(n=0;n=55296&&s<=57343){if(s>=55296&&s<=56319&&i+1=56320&&l<=57343){c+=encodeURIComponent(e[i]+e[i+1]),i++;continue}c+="%EF%BF%BD"}else c+=encodeURIComponent(e[i]);return c}n.defaultChars=";/?:@&=+$,-_.!~*\'()#",n.componentChars="-_.!~*\'()",e.exports=n},5024: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||"")}},4976:(e,t,n)=>{"use strict";e.exports.encode=n(1737),e.exports.decode=n(3771),e.exports.format=n(5024),e.exports.parse=n(2084)},2084: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]*$/,o=/^(\\/\\/?(?!\\/)[^\\?\\s]*)(\\?[^\\s]*)?$/,i=["{","}","|","\\\\","^","`"].concat(["<",">",\'"\',"`"," ","\\r","\\n","\\t"]),a=["\'"].concat(i),s=["%","/","?",";","#"].concat(a),l=["/","?","#"],u=/^[+a-z0-9A-Z_-]{0,63}$/,c=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,d={javascript:!0,"javascript:":!0},f={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,i,a,p,h,m=e;if(m=m.trim(),!t&&1===e.split("#").length){var g=o.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&&d[v]||(m=m.substr(2),this.slashes=!0)),!d[v]&&(h||v&&!f[v])){var y,b,A=-1;for(r=0;r127?k+="x":k+=C[T];if(!k.match(u)){var N=E.slice(0,r),O=E.slice(r+1),L=C.match(c);L&&(N.push(L[1]),O.unshift(L[2])),O.length&&(m=O.join(".")+m),this.hostname=N.join(".");break}}}}this.hostname.length>255&&(this.hostname=""),x&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var D=m.indexOf("#");-1!==D&&(this.hash=m.substr(D),m=m.slice(0,D));var M=m.indexOf("?");return-1!==M&&(this.search=m.substr(M),m=m.slice(0,M)),m&&(this.pathname=m),f[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}},750:e=>{"use strict";function t(e,t){if(null!=e)return e;var n=new Error(void 0!==t?t:"Got unexpected "+e);throw n.framesToPop=1,n}e.exports=t,e.exports.default=t,Object.defineProperty(e.exports,"__esModule",{value:!0})},8058:(e,t,n)=>{"use strict";n.r(t),n.d(t,{decode:()=>v,default:()=>w,encode:()=>y,toASCII:()=>A,toUnicode:()=>b,ucs2decode:()=>p,ucs2encode:()=>h});const r=2147483647,o=36,i=/^xn--/,a=/[^\\0-\\x7F]/,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"},u=Math.floor,c=String.fromCharCode;function d(e){throw new RangeError(l[e])}function f(e,t){const n=e.split("@");let r="";n.length>1&&(r=n[0]+"@",e=n[1]);const o=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+o}function p(e){const t=[];let n=0;const r=e.length;for(;n=55296&&o<=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?u(e/700):e>>1,e+=u(e/t);e>455;r+=o)e=u(e/35);return u(r+36*e/(e+38))},v=function(e){const t=[],n=e.length;let i=0,a=128,s=72,l=e.lastIndexOf("-");l<0&&(l=0);for(let n=0;n=128&&d("not-basic"),t.push(e.charCodeAt(n));for(let f=l>0?l+1:0;f=n&&d("invalid-input");const l=(c=e.charCodeAt(f++))>=48&&c<58?c-48+26:c>=65&&c<91?c-65:c>=97&&c<123?c-97:o;l>=o&&d("invalid-input"),l>u((r-i)/t)&&d("overflow"),i+=l*t;const p=a<=s?1:a>=s+26?26:a-s;if(lu(r/h)&&d("overflow"),t*=h}const p=t.length+1;s=g(i-l,p,0==l),u(i/p)>r-a&&d("overflow"),a+=u(i/p),i%=p,t.splice(i++,0,a)}var c;return String.fromCodePoint(...t)},y=function(e){const t=[],n=(e=p(e)).length;let i=128,a=0,s=72;for(const n of e)n<128&&t.push(c(n));const l=t.length;let f=l;for(l&&t.push("-");f=i&&tu((r-a)/p)&&d("overflow"),a+=(n-i)*p,i=n;for(const n of e)if(nr&&d("overflow"),n===i){let e=a;for(let n=o;;n+=o){const r=n<=s?1:n>=s+26?26:n-s;if(e{"use strict";var r=n(2784),o=n(4616);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n