window.GraphiQL=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=86)}([function(e,t,n){"use strict";n.d(t,"S",(function(){return w})),n.d(t,"x",(function(){return x})),n.d(t,"R",(function(){return _})),n.d(t,"w",(function(){return k})),n.d(t,"N",(function(){return C})),n.d(t,"u",(function(){return S})),n.d(t,"H",(function(){return N})),n.d(t,"o",(function(){return D})),n.d(t,"T",(function(){return I})),n.d(t,"y",(function(){return A})),n.d(t,"E",(function(){return L})),n.d(t,"l",(function(){return j})),n.d(t,"F",(function(){return F})),n.d(t,"m",(function(){return M})),n.d(t,"J",(function(){return R})),n.d(t,"q",(function(){return P})),n.d(t,"L",(function(){return V})),n.d(t,"s",(function(){return U})),n.d(t,"G",(function(){return B})),n.d(t,"n",(function(){return q})),n.d(t,"O",(function(){return H})),n.d(t,"v",(function(){return G})),n.d(t,"I",(function(){return z})),n.d(t,"p",(function(){return Q})),n.d(t,"D",(function(){return K})),n.d(t,"k",(function(){return W})),n.d(t,"C",(function(){return Y})),n.d(t,"j",(function(){return J})),n.d(t,"d",(function(){return $})),n.d(t,"e",(function(){return X})),n.d(t,"U",(function(){return Z})),n.d(t,"z",(function(){return ee})),n.d(t,"M",(function(){return te})),n.d(t,"t",(function(){return ne})),n.d(t,"B",(function(){return re})),n.d(t,"K",(function(){return ie})),n.d(t,"r",(function(){return oe})),n.d(t,"A",(function(){return ae})),n.d(t,"g",(function(){return ce})),n.d(t,"f",(function(){return ue})),n.d(t,"i",(function(){return me})),n.d(t,"P",(function(){return ve})),n.d(t,"c",(function(){return ge})),n.d(t,"h",(function(){return ye})),n.d(t,"a",(function(){return Te})),n.d(t,"b",(function(){return Oe})),n.d(t,"Q",(function(){return xe}));var r=n(27),i=n(12),o=n(3),a=n(18),s=n(29),l=n(21),c=n(5),u=n(26),f=n(23),d=n(19),p=n(17);function h(e){return e}var m=n(25),v=n(22),g=n(2),y=n(1),b=n(10),T=n(85);function E(e,t){for(var n=0;n0?e:void 0}$.prototype.toString=function(){return"["+String(this.ofType)+"]"},$.prototype.toJSON=function(){return this.toString()},Object.defineProperty($.prototype,i.c,{get:function(){return"GraphQLList"}}),Object(m.a)($),X.prototype.toString=function(){return String(this.ofType)+"!"},X.prototype.toJSON=function(){return this.toString()},Object.defineProperty(X.prototype,i.c,{get:function(){return"GraphQLNonNull"}}),Object(m.a)(X);var ce=function(){function e(e){var t,n,r,i=null!==(t=e.parseValue)&&void 0!==t?t:h;this.name=e.name,this.description=e.description,this.specifiedByUrl=e.specifiedByUrl,this.serialize=null!==(n=e.serialize)&&void 0!==n?n:h,this.parseValue=i,this.parseLiteral=null!==(r=e.parseLiteral)&&void 0!==r?r:function(e,t){return i(Object(T.a)(e,t))},this.extensions=e.extensions&&Object(l.a)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=le(e.extensionASTNodes),"string"==typeof e.name||Object(c.a)(0,"Must provide name."),null==e.specifiedByUrl||"string"==typeof e.specifiedByUrl||Object(c.a)(0,"".concat(this.name,' must provide "specifiedByUrl" as a string, ')+"but got: ".concat(Object(o.a)(e.specifiedByUrl),".")),null==e.serialize||"function"==typeof e.serialize||Object(c.a)(0,"".concat(this.name,' must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.')),e.parseLiteral&&("function"==typeof e.parseValue&&"function"==typeof e.parseLiteral||Object(c.a)(0,"".concat(this.name,' must provide both "parseValue" and "parseLiteral" functions.')))}var t=e.prototype;return t.toConfig=function(){var e;return{name:this.name,description:this.description,specifiedByUrl:this.specifiedByUrl,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(e=this.extensionASTNodes)&&void 0!==e?e:[]}},t.toString=function(){return this.name},t.toJSON=function(){return this.toString()},O(e,[{key:i.c,get:function(){return"GraphQLScalarType"}}]),e}();Object(m.a)(ce);var ue=function(){function e(e){this.name=e.name,this.description=e.description,this.isTypeOf=e.isTypeOf,this.extensions=e.extensions&&Object(l.a)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=le(e.extensionASTNodes),this._fields=de.bind(void 0,e),this._interfaces=fe.bind(void 0,e),"string"==typeof e.name||Object(c.a)(0,"Must provide name."),null==e.isTypeOf||"function"==typeof e.isTypeOf||Object(c.a)(0,"".concat(this.name,' must provide "isTypeOf" as a function, ')+"but got: ".concat(Object(o.a)(e.isTypeOf),"."))}var t=e.prototype;return t.getFields=function(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields},t.getInterfaces=function(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces},t.toConfig=function(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:he(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes||[]}},t.toString=function(){return this.name},t.toJSON=function(){return this.toString()},O(e,[{key:i.c,get:function(){return"GraphQLObjectType"}}]),e}();function fe(e){var t,n=null!==(t=se(e.interfaces))&&void 0!==t?t:[];return Array.isArray(n)||Object(c.a)(0,"".concat(e.name," interfaces must be an Array or a function which returns an Array.")),n}function de(e){var t=se(e.fields);return pe(t)||Object(c.a)(0,"".concat(e.name," fields must be an object with field names as keys or a function which returns such an object.")),Object(s.a)(t,(function(t,n){var i;pe(t)||Object(c.a)(0,"".concat(e.name,".").concat(n," field config must be an object.")),!("isDeprecated"in t)||Object(c.a)(0,"".concat(e.name,".").concat(n,' should provide "deprecationReason" instead of "isDeprecated".')),null==t.resolve||"function"==typeof t.resolve||Object(c.a)(0,"".concat(e.name,".").concat(n," field resolver must be a function if ")+"provided, but got: ".concat(Object(o.a)(t.resolve),"."));var a=null!==(i=t.args)&&void 0!==i?i:{};pe(a)||Object(c.a)(0,"".concat(e.name,".").concat(n," args must be an object with argument names as keys."));var s=Object(r.a)(a).map((function(e){var t=e[0],n=e[1];return{name:t,description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:n.extensions&&Object(l.a)(n.extensions),astNode:n.astNode}}));return{name:n,description:t.description,type:t.type,args:s,resolve:t.resolve,subscribe:t.subscribe,isDeprecated:null!=t.deprecationReason,deprecationReason:t.deprecationReason,extensions:t.extensions&&Object(l.a)(t.extensions),astNode:t.astNode}}))}function pe(e){return Object(p.a)(e)&&!Array.isArray(e)}function he(e){return Object(s.a)(e,(function(e){return{description:e.description,type:e.type,args:me(e.args),resolve:e.resolve,subscribe:e.subscribe,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}}))}function me(e){return Object(u.a)(e,(function(e){return e.name}),(function(e){return{description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}}))}function ve(e){return V(e.type)&&void 0===e.defaultValue}Object(m.a)(ue);var ge=function(){function e(e){this.name=e.name,this.description=e.description,this.resolveType=e.resolveType,this.extensions=e.extensions&&Object(l.a)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=le(e.extensionASTNodes),this._fields=de.bind(void 0,e),this._interfaces=fe.bind(void 0,e),"string"==typeof e.name||Object(c.a)(0,"Must provide name."),null==e.resolveType||"function"==typeof e.resolveType||Object(c.a)(0,"".concat(this.name,' must provide "resolveType" as a function, ')+"but got: ".concat(Object(o.a)(e.resolveType),"."))}var t=e.prototype;return t.getFields=function(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields},t.getInterfaces=function(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces},t.toConfig=function(){var e;return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:he(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(e=this.extensionASTNodes)&&void 0!==e?e:[]}},t.toString=function(){return this.name},t.toJSON=function(){return this.toString()},O(e,[{key:i.c,get:function(){return"GraphQLInterfaceType"}}]),e}();Object(m.a)(ge);var ye=function(){function e(e){this.name=e.name,this.description=e.description,this.resolveType=e.resolveType,this.extensions=e.extensions&&Object(l.a)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=le(e.extensionASTNodes),this._types=be.bind(void 0,e),"string"==typeof e.name||Object(c.a)(0,"Must provide name."),null==e.resolveType||"function"==typeof e.resolveType||Object(c.a)(0,"".concat(this.name,' must provide "resolveType" as a function, ')+"but got: ".concat(Object(o.a)(e.resolveType),"."))}var t=e.prototype;return t.getTypes=function(){return"function"==typeof this._types&&(this._types=this._types()),this._types},t.toConfig=function(){var e;return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(e=this.extensionASTNodes)&&void 0!==e?e:[]}},t.toString=function(){return this.name},t.toJSON=function(){return this.toString()},O(e,[{key:i.c,get:function(){return"GraphQLUnionType"}}]),e}();function be(e){var t=se(e.types);return Array.isArray(t)||Object(c.a)(0,"Must provide Array of types or a function which returns such an array for Union ".concat(e.name,".")),t}Object(m.a)(ye);var Te=function(){function e(e){var t,n;this.name=e.name,this.description=e.description,this.extensions=e.extensions&&Object(l.a)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=le(e.extensionASTNodes),this._values=(t=this.name,pe(n=e.values)||Object(c.a)(0,"".concat(t," values must be an object with value names as keys.")),Object(r.a)(n).map((function(e){var n=e[0],r=e[1];return pe(r)||Object(c.a)(0,"".concat(t,".").concat(n,' must refer to an object with a "value" key ')+"representing an internal value but got: ".concat(Object(o.a)(r),".")),!("isDeprecated"in r)||Object(c.a)(0,"".concat(t,".").concat(n,' should provide "deprecationReason" instead of "isDeprecated".')),{name:n,description:r.description,value:void 0!==r.value?r.value:n,isDeprecated:null!=r.deprecationReason,deprecationReason:r.deprecationReason,extensions:r.extensions&&Object(l.a)(r.extensions),astNode:r.astNode}}))),this._valueLookup=new Map(this._values.map((function(e){return[e.value,e]}))),this._nameLookup=Object(a.a)(this._values,(function(e){return e.name})),"string"==typeof e.name||Object(c.a)(0,"Must provide name.")}var t=e.prototype;return t.getValues=function(){return this._values},t.getValue=function(e){return this._nameLookup[e]},t.serialize=function(e){var t=this._valueLookup.get(e);if(void 0===t)throw new g.a('Enum "'.concat(this.name,'" cannot represent value: ').concat(Object(o.a)(e)));return t.name},t.parseValue=function(e){if("string"!=typeof e){var t=Object(o.a)(e);throw new g.a('Enum "'.concat(this.name,'" cannot represent non-string value: ').concat(t,".")+Ee(this,t))}var n=this.getValue(e);if(null==n)throw new g.a('Value "'.concat(e,'" does not exist in "').concat(this.name,'" enum.')+Ee(this,e));return n.value},t.parseLiteral=function(e,t){if(e.kind!==y.a.ENUM){var n=Object(b.a)(e);throw new g.a('Enum "'.concat(this.name,'" cannot represent non-enum value: ').concat(n,".")+Ee(this,n),e)}var r=this.getValue(e.value);if(null==r){var i=Object(b.a)(e);throw new g.a('Value "'.concat(i,'" does not exist in "').concat(this.name,'" enum.')+Ee(this,i),e)}return r.value},t.toConfig=function(){var e,t=Object(u.a)(this.getValues(),(function(e){return e.name}),(function(e){return{description:e.description,value:e.value,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}}));return{name:this.name,description:this.description,values:t,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(e=this.extensionASTNodes)&&void 0!==e?e:[]}},t.toString=function(){return this.name},t.toJSON=function(){return this.toString()},O(e,[{key:i.c,get:function(){return"GraphQLEnumType"}}]),e}();function Ee(e,t){var n=e.getValues().map((function(e){return e.name})),r=Object(v.a)(t,n);return Object(d.a)("the enum value",r)}Object(m.a)(Te);var Oe=function(){function e(e){this.name=e.name,this.description=e.description,this.extensions=e.extensions&&Object(l.a)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=le(e.extensionASTNodes),this._fields=we.bind(void 0,e),"string"==typeof e.name||Object(c.a)(0,"Must provide name.")}var t=e.prototype;return t.getFields=function(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields},t.toConfig=function(){var e,t=Object(s.a)(this.getFields(),(function(e){return{description:e.description,type:e.type,defaultValue:e.defaultValue,extensions:e.extensions,astNode:e.astNode}}));return{name:this.name,description:this.description,fields:t,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(e=this.extensionASTNodes)&&void 0!==e?e:[]}},t.toString=function(){return this.name},t.toJSON=function(){return this.toString()},O(e,[{key:i.c,get:function(){return"GraphQLInputObjectType"}}]),e}();function we(e){var t=se(e.fields);return pe(t)||Object(c.a)(0,"".concat(e.name," fields must be an object with field names as keys or a function which returns such an object.")),Object(s.a)(t,(function(t,n){return!("resolve"in t)||Object(c.a)(0,"".concat(e.name,".").concat(n," field has a resolve property, but Input Types cannot define resolvers.")),{name:n,description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:t.extensions&&Object(l.a)(t.extensions),astNode:t.astNode}}))}function xe(e){return V(e.type)&&void 0===e.defaultValue}Object(m.a)(Oe)},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=Object.freeze({NAME:"Name",DOCUMENT:"Document",OPERATION_DEFINITION:"OperationDefinition",VARIABLE_DEFINITION:"VariableDefinition",SELECTION_SET:"SelectionSet",FIELD:"Field",ARGUMENT:"Argument",FRAGMENT_SPREAD:"FragmentSpread",INLINE_FRAGMENT:"InlineFragment",FRAGMENT_DEFINITION:"FragmentDefinition",VARIABLE:"Variable",INT:"IntValue",FLOAT:"FloatValue",STRING:"StringValue",BOOLEAN:"BooleanValue",NULL:"NullValue",ENUM:"EnumValue",LIST:"ListValue",OBJECT:"ObjectValue",OBJECT_FIELD:"ObjectField",DIRECTIVE:"Directive",NAMED_TYPE:"NamedType",LIST_TYPE:"ListType",NON_NULL_TYPE:"NonNullType",SCHEMA_DEFINITION:"SchemaDefinition",OPERATION_TYPE_DEFINITION:"OperationTypeDefinition",SCALAR_TYPE_DEFINITION:"ScalarTypeDefinition",OBJECT_TYPE_DEFINITION:"ObjectTypeDefinition",FIELD_DEFINITION:"FieldDefinition",INPUT_VALUE_DEFINITION:"InputValueDefinition",INTERFACE_TYPE_DEFINITION:"InterfaceTypeDefinition",UNION_TYPE_DEFINITION:"UnionTypeDefinition",ENUM_TYPE_DEFINITION:"EnumTypeDefinition",ENUM_VALUE_DEFINITION:"EnumValueDefinition",INPUT_OBJECT_TYPE_DEFINITION:"InputObjectTypeDefinition",DIRECTIVE_DEFINITION:"DirectiveDefinition",SCHEMA_EXTENSION:"SchemaExtension",SCALAR_TYPE_EXTENSION:"ScalarTypeExtension",OBJECT_TYPE_EXTENSION:"ObjectTypeExtension",INTERFACE_TYPE_EXTENSION:"InterfaceTypeExtension",UNION_TYPE_EXTENSION:"UnionTypeExtension",ENUM_TYPE_EXTENSION:"EnumTypeExtension",INPUT_OBJECT_TYPE_EXTENSION:"InputObjectTypeExtension"})},function(e,t,n){"use strict";n.d(t,"a",(function(){return v})),n.d(t,"b",(function(){return g}));var r=n(17),i=n(12),o=n(40),a=n(60);function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){for(var n=0;n2)return"[Array]";for(var n=Math.min(10,e.length),r=e.length-n,i=[],o=0;o1&&i.push("... ".concat(r," more items"));return"["+i.join(", ")+"]"}(e,n);return function(e,t){var n=Object.keys(e);if(0===n.length)return"{}";if(t.length>2)return"["+function(e){var t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){var n=e.constructor.name;if("string"==typeof n&&""!==n)return n}return t}(e)+"]";return"{ "+n.map((function(n){return n+": "+a(e[n],t)})).join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"})},function(e,t,n){"use strict";function r(e,t){if(!Boolean(e))throw new Error(t)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"d",(function(){return f})),n.d(t,"b",(function(){return d})),n.d(t,"e",(function(){return h})),n.d(t,"a",(function(){return m})),n.d(t,"c",(function(){return v})),n.d(t,"g",(function(){return g})),n.d(t,"f",(function(){return y}));var r=n(32),i=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},o=n(3),a=n(17),s=n(1),l=n(10),c=n(2),u=n(0);var f=new u.g({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize:function(e){var t=p(e);if("boolean"==typeof t)return t?1:0;var n=t;if("string"==typeof t&&""!==t&&(n=Number(t)),!i(n))throw new c.a("Int cannot represent non-integer value: ".concat(Object(o.a)(t)));if(n>2147483647||n<-2147483648)throw new c.a("Int cannot represent non 32-bit signed integer value: "+Object(o.a)(t));return n},parseValue:function(e){if(!i(e))throw new c.a("Int cannot represent non-integer value: ".concat(Object(o.a)(e)));if(e>2147483647||e<-2147483648)throw new c.a("Int cannot represent non 32-bit signed integer value: ".concat(e));return e},parseLiteral:function(e){if(e.kind!==s.a.INT)throw new c.a("Int cannot represent non-integer value: ".concat(Object(l.a)(e)),e);var t=parseInt(e.value,10);if(t>2147483647||t<-2147483648)throw new c.a("Int cannot represent non 32-bit signed integer value: ".concat(e.value),e);return t}});var d=new u.g({name:"Float",description:"The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).",serialize:function(e){var t=p(e);if("boolean"==typeof t)return t?1:0;var n=t;if("string"==typeof t&&""!==t&&(n=Number(t)),!Object(r.a)(n))throw new c.a("Float cannot represent non numeric value: ".concat(Object(o.a)(t)));return n},parseValue:function(e){if(!Object(r.a)(e))throw new c.a("Float cannot represent non numeric value: ".concat(Object(o.a)(e)));return e},parseLiteral:function(e){if(e.kind!==s.a.FLOAT&&e.kind!==s.a.INT)throw new c.a("Float cannot represent non numeric value: ".concat(Object(l.a)(e)),e);return parseFloat(e.value)}});function p(e){if(Object(a.a)(e)){if("function"==typeof e.valueOf){var t=e.valueOf();if(!Object(a.a)(t))return t}if("function"==typeof e.toJSON)return e.toJSON()}return e}var h=new u.g({name:"String",description:"The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.",serialize:function(e){var t=p(e);if("string"==typeof t)return t;if("boolean"==typeof t)return t?"true":"false";if(Object(r.a)(t))return t.toString();throw new c.a("String cannot represent value: ".concat(Object(o.a)(e)))},parseValue:function(e){if("string"!=typeof e)throw new c.a("String cannot represent a non string value: ".concat(Object(o.a)(e)));return e},parseLiteral:function(e){if(e.kind!==s.a.STRING)throw new c.a("String cannot represent a non string value: ".concat(Object(l.a)(e)),e);return e.value}});var m=new u.g({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize:function(e){var t=p(e);if("boolean"==typeof t)return t;if(Object(r.a)(t))return 0!==t;throw new c.a("Boolean cannot represent a non boolean value: ".concat(Object(o.a)(t)))},parseValue:function(e){if("boolean"!=typeof e)throw new c.a("Boolean cannot represent a non boolean value: ".concat(Object(o.a)(e)));return e},parseLiteral:function(e){if(e.kind!==s.a.BOOLEAN)throw new c.a("Boolean cannot represent a non boolean value: ".concat(Object(l.a)(e)),e);return e.value}});var v=new u.g({name:"ID",description:'The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID.',serialize:function(e){var t=p(e);if("string"==typeof t)return t;if(i(t))return String(t);throw new c.a("ID cannot represent value: ".concat(Object(o.a)(e)))},parseValue:function(e){if("string"==typeof e)return e;if(i(e))return e.toString();throw new c.a("ID cannot represent value: ".concat(Object(o.a)(e)))},parseLiteral:function(e){if(e.kind!==s.a.STRING&&e.kind!==s.a.INT)throw new c.a("ID cannot represent a non-string and non-integer value: "+Object(l.a)(e),e);return e.value}}),g=Object.freeze([h,f,d,m,v]);function y(e){return g.some((function(t){var n=t.name;return e.name===n}))}},function(e,t,n){"use strict";n.r(t),n.d(t,"__Schema",(function(){return f})),n.d(t,"__Directive",(function(){return d})),n.d(t,"__DirectiveLocation",(function(){return p})),n.d(t,"__Type",(function(){return h})),n.d(t,"__Field",(function(){return m})),n.d(t,"__InputValue",(function(){return v})),n.d(t,"__EnumValue",(function(){return g})),n.d(t,"TypeKind",(function(){return y})),n.d(t,"__TypeKind",(function(){return b})),n.d(t,"SchemaMetaFieldDef",(function(){return T})),n.d(t,"TypeMetaFieldDef",(function(){return E})),n.d(t,"TypeNameMetaFieldDef",(function(){return O})),n.d(t,"introspectionTypes",(function(){return w})),n.d(t,"isIntrospectionType",(function(){return x}));var r=n(9),i=n(3),o=n(8),a=n(10),s=n(4),l=n(31),c=n(6),u=n(0),f=new u.f({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:function(){return{description:{type:c.e,resolve:function(e){return e.description}},types:{description:"A list of all types supported by this server.",type:new u.e(new u.d(new u.e(h))),resolve:function(e){return Object(r.a)(e.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new u.e(h),resolve:function(e){return e.getQueryType()}},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:h,resolve:function(e){return e.getMutationType()}},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:h,resolve:function(e){return e.getSubscriptionType()}},directives:{description:"A list of all directives supported by this server.",type:new u.e(new u.d(new u.e(d))),resolve:function(e){return e.getDirectives()}}}}}),d=new u.f({name:"__Directive",description:"A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.\n\nIn some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.",fields:function(){return{name:{type:new u.e(c.e),resolve:function(e){return e.name}},description:{type:c.e,resolve:function(e){return e.description}},isRepeatable:{type:new u.e(c.a),resolve:function(e){return e.isRepeatable}},locations:{type:new u.e(new u.d(new u.e(p))),resolve:function(e){return e.locations}},args:{type:new u.e(new u.d(new u.e(v))),resolve:function(e){return e.args}}}}}),p=new u.a({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:s.a.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:s.a.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:s.a.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:s.a.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:s.a.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:s.a.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:s.a.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:s.a.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:s.a.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:s.a.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:s.a.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:s.a.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:s.a.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:s.a.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:s.a.UNION,description:"Location adjacent to a union definition."},ENUM:{value:s.a.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:s.a.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:s.a.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:s.a.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}}),h=new u.f({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByUrl`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:function(){return{kind:{type:new u.e(b),resolve:function(e){return Object(u.R)(e)?y.SCALAR:Object(u.N)(e)?y.OBJECT:Object(u.H)(e)?y.INTERFACE:Object(u.T)(e)?y.UNION:Object(u.E)(e)?y.ENUM:Object(u.F)(e)?y.INPUT_OBJECT:Object(u.J)(e)?y.LIST:Object(u.L)(e)?y.NON_NULL:void Object(o.a)(0,'Unexpected type: "'.concat(Object(i.a)(e),'".'))}},name:{type:c.e,resolve:function(e){return void 0!==e.name?e.name:void 0}},description:{type:c.e,resolve:function(e){return void 0!==e.description?e.description:void 0}},specifiedByUrl:{type:c.e,resolve:function(e){return void 0!==e.specifiedByUrl?e.specifiedByUrl:void 0}},fields:{type:new u.d(new u.e(m)),args:{includeDeprecated:{type:c.a,defaultValue:!1}},resolve:function(e,t){var n=t.includeDeprecated;if(Object(u.N)(e)||Object(u.H)(e)){var i=Object(r.a)(e.getFields());return n?i:i.filter((function(e){return null==e.deprecationReason}))}}},interfaces:{type:new u.d(new u.e(h)),resolve:function(e){if(Object(u.N)(e)||Object(u.H)(e))return e.getInterfaces()}},possibleTypes:{type:new u.d(new u.e(h)),resolve:function(e,t,n,r){var i=r.schema;if(Object(u.C)(e))return i.getPossibleTypes(e)}},enumValues:{type:new u.d(new u.e(g)),args:{includeDeprecated:{type:c.a,defaultValue:!1}},resolve:function(e,t){var n=t.includeDeprecated;if(Object(u.E)(e)){var r=e.getValues();return n?r:r.filter((function(e){return null==e.deprecationReason}))}}},inputFields:{type:new u.d(new u.e(v)),args:{includeDeprecated:{type:c.a,defaultValue:!1}},resolve:function(e,t){var n=t.includeDeprecated;if(Object(u.F)(e)){var i=Object(r.a)(e.getFields());return n?i:i.filter((function(e){return null==e.deprecationReason}))}}},ofType:{type:h,resolve:function(e){return void 0!==e.ofType?e.ofType:void 0}}}}}),m=new u.f({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:function(){return{name:{type:new u.e(c.e),resolve:function(e){return e.name}},description:{type:c.e,resolve:function(e){return e.description}},args:{type:new u.e(new u.d(new u.e(v))),args:{includeDeprecated:{type:c.a,defaultValue:!1}},resolve:function(e,t){return t.includeDeprecated?e.args:e.args.filter((function(e){return null==e.deprecationReason}))}},type:{type:new u.e(h),resolve:function(e){return e.type}},isDeprecated:{type:new u.e(c.a),resolve:function(e){return null!=e.deprecationReason}},deprecationReason:{type:c.e,resolve:function(e){return e.deprecationReason}}}}}),v=new u.f({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:function(){return{name:{type:new u.e(c.e),resolve:function(e){return e.name}},description:{type:c.e,resolve:function(e){return e.description}},type:{type:new u.e(h),resolve:function(e){return e.type}},defaultValue:{type:c.e,description:"A GraphQL-formatted string representing the default value for this input value.",resolve:function(e){var t=e.type,n=e.defaultValue,r=Object(l.a)(n,t);return r?Object(a.a)(r):null}},isDeprecated:{type:new u.e(c.a),resolve:function(e){return null!=e.deprecationReason}},deprecationReason:{type:c.e,resolve:function(e){return e.deprecationReason}}}}}),g=new u.f({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:function(){return{name:{type:new u.e(c.e),resolve:function(e){return e.name}},description:{type:c.e,resolve:function(e){return e.description}},isDeprecated:{type:new u.e(c.a),resolve:function(e){return null!=e.deprecationReason}},deprecationReason:{type:c.e,resolve:function(e){return e.deprecationReason}}}}}),y=Object.freeze({SCALAR:"SCALAR",OBJECT:"OBJECT",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",INPUT_OBJECT:"INPUT_OBJECT",LIST:"LIST",NON_NULL:"NON_NULL"}),b=new u.a({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:y.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:y.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:y.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:y.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:y.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:y.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:y.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:y.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}}),T={name:"__schema",type:new u.e(f),description:"Access the current type schema of this server.",args:[],resolve:function(e,t,n,r){return r.schema},isDeprecated:!1,deprecationReason:void 0,extensions:void 0,astNode:void 0},E={name:"__type",type:h,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new u.e(c.e),defaultValue:void 0,deprecationReason:void 0,extensions:void 0,astNode:void 0}],resolve:function(e,t,n,r){var i=t.name;return r.schema.getType(i)},isDeprecated:!1,deprecationReason:void 0,extensions:void 0,astNode:void 0},O={name:"__typename",type:new u.e(c.e),description:"The name of the current Object type at runtime.",args:[],resolve:function(e,t,n,r){return r.parentType.name},isDeprecated:!1,deprecationReason:void 0,extensions:void 0,astNode:void 0},w=Object.freeze([f,d,p,h,m,v,g,b]);function x(e){return w.some((function(t){var n=t.name;return e.name===n}))}},function(e,t,n){"use strict";function r(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))};t.a=r},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(20),i=n(28);function o(e){return Object(r.c)(e,{leave:a})}var a={Name:function(e){return e.value},Variable:function(e){return"$"+e.name},Document:function(e){return l(e.definitions,"\n\n")+"\n"},OperationDefinition:function(e){var t=e.operation,n=e.name,r=u("(",l(e.variableDefinitions,", "),")"),i=l(e.directives," "),o=e.selectionSet;return n||i||r||"query"!==t?l([t,l([n,r]),i,o]," "):o},VariableDefinition:function(e){var t=e.variable,n=e.type,r=e.defaultValue,i=e.directives;return t+": "+n+u(" = ",r)+u(" ",l(i," "))},SelectionSet:function(e){return c(e.selections)},Field:function(e){var t=e.alias,n=e.name,r=e.arguments,i=e.directives,o=e.selectionSet,a=u("",t,": ")+n,s=a+u("(",l(r,", "),")");return s.length>80&&(s=a+u("(\n",f(l(r,"\n")),"\n)")),l([s,l(i," "),o]," ")},Argument:function(e){return e.name+": "+e.value},FragmentSpread:function(e){return"..."+e.name+u(" ",l(e.directives," "))},InlineFragment:function(e){var t=e.typeCondition,n=e.directives,r=e.selectionSet;return l(["...",u("on ",t),l(n," "),r]," ")},FragmentDefinition:function(e){var t=e.name,n=e.typeCondition,r=e.variableDefinitions,i=e.directives,o=e.selectionSet;return"fragment ".concat(t).concat(u("(",l(r,", "),")")," ")+"on ".concat(n," ").concat(u("",l(i," ")," "))+o},IntValue:function(e){return e.value},FloatValue:function(e){return e.value},StringValue:function(e,t){var n=e.value;return e.block?Object(i.c)(n,"description"===t?"":" "):JSON.stringify(n)},BooleanValue:function(e){return e.value?"true":"false"},NullValue:function(){return"null"},EnumValue:function(e){return e.value},ListValue:function(e){return"["+l(e.values,", ")+"]"},ObjectValue:function(e){return"{"+l(e.fields,", ")+"}"},ObjectField:function(e){return e.name+": "+e.value},Directive:function(e){return"@"+e.name+u("(",l(e.arguments,", "),")")},NamedType:function(e){return e.name},ListType:function(e){return"["+e.type+"]"},NonNullType:function(e){return e.type+"!"},SchemaDefinition:s((function(e){var t=e.directives,n=e.operationTypes;return l(["schema",l(t," "),c(n)]," ")})),OperationTypeDefinition:function(e){return e.operation+": "+e.type},ScalarTypeDefinition:s((function(e){return l(["scalar",e.name,l(e.directives," ")]," ")})),ObjectTypeDefinition:s((function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return l(["type",t,u("implements ",l(n," & ")),l(r," "),c(i)]," ")})),FieldDefinition:s((function(e){var t=e.name,n=e.arguments,r=e.type,i=e.directives;return t+(p(n)?u("(\n",f(l(n,"\n")),"\n)"):u("(",l(n,", "),")"))+": "+r+u(" ",l(i," "))})),InputValueDefinition:s((function(e){var t=e.name,n=e.type,r=e.defaultValue,i=e.directives;return l([t+": "+n,u("= ",r),l(i," ")]," ")})),InterfaceTypeDefinition:s((function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return l(["interface",t,u("implements ",l(n," & ")),l(r," "),c(i)]," ")})),UnionTypeDefinition:s((function(e){var t=e.name,n=e.directives,r=e.types;return l(["union",t,l(n," "),r&&0!==r.length?"= "+l(r," | "):""]," ")})),EnumTypeDefinition:s((function(e){var t=e.name,n=e.directives,r=e.values;return l(["enum",t,l(n," "),c(r)]," ")})),EnumValueDefinition:s((function(e){return l([e.name,l(e.directives," ")]," ")})),InputObjectTypeDefinition:s((function(e){var t=e.name,n=e.directives,r=e.fields;return l(["input",t,l(n," "),c(r)]," ")})),DirectiveDefinition:s((function(e){var t=e.name,n=e.arguments,r=e.repeatable,i=e.locations;return"directive @"+t+(p(n)?u("(\n",f(l(n,"\n")),"\n)"):u("(",l(n,", "),")"))+(r?" repeatable":"")+" on "+l(i," | ")})),SchemaExtension:function(e){var t=e.directives,n=e.operationTypes;return l(["extend schema",l(t," "),c(n)]," ")},ScalarTypeExtension:function(e){return l(["extend scalar",e.name,l(e.directives," ")]," ")},ObjectTypeExtension:function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return l(["extend type",t,u("implements ",l(n," & ")),l(r," "),c(i)]," ")},InterfaceTypeExtension:function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return l(["extend interface",t,u("implements ",l(n," & ")),l(r," "),c(i)]," ")},UnionTypeExtension:function(e){var t=e.name,n=e.directives,r=e.types;return l(["extend union",t,l(n," "),r&&0!==r.length?"= "+l(r," | "):""]," ")},EnumTypeExtension:function(e){var t=e.name,n=e.directives,r=e.values;return l(["extend enum",t,l(n," "),c(r)]," ")},InputObjectTypeExtension:function(e){var t=e.name,n=e.directives,r=e.fields;return l(["extend input",t,l(n," "),c(r)]," ")}};function s(e){return function(t){return l([t.description,e(t)],"\n")}}function l(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return null!==(t=null==e?void 0:e.filter((function(e){return e})).join(n))&&void 0!==t?t:""}function c(e){return u("{\n",f(l(e,"\n")),"\n}")}function u(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return null!=t&&""!==t?e+t+n:""}function f(e){return u(" ",e.replace(/\n/g,"\n "))}function d(e){return-1!==e.indexOf("\n")}function p(e){return null!=e&&e.some(d)}},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";e.exports=function(){var e=navigator.userAgent,t=navigator.platform,n=/gecko\/\d/i.test(e),r=/MSIE \d/.test(e),i=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),o=/Edge\/(\d+)/.exec(e),a=r||i||o,s=a&&(r?document.documentMode||6:+(o||i)[1]),l=!o&&/WebKit\//.test(e),c=l&&/Qt\/\d+\.\d+/.test(e),u=!o&&/Chrome\//.test(e),f=/Opera\//.test(e),d=/Apple Computer/.test(navigator.vendor),p=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),h=/PhantomJS/.test(e),m=!o&&/AppleWebKit/.test(e)&&/Mobile\/\w+/.test(e),v=/Android/.test(e),g=m||v||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),y=m||/Mac/.test(t),b=/\bCrOS\b/.test(e),T=/win/i.test(t),E=f&&e.match(/Version\/(\d*\.\d*)/);E&&(E=Number(E[1])),E&&E>=15&&(f=!1,l=!0);var O=y&&(c||f&&(null==E||E<12.11)),w=n||a&&s>=9;function x(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var _,k=function(e,t){var n=e.className,r=x(t).exec(n);if(r){var i=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(i?r[1]+i:"")}};function C(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function S(e,t){return C(e).appendChild(t)}function N(e,t,n,r){var i=document.createElement(e);if(n&&(i.className=n),r&&(i.style.cssText=r),"string"==typeof t)i.appendChild(document.createTextNode(t));else if(t)for(var o=0;o=t)return a+(t-o);a+=s-o,a+=n-a%n,o=s+1}}m?F=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:a&&(F=function(e){try{e.select()}catch(e){}});var V=function(){this.id=null,this.f=null,this.time=0,this.handler=M(this.onTimeout,this)};function U(e,t){for(var n=0;n=t)return r+Math.min(a,t-i);if(i+=o-r,r=o+1,(i+=n-i%n)>=t)return r}}var Q=[""];function K(e){for(;Q.length<=e;)Q.push(W(Q)+" ");return Q[e]}function W(e){return e[e.length-1]}function Y(e,t){for(var n=[],r=0;r"€"&&(e.toUpperCase()!=e.toLowerCase()||X.test(e))}function ee(e,t){return t?!!(t.source.indexOf("\\w")>-1&&Z(e))||t.test(e):Z(e)}function te(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var ne=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function re(e){return e.charCodeAt(0)>=768&&ne.test(e)}function ie(e,t,n){for(;(n<0?t>0:tn?-1:1;;){if(t==n)return t;var i=(t+n)/2,o=r<0?Math.ceil(i):Math.floor(i);if(o==t)return e(o)?t:n;e(o)?n=o:t=o+r}}var ae=null;function se(e,t,n){var r;ae=null;for(var i=0;it)return i;o.to==t&&(o.from!=o.to&&"before"==n?r=i:ae=i),o.from==t&&(o.from!=o.to&&"before"!=n?r=i:ae=i)}return null!=r?r:ae}var le=function(){var e=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,t=/[stwN]/,n=/[LRr]/,r=/[Lb1n]/,i=/[1n]/;function o(e,t,n){this.level=e,this.from=t,this.to=n}return function(a,s){var l="ltr"==s?"L":"R";if(0==a.length||"ltr"==s&&!e.test(a))return!1;for(var c,u=a.length,f=[],d=0;d-1&&(r[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function he(e,t){var n=de(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i0}function ye(e){e.prototype.on=function(e,t){fe(this,e,t)},e.prototype.off=function(e,t){pe(this,e,t)}}function be(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Te(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Ee(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function Oe(e){be(e),Te(e)}function we(e){return e.target||e.srcElement}function xe(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),y&&e.ctrlKey&&1==t&&(t=3),t}var _e,ke,Ce=function(){if(a&&s<9)return!1;var e=N("div");return"draggable"in e||"dragDrop"in e}();function Se(e){if(null==_e){var t=N("span","​");S(e,N("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(_e=t.offsetWidth<=1&&t.offsetHeight>2&&!(a&&s<8))}var n=_e?N("span","​"):N("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function Ne(e){if(null!=ke)return ke;var t=S(e,document.createTextNode("AخA")),n=_(t,0,1).getBoundingClientRect(),r=_(t,1,2).getBoundingClientRect();return C(e),!(!n||n.left==n.right)&&(ke=r.right-n.right<3)}var De,Ie=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,n=[],r=e.length;t<=r;){var i=e.indexOf("\n",t);-1==i&&(i=e.length);var o=e.slice(t,"\r"==e.charAt(i-1)?i-1:i),a=o.indexOf("\r");-1!=a?(n.push(o.slice(0,a)),t+=a+1):(n.push(o),t=i+1)}return n}:function(e){return e.split(/\r\n?|\n/)},Ae=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(e){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(e){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},Le="oncopy"in(De=N("div"))||(De.setAttribute("oncopy","return;"),"function"==typeof De.oncopy),je=null,Fe={},Me={};function Re(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Fe[e]=t}function Pe(e){if("string"==typeof e&&Me.hasOwnProperty(e))e=Me[e];else if(e&&"string"==typeof e.name&&Me.hasOwnProperty(e.name)){var t=Me[e.name];"string"==typeof t&&(t={name:t}),(e=$(t,e)).name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Pe("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Pe("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function Ve(e,t){t=Pe(t);var n=Fe[t.name];if(!n)return Ve(e,"text/plain");var r=n(e,t);if(Ue.hasOwnProperty(t.name)){var i=Ue[t.name];for(var o in i)i.hasOwnProperty(o)&&(r.hasOwnProperty(o)&&(r["_"+o]=r[o]),r[o]=i[o])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var a in t.modeProps)r[a]=t.modeProps[a];return r}var Ue={};function Be(e,t){R(t,Ue.hasOwnProperty(e)?Ue[e]:Ue[e]={})}function qe(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var i=t[r];i instanceof Array&&(i=i.concat([])),n[r]=i}return n}function He(e,t){for(var n;e.innerMode&&(n=e.innerMode(t))&&n.mode!=e;)t=n.state,e=n.mode;return n||{mode:e,state:t}}function Ge(e,t,n){return!e.startState||e.startState(t,n)}var ze=function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};function Qe(e,t){if((t-=e.first)<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var n=e;!n.lines;)for(var r=0;;++r){var i=n.children[r],o=i.chunkSize();if(t=e.first&&tn?et(n,Qe(e,n).text.length):function(e,t){var n=e.ch;return null==n||n>t?et(e.line,t):n<0?et(e.line,0):e}(t,Qe(e,t.line).text.length)}function lt(e,t){for(var n=[],r=0;r=this.string.length},ze.prototype.sol=function(){return this.pos==this.lineStart},ze.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},ze.prototype.next=function(){if(this.post},ze.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},ze.prototype.skipToEnd=function(){this.pos=this.string.length},ze.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},ze.prototype.backUp=function(e){this.pos-=e},ze.prototype.column=function(){return this.lastColumnPos0?null:(r&&!1!==t&&(this.pos+=r[0].length),r)}var i=function(e){return n?e.toLowerCase():e};if(i(this.string.substr(this.pos,e.length))==i(e))return!1!==t&&(this.pos+=e.length),!0},ze.prototype.current=function(){return this.string.slice(this.start,this.pos)},ze.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},ze.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},ze.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var ct=function(e,t){this.state=e,this.lookAhead=t},ut=function(e,t,n,r){this.state=t,this.doc=e,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};function ft(e,t,n,r){var i=[e.state.modeGen],o={};Tt(e,t.text,e.doc.mode,n,(function(e,t){return i.push(e,t)}),o,r);for(var a=n.state,s=function(r){n.baseTokens=i;var s=e.state.overlays[r],l=1,c=0;n.state=!0,Tt(e,t.text,s.mode,n,(function(e,t){for(var n=l;ce&&i.splice(l,1,e,i[l+1],r),l+=2,c=Math.min(e,r)}if(t)if(s.opaque)i.splice(n,l-n,e,"overlay "+t),l=n+2;else for(;ne.options.maxHighlightLength&&qe(e.doc.mode,r.state),o=ft(e,t,r);i&&(r.state=i),t.stateAfter=r.save(!i),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function pt(e,t,n){var r=e.doc,i=e.display;if(!r.mode.startState)return new ut(r,!0,t);var o=function(e,t,n){for(var r,i,o=e.doc,a=n?-1:t-(e.doc.mode.innerMode?1e3:100),s=t;s>a;--s){if(s<=o.first)return o.first;var l=Qe(o,s-1),c=l.stateAfter;if(c&&(!n||s+(c instanceof ct?c.lookAhead:0)<=o.modeFrontier))return s;var u=P(l.text,null,e.options.tabSize);(null==i||r>u)&&(i=s-1,r=u)}return i}(e,t,n),a=o>r.first&&Qe(r,o-1).stateAfter,s=a?ut.fromSaved(r,a,o):new ut(r,Ge(r.mode),o);return r.iter(o,t,(function(n){ht(e,n.text,s);var r=s.line;n.stateAfter=r==t-1||r%5==0||r>=i.viewFrom&&rt.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}ut.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},ut.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},ut.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},ut.fromSaved=function(e,t,n){return t instanceof ct?new ut(e,qe(e.mode,t.state),n,t.lookAhead):new ut(e,qe(e.mode,t),n)},ut.prototype.save=function(e){var t=!1!==e?qe(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ct(t,this.maxLookAhead):t};var gt=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function yt(e,t,n,r){var i,o,a=e.doc,s=a.mode,l=Qe(a,(t=st(a,t)).line),c=pt(e,t.line,n),u=new ze(l.text,e.options.tabSize,c);for(r&&(o=[]);(r||u.pose.options.maxHighlightLength?(s=!1,a&&ht(e,t,r,f.pos),f.pos=t.length,l=null):l=bt(vt(n,f,r.state,d),o),d){var p=d[0].name;p&&(l="m-"+(l?p+" "+l:p))}if(!s||u!=l){for(;c=t:o.to>t);(r||(r=[])).push(new wt(a,o.from,s?null:o.to))}}return r}(n,i,a),l=function(e,t,n){var r;if(e)for(var i=0;i=t:o.to>t)||o.from==t&&"bookmark"==a.type&&(!n||o.marker.insertLeft)){var s=null==o.from||(a.inclusiveLeft?o.from<=t:o.from0&&s)for(var b=0;bt)&&(!n||At(n,o.marker)<0)&&(n=o.marker)}return n}function Rt(e,t,n,r,i){var o=Qe(e,t),a=Ot&&o.markedSpans;if(a)for(var s=0;s=0&&f<=0||u<=0&&f>=0)&&(u<=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?tt(c.to,n)>=0:tt(c.to,n)>0)||u>=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?tt(c.from,r)<=0:tt(c.from,r)<0)))return!0}}}function Pt(e){for(var t;t=jt(e);)e=t.find(-1,!0).line;return e}function Vt(e,t){var n=Qe(e,t),r=Pt(n);return n==r?t:Je(r)}function Ut(e,t){if(t>e.lastLine())return t;var n,r=Qe(e,t);if(!Bt(e,r))return t;for(;n=Ft(r);)r=n.find(1,!0).line;return Je(r)+1}function Bt(e,t){var n=Ot&&t.markedSpans;if(n)for(var r=void 0,i=0;it.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)}))}var Qt=function(e,t,n){this.text=e,Nt(this,t),this.height=n?n(this):1};function Kt(e){e.parent=null,St(e)}Qt.prototype.lineNo=function(){return Je(this)},ye(Qt);var Wt={},Yt={};function Jt(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?Yt:Wt;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function $t(e,t){var n=D("span",null,null,l?"padding-right: .1px":null),r={pre:D("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var i=0;i<=(t.rest?t.rest.length:0);i++){var o=i?t.rest[i-1]:t.line,a=void 0;r.pos=0,r.addToken=Zt,Ne(e.display.measure)&&(a=ce(o,e.doc.direction))&&(r.addToken=en(r.addToken,a)),r.map=[],nn(o,r,dt(e,o,t!=e.display.externalMeasured&&Je(o))),o.styleClasses&&(o.styleClasses.bgClass&&(r.bgClass=j(o.styleClasses.bgClass,r.bgClass||"")),o.styleClasses.textClass&&(r.textClass=j(o.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(Se(e.display.measure))),0==i?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(l){var s=r.content.lastChild;(/\bcm-tab\b/.test(s.className)||s.querySelector&&s.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return he(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=j(r.pre.className,r.textClass||"")),r}function Xt(e){var t=N("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function Zt(e,t,n,r,i,o,l){if(t){var c,u=e.splitSpaces?function(e,t){if(e.length>1&&!/ /.test(e))return e;for(var n=t,r="",i=0;ic&&f.from<=c);d++);if(f.to>=u)return e(n,r,i,o,a,s,l);e(n,r.slice(0,f.to-c),i,o,null,s,l),o=null,r=r.slice(f.to-c),c=f.to}}}function tn(e,t,n,r){var i=!r&&n.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!r&&e.cm.display.input.needsContentAttribute&&(i||(i=e.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",n.id)),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function nn(e,t,n){var r=e.markedSpans,i=e.text,o=0;if(r)for(var a,s,l,c,u,f,d,p=i.length,h=0,m=1,v="",g=0;;){if(g==h){l=c=u=s="",d=null,f=null,g=1/0;for(var y=[],b=void 0,T=0;Th||O.collapsed&&E.to==h&&E.from==h)){if(null!=E.to&&E.to!=h&&g>E.to&&(g=E.to,c=""),O.className&&(l+=" "+O.className),O.css&&(s=(s?s+";":"")+O.css),O.startStyle&&E.from==h&&(u+=" "+O.startStyle),O.endStyle&&E.to==g&&(b||(b=[])).push(O.endStyle,E.to),O.title&&((d||(d={})).title=O.title),O.attributes)for(var w in O.attributes)(d||(d={}))[w]=O.attributes[w];O.collapsed&&(!f||At(f.marker,O)<0)&&(f=E)}else E.from>h&&g>E.from&&(g=E.from)}if(b)for(var x=0;x=p)break;for(var k=Math.min(p,g);;){if(v){var C=h+v.length;if(!f){var S=C>k?v.slice(0,k-h):v;t.addToken(t,S,a?a+l:l,u,h+S.length==g?c:"",s,d)}if(C>=k){v=v.slice(k-h),h=k;break}h=C,u=""}v=i.slice(o,o=n[m++]),a=Jt(n[m++],t.cm.options)}}else for(var N=1;Nn)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}function Dn(e,t,n,r){return Ln(e,An(e,t),n,r)}function In(e,t){if(t>=e.display.viewFrom&&t=n.lineN&&t2&&o.push((l.bottom+c.top)/2-n.top)}}o.push(n.bottom-n.top)}}(e,t.view,t.rect),t.hasHeights=!0),(o=function(e,t,n,r){var i,o=Mn(t.map,n,r),l=o.node,c=o.start,u=o.end,f=o.collapse;if(3==l.nodeType){for(var d=0;d<4;d++){for(;c&&re(t.line.text.charAt(o.coverStart+c));)--c;for(;o.coverStart+u1}(e))return t;var n=screen.logicalXDPI/screen.deviceXDPI,r=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*n,right:t.right*n,top:t.top*r,bottom:t.bottom*r}}(e.display.measure,i))}else{var p;c>0&&(f=r="right"),i=e.options.lineWrapping&&(p=l.getClientRects()).length>1?p["right"==r?p.length-1:0]:l.getBoundingClientRect()}if(a&&s<9&&!c&&(!i||!i.left&&!i.right)){var h=l.parentNode.getClientRects()[0];i=h?{left:h.left,right:h.left+ir(e.display),top:h.top,bottom:h.bottom}:Fn}for(var m=i.top-t.rect.top,v=i.bottom-t.rect.top,g=(m+v)/2,y=t.view.measure.heights,b=0;bt)&&(i=(o=l-s)-1,t>=l&&(a="right")),null!=i){if(r=e[c+2],s==l&&n==(r.insertLeft?"left":"right")&&(a=n),"left"==n&&0==i)for(;c&&e[c-2]==e[c-3]&&e[c-1].insertLeft;)r=e[2+(c-=3)],a="left";if("right"==n&&i==l-s)for(;c=0&&(n=e[i]).left==n.right;i--);return n}function Pn(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t=r.text.length?(l=r.text.length,c="before"):l<=0&&(l=0,c="after"),!s)return a("before"==c?l-1:l,"before"==c);function u(e,t,n){return a(n?e-1:e,1==s[t].level!=n)}var f=se(s,l,c),d=ae,p=u(l,f,"before"==c);return null!=d&&(p.other=u(l,d,"before"!=c)),p}function Wn(e,t){var n=0;t=st(e.doc,t),e.options.lineWrapping||(n=ir(e.display)*t.ch);var r=Qe(e.doc,t.line),i=Ht(r)+wn(e.display);return{left:n,right:n,top:i,bottom:i+r.height}}function Yn(e,t,n,r,i){var o=et(e,t,n);return o.xRel=i,r&&(o.outside=r),o}function Jn(e,t,n){var r=e.doc;if((n+=e.display.viewOffset)<0)return Yn(r.first,0,null,-1,-1);var i=$e(r,n),o=r.first+r.size-1;if(i>o)return Yn(r.first+r.size-1,Qe(r,o).text.length,null,1,1);t<0&&(t=0);for(var a=Qe(r,i);;){var s=er(e,a,i,t,n),l=Mt(a,s.ch+(s.xRel>0||s.outside>0?1:0));if(!l)return s;var c=l.find(1);if(c.line==i)return c;a=Qe(r,i=c.line)}}function $n(e,t,n,r){r-=Hn(t);var i=t.text.length,o=oe((function(t){return Ln(e,n,t-1).bottom<=r}),i,0);return{begin:o,end:i=oe((function(t){return Ln(e,n,t).top>r}),o,i)}}function Xn(e,t,n,r){return n||(n=An(e,t)),$n(e,t,n,Gn(e,t,Ln(e,n,r),"line").top)}function Zn(e,t,n,r){return!(e.bottom<=n)&&(e.top>n||(r?e.left:e.right)>t)}function er(e,t,n,r,i){i-=Ht(t);var o=An(e,t),a=Hn(t),s=0,l=t.text.length,c=!0,u=ce(t,e.doc.direction);if(u){var f=(e.options.lineWrapping?nr:tr)(e,t,n,o,u,r,i);s=(c=1!=f.level)?f.from:f.to-1,l=c?f.to:f.from-1}var d,p,h=null,m=null,v=oe((function(t){var n=Ln(e,o,t);return n.top+=a,n.bottom+=a,!!Zn(n,r,i,!1)&&(n.top<=i&&n.left<=r&&(h=t,m=n),!0)}),s,l),g=!1;if(m){var y=r-m.left=T.bottom?1:0}return Yn(n,v=ie(t.text,v,1),p,g,r-d)}function tr(e,t,n,r,i,o,a){var s=oe((function(s){var l=i[s],c=1!=l.level;return Zn(Kn(e,et(n,c?l.to:l.from,c?"before":"after"),"line",t,r),o,a,!0)}),0,i.length-1),l=i[s];if(s>0){var c=1!=l.level,u=Kn(e,et(n,c?l.from:l.to,c?"after":"before"),"line",t,r);Zn(u,o,a,!0)&&u.top>a&&(l=i[s-1])}return l}function nr(e,t,n,r,i,o,a){var s=$n(e,t,r,a),l=s.begin,c=s.end;/\s/.test(t.text.charAt(c-1))&&c--;for(var u=null,f=null,d=0;d=c||p.to<=l)){var h=Ln(e,r,1!=p.level?Math.min(c,p.to)-1:Math.max(l,p.from)).right,m=hm)&&(u=p,f=m)}}return u||(u=i[i.length-1]),u.fromc&&(u={from:u.from,to:c,level:u.level}),u}function rr(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==jn){jn=N("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)jn.appendChild(document.createTextNode("x")),jn.appendChild(N("br"));jn.appendChild(document.createTextNode("x"))}S(e.measure,jn);var n=jn.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),C(e.measure),n||1}function ir(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=N("span","xxxxxxxxxx"),n=N("pre",[t],"CodeMirror-line-like");S(e.measure,n);var r=t.getBoundingClientRect(),i=(r.right-r.left)/10;return i>2&&(e.cachedCharWidth=i),i||10}function or(e){for(var t=e.display,n={},r={},i=t.gutters.clientLeft,o=t.gutters.firstChild,a=0;o;o=o.nextSibling,++a){var s=e.display.gutterSpecs[a].className;n[s]=o.offsetLeft+o.clientLeft+i,r[s]=o.clientWidth}return{fixedPos:ar(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function ar(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function sr(e){var t=rr(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/ir(e.display)-3);return function(i){if(Bt(e.doc,i))return 0;var o=0;if(i.widgets)for(var a=0;a0&&(l=Qe(e.doc,c.line).text).length==c.ch){var u=P(l,l.length,e.options.tabSize)-l.length;c=et(c.line,Math.max(0,Math.round((o-_n(e.display).left)/ir(e.display))-u))}return c}function ur(e,t){if(t>=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var n=e.display.view,r=0;rt)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)Ot&&Vt(e.doc,t)i.viewFrom?pr(e):(i.viewFrom+=r,i.viewTo+=r);else if(t<=i.viewFrom&&n>=i.viewTo)pr(e);else if(t<=i.viewFrom){var o=hr(e,n,n+r,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=r):pr(e)}else if(n>=i.viewTo){var a=hr(e,t,t,-1);a?(i.view=i.view.slice(0,a.index),i.viewTo=a.lineN):pr(e)}else{var s=hr(e,t,t,-1),l=hr(e,n,n+r,1);s&&l?(i.view=i.view.slice(0,s.index).concat(on(e,s.lineN,l.lineN)).concat(i.view.slice(l.index)),i.viewTo+=r):pr(e)}var c=i.externalMeasured;c&&(n=i.lineN&&t=r.viewTo)){var o=r.view[ur(e,t)];if(null!=o.node){var a=o.changes||(o.changes=[]);-1==U(a,n)&&a.push(n)}}}function pr(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function hr(e,t,n,r){var i,o=ur(e,t),a=e.display.view;if(!Ot||n==e.doc.first+e.doc.size)return{index:o,lineN:n};for(var s=e.display.viewFrom,l=0;l0){if(o==a.length-1)return null;i=s+a[o].size-t,o++}else i=s-t;t+=i,n+=i}for(;Vt(e.doc,n)!=n;){if(o==(r<0?0:a.length-1))return null;n+=r*a[o-(r<0?1:0)].size,o+=r}return{index:o,lineN:n}}function mr(e){for(var t=e.display.view,n=0,r=0;r=e.display.viewTo||s.to().linet||t==n&&a.to==t)&&(r(Math.max(a.from,t),Math.min(a.to,n),1==a.level?"rtl":"ltr",o),i=!0)}i||r(t,n,"ltr")}(m,n||0,null==r?d:r,(function(e,t,i,f){var v="ltr"==i,g=p(e,v?"left":"right"),y=p(t-1,v?"right":"left"),b=null==n&&0==e,T=null==r&&t==d,E=0==f,O=!m||f==m.length-1;if(y.top-g.top<=3){var w=(c?T:b)&&O,x=(c?b:T)&&E?s:(v?g:y).left,_=w?l:(v?y:g).right;u(x,g.top,_-x,g.bottom)}else{var k,C,S,N;v?(k=c&&b&&E?s:g.left,C=c?l:h(e,i,"before"),S=c?s:h(t,i,"after"),N=c&&T&&O?l:y.right):(k=c?h(e,i,"before"):s,C=!c&&b&&E?l:g.right,S=!c&&T&&O?s:y.left,N=c?h(t,i,"after"):l),u(k,g.top,C-k,g.bottom),g.bottom0?t.blinker=setInterval((function(){return t.cursorDiv.style.visibility=(n=!n)?"":"hidden"}),e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function Or(e){e.state.focused||(e.display.input.focus(),xr(e))}function wr(e){e.state.delayingBlurEvent=!0,setTimeout((function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,_r(e))}),100)}function xr(e,t){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(he(e,"focus",e,t),e.state.focused=!0,L(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),l&&setTimeout((function(){return e.display.input.reset(!0)}),20)),e.display.input.receivedFocus()),Er(e))}function _r(e,t){e.state.delayingBlurEvent||(e.state.focused&&(he(e,"blur",e,t),e.state.focused=!1,k(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout((function(){e.state.focused||(e.display.shift=!1)}),150))}function kr(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=0;r.005||d<-.005)&&(Ye(i.line,l),Cr(i.line),i.rest))for(var p=0;pe.display.sizerWidth){var h=Math.ceil(c/ir(e.display));h>e.display.maxLineLength&&(e.display.maxLineLength=h,e.display.maxLine=i.line,e.display.maxLineChanged=!0)}}}}function Cr(e){if(e.widgets)for(var t=0;t=a&&(o=$e(t,Ht(Qe(t,l))-e.wrapper.clientHeight),a=l)}return{from:o,to:Math.max(a,o+1)}}function Nr(e,t){var n=e.display,r=rr(e.display);t.top<0&&(t.top=0);var i=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:n.scroller.scrollTop,o=Sn(e),a={};t.bottom-t.top>o&&(t.bottom=t.top+o);var s=e.doc.height+xn(n),l=t.tops-r;if(t.topi+o){var u=Math.min(t.top,(c?s:t.bottom)-o);u!=i&&(a.scrollTop=u)}var f=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft,d=Cn(e)-(e.options.fixedGutter?n.gutters.offsetWidth:0),p=t.right-t.left>d;return p&&(t.right=t.left+d),t.left<10?a.scrollLeft=0:t.leftd+f-3&&(a.scrollLeft=t.right+(p?0:10)-d),a}function Dr(e,t){null!=t&&(Lr(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function Ir(e){Lr(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function Ar(e,t,n){null==t&&null==n||Lr(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function Lr(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,jr(e,Wn(e,t.from),Wn(e,t.to),t.margin))}function jr(e,t,n,r){var i=Nr(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-r,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+r});Ar(e,i.scrollLeft,i.scrollTop)}function Fr(e,t){Math.abs(e.doc.scrollTop-t)<2||(n||li(e,{top:t}),Mr(e,t,!0),n&&li(e),ri(e,100))}function Mr(e,t,n){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),(e.display.scroller.scrollTop!=t||n)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function Rr(e,t,n,r){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r||(e.doc.scrollLeft=t,fi(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function Pr(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+xn(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+kn(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var Vr=function(e,t,n){this.cm=n;var r=this.vert=N("div",[N("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=N("div",[N("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=i.tabIndex=-1,e(r),e(i),fe(r,"scroll",(function(){r.clientHeight&&t(r.scrollTop,"vertical")})),fe(i,"scroll",(function(){i.clientWidth&&t(i.scrollLeft,"horizontal")})),this.checkedZeroWidth=!1,a&&s<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Vr.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0";var i=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+i)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=e.barLeft+"px";var o=e.viewWidth-e.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==r&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:t?r:0}},Vr.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Vr.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Vr.prototype.zeroWidthHack=function(){var e=y&&!p?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new V,this.disableVert=new V},Vr.prototype.enableZeroWidthBar=function(e,t,n){e.style.pointerEvents="auto",t.set(1e3,(function r(){var i=e.getBoundingClientRect();("vert"==n?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1))!=e?e.style.pointerEvents="none":t.set(1e3,r)}))},Vr.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var Ur=function(){};function Br(e,t){t||(t=Pr(e));var n=e.display.barWidth,r=e.display.barHeight;qr(e,t);for(var i=0;i<4&&n!=e.display.barWidth||r!=e.display.barHeight;i++)n!=e.display.barWidth&&e.options.lineWrapping&&kr(e),qr(e,Pr(e)),n=e.display.barWidth,r=e.display.barHeight}function qr(e,t){var n=e.display,r=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}Ur.prototype.update=function(){return{bottom:0,right:0}},Ur.prototype.setScrollLeft=function(){},Ur.prototype.setScrollTop=function(){},Ur.prototype.clear=function(){};var Hr={native:Vr,null:Ur};function Gr(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&k(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Hr[e.options.scrollbarStyle]((function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),fe(t,"mousedown",(function(){e.state.focused&&setTimeout((function(){return e.display.input.focus()}),0)})),t.setAttribute("cm-not-content","true")}),(function(t,n){"horizontal"==n?Rr(e,t):Fr(e,t)}),e),e.display.scrollbars.addClass&&L(e.display.wrapper,e.display.scrollbars.addClass)}var zr=0;function Qr(e){var t;e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++zr},t=e.curOp,an?an.ops.push(t):t.ownsGroup=an={ops:[t],delayedCallbacks:[]}}function Kr(e){var t=e.curOp;t&&function(e,t){var n=e.ownsGroup;if(n)try{!function(e){var t=e.delayedCallbacks,n=0;do{for(;n=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new oi(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Yr(e){e.updatedDisplay=e.mustUpdate&&ai(e.cm,e.update)}function Jr(e){var t=e.cm,n=t.display;e.updatedDisplay&&kr(t),e.barMeasure=Pr(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=Dn(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+kn(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-Cn(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function $r(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft(window.innerHeight||document.documentElement.clientHeight)&&(i=!1),null!=i&&!h){var o=N("div","​",null,"position: absolute;\n top: "+(t.top-n.viewOffset-wn(e.display))+"px;\n height: "+(t.bottom-t.top+kn(e)+n.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(o),o.scrollIntoView(i),e.display.lineSpace.removeChild(o)}}}(t,function(e,t,n,r){var i;null==r&&(r=0),e.options.lineWrapping||t!=n||(n="before"==(t=t.ch?et(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t).sticky?et(t.line,t.ch+1,"before"):t);for(var o=0;o<5;o++){var a=!1,s=Kn(e,t),l=n&&n!=t?Kn(e,n):s,c=Nr(e,i={left:Math.min(s.left,l.left),top:Math.min(s.top,l.top)-r,right:Math.max(s.left,l.left),bottom:Math.max(s.bottom,l.bottom)+r}),u=e.doc.scrollTop,f=e.doc.scrollLeft;if(null!=c.scrollTop&&(Fr(e,c.scrollTop),Math.abs(e.doc.scrollTop-u)>1&&(a=!0)),null!=c.scrollLeft&&(Rr(e,c.scrollLeft),Math.abs(e.doc.scrollLeft-f)>1&&(a=!0)),!a)break}return i}(t,st(r,e.scrollToPos.from),st(r,e.scrollToPos.to),e.scrollToPos.margin));var i=e.maybeHiddenMarkers,o=e.maybeUnhiddenMarkers;if(i)for(var a=0;a=e.display.viewTo)){var n=+new Date+e.options.workTime,r=pt(e,t.highlightFrontier),i=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),(function(o){if(r.line>=e.display.viewFrom){var a=o.styles,s=o.text.length>e.options.maxHighlightLength?qe(t.mode,r.state):null,l=ft(e,o,r,!0);s&&(r.state=s),o.styles=l.styles;var c=o.styleClasses,u=l.classes;u?o.styleClasses=u:c&&(o.styleClasses=null);for(var f=!a||a.length!=o.styles.length||c!=u&&(!c||!u||c.bgClass!=u.bgClass||c.textClass!=u.textClass),d=0;!f&&dn)return ri(e,e.options.workDelay),!0})),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),i.length&&Zr(e,(function(){for(var t=0;t=n.viewFrom&&t.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==mr(e))return!1;di(e)&&(pr(e),t.dims=or(e));var i=r.first+r.size,o=Math.max(t.visible.from-e.options.viewportMargin,r.first),a=Math.min(i,t.visible.to+e.options.viewportMargin);n.viewFroma&&n.viewTo-a<20&&(a=Math.min(i,n.viewTo)),Ot&&(o=Vt(e.doc,o),a=Ut(e.doc,a));var s=o!=n.viewFrom||a!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;!function(e,t,n){var r=e.display;0==r.view.length||t>=r.viewTo||n<=r.viewFrom?(r.view=on(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=on(e,t,r.viewFrom).concat(r.view):r.viewFromn&&(r.view=r.view.slice(0,ur(e,n)))),r.viewTo=n}(e,o,a),n.viewOffset=Ht(Qe(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var c=mr(e);if(!s&&0==c&&!t.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var u=function(e){if(e.hasFocus())return null;var t=A();if(!t||!I(e.display.lineDiv,t))return null;var n={activeElt:t};if(window.getSelection){var r=window.getSelection();r.anchorNode&&r.extend&&I(e.display.lineDiv,r.anchorNode)&&(n.anchorNode=r.anchorNode,n.anchorOffset=r.anchorOffset,n.focusNode=r.focusNode,n.focusOffset=r.focusOffset)}return n}(e);return c>4&&(n.lineDiv.style.display="none"),function(e,t,n){var r=e.display,i=e.options.lineNumbers,o=r.lineDiv,a=o.firstChild;function s(t){var n=t.nextSibling;return l&&y&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),n}for(var c=r.view,u=r.viewFrom,f=0;f-1&&(p=!1),un(e,d,u,n)),p&&(C(d.lineNumber),d.lineNumber.appendChild(document.createTextNode(Ze(e.options,u)))),a=d.node.nextSibling}else{var h=gn(e,d,u,n);o.insertBefore(h,a)}u+=d.size}for(;a;)a=s(a)}(e,n.updateLineNumbers,t.dims),c>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,function(e){if(e&&e.activeElt&&e.activeElt!=A()&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&I(document.body,e.anchorNode)&&I(document.body,e.focusNode))){var t=window.getSelection(),n=document.createRange();n.setEnd(e.anchorNode,e.anchorOffset),n.collapse(!1),t.removeAllRanges(),t.addRange(n),t.extend(e.focusNode,e.focusOffset)}}(u),C(n.cursorDiv),C(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,s&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,ri(e,400)),n.updateLineNumbers=null,!0}function si(e,t){for(var n=t.viewport,r=!0;;r=!1){if(r&&e.options.lineWrapping&&t.oldDisplayWidth!=Cn(e))r&&(t.visible=Sr(e.display,e.doc,n));else if(n&&null!=n.top&&(n={top:Math.min(e.doc.height+xn(e.display)-Sn(e),n.top)}),t.visible=Sr(e.display,e.doc,n),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break;if(!ai(e,t))break;kr(e);var i=Pr(e);vr(e),Br(e,i),ui(e,i),t.force=!1}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function li(e,t){var n=new oi(e,t);if(ai(e,n)){kr(e),si(e,n);var r=Pr(e);vr(e),Br(e,r),ui(e,r),n.finish()}}function ci(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px"}function ui(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+kn(e)+"px"}function fi(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var r=ar(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=r+"px",a=0;as.clientWidth,u=s.scrollHeight>s.clientHeight;if(i&&c||o&&u){if(o&&y&&l)e:for(var d=t.target,p=a.view;d!=s;d=d.parentNode)for(var h=0;h=0&&tt(e,r.to())<=0)return n}return-1};var wi=function(e,t){this.anchor=e,this.head=t};function xi(e,t,n){var r=e&&e.options.selectionsMayTouch,i=t[n];t.sort((function(e,t){return tt(e.from(),t.from())})),n=U(t,i);for(var o=1;o0:l>=0){var c=ot(s.from(),a.from()),u=it(s.to(),a.to()),f=s.empty()?a.from()==a.head:s.from()==s.head;o<=n&&--n,t.splice(--o,2,new wi(f?u:c,f?c:u))}}return new Oi(t,n)}function _i(e,t){return new Oi([new wi(e,t||e)],0)}function ki(e){return e.text?et(e.from.line+e.text.length-1,W(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function Ci(e,t){if(tt(e,t.from)<0)return e;if(tt(e,t.to)<=0)return ki(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=ki(t).ch-t.to.ch),et(n,r)}function Si(e,t){for(var n=[],r=0;r1&&e.remove(s.line+1,h-1),e.insert(s.line+1,g)}ln(e,"change",e,t)}function ji(e,t,n){!function e(r,i,o){if(r.linked)for(var a=0;as-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(o=function(e,t){return t?(Vi(e.done),W(e.done)):e.done.length&&!W(e.done).ranges?W(e.done):e.done.length>1&&!e.done[e.done.length-2].ranges?(e.done.pop(),W(e.done)):void 0}(i,i.lastOp==r)))a=W(o.changes),0==tt(t.from,t.to)&&0==tt(t.from,a.to)?a.to=ki(t):o.changes.push(Pi(e,t));else{var l=W(i.done);for(l&&l.ranges||qi(e.sel,i.done),o={changes:[Pi(e,t)],generation:i.generation},i.done.push(o);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(n),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=s,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=t.origin,a||he(e,"historyAdded")}function Bi(e,t,n,r){var i=e.history,o=r&&r.origin;n==i.lastSelOp||o&&i.lastSelOrigin==o&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==o||function(e,t,n,r){var i=t.charAt(0);return"*"==i||"+"==i&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}(e,o,W(i.done),t))?i.done[i.done.length-1]=t:qi(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=n,r&&!1!==r.clearRedo&&Vi(i.undone)}function qi(e,t){var n=W(t);n&&n.ranges&&n.equals(e)||t.push(e)}function Hi(e,t,n,r){var i=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,r),(function(n){n.markedSpans&&((i||(i=t["spans_"+e.id]={}))[o]=n.markedSpans),++o}))}function Gi(e){if(!e)return null;for(var t,n=0;n-1&&(W(s)[f]=c[f],delete c[f])}}}return r}function Ki(e,t,n,r){if(r){var i=e.anchor;if(n){var o=tt(t,i)<0;o!=tt(n,i)<0?(i=t,t=n):o!=tt(t,n)<0&&(t=n)}return new wi(i,t)}return new wi(n||t,t)}function Wi(e,t,n,r,i){null==i&&(i=e.cm&&(e.cm.display.shift||e.extend)),Zi(e,new Oi([Ki(e.sel.primary(),t,n,i)],0),r)}function Yi(e,t,n){for(var r=[],i=e.cm&&(e.cm.display.shift||e.extend),o=0;o=t.ch:s.to>t.ch))){if(i&&(he(l,"beforeCursorEnter"),l.explicitlyCleared)){if(o.markedSpans){--a;continue}break}if(!l.atomic)continue;if(n){var f=l.find(r<0?1:-1),d=void 0;if((r<0?u:c)&&(f=ao(e,f,-r,f&&f.line==t.line?o:null)),f&&f.line==t.line&&(d=tt(f,n))&&(r<0?d<0:d>0))return io(e,f,t,r,i)}var p=l.find(r<0?-1:1);return(r<0?c:u)&&(p=ao(e,p,r,p.line==t.line?o:null)),p?io(e,p,t,r,i):null}}return t}function oo(e,t,n,r,i){var o=r||1,a=io(e,t,n,o,i)||!i&&io(e,t,n,o,!0)||io(e,t,n,-o,i)||!i&&io(e,t,n,-o,!0);return a||(e.cantEdit=!0,et(e.first,0))}function ao(e,t,n,r){return n<0&&0==t.ch?t.line>e.first?st(e,et(t.line-1)):null:n>0&&t.ch==(r||Qe(e,t.line)).text.length?t.line0)){var u=[l,1],f=tt(c.from,s.from),d=tt(c.to,s.to);(f<0||!a.inclusiveLeft&&!f)&&u.push({from:c.from,to:s.from}),(d>0||!a.inclusiveRight&&!d)&&u.push({from:s.to,to:c.to}),i.splice.apply(i,u),l+=u.length-3}}return i}(e,t.from,t.to);if(r)for(var i=r.length-1;i>=0;--i)uo(e,{from:r[i].from,to:r[i].to,text:i?[""]:t.text,origin:t.origin});else uo(e,t)}}function uo(e,t){if(1!=t.text.length||""!=t.text[0]||0!=tt(t.from,t.to)){var n=Si(e,t);Ui(e,t,n,e.cm?e.cm.curOp.id:NaN),ho(e,t,n,kt(e,t));var r=[];ji(e,(function(e,n){n||-1!=U(r,e.history)||(yo(e.history,t),r.push(e.history)),ho(e,t,null,kt(e,t))}))}}function fo(e,t,n){var r=e.cm&&e.cm.state.suppressEdits;if(!r||n){for(var i,o=e.history,a=e.sel,s="undo"==t?o.done:o.undone,l="undo"==t?o.undone:o.done,c=0;c=0;--p){var h=d(p);if(h)return h.v}}}}function po(e,t){if(0!=t&&(e.first+=t,e.sel=new Oi(Y(e.sel.ranges,(function(e){return new wi(et(e.anchor.line+t,e.anchor.ch),et(e.head.line+t,e.head.ch))})),e.sel.primIndex),e.cm)){fr(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;re.lastLine())){if(t.from.lineo&&(t={from:t.from,to:et(o,Qe(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=Ke(e,t.from,t.to),n||(n=Si(e,t)),e.cm?function(e,t,n){var r=e.doc,i=e.display,o=t.from,a=t.to,s=!1,l=o.line;e.options.lineWrapping||(l=Je(Pt(Qe(r,o.line))),r.iter(l,a.line+1,(function(e){if(e==i.maxLine)return s=!0,!0}))),r.sel.contains(t.from,t.to)>-1&&ve(e),Li(r,t,n,sr(e)),e.options.lineWrapping||(r.iter(l,o.line+t.text.length,(function(e){var t=Gt(e);t>i.maxLineLength&&(i.maxLine=e,i.maxLineLength=t,i.maxLineChanged=!0,s=!1)})),s&&(e.curOp.updateMaxLine=!0)),function(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontiern;r--){var i=Qe(e,r).stateAfter;if(i&&(!(i instanceof ct)||r+i.lookAhead1||!(this.children[0]instanceof To))){var s=[];this.collapse(s),this.children=[new To(s)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t50){for(var a=i.lines.length%25+25,s=a;s10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=0;r0||0==a&&!1!==o.clearWhenEmpty)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=D("span",[o.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(Rt(e,t.line,t,n,o)||t.line!=n.line&&Rt(e,n.line,t,n,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");Ot=!0}o.addToHistory&&Ui(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var s,l=t.line,c=e.cm;if(e.iter(l,n.line+1,(function(e){c&&o.collapsed&&!c.options.lineWrapping&&Pt(e)==c.display.maxLine&&(s=!0),o.collapsed&&l!=t.line&&Ye(e,0),function(e,t){e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],t.marker.attachLine(e)}(e,new wt(o,l==t.line?t.ch:null,l==n.line?n.ch:null)),++l})),o.collapsed&&e.iter(t.line,n.line+1,(function(t){Bt(e,t)&&Ye(t,0)})),o.clearOnEnter&&fe(o,"beforeCursorEnter",(function(){return o.clear()})),o.readOnly&&(Et=!0,(e.history.done.length||e.history.undone.length)&&e.clearHistory()),o.collapsed&&(o.id=++xo,o.atomic=!0),c){if(s&&(c.curOp.updateMaxLine=!0),o.collapsed)fr(c,t.line,n.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var u=t.line;u<=n.line;u++)dr(c,u,"text");o.atomic&&no(c.doc),ln(c,"markerAdded",c,o)}return o}_o.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&Qr(e),ge(this,"clear")){var n=this.find();n&&ln(this,"clear",n.from,n.to)}for(var r=null,i=null,o=0;oe.display.maxLineLength&&(e.display.maxLine=c,e.display.maxLineLength=u,e.display.maxLineChanged=!0)}null!=r&&e&&this.collapsed&&fr(e,r,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&no(e.doc)),e&&ln(e,"markerCleared",e,this,r,i),t&&Kr(e),this.parent&&this.parent.clear()}},_o.prototype.find=function(e,t){var n,r;null==e&&"bookmark"==this.type&&(e=1);for(var i=0;i=0;l--)co(this,r[l]);s?Xi(this,s):this.cm&&Ir(this.cm)})),undo:ni((function(){fo(this,"undo")})),redo:ni((function(){fo(this,"redo")})),undoSelection:ni((function(){fo(this,"undo",!0)})),redoSelection:ni((function(){fo(this,"redo",!0)})),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,r=0;r=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(e,t,n){e=st(this,e),t=st(this,t);var r=[],i=e.line;return this.iter(e.line,t.line+1,(function(o){var a=o.markedSpans;if(a)for(var s=0;s=l.to||null==l.from&&i!=e.line||null!=l.from&&i==t.line&&l.from>=t.ch||n&&!n(l.marker)||r.push(l.marker.parent||l.marker)}++i})),r},getAllMarks:function(){var e=[];return this.iter((function(t){var n=t.markedSpans;if(n)for(var r=0;re)return t=e,!0;e-=o,++n})),st(this,et(n,t))},indexFromPos:function(e){var t=(e=st(this,e)).ch;if(e.linet&&(t=e.from),null!=e.to&&e.to-1)return t.state.draggingText(e),void setTimeout((function(){return t.display.input.focus()}),20);try{var f=e.dataTransfer.getData("Text");if(f){var d;if(t.state.draggingText&&!t.state.draggingText.copy&&(d=t.listSelections()),eo(t.doc,_i(n,n)),d)for(var p=0;p=0;t--)mo(e.doc,"",r[t].from,r[t].to,"+delete");Ir(e)}))}function Xo(e,t,n){var r=ie(e.text,t+n,n);return r<0||r>e.text.length?null:r}function Zo(e,t,n){var r=Xo(e,t.ch,n);return null==r?null:new et(t.line,r,n<0?"after":"before")}function ea(e,t,n,r,i){if(e){"rtl"==t.doc.direction&&(i=-i);var o=ce(n,t.doc.direction);if(o){var a,s=i<0?W(o):o[0],l=i<0==(1==s.level)?"after":"before";if(s.level>0||"rtl"==t.doc.direction){var c=An(t,n);a=i<0?n.text.length-1:0;var u=Ln(t,c,a).top;a=oe((function(e){return Ln(t,c,e).top==u}),i<0==(1==s.level)?s.from:s.to-1,a),"before"==l&&(a=Xo(n,a,1))}else a=i<0?s.to:s.from;return new et(r,a,l)}}return new et(r,i<0?n.text.length:0,i<0?"before":"after")}Ho.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Ho.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Ho.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Ho.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Ho.default=y?Ho.macDefault:Ho.pcDefault;var ta={selectAll:so,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),q)},killLine:function(e){return $o(e,(function(t){if(t.empty()){var n=Qe(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line0)i=new et(i.line,i.ch+1),e.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),et(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var a=Qe(e.doc,i.line-1).text;a&&(i=new et(i.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+a.charAt(a.length-1),et(i.line-1,a.length-1),i,"+transpose"))}n.push(new wi(i,i))}e.setSelections(n)}))},newlineAndIndent:function(e){return Zr(e,(function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange(e.doc.lineSeparator(),t[n].anchor,t[n].head,"+input");t=e.listSelections();for(var r=0;r-1&&(tt((i=c.ranges[i]).from(),t)<0||t.xRel>0)&&(tt(i.to(),t)>0||t.xRel<0)?function(e,t,n,r){var i=e.display,o=!1,c=ei(e,(function(t){l&&(i.scroller.draggable=!1),e.state.draggingText=!1,pe(i.wrapper.ownerDocument,"mouseup",c),pe(i.wrapper.ownerDocument,"mousemove",u),pe(i.scroller,"dragstart",f),pe(i.scroller,"drop",c),o||(be(t),r.addNew||Wi(e.doc,n,null,null,r.extend),l&&!d||a&&9==s?setTimeout((function(){i.wrapper.ownerDocument.body.focus({preventScroll:!0}),i.input.focus()}),20):i.input.focus())})),u=function(e){o=o||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},f=function(){return o=!0};l&&(i.scroller.draggable=!0),e.state.draggingText=c,c.copy=!r.moveOnDrag,i.scroller.dragDrop&&i.scroller.dragDrop(),fe(i.wrapper.ownerDocument,"mouseup",c),fe(i.wrapper.ownerDocument,"mousemove",u),fe(i.scroller,"dragstart",f),fe(i.scroller,"drop",c),wr(e),setTimeout((function(){return i.input.focus()}),20)}(e,r,t,o):function(e,t,n,r){var i=e.display,o=e.doc;be(t);var a,s,l=o.sel,c=l.ranges;if(r.addNew&&!r.extend?(s=o.sel.contains(n),a=s>-1?c[s]:new wi(n,n)):(a=o.sel.primary(),s=o.sel.primIndex),"rectangle"==r.unit)r.addNew||(a=new wi(n,n)),n=cr(e,t,!0,!0),s=-1;else{var u=ga(e,n,r.unit);a=r.extend?Ki(a,u.anchor,u.head,r.extend):u}r.addNew?-1==s?(s=c.length,Zi(o,xi(e,c.concat([a]),s),{scroll:!1,origin:"*mouse"})):c.length>1&&c[s].empty()&&"char"==r.unit&&!r.extend?(Zi(o,xi(e,c.slice(0,s).concat(c.slice(s+1)),0),{scroll:!1,origin:"*mouse"}),l=o.sel):Ji(o,s,a,H):(s=0,Zi(o,new Oi([a],0),H),l=o.sel);var f=n;function d(t){if(0!=tt(f,t))if(f=t,"rectangle"==r.unit){for(var i=[],c=e.options.tabSize,u=P(Qe(o,n.line).text,n.ch,c),d=P(Qe(o,t.line).text,t.ch,c),p=Math.min(u,d),h=Math.max(u,d),m=Math.min(n.line,t.line),v=Math.min(e.lastLine(),Math.max(n.line,t.line));m<=v;m++){var g=Qe(o,m).text,y=z(g,p,c);p==h?i.push(new wi(et(m,y),et(m,y))):g.length>y&&i.push(new wi(et(m,y),et(m,z(g,h,c))))}i.length||i.push(new wi(n,n)),Zi(o,xi(e,l.ranges.slice(0,s).concat(i),s),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var b,T=a,E=ga(e,t,r.unit),O=T.anchor;tt(E.anchor,O)>0?(b=E.head,O=ot(T.from(),E.anchor)):(b=E.anchor,O=it(T.to(),E.head));var w=l.ranges.slice(0);w[s]=function(e,t){var n=t.anchor,r=t.head,i=Qe(e.doc,n.line);if(0==tt(n,r)&&n.sticky==r.sticky)return t;var o=ce(i);if(!o)return t;var a=se(o,n.ch,n.sticky),s=o[a];if(s.from!=n.ch&&s.to!=n.ch)return t;var l,c=a+(s.from==n.ch==(1!=s.level)?0:1);if(0==c||c==o.length)return t;if(r.line!=n.line)l=(r.line-n.line)*("ltr"==e.doc.direction?1:-1)>0;else{var u=se(o,r.ch,r.sticky),f=u-a||(r.ch-n.ch)*(1==s.level?-1:1);l=u==c-1||u==c?f<0:f>0}var d=o[c+(l?-1:0)],p=l==(1==d.level),h=p?d.from:d.to,m=p?"after":"before";return n.ch==h&&n.sticky==m?t:new wi(new et(n.line,h,m),r)}(e,new wi(st(o,O),b)),Zi(o,xi(e,w,s),H)}}var p=i.wrapper.getBoundingClientRect(),h=0;function m(t){e.state.selectingText=!1,h=1/0,t&&(be(t),i.input.focus()),pe(i.wrapper.ownerDocument,"mousemove",v),pe(i.wrapper.ownerDocument,"mouseup",g),o.history.lastSelOrigin=null}var v=ei(e,(function(t){0!==t.buttons&&xe(t)?function t(n){var a=++h,s=cr(e,n,!0,"rectangle"==r.unit);if(s)if(0!=tt(s,f)){e.curOp.focus=A(),d(s);var l=Sr(i,o);(s.line>=l.to||s.linep.bottom?20:0;c&&setTimeout(ei(e,(function(){h==a&&(i.scroller.scrollTop+=c,t(n))})),50)}}(t):m(t)})),g=ei(e,m);e.state.selectingText=g,fe(i.wrapper.ownerDocument,"mousemove",v),fe(i.wrapper.ownerDocument,"mouseup",g)}(e,r,t,o)}(t,r,o,e):we(e)==n.scroller&&be(e):2==i?(r&&Wi(t.doc,r),setTimeout((function(){return n.input.focus()}),20)):3==i&&(w?t.display.input.onContextMenu(e):wr(t)))}}function ga(e,t,n){if("char"==n)return new wi(t,t);if("word"==n)return e.findWordAt(t);if("line"==n)return new wi(et(t.line,0),st(e.doc,et(t.line+1,0)));var r=n(e,t);return new wi(r.from,r.to)}function ya(e,t,n,r){var i,o;if(t.touches)i=t.touches[0].clientX,o=t.touches[0].clientY;else try{i=t.clientX,o=t.clientY}catch(e){return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&be(t);var a=e.display,s=a.lineDiv.getBoundingClientRect();if(o>s.bottom||!ge(e,n))return Ee(t);o-=s.top-a.viewOffset;for(var l=0;l=i)return he(e,n,e,$e(e.doc,o),e.display.gutterSpecs[l].className,t),Ee(t)}}function ba(e,t){return ya(e,t,"gutterClick",!0)}function Ta(e,t){On(e.display,t)||function(e,t){return!!ge(e,"gutterContextMenu")&&ya(e,t,"gutterContextMenu",!1)}(e,t)||me(e,t,"contextmenu")||w||e.display.input.onContextMenu(t)}function Ea(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Un(e)}ma.prototype.compare=function(e,t,n){return this.time+400>e&&0==tt(t,this.pos)&&n==this.button};var Oa={toString:function(){return"CodeMirror.Init"}},wa={},xa={};function _a(e,t,n){if(!t!=!(n&&n!=Oa)){var r=e.display.dragFunctions,i=t?fe:pe;i(e.display.scroller,"dragstart",r.start),i(e.display.scroller,"dragenter",r.enter),i(e.display.scroller,"dragover",r.over),i(e.display.scroller,"dragleave",r.leave),i(e.display.scroller,"drop",r.drop)}}function ka(e){e.options.lineWrapping?(L(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(k(e.display.wrapper,"CodeMirror-wrap"),zt(e)),lr(e),fr(e),Un(e),setTimeout((function(){return Br(e)}),100)}function Ca(e,t){var n=this;if(!(this instanceof Ca))return new Ca(e,t);this.options=t=t?R(t):{},R(wa,t,!1);var r=t.value;"string"==typeof r?r=new Io(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var i=new Ca.inputStyles[t.inputStyle](this),o=this.display=new vi(e,r,i,t);for(var c in o.wrapper.CodeMirror=this,Ea(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Gr(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new V,keySeq:null,specialChars:null},t.autofocus&&!g&&o.input.focus(),a&&s<11&&setTimeout((function(){return n.display.input.reset(!0)}),20),function(e){var t=e.display;fe(t.scroller,"mousedown",ei(e,va)),fe(t.scroller,"dblclick",a&&s<11?ei(e,(function(t){if(!me(e,t)){var n=cr(e,t);if(n&&!ba(e,t)&&!On(e.display,t)){be(t);var r=e.findWordAt(n);Wi(e.doc,r.anchor,r.head)}}})):function(t){return me(e,t)||be(t)}),fe(t.scroller,"contextmenu",(function(t){return Ta(e,t)})),fe(t.input.getField(),"contextmenu",(function(n){t.scroller.contains(n.target)||Ta(e,n)}));var n,r={end:0};function i(){t.activeTouch&&(n=setTimeout((function(){return t.activeTouch=null}),1e3),(r=t.activeTouch).end=+new Date)}function o(e,t){if(null==t.left)return!0;var n=t.left-e.left,r=t.top-e.top;return n*n+r*r>400}fe(t.scroller,"touchstart",(function(i){if(!me(e,i)&&!function(e){if(1!=e.touches.length)return!1;var t=e.touches[0];return t.radiusX<=1&&t.radiusY<=1}(i)&&!ba(e,i)){t.input.ensurePolled(),clearTimeout(n);var o=+new Date;t.activeTouch={start:o,moved:!1,prev:o-r.end<=300?r:null},1==i.touches.length&&(t.activeTouch.left=i.touches[0].pageX,t.activeTouch.top=i.touches[0].pageY)}})),fe(t.scroller,"touchmove",(function(){t.activeTouch&&(t.activeTouch.moved=!0)})),fe(t.scroller,"touchend",(function(n){var r=t.activeTouch;if(r&&!On(t,n)&&null!=r.left&&!r.moved&&new Date-r.start<300){var a,s=e.coordsChar(t.activeTouch,"page");a=!r.prev||o(r,r.prev)?new wi(s,s):!r.prev.prev||o(r,r.prev.prev)?e.findWordAt(s):new wi(et(s.line,0),st(e.doc,et(s.line+1,0))),e.setSelection(a.anchor,a.head),e.focus(),be(n)}i()})),fe(t.scroller,"touchcancel",i),fe(t.scroller,"scroll",(function(){t.scroller.clientHeight&&(Fr(e,t.scroller.scrollTop),Rr(e,t.scroller.scrollLeft,!0),he(e,"scroll",e))})),fe(t.scroller,"mousewheel",(function(t){return Ei(e,t)})),fe(t.scroller,"DOMMouseScroll",(function(t){return Ei(e,t)})),fe(t.wrapper,"scroll",(function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0})),t.dragFunctions={enter:function(t){me(e,t)||Oe(t)},over:function(t){me(e,t)||(function(e,t){var n=cr(e,t);if(n){var r=document.createDocumentFragment();yr(e,n,r),e.display.dragCursor||(e.display.dragCursor=N("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),S(e.display.dragCursor,r)}}(e,t),Oe(t))},start:function(t){return function(e,t){if(a&&(!e.state.draggingText||+new Date-Ao<100))Oe(t);else if(!me(e,t)&&!On(e.display,t)&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!d)){var n=N("img",null,null,"position: fixed; left: 0; top: 0;");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",f&&(n.width=n.height=1,e.display.wrapper.appendChild(n),n._top=n.offsetTop),t.dataTransfer.setDragImage(n,0,0),f&&n.parentNode.removeChild(n)}}(e,t)},drop:ei(e,Lo),leave:function(t){me(e,t)||jo(e)}};var l=t.input.getField();fe(l,"keyup",(function(t){return fa.call(e,t)})),fe(l,"keydown",ei(e,ua)),fe(l,"keypress",ei(e,da)),fe(l,"focus",(function(t){return xr(e,t)})),fe(l,"blur",(function(t){return _r(e,t)}))}(this),Ro(),Qr(this),this.curOp.forceUpdate=!0,Fi(this,r),t.autofocus&&!g||this.hasFocus()?setTimeout(M(xr,this),20):_r(this),xa)xa.hasOwnProperty(c)&&xa[c](this,t[c],Oa);di(this),t.finishInit&&t.finishInit(this);for(var u=0;u150)){if(!r)return;n="prev"}}else c=0,n="not";"prev"==n?c=t>o.first?P(Qe(o,t-1).text,null,a):0:"add"==n?c=l+e.options.indentUnit:"subtract"==n?c=l-e.options.indentUnit:"number"==typeof n&&(c=l+n),c=Math.max(0,c);var f="",d=0;if(e.options.indentWithTabs)for(var p=Math.floor(c/a);p;--p)d+=a,f+="\t";if(da,l=Ie(t),c=null;if(s&&r.ranges.length>1)if(Da&&Da.text.join("\n")==t){if(r.ranges.length%Da.text.length==0){c=[];for(var u=0;u=0;d--){var p=r.ranges[d],h=p.from(),m=p.to();p.empty()&&(n&&n>0?h=et(h.line,h.ch-n):e.state.overwrite&&!s?m=et(m.line,Math.min(Qe(o,m.line).text.length,m.ch+W(l).length)):s&&Da&&Da.lineWise&&Da.text.join("\n")==l.join("\n")&&(h=m=et(h.line,0)));var v={from:h,to:m,text:c?c[d%c.length]:l,origin:i||(s?"paste":e.state.cutIncoming>a?"cut":"+input")};co(e.doc,v),ln(e,"inputRead",e,v)}t&&!s&&ja(e,t),Ir(e),e.curOp.updateInput<2&&(e.curOp.updateInput=f),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function La(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||Zr(t,(function(){return Aa(t,n,0,null,"paste")})),!0}function ja(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var n=e.doc.sel,r=n.ranges.length-1;r>=0;r--){var i=n.ranges[r];if(!(i.head.ch>100||r&&n.ranges[r-1].head.line==i.head.line)){var o=e.getModeAt(i.head),a=!1;if(o.electricChars){for(var s=0;s-1){a=Na(e,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(Qe(e.doc,i.head.line).text.slice(0,i.head.ch))&&(a=Na(e,i.head.line,"smart"));a&&ln(e,"electricInput",e,i.head.line)}}}function Fa(e){for(var t=[],n=[],r=0;r=t.text.length?(n.ch=t.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var o=se(i,n.ch,n.sticky),a=i[o];if("ltr"==e.doc.direction&&a.level%2==0&&(r>0?a.to>n.ch:a.from=a.from&&d>=u.begin)){var p=f?"before":"after";return new et(n.line,d,p)}}var h=function(e,t,r){for(var o=function(e,t){return t?new et(n.line,l(e,1),"before"):new et(n.line,e,"after")};e>=0&&e0==(1!=a.level),c=s?r.begin:l(r.end,-1);if(a.from<=c&&c0?u.end:l(u.begin,-1);return null==v||r>0&&v==t.text.length||!(m=h(r>0?0:i.length-1,r,c(v)))?null:m}(e.cm,s,t,n):Zo(s,t,n))){if(r||(a=t.line+l)=e.first+e.size||(t=new et(a,t.ch,t.sticky),!(s=Qe(e,a))))return!1;t=ea(i,e.cm,s,t.line,l)}else t=o;return!0}if("char"==r)c();else if("column"==r)c(!0);else if("word"==r||"group"==r)for(var u=null,f="group"==r,d=e.cm&&e.cm.getHelper(t,"wordChars"),p=!0;!(n<0)||c(!p);p=!1){var h=s.text.charAt(t.ch)||"\n",m=ee(h,d)?"w":f&&"\n"==h?"n":!f||/\s/.test(h)?null:"p";if(!f||p||m||(m="s"),u&&u!=m){n<0&&(n=1,c(),t.sticky="after");break}if(m&&(u=m),n>0&&!c(!p))break}var v=oo(e,t,o,a,!0);return nt(o,v)&&(v.hitSide=!0),v}function Va(e,t,n,r){var i,o,a=e.doc,s=t.left;if("page"==r){var l=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),c=Math.max(l-.5*rr(e.display),3);i=(n>0?t.bottom:t.top)+n*c}else"line"==r&&(i=n>0?t.bottom+3:t.top-3);for(;(o=Jn(e,s,i)).outside;){if(n<0?i<=0:i>=a.height){o.hitSide=!0;break}i+=5*n}return o}var Ua=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new V,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function Ba(e,t){var n=In(e,t.line);if(!n||n.hidden)return null;var r=Qe(e.doc,t.line),i=Nn(n,r,t.line),o=ce(r,e.doc.direction),a="left";o&&(a=se(o,t.ch)%2?"right":"left");var s=Mn(i.map,t.ch,a);return s.offset="right"==s.collapse?s.end:s.start,s}function qa(e,t){return t&&(e.bad=!0),e}function Ha(e,t,n){var r;if(t==e.display.lineDiv){if(!(r=e.display.lineDiv.childNodes[n]))return qa(e.clipPos(et(e.display.viewTo-1)),!0);t=null,n=0}else for(r=t;;r=r.parentNode){if(!r||r==e.display.lineDiv)return null;if(r.parentNode&&r.parentNode==e.display.lineDiv)break}for(var i=0;i=t.display.viewTo||o.line=t.display.viewFrom&&Ba(t,i)||{node:l[0].measure.map[2],offset:0},u=o.liner.firstLine()&&(a=et(a.line-1,Qe(r.doc,a.line-1).length)),s.ch==Qe(r.doc,s.line).text.length&&s.linei.viewTo-1)return!1;a.line==i.viewFrom||0==(e=ur(r,a.line))?(t=Je(i.view[0].line),n=i.view[0].node):(t=Je(i.view[e].line),n=i.view[e-1].node.nextSibling);var l,c,u=ur(r,s.line);if(u==i.view.length-1?(l=i.viewTo-1,c=i.lineDiv.lastChild):(l=Je(i.view[u+1].line)-1,c=i.view[u+1].node.previousSibling),!n)return!1;for(var f=r.doc.splitLines(function(e,t,n,r,i){var o="",a=!1,s=e.doc.lineSeparator(),l=!1;function c(){a&&(o+=s,l&&(o+=s),a=l=!1)}function u(e){e&&(c(),o+=e)}function f(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(n)return void u(n);var o,d=t.getAttribute("cm-marker");if(d){var p=e.findMarks(et(r,0),et(i+1,0),(v=+d,function(e){return e.id==v}));return void(p.length&&(o=p[0].find(0))&&u(Ke(e.doc,o.from,o.to).join(s)))}if("false"==t.getAttribute("contenteditable"))return;var h=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&0==t.textContent.length)return;h&&c();for(var m=0;m1&&d.length>1;)if(W(f)==W(d))f.pop(),d.pop(),l--;else{if(f[0]!=d[0])break;f.shift(),d.shift(),t++}for(var p=0,h=0,m=f[0],v=d[0],g=Math.min(m.length,v.length);pa.ch&&y.charCodeAt(y.length-h-1)==b.charCodeAt(b.length-h-1);)p--,h++;f[f.length-1]=y.slice(0,y.length-h).replace(/^\u200b+/,""),f[0]=f[0].slice(p).replace(/\u200b+$/,"");var E=et(t,p),O=et(l,d.length?W(d).length-h:0);return f.length>1||f[0]||tt(E,O)?(mo(r.doc,f,E,O,"+input"),!0):void 0},Ua.prototype.ensurePolled=function(){this.forceCompositionEnd()},Ua.prototype.reset=function(){this.forceCompositionEnd()},Ua.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Ua.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout((function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()}),80))},Ua.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||Zr(this.cm,(function(){return fr(e.cm)}))},Ua.prototype.setUneditable=function(e){e.contentEditable="false"},Ua.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||ei(this.cm,Aa)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},Ua.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},Ua.prototype.onContextMenu=function(){},Ua.prototype.resetPosition=function(){},Ua.prototype.needsContentAttribute=!0;var za=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new V,this.hasSelection=!1,this.composing=null};za.prototype.init=function(e){var t=this,n=this,r=this.cm;this.createField(e);var i=this.textarea;function o(e){if(!me(r,e)){if(r.somethingSelected())Ia({lineWise:!1,text:r.getSelections()});else{if(!r.options.lineWiseCopyCut)return;var t=Fa(r);Ia({lineWise:!0,text:t.text}),"cut"==e.type?r.setSelections(t.ranges,null,q):(n.prevInput="",i.value=t.text.join("\n"),F(i))}"cut"==e.type&&(r.state.cutIncoming=+new Date)}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),m&&(i.style.width="0px"),fe(i,"input",(function(){a&&s>=9&&t.hasSelection&&(t.hasSelection=null),n.poll()})),fe(i,"paste",(function(e){me(r,e)||La(e,r)||(r.state.pasteIncoming=+new Date,n.fastPoll())})),fe(i,"cut",o),fe(i,"copy",o),fe(e.scroller,"paste",(function(t){if(!On(e,t)&&!me(r,t)){if(!i.dispatchEvent)return r.state.pasteIncoming=+new Date,void n.focus();var o=new Event("paste");o.clipboardData=t.clipboardData,i.dispatchEvent(o)}})),fe(e.lineSpace,"selectstart",(function(t){On(e,t)||be(t)})),fe(i,"compositionstart",(function(){var e=r.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:e,range:r.markText(e,r.getCursor("to"),{className:"CodeMirror-composing"})}})),fe(i,"compositionend",(function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)}))},za.prototype.createField=function(e){this.wrapper=Ra(),this.textarea=this.wrapper.firstChild},za.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},za.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=gr(e);if(e.options.moveInputWithCursor){var i=Kn(e,n.sel.primary().head,"div"),o=t.wrapper.getBoundingClientRect(),a=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+a.top-o.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+a.left-o.left))}return r},za.prototype.showSelection=function(e){var t=this.cm.display;S(t.cursorDiv,e.cursors),S(t.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},za.prototype.reset=function(e){if(!this.contextMenuPending&&!this.composing){var t=this.cm;if(t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n,t.state.focused&&F(this.textarea),a&&s>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",a&&s>=9&&(this.hasSelection=null))}},za.prototype.getField=function(){return this.textarea},za.prototype.supportsTouch=function(){return!1},za.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!g||A()!=this.textarea))try{this.textarea.focus()}catch(e){}},za.prototype.blur=function(){this.textarea.blur()},za.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},za.prototype.receivedFocus=function(){this.slowPoll()},za.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,(function(){e.poll(),e.cm.state.focused&&e.slowPoll()}))},za.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0,t.polling.set(20,(function n(){t.poll()||e?(t.pollingFast=!1,t.slowPoll()):(e=!0,t.polling.set(60,n))}))},za.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||!t.state.focused||Ae(n)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var i=n.value;if(i==r&&!t.somethingSelected())return!1;if(a&&s>=9&&this.hasSelection===i||y&&/[\uf700-\uf7ff]/.test(i))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=i.charCodeAt(0);if(8203!=o||r||(r="​"),8666==o)return this.reset(),this.cm.execCommand("undo")}for(var l=0,c=Math.min(r.length,i.length);l1e3||i.indexOf("\n")>-1?n.value=e.prevInput="":e.prevInput=i,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))})),!0},za.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},za.prototype.onKeyPress=function(){a&&s>=9&&(this.hasSelection=null),this.fastPoll()},za.prototype.onContextMenu=function(e){var t=this,n=t.cm,r=n.display,i=t.textarea;t.contextMenuPending&&t.contextMenuPending();var o=cr(n,e),c=r.scroller.scrollTop;if(o&&!f){n.options.resetSelectionOnContextMenu&&-1==n.doc.sel.contains(o)&&ei(n,Zi)(n.doc,_i(o),q);var u,d=i.style.cssText,p=t.wrapper.style.cssText,h=t.wrapper.offsetParent.getBoundingClientRect();if(t.wrapper.style.cssText="position: static",i.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(e.clientY-h.top-5)+"px; left: "+(e.clientX-h.left-5)+"px;\n z-index: 1000; background: "+(a?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",l&&(u=window.scrollY),r.input.focus(),l&&window.scrollTo(null,u),r.input.reset(),n.somethingSelected()||(i.value=t.prevInput=" "),t.contextMenuPending=g,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll),a&&s>=9&&v(),w){Oe(e);var m=function(){pe(window,"mouseup",m),setTimeout(g,20)};fe(window,"mouseup",m)}else setTimeout(g,50)}function v(){if(null!=i.selectionStart){var e=n.somethingSelected(),o="​"+(e?i.value:"");i.value="⇚",i.value=o,t.prevInput=e?"":"​",i.selectionStart=1,i.selectionEnd=o.length,r.selForContextMenu=n.doc.sel}}function g(){if(t.contextMenuPending==g&&(t.contextMenuPending=!1,t.wrapper.style.cssText=p,i.style.cssText=d,a&&s<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=c),null!=i.selectionStart)){(!a||a&&s<9)&&v();var e=0,o=function(){r.selForContextMenu==n.doc.sel&&0==i.selectionStart&&i.selectionEnd>0&&"​"==t.prevInput?ei(n,so)(n):e++<10?r.detectingSelectAll=setTimeout(o,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(o,200)}}},za.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e},za.prototype.setUneditable=function(){},za.prototype.needsContentAttribute=!1,function(e){var t=e.optionHandlers;function n(n,r,i,o){e.defaults[n]=r,i&&(t[n]=o?function(e,t,n){n!=Oa&&i(e,t,n)}:i)}e.defineOption=n,e.Init=Oa,n("value","",(function(e,t){return e.setValue(t)}),!0),n("mode",null,(function(e,t){e.doc.modeOption=t,Di(e)}),!0),n("indentUnit",2,Di,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,(function(e){Ii(e),Un(e),fr(e)}),!0),n("lineSeparator",null,(function(e,t){if(e.doc.lineSep=t,t){var n=[],r=e.doc.first;e.doc.iter((function(e){for(var i=0;;){var o=e.text.indexOf(t,i);if(-1==o)break;i=o+t.length,n.push(et(r,o))}r++}));for(var i=n.length-1;i>=0;i--)mo(e.doc,t,n[i],et(n[i].line,n[i].ch+t.length))}})),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,(function(e,t,n){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),n!=Oa&&e.refresh()})),n("specialCharPlaceholder",Xt,(function(e){return e.refresh()}),!0),n("electricChars",!0),n("inputStyle",g?"contenteditable":"textarea",(function(){throw new Error("inputStyle can not (yet) be changed in a running editor")}),!0),n("spellcheck",!1,(function(e,t){return e.getInputField().spellcheck=t}),!0),n("autocorrect",!1,(function(e,t){return e.getInputField().autocorrect=t}),!0),n("autocapitalize",!1,(function(e,t){return e.getInputField().autocapitalize=t}),!0),n("rtlMoveVisually",!T),n("wholeLineUpdateBefore",!0),n("theme","default",(function(e){Ea(e),mi(e)}),!0),n("keyMap","default",(function(e,t,n){var r=Jo(t),i=n!=Oa&&Jo(n);i&&i.detach&&i.detach(e,r),r.attach&&r.attach(e,i||null)})),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,ka,!0),n("gutters",[],(function(e,t){e.display.gutterSpecs=pi(t,e.options.lineNumbers),mi(e)}),!0),n("fixedGutter",!0,(function(e,t){e.display.gutters.style.left=t?ar(e.display)+"px":"0",e.refresh()}),!0),n("coverGutterNextToScrollbar",!1,(function(e){return Br(e)}),!0),n("scrollbarStyle","native",(function(e){Gr(e),Br(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)}),!0),n("lineNumbers",!1,(function(e,t){e.display.gutterSpecs=pi(e.options.gutters,t),mi(e)}),!0),n("firstLineNumber",1,mi,!0),n("lineNumberFormatter",(function(e){return e}),mi,!0),n("showCursorWhenSelecting",!1,vr,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,(function(e,t){"nocursor"==t&&(_r(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)})),n("screenReaderLabel",null,(function(e,t){t=""===t?null:t,e.display.input.screenReaderLabelChanged(t)})),n("disableInput",!1,(function(e,t){t||e.display.input.reset()}),!0),n("dragDrop",!0,_a),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,vr,!0),n("singleCursorHeightPerLine",!0,vr,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,Ii,!0),n("addModeClass",!1,Ii,!0),n("pollInterval",100),n("undoDepth",200,(function(e,t){return e.doc.history.undoDepth=t})),n("historyEventDelay",1250),n("viewportMargin",10,(function(e){return e.refresh()}),!0),n("maxHighlightLength",1e4,Ii,!0),n("moveInputWithCursor",!0,(function(e,t){t||e.display.input.resetPosition()})),n("tabindex",null,(function(e,t){return e.display.input.getField().tabIndex=t||""})),n("autofocus",null),n("direction","ltr",(function(e,t){return e.doc.setDirection(t)}),!0),n("phrases",null)}(Ca),function(e){var t=e.optionHandlers,n=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(e,n){var r=this.options,i=r[e];r[e]==n&&"mode"!=e||(r[e]=n,t.hasOwnProperty(e)&&ei(this,t[e])(this,n,i),he(this,"optionChange",this,e))},getOption:function(e){return this.options[e]},getDoc:function(){return this.doc},addKeyMap:function(e,t){this.state.keyMaps[t?"push":"unshift"](Jo(e))},removeKeyMap:function(e){for(var t=this.state.keyMaps,n=0;nn&&(Na(this,i.head.line,e,!0),n=i.head.line,r==this.doc.sel.primIndex&&Ir(this));else{var o=i.from(),a=i.to(),s=Math.max(n,o.line);n=Math.min(this.lastLine(),a.line-(a.ch?0:1))+1;for(var l=s;l0&&Ji(this.doc,r,new wi(o,c[r].to()),q)}}})),getTokenAt:function(e,t){return yt(this,e,t)},getLineTokens:function(e,t){return yt(this,et(e),t,!0)},getTokenTypeAt:function(e){e=st(this.doc,e);var t,n=dt(this,Qe(this.doc,e.line)),r=0,i=(n.length-1)/2,o=e.ch;if(0==o)t=n[2];else for(;;){var a=r+i>>1;if((a?n[2*a-1]:0)>=o)i=a;else{if(!(n[2*a+1]o&&(e=o,i=!0),r=Qe(this.doc,e)}else r=e;return Gn(this,r,{top:0,left:0},t||"page",n||i).top+(i?this.doc.height-Ht(r):0)},defaultTextHeight:function(){return rr(this.display)},defaultCharWidth:function(){return ir(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,r,i){var o,a,s,l=this.display,c=(e=Kn(this,st(this.doc,e))).bottom,u=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),l.sizer.appendChild(t),"over"==r)c=e.top;else if("above"==r||"near"==r){var f=Math.max(l.wrapper.clientHeight,this.doc.height),d=Math.max(l.sizer.clientWidth,l.lineSpace.clientWidth);("above"==r||e.bottom+t.offsetHeight>f)&&e.top>t.offsetHeight?c=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=f&&(c=e.bottom),u+t.offsetWidth>d&&(u=d-t.offsetWidth)}t.style.top=c+"px",t.style.left=t.style.right="","right"==i?(u=l.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==i?u=0:"middle"==i&&(u=(l.sizer.clientWidth-t.offsetWidth)/2),t.style.left=u+"px"),n&&(o=this,a={left:u,top:c,right:u+t.offsetWidth,bottom:c+t.offsetHeight},null!=(s=Nr(o,a)).scrollTop&&Fr(o,s.scrollTop),null!=s.scrollLeft&&Rr(o,s.scrollLeft))},triggerOnKeyDown:ti(ua),triggerOnKeyPress:ti(da),triggerOnKeyUp:fa,triggerOnMouseDown:ti(va),execCommand:function(e){if(ta.hasOwnProperty(e))return ta[e].call(null,this)},triggerElectric:ti((function(e){ja(this,e)})),findPosH:function(e,t,n,r){var i=1;t<0&&(i=-1,t=-t);for(var o=st(this.doc,e),a=0;a0&&a(t.charAt(n-1));)--n;for(;r.5||this.options.lineWrapping)&&lr(this),he(this,"refresh",this)})),swapDoc:ti((function(e){var t=this.doc;return t.cm=null,this.state.selectingText&&this.state.selectingText(),Fi(this,e),Un(this),this.display.input.reset(),Ar(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,ln(this,"swapDoc",this,t),t})),phrase:function(e){var t=this.options.phrases;return t&&Object.prototype.hasOwnProperty.call(t,e)?t[e]:e},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},ye(e),e.registerHelper=function(t,r,i){n.hasOwnProperty(t)||(n[t]=e[t]={_global:[]}),n[t][r]=i},e.registerGlobalHelper=function(t,r,i,o){e.registerHelper(t,r,o),n[t]._global.push({pred:i,val:o})}}(Ca);var Qa="iter insert remove copy getEditor constructor".split(" ");for(var Ka in Io.prototype)Io.prototype.hasOwnProperty(Ka)&&U(Qa,Ka)<0&&(Ca.prototype[Ka]=function(e){return function(){return e.apply(this.doc,arguments)}}(Io.prototype[Ka]));return ye(Io),Ca.inputStyles={textarea:za,contenteditable:Ua},Ca.defineMode=function(e){Ca.defaults.mode||"null"==e||(Ca.defaults.mode=e),Re.apply(this,arguments)},Ca.defineMIME=function(e,t){Me[e]=t},Ca.defineMode("null",(function(){return{token:function(e){return e.skipToEnd()}}})),Ca.defineMIME("text/plain","null"),Ca.defineExtension=function(e,t){Ca.prototype[e]=t},Ca.defineDocExtension=function(e,t){Io.prototype[e]=t},Ca.fromTextArea=function(e,t){if((t=t?R(t):{}).value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),null==t.autofocus){var n=A();t.autofocus=n==e||null!=e.getAttribute("autofocus")&&n==document.body}function r(){e.value=s.getValue()}var i;if(e.form&&(fe(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var o=e.form;i=o.submit;try{var a=o.submit=function(){r(),o.submit=i,o.submit(),o.submit=a}}catch(e){}}t.finishInit=function(n){n.save=r,n.getTextArea=function(){return e},n.toTextArea=function(){n.toTextArea=isNaN,r(),e.parentNode.removeChild(n.getWrapperElement()),e.style.display="",e.form&&(pe(e.form,"submit",r),t.leaveSubmitMethodAlone||"function"!=typeof e.form.submit||(e.form.submit=i))}},e.style.display="none";var s=Ca((function(t){return e.parentNode.insertBefore(t,e.nextSibling)}),t);return s},function(e){e.off=pe,e.on=fe,e.wheelEventPixels=Ti,e.Doc=Io,e.splitLines=Ie,e.countColumn=P,e.findColumn=z,e.isWordChar=Z,e.Pass=B,e.signal=he,e.Line=Qt,e.changeEnd=ki,e.scrollbarModel=Hr,e.Pos=et,e.cmpPos=tt,e.modes=Fe,e.mimeModes=Me,e.resolveMode=Pe,e.getMode=Ve,e.modeExtensions=Ue,e.extendMode=Be,e.copyState=qe,e.startState=Ge,e.innerMode=He,e.commands=ta,e.keyMap=Ho,e.keyName=Yo,e.isModifierKey=Ko,e.lookupKey=Qo,e.normalizeKeyMap=zo,e.StringStream=ze,e.SharedTextMarker=Co,e.TextMarker=_o,e.LineWidget=Oo,e.e_preventDefault=be,e.e_stopPropagation=Te,e.e_stop=Oe,e.addClass=L,e.contains=I,e.rmClass=k,e.keyNames=Vo}(Ca),Ca.version="5.57.0",Ca}()})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return i})),n.d(t,"c",(function(){return o}));var r="function"==typeof Symbol&&null!=Symbol.iterator?Symbol.iterator:"@@iterator",i="function"==typeof Symbol&&null!=Symbol.asyncIterator?Symbol.asyncIterator:"@@asyncIterator",o="function"==typeof Symbol&&null!=Symbol.toStringTag?Symbol.toStringTag:"@@toStringTag"},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var e=Object.prototype.hasOwnProperty;function r(t,n){return e.call(t,n)}function i(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||65535==(65535&e)||65534==(65535&e)||e>=0&&e<=8||11===e||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function o(e){if(e>65535){var t=55296+((e-=65536)>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}var a=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,s=new RegExp(a.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),l=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,c=n(61),u=/[&<>"]/,f=/[&<>"]/g,d={"&":"&","<":"<",">":">",'"':"""};function p(e){return d[e]}var h=/[.?*+^$[\]\\(){}|-]/g,m=n(51);t.lib={},t.lib.mdurl=n(62),t.lib.ucmicro=n(127),t.assign=function(e){var t=Array.prototype.slice.call(arguments,1);return t.forEach((function(t){if(t){if("object"!=typeof t)throw new TypeError(t+"must be object");Object.keys(t).forEach((function(n){e[n]=t[n]}))}})),e},t.isString=function(e){return"[object String]"===function(e){return Object.prototype.toString.call(e)}(e)},t.has=r,t.unescapeMd=function(e){return e.indexOf("\\")<0?e:e.replace(a,"$1")},t.unescapeAll=function(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(s,(function(e,t,n){return t||function(e,t){var n=0;return r(c,t)?c[t]:35===t.charCodeAt(0)&&l.test(t)&&i(n="x"===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10))?o(n):e}(e,n)}))},t.isValidEntityCode=i,t.fromCodePoint=o,t.escapeHtml=function(e){return u.test(e)?e.replace(f,p):e},t.arrayReplaceAt=function(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))},t.isSpace=function(e){switch(e){case 9:case 32:return!0}return!1},t.isWhiteSpace=function(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1},t.isMdAsciiPunct=function(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}},t.isPunctChar=function(e){return m.test(e)},t.escapeRE=function(e){return e.replace(h,"\\$&")},t.normalizeReference=function(e){return e=e.trim().replace(/\s+/g," "),"Ṿ"==="ẞ".toLowerCase()&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return a}));var r=n(25),i=function(){function e(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}return e.prototype.toJSON=function(){return{start:this.start,end:this.end}},e}();Object(r.a)(i);var o=function(){function e(e,t,n,r,i,o,a){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=i,this.value=a,this.prev=o,this.next=null}return e.prototype.toJSON=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}},e}();function a(e){return null!=e&&"string"==typeof e.kind}Object(r.a)(o)},function(e,t,n){"use strict";n.r(t),n.d(t,"version",(function(){return r})),n.d(t,"versionInfo",(function(){return i})),n.d(t,"graphql",(function(){return er})),n.d(t,"graphqlSync",(function(){return tr})),n.d(t,"GraphQLSchema",(function(){return ye})),n.d(t,"GraphQLDirective",(function(){return oe})),n.d(t,"GraphQLScalarType",(function(){return z.g})),n.d(t,"GraphQLObjectType",(function(){return z.f})),n.d(t,"GraphQLInterfaceType",(function(){return z.c})),n.d(t,"GraphQLUnionType",(function(){return z.h})),n.d(t,"GraphQLEnumType",(function(){return z.a})),n.d(t,"GraphQLInputObjectType",(function(){return z.b})),n.d(t,"GraphQLList",(function(){return z.d})),n.d(t,"GraphQLNonNull",(function(){return z.e})),n.d(t,"specifiedScalarTypes",(function(){return te.g})),n.d(t,"GraphQLInt",(function(){return te.d})),n.d(t,"GraphQLFloat",(function(){return te.b})),n.d(t,"GraphQLString",(function(){return te.e})),n.d(t,"GraphQLBoolean",(function(){return te.a})),n.d(t,"GraphQLID",(function(){return te.c})),n.d(t,"specifiedDirectives",(function(){return pe})),n.d(t,"GraphQLIncludeDirective",(function(){return ae})),n.d(t,"GraphQLSkipDirective",(function(){return se})),n.d(t,"GraphQLDeferDirective",(function(){return le})),n.d(t,"GraphQLStreamDirective",(function(){return ce})),n.d(t,"GraphQLDeprecatedDirective",(function(){return fe})),n.d(t,"GraphQLSpecifiedByDirective",(function(){return de})),n.d(t,"TypeKind",(function(){return X.TypeKind})),n.d(t,"DEFAULT_DEPRECATION_REASON",(function(){return ue})),n.d(t,"introspectionTypes",(function(){return X.introspectionTypes})),n.d(t,"__Schema",(function(){return X.__Schema})),n.d(t,"__Directive",(function(){return X.__Directive})),n.d(t,"__DirectiveLocation",(function(){return X.__DirectiveLocation})),n.d(t,"__Type",(function(){return X.__Type})),n.d(t,"__Field",(function(){return X.__Field})),n.d(t,"__InputValue",(function(){return X.__InputValue})),n.d(t,"__EnumValue",(function(){return X.__EnumValue})),n.d(t,"__TypeKind",(function(){return X.__TypeKind})),n.d(t,"SchemaMetaFieldDef",(function(){return X.SchemaMetaFieldDef})),n.d(t,"TypeMetaFieldDef",(function(){return X.TypeMetaFieldDef})),n.d(t,"TypeNameMetaFieldDef",(function(){return X.TypeNameMetaFieldDef})),n.d(t,"isSchema",(function(){return ve})),n.d(t,"isDirective",(function(){return re})),n.d(t,"isType",(function(){return z.S})),n.d(t,"isScalarType",(function(){return z.R})),n.d(t,"isObjectType",(function(){return z.N})),n.d(t,"isInterfaceType",(function(){return z.H})),n.d(t,"isUnionType",(function(){return z.T})),n.d(t,"isEnumType",(function(){return z.E})),n.d(t,"isInputObjectType",(function(){return z.F})),n.d(t,"isListType",(function(){return z.J})),n.d(t,"isNonNullType",(function(){return z.L})),n.d(t,"isInputType",(function(){return z.G})),n.d(t,"isOutputType",(function(){return z.O})),n.d(t,"isLeafType",(function(){return z.I})),n.d(t,"isCompositeType",(function(){return z.D})),n.d(t,"isAbstractType",(function(){return z.C})),n.d(t,"isWrappingType",(function(){return z.U})),n.d(t,"isNullableType",(function(){return z.M})),n.d(t,"isNamedType",(function(){return z.K})),n.d(t,"isRequiredArgument",(function(){return z.P})),n.d(t,"isRequiredInputField",(function(){return z.Q})),n.d(t,"isSpecifiedScalarType",(function(){return te.f})),n.d(t,"isIntrospectionType",(function(){return X.isIntrospectionType})),n.d(t,"isSpecifiedDirective",(function(){return he})),n.d(t,"assertSchema",(function(){return ge})),n.d(t,"assertDirective",(function(){return ie})),n.d(t,"assertType",(function(){return z.x})),n.d(t,"assertScalarType",(function(){return z.w})),n.d(t,"assertObjectType",(function(){return z.u})),n.d(t,"assertInterfaceType",(function(){return z.o})),n.d(t,"assertUnionType",(function(){return z.y})),n.d(t,"assertEnumType",(function(){return z.l})),n.d(t,"assertInputObjectType",(function(){return z.m})),n.d(t,"assertListType",(function(){return z.q})),n.d(t,"assertNonNullType",(function(){return z.s})),n.d(t,"assertInputType",(function(){return z.n})),n.d(t,"assertOutputType",(function(){return z.v})),n.d(t,"assertLeafType",(function(){return z.p})),n.d(t,"assertCompositeType",(function(){return z.k})),n.d(t,"assertAbstractType",(function(){return z.j})),n.d(t,"assertWrappingType",(function(){return z.z})),n.d(t,"assertNullableType",(function(){return z.t})),n.d(t,"assertNamedType",(function(){return z.r})),n.d(t,"getNullableType",(function(){return z.B})),n.d(t,"getNamedType",(function(){return z.A})),n.d(t,"validateSchema",(function(){return Te})),n.d(t,"assertValidSchema",(function(){return Ee})),n.d(t,"Token",(function(){return c.b})),n.d(t,"Source",(function(){return v})),n.d(t,"Location",(function(){return c.a})),n.d(t,"getLocation",(function(){return rr.a})),n.d(t,"printLocation",(function(){return ir.a})),n.d(t,"printSourceLocation",(function(){return ir.b})),n.d(t,"Lexer",(function(){return T})),n.d(t,"TokenKind",(function(){return u})),n.d(t,"parse",(function(){return A})),n.d(t,"parseValue",(function(){return L})),n.d(t,"parseType",(function(){return j})),n.d(t,"print",(function(){return $e.a})),n.d(t,"visit",(function(){return P.c})),n.d(t,"visitInParallel",(function(){return P.d})),n.d(t,"getVisitFn",(function(){return P.b})),n.d(t,"BREAK",(function(){return P.a})),n.d(t,"Kind",(function(){return l.a})),n.d(t,"DirectiveLocation",(function(){return y.a})),n.d(t,"isDefinitionNode",(function(){return We.a})),n.d(t,"isExecutableDefinitionNode",(function(){return We.b})),n.d(t,"isSelectionNode",(function(){return We.c})),n.d(t,"isValueNode",(function(){return We.i})),n.d(t,"isTypeNode",(function(){return We.f})),n.d(t,"isTypeSystemDefinitionNode",(function(){return We.g})),n.d(t,"isTypeDefinitionNode",(function(){return We.d})),n.d(t,"isTypeSystemExtensionNode",(function(){return We.h})),n.d(t,"isTypeExtensionNode",(function(){return We.e})),n.d(t,"execute",(function(){return Cn})),n.d(t,"executeSync",(function(){return Sn})),n.d(t,"defaultFieldResolver",(function(){return Jn})),n.d(t,"defaultTypeResolver",(function(){return Yn})),n.d(t,"responsePathAsArray",(function(){return dn})),n.d(t,"getDirectiveValues",(function(){return On})),n.d(t,"subscribe",(function(){return cr})),n.d(t,"createSourceEventStream",(function(){return dr})),n.d(t,"validate",(function(){return an})),n.d(t,"ValidationContext",(function(){return on})),n.d(t,"specifiedRules",(function(){return Zt})),n.d(t,"ExecutableDefinitionsRule",(function(){return qe.a})),n.d(t,"FieldsOnCorrectTypeRule",(function(){return tt})),n.d(t,"FragmentsOnCompositeTypesRule",(function(){return Xe})),n.d(t,"KnownArgumentNamesRule",(function(){return mt})),n.d(t,"KnownDirectivesRule",(function(){return ut})),n.d(t,"KnownFragmentNamesRule",(function(){return rt})),n.d(t,"KnownTypeNamesRule",(function(){return Ye})),n.d(t,"LoneAnonymousOperationRule",(function(){return Ge})),n.d(t,"NoFragmentCyclesRule",(function(){return at})),n.d(t,"NoUndefinedVariablesRule",(function(){return lt})),n.d(t,"NoUnusedFragmentsRule",(function(){return it})),n.d(t,"NoUnusedVariablesRule",(function(){return ct})),n.d(t,"OverlappingFieldsCanBeMergedRule",(function(){return Dt})),n.d(t,"PossibleFragmentSpreadsRule",(function(){return ot})),n.d(t,"ProvidedRequiredArgumentsRule",(function(){return xt})),n.d(t,"ScalarLeafsRule",(function(){return et})),n.d(t,"SingleFieldSubscriptionsRule",(function(){return ze})),n.d(t,"UniqueArgumentNamesRule",(function(){return gt})),n.d(t,"UniqueDirectivesPerLocationRule",(function(){return ft})),n.d(t,"UniqueFragmentNamesRule",(function(){return nt})),n.d(t,"UniqueInputFieldNamesRule",(function(){return qt})),n.d(t,"UniqueOperationNamesRule",(function(){return He})),n.d(t,"UniqueVariableNamesRule",(function(){return st})),n.d(t,"ValuesOfCorrectTypeRule",(function(){return bt})),n.d(t,"VariablesAreInputTypesRule",(function(){return Ze})),n.d(t,"VariablesInAllowedPositionRule",(function(){return Ct})),n.d(t,"LoneSchemaDefinitionRule",(function(){return Ht})),n.d(t,"UniqueOperationTypesRule",(function(){return Gt})),n.d(t,"UniqueTypeNamesRule",(function(){return zt})),n.d(t,"UniqueEnumValueNamesRule",(function(){return Qt})),n.d(t,"UniqueFieldDefinitionNamesRule",(function(){return Kt})),n.d(t,"UniqueDirectiveNamesRule",(function(){return Yt})),n.d(t,"PossibleTypeExtensionsRule",(function(){return $t})),n.d(t,"NoDeprecatedCustomRule",(function(){return pr})),n.d(t,"NoSchemaIntrospectionCustomRule",(function(){return hr})),n.d(t,"GraphQLError",(function(){return a.a})),n.d(t,"syntaxError",(function(){return s})),n.d(t,"locatedError",(function(){return B})),n.d(t,"printError",(function(){return a.b})),n.d(t,"formatError",(function(){return mr})),n.d(t,"getIntrospectionQuery",(function(){return yr})),n.d(t,"getOperationAST",(function(){return br})),n.d(t,"getOperationRootType",(function(){return pn})),n.d(t,"introspectionFromSchema",(function(){return Or})),n.d(t,"buildClientSchema",(function(){return xr})),n.d(t,"buildASTSchema",(function(){return Fr})),n.d(t,"buildSchema",(function(){return Mr})),n.d(t,"getDescription",(function(){return jr})),n.d(t,"extendSchema",(function(){return Nr})),n.d(t,"lexicographicSortSchema",(function(){return Ur})),n.d(t,"printSchema",(function(){return zr})),n.d(t,"printType",(function(){return Jr})),n.d(t,"printIntrospectionSchema",(function(){return Qr})),n.d(t,"typeFromAST",(function(){return Pe})),n.d(t,"valueFromAST",(function(){return mn})),n.d(t,"valueFromASTUntyped",(function(){return oi.a})),n.d(t,"astFromValue",(function(){return Gr.a})),n.d(t,"TypeInfo",(function(){return Ve})),n.d(t,"visitWithTypeInfo",(function(){return Be})),n.d(t,"coerceInputValue",(function(){return gn})),n.d(t,"concatAST",(function(){return ai})),n.d(t,"separateOperations",(function(){return si})),n.d(t,"stripIgnoredCharacters",(function(){return ci})),n.d(t,"isEqualType",(function(){return Q})),n.d(t,"isTypeSubTypeOf",(function(){return K})),n.d(t,"doTypesOverlap",(function(){return W})),n.d(t,"assertValidName",(function(){return H})),n.d(t,"isValidNameError",(function(){return G})),n.d(t,"BreakingChangeType",(function(){return hi})),n.d(t,"DangerousChangeType",(function(){return mi})),n.d(t,"findBreakingChanges",(function(){return vi})),n.d(t,"findDangerousChanges",(function(){return gi})),n.d(t,"findDeprecatedUsages",(function(){return Di}));var r="15.4.0-experimental-stream-defer.1",i=Object.freeze({major:15,minor:4,patch:0,preReleaseTag:"experimental-stream-defer.1"});function o(e){return"function"==typeof(null==e?void 0:e.then)}var a=n(2);function s(e,t,n){return new a.a("Syntax Error: ".concat(n),void 0,e,[t])}var l=n(1),c=n(14),u=Object.freeze({SOF:"",EOF:"",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"}),f=n(12),d=n(3),p=n(5),h=n(23);function m(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:"GraphQL request",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{line:1,column:1};"string"==typeof e||Object(p.a)(0,"Body must be a string. Received: ".concat(Object(d.a)(e),".")),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||Object(p.a)(0,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||Object(p.a)(0,"column in locationOffset is 1-indexed and must be positive.")}var t,n,r;return t=e,(n=[{key:f.c,get:function(){return"Source"}}])&&m(t.prototype,n),r&&m(t,r),e}();function g(e){return Object(h.a)(e,v)}var y=n(4),b=n(28),T=function(){function e(e){var t=new c.b(u.SOF,0,0,0,0,null);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}var t=e.prototype;return t.advance=function(){return this.lastToken=this.token,this.token=this.lookahead()},t.lookahead=function(){var e=this.token;if(e.kind!==u.EOF)do{var t;e=null!==(t=e.next)&&void 0!==t?t:e.next=w(this,e)}while(e.kind===u.COMMENT);return e},e}();function E(e){return e===u.BANG||e===u.DOLLAR||e===u.AMP||e===u.PAREN_L||e===u.PAREN_R||e===u.SPREAD||e===u.COLON||e===u.EQUALS||e===u.AT||e===u.BRACKET_L||e===u.BRACKET_R||e===u.BRACE_L||e===u.PIPE||e===u.BRACE_R}function O(e){return isNaN(e)?u.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function w(e,t){for(var n=e.source,r=n.body,i=r.length,o=t.end;o31||9===o));return new c.b(u.COMMENT,t,s,n,r,i,a.slice(t+1,s))}function k(e,t,n,r,i,o){var a=e.body,l=n,f=t,d=!1;if(45===l&&(l=a.charCodeAt(++f)),48===l){if((l=a.charCodeAt(++f))>=48&&l<=57)throw s(e,f,"Invalid number, unexpected digit after 0: ".concat(O(l),"."))}else f=C(e,f,l),l=a.charCodeAt(f);if(46===l&&(d=!0,l=a.charCodeAt(++f),f=C(e,f,l),l=a.charCodeAt(f)),69!==l&&101!==l||(d=!0,43!==(l=a.charCodeAt(++f))&&45!==l||(l=a.charCodeAt(++f)),f=C(e,f,l),l=a.charCodeAt(f)),46===l||function(e){return 95===e||e>=65&&e<=90||e>=97&&e<=122}(l))throw s(e,f,"Invalid number, expected digit but got: ".concat(O(l),"."));return new c.b(d?u.FLOAT:u.INT,t,f,r,i,o,a.slice(t,f))}function C(e,t,n){var r=e.body,i=t,o=n;if(o>=48&&o<=57){do{o=r.charCodeAt(++i)}while(o>=48&&o<=57);return i}throw s(e,i,"Invalid number, expected digit but got: ".concat(O(o),"."))}function S(e,t,n,r,i){for(var o,a,l,f,d=e.body,p=t+1,h=p,m=0,v="";p=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function I(e,t,n,r,i){for(var o=e.body,a=o.length,s=t+1,l=0;s!==a&&!isNaN(l=o.charCodeAt(s))&&(95===l||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122);)++s;return new c.b(u.NAME,t,s,n,r,i,o.slice(t,s))}function A(e,t){return new F(e,t).parseDocument()}function L(e,t){var n=new F(e,t);n.expectToken(u.SOF);var r=n.parseValueLiteral(!1);return n.expectToken(u.EOF),r}function j(e,t){var n=new F(e,t);n.expectToken(u.SOF);var r=n.parseTypeReference();return n.expectToken(u.EOF),r}var F=function(){function e(e,t){var n=g(e)?e:new v(e);this._lexer=new T(n),this._options=t}var t=e.prototype;return t.parseName=function(){var e=this.expectToken(u.NAME);return{kind:l.a.NAME,value:e.value,loc:this.loc(e)}},t.parseDocument=function(){var e=this._lexer.token;return{kind:l.a.DOCUMENT,definitions:this.many(u.SOF,this.parseDefinition,u.EOF),loc:this.loc(e)}},t.parseDefinition=function(){if(this.peek(u.NAME))switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}else{if(this.peek(u.BRACE_L))return this.parseOperationDefinition();if(this.peekDescription())return this.parseTypeSystemDefinition()}throw this.unexpected()},t.parseOperationDefinition=function(){var e=this._lexer.token;if(this.peek(u.BRACE_L))return{kind:l.a.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(e)};var t,n=this.parseOperationType();return this.peek(u.NAME)&&(t=this.parseName()),{kind:l.a.OPERATION_DEFINITION,operation:n,name:t,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseOperationType=function(){var e=this.expectToken(u.NAME);switch(e.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(e)},t.parseVariableDefinitions=function(){return this.optionalMany(u.PAREN_L,this.parseVariableDefinition,u.PAREN_R)},t.parseVariableDefinition=function(){var e=this._lexer.token;return{kind:l.a.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(u.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(u.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(e)}},t.parseVariable=function(){var e=this._lexer.token;return this.expectToken(u.DOLLAR),{kind:l.a.VARIABLE,name:this.parseName(),loc:this.loc(e)}},t.parseSelectionSet=function(){var e=this._lexer.token;return{kind:l.a.SELECTION_SET,selections:this.many(u.BRACE_L,this.parseSelection,u.BRACE_R),loc:this.loc(e)}},t.parseSelection=function(){return this.peek(u.SPREAD)?this.parseFragment():this.parseField()},t.parseField=function(){var e,t,n=this._lexer.token,r=this.parseName();return this.expectOptionalToken(u.COLON)?(e=r,t=this.parseName()):t=r,{kind:l.a.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(u.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(n)}},t.parseArguments=function(e){var t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(u.PAREN_L,t,u.PAREN_R)},t.parseArgument=function(){var e=this._lexer.token,t=this.parseName();return this.expectToken(u.COLON),{kind:l.a.ARGUMENT,name:t,value:this.parseValueLiteral(!1),loc:this.loc(e)}},t.parseConstArgument=function(){var e=this._lexer.token;return{kind:l.a.ARGUMENT,name:this.parseName(),value:(this.expectToken(u.COLON),this.parseValueLiteral(!0)),loc:this.loc(e)}},t.parseFragment=function(){var e=this._lexer.token;this.expectToken(u.SPREAD);var t=this.expectOptionalKeyword("on");return!t&&this.peek(u.NAME)?{kind:l.a.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(e)}:{kind:l.a.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseFragmentDefinition=function(){var e,t=this._lexer.token;return this.expectKeyword("fragment"),!0===(null===(e=this._options)||void 0===e?void 0:e.experimentalFragmentVariables)?{kind:l.a.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}:{kind:l.a.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}},t.parseFragmentName=function(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()},t.parseValueLiteral=function(e){var t=this._lexer.token;switch(t.kind){case u.BRACKET_L:return this.parseList(e);case u.BRACE_L:return this.parseObject(e);case u.INT:return this._lexer.advance(),{kind:l.a.INT,value:t.value,loc:this.loc(t)};case u.FLOAT:return this._lexer.advance(),{kind:l.a.FLOAT,value:t.value,loc:this.loc(t)};case u.STRING:case u.BLOCK_STRING:return this.parseStringLiteral();case u.NAME:switch(this._lexer.advance(),t.value){case"true":return{kind:l.a.BOOLEAN,value:!0,loc:this.loc(t)};case"false":return{kind:l.a.BOOLEAN,value:!1,loc:this.loc(t)};case"null":return{kind:l.a.NULL,loc:this.loc(t)};default:return{kind:l.a.ENUM,value:t.value,loc:this.loc(t)}}case u.DOLLAR:if(!e)return this.parseVariable()}throw this.unexpected()},t.parseStringLiteral=function(){var e=this._lexer.token;return this._lexer.advance(),{kind:l.a.STRING,value:e.value,block:e.kind===u.BLOCK_STRING,loc:this.loc(e)}},t.parseList=function(e){var t=this,n=this._lexer.token;return{kind:l.a.LIST,values:this.any(u.BRACKET_L,(function(){return t.parseValueLiteral(e)}),u.BRACKET_R),loc:this.loc(n)}},t.parseObject=function(e){var t=this,n=this._lexer.token;return{kind:l.a.OBJECT,fields:this.any(u.BRACE_L,(function(){return t.parseObjectField(e)}),u.BRACE_R),loc:this.loc(n)}},t.parseObjectField=function(e){var t=this._lexer.token,n=this.parseName();return this.expectToken(u.COLON),{kind:l.a.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e),loc:this.loc(t)}},t.parseDirectives=function(e){for(var t=[];this.peek(u.AT);)t.push(this.parseDirective(e));return t},t.parseDirective=function(e){var t=this._lexer.token;return this.expectToken(u.AT),{kind:l.a.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e),loc:this.loc(t)}},t.parseTypeReference=function(){var e,t=this._lexer.token;return this.expectOptionalToken(u.BRACKET_L)?(e=this.parseTypeReference(),this.expectToken(u.BRACKET_R),e={kind:l.a.LIST_TYPE,type:e,loc:this.loc(t)}):e=this.parseNamedType(),this.expectOptionalToken(u.BANG)?{kind:l.a.NON_NULL_TYPE,type:e,loc:this.loc(t)}:e},t.parseNamedType=function(){var e=this._lexer.token;return{kind:l.a.NAMED_TYPE,name:this.parseName(),loc:this.loc(e)}},t.parseTypeSystemDefinition=function(){var e=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(e.kind===u.NAME)switch(e.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}throw this.unexpected(e)},t.peekDescription=function(){return this.peek(u.STRING)||this.peek(u.BLOCK_STRING)},t.parseDescription=function(){if(this.peekDescription())return this.parseStringLiteral()},t.parseSchemaDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");var n=this.parseDirectives(!0),r=this.many(u.BRACE_L,this.parseOperationTypeDefinition,u.BRACE_R);return{kind:l.a.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r,loc:this.loc(e)}},t.parseOperationTypeDefinition=function(){var e=this._lexer.token,t=this.parseOperationType();this.expectToken(u.COLON);var n=this.parseNamedType();return{kind:l.a.OPERATION_TYPE_DEFINITION,operation:t,type:n,loc:this.loc(e)}},t.parseScalarTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");var n=this.parseName(),r=this.parseDirectives(!0);return{kind:l.a.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r,loc:this.loc(e)}},t.parseObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");var n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),o=this.parseFieldsDefinition();return{kind:l.a.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o,loc:this.loc(e)}},t.parseImplementsInterfaces=function(){var e;if(!this.expectOptionalKeyword("implements"))return[];if(!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacySDLImplementsInterfaces)){var t=[];this.expectOptionalToken(u.AMP);do{t.push(this.parseNamedType())}while(this.expectOptionalToken(u.AMP)||this.peek(u.NAME));return t}return this.delimitedMany(u.AMP,this.parseNamedType)},t.parseFieldsDefinition=function(){var e;return!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacySDLEmptyFields)&&this.peek(u.BRACE_L)&&this._lexer.lookahead().kind===u.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(u.BRACE_L,this.parseFieldDefinition,u.BRACE_R)},t.parseFieldDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(u.COLON);var i=this.parseTypeReference(),o=this.parseDirectives(!0);return{kind:l.a.FIELD_DEFINITION,description:t,name:n,arguments:r,type:i,directives:o,loc:this.loc(e)}},t.parseArgumentDefs=function(){return this.optionalMany(u.PAREN_L,this.parseInputValueDef,u.PAREN_R)},t.parseInputValueDef=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(u.COLON);var r,i=this.parseTypeReference();this.expectOptionalToken(u.EQUALS)&&(r=this.parseValueLiteral(!0));var o=this.parseDirectives(!0);return{kind:l.a.INPUT_VALUE_DEFINITION,description:t,name:n,type:i,defaultValue:r,directives:o,loc:this.loc(e)}},t.parseInterfaceTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");var n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),o=this.parseFieldsDefinition();return{kind:l.a.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o,loc:this.loc(e)}},t.parseUnionTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");var n=this.parseName(),r=this.parseDirectives(!0),i=this.parseUnionMemberTypes();return{kind:l.a.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:i,loc:this.loc(e)}},t.parseUnionMemberTypes=function(){return this.expectOptionalToken(u.EQUALS)?this.delimitedMany(u.PIPE,this.parseNamedType):[]},t.parseEnumTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");var n=this.parseName(),r=this.parseDirectives(!0),i=this.parseEnumValuesDefinition();return{kind:l.a.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:i,loc:this.loc(e)}},t.parseEnumValuesDefinition=function(){return this.optionalMany(u.BRACE_L,this.parseEnumValueDefinition,u.BRACE_R)},t.parseEnumValueDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseDirectives(!0);return{kind:l.a.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r,loc:this.loc(e)}},t.parseInputObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");var n=this.parseName(),r=this.parseDirectives(!0),i=this.parseInputFieldsDefinition();return{kind:l.a.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:i,loc:this.loc(e)}},t.parseInputFieldsDefinition=function(){return this.optionalMany(u.BRACE_L,this.parseInputValueDef,u.BRACE_R)},t.parseTypeSystemExtension=function(){var e=this._lexer.lookahead();if(e.kind===u.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)},t.parseSchemaExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var t=this.parseDirectives(!0),n=this.optionalMany(u.BRACE_L,this.parseOperationTypeDefinition,u.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return{kind:l.a.SCHEMA_EXTENSION,directives:t,operationTypes:n,loc:this.loc(e)}},t.parseScalarTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var t=this.parseName(),n=this.parseDirectives(!0);if(0===n.length)throw this.unexpected();return{kind:l.a.SCALAR_TYPE_EXTENSION,name:t,directives:n,loc:this.loc(e)}},t.parseObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return{kind:l.a.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i,loc:this.loc(e)}},t.parseInterfaceTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return{kind:l.a.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i,loc:this.loc(e)}},t.parseUnionTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseUnionMemberTypes();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:l.a.UNION_TYPE_EXTENSION,name:t,directives:n,types:r,loc:this.loc(e)}},t.parseEnumTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseEnumValuesDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:l.a.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r,loc:this.loc(e)}},t.parseInputObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseInputFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:l.a.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r,loc:this.loc(e)}},t.parseDirectiveDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(u.AT);var n=this.parseName(),r=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var o=this.parseDirectiveLocations();return{kind:l.a.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:i,locations:o,loc:this.loc(e)}},t.parseDirectiveLocations=function(){return this.delimitedMany(u.PIPE,this.parseDirectiveLocation)},t.parseDirectiveLocation=function(){var e=this._lexer.token,t=this.parseName();if(void 0!==y.a[t.value])return t;throw this.unexpected(e)},t.loc=function(e){var t;if(!0!==(null===(t=this._options)||void 0===t?void 0:t.noLocation))return new c.a(e,this._lexer.lastToken,this._lexer.source)},t.peek=function(e){return this._lexer.token.kind===e},t.expectToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t;throw s(this._lexer.source,t.start,"Expected ".concat(R(e),", found ").concat(M(t),"."))},t.expectOptionalToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t},t.expectKeyword=function(e){var t=this._lexer.token;if(t.kind!==u.NAME||t.value!==e)throw s(this._lexer.source,t.start,'Expected "'.concat(e,'", found ').concat(M(t),"."));this._lexer.advance()},t.expectOptionalKeyword=function(e){var t=this._lexer.token;return t.kind===u.NAME&&t.value===e&&(this._lexer.advance(),!0)},t.unexpected=function(e){var t=null!=e?e:this._lexer.token;return s(this._lexer.source,t.start,"Unexpected ".concat(M(t),"."))},t.any=function(e,t,n){this.expectToken(e);for(var r=[];!this.expectOptionalToken(n);)r.push(t.call(this));return r},t.optionalMany=function(e,t,n){if(this.expectOptionalToken(e)){var r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r}return[]},t.many=function(e,t,n){this.expectToken(e);var r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r},t.delimitedMany=function(e,t){this.expectOptionalToken(e);var n=[];do{n.push(t.call(this))}while(this.expectOptionalToken(e));return n},e}();function M(e){var t=e.value;return R(e.kind)+(null!=t?' "'.concat(t,'"'):"")}function R(e){return E(e)?'"'.concat(e,'"'):e}var P=n(20),V=Array.prototype.find?function(e,t){return Array.prototype.find.call(e,t)}:function(e,t){for(var n=0;n1&&"_"===e[0]&&"_"===e[1]?new a.a('Name "'.concat(e,'" must not begin with "__", which is reserved by GraphQL introspection.')):q.test(e)?void 0:new a.a('Names must match /^[_a-zA-Z][_a-zA-Z0-9]*$/ but "'.concat(e,'" does not.'))}var z=n(0);function Q(e,t){return e===t||(Object(z.L)(e)&&Object(z.L)(t)||!(!Object(z.J)(e)||!Object(z.J)(t)))&&Q(e.ofType,t.ofType)}function K(e,t,n){return t===n||(Object(z.L)(n)?!!Object(z.L)(t)&&K(e,t.ofType,n.ofType):Object(z.L)(t)?K(e,t.ofType,n):Object(z.J)(n)?!!Object(z.J)(t)&&K(e,t.ofType,n.ofType):!Object(z.J)(t)&&(Object(z.C)(n)&&(Object(z.H)(t)||Object(z.N)(t))&&e.isSubType(n,t)))}function W(e,t,n){return t===n||(Object(z.C)(t)?Object(z.C)(n)?e.getPossibleTypes(t).some((function(t){return e.isSubType(n,t)})):e.isSubType(t,n):!!Object(z.C)(n)&&e.isSubType(n,t))}var Y=n(30),J=n(21),$=n(17),X=n(7),Z=n(27),ee=n(25),te=n(6);function ne(e,t){for(var n=0;n0)return this._typeStack[this._typeStack.length-1]},t.getParentType=function(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]},t.getInputType=function(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]},t.getParentInputType=function(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]},t.getFieldDef=function(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]},t.getDefaultValue=function(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]},t.getDirective=function(){return this._directive},t.getArgument=function(){return this._argument},t.getEnumValue=function(){return this._enumValue},t.enter=function(e){var t=this._schema;switch(e.kind){case l.a.SELECTION_SET:var n=Object(z.A)(this.getType());this._parentTypeStack.push(Object(z.D)(n)?n:void 0);break;case l.a.FIELD:var r,i,o=this.getParentType();o&&(r=this._getFieldDef(t,o,e))&&(i=r.type),this._fieldDefStack.push(r),this._typeStack.push(Object(z.O)(i)?i:void 0);break;case l.a.DIRECTIVE:this._directive=t.getDirective(e.name.value);break;case l.a.OPERATION_DEFINITION:var a;switch(e.operation){case"query":a=t.getQueryType();break;case"mutation":a=t.getMutationType();break;case"subscription":a=t.getSubscriptionType()}this._typeStack.push(Object(z.N)(a)?a:void 0);break;case l.a.INLINE_FRAGMENT:case l.a.FRAGMENT_DEFINITION:var s=e.typeCondition,c=s?Pe(t,s):Object(z.A)(this.getType());this._typeStack.push(Object(z.O)(c)?c:void 0);break;case l.a.VARIABLE_DEFINITION:var u=Pe(t,e.type);this._inputTypeStack.push(Object(z.G)(u)?u:void 0);break;case l.a.ARGUMENT:var f,d,p,h=null!==(f=this.getDirective())&&void 0!==f?f:this.getFieldDef();h&&(d=V(h.args,(function(t){return t.name===e.name.value})))&&(p=d.type),this._argument=d,this._defaultValueStack.push(d?d.defaultValue:void 0),this._inputTypeStack.push(Object(z.G)(p)?p:void 0);break;case l.a.LIST:var m=Object(z.B)(this.getInputType()),v=Object(z.J)(m)?m.ofType:m;this._defaultValueStack.push(void 0),this._inputTypeStack.push(Object(z.G)(v)?v:void 0);break;case l.a.OBJECT_FIELD:var g,y,b=Object(z.A)(this.getInputType());Object(z.F)(b)&&(y=b.getFields()[e.name.value])&&(g=y.type),this._defaultValueStack.push(y?y.defaultValue:void 0),this._inputTypeStack.push(Object(z.G)(g)?g:void 0);break;case l.a.ENUM:var T,E=Object(z.A)(this.getInputType());Object(z.E)(E)&&(T=E.getValue(e.value)),this._enumValue=T}},t.leave=function(e){switch(e.kind){case l.a.SELECTION_SET:this._parentTypeStack.pop();break;case l.a.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case l.a.DIRECTIVE:this._directive=null;break;case l.a.OPERATION_DEFINITION:case l.a.INLINE_FRAGMENT:case l.a.FRAGMENT_DEFINITION:this._typeStack.pop();break;case l.a.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case l.a.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case l.a.LIST:case l.a.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case l.a.ENUM:this._enumValue=null}},e}();function Ue(e,t,n){var r=n.name.value;return r===X.SchemaMetaFieldDef.name&&e.getQueryType()===t?X.SchemaMetaFieldDef:r===X.TypeMetaFieldDef.name&&e.getQueryType()===t?X.TypeMetaFieldDef:r===X.TypeNameMetaFieldDef.name&&Object(z.D)(t)?X.TypeNameMetaFieldDef:Object(z.N)(t)||Object(z.H)(t)?t.getFields()[r]:void 0}function Be(e,t){return{enter:function(n){e.enter(n);var r=Object(P.b)(t,n.kind,!1);if(r){var i=r.apply(t,arguments);return void 0!==i&&(e.leave(n),Object(c.c)(i)&&e.enter(i)),i}},leave:function(n){var r,i=Object(P.b)(t,n.kind,!0);return i&&(r=i.apply(t,arguments)),e.leave(n),r}}}var qe=n(48);function He(e){var t=Object.create(null);return{OperationDefinition:function(n){var r=n.name;return r&&(t[r.value]?e.reportError(new a.a('There can be only one operation named "'.concat(r.value,'".'),[t[r.value],r])):t[r.value]=r),!1},FragmentDefinition:function(){return!1}}}function Ge(e){var t=0;return{Document:function(e){t=e.definitions.filter((function(e){return e.kind===l.a.OPERATION_DEFINITION})).length},OperationDefinition:function(n){!n.name&&t>1&&e.reportError(new a.a("This anonymous operation must be the only defined operation.",n))}}}function ze(e){return{OperationDefinition:function(t){"subscription"===t.operation&&1!==t.selectionSet.selections.length&&e.reportError(new a.a(t.name?'Subscription "'.concat(t.name.value,'" must select only one top level field.'):"Anonymous Subscription must select only one top level field.",t.selectionSet.selections.slice(1)))}}}var Qe=n(19),Ke=n(22),We=n(24);function Ye(e){for(var t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null),i=0,o=e.getDocument().definitions;i1)for(var u=0;u0)return[[t,e.map((function(e){return e[0]}))],e.reduce((function(e,t){var n=t[1];return e.concat(n)}),[n]),e.reduce((function(e,t){var n=t[2];return e.concat(n)}),[r])]}(function(e,t,n,r,i,o,a,s){var l=[],c=Pt(e,t,i,o),u=c[0],f=c[1],d=Pt(e,t,a,s),p=d[0],h=d[1];if(Lt(e,l,t,n,r,u,p),0!==h.length)for(var m=0;m0&&e.reportError(new a.a("Must provide only one schema definition.",t)),++s)}}}function Gt(e){var t=e.getSchema(),n=Object.create(null),r=t?{query:t.getQueryType(),mutation:t.getMutationType(),subscription:t.getSubscriptionType()}:{};return{SchemaDefinition:i,SchemaExtension:i};function i(t){for(var i,o=null!==(i=t.operationTypes)&&void 0!==i?i:[],s=0;s2&&void 0!==arguments[2]?arguments[2]:Zt,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new Ve(e),i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{maxErrors:void 0};t||Object(p.a)(0,"Must provide document."),Ee(e);var o=Object.freeze({}),s=[],l=new on(e,t,r,(function(e){if(null!=i.maxErrors&&s.length>=i.maxErrors)throw s.push(new a.a("Too many validation errors, error limit reached. Validation aborted.")),o;s.push(e)})),c=Object(P.d)(n.map((function(e){return e(l)})));try{Object(P.c)(t,Be(r,c))}catch(e){if(e!==o)throw e}return s}function sn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:en,r=[],i=new rn(e,t,(function(e){r.push(e)})),o=n.map((function(e){return e(i)}));return Object(P.c)(e,Object(P.d)(o)),r}function ln(e){return(ln="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function cn(e){return null!=e&&"object"===ln(e)&&"function"==typeof e[f.a]}var un=n(36);function fn(e,t,n){return{prev:e,key:t,typename:n}}function dn(e){for(var t=[],n=e;n;)t.push(n.key),n=n.prev;return t.reverse()}function pn(e,t){if("query"===t.operation){var n=e.getQueryType();if(!n)throw new a.a("Schema does not define the required query root type.",t);return n}if("mutation"===t.operation){var r=e.getMutationType();if(!r)throw new a.a("Schema is not configured for mutations.",t);return r}if("subscription"===t.operation){var i=e.getSubscriptionType();if(!i)throw new a.a("Schema is not configured for subscriptions.",t);return i}throw new a.a("Can only have query, mutation and subscription operations.",t)}function hn(e){return e.map((function(e){return"number"==typeof e?"["+e.toString()+"]":"."+e})).join("")}function mn(e,t,n){if(e){if(e.kind===l.a.VARIABLE){var r=e.name.value;if(null==n||void 0===n[r])return;var i=n[r];if(null===i&&Object(z.L)(t))return;return i}if(Object(z.L)(t)){if(e.kind===l.a.NULL)return;return mn(e,t.ofType,n)}if(e.kind===l.a.NULL)return null;if(Object(z.J)(t)){var o=t.ofType;if(e.kind===l.a.LIST){for(var a=[],s=0,c=e.values;s2&&void 0!==arguments[2]?arguments[2]:yn;return bn(e,t,n)}function yn(e,t,n){var r="Invalid value "+Object(d.a)(t);throw e.length>0&&(r+=' at "value'.concat(hn(e),'"')),n.message=r+": "+n.message,n}function bn(e,t,n,r){if(Object(z.L)(t))return null!=e?bn(e,t.ofType,n,r):void n(dn(r),e,new a.a('Expected non-nullable type "'.concat(Object(d.a)(t),'" not to be null.')));if(null==e)return null;if(Object(z.J)(t)){var i=t.ofType;return Object(un.a)(e)?Object(Y.a)(e,(function(e,t){var o=fn(r,t,void 0);return bn(e,i,n,o)})):[bn(e,i,n,r)]}if(Object(z.F)(t)){if(!Object($.a)(e))return void n(dn(r),e,new a.a('Expected type "'.concat(t.name,'" to be an object.')));for(var o={},s=t.getFields(),l=0,c=Object(U.a)(s);l0&&(i+=' at "'.concat(l).concat(hn(e),'"')),r(new a.a(i+"; "+n.message,s,void 0,void 0,void 0,n.originalError))}))},s=0;s=o)throw new a.a("Too many errors processing variables, error limit reached. Execution aborted.");i.push(e)}));if(0===i.length)return{coerced:s}}catch(e){i.push(e)}return{errors:i}}function En(e,t,n){for(var r,i={},o=null!==(r=t.arguments)&&void 0!==r?r:[],s=Object(yt.a)(o,(function(e){return e.name.value})),c=0,u=e.args;c=c.initialCount)return e.dispatcher.addAsyncIteratorValue(c.label,y,i,a,e,n,r,t),void u(p);f(y,p)}}),(function(e){p.push(null),Un(B(e,n,dn(h)),t,s),u(p)}))}(0,[])})).then((function(e){return l?Promise.all(e):e}))}(e,c,n,r,i,u,l)}if(!Object(un.a)(s))throw new a.a('Expected Iterable, but did not find one for field "'.concat(r.parentType.name,".").concat(r.fieldName,'".'));var d=Mn(e,n),p=!1,h=Object(Y.a)(s,(function(t,a){var s=fn(i,a,void 0);try{var u;return d&&"number"==typeof d.initialCount&&a>=d.initialCount?void e.dispatcher.addValue(d.label,s,t,e,n,r,c):(u=o(t)?t.then((function(t){return Bn(e,c,n,r,s,t,l)})):Bn(e,c,n,r,s,t,l),o(u)?(p=!0,u.then(void 0,(function(e){return Un(B(e,n,dn(s)),c,l)}))):u)}catch(e){return Un(B(e,n,dn(s)),c,l)}})).filter((function(e){return void 0!==e}));return p?Promise.all(h):h}(e,t,n,r,i,s,l):Object(z.I)(t)?function(e,t){var n=e.serialize(t);if(void 0===n)throw new Error('Expected a value of type "'.concat(Object(d.a)(e),'" but ')+"received: ".concat(Object(d.a)(t)));return n}(t,s):Object(z.C)(t)?function(e,t,n,r,i,a,s){var l,c=null!==(l=t.resolveType)&&void 0!==l?l:e.typeResolver,u=e.contextValue,f=c(a,u,r,t);if(o(f))return f.then((function(o){return Hn(e,qn(o,e,t,n,r,a),n,r,i,a,s)}));return Hn(e,qn(f,e,t,n,r,a),n,r,i,a,s)}(e,t,n,r,i,s,l):Object(z.N)(t)?Hn(e,t,n,r,i,s,l):void Object(Re.a)(0,"Cannot complete value of unexpected output type: "+Object(d.a)(t))}function qn(e,t,n,r,i,o){if(null==e)throw new a.a('Abstract type "'.concat(n.name,'" must resolve to an Object type at runtime for field "').concat(i.parentType.name,".").concat(i.fieldName,'". Either the "').concat(n.name,'" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.'),r);var s=Object(z.K)(e)?e.name:e;if("string"!=typeof s)throw new a.a('Abstract type "'.concat(n.name,'" must resolve to an Object type at runtime for field "').concat(i.parentType.name,".").concat(i.fieldName,'" with ')+"value ".concat(Object(d.a)(o),', received "').concat(Object(d.a)(e),'".'));var l=t.schema.getType(s);if(null==l)throw new a.a('Abstract type "'.concat(n.name,'" was resolve to a type "').concat(s,'" that does not exist inside schema.'),r);if(!Object(z.N)(l))throw new a.a('Abstract type "'.concat(n.name,'" was resolve to a non-object type "').concat(s,'".'),r);if(!t.schema.isSubType(n,l))throw new a.a('Runtime Object type "'.concat(l.name,'" is not a possible type for "').concat(n.name,'".'),r);return l}function Hn(e,t,n,r,i,a,s){if(t.isTypeOf){var l=t.isTypeOf(a,e.contextValue,r);if(o(l))return l.then((function(r){if(!r)throw Gn(t,a,n);return zn(e,t,n,i,a,s)}));if(!l)throw Gn(t,a,n)}return zn(e,t,n,i,a,s)}function Gn(e,t,n){return new a.a('Expected value of type "'.concat(e.name,'" but got: ').concat(Object(d.a)(t),"."),n)}function zn(e,t,n,r,i,o){for(var a=Wn(e,t,n),s=a.fields,l=a.patches,c=An(e,t,i,r,s,o),u=0;u0}),done:!1}}))},t._next=function(){return this._hasReturnedInitialResult?0===this._subsequentPayloads.length?Promise.resolve({value:void 0,done:!0}):this._race():(this._hasReturnedInitialResult=!0,Promise.resolve({value:_n(_n({},this._initialResult),{},{hasNext:!0}),done:!1}))},t.get=function(e){var t,n=this;return this._initialResult=e,kn(t={},f.a,(function(){return this})),kn(t,"next",(function(){return n._next()})),t},e}();function Zn(e,t,n,r){var i={data:e,path:n?dn(n):[]};return null!=t&&(i.label=t),r&&r.length>0&&(i.errors=r),i}function er(e,t,n,r,i,o,a,s){var l=arguments;return new Promise((function(c){return c(1===l.length?nr(e):nr({schema:e,source:t,rootValue:n,contextValue:r,variableValues:i,operationName:o,fieldResolver:a,typeResolver:s}))}))}function tr(e,t,n,r,i,a,s,l){var c=nr(1===arguments.length?e:{schema:e,source:t,rootValue:n,contextValue:r,variableValues:i,operationName:a,fieldResolver:s,typeResolver:l});if(o(c))throw new Error("GraphQL execution failed to complete synchronously.");return c}function nr(e){var t,n=e.schema,r=e.source,i=e.rootValue,o=e.contextValue,a=e.variableValues,s=e.operationName,l=e.fieldResolver,c=e.typeResolver,u=Te(n);if(u.length>0)return{errors:u};try{t=A(r)}catch(e){return{errors:[e]}}var f=an(n,t);return f.length>0?{errors:f}:Cn({schema:n,document:t,rootValue:i,contextValue:o,variableValues:a,operationName:s,fieldResolver:l,typeResolver:c})}var rr=n(40),ir=n(60);function or(e,t,n){var r,i,o,a,s,l,c=e[f.a].call(e);function u(e){return e.done?e:ar(e.value,t).then(sr,i)}if("function"==typeof c.return&&(r=c.return,i=function(e){var t=function(){return Promise.reject(e)};return r.call(c).then(t,t)}),n){var d=n;o=function(e){return ar(e,d).then(sr,i)}}return a={next:function(){return c.next().then(u,o)},return:function(){return r?r.call(c).then(u,o):Promise.resolve({value:void 0,done:!0})},throw:function(e){return"function"==typeof c.throw?c.throw(e).then(u,o):Promise.reject(e).catch(i)}},s=f.a,l=function(){return this},s in a?Object.defineProperty(a,s,{value:l,enumerable:!0,configurable:!0,writable:!0}):a[s]=l,a}function ar(e,t){return new Promise((function(n){return n(t(e))}))}function sr(e){return{value:e,done:!1}}function lr(e){var t,n,r,i=e[f.a].call(e),o=[i];return t={next:function e(){var t=o[0];return t?t.next().then((function(t){if(t.done)return o.shift(),e();if(cn(t.value)){var n=t.value[f.a].call(t.value);return o.unshift(n),e()}return t})):Promise.resolve({value:void 0,done:!0})},return:function(){return o=[],i.return()},throw:function(e){return o=[],i.throw(e)}},n=f.a,r=function(){return this},n in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t}function cr(e,t,n,r,i,o,a,s){return fr(1===arguments.length?e:{schema:e,document:t,rootValue:n,contextValue:r,variableValues:i,operationName:o,fieldResolver:a,subscribeFieldResolver:s})}function ur(e){if(e instanceof a.a)return{errors:[e]};throw e}function fr(e){var t=e.schema,n=e.document,r=e.rootValue,i=e.contextValue,o=e.variableValues,a=e.operationName,s=e.fieldResolver,l=e.subscribeFieldResolver,c=dr(t,n,r,i,o,a,l),u=function(e){return Cn({schema:t,document:n,rootValue:e,contextValue:i,variableValues:o,operationName:a,fieldResolver:s})};return c.then((function(e){return cn(e)?lr(or(e,u,ur)):e}))}function dr(e,t,n,r,i,o,s){return Dn(e,t,i),new Promise((function(l){var c=In(e,t,n,r,i,o,s);l(Array.isArray(c)?{errors:c}:function(e){var t=e.schema,n=e.operation,r=e.variableValues,i=e.rootValue,o=pn(t,n),s=Ln(e,o,n.selectionSet,Object.create(null),[],Object.create(null)).fields,l=Object.keys(s)[0],c=s[l],u=c[0].name.value,f=$n(t,o,u);if(!f)throw new a.a('The subscription field "'.concat(u,'" is not defined.'),c);var p=fn(void 0,l,o.name),h=Vn(e,f,c,o,p);return new Promise((function(t){var n,o=En(f,c[0],r),a=e.contextValue;t((null!==(n=f.subscribe)&&void 0!==n?n:e.fieldResolver)(i,o,a,h))})).then((function(e){if(e instanceof Error)throw B(e,c,dn(p));if(!cn(e))throw new Error("Subscription field must return Async Iterable. "+"Received: ".concat(Object(d.a)(e),"."));return e}),(function(e){throw B(e,c,dn(p))}))}(c))})).catch(ur)}function pr(e){return{Field:function(t){var n=e.getFieldDef(),r=null==n?void 0:n.deprecationReason;if(n&&null!=r){var i=e.getParentType();null!=i||Object(Re.a)(0),e.reportError(new a.a("The field ".concat(i.name,".").concat(n.name," is deprecated. ").concat(r),t))}},Argument:function(t){var n=e.getArgument(),r=null==n?void 0:n.deprecationReason;if(n&&null!=r){var i=e.getDirective();if(null!=i)e.reportError(new a.a('Directive "@'.concat(i.name,'" argument "').concat(n.name,'" is deprecated. ').concat(r),t));else{var o=e.getParentType(),s=e.getFieldDef();null!=o&&null!=s||Object(Re.a)(0),e.reportError(new a.a('Field "'.concat(o.name,".").concat(s.name,'" argument "').concat(n.name,'" is deprecated. ').concat(r),t))}}},ObjectField:function(t){var n=Object(z.A)(e.getParentInputType());if(Object(z.F)(n)){var r=n.getFields()[t.name.value],i=null==r?void 0:r.deprecationReason;null!=i&&e.reportError(new a.a("The input field ".concat(n.name,".").concat(r.name," is deprecated. ").concat(i),t))}},EnumValue:function(t){var n=e.getEnumValue(),r=null==n?void 0:n.deprecationReason;if(n&&null!=r){var i=Object(z.A)(e.getInputType());null!=i||Object(Re.a)(0),e.reportError(new a.a('The enum value "'.concat(i.name,".").concat(n.name,'" is deprecated. ').concat(r),t))}}}}function hr(e){return{Field:function(t){var n=Object(z.A)(e.getType());n&&Object(X.isIntrospectionType)(n)&&e.reportError(new a.a('GraphQL introspection has been disabled, but the requested query contained the field "'.concat(t.name.value,'".'),t))}}}function mr(e){var t;e||Object(p.a)(0,"Received null or undefined error.");var n=null!==(t=e.message)&&void 0!==t?t:"An unknown error occurred.",r=e.locations,i=e.path,o=e.extensions;return o?{message:n,locations:r,path:i,extensions:o}:{message:n,locations:r,path:i}}function vr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function gr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yr(e){var t=function(e){for(var t=1;t0?n.reverse().join("\n"):void 0}(e);if(void 0!==n)return Object(b.a)("\n"+n)}}function Fr(e,t){null!=e&&e.kind===l.a.DOCUMENT||Object(p.a)(0,"Must provide valid Document AST."),!0!==(null==t?void 0:t.assumeValid)&&!0!==(null==t?void 0:t.assumeValidSDL)&&function(e){var t=sn(e);if(0!==t.length)throw new Error(t.map((function(e){return e.message})).join("\n\n"))}(e);var n=Dr({description:void 0,types:[],directives:[],extensions:void 0,extensionASTNodes:[],assumeValid:!1},e,t);if(null==n.astNode)for(var r=0,i=n.types;r2&&void 0!==arguments[2]?arguments[2]:"";return 0===t.length?"":t.every((function(e){return!e.description}))?"("+t.map(ti).join(", ")+")":"(\n"+t.map((function(t,r){return ri(e,t," "+n,!r)+" "+n+ti(t)})).join("\n")+"\n"+n+")"}function ti(e){var t=Object(Gr.a)(e.defaultValue,e.type),n=e.name+": "+String(e.type);return t&&(n+=" = ".concat(Object($e.a)(t))),n+ni(e.deprecationReason)}function ni(e){if(null==e)return"";var t=Object(Gr.a)(e,te.e);return t&&e!==ue?" @deprecated(reason: "+Object($e.a)(t)+")":" @deprecated"}function ri(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=t.description;if(null==i)return"";if(!0===(null==e?void 0:e.commentDescriptions))return ii(i,n,r);var o=i.length>70,a=Object(b.c)(i,"",o),s=n&&!r?"\n"+n:n;return s+a.replace(/\n/g,"\n"+n)+"\n"}function ii(e,t,n){return(t&&!n?"\n":"")+e.split("\n").map((function(e){return t+(""!==e?"# "+e:"#")})).join("\n")+"\n"}var oi=n(85);function ai(e){for(var t=[],n=0;n0&&(n="\n"+n);var r=n[n.length-1];return('"'===r&&'\\"""'!==n.slice(-4)||"\\"===r)&&(n+="\n"),'"""'+n+'"""'}function fi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function di(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:o,s=void 0,l=Array.isArray(e),u=[e],f=-1,d=[],p=void 0,h=void 0,m=void 0,v=[],g=[],y=e;do{var b=++f===u.length,T=b&&0!==d.length;if(b){if(h=0===g.length?void 0:v[v.length-1],p=m,m=g.pop(),T){if(l)p=p.slice();else{for(var E={},O=0,w=Object.keys(p);Ot)){for(var c=this._rows,u=0;u<=l;u++)c[0][u]=u;for(var f=1;f<=s;f++){for(var d=c[(f-1)%3],p=c[f%3],h=p[0]=f,m=1;m<=l;m++){var v=r[f-1]===i[m-1]?0:1,g=Math.min(d[m]+1,p[m-1]+1,d[m-1]+v);if(f>1&&m>1&&r[f-1]===i[m-2]&&r[f-2]===i[m-1]){var y=c[(f-2)%3][m-2];g=Math.min(g,y+1)}gt)return}var b=c[s%3][l];return b<=t?b:void 0}},e}();function o(e){for(var t=e.length,n=new Array(t),r=0;ra&&i(t[s-1]);)--s;return t.slice(a,s).join("\n")}function i(e){for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=-1===e.indexOf("\n"),i=" "===e[0]||"\t"===e[0],o='"'===e[e.length-1],a="\\"===e[e.length-1],s=!r||o||a||n,l="";return!s||r&&i||(l+="\n"+t),l+=t?e.replace(/\n/g,"\n"+t):e,s&&(l+="\n"),'"""'+l.replace(/"""/g,'\\"""')+'"""'}n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return a}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(27);function i(e,t){for(var n=Object.create(null),i=0,o=Object(r.a)(e);i9999999)throw new TypeError("Near-infinite iteration.");return s}var c=e.length;if("number"==typeof c&&c>=0&&c%1==0){for(var u=[],f=0;fu);f++){var d=e.getLine(c++);s=null==s?d:s+"\n"+d}l*=2,t.lastIndex=n.ch;var p=t.exec(s);if(p){var h=s.slice(0,p.index).split("\n"),m=p[0].split("\n"),v=n.line+h.length-1,g=h[h.length-1].length;return{from:r(v,g),to:r(v+m.length-1,1==m.length?g+m[0].length:m[m.length-1].length),match:p}}}}function l(e,t,n){for(var r,i=0;i<=e.length;){t.lastIndex=i;var o=t.exec(e);if(!o)break;var a=o.index+o[0].length;if(a>e.length-n)break;(!r||a>r.index+r[0].length)&&(r=o),i=o.index+1}return r}function c(e,t,n){t=i(t,"g");for(var o=n.line,a=n.ch,s=e.firstLine();o>=s;o--,a=-1){var c=e.getLine(o),u=l(c,t,a<0?0:c.length-a);if(u)return{from:r(o,u.index),to:r(o,u.index+u[0].length),match:u}}}function u(e,t,n){if(!o(t))return c(e,t,n);t=i(t,"gm");for(var a,s=1,u=e.getLine(n.line).length-n.ch,f=n.line,d=e.firstLine();f>=d;){for(var p=0;p=d;p++){var h=e.getLine(f--);a=null==a?h:h+"\n"+a}s*=2;var m=l(a,t,u);if(m){var v=a.slice(0,m.index).split("\n"),g=m[0].split("\n"),y=f+v.length,b=v[v.length-1].length;return{from:r(y,b),to:r(y+g.length-1,1==g.length?b+g[0].length:g[g.length-1].length),match:m}}}}function f(e,t,n,r){if(e.length==t.length)return n;for(var i=0,o=n+Math.max(0,e.length-t.length);;){if(i==o)return i;var a=i+o>>1,s=r(e.slice(0,a)).length;if(s==n)return a;s>n?o=a:i=a+1}}function d(e,i,o,a){if(!i.length)return null;var s=a?t:n,l=s(i).split(/\r|\n\r?/);e:for(var c=o.line,u=o.ch,d=e.lastLine()+1-l.length;c<=d;c++,u=0){var p=e.getLine(c).slice(u),h=s(p);if(1==l.length){var m=h.indexOf(l[0]);if(-1==m)continue e;return o=f(p,h,m,s)+u,{from:r(c,f(p,h,m,s)+u),to:r(c,f(p,h,m+l[0].length,s)+u)}}var v=h.length-l[0].length;if(h.slice(v)==l[0]){for(var g=1;g=d;c--,u=-1){var p=e.getLine(c);u>-1&&(p=p.slice(0,u));var h=s(p);if(1==l.length){var m=h.lastIndexOf(l[0]);if(-1==m)continue e;return{from:r(c,f(p,h,m,s)),to:r(c,f(p,h,m+l[0].length,s))}}var v=l[l.length-1];if(h.slice(0,v.length)==v){var g=1;for(o=c-l.length+1;g0);)r.push({anchor:i.from(),head:i.to()});r.length&&this.setSelections(r,0)}))}(n(11))})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";!function(e){function t(t,n,r){var i,o=t.getWrapperElement();return(i=o.appendChild(document.createElement("div"))).className=r?"CodeMirror-dialog CodeMirror-dialog-bottom":"CodeMirror-dialog CodeMirror-dialog-top","string"==typeof n?i.innerHTML=n:i.appendChild(n),e.addClass(o,"dialog-opened"),i}function n(e,t){e.state.currentNotificationClose&&e.state.currentNotificationClose(),e.state.currentNotificationClose=t}e.defineExtension("openDialog",(function(r,i,o){o||(o={}),n(this,null);var a=t(this,r,o.bottom),s=!1,l=this;function c(t){if("string"==typeof t)f.value=t;else{if(s)return;s=!0,e.rmClass(a.parentNode,"dialog-opened"),a.parentNode.removeChild(a),l.focus(),o.onClose&&o.onClose(a)}}var u,f=a.getElementsByTagName("input")[0];return f?(f.focus(),o.value&&(f.value=o.value,!1!==o.selectValueOnOpen&&f.select()),o.onInput&&e.on(f,"input",(function(e){o.onInput(e,f.value,c)})),o.onKeyUp&&e.on(f,"keyup",(function(e){o.onKeyUp(e,f.value,c)})),e.on(f,"keydown",(function(t){o&&o.onKeyDown&&o.onKeyDown(t,f.value,c)||((27==t.keyCode||!1!==o.closeOnEnter&&13==t.keyCode)&&(f.blur(),e.e_stop(t),c()),13==t.keyCode&&i(f.value,t))})),!1!==o.closeOnBlur&&e.on(a,"focusout",(function(e){null!==e.relatedTarget&&c()}))):(u=a.getElementsByTagName("button")[0])&&(e.on(u,"click",(function(){c(),l.focus()})),!1!==o.closeOnBlur&&e.on(u,"blur",c),u.focus()),c})),e.defineExtension("openConfirm",(function(r,i,o){n(this,null);var a=t(this,r,o&&o.bottom),s=a.getElementsByTagName("button"),l=!1,c=this,u=1;function f(){l||(l=!0,e.rmClass(a.parentNode,"dialog-opened"),a.parentNode.removeChild(a),c.focus())}s[0].focus();for(var d=0;d=0&&t%1==0||"function"==typeof e[r.b]}},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(180),n(73),n(74),n(181),n(182)],void 0===(o="function"==typeof(r=function(e,t,n,r,i,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={CharacterStream:!0,LexRules:!0,ParseRules:!0,isIgnored:!0,butNot:!0,list:!0,opt:!0,p:!0,t:!0,onlineParser:!0};function s(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(e,"CharacterStream",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"LexRules",{enumerable:!0,get:function(){return n.LexRules}}),Object.defineProperty(e,"ParseRules",{enumerable:!0,get:function(){return n.ParseRules}}),Object.defineProperty(e,"isIgnored",{enumerable:!0,get:function(){return n.isIgnored}}),Object.defineProperty(e,"butNot",{enumerable:!0,get:function(){return r.butNot}}),Object.defineProperty(e,"list",{enumerable:!0,get:function(){return r.list}}),Object.defineProperty(e,"opt",{enumerable:!0,get:function(){return r.opt}}),Object.defineProperty(e,"p",{enumerable:!0,get:function(){return r.p}}),Object.defineProperty(e,"t",{enumerable:!0,get:function(){return r.t}}),Object.defineProperty(e,"onlineParser",{enumerable:!0,get:function(){return i.default}}),t=s(t),i=s(i),Object.keys(o).forEach((function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(a,t)||t in e&&e[t]===o[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return o[t]}}))}))})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(16),n(15)],void 0===(o="function"==typeof(r=function(e,t,n){"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e){const r=e.onClick?e.onClick:()=>null;return function e(r,i){return r instanceof n.GraphQLNonNull?t.default.createElement("span",null,e(r.ofType,i),"!"):r instanceof n.GraphQLList?t.default.createElement("span",null,"[",e(r.ofType,i),"]"):t.default.createElement("a",{className:"type-name",onClick:e=>{e.preventDefault(),i(r,e)},href:"#"},null==r?void 0:r.name)}(e.type,r)},t=(r=t)&&r.__esModule?r:{default:r}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0;t.a=r},function(e,t,n){"use strict";function r(e,t){for(var n,r=/\r\n|[\n\r]/g,i=1,o=t+1;(n=r.exec(e.body))&&n.index1)){if(this.somethingSelected()){if(!n.hint.supportsSelection)return;for(var i=0;ic.clientHeight+1,I=a.getScrollInfo();if(N>0){var A=S.bottom-S.top;if(g.top-(g.bottom-S.top)-A>0)c.style.top=(b=g.top-A-O)+"px",T=!1;else if(A>C){c.style.height=C-5+"px",c.style.top=(b=g.bottom-S.top-O)+"px";var L=a.getCursor();n.from.ch!=L.ch&&(g=a.cursorCoords(L),c.style.left=(y=g.left-E)+"px",S=c.getBoundingClientRect())}}var j,F=S.right-k;if(F>0&&(S.right-S.left>k&&(c.style.width=k-5+"px",F-=S.right-S.left-k),c.style.left=(y=g.left-F-E)+"px"),D)for(var M=c.firstChild;M;M=M.nextSibling)M.style.paddingRight=a.display.nativeBarWidth+"px";return a.addKeyMap(this.keyMap=function(e,t){var n={Up:function(){t.moveFocus(-1)},Down:function(){t.moveFocus(1)},PageUp:function(){t.moveFocus(1-t.menuSize(),!0)},PageDown:function(){t.moveFocus(t.menuSize()-1,!0)},Home:function(){t.setFocus(0)},End:function(){t.setFocus(t.length-1)},Enter:t.pick,Tab:t.pick,Esc:t.close};/Mac/.test(navigator.platform)&&(n["Ctrl-P"]=function(){t.moveFocus(-1)},n["Ctrl-N"]=function(){t.moveFocus(1)});var r=e.options.customKeys,i=r?{}:n;function o(e,r){var o;o="string"!=typeof r?function(e){return r(e,t)}:n.hasOwnProperty(r)?n[r]:r,i[e]=o}if(r)for(var a in r)r.hasOwnProperty(a)&&o(a,r[a]);var s=e.options.extraKeys;if(s)for(var a in s)s.hasOwnProperty(a)&&o(a,s[a]);return i}(t,{moveFocus:function(e,t){r.changeActive(r.selectedHint+e,t)},setFocus:function(e){r.changeActive(e)},menuSize:function(){return r.screenAmount()},length:f.length,close:function(){t.close()},pick:function(){r.pick()},data:n})),t.options.closeOnUnfocus&&(a.on("blur",this.onBlur=function(){j=setTimeout((function(){t.close()}),100)}),a.on("focus",this.onFocus=function(){clearTimeout(j)})),a.on("scroll",this.onScroll=function(){var e=a.getScrollInfo(),n=a.getWrapperElement().getBoundingClientRect(),r=b+I.top-e.top,i=r-(l.pageYOffset||(s.documentElement||s.body).scrollTop);if(T||(i+=c.offsetHeight),i<=n.top||i>=n.bottom)return t.close();c.style.top=r+"px",c.style.left=y+I.left-e.left+"px"}),e.on(c,"dblclick",(function(e){var t=o(c,e.target||e.srcElement);t&&null!=t.hintId&&(r.changeActive(t.hintId),r.pick())})),e.on(c,"click",(function(e){var n=o(c,e.target||e.srcElement);n&&null!=n.hintId&&(r.changeActive(n.hintId),t.options.completeOnSingleClick&&r.pick())})),e.on(c,"mousedown",(function(){setTimeout((function(){a.focus()}),20)})),this.scrollToActive(),e.signal(n,"select",f[this.selectedHint],c.childNodes[this.selectedHint]),!0}function s(e,t,n,r){if(e.async)e(t,r,n);else{var i=e(t,n);i&&i.then?i.then(r):r(i)}}t.prototype={close:function(){this.active()&&(this.cm.state.completionActive=null,this.tick=null,this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&e.signal(this.data,"close"),this.widget&&this.widget.close(),e.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(t,n){var r=t.list[n],o=this;this.cm.operation((function(){r.hint?r.hint(o.cm,t,r):o.cm.replaceRange(i(r),r.from||t.from,r.to||t.to,"complete"),e.signal(t,"pick",r),o.cm.scrollIntoView()})),this.close()},cursorActivity:function(){this.debounce&&(r(this.debounce),this.debounce=0);var e=this.startPos;this.data&&(e=this.data.from);var t=this.cm.getCursor(),i=this.cm.getLine(t.line);if(t.line!=this.startPos.line||i.length-t.ch!=this.startLen-this.startPos.ch||t.ch=this.data.list.length?t=n?this.data.list.length-1:0:t<0&&(t=n?0:this.data.list.length-1),this.selectedHint!=t){var r=this.hints.childNodes[this.selectedHint];r&&(r.className=r.className.replace(" CodeMirror-hint-active","")),(r=this.hints.childNodes[this.selectedHint=t]).className+=" CodeMirror-hint-active",this.scrollToActive(),e.signal(this.data,"select",this.data.list[this.selectedHint],r)}},scrollToActive:function(){var e=this.completion.options.scrollMargin||0,t=this.hints.childNodes[Math.max(0,this.selectedHint-e)],n=this.hints.childNodes[Math.min(this.data.list.length-1,this.selectedHint+e)],r=this.hints.firstChild;t.offsetTopthis.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=n.offsetTop+n.offsetHeight-this.hints.clientHeight+r.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1}},e.registerHelper("hint","auto",{resolve:function(t,n){var r,i=t.getHelpers(n,"hint");if(i.length){var o=function(e,t,n){var r=function(e,t){if(!e.somethingSelected())return t;for(var n=[],r=0;r0?t(e):i(o+1)}))}(0)};return o.async=!0,o.supportsSelection=!0,o}return(r=t.getHelper(t.getCursor(),"hintWords"))?function(t){return e.hint.fromList(t,{words:r})}:e.hint.anyword?function(t,n){return e.hint.anyword(t,n)}:function(){}}}),e.registerHelper("hint","fromList",(function(t,n){var r,i=t.getCursor(),o=t.getTokenAt(i),a=e.Pos(i.line,o.start),s=i;o.start,]/,closeOnUnfocus:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null};e.defineOption("hintOptions",null)}(n(11))})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";!function(e){var t=/MSIE \d/.test(navigator.userAgent)&&(null==document.documentMode||document.documentMode<8),n=e.Pos,r={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function i(e){return e&&e.bracketRegex||/[(){}[\]]/}function o(e,t,o){var s=e.getLineHandle(t.line),l=t.ch-1,c=o&&o.afterCursor;null==c&&(c=/(^| )cm-fat-cursor($| )/.test(e.getWrapperElement().className));var u=i(o),f=!c&&l>=0&&u.test(s.text.charAt(l))&&r[s.text.charAt(l)]||u.test(s.text.charAt(l+1))&&r[s.text.charAt(++l)];if(!f)return null;var d=">"==f.charAt(1)?1:-1;if(o&&o.strict&&d>0!=(l==t.ch))return null;var p=e.getTokenTypeAt(n(t.line,l+1)),h=a(e,n(t.line,l+(d>0?1:0)),d,p||null,o);return null==h?null:{from:n(t.line,l),to:h&&h.pos,match:h&&h.ch==f.charAt(0),forward:d>0}}function a(e,t,o,a,s){for(var l=s&&s.maxScanLineLength||1e4,c=s&&s.maxScanLines||1e3,u=[],f=i(s),d=o>0?Math.min(t.line+c,e.lastLine()+1):Math.max(e.firstLine()-1,t.line-c),p=t.line;p!=d;p+=o){var h=e.getLine(p);if(h){var m=o>0?0:h.length-1,v=o>0?h.length:-1;if(!(h.length>l))for(p==t.line&&(m=t.ch-(o<0?1:0));m!=v;m+=o){var g=h.charAt(m);if(f.test(g)&&(void 0===a||e.getTokenTypeAt(n(p,m+1))==a)){var y=r[g];if(y&&">"==y.charAt(1)==o>0)u.push(g);else{if(!u.length)return{pos:n(p,m),ch:g};u.pop()}}}}}return p-o!=(o>0?e.lastLine():e.firstLine())&&null}function s(e,r,i){for(var a=e.state.matchBrackets.maxHighlightLineLength||1e3,s=[],l=e.listSelections(),c=0;c=c){if(d&&a&&d.test(a.className))return;o=i(s.indicatorOpen)}}(o||a)&&e.setGutterMarker(n,s.gutter,o)}))}function a(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}function s(e){var t=e.getViewport(),n=e.state.foldGutter;n&&(e.operation((function(){o(e,t.from,t.to)})),n.from=t.from,n.to=t.to)}function l(e,n,i){var o=e.state.foldGutter;if(o){var a=o.options;if(i==a.gutter){var s=r(e,n);s?s.clear():e.foldCode(t(n,0),a)}}}function c(e){var t=e.state.foldGutter;if(t){var n=t.options;t.from=t.to=0,clearTimeout(t.changeUpdate),t.changeUpdate=setTimeout((function(){s(e)}),n.foldOnChangeTimeSpan||600)}}function u(e){var t=e.state.foldGutter;if(t){var n=t.options;clearTimeout(t.changeUpdate),t.changeUpdate=setTimeout((function(){var n=e.getViewport();t.from==t.to||n.from-t.to>20||t.from-n.to>20?s(e):e.operation((function(){n.fromt.to&&(o(e,t.to,n.to),t.to=n.to)}))}),n.updateViewportTimeSpan||400)}}function f(e,t){var n=e.state.foldGutter;if(n){var r=t.line;r>=n.from&&rt.lastLine())return null;var r=t.getTokenAt(e.Pos(n,1));if(/\S/.test(r.string)||(r=t.getTokenAt(e.Pos(n,r.end+1))),"keyword"!=r.type||"import"!=r.string)return null;for(var i=n,o=Math.min(t.lastLine(),n+10);i<=o;++i){var a=t.getLine(i).indexOf(";");if(-1!=a)return{startCh:r.end,end:e.Pos(i,a)}}}var i,o=n.line,a=r(o);if(!a||r(o-1)||(i=r(o-2))&&i.end.line==o-1)return null;for(var s=a.end;;){var l=r(s.line+1);if(null==l)break;s=l.end}return{from:t.clipPos(e.Pos(o,a.startCh+1)),to:s}})),e.registerHelper("fold","include",(function(t,n){function r(n){if(nt.lastLine())return null;var r=t.getTokenAt(e.Pos(n,1));return/\S/.test(r.string)||(r=t.getTokenAt(e.Pos(n,r.end+1))),"meta"==r.type&&"#include"==r.string.slice(0,8)?r.start+8:void 0}var i=n.line,o=r(i);if(null==o||null!=r(i-1))return null;for(var a=i;null!=r(a+1);)++a;return{from:e.Pos(i,o+1),to:t.clipPos(e.Pos(a))}}))})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";!function(e){function t(e,t){var n=Number(t);return/^[-+]/.test(t)?e.getCursor().line+n:n-1}e.commands.jumpToLine=function(e){var n=e.getCursor();!function(e,t,n,r,i){e.openDialog?e.openDialog(t,i,{value:r,selectValueOnOpen:!0}):i(prompt(n,r))}(e,function(e){return e.phrase("Jump to line:")+' '+e.phrase("(Use line:column or scroll% syntax)")+""}(e),e.phrase("Jump to line:"),n.line+1+":"+n.ch,(function(r){var i;if(r)if(i=/^\s*([\+\-]?\d+)\s*\:\s*(\d+)\s*$/.exec(r))e.setCursor(t(e,i[1]),Number(i[2]));else if(i=/^\s*([\+\-]?\d+(\.\d+)?)\%\s*/.exec(r)){var o=Math.round(e.lineCount()*Number(i[1])/100);/^[-+]/.test(i[1])&&(o=n.line+o+1),e.setCursor(o-1,n.ch)}else(i=/^\s*\:?\s*([\+\-]?\d+)\s*/.exec(r))&&e.setCursor(t(e,i[1]),n.ch)}))},e.keyMap.default["Alt-G"]="jumpToLine"}(n(11),n(35))})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";!function(e){var t=e.commands,n=e.Pos;function r(t,r){t.extendSelectionsBy((function(i){return t.display.shift||t.doc.extend||i.empty()?function(t,r,i){if(i<0&&0==r.ch)return t.clipPos(n(r.line-1));var o=t.getLine(r.line);if(i>0&&r.ch>=o.length)return t.clipPos(n(r.line+1,0));for(var a,s="start",l=r.ch,c=l,u=i<0?0:o.length,f=0;c!=u;c+=i,f++){var d=o.charAt(i<0?c-1:c),p="_"!=d&&e.isWordChar(d)?"w":"o";if("w"==p&&d.toUpperCase()==d&&(p="W"),"start"==s)"o"!=p?(s="in",a=p):l=c+i;else if("in"==s&&a!=p){if("w"==a&&"W"==p&&i<0&&c--,"W"==a&&"w"==p&&i>0){if(c==l+1){a="w";continue}c--}break}}return n(r.line,c)}(t.doc,i.head,r):r<0?i.from():i.to()}))}function i(t,r){if(t.isReadOnly())return e.Pass;t.operation((function(){for(var e=t.listSelections().length,i=[],o=-1,a=0;a=0;s--){var c=r[i[s]];if(!(l&&e.cmpPos(c.head,l)>0)){var u=o(t,c.head);l=u.from,t.replaceRange(n(u.word),u.from,u.to)}}}))}function f(t){var n=t.getCursor("from"),r=t.getCursor("to");if(0==e.cmpPos(n,r)){var i=o(t,n);if(!i.word)return;n=i.from,r=i.to}return{from:n,to:r,query:t.getRange(n,r),word:i}}function d(e,t){var r=f(e);if(r){var i=r.query,o=e.getSearchCursor(i,t?r.to:r.from);(t?o.findNext():o.findPrevious())?e.setSelection(o.from(),o.to()):(o=e.getSearchCursor(i,t?n(e.firstLine(),0):e.clipPos(n(e.lastLine()))),(t?o.findNext():o.findPrevious())?e.setSelection(o.from(),o.to()):r.word&&e.setSelection(r.from,r.to))}}t.goSubwordLeft=function(e){r(e,-1)},t.goSubwordRight=function(e){r(e,1)},t.scrollLineUp=function(e){var t=e.getScrollInfo();if(!e.somethingSelected()){var n=e.lineAtHeight(t.top+t.clientHeight,"local");e.getCursor().line>=n&&e.execCommand("goLineUp")}e.scrollTo(null,t.top-e.defaultTextHeight())},t.scrollLineDown=function(e){var t=e.getScrollInfo();if(!e.somethingSelected()){var n=e.lineAtHeight(t.top,"local")+1;e.getCursor().line<=n&&e.execCommand("goLineDown")}e.scrollTo(null,t.top+e.defaultTextHeight())},t.splitSelectionByLine=function(e){for(var t=e.listSelections(),r=[],i=0;io.line&&s==a.line&&0==a.ch||r.push({anchor:s==o.line?o:n(s,0),head:s==a.line?a:n(s)});e.setSelections(r,0)},t.singleSelectionTop=function(e){var t=e.listSelections()[0];e.setSelection(t.anchor,t.head,{scroll:!1})},t.selectLine=function(e){for(var t=e.listSelections(),r=[],i=0;io?i.push(c,u):i.length&&(i[i.length-1]=u),o=u}t.operation((function(){for(var e=0;et.lastLine()?t.replaceRange("\n"+s,n(t.lastLine()),null,"+swapLine"):t.replaceRange(s+"\n",n(o,0),null,"+swapLine")}t.setSelections(a),t.scrollIntoView()}))},t.swapLineDown=function(t){if(t.isReadOnly())return e.Pass;for(var r=t.listSelections(),i=[],o=t.lastLine()+1,a=r.length-1;a>=0;a--){var s=r[a],l=s.to().line+1,c=s.from().line;0!=s.to().ch||s.empty()||l--,l=0;e-=2){var r=i[e],o=i[e+1],a=t.getLine(r);r==t.lastLine()?t.replaceRange("",n(r-1),n(r),"+swapLine"):t.replaceRange("",n(r,0),n(r+1,0),"+swapLine"),t.replaceRange(a+"\n",n(o,0),null,"+swapLine")}t.scrollIntoView()}))},t.toggleCommentIndented=function(e){e.toggleComment({indent:!0})},t.joinLines=function(e){for(var t=e.listSelections(),r=[],i=0;i=0;o--){var a=r[o].head,s=t.getRange({line:a.line,ch:0},a),l=e.countColumn(s,null,t.getOption("tabSize")),c=t.findPosH(a,-1,"char",!1);if(s&&!/\S/.test(s)&&l%i==0){var u=new n(a.line,e.findColumn(s,l-i,i));u.ch!=a.ch&&(c=u)}t.replaceRange("",c,a,"+delete")}}))},t.delLineRight=function(e){e.operation((function(){for(var t=e.listSelections(),r=t.length-1;r>=0;r--)e.replaceRange("",t[r].anchor,n(t[r].to().line),"+delete");e.scrollIntoView()}))},t.upcaseAtCursor=function(e){u(e,(function(e){return e.toUpperCase()}))},t.downcaseAtCursor=function(e){u(e,(function(e){return e.toLowerCase()}))},t.setSublimeMark=function(e){e.state.sublimeMark&&e.state.sublimeMark.clear(),e.state.sublimeMark=e.setBookmark(e.getCursor())},t.selectToSublimeMark=function(e){var t=e.state.sublimeMark&&e.state.sublimeMark.find();t&&e.setSelection(e.getCursor(),t)},t.deleteToSublimeMark=function(t){var n=t.state.sublimeMark&&t.state.sublimeMark.find();if(n){var r=t.getCursor(),i=n;if(e.cmpPos(r,i)>0){var o=i;i=r,r=o}t.state.sublimeKilled=t.getRange(r,i),t.replaceRange("",r,i)}},t.swapWithSublimeMark=function(e){var t=e.state.sublimeMark&&e.state.sublimeMark.find();t&&(e.state.sublimeMark.clear(),e.state.sublimeMark=e.setBookmark(e.getCursor()),e.setCursor(t))},t.sublimeYank=function(e){null!=e.state.sublimeKilled&&e.replaceSelection(e.state.sublimeKilled,null,"paste")},t.showInCenter=function(e){var t=e.cursorCoords(null,"local");e.scrollTo(null,(t.top+t.bottom)/2-e.getScrollInfo().clientHeight/2)},t.findUnder=function(e){d(e,!0)},t.findUnderPrevious=function(e){d(e,!1)},t.findAllUnder=function(e){var t=f(e);if(t){for(var n=e.getSearchCursor(t.query),r=[],i=-1;n.findNext();)r.push({anchor:n.from(),head:n.to()}),n.from().line<=t.from.line&&n.from().ch<=t.from.ch&&i++;e.setSelections(r,i)}};var p=e.keyMap;p.macSublime={"Cmd-Left":"goLineStartSmart","Shift-Tab":"indentLess","Shift-Ctrl-K":"deleteLine","Alt-Q":"wrapLines","Ctrl-Left":"goSubwordLeft","Ctrl-Right":"goSubwordRight","Ctrl-Alt-Up":"scrollLineUp","Ctrl-Alt-Down":"scrollLineDown","Cmd-L":"selectLine","Shift-Cmd-L":"splitSelectionByLine",Esc:"singleSelectionTop","Cmd-Enter":"insertLineAfter","Shift-Cmd-Enter":"insertLineBefore","Cmd-D":"selectNextOccurrence","Shift-Cmd-Space":"selectScope","Shift-Cmd-M":"selectBetweenBrackets","Cmd-M":"goToBracket","Cmd-Ctrl-Up":"swapLineUp","Cmd-Ctrl-Down":"swapLineDown","Cmd-/":"toggleCommentIndented","Cmd-J":"joinLines","Shift-Cmd-D":"duplicateLine",F5:"sortLines","Cmd-F5":"sortLinesInsensitive",F2:"nextBookmark","Shift-F2":"prevBookmark","Cmd-F2":"toggleBookmark","Shift-Cmd-F2":"clearBookmarks","Alt-F2":"selectBookmarks",Backspace:"smartBackspace","Cmd-K Cmd-D":"skipAndSelectNextOccurrence","Cmd-K Cmd-K":"delLineRight","Cmd-K Cmd-U":"upcaseAtCursor","Cmd-K Cmd-L":"downcaseAtCursor","Cmd-K Cmd-Space":"setSublimeMark","Cmd-K Cmd-A":"selectToSublimeMark","Cmd-K Cmd-W":"deleteToSublimeMark","Cmd-K Cmd-X":"swapWithSublimeMark","Cmd-K Cmd-Y":"sublimeYank","Cmd-K Cmd-C":"showInCenter","Cmd-K Cmd-G":"clearBookmarks","Cmd-K Cmd-Backspace":"delLineLeft","Cmd-K Cmd-1":"foldAll","Cmd-K Cmd-0":"unfoldAll","Cmd-K Cmd-J":"unfoldAll","Ctrl-Shift-Up":"addCursorToPrevLine","Ctrl-Shift-Down":"addCursorToNextLine","Cmd-F3":"findUnder","Shift-Cmd-F3":"findUnderPrevious","Alt-F3":"findAllUnder","Shift-Cmd-[":"fold","Shift-Cmd-]":"unfold","Cmd-I":"findIncremental","Shift-Cmd-I":"findIncrementalReverse","Cmd-H":"replace",F3:"findNext","Shift-F3":"findPrev",fallthrough:"macDefault"},e.normalizeKeyMap(p.macSublime),p.pcSublime={"Shift-Tab":"indentLess","Shift-Ctrl-K":"deleteLine","Alt-Q":"wrapLines","Ctrl-T":"transposeChars","Alt-Left":"goSubwordLeft","Alt-Right":"goSubwordRight","Ctrl-Up":"scrollLineUp","Ctrl-Down":"scrollLineDown","Ctrl-L":"selectLine","Shift-Ctrl-L":"splitSelectionByLine",Esc:"singleSelectionTop","Ctrl-Enter":"insertLineAfter","Shift-Ctrl-Enter":"insertLineBefore","Ctrl-D":"selectNextOccurrence","Shift-Ctrl-Space":"selectScope","Shift-Ctrl-M":"selectBetweenBrackets","Ctrl-M":"goToBracket","Shift-Ctrl-Up":"swapLineUp","Shift-Ctrl-Down":"swapLineDown","Ctrl-/":"toggleCommentIndented","Ctrl-J":"joinLines","Shift-Ctrl-D":"duplicateLine",F9:"sortLines","Ctrl-F9":"sortLinesInsensitive",F2:"nextBookmark","Shift-F2":"prevBookmark","Ctrl-F2":"toggleBookmark","Shift-Ctrl-F2":"clearBookmarks","Alt-F2":"selectBookmarks",Backspace:"smartBackspace","Ctrl-K Ctrl-D":"skipAndSelectNextOccurrence","Ctrl-K Ctrl-K":"delLineRight","Ctrl-K Ctrl-U":"upcaseAtCursor","Ctrl-K Ctrl-L":"downcaseAtCursor","Ctrl-K Ctrl-Space":"setSublimeMark","Ctrl-K Ctrl-A":"selectToSublimeMark","Ctrl-K Ctrl-W":"deleteToSublimeMark","Ctrl-K Ctrl-X":"swapWithSublimeMark","Ctrl-K Ctrl-Y":"sublimeYank","Ctrl-K Ctrl-C":"showInCenter","Ctrl-K Ctrl-G":"clearBookmarks","Ctrl-K Ctrl-Backspace":"delLineLeft","Ctrl-K Ctrl-1":"foldAll","Ctrl-K Ctrl-0":"unfoldAll","Ctrl-K Ctrl-J":"unfoldAll","Ctrl-Alt-Up":"addCursorToPrevLine","Ctrl-Alt-Down":"addCursorToNextLine","Ctrl-F3":"findUnder","Shift-Ctrl-F3":"findUnderPrevious","Alt-F3":"findAllUnder","Shift-Ctrl-[":"fold","Shift-Ctrl-]":"unfold","Ctrl-I":"findIncremental","Shift-Ctrl-I":"findIncrementalReverse","Ctrl-H":"replace",F3:"findNext","Shift-F3":"findPrev",fallthrough:"pcDefault"},e.normalizeKeyMap(p.pcSublime);var h=p.default==p.macDefault;p.sublime=h?p.macSublime:p.pcSublime}(n(11),n(34),n(43))})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(2),i=n(1),o=n(24);function a(e){return{Document:function(t){for(var n=0,a=t.definitions;n=0&&(n=this.attrs[t][1]),n},t.prototype.attrJoin=function(e,t){var n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=this.attrs[n][1]+" "+t},e.exports=t})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(15),n(50)],void 0===(o="function"==typeof(r=function(e,t,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e,r,o){let a,s;n(11).on(r,"select",(e,n)=>{if(!a){const e=n.parentNode;let t;a=document.createElement("div"),a.className="CodeMirror-hint-information",e.appendChild(a),s=document.createElement("div"),s.className="CodeMirror-hint-deprecation",e.appendChild(s),e.addEventListener("DOMNodeRemoved",t=n=>{n.target===e&&(e.removeEventListener("DOMNodeRemoved",t),a=null,s=null,t=null)})}const r=e.description?i.render(e.description):"Self descriptive.",l=e.type?''+function e(n){return n instanceof t.GraphQLNonNull?e(n.ofType)+"!":n instanceof t.GraphQLList?`[${e(n.ofType)}]`:`${n.name}`}(e.type)+"":"";if(a.innerHTML='
'+("

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

"+l+r.slice(3):l+r)+"

",e&&s&&e.isDeprecated){const t=e.deprecationReason?i.render(e.deprecationReason):"";s.innerHTML='Deprecated'+t,s.style.display="block"}else s&&(s.style.display="none");o&&o(a)})};const i=new(o=r,r=o&&o.__esModule?o:{default:o}).default;var o})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";!function(e){var t={pairs:"()[]{}''\"\"",closeBefore:")]}'\":;>",triples:"",explode:"[]{}"},n=e.Pos;function r(e,n){return"pairs"==n&&"string"==typeof e?e:"object"==typeof e&&null!=e[n]?e[n]:t[n]}e.defineOption("autoCloseBrackets",!1,(function(t,n,a){a&&a!=e.Init&&(t.removeKeyMap(i),t.state.closeBrackets=null),n&&(o(r(n,"pairs")),t.state.closeBrackets=n,t.addKeyMap(i))}));var i={Backspace:function(t){var i=s(t);if(!i||t.getOption("disableInput"))return e.Pass;for(var o=r(i,"pairs"),a=t.listSelections(),c=0;c=0;c--){var f=a[c].head;t.replaceRange("",n(f.line,f.ch-1),n(f.line,f.ch+1),"+delete")}},Enter:function(t){var n=s(t),i=n&&r(n,"explode");if(!i||t.getOption("disableInput"))return e.Pass;for(var o=t.listSelections(),a=0;a1&&d.indexOf(i)>=0&&t.getRange(n(b.line,b.ch-2),b)==i+i){if(b.ch>2&&/\bstring/.test(t.getTokenTypeAt(n(b.line,b.ch-2))))return e.Pass;g="addFour"}else if(p){var E=0==b.ch?" ":t.getRange(n(b.line,b.ch-1),b);if(e.isWordChar(T)||E==i||e.isWordChar(E))return e.Pass;g="both"}else{if(!m||!(0===T.length||/\s/.test(T)||f.indexOf(T)>-1))return e.Pass;g="both"}else g=p&&c(t,b)?"both":d.indexOf(i)>=0&&t.getRange(b,n(b.line,b.ch+3))==i+i+i?"skipThree":"skip";if(u){if(u!=g)return e.Pass}else u=g}var O=l%2?a.charAt(l-1):i,w=l%2?i:a.charAt(l+1);t.operation((function(){if("skip"==u)t.execCommand("goCharRight");else if("skipThree"==u)for(var r=0;r<3;r++)t.execCommand("goCharRight");else if("surround"==u){var i=t.getSelections();for(r=0;r0,{anchor:new n(o.anchor.line,o.anchor.ch+(a?-1:1)),head:new n(o.head.line,o.head.ch+(a?1:-1))});t.setSelections(i)}else"both"==u?(t.replaceSelection(O+w,null),t.triggerElectric(O+w),t.execCommand("goCharLeft")):"addFour"==u&&(t.replaceSelection(O+O+O+O,"before"),t.execCommand("goCharRight"));var o,a}))}(i,t)}}function s(e){var t=e.state.closeBrackets;return!t||t.override?t:e.getModeAt(e.getCursor()).closeBrackets||t}function l(e,t){var r=e.getRange(n(t.line,t.ch-1),n(t.line,t.ch+1));return 2==r.length?r:null}function c(e,t){var r=e.getTokenAt(n(t.line,t.ch+1));return/\bstring/.test(r.type)&&r.start==t.ch&&(0==t.ch||!/\bstring/.test(e.getTokenTypeAt(t)))}o(t.pairs+"`")}(n(11))})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";!function(e){var t="CodeMirror-lint-markers";function n(e){e.parentNode&&e.parentNode.removeChild(e)}function r(t,r,i,o){var a=function(t,n,r){var i=document.createElement("div");function o(t){if(!i.parentNode)return e.off(document,"mousemove",o);i.style.top=Math.max(0,t.clientY-i.offsetHeight-5)+"px",i.style.left=t.clientX+5+"px"}return i.className="CodeMirror-lint-tooltip cm-s-"+t.options.theme,i.appendChild(r.cloneNode(!0)),t.state.lint.options.selfContain?t.getWrapperElement().appendChild(i):document.body.appendChild(i),e.on(document,"mousemove",o),o(n),null!=i.style.opacity&&(i.style.opacity=1),i}(t,r,i);function s(){var t;e.off(o,"mouseout",s),a&&((t=a).parentNode&&(null==t.style.opacity&&n(t),t.style.opacity=0,setTimeout((function(){n(t)}),600)),a=null)}var l=setInterval((function(){if(a)for(var e=o;;e=e.parentNode){if(e&&11==e.nodeType&&(e=e.host),e==document.body)return;if(!e){s();break}}if(!a)return clearInterval(l)}),400);e.on(o,"mouseout",s)}function i(e,t,n){this.marked=[],this.options=t,this.timeout=null,this.hasGutter=n,this.onMouseOver=function(t){!function(e,t){var n=t.target||t.srcElement;if(/\bCodeMirror-lint-mark-/.test(n.className)){for(var i=n.getBoundingClientRect(),o=(i.left+i.right)/2,a=(i.top+i.bottom)/2,l=e.findMarksAt(e.coordsChar({left:o,top:a},"client")),c=[],u=0;u1,l.options.tooltips))}}c.onUpdateLinting&&c.onUpdateLinting(n,u,e)}function u(e){var t=e.state.lint;t&&(clearTimeout(t.timeout),t.timeout=setTimeout((function(){l(e)}),t.options.delay||500))}e.defineOption("lint",!1,(function(n,r,a){if(a&&a!=e.Init&&(o(n),!1!==n.state.lint.options.lintOnChange&&n.off("change",u),e.off(n.getWrapperElement(),"mouseover",n.state.lint.onMouseOver),clearTimeout(n.state.lint.timeout),delete n.state.lint),r){for(var s=n.getOption("gutters"),c=!1,f=0;f{if(i.kind===r.RuleKinds.VARIABLE&&i.name&&(a=i.name),i.kind===r.RuleKinds.NAMED_TYPE&&a){const e=((e,t)=>{var n,r,i,o,a,s,l,c,u,f;return(null===(n=e.prevState)||void 0===n?void 0:n.kind)===t?e.prevState:(null===(i=null===(r=e.prevState)||void 0===r?void 0:r.prevState)||void 0===i?void 0:i.kind)===t?e.prevState.prevState:(null===(s=null===(a=null===(o=e.prevState)||void 0===o?void 0:o.prevState)||void 0===a?void 0:a.prevState)||void 0===s?void 0:s.kind)===t?e.prevState.prevState.prevState:(null===(f=null===(u=null===(c=null===(l=e.prevState)||void 0===l?void 0:l.prevState)||void 0===c?void 0:c.prevState)||void 0===u?void 0:u.prevState)||void 0===f?void 0:f.kind)===t?e.prevState.prevState.prevState.prevState:void 0})(i,r.RuleKinds.TYPE);(null==e?void 0:e.type)&&(s=n.getType(null==e?void 0:e.type))}a&&s&&(c[a]||(c[a]={detail:s.toString(),label:"$"+a,type:s,kind:t.CompletionItemKind.Variable},o&&(c[a].insertText="$"+a),a=null,s=null))}),(0,i.objectValues)(c)}function a(e){const t=[];return l(e,(e,n)=>{n.kind===r.RuleKinds.FRAGMENT_DEFINITION&&n.name&&n.type&&t.push({kind:r.RuleKinds.FRAGMENT_DEFINITION,name:{kind:"Name",value:n.name},selectionSet:{kind:r.RuleKinds.SELECTION_SET,selections:[]},typeCondition:{kind:r.RuleKinds.NAMED_TYPE,name:{kind:"Name",value:n.type}}})}),t}function s(e,t){let n=null,r=null,i=null;const o=l(e,(e,o,a,s)=>{if(s===t.line&&e.getCurrentPosition()>=t.character)return n=a,r=Object.assign({},o),i=e.current(),"BREAK"});return{start:o.start,end:o.end,string:i||o.string,state:r||o.state,style:n||o.style}}function l(e,t){const n=e.split("\n"),i=(0,r.onlineParser)();let o=i.startState(),a="",s=new r.CharacterStream("");for(let e=0;e{switch(t.kind){case r.RuleKinds.QUERY:case"ShortQuery":h=e.getQueryType();break;case r.RuleKinds.MUTATION:h=e.getMutationType();break;case r.RuleKinds.SUBSCRIPTION:h=e.getSubscriptionType();break;case r.RuleKinds.INLINE_FRAGMENT:case r.RuleKinds.FRAGMENT_DEFINITION:t.type&&(h=e.getType(t.type));break;case r.RuleKinds.FIELD:case r.RuleKinds.ALIASED_FIELD:h&&t.name?(c=p?(0,i.getFieldDef)(e,p,t.name):null,h=c?c.type:null):c=null;break;case r.RuleKinds.SELECTION_SET:p=(0,n.getNamedType)(h);break;case r.RuleKinds.DIRECTIVE:s=t.name?e.getDirective(t.name):null;break;case r.RuleKinds.INTERFACE_DEF:t.name&&(f=null,m=new n.GraphQLInterfaceType({name:t.name,interfaces:[],fields:{}}));break;case r.RuleKinds.OBJECT_TYPE_DEF:t.name&&(m=null,f=new n.GraphQLObjectType({name:t.name,interfaces:[],fields:{}}));break;case r.RuleKinds.ARGUMENTS:if(t.prevState)switch(t.prevState.kind){case r.RuleKinds.FIELD:a=c&&c.args;break;case r.RuleKinds.DIRECTIVE:a=s&&s.args;break;case r.RuleKinds.ALIASED_FIELD:{const n=t.prevState&&t.prevState.name;if(!n){a=null;break}const r=p?(0,i.getFieldDef)(e,p,n):null;if(!r){a=null;break}a=r.args;break}default:a=null}else a=null;break;case r.RuleKinds.ARGUMENT:if(a)for(let e=0;ee.value===t.name):null;break;case r.RuleKinds.LIST_VALUE:const g=(0,n.getNullableType)(u);u=g instanceof n.GraphQLList?g.ofType:null;break;case r.RuleKinds.OBJECT_VALUE:const y=(0,n.getNamedType)(u);d=y instanceof n.GraphQLInputObjectType?y.getFields():null;break;case r.RuleKinds.OBJECT_FIELD:const b=t.name&&d?d[t.name]:null;u=b&&b.type;break;case r.RuleKinds.NAMED_TYPE:t.name&&(h=e.getType(t.name))}}),{argDef:o,argDefs:a,directiveDef:s,enumValue:l,fieldDef:c,inputType:u,objectFieldDefs:d,parentType:p,type:h,interfaceDef:m,objectTypeDef:f}}Object.defineProperty(e,"__esModule",{value:!0}),e.getAutocompleteSuggestions=function(e,f,d,p,h){var m;const v=p||s(f,d),g="Invalid"===v.state.kind?v.state.prevState:v.state;if(!g)return[];const y=g.kind,b=g.step,T=u(e,v.state);if(y===r.RuleKinds.DOCUMENT)return(0,i.hintList)(v,[{label:"query",kind:t.CompletionItemKind.Function},{label:"mutation",kind:t.CompletionItemKind.Function},{label:"subscription",kind:t.CompletionItemKind.Function},{label:"fragment",kind:t.CompletionItemKind.Function},{label:"{",kind:t.CompletionItemKind.Constructor}]);if(y===r.RuleKinds.IMPLEMENTS||y===r.RuleKinds.NAMED_TYPE&&(null===(m=g.prevState)||void 0===m?void 0:m.kind)===r.RuleKinds.IMPLEMENTS)return function(e,o,a,s,c){if(o.needsSeperator)return[];const u=a.getTypeMap(),f=(0,i.objectValues)(u).filter(n.isInterfaceType),d=f.map(({name:e})=>e),p=new Set;l(s,(e,t)=>{var i,o,s,l,u;if(t.name&&(t.kind!==r.RuleKinds.INTERFACE_DEF||d.includes(t.name)||p.add(t.name),t.kind===r.RuleKinds.NAMED_TYPE&&(null===(i=t.prevState)||void 0===i?void 0:i.kind)===r.RuleKinds.IMPLEMENTS))if(c.interfaceDef){if(null===(o=c.interfaceDef)||void 0===o?void 0:o.getInterfaces().find(({name:e})=>e===t.name))return;const e=a.getType(t.name),r=null===(s=c.interfaceDef)||void 0===s?void 0:s.toConfig();c.interfaceDef=new n.GraphQLInterfaceType(Object.assign(Object.assign({},r),{interfaces:[...r.interfaces,e||new n.GraphQLInterfaceType({name:t.name,fields:{}})]}))}else if(c.objectTypeDef){if(null===(l=c.objectTypeDef)||void 0===l?void 0:l.getInterfaces().find(({name:e})=>e===t.name))return;const e=a.getType(t.name),r=null===(u=c.objectTypeDef)||void 0===u?void 0:u.toConfig();c.objectTypeDef=new n.GraphQLObjectType(Object.assign(Object.assign({},r),{interfaces:[...r.interfaces,e||new n.GraphQLInterfaceType({name:t.name,fields:{}})]}))}});const h=c.interfaceDef||c.objectTypeDef,m=((null==h?void 0:h.getInterfaces())||[]).map(({name:e})=>e),v=f.concat([...p].map(e=>({name:e}))).filter(({name:e})=>e!==(null==h?void 0:h.name)&&!m.includes(e));return(0,i.hintList)(e,v.map(e=>{const n={label:e.name,kind:t.CompletionItemKind.Interface,type:e};return(null==e?void 0:e.description)&&(n.documentation=e.description),n}))}(v,g,e,f,T);if(y===r.RuleKinds.SELECTION_SET||y===r.RuleKinds.FIELD||y===r.RuleKinds.ALIASED_FIELD)return function(e,r,o){if(r.parentType){const a=r.parentType;let s=[];return"getFields"in a&&(s=(0,i.objectValues)(a.getFields())),(0,n.isCompositeType)(a)&&s.push(n.TypeNameMetaFieldDef),a===o.getQueryType()&&s.push(n.SchemaMetaFieldDef,n.TypeMetaFieldDef),(0,i.hintList)(e,s.map((e,n)=>{var r;return{sortText:String(n)+e.name,label:e.name,detail:String(e.type),documentation:null!==(r=e.description)&&void 0!==r?r:void 0,deprecated:e.isDeprecated,isDeprecated:e.isDeprecated,deprecationReason:e.deprecationReason,kind:t.CompletionItemKind.Field,type:e.type}}))}return[]}(v,T,e);if(y===r.RuleKinds.ARGUMENTS||y===r.RuleKinds.ARGUMENT&&0===b){const e=T.argDefs;if(e)return(0,i.hintList)(v,e.map(e=>{var n;return{label:e.name,detail:String(e.type),documentation:null!==(n=e.description)&&void 0!==n?n:void 0,kind:t.CompletionItemKind.Variable,type:e.type}}))}if((y===r.RuleKinds.OBJECT_VALUE||y===r.RuleKinds.OBJECT_FIELD&&0===b)&&T.objectFieldDefs){const e=(0,i.objectValues)(T.objectFieldDefs),n=y===r.RuleKinds.OBJECT_VALUE?t.CompletionItemKind.Value:t.CompletionItemKind.Field;return(0,i.hintList)(v,e.map(e=>{var t;return{label:e.name,detail:String(e.type),documentation:null!==(t=e.description)&&void 0!==t?t:void 0,kind:n,type:e.type}}))}if(y===r.RuleKinds.ENUM_VALUE||y===r.RuleKinds.LIST_VALUE&&1===b||y===r.RuleKinds.OBJECT_FIELD&&2===b||y===r.RuleKinds.ARGUMENT&&2===b)return function(e,r,a,s){const l=(0,n.getNamedType)(r.inputType),c=o(a,s,!0).filter(e=>e.detail===l.name);if(l instanceof n.GraphQLEnumType){const n=l.getValues();return(0,i.hintList)(e,n.map(e=>{var n;return{label:e.name,detail:String(l),documentation:null!==(n=e.description)&&void 0!==n?n:void 0,deprecated:e.isDeprecated,isDeprecated:e.isDeprecated,deprecationReason:e.deprecationReason,kind:t.CompletionItemKind.EnumMember,type:l}}).concat(c))}return l===n.GraphQLBoolean?(0,i.hintList)(e,c.concat([{label:"true",detail:String(n.GraphQLBoolean),documentation:"Not false.",kind:t.CompletionItemKind.Variable,type:n.GraphQLBoolean},{label:"false",detail:String(n.GraphQLBoolean),documentation:"Not true.",kind:t.CompletionItemKind.Variable,type:n.GraphQLBoolean}])):c}(v,T,f,e);if(y===r.RuleKinds.VARIABLE&&1===b){const t=(0,n.getNamedType)(T.inputType),r=o(f,e);return(0,i.hintList)(v,r.filter(e=>e.detail===(null==t?void 0:t.name)))}return y===r.RuleKinds.TYPE_CONDITION&&1===b||y===r.RuleKinds.NAMED_TYPE&&null!=g.prevState&&g.prevState.kind===r.RuleKinds.TYPE_CONDITION?function(e,r,o,a){let s;if(r.parentType)if((0,n.isAbstractType)(r.parentType)){const e=(0,n.assertAbstractType)(r.parentType),t=o.getPossibleTypes(e),a=Object.create(null);t.forEach(e=>{e.getInterfaces().forEach(e=>{a[e.name]=e})}),s=t.concat((0,i.objectValues)(a))}else s=[r.parentType];else{const e=o.getTypeMap();s=(0,i.objectValues)(e).filter(n.isCompositeType)}return(0,i.hintList)(e,s.map(e=>{const r=(0,n.getNamedType)(e);return{label:String(e),documentation:r&&r.description||"",kind:t.CompletionItemKind.Field}}))}(v,T,e):y===r.RuleKinds.FRAGMENT_SPREAD&&1===b?function(e,o,s,l,c){if(!l)return[];const u=s.getTypeMap(),f=(0,i.getDefinitionState)(e.state),d=a(l);c&&c.length>0&&d.push(...c);const p=d.filter(e=>u[e.typeCondition.name.value]&&!(f&&f.kind===r.RuleKinds.FRAGMENT_DEFINITION&&f.name===e.name.value)&&(0,n.isCompositeType)(o.parentType)&&(0,n.isCompositeType)(u[e.typeCondition.name.value])&&(0,n.doTypesOverlap)(s,o.parentType,u[e.typeCondition.name.value]));return(0,i.hintList)(e,p.map(e=>({label:e.name.value,detail:String(u[e.typeCondition.name.value]),documentation:`fragment ${e.name.value} on ${e.typeCondition.name.value}`,kind:t.CompletionItemKind.Field,type:u[e.typeCondition.name.value]})))}(v,T,e,f,Array.isArray(h)?h:(e=>{const t=[];return e&&(0,n.visit)((0,n.parse)(e,{experimentalFragmentVariables:!0}),{FragmentDefinition(e){t.push(e)}}),t})(h)):y===r.RuleKinds.VARIABLE_DEFINITION&&2===b||y===r.RuleKinds.LIST_TYPE&&1===b||y===r.RuleKinds.NAMED_TYPE&&g.prevState&&(g.prevState.kind===r.RuleKinds.VARIABLE_DEFINITION||g.prevState.kind===r.RuleKinds.LIST_TYPE||g.prevState.kind===r.RuleKinds.NON_NULL_TYPE)?function(e,r,o){const a=r.getTypeMap(),s=(0,i.objectValues)(a).filter(n.isInputType);return(0,i.hintList)(e,s.map(e=>({label:e.name,documentation:e.description,kind:t.CompletionItemKind.Variable})))}(v,e):y===r.RuleKinds.DIRECTIVE?function(e,n,r,o){if(n.prevState&&n.prevState.kind){const o=r.getDirectives().filter(e=>c(n.prevState,e));return(0,i.hintList)(e,o.map(e=>({label:e.name,documentation:e.description||"",kind:t.CompletionItemKind.Function})))}return[]}(v,g,e):[]},e.getVariableCompletions=o,e.getFragmentDefinitions=a,e.getTokenAtPosition=s,e.runOnlineParser=l,e.canUseDirective=c,e.getTypeInfo=u})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(16),n(38),n(83)],void 0===(o="function"==typeof(r=function(e,t,n,r){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function({arg:e,onClickType:i,showDefaultValue:o}){return t.default.createElement("span",{className:"arg"},t.default.createElement("span",{className:"arg-name"},e.name),": ",t.default.createElement(n.default,{type:e.type,onClick:i}),!1!==o&&t.default.createElement(r.default,{field:e}))},t=i(t),n=i(n),r=i(r)})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(16),n(50)],void 0===(o="function"==typeof(r=function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function({markdown:e,className:n}){return e?t.default.createElement("div",{className:n,dangerouslySetInnerHTML:{__html:i.render(e)}}):t.default.createElement("div",null)},t=r(t);const i=new((n=r(n)).default)})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));var r=n(40);function i(e){return o(e.source,Object(r.a)(e.source,e.start))}function o(e,t){var n=e.locationOffset.column-1,r=s(n)+e.body,i=t.line-1,o=e.locationOffset.line-1,l=t.line+o,c=1===t.line?n:0,u=t.column+c,f="".concat(e.name,":").concat(l,":").concat(u,"\n"),d=r.split(/\r\n|[\n\r]/g),p=d[i];if(p.length>120){for(var h=Math.floor(u/80),m=u%80,v=[],g=0;g`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",n="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",r=new RegExp("^(?:"+t+"|"+n+"|\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e|<[?].*?[?]>|]*>|)"),i=new RegExp("^(?:"+t+"|"+n+")");e.exports.HTML_TAG_RE=r,e.exports.HTML_OPEN_CLOSE_TAG_RE=i})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";function t(e,t){var n,r,i,o,a,s=[],l=t.length;for(n=0;n=0;n--)95!==(r=t[n]).marker&&42!==r.marker||-1!==r.end&&(i=t[r.end],s=n>0&&t[n-1].end===r.end+1&&t[n-1].token===r.token-1&&t[r.end+1].token===i.token+1&&t[n-1].marker===r.marker,a=String.fromCharCode(r.marker),(o=e.tokens[r.token]).type=s?"strong_open":"em_open",o.tag=s?"strong":"em",o.nesting=1,o.markup=s?a+a:a,o.content="",(o=e.tokens[i.token]).type=s?"strong_close":"em_close",o.tag=s?"strong":"em",o.nesting=-1,o.markup=s?a+a:a,o.content="",s&&(e.tokens[t[n-1].token].content="",e.tokens[t[r.end+1].token].content="",n--))}e.exports.tokenize=function(e,t){var n,r,i=e.pos,o=e.src.charCodeAt(i);if(t)return!1;if(95!==o&&42!==o)return!1;for(r=e.scanDelims(e.pos,42===o),n=0;nt.cursorCoords(n,"window").top&&((p=r).style.opacity=.4)})))};!function(e,t,n,r,i){e.openDialog(t,r,{value:n,selectValueOnOpen:!0,closeOnEnter:!1,onClose:function(){f(e)},onKeyDown:i})}(t,d(t),c,h,(function(r,i){var o=e.keyName(r),a=t.getOption("extraKeys"),s=a&&a[o]||e.keyMap[t.getOption("keyMap")][o];"findNext"==s||"findPrev"==s||"findPersistentNext"==s||"findPersistentPrev"==s?(e.e_stop(r),l(t,n(t),i),t.execCommand(s)):"find"!=s&&"findPersistent"!=s||(e.e_stop(r),h(i,r))})),a&&c&&(l(t,s,c),u(t,r))}else o(t,d(t),"Search for:",c,(function(e){e&&!s.query&&t.operation((function(){l(t,s,e),s.posFrom=s.posTo=t.getCursor(),u(t,r)}))}))}function u(t,r,o){t.operation((function(){var a=n(t),s=i(t,a.query,r?a.posFrom:a.posTo);(s.find(r)||(s=i(t,a.query,r?e.Pos(t.lastLine()):e.Pos(t.firstLine(),0))).find(r))&&(t.setSelection(s.from(),s.to()),t.scrollIntoView({from:s.from(),to:s.to()},20),a.posFrom=s.from(),a.posTo=s.to(),o&&o(s.from(),s.to()))}))}function f(e){e.operation((function(){var t=n(e);t.lastQuery=t.query,t.query&&(t.query=t.queryText=null,e.removeOverlay(t.overlay),t.annotate&&(t.annotate.clear(),t.annotate=null))}))}function d(e){return''+e.phrase("Search:")+' '+e.phrase("(Use /re/ syntax for regexp search)")+""}function p(e,t,n){e.operation((function(){for(var r=i(e,t);r.findNext();)if("string"!=typeof t){var o=e.getRange(r.from(),r.to()).match(t);r.replace(n.replace(/\$(\d)/g,(function(e,t){return o[t]})))}else r.replace(n)}))}function h(e,t){if(!e.getOption("readOnly")){var r=e.getSelection()||n(e).lastQuery,l=''+(t?e.phrase("Replace all:"):e.phrase("Replace:"))+"";o(e,l+function(e){return' '+e.phrase("(Use /re/ syntax for regexp search)")+""}(e),l,r,(function(n){n&&(n=s(n),o(e,function(e){return''+e.phrase("With:")+' '}(e),e.phrase("Replace with:"),"",(function(r){if(r=a(r),t)p(e,n,r);else{f(e);var o=i(e,n,e.getCursor("from")),s=function(){var t,a=o.from();!(t=o.findNext())&&(o=i(e,n),!(t=o.findNext())||a&&o.from().line==a.line&&o.from().ch==a.ch)||(e.setSelection(o.from(),o.to()),e.scrollIntoView({from:o.from(),to:o.to()}),function(e,t,n,r){e.openConfirm?e.openConfirm(t,r):confirm(n)&&r[0]()}(e,function(e){return''+e.phrase("Replace?")+" "}(e),e.phrase("Replace?"),[function(){l(t)},s,function(){p(e,n,r)}]))},l=function(e){o.replace("string"==typeof n?r:r.replace(/\$(\d)/g,(function(t,n){return e[n]}))),s()};s()}})))}))}}e.commands.find=function(e){f(e),c(e)},e.commands.findPersistent=function(e){f(e),c(e,!1,!0)},e.commands.findPersistentNext=function(e){c(e,!1,!0,!0)},e.commands.findPersistentPrev=function(e){c(e,!0,!0,!0)},e.commands.findNext=c,e.commands.findPrev=function(e){c(e,!0)},e.commands.clearSearch=f,e.commands.replace=h,e.commands.replaceAll=function(e){h(e,!0)}}(n(11),n(34),n(35))})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(71),n(57),n(75),n(76),n(77),n(78),n(183)],void 0===(o="function"==typeof(r=function(e,t,n,r,i,o,a,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l={getOutline:!0,getHoverInformation:!0};Object.defineProperty(e,"getOutline",{enumerable:!0,get:function(){return o.getOutline}}),Object.defineProperty(e,"getHoverInformation",{enumerable:!0,get:function(){return a.getHoverInformation}}),Object.keys(t).forEach((function(n){"default"!==n&&"__esModule"!==n&&(Object.prototype.hasOwnProperty.call(l,n)||n in e&&e[n]===t[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[n]}}))})),Object.keys(n).forEach((function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(l,t)||t in e&&e[t]===n[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return n[t]}}))})),Object.keys(r).forEach((function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(l,t)||t in e&&e[t]===r[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return r[t]}}))})),Object.keys(i).forEach((function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(l,t)||t in e&&e[t]===i[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return i[t]}}))})),Object.keys(s).forEach((function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(l,t)||t in e&&e[t]===s[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return s[t]}}))}))})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(15),n(7)],void 0===(o="function"==typeof(r=function(e,t,n){"use strict";function r(e,t){const n=[];let r=e;for(;r&&r.kind;)n.push(r),r=r.prevState;for(let e=n.length-1;e>=0;e--)t(n[e])}function i(e,t){const n=e.filter(t);return 0===n.length?e:n}function o(e){return e.toLowerCase().replace(/\W/g,"")}function a(e,t){let n=function(e,t){let n,r;const i=[],o=e.length,a=t.length;for(n=0;n<=o;n++)i[n]=[n];for(r=1;r<=a;r++)i[0][r]=r;for(n=1;n<=o;n++)for(r=1;r<=a;r++){const o=e[n-1]===t[r-1]?0:1;i[n][r]=Math.min(i[n-1][r]+1,i[n][r-1]+1,i[n-1][r-1]+o),n>1&&r>1&&e[n-1]===t[r-2]&&e[n-2]===t[r-1]&&(i[n][r]=Math.min(i[n][r],i[n-2][r-2]+o))}return i[o][a]}(t,e);return e.length>t.length&&(n-=e.length-t.length-1,n+=0===e.indexOf(t)?0:.5),n}Object.defineProperty(e,"__esModule",{value:!0}),e.getDefinitionState=function(e){let t;return r(e,e=>{switch(e.kind){case"Query":case"ShortQuery":case"Mutation":case"Subscription":case"FragmentDefinition":t=e}}),t},e.getFieldDef=function(e,r,i){return i===n.SchemaMetaFieldDef.name&&e.getQueryType()===r?n.SchemaMetaFieldDef:i===n.TypeMetaFieldDef.name&&e.getQueryType()===r?n.TypeMetaFieldDef:i===n.TypeNameMetaFieldDef.name&&(0,t.isCompositeType)(r)?n.TypeNameMetaFieldDef:"getFields"in r?r.getFields()[i]:null},e.forEachState=r,e.objectValues=function(e){const t=Object.keys(e),n=t.length,r=new Array(n);for(let i=0;i({proximity:a(o(e.label),t),entry:e})),e=>e.proximity<=2),e=>!e.entry.isDeprecated).sort((e,t)=>(e.entry.isDeprecated?1:0)-(t.entry.isDeprecated?1:0)||e.proximity-t.proximity||e.entry.label.length-t.entry.label.length).map(e=>e.entry):i(e,e=>!e.isDeprecated)}(t,o(e.string))}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t],void 0===(o="function"==typeof(r=function(e){"use strict";var t,n,r,i,o,a,s,l,c,u,f,d,p,h,m,v,g,y,b,T;Object.defineProperty(e,"__esModule",{value:!0}),e.TextDocument=e.EOL=e.SelectionRange=e.DocumentLink=e.FormattingOptions=e.CodeLens=e.CodeAction=e.CodeActionContext=e.CodeActionKind=e.DocumentSymbol=e.SymbolInformation=e.SymbolTag=e.SymbolKind=e.DocumentHighlight=e.DocumentHighlightKind=e.SignatureInformation=e.ParameterInformation=e.Hover=e.MarkedString=e.CompletionList=e.CompletionItem=e.CompletionItemTag=e.InsertTextFormat=e.CompletionItemKind=e.MarkupContent=e.MarkupKind=e.TextDocumentItem=e.VersionedTextDocumentIdentifier=e.TextDocumentIdentifier=e.WorkspaceChange=e.WorkspaceEdit=e.DeleteFile=e.RenameFile=e.CreateFile=e.TextDocumentEdit=e.TextEdit=e.Command=e.Diagnostic=e.DiagnosticTag=e.DiagnosticSeverity=e.DiagnosticRelatedInformation=e.FoldingRange=e.FoldingRangeKind=e.ColorPresentation=e.ColorInformation=e.Color=e.LocationLink=e.Location=e.Range=e.Position=void 0,e.Position=t,function(e){e.create=function(e,t){return{line:e,character:t}},e.is=function(e){var t=e;return $.objectLiteral(t)&&$.number(t.line)&&$.number(t.character)}}(t||(e.Position=t={})),e.Range=n,function(e){e.create=function(e,n,r,i){if($.number(e)&&$.number(n)&&$.number(r)&&$.number(i))return{start:t.create(e,n),end:t.create(r,i)};if(t.is(e)&&t.is(n))return{start:e,end:n};throw new Error("Range#create called with invalid arguments["+e+", "+n+", "+r+", "+i+"]")},e.is=function(e){var n=e;return $.objectLiteral(n)&&t.is(n.start)&&t.is(n.end)}}(n||(e.Range=n={})),e.Location=r,function(e){e.create=function(e,t){return{uri:e,range:t}},e.is=function(e){var t=e;return $.defined(t)&&n.is(t.range)&&($.string(t.uri)||$.undefined(t.uri))}}(r||(e.Location=r={})),e.LocationLink=i,function(e){e.create=function(e,t,n,r){return{targetUri:e,targetRange:t,targetSelectionRange:n,originSelectionRange:r}},e.is=function(e){var t=e;return $.defined(t)&&n.is(t.targetRange)&&$.string(t.targetUri)&&(n.is(t.targetSelectionRange)||$.undefined(t.targetSelectionRange))&&(n.is(t.originSelectionRange)||$.undefined(t.originSelectionRange))}}(i||(e.LocationLink=i={})),e.Color=o,function(e){e.create=function(e,t,n,r){return{red:e,green:t,blue:n,alpha:r}},e.is=function(e){var t=e;return $.number(t.red)&&$.number(t.green)&&$.number(t.blue)&&$.number(t.alpha)}}(o||(e.Color=o={})),e.ColorInformation=a,function(e){e.create=function(e,t){return{range:e,color:t}},e.is=function(e){var t=e;return n.is(t.range)&&o.is(t.color)}}(a||(e.ColorInformation=a={})),e.ColorPresentation=s,function(e){e.create=function(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}},e.is=function(e){var t=e;return $.string(t.label)&&($.undefined(t.textEdit)||m.is(t))&&($.undefined(t.additionalTextEdits)||$.typedArray(t.additionalTextEdits,m.is))}}(s||(e.ColorPresentation=s={})),e.FoldingRangeKind=l,function(e){e.Comment="comment",e.Imports="imports",e.Region="region"}(l||(e.FoldingRangeKind=l={})),e.FoldingRange=c,function(e){e.create=function(e,t,n,r,i){var o={startLine:e,endLine:t};return $.defined(n)&&(o.startCharacter=n),$.defined(r)&&(o.endCharacter=r),$.defined(i)&&(o.kind=i),o},e.is=function(e){var t=e;return $.number(t.startLine)&&$.number(t.startLine)&&($.undefined(t.startCharacter)||$.number(t.startCharacter))&&($.undefined(t.endCharacter)||$.number(t.endCharacter))&&($.undefined(t.kind)||$.string(t.kind))}}(c||(e.FoldingRange=c={})),e.DiagnosticRelatedInformation=u,function(e){e.create=function(e,t){return{location:e,message:t}},e.is=function(e){var t=e;return $.defined(t)&&r.is(t.location)&&$.string(t.message)}}(u||(e.DiagnosticRelatedInformation=u={})),e.DiagnosticSeverity=f,function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4}(f||(e.DiagnosticSeverity=f={})),e.DiagnosticTag=d,function(e){e.Unnecessary=1,e.Deprecated=2}(d||(e.DiagnosticTag=d={})),e.Diagnostic=p,function(e){e.create=function(e,t,n,r,i,o){var a={range:e,message:t};return $.defined(n)&&(a.severity=n),$.defined(r)&&(a.code=r),$.defined(i)&&(a.source=i),$.defined(o)&&(a.relatedInformation=o),a},e.is=function(e){var t=e;return $.defined(t)&&n.is(t.range)&&$.string(t.message)&&($.number(t.severity)||$.undefined(t.severity))&&($.number(t.code)||$.string(t.code)||$.undefined(t.code))&&($.string(t.source)||$.undefined(t.source))&&($.undefined(t.relatedInformation)||$.typedArray(t.relatedInformation,u.is))}}(p||(e.Diagnostic=p={})),e.Command=h,function(e){e.create=function(e,t){for(var n=[],r=2;r0&&(i.arguments=n),i},e.is=function(e){var t=e;return $.defined(t)&&$.string(t.title)&&$.string(t.command)}}(h||(e.Command=h={})),e.TextEdit=m,function(e){e.replace=function(e,t){return{range:e,newText:t}},e.insert=function(e,t){return{range:{start:e,end:e},newText:t}},e.del=function(e){return{range:e,newText:""}},e.is=function(e){var t=e;return $.objectLiteral(t)&&$.string(t.newText)&&n.is(t.range)}}(m||(e.TextEdit=m={})),e.TextDocumentEdit=v,function(e){e.create=function(e,t){return{textDocument:e,edits:t}},e.is=function(e){var t=e;return $.defined(t)&&O.is(t.textDocument)&&Array.isArray(t.edits)}}(v||(e.TextDocumentEdit=v={})),e.CreateFile=g,function(e){e.create=function(e,t){var n={kind:"create",uri:e};return void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(n.options=t),n},e.is=function(e){var t=e;return t&&"create"===t.kind&&$.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||$.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||$.boolean(t.options.ignoreIfExists)))}}(g||(e.CreateFile=g={})),e.RenameFile=y,function(e){e.create=function(e,t,n){var r={kind:"rename",oldUri:e,newUri:t};return void 0===n||void 0===n.overwrite&&void 0===n.ignoreIfExists||(r.options=n),r},e.is=function(e){var t=e;return t&&"rename"===t.kind&&$.string(t.oldUri)&&$.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||$.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||$.boolean(t.options.ignoreIfExists)))}}(y||(e.RenameFile=y={})),e.DeleteFile=b,function(e){e.create=function(e,t){var n={kind:"delete",uri:e};return void 0===t||void 0===t.recursive&&void 0===t.ignoreIfNotExists||(n.options=t),n},e.is=function(e){var t=e;return t&&"delete"===t.kind&&$.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||$.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||$.boolean(t.options.ignoreIfNotExists)))}}(b||(e.DeleteFile=b={})),e.WorkspaceEdit=T,function(e){e.is=function(e){var t=e;return t&&(void 0!==t.changes||void 0!==t.documentChanges)&&(void 0===t.documentChanges||t.documentChanges.every((function(e){return $.string(e.kind)?g.is(e)||y.is(e)||b.is(e):v.is(e)})))}}(T||(e.WorkspaceEdit=T={}));var E,O,w,x,_,k,C,S,N,D,I,A,L,j,F,M,R,P,V,U,B,q,H,G,z,Q,K,W,Y=function(){function e(e){this.edits=e}return e.prototype.insert=function(e,t){this.edits.push(m.insert(e,t))},e.prototype.replace=function(e,t){this.edits.push(m.replace(e,t))},e.prototype.delete=function(e){this.edits.push(m.del(e))},e.prototype.add=function(e){this.edits.push(e)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e}(),J=function(){function e(e){var t=this;this._textEditChanges=Object.create(null),e&&(this._workspaceEdit=e,e.documentChanges?e.documentChanges.forEach((function(e){if(v.is(e)){var n=new Y(e.edits);t._textEditChanges[e.textDocument.uri]=n}})):e.changes&&Object.keys(e.changes).forEach((function(n){var r=new Y(e.changes[n]);t._textEditChanges[n]=r})))}return Object.defineProperty(e.prototype,"edit",{get:function(){return this._workspaceEdit},enumerable:!0,configurable:!0}),e.prototype.getTextEditChange=function(e){if(O.is(e)){if(this._workspaceEdit||(this._workspaceEdit={documentChanges:[]}),!this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var t=e;if(!(r=this._textEditChanges[t.uri])){var n={textDocument:t,edits:i=[]};this._workspaceEdit.documentChanges.push(n),r=new Y(i),this._textEditChanges[t.uri]=r}return r}if(this._workspaceEdit||(this._workspaceEdit={changes:Object.create(null)}),!this._workspaceEdit.changes)throw new Error("Workspace edit is not configured for normal text edit changes.");var r;if(!(r=this._textEditChanges[e])){var i=[];this._workspaceEdit.changes[e]=i,r=new Y(i),this._textEditChanges[e]=r}return r},e.prototype.createFile=function(e,t){this.checkDocumentChanges(),this._workspaceEdit.documentChanges.push(g.create(e,t))},e.prototype.renameFile=function(e,t,n){this.checkDocumentChanges(),this._workspaceEdit.documentChanges.push(y.create(e,t,n))},e.prototype.deleteFile=function(e,t){this.checkDocumentChanges(),this._workspaceEdit.documentChanges.push(b.create(e,t))},e.prototype.checkDocumentChanges=function(){if(!this._workspaceEdit||!this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.")},e}();e.WorkspaceChange=J,e.TextDocumentIdentifier=E,function(e){e.create=function(e){return{uri:e}},e.is=function(e){var t=e;return $.defined(t)&&$.string(t.uri)}}(E||(e.TextDocumentIdentifier=E={})),e.VersionedTextDocumentIdentifier=O,function(e){e.create=function(e,t){return{uri:e,version:t}},e.is=function(e){var t=e;return $.defined(t)&&$.string(t.uri)&&(null===t.version||$.number(t.version))}}(O||(e.VersionedTextDocumentIdentifier=O={})),e.TextDocumentItem=w,function(e){e.create=function(e,t,n,r){return{uri:e,languageId:t,version:n,text:r}},e.is=function(e){var t=e;return $.defined(t)&&$.string(t.uri)&&$.string(t.languageId)&&$.number(t.version)&&$.string(t.text)}}(w||(e.TextDocumentItem=w={})),e.MarkupKind=x,function(e){e.PlainText="plaintext",e.Markdown="markdown"}(x||(e.MarkupKind=x={})),function(e){e.is=function(t){var n=t;return n===e.PlainText||n===e.Markdown}}(x||(e.MarkupKind=x={})),e.MarkupContent=_,function(e){e.is=function(e){var t=e;return $.objectLiteral(e)&&x.is(t.kind)&&$.string(t.value)}}(_||(e.MarkupContent=_={})),e.CompletionItemKind=k,function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25}(k||(e.CompletionItemKind=k={})),e.InsertTextFormat=C,function(e){e.PlainText=1,e.Snippet=2}(C||(e.InsertTextFormat=C={})),e.CompletionItemTag=S,function(e){e.Deprecated=1}(S||(e.CompletionItemTag=S={})),e.CompletionItem=N,function(e){e.create=function(e){return{label:e}}}(N||(e.CompletionItem=N={})),e.CompletionList=D,function(e){e.create=function(e,t){return{items:e||[],isIncomplete:!!t}}}(D||(e.CompletionList=D={})),e.MarkedString=I,function(e){e.fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},e.is=function(e){var t=e;return $.string(t)||$.objectLiteral(t)&&$.string(t.language)&&$.string(t.value)}}(I||(e.MarkedString=I={})),e.Hover=A,function(e){e.is=function(e){var t=e;return!!t&&$.objectLiteral(t)&&(_.is(t.contents)||I.is(t.contents)||$.typedArray(t.contents,I.is))&&(void 0===e.range||n.is(e.range))}}(A||(e.Hover=A={})),e.ParameterInformation=L,function(e){e.create=function(e,t){return t?{label:e,documentation:t}:{label:e}}}(L||(e.ParameterInformation=L={})),e.SignatureInformation=j,function(e){e.create=function(e,t){for(var n=[],r=2;r=0;o--){var a=r[o],s=e.offsetAt(a.range.start),l=e.offsetAt(a.range.end);if(!(l<=i))throw new Error("Overlapping edit");n=n.substring(0,s)+a.newText+n.substring(l,n.length),i=s}return n}}(W||(e.TextDocument=W={}));var $,X=function(){function e(e,t,n,r){this._uri=e,this._languageId=t,this._version=n,this._content=r,this._lineOffsets=void 0}return Object.defineProperty(e.prototype,"uri",{get:function(){return this._uri},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._version},enumerable:!0,configurable:!0}),e.prototype.getText=function(e){if(e){var t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content},e.prototype.update=function(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0},e.prototype.getLineOffsets=function(){if(void 0===this._lineOffsets){for(var e=[],t=this._content,n=!0,r=0;r0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets},e.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var n=this.getLineOffsets(),r=0,i=n.length;if(0===i)return t.create(0,e);for(;re?i=o:r=o+1}var a=r-1;return t.create(a,e-n[a])},e.prototype.offsetAt=function(e){var t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;var n=t[e.line],r=e.line+1" "===e||"\t"===e||","===e||"\n"===e||"\r"===e||"\ufeff"===e||" "===e,e.LexRules={Name:/^[_A-Za-z][_0-9A-Za-z]*/,Punctuation:/^(?:!|\$|\(|\)|\.\.\.|:|=|&|@|\[|]|\{|\||\})/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^(?:"""(?:\\"""|[^"]|"[^"]|""[^"])*(?:""")?|"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?)/,Comment:/^#.*/};const n={Document:[(0,t.list)("Definition")],Definition(e){switch(e.value){case"{":return"ShortQuery";case"query":return"Query";case"mutation":return"Mutation";case"subscription":return"Subscription";case"fragment":return"FragmentDefinition";case"schema":return"SchemaDef";case"scalar":return"ScalarDef";case"type":return"ObjectTypeDef";case"interface":return"InterfaceDef";case"union":return"UnionDef";case"enum":return"EnumDef";case"input":return"InputDef";case"extend":return"ExtendDef";case"directive":return"DirectiveDef"}},ShortQuery:["SelectionSet"],Query:[i("query"),(0,t.opt)(o("def")),(0,t.opt)("VariableDefinitions"),(0,t.list)("Directive"),"SelectionSet"],Mutation:[i("mutation"),(0,t.opt)(o("def")),(0,t.opt)("VariableDefinitions"),(0,t.list)("Directive"),"SelectionSet"],Subscription:[i("subscription"),(0,t.opt)(o("def")),(0,t.opt)("VariableDefinitions"),(0,t.list)("Directive"),"SelectionSet"],VariableDefinitions:[(0,t.p)("("),(0,t.list)("VariableDefinition"),(0,t.p)(")")],VariableDefinition:["Variable",(0,t.p)(":"),"Type",(0,t.opt)("DefaultValue")],Variable:[(0,t.p)("$","variable"),o("variable")],DefaultValue:[(0,t.p)("="),"Value"],SelectionSet:[(0,t.p)("{"),(0,t.list)("Selection"),(0,t.p)("}")],Selection:(e,t)=>"..."===e.value?t.match(/[\s\u00a0,]*(on\b|@|{)/,!1)?"InlineFragment":"FragmentSpread":t.match(/[\s\u00a0,]*:/,!1)?"AliasedField":"Field",AliasedField:[o("property"),(0,t.p)(":"),o("qualifier"),(0,t.opt)("Arguments"),(0,t.list)("Directive"),(0,t.opt)("SelectionSet")],Field:[o("property"),(0,t.opt)("Arguments"),(0,t.list)("Directive"),(0,t.opt)("SelectionSet")],Arguments:[(0,t.p)("("),(0,t.list)("Argument"),(0,t.p)(")")],Argument:[o("attribute"),(0,t.p)(":"),"Value"],FragmentSpread:[(0,t.p)("..."),o("def"),(0,t.list)("Directive")],InlineFragment:[(0,t.p)("..."),(0,t.opt)("TypeCondition"),(0,t.list)("Directive"),"SelectionSet"],FragmentDefinition:[i("fragment"),(0,t.opt)((0,t.butNot)(o("def"),[i("on")])),"TypeCondition",(0,t.list)("Directive"),"SelectionSet"],TypeCondition:[i("on"),"NamedType"],Value(e){switch(e.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(e.value){case"[":return"ListValue";case"{":return"ObjectValue";case"$":return"Variable";case"&":return"NamedType"}return null;case"Name":switch(e.value){case"true":case"false":return"BooleanValue"}return"null"===e.value?"NullValue":"EnumValue"}},NumberValue:[(0,t.t)("Number","number")],StringValue:[(0,t.t)("String","string")],BooleanValue:[(0,t.t)("Name","builtin")],NullValue:[(0,t.t)("Name","keyword")],EnumValue:[o("string-2")],ListValue:[(0,t.p)("["),(0,t.list)("Value"),(0,t.p)("]")],ObjectValue:[(0,t.p)("{"),(0,t.list)("ObjectField"),(0,t.p)("}")],ObjectField:[o("attribute"),(0,t.p)(":"),"Value"],Type:e=>"["===e.value?"ListType":"NonNullType",ListType:[(0,t.p)("["),"Type",(0,t.p)("]"),(0,t.opt)((0,t.p)("!"))],NonNullType:["NamedType",(0,t.opt)((0,t.p)("!"))],NamedType:[(r="atom",{style:r,match:e=>"Name"===e.kind,update(e,t){e.prevState&&e.prevState.prevState&&(e.name=t.value,e.prevState.prevState.type=t.value)}})],Directive:[(0,t.p)("@","meta"),o("meta"),(0,t.opt)("Arguments")],DirectiveDef:[i("directive"),(0,t.p)("@","meta"),o("meta"),(0,t.opt)("ArgumentsDef"),i("on"),(0,t.list)("DirectiveLocation",(0,t.p)("|"))],InterfaceDef:[i("interface"),o("atom"),(0,t.opt)("Implements"),(0,t.list)("Directive"),(0,t.p)("{"),(0,t.list)("FieldDef"),(0,t.p)("}")],Implements:[i("implements"),(0,t.list)("NamedType",(0,t.p)("&"))],DirectiveLocation:[o("string-2")],SchemaDef:[i("schema"),(0,t.list)("Directive"),(0,t.p)("{"),(0,t.list)("OperationTypeDef"),(0,t.p)("}")],OperationTypeDef:[o("keyword"),(0,t.p)(":"),o("atom")],ScalarDef:[i("scalar"),o("atom"),(0,t.list)("Directive")],ObjectTypeDef:[i("type"),o("atom"),(0,t.opt)("Implements"),(0,t.list)("Directive"),(0,t.p)("{"),(0,t.list)("FieldDef"),(0,t.p)("}")],FieldDef:[o("property"),(0,t.opt)("ArgumentsDef"),(0,t.p)(":"),"Type",(0,t.list)("Directive")],ArgumentsDef:[(0,t.p)("("),(0,t.list)("InputValueDef"),(0,t.p)(")")],InputValueDef:[o("attribute"),(0,t.p)(":"),"Type",(0,t.opt)("DefaultValue"),(0,t.list)("Directive")],UnionDef:[i("union"),o("atom"),(0,t.list)("Directive"),(0,t.p)("="),(0,t.list)("UnionMember",(0,t.p)("|"))],UnionMember:["NamedType"],EnumDef:[i("enum"),o("atom"),(0,t.list)("Directive"),(0,t.p)("{"),(0,t.list)("EnumValueDef"),(0,t.p)("}")],EnumValueDef:[o("string-2"),(0,t.list)("Directive")],InputDef:[i("input"),o("atom"),(0,t.list)("Directive"),(0,t.p)("{"),(0,t.list)("InputValueDef"),(0,t.p)("}")],ExtendDef:[i("extend"),"ObjectTypeDef"]};var r;function i(e){return{style:"keyword",match:t=>"Name"===t.kind&&t.value===e}}function o(e){return{style:e,match:e=>"Name"===e.kind,update(e,t){e.name=t.value}}}e.ParseRules=n})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t],void 0===(o="function"==typeof(r=function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.opt=function(e){return{ofRule:e}},e.list=function(e,t){return{ofRule:e,isList:!0,separator:t}},e.butNot=function(e,t){const n=e.match;return e.match=e=>{let r=!1;return n&&(r=n(e)),r&&t.every(t=>t.match&&!t.match(e))},e},e.t=function(e,t){return{style:t,match:t=>t.kind===e}},e.p=function(e,t){return{style:t||"punctuation",match:t=>"Punctuation"===t.kind&&t.value===e}}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(33)],void 0===(o="function"==typeof(r=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getDefinitionQueryResultForNamedType=function(e,t,a){return n(this,void 0,void 0,(function*(){const n=t.name.value,s=a.filter(({definition:e})=>e.name&&e.name.value===n);if(0===s.length)throw Error("Definition not found for GraphQL type "+n);const l=s.map(({filePath:e,content:t,definition:n})=>function(e,t,n){const a=n.name;return r(a,"Expected ASTNode to have a Name."),{path:e,position:o(t,n),range:i(t,n),name:a.value||"",language:"GraphQL",projectRoot:e}}(e||"",t,n));return{definitions:l,queryRange:l.map(n=>i(e,t))}}))},e.getDefinitionQueryResultForFragmentSpread=function(e,t,r){return n(this,void 0,void 0,(function*(){const n=t.name.value,o=r.filter(({definition:e})=>e.name.value===n);if(0===o.length)throw Error("Definition not found for GraphQL fragment "+n);const s=o.map(({filePath:e,content:t,definition:n})=>a(e||"",t,n));return{definitions:s,queryRange:s.map(n=>i(e,t))}}))},e.getDefinitionQueryResultForDefinitionNode=function(e,t,n){return{definitions:[a(e,t,n)],queryRange:n.name?[i(t,n.name)]:[]}},e.LANGUAGE=void 0;var n=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))};function r(e,t){if(!e)throw new Error(t)}function i(e,n){const i=n.loc;return r(i,"Expected ASTNode to have a location."),(0,t.locToRange)(e,i)}function o(e,n){const i=n.loc;return r(i,"Expected ASTNode to have a location."),(0,t.offsetToPosition)(e,i.start)}function a(e,t,n){const r=n.name;if(!r)throw Error("Expected ASTNode to have a Name.");return{path:e,position:o(t,n),range:i(t,n),name:r.value||"",language:"GraphQL",projectRoot:e}}e.LANGUAGE="GraphQL"})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(15),n(37),n(33)],void 0===(o="function"==typeof(r=function(e,t,n,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getDiagnostics=function(e,n=null,r,i,a){let l=null;a&&(e+="string"==typeof a?"\n\n"+a:"\n\n"+a.reduce((e,n)=>e+=(0,t.print)(n)+"\n\n",""));try{l=(0,t.parse)(e)}catch(t){const n=u(t.locations[0],e);return[{severity:o.Error,message:t.message,source:"GraphQL: Syntax",range:n}]}return s(l,n,r,i)},e.validateQuery=s,e.getRange=u,e.DIAGNOSTIC_SEVERITY=e.SEVERITY=void 0;const i={Error:"Error",Warning:"Warning",Information:"Information",Hint:"Hint"};e.SEVERITY=i;const o={[i.Error]:1,[i.Warning]:2,[i.Information]:3,[i.Hint]:4};e.DIAGNOSTIC_SEVERITY=o;const a=(e,t)=>{if(!e)throw new Error(t)};function s(e,n=null,i,a){if(!n)return[];const s=l((0,r.validateWithCustomRules)(n,e,i,a),e=>c(e,o.Error,"Validation")),u=l((0,t.findDeprecatedUsages)(n,e),e=>c(e,o.Warning,"Deprecation"));return s.concat(u)}function l(e,t){return Array.prototype.concat.apply([],e.map(t))}function c(e,t,n){if(!e.nodes)return[];const i=[];return e.nodes.forEach(o=>{const s="Variable"!==o.kind&&"name"in o&&void 0!==o.name?o.name:"variable"in o&&void 0!==o.variable?o.variable:o;if(s){a(e.locations,"GraphQL validation error requires locations.");const o=e.locations[0],l=function(e){const t=e.loc;return a(t,"Expected ASTNode to have a location."),t}(s),c=o.column+(l.end-l.start);i.push({source:"GraphQL: "+n,message:e.message,severity:t,range:new r.Range(new r.Position(o.line-1,o.column-1),new r.Position(o.line-1,c))})}}),i}function u(e,t){const i=(0,n.onlineParser)(),o=i.startState(),s=t.split("\n");a(s.length>=e.line,"Query text must have more lines than where the error happened");let l=null;for(let t=0;t({representativeName:t.name,startPosition:(0,n.offsetToPosition)(e,t.loc.start),endPosition:(0,n.offsetToPosition)(e,t.loc.end),kind:t.kind,children:t.selectionSet||t.fields||t.values||t.arguments||[]});return{Field:e=>{const n=e.alias?[i("plain",e.alias),i("plain",": ")]:[];return n.push(i("plain",e.name)),Object.assign({tokenizedText:n},t(e))},OperationDefinition:e=>Object.assign({tokenizedText:[i("keyword",e.operation),i("whitespace"," "),i("class-name",e.name)]},t(e)),Document:e=>e.definitions,SelectionSet:e=>function(e,t){const n=[];for(let r=0;re.kind===r?e.selectionSet:e),Name:e=>e.value,FragmentDefinition:e=>Object.assign({tokenizedText:[i("keyword","fragment"),i("whitespace"," "),i("class-name",e.name)]},t(e)),InterfaceTypeDefinition:e=>Object.assign({tokenizedText:[i("keyword","interface"),i("whitespace"," "),i("class-name",e.name)]},t(e)),EnumTypeDefinition:e=>Object.assign({tokenizedText:[i("keyword","enum"),i("whitespace"," "),i("class-name",e.name)]},t(e)),EnumValueDefinition:e=>Object.assign({tokenizedText:[i("plain",e.name)]},t(e)),ObjectTypeDefinition:e=>Object.assign({tokenizedText:[i("keyword","type"),i("whitespace"," "),i("class-name",e.name)]},t(e)),InputObjectTypeDefinition:e=>Object.assign({tokenizedText:[i("keyword","input"),i("whitespace"," "),i("class-name",e.name)]},t(e)),FragmentSpread:e=>Object.assign({tokenizedText:[i("plain","..."),i("class-name",e.name)]},t(e)),InputValueDefinition:e=>Object.assign({tokenizedText:[i("plain",e.name)]},t(e)),FieldDefinition:e=>Object.assign({tokenizedText:[i("plain",e.name)]},t(e)),InlineFragment:e=>e.selectionSet}}(e);return{outlineTrees:(0,t.visit)(o,{leave:e=>void 0!==a&&e.kind in a?a[e.kind](e):null})}};const{INLINE_FRAGMENT:r}=t.Kind;function i(e,t){return{kind:e,value:t}}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(15),n(57)],void 0===(o="function"==typeof(r=function(e,t,n){"use strict";function r(e,t,n){if(!t.fieldDef)return;const r=t.fieldDef.name;"__"!==r.slice(0,2)&&(a(e,t,n,t.parentType),l(e,".")),l(e,r)}function i(e,t,n){t.directiveDef&&l(e,"@"+t.directiveDef.name)}function o(e,t,n,r){l(e,": "),a(e,t,n,r)}function a(e,n,r,i){i&&(i instanceof t.GraphQLNonNull?(a(e,n,r,i.ofType),l(e,"!")):i instanceof t.GraphQLList?(l(e,"["),a(e,n,r,i.ofType),l(e,"]")):l(e,i.name))}function s(e,t,n){if(!n)return;const r="string"==typeof n.description?n.description:null;r&&(l(e,"\n\n"),l(e,r)),function(e,t,n){if(!n)return;const r=n.deprecationReason?n.deprecationReason:null;r&&(l(e,"\n\n"),l(e,"Deprecated: "),l(e,r))}(e,0,n)}function l(e,t){e.push(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.getHoverInformation=function(e,t,c,u){const f=u||(0,n.getTokenAtPosition)(t,c);if(!e||!f||!f.state)return"";const d=f.state,p=d.kind,h=d.step,m=(0,n.getTypeInfo)(e,f.state),v={schema:e};if("Field"===p&&0===h&&m.fieldDef||"AliasedField"===p&&2===h&&m.fieldDef){const e=[];return function(e,t,n){r(e,t,n),o(e,t,n,t.type)}(e,m,v),s(e,0,m.fieldDef),e.join("").trim()}if("Directive"===p&&1===h&&m.directiveDef){const e=[];return i(e,m),s(e,0,m.directiveDef),e.join("").trim()}if("Argument"===p&&0===h&&m.argDef){const e=[];return function(e,t,n){if(t.directiveDef?i(e,t):t.fieldDef&&r(e,t,n),!t.argDef)return;const a=t.argDef.name;l(e,"("),l(e,a),o(e,t,n,t.inputType),l(e,")")}(e,m,v),s(e,0,m.argDef),e.join("").trim()}if("EnumValue"===p&&m.enumValue&&"description"in m.enumValue){const e=[];return function(e,t,n){if(!t.enumValue)return;const r=t.enumValue.name;a(e,t,n,t.inputType),l(e,"."),l(e,r)}(e,m,v),s(e,0,m.enumValue),e.join("").trim()}if("NamedType"===p&&m.type&&"description"in m.type){const e=[];return a(e,m,v,m.type),s(e,0,m.type),e.join("").trim()}return""}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var e=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=n(15),i=n(7),o=e(n(80));function a(e,t,n){return n===i.SchemaMetaFieldDef.name&&e.getQueryType()===t?i.SchemaMetaFieldDef:n===i.TypeMetaFieldDef.name&&e.getQueryType()===t?i.TypeMetaFieldDef:n===i.TypeNameMetaFieldDef.name&&r.isCompositeType(t)?i.TypeNameMetaFieldDef:t&&t.getFields?t.getFields()[n]:void 0}t.default=function(e,t){var n={schema:e,type:null,parentType:null,inputType:null,directiveDef:null,fieldDef:null,argDef:null,argDefs:null,objectFieldDefs:null};return o.default(t,(function(t){switch(t.kind){case"Query":case"ShortQuery":n.type=e.getQueryType();break;case"Mutation":n.type=e.getMutationType();break;case"Subscription":n.type=e.getSubscriptionType();break;case"InlineFragment":case"FragmentDefinition":t.type&&(n.type=e.getType(t.type));break;case"Field":case"AliasedField":n.fieldDef=n.type&&t.name?a(e,n.parentType,t.name):null,n.type=n.fieldDef&&n.fieldDef.type;break;case"SelectionSet":n.parentType=n.type?r.getNamedType(n.type):null;break;case"Directive":n.directiveDef=t.name?e.getDirective(t.name):null;break;case"Arguments":var i=t.prevState?"Field"===t.prevState.kind?n.fieldDef:"Directive"===t.prevState.kind?n.directiveDef:"AliasedField"===t.prevState.kind?t.prevState.name&&a(e,n.parentType,t.prevState.name):null:null;n.argDefs=i?i.args:null;break;case"Argument":if(n.argDef=null,n.argDefs)for(var o=0;o=0;i--)t(n[i])}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTypeReference=t.getEnumValueReference=t.getArgumentReference=t.getDirectiveReference=t.getFieldReference=void 0;var e=n(15);function r(e){return"__"===e.name.slice(0,2)}t.getFieldReference=function(e){return{kind:"Field",schema:e.schema,field:e.fieldDef,type:r(e.fieldDef)?null:e.parentType}},t.getDirectiveReference=function(e){return{kind:"Directive",schema:e.schema,directive:e.directiveDef}},t.getArgumentReference=function(e){return e.directiveDef?{kind:"Argument",schema:e.schema,argument:e.argDef,directive:e.directiveDef}:{kind:"Argument",schema:e.schema,argument:e.argDef,field:e.fieldDef,type:r(e.fieldDef)?null:e.parentType}},t.getEnumValueReference=function(t){return{kind:"EnumValue",value:t.enumValue||void 0,type:t.inputType?e.getNamedType(t.inputType):void 0}},t.getTypeReference=function(e,t){return{kind:"Type",schema:e.schema,type:t||e.type}}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var e=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=e(n(11));function i(e,t){var n=e.state.info,i=t.target||t.srcElement;if(i instanceof HTMLElement&&"SPAN"===i.nodeName&&void 0===n.hoverTimeout){var o=i.getBoundingClientRect(),a=function(){clearTimeout(n.hoverTimeout),n.hoverTimeout=setTimeout(l,c)},s=function(){r.default.off(document,"mousemove",a),r.default.off(e.getWrapperElement(),"mouseout",s),clearTimeout(n.hoverTimeout),n.hoverTimeout=void 0},l=function(){r.default.off(document,"mousemove",a),r.default.off(e.getWrapperElement(),"mouseout",s),n.hoverTimeout=void 0,function(e,t){var n=e.coordsChar({left:(t.left+t.right)/2,top:(t.top+t.bottom)/2}),i=e.state.info.options,o=i.render||e.getHelper(n,"info");if(o){var a=e.getTokenAt(n,!0);if(a){var s=o(a,i,e,n);s&&function(e,t,n){var i=document.createElement("div");i.className="CodeMirror-info",i.appendChild(n),document.body.appendChild(i);var o=i.getBoundingClientRect(),a=window.getComputedStyle(i),s=o.right-o.left+parseFloat(a.marginLeft)+parseFloat(a.marginRight),l=o.bottom-o.top+parseFloat(a.marginTop)+parseFloat(a.marginBottom),c=t.bottom;l>window.innerHeight-t.bottom-15&&t.top>window.innerHeight-t.bottom&&(c=t.top-l),c<0&&(c=t.bottom);var u,f=Math.max(0,window.innerWidth-s-15);f>t.left&&(f=t.left),i.style.opacity="1",i.style.top=c+"px",i.style.left=f+"px";var d=function(){clearTimeout(u)},p=function(){clearTimeout(u),u=setTimeout(h,200)},h=function(){r.default.off(i,"mouseover",d),r.default.off(i,"mouseout",p),r.default.off(e.getWrapperElement(),"mouseout",p),i.style.opacity?(i.style.opacity="0",setTimeout((function(){i.parentNode&&i.parentNode.removeChild(i)}),600)):i.parentNode&&i.parentNode.removeChild(i)};r.default.on(i,"mouseover",d),r.default.on(i,"mouseout",p),r.default.on(e.getWrapperElement(),"mouseout",p)}(e,t,s)}}}(e,o)},c=function(e){var t=e.state.info.options;return t&&t.hoverTime||500}(e);n.hoverTimeout=setTimeout(l,c),r.default.on(document,"mousemove",a),r.default.on(e.getWrapperElement(),"mouseout",s)}}r.default.defineOption("info",!1,(function(e,t,n){if(n&&n!==r.default.Init){var o=e.state.info.onMouseOver;r.default.off(e.getWrapperElement(),"mouseover",o),clearTimeout(e.state.info.hoverTimeout),delete e.state.info}if(t){var a=e.state.info=function(e){return{options:e instanceof Function?{render:e}:!0===e?{}:e}}(t);a.onMouseOver=i.bind(null,e),r.default.on(e.getWrapperElement(),"mouseover",a.onMouseOver)}}))})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(16),n(15)],void 0===(o="function"==typeof(r=function(e,t,n){"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function({field:e}){return"defaultValue"in e&&void 0!==e.defaultValue?t.default.createElement("span",null," = ",t.default.createElement("span",{className:"arg-default-value"},(r=(0,n.astFromValue)(e.defaultValue,e.type))?(0,n.print)(r):"")):null;var r},t=(r=t)&&r.__esModule?r:{default:r}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t],void 0===(o="function"==typeof(r=function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e,t){let n;return function(...r){n&&window.clearTimeout(n),n=window.setTimeout(()=>{n=null,t.apply(this,r)},e)}}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(3),i=n(8),o=n(26),a=n(1);function s(e,t){switch(e.kind){case a.a.NULL:return null;case a.a.INT:return parseInt(e.value,10);case a.a.FLOAT:return parseFloat(e.value);case a.a.STRING:case a.a.ENUM:case a.a.BOOLEAN:return e.value;case a.a.LIST:return e.values.map((function(e){return s(e,t)}));case a.a.OBJECT:return Object(o.a)(e.fields,(function(e){return e.name.value}),(function(e){return s(e.value,t)}));case a.a.VARIABLE:return null==t?void 0:t[e.name.value]}Object(i.a)(0,"Unexpected value node: "+Object(r.a)(e))}},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(87),n(88),n(96),n(97),n(98),n(99),n(100),n(101),n(102),n(103),n(104),n(105),n(106)],void 0===(o="function"==typeof(r=function(e,t,n,r,i,o,a,s,l,c,u,f,d,p){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,p.GraphiQL.createFetcher=n.createGraphiQLFetcher;var h=p.GraphiQL;e.default=h})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t=function(e){var t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",o=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function l(e,t,n,r){var i=t&&t.prototype instanceof f?t:f,o=Object.create(i.prototype),a=new w(r||[]);return o._invoke=function(e,t,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return{value:void 0,done:!0}}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=T(a,n);if(s){if(s===u)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=c(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===u)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}(e,n,a),o}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var u={};function f(){}function d(){}function p(){}var h={};h[i]=function(){return this};var m=Object.getPrototypeOf,v=m&&m(m(x([])));v&&v!==t&&n.call(v,i)&&(h=v);var g=p.prototype=f.prototype=Object.create(h);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){var r;this._invoke=function(i,o){function a(){return new t((function(r,a){!function r(i,o,a,s){var l=c(e[i],e,o);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(f).then((function(e){u.value=e,a(u)}),(function(e){return r("throw",e,a,s)}))}s(l.arg)}(i,o,r,a)}))}return r=r?r.then(a,a):a()}}function T(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,T(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var r=c(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,u;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function w(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(s&&l){if(this.prev=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;O(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:x(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),u}},e}(e.exports);try{regeneratorRuntime=t}catch(e){Function("r","regeneratorRuntime = r")(t)}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(89)],void 0===(o="function"==typeof(r=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.keys(t).forEach((function(n){"default"!==n&&"__esModule"!==n&&(n in e&&e[n]===t[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[n]}}))}))})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(90),n(91)],void 0===(o="function"==typeof(r=function(e,t,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r={createGraphiQLFetcher:!0};Object.defineProperty(e,"createGraphiQLFetcher",{enumerable:!0,get:function(){return n.createGraphiQLFetcher}}),Object.keys(t).forEach((function(n){"default"!==n&&"__esModule"!==n&&(Object.prototype.hasOwnProperty.call(r,n)||n in e&&e[n]===t[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[n]}}))}))})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t],void 0===(o="function"==typeof(r=function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0})})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(92)],void 0===(o="function"==typeof(r=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createGraphiQLFetcher=function(e){let n;if(null!==typeof window&&(null===window||void 0===window?void 0:window.fetch)&&(n=window.fetch),null!==(null==e?void 0:e.enableIncrementalDelivery)&&!1===e.enableIncrementalDelivery||(e.enableIncrementalDelivery=!0),e.fetch&&(n=e.fetch),!n)throw Error("No valid fetcher implementation available");const r=(0,t.createSimpleFetcher)(e,n),i=(0,t.getWsFetcher)(e),o=e.enableIncrementalDelivery?(0,t.createMultipartFetcher)(e,n):r;return(n,a)=>{if("IntrospectionQuery"===n.operationName)return(e.schemaFetcher||r)(n,a);if((0,t.isSubscriptionWithName)(null==a?void 0:a.documentAST,n.operationName)){if(!i)throw Error("Your GraphiQL createFetcher is not properly configured for websocket subscriptions yet. "+(e.subscriptionUrl?`Provided URL ${e.subscriptionUrl} failed`:"Please provide subscriptionUrl, wsClient or legacyClient option first."));return i(n)}return o(n,a)}}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(15),n(93),n(94),n(95)],void 0===(o="function"==typeof(r=function(e,t,n,r,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getWsFetcher=e.createMultipartFetcher=e.createLegacyWebsocketsFetcher=e.createWebsocketsFetcherFromClient=e.createWebsocketsFetcherFromUrl=e.createSimpleFetcher=e.isSubscriptionWithName=void 0;var o=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))},a=function(e){return this instanceof a?(this.v=e,this):new a(e)},s=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,i){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,i,(t=e[n](t)).done,t.value)}))}}},l=function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),o=[];return r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r;function s(e){i[e]&&(r[e]=function(t){return new Promise((function(n,r){o.push([e,t,n,r])>1||l(e,t)}))})}function l(e,t){try{(n=i[e](t)).value instanceof a?Promise.resolve(n.value.v).then(c,u):f(o[0][2],n)}catch(e){f(o[0][3],e)}var n}function c(e){l("next",e)}function u(e){l("throw",e)}function f(e,t){e(t),o.shift(),o.length&&l(o[0][0],o[0][1])}};e.isSubscriptionWithName=(e,n)=>{let r=!1;return(0,t.visit)(e,{OperationDefinition(e){var t;n===(null===(t=e.name)||void 0===t?void 0:t.value)&&"subscription"===e.operation&&(r=!0)}}),r},e.createSimpleFetcher=(e,t)=>(n,r)=>o(void 0,void 0,void 0,(function*(){return(yield t(e.url,{method:"POST",body:JSON.stringify(n),headers:Object.assign(Object.assign({"content-type":"application/json"},e.headers),null==r?void 0:r.headers)})).json()}));const c=(e,t)=>{let n;try{return n=(0,r.createClient)({url:e,connectionParams:t}),u(n)}catch(t){console.error(`Error creating websocket client for:\n${e}\n\n${t}`)}};e.createWebsocketsFetcherFromUrl=c;const u=e=>t=>(0,i.makeAsyncIterableIteratorFromSink)(n=>e.subscribe(t,Object.assign(Object.assign({},n),{error:e=>{e instanceof Error?n.error(e):e instanceof CloseEvent?n.error(new Error(`Socket closed with event ${e.code} ${e.reason||""}`.trim())):n.error(new Error(e.map(({message:e})=>e).join(", ")))}})));e.createWebsocketsFetcherFromClient=u;const f=e=>t=>{const n=e.request(t);return(0,i.makeAsyncIterableIteratorFromSink)(e=>n.subscribe(e).unsubscribe)};e.createLegacyWebsocketsFetcher=f,e.createMultipartFetcher=(e,t)=>function(r,o){return l(this,arguments,(function*(){var l,c;const u=yield a(t(e.url,{method:"POST",body:JSON.stringify(r),headers:Object.assign(Object.assign({"content-type":"application/json",accept:"application/json, multipart/mixed"},e.headers),null==o?void 0:o.headers)}).then(e=>(0,n.meros)(e,{multiple:!0})));if(!(0,i.isAsyncIterable)(u))return yield a(yield yield a(u.json()));try{for(var f,d=s(u);!(f=yield a(d.next())).done;){const e=f.value;if(e.some(e=>!e.json)){const t=e.map(e=>`Headers::\n${e.headers}\n\nBody::\n${e.body}`);throw new Error("Expected multipart chunks to be of json type. got:\n"+t)}yield yield a(e.map(e=>e.body))}}catch(e){l={error:e}}finally{try{f&&!f.done&&(c=d.return)&&(yield a(c.call(d)))}finally{if(l)throw l.error}}}))},e.getWsFetcher=e=>e.wsClient?u(e.wsClient):e.legacyClient?f(e.legacyClient):e.subscriptionUrl?c(e.subscriptionUrl,e.wsConnectionParams):void 0})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){"use strict";n.r(t),n.d(t,"meros",(function(){return i}));const r=new TextDecoder;async function i(e,t){if(!e.ok||!e.body||e.bodyUsed)return e;const n=e.headers.get("content-type");if(!n||!~n.indexOf("multipart/mixed"))return e;const i=n.indexOf("boundary=");return async function*(e,t,n){const i=e.getReader(),o=!n||!n.multiple;let a="",s=!0,l=[];try{let e;e:for(;!(e=await i.read()).done;){const n=r.decode(e.value),i=n.indexOf(t);let c=a.length;for(a+=n,~i?c+=i:c=a.indexOf(t),l=[];~c;){const e=a.substring(0,c),n=a.substring(c+t.length);if(s)s=!1;else{const t={},r=e.indexOf("\r\n\r\n"),i=a.slice(0,r).toString().trim().split(/\r\n/);let s;for(;s=i.shift();)s=s.split(": "),t[s.shift().toLowerCase()]=s.join(": ");let c=e.substring(r+"\r\n\r\n".length,e.lastIndexOf("\r\n")),u=!1;if(s=t["content-type"],s&&~s.indexOf("application/json"))try{c=JSON.parse(c),u=!0}catch(e){}if(s={headers:t,body:c,json:u},o?yield s:l.push(s),"--"===n.substring(0,2))break e}a=n,c=a.indexOf(t)}l.length&&(yield l)}}finally{l.length&&(yield l),i.releaseLock()}}(e.body,"--"+(~i?n.substring(i+9).trim().replace(/['"]/g,""):"-"),t)}},function(e,t,n){(function(n){var r,i,o;!function(n,a){i=[],void 0===(o="function"==typeof(r=a)?r.apply(t,i):r)||(e.exports=o)}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,(function(){"use strict";(function(e){const t=Object.prototype.hasOwnProperty;function r(e){return"object"==typeof e&&null!==e}function i(e,n){return t.call(e,n)}function o(e,n){return t.call(e,n)&&r(e[n])}function a(e,n){return t.call(e,n)&&"string"==typeof e[n]}var s;function l(t){if(r(t)){if(!a(t,"type"))return!1;switch(t.type){case e.MessageType.ConnectionInit:case e.MessageType.ConnectionAck:return!i(t,"payload")||void 0===t.payload||r(t.payload);case e.MessageType.Subscribe:return a(t,"id")&&o(t,"payload")&&(!i(t.payload,"operationName")||void 0===t.payload.operationName||null===t.payload.operationName||"string"==typeof t.payload.operationName)&&a(t.payload,"query")&&(!i(t.payload,"variables")||void 0===t.payload.variables||null===t.payload.variables||o(t.payload,"variables"));case e.MessageType.Next:return a(t,"id")&&o(t,"payload");case e.MessageType.Error:return a(t,"id")&&(n=t.payload,Array.isArray(n)&&n.length>0&&n.every(e=>"message"in e));case e.MessageType.Complete:return a(t,"id");default:return!1}}var n;return!1}function c(e){if(l(e))return e;if("string"!=typeof e)throw new Error("Message not parsable");const t=JSON.parse(e);if(!l(t))throw new Error("Invalid message");return t}function u(e){if(!l(e))throw new Error("Cannot stringify invalid message");return JSON.stringify(e)}function f(e){return r(e)&&"code"in e&&"reason"in e}e.MessageType=void 0,(s=e.MessageType||(e.MessageType={})).ConnectionInit="connection_init",s.ConnectionAck="connection_ack",s.Subscribe="subscribe",s.Next="next",s.Error="error",s.Complete="complete",e.GRAPHQL_TRANSPORT_WS_PROTOCOL="graphql-transport-ws",e.createClient=function(t){const{url:r,connectionParams:i,lazy:o=!0,onNonLazyError:a=console.error,keepAlive:s=0,retryAttempts:l=5,retryWait:d=async function(e){let t=1e3;for(let n=0;nsetTimeout(e,t+Math.floor(2700*Math.random()+300)))},isFatalConnectionProblem:p=(e=>!f(e)),on:h,webSocketImpl:m,generateID:v=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{const t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)})}}=t;let g;if(m){if(!("function"==typeof(y=m)&&"constructor"in y&&"CLOSED"in y&&"CLOSING"in y&&"CONNECTING"in y&&"OPEN"in y))throw new Error("Invalid WebSocket implementation provided");g=m}else"undefined"!=typeof WebSocket?g=WebSocket:void 0!==n?g=n.WebSocket||n.MozWebSocket:"undefined"!=typeof window&&(g=window.WebSocket||window.MozWebSocket);var y;if(!g)throw new Error("WebSocket implementation missing");const b=g,T=(()=>{const e=(()=>{const e={};return{on:(t,n)=>(e[t]=n,()=>{delete e[t]}),emit(t){var n;"id"in t&&(null===(n=e[t.id])||void 0===n||n.call(e,t))}}})(),t={connecting:(null==h?void 0:h.connecting)?[h.connecting]:[],connected:(null==h?void 0:h.connected)?[h.connected]:[],message:(null==h?void 0:h.message)?[e.emit,h.message]:[e.emit],closed:(null==h?void 0:h.closed)?[h.closed]:[],error:(null==h?void 0:h.error)?[h.error]:[]};return{onMessage:e.on,on(e,n){const r=t[e];return r.push(n),()=>{r.splice(r.indexOf(n),1)}},emit(e,...n){for(const r of t[e])r(...n)}}})();let E,O=0,w=!1,x=0,_=!1;async function k(){O++;const[t,n]=await(null!=E?E:E=new Promise((t,n)=>(async()=>{w&&(await d(x),x++),T.emit("connecting");const o=new b("function"==typeof r?await r():r,"graphql-transport-ws");o.onerror=e=>{T.emit("error",e)},o.onclose=e=>{E=void 0,T.emit("closed",e),n(e)},o.onopen=async()=>{try{o.send(u({type:e.MessageType.ConnectionInit,payload:"function"==typeof i?await i():i}))}catch(e){o.close(4400,e instanceof Error?e.message:new Error(e).message)}};let a=!1;o.onmessage=({data:n})=>{try{const r=c(n);if(T.emit("message",r),a)return;if(r.type!==e.MessageType.ConnectionAck)throw new Error("First message cannot be of type "+r.type);a=!0,T.emit("connected",o,r.payload),x=0,t([o,new Promise((e,t)=>o.addEventListener("close",t))])}catch(e){o.close(4400,e instanceof Error?e.message:new Error(e).message)}}})()));let o=()=>{};const a=new Promise(e=>o=e);return[t,o,Promise.race([a.then(()=>{if(!--O){const e=()=>t.close(1e3,"Normal Closure");isFinite(s)&&s>0?setTimeout(()=>{O||t.readyState!==b.OPEN||e()},s):e()}}),n])]}function C(e){if(f(e)&&[1002,1011,4400,4401,4409,4429].includes(e.code))throw e;if(_||f(e)&&1e3===e.code)return!1;if(!l||x>=l)throw e;if(p(e))throw e;return w=!0}return o||(async()=>{for(;;)try{const[,,e]=await k();await e}catch(e){try{if(!C(e))return}catch(e){return null==a?void 0:a(e)}}})(),{on:T.on,subscribe(t,n){const r=v();let i=!1,o=()=>{i=!0};return(async()=>{for(;;)try{const[a,s,l]=await k();if(i)return s();const c=T.onMessage(r,t=>{switch(t.type){case e.MessageType.Next:return void n.next(t.payload);case e.MessageType.Error:return i=!0,n.error(t.payload),void o();case e.MessageType.Complete:return i=!0,void o()}});return a.send(u({id:r,type:e.MessageType.Subscribe,payload:t})),o=()=>{i||a.readyState!==b.OPEN||a.send(u({id:r,type:e.MessageType.Complete})),s()},void await l.finally(c)}catch(e){if(!C(e))return}})().catch(n.error).then(n.complete),()=>o()},async dispose(){if(_=!0,E){const[e]=await E;e.close(1e3,"Normal Closure")}}}},e.isMessage=l,e.parseMessage=c,e.stringifyMessage=u,Object.defineProperty(e,"__esModule",{value:!0})})(t)}))}).call(this,n(49))},function(e,t,n){"use strict";function r(){const e={};return e.promise=new Promise((t,n)=>{e.resolve=t,e.reject=n}),e}n.r(t),n.d(t,"applyAsyncIterableIteratorToSink",(function(){return l})),n.d(t,"isAsyncIterable",(function(){return c})),n.d(t,"makeAsyncIterableIteratorFromSink",(function(){return s})),n.d(t,"makePushPullAsyncIterableIterator",(function(){return a}));const i=Symbol(),o=Symbol();function a(){let e=!0;const t=[];let n=r(),a=r();const s=async function*(){for(;;)if(t.length>0)yield t.shift();else{const e=await Promise.race([n.promise,a.promise]);if(e===i)break;if(e!==o)throw e}}();const l=s.return.bind(s);s.return=(...t)=>(e=!1,a.resolve(i),l(...t));const c=s.throw.bind(s);return s.throw=t=>(e=!1,a.resolve(t),c(t)),{pushValue:function(i){!1!==e&&(t.push(i),n.resolve(o),n=r())},asyncIterableIterator:s}}const s=e=>{const{pushValue:t,asyncIterableIterator:n}=a(),r=e({next:e=>{t(e)},complete:()=>{n.return()},error:e=>{n.throw(e)}}),i=n.return;let o=void 0;return n.return=()=>(void 0===o&&(r(),o=i()),o),n};function l(e,t){return(async()=>{try{for await(const n of e)t.next(n);t.complete()}catch(e){t.error(e)}})(),()=>{null==e.return||e.return()}}function c(e){return"object"==typeof e&&null!==e&&("AsyncGenerator"===e[Symbol.toStringTag]||Symbol.asyncIterator&&Symbol.asyncIterator in e)}},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){(function(r){var i,o,a,s;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,s=function(e,t,n,i,o,a,s,l,c,u,f,d,p,h,m,v,g,y,b,T,E,O,w,x,_,k,C){"use strict";function S(e){return e&&e.__esModule?e:{default:e}}function N(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}if(Object.defineProperty(e,"__esModule",{value:!0}),e.GraphiQL=void 0,t=S(t),i=S(i),g=S(g),y=S(y),b=S(b),T=S(T),E=S(E),O=S(O),_=S(_),parseInt(t.default.version.slice(0,2),10)<16)throw Error(["GraphiQL 0.18.0 and after is not compatible with React 15 or below.","If you are using a CDN source (jsdelivr, unpkg, etc), follow this example:","https://github.com/graphql/graphiql/blob/master/examples/graphiql-cdn/index.html#L49"].join("\n"));class D extends t.default.Component{static formatResult(e){return JSON.stringify(e,null,2)}static formatError(e){const t=Array.isArray(e)?e.map(j):j(e);return JSON.stringify(t,null,2)}constructor(e){var t,r;if(super(e),N(this,"_editorQueryID",0),N(this,"_storage",void 0),N(this,"codeMirrorSizer",void 0),N(this,"componentIsMounted",void 0),N(this,"docExplorerComponent",void 0),N(this,"graphiqlContainer",void 0),N(this,"resultComponent",void 0),N(this,"variableEditorComponent",void 0),N(this,"headerEditorComponent",void 0),N(this,"_queryHistory",void 0),N(this,"editorBarComponent",void 0),N(this,"queryEditorComponent",void 0),N(this,"resultViewerElement",void 0),N(this,"safeSetState",(e,t)=>{this.componentIsMounted&&this.setState(e,t)}),N(this,"handleClickReference",e=>{this.setState({docExplorerOpen:!0},()=>{this.docExplorerComponent&&this.docExplorerComponent.showDocForReference(e)}),this._storage.set("docExplorerOpen",JSON.stringify(this.state.docExplorerOpen))}),N(this,"handleRunQuery",async e=>{this._editorQueryID++;const t=this._editorQueryID,n=this.autoCompleteLeafs()||this.state.query,r=this.state.variables,i=this.state.headers,o=this.state.shouldPersistHeaders;let a=this.state.operationName;e&&e!==a&&(a=e,this.handleEditOperationName(a));try{this.setState({isWaitingForResponse:!0,response:void 0,operationName:a}),this._storage.set("operationName",a),this._queryHistory&&this._queryHistory.updateHistory(n,r,i,a);let e={data:{}};const s=await this._fetchQuery(n,r,i,a,o,n=>{if(t===this._editorQueryID){let t=!!Array.isArray(n)&&n;if(!t&&"string"!=typeof n&&null!==n&&"hasNext"in n&&(t=[n]),t){var r;const n={data:e.data},i=[...(null===(r=e)||void 0===r?void 0:r.errors)||[],...t.map(e=>e.errors).flat().filter(Boolean)];i.length&&(n.errors=i);for(const r of t){const{path:t,data:i,errors:o,...a}=r;if(t){if(!i)throw new Error("Expected part to contain a data property, but got "+r);(0,C.dset)(n.data,t,i)}else i&&(n.data=r.data);e={...n,...a}}this.setState({isWaitingForResponse:!1,response:D.formatResult(e)})}else this.setState({isWaitingForResponse:!1,response:D.formatResult(n)})}});this.setState({subscription:s})}catch(e){this.setState({isWaitingForResponse:!1,response:e.message})}}),N(this,"handleStopQuery",()=>{const e=this.state.subscription;this.setState({isWaitingForResponse:!1,subscription:null}),e&&e.unsubscribe()}),N(this,"handlePrettifyQuery",()=>{var e,t,r;const i=this.getQueryEditor(),o=null!==(e=null==i?void 0:i.getValue())&&void 0!==e?e:"",a=(0,n.print)((0,n.parse)(o,{experimentalFragmentVariables:!0}));a!==o&&(null==i||i.setValue(a));const s=this.getVariableEditor(),l=null!==(t=null==s?void 0:s.getValue())&&void 0!==t?t:"";try{const e=JSON.stringify(JSON.parse(l),null,2);e!==l&&(null==s||s.setValue(e))}catch{}const c=this.getHeaderEditor(),u=null!==(r=null==c?void 0:c.getValue())&&void 0!==r?r:"";try{const e=JSON.stringify(JSON.parse(u),null,2);e!==u&&(null==c||c.setValue(e))}catch{}}),N(this,"handleMergeQuery",()=>{const e=this.getQueryEditor();if(!e.getValue())return;const t=this.state.documentAST;e.setValue((0,n.print)((0,_.default)(t,this.state.schema)))}),N(this,"handleEditQuery",(0,E.default)(100,e=>{const t=this._updateQueryFacts(e,this.state.operationName,this.state.operations,this.state.schema);if(this.setState({query:e,...t}),this._storage.set("query",e),this.props.onEditQuery)return this.props.onEditQuery(e,null==t?void 0:t.documentAST)})),N(this,"handleCopyQuery",()=>{const e=this.getQueryEditor(),t=e&&e.getValue();if(t)return(0,i.default)(t),this.props.onCopyQuery?this.props.onCopyQuery(t):void 0}),N(this,"_updateQueryFacts",(e,t,n,r)=>{const i=(0,b.default)(r,e);if(i){const e=(0,T.default)(n,t,i.operations),r=this.props.onEditOperationName;return r&&e&&t!==e&&r(e),{operationName:e,...i}}}),N(this,"handleEditVariables",e=>{this.setState({variables:e}),(0,E.default)(500,()=>this._storage.set("variables",e))(),this.props.onEditVariables&&this.props.onEditVariables(e)}),N(this,"handleEditHeaders",e=>{this.setState({headers:e}),this.props.shouldPersistHeaders&&(0,E.default)(500,()=>this._storage.set("headers",e))(),this.props.onEditHeaders&&this.props.onEditHeaders(e)}),N(this,"handleEditOperationName",e=>{const t=this.props.onEditOperationName;t&&t(e)}),N(this,"handleHintInformationRender",e=>{let t;e.addEventListener("click",this._onClickHintInformation),e.addEventListener("DOMNodeRemoved",t=()=>{e.removeEventListener("DOMNodeRemoved",t),e.removeEventListener("click",this._onClickHintInformation)})}),N(this,"handleEditorRunQuery",()=>{this._runQueryAtCursor()}),N(this,"_onClickHintInformation",e=>{if(null!=e&&e.currentTarget&&"className"in e.currentTarget&&"typeName"===e.currentTarget.className){const t=e.currentTarget.innerHTML,n=this.state.schema;if(n){const e=n.getType(t);e&&(this.setState({docExplorerOpen:!0},()=>{this.docExplorerComponent&&this.docExplorerComponent.showDoc(e)}),(0,E.default)(500,()=>this._storage.set("docExplorerOpen",JSON.stringify(this.state.docExplorerOpen)))())}}}),N(this,"handleToggleDocs",()=>{"function"==typeof this.props.onToggleDocs&&this.props.onToggleDocs(!this.state.docExplorerOpen),this._storage.set("docExplorerOpen",JSON.stringify(!this.state.docExplorerOpen)),this.setState({docExplorerOpen:!this.state.docExplorerOpen})}),N(this,"handleToggleHistory",()=>{"function"==typeof this.props.onToggleHistory&&this.props.onToggleHistory(!this.state.historyPaneOpen),this._storage.set("historyPaneOpen",JSON.stringify(!this.state.historyPaneOpen)),this.setState({historyPaneOpen:!this.state.historyPaneOpen})}),N(this,"handleSelectHistoryQuery",(e,t,n,r)=>{e&&this.handleEditQuery(e),t&&this.handleEditVariables(t),n&&this.handleEditHeaders(n),r&&this.handleEditOperationName(r)}),N(this,"handleResizeStart",e=>{if(!this._didClickDragBar(e))return;e.preventDefault();const t=e.clientX-(0,x.getLeft)(e.target);let n=e=>{if(0===e.buttons)return r();const n=this.editorBarComponent,i=e.clientX-(0,x.getLeft)(n)-t,o=n.clientWidth-i;this.setState({editorFlex:i/o}),(0,E.default)(500,()=>this._storage.set("editorFlex",JSON.stringify(this.state.editorFlex)))()},r=()=>{document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",r),n=null,r=null};document.addEventListener("mousemove",n),document.addEventListener("mouseup",r)}),N(this,"handleResetResize",()=>{this.setState({editorFlex:1}),this._storage.set("editorFlex",JSON.stringify(this.state.editorFlex))}),N(this,"handleDocsResizeStart",e=>{e.preventDefault();const t=this.state.docExplorerWidth,n=e.clientX-(0,x.getLeft)(e.target);let r=e=>{if(0===e.buttons)return i();const t=this.graphiqlContainer,r=e.clientX-(0,x.getLeft)(t)-n,o=t.clientWidth-r;o<100?("function"==typeof this.props.onToggleDocs&&this.props.onToggleDocs(!this.state.docExplorerOpen),this._storage.set("docExplorerOpen",JSON.stringify(this.state.docExplorerOpen)),this.setState({docExplorerOpen:!1})):(this.setState({docExplorerOpen:!0,docExplorerWidth:Math.min(o,650)}),(0,E.default)(500,()=>this._storage.set("docExplorerWidth",JSON.stringify(this.state.docExplorerWidth)))()),this._storage.set("docExplorerOpen",JSON.stringify(this.state.docExplorerOpen))},i=()=>{this.state.docExplorerOpen||(this.setState({docExplorerWidth:t}),(0,E.default)(500,()=>this._storage.set("docExplorerWidth",JSON.stringify(this.state.docExplorerWidth)))()),document.removeEventListener("mousemove",r),document.removeEventListener("mouseup",i),r=null,i=null};document.addEventListener("mousemove",r),document.addEventListener("mouseup",i)}),N(this,"handleDocsResetResize",()=>{this.setState({docExplorerWidth:350}),(0,E.default)(500,()=>this._storage.set("docExplorerWidth",JSON.stringify(this.state.docExplorerWidth)))()}),N(this,"handleTabClickPropogation",e=>{e.preventDefault(),e.stopPropagation()}),N(this,"handleOpenHeaderEditorTab",e=>{this.setState({headerEditorActive:!0,variableEditorActive:!1,secondaryEditorOpen:!0})}),N(this,"handleOpenVariableEditorTab",e=>{this.setState({headerEditorActive:!1,variableEditorActive:!0,secondaryEditorOpen:!0})}),N(this,"handleSecondaryEditorResizeStart",e=>{e.preventDefault();let t=!1;const n=this.state.secondaryEditorOpen,r=this.state.secondaryEditorHeight,i=e.clientY-(0,x.getTop)(e.target);let o=e=>{if(0===e.buttons)return a();t=!0;const n=this.editorBarComponent,o=e.clientY-(0,x.getTop)(n)-i,s=n.clientHeight-o;s<60?this.setState({secondaryEditorOpen:!1,secondaryEditorHeight:r}):this.setState({secondaryEditorOpen:!0,secondaryEditorHeight:s}),(0,E.default)(500,()=>this._storage.set("secondaryEditorHeight",JSON.stringify(this.state.secondaryEditorHeight)))()},a=()=>{t||this.setState({secondaryEditorOpen:!n}),document.removeEventListener("mousemove",o),document.removeEventListener("mouseup",a),o=null,a=null};document.addEventListener("mousemove",o),document.addEventListener("mouseup",a)}),"function"!=typeof e.fetcher)throw new TypeError("GraphiQL requires a fetcher function.");this._storage=new y.default(e.storage),this.componentIsMounted=!1;const o=void 0!==e.query?e.query:this._storage.get("query")?this._storage.get("query"):void 0!==e.defaultQuery?e.defaultQuery:F,a=(0,b.default)(e.schema,o),s=void 0!==e.variables?e.variables:this._storage.get("variables"),l=void 0!==e.headers?e.headers:this._storage.get("headers"),c=void 0!==e.operationName?e.operationName:(0,T.default)(void 0,this._storage.get("operationName"),a&&a.operations);let u,f=e.docExplorerOpen||!1;this._storage.get("docExplorerOpen")&&(f="true"===this._storage.get("docExplorerOpen")),u=void 0!==e.defaultVariableEditorOpen?e.defaultVariableEditorOpen:void 0!==e.defaultSecondaryEditorOpen?e.defaultSecondaryEditorOpen:Boolean(s||l);const d=null!==(t=e.headerEditorEnabled)&&void 0!==t&&t,p=null!==(r=e.shouldPersistHeaders)&&void 0!==r&&r;this.state={schema:e.schema,query:o,variables:s,headers:l,operationName:c,docExplorerOpen:f,response:e.response,editorFlex:Number(this._storage.get("editorFlex"))||1,secondaryEditorOpen:u,secondaryEditorHeight:Number(this._storage.get("secondaryEditorHeight"))||200,variableEditorActive:"true"!==this._storage.get("variableEditorActive")&&!e.headerEditorEnabled||"true"!==this._storage.get("headerEditorActive"),headerEditorActive:"true"===this._storage.get("headerEditorActive"),headerEditorEnabled:d,shouldPersistHeaders:p,historyPaneOpen:"true"===this._storage.get("historyPaneOpen")||!1,docExplorerWidth:Number(this._storage.get("docExplorerWidth"))||350,isWaitingForResponse:!1,subscription:null,...a}}componentDidMount(){this.componentIsMounted=!0,void 0===this.state.schema&&this.fetchSchema(),this.codeMirrorSizer=new g.default,r.g=this}UNSAFE_componentWillMount(){this.componentIsMounted=!1}UNSAFE_componentWillReceiveProps(e){let t=this.state.schema,n=this.state.query,r=this.state.variables,i=this.state.headers,o=this.state.operationName,a=this.state.response;if(void 0!==e.schema&&(t=e.schema),void 0!==e.query&&this.props.query!==e.query&&(n=e.query),void 0!==e.variables&&this.props.variables!==e.variables&&(r=e.variables),void 0!==e.headers&&this.props.headers!==e.headers&&(i=e.headers),void 0!==e.operationName&&(o=e.operationName),void 0!==e.response&&(a=e.response),n&&t&&(t!==this.state.schema||n!==this.state.query||o!==this.state.operationName)){const e=this._updateQueryFacts(n,o,this.state.operations,t);void 0!==e&&(o=e.operationName,this.setState(e))}void 0===e.schema&&e.fetcher!==this.props.fetcher&&(t=void 0),this._storage.set("operationName",o),this.setState({schema:t,query:n,variables:r,headers:i,operationName:o,response:a},()=>{void 0===this.state.schema&&(this.docExplorerComponent&&this.docExplorerComponent.reset(),this.fetchSchema())})}componentDidUpdate(){this.codeMirrorSizer.updateSizes([this.queryEditorComponent,this.variableEditorComponent,this.headerEditorComponent,this.resultComponent])}render(){var e;const n=t.default.Children.toArray(this.props.children),r=(0,O.default)(n,e=>U(e,D.Logo))||t.default.createElement(D.Logo,null),i=(0,O.default)(n,e=>U(e,D.Toolbar))||t.default.createElement(D.Toolbar,null,t.default.createElement(l.ToolbarButton,{onClick:this.handlePrettifyQuery,title:"Prettify Query (Shift-Ctrl-P)",label:"Prettify"}),t.default.createElement(l.ToolbarButton,{onClick:this.handleMergeQuery,title:"Merge Query (Shift-Ctrl-M)",label:"Merge"}),t.default.createElement(l.ToolbarButton,{onClick:this.handleCopyQuery,title:"Copy Query (Shift-Ctrl-C)",label:"Copy"}),t.default.createElement(l.ToolbarButton,{onClick:this.handleToggleHistory,title:"Show History",label:"History"}),null!==(e=this.props.toolbar)&&void 0!==e&&e.additionalContent?this.props.toolbar.additionalContent:null),o=(0,O.default)(n,e=>U(e,D.Footer)),c={WebkitFlex:this.state.editorFlex,flex:this.state.editorFlex},u={display:"block",width:this.state.docExplorerWidth},g="docExplorerWrap"+(this.state.docExplorerWidth<200?" doc-explorer-narrow":""),y={display:this.state.historyPaneOpen?"block":"none",width:"230px",zIndex:7},b=this.state.secondaryEditorOpen,T={height:b?this.state.secondaryEditorHeight:void 0};return t.default.createElement("div",{ref:e=>{this.graphiqlContainer=e},className:"graphiql-container"},this.state.historyPaneOpen&&t.default.createElement("div",{className:"historyPaneWrap",style:y},t.default.createElement(v.QueryHistory,{ref:e=>{this._queryHistory=e},operationName:this.state.operationName,query:this.state.query,variables:this.state.variables,onSelectQuery:this.handleSelectHistoryQuery,storage:this._storage,queryID:this._editorQueryID},t.default.createElement("button",{className:"docExplorerHide",onClick:this.handleToggleHistory,"aria-label":"Close History"},"✕"))),t.default.createElement("div",{className:"editorWrap"},t.default.createElement("div",{className:"topBarWrap"},t.default.createElement("div",{className:"topBar"},r,t.default.createElement(a.ExecuteButton,{isRunning:Boolean(this.state.subscription),onRun:this.handleRunQuery,onStop:this.handleStopQuery,operations:this.state.operations}),i),!this.state.docExplorerOpen&&t.default.createElement("button",{className:"docExplorerShow",onClick:this.handleToggleDocs,"aria-label":"Open Documentation Explorer"},"Docs")),t.default.createElement("div",{ref:e=>{this.editorBarComponent=e},className:"editorBar",onDoubleClick:this.handleResetResize,onMouseDown:this.handleResizeStart},t.default.createElement("div",{className:"queryWrap",style:c},t.default.createElement(f.QueryEditor,{ref:e=>{this.queryEditorComponent=e},schema:this.state.schema,validationRules:this.props.validationRules,value:this.state.query,onEdit:this.handleEditQuery,onHintInformationRender:this.handleHintInformationRender,onClickReference:this.handleClickReference,onCopyQuery:this.handleCopyQuery,onPrettifyQuery:this.handlePrettifyQuery,onMergeQuery:this.handleMergeQuery,onRunQuery:this.handleEditorRunQuery,editorTheme:this.props.editorTheme,readOnly:this.props.readOnly,externalFragments:this.props.externalFragments}),t.default.createElement("section",{className:"variable-editor secondary-editor",style:T,"aria-label":this.state.variableEditorActive?"Query Variables":"Request Headers"},t.default.createElement("div",{className:"secondary-editor-title variable-editor-title",id:"secondary-editor-title",style:{cursor:b?"row-resize":"n-resize"},onMouseDown:this.handleSecondaryEditorResizeStart},t.default.createElement("div",{style:{cursor:"pointer",color:this.state.variableEditorActive?"#000":"gray",display:"inline-block"},onClick:this.handleOpenVariableEditorTab,onMouseDown:this.handleTabClickPropogation},"Query Variables"),this.state.headerEditorEnabled&&t.default.createElement("div",{style:{cursor:"pointer",color:this.state.headerEditorActive?"#000":"gray",display:"inline-block",marginLeft:"20px"},onClick:this.handleOpenHeaderEditorTab,onMouseDown:this.handleTabClickPropogation},"Request Headers")),t.default.createElement(d.VariableEditor,{ref:e=>{this.variableEditorComponent=e},value:this.state.variables,variableToType:this.state.variableToType,onEdit:this.handleEditVariables,onHintInformationRender:this.handleHintInformationRender,onPrettifyQuery:this.handlePrettifyQuery,onMergeQuery:this.handleMergeQuery,onRunQuery:this.handleEditorRunQuery,editorTheme:this.props.editorTheme,readOnly:this.props.readOnly,active:this.state.variableEditorActive}),this.state.headerEditorEnabled&&t.default.createElement(p.HeaderEditor,{ref:e=>{this.headerEditorComponent=e},value:this.state.headers,onEdit:this.handleEditHeaders,onHintInformationRender:this.handleHintInformationRender,onPrettifyQuery:this.handlePrettifyQuery,onMergeQuery:this.handleMergeQuery,onRunQuery:this.handleEditorRunQuery,editorTheme:this.props.editorTheme,readOnly:this.props.readOnly,active:this.state.headerEditorActive}))),t.default.createElement("div",{className:"resultWrap"},this.state.isWaitingForResponse&&t.default.createElement("div",{className:"spinner-container"},t.default.createElement("div",{className:"spinner"})),t.default.createElement(h.ResultViewer,{registerRef:e=>{this.resultViewerElement=e},ref:e=>{this.resultComponent=e},value:this.state.response,editorTheme:this.props.editorTheme,ResultsTooltip:this.props.ResultsTooltip,ImagePreview:s.ImagePreview}),o))),this.state.docExplorerOpen&&t.default.createElement("div",{className:g,style:u},t.default.createElement("div",{className:"docExplorerResizer",onDoubleClick:this.handleDocsResetResize,onMouseDown:this.handleDocsResizeStart}),t.default.createElement(m.DocExplorer,{ref:e=>{this.docExplorerComponent=e},schema:this.state.schema},t.default.createElement("button",{className:"docExplorerHide",onClick:this.handleToggleDocs,"aria-label":"Close Documentation Explorer"},"✕"))))}getQueryEditor(){if(this.queryEditorComponent)return this.queryEditorComponent.getCodeMirror()}getVariableEditor(){return this.variableEditorComponent?this.variableEditorComponent.getCodeMirror():null}getHeaderEditor(){return this.headerEditorComponent?this.headerEditorComponent.getCodeMirror():null}refresh(){this.queryEditorComponent&&this.queryEditorComponent.getCodeMirror().refresh(),this.variableEditorComponent&&this.variableEditorComponent.getCodeMirror().refresh(),this.headerEditorComponent&&this.headerEditorComponent.getCodeMirror().refresh(),this.resultComponent&&this.resultComponent.getCodeMirror().refresh()}autoCompleteLeafs(){const{insertions:e,result:t}=(0,w.fillLeafs)(this.state.schema,this.state.query,this.props.getDefaultFieldNames);if(e&&e.length>0){const n=this.getQueryEditor();n&&n.operation(()=>{const r=n.getCursor(),i=n.indexFromPos(r);n.setValue(t||"");let o=0;const a=e.map(({index:e,string:t})=>n.markText(n.posFromIndex(e+o),n.posFromIndex(e+(o+=t.length)),{className:"autoInsertedLeaf",clearOnEnter:!0,title:"Automatically added leaf fields"}));setTimeout(()=>a.forEach(e=>e.clear()),7e3);let s=i;e.forEach(({index:e,string:t})=>{e2?t.headers=JSON.parse(this.state.headers):this.props.headers&&(t.headers=JSON.parse(this.props.headers));const r=V(e({query:k.introspectionQuery,operationName:k.introspectionQueryName},t));M(r)?r.then(n=>{if("string"!=typeof n&&"data"in n)return n;const i=V(e({query:k.introspectionQuerySansSubscriptions,operationName:k.introspectionQueryName},t));if(!M(r))throw new Error("Fetcher did not return a Promise for introspection.");return i}).then(e=>{if(void 0===this.state.schema)if("string"!=typeof e&&"data"in e){const t=(0,n.buildClientSchema)(e.data),r=(0,b.default)(t,this.state.query);this.safeSetState({schema:t,...r})}else{const t="string"==typeof e?e:D.formatResult(e);this.safeSetState({schema:void 0,response:t})}}).catch(e=>{this.safeSetState({schema:void 0,response:e?D.formatError(e):void 0})}):this.setState({response:"Fetcher did not return a Promise for introspection."})}async _fetchQuery(e,t,r,i,a,s){const l=this.props.fetcher;let c=null,u=null;try{c=t&&""!==t.trim()?JSON.parse(t):null}catch(e){throw new Error(`Variables are invalid JSON: ${e.message}.`)}if("object"!=typeof c)throw new Error("Variables are not a JSON object.");try{u=r&&""!==r.trim()?JSON.parse(r):null}catch(e){throw new Error(`Headers are invalid JSON: ${e.message}.`)}if("object"!=typeof u)throw new Error("Headers are not a JSON object.");if(this.props.externalFragments){const t=new Map;Array.isArray(this.props.externalFragments)?this.props.externalFragments.forEach(e=>{t.set(e.name.value,e)}):(0,n.visit)((0,n.parse)(this.props.externalFragments,{experimentalFragmentVariables:!0}),{FragmentDefinition(e){t.set(e.name.value,e)}});const r=(0,o.getFragmentDependenciesForAST)(this.state.documentAST,t);r.length>0&&(e+="\n"+r.map(e=>(0,n.print)(e)).join("\n"))}const f=l({query:e,variables:c,operationName:i},{headers:u,shouldPersistHeaders:a,documentAST:this.state.documentAST});return Promise.resolve(f).then(e=>R(e)?e.subscribe({next:s,error:e=>{this.safeSetState({isWaitingForResponse:!1,response:e?D.formatError(e):void 0,subscription:null})},complete:()=>{this.safeSetState({isWaitingForResponse:!1,subscription:null})}}):P(e)?((async()=>{try{for await(const t of e)s(t);this.safeSetState({isWaitingForResponse:!1,subscription:null})}catch(e){this.safeSetState({isWaitingForResponse:!1,response:e?D.formatError(e):void 0,subscription:null})}})(),{unsubscribe:()=>{var t,n;return null===(t=(n=e[Symbol.asyncIterator]()).return)||void 0===t?void 0:t.call(n)}}):(s(e),null)).catch(e=>(this.safeSetState({isWaitingForResponse:!1,response:e?D.formatError(e):void 0}),null))}_runQueryAtCursor(){if(this.state.subscription)return void this.handleStopQuery();let e;const t=this.state.operations;if(t){const n=this.getQueryEditor();if(n&&n.hasFocus()){const r=n.getCursor(),i=n.indexFromPos(r);for(let n=0;n=i){e=r.name&&r.name.value;break}}}}this.handleRunQuery(e)}_didClickDragBar(e){if(0!==e.button||e.ctrlKey)return!1;let t=e.target;if(0!==t.className.indexOf("CodeMirror-gutter"))return!1;const n=this.resultViewerElement;for(;t;){if(t===n)return!0;t=t.parentNode}return!1}}function I(e){return t.default.createElement("div",{className:"title"},e.children||t.default.createElement("span",null,"Graph",t.default.createElement("em",null,"i"),"QL"))}function A(e){return t.default.createElement("div",{className:"toolbar",role:"toolbar","aria-label":"Editor Commands"},e.children)}function L(e){return t.default.createElement("div",{className:"footer"},e.children)}e.GraphiQL=D,N(D,"Logo",I),N(D,"Toolbar",A),N(D,"Footer",L),N(D,"QueryEditor",f.QueryEditor),N(D,"VariableEditor",d.VariableEditor),N(D,"HeaderEditor",p.HeaderEditor),N(D,"ResultViewer",h.ResultViewer),N(D,"Button",l.ToolbarButton),N(D,"ToolbarButton",l.ToolbarButton),N(D,"Group",c.ToolbarGroup),N(D,"Menu",u.ToolbarMenu),N(D,"MenuItem",u.ToolbarMenuItem),I.displayName="GraphiQLLogo",A.displayName="GraphiQLToolbar",L.displayName="GraphiQLFooter";const j=e=>({...e,message:e.message,stack:e.stack}),F='# Welcome to GraphiQL\n#\n# GraphiQL is an in-browser tool for writing, validating, and\n# testing GraphQL queries.\n#\n# Type queries into this side of the screen, and you will see intelligent\n# typeaheads aware of the current GraphQL type schema and live syntax and\n# validation errors highlighted within the text.\n#\n# GraphQL queries typically start with a "{" character. Lines that start\n# with a # are ignored.\n#\n# An example GraphQL query might look like:\n#\n# {\n# field(arg: "value") {\n# subField\n# }\n# }\n#\n# Keyboard shortcuts:\n#\n# Prettify Query: Shift-Ctrl-P (or press the prettify button above)\n#\n# Merge Query: Shift-Ctrl-M (or press the merge button above)\n#\n# Run Query: Ctrl-Enter (or press the play button above)\n#\n# Auto Complete: Ctrl-Space (or just start typing)\n#\n\n';function M(e){return"object"==typeof e&&"function"==typeof e.then}function R(e){return"object"==typeof e&&"subscribe"in e&&"function"==typeof e.subscribe}function P(e){return"object"==typeof e&&null!==e&&("AsyncGenerator"===e[Symbol.toStringTag]||Symbol.asyncIterator in e)}function V(e){return Promise.resolve(e).then(e=>{return P(e)?(n=e,new Promise((e,t)=>{var r;const i=null===(r=("return"in n?n:n[Symbol.asyncIterator]()).return)||void 0===r?void 0:r.bind(n);("next"in n?n:n[Symbol.asyncIterator]()).next.bind(n)().then(t=>{e(t.value),null==i||i()}).catch(e=>{t(e)})})):R(e)?(t=e,new Promise((e,n)=>{const r=t.subscribe({next:t=>{e(t),r.unsubscribe()},error:n,complete:()=>{n(new Error("no value resolved"))}})})):e;var t,n})}function U(e,t){var n;return!(null==e||null===(n=e.type)||void 0===n||!n.displayName||e.type.displayName!==t.displayName)||e.type===t}},o=[t,n(16),n(15),n(107),n(33),n(115),n(116),n(117),n(118),n(119),n(120),n(189),n(195),n(197),n(200),n(207),n(210),n(211),n(212),n(213),n(84),n(214),n(215),n(216),n(217),n(218),n(219)],void 0===(a="function"==typeof(i=s)?i.apply(t,o):i)||(e.exports=a)}).call(this,n(49))},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t=n(108),r={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,n){var i,o,a,s,l,c,u=!1;n||(n={}),i=n.debug||!1;try{if(a=t(),s=document.createRange(),l=document.getSelection(),(c=document.createElement("span")).textContent=e,c.style.all="unset",c.style.position="fixed",c.style.top=0,c.style.clip="rect(0, 0, 0, 0)",c.style.whiteSpace="pre",c.style.webkitUserSelect="text",c.style.MozUserSelect="text",c.style.msUserSelect="text",c.style.userSelect="text",c.addEventListener("copy",(function(t){if(t.stopPropagation(),n.format)if(t.preventDefault(),void 0===t.clipboardData){i&&console.warn("unable to use e.clipboardData"),i&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var o=r[n.format]||r.default;window.clipboardData.setData(o,e)}else t.clipboardData.clearData(),t.clipboardData.setData(n.format,e);n.onCopy&&(t.preventDefault(),n.onCopy(t.clipboardData))})),document.body.appendChild(c),s.selectNodeContents(c),l.addRange(s),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");u=!0}catch(t){i&&console.error("unable to copy using execCommand: ",t),i&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(n.format||"text",e),n.onCopy&&n.onCopy(window.clipboardData),u=!0}catch(t){i&&console.error("unable to copy using clipboardData: ",t),i&&console.error("falling back to prompt"),o=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in n?n.message:"Copy to clipboard: #{key}, Enter"),window.prompt(o,e)}}finally{l&&("function"==typeof l.removeRange?l.removeRange(s):l.removeAllRanges()),c&&document.body.removeChild(c),a()}return u}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r{if(!n)return[];let r;try{r=(0,t.parse)(e,{allowLegacySDLImplementsInterfaces:!0,allowLegacySDLEmptyFields:!0})}catch(e){return[]}return i(r,n)};const i=(e,r)=>{if(!r)return[];const i=new Map,o=new Set;(0,t.visit)(e,{FragmentDefinition(e){i.set(e.name.value,!0)},FragmentSpread(e){o.has(e.name.value)||o.add(e.name.value)}});const a=new Set;o.forEach(e=>{!i.has(e)&&r.has(e)&&a.add((0,n.default)(r.get(e)))});const s=[];return a.forEach(e=>{(0,t.visit)(e,{FragmentSpread(e){!o.has(e.name.value)&&r.get(e.name.value)&&(a.add((0,n.default)(r.get(e.name.value))),o.add(e.name.value))}}),i.has(e.name.value)||s.push(e)}),s};e.getFragmentDependenciesForAST=i})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";function t(e,t){if(null!=e)return e;var n=new Error(void 0!==t?t:"Got unexpected "+e);throw n.framesToPop=1,n}e.exports=t,e.exports.default=t,Object.defineProperty(e.exports,"__esModule",{value:!0})})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(15)],void 0===(o="function"==typeof(r=function(e,t){"use strict";function n(e,t){const n=e.split("\n").slice(0,t.line);return t.character+n.map(e=>e.length+1).reduce((e,t)=>e+t,0)}Object.defineProperty(e,"__esModule",{value:!0}),e.getASTNodeAtPosition=function(e,r,i){const o=n(e,i);let a;return(0,t.visit)(r,{enter(e){if(!("Name"!==e.kind&&e.loc&&e.loc.start<=o&&o<=e.loc.end))return!1;a=e},leave(e){if(e.loc&&e.loc.start<=o&&o<=e.loc.end)return!1}}),a},e.pointToOffset=n})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t],void 0===(o="function"==typeof(r=function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.offsetToPosition=r,e.locToRange=function(e,n){const i=r(e,n.start),o=r(e,n.end);return new t(i,o)},e.Position=e.Range=void 0;class t{constructor(e,t){this.containsPosition=e=>this.start.line===e.line?this.start.character<=e.character:this.end.line===e.line?this.end.character>=e.character:this.start.line<=e.line&&this.end.line>=e.line,this.start=e,this.end=t}setStart(e,t){this.start=new n(e,t)}setEnd(e,t){this.end=new n(e,t)}}e.Range=t;class n{constructor(e,t){this.lessThanOrEqualTo=e=>this.linee!==t.NoUnusedFragmentsRule&&e!==n.ExecutableDefinitions&&(!o||e!==t.KnownFragmentNamesRule));return i&&Array.prototype.push.apply(a,i),(0,t.validate)(e,r,a).filter(e=>{if(-1!==e.message.indexOf("Unknown directive")&&e.nodes){const n=e.nodes[0];if(n&&n.kind===t.Kind.DIRECTIVE){const e=n.name.value;if("arguments"===e||"argumentDefinitions"===e)return!1}}return!0})}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){"use strict";n.r(t);var r=n(48);n.d(t,"ExecutableDefinitions",(function(){return r.a}))},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(16)],void 0===(o="function"==typeof(r=function(e,t){"use strict";function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var r;Object.defineProperty(e,"__esModule",{value:!0}),e.ExecuteButton=void 0,t=(r=t)&&r.__esModule?r:{default:r};class i extends t.default.Component{constructor(e){super(e),n(this,"_onClick",()=>{this.props.isRunning?this.props.onStop():this.props.onRun()}),n(this,"_onOptionSelected",e=>{this.setState({optionsOpen:!1}),this.props.onRun(e.name&&e.name.value)}),n(this,"_onOptionsOpen",e=>{let t=!0;const n=e.currentTarget;this.setState({highlight:null,optionsOpen:!0});let r=e=>{var i;t&&e.target===n?t=!1:(document.removeEventListener("mouseup",r),r=null,e.currentTarget&&(null===(i=n.parentNode)||void 0===i?void 0:i.compareDocumentPosition(e.currentTarget))&&Node.DOCUMENT_POSITION_CONTAINED_BY||this.setState({optionsOpen:!1}))};document.addEventListener("mouseup",r)}),this.state={optionsOpen:!1,highlight:null}}render(){const e=this.props.operations||[],n=this.state.optionsOpen,r=e&&e.length>1;let i,o=null;if(r&&n){const n=this.state.highlight;o=t.default.createElement("ul",{className:"execute-options"},e.map((e,r)=>{const i=e.name?e.name.value:``;return t.default.createElement("li",{key:`${i}-${r}`,className:e===n?"selected":void 0,onMouseOver:()=>this.setState({highlight:e}),onMouseOut:()=>this.setState({highlight:null}),onMouseUp:()=>this._onOptionSelected(e)},i)}))}!this.props.isRunning&&r||(i=this._onClick);let a=()=>{};this.props.isRunning||!r||n||(a=this._onOptionsOpen);const s=this.props.isRunning?t.default.createElement("path",{d:"M 10 10 L 23 10 L 23 23 L 10 23 z"}):t.default.createElement("path",{d:"M 11 9 L 24 16 L 11 23 z"});return t.default.createElement("div",{className:"execute-button-wrap"},t.default.createElement("button",{type:"button",className:"execute-button",onMouseDown:a,onClick:i,title:"Execute Query (Ctrl-Enter)"},t.default.createElement("svg",{width:"34",height:"34"},s)),o)}}e.ExecuteButton=i})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(16)],void 0===(o="function"==typeof(r=function(e,t){"use strict";function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e){if("string"!==e.type)return;const t=e.string.slice(1).slice(0,-1).trim();try{const e=window.location;return new URL(t,e.protocol+"//"+e.host)}catch(e){return}}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.ImagePreview=void 0,t=(i=t)&&i.__esModule?i:{default:i};class o extends t.default.Component{constructor(...e){super(...e),n(this,"_node",null),n(this,"state",{width:null,height:null,src:null,mime:null})}static shouldRender(e){const t=r(e);return!!t&&function(e){return/(bmp|gif|jpeg|jpg|png|svg)$/.test(e.pathname)}(t)}componentDidMount(){this._updateMetadata()}componentDidUpdate(){this._updateMetadata()}render(){var e;let n=null;if(null!==this.state.width&&null!==this.state.height){let e=this.state.width+"x"+this.state.height;null!==this.state.mime&&(e+=" "+this.state.mime),n=t.default.createElement("div",null,e)}return t.default.createElement("div",null,t.default.createElement("img",{onLoad:()=>this._updateMetadata(),ref:e=>{this._node=e},src:null===(e=r(this.props.token))||void 0===e?void 0:e.href}),n)}_updateMetadata(){if(!this._node)return;const e=this._node.naturalWidth,t=this._node.naturalHeight,n=this._node.src;n!==this.state.src&&(this.setState({src:n}),fetch(n,{method:"HEAD"}).then(e=>{this.setState({mime:e.headers.get("Content-Type")})})),e===this.state.width&&t===this.state.height||this.setState({height:t,width:e})}}e.ImagePreview=o})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(16)],void 0===(o="function"==typeof(r=function(e,t){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.ToolbarButton=void 0,t=(n=t)&&n.__esModule?n:{default:n};class r extends t.default.Component{constructor(e){super(e),function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"handleClick",()=>{try{this.props.onClick(),this.setState({error:null})}catch(e){this.setState({error:e})}}),this.state={error:null}}render(){const{error:e}=this.state;return t.default.createElement("button",{className:"toolbar-button"+(e?" error":""),onClick:this.handleClick,title:e?e.message:this.props.title,"aria-invalid":e?"true":"false"},this.props.label)}}e.ToolbarButton=r})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(16)],void 0===(o="function"==typeof(r=function(e,t){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.ToolbarGroup=function({children:e}){return t.default.createElement("div",{className:"toolbar-button-group"},e)},t=(n=t)&&n.__esModule?n:{default:n}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(16)],void 0===(o="function"==typeof(r=function(e,t){"use strict";function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var r;Object.defineProperty(e,"__esModule",{value:!0}),e.ToolbarMenuItem=e.ToolbarMenu=void 0,t=(r=t)&&r.__esModule?r:{default:r};class i extends t.default.Component{constructor(e){super(e),n(this,"_node",null),n(this,"_listener",null),n(this,"handleOpen",e=>{o(e),this.setState({visible:!0}),this._subscribe()}),this.state={visible:!1}}componentWillUnmount(){this._release()}render(){const e=this.state.visible;return t.default.createElement("a",{className:"toolbar-menu toolbar-button",onClick:this.handleOpen.bind(this),onMouseDown:o,ref:e=>{e&&(this._node=e)},title:this.props.title},this.props.label,t.default.createElement("svg",{width:"14",height:"8"},t.default.createElement("path",{fill:"#666",d:"M 5 1.5 L 14 1.5 L 9.5 7 z"})),t.default.createElement("ul",{className:"toolbar-menu-items"+(e?" open":"")},this.props.children))}_subscribe(){this._listener||(this._listener=this.handleClick.bind(this),document.addEventListener("click",this._listener))}_release(){this._listener&&(document.removeEventListener("click",this._listener),this._listener=null)}handleClick(e){this._node!==e.target&&(e.preventDefault(),this.setState({visible:!1}),this._release())}}function o(e){e.preventDefault()}e.ToolbarMenu=i,e.ToolbarMenuItem=({onSelect:e,title:n,label:r})=>t.default.createElement("li",{onMouseOver:e=>{e.currentTarget.className="hover"},onMouseOut:e=>{e.currentTarget.className=""},onMouseDown:o,onMouseUp:e,title:n},r)})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(16),n(50),n(176),n(54),n(41)],void 0===(o="function"==typeof(r=function(e,t,r,i,o,a){"use strict";function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.QueryEditor=void 0,t=s(t),r=s(r),o=s(o),a=s(a);const c=new r.default,u=/^[a-zA-Z0-9_@(]$/;class f extends t.default.Component{constructor(e){super(e),l(this,"cachedValue",void 0),l(this,"editor",null),l(this,"ignoreChangeEvent",!1),l(this,"_node",null),l(this,"_onKeyUp",(e,t)=>{u.test(t.key)&&this.editor&&this.editor.execCommand("autocomplete")}),l(this,"_onEdit",()=>{!this.ignoreChangeEvent&&this.editor&&(this.cachedValue=this.editor.getValue(),this.props.onEdit&&this.props.onEdit(this.cachedValue))}),l(this,"_onHasCompletion",(e,t)=>{(0,o.default)(e,t,this.props.onHintInformationRender)}),this.cachedValue=e.value||""}componentDidMount(){var e,t,r;const i=n(11);n(42),n(177),n(43),n(55),n(44),n(45),n(69),n(34),n(46),n(35),n(56),n(47),n(179),n(184),n(185),n(186),n(188);const o=this.editor=i(this._node,{value:this.props.value||"",lineNumbers:!0,tabSize:2,mode:"graphql",theme:this.props.editorTheme||"graphiql",keyMap:"sublime",autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:!!this.props.readOnly&&"nocursor",foldGutter:{minFoldSize:4},lint:{schema:this.props.schema,validationRules:null!==(e=this.props.validationRules)&&void 0!==e?e:null,externalFragments:null===(t=this.props)||void 0===t?void 0:t.externalFragments},hintOptions:{schema:this.props.schema,closeOnUnfocus:!1,completeSingle:!1,container:this._node,externalFragments:null===(r=this.props)||void 0===r?void 0:r.externalFragments},info:{schema:this.props.schema,renderDescription:e=>c.render(e),onClick:e=>this.props.onClickReference&&this.props.onClickReference(e)},jump:{schema:this.props.schema,onClick:e=>this.props.onClickReference&&this.props.onClickReference(e)},gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:{"Cmd-Space":()=>o.showHint({completeSingle:!0,container:this._node}),"Ctrl-Space":()=>o.showHint({completeSingle:!0,container:this._node}),"Alt-Space":()=>o.showHint({completeSingle:!0,container:this._node}),"Shift-Space":()=>o.showHint({completeSingle:!0,container:this._node}),"Shift-Alt-Space":()=>o.showHint({completeSingle:!0,container:this._node}),"Cmd-Enter":()=>{this.props.onRunQuery&&this.props.onRunQuery()},"Ctrl-Enter":()=>{this.props.onRunQuery&&this.props.onRunQuery()},"Shift-Ctrl-C":()=>{this.props.onCopyQuery&&this.props.onCopyQuery()},"Shift-Ctrl-P":()=>{this.props.onPrettifyQuery&&this.props.onPrettifyQuery()},"Shift-Ctrl-F":()=>{this.props.onPrettifyQuery&&this.props.onPrettifyQuery()},"Shift-Ctrl-M":()=>{this.props.onMergeQuery&&this.props.onMergeQuery()},...a.default,"Cmd-S":()=>{this.props.onRunQuery},"Ctrl-S":()=>{this.props.onRunQuery}}});o&&(o.on("change",this._onEdit),o.on("keyup",this._onKeyUp),o.on("hasCompletion",this._onHasCompletion),o.on("beforeChange",this._onBeforeChange))}componentDidUpdate(e){const t=n(11);this.ignoreChangeEvent=!0,this.props.schema!==e.schema&&this.editor&&(this.editor.options.lint.schema=this.props.schema,this.editor.options.hintOptions.schema=this.props.schema,this.editor.options.info.schema=this.props.schema,this.editor.options.jump.schema=this.props.schema,t.signal(this.editor,"change",this.editor)),this.props.value!==e.value&&this.props.value!==this.cachedValue&&this.editor&&(this.cachedValue=this.props.value,this.editor.setValue(this.props.value)),this.ignoreChangeEvent=!1}componentWillUnmount(){this.editor&&(this.editor.off("change",this._onEdit),this.editor.off("keyup",this._onKeyUp),this.editor.off("hasCompletion",this._onHasCompletion),this.editor=null)}render(){return t.default.createElement("section",{className:"query-editor","aria-label":"Query Editor",ref:e=>{this._node=e}})}getCodeMirror(){return this.editor}getClientHeight(){return this._node&&this._node.clientHeight}_onBeforeChange(e,t){if("paste"===t.origin){const e=t.text.map(i.normalizeWhitespace);t.update(t.from,t.to,e)}}}e.QueryEditor=f})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t=n(13),r=n(129),i=n(133),o=n(134),a=n(142),s=n(156),l=n(169),c=n(62),u=n(171),f={default:n(173),zero:n(174),commonmark:n(175)},d=/^(vbscript|javascript|file|data):/,p=/^data:image\/(gif|png|jpeg|webp);/;function h(e){var t=e.trim().toLowerCase();return!d.test(t)||!!p.test(t)}var m=["http:","https:","mailto:"];function v(e){var t=c.parse(e,!0);if(t.hostname&&(!t.protocol||m.indexOf(t.protocol)>=0))try{t.hostname=u.toASCII(t.hostname)}catch(e){}return c.encode(c.format(t))}function g(e){var t=c.parse(e,!0);if(t.hostname&&(!t.protocol||m.indexOf(t.protocol)>=0))try{t.hostname=u.toUnicode(t.hostname)}catch(e){}return c.decode(c.format(t))}function y(e,n){if(!(this instanceof y))return new y(e,n);n||t.isString(e)||(n=e||{},e="default"),this.inline=new s,this.block=new a,this.core=new o,this.renderer=new i,this.linkify=new l,this.validateLink=h,this.normalizeLink=v,this.normalizeLinkText=g,this.utils=t,this.helpers=t.assign({},r),this.options={},this.configure(e),n&&this.set(n)}y.prototype.set=function(e){return t.assign(this.options,e),this},y.prototype.configure=function(e){var n,r=this;if(t.isString(e)&&!(e=f[n=e]))throw new Error('Wrong `markdown-it` preset "'+n+'", check name');if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&r.set(e.options),e.components&&Object.keys(e.components).forEach((function(t){e.components[t].rules&&r[t].ruler.enableOnly(e.components[t].rules),e.components[t].rules2&&r[t].ruler2.enableOnly(e.components[t].rules2)})),this},y.prototype.enable=function(e,t){var n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach((function(t){n=n.concat(this[t].ruler.enable(e,!0))}),this),n=n.concat(this.inline.ruler2.enable(e,!0));var r=e.filter((function(e){return n.indexOf(e)<0}));if(r.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this},y.prototype.disable=function(e,t){var n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach((function(t){n=n.concat(this[t].ruler.disable(e,!0))}),this),n=n.concat(this.inline.ruler2.disable(e,!0));var r=e.filter((function(e){return n.indexOf(e)<0}));if(r.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this},y.prototype.use=function(e){var t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},y.prototype.parse=function(e,t){if("string"!=typeof e)throw new Error("Input data should be a String");var n=new this.core.State(e,this,t);return this.core.process(n),n.tokens},y.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},y.prototype.parseInline=function(e,t){var n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},y.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)},e.exports=y})?r.apply(t,i):r)||(e.exports=o)},function(e){e.exports=JSON.parse('{"Aacute":"Á","aacute":"á","Abreve":"Ă","abreve":"ă","ac":"∾","acd":"∿","acE":"∾̳","Acirc":"Â","acirc":"â","acute":"´","Acy":"А","acy":"а","AElig":"Æ","aelig":"æ","af":"⁡","Afr":"𝔄","afr":"𝔞","Agrave":"À","agrave":"à","alefsym":"ℵ","aleph":"ℵ","Alpha":"Α","alpha":"α","Amacr":"Ā","amacr":"ā","amalg":"⨿","amp":"&","AMP":"&","andand":"⩕","And":"⩓","and":"∧","andd":"⩜","andslope":"⩘","andv":"⩚","ang":"∠","ange":"⦤","angle":"∠","angmsdaa":"⦨","angmsdab":"⦩","angmsdac":"⦪","angmsdad":"⦫","angmsdae":"⦬","angmsdaf":"⦭","angmsdag":"⦮","angmsdah":"⦯","angmsd":"∡","angrt":"∟","angrtvb":"⊾","angrtvbd":"⦝","angsph":"∢","angst":"Å","angzarr":"⍼","Aogon":"Ą","aogon":"ą","Aopf":"𝔸","aopf":"𝕒","apacir":"⩯","ap":"≈","apE":"⩰","ape":"≊","apid":"≋","apos":"\'","ApplyFunction":"⁡","approx":"≈","approxeq":"≊","Aring":"Å","aring":"å","Ascr":"𝒜","ascr":"𝒶","Assign":"≔","ast":"*","asymp":"≈","asympeq":"≍","Atilde":"Ã","atilde":"ã","Auml":"Ä","auml":"ä","awconint":"∳","awint":"⨑","backcong":"≌","backepsilon":"϶","backprime":"‵","backsim":"∽","backsimeq":"⋍","Backslash":"∖","Barv":"⫧","barvee":"⊽","barwed":"⌅","Barwed":"⌆","barwedge":"⌅","bbrk":"⎵","bbrktbrk":"⎶","bcong":"≌","Bcy":"Б","bcy":"б","bdquo":"„","becaus":"∵","because":"∵","Because":"∵","bemptyv":"⦰","bepsi":"϶","bernou":"ℬ","Bernoullis":"ℬ","Beta":"Β","beta":"β","beth":"ℶ","between":"≬","Bfr":"𝔅","bfr":"𝔟","bigcap":"⋂","bigcirc":"◯","bigcup":"⋃","bigodot":"⨀","bigoplus":"⨁","bigotimes":"⨂","bigsqcup":"⨆","bigstar":"★","bigtriangledown":"▽","bigtriangleup":"△","biguplus":"⨄","bigvee":"⋁","bigwedge":"⋀","bkarow":"⤍","blacklozenge":"⧫","blacksquare":"▪","blacktriangle":"▴","blacktriangledown":"▾","blacktriangleleft":"◂","blacktriangleright":"▸","blank":"␣","blk12":"▒","blk14":"░","blk34":"▓","block":"█","bne":"=⃥","bnequiv":"≡⃥","bNot":"⫭","bnot":"⌐","Bopf":"𝔹","bopf":"𝕓","bot":"⊥","bottom":"⊥","bowtie":"⋈","boxbox":"⧉","boxdl":"┐","boxdL":"╕","boxDl":"╖","boxDL":"╗","boxdr":"┌","boxdR":"╒","boxDr":"╓","boxDR":"╔","boxh":"─","boxH":"═","boxhd":"┬","boxHd":"╤","boxhD":"╥","boxHD":"╦","boxhu":"┴","boxHu":"╧","boxhU":"╨","boxHU":"╩","boxminus":"⊟","boxplus":"⊞","boxtimes":"⊠","boxul":"┘","boxuL":"╛","boxUl":"╜","boxUL":"╝","boxur":"└","boxuR":"╘","boxUr":"╙","boxUR":"╚","boxv":"│","boxV":"║","boxvh":"┼","boxvH":"╪","boxVh":"╫","boxVH":"╬","boxvl":"┤","boxvL":"╡","boxVl":"╢","boxVL":"╣","boxvr":"├","boxvR":"╞","boxVr":"╟","boxVR":"╠","bprime":"‵","breve":"˘","Breve":"˘","brvbar":"¦","bscr":"𝒷","Bscr":"ℬ","bsemi":"⁏","bsim":"∽","bsime":"⋍","bsolb":"⧅","bsol":"\\\\","bsolhsub":"⟈","bull":"•","bullet":"•","bump":"≎","bumpE":"⪮","bumpe":"≏","Bumpeq":"≎","bumpeq":"≏","Cacute":"Ć","cacute":"ć","capand":"⩄","capbrcup":"⩉","capcap":"⩋","cap":"∩","Cap":"⋒","capcup":"⩇","capdot":"⩀","CapitalDifferentialD":"ⅅ","caps":"∩︀","caret":"⁁","caron":"ˇ","Cayleys":"ℭ","ccaps":"⩍","Ccaron":"Č","ccaron":"č","Ccedil":"Ç","ccedil":"ç","Ccirc":"Ĉ","ccirc":"ĉ","Cconint":"∰","ccups":"⩌","ccupssm":"⩐","Cdot":"Ċ","cdot":"ċ","cedil":"¸","Cedilla":"¸","cemptyv":"⦲","cent":"¢","centerdot":"·","CenterDot":"·","cfr":"𝔠","Cfr":"ℭ","CHcy":"Ч","chcy":"ч","check":"✓","checkmark":"✓","Chi":"Χ","chi":"χ","circ":"ˆ","circeq":"≗","circlearrowleft":"↺","circlearrowright":"↻","circledast":"⊛","circledcirc":"⊚","circleddash":"⊝","CircleDot":"⊙","circledR":"®","circledS":"Ⓢ","CircleMinus":"⊖","CirclePlus":"⊕","CircleTimes":"⊗","cir":"○","cirE":"⧃","cire":"≗","cirfnint":"⨐","cirmid":"⫯","cirscir":"⧂","ClockwiseContourIntegral":"∲","CloseCurlyDoubleQuote":"”","CloseCurlyQuote":"’","clubs":"♣","clubsuit":"♣","colon":":","Colon":"∷","Colone":"⩴","colone":"≔","coloneq":"≔","comma":",","commat":"@","comp":"∁","compfn":"∘","complement":"∁","complexes":"ℂ","cong":"≅","congdot":"⩭","Congruent":"≡","conint":"∮","Conint":"∯","ContourIntegral":"∮","copf":"𝕔","Copf":"ℂ","coprod":"∐","Coproduct":"∐","copy":"©","COPY":"©","copysr":"℗","CounterClockwiseContourIntegral":"∳","crarr":"↵","cross":"✗","Cross":"⨯","Cscr":"𝒞","cscr":"𝒸","csub":"⫏","csube":"⫑","csup":"⫐","csupe":"⫒","ctdot":"⋯","cudarrl":"⤸","cudarrr":"⤵","cuepr":"⋞","cuesc":"⋟","cularr":"↶","cularrp":"⤽","cupbrcap":"⩈","cupcap":"⩆","CupCap":"≍","cup":"∪","Cup":"⋓","cupcup":"⩊","cupdot":"⊍","cupor":"⩅","cups":"∪︀","curarr":"↷","curarrm":"⤼","curlyeqprec":"⋞","curlyeqsucc":"⋟","curlyvee":"⋎","curlywedge":"⋏","curren":"¤","curvearrowleft":"↶","curvearrowright":"↷","cuvee":"⋎","cuwed":"⋏","cwconint":"∲","cwint":"∱","cylcty":"⌭","dagger":"†","Dagger":"‡","daleth":"ℸ","darr":"↓","Darr":"↡","dArr":"⇓","dash":"‐","Dashv":"⫤","dashv":"⊣","dbkarow":"⤏","dblac":"˝","Dcaron":"Ď","dcaron":"ď","Dcy":"Д","dcy":"д","ddagger":"‡","ddarr":"⇊","DD":"ⅅ","dd":"ⅆ","DDotrahd":"⤑","ddotseq":"⩷","deg":"°","Del":"∇","Delta":"Δ","delta":"δ","demptyv":"⦱","dfisht":"⥿","Dfr":"𝔇","dfr":"𝔡","dHar":"⥥","dharl":"⇃","dharr":"⇂","DiacriticalAcute":"´","DiacriticalDot":"˙","DiacriticalDoubleAcute":"˝","DiacriticalGrave":"`","DiacriticalTilde":"˜","diam":"⋄","diamond":"⋄","Diamond":"⋄","diamondsuit":"♦","diams":"♦","die":"¨","DifferentialD":"ⅆ","digamma":"ϝ","disin":"⋲","div":"÷","divide":"÷","divideontimes":"⋇","divonx":"⋇","DJcy":"Ђ","djcy":"ђ","dlcorn":"⌞","dlcrop":"⌍","dollar":"$","Dopf":"𝔻","dopf":"𝕕","Dot":"¨","dot":"˙","DotDot":"⃜","doteq":"≐","doteqdot":"≑","DotEqual":"≐","dotminus":"∸","dotplus":"∔","dotsquare":"⊡","doublebarwedge":"⌆","DoubleContourIntegral":"∯","DoubleDot":"¨","DoubleDownArrow":"⇓","DoubleLeftArrow":"⇐","DoubleLeftRightArrow":"⇔","DoubleLeftTee":"⫤","DoubleLongLeftArrow":"⟸","DoubleLongLeftRightArrow":"⟺","DoubleLongRightArrow":"⟹","DoubleRightArrow":"⇒","DoubleRightTee":"⊨","DoubleUpArrow":"⇑","DoubleUpDownArrow":"⇕","DoubleVerticalBar":"∥","DownArrowBar":"⤓","downarrow":"↓","DownArrow":"↓","Downarrow":"⇓","DownArrowUpArrow":"⇵","DownBreve":"̑","downdownarrows":"⇊","downharpoonleft":"⇃","downharpoonright":"⇂","DownLeftRightVector":"⥐","DownLeftTeeVector":"⥞","DownLeftVectorBar":"⥖","DownLeftVector":"↽","DownRightTeeVector":"⥟","DownRightVectorBar":"⥗","DownRightVector":"⇁","DownTeeArrow":"↧","DownTee":"⊤","drbkarow":"⤐","drcorn":"⌟","drcrop":"⌌","Dscr":"𝒟","dscr":"𝒹","DScy":"Ѕ","dscy":"ѕ","dsol":"⧶","Dstrok":"Đ","dstrok":"đ","dtdot":"⋱","dtri":"▿","dtrif":"▾","duarr":"⇵","duhar":"⥯","dwangle":"⦦","DZcy":"Џ","dzcy":"џ","dzigrarr":"⟿","Eacute":"É","eacute":"é","easter":"⩮","Ecaron":"Ě","ecaron":"ě","Ecirc":"Ê","ecirc":"ê","ecir":"≖","ecolon":"≕","Ecy":"Э","ecy":"э","eDDot":"⩷","Edot":"Ė","edot":"ė","eDot":"≑","ee":"ⅇ","efDot":"≒","Efr":"𝔈","efr":"𝔢","eg":"⪚","Egrave":"È","egrave":"è","egs":"⪖","egsdot":"⪘","el":"⪙","Element":"∈","elinters":"⏧","ell":"ℓ","els":"⪕","elsdot":"⪗","Emacr":"Ē","emacr":"ē","empty":"∅","emptyset":"∅","EmptySmallSquare":"◻","emptyv":"∅","EmptyVerySmallSquare":"▫","emsp13":" ","emsp14":" ","emsp":" ","ENG":"Ŋ","eng":"ŋ","ensp":" ","Eogon":"Ę","eogon":"ę","Eopf":"𝔼","eopf":"𝕖","epar":"⋕","eparsl":"⧣","eplus":"⩱","epsi":"ε","Epsilon":"Ε","epsilon":"ε","epsiv":"ϵ","eqcirc":"≖","eqcolon":"≕","eqsim":"≂","eqslantgtr":"⪖","eqslantless":"⪕","Equal":"⩵","equals":"=","EqualTilde":"≂","equest":"≟","Equilibrium":"⇌","equiv":"≡","equivDD":"⩸","eqvparsl":"⧥","erarr":"⥱","erDot":"≓","escr":"ℯ","Escr":"ℰ","esdot":"≐","Esim":"⩳","esim":"≂","Eta":"Η","eta":"η","ETH":"Ð","eth":"ð","Euml":"Ë","euml":"ë","euro":"€","excl":"!","exist":"∃","Exists":"∃","expectation":"ℰ","exponentiale":"ⅇ","ExponentialE":"ⅇ","fallingdotseq":"≒","Fcy":"Ф","fcy":"ф","female":"♀","ffilig":"ffi","fflig":"ff","ffllig":"ffl","Ffr":"𝔉","ffr":"𝔣","filig":"fi","FilledSmallSquare":"◼","FilledVerySmallSquare":"▪","fjlig":"fj","flat":"♭","fllig":"fl","fltns":"▱","fnof":"ƒ","Fopf":"𝔽","fopf":"𝕗","forall":"∀","ForAll":"∀","fork":"⋔","forkv":"⫙","Fouriertrf":"ℱ","fpartint":"⨍","frac12":"½","frac13":"⅓","frac14":"¼","frac15":"⅕","frac16":"⅙","frac18":"⅛","frac23":"⅔","frac25":"⅖","frac34":"¾","frac35":"⅗","frac38":"⅜","frac45":"⅘","frac56":"⅚","frac58":"⅝","frac78":"⅞","frasl":"⁄","frown":"⌢","fscr":"𝒻","Fscr":"ℱ","gacute":"ǵ","Gamma":"Γ","gamma":"γ","Gammad":"Ϝ","gammad":"ϝ","gap":"⪆","Gbreve":"Ğ","gbreve":"ğ","Gcedil":"Ģ","Gcirc":"Ĝ","gcirc":"ĝ","Gcy":"Г","gcy":"г","Gdot":"Ġ","gdot":"ġ","ge":"≥","gE":"≧","gEl":"⪌","gel":"⋛","geq":"≥","geqq":"≧","geqslant":"⩾","gescc":"⪩","ges":"⩾","gesdot":"⪀","gesdoto":"⪂","gesdotol":"⪄","gesl":"⋛︀","gesles":"⪔","Gfr":"𝔊","gfr":"𝔤","gg":"≫","Gg":"⋙","ggg":"⋙","gimel":"ℷ","GJcy":"Ѓ","gjcy":"ѓ","gla":"⪥","gl":"≷","glE":"⪒","glj":"⪤","gnap":"⪊","gnapprox":"⪊","gne":"⪈","gnE":"≩","gneq":"⪈","gneqq":"≩","gnsim":"⋧","Gopf":"𝔾","gopf":"𝕘","grave":"`","GreaterEqual":"≥","GreaterEqualLess":"⋛","GreaterFullEqual":"≧","GreaterGreater":"⪢","GreaterLess":"≷","GreaterSlantEqual":"⩾","GreaterTilde":"≳","Gscr":"𝒢","gscr":"ℊ","gsim":"≳","gsime":"⪎","gsiml":"⪐","gtcc":"⪧","gtcir":"⩺","gt":">","GT":">","Gt":"≫","gtdot":"⋗","gtlPar":"⦕","gtquest":"⩼","gtrapprox":"⪆","gtrarr":"⥸","gtrdot":"⋗","gtreqless":"⋛","gtreqqless":"⪌","gtrless":"≷","gtrsim":"≳","gvertneqq":"≩︀","gvnE":"≩︀","Hacek":"ˇ","hairsp":" ","half":"½","hamilt":"ℋ","HARDcy":"Ъ","hardcy":"ъ","harrcir":"⥈","harr":"↔","hArr":"⇔","harrw":"↭","Hat":"^","hbar":"ℏ","Hcirc":"Ĥ","hcirc":"ĥ","hearts":"♥","heartsuit":"♥","hellip":"…","hercon":"⊹","hfr":"𝔥","Hfr":"ℌ","HilbertSpace":"ℋ","hksearow":"⤥","hkswarow":"⤦","hoarr":"⇿","homtht":"∻","hookleftarrow":"↩","hookrightarrow":"↪","hopf":"𝕙","Hopf":"ℍ","horbar":"―","HorizontalLine":"─","hscr":"𝒽","Hscr":"ℋ","hslash":"ℏ","Hstrok":"Ħ","hstrok":"ħ","HumpDownHump":"≎","HumpEqual":"≏","hybull":"⁃","hyphen":"‐","Iacute":"Í","iacute":"í","ic":"⁣","Icirc":"Î","icirc":"î","Icy":"И","icy":"и","Idot":"İ","IEcy":"Е","iecy":"е","iexcl":"¡","iff":"⇔","ifr":"𝔦","Ifr":"ℑ","Igrave":"Ì","igrave":"ì","ii":"ⅈ","iiiint":"⨌","iiint":"∭","iinfin":"⧜","iiota":"℩","IJlig":"IJ","ijlig":"ij","Imacr":"Ī","imacr":"ī","image":"ℑ","ImaginaryI":"ⅈ","imagline":"ℐ","imagpart":"ℑ","imath":"ı","Im":"ℑ","imof":"⊷","imped":"Ƶ","Implies":"⇒","incare":"℅","in":"∈","infin":"∞","infintie":"⧝","inodot":"ı","intcal":"⊺","int":"∫","Int":"∬","integers":"ℤ","Integral":"∫","intercal":"⊺","Intersection":"⋂","intlarhk":"⨗","intprod":"⨼","InvisibleComma":"⁣","InvisibleTimes":"⁢","IOcy":"Ё","iocy":"ё","Iogon":"Į","iogon":"į","Iopf":"𝕀","iopf":"𝕚","Iota":"Ι","iota":"ι","iprod":"⨼","iquest":"¿","iscr":"𝒾","Iscr":"ℐ","isin":"∈","isindot":"⋵","isinE":"⋹","isins":"⋴","isinsv":"⋳","isinv":"∈","it":"⁢","Itilde":"Ĩ","itilde":"ĩ","Iukcy":"І","iukcy":"і","Iuml":"Ï","iuml":"ï","Jcirc":"Ĵ","jcirc":"ĵ","Jcy":"Й","jcy":"й","Jfr":"𝔍","jfr":"𝔧","jmath":"ȷ","Jopf":"𝕁","jopf":"𝕛","Jscr":"𝒥","jscr":"𝒿","Jsercy":"Ј","jsercy":"ј","Jukcy":"Є","jukcy":"є","Kappa":"Κ","kappa":"κ","kappav":"ϰ","Kcedil":"Ķ","kcedil":"ķ","Kcy":"К","kcy":"к","Kfr":"𝔎","kfr":"𝔨","kgreen":"ĸ","KHcy":"Х","khcy":"х","KJcy":"Ќ","kjcy":"ќ","Kopf":"𝕂","kopf":"𝕜","Kscr":"𝒦","kscr":"𝓀","lAarr":"⇚","Lacute":"Ĺ","lacute":"ĺ","laemptyv":"⦴","lagran":"ℒ","Lambda":"Λ","lambda":"λ","lang":"⟨","Lang":"⟪","langd":"⦑","langle":"⟨","lap":"⪅","Laplacetrf":"ℒ","laquo":"«","larrb":"⇤","larrbfs":"⤟","larr":"←","Larr":"↞","lArr":"⇐","larrfs":"⤝","larrhk":"↩","larrlp":"↫","larrpl":"⤹","larrsim":"⥳","larrtl":"↢","latail":"⤙","lAtail":"⤛","lat":"⪫","late":"⪭","lates":"⪭︀","lbarr":"⤌","lBarr":"⤎","lbbrk":"❲","lbrace":"{","lbrack":"[","lbrke":"⦋","lbrksld":"⦏","lbrkslu":"⦍","Lcaron":"Ľ","lcaron":"ľ","Lcedil":"Ļ","lcedil":"ļ","lceil":"⌈","lcub":"{","Lcy":"Л","lcy":"л","ldca":"⤶","ldquo":"“","ldquor":"„","ldrdhar":"⥧","ldrushar":"⥋","ldsh":"↲","le":"≤","lE":"≦","LeftAngleBracket":"⟨","LeftArrowBar":"⇤","leftarrow":"←","LeftArrow":"←","Leftarrow":"⇐","LeftArrowRightArrow":"⇆","leftarrowtail":"↢","LeftCeiling":"⌈","LeftDoubleBracket":"⟦","LeftDownTeeVector":"⥡","LeftDownVectorBar":"⥙","LeftDownVector":"⇃","LeftFloor":"⌊","leftharpoondown":"↽","leftharpoonup":"↼","leftleftarrows":"⇇","leftrightarrow":"↔","LeftRightArrow":"↔","Leftrightarrow":"⇔","leftrightarrows":"⇆","leftrightharpoons":"⇋","leftrightsquigarrow":"↭","LeftRightVector":"⥎","LeftTeeArrow":"↤","LeftTee":"⊣","LeftTeeVector":"⥚","leftthreetimes":"⋋","LeftTriangleBar":"⧏","LeftTriangle":"⊲","LeftTriangleEqual":"⊴","LeftUpDownVector":"⥑","LeftUpTeeVector":"⥠","LeftUpVectorBar":"⥘","LeftUpVector":"↿","LeftVectorBar":"⥒","LeftVector":"↼","lEg":"⪋","leg":"⋚","leq":"≤","leqq":"≦","leqslant":"⩽","lescc":"⪨","les":"⩽","lesdot":"⩿","lesdoto":"⪁","lesdotor":"⪃","lesg":"⋚︀","lesges":"⪓","lessapprox":"⪅","lessdot":"⋖","lesseqgtr":"⋚","lesseqqgtr":"⪋","LessEqualGreater":"⋚","LessFullEqual":"≦","LessGreater":"≶","lessgtr":"≶","LessLess":"⪡","lesssim":"≲","LessSlantEqual":"⩽","LessTilde":"≲","lfisht":"⥼","lfloor":"⌊","Lfr":"𝔏","lfr":"𝔩","lg":"≶","lgE":"⪑","lHar":"⥢","lhard":"↽","lharu":"↼","lharul":"⥪","lhblk":"▄","LJcy":"Љ","ljcy":"љ","llarr":"⇇","ll":"≪","Ll":"⋘","llcorner":"⌞","Lleftarrow":"⇚","llhard":"⥫","lltri":"◺","Lmidot":"Ŀ","lmidot":"ŀ","lmoustache":"⎰","lmoust":"⎰","lnap":"⪉","lnapprox":"⪉","lne":"⪇","lnE":"≨","lneq":"⪇","lneqq":"≨","lnsim":"⋦","loang":"⟬","loarr":"⇽","lobrk":"⟦","longleftarrow":"⟵","LongLeftArrow":"⟵","Longleftarrow":"⟸","longleftrightarrow":"⟷","LongLeftRightArrow":"⟷","Longleftrightarrow":"⟺","longmapsto":"⟼","longrightarrow":"⟶","LongRightArrow":"⟶","Longrightarrow":"⟹","looparrowleft":"↫","looparrowright":"↬","lopar":"⦅","Lopf":"𝕃","lopf":"𝕝","loplus":"⨭","lotimes":"⨴","lowast":"∗","lowbar":"_","LowerLeftArrow":"↙","LowerRightArrow":"↘","loz":"◊","lozenge":"◊","lozf":"⧫","lpar":"(","lparlt":"⦓","lrarr":"⇆","lrcorner":"⌟","lrhar":"⇋","lrhard":"⥭","lrm":"‎","lrtri":"⊿","lsaquo":"‹","lscr":"𝓁","Lscr":"ℒ","lsh":"↰","Lsh":"↰","lsim":"≲","lsime":"⪍","lsimg":"⪏","lsqb":"[","lsquo":"‘","lsquor":"‚","Lstrok":"Ł","lstrok":"ł","ltcc":"⪦","ltcir":"⩹","lt":"<","LT":"<","Lt":"≪","ltdot":"⋖","lthree":"⋋","ltimes":"⋉","ltlarr":"⥶","ltquest":"⩻","ltri":"◃","ltrie":"⊴","ltrif":"◂","ltrPar":"⦖","lurdshar":"⥊","luruhar":"⥦","lvertneqq":"≨︀","lvnE":"≨︀","macr":"¯","male":"♂","malt":"✠","maltese":"✠","Map":"⤅","map":"↦","mapsto":"↦","mapstodown":"↧","mapstoleft":"↤","mapstoup":"↥","marker":"▮","mcomma":"⨩","Mcy":"М","mcy":"м","mdash":"—","mDDot":"∺","measuredangle":"∡","MediumSpace":" ","Mellintrf":"ℳ","Mfr":"𝔐","mfr":"𝔪","mho":"℧","micro":"µ","midast":"*","midcir":"⫰","mid":"∣","middot":"·","minusb":"⊟","minus":"−","minusd":"∸","minusdu":"⨪","MinusPlus":"∓","mlcp":"⫛","mldr":"…","mnplus":"∓","models":"⊧","Mopf":"𝕄","mopf":"𝕞","mp":"∓","mscr":"𝓂","Mscr":"ℳ","mstpos":"∾","Mu":"Μ","mu":"μ","multimap":"⊸","mumap":"⊸","nabla":"∇","Nacute":"Ń","nacute":"ń","nang":"∠⃒","nap":"≉","napE":"⩰̸","napid":"≋̸","napos":"ʼn","napprox":"≉","natural":"♮","naturals":"ℕ","natur":"♮","nbsp":" ","nbump":"≎̸","nbumpe":"≏̸","ncap":"⩃","Ncaron":"Ň","ncaron":"ň","Ncedil":"Ņ","ncedil":"ņ","ncong":"≇","ncongdot":"⩭̸","ncup":"⩂","Ncy":"Н","ncy":"н","ndash":"–","nearhk":"⤤","nearr":"↗","neArr":"⇗","nearrow":"↗","ne":"≠","nedot":"≐̸","NegativeMediumSpace":"​","NegativeThickSpace":"​","NegativeThinSpace":"​","NegativeVeryThinSpace":"​","nequiv":"≢","nesear":"⤨","nesim":"≂̸","NestedGreaterGreater":"≫","NestedLessLess":"≪","NewLine":"\\n","nexist":"∄","nexists":"∄","Nfr":"𝔑","nfr":"𝔫","ngE":"≧̸","nge":"≱","ngeq":"≱","ngeqq":"≧̸","ngeqslant":"⩾̸","nges":"⩾̸","nGg":"⋙̸","ngsim":"≵","nGt":"≫⃒","ngt":"≯","ngtr":"≯","nGtv":"≫̸","nharr":"↮","nhArr":"⇎","nhpar":"⫲","ni":"∋","nis":"⋼","nisd":"⋺","niv":"∋","NJcy":"Њ","njcy":"њ","nlarr":"↚","nlArr":"⇍","nldr":"‥","nlE":"≦̸","nle":"≰","nleftarrow":"↚","nLeftarrow":"⇍","nleftrightarrow":"↮","nLeftrightarrow":"⇎","nleq":"≰","nleqq":"≦̸","nleqslant":"⩽̸","nles":"⩽̸","nless":"≮","nLl":"⋘̸","nlsim":"≴","nLt":"≪⃒","nlt":"≮","nltri":"⋪","nltrie":"⋬","nLtv":"≪̸","nmid":"∤","NoBreak":"⁠","NonBreakingSpace":" ","nopf":"𝕟","Nopf":"ℕ","Not":"⫬","not":"¬","NotCongruent":"≢","NotCupCap":"≭","NotDoubleVerticalBar":"∦","NotElement":"∉","NotEqual":"≠","NotEqualTilde":"≂̸","NotExists":"∄","NotGreater":"≯","NotGreaterEqual":"≱","NotGreaterFullEqual":"≧̸","NotGreaterGreater":"≫̸","NotGreaterLess":"≹","NotGreaterSlantEqual":"⩾̸","NotGreaterTilde":"≵","NotHumpDownHump":"≎̸","NotHumpEqual":"≏̸","notin":"∉","notindot":"⋵̸","notinE":"⋹̸","notinva":"∉","notinvb":"⋷","notinvc":"⋶","NotLeftTriangleBar":"⧏̸","NotLeftTriangle":"⋪","NotLeftTriangleEqual":"⋬","NotLess":"≮","NotLessEqual":"≰","NotLessGreater":"≸","NotLessLess":"≪̸","NotLessSlantEqual":"⩽̸","NotLessTilde":"≴","NotNestedGreaterGreater":"⪢̸","NotNestedLessLess":"⪡̸","notni":"∌","notniva":"∌","notnivb":"⋾","notnivc":"⋽","NotPrecedes":"⊀","NotPrecedesEqual":"⪯̸","NotPrecedesSlantEqual":"⋠","NotReverseElement":"∌","NotRightTriangleBar":"⧐̸","NotRightTriangle":"⋫","NotRightTriangleEqual":"⋭","NotSquareSubset":"⊏̸","NotSquareSubsetEqual":"⋢","NotSquareSuperset":"⊐̸","NotSquareSupersetEqual":"⋣","NotSubset":"⊂⃒","NotSubsetEqual":"⊈","NotSucceeds":"⊁","NotSucceedsEqual":"⪰̸","NotSucceedsSlantEqual":"⋡","NotSucceedsTilde":"≿̸","NotSuperset":"⊃⃒","NotSupersetEqual":"⊉","NotTilde":"≁","NotTildeEqual":"≄","NotTildeFullEqual":"≇","NotTildeTilde":"≉","NotVerticalBar":"∤","nparallel":"∦","npar":"∦","nparsl":"⫽⃥","npart":"∂̸","npolint":"⨔","npr":"⊀","nprcue":"⋠","nprec":"⊀","npreceq":"⪯̸","npre":"⪯̸","nrarrc":"⤳̸","nrarr":"↛","nrArr":"⇏","nrarrw":"↝̸","nrightarrow":"↛","nRightarrow":"⇏","nrtri":"⋫","nrtrie":"⋭","nsc":"⊁","nsccue":"⋡","nsce":"⪰̸","Nscr":"𝒩","nscr":"𝓃","nshortmid":"∤","nshortparallel":"∦","nsim":"≁","nsime":"≄","nsimeq":"≄","nsmid":"∤","nspar":"∦","nsqsube":"⋢","nsqsupe":"⋣","nsub":"⊄","nsubE":"⫅̸","nsube":"⊈","nsubset":"⊂⃒","nsubseteq":"⊈","nsubseteqq":"⫅̸","nsucc":"⊁","nsucceq":"⪰̸","nsup":"⊅","nsupE":"⫆̸","nsupe":"⊉","nsupset":"⊃⃒","nsupseteq":"⊉","nsupseteqq":"⫆̸","ntgl":"≹","Ntilde":"Ñ","ntilde":"ñ","ntlg":"≸","ntriangleleft":"⋪","ntrianglelefteq":"⋬","ntriangleright":"⋫","ntrianglerighteq":"⋭","Nu":"Ν","nu":"ν","num":"#","numero":"№","numsp":" ","nvap":"≍⃒","nvdash":"⊬","nvDash":"⊭","nVdash":"⊮","nVDash":"⊯","nvge":"≥⃒","nvgt":">⃒","nvHarr":"⤄","nvinfin":"⧞","nvlArr":"⤂","nvle":"≤⃒","nvlt":"<⃒","nvltrie":"⊴⃒","nvrArr":"⤃","nvrtrie":"⊵⃒","nvsim":"∼⃒","nwarhk":"⤣","nwarr":"↖","nwArr":"⇖","nwarrow":"↖","nwnear":"⤧","Oacute":"Ó","oacute":"ó","oast":"⊛","Ocirc":"Ô","ocirc":"ô","ocir":"⊚","Ocy":"О","ocy":"о","odash":"⊝","Odblac":"Ő","odblac":"ő","odiv":"⨸","odot":"⊙","odsold":"⦼","OElig":"Œ","oelig":"œ","ofcir":"⦿","Ofr":"𝔒","ofr":"𝔬","ogon":"˛","Ograve":"Ò","ograve":"ò","ogt":"⧁","ohbar":"⦵","ohm":"Ω","oint":"∮","olarr":"↺","olcir":"⦾","olcross":"⦻","oline":"‾","olt":"⧀","Omacr":"Ō","omacr":"ō","Omega":"Ω","omega":"ω","Omicron":"Ο","omicron":"ο","omid":"⦶","ominus":"⊖","Oopf":"𝕆","oopf":"𝕠","opar":"⦷","OpenCurlyDoubleQuote":"“","OpenCurlyQuote":"‘","operp":"⦹","oplus":"⊕","orarr":"↻","Or":"⩔","or":"∨","ord":"⩝","order":"ℴ","orderof":"ℴ","ordf":"ª","ordm":"º","origof":"⊶","oror":"⩖","orslope":"⩗","orv":"⩛","oS":"Ⓢ","Oscr":"𝒪","oscr":"ℴ","Oslash":"Ø","oslash":"ø","osol":"⊘","Otilde":"Õ","otilde":"õ","otimesas":"⨶","Otimes":"⨷","otimes":"⊗","Ouml":"Ö","ouml":"ö","ovbar":"⌽","OverBar":"‾","OverBrace":"⏞","OverBracket":"⎴","OverParenthesis":"⏜","para":"¶","parallel":"∥","par":"∥","parsim":"⫳","parsl":"⫽","part":"∂","PartialD":"∂","Pcy":"П","pcy":"п","percnt":"%","period":".","permil":"‰","perp":"⊥","pertenk":"‱","Pfr":"𝔓","pfr":"𝔭","Phi":"Φ","phi":"φ","phiv":"ϕ","phmmat":"ℳ","phone":"☎","Pi":"Π","pi":"π","pitchfork":"⋔","piv":"ϖ","planck":"ℏ","planckh":"ℎ","plankv":"ℏ","plusacir":"⨣","plusb":"⊞","pluscir":"⨢","plus":"+","plusdo":"∔","plusdu":"⨥","pluse":"⩲","PlusMinus":"±","plusmn":"±","plussim":"⨦","plustwo":"⨧","pm":"±","Poincareplane":"ℌ","pointint":"⨕","popf":"𝕡","Popf":"ℙ","pound":"£","prap":"⪷","Pr":"⪻","pr":"≺","prcue":"≼","precapprox":"⪷","prec":"≺","preccurlyeq":"≼","Precedes":"≺","PrecedesEqual":"⪯","PrecedesSlantEqual":"≼","PrecedesTilde":"≾","preceq":"⪯","precnapprox":"⪹","precneqq":"⪵","precnsim":"⋨","pre":"⪯","prE":"⪳","precsim":"≾","prime":"′","Prime":"″","primes":"ℙ","prnap":"⪹","prnE":"⪵","prnsim":"⋨","prod":"∏","Product":"∏","profalar":"⌮","profline":"⌒","profsurf":"⌓","prop":"∝","Proportional":"∝","Proportion":"∷","propto":"∝","prsim":"≾","prurel":"⊰","Pscr":"𝒫","pscr":"𝓅","Psi":"Ψ","psi":"ψ","puncsp":" ","Qfr":"𝔔","qfr":"𝔮","qint":"⨌","qopf":"𝕢","Qopf":"ℚ","qprime":"⁗","Qscr":"𝒬","qscr":"𝓆","quaternions":"ℍ","quatint":"⨖","quest":"?","questeq":"≟","quot":"\\"","QUOT":"\\"","rAarr":"⇛","race":"∽̱","Racute":"Ŕ","racute":"ŕ","radic":"√","raemptyv":"⦳","rang":"⟩","Rang":"⟫","rangd":"⦒","range":"⦥","rangle":"⟩","raquo":"»","rarrap":"⥵","rarrb":"⇥","rarrbfs":"⤠","rarrc":"⤳","rarr":"→","Rarr":"↠","rArr":"⇒","rarrfs":"⤞","rarrhk":"↪","rarrlp":"↬","rarrpl":"⥅","rarrsim":"⥴","Rarrtl":"⤖","rarrtl":"↣","rarrw":"↝","ratail":"⤚","rAtail":"⤜","ratio":"∶","rationals":"ℚ","rbarr":"⤍","rBarr":"⤏","RBarr":"⤐","rbbrk":"❳","rbrace":"}","rbrack":"]","rbrke":"⦌","rbrksld":"⦎","rbrkslu":"⦐","Rcaron":"Ř","rcaron":"ř","Rcedil":"Ŗ","rcedil":"ŗ","rceil":"⌉","rcub":"}","Rcy":"Р","rcy":"р","rdca":"⤷","rdldhar":"⥩","rdquo":"”","rdquor":"”","rdsh":"↳","real":"ℜ","realine":"ℛ","realpart":"ℜ","reals":"ℝ","Re":"ℜ","rect":"▭","reg":"®","REG":"®","ReverseElement":"∋","ReverseEquilibrium":"⇋","ReverseUpEquilibrium":"⥯","rfisht":"⥽","rfloor":"⌋","rfr":"𝔯","Rfr":"ℜ","rHar":"⥤","rhard":"⇁","rharu":"⇀","rharul":"⥬","Rho":"Ρ","rho":"ρ","rhov":"ϱ","RightAngleBracket":"⟩","RightArrowBar":"⇥","rightarrow":"→","RightArrow":"→","Rightarrow":"⇒","RightArrowLeftArrow":"⇄","rightarrowtail":"↣","RightCeiling":"⌉","RightDoubleBracket":"⟧","RightDownTeeVector":"⥝","RightDownVectorBar":"⥕","RightDownVector":"⇂","RightFloor":"⌋","rightharpoondown":"⇁","rightharpoonup":"⇀","rightleftarrows":"⇄","rightleftharpoons":"⇌","rightrightarrows":"⇉","rightsquigarrow":"↝","RightTeeArrow":"↦","RightTee":"⊢","RightTeeVector":"⥛","rightthreetimes":"⋌","RightTriangleBar":"⧐","RightTriangle":"⊳","RightTriangleEqual":"⊵","RightUpDownVector":"⥏","RightUpTeeVector":"⥜","RightUpVectorBar":"⥔","RightUpVector":"↾","RightVectorBar":"⥓","RightVector":"⇀","ring":"˚","risingdotseq":"≓","rlarr":"⇄","rlhar":"⇌","rlm":"‏","rmoustache":"⎱","rmoust":"⎱","rnmid":"⫮","roang":"⟭","roarr":"⇾","robrk":"⟧","ropar":"⦆","ropf":"𝕣","Ropf":"ℝ","roplus":"⨮","rotimes":"⨵","RoundImplies":"⥰","rpar":")","rpargt":"⦔","rppolint":"⨒","rrarr":"⇉","Rrightarrow":"⇛","rsaquo":"›","rscr":"𝓇","Rscr":"ℛ","rsh":"↱","Rsh":"↱","rsqb":"]","rsquo":"’","rsquor":"’","rthree":"⋌","rtimes":"⋊","rtri":"▹","rtrie":"⊵","rtrif":"▸","rtriltri":"⧎","RuleDelayed":"⧴","ruluhar":"⥨","rx":"℞","Sacute":"Ś","sacute":"ś","sbquo":"‚","scap":"⪸","Scaron":"Š","scaron":"š","Sc":"⪼","sc":"≻","sccue":"≽","sce":"⪰","scE":"⪴","Scedil":"Ş","scedil":"ş","Scirc":"Ŝ","scirc":"ŝ","scnap":"⪺","scnE":"⪶","scnsim":"⋩","scpolint":"⨓","scsim":"≿","Scy":"С","scy":"с","sdotb":"⊡","sdot":"⋅","sdote":"⩦","searhk":"⤥","searr":"↘","seArr":"⇘","searrow":"↘","sect":"§","semi":";","seswar":"⤩","setminus":"∖","setmn":"∖","sext":"✶","Sfr":"𝔖","sfr":"𝔰","sfrown":"⌢","sharp":"♯","SHCHcy":"Щ","shchcy":"щ","SHcy":"Ш","shcy":"ш","ShortDownArrow":"↓","ShortLeftArrow":"←","shortmid":"∣","shortparallel":"∥","ShortRightArrow":"→","ShortUpArrow":"↑","shy":"­","Sigma":"Σ","sigma":"σ","sigmaf":"ς","sigmav":"ς","sim":"∼","simdot":"⩪","sime":"≃","simeq":"≃","simg":"⪞","simgE":"⪠","siml":"⪝","simlE":"⪟","simne":"≆","simplus":"⨤","simrarr":"⥲","slarr":"←","SmallCircle":"∘","smallsetminus":"∖","smashp":"⨳","smeparsl":"⧤","smid":"∣","smile":"⌣","smt":"⪪","smte":"⪬","smtes":"⪬︀","SOFTcy":"Ь","softcy":"ь","solbar":"⌿","solb":"⧄","sol":"/","Sopf":"𝕊","sopf":"𝕤","spades":"♠","spadesuit":"♠","spar":"∥","sqcap":"⊓","sqcaps":"⊓︀","sqcup":"⊔","sqcups":"⊔︀","Sqrt":"√","sqsub":"⊏","sqsube":"⊑","sqsubset":"⊏","sqsubseteq":"⊑","sqsup":"⊐","sqsupe":"⊒","sqsupset":"⊐","sqsupseteq":"⊒","square":"□","Square":"□","SquareIntersection":"⊓","SquareSubset":"⊏","SquareSubsetEqual":"⊑","SquareSuperset":"⊐","SquareSupersetEqual":"⊒","SquareUnion":"⊔","squarf":"▪","squ":"□","squf":"▪","srarr":"→","Sscr":"𝒮","sscr":"𝓈","ssetmn":"∖","ssmile":"⌣","sstarf":"⋆","Star":"⋆","star":"☆","starf":"★","straightepsilon":"ϵ","straightphi":"ϕ","strns":"¯","sub":"⊂","Sub":"⋐","subdot":"⪽","subE":"⫅","sube":"⊆","subedot":"⫃","submult":"⫁","subnE":"⫋","subne":"⊊","subplus":"⪿","subrarr":"⥹","subset":"⊂","Subset":"⋐","subseteq":"⊆","subseteqq":"⫅","SubsetEqual":"⊆","subsetneq":"⊊","subsetneqq":"⫋","subsim":"⫇","subsub":"⫕","subsup":"⫓","succapprox":"⪸","succ":"≻","succcurlyeq":"≽","Succeeds":"≻","SucceedsEqual":"⪰","SucceedsSlantEqual":"≽","SucceedsTilde":"≿","succeq":"⪰","succnapprox":"⪺","succneqq":"⪶","succnsim":"⋩","succsim":"≿","SuchThat":"∋","sum":"∑","Sum":"∑","sung":"♪","sup1":"¹","sup2":"²","sup3":"³","sup":"⊃","Sup":"⋑","supdot":"⪾","supdsub":"⫘","supE":"⫆","supe":"⊇","supedot":"⫄","Superset":"⊃","SupersetEqual":"⊇","suphsol":"⟉","suphsub":"⫗","suplarr":"⥻","supmult":"⫂","supnE":"⫌","supne":"⊋","supplus":"⫀","supset":"⊃","Supset":"⋑","supseteq":"⊇","supseteqq":"⫆","supsetneq":"⊋","supsetneqq":"⫌","supsim":"⫈","supsub":"⫔","supsup":"⫖","swarhk":"⤦","swarr":"↙","swArr":"⇙","swarrow":"↙","swnwar":"⤪","szlig":"ß","Tab":"\\t","target":"⌖","Tau":"Τ","tau":"τ","tbrk":"⎴","Tcaron":"Ť","tcaron":"ť","Tcedil":"Ţ","tcedil":"ţ","Tcy":"Т","tcy":"т","tdot":"⃛","telrec":"⌕","Tfr":"𝔗","tfr":"𝔱","there4":"∴","therefore":"∴","Therefore":"∴","Theta":"Θ","theta":"θ","thetasym":"ϑ","thetav":"ϑ","thickapprox":"≈","thicksim":"∼","ThickSpace":"  ","ThinSpace":" ","thinsp":" ","thkap":"≈","thksim":"∼","THORN":"Þ","thorn":"þ","tilde":"˜","Tilde":"∼","TildeEqual":"≃","TildeFullEqual":"≅","TildeTilde":"≈","timesbar":"⨱","timesb":"⊠","times":"×","timesd":"⨰","tint":"∭","toea":"⤨","topbot":"⌶","topcir":"⫱","top":"⊤","Topf":"𝕋","topf":"𝕥","topfork":"⫚","tosa":"⤩","tprime":"‴","trade":"™","TRADE":"™","triangle":"▵","triangledown":"▿","triangleleft":"◃","trianglelefteq":"⊴","triangleq":"≜","triangleright":"▹","trianglerighteq":"⊵","tridot":"◬","trie":"≜","triminus":"⨺","TripleDot":"⃛","triplus":"⨹","trisb":"⧍","tritime":"⨻","trpezium":"⏢","Tscr":"𝒯","tscr":"𝓉","TScy":"Ц","tscy":"ц","TSHcy":"Ћ","tshcy":"ћ","Tstrok":"Ŧ","tstrok":"ŧ","twixt":"≬","twoheadleftarrow":"↞","twoheadrightarrow":"↠","Uacute":"Ú","uacute":"ú","uarr":"↑","Uarr":"↟","uArr":"⇑","Uarrocir":"⥉","Ubrcy":"Ў","ubrcy":"ў","Ubreve":"Ŭ","ubreve":"ŭ","Ucirc":"Û","ucirc":"û","Ucy":"У","ucy":"у","udarr":"⇅","Udblac":"Ű","udblac":"ű","udhar":"⥮","ufisht":"⥾","Ufr":"𝔘","ufr":"𝔲","Ugrave":"Ù","ugrave":"ù","uHar":"⥣","uharl":"↿","uharr":"↾","uhblk":"▀","ulcorn":"⌜","ulcorner":"⌜","ulcrop":"⌏","ultri":"◸","Umacr":"Ū","umacr":"ū","uml":"¨","UnderBar":"_","UnderBrace":"⏟","UnderBracket":"⎵","UnderParenthesis":"⏝","Union":"⋃","UnionPlus":"⊎","Uogon":"Ų","uogon":"ų","Uopf":"𝕌","uopf":"𝕦","UpArrowBar":"⤒","uparrow":"↑","UpArrow":"↑","Uparrow":"⇑","UpArrowDownArrow":"⇅","updownarrow":"↕","UpDownArrow":"↕","Updownarrow":"⇕","UpEquilibrium":"⥮","upharpoonleft":"↿","upharpoonright":"↾","uplus":"⊎","UpperLeftArrow":"↖","UpperRightArrow":"↗","upsi":"υ","Upsi":"ϒ","upsih":"ϒ","Upsilon":"Υ","upsilon":"υ","UpTeeArrow":"↥","UpTee":"⊥","upuparrows":"⇈","urcorn":"⌝","urcorner":"⌝","urcrop":"⌎","Uring":"Ů","uring":"ů","urtri":"◹","Uscr":"𝒰","uscr":"𝓊","utdot":"⋰","Utilde":"Ũ","utilde":"ũ","utri":"▵","utrif":"▴","uuarr":"⇈","Uuml":"Ü","uuml":"ü","uwangle":"⦧","vangrt":"⦜","varepsilon":"ϵ","varkappa":"ϰ","varnothing":"∅","varphi":"ϕ","varpi":"ϖ","varpropto":"∝","varr":"↕","vArr":"⇕","varrho":"ϱ","varsigma":"ς","varsubsetneq":"⊊︀","varsubsetneqq":"⫋︀","varsupsetneq":"⊋︀","varsupsetneqq":"⫌︀","vartheta":"ϑ","vartriangleleft":"⊲","vartriangleright":"⊳","vBar":"⫨","Vbar":"⫫","vBarv":"⫩","Vcy":"В","vcy":"в","vdash":"⊢","vDash":"⊨","Vdash":"⊩","VDash":"⊫","Vdashl":"⫦","veebar":"⊻","vee":"∨","Vee":"⋁","veeeq":"≚","vellip":"⋮","verbar":"|","Verbar":"‖","vert":"|","Vert":"‖","VerticalBar":"∣","VerticalLine":"|","VerticalSeparator":"❘","VerticalTilde":"≀","VeryThinSpace":" ","Vfr":"𝔙","vfr":"𝔳","vltri":"⊲","vnsub":"⊂⃒","vnsup":"⊃⃒","Vopf":"𝕍","vopf":"𝕧","vprop":"∝","vrtri":"⊳","Vscr":"𝒱","vscr":"𝓋","vsubnE":"⫋︀","vsubne":"⊊︀","vsupnE":"⫌︀","vsupne":"⊋︀","Vvdash":"⊪","vzigzag":"⦚","Wcirc":"Ŵ","wcirc":"ŵ","wedbar":"⩟","wedge":"∧","Wedge":"⋀","wedgeq":"≙","weierp":"℘","Wfr":"𝔚","wfr":"𝔴","Wopf":"𝕎","wopf":"𝕨","wp":"℘","wr":"≀","wreath":"≀","Wscr":"𝒲","wscr":"𝓌","xcap":"⋂","xcirc":"◯","xcup":"⋃","xdtri":"▽","Xfr":"𝔛","xfr":"𝔵","xharr":"⟷","xhArr":"⟺","Xi":"Ξ","xi":"ξ","xlarr":"⟵","xlArr":"⟸","xmap":"⟼","xnis":"⋻","xodot":"⨀","Xopf":"𝕏","xopf":"𝕩","xoplus":"⨁","xotime":"⨂","xrarr":"⟶","xrArr":"⟹","Xscr":"𝒳","xscr":"𝓍","xsqcup":"⨆","xuplus":"⨄","xutri":"△","xvee":"⋁","xwedge":"⋀","Yacute":"Ý","yacute":"ý","YAcy":"Я","yacy":"я","Ycirc":"Ŷ","ycirc":"ŷ","Ycy":"Ы","ycy":"ы","yen":"¥","Yfr":"𝔜","yfr":"𝔶","YIcy":"Ї","yicy":"ї","Yopf":"𝕐","yopf":"𝕪","Yscr":"𝒴","yscr":"𝓎","YUcy":"Ю","yucy":"ю","yuml":"ÿ","Yuml":"Ÿ","Zacute":"Ź","zacute":"ź","Zcaron":"Ž","zcaron":"ž","Zcy":"З","zcy":"з","Zdot":"Ż","zdot":"ż","zeetrf":"ℨ","ZeroWidthSpace":"​","Zeta":"Ζ","zeta":"ζ","zfr":"𝔷","Zfr":"ℨ","ZHcy":"Ж","zhcy":"ж","zigrarr":"⇝","zopf":"𝕫","Zopf":"ℤ","Zscr":"𝒵","zscr":"𝓏","zwj":"‍","zwnj":"‌"}')},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t={};function n(e,r,i){var o,a,s,l,c,u="";for("string"!=typeof r&&(i=r,r=n.defaultChars),void 0===i&&(i=!0),c=function(e){var n,r,i=t[e];if(i)return i;for(i=t[e]=[],n=0;n<128;n++)r=String.fromCharCode(n),/^[0-9a-z]$/i.test(r)?i.push(r):i.push("%"+("0"+n.toString(16).toUpperCase()).slice(-2));for(n=0;n=55296&&s<=57343){if(s>=55296&&s<=56319&&o+1=56320&&l<=57343){u+=encodeURIComponent(e[o]+e[o+1]),o++;continue}u+="%EF%BF%BD"}else u+=encodeURIComponent(e[o]);return u}n.defaultChars=";/?:@&=+$,-_.!~*'()#",n.componentChars="-_.!~*'()",e.exports=n})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t={};function n(e,r){var i;return"string"!=typeof r&&(r=n.defaultChars),i=function(e){var n,r,i=t[e];if(i)return i;for(i=t[e]=[],n=0;n<128;n++)r=String.fromCharCode(n),i.push(r);for(n=0;n=55296&&l<=57343?"���":String.fromCharCode(l),t+=6):240==(248&r)&&t+91114111?c+="����":(l-=65536,c+=String.fromCharCode(55296+(l>>10),56320+(1023&l))),t+=9):c+="�";return c}))}n.defaultChars=";/?:@&=+$,#",n.componentChars="",e.exports=n})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";e.exports=function(e){var t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&-1!==e.hostname.indexOf(":")?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||""}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";function t(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var n=/^([a-z0-9.+-]+:)/i,r=/:[0-9]*$/,i=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,o=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),a=["'"].concat(o),s=["%","/","?",";","#"].concat(a),l=["/","?","#"],c=/^[+a-z0-9A-Z_-]{0,63}$/,u=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,f={javascript:!0,"javascript:":!0},d={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};t.prototype.parse=function(e,t){var r,o,a,p,h,m=e;if(m=m.trim(),!t&&1===e.split("#").length){var v=i.exec(m);if(v)return this.pathname=v[1],v[2]&&(this.search=v[2]),this}var g=n.exec(m);if(g&&(a=(g=g[0]).toLowerCase(),this.protocol=g,m=m.substr(g.length)),(t||g||m.match(/^\/\/[^@\/]+@[^@\/]+/))&&(!(h="//"===m.substr(0,2))||g&&f[g]||(m=m.substr(2),this.slashes=!0)),!f[g]&&(h||g&&!d[g])){var y,b,T=-1;for(r=0;r127?_+="x":_+=x[k];if(!_.match(c)){var S=w.slice(0,r),N=w.slice(r+1),D=x.match(u);D&&(S.push(D[1]),N.unshift(D[2])),N.length&&(m=N.join(".")+m),this.hostname=S.join(".");break}}}}this.hostname.length>255&&(this.hostname=""),O&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var I=m.indexOf("#");-1!==I&&(this.hash=m.substr(I),m=m.slice(0,I));var A=m.indexOf("?");return-1!==A&&(this.search=m.substr(A),m=m.slice(0,A)),m&&(this.pathname=m),d[a]&&this.hostname&&!this.pathname&&(this.pathname=""),this},t.prototype.parseHost=function(e){var t=r.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)},e.exports=function(e,n){if(e&&e instanceof t)return e;var r=new t;return r.parse(e,n),r}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";t.Any=n(63),t.Cc=n(64),t.Cf=n(128),t.P=n(51),t.Z=n(65)})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";e.exports=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";t.parseLinkLabel=n(130),t.parseLinkDestination=n(131),t.parseLinkTitle=n(132)})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";e.exports=function(e,t,n){var r,i,o,a,s=-1,l=e.posMax,c=e.pos;for(e.pos=t+1,r=1;e.pos=r)return l;if(34!==(o=e.charCodeAt(n))&&39!==o&&40!==o)return l;for(n++,40===o&&(o=41);n"+i(e[t].content)+""},o.code_block=function(e,t,n,r,o){var a=e[t];return""+i(e[t].content)+"\n"},o.fence=function(e,t,n,o,a){var s,l,c,u,f=e[t],d=f.info?r(f.info).trim():"",p="";return d&&(p=d.split(/\s+/g)[0]),0===(s=n.highlight&&n.highlight(f.content,p)||i(f.content)).indexOf(""+s+"\n"):"
"+s+"
\n"},o.image=function(e,t,n,r,i){var o=e[t];return o.attrs[o.attrIndex("alt")][1]=i.renderInlineAsText(o.children,n,r),i.renderToken(e,t,n)},o.hardbreak=function(e,t,n){return n.xhtmlOut?"
\n":"
\n"},o.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?"
\n":"
\n":"\n"},o.text=function(e,t){return i(e[t].content)},o.html_block=function(e,t){return e[t].content},o.html_inline=function(e,t){return e[t].content},a.prototype.renderAttrs=function(e){var t,n,r;if(!e.attrs)return"";for(r="",t=0,n=e.attrs.length;t\n":">")},a.prototype.renderInline=function(e,t,n){for(var r,i="",o=this.rules,a=0,s=e.length;a/i.test(e)}e.exports=function(e){var n,i,o,a,s,l,c,u,f,d,p,h,m,v,g,y,b,T,E=e.tokens;if(e.md.options.linkify)for(i=0,o=E.length;i=0;n--)if("link_close"!==(l=a[n]).type){if("html_inline"===l.type&&(T=l.content,/^\s]/i.test(T)&&m>0&&m--,r(l.content)&&m++),!(m>0)&&"text"===l.type&&e.md.linkify.test(l.content)){for(f=l.content,b=e.md.linkify.match(f),c=[],h=l.level,p=0,u=0;up&&((s=new e.Token("text","",0)).content=f.slice(p,d),s.level=h,c.push(s)),(s=new e.Token("link_open","a",1)).attrs=[["href",g]],s.level=h++,s.markup="linkify",s.info="auto",c.push(s),(s=new e.Token("text","",0)).content=y,s.level=h,c.push(s),(s=new e.Token("link_close","a",-1)).level=--h,s.markup="linkify",s.info="auto",c.push(s),p=b[u].lastIndex);p=0;t--)"text"!==(n=e[t]).type||i||(n.content=n.content.replace(r,o)),"link_open"===n.type&&"auto"===n.info&&i--,"link_close"===n.type&&"auto"===n.info&&i++}function s(e){var n,r,i=0;for(n=e.length-1;n>=0;n--)"text"!==(r=e[n]).type||i||t.test(r.content)&&(r.content=r.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---([^-]|$)/gm,"$1—$2").replace(/(^|\s)--(\s|$)/gm,"$1–$2").replace(/(^|[^-\s])--([^-\s]|$)/gm,"$1–$2")),"link_open"===r.type&&"auto"===r.info&&i--,"link_close"===r.type&&"auto"===r.info&&i++}e.exports=function(e){var r;if(e.md.options.typographer)for(r=e.tokens.length-1;r>=0;r--)"inline"===e.tokens[r].type&&(n.test(e.tokens[r].content)&&a(e.tokens[r].children),t.test(e.tokens[r].content)&&s(e.tokens[r].children))}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t=n(13).isWhiteSpace,r=n(13).isPunctChar,i=n(13).isMdAsciiPunct,o=/['"]/,a=/['"]/g;function s(e,t,n){return e.substr(0,t)+n+e.substr(t+1)}function l(e,n){var o,l,c,u,f,d,p,h,m,v,g,y,b,T,E,O,w,x,_,k,C;for(_=[],o=0;o=0&&!(_[w].level<=p);w--);if(_.length=w+1,"text"===l.type){f=0,d=(c=l.content).length;e:for(;f=0)m=c.charCodeAt(u.index-1);else for(w=o-1;w>=0&&"softbreak"!==e[w].type&&"hardbreak"!==e[w].type;w--)if("text"===e[w].type){m=e[w].content.charCodeAt(e[w].content.length-1);break}if(v=32,f=48&&m<=57&&(O=E=!1),E&&O&&(E=!1,O=y),E||O){if(O)for(w=_.length-1;w>=0&&(h=_[w],!(_[w].level=0;t--)"inline"===e.tokens[t].type&&o.test(e.tokens[t].content)&&l(e.tokens[t].children,e)}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t=n(53);function r(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}r.prototype.Token=t,e.exports=r})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t=n(52),r=[["table",n(143),["paragraph","reference"]],["code",n(144)],["fence",n(145),["paragraph","reference","blockquote","list"]],["blockquote",n(146),["paragraph","reference","blockquote","list"]],["hr",n(147),["paragraph","reference","blockquote","list"]],["list",n(148),["paragraph","reference","blockquote"]],["reference",n(149)],["heading",n(150),["paragraph","reference","blockquote"]],["lheading",n(151)],["html_block",n(152),["paragraph","reference","blockquote"]],["paragraph",n(154)]];function i(){this.ruler=new t;for(var e=0;e=n))&&!(e.sCount[a]=l){e.line=n;break}for(r=0;ro)return!1;if(f=n+1,e.sCount[f]=4)return!1;if((c=e.bMarks[f]+e.tShift[f])>=e.eMarks[f])return!1;if(124!==(s=e.src.charCodeAt(c++))&&45!==s&&58!==s)return!1;for(;c=4)return!1;if((p=(d=i(l.replace(/^\||\|$/g,""))).length)>m.length)return!1;if(a)return!0;for((h=e.push("table_open","table",1)).map=g=[n,0],(h=e.push("thead_open","thead",1)).map=[n,n+1],(h=e.push("tr_open","tr",1)).map=[n,n+1],u=0;u=4);f++){for(d=i(l.replace(/^\||\|$/g,"")),h=e.push("tr_open","tr",1),u=0;u=4))break;i=++r}return e.line=i,(o=e.push("code_block","code",0)).content=e.getLines(t,i,4+e.blkIndent,!0),o.map=[t,e.line],!0}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";e.exports=function(e,t,n,r){var i,o,a,s,l,c,u,f=!1,d=e.bMarks[t]+e.tShift[t],p=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(d+3>p)return!1;if(126!==(i=e.src.charCodeAt(d))&&96!==i)return!1;if(l=d,(o=(d=e.skipChars(d,i))-l)<3)return!1;if(u=e.src.slice(l,d),a=e.src.slice(d,p),96===i&&a.indexOf(String.fromCharCode(i))>=0)return!1;if(r)return!0;for(s=t;!(++s>=n||(d=l=e.bMarks[s]+e.tShift[s])<(p=e.eMarks[s])&&e.sCount[s]=4||(d=e.skipChars(d,i))-l=4)return!1;if(62!==e.src.charCodeAt(k++))return!1;if(i)return!0;for(l=p=e.sCount[n]+k-(e.bMarks[n]+e.tShift[n]),32===e.src.charCodeAt(k)?(k++,l++,p++,o=!1,T=!0):9===e.src.charCodeAt(k)?(T=!0,(e.bsCount[n]+p)%4==3?(k++,l++,p++,o=!1):o=!0):T=!1,h=[e.bMarks[n]],e.bMarks[n]=k;k=C,y=[e.sCount[n]],e.sCount[n]=p-l,b=[e.tShift[n]],e.tShift[n]=k-e.bMarks[n],O=e.md.block.ruler.getRules("blockquote"),g=e.parentType,e.parentType="blockquote",x=!1,d=n+1;d=(C=e.eMarks[d])));d++)if(62!==e.src.charCodeAt(k++)||x){if(u)break;for(E=!1,s=0,c=O.length;s=C,m.push(e.bsCount[d]),e.bsCount[d]=e.sCount[d]+1+(T?1:0),y.push(e.sCount[d]),e.sCount[d]=p-l,b.push(e.tShift[d]),e.tShift[d]=k-e.bMarks[d]}for(v=e.blkIndent,e.blkIndent=0,(w=e.push("blockquote_open","blockquote",1)).markup=">",w.map=f=[n,0],e.md.block.tokenize(e,n,d),(w=e.push("blockquote_close","blockquote",-1)).markup=">",e.lineMax=_,e.parentType=g,f[1]=e.line,s=0;s=4)return!1;if(42!==(o=e.src.charCodeAt(c++))&&45!==o&&95!==o)return!1;for(a=1;c=a)return-1;if((r=e.src.charCodeAt(o++))<48||r>57)return-1;for(;;){if(o>=a)return-1;if(!((r=e.src.charCodeAt(o++))>=48&&r<=57)){if(41===r||46===r)break;return-1}if(o-i>=10)return-1}return o=4)return!1;if(e.listIndent>=0&&e.sCount[t]-e.listIndent>=4&&e.sCount[t]=e.blkIndent&&(j=!0),(S=i(e,t))>=0){if(d=!0,D=e.bMarks[t]+e.tShift[t],y=Number(e.src.substr(D,S-D-1)),j&&1!==y)return!1}else{if(!((S=r(e,t))>=0))return!1;d=!1}if(j&&e.skipSpaces(S)>=e.eMarks[t])return!1;if(g=e.src.charCodeAt(S-1),o)return!0;for(v=e.tokens.length,d?(L=e.push("ordered_list_open","ol",1),1!==y&&(L.attrs=[["start",y]])):L=e.push("bullet_list_open","ul",1),L.map=m=[t,0],L.markup=String.fromCharCode(g),T=t,N=!1,A=e.md.block.ruler.getRules("list"),w=e.parentType,e.parentType="list";T=b?1:E-f)>4&&(u=1),c=f+u,(L=e.push("list_item_open","li",1)).markup=String.fromCharCode(g),L.map=p=[t,0],k=e.tight,_=e.tShift[t],x=e.sCount[t],O=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=c,e.tight=!0,e.tShift[t]=s-e.bMarks[t],e.sCount[t]=E,s>=b&&e.isEmpty(t+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,t,n,!0),e.tight&&!N||(F=!1),N=e.line-t>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=O,e.tShift[t]=_,e.sCount[t]=x,e.tight=k,(L=e.push("list_item_close","li",-1)).markup=String.fromCharCode(g),T=t=e.line,p[1]=T,s=e.bMarks[t],T>=n)break;if(e.sCount[T]=4)break;for(I=!1,l=0,h=A.length;l=4)return!1;if(91!==e.src.charCodeAt(w))return!1;for(;++w3||e.sCount[_]<0)){for(b=!1,f=0,d=T.length;f=4)return!1;if(35!==(o=e.src.charCodeAt(c))||c>=u)return!1;for(a=1,o=e.src.charCodeAt(++c);35===o&&c6||cc&&t(e.src.charCodeAt(s-1))&&(u=s),e.line=n+1,(l=e.push("heading_open","h"+String(a),1)).markup="########".slice(0,a),l.map=[n,e.line],(l=e.push("inline","",0)).content=e.src.slice(c,u).trim(),l.map=[n,e.line],l.children=[],(l=e.push("heading_close","h"+String(a),-1)).markup="########".slice(0,a)),0))}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";e.exports=function(e,t,n){var r,i,o,a,s,l,c,u,f,d,p=t+1,h=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;for(d=e.parentType,e.parentType="paragraph";p3)){if(e.sCount[p]>=e.blkIndent&&(l=e.bMarks[p]+e.tShift[p])<(c=e.eMarks[p])&&(45===(f=e.src.charCodeAt(l))||61===f)&&(l=e.skipChars(l,f),(l=e.skipSpaces(l))>=c)){u=61===f?1:2;break}if(!(e.sCount[p]<0)){for(i=!1,o=0,a=h.length;o|$))/i,/<\/(script|pre|style)>/i,!0],[/^/,!0],[/^<\?/,/\?>/,!0],[/^/,!0],[/^/,!0],[new RegExp("^|$))","i"),/^$/,!0],[new RegExp(r.source+"\\s*$"),/^$/,!1]];e.exports=function(e,t,n,r){var o,a,s,l,c=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(!e.md.options.html)return!1;if(60!==e.src.charCodeAt(c))return!1;for(l=e.src.slice(c,u),o=0;o3||e.sCount[l]<0)){for(r=!1,i=0,o=c.length;i0&&this.level++,this.tokens.push(i),i},i.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},i.prototype.skipEmptyLines=function(e){for(var t=this.lineMax;et;)if(!r(this.src.charCodeAt(--e)))return e+1;return e},i.prototype.skipChars=function(e,t){for(var n=this.src.length;en;)if(t!==this.src.charCodeAt(--e))return e+1;return e},i.prototype.getLines=function(e,t,n,i){var o,a,s,l,c,u,f,d=e;if(e>=t)return"";for(u=new Array(t-e),o=0;dn?new Array(a-n+1).join(" ")+this.src.slice(l,c):this.src.slice(l,c)}return u.join("")},i.prototype.Token=t,e.exports=i})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t=n(52),r=[["text",n(157)],["newline",n(158)],["escape",n(159)],["backticks",n(160)],["strikethrough",n(67).tokenize],["emphasis",n(68).tokenize],["link",n(161)],["image",n(162)],["autolink",n(163)],["html_inline",n(164)],["entity",n(165)]],i=[["balance_pairs",n(166)],["strikethrough",n(67).postProcess],["emphasis",n(68).postProcess],["text_collapse",n(167)]];function o(){var e;for(this.ruler=new t,e=0;e=o)break}else e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},o.prototype.parse=function(e,t,n,r){var i,o,a,s=new this.State(e,t,n,r);for(this.tokenize(s),a=(o=this.ruler2.getRules("")).length,i=0;i=0&&32===e.pending.charCodeAt(r)?r>=1&&32===e.pending.charCodeAt(r-1)?(e.pending=e.pending.replace(/ +$/,""),e.push("hardbreak","br",0)):(e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0)):e.push("softbreak","br",0)),o++;o?@[]^_`{|}~-".split("").forEach((function(e){r[e.charCodeAt(0)]=1})),e.exports=function(e,n){var i,o=e.pos,a=e.posMax;if(92!==e.src.charCodeAt(o))return!1;if(++o=m)return!1;for(v=c,(u=e.md.helpers.parseLinkDestination(e.src,c,e.posMax)).ok&&(p=e.md.normalizeLink(u.str),e.md.validateLink(p)?c=u.pos:p=""),v=c;c=m||41!==e.src.charCodeAt(c))&&(g=!0),c++}if(g){if(void 0===e.env.references)return!1;if(c=0?a=e.src.slice(v,c++):c=s+1):c=s+1,a||(a=e.src.slice(l,s)),!(f=e.env.references[t(a)]))return e.pos=h,!1;p=f.href,d=f.title}return n||(e.pos=l,e.posMax=s,e.push("link_open","a",1).attrs=i=[["href",p]],d&&i.push(["title",d]),e.md.inline.tokenize(e),e.push("link_close","a",-1)),e.pos=c,e.posMax=m,!0}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t=n(13).normalizeReference,r=n(13).isSpace;e.exports=function(e,n){var i,o,a,s,l,c,u,f,d,p,h,m,v,g="",y=e.pos,b=e.posMax;if(33!==e.src.charCodeAt(e.pos))return!1;if(91!==e.src.charCodeAt(e.pos+1))return!1;if(c=e.pos+2,(l=e.md.helpers.parseLinkLabel(e,e.pos+1,!1))<0)return!1;if((u=l+1)=b)return!1;for(v=u,(d=e.md.helpers.parseLinkDestination(e.src,u,e.posMax)).ok&&(g=e.md.normalizeLink(d.str),e.md.validateLink(g)?u=d.pos:g=""),v=u;u=b||41!==e.src.charCodeAt(u))return e.pos=y,!1;u++}else{if(void 0===e.env.references)return!1;if(u=0?s=e.src.slice(v,u++):u=l+1):u=l+1,s||(s=e.src.slice(c,l)),!(f=e.env.references[t(s)]))return e.pos=y,!1;g=f.href,p=f.title}return n||(a=e.src.slice(c,l),e.md.inline.parse(a,e.md,e.env,m=[]),(h=e.push("image","img",0)).attrs=i=[["src",g],["alt",""]],h.children=m,h.content=a,p&&i.push(["title",p])),e.pos=u,e.posMax=b,!0}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t=/^<([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)>/,n=/^<([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)>/;e.exports=function(e,r){var i,o,a,s,l,c,u=e.pos;return!(60!==e.src.charCodeAt(u)||(i=e.src.slice(u)).indexOf(">")<0||(n.test(i)?(s=(o=i.match(n))[0].slice(1,-1),l=e.md.normalizeLink(s),!e.md.validateLink(l)||(r||((c=e.push("link_open","a",1)).attrs=[["href",l]],c.markup="autolink",c.info="auto",(c=e.push("text","",0)).content=e.md.normalizeLinkText(s),(c=e.push("link_close","a",-1)).markup="autolink",c.info="auto"),e.pos+=o[0].length,0)):!t.test(i)||(s=(a=i.match(t))[0].slice(1,-1),l=e.md.normalizeLink("mailto:"+s),!e.md.validateLink(l)||(r||((c=e.push("link_open","a",1)).attrs=[["href",l]],c.markup="autolink",c.info="auto",(c=e.push("text","",0)).content=e.md.normalizeLinkText(s),(c=e.push("link_close","a",-1)).markup="autolink",c.info="auto"),e.pos+=a[0].length,0))))}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t=n(66).HTML_TAG_RE;e.exports=function(e,n){var r,i,o,a=e.pos;return!(!e.md.options.html||(o=e.posMax,60!==e.src.charCodeAt(a)||a+2>=o||33!==(r=e.src.charCodeAt(a+1))&&63!==r&&47!==r&&!function(e){var t=32|e;return t>=97&&t<=122}(r)||!(i=e.src.slice(a).match(t))||(n||(e.push("html_inline","",0).content=e.src.slice(a,a+i[0].length)),e.pos+=i[0].length,0)))}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t=n(61),r=n(13).has,i=n(13).isValidEntityCode,o=n(13).fromCodePoint,a=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,s=/^&([a-z][a-z0-9]{1,31});/i;e.exports=function(e,n){var l,c,u=e.pos,f=e.posMax;if(38!==e.src.charCodeAt(u))return!1;if(u+1a;r-=o.jump+1)if((o=t[r]).marker===i.marker&&(-1===s&&(s=r),o.open&&o.end<0&&o.level===i.level&&(l=!1,(o.close||i.open)&&(o.length+i.length)%3==0&&(o.length%3==0&&i.length%3==0||(l=!0)),!l))){c=r>0&&!t[r-1].open?t[r-1].jump+1:0,i.jump=n-r+c,i.open=!1,o.end=n,o.jump=c,o.close=!1,s=-1;break}-1!==s&&(u[i.marker][(i.length||0)%3]=s)}}e.exports=function(e){var n,r=e.tokens_meta,i=e.tokens_meta.length;for(t(0,e.delimiters),n=0;n0&&r++,"text"===i[t].type&&t+10&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],o={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(i),this.tokens_meta.push(o),i},a.prototype.scanDelims=function(e,t){var n,a,s,l,c,u,f,d,p,h=e,m=!0,v=!0,g=this.posMax,y=this.src.charCodeAt(e);for(n=e>0?this.src.charCodeAt(e-1):32;h=3&&":"===e[t-3]||t>=3&&"/"===e[t-3]?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){var r=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},l="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function c(e){var t=e.re=n(170)(e.__opts__),a=e.__tlds__.slice();function s(e){return e.replace("%TLDS%",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||a.push("a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]"),a.push(t.src_xn),t.src_tlds=a.join("|"),t.email_fuzzy=RegExp(s(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(s(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(s(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(s(t.tpl_host_fuzzy_test),"i");var l=[];function c(e,t){throw new Error('(LinkifyIt) Invalid schema "'+e+'": '+t)}e.__compiled__={},Object.keys(e.__schemas__).forEach((function(t){var n=e.__schemas__[t];if(null!==n){var o={validate:null,link:null};if(e.__compiled__[t]=o,"[object Object]"===r(n))return function(e){return"[object RegExp]"===r(e)}(n.validate)?o.validate=function(e){return function(t,n){var r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}(n.validate):i(n.validate)?o.validate=n.validate:c(t,n),void(i(n.normalize)?o.normalize=n.normalize:n.normalize?c(t,n):o.normalize=function(e,t){t.normalize(e)});!function(e){return"[object String]"===r(e)}(n)?c(t,n):l.push(t)}})),l.forEach((function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)})),e.__compiled__[""]={validate:null,normalize:function(e,t){t.normalize(e)}};var u=Object.keys(e.__compiled__).filter((function(t){return t.length>0&&e.__compiled__[t]})).map(o).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+u+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+u+")","ig"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),function(e){e.__index__=-1,e.__text_cache__=""}(e)}function u(e,t){var n=e.__index__,r=e.__last_index__,i=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=i,this.text=i,this.url=i}function f(e,t){var n=new u(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function d(e,n){if(!(this instanceof d))return new d(e,n);var r;n||(r=e,Object.keys(r||{}).reduce((function(e,t){return e||a.hasOwnProperty(t)}),!1)&&(n=e,e={})),this.__opts__=t({},a,n),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=t({},s,e),this.__compiled__={},this.__tlds__=l,this.__tlds_replaced__=!1,this.re={},c(this)}d.prototype.add=function(e,t){return this.__schemas__[e]=t,c(this),this},d.prototype.set=function(e){return this.__opts__=t(this.__opts__,e),this},d.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var t,n,r,i,o,a,s,l;if(this.re.schema_test.test(e))for((s=this.re.schema_search).lastIndex=0;null!==(t=s.exec(e));)if(i=this.testSchemaAt(e,t[2],s.lastIndex)){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+i;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(l=e.search(this.re.host_fuzzy_test))>=0&&(this.__index__<0||l=0&&null!==(r=e.match(this.re.email_fuzzy))&&(o=r.index+r[1].length,a=r.index+r[0].length,(this.__index__<0||othis.__last_index__)&&(this.__schema__="mailto:",this.__index__=o,this.__last_index__=a)),this.__index__>=0},d.prototype.pretest=function(e){return this.re.pretest.test(e)},d.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},d.prototype.match=function(e){var t=0,n=[];this.__index__>=0&&this.__text_cache__===e&&(n.push(f(this,t)),t=this.__last_index__);for(var r=t?e.slice(t):e;this.test(r);)n.push(f(this,t)),r=r.slice(this.__last_index__),t+=this.__last_index__;return n.length?n:null},d.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter((function(e,t,n){return e!==n[t-1]})).reverse(),c(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,c(this),this)},d.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},d.prototype.onCompile=function(){},e.exports=d})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";e.exports=function(e){var t={};return t.src_Any=n(63).source,t.src_Cc=n(64).source,t.src_Z=n(65).source,t.src_P=n(51).source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|"),t.src_pseudo_letter="(?:(?![><|]|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|[><|]|"+t.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|[><|]|[()[\\]{}.,\"'?!\\-]).|\\[(?:(?!"+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-]).|\\.{2,4}[a-zA-Z0-9%/]|\\.(?!"+t.src_ZCc+"|[.]).|"+(e&&e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+"\\,(?!"+t.src_ZCc+").|\\!(?!"+t.src_ZCc+"|[!]).|\\?(?!"+t.src_ZCc+"|[?]).)+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy='(^|[><|]|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){(function(e,r){var i,o,a,s;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,s=function(){"use strict"; /*! https://mths.be/punycode v1.4.1 by @mathias */!function(i){t&&t.nodeType,e&&e.nodeType;var o="object"==typeof r&&r;o.global!==o&&o.window!==o&&o.self;var s,l=2147483647,c=/^xn--/,u=/[^\x20-\x7E]/,f=/[\x2E\u3002\uFF0E\uFF61]/g,d={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},p=Math.floor,h=String.fromCharCode;function m(e){throw new RangeError(d[e])}function v(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function g(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+v((e=e.replace(f,".")).split("."),t).join(".")}function y(e){for(var t,n,r=[],i=0,o=e.length;i=55296&&t<=56319&&i65535&&(t+=h((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=h(e)})).join("")}function T(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function E(e,t,n){var r=0;for(e=n?p(e/700):e>>1,e+=p(e/t);e>455;r+=36)e=p(e/35);return p(r+36*e/(e+38))}function O(e){var t,n,r,i,o,a,s,c,u,f,d,h=[],v=e.length,g=0,y=128,T=72;for((n=e.lastIndexOf("-"))<0&&(n=0),r=0;r=128&&m("not-basic"),h.push(e.charCodeAt(r));for(i=n>0?n+1:0;i=v&&m("invalid-input"),((c=(d=e.charCodeAt(i++))-48<10?d-22:d-65<26?d-65:d-97<26?d-97:36)>=36||c>p((l-g)/a))&&m("overflow"),g+=c*a,!(c<(u=s<=T?1:s>=T+26?26:s-T));s+=36)a>p(l/(f=36-u))&&m("overflow"),a*=f;T=E(g-o,t=h.length+1,0==o),p(g/t)>l-y&&m("overflow"),y+=p(g/t),g%=t,h.splice(g++,0,y)}return b(h)}function w(e){var t,n,r,i,o,a,s,c,u,f,d,v,g,b,O,w=[];for(v=(e=y(e)).length,t=128,n=0,o=72,a=0;a=t&&dp((l-n)/(g=r+1))&&m("overflow"),n+=(s-t)*g,t=s,a=0;al&&m("overflow"),d==t){for(c=n,u=36;!(c<(f=u<=o?1:u>=o+26?26:u-o));u+=36)O=c-f,b=36-f,w.push(h(T(f+O%b,0))),c=p(O/b);w.push(h(T(c,0))),o=E(n,g,r==i),n=0,++r}++n,++t}return w.join("")}s={version:"1.4.1",ucs2:{decode:y,encode:b},decode:O,encode:w,toASCII:function(e){return g(e,(function(e){return u.test(e)?"xn--"+w(e):e}))},toUnicode:function(e){return g(e,(function(e){return c.test(e)?O(e.slice(4).toLowerCase()):e}))}},void 0===(a=function(){return s}.call(t,n,t,e))||(e.exports=a)}()},o=[],void 0===(a="function"==typeof(i=s)?i.apply(t,o):i)||(e.exports=a)}).call(this,n(172)(e),n(49))},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";e.exports={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";e.exports={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","text_collapse"]}}}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";e.exports={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","text_collapse"]}}}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t],void 0===(o="function"==typeof(r=function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.normalizeWhitespace=function(e){return e.replace(n," ")},e.invalidCharacters=void 0;const t=Array.from({length:11},(e,t)=>String.fromCharCode(8192+t)).concat(["\u2028","\u2029"," "," "]);e.invalidCharacters=t;const n=new RegExp("["+t.join("")+"]","g")})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";!function(e){var t={},n=/[^\s\u00a0]/,r=e.Pos,i=e.cmpPos;function o(e){var t=e.search(n);return-1==t?0:t}function a(e,t){var n=e.getMode();return!1!==n.useInnerComments&&n.innerMode?e.getModeAt(t):n}e.commands.toggleComment=function(e){e.toggleComment()},e.defineExtension("toggleComment",(function(e){e||(e=t);for(var n=1/0,i=this.listSelections(),o=null,a=i.length-1;a>=0;a--){var s=i[a].from(),l=i[a].to();s.line>=n||(l.line>=n&&(l=r(n,0)),n=s.line,null==o?this.uncomment(s,l,e)?o="un":(this.lineComment(s,l,e),o="line"):"un"==o?this.uncomment(s,l,e):this.lineComment(s,l,e))}})),e.defineExtension("lineComment",(function(e,i,s){s||(s=t);var l=this,c=a(l,e),u=l.getLine(e.line);if(null!=u&&(f=e,d=u,!/\bstring\b/.test(l.getTokenTypeAt(r(f.line,0)))||/^[\'\"\`]/.test(d))){var f,d,p=s.lineComment||c.lineComment;if(p){var h=Math.min(0!=i.ch||i.line==e.line?i.line+1:i.line,l.lastLine()+1),m=null==s.padding?" ":s.padding,v=s.commentBlankLines||e.line==i.line;l.operation((function(){if(s.indent){for(var t=null,i=e.line;ia.length)&&(t=a)}for(i=e.line;id||l.operation((function(){if(0!=s.fullLines){var t=n.test(l.getLine(d));l.replaceRange(p+f,r(d)),l.replaceRange(u+p,r(e.line,0));var a=s.blockCommentLead||c.blockCommentLead;if(null!=a)for(var h=e.line+1;h<=d;++h)(h!=d||t)&&l.replaceRange(a+p,r(h,0))}else{var m=0==i(l.getCursor("to"),o),v=!l.somethingSelected();l.replaceRange(f,o),m&&l.setSelection(v?o:l.getCursor("from"),o),l.replaceRange(u,e)}}))}}else(s.lineComment||c.lineComment)&&0!=s.fullLines&&l.lineComment(e,o,s)})),e.defineExtension("uncomment",(function(e,i,o){o||(o=t);var s,l=this,c=a(l,e),u=Math.min(0!=i.ch||i.line==e.line?i.line:i.line-1,l.lastLine()),f=Math.min(e.line,u),d=o.lineComment||c.lineComment,p=[],h=null==o.padding?" ":o.padding;e:if(d){for(var m=f;m<=u;++m){var v=l.getLine(m),g=v.indexOf(d);if(g>-1&&!/comment/.test(l.getTokenTypeAt(r(m,g+1)))&&(g=-1),-1==g&&n.test(v))break e;if(g>-1&&n.test(v.slice(0,g)))break e;p.push(v)}if(l.operation((function(){for(var e=f;e<=u;++e){var t=p[e-f],n=t.indexOf(d),i=n+d.length;n<0||(t.slice(i,i+h.length)==h&&(i+=h.length),s=!0,l.replaceRange("",r(e,n),r(e,i)))}})),s)return!0}var y=o.blockCommentStart||c.blockCommentStart,b=o.blockCommentEnd||c.blockCommentEnd;if(!y||!b)return!1;var T=o.blockCommentLead||c.blockCommentLead,E=l.getLine(f),O=E.indexOf(y);if(-1==O)return!1;var w=u==f?E:l.getLine(u),x=w.indexOf(b,u==f?O+y.length:0),_=r(f,O+1),k=r(u,x+1);if(-1==x||!/comment/.test(l.getTokenTypeAt(_))||!/comment/.test(l.getTokenTypeAt(k))||l.getRange(_,k,"\n").indexOf(b)>-1)return!1;var C=E.lastIndexOf(y,e.ch),S=-1==C?-1:E.slice(0,e.ch).indexOf(b,C+y.length);if(-1!=C&&-1!=S&&S+b.length!=e.ch)return!1;S=w.indexOf(b,i.ch);var N=w.slice(i.ch).lastIndexOf(y,S-i.ch);return C=-1==S||-1==N?-1:i.ch+N,(-1==S||-1==C||C==i.ch)&&(l.operation((function(){l.replaceRange("",r(u,x-(h&&w.slice(x-h.length,x)==h?h.length:0)),r(u,x+b.length));var e=O+y.length;if(h&&E.slice(e,e+h.length)==h&&(e+=h.length),l.replaceRange("",r(f,O),r(f,e)),T)for(var t=f+1;t<=u;++t){var i=l.getLine(t),o=i.indexOf(T);if(-1!=o&&!n.test(i.slice(0,o))){var a=o+T.length;h&&i.slice(a,a+h.length)==h&&(a+=h.length),l.replaceRange("",r(t,o),r(t,a))}}})),!0)}))}(n(11))})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";!function(e){function t(t,n,i,o){if(i&&i.call){var a=i;i=null}else a=r(t,i,"rangeFinder");"number"==typeof n&&(n=e.Pos(n,0));var s=r(t,i,"minFoldSize");function l(e){var r=a(t,n);if(!r||r.to.line-r.from.linet.firstLine();)n=e.Pos(n.line-1,0),c=l(!1);if(c&&!c.cleared&&"unfold"!==o){var u=function(e,t,n){var i=r(e,t,"widget");if("function"==typeof i&&(i=i(n.from,n.to)),"string"==typeof i){var o=document.createTextNode(i);(i=document.createElement("span")).appendChild(o),i.className="CodeMirror-foldmarker"}else i&&(i=i.cloneNode(!0));return i}(t,i,c);e.on(u,"mousedown",(function(t){f.clear(),e.e_preventDefault(t)}));var f=t.markText(c.from,c.to,{replacedWith:u,clearOnEnter:r(t,i,"clearOnEnter"),__isFold:!0});f.on("clear",(function(n,r){e.signal(t,"unfold",t,n,r)})),e.signal(t,"fold",t,c.from,c.to)}}e.newFoldFunction=function(e,n){return function(r,i){t(r,i,{rangeFinder:e,widget:n})}},e.defineExtension("foldCode",(function(e,n,r){t(this,e,n,r)})),e.defineExtension("isFolded",(function(e){for(var t=this.findMarksAt(e),n=0;n0&&(u.from=r.default.Pos(u.from.line,u.from.ch),u.to=r.default.Pos(u.to.line,u.to.ch),r.default.signal(e,"hasCompletion",e,u,s)),u}}))})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t],void 0===(o="function"==typeof(r=function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default=class{constructor(e){this.getStartOfToken=()=>this._start,this.getCurrentPosition=()=>this._pos,this.eol=()=>this._sourceText.length===this._pos,this.sol=()=>0===this._pos,this.peek=()=>this._sourceText.charAt(this._pos)?this._sourceText.charAt(this._pos):null,this.next=()=>{const e=this._sourceText.charAt(this._pos);return this._pos++,e},this.eat=e=>{if(this._testNextCharacter(e))return this._start=this._pos,this._pos++,this._sourceText.charAt(this._pos-1)},this.eatWhile=e=>{let t=this._testNextCharacter(e),n=!1;for(t&&(n=t,this._start=this._pos);t;)this._pos++,t=this._testNextCharacter(e),n=!0;return n},this.eatSpace=()=>this.eatWhile(/[\s\u00a0]/),this.skipToEnd=()=>{this._pos=this._sourceText.length},this.skipTo=e=>{this._pos=e},this.match=(e,t=!0,n=!1)=>{let r=null,i=null;return"string"==typeof e?(i=new RegExp(e,n?"i":"g").test(this._sourceText.substr(this._pos,e.length)),r=e):e instanceof RegExp&&(i=this._sourceText.slice(this._pos).match(e),r=i&&i[0]),!(null==i||!("string"==typeof e||i instanceof Array&&this._sourceText.startsWith(i[0],this._pos)))&&(t&&(this._start=this._pos,r&&r.length&&(this._pos+=r.length)),i)},this.backUp=e=>{this._pos-=e},this.column=()=>this._pos,this.indentation=()=>{const e=this._sourceText.match(/\s*/);let t=0;if(e&&0!==e.length){const n=e[0];let r=0;for(;n.length>r;)9===n.charCodeAt(r)?t+=2:t++,r++}return t},this.current=()=>this._sourceText.slice(this._start,this._pos),this._start=0,this._pos=0,this._sourceText=e}_testNextCharacter(e){const t=this._sourceText.charAt(this._pos);let n=!1;return n="string"==typeof e?t===e:e instanceof RegExp?e.test(t):e(t),n}}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(73)],void 0===(o="function"==typeof(r=function(e,t){"use strict";function n(e,t){const n=Object.keys(t);for(let r=0;re.eatWhile(t.isIgnored),lexRules:t.LexRules,parseRules:t.ParseRules,editorConfig:{}}){return{startState(){const t={level:0,step:0,name:null,kind:null,type:null,rule:null,needsSeperator:!1,prevState:null};return i(e.parseRules,t,"Document"),t},token:(t,s)=>function(e,t,s){const{lexRules:c,parseRules:u,eatWhitespace:f,editorConfig:d}=s;if(t.rule&&0===t.rule.length?o(t):t.needsAdvance&&(t.needsAdvance=!1,a(t,!0)),e.sol()){const n=d&&d.tabSize||2;t.indentLevel=Math.floor(e.indentation()/n)}if(f(e))return"ws";const p=function(e,t){const n=Object.keys(e);for(let r=0;r0&&e[e.length-1]0?C.FieldWithArguments:C[e.kind]}e.GraphQLLanguageService=class{constructor(e){this._graphQLCache=e,this._graphQLConfig=e.getGraphQLConfig()}getConfigForURI(e){const t=this._graphQLCache.getProjectForFile(e);if(t)return t;throw Error("No config found for uri: "+e)}getDiagnostics(e,t,r){return c(this,void 0,void 0,(function*(){let i=!1;const a=this.getConfigForURI(t);if(!a)return[];const{schema:s,name:l,extensions:c}=a;try{const r=(0,n.parse)(e);s&&t===s||(i=r.definitions.some(e=>{switch(e.kind){case f:case d:case p:case h:case m:case v:case g:case y:case b:case T:case E:case O:case w:return!0}return!1}))}catch(t){const n=(0,o.getRange)(t.locations[0],e);return[{severity:o.DIAGNOSTIC_SEVERITY.Error,message:t.message,source:"GraphQL: Syntax",range:n}]}let u=e;const x=yield this._graphQLCache.getFragmentDefinitions(a);u=`${u} ${(yield this._graphQLCache.getFragmentDependencies(e,x)).reduce((e,t)=>`${e} ${(0,n.print)(t.definition)}`,"")}`;let _=null;try{_=(0,n.parse)(u)}catch(e){return[]}let k=null;(null==c?void 0:c.customValidationRules)&&"function"==typeof c.customValidationRules&&(k=c.customValidationRules(this._graphQLConfig));const C=yield this._graphQLCache.getSchema(l,i);return C?(0,o.validateQuery)(_,C,k,r):[]}))}getAutocompleteSuggestions(e,t,n){return c(this,void 0,void 0,(function*(){const i=this.getConfigForURI(n),o=yield this._graphQLCache.getSchema(i.name),a=yield this._graphQLCache.getFragmentDefinitions(i),s=Array.from(a).map(([,e])=>e.definition);return o?(0,r.getAutocompleteSuggestions)(o,e,t,void 0,s):[]}))}getHoverInformation(e,t,n){return c(this,void 0,void 0,(function*(){const r=this.getConfigForURI(n),o=yield this._graphQLCache.getSchema(r.name);return o?(0,i.getHoverInformation)(o,e,t):""}))}getDefinition(e,t,r){return c(this,void 0,void 0,(function*(){const i=this.getConfigForURI(r);let o;try{o=(0,n.parse)(e)}catch(e){return null}const s=(0,l.getASTNodeAtPosition)(e,o,t);if(s)switch(s.kind){case x:return this._getDefinitionForFragmentSpread(e,o,s,r,i);case u:case _:return(0,a.getDefinitionQueryResultForDefinitionNode)(r,e,s);case k:return this._getDefinitionForNamedType(e,o,s,r,i)}return null}))}getDocumentSymbols(e,t){return c(this,void 0,void 0,(function*(){const n=yield this.getOutline(e);if(!n)return[];const r=[],i=n.outlineTrees.map(e=>[null,e]);for(;i.length>0;){const e=i.pop();if(!e)return[];const[n,o]=e;if(!o)return[];r.push({name:o.representativeName,kind:S(o),location:{uri:t,range:{start:o.startPosition,end:o.endPosition}},containerName:n?n.representativeName:void 0}),i.push(...o.children.map(e=>[o,e]))}return r}))}_getDefinitionForNamedType(e,t,n,r,i){return c(this,void 0,void 0,(function*(){const o=yield this._graphQLCache.getObjectTypeDefinitions(i),s=yield this._graphQLCache.getObjectTypeDependenciesForAST(t,o),l=t.definitions.filter(e=>e.kind===f||e.kind===v||e.kind===p||e.kind===m||e.kind===d).map(t=>({filePath:r,content:e,definition:t}));return yield(0,a.getDefinitionQueryResultForNamedType)(e,n,s.concat(l))}))}_getDefinitionForFragmentSpread(e,t,n,r,i){return c(this,void 0,void 0,(function*(){const o=yield this._graphQLCache.getFragmentDefinitions(i),s=yield this._graphQLCache.getFragmentDependenciesForAST(t,o),l=t.definitions.filter(e=>e.kind===u).map(t=>({filePath:r,content:e,definition:t}));return yield(0,a.getDefinitionQueryResultForFragmentSpread)(e,n,s.concat(l))}))}getOutline(e){return c(this,void 0,void 0,(function*(){return(0,s.getOutline)(e)}))}}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var e=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=e(n(11)),i=n(70),o=["error","warning","information","hint"],a={"GraphQL: Validation":"validation","GraphQL: Deprecation":"deprecation","GraphQL: Syntax":"syntax"};r.default.registerHelper("lint","graphql",(function(e,t){var n=t.schema;return i.getDiagnostics(e,n,t.validationRules,void 0,t.externalFragments).map((function(e){return{message:e.message,severity:e.severity?o[e.severity-1]:o[0],type:e.source?a[e.source]:void 0,from:r.default.Pos(e.range.start.line,e.range.start.character),to:r.default.Pos(e.range.end.line,e.range.end.character)}}))}))})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var e=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=n(15),i=e(n(11)),o=e(n(79)),a=n(81);function s(e,t,n){var r,i=(null===(r=t.fieldDef)||void 0===r?void 0:r.name)||"";"__"!==i.slice(0,2)&&(u(e,t,n,t.parentType),d(e,".")),d(e,i,"field-name",n,a.getFieldReference(t))}function l(e,t,n){var r;d(e,"@"+((null===(r=t.directiveDef)||void 0===r?void 0:r.name)||""),"directive-name",n,a.getDirectiveReference(t))}function c(e,t,n,r){d(e,": "),u(e,t,n,r)}function u(e,t,n,i){i instanceof r.GraphQLNonNull?(u(e,t,n,i.ofType),d(e,"!")):i instanceof r.GraphQLList?(d(e,"["),u(e,t,n,i.ofType),d(e,"]")):d(e,(null==i?void 0:i.name)||"","type-name",n,a.getTypeReference(t,i))}function f(e,t,n){var r=n.description;if(r){var i=document.createElement("div");i.className="info-description",t.renderDescription?i.innerHTML=t.renderDescription(r):i.appendChild(document.createTextNode(r)),e.appendChild(i)}!function(e,t,n){var r=n.deprecationReason;if(r){var i=document.createElement("div");i.className="info-deprecation",t.renderDescription?i.innerHTML=t.renderDescription(r):i.appendChild(document.createTextNode(r));var o=document.createElement("span");o.className="info-deprecation-label",o.appendChild(document.createTextNode("Deprecated: ")),i.insertBefore(o,i.firstChild),e.appendChild(i)}}(e,t,n)}function d(e,t,n,r,i){if(void 0===n&&(n=""),void 0===r&&(r={onClick:null}),void 0===i&&(i=null),n){var o=r.onClick,a=void 0;o?((a=document.createElement("a")).href="javascript:void 0",a.addEventListener("click",(function(e){o(i,e)}))):a=document.createElement("span"),a.className=n,a.appendChild(document.createTextNode(t)),e.appendChild(a)}else e.appendChild(document.createTextNode(t))}n(82),i.default.registerHelper("info","graphql",(function(e,t){if(t.schema&&e.state){var n,r=e.state,i=r.kind,p=r.step,h=o.default(t.schema,e.state);return"Field"===i&&0===p&&h.fieldDef||"AliasedField"===i&&2===p&&h.fieldDef?(function(e,t,n){s(e,t,n),c(e,t,n,t.type)}(n=document.createElement("div"),h,t),f(n,t,h.fieldDef),n):"Directive"===i&&1===p&&h.directiveDef?(l(n=document.createElement("div"),h,t),f(n,t,h.directiveDef),n):"Argument"===i&&0===p&&h.argDef?(function(e,t,n){var r;t.directiveDef?l(e,t,n):t.fieldDef&&s(e,t,n);var i=(null===(r=t.argDef)||void 0===r?void 0:r.name)||"";d(e,"("),d(e,i,"arg-name",n,a.getArgumentReference(t)),c(e,t,n,t.inputType),d(e,")")}(n=document.createElement("div"),h,t),f(n,t,h.argDef),n):"EnumValue"===i&&h.enumValue&&h.enumValue.description?(function(e,t,n){var r,i=(null===(r=t.enumValue)||void 0===r?void 0:r.name)||"";u(e,t,n,t.inputType),d(e,"."),d(e,i,"enum-value",n,a.getEnumValueReference(t))}(n=document.createElement("div"),h,t),f(n,t,h.enumValue),n):"NamedType"===i&&h.type&&h.type.description?(u(n=document.createElement("div"),h,t,h.type),f(n,t,h.type),n):void 0}}))})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var e=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=e(n(11)),i=e(n(79)),o=n(81);n(187),r.default.registerHelper("jump","graphql",(function(e,t){if(t.schema&&t.onClick&&e.state){var n=e.state,r=n.kind,a=n.step,s=i.default(t.schema,n);return"Field"===r&&0===a&&s.fieldDef||"AliasedField"===r&&2===a&&s.fieldDef?o.getFieldReference(s):"Directive"===r&&1===a&&s.directiveDef?o.getDirectiveReference(s):"Argument"===r&&0===a&&s.argDef?o.getArgumentReference(s):"EnumValue"===r&&s.enumValue?o.getEnumValueReference(s):"NamedType"===r&&s.type?o.getTypeReference(s):void 0}}))})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var e=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=e(n(11));function i(e,t){var n=t.target||t.srcElement;if(n instanceof HTMLElement&&"SPAN"===(null==n?void 0:n.nodeName)){var r=n.getBoundingClientRect(),i={left:(r.left+r.right)/2,top:(r.top+r.bottom)/2};e.state.jump.cursor=i,e.state.jump.isHoldingModifier&&l(e)}}function o(e){e.state.jump.isHoldingModifier||!e.state.jump.cursor?e.state.jump.isHoldingModifier&&e.state.jump.marker&&c(e):e.state.jump.cursor=null}function a(e,t){if(!e.state.jump.isHoldingModifier&&t.key===(s?"Meta":"Control")){e.state.jump.isHoldingModifier=!0,e.state.jump.cursor&&l(e);var n=function(a){a.code===t.code&&(e.state.jump.isHoldingModifier=!1,e.state.jump.marker&&c(e),r.default.off(document,"keyup",n),r.default.off(document,"click",i),e.off("mousedown",o))},i=function(t){var n=e.state.jump.destination;n&&e.state.jump.options.onClick(n,t)},o=function(t,n){e.state.jump.destination&&(n.codemirrorIgnore=!0)};r.default.on(document,"keyup",n),r.default.on(document,"click",i),e.on("mousedown",o)}}r.default.defineOption("jump",!1,(function(e,t,n){if(n&&n!==r.default.Init){var s=e.state.jump.onMouseOver;r.default.off(e.getWrapperElement(),"mouseover",s);var l=e.state.jump.onMouseOut;r.default.off(e.getWrapperElement(),"mouseout",l),r.default.off(document,"keydown",e.state.jump.onKeyDown),delete e.state.jump}if(t){var c=e.state.jump={options:t,onMouseOver:i.bind(null,e),onMouseOut:o.bind(null,e),onKeyDown:a.bind(null,e)};r.default.on(e.getWrapperElement(),"mouseover",c.onMouseOver),r.default.on(e.getWrapperElement(),"mouseout",c.onMouseOut),r.default.on(document,"keydown",c.onKeyDown)}}));var s="undefined"!=typeof navigator&&navigator&&-1!==navigator.appVersion.indexOf("Mac");function l(e){if(!e.state.jump.marker){var t=e.state.jump.cursor,n=e.coordsChar(t),r=e.getTokenAt(n,!0),i=e.state.jump.options,o=i.getDestination||e.getHelper(n,"jump");if(o){var a=o(r,i,e);if(a){var s=e.markText({line:n.line,ch:r.start},{line:n.line,ch:r.end},{className:"CodeMirror-jump-token"});e.state.jump.marker=s,e.state.jump.destination=a}}}}function c(e){var t=e.state.jump.marker;e.state.jump.marker=null,e.state.jump.destination=null,t.clear()}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var e=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=e(n(11)),i=n(37);function o(e,t){var n,r,i=e.levels;return((i&&0!==i.length?i[i.length-1]-((null===(n=this.electricInput)||void 0===n?void 0:n.test(t))?1:0):e.indentLevel)||0)*((null===(r=this.config)||void 0===r?void 0:r.indentUnit)||0)}r.default.defineMode("graphql",(function(e){var t=i.onlineParser({eatWhitespace:function(e){return e.eatWhile(i.isIgnored)},lexRules:i.LexRules,parseRules:i.ParseRules,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:o,electricInput:/^\s*[})\]]/,fold:"brace",lineComment:"#",closeBrackets:{pairs:'()[]{}""',explode:"()[]{}"}}}))})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(16),n(54),n(41)],void 0===(o="function"==typeof(r=function(e,t,r,i){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.VariableEditor=void 0,t=o(t),r=o(r),i=o(i);class s extends t.default.Component{constructor(e){super(e),a(this,"CodeMirror",void 0),a(this,"editor",null),a(this,"cachedValue",void 0),a(this,"_node",null),a(this,"ignoreChangeEvent",!1),a(this,"_onKeyUp",(e,t)=>{const n=t.keyCode;this.editor&&(n>=65&&n<=90||!t.shiftKey&&n>=48&&n<=57||t.shiftKey&&189===n||t.shiftKey&&222===n)&&this.editor.execCommand("autocomplete")}),a(this,"_onEdit",()=>{this.editor&&(this.ignoreChangeEvent||(this.cachedValue=this.editor.getValue(),this.props.onEdit&&this.props.onEdit(this.cachedValue)))}),a(this,"_onHasCompletion",(e,t)=>{(0,r.default)(e,t,this.props.onHintInformationRender)}),this.cachedValue=e.value||""}componentDidMount(){this.CodeMirror=n(11),n(42),n(43),n(55),n(45),n(44),n(56),n(34),n(46),n(35),n(47),n(190),n(192),n(194);const e=this.editor=this.CodeMirror(this._node,{value:this.props.value||"",lineNumbers:!0,tabSize:2,mode:"graphql-variables",theme:this.props.editorTheme||"graphiql",keyMap:"sublime",autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:!!this.props.readOnly&&"nocursor",foldGutter:{minFoldSize:4},lint:{variableToType:this.props.variableToType},hintOptions:{variableToType:this.props.variableToType,closeOnUnfocus:!1,completeSingle:!1,container:this._node},gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:{"Cmd-Space":()=>this.editor.showHint({completeSingle:!1,container:this._node}),"Ctrl-Space":()=>this.editor.showHint({completeSingle:!1,container:this._node}),"Alt-Space":()=>this.editor.showHint({completeSingle:!1,container:this._node}),"Shift-Space":()=>this.editor.showHint({completeSingle:!1,container:this._node}),"Cmd-Enter":()=>{this.props.onRunQuery&&this.props.onRunQuery()},"Ctrl-Enter":()=>{this.props.onRunQuery&&this.props.onRunQuery()},"Shift-Ctrl-P":()=>{this.props.onPrettifyQuery&&this.props.onPrettifyQuery()},"Shift-Ctrl-M":()=>{this.props.onMergeQuery&&this.props.onMergeQuery()},...i.default}});e.on("change",this._onEdit),e.on("keyup",this._onKeyUp),e.on("hasCompletion",this._onHasCompletion)}componentDidUpdate(e){if(this.CodeMirror=n(11),this.editor){if(this.ignoreChangeEvent=!0,this.props.variableToType!==e.variableToType&&(this.editor.options.lint.variableToType=this.props.variableToType,this.editor.options.hintOptions.variableToType=this.props.variableToType,this.CodeMirror.signal(this.editor,"change",this.editor)),this.props.value!==e.value&&this.props.value!==this.cachedValue){const e=this.props.value||"";this.cachedValue=e,this.editor.setValue(e)}this.ignoreChangeEvent=!1}}componentWillUnmount(){this.editor&&(this.editor.off("change",this._onEdit),this.editor.off("keyup",this._onKeyUp),this.editor.off("hasCompletion",this._onHasCompletion),this.editor=null)}render(){return t.default.createElement("div",{className:"codemirrorWrap",style:{position:this.props.active?"relative":"absolute",visibility:this.props.active?"visible":"hidden"},ref:e=>{this._node=e}})}getCodeMirror(){return this.editor}getClientHeight(){return this._node&&this._node.clientHeight}}e.VariableEditor=s})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var e=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=e(n(11)),i=n(15),o=e(n(80)),a=e(n(191));function s(e,t,n){var r="Invalid"===t.state.kind?t.state.prevState:t.state,s=r.kind,l=r.step;if("Document"===s&&0===l)return a.default(e,t,[{text:"{"}]);var c=n.variableToType;if(c){var u=function(e,t){var n={type:null,fields:null};return o.default(t,(function(t){if("Variable"===t.kind)n.type=e[t.name];else if("ListValue"===t.kind){var r=n.type?i.getNullableType(n.type):void 0;n.type=r instanceof i.GraphQLList?r.ofType:null}else if("ObjectValue"===t.kind){var o=n.type?i.getNamedType(n.type):void 0;n.fields=o instanceof i.GraphQLInputObjectType?o.getFields():null}else if("ObjectField"===t.kind){var a=t.name&&n.fields?n.fields[t.name]:null;n.type=a&&a.type}})),n}(c,t.state);if("Document"===s||"Variable"===s&&0===l){var f=Object.keys(c);return a.default(e,t,f.map((function(e){return{text:'"'+e+'": ',type:c[e]}})))}if(("ObjectValue"===s||"ObjectField"===s&&0===l)&&u.fields){var d=Object.keys(u.fields).map((function(e){return u.fields[e]}));return a.default(e,t,d.map((function(e){return{text:'"'+e.name+'": ',type:e.type,description:e.description}})))}if("StringValue"===s||"NumberValue"===s||"BooleanValue"===s||"NullValue"===s||"ListValue"===s&&1===l||"ObjectField"===s&&2===l||"Variable"===s&&2===l){var p=u.type?i.getNamedType(u.type):void 0;if(p instanceof i.GraphQLInputObjectType)return a.default(e,t,[{text:"{"}]);if(p instanceof i.GraphQLEnumType){var h=p.getValues();return a.default(e,t,h.map((function(e){return{text:'"'+e.name+'"',type:p,description:e.description}})))}if(p===i.GraphQLBoolean)return a.default(e,t,[{text:"true",type:i.GraphQLBoolean,description:"Not false."},{text:"false",type:i.GraphQLBoolean,description:"Not true."}])}}}r.default.registerHelper("hint","graphql-variables",(function(e,t){var n=e.getCursor(),i=e.getTokenAt(n),o=s(n,i,t);return o&&o.list&&o.list.length>0&&(o.from=r.default.Pos(o.from.line,o.from.ch),o.to=r.default.Pos(o.to.line,o.to.ch),r.default.signal(e,"hasCompletion",e,o,i)),o}))})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";function e(e,t){var n=e.filter(t);return 0===n.length?e:n}function n(e){return e.toLowerCase().replace(/\W/g,"")}function r(e,t){var n=function(e,t){var n,r,i=[],o=e.length,a=t.length;for(n=0;n<=o;n++)i[n]=[n];for(r=1;r<=a;r++)i[0][r]=r;for(n=1;n<=o;n++)for(r=1;r<=a;r++){var s=e[n-1]===t[r-1]?0:1;i[n][r]=Math.min(i[n-1][r]+1,i[n][r-1]+1,i[n-1][r-1]+s),n>1&&r>1&&e[n-1]===t[r-2]&&e[n-2]===t[r-1]&&(i[n][r]=Math.min(i[n][r],i[n-2][r-2]+s))}return i[o][a]}(t,e);return e.length>t.length&&(n-=e.length-t.length-1,n+=0===e.indexOf(t)?0:.5),n}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(t,i,o){var a=function(t,i){return i?e(e(t.map((function(e){return{proximity:r(n(e.text),i),entry:e}})),(function(e){return e.proximity<=2})),(function(e){return!e.entry.isDeprecated})).sort((function(e,t){return(e.entry.isDeprecated?1:0)-(t.entry.isDeprecated?1:0)||e.proximity-t.proximity||e.entry.text.length-t.entry.text.length})).map((function(e){return e.entry})):e(t,(function(e){return!e.isDeprecated}))}(o,n(i.string));if(a){var s=null!==i.type&&/"|\w/.test(i.string[0])?i.start:i.end;return{list:a,from:{line:t.line,ch:s},to:{line:t.line,ch:i.end}}}}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var e=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},r=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(11)),o=n(15),a=r(n(193));function s(t,n,r){var i=[];return r.members.forEach((function(r){var a;if(r){var s=null===(a=r.key)||void 0===a?void 0:a.value,u=n[s];u?function e(t,n){if(!t||!n)return[];if(t instanceof o.GraphQLNonNull)return"Null"===n.kind?[[n,'Type "'+t+'" is non-nullable and cannot be null.']]:e(t.ofType,n);if("Null"===n.kind)return[];if(t instanceof o.GraphQLList){var r=t.ofType;return"Array"===n.kind?c(n.values||[],(function(t){return e(r,t)})):e(r,n)}if(t instanceof o.GraphQLInputObjectType){if("Object"!==n.kind)return[[n,'Type "'+t+'" must be an Object.']];var i=Object.create(null),a=c(n.members,(function(n){var r,o=null===(r=null==n?void 0:n.key)||void 0===r?void 0:r.value;i[o]=!0;var a=t.getFields()[o];if(!a)return[[n.key,'Type "'+t+'" does not have a field "'+o+'".']];var s=a?a.type:void 0;return e(s,n.value)}));return Object.keys(t.getFields()).forEach((function(e){i[e]||t.getFields()[e].type instanceof o.GraphQLNonNull&&a.push([n,'Object of type "'+t+'" is missing required field "'+e+'".'])})),a}return"Boolean"===t.name&&"Boolean"!==n.kind||"String"===t.name&&"String"!==n.kind||"ID"===t.name&&"Number"!==n.kind&&"String"!==n.kind||"Float"===t.name&&"Number"!==n.kind||"Int"===t.name&&("Number"!==n.kind||(0|n.value)!==n.value)||(t instanceof o.GraphQLEnumType||t instanceof o.GraphQLScalarType)&&("String"!==n.kind&&"Number"!==n.kind&&"Boolean"!==n.kind&&"Null"!==n.kind||null==(s=t.parseValue(n.value))||s!=s)?[[n,'Expected value of type "'+t+'".']]:[];var s}(u,r.value).forEach((function(n){var r=e(n,2),o=r[0],a=r[1];i.push(l(t,o,a))})):i.push(l(t,r.key,'Variable "$'+s+'" does not appear in any GraphQL query.'))}})),i}function l(e,t,n){return{message:n,severity:"error",type:"validation",from:e.posFromIndex(t.start),to:e.posFromIndex(t.end)}}function c(e,t){return Array.prototype.concat.apply([],e.map(t))}i.default.registerHelper("lint","graphql-variables",(function(e,t,n){if(!e)return[];var r;try{r=a.default(e)}catch(e){if(e.stack)throw e;return[l(n,e,e.message)]}var i=t.variableToType;return i?s(n,i,r):[]}))})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var e,n,r,i,o,a,s;function l(){var e=r,t=[];if(d("{"),!h("}")){do{t.push(c())}while(h(","));d("}")}return{kind:"Object",start:e,end:o,members:t}}function c(){var e=r,t="String"===s?f():null;d("String"),d(":");var n=u();return{kind:"Member",start:e,end:o,key:t,value:n}}function u(){switch(s){case"[":return function(){var e=r,t=[];if(d("["),!h("]")){do{t.push(u())}while(h(","));d("]")}return{kind:"Array",start:e,end:o,values:t}}();case"{":return l();case"String":case"Number":case"Boolean":case"Null":var e=f();return v(),e}d("Value")}function f(){return{kind:s,start:r,end:i,value:JSON.parse(e.slice(r,i))}}function d(t){if(s!==t){var n;if("EOF"===s)n="[end of file]";else if(i-r>1)n="`"+e.slice(r,i)+"`";else{var o=e.slice(r).match(/^.+?\b/);n="`"+(o?o[0]:e[r])+"`"}throw p("Expected "+t+" but found "+n+".")}v()}function p(e){return{message:e,start:r,end:i}}function h(e){if(s===e)return v(),!0}function m(){return i31;)if(92===a)switch(a=m()){case 34:case 47:case 92:case 98:case 102:case 110:case 114:case 116:m();break;case 117:m(),g(),g(),g(),g();break;default:throw p("Bad character escape sequence.")}else{if(i===n)throw p("Unterminated string.");m()}if(34!==a)throw p("Unterminated 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 s="Number",45===a&&m(),48===a?m():y(),46===a&&(m(),y()),void(69!==a&&101!==a||(43!==(a=m())&&45!==a||m(),y()));case 102:if("false"!==e.slice(r,r+5))break;return i+=4,m(),void(s="Boolean");case 110:if("null"!==e.slice(r,r+4))break;return i+=3,m(),void(s="Null");case 116:if("true"!==e.slice(r,r+4))break;return i+=3,m(),void(s="Boolean")}s=e[r],m()}else s="EOF"}function g(){if(a>=48&&a<=57||a>=65&&a<=70||a>=97&&a<=102)return m();throw p("Expected hexadecimal digit.")}function y(){if(a<48||a>57)throw p("Expected decimal digit.");do{m()}while(a>=48&&a<=57)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(t){e=t,n=t.length,r=i=o=-1,m(),v();var a=l();return d("EOF"),a}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var e=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=e(n(11)),i=n(37);function o(e,t){var n,r,i=e.levels;return((i&&0!==i.length?i[i.length-1]-((null===(n=this.electricInput)||void 0===n?void 0:n.test(t))?1:0):e.indentLevel)||0)*((null===(r=this.config)||void 0===r?void 0:r.indentUnit)||0)}r.default.defineMode("graphql-variables",(function(e){var t=i.onlineParser({eatWhitespace:function(e){return e.eatSpace()},lexRules:a,parseRules:s,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:o,electricInput:/^\s*[}\]]/,fold:"brace",closeBrackets:{pairs:'[]{}""',explode:"[]{}"}}}));var a={Punctuation:/^\[|]|\{|\}|:|,/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?/,Keyword:/^true|false|null/},s={Document:[i.p("{"),i.list("Variable",i.opt(i.p(","))),i.p("}")],Variable:[l("variable"),i.p(":"),"Value"],Value:function(e){switch(e.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(e.value){case"[":return"ListValue";case"{":return"ObjectValue"}return null;case"Keyword":switch(e.value){case"true":case"false":return"BooleanValue";case"null":return"NullValue"}return null}},NumberValue:[i.t("Number","number")],StringValue:[i.t("String","string")],BooleanValue:[i.t("Keyword","builtin")],NullValue:[i.t("Keyword","keyword")],ListValue:[i.p("["),i.list("Value",i.opt(i.p(","))),i.p("]")],ObjectValue:[i.p("{"),i.list("ObjectField",i.opt(i.p(","))),i.p("}")],ObjectField:[l("attribute"),i.p(":"),"Value"]};function l(e){return{style:e,match:function(e){return"String"===e.kind},update:function(e,t){e.name=t.value.slice(1,-1)}}}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(16),n(54),n(41)],void 0===(o="function"==typeof(r=function(e,t,r,i){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.HeaderEditor=void 0,t=o(t),r=o(r),i=o(i);class s extends t.default.Component{constructor(e){super(e),a(this,"CodeMirror",void 0),a(this,"editor",null),a(this,"cachedValue",void 0),a(this,"_node",null),a(this,"ignoreChangeEvent",!1),a(this,"_onKeyUp",(e,t)=>{const n=t.keyCode;this.editor&&(n>=65&&n<=90||!t.shiftKey&&n>=48&&n<=57||t.shiftKey&&189===n||t.shiftKey&&222===n)&&this.editor.execCommand("autocomplete")}),a(this,"_onEdit",()=>{this.editor&&(this.ignoreChangeEvent||(this.cachedValue=this.editor.getValue(),this.props.onEdit&&this.props.onEdit(this.cachedValue)))}),a(this,"_onHasCompletion",(e,t)=>{(0,r.default)(e,t,this.props.onHintInformationRender)}),this.cachedValue=e.value||""}componentDidMount(){this.CodeMirror=n(11),n(42),n(43),n(55),n(45),n(44),n(56),n(34),n(46),n(35),n(196),n(47);const e=this.editor=this.CodeMirror(this._node,{value:this.props.value||"",lineNumbers:!0,tabSize:2,mode:{name:"javascript",json:!0},theme:this.props.editorTheme||"graphiql",keyMap:"sublime",autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:!!this.props.readOnly&&"nocursor",foldGutter:{minFoldSize:4},gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:{"Cmd-Space":()=>this.editor.showHint({completeSingle:!1,container:this._node}),"Ctrl-Space":()=>this.editor.showHint({completeSingle:!1,container:this._node}),"Alt-Space":()=>this.editor.showHint({completeSingle:!1,container:this._node}),"Shift-Space":()=>this.editor.showHint({completeSingle:!1,container:this._node}),"Cmd-Enter":()=>{this.props.onRunQuery&&this.props.onRunQuery()},"Ctrl-Enter":()=>{this.props.onRunQuery&&this.props.onRunQuery()},"Shift-Ctrl-P":()=>{this.props.onPrettifyQuery&&this.props.onPrettifyQuery()},"Shift-Ctrl-M":()=>{this.props.onMergeQuery&&this.props.onMergeQuery()},...i.default}});e.on("change",this._onEdit),e.on("keyup",this._onKeyUp),e.on("hasCompletion",this._onHasCompletion)}componentDidUpdate(e){if(this.CodeMirror=n(11),this.editor){if(this.ignoreChangeEvent=!0,this.props.value!==e.value&&this.props.value!==this.cachedValue){const e=this.props.value||"";this.cachedValue=e,this.editor.setValue(e)}this.ignoreChangeEvent=!1}}componentWillUnmount(){this.editor&&(this.editor.off("change",this._onEdit),this.editor.off("keyup",this._onKeyUp),this.editor.off("hasCompletion",this._onHasCompletion),this.editor=null)}render(){return t.default.createElement("div",{className:"codemirrorWrap",style:{position:this.props.active?"relative":"absolute",visibility:this.props.active?"visible":"hidden"},ref:e=>{this._node=e}})}getCodeMirror(){return this.editor}getClientHeight(){return this._node&&this._node.clientHeight}}e.HeaderEditor=s})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var e;(e=n(11)).defineMode("javascript",(function(t,n){var r,i,o=t.indentUnit,a=n.statementIndent,s=n.jsonld,l=n.json||s,c=n.typescript,u=n.wordCharacters||/[\w$\xa1-\uffff]/,f=function(){function e(e){return{type:e,style:"keyword"}}var t=e("keyword a"),n=e("keyword b"),r=e("keyword c"),i=e("keyword d"),o=e("operator"),a={type:"atom",style:"atom"};return{if:e("if"),while:t,with:t,else:n,do:n,try:n,finally:n,return:i,break:i,continue:i,new:e("new"),delete:r,void:r,throw:r,debugger:e("debugger"),var:e("var"),const:e("var"),let:e("var"),function:e("function"),catch:e("catch"),for:e("for"),switch:e("switch"),case:e("case"),default:e("default"),in:o,typeof:o,instanceof:o,true:a,false:a,null:a,undefined:a,NaN:a,Infinity:a,this:e("this"),class:e("class"),super:e("atom"),yield:r,export:e("export"),import:e("import"),extends:r,await:r}}(),d=/[+\-*&%=<>!?|~^@]/,p=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function h(e,t,n){return r=e,i=n,t}function m(e,t){var n,r=e.next();if('"'==r||"'"==r)return t.tokenize=(n=r,function(e,t){var r,i=!1;if(s&&"@"==e.peek()&&e.match(p))return t.tokenize=m,h("jsonld-keyword","meta");for(;null!=(r=e.next())&&(r!=n||i);)i=!i&&"\\"==r;return i||(t.tokenize=m),h("string","string")}),t.tokenize(e,t);if("."==r&&e.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return h("number","number");if("."==r&&e.match(".."))return h("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(r))return h(r);if("="==r&&e.eat(">"))return h("=>","operator");if("0"==r&&e.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return h("number","number");if(/\d/.test(r))return e.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),h("number","number");if("/"==r)return e.eat("*")?(t.tokenize=v,v(e,t)):e.eat("/")?(e.skipToEnd(),h("comment","comment")):Ke(e,t,1)?(function(e){for(var t,n=!1,r=!1;null!=(t=e.next());){if(!n){if("/"==t&&!r)return;"["==t?r=!0:r&&"]"==t&&(r=!1)}n=!n&&"\\"==t}}(e),e.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),h("regexp","string-2")):(e.eat("="),h("operator","operator",e.current()));if("`"==r)return t.tokenize=g,g(e,t);if("#"==r&&"!"==e.peek())return e.skipToEnd(),h("meta","meta");if("#"==r&&e.eatWhile(u))return h("variable","property");if("<"==r&&e.match("!--")||"-"==r&&e.match("->")&&!/\S/.test(e.string.slice(0,e.start)))return e.skipToEnd(),h("comment","comment");if(d.test(r))return">"==r&&t.lexical&&">"==t.lexical.type||(e.eat("=")?"!"!=r&&"="!=r||e.eat("="):/[<>*+\-]/.test(r)&&(e.eat(r),">"==r&&e.eat(r))),"?"==r&&e.eat(".")?h("."):h("operator","operator",e.current());if(u.test(r)){e.eatWhile(u);var i=e.current();if("."!=t.lastType){if(f.propertyIsEnumerable(i)){var o=f[i];return h(o.type,o.style,i)}if("async"==i&&e.match(/^(\s|\/\*.*?\*\/)*[\[\(\w]/,!1))return h("async","keyword",i)}return h("variable","variable",i)}}function v(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=m;break}r="*"==n}return h("comment","comment")}function g(e,t){for(var n,r=!1;null!=(n=e.next());){if(!r&&("`"==n||"$"==n&&e.eat("{"))){t.tokenize=m;break}r=!r&&"\\"==n}return h("quasi","string-2",e.current())}function y(e,t){t.fatArrowAt&&(t.fatArrowAt=null);var n=e.string.indexOf("=>",e.start);if(!(n<0)){if(c){var r=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(e.string.slice(e.start,n));r&&(n=r.index)}for(var i=0,o=!1,a=n-1;a>=0;--a){var s=e.string.charAt(a),l="([{}])".indexOf(s);if(l>=0&&l<3){if(!i){++a;break}if(0==--i){"("==s&&(o=!0);break}}else if(l>=3&&l<6)++i;else if(u.test(s))o=!0;else if(/["'\/`]/.test(s))for(;;--a){if(0==a)return;if(e.string.charAt(a-1)==s&&"\\"!=e.string.charAt(a-2)){a--;break}}else if(o&&!i){++a;break}}o&&!i&&(t.fatArrowAt=a)}}var b={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,"jsonld-keyword":!0};function T(e,t,n,r,i,o){this.indented=e,this.column=t,this.type=n,this.prev=i,this.info=o,null!=r&&(this.align=r)}function E(e,t){for(var n=e.localVars;n;n=n.next)if(n.name==t)return!0;for(var r=e.context;r;r=r.prev)for(n=r.vars;n;n=n.next)if(n.name==t)return!0}var O={state:null,column:null,marked:null,cc:null};function w(){for(var e=arguments.length-1;e>=0;e--)O.cc.push(arguments[e])}function x(){return w.apply(null,arguments),!0}function _(e,t){for(var n=t;n;n=n.next)if(n.name==e)return!0;return!1}function k(e){var t=O.state;if(O.marked="def",t.context)if("var"==t.lexical.info&&t.context&&t.context.block){var r=function e(t,n){if(n){if(n.block){var r=e(t,n.prev);return r?r==n.prev?n:new S(r,n.vars,!0):null}return _(t,n.vars)?n:new S(n.prev,new N(t,n.vars),!1)}return null}(e,t.context);if(null!=r)return void(t.context=r)}else if(!_(e,t.localVars))return void(t.localVars=new N(e,t.localVars));n.globalVars&&!_(e,t.globalVars)&&(t.globalVars=new N(e,t.globalVars))}function C(e){return"public"==e||"private"==e||"protected"==e||"abstract"==e||"readonly"==e}function S(e,t,n){this.prev=e,this.vars=t,this.block=n}function N(e,t){this.name=e,this.next=t}var D=new N("this",new N("arguments",null));function I(){O.state.context=new S(O.state.context,O.state.localVars,!1),O.state.localVars=D}function A(){O.state.context=new S(O.state.context,O.state.localVars,!0),O.state.localVars=null}function L(){O.state.localVars=O.state.context.vars,O.state.context=O.state.context.prev}function j(e,t){var n=function(){var n=O.state,r=n.indented;if("stat"==n.lexical.type)r=n.lexical.indented;else for(var i=n.lexical;i&&")"==i.type&&i.align;i=i.prev)r=i.indented;n.lexical=new T(r,O.stream.column(),e,null,n.lexical,t)};return n.lex=!0,n}function F(){var e=O.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function M(e){return function t(n){return n==e?x():";"==e||"}"==n||")"==n||"]"==n?w():x(t)}}function R(e,t){return"var"==e?x(j("vardef",t),ye,M(";"),F):"keyword a"==e?x(j("form"),B,R,F):"keyword b"==e?x(j("form"),R,F):"keyword d"==e?O.stream.match(/^\s*$/,!1)?x():x(j("stat"),H,M(";"),F):"debugger"==e?x(M(";")):"{"==e?x(j("}"),A,oe,F,L):";"==e?x():"if"==e?("else"==O.state.lexical.info&&O.state.cc[O.state.cc.length-1]==F&&O.state.cc.pop()(),x(j("form"),B,R,F,xe)):"function"==e?x(Se):"for"==e?x(j("form"),_e,R,F):"class"==e||c&&"interface"==t?(O.marked="keyword",x(j("form","class"==e?e:t),Le,F)):"variable"==e?c&&"declare"==t?(O.marked="keyword",x(R)):c&&("module"==t||"enum"==t||"type"==t)&&O.stream.match(/^\s*\w/,!1)?(O.marked="keyword","enum"==t?x(ze):"type"==t?x(De,M("operator"),ue,M(";")):x(j("form"),be,M("{"),j("}"),oe,F,F)):c&&"namespace"==t?(O.marked="keyword",x(j("form"),V,R,F)):c&&"abstract"==t?(O.marked="keyword",x(R)):x(j("stat"),X):"switch"==e?x(j("form"),B,M("{"),j("}","switch"),A,oe,F,F,L):"case"==e?x(V,M(":")):"default"==e?x(M(":")):"catch"==e?x(j("form"),I,P,R,F,L):"export"==e?x(j("stat"),Re,F):"import"==e?x(j("stat"),Ve,F):"async"==e?x(R):"@"==t?x(V,R):w(j("stat"),V,M(";"),F)}function P(e){if("("==e)return x(Ie,M(")"))}function V(e,t){return q(e,t,!1)}function U(e,t){return q(e,t,!0)}function B(e){return"("!=e?w():x(j(")"),H,M(")"),F)}function q(e,t,n){if(O.state.fatArrowAt==O.stream.start){var r=n?Y:W;if("("==e)return x(I,j(")"),re(Ie,")"),F,M("=>"),r,L);if("variable"==e)return w(I,be,M("=>"),r,L)}var i=n?z:G;return b.hasOwnProperty(e)?x(i):"function"==e?x(Se,i):"class"==e||c&&"interface"==t?(O.marked="keyword",x(j("form"),Ae,F)):"keyword c"==e||"async"==e?x(n?U:V):"("==e?x(j(")"),H,M(")"),F,i):"operator"==e||"spread"==e?x(n?U:V):"["==e?x(j("]"),Ge,F,i):"{"==e?ie(ee,"}",null,i):"quasi"==e?w(Q,i):"new"==e?x(function(e){return function(t){return"."==t?x(e?$:J):"variable"==t&&c?x(me,e?z:G):w(e?U:V)}}(n)):"import"==e?x(V):x()}function H(e){return e.match(/[;\}\)\],]/)?w():w(V)}function G(e,t){return","==e?x(H):z(e,t,!1)}function z(e,t,n){var r=0==n?G:z,i=0==n?V:U;return"=>"==e?x(I,n?Y:W,L):"operator"==e?/\+\+|--/.test(t)||c&&"!"==t?x(r):c&&"<"==t&&O.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?x(j(">"),re(ue,">"),F,r):"?"==t?x(V,M(":"),i):x(i):"quasi"==e?w(Q,r):";"!=e?"("==e?ie(U,")","call",r):"."==e?x(Z,r):"["==e?x(j("]"),H,M("]"),F,r):c&&"as"==t?(O.marked="keyword",x(ue,r)):"regexp"==e?(O.state.lastType=O.marked="operator",O.stream.backUp(O.stream.pos-O.stream.start-1),x(i)):void 0:void 0}function Q(e,t){return"quasi"!=e?w():"${"!=t.slice(t.length-2)?x(Q):x(V,K)}function K(e){if("}"==e)return O.marked="string-2",O.state.tokenize=g,x(Q)}function W(e){return y(O.stream,O.state),w("{"==e?R:V)}function Y(e){return y(O.stream,O.state),w("{"==e?R:U)}function J(e,t){if("target"==t)return O.marked="keyword",x(G)}function $(e,t){if("target"==t)return O.marked="keyword",x(z)}function X(e){return":"==e?x(F,R):w(G,M(";"),F)}function Z(e){if("variable"==e)return O.marked="property",x()}function ee(e,t){return"async"==e?(O.marked="property",x(ee)):"variable"==e||"keyword"==O.style?(O.marked="property","get"==t||"set"==t?x(te):(c&&O.state.fatArrowAt==O.stream.start&&(n=O.stream.match(/^\s*:\s*/,!1))&&(O.state.fatArrowAt=O.stream.pos+n[0].length),x(ne))):"number"==e||"string"==e?(O.marked=s?"property":O.style+" property",x(ne)):"jsonld-keyword"==e?x(ne):c&&C(t)?(O.marked="keyword",x(ee)):"["==e?x(V,ae,M("]"),ne):"spread"==e?x(U,ne):"*"==t?(O.marked="keyword",x(ee)):":"==e?w(ne):void 0;var n}function te(e){return"variable"!=e?w(ne):(O.marked="property",x(Se))}function ne(e){return":"==e?x(U):"("==e?w(Se):void 0}function re(e,t,n){function r(i,o){if(n?n.indexOf(i)>-1:","==i){var a=O.state.lexical;return"call"==a.info&&(a.pos=(a.pos||0)+1),x((function(n,r){return n==t||r==t?w():w(e)}),r)}return i==t||o==t?x():n&&n.indexOf(";")>-1?w(e):x(M(t))}return function(n,i){return n==t||i==t?x():w(e,r)}}function ie(e,t,n){for(var r=3;r"),ue):void 0}function fe(e){if("=>"==e)return x(ue)}function de(e,t){return"variable"==e||"keyword"==O.style?(O.marked="property",x(de)):"?"==t||"number"==e||"string"==e?x(de):":"==e?x(ue):"["==e?x(M("variable"),se,M("]"),de):"("==e?w(Ne,de):void 0}function pe(e,t){return"variable"==e&&O.stream.match(/^\s*[?:]/,!1)||"?"==t?x(pe):":"==e?x(ue):"spread"==e?x(pe):w(ue)}function he(e,t){return"<"==t?x(j(">"),re(ue,">"),F,he):"|"==t||"."==e||"&"==t?x(ue):"["==e?x(ue,M("]"),he):"extends"==t||"implements"==t?(O.marked="keyword",x(ue)):"?"==t?x(ue,M(":"),ue):void 0}function me(e,t){if("<"==t)return x(j(">"),re(ue,">"),F,he)}function ve(){return w(ue,ge)}function ge(e,t){if("="==t)return x(ue)}function ye(e,t){return"enum"==t?(O.marked="keyword",x(ze)):w(be,ae,Oe,we)}function be(e,t){return c&&C(t)?(O.marked="keyword",x(be)):"variable"==e?(k(t),x()):"spread"==e?x(be):"["==e?ie(Ee,"]"):"{"==e?ie(Te,"}"):void 0}function Te(e,t){return"variable"!=e||O.stream.match(/^\s*:/,!1)?("variable"==e&&(O.marked="property"),"spread"==e?x(be):"}"==e?w():"["==e?x(V,M("]"),M(":"),Te):x(M(":"),be,Oe)):(k(t),x(Oe))}function Ee(){return w(be,Oe)}function Oe(e,t){if("="==t)return x(U)}function we(e){if(","==e)return x(ye)}function xe(e,t){if("keyword b"==e&&"else"==t)return x(j("form","else"),R,F)}function _e(e,t){return"await"==t?x(_e):"("==e?x(j(")"),ke,F):void 0}function ke(e){return"var"==e?x(ye,Ce):"variable"==e?x(Ce):w(Ce)}function Ce(e,t){return")"==e?x():";"==e?x(Ce):"in"==t||"of"==t?(O.marked="keyword",x(V,Ce)):w(V,Ce)}function Se(e,t){return"*"==t?(O.marked="keyword",x(Se)):"variable"==e?(k(t),x(Se)):"("==e?x(I,j(")"),re(Ie,")"),F,le,R,L):c&&"<"==t?x(j(">"),re(ve,">"),F,Se):void 0}function Ne(e,t){return"*"==t?(O.marked="keyword",x(Ne)):"variable"==e?(k(t),x(Ne)):"("==e?x(I,j(")"),re(Ie,")"),F,le,L):c&&"<"==t?x(j(">"),re(ve,">"),F,Ne):void 0}function De(e,t){return"keyword"==e||"variable"==e?(O.marked="type",x(De)):"<"==t?x(j(">"),re(ve,">"),F):void 0}function Ie(e,t){return"@"==t&&x(V,Ie),"spread"==e?x(Ie):c&&C(t)?(O.marked="keyword",x(Ie)):c&&"this"==e?x(ae,Oe):w(be,ae,Oe)}function Ae(e,t){return"variable"==e?Le(e,t):je(e,t)}function Le(e,t){if("variable"==e)return k(t),x(je)}function je(e,t){return"<"==t?x(j(">"),re(ve,">"),F,je):"extends"==t||"implements"==t||c&&","==e?("implements"==t&&(O.marked="keyword"),x(c?ue:V,je)):"{"==e?x(j("}"),Fe,F):void 0}function Fe(e,t){return"async"==e||"variable"==e&&("static"==t||"get"==t||"set"==t||c&&C(t))&&O.stream.match(/^\s+[\w$\xa1-\uffff]/,!1)?(O.marked="keyword",x(Fe)):"variable"==e||"keyword"==O.style?(O.marked="property",x(Me,Fe)):"number"==e||"string"==e?x(Me,Fe):"["==e?x(V,ae,M("]"),Me,Fe):"*"==t?(O.marked="keyword",x(Fe)):c&&"("==e?w(Ne,Fe):";"==e||","==e?x(Fe):"}"==e?x():"@"==t?x(V,Fe):void 0}function Me(e,t){if("?"==t)return x(Me);if(":"==e)return x(ue,Oe);if("="==t)return x(U);var n=O.state.lexical.prev;return w(n&&"interface"==n.info?Ne:Se)}function Re(e,t){return"*"==t?(O.marked="keyword",x(He,M(";"))):"default"==t?(O.marked="keyword",x(V,M(";"))):"{"==e?x(re(Pe,"}"),He,M(";")):w(R)}function Pe(e,t){return"as"==t?(O.marked="keyword",x(M("variable"))):"variable"==e?w(U,Pe):void 0}function Ve(e){return"string"==e?x():"("==e?w(V):w(Ue,Be,He)}function Ue(e,t){return"{"==e?ie(Ue,"}"):("variable"==e&&k(t),"*"==t&&(O.marked="keyword"),x(qe))}function Be(e){if(","==e)return x(Ue,Be)}function qe(e,t){if("as"==t)return O.marked="keyword",x(Ue)}function He(e,t){if("from"==t)return O.marked="keyword",x(V)}function Ge(e){return"]"==e?x():w(re(U,"]"))}function ze(){return w(j("form"),be,M("{"),j("}"),re(Qe,"}"),F,F)}function Qe(){return w(be,Oe)}function Ke(e,t,n){return t.tokenize==m&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(t.lastType)||"quasi"==t.lastType&&/\{\s*$/.test(e.string.slice(0,e.pos-(n||0)))}return L.lex=!0,F.lex=!0,{startState:function(e){var t={tokenize:m,lastType:"sof",cc:[],lexical:new T((e||0)-o,0,"block",!1),localVars:n.localVars,context:n.localVars&&new S(null,null,!1),indented:e||0};return n.globalVars&&"object"==typeof n.globalVars&&(t.globalVars=n.globalVars),t},token:function(e,t){if(e.sol()&&(t.lexical.hasOwnProperty("align")||(t.lexical.align=!1),t.indented=e.indentation(),y(e,t)),t.tokenize!=v&&e.eatSpace())return null;var n=t.tokenize(e,t);return"comment"==r?n:(t.lastType="operator"!=r||"++"!=i&&"--"!=i?r:"incdec",function(e,t,n,r,i){var o=e.cc;for(O.state=e,O.stream=i,O.marked=null,O.cc=o,O.style=t,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);;)if((o.length?o.pop():l?V:R)(n,r)){for(;o.length&&o[o.length-1].lex;)o.pop()();return O.marked?O.marked:"variable"==n&&E(e,r)?"variable-2":t}}(t,n,r,i,e))},indent:function(t,r){if(t.tokenize==v)return e.Pass;if(t.tokenize!=m)return 0;var i,s=r&&r.charAt(0),l=t.lexical;if(!/^\s*else\b/.test(r))for(var c=t.cc.length-1;c>=0;--c){var u=t.cc[c];if(u==F)l=l.prev;else if(u!=xe)break}for(;("stat"==l.type||"form"==l.type)&&("}"==s||(i=t.cc[t.cc.length-1])&&(i==G||i==z)&&!/^[,\.=+\-*:?[\(]/.test(r));)l=l.prev;a&&")"==l.type&&"stat"==l.prev.type&&(l=l.prev);var f=l.type,p=s==f;return"vardef"==f?l.indented+("operator"==t.lastType||","==t.lastType?l.info.length+1:0):"form"==f&&"{"==s?l.indented:"form"==f?l.indented+o:"stat"==f?l.indented+(function(e,t){return"operator"==e.lastType||","==e.lastType||d.test(t.charAt(0))||/[,.]/.test(t.charAt(0))}(t,r)?a||o:0):"switch"!=l.info||p||0==n.doubleIndentSwitch?l.align?l.column+(p?0:1):l.indented+(p?0:o):l.indented+(/^(?:case|default)\b/.test(r)?o:2*o)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:l?null:"/*",blockCommentEnd:l?null:"*/",blockCommentContinue:l?null:" * ",lineComment:l?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:l?"json":"javascript",jsonldMode:s,jsonMode:l,expressionAllowed:Ke,skipExpression:function(e){var t=e.cc[e.cc.length-1];t!=V&&t!=U||e.cc.pop()}}})),e.registerHelper("wordChars","javascript",/[\w$]/),e.defineMIME("text/javascript","javascript"),e.defineMIME("text/ecmascript","javascript"),e.defineMIME("application/javascript","javascript"),e.defineMIME("application/x-javascript","javascript"),e.defineMIME("application/ecmascript","javascript"),e.defineMIME("application/json",{name:"javascript",json:!0}),e.defineMIME("application/x-json",{name:"javascript",json:!0}),e.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),e.defineMIME("text/typescript",{name:"javascript",typescript:!0}),e.defineMIME("application/typescript",{name:"javascript",typescript:!0})})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(16),n(198),n(41)],void 0===(o="function"==typeof(r=function(e,t,r,i){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.ResultViewer=void 0,t=o(t),r=o(r),i=o(i);class s extends t.default.Component{constructor(...e){super(...e),a(this,"viewer",null),a(this,"_node",null)}componentDidMount(){const e=n(11);n(44),n(45),n(35),n(69),n(34),n(46),n(47),n(199);const o=this.props.ResultsTooltip,a=this.props.ImagePreview;if(o||a){n(82);const i=document.createElement("div");e.registerHelper("info","graphql-results",(e,n,s,l)=>{const c=[];return o&&c.push(t.default.createElement(o,{pos:l})),a&&"function"==typeof a.shouldRender&&a.shouldRender(e)&&c.push(t.default.createElement(a,{token:e})),c.length?(r.default.render(t.default.createElement("div",null,c),i),i):(r.default.unmountComponentAtNode(i),null)})}this.viewer=e(this._node,{lineWrapping:!0,value:this.props.value||"",readOnly:!0,theme:this.props.editorTheme||"graphiql",mode:"graphql-results",keyMap:"sublime",foldGutter:{minFoldSize:4},gutters:["CodeMirror-foldgutter"],info:Boolean(this.props.ResultsTooltip||this.props.ImagePreview),extraKeys:i.default})}shouldComponentUpdate(e){return this.props.value!==e.value}componentDidUpdate(){this.viewer&&this.viewer.setValue(this.props.value||"")}componentWillUnmount(){this.viewer=null}render(){return t.default.createElement("section",{className:"result-window","aria-label":"Result Window","aria-live":"polite","aria-atomic":"true",ref:e=>{e&&(this.props.registerRef(e),this._node=e)}})}getCodeMirror(){return this.viewer}getClientHeight(){return this._node&&this._node.clientHeight}}e.ResultViewer=s})?r.apply(t,i):r)||(e.exports=o)},function(e,t){e.exports=window.ReactDOM},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var e=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=e(n(11)),i=n(37);function o(e,t){var n,r,i=e.levels;return((i&&0!==i.length?i[i.length-1]-((null===(n=this.electricInput)||void 0===n?void 0:n.test(t))?1:0):e.indentLevel)||0)*((null===(r=this.config)||void 0===r?void 0:r.indentUnit)||0)}r.default.defineMode("graphql-results",(function(e){var t=i.onlineParser({eatWhitespace:function(e){return e.eatSpace()},lexRules:a,parseRules:s,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:o,electricInput:/^\s*[}\]]/,fold:"brace",closeBrackets:{pairs:'[]{}""',explode:"[]{}"}}}));var a={Punctuation:/^\[|]|\{|\}|:|,/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?/,Keyword:/^true|false|null/},s={Document:[i.p("{"),i.list("Entry",i.p(",")),i.p("}")],Entry:[i.t("String","def"),i.p(":"),"Value"],Value:function(e){switch(e.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(e.value){case"[":return"ListValue";case"{":return"ObjectValue"}return null;case"Keyword":switch(e.value){case"true":case"false":return"BooleanValue";case"null":return"NullValue"}return null}},NumberValue:[i.t("Number","number")],StringValue:[i.t("String","string")],BooleanValue:[i.t("Keyword","builtin")],NullValue:[i.t("Keyword","keyword")],ListValue:[i.p("["),i.list("Value",i.p(",")),i.p("]")],ObjectValue:[i.p("{"),i.list("ObjectField",i.p(",")),i.p("}")],ObjectField:[i.t("String","property"),i.p(":"),"Value"]}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(16),n(15),n(201),n(203),n(204),n(205),n(206)],void 0===(o="function"==typeof(r=function(e,t,n,r,i,o,a,s){"use strict";function l(e){return e&&e.__esModule?e:{default:e}}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.DocExplorer=void 0,t=l(t),r=l(r),i=l(i),o=l(o),a=l(a),s=l(s);const u={name:"Schema",title:"Documentation Explorer"};class f extends t.default.Component{constructor(e){super(e),c(this,"handleNavBackClick",()=>{this.state.navStack.length>1&&this.setState({navStack:this.state.navStack.slice(0,-1)})}),c(this,"handleClickType",e=>{this.showDoc(e)}),c(this,"handleClickField",e=>{this.showDoc(e)}),c(this,"handleSearch",e=>{this.showSearch(e)}),this.state={navStack:[u]}}shouldComponentUpdate(e,t){return this.props.schema!==e.schema||this.state.navStack!==t.navStack}render(){const{schema:e}=this.props,l=this.state.navStack,c=l[l.length-1];let u;u=void 0===e?t.default.createElement("div",{className:"spinner-container"},t.default.createElement("div",{className:"spinner"})):e?c.search?t.default.createElement(a.default,{searchValue:c.search,withinType:c.def,schema:e,onClickType:this.handleClickType,onClickField:this.handleClickField}):1===l.length?t.default.createElement(i.default,{schema:e,onClickType:this.handleClickType}):(0,n.isType)(c.def)?t.default.createElement(s.default,{schema:e,type:c.def,onClickType:this.handleClickType,onClickField:this.handleClickField}):t.default.createElement(r.default,{field:c.def,onClickType:this.handleClickType}):t.default.createElement("div",{className:"error-container"},"No Schema Available");const f=1===l.length||(0,n.isType)(c.def)&&"getFields"in c.def;let d;return l.length>1&&(d=l[l.length-2].name),t.default.createElement("section",{className:"doc-explorer",key:c.name,"aria-label":"Documentation Explorer"},t.default.createElement("div",{className:"doc-explorer-title-bar"},d&&t.default.createElement("button",{className:"doc-explorer-back",onClick:this.handleNavBackClick,"aria-label":"Go back to "+d},d),t.default.createElement("div",{className:"doc-explorer-title"},c.title||c.name),t.default.createElement("div",{className:"doc-explorer-rhs"},this.props.children)),t.default.createElement("div",{className:"doc-explorer-contents"},f&&t.default.createElement(o.default,{value:c.search,placeholder:`Search ${c.name}...`,onSearch:this.handleSearch}),u))}showDoc(e){const t=this.state.navStack;t[t.length-1].def!==e&&this.setState({navStack:t.concat([{name:e.name,def:e}])})}showDocForReference(e){e&&"Type"===e.kind?this.showDoc(e.type):"Field"===e.kind||"Argument"===e.kind&&e.field?this.showDoc(e.field):"EnumValue"===e.kind&&e.type&&this.showDoc(e.type)}showSearch(e){const t=this.state.navStack.slice(),n=t[t.length-1];t[t.length-1]={...n,search:e},this.setState({navStack:t})}reset(){this.setState({navStack:[u]})}}e.DocExplorer=f})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(16),n(58),n(202),n(59),n(38)],void 0===(o="function"==typeof(r=function(e,t,n,r,i,o){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function({field:e,onClickType:a}){let s,l;return e&&"args"in e&&e.args.length>0&&(s=t.default.createElement("div",{className:"doc-category"},t.default.createElement("div",{className:"doc-category-title"},"arguments"),e.args.map(e=>t.default.createElement("div",{key:e.name,className:"doc-category-item"},t.default.createElement("div",null,t.default.createElement(n.default,{arg:e,onClickType:a})),t.default.createElement(i.default,{className:"doc-value-description",markdown:e.description}))))),e&&e.astNode&&e.astNode.directives&&e.astNode.directives.length>0&&(l=t.default.createElement("div",{className:"doc-category"},t.default.createElement("div",{className:"doc-category-title"},"directives"),e.astNode.directives.map(e=>t.default.createElement("div",{key:e.name.value,className:"doc-category-item"},t.default.createElement("div",null,t.default.createElement(r.default,{directive:e})))))),t.default.createElement("div",null,t.default.createElement(i.default,{className:"doc-type-description",markdown:(null==e?void 0:e.description)||"No Description"}),e&&"deprecationReason"in e&&t.default.createElement(i.default,{className:"doc-deprecation",markdown:null==e?void 0:e.deprecationReason}),t.default.createElement("div",{className:"doc-category"},t.default.createElement("div",{className:"doc-category-title"},"type"),t.default.createElement(o.default,{type:null==e?void 0:e.type,onClick:a})),s,l)},t=a(t),n=a(n),r=a(r),i=a(i),o=a(o)})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(16)],void 0===(o="function"==typeof(r=function(e,t){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function({directive:e}){return t.default.createElement("span",{className:"doc-category-item",id:e.name.value},"@",e.name.value)},t=(n=t)&&n.__esModule?n:{default:n}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(16),n(38),n(59)],void 0===(o="function"==typeof(r=function(e,t,n,r){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function({schema:e,onClickType:i}){const o=e.getQueryType(),a=e.getMutationType&&e.getMutationType(),s=e.getSubscriptionType&&e.getSubscriptionType();return t.default.createElement("div",null,t.default.createElement(r.default,{className:"doc-type-description",markdown:e.description||"A GraphQL schema provides a root type for each kind of operation."}),t.default.createElement("div",{className:"doc-category"},t.default.createElement("div",{className:"doc-category-title"},"root types"),t.default.createElement("div",{className:"doc-category-item"},t.default.createElement("span",{className:"keyword"},"query"),": ",t.default.createElement(n.default,{type:o,onClick:i})),a&&t.default.createElement("div",{className:"doc-category-item"},t.default.createElement("span",{className:"keyword"},"mutation"),": ",t.default.createElement(n.default,{type:a,onClick:i})),s&&t.default.createElement("div",{className:"doc-category-item"},t.default.createElement("span",{className:"keyword"},"subscription"),": ",t.default.createElement(n.default,{type:s,onClick:i}))))},t=i(t),n=i(n),r=i(r)})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(16),n(84)],void 0===(o="function"==typeof(r=function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,t=r(t),n=r(n);class o extends t.default.Component{constructor(e){super(e),i(this,"debouncedOnSearch",void 0),i(this,"handleChange",e=>{const t=e.currentTarget.value;this.setState({value:t}),this.debouncedOnSearch(t)}),i(this,"handleClear",()=>{this.setState({value:""}),this.props.onSearch("")}),this.state={value:e.value||""},this.debouncedOnSearch=(0,n.default)(200,this.props.onSearch)}render(){return t.default.createElement("label",{className:"search-box"},t.default.createElement("div",{className:"search-box-icon","aria-hidden":"true"},"⚲"),t.default.createElement("input",{value:this.state.value,onChange:this.handleChange,type:"text",placeholder:this.props.placeholder,"aria-label":this.props.placeholder}),this.state.value&&t.default.createElement("button",{className:"search-box-clear",onClick:this.handleClear,"aria-label":"Clear search input"},"✕"))}}e.default=o})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(16),n(58),n(38)],void 0===(o="function"==typeof(r=function(e,t,n,r){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,t=i(t),n=i(n),r=i(r);class o extends t.default.Component{shouldComponentUpdate(e){return this.props.schema!==e.schema||this.props.searchValue!==e.searchValue}render(){const e=this.props.searchValue,i=this.props.withinType,o=this.props.schema,s=this.props.onClickType,l=this.props.onClickField,c=[],u=[],f=[],d=o.getTypeMap();let p=Object.keys(d);i&&(p=p.filter(e=>e!==i.name),p.unshift(i.name));for(const o of p){if(c.length+u.length+f.length>=100)break;const p=d[o];if(i!==p&&a(o,e)&&u.push(t.default.createElement("div",{className:"doc-category-item",key:o},t.default.createElement(r.default,{type:p,onClick:s}))),p&&"getFields"in p){const u=p.getFields();Object.keys(u).forEach(d=>{const h=u[d];let m;if(!a(d,e)){if(!("args"in h)||!h.args.length)return;if(m=h.args.filter(t=>a(t.name,e)),0===m.length)return}const v=t.default.createElement("div",{className:"doc-category-item",key:o+"."+d},i!==p&&[t.default.createElement(r.default,{key:"type",type:p,onClick:s}),"."],t.default.createElement("a",{className:"field-name",onClick:e=>l(h,p,e)},h.name),m&&["(",t.default.createElement("span",{key:"args"},m.map(e=>t.default.createElement(n.default,{key:e.name,arg:e,onClickType:s,showDefaultValue:!1}))),")"]);i===p?c.push(v):f.push(v)})}}return c.length+u.length+f.length===0?t.default.createElement("span",{className:"doc-alert-text"},"No results found."):i&&u.length+f.length>0?t.default.createElement("div",null,c,t.default.createElement("div",{className:"doc-category"},t.default.createElement("div",{className:"doc-category-title"},"other results"),u,f)):t.default.createElement("div",{className:"doc-search-items"},c,u,f)}}function a(e,t){try{const n=t.replace(/[^_0-9A-Za-z]/g,e=>"\\"+e);return-1!==e.search(new RegExp(n,"i"))}catch(n){return-1!==e.toLowerCase().indexOf(t.toLowerCase())}}e.default=o})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(16),n(15),n(58),n(59),n(38),n(83)],void 0===(o="function"==typeof(r=function(e,t,n,r,i,o,a){"use strict";function s(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,t=s(t),r=s(r),i=s(i),o=s(o),a=s(a);class l extends t.default.Component{constructor(e){var t,n,r;super(e),r=()=>this.setState({showDeprecated:!0}),(n="handleShowDeprecated")in(t=this)?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,this.state={showDeprecated:!1}}shouldComponentUpdate(e,t){return this.props.type!==e.type||this.props.schema!==e.schema||this.state.showDeprecated!==t.showDeprecated}render(){const e=this.props.schema,r=this.props.type,a=this.props.onClickType,s=this.props.onClickField;let l,f,d,p,h,m=null,v=[];if(r instanceof n.GraphQLUnionType?(m="possible types",v=e.getPossibleTypes(r)):r instanceof n.GraphQLInterfaceType?(m="implementations",v=e.getPossibleTypes(r)):r instanceof n.GraphQLObjectType&&(m="implements",v=r.getInterfaces()),v&&v.length>0&&(l=t.default.createElement("div",{className:"doc-category"},t.default.createElement("div",{className:"doc-category-title"},m),v.map(e=>t.default.createElement("div",{key:e.name,className:"doc-category-item"},t.default.createElement(o.default,{type:e,onClick:a}))))),r&&"getFields"in r){const e=r.getFields(),n=Object.keys(e).map(t=>e[t]);f=t.default.createElement("div",{className:"doc-category"},t.default.createElement("div",{className:"doc-category-title"},"fields"),n.filter(e=>!("isDeprecated"in e)||!e.isDeprecated).map(e=>t.default.createElement(c,{key:e.name,type:r,field:e,onClickType:a,onClickField:s})));const i=n.filter(e=>"isDeprecated"in e&&e.isDeprecated);i.length>0&&(d=t.default.createElement("div",{className:"doc-category"},t.default.createElement("div",{className:"doc-category-title"},"deprecated fields"),this.state.showDeprecated?i.map(e=>t.default.createElement(c,{key:e.name,type:r,field:e,onClickType:a,onClickField:s})):t.default.createElement("button",{className:"show-btn",onClick:this.handleShowDeprecated},"Show deprecated fields...")))}if(r instanceof n.GraphQLEnumType){const e=r.getValues();p=t.default.createElement("div",{className:"doc-category"},t.default.createElement("div",{className:"doc-category-title"},"values"),e.filter(e=>!e.isDeprecated).map(e=>t.default.createElement(u,{key:e.name,value:e})));const n=e.filter(e=>e.isDeprecated);n.length>0&&(h=t.default.createElement("div",{className:"doc-category"},t.default.createElement("div",{className:"doc-category-title"},"deprecated values"),this.state.showDeprecated?n.map(e=>t.default.createElement(u,{key:e.name,value:e})):t.default.createElement("button",{className:"show-btn",onClick:this.handleShowDeprecated},"Show deprecated values...")))}return t.default.createElement("div",null,t.default.createElement(i.default,{className:"doc-type-description",markdown:"description"in r&&r.description||"No Description"}),r instanceof n.GraphQLObjectType&&l,f,d,p,h,!(r instanceof n.GraphQLObjectType)&&l)}}function c({type:e,field:n,onClickType:s,onClickField:l}){return t.default.createElement("div",{className:"doc-category-item"},t.default.createElement("a",{className:"field-name",onClick:t=>l(n,e,t)},n.name),"args"in n&&n.args&&n.args.length>0&&["(",t.default.createElement("span",{key:"args"},n.args.map(e=>t.default.createElement(r.default,{key:e.name,arg:e,onClickType:s}))),")"],": ",t.default.createElement(o.default,{type:n.type,onClick:s}),t.default.createElement(a.default,{field:n}),n.description&&t.default.createElement(i.default,{className:"field-short-description",markdown:n.description}),"deprecationReason"in n&&n.deprecationReason&&t.default.createElement(i.default,{className:"doc-deprecation",markdown:n.deprecationReason}))}function u({value:e}){return t.default.createElement("div",{className:"doc-category-item"},t.default.createElement("div",{className:"enum-value"},e.name),t.default.createElement(i.default,{className:"doc-value-description",markdown:e.description}),e.deprecationReason&&t.default.createElement(i.default,{className:"doc-deprecation",markdown:e.deprecationReason}))}e.default=l})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(15),n(16),n(208),n(209)],void 0===(o="function"==typeof(r=function(e,t,n,r,i){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function a(){return(a=Object.assign||function(e){for(var t=1;t{if(((e,n,r,i)=>{if(!e)return!1;try{(0,t.parse)(e)}catch(e){return!1}if(e.length>1e5)return!1;if(!i)return!0;if(JSON.stringify(e)===JSON.stringify(i.query)){if(JSON.stringify(n)===JSON.stringify(i.variables)){if(JSON.stringify(r)===JSON.stringify(i.headers))return!1;if(r&&!i.headers)return!1}if(n&&!i.variables)return!1}return!0})(e,n,r,this.historyStore.fetchRecent())){this.historyStore.push({query:e,variables:n,headers:r,operationName:i});const t=this.historyStore.items,o=this.favoriteStore.items,a=t.concat(o);this.setState({queries:a})}}),s(this,"toggleFavorite",(e,t,n,r,i,o)=>{const a={query:e,variables:t,headers:n,operationName:r,label:i};this.favoriteStore.contains(a)?o&&(a.favorite=!1,this.favoriteStore.delete(a)):(a.favorite=!0,this.favoriteStore.push(a)),this.setState({queries:[...this.historyStore.items,...this.favoriteStore.items]})}),s(this,"editLabel",(e,t,n,r,i,o)=>{const a={query:e,variables:t,headers:n,operationName:r,label:i};o?this.favoriteStore.edit({...a,favorite:o}):this.historyStore.edit(a),this.setState({queries:[...this.historyStore.items,...this.favoriteStore.items]})}),this.historyStore=new r.default("queries",e.storage,20),this.favoriteStore=new r.default("favorites",e.storage,null);const n=this.historyStore.fetchAll(),i=this.favoriteStore.fetchAll(),o=n.concat(i);this.state={queries:o}}render(){const e=this.state.queries.slice().reverse().map((e,t)=>n.default.createElement(i.default,a({handleEditLabel:this.editLabel,handleToggleFavorite:this.toggleFavorite,key:`${t}:${e.label||e.query}`,onSelect:this.props.onSelectQuery},e)));return n.default.createElement("section",{"aria-label":"History"},n.default.createElement("div",{className:"history-title-bar"},n.default.createElement("div",{className:"history-title"},"History"),n.default.createElement("div",{className:"doc-explorer-rhs"},this.props.children)),n.default.createElement("ul",{className:"history-contents"},e))}}e.QueryHistory=l})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t],void 0===(o="function"==typeof(r=function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default=class{constructor(e,t,n=null){this.key=e,this.storage=t,this.maxSize=n,function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"items",void 0),this.items=this.fetchAll()}get length(){return this.items.length}contains(e){return this.items.some(t=>t.query===e.query&&t.variables===e.variables&&t.headers===e.headers&&t.operationName===e.operationName)}edit(e){const t=this.items.findIndex(t=>t.query===e.query&&t.variables===e.variables&&t.headers===e.headers&&t.operationName===e.operationName);-1!==t&&(this.items.splice(t,1,e),this.save())}delete(e){const t=this.items.findIndex(t=>t.query===e.query&&t.variables===e.variables&&t.headers===e.headers&&t.operationName===e.operationName);-1!==t&&(this.items.splice(t,1),this.save())}fetchRecent(){return this.items[this.items.length-1]}fetchAll(){const e=this.storage.get(this.key);return e?JSON.parse(e)[this.key]:[]}push(e){const t=[...this.items,e];this.maxSize&&t.length>this.maxSize&&t.shift();for(let e=0;e<5;e++){const e=this.storage.set(this.key,JSON.stringify({[this.key]:t}));if(e&&e.error){if(!e.isQuotaError||!this.maxSize)return;t.shift()}else this.items=t}}save(){this.storage.set(this.key,JSON.stringify({[this.key]:this.items}))}}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(16)],void 0===(o="function"==typeof(r=function(e,t){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,t=(n=t)&&n.__esModule?n:{default:n};class r extends t.default.Component{constructor(e){super(e),function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"editField",void 0),this.state={editable:!1},this.editField=null}render(){var e;const n=this.props.label||this.props.operationName||(null===(e=this.props.query)||void 0===e?void 0:e.split("\n").filter(e=>0!==e.indexOf("#")).join("")),r=this.props.favorite?"★":"☆";return t.default.createElement("li",{className:this.state.editable?"editable":void 0},this.state.editable?t.default.createElement("input",{type:"text",defaultValue:this.props.label,ref:e=>{this.editField=e},onBlur:this.handleFieldBlur.bind(this),onKeyDown:this.handleFieldKeyDown.bind(this),placeholder:"Type a label"}):t.default.createElement("button",{className:"history-label",onClick:this.handleClick.bind(this)},n),t.default.createElement("button",{onClick:this.handleEditClick.bind(this),"aria-label":"Edit label"},"✎"),t.default.createElement("button",{className:this.props.favorite?"favorited":void 0,onClick:this.handleStarClick.bind(this),"aria-label":this.props.favorite?"Remove favorite":"Add favorite"},r))}handleClick(){this.props.onSelect(this.props.query,this.props.variables,this.props.headers,this.props.operationName,this.props.label)}handleStarClick(e){e.stopPropagation(),this.props.handleToggleFavorite(this.props.query,this.props.variables,this.props.headers,this.props.operationName,this.props.label,this.props.favorite)}handleFieldBlur(e){e.stopPropagation(),this.setState({editable:!1}),this.props.handleEditLabel(this.props.query,this.props.variables,this.props.headers,this.props.operationName,e.target.value,this.props.favorite)}handleFieldKeyDown(e){13===e.keyCode&&(e.stopPropagation(),this.setState({editable:!1}),this.props.handleEditLabel(this.props.query,this.props.variables,this.props.headers,this.props.operationName,e.currentTarget.value,this.props.favorite))}handleEditClick(e){e.stopPropagation(),this.setState({editable:!0},()=>{this.editField&&this.editField.focus()})}}e.default=r})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t],void 0===(o="function"==typeof(r=function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default=class{constructor(){var e,t,n;n=[],(t="sizes")in(e=this)?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}updateSizes(e){e.forEach((e,t)=>{if(e){const n=e.getClientHeight();if(t<=this.sizes.length&&n!==this.sizes[t]){const t=e.getCodeMirror();t&&t.setSize(null,null)}this.sizes[t]=n}})}}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t],void 0===(o="function"==typeof(r=function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default=class{constructor(e){var t,n,r;r=void 0,(n="storage")in(t=this)?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,this.storage=e||("undefined"!=typeof window?window.localStorage:null)}get(e){if(this.storage){const t=this.storage.getItem("graphiql:"+e);if("null"===t||"undefined"===t)return this.storage.removeItem("graphiql:"+e),null;if(t)return t}return null}set(e,t){let n=!1,r=null;if(this.storage){const i="graphiql:"+e;if(t)try{this.storage.setItem(i,t)}catch(e){r=e,n=function(e,t){return t instanceof DOMException&&(22===t.code||1014===t.code||"QuotaExceededError"===t.name||"NS_ERROR_DOM_QUOTA_REACHED"===t.name)&&0!==e.length}(this.storage,e)}else this.storage.removeItem(i)}return{isQuotaError:n,error:r}}}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(15)],void 0===(o="function"==typeof(r=function(e,t){"use strict";function n(e,n){if(!n)return;let r;try{r=(0,t.parse)(n,{experimentalFragmentVariables:!0})}catch{return}const o=e?i(e,r):void 0,a=[];return(0,t.visit)(r,{OperationDefinition(e){a.push(e)}}),{variableToType:o,operations:a,documentAST:r}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=n,e.collectVariables=i,e.getQueryFacts=void 0;const r=n;function i(e,n){const r=Object.create(null);return n.definitions.forEach(n=>{if("OperationDefinition"===n.kind){const i=n.variableDefinitions;i&&i.forEach(({variable:n,type:i})=>{const o=(0,t.typeFromAST)(e,i);o&&(r[n.name.value]=o)})}}),r}e.getQueryFacts=r})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t],void 0===(o="function"==typeof(r=function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e,t,n){if(!n||n.length<1)return;const r=n.map(e=>e.name&&e.name.value);if(t&&-1!==r.indexOf(t))return t;if(t&&e){const n=e.map(e=>e.name&&e.name.value).indexOf(t);if(-1!==n&&n{(0,t.isLeafType)(n[e].type)&&r.push(e)}),r}function r(e,t){if(0===t.length)return e;let n="",r=0;return t.forEach(({index:t,string:i})=>{n+=e.slice(r,t)+i,r=t}),n+=e.slice(r),n}Object.defineProperty(e,"__esModule",{value:!0}),e.fillLeafs=function(e,i,o){const a=[];if(!e||!i)return{insertions:a,result:i};let s;try{s=(0,t.parse)(i)}catch(e){return{insertions:a,result:i}}const l=o||n,c=new t.TypeInfo(e);return(0,t.visit)(s,{leave(e){c.leave(e)},enter(e){if(c.enter(e),"Field"===e.kind&&!e.selectionSet){const n=function e(n,r){const i=(0,t.getNamedType)(n);if(!n||(0,t.isLeafType)(n))return;const o=r(i);return Array.isArray(o)&&0!==o.length&&"getFields"in i?{kind:"SelectionSet",selections:o.map(t=>{const n=i.getFields()[t],o=n?n.type:null;return{kind:"Field",name:{kind:"Name",value:t},selectionSet:e(o,r)}})}:void 0}(function(e){if(e)return e}(c.getType()),l);if(n&&e.loc){const r=function(e,t){let n=t,r=t;for(;n;){const t=e.charCodeAt(n-1);if(10===t||13===t||8232===t||8233===t)break;n--,9!==t&&11!==t&&12!==t&&32!==t&&160!==t&&(r=n)}return e.substring(n,r)}(i,e.loc.start);a.push({index:e.loc.end,string:" "+(0,t.print)(n).replace(/\n/g,"\n"+r)})}}}}),{insertions:a,result:r(i,a)}}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t],void 0===(o="function"==typeof(r=function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getLeft=function(e){let t=0,n=e;for(;n.offsetParent;)t+=n.offsetLeft,n=n.offsetParent;return t},e.getTop=function(e){let t=0,n=e;for(;n.offsetParent;)t+=n.offsetTop,n=n.offsetParent;return t}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(15)],void 0===(o="function"==typeof(r=function(e,t){"use strict";function n(e,t){const n=new Map,r=[];for(const i of e)if("Field"===i.kind){const e=t(i),o=n.get(e);if(i.directives&&i.directives.length){const e={...i};r.push(e)}else if(o&&o.selectionSet&&i.selectionSet)o.selectionSet.selections=[...o.selectionSet.selections,...i.selectionSet.selections];else if(!o){const t={...i};n.set(e,t),r.push(t)}}else r.push(i);return r}function r(e,n,i){const o=i?(0,t.getNamedType)(i).name:null,a=[],s=[];for(let t of n){var l;if("FragmentSpread"===t.kind){const n=t.name.value;if(!t.directives||0===t.directives.length){if(s.indexOf(n)>=0)continue;s.push(n)}const r=e[t.name.value];if(r){const{typeCondition:e,directives:n,selectionSet:i}=r;t={kind:"InlineFragment",typeCondition:e,directives:n,selectionSet:i}}}if("InlineFragment"===t.kind&&(!t.directives||0===(null===(l=t.directives)||void 0===l?void 0:l.length))){const n=t.typeCondition?t.typeCondition.name.value:null;if(!n||n===o){a.push(...r(e,t.selectionSet.selections,i));continue}}a.push(t)}return a}Object.defineProperty(e,"__esModule",{value:!0}),e.uniqueBy=n,e.inlineRelevantFragmentSpreads=r,e.default=function(e,i){const o=i?new t.TypeInfo(i):null,a=Object.create(null);for(const t of e.definitions)"FragmentDefinition"===t.kind&&(a[t.name.value]=t);const s={SelectionSet(e){const t=o?o.getParentType():null;let{selections:i}=e;return i=r(a,i,t),i=n(i,e=>e.alias?e.alias.value:e.name.value),{...e,selections:i}},FragmentDefinition:()=>null};return(0,t.visit)(e,o?(0,t.visitWithTypeInfo)(o,s):s)}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(15)],void 0===(o="function"==typeof(r=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.introspectionQuerySansSubscriptions=e.introspectionQueryName=e.staticName=e.introspectionQuery=void 0;const n=(0,t.getIntrospectionQuery)();e.introspectionQuery=n,e.staticName="IntrospectionQuery",e.introspectionQueryName="IntrospectionQuery";const r=n.replace("subscriptionType { name }","");e.introspectionQuerySansSubscriptions=r})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){"use strict";function r(e,t,n){if("object"==typeof e&&"object"==typeof t){if(Array.isArray(e)&&Array.isArray(t))for(n=0;n