stepzen-graphiql 1.1.1 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. package/README.md +6 -6
  2. package/dist/{SchemaReference-O1hfpXGp.mjs → SchemaReference-DNGK8Gti.mjs} +1 -1
  3. package/dist/{SchemaReference-CydbnVnE.js → SchemaReference-PZPPI4-g.js} +1 -1
  4. package/dist/{brace-fold-VxazhuKh.mjs → brace-fold-DFRMFuzG.mjs} +1 -1
  5. package/dist/{brace-fold-DyEDA6CJ.js → brace-fold-QYFeMqi4.js} +1 -1
  6. package/dist/{closebrackets-DMYkULjQ.js → closebrackets-5W81jIxx.js} +1 -1
  7. package/dist/{closebrackets-C6N5hS39.mjs → closebrackets-BJdKNrct.mjs} +1 -1
  8. package/dist/{codemirror-DbwC_74X.mjs → codemirror-CK47QajN.mjs} +1 -1
  9. package/dist/{codemirror-Bwb2chlF.js → codemirror-P5arRD-4.js} +1 -1
  10. package/dist/{comment-CDLzhS51.js → comment-DZX4WUX2.js} +1 -1
  11. package/dist/{comment-CzVlHM6d.mjs → comment-DaZ9yeFw.mjs} +1 -1
  12. package/dist/{dialog-DrBkm28M.js → dialog-BWHlvTdM.js} +1 -1
  13. package/dist/{dialog-C0BPcCAi.mjs → dialog-BvB91RPq.mjs} +1 -1
  14. package/dist/{foldgutter-XixtzY3e.mjs → foldgutter-CEPGXQXV.mjs} +1 -1
  15. package/dist/{foldgutter-Eh4fmEpu.js → foldgutter-lfb5vdue.js} +1 -1
  16. package/dist/{hint-CRHfHd6k.mjs → hint-BImUj9vL.mjs} +3 -3
  17. package/dist/{hint-RRteRYU_.js → hint-BYh7bCzG.js} +1 -1
  18. package/dist/{hint-C6iKCiWs.mjs → hint-CeNacopx.mjs} +2 -2
  19. package/dist/{hint-ZTEkOyYz.js → hint-Cqs-Eq99.js} +1 -1
  20. package/dist/{index-6jtnIESt.mjs → index-BXTilrNr.mjs} +1 -1
  21. package/dist/{index-BTS4gVUq.js → index-BqePscbb.js} +1 -1
  22. package/dist/{index-DM1lKT7q.js → index-Of0v8HXf.js} +94 -94
  23. package/dist/{index-CynXcDPm.mjs → index-c_h-B3RW.mjs} +6143 -6156
  24. package/dist/index.cjs.js +1 -1
  25. package/dist/index.es.js +1 -1
  26. package/dist/{info-DCUSOSGO.mjs → info-DKGfeFeR.mjs} +4 -4
  27. package/dist/{info-addon-D6_XkhXs.js → info-addon-0QldEyjg.js} +1 -1
  28. package/dist/{info-addon-dOV-oaRO.mjs → info-addon-BQBJGmtN.mjs} +1 -1
  29. package/dist/{info-1h1Wnj43.js → info-euxfaXDv.js} +1 -1
  30. package/dist/{javascript-DoKETRRz.js → javascript-BMRweX7z.js} +1 -1
  31. package/dist/{javascript-kgCqVo2K.mjs → javascript-CEIhlHWT.mjs} +1 -1
  32. package/dist/{jsx-Br1KTZ3o.js → jsx-BY-uBax7.js} +1 -1
  33. package/dist/{jsx-CVvU4VUC.mjs → jsx-CZtHOvZL.mjs} +1 -1
  34. package/dist/{jump-DvkPgRZo.js → jump-Bn-VPPJQ.js} +1 -1
  35. package/dist/{jump-CrXdo65d.mjs → jump-BrK8-pOa.mjs} +2 -2
  36. package/dist/{jump-to-line-BWATzicH.mjs → jump-to-line-V4vHDeSQ.mjs} +1 -1
  37. package/dist/{jump-to-line-CE2wxrEi.js → jump-to-line-Zpc7tkYy.js} +1 -1
  38. package/dist/{lint-Btrvaf_v.js → lint-BBDtrEaL.js} +1 -1
  39. package/dist/{lint-C8fud_0s.mjs → lint-BEn4QK3F.mjs} +1 -1
  40. package/dist/{lint-WtS5wt-s.js → lint-BgrfL8k7.js} +1 -1
  41. package/dist/{lint-ClGdTXL8.mjs → lint-CiQwkfWf.mjs} +2 -2
  42. package/dist/{lint-B1RIjMr0.js → lint-DxY_4HRh.js} +1 -1
  43. package/dist/{lint-DT_KvN7d.mjs → lint-naD3ldhf.mjs} +2 -2
  44. package/dist/{matchbrackets-BSYDJrIg.js → matchbrackets-DhN7zJoS.js} +1 -1
  45. package/dist/{matchbrackets-Cos6B9A-.mjs → matchbrackets-eKECiv9B.mjs} +1 -1
  46. package/dist/{mode-BlJM7Q7P.js → mode-CgGO246j.js} +1 -1
  47. package/dist/{mode-Zx7fS07W.mjs → mode-CwlRWrPi.mjs} +2 -2
  48. package/dist/{mode-DMY17Or5.js → mode-DyP1DXNa.js} +1 -1
  49. package/dist/{mode-CGRPiW5J.mjs → mode-kdpxZ9Hq.mjs} +2 -2
  50. package/dist/{mode-Cr6Z6hG2.js → mode-r_2HfIrS.js} +1 -1
  51. package/dist/{mode-wRqtpzbQ.mjs → mode-xgi1fEzL.mjs} +2 -2
  52. package/dist/{search-BWMDd4W2.mjs → search-BuLFIkN5.mjs} +1 -1
  53. package/dist/{search--Q4DMDfT.js → search-CclAH4eV.js} +1 -1
  54. package/dist/{searchcursor-BedgzfnY.mjs → searchcursor-B9F32jvl.mjs} +1 -1
  55. package/dist/{searchcursor-DqZJR721.js → searchcursor-CV26OekK.js} +1 -1
  56. package/dist/{show-hint-C0O92_Ta.mjs → show-hint-BfWoiGzQ.mjs} +1 -1
  57. package/dist/{show-hint-CAVLRDzW.js → show-hint-CQ_VjC6w.js} +1 -1
  58. package/dist/style.css +1 -1
  59. package/dist/{sublime-01HyEJv3.mjs → sublime-C6Rg9CL1.mjs} +1 -1
  60. package/dist/{sublime-cIQo_I6y.js → sublime-DFk-sDtd.js} +1 -1
  61. package/dist/types/config.d.ts +2 -1
  62. package/package.json +1 -1
package/dist/index.cjs.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-DM1lKT7q.js");exports.GraphiQLExplorer=e.GraphiQLExplorer;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-Of0v8HXf.js");exports.GraphiQLExplorer=e.GraphiQLExplorer;
package/dist/index.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { H as p } from "./index-CynXcDPm.mjs";
1
+ import { H as p } from "./index-c_h-B3RW.mjs";
2
2
  export {
3
3
  p as GraphiQLExplorer
4
4
  };
@@ -1,7 +1,7 @@
1
- import { C as v } from "./codemirror-DbwC_74X.mjs";
2
- import { g as D, a as E, b as N, c as T, d as s, e as g } from "./SchemaReference-O1hfpXGp.mjs";
3
- import "./info-addon-dOV-oaRO.mjs";
4
- import { b as u, d as f } from "./index-CynXcDPm.mjs";
1
+ import { C as v } from "./codemirror-CK47QajN.mjs";
2
+ import { g as D, a as E, b as N, c as T, d as s, e as g } from "./SchemaReference-DNGK8Gti.mjs";
3
+ import "./info-addon-BQBJGmtN.mjs";
4
+ import { b as u, d as f } from "./index-c_h-B3RW.mjs";
5
5
  v.registerHelper("info", "graphql", (a, n) => {
6
6
  var d;
7
7
  if (!n.schema || !a.state)
@@ -1 +1 @@
1
- "use strict";const r=require("./codemirror-Bwb2chlF.js");r.CodeMirror.defineOption("info",!1,(e,t,n)=>{if(n&&n!==r.CodeMirror.Init){const o=e.state.info.onMouseOver;r.CodeMirror.off(e.getWrapperElement(),"mouseover",o),clearTimeout(e.state.info.hoverTimeout),delete e.state.info}if(t){const o=e.state.info=v(t);o.onMouseOver=g.bind(null,e),r.CodeMirror.on(e.getWrapperElement(),"mouseover",o.onMouseOver)}});function v(e){return{options:e instanceof Function?{render:e}:e===!0?{}:e}}function M(e){const{options:t}=e.state.info;return(t==null?void 0:t.hoverTime)||500}function g(e,t){const n=e.state.info,o=t.target||t.srcElement;if(!(o instanceof HTMLElement)||o.nodeName!=="SPAN"||n.hoverTimeout!==void 0)return;const u=o.getBoundingClientRect(),i=function(){clearTimeout(n.hoverTimeout),n.hoverTimeout=setTimeout(f,p)},s=function(){r.CodeMirror.off(document,"mousemove",i),r.CodeMirror.off(e.getWrapperElement(),"mouseout",s),clearTimeout(n.hoverTimeout),n.hoverTimeout=void 0},f=function(){r.CodeMirror.off(document,"mousemove",i),r.CodeMirror.off(e.getWrapperElement(),"mouseout",s),n.hoverTimeout=void 0,T(e,u)},p=M(e);n.hoverTimeout=setTimeout(f,p),r.CodeMirror.on(document,"mousemove",i),r.CodeMirror.on(e.getWrapperElement(),"mouseout",s)}function T(e,t){const n=e.coordsChar({left:(t.left+t.right)/2,top:(t.top+t.bottom)/2},"window"),o=e.state.info,{options:u}=o,i=u.render||e.getHelper(n,"info");if(i){const s=e.getTokenAt(n,!0);if(s){const f=i(s,u,e,n);f&&h(e,t,f)}}}function h(e,t,n){const o=document.createElement("div");o.className="CodeMirror-info",o.append(n),document.body.append(o);const u=o.getBoundingClientRect(),i=window.getComputedStyle(o),s=u.right-u.left+parseFloat(i.marginLeft)+parseFloat(i.marginRight),f=u.bottom-u.top+parseFloat(i.marginTop)+parseFloat(i.marginBottom);let p=t.bottom;f>window.innerHeight-t.bottom-15&&t.top>window.innerHeight-t.bottom&&(p=t.top-f),p<0&&(p=t.bottom);let a=Math.max(0,window.innerWidth-s-15);a>t.left&&(a=t.left),o.style.opacity="1",o.style.top=p+"px",o.style.left=a+"px";let m;const l=function(){clearTimeout(m)},d=function(){clearTimeout(m),m=setTimeout(c,200)},c=function(){r.CodeMirror.off(o,"mouseover",l),r.CodeMirror.off(o,"mouseout",d),r.CodeMirror.off(e.getWrapperElement(),"mouseout",d),o.style.opacity?(o.style.opacity="0",setTimeout(()=>{o.parentNode&&o.remove()},600)):o.parentNode&&o.remove()};r.CodeMirror.on(o,"mouseover",l),r.CodeMirror.on(o,"mouseout",d),r.CodeMirror.on(e.getWrapperElement(),"mouseout",d)}
1
+ "use strict";const r=require("./codemirror-P5arRD-4.js");r.CodeMirror.defineOption("info",!1,(e,t,n)=>{if(n&&n!==r.CodeMirror.Init){const o=e.state.info.onMouseOver;r.CodeMirror.off(e.getWrapperElement(),"mouseover",o),clearTimeout(e.state.info.hoverTimeout),delete e.state.info}if(t){const o=e.state.info=v(t);o.onMouseOver=g.bind(null,e),r.CodeMirror.on(e.getWrapperElement(),"mouseover",o.onMouseOver)}});function v(e){return{options:e instanceof Function?{render:e}:e===!0?{}:e}}function M(e){const{options:t}=e.state.info;return(t==null?void 0:t.hoverTime)||500}function g(e,t){const n=e.state.info,o=t.target||t.srcElement;if(!(o instanceof HTMLElement)||o.nodeName!=="SPAN"||n.hoverTimeout!==void 0)return;const u=o.getBoundingClientRect(),i=function(){clearTimeout(n.hoverTimeout),n.hoverTimeout=setTimeout(f,p)},s=function(){r.CodeMirror.off(document,"mousemove",i),r.CodeMirror.off(e.getWrapperElement(),"mouseout",s),clearTimeout(n.hoverTimeout),n.hoverTimeout=void 0},f=function(){r.CodeMirror.off(document,"mousemove",i),r.CodeMirror.off(e.getWrapperElement(),"mouseout",s),n.hoverTimeout=void 0,T(e,u)},p=M(e);n.hoverTimeout=setTimeout(f,p),r.CodeMirror.on(document,"mousemove",i),r.CodeMirror.on(e.getWrapperElement(),"mouseout",s)}function T(e,t){const n=e.coordsChar({left:(t.left+t.right)/2,top:(t.top+t.bottom)/2},"window"),o=e.state.info,{options:u}=o,i=u.render||e.getHelper(n,"info");if(i){const s=e.getTokenAt(n,!0);if(s){const f=i(s,u,e,n);f&&h(e,t,f)}}}function h(e,t,n){const o=document.createElement("div");o.className="CodeMirror-info",o.append(n),document.body.append(o);const u=o.getBoundingClientRect(),i=window.getComputedStyle(o),s=u.right-u.left+parseFloat(i.marginLeft)+parseFloat(i.marginRight),f=u.bottom-u.top+parseFloat(i.marginTop)+parseFloat(i.marginBottom);let p=t.bottom;f>window.innerHeight-t.bottom-15&&t.top>window.innerHeight-t.bottom&&(p=t.top-f),p<0&&(p=t.bottom);let a=Math.max(0,window.innerWidth-s-15);a>t.left&&(a=t.left),o.style.opacity="1",o.style.top=p+"px",o.style.left=a+"px";let m;const l=function(){clearTimeout(m)},d=function(){clearTimeout(m),m=setTimeout(c,200)},c=function(){r.CodeMirror.off(o,"mouseover",l),r.CodeMirror.off(o,"mouseout",d),r.CodeMirror.off(e.getWrapperElement(),"mouseout",d),o.style.opacity?(o.style.opacity="0",setTimeout(()=>{o.parentNode&&o.remove()},600)):o.parentNode&&o.remove()};r.CodeMirror.on(o,"mouseover",l),r.CodeMirror.on(o,"mouseout",d),r.CodeMirror.on(e.getWrapperElement(),"mouseout",d)}
@@ -1,4 +1,4 @@
1
- import { C as i } from "./codemirror-DbwC_74X.mjs";
1
+ import { C as i } from "./codemirror-CK47QajN.mjs";
2
2
  i.defineOption("info", !1, (e, t, n) => {
3
3
  if (n && n !== i.Init) {
4
4
  const o = e.state.info.onMouseOver;
@@ -1 +1 @@
1
- "use strict";const p=require("./codemirror-Bwb2chlF.js"),m=require("./SchemaReference-CydbnVnE.js");require("./info-addon-D6_XkhXs.js");const s=require("./index-DM1lKT7q.js");p.CodeMirror.registerHelper("info","graphql",(r,n)=>{var c;if(!n.schema||!r.state)return;const{kind:e,step:a}=r.state,i=m.getTypeInfo(n.schema,r.state);if(e==="Field"&&a===0&&i.fieldDef||e==="AliasedField"&&a===2&&i.fieldDef||e==="ObjectField"&&a===0&&i.fieldDef){const d=document.createElement("div");d.className="CodeMirror-info-header",v(d,i,n);const t=document.createElement("div");return t.append(d),u(t,n,i.fieldDef),t}if(e==="Directive"&&a===1&&i.directiveDef){const d=document.createElement("div");d.className="CodeMirror-info-header",E(d,i,n);const t=document.createElement("div");return t.append(d),u(t,n,i.directiveDef),t}if(e==="Argument"&&a===0&&i.argDef){const d=document.createElement("div");d.className="CodeMirror-info-header",N(d,i,n);const t=document.createElement("div");return t.append(d),u(t,n,i.argDef),t}if(e==="EnumValue"&&(!((c=i.enumValue)===null||c===void 0)&&c.description)){const d=document.createElement("div");d.className="CodeMirror-info-header",h(d,i,n);const t=document.createElement("div");return t.append(d),u(t,n,i.enumValue),t}if(e==="NamedType"&&i.type&&i.type.description){const d=document.createElement("div");d.className="CodeMirror-info-header",o(d,i,n,i.type);const t=document.createElement("div");return t.append(d),u(t,n,i.type),t}});function v(r,n,c){D(r,n,c),f(r,n,c,n.type)}function D(r,n,c){var e;const a=((e=n.fieldDef)===null||e===void 0?void 0:e.name)||"";l(r,a,"field-name",c,m.getFieldReference(n))}function E(r,n,c){var e;const a="@"+(((e=n.directiveDef)===null||e===void 0?void 0:e.name)||"");l(r,a,"directive-name",c,m.getDirectiveReference(n))}function N(r,n,c){var e;const a=((e=n.argDef)===null||e===void 0?void 0:e.name)||"";l(r,a,"arg-name",c,m.getArgumentReference(n)),f(r,n,c,n.inputType)}function h(r,n,c){var e;const a=((e=n.enumValue)===null||e===void 0?void 0:e.name)||"";o(r,n,c,n.inputType),l(r,"."),l(r,a,"enum-value",c,m.getEnumValueReference(n))}function f(r,n,c,e){const a=document.createElement("span");a.className="type-name-pill",e instanceof s.GraphQLNonNull?(o(a,n,c,e.ofType),l(a,"!")):e instanceof s.GraphQLList?(l(a,"["),o(a,n,c,e.ofType),l(a,"]")):l(a,(e==null?void 0:e.name)||"","type-name",c,m.getTypeReference(n,e)),r.append(a)}function o(r,n,c,e){e instanceof s.GraphQLNonNull?(o(r,n,c,e.ofType),l(r,"!")):e instanceof s.GraphQLList?(l(r,"["),o(r,n,c,e.ofType),l(r,"]")):l(r,(e==null?void 0:e.name)||"","type-name",c,m.getTypeReference(n,e))}function u(r,n,c){const{description:e}=c;if(e){const a=document.createElement("div");a.className="info-description",n.renderDescription?a.innerHTML=n.renderDescription(e):a.append(document.createTextNode(e)),r.append(a)}T(r,n,c)}function T(r,n,c){const e=c.deprecationReason;if(e){const a=document.createElement("div");a.className="info-deprecation",r.append(a);const i=document.createElement("span");i.className="info-deprecation-label",i.append(document.createTextNode("Deprecated")),a.append(i);const d=document.createElement("div");d.className="info-deprecation-reason",n.renderDescription?d.innerHTML=n.renderDescription(e):d.append(document.createTextNode(e)),a.append(d)}}function l(r,n,c="",e={onClick:null},a=null){if(c){const{onClick:i}=e;let d;i?(d=document.createElement("a"),d.href="javascript:void 0",d.addEventListener("click",t=>{t.preventDefault(),i(a,t)})):d=document.createElement("span"),d.className=c,d.append(document.createTextNode(n)),r.append(d)}else r.append(document.createTextNode(n))}
1
+ "use strict";const p=require("./codemirror-P5arRD-4.js"),m=require("./SchemaReference-PZPPI4-g.js");require("./info-addon-0QldEyjg.js");const s=require("./index-Of0v8HXf.js");p.CodeMirror.registerHelper("info","graphql",(r,n)=>{var c;if(!n.schema||!r.state)return;const{kind:e,step:a}=r.state,i=m.getTypeInfo(n.schema,r.state);if(e==="Field"&&a===0&&i.fieldDef||e==="AliasedField"&&a===2&&i.fieldDef||e==="ObjectField"&&a===0&&i.fieldDef){const d=document.createElement("div");d.className="CodeMirror-info-header",v(d,i,n);const t=document.createElement("div");return t.append(d),u(t,n,i.fieldDef),t}if(e==="Directive"&&a===1&&i.directiveDef){const d=document.createElement("div");d.className="CodeMirror-info-header",E(d,i,n);const t=document.createElement("div");return t.append(d),u(t,n,i.directiveDef),t}if(e==="Argument"&&a===0&&i.argDef){const d=document.createElement("div");d.className="CodeMirror-info-header",N(d,i,n);const t=document.createElement("div");return t.append(d),u(t,n,i.argDef),t}if(e==="EnumValue"&&(!((c=i.enumValue)===null||c===void 0)&&c.description)){const d=document.createElement("div");d.className="CodeMirror-info-header",h(d,i,n);const t=document.createElement("div");return t.append(d),u(t,n,i.enumValue),t}if(e==="NamedType"&&i.type&&i.type.description){const d=document.createElement("div");d.className="CodeMirror-info-header",o(d,i,n,i.type);const t=document.createElement("div");return t.append(d),u(t,n,i.type),t}});function v(r,n,c){D(r,n,c),f(r,n,c,n.type)}function D(r,n,c){var e;const a=((e=n.fieldDef)===null||e===void 0?void 0:e.name)||"";l(r,a,"field-name",c,m.getFieldReference(n))}function E(r,n,c){var e;const a="@"+(((e=n.directiveDef)===null||e===void 0?void 0:e.name)||"");l(r,a,"directive-name",c,m.getDirectiveReference(n))}function N(r,n,c){var e;const a=((e=n.argDef)===null||e===void 0?void 0:e.name)||"";l(r,a,"arg-name",c,m.getArgumentReference(n)),f(r,n,c,n.inputType)}function h(r,n,c){var e;const a=((e=n.enumValue)===null||e===void 0?void 0:e.name)||"";o(r,n,c,n.inputType),l(r,"."),l(r,a,"enum-value",c,m.getEnumValueReference(n))}function f(r,n,c,e){const a=document.createElement("span");a.className="type-name-pill",e instanceof s.GraphQLNonNull?(o(a,n,c,e.ofType),l(a,"!")):e instanceof s.GraphQLList?(l(a,"["),o(a,n,c,e.ofType),l(a,"]")):l(a,(e==null?void 0:e.name)||"","type-name",c,m.getTypeReference(n,e)),r.append(a)}function o(r,n,c,e){e instanceof s.GraphQLNonNull?(o(r,n,c,e.ofType),l(r,"!")):e instanceof s.GraphQLList?(l(r,"["),o(r,n,c,e.ofType),l(r,"]")):l(r,(e==null?void 0:e.name)||"","type-name",c,m.getTypeReference(n,e))}function u(r,n,c){const{description:e}=c;if(e){const a=document.createElement("div");a.className="info-description",n.renderDescription?a.innerHTML=n.renderDescription(e):a.append(document.createTextNode(e)),r.append(a)}T(r,n,c)}function T(r,n,c){const e=c.deprecationReason;if(e){const a=document.createElement("div");a.className="info-deprecation",r.append(a);const i=document.createElement("span");i.className="info-deprecation-label",i.append(document.createTextNode("Deprecated")),a.append(i);const d=document.createElement("div");d.className="info-deprecation-reason",n.renderDescription?d.innerHTML=n.renderDescription(e):d.append(document.createTextNode(e)),a.append(d)}}function l(r,n,c="",e={onClick:null},a=null){if(c){const{onClick:i}=e;let d;i?(d=document.createElement("a"),d.href="javascript:void 0",d.addEventListener("click",t=>{t.preventDefault(),i(a,t)})):d=document.createElement("span"),d.className=c,d.append(document.createTextNode(n)),r.append(d)}else r.append(document.createTextNode(n))}
@@ -1 +1 @@
1
- "use strict";const i=require("./index-DM1lKT7q.js"),n=require("./javascript-poxRzxcy.js");function p(t,s){for(var a=0;a<s.length;a++){const e=s[a];if(typeof e!="string"&&!Array.isArray(e)){for(const r in e)if(r!=="default"&&!(r in t)){const o=Object.getOwnPropertyDescriptor(e,r);o&&Object.defineProperty(t,r,o.get?o:{enumerable:!0,get:()=>e[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var c=n.requireJavascript();const u=i.getDefaultExportFromCjs(c),f=p({__proto__:null,default:u},[c]);exports.javascript=f;
1
+ "use strict";const i=require("./index-Of0v8HXf.js"),n=require("./javascript-poxRzxcy.js");function p(t,s){for(var a=0;a<s.length;a++){const e=s[a];if(typeof e!="string"&&!Array.isArray(e)){for(const r in e)if(r!=="default"&&!(r in t)){const o=Object.getOwnPropertyDescriptor(e,r);o&&Object.defineProperty(t,r,o.get?o:{enumerable:!0,get:()=>e[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var c=n.requireJavascript();const u=i.getDefaultExportFromCjs(c),f=p({__proto__:null,default:u},[c]);exports.javascript=f;
@@ -1,4 +1,4 @@
1
- import { g as c } from "./index-CynXcDPm.mjs";
1
+ import { g as c } from "./index-c_h-B3RW.mjs";
2
2
  import { r as n } from "./javascript-RO_jaPiE.mjs";
3
3
  function p(t, s) {
4
4
  for (var o = 0; o < s.length; o++) {
@@ -1 +1 @@
1
- "use strict";const $=require("./index-DM1lKT7q.js"),W=require("./codemirror-DMBo1i5w.js"),J=require("./javascript-poxRzxcy.js");function X(N,I){for(var a=0;a<I.length;a++){const s=I[a];if(typeof s!="string"&&!Array.isArray(s)){for(const x in s)if(x!=="default"&&!(x in N)){const c=Object.getOwnPropertyDescriptor(s,x);c&&Object.defineProperty(N,x,c.get?c:{enumerable:!0,get:()=>s[x]})}}}return Object.freeze(Object.defineProperty(N,Symbol.toStringTag,{value:"Module"}))}var C={exports:{}},U={exports:{}},_;function R(){return _||(_=1,function(N,I){(function(a){a(W.requireCodemirror())})(function(a){var s={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},x={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};a.defineMode("xml",function(c,v){var d=c.indentUnit,u={},y=v.htmlMode?s:x;for(var k in y)u[k]=y[k];for(var k in v)u[k]=v[k];var b,f;function i(e,r){function t(z){return r.tokenize=z,z(e,r)}var n=e.next();if(n=="<")return e.eat("!")?e.eat("[")?e.match("CDATA[")?t(m("atom","]]>")):null:e.match("--")?t(m("comment","-->")):e.match("DOCTYPE",!0,!0)?(e.eatWhile(/[\w\._\-]/),t(p(1))):null:e.eat("?")?(e.eatWhile(/[\w\._\-]/),r.tokenize=m("meta","?>"),"meta"):(b=e.eat("/")?"closeTag":"openTag",r.tokenize=l,"tag bracket");if(n=="&"){var h;return e.eat("#")?e.eat("x")?h=e.eatWhile(/[a-fA-F\d]/)&&e.eat(";"):h=e.eatWhile(/[\d]/)&&e.eat(";"):h=e.eatWhile(/[\w\.\-:]/)&&e.eat(";"),h?"atom":"error"}else return e.eatWhile(/[^&<]/),null}i.isInText=!0;function l(e,r){var t=e.next();if(t==">"||t=="/"&&e.eat(">"))return r.tokenize=i,b=t==">"?"endTag":"selfcloseTag","tag bracket";if(t=="=")return b="equals",null;if(t=="<"){r.tokenize=i,r.state=j,r.tagName=r.tagStart=null;var n=r.tokenize(e,r);return n?n+" tag error":"tag error"}else return/[\'\"]/.test(t)?(r.tokenize=o(t),r.stringStartCol=e.column(),r.tokenize(e,r)):(e.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function o(e){var r=function(t,n){for(;!t.eol();)if(t.next()==e){n.tokenize=l;break}return"string"};return r.isInAttribute=!0,r}function m(e,r){return function(t,n){for(;!t.eol();){if(t.match(r)){n.tokenize=i;break}t.next()}return e}}function p(e){return function(r,t){for(var n;(n=r.next())!=null;){if(n=="<")return t.tokenize=p(e+1),t.tokenize(r,t);if(n==">")if(e==1){t.tokenize=i;break}else return t.tokenize=p(e-1),t.tokenize(r,t)}return"meta"}}function g(e){return e&&e.toLowerCase()}function T(e,r,t){this.prev=e.context,this.tagName=r||"",this.indent=e.indented,this.startOfLine=t,(u.doNotIndent.hasOwnProperty(r)||e.context&&e.context.noIndent)&&(this.noIndent=!0)}function S(e){e.context&&(e.context=e.context.prev)}function M(e,r){for(var t;;){if(!e.context||(t=e.context.tagName,!u.contextGrabbers.hasOwnProperty(g(t))||!u.contextGrabbers[g(t)].hasOwnProperty(g(r))))return;S(e)}}function j(e,r,t){return e=="openTag"?(t.tagStart=r.column(),q):e=="closeTag"?G:j}function q(e,r,t){return e=="word"?(t.tagName=r.current(),f="tag",w):u.allowMissingTagName&&e=="endTag"?(f="tag bracket",w(e,r,t)):(f="error",q)}function G(e,r,t){if(e=="word"){var n=r.current();return t.context&&t.context.tagName!=n&&u.implicitlyClosed.hasOwnProperty(g(t.context.tagName))&&S(t),t.context&&t.context.tagName==n||u.matchClosing===!1?(f="tag",O):(f="tag error",P)}else return u.allowMissingTagName&&e=="endTag"?(f="tag bracket",O(e,r,t)):(f="error",P)}function O(e,r,t){return e!="endTag"?(f="error",O):(S(t),j)}function P(e,r,t){return f="error",O(e,r,t)}function w(e,r,t){if(e=="word")return f="attribute",L;if(e=="endTag"||e=="selfcloseTag"){var n=t.tagName,h=t.tagStart;return t.tagName=t.tagStart=null,e=="selfcloseTag"||u.autoSelfClosers.hasOwnProperty(g(n))?M(t,n):(M(t,n),t.context=new T(t,n,h==t.indented)),j}return f="error",w}function L(e,r,t){return e=="equals"?A:(u.allowMissing||(f="error"),w(e,r,t))}function A(e,r,t){return e=="string"?E:e=="word"&&u.allowUnquoted?(f="string",w):(f="error",w(e,r,t))}function E(e,r,t){return e=="string"?E:w(e,r,t)}return{startState:function(e){var r={tokenize:i,state:j,indented:e||0,tagName:null,tagStart:null,context:null};return e!=null&&(r.baseIndent=e),r},token:function(e,r){if(!r.tagName&&e.sol()&&(r.indented=e.indentation()),e.eatSpace())return null;b=null;var t=r.tokenize(e,r);return(t||b)&&t!="comment"&&(f=null,r.state=r.state(b||t,e,r),f&&(t=f=="error"?t+" error":f)),t},indent:function(e,r,t){var n=e.context;if(e.tokenize.isInAttribute)return e.tagStart==e.indented?e.stringStartCol+1:e.indented+d;if(n&&n.noIndent)return a.Pass;if(e.tokenize!=l&&e.tokenize!=i)return t?t.match(/^(\s*)/)[0].length:0;if(e.tagName)return u.multilineTagIndentPastTag!==!1?e.tagStart+e.tagName.length+2:e.tagStart+d*(u.multilineTagIndentFactor||1);if(u.alignCDATA&&/<!\[CDATA\[/.test(r))return 0;var h=r&&/^<(\/)?([\w_:\.-]*)/.exec(r);if(h&&h[1])for(;n;)if(n.tagName==h[2]){n=n.prev;break}else if(u.implicitlyClosed.hasOwnProperty(g(n.tagName)))n=n.prev;else break;else if(h)for(;n;){var z=u.contextGrabbers[g(n.tagName)];if(z&&z.hasOwnProperty(g(h[2])))n=n.prev;else break}for(;n&&n.prev&&!n.startOfLine;)n=n.prev;return n?n.indent+d:e.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:u.htmlMode?"html":"xml",helperType:u.htmlMode?"html":"xml",skipAttribute:function(e){e.state==A&&(e.state=w)},xmlCurrentTag:function(e){return e.tagName?{name:e.tagName,close:e.type=="closeTag"}:null},xmlCurrentContext:function(e){for(var r=[],t=e.context;t;t=t.prev)r.push(t.tagName);return r.reverse()}}}),a.defineMIME("text/xml","xml"),a.defineMIME("application/xml","xml"),a.mimeModes.hasOwnProperty("text/html")||a.defineMIME("text/html",{name:"xml",htmlMode:!0})})}()),U.exports}var D;function B(){return D||(D=1,function(N,I){(function(a){a(W.requireCodemirror(),R(),J.requireJavascript())})(function(a){function s(c,v,d,u){this.state=c,this.mode=v,this.depth=d,this.prev=u}function x(c){return new s(a.copyState(c.mode,c.state),c.mode,c.depth,c.prev&&x(c.prev))}a.defineMode("jsx",function(c,v){var d=a.getMode(c,{name:"xml",allowMissing:!0,multilineTagIndentPastTag:!1,allowMissingTagName:!0}),u=a.getMode(c,v&&v.base||"javascript");function y(i){var l=i.tagName;i.tagName=null;var o=d.indent(i,"","");return i.tagName=l,o}function k(i,l){return l.context.mode==d?b(i,l,l.context):f(i,l,l.context)}function b(i,l,o){if(o.depth==2)return i.match(/^.*?\*\//)?o.depth=1:i.skipToEnd(),"comment";if(i.peek()=="{"){d.skipAttribute(o.state);var m=y(o.state),p=o.state.context;if(p&&i.match(/^[^>]*>\s*$/,!1)){for(;p.prev&&!p.startOfLine;)p=p.prev;p.startOfLine?m-=c.indentUnit:o.prev.state.lexical&&(m=o.prev.state.lexical.indented)}else o.depth==1&&(m+=c.indentUnit);return l.context=new s(a.startState(u,m),u,0,l.context),null}if(o.depth==1){if(i.peek()=="<")return d.skipAttribute(o.state),l.context=new s(a.startState(d,y(o.state)),d,0,l.context),null;if(i.match("//"))return i.skipToEnd(),"comment";if(i.match("/*"))return o.depth=2,k(i,l)}var g=d.token(i,o.state),T=i.current(),S;return/\btag\b/.test(g)?/>$/.test(T)?o.state.context?o.depth=0:l.context=l.context.prev:/^</.test(T)&&(o.depth=1):!g&&(S=T.indexOf("{"))>-1&&i.backUp(T.length-S),g}function f(i,l,o){if(i.peek()=="<"&&!i.match(/^<([^<>]|<[^>]*>)+,\s*>/,!1)&&u.expressionAllowed(i,o.state))return l.context=new s(a.startState(d,u.indent(o.state,"","")),d,0,l.context),u.skipExpression(o.state),null;var m=u.token(i,o.state);if(!m&&o.depth!=null){var p=i.current();p=="{"?o.depth++:p=="}"&&--o.depth==0&&(l.context=l.context.prev)}return m}return{startState:function(){return{context:new s(a.startState(u),u)}},copyState:function(i){return{context:x(i.context)}},token:k,indent:function(i,l,o){return i.context.mode.indent(i.context.state,l,o)},innerMode:function(i){return i.context}}},"xml","javascript"),a.defineMIME("text/jsx","jsx"),a.defineMIME("text/typescript-jsx",{name:"jsx",base:{name:"javascript",typescript:!0}})})}()),C.exports}var F=B();const V=$.getDefaultExportFromCjs(F),Y=X({__proto__:null,default:V},[F]);exports.jsx=Y;
1
+ "use strict";const $=require("./index-Of0v8HXf.js"),W=require("./codemirror-DMBo1i5w.js"),J=require("./javascript-poxRzxcy.js");function X(N,I){for(var a=0;a<I.length;a++){const s=I[a];if(typeof s!="string"&&!Array.isArray(s)){for(const x in s)if(x!=="default"&&!(x in N)){const c=Object.getOwnPropertyDescriptor(s,x);c&&Object.defineProperty(N,x,c.get?c:{enumerable:!0,get:()=>s[x]})}}}return Object.freeze(Object.defineProperty(N,Symbol.toStringTag,{value:"Module"}))}var C={exports:{}},U={exports:{}},_;function R(){return _||(_=1,function(N,I){(function(a){a(W.requireCodemirror())})(function(a){var s={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},x={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};a.defineMode("xml",function(c,v){var d=c.indentUnit,u={},y=v.htmlMode?s:x;for(var k in y)u[k]=y[k];for(var k in v)u[k]=v[k];var b,f;function i(e,r){function t(z){return r.tokenize=z,z(e,r)}var n=e.next();if(n=="<")return e.eat("!")?e.eat("[")?e.match("CDATA[")?t(m("atom","]]>")):null:e.match("--")?t(m("comment","-->")):e.match("DOCTYPE",!0,!0)?(e.eatWhile(/[\w\._\-]/),t(p(1))):null:e.eat("?")?(e.eatWhile(/[\w\._\-]/),r.tokenize=m("meta","?>"),"meta"):(b=e.eat("/")?"closeTag":"openTag",r.tokenize=l,"tag bracket");if(n=="&"){var h;return e.eat("#")?e.eat("x")?h=e.eatWhile(/[a-fA-F\d]/)&&e.eat(";"):h=e.eatWhile(/[\d]/)&&e.eat(";"):h=e.eatWhile(/[\w\.\-:]/)&&e.eat(";"),h?"atom":"error"}else return e.eatWhile(/[^&<]/),null}i.isInText=!0;function l(e,r){var t=e.next();if(t==">"||t=="/"&&e.eat(">"))return r.tokenize=i,b=t==">"?"endTag":"selfcloseTag","tag bracket";if(t=="=")return b="equals",null;if(t=="<"){r.tokenize=i,r.state=j,r.tagName=r.tagStart=null;var n=r.tokenize(e,r);return n?n+" tag error":"tag error"}else return/[\'\"]/.test(t)?(r.tokenize=o(t),r.stringStartCol=e.column(),r.tokenize(e,r)):(e.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function o(e){var r=function(t,n){for(;!t.eol();)if(t.next()==e){n.tokenize=l;break}return"string"};return r.isInAttribute=!0,r}function m(e,r){return function(t,n){for(;!t.eol();){if(t.match(r)){n.tokenize=i;break}t.next()}return e}}function p(e){return function(r,t){for(var n;(n=r.next())!=null;){if(n=="<")return t.tokenize=p(e+1),t.tokenize(r,t);if(n==">")if(e==1){t.tokenize=i;break}else return t.tokenize=p(e-1),t.tokenize(r,t)}return"meta"}}function g(e){return e&&e.toLowerCase()}function T(e,r,t){this.prev=e.context,this.tagName=r||"",this.indent=e.indented,this.startOfLine=t,(u.doNotIndent.hasOwnProperty(r)||e.context&&e.context.noIndent)&&(this.noIndent=!0)}function S(e){e.context&&(e.context=e.context.prev)}function M(e,r){for(var t;;){if(!e.context||(t=e.context.tagName,!u.contextGrabbers.hasOwnProperty(g(t))||!u.contextGrabbers[g(t)].hasOwnProperty(g(r))))return;S(e)}}function j(e,r,t){return e=="openTag"?(t.tagStart=r.column(),q):e=="closeTag"?G:j}function q(e,r,t){return e=="word"?(t.tagName=r.current(),f="tag",w):u.allowMissingTagName&&e=="endTag"?(f="tag bracket",w(e,r,t)):(f="error",q)}function G(e,r,t){if(e=="word"){var n=r.current();return t.context&&t.context.tagName!=n&&u.implicitlyClosed.hasOwnProperty(g(t.context.tagName))&&S(t),t.context&&t.context.tagName==n||u.matchClosing===!1?(f="tag",O):(f="tag error",P)}else return u.allowMissingTagName&&e=="endTag"?(f="tag bracket",O(e,r,t)):(f="error",P)}function O(e,r,t){return e!="endTag"?(f="error",O):(S(t),j)}function P(e,r,t){return f="error",O(e,r,t)}function w(e,r,t){if(e=="word")return f="attribute",L;if(e=="endTag"||e=="selfcloseTag"){var n=t.tagName,h=t.tagStart;return t.tagName=t.tagStart=null,e=="selfcloseTag"||u.autoSelfClosers.hasOwnProperty(g(n))?M(t,n):(M(t,n),t.context=new T(t,n,h==t.indented)),j}return f="error",w}function L(e,r,t){return e=="equals"?A:(u.allowMissing||(f="error"),w(e,r,t))}function A(e,r,t){return e=="string"?E:e=="word"&&u.allowUnquoted?(f="string",w):(f="error",w(e,r,t))}function E(e,r,t){return e=="string"?E:w(e,r,t)}return{startState:function(e){var r={tokenize:i,state:j,indented:e||0,tagName:null,tagStart:null,context:null};return e!=null&&(r.baseIndent=e),r},token:function(e,r){if(!r.tagName&&e.sol()&&(r.indented=e.indentation()),e.eatSpace())return null;b=null;var t=r.tokenize(e,r);return(t||b)&&t!="comment"&&(f=null,r.state=r.state(b||t,e,r),f&&(t=f=="error"?t+" error":f)),t},indent:function(e,r,t){var n=e.context;if(e.tokenize.isInAttribute)return e.tagStart==e.indented?e.stringStartCol+1:e.indented+d;if(n&&n.noIndent)return a.Pass;if(e.tokenize!=l&&e.tokenize!=i)return t?t.match(/^(\s*)/)[0].length:0;if(e.tagName)return u.multilineTagIndentPastTag!==!1?e.tagStart+e.tagName.length+2:e.tagStart+d*(u.multilineTagIndentFactor||1);if(u.alignCDATA&&/<!\[CDATA\[/.test(r))return 0;var h=r&&/^<(\/)?([\w_:\.-]*)/.exec(r);if(h&&h[1])for(;n;)if(n.tagName==h[2]){n=n.prev;break}else if(u.implicitlyClosed.hasOwnProperty(g(n.tagName)))n=n.prev;else break;else if(h)for(;n;){var z=u.contextGrabbers[g(n.tagName)];if(z&&z.hasOwnProperty(g(h[2])))n=n.prev;else break}for(;n&&n.prev&&!n.startOfLine;)n=n.prev;return n?n.indent+d:e.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:u.htmlMode?"html":"xml",helperType:u.htmlMode?"html":"xml",skipAttribute:function(e){e.state==A&&(e.state=w)},xmlCurrentTag:function(e){return e.tagName?{name:e.tagName,close:e.type=="closeTag"}:null},xmlCurrentContext:function(e){for(var r=[],t=e.context;t;t=t.prev)r.push(t.tagName);return r.reverse()}}}),a.defineMIME("text/xml","xml"),a.defineMIME("application/xml","xml"),a.mimeModes.hasOwnProperty("text/html")||a.defineMIME("text/html",{name:"xml",htmlMode:!0})})}()),U.exports}var D;function B(){return D||(D=1,function(N,I){(function(a){a(W.requireCodemirror(),R(),J.requireJavascript())})(function(a){function s(c,v,d,u){this.state=c,this.mode=v,this.depth=d,this.prev=u}function x(c){return new s(a.copyState(c.mode,c.state),c.mode,c.depth,c.prev&&x(c.prev))}a.defineMode("jsx",function(c,v){var d=a.getMode(c,{name:"xml",allowMissing:!0,multilineTagIndentPastTag:!1,allowMissingTagName:!0}),u=a.getMode(c,v&&v.base||"javascript");function y(i){var l=i.tagName;i.tagName=null;var o=d.indent(i,"","");return i.tagName=l,o}function k(i,l){return l.context.mode==d?b(i,l,l.context):f(i,l,l.context)}function b(i,l,o){if(o.depth==2)return i.match(/^.*?\*\//)?o.depth=1:i.skipToEnd(),"comment";if(i.peek()=="{"){d.skipAttribute(o.state);var m=y(o.state),p=o.state.context;if(p&&i.match(/^[^>]*>\s*$/,!1)){for(;p.prev&&!p.startOfLine;)p=p.prev;p.startOfLine?m-=c.indentUnit:o.prev.state.lexical&&(m=o.prev.state.lexical.indented)}else o.depth==1&&(m+=c.indentUnit);return l.context=new s(a.startState(u,m),u,0,l.context),null}if(o.depth==1){if(i.peek()=="<")return d.skipAttribute(o.state),l.context=new s(a.startState(d,y(o.state)),d,0,l.context),null;if(i.match("//"))return i.skipToEnd(),"comment";if(i.match("/*"))return o.depth=2,k(i,l)}var g=d.token(i,o.state),T=i.current(),S;return/\btag\b/.test(g)?/>$/.test(T)?o.state.context?o.depth=0:l.context=l.context.prev:/^</.test(T)&&(o.depth=1):!g&&(S=T.indexOf("{"))>-1&&i.backUp(T.length-S),g}function f(i,l,o){if(i.peek()=="<"&&!i.match(/^<([^<>]|<[^>]*>)+,\s*>/,!1)&&u.expressionAllowed(i,o.state))return l.context=new s(a.startState(d,u.indent(o.state,"","")),d,0,l.context),u.skipExpression(o.state),null;var m=u.token(i,o.state);if(!m&&o.depth!=null){var p=i.current();p=="{"?o.depth++:p=="}"&&--o.depth==0&&(l.context=l.context.prev)}return m}return{startState:function(){return{context:new s(a.startState(u),u)}},copyState:function(i){return{context:x(i.context)}},token:k,indent:function(i,l,o){return i.context.mode.indent(i.context.state,l,o)},innerMode:function(i){return i.context}}},"xml","javascript"),a.defineMIME("text/jsx","jsx"),a.defineMIME("text/typescript-jsx",{name:"jsx",base:{name:"javascript",typescript:!0}})})}()),C.exports}var F=B();const V=$.getDefaultExportFromCjs(F),Y=X({__proto__:null,default:V},[F]);exports.jsx=Y;
@@ -1,4 +1,4 @@
1
- import { g as $ } from "./index-CynXcDPm.mjs";
1
+ import { g as $ } from "./index-c_h-B3RW.mjs";
2
2
  import { r as W } from "./codemirror-DgPcZxSc.mjs";
3
3
  import { r as J } from "./javascript-RO_jaPiE.mjs";
4
4
  function X(N, I) {
@@ -1 +1 @@
1
- "use strict";const u=require("./codemirror-Bwb2chlF.js"),a=require("./SchemaReference-CydbnVnE.js");u.CodeMirror.defineOption("jump",!1,(e,n,r)=>{if(r&&r!==u.CodeMirror.Init){const t=e.state.jump.onMouseOver;u.CodeMirror.off(e.getWrapperElement(),"mouseover",t);const i=e.state.jump.onMouseOut;u.CodeMirror.off(e.getWrapperElement(),"mouseout",i),u.CodeMirror.off(document,"keydown",e.state.jump.onKeyDown),delete e.state.jump}if(n){const t=e.state.jump={options:n,onMouseOver:p.bind(null,e),onMouseOut:c.bind(null,e),onKeyDown:M.bind(null,e)};u.CodeMirror.on(e.getWrapperElement(),"mouseover",t.onMouseOver),u.CodeMirror.on(e.getWrapperElement(),"mouseout",t.onMouseOut),u.CodeMirror.on(document,"keydown",t.onKeyDown)}});function p(e,n){const r=n.target||n.srcElement;if(!(r instanceof HTMLElement)||(r==null?void 0:r.nodeName)!=="SPAN")return;const t=r.getBoundingClientRect(),i={left:(t.left+t.right)/2,top:(t.top+t.bottom)/2};e.state.jump.cursor=i,e.state.jump.isHoldingModifier&&f(e)}function c(e){if(!e.state.jump.isHoldingModifier&&e.state.jump.cursor){e.state.jump.cursor=null;return}e.state.jump.isHoldingModifier&&e.state.jump.marker&&l(e)}function M(e,n){if(e.state.jump.isHoldingModifier||!g(n.key))return;e.state.jump.isHoldingModifier=!0,e.state.jump.cursor&&f(e);const r=o=>{o.code===n.code&&(e.state.jump.isHoldingModifier=!1,e.state.jump.marker&&l(e),u.CodeMirror.off(document,"keyup",r),u.CodeMirror.off(document,"click",t),e.off("mousedown",i))},t=o=>{const{destination:s,options:d}=e.state.jump;s&&d.onClick(s,o)},i=(o,s)=>{e.state.jump.destination&&(s.codemirrorIgnore=!0)};u.CodeMirror.on(document,"keyup",r),u.CodeMirror.on(document,"click",t),e.on("mousedown",i)}const m=typeof navigator<"u"&&navigator.userAgent.includes("Mac");function g(e){return e===(m?"Meta":"Control")}function f(e){if(e.state.jump.marker)return;const{cursor:n,options:r}=e.state.jump,t=e.coordsChar(n),i=e.getTokenAt(t,!0),o=r.getDestination||e.getHelper(t,"jump");if(o){const s=o(i,r,e);if(s){const d=e.markText({line:t.line,ch:i.start},{line:t.line,ch:i.end},{className:"CodeMirror-jump-token"});e.state.jump.marker=d,e.state.jump.destination=s}}}function l(e){const{marker:n}=e.state.jump;e.state.jump.marker=null,e.state.jump.destination=null,n.clear()}u.CodeMirror.registerHelper("jump","graphql",(e,n)=>{if(!n.schema||!n.onClick||!e.state)return;const{state:r}=e,{kind:t,step:i}=r,o=a.getTypeInfo(n.schema,r);if(t==="Field"&&i===0&&o.fieldDef||t==="AliasedField"&&i===2&&o.fieldDef)return a.getFieldReference(o);if(t==="Directive"&&i===1&&o.directiveDef)return a.getDirectiveReference(o);if(t==="Argument"&&i===0&&o.argDef)return a.getArgumentReference(o);if(t==="EnumValue"&&o.enumValue)return a.getEnumValueReference(o);if(t==="NamedType"&&o.type)return a.getTypeReference(o)});
1
+ "use strict";const u=require("./codemirror-P5arRD-4.js"),a=require("./SchemaReference-PZPPI4-g.js");u.CodeMirror.defineOption("jump",!1,(e,n,r)=>{if(r&&r!==u.CodeMirror.Init){const t=e.state.jump.onMouseOver;u.CodeMirror.off(e.getWrapperElement(),"mouseover",t);const i=e.state.jump.onMouseOut;u.CodeMirror.off(e.getWrapperElement(),"mouseout",i),u.CodeMirror.off(document,"keydown",e.state.jump.onKeyDown),delete e.state.jump}if(n){const t=e.state.jump={options:n,onMouseOver:p.bind(null,e),onMouseOut:c.bind(null,e),onKeyDown:M.bind(null,e)};u.CodeMirror.on(e.getWrapperElement(),"mouseover",t.onMouseOver),u.CodeMirror.on(e.getWrapperElement(),"mouseout",t.onMouseOut),u.CodeMirror.on(document,"keydown",t.onKeyDown)}});function p(e,n){const r=n.target||n.srcElement;if(!(r instanceof HTMLElement)||(r==null?void 0:r.nodeName)!=="SPAN")return;const t=r.getBoundingClientRect(),i={left:(t.left+t.right)/2,top:(t.top+t.bottom)/2};e.state.jump.cursor=i,e.state.jump.isHoldingModifier&&f(e)}function c(e){if(!e.state.jump.isHoldingModifier&&e.state.jump.cursor){e.state.jump.cursor=null;return}e.state.jump.isHoldingModifier&&e.state.jump.marker&&l(e)}function M(e,n){if(e.state.jump.isHoldingModifier||!g(n.key))return;e.state.jump.isHoldingModifier=!0,e.state.jump.cursor&&f(e);const r=o=>{o.code===n.code&&(e.state.jump.isHoldingModifier=!1,e.state.jump.marker&&l(e),u.CodeMirror.off(document,"keyup",r),u.CodeMirror.off(document,"click",t),e.off("mousedown",i))},t=o=>{const{destination:s,options:d}=e.state.jump;s&&d.onClick(s,o)},i=(o,s)=>{e.state.jump.destination&&(s.codemirrorIgnore=!0)};u.CodeMirror.on(document,"keyup",r),u.CodeMirror.on(document,"click",t),e.on("mousedown",i)}const m=typeof navigator<"u"&&navigator.userAgent.includes("Mac");function g(e){return e===(m?"Meta":"Control")}function f(e){if(e.state.jump.marker)return;const{cursor:n,options:r}=e.state.jump,t=e.coordsChar(n),i=e.getTokenAt(t,!0),o=r.getDestination||e.getHelper(t,"jump");if(o){const s=o(i,r,e);if(s){const d=e.markText({line:t.line,ch:i.start},{line:t.line,ch:i.end},{className:"CodeMirror-jump-token"});e.state.jump.marker=d,e.state.jump.destination=s}}}function l(e){const{marker:n}=e.state.jump;e.state.jump.marker=null,e.state.jump.destination=null,n.clear()}u.CodeMirror.registerHelper("jump","graphql",(e,n)=>{if(!n.schema||!n.onClick||!e.state)return;const{state:r}=e,{kind:t,step:i}=r,o=a.getTypeInfo(n.schema,r);if(t==="Field"&&i===0&&o.fieldDef||t==="AliasedField"&&i===2&&o.fieldDef)return a.getFieldReference(o);if(t==="Directive"&&i===1&&o.directiveDef)return a.getDirectiveReference(o);if(t==="Argument"&&i===0&&o.argDef)return a.getArgumentReference(o);if(t==="EnumValue"&&o.enumValue)return a.getEnumValueReference(o);if(t==="NamedType"&&o.type)return a.getTypeReference(o)});
@@ -1,5 +1,5 @@
1
- import { C as u } from "./codemirror-DbwC_74X.mjs";
2
- import { g as l, a as p, e as m, b as g, c, d as j } from "./SchemaReference-O1hfpXGp.mjs";
1
+ import { C as u } from "./codemirror-CK47QajN.mjs";
2
+ import { g as l, a as p, e as m, b as g, c, d as j } from "./SchemaReference-DNGK8Gti.mjs";
3
3
  u.defineOption("jump", !1, (e, r, o) => {
4
4
  if (o && o !== u.Init) {
5
5
  const t = e.state.jump.onMouseOver;
@@ -1,4 +1,4 @@
1
- import { g as d } from "./index-CynXcDPm.mjs";
1
+ import { g as d } from "./index-c_h-B3RW.mjs";
2
2
  import { r as g } from "./codemirror-DgPcZxSc.mjs";
3
3
  import { r as h } from "./dialog-Ci1bnuc2.mjs";
4
4
  function b(p, l) {
@@ -1 +1 @@
1
- "use strict";const m=require("./index-DM1lKT7q.js"),g=require("./codemirror-DMBo1i5w.js"),h=require("./dialog-Dh2DOTOu.js");function b(l,p){for(var o=0;o<p.length;o++){const i=p[o];if(typeof i!="string"&&!Array.isArray(i)){for(const u in i)if(u!=="default"&&!(u in l)){const s=Object.getOwnPropertyDescriptor(i,u);s&&Object.defineProperty(l,u,s.get?s:{enumerable:!0,get:()=>i[u]})}}}return Object.freeze(Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}))}var c={exports:{}},f;function j(){return f||(f=1,function(l,p){(function(o){o(g.requireCodemirror(),h.requireDialog())})(function(o){o.defineOption("search",{bottom:!1});function i(e,t,n,r,a){e.openDialog?e.openDialog(t,a,{value:r,selectValueOnOpen:!0,bottom:e.options.search.bottom}):a(prompt(n,r))}function u(e){return e.phrase("Jump to line:")+' <input type="text" style="width: 10em" class="CodeMirror-search-field"/> <span style="color: #888" class="CodeMirror-search-hint">'+e.phrase("(Use line:column or scroll% syntax)")+"</span>"}function s(e,t){var n=Number(t);return/^[-+]/.test(t)?e.getCursor().line+n:n-1}o.commands.jumpToLine=function(e){var t=e.getCursor();i(e,u(e),e.phrase("Jump to line:"),t.line+1+":"+t.ch,function(n){if(n){var r;if(r=/^\s*([\+\-]?\d+)\s*\:\s*(\d+)\s*$/.exec(n))e.setCursor(s(e,r[1]),Number(r[2]));else if(r=/^\s*([\+\-]?\d+(\.\d+)?)\%\s*/.exec(n)){var a=Math.round(e.lineCount()*Number(r[1])/100);/^[-+]/.test(r[1])&&(a=t.line+a+1),e.setCursor(a-1,t.ch)}else(r=/^\s*\:?\s*([\+\-]?\d+)\s*/.exec(n))&&e.setCursor(s(e,r[1]),t.ch)}})},o.keyMap.default["Alt-G"]="jumpToLine"})}()),c.exports}var d=j();const x=m.getDefaultExportFromCjs(d),y=b({__proto__:null,default:x},[d]);exports.jumpToLine=y;
1
+ "use strict";const m=require("./index-Of0v8HXf.js"),g=require("./codemirror-DMBo1i5w.js"),h=require("./dialog-Dh2DOTOu.js");function b(l,p){for(var o=0;o<p.length;o++){const i=p[o];if(typeof i!="string"&&!Array.isArray(i)){for(const u in i)if(u!=="default"&&!(u in l)){const s=Object.getOwnPropertyDescriptor(i,u);s&&Object.defineProperty(l,u,s.get?s:{enumerable:!0,get:()=>i[u]})}}}return Object.freeze(Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}))}var c={exports:{}},f;function j(){return f||(f=1,function(l,p){(function(o){o(g.requireCodemirror(),h.requireDialog())})(function(o){o.defineOption("search",{bottom:!1});function i(e,t,n,r,a){e.openDialog?e.openDialog(t,a,{value:r,selectValueOnOpen:!0,bottom:e.options.search.bottom}):a(prompt(n,r))}function u(e){return e.phrase("Jump to line:")+' <input type="text" style="width: 10em" class="CodeMirror-search-field"/> <span style="color: #888" class="CodeMirror-search-hint">'+e.phrase("(Use line:column or scroll% syntax)")+"</span>"}function s(e,t){var n=Number(t);return/^[-+]/.test(t)?e.getCursor().line+n:n-1}o.commands.jumpToLine=function(e){var t=e.getCursor();i(e,u(e),e.phrase("Jump to line:"),t.line+1+":"+t.ch,function(n){if(n){var r;if(r=/^\s*([\+\-]?\d+)\s*\:\s*(\d+)\s*$/.exec(n))e.setCursor(s(e,r[1]),Number(r[2]));else if(r=/^\s*([\+\-]?\d+(\.\d+)?)\%\s*/.exec(n)){var a=Math.round(e.lineCount()*Number(r[1])/100);/^[-+]/.test(r[1])&&(a=t.line+a+1),e.setCursor(a-1,t.ch)}else(r=/^\s*\:?\s*([\+\-]?\d+)\s*/.exec(n))&&e.setCursor(s(e,r[1]),t.ch)}})},o.keyMap.default["Alt-G"]="jumpToLine"})}()),c.exports}var d=j();const x=m.getDefaultExportFromCjs(d),y=b({__proto__:null,default:x},[d]);exports.jumpToLine=y;
@@ -1 +1 @@
1
- "use strict";const V=require("./codemirror-Bwb2chlF.js"),m=require("./index-DM1lKT7q.js");function q(e){f=e,w=e.length,i=c=g=-1,s(),x();const n=j();return d("EOF"),n}let f,w,i,c,g,r,u;function j(){const e=i,n=[];if(d("{"),!E("}")){do n.push(I());while(E(","));d("}")}return{kind:"Object",start:e,end:g,members:n}}function I(){const e=i,n=u==="String"?B():null;d("String"),d(":");const t=L();return{kind:"Member",start:e,end:g,key:n,value:t}}function C(){const e=i,n=[];if(d("["),!E("]")){do n.push(L());while(E(","));d("]")}return{kind:"Array",start:e,end:g,values:n}}function L(){switch(u){case"[":return C();case"{":return j();case"String":case"Number":case"Boolean":case"Null":const e=B();return x(),e}d("Value")}function B(){return{kind:u,start:i,end:c,value:JSON.parse(f.slice(i,c))}}function d(e){if(u===e){x();return}let n;if(u==="EOF")n="[end of file]";else if(c-i>1)n="`"+f.slice(i,c)+"`";else{const t=f.slice(i).match(/^.+?\b/);n="`"+(t?t[0]:f[i])+"`"}throw b(`Expected ${e} but found ${n}.`)}class G extends Error{constructor(n,t){super(n),this.position=t}}function b(e){return new G(e,{start:i,end:c})}function E(e){if(u===e)return x(),!0}function s(){return c<w&&(c++,r=c===w?0:f.charCodeAt(c)),r}function x(){for(g=c;r===9||r===10||r===13||r===32;)s();if(r===0){u="EOF";return}switch(i=c,r){case 34:return u="String",M();case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return u="Number",v();case 102:if(f.slice(i,i+5)!=="false")break;c+=4,s(),u="Boolean";return;case 110:if(f.slice(i,i+4)!=="null")break;c+=3,s(),u="Null";return;case 116:if(f.slice(i,i+4)!=="true")break;c+=3,s(),u="Boolean";return}u=f[i],s()}function M(){for(s();r!==34&&r>31;)if(r===92)switch(r=s(),r){case 34:case 47:case 92:case 98:case 102:case 110:case 114:case 116:s();break;case 117:s(),N(),N(),N(),N();break;default:throw b("Bad character escape sequence.")}else{if(c===w)throw b("Unterminated string.");s()}if(r===34){s();return}throw b("Unterminated string.")}function N(){if(r>=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102)return s();throw b("Expected hexadecimal digit.")}function v(){r===45&&s(),r===48?s():O(),r===46&&(s(),O()),(r===69||r===101)&&(r=s(),(r===43||r===45)&&s(),O())}function O(){if(r<48||r>57)throw b("Expected decimal digit.");do s();while(r>=48&&r<=57)}V.CodeMirror.registerHelper("lint","graphql-variables",(e,n,t)=>{if(!e)return[];let l;try{l=q(e)}catch(a){if(a instanceof G)return[$(t,a.position,a.message)];throw a}const{variableToType:o}=n;return o?D(t,o,l):[]});function D(e,n,t){var l;const o=[];for(const a of t.members)if(a){const p=(l=a.key)===null||l===void 0?void 0:l.value,h=n[p];if(h)for(const[y,Q]of k(h,a.value))o.push($(e,y,Q));else o.push($(e,a.key,`Variable "$${p}" does not appear in any GraphQL query.`))}return o}function k(e,n){if(!e||!n)return[];if(e instanceof m.GraphQLNonNull)return n.kind==="Null"?[[n,`Type "${e}" is non-nullable and cannot be null.`]]:k(e.ofType,n);if(n.kind==="Null")return[];if(e instanceof m.GraphQLList){const t=e.ofType;if(n.kind==="Array"){const l=n.values||[];return F(l,o=>k(t,o))}return k(t,n)}if(e instanceof m.GraphQLInputObjectType){if(n.kind!=="Object")return[[n,`Type "${e}" must be an Object.`]];const t=Object.create(null),l=F(n.members,o=>{var a;const p=(a=o==null?void 0:o.key)===null||a===void 0?void 0:a.value;t[p]=!0;const h=e.getFields()[p];if(!h)return[[o.key,`Type "${e}" does not have a field "${p}".`]];const y=h?h.type:void 0;return k(y,o.value)});for(const o of Object.keys(e.getFields())){const a=e.getFields()[o];!t[o]&&a.type instanceof m.GraphQLNonNull&&!a.defaultValue&&l.push([n,`Object of type "${e}" is missing required field "${o}".`])}return l}return e.name==="Boolean"&&n.kind!=="Boolean"||e.name==="String"&&n.kind!=="String"||e.name==="ID"&&n.kind!=="Number"&&n.kind!=="String"||e.name==="Float"&&n.kind!=="Number"||e.name==="Int"&&(n.kind!=="Number"||(n.value|0)!==n.value)?[[n,`Expected value of type "${e}".`]]:(e instanceof m.GraphQLEnumType||e instanceof m.GraphQLScalarType)&&(n.kind!=="String"&&n.kind!=="Number"&&n.kind!=="Boolean"&&n.kind!=="Null"||H(e.parseValue(n.value)))?[[n,`Expected value of type "${e}".`]]:[]}function $(e,n,t){return{message:t,severity:"error",type:"validation",from:e.posFromIndex(n.start),to:e.posFromIndex(n.end)}}function H(e){return e==null||e!==e}function F(e,n){return Array.prototype.concat.apply([],e.map(n))}
1
+ "use strict";const V=require("./codemirror-P5arRD-4.js"),m=require("./index-Of0v8HXf.js");function q(e){f=e,w=e.length,i=c=g=-1,s(),x();const n=j();return d("EOF"),n}let f,w,i,c,g,r,u;function j(){const e=i,n=[];if(d("{"),!E("}")){do n.push(I());while(E(","));d("}")}return{kind:"Object",start:e,end:g,members:n}}function I(){const e=i,n=u==="String"?B():null;d("String"),d(":");const t=L();return{kind:"Member",start:e,end:g,key:n,value:t}}function C(){const e=i,n=[];if(d("["),!E("]")){do n.push(L());while(E(","));d("]")}return{kind:"Array",start:e,end:g,values:n}}function L(){switch(u){case"[":return C();case"{":return j();case"String":case"Number":case"Boolean":case"Null":const e=B();return x(),e}d("Value")}function B(){return{kind:u,start:i,end:c,value:JSON.parse(f.slice(i,c))}}function d(e){if(u===e){x();return}let n;if(u==="EOF")n="[end of file]";else if(c-i>1)n="`"+f.slice(i,c)+"`";else{const t=f.slice(i).match(/^.+?\b/);n="`"+(t?t[0]:f[i])+"`"}throw b(`Expected ${e} but found ${n}.`)}class G extends Error{constructor(n,t){super(n),this.position=t}}function b(e){return new G(e,{start:i,end:c})}function E(e){if(u===e)return x(),!0}function s(){return c<w&&(c++,r=c===w?0:f.charCodeAt(c)),r}function x(){for(g=c;r===9||r===10||r===13||r===32;)s();if(r===0){u="EOF";return}switch(i=c,r){case 34:return u="String",M();case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return u="Number",v();case 102:if(f.slice(i,i+5)!=="false")break;c+=4,s(),u="Boolean";return;case 110:if(f.slice(i,i+4)!=="null")break;c+=3,s(),u="Null";return;case 116:if(f.slice(i,i+4)!=="true")break;c+=3,s(),u="Boolean";return}u=f[i],s()}function M(){for(s();r!==34&&r>31;)if(r===92)switch(r=s(),r){case 34:case 47:case 92:case 98:case 102:case 110:case 114:case 116:s();break;case 117:s(),N(),N(),N(),N();break;default:throw b("Bad character escape sequence.")}else{if(c===w)throw b("Unterminated string.");s()}if(r===34){s();return}throw b("Unterminated string.")}function N(){if(r>=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102)return s();throw b("Expected hexadecimal digit.")}function v(){r===45&&s(),r===48?s():O(),r===46&&(s(),O()),(r===69||r===101)&&(r=s(),(r===43||r===45)&&s(),O())}function O(){if(r<48||r>57)throw b("Expected decimal digit.");do s();while(r>=48&&r<=57)}V.CodeMirror.registerHelper("lint","graphql-variables",(e,n,t)=>{if(!e)return[];let l;try{l=q(e)}catch(a){if(a instanceof G)return[$(t,a.position,a.message)];throw a}const{variableToType:o}=n;return o?D(t,o,l):[]});function D(e,n,t){var l;const o=[];for(const a of t.members)if(a){const p=(l=a.key)===null||l===void 0?void 0:l.value,h=n[p];if(h)for(const[y,Q]of k(h,a.value))o.push($(e,y,Q));else o.push($(e,a.key,`Variable "$${p}" does not appear in any GraphQL query.`))}return o}function k(e,n){if(!e||!n)return[];if(e instanceof m.GraphQLNonNull)return n.kind==="Null"?[[n,`Type "${e}" is non-nullable and cannot be null.`]]:k(e.ofType,n);if(n.kind==="Null")return[];if(e instanceof m.GraphQLList){const t=e.ofType;if(n.kind==="Array"){const l=n.values||[];return F(l,o=>k(t,o))}return k(t,n)}if(e instanceof m.GraphQLInputObjectType){if(n.kind!=="Object")return[[n,`Type "${e}" must be an Object.`]];const t=Object.create(null),l=F(n.members,o=>{var a;const p=(a=o==null?void 0:o.key)===null||a===void 0?void 0:a.value;t[p]=!0;const h=e.getFields()[p];if(!h)return[[o.key,`Type "${e}" does not have a field "${p}".`]];const y=h?h.type:void 0;return k(y,o.value)});for(const o of Object.keys(e.getFields())){const a=e.getFields()[o];!t[o]&&a.type instanceof m.GraphQLNonNull&&!a.defaultValue&&l.push([n,`Object of type "${e}" is missing required field "${o}".`])}return l}return e.name==="Boolean"&&n.kind!=="Boolean"||e.name==="String"&&n.kind!=="String"||e.name==="ID"&&n.kind!=="Number"&&n.kind!=="String"||e.name==="Float"&&n.kind!=="Number"||e.name==="Int"&&(n.kind!=="Number"||(n.value|0)!==n.value)?[[n,`Expected value of type "${e}".`]]:(e instanceof m.GraphQLEnumType||e instanceof m.GraphQLScalarType)&&(n.kind!=="String"&&n.kind!=="Number"&&n.kind!=="Boolean"&&n.kind!=="Null"||H(e.parseValue(n.value)))?[[n,`Expected value of type "${e}".`]]:[]}function $(e,n,t){return{message:t,severity:"error",type:"validation",from:e.posFromIndex(n.start),to:e.posFromIndex(n.end)}}function H(e){return e==null||e!==e}function F(e,n){return Array.prototype.concat.apply([],e.map(n))}
@@ -1,4 +1,4 @@
1
- import { g as P } from "./index-CynXcDPm.mjs";
1
+ import { g as P } from "./index-c_h-B3RW.mjs";
2
2
  import { r as W } from "./codemirror-DgPcZxSc.mjs";
3
3
  function U(v, m) {
4
4
  for (var l = 0; l < m.length; l++) {
@@ -1 +1 @@
1
- "use strict";const H=require("./index-DM1lKT7q.js"),P=require("./codemirror-DMBo1i5w.js");function W(v,m){for(var l=0;l<m.length;l++){const f=m[l];if(typeof f!="string"&&!Array.isArray(f)){for(const p in f)if(p!=="default"&&!(p in v)){const g=Object.getOwnPropertyDescriptor(f,p);g&&Object.defineProperty(v,p,g.get?g:{enumerable:!0,get:()=>f[p]})}}}return Object.freeze(Object.defineProperty(v,Symbol.toStringTag,{value:"Module"}))}var x={exports:{}},E;function U(){return E||(E=1,function(v,m){(function(l){l(P.requireCodemirror())})(function(l){var f="CodeMirror-lint-markers",p="CodeMirror-lint-line-";function g(t,e,r){var n=document.createElement("div");n.className="CodeMirror-lint-tooltip cm-s-"+t.options.theme,n.appendChild(r.cloneNode(!0)),t.state.lint.options.selfContain?t.getWrapperElement().appendChild(n):document.body.appendChild(n);function i(o){if(!n.parentNode)return l.off(document,"mousemove",i);var a=Math.max(0,o.clientY-n.offsetHeight-5),s=Math.max(0,Math.min(o.clientX+5,n.ownerDocument.defaultView.innerWidth-n.offsetWidth));n.style.top=a+"px",n.style.left=s+"px"}return l.on(document,"mousemove",i),i(e),n.style.opacity!=null&&(n.style.opacity=1),n}function L(t){t.parentNode&&t.parentNode.removeChild(t)}function b(t){t.parentNode&&(t.style.opacity==null&&L(t),t.style.opacity=0,setTimeout(function(){L(t)},600))}function O(t,e,r,n){var i=g(t,e,r);function o(){l.off(n,"mouseout",o),i&&(b(i),i=null)}var a=setInterval(function(){if(i)for(var s=n;;s=s.parentNode){if(s&&s.nodeType==11&&(s=s.host),s==document.body)return;if(!s){o();break}}if(!i)return clearInterval(a)},400);l.on(n,"mouseout",o)}function _(t,e,r){this.marked=[],e instanceof Function&&(e={getAnnotations:e}),(!e||e===!0)&&(e={}),this.options={},this.linterOptions=e.options||{};for(var n in y)this.options[n]=y[n];for(var n in e)y.hasOwnProperty(n)?e[n]!=null&&(this.options[n]=e[n]):e.options||(this.linterOptions[n]=e[n]);this.timeout=null,this.hasGutter=r,this.onMouseOver=function(i){q(t,i)},this.waitingFor=0}var y={highlightLines:!1,tooltips:!0,delay:500,lintOnChange:!0,getAnnotations:null,async:!1,selfContain:null,formatAnnotation:null,onUpdateLinting:null};function T(t){var e=t.state.lint;e.hasGutter&&t.clearGutter(f),e.options.highlightLines&&A(t);for(var r=0;r<e.marked.length;++r)e.marked[r].clear();e.marked.length=0}function A(t){t.eachLine(function(e){var r=e.wrapClass&&/\bCodeMirror-lint-line-\w+\b/.exec(e.wrapClass);r&&t.removeLineClass(e,"wrap",r[0])})}function F(t,e,r,n,i){var o=document.createElement("div"),a=o;return o.className="CodeMirror-lint-marker CodeMirror-lint-marker-"+r,n&&(a=o.appendChild(document.createElement("div")),a.className="CodeMirror-lint-marker CodeMirror-lint-marker-multiple"),i!=!1&&l.on(a,"mouseover",function(s){O(t,s,e,a)}),o}function D(t,e){return t=="error"?t:e}function G(t){for(var e=[],r=0;r<t.length;++r){var n=t[r],i=n.from.line;(e[i]||(e[i]=[])).push(n)}return e}function M(t){var e=t.severity;e||(e="error");var r=document.createElement("div");return r.className="CodeMirror-lint-message CodeMirror-lint-message-"+e,typeof t.messageHTML<"u"?r.innerHTML=t.messageHTML:r.appendChild(document.createTextNode(t.message)),r}function I(t,e){var r=t.state.lint,n=++r.waitingFor;function i(){n=-1,t.off("change",i)}t.on("change",i),e(t.getValue(),function(o,a){t.off("change",i),r.waitingFor==n&&(a&&o instanceof l&&(o=a),t.operation(function(){k(t,o)}))},r.linterOptions,t)}function C(t){var e=t.state.lint;if(e){var r=e.options,n=r.getAnnotations||t.getHelper(l.Pos(0,0),"lint");if(n)if(r.async||n.async)I(t,n);else{var i=n(t.getValue(),e.linterOptions,t);if(!i)return;i.then?i.then(function(o){t.operation(function(){k(t,o)})}):t.operation(function(){k(t,i)})}}}function k(t,e){var r=t.state.lint;if(r){var n=r.options;T(t);for(var i=G(e),o=0;o<i.length;++o){var a=i[o];if(a){for(var s=null,d=r.hasGutter&&document.createDocumentFragment(),h=0;h<a.length;++h){var u=a[h],c=u.severity;c||(c="error"),s=D(s,c),n.formatAnnotation&&(u=n.formatAnnotation(u)),r.hasGutter&&d.appendChild(M(u)),u.to&&r.marked.push(t.markText(u.from,u.to,{className:"CodeMirror-lint-mark CodeMirror-lint-mark-"+c,__annotation:u}))}r.hasGutter&&t.setGutterMarker(o,f,F(t,d,s,a.length>1,n.tooltips)),n.highlightLines&&t.addLineClass(o,"wrap",p+s)}}n.onUpdateLinting&&n.onUpdateLinting(e,i,t)}}function w(t){var e=t.state.lint;e&&(clearTimeout(e.timeout),e.timeout=setTimeout(function(){C(t)},e.options.delay))}function j(t,e,r){for(var n=r.target||r.srcElement,i=document.createDocumentFragment(),o=0;o<e.length;o++){var a=e[o];i.appendChild(M(a))}O(t,r,i,n)}function q(t,e){var r=e.target||e.srcElement;if(/\bCodeMirror-lint-mark-/.test(r.className)){for(var n=r.getBoundingClientRect(),i=(n.left+n.right)/2,o=(n.top+n.bottom)/2,a=t.findMarksAt(t.coordsChar({left:i,top:o},"client")),s=[],d=0;d<a.length;++d){var h=a[d].__annotation;h&&s.push(h)}s.length&&j(t,s,e)}}l.defineOption("lint",!1,function(t,e,r){if(r&&r!=l.Init&&(T(t),t.state.lint.options.lintOnChange!==!1&&t.off("change",w),l.off(t.getWrapperElement(),"mouseover",t.state.lint.onMouseOver),clearTimeout(t.state.lint.timeout),delete t.state.lint),e){for(var n=t.getOption("gutters"),i=!1,o=0;o<n.length;++o)n[o]==f&&(i=!0);var a=t.state.lint=new _(t,e,i);a.options.lintOnChange&&t.on("change",w),a.options.tooltips!=!1&&a.options.tooltips!="gutter"&&l.on(t.getWrapperElement(),"mouseover",a.onMouseOver),C(t)}}),l.defineExtension("performLint",function(){C(this)})})}()),x.exports}var N=U();const R=H.getDefaultExportFromCjs(N),V=W({__proto__:null,default:R},[N]);exports.lint=V;
1
+ "use strict";const H=require("./index-Of0v8HXf.js"),P=require("./codemirror-DMBo1i5w.js");function W(v,m){for(var l=0;l<m.length;l++){const f=m[l];if(typeof f!="string"&&!Array.isArray(f)){for(const p in f)if(p!=="default"&&!(p in v)){const g=Object.getOwnPropertyDescriptor(f,p);g&&Object.defineProperty(v,p,g.get?g:{enumerable:!0,get:()=>f[p]})}}}return Object.freeze(Object.defineProperty(v,Symbol.toStringTag,{value:"Module"}))}var x={exports:{}},E;function U(){return E||(E=1,function(v,m){(function(l){l(P.requireCodemirror())})(function(l){var f="CodeMirror-lint-markers",p="CodeMirror-lint-line-";function g(t,e,r){var n=document.createElement("div");n.className="CodeMirror-lint-tooltip cm-s-"+t.options.theme,n.appendChild(r.cloneNode(!0)),t.state.lint.options.selfContain?t.getWrapperElement().appendChild(n):document.body.appendChild(n);function i(o){if(!n.parentNode)return l.off(document,"mousemove",i);var a=Math.max(0,o.clientY-n.offsetHeight-5),s=Math.max(0,Math.min(o.clientX+5,n.ownerDocument.defaultView.innerWidth-n.offsetWidth));n.style.top=a+"px",n.style.left=s+"px"}return l.on(document,"mousemove",i),i(e),n.style.opacity!=null&&(n.style.opacity=1),n}function L(t){t.parentNode&&t.parentNode.removeChild(t)}function b(t){t.parentNode&&(t.style.opacity==null&&L(t),t.style.opacity=0,setTimeout(function(){L(t)},600))}function O(t,e,r,n){var i=g(t,e,r);function o(){l.off(n,"mouseout",o),i&&(b(i),i=null)}var a=setInterval(function(){if(i)for(var s=n;;s=s.parentNode){if(s&&s.nodeType==11&&(s=s.host),s==document.body)return;if(!s){o();break}}if(!i)return clearInterval(a)},400);l.on(n,"mouseout",o)}function _(t,e,r){this.marked=[],e instanceof Function&&(e={getAnnotations:e}),(!e||e===!0)&&(e={}),this.options={},this.linterOptions=e.options||{};for(var n in y)this.options[n]=y[n];for(var n in e)y.hasOwnProperty(n)?e[n]!=null&&(this.options[n]=e[n]):e.options||(this.linterOptions[n]=e[n]);this.timeout=null,this.hasGutter=r,this.onMouseOver=function(i){q(t,i)},this.waitingFor=0}var y={highlightLines:!1,tooltips:!0,delay:500,lintOnChange:!0,getAnnotations:null,async:!1,selfContain:null,formatAnnotation:null,onUpdateLinting:null};function T(t){var e=t.state.lint;e.hasGutter&&t.clearGutter(f),e.options.highlightLines&&A(t);for(var r=0;r<e.marked.length;++r)e.marked[r].clear();e.marked.length=0}function A(t){t.eachLine(function(e){var r=e.wrapClass&&/\bCodeMirror-lint-line-\w+\b/.exec(e.wrapClass);r&&t.removeLineClass(e,"wrap",r[0])})}function F(t,e,r,n,i){var o=document.createElement("div"),a=o;return o.className="CodeMirror-lint-marker CodeMirror-lint-marker-"+r,n&&(a=o.appendChild(document.createElement("div")),a.className="CodeMirror-lint-marker CodeMirror-lint-marker-multiple"),i!=!1&&l.on(a,"mouseover",function(s){O(t,s,e,a)}),o}function D(t,e){return t=="error"?t:e}function G(t){for(var e=[],r=0;r<t.length;++r){var n=t[r],i=n.from.line;(e[i]||(e[i]=[])).push(n)}return e}function M(t){var e=t.severity;e||(e="error");var r=document.createElement("div");return r.className="CodeMirror-lint-message CodeMirror-lint-message-"+e,typeof t.messageHTML<"u"?r.innerHTML=t.messageHTML:r.appendChild(document.createTextNode(t.message)),r}function I(t,e){var r=t.state.lint,n=++r.waitingFor;function i(){n=-1,t.off("change",i)}t.on("change",i),e(t.getValue(),function(o,a){t.off("change",i),r.waitingFor==n&&(a&&o instanceof l&&(o=a),t.operation(function(){k(t,o)}))},r.linterOptions,t)}function C(t){var e=t.state.lint;if(e){var r=e.options,n=r.getAnnotations||t.getHelper(l.Pos(0,0),"lint");if(n)if(r.async||n.async)I(t,n);else{var i=n(t.getValue(),e.linterOptions,t);if(!i)return;i.then?i.then(function(o){t.operation(function(){k(t,o)})}):t.operation(function(){k(t,i)})}}}function k(t,e){var r=t.state.lint;if(r){var n=r.options;T(t);for(var i=G(e),o=0;o<i.length;++o){var a=i[o];if(a){for(var s=null,d=r.hasGutter&&document.createDocumentFragment(),h=0;h<a.length;++h){var u=a[h],c=u.severity;c||(c="error"),s=D(s,c),n.formatAnnotation&&(u=n.formatAnnotation(u)),r.hasGutter&&d.appendChild(M(u)),u.to&&r.marked.push(t.markText(u.from,u.to,{className:"CodeMirror-lint-mark CodeMirror-lint-mark-"+c,__annotation:u}))}r.hasGutter&&t.setGutterMarker(o,f,F(t,d,s,a.length>1,n.tooltips)),n.highlightLines&&t.addLineClass(o,"wrap",p+s)}}n.onUpdateLinting&&n.onUpdateLinting(e,i,t)}}function w(t){var e=t.state.lint;e&&(clearTimeout(e.timeout),e.timeout=setTimeout(function(){C(t)},e.options.delay))}function j(t,e,r){for(var n=r.target||r.srcElement,i=document.createDocumentFragment(),o=0;o<e.length;o++){var a=e[o];i.appendChild(M(a))}O(t,r,i,n)}function q(t,e){var r=e.target||e.srcElement;if(/\bCodeMirror-lint-mark-/.test(r.className)){for(var n=r.getBoundingClientRect(),i=(n.left+n.right)/2,o=(n.top+n.bottom)/2,a=t.findMarksAt(t.coordsChar({left:i,top:o},"client")),s=[],d=0;d<a.length;++d){var h=a[d].__annotation;h&&s.push(h)}s.length&&j(t,s,e)}}l.defineOption("lint",!1,function(t,e,r){if(r&&r!=l.Init&&(T(t),t.state.lint.options.lintOnChange!==!1&&t.off("change",w),l.off(t.getWrapperElement(),"mouseover",t.state.lint.onMouseOver),clearTimeout(t.state.lint.timeout),delete t.state.lint),e){for(var n=t.getOption("gutters"),i=!1,o=0;o<n.length;++o)n[o]==f&&(i=!0);var a=t.state.lint=new _(t,e,i);a.options.lintOnChange&&t.on("change",w),a.options.tooltips!=!1&&a.options.tooltips!="gutter"&&l.on(t.getWrapperElement(),"mouseover",a.onMouseOver),C(t)}}),l.defineExtension("performLint",function(){C(this)})})}()),x.exports}var N=U();const R=H.getDefaultExportFromCjs(N),V=W({__proto__:null,default:R},[N]);exports.lint=V;
@@ -1,5 +1,5 @@
1
- import { C as g } from "./codemirror-DbwC_74X.mjs";
2
- import { x as w, N as C, E as S, y as E, K as D, z as Q, A as b, B as L, o as N, D as G, F as P } from "./index-CynXcDPm.mjs";
1
+ import { C as g } from "./codemirror-CK47QajN.mjs";
2
+ import { x as w, N as C, E as S, y as E, K as D, z as Q, A as b, B as L, o as N, D as G, F as P } from "./index-c_h-B3RW.mjs";
3
3
  import { R, P as d } from "./Range-CPFFy5pj.mjs";
4
4
  function T(t, a, s, c, o) {
5
5
  const n = w.filter((e) => !(e === C || e === S));
@@ -1,4 +1,4 @@
1
- "use strict";const h=require("./codemirror-Bwb2chlF.js"),l=require("./index-DM1lKT7q.js"),g=require("./Range-CUfOrqgY.js");function R(t,i,a,u,r){const n=l.specifiedRules.filter(e=>!(e===l.NoUnusedFragmentsRule||e===l.ExecutableDefinitionsRule));return a&&Array.prototype.push.apply(n,a),l.validate(t,i,n).filter(e=>{if(e.message.includes("Unknown directive")&&e.nodes){const s=e.nodes[0];if(s&&s.kind===l.Kind.DIRECTIVE){const c=s.name.value;if(c==="arguments"||c==="argumentDefinitions")return!1}}return!0})}const v={Error:"Error",Warning:"Warning"},m={[v.Error]:1,[v.Warning]:2},f=(t,i)=>{if(!t)throw new Error(i)};function w(t,i=null,a,u,r){var n,o;let e=null,s="";r&&(s=typeof r=="string"?r:r.reduce((d,p)=>d+l.print(p)+`
1
+ "use strict";const h=require("./codemirror-P5arRD-4.js"),l=require("./index-Of0v8HXf.js"),g=require("./Range-CUfOrqgY.js");function R(t,i,a,u,r){const n=l.specifiedRules.filter(e=>!(e===l.NoUnusedFragmentsRule||e===l.ExecutableDefinitionsRule));return a&&Array.prototype.push.apply(n,a),l.validate(t,i,n).filter(e=>{if(e.message.includes("Unknown directive")&&e.nodes){const s=e.nodes[0];if(s&&s.kind===l.Kind.DIRECTIVE){const c=s.name.value;if(c==="arguments"||c==="argumentDefinitions")return!1}}return!0})}const v={Error:"Error",Warning:"Warning"},m={[v.Error]:1,[v.Warning]:2},f=(t,i)=>{if(!t)throw new Error(i)};function w(t,i=null,a,u,r){var n,o;let e=null,s="";r&&(s=typeof r=="string"?r:r.reduce((d,p)=>d+l.print(p)+`
2
2
 
3
3
  `,""));const c=s?`${t}
4
4
 
@@ -1,5 +1,5 @@
1
- import { C as Q } from "./codemirror-DbwC_74X.mjs";
2
- import { b as $, d as I, i as q, k as C, w as M } from "./index-CynXcDPm.mjs";
1
+ import { C as Q } from "./codemirror-CK47QajN.mjs";
2
+ import { b as $, d as I, i as q, k as C, w as M } from "./index-c_h-B3RW.mjs";
3
3
  function v(e) {
4
4
  l = e, N = e.length, i = c = k = -1, s(), E();
5
5
  const n = j();
@@ -1 +1 @@
1
- "use strict";const n=require("./index-DM1lKT7q.js"),i=require("./matchbrackets-DPv_MB7c.js");function u(r,o){for(var c=0;c<o.length;c++){const e=o[c];if(typeof e!="string"&&!Array.isArray(e)){for(const t in e)if(t!=="default"&&!(t in r)){const a=Object.getOwnPropertyDescriptor(e,t);a&&Object.defineProperty(r,t,a.get?a:{enumerable:!0,get:()=>e[t]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var s=i.requireMatchbrackets();const f=n.getDefaultExportFromCjs(s),b=u({__proto__:null,default:f},[s]);exports.matchbrackets=b;
1
+ "use strict";const n=require("./index-Of0v8HXf.js"),i=require("./matchbrackets-DPv_MB7c.js");function u(r,o){for(var c=0;c<o.length;c++){const e=o[c];if(typeof e!="string"&&!Array.isArray(e)){for(const t in e)if(t!=="default"&&!(t in r)){const a=Object.getOwnPropertyDescriptor(e,t);a&&Object.defineProperty(r,t,a.get?a:{enumerable:!0,get:()=>e[t]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var s=i.requireMatchbrackets();const f=n.getDefaultExportFromCjs(s),b=u({__proto__:null,default:f},[s]);exports.matchbrackets=b;
@@ -1,4 +1,4 @@
1
- import { g as n } from "./index-CynXcDPm.mjs";
1
+ import { g as n } from "./index-c_h-B3RW.mjs";
2
2
  import { r as f } from "./matchbrackets-BB4g2Y6d.mjs";
3
3
  function i(r, c) {
4
4
  for (var o = 0; o < c.length; o++) {
@@ -1 +1 @@
1
- "use strict";const a=require("./codemirror-Bwb2chlF.js"),e=require("./index-DM1lKT7q.js"),l=require("./mode-indent-m3TP74Ia.js");a.CodeMirror.defineMode("graphql-results",t=>{const r=e.onlineParser({eatWhitespace:u=>u.eatSpace(),lexRules:n,parseRules:s,editorConfig:{tabSize:t.tabSize}});return{config:t,startState:r.startState,token:r.token,indent:l.indent,electricInput:/^\s*[}\]]/,fold:"brace",closeBrackets:{pairs:'[]{}""',explode:"[]{}"}}});const n={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:[e.p("{"),e.list("Entry",e.p(",")),e.p("}")],Entry:[e.t("String","def"),e.p(":"),"Value"],Value(t){switch(t.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(t.value){case"[":return"ListValue";case"{":return"ObjectValue"}return null;case"Keyword":switch(t.value){case"true":case"false":return"BooleanValue";case"null":return"NullValue"}return null}},NumberValue:[e.t("Number","number")],StringValue:[e.t("String","string")],BooleanValue:[e.t("Keyword","builtin")],NullValue:[e.t("Keyword","keyword")],ListValue:[e.p("["),e.list("Value",e.p(",")),e.p("]")],ObjectValue:[e.p("{"),e.list("ObjectField",e.p(",")),e.p("}")],ObjectField:[e.t("String","property"),e.p(":"),"Value"]};
1
+ "use strict";const a=require("./codemirror-P5arRD-4.js"),e=require("./index-Of0v8HXf.js"),l=require("./mode-indent-m3TP74Ia.js");a.CodeMirror.defineMode("graphql-results",t=>{const r=e.onlineParser({eatWhitespace:u=>u.eatSpace(),lexRules:n,parseRules:s,editorConfig:{tabSize:t.tabSize}});return{config:t,startState:r.startState,token:r.token,indent:l.indent,electricInput:/^\s*[}\]]/,fold:"brace",closeBrackets:{pairs:'[]{}""',explode:"[]{}"}}});const n={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:[e.p("{"),e.list("Entry",e.p(",")),e.p("}")],Entry:[e.t("String","def"),e.p(":"),"Value"],Value(t){switch(t.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(t.value){case"[":return"ListValue";case"{":return"ObjectValue"}return null;case"Keyword":switch(t.value){case"true":case"false":return"BooleanValue";case"null":return"NullValue"}return null}},NumberValue:[e.t("Number","number")],StringValue:[e.t("String","string")],BooleanValue:[e.t("Keyword","builtin")],NullValue:[e.t("Keyword","keyword")],ListValue:[e.p("["),e.list("Value",e.p(",")),e.p("]")],ObjectValue:[e.p("{"),e.list("ObjectField",e.p(",")),e.p("}")],ObjectField:[e.t("String","property"),e.p(":"),"Value"]};
@@ -1,5 +1,5 @@
1
- import { C as i } from "./codemirror-DbwC_74X.mjs";
2
- import { o, e, l, t, f as n } from "./index-CynXcDPm.mjs";
1
+ import { C as i } from "./codemirror-CK47QajN.mjs";
2
+ import { o, e, l, t, f as n } from "./index-c_h-B3RW.mjs";
3
3
  import { i as c } from "./mode-indent-9VnFlqY-.mjs";
4
4
  i.defineMode("graphql-variables", (a) => {
5
5
  const r = o({
@@ -1 +1 @@
1
- "use strict";const l=require("./codemirror-Bwb2chlF.js"),e=require("./index-DM1lKT7q.js"),n=require("./mode-indent-m3TP74Ia.js");l.CodeMirror.defineMode("graphql-variables",t=>{const r=e.onlineParser({eatWhitespace:a=>a.eatSpace(),lexRules:i,parseRules:s,editorConfig:{tabSize:t.tabSize}});return{config:t,startState:r.startState,token:r.token,indent:n.indent,electricInput:/^\s*[}\]]/,fold:"brace",closeBrackets:{pairs:'[]{}""',explode:"[]{}"}}});const i={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:[e.p("{"),e.list("Variable",e.opt(e.p(","))),e.p("}")],Variable:[u("variable"),e.p(":"),"Value"],Value(t){switch(t.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(t.value){case"[":return"ListValue";case"{":return"ObjectValue"}return null;case"Keyword":switch(t.value){case"true":case"false":return"BooleanValue";case"null":return"NullValue"}return null}},NumberValue:[e.t("Number","number")],StringValue:[e.t("String","string")],BooleanValue:[e.t("Keyword","builtin")],NullValue:[e.t("Keyword","keyword")],ListValue:[e.p("["),e.list("Value",e.opt(e.p(","))),e.p("]")],ObjectValue:[e.p("{"),e.list("ObjectField",e.opt(e.p(","))),e.p("}")],ObjectField:[u("attribute"),e.p(":"),"Value"]};function u(t){return{style:t,match:r=>r.kind==="String",update(r,a){r.name=a.value.slice(1,-1)}}}
1
+ "use strict";const l=require("./codemirror-P5arRD-4.js"),e=require("./index-Of0v8HXf.js"),n=require("./mode-indent-m3TP74Ia.js");l.CodeMirror.defineMode("graphql-variables",t=>{const r=e.onlineParser({eatWhitespace:a=>a.eatSpace(),lexRules:i,parseRules:s,editorConfig:{tabSize:t.tabSize}});return{config:t,startState:r.startState,token:r.token,indent:n.indent,electricInput:/^\s*[}\]]/,fold:"brace",closeBrackets:{pairs:'[]{}""',explode:"[]{}"}}});const i={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:[e.p("{"),e.list("Variable",e.opt(e.p(","))),e.p("}")],Variable:[u("variable"),e.p(":"),"Value"],Value(t){switch(t.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(t.value){case"[":return"ListValue";case"{":return"ObjectValue"}return null;case"Keyword":switch(t.value){case"true":case"false":return"BooleanValue";case"null":return"NullValue"}return null}},NumberValue:[e.t("Number","number")],StringValue:[e.t("String","string")],BooleanValue:[e.t("Keyword","builtin")],NullValue:[e.t("Keyword","keyword")],ListValue:[e.p("["),e.list("Value",e.opt(e.p(","))),e.p("]")],ObjectValue:[e.p("{"),e.list("ObjectField",e.opt(e.p(","))),e.p("}")],ObjectField:[u("attribute"),e.p(":"),"Value"]};function u(t){return{style:t,match:r=>r.kind==="String",update(r,a){r.name=a.value.slice(1,-1)}}}
@@ -1,5 +1,5 @@
1
- import { C as a } from "./codemirror-DbwC_74X.mjs";
2
- import { o as s, P as o, L as i, r as l } from "./index-CynXcDPm.mjs";
1
+ import { C as a } from "./codemirror-CK47QajN.mjs";
2
+ import { o as s, P as o, L as i, r as l } from "./index-c_h-B3RW.mjs";
3
3
  import { i as n } from "./mode-indent-9VnFlqY-.mjs";
4
4
  const p = (e) => {
5
5
  const r = s({
@@ -1 +1 @@
1
- "use strict";const n=require("./codemirror-Bwb2chlF.js"),e=require("./index-DM1lKT7q.js"),o=require("./mode-indent-m3TP74Ia.js"),i=r=>{const t=e.onlineParser({eatWhitespace:s=>s.eatWhile(e.isIgnored),lexRules:e.LexRules,parseRules:e.ParseRules,editorConfig:{tabSize:r.tabSize}});return{config:r,startState:t.startState,token:t.token,indent:o.indent,electricInput:/^\s*[})\]]/,fold:"brace",lineComment:"#",closeBrackets:{pairs:'()[]{}""',explode:"()[]{}"}}};n.CodeMirror.defineMode("graphql",i);
1
+ "use strict";const n=require("./codemirror-P5arRD-4.js"),e=require("./index-Of0v8HXf.js"),o=require("./mode-indent-m3TP74Ia.js"),i=r=>{const t=e.onlineParser({eatWhitespace:s=>s.eatWhile(e.isIgnored),lexRules:e.LexRules,parseRules:e.ParseRules,editorConfig:{tabSize:r.tabSize}});return{config:r,startState:t.startState,token:t.token,indent:o.indent,electricInput:/^\s*[})\]]/,fold:"brace",lineComment:"#",closeBrackets:{pairs:'()[]{}""',explode:"()[]{}"}}};n.CodeMirror.defineMode("graphql",i);
@@ -1,5 +1,5 @@
1
- import { C as n } from "./codemirror-DbwC_74X.mjs";
2
- import { o as s, t, e, l as a } from "./index-CynXcDPm.mjs";
1
+ import { C as n } from "./codemirror-CK47QajN.mjs";
2
+ import { o as s, t, e, l as a } from "./index-c_h-B3RW.mjs";
3
3
  import { i } from "./mode-indent-9VnFlqY-.mjs";
4
4
  n.defineMode("graphql-results", (r) => {
5
5
  const u = s({
@@ -1,4 +1,4 @@
1
- import { g as K } from "./index-CynXcDPm.mjs";
1
+ import { g as K } from "./index-c_h-B3RW.mjs";
2
2
  import { r as L } from "./codemirror-DgPcZxSc.mjs";
3
3
  import { r as z } from "./searchcursor-DHtNMOPb.mjs";
4
4
  import { r as U } from "./dialog-Ci1bnuc2.mjs";
@@ -1,2 +1,2 @@
1
- "use strict";const K=require("./index-DM1lKT7q.js"),L=require("./codemirror-DMBo1i5w.js"),z=require("./searchcursor-eGwb3e2h.js"),U=require("./dialog-Dh2DOTOu.js");function B(O,R){for(var a=0;a<R.length;a++){const d=R[a];if(typeof d!="string"&&!Array.isArray(d)){for(const y in d)if(y!=="default"&&!(y in O)){const h=Object.getOwnPropertyDescriptor(d,y);h&&Object.defineProperty(O,y,h.get?h:{enumerable:!0,get:()=>d[y]})}}}return Object.freeze(Object.defineProperty(O,Symbol.toStringTag,{value:"Module"}))}var F={exports:{}},Q;function M(){return Q||(Q=1,function(O,R){(function(a){a(L.requireCodemirror(),z.requireSearchcursor(),U.requireDialog())})(function(a){a.defineOption("search",{bottom:!1});function d(e,n){return typeof e=="string"?e=new RegExp(e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),n?"gi":"g"):e.global||(e=new RegExp(e.source,e.ignoreCase?"gi":"g")),{token:function(t){e.lastIndex=t.pos;var o=e.exec(t.string);if(o&&o.index==t.pos)return t.pos+=o[0].length||1,"searching";o?t.pos=o.index:t.skipToEnd()}}}function y(){this.posFrom=this.posTo=this.lastQuery=this.query=null,this.overlay=null}function h(e){return e.state.search||(e.state.search=new y)}function N(e){return typeof e=="string"&&e==e.toLowerCase()}function S(e,n,t){return e.getSearchCursor(n,t,{caseFold:N(n),multiline:!0})}function A(e,n,t,o,r){e.openDialog(n,o,{value:t,selectValueOnOpen:!0,closeOnEnter:!1,onClose:function(){b(e)},onKeyDown:r,bottom:e.options.search.bottom})}function D(e,n,t,o,r){e.openDialog?e.openDialog(n,r,{value:o,selectValueOnOpen:!0,bottom:e.options.search.bottom}):r(prompt(t,o))}function j(e,n,t,o){e.openConfirm?e.openConfirm(n,o):confirm(t)&&o[0]()}function P(e){return e.replace(/\\([nrt\\])/g,function(n,t){return t=="n"?`
1
+ "use strict";const K=require("./index-Of0v8HXf.js"),L=require("./codemirror-DMBo1i5w.js"),z=require("./searchcursor-eGwb3e2h.js"),U=require("./dialog-Dh2DOTOu.js");function B(O,R){for(var a=0;a<R.length;a++){const d=R[a];if(typeof d!="string"&&!Array.isArray(d)){for(const y in d)if(y!=="default"&&!(y in O)){const h=Object.getOwnPropertyDescriptor(d,y);h&&Object.defineProperty(O,y,h.get?h:{enumerable:!0,get:()=>d[y]})}}}return Object.freeze(Object.defineProperty(O,Symbol.toStringTag,{value:"Module"}))}var F={exports:{}},Q;function M(){return Q||(Q=1,function(O,R){(function(a){a(L.requireCodemirror(),z.requireSearchcursor(),U.requireDialog())})(function(a){a.defineOption("search",{bottom:!1});function d(e,n){return typeof e=="string"?e=new RegExp(e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),n?"gi":"g"):e.global||(e=new RegExp(e.source,e.ignoreCase?"gi":"g")),{token:function(t){e.lastIndex=t.pos;var o=e.exec(t.string);if(o&&o.index==t.pos)return t.pos+=o[0].length||1,"searching";o?t.pos=o.index:t.skipToEnd()}}}function y(){this.posFrom=this.posTo=this.lastQuery=this.query=null,this.overlay=null}function h(e){return e.state.search||(e.state.search=new y)}function N(e){return typeof e=="string"&&e==e.toLowerCase()}function S(e,n,t){return e.getSearchCursor(n,t,{caseFold:N(n),multiline:!0})}function A(e,n,t,o,r){e.openDialog(n,o,{value:t,selectValueOnOpen:!0,closeOnEnter:!1,onClose:function(){b(e)},onKeyDown:r,bottom:e.options.search.bottom})}function D(e,n,t,o,r){e.openDialog?e.openDialog(n,r,{value:o,selectValueOnOpen:!0,bottom:e.options.search.bottom}):r(prompt(t,o))}function j(e,n,t,o){e.openConfirm?e.openConfirm(n,o):confirm(t)&&o[0]()}function P(e){return e.replace(/\\([nrt\\])/g,function(n,t){return t=="n"?`
2
2
  `:t=="r"?"\r":t=="t"?" ":t=="\\"?"\\":n})}function C(e){var n=e.match(/^\/(.*)\/([a-z]*)$/);if(n)try{e=new RegExp(n[1],n[2].indexOf("i")==-1?"":"i")}catch{}else e=P(e);return(typeof e=="string"?e=="":e.test(""))&&(e=/x^/),e}function w(e,n,t){n.queryText=t,n.query=C(t),e.removeOverlay(n.overlay,N(n.query)),n.overlay=d(n.query,N(n.query)),e.addOverlay(n.overlay),e.showMatchesOnScrollbar&&(n.annotate&&(n.annotate.clear(),n.annotate=null),n.annotate=e.showMatchesOnScrollbar(n.query,N(n.query)))}function x(e,n,t,o){var r=h(e);if(r.query)return m(e,n);var i=e.getSelection()||r.lastQuery;if(i instanceof RegExp&&i.source=="x^"&&(i=null),t&&e.openDialog){var p=null,f=function(l,v){a.e_stop(v),l&&(l!=r.queryText&&(w(e,r,l),r.posFrom=r.posTo=e.getCursor()),p&&(p.style.opacity=1),m(e,v.shiftKey,function(g,c){var u;c.line<3&&document.querySelector&&(u=e.display.wrapper.querySelector(".CodeMirror-dialog"))&&u.getBoundingClientRect().bottom-4>e.cursorCoords(c,"window").top&&((p=u).style.opacity=.4)}))};A(e,T(e),i,f,function(l,v){var g=a.keyName(l),c=e.getOption("extraKeys"),u=c&&c[g]||a.keyMap[e.getOption("keyMap")][g];u=="findNext"||u=="findPrev"||u=="findPersistentNext"||u=="findPersistentPrev"?(a.e_stop(l),w(e,h(e),v),e.execCommand(u)):(u=="find"||u=="findPersistent")&&(a.e_stop(l),f(v,l))}),o&&i&&(w(e,r,i),m(e,n))}else D(e,T(e),"Search for:",i,function(l){l&&!r.query&&e.operation(function(){w(e,r,l),r.posFrom=r.posTo=e.getCursor(),m(e,n)})})}function m(e,n,t){e.operation(function(){var o=h(e),r=S(e,o.query,n?o.posFrom:o.posTo);!r.find(n)&&(r=S(e,o.query,n?a.Pos(e.lastLine()):a.Pos(e.firstLine(),0)),!r.find(n))||(e.setSelection(r.from(),r.to()),e.scrollIntoView({from:r.from(),to:r.to()},20),o.posFrom=r.from(),o.posTo=r.to(),t&&t(r.from(),r.to()))})}function b(e){e.operation(function(){var n=h(e);n.lastQuery=n.query,n.query&&(n.query=n.queryText=null,e.removeOverlay(n.overlay),n.annotate&&(n.annotate.clear(),n.annotate=null))})}function s(e,n){var t=e?document.createElement(e):document.createDocumentFragment();for(var o in n)t[o]=n[o];for(var r=2;r<arguments.length;r++){var i=arguments[r];t.appendChild(typeof i=="string"?document.createTextNode(i):i)}return t}function T(e){var n=s("label",{className:"CodeMirror-search-label"},e.phrase("Search:"),s("input",{type:"text",style:"width: 10em",className:"CodeMirror-search-field",id:"CodeMirror-search-field"}));return n.setAttribute("for","CodeMirror-search-field"),s("",null,n," ",s("span",{style:"color: #666",className:"CodeMirror-search-hint"},e.phrase("(Use /re/ syntax for regexp search)")))}function k(e){return s("",null," ",s("input",{type:"text",style:"width: 10em",className:"CodeMirror-search-field"})," ",s("span",{style:"color: #666",className:"CodeMirror-search-hint"},e.phrase("(Use /re/ syntax for regexp search)")))}function I(e){return s("",null,s("span",{className:"CodeMirror-search-label"},e.phrase("With:"))," ",s("input",{type:"text",style:"width: 10em",className:"CodeMirror-search-field"}))}function V(e){return s("",null,s("span",{className:"CodeMirror-search-label"},e.phrase("Replace?"))," ",s("button",{},e.phrase("Yes"))," ",s("button",{},e.phrase("No"))," ",s("button",{},e.phrase("All"))," ",s("button",{},e.phrase("Stop")))}function _(e,n,t){e.operation(function(){for(var o=S(e,n);o.findNext();)if(typeof n!="string"){var r=e.getRange(o.from(),o.to()).match(n);o.replace(t.replace(/\$(\d)/g,function(i,p){return r[p]}))}else o.replace(t)})}function E(e,n){if(!e.getOption("readOnly")){var t=e.getSelection()||h(e).lastQuery,o=n?e.phrase("Replace all:"):e.phrase("Replace:"),r=s("",null,s("span",{className:"CodeMirror-search-label"},o),k(e));D(e,r,o,t,function(i){i&&(i=C(i),D(e,I(e),e.phrase("Replace with:"),"",function(p){if(p=P(p),n)_(e,i,p);else{b(e);var f=S(e,i,e.getCursor("from")),l=function(){var g=f.from(),c;!(c=f.findNext())&&(f=S(e,i),!(c=f.findNext())||g&&f.from().line==g.line&&f.from().ch==g.ch)||(e.setSelection(f.from(),f.to()),e.scrollIntoView({from:f.from(),to:f.to()}),j(e,V(e),e.phrase("Replace?"),[function(){v(c)},l,function(){_(e,i,p)}]))},v=function(g){f.replace(typeof i=="string"?p:p.replace(/\$(\d)/g,function(c,u){return g[u]})),l()};l()}}))})}}a.commands.find=function(e){b(e),x(e)},a.commands.findPersistent=function(e){b(e),x(e,!1,!0)},a.commands.findPersistentNext=function(e){x(e,!1,!0,!0)},a.commands.findPersistentPrev=function(e){x(e,!0,!0,!0)},a.commands.findNext=x,a.commands.findPrev=function(e){x(e,!0)},a.commands.clearSearch=b,a.commands.replace=E,a.commands.replaceAll=function(e){E(e,!0)}})}()),F.exports}var $=M();const W=K.getDefaultExportFromCjs($),Y=B({__proto__:null,default:W},[$]);exports.search=Y;
@@ -1,4 +1,4 @@
1
- import { g as n } from "./index-CynXcDPm.mjs";
1
+ import { g as n } from "./index-c_h-B3RW.mjs";
2
2
  import { r as f } from "./searchcursor-DHtNMOPb.mjs";
3
3
  function u(t, c) {
4
4
  for (var o = 0; o < c.length; o++) {
@@ -1 +1 @@
1
- "use strict";const n=require("./index-DM1lKT7q.js"),a=require("./searchcursor-eGwb3e2h.js");function i(t,s){for(var o=0;o<s.length;o++){const r=s[o];if(typeof r!="string"&&!Array.isArray(r)){for(const e in r)if(e!=="default"&&!(e in t)){const c=Object.getOwnPropertyDescriptor(r,e);c&&Object.defineProperty(t,e,c.get?c:{enumerable:!0,get:()=>r[e]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var u=a.requireSearchcursor();const f=n.getDefaultExportFromCjs(u),l=i({__proto__:null,default:f},[u]);exports.searchcursor=l;
1
+ "use strict";const n=require("./index-Of0v8HXf.js"),a=require("./searchcursor-eGwb3e2h.js");function i(t,s){for(var o=0;o<s.length;o++){const r=s[o];if(typeof r!="string"&&!Array.isArray(r)){for(const e in r)if(e!=="default"&&!(e in t)){const c=Object.getOwnPropertyDescriptor(r,e);c&&Object.defineProperty(t,e,c.get?c:{enumerable:!0,get:()=>r[e]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var u=a.requireSearchcursor();const f=n.getDefaultExportFromCjs(u),l=i({__proto__:null,default:f},[u]);exports.searchcursor=l;
@@ -1,4 +1,4 @@
1
- import { g as rt } from "./index-CynXcDPm.mjs";
1
+ import { g as rt } from "./index-c_h-B3RW.mjs";
2
2
  import { r as ct } from "./codemirror-DgPcZxSc.mjs";
3
3
  function lt(S, O) {
4
4
  for (var r = 0; r < O.length; r++) {
@@ -1 +1 @@
1
- "use strict";const rt=require("./index-DM1lKT7q.js"),ct=require("./codemirror-DMBo1i5w.js");function lt(S,O){for(var r=0;r<O.length;r++){const v=O[r];if(typeof v!="string"&&!Array.isArray(v)){for(const m in v)if(m!=="default"&&!(m in S)){const w=Object.getOwnPropertyDescriptor(v,m);w&&Object.defineProperty(S,m,w.get?w:{enumerable:!0,get:()=>v[m]})}}}return Object.freeze(Object.defineProperty(S,Symbol.toStringTag,{value:"Module"}))}var X={exports:{}},G;function ht(){return G||(G=1,function(S,O){(function(r){r(ct.requireCodemirror())})(function(r){var v="CodeMirror-hint",m="CodeMirror-hint-active";r.showHint=function(t,e,i){if(!e)return t.showHint(i);i&&i.async&&(e.async=!0);var n={hint:e};if(i)for(var s in i)n[s]=i[s];return t.showHint(n)},r.defineExtension("showHint",function(t){t=tt(this,this.getCursor("start"),t);var e=this.listSelections();if(!(e.length>1)){if(this.somethingSelected()){if(!t.hint.supportsSelection)return;for(var i=0;i<e.length;i++)if(e[i].head.line!=e[i].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var n=this.state.completionActive=new w(this,t);n.options.hint&&(r.signal(this,"startCompletion",this),n.update(!0))}}),r.defineExtension("closeHint",function(){this.state.completionActive&&this.state.completionActive.close()});function w(t,e){if(this.cm=t,this.options=e,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 i=this;t.on("cursorActivity",this.activityFunc=function(){i.cursorActivity()})}}var Q=window.requestAnimationFrame||function(t){return setTimeout(t,1e3/60)},Z=window.cancelAnimationFrame||clearTimeout;w.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&&r.signal(this.data,"close"),this.widget&&this.widget.close(),r.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(t,e){var i=t.list[e],n=this;this.cm.operation(function(){i.hint?i.hint(n.cm,t,i):n.cm.replaceRange(_(i),i.from||t.from,i.to||t.to,"complete"),r.signal(t,"pick",i),n.cm.scrollIntoView()}),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(Z(this.debounce),this.debounce=0);var t=this.startPos;this.data&&(t=this.data.from);var e=this.cm.getCursor(),i=this.cm.getLine(e.line);if(e.line!=this.startPos.line||i.length-e.ch!=this.startLen-this.startPos.ch||e.ch<t.ch||this.cm.somethingSelected()||!e.ch||this.options.closeCharacters.test(i.charAt(e.ch-1)))this.close();else{var n=this;this.debounce=Q(function(){n.update()}),this.widget&&this.widget.disable()}},update:function(t){if(this.tick!=null){var e=this,i=++this.tick;U(this.options.hint,this.cm,this.options,function(n){e.tick==i&&e.finishUpdate(n,t)})}},finishUpdate:function(t,e){this.data&&r.signal(this.data,"update");var i=this.widget&&this.widget.picked||e&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=t,t&&t.list.length&&(i&&t.list.length==1?this.pick(t,0):(this.widget=new B(this,t),r.signal(t,"shown")))}};function tt(t,e,i){var n=t.options.hintOptions,s={};for(var c in q)s[c]=q[c];if(n)for(var c in n)n[c]!==void 0&&(s[c]=n[c]);if(i)for(var c in i)i[c]!==void 0&&(s[c]=i[c]);return s.hint.resolve&&(s.hint=s.hint.resolve(t,e)),s}function _(t){return typeof t=="string"?t:t.text}function et(t,e){var i={Up:function(){e.moveFocus(-1)},Down:function(){e.moveFocus(1)},PageUp:function(){e.moveFocus(-e.menuSize()+1,!0)},PageDown:function(){e.moveFocus(e.menuSize()-1,!0)},Home:function(){e.setFocus(0)},End:function(){e.setFocus(e.length-1)},Enter:e.pick,Tab:e.pick,Esc:e.close},n=/Mac/.test(navigator.platform);n&&(i["Ctrl-P"]=function(){e.moveFocus(-1)},i["Ctrl-N"]=function(){e.moveFocus(1)});var s=t.options.customKeys,c=s?{}:i;function o(u,l){var a;typeof l!="string"?a=function(H){return l(H,e)}:i.hasOwnProperty(l)?a=i[l]:a=l,c[u]=a}if(s)for(var f in s)s.hasOwnProperty(f)&&o(f,s[f]);var h=t.options.extraKeys;if(h)for(var f in h)h.hasOwnProperty(f)&&o(f,h[f]);return c}function K(t,e){for(;e&&e!=t;){if(e.nodeName.toUpperCase()==="LI"&&e.parentNode==t)return e;e=e.parentNode}}function B(t,e){this.id="cm-complete-"+Math.floor(Math.random(1e6)),this.completion=t,this.data=e,this.picked=!1;var i=this,n=t.cm,s=n.getInputField().ownerDocument,c=s.defaultView||s.parentWindow,o=this.hints=s.createElement("ul");o.setAttribute("role","listbox"),o.setAttribute("aria-expanded","true"),o.id=this.id;var f=t.cm.options.theme;o.className="CodeMirror-hints "+f,this.selectedHint=e.selectedHint||0;for(var h=e.list,u=0;u<h.length;++u){var l=o.appendChild(s.createElement("li")),a=h[u],H=v+(u!=this.selectedHint?"":" "+m);a.className!=null&&(H=a.className+" "+H),l.className=H,u==this.selectedHint&&l.setAttribute("aria-selected","true"),l.id=this.id+"-"+u,l.setAttribute("role","option"),a.render?a.render(l,e,a):l.appendChild(s.createTextNode(a.displayText||_(a))),l.hintId=u}var A=t.options.container||s.body,y=n.cursorCoords(t.options.alignWithWord?e.from:null),F=y.left,E=y.bottom,D=!0,N=0,I=0;if(A!==s.body){var st=["absolute","relative","fixed"].indexOf(c.getComputedStyle(A).position)!==-1,C=st?A:A.offsetParent,M=C.getBoundingClientRect(),j=s.body.getBoundingClientRect();N=M.left-j.left-C.scrollLeft,I=M.top-j.top-C.scrollTop}o.style.left=F-N+"px",o.style.top=E-I+"px";var x=c.innerWidth||Math.max(s.body.offsetWidth,s.documentElement.offsetWidth),W=c.innerHeight||Math.max(s.body.offsetHeight,s.documentElement.offsetHeight);A.appendChild(o),n.getInputField().setAttribute("aria-autocomplete","list"),n.getInputField().setAttribute("aria-owns",this.id),n.getInputField().setAttribute("aria-activedescendant",this.id+"-"+this.selectedHint);var g=t.options.moveOnOverlap?o.getBoundingClientRect():new DOMRect,z=t.options.paddingForScrollbar?o.scrollHeight>o.clientHeight+1:!1,b;setTimeout(function(){b=n.getScrollInfo()});var ot=g.bottom-W;if(ot>0){var L=g.bottom-g.top,P=g.top-(y.bottom-y.top)-2;W-g.top<P?(L>P&&(o.style.height=(L=P)+"px"),o.style.top=(E=y.top-L)+I+"px",D=!1):o.style.height=W-g.top-2+"px"}var T=g.right-x;if(z&&(T+=n.display.nativeBarWidth),T>0&&(g.right-g.left>x&&(o.style.width=x-5+"px",T-=g.right-g.left-x),o.style.left=(F=Math.max(y.left-T-N,0))+"px"),z)for(var k=o.firstChild;k;k=k.nextSibling)k.style.paddingRight=n.display.nativeBarWidth+"px";if(n.addKeyMap(this.keyMap=et(t,{moveFocus:function(p,d){i.changeActive(i.selectedHint+p,d)},setFocus:function(p){i.changeActive(p)},menuSize:function(){return i.screenAmount()},length:h.length,close:function(){t.close()},pick:function(){i.pick()},data:e})),t.options.closeOnUnfocus){var V;n.on("blur",this.onBlur=function(){V=setTimeout(function(){t.close()},100)}),n.on("focus",this.onFocus=function(){clearTimeout(V)})}n.on("scroll",this.onScroll=function(){var p=n.getScrollInfo(),d=n.getWrapperElement().getBoundingClientRect();b||(b=n.getScrollInfo());var $=E+b.top-p.top,R=$-(c.pageYOffset||(s.documentElement||s.body).scrollTop);if(D||(R+=o.offsetHeight),R<=d.top||R>=d.bottom)return t.close();o.style.top=$+"px",o.style.left=F+b.left-p.left+"px"}),r.on(o,"dblclick",function(p){var d=K(o,p.target||p.srcElement);d&&d.hintId!=null&&(i.changeActive(d.hintId),i.pick())}),r.on(o,"click",function(p){var d=K(o,p.target||p.srcElement);d&&d.hintId!=null&&(i.changeActive(d.hintId),t.options.completeOnSingleClick&&i.pick())}),r.on(o,"mousedown",function(){setTimeout(function(){n.focus()},20)});var Y=this.getSelectedHintRange();return(Y.from!==0||Y.to!==0)&&this.scrollToActive(),r.signal(e,"select",h[this.selectedHint],o.childNodes[this.selectedHint]),!0}B.prototype={close:function(){if(this.completion.widget==this){this.completion.widget=null,this.hints.parentNode&&this.hints.parentNode.removeChild(this.hints),this.completion.cm.removeKeyMap(this.keyMap);var t=this.completion.cm.getInputField();t.removeAttribute("aria-activedescendant"),t.removeAttribute("aria-owns");var e=this.completion.cm;this.completion.options.closeOnUnfocus&&(e.off("blur",this.onBlur),e.off("focus",this.onFocus)),e.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var t=this;this.keyMap={Enter:function(){t.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(t,e){if(t>=this.data.list.length?t=e?this.data.list.length-1:0:t<0&&(t=e?0:this.data.list.length-1),this.selectedHint!=t){var i=this.hints.childNodes[this.selectedHint];i&&(i.className=i.className.replace(" "+m,""),i.removeAttribute("aria-selected")),i=this.hints.childNodes[this.selectedHint=t],i.className+=" "+m,i.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",i.id),this.scrollToActive(),r.signal(this.data,"select",this.data.list[this.selectedHint],i)}},scrollToActive:function(){var t=this.getSelectedHintRange(),e=this.hints.childNodes[t.from],i=this.hints.childNodes[t.to],n=this.hints.firstChild;e.offsetTop<this.hints.scrollTop?this.hints.scrollTop=e.offsetTop-n.offsetTop:i.offsetTop+i.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=i.offsetTop+i.offsetHeight-this.hints.clientHeight+n.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var t=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-t),to:Math.min(this.data.list.length-1,this.selectedHint+t)}}};function it(t,e){if(!t.somethingSelected())return e;for(var i=[],n=0;n<e.length;n++)e[n].supportsSelection&&i.push(e[n]);return i}function U(t,e,i,n){if(t.async)t(e,n,i);else{var s=t(e,i);s&&s.then?s.then(n):n(s)}}function nt(t,e){var i=t.getHelpers(e,"hint"),n;if(i.length){var s=function(c,o,f){var h=it(c,i);function u(l){if(l==h.length)return o(null);U(h[l],c,f,function(a){a&&a.list.length>0?o(a):u(l+1)})}u(0)};return s.async=!0,s.supportsSelection=!0,s}else return(n=t.getHelper(t.getCursor(),"hintWords"))?function(c){return r.hint.fromList(c,{words:n})}:r.hint.anyword?function(c,o){return r.hint.anyword(c,o)}:function(){}}r.registerHelper("hint","auto",{resolve:nt}),r.registerHelper("hint","fromList",function(t,e){var i=t.getCursor(),n=t.getTokenAt(i),s,c=r.Pos(i.line,n.start),o=i;n.start<i.ch&&/\w/.test(n.string.charAt(i.ch-n.start-1))?s=n.string.substr(0,i.ch-n.start):(s="",c=i);for(var f=[],h=0;h<e.words.length;h++){var u=e.words[h];u.slice(0,s.length)==s&&f.push(u)}if(f.length)return{list:f,from:c,to:o}}),r.commands.autocomplete=r.showHint;var q={hint:r.hint.auto,completeSingle:!0,alignWithWord:!0,closeCharacters:/[\s()\[\]{};:>,]/,closeOnPick:!0,closeOnUnfocus:!0,updateOnCursorActivity:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null,paddingForScrollbar:!0,moveOnOverlap:!0};r.defineOption("hintOptions",null)})}()),X.exports}var J=ht();const at=rt.getDefaultExportFromCjs(J),ft=lt({__proto__:null,default:at},[J]);exports.showHint=ft;
1
+ "use strict";const rt=require("./index-Of0v8HXf.js"),ct=require("./codemirror-DMBo1i5w.js");function lt(S,O){for(var r=0;r<O.length;r++){const v=O[r];if(typeof v!="string"&&!Array.isArray(v)){for(const m in v)if(m!=="default"&&!(m in S)){const w=Object.getOwnPropertyDescriptor(v,m);w&&Object.defineProperty(S,m,w.get?w:{enumerable:!0,get:()=>v[m]})}}}return Object.freeze(Object.defineProperty(S,Symbol.toStringTag,{value:"Module"}))}var X={exports:{}},G;function ht(){return G||(G=1,function(S,O){(function(r){r(ct.requireCodemirror())})(function(r){var v="CodeMirror-hint",m="CodeMirror-hint-active";r.showHint=function(t,e,i){if(!e)return t.showHint(i);i&&i.async&&(e.async=!0);var n={hint:e};if(i)for(var s in i)n[s]=i[s];return t.showHint(n)},r.defineExtension("showHint",function(t){t=tt(this,this.getCursor("start"),t);var e=this.listSelections();if(!(e.length>1)){if(this.somethingSelected()){if(!t.hint.supportsSelection)return;for(var i=0;i<e.length;i++)if(e[i].head.line!=e[i].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var n=this.state.completionActive=new w(this,t);n.options.hint&&(r.signal(this,"startCompletion",this),n.update(!0))}}),r.defineExtension("closeHint",function(){this.state.completionActive&&this.state.completionActive.close()});function w(t,e){if(this.cm=t,this.options=e,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 i=this;t.on("cursorActivity",this.activityFunc=function(){i.cursorActivity()})}}var Q=window.requestAnimationFrame||function(t){return setTimeout(t,1e3/60)},Z=window.cancelAnimationFrame||clearTimeout;w.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&&r.signal(this.data,"close"),this.widget&&this.widget.close(),r.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(t,e){var i=t.list[e],n=this;this.cm.operation(function(){i.hint?i.hint(n.cm,t,i):n.cm.replaceRange(_(i),i.from||t.from,i.to||t.to,"complete"),r.signal(t,"pick",i),n.cm.scrollIntoView()}),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(Z(this.debounce),this.debounce=0);var t=this.startPos;this.data&&(t=this.data.from);var e=this.cm.getCursor(),i=this.cm.getLine(e.line);if(e.line!=this.startPos.line||i.length-e.ch!=this.startLen-this.startPos.ch||e.ch<t.ch||this.cm.somethingSelected()||!e.ch||this.options.closeCharacters.test(i.charAt(e.ch-1)))this.close();else{var n=this;this.debounce=Q(function(){n.update()}),this.widget&&this.widget.disable()}},update:function(t){if(this.tick!=null){var e=this,i=++this.tick;U(this.options.hint,this.cm,this.options,function(n){e.tick==i&&e.finishUpdate(n,t)})}},finishUpdate:function(t,e){this.data&&r.signal(this.data,"update");var i=this.widget&&this.widget.picked||e&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=t,t&&t.list.length&&(i&&t.list.length==1?this.pick(t,0):(this.widget=new B(this,t),r.signal(t,"shown")))}};function tt(t,e,i){var n=t.options.hintOptions,s={};for(var c in q)s[c]=q[c];if(n)for(var c in n)n[c]!==void 0&&(s[c]=n[c]);if(i)for(var c in i)i[c]!==void 0&&(s[c]=i[c]);return s.hint.resolve&&(s.hint=s.hint.resolve(t,e)),s}function _(t){return typeof t=="string"?t:t.text}function et(t,e){var i={Up:function(){e.moveFocus(-1)},Down:function(){e.moveFocus(1)},PageUp:function(){e.moveFocus(-e.menuSize()+1,!0)},PageDown:function(){e.moveFocus(e.menuSize()-1,!0)},Home:function(){e.setFocus(0)},End:function(){e.setFocus(e.length-1)},Enter:e.pick,Tab:e.pick,Esc:e.close},n=/Mac/.test(navigator.platform);n&&(i["Ctrl-P"]=function(){e.moveFocus(-1)},i["Ctrl-N"]=function(){e.moveFocus(1)});var s=t.options.customKeys,c=s?{}:i;function o(u,l){var a;typeof l!="string"?a=function(H){return l(H,e)}:i.hasOwnProperty(l)?a=i[l]:a=l,c[u]=a}if(s)for(var f in s)s.hasOwnProperty(f)&&o(f,s[f]);var h=t.options.extraKeys;if(h)for(var f in h)h.hasOwnProperty(f)&&o(f,h[f]);return c}function K(t,e){for(;e&&e!=t;){if(e.nodeName.toUpperCase()==="LI"&&e.parentNode==t)return e;e=e.parentNode}}function B(t,e){this.id="cm-complete-"+Math.floor(Math.random(1e6)),this.completion=t,this.data=e,this.picked=!1;var i=this,n=t.cm,s=n.getInputField().ownerDocument,c=s.defaultView||s.parentWindow,o=this.hints=s.createElement("ul");o.setAttribute("role","listbox"),o.setAttribute("aria-expanded","true"),o.id=this.id;var f=t.cm.options.theme;o.className="CodeMirror-hints "+f,this.selectedHint=e.selectedHint||0;for(var h=e.list,u=0;u<h.length;++u){var l=o.appendChild(s.createElement("li")),a=h[u],H=v+(u!=this.selectedHint?"":" "+m);a.className!=null&&(H=a.className+" "+H),l.className=H,u==this.selectedHint&&l.setAttribute("aria-selected","true"),l.id=this.id+"-"+u,l.setAttribute("role","option"),a.render?a.render(l,e,a):l.appendChild(s.createTextNode(a.displayText||_(a))),l.hintId=u}var A=t.options.container||s.body,y=n.cursorCoords(t.options.alignWithWord?e.from:null),F=y.left,E=y.bottom,D=!0,N=0,I=0;if(A!==s.body){var st=["absolute","relative","fixed"].indexOf(c.getComputedStyle(A).position)!==-1,C=st?A:A.offsetParent,M=C.getBoundingClientRect(),j=s.body.getBoundingClientRect();N=M.left-j.left-C.scrollLeft,I=M.top-j.top-C.scrollTop}o.style.left=F-N+"px",o.style.top=E-I+"px";var x=c.innerWidth||Math.max(s.body.offsetWidth,s.documentElement.offsetWidth),W=c.innerHeight||Math.max(s.body.offsetHeight,s.documentElement.offsetHeight);A.appendChild(o),n.getInputField().setAttribute("aria-autocomplete","list"),n.getInputField().setAttribute("aria-owns",this.id),n.getInputField().setAttribute("aria-activedescendant",this.id+"-"+this.selectedHint);var g=t.options.moveOnOverlap?o.getBoundingClientRect():new DOMRect,z=t.options.paddingForScrollbar?o.scrollHeight>o.clientHeight+1:!1,b;setTimeout(function(){b=n.getScrollInfo()});var ot=g.bottom-W;if(ot>0){var L=g.bottom-g.top,P=g.top-(y.bottom-y.top)-2;W-g.top<P?(L>P&&(o.style.height=(L=P)+"px"),o.style.top=(E=y.top-L)+I+"px",D=!1):o.style.height=W-g.top-2+"px"}var T=g.right-x;if(z&&(T+=n.display.nativeBarWidth),T>0&&(g.right-g.left>x&&(o.style.width=x-5+"px",T-=g.right-g.left-x),o.style.left=(F=Math.max(y.left-T-N,0))+"px"),z)for(var k=o.firstChild;k;k=k.nextSibling)k.style.paddingRight=n.display.nativeBarWidth+"px";if(n.addKeyMap(this.keyMap=et(t,{moveFocus:function(p,d){i.changeActive(i.selectedHint+p,d)},setFocus:function(p){i.changeActive(p)},menuSize:function(){return i.screenAmount()},length:h.length,close:function(){t.close()},pick:function(){i.pick()},data:e})),t.options.closeOnUnfocus){var V;n.on("blur",this.onBlur=function(){V=setTimeout(function(){t.close()},100)}),n.on("focus",this.onFocus=function(){clearTimeout(V)})}n.on("scroll",this.onScroll=function(){var p=n.getScrollInfo(),d=n.getWrapperElement().getBoundingClientRect();b||(b=n.getScrollInfo());var $=E+b.top-p.top,R=$-(c.pageYOffset||(s.documentElement||s.body).scrollTop);if(D||(R+=o.offsetHeight),R<=d.top||R>=d.bottom)return t.close();o.style.top=$+"px",o.style.left=F+b.left-p.left+"px"}),r.on(o,"dblclick",function(p){var d=K(o,p.target||p.srcElement);d&&d.hintId!=null&&(i.changeActive(d.hintId),i.pick())}),r.on(o,"click",function(p){var d=K(o,p.target||p.srcElement);d&&d.hintId!=null&&(i.changeActive(d.hintId),t.options.completeOnSingleClick&&i.pick())}),r.on(o,"mousedown",function(){setTimeout(function(){n.focus()},20)});var Y=this.getSelectedHintRange();return(Y.from!==0||Y.to!==0)&&this.scrollToActive(),r.signal(e,"select",h[this.selectedHint],o.childNodes[this.selectedHint]),!0}B.prototype={close:function(){if(this.completion.widget==this){this.completion.widget=null,this.hints.parentNode&&this.hints.parentNode.removeChild(this.hints),this.completion.cm.removeKeyMap(this.keyMap);var t=this.completion.cm.getInputField();t.removeAttribute("aria-activedescendant"),t.removeAttribute("aria-owns");var e=this.completion.cm;this.completion.options.closeOnUnfocus&&(e.off("blur",this.onBlur),e.off("focus",this.onFocus)),e.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var t=this;this.keyMap={Enter:function(){t.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(t,e){if(t>=this.data.list.length?t=e?this.data.list.length-1:0:t<0&&(t=e?0:this.data.list.length-1),this.selectedHint!=t){var i=this.hints.childNodes[this.selectedHint];i&&(i.className=i.className.replace(" "+m,""),i.removeAttribute("aria-selected")),i=this.hints.childNodes[this.selectedHint=t],i.className+=" "+m,i.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",i.id),this.scrollToActive(),r.signal(this.data,"select",this.data.list[this.selectedHint],i)}},scrollToActive:function(){var t=this.getSelectedHintRange(),e=this.hints.childNodes[t.from],i=this.hints.childNodes[t.to],n=this.hints.firstChild;e.offsetTop<this.hints.scrollTop?this.hints.scrollTop=e.offsetTop-n.offsetTop:i.offsetTop+i.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=i.offsetTop+i.offsetHeight-this.hints.clientHeight+n.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var t=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-t),to:Math.min(this.data.list.length-1,this.selectedHint+t)}}};function it(t,e){if(!t.somethingSelected())return e;for(var i=[],n=0;n<e.length;n++)e[n].supportsSelection&&i.push(e[n]);return i}function U(t,e,i,n){if(t.async)t(e,n,i);else{var s=t(e,i);s&&s.then?s.then(n):n(s)}}function nt(t,e){var i=t.getHelpers(e,"hint"),n;if(i.length){var s=function(c,o,f){var h=it(c,i);function u(l){if(l==h.length)return o(null);U(h[l],c,f,function(a){a&&a.list.length>0?o(a):u(l+1)})}u(0)};return s.async=!0,s.supportsSelection=!0,s}else return(n=t.getHelper(t.getCursor(),"hintWords"))?function(c){return r.hint.fromList(c,{words:n})}:r.hint.anyword?function(c,o){return r.hint.anyword(c,o)}:function(){}}r.registerHelper("hint","auto",{resolve:nt}),r.registerHelper("hint","fromList",function(t,e){var i=t.getCursor(),n=t.getTokenAt(i),s,c=r.Pos(i.line,n.start),o=i;n.start<i.ch&&/\w/.test(n.string.charAt(i.ch-n.start-1))?s=n.string.substr(0,i.ch-n.start):(s="",c=i);for(var f=[],h=0;h<e.words.length;h++){var u=e.words[h];u.slice(0,s.length)==s&&f.push(u)}if(f.length)return{list:f,from:c,to:o}}),r.commands.autocomplete=r.showHint;var q={hint:r.hint.auto,completeSingle:!0,alignWithWord:!0,closeCharacters:/[\s()\[\]{};:>,]/,closeOnPick:!0,closeOnUnfocus:!0,updateOnCursorActivity:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null,paddingForScrollbar:!0,moveOnOverlap:!0};r.defineOption("hintOptions",null)})}()),X.exports}var J=ht();const at=rt.getDefaultExportFromCjs(J),ft=lt({__proto__:null,default:at},[J]);exports.showHint=ft;