Skip to content

Instantly share code, notes, and snippets.

@ondratra
Created June 4, 2021 15:20
Show Gist options
  • Save ondratra/7bd383fbcbf378713e321146cad5e9d6 to your computer and use it in GitHub Desktop.
Save ondratra/7bd383fbcbf378713e321146cad5e9d6 to your computer and use it in GitHub Desktop.
This file has been truncated, but you can view the full file.
!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}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=541)}([function(e,t,n){"use strict";n.d(t,"S",(function(){return C})),n.d(t,"x",(function(){return w})),n.d(t,"R",(function(){return S})),n.d(t,"w",(function(){return k})),n.d(t,"N",(function(){return A})),n.d(t,"u",(function(){return T})),n.d(t,"H",(function(){return _})),n.d(t,"o",(function(){return O})),n.d(t,"T",(function(){return F})),n.d(t,"y",(function(){return N})),n.d(t,"E",(function(){return I})),n.d(t,"l",(function(){return M})),n.d(t,"F",(function(){return j})),n.d(t,"m",(function(){return L})),n.d(t,"J",(function(){return P})),n.d(t,"q",(function(){return R})),n.d(t,"L",(function(){return B})),n.d(t,"s",(function(){return U})),n.d(t,"G",(function(){return z})),n.d(t,"n",(function(){return V})),n.d(t,"O",(function(){return q})),n.d(t,"v",(function(){return H})),n.d(t,"I",(function(){return W})),n.d(t,"p",(function(){return G})),n.d(t,"D",(function(){return K})),n.d(t,"k",(function(){return J})),n.d(t,"C",(function(){return Q})),n.d(t,"j",(function(){return Y})),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 le})),n.d(t,"i",(function(){return me})),n.d(t,"P",(function(){return ge})),n.d(t,"c",(function(){return ye})),n.d(t,"h",(function(){return ve})),n.d(t,"a",(function(){return Ee})),n.d(t,"b",(function(){return De})),n.d(t,"Q",(function(){return we}));var r=n(54),i=n(25),o=n(4),a=n(36),s=n(56),u=n(40),c=n(8),l=n(49),p=n(47),f=n(38),d=n(31);function h(e){return e}var m=n(46),g=n(43),y=n(2),v=n(1),b=n(15),E=n(216);function x(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function D(e,t,n){return t&&x(e.prototype,t),n&&x(e,n),e}function C(e){return S(e)||A(e)||_(e)||F(e)||I(e)||j(e)||P(e)||B(e)}function w(e){if(!C(e))throw new Error("Expected ".concat(Object(o.a)(e)," to be a GraphQL type."));return e}function S(e){return Object(p.a)(e,ce)}function k(e){if(!S(e))throw new Error("Expected ".concat(Object(o.a)(e)," to be a GraphQL Scalar type."));return e}function A(e){return Object(p.a)(e,le)}function T(e){if(!A(e))throw new Error("Expected ".concat(Object(o.a)(e)," to be a GraphQL Object type."));return e}function _(e){return Object(p.a)(e,ye)}function O(e){if(!_(e))throw new Error("Expected ".concat(Object(o.a)(e)," to be a GraphQL Interface type."));return e}function F(e){return Object(p.a)(e,ve)}function N(e){if(!F(e))throw new Error("Expected ".concat(Object(o.a)(e)," to be a GraphQL Union type."));return e}function I(e){return Object(p.a)(e,Ee)}function M(e){if(!I(e))throw new Error("Expected ".concat(Object(o.a)(e)," to be a GraphQL Enum type."));return e}function j(e){return Object(p.a)(e,De)}function L(e){if(!j(e))throw new Error("Expected ".concat(Object(o.a)(e)," to be a GraphQL Input Object type."));return e}function P(e){return Object(p.a)(e,$)}function R(e){if(!P(e))throw new Error("Expected ".concat(Object(o.a)(e)," to be a GraphQL List type."));return e}function B(e){return Object(p.a)(e,X)}function U(e){if(!B(e))throw new Error("Expected ".concat(Object(o.a)(e)," to be a GraphQL Non-Null type."));return e}function z(e){return S(e)||I(e)||j(e)||Z(e)&&z(e.ofType)}function V(e){if(!z(e))throw new Error("Expected ".concat(Object(o.a)(e)," to be a GraphQL input type."));return e}function q(e){return S(e)||A(e)||_(e)||F(e)||I(e)||Z(e)&&q(e.ofType)}function H(e){if(!q(e))throw new Error("Expected ".concat(Object(o.a)(e)," to be a GraphQL output type."));return e}function W(e){return S(e)||I(e)}function G(e){if(!W(e))throw new Error("Expected ".concat(Object(o.a)(e)," to be a GraphQL leaf type."));return e}function K(e){return A(e)||_(e)||F(e)}function J(e){if(!K(e))throw new Error("Expected ".concat(Object(o.a)(e)," to be a GraphQL composite type."));return e}function Q(e){return _(e)||F(e)}function Y(e){if(!Q(e))throw new Error("Expected ".concat(Object(o.a)(e)," to be a GraphQL abstract type."));return e}function $(e){if(!(this instanceof $))return new $(e);this.ofType=w(e)}function X(e){if(!(this instanceof X))return new X(e);this.ofType=ne(e)}function Z(e){return P(e)||B(e)}function ee(e){if(!Z(e))throw new Error("Expected ".concat(Object(o.a)(e)," to be a GraphQL wrapping type."));return e}function te(e){return C(e)&&!B(e)}function ne(e){if(!te(e))throw new Error("Expected ".concat(Object(o.a)(e)," to be a GraphQL nullable type."));return e}function re(e){if(e)return B(e)?e.ofType:e}function ie(e){return S(e)||A(e)||_(e)||F(e)||I(e)||j(e)}function oe(e){if(!ie(e))throw new Error("Expected ".concat(Object(o.a)(e)," to be a GraphQL named type."));return e}function ae(e){if(e){for(var t=e;Z(t);)t=t.ofType;return t}}function se(e){return"function"==typeof e?e():e}function ue(e){return e&&e.length>0?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){return i(Object(E.a)(e))},this.extensions=e.extensions&&Object(u.a)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=ue(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()},D(e,[{key:i.c,get:function(){return"GraphQLScalarType"}}]),e}();Object(m.a)(ce);var le=function(){function e(e){this.name=e.name,this.description=e.description,this.isTypeOf=e.isTypeOf,this.extensions=e.extensions&&Object(u.a)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=ue(e.extensionASTNodes),this._fields=fe.bind(void 0,e),this._interfaces=pe.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()},D(e,[{key:i.c,get:function(){return"GraphQLObjectType"}}]),e}();function pe(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 fe(e){var t=se(e.fields);return de(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;de(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:{};de(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,extensions:n.extensions&&Object(u.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(u.a)(t.extensions),astNode:t.astNode}}))}function de(e){return Object(d.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(l.a)(e,(function(e){return e.name}),(function(e){return{description:e.description,type:e.type,defaultValue:e.defaultValue,extensions:e.extensions,astNode:e.astNode}}))}function ge(e){return B(e.type)&&void 0===e.defaultValue}Object(m.a)(le);var ye=function(){function e(e){this.name=e.name,this.description=e.description,this.resolveType=e.resolveType,this.extensions=e.extensions&&Object(u.a)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=ue(e.extensionASTNodes),this._fields=fe.bind(void 0,e),this._interfaces=pe.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()},D(e,[{key:i.c,get:function(){return"GraphQLInterfaceType"}}]),e}();Object(m.a)(ye);var ve=function(){function e(e){this.name=e.name,this.description=e.description,this.resolveType=e.resolveType,this.extensions=e.extensions&&Object(u.a)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=ue(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()},D(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)(ve);var Ee=function(){function e(e){var t,n;this.name=e.name,this.description=e.description,this.extensions=e.extensions&&Object(u.a)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=ue(e.extensionASTNodes),this._values=(t=this.name,de(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 de(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(u.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 y.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 y.a('Enum "'.concat(this.name,'" cannot represent non-string value: ').concat(t,".")+xe(this,t))}var n=this.getValue(e);if(null==n)throw new y.a('Value "'.concat(e,'" does not exist in "').concat(this.name,'" enum.')+xe(this,e));return n.value},t.parseLiteral=function(e,t){if(e.kind!==v.a.ENUM){var n=Object(b.print)(e);throw new y.a('Enum "'.concat(this.name,'" cannot represent non-enum value: ').concat(n,".")+xe(this,n),e)}var r=this.getValue(e.value);if(null==r){var i=Object(b.print)(e);throw new y.a('Value "'.concat(i,'" does not exist in "').concat(this.name,'" enum.')+xe(this,i),e)}return r.value},t.toConfig=function(){var e,t=Object(l.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()},D(e,[{key:i.c,get:function(){return"GraphQLEnumType"}}]),e}();function xe(e,t){var n=e.getValues().map((function(e){return e.name})),r=Object(g.a)(t,n);return Object(f.a)("the enum value",r)}Object(m.a)(Ee);var De=function(){function e(e){this.name=e.name,this.description=e.description,this.extensions=e.extensions&&Object(u.a)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=ue(e.extensionASTNodes),this._fields=Ce.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()},D(e,[{key:i.c,get:function(){return"GraphQLInputObjectType"}}]),e}();function Ce(e){var t=se(e.fields);return de(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,extensions:t.extensions&&Object(u.a)(t.extensions),astNode:t.astNode}}))}function we(e){return B(e.type)&&void 0===e.defaultValue}Object(m.a)(De)},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 g})),n.d(t,"b",(function(){return y}));var r=n(31),i=n(25),o=n(95),a=n(137);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 u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(e,t){return!t||"object"!==s(t)&&"function"!=typeof t?l(e):t}function l(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e){var t="function"==typeof Map?new Map:void 0;return(p=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return f(e,arguments,m(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),h(r,e)})(e)}function f(e,t,n){return(f=d()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&h(i,n.prototype),i}).apply(null,arguments)}function d(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(g,e);var t,n,a,s,p,f=(t=g,n=d(),function(){var e,r=m(t);if(n){var i=m(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return c(this,e)});function g(e,t,n,i,a,s,u){var p,d,h,m,y;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,g),y=f.call(this,e);var v,b=Array.isArray(t)?0!==t.length?t:void 0:t?[t]:void 0,E=n;!E&&b&&(E=null===(v=b[0].loc)||void 0===v?void 0:v.source);var x,D=i;!D&&b&&(D=b.reduce((function(e,t){return t.loc&&e.push(t.loc.start),e}),[])),D&&0===D.length&&(D=void 0),i&&n?x=i.map((function(e){return Object(o.a)(n,e)})):b&&(x=b.reduce((function(e,t){return t.loc&&e.push(Object(o.a)(t.loc.source,t.loc.start)),e}),[]));var C=u;if(null==C&&null!=s){var w=s.extensions;Object(r.a)(w)&&(C=w)}return Object.defineProperties(l(y),{name:{value:"GraphQLError"},message:{value:e,enumerable:!0,writable:!0},locations:{value:null!==(p=x)&&void 0!==p?p:void 0,enumerable:null!=x},path:{value:null!=a?a:void 0,enumerable:null!=a},nodes:{value:null!=b?b:void 0},source:{value:null!==(d=E)&&void 0!==d?d:void 0},positions:{value:null!==(h=D)&&void 0!==h?h:void 0},originalError:{value:s},extensions:{value:null!==(m=C)&&void 0!==m?m:void 0,enumerable:null!=C}}),(null==s?void 0:s.stack)?(Object.defineProperty(l(y),"stack",{value:s.stack,writable:!0,configurable:!0}),c(y)):(Error.captureStackTrace?Error.captureStackTrace(l(y),g):Object.defineProperty(l(y),"stack",{value:Error().stack,writable:!0,configurable:!0}),y)}return a=g,(s=[{key:"toString",value:function(){return y(this)}},{key:i.c,get:function(){return"Object"}}])&&u(a.prototype,s),p&&u(a,p),g}(p(Error));function y(e){var t=e.message;if(e.nodes)for(var n=0,r=e.nodes;n<r.length;n++){var i=r[n];i.loc&&(t+="\n\n"+Object(a.a)(i.loc))}else if(e.source&&e.locations)for(var o=0,s=e.locations;o<s.length;o++){var u=s[o];t+="\n\n"+Object(a.b)(e.source,u)}return t}},function(e,t,n){"use strict";e.exports=n(258)},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(94);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e){return a(e,[])}function a(e,t){switch(i(e)){case"string":return JSON.stringify(e);case"function":return e.name?"[function ".concat(e.name,"]"):"[function]";case"object":return null===e?"null":function(e,t){if(-1!==t.indexOf(e))return"[Circular]";var n=[].concat(t,[e]),i=function(e){var t=e[String(r.a)];if("function"==typeof t)return t;if("function"==typeof e.inspect)return e.inspect}(e);if(void 0!==i){var o=i.call(e);if(o!==e)return"string"==typeof o?o:a(o,n)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>2)return"[Array]";for(var n=Math.min(10,e.length),r=e.length-n,i=[],o=0;o<n;++o)i.push(a(e[o],t));1===r?i.push("... 1 more item"):r>1&&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({SOF:"<SOF>",EOF:"<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"})},function(e,t,n){"use strict";n.d(t,"a",(function(){return ae})),n.d(t,"b",(function(){return L})),n.d(t,"c",(function(){return v})),n.d(t,"d",(function(){return R})),n.d(t,"e",(function(){return x})),n.d(t,"f",(function(){return c})),n.d(t,"g",(function(){return U})),n.d(t,"h",(function(){return K})),n.d(t,"i",(function(){return I})),n.d(t,"j",(function(){return $})),n.d(t,"k",(function(){return z})),n.d(t,"l",(function(){return X})),n.d(t,"m",(function(){return ue})),n.d(t,"n",(function(){return pe})),n.d(t,"o",(function(){return oe})),n.d(t,"p",(function(){return de})),n.d(t,"q",(function(){return j})),n.d(t,"r",(function(){return F})),n.d(t,"s",(function(){return P})),n.d(t,"t",(function(){return q})),n.d(t,"u",(function(){return M})),n.d(t,"v",(function(){return ve})),n.d(t,"w",(function(){return re})),n.d(t,"x",(function(){return Q})),n.d(t,"y",(function(){return Z})),n.d(t,"z",(function(){return ee})),n.d(t,"A",(function(){return te})),n.d(t,"B",(function(){return ne})),n.d(t,"C",(function(){return B})),n.d(t,"D",(function(){return se})),n.d(t,"E",(function(){return ce})),n.d(t,"F",(function(){return le})),n.d(t,"G",(function(){return fe})),n.d(t,"H",(function(){return he})),n.d(t,"I",(function(){return me})),n.d(t,"J",(function(){return ge})),n.d(t,"K",(function(){return ye})),n.d(t,"L",(function(){return V})),n.d(t,"M",(function(){return l})),n.d(t,"N",(function(){return H})),n.d(t,"O",(function(){return N})),n.d(t,"P",(function(){return W})),n.d(t,"Q",(function(){return G})),n.d(t,"R",(function(){return J})),n.d(t,"S",(function(){return b})),n.d(t,"T",(function(){return k})),n.d(t,"U",(function(){return s})),n.d(t,"V",(function(){return S})),n.d(t,"W",(function(){return E})),n.d(t,"X",(function(){return O})),n.d(t,"Y",(function(){return h})),n.d(t,"Z",(function(){return p})),n.d(t,"ab",(function(){return y})),n.d(t,"bb",(function(){return d})),n.d(t,"cb",(function(){return w})),n.d(t,"db",(function(){return u})),n.d(t,"eb",(function(){return f})),n.d(t,"fb",(function(){return A})),n.d(t,"gb",(function(){return C})),n.d(t,"hb",(function(){return D}));var r=n(18),i=n(63),o=n(10),a=n(111),s=function(e){return function(){return e}}(!0),u=function(){};var c=function(e){return e};"function"==typeof Symbol&&Symbol.asyncIterator&&Symbol.asyncIterator;function l(e,t,n){if(!t(e))throw new Error(n)}var p=function(e,t){Object(i.a)(e,t),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach((function(n){e[n]=t[n]}))},f=function(e,t){var n;return(n=[]).concat.apply(n,t.map(e))};function d(e,t){var n=e.indexOf(t);n>=0&&e.splice(n,1)}function h(e){var t=!1;return function(){t||(t=!0,e())}}var m=function(e){throw e},g=function(e){return{value:e,done:!0}};function y(e,t,n){void 0===t&&(t=m),void 0===n&&(n="iterator");var r={meta:{name:n},next:e,throw:t,return:g,isSagaIterator:!0};return"undefined"!=typeof Symbol&&(r[Symbol.iterator]=function(){return r}),r}function v(e,t){var n=t.sagaStack;console.error(e),console.error(n)}var b=function(e){return new Error("\n redux-saga: Error checking hooks detected an inconsistent state. This is likely a bug\n in redux-saga code and not yours. Thanks for reporting this in the project's github repo.\n Error: "+e+"\n")},E=function(e){return Array.apply(null,new Array(e))},x=function(e){return function(t){return e(Object.defineProperty(t,r.f,{value:!0}))}},D=function(e){return e===r.k},C=function(e){return e===r.j},w=function(e){return D(e)||C(e)};function S(e,t){var n=Object.keys(e),r=n.length;var i,a=0,s=Object(o.a)(e)?E(r):{},c={};return n.forEach((function(e){var n=function(n,o){i||(o||w(n)?(t.cancel(),t(n,o)):(s[e]=n,++a===r&&(i=!0,t(s))))};n.cancel=u,c[e]=n})),t.cancel=function(){i||(i=!0,n.forEach((function(e){return c[e].cancel()})))},c}function k(e){return{name:e.name||"anonymous",location:A(e)}}function A(e){return e[r.g]}var T={isEmpty:s,put:u,take:u};function _(e,t){void 0===e&&(e=10);var n=new Array(e),r=0,i=0,o=0,a=function(t){n[i]=t,i=(i+1)%e,r++},s=function(){if(0!=r){var t=n[o];return n[o]=null,r--,o=(o+1)%e,t}},u=function(){for(var e=[];r;)e.push(s());return e};return{isEmpty:function(){return 0==r},put:function(s){var c;if(r<e)a(s);else switch(t){case 1:throw new Error("Channel's Buffer overflow!");case 3:n[i]=s,o=i=(i+1)%e;break;case 4:c=2*e,n=u(),r=n.length,i=n.length,o=0,n.length=c,e=c,a(s)}},take:s,flush:u}}var O=function(){return T},F=function(e){return _(e,3)},N=function(e){return _(e,4)},I=Object.freeze({__proto__:null,none:O,fixed:function(e){return _(e,1)},dropping:function(e){return _(e,2)},sliding:F,expanding:N}),M="TAKE",j="PUT",L="ALL",P="RACE",R="CALL",B="CPS",U="FORK",z="JOIN",V="CANCEL",q="SELECT",H="ACTION_CHANNEL",W="CANCELLED",G="FLUSH",K="GET_CONTEXT",J="SET_CONTEXT",Q=Object.freeze({__proto__:null,TAKE:M,PUT:j,ALL:L,RACE:P,CALL:R,CPS:B,FORK:U,JOIN:z,CANCEL:V,SELECT:q,ACTION_CHANNEL:H,CANCELLED:W,FLUSH:G,GET_CONTEXT:K,SET_CONTEXT:J}),Y=function(e,t){var n;return(n={})[r.c]=!0,n.combinator=!1,n.type=e,n.payload=t,n},$=function(e){return Y(U,Object(i.a)({},e.payload,{detached:!0}))};function X(e,t){return void 0===e&&(e="*"),Object(o.i)(e)?Y(M,{pattern:e}):Object(o.f)(e)&&Object(o.g)(t)&&Object(o.i)(t)?Y(M,{channel:e,pattern:t}):Object(o.b)(e)?Y(M,{channel:e}):void 0}var Z=function(){var e=X.apply(void 0,arguments);return e.payload.maybe=!0,e};function ee(e,t){return Object(o.n)(t)&&(t=e,e=void 0),Y(j,{channel:e,action:t})}var te=function(){var e=ee.apply(void 0,arguments);return e.payload.resolve=!0,e};function ne(e){var t=Y(L,e);return t.combinator=!0,t}function re(e){var t=Y(P,e);return t.combinator=!0,t}function ie(e,t){var n,r=null;return Object(o.d)(e)?n=e:(Object(o.a)(e)?(r=e[0],n=e[1]):(r=e.context,n=e.fn),r&&Object(o.k)(n)&&Object(o.d)(r[n])&&(n=r[n])),{context:r,fn:n,args:t}}function oe(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Y(R,ie(e,n))}function ae(e,t,n){void 0===n&&(n=[]);return Y(R,ie([e,t],n))}function se(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Y(B,ie(e,n))}function ue(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Y(U,ie(e,n))}function ce(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return $(ue.apply(void 0,[e].concat(n)))}function le(e){return Y(z,e)}function pe(e){return void 0===e&&(e=r.h),Y(V,e)}function fe(e){void 0===e&&(e=c);for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Y(q,{selector:e,args:n})}function de(e,t){return Y(H,{pattern:e,buffer:t})}function he(){return Y(W,{})}function me(e){return Y(G,e)}function ge(e){return Y(K,e)}function ye(e){return Y(J,e)}var ve=oe.bind(null,a.a)},function(e,t,n){e.exports=n(262)()},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,"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";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return d})),n.d(t,"c",(function(){return y})),n.d(t,"d",(function(){return a})),n.d(t,"e",(function(){return p})),n.d(t,"f",(function(){return g})),n.d(t,"g",(function(){return o})),n.d(t,"h",(function(){return c})),n.d(t,"i",(function(){return f})),n.d(t,"j",(function(){return l})),n.d(t,"k",(function(){return s})),n.d(t,"l",(function(){return h})),n.d(t,"m",(function(){return m})),n.d(t,"n",(function(){return i}));var r=n(18),i=function(e){return null==e},o=function(e){return null!=e},a=function(e){return"function"==typeof e},s=function(e){return"string"==typeof e},u=Array.isArray,c=function(e){return e&&!u(e)&&"object"==typeof e},l=function(e){return e&&a(e.then)},p=function(e){return e&&a(e.next)&&a(e.throw)},f=function e(t){return t&&(s(t)||m(t)||a(t)||u(t)&&t.every(e))},d=function(e){return e&&a(e.take)&&a(e.close)},h=function(e){return a(e)&&e.hasOwnProperty("toString")},m=function(e){return Boolean(e)&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype},g=function(e){return d(e)&&e[r.e]},y=function(e){return e&&e[r.c]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(n(102));var r=n(102);t.styled=r.default},function(e,t,n){"use strict";n.r(t),n.d(t,"__Schema",(function(){return p})),n.d(t,"__Directive",(function(){return f})),n.d(t,"__DirectiveLocation",(function(){return d})),n.d(t,"__Type",(function(){return h})),n.d(t,"__Field",(function(){return m})),n.d(t,"__InputValue",(function(){return g})),n.d(t,"__EnumValue",(function(){return y})),n.d(t,"TypeKind",(function(){return v})),n.d(t,"__TypeKind",(function(){return b})),n.d(t,"SchemaMetaFieldDef",(function(){return E})),n.d(t,"TypeMetaFieldDef",(function(){return x})),n.d(t,"TypeNameMetaFieldDef",(function(){return D})),n.d(t,"introspectionTypes",(function(){return C})),n.d(t,"isIntrospectionType",(function(){return w}));var r=n(14),i=n(4),o=n(17),a=n(15),s=n(9),u=n(66),c=n(13),l=n(0),p=new l.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:Object(l.e)(Object(l.d)(Object(l.e)(h))),resolve:function(e){return Object(r.a)(e.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:Object(l.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:Object(l.e)(Object(l.d)(Object(l.e)(f))),resolve:function(e){return e.getDirectives()}}}}}),f=new l.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:Object(l.e)(c.e),resolve:function(e){return e.name}},description:{type:c.e,resolve:function(e){return e.description}},isRepeatable:{type:Object(l.e)(c.a),resolve:function(e){return e.isRepeatable}},locations:{type:Object(l.e)(Object(l.d)(Object(l.e)(d))),resolve:function(e){return e.locations}},args:{type:Object(l.e)(Object(l.d)(Object(l.e)(g))),resolve:function(e){return e.args}}}}}),d=new l.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 l.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:Object(l.e)(b),resolve:function(e){return Object(l.R)(e)?v.SCALAR:Object(l.N)(e)?v.OBJECT:Object(l.H)(e)?v.INTERFACE:Object(l.T)(e)?v.UNION:Object(l.E)(e)?v.ENUM:Object(l.F)(e)?v.INPUT_OBJECT:Object(l.J)(e)?v.LIST:Object(l.L)(e)?v.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:Object(l.d)(Object(l.e)(m)),args:{includeDeprecated:{type:c.a,defaultValue:!1}},resolve:function(e,t){var n=t.includeDeprecated;if(Object(l.N)(e)||Object(l.H)(e)){var i=Object(r.a)(e.getFields());return n||(i=i.filter((function(e){return!e.isDeprecated}))),i}return null}},interfaces:{type:Object(l.d)(Object(l.e)(h)),resolve:function(e){if(Object(l.N)(e)||Object(l.H)(e))return e.getInterfaces()}},possibleTypes:{type:Object(l.d)(Object(l.e)(h)),resolve:function(e,t,n,r){var i=r.schema;if(Object(l.C)(e))return i.getPossibleTypes(e)}},enumValues:{type:Object(l.d)(Object(l.e)(y)),args:{includeDeprecated:{type:c.a,defaultValue:!1}},resolve:function(e,t){var n=t.includeDeprecated;if(Object(l.E)(e)){var r=e.getValues();return n||(r=r.filter((function(e){return!e.isDeprecated}))),r}}},inputFields:{type:Object(l.d)(Object(l.e)(g)),resolve:function(e){if(Object(l.F)(e))return Object(r.a)(e.getFields())}},ofType:{type:h,resolve:function(e){return void 0!==e.ofType?e.ofType:void 0}}}}}),m=new l.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:Object(l.e)(c.e),resolve:function(e){return e.name}},description:{type:c.e,resolve:function(e){return e.description}},args:{type:Object(l.e)(Object(l.d)(Object(l.e)(g))),resolve:function(e){return e.args}},type:{type:Object(l.e)(h),resolve:function(e){return e.type}},isDeprecated:{type:Object(l.e)(c.a),resolve:function(e){return e.isDeprecated}},deprecationReason:{type:c.e,resolve:function(e){return e.deprecationReason}}}}}),g=new l.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:Object(l.e)(c.e),resolve:function(e){return e.name}},description:{type:c.e,resolve:function(e){return e.description}},type:{type:Object(l.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(u.a)(n,t);return r?Object(a.print)(r):null}}}}}),y=new l.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:Object(l.e)(c.e),resolve:function(e){return e.name}},description:{type:c.e,resolve:function(e){return e.description}},isDeprecated:{type:Object(l.e)(c.a),resolve:function(e){return e.isDeprecated}},deprecationReason:{type:c.e,resolve:function(e){return e.deprecationReason}}}}}),v=Object.freeze({SCALAR:"SCALAR",OBJECT:"OBJECT",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",INPUT_OBJECT:"INPUT_OBJECT",LIST:"LIST",NON_NULL:"NON_NULL"}),b=new l.a({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:v.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:v.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:v.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:v.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:v.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:v.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:v.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:v.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}}),E={name:"__schema",type:Object(l.e)(p),description:"Access the current type schema of this server.",args:[],resolve:function(e,t,n,r){return r.schema},isDeprecated:!1,deprecationReason:void 0,extensions:void 0,astNode:void 0},x={name:"__type",type:h,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:Object(l.e)(c.e),defaultValue: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},D={name:"__typename",type:Object(l.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},C=Object.freeze([p,f,d,h,m,g,y,b]);function w(e){return C.some((function(t){var n=t.name;return e.name===n}))}},function(e,t,n){"use strict";n.d(t,"d",(function(){return p})),n.d(t,"b",(function(){return f})),n.d(t,"e",(function(){return h})),n.d(t,"a",(function(){return m})),n.d(t,"c",(function(){return g})),n.d(t,"g",(function(){return y})),n.d(t,"f",(function(){return v}));var r=n(71),i=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},o=n(4),a=n(31),s=n(1),u=n(15),c=n(2),l=n(0);var p=new l.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=d(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(u.print)(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 f=new l.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=d(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(u.print)(e)),e);return parseFloat(e.value)}});function d(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 l.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=d(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(u.print)(e)),e);return e.value}});var m=new l.g({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize:function(e){var t=d(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(u.print)(e)),e);return e.value}});var g=new l.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=d(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(u.print)(e),e);return e.value}}),y=Object.freeze([h,p,f,m,g]);function v(e){return y.some((function(t){var n=t.name;return e.name===n}))}},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.r(t),n.d(t,"print",(function(){return o}));var r=n(26),i=n(52);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 u(e.definitions,"\n\n")+"\n"},OperationDefinition:function(e){var t=e.operation,n=e.name,r=l("(",u(e.variableDefinitions,", "),")"),i=u(e.directives," "),o=e.selectionSet;return n||i||r||"query"!==t?u([t,u([n,r]),i,o]," "):o},VariableDefinition:function(e){var t=e.variable,n=e.type,r=e.defaultValue,i=e.directives;return t+": "+n+l(" = ",r)+l(" ",u(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;return u([l("",t,": ")+n+l("(",u(r,", "),")"),u(i," "),o]," ")},Argument:function(e){return e.name+": "+e.value},FragmentSpread:function(e){return"..."+e.name+l(" ",u(e.directives," "))},InlineFragment:function(e){var t=e.typeCondition,n=e.directives,r=e.selectionSet;return u(["...",l("on ",t),u(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(l("(",u(r,", "),")")," ")+"on ".concat(n," ").concat(l("",u(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"["+u(e.values,", ")+"]"},ObjectValue:function(e){return"{"+u(e.fields,", ")+"}"},ObjectField:function(e){return e.name+": "+e.value},Directive:function(e){return"@"+e.name+l("(",u(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 u(["schema",u(t," "),c(n)]," ")})),OperationTypeDefinition:function(e){return e.operation+": "+e.type},ScalarTypeDefinition:s((function(e){return u(["scalar",e.name,u(e.directives," ")]," ")})),ObjectTypeDefinition:s((function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return u(["type",t,l("implements ",u(n," & ")),u(r," "),c(i)]," ")})),FieldDefinition:s((function(e){var t=e.name,n=e.arguments,r=e.type,i=e.directives;return t+(d(n)?l("(\n",p(u(n,"\n")),"\n)"):l("(",u(n,", "),")"))+": "+r+l(" ",u(i," "))})),InputValueDefinition:s((function(e){var t=e.name,n=e.type,r=e.defaultValue,i=e.directives;return u([t+": "+n,l("= ",r),u(i," ")]," ")})),InterfaceTypeDefinition:s((function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return u(["interface",t,l("implements ",u(n," & ")),u(r," "),c(i)]," ")})),UnionTypeDefinition:s((function(e){var t=e.name,n=e.directives,r=e.types;return u(["union",t,u(n," "),r&&0!==r.length?"= "+u(r," | "):""]," ")})),EnumTypeDefinition:s((function(e){var t=e.name,n=e.directives,r=e.values;return u(["enum",t,u(n," "),c(r)]," ")})),EnumValueDefinition:s((function(e){return u([e.name,u(e.directives," ")]," ")})),InputObjectTypeDefinition:s((function(e){var t=e.name,n=e.directives,r=e.fields;return u(["input",t,u(n," "),c(r)]," ")})),DirectiveDefinition:s((function(e){var t=e.name,n=e.arguments,r=e.repeatable,i=e.locations;return"directive @"+t+(d(n)?l("(\n",p(u(n,"\n")),"\n)"):l("(",u(n,", "),")"))+(r?" repeatable":"")+" on "+u(i," | ")})),SchemaExtension:function(e){var t=e.directives,n=e.operationTypes;return u(["extend schema",u(t," "),c(n)]," ")},ScalarTypeExtension:function(e){return u(["extend scalar",e.name,u(e.directives," ")]," ")},ObjectTypeExtension:function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return u(["extend type",t,l("implements ",u(n," & ")),u(r," "),c(i)]," ")},InterfaceTypeExtension:function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return u(["extend interface",t,l("implements ",u(n," & ")),u(r," "),c(i)]," ")},UnionTypeExtension:function(e){var t=e.name,n=e.directives,r=e.types;return u(["extend union",t,u(n," "),r&&0!==r.length?"= "+u(r," | "):""]," ")},EnumTypeExtension:function(e){var t=e.name,n=e.directives,r=e.values;return u(["extend enum",t,u(n," "),c(r)]," ")},InputObjectTypeExtension:function(e){var t=e.name,n=e.directives,r=e.fields;return u(["extend input",t,u(n," "),c(r)]," ")}};function s(e){return function(t){return u([t.description,e(t)],"\n")}}function u(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 e&&0!==e.length?"{\n"+p(u(e,"\n"))+"\n}":""}function l(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return t?e+t+n:""}function p(e){return e&&" "+e.replace(/\n/g,"\n ")}function f(e){return-1!==e.indexOf("\n")}function d(e){return e&&e.some(f)}},function(e,t,n){e.exports=function(){"use strict";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]),u=!o&&/WebKit\//.test(e),c=u&&/Qt\/\d+\.\d+/.test(e),l=!o&&/Chrome\//.test(e),p=/Opera\//.test(e),f=/Apple Computer/.test(navigator.vendor),d=/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),g=/Android/.test(e),y=m||g||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),v=m||/Mac/.test(t),b=/\bCrOS\b/.test(e),E=/win/i.test(t),x=p&&e.match(/Version\/(\d*\.\d*)/);x&&(x=Number(x[1])),x&&x>=15&&(p=!1,u=!0);var D=v&&(c||p&&(null==x||x<12.11)),C=n||a&&s>=9;function w(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var S,k=function(e,t){var n=e.className,r=w(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 A(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function T(e,t){return A(e).appendChild(t)}function _(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.length;++o)i.appendChild(t[o]);return i}function O(e,t,n,r){var i=_(e,t,n,r);return i.setAttribute("role","presentation"),i}function F(e,t){if(3==t.nodeType&&(t=t.parentNode),e.contains)return e.contains(t);do{if(11==t.nodeType&&(t=t.host),t==e)return!0}while(t=t.parentNode)}function N(){var e;try{e=document.activeElement}catch(t){e=document.body||null}for(;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function I(e,t){var n=e.className;w(t).test(n)||(e.className+=(n?" ":"")+t)}function M(e,t){for(var n=e.split(" "),r=0;r<n.length;r++)n[r]&&!w(n[r]).test(t)&&(t+=" "+n[r]);return t}S=document.createRange?function(e,t,n,r){var i=document.createRange();return i.setEnd(r||e,n),i.setStart(e,t),i}:function(e,t,n){var r=document.body.createTextRange();try{r.moveToElementText(e.parentNode)}catch(e){return r}return r.collapse(!0),r.moveEnd("character",n),r.moveStart("character",t),r};var j=function(e){e.select()};function L(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function P(e,t,n){for(var r in t||(t={}),e)!e.hasOwnProperty(r)||!1===n&&t.hasOwnProperty(r)||(t[r]=e[r]);return t}function R(e,t,n,r,i){null==t&&-1==(t=e.search(/[^\s\u00a0]/))&&(t=e.length);for(var o=r||0,a=i||0;;){var s=e.indexOf("\t",o);if(s<0||s>=t)return a+(t-o);a+=s-o,a+=n-a%n,o=s+1}}m?j=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:a&&(j=function(e){try{e.select()}catch(e){}});var B=function(){this.id=null,this.f=null,this.time=0,this.handler=L(this.onTimeout,this)};function U(e,t){for(var n=0;n<e.length;++n)if(e[n]==t)return n;return-1}B.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},B.prototype.set=function(e,t){this.f=t;var n=+new Date+e;(!this.id||n<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=n)};var z={toString:function(){return"CodeMirror.Pass"}},V={scroll:!1},q={origin:"*mouse"},H={origin:"+move"};function W(e,t,n){for(var r=0,i=0;;){var o=e.indexOf("\t",r);-1==o&&(o=e.length);var a=o-r;if(o==e.length||i+a>=t)return r+Math.min(a,t-i);if(i+=o-r,r=o+1,(i+=n-i%n)>=t)return r}}var G=[""];function K(e){for(;G.length<=e;)G.push(J(G)+" ");return G[e]}function J(e){return e[e.length-1]}function Q(e,t){for(var n=[],r=0;r<e.length;r++)n[r]=t(e[r],r);return n}function Y(){}function $(e,t){var n;return Object.create?n=Object.create(e):(Y.prototype=e,n=new Y),t&&P(t,n),n}var X=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Z(e){return/\w/.test(e)||e>"€"&&(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:t<e.length)&&re(e.charAt(t));)t+=n;return t}function oe(e,t,n){for(var r=t>n?-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;i<e.length;++i){var o=e[i];if(o.from<t&&o.to>t)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 ue=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 u="ltr"==s?"L":"R";if(0==a.length||"ltr"==s&&!e.test(a))return!1;for(var c,l=a.length,p=[],f=0;f<l;++f)p.push((c=a.charCodeAt(f))<=247?"bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN".charAt(c):1424<=c&&c<=1524?"R":1536<=c&&c<=1785?"nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111".charAt(c-1536):1774<=c&&c<=2220?"r":8192<=c&&c<=8203?"w":8204==c?"b":"L");for(var d=0,h=u;d<l;++d){var m=p[d];"m"==m?p[d]=h:h=m}for(var g=0,y=u;g<l;++g){var v=p[g];"1"==v&&"r"==y?p[g]="n":n.test(v)&&(y=v,"r"==v&&(p[g]="R"))}for(var b=1,E=p[0];b<l-1;++b){var x=p[b];"+"==x&&"1"==E&&"1"==p[b+1]?p[b]="1":","!=x||E!=p[b+1]||"1"!=E&&"n"!=E||(p[b]=E),E=x}for(var D=0;D<l;++D){var C=p[D];if(","==C)p[D]="N";else if("%"==C){var w=void 0;for(w=D+1;w<l&&"%"==p[w];++w);for(var S=D&&"!"==p[D-1]||w<l&&"1"==p[w]?"1":"N",k=D;k<w;++k)p[k]=S;D=w-1}}for(var A=0,T=u;A<l;++A){var _=p[A];"L"==T&&"1"==_?p[A]="L":n.test(_)&&(T=_)}for(var O=0;O<l;++O)if(t.test(p[O])){var F=void 0;for(F=O+1;F<l&&t.test(p[F]);++F);for(var N="L"==(O?p[O-1]:u),I=N==("L"==(F<l?p[F]:u))?N?"L":"R":u,M=O;M<F;++M)p[M]=I;O=F-1}for(var j,L=[],P=0;P<l;)if(r.test(p[P])){var R=P;for(++P;P<l&&r.test(p[P]);++P);L.push(new o(0,R,P))}else{var B=P,U=L.length,z="rtl"==s?1:0;for(++P;P<l&&"L"!=p[P];++P);for(var V=B;V<P;)if(i.test(p[V])){B<V&&(L.splice(U,0,new o(1,B,V)),U+=z);var q=V;for(++V;V<P&&i.test(p[V]);++V);L.splice(U,0,new o(2,q,V)),U+=z,B=V}else++V;B<P&&L.splice(U,0,new o(1,B,P))}return"ltr"==s&&(1==L[0].level&&(j=a.match(/^\s+/))&&(L[0].from=j[0].length,L.unshift(new o(0,0,j[0].length))),1==J(L).level&&(j=a.match(/\s+$/))&&(J(L).to-=j[0].length,L.push(new o(0,l-j[0].length,l)))),"rtl"==s?L.reverse():L}}();function ce(e,t){var n=e.order;return null==n&&(n=e.order=ue(e.text,t)),n}var le=[],pe=function(e,t,n){if(e.addEventListener)e.addEventListener(t,n,!1);else if(e.attachEvent)e.attachEvent("on"+t,n);else{var r=e._handlers||(e._handlers={});r[t]=(r[t]||le).concat(n)}};function fe(e,t){return e._handlers&&e._handlers[t]||le}function de(e,t,n){if(e.removeEventListener)e.removeEventListener(t,n,!1);else if(e.detachEvent)e.detachEvent("on"+t,n);else{var r=e._handlers,i=r&&r[t];if(i){var o=U(i,n);o>-1&&(r[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function he(e,t){var n=fe(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i<n.length;++i)n[i].apply(null,r)}function me(e,t,n){return"string"==typeof t&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),he(e,n||t.type,e,t),xe(t)||t.codemirrorIgnore}function ge(e){var t=e._handlers&&e._handlers.cursorActivity;if(t)for(var n=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),r=0;r<t.length;++r)-1==U(n,t[r])&&n.push(t[r])}function ye(e,t){return fe(e,t).length>0}function ve(e){e.prototype.on=function(e,t){pe(this,e,t)},e.prototype.off=function(e,t){de(this,e,t)}}function be(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Ee(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function xe(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function De(e){be(e),Ee(e)}function Ce(e){return e.target||e.srcElement}function we(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),v&&e.ctrlKey&&1==t&&(t=3),t}var Se,ke,Ae=function(){if(a&&s<9)return!1;var e=_("div");return"draggable"in e||"dragDrop"in e}();function Te(e){if(null==Se){var t=_("span","​");T(e,_("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(Se=t.offsetWidth<=1&&t.offsetHeight>2&&!(a&&s<8))}var n=Se?_("span","​"):_("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function _e(e){if(null!=ke)return ke;var t=T(e,document.createTextNode("AخA")),n=S(t,0,1).getBoundingClientRect(),r=S(t,1,2).getBoundingClientRect();return A(e),!(!n||n.left==n.right)&&(ke=r.right-n.right<3)}var Oe,Fe=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/)},Ne=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)},Ie="oncopy"in(Oe=_("div"))||(Oe.setAttribute("oncopy","return;"),"function"==typeof Oe.oncopy),Me=null,je={},Le={};function Pe(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),je[e]=t}function Re(e){if("string"==typeof e&&Le.hasOwnProperty(e))e=Le[e];else if(e&&"string"==typeof e.name&&Le.hasOwnProperty(e.name)){var t=Le[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 Re("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Re("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function Be(e,t){t=Re(t);var n=je[t.name];if(!n)return Be(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 ze(e,t){P(t,Ue.hasOwnProperty(e)?Ue[e]:Ue[e]={})}function Ve(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 qe(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 He(e,t,n){return!e.startState||e.startState(t,n)}var We=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 Ge(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<o){n=i;break}t-=o}return n.lines[t]}function Ke(e,t,n){var r=[],i=t.line;return e.iter(t.line,n.line+1,(function(e){var o=e.text;i==n.line&&(o=o.slice(0,n.ch)),i==t.line&&(o=o.slice(t.ch)),r.push(o),++i})),r}function Je(e,t,n){var r=[];return e.iter(t,n,(function(e){r.push(e.text)})),r}function Qe(e,t){var n=t-e.height;if(n)for(var r=e;r;r=r.parent)r.height+=n}function Ye(e){if(null==e.parent)return null;for(var t=e.parent,n=U(t.lines,e),r=t.parent;r;t=r,r=r.parent)for(var i=0;r.children[i]!=t;++i)n+=r.children[i].chunkSize();return n+t.first}function $e(e,t){var n=e.first;e:do{for(var r=0;r<e.children.length;++r){var i=e.children[r],o=i.height;if(t<o){e=i;continue e}t-=o,n+=i.chunkSize()}return n}while(!e.lines);for(var a=0;a<e.lines.length;++a){var s=e.lines[a].height;if(t<s)break;t-=s}return n+a}function Xe(e,t){return t>=e.first&&t<e.first+e.size}function Ze(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function et(e,t,n){if(void 0===n&&(n=null),!(this instanceof et))return new et(e,t,n);this.line=e,this.ch=t,this.sticky=n}function tt(e,t){return e.line-t.line||e.ch-t.ch}function nt(e,t){return e.sticky==t.sticky&&0==tt(e,t)}function rt(e){return et(e.line,e.ch)}function it(e,t){return tt(e,t)<0?t:e}function ot(e,t){return tt(e,t)<0?e:t}function at(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function st(e,t){if(t.line<e.first)return et(e.first,0);var n=e.first+e.size-1;return t.line>n?et(n,Ge(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,Ge(e,t.line).text.length)}function ut(e,t){for(var n=[],r=0;r<t.length;r++)n[r]=st(e,t[r]);return n}We.prototype.eol=function(){return this.pos>=this.string.length},We.prototype.sol=function(){return this.pos==this.lineStart},We.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},We.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},We.prototype.eat=function(e){var t=this.string.charAt(this.pos);if("string"==typeof e?t==e:t&&(e.test?e.test(t):e(t)))return++this.pos,t},We.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},We.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},We.prototype.skipToEnd=function(){this.pos=this.string.length},We.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},We.prototype.backUp=function(e){this.pos-=e},We.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=R(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?R(this.string,this.lineStart,this.tabSize):0)},We.prototype.indentation=function(){return R(this.string,null,this.tabSize)-(this.lineStart?R(this.string,this.lineStart,this.tabSize):0)},We.prototype.match=function(e,t,n){if("string"!=typeof e){var r=this.string.slice(this.pos).match(e);return r&&r.index>0?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},We.prototype.current=function(){return this.string.slice(this.start,this.pos)},We.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},We.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},We.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var ct=function(e,t){this.state=e,this.lookAhead=t},lt=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 pt(e,t,n,r){var i=[e.state.modeGen],o={};Et(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],u=1,c=0;n.state=!0,Et(e,t.text,s.mode,n,(function(e,t){for(var n=u;c<e;){var r=i[u];r>e&&i.splice(u,1,e,i[u+1],r),u+=2,c=Math.min(e,r)}if(t)if(s.opaque)i.splice(n,u-n,e,"overlay "+t),u=n+2;else for(;n<u;n+=2){var o=i[n+1];i[n+1]=(o?o+" ":"")+"overlay "+t}}),o),n.state=a,n.baseTokens=null,n.baseTokenPos=1},u=0;u<e.state.overlays.length;++u)s(u);return{styles:i,classes:o.bgClass||o.textClass?o:null}}function ft(e,t,n){if(!t.styles||t.styles[0]!=e.state.modeGen){var r=dt(e,Ye(t)),i=t.text.length>e.options.maxHighlightLength&&Ve(e.doc.mode,r.state),o=pt(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 dt(e,t,n){var r=e.doc,i=e.display;if(!r.mode.startState)return new lt(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 u=Ge(o,s-1),c=u.stateAfter;if(c&&(!n||s+(c instanceof ct?c.lookAhead:0)<=o.modeFrontier))return s;var l=R(u.text,null,e.options.tabSize);(null==i||r>l)&&(i=s-1,r=l)}return i}(e,t,n),a=o>r.first&&Ge(r,o-1).stateAfter,s=a?lt.fromSaved(r,a,o):new lt(r,He(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&&r<i.viewTo?s.save():null,s.nextLine()})),n&&(r.modeFrontier=s.line),s}function ht(e,t,n,r){var i=e.doc.mode,o=new We(t,e.options.tabSize,n);for(o.start=o.pos=r||0,""==t&&mt(i,n.state);!o.eol();)gt(i,o,n.state),o.start=o.pos}function mt(e,t){if(e.blankLine)return e.blankLine(t);if(e.innerMode){var n=qe(e,t);return n.mode.blankLine?n.mode.blankLine(n.state):void 0}}function gt(e,t,n,r){for(var i=0;i<10;i++){r&&(r[0]=qe(e,n).mode);var o=e.token(t,n);if(t.pos>t.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}lt.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},lt.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}},lt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},lt.fromSaved=function(e,t,n){return t instanceof ct?new lt(e,Ve(e.mode,t.state),n,t.lookAhead):new lt(e,Ve(e.mode,t),n)},lt.prototype.save=function(e){var t=!1!==e?Ve(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ct(t,this.maxLookAhead):t};var yt=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function vt(e,t,n,r){var i,o,a=e.doc,s=a.mode,u=Ge(a,(t=st(a,t)).line),c=dt(e,t.line,n),l=new We(u.text,e.options.tabSize,c);for(r&&(o=[]);(r||l.pos<t.ch)&&!l.eol();)l.start=l.pos,i=gt(s,l,c.state),r&&o.push(new yt(l,i,Ve(a.mode,c.state)));return r?o:new yt(l,i,c.state)}function bt(e,t){if(e)for(;;){var n=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!n)break;e=e.slice(0,n.index)+e.slice(n.index+n[0].length);var r=n[1]?"bgClass":"textClass";null==t[r]?t[r]=n[2]:new RegExp("(?:^|\\s)"+n[2]+"(?:$|\\s)").test(t[r])||(t[r]+=" "+n[2])}return e}function Et(e,t,n,r,i,o,a){var s=n.flattenSpans;null==s&&(s=e.options.flattenSpans);var u,c=0,l=null,p=new We(t,e.options.tabSize,r),f=e.options.addModeClass&&[null];for(""==t&&bt(mt(n,r.state),o);!p.eol();){if(p.pos>e.options.maxHighlightLength?(s=!1,a&&ht(e,t,r,p.pos),p.pos=t.length,u=null):u=bt(gt(n,p,r.state,f),o),f){var d=f[0].name;d&&(u="m-"+(u?d+" "+u:d))}if(!s||l!=u){for(;c<p.start;)i(c=Math.min(p.start,c+5e3),l);l=u}p.start=p.pos}for(;c<p.pos;){var h=Math.min(p.pos,c+5e3);i(h,l),c=h}}var xt=!1,Dt=!1;function Ct(e,t,n){this.marker=e,this.from=t,this.to=n}function wt(e,t){if(e)for(var n=0;n<e.length;++n){var r=e[n];if(r.marker==t)return r}}function St(e,t){for(var n,r=0;r<e.length;++r)e[r]!=t&&(n||(n=[])).push(e[r]);return n}function kt(e,t){if(t.full)return null;var n=Xe(e,t.from.line)&&Ge(e,t.from.line).markedSpans,r=Xe(e,t.to.line)&&Ge(e,t.to.line).markedSpans;if(!n&&!r)return null;var i=t.from.ch,o=t.to.ch,a=0==tt(t.from,t.to),s=function(e,t,n){var r;if(e)for(var i=0;i<e.length;++i){var o=e[i],a=o.marker;if(null==o.from||(a.inclusiveLeft?o.from<=t:o.from<t)||o.from==t&&"bookmark"==a.type&&(!n||!o.marker.insertLeft)){var s=null==o.to||(a.inclusiveRight?o.to>=t:o.to>t);(r||(r=[])).push(new Ct(a,o.from,s?null:o.to))}}return r}(n,i,a),u=function(e,t,n){var r;if(e)for(var i=0;i<e.length;++i){var o=e[i],a=o.marker;if(null==o.to||(a.inclusiveRight?o.to>=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.from<t);(r||(r=[])).push(new Ct(a,s?null:o.from-t,null==o.to?null:o.to-t))}}return r}(r,o,a),c=1==t.text.length,l=J(t.text).length+(c?i:0);if(s)for(var p=0;p<s.length;++p){var f=s[p];if(null==f.to){var d=wt(u,f.marker);d?c&&(f.to=null==d.to?null:d.to+l):f.to=i}}if(u)for(var h=0;h<u.length;++h){var m=u[h];null!=m.to&&(m.to+=l),null==m.from?wt(s,m.marker)||(m.from=l,c&&(s||(s=[])).push(m)):(m.from+=l,c&&(s||(s=[])).push(m))}s&&(s=At(s)),u&&u!=s&&(u=At(u));var g=[s];if(!c){var y,v=t.text.length-2;if(v>0&&s)for(var b=0;b<s.length;++b)null==s[b].to&&(y||(y=[])).push(new Ct(s[b].marker,null,null));for(var E=0;E<v;++E)g.push(y);g.push(u)}return g}function At(e){for(var t=0;t<e.length;++t){var n=e[t];null!=n.from&&n.from==n.to&&!1!==n.marker.clearWhenEmpty&&e.splice(t--,1)}return e.length?e:null}function Tt(e){var t=e.markedSpans;if(t){for(var n=0;n<t.length;++n)t[n].marker.detachLine(e);e.markedSpans=null}}function _t(e,t){if(t){for(var n=0;n<t.length;++n)t[n].marker.attachLine(e);e.markedSpans=t}}function Ot(e){return e.inclusiveLeft?-1:0}function Ft(e){return e.inclusiveRight?1:0}function Nt(e,t){var n=e.lines.length-t.lines.length;if(0!=n)return n;var r=e.find(),i=t.find(),o=tt(r.from,i.from)||Ot(e)-Ot(t);if(o)return-o;var a=tt(r.to,i.to)||Ft(e)-Ft(t);return a||t.id-e.id}function It(e,t){var n,r=Dt&&e.markedSpans;if(r)for(var i=void 0,o=0;o<r.length;++o)(i=r[o]).marker.collapsed&&null==(t?i.from:i.to)&&(!n||Nt(n,i.marker)<0)&&(n=i.marker);return n}function Mt(e){return It(e,!0)}function jt(e){return It(e,!1)}function Lt(e,t){var n,r=Dt&&e.markedSpans;if(r)for(var i=0;i<r.length;++i){var o=r[i];o.marker.collapsed&&(null==o.from||o.from<t)&&(null==o.to||o.to>t)&&(!n||Nt(n,o.marker)<0)&&(n=o.marker)}return n}function Pt(e,t,n,r,i){var o=Ge(e,t),a=Dt&&o.markedSpans;if(a)for(var s=0;s<a.length;++s){var u=a[s];if(u.marker.collapsed){var c=u.marker.find(0),l=tt(c.from,n)||Ot(u.marker)-Ot(i),p=tt(c.to,r)||Ft(u.marker)-Ft(i);if(!(l>=0&&p<=0||l<=0&&p>=0)&&(l<=0&&(u.marker.inclusiveRight&&i.inclusiveLeft?tt(c.to,n)>=0:tt(c.to,n)>0)||l>=0&&(u.marker.inclusiveRight&&i.inclusiveLeft?tt(c.from,r)<=0:tt(c.from,r)<0)))return!0}}}function Rt(e){for(var t;t=Mt(e);)e=t.find(-1,!0).line;return e}function Bt(e,t){var n=Ge(e,t),r=Rt(n);return n==r?t:Ye(r)}function Ut(e,t){if(t>e.lastLine())return t;var n,r=Ge(e,t);if(!zt(e,r))return t;for(;n=jt(r);)r=n.find(1,!0).line;return Ye(r)+1}function zt(e,t){var n=Dt&&t.markedSpans;if(n)for(var r=void 0,i=0;i<n.length;++i)if((r=n[i]).marker.collapsed){if(null==r.from)return!0;if(!r.marker.widgetNode&&0==r.from&&r.marker.inclusiveLeft&&Vt(e,t,r))return!0}}function Vt(e,t,n){if(null==n.to){var r=n.marker.find(1,!0);return Vt(e,r.line,wt(r.line.markedSpans,n.marker))}if(n.marker.inclusiveRight&&n.to==t.text.length)return!0;for(var i=void 0,o=0;o<t.markedSpans.length;++o)if((i=t.markedSpans[o]).marker.collapsed&&!i.marker.widgetNode&&i.from==n.to&&(null==i.to||i.to!=n.from)&&(i.marker.inclusiveLeft||n.marker.inclusiveRight)&&Vt(e,t,i))return!0}function qt(e){for(var t=0,n=(e=Rt(e)).parent,r=0;r<n.lines.length;++r){var i=n.lines[r];if(i==e)break;t+=i.height}for(var o=n.parent;o;o=(n=o).parent)for(var a=0;a<o.children.length;++a){var s=o.children[a];if(s==n)break;t+=s.height}return t}function Ht(e){if(0==e.height)return 0;for(var t,n=e.text.length,r=e;t=Mt(r);){var i=t.find(0,!0);r=i.from.line,n+=i.from.ch-i.to.ch}for(r=e;t=jt(r);){var o=t.find(0,!0);n-=r.text.length-o.from.ch,n+=(r=o.to.line).text.length-o.to.ch}return n}function Wt(e){var t=e.display,n=e.doc;t.maxLine=Ge(n,n.first),t.maxLineLength=Ht(t.maxLine),t.maxLineChanged=!0,n.iter((function(e){var n=Ht(e);n>t.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)}))}var Gt=function(e,t,n){this.text=e,_t(this,t),this.height=n?n(this):1};function Kt(e){e.parent=null,Tt(e)}Gt.prototype.lineNo=function(){return Ye(this)},ve(Gt);var Jt={},Qt={};function Yt(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?Qt:Jt;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function $t(e,t){var n=O("span",null,null,u?"padding-right: .1px":null),r={pre:O("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,_e(e.display.measure)&&(a=ce(o,e.doc.direction))&&(r.addToken=en(r.addToken,a)),r.map=[],nn(o,r,ft(e,o,t!=e.display.externalMeasured&&Ye(o))),o.styleClasses&&(o.styleClasses.bgClass&&(r.bgClass=M(o.styleClasses.bgClass,r.bgClass||"")),o.styleClasses.textClass&&(r.textClass=M(o.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(Te(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(u){var s=r.content.lastChild;(/\bcm-tab\b/.test(s.className)||s.querySelector&&s.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return he(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=M(r.pre.className,r.textClass||"")),r}function Xt(e){var t=_("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,u){if(t){var c,l=e.splitSpaces?function(e,t){if(e.length>1&&!/ /.test(e))return e;for(var n=t,r="",i=0;i<e.length;i++){var o=e.charAt(i);" "!=o||!n||i!=e.length-1&&32!=e.charCodeAt(i+1)||(o=" "),r+=o,n=" "==o}return r}(t,e.trailingSpace):t,p=e.cm.state.specialChars,f=!1;if(p.test(t)){c=document.createDocumentFragment();for(var d=0;;){p.lastIndex=d;var h=p.exec(t),m=h?h.index-d:t.length-d;if(m){var g=document.createTextNode(l.slice(d,d+m));a&&s<9?c.appendChild(_("span",[g])):c.appendChild(g),e.map.push(e.pos,e.pos+m,g),e.col+=m,e.pos+=m}if(!h)break;d+=m+1;var y=void 0;if("\t"==h[0]){var v=e.cm.options.tabSize,b=v-e.col%v;(y=c.appendChild(_("span",K(b),"cm-tab"))).setAttribute("role","presentation"),y.setAttribute("cm-text","\t"),e.col+=b}else"\r"==h[0]||"\n"==h[0]?((y=c.appendChild(_("span","\r"==h[0]?"␍":"␤","cm-invalidchar"))).setAttribute("cm-text",h[0]),e.col+=1):((y=e.cm.options.specialCharPlaceholder(h[0])).setAttribute("cm-text",h[0]),a&&s<9?c.appendChild(_("span",[y])):c.appendChild(y),e.col+=1);e.map.push(e.pos,e.pos+1,y),e.pos++}}else e.col+=t.length,c=document.createTextNode(l),e.map.push(e.pos,e.pos+t.length,c),a&&s<9&&(f=!0),e.pos+=t.length;if(e.trailingSpace=32==l.charCodeAt(t.length-1),n||r||i||f||o||u){var E=n||"";r&&(E+=r),i&&(E+=i);var x=_("span",[c],E,o);if(u)for(var D in u)u.hasOwnProperty(D)&&"style"!=D&&"class"!=D&&x.setAttribute(D,u[D]);return e.content.appendChild(x)}e.content.appendChild(c)}}function en(e,t){return function(n,r,i,o,a,s,u){i=i?i+" cm-force-border":"cm-force-border";for(var c=n.pos,l=c+r.length;;){for(var p=void 0,f=0;f<t.length&&!((p=t[f]).to>c&&p.from<=c);f++);if(p.to>=l)return e(n,r,i,o,a,s,u);e(n,r.slice(0,p.to-c),i,o,null,s,u),o=null,r=r.slice(p.to-c),c=p.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,u,c,l,p,f,d=i.length,h=0,m=1,g="",y=0;;){if(y==h){u=c=l=s="",f=null,p=null,y=1/0;for(var v=[],b=void 0,E=0;E<r.length;++E){var x=r[E],D=x.marker;if("bookmark"==D.type&&x.from==h&&D.widgetNode)v.push(D);else if(x.from<=h&&(null==x.to||x.to>h||D.collapsed&&x.to==h&&x.from==h)){if(null!=x.to&&x.to!=h&&y>x.to&&(y=x.to,c=""),D.className&&(u+=" "+D.className),D.css&&(s=(s?s+";":"")+D.css),D.startStyle&&x.from==h&&(l+=" "+D.startStyle),D.endStyle&&x.to==y&&(b||(b=[])).push(D.endStyle,x.to),D.title&&((f||(f={})).title=D.title),D.attributes)for(var C in D.attributes)(f||(f={}))[C]=D.attributes[C];D.collapsed&&(!p||Nt(p.marker,D)<0)&&(p=x)}else x.from>h&&y>x.from&&(y=x.from)}if(b)for(var w=0;w<b.length;w+=2)b[w+1]==y&&(c+=" "+b[w]);if(!p||p.from==h)for(var S=0;S<v.length;++S)tn(t,0,v[S]);if(p&&(p.from||0)==h){if(tn(t,(null==p.to?d+1:p.to)-h,p.marker,null==p.from),null==p.to)return;p.to==h&&(p=!1)}}if(h>=d)break;for(var k=Math.min(d,y);;){if(g){var A=h+g.length;if(!p){var T=A>k?g.slice(0,k-h):g;t.addToken(t,T,a?a+u:u,l,h+T.length==y?c:"",s,f)}if(A>=k){g=g.slice(k-h),h=k;break}h=A,l=""}g=i.slice(o,o=n[m++]),a=Yt(n[m++],t.cm.options)}}else for(var _=1;_<n.length;_+=2)t.addToken(t,i.slice(o,o=n[_]),Yt(n[_+1],t.cm.options))}function rn(e,t,n){this.line=t,this.rest=function(e){for(var t,n;t=jt(e);)e=t.find(1,!0).line,(n||(n=[])).push(e);return n}(t),this.size=this.rest?Ye(J(this.rest))-n+1:1,this.node=this.text=null,this.hidden=zt(e,t)}function on(e,t,n){for(var r,i=[],o=t;o<n;o=r){var a=new rn(e.doc,Ge(e.doc,o),o);r=o+a.size,i.push(a)}return i}var an=null,sn=null;function un(e,t){var n=fe(e,t);if(n.length){var r,i=Array.prototype.slice.call(arguments,2);an?r=an.delayedCallbacks:sn?r=sn:(r=sn=[],setTimeout(cn,0));for(var o=function(e){r.push((function(){return n[e].apply(null,i)}))},a=0;a<n.length;++a)o(a)}}function cn(){var e=sn;sn=null;for(var t=0;t<e.length;++t)e[t]()}function ln(e,t,n,r){for(var i=0;i<t.changes.length;i++){var o=t.changes[i];"text"==o?dn(e,t):"gutter"==o?mn(e,t,n,r):"class"==o?hn(e,t):"widget"==o&&gn(e,t,r)}t.changes=null}function pn(e){return e.node==e.text&&(e.node=_("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),a&&s<8&&(e.node.style.zIndex=2)),e.node}function fn(e,t){var n=e.display.externalMeasured;return n&&n.line==t.line?(e.display.externalMeasured=null,t.measure=n.measure,n.built):$t(e,t)}function dn(e,t){var n=t.text.className,r=fn(e,t);t.text==t.node&&(t.node=r.pre),t.text.parentNode.replaceChild(r.pre,t.text),t.text=r.pre,r.bgClass!=t.bgClass||r.textClass!=t.textClass?(t.bgClass=r.bgClass,t.textClass=r.textClass,hn(e,t)):n&&(t.text.className=n)}function hn(e,t){!function(e,t){var n=t.bgClass?t.bgClass+" "+(t.line.bgClass||""):t.line.bgClass;if(n&&(n+=" CodeMirror-linebackground"),t.background)n?t.background.className=n:(t.background.parentNode.removeChild(t.background),t.background=null);else if(n){var r=pn(t);t.background=r.insertBefore(_("div",null,n),r.firstChild),e.display.input.setUneditable(t.background)}}(e,t),t.line.wrapClass?pn(t).className=t.line.wrapClass:t.node!=t.text&&(t.node.className="");var n=t.textClass?t.textClass+" "+(t.line.textClass||""):t.line.textClass;t.text.className=n||""}function mn(e,t,n,r){if(t.gutter&&(t.node.removeChild(t.gutter),t.gutter=null),t.gutterBackground&&(t.node.removeChild(t.gutterBackground),t.gutterBackground=null),t.line.gutterClass){var i=pn(t);t.gutterBackground=_("div",null,"CodeMirror-gutter-background "+t.line.gutterClass,"left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px; width: "+r.gutterTotalWidth+"px"),e.display.input.setUneditable(t.gutterBackground),i.insertBefore(t.gutterBackground,t.text)}var o=t.line.gutterMarkers;if(e.options.lineNumbers||o){var a=pn(t),s=t.gutter=_("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px");if(e.display.input.setUneditable(s),a.insertBefore(s,t.text),t.line.gutterClass&&(s.className+=" "+t.line.gutterClass),!e.options.lineNumbers||o&&o["CodeMirror-linenumbers"]||(t.lineNumber=s.appendChild(_("div",Ze(e.options,n),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+r.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),o)for(var u=0;u<e.display.gutterSpecs.length;++u){var c=e.display.gutterSpecs[u].className,l=o.hasOwnProperty(c)&&o[c];l&&s.appendChild(_("div",[l],"CodeMirror-gutter-elt","left: "+r.gutterLeft[c]+"px; width: "+r.gutterWidth[c]+"px"))}}}function gn(e,t,n){t.alignable&&(t.alignable=null);for(var r=w("CodeMirror-linewidget"),i=t.node.firstChild,o=void 0;i;i=o)o=i.nextSibling,r.test(i.className)&&t.node.removeChild(i);vn(e,t,n)}function yn(e,t,n,r){var i=fn(e,t);return t.text=t.node=i.pre,i.bgClass&&(t.bgClass=i.bgClass),i.textClass&&(t.textClass=i.textClass),hn(e,t),mn(e,t,n,r),vn(e,t,r),t.node}function vn(e,t,n){if(bn(e,t.line,t,n,!0),t.rest)for(var r=0;r<t.rest.length;r++)bn(e,t.rest[r],t,n,!1)}function bn(e,t,n,r,i){if(t.widgets)for(var o=pn(n),a=0,s=t.widgets;a<s.length;++a){var u=s[a],c=_("div",[u.node],"CodeMirror-linewidget"+(u.className?" "+u.className:""));u.handleMouseEvents||c.setAttribute("cm-ignore-events","true"),En(u,c,n,r),e.display.input.setUneditable(c),i&&u.above?o.insertBefore(c,n.gutter||n.text):o.appendChild(c),un(u,"redraw")}}function En(e,t,n,r){if(e.noHScroll){(n.alignable||(n.alignable=[])).push(t);var i=r.wrapperWidth;t.style.left=r.fixedPos+"px",e.coverGutter||(i-=r.gutterTotalWidth,t.style.paddingLeft=r.gutterTotalWidth+"px"),t.style.width=i+"px"}e.coverGutter&&(t.style.zIndex=5,t.style.position="relative",e.noHScroll||(t.style.marginLeft=-r.gutterTotalWidth+"px"))}function xn(e){if(null!=e.height)return e.height;var t=e.doc.cm;if(!t)return 0;if(!F(document.body,e.node)){var n="position: relative;";e.coverGutter&&(n+="margin-left: -"+t.display.gutters.offsetWidth+"px;"),e.noHScroll&&(n+="width: "+t.display.wrapper.clientWidth+"px;"),T(t.display.measure,_("div",[e.node],null,n))}return e.height=e.node.parentNode.offsetHeight}function Dn(e,t){for(var n=Ce(t);n!=e.wrapper;n=n.parentNode)if(!n||1==n.nodeType&&"true"==n.getAttribute("cm-ignore-events")||n.parentNode==e.sizer&&n!=e.mover)return!0}function Cn(e){return e.lineSpace.offsetTop}function wn(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function Sn(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=T(e.measure,_("pre","x","CodeMirror-line-like")),n=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle,r={left:parseInt(n.paddingLeft),right:parseInt(n.paddingRight)};return isNaN(r.left)||isNaN(r.right)||(e.cachedPaddingH=r),r}function kn(e){return 50-e.display.nativeBarWidth}function An(e){return e.display.scroller.clientWidth-kn(e)-e.display.barWidth}function Tn(e){return e.display.scroller.clientHeight-kn(e)-e.display.barHeight}function _n(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};for(var r=0;r<e.rest.length;r++)if(e.rest[r]==t)return{map:e.measure.maps[r],cache:e.measure.caches[r]};for(var i=0;i<e.rest.length;i++)if(Ye(e.rest[i])>n)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}function On(e,t,n,r){return In(e,Nn(e,t),n,r)}function Fn(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[lr(e,t)];var n=e.display.externalMeasured;return n&&t>=n.lineN&&t<n.lineN+n.size?n:void 0}function Nn(e,t){var n=Ye(t),r=Fn(e,n);r&&!r.text?r=null:r&&r.changes&&(ln(e,r,n,or(e)),e.curOp.forceUpdate=!0),r||(r=function(e,t){var n=Ye(t=Rt(t)),r=e.display.externalMeasured=new rn(e.doc,t,n);r.lineN=n;var i=r.built=$t(e,r);return r.text=i.pre,T(e.display.lineMeasure,i.pre),r}(e,t));var i=_n(r,t,n);return{line:t,view:r,rect:null,map:i.map,cache:i.cache,before:i.before,hasHeights:!1}}function In(e,t,n,r,i){t.before&&(n=-1);var o,u=n+(r||"");return t.cache.hasOwnProperty(u)?o=t.cache[u]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(function(e,t,n){var r=e.options.lineWrapping,i=r&&An(e);if(!t.measure.heights||r&&t.measure.width!=i){var o=t.measure.heights=[];if(r){t.measure.width=i;for(var a=t.text.firstChild.getClientRects(),s=0;s<a.length-1;s++){var u=a[s],c=a[s+1];Math.abs(u.bottom-c.bottom)>2&&o.push((u.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=Ln(t.map,n,r),u=o.node,c=o.start,l=o.end,p=o.collapse;if(3==u.nodeType){for(var f=0;f<4;f++){for(;c&&re(t.line.text.charAt(o.coverStart+c));)--c;for(;o.coverStart+l<o.coverEnd&&re(t.line.text.charAt(o.coverStart+l));)++l;if((i=a&&s<9&&0==c&&l==o.coverEnd-o.coverStart?u.parentNode.getBoundingClientRect():Pn(S(u,c,l).getClientRects(),r)).left||i.right||0==c)break;l=c,c-=1,p="right"}a&&s<11&&(i=function(e,t){if(!window.screen||null==screen.logicalXDPI||screen.logicalXDPI==screen.deviceXDPI||!function(e){if(null!=Me)return Me;var t=T(e,_("span","x")),n=t.getBoundingClientRect(),r=S(t,0,1).getBoundingClientRect();return Me=Math.abs(n.left-r.left)>1}(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 d;c>0&&(p=r="right"),i=e.options.lineWrapping&&(d=u.getClientRects()).length>1?d["right"==r?d.length-1:0]:u.getBoundingClientRect()}if(a&&s<9&&!c&&(!i||!i.left&&!i.right)){var h=u.parentNode.getClientRects()[0];i=h?{left:h.left,right:h.left+ir(e.display),top:h.top,bottom:h.bottom}:jn}for(var m=i.top-t.rect.top,g=i.bottom-t.rect.top,y=(m+g)/2,v=t.view.measure.heights,b=0;b<v.length-1&&!(y<v[b]);b++);var E=b?v[b-1]:0,x=v[b],D={left:("right"==p?i.right:i.left)-t.rect.left,right:("left"==p?i.left:i.right)-t.rect.left,top:E,bottom:x};return i.left||i.right||(D.bogus=!0),e.options.singleCursorHeightPerLine||(D.rtop=m,D.rbottom=g),D}(e,t,n,r)).bogus||(t.cache[u]=o)),{left:o.left,right:o.right,top:i?o.rtop:o.top,bottom:i?o.rbottom:o.bottom}}var Mn,jn={left:0,right:0,top:0,bottom:0};function Ln(e,t,n){for(var r,i,o,a,s,u,c=0;c<e.length;c+=3)if(s=e[c],u=e[c+1],t<s?(i=0,o=1,a="left"):t<u?o=1+(i=t-s):(c==e.length-3||t==u&&e[c+3]>t)&&(i=(o=u-s)-1,t>=u&&(a="right")),null!=i){if(r=e[c+2],s==u&&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==u-s)for(;c<e.length-3&&e[c+3]==e[c+4]&&!e[c+5].insertLeft;)r=e[(c+=3)+2],a="right";break}return{node:r,start:i,end:o,collapse:a,coverStart:s,coverEnd:u}}function Pn(e,t){var n=jn;if("left"==t)for(var r=0;r<e.length&&(n=e[r]).left==n.right;r++);else for(var i=e.length-1;i>=0&&(n=e[i]).left==n.right;i--);return n}function Rn(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t<e.rest.length;t++)e.measure.caches[t]={}}function Bn(e){e.display.externalMeasure=null,A(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)Rn(e.display.view[t])}function Un(e){Bn(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function zn(){return l&&g?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Vn(){return l&&g?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function qn(e){var t=0;if(e.widgets)for(var n=0;n<e.widgets.length;++n)e.widgets[n].above&&(t+=xn(e.widgets[n]));return t}function Hn(e,t,n,r,i){if(!i){var o=qn(t);n.top+=o,n.bottom+=o}if("line"==r)return n;r||(r="local");var a=qt(t);if("local"==r?a+=Cn(e.display):a-=e.display.viewOffset,"page"==r||"window"==r){var s=e.display.lineSpace.getBoundingClientRect();a+=s.top+("window"==r?0:Vn());var u=s.left+("window"==r?0:zn());n.left+=u,n.right+=u}return n.top+=a,n.bottom+=a,n}function Wn(e,t,n){if("div"==n)return t;var r=t.left,i=t.top;if("page"==n)r-=zn(),i-=Vn();else if("local"==n||!n){var o=e.display.sizer.getBoundingClientRect();r+=o.left,i+=o.top}var a=e.display.lineSpace.getBoundingClientRect();return{left:r-a.left,top:i-a.top}}function Gn(e,t,n,r,i){return r||(r=Ge(e.doc,t.line)),Hn(e,r,On(e,r,t.ch,i),n)}function Kn(e,t,n,r,i,o){function a(t,a){var s=In(e,i,t,a?"right":"left",o);return a?s.left=s.right:s.right=s.left,Hn(e,r,s,n)}r=r||Ge(e.doc,t.line),i||(i=Nn(e,r));var s=ce(r,e.doc.direction),u=t.ch,c=t.sticky;if(u>=r.text.length?(u=r.text.length,c="before"):u<=0&&(u=0,c="after"),!s)return a("before"==c?u-1:u,"before"==c);function l(e,t,n){return a(n?e-1:e,1==s[t].level!=n)}var p=se(s,u,c),f=ae,d=l(u,p,"before"==c);return null!=f&&(d.other=l(u,f,"before"!=c)),d}function Jn(e,t){var n=0;t=st(e.doc,t),e.options.lineWrapping||(n=ir(e.display)*t.ch);var r=Ge(e.doc,t.line),i=qt(r)+Cn(e.display);return{left:n,right:n,top:i,bottom:i+r.height}}function Qn(e,t,n,r,i){var o=et(e,t,n);return o.xRel=i,r&&(o.outside=r),o}function Yn(e,t,n){var r=e.doc;if((n+=e.display.viewOffset)<0)return Qn(r.first,0,null,-1,-1);var i=$e(r,n),o=r.first+r.size-1;if(i>o)return Qn(r.first+r.size-1,Ge(r,o).text.length,null,1,1);t<0&&(t=0);for(var a=Ge(r,i);;){var s=er(e,a,i,t,n),u=Lt(a,s.ch+(s.xRel>0||s.outside>0?1:0));if(!u)return s;var c=u.find(1);if(c.line==i)return c;a=Ge(r,i=c.line)}}function $n(e,t,n,r){r-=qn(t);var i=t.text.length,o=oe((function(t){return In(e,n,t-1).bottom<=r}),i,0);return{begin:o,end:i=oe((function(t){return In(e,n,t).top>r}),o,i)}}function Xn(e,t,n,r){return n||(n=Nn(e,t)),$n(e,t,n,Hn(e,t,In(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-=qt(t);var o=Nn(e,t),a=qn(t),s=0,u=t.text.length,c=!0,l=ce(t,e.doc.direction);if(l){var p=(e.options.lineWrapping?nr:tr)(e,t,n,o,l,r,i);s=(c=1!=p.level)?p.from:p.to-1,u=c?p.to:p.from-1}var f,d,h=null,m=null,g=oe((function(t){var n=In(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,u),y=!1;if(m){var v=r-m.left<m.right-r,b=v==c;g=h+(b?0:1),d=b?"after":"before",f=v?m.left:m.right}else{c||g!=u&&g!=s||g++,d=0==g?"after":g==t.text.length?"before":In(e,o,g-(c?1:0)).bottom+a<=i==c?"after":"before";var E=Kn(e,et(n,g,d),"line",t,o);f=E.left,y=i<E.top?-1:i>=E.bottom?1:0}return Qn(n,g=ie(t.text,g,1),d,y,r-f)}function tr(e,t,n,r,i,o,a){var s=oe((function(s){var u=i[s],c=1!=u.level;return Zn(Kn(e,et(n,c?u.to:u.from,c?"before":"after"),"line",t,r),o,a,!0)}),0,i.length-1),u=i[s];if(s>0){var c=1!=u.level,l=Kn(e,et(n,c?u.from:u.to,c?"after":"before"),"line",t,r);Zn(l,o,a,!0)&&l.top>a&&(u=i[s-1])}return u}function nr(e,t,n,r,i,o,a){var s=$n(e,t,r,a),u=s.begin,c=s.end;/\s/.test(t.text.charAt(c-1))&&c--;for(var l=null,p=null,f=0;f<i.length;f++){var d=i[f];if(!(d.from>=c||d.to<=u)){var h=In(e,r,1!=d.level?Math.min(c,d.to)-1:Math.max(u,d.from)).right,m=h<o?o-h+1e9:h-o;(!l||p>m)&&(l=d,p=m)}}return l||(l=i[i.length-1]),l.from<u&&(l={from:u,to:l.to,level:l.level}),l.to>c&&(l={from:l.from,to:c,level:l.level}),l}function rr(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==Mn){Mn=_("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)Mn.appendChild(document.createTextNode("x")),Mn.appendChild(_("br"));Mn.appendChild(document.createTextNode("x"))}T(e.measure,Mn);var n=Mn.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),A(e.measure),n||1}function ir(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=_("span","xxxxxxxxxx"),n=_("pre",[t],"CodeMirror-line-like");T(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(zt(e.doc,i))return 0;var o=0;if(i.widgets)for(var a=0;a<i.widgets.length;a++)i.widgets[a].height&&(o+=i.widgets[a].height);return n?o+(Math.ceil(i.text.length/r)||1)*t:o+t}}function ur(e){var t=e.doc,n=sr(e);t.iter((function(e){var t=n(e);t!=e.height&&Qe(e,t)}))}function cr(e,t,n,r){var i=e.display;if(!n&&"true"==Ce(t).getAttribute("cm-not-content"))return null;var o,a,s=i.lineSpace.getBoundingClientRect();try{o=t.clientX-s.left,a=t.clientY-s.top}catch(e){return null}var u,c=Yn(e,o,a);if(r&&c.xRel>0&&(u=Ge(e.doc,c.line).text).length==c.ch){var l=R(u,u.length,e.options.tabSize)-u.length;c=et(c.line,Math.max(0,Math.round((o-Sn(e.display).left)/ir(e.display))-l))}return c}function lr(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;r<n.length;r++)if((t-=n[r].size)<0)return r}function pr(e,t,n,r){null==t&&(t=e.doc.first),null==n&&(n=e.doc.first+e.doc.size),r||(r=0);var i=e.display;if(r&&n<i.viewTo&&(null==i.updateLineNumbers||i.updateLineNumbers>t)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)Dt&&Bt(e.doc,t)<i.viewTo&&dr(e);else if(n<=i.viewFrom)Dt&&Ut(e.doc,n+r)>i.viewFrom?dr(e):(i.viewFrom+=r,i.viewTo+=r);else if(t<=i.viewFrom&&n>=i.viewTo)dr(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):dr(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):dr(e)}else{var s=hr(e,t,t,-1),u=hr(e,n,n+r,1);s&&u?(i.view=i.view.slice(0,s.index).concat(on(e,s.lineN,u.lineN)).concat(i.view.slice(u.index)),i.viewTo+=r):dr(e)}var c=i.externalMeasured;c&&(n<c.lineN?c.lineN+=r:t<c.lineN+c.size&&(i.externalMeasured=null))}function fr(e,t,n){e.curOp.viewChanged=!0;var r=e.display,i=e.display.externalMeasured;if(i&&t>=i.lineN&&t<i.lineN+i.size&&(r.externalMeasured=null),!(t<r.viewFrom||t>=r.viewTo)){var o=r.view[lr(e,t)];if(null!=o.node){var a=o.changes||(o.changes=[]);-1==U(a,n)&&a.push(n)}}}function dr(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=lr(e,t),a=e.display.view;if(!Dt||n==e.doc.first+e.doc.size)return{index:o,lineN:n};for(var s=e.display.viewFrom,u=0;u<o;u++)s+=a[u].size;if(s!=t){if(r>0){if(o==a.length-1)return null;i=s+a[o].size-t,o++}else i=s-t;t+=i,n+=i}for(;Bt(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<t.length;r++){var i=t[r];i.hidden||i.node&&!i.changes||++n}return n}function gr(e){e.display.input.showSelection(e.display.input.prepareSelection())}function yr(e,t){void 0===t&&(t=!0);for(var n=e.doc,r={},i=r.cursors=document.createDocumentFragment(),o=r.selection=document.createDocumentFragment(),a=0;a<n.sel.ranges.length;a++)if(t||a!=n.sel.primIndex){var s=n.sel.ranges[a];if(!(s.from().line>=e.display.viewTo||s.to().line<e.display.viewFrom)){var u=s.empty();(u||e.options.showCursorWhenSelecting)&&vr(e,s.head,i),u||Er(e,s,o)}}return r}function vr(e,t,n){var r=Kn(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),i=n.appendChild(_("div"," ","CodeMirror-cursor"));if(i.style.left=r.left+"px",i.style.top=r.top+"px",i.style.height=Math.max(0,r.bottom-r.top)*e.options.cursorHeight+"px",r.other){var o=n.appendChild(_("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));o.style.display="",o.style.left=r.other.left+"px",o.style.top=r.other.top+"px",o.style.height=.85*(r.other.bottom-r.other.top)+"px"}}function br(e,t){return e.top-t.top||e.left-t.left}function Er(e,t,n){var r=e.display,i=e.doc,o=document.createDocumentFragment(),a=Sn(e.display),s=a.left,u=Math.max(r.sizerWidth,An(e)-r.sizer.offsetLeft)-a.right,c="ltr"==i.direction;function l(e,t,n,r){t<0&&(t=0),t=Math.round(t),r=Math.round(r),o.appendChild(_("div",null,"CodeMirror-selected","position: absolute; left: "+e+"px;\n top: "+t+"px; width: "+(null==n?u-e:n)+"px;\n height: "+(r-t)+"px"))}function p(t,n,r){var o,a,p=Ge(i,t),f=p.text.length;function d(n,r){return Gn(e,et(t,n),"div",p,r)}function h(t,n,r){var i=Xn(e,p,null,t),o="ltr"==n==("after"==r)?"left":"right";return d("after"==r?i.begin:i.end-(/\s/.test(p.text.charAt(i.end-1))?2:1),o)[o]}var m=ce(p,i.direction);return function(e,t,n,r){if(!e)return r(t,n,"ltr",0);for(var i=!1,o=0;o<e.length;++o){var a=e[o];(a.from<n&&a.to>t||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?f:r,(function(e,t,i,p){var g="ltr"==i,y=d(e,g?"left":"right"),v=d(t-1,g?"right":"left"),b=null==n&&0==e,E=null==r&&t==f,x=0==p,D=!m||p==m.length-1;if(v.top-y.top<=3){var C=(c?E:b)&&D,w=(c?b:E)&&x?s:(g?y:v).left,S=C?u:(g?v:y).right;l(w,y.top,S-w,y.bottom)}else{var k,A,T,_;g?(k=c&&b&&x?s:y.left,A=c?u:h(e,i,"before"),T=c?s:h(t,i,"after"),_=c&&E&&D?u:v.right):(k=c?h(e,i,"before"):s,A=!c&&b&&x?u:y.right,T=!c&&E&&D?s:v.left,_=c?h(t,i,"after"):u),l(k,y.top,A-k,y.bottom),y.bottom<v.top&&l(s,y.bottom,null,v.top),l(T,v.top,_-T,v.bottom)}(!o||br(y,o)<0)&&(o=y),br(v,o)<0&&(o=v),(!a||br(y,a)<0)&&(a=y),br(v,a)<0&&(a=v)})),{start:o,end:a}}var f=t.from(),d=t.to();if(f.line==d.line)p(f.line,f.ch,d.ch);else{var h=Ge(i,f.line),m=Ge(i,d.line),g=Rt(h)==Rt(m),y=p(f.line,f.ch,g?h.text.length+1:null).end,v=p(d.line,g?0:null,d.ch).start;g&&(y.top<v.top-2?(l(y.right,y.top,null,y.bottom),l(s,v.top,v.left,v.bottom)):l(y.right,y.top,v.left-y.right,y.bottom)),y.bottom<v.top&&l(s,y.bottom,null,v.top)}n.appendChild(o)}function xr(e){if(e.state.focused){var t=e.display;clearInterval(t.blinker);var n=!0;t.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?t.blinker=setInterval((function(){e.hasFocus()||Sr(e),t.cursorDiv.style.visibility=(n=!n)?"":"hidden"}),e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function Dr(e){e.state.focused||(e.display.input.focus(),wr(e))}function Cr(e){e.state.delayingBlurEvent=!0,setTimeout((function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,Sr(e))}),100)}function wr(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,I(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),u&&setTimeout((function(){return e.display.input.reset(!0)}),20)),e.display.input.receivedFocus()),xr(e))}function Sr(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<t.view.length;r++){var i=t.view[r],o=e.options.lineWrapping,u=void 0,c=0;if(!i.hidden){if(a&&s<8){var l=i.node.offsetTop+i.node.offsetHeight;u=l-n,n=l}else{var p=i.node.getBoundingClientRect();u=p.bottom-p.top,!o&&i.text.firstChild&&(c=i.text.firstChild.getBoundingClientRect().right-p.left-1)}var f=i.line.height-u;if((f>.005||f<-.005)&&(Qe(i.line,u),Ar(i.line),i.rest))for(var d=0;d<i.rest.length;d++)Ar(i.rest[d]);if(c>e.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 Ar(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t){var n=e.widgets[t],r=n.node.parentNode;r&&(n.height=r.offsetHeight)}}function Tr(e,t,n){var r=n&&null!=n.top?Math.max(0,n.top):e.scroller.scrollTop;r=Math.floor(r-Cn(e));var i=n&&null!=n.bottom?n.bottom:r+e.wrapper.clientHeight,o=$e(t,r),a=$e(t,i);if(n&&n.ensure){var s=n.ensure.from.line,u=n.ensure.to.line;s<o?(o=s,a=$e(t,qt(Ge(t,s))+e.wrapper.clientHeight)):Math.min(u,t.lastLine())>=a&&(o=$e(t,qt(Ge(t,u))-e.wrapper.clientHeight),a=u)}return{from:o,to:Math.max(a,o+1)}}function _r(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=Tn(e),a={};t.bottom-t.top>o&&(t.bottom=t.top+o);var s=e.doc.height+wn(n),u=t.top<r,c=t.bottom>s-r;if(t.top<i)a.scrollTop=u?0:t.top;else if(t.bottom>i+o){var l=Math.min(t.top,(c?s:t.bottom)-o);l!=i&&(a.scrollTop=l)}var p=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft,f=An(e)-(e.options.fixedGutter?n.gutters.offsetWidth:0),d=t.right-t.left>f;return d&&(t.right=t.left+f),t.left<10?a.scrollLeft=0:t.left<p?a.scrollLeft=Math.max(0,t.left-(d?0:10)):t.right>f+p-3&&(a.scrollLeft=t.right+(d?0:10)-f),a}function Or(e,t){null!=t&&(Ir(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function Fr(e){Ir(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function Nr(e,t,n){null==t&&null==n||Ir(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function Ir(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,Mr(e,Jn(e,t.from),Jn(e,t.to),t.margin))}function Mr(e,t,n,r){var i=_r(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});Nr(e,i.scrollLeft,i.scrollTop)}function jr(e,t){Math.abs(e.doc.scrollTop-t)<2||(n||ui(e,{top:t}),Lr(e,t,!0),n&&ui(e),ri(e,100))}function Lr(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 Pr(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,pi(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function Rr(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+wn(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 Br=function(e,t,n){this.cm=n;var r=this.vert=_("div",[_("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=_("div",[_("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=i.tabIndex=-1,e(r),e(i),pe(r,"scroll",(function(){r.clientHeight&&t(r.scrollTop,"vertical")})),pe(i,"scroll",(function(){i.clientWidth&&t(i.scrollLeft,"horizontal")})),this.checkedZeroWidth=!1,a&&s<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Br.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}},Br.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Br.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Br.prototype.zeroWidthHack=function(){var e=v&&!d?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new B,this.disableVert=new B},Br.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)}))},Br.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var Ur=function(){};function zr(e,t){t||(t=Rr(e));var n=e.display.barWidth,r=e.display.barHeight;Vr(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),Vr(e,Rr(e)),n=e.display.barWidth,r=e.display.barHeight}function Vr(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 qr={native:Br,null:Ur};function Hr(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&k(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new qr[e.options.scrollbarStyle]((function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),pe(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?Pr(e,t):jr(e,t)}),e),e.display.scrollbars.addClass&&I(e.display.wrapper,e.display.scrollbars.addClass)}var Wr=0;function Gr(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:++Wr},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<t.length;n++)t[n].call(null);for(var r=0;r<e.ops.length;r++){var i=e.ops[r];if(i.cursorActivityHandlers)for(;i.cursorActivityCalled<i.cursorActivityHandlers.length;)i.cursorActivityHandlers[i.cursorActivityCalled++].call(null,i.cm)}}while(n<t.length)}(n)}finally{an=null,t(n)}}(t,(function(e){for(var t=0;t<e.ops.length;t++)e.ops[t].cm.curOp=null;!function(e){for(var t=e.ops,n=0;n<t.length;n++)Jr(t[n]);for(var r=0;r<t.length;r++)Qr(t[r]);for(var i=0;i<t.length;i++)Yr(t[i]);for(var o=0;o<t.length;o++)$r(t[o]);for(var a=0;a<t.length;a++)Xr(t[a])}(e)}))}function Jr(e){var t=e.cm,n=t.display;!function(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=kn(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=kn(e)+"px",t.scrollbarsClipped=!0)}(t),e.updateMaxLine&&Wt(t),e.mustUpdate=e.viewChanged||e.forceUpdate||null!=e.scrollTop||e.scrollToPos&&(e.scrollToPos.from.line<n.viewFrom||e.scrollToPos.to.line>=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 Qr(e){e.updatedDisplay=e.mustUpdate&&ai(e.cm,e.update)}function Yr(e){var t=e.cm,n=t.display;e.updatedDisplay&&kr(t),e.barMeasure=Rr(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=On(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-An(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<t.doc.scrollLeft&&Pr(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var n=e.focus&&e.focus==N();e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,n),(e.updatedDisplay||e.startHeight!=t.doc.height)&&zr(t,e.barMeasure),e.updatedDisplay&&li(t,e.barMeasure),e.selectionChanged&&xr(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),n&&Dr(e.cm)}function Xr(e){var t=e.cm,n=t.display,r=t.doc;e.updatedDisplay&&si(t,e.update),null==n.wheelStartX||null==e.scrollTop&&null==e.scrollLeft&&!e.scrollToPos||(n.wheelStartX=n.wheelStartY=null),null!=e.scrollTop&&Lr(t,e.scrollTop,e.forceScroll),null!=e.scrollLeft&&Pr(t,e.scrollLeft,!0,!0),e.scrollToPos&&function(e,t){if(!me(e,"scrollCursorIntoView")){var n=e.display,r=n.sizer.getBoundingClientRect(),i=null;if(t.top+r.top<0?i=!0:t.bottom+r.top>(window.innerHeight||document.documentElement.clientHeight)&&(i=!1),null!=i&&!h){var o=_("div","​",null,"position: absolute;\n top: "+(t.top-n.viewOffset-Cn(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),u=n&&n!=t?Kn(e,n):s,c=_r(e,i={left:Math.min(s.left,u.left),top:Math.min(s.top,u.top)-r,right:Math.max(s.left,u.left),bottom:Math.max(s.bottom,u.bottom)+r}),l=e.doc.scrollTop,p=e.doc.scrollLeft;if(null!=c.scrollTop&&(jr(e,c.scrollTop),Math.abs(e.doc.scrollTop-l)>1&&(a=!0)),null!=c.scrollLeft&&(Pr(e,c.scrollLeft),Math.abs(e.doc.scrollLeft-p)>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<i.length;++a)i[a].lines.length||he(i[a],"hide");if(o)for(var s=0;s<o.length;++s)o[s].lines.length&&he(o[s],"unhide");n.wrapper.offsetHeight&&(r.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&he(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function Zr(e,t){if(e.curOp)return t();Gr(e);try{return t()}finally{Kr(e)}}function ei(e,t){return function(){if(e.curOp)return t.apply(e,arguments);Gr(e);try{return t.apply(e,arguments)}finally{Kr(e)}}}function ti(e){return function(){if(this.curOp)return e.apply(this,arguments);Gr(this);try{return e.apply(this,arguments)}finally{Kr(this)}}}function ni(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);Gr(t);try{return e.apply(this,arguments)}finally{Kr(t)}}}function ri(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,L(ii,e))}function ii(e){var t=e.doc;if(!(t.highlightFrontier>=e.display.viewTo)){var n=+new Date+e.options.workTime,r=dt(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?Ve(t.mode,r.state):null,u=pt(e,o,r,!0);s&&(r.state=s),o.styles=u.styles;var c=o.styleClasses,l=u.classes;l?o.styleClasses=l:c&&(o.styleClasses=null);for(var p=!a||a.length!=o.styles.length||c!=l&&(!c||!l||c.bgClass!=l.bgClass||c.textClass!=l.textClass),f=0;!p&&f<a.length;++f)p=a[f]!=o.styles[f];p&&i.push(r.line),o.stateAfter=r.save(),r.nextLine()}else o.text.length<=e.options.maxHighlightLength&&ht(e,o.text,r),o.stateAfter=r.line%5==0?r.save():null,r.nextLine();if(+new Date>n)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<i.length;t++)fr(e,i[t],"text")}))}}var oi=function(e,t,n){var r=e.display;this.viewport=t,this.visible=Tr(r,e.doc,t),this.editorIsHidden=!r.wrapper.offsetWidth,this.wrapperHeight=r.wrapper.clientHeight,this.wrapperWidth=r.wrapper.clientWidth,this.oldDisplayWidth=An(e),this.force=n,this.dims=or(e),this.events=[]};function ai(e,t){var n=e.display,r=e.doc;if(t.editorIsHidden)return dr(e),!1;if(!t.force&&t.visible.from>=n.viewFrom&&t.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==mr(e))return!1;fi(e)&&(dr(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.viewFrom<o&&o-n.viewFrom<20&&(o=Math.max(r.first,n.viewFrom)),n.viewTo>a&&n.viewTo-a<20&&(a=Math.min(i,n.viewTo)),Dt&&(o=Bt(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.viewFrom<t&&(r.view=r.view.slice(lr(e,t))),r.viewFrom=t,r.viewTo<n?r.view=r.view.concat(on(e,r.viewTo,n)):r.viewTo>n&&(r.view=r.view.slice(0,lr(e,n)))),r.viewTo=n}(e,o,a),n.viewOffset=qt(Ge(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 l=function(e){if(e.hasFocus())return null;var t=N();if(!t||!F(e.display.lineDiv,t))return null;var n={activeElt:t};if(window.getSelection){var r=window.getSelection();r.anchorNode&&r.extend&&F(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 u&&v&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),n}for(var c=r.view,l=r.viewFrom,p=0;p<c.length;p++){var f=c[p];if(f.hidden);else if(f.node&&f.node.parentNode==o){for(;a!=f.node;)a=s(a);var d=i&&null!=t&&t<=l&&f.lineNumber;f.changes&&(U(f.changes,"gutter")>-1&&(d=!1),ln(e,f,l,n)),d&&(A(f.lineNumber),f.lineNumber.appendChild(document.createTextNode(Ze(e.options,l)))),a=f.node.nextSibling}else{var h=yn(e,f,l,n);o.insertBefore(h,a)}l+=f.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!=N()&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&F(document.body,e.anchorNode)&&F(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)}}(l),A(n.cursorDiv),A(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!=An(e))r&&(t.visible=Tr(e.display,e.doc,n));else if(n&&null!=n.top&&(n={top:Math.min(e.doc.height+wn(e.display)-Tn(e),n.top)}),t.visible=Tr(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=Rr(e);gr(e),zr(e,i),li(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 ui(e,t){var n=new oi(e,t);if(ai(e,n)){kr(e),si(e,n);var r=Rr(e);gr(e),zr(e,r),li(e,r),n.finish()}}function ci(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px"}function li(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 pi(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;a<n.length;a++)if(!n[a].hidden){e.options.fixedGutter&&(n[a].gutter&&(n[a].gutter.style.left=o),n[a].gutterBackground&&(n[a].gutterBackground.style.left=o));var s=n[a].alignable;if(s)for(var u=0;u<s.length;u++)s[u].style.left=o}e.options.fixedGutter&&(t.gutters.style.left=r+i+"px")}}function fi(e){if(!e.options.lineNumbers)return!1;var t=e.doc,n=Ze(e.options,t.first+t.size-1),r=e.display;if(n.length!=r.lineNumChars){var i=r.measure.appendChild(_("div",[_("div",n)],"CodeMirror-linenumber CodeMirror-gutter-elt")),o=i.firstChild.offsetWidth,a=i.offsetWidth-o;return r.lineGutter.style.width="",r.lineNumInnerWidth=Math.max(o,r.lineGutter.offsetWidth-a)+1,r.lineNumWidth=r.lineNumInnerWidth+a,r.lineNumChars=r.lineNumInnerWidth?n.length:-1,r.lineGutter.style.width=r.lineNumWidth+"px",ci(e.display),!0}return!1}function di(e,t){for(var n=[],r=!1,i=0;i<e.length;i++){var o=e[i],a=null;if("string"!=typeof o&&(a=o.style,o=o.className),"CodeMirror-linenumbers"==o){if(!t)continue;r=!0}n.push({className:o,style:a})}return t&&!r&&n.push({className:"CodeMirror-linenumbers",style:null}),n}function hi(e){var t=e.gutters,n=e.gutterSpecs;A(t),e.lineGutter=null;for(var r=0;r<n.length;++r){var i=n[r],o=i.className,a=i.style,s=t.appendChild(_("div",null,"CodeMirror-gutter "+o));a&&(s.style.cssText=a),"CodeMirror-linenumbers"==o&&(e.lineGutter=s,s.style.width=(e.lineNumWidth||1)+"px")}t.style.display=n.length?"":"none",ci(e)}function mi(e){hi(e.display),pr(e),pi(e)}function gi(e,t,r,i){var o=this;this.input=r,o.scrollbarFiller=_("div",null,"CodeMirror-scrollbar-filler"),o.scrollbarFiller.setAttribute("cm-not-content","true"),o.gutterFiller=_("div",null,"CodeMirror-gutter-filler"),o.gutterFiller.setAttribute("cm-not-content","true"),o.lineDiv=O("div",null,"CodeMirror-code"),o.selectionDiv=_("div",null,null,"position: relative; z-index: 1"),o.cursorDiv=_("div",null,"CodeMirror-cursors"),o.measure=_("div",null,"CodeMirror-measure"),o.lineMeasure=_("div",null,"CodeMirror-measure"),o.lineSpace=O("div",[o.measure,o.lineMeasure,o.selectionDiv,o.cursorDiv,o.lineDiv],null,"position: relative; outline: none");var c=O("div",[o.lineSpace],"CodeMirror-lines");o.mover=_("div",[c],null,"position: relative"),o.sizer=_("div",[o.mover],"CodeMirror-sizer"),o.sizerWidth=null,o.heightForcer=_("div",null,null,"position: absolute; height: 50px; width: 1px;"),o.gutters=_("div",null,"CodeMirror-gutters"),o.lineGutter=null,o.scroller=_("div",[o.sizer,o.heightForcer,o.gutters],"CodeMirror-scroll"),o.scroller.setAttribute("tabIndex","-1"),o.wrapper=_("div",[o.scrollbarFiller,o.gutterFiller,o.scroller],"CodeMirror"),a&&s<8&&(o.gutters.style.zIndex=-1,o.scroller.style.paddingRight=0),u||n&&y||(o.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(o.wrapper):e(o.wrapper)),o.viewFrom=o.viewTo=t.first,o.reportedViewFrom=o.reportedViewTo=t.first,o.view=[],o.renderedView=null,o.externalMeasured=null,o.viewOffset=0,o.lastWrapHeight=o.lastWrapWidth=0,o.updateLineNumbers=null,o.nativeBarWidth=o.barHeight=o.barWidth=0,o.scrollbarsClipped=!1,o.lineNumWidth=o.lineNumInnerWidth=o.lineNumChars=null,o.alignWidgets=!1,o.cachedCharWidth=o.cachedTextHeight=o.cachedPaddingH=null,o.maxLine=null,o.maxLineLength=0,o.maxLineChanged=!1,o.wheelDX=o.wheelDY=o.wheelStartX=o.wheelStartY=null,o.shift=!1,o.selForContextMenu=null,o.activeTouch=null,o.gutterSpecs=di(i.gutters,i.lineNumbers),hi(o),r.init(o)}oi.prototype.signal=function(e,t){ye(e,t)&&this.events.push(arguments)},oi.prototype.finish=function(){for(var e=0;e<this.events.length;e++)he.apply(null,this.events[e])};var yi=0,vi=null;function bi(e){var t=e.wheelDeltaX,n=e.wheelDeltaY;return null==t&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),null==n&&e.detail&&e.axis==e.VERTICAL_AXIS?n=e.detail:null==n&&(n=e.wheelDelta),{x:t,y:n}}function Ei(e){var t=bi(e);return t.x*=vi,t.y*=vi,t}function xi(e,t){var r=bi(t),i=r.x,o=r.y,a=e.display,s=a.scroller,c=s.scrollWidth>s.clientWidth,l=s.scrollHeight>s.clientHeight;if(i&&c||o&&l){if(o&&v&&u)e:for(var f=t.target,d=a.view;f!=s;f=f.parentNode)for(var h=0;h<d.length;h++)if(d[h].node==f){e.display.currentWheelTarget=f;break e}if(i&&!n&&!p&&null!=vi)return o&&l&&jr(e,Math.max(0,s.scrollTop+o*vi)),Pr(e,Math.max(0,s.scrollLeft+i*vi)),(!o||o&&l)&&be(t),void(a.wheelStartX=null);if(o&&null!=vi){var m=o*vi,g=e.doc.scrollTop,y=g+a.wrapper.clientHeight;m<0?g=Math.max(0,g+m-50):y=Math.min(e.doc.height,y+m+50),ui(e,{top:g,bottom:y})}yi<20&&(null==a.wheelStartX?(a.wheelStartX=s.scrollLeft,a.wheelStartY=s.scrollTop,a.wheelDX=i,a.wheelDY=o,setTimeout((function(){if(null!=a.wheelStartX){var e=s.scrollLeft-a.wheelStartX,t=s.scrollTop-a.wheelStartY,n=t&&a.wheelDY&&t/a.wheelDY||e&&a.wheelDX&&e/a.wheelDX;a.wheelStartX=a.wheelStartY=null,n&&(vi=(vi*yi+n)/(yi+1),++yi)}}),200)):(a.wheelDX+=i,a.wheelDY+=o))}}a?vi=-.53:n?vi=15:l?vi=-.7:f&&(vi=-1/3);var Di=function(e,t){this.ranges=e,this.primIndex=t};Di.prototype.primary=function(){return this.ranges[this.primIndex]},Di.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var t=0;t<this.ranges.length;t++){var n=this.ranges[t],r=e.ranges[t];if(!nt(n.anchor,r.anchor)||!nt(n.head,r.head))return!1}return!0},Di.prototype.deepCopy=function(){for(var e=[],t=0;t<this.ranges.length;t++)e[t]=new Ci(rt(this.ranges[t].anchor),rt(this.ranges[t].head));return new Di(e,this.primIndex)},Di.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},Di.prototype.contains=function(e,t){t||(t=e);for(var n=0;n<this.ranges.length;n++){var r=this.ranges[n];if(tt(t,r.from())>=0&&tt(e,r.to())<=0)return n}return-1};var Ci=function(e,t){this.anchor=e,this.head=t};function wi(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;o<t.length;o++){var a=t[o],s=t[o-1],u=tt(s.to(),a.from());if(r&&!a.empty()?u>0:u>=0){var c=ot(s.from(),a.from()),l=it(s.to(),a.to()),p=s.empty()?a.from()==a.head:s.from()==s.head;o<=n&&--n,t.splice(--o,2,new Ci(p?l:c,p?c:l))}}return new Di(t,n)}function Si(e,t){return new Di([new Ci(e,t||e)],0)}function ki(e){return e.text?et(e.from.line+e.text.length-1,J(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function Ai(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 Ti(e,t){for(var n=[],r=0;r<e.sel.ranges.length;r++){var i=e.sel.ranges[r];n.push(new Ci(Ai(i.anchor,t),Ai(i.head,t)))}return wi(e.cm,n,e.sel.primIndex)}function _i(e,t,n){return e.line==t.line?et(n.line,e.ch-t.ch+n.ch):et(n.line+(e.line-t.line),e.ch)}function Oi(e){e.doc.mode=Be(e.options,e.doc.modeOption),Fi(e)}function Fi(e){e.doc.iter((function(e){e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null)})),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,ri(e,100),e.state.modeGen++,e.curOp&&pr(e)}function Ni(e,t){return 0==t.from.ch&&0==t.to.ch&&""==J(t.text)&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function Ii(e,t,n,r){function i(e){return n?n[e]:null}function o(e,n,i){!function(e,t,n,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),null!=e.order&&(e.order=null),Tt(e),_t(e,n);var i=r?r(e):1;i!=e.height&&Qe(e,i)}(e,n,i,r),un(e,"change",e,t)}function a(e,t){for(var n=[],o=e;o<t;++o)n.push(new Gt(c[o],i(o),r));return n}var s=t.from,u=t.to,c=t.text,l=Ge(e,s.line),p=Ge(e,u.line),f=J(c),d=i(c.length-1),h=u.line-s.line;if(t.full)e.insert(0,a(0,c.length)),e.remove(c.length,e.size-c.length);else if(Ni(e,t)){var m=a(0,c.length-1);o(p,p.text,d),h&&e.remove(s.line,h),m.length&&e.insert(s.line,m)}else if(l==p)if(1==c.length)o(l,l.text.slice(0,s.ch)+f+l.text.slice(u.ch),d);else{var g=a(1,c.length-1);g.push(new Gt(f+l.text.slice(u.ch),d,r)),o(l,l.text.slice(0,s.ch)+c[0],i(0)),e.insert(s.line+1,g)}else if(1==c.length)o(l,l.text.slice(0,s.ch)+c[0]+p.text.slice(u.ch),i(0)),e.remove(s.line+1,h);else{o(l,l.text.slice(0,s.ch)+c[0],i(0)),o(p,f+p.text.slice(u.ch),d);var y=a(1,c.length-1);h>1&&e.remove(s.line+1,h-1),e.insert(s.line+1,y)}un(e,"change",e,t)}function Mi(e,t,n){!function e(r,i,o){if(r.linked)for(var a=0;a<r.linked.length;++a){var s=r.linked[a];if(s.doc!=i){var u=o&&s.sharedHist;n&&!u||(t(s.doc,u),e(s.doc,r,u))}}}(e,null,!0)}function ji(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,ur(e),Oi(e),Li(e),e.options.lineWrapping||Wt(e),e.options.mode=t.modeOption,pr(e)}function Li(e){("rtl"==e.doc.direction?I:k)(e.display.lineDiv,"CodeMirror-rtl")}function Pi(e){this.done=[],this.undone=[],this.undoDepth=1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e||1}function Ri(e,t){var n={from:rt(t.from),to:ki(t),text:Ke(e,t.from,t.to)};return qi(e,n,t.from.line,t.to.line+1),Mi(e,(function(e){return qi(e,n,t.from.line,t.to.line+1)}),!0),n}function Bi(e){for(;e.length&&J(e).ranges;)e.pop()}function Ui(e,t,n,r){var i=e.history;i.undone.length=0;var o,a,s=+new Date;if((i.lastOp==r||i.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&i.lastModTime>s-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(o=function(e,t){return t?(Bi(e.done),J(e.done)):e.done.length&&!J(e.done).ranges?J(e.done):e.done.length>1&&!e.done[e.done.length-2].ranges?(e.done.pop(),J(e.done)):void 0}(i,i.lastOp==r)))a=J(o.changes),0==tt(t.from,t.to)&&0==tt(t.from,a.to)?a.to=ki(t):o.changes.push(Ri(e,t));else{var u=J(i.done);for(u&&u.ranges||Vi(e.sel,i.done),o={changes:[Ri(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 zi(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,J(i.done),t))?i.done[i.done.length-1]=t:Vi(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=n,r&&!1!==r.clearRedo&&Bi(i.undone)}function Vi(e,t){var n=J(t);n&&n.ranges&&n.equals(e)||t.push(e)}function qi(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 Hi(e){if(!e)return null;for(var t,n=0;n<e.length;++n)e[n].marker.explicitlyCleared?t||(t=e.slice(0,n)):t&&t.push(e[n]);return t?t.length?t:null:e}function Wi(e,t){var n=function(e,t){var n=t["spans_"+e.id];if(!n)return null;for(var r=[],i=0;i<t.text.length;++i)r.push(Hi(n[i]));return r}(e,t),r=kt(e,t);if(!n)return r;if(!r)return n;for(var i=0;i<n.length;++i){var o=n[i],a=r[i];if(o&&a)e:for(var s=0;s<a.length;++s){for(var u=a[s],c=0;c<o.length;++c)if(o[c].marker==u.marker)continue e;o.push(u)}else a&&(n[i]=a)}return n}function Gi(e,t,n){for(var r=[],i=0;i<e.length;++i){var o=e[i];if(o.ranges)r.push(n?Di.prototype.deepCopy.call(o):o);else{var a=o.changes,s=[];r.push({changes:s});for(var u=0;u<a.length;++u){var c=a[u],l=void 0;if(s.push({from:c.from,to:c.to,text:c.text}),t)for(var p in c)(l=p.match(/^spans_(\d+)$/))&&U(t,Number(l[1]))>-1&&(J(s)[p]=c[p],delete c[p])}}}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 Ci(i,t)}return new Ci(n||t,t)}function Ji(e,t,n,r,i){null==i&&(i=e.cm&&(e.cm.display.shift||e.extend)),Zi(e,new Di([Ki(e.sel.primary(),t,n,i)],0),r)}function Qi(e,t,n){for(var r=[],i=e.cm&&(e.cm.display.shift||e.extend),o=0;o<e.sel.ranges.length;o++)r[o]=Ki(e.sel.ranges[o],t[o],null,i);Zi(e,wi(e.cm,r,e.sel.primIndex),n)}function Yi(e,t,n,r){var i=e.sel.ranges.slice(0);i[t]=n,Zi(e,wi(e.cm,i,e.sel.primIndex),r)}function $i(e,t,n,r){Zi(e,Si(t,n),r)}function Xi(e,t,n){var r=e.history.done,i=J(r);i&&i.ranges?(r[r.length-1]=t,eo(e,t,n)):Zi(e,t,n)}function Zi(e,t,n){eo(e,t,n),zi(e,e.sel,e.cm?e.cm.curOp.id:NaN,n)}function eo(e,t,n){(ye(e,"beforeSelectionChange")||e.cm&&ye(e.cm,"beforeSelectionChange"))&&(t=function(e,t,n){var r={ranges:t.ranges,update:function(t){this.ranges=[];for(var n=0;n<t.length;n++)this.ranges[n]=new Ci(st(e,t[n].anchor),st(e,t[n].head))},origin:n&&n.origin};return he(e,"beforeSelectionChange",e,r),e.cm&&he(e.cm,"beforeSelectionChange",e.cm,r),r.ranges!=t.ranges?wi(e.cm,r.ranges,r.ranges.length-1):t}(e,t,n));var r=n&&n.bias||(tt(t.primary().head,e.sel.primary().head)<0?-1:1);to(e,ro(e,t,r,!0)),n&&!1===n.scroll||!e.cm||Fr(e.cm)}function to(e,t){t.equals(e.sel)||(e.sel=t,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,ge(e.cm)),un(e,"cursorActivity",e))}function no(e){to(e,ro(e,e.sel,null,!1))}function ro(e,t,n,r){for(var i,o=0;o<t.ranges.length;o++){var a=t.ranges[o],s=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[o],u=oo(e,a.anchor,s&&s.anchor,n,r),c=oo(e,a.head,s&&s.head,n,r);(i||u!=a.anchor||c!=a.head)&&(i||(i=t.ranges.slice(0,o)),i[o]=new Ci(u,c))}return i?wi(e.cm,i,t.primIndex):t}function io(e,t,n,r,i){var o=Ge(e,t.line);if(o.markedSpans)for(var a=0;a<o.markedSpans.length;++a){var s=o.markedSpans[a],u=s.marker,c="selectLeft"in u?!u.selectLeft:u.inclusiveLeft,l="selectRight"in u?!u.selectRight:u.inclusiveRight;if((null==s.from||(c?s.from<=t.ch:s.from<t.ch))&&(null==s.to||(l?s.to>=t.ch:s.to>t.ch))){if(i&&(he(u,"beforeCursorEnter"),u.explicitlyCleared)){if(o.markedSpans){--a;continue}break}if(!u.atomic)continue;if(n){var p=u.find(r<0?1:-1),f=void 0;if((r<0?l:c)&&(p=ao(e,p,-r,p&&p.line==t.line?o:null)),p&&p.line==t.line&&(f=tt(p,n))&&(r<0?f<0:f>0))return io(e,p,t,r,i)}var d=u.find(r<0?-1:1);return(r<0?c:l)&&(d=ao(e,d,r,d.line==t.line?o:null)),d?io(e,d,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||Ge(e,t.line)).text.length?t.line<e.first+e.size-1?et(t.line+1,0):null:new et(t.line,t.ch+n)}function so(e){e.setSelection(et(e.firstLine(),0),et(e.lastLine()),V)}function uo(e,t,n){var r={canceled:!1,from:t.from,to:t.to,text:t.text,origin:t.origin,cancel:function(){return r.canceled=!0}};return n&&(r.update=function(t,n,i,o){t&&(r.from=st(e,t)),n&&(r.to=st(e,n)),i&&(r.text=i),void 0!==o&&(r.origin=o)}),he(e,"beforeChange",e,r),e.cm&&he(e.cm,"beforeChange",e.cm,r),r.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:r.from,to:r.to,text:r.text,origin:r.origin}}function co(e,t,n){if(e.cm){if(!e.cm.curOp)return ei(e.cm,co)(e,t,n);if(e.cm.state.suppressEdits)return}if(!(ye(e,"beforeChange")||e.cm&&ye(e.cm,"beforeChange"))||(t=uo(e,t,!0))){var r=xt&&!n&&function(e,t,n){var r=null;if(e.iter(t.line,n.line+1,(function(e){if(e.markedSpans)for(var t=0;t<e.markedSpans.length;++t){var n=e.markedSpans[t].marker;!n.readOnly||r&&-1!=U(r,n)||(r||(r=[])).push(n)}})),!r)return null;for(var i=[{from:t,to:n}],o=0;o<r.length;++o)for(var a=r[o],s=a.find(0),u=0;u<i.length;++u){var c=i[u];if(!(tt(c.to,s.from)<0||tt(c.from,s.to)>0)){var l=[u,1],p=tt(c.from,s.from),f=tt(c.to,s.to);(p<0||!a.inclusiveLeft&&!p)&&l.push({from:c.from,to:s.from}),(f>0||!a.inclusiveRight&&!f)&&l.push({from:s.to,to:c.to}),i.splice.apply(i,l),u+=l.length-3}}return i}(e,t.from,t.to);if(r)for(var i=r.length-1;i>=0;--i)lo(e,{from:r[i].from,to:r[i].to,text:i?[""]:t.text,origin:t.origin});else lo(e,t)}}function lo(e,t){if(1!=t.text.length||""!=t.text[0]||0!=tt(t.from,t.to)){var n=Ti(e,t);Ui(e,t,n,e.cm?e.cm.curOp.id:NaN),ho(e,t,n,kt(e,t));var r=[];Mi(e,(function(e,n){n||-1!=U(r,e.history)||(vo(e.history,t),r.push(e.history)),ho(e,t,null,kt(e,t))}))}}function po(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,u="undo"==t?o.undone:o.done,c=0;c<s.length&&(i=s[c],n?!i.ranges||i.equals(e.sel):i.ranges);c++);if(c!=s.length){for(o.lastOrigin=o.lastSelOrigin=null;;){if(!(i=s.pop()).ranges){if(r)return void s.push(i);break}if(Vi(i,u),n&&!i.equals(e.sel))return void Zi(e,i,{clearRedo:!1});a=i}var l=[];Vi(a,u),u.push({changes:l,generation:o.generation}),o.generation=i.generation||++o.maxGeneration;for(var p=ye(e,"beforeChange")||e.cm&&ye(e.cm,"beforeChange"),f=function(n){var r=i.changes[n];if(r.origin=t,p&&!uo(e,r,!1))return s.length=0,{};l.push(Ri(e,r));var o=n?Ti(e,r):J(s);ho(e,r,o,Wi(e,r)),!n&&e.cm&&e.cm.scrollIntoView({from:r.from,to:ki(r)});var a=[];Mi(e,(function(e,t){t||-1!=U(a,e.history)||(vo(e.history,r),a.push(e.history)),ho(e,r,null,Wi(e,r))}))},d=i.changes.length-1;d>=0;--d){var h=f(d);if(h)return h.v}}}}function fo(e,t){if(0!=t&&(e.first+=t,e.sel=new Di(Q(e.sel.ranges,(function(e){return new Ci(et(e.anchor.line+t,e.anchor.ch),et(e.head.line+t,e.head.ch))})),e.sel.primIndex),e.cm)){pr(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;r<n.viewTo;r++)fr(e.cm,r,"gutter")}}function ho(e,t,n,r){if(e.cm&&!e.cm.curOp)return ei(e.cm,ho)(e,t,n,r);if(t.to.line<e.first)fo(e,t.text.length-1-(t.to.line-t.from.line));else if(!(t.from.line>e.lastLine())){if(t.from.line<e.first){var i=t.text.length-1-(e.first-t.from.line);fo(e,i),t={from:et(e.first,0),to:et(t.to.line+i,t.to.ch),text:[J(t.text)],origin:t.origin}}var o=e.lastLine();t.to.line>o&&(t={from:t.from,to:et(o,Ge(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=Ke(e,t.from,t.to),n||(n=Ti(e,t)),e.cm?function(e,t,n){var r=e.doc,i=e.display,o=t.from,a=t.to,s=!1,u=o.line;e.options.lineWrapping||(u=Ye(Rt(Ge(r,o.line))),r.iter(u,a.line+1,(function(e){if(e==i.maxLine)return s=!0,!0}))),r.sel.contains(t.from,t.to)>-1&&ge(e),Ii(r,t,n,sr(e)),e.options.lineWrapping||(r.iter(u,o.line+t.text.length,(function(e){var t=Ht(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.highlightFrontier<t-10)){for(var n=e.first,r=t-1;r>n;r--){var i=Ge(e,r).stateAfter;if(i&&(!(i instanceof ct)||r+i.lookAhead<t)){n=r+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,n)}}(r,o.line),ri(e,400);var c=t.text.length-(a.line-o.line)-1;t.full?pr(e):o.line!=a.line||1!=t.text.length||Ni(e.doc,t)?pr(e,o.line,a.line+1,c):fr(e,o.line,"text");var l=ye(e,"changes"),p=ye(e,"change");if(p||l){var f={from:o,to:a,text:t.text,removed:t.removed,origin:t.origin};p&&un(e,"change",e,f),l&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(f)}e.display.selForContextMenu=null}(e.cm,t,r):Ii(e,t,r),eo(e,n,V),e.cantEdit&&oo(e,et(e.firstLine(),0))&&(e.cantEdit=!1)}}function mo(e,t,n,r,i){var o;r||(r=n),tt(r,n)<0&&(n=(o=[r,n])[0],r=o[1]),"string"==typeof t&&(t=e.splitLines(t)),co(e,{from:n,to:r,text:t,origin:i})}function go(e,t,n,r){n<e.line?e.line+=r:t<e.line&&(e.line=t,e.ch=0)}function yo(e,t,n,r){for(var i=0;i<e.length;++i){var o=e[i],a=!0;if(o.ranges){o.copied||((o=e[i]=o.deepCopy()).copied=!0);for(var s=0;s<o.ranges.length;s++)go(o.ranges[s].anchor,t,n,r),go(o.ranges[s].head,t,n,r)}else{for(var u=0;u<o.changes.length;++u){var c=o.changes[u];if(n<c.from.line)c.from=et(c.from.line+r,c.from.ch),c.to=et(c.to.line+r,c.to.ch);else if(t<=c.to.line){a=!1;break}}a||(e.splice(0,i+1),i=0)}}}function vo(e,t){var n=t.from.line,r=t.to.line,i=t.text.length-(r-n)-1;yo(e.done,n,r,i),yo(e.undone,n,r,i)}function bo(e,t,n,r){var i=t,o=t;return"number"==typeof t?o=Ge(e,at(e,t)):i=Ye(t),null==i?null:(r(o,i)&&e.cm&&fr(e.cm,i,n),o)}function Eo(e){this.lines=e,this.parent=null;for(var t=0,n=0;n<e.length;++n)e[n].parent=this,t+=e[n].height;this.height=t}function xo(e){this.children=e;for(var t=0,n=0,r=0;r<e.length;++r){var i=e[r];t+=i.chunkSize(),n+=i.height,i.parent=this}this.size=t,this.height=n,this.parent=null}Ci.prototype.from=function(){return ot(this.anchor,this.head)},Ci.prototype.to=function(){return it(this.anchor,this.head)},Ci.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch},Eo.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var n=e,r=e+t;n<r;++n){var i=this.lines[n];this.height-=i.height,Kt(i),un(i,"delete")}this.lines.splice(e,t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,n){this.height+=n,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var r=0;r<t.length;++r)t[r].parent=this},iterN:function(e,t,n){for(var r=e+t;e<r;++e)if(n(this.lines[e]))return!0}},xo.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){this.size-=t;for(var n=0;n<this.children.length;++n){var r=this.children[n],i=r.chunkSize();if(e<i){var o=Math.min(t,i-e),a=r.height;if(r.removeInner(e,o),this.height-=a-r.height,i==o&&(this.children.splice(n--,1),r.parent=null),0==(t-=o))break;e=0}else e-=i}if(this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof Eo))){var s=[];this.collapse(s),this.children=[new Eo(s)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t<this.children.length;++t)this.children[t].collapse(e)},insertInner:function(e,t,n){this.size+=t.length,this.height+=n;for(var r=0;r<this.children.length;++r){var i=this.children[r],o=i.chunkSize();if(e<=o){if(i.insertInner(e,t,n),i.lines&&i.lines.length>50){for(var a=i.lines.length%25+25,s=a;s<i.lines.length;){var u=new Eo(i.lines.slice(s,s+=25));i.height-=u.height,this.children.splice(++r,0,u),u.parent=this}i.lines=i.lines.slice(0,a),this.maybeSpill()}break}e-=o}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var t=new xo(e.children.splice(e.children.length-5,5));if(e.parent){e.size-=t.size,e.height-=t.height;var n=U(e.parent.children,e);e.parent.children.splice(n+1,0,t)}else{var r=new xo(e.children);r.parent=e,e.children=[r,t],e=r}t.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=0;r<this.children.length;++r){var i=this.children[r],o=i.chunkSize();if(e<o){var a=Math.min(t,o-e);if(i.iterN(e,a,n))return!0;if(0==(t-=a))break;e=0}else e-=o}}};var Do=function(e,t,n){if(n)for(var r in n)n.hasOwnProperty(r)&&(this[r]=n[r]);this.doc=e,this.node=t};function Co(e,t,n){qt(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&Or(e,n)}Do.prototype.clear=function(){var e=this.doc.cm,t=this.line.widgets,n=this.line,r=Ye(n);if(null!=r&&t){for(var i=0;i<t.length;++i)t[i]==this&&t.splice(i--,1);t.length||(n.widgets=null);var o=xn(this);Qe(n,Math.max(0,n.height-o)),e&&(Zr(e,(function(){Co(e,n,-o),fr(e,r,"widget")})),un(e,"lineWidgetCleared",e,this,r))}},Do.prototype.changed=function(){var e=this,t=this.height,n=this.doc.cm,r=this.line;this.height=null;var i=xn(this)-t;i&&(zt(this.doc,r)||Qe(r,r.height+i),n&&Zr(n,(function(){n.curOp.forceUpdate=!0,Co(n,r,i),un(n,"lineWidgetChanged",n,e,Ye(r))})))},ve(Do);var wo=0,So=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++wo};function ko(e,t,n,r,i){if(r&&r.shared)return function(e,t,n,r,i){(r=P(r)).shared=!1;var o=[ko(e,t,n,r,i)],a=o[0],s=r.widgetNode;return Mi(e,(function(e){s&&(r.widgetNode=s.cloneNode(!0)),o.push(ko(e,st(e,t),st(e,n),r,i));for(var u=0;u<e.linked.length;++u)if(e.linked[u].isParent)return;a=J(o)})),new Ao(o,a)}(e,t,n,r,i);if(e.cm&&!e.cm.curOp)return ei(e.cm,ko)(e,t,n,r,i);var o=new So(e,i),a=tt(t,n);if(r&&P(r,o,!1),a>0||0==a&&!1!==o.clearWhenEmpty)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=O("span",[o.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(Pt(e,t.line,t,n,o)||t.line!=n.line&&Pt(e,n.line,t,n,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");Dt=!0}o.addToHistory&&Ui(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var s,u=t.line,c=e.cm;if(e.iter(u,n.line+1,(function(e){c&&o.collapsed&&!c.options.lineWrapping&&Rt(e)==c.display.maxLine&&(s=!0),o.collapsed&&u!=t.line&&Qe(e,0),function(e,t){e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],t.marker.attachLine(e)}(e,new Ct(o,u==t.line?t.ch:null,u==n.line?n.ch:null)),++u})),o.collapsed&&e.iter(t.line,n.line+1,(function(t){zt(e,t)&&Qe(t,0)})),o.clearOnEnter&&pe(o,"beforeCursorEnter",(function(){return o.clear()})),o.readOnly&&(xt=!0,(e.history.done.length||e.history.undone.length)&&e.clearHistory()),o.collapsed&&(o.id=++wo,o.atomic=!0),c){if(s&&(c.curOp.updateMaxLine=!0),o.collapsed)pr(c,t.line,n.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var l=t.line;l<=n.line;l++)fr(c,l,"text");o.atomic&&no(c.doc),un(c,"markerAdded",c,o)}return o}So.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&Gr(e),ye(this,"clear")){var n=this.find();n&&un(this,"clear",n.from,n.to)}for(var r=null,i=null,o=0;o<this.lines.length;++o){var a=this.lines[o],s=wt(a.markedSpans,this);e&&!this.collapsed?fr(e,Ye(a),"text"):e&&(null!=s.to&&(i=Ye(a)),null!=s.from&&(r=Ye(a))),a.markedSpans=St(a.markedSpans,s),null==s.from&&this.collapsed&&!zt(this.doc,a)&&e&&Qe(a,rr(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var u=0;u<this.lines.length;++u){var c=Rt(this.lines[u]),l=Ht(c);l>e.display.maxLineLength&&(e.display.maxLine=c,e.display.maxLineLength=l,e.display.maxLineChanged=!0)}null!=r&&e&&this.collapsed&&pr(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&&un(e,"markerCleared",e,this,r,i),t&&Kr(e),this.parent&&this.parent.clear()}},So.prototype.find=function(e,t){var n,r;null==e&&"bookmark"==this.type&&(e=1);for(var i=0;i<this.lines.length;++i){var o=this.lines[i],a=wt(o.markedSpans,this);if(null!=a.from&&(n=et(t?o:Ye(o),a.from),-1==e))return n;if(null!=a.to&&(r=et(t?o:Ye(o),a.to),1==e))return r}return n&&{from:n,to:r}},So.prototype.changed=function(){var e=this,t=this.find(-1,!0),n=this,r=this.doc.cm;t&&r&&Zr(r,(function(){var i=t.line,o=Ye(t.line),a=Fn(r,o);if(a&&(Rn(a),r.curOp.selectionChanged=r.curOp.forceUpdate=!0),r.curOp.updateMaxLine=!0,!zt(n.doc,i)&&null!=n.height){var s=n.height;n.height=null;var u=xn(n)-s;u&&Qe(i,i.height+u)}un(r,"markerChanged",r,e)}))},So.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;t.maybeHiddenMarkers&&-1!=U(t.maybeHiddenMarkers,this)||(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},So.prototype.detachLine=function(e){if(this.lines.splice(U(this.lines,e),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}},ve(So);var Ao=function(e,t){this.markers=e,this.primary=t;for(var n=0;n<e.length;++n)e[n].parent=this};function To(e){return e.findMarks(et(e.first,0),e.clipPos(et(e.lastLine())),(function(e){return e.parent}))}function _o(e){for(var t=function(t){var n=e[t],r=[n.primary.doc];Mi(n.primary.doc,(function(e){return r.push(e)}));for(var i=0;i<n.markers.length;i++){var o=n.markers[i];-1==U(r,o.doc)&&(o.parent=null,n.markers.splice(i--,1))}},n=0;n<e.length;n++)t(n)}Ao.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();un(this,"clear")}},Ao.prototype.find=function(e,t){return this.primary.find(e,t)},ve(Ao);var Oo=0,Fo=function(e,t,n,r,i){if(!(this instanceof Fo))return new Fo(e,t,n,r,i);null==n&&(n=0),xo.call(this,[new Eo([new Gt("",null)])]),this.first=n,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=n;var o=et(n,0);this.sel=Si(o),this.history=new Pi(null),this.id=++Oo,this.modeOption=t,this.lineSep=r,this.direction="rtl"==i?"rtl":"ltr",this.extend=!1,"string"==typeof e&&(e=this.splitLines(e)),Ii(this,{from:o,to:o,text:e}),Zi(this,Si(o),V)};Fo.prototype=$(xo.prototype,{constructor:Fo,iter:function(e,t,n){n?this.iterN(e-this.first,t-e,n):this.iterN(this.first,this.first+this.size,e)},insert:function(e,t){for(var n=0,r=0;r<t.length;++r)n+=t[r].height;this.insertInner(e-this.first,t,n)},remove:function(e,t){this.removeInner(e-this.first,t)},getValue:function(e){var t=Je(this,this.first,this.first+this.size);return!1===e?t:t.join(e||this.lineSeparator())},setValue:ni((function(e){var t=et(this.first,0),n=this.first+this.size-1;co(this,{from:t,to:et(n,Ge(this,n).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&Nr(this.cm,0,0),Zi(this,Si(t),V)})),replaceRange:function(e,t,n,r){mo(this,e,t=st(this,t),n=n?st(this,n):t,r)},getRange:function(e,t,n){var r=Ke(this,st(this,e),st(this,t));return!1===n?r:r.join(n||this.lineSeparator())},getLine:function(e){var t=this.getLineHandle(e);return t&&t.text},getLineHandle:function(e){if(Xe(this,e))return Ge(this,e)},getLineNumber:function(e){return Ye(e)},getLineHandleVisualStart:function(e){return"number"==typeof e&&(e=Ge(this,e)),Rt(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return st(this,e)},getCursor:function(e){var t=this.sel.primary();return null==e||"head"==e?t.head:"anchor"==e?t.anchor:"end"==e||"to"==e||!1===e?t.to():t.from()},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:ni((function(e,t,n){$i(this,st(this,"number"==typeof e?et(e,t||0):e),null,n)})),setSelection:ni((function(e,t,n){$i(this,st(this,e),st(this,t||e),n)})),extendSelection:ni((function(e,t,n){Ji(this,st(this,e),t&&st(this,t),n)})),extendSelections:ni((function(e,t){Qi(this,ut(this,e),t)})),extendSelectionsBy:ni((function(e,t){Qi(this,ut(this,Q(this.sel.ranges,e)),t)})),setSelections:ni((function(e,t,n){if(e.length){for(var r=[],i=0;i<e.length;i++)r[i]=new Ci(st(this,e[i].anchor),st(this,e[i].head));null==t&&(t=Math.min(e.length-1,this.sel.primIndex)),Zi(this,wi(this.cm,r,t),n)}})),addSelection:ni((function(e,t,n){var r=this.sel.ranges.slice(0);r.push(new Ci(st(this,e),st(this,t||e))),Zi(this,wi(this.cm,r,r.length-1),n)})),getSelection:function(e){for(var t,n=this.sel.ranges,r=0;r<n.length;r++){var i=Ke(this,n[r].from(),n[r].to());t=t?t.concat(i):i}return!1===e?t:t.join(e||this.lineSeparator())},getSelections:function(e){for(var t=[],n=this.sel.ranges,r=0;r<n.length;r++){var i=Ke(this,n[r].from(),n[r].to());!1!==e&&(i=i.join(e||this.lineSeparator())),t[r]=i}return t},replaceSelection:function(e,t,n){for(var r=[],i=0;i<this.sel.ranges.length;i++)r[i]=e;this.replaceSelections(r,t,n||"+input")},replaceSelections:ni((function(e,t,n){for(var r=[],i=this.sel,o=0;o<i.ranges.length;o++){var a=i.ranges[o];r[o]={from:a.from(),to:a.to(),text:this.splitLines(e[o]),origin:n}}for(var s=t&&"end"!=t&&function(e,t,n){for(var r=[],i=et(e.first,0),o=i,a=0;a<t.length;a++){var s=t[a],u=_i(s.from,i,o),c=_i(ki(s),i,o);if(i=s.to,o=c,"around"==n){var l=e.sel.ranges[a],p=tt(l.head,l.anchor)<0;r[a]=new Ci(p?c:u,p?u:c)}else r[a]=new Ci(u,u)}return new Di(r,e.sel.primIndex)}(this,r,t),u=r.length-1;u>=0;u--)co(this,r[u]);s?Xi(this,s):this.cm&&Fr(this.cm)})),undo:ni((function(){po(this,"undo")})),redo:ni((function(){po(this,"redo")})),undoSelection:ni((function(){po(this,"undo",!0)})),redoSelection:ni((function(){po(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.done.length;r++)e.done[r].ranges||++t;for(var i=0;i<e.undone.length;i++)e.undone[i].ranges||++n;return{undo:t,redo:n}},clearHistory:function(){var e=this;this.history=new Pi(this.history.maxGeneration),Mi(this,(function(t){return t.history=e.history}),!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:Gi(this.history.done),undone:Gi(this.history.undone)}},setHistory:function(e){var t=this.history=new Pi(this.history.maxGeneration);t.done=Gi(e.done.slice(0),null,!0),t.undone=Gi(e.undone.slice(0),null,!0)},setGutterMarker:ni((function(e,t,n){return bo(this,e,"gutter",(function(e){var r=e.gutterMarkers||(e.gutterMarkers={});return r[t]=n,!n&&te(r)&&(e.gutterMarkers=null),!0}))})),clearGutter:ni((function(e){var t=this;this.iter((function(n){n.gutterMarkers&&n.gutterMarkers[e]&&bo(t,n,"gutter",(function(){return n.gutterMarkers[e]=null,te(n.gutterMarkers)&&(n.gutterMarkers=null),!0}))}))})),lineInfo:function(e){var t;if("number"==typeof e){if(!Xe(this,e))return null;if(t=e,!(e=Ge(this,e)))return null}else if(null==(t=Ye(e)))return null;return{line:t,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:ni((function(e,t,n){return bo(this,e,"gutter"==t?"gutter":"class",(function(e){var r="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass";if(e[r]){if(w(n).test(e[r]))return!1;e[r]+=" "+n}else e[r]=n;return!0}))})),removeLineClass:ni((function(e,t,n){return bo(this,e,"gutter"==t?"gutter":"class",(function(e){var r="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass",i=e[r];if(!i)return!1;if(null==n)e[r]=null;else{var o=i.match(w(n));if(!o)return!1;var a=o.index+o[0].length;e[r]=i.slice(0,o.index)+(o.index&&a!=i.length?" ":"")+i.slice(a)||null}return!0}))})),addLineWidget:ni((function(e,t,n){return function(e,t,n,r){var i=new Do(e,n,r),o=e.cm;return o&&i.noHScroll&&(o.display.alignWidgets=!0),bo(e,t,"widget",(function(t){var n=t.widgets||(t.widgets=[]);if(null==i.insertAt?n.push(i):n.splice(Math.min(n.length-1,Math.max(0,i.insertAt)),0,i),i.line=t,o&&!zt(e,t)){var r=qt(t)<e.scrollTop;Qe(t,t.height+xn(i)),r&&Or(o,i.height),o.curOp.forceUpdate=!0}return!0})),o&&un(o,"lineWidgetAdded",o,i,"number"==typeof t?t:Ye(t)),i}(this,e,t,n)})),removeLineWidget:function(e){e.clear()},markText:function(e,t,n){return ko(this,st(this,e),st(this,t),n,n&&n.type||"range")},setBookmark:function(e,t){var n={replacedWith:t&&(null==t.nodeType?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:!1,shared:t&&t.shared,handleMouseEvents:t&&t.handleMouseEvents};return ko(this,e=st(this,e),e,n,"bookmark")},findMarksAt:function(e){var t=[],n=Ge(this,(e=st(this,e)).line).markedSpans;if(n)for(var r=0;r<n.length;++r){var i=n[r];(null==i.from||i.from<=e.ch)&&(null==i.to||i.to>=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<a.length;s++){var u=a[s];null!=u.to&&i==e.line&&e.ch>=u.to||null==u.from&&i!=e.line||null!=u.from&&i==t.line&&u.from>=t.ch||n&&!n(u.marker)||r.push(u.marker.parent||u.marker)}++i})),r},getAllMarks:function(){var e=[];return this.iter((function(t){var n=t.markedSpans;if(n)for(var r=0;r<n.length;++r)null!=n[r].from&&e.push(n[r].marker)})),e},posFromIndex:function(e){var t,n=this.first,r=this.lineSeparator().length;return this.iter((function(i){var o=i.text.length+r;if(o>e)return t=e,!0;e-=o,++n})),st(this,et(n,t))},indexFromPos:function(e){var t=(e=st(this,e)).ch;if(e.line<this.first||e.ch<0)return 0;var n=this.lineSeparator().length;return this.iter(this.first,e.line,(function(e){t+=e.text.length+n})),t},copy:function(e){var t=new Fo(Je(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return t.scrollTop=this.scrollTop,t.scrollLeft=this.scrollLeft,t.sel=this.sel,t.extend=!1,e&&(t.history.undoDepth=this.history.undoDepth,t.setHistory(this.getHistory())),t},linkedDoc:function(e){e||(e={});var t=this.first,n=this.first+this.size;null!=e.from&&e.from>t&&(t=e.from),null!=e.to&&e.to<n&&(n=e.to);var r=new Fo(Je(this,t,n),e.mode||this.modeOption,t,this.lineSep,this.direction);return e.sharedHist&&(r.history=this.history),(this.linked||(this.linked=[])).push({doc:r,sharedHist:e.sharedHist}),r.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n],i=r.find(),o=e.clipPos(i.from),a=e.clipPos(i.to);if(tt(o,a)){var s=ko(e,o,a,r.primary,r.primary.type);r.markers.push(s),s.parent=r}}}(r,To(this)),r},unlinkDoc:function(e){if(e instanceof Aa&&(e=e.doc),this.linked)for(var t=0;t<this.linked.length;++t)if(this.linked[t].doc==e){this.linked.splice(t,1),e.unlinkDoc(this),_o(To(this));break}if(e.history==this.history){var n=[e.id];Mi(e,(function(e){return n.push(e.id)}),!0),e.history=new Pi(null),e.history.done=Gi(this.history.done,n),e.history.undone=Gi(this.history.undone,n)}},iterLinkedDocs:function(e){Mi(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):Fe(e)},lineSeparator:function(){return this.lineSep||"\n"},setDirection:ni((function(e){var t;"rtl"!=e&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter((function(e){return e.order=null})),this.cm&&Zr(t=this.cm,(function(){Li(t),pr(t)})))}))}),Fo.prototype.eachLine=Fo.prototype.iter;var No=0;function Io(e){var t=this;if(Mo(t),!me(t,e)&&!Dn(t.display,e)){be(e),a&&(No=+new Date);var n=cr(t,e,!0),r=e.dataTransfer.files;if(n&&!t.isReadOnly())if(r&&r.length&&window.FileReader&&window.File)for(var i=r.length,o=Array(i),s=0,u=function(){++s==i&&ei(t,(function(){var e={from:n=st(t.doc,n),to:n,text:t.doc.splitLines(o.filter((function(e){return null!=e})).join(t.doc.lineSeparator())),origin:"paste"};co(t.doc,e),Xi(t.doc,Si(st(t.doc,n),st(t.doc,ki(e))))}))()},c=function(e,n){if(t.options.allowDropFileTypes&&-1==U(t.options.allowDropFileTypes,e.type))u();else{var r=new FileReader;r.onerror=function(){return u()},r.onload=function(){var e=r.result;/[\x00-\x08\x0e-\x1f]{2}/.test(e)||(o[n]=e),u()},r.readAsText(e)}},l=0;l<r.length;l++)c(r[l],l);else{if(t.state.draggingText&&t.doc.sel.contains(n)>-1)return t.state.draggingText(e),void setTimeout((function(){return t.display.input.focus()}),20);try{var p=e.dataTransfer.getData("Text");if(p){var f;if(t.state.draggingText&&!t.state.draggingText.copy&&(f=t.listSelections()),eo(t.doc,Si(n,n)),f)for(var d=0;d<f.length;++d)mo(t.doc,"",f[d].anchor,f[d].head,"drag");t.replaceSelection(p,"around","paste"),t.display.input.focus()}}catch(e){}}}}function Mo(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function jo(e){if(document.getElementsByClassName){for(var t=document.getElementsByClassName("CodeMirror"),n=[],r=0;r<t.length;r++){var i=t[r].CodeMirror;i&&n.push(i)}n.length&&n[0].operation((function(){for(var t=0;t<n.length;t++)e(n[t])}))}}var Lo=!1;function Po(){var e;Lo||(pe(window,"resize",(function(){null==e&&(e=setTimeout((function(){e=null,jo(Ro)}),100))})),pe(window,"blur",(function(){return jo(Sr)})),Lo=!0)}function Ro(e){var t=e.display;t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize()}for(var Bo={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},Uo=0;Uo<10;Uo++)Bo[Uo+48]=Bo[Uo+96]=String(Uo);for(var zo=65;zo<=90;zo++)Bo[zo]=String.fromCharCode(zo);for(var Vo=1;Vo<=12;Vo++)Bo[Vo+111]=Bo[Vo+63235]="F"+Vo;var qo={};function Ho(e){var t,n,r,i,o=e.split(/-(?!$)/);e=o[o.length-1];for(var a=0;a<o.length-1;a++){var s=o[a];if(/^(cmd|meta|m)$/i.test(s))i=!0;else if(/^a(lt)?$/i.test(s))t=!0;else if(/^(c|ctrl|control)$/i.test(s))n=!0;else{if(!/^s(hift)?$/i.test(s))throw new Error("Unrecognized modifier name: "+s);r=!0}}return t&&(e="Alt-"+e),n&&(e="Ctrl-"+e),i&&(e="Cmd-"+e),r&&(e="Shift-"+e),e}function Wo(e){var t={};for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];if(/^(name|fallthrough|(de|at)tach)$/.test(n))continue;if("..."==r){delete e[n];continue}for(var i=Q(n.split(" "),Ho),o=0;o<i.length;o++){var a=void 0,s=void 0;o==i.length-1?(s=i.join(" "),a=r):(s=i.slice(0,o+1).join(" "),a="...");var u=t[s];if(u){if(u!=a)throw new Error("Inconsistent bindings for "+s)}else t[s]=a}delete e[n]}for(var c in t)e[c]=t[c];return e}function Go(e,t,n,r){var i=(t=Yo(t)).call?t.call(e,r):t[e];if(!1===i)return"nothing";if("..."===i)return"multi";if(null!=i&&n(i))return"handled";if(t.fallthrough){if("[object Array]"!=Object.prototype.toString.call(t.fallthrough))return Go(e,t.fallthrough,n,r);for(var o=0;o<t.fallthrough.length;o++){var a=Go(e,t.fallthrough[o],n,r);if(a)return a}}}function Ko(e){var t="string"==typeof e?e:Bo[e.keyCode];return"Ctrl"==t||"Alt"==t||"Shift"==t||"Mod"==t}function Jo(e,t,n){var r=e;return t.altKey&&"Alt"!=r&&(e="Alt-"+e),(D?t.metaKey:t.ctrlKey)&&"Ctrl"!=r&&(e="Ctrl-"+e),(D?t.ctrlKey:t.metaKey)&&"Mod"!=r&&(e="Cmd-"+e),!n&&t.shiftKey&&"Shift"!=r&&(e="Shift-"+e),e}function Qo(e,t){if(p&&34==e.keyCode&&e.char)return!1;var n=Bo[e.keyCode];return null!=n&&!e.altGraphKey&&(3==e.keyCode&&e.code&&(n=e.code),Jo(n,e,t))}function Yo(e){return"string"==typeof e?qo[e]:e}function $o(e,t){for(var n=e.doc.sel.ranges,r=[],i=0;i<n.length;i++){for(var o=t(n[i]);r.length&&tt(o.from,J(r).to)<=0;){var a=r.pop();if(tt(a.from,o.from)<0){o.from=a.from;break}}r.push(o)}Zr(e,(function(){for(var t=r.length-1;t>=0;t--)mo(e.doc,"",r[t].from,r[t].to,"+delete");Fr(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?J(o):o[0],u=i<0==(1==s.level)?"after":"before";if(s.level>0||"rtl"==t.doc.direction){var c=Nn(t,n);a=i<0?n.text.length-1:0;var l=In(t,c,a).top;a=oe((function(e){return In(t,c,e).top==l}),i<0==(1==s.level)?s.from:s.to-1,a),"before"==u&&(a=Xo(n,a,1))}else a=i<0?s.to:s.from;return new et(r,a,u)}}return new et(r,i<0?n.text.length:0,i<0?"before":"after")}qo.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"},qo.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"},qo.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"},qo.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"]},qo.default=v?qo.macDefault:qo.pcDefault;var ta={selectAll:so,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),V)},killLine:function(e){return $o(e,(function(t){if(t.empty()){var n=Ge(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line<e.lastLine()?{from:t.head,to:et(t.head.line+1,0)}:{from:t.head,to:et(t.head.line,n)}}return{from:t.from(),to:t.to()}}))},deleteLine:function(e){return $o(e,(function(t){return{from:et(t.from().line,0),to:st(e.doc,et(t.to().line+1,0))}}))},delLineLeft:function(e){return $o(e,(function(e){return{from:et(e.from().line,0),to:e.from()}}))},delWrappedLineLeft:function(e){return $o(e,(function(t){var n=e.charCoords(t.head,"div").top+5;return{from:e.coordsChar({left:0,top:n},"div"),to:t.from()}}))},delWrappedLineRight:function(e){return $o(e,(function(t){var n=e.charCoords(t.head,"div").top+5,r=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div");return{from:t.from(),to:r}}))},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(et(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(et(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy((function(t){return na(e,t.head.line)}),{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy((function(t){return ra(e,t.head)}),{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy((function(t){return function(e,t){var n=Ge(e.doc,t),r=function(e){for(var t;t=jt(e);)e=t.find(1,!0).line;return e}(n);return r!=n&&(t=Ye(r)),ea(!0,e,n,t,-1)}(e,t.head.line)}),{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy((function(t){var n=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div")}),H)},goLineLeft:function(e){return e.extendSelectionsBy((function(t){var n=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:0,top:n},"div")}),H)},goLineLeftSmart:function(e){return e.extendSelectionsBy((function(t){var n=e.cursorCoords(t.head,"div").top+5,r=e.coordsChar({left:0,top:n},"div");return r.ch<e.getLine(r.line).search(/\S/)?ra(e,t.head):r}),H)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"codepoint")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection("\t")},insertSoftTab:function(e){for(var t=[],n=e.listSelections(),r=e.options.tabSize,i=0;i<n.length;i++){var o=n[i].from(),a=R(e.getLine(o.line),o.ch,r);t.push(K(r-a%r))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return Zr(e,(function(){for(var t=e.listSelections(),n=[],r=0;r<t.length;r++)if(t[r].empty()){var i=t[r].head,o=Ge(e.doc,i.line).text;if(o)if(i.ch==o.length&&(i=new et(i.line,i.ch-1)),i.ch>0)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=Ge(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 Ci(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<t.length;r++)e.indentLine(t[r].from().line,null,!0);Fr(e)}))},openLine:function(e){return e.replaceSelection("\n","start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function na(e,t){var n=Ge(e.doc,t),r=Rt(n);return r!=n&&(t=Ye(r)),ea(!0,e,r,t,1)}function ra(e,t){var n=na(e,t.line),r=Ge(e.doc,n.line),i=ce(r,e.doc.direction);if(!i||0==i[0].level){var o=Math.max(n.ch,r.text.search(/\S/)),a=t.line==n.line&&t.ch<=o&&t.ch;return et(n.line,a?0:o,n.sticky)}return n}function ia(e,t,n){if("string"==typeof t&&!(t=ta[t]))return!1;e.display.input.ensurePolled();var r=e.display.shift,i=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),n&&(e.display.shift=!1),i=t(e)!=z}finally{e.display.shift=r,e.state.suppressEdits=!1}return i}var oa=new B;function aa(e,t,n,r){var i=e.state.keySeq;if(i){if(Ko(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:oa.set(50,(function(){e.state.keySeq==i&&(e.state.keySeq=null,e.display.input.reset())})),sa(e,i+" "+t,n,r))return!0}return sa(e,t,n,r)}function sa(e,t,n,r){var i=function(e,t,n){for(var r=0;r<e.state.keyMaps.length;r++){var i=Go(t,e.state.keyMaps[r],n,e);if(i)return i}return e.options.extraKeys&&Go(t,e.options.extraKeys,n,e)||Go(t,e.options.keyMap,n,e)}(e,t,r);return"multi"==i&&(e.state.keySeq=t),"handled"==i&&un(e,"keyHandled",e,t,n),"handled"!=i&&"multi"!=i||(be(n),xr(e)),!!i}function ua(e,t){var n=Qo(t,!0);return!!n&&(t.shiftKey&&!e.state.keySeq?aa(e,"Shift-"+n,t,(function(t){return ia(e,t,!0)}))||aa(e,n,t,(function(t){if("string"==typeof t?/^go[A-Z]/.test(t):t.motion)return ia(e,t)})):aa(e,n,t,(function(t){return ia(e,t)})))}var ca=null;function la(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField()||(t.curOp.focus=N(),me(t,e)))){a&&s<11&&27==e.keyCode&&(e.returnValue=!1);var r=e.keyCode;t.display.shift=16==r||e.shiftKey;var i=ua(t,e);p&&(ca=i?r:null,i||88!=r||Ie||!(v?e.metaKey:e.ctrlKey)||t.replaceSelection("",null,"cut")),n&&!v&&!i&&46==r&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),18!=r||/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)||function(e){var t=e.display.lineDiv;function n(e){18!=e.keyCode&&e.altKey||(k(t,"CodeMirror-crosshair"),de(document,"keyup",n),de(document,"mouseover",n))}I(t,"CodeMirror-crosshair"),pe(document,"keyup",n),pe(document,"mouseover",n)}(t)}}function pa(e){16==e.keyCode&&(this.doc.sel.shift=!1),me(this,e)}function fa(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField()||Dn(t.display,e)||me(t,e)||e.ctrlKey&&!e.altKey||v&&e.metaKey)){var n=e.keyCode,r=e.charCode;if(p&&n==ca)return ca=null,void be(e);if(!p||e.which&&!(e.which<10)||!ua(t,e)){var i=String.fromCharCode(null==r?n:r);"\b"!=i&&(function(e,t,n){return aa(e,"'"+n+"'",t,(function(t){return ia(e,t,!0)}))}(t,e,i)||t.display.input.onKeyPress(e))}}}var da,ha,ma=function(e,t,n){this.time=e,this.pos=t,this.button=n};function ga(e){var t=this,n=t.display;if(!(me(t,e)||n.activeTouch&&n.input.supportsTouch()))if(n.input.ensurePolled(),n.shift=e.shiftKey,Dn(n,e))u||(n.scroller.draggable=!1,setTimeout((function(){return n.scroller.draggable=!0}),100));else if(!ba(t,e)){var r=cr(t,e),i=we(e),o=r?function(e,t){var n=+new Date;return ha&&ha.compare(n,e,t)?(da=ha=null,"triple"):da&&da.compare(n,e,t)?(ha=new ma(n,e,t),da=null,"double"):(da=new ma(n,e,t),ha=null,"single")}(r,i):"single";window.focus(),1==i&&t.state.selectingText&&t.state.selectingText(e),r&&function(e,t,n,r,i){var o="Click";return"double"==r?o="Double"+o:"triple"==r&&(o="Triple"+o),aa(e,Jo(o=(1==t?"Left":2==t?"Middle":"Right")+o,i),i,(function(t){if("string"==typeof t&&(t=ta[t]),!t)return!1;var r=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),r=t(e,n)!=z}finally{e.state.suppressEdits=!1}return r}))}(t,i,r,o,e)||(1==i?r?function(e,t,n,r){a?setTimeout(L(Dr,e),0):e.curOp.focus=N();var i,o=function(e,t,n){var r=e.getOption("configureMouse"),i=r?r(e,t,n):{};if(null==i.unit){var o=b?n.shiftKey&&n.metaKey:n.altKey;i.unit=o?"rectangle":"single"==t?"char":"double"==t?"word":"line"}return(null==i.extend||e.doc.extend)&&(i.extend=e.doc.extend||n.shiftKey),null==i.addNew&&(i.addNew=v?n.metaKey:n.ctrlKey),null==i.moveOnDrag&&(i.moveOnDrag=!(v?n.altKey:n.ctrlKey)),i}(e,n,r),c=e.doc.sel;e.options.dragDrop&&Ae&&!e.isReadOnly()&&"single"==n&&(i=c.contains(t))>-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){u&&(i.scroller.draggable=!1),e.state.draggingText=!1,de(i.wrapper.ownerDocument,"mouseup",c),de(i.wrapper.ownerDocument,"mousemove",l),de(i.scroller,"dragstart",p),de(i.scroller,"drop",c),o||(be(t),r.addNew||Ji(e.doc,n,null,null,r.extend),u&&!f||a&&9==s?setTimeout((function(){i.wrapper.ownerDocument.body.focus({preventScroll:!0}),i.input.focus()}),20):i.input.focus())})),l=function(e){o=o||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},p=function(){return o=!0};u&&(i.scroller.draggable=!0),e.state.draggingText=c,c.copy=!r.moveOnDrag,i.scroller.dragDrop&&i.scroller.dragDrop(),pe(i.wrapper.ownerDocument,"mouseup",c),pe(i.wrapper.ownerDocument,"mousemove",l),pe(i.scroller,"dragstart",p),pe(i.scroller,"drop",c),Cr(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,u=o.sel,c=u.ranges;if(r.addNew&&!r.extend?(s=o.sel.contains(n),a=s>-1?c[s]:new Ci(n,n)):(a=o.sel.primary(),s=o.sel.primIndex),"rectangle"==r.unit)r.addNew||(a=new Ci(n,n)),n=cr(e,t,!0,!0),s=-1;else{var l=ya(e,n,r.unit);a=r.extend?Ki(a,l.anchor,l.head,r.extend):l}r.addNew?-1==s?(s=c.length,Zi(o,wi(e,c.concat([a]),s),{scroll:!1,origin:"*mouse"})):c.length>1&&c[s].empty()&&"char"==r.unit&&!r.extend?(Zi(o,wi(e,c.slice(0,s).concat(c.slice(s+1)),0),{scroll:!1,origin:"*mouse"}),u=o.sel):Yi(o,s,a,q):(s=0,Zi(o,new Di([a],0),q),u=o.sel);var p=n;function f(t){if(0!=tt(p,t))if(p=t,"rectangle"==r.unit){for(var i=[],c=e.options.tabSize,l=R(Ge(o,n.line).text,n.ch,c),f=R(Ge(o,t.line).text,t.ch,c),d=Math.min(l,f),h=Math.max(l,f),m=Math.min(n.line,t.line),g=Math.min(e.lastLine(),Math.max(n.line,t.line));m<=g;m++){var y=Ge(o,m).text,v=W(y,d,c);d==h?i.push(new Ci(et(m,v),et(m,v))):y.length>v&&i.push(new Ci(et(m,v),et(m,W(y,h,c))))}i.length||i.push(new Ci(n,n)),Zi(o,wi(e,u.ranges.slice(0,s).concat(i),s),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var b,E=a,x=ya(e,t,r.unit),D=E.anchor;tt(x.anchor,D)>0?(b=x.head,D=ot(E.from(),x.anchor)):(b=x.anchor,D=it(E.to(),x.head));var C=u.ranges.slice(0);C[s]=function(e,t){var n=t.anchor,r=t.head,i=Ge(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 u,c=a+(s.from==n.ch==(1!=s.level)?0:1);if(0==c||c==o.length)return t;if(r.line!=n.line)u=(r.line-n.line)*("ltr"==e.doc.direction?1:-1)>0;else{var l=se(o,r.ch,r.sticky),p=l-a||(r.ch-n.ch)*(1==s.level?-1:1);u=l==c-1||l==c?p<0:p>0}var f=o[c+(u?-1:0)],d=u==(1==f.level),h=d?f.from:f.to,m=d?"after":"before";return n.ch==h&&n.sticky==m?t:new Ci(new et(n.line,h,m),r)}(e,new Ci(st(o,D),b)),Zi(o,wi(e,C,s),q)}}var d=i.wrapper.getBoundingClientRect(),h=0;function m(t){e.state.selectingText=!1,h=1/0,t&&(be(t),i.input.focus()),de(i.wrapper.ownerDocument,"mousemove",g),de(i.wrapper.ownerDocument,"mouseup",y),o.history.lastSelOrigin=null}var g=ei(e,(function(t){0!==t.buttons&&we(t)?function t(n){var a=++h,s=cr(e,n,!0,"rectangle"==r.unit);if(s)if(0!=tt(s,p)){e.curOp.focus=N(),f(s);var u=Tr(i,o);(s.line>=u.to||s.line<u.from)&&setTimeout(ei(e,(function(){h==a&&t(n)})),150)}else{var c=n.clientY<d.top?-20:n.clientY>d.bottom?20:0;c&&setTimeout(ei(e,(function(){h==a&&(i.scroller.scrollTop+=c,t(n))})),50)}}(t):m(t)})),y=ei(e,m);e.state.selectingText=y,pe(i.wrapper.ownerDocument,"mousemove",g),pe(i.wrapper.ownerDocument,"mouseup",y)}(e,r,t,o)}(t,r,o,e):Ce(e)==n.scroller&&be(e):2==i?(r&&Ji(t.doc,r),setTimeout((function(){return n.input.focus()}),20)):3==i&&(C?t.display.input.onContextMenu(e):Cr(t)))}}function ya(e,t,n){if("char"==n)return new Ci(t,t);if("word"==n)return e.findWordAt(t);if("line"==n)return new Ci(et(t.line,0),st(e.doc,et(t.line+1,0)));var r=n(e,t);return new Ci(r.from,r.to)}function va(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||!ye(e,n))return xe(t);o-=s.top-a.viewOffset;for(var u=0;u<e.display.gutterSpecs.length;++u){var c=a.gutters.childNodes[u];if(c&&c.getBoundingClientRect().right>=i)return he(e,n,e,$e(e.doc,o),e.display.gutterSpecs[u].className,t),xe(t)}}function ba(e,t){return va(e,t,"gutterClick",!0)}function Ea(e,t){Dn(e.display,t)||function(e,t){return!!ye(e,"gutterContextMenu")&&va(e,t,"gutterContextMenu",!1)}(e,t)||me(e,t,"contextmenu")||C||e.display.input.onContextMenu(t)}function xa(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 Da={toString:function(){return"CodeMirror.Init"}},Ca={},wa={};function Sa(e,t,n){if(!t!=!(n&&n!=Da)){var r=e.display.dragFunctions,i=t?pe:de;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?(I(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(k(e.display.wrapper,"CodeMirror-wrap"),Wt(e)),ur(e),pr(e),Un(e),setTimeout((function(){return zr(e)}),100)}function Aa(e,t){var n=this;if(!(this instanceof Aa))return new Aa(e,t);this.options=t=t?P(t):{},P(Ca,t,!1);var r=t.value;"string"==typeof r?r=new Fo(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var i=new Aa.inputStyles[t.inputStyle](this),o=this.display=new gi(e,r,i,t);for(var c in o.wrapper.CodeMirror=this,xa(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Hr(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 B,keySeq:null,specialChars:null},t.autofocus&&!y&&o.input.focus(),a&&s<11&&setTimeout((function(){return n.display.input.reset(!0)}),20),function(e){var t=e.display;pe(t.scroller,"mousedown",ei(e,ga)),pe(t.scroller,"dblclick",a&&s<11?ei(e,(function(t){if(!me(e,t)){var n=cr(e,t);if(n&&!ba(e,t)&&!Dn(e.display,t)){be(t);var r=e.findWordAt(n);Ji(e.doc,r.anchor,r.head)}}})):function(t){return me(e,t)||be(t)}),pe(t.scroller,"contextmenu",(function(t){return Ea(e,t)})),pe(t.input.getField(),"contextmenu",(function(n){t.scroller.contains(n.target)||Ea(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}pe(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)}})),pe(t.scroller,"touchmove",(function(){t.activeTouch&&(t.activeTouch.moved=!0)})),pe(t.scroller,"touchend",(function(n){var r=t.activeTouch;if(r&&!Dn(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 Ci(s,s):!r.prev.prev||o(r,r.prev.prev)?e.findWordAt(s):new Ci(et(s.line,0),st(e.doc,et(s.line+1,0))),e.setSelection(a.anchor,a.head),e.focus(),be(n)}i()})),pe(t.scroller,"touchcancel",i),pe(t.scroller,"scroll",(function(){t.scroller.clientHeight&&(jr(e,t.scroller.scrollTop),Pr(e,t.scroller.scrollLeft,!0),he(e,"scroll",e))})),pe(t.scroller,"mousewheel",(function(t){return xi(e,t)})),pe(t.scroller,"DOMMouseScroll",(function(t){return xi(e,t)})),pe(t.wrapper,"scroll",(function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0})),t.dragFunctions={enter:function(t){me(e,t)||De(t)},over:function(t){me(e,t)||(function(e,t){var n=cr(e,t);if(n){var r=document.createDocumentFragment();vr(e,n,r),e.display.dragCursor||(e.display.dragCursor=_("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),T(e.display.dragCursor,r)}}(e,t),De(t))},start:function(t){return function(e,t){if(a&&(!e.state.draggingText||+new Date-No<100))De(t);else if(!me(e,t)&&!Dn(e.display,t)&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!f)){var n=_("img",null,null,"position: fixed; left: 0; top: 0;");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",p&&(n.width=n.height=1,e.display.wrapper.appendChild(n),n._top=n.offsetTop),t.dataTransfer.setDragImage(n,0,0),p&&n.parentNode.removeChild(n)}}(e,t)},drop:ei(e,Io),leave:function(t){me(e,t)||Mo(e)}};var u=t.input.getField();pe(u,"keyup",(function(t){return pa.call(e,t)})),pe(u,"keydown",ei(e,la)),pe(u,"keypress",ei(e,fa)),pe(u,"focus",(function(t){return wr(e,t)})),pe(u,"blur",(function(t){return Sr(e,t)}))}(this),Po(),Gr(this),this.curOp.forceUpdate=!0,ji(this,r),t.autofocus&&!y||this.hasFocus()?setTimeout((function(){n.hasFocus()&&!n.state.focused&&wr(n)}),20):Sr(this),wa)wa.hasOwnProperty(c)&&wa[c](this,t[c],Da);fi(this),t.finishInit&&t.finishInit(this);for(var l=0;l<Ta.length;++l)Ta[l](this);Kr(this),u&&t.lineWrapping&&"optimizelegibility"==getComputedStyle(o.lineDiv).textRendering&&(o.lineDiv.style.textRendering="auto")}Aa.defaults=Ca,Aa.optionHandlers=wa;var Ta=[];function _a(e,t,n,r){var i,o=e.doc;null==n&&(n="add"),"smart"==n&&(o.mode.indent?i=dt(e,t).state:n="prev");var a=e.options.tabSize,s=Ge(o,t),u=R(s.text,null,a);s.stateAfter&&(s.stateAfter=null);var c,l=s.text.match(/^\s*/)[0];if(r||/\S/.test(s.text)){if("smart"==n&&((c=o.mode.indent(i,s.text.slice(l.length),s.text))==z||c>150)){if(!r)return;n="prev"}}else c=0,n="not";"prev"==n?c=t>o.first?R(Ge(o,t-1).text,null,a):0:"add"==n?c=u+e.options.indentUnit:"subtract"==n?c=u-e.options.indentUnit:"number"==typeof n&&(c=u+n),c=Math.max(0,c);var p="",f=0;if(e.options.indentWithTabs)for(var d=Math.floor(c/a);d;--d)f+=a,p+="\t";if(f<c&&(p+=K(c-f)),p!=l)return mo(o,p,et(t,0),et(t,l.length),"+input"),s.stateAfter=null,!0;for(var h=0;h<o.sel.ranges.length;h++){var m=o.sel.ranges[h];if(m.head.line==t&&m.head.ch<l.length){var g=et(t,l.length);Yi(o,h,new Ci(g,g));break}}}Aa.defineInitHook=function(e){return Ta.push(e)};var Oa=null;function Fa(e){Oa=e}function Na(e,t,n,r,i){var o=e.doc;e.display.shift=!1,r||(r=o.sel);var a=+new Date-200,s="paste"==i||e.state.pasteIncoming>a,u=Fe(t),c=null;if(s&&r.ranges.length>1)if(Oa&&Oa.text.join("\n")==t){if(r.ranges.length%Oa.text.length==0){c=[];for(var l=0;l<Oa.text.length;l++)c.push(o.splitLines(Oa.text[l]))}}else u.length==r.ranges.length&&e.options.pasteLinesPerSelection&&(c=Q(u,(function(e){return[e]})));for(var p=e.curOp.updateInput,f=r.ranges.length-1;f>=0;f--){var d=r.ranges[f],h=d.from(),m=d.to();d.empty()&&(n&&n>0?h=et(h.line,h.ch-n):e.state.overwrite&&!s?m=et(m.line,Math.min(Ge(o,m.line).text.length,m.ch+J(u).length)):s&&Oa&&Oa.lineWise&&Oa.text.join("\n")==u.join("\n")&&(h=m=et(h.line,0)));var g={from:h,to:m,text:c?c[f%c.length]:u,origin:i||(s?"paste":e.state.cutIncoming>a?"cut":"+input")};co(e.doc,g),un(e,"inputRead",e,g)}t&&!s&&Ma(e,t),Fr(e),e.curOp.updateInput<2&&(e.curOp.updateInput=p),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Ia(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||Zr(t,(function(){return Na(t,n,0,null,"paste")})),!0}function Ma(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<o.electricChars.length;s++)if(t.indexOf(o.electricChars.charAt(s))>-1){a=_a(e,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(Ge(e.doc,i.head.line).text.slice(0,i.head.ch))&&(a=_a(e,i.head.line,"smart"));a&&un(e,"electricInput",e,i.head.line)}}}function ja(e){for(var t=[],n=[],r=0;r<e.doc.sel.ranges.length;r++){var i=e.doc.sel.ranges[r].head.line,o={anchor:et(i,0),head:et(i+1,0)};n.push(o),t.push(e.getRange(o.anchor,o.head))}return{text:t,ranges:n}}function La(e,t,n,r){e.setAttribute("autocorrect",n?"":"off"),e.setAttribute("autocapitalize",r?"":"off"),e.setAttribute("spellcheck",!!t)}function Pa(){var e=_("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),t=_("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return u?e.style.width="1000px":e.setAttribute("wrap","off"),m&&(e.style.border="1px solid black"),La(e),t}function Ra(e,t,n,r,i){var o=t,a=n,s=Ge(e,t.line),u=i&&"rtl"==e.direction?-n:n;function c(o){var a,c;if("codepoint"==r){var l=s.text.charCodeAt(t.ch+(r>0?0:-1));a=isNaN(l)?null:new et(t.line,Math.max(0,Math.min(s.text.length,t.ch+n*(l>=55296&&l<56320?2:1))),-n)}else a=i?function(e,t,n,r){var i=ce(t,e.doc.direction);if(!i)return Zo(t,n,r);n.ch>=t.text.length?(n.ch=t.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var 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<n.ch))return Zo(t,n,r);var s,u=function(e,n){return Xo(t,e instanceof et?e.ch:e,n)},c=function(n){return e.options.lineWrapping?(s=s||Nn(e,t),Xn(e,t,s,n)):{begin:0,end:t.text.length}},l=c("before"==n.sticky?u(n,-1):n.ch);if("rtl"==e.doc.direction||1==a.level){var p=1==a.level==r<0,f=u(n,p?1:-1);if(null!=f&&(p?f<=a.to&&f<=l.end:f>=a.from&&f>=l.begin)){var d=p?"before":"after";return new et(n.line,f,d)}}var h=function(e,t,r){for(var o=function(e,t){return t?new et(n.line,u(e,1),"before"):new et(n.line,e,"after")};e>=0&&e<i.length;e+=t){var a=i[e],s=t>0==(1!=a.level),c=s?r.begin:u(r.end,-1);if(a.from<=c&&c<a.to)return o(c,s);if(c=s?a.from:u(a.to,-1),r.begin<=c&&c<r.end)return o(c,s)}},m=h(o+r,r,l);if(m)return m;var g=r>0?l.end:u(l.begin,-1);return null==g||r>0&&g==t.text.length||!(m=h(r>0?0:i.length-1,r,c(g)))?null:m}(e.cm,s,t,n):Zo(s,t,n);if(null==a){if(o||(c=t.line+u)<e.first||c>=e.first+e.size||(t=new et(c,t.ch,t.sticky),!(s=Ge(e,c))))return!1;t=ea(i,e.cm,s,t.line,u)}else t=a;return!0}if("char"==r||"codepoint"==r)c();else if("column"==r)c(!0);else if("word"==r||"group"==r)for(var l=null,p="group"==r,f=e.cm&&e.cm.getHelper(t,"wordChars"),d=!0;!(n<0)||c(!d);d=!1){var h=s.text.charAt(t.ch)||"\n",m=ee(h,f)?"w":p&&"\n"==h?"n":!p||/\s/.test(h)?null:"p";if(!p||d||m||(m="s"),l&&l!=m){n<0&&(n=1,c(),t.sticky="after");break}if(m&&(l=m),n>0&&!c(!d))break}var g=oo(e,t,o,a,!0);return nt(o,g)&&(g.hitSide=!0),g}function Ba(e,t,n,r){var i,o,a=e.doc,s=t.left;if("page"==r){var u=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),c=Math.max(u-.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=Yn(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 B,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function za(e,t){var n=Fn(e,t.line);if(!n||n.hidden)return null;var r=Ge(e.doc,t.line),i=_n(n,r,t.line),o=ce(r,e.doc.direction),a="left";o&&(a=se(o,t.ch)%2?"right":"left");var s=Ln(i.map,t.ch,a);return s.offset="right"==s.collapse?s.end:s.start,s}function Va(e,t){return t&&(e.bad=!0),e}function qa(e,t,n){var r;if(t==e.display.lineDiv){if(!(r=e.display.lineDiv.childNodes[n]))return Va(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<e.display.view.length;i++){var o=e.display.view[i];if(o.node==r)return Ha(o,t,n)}}function Ha(e,t,n){var r=e.text.firstChild,i=!1;if(!t||!F(r,t))return Va(et(Ye(e.line),0),!0);if(t==r&&(i=!0,t=r.childNodes[n],n=0,!t)){var o=e.rest?J(e.rest):e.line;return Va(et(Ye(o),o.text.length),i)}var a=3==t.nodeType?t:null,s=t;for(a||1!=t.childNodes.length||3!=t.firstChild.nodeType||(a=t.firstChild,n&&(n=a.nodeValue.length));s.parentNode!=r;)s=s.parentNode;var u=e.measure,c=u.maps;function l(t,n,r){for(var i=-1;i<(c?c.length:0);i++)for(var o=i<0?u.map:c[i],a=0;a<o.length;a+=3){var s=o[a+2];if(s==t||s==n){var l=Ye(i<0?e.line:e.rest[i]),p=o[a]+r;return(r<0||s!=t)&&(p=o[a+(r?1:0)]),et(l,p)}}}var p=l(a,s,n);if(p)return Va(p,i);for(var f=s.nextSibling,d=a?a.nodeValue.length-n:0;f;f=f.nextSibling){if(p=l(f,f.firstChild,0))return Va(et(p.line,p.ch-d),i);d+=f.textContent.length}for(var h=s.previousSibling,m=n;h;h=h.previousSibling){if(p=l(h,h.firstChild,-1))return Va(et(p.line,p.ch+m),i);m+=h.textContent.length}}Ua.prototype.init=function(e){var t=this,n=this,r=n.cm,i=n.div=e.lineDiv;function o(e){for(var t=e.target;t;t=t.parentNode){if(t==i)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(t.className))break}return!1}function a(e){if(o(e)&&!me(r,e)){if(r.somethingSelected())Fa({lineWise:!1,text:r.getSelections()}),"cut"==e.type&&r.replaceSelection("",null,"cut");else{if(!r.options.lineWiseCopyCut)return;var t=ja(r);Fa({lineWise:!0,text:t.text}),"cut"==e.type&&r.operation((function(){r.setSelections(t.ranges,0,V),r.replaceSelection("",null,"cut")}))}if(e.clipboardData){e.clipboardData.clearData();var a=Oa.text.join("\n");if(e.clipboardData.setData("Text",a),e.clipboardData.getData("Text")==a)return void e.preventDefault()}var s=Pa(),u=s.firstChild;r.display.lineSpace.insertBefore(s,r.display.lineSpace.firstChild),u.value=Oa.text.join("\n");var c=document.activeElement;j(u),setTimeout((function(){r.display.lineSpace.removeChild(s),c.focus(),c==i&&n.showPrimarySelection()}),50)}}La(i,r.options.spellcheck,r.options.autocorrect,r.options.autocapitalize),pe(i,"paste",(function(e){!o(e)||me(r,e)||Ia(e,r)||s<=11&&setTimeout(ei(r,(function(){return t.updateFromDOM()})),20)})),pe(i,"compositionstart",(function(e){t.composing={data:e.data,done:!1}})),pe(i,"compositionupdate",(function(e){t.composing||(t.composing={data:e.data,done:!1})})),pe(i,"compositionend",(function(e){t.composing&&(e.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)})),pe(i,"touchstart",(function(){return n.forceCompositionEnd()})),pe(i,"input",(function(){t.composing||t.readFromDOMSoon()})),pe(i,"copy",a),pe(i,"cut",a)},Ua.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},Ua.prototype.prepareSelection=function(){var e=yr(this.cm,!1);return e.focus=document.activeElement==this.div,e},Ua.prototype.showSelection=function(e,t){e&&this.cm.display.view.length&&((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},Ua.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Ua.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,r=t.doc.sel.primary(),i=r.from(),o=r.to();if(t.display.viewTo==t.display.viewFrom||i.line>=t.display.viewTo||o.line<t.display.viewFrom)e.removeAllRanges();else{var a=qa(t,e.anchorNode,e.anchorOffset),s=qa(t,e.focusNode,e.focusOffset);if(!a||a.bad||!s||s.bad||0!=tt(ot(a,s),i)||0!=tt(it(a,s),o)){var u=t.display.view,c=i.line>=t.display.viewFrom&&za(t,i)||{node:u[0].measure.map[2],offset:0},l=o.line<t.display.viewTo&&za(t,o);if(!l){var p=u[u.length-1].measure,f=p.maps?p.maps[p.maps.length-1]:p.map;l={node:f[f.length-1],offset:f[f.length-2]-f[f.length-3]}}if(c&&l){var d,h=e.rangeCount&&e.getRangeAt(0);try{d=S(c.node,c.offset,l.offset,l.node)}catch(e){}d&&(!n&&t.state.focused?(e.collapse(c.node,c.offset),d.collapsed||(e.removeAllRanges(),e.addRange(d))):(e.removeAllRanges(),e.addRange(d)),h&&null==e.anchorNode?e.addRange(h):n&&this.startGracePeriod()),this.rememberSelection()}else e.removeAllRanges()}}},Ua.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout((function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation((function(){return e.cm.curOp.selectionChanged=!0}))}),20)},Ua.prototype.showMultipleSelections=function(e){T(this.cm.display.cursorDiv,e.cursors),T(this.cm.display.selectionDiv,e.selection)},Ua.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},Ua.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return F(this.div,t)},Ua.prototype.focus=function(){"nocursor"!=this.cm.options.readOnly&&(this.selectionInEditor()&&document.activeElement==this.div||this.showSelection(this.prepareSelection(),!0),this.div.focus())},Ua.prototype.blur=function(){this.div.blur()},Ua.prototype.getField=function(){return this.div},Ua.prototype.supportsTouch=function(){return!0},Ua.prototype.receivedFocus=function(){var e=this;this.selectionInEditor()?this.pollSelection():Zr(this.cm,(function(){return e.cm.curOp.selectionChanged=!0})),this.polling.set(this.cm.options.pollInterval,(function t(){e.cm.state.focused&&(e.pollSelection(),e.polling.set(e.cm.options.pollInterval,t))}))},Ua.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},Ua.prototype.pollSelection=function(){if(null==this.readDOMTimeout&&!this.gracePeriod&&this.selectionChanged()){var e=this.getSelection(),t=this.cm;if(g&&l&&this.cm.display.gutterSpecs.length&&function(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}(e.anchorNode))return this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),void this.focus();if(!this.composing){this.rememberSelection();var n=qa(t,e.anchorNode,e.anchorOffset),r=qa(t,e.focusNode,e.focusOffset);n&&r&&Zr(t,(function(){Zi(t.doc,Si(n,r),V),(n.bad||r.bad)&&(t.curOp.selectionChanged=!0)}))}}},Ua.prototype.pollContent=function(){null!=this.readDOMTimeout&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e,t,n,r=this.cm,i=r.display,o=r.doc.sel.primary(),a=o.from(),s=o.to();if(0==a.ch&&a.line>r.firstLine()&&(a=et(a.line-1,Ge(r.doc,a.line-1).length)),s.ch==Ge(r.doc,s.line).text.length&&s.line<r.lastLine()&&(s=et(s.line+1,0)),a.line<i.viewFrom||s.line>i.viewTo-1)return!1;a.line==i.viewFrom||0==(e=lr(r,a.line))?(t=Ye(i.view[0].line),n=i.view[0].node):(t=Ye(i.view[e].line),n=i.view[e-1].node.nextSibling);var u,c,l=lr(r,s.line);if(l==i.view.length-1?(u=i.viewTo-1,c=i.lineDiv.lastChild):(u=Ye(i.view[l+1].line)-1,c=i.view[l+1].node.previousSibling),!n)return!1;for(var p=r.doc.splitLines(function(e,t,n,r,i){var o="",a=!1,s=e.doc.lineSeparator(),u=!1;function c(){a&&(o+=s,u&&(o+=s),a=u=!1)}function l(e){e&&(c(),o+=e)}function p(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(n)return void l(n);var o,f=t.getAttribute("cm-marker");if(f){var d=e.findMarks(et(r,0),et(i+1,0),(g=+f,function(e){return e.id==g}));return void(d.length&&(o=d[0].find(0))&&l(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;m<t.childNodes.length;m++)p(t.childNodes[m]);/^(pre|p)$/i.test(t.nodeName)&&(u=!0),h&&(a=!0)}else 3==t.nodeType&&l(t.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "));var g}for(;p(t),t!=n;)t=t.nextSibling,u=!1;return o}(r,n,c,t,u)),f=Ke(r.doc,et(t,0),et(u,Ge(r.doc,u).text.length));p.length>1&&f.length>1;)if(J(p)==J(f))p.pop(),f.pop(),u--;else{if(p[0]!=f[0])break;p.shift(),f.shift(),t++}for(var d=0,h=0,m=p[0],g=f[0],y=Math.min(m.length,g.length);d<y&&m.charCodeAt(d)==g.charCodeAt(d);)++d;for(var v=J(p),b=J(f),E=Math.min(v.length-(1==p.length?d:0),b.length-(1==f.length?d:0));h<E&&v.charCodeAt(v.length-h-1)==b.charCodeAt(b.length-h-1);)++h;if(1==p.length&&1==f.length&&t==a.line)for(;d&&d>a.ch&&v.charCodeAt(v.length-h-1)==b.charCodeAt(b.length-h-1);)d--,h++;p[p.length-1]=v.slice(0,v.length-h).replace(/^\u200b+/,""),p[0]=p[0].slice(d).replace(/\u200b+$/,"");var x=et(t,d),D=et(u,f.length?J(f).length-h:0);return p.length>1||p[0]||tt(x,D)?(mo(r.doc,p,x,D,"+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 pr(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,Na)(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 Wa=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new B,this.hasSelection=!1,this.composing=null};Wa.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())Fa({lineWise:!1,text:r.getSelections()});else{if(!r.options.lineWiseCopyCut)return;var t=ja(r);Fa({lineWise:!0,text:t.text}),"cut"==e.type?r.setSelections(t.ranges,null,V):(n.prevInput="",i.value=t.text.join("\n"),j(i))}"cut"==e.type&&(r.state.cutIncoming=+new Date)}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),m&&(i.style.width="0px"),pe(i,"input",(function(){a&&s>=9&&t.hasSelection&&(t.hasSelection=null),n.poll()})),pe(i,"paste",(function(e){me(r,e)||Ia(e,r)||(r.state.pasteIncoming=+new Date,n.fastPoll())})),pe(i,"cut",o),pe(i,"copy",o),pe(e.scroller,"paste",(function(t){if(!Dn(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)}})),pe(e.lineSpace,"selectstart",(function(t){Dn(e,t)||be(t)})),pe(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"})}})),pe(i,"compositionend",(function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)}))},Wa.prototype.createField=function(e){this.wrapper=Pa(),this.textarea=this.wrapper.firstChild},Wa.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},Wa.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=yr(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},Wa.prototype.showSelection=function(e){var t=this.cm.display;T(t.cursorDiv,e.cursors),T(t.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},Wa.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&&j(this.textarea),a&&s>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",a&&s>=9&&(this.hasSelection=null))}},Wa.prototype.getField=function(){return this.textarea},Wa.prototype.supportsTouch=function(){return!1},Wa.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!y||N()!=this.textarea))try{this.textarea.focus()}catch(e){}},Wa.prototype.blur=function(){this.textarea.blur()},Wa.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Wa.prototype.receivedFocus=function(){this.slowPoll()},Wa.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,(function(){e.poll(),e.cm.state.focused&&e.slowPoll()}))},Wa.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))}))},Wa.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||!t.state.focused||Ne(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||v&&/[\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 u=0,c=Math.min(r.length,i.length);u<c&&r.charCodeAt(u)==i.charCodeAt(u);)++u;return Zr(t,(function(){Na(t,i.slice(u),r.length-u,null,e.composing?"*compose":null),i.length>1e3||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},Wa.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Wa.prototype.onKeyPress=function(){a&&s>=9&&(this.hasSelection=null),this.fastPoll()},Wa.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&&!p){n.options.resetSelectionOnContextMenu&&-1==n.doc.sel.contains(o)&&ei(n,Zi)(n.doc,Si(o),V);var l,f=i.style.cssText,d=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);",u&&(l=window.scrollY),r.input.focus(),u&&window.scrollTo(null,l),r.input.reset(),n.somethingSelected()||(i.value=t.prevInput=" "),t.contextMenuPending=y,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll),a&&s>=9&&g(),C){De(e);var m=function(){de(window,"mouseup",m),setTimeout(y,20)};pe(window,"mouseup",m)}else setTimeout(y,50)}function g(){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 y(){if(t.contextMenuPending==y&&(t.contextMenuPending=!1,t.wrapper.style.cssText=d,i.style.cssText=f,a&&s<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=c),null!=i.selectionStart)){(!a||a&&s<9)&&g();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)}}},Wa.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e,this.textarea.readOnly=!!e},Wa.prototype.setUneditable=function(){},Wa.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!=Da&&i(e,t,n)}:i)}e.defineOption=n,e.Init=Da,n("value","",(function(e,t){return e.setValue(t)}),!0),n("mode",null,(function(e,t){e.doc.modeOption=t,Oi(e)}),!0),n("indentUnit",2,Oi,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,(function(e){Fi(e),Un(e),pr(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!=Da&&e.refresh()})),n("specialCharPlaceholder",Xt,(function(e){return e.refresh()}),!0),n("electricChars",!0),n("inputStyle",y?"contenteditable":"textarea",(function(){throw new Error("inputStyle can not (yet) be changed in a running editor")}),!0),n("spellcheck",!1,(function(e,t){return e.getInputField().spellcheck=t}),!0),n("autocorrect",!1,(function(e,t){return e.getInputField().autocorrect=t}),!0),n("autocapitalize",!1,(function(e,t){return e.getInputField().autocapitalize=t}),!0),n("rtlMoveVisually",!E),n("wholeLineUpdateBefore",!0),n("theme","default",(function(e){xa(e),mi(e)}),!0),n("keyMap","default",(function(e,t,n){var r=Yo(t),i=n!=Da&&Yo(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=di(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 zr(e)}),!0),n("scrollbarStyle","native",(function(e){Hr(e),zr(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=di(e.options.gutters,t),mi(e)}),!0),n("firstLineNumber",1,mi,!0),n("lineNumberFormatter",(function(e){return e}),mi,!0),n("showCursorWhenSelecting",!1,gr,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,(function(e,t){"nocursor"==t&&(Sr(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,Sa),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,gr,!0),n("singleCursorHeightPerLine",!0,gr,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,Fi,!0),n("addModeClass",!1,Fi,!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,Fi,!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)}(Aa),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"](Yo(e))},removeKeyMap:function(e){for(var t=this.state.keyMaps,n=0;n<t.length;++n)if(t[n]==e||t[n].name==e)return t.splice(n,1),!0},addOverlay:ti((function(t,n){var r=t.token?t:e.getMode(this.options,t);if(r.startState)throw new Error("Overlays may not be stateful.");!function(e,t,n){for(var r=0,i=n(t);r<e.length&&n(e[r])<=i;)r++;e.splice(r,0,t)}(this.state.overlays,{mode:r,modeSpec:t,opaque:n&&n.opaque,priority:n&&n.priority||0},(function(e){return e.priority})),this.state.modeGen++,pr(this)})),removeOverlay:ti((function(e){for(var t=this.state.overlays,n=0;n<t.length;++n){var r=t[n].modeSpec;if(r==e||"string"==typeof e&&r.name==e)return t.splice(n,1),this.state.modeGen++,void pr(this)}})),indentLine:ti((function(e,t,n){"string"!=typeof t&&"number"!=typeof t&&(t=null==t?this.options.smartIndent?"smart":"prev":t?"add":"subtract"),Xe(this.doc,e)&&_a(this,e,t,n)})),indentSelection:ti((function(e){for(var t=this.doc.sel.ranges,n=-1,r=0;r<t.length;r++){var i=t[r];if(i.empty())i.head.line>n&&(_a(this,i.head.line,e,!0),n=i.head.line,r==this.doc.sel.primIndex&&Fr(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 u=s;u<n;++u)_a(this,u,e);var c=this.doc.sel.ranges;0==o.ch&&t.length==c.length&&c[r].from().ch>0&&Yi(this.doc,r,new Ci(o,c[r].to()),V)}}})),getTokenAt:function(e,t){return vt(this,e,t)},getLineTokens:function(e,t){return vt(this,et(e),t,!0)},getTokenTypeAt:function(e){e=st(this.doc,e);var t,n=ft(this,Ge(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)){t=n[2*a+2];break}r=a+1}}var s=t?t.indexOf("overlay "):-1;return s<0?t:0==s?null:t.slice(0,s-1)},getModeAt:function(t){var n=this.doc.mode;return n.innerMode?e.innerMode(n,this.getTokenAt(t).state).mode:n},getHelper:function(e,t){return this.getHelpers(e,t)[0]},getHelpers:function(e,t){var r=[];if(!n.hasOwnProperty(t))return r;var i=n[t],o=this.getModeAt(e);if("string"==typeof o[t])i[o[t]]&&r.push(i[o[t]]);else if(o[t])for(var a=0;a<o[t].length;a++){var s=i[o[t][a]];s&&r.push(s)}else o.helperType&&i[o.helperType]?r.push(i[o.helperType]):i[o.name]&&r.push(i[o.name]);for(var u=0;u<i._global.length;u++){var c=i._global[u];c.pred(o,this)&&-1==U(r,c.val)&&r.push(c.val)}return r},getStateAfter:function(e,t){var n=this.doc;return dt(this,(e=at(n,null==e?n.first+n.size-1:e))+1,t).state},cursorCoords:function(e,t){var n=this.doc.sel.primary();return Kn(this,null==e?n.head:"object"==typeof e?st(this.doc,e):e?n.from():n.to(),t||"page")},charCoords:function(e,t){return Gn(this,st(this.doc,e),t||"page")},coordsChar:function(e,t){return Yn(this,(e=Wn(this,e,t||"page")).left,e.top)},lineAtHeight:function(e,t){return e=Wn(this,{top:e,left:0},t||"page").top,$e(this.doc,e+this.display.viewOffset)},heightAtLine:function(e,t,n){var r,i=!1;if("number"==typeof e){var o=this.doc.first+this.doc.size-1;e<this.doc.first?e=this.doc.first:e>o&&(e=o,i=!0),r=Ge(this.doc,e)}else r=e;return Hn(this,r,{top:0,left:0},t||"page",n||i).top+(i?this.doc.height-qt(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,u=this.display,c=(e=Kn(this,st(this.doc,e))).bottom,l=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),u.sizer.appendChild(t),"over"==r)c=e.top;else if("above"==r||"near"==r){var p=Math.max(u.wrapper.clientHeight,this.doc.height),f=Math.max(u.sizer.clientWidth,u.lineSpace.clientWidth);("above"==r||e.bottom+t.offsetHeight>p)&&e.top>t.offsetHeight?c=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=p&&(c=e.bottom),l+t.offsetWidth>f&&(l=f-t.offsetWidth)}t.style.top=c+"px",t.style.left=t.style.right="","right"==i?(l=u.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==i?l=0:"middle"==i&&(l=(u.sizer.clientWidth-t.offsetWidth)/2),t.style.left=l+"px"),n&&(o=this,a={left:l,top:c,right:l+t.offsetWidth,bottom:c+t.offsetHeight},null!=(s=_r(o,a)).scrollTop&&jr(o,s.scrollTop),null!=s.scrollLeft&&Pr(o,s.scrollLeft))},triggerOnKeyDown:ti(la),triggerOnKeyPress:ti(fa),triggerOnKeyUp:pa,triggerOnMouseDown:ti(ga),execCommand:function(e){if(ta.hasOwnProperty(e))return ta[e].call(null,this)},triggerElectric:ti((function(e){Ma(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;a<t&&!(o=Ra(this.doc,o,i,n,r)).hitSide;++a);return o},moveH:ti((function(e,t){var n=this;this.extendSelectionsBy((function(r){return n.display.shift||n.doc.extend||r.empty()?Ra(n.doc,r.head,e,t,n.options.rtlMoveVisually):e<0?r.from():r.to()}),H)})),deleteH:ti((function(e,t){var n=this.doc.sel,r=this.doc;n.somethingSelected()?r.replaceSelection("",null,"+delete"):$o(this,(function(n){var i=Ra(r,n.head,e,t,!1);return e<0?{from:i,to:n.head}:{from:n.head,to:i}}))})),findPosV:function(e,t,n,r){var i=1,o=r;t<0&&(i=-1,t=-t);for(var a=st(this.doc,e),s=0;s<t;++s){var u=Kn(this,a,"div");if(null==o?o=u.left:u.left=o,(a=Ba(this,u,i,n)).hitSide)break}return a},moveV:ti((function(e,t){var n=this,r=this.doc,i=[],o=!this.display.shift&&!r.extend&&r.sel.somethingSelected();if(r.extendSelectionsBy((function(a){if(o)return e<0?a.from():a.to();var s=Kn(n,a.head,"div");null!=a.goalColumn&&(s.left=a.goalColumn),i.push(s.left);var u=Ba(n,s,e,t);return"page"==t&&a==r.sel.primary()&&Or(n,Gn(n,u,"div").top-s.top),u}),H),i.length)for(var a=0;a<r.sel.ranges.length;a++)r.sel.ranges[a].goalColumn=i[a]})),findWordAt:function(e){var t=Ge(this.doc,e.line).text,n=e.ch,r=e.ch;if(t){var i=this.getHelper(e,"wordChars");"before"!=e.sticky&&r!=t.length||!n?++r:--n;for(var o=t.charAt(n),a=ee(o,i)?function(e){return ee(e,i)}:/\s/.test(o)?function(e){return/\s/.test(e)}:function(e){return!/\s/.test(e)&&!ee(e)};n>0&&a(t.charAt(n-1));)--n;for(;r<t.length&&a(t.charAt(r));)++r}return new Ci(et(e.line,n),et(e.line,r))},toggleOverwrite:function(e){null!=e&&e==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?I(this.display.cursorDiv,"CodeMirror-overwrite"):k(this.display.cursorDiv,"CodeMirror-overwrite"),he(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==N()},isReadOnly:function(){return!(!this.options.readOnly&&!this.doc.cantEdit)},scrollTo:ti((function(e,t){Nr(this,e,t)})),getScrollInfo:function(){var e=this.display.scroller;return{left:e.scrollLeft,top:e.scrollTop,height:e.scrollHeight-kn(this)-this.display.barHeight,width:e.scrollWidth-kn(this)-this.display.barWidth,clientHeight:Tn(this),clientWidth:An(this)}},scrollIntoView:ti((function(e,t){null==e?(e={from:this.doc.sel.primary().head,to:null},null==t&&(t=this.options.cursorScrollMargin)):"number"==typeof e?e={from:et(e,0),to:null}:null==e.from&&(e={from:e,to:null}),e.to||(e.to=e.from),e.margin=t||0,null!=e.from.line?function(e,t){Ir(e),e.curOp.scrollToPos=t}(this,e):Mr(this,e.from,e.to,e.margin)})),setSize:ti((function(e,t){var n=this,r=function(e){return"number"==typeof e||/^\d+$/.test(String(e))?e+"px":e};null!=e&&(this.display.wrapper.style.width=r(e)),null!=t&&(this.display.wrapper.style.height=r(t)),this.options.lineWrapping&&Bn(this);var i=this.display.viewFrom;this.doc.iter(i,this.display.viewTo,(function(e){if(e.widgets)for(var t=0;t<e.widgets.length;t++)if(e.widgets[t].noHScroll){fr(n,i,"widget");break}++i})),this.curOp.forceUpdate=!0,he(this,"refresh",this)})),operation:function(e){return Zr(this,e)},startOperation:function(){return Gr(this)},endOperation:function(){return Kr(this)},refresh:ti((function(){var e=this.display.cachedTextHeight;pr(this),this.curOp.forceUpdate=!0,Un(this),Nr(this,this.doc.scrollLeft,this.doc.scrollTop),ci(this.display),(null==e||Math.abs(e-rr(this.display))>.5||this.options.lineWrapping)&&ur(this),he(this,"refresh",this)})),swapDoc:ti((function(e){var t=this.doc;return t.cm=null,this.state.selectingText&&this.state.selectingText(),ji(this,e),Un(this),this.display.input.reset(),Nr(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,un(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}},ve(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})}}(Aa);var Ga="iter insert remove copy getEditor constructor".split(" ");for(var Ka in Fo.prototype)Fo.prototype.hasOwnProperty(Ka)&&U(Ga,Ka)<0&&(Aa.prototype[Ka]=function(e){return function(){return e.apply(this.doc,arguments)}}(Fo.prototype[Ka]));return ve(Fo),Aa.inputStyles={textarea:Wa,contenteditable:Ua},Aa.defineMode=function(e){Aa.defaults.mode||"null"==e||(Aa.defaults.mode=e),Pe.apply(this,arguments)},Aa.defineMIME=function(e,t){Le[e]=t},Aa.defineMode("null",(function(){return{token:function(e){return e.skipToEnd()}}})),Aa.defineMIME("text/plain","null"),Aa.defineExtension=function(e,t){Aa.prototype[e]=t},Aa.defineDocExtension=function(e,t){Fo.prototype[e]=t},Aa.fromTextArea=function(e,t){if((t=t?P(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=N();t.autofocus=n==e||null!=e.getAttribute("autofocus")&&n==document.body}function r(){e.value=s.getValue()}var i;if(e.form&&(pe(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&&(de(e.form,"submit",r),t.leaveSubmitMethodAlone||"function"!=typeof e.form.submit||(e.form.submit=i))}},e.style.display="none";var s=Aa((function(t){return e.parentNode.insertBefore(t,e.nextSibling)}),t);return s},function(e){e.off=de,e.on=pe,e.wheelEventPixels=Ei,e.Doc=Fo,e.splitLines=Fe,e.countColumn=R,e.findColumn=W,e.isWordChar=Z,e.Pass=z,e.signal=he,e.Line=Gt,e.changeEnd=ki,e.scrollbarModel=qr,e.Pos=et,e.cmpPos=tt,e.modes=je,e.mimeModes=Le,e.resolveMode=Re,e.getMode=Be,e.modeExtensions=Ue,e.extendMode=ze,e.copyState=Ve,e.startState=He,e.innerMode=qe,e.commands=ta,e.keyMap=qo,e.keyName=Qo,e.isModifierKey=Ko,e.lookupKey=Go,e.normalizeKeyMap=Wo,e.StringStream=We,e.SharedTextMarker=Ao,e.TextMarker=So,e.LineWidget=Do,e.e_preventDefault=be,e.e_stopPropagation=Ee,e.e_stop=De,e.addClass=I,e.contains=F,e.rmClass=k,e.keyNames=Bo}(Aa),Aa.version="5.58.1",Aa}()},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";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return a})),n.d(t,"d",(function(){return s})),n.d(t,"e",(function(){return u})),n.d(t,"f",(function(){return c})),n.d(t,"g",(function(){return h})),n.d(t,"h",(function(){return l})),n.d(t,"i",(function(){return p})),n.d(t,"j",(function(){return f})),n.d(t,"k",(function(){return d}));var r=function(e){return"@@redux-saga/"+e},i=r("CANCEL_PROMISE"),o=r("CHANNEL_END"),a=r("IO"),s=r("MATCH"),u=r("MULTICAST"),c=r("SAGA_ACTION"),l=r("SELF_CANCELLATION"),p=r("TASK"),f=r("TASK_CANCEL"),d=r("TERMINATE"),h=r("LOCATION")},function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return o})),n.d(t,"c",(function(){return a})),n.d(t,"d",(function(){return s}));
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function i(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function s(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}},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 de})),n.d(t,"graphqlSync",(function(){return he})),n.d(t,"GraphQLSchema",(function(){return ge.a})),n.d(t,"GraphQLDirective",(function(){return x.c})),n.d(t,"GraphQLScalarType",(function(){return D.g})),n.d(t,"GraphQLObjectType",(function(){return D.f})),n.d(t,"GraphQLInterfaceType",(function(){return D.c})),n.d(t,"GraphQLUnionType",(function(){return D.h})),n.d(t,"GraphQLEnumType",(function(){return D.a})),n.d(t,"GraphQLInputObjectType",(function(){return D.b})),n.d(t,"GraphQLList",(function(){return D.d})),n.d(t,"GraphQLNonNull",(function(){return D.e})),n.d(t,"specifiedScalarTypes",(function(){return ye.g})),n.d(t,"GraphQLInt",(function(){return ye.d})),n.d(t,"GraphQLFloat",(function(){return ye.b})),n.d(t,"GraphQLString",(function(){return ye.e})),n.d(t,"GraphQLBoolean",(function(){return ye.a})),n.d(t,"GraphQLID",(function(){return ye.c})),n.d(t,"specifiedDirectives",(function(){return x.j})),n.d(t,"GraphQLIncludeDirective",(function(){return x.d})),n.d(t,"GraphQLSkipDirective",(function(){return x.e})),n.d(t,"GraphQLDeprecatedDirective",(function(){return x.b})),n.d(t,"GraphQLSpecifiedByDirective",(function(){return x.f})),n.d(t,"TypeKind",(function(){return E.TypeKind})),n.d(t,"DEFAULT_DEPRECATION_REASON",(function(){return x.a})),n.d(t,"introspectionTypes",(function(){return E.introspectionTypes})),n.d(t,"__Schema",(function(){return E.__Schema})),n.d(t,"__Directive",(function(){return E.__Directive})),n.d(t,"__DirectiveLocation",(function(){return E.__DirectiveLocation})),n.d(t,"__Type",(function(){return E.__Type})),n.d(t,"__Field",(function(){return E.__Field})),n.d(t,"__InputValue",(function(){return E.__InputValue})),n.d(t,"__EnumValue",(function(){return E.__EnumValue})),n.d(t,"__TypeKind",(function(){return E.__TypeKind})),n.d(t,"SchemaMetaFieldDef",(function(){return E.SchemaMetaFieldDef})),n.d(t,"TypeMetaFieldDef",(function(){return E.TypeMetaFieldDef})),n.d(t,"TypeNameMetaFieldDef",(function(){return E.TypeNameMetaFieldDef})),n.d(t,"isSchema",(function(){return ge.c})),n.d(t,"isDirective",(function(){return x.h})),n.d(t,"isType",(function(){return D.S})),n.d(t,"isScalarType",(function(){return D.R})),n.d(t,"isObjectType",(function(){return D.N})),n.d(t,"isInterfaceType",(function(){return D.H})),n.d(t,"isUnionType",(function(){return D.T})),n.d(t,"isEnumType",(function(){return D.E})),n.d(t,"isInputObjectType",(function(){return D.F})),n.d(t,"isListType",(function(){return D.J})),n.d(t,"isNonNullType",(function(){return D.L})),n.d(t,"isInputType",(function(){return D.G})),n.d(t,"isOutputType",(function(){return D.O})),n.d(t,"isLeafType",(function(){return D.I})),n.d(t,"isCompositeType",(function(){return D.D})),n.d(t,"isAbstractType",(function(){return D.C})),n.d(t,"isWrappingType",(function(){return D.U})),n.d(t,"isNullableType",(function(){return D.M})),n.d(t,"isNamedType",(function(){return D.K})),n.d(t,"isRequiredArgument",(function(){return D.P})),n.d(t,"isRequiredInputField",(function(){return D.Q})),n.d(t,"isSpecifiedScalarType",(function(){return ye.f})),n.d(t,"isIntrospectionType",(function(){return E.isIntrospectionType})),n.d(t,"isSpecifiedDirective",(function(){return x.i})),n.d(t,"assertSchema",(function(){return ge.b})),n.d(t,"assertDirective",(function(){return x.g})),n.d(t,"assertType",(function(){return D.x})),n.d(t,"assertScalarType",(function(){return D.w})),n.d(t,"assertObjectType",(function(){return D.u})),n.d(t,"assertInterfaceType",(function(){return D.o})),n.d(t,"assertUnionType",(function(){return D.y})),n.d(t,"assertEnumType",(function(){return D.l})),n.d(t,"assertInputObjectType",(function(){return D.m})),n.d(t,"assertListType",(function(){return D.q})),n.d(t,"assertNonNullType",(function(){return D.s})),n.d(t,"assertInputType",(function(){return D.n})),n.d(t,"assertOutputType",(function(){return D.v})),n.d(t,"assertLeafType",(function(){return D.p})),n.d(t,"assertCompositeType",(function(){return D.k})),n.d(t,"assertAbstractType",(function(){return D.j})),n.d(t,"assertWrappingType",(function(){return D.z})),n.d(t,"assertNullableType",(function(){return D.t})),n.d(t,"assertNamedType",(function(){return D.r})),n.d(t,"getNullableType",(function(){return D.B})),n.d(t,"getNamedType",(function(){return D.A})),n.d(t,"validateSchema",(function(){return u.b})),n.d(t,"assertValidSchema",(function(){return u.a})),n.d(t,"Token",(function(){return ve.b})),n.d(t,"Source",(function(){return be.a})),n.d(t,"Location",(function(){return ve.a})),n.d(t,"getLocation",(function(){return Ee.a})),n.d(t,"printLocation",(function(){return xe.a})),n.d(t,"printSourceLocation",(function(){return xe.b})),n.d(t,"Lexer",(function(){return De.a})),n.d(t,"TokenKind",(function(){return Ce.a})),n.d(t,"parse",(function(){return a.a})),n.d(t,"parseValue",(function(){return a.c})),n.d(t,"parseType",(function(){return a.b})),n.d(t,"print",(function(){return T.print})),n.d(t,"visit",(function(){return we.c})),n.d(t,"visitInParallel",(function(){return we.d})),n.d(t,"getVisitFn",(function(){return we.b})),n.d(t,"BREAK",(function(){return we.a})),n.d(t,"Kind",(function(){return b.a})),n.d(t,"DirectiveLocation",(function(){return Se.a})),n.d(t,"isDefinitionNode",(function(){return ke.a})),n.d(t,"isExecutableDefinitionNode",(function(){return ke.b})),n.d(t,"isSelectionNode",(function(){return ke.c})),n.d(t,"isValueNode",(function(){return ke.i})),n.d(t,"isTypeNode",(function(){return ke.f})),n.d(t,"isTypeSystemDefinitionNode",(function(){return ke.g})),n.d(t,"isTypeDefinitionNode",(function(){return ke.d})),n.d(t,"isTypeSystemExtensionNode",(function(){return ke.h})),n.d(t,"isTypeExtensionNode",(function(){return ke.e})),n.d(t,"execute",(function(){return z})),n.d(t,"executeSync",(function(){return V})),n.d(t,"defaultFieldResolver",(function(){return pe})),n.d(t,"defaultTypeResolver",(function(){return le})),n.d(t,"responsePathAsArray",(function(){return g})),n.d(t,"getDirectiveValues",(function(){return B})),n.d(t,"subscribe",(function(){return Ne})),n.d(t,"createSourceEventStream",(function(){return je})),n.d(t,"validate",(function(){return s.c})),n.d(t,"ValidationContext",(function(){return Pe.b})),n.d(t,"specifiedRules",(function(){return Re.a})),n.d(t,"ExecutableDefinitionsRule",(function(){return Be.a})),n.d(t,"FieldsOnCorrectTypeRule",(function(){return Ue.a})),n.d(t,"FragmentsOnCompositeTypesRule",(function(){return ze.a})),n.d(t,"KnownArgumentNamesRule",(function(){return Ve.b})),n.d(t,"KnownDirectivesRule",(function(){return qe.a})),n.d(t,"KnownFragmentNamesRule",(function(){return He.a})),n.d(t,"KnownTypeNamesRule",(function(){return We.a})),n.d(t,"LoneAnonymousOperationRule",(function(){return Ge.a})),n.d(t,"NoFragmentCyclesRule",(function(){return Ke.a})),n.d(t,"NoUndefinedVariablesRule",(function(){return Je.a})),n.d(t,"NoUnusedFragmentsRule",(function(){return Qe.a})),n.d(t,"NoUnusedVariablesRule",(function(){return Ye.a})),n.d(t,"OverlappingFieldsCanBeMergedRule",(function(){return $e.a})),n.d(t,"PossibleFragmentSpreadsRule",(function(){return Xe.a})),n.d(t,"ProvidedRequiredArgumentsRule",(function(){return Ze.b})),n.d(t,"ScalarLeafsRule",(function(){return et.a})),n.d(t,"SingleFieldSubscriptionsRule",(function(){return tt.a})),n.d(t,"UniqueArgumentNamesRule",(function(){return nt.a})),n.d(t,"UniqueDirectivesPerLocationRule",(function(){return rt.a})),n.d(t,"UniqueFragmentNamesRule",(function(){return it.a})),n.d(t,"UniqueInputFieldNamesRule",(function(){return ot.a})),n.d(t,"UniqueOperationNamesRule",(function(){return at.a})),n.d(t,"UniqueVariableNamesRule",(function(){return st.a})),n.d(t,"ValuesOfCorrectTypeRule",(function(){return ut.a})),n.d(t,"VariablesAreInputTypesRule",(function(){return ct.a})),n.d(t,"VariablesInAllowedPositionRule",(function(){return lt.a})),n.d(t,"LoneSchemaDefinitionRule",(function(){return pt.a})),n.d(t,"UniqueOperationTypesRule",(function(){return ft.a})),n.d(t,"UniqueTypeNamesRule",(function(){return dt.a})),n.d(t,"UniqueEnumValueNamesRule",(function(){return ht.a})),n.d(t,"UniqueFieldDefinitionNamesRule",(function(){return mt.a})),n.d(t,"UniqueDirectiveNamesRule",(function(){return gt.a})),n.d(t,"PossibleTypeExtensionsRule",(function(){return yt.a})),n.d(t,"NoDeprecatedCustomRule",(function(){return vt.a})),n.d(t,"NoSchemaIntrospectionCustomRule",(function(){return bt})),n.d(t,"GraphQLError",(function(){return y.a})),n.d(t,"syntaxError",(function(){return Et.a})),n.d(t,"locatedError",(function(){return v.a})),n.d(t,"printError",(function(){return y.b})),n.d(t,"formatError",(function(){return xt})),n.d(t,"getIntrospectionQuery",(function(){return wt})),n.d(t,"getOperationAST",(function(){return St.getOperationAST})),n.d(t,"getOperationRootType",(function(){return w})),n.d(t,"introspectionFromSchema",(function(){return Tt})),n.d(t,"buildClientSchema",(function(){return Ot})),n.d(t,"buildASTSchema",(function(){return Vt})),n.d(t,"buildSchema",(function(){return qt})),n.d(t,"getDescription",(function(){return zt})),n.d(t,"extendSchema",(function(){return Lt})),n.d(t,"lexicographicSortSchema",(function(){return Kt})),n.d(t,"printSchema",(function(){return Xt})),n.d(t,"printType",(function(){return rn})),n.d(t,"printIntrospectionSchema",(function(){return Zt})),n.d(t,"typeFromAST",(function(){return C.a})),n.d(t,"valueFromAST",(function(){return O})),n.d(t,"valueFromASTUntyped",(function(){return dn.a})),n.d(t,"astFromValue",(function(){return $t.a})),n.d(t,"TypeInfo",(function(){return hn.a})),n.d(t,"visitWithTypeInfo",(function(){return hn.b})),n.d(t,"coerceInputValue",(function(){return M})),n.d(t,"concatAST",(function(){return gn})),n.d(t,"separateOperations",(function(){return yn})),n.d(t,"stripIgnoredCharacters",(function(){return bn})),n.d(t,"isEqualType",(function(){return xn.b})),n.d(t,"isTypeSubTypeOf",(function(){return xn.c})),n.d(t,"doTypesOverlap",(function(){return xn.a})),n.d(t,"assertValidName",(function(){return Dn.a})),n.d(t,"isValidNameError",(function(){return Dn.b})),n.d(t,"BreakingChangeType",(function(){return kn})),n.d(t,"DangerousChangeType",(function(){return An})),n.d(t,"findBreakingChanges",(function(){return Tn})),n.d(t,"findDangerousChanges",(function(){return _n})),n.d(t,"findDeprecatedUsages",(function(){return Vn.a}));var r="15.3.0",i=Object.freeze({major:15,minor:3,patch:0,preReleaseTag:null});function o(e){return"function"==typeof(null==e?void 0:e.then)}var a=n(64),s=n(65),u=n(80),c=n(57),l=n(4);var p=n(17),f=n(8),d=n(31),h=n(81);function m(e,t,n){return{prev:e,key:t,typename:n}}function g(e){for(var t=[],n=e;n;)t.push(n.key),n=n.prev;return t.reverse()}var y=n(2),v=n(82),b=n(1),E=n(12),x=n(21),D=n(0),C=n(33);function w(e,t){if("query"===t.operation){var n=e.getQueryType();if(!n)throw new y.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 y.a("Schema is not configured for mutations.",t);return r}if("subscription"===t.operation){var i=e.getSubscriptionType();if(!i)throw new y.a("Schema is not configured for subscriptions.",t);return i}throw new y.a("Can only have query, mutation and subscription operations.",t)}var S=n(55),k=n(36);function A(e){return e.map((function(e){return"number"==typeof e?"["+e.toString()+"]":"."+e})).join("")}var T=n(15),_=n(14);function O(e,t,n){if(e){if(e.kind===b.a.VARIABLE){var r=e.name.value;if(null==n||void 0===n[r])return;var i=n[r];if(null===i&&Object(D.L)(t))return;return i}if(Object(D.L)(t)){if(e.kind===b.a.NULL)return;return O(e,t.ofType,n)}if(e.kind===b.a.NULL)return null;if(Object(D.J)(t)){var o=t.ofType;if(e.kind===b.a.LIST){for(var a=[],s=0,u=e.values;s<u.length;s++){var c=u[s];if(F(c,n)){if(Object(D.L)(o))return;a.push(null)}else{var f=O(c,o,n);if(void 0===f)return;a.push(f)}}return a}var d=O(e,o,n);if(void 0===d)return;return[d]}if(Object(D.F)(t)){if(e.kind!==b.a.OBJECT)return;for(var h=Object.create(null),m=Object(k.a)(e.fields,(function(e){return e.name.value})),g=0,y=Object(_.a)(t.getFields());g<y.length;g++){var v=y[g],E=m[v.name];if(E&&!F(E.value,n)){var x=O(E.value,v.type,n);if(void 0===x)return;h[v.name]=x}else if(void 0!==v.defaultValue)h[v.name]=v.defaultValue;else if(Object(D.L)(v.type))return}return h}if(Object(D.I)(t)){var C;try{C=t.parseLiteral(e,n)}catch(e){return}if(void 0===C)return;return C}Object(p.a)(0,"Unexpected input type: "+Object(l.a)(t))}}function F(e,t){return e.kind===b.a.VARIABLE&&(null==t||void 0===t[e.name.value])}var N=n(38),I=n(43);function M(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:j;return L(e,t,n)}function j(e,t,n){var r="Invalid value "+Object(l.a)(t);throw e.length>0&&(r+=' at "value'.concat(A(e),'"')),n.message=r+": "+n.message,n}function L(e,t,n,r){if(Object(D.L)(t))return null!=e?L(e,t.ofType,n,r):void n(g(r),e,new y.a('Expected non-nullable type "'.concat(Object(l.a)(t),'" not to be null.')));if(null==e)return null;if(Object(D.J)(t)){var i=t.ofType;return Object(h.a)(e)?Object(c.a)(e,(function(e,t){var o=m(r,t,void 0);return L(e,i,n,o)})):[L(e,i,n,r)]}if(Object(D.F)(t)){if(!Object(d.a)(e))return void n(g(r),e,new y.a('Expected type "'.concat(t.name,'" to be an object.')));for(var o={},a=t.getFields(),s=0,u=Object(_.a)(a);s<u.length;s++){var f=u[s],v=e[f.name];if(void 0!==v)o[f.name]=L(v,f.type,n,m(r,f.name,t.name));else if(void 0!==f.defaultValue)o[f.name]=f.defaultValue;else if(Object(D.L)(f.type)){var b=Object(l.a)(f.type);n(g(r),e,new y.a('Field "'.concat(f.name,'" of required type "').concat(b,'" was not provided.')))}}for(var E=0,x=Object.keys(e);E<x.length;E++){var C=x[E];if(!a[C]){var w=Object(I.a)(C,Object.keys(t.getFields()));n(g(r),e,new y.a('Field "'.concat(C,'" is not defined by type "').concat(t.name,'".')+Object(N.a)(w)))}}return o}if(Object(D.I)(t)){var S;try{S=t.parseValue(e)}catch(i){return void(i instanceof y.a?n(g(r),e,i):n(g(r),e,new y.a('Expected type "'.concat(t.name,'". ')+i.message,void 0,void 0,void 0,void 0,i)))}return void 0===S&&n(g(r),e,new y.a('Expected type "'.concat(t.name,'".'))),S}Object(p.a)(0,"Unexpected input type: "+Object(l.a)(t))}function P(e,t,n,r){var i=[],o=null==r?void 0:r.maxErrors;try{var a=function(e,t,n,r){for(var i={},o=function(o){var a=t[o],s=a.variable.name.value,u=Object(C.a)(e,a.type);if(!Object(D.G)(u)){var c=Object(T.print)(a.type);return r(new y.a('Variable "$'.concat(s,'" expected value of type "').concat(c,'" which cannot be used as an input type.'),a.type)),"continue"}if(!U(n,s)){if(a.defaultValue)i[s]=O(a.defaultValue,u);else if(Object(D.L)(u)){var p=Object(l.a)(u);r(new y.a('Variable "$'.concat(s,'" of required type "').concat(p,'" was not provided.'),a))}return"continue"}var f=n[s];if(null===f&&Object(D.L)(u)){var d=Object(l.a)(u);return r(new y.a('Variable "$'.concat(s,'" of non-null type "').concat(d,'" must not be null.'),a)),"continue"}i[s]=M(f,u,(function(e,t,n){var i='Variable "$'.concat(s,'" got invalid value ')+Object(l.a)(t);e.length>0&&(i+=' at "'.concat(s).concat(A(e),'"')),r(new y.a(i+"; "+n.message,a,void 0,void 0,void 0,n.originalError))}))},a=0;a<t.length;a++)o(a);return i}(e,t,n,(function(e){if(null!=o&&i.length>=o)throw new y.a("Too many errors processing variables, error limit reached. Execution aborted.");i.push(e)}));if(0===i.length)return{coerced:a}}catch(e){i.push(e)}return{errors:i}}function R(e,t,n){for(var r,i={},o=null!==(r=t.arguments)&&void 0!==r?r:[],a=Object(k.a)(o,(function(e){return e.name.value})),s=0,u=e.args;s<u.length;s++){var c=u[s],p=c.name,f=c.type,d=a[p];if(d){var h=d.value,m=h.kind===b.a.NULL;if(h.kind===b.a.VARIABLE){var g=h.name.value;if(null==n||!U(n,g)){if(void 0!==c.defaultValue)i[p]=c.defaultValue;else if(Object(D.L)(f))throw new y.a('Argument "'.concat(p,'" of required type "').concat(Object(l.a)(f),'" ')+'was provided the variable "$'.concat(g,'" which was not provided a runtime value.'),h);continue}m=null==n[g]}if(m&&Object(D.L)(f))throw new y.a('Argument "'.concat(p,'" of non-null type "').concat(Object(l.a)(f),'" ')+"must not be null.",h);var v=O(h,f,n);if(void 0===v)throw new y.a('Argument "'.concat(p,'" has invalid value ').concat(Object(T.print)(h),"."),h);i[p]=v}else if(void 0!==c.defaultValue)i[p]=c.defaultValue;else if(Object(D.L)(f))throw new y.a('Argument "'.concat(p,'" of required type "').concat(Object(l.a)(f),'" ')+"was not provided.",t)}return i}function B(e,t,n){var r=t.directives&&Object(S.a)(t.directives,(function(t){return t.name.value===e.name}));if(r)return R(e,r,n)}function U(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function z(e,t,n,r,i,o,a,s){return 1===arguments.length?q(e):q({schema:e,document:t,rootValue:n,contextValue:r,variableValues:i,operationName:o,fieldResolver:a,typeResolver:s})}function V(e){var t=q(e);if(o(t))throw new Error("GraphQL execution failed to complete synchronously.");return t}function q(e){var t=e.schema,n=e.document,r=e.rootValue,i=e.contextValue,a=e.variableValues,s=e.operationName,u=e.fieldResolver,c=e.typeResolver;H(t,n,a);var l=W(t,n,r,i,a,s,u,c);if(Array.isArray(l))return{errors:l};var p=function(e,t,n){var r=w(e.schema,t),i=K(e,r,t.selectionSet,Object.create(null),Object.create(null));try{var a="mutation"===t.operation?function(e,t,n,r,i){return a=Object.keys(i),s=function(a,s){var u=i[s],c=m(r,s,t.name),l=Y(e,t,n,u,c);return void 0===l?a:o(l)?l.then((function(e){return a[s]=e,a})):(a[s]=l,a)},u=Object.create(null),a.reduce((function(e,t){return o(e)?e.then((function(e){return s(e,t)})):s(e,t)}),u);var a,s,u}(e,r,n,void 0,i):G(e,r,n,void 0,i);return o(a)?a.then(void 0,(function(t){return e.errors.push(t),Promise.resolve(null)})):a}catch(t){return e.errors.push(t),null}}(l,l.operation,r);return function e(t,n){if(o(n))return n.then((function(n){return e(t,n)}));return 0===t.errors.length?{data:n}:{errors:t.errors,data:n}}(l,p)}function H(e,t,n){t||Object(f.a)(0,"Must provide document."),Object(u.a)(e),null==n||Object(d.a)(n)||Object(f.a)(0,"Variables must be provided as an Object where each property is a variable value. Perhaps look to see if an unparsed JSON string was provided.")}function W(e,t,n,r,i,o,a,s){for(var u,c,l,p=Object.create(null),f=0,d=t.definitions;f<d.length;f++){var h=d[f];switch(h.kind){case b.a.OPERATION_DEFINITION:if(null==o){if(void 0!==l)return[new y.a("Must provide operation name if query contains multiple operations.")];l=h}else(null===(u=h.name)||void 0===u?void 0:u.value)===o&&(l=h);break;case b.a.FRAGMENT_DEFINITION:p[h.name.value]=h}}if(!l)return null!=o?[new y.a('Unknown operation named "'.concat(o,'".'))]:[new y.a("Must provide an operation.")];var m=P(e,null!==(c=l.variableDefinitions)&&void 0!==c?c:[],null!=i?i:{},{maxErrors:50});return m.errors?m.errors:{schema:e,fragments:p,rootValue:n,contextValue:r,operation:l,variableValues:m.coerced,fieldResolver:null!=a?a:pe,typeResolver:null!=s?s:le,errors:[]}}function G(e,t,n,r,i){for(var a,s,u,c=Object.create(null),l=!1,p=0,f=Object.keys(i);p<f.length;p++){var d=f[p],h=Y(e,t,n,i[d],m(r,d,t.name));void 0!==h&&(c[d]=h,!l&&o(h)&&(l=!0))}return l?(a=c,s=Object.keys(a),u=s.map((function(e){return a[e]})),Promise.all(u).then((function(e){return e.reduce((function(e,t,n){return e[s[n]]=t,e}),Object.create(null))}))):c}function K(e,t,n,r,i){for(var o=0,a=n.selections;o<a.length;o++){var s=a[o];switch(s.kind){case b.a.FIELD:if(!J(e,s))continue;var u=(p=s).alias?p.alias.value:p.name.value;r[u]||(r[u]=[]),r[u].push(s);break;case b.a.INLINE_FRAGMENT:if(!J(e,s)||!Q(e,s,t))continue;K(e,t,s.selectionSet,r,i);break;case b.a.FRAGMENT_SPREAD:var c=s.name.value;if(i[c]||!J(e,s))continue;i[c]=!0;var l=e.fragments[c];if(!l||!Q(e,l,t))continue;K(e,t,l.selectionSet,r,i)}}var p;return r}function J(e,t){var n=B(x.e,t,e.variableValues);if(!0===(null==n?void 0:n.if))return!1;var r=B(x.d,t,e.variableValues);return!1!==(null==r?void 0:r.if)}function Q(e,t,n){var r=t.typeCondition;if(!r)return!0;var i=Object(C.a)(e.schema,r);return i===n||!!Object(D.C)(i)&&e.schema.isSubType(i,n)}function Y(e,t,n,r,i){var o,a=r[0].name.value,s=fe(e.schema,t,a);if(s){var u=null!==(o=s.resolve)&&void 0!==o?o:e.fieldResolver,c=$(e,s,r,t,i),l=X(e,s,r,u,n,c);return ee(e,s.type,r,c,i,l)}}function $(e,t,n,r,i){return{fieldName:t.name,fieldNodes:n,returnType:t.type,parentType:r,path:i,schema:e.schema,fragments:e.fragments,rootValue:e.rootValue,operation:e.operation,variableValues:e.variableValues}}function X(e,t,n,r,i,a){try{var s=r(i,R(t,n[0],e.variableValues),e.contextValue,a);return o(s)?s.then(void 0,Z):s}catch(e){return Z(e)}}function Z(e){return e instanceof Error?e:new Error("Unexpected error value: "+Object(l.a)(e))}function ee(e,t,n,r,i,a){try{var s;return s=o(a)?a.then((function(o){return ne(e,t,n,r,i,o)})):ne(e,t,n,r,i,a),o(s)?s.then(void 0,(function(r){return te(r,n,i,t,e)})):s}catch(r){return te(r,n,i,t,e)}}function te(e,t,n,r,i){var o=Object(v.a)(Z(e),t,g(n));if(Object(D.L)(r))throw o;return i.errors.push(o),null}function ne(e,t,n,r,i,a){if(a instanceof Error)throw a;if(Object(D.L)(t)){var s=ne(e,t.ofType,n,r,i,a);if(null===s)throw new Error("Cannot return null for non-nullable field ".concat(r.parentType.name,".").concat(r.fieldName,"."));return s}return null==a?null:Object(D.J)(t)?function(e,t,n,r,i,a){if(!Object(h.a)(a))throw new y.a('Expected Iterable, but did not find one for field "'.concat(r.parentType.name,".").concat(r.fieldName,'".'));var s=t.ofType,u=!1,l=Object(c.a)(a,(function(t,a){var c=m(i,a,void 0),l=ee(e,s,n,r,c,t);return!u&&o(l)&&(u=!0),l}));return u?Promise.all(l):l}(e,t,n,r,i,a):Object(D.I)(t)?function(e,t){var n=e.serialize(t);if(void 0===n)throw new Error('Expected a value of type "'.concat(Object(l.a)(e),'" but ')+"received: ".concat(Object(l.a)(t)));return n}(t,a):Object(D.C)(t)?function(e,t,n,r,i,a){var s,u=null!==(s=t.resolveType)&&void 0!==s?s:e.typeResolver,c=e.contextValue,l=u(a,c,r,t);if(o(l))return l.then((function(o){return ie(e,re(o,e,t,n,r,a),n,r,i,a)}));return ie(e,re(l,e,t,n,r,a),n,r,i,a)}(e,t,n,r,i,a):Object(D.N)(t)?ie(e,t,n,r,i,a):void Object(p.a)(0,"Cannot complete value of unexpected output type: "+Object(l.a)(t))}function re(e,t,n,r,i,o){var a="string"==typeof e?t.schema.getType(e):e;if(!Object(D.N)(a))throw new y.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(l.a)(o),', received "').concat(Object(l.a)(a),'". ')+'Either the "'.concat(n.name,'" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.'),r);if(!t.schema.isSubType(n,a))throw new y.a('Runtime Object type "'.concat(a.name,'" is not a possible type for "').concat(n.name,'".'),r);return a}function ie(e,t,n,r,i,a){if(t.isTypeOf){var s=t.isTypeOf(a,e.contextValue,r);if(o(s))return s.then((function(r){if(!r)throw oe(t,a,n);return ae(e,t,n,i,a)}));if(!s)throw oe(t,a,n)}return ae(e,t,n,i,a)}function oe(e,t,n){return new y.a('Expected value of type "'.concat(e.name,'" but got: ').concat(Object(l.a)(t),"."),n)}function ae(e,t,n,r,i){return G(e,t,i,r,ce(e,t,n))}var se,ue,ce=(se=function(e,t,n){for(var r=Object.create(null),i=Object.create(null),o=0;o<n.length;o++){var a=n[o];a.selectionSet&&(r=K(e,t,a.selectionSet,r,i))}return r},function(e,t,n){ue||(ue=new WeakMap);var r,i=ue.get(e);if(i){if(r=i.get(t)){var o=r.get(n);if(void 0!==o)return o}}else i=new WeakMap,ue.set(e,i);r||(r=new WeakMap,i.set(t,r));var a=se(e,t,n);return r.set(n,a),a});var le=function(e,t,n,r){if(Object(d.a)(e)&&"string"==typeof e.__typename)return e.__typename;for(var i=n.schema.getPossibleTypes(r),a=[],s=0;s<i.length;s++){var u=i[s];if(u.isTypeOf){var c=u.isTypeOf(e,t,n);if(o(c))a[s]=c;else if(c)return u}}return a.length?Promise.all(a).then((function(e){for(var t=0;t<e.length;t++)if(e[t])return i[t]})):void 0},pe=function(e,t,n,r){if(Object(d.a)(e)||"function"==typeof e){var i=e[r.fieldName];return"function"==typeof i?e[r.fieldName](t,n,r):i}};function fe(e,t,n){return n===E.SchemaMetaFieldDef.name&&e.getQueryType()===t?E.SchemaMetaFieldDef:n===E.TypeMetaFieldDef.name&&e.getQueryType()===t?E.TypeMetaFieldDef:n===E.TypeNameMetaFieldDef.name?E.TypeNameMetaFieldDef:t.getFields()[n]}function de(e,t,n,r,i,o,a,s){var u=arguments;return new Promise((function(c){return c(1===u.length?me(e):me({schema:e,source:t,rootValue:n,contextValue:r,variableValues:i,operationName:o,fieldResolver:a,typeResolver:s}))}))}function he(e,t,n,r,i,a,s,u){var c=1===arguments.length?me(e):me({schema:e,source:t,rootValue:n,contextValue:r,variableValues:i,operationName:a,fieldResolver:s,typeResolver:u});if(o(c))throw new Error("GraphQL execution failed to complete synchronously.");return c}function me(e){var t,n=e.schema,r=e.source,i=e.rootValue,o=e.contextValue,c=e.variableValues,l=e.operationName,p=e.fieldResolver,f=e.typeResolver,d=Object(u.b)(n);if(d.length>0)return{errors:d};try{t=Object(a.a)(r)}catch(e){return{errors:[e]}}var h=Object(s.c)(n,t);return h.length>0?{errors:h}:z({schema:n,document:t,rootValue:i,contextValue:o,variableValues:c,operationName:l,fieldResolver:p,typeResolver:f})}var ge=n(53),ye=n(13),ve=n(24),be=n(83),Ee=n(95),xe=n(137),De=n(84),Ce=n(5),we=n(26),Se=n(9),ke=n(45),Ae=n(25);function Te(e,t,n){var r,i,o,a,s,u,c=e[Ae.a].call(e);function l(e){return e.done?e:_e(e.value,t).then(Oe,i)}if("function"==typeof c.return&&(r=c.return,i=function(e){var t=function(){return Promise.reject(e)};return r.call(c).then(t,t)}),n){var p=n;o=function(e){return _e(e,p).then(Oe,i)}}return a={next:function(){return c.next().then(l,o)},return:function(){return r?r.call(c).then(l,o):Promise.resolve({value:void 0,done:!0})},throw:function(e){return"function"==typeof c.throw?c.throw(e).then(l,o):Promise.reject(e).catch(i)}},s=Ae.a,u=function(){return this},s in a?Object.defineProperty(a,s,{value:u,enumerable:!0,configurable:!0,writable:!0}):a[s]=u,a}function _e(e,t){return new Promise((function(n){return n(t(e))}))}function Oe(e){return{value:e,done:!1}}function Fe(e){return(Fe="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 Ne(e,t,n,r,i,o,a,s){return 1===arguments.length?Me(e):Me({schema:e,document:t,rootValue:n,contextValue:r,variableValues:i,operationName:o,fieldResolver:a,subscribeFieldResolver:s})}function Ie(e){if(e instanceof y.a)return{errors:[e]};throw e}function Me(e){var t=e.schema,n=e.document,r=e.rootValue,i=e.contextValue,o=e.variableValues,a=e.operationName,s=e.fieldResolver,u=e.subscribeFieldResolver,c=je(t,n,r,i,o,a,u),l=function(e){return z({schema:t,document:n,rootValue:e,contextValue:i,variableValues:o,operationName:a,fieldResolver:s})};return c.then((function(e){return Le(e)?Te(e,l,Ie):e}))}function je(e,t,n,r,i,o,a){H(e,t,i);try{var s,u=W(e,t,n,r,i,o,a);if(Array.isArray(u))return Promise.resolve({errors:u});var c=w(e,u.operation),p=K(u,c,u.operation.selectionSet,Object.create(null),Object.create(null)),f=Object.keys(p)[0],d=p[f],h=d[0].name.value,b=fe(e,c,h);if(!b)throw new y.a('The subscription field "'.concat(h,'" is not defined.'),d);var E=null!==(s=b.subscribe)&&void 0!==s?s:u.fieldResolver,x=m(void 0,f,c.name),D=$(u,b,d,c,x),C=X(u,b,d,E,n,D);return Promise.resolve(C).then((function(e){if(e instanceof Error)return{errors:[Object(v.a)(e,d,g(x))]};if(Le(e))return e;throw new Error("Subscription field must return Async Iterable. "+"Received: ".concat(Object(l.a)(e),"."))}))}catch(e){return e instanceof y.a?Promise.resolve({errors:[e]}):Promise.reject(e)}}function Le(e){return null!=e&&"object"===Fe(e)&&"function"==typeof e[Ae.a]}var Pe=n(146),Re=n(138),Be=n(218),Ue=n(225),ze=n(222),Ve=n(142),qe=n(140),He=n(227),We=n(139),Ge=n(220),Ke=n(230),Je=n(232),Qe=n(228),Ye=n(233),$e=n(236),Xe=n(229),Ze=n(144),et=n(224),tt=n(221),nt=n(143),rt=n(141),it=n(226),ot=n(145),at=n(219),st=n(231),ut=n(234),ct=n(223),lt=n(235),pt=n(237),ft=n(238),dt=n(239),ht=n(240),mt=n(241),gt=n(242),yt=n(243),vt=n(244);function bt(e){return{Field:function(t){var n=Object(D.A)(e.getType());n&&Object(E.isIntrospectionType)(n)&&e.reportError(new y.a('GraphQL introspection has been disabled, but the requested query contained the field "'.concat(t.name.value,'".'),t))}}}var Et=n(44);function xt(e){var t;e||Object(f.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 Dt(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 Ct(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wt(e){var t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Dt(Object(n),!0).forEach((function(t){Ct(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({descriptions:!0,specifiedByUrl:!1,directiveIsRepeatable:!1,schemaDescription:!1},e),n=t.descriptions?"description":"",r=t.specifiedByUrl?"specifiedByUrl":"",i=t.directiveIsRepeatable?"isRepeatable":"",o=t.schemaDescription?n:"";return"\n query IntrospectionQuery {\n __schema {\n ".concat(o,"\n queryType { name }\n mutationType { name }\n subscriptionType { name }\n types {\n ...FullType\n }\n directives {\n name\n ").concat(n,"\n ").concat(i,"\n locations\n args {\n ...InputValue\n }\n }\n }\n }\n\n fragment FullType on __Type {\n kind\n name\n ").concat(n,"\n ").concat(r,"\n fields(includeDeprecated: true) {\n name\n ").concat(n,"\n args {\n ...InputValue\n }\n type {\n ...TypeRef\n }\n isDeprecated\n deprecationReason\n }\n inputFields {\n ...InputValue\n }\n interfaces {\n ...TypeRef\n }\n enumValues(includeDeprecated: true) {\n name\n ").concat(n,"\n isDeprecated\n deprecationReason\n }\n possibleTypes {\n ...TypeRef\n }\n }\n\n fragment InputValue on __InputValue {\n name\n ").concat(n,"\n type { ...TypeRef }\n defaultValue\n }\n\n fragment TypeRef on __Type {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n }\n }\n }\n }\n }\n }\n }\n }\n ")}var St=n(273);function kt(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 At(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Tt(e,t){var n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kt(Object(n),!0).forEach((function(t){At(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({directiveIsRepeatable:!0,schemaDescription:!0},t),r=V({schema:e,document:Object(a.a)(wt(n))});return!r.errors&&r.data||Object(p.a)(0),r.data}var _t=n(49);function Ot(e,t){Object(d.a)(e)&&Object(d.a)(e.__schema)||Object(f.a)(0,'Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: '.concat(Object(l.a)(e),"."));for(var n=e.__schema,r=Object(_t.a)(n.types,(function(e){return e.name}),(function(e){return function(e){if(null!=e&&null!=e.name&&null!=e.kind)switch(e.kind){case E.TypeKind.SCALAR:return r=e,new D.g({name:r.name,description:r.description,specifiedByUrl:r.specifiedByUrl});case E.TypeKind.OBJECT:return n=e,new D.f({name:n.name,description:n.description,interfaces:function(){return b(n)},fields:function(){return C(n)}});case E.TypeKind.INTERFACE:return t=e,new D.c({name:t.name,description:t.description,interfaces:function(){return b(t)},fields:function(){return C(t)}});case E.TypeKind.UNION:return function(e){if(!e.possibleTypes){var t=Object(l.a)(e);throw new Error("Introspection result missing possibleTypes: ".concat(t,"."))}return new D.h({name:e.name,description:e.description,types:function(){return e.possibleTypes.map(y)}})}(e);case E.TypeKind.ENUM:return function(e){if(!e.enumValues){var t=Object(l.a)(e);throw new Error("Introspection result missing enumValues: ".concat(t,"."))}return new D.a({name:e.name,description:e.description,values:Object(_t.a)(e.enumValues,(function(e){return e.name}),(function(e){return{description:e.description,deprecationReason:e.deprecationReason}}))})}(e);case E.TypeKind.INPUT_OBJECT:return function(e){if(!e.inputFields){var t=Object(l.a)(e);throw new Error("Introspection result missing inputFields: ".concat(t,"."))}return new D.b({name:e.name,description:e.description,fields:function(){return S(e.inputFields)}})}(e)}var t;var n;var r;var i=Object(l.a)(e);throw new Error("Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ".concat(i,"."))}(e)})),i=0,o=[].concat(ye.g,E.introspectionTypes);i<o.length;i++){var s=o[i];r[s.name]&&(r[s.name]=s)}var u=n.queryType?y(n.queryType):null,c=n.mutationType?y(n.mutationType):null,p=n.subscriptionType?y(n.subscriptionType):null,h=n.directives?n.directives.map((function(e){if(!e.args){var t=Object(l.a)(e);throw new Error("Introspection result missing directive args: ".concat(t,"."))}if(!e.locations){var n=Object(l.a)(e);throw new Error("Introspection result missing directive locations: ".concat(n,"."))}return new x.c({name:e.name,description:e.description,isRepeatable:e.isRepeatable,locations:e.locations.slice(),args:S(e.args)})})):[];return new ge.a({description:n.description,query:u,mutation:c,subscription:p,types:Object(_.a)(r),directives:h,assumeValid:null==t?void 0:t.assumeValid});function m(e){if(e.kind===E.TypeKind.LIST){var t=e.ofType;if(!t)throw new Error("Decorated type deeper than introspection query.");return Object(D.d)(m(t))}if(e.kind===E.TypeKind.NON_NULL){var n=e.ofType;if(!n)throw new Error("Decorated type deeper than introspection query.");var r=m(n);return Object(D.e)(Object(D.t)(r))}return g(e)}function g(e){var t=e.name;if(!t)throw new Error("Unknown type reference: ".concat(Object(l.a)(e),"."));var n=r[t];if(!n)throw new Error("Invalid or incomplete schema, unknown type: ".concat(t,". Ensure that a full introspection query is used in order to build a client schema."));return n}function y(e){return Object(D.u)(g(e))}function v(e){return Object(D.o)(g(e))}function b(e){if(null===e.interfaces&&e.kind===E.TypeKind.INTERFACE)return[];if(!e.interfaces){var t=Object(l.a)(e);throw new Error("Introspection result missing interfaces: ".concat(t,"."))}return e.interfaces.map(v)}function C(e){if(!e.fields)throw new Error("Introspection result missing fields: ".concat(Object(l.a)(e),"."));return Object(_t.a)(e.fields,(function(e){return e.name}),w)}function w(e){var t=m(e.type);if(!Object(D.O)(t)){var n=Object(l.a)(t);throw new Error("Introspection must provide output type for fields, but received: ".concat(n,"."))}if(!e.args){var r=Object(l.a)(e);throw new Error("Introspection result missing field args: ".concat(r,"."))}return{description:e.description,deprecationReason:e.deprecationReason,type:t,args:S(e.args)}}function S(e){return Object(_t.a)(e,(function(e){return e.name}),k)}function k(e){var t=m(e.type);if(!Object(D.G)(t)){var n=Object(l.a)(t);throw new Error("Introspection must provide input type for arguments, but received: ".concat(n,"."))}var r=null!=e.defaultValue?O(Object(a.c)(e.defaultValue),t):void 0;return{description:e.description,type:t,defaultValue:r}}}var Ft=n(56),Nt=n(52);function It(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 Mt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?It(Object(n),!0).forEach((function(t){jt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):It(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function jt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Lt(e,t,n){Object(ge.b)(e),null!=t&&t.kind===b.a.DOCUMENT||Object(f.a)(0,"Must provide valid Document AST."),!0!==(null==n?void 0:n.assumeValid)&&!0!==(null==n?void 0:n.assumeValidSDL)&&Object(s.b)(t,e);var r=e.toConfig(),i=Pt(r,t,n);return r===i?e:new ge.a(i)}function Pt(e,t,n){for(var r,i,o,a,s,u=[],c=Object.create(null),f=[],d=[],h=0,m=t.definitions;h<m.length;h++){var g=m[h];if(g.kind===b.a.SCHEMA_DEFINITION)s=g;else if(g.kind===b.a.SCHEMA_EXTENSION)d.push(g);else if(Object(ke.d)(g))u.push(g);else if(Object(ke.e)(g)){var y=g.name.value,v=c[y];c[y]=v?v.concat([g]):[g]}else g.kind===b.a.DIRECTIVE_DEFINITION&&f.push(g)}if(0===Object.keys(c).length&&0===u.length&&0===f.length&&0===d.length&&null==s)return e;for(var C=Object.create(null),w=0,S=e.types;w<S.length;w++){var k=S[w];C[k.name]=L(k)}for(var A=0;A<u.length;A++){var T,F=u[A],N=F.name.value;C[N]=null!==(T=Rt[N])&&void 0!==T?T:J(F)}var I=Mt(Mt({query:e.query&&j(e.query),mutation:e.mutation&&j(e.mutation),subscription:e.subscription&&j(e.subscription)},s&&B([s])),B(d));return Mt(Mt({description:null===(r=s)||void 0===r||null===(i=r.description)||void 0===i?void 0:i.value},I),{},{types:Object(_.a)(C),directives:[].concat(e.directives.map((function(e){var t=e.toConfig();return new x.c(Mt(Mt({},t),{},{args:Object(Ft.a)(t.args,R)}))})),f.map((function(e){var t=e.locations.map((function(e){return e.value}));return new x.c({name:e.name.value,description:zt(e,n),locations:t,isRepeatable:e.repeatable,args:q(e.arguments),astNode:e})}))),extensions:void 0,astNode:null!==(o=s)&&void 0!==o?o:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(d),assumeValid:null!==(a=null==n?void 0:n.assumeValid)&&void 0!==a&&a});function M(e){return Object(D.J)(e)?new D.d(M(e.ofType)):Object(D.L)(e)?new D.e(M(e.ofType)):j(e)}function j(e){return C[e.name]}function L(e){return Object(E.isIntrospectionType)(e)||Object(ye.f)(e)?e:Object(D.R)(e)?function(e){for(var t,n=e.toConfig(),r=null!==(t=c[n.name])&&void 0!==t?t:[],i=n.specifiedByUrl,o=0;o<r.length;o++){var a,s=r[o];i=null!==(a=Ut(s))&&void 0!==a?a:i}return new D.g(Mt(Mt({},n),{},{specifiedByUrl:i,extensionASTNodes:n.extensionASTNodes.concat(r)}))}(e):Object(D.N)(e)?function(e){var t,n=e.toConfig(),r=null!==(t=c[n.name])&&void 0!==t?t:[];return new D.f(Mt(Mt({},n),{},{interfaces:function(){return[].concat(e.getInterfaces().map(j),G(r))},fields:function(){return Mt(Mt({},Object(Ft.a)(n.fields,P)),V(r))},extensionASTNodes:n.extensionASTNodes.concat(r)}))}(e):Object(D.H)(e)?function(e){var t,n=e.toConfig(),r=null!==(t=c[n.name])&&void 0!==t?t:[];return new D.c(Mt(Mt({},n),{},{interfaces:function(){return[].concat(e.getInterfaces().map(j),G(r))},fields:function(){return Mt(Mt({},Object(Ft.a)(n.fields,P)),V(r))},extensionASTNodes:n.extensionASTNodes.concat(r)}))}(e):Object(D.T)(e)?function(e){var t,n=e.toConfig(),r=null!==(t=c[n.name])&&void 0!==t?t:[];return new D.h(Mt(Mt({},n),{},{types:function(){return[].concat(e.getTypes().map(j),K(r))},extensionASTNodes:n.extensionASTNodes.concat(r)}))}(e):Object(D.E)(e)?function(e){var t,n=e.toConfig(),r=null!==(t=c[e.name])&&void 0!==t?t:[];return new D.a(Mt(Mt({},n),{},{values:Mt(Mt({},n.values),W(r)),extensionASTNodes:n.extensionASTNodes.concat(r)}))}(e):Object(D.F)(e)?function(e){var t,n=e.toConfig(),r=null!==(t=c[n.name])&&void 0!==t?t:[];return new D.b(Mt(Mt({},n),{},{fields:function(){return Mt(Mt({},Object(Ft.a)(n.fields,(function(e){return Mt(Mt({},e),{},{type:M(e.type)})}))),H(r))},extensionASTNodes:n.extensionASTNodes.concat(r)}))}(e):void Object(p.a)(0,"Unexpected type: "+Object(l.a)(e))}function P(e){return Mt(Mt({},e),{},{type:M(e.type),args:Object(Ft.a)(e.args,R)})}function R(e){return Mt(Mt({},e),{},{type:M(e.type)})}function B(e){for(var t={},n=0;n<e.length;n++)for(var r,i=null!==(r=e[n].operationTypes)&&void 0!==r?r:[],o=0;o<i.length;o++){var a=i[o];t[a.operation]=U(a.type)}return t}function U(e){var t,n=e.name.value,r=null!==(t=Rt[n])&&void 0!==t?t:C[n];if(void 0===r)throw new Error('Unknown type: "'.concat(n,'".'));return r}function z(e){return e.kind===b.a.LIST_TYPE?new D.d(z(e.type)):e.kind===b.a.NON_NULL_TYPE?new D.e(z(e.type)):U(e)}function V(e){for(var t=Object.create(null),r=0;r<e.length;r++)for(var i,o=null!==(i=e[r].fields)&&void 0!==i?i:[],a=0;a<o.length;a++){var s=o[a];t[s.name.value]={type:z(s.type),description:zt(s,n),args:q(s.arguments),deprecationReason:Bt(s),astNode:s}}return t}function q(e){for(var t=null!=e?e:[],r=Object.create(null),i=0;i<t.length;i++){var o=t[i],a=z(o.type);r[o.name.value]={type:a,description:zt(o,n),defaultValue:O(o.defaultValue,a),astNode:o}}return r}function H(e){for(var t=Object.create(null),r=0;r<e.length;r++)for(var i,o=null!==(i=e[r].fields)&&void 0!==i?i:[],a=0;a<o.length;a++){var s=o[a],u=z(s.type);t[s.name.value]={type:u,description:zt(s,n),defaultValue:O(s.defaultValue,u),astNode:s}}return t}function W(e){for(var t=Object.create(null),r=0;r<e.length;r++)for(var i,o=null!==(i=e[r].values)&&void 0!==i?i:[],a=0;a<o.length;a++){var s=o[a];t[s.name.value]={description:zt(s,n),deprecationReason:Bt(s),astNode:s}}return t}function G(e){for(var t=[],n=0;n<e.length;n++)for(var r,i=null!==(r=e[n].interfaces)&&void 0!==r?r:[],o=0;o<i.length;o++){var a=i[o];t.push(U(a))}return t}function K(e){for(var t=[],n=0;n<e.length;n++)for(var r,i=null!==(r=e[n].types)&&void 0!==r?r:[],o=0;o<i.length;o++){var a=i[o];t.push(U(a))}return t}function J(e){var t,r=e.name.value,i=zt(e,n),o=null!==(t=c[r])&&void 0!==t?t:[];switch(e.kind){case b.a.OBJECT_TYPE_DEFINITION:var a=o,s=[e].concat(a);return new D.f({name:r,description:i,interfaces:function(){return G(s)},fields:function(){return V(s)},astNode:e,extensionASTNodes:a});case b.a.INTERFACE_TYPE_DEFINITION:var u=o,f=[e].concat(u);return new D.c({name:r,description:i,interfaces:function(){return G(f)},fields:function(){return V(f)},astNode:e,extensionASTNodes:u});case b.a.ENUM_TYPE_DEFINITION:var d=o,h=[e].concat(d);return new D.a({name:r,description:i,values:W(h),astNode:e,extensionASTNodes:d});case b.a.UNION_TYPE_DEFINITION:var m=o,g=[e].concat(m);return new D.h({name:r,description:i,types:function(){return K(g)},astNode:e,extensionASTNodes:m});case b.a.SCALAR_TYPE_DEFINITION:var y=o;return new D.g({name:r,description:i,specifiedByUrl:Ut(e),astNode:e,extensionASTNodes:y});case b.a.INPUT_OBJECT_TYPE_DEFINITION:var v=o,E=[e].concat(v);return new D.b({name:r,description:i,fields:function(){return H(E)},astNode:e,extensionASTNodes:v})}Object(p.a)(0,"Unexpected type definition node: "+Object(l.a)(e))}}var Rt=Object(k.a)(ye.g.concat(E.introspectionTypes),(function(e){return e.name}));function Bt(e){var t=B(x.b,e);return null==t?void 0:t.reason}function Ut(e){var t=B(x.f,e);return null==t?void 0:t.url}function zt(e,t){if(e.description)return e.description.value;if(!0===(null==t?void 0:t.commentDescriptions)){var n=function(e){var t=e.loc;if(!t)return;var n=[],r=t.startToken.prev;for(;null!=r&&r.kind===Ce.a.COMMENT&&r.next&&r.prev&&r.line+1===r.next.line&&r.line!==r.prev.line;){var i=String(r.value);n.push(i),r=r.prev}return n.length>0?n.reverse().join("\n"):void 0}(e);if(void 0!==n)return Object(Nt.a)("\n"+n)}}function Vt(e,t){null!=e&&e.kind===b.a.DOCUMENT||Object(f.a)(0,"Must provide valid Document AST."),!0!==(null==t?void 0:t.assumeValid)&&!0!==(null==t?void 0:t.assumeValidSDL)&&Object(s.a)(e);var n=Pt({description:void 0,types:[],directives:[],extensions:void 0,extensionASTNodes:[],assumeValid:!1},e,t);if(null==n.astNode)for(var r=0,i=n.types;r<i.length;r++){var o=i[r];switch(o.name){case"Query":n.query=o;break;case"Mutation":n.mutation=o;break;case"Subscription":n.subscription=o}}var a=n.directives;return a.some((function(e){return"skip"===e.name}))||a.push(x.e),a.some((function(e){return"include"===e.name}))||a.push(x.d),a.some((function(e){return"deprecated"===e.name}))||a.push(x.b),a.some((function(e){return"specifiedBy"===e.name}))||a.push(x.f),new ge.a(n)}function qt(e,t){return Vt(Object(a.a)(e,{noLocation:null==t?void 0:t.noLocation,allowLegacySDLEmptyFields:null==t?void 0:t.allowLegacySDLEmptyFields,allowLegacySDLImplementsInterfaces:null==t?void 0:t.allowLegacySDLImplementsInterfaces,experimentalFragmentVariables:null==t?void 0:t.experimentalFragmentVariables}),{commentDescriptions:null==t?void 0:t.commentDescriptions,assumeValidSDL:null==t?void 0:t.assumeValidSDL,assumeValid:null==t?void 0:t.assumeValid})}function Ht(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 Wt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ht(Object(n),!0).forEach((function(t){Gt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ht(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Gt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kt(e){var t=e.toConfig(),n=Object(_t.a)(Qt(t.types),(function(e){return e.name}),(function(e){if(Object(D.R)(e)||Object(E.isIntrospectionType)(e))return e;if(Object(D.N)(e)){var t=e.toConfig();return new D.f(Wt(Wt({},t),{},{interfaces:function(){return u(t.interfaces)},fields:function(){return s(t.fields)}}))}if(Object(D.H)(e)){var n=e.toConfig();return new D.c(Wt(Wt({},n),{},{interfaces:function(){return u(n.interfaces)},fields:function(){return s(n.fields)}}))}if(Object(D.T)(e)){var i=e.toConfig();return new D.h(Wt(Wt({},i),{},{types:function(){return u(i.types)}}))}if(Object(D.E)(e)){var o=e.toConfig();return new D.a(Wt(Wt({},o),{},{values:Jt(o.values)}))}if(Object(D.F)(e)){var a=e.toConfig();return new D.b(Wt(Wt({},a),{},{fields:function(){return Jt(a.fields,(function(e){return Wt(Wt({},e),{},{type:r(e.type)})}))}}))}Object(p.a)(0,"Unexpected type: "+Object(l.a)(e))}));return new ge.a(Wt(Wt({},t),{},{types:Object(_.a)(n),directives:Qt(t.directives).map((function(e){var t=e.toConfig();return new x.c(Wt(Wt({},t),{},{locations:Yt(t.locations,(function(e){return e})),args:a(t.args)}))})),query:o(t.query),mutation:o(t.mutation),subscription:o(t.subscription)}));function r(e){return Object(D.J)(e)?new D.d(r(e.ofType)):Object(D.L)(e)?new D.e(r(e.ofType)):i(e)}function i(e){return n[e.name]}function o(e){return e&&i(e)}function a(e){return Jt(e,(function(e){return Wt(Wt({},e),{},{type:r(e.type)})}))}function s(e){return Jt(e,(function(e){return Wt(Wt({},e),{},{type:r(e.type),args:a(e.args)})}))}function u(e){return Qt(e).map(i)}}function Jt(e,t){for(var n=Object.create(null),r=Yt(Object.keys(e),(function(e){return e})),i=0;i<r.length;i++){var o=r[i],a=e[o];n[o]=t?t(a):a}return n}function Qt(e){return Yt(e,(function(e){return e.name}))}function Yt(e,t){return e.slice().sort((function(e,n){var r=t(e),i=t(n);return r.localeCompare(i)}))}var $t=n(66);function Xt(e,t){return tn(e,(function(e){return!Object(x.i)(e)}),en,t)}function Zt(e,t){return tn(e,x.i,E.isIntrospectionType,t)}function en(e){return!Object(ye.f)(e)&&!Object(E.isIntrospectionType)(e)}function tn(e,t,n,r){var i=e.getDirectives().filter(t),o=Object(_.a)(e.getTypeMap()).filter(n);return[nn(e)].concat(i.map((function(e){return function(e,t){return pn(t,e)+"directive @"+e.name+un(t,e.args)+(e.isRepeatable?" repeatable":"")+" on "+e.locations.join(" | ")}(e,r)})),o.map((function(e){return rn(e,r)}))).filter(Boolean).join("\n\n")+"\n"}function nn(e){if(null!=e.description||!function(e){var t=e.getQueryType();if(t&&"Query"!==t.name)return!1;var n=e.getMutationType();if(n&&"Mutation"!==n.name)return!1;var r=e.getSubscriptionType();if(r&&"Subscription"!==r.name)return!1;return!0}(e)){var t=[],n=e.getQueryType();n&&t.push(" query: ".concat(n.name));var r=e.getMutationType();r&&t.push(" mutation: ".concat(r.name));var i=e.getSubscriptionType();return i&&t.push(" subscription: ".concat(i.name)),pn({},e)+"schema {\n".concat(t.join("\n"),"\n}")}}function rn(e,t){return Object(D.R)(e)?function(e,t){return pn(t,e)+"scalar ".concat(e.name)+function(e){if(null==e.specifiedByUrl)return"";var t=e.specifiedByUrl,n=Object($t.a)(t,ye.e);return n||Object(p.a)(0,"Unexpected null value returned from `astFromValue` for specifiedByUrl")," @specifiedBy(url: "+Object(T.print)(n)+")"}(e)}(e,t):Object(D.N)(e)?function(e,t){return pn(t,e)+"type ".concat(e.name)+on(e)+an(t,e)}(e,t):Object(D.H)(e)?function(e,t){return pn(t,e)+"interface ".concat(e.name)+on(e)+an(t,e)}(e,t):Object(D.T)(e)?function(e,t){var n=e.getTypes(),r=n.length?" = "+n.join(" | "):"";return pn(t,e)+"union "+e.name+r}(e,t):Object(D.E)(e)?function(e,t){var n=e.getValues().map((function(e,n){return pn(t,e," ",!n)+" "+e.name+ln(e)}));return pn(t,e)+"enum ".concat(e.name)+sn(n)}(e,t):Object(D.F)(e)?function(e,t){var n=Object(_.a)(e.getFields()).map((function(e,n){return pn(t,e," ",!n)+" "+cn(e)}));return pn(t,e)+"input ".concat(e.name)+sn(n)}(e,t):void Object(p.a)(0,"Unexpected type: "+Object(l.a)(e))}function on(e){var t=e.getInterfaces();return t.length?" implements "+t.map((function(e){return e.name})).join(" & "):""}function an(e,t){return sn(Object(_.a)(t.getFields()).map((function(t,n){return pn(e,t," ",!n)+" "+t.name+un(e,t.args," ")+": "+String(t.type)+ln(t)})))}function sn(e){return 0!==e.length?" {\n"+e.join("\n")+"\n}":""}function un(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return 0===t.length?"":t.every((function(e){return!e.description}))?"("+t.map(cn).join(", ")+")":"(\n"+t.map((function(t,r){return pn(e,t," "+n,!r)+" "+n+cn(t)})).join("\n")+"\n"+n+")"}function cn(e){var t=Object($t.a)(e.defaultValue,e.type),n=e.name+": "+String(e.type);return t&&(n+=" = ".concat(Object(T.print)(t))),n}function ln(e){if(!e.isDeprecated)return"";var t=e.deprecationReason,n=Object($t.a)(t,ye.e);return n&&t!==x.a?" @deprecated(reason: "+Object(T.print)(n)+")":" @deprecated"}function pn(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 fn(i,n,r);var o=i.length>70,a=Object(Nt.c)(i,"",o),s=n&&!r?"\n"+n:n;return s+a.replace(/\n/g,"\n"+n)+"\n"}function fn(e,t,n){return(t&&!n?"\n":"")+e.split("\n").map((function(e){return t+(""!==e?"# "+e:"#")})).join("\n")+"\n"}var dn=n(216),hn=n(85),mn=n(115);function gn(e){return{kind:"Document",definitions:Object(mn.a)(e,(function(e){return e.definitions}))}}function yn(e){var t,n=[],r=Object.create(null);Object(we.c)(e,{OperationDefinition:function(e){t=vn(e),n.push(e)},FragmentDefinition:function(e){t=e.name.value},FragmentSpread:function(e){var n=e.name.value,i=r[t];void 0===i&&(i=r[t]=Object.create(null)),i[n]=!0}});for(var i=Object.create(null),o=function(t){var o=n[t],a=vn(o),s=Object.create(null);!function e(t,n,r){var i=n[r];if(i)for(var o=0,a=Object.keys(i);o<a.length;o++){var s=a[o];t[s]||(t[s]=!0,e(t,n,s))}}(s,r,a),i[a]={kind:b.a.DOCUMENT,definitions:e.definitions.filter((function(e){return e===o||e.kind===b.a.FRAGMENT_DEFINITION&&s[e.name.value]}))}},a=0;a<n.length;a++)o(a);return i}function vn(e){return e.name?e.name.value:""}function bn(e){var t="string"==typeof e?new be.a(e):e;if(!(t instanceof be.a))throw new TypeError("Must provide string or Source. Received: ".concat(Object(l.a)(t),"."));for(var n=t.body,r=new De.a(t),i="",o=!1;r.advance().kind!==Ce.a.EOF;){var a=r.token,s=a.kind,u=!Object(De.b)(a.kind);o&&(u||a.kind===Ce.a.SPREAD)&&(i+=" ");var c=n.slice(a.start,a.end);s===Ce.a.BLOCK_STRING?i+=En(c):i+=c,o=u}return i}function En(e){var t=e.slice(3,-3),n=Object(Nt.a)(t),r=n.split(/\r\n|[\n\r]/g);Object(Nt.b)(r)>0&&(n="\n"+n);var i=n[n.length-1];return('"'===i&&'\\"""'!==n.slice(-4)||"\\"===i)&&(n+="\n"),'"""'+n+'"""'}var xn=n(61),Dn=n(217);function Cn(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 wn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cn(Object(n),!0).forEach((function(t){Sn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Sn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var kn=Object.freeze({TYPE_REMOVED:"TYPE_REMOVED",TYPE_CHANGED_KIND:"TYPE_CHANGED_KIND",TYPE_REMOVED_FROM_UNION:"TYPE_REMOVED_FROM_UNION",VALUE_REMOVED_FROM_ENUM:"VALUE_REMOVED_FROM_ENUM",REQUIRED_INPUT_FIELD_ADDED:"REQUIRED_INPUT_FIELD_ADDED",IMPLEMENTED_INTERFACE_REMOVED:"IMPLEMENTED_INTERFACE_REMOVED",FIELD_REMOVED:"FIELD_REMOVED",FIELD_CHANGED_KIND:"FIELD_CHANGED_KIND",REQUIRED_ARG_ADDED:"REQUIRED_ARG_ADDED",ARG_REMOVED:"ARG_REMOVED",ARG_CHANGED_KIND:"ARG_CHANGED_KIND",DIRECTIVE_REMOVED:"DIRECTIVE_REMOVED",DIRECTIVE_ARG_REMOVED:"DIRECTIVE_ARG_REMOVED",REQUIRED_DIRECTIVE_ARG_ADDED:"REQUIRED_DIRECTIVE_ARG_ADDED",DIRECTIVE_REPEATABLE_REMOVED:"DIRECTIVE_REPEATABLE_REMOVED",DIRECTIVE_LOCATION_REMOVED:"DIRECTIVE_LOCATION_REMOVED"}),An=Object.freeze({VALUE_ADDED_TO_ENUM:"VALUE_ADDED_TO_ENUM",TYPE_ADDED_TO_UNION:"TYPE_ADDED_TO_UNION",OPTIONAL_INPUT_FIELD_ADDED:"OPTIONAL_INPUT_FIELD_ADDED",OPTIONAL_ARG_ADDED:"OPTIONAL_ARG_ADDED",IMPLEMENTED_INTERFACE_ADDED:"IMPLEMENTED_INTERFACE_ADDED",ARG_DEFAULT_VALUE_CHANGE:"ARG_DEFAULT_VALUE_CHANGE"});function Tn(e,t){return On(e,t).filter((function(e){return e.type in kn}))}function _n(e,t){return On(e,t).filter((function(e){return e.type in An}))}function On(e,t){return[].concat(function(e,t){for(var n=[],r=zn(Object(_.a)(e.getTypeMap()),Object(_.a)(t.getTypeMap())),i=0,o=r.removed;i<o.length;i++){var a=o[i];n.push({type:kn.TYPE_REMOVED,description:Object(ye.f)(a)?"Standard scalar ".concat(a.name," was removed because it is not referenced anymore."):"".concat(a.name," was removed.")})}for(var s=0,u=r.persisted;s<u.length;s++){var c=u[s],l=c[0],p=c[1];Object(D.E)(l)&&Object(D.E)(p)?n.push.apply(n,In(l,p)):Object(D.T)(l)&&Object(D.T)(p)?n.push.apply(n,Nn(l,p)):Object(D.F)(l)&&Object(D.F)(p)?n.push.apply(n,Fn(l,p)):Object(D.N)(l)&&Object(D.N)(p)||Object(D.H)(l)&&Object(D.H)(p)?n.push.apply(n,jn(l,p).concat(Mn(l,p))):l.constructor!==p.constructor&&n.push({type:kn.TYPE_CHANGED_KIND,description:"".concat(l.name," changed from ")+"".concat(Bn(l)," to ").concat(Bn(p),".")})}return n}(e,t),function(e,t){for(var n=[],r=zn(e.getDirectives(),t.getDirectives()),i=0,o=r.removed;i<o.length;i++){var a=o[i];n.push({type:kn.DIRECTIVE_REMOVED,description:"".concat(a.name," was removed.")})}for(var s=0,u=r.persisted;s<u.length;s++){for(var c=u[s],l=c[0],p=c[1],f=zn(l.args,p.args),d=0,h=f.added;d<h.length;d++){var m=h[d];Object(D.P)(m)&&n.push({type:kn.REQUIRED_DIRECTIVE_ARG_ADDED,description:"A required arg ".concat(m.name," on directive ").concat(l.name," was added.")})}for(var g=0,y=f.removed;g<y.length;g++){var v=y[g];n.push({type:kn.DIRECTIVE_ARG_REMOVED,description:"".concat(v.name," was removed from ").concat(l.name,".")})}l.isRepeatable&&!p.isRepeatable&&n.push({type:kn.DIRECTIVE_REPEATABLE_REMOVED,description:"Repeatable flag was removed from ".concat(l.name,".")});for(var b=0,E=l.locations;b<E.length;b++){var x=E[b];-1===p.locations.indexOf(x)&&n.push({type:kn.DIRECTIVE_LOCATION_REMOVED,description:"".concat(x," was removed from ").concat(l.name,".")})}}return n}(e,t))}function Fn(e,t){for(var n=[],r=zn(Object(_.a)(e.getFields()),Object(_.a)(t.getFields())),i=0,o=r.added;i<o.length;i++){var a=o[i];Object(D.Q)(a)?n.push({type:kn.REQUIRED_INPUT_FIELD_ADDED,description:"A required field ".concat(a.name," on input type ").concat(e.name," was added.")}):n.push({type:An.OPTIONAL_INPUT_FIELD_ADDED,description:"An optional field ".concat(a.name," on input type ").concat(e.name," was added.")})}for(var s=0,u=r.removed;s<u.length;s++){var c=u[s];n.push({type:kn.FIELD_REMOVED,description:"".concat(e.name,".").concat(c.name," was removed.")})}for(var l=0,p=r.persisted;l<p.length;l++){var f=p[l],d=f[0],h=f[1];Rn(d.type,h.type)||n.push({type:kn.FIELD_CHANGED_KIND,description:"".concat(e.name,".").concat(d.name," changed type from ")+"".concat(String(d.type)," to ").concat(String(h.type),".")})}return n}function Nn(e,t){for(var n=[],r=zn(e.getTypes(),t.getTypes()),i=0,o=r.added;i<o.length;i++){var a=o[i];n.push({type:An.TYPE_ADDED_TO_UNION,description:"".concat(a.name," was added to union type ").concat(e.name,".")})}for(var s=0,u=r.removed;s<u.length;s++){var c=u[s];n.push({type:kn.TYPE_REMOVED_FROM_UNION,description:"".concat(c.name," was removed from union type ").concat(e.name,".")})}return n}function In(e,t){for(var n=[],r=zn(e.getValues(),t.getValues()),i=0,o=r.added;i<o.length;i++){var a=o[i];n.push({type:An.VALUE_ADDED_TO_ENUM,description:"".concat(a.name," was added to enum type ").concat(e.name,".")})}for(var s=0,u=r.removed;s<u.length;s++){var c=u[s];n.push({type:kn.VALUE_REMOVED_FROM_ENUM,description:"".concat(c.name," was removed from enum type ").concat(e.name,".")})}return n}function Mn(e,t){for(var n=[],r=zn(e.getInterfaces(),t.getInterfaces()),i=0,o=r.added;i<o.length;i++){var a=o[i];n.push({type:An.IMPLEMENTED_INTERFACE_ADDED,description:"".concat(a.name," added to interfaces implemented by ").concat(e.name,".")})}for(var s=0,u=r.removed;s<u.length;s++){var c=u[s];n.push({type:kn.IMPLEMENTED_INTERFACE_REMOVED,description:"".concat(e.name," no longer implements interface ").concat(c.name,".")})}return n}function jn(e,t){for(var n=[],r=zn(Object(_.a)(e.getFields()),Object(_.a)(t.getFields())),i=0,o=r.removed;i<o.length;i++){var a=o[i];n.push({type:kn.FIELD_REMOVED,description:"".concat(e.name,".").concat(a.name," was removed.")})}for(var s=0,u=r.persisted;s<u.length;s++){var c=u[s],l=c[0],p=c[1];n.push.apply(n,Ln(e,l,p)),Pn(l.type,p.type)||n.push({type:kn.FIELD_CHANGED_KIND,description:"".concat(e.name,".").concat(l.name," changed type from ")+"".concat(String(l.type)," to ").concat(String(p.type),".")})}return n}function Ln(e,t,n){for(var r=[],i=zn(t.args,n.args),o=0,a=i.removed;o<a.length;o++){var s=a[o];r.push({type:kn.ARG_REMOVED,description:"".concat(e.name,".").concat(t.name," arg ").concat(s.name," was removed.")})}for(var u=0,c=i.persisted;u<c.length;u++){var l=c[u],p=l[0],f=l[1];if(Rn(p.type,f.type)){if(void 0!==p.defaultValue)if(void 0===f.defaultValue)r.push({type:An.ARG_DEFAULT_VALUE_CHANGE,description:"".concat(e.name,".").concat(t.name," arg ").concat(p.name," defaultValue was removed.")});else{var d=Un(p.defaultValue,p.type),h=Un(f.defaultValue,f.type);d!==h&&r.push({type:An.ARG_DEFAULT_VALUE_CHANGE,description:"".concat(e.name,".").concat(t.name," arg ").concat(p.name," has changed defaultValue from ").concat(d," to ").concat(h,".")})}}else r.push({type:kn.ARG_CHANGED_KIND,description:"".concat(e.name,".").concat(t.name," arg ").concat(p.name," has changed type from ")+"".concat(String(p.type)," to ").concat(String(f.type),".")})}for(var m=0,g=i.added;m<g.length;m++){var y=g[m];Object(D.P)(y)?r.push({type:kn.REQUIRED_ARG_ADDED,description:"A required arg ".concat(y.name," on ").concat(e.name,".").concat(t.name," was added.")}):r.push({type:An.OPTIONAL_ARG_ADDED,description:"An optional arg ".concat(y.name," on ").concat(e.name,".").concat(t.name," was added.")})}return r}function Pn(e,t){return Object(D.J)(e)?Object(D.J)(t)&&Pn(e.ofType,t.ofType)||Object(D.L)(t)&&Pn(e,t.ofType):Object(D.L)(e)?Object(D.L)(t)&&Pn(e.ofType,t.ofType):Object(D.K)(t)&&e.name===t.name||Object(D.L)(t)&&Pn(e,t.ofType)}function Rn(e,t){return Object(D.J)(e)?Object(D.J)(t)&&Rn(e.ofType,t.ofType):Object(D.L)(e)?Object(D.L)(t)&&Rn(e.ofType,t.ofType)||!Object(D.L)(t)&&Rn(e.ofType,t):Object(D.K)(t)&&e.name===t.name}function Bn(e){return Object(D.R)(e)?"a Scalar type":Object(D.N)(e)?"an Object type":Object(D.H)(e)?"an Interface type":Object(D.T)(e)?"a Union type":Object(D.E)(e)?"an Enum type":Object(D.F)(e)?"an Input type":void Object(p.a)(0,"Unexpected type: "+Object(l.a)(e))}function Un(e,t){var n=Object($t.a)(e,t);null!=n||Object(p.a)(0);var r=Object(we.c)(n,{ObjectValue:function(e){var t=[].concat(e.fields).sort((function(e,t){return e.name.value.localeCompare(t.name.value)}));return wn(wn({},e),{},{fields:t})}});return Object(T.print)(r)}function zn(e,t){for(var n=[],r=[],i=[],o=Object(k.a)(e,(function(e){return e.name})),a=Object(k.a)(t,(function(e){return e.name})),s=0;s<e.length;s++){var u=e[s],c=a[u.name];void 0===c?r.push(u):i.push([u,c])}for(var l=0;l<t.length;l++){var p=t[l];void 0===o[p.name]&&n.push(p)}return{added:n,persisted:i,removed:r}}var Vn=n(537)},function(e,t,n){"use strict";n.d(t,"h",(function(){return m})),n.d(t,"g",(function(){return g})),n.d(t,"c",(function(){return y})),n.d(t,"d",(function(){return v})),n.d(t,"e",(function(){return b})),n.d(t,"a",(function(){return E})),n.d(t,"b",(function(){return x})),n.d(t,"f",(function(){return D})),n.d(t,"j",(function(){return C})),n.d(t,"i",(function(){return w}));var r=n(54),i=n(25),o=n(4),a=n(40),s=n(8),u=n(47),c=n(31),l=n(46),p=n(9),f=n(13),d=n(0);function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function m(e){return Object(u.a)(e,y)}function g(e){if(!m(e))throw new Error("Expected ".concat(Object(o.a)(e)," to be a GraphQL directive."));return e}var y=function(){function e(e){var t,n;this.name=e.name,this.description=e.description,this.locations=e.locations,this.isRepeatable=null!==(t=e.isRepeatable)&&void 0!==t&&t,this.extensions=e.extensions&&Object(a.a)(e.extensions),this.astNode=e.astNode,e.name||Object(s.a)(0,"Directive must be named."),Array.isArray(e.locations)||Object(s.a)(0,"@".concat(e.name," locations must be an Array."));var i=null!==(n=e.args)&&void 0!==n?n:{};Object(c.a)(i)&&!Array.isArray(i)||Object(s.a)(0,"@".concat(e.name," args must be an object with argument names as keys.")),this.args=Object(r.a)(i).map((function(e){var t=e[0],n=e[1];return{name:t,description:n.description,type:n.type,defaultValue:n.defaultValue,extensions:n.extensions&&Object(a.a)(n.extensions),astNode:n.astNode}}))}var t,n,o,u=e.prototype;return u.toConfig=function(){return{name:this.name,description:this.description,locations:this.locations,args:Object(d.i)(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}},u.toString=function(){return"@"+this.name},u.toJSON=function(){return this.toString()},t=e,(n=[{key:i.c,get:function(){return"GraphQLDirective"}}])&&h(t.prototype,n),o&&h(t,o),e}();Object(l.a)(y);var v=new y({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[p.a.FIELD,p.a.FRAGMENT_SPREAD,p.a.INLINE_FRAGMENT],args:{if:{type:Object(d.e)(f.a),description:"Included when true."}}}),b=new y({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[p.a.FIELD,p.a.FRAGMENT_SPREAD,p.a.INLINE_FRAGMENT],args:{if:{type:Object(d.e)(f.a),description:"Skipped when true."}}}),E="No longer supported",x=new y({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[p.a.FIELD_DEFINITION,p.a.ENUM_VALUE],args:{reason:{type:f.e,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",defaultValue:E}}}),D=new y({name:"specifiedBy",description:"Exposes a URL that specifies the behaviour of this scalar.",locations:[p.a.SCALAR],args:{url:{type:Object(d.e)(f.e),description:"The URL that specifies the behaviour of this scalar."}}}),C=Object.freeze([v,b,x,D]);function w(e){return C.some((function(t){return t.name===e.name}))}},function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty;function i(e,t){return r.call(e,t)}function o(e){return!(e>=55296&&e<=57343)&&(!(e>=64976&&e<=65007)&&(65535!=(65535&e)&&65534!=(65535&e)&&(!(e>=0&&e<=8)&&(11!==e&&(!(e>=14&&e<=31)&&(!(e>=127&&e<=159)&&!(e>1114111)))))))}function a(e){if(e>65535){var t=55296+((e-=65536)>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}var s=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,u=new RegExp(s.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),c=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,l=n(169);var p=/[&<>"]/,f=/[&<>"]/g,d={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function h(e){return d[e]}var m=/[.?*+^$[\]\\(){}|-]/g;var g=n(103);t.lib={},t.lib.mdurl=n(104),t.lib.ucmicro=n(170),t.assign=function(e){var t=Array.prototype.slice.call(arguments,1);return t.forEach((function(t){if(t){if("object"!=typeof t)throw new TypeError(t+"must be object");Object.keys(t).forEach((function(n){e[n]=t[n]}))}})),e},t.isString=function(e){return"[object String]"===function(e){return Object.prototype.toString.call(e)}(e)},t.has=i,t.unescapeMd=function(e){return e.indexOf("\\")<0?e:e.replace(s,"$1")},t.unescapeAll=function(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(u,(function(e,t,n){return t||function(e,t){var n=0;return i(l,t)?l[t]:35===t.charCodeAt(0)&&c.test(t)&&o(n="x"===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10))?a(n):e}(e,n)}))},t.isValidEntityCode=o,t.fromCodePoint=a,t.escapeHtml=function(e){return p.test(e)?e.replace(f,h):e},t.arrayReplaceAt=function(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))},t.isSpace=function(e){switch(e){case 9:case 32:return!0}return!1},t.isWhiteSpace=function(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1},t.isMdAsciiPunct=function(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}},t.isPunctChar=function(e){return g.test(e)},t.escapeRE=function(e){return e.replace(m,"\\$&")},t.normalizeReference=function(e){return e.trim().replace(/\s+/g," ").toUpperCase()}},function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty;function i(e,t){return r.call(e,t)}function o(e){return!(e>=55296&&e<=57343)&&(!(e>=64976&&e<=65007)&&(65535!=(65535&e)&&65534!=(65535&e)&&(!(e>=0&&e<=8)&&(11!==e&&(!(e>=14&&e<=31)&&(!(e>=127&&e<=159)&&!(e>1114111)))))))}function a(e){if(e>65535){var t=55296+((e-=65536)>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}var s=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,u=new RegExp(s.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),c=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,l=n(200);var p=/[&<>"]/,f=/[&<>"]/g,d={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function h(e){return d[e]}var m=/[.?*+^$[\]\\(){}|-]/g;var g=n(103);t.lib={},t.lib.mdurl=n(104),t.lib.ucmicro=n(170),t.assign=function(e){var t=Array.prototype.slice.call(arguments,1);return t.forEach((function(t){if(t){if("object"!=typeof t)throw new TypeError(t+"must be object");Object.keys(t).forEach((function(n){e[n]=t[n]}))}})),e},t.isString=function(e){return"[object String]"===function(e){return Object.prototype.toString.call(e)}(e)},t.has=i,t.unescapeMd=function(e){return e.indexOf("\\")<0?e:e.replace(s,"$1")},t.unescapeAll=function(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(u,(function(e,t,n){return t||function(e,t){var n=0;return i(l,t)?l[t]:35===t.charCodeAt(0)&&c.test(t)&&o(n="x"===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10))?a(n):e}(e,n)}))},t.isValidEntityCode=o,t.fromCodePoint=a,t.escapeHtml=function(e){return p.test(e)?e.replace(f,h):e},t.arrayReplaceAt=function(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))},t.isSpace=function(e){switch(e){case 9:case 32:return!0}return!1},t.isWhiteSpace=function(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1},t.isMdAsciiPunct=function(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}},t.isPunctChar=function(e){return g.test(e)},t.escapeRE=function(e){return e.replace(m,"\\$&")},t.normalizeReference=function(e){return e=e.trim().replace(/\s+/g," "),"Ṿ"==="ẞ".toLowerCase()&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}},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(46),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.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?Symbol.iterator:"@@iterator",i="function"==typeof Symbol?Symbol.asyncIterator:"@@asyncIterator",o="function"==typeof Symbol?Symbol.toStringTag:"@@toStringTag"},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"c",(function(){return s})),n.d(t,"d",(function(){return u})),n.d(t,"b",(function(){return c}));var r=n(4),i=n(24),o={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},a=Object.freeze({});function s(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o,s=void 0,u=Array.isArray(e),l=[e],p=-1,f=[],d=void 0,h=void 0,m=void 0,g=[],y=[],v=e;do{var b=++p===l.length,E=b&&0!==f.length;if(b){if(h=0===y.length?void 0:g[g.length-1],d=m,m=y.pop(),E){if(u)d=d.slice();else{for(var x={},D=0,C=Object.keys(d);D<C.length;D++){var w=C[D];x[w]=d[w]}d=x}for(var S=0,k=0;k<f.length;k++){var A=f[k][0],T=f[k][1];u&&(A-=S),u&&null===T?(d.splice(A,1),S++):d[A]=T}}p=s.index,l=s.keys,f=s.edits,u=s.inArray,s=s.prev}else{if(h=m?u?p:l[p]:void 0,null==(d=m?m[h]:v))continue;m&&g.push(h)}var _,O=void 0;if(!Array.isArray(d)){if(!Object(i.c)(d))throw new Error("Invalid AST Node: ".concat(Object(r.a)(d),"."));var F=c(t,d.kind,b);if(F){if((O=F.call(t,d,h,m,g,y))===a)break;if(!1===O){if(!b){g.pop();continue}}else if(void 0!==O&&(f.push([h,O]),!b)){if(!Object(i.c)(O)){g.pop();continue}d=O}}}if(void 0===O&&E&&f.push([h,d]),b)g.pop();else s={inArray:u,index:p,keys:l,edits:f,prev:s},l=(u=Array.isArray(d))?d:null!==(_=n[d.kind])&&void 0!==_?_:[],p=-1,f=[],m&&y.push(m),m=d}while(void 0!==s);return 0!==f.length&&(v=f[f.length-1][1]),v}function u(e){var t=new Array(e.length);return{enter:function(n){for(var r=0;r<e.length;r++)if(null==t[r]){var i=c(e[r],n.kind,!1);if(i){var o=i.apply(e[r],arguments);if(!1===o)t[r]=n;else if(o===a)t[r]=a;else if(void 0!==o)return o}}},leave:function(n){for(var r=0;r<e.length;r++)if(null==t[r]){var i=c(e[r],n.kind,!0);if(i){var o=i.apply(e[r],arguments);if(o===a)t[r]=a;else if(void 0!==o&&!1!==o)return o}}else t[r]===n&&(t[r]=null)}}}function c(e,t,n){var r=e[t];if(r){if(!n&&"function"==typeof r)return r;var i=n?r.leave:r.enter;if("function"==typeof i)return i}else{var o=n?e.leave:e.enter;if(o){if("function"==typeof o)return o;var a=o[t];if("function"==typeof a)return a}}}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return s}));var r=n(19),i=Object.setPrototypeOf,o=void 0===i?function(e,t){return e.__proto__=t,e}:i,a=function(e){function t(n){void 0===n&&(n="Invariant Violation");var r=e.call(this,"number"==typeof n?"Invariant Violation: "+n+" (see https://github.com/apollographql/invariant-packages)":n)||this;return r.framesToPop=1,r.name="Invariant Violation",o(r,t.prototype),r}return Object(r.b)(t,e),t}(Error);function s(e,t){if(!e)throw new a(t)}function u(e){return function(){return console[e].apply(console,arguments)}}!function(e){e.warn=u("warn"),e.error=u("error")}(s||(s={}));var c={env:{}};if("object"==typeof e)c=e;else try{Function("stub","process = stub")(c)}catch(e){}}).call(this,n(99))},function(e,t,n){"use strict";function r(e,t){return e===t}function i(e,t,n){if(null===t||null===n||t.length!==n.length)return!1;for(var r=t.length,i=0;i<r;i++)if(!e(t[i],n[i]))return!1;return!0}function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r,n=null,o=null;return function(){return i(t,n,arguments)||(o=e.apply(null,arguments)),n=arguments,o}}function a(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every((function(e){return"function"==typeof e}))){var n=t.map((function(e){return typeof e})).join(", ");throw new Error("Selector creators expect all input-selectors to be functions, instead received the following types: ["+n+"]")}return t}function s(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return function(){for(var t=arguments.length,r=Array(t),i=0;i<t;i++)r[i]=arguments[i];var o=0,s=r.pop(),u=a(r),c=e.apply(void 0,[function(){return o++,s.apply(null,arguments)}].concat(n)),l=e((function(){for(var e=[],t=u.length,n=0;n<t;n++)e.push(u[n].apply(null,arguments));return c.apply(null,e)}));return l.resultFunc=s,l.dependencies=u,l.recomputations=function(){return o},l.resetRecomputations=function(){return o=0},l}}n.r(t),n.d(t,"defaultMemoize",(function(){return o})),n.d(t,"createSelectorCreator",(function(){return s})),n.d(t,"createSelector",(function(){return u})),n.d(t,"createStructuredSelector",(function(){return c}));var u=s(o);function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u;if("object"!=typeof e)throw new Error("createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof e);var n=Object.keys(e);return t(n.map((function(t){return e[t]})),(function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.reduce((function(e,t,r){return e[n[r]]=t,e}),{})}))}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,i,o,a,s){if(!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,i,o,a,s],l=0;(u=new Error(t.replace(/%s/g,(function(){return c[l++]})))).name="Invariant Violation"}throw u.framesToPop=1,u}}},function(e,t,n){"use strict";n.r(t),n.d(t,"Provider",(function(){return p})),n.d(t,"connectAdvanced",(function(){return w})),n.d(t,"ReactReduxContext",(function(){return o})),n.d(t,"connect",(function(){return z})),n.d(t,"batch",(function(){return $.unstable_batchedUpdates})),n.d(t,"useDispatch",(function(){return G})),n.d(t,"createDispatchHook",(function(){return W})),n.d(t,"useSelector",(function(){return Y})),n.d(t,"createSelectorHook",(function(){return J})),n.d(t,"useStore",(function(){return H})),n.d(t,"createStoreHook",(function(){return q})),n.d(t,"shallowEqual",(function(){return k}));var r=n(3),i=n.n(r),o=(n(7),i.a.createContext(null));var a=function(e){e()},s={notify:function(){}};function u(){var e=a,t=null,n=null;return{clear:function(){t=null,n=null},notify:function(){e((function(){for(var e=t;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],n=t;n;)e.push(n),n=n.next;return e},subscribe:function(e){var r=!0,i=n={callback:e,next:null,prev:n};return i.prev?i.prev.next=i:t=i,function(){r&&null!==t&&(r=!1,i.next?i.next.prev=i.prev:n=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}var c=function(){function e(e,t){this.store=e,this.parentSub=t,this.unsubscribe=null,this.listeners=s,this.handleChangeWrapper=this.handleChangeWrapper.bind(this)}var t=e.prototype;return t.addNestedSub=function(e){return this.trySubscribe(),this.listeners.subscribe(e)},t.notifyNestedSubs=function(){this.listeners.notify()},t.handleChangeWrapper=function(){this.onStateChange&&this.onStateChange()},t.isSubscribed=function(){return Boolean(this.unsubscribe)},t.trySubscribe=function(){this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.handleChangeWrapper):this.store.subscribe(this.handleChangeWrapper),this.listeners=u())},t.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,this.listeners.clear(),this.listeners=s)},e}(),l="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect;var p=function(e){var t=e.store,n=e.context,a=e.children,s=Object(r.useMemo)((function(){var e=new c(t);return e.onStateChange=e.notifyNestedSubs,{store:t,subscription:e}}),[t]),u=Object(r.useMemo)((function(){return t.getState()}),[t]);l((function(){var e=s.subscription;return e.trySubscribe(),u!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[s,u]);var p=n||o;return i.a.createElement(p.Provider,{value:s},a)};function f(){return(f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function d(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var h=n(136),m=n.n(h),g=n(79),y=[],v=[null,null];function b(e,t){var n=e[1];return[t.payload,n+1]}function E(e,t,n){l((function(){return e.apply(void 0,t)}),n)}function x(e,t,n,r,i,o,a){e.current=r,t.current=i,n.current=!1,o.current&&(o.current=null,a())}function D(e,t,n,r,i,o,a,s,u,c){if(e){var l=!1,p=null,f=function(){if(!l){var e,n,f=t.getState();try{e=r(f,i.current)}catch(e){n=e,p=e}n||(p=null),e===o.current?a.current||u():(o.current=e,s.current=e,a.current=!0,c({type:"STORE_UPDATED",payload:{error:n}}))}};n.onStateChange=f,n.trySubscribe(),f();return function(){if(l=!0,n.tryUnsubscribe(),n.onStateChange=null,p)throw p}}}var C=function(){return[null,0]};function w(e,t){void 0===t&&(t={});var n=t,a=n.getDisplayName,s=void 0===a?function(e){return"ConnectAdvanced("+e+")"}:a,u=n.methodName,l=void 0===u?"connectAdvanced":u,p=n.renderCountProp,h=void 0===p?void 0:p,w=n.shouldHandleStateChanges,S=void 0===w||w,k=n.storeKey,A=void 0===k?"store":k,T=(n.withRef,n.forwardRef),_=void 0!==T&&T,O=n.context,F=void 0===O?o:O,N=d(n,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"]),I=F;return function(t){var n=t.displayName||t.name||"Component",o=s(n),a=f({},N,{getDisplayName:s,methodName:l,renderCountProp:h,shouldHandleStateChanges:S,storeKey:A,displayName:o,wrappedComponentName:n,WrappedComponent:t}),u=N.pure;var p=u?r.useMemo:function(e){return e()};function w(n){var o=Object(r.useMemo)((function(){var e=n.reactReduxForwardedRef,t=d(n,["reactReduxForwardedRef"]);return[n.context,e,t]}),[n]),s=o[0],u=o[1],l=o[2],h=Object(r.useMemo)((function(){return s&&s.Consumer&&Object(g.isContextConsumer)(i.a.createElement(s.Consumer,null))?s:I}),[s,I]),m=Object(r.useContext)(h),w=Boolean(n.store)&&Boolean(n.store.getState)&&Boolean(n.store.dispatch);Boolean(m)&&Boolean(m.store);var k=w?n.store:m.store,A=Object(r.useMemo)((function(){return function(t){return e(t.dispatch,a)}(k)}),[k]),T=Object(r.useMemo)((function(){if(!S)return v;var e=new c(k,w?null:m.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[k,w,m]),_=T[0],O=T[1],F=Object(r.useMemo)((function(){return w?m:f({},m,{subscription:_})}),[w,m,_]),N=Object(r.useReducer)(b,y,C),M=N[0][0],j=N[1];if(M&&M.error)throw M.error;var L=Object(r.useRef)(),P=Object(r.useRef)(l),R=Object(r.useRef)(),B=Object(r.useRef)(!1),U=p((function(){return R.current&&l===P.current?R.current:A(k.getState(),l)}),[k,M,l]);E(x,[P,L,B,l,U,R,O]),E(D,[S,k,_,A,P,L,B,R,O,j],[k,_,A]);var z=Object(r.useMemo)((function(){return i.a.createElement(t,f({},U,{ref:u}))}),[u,t,U]);return Object(r.useMemo)((function(){return S?i.a.createElement(h.Provider,{value:F},z):z}),[h,z,F])}var k=u?i.a.memo(w):w;if(k.WrappedComponent=t,k.displayName=o,_){var T=i.a.forwardRef((function(e,t){return i.a.createElement(k,f({},e,{reactReduxForwardedRef:t}))}));return T.displayName=o,T.WrappedComponent=t,m()(T,t)}return m()(k,t)}}function S(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function k(e,t){if(S(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var i=0;i<n.length;i++)if(!Object.prototype.hasOwnProperty.call(t,n[i])||!S(e[n[i]],t[n[i]]))return!1;return!0}var A=n(59);function T(e){return function(t,n){var r=e(t,n);function i(){return r}return i.dependsOnOwnProps=!1,i}}function _(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function O(e,t){return function(t,n){n.displayName;var r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=_(e);var i=r(t,n);return"function"==typeof i&&(r.mapToProps=i,r.dependsOnOwnProps=_(i),i=r(t,n)),i},r}}var F=[function(e){return"function"==typeof e?O(e):void 0},function(e){return e?void 0:T((function(e){return{dispatch:e}}))},function(e){return e&&"object"==typeof e?T((function(t){return Object(A.bindActionCreators)(e,t)})):void 0}];var N=[function(e){return"function"==typeof e?O(e):void 0},function(e){return e?void 0:T((function(){return{}}))}];function I(e,t,n){return f({},n,e,t)}var M=[function(e){return"function"==typeof e?function(e){return function(t,n){n.displayName;var r,i=n.pure,o=n.areMergedPropsEqual,a=!1;return function(t,n,s){var u=e(t,n,s);return a?i&&o(u,r)||(r=u):(a=!0,r=u),r}}}(e):void 0},function(e){return e?void 0:function(){return I}}];function j(e,t,n,r){return function(i,o){return n(e(i,o),t(r,o),o)}}function L(e,t,n,r,i){var o,a,s,u,c,l=i.areStatesEqual,p=i.areOwnPropsEqual,f=i.areStatePropsEqual,d=!1;function h(i,d){var h,m,g=!p(d,a),y=!l(i,o);return o=i,a=d,g&&y?(s=e(o,a),t.dependsOnOwnProps&&(u=t(r,a)),c=n(s,u,a)):g?(e.dependsOnOwnProps&&(s=e(o,a)),t.dependsOnOwnProps&&(u=t(r,a)),c=n(s,u,a)):y?(h=e(o,a),m=!f(h,s),s=h,m&&(c=n(s,u,a)),c):c}return function(i,l){return d?h(i,l):(s=e(o=i,a=l),u=t(r,a),c=n(s,u,a),d=!0,c)}}function P(e,t){var n=t.initMapStateToProps,r=t.initMapDispatchToProps,i=t.initMergeProps,o=d(t,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),a=n(e,o),s=r(e,o),u=i(e,o);return(o.pure?L:j)(a,s,u,e,o)}function R(e,t,n){for(var r=t.length-1;r>=0;r--){var i=t[r](e);if(i)return i}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function B(e,t){return e===t}function U(e){var t=void 0===e?{}:e,n=t.connectHOC,r=void 0===n?w:n,i=t.mapStateToPropsFactories,o=void 0===i?N:i,a=t.mapDispatchToPropsFactories,s=void 0===a?F:a,u=t.mergePropsFactories,c=void 0===u?M:u,l=t.selectorFactory,p=void 0===l?P:l;return function(e,t,n,i){void 0===i&&(i={});var a=i,u=a.pure,l=void 0===u||u,h=a.areStatesEqual,m=void 0===h?B:h,g=a.areOwnPropsEqual,y=void 0===g?k:g,v=a.areStatePropsEqual,b=void 0===v?k:v,E=a.areMergedPropsEqual,x=void 0===E?k:E,D=d(a,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),C=R(e,o,"mapStateToProps"),w=R(t,s,"mapDispatchToProps"),S=R(n,c,"mergeProps");return r(p,f({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:C,initMapDispatchToProps:w,initMergeProps:S,pure:l,areStatesEqual:m,areOwnPropsEqual:y,areStatePropsEqual:b,areMergedPropsEqual:x},D))}}var z=U();function V(){return Object(r.useContext)(o)}function q(e){void 0===e&&(e=o);var t=e===o?V:function(){return Object(r.useContext)(e)};return function(){return t().store}}var H=q();function W(e){void 0===e&&(e=o);var t=e===o?H:q(e);return function(){return t().dispatch}}var G=W(),K=function(e,t){return e===t};function J(e){void 0===e&&(e=o);var t=e===o?V:function(){return Object(r.useContext)(e)};return function(e,n){void 0===n&&(n=K);var i=t(),o=function(e,t,n,i){var o,a=Object(r.useReducer)((function(e){return e+1}),0)[1],s=Object(r.useMemo)((function(){return new c(n,i)}),[n,i]),u=Object(r.useRef)(),p=Object(r.useRef)(),f=Object(r.useRef)(),d=Object(r.useRef)(),h=n.getState();try{if(e!==p.current||h!==f.current||u.current){var m=e(h);o=void 0!==d.current&&t(m,d.current)?d.current:m}else o=d.current}catch(e){throw u.current&&(e.message+="\nThe error may be correlated with this previous error:\n"+u.current.stack+"\n\n"),e}return l((function(){p.current=e,f.current=h,d.current=o,u.current=void 0})),l((function(){function e(){try{var e=p.current(n.getState());if(t(e,d.current))return;d.current=e}catch(e){u.current=e}a()}return s.onStateChange=e,s.trySubscribe(),e(),function(){return s.tryUnsubscribe()}}),[n,s]),o}(e,n,i.store,i.subscription);return Object(r.useDebugValue)(o),o}}var Q,Y=J(),$=n(58);Q=$.unstable_batchedUpdates,a=Q},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e){return"object"==r(e)&&null!==e}n.d(t,"a",(function(){return i}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(28),i=n(41);function o(e){return e.get("selectedWorkspace")}t.getSessionsState=r.createSelector([function(e){return e.getIn(["workspaces",o(e)])||i.makeWorkspace("")}],(function(e){return e.get("sessions")})),t.getSelectedSession=r.createSelector([t.getSessionsState],(function(e){var n=t.getSelectedSessionId(e);return e.getIn(["sessions",n])})),t.getSelectedSessionId=function(e){return e.selectedSessionId&&""!==e.selectedSessionId?e.selectedSessionId:e.sessions.first().id},t.getSelectedSessionIdFromRoot=r.createSelector([t.getSelectedSession],(function(e){return e.get("id")}));var a=function(e){return r.createSelector([t.getSelectedSession],(function(t){return t.get(e)}))};function s(e){return e.getIn(["settingsString"])}function u(e){try{return JSON.parse(e)}catch(e){}return{}}function c(e){var t=e.variables;try{return JSON.parse(t)}catch(e){}return{}}t.getScrollTop=a("scrollTop"),t.getEndpoint=a("endpoint"),t.getQuery=a("query"),t.getFile=a("file"),t.getVariables=a("variables"),t.getResponses=a("responses"),t.getOperationName=a("operationName"),t.getQueryRunning=a("queryRunning"),t.getSubscriptionActive=a("subscriptionActive"),t.getOperations=a("operations"),t.getVariableToType=a("variableToType"),t.getQueryTypes=a("queryTypes"),t.getDate=a("date"),t.getHasMutation=a("hasMutation"),t.getHasSubscription=a("hasSubscription"),t.getHasQuery=a("hasQuery"),t.getIsFile=a("isFile"),t.getStarred=a("starred"),t.getName=a("name"),t.getFilePath=a("filePath"),t.getSelectedUserToken=a("selectedUserToken"),t.getHeaders=a("headers"),t.getHasChanged=a("hasChanged"),t.getAbsolutePath=a("absolutePath"),t.getIsSettingsTab=a("isSettingsTab"),t.getIsConfigTab=a("isConfigTab"),t.getCurrentQueryStartTime=a("currentQueryStartTime"),t.getCurrentQueryEndTime=a("currentQueryEndTime"),t.getIsReloadingSchema=a("isReloadingSchema"),t.getIsPollingSchema=r.createSelector([t.getEndpoint,s],(function(e,t){var n=JSON.parse(t);try{return n["schema.polling.enable"]&&e.match("/"+n["schema.polling.endpointFilter"])&&!0}catch(e){return!1}})),t.getResponseExtensions=a("responseExtensions"),t.getQueryVariablesActive=a("queryVariablesActive"),t.getEndpointUnreachable=a("endpointUnreachable"),t.getEditorFlex=a("editorFlex"),t.getVariableEditorOpen=a("variableEditorOpen"),t.getVariableEditorHeight=a("variableEditorHeight"),t.getResponseTracingOpen=a("responseTracingOpen"),t.getResponseTracingHeight=a("responseTracingHeight"),t.getDocExplorerWidth=a("docExplorerWidth"),t.getNextQueryStartTime=a("nextQueryStartTime"),t.getTracingSupported=a("tracingSupported"),t.getTabWidth=r.createSelector([s],(function(e){try{return JSON.parse(e)["prettier.tabWidth"]||2}catch(e){}return 2})),t.getUseTabs=r.createSelector([s],(function(e){try{return JSON.parse(e)["prettier.useTabs"]||!1}catch(e){}return!1})),t.getHeadersCount=r.createSelector([t.getHeaders],(function(e){try{var t=JSON.parse(e);return Object.keys(t).length}catch(e){}return 0})),t.getParsedHeaders=r.createSelector([t.getSelectedSession],u),t.getParsedHeadersFromSession=u,t.getParsedVariables=r.createSelector([t.getSelectedSession],c),t.getParsedVariablesFromSession=c,t.getTracing=r.createSelector([t.getResponseExtensions],(function(e){return e&&e.tracing})),t.getSessionsArray=r.createSelector([t.getSessionsState],(function(e){return e.get("sessions").toArray().map((function(e){return e[1]}))}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(4),i=n(17),o=n(1),a=n(0);function s(e,t){var n;return t.kind===o.a.LIST_TYPE?(n=s(e,t.type))&&Object(a.d)(n):t.kind===o.a.NON_NULL_TYPE?(n=s(e,t.type))&&Object(a.e)(n):t.kind===o.a.NAMED_TYPE?e.getType(t.name.value):void Object(i.a)(0,"Unexpected type node: "+Object(r.a)(t))}},function(e,t,n){"use strict";n.r(t),n.d(t,"version",(function(){return rr})),n.d(t,"Collection",(function(){return v})),n.d(t,"Iterable",(function(){return or})),n.d(t,"Seq",(function(){return R})),n.d(t,"Map",(function(){return Et})),n.d(t,"OrderedMap",(function(){return rn})),n.d(t,"List",(function(){return qt})),n.d(t,"Stack",(function(){return cn})),n.d(t,"Set",(function(){return bn})),n.d(t,"OrderedSet",(function(){return Vn})),n.d(t,"Record",(function(){return Kn})),n.d(t,"Range",(function(){return kn})),n.d(t,"Repeat",(function(){return er})),n.d(t,"is",(function(){return Z})),n.d(t,"fromJS",(function(){return tr})),n.d(t,"hash",(function(){return re})),n.d(t,"isImmutable",(function(){return w})),n.d(t,"isCollection",(function(){return h})),n.d(t,"isKeyed",(function(){return m})),n.d(t,"isIndexed",(function(){return g})),n.d(t,"isAssociative",(function(){return y})),n.d(t,"isOrdered",(function(){return k})),n.d(t,"isValueObject",(function(){return X})),n.d(t,"get",(function(){return We})),n.d(t,"getIn",(function(){return An})),n.d(t,"has",(function(){return He})),n.d(t,"hasIn",(function(){return _n})),n.d(t,"merge",(function(){return at})),n.d(t,"mergeDeep",(function(){return ut})),n.d(t,"mergeWith",(function(){return st})),n.d(t,"mergeDeepWith",(function(){return ct})),n.d(t,"remove",(function(){return Ke})),n.d(t,"removeIn",(function(){return Xe})),n.d(t,"set",(function(){return Je})),n.d(t,"setIn",(function(){return Ye})),n.d(t,"update",(function(){return et})),n.d(t,"updateIn",(function(){return Qe}));var r={};function i(e){e&&(e.value=!0)}function o(){}function a(e){return void 0===e.size&&(e.size=e.__iterate(u)),e.size}function s(e,t){if("number"!=typeof t){var n=t>>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?a(e)+t:t}function u(){return!0}function c(e,t,n){return(0===e&&!d(e)||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function l(e,t){return f(e,t,0)}function p(e,t){return f(e,t,t)}function f(e,t,n){return void 0===e?n:d(e)?t===1/0?t:0|Math.max(0,t+e):void 0===t||t===e?e:0|Math.min(t,e)}function d(e){return e<0||0===e&&1/e==-1/0}function h(e){return Boolean(e&&e["@@__IMMUTABLE_ITERABLE__@@"])}function m(e){return Boolean(e&&e["@@__IMMUTABLE_KEYED__@@"])}function g(e){return Boolean(e&&e["@@__IMMUTABLE_INDEXED__@@"])}function y(e){return m(e)||g(e)}var v=function(e){return h(e)?e:R(e)},b=function(e){function t(e){return m(e)?e:B(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(v),E=function(e){function t(e){return g(e)?e:U(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(v),x=function(e){function t(e){return h(e)&&!y(e)?e:z(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(v);v.Keyed=b,v.Indexed=E,v.Set=x;function D(e){return Boolean(e&&e["@@__IMMUTABLE_SEQ__@@"])}function C(e){return Boolean(e&&e["@@__IMMUTABLE_RECORD__@@"])}function w(e){return h(e)||C(e)}var S="@@__IMMUTABLE_ORDERED__@@";function k(e){return Boolean(e&&e[S])}var A="function"==typeof Symbol&&Symbol.iterator,T=A||"@@iterator",_=function(e){this.next=e};function O(e,t,n,r){var i=0===e?t:1===e?n:[t,n];return r?r.value=i:r={value:i,done:!1},r}function F(){return{value:void 0,done:!0}}function N(e){return!!j(e)}function I(e){return e&&"function"==typeof e.next}function M(e){var t=j(e);return t&&t.call(e)}function j(e){var t=e&&(A&&e[A]||e["@@iterator"]);if("function"==typeof t)return t}_.prototype.toString=function(){return"[Iterator]"},_.KEYS=0,_.VALUES=1,_.ENTRIES=2,_.prototype.inspect=_.prototype.toSource=function(){return this.toString()},_.prototype[T]=function(){return this};var L=Object.prototype.hasOwnProperty;function P(e){return!(!Array.isArray(e)&&"string"!=typeof e)||e&&"object"==typeof e&&Number.isInteger(e.length)&&e.length>=0&&(0===e.length?1===Object.keys(e).length:e.hasOwnProperty(e.length-1))}var R=function(e){function t(e){return null==e?G():w(e)?e.toSeq():function(e){var t=Q(e);if(t)return t;if("object"==typeof e)return new q(e);throw new TypeError("Expected Array or collection object of values, or keyed object: "+e)}(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toSeq=function(){return this},t.prototype.toString=function(){return this.__toString("Seq {","}")},t.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},t.prototype.__iterate=function(e,t){var n=this._cache;if(n){for(var r=n.length,i=0;i!==r;){var o=n[t?r-++i:i++];if(!1===e(o[1],o[0],this))break}return i}return this.__iterateUncached(e,t)},t.prototype.__iterator=function(e,t){var n=this._cache;if(n){var r=n.length,i=0;return new _((function(){if(i===r)return{value:void 0,done:!0};var o=n[t?r-++i:i++];return O(e,o[0],o[1])}))}return this.__iteratorUncached(e,t)},t}(v),B=function(e){function t(e){return null==e?G().toKeyedSeq():h(e)?m(e)?e.toSeq():e.fromEntrySeq():C(e)?e.toSeq():K(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toKeyedSeq=function(){return this},t}(R),U=function(e){function t(e){return null==e?G():h(e)?m(e)?e.entrySeq():e.toIndexedSeq():C(e)?e.toSeq().entrySeq():J(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return t(arguments)},t.prototype.toIndexedSeq=function(){return this},t.prototype.toString=function(){return this.__toString("Seq [","]")},t}(R),z=function(e){function t(e){return(h(e)&&!y(e)?e:U(e)).toSetSeq()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return t(arguments)},t.prototype.toSetSeq=function(){return this},t}(R);R.isSeq=D,R.Keyed=B,R.Set=z,R.Indexed=U,R.prototype["@@__IMMUTABLE_SEQ__@@"]=!0;var V=function(e){function t(e){this._array=e,this.size=e.length}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e,t){return this.has(e)?this._array[s(this,e)]:t},t.prototype.__iterate=function(e,t){for(var n=this._array,r=n.length,i=0;i!==r;){var o=t?r-++i:i++;if(!1===e(n[o],o,this))break}return i},t.prototype.__iterator=function(e,t){var n=this._array,r=n.length,i=0;return new _((function(){if(i===r)return{value:void 0,done:!0};var o=t?r-++i:i++;return O(e,o,n[o])}))},t}(U),q=function(e){function t(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},t.prototype.has=function(e){return L.call(this._object,e)},t.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,i=r.length,o=0;o!==i;){var a=r[t?i-++o:o++];if(!1===e(n[a],a,this))break}return o},t.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,i=r.length,o=0;return new _((function(){if(o===i)return{value:void 0,done:!0};var a=r[t?i-++o:o++];return O(e,a,n[a])}))},t}(B);q.prototype[S]=!0;var H,W=function(e){function t(e){this._collection=e,this.size=e.length||e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=M(this._collection),r=0;if(I(n))for(var i;!(i=n.next()).done&&!1!==e(i.value,r++,this););return r},t.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=M(this._collection);if(!I(n))return new _(F);var r=0;return new _((function(){var t=n.next();return t.done?t:O(e,r++,t.value)}))},t}(U);function G(){return H||(H=new V([]))}function K(e){var t=Array.isArray(e)?new V(e):N(e)?new W(e):void 0;if(t)return t.fromEntrySeq();if("object"==typeof e)return new q(e);throw new TypeError("Expected Array or collection object of [k, v] entries, or keyed object: "+e)}function J(e){var t=Q(e);if(t)return t;throw new TypeError("Expected Array or collection object of values: "+e)}function Q(e){return P(e)?new V(e):N(e)?new W(e):void 0}function Y(e){return Boolean(e&&e["@@__IMMUTABLE_MAP__@@"])}function $(e){return Y(e)&&k(e)}function X(e){return Boolean(e&&"function"==typeof e.equals&&"function"==typeof e.hashCode)}function Z(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if((e=e.valueOf())===(t=t.valueOf())||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!!(X(e)&&X(t)&&e.equals(t))}var ee="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0};function te(e){return e>>>1&1073741824|3221225471&e}var ne=Object.prototype.valueOf;function re(e){switch(typeof e){case"boolean":return e?1108378657:1108378656;case"number":return function(e){if(e!=e||e===1/0)return 0;var t=0|e;t!==e&&(t^=4294967295*e);for(;e>4294967295;)t^=e/=4294967295;return te(t)}(e);case"string":return e.length>pe?function(e){var t=he[e];void 0===t&&(t=ie(e),de===fe&&(de=0,he={}),de++,he[e]=t);return t}(e):ie(e);case"object":case"function":return null===e?1108378658:"function"==typeof e.hashCode?te(e.hashCode(e)):(e.valueOf!==ne&&"function"==typeof e.valueOf&&(e=e.valueOf(e)),function(e){var t;if(ue&&void 0!==(t=se.get(e)))return t;if(void 0!==(t=e[le]))return t;if(!ae){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[le]))return t;if(void 0!==(t=function(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}(e)))return t}t=++ce,1073741824&ce&&(ce=0);if(ue)se.set(e,t);else{if(void 0!==oe&&!1===oe(e))throw new Error("Non-extensible objects are not allowed as keys.");if(ae)Object.defineProperty(e,le,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[le]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[le]=t}}return t}(e));case"undefined":return 1108378659;default:if("function"==typeof e.toString)return ie(e.toString());throw new Error("Value type "+typeof e+" cannot be hashed.")}}function ie(e){for(var t=0,n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return te(t)}var oe=Object.isExtensible,ae=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}();var se,ue="function"==typeof WeakMap;ue&&(se=new WeakMap);var ce=0,le="__immutablehash__";"function"==typeof Symbol&&(le=Symbol(le));var pe=16,fe=255,de=0,he={},me=function(e){function t(e,t){this._iter=e,this._useKeys=t,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e,t){return this._iter.get(e,t)},t.prototype.has=function(e){return this._iter.has(e)},t.prototype.valueSeq=function(){return this._iter.valueSeq()},t.prototype.reverse=function(){var e=this,t=xe(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},t.prototype.map=function(e,t){var n=this,r=Ee(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},t.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t,r){return e(t,r,n)}),t)},t.prototype.__iterator=function(e,t){return this._iter.__iterator(e,t)},t}(B);me.prototype[S]=!0;var ge=function(e){function t(e){this._iter=e,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.includes=function(e){return this._iter.includes(e)},t.prototype.__iterate=function(e,t){var n=this,r=0;return t&&a(this),this._iter.__iterate((function(i){return e(i,t?n.size-++r:r++,n)}),t)},t.prototype.__iterator=function(e,t){var n=this,r=this._iter.__iterator(1,t),i=0;return t&&a(this),new _((function(){var o=r.next();return o.done?o:O(e,t?n.size-++i:i++,o.value,o)}))},t}(U),ye=function(e){function t(e){this._iter=e,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.has=function(e){return this._iter.includes(e)},t.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){return e(t,t,n)}),t)},t.prototype.__iterator=function(e,t){var n=this._iter.__iterator(1,t);return new _((function(){var t=n.next();return t.done?t:O(e,t.value,t.value,t)}))},t}(z),ve=function(e){function t(e){this._iter=e,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.entrySeq=function(){return this._iter.toSeq()},t.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){if(t){Ne(t);var r=h(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}}),t)},t.prototype.__iterator=function(e,t){var n=this._iter.__iterator(1,t);return new _((function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){Ne(r);var i=h(r);return O(e,i?r.get(0):r[0],i?r.get(1):r[1],t)}}}))},t}(B);function be(e){var t=Me(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=je,t.__iterateUncached=function(t,n){var r=this;return e.__iterate((function(e,n){return!1!==t(n,e,r)}),n)},t.__iteratorUncached=function(t,n){if(2===t){var r=e.__iterator(t,n);return new _((function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e}))}return e.__iterator(1===t?0:1,n)},t}function Ee(e,t,n){var i=Me(e);return i.size=e.size,i.has=function(t){return e.has(t)},i.get=function(i,o){var a=e.get(i,r);return a===r?o:t.call(n,a,i,e)},i.__iterateUncached=function(r,i){var o=this;return e.__iterate((function(e,i,a){return!1!==r(t.call(n,e,i,a),i,o)}),i)},i.__iteratorUncached=function(r,i){var o=e.__iterator(2,i);return new _((function(){var i=o.next();if(i.done)return i;var a=i.value,s=a[0];return O(r,s,t.call(n,a[1],s,e),i)}))},i}function xe(e,t){var n=this,r=Me(e);return r._iter=e,r.size=e.size,r.reverse=function(){return e},e.flip&&(r.flip=function(){var t=be(e);return t.reverse=function(){return e.flip()},t}),r.get=function(n,r){return e.get(t?n:-1-n,r)},r.has=function(n){return e.has(t?n:-1-n)},r.includes=function(t){return e.includes(t)},r.cacheResult=je,r.__iterate=function(n,r){var i=this,o=0;return r&&a(e),e.__iterate((function(e,a){return n(e,t?a:r?i.size-++o:o++,i)}),!r)},r.__iterator=function(r,i){var o=0;i&&a(e);var s=e.__iterator(2,!i);return new _((function(){var e=s.next();if(e.done)return e;var a=e.value;return O(r,t?a[0]:i?n.size-++o:o++,a[1],e)}))},r}function De(e,t,n,i){var o=Me(e);return i&&(o.has=function(i){var o=e.get(i,r);return o!==r&&!!t.call(n,o,i,e)},o.get=function(i,o){var a=e.get(i,r);return a!==r&&t.call(n,a,i,e)?a:o}),o.__iterateUncached=function(r,o){var a=this,s=0;return e.__iterate((function(e,o,u){if(t.call(n,e,o,u))return s++,r(e,i?o:s-1,a)}),o),s},o.__iteratorUncached=function(r,o){var a=e.__iterator(2,o),s=0;return new _((function(){for(;;){var o=a.next();if(o.done)return o;var u=o.value,c=u[0],l=u[1];if(t.call(n,l,c,e))return O(r,i?c:s++,l,o)}}))},o}function Ce(e,t,n,r){var i=e.size;if(c(t,n,i))return e;var o=l(t,i),a=p(n,i);if(o!=o||a!=a)return Ce(e.toSeq().cacheResult(),t,n,r);var u,f=a-o;f==f&&(u=f<0?0:f);var d=Me(e);return d.size=0===u?u:e.size&&u||void 0,!r&&D(e)&&u>=0&&(d.get=function(t,n){return(t=s(this,t))>=0&&t<u?e.get(t+o,n):n}),d.__iterateUncached=function(t,n){var i=this;if(0===u)return 0;if(n)return this.cacheResult().__iterate(t,n);var a=0,s=!0,c=0;return e.__iterate((function(e,n){if(!s||!(s=a++<o))return c++,!1!==t(e,r?n:c-1,i)&&c!==u})),c},d.__iteratorUncached=function(t,n){if(0!==u&&n)return this.cacheResult().__iterator(t,n);if(0===u)return new _(F);var i=e.__iterator(t,n),a=0,s=0;return new _((function(){for(;a++<o;)i.next();if(++s>u)return{value:void 0,done:!0};var e=i.next();return r||1===t||e.done?e:O(t,s-1,0===t?void 0:e.value[1],e)}))},d}function we(e,t,n,r){var i=Me(e);return i.__iterateUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterate(i,o);var s=!0,u=0;return e.__iterate((function(e,o,c){if(!s||!(s=t.call(n,e,o,c)))return u++,i(e,r?o:u-1,a)})),u},i.__iteratorUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterator(i,o);var s=e.__iterator(2,o),u=!0,c=0;return new _((function(){var e,o,l;do{if((e=s.next()).done)return r||1===i?e:O(i,c++,0===i?void 0:e.value[1],e);var p=e.value;o=p[0],l=p[1],u&&(u=t.call(n,l,o,a))}while(u);return 2===i?e:O(i,o,l,e)}))},i}function Se(e,t){var n=m(e),r=[e].concat(t).map((function(e){return h(e)?n&&(e=b(e)):e=n?K(e):J(Array.isArray(e)?e:[e]),e})).filter((function(e){return 0!==e.size}));if(0===r.length)return e;if(1===r.length){var i=r[0];if(i===e||n&&m(i)||g(e)&&g(i))return i}var o=new V(r);return n?o=o.toKeyedSeq():g(e)||(o=o.toSetSeq()),(o=o.flatten(!0)).size=r.reduce((function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}}),0),o}function ke(e,t,n){var r=Me(e);return r.__iterateUncached=function(i,o){if(o)return this.cacheResult().__iterate(i,o);var a=0,s=!1;return function e(u,c){u.__iterate((function(o,u){return(!t||c<t)&&h(o)?e(o,c+1):(a++,!1===i(o,n?u:a-1,r)&&(s=!0)),!s}),o)}(e,0),a},r.__iteratorUncached=function(r,i){if(i)return this.cacheResult().__iterator(r,i);var o=e.__iterator(r,i),a=[],s=0;return new _((function(){for(;o;){var e=o.next();if(!1===e.done){var u=e.value;if(2===r&&(u=u[1]),t&&!(a.length<t)||!h(u))return n?e:O(r,s++,u,e);a.push(o),o=u.__iterator(r,i)}else o=a.pop()}return{value:void 0,done:!0}}))},r}function Ae(e,t,n){t||(t=Le);var r=m(e),i=0,o=e.toSeq().map((function(t,r){return[r,t,i++,n?n(t,r,e):t]})).valueSeq().toArray();return o.sort((function(e,n){return t(e[3],n[3])||e[2]-n[2]})).forEach(r?function(e,t){o[t].length=2}:function(e,t){o[t]=e[1]}),r?B(o):g(e)?U(o):z(o)}function Te(e,t,n){if(t||(t=Le),n){var r=e.toSeq().map((function(t,r){return[t,n(t,r,e)]})).reduce((function(e,n){return _e(t,e[1],n[1])?n:e}));return r&&r[0]}return e.reduce((function(e,n){return _e(t,e,n)?n:e}))}function _e(e,t,n){var r=e(n,t);return 0===r&&n!==t&&(null==n||n!=n)||r>0}function Oe(e,t,n,r){var i=Me(e),o=new V(n).map((function(e){return e.size}));return i.size=r?o.max():o.min(),i.__iterate=function(e,t){for(var n,r=this.__iterator(1,t),i=0;!(n=r.next()).done&&!1!==e(n.value,i++,this););return i},i.__iteratorUncached=function(e,i){var o=n.map((function(e){return e=v(e),M(i?e.reverse():e)})),a=0,s=!1;return new _((function(){var n;return s||(n=o.map((function(e){return e.next()})),s=r?n.every((function(e){return e.done})):n.some((function(e){return e.done}))),s?{value:void 0,done:!0}:O(e,a++,t.apply(null,n.map((function(e){return e.value}))))}))},i}function Fe(e,t){return e===t?e:D(e)?t:e.constructor(t)}function Ne(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function Ie(e){return m(e)?b:g(e)?E:x}function Me(e){return Object.create((m(e)?B:g(e)?U:z).prototype)}function je(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):R.prototype.cacheResult.call(this)}function Le(e,t){return void 0===e&&void 0===t?0:void 0===e?1:void 0===t?-1:e>t?1:e<t?-1:0}function Pe(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),i=0;i<n;i++)r[i]=e[i+t];return r}function Re(e,t){if(!e)throw new Error(t)}function Be(e){Re(e!==1/0,"Cannot perform this action with an infinite size.")}function Ue(e){if(P(e)&&"string"!=typeof e)return e;if(k(e))return e.toArray();throw new TypeError("Invalid keyPath: expected Ordered Collection or Array: "+e)}function ze(e){return e&&("function"!=typeof e.constructor||"Object"===e.constructor.name)}function Ve(e){return"object"==typeof e&&(w(e)||Array.isArray(e)||ze(e))}function qe(e){try{return"string"==typeof e?JSON.stringify(e):String(e)}catch(t){return JSON.stringify(e)}}function He(e,t){return w(e)?e.has(t):Ve(e)&&L.call(e,t)}function We(e,t,n){return w(e)?e.get(t,n):He(e,t)?"function"==typeof e.get?e.get(t):e[t]:n}function Ge(e){if(Array.isArray(e))return Pe(e);var t={};for(var n in e)L.call(e,n)&&(t[n]=e[n]);return t}function Ke(e,t){if(!Ve(e))throw new TypeError("Cannot update non-data-structure value: "+e);if(w(e)){if(!e.remove)throw new TypeError("Cannot update immutable value without .remove() method: "+e);return e.remove(t)}if(!L.call(e,t))return e;var n=Ge(e);return Array.isArray(n)?n.splice(t,1):delete n[t],n}function Je(e,t,n){if(!Ve(e))throw new TypeError("Cannot update non-data-structure value: "+e);if(w(e)){if(!e.set)throw new TypeError("Cannot update immutable value without .set() method: "+e);return e.set(t,n)}if(L.call(e,t)&&n===e[t])return e;var r=Ge(e);return r[t]=n,r}function Qe(e,t,n,i){i||(i=n,n=void 0);var o=function e(t,n,i,o,a,s){var u=n===r;if(o===i.length){var c=u?a:n,l=s(c);return l===c?n:l}if(!u&&!Ve(n))throw new TypeError("Cannot update within non-data-structure value in path ["+i.slice(0,o).map(qe)+"]: "+n);var p=i[o],f=u?r:We(n,p,r),d=e(f===r?t:w(f),f,i,o+1,a,s);return d===f?n:d===r?Ke(n,p):Je(u?t?Nt():{}:n,p,d)}(w(e),e,Ue(t),0,n,i);return o===r?n:o}function Ye(e,t,n){return Qe(e,t,r,(function(){return n}))}function $e(e,t){return Ye(this,e,t)}function Xe(e,t){return Qe(e,t,(function(){return r}))}function Ze(e){return Xe(this,e)}function et(e,t,n,r){return Qe(e,[t],n,r)}function tt(e,t,n){return 1===arguments.length?e(this):et(this,e,t,n)}function nt(e,t,n){return Qe(this,e,t,n)}function rt(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return ot(this,e)}function it(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];if("function"!=typeof e)throw new TypeError("Invalid merger function: "+e);return ot(this,t,e)}function ot(e,t,n){for(var i=[],o=0;o<t.length;o++){var a=b(t[o]);0!==a.size&&i.push(a)}return 0===i.length?e:0!==e.toSeq().size||e.__ownerID||1!==i.length?e.withMutations((function(e){for(var t=n?function(t,i){et(e,i,r,(function(e){return e===r?t:n(e,t,i)}))}:function(t,n){e.set(n,t)},o=0;o<i.length;o++)i[o].forEach(t)})):e.constructor(i[0])}function at(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return pt(e,t)}function st(e,t){for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];return pt(t,n,e)}function ut(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return lt(e,t)}function ct(e,t){for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];return lt(t,n,e)}function lt(e,t,n){return pt(e,t,function(e){return function t(n,r,i){return Ve(n)&&Ve(r)?pt(n,[r],t):e?e(n,r,i):r}}(n))}function pt(e,t,n){if(!Ve(e))throw new TypeError("Cannot merge into non-data-structure value: "+e);if(w(e))return"function"==typeof n&&e.mergeWith?e.mergeWith.apply(e,[n].concat(t)):e.merge?e.merge.apply(e,t):e.concat.apply(e,t);for(var r=Array.isArray(e),i=e,o=r?E:b,a=r?function(t){i===e&&(i=Ge(i)),i.push(t)}:function(t,r){var o=L.call(i,r),a=o&&n?n(i[r],t,r):t;o&&a===i[r]||(i===e&&(i=Ge(i)),i[r]=a)},s=0;s<t.length;s++)o(t[s]).forEach(a);return i}function ft(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return lt(this,e)}function dt(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return lt(this,t,e)}function ht(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return Qe(this,e,Nt(),(function(e){return pt(e,t)}))}function mt(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return Qe(this,e,Nt(),(function(e){return lt(e,t)}))}function gt(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this}function yt(){return this.__ownerID?this:this.__ensureOwner(new o)}function vt(){return this.__ensureOwner()}function bt(){return this.__altered}ge.prototype.cacheResult=me.prototype.cacheResult=ye.prototype.cacheResult=ve.prototype.cacheResult=je;var Et=function(e){function t(t){return null==t?Nt():Y(t)&&!k(t)?t:Nt().withMutations((function(n){var r=e(t);Be(r.size),r.forEach((function(e,t){return n.set(t,e)}))}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return Nt().withMutations((function(t){for(var n=0;n<e.length;n+=2){if(n+1>=e.length)throw new Error("Missing value for key: "+e[n]);t.set(e[n],e[n+1])}}))},t.prototype.toString=function(){return this.__toString("Map {","}")},t.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},t.prototype.set=function(e,t){return It(this,e,t)},t.prototype.remove=function(e){return It(this,e,r)},t.prototype.deleteAll=function(e){var t=v(e);return 0===t.size?this:this.withMutations((function(e){t.forEach((function(t){return e.remove(t)}))}))},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):Nt()},t.prototype.sort=function(e){return rn(Ae(this,e))},t.prototype.sortBy=function(e,t){return rn(Ae(this,t,e))},t.prototype.map=function(e,t){return this.withMutations((function(n){n.forEach((function(r,i){n.set(i,e.call(t,r,i,n))}))}))},t.prototype.__iterator=function(e,t){return new Tt(this,e,t)},t.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate((function(t){return r++,e(t[1],t[0],n)}),t),r},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Ft(this.size,this._root,e,this.__hash):0===this.size?Nt():(this.__ownerID=e,this.__altered=!1,this)},t}(b);Et.isMap=Y;var xt=Et.prototype;xt["@@__IMMUTABLE_MAP__@@"]=!0,xt.delete=xt.remove,xt.removeAll=xt.deleteAll,xt.setIn=$e,xt.removeIn=xt.deleteIn=Ze,xt.update=tt,xt.updateIn=nt,xt.merge=xt.concat=rt,xt.mergeWith=it,xt.mergeDeep=ft,xt.mergeDeepWith=dt,xt.mergeIn=ht,xt.mergeDeepIn=mt,xt.withMutations=gt,xt.wasAltered=bt,xt.asImmutable=vt,xt["@@transducer/init"]=xt.asMutable=yt,xt["@@transducer/step"]=function(e,t){return e.set(t[0],t[1])},xt["@@transducer/result"]=function(e){return e.asImmutable()};var Dt=function(e,t){this.ownerID=e,this.entries=t};Dt.prototype.get=function(e,t,n,r){for(var i=this.entries,o=0,a=i.length;o<a;o++)if(Z(n,i[o][0]))return i[o][1];return r},Dt.prototype.update=function(e,t,n,a,s,u,c){for(var l=s===r,p=this.entries,f=0,d=p.length;f<d&&!Z(a,p[f][0]);f++);var h=f<d;if(h?p[f][1]===s:l)return this;if(i(c),(l||!h)&&i(u),!l||1!==p.length){if(!h&&!l&&p.length>=Bt)return function(e,t,n,r){e||(e=new o);for(var i=new kt(e,re(n),[n,r]),a=0;a<t.length;a++){var s=t[a];i=i.update(e,0,void 0,s[0],s[1])}return i}(e,p,a,s);var m=e&&e===this.ownerID,g=m?p:Pe(p);return h?l?f===d-1?g.pop():g[f]=g.pop():g[f]=[a,s]:g.push([a,s]),m?(this.entries=g,this):new Dt(e,g)}};var Ct=function(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n};Ct.prototype.get=function(e,t,n,r){void 0===t&&(t=re(n));var i=1<<(31&(0===e?t:t>>>e)),o=this.bitmap;return 0==(o&i)?r:this.nodes[Pt(o&i-1)].get(e+5,t,n,r)},Ct.prototype.update=function(e,t,n,i,o,a,s){void 0===n&&(n=re(i));var u=31&(0===t?n:n>>>t),c=1<<u,l=this.bitmap,p=0!=(l&c);if(!p&&o===r)return this;var f=Pt(l&c-1),d=this.nodes,h=p?d[f]:void 0,m=Mt(h,e,t+5,n,i,o,a,s);if(m===h)return this;if(!p&&m&&d.length>=Ut)return function(e,t,n,r,i){for(var o=0,a=new Array(32),s=0;0!==n;s++,n>>>=1)a[s]=1&n?t[o++]:void 0;return a[r]=i,new wt(e,o+1,a)}(e,d,l,u,m);if(p&&!m&&2===d.length&&jt(d[1^f]))return d[1^f];if(p&&m&&1===d.length&&jt(m))return m;var g=e&&e===this.ownerID,y=p?m?l:l^c:l|c,v=p?m?Rt(d,f,m,g):function(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var i=new Array(r),o=0,a=0;a<r;a++)a===t&&(o=1),i[a]=e[a+o];return i}(d,f,g):function(e,t,n,r){var i=e.length+1;if(r&&t+1===i)return e[t]=n,e;for(var o=new Array(i),a=0,s=0;s<i;s++)s===t?(o[s]=n,a=-1):o[s]=e[s+a];return o}(d,f,m,g);return g?(this.bitmap=y,this.nodes=v,this):new Ct(e,y,v)};var wt=function(e,t,n){this.ownerID=e,this.count=t,this.nodes=n};wt.prototype.get=function(e,t,n,r){void 0===t&&(t=re(n));var i=31&(0===e?t:t>>>e),o=this.nodes[i];return o?o.get(e+5,t,n,r):r},wt.prototype.update=function(e,t,n,i,o,a,s){void 0===n&&(n=re(i));var u=31&(0===t?n:n>>>t),c=o===r,l=this.nodes,p=l[u];if(c&&!p)return this;var f=Mt(p,e,t+5,n,i,o,a,s);if(f===p)return this;var d=this.count;if(p){if(!f&&--d<zt)return function(e,t,n,r){for(var i=0,o=0,a=new Array(n),s=0,u=1,c=t.length;s<c;s++,u<<=1){var l=t[s];void 0!==l&&s!==r&&(i|=u,a[o++]=l)}return new Ct(e,i,a)}(e,l,d,u)}else d++;var h=e&&e===this.ownerID,m=Rt(l,u,f,h);return h?(this.count=d,this.nodes=m,this):new wt(e,d,m)};var St=function(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n};St.prototype.get=function(e,t,n,r){for(var i=this.entries,o=0,a=i.length;o<a;o++)if(Z(n,i[o][0]))return i[o][1];return r},St.prototype.update=function(e,t,n,o,a,s,u){void 0===n&&(n=re(o));var c=a===r;if(n!==this.keyHash)return c?this:(i(u),i(s),Lt(this,e,t,n,[o,a]));for(var l=this.entries,p=0,f=l.length;p<f&&!Z(o,l[p][0]);p++);var d=p<f;if(d?l[p][1]===a:c)return this;if(i(u),(c||!d)&&i(s),c&&2===f)return new kt(e,this.keyHash,l[1^p]);var h=e&&e===this.ownerID,m=h?l:Pe(l);return d?c?p===f-1?m.pop():m[p]=m.pop():m[p]=[o,a]:m.push([o,a]),h?(this.entries=m,this):new St(e,this.keyHash,m)};var kt=function(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n};kt.prototype.get=function(e,t,n,r){return Z(n,this.entry[0])?this.entry[1]:r},kt.prototype.update=function(e,t,n,o,a,s,u){var c=a===r,l=Z(o,this.entry[0]);return(l?a===this.entry[1]:c)?this:(i(u),c?void i(s):l?e&&e===this.ownerID?(this.entry[1]=a,this):new kt(e,this.keyHash,[o,a]):(i(s),Lt(this,e,t,re(o),[o,a])))},Dt.prototype.iterate=St.prototype.iterate=function(e,t){for(var n=this.entries,r=0,i=n.length-1;r<=i;r++)if(!1===e(n[t?i-r:r]))return!1},Ct.prototype.iterate=wt.prototype.iterate=function(e,t){for(var n=this.nodes,r=0,i=n.length-1;r<=i;r++){var o=n[t?i-r:r];if(o&&!1===o.iterate(e,t))return!1}},kt.prototype.iterate=function(e,t){return e(this.entry)};var At,Tt=function(e){function t(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&Ot(e._root)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.next=function(){for(var e=this._type,t=this._stack;t;){var n=t.node,r=t.index++,i=void 0;if(n.entry){if(0===r)return _t(e,n.entry)}else if(n.entries){if(r<=(i=n.entries.length-1))return _t(e,n.entries[this._reverse?i-r:r])}else if(r<=(i=n.nodes.length-1)){var o=n.nodes[this._reverse?i-r:r];if(o){if(o.entry)return _t(e,o.entry);t=this._stack=Ot(o,t)}continue}t=this._stack=this._stack.__prev}return{value:void 0,done:!0}},t}(_);function _t(e,t){return O(e,t[0],t[1])}function Ot(e,t){return{node:e,index:0,__prev:t}}function Ft(e,t,n,r){var i=Object.create(xt);return i.size=e,i._root=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function Nt(){return At||(At=Ft(0))}function It(e,t,n){var i,o;if(e._root){var a={value:!1},s={value:!1};if(i=Mt(e._root,e.__ownerID,0,void 0,t,n,a,s),!s.value)return e;o=e.size+(a.value?n===r?-1:1:0)}else{if(n===r)return e;o=1,i=new Dt(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=o,e._root=i,e.__hash=void 0,e.__altered=!0,e):i?Ft(o,i):Nt()}function Mt(e,t,n,o,a,s,u,c){return e?e.update(t,n,o,a,s,u,c):s===r?e:(i(c),i(u),new kt(t,o,[a,s]))}function jt(e){return e.constructor===kt||e.constructor===St}function Lt(e,t,n,r,i){if(e.keyHash===r)return new St(t,r,[e.entry,i]);var o,a=31&(0===n?e.keyHash:e.keyHash>>>n),s=31&(0===n?r:r>>>n),u=a===s?[Lt(e,t,n+5,r,i)]:(o=new kt(t,r,i),a<s?[e,o]:[o,e]);return new Ct(t,1<<a|1<<s,u)}function Pt(e){return e=(e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function Rt(e,t,n,r){var i=r?e:Pe(e);return i[t]=n,i}var Bt=8,Ut=16,zt=8;function Vt(e){return Boolean(e&&e["@@__IMMUTABLE_LIST__@@"])}var qt=function(e){function t(t){var n=Yt();if(null==t)return n;if(Vt(t))return t;var r=e(t),i=r.size;return 0===i?n:(Be(i),i>0&&i<32?Qt(0,i,5,null,new Wt(r.toArray())):n.withMutations((function(e){e.setSize(i),r.forEach((function(t,n){return e.set(n,t)}))})))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("List [","]")},t.prototype.get=function(e,t){if((e=s(this,e))>=0&&e<this.size){var n=Zt(this,e+=this._origin);return n&&n.array[31&e]}return t},t.prototype.set=function(e,t){return function(e,t,n){if((t=s(e,t))!=t)return e;if(t>=e.size||t<0)return e.withMutations((function(e){t<0?en(e,t).set(0,n):en(e,0,t+1).set(t,n)}));t+=e._origin;var r=e._tail,i=e._root,o={value:!1};t>=tn(e._capacity)?r=$t(r,e.__ownerID,0,t,n,o):i=$t(i,e.__ownerID,e._level,t,n,o);if(!o.value)return e;if(e.__ownerID)return e._root=i,e._tail=r,e.__hash=void 0,e.__altered=!0,e;return Qt(e._origin,e._capacity,e._level,i,r)}(this,e,t)},t.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},t.prototype.insert=function(e,t){return this.splice(e,0,t)},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=5,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):Yt()},t.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations((function(n){en(n,0,t+e.length);for(var r=0;r<e.length;r++)n.set(t+r,e[r])}))},t.prototype.pop=function(){return en(this,0,-1)},t.prototype.unshift=function(){var e=arguments;return this.withMutations((function(t){en(t,-e.length);for(var n=0;n<e.length;n++)t.set(n,e[n])}))},t.prototype.shift=function(){return en(this,1)},t.prototype.concat=function(){for(var t=arguments,n=[],r=0;r<arguments.length;r++){var i=t[r],o=e("string"!=typeof i&&N(i)?i:[i]);0!==o.size&&n.push(o)}return 0===n.length?this:0!==this.size||this.__ownerID||1!==n.length?this.withMutations((function(e){n.forEach((function(t){return t.forEach((function(t){return e.push(t)}))}))})):this.constructor(n[0])},t.prototype.setSize=function(e){return en(this,0,e)},t.prototype.map=function(e,t){var n=this;return this.withMutations((function(r){for(var i=0;i<n.size;i++)r.set(i,e.call(t,r.get(i),i,r))}))},t.prototype.slice=function(e,t){var n=this.size;return c(e,t,n)?this:en(this,l(e,n),p(t,n))},t.prototype.__iterator=function(e,t){var n=t?this.size:0,r=Jt(this,t);return new _((function(){var i=r();return i===Kt?{value:void 0,done:!0}:O(e,t?--n:n++,i)}))},t.prototype.__iterate=function(e,t){for(var n,r=t?this.size:0,i=Jt(this,t);(n=i())!==Kt&&!1!==e(n,t?--r:r++,this););return r},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Qt(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash):0===this.size?Yt():(this.__ownerID=e,this.__altered=!1,this)},t}(E);qt.isList=Vt;var Ht=qt.prototype;Ht["@@__IMMUTABLE_LIST__@@"]=!0,Ht.delete=Ht.remove,Ht.merge=Ht.concat,Ht.setIn=$e,Ht.deleteIn=Ht.removeIn=Ze,Ht.update=tt,Ht.updateIn=nt,Ht.mergeIn=ht,Ht.mergeDeepIn=mt,Ht.withMutations=gt,Ht.wasAltered=bt,Ht.asImmutable=vt,Ht["@@transducer/init"]=Ht.asMutable=yt,Ht["@@transducer/step"]=function(e,t){return e.push(t)},Ht["@@transducer/result"]=function(e){return e.asImmutable()};var Wt=function(e,t){this.array=e,this.ownerID=t};Wt.prototype.removeBefore=function(e,t,n){if(n===t?1<<t:0===this.array.length)return this;var r=n>>>t&31;if(r>=this.array.length)return new Wt([],e);var i,o=0===r;if(t>0){var a=this.array[r];if((i=a&&a.removeBefore(e,t-5,n))===a&&o)return this}if(o&&!i)return this;var s=Xt(this,e);if(!o)for(var u=0;u<r;u++)s.array[u]=void 0;return i&&(s.array[r]=i),s},Wt.prototype.removeAfter=function(e,t,n){if(n===(t?1<<t:0)||0===this.array.length)return this;var r,i=n-1>>>t&31;if(i>=this.array.length)return this;if(t>0){var o=this.array[i];if((r=o&&o.removeAfter(e,t-5,n))===o&&i===this.array.length-1)return this}var a=Xt(this,e);return a.array.splice(i+1),r&&(a.array[i]=r),a};var Gt,Kt={};function Jt(e,t){var n=e._origin,r=e._capacity,i=tn(r),o=e._tail;return a(e._root,e._level,0);function a(e,s,u){return 0===s?function(e,a){var s=a===i?o&&o.array:e&&e.array,u=a>n?0:n-a,c=r-a;c>32&&(c=32);return function(){if(u===c)return Kt;var e=t?--c:u++;return s&&s[e]}}(e,u):function(e,i,o){var s,u=e&&e.array,c=o>n?0:n-o>>i,l=1+(r-o>>i);l>32&&(l=32);return function(){for(;;){if(s){var e=s();if(e!==Kt)return e;s=null}if(c===l)return Kt;var n=t?--l:c++;s=a(u&&u[n],i-5,o+(n<<i))}}}(e,s,u)}}function Qt(e,t,n,r,i,o,a){var s=Object.create(Ht);return s.size=t-e,s._origin=e,s._capacity=t,s._level=n,s._root=r,s._tail=i,s.__ownerID=o,s.__hash=a,s.__altered=!1,s}function Yt(){return Gt||(Gt=Qt(0,0,5))}function $t(e,t,n,r,o,a){var s,u=r>>>n&31,c=e&&u<e.array.length;if(!c&&void 0===o)return e;if(n>0){var l=e&&e.array[u],p=$t(l,t,n-5,r,o,a);return p===l?e:((s=Xt(e,t)).array[u]=p,s)}return c&&e.array[u]===o?e:(a&&i(a),s=Xt(e,t),void 0===o&&u===s.array.length-1?s.array.pop():s.array[u]=o,s)}function Xt(e,t){return t&&e&&t===e.ownerID?e:new Wt(e?e.array.slice():[],t)}function Zt(e,t){if(t>=tn(e._capacity))return e._tail;if(t<1<<e._level+5){for(var n=e._root,r=e._level;n&&r>0;)n=n.array[t>>>r&31],r-=5;return n}}function en(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new o,i=e._origin,a=e._capacity,s=i+t,u=void 0===n?a:n<0?a+n:i+n;if(s===i&&u===a)return e;if(s>=u)return e.clear();for(var c=e._level,l=e._root,p=0;s+p<0;)l=new Wt(l&&l.array.length?[void 0,l]:[],r),p+=1<<(c+=5);p&&(s+=p,i+=p,u+=p,a+=p);for(var f=tn(a),d=tn(u);d>=1<<c+5;)l=new Wt(l&&l.array.length?[l]:[],r),c+=5;var h=e._tail,m=d<f?Zt(e,u-1):d>f?new Wt([],r):h;if(h&&d>f&&s<a&&h.array.length){for(var g=l=Xt(l,r),y=c;y>5;y-=5){var v=f>>>y&31;g=g.array[v]=Xt(g.array[v],r)}g.array[f>>>5&31]=h}if(u<a&&(m=m&&m.removeAfter(r,0,u)),s>=d)s-=d,u-=d,c=5,l=null,m=m&&m.removeBefore(r,0,s);else if(s>i||d<f){for(p=0;l;){var b=s>>>c&31;if(b!==d>>>c&31)break;b&&(p+=(1<<c)*b),c-=5,l=l.array[b]}l&&s>i&&(l=l.removeBefore(r,c,s-p)),l&&d<f&&(l=l.removeAfter(r,c,d-p)),p&&(s-=p,u-=p)}return e.__ownerID?(e.size=u-s,e._origin=s,e._capacity=u,e._level=c,e._root=l,e._tail=m,e.__hash=void 0,e.__altered=!0,e):Qt(s,u,c,l,m)}function tn(e){return e<32?0:e-1>>>5<<5}var nn,rn=function(e){function t(e){return null==e?an():$(e)?e:an().withMutations((function(t){var n=b(e);Be(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("OrderedMap {","}")},t.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):an()},t.prototype.set=function(e,t){return sn(this,e,t)},t.prototype.remove=function(e){return sn(this,e,r)},t.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},t.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate((function(t){return t&&e(t[1],t[0],n)}),t)},t.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},t.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?on(t,n,e,this.__hash):0===this.size?an():(this.__ownerID=e,this._map=t,this._list=n,this)},t}(Et);function on(e,t,n,r){var i=Object.create(rn.prototype);return i.size=e?e.size:0,i._map=e,i._list=t,i.__ownerID=n,i.__hash=r,i}function an(){return nn||(nn=on(Nt(),Yt()))}function sn(e,t,n){var i,o,a=e._map,s=e._list,u=a.get(t),c=void 0!==u;if(n===r){if(!c)return e;s.size>=32&&s.size>=2*a.size?(i=(o=s.filter((function(e,t){return void 0!==e&&u!==t}))).toKeyedSeq().map((function(e){return e[0]})).flip().toMap(),e.__ownerID&&(i.__ownerID=o.__ownerID=e.__ownerID)):(i=a.remove(t),o=u===s.size-1?s.pop():s.set(u,void 0))}else if(c){if(n===s.get(u)[1])return e;i=a,o=s.set(u,[t,n])}else i=a.set(t,s.size),o=s.set(s.size,[t,n]);return e.__ownerID?(e.size=i.size,e._map=i,e._list=o,e.__hash=void 0,e):on(i,o)}rn.isOrderedMap=$,rn.prototype[S]=!0,rn.prototype.delete=rn.prototype.remove;function un(e){return Boolean(e&&e["@@__IMMUTABLE_STACK__@@"])}var cn=function(e){function t(e){return null==e?dn():un(e)?e:dn().pushAll(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("Stack [","]")},t.prototype.get=function(e,t){var n=this._head;for(e=s(this,e);n&&e--;)n=n.next;return n?n.value:t},t.prototype.peek=function(){return this._head&&this._head.value},t.prototype.push=function(){var e=arguments;if(0===arguments.length)return this;for(var t=this.size+arguments.length,n=this._head,r=arguments.length-1;r>=0;r--)n={value:e[r],next:n};return this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):fn(t,n)},t.prototype.pushAll=function(t){if(0===(t=e(t)).size)return this;if(0===this.size&&un(t))return t;Be(t.size);var n=this.size,r=this._head;return t.__iterate((function(e){n++,r={value:e,next:r}}),!0),this.__ownerID?(this.size=n,this._head=r,this.__hash=void 0,this.__altered=!0,this):fn(n,r)},t.prototype.pop=function(){return this.slice(1)},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):dn()},t.prototype.slice=function(t,n){if(c(t,n,this.size))return this;var r=l(t,this.size);if(p(n,this.size)!==this.size)return e.prototype.slice.call(this,t,n);for(var i=this.size-r,o=this._head;r--;)o=o.next;return this.__ownerID?(this.size=i,this._head=o,this.__hash=void 0,this.__altered=!0,this):fn(i,o)},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?fn(this.size,this._head,e,this.__hash):0===this.size?dn():(this.__ownerID=e,this.__altered=!1,this)},t.prototype.__iterate=function(e,t){var n=this;if(t)return new V(this.toArray()).__iterate((function(t,r){return e(t,r,n)}),t);for(var r=0,i=this._head;i&&!1!==e(i.value,r++,this);)i=i.next;return r},t.prototype.__iterator=function(e,t){if(t)return new V(this.toArray()).__iterator(e,t);var n=0,r=this._head;return new _((function(){if(r){var t=r.value;return r=r.next,O(e,n++,t)}return{value:void 0,done:!0}}))},t}(E);cn.isStack=un;var ln,pn=cn.prototype;function fn(e,t,n,r){var i=Object.create(pn);return i.size=e,i._head=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function dn(){return ln||(ln=fn(0))}pn["@@__IMMUTABLE_STACK__@@"]=!0,pn.shift=pn.pop,pn.unshift=pn.push,pn.unshiftAll=pn.pushAll,pn.withMutations=gt,pn.wasAltered=bt,pn.asImmutable=vt,pn["@@transducer/init"]=pn.asMutable=yt,pn["@@transducer/step"]=function(e,t){return e.unshift(t)},pn["@@transducer/result"]=function(e){return e.asImmutable()};function hn(e){return Boolean(e&&e["@@__IMMUTABLE_SET__@@"])}function mn(e){return hn(e)&&k(e)}function gn(e,t){if(e===t)return!0;if(!h(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||m(e)!==m(t)||g(e)!==g(t)||k(e)!==k(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!y(e);if(k(e)){var i=e.entries();return t.every((function(e,t){var r=i.next().value;return r&&Z(r[1],e)&&(n||Z(r[0],t))}))&&i.next().done}var o=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{o=!0;var a=e;e=t,t=a}var s=!0,u=t.__iterate((function(t,i){if(n?!e.has(t):o?!Z(t,e.get(i,r)):!Z(e.get(i,r),t))return s=!1,!1}));return s&&e.size===u}function yn(e,t){var n=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(n),e}function vn(e){if(!e||"object"!=typeof e)return e;if(!h(e)){if(!Ve(e))return e;e=R(e)}if(m(e)){var t={};return e.__iterate((function(e,n){t[n]=vn(e)})),t}var n=[];return e.__iterate((function(e){n.push(vn(e))})),n}var bn=function(e){function t(t){return null==t?wn():hn(t)&&!k(t)?t:wn().withMutations((function(n){var r=e(t);Be(r.size),r.forEach((function(e){return n.add(e)}))}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.fromKeys=function(e){return this(b(e).keySeq())},t.intersect=function(e){return(e=v(e).toArray()).length?xn.intersect.apply(t(e.pop()),e):wn()},t.union=function(e){return(e=v(e).toArray()).length?xn.union.apply(t(e.pop()),e):wn()},t.prototype.toString=function(){return this.__toString("Set {","}")},t.prototype.has=function(e){return this._map.has(e)},t.prototype.add=function(e){return Dn(this,this._map.set(e,e))},t.prototype.remove=function(e){return Dn(this,this._map.remove(e))},t.prototype.clear=function(){return Dn(this,this._map.clear())},t.prototype.map=function(e,t){var n=this,r=[],i=[];return this.forEach((function(o){var a=e.call(t,o,o,n);a!==o&&(r.push(o),i.push(a))})),this.withMutations((function(e){r.forEach((function(t){return e.remove(t)})),i.forEach((function(t){return e.add(t)}))}))},t.prototype.union=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return 0===(t=t.filter((function(e){return 0!==e.size}))).length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations((function(n){for(var r=0;r<t.length;r++)e(t[r]).forEach((function(e){return n.add(e)}))})):this.constructor(t[0])},t.prototype.intersect=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];if(0===t.length)return this;t=t.map((function(t){return e(t)}));var r=[];return this.forEach((function(e){t.every((function(t){return t.includes(e)}))||r.push(e)})),this.withMutations((function(e){r.forEach((function(t){e.remove(t)}))}))},t.prototype.subtract=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];if(0===t.length)return this;t=t.map((function(t){return e(t)}));var r=[];return this.forEach((function(e){t.some((function(t){return t.includes(e)}))&&r.push(e)})),this.withMutations((function(e){r.forEach((function(t){e.remove(t)}))}))},t.prototype.sort=function(e){return Vn(Ae(this,e))},t.prototype.sortBy=function(e,t){return Vn(Ae(this,t,e))},t.prototype.wasAltered=function(){return this._map.wasAltered()},t.prototype.__iterate=function(e,t){var n=this;return this._map.__iterate((function(t){return e(t,t,n)}),t)},t.prototype.__iterator=function(e,t){return this._map.__iterator(e,t)},t.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e);return e?this.__make(t,e):0===this.size?this.__empty():(this.__ownerID=e,this._map=t,this)},t}(x);bn.isSet=hn;var En,xn=bn.prototype;function Dn(e,t){return e.__ownerID?(e.size=t.size,e._map=t,e):t===e._map?e:0===t.size?e.__empty():e.__make(t)}function Cn(e,t){var n=Object.create(xn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function wn(){return En||(En=Cn(Nt()))}xn["@@__IMMUTABLE_SET__@@"]=!0,xn.delete=xn.remove,xn.merge=xn.concat=xn.union,xn.withMutations=gt,xn.asImmutable=vt,xn["@@transducer/init"]=xn.asMutable=yt,xn["@@transducer/step"]=function(e,t){return e.add(t)},xn["@@transducer/result"]=function(e){return e.asImmutable()},xn.__empty=wn,xn.__make=Cn;var Sn,kn=function(e){function t(e,n,r){if(!(this instanceof t))return new t(e,n,r);if(Re(0!==r,"Cannot step a Range by 0"),e=e||0,void 0===n&&(n=1/0),r=void 0===r?1:Math.abs(r),n<e&&(r=-r),this._start=e,this._end=n,this._step=r,this.size=Math.max(0,Math.ceil((n-e)/r-1)+1),0===this.size){if(Sn)return Sn;Sn=this}}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(1!==this._step?" by "+this._step:"")+" ]"},t.prototype.get=function(e,t){return this.has(e)?this._start+s(this,e)*this._step:t},t.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t<this.size&&t===Math.floor(t)},t.prototype.slice=function(e,n){return c(e,n,this.size)?this:(e=l(e,this.size),(n=p(n,this.size))<=e?new t(0,0):new t(this.get(e,this._end),this.get(n,this._end),this._step))},t.prototype.indexOf=function(e){var t=e-this._start;if(t%this._step==0){var n=t/this._step;if(n>=0&&n<this.size)return n}return-1},t.prototype.lastIndexOf=function(e){return this.indexOf(e)},t.prototype.__iterate=function(e,t){for(var n=this.size,r=this._step,i=t?this._start+(n-1)*r:this._start,o=0;o!==n&&!1!==e(i,t?n-++o:o++,this);)i+=t?-r:r;return o},t.prototype.__iterator=function(e,t){var n=this.size,r=this._step,i=t?this._start+(n-1)*r:this._start,o=0;return new _((function(){if(o===n)return{value:void 0,done:!0};var a=i;return i+=t?-r:r,O(e,t?n-++o:o++,a)}))},t.prototype.equals=function(e){return e instanceof t?this._start===e._start&&this._end===e._end&&this._step===e._step:gn(this,e)},t}(U);function An(e,t,n){for(var i=Ue(t),o=0;o!==i.length;)if((e=We(e,i[o++],r))===r)return n;return e}function Tn(e,t){return An(this,e,t)}function _n(e,t){return An(e,t,r)!==r}function On(){Be(this.size);var e={};return this.__iterate((function(t,n){e[n]=t})),e}v.isIterable=h,v.isKeyed=m,v.isIndexed=g,v.isAssociative=y,v.isOrdered=k,v.Iterator=_,yn(v,{toArray:function(){Be(this.size);var e=new Array(this.size||0),t=m(this),n=0;return this.__iterate((function(r,i){e[n++]=t?[i,r]:r})),e},toIndexedSeq:function(){return new ge(this)},toJS:function(){return vn(this)},toKeyedSeq:function(){return new me(this,!0)},toMap:function(){return Et(this.toKeyedSeq())},toObject:On,toOrderedMap:function(){return rn(this.toKeyedSeq())},toOrderedSet:function(){return Vn(m(this)?this.valueSeq():this)},toSet:function(){return bn(m(this)?this.valueSeq():this)},toSetSeq:function(){return new ye(this)},toSeq:function(){return g(this)?this.toIndexedSeq():m(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return cn(m(this)?this.valueSeq():this)},toList:function(){return qt(m(this)?this.valueSeq():this)},toString:function(){return"[Collection]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return Fe(this,Se(this,e))},includes:function(e){return this.some((function(t){return Z(t,e)}))},entries:function(){return this.__iterator(2)},every:function(e,t){Be(this.size);var n=!0;return this.__iterate((function(r,i,o){if(!e.call(t,r,i,o))return n=!1,!1})),n},filter:function(e,t){return Fe(this,De(this,e,t,!0))},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},forEach:function(e,t){return Be(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){Be(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate((function(r){n?n=!1:t+=e,t+=null!=r?r.toString():""})),t},keys:function(){return this.__iterator(0)},map:function(e,t){return Fe(this,Ee(this,e,t))},reduce:function(e,t,n){return Mn(this,e,t,n,arguments.length<2,!1)},reduceRight:function(e,t,n){return Mn(this,e,t,n,arguments.length<2,!0)},reverse:function(){return Fe(this,xe(this,!0))},slice:function(e,t){return Fe(this,Ce(this,e,t,!0))},some:function(e,t){return!this.every(Pn(e),t)},sort:function(e){return Fe(this,Ae(this,e))},values:function(){return this.__iterator(1)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some((function(){return!0}))},count:function(e,t){return a(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return function(e,t,n){var r=Et().asMutable();return e.__iterate((function(i,o){r.update(t.call(n,i,o,e),0,(function(e){return e+1}))})),r.asImmutable()}(this,e,t)},equals:function(e){return gn(this,e)},entrySeq:function(){var e=this;if(e._cache)return new V(e._cache);var t=e.toSeq().map(Ln).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(Pn(e),t)},findEntry:function(e,t,n){var r=n;return this.__iterate((function(n,i,o){if(e.call(t,n,i,o))return r=[i,n],!1})),r},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},findLastEntry:function(e,t,n){return this.toKeyedSeq().reverse().findEntry(e,t,n)},findLastKey:function(e,t){return this.toKeyedSeq().reverse().findKey(e,t)},first:function(e){return this.find(u,null,e)},flatMap:function(e,t){return Fe(this,function(e,t,n){var r=Ie(e);return e.toSeq().map((function(i,o){return r(t.call(n,i,o,e))})).flatten(!0)}(this,e,t))},flatten:function(e){return Fe(this,ke(this,e,!0))},fromEntrySeq:function(){return new ve(this)},get:function(e,t){return this.find((function(t,n){return Z(n,e)}),void 0,t)},getIn:Tn,groupBy:function(e,t){return function(e,t,n){var r=m(e),i=(k(e)?rn():Et()).asMutable();e.__iterate((function(o,a){i.update(t.call(n,o,a,e),(function(e){return(e=e||[]).push(r?[a,o]:o),e}))}));var o=Ie(e);return i.map((function(t){return Fe(e,o(t))})).asImmutable()}(this,e,t)},has:function(e){return this.get(e,r)!==r},hasIn:function(e){return _n(this,e)},isSubset:function(e){return e="function"==typeof e.includes?e:v(e),this.every((function(t){return e.includes(t)}))},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:v(e)).isSubset(this)},keyOf:function(e){return this.findKey((function(t){return Z(t,e)}))},keySeq:function(){return this.toSeq().map(jn).toIndexedSeq()},last:function(e){return this.toSeq().reverse().first(e)},lastKeyOf:function(e){return this.toKeyedSeq().reverse().keyOf(e)},max:function(e){return Te(this,e)},maxBy:function(e,t){return Te(this,t,e)},min:function(e){return Te(this,e?Rn(e):Un)},minBy:function(e,t){return Te(this,t?Rn(t):Un,e)},rest:function(){return this.slice(1)},skip:function(e){return 0===e?this:this.slice(Math.max(0,e))},skipLast:function(e){return 0===e?this:this.slice(0,-Math.max(0,e))},skipWhile:function(e,t){return Fe(this,we(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(Pn(e),t)},sortBy:function(e,t){return Fe(this,Ae(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return this.slice(-Math.max(0,e))},takeWhile:function(e,t){return Fe(this,function(e,t,n){var r=Me(e);return r.__iterateUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterate(r,i);var a=0;return e.__iterate((function(e,i,s){return t.call(n,e,i,s)&&++a&&r(e,i,o)})),a},r.__iteratorUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterator(r,i);var a=e.__iterator(2,i),s=!0;return new _((function(){if(!s)return{value:void 0,done:!0};var e=a.next();if(e.done)return e;var i=e.value,u=i[0],c=i[1];return t.call(n,c,u,o)?2===r?e:O(r,u,c,e):(s=!1,{value:void 0,done:!0})}))},r}(this,e,t))},takeUntil:function(e,t){return this.takeWhile(Pn(e),t)},update:function(e){return e(this)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=function(e){if(e.size===1/0)return 0;var t=k(e),n=m(e),r=t?1:0;return function(e,t){return t=ee(t,3432918353),t=ee(t<<15|t>>>-15,461845907),t=ee(t<<13|t>>>-13,5),t=ee((t=(t+3864292196|0)^e)^t>>>16,2246822507),t=te((t=ee(t^t>>>13,3266489909))^t>>>16)}(e.__iterate(n?t?function(e,t){r=31*r+zn(re(e),re(t))|0}:function(e,t){r=r+zn(re(e),re(t))|0}:t?function(e){r=31*r+re(e)|0}:function(e){r=r+re(e)|0}),r)}(this))}});var Fn=v.prototype;Fn["@@__IMMUTABLE_ITERABLE__@@"]=!0,Fn[T]=Fn.values,Fn.toJSON=Fn.toArray,Fn.__toStringMapper=qe,Fn.inspect=Fn.toSource=function(){return this.toString()},Fn.chain=Fn.flatMap,Fn.contains=Fn.includes,yn(b,{flip:function(){return Fe(this,be(this))},mapEntries:function(e,t){var n=this,r=0;return Fe(this,this.toSeq().map((function(i,o){return e.call(t,[o,i],r++,n)})).fromEntrySeq())},mapKeys:function(e,t){var n=this;return Fe(this,this.toSeq().flip().map((function(r,i){return e.call(t,r,i,n)})).flip())}});var Nn=b.prototype;Nn["@@__IMMUTABLE_KEYED__@@"]=!0,Nn[T]=Fn.entries,Nn.toJSON=On,Nn.__toStringMapper=function(e,t){return qe(t)+": "+qe(e)},yn(E,{toKeyedSeq:function(){return new me(this,!1)},filter:function(e,t){return Fe(this,De(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.lastKeyOf(e);return void 0===t?-1:t},reverse:function(){return Fe(this,xe(this,!1))},slice:function(e,t){return Fe(this,Ce(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(t||0,0),0===n||2===n&&!t)return this;e=l(e,e<0?this.count():this.size);var r=this.slice(0,e);return Fe(this,1===n?r:r.concat(Pe(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.findLastEntry(e,t);return n?n[0]:-1},first:function(e){return this.get(0,e)},flatten:function(e){return Fe(this,ke(this,e,!1))},get:function(e,t){return(e=s(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find((function(t,n){return n===e}),void 0,t)},has:function(e){return(e=s(this,e))>=0&&(void 0!==this.size?this.size===1/0||e<this.size:-1!==this.indexOf(e))},interpose:function(e){return Fe(this,function(e,t){var n=Me(e);return n.size=e.size&&2*e.size-1,n.__iterateUncached=function(n,r){var i=this,o=0;return e.__iterate((function(e){return(!o||!1!==n(t,o++,i))&&!1!==n(e,o++,i)}),r),o},n.__iteratorUncached=function(n,r){var i,o=e.__iterator(1,r),a=0;return new _((function(){return(!i||a%2)&&(i=o.next()).done?i:a%2?O(n,a++,t):O(n,a++,i.value,i)}))},n}(this,e))},interleave:function(){var e=[this].concat(Pe(arguments)),t=Oe(this.toSeq(),U.of,e),n=t.flatten(!0);return t.size&&(n.size=t.size*e.length),Fe(this,n)},keySeq:function(){return kn(0,this.size)},last:function(e){return this.get(-1,e)},skipWhile:function(e,t){return Fe(this,we(this,e,t,!1))},zip:function(){var e=[this].concat(Pe(arguments));return Fe(this,Oe(this,Bn,e))},zipAll:function(){var e=[this].concat(Pe(arguments));return Fe(this,Oe(this,Bn,e,!0))},zipWith:function(e){var t=Pe(arguments);return t[0]=this,Fe(this,Oe(this,e,t))}});var In=E.prototype;function Mn(e,t,n,r,i,o){return Be(e.size),e.__iterate((function(e,o,a){i?(i=!1,n=e):n=t.call(r,n,e,o,a)}),o),n}function jn(e,t){return t}function Ln(e,t){return[t,e]}function Pn(e){return function(){return!e.apply(this,arguments)}}function Rn(e){return function(){return-e.apply(this,arguments)}}function Bn(){return Pe(arguments)}function Un(e,t){return e<t?1:e>t?-1:0}function zn(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}In["@@__IMMUTABLE_INDEXED__@@"]=!0,In[S]=!0,yn(x,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}}),x.prototype.has=Fn.includes,x.prototype.contains=x.prototype.includes,yn(B,b.prototype),yn(U,E.prototype),yn(z,x.prototype);var Vn=function(e){function t(e){return null==e?Gn():mn(e)?e:Gn().withMutations((function(t){var n=x(e);Be(n.size),n.forEach((function(e){return t.add(e)}))}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.fromKeys=function(e){return this(b(e).keySeq())},t.prototype.toString=function(){return this.__toString("OrderedSet {","}")},t}(bn);Vn.isOrderedSet=mn;var qn,Hn=Vn.prototype;function Wn(e,t){var n=Object.create(Hn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function Gn(){return qn||(qn=Wn(an()))}Hn[S]=!0,Hn.zip=In.zip,Hn.zipWith=In.zipWith,Hn.__empty=Gn,Hn.__make=Wn;var Kn=function(e,t){var n,r=function(o){var a=this;if(o instanceof r)return o;if(!(this instanceof r))return new r(o);if(!n){n=!0;var s=Object.keys(e),u=i._indices={};i._name=t,i._keys=s,i._defaultValues=e;for(var c=0;c<s.length;c++){var l=s[c];u[l]=c,i[l]?"object"==typeof console&&console.warn&&console.warn("Cannot define "+Yn(this)+' with property "'+l+'" since that property name is part of the Record API.'):Xn(i,l)}}this.__ownerID=void 0,this._values=qt().withMutations((function(e){e.setSize(a._keys.length),b(o).forEach((function(t,n){e.set(a._indices[n],t===a._defaultValues[n]?void 0:t)}))}))},i=r.prototype=Object.create(Jn);return i.constructor=r,t&&(r.displayName=t),r};Kn.prototype.toString=function(){for(var e,t=Yn(this)+" { ",n=this._keys,r=0,i=n.length;r!==i;r++)t+=(r?", ":"")+(e=n[r])+": "+qe(this.get(e));return t+" }"},Kn.prototype.equals=function(e){return this===e||e&&this._keys===e._keys&&$n(this).equals($n(e))},Kn.prototype.hashCode=function(){return $n(this).hashCode()},Kn.prototype.has=function(e){return this._indices.hasOwnProperty(e)},Kn.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._indices[e],r=this._values.get(n);return void 0===r?this._defaultValues[e]:r},Kn.prototype.set=function(e,t){if(this.has(e)){var n=this._values.set(this._indices[e],t===this._defaultValues[e]?void 0:t);if(n!==this._values&&!this.__ownerID)return Qn(this,n)}return this},Kn.prototype.remove=function(e){return this.set(e)},Kn.prototype.clear=function(){var e=this._values.clear().setSize(this._keys.length);return this.__ownerID?this:Qn(this,e)},Kn.prototype.wasAltered=function(){return this._values.wasAltered()},Kn.prototype.toSeq=function(){return $n(this)},Kn.prototype.toJS=function(){return vn(this)},Kn.prototype.entries=function(){return this.__iterator(2)},Kn.prototype.__iterator=function(e,t){return $n(this).__iterator(e,t)},Kn.prototype.__iterate=function(e,t){return $n(this).__iterate(e,t)},Kn.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._values.__ensureOwner(e);return e?Qn(this,t,e):(this.__ownerID=e,this._values=t,this)},Kn.isRecord=C,Kn.getDescriptiveName=Yn;var Jn=Kn.prototype;function Qn(e,t,n){var r=Object.create(Object.getPrototypeOf(e));return r._values=t,r.__ownerID=n,r}function Yn(e){return e.constructor.displayName||e.constructor.name||"Record"}function $n(e){return K(e._keys.map((function(t){return[t,e.get(t)]})))}function Xn(e,t){try{Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(e){Re(this.__ownerID,"Cannot set on an immutable record."),this.set(t,e)}})}catch(e){}}Jn["@@__IMMUTABLE_RECORD__@@"]=!0,Jn.delete=Jn.remove,Jn.deleteIn=Jn.removeIn=Ze,Jn.getIn=Tn,Jn.hasIn=Fn.hasIn,Jn.merge=rt,Jn.mergeWith=it,Jn.mergeIn=ht,Jn.mergeDeep=ft,Jn.mergeDeepWith=dt,Jn.mergeDeepIn=mt,Jn.setIn=$e,Jn.update=tt,Jn.updateIn=nt,Jn.withMutations=gt,Jn.asMutable=yt,Jn.asImmutable=vt,Jn[T]=Jn.entries,Jn.toJSON=Jn.toObject=Fn.toObject,Jn.inspect=Jn.toSource=function(){return this.toString()};var Zn,er=function(e){function t(e,n){if(!(this instanceof t))return new t(e,n);if(this._value=e,this.size=void 0===n?1/0:Math.max(0,n),0===this.size){if(Zn)return Zn;Zn=this}}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},t.prototype.get=function(e,t){return this.has(e)?this._value:t},t.prototype.includes=function(e){return Z(this._value,e)},t.prototype.slice=function(e,n){var r=this.size;return c(e,n,r)?this:new t(this._value,p(n,r)-l(e,r))},t.prototype.reverse=function(){return this},t.prototype.indexOf=function(e){return Z(this._value,e)?0:-1},t.prototype.lastIndexOf=function(e){return Z(this._value,e)?this.size:-1},t.prototype.__iterate=function(e,t){for(var n=this.size,r=0;r!==n&&!1!==e(this._value,t?n-++r:r++,this););return r},t.prototype.__iterator=function(e,t){var n=this,r=this.size,i=0;return new _((function(){return i===r?{value:void 0,done:!0}:O(e,t?r-++i:i++,n._value)}))},t.prototype.equals=function(e){return e instanceof t?Z(this._value,e._value):gn(e)},t}(U);function tr(e,t){return function e(t,n,r,i,o,a){var s=Array.isArray(r)?U:ze(r)?B:null;if(s){if(~t.indexOf(r))throw new TypeError("Cannot convert circular structure to Immutable");t.push(r),o&&""!==i&&o.push(i);var u=n.call(a,i,s(r).map((function(i,a){return e(t,n,i,a,o,r)})),o&&o.slice());return t.pop(),o&&o.pop(),u}return r}([],t||nr,e,"",t&&t.length>2?[]:void 0,{"":e})}function nr(e,t){return m(t)?t.toMap():t.toList()}var rr="4.0.0-rc.11",ir={version:rr,Collection:v,Iterable:v,Seq:R,Map:Et,OrderedMap:rn,List:qt,Stack:cn,Set:bn,OrderedSet:Vn,Record:Kn,Range:kn,Repeat:er,is:Z,fromJS:tr,hash:re,isImmutable:w,isCollection:h,isKeyed:m,isIndexed:g,isAssociative:y,isOrdered:k,isValueObject:X,isSeq:D,isList:Vt,isMap:Y,isOrderedMap:$,isStack:un,isSet:hn,isOrderedSet:mn,isRecord:C,get:We,getIn:An,has:He,hasIn:_n,merge:at,mergeDeep:ut,mergeWith:st,mergeDeepWith:ct,remove:Ke,removeIn:Xe,set:Je,setIn:Ye,update:et,updateIn:Qe},or=v;t.default=ir},function(e,t,n){"use strict";var r=n(92),i=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],o=["scalar","sequence","mapping"];e.exports=function(e,t){var n,a;if(t=t||{},Object.keys(t).forEach((function(t){if(-1===i.indexOf(t))throw new r('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')})),this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.defaultStyle=t.defaultStyle||null,this.styleAliases=(n=t.styleAliases||null,a={},null!==n&&Object.keys(n).forEach((function(e){n[e].forEach((function(t){a[String(t)]=e}))})),a),-1===o.indexOf(this.kind))throw new r('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}},function(e,t,n){"use strict";function r(e,t){return e.reduce((function(e,n){return e[t(n)]=n,e}),Object.create(null))}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0});var i=n(48);function o(e,t){return function(n){var r;return(r={})[e]=n||t,r}}t.editQuery=(r=i.createActions({EDIT_QUERY:function(e){return{query:e}},EDIT_HEADERS:o("headers"),EDIT_ENDPOINT:o("endpoint"),EDIT_VARIABLES:o("variables"),SET_OPERATION_NAME:o("operationName"),SET_VARIABLE_TO_TYPE:o("variableToType"),SET_OPERATIONS:o("operations"),SET_EDITOR_FLEX:o("editorFlex"),EDIT_NAME:o("name"),OPEN_QUERY_VARIABLES:function(){return{queryVariablesActive:!0}},CLOSE_QUERY_VARIABLES:function(){return{queryVariablesActive:!1}},SET_VARIABLE_EDITOR_HEIGHT:o("variableEditorHeight"),SET_RESPONSE_TRACING_HEIGHT:o("responceTracingHeight"),SET_TRACING_SUPPORTED:o("tracingSupported"),SET_SUBSCRIPTION_ACTIVE:o("subscriptionActive"),SET_QUERY_TYPES:o("queryTypes"),SET_RESPONSE_EXTENSIONS:o("responseExtensions"),SET_CURRENT_QUERY_START_TIME:o("currentQueryStartTime"),SET_CURRENT_QUERY_END_TIME:o("currentQueryEndTime"),UPDATE_QUERY_FACTS:o(),PRETTIFY_QUERY:o(),INJECT_HEADERS:function(e,t){return{headers:e,endpoint:t}},CLOSE_TRACING:o("responseTracingHeight"),OPEN_TRACING:o("responseTracingHeight"),TOGGLE_TRACING:o(),CLOSE_VARIABLES:o("variableEditorHeight"),OPEN_VARIABLES:o("variableEditorHeight"),TOGGLE_VARIABLES:o(),ADD_RESPONSE:function(e,t,n){return{workspaceId:e,sessionId:t,response:n}},SET_RESPONSE:function(e,t,n){return{workspaceId:e,sessionId:t,response:n}},CLEAR_RESPONSES:o(),FETCH_SCHEMA:o(),REFETCH_SCHEMA:o(),SET_ENDPOINT_UNREACHABLE:o("endpoint"),SET_SCROLL_TOP:function(e,t){return{sessionId:e,scrollTop:t}},SCHEMA_FETCHING_SUCCESS:function(e,t,n){return{endpoint:e,tracingSupported:t,isPollingSchema:n}},SCHEMA_FETCHING_ERROR:function(e,t){return{endpoint:e,error:t}},RENEW_STACKS:o(),RUN_QUERY:function(e){return{operationName:e}},QUERY_SUCCESS:o(),QUERY_ERROR:o(),RUN_QUERY_AT_POSITION:function(e){return{position:e}},START_QUERY:o("queryRunning",!0),STOP_QUERY:function(e,t){return{workspaceId:t,sessionId:e}},OPEN_SETTINGS_TAB:function(){return{}},OPEN_CONFIG_TAB:function(){return{}},NEW_SESSION:function(e,t){return{endpoint:e,reuseHeaders:t}},NEW_SESSION_FROM_QUERY:function(e){return{query:e}},NEW_FILE_TAB:function(e,t,n){return{fileName:e,filePath:t,file:n}},DUPLICATE_SESSION:o("session"),CLOSE_SELECTED_TAB:function(){return{}},SELECT_NEXT_TAB:function(){return{}},SELECT_PREV_TAB:function(){return{}},SELECT_TAB:o("sessionId"),SELECT_TAB_INDEX:o("index"),CLOSE_TAB:o("sessionId"),REORDER_TABS:function(e,t){return{src:e,dest:t}},EDIT_SETTINGS:o(),SAVE_SETTINGS:o(),EDIT_CONFIG:o(),SAVE_CONFIG:o(),EDIT_FILE:o(),SAVE_FILE:o()})).editQuery,t.editVariables=r.editVariables,t.setOperationName=r.setOperationName,t.editHeaders=r.editHeaders,t.editEndpoint=r.editEndpoint,t.setVariableToType=r.setVariableToType,t.setOperations=r.setOperations,t.startQuery=r.startQuery,t.stopQuery=r.stopQuery,t.setEditorFlex=r.setEditorFlex,t.openQueryVariables=r.openQueryVariables,t.closeQueryVariables=r.closeQueryVariables,t.setVariableEditorHeight=r.setVariableEditorHeight,t.setResponseTracingHeight=r.setResponseTracingHeight,t.setTracingSupported=r.setTracingSupported,t.closeTracing=r.closeTracing,t.openTracing=r.openTracing,t.closeVariables=r.closeVariables,t.openVariables=r.openVariables,t.addResponse=r.addResponse,t.setResponse=r.setResponse,t.clearResponses=r.clearResponses,t.openSettingsTab=r.openSettingsTab,t.schemaFetchingSuccess=r.schemaFetchingSuccess,t.schemaFetchingError=r.schemaFetchingError,t.setEndpointUnreachable=r.setEndpointUnreachable,t.renewStacks=r.renewStacks,t.runQuery=r.runQuery,t.prettifyQuery=r.prettifyQuery,t.fetchSchema=r.fetchSchema,t.updateQueryFacts=r.updateQueryFacts,t.runQueryAtPosition=r.runQueryAtPosition,t.toggleTracing=r.toggleTracing,t.toggleVariables=r.toggleVariables,t.newSession=r.newSession,t.newSessionFromQuery=r.newSessionFromQuery,t.newFileTab=r.newFileTab,t.closeTab=r.closeTab,t.closeSelectedTab=r.closeSelectedTab,t.editSettings=r.editSettings,t.saveSettings=r.saveSettings,t.editConfig=r.editConfig,t.saveConfig=r.saveConfig,t.editFile=r.editFile,t.saveFile=r.saveFile,t.selectTab=r.selectTab,t.selectTabIndex=r.selectTabIndex,t.selectNextTab=r.selectNextTab,t.selectPrevTab=r.selectPrevTab,t.duplicateSession=r.duplicateSession,t.querySuccess=r.querySuccess,t.queryError=r.queryError,t.setSubscriptionActive=r.setSubscriptionActive,t.setQueryTypes=r.setQueryTypes,t.injectHeaders=r.injectHeaders,t.openConfigTab=r.openConfigTab,t.editName=r.editName,t.setResponseExtensions=r.setResponseExtensions,t.setCurrentQueryStartTime=r.setCurrentQueryStartTime,t.setCurrentQueryEndTime=r.setCurrentQueryEndTime,t.refetchSchema=r.refetchSchema,t.setScrollTop=r.setScrollTop,t.reorderTabs=r.reorderTabs},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));function r(e,t){var n="string"==typeof e?[e,t]:[void 0,e],r=n[0],i=" Did you mean ";r&&(i+=r+" ");var o=n[1].map((function(e){return'"'.concat(e,'"')}));switch(o.length){case 0:return"";case 1:return i+o[0]+"?";case 2:return i+o[0]+" or "+o[1]+"?"}var a=o.slice(0,5),s=a.pop();return i+a.join(", ")+", or "+s+"?"}},function(e,t,n){"use strict";var r=n(214),i=n.n(r).a;t.a=i},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(54);function i(e){if(null===Object.getPrototypeOf(e))return e;for(var t=Object.create(null),n=0,i=Object(r.a)(e);n<i.length;n++){var o=i[n],a=o[0],s=o[1];t[a]=s}return t}},function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__assign||function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var a=n(281),s=n(117),u=n(100),c=n(157),l=n(290),p=n(34),f=n(158),d=n(291),h=n(28),m=n(159),g=n(161);function y(e){return e.get("selectedWorkspace")}t.getSelectedWorkspaceId=y,t.getSelectedWorkspace=function(e){return e.getIn(["workspaces",y(e)])};var v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t}(p.Record({docs:p.Map({}),sessions:u.makeSessionState(""),sharing:new c.SharingState,history:p.OrderedMap()}));t.Workspace=v,t.defaultSettings={"editor.cursorShape":"line","editor.fontFamily":"'Source Code Pro', 'Consolas', 'Inconsolata', 'Droid Sans Mono', 'Monaco', monospace","editor.fontSize":14,"editor.reuseHeaders":!0,"editor.theme":"dark","general.betaUpdates":!1,"prettier.printWidth":80,"prettier.tabWidth":2,"prettier.useTabs":!1,"request.credentials":"omit","request.globalHeaders":{},"schema.disableComments":!0,"schema.polling.enable":!0,"schema.polling.endpointFilter":"*localhost*","schema.polling.interval":2e3,"tracing.hideTracingResponse":!0,"tracing.tracingSupported":!0};var b=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t}(p.Record({workspaces:p.Map({"":x("")}),selectedWorkspace:"",settingsString:JSON.stringify(t.defaultSettings,null,2),stateInjected:!1,appHistory:new g.AppHistory,general:new f.GeneralState}));t.RootState=b;var E=a.combineReducers({docs:s.default,sessions:u.default,sharing:c.default,history:l.default,general:f.default,appHistory:g.default});function x(e){var t,n=u.makeSessionState(e);return new v({docs:p.Map((t={},t[n.selectedSessionId]=new s.DocsSession,t)),sessions:n,sharing:new c.SharingState,history:p.OrderedMap()})}function D(e){try{return n=JSON.parse(e),"dark"!==(r=n["editor.theme"])&&"light"!==r&&(n["editor.theme"]="dark"),o(o({},t.defaultSettings),n)}catch(e){return t.defaultSettings}var n,r}t.rootReducer=function(e,t){if(void 0===e&&(e=new b),"SELECT_WORKSPACE"===t.type)return e.set("selectedWorkspace",t.payload.workspace);if("SET_SETTINGS_STRING"===t.type)return e.set("settingsString",t.payload.settingsString);if("INIT_STATE"===t.type&&!e.stateInjected){var n=t.payload,r=n.workspaceId,i=n.endpoint;return e.workspaces.get(r)?e.set("selectedWorkspace",r):e.setIn(["workspaces",r],x(i)).set("selectedWorkspace",r)}if("INJECT_STATE"===t.type)return m.deserializePersistedState(t.payload.state).set("stateInjected",!0);if("INJECT_TABS"===t.type)return function(e){var t=e[0].endpoint,n=p.OrderedMap(e.map(u.sessionFromTab).reduce((function(e,t){var n;return o(o({},e),((n={})[t.id]=t,n))}),{})),r=n.first().id,i=x(t).setIn(["sessions","sessions"],n).setIn(["sessions","selectedSessionId"],r);return(new b).setIn(["workspaces",t],i).set("selectedWorkspace",t)}(t.payload.tabs);if("SELECT_APP_HISTORY_ITEM"===t.type)return e.set("appHistory",g.default(e.appHistory,t));if({OPEN_HISTORY:!0,CLOSE_HISTORY:!0,SET_ENDPOINT_DISABLED:!0,SET_CONFIG_STRING:!0}[t.type])return e.set("general",f.default(e.general,t));var a=["workspaces",t.payload&&t.payload.workspaceId?t.payload.workspaceId:y(e)];return e.setIn(a,E(e.getIn(a),t))},t.makeWorkspace=x,t.default=t.rootReducer,t.getSessionCounts=d.immutableMemoize((function(e){return e.workspaces.map((function(e){return e.sessions.sessionCount}))})),t.getSettingsString=function(e){return e.settingsString},t.getSettings=h.createSelector([t.getSettingsString],D),t.normalizeSettingsString=function(e){return JSON.stringify(D(e),null,2)},t.getTheme=function(e,n){return(n||t.getSettings(e))["editor.theme"]||"dark"}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";function r(e,t){for(var n=Object.create(null),r=new i(e),o=Math.floor(.4*e.length)+1,a=0;a<t.length;a++){var s=t[a],u=r.measure(s,o);void 0!==u&&(n[s]=u)}return Object.keys(n).sort((function(e,t){var r=n[e]-n[t];return 0!==r?r:e.localeCompare(t)}))}n.d(t,"a",(function(){return r}));var i=function(){function e(e){this._input=e,this._inputLowerCase=e.toLowerCase(),this._inputArray=o(this._inputLowerCase),this._rows=[new Array(e.length+1).fill(0),new Array(e.length+1).fill(0),new Array(e.length+1).fill(0)]}return e.prototype.measure=function(e,t){if(this._input===e)return 0;var n=e.toLowerCase();if(this._inputLowerCase===n)return 1;var r=o(n),i=this._inputArray;if(r.length<i.length){var a=r;r=i,i=a}var s=r.length,u=i.length;if(!(s-u>t)){for(var c=this._rows,l=0;l<=u;l++)c[0][l]=l;for(var p=1;p<=s;p++){for(var f=c[(p-1)%3],d=c[p%3],h=d[0]=p,m=1;m<=u;m++){var g=r[p-1]===i[m-1]?0:1,y=Math.min(f[m]+1,d[m-1]+1,f[m-1]+g);if(p>1&&m>1&&r[p-1]===i[m-2]&&r[p-2]===i[m-1]){var v=c[(p-2)%3][m-2];y=Math.min(y,v+1)}y<h&&(h=y),d[m]=y}if(h>t)return}var b=c[s%3][u];return b<=t?b:void 0}},e}();function o(e){for(var t=e.length,n=new Array(t),r=0;r<t;++r)n[r]=e.charCodeAt(r);return n}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(2);function i(e,t,n){return new r.a("Syntax Error: ".concat(n),void 0,e,[t])}},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})),n.d(t,"i",(function(){return s})),n.d(t,"f",(function(){return u})),n.d(t,"g",(function(){return c})),n.d(t,"d",(function(){return l})),n.d(t,"h",(function(){return p})),n.d(t,"e",(function(){return f}));var r=n(1);function i(e){return o(e)||c(e)||p(e)}function o(e){return e.kind===r.a.OPERATION_DEFINITION||e.kind===r.a.FRAGMENT_DEFINITION}function a(e){return e.kind===r.a.FIELD||e.kind===r.a.FRAGMENT_SPREAD||e.kind===r.a.INLINE_FRAGMENT}function s(e){return e.kind===r.a.VARIABLE||e.kind===r.a.INT||e.kind===r.a.FLOAT||e.kind===r.a.STRING||e.kind===r.a.BOOLEAN||e.kind===r.a.NULL||e.kind===r.a.ENUM||e.kind===r.a.LIST||e.kind===r.a.OBJECT}function u(e){return e.kind===r.a.NAMED_TYPE||e.kind===r.a.LIST_TYPE||e.kind===r.a.NON_NULL_TYPE}function c(e){return e.kind===r.a.SCHEMA_DEFINITION||l(e)||e.kind===r.a.DIRECTIVE_DEFINITION}function l(e){return e.kind===r.a.SCALAR_TYPE_DEFINITION||e.kind===r.a.OBJECT_TYPE_DEFINITION||e.kind===r.a.INTERFACE_TYPE_DEFINITION||e.kind===r.a.UNION_TYPE_DEFINITION||e.kind===r.a.ENUM_TYPE_DEFINITION||e.kind===r.a.INPUT_OBJECT_TYPE_DEFINITION}function p(e){return e.kind===r.a.SCHEMA_EXTENSION||f(e)}function f(e){return e.kind===r.a.SCALAR_TYPE_EXTENSION||e.kind===r.a.OBJECT_TYPE_EXTENSION||e.kind===r.a.INTERFACE_TYPE_EXTENSION||e.kind===r.a.UNION_TYPE_EXTENSION||e.kind===r.a.ENUM_TYPE_EXTENSION||e.kind===r.a.INPUT_OBJECT_TYPE_EXTENSION}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(17),i=n(94);function o(e){var t=e.prototype.toJSON;"function"==typeof t||Object(r.a)(0),e.prototype.inspect=t,i.a&&(e.prototype[i.a]=t)}},function(e,t,n){"use strict";t.a=function(e,t){return e instanceof t}},function(e,t,n){"use strict";n.r(t),n.d(t,"combineActions",(function(){return p})),n.d(t,"createAction",(function(){return h})),n.d(t,"createActions",(function(){return F})),n.d(t,"createCurriedAction",(function(){return P})),n.d(t,"handleAction",(function(){return R})),n.d(t,"handleActions",(function(){return z}));var r=n(29),i=n.n(r),o=function(e){return"function"==typeof e},a=function(e){return 0===e.length},s=function(e){return e.toString()},u=function(e){return"string"==typeof e};function c(e){return u(e)||o(e)||("symbol"==typeof(t=e)||"object"==typeof t&&"[object Symbol]"===Object.prototype.toString.call(t));var t}function l(e){return!a(e)&&e.every(c)}function p(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];i()(l(t),"Expected action types to be strings, symbols, or action creators");var r=t.map(s).join("||");return{toString:function(){return r}}}var f=function(e){return e},d=function(e){return null===e};function h(e,t,n){void 0===t&&(t=f),i()(o(t)||d(t),"Expected payloadCreator to be a function, undefined or null");var r=d(t)||t===f?f:function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return e instanceof Error?e:t.apply(void 0,[e].concat(r))},a=o(n),s=e.toString(),u=function(){var t=r.apply(void 0,arguments),i={type:e};return t instanceof Error&&(i.error=!0),void 0!==t&&(i.payload=t),a&&(i.meta=n.apply(void 0,arguments)),i};return u.toString=function(){return s},u}var m=function(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t},g=function(e){return Array.isArray(e)},y=function(e){return null==e},v=function(e){return e[e.length-1]},b=n(147),E=n.n(b),x=function(e){return-1===e.indexOf("/")?E()(e):e.split("/").map(E.a).join("/")},D=function(e,t){return e.reduce((function(e,n){return t(e,n)}),{})},C=function(e){return"undefined"!=typeof Map&&e instanceof Map};function w(e){if(C(e))return Array.from(e.keys());if("undefined"!=typeof Reflect&&"function"==typeof Reflect.ownKeys)return Reflect.ownKeys(e);var t=Object.getOwnPropertyNames(e);return"function"==typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(e))),t}function S(e,t){return C(t)?t.get(e):t[e]}var k=function(e){return function t(n,r,i,o){var a=void 0===r?{}:r,s=a.namespace,u=void 0===s?"/":s,c=a.prefix;return void 0===i&&(i={}),void 0===o&&(o=""),w(n).forEach((function(r){var a=function(e){return o||!c||c&&new RegExp("^"+c+u).test(e)?e:""+c+u+e}(function(e){var t;if(!o)return e;var n=e.toString().split("||"),r=o.split("||");return(t=[]).concat.apply(t,r.map((function(e){return n.map((function(t){return""+e+u+t}))}))).join("||")}(r)),s=S(r,n);e(s)?t(s,{namespace:u,prefix:c},i,a):i[a]=s})),i}},A=k(m);function T(e,t){var n=void 0===t?{}:t,r=n.namespace,i=void 0===r?"/":r,o=n.prefix;var s={};return Object.getOwnPropertyNames(e).forEach((function(t){var n=o?t.replace(""+o+i,""):t;return function t(n,r,i){var o=x(i.shift());a(i)?r[o]=e[n]:(r[o]||(r[o]={}),t(n,r[o],i))}(t,s,n.split(i))})),s}function _(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){O(e,t,n[t])}))}return e}function O(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function F(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=m(v(n))?n.pop():{};return i()(n.every(u)&&(u(e)||m(e)),"Expected optional object followed by string action types"),u(e)?M([e].concat(n),o):_({},N(e,o),M(n,o))}function N(e,t){return T(I(A(e,t)),t)}function I(e,t){var n=void 0===t?{}:t,r=n.prefix,a=n.namespace,s=void 0===a?"/":a;return D(Object.keys(e),(function(t,n){var a,u=e[n];i()(function(e){if(o(e)||y(e))return!0;if(g(e)){var t=e[0],n=void 0===t?f:t,r=e[1];return o(n)&&o(r)}return!1}(u),"Expected function, undefined, null, or array with payload and meta functions for "+n);var c=r?""+r+s+n:n,l=g(u)?h.apply(void 0,[c].concat(u)):h(c,u);return _({},t,((a={})[n]=l,a))}))}function M(e,t){var n=I(D(e,(function(e,t){var n;return _({},e,((n={})[t]=f,n))})),t);return D(Object.keys(n),(function(e,t){var r;return _({},e,((r={})[x(t)]=n[t],r))}))}var j=n(245),L=n.n(j),P=function(e,t){return L()(h(e,t),t.length)};function R(e,t,n){void 0===t&&(t=f);var r=s(e).split("||");i()(!(void 0===n),"defaultState for reducer handling "+r.join(", ")+" should be defined"),i()(o(t)||m(t),"Expected reducer to be a function or object with next and throw reducers");var a=o(t)?[t,t]:[t.next,t.throw].map((function(e){return y(e)?f:e})),u=a[0],c=a[1];return function(e,t){void 0===e&&(e=n);var i=t.type;return i&&-1!==r.indexOf(s(i))?(!0===t.error?c:u)(e,t):e}}var B=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r="function"!=typeof t[t.length-1]&&t.pop(),i=t;if(void 0===r)throw new TypeError("The initial state may not be undefined. If you do not want to set a value for this reducer, you can use null instead of undefined.");return function(e,t){for(var n=arguments.length,o=Array(n>2?n-2:0),a=2;a<n;a++)o[a-2]=arguments[a];var s=void 0===e,u=void 0===t;return s&&u&&r?r:i.reduce((function(e,n){return n.apply(void 0,[e,t].concat(o))}),s&&!u&&r?r:e)}};var U=k((function(e){return(m(e)||C(e))&&(t=w(e),n=t.every((function(e){return"next"===e||"throw"===e})),!(t.length&&t.length<=2&&n));var t,n}));function z(e,t,n){void 0===n&&(n={}),i()(m(e)||C(e),"Expected handlers to be a plain object.");var r=U(e,n),o=w(r).map((function(e){return R(e,S(e,r),t)})),a=B.apply(void 0,o.concat([t]));return function(e,n){return void 0===e&&(e=t),a(e,n)}}},function(e,t,n){"use strict";function r(e,t,n){return e.reduce((function(e,r){return e[t(r)]=n(r),e}),Object.create(null))}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=function(){};e.exports=r},function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var i=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),a=function(e){var t=e.title,n=e.children,r=i(e,["title","children"]);return o.createElement("svg",r,t?o.createElement("title",null,t):void 0,n)};t.AddIcon=function(e){return o.createElement(a,r({},e,{viewBox:"0 0 50 50"}),o.createElement("line",{x1:"25",y1:"13.1",x2:"25",y2:"36.9"}),o.createElement("line",{x1:"36.9",y1:"25",x2:"13.1",y2:"25"}))},t.AddFullIcon=function(e){return o.createElement(a,r({x:"0px",y:"0px",viewBox:"-1 3 50 50"},e),o.createElement("line",{x1:"24",y1:"7.27",x2:"24",y2:"48.73"}),o.createElement("line",{x1:"44.73",y1:"28",x2:"3.27",y2:"28"}))},t.FullArrowRightIcon=function(e){return o.createElement(a,r({},e,{viewBox:"0 0 14 11"}),o.createElement("path",{d:"M13.32,4.97L8.99,0.64c-0.29-0.29-0.77-0.29-1.06,0s-0.29,0.77,0,1.06l2.97,2.97H1.21 C0.8,4.67,0.46,5,0.46,5.42S0.8,6.17,1.21,6.17h9.85L7.93,9.3c-0.29,0.29-0.29,0.77,0,1.06c0.15,0.15,0.34,0.22,0.53,0.22 s0.38-0.07,0.53-0.22l4.33-4.33C13.61,5.74,13.61,5.26,13.32,4.97z"}))},t.SettingsIcon=function(e){return o.createElement(a,r({},e,{viewBox:"0 0 50 50"}),o.createElement("path",{d:"M48,21h-5.71c-0.4-1.58-0.91-3.33-1.56-4.66l4.06-4.06c0.19-0.19,0.29-0.44,0.29-0.71 c0-0.27-0.11-0.52-0.29-0.71L39.14,5.2c-0.39-0.39-1.02-0.39-1.41,0l-4.06,4.06C32.33,8.62,30.58,8.11,29,7.71V2c0-0.55-0.45-1-1-1 h-6c-0.55,0-1,0.45-1,1v5.71c-1.58,0.4-3.33,0.91-4.66,1.55L12.27,5.2c-0.39-0.39-1.02-0.39-1.41,0L5.2,10.86 c-0.39,0.39-0.39,1.02,0,1.41l4.07,4.07C8.62,17.66,8.11,19.42,7.71,21H2c-0.55,0-1,0.45-1,1v6c0,0.55,0.45,1,1,1h5.71 c0.4,1.58,0.91,3.34,1.56,4.66L5.2,37.73c-0.19,0.19-0.29,0.44-0.29,0.71s0.11,0.52,0.29,0.71l5.66,5.66c0.38,0.38,1.04,0.38,1.41,0 l4.07-4.06c1.32,0.65,3.08,1.15,4.66,1.56V48c0,0.55,0.45,1,1,1h6c0.55,0,1-0.45,1-1v-5.71c1.58-0.4,3.34-0.91,4.66-1.56l4.07,4.06 c0.39,0.39,1.02,0.39,1.41,0l5.66-5.66c0.39-0.39,0.39-1.02,0-1.41l-4.06-4.07c0.65-1.33,1.16-3.08,1.56-4.66H48c0.55,0,1-0.45,1-1 v-6C49,21.45,48.55,21,48,21 M25,33c-4.41,0-8-3.59-8-8s3.59-8,8-8s8,3.59,8,8S29.41,33,25,33"}))},t.CrossIcon=function(e){return o.createElement(a,r({},e,{viewBox:"0 0 50 50"}),o.createElement("line",{x1:"4",y1:"4",x2:"46",y2:"46"}),o.createElement("line",{x1:"46",y1:"4",x2:"4",y2:"46"}))},t.ArrowRight=function(e){return o.createElement(a,r({width:14,height:11},e,{viewBox:"-1 -1 14 11"}),o.createElement("path",{d:"M5,8.79825579 L5,-1.79402089",id:"Stroke-3",stroke:"#FFFFFF",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",fill:"none",transform:"translate(5.750000, 3.502117) rotate(-90.000000) translate(-5.750000, -3.502117) "}),o.createElement("polyline",{id:"Stroke-5",stroke:"#FFFFFF",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",fill:"none",transform:"translate(9.868295, 4.333992) rotate(-90.000000) translate(-9.868295, -4.333992) ",points:"14.2022868 2.16699605 9.86829475 6.50098814 5.53430265 2.16699605"}))},t.History=function(e){return o.createElement(a,r({},e,{viewBox:"0 0 50 50",fill:"none"}),o.createElement("polyline",{points:"4.33,19.64 9.7,27.69 15.95,20.54 "}),o.createElement("path",{d:"M9.71,27.69C8.36,16.81,16.68,8.38,26.06,8.03c9.37-0.35,17.25,6.97,17.6,16.35 c0.35,9.38-6.97,17.26-16.35,17.6"}),o.createElement("polyline",{points:"26.68,16.06 26.68,25.89 35.62,25.89 "}))},t.Star=function(e){var t=e.height,n=e.width,s=e.stroke,u=e.fill,c=e.strokeWidth,l=e.onClick,p=i(e,["height","width","stroke","fill","strokeWidth","onClick"]);return o.createElement(a,r({width:n,height:t,fill:u||"none",stroke:s||"none",strokeWidth:c,viewBox:"118 12 16 16",onClick:l},p),o.createElement("polygon",{points:"126 24 121.297718 26.472136 122.195774 21.236068 118.391548 17.527864 123.648859 16.763932 126 12 128.351141 16.763932 133.608452 17.527864 129.804226 21.236068 130.702282 26.472136"}))},t.Search=function(e){var t=e.height,n=e.width,s=e.strokeWidth,u=e.color,c=i(e,["height","width","strokeWidth","color"]);return o.createElement(a,r({width:n,height:t,viewBox:"0 0 50 50",strokeWidth:s,stroke:u,fill:"none"},c),o.createElement("circle",{cx:"17.82",cy:"18.11",r:"16.21"}),o.createElement("line",{x1:"29.28",y1:"29.57",x2:"48.21",y2:"48.5"}))},t.ShareIcon=function(e){var t=e.width,n=e.height,s=e.color,u=i(e,["width","height","color"]);return o.createElement(a,r({width:t,height:n,viewBox:"0 0 50 50",stroke:s},u),o.createElement("path",{d:"M16.47 15.56c-.36 0-.65.3-.65.67v20.22c0 .37.29.67.65.67h9.06c.36 0 .65-.3.65-.67s-.29-.67-.65-.67h-8.41V16.91h1.29v.67c0 .37.29.67.65.67h10.35c.36 0 .65-.3.65-.67v-.67h1.29v6.07c0 .37.29.67.65.67.36 0 .65-.3.65-.67v-6.74a.66.66 0 0 0-.65-.67h-1.94v-1.35h3.88v8.76c0 .37.29.67.65.67.36 0 .65-.3.65-.67v-9.44a.66.66 0 0 0-.65-.67h-4.53v-.67a.66.66 0 0 0-.65-.67H27.4c-.3-1.54-1.61-2.7-3.17-2.7-1.56 0-2.87 1.16-3.17 2.7h-2.01c-.36 0-.65.3-.65.67v.67h-4.53c-.36 0-.65.3-.65.67V40.5c0 .37.29.67.65.67h11.65c.36 0 .65-.3.65-.67s-.29-.67-.65-.67h-11V14.22h3.88v1.35h-1.93zm3.24-2.69h1.94c.36 0 .65-.3.65-.67 0-1.11.87-2.02 1.94-2.02 1.07 0 1.94.91 1.94 2.02 0 .37.29.67.65.67h1.94v4.04h-9.06v-4.04z"}),o.createElement("path",{d:"M28.71 20.96h-9.06c-.36 0-.65.3-.65.67 0 .37.29.67.65.67h9.06c.36 0 .65-.3.65-.67a.66.66 0 0 0-.65-.67M28.71 23.65h-9.06c-.36 0-.65.3-.65.67s.3.68.66.68h9.06c.36 0 .65-.3.65-.67s-.3-.68-.66-.68M28.71 26.35h-9.06c-.36 0-.65.3-.65.67s.29.67.65.67h9.06c.36 0 .65-.3.65-.67s-.29-.67-.65-.67M26.13 29.04h-6.47c-.36 0-.65.3-.65.67 0 .37.29.67.65.67h6.47c.36 0 .65-.3.65-.67-.01-.36-.3-.67-.65-.67M37.77 33.21h-6.13l1.43-1.38c.26-.25.28-.68.03-.95a.62.62 0 0 0-.91-.04l-2.63 2.54c-.13.13-.21.3-.21.49v.02c0 .2.09.38.23.5l2.6 2.56c.12.12.28.18.44.18.17 0 .34-.07.47-.21.25-.27.23-.7-.03-.95l-1.43-1.41h6.13c.36 0 .65-.3.65-.67s-.28-.68-.64-.68"}))},t.Triangle=function(e){return o.createElement(a,r({width:6,height:7,viewBox:"40 0 6 7"},e),o.createElement("polygon",{stroke:"none",fill:"rgba(0, 0, 0, .2)",fillRule:"evenodd",points:"40 7 40 0 46 3.5"}))}},function(e,t,n){"use strict";function r(e){var t=e.split(/\r\n|[\n\r]/g),n=i(t);if(0!==n)for(var r=1;r<t.length;r++)t[r]=t[r].slice(n);for(;t.length>0&&a(t[0]);)t.shift();for(;t.length>0&&a(t[t.length-1]);)t.pop();return t.join("\n")}function i(e){for(var t=null,n=1;n<e.length;n++){var r=e[n],i=o(r);if(i!==r.length&&((null===t||i<t)&&0===(t=i)))break}return null===t?0:t}function o(e){for(var t=0;t<e.length&&(" "===e[t]||"\t"===e[t]);)t++;return t}function a(e){return o(e)===e.length}function s(e){var t=arguments.length>1&&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,u="";return!s||r&&i||(u+="\n"+t),u+=t?e.replace(/\n/g,"\n"+t):e,s&&(u+="\n"),'"""'+u.replace(/"""/g,'\\"""')+'"""'}n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return s}))},function(e,t,n){"use strict";n.d(t,"c",(function(){return g})),n.d(t,"b",(function(){return y})),n.d(t,"a",(function(){return v}));var r=n(55),i=n(57),o=n(14),a=n(25),s=n(4),u=n(40),c=n(8),l=n(47),p=n(31),f=n(12),d=n(21),h=n(0);function m(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function g(e){return Object(l.a)(e,v)}function y(e){if(!g(e))throw new Error("Expected ".concat(Object(s.a)(e)," to be a GraphQL schema."));return e}var v=function(){function e(e){var t;this.__validationErrors=!0===e.assumeValid?[]:void 0,Object(p.a)(e)||Object(c.a)(0,"Must provide configuration object."),!e.types||Array.isArray(e.types)||Object(c.a)(0,'"types" must be Array if provided but got: '.concat(Object(s.a)(e.types),".")),!e.directives||Array.isArray(e.directives)||Object(c.a)(0,'"directives" must be Array if provided but got: '+"".concat(Object(s.a)(e.directives),".")),this.description=e.description,this.extensions=e.extensions&&Object(u.a)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=e.extensionASTNodes,this._queryType=e.query,this._mutationType=e.mutation,this._subscriptionType=e.subscription,this._directives=null!==(t=e.directives)&&void 0!==t?t:d.j;var n=new Set(e.types);if(null!=e.types)for(var r=0,o=e.types;r<o.length;r++){var a=o[r];n.delete(a),b(a,n)}null!=this._queryType&&b(this._queryType,n),null!=this._mutationType&&b(this._mutationType,n),null!=this._subscriptionType&&b(this._subscriptionType,n);for(var l=0,m=this._directives;l<m.length;l++){var g=m[l];if(Object(d.h)(g))for(var y=0,v=g.args;y<v.length;y++){b(v[y].type,n)}}b(f.__Schema,n),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(var E=0,x=Object(i.a)(n);E<x.length;E++){var D=x[E];if(null!=D){var C=D.name;if(C||Object(c.a)(0,"One of the provided types for building the Schema is missing a name."),void 0!==this._typeMap[C])throw new Error('Schema must contain uniquely named types but contains multiple types named "'.concat(C,'".'));if(this._typeMap[C]=D,Object(h.H)(D))for(var w=0,S=D.getInterfaces();w<S.length;w++){var k=S[w];if(Object(h.H)(k)){var A=this._implementationsMap[k.name];void 0===A&&(A=this._implementationsMap[k.name]={objects:[],interfaces:[]}),A.interfaces.push(D)}}else if(Object(h.N)(D))for(var T=0,_=D.getInterfaces();T<_.length;T++){var O=_[T];if(Object(h.H)(O)){var F=this._implementationsMap[O.name];void 0===F&&(F=this._implementationsMap[O.name]={objects:[],interfaces:[]}),F.objects.push(D)}}}}}var t,n,l,g=e.prototype;return g.getQueryType=function(){return this._queryType},g.getMutationType=function(){return this._mutationType},g.getSubscriptionType=function(){return this._subscriptionType},g.getTypeMap=function(){return this._typeMap},g.getType=function(e){return this.getTypeMap()[e]},g.getPossibleTypes=function(e){return Object(h.T)(e)?e.getTypes():this.getImplementations(e).objects},g.getImplementations=function(e){var t=this._implementationsMap[e.name];return null!=t?t:{objects:[],interfaces:[]}},g.isPossibleType=function(e,t){return this.isSubType(e,t)},g.isSubType=function(e,t){var n=this._subTypeMap[e.name];if(void 0===n){if(n=Object.create(null),Object(h.T)(e))for(var r=0,i=e.getTypes();r<i.length;r++){n[i[r].name]=!0}else{for(var o=this.getImplementations(e),a=0,s=o.objects;a<s.length;a++){n[s[a].name]=!0}for(var u=0,c=o.interfaces;u<c.length;u++){n[c[u].name]=!0}}this._subTypeMap[e.name]=n}return void 0!==n[t.name]},g.getDirectives=function(){return this._directives},g.getDirective=function(e){return Object(r.a)(this.getDirectives(),(function(t){return t.name===e}))},g.toConfig=function(){var e;return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:Object(o.a)(this.getTypeMap()),directives:this.getDirectives().slice(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(e=this.extensionASTNodes)&&void 0!==e?e:[],assumeValid:void 0!==this.__validationErrors}},t=e,(n=[{key:a.c,get:function(){return"GraphQLSchema"}}])&&m(t.prototype,n),l&&m(t,l),e}();function b(e,t){var n=Object(h.A)(e);if(!t.has(n))if(t.add(n),Object(h.T)(n))for(var r=0,i=n.getTypes();r<i.length;r++){b(i[r],t)}else if(Object(h.N)(n)||Object(h.H)(n)){for(var a=0,s=n.getInterfaces();a<s.length;a++){b(s[a],t)}for(var u=0,c=Object(o.a)(n.getFields());u<c.length;u++){var l=c[u];b(l.type,t);for(var p=0,f=l.args;p<f.length;p++){b(f[p].type,t)}}}else if(Object(h.F)(n))for(var d=0,m=Object(o.a)(n.getFields());d<m.length;d++){b(m[d].type,t)}return t}},function(e,t,n){"use strict";var r=Object.entries||function(e){return Object.keys(e).map((function(t){return[t,e[t]]}))};t.a=r},function(e,t,n){"use strict";var r=Array.prototype.find?function(e,t){return Array.prototype.find.call(e,t)}:function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(t(r))return r}};t.a=r},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(54);function i(e,t){for(var n=Object.create(null),i=0,o=Object(r.a)(e);i<o.length;i++){var a=o[i],s=a[0],u=a[1];n[s]=t(u,s)}return n}},function(e,t,n){"use strict";var r=n(25),i=Array.from||function(e,t,n){if(null==e)throw new TypeError("Array.from requires an array-like object - not null or undefined");var i=e[r.b];if("function"==typeof i){for(var o,a=i.call(e),s=[],u=0;!(o=a.next()).done;++u)if(s.push(t.call(n,o.value,u)),u>9999999)throw new TypeError("Near-infinite iteration.");return s}var c=e.length;if("number"==typeof c&&c>=0&&c%1==0){for(var l=[],p=0;p<c;++p)Object.prototype.hasOwnProperty.call(e,p)&&l.push(t.call(n,e[p],p));return l}return[]};t.a=i},function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}}(),e.exports=n(259)},function(e,t,n){"use strict";n.r(t),n.d(t,"__DO_NOT_USE__ActionTypes",(function(){return o})),n.d(t,"applyMiddleware",(function(){return g})),n.d(t,"bindActionCreators",(function(){return p})),n.d(t,"combineReducers",(function(){return c})),n.d(t,"compose",(function(){return m})),n.d(t,"createStore",(function(){return s}));var r=n(113),i=function(){return Math.random().toString(36).substring(7).split("").join(".")},o={INIT:"@@redux/INIT"+i(),REPLACE:"@@redux/REPLACE"+i(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+i()}};function a(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function s(e,t,n){var i;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function.");if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error("Expected the enhancer to be a function.");return n(s)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var u=e,c=t,l=[],p=l,f=!1;function d(){p===l&&(p=l.slice())}function h(){if(f)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return c}function m(e){if("function"!=typeof e)throw new Error("Expected the listener to be a function.");if(f)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribelistener for more details.");var t=!0;return d(),p.push(e),function(){if(t){if(f)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribelistener for more details.");t=!1,d();var n=p.indexOf(e);p.splice(n,1),l=null}}}function g(e){if(!a(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(f)throw new Error("Reducers may not dispatch actions.");try{f=!0,c=u(c,e)}finally{f=!1}for(var t=l=p,n=0;n<t.length;n++){(0,t[n])()}return e}function y(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");u=e,g({type:o.REPLACE})}function v(){var e,t=m;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new TypeError("Expected the observer to be an object.");function n(){e.next&&e.next(h())}return n(),{unsubscribe:t(n)}}})[r.default]=function(){return this},e}return g({type:o.INIT}),(i={dispatch:g,subscribe:m,getState:h,replaceReducer:y})[r.default]=v,i}function u(e,t){var n=t&&t.type;return"Given "+(n&&'action "'+String(n)+'"'||"an action")+', reducer "'+e+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.'}function c(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var i=t[r];0,"function"==typeof e[i]&&(n[i]=e[i])}var a,s=Object.keys(n);try{!function(e){Object.keys(e).forEach((function(t){var n=e[t];if(void 0===n(void 0,{type:o.INIT}))throw new Error('Reducer "'+t+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if(void 0===n(void 0,{type:o.PROBE_UNKNOWN_ACTION()}))throw new Error('Reducer "'+t+"\" returned undefined when probed with a random type. Don't try to handle "+o.INIT+' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.')}))}(n)}catch(e){a=e}return function(e,t){if(void 0===e&&(e={}),a)throw a;for(var r=!1,i={},o=0;o<s.length;o++){var c=s[o],l=n[c],p=e[c],f=l(p,t);if(void 0===f){var d=u(c,t);throw new Error(d)}i[c]=f,r=r||f!==p}return(r=r||s.length!==Object.keys(e).length)?i:e}}function l(e,t){return function(){return t(e.apply(this,arguments))}}function p(e,t){if("function"==typeof e)return l(e,t);if("object"!=typeof e||null===e)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===e?"null":typeof e)+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');var n={};for(var r in e){var i=e[r];"function"==typeof i&&(n[r]=l(i,t))}return n}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e,t){var n=Object.keys(e);return Object.getOwnPropertySymbols&&n.push.apply(n,Object.getOwnPropertySymbols(e)),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(n,!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function m(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function g(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},i={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},o=t.map((function(e){return e(i)}));return h({},n,{dispatch:r=m.apply(void 0,o)(n.dispatch)})}}}},function(e,t,n){"use strict";n.r(t),n.d(t,"ApolloLink",(function(){return b})),n.d(t,"concat",(function(){return v})),n.d(t,"createOperation",(function(){return f})),n.d(t,"empty",(function(){return m})),n.d(t,"execute",(function(){return E})),n.d(t,"from",(function(){return g})),n.d(t,"fromError",(function(){return p})),n.d(t,"fromPromise",(function(){return l})),n.d(t,"makePromise",(function(){return c})),n.d(t,"split",(function(){return y})),n.d(t,"toPromise",(function(){return u}));var r=n(39);n.d(t,"Observable",(function(){return r.a}));var i=n(27),o=n(19),a=n(112);n.d(t,"getOperationName",(function(){return a.a}));!function(e){function t(t,n){var r=e.call(this,t)||this;return r.link=n,r}Object(o.b)(t,e)}(Error);function s(e){return e.request.length<=1}function u(e){var t=!1;return new Promise((function(n,r){e.subscribe({next:function(e){t||(t=!0,n(e))},error:r})}))}var c=u;function l(e){return new r.a((function(t){e.then((function(e){t.next(e),t.complete()})).catch(t.error.bind(t))}))}function p(e){return new r.a((function(t){t.error(e)}))}function f(e,t){var n=Object(o.a)({},e);return Object.defineProperty(t,"setContext",{enumerable:!1,value:function(e){n="function"==typeof e?Object(o.a)({},n,e(n)):Object(o.a)({},n,e)}}),Object.defineProperty(t,"getContext",{enumerable:!1,value:function(){return Object(o.a)({},n)}}),Object.defineProperty(t,"toKey",{enumerable:!1,value:function(){return function(e){var t=e.query,n=e.variables,r=e.operationName;return JSON.stringify([r,t,n])}(t)}}),t}function d(e,t){return t?t(e):r.a.of()}function h(e){return"function"==typeof e?new b(e):e}function m(){return new b((function(){return r.a.of()}))}function g(e){return 0===e.length?m():e.map(h).reduce((function(e,t){return e.concat(t)}))}function y(e,t,n){var i=h(t),o=h(n||new b(d));return s(i)&&s(o)?new b((function(t){return e(t)?i.request(t)||r.a.of():o.request(t)||r.a.of()})):new b((function(t,n){return e(t)?i.request(t,n)||r.a.of():o.request(t,n)||r.a.of()}))}var v=function(e,t){var n=h(e);if(s(n))return n;var i=h(t);return s(i)?new b((function(e){return n.request(e,(function(e){return i.request(e)||r.a.of()}))||r.a.of()})):new b((function(e,t){return n.request(e,(function(e){return i.request(e,t)||r.a.of()}))||r.a.of()}))},b=function(){function e(e){e&&(this.request=e)}return e.prototype.split=function(t,n,r){return this.concat(y(t,n,r||new e(d)))},e.prototype.concat=function(e){return v(this,e)},e.prototype.request=function(e,t){throw new i.a(1)},e.empty=m,e.from=g,e.split=y,e.execute=E,e}();function E(e,t){return e.request(f(t.context,function(e){var t={variables:e.variables||{},extensions:e.extensions||{},operationName:e.operationName,query:e.query};return t.operationName||(t.operationName="string"!=typeof t.query?Object(a.a)(t.query):""),t}(function(e){for(var t=["query","operationName","variables","extensions","context"],n=0,r=Object.keys(e);n<r.length;n++){var o=r[n];if(t.indexOf(o)<0)throw new i.a(2)}return e}(t))))||r.a.of()}},function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return a}));var r=n(0);function i(e,t){return e===t||(Object(r.L)(e)&&Object(r.L)(t)||!(!Object(r.J)(e)||!Object(r.J)(t)))&&i(e.ofType,t.ofType)}function o(e,t,n){return t===n||(Object(r.L)(n)?!!Object(r.L)(t)&&o(e,t.ofType,n.ofType):Object(r.L)(t)?o(e,t.ofType,n):Object(r.J)(n)?!!Object(r.J)(t)&&o(e,t.ofType,n.ofType):!Object(r.J)(t)&&(Object(r.C)(n)&&(Object(r.H)(t)||Object(r.N)(t))&&e.isSubType(n,t)))}function a(e,t,n){return t===n||(Object(r.C)(t)?Object(r.C)(n)?e.getPossibleTypes(t).some((function(t){return e.isSubType(n,t)})):e.isSubType(t,n):!!Object(r.C)(n)&&e.isSubType(n,t))}},function(e,t,n){"use strict";(function(t){var r=n(72);
/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
* @license MIT
*/function i(e,t){if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0}function o(e){return t.Buffer&&"function"==typeof t.Buffer.isBuffer?t.Buffer.isBuffer(e):!(null==e||!e._isBuffer)}var a=n(378),s=Object.prototype.hasOwnProperty,u=Array.prototype.slice,c="foo"===function(){}.name;function l(e){return Object.prototype.toString.call(e)}function p(e){return!o(e)&&("function"==typeof t.ArrayBuffer&&("function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):!!e&&(e instanceof DataView||!!(e.buffer&&e.buffer instanceof ArrayBuffer))))}var f=e.exports=v,d=/\s*function\s+([^\(\s]*)\s*/;function h(e){if(a.isFunction(e)){if(c)return e.name;var t=e.toString().match(d);return t&&t[1]}}function m(e,t){return"string"==typeof e?e.length<t?e:e.slice(0,t):e}function g(e){if(c||!a.isFunction(e))return a.inspect(e);var t=h(e);return"[Function"+(t?": "+t:"")+"]"}function y(e,t,n,r,i){throw new f.AssertionError({message:n,actual:e,expected:t,operator:r,stackStartFunction:i})}function v(e,t){e||y(e,!0,t,"==",f.ok)}function b(e,t,n,r){if(e===t)return!0;if(o(e)&&o(t))return 0===i(e,t);if(a.isDate(e)&&a.isDate(t))return e.getTime()===t.getTime();if(a.isRegExp(e)&&a.isRegExp(t))return e.source===t.source&&e.global===t.global&&e.multiline===t.multiline&&e.lastIndex===t.lastIndex&&e.ignoreCase===t.ignoreCase;if(null!==e&&"object"==typeof e||null!==t&&"object"==typeof t){if(p(e)&&p(t)&&l(e)===l(t)&&!(e instanceof Float32Array||e instanceof Float64Array))return 0===i(new Uint8Array(e.buffer),new Uint8Array(t.buffer));if(o(e)!==o(t))return!1;var s=(r=r||{actual:[],expected:[]}).actual.indexOf(e);return-1!==s&&s===r.expected.indexOf(t)||(r.actual.push(e),r.expected.push(t),function(e,t,n,r){if(null==e||null==t)return!1;if(a.isPrimitive(e)||a.isPrimitive(t))return e===t;if(n&&Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1;var i=E(e),o=E(t);if(i&&!o||!i&&o)return!1;if(i)return e=u.call(e),t=u.call(t),b(e,t,n);var s,c,l=C(e),p=C(t);if(l.length!==p.length)return!1;for(l.sort(),p.sort(),c=l.length-1;c>=0;c--)if(l[c]!==p[c])return!1;for(c=l.length-1;c>=0;c--)if(s=l[c],!b(e[s],t[s],n,r))return!1;return!0}(e,t,n,r))}return n?e===t:e==t}function E(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function x(e,t){if(!e||!t)return!1;if("[object RegExp]"==Object.prototype.toString.call(t))return t.test(e);try{if(e instanceof t)return!0}catch(e){}return!Error.isPrototypeOf(t)&&!0===t.call({},e)}function D(e,t,n,r){var i;if("function"!=typeof t)throw new TypeError('"block" argument must be a function');"string"==typeof n&&(r=n,n=null),i=function(e){var t;try{e()}catch(e){t=e}return t}(t),r=(n&&n.name?" ("+n.name+").":".")+(r?" "+r:"."),e&&!i&&y(i,n,"Missing expected exception"+r);var o="string"==typeof r,s=!e&&i&&!n;if((!e&&a.isError(i)&&o&&x(i,n)||s)&&y(i,n,"Got unwanted exception"+r),e&&i&&n&&!x(i,n)||!e&&i)throw i}f.AssertionError=function(e){this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=function(e){return m(g(e.actual),128)+" "+e.operator+" "+m(g(e.expected),128)}(this),this.generatedMessage=!0);var t=e.stackStartFunction||y;if(Error.captureStackTrace)Error.captureStackTrace(this,t);else{var n=new Error;if(n.stack){var r=n.stack,i=h(t),o=r.indexOf("\n"+i);if(o>=0){var a=r.indexOf("\n",o+1);r=r.substring(a+1)}this.stack=r}}},a.inherits(f.AssertionError,Error),f.fail=y,f.ok=v,f.equal=function(e,t,n){e!=t&&y(e,t,n,"==",f.equal)},f.notEqual=function(e,t,n){e==t&&y(e,t,n,"!=",f.notEqual)},f.deepEqual=function(e,t,n){b(e,t,!1)||y(e,t,n,"deepEqual",f.deepEqual)},f.deepStrictEqual=function(e,t,n){b(e,t,!0)||y(e,t,n,"deepStrictEqual",f.deepStrictEqual)},f.notDeepEqual=function(e,t,n){b(e,t,!1)&&y(e,t,n,"notDeepEqual",f.notDeepEqual)},f.notDeepStrictEqual=function e(t,n,r){b(t,n,!0)&&y(t,n,r,"notDeepStrictEqual",e)},f.strictEqual=function(e,t,n){e!==t&&y(e,t,n,"===",f.strictEqual)},f.notStrictEqual=function(e,t,n){e===t&&y(e,t,n,"!==",f.notStrictEqual)},f.throws=function(e,t,n){D(!0,e,t,n)},f.doesNotThrow=function(e,t,n){D(!1,e,t,n)},f.ifError=function(e){if(e)throw e},f.strict=r((function e(t,n){t||y(t,!0,n,"==",e)}),f,{equal:f.strictEqual,deepEqual:f.deepStrictEqual,notEqual:f.notStrictEqual,notDeepEqual:f.notDeepStrictEqual}),f.strict.strict=f.strict;var C=Object.keys||function(e){var t=[];for(var n in e)s.call(e,n)&&t.push(n);return t}}).call(this,n(42))},function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return f})),n.d(t,"c",(function(){return d})),n.d(t,"b",(function(){return h}));var r=n(4),i=n(8),o=n(44),a=n(1),s=n(24),u=n(83),c=n(5),l=n(9),p=n(84);function f(e,t){return new m(e,t).parseDocument()}function d(e,t){var n=new m(e,t);n.expectToken(c.a.SOF);var r=n.parseValueLiteral(!1);return n.expectToken(c.a.EOF),r}function h(e,t){var n=new m(e,t);n.expectToken(c.a.SOF);var r=n.parseTypeReference();return n.expectToken(c.a.EOF),r}var m=function(){function e(e,t){var n="string"==typeof e?new u.a(e):e;n instanceof u.a||Object(i.a)(0,"Must provide Source. Received: ".concat(Object(r.a)(n),".")),this._lexer=new p.a(n),this._options=t}var t=e.prototype;return t.parseName=function(){var e=this.expectToken(c.a.NAME);return{kind:a.a.NAME,value:e.value,loc:this.loc(e)}},t.parseDocument=function(){var e=this._lexer.token;return{kind:a.a.DOCUMENT,definitions:this.many(c.a.SOF,this.parseDefinition,c.a.EOF),loc:this.loc(e)}},t.parseDefinition=function(){if(this.peek(c.a.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(c.a.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(c.a.BRACE_L))return{kind:a.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(c.a.NAME)&&(t=this.parseName()),{kind:a.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(c.a.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(c.a.PAREN_L,this.parseVariableDefinition,c.a.PAREN_R)},t.parseVariableDefinition=function(){var e=this._lexer.token;return{kind:a.a.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(c.a.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(c.a.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(c.a.DOLLAR),{kind:a.a.VARIABLE,name:this.parseName(),loc:this.loc(e)}},t.parseSelectionSet=function(){var e=this._lexer.token;return{kind:a.a.SELECTION_SET,selections:this.many(c.a.BRACE_L,this.parseSelection,c.a.BRACE_R),loc:this.loc(e)}},t.parseSelection=function(){return this.peek(c.a.SPREAD)?this.parseFragment():this.parseField()},t.parseField=function(){var e,t,n=this._lexer.token,r=this.parseName();return this.expectOptionalToken(c.a.COLON)?(e=r,t=this.parseName()):t=r,{kind:a.a.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(c.a.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(n)}},t.parseArguments=function(e){var t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(c.a.PAREN_L,t,c.a.PAREN_R)},t.parseArgument=function(){var e=this._lexer.token,t=this.parseName();return this.expectToken(c.a.COLON),{kind:a.a.ARGUMENT,name:t,value:this.parseValueLiteral(!1),loc:this.loc(e)}},t.parseConstArgument=function(){var e=this._lexer.token;return{kind:a.a.ARGUMENT,name:this.parseName(),value:(this.expectToken(c.a.COLON),this.parseValueLiteral(!0)),loc:this.loc(e)}},t.parseFragment=function(){var e=this._lexer.token;this.expectToken(c.a.SPREAD);var t=this.expectOptionalKeyword("on");return!t&&this.peek(c.a.NAME)?{kind:a.a.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(e)}:{kind:a.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:a.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:a.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 c.a.BRACKET_L:return this.parseList(e);case c.a.BRACE_L:return this.parseObject(e);case c.a.INT:return this._lexer.advance(),{kind:a.a.INT,value:t.value,loc:this.loc(t)};case c.a.FLOAT:return this._lexer.advance(),{kind:a.a.FLOAT,value:t.value,loc:this.loc(t)};case c.a.STRING:case c.a.BLOCK_STRING:return this.parseStringLiteral();case c.a.NAME:switch(this._lexer.advance(),t.value){case"true":return{kind:a.a.BOOLEAN,value:!0,loc:this.loc(t)};case"false":return{kind:a.a.BOOLEAN,value:!1,loc:this.loc(t)};case"null":return{kind:a.a.NULL,loc:this.loc(t)};default:return{kind:a.a.ENUM,value:t.value,loc:this.loc(t)}}case c.a.DOLLAR:if(!e)return this.parseVariable()}throw this.unexpected()},t.parseStringLiteral=function(){var e=this._lexer.token;return this._lexer.advance(),{kind:a.a.STRING,value:e.value,block:e.kind===c.a.BLOCK_STRING,loc:this.loc(e)}},t.parseList=function(e){var t=this,n=this._lexer.token;return{kind:a.a.LIST,values:this.any(c.a.BRACKET_L,(function(){return t.parseValueLiteral(e)}),c.a.BRACKET_R),loc:this.loc(n)}},t.parseObject=function(e){var t=this,n=this._lexer.token;return{kind:a.a.OBJECT,fields:this.any(c.a.BRACE_L,(function(){return t.parseObjectField(e)}),c.a.BRACE_R),loc:this.loc(n)}},t.parseObjectField=function(e){var t=this._lexer.token,n=this.parseName();return this.expectToken(c.a.COLON),{kind:a.a.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e),loc:this.loc(t)}},t.parseDirectives=function(e){for(var t=[];this.peek(c.a.AT);)t.push(this.parseDirective(e));return t},t.parseDirective=function(e){var t=this._lexer.token;return this.expectToken(c.a.AT),{kind:a.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(c.a.BRACKET_L)?(e=this.parseTypeReference(),this.expectToken(c.a.BRACKET_R),e={kind:a.a.LIST_TYPE,type:e,loc:this.loc(t)}):e=this.parseNamedType(),this.expectOptionalToken(c.a.BANG)?{kind:a.a.NON_NULL_TYPE,type:e,loc:this.loc(t)}:e},t.parseNamedType=function(){var e=this._lexer.token;return{kind:a.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===c.a.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(c.a.STRING)||this.peek(c.a.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(c.a.BRACE_L,this.parseOperationTypeDefinition,c.a.BRACE_R);return{kind:a.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(c.a.COLON);var n=this.parseNamedType();return{kind:a.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:a.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:a.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")){this.expectOptionalToken(c.a.AMP);do{var t;e.push(this.parseNamedType())}while(this.expectOptionalToken(c.a.AMP)||!0===(null===(t=this._options)||void 0===t?void 0:t.allowLegacySDLImplementsInterfaces)&&this.peek(c.a.NAME))}return e},t.parseFieldsDefinition=function(){var e;return!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacySDLEmptyFields)&&this.peek(c.a.BRACE_L)&&this._lexer.lookahead().kind===c.a.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(c.a.BRACE_L,this.parseFieldDefinition,c.a.BRACE_R)},t.parseFieldDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(c.a.COLON);var i=this.parseTypeReference(),o=this.parseDirectives(!0);return{kind:a.a.FIELD_DEFINITION,description:t,name:n,arguments:r,type:i,directives:o,loc:this.loc(e)}},t.parseArgumentDefs=function(){return this.optionalMany(c.a.PAREN_L,this.parseInputValueDef,c.a.PAREN_R)},t.parseInputValueDef=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(c.a.COLON);var r,i=this.parseTypeReference();this.expectOptionalToken(c.a.EQUALS)&&(r=this.parseValueLiteral(!0));var o=this.parseDirectives(!0);return{kind:a.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:a.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:a.a.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:i,loc:this.loc(e)}},t.parseUnionMemberTypes=function(){var e=[];if(this.expectOptionalToken(c.a.EQUALS)){this.expectOptionalToken(c.a.PIPE);do{e.push(this.parseNamedType())}while(this.expectOptionalToken(c.a.PIPE))}return e},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:a.a.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:i,loc:this.loc(e)}},t.parseEnumValuesDefinition=function(){return this.optionalMany(c.a.BRACE_L,this.parseEnumValueDefinition,c.a.BRACE_R)},t.parseEnumValueDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseDirectives(!0);return{kind:a.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:a.a.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:i,loc:this.loc(e)}},t.parseInputFieldsDefinition=function(){return this.optionalMany(c.a.BRACE_L,this.parseInputValueDef,c.a.BRACE_R)},t.parseTypeSystemExtension=function(){var e=this._lexer.lookahead();if(e.kind===c.a.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(c.a.BRACE_L,this.parseOperationTypeDefinition,c.a.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return{kind:a.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:a.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:a.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:a.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:a.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:a.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:a.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(c.a.AT);var n=this.parseName(),r=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var o=this.parseDirectiveLocations();return{kind:a.a.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:i,locations:o,loc:this.loc(e)}},t.parseDirectiveLocations=function(){this.expectOptionalToken(c.a.PIPE);var e=[];do{e.push(this.parseDirectiveLocation())}while(this.expectOptionalToken(c.a.PIPE));return e},t.parseDirectiveLocation=function(){var e=this._lexer.token,t=this.parseName();if(void 0!==l.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 s.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 Object(o.a)(this._lexer.source,t.start,"Expected ".concat(y(e),", found ").concat(g(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!==c.a.NAME||t.value!==e)throw Object(o.a)(this._lexer.source,t.start,'Expected "'.concat(e,'", found ').concat(g(t),"."));this._lexer.advance()},t.expectOptionalKeyword=function(e){var t=this._lexer.token;return t.kind===c.a.NAME&&t.value===e&&(this._lexer.advance(),!0)},t.unexpected=function(e){var t=null!=e?e:this._lexer.token;return Object(o.a)(this._lexer.source,t.start,"Unexpected ".concat(g(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},e}();function g(e){var t=e.value;return y(e.kind)+(null!=t?' "'.concat(t,'"'):"")}function y(e){return Object(p.b)(e)?'"'.concat(e,'"'):e}},function(e,t,n){"use strict";n.d(t,"c",(function(){return l})),n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return d}));var r=n(8),i=n(2),o=n(26),a=n(80),s=n(85),u=n(138),c=n(146);function l(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u.a,l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new s.a(e),p=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{maxErrors:void 0};t||Object(r.a)(0,"Must provide document."),Object(a.a)(e);var f=Object.freeze({}),d=[],h=new c.b(e,t,l,(function(e){if(null!=p.maxErrors&&d.length>=p.maxErrors)throw d.push(new i.a("Too many validation errors, error limit reached. Validation aborted.")),f;d.push(e)})),m=Object(o.d)(n.map((function(e){return e(h)})));try{Object(o.c)(t,Object(s.b)(l,m))}catch(e){if(e!==f)throw e}return d}function p(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u.b,r=[],i=new c.a(e,t,(function(e){r.push(e)})),a=n.map((function(e){return e(i)}));return Object(o.c)(e,Object(o.d)(a)),r}function f(e){var t=p(e);if(0!==t.length)throw new Error(t.map((function(e){return e.message})).join("\n\n"))}function d(e,t){var n=p(e,t);if(0!==n.length)throw new Error(n.map((function(e){return e.message})).join("\n\n"))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n(71),i=n(57),o=n(14),a=n(4),s=n(17),u=n(31),c=n(81),l=n(1),p=n(13),f=n(0);function d(e,t){if(Object(f.L)(t)){var n=d(e,t.ofType);return(null==n?void 0:n.kind)===l.a.NULL?null:n}if(null===e)return{kind:l.a.NULL};if(void 0===e)return null;if(Object(f.J)(t)){var m=t.ofType;if(Object(c.a)(e)){for(var g=[],y=0,v=Object(i.a)(e);y<v.length;y++){var b=d(v[y],m);null!=b&&g.push(b)}return{kind:l.a.LIST,values:g}}return d(e,m)}if(Object(f.F)(t)){if(!Object(u.a)(e))return null;for(var E=[],x=0,D=Object(o.a)(t.getFields());x<D.length;x++){var C=D[x],w=d(e[C.name],C.type);w&&E.push({kind:l.a.OBJECT_FIELD,name:{kind:l.a.NAME,value:C.name},value:w})}return{kind:l.a.OBJECT,fields:E}}if(Object(f.I)(t)){var S=t.serialize(e);if(null==S)return null;if("boolean"==typeof S)return{kind:l.a.BOOLEAN,value:S};if("number"==typeof S&&Object(r.a)(S)){var k=String(S);return h.test(k)?{kind:l.a.INT,value:k}:{kind:l.a.FLOAT,value:k}}if("string"==typeof S)return Object(f.E)(t)?{kind:l.a.ENUM,value:S}:t===p.c&&h.test(S)?{kind:l.a.INT,value:S}:{kind:l.a.STRING,value:S};throw new TypeError("Cannot convert value to AST: ".concat(Object(a.a)(S),"."))}Object(s.a)(0,"Unexpected input type: "+Object(a.a)(t))}var h=/^-?(?:0|[1-9][0-9]*)$/},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(86),i=n(20),o=n(155),a=n(34);t.columnWidth=300,t.introspectionQuery=i.getIntrospectionQuery(),t.defaultQuery="# Write your query or mutation here\n",t.modalStyle={overlay:{zIndex:99999,backgroundColor:"rgba(15,32,46,.9)",display:"flex",alignItems:"center",justifyContent:"center"},content:{position:"relative",width:976,height:"auto",top:"initial",left:"initial",right:"initial",bottom:"initial",borderRadius:2,padding:0,border:"none",background:"none",boxShadow:"0 1px 7px rgba(0,0,0,.2)"}},t.getDefaultSession=function(e){return{id:r(),query:t.defaultQuery,variables:"",responses:a.List([]),endpoint:e,operationName:void 0,hasMutation:!1,hasSubscription:!1,hasQuery:!1,queryTypes:o.getQueryTypes(t.defaultQuery),subscriptionActive:!1,date:new Date,starred:!1,queryRunning:!1,operations:a.List([]),isReloadingSchema:!1,isSchemaPendingUpdate:!1,responseExtensions:{},queryVariablesActive:!1,endpointUnreachable:!1,editorFlex:1,variableEditorOpen:!1,variableEditorHeight:200,responseTracingOpen:!1,responseTracingHeight:300,docExplorerWidth:350,variableToType:a.Map({}),headers:"",file:void 0,isFile:!1,name:void 0,filePath:void 0,selectedUserToken:void 0,hasChanged:void 0,absolutePath:void 0,isSettingsTab:void 0,isConfigTab:void 0,currentQueryStartTime:void 0,currentQueryEndTime:void 0,nextQueryStartTime:void 0,tracingSupported:void 0,changed:void 0,scrollTop:void 0}}},function(e,t,n){"use strict";var r,i=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a,s,u,c=n(3),l=n(11),p=l.styled.div(a||(a=i(["\n /* Comment */\n .cm-comment {\n color: ",";\n }\n\n /* Punctuation */\n .cm-punctuation {\n color: ",";\n }\n\n /* Proppery */\n .cm-property {\n color: ",";\n }\n\n /* Keyword */\n .cm-keyword {\n color: ",";\n }\n\n /* OperationName, FragmentName */\n .cm-def {\n color: ",";\n }\n\n /* FieldAlias */\n .cm-qualifier {\n color: ",";\n }\n\n /* ArgumentName and ObjectFieldName */\n .cm-attribute {\n color: ",";\n }\n\n /* Number */\n .cm-number {\n color: ",";\n }\n\n /* String */\n .cm-string {\n color: ",";\n }\n\n /* Boolean */\n .cm-builtin {\n color: ",";\n }\n\n /* EnumValue */\n .cm-string-2 {\n color: ",";\n }\n\n /* Variable */\n .cm-variable {\n color: ",";\n }\n\n /* Directive */\n .cm-meta {\n color: ",";\n }\n\n /* Type */\n .cm-atom {\n color: ",";\n }\n\n /* Comma */\n .cm-ws {\n color: ",";\n }\n position: relative;\n display: flex;\n flex: 1 1 0%;\n flex-flow: column;\n\n .CodeMirror {\n color: rgba(255, 255, 255, 0.3);\n font-family: ",";\n font-size: ",";\n height: 100%;\n left: 0;\n position: absolute;\n top: 0;\n width: 100%;\n }\n\n .CodeMirror-lines {\n padding: 20px 0;\n }\n\n .CodeMirror-gutters {\n border-right: none;\n }\n\n .CodeMirror span[role='presentation'] {\n color: ",";\n }\n\n /* CURSOR */\n\n .CodeMirror div.CodeMirror-cursor {\n background: ",";\n border-left: ",";\n border-bottom: ",";\n }\n /* Shown when moving in bi-directional text */\n .CodeMirror div.CodeMirror-secondarycursor {\n border-left: 1px solid silver;\n }\n .CodeMirror.cm-fat-cursor div.CodeMirror-cursor {\n background: rgba(255, 255, 255, 0.6);\n color: white;\n border: 0;\n width: auto;\n }\n .CodeMirror.cm-fat-cursor div.CodeMirror-cursors {\n z-index: 1;\n }\n\n .cm-animate-fat-cursor {\n -webkit-animation: blink 1.06s steps(1) infinite;\n animation: blink 1.06s steps(1) infinite;\n border: 0;\n width: auto;\n }\n @-webkit-keyframes blink {\n 0% {\n background: #7e7;\n }\n 50% {\n background: none;\n }\n 100% {\n background: #7e7;\n }\n }\n @keyframes blink {\n 0% {\n background: #7e7;\n }\n 50% {\n background: none;\n }\n 100% {\n background: #7e7;\n }\n }\n\n .CodeMirror-foldmarker {\n border-radius: 4px;\n background: #08f;\n background: linear-gradient(#43a8ff, #0f83e8);\n box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2), inset 0 0 0 1px rgba(0, 0, 0, 0.1);\n color: white;\n font-family: arial;\n font-size: 12px;\n line-height: 0;\n margin: 0 3px;\n padding: 0px 4px 1px;\n text-shadow: 0 -1px rgba(0, 0, 0, 0.1);\n }\n\n div.CodeMirror span.CodeMirror-matchingbracket {\n /* color: rgba(255, 255, 255, 0.4); */\n text-decoration: underline;\n }\n\n div.CodeMirror span.CodeMirror-nonmatchingbracket {\n color: rgb(242, 92, 84);\n }\n\n .toolbar-button {\n background: #fdfdfd;\n background: linear-gradient(#fbfbfb, #f8f8f8);\n border-color: #d3d3d3 #d0d0d0 #bababa;\n border-radius: 4px;\n border-style: solid;\n border-width: 0.5px;\n box-shadow: 0 1px 1px -1px rgba(0, 0, 0, 0.13), inset 0 1px #fff;\n color: #444;\n cursor: pointer;\n display: inline-block;\n margin: 0 5px 0;\n padding: 2px 8px 4px;\n text-decoration: none;\n }\n .toolbar-button:active {\n background: linear-gradient(#ececec, #d8d8d8);\n border-color: #cacaca #c9c9c9 #b0b0b0;\n box-shadow: 0 1px 0 #fff, inset 0 1px rgba(255, 255, 255, 0.2),\n inset 0 1px 1px rgba(0, 0, 0, 0.08);\n }\n .toolbar-button.error {\n background: linear-gradient(#fdf3f3, #e6d6d7);\n color: #b00;\n }\n\n .autoInsertedLeaf.cm-property {\n -webkit-animation-duration: 6s;\n animation-duration: 6s;\n -webkit-animation-name: insertionFade;\n animation-name: insertionFade;\n border-bottom: 2px solid rgba(255, 255, 255, 0);\n border-radius: 2px;\n margin: -2px -4px -1px;\n padding: 2px 4px 1px;\n }\n\n @-webkit-keyframes insertionFade {\n from,\n to {\n background: rgba(255, 255, 255, 0);\n border-color: rgba(255, 255, 255, 0);\n }\n\n 15%,\n 85% {\n background: #fbffc9;\n border-color: #f0f3c0;\n }\n }\n\n @keyframes insertionFade {\n from,\n to {\n background: rgba(255, 255, 255, 0);\n border-color: rgba(255, 255, 255, 0);\n }\n\n 15%,\n 85% {\n background: #fbffc9;\n border-color: #f0f3c0;\n }\n }\n\n .CodeMirror pre {\n padding: 0 4px; /* Horizontal padding of content */\n }\n\n .CodeMirror-scrollbar-filler,\n .CodeMirror-gutter-filler {\n background-color: white; /* The little square between H and V scrollbars */\n }\n\n /* GUTTER */\n\n .CodeMirror-gutters {\n background-color: transparent;\n border: none;\n white-space: nowrap;\n }\n .CodeMirror-linenumbers {\n background: ",";\n }\n .CodeMirror-linenumber {\n font-family: Open Sans, sans-serif;\n font-weight: 600;\n font-size: ",";\n color: ",";\n min-width: 20px;\n padding: 0 3px 0 5px;\n text-align: right;\n white-space: nowrap;\n }\n\n .CodeMirror-guttermarker {\n color: black;\n }\n .CodeMirror-guttermarker-subtle {\n color: #999;\n }\n\n .cm-tab {\n display: inline-block;\n text-decoration: inherit;\n }\n\n .CodeMirror-ruler {\n border-left: 1px solid #ccc;\n position: absolute;\n }\n .cm-negative {\n color: #d44;\n }\n .cm-positive {\n color: #292;\n }\n .cm-header,\n .cm-strong {\n font-weight: bold;\n }\n .cm-em {\n font-style: italic;\n }\n .cm-link {\n text-decoration: underline;\n }\n .cm-strikethrough {\n text-decoration: line-through;\n }\n\n .cm-s-default .cm-error {\n color: #f00;\n }\n .cm-invalidchar {\n color: #f00;\n }\n\n .CodeMirror-composing {\n border-bottom: 2px solid;\n }\n .CodeMirror-matchingtag {\n background: rgba(255, 150, 0, 0.3);\n }\n .CodeMirror-activeline-background {\n background: #e8f2ff;\n }\n\n /* The rest of this file contains styles related to the mechanics of\n the editor. You probably shouldn't touch them. */\n\n .CodeMirror {\n background: white;\n overflow: hidden;\n line-height: 1.6;\n }\n\n .CodeMirror-scroll {\n height: 100%;\n /* 30px is the magic margin used to hide the element's real scrollbars */\n /* See overflow: hidden in .CodeMirror */\n /* margin-bottom: -30px;\n margin-right: -30px; */\n outline: none; /* Prevent dragging from highlighting the element */\n overflow: hidden;\n /* padding-bottom: 30px; */\n position: relative;\n &:hover {\n overflow: scroll !important;\n }\n }\n .CodeMirror-sizer {\n border-right: 30px solid transparent;\n position: relative;\n }\n\n /* The fake, visible scrollbars. Used to force redraw during scrolling\n before actual scrolling happens, thus preventing shaking and\n flickering artifacts. */\n .CodeMirror-vscrollbar,\n .CodeMirror-hscrollbar,\n .CodeMirror-scrollbar-filler,\n .CodeMirror-gutter-filler {\n display: none !important;\n position: absolute;\n z-index: 6;\n }\n .CodeMirror-vscrollbar {\n overflow-x: hidden;\n overflow-y: scroll;\n right: 0;\n top: 0;\n }\n .CodeMirror-hscrollbar {\n bottom: 0;\n left: 0;\n overflow-x: scroll;\n overflow-y: hidden;\n }\n .CodeMirror-scrollbar-filler {\n right: 0;\n bottom: 0;\n }\n .CodeMirror-gutter-filler {\n left: 0;\n bottom: 0;\n }\n\n .CodeMirror-gutters {\n min-height: 100%;\n position: absolute;\n left: 0;\n top: 0;\n z-index: 3;\n margin-left: 3px;\n }\n .CodeMirror-gutter {\n display: inline-block;\n height: 100%;\n margin-bottom: -30px;\n vertical-align: top;\n white-space: normal;\n /* Hack to make IE7 behave */\n *zoom: 1;\n *display: inline;\n }\n .CodeMirror-gutter-wrapper {\n background: none !important;\n border: none !important;\n position: absolute;\n z-index: 4;\n }\n .CodeMirror-gutter-background {\n position: absolute;\n top: 0;\n bottom: 0;\n z-index: 4;\n }\n .CodeMirror-gutter-elt {\n cursor: default;\n position: absolute;\n z-index: 4;\n }\n .CodeMirror-gutter-wrapper {\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n }\n\n .CodeMirror-lines {\n cursor: text;\n min-height: 1px; /* prevents collapsing before first draw */\n }\n .CodeMirror pre {\n -webkit-tap-highlight-color: transparent;\n /* Reset some styles that the rest of the page might have set */\n background: transparent;\n border-radius: 0;\n border-width: 0;\n color: inherit;\n font-family: inherit;\n font-size: inherit;\n -webkit-font-variant-ligatures: none;\n font-variant-ligatures: none;\n line-height: inherit;\n margin: 0;\n overflow: visible;\n position: relative;\n white-space: pre;\n word-wrap: normal;\n z-index: 2;\n }\n .CodeMirror-wrap pre {\n word-wrap: break-word;\n white-space: pre-wrap;\n word-break: normal;\n }\n\n .CodeMirror-linebackground {\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n z-index: 0;\n }\n\n .CodeMirror-linewidget {\n overflow: auto;\n position: relative;\n z-index: 2;\n }\n\n .CodeMirror-widget {\n }\n\n .CodeMirror-code {\n outline: none;\n }\n\n /* Force content-box sizing for the elements where we expect it */\n .CodeMirror-scroll,\n .CodeMirror-sizer,\n .CodeMirror-gutter,\n .CodeMirror-gutters,\n .CodeMirror-linenumber {\n box-sizing: content-box;\n }\n\n .CodeMirror-measure {\n height: 0;\n overflow: hidden;\n position: absolute;\n visibility: hidden;\n width: 100%;\n }\n\n .CodeMirror-cursor {\n position: absolute;\n }\n .CodeMirror-measure pre {\n position: static;\n }\n\n div.CodeMirror-cursors {\n position: relative;\n visibility: hidden;\n z-index: 3;\n }\n div.CodeMirror-dragcursors {\n visibility: visible;\n }\n\n .CodeMirror-focused div.CodeMirror-cursors {\n visibility: visible;\n }\n\n .CodeMirror-selected {\n background: ",";\n }\n .CodeMirror-focused .CodeMirror-selected {\n background: ",";\n }\n .CodeMirror-crosshair {\n cursor: crosshair;\n }\n .CodeMirror-line::-moz-selection,\n .CodeMirror-line > span::-moz-selection,\n .CodeMirror-line > span > span::-moz-selection {\n background: ",";\n }\n .CodeMirror-line::selection,\n .CodeMirror-line > span::selection,\n .CodeMirror-line > span > span::selection {\n background: ",";\n }\n .CodeMirror-line::-moz-selection,\n .CodeMirror-line > span::-moz-selection,\n .CodeMirror-line > span > span::-moz-selection {\n background: ",";\n }\n\n .cm-searching {\n background: #ffa;\n background: rgba(255, 255, 0, 0.4);\n }\n\n /* IE7 hack to prevent it from returning funny offsetTops on the spans */\n .CodeMirror span {\n *vertical-align: text-bottom;\n }\n\n /* Used to force a border model for a node */\n .cm-force-border {\n padding-right: 0.1px;\n }\n\n @media print {\n /* Hide the cursor when printing */\n .CodeMirror div.CodeMirror-cursors {\n visibility: hidden;\n }\n }\n\n /* See issue #2901 */\n .cm-tab-wrap-hack:after {\n content: '';\n }\n\n /* Help users use markselection to safely style text background */\n span.CodeMirror-selectedtext {\n background: none;\n }\n\n .CodeMirror-dialog {\n background: inherit;\n color: inherit;\n left: 0;\n right: 0;\n overflow: hidden;\n padding: 0.1em 0.8em;\n position: absolute;\n z-index: 15;\n }\n\n .CodeMirror-dialog-top {\n border-bottom: 1px solid #eee;\n top: 0;\n }\n\n .CodeMirror-dialog-bottom {\n border-top: 1px solid #eee;\n bottom: 0;\n }\n\n .CodeMirror-dialog input {\n background: transparent;\n border: 1px solid #d3d6db;\n color: inherit;\n font-family: monospace;\n outline: none;\n width: 20em;\n }\n\n .CodeMirror-dialog span.CodeMirror-search-label {\n color: ",";\n }\n\n .CodeMirror-dialog input.CodeMirror-search-field {\n color: ",";\n background: ",";\n }\n\n .CodeMirror-dialog button {\n font-size: 70%;\n }\n\n .CodeMirror-foldgutter {\n width: 0.7em;\n }\n .CodeMirror-foldgutter-open,\n .CodeMirror-foldgutter-folded {\n cursor: pointer;\n }\n .CodeMirror-foldgutter-open:after {\n content: '▾';\n }\n .CodeMirror-foldgutter-folded:after {\n content: '▸';\n }\n /* The lint marker gutter */\n .CodeMirror-lint-markers {\n width: 16px;\n }\n\n .CodeMirror-jump-token {\n cursor: pointer;\n text-decoration: underline;\n }\n"],["\n /* Comment */\n .cm-comment {\n color: ",";\n }\n\n /* Punctuation */\n .cm-punctuation {\n color: ",";\n }\n\n /* Proppery */\n .cm-property {\n color: ",";\n }\n\n /* Keyword */\n .cm-keyword {\n color: ",";\n }\n\n /* OperationName, FragmentName */\n .cm-def {\n color: ",";\n }\n\n /* FieldAlias */\n .cm-qualifier {\n color: ",";\n }\n\n /* ArgumentName and ObjectFieldName */\n .cm-attribute {\n color: ",";\n }\n\n /* Number */\n .cm-number {\n color: ",";\n }\n\n /* String */\n .cm-string {\n color: ",";\n }\n\n /* Boolean */\n .cm-builtin {\n color: ",";\n }\n\n /* EnumValue */\n .cm-string-2 {\n color: ",";\n }\n\n /* Variable */\n .cm-variable {\n color: ",";\n }\n\n /* Directive */\n .cm-meta {\n color: ",";\n }\n\n /* Type */\n .cm-atom {\n color: ",";\n }\n\n /* Comma */\n .cm-ws {\n color: ",";\n }\n position: relative;\n display: flex;\n flex: 1 1 0%;\n flex-flow: column;\n\n .CodeMirror {\n color: rgba(255, 255, 255, 0.3);\n font-family: ",";\n font-size: ",";\n height: 100%;\n left: 0;\n position: absolute;\n top: 0;\n width: 100%;\n }\n\n .CodeMirror-lines {\n padding: 20px 0;\n }\n\n .CodeMirror-gutters {\n border-right: none;\n }\n\n .CodeMirror span[role='presentation'] {\n color: ",";\n }\n\n /* CURSOR */\n\n .CodeMirror div.CodeMirror-cursor {\n background: ",";\n border-left: ",";\n border-bottom: ",";\n }\n /* Shown when moving in bi-directional text */\n .CodeMirror div.CodeMirror-secondarycursor {\n border-left: 1px solid silver;\n }\n .CodeMirror.cm-fat-cursor div.CodeMirror-cursor {\n background: rgba(255, 255, 255, 0.6);\n color: white;\n border: 0;\n width: auto;\n }\n .CodeMirror.cm-fat-cursor div.CodeMirror-cursors {\n z-index: 1;\n }\n\n .cm-animate-fat-cursor {\n -webkit-animation: blink 1.06s steps(1) infinite;\n animation: blink 1.06s steps(1) infinite;\n border: 0;\n width: auto;\n }\n @-webkit-keyframes blink {\n 0% {\n background: #7e7;\n }\n 50% {\n background: none;\n }\n 100% {\n background: #7e7;\n }\n }\n @keyframes blink {\n 0% {\n background: #7e7;\n }\n 50% {\n background: none;\n }\n 100% {\n background: #7e7;\n }\n }\n\n .CodeMirror-foldmarker {\n border-radius: 4px;\n background: #08f;\n background: linear-gradient(#43a8ff, #0f83e8);\n box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2), inset 0 0 0 1px rgba(0, 0, 0, 0.1);\n color: white;\n font-family: arial;\n font-size: 12px;\n line-height: 0;\n margin: 0 3px;\n padding: 0px 4px 1px;\n text-shadow: 0 -1px rgba(0, 0, 0, 0.1);\n }\n\n div.CodeMirror span.CodeMirror-matchingbracket {\n /* color: rgba(255, 255, 255, 0.4); */\n text-decoration: underline;\n }\n\n div.CodeMirror span.CodeMirror-nonmatchingbracket {\n color: rgb(242, 92, 84);\n }\n\n .toolbar-button {\n background: #fdfdfd;\n background: linear-gradient(#fbfbfb, #f8f8f8);\n border-color: #d3d3d3 #d0d0d0 #bababa;\n border-radius: 4px;\n border-style: solid;\n border-width: 0.5px;\n box-shadow: 0 1px 1px -1px rgba(0, 0, 0, 0.13), inset 0 1px #fff;\n color: #444;\n cursor: pointer;\n display: inline-block;\n margin: 0 5px 0;\n padding: 2px 8px 4px;\n text-decoration: none;\n }\n .toolbar-button:active {\n background: linear-gradient(#ececec, #d8d8d8);\n border-color: #cacaca #c9c9c9 #b0b0b0;\n box-shadow: 0 1px 0 #fff, inset 0 1px rgba(255, 255, 255, 0.2),\n inset 0 1px 1px rgba(0, 0, 0, 0.08);\n }\n .toolbar-button.error {\n background: linear-gradient(#fdf3f3, #e6d6d7);\n color: #b00;\n }\n\n .autoInsertedLeaf.cm-property {\n -webkit-animation-duration: 6s;\n animation-duration: 6s;\n -webkit-animation-name: insertionFade;\n animation-name: insertionFade;\n border-bottom: 2px solid rgba(255, 255, 255, 0);\n border-radius: 2px;\n margin: -2px -4px -1px;\n padding: 2px 4px 1px;\n }\n\n @-webkit-keyframes insertionFade {\n from,\n to {\n background: rgba(255, 255, 255, 0);\n border-color: rgba(255, 255, 255, 0);\n }\n\n 15%,\n 85% {\n background: #fbffc9;\n border-color: #f0f3c0;\n }\n }\n\n @keyframes insertionFade {\n from,\n to {\n background: rgba(255, 255, 255, 0);\n border-color: rgba(255, 255, 255, 0);\n }\n\n 15%,\n 85% {\n background: #fbffc9;\n border-color: #f0f3c0;\n }\n }\n\n .CodeMirror pre {\n padding: 0 4px; /* Horizontal padding of content */\n }\n\n .CodeMirror-scrollbar-filler,\n .CodeMirror-gutter-filler {\n background-color: white; /* The little square between H and V scrollbars */\n }\n\n /* GUTTER */\n\n .CodeMirror-gutters {\n background-color: transparent;\n border: none;\n white-space: nowrap;\n }\n .CodeMirror-linenumbers {\n background: ",";\n }\n .CodeMirror-linenumber {\n font-family: Open Sans, sans-serif;\n font-weight: 600;\n font-size: ",";\n color: ",";\n min-width: 20px;\n padding: 0 3px 0 5px;\n text-align: right;\n white-space: nowrap;\n }\n\n .CodeMirror-guttermarker {\n color: black;\n }\n .CodeMirror-guttermarker-subtle {\n color: #999;\n }\n\n .cm-tab {\n display: inline-block;\n text-decoration: inherit;\n }\n\n .CodeMirror-ruler {\n border-left: 1px solid #ccc;\n position: absolute;\n }\n .cm-negative {\n color: #d44;\n }\n .cm-positive {\n color: #292;\n }\n .cm-header,\n .cm-strong {\n font-weight: bold;\n }\n .cm-em {\n font-style: italic;\n }\n .cm-link {\n text-decoration: underline;\n }\n .cm-strikethrough {\n text-decoration: line-through;\n }\n\n .cm-s-default .cm-error {\n color: #f00;\n }\n .cm-invalidchar {\n color: #f00;\n }\n\n .CodeMirror-composing {\n border-bottom: 2px solid;\n }\n .CodeMirror-matchingtag {\n background: rgba(255, 150, 0, 0.3);\n }\n .CodeMirror-activeline-background {\n background: #e8f2ff;\n }\n\n /* The rest of this file contains styles related to the mechanics of\n the editor. You probably shouldn't touch them. */\n\n .CodeMirror {\n background: white;\n overflow: hidden;\n line-height: 1.6;\n }\n\n .CodeMirror-scroll {\n height: 100%;\n /* 30px is the magic margin used to hide the element's real scrollbars */\n /* See overflow: hidden in .CodeMirror */\n /* margin-bottom: -30px;\n margin-right: -30px; */\n outline: none; /* Prevent dragging from highlighting the element */\n overflow: hidden;\n /* padding-bottom: 30px; */\n position: relative;\n &:hover {\n overflow: scroll !important;\n }\n }\n .CodeMirror-sizer {\n border-right: 30px solid transparent;\n position: relative;\n }\n\n /* The fake, visible scrollbars. Used to force redraw during scrolling\n before actual scrolling happens, thus preventing shaking and\n flickering artifacts. */\n .CodeMirror-vscrollbar,\n .CodeMirror-hscrollbar,\n .CodeMirror-scrollbar-filler,\n .CodeMirror-gutter-filler {\n display: none !important;\n position: absolute;\n z-index: 6;\n }\n .CodeMirror-vscrollbar {\n overflow-x: hidden;\n overflow-y: scroll;\n right: 0;\n top: 0;\n }\n .CodeMirror-hscrollbar {\n bottom: 0;\n left: 0;\n overflow-x: scroll;\n overflow-y: hidden;\n }\n .CodeMirror-scrollbar-filler {\n right: 0;\n bottom: 0;\n }\n .CodeMirror-gutter-filler {\n left: 0;\n bottom: 0;\n }\n\n .CodeMirror-gutters {\n min-height: 100%;\n position: absolute;\n left: 0;\n top: 0;\n z-index: 3;\n margin-left: 3px;\n }\n .CodeMirror-gutter {\n display: inline-block;\n height: 100%;\n margin-bottom: -30px;\n vertical-align: top;\n white-space: normal;\n /* Hack to make IE7 behave */\n *zoom: 1;\n *display: inline;\n }\n .CodeMirror-gutter-wrapper {\n background: none !important;\n border: none !important;\n position: absolute;\n z-index: 4;\n }\n .CodeMirror-gutter-background {\n position: absolute;\n top: 0;\n bottom: 0;\n z-index: 4;\n }\n .CodeMirror-gutter-elt {\n cursor: default;\n position: absolute;\n z-index: 4;\n }\n .CodeMirror-gutter-wrapper {\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n }\n\n .CodeMirror-lines {\n cursor: text;\n min-height: 1px; /* prevents collapsing before first draw */\n }\n .CodeMirror pre {\n -webkit-tap-highlight-color: transparent;\n /* Reset some styles that the rest of the page might have set */\n background: transparent;\n border-radius: 0;\n border-width: 0;\n color: inherit;\n font-family: inherit;\n font-size: inherit;\n -webkit-font-variant-ligatures: none;\n font-variant-ligatures: none;\n line-height: inherit;\n margin: 0;\n overflow: visible;\n position: relative;\n white-space: pre;\n word-wrap: normal;\n z-index: 2;\n }\n .CodeMirror-wrap pre {\n word-wrap: break-word;\n white-space: pre-wrap;\n word-break: normal;\n }\n\n .CodeMirror-linebackground {\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n z-index: 0;\n }\n\n .CodeMirror-linewidget {\n overflow: auto;\n position: relative;\n z-index: 2;\n }\n\n .CodeMirror-widget {\n }\n\n .CodeMirror-code {\n outline: none;\n }\n\n /* Force content-box sizing for the elements where we expect it */\n .CodeMirror-scroll,\n .CodeMirror-sizer,\n .CodeMirror-gutter,\n .CodeMirror-gutters,\n .CodeMirror-linenumber {\n box-sizing: content-box;\n }\n\n .CodeMirror-measure {\n height: 0;\n overflow: hidden;\n position: absolute;\n visibility: hidden;\n width: 100%;\n }\n\n .CodeMirror-cursor {\n position: absolute;\n }\n .CodeMirror-measure pre {\n position: static;\n }\n\n div.CodeMirror-cursors {\n position: relative;\n visibility: hidden;\n z-index: 3;\n }\n div.CodeMirror-dragcursors {\n visibility: visible;\n }\n\n .CodeMirror-focused div.CodeMirror-cursors {\n visibility: visible;\n }\n\n .CodeMirror-selected {\n background: ",";\n }\n .CodeMirror-focused .CodeMirror-selected {\n background: ",";\n }\n .CodeMirror-crosshair {\n cursor: crosshair;\n }\n .CodeMirror-line::-moz-selection,\n .CodeMirror-line > span::-moz-selection,\n .CodeMirror-line > span > span::-moz-selection {\n background: ",";\n }\n .CodeMirror-line::selection,\n .CodeMirror-line > span::selection,\n .CodeMirror-line > span > span::selection {\n background: ",";\n }\n .CodeMirror-line::-moz-selection,\n .CodeMirror-line > span::-moz-selection,\n .CodeMirror-line > span > span::-moz-selection {\n background: ",";\n }\n\n .cm-searching {\n background: #ffa;\n background: rgba(255, 255, 0, 0.4);\n }\n\n /* IE7 hack to prevent it from returning funny offsetTops on the spans */\n .CodeMirror span {\n *vertical-align: text-bottom;\n }\n\n /* Used to force a border model for a node */\n .cm-force-border {\n padding-right: 0.1px;\n }\n\n @media print {\n /* Hide the cursor when printing */\n .CodeMirror div.CodeMirror-cursors {\n visibility: hidden;\n }\n }\n\n /* See issue #2901 */\n .cm-tab-wrap-hack:after {\n content: '';\n }\n\n /* Help users use markselection to safely style text background */\n span.CodeMirror-selectedtext {\n background: none;\n }\n\n .CodeMirror-dialog {\n background: inherit;\n color: inherit;\n left: 0;\n right: 0;\n overflow: hidden;\n padding: 0.1em 0.8em;\n position: absolute;\n z-index: 15;\n }\n\n .CodeMirror-dialog-top {\n border-bottom: 1px solid #eee;\n top: 0;\n }\n\n .CodeMirror-dialog-bottom {\n border-top: 1px solid #eee;\n bottom: 0;\n }\n\n .CodeMirror-dialog input {\n background: transparent;\n border: 1px solid #d3d6db;\n color: inherit;\n font-family: monospace;\n outline: none;\n width: 20em;\n }\n\n .CodeMirror-dialog span.CodeMirror-search-label {\n color: ",";\n }\n\n .CodeMirror-dialog input.CodeMirror-search-field {\n color: ",";\n background: ",";\n }\n\n .CodeMirror-dialog button {\n font-size: 70%;\n }\n\n .CodeMirror-foldgutter {\n width: 0.7em;\n }\n .CodeMirror-foldgutter-open,\n .CodeMirror-foldgutter-folded {\n cursor: pointer;\n }\n .CodeMirror-foldgutter-open:after {\n content: '▾';\n }\n .CodeMirror-foldgutter-folded:after {\n content: '▸';\n }\n /* The lint marker gutter */\n .CodeMirror-lint-markers {\n width: 16px;\n }\n\n .CodeMirror-jump-token {\n cursor: pointer;\n text-decoration: underline;\n }\n"])),(function(e){return e.theme.editorColours.comment}),(function(e){return e.theme.editorColours.punctuation}),(function(e){return e.theme.editorColours.property}),(function(e){return e.theme.editorColours.keyword}),(function(e){return e.theme.editorColours.def}),(function(e){return e.theme.editorColours.def}),(function(e){return e.theme.editorColours.attribute}),(function(e){return e.theme.editorColours.number}),(function(e){return e.theme.editorColours.string}),(function(e){return e.theme.editorColours.builtin}),(function(e){return e.theme.editorColours.string2}),(function(e){return e.theme.editorColours.variable}),(function(e){return e.theme.editorColours.meta}),(function(e){return e.theme.editorColours.atom}),(function(e){return e.theme.editorColours.ws}),(function(e){return e.theme.settings["editor.fontFamily"]}),(function(e){return e.theme.settings["editor.fontSize"]+"px"}),(function(e){return e.theme.colours.text}),(function(e){return"block"===e.theme.settings["editor.cursorShape"]?e.theme.editorColours.cursorColor:"transparent"}),(function(e){return"line"===e.theme.settings["editor.cursorShape"]?"1px solid "+e.theme.editorColours.cursorColor:0}),(function(e){return"underline"===e.theme.settings["editor.cursorShape"]?"1px solid "+e.theme.editorColours.cursorColor:0}),(function(e){return e.theme.editorColours.editorBackground}),(function(e){return e.theme.settings["editor.fontSize"]-2+"px"}),(function(e){return e.theme.colours.textInactive}),(function(e){return e.theme.editorColours.selection}),(function(e){return e.theme.editorColours.selection}),(function(e){return e.theme.editorColours.selection}),(function(e){return e.theme.editorColours.selection}),(function(e){return e.theme.editorColours.selection}),(function(e){return e.theme.colours.text}),(function(e){return e.theme.colours.text}),(function(e){return e.theme.colours.background})),f=l.createGlobalStyle(s||(s=i(['\n *::-webkit-scrollbar {\n -webkit-appearance: none;\n width: 7px;\n height: 7px;\n }\n *::-webkit-scrollbar-track-piece {\n background-color: rgba(255, 255, 255, 0);\n }\n *::-webkit-scrollbar-track {\n background-color: inherit;\n }\n *::-webkit-scrollbar-thumb {\n max-height: 100px;\n border-radius: 3px;\n background-color: rgba(1, 1, 1, 0.23);\n }\n *::-webkit-scrollbar-thumb:hover {\n background-color: rgba(1, 1, 1, 0.35);\n }\n *::-webkit-scrollbar-thumb:active {\n background-color: rgba(1, 1, 1, 0.48);\n }\n *::-webkit-scrollbar-corner {\n background: rgba(0,0,0,0);\n }\n\n\n .CodeMirror-lint-tooltip, .CodeMirror-info {\n background-color: white;\n border-radius: 4px 4px 4px 4px;\n border: 1px solid black;\n color: #09141C;\n font-family: Open Sans, monospace;\n font-size: 14px;\n max-width: 600px;\n opacity: 0;\n overflow: hidden;\n padding: 12px 14px;\n position: fixed;\n -webkit-transition: opacity 0.4s;\n transition: opacity 0.4s;\n z-index: 100;\n }\n\n .CodeMirror-lint-message-error,\n .CodeMirror-lint-message-warning {\n padding-left: 18px;\n }\n\n .CodeMirror-lint-mark-error,\n .CodeMirror-lint-mark-warning {\n background-position: left bottom;\n background-repeat: repeat-x;\n }\n\n .CodeMirror-lint-mark-error {\n background-image: url(\'data:image/svg+xml;utf8,<svg width="5" height="4" viewBox="0 0 5 4" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M5 1.00954C4.87191 1.03474 4.75219 1.10989 4.674 1.235L3.87 2.52141C3.28249 3.46141 1.9135 3.46141 1.326 2.52141L0.521998 1.235C0.404356 1.04677 0.19271 0.971619 0 1.00954V0.00314821C0.0325855 0.00105209 0.0652291 2.68503e-06 0.0978728 5.14592e-09C0.0977892 -1.71531e-09 0.0979564 -1.71531e-09 0.0978728 5.14592e-09C0.586954 4.01563e-05 1.07627 0.235041 1.37 0.705002L2.174 1.99141C2.36983 2.30474 2.82616 2.30474 3.022 1.99141L3.826 0.705002C4.10012 0.266408 4.54438 0.0324569 5 0.00314818V1.00954Z" fill="#FF4F56"/>\n </svg>\n \');\n }\n\n .CodeMirror-lint-mark-warning {\n background-image: url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sJFhQXEbhTg7YAAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAAMklEQVQI12NkgIIvJ3QXMjAwdDN+OaEbysDA4MPAwNDNwMCwiOHLCd1zX07o6kBVGQEAKBANtobskNMAAAAASUVORK5CYII=\');\n }\n\n .CodeMirror-lint-marker-error,\n .CodeMirror-lint-marker-warning {\n background-position: center center;\n background-repeat: no-repeat;\n cursor: pointer;\n display: inline-block;\n height: 16px;\n position: relative;\n vertical-align: middle;\n width: 16px;\n }\n\n .CodeMirror-lint-message-error,\n .CodeMirror-lint-message-warning {\n background-position: top left;\n background-repeat: no-repeat;\n padding-left: 22px;\n }\n\n .CodeMirror-lint-marker-error,\n .CodeMirror-lint-message-error {\n background-image: url(\'data:image/svg+xml;utf8,<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">\n <circle cx="8" cy="8" r="8" fill="#FF4F56"/>\n <path d="M4.2929 10.2928C3.90237 10.6833 3.90237 11.3164 4.29289 11.707C4.68341 12.0975 5.31657 12.0975 5.7071 11.707L4.2929 10.2928ZM11.7071 5.70711C12.0976 5.31659 12.0976 4.68343 11.7071 4.2929C11.3166 3.90237 10.6834 3.90237 10.2929 4.29289L11.7071 5.70711ZM5.7071 4.29301C5.31657 3.90249 4.68341 3.9025 4.29289 4.29302C3.90237 4.68355 3.90237 5.31672 4.2929 5.70724L5.7071 4.29301ZM10.2929 11.7071C10.6834 12.0976 11.3166 12.0976 11.7071 11.7071C12.0976 11.3166 12.0976 10.6834 11.7071 10.2929L10.2929 11.7071ZM5.7071 11.707L11.7071 5.70711L10.2929 4.29289L4.2929 10.2928L5.7071 11.707ZM4.2929 5.70724L10.2929 11.7071L11.7071 10.2929L5.7071 4.29301L4.2929 5.70724Z" fill="white"/>\n </svg>\n \');\n background-position: 0 50%;\n }\n\n .CodeMirror-lint-marker-warning,\n .CodeMirror-lint-message-warning {\n background-image: url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAANlBMVEX/uwDvrwD/uwD/uwD/uwD/uwD/uwD/uwD/uwD6twD/uwAAAADurwD2tQD7uAD+ugAAAAD/uwDhmeTRAAAADHRSTlMJ8mN1EYcbmiixgACm7WbuAAAAVklEQVR42n3PUQqAIBBFUU1LLc3u/jdbOJoW1P08DA9Gba8+YWJ6gNJoNYIBzAA2chBth5kLmG9YUoG0NHAUwFXwO9LuBQL1giCQb8gC9Oro2vp5rncCIY8L8uEx5ZkAAAAASUVORK5CYII=\');\n }\n\n .CodeMirror-lint-marker-multiple {\n background-image: url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHCAMAAADzjKfhAAAACVBMVEUAAAAAAAC/v7914kyHAAAAAXRSTlMAQObYZgAAACNJREFUeNo1ioEJAAAIwmz/H90iFFSGJgFMe3gaLZ0od+9/AQZ0ADosbYraAAAAAElFTkSuQmCC\');\n background-position: right bottom;\n background-repeat: no-repeat;\n width: 100%;\n height: 100%;\n }\n\n .CodeMirror-lint-mark-error {\n &:before {\n content: \'\';\n width: 50px;\n height: 14px;\n position: absolute;\n background: #FF4F56;\n left: -80px;\n top: 50%;\n transform: translateY(-50%);\n z-index: 10;\n }\n }\n\n .CodeMirror-lint-message-error span {\n color: white;\n background: #FF4F56;\n font-family: \'Source Code Pro\', monospace;\n font-weight: 600;\n border-radius: 2px;\n padding: 0 4px;\n }\n\n .CodeMirror-hints {\n background: white;\n box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);\n font-size: 14px;\n list-style: none;\n margin-left: -6px;\n margin: 0;\n max-height: 20em;\n overflow: hidden;\n padding: 0;\n position: absolute;\n z-index: 10;\n border-radius: 2px;\n top: 0;\n left: 0;\n &:hover {\n overflow-y: overlay;\n }\n }\n\n .CodeMirror-hints-wrapper {\n font-family: \'Open Sans\', sans-serif;\n background: white;\n box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);\n margin-left: -6px;\n position: absolute;\n z-index: 10;\n }\n\n .CodeMirror-hints-wrapper .CodeMirror-hints {\n box-shadow: none;\n margin-left: 0;\n position: relative;\n z-index: 0;\n }\n\n .CodeMirror-hint {\n color: rgba(15, 32, 45, 0.6);\n cursor: pointer;\n margin: 0;\n max-width: 300px;\n overflow: hidden;\n padding: 6px 12px;\n white-space: pre;\n }\n\n li.CodeMirror-hint-active {\n background-color: #2a7ed3;\n border-top-color: white;\n color: white;\n }\n\n .CodeMirror-hint-information {\n border-top: solid 1px rgba(0, 0, 0, 0.1);\n max-width: 300px;\n padding: 10px 12px;\n position: relative;\n z-index: 1;\n background-color: rgba(15, 32, 45, 0.03);\n font-size: 14px;\n }\n\n .CodeMirror-hint-information:first-child {\n border-bottom: solid 1px #c0c0c0;\n border-top: none;\n margin-bottom: -1px;\n }\n\n .CodeMirror-hint-information .content {\n color: rgba(15, 32, 45, 0.6);\n box-orient: vertical;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n line-clamp: 3;\n line-height: 1.36;\n max-height: 59px;\n overflow: hidden;\n text-overflow: -o-ellipsis-lastline;\n }\n\n .CodeMirror-hint-information .content p:first-child {\n margin-top: 0;\n }\n\n .CodeMirror-hint-information .content p:last-child {\n margin-bottom: 0;\n }\n\n .CodeMirror-hint-information .infoType {\n color: rgb(241, 143, 1);\n cursor: pointer;\n display: inline;\n margin-right: 0.5em;\n }\n'],['\n *::-webkit-scrollbar {\n -webkit-appearance: none;\n width: 7px;\n height: 7px;\n }\n *::-webkit-scrollbar-track-piece {\n background-color: rgba(255, 255, 255, 0);\n }\n *::-webkit-scrollbar-track {\n background-color: inherit;\n }\n *::-webkit-scrollbar-thumb {\n max-height: 100px;\n border-radius: 3px;\n background-color: rgba(1, 1, 1, 0.23);\n }\n *::-webkit-scrollbar-thumb:hover {\n background-color: rgba(1, 1, 1, 0.35);\n }\n *::-webkit-scrollbar-thumb:active {\n background-color: rgba(1, 1, 1, 0.48);\n }\n *::-webkit-scrollbar-corner {\n background: rgba(0,0,0,0);\n }\n\n\n .CodeMirror-lint-tooltip, .CodeMirror-info {\n background-color: white;\n border-radius: 4px 4px 4px 4px;\n border: 1px solid black;\n color: #09141C;\n font-family: Open Sans, monospace;\n font-size: 14px;\n max-width: 600px;\n opacity: 0;\n overflow: hidden;\n padding: 12px 14px;\n position: fixed;\n -webkit-transition: opacity 0.4s;\n transition: opacity 0.4s;\n z-index: 100;\n }\n\n .CodeMirror-lint-message-error,\n .CodeMirror-lint-message-warning {\n padding-left: 18px;\n }\n\n .CodeMirror-lint-mark-error,\n .CodeMirror-lint-mark-warning {\n background-position: left bottom;\n background-repeat: repeat-x;\n }\n\n .CodeMirror-lint-mark-error {\n background-image: url(\'data:image/svg+xml;utf8,<svg width="5" height="4" viewBox="0 0 5 4" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M5 1.00954C4.87191 1.03474 4.75219 1.10989 4.674 1.235L3.87 2.52141C3.28249 3.46141 1.9135 3.46141 1.326 2.52141L0.521998 1.235C0.404356 1.04677 0.19271 0.971619 0 1.00954V0.00314821C0.0325855 0.00105209 0.0652291 2.68503e-06 0.0978728 5.14592e-09C0.0977892 -1.71531e-09 0.0979564 -1.71531e-09 0.0978728 5.14592e-09C0.586954 4.01563e-05 1.07627 0.235041 1.37 0.705002L2.174 1.99141C2.36983 2.30474 2.82616 2.30474 3.022 1.99141L3.826 0.705002C4.10012 0.266408 4.54438 0.0324569 5 0.00314818V1.00954Z" fill="#FF4F56"/>\n </svg>\n \');\n }\n\n .CodeMirror-lint-mark-warning {\n background-image: url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sJFhQXEbhTg7YAAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAAMklEQVQI12NkgIIvJ3QXMjAwdDN+OaEbysDA4MPAwNDNwMCwiOHLCd1zX07o6kBVGQEAKBANtobskNMAAAAASUVORK5CYII=\');\n }\n\n .CodeMirror-lint-marker-error,\n .CodeMirror-lint-marker-warning {\n background-position: center center;\n background-repeat: no-repeat;\n cursor: pointer;\n display: inline-block;\n height: 16px;\n position: relative;\n vertical-align: middle;\n width: 16px;\n }\n\n .CodeMirror-lint-message-error,\n .CodeMirror-lint-message-warning {\n background-position: top left;\n background-repeat: no-repeat;\n padding-left: 22px;\n }\n\n .CodeMirror-lint-marker-error,\n .CodeMirror-lint-message-error {\n background-image: url(\'data:image/svg+xml;utf8,<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">\n <circle cx="8" cy="8" r="8" fill="#FF4F56"/>\n <path d="M4.2929 10.2928C3.90237 10.6833 3.90237 11.3164 4.29289 11.707C4.68341 12.0975 5.31657 12.0975 5.7071 11.707L4.2929 10.2928ZM11.7071 5.70711C12.0976 5.31659 12.0976 4.68343 11.7071 4.2929C11.3166 3.90237 10.6834 3.90237 10.2929 4.29289L11.7071 5.70711ZM5.7071 4.29301C5.31657 3.90249 4.68341 3.9025 4.29289 4.29302C3.90237 4.68355 3.90237 5.31672 4.2929 5.70724L5.7071 4.29301ZM10.2929 11.7071C10.6834 12.0976 11.3166 12.0976 11.7071 11.7071C12.0976 11.3166 12.0976 10.6834 11.7071 10.2929L10.2929 11.7071ZM5.7071 11.707L11.7071 5.70711L10.2929 4.29289L4.2929 10.2928L5.7071 11.707ZM4.2929 5.70724L10.2929 11.7071L11.7071 10.2929L5.7071 4.29301L4.2929 5.70724Z" fill="white"/>\n </svg>\n \');\n background-position: 0 50%;\n }\n\n .CodeMirror-lint-marker-warning,\n .CodeMirror-lint-message-warning {\n background-image: url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAANlBMVEX/uwDvrwD/uwD/uwD/uwD/uwD/uwD/uwD/uwD6twD/uwAAAADurwD2tQD7uAD+ugAAAAD/uwDhmeTRAAAADHRSTlMJ8mN1EYcbmiixgACm7WbuAAAAVklEQVR42n3PUQqAIBBFUU1LLc3u/jdbOJoW1P08DA9Gba8+YWJ6gNJoNYIBzAA2chBth5kLmG9YUoG0NHAUwFXwO9LuBQL1giCQb8gC9Oro2vp5rncCIY8L8uEx5ZkAAAAASUVORK5CYII=\');\n }\n\n .CodeMirror-lint-marker-multiple {\n background-image: url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHCAMAAADzjKfhAAAACVBMVEUAAAAAAAC/v7914kyHAAAAAXRSTlMAQObYZgAAACNJREFUeNo1ioEJAAAIwmz/H90iFFSGJgFMe3gaLZ0od+9/AQZ0ADosbYraAAAAAElFTkSuQmCC\');\n background-position: right bottom;\n background-repeat: no-repeat;\n width: 100%;\n height: 100%;\n }\n\n .CodeMirror-lint-mark-error {\n &:before {\n content: \'\';\n width: 50px;\n height: 14px;\n position: absolute;\n background: #FF4F56;\n left: -80px;\n top: 50%;\n transform: translateY(-50%);\n z-index: 10;\n }\n }\n\n .CodeMirror-lint-message-error span {\n color: white;\n background: #FF4F56;\n font-family: \'Source Code Pro\', monospace;\n font-weight: 600;\n border-radius: 2px;\n padding: 0 4px;\n }\n\n .CodeMirror-hints {\n background: white;\n box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);\n font-size: 14px;\n list-style: none;\n margin-left: -6px;\n margin: 0;\n max-height: 20em;\n overflow: hidden;\n padding: 0;\n position: absolute;\n z-index: 10;\n border-radius: 2px;\n top: 0;\n left: 0;\n &:hover {\n overflow-y: overlay;\n }\n }\n\n .CodeMirror-hints-wrapper {\n font-family: \'Open Sans\', sans-serif;\n background: white;\n box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);\n margin-left: -6px;\n position: absolute;\n z-index: 10;\n }\n\n .CodeMirror-hints-wrapper .CodeMirror-hints {\n box-shadow: none;\n margin-left: 0;\n position: relative;\n z-index: 0;\n }\n\n .CodeMirror-hint {\n color: rgba(15, 32, 45, 0.6);\n cursor: pointer;\n margin: 0;\n max-width: 300px;\n overflow: hidden;\n padding: 6px 12px;\n white-space: pre;\n }\n\n li.CodeMirror-hint-active {\n background-color: #2a7ed3;\n border-top-color: white;\n color: white;\n }\n\n .CodeMirror-hint-information {\n border-top: solid 1px rgba(0, 0, 0, 0.1);\n max-width: 300px;\n padding: 10px 12px;\n position: relative;\n z-index: 1;\n background-color: rgba(15, 32, 45, 0.03);\n font-size: 14px;\n }\n\n .CodeMirror-hint-information:first-child {\n border-bottom: solid 1px #c0c0c0;\n border-top: none;\n margin-bottom: -1px;\n }\n\n .CodeMirror-hint-information .content {\n color: rgba(15, 32, 45, 0.6);\n box-orient: vertical;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n line-clamp: 3;\n line-height: 1.36;\n max-height: 59px;\n overflow: hidden;\n text-overflow: -o-ellipsis-lastline;\n }\n\n .CodeMirror-hint-information .content p:first-child {\n margin-top: 0;\n }\n\n .CodeMirror-hint-information .content p:last-child {\n margin-bottom: 0;\n }\n\n .CodeMirror-hint-information .infoType {\n color: rgb(241, 143, 1);\n cursor: pointer;\n display: inline;\n margin-right: 0.5em;\n }\n']))),d=l.styled.div(u||(u=i(["\n color: #141823;\n display: flex;\n flex-direction: row;\n font-family: system, -apple-system, 'San Francisco', '.SFNSDisplay-Regular',\n 'Segoe UI', Segoe, 'Segoe WP', 'Helvetica Neue', helvetica, 'Lucida Grande',\n arial, sans-serif;\n font-size: 14px;\n height: 100%;\n margin: 0;\n overflow: hidden;\n width: 100%;\n"],["\n color: #141823;\n display: flex;\n flex-direction: row;\n font-family: system, -apple-system, 'San Francisco', '.SFNSDisplay-Regular',\n 'Segoe UI', Segoe, 'Segoe WP', 'Helvetica Neue', helvetica, 'Lucida Grande',\n arial, sans-serif;\n font-size: 14px;\n height: 100%;\n margin: 0;\n overflow: hidden;\n width: 100%;\n"]))),h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.getWidth=function(){return t.graphqlContainer.offsetWidth},t.setGraphqlContainer=function(e){t.graphqlContainer=e},t}return o(t,e),t.prototype.render=function(){return c.createElement(d,{ref:this.setGraphqlContainer},this.props.children)},t}(c.PureComponent);t.Container=h,t.default=function(e){var t=e.children;return c.createElement(p,{onMouseMove:function(e){if(e.target.classList.contains("CodeMirror-lint-mark-error"))for(var t=document.getElementsByClassName("CodeMirror-lint-message-error"),n=0,r=Array.from(t);n<r.length;n++){var i=r[n];i.innerHTML=i.innerHTML.replace(/"(.*?)"/g,"<span>$1</span>")}}},t,c.createElement(f,null))}},function(e,t,n){!function(e){"use strict";var t,n,r=e.Pos;function i(e,t){for(var n=function(e){var t=e.flags;return null!=t?t:(e.ignoreCase?"i":"")+(e.global?"g":"")+(e.multiline?"m":"")}(e),r=n,i=0;i<t.length;i++)-1==r.indexOf(t.charAt(i))&&(r+=t.charAt(i));return n==r?e:new RegExp(e.source,r)}function o(e){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(e.source)}function a(e,t,n){t=i(t,"g");for(var o=n.line,a=n.ch,s=e.lastLine();o<=s;o++,a=0){t.lastIndex=a;var u=e.getLine(o),c=t.exec(u);if(c)return{from:r(o,c.index),to:r(o,c.index+c[0].length),match:c}}}function s(e,t,n){if(!o(t))return a(e,t,n);t=i(t,"gm");for(var s,u=1,c=n.line,l=e.lastLine();c<=l;){for(var p=0;p<u&&!(c>l);p++){var f=e.getLine(c++);s=null==s?f:s+"\n"+f}u*=2,t.lastIndex=n.ch;var d=t.exec(s);if(d){var h=s.slice(0,d.index).split("\n"),m=d[0].split("\n"),g=n.line+h.length-1,y=h[h.length-1].length;return{from:r(g,y),to:r(g+m.length-1,1==m.length?y+m[0].length:m[m.length-1].length),match:d}}}}function u(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),l=u(c,t,a<0?0:c.length-a);if(l)return{from:r(o,l.index),to:r(o,l.index+l[0].length),match:l}}}function l(e,t,n){if(!o(t))return c(e,t,n);t=i(t,"gm");for(var a,s=1,l=e.getLine(n.line).length-n.ch,p=n.line,f=e.firstLine();p>=f;){for(var d=0;d<s&&p>=f;d++){var h=e.getLine(p--);a=null==a?h:h+"\n"+a}s*=2;var m=u(a,t,l);if(m){var g=a.slice(0,m.index).split("\n"),y=m[0].split("\n"),v=p+g.length,b=g[g.length-1].length;return{from:r(v,b),to:r(v+y.length-1,1==y.length?b+y[0].length:y[y.length-1].length),match:m}}}}function p(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 f(e,i,o,a){if(!i.length)return null;var s=a?t:n,u=s(i).split(/\r|\n\r?/);e:for(var c=o.line,l=o.ch,f=e.lastLine()+1-u.length;c<=f;c++,l=0){var d=e.getLine(c).slice(l),h=s(d);if(1==u.length){var m=h.indexOf(u[0]);if(-1==m)continue e;return o=p(d,h,m,s)+l,{from:r(c,p(d,h,m,s)+l),to:r(c,p(d,h,m+u[0].length,s)+l)}}var g=h.length-u[0].length;if(h.slice(g)==u[0]){for(var y=1;y<u.length-1;y++)if(s(e.getLine(c+y))!=u[y])continue e;var v=e.getLine(c+u.length-1),b=s(v),E=u[u.length-1];if(b.slice(0,E.length)==E)return{from:r(c,p(d,h,g,s)+l),to:r(c+u.length-1,p(v,b,E.length,s))}}}}function d(e,i,o,a){if(!i.length)return null;var s=a?t:n,u=s(i).split(/\r|\n\r?/);e:for(var c=o.line,l=o.ch,f=e.firstLine()-1+u.length;c>=f;c--,l=-1){var d=e.getLine(c);l>-1&&(d=d.slice(0,l));var h=s(d);if(1==u.length){var m=h.lastIndexOf(u[0]);if(-1==m)continue e;return{from:r(c,p(d,h,m,s)),to:r(c,p(d,h,m+u[0].length,s))}}var g=u[u.length-1];if(h.slice(0,g.length)==g){var y=1;for(o=c-u.length+1;y<u.length-1;y++)if(s(e.getLine(o+y))!=u[y])continue e;var v=e.getLine(c+1-u.length),b=s(v);if(b.slice(b.length-u[0].length)==u[0])return{from:r(c+1-u.length,p(v,b,v.length-u[0].length,s)),to:r(c,p(d,h,g.length,s))}}}}function h(e,t,n,o){var u;this.atOccurrence=!1,this.doc=e,n=n?e.clipPos(n):r(0,0),this.pos={from:n,to:n},"object"==typeof o?u=o.caseFold:(u=o,o=null),"string"==typeof t?(null==u&&(u=!1),this.matches=function(n,r){return(n?d:f)(e,t,r,u)}):(t=i(t,"gm"),o&&!1===o.multiline?this.matches=function(n,r){return(n?c:a)(e,t,r)}:this.matches=function(n,r){return(n?l:s)(e,t,r)})}String.prototype.normalize?(t=function(e){return e.normalize("NFD").toLowerCase()},n=function(e){return e.normalize("NFD")}):(t=function(e){return e.toLowerCase()},n=function(e){return e}),h.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(t){for(var n=this.matches(t,this.doc.clipPos(t?this.pos.from:this.pos.to));n&&0==e.cmpPos(n.from,n.to);)t?n.from.ch?n.from=r(n.from.line,n.from.ch-1):n=n.from.line==this.doc.firstLine()?null:this.matches(t,this.doc.clipPos(r(n.from.line-1))):n.to.ch<this.doc.getLine(n.to.line).length?n.to=r(n.to.line,n.to.ch+1):n=n.to.line==this.doc.lastLine()?null:this.matches(t,r(n.to.line+1,0));if(n)return this.pos=n,this.atOccurrence=!0,this.pos.match||!0;var i=r(t?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:i,to:i},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(t,n){if(this.atOccurrence){var i=e.splitLines(t);this.doc.replaceRange(i,this.pos.from,this.pos.to,n),this.pos.to=r(this.pos.from.line+i.length-1,i[i.length-1].length+(1==i.length?this.pos.from.ch:0))}}},e.defineExtension("getSearchCursor",(function(e,t,n){return new h(this.doc,e,t,n)})),e.defineDocExtension("getSearchCursor",(function(e,t,n){return new h(this,e,t,n)})),e.defineExtension("selectMatches",(function(t,n){for(var r=[],i=this.getSearchCursor(t,this.getCursor("from"),n);i.findNext()&&!(e.cmpPos(i.to(),this.getCursor("to"))>0);)r.push({anchor:i.from(),head:i.to()});r.length&&this.setSelections(r,0)}))}(n(16))},function(e,t,n){!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,u=this;function c(t){if("string"==typeof t)p.value=t;else{if(s)return;s=!0,e.rmClass(a.parentNode,"dialog-opened"),a.parentNode.removeChild(a),u.focus(),o.onClose&&o.onClose(a)}}var l,p=a.getElementsByTagName("input")[0];return p?(p.focus(),o.value&&(p.value=o.value,!1!==o.selectValueOnOpen&&p.select()),o.onInput&&e.on(p,"input",(function(e){o.onInput(e,p.value,c)})),o.onKeyUp&&e.on(p,"keyup",(function(e){o.onKeyUp(e,p.value,c)})),e.on(p,"keydown",(function(t){o&&o.onKeyDown&&o.onKeyDown(t,p.value,c)||((27==t.keyCode||!1!==o.closeOnEnter&&13==t.keyCode)&&(p.blur(),e.e_stop(t),c()),13==t.keyCode&&i(p.value,t))})),!1!==o.closeOnBlur&&e.on(a,"focusout",(function(e){null!==e.relatedTarget&&c()}))):(l=a.getElementsByTagName("button")[0])&&(e.on(l,"click",(function(){c(),u.focus()})),!1!==o.closeOnBlur&&e.on(l,"blur",c),l.focus()),c})),e.defineExtension("openConfirm",(function(r,i,o){n(this,null);var a=t(this,r,o&&o.bottom),s=a.getElementsByTagName("button"),u=!1,c=this,l=1;function p(){u||(u=!0,e.rmClass(a.parentNode,"dialog-opened"),a.parentNode.removeChild(a),c.focus())}s[0].focus();for(var f=0;f<s.length;++f){var d=s[f];!function(t){e.on(d,"click",(function(n){e.e_preventDefault(n),p(),t&&t(c)}))}(i[f]),e.on(d,"blur",(function(){--l,setTimeout((function(){l<=0&&p()}),200)})),e.on(d,"focus",(function(){++l}))}})),e.defineExtension("openNotification",(function(r,i){n(this,c);var o,a=t(this,r,i&&i.bottom),s=!1,u=i&&void 0!==i.duration?i.duration:5e3;function c(){s||(s=!0,clearTimeout(o),e.rmClass(a.parentNode,"dialog-opened"),a.parentNode.removeChild(a))}return e.on(a,"click",(function(t){e.e_preventDefault(t),c()})),u&&(o=setTimeout(c,u)),c}))}(n(16))},function(e,t,n){"use strict";var r=Number.isFinite||function(e){return"number"==typeof e&&isFinite(e)};t.a=r},function(e,t,n){"use strict";
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function a(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,s,u=a(e),c=1;c<arguments.length;c++){for(var l in n=Object(arguments[c]))i.call(n,l)&&(u[l]=n[l]);if(r){s=r(n);for(var p=0;p<s.length;p++)o.call(n,s[p])&&(u[s[p]]=n[s[p]])}}return u}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0});var i=n(48);t.setStacks=(r=i.createActions({SET_STACKS:function(e,t){return{sessionId:e,stacks:t}},ADD_STACK:function(e,t,n,r){return{sessionId:e,field:t,x:n,y:r}},TOGGLE_DOCS:function(e,t){return{sessionId:e,activeTabIdx:t}},SET_DOCS_VISIBLE:function(e,t,n){return{sessionId:e,open:t,activeTabIdx:n}},CHANGE_WIDTH_DOCS:function(e,t){return{sessionId:e,width:t}},CHANGE_KEY_MOVE:function(e,t){return{sessionId:e,move:t}},SHOW_DOC_FOR_REFERENCE:function(e){return{reference:e}}})).setStacks,t.addStack=r.addStack,t.toggleDocs=r.toggleDocs,t.setDocsVisible=r.setDocsVisible,t.changeWidthDocs=r.changeWidthDocs,t.changeKeyMove=r.changeKeyMove,t.showDocForReference=r.showDocForReference},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(28),i=n(117),o=n(41);t.getSessionDocsState=r.createSelector([o.getSelectedWorkspace],(function(e){var t=e.sessions.selectedSessionId;return e.docs.get(t)||new i.DocsSession})),t.getSessionDocs=r.createSelector([t.getSessionDocsState],(function(e){return e.toJS()})),t.getDocsOpen=r.createSelector([t.getSessionDocsState],(function(e){return e.get("docsOpen")}))},function(e,t){const n=/[&<>"']/,r=/[&<>"']/g,i=/[<>"']|&(?!#?\w+;)/,o=/[<>"']|&(?!#?\w+;)/g,a={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},s=e=>a[e];const u=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function c(e){return e.replace(u,(e,t)=>"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):"")}const l=/(^|[^\[])\^/g;const p=/[^\w:]/g,f=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;const d={},h=/^[^:]+:\/*[^/]*$/,m=/^([^:]+:)[\s\S]*$/,g=/^([^:]+:\/*[^/]*)[\s\S]*$/;function y(e,t){d[" "+e]||(h.test(e)?d[" "+e]=e+"/":d[" "+e]=v(e,"/",!0));const n=-1===(e=d[" "+e]).indexOf(":");return"//"===t.substring(0,2)?n?t:e.replace(m,"$1")+t:"/"===t.charAt(0)?n?t:e.replace(g,"$1")+t:e+t}function v(e,t,n){const r=e.length;if(0===r)return"";let i=0;for(;i<r;){const o=e.charAt(r-i-1);if(o!==t||n){if(o===t||!n)break;i++}else i++}return e.substr(0,r-i)}e.exports={escape:function(e,t){if(t){if(n.test(e))return e.replace(r,s)}else if(i.test(e))return e.replace(o,s);return e},unescape:c,edit:function(e,t){e=e.source||e,t=t||"";const n={replace:(t,r)=>(r=(r=r.source||r).replace(l,"$1"),e=e.replace(t,r),n),getRegex:()=>new RegExp(e,t)};return n},cleanUrl:function(e,t,n){if(e){let e;try{e=decodeURIComponent(c(n)).replace(p,"").toLowerCase()}catch(e){return null}if(0===e.indexOf("javascript:")||0===e.indexOf("vbscript:")||0===e.indexOf("data:"))return null}t&&!f.test(n)&&(n=y(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(e){return null}return n},resolveUrl:y,noopTest:{exec:function(){}},merge:function(e){let t,n,r=1;for(;r<arguments.length;r++)for(n in t=arguments[r],t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},splitCells:function(e,t){const n=e.replace(/\|/g,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&"\\"===n[i];)r=!r;return r?"|":" |"}).split(/ \|/);let r=0;if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;r<n.length;r++)n[r]=n[r].trim().replace(/\\\|/g,"|");return n},rtrim:v,findClosingBracket:function(e,t){if(-1===e.indexOf(t[1]))return-1;const n=e.length;let r=0,i=0;for(;i<n;i++)if("\\"===e[i])i++;else if(e[i]===t[0])r++;else if(e[i]===t[1]&&(r--,r<0))return i;return-1},checkSanitizeDeprecation:function(e){e&&e.sanitize&&!e.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}}},function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e};Object.defineProperty(t,"__esModule",{value:!0});var a=n(3),s=n(59),u=n(30),c=n(20),l=n(417),p=n(51),f=n(168),d=n(73),h=n(74),m=n(32),g=n(28),y=n(11),v=function(e){function t(t){var n=e.call(this,t)||this;return n.onClick=function(){n.props.clickable&&n.props.addStack(n.props.sessionId,n.props.type,n.props.x,n.props.y)},n.setRef=function(e){n.ref=e},n.state={collapsed:!1},n}return i(t,e),t.prototype.shouldComponentUpdate=function(e,t){return this.props.type!==e.type||this.props.keyMove!==e.keyMove||this.props.isActive!==e.isActive||this.state.collapsed!==t.collapsed},t.prototype.componentDidMount=function(){this.updateSize()},t.prototype.componentDidUpdate=function(){this.updateSize()},t.prototype.updateSize=function(){if(this.ref){"function"==typeof this.props.onSetWidth&&this.props.onSetWidth(this.ref.scrollWidth);this.ref.scrollHeight>31&&!this.state.collapsed&&this.props.collapsable&&this.setState({collapsed:!0})}},t.prototype.render=function(){var e=this.props,t=e.type,n=e.clickable,r=e.className,i=e.beforeNode,o=e.afterNode,s=e.showParentName,u=e.isActive,f=c.isType(t),d=s&&t.parent?a.createElement("span",null,t.parent.name,".",a.createElement("b",null,t.name)):t.name;return a.createElement(w,{active:u,clickable:n,className:"doc-category-item"+(r||""),onClick:this.onClick,ref:this.setRef},i,i&&" ",!f&&a.createElement("span",null,a.createElement("span",{className:"field-name"},d),t.args&&t.args.length>0&&["(",a.createElement("span",{key:"args"},this.state.collapsed?a.createElement(S,null,"..."):t.args.map((function(e){return a.createElement(l.default,{key:e.name,arg:e})}))),")"],": "),a.createElement("span",{className:"type-name"},function e(t){if(t instanceof c.GraphQLNonNull)return a.createElement("span",null,e(t.ofType),"!");if(t instanceof c.GraphQLList)return a.createElement("span",null,"[",e(t.ofType),"]");return a.createElement("span",null,t.name)}(t.type||t)),void 0!==t.defaultValue?a.createElement(A,null," ","= ",a.createElement("span",null,""+JSON.stringify(t.defaultValue,null,2))):void 0,n&&a.createElement(k,null,a.createElement(p.Triangle,null)),o&&" ",o)},t.defaultProps={clickable:!0,collapsable:!1},t}(a.Component);var b=g.createSelector([function(e,t){var n=t.x,r=t.y,i=h.getSessionDocsState(e),o=m.getSelectedSessionIdFromRoot(e);if(i){var a=i.navStack.get(n);if(a){var s=a.get("x")===n&&a.get("y")===r;return{isActive:s,keyMove:i.keyMove,lastActive:s&&n===i.navStack.length-1,sessionId:o}}}return{isActive:!1,keyMove:!1,lastActive:!1,sessionId:o}}],(function(e){return e}));t.default=u.connect(b,(function(e){return s.bindActionCreators({addStack:d.addStack},e)}))(f.toJS(v));var E,x,D,C,w=y.styled("div")(E||(E=o(["\n position: relative;\n padding: 6px 16px;\n overflow: auto;\n font-size: 14px;\n transition: 0.1s background-color;\n background: ",";\n\n cursor: ",";\n\n &:hover {\n color: ",";\n background: #2a7ed3;\n .field-name,\n .type-name,\n .arg-name,\n span {\n color: "," !important;\n }\n }\n b {\n font-weight: 600;\n }\n"],["\n position: relative;\n padding: 6px 16px;\n overflow: auto;\n font-size: 14px;\n transition: 0.1s background-color;\n background: ",";\n\n cursor: ",";\n\n &:hover {\n color: ",";\n background: #2a7ed3;\n .field-name,\n .type-name,\n .arg-name,\n span {\n color: "," !important;\n }\n }\n b {\n font-weight: 600;\n }\n"])),(function(e){return e.active?e.theme.colours.black07:e.theme.colours.white}),(function(e){return e.clickable?"pointer":"select"}),(function(e){return e.theme.colours.white}),(function(e){return e.theme.colours.white})),S=y.styled.span(x||(x=o(["\n font-weight: 600;\n"],["\n font-weight: 600;\n"]))),k=y.styled.div(D||(D=o(["\n position: absolute;\n right: 10px;\n top: 50%;\n transform: translateY(-50%);\n"],["\n position: absolute;\n right: 10px;\n top: 50%;\n transform: translateY(-50%);\n"]))),A=y.styled.span(C||(C=o(["\n color: ",";\n span {\n color: #1f61a9;\n }\n"],["\n color: ",";\n span {\n color: #1f61a9;\n }\n"])),(function(e){return e.theme.colours.black30}))},function(e,t,n){"use strict";function r(e){return null==e}e.exports.isNothing=r,e.exports.isObject=function(e){return"object"==typeof e&&null!==e},e.exports.toArray=function(e){return Array.isArray(e)?e:r(e)?[]:[e]},e.exports.repeat=function(e,t){var n,r="";for(n=0;n<t;n+=1)r+=e;return r},e.exports.isNegativeZero=function(e){return 0===e&&Number.NEGATIVE_INFINITY===1/e},e.exports.extend=function(e,t){var n,r,i,o;if(t)for(n=0,r=(o=Object.keys(t)).length;n<r;n+=1)e[i=o[n]]=t[i];return e}},function(e,t,n){"use strict";var r=n(77),i=n(92),o=n(35);function a(e,t,n){var r=[];return e.include.forEach((function(e){n=a(e,t,n)})),e[t].forEach((function(e){n.forEach((function(t,n){t.tag===e.tag&&t.kind===e.kind&&r.push(n)})),n.push(e)})),n.filter((function(e,t){return-1===r.indexOf(t)}))}function s(e){this.include=e.include||[],this.implicit=e.implicit||[],this.explicit=e.explicit||[],this.implicit.forEach((function(e){if(e.loadKind&&"scalar"!==e.loadKind)throw new i("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")})),this.compiledImplicit=a(this,"implicit",[]),this.compiledExplicit=a(this,"explicit",[]),this.compiledTypeMap=function(){var e,t,n={scalar:{},sequence:{},mapping:{},fallback:{}};function r(e){n[e.kind][e.tag]=n.fallback[e.tag]=e}for(e=0,t=arguments.length;e<t;e+=1)arguments[e].forEach(r);return n}(this.compiledImplicit,this.compiledExplicit)}s.DEFAULT=null,s.create=function(){var e,t;switch(arguments.length){case 1:e=s.DEFAULT,t=arguments[0];break;case 2:e=arguments[0],t=arguments[1];break;default:throw new i("Wrong number of arguments for Schema.create function")}if(e=r.toArray(e),t=r.toArray(t),!e.every((function(e){return e instanceof s})))throw new i("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!t.every((function(e){return e instanceof o})))throw new i("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new s({include:e,explicit:t})},e.exports=s},function(e,t,n){"use strict";e.exports=n(264)},function(e,t,n){"use strict";n.d(t,"b",(function(){return m})),n.d(t,"a",(function(){return g}));var r=n(55),i=n(115),o=n(14),a=n(4),s=n(2),u=n(82),c=n(217),l=n(61),p=n(53),f=n(21),d=n(12),h=n(0);function m(e){if(Object(p.b)(e),e.__validationErrors)return e.__validationErrors;var t=new y(e);!function(e){var t=e.schema,n=t.getQueryType();if(n){if(!Object(h.N)(n)){var r;e.reportError("Query root type must be Object type, it cannot be ".concat(Object(a.a)(n),"."),null!==(r=v(t,"query"))&&void 0!==r?r:n.astNode)}}else e.reportError("Query root type must be provided.",t.astNode);var i,o=t.getMutationType();o&&!Object(h.N)(o)&&e.reportError("Mutation root type must be Object type if provided, it cannot be "+"".concat(Object(a.a)(o),"."),null!==(i=v(t,"mutation"))&&void 0!==i?i:o.astNode);var s,u=t.getSubscriptionType();u&&!Object(h.N)(u)&&e.reportError("Subscription root type must be Object type if provided, it cannot be "+"".concat(Object(a.a)(u),"."),null!==(s=v(t,"subscription"))&&void 0!==s?s:u.astNode)}(t),function(e){for(var t=0,n=e.schema.getDirectives();t<n.length;t++){var r=n[t];if(Object(f.h)(r)){b(e,r);for(var i=0,o=r.args;i<o.length;i++){var s=o[i];b(e,s),Object(h.G)(s.type)||e.reportError("The type of @".concat(r.name,"(").concat(s.name,":) must be Input Type ")+"but got: ".concat(Object(a.a)(s.type),"."),s.astNode)}}else e.reportError("Expected directive but got: ".concat(Object(a.a)(r),"."),null==r?void 0:r.astNode)}}(t),function(e){for(var t=function(e){var t=Object.create(null),n=[],r=Object.create(null);return function i(a){if(t[a.name])return;t[a.name]=!0,r[a.name]=n.length;for(var s=Object(o.a)(a.getFields()),u=0;u<s.length;u++){var c=s[u];if(Object(h.L)(c.type)&&Object(h.F)(c.type.ofType)){var l=c.type.ofType,p=r[l.name];if(n.push(c),void 0===p)i(l);else{var f=n.slice(p),d=f.map((function(e){return e.name})).join(".");e.reportError('Cannot reference Input Object "'.concat(l.name,'" within itself through a series of non-null fields: "').concat(d,'".'),f.map((function(e){return e.astNode})))}n.pop()}}r[a.name]=void 0}}(e),n=e.schema.getTypeMap(),r=0,i=Object(o.a)(n);r<i.length;r++){var s=i[r];Object(h.K)(s)?(Object(d.isIntrospectionType)(s)||b(e,s),Object(h.N)(s)||Object(h.H)(s)?(E(e,s),x(e,s)):Object(h.T)(s)?w(e,s):Object(h.E)(s)?S(e,s):Object(h.F)(s)&&(k(e,s),t(s))):e.reportError("Expected GraphQL named type but got: ".concat(Object(a.a)(s),"."),s.astNode)}}(t);var n=t.getErrors();return e.__validationErrors=n,n}function g(e){var t=m(e);if(0!==t.length)throw new Error(t.map((function(e){return e.message})).join("\n\n"))}var y=function(){function e(e){this._errors=[],this.schema=e}var t=e.prototype;return t.reportError=function(e,t){var n=Array.isArray(t)?t.filter(Boolean):t;this.addError(new s.a(e,n))},t.addError=function(e){this._errors.push(e)},t.getErrors=function(){return this._errors},e}();function v(e,t){for(var n=T(e,(function(e){return e.operationTypes})),r=0;r<n.length;r++){var i=n[r];if(i.operation===t)return i.type}}function b(e,t){var n=Object(c.b)(t.name);n&&e.addError(Object(u.a)(n,t.astNode))}function E(e,t){var n=Object(o.a)(t.getFields());0===n.length&&e.reportError("Type ".concat(t.name," must define one or more fields."),A(t));for(var r=0;r<n.length;r++){var i,s=n[r];if(b(e,s),!Object(h.O)(s.type))e.reportError("The type of ".concat(t.name,".").concat(s.name," must be Output Type ")+"but got: ".concat(Object(a.a)(s.type),"."),null===(i=s.astNode)||void 0===i?void 0:i.type);for(var u=0,c=s.args;u<c.length;u++){var l,p=c[u],f=p.name;if(b(e,p),!Object(h.G)(p.type))e.reportError("The type of ".concat(t.name,".").concat(s.name,"(").concat(f,":) must be Input ")+"Type but got: ".concat(Object(a.a)(p.type),"."),null===(l=p.astNode)||void 0===l?void 0:l.type)}}}function x(e,t){for(var n=Object.create(null),r=0,i=t.getInterfaces();r<i.length;r++){var o=i[r];Object(h.H)(o)?t!==o?n[o.name]?e.reportError("Type ".concat(t.name," can only implement ").concat(o.name," once."),_(t,o)):(n[o.name]=!0,C(e,t,o),D(e,t,o)):e.reportError("Type ".concat(t.name," cannot implement itself because it would create a circular reference."),_(t,o)):e.reportError("Type ".concat(Object(a.a)(t)," must only implement Interface types, ")+"it cannot implement ".concat(Object(a.a)(o),"."),_(t,o))}}function D(e,t,n){for(var i=t.getFields(),s=0,u=Object(o.a)(n.getFields());s<u.length;s++){var c=u[s],p=c.name,f=i[p];if(f){var d,m;if(!Object(l.c)(e.schema,f.type,c.type))e.reportError("Interface field ".concat(n.name,".").concat(p," expects type ")+"".concat(Object(a.a)(c.type)," but ").concat(t.name,".").concat(p," ")+"is type ".concat(Object(a.a)(f.type),"."),[null===(d=c.astNode)||void 0===d?void 0:d.type,null===(m=f.astNode)||void 0===m?void 0:m.type]);for(var g=function(i,o){var s,u,c=o[i],d=c.name,h=Object(r.a)(f.args,(function(e){return e.name===d}));if(!h)return e.reportError("Interface field argument ".concat(n.name,".").concat(p,"(").concat(d,":) expected but ").concat(t.name,".").concat(p," does not provide it."),[c.astNode,f.astNode]),"continue";Object(l.b)(c.type,h.type)||e.reportError("Interface field argument ".concat(n.name,".").concat(p,"(").concat(d,":) ")+"expects type ".concat(Object(a.a)(c.type)," but ")+"".concat(t.name,".").concat(p,"(").concat(d,":) is type ")+"".concat(Object(a.a)(h.type),"."),[null===(s=c.astNode)||void 0===s?void 0:s.type,null===(u=h.astNode)||void 0===u?void 0:u.type])},y=0,v=c.args;y<v.length;y++)g(y,v);for(var b=function(i,o){var a=o[i],s=a.name;!Object(r.a)(c.args,(function(e){return e.name===s}))&&Object(h.P)(a)&&e.reportError("Object field ".concat(t.name,".").concat(p," includes required argument ").concat(s," that is missing from the Interface field ").concat(n.name,".").concat(p,"."),[a.astNode,c.astNode])},E=0,x=f.args;E<x.length;E++)b(E,x)}else e.reportError("Interface field ".concat(n.name,".").concat(p," expected but ").concat(t.name," does not provide it."),[c.astNode].concat(A(t)))}}function C(e,t,n){for(var r=t.getInterfaces(),i=0,o=n.getInterfaces();i<o.length;i++){var a=o[i];-1===r.indexOf(a)&&e.reportError(a===t?"Type ".concat(t.name," cannot implement ").concat(n.name," because it would create a circular reference."):"Type ".concat(t.name," must implement ").concat(a.name," because it is implemented by ").concat(n.name,"."),[].concat(_(n,a),_(t,n)))}}function w(e,t){var n=t.getTypes();0===n.length&&e.reportError("Union type ".concat(t.name," must define one or more member types."),A(t));for(var r=Object.create(null),i=0;i<n.length;i++){var o=n[i];r[o.name]?e.reportError("Union type ".concat(t.name," can only include type ").concat(o.name," once."),O(t,o.name)):(r[o.name]=!0,Object(h.N)(o)||e.reportError("Union type ".concat(t.name," can only include Object types, ")+"it cannot include ".concat(Object(a.a)(o),"."),O(t,String(o))))}}function S(e,t){var n=t.getValues();0===n.length&&e.reportError("Enum type ".concat(t.name," must define one or more values."),A(t));for(var r=0;r<n.length;r++){var i=n[r],o=i.name;b(e,i),"true"!==o&&"false"!==o&&"null"!==o||e.reportError("Enum type ".concat(t.name," cannot include value: ").concat(o,"."),i.astNode)}}function k(e,t){var n=Object(o.a)(t.getFields());0===n.length&&e.reportError("Input Object type ".concat(t.name," must define one or more fields."),A(t));for(var r=0;r<n.length;r++){var i,s=n[r];if(b(e,s),!Object(h.G)(s.type))e.reportError("The type of ".concat(t.name,".").concat(s.name," must be Input Type ")+"but got: ".concat(Object(a.a)(s.type),"."),null===(i=s.astNode)||void 0===i?void 0:i.type)}}function A(e){var t=e.astNode,n=e.extensionASTNodes;return t?n?[t].concat(n):[t]:null!=n?n:[]}function T(e,t){return Object(i.a)(A(e),(function(e){var n;return null!==(n=t(e))&&void 0!==n?n:[]}))}function _(e,t){return T(e,(function(e){return e.interfaces})).filter((function(e){return e.name.value===t.name}))}function O(e,t){return T(e,(function(e){return e.types})).filter((function(e){return e.name.value===t}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(25);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e){if(null==e||"object"!==i(e))return!1;var t=e.length;return"number"==typeof t&&t>=0&&t%1==0||"function"==typeof e[r.b]}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(2);function i(e,t,n){var i;return Array.isArray(e.path)?e:new r.a(e.message,null!==(i=e.nodes)&&void 0!==i?i:t,e.source,e.positions,n,e)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(25),i=n(8);function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var a=function(){function e(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"GraphQL request",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{line:1,column:1};this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||Object(i.a)(0,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||Object(i.a)(0,"column in locationOffset is 1-indexed and must be positive.")}var t,n,a;return t=e,(n=[{key:r.c,get:function(){return"Source"}}])&&o(t.prototype,n),a&&o(t,a),e}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return u}));var r=n(44),i=n(24),o=n(5),a=n(52),s=function(){function e(e){var t=new i.b(o.a.SOF,0,0,0,0,null);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}var t=e.prototype;return t.advance=function(){return this.lastToken=this.token,this.token=this.lookahead()},t.lookahead=function(){var e=this.token;if(e.kind!==o.a.EOF)do{var t;e=null!==(t=e.next)&&void 0!==t?t:e.next=l(this,e)}while(e.kind===o.a.COMMENT);return e},e}();function u(e){return e===o.a.BANG||e===o.a.DOLLAR||e===o.a.AMP||e===o.a.PAREN_L||e===o.a.PAREN_R||e===o.a.SPREAD||e===o.a.COLON||e===o.a.EQUALS||e===o.a.AT||e===o.a.BRACKET_L||e===o.a.BRACKET_R||e===o.a.BRACE_L||e===o.a.PIPE||e===o.a.BRACE_R}function c(e){return isNaN(e)?o.a.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function l(e,t){var n=e.source,s=n.body,u=s.length,l=function(e,t,n){var r=e.length,i=t;for(;i<r;){var o=e.charCodeAt(i);if(9===o||32===o||44===o||65279===o)++i;else if(10===o)++i,++n.line,n.lineStart=i;else{if(13!==o)break;10===e.charCodeAt(i+1)?i+=2:++i,++n.line,n.lineStart=i}}return i}(s,t.end,e),d=e.line,h=1+l-e.lineStart;if(l>=u)return new i.b(o.a.EOF,u,u,d,h,t);var m=s.charCodeAt(l);switch(m){case 33:return new i.b(o.a.BANG,l,l+1,d,h,t);case 35:return function(e,t,n,r,a){var s,u=e.body,c=t;do{s=u.charCodeAt(++c)}while(!isNaN(s)&&(s>31||9===s));return new i.b(o.a.COMMENT,t,c,n,r,a,u.slice(t+1,c))}(n,l,d,h,t);case 36:return new i.b(o.a.DOLLAR,l,l+1,d,h,t);case 38:return new i.b(o.a.AMP,l,l+1,d,h,t);case 40:return new i.b(o.a.PAREN_L,l,l+1,d,h,t);case 41:return new i.b(o.a.PAREN_R,l,l+1,d,h,t);case 46:if(46===s.charCodeAt(l+1)&&46===s.charCodeAt(l+2))return new i.b(o.a.SPREAD,l,l+3,d,h,t);break;case 58:return new i.b(o.a.COLON,l,l+1,d,h,t);case 61:return new i.b(o.a.EQUALS,l,l+1,d,h,t);case 64:return new i.b(o.a.AT,l,l+1,d,h,t);case 91:return new i.b(o.a.BRACKET_L,l,l+1,d,h,t);case 93:return new i.b(o.a.BRACKET_R,l,l+1,d,h,t);case 123:return new i.b(o.a.BRACE_L,l,l+1,d,h,t);case 124:return new i.b(o.a.PIPE,l,l+1,d,h,t);case 125:return new i.b(o.a.BRACE_R,l,l+1,d,h,t);case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:return function(e,t,n,r,a){var s=e.body,u=s.length,c=t+1,l=0;for(;c!==u&&!isNaN(l=s.charCodeAt(c))&&(95===l||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122);)++c;return new i.b(o.a.NAME,t,c,n,r,a,s.slice(t,c))}(n,l,d,h,t);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return function(e,t,n,a,s,u){var l=e.body,f=n,d=t,h=!1;45===f&&(f=l.charCodeAt(++d));if(48===f){if((f=l.charCodeAt(++d))>=48&&f<=57)throw Object(r.a)(e,d,"Invalid number, unexpected digit after 0: ".concat(c(f),"."))}else d=p(e,d,f),f=l.charCodeAt(d);46===f&&(h=!0,f=l.charCodeAt(++d),d=p(e,d,f),f=l.charCodeAt(d));69!==f&&101!==f||(h=!0,43!==(f=l.charCodeAt(++d))&&45!==f||(f=l.charCodeAt(++d)),d=p(e,d,f),f=l.charCodeAt(d));if(46===f||function(e){return 95===e||e>=65&&e<=90||e>=97&&e<=122}(f))throw Object(r.a)(e,d,"Invalid number, expected digit but got: ".concat(c(f),"."));return new i.b(h?o.a.FLOAT:o.a.INT,t,d,a,s,u,l.slice(t,d))}(n,l,m,d,h,t);case 34:return 34===s.charCodeAt(l+1)&&34===s.charCodeAt(l+2)?function(e,t,n,s,u,l){var p=e.body,f=t+3,d=f,h=0,m="";for(;f<p.length&&!isNaN(h=p.charCodeAt(f));){if(34===h&&34===p.charCodeAt(f+1)&&34===p.charCodeAt(f+2))return m+=p.slice(d,f),new i.b(o.a.BLOCK_STRING,t,f+3,n,s,u,Object(a.a)(m));if(h<32&&9!==h&&10!==h&&13!==h)throw Object(r.a)(e,f,"Invalid character within String: ".concat(c(h),"."));10===h?(++f,++l.line,l.lineStart=f):13===h?(10===p.charCodeAt(f+1)?f+=2:++f,++l.line,l.lineStart=f):92===h&&34===p.charCodeAt(f+1)&&34===p.charCodeAt(f+2)&&34===p.charCodeAt(f+3)?(m+=p.slice(d,f)+'"""',d=f+=4):++f}throw Object(r.a)(e,f,"Unterminated string.")}(n,l,d,h,t,e):function(e,t,n,a,s){var u=e.body,l=t+1,p=l,d=0,h="";for(;l<u.length&&!isNaN(d=u.charCodeAt(l))&&10!==d&&13!==d;){if(34===d)return h+=u.slice(p,l),new i.b(o.a.STRING,t,l+1,n,a,s,h);if(d<32&&9!==d)throw Object(r.a)(e,l,"Invalid character within String: ".concat(c(d),"."));if(++l,92===d){switch(h+=u.slice(p,l-1),d=u.charCodeAt(l)){case 34:h+='"';break;case 47:h+="/";break;case 92:h+="\\";break;case 98:h+="\b";break;case 102:h+="\f";break;case 110:h+="\n";break;case 114:h+="\r";break;case 116:h+="\t";break;case 117:var m=(y=u.charCodeAt(l+1),v=u.charCodeAt(l+2),b=u.charCodeAt(l+3),E=u.charCodeAt(l+4),f(y)<<12|f(v)<<8|f(b)<<4|f(E));if(m<0){var g=u.slice(l+1,l+5);throw Object(r.a)(e,l,"Invalid character escape sequence: \\u".concat(g,"."))}h+=String.fromCharCode(m),l+=4;break;default:throw Object(r.a)(e,l,"Invalid character escape sequence: \\".concat(String.fromCharCode(d),"."))}++l,p=l}}var y,v,b,E;throw Object(r.a)(e,l,"Unterminated string.")}(n,l,d,h,t)}throw Object(r.a)(n,l,function(e){if(e<32&&9!==e&&10!==e&&13!==e)return"Cannot contain the invalid character ".concat(c(e),".");if(39===e)return"Unexpected single quote character ('), did you mean to use a double quote (\")?";return"Cannot parse the unexpected character ".concat(c(e),".")}(m))}function p(e,t,n){var i=e.body,o=t,a=n;if(a>=48&&a<=57){do{a=i.charCodeAt(++o)}while(a>=48&&a<=57);return o}throw Object(r.a)(e,o,"Invalid number, expected digit but got: ".concat(c(a),"."))}function f(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return f}));var r=n(55),i=n(1),o=n(24),a=n(26),s=n(0),u=n(12),c=n(33),l=function(){function e(e,t,n){this._schema=e,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=null!=t?t:p,n&&(Object(s.G)(n)&&this._inputTypeStack.push(n),Object(s.D)(n)&&this._parentTypeStack.push(n),Object(s.O)(n)&&this._typeStack.push(n))}var t=e.prototype;return t.getType=function(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]},t.getParentType=function(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]},t.getInputType=function(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]},t.getParentInputType=function(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]},t.getFieldDef=function(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]},t.getDefaultValue=function(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]},t.getDirective=function(){return this._directive},t.getArgument=function(){return this._argument},t.getEnumValue=function(){return this._enumValue},t.enter=function(e){var t=this._schema;switch(e.kind){case i.a.SELECTION_SET:var n=Object(s.A)(this.getType());this._parentTypeStack.push(Object(s.D)(n)?n:void 0);break;case i.a.FIELD:var o,a,u=this.getParentType();u&&(o=this._getFieldDef(t,u,e))&&(a=o.type),this._fieldDefStack.push(o),this._typeStack.push(Object(s.O)(a)?a:void 0);break;case i.a.DIRECTIVE:this._directive=t.getDirective(e.name.value);break;case i.a.OPERATION_DEFINITION:var l;switch(e.operation){case"query":l=t.getQueryType();break;case"mutation":l=t.getMutationType();break;case"subscription":l=t.getSubscriptionType()}this._typeStack.push(Object(s.N)(l)?l:void 0);break;case i.a.INLINE_FRAGMENT:case i.a.FRAGMENT_DEFINITION:var p=e.typeCondition,f=p?Object(c.a)(t,p):Object(s.A)(this.getType());this._typeStack.push(Object(s.O)(f)?f:void 0);break;case i.a.VARIABLE_DEFINITION:var d=Object(c.a)(t,e.type);this._inputTypeStack.push(Object(s.G)(d)?d:void 0);break;case i.a.ARGUMENT:var h,m,g,y=null!==(h=this.getDirective())&&void 0!==h?h:this.getFieldDef();y&&(m=Object(r.a)(y.args,(function(t){return t.name===e.name.value})))&&(g=m.type),this._argument=m,this._defaultValueStack.push(m?m.defaultValue:void 0),this._inputTypeStack.push(Object(s.G)(g)?g:void 0);break;case i.a.LIST:var v=Object(s.B)(this.getInputType()),b=Object(s.J)(v)?v.ofType:v;this._defaultValueStack.push(void 0),this._inputTypeStack.push(Object(s.G)(b)?b:void 0);break;case i.a.OBJECT_FIELD:var E,x,D=Object(s.A)(this.getInputType());Object(s.F)(D)&&(x=D.getFields()[e.name.value])&&(E=x.type),this._defaultValueStack.push(x?x.defaultValue:void 0),this._inputTypeStack.push(Object(s.G)(E)?E:void 0);break;case i.a.ENUM:var C,w=Object(s.A)(this.getInputType());Object(s.E)(w)&&(C=w.getValue(e.value)),this._enumValue=C}},t.leave=function(e){switch(e.kind){case i.a.SELECTION_SET:this._parentTypeStack.pop();break;case i.a.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case i.a.DIRECTIVE:this._directive=null;break;case i.a.OPERATION_DEFINITION:case i.a.INLINE_FRAGMENT:case i.a.FRAGMENT_DEFINITION:this._typeStack.pop();break;case i.a.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case i.a.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case i.a.LIST:case i.a.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case i.a.ENUM:this._enumValue=null}},e}();function p(e,t,n){var r=n.name.value;return r===u.SchemaMetaFieldDef.name&&e.getQueryType()===t?u.SchemaMetaFieldDef:r===u.TypeMetaFieldDef.name&&e.getQueryType()===t?u.TypeMetaFieldDef:r===u.TypeNameMetaFieldDef.name&&Object(s.D)(t)?u.TypeNameMetaFieldDef:Object(s.N)(t)||Object(s.H)(t)?t.getFields()[r]:void 0}function f(e,t){return{enter:function(n){e.enter(n);var r=Object(a.b)(t,n.kind,!1);if(r){var i=r.apply(t,arguments);return void 0!==i&&(e.leave(n),Object(o.c)(i)&&e.enter(i)),i}},leave:function(n){var r,i=Object(a.b)(t,n.kind,!0);return i&&(r=i.apply(t,arguments)),e.leave(n),r}}}},function(e,t,n){!function(t){"use strict";var n=0,r=Math.pow(36,4),i=function(e,t){var n="000000000"+e;return n.substr(n.length-t)},o=function(){return i((Math.random()*r<<0).toString(36),4)},a=function(){return n=n<r?n:0,++n-1},s=function(){var e=(new Date).getTime().toString(36),t=s.fingerprint(),n=o()+o();return"c"+e+i(a().toString(36),4)+t+n};s.slug=function(){var e,t=(new Date).getTime().toString(36),n=s.fingerprint().slice(0,1)+s.fingerprint().slice(-1),r=o().slice(-2);return e=a().toString(36).slice(-4),t.slice(-2)+e+n+r},s.globalCount=function(){var e=function(){var e,t=0;for(e in window)t++;return t}();return s.globalCount=function(){return e},e},s.fingerprint=function(){return i((navigator.mimeTypes.length+navigator.userAgent.length).toString(36)+s.globalCount().toString(36),4)},t.register?t.register("cuid",s):e.exports=s}(this.applitude||this)},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0});var o=n(296),a=n(297);t.safely=function(e){return function(){var t,n,r=[];for(t=0;t<arguments.length;t++)r[t]=arguments[t];return i(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,e.apply(void 0,r)];case 1:return t.sent(),[3,3];case 2:return n=t.sent(),console.error(n),[3,3];case 3:return[2]}}))}},t.prettify=function(e,t){return o.format(e,r(r({},t),{parser:"graphql",plugins:[a]}))},t.isIframe=function(){try{return window.self!==window.top}catch(e){return!0}}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var i=n(20);function o(e,t){return void 0===t&&(t=0),e.ofType&&t<5?o(e.ofType,t+1):e}function a(e,t){var n={fields:[],interfaces:[],args:[],implementations:[]},r=t.type||t,a=i.isType(r);if(r.ofType&&(r=o(r.ofType)),r.getFields){var s=r.getFields();n.fields=Object.keys(s).map((function(e){var n=s[e];return n.parent=t,n.path=t.path+"/"+e,n}))}return r instanceof i.GraphQLObjectType&&(n.interfaces=r.getInterfaces()),n.args=t.args?t.args:[],a&&r instanceof i.GraphQLInterfaceType&&(n.implementations=e.getPossibleTypes(r)),n}function s(e,t,n){var r=a(e,t),i=r.interfaces.indexOf(n);if(i>-1)return i;var o=r.fields.indexOf(n);if(o>-1)return r.interfaces.length+o;var s=r.args.indexOf(n);if(s>-1)return r.interfaces.length+r.fields.length+s;var u=r.implementations.indexOf(n);return u>-1?r.interfaces.length+r.fields.length+r.args.length+u:0}t.getNewStack=function(e,t,n){for(var r=n.getIn(["field","path"]),i=r.split("/"),a=null,u=0,c=null,l=-1,p=function(){var n=i.shift();if(0===u)a=e[n],l=Object.keys(e).indexOf(n);else{var r=a.args.find((function(e){return e.name===n}));c=a,r?a=r:(a.type.ofType&&(a=o(a.type.ofType)),a.type&&(a=a.type),a=a.getFields()[n]||a.getInterfaces().find((function(e){return e.name===n})))}c&&(l=s(t,c,a)),u++};i.length>0;)p();return a?(a.path=r,a.parent=c,n.merge({y:l,field:a})):null},t.getDeeperType=o,t.getRootMap=function(e){return r(r(r({},e.getQueryType().getFields()),e.getMutationType&&e.getMutationType()&&e.getMutationType().getFields()),e.getSubscriptionType&&e.getSubscriptionType()&&e.getSubscriptionType().getFields())},t.serializeRoot=function(e){var t={queries:[],mutations:[],subscriptions:[]},n=e.getQueryType().getFields();t.queries=Object.keys(n).map((function(e){var t=n[e];return t.path=e,t.parent=null,t}));var r=e.getMutationType&&e.getMutationType();if(r){var i=r.getFields();t.mutations=Object.keys(i).map((function(e){var t=i[e];return t.path=e,t.parent=null,t}))}window.ss=e;var o=e.getSubscriptionType&&e.getSubscriptionType();if(o){var a=o.getFields();t.subscriptions=Object.keys(a).map((function(e){var t=a[e];return t.path=e,t.parent=null,t}))}return t},t.getElementRoot=function(e,t){var n=0;return e.queries[t+n]?e.queries[t+n]:(n+=e.queries.length,e.mutations[t-n]?e.mutations[t-n]:(n+=e.mutations.length,e.subscriptions[t-n]?e.subscriptions[t-n]:void 0))},t.serialize=a,t.getElement=function(e,t){var n=0;return e.interfaces[t+n]?e.interfaces[t+n]:(n+=e.interfaces.length,e.fields[t-n]?e.fields[t-n]:(n+=e.fields.length,e.args[t-n]?e.args[t-n]:(n+=e.args.length,e.implementations[t-n]?e.implementations[t-n]:void 0)))},t.getElementIndex=s},function(e,t){function n(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,xhtml:!1}}e.exports={defaults:{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,xhtml:!1},getDefaults:n,changeDefaults:function(t){e.exports.defaults=t}}},function(e,t,n){!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),u=t.ch-1,c=o&&o.afterCursor;null==c&&(c=/(^| )cm-fat-cursor($| )/.test(e.getWrapperElement().className));var l=i(o),p=!c&&u>=0&&l.test(s.text.charAt(u))&&r[s.text.charAt(u)]||l.test(s.text.charAt(u+1))&&r[s.text.charAt(++u)];if(!p)return null;var f=">"==p.charAt(1)?1:-1;if(o&&o.strict&&f>0!=(u==t.ch))return null;var d=e.getTokenTypeAt(n(t.line,u+1)),h=a(e,n(t.line,u+(f>0?1:0)),f,d||null,o);return null==h?null:{from:n(t.line,u),to:h&&h.pos,match:h&&h.ch==p.charAt(0),forward:f>0}}function a(e,t,o,a,s){for(var u=s&&s.maxScanLineLength||1e4,c=s&&s.maxScanLines||1e3,l=[],p=i(s),f=o>0?Math.min(t.line+c,e.lastLine()+1):Math.max(e.firstLine()-1,t.line-c),d=t.line;d!=f;d+=o){var h=e.getLine(d);if(h){var m=o>0?0:h.length-1,g=o>0?h.length:-1;if(!(h.length>u))for(d==t.line&&(m=t.ch-(o<0?1:0));m!=g;m+=o){var y=h.charAt(m);if(p.test(y)&&(void 0===a||e.getTokenTypeAt(n(d,m+1))==a)){var v=r[y];if(v&&">"==v.charAt(1)==o>0)l.push(y);else{if(!l.length)return{pos:n(d,m),ch:y};l.pop()}}}}}return d-o!=(o>0?e.lastLine():e.firstLine())&&null}function s(e,r,i){for(var a=e.state.matchBrackets.maxHighlightLineLength||1e3,s=[],u=e.listSelections(),c=0;c<u.length;c++){var l=u[c].empty()&&o(e,u[c].head,i);if(l&&e.getLine(l.from.line).length<=a){var p=l.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";s.push(e.markText(l.from,n(l.from.line,l.from.ch+1),{className:p})),l.to&&e.getLine(l.to.line).length<=a&&s.push(e.markText(l.to,n(l.to.line,l.to.ch+1),{className:p}))}}if(s.length){t&&e.state.focused&&e.focus();var f=function(){e.operation((function(){for(var e=0;e<s.length;e++)s[e].clear()}))};if(!r)return f;setTimeout(f,800)}}function u(e){e.operation((function(){e.state.matchBrackets.currentlyHighlighted&&(e.state.matchBrackets.currentlyHighlighted(),e.state.matchBrackets.currentlyHighlighted=null),e.state.matchBrackets.currentlyHighlighted=s(e,!1,e.state.matchBrackets)}))}e.defineOption("matchBrackets",!1,(function(t,n,r){function i(e){e.state.matchBrackets&&e.state.matchBrackets.currentlyHighlighted&&(e.state.matchBrackets.currentlyHighlighted(),e.state.matchBrackets.currentlyHighlighted=null)}r&&r!=e.Init&&(t.off("cursorActivity",u),t.off("focus",u),t.off("blur",i),i(t)),n&&(t.state.matchBrackets="object"==typeof n?n:{},t.on("cursorActivity",u),t.on("focus",u),t.on("blur",i))})),e.defineExtension("matchBrackets",(function(){s(this,!0)})),e.defineExtension("findMatchingBracket",(function(e,t,n){return(n||"boolean"==typeof t)&&(n?(n.strict=t,t=n):t=t?{strict:!0}:null),o(this,e,t)})),e.defineExtension("scanForBracket",(function(e,t,n,r){return a(this,e,t,n,r)}))}(n(16))},function(e,t,n){!function(e){"use strict";e.registerHelper("fold","brace",(function(t,n){var r,i=n.line,o=t.getLine(i);function a(a){for(var s=n.ch,u=0;;){var c=s<=0?-1:o.lastIndexOf(a,s-1);if(-1!=c){if(1==u&&c<n.ch)break;if(r=t.getTokenTypeAt(e.Pos(i,c+1)),!/^(comment|string)/.test(r))return c+1;s=c-1}else{if(1==u)break;u=1,s=o.length}}}var s="{",u="}",c=a("{");if(null==c&&(s="[",u="]",c=a("[")),null!=c){var l,p,f=1,d=t.lastLine();e:for(var h=i;h<=d;++h)for(var m=t.getLine(h),g=h==i?c:0;;){var y=m.indexOf(s,g),v=m.indexOf(u,g);if(y<0&&(y=m.length),v<0&&(v=m.length),(g=Math.min(y,v))==m.length)break;if(t.getTokenTypeAt(e.Pos(h,g+1))==r)if(g==y)++f;else if(!--f){l=h,p=g;break e}++g}if(null!=l&&i!=l)return{from:e.Pos(i,c),to:e.Pos(l,p)}}})),e.registerHelper("fold","import",(function(t,n){function r(n){if(n<t.firstLine()||n>t.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 u=r(s.line+1);if(null==u)break;s=u.end}return{from:t.clipPos(e.Pos(o,a.startCh+1)),to:s}})),e.registerHelper("fold","include",(function(t,n){function r(n){if(n<t.firstLine()||n>t.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))}}))}(n(16))},function(e,t,n){"use strict";function r(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r.prototype.toString=function(e){var t=this.name+": ";return t+=this.reason||"(unknown reason)",!e&&this.mark&&(t+=" "+this.mark.toString()),t},e.exports=r},function(e,t,n){"use strict";var r=n(78);e.exports=new r({include:[n(209)],implicit:[n(504),n(505)],explicit:[n(506),n(511),n(512),n(513)]})},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.index<t;)i+=1,o=t+1-(n.index+n[0].length);return{line:i,column:o}}n.d(t,"a",(function(){return r}))},function(e,t,n){(function(e,r){var i;
/**
* @license
* Lodash <https://lodash.com/>
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
* Released under MIT license <https://lodash.com/license>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
*/(function(){var o="Expected a function",a="__lodash_placeholder__",s=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],u="[object Arguments]",c="[object Array]",l="[object Boolean]",p="[object Date]",f="[object Error]",d="[object Function]",h="[object GeneratorFunction]",m="[object Map]",g="[object Number]",y="[object Object]",v="[object RegExp]",b="[object Set]",E="[object String]",x="[object Symbol]",D="[object WeakMap]",C="[object ArrayBuffer]",w="[object DataView]",S="[object Float32Array]",k="[object Float64Array]",A="[object Int8Array]",T="[object Int16Array]",_="[object Int32Array]",O="[object Uint8Array]",F="[object Uint16Array]",N="[object Uint32Array]",I=/\b__p \+= '';/g,M=/\b(__p \+=) '' \+/g,j=/(__e\(.*?\)|\b__t\)) \+\n'';/g,L=/&(?:amp|lt|gt|quot|#39);/g,P=/[&<>"']/g,R=RegExp(L.source),B=RegExp(P.source),U=/<%-([\s\S]+?)%>/g,z=/<%([\s\S]+?)%>/g,V=/<%=([\s\S]+?)%>/g,q=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,H=/^\w*$/,W=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,G=/[\\^$.*+?()[\]{}|]/g,K=RegExp(G.source),J=/^\s+|\s+$/g,Q=/^\s+/,Y=/\s+$/,$=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,X=/\{\n\/\* \[wrapped with (.+)\] \*/,Z=/,? & /,ee=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,te=/\\(\\)?/g,ne=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,re=/\w*$/,ie=/^[-+]0x[0-9a-f]+$/i,oe=/^0b[01]+$/i,ae=/^\[object .+?Constructor\]$/,se=/^0o[0-7]+$/i,ue=/^(?:0|[1-9]\d*)$/,ce=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,le=/($^)/,pe=/['\n\r\u2028\u2029\\]/g,fe="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",de="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",he="[\\ud800-\\udfff]",me="["+de+"]",ge="["+fe+"]",ye="\\d+",ve="[\\u2700-\\u27bf]",be="[a-z\\xdf-\\xf6\\xf8-\\xff]",Ee="[^\\ud800-\\udfff"+de+ye+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",xe="\\ud83c[\\udffb-\\udfff]",De="[^\\ud800-\\udfff]",Ce="(?:\\ud83c[\\udde6-\\uddff]){2}",we="[\\ud800-\\udbff][\\udc00-\\udfff]",Se="[A-Z\\xc0-\\xd6\\xd8-\\xde]",ke="(?:"+be+"|"+Ee+")",Ae="(?:"+Se+"|"+Ee+")",Te="(?:"+ge+"|"+xe+")"+"?",_e="[\\ufe0e\\ufe0f]?"+Te+("(?:\\u200d(?:"+[De,Ce,we].join("|")+")[\\ufe0e\\ufe0f]?"+Te+")*"),Oe="(?:"+[ve,Ce,we].join("|")+")"+_e,Fe="(?:"+[De+ge+"?",ge,Ce,we,he].join("|")+")",Ne=RegExp("['’]","g"),Ie=RegExp(ge,"g"),Me=RegExp(xe+"(?="+xe+")|"+Fe+_e,"g"),je=RegExp([Se+"?"+be+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[me,Se,"$"].join("|")+")",Ae+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[me,Se+ke,"$"].join("|")+")",Se+"?"+ke+"+(?:['’](?:d|ll|m|re|s|t|ve))?",Se+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ye,Oe].join("|"),"g"),Le=RegExp("[\\u200d\\ud800-\\udfff"+fe+"\\ufe0e\\ufe0f]"),Pe=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Re=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Be=-1,Ue={};Ue[S]=Ue[k]=Ue[A]=Ue[T]=Ue[_]=Ue[O]=Ue["[object Uint8ClampedArray]"]=Ue[F]=Ue[N]=!0,Ue[u]=Ue[c]=Ue[C]=Ue[l]=Ue[w]=Ue[p]=Ue[f]=Ue[d]=Ue[m]=Ue[g]=Ue[y]=Ue[v]=Ue[b]=Ue[E]=Ue[D]=!1;var ze={};ze[u]=ze[c]=ze[C]=ze[w]=ze[l]=ze[p]=ze[S]=ze[k]=ze[A]=ze[T]=ze[_]=ze[m]=ze[g]=ze[y]=ze[v]=ze[b]=ze[E]=ze[x]=ze[O]=ze["[object Uint8ClampedArray]"]=ze[F]=ze[N]=!0,ze[f]=ze[d]=ze[D]=!1;var Ve={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},qe=parseFloat,He=parseInt,We="object"==typeof e&&e&&e.Object===Object&&e,Ge="object"==typeof self&&self&&self.Object===Object&&self,Ke=We||Ge||Function("return this")(),Je=t&&!t.nodeType&&t,Qe=Je&&"object"==typeof r&&r&&!r.nodeType&&r,Ye=Qe&&Qe.exports===Je,$e=Ye&&We.process,Xe=function(){try{var e=Qe&&Qe.require&&Qe.require("util").types;return e||$e&&$e.binding&&$e.binding("util")}catch(e){}}(),Ze=Xe&&Xe.isArrayBuffer,et=Xe&&Xe.isDate,tt=Xe&&Xe.isMap,nt=Xe&&Xe.isRegExp,rt=Xe&&Xe.isSet,it=Xe&&Xe.isTypedArray;function ot(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function at(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i<o;){var a=e[i];t(r,a,n(a),e)}return r}function st(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function ut(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function ct(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function lt(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}function pt(e,t){return!!(null==e?0:e.length)&&xt(e,t,0)>-1}function ft(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function dt(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function ht(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function mt(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}function gt(e,t,n,r){var i=null==e?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function yt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var vt=St("length");function bt(e,t,n){var r;return n(e,(function(e,n,i){if(t(e,n,i))return r=n,!1})),r}function Et(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}function xt(e,t,n){return t==t?function(e,t,n){var r=n-1,i=e.length;for(;++r<i;)if(e[r]===t)return r;return-1}(e,t,n):Et(e,Ct,n)}function Dt(e,t,n,r){for(var i=n-1,o=e.length;++i<o;)if(r(e[i],t))return i;return-1}function Ct(e){return e!=e}function wt(e,t){var n=null==e?0:e.length;return n?Tt(e,t)/n:NaN}function St(e){return function(t){return null==t?void 0:t[e]}}function kt(e){return function(t){return null==e?void 0:e[t]}}function At(e,t,n,r,i){return i(e,(function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)})),n}function Tt(e,t){for(var n,r=-1,i=e.length;++r<i;){var o=t(e[r]);void 0!==o&&(n=void 0===n?o:n+o)}return n}function _t(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Ot(e){return function(t){return e(t)}}function Ft(e,t){return dt(t,(function(t){return e[t]}))}function Nt(e,t){return e.has(t)}function It(e,t){for(var n=-1,r=e.length;++n<r&&xt(t,e[n],0)>-1;);return n}function Mt(e,t){for(var n=e.length;n--&&xt(t,e[n],0)>-1;);return n}function jt(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var Lt=kt({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),Pt=kt({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function Rt(e){return"\\"+Ve[e]}function Bt(e){return Le.test(e)}function Ut(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function zt(e,t){return function(n){return e(t(n))}}function Vt(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var s=e[n];s!==t&&s!==a||(e[n]=a,o[i++]=n)}return o}function qt(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function Ht(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function Wt(e){return Bt(e)?function(e){var t=Me.lastIndex=0;for(;Me.test(e);)++t;return t}(e):vt(e)}function Gt(e){return Bt(e)?function(e){return e.match(Me)||[]}(e):function(e){return e.split("")}(e)}var Kt=kt({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var Jt=function e(t){var n,r=(t=null==t?Ke:Jt.defaults(Ke.Object(),t,Jt.pick(Ke,Re))).Array,i=t.Date,fe=t.Error,de=t.Function,he=t.Math,me=t.Object,ge=t.RegExp,ye=t.String,ve=t.TypeError,be=r.prototype,Ee=de.prototype,xe=me.prototype,De=t["__core-js_shared__"],Ce=Ee.toString,we=xe.hasOwnProperty,Se=0,ke=(n=/[^.]+$/.exec(De&&De.keys&&De.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Ae=xe.toString,Te=Ce.call(me),_e=Ke._,Oe=ge("^"+Ce.call(we).replace(G,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Fe=Ye?t.Buffer:void 0,Me=t.Symbol,Le=t.Uint8Array,Ve=Fe?Fe.allocUnsafe:void 0,We=zt(me.getPrototypeOf,me),Ge=me.create,Je=xe.propertyIsEnumerable,Qe=be.splice,$e=Me?Me.isConcatSpreadable:void 0,Xe=Me?Me.iterator:void 0,vt=Me?Me.toStringTag:void 0,kt=function(){try{var e=Zi(me,"defineProperty");return e({},"",{}),e}catch(e){}}(),Qt=t.clearTimeout!==Ke.clearTimeout&&t.clearTimeout,Yt=i&&i.now!==Ke.Date.now&&i.now,$t=t.setTimeout!==Ke.setTimeout&&t.setTimeout,Xt=he.ceil,Zt=he.floor,en=me.getOwnPropertySymbols,tn=Fe?Fe.isBuffer:void 0,nn=t.isFinite,rn=be.join,on=zt(me.keys,me),an=he.max,sn=he.min,un=i.now,cn=t.parseInt,ln=he.random,pn=be.reverse,fn=Zi(t,"DataView"),dn=Zi(t,"Map"),hn=Zi(t,"Promise"),mn=Zi(t,"Set"),gn=Zi(t,"WeakMap"),yn=Zi(me,"create"),vn=gn&&new gn,bn={},En=Ao(fn),xn=Ao(dn),Dn=Ao(hn),Cn=Ao(mn),wn=Ao(gn),Sn=Me?Me.prototype:void 0,kn=Sn?Sn.valueOf:void 0,An=Sn?Sn.toString:void 0;function Tn(e){if(Ha(e)&&!Ia(e)&&!(e instanceof Nn)){if(e instanceof Fn)return e;if(we.call(e,"__wrapped__"))return To(e)}return new Fn(e)}var _n=function(){function e(){}return function(t){if(!qa(t))return{};if(Ge)return Ge(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function On(){}function Fn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}function Nn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function In(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Mn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function jn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ln(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new jn;++t<n;)this.add(e[t])}function Pn(e){var t=this.__data__=new Mn(e);this.size=t.size}function Rn(e,t){var n=Ia(e),r=!n&&Na(e),i=!n&&!r&&Pa(e),o=!n&&!r&&!i&&Xa(e),a=n||r||i||o,s=a?_t(e.length,ye):[],u=s.length;for(var c in e)!t&&!we.call(e,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||ao(c,u))||s.push(c);return s}function Bn(e){var t=e.length;return t?e[Lr(0,t-1)]:void 0}function Un(e,t){return wo(yi(e),Qn(t,0,e.length))}function zn(e){return wo(yi(e))}function Vn(e,t,n){(void 0!==n&&!_a(e[t],n)||void 0===n&&!(t in e))&&Kn(e,t,n)}function qn(e,t,n){var r=e[t];we.call(e,t)&&_a(r,n)&&(void 0!==n||t in e)||Kn(e,t,n)}function Hn(e,t){for(var n=e.length;n--;)if(_a(e[n][0],t))return n;return-1}function Wn(e,t,n,r){return er(e,(function(e,i,o){t(r,e,n(e),o)})),r}function Gn(e,t){return e&&vi(t,Es(t),e)}function Kn(e,t,n){"__proto__"==t&&kt?kt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Jn(e,t){for(var n=-1,i=t.length,o=r(i),a=null==e;++n<i;)o[n]=a?void 0:ms(e,t[n]);return o}function Qn(e,t,n){return e==e&&(void 0!==n&&(e=e<=n?e:n),void 0!==t&&(e=e>=t?e:t)),e}function Yn(e,t,n,r,i,o){var a,s=1&t,c=2&t,f=4&t;if(n&&(a=i?n(e,r,i,o):n(e)),void 0!==a)return a;if(!qa(e))return e;var D=Ia(e);if(D){if(a=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&we.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!s)return yi(e,a)}else{var I=no(e),M=I==d||I==h;if(Pa(e))return pi(e,s);if(I==y||I==u||M&&!i){if(a=c||M?{}:io(e),!s)return c?function(e,t){return vi(e,to(e),t)}(e,function(e,t){return e&&vi(t,xs(t),e)}(a,e)):function(e,t){return vi(e,eo(e),t)}(e,Gn(a,e))}else{if(!ze[I])return i?e:{};a=function(e,t,n){var r=e.constructor;switch(t){case C:return fi(e);case l:case p:return new r(+e);case w:return function(e,t){var n=t?fi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case S:case k:case A:case T:case _:case O:case"[object Uint8ClampedArray]":case F:case N:return di(e,n);case m:return new r;case g:case E:return new r(e);case v:return function(e){var t=new e.constructor(e.source,re.exec(e));return t.lastIndex=e.lastIndex,t}(e);case b:return new r;case x:return i=e,kn?me(kn.call(i)):{}}var i}(e,I,s)}}o||(o=new Pn);var j=o.get(e);if(j)return j;o.set(e,a),Qa(e)?e.forEach((function(r){a.add(Yn(r,t,n,r,e,o))})):Wa(e)&&e.forEach((function(r,i){a.set(i,Yn(r,t,n,i,e,o))}));var L=D?void 0:(f?c?Gi:Wi:c?xs:Es)(e);return st(L||e,(function(r,i){L&&(r=e[i=r]),qn(a,i,Yn(r,t,n,i,e,o))})),a}function $n(e,t,n){var r=n.length;if(null==e)return!r;for(e=me(e);r--;){var i=n[r],o=t[i],a=e[i];if(void 0===a&&!(i in e)||!o(a))return!1}return!0}function Xn(e,t,n){if("function"!=typeof e)throw new ve(o);return Eo((function(){e.apply(void 0,n)}),t)}function Zn(e,t,n,r){var i=-1,o=pt,a=!0,s=e.length,u=[],c=t.length;if(!s)return u;n&&(t=dt(t,Ot(n))),r?(o=ft,a=!1):t.length>=200&&(o=Nt,a=!1,t=new Ln(t));e:for(;++i<s;){var l=e[i],p=null==n?l:n(l);if(l=r||0!==l?l:0,a&&p==p){for(var f=c;f--;)if(t[f]===p)continue e;u.push(l)}else o(t,p,r)||u.push(l)}return u}Tn.templateSettings={escape:U,evaluate:z,interpolate:V,variable:"",imports:{_:Tn}},Tn.prototype=On.prototype,Tn.prototype.constructor=Tn,Fn.prototype=_n(On.prototype),Fn.prototype.constructor=Fn,Nn.prototype=_n(On.prototype),Nn.prototype.constructor=Nn,In.prototype.clear=function(){this.__data__=yn?yn(null):{},this.size=0},In.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},In.prototype.get=function(e){var t=this.__data__;if(yn){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return we.call(t,e)?t[e]:void 0},In.prototype.has=function(e){var t=this.__data__;return yn?void 0!==t[e]:we.call(t,e)},In.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=yn&&void 0===t?"__lodash_hash_undefined__":t,this},Mn.prototype.clear=function(){this.__data__=[],this.size=0},Mn.prototype.delete=function(e){var t=this.__data__,n=Hn(t,e);return!(n<0)&&(n==t.length-1?t.pop():Qe.call(t,n,1),--this.size,!0)},Mn.prototype.get=function(e){var t=this.__data__,n=Hn(t,e);return n<0?void 0:t[n][1]},Mn.prototype.has=function(e){return Hn(this.__data__,e)>-1},Mn.prototype.set=function(e,t){var n=this.__data__,r=Hn(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},jn.prototype.clear=function(){this.size=0,this.__data__={hash:new In,map:new(dn||Mn),string:new In}},jn.prototype.delete=function(e){var t=$i(this,e).delete(e);return this.size-=t?1:0,t},jn.prototype.get=function(e){return $i(this,e).get(e)},jn.prototype.has=function(e){return $i(this,e).has(e)},jn.prototype.set=function(e,t){var n=$i(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Ln.prototype.add=Ln.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Ln.prototype.has=function(e){return this.__data__.has(e)},Pn.prototype.clear=function(){this.__data__=new Mn,this.size=0},Pn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Pn.prototype.get=function(e){return this.__data__.get(e)},Pn.prototype.has=function(e){return this.__data__.has(e)},Pn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Mn){var r=n.__data__;if(!dn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new jn(r)}return n.set(e,t),this.size=n.size,this};var er=xi(ur),tr=xi(cr,!0);function nr(e,t){var n=!0;return er(e,(function(e,r,i){return n=!!t(e,r,i)})),n}function rr(e,t,n){for(var r=-1,i=e.length;++r<i;){var o=e[r],a=t(o);if(null!=a&&(void 0===s?a==a&&!$a(a):n(a,s)))var s=a,u=o}return u}function ir(e,t){var n=[];return er(e,(function(e,r,i){t(e,r,i)&&n.push(e)})),n}function or(e,t,n,r,i){var o=-1,a=e.length;for(n||(n=oo),i||(i=[]);++o<a;){var s=e[o];t>0&&n(s)?t>1?or(s,t-1,n,r,i):ht(i,s):r||(i[i.length]=s)}return i}var ar=Di(),sr=Di(!0);function ur(e,t){return e&&ar(e,t,Es)}function cr(e,t){return e&&sr(e,t,Es)}function lr(e,t){return lt(t,(function(t){return Ua(e[t])}))}function pr(e,t){for(var n=0,r=(t=si(t,e)).length;null!=e&&n<r;)e=e[ko(t[n++])];return n&&n==r?e:void 0}function fr(e,t,n){var r=t(e);return Ia(e)?r:ht(r,n(e))}function dr(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":vt&&vt in me(e)?function(e){var t=we.call(e,vt),n=e[vt];try{e[vt]=void 0;var r=!0}catch(e){}var i=Ae.call(e);r&&(t?e[vt]=n:delete e[vt]);return i}(e):function(e){return Ae.call(e)}(e)}function hr(e,t){return e>t}function mr(e,t){return null!=e&&we.call(e,t)}function gr(e,t){return null!=e&&t in me(e)}function yr(e,t,n){for(var i=n?ft:pt,o=e[0].length,a=e.length,s=a,u=r(a),c=1/0,l=[];s--;){var p=e[s];s&&t&&(p=dt(p,Ot(t))),c=sn(p.length,c),u[s]=!n&&(t||o>=120&&p.length>=120)?new Ln(s&&p):void 0}p=e[0];var f=-1,d=u[0];e:for(;++f<o&&l.length<c;){var h=p[f],m=t?t(h):h;if(h=n||0!==h?h:0,!(d?Nt(d,m):i(l,m,n))){for(s=a;--s;){var g=u[s];if(!(g?Nt(g,m):i(e[s],m,n)))continue e}d&&d.push(m),l.push(h)}}return l}function vr(e,t,n){var r=null==(e=go(e,t=si(t,e)))?e:e[ko(Bo(t))];return null==r?void 0:ot(r,e,n)}function br(e){return Ha(e)&&dr(e)==u}function Er(e,t,n,r,i){return e===t||(null==e||null==t||!Ha(e)&&!Ha(t)?e!=e&&t!=t:function(e,t,n,r,i,o){var a=Ia(e),s=Ia(t),d=a?c:no(e),h=s?c:no(t),D=(d=d==u?y:d)==y,S=(h=h==u?y:h)==y,k=d==h;if(k&&Pa(e)){if(!Pa(t))return!1;a=!0,D=!1}if(k&&!D)return o||(o=new Pn),a||Xa(e)?qi(e,t,n,r,i,o):function(e,t,n,r,i,o,a){switch(n){case w:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case C:return!(e.byteLength!=t.byteLength||!o(new Le(e),new Le(t)));case l:case p:case g:return _a(+e,+t);case f:return e.name==t.name&&e.message==t.message;case v:case E:return e==t+"";case m:var s=Ut;case b:var u=1&r;if(s||(s=qt),e.size!=t.size&&!u)return!1;var c=a.get(e);if(c)return c==t;r|=2,a.set(e,t);var d=qi(s(e),s(t),r,i,o,a);return a.delete(e),d;case x:if(kn)return kn.call(e)==kn.call(t)}return!1}(e,t,d,n,r,i,o);if(!(1&n)){var A=D&&we.call(e,"__wrapped__"),T=S&&we.call(t,"__wrapped__");if(A||T){var _=A?e.value():e,O=T?t.value():t;return o||(o=new Pn),i(_,O,n,r,o)}}if(!k)return!1;return o||(o=new Pn),function(e,t,n,r,i,o){var a=1&n,s=Wi(e),u=s.length,c=Wi(t).length;if(u!=c&&!a)return!1;var l=u;for(;l--;){var p=s[l];if(!(a?p in t:we.call(t,p)))return!1}var f=o.get(e);if(f&&o.get(t))return f==t;var d=!0;o.set(e,t),o.set(t,e);var h=a;for(;++l<u;){p=s[l];var m=e[p],g=t[p];if(r)var y=a?r(g,m,p,t,e,o):r(m,g,p,e,t,o);if(!(void 0===y?m===g||i(m,g,n,r,o):y)){d=!1;break}h||(h="constructor"==p)}if(d&&!h){var v=e.constructor,b=t.constructor;v==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof v&&v instanceof v&&"function"==typeof b&&b instanceof b||(d=!1)}return o.delete(e),o.delete(t),d}(e,t,n,r,i,o)}(e,t,n,r,Er,i))}function xr(e,t,n,r){var i=n.length,o=i,a=!r;if(null==e)return!o;for(e=me(e);i--;){var s=n[i];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<o;){var u=(s=n[i])[0],c=e[u],l=s[1];if(a&&s[2]){if(void 0===c&&!(u in e))return!1}else{var p=new Pn;if(r)var f=r(c,l,u,e,t,p);if(!(void 0===f?Er(l,c,3,r,p):f))return!1}}return!0}function Dr(e){return!(!qa(e)||(t=e,ke&&ke in t))&&(Ua(e)?Oe:ae).test(Ao(e));var t}function Cr(e){return"function"==typeof e?e:null==e?Gs:"object"==typeof e?Ia(e)?_r(e[0],e[1]):Tr(e):tu(e)}function wr(e){if(!po(e))return on(e);var t=[];for(var n in me(e))we.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Sr(e){if(!qa(e))return function(e){var t=[];if(null!=e)for(var n in me(e))t.push(n);return t}(e);var t=po(e),n=[];for(var r in e)("constructor"!=r||!t&&we.call(e,r))&&n.push(r);return n}function kr(e,t){return e<t}function Ar(e,t){var n=-1,i=ja(e)?r(e.length):[];return er(e,(function(e,r,o){i[++n]=t(e,r,o)})),i}function Tr(e){var t=Xi(e);return 1==t.length&&t[0][2]?ho(t[0][0],t[0][1]):function(n){return n===e||xr(n,e,t)}}function _r(e,t){return uo(e)&&fo(t)?ho(ko(e),t):function(n){var r=ms(n,e);return void 0===r&&r===t?gs(n,e):Er(t,r,3)}}function Or(e,t,n,r,i){e!==t&&ar(t,(function(o,a){if(i||(i=new Pn),qa(o))!function(e,t,n,r,i,o,a){var s=vo(e,n),u=vo(t,n),c=a.get(u);if(c)return void Vn(e,n,c);var l=o?o(s,u,n+"",e,t,a):void 0,p=void 0===l;if(p){var f=Ia(u),d=!f&&Pa(u),h=!f&&!d&&Xa(u);l=u,f||d||h?Ia(s)?l=s:La(s)?l=yi(s):d?(p=!1,l=pi(u,!0)):h?(p=!1,l=di(u,!0)):l=[]:Ka(u)||Na(u)?(l=s,Na(s)?l=as(s):qa(s)&&!Ua(s)||(l=io(u))):p=!1}p&&(a.set(u,l),i(l,u,r,o,a),a.delete(u));Vn(e,n,l)}(e,t,a,n,Or,r,i);else{var s=r?r(vo(e,a),o,a+"",e,t,i):void 0;void 0===s&&(s=o),Vn(e,a,s)}}),xs)}function Fr(e,t){var n=e.length;if(n)return ao(t+=t<0?n:0,n)?e[t]:void 0}function Nr(e,t,n){var r=-1;return t=dt(t.length?t:[Gs],Ot(Yi())),function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(Ar(e,(function(e,n,i){return{criteria:dt(t,(function(t){return t(e)})),index:++r,value:e}})),(function(e,t){return function(e,t,n){var r=-1,i=e.criteria,o=t.criteria,a=i.length,s=n.length;for(;++r<a;){var u=hi(i[r],o[r]);if(u){if(r>=s)return u;var c=n[r];return u*("desc"==c?-1:1)}}return e.index-t.index}(e,t,n)}))}function Ir(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var a=t[r],s=pr(e,a);n(s,a)&&zr(o,si(a,e),s)}return o}function Mr(e,t,n,r){var i=r?Dt:xt,o=-1,a=t.length,s=e;for(e===t&&(t=yi(t)),n&&(s=dt(e,Ot(n)));++o<a;)for(var u=0,c=t[o],l=n?n(c):c;(u=i(s,l,u,r))>-1;)s!==e&&Qe.call(s,u,1),Qe.call(e,u,1);return e}function jr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==o){var o=i;ao(i)?Qe.call(e,i,1):Zr(e,i)}}return e}function Lr(e,t){return e+Zt(ln()*(t-e+1))}function Pr(e,t){var n="";if(!e||t<1||t>9007199254740991)return n;do{t%2&&(n+=e),(t=Zt(t/2))&&(e+=e)}while(t);return n}function Rr(e,t){return xo(mo(e,t,Gs),e+"")}function Br(e){return Bn(_s(e))}function Ur(e,t){var n=_s(e);return wo(n,Qn(t,0,n.length))}function zr(e,t,n,r){if(!qa(e))return e;for(var i=-1,o=(t=si(t,e)).length,a=o-1,s=e;null!=s&&++i<o;){var u=ko(t[i]),c=n;if(i!=a){var l=s[u];void 0===(c=r?r(l,u,s):void 0)&&(c=qa(l)?l:ao(t[i+1])?[]:{})}qn(s,u,c),s=s[u]}return e}var Vr=vn?function(e,t){return vn.set(e,t),e}:Gs,qr=kt?function(e,t){return kt(e,"toString",{configurable:!0,enumerable:!1,value:qs(t),writable:!0})}:Gs;function Hr(e){return wo(_s(e))}function Wr(e,t,n){var i=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var a=r(o);++i<o;)a[i]=e[i+t];return a}function Gr(e,t){var n;return er(e,(function(e,r,i){return!(n=t(e,r,i))})),!!n}function Kr(e,t,n){var r=0,i=null==e?r:e.length;if("number"==typeof t&&t==t&&i<=2147483647){for(;r<i;){var o=r+i>>>1,a=e[o];null!==a&&!$a(a)&&(n?a<=t:a<t)?r=o+1:i=o}return i}return Jr(e,t,Gs,n)}function Jr(e,t,n,r){t=n(t);for(var i=0,o=null==e?0:e.length,a=t!=t,s=null===t,u=$a(t),c=void 0===t;i<o;){var l=Zt((i+o)/2),p=n(e[l]),f=void 0!==p,d=null===p,h=p==p,m=$a(p);if(a)var g=r||h;else g=c?h&&(r||f):s?h&&f&&(r||!d):u?h&&f&&!d&&(r||!m):!d&&!m&&(r?p<=t:p<t);g?i=l+1:o=l}return sn(o,4294967294)}function Qr(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n],s=t?t(a):a;if(!n||!_a(s,u)){var u=s;o[i++]=0===a?0:a}}return o}function Yr(e){return"number"==typeof e?e:$a(e)?NaN:+e}function $r(e){if("string"==typeof e)return e;if(Ia(e))return dt(e,$r)+"";if($a(e))return An?An.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Xr(e,t,n){var r=-1,i=pt,o=e.length,a=!0,s=[],u=s;if(n)a=!1,i=ft;else if(o>=200){var c=t?null:Pi(e);if(c)return qt(c);a=!1,i=Nt,u=new Ln}else u=t?[]:s;e:for(;++r<o;){var l=e[r],p=t?t(l):l;if(l=n||0!==l?l:0,a&&p==p){for(var f=u.length;f--;)if(u[f]===p)continue e;t&&u.push(p),s.push(l)}else i(u,p,n)||(u!==s&&u.push(p),s.push(l))}return s}function Zr(e,t){return null==(e=go(e,t=si(t,e)))||delete e[ko(Bo(t))]}function ei(e,t,n,r){return zr(e,t,n(pr(e,t)),r)}function ti(e,t,n,r){for(var i=e.length,o=r?i:-1;(r?o--:++o<i)&&t(e[o],o,e););return n?Wr(e,r?0:o,r?o+1:i):Wr(e,r?o+1:0,r?i:o)}function ni(e,t){var n=e;return n instanceof Nn&&(n=n.value()),mt(t,(function(e,t){return t.func.apply(t.thisArg,ht([e],t.args))}),n)}function ri(e,t,n){var i=e.length;if(i<2)return i?Xr(e[0]):[];for(var o=-1,a=r(i);++o<i;)for(var s=e[o],u=-1;++u<i;)u!=o&&(a[o]=Zn(a[o]||s,e[u],t,n));return Xr(or(a,1),t,n)}function ii(e,t,n){for(var r=-1,i=e.length,o=t.length,a={};++r<i;){var s=r<o?t[r]:void 0;n(a,e[r],s)}return a}function oi(e){return La(e)?e:[]}function ai(e){return"function"==typeof e?e:Gs}function si(e,t){return Ia(e)?e:uo(e,t)?[e]:So(ss(e))}var ui=Rr;function ci(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:Wr(e,t,n)}var li=Qt||function(e){return Ke.clearTimeout(e)};function pi(e,t){if(t)return e.slice();var n=e.length,r=Ve?Ve(n):new e.constructor(n);return e.copy(r),r}function fi(e){var t=new e.constructor(e.byteLength);return new Le(t).set(new Le(e)),t}function di(e,t){var n=t?fi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function hi(e,t){if(e!==t){var n=void 0!==e,r=null===e,i=e==e,o=$a(e),a=void 0!==t,s=null===t,u=t==t,c=$a(t);if(!s&&!c&&!o&&e>t||o&&a&&u&&!s&&!c||r&&a&&u||!n&&u||!i)return 1;if(!r&&!o&&!c&&e<t||c&&n&&i&&!r&&!o||s&&n&&i||!a&&i||!u)return-1}return 0}function mi(e,t,n,i){for(var o=-1,a=e.length,s=n.length,u=-1,c=t.length,l=an(a-s,0),p=r(c+l),f=!i;++u<c;)p[u]=t[u];for(;++o<s;)(f||o<a)&&(p[n[o]]=e[o]);for(;l--;)p[u++]=e[o++];return p}function gi(e,t,n,i){for(var o=-1,a=e.length,s=-1,u=n.length,c=-1,l=t.length,p=an(a-u,0),f=r(p+l),d=!i;++o<p;)f[o]=e[o];for(var h=o;++c<l;)f[h+c]=t[c];for(;++s<u;)(d||o<a)&&(f[h+n[s]]=e[o++]);return f}function yi(e,t){var n=-1,i=e.length;for(t||(t=r(i));++n<i;)t[n]=e[n];return t}function vi(e,t,n,r){var i=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var s=t[o],u=r?r(n[s],e[s],s,n,e):void 0;void 0===u&&(u=e[s]),i?Kn(n,s,u):qn(n,s,u)}return n}function bi(e,t){return function(n,r){var i=Ia(n)?at:Wn,o=t?t():{};return i(n,e,Yi(r,2),o)}}function Ei(e){return Rr((function(t,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(o=e.length>3&&"function"==typeof o?(i--,o):void 0,a&&so(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),t=me(t);++r<i;){var s=n[r];s&&e(t,s,r,o)}return t}))}function xi(e,t){return function(n,r){if(null==n)return n;if(!ja(n))return e(n,r);for(var i=n.length,o=t?i:-1,a=me(n);(t?o--:++o<i)&&!1!==r(a[o],o,a););return n}}function Di(e){return function(t,n,r){for(var i=-1,o=me(t),a=r(t),s=a.length;s--;){var u=a[e?s:++i];if(!1===n(o[u],u,o))break}return t}}function Ci(e){return function(t){var n=Bt(t=ss(t))?Gt(t):void 0,r=n?n[0]:t.charAt(0),i=n?ci(n,1).join(""):t.slice(1);return r[e]()+i}}function wi(e){return function(t){return mt(Us(Ns(t).replace(Ne,"")),e,"")}}function Si(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=_n(e.prototype),r=e.apply(n,t);return qa(r)?r:n}}function ki(e){return function(t,n,r){var i=me(t);if(!ja(t)){var o=Yi(n,3);t=Es(t),n=function(e){return o(i[e],e,i)}}var a=e(t,n,r);return a>-1?i[o?t[a]:a]:void 0}}function Ai(e){return Hi((function(t){var n=t.length,r=n,i=Fn.prototype.thru;for(e&&t.reverse();r--;){var a=t[r];if("function"!=typeof a)throw new ve(o);if(i&&!s&&"wrapper"==Ji(a))var s=new Fn([],!0)}for(r=s?r:n;++r<n;){var u=Ji(a=t[r]),c="wrapper"==u?Ki(a):void 0;s=c&&co(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?s[Ji(c[0])].apply(s,c[3]):1==a.length&&co(a)?s[u]():s.thru(a)}return function(){var e=arguments,r=e[0];if(s&&1==e.length&&Ia(r))return s.plant(r).value();for(var i=0,o=n?t[i].apply(this,e):r;++i<n;)o=t[i].call(this,o);return o}}))}function Ti(e,t,n,i,o,a,s,u,c,l){var p=128&t,f=1&t,d=2&t,h=24&t,m=512&t,g=d?void 0:Si(e);return function y(){for(var v=arguments.length,b=r(v),E=v;E--;)b[E]=arguments[E];if(h)var x=Qi(y),D=jt(b,x);if(i&&(b=mi(b,i,o,h)),a&&(b=gi(b,a,s,h)),v-=D,h&&v<l){var C=Vt(b,x);return ji(e,t,Ti,y.placeholder,n,b,C,u,c,l-v)}var w=f?n:this,S=d?w[e]:e;return v=b.length,u?b=yo(b,u):m&&v>1&&b.reverse(),p&&c<v&&(b.length=c),this&&this!==Ke&&this instanceof y&&(S=g||Si(S)),S.apply(w,b)}}function _i(e,t){return function(n,r){return function(e,t,n,r){return ur(e,(function(e,i,o){t(r,n(e),i,o)})),r}(n,e,t(r),{})}}function Oi(e,t){return function(n,r){var i;if(void 0===n&&void 0===r)return t;if(void 0!==n&&(i=n),void 0!==r){if(void 0===i)return r;"string"==typeof n||"string"==typeof r?(n=$r(n),r=$r(r)):(n=Yr(n),r=Yr(r)),i=e(n,r)}return i}}function Fi(e){return Hi((function(t){return t=dt(t,Ot(Yi())),Rr((function(n){var r=this;return e(t,(function(e){return ot(e,r,n)}))}))}))}function Ni(e,t){var n=(t=void 0===t?" ":$r(t)).length;if(n<2)return n?Pr(t,e):t;var r=Pr(t,Xt(e/Wt(t)));return Bt(t)?ci(Gt(r),0,e).join(""):r.slice(0,e)}function Ii(e){return function(t,n,i){return i&&"number"!=typeof i&&so(t,n,i)&&(n=i=void 0),t=ns(t),void 0===n?(n=t,t=0):n=ns(n),function(e,t,n,i){for(var o=-1,a=an(Xt((t-e)/(n||1)),0),s=r(a);a--;)s[i?a:++o]=e,e+=n;return s}(t,n,i=void 0===i?t<n?1:-1:ns(i),e)}}function Mi(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=os(t),n=os(n)),e(t,n)}}function ji(e,t,n,r,i,o,a,s,u,c){var l=8&t;t|=l?32:64,4&(t&=~(l?64:32))||(t&=-4);var p=[e,t,i,l?o:void 0,l?a:void 0,l?void 0:o,l?void 0:a,s,u,c],f=n.apply(void 0,p);return co(e)&&bo(f,p),f.placeholder=r,Do(f,e,t)}function Li(e){var t=he[e];return function(e,n){if(e=os(e),(n=null==n?0:sn(rs(n),292))&&nn(e)){var r=(ss(e)+"e").split("e");return+((r=(ss(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Pi=mn&&1/qt(new mn([,-0]))[1]==1/0?function(e){return new mn(e)}:$s;function Ri(e){return function(t){var n=no(t);return n==m?Ut(t):n==b?Ht(t):function(e,t){return dt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Bi(e,t,n,i,s,u,c,l){var p=2&t;if(!p&&"function"!=typeof e)throw new ve(o);var f=i?i.length:0;if(f||(t&=-97,i=s=void 0),c=void 0===c?c:an(rs(c),0),l=void 0===l?l:rs(l),f-=s?s.length:0,64&t){var d=i,h=s;i=s=void 0}var m=p?void 0:Ki(e),g=[e,t,n,i,s,d,h,u,c,l];if(m&&function(e,t){var n=e[1],r=t[1],i=n|r,o=i<131,s=128==r&&8==n||128==r&&256==n&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!o&&!s)return e;1&r&&(e[2]=t[2],i|=1&n?0:4);var u=t[3];if(u){var c=e[3];e[3]=c?mi(c,u,t[4]):u,e[4]=c?Vt(e[3],a):t[4]}(u=t[5])&&(c=e[5],e[5]=c?gi(c,u,t[6]):u,e[6]=c?Vt(e[5],a):t[6]);(u=t[7])&&(e[7]=u);128&r&&(e[8]=null==e[8]?t[8]:sn(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=i}(g,m),e=g[0],t=g[1],n=g[2],i=g[3],s=g[4],!(l=g[9]=void 0===g[9]?p?0:e.length:an(g[9]-f,0))&&24&t&&(t&=-25),t&&1!=t)y=8==t||16==t?function(e,t,n){var i=Si(e);return function o(){for(var a=arguments.length,s=r(a),u=a,c=Qi(o);u--;)s[u]=arguments[u];var l=a<3&&s[0]!==c&&s[a-1]!==c?[]:Vt(s,c);if((a-=l.length)<n)return ji(e,t,Ti,o.placeholder,void 0,s,l,void 0,void 0,n-a);var p=this&&this!==Ke&&this instanceof o?i:e;return ot(p,this,s)}}(e,t,l):32!=t&&33!=t||s.length?Ti.apply(void 0,g):function(e,t,n,i){var o=1&t,a=Si(e);return function t(){for(var s=-1,u=arguments.length,c=-1,l=i.length,p=r(l+u),f=this&&this!==Ke&&this instanceof t?a:e;++c<l;)p[c]=i[c];for(;u--;)p[c++]=arguments[++s];return ot(f,o?n:this,p)}}(e,t,n,i);else var y=function(e,t,n){var r=1&t,i=Si(e);return function t(){var o=this&&this!==Ke&&this instanceof t?i:e;return o.apply(r?n:this,arguments)}}(e,t,n);return Do((m?Vr:bo)(y,g),e,t)}function Ui(e,t,n,r){return void 0===e||_a(e,xe[n])&&!we.call(r,n)?t:e}function zi(e,t,n,r,i,o){return qa(e)&&qa(t)&&(o.set(t,e),Or(e,t,void 0,zi,o),o.delete(t)),e}function Vi(e){return Ka(e)?void 0:e}function qi(e,t,n,r,i,o){var a=1&n,s=e.length,u=t.length;if(s!=u&&!(a&&u>s))return!1;var c=o.get(e);if(c&&o.get(t))return c==t;var l=-1,p=!0,f=2&n?new Ln:void 0;for(o.set(e,t),o.set(t,e);++l<s;){var d=e[l],h=t[l];if(r)var m=a?r(h,d,l,t,e,o):r(d,h,l,e,t,o);if(void 0!==m){if(m)continue;p=!1;break}if(f){if(!yt(t,(function(e,t){if(!Nt(f,t)&&(d===e||i(d,e,n,r,o)))return f.push(t)}))){p=!1;break}}else if(d!==h&&!i(d,h,n,r,o)){p=!1;break}}return o.delete(e),o.delete(t),p}function Hi(e){return xo(mo(e,void 0,Mo),e+"")}function Wi(e){return fr(e,Es,eo)}function Gi(e){return fr(e,xs,to)}var Ki=vn?function(e){return vn.get(e)}:$s;function Ji(e){for(var t=e.name+"",n=bn[t],r=we.call(bn,t)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==e)return i.name}return t}function Qi(e){return(we.call(Tn,"placeholder")?Tn:e).placeholder}function Yi(){var e=Tn.iteratee||Ks;return e=e===Ks?Cr:e,arguments.length?e(arguments[0],arguments[1]):e}function $i(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function Xi(e){for(var t=Es(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,fo(i)]}return t}function Zi(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Dr(n)?n:void 0}var eo=en?function(e){return null==e?[]:(e=me(e),lt(en(e),(function(t){return Je.call(e,t)})))}:iu,to=en?function(e){for(var t=[];e;)ht(t,eo(e)),e=We(e);return t}:iu,no=dr;function ro(e,t,n){for(var r=-1,i=(t=si(t,e)).length,o=!1;++r<i;){var a=ko(t[r]);if(!(o=null!=e&&n(e,a)))break;e=e[a]}return o||++r!=i?o:!!(i=null==e?0:e.length)&&Va(i)&&ao(a,i)&&(Ia(e)||Na(e))}function io(e){return"function"!=typeof e.constructor||po(e)?{}:_n(We(e))}function oo(e){return Ia(e)||Na(e)||!!($e&&e&&e[$e])}function ao(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&ue.test(e))&&e>-1&&e%1==0&&e<t}function so(e,t,n){if(!qa(n))return!1;var r=typeof t;return!!("number"==r?ja(n)&&ao(t,n.length):"string"==r&&t in n)&&_a(n[t],e)}function uo(e,t){if(Ia(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!$a(e))||(H.test(e)||!q.test(e)||null!=t&&e in me(t))}function co(e){var t=Ji(e),n=Tn[t];if("function"!=typeof n||!(t in Nn.prototype))return!1;if(e===n)return!0;var r=Ki(n);return!!r&&e===r[0]}(fn&&no(new fn(new ArrayBuffer(1)))!=w||dn&&no(new dn)!=m||hn&&"[object Promise]"!=no(hn.resolve())||mn&&no(new mn)!=b||gn&&no(new gn)!=D)&&(no=function(e){var t=dr(e),n=t==y?e.constructor:void 0,r=n?Ao(n):"";if(r)switch(r){case En:return w;case xn:return m;case Dn:return"[object Promise]";case Cn:return b;case wn:return D}return t});var lo=De?Ua:ou;function po(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||xe)}function fo(e){return e==e&&!qa(e)}function ho(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in me(n)))}}function mo(e,t,n){return t=an(void 0===t?e.length-1:t,0),function(){for(var i=arguments,o=-1,a=an(i.length-t,0),s=r(a);++o<a;)s[o]=i[t+o];o=-1;for(var u=r(t+1);++o<t;)u[o]=i[o];return u[t]=n(s),ot(e,this,u)}}function go(e,t){return t.length<2?e:pr(e,Wr(t,0,-1))}function yo(e,t){for(var n=e.length,r=sn(t.length,n),i=yi(e);r--;){var o=t[r];e[r]=ao(o,n)?i[o]:void 0}return e}function vo(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var bo=Co(Vr),Eo=$t||function(e,t){return Ke.setTimeout(e,t)},xo=Co(qr);function Do(e,t,n){var r=t+"";return xo(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace($,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return st(s,(function(n){var r="_."+n[0];t&n[1]&&!pt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(X);return t?t[1].split(Z):[]}(r),n)))}function Co(e){var t=0,n=0;return function(){var r=un(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function wo(e,t){var n=-1,r=e.length,i=r-1;for(t=void 0===t?r:t;++n<t;){var o=Lr(n,i),a=e[o];e[o]=e[n],e[n]=a}return e.length=t,e}var So=function(e){var t=Ca(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(W,(function(e,n,r,i){t.push(r?i.replace(te,"$1"):n||e)})),t}));function ko(e){if("string"==typeof e||$a(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Ao(e){if(null!=e){try{return Ce.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function To(e){if(e instanceof Nn)return e.clone();var t=new Fn(e.__wrapped__,e.__chain__);return t.__actions__=yi(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var _o=Rr((function(e,t){return La(e)?Zn(e,or(t,1,La,!0)):[]})),Oo=Rr((function(e,t){var n=Bo(t);return La(n)&&(n=void 0),La(e)?Zn(e,or(t,1,La,!0),Yi(n,2)):[]})),Fo=Rr((function(e,t){var n=Bo(t);return La(n)&&(n=void 0),La(e)?Zn(e,or(t,1,La,!0),void 0,n):[]}));function No(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:rs(n);return i<0&&(i=an(r+i,0)),Et(e,Yi(t,3),i)}function Io(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r-1;return void 0!==n&&(i=rs(n),i=n<0?an(r+i,0):sn(i,r-1)),Et(e,Yi(t,3),i,!0)}function Mo(e){return(null==e?0:e.length)?or(e,1):[]}function jo(e){return e&&e.length?e[0]:void 0}var Lo=Rr((function(e){var t=dt(e,oi);return t.length&&t[0]===e[0]?yr(t):[]})),Po=Rr((function(e){var t=Bo(e),n=dt(e,oi);return t===Bo(n)?t=void 0:n.pop(),n.length&&n[0]===e[0]?yr(n,Yi(t,2)):[]})),Ro=Rr((function(e){var t=Bo(e),n=dt(e,oi);return(t="function"==typeof t?t:void 0)&&n.pop(),n.length&&n[0]===e[0]?yr(n,void 0,t):[]}));function Bo(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}var Uo=Rr(zo);function zo(e,t){return e&&e.length&&t&&t.length?Mr(e,t):e}var Vo=Hi((function(e,t){var n=null==e?0:e.length,r=Jn(e,t);return jr(e,dt(t,(function(e){return ao(e,n)?+e:e})).sort(hi)),r}));function qo(e){return null==e?e:pn.call(e)}var Ho=Rr((function(e){return Xr(or(e,1,La,!0))})),Wo=Rr((function(e){var t=Bo(e);return La(t)&&(t=void 0),Xr(or(e,1,La,!0),Yi(t,2))})),Go=Rr((function(e){var t=Bo(e);return t="function"==typeof t?t:void 0,Xr(or(e,1,La,!0),void 0,t)}));function Ko(e){if(!e||!e.length)return[];var t=0;return e=lt(e,(function(e){if(La(e))return t=an(e.length,t),!0})),_t(t,(function(t){return dt(e,St(t))}))}function Jo(e,t){if(!e||!e.length)return[];var n=Ko(e);return null==t?n:dt(n,(function(e){return ot(t,void 0,e)}))}var Qo=Rr((function(e,t){return La(e)?Zn(e,t):[]})),Yo=Rr((function(e){return ri(lt(e,La))})),$o=Rr((function(e){var t=Bo(e);return La(t)&&(t=void 0),ri(lt(e,La),Yi(t,2))})),Xo=Rr((function(e){var t=Bo(e);return t="function"==typeof t?t:void 0,ri(lt(e,La),void 0,t)})),Zo=Rr(Ko);var ea=Rr((function(e){var t=e.length,n=t>1?e[t-1]:void 0;return n="function"==typeof n?(e.pop(),n):void 0,Jo(e,n)}));function ta(e){var t=Tn(e);return t.__chain__=!0,t}function na(e,t){return t(e)}var ra=Hi((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return Jn(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Nn&&ao(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:na,args:[i],thisArg:void 0}),new Fn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(void 0),e}))):this.thru(i)}));var ia=bi((function(e,t,n){we.call(e,n)?++e[n]:Kn(e,n,1)}));var oa=ki(No),aa=ki(Io);function sa(e,t){return(Ia(e)?st:er)(e,Yi(t,3))}function ua(e,t){return(Ia(e)?ut:tr)(e,Yi(t,3))}var ca=bi((function(e,t,n){we.call(e,n)?e[n].push(t):Kn(e,n,[t])}));var la=Rr((function(e,t,n){var i=-1,o="function"==typeof t,a=ja(e)?r(e.length):[];return er(e,(function(e){a[++i]=o?ot(t,e,n):vr(e,t,n)})),a})),pa=bi((function(e,t,n){Kn(e,n,t)}));function fa(e,t){return(Ia(e)?dt:Ar)(e,Yi(t,3))}var da=bi((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var ha=Rr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&so(e,t[0],t[1])?t=[]:n>2&&so(t[0],t[1],t[2])&&(t=[t[0]]),Nr(e,or(t,1),[])})),ma=Yt||function(){return Ke.Date.now()};function ga(e,t,n){return t=n?void 0:t,Bi(e,128,void 0,void 0,void 0,void 0,t=e&&null==t?e.length:t)}function ya(e,t){var n;if("function"!=typeof t)throw new ve(o);return e=rs(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}var va=Rr((function(e,t,n){var r=1;if(n.length){var i=Vt(n,Qi(va));r|=32}return Bi(e,r,t,n,i)})),ba=Rr((function(e,t,n){var r=3;if(n.length){var i=Vt(n,Qi(ba));r|=32}return Bi(t,r,e,n,i)}));function Ea(e,t,n){var r,i,a,s,u,c,l=0,p=!1,f=!1,d=!0;if("function"!=typeof e)throw new ve(o);function h(t){var n=r,o=i;return r=i=void 0,l=t,s=e.apply(o,n)}function m(e){return l=e,u=Eo(y,t),p?h(e):s}function g(e){var n=e-c;return void 0===c||n>=t||n<0||f&&e-l>=a}function y(){var e=ma();if(g(e))return v(e);u=Eo(y,function(e){var n=t-(e-c);return f?sn(n,a-(e-l)):n}(e))}function v(e){return u=void 0,d&&r?h(e):(r=i=void 0,s)}function b(){var e=ma(),n=g(e);if(r=arguments,i=this,c=e,n){if(void 0===u)return m(c);if(f)return li(u),u=Eo(y,t),h(c)}return void 0===u&&(u=Eo(y,t)),s}return t=os(t)||0,qa(n)&&(p=!!n.leading,a=(f="maxWait"in n)?an(os(n.maxWait)||0,t):a,d="trailing"in n?!!n.trailing:d),b.cancel=function(){void 0!==u&&li(u),l=0,r=c=i=u=void 0},b.flush=function(){return void 0===u?s:v(ma())},b}var xa=Rr((function(e,t){return Xn(e,1,t)})),Da=Rr((function(e,t,n){return Xn(e,os(t)||0,n)}));function Ca(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new ve(o);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Ca.Cache||jn),n}function wa(e){if("function"!=typeof e)throw new ve(o);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Ca.Cache=jn;var Sa=ui((function(e,t){var n=(t=1==t.length&&Ia(t[0])?dt(t[0],Ot(Yi())):dt(or(t,1),Ot(Yi()))).length;return Rr((function(r){for(var i=-1,o=sn(r.length,n);++i<o;)r[i]=t[i].call(this,r[i]);return ot(e,this,r)}))})),ka=Rr((function(e,t){return Bi(e,32,void 0,t,Vt(t,Qi(ka)))})),Aa=Rr((function(e,t){return Bi(e,64,void 0,t,Vt(t,Qi(Aa)))})),Ta=Hi((function(e,t){return Bi(e,256,void 0,void 0,void 0,t)}));function _a(e,t){return e===t||e!=e&&t!=t}var Oa=Mi(hr),Fa=Mi((function(e,t){return e>=t})),Na=br(function(){return arguments}())?br:function(e){return Ha(e)&&we.call(e,"callee")&&!Je.call(e,"callee")},Ia=r.isArray,Ma=Ze?Ot(Ze):function(e){return Ha(e)&&dr(e)==C};function ja(e){return null!=e&&Va(e.length)&&!Ua(e)}function La(e){return Ha(e)&&ja(e)}var Pa=tn||ou,Ra=et?Ot(et):function(e){return Ha(e)&&dr(e)==p};function Ba(e){if(!Ha(e))return!1;var t=dr(e);return t==f||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!Ka(e)}function Ua(e){if(!qa(e))return!1;var t=dr(e);return t==d||t==h||"[object AsyncFunction]"==t||"[object Proxy]"==t}function za(e){return"number"==typeof e&&e==rs(e)}function Va(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function qa(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ha(e){return null!=e&&"object"==typeof e}var Wa=tt?Ot(tt):function(e){return Ha(e)&&no(e)==m};function Ga(e){return"number"==typeof e||Ha(e)&&dr(e)==g}function Ka(e){if(!Ha(e)||dr(e)!=y)return!1;var t=We(e);if(null===t)return!0;var n=we.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Ce.call(n)==Te}var Ja=nt?Ot(nt):function(e){return Ha(e)&&dr(e)==v};var Qa=rt?Ot(rt):function(e){return Ha(e)&&no(e)==b};function Ya(e){return"string"==typeof e||!Ia(e)&&Ha(e)&&dr(e)==E}function $a(e){return"symbol"==typeof e||Ha(e)&&dr(e)==x}var Xa=it?Ot(it):function(e){return Ha(e)&&Va(e.length)&&!!Ue[dr(e)]};var Za=Mi(kr),es=Mi((function(e,t){return e<=t}));function ts(e){if(!e)return[];if(ja(e))return Ya(e)?Gt(e):yi(e);if(Xe&&e[Xe])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Xe]());var t=no(e);return(t==m?Ut:t==b?qt:_s)(e)}function ns(e){return e?(e=os(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function rs(e){var t=ns(e),n=t%1;return t==t?n?t-n:t:0}function is(e){return e?Qn(rs(e),0,4294967295):0}function os(e){if("number"==typeof e)return e;if($a(e))return NaN;if(qa(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=qa(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(J,"");var n=oe.test(e);return n||se.test(e)?He(e.slice(2),n?2:8):ie.test(e)?NaN:+e}function as(e){return vi(e,xs(e))}function ss(e){return null==e?"":$r(e)}var us=Ei((function(e,t){if(po(t)||ja(t))vi(t,Es(t),e);else for(var n in t)we.call(t,n)&&qn(e,n,t[n])})),cs=Ei((function(e,t){vi(t,xs(t),e)})),ls=Ei((function(e,t,n,r){vi(t,xs(t),e,r)})),ps=Ei((function(e,t,n,r){vi(t,Es(t),e,r)})),fs=Hi(Jn);var ds=Rr((function(e,t){e=me(e);var n=-1,r=t.length,i=r>2?t[2]:void 0;for(i&&so(t[0],t[1],i)&&(r=1);++n<r;)for(var o=t[n],a=xs(o),s=-1,u=a.length;++s<u;){var c=a[s],l=e[c];(void 0===l||_a(l,xe[c])&&!we.call(e,c))&&(e[c]=o[c])}return e})),hs=Rr((function(e){return e.push(void 0,zi),ot(Cs,void 0,e)}));function ms(e,t,n){var r=null==e?void 0:pr(e,t);return void 0===r?n:r}function gs(e,t){return null!=e&&ro(e,t,gr)}var ys=_i((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ae.call(t)),e[t]=n}),qs(Gs)),vs=_i((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ae.call(t)),we.call(e,t)?e[t].push(n):e[t]=[n]}),Yi),bs=Rr(vr);function Es(e){return ja(e)?Rn(e):wr(e)}function xs(e){return ja(e)?Rn(e,!0):Sr(e)}var Ds=Ei((function(e,t,n){Or(e,t,n)})),Cs=Ei((function(e,t,n,r){Or(e,t,n,r)})),ws=Hi((function(e,t){var n={};if(null==e)return n;var r=!1;t=dt(t,(function(t){return t=si(t,e),r||(r=t.length>1),t})),vi(e,Gi(e),n),r&&(n=Yn(n,7,Vi));for(var i=t.length;i--;)Zr(n,t[i]);return n}));var Ss=Hi((function(e,t){return null==e?{}:function(e,t){return Ir(e,t,(function(t,n){return gs(e,n)}))}(e,t)}));function ks(e,t){if(null==e)return{};var n=dt(Gi(e),(function(e){return[e]}));return t=Yi(t),Ir(e,n,(function(e,n){return t(e,n[0])}))}var As=Ri(Es),Ts=Ri(xs);function _s(e){return null==e?[]:Ft(e,Es(e))}var Os=wi((function(e,t,n){return t=t.toLowerCase(),e+(n?Fs(t):t)}));function Fs(e){return Bs(ss(e).toLowerCase())}function Ns(e){return(e=ss(e))&&e.replace(ce,Lt).replace(Ie,"")}var Is=wi((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Ms=wi((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),js=Ci("toLowerCase");var Ls=wi((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Ps=wi((function(e,t,n){return e+(n?" ":"")+Bs(t)}));var Rs=wi((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Bs=Ci("toUpperCase");function Us(e,t,n){return e=ss(e),void 0===(t=n?void 0:t)?function(e){return Pe.test(e)}(e)?function(e){return e.match(je)||[]}(e):function(e){return e.match(ee)||[]}(e):e.match(t)||[]}var zs=Rr((function(e,t){try{return ot(e,void 0,t)}catch(e){return Ba(e)?e:new fe(e)}})),Vs=Hi((function(e,t){return st(t,(function(t){t=ko(t),Kn(e,t,va(e[t],e))})),e}));function qs(e){return function(){return e}}var Hs=Ai(),Ws=Ai(!0);function Gs(e){return e}function Ks(e){return Cr("function"==typeof e?e:Yn(e,1))}var Js=Rr((function(e,t){return function(n){return vr(n,e,t)}})),Qs=Rr((function(e,t){return function(n){return vr(e,n,t)}}));function Ys(e,t,n){var r=Es(t),i=lr(t,r);null!=n||qa(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=lr(t,Es(t)));var o=!(qa(n)&&"chain"in n&&!n.chain),a=Ua(e);return st(i,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__),i=n.__actions__=yi(this.__actions__);return i.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,ht([this.value()],arguments))})})),e}function $s(){}var Xs=Fi(dt),Zs=Fi(ct),eu=Fi(yt);function tu(e){return uo(e)?St(ko(e)):function(e){return function(t){return pr(t,e)}}(e)}var nu=Ii(),ru=Ii(!0);function iu(){return[]}function ou(){return!1}var au=Oi((function(e,t){return e+t}),0),su=Li("ceil"),uu=Oi((function(e,t){return e/t}),1),cu=Li("floor");var lu,pu=Oi((function(e,t){return e*t}),1),fu=Li("round"),du=Oi((function(e,t){return e-t}),0);return Tn.after=function(e,t){if("function"!=typeof t)throw new ve(o);return e=rs(e),function(){if(--e<1)return t.apply(this,arguments)}},Tn.ary=ga,Tn.assign=us,Tn.assignIn=cs,Tn.assignInWith=ls,Tn.assignWith=ps,Tn.at=fs,Tn.before=ya,Tn.bind=va,Tn.bindAll=Vs,Tn.bindKey=ba,Tn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Ia(e)?e:[e]},Tn.chain=ta,Tn.chunk=function(e,t,n){t=(n?so(e,t,n):void 0===t)?1:an(rs(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var o=0,a=0,s=r(Xt(i/t));o<i;)s[a++]=Wr(e,o,o+=t);return s},Tn.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var o=e[t];o&&(i[r++]=o)}return i},Tn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),n=arguments[0],i=e;i--;)t[i-1]=arguments[i];return ht(Ia(n)?yi(n):[n],or(t,1))},Tn.cond=function(e){var t=null==e?0:e.length,n=Yi();return e=t?dt(e,(function(e){if("function"!=typeof e[1])throw new ve(o);return[n(e[0]),e[1]]})):[],Rr((function(n){for(var r=-1;++r<t;){var i=e[r];if(ot(i[0],this,n))return ot(i[1],this,n)}}))},Tn.conforms=function(e){return function(e){var t=Es(e);return function(n){return $n(n,e,t)}}(Yn(e,1))},Tn.constant=qs,Tn.countBy=ia,Tn.create=function(e,t){var n=_n(e);return null==t?n:Gn(n,t)},Tn.curry=function e(t,n,r){var i=Bi(t,8,void 0,void 0,void 0,void 0,void 0,n=r?void 0:n);return i.placeholder=e.placeholder,i},Tn.curryRight=function e(t,n,r){var i=Bi(t,16,void 0,void 0,void 0,void 0,void 0,n=r?void 0:n);return i.placeholder=e.placeholder,i},Tn.debounce=Ea,Tn.defaults=ds,Tn.defaultsDeep=hs,Tn.defer=xa,Tn.delay=Da,Tn.difference=_o,Tn.differenceBy=Oo,Tn.differenceWith=Fo,Tn.drop=function(e,t,n){var r=null==e?0:e.length;return r?Wr(e,(t=n||void 0===t?1:rs(t))<0?0:t,r):[]},Tn.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?Wr(e,0,(t=r-(t=n||void 0===t?1:rs(t)))<0?0:t):[]},Tn.dropRightWhile=function(e,t){return e&&e.length?ti(e,Yi(t,3),!0,!0):[]},Tn.dropWhile=function(e,t){return e&&e.length?ti(e,Yi(t,3),!0):[]},Tn.fill=function(e,t,n,r){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&so(e,t,n)&&(n=0,r=i),function(e,t,n,r){var i=e.length;for((n=rs(n))<0&&(n=-n>i?0:i+n),(r=void 0===r||r>i?i:rs(r))<0&&(r+=i),r=n>r?0:is(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},Tn.filter=function(e,t){return(Ia(e)?lt:ir)(e,Yi(t,3))},Tn.flatMap=function(e,t){return or(fa(e,t),1)},Tn.flatMapDeep=function(e,t){return or(fa(e,t),1/0)},Tn.flatMapDepth=function(e,t,n){return n=void 0===n?1:rs(n),or(fa(e,t),n)},Tn.flatten=Mo,Tn.flattenDeep=function(e){return(null==e?0:e.length)?or(e,1/0):[]},Tn.flattenDepth=function(e,t){return(null==e?0:e.length)?or(e,t=void 0===t?1:rs(t)):[]},Tn.flip=function(e){return Bi(e,512)},Tn.flow=Hs,Tn.flowRight=Ws,Tn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r},Tn.functions=function(e){return null==e?[]:lr(e,Es(e))},Tn.functionsIn=function(e){return null==e?[]:lr(e,xs(e))},Tn.groupBy=ca,Tn.initial=function(e){return(null==e?0:e.length)?Wr(e,0,-1):[]},Tn.intersection=Lo,Tn.intersectionBy=Po,Tn.intersectionWith=Ro,Tn.invert=ys,Tn.invertBy=vs,Tn.invokeMap=la,Tn.iteratee=Ks,Tn.keyBy=pa,Tn.keys=Es,Tn.keysIn=xs,Tn.map=fa,Tn.mapKeys=function(e,t){var n={};return t=Yi(t,3),ur(e,(function(e,r,i){Kn(n,t(e,r,i),e)})),n},Tn.mapValues=function(e,t){var n={};return t=Yi(t,3),ur(e,(function(e,r,i){Kn(n,r,t(e,r,i))})),n},Tn.matches=function(e){return Tr(Yn(e,1))},Tn.matchesProperty=function(e,t){return _r(e,Yn(t,1))},Tn.memoize=Ca,Tn.merge=Ds,Tn.mergeWith=Cs,Tn.method=Js,Tn.methodOf=Qs,Tn.mixin=Ys,Tn.negate=wa,Tn.nthArg=function(e){return e=rs(e),Rr((function(t){return Fr(t,e)}))},Tn.omit=ws,Tn.omitBy=function(e,t){return ks(e,wa(Yi(t)))},Tn.once=function(e){return ya(2,e)},Tn.orderBy=function(e,t,n,r){return null==e?[]:(Ia(t)||(t=null==t?[]:[t]),Ia(n=r?void 0:n)||(n=null==n?[]:[n]),Nr(e,t,n))},Tn.over=Xs,Tn.overArgs=Sa,Tn.overEvery=Zs,Tn.overSome=eu,Tn.partial=ka,Tn.partialRight=Aa,Tn.partition=da,Tn.pick=Ss,Tn.pickBy=ks,Tn.property=tu,Tn.propertyOf=function(e){return function(t){return null==e?void 0:pr(e,t)}},Tn.pull=Uo,Tn.pullAll=zo,Tn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Mr(e,t,Yi(n,2)):e},Tn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Mr(e,t,void 0,n):e},Tn.pullAt=Vo,Tn.range=nu,Tn.rangeRight=ru,Tn.rearg=Ta,Tn.reject=function(e,t){return(Ia(e)?lt:ir)(e,wa(Yi(t,3)))},Tn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],o=e.length;for(t=Yi(t,3);++r<o;){var a=e[r];t(a,r,e)&&(n.push(a),i.push(r))}return jr(e,i),n},Tn.rest=function(e,t){if("function"!=typeof e)throw new ve(o);return Rr(e,t=void 0===t?t:rs(t))},Tn.reverse=qo,Tn.sampleSize=function(e,t,n){return t=(n?so(e,t,n):void 0===t)?1:rs(t),(Ia(e)?Un:Ur)(e,t)},Tn.set=function(e,t,n){return null==e?e:zr(e,t,n)},Tn.setWith=function(e,t,n,r){return r="function"==typeof r?r:void 0,null==e?e:zr(e,t,n,r)},Tn.shuffle=function(e){return(Ia(e)?zn:Hr)(e)},Tn.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&so(e,t,n)?(t=0,n=r):(t=null==t?0:rs(t),n=void 0===n?r:rs(n)),Wr(e,t,n)):[]},Tn.sortBy=ha,Tn.sortedUniq=function(e){return e&&e.length?Qr(e):[]},Tn.sortedUniqBy=function(e,t){return e&&e.length?Qr(e,Yi(t,2)):[]},Tn.split=function(e,t,n){return n&&"number"!=typeof n&&so(e,t,n)&&(t=n=void 0),(n=void 0===n?4294967295:n>>>0)?(e=ss(e))&&("string"==typeof t||null!=t&&!Ja(t))&&!(t=$r(t))&&Bt(e)?ci(Gt(e),0,n):e.split(t,n):[]},Tn.spread=function(e,t){if("function"!=typeof e)throw new ve(o);return t=null==t?0:an(rs(t),0),Rr((function(n){var r=n[t],i=ci(n,0,t);return r&&ht(i,r),ot(e,this,i)}))},Tn.tail=function(e){var t=null==e?0:e.length;return t?Wr(e,1,t):[]},Tn.take=function(e,t,n){return e&&e.length?Wr(e,0,(t=n||void 0===t?1:rs(t))<0?0:t):[]},Tn.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?Wr(e,(t=r-(t=n||void 0===t?1:rs(t)))<0?0:t,r):[]},Tn.takeRightWhile=function(e,t){return e&&e.length?ti(e,Yi(t,3),!1,!0):[]},Tn.takeWhile=function(e,t){return e&&e.length?ti(e,Yi(t,3)):[]},Tn.tap=function(e,t){return t(e),e},Tn.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new ve(o);return qa(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Ea(e,t,{leading:r,maxWait:t,trailing:i})},Tn.thru=na,Tn.toArray=ts,Tn.toPairs=As,Tn.toPairsIn=Ts,Tn.toPath=function(e){return Ia(e)?dt(e,ko):$a(e)?[e]:yi(So(ss(e)))},Tn.toPlainObject=as,Tn.transform=function(e,t,n){var r=Ia(e),i=r||Pa(e)||Xa(e);if(t=Yi(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:qa(e)&&Ua(o)?_n(We(e)):{}}return(i?st:ur)(e,(function(e,r,i){return t(n,e,r,i)})),n},Tn.unary=function(e){return ga(e,1)},Tn.union=Ho,Tn.unionBy=Wo,Tn.unionWith=Go,Tn.uniq=function(e){return e&&e.length?Xr(e):[]},Tn.uniqBy=function(e,t){return e&&e.length?Xr(e,Yi(t,2)):[]},Tn.uniqWith=function(e,t){return t="function"==typeof t?t:void 0,e&&e.length?Xr(e,void 0,t):[]},Tn.unset=function(e,t){return null==e||Zr(e,t)},Tn.unzip=Ko,Tn.unzipWith=Jo,Tn.update=function(e,t,n){return null==e?e:ei(e,t,ai(n))},Tn.updateWith=function(e,t,n,r){return r="function"==typeof r?r:void 0,null==e?e:ei(e,t,ai(n),r)},Tn.values=_s,Tn.valuesIn=function(e){return null==e?[]:Ft(e,xs(e))},Tn.without=Qo,Tn.words=Us,Tn.wrap=function(e,t){return ka(ai(t),e)},Tn.xor=Yo,Tn.xorBy=$o,Tn.xorWith=Xo,Tn.zip=Zo,Tn.zipObject=function(e,t){return ii(e||[],t||[],qn)},Tn.zipObjectDeep=function(e,t){return ii(e||[],t||[],zr)},Tn.zipWith=ea,Tn.entries=As,Tn.entriesIn=Ts,Tn.extend=cs,Tn.extendWith=ls,Ys(Tn,Tn),Tn.add=au,Tn.attempt=zs,Tn.camelCase=Os,Tn.capitalize=Fs,Tn.ceil=su,Tn.clamp=function(e,t,n){return void 0===n&&(n=t,t=void 0),void 0!==n&&(n=(n=os(n))==n?n:0),void 0!==t&&(t=(t=os(t))==t?t:0),Qn(os(e),t,n)},Tn.clone=function(e){return Yn(e,4)},Tn.cloneDeep=function(e){return Yn(e,5)},Tn.cloneDeepWith=function(e,t){return Yn(e,5,t="function"==typeof t?t:void 0)},Tn.cloneWith=function(e,t){return Yn(e,4,t="function"==typeof t?t:void 0)},Tn.conformsTo=function(e,t){return null==t||$n(e,t,Es(t))},Tn.deburr=Ns,Tn.defaultTo=function(e,t){return null==e||e!=e?t:e},Tn.divide=uu,Tn.endsWith=function(e,t,n){e=ss(e),t=$r(t);var r=e.length,i=n=void 0===n?r:Qn(rs(n),0,r);return(n-=t.length)>=0&&e.slice(n,i)==t},Tn.eq=_a,Tn.escape=function(e){return(e=ss(e))&&B.test(e)?e.replace(P,Pt):e},Tn.escapeRegExp=function(e){return(e=ss(e))&&K.test(e)?e.replace(G,"\\$&"):e},Tn.every=function(e,t,n){var r=Ia(e)?ct:nr;return n&&so(e,t,n)&&(t=void 0),r(e,Yi(t,3))},Tn.find=oa,Tn.findIndex=No,Tn.findKey=function(e,t){return bt(e,Yi(t,3),ur)},Tn.findLast=aa,Tn.findLastIndex=Io,Tn.findLastKey=function(e,t){return bt(e,Yi(t,3),cr)},Tn.floor=cu,Tn.forEach=sa,Tn.forEachRight=ua,Tn.forIn=function(e,t){return null==e?e:ar(e,Yi(t,3),xs)},Tn.forInRight=function(e,t){return null==e?e:sr(e,Yi(t,3),xs)},Tn.forOwn=function(e,t){return e&&ur(e,Yi(t,3))},Tn.forOwnRight=function(e,t){return e&&cr(e,Yi(t,3))},Tn.get=ms,Tn.gt=Oa,Tn.gte=Fa,Tn.has=function(e,t){return null!=e&&ro(e,t,mr)},Tn.hasIn=gs,Tn.head=jo,Tn.identity=Gs,Tn.includes=function(e,t,n,r){e=ja(e)?e:_s(e),n=n&&!r?rs(n):0;var i=e.length;return n<0&&(n=an(i+n,0)),Ya(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&xt(e,t,n)>-1},Tn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:rs(n);return i<0&&(i=an(r+i,0)),xt(e,t,i)},Tn.inRange=function(e,t,n){return t=ns(t),void 0===n?(n=t,t=0):n=ns(n),function(e,t,n){return e>=sn(t,n)&&e<an(t,n)}(e=os(e),t,n)},Tn.invoke=bs,Tn.isArguments=Na,Tn.isArray=Ia,Tn.isArrayBuffer=Ma,Tn.isArrayLike=ja,Tn.isArrayLikeObject=La,Tn.isBoolean=function(e){return!0===e||!1===e||Ha(e)&&dr(e)==l},Tn.isBuffer=Pa,Tn.isDate=Ra,Tn.isElement=function(e){return Ha(e)&&1===e.nodeType&&!Ka(e)},Tn.isEmpty=function(e){if(null==e)return!0;if(ja(e)&&(Ia(e)||"string"==typeof e||"function"==typeof e.splice||Pa(e)||Xa(e)||Na(e)))return!e.length;var t=no(e);if(t==m||t==b)return!e.size;if(po(e))return!wr(e).length;for(var n in e)if(we.call(e,n))return!1;return!0},Tn.isEqual=function(e,t){return Er(e,t)},Tn.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:void 0)?n(e,t):void 0;return void 0===r?Er(e,t,void 0,n):!!r},Tn.isError=Ba,Tn.isFinite=function(e){return"number"==typeof e&&nn(e)},Tn.isFunction=Ua,Tn.isInteger=za,Tn.isLength=Va,Tn.isMap=Wa,Tn.isMatch=function(e,t){return e===t||xr(e,t,Xi(t))},Tn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:void 0,xr(e,t,Xi(t),n)},Tn.isNaN=function(e){return Ga(e)&&e!=+e},Tn.isNative=function(e){if(lo(e))throw new fe("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Dr(e)},Tn.isNil=function(e){return null==e},Tn.isNull=function(e){return null===e},Tn.isNumber=Ga,Tn.isObject=qa,Tn.isObjectLike=Ha,Tn.isPlainObject=Ka,Tn.isRegExp=Ja,Tn.isSafeInteger=function(e){return za(e)&&e>=-9007199254740991&&e<=9007199254740991},Tn.isSet=Qa,Tn.isString=Ya,Tn.isSymbol=$a,Tn.isTypedArray=Xa,Tn.isUndefined=function(e){return void 0===e},Tn.isWeakMap=function(e){return Ha(e)&&no(e)==D},Tn.isWeakSet=function(e){return Ha(e)&&"[object WeakSet]"==dr(e)},Tn.join=function(e,t){return null==e?"":rn.call(e,t)},Tn.kebabCase=Is,Tn.last=Bo,Tn.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return void 0!==n&&(i=(i=rs(n))<0?an(r+i,0):sn(i,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):Et(e,Ct,i,!0)},Tn.lowerCase=Ms,Tn.lowerFirst=js,Tn.lt=Za,Tn.lte=es,Tn.max=function(e){return e&&e.length?rr(e,Gs,hr):void 0},Tn.maxBy=function(e,t){return e&&e.length?rr(e,Yi(t,2),hr):void 0},Tn.mean=function(e){return wt(e,Gs)},Tn.meanBy=function(e,t){return wt(e,Yi(t,2))},Tn.min=function(e){return e&&e.length?rr(e,Gs,kr):void 0},Tn.minBy=function(e,t){return e&&e.length?rr(e,Yi(t,2),kr):void 0},Tn.stubArray=iu,Tn.stubFalse=ou,Tn.stubObject=function(){return{}},Tn.stubString=function(){return""},Tn.stubTrue=function(){return!0},Tn.multiply=pu,Tn.nth=function(e,t){return e&&e.length?Fr(e,rs(t)):void 0},Tn.noConflict=function(){return Ke._===this&&(Ke._=_e),this},Tn.noop=$s,Tn.now=ma,Tn.pad=function(e,t,n){e=ss(e);var r=(t=rs(t))?Wt(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return Ni(Zt(i),n)+e+Ni(Xt(i),n)},Tn.padEnd=function(e,t,n){e=ss(e);var r=(t=rs(t))?Wt(e):0;return t&&r<t?e+Ni(t-r,n):e},Tn.padStart=function(e,t,n){e=ss(e);var r=(t=rs(t))?Wt(e):0;return t&&r<t?Ni(t-r,n)+e:e},Tn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),cn(ss(e).replace(Q,""),t||0)},Tn.random=function(e,t,n){if(n&&"boolean"!=typeof n&&so(e,t,n)&&(t=n=void 0),void 0===n&&("boolean"==typeof t?(n=t,t=void 0):"boolean"==typeof e&&(n=e,e=void 0)),void 0===e&&void 0===t?(e=0,t=1):(e=ns(e),void 0===t?(t=e,e=0):t=ns(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var i=ln();return sn(e+i*(t-e+qe("1e-"+((i+"").length-1))),t)}return Lr(e,t)},Tn.reduce=function(e,t,n){var r=Ia(e)?mt:At,i=arguments.length<3;return r(e,Yi(t,4),n,i,er)},Tn.reduceRight=function(e,t,n){var r=Ia(e)?gt:At,i=arguments.length<3;return r(e,Yi(t,4),n,i,tr)},Tn.repeat=function(e,t,n){return t=(n?so(e,t,n):void 0===t)?1:rs(t),Pr(ss(e),t)},Tn.replace=function(){var e=arguments,t=ss(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Tn.result=function(e,t,n){var r=-1,i=(t=si(t,e)).length;for(i||(i=1,e=void 0);++r<i;){var o=null==e?void 0:e[ko(t[r])];void 0===o&&(r=i,o=n),e=Ua(o)?o.call(e):o}return e},Tn.round=fu,Tn.runInContext=e,Tn.sample=function(e){return(Ia(e)?Bn:Br)(e)},Tn.size=function(e){if(null==e)return 0;if(ja(e))return Ya(e)?Wt(e):e.length;var t=no(e);return t==m||t==b?e.size:wr(e).length},Tn.snakeCase=Ls,Tn.some=function(e,t,n){var r=Ia(e)?yt:Gr;return n&&so(e,t,n)&&(t=void 0),r(e,Yi(t,3))},Tn.sortedIndex=function(e,t){return Kr(e,t)},Tn.sortedIndexBy=function(e,t,n){return Jr(e,t,Yi(n,2))},Tn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=Kr(e,t);if(r<n&&_a(e[r],t))return r}return-1},Tn.sortedLastIndex=function(e,t){return Kr(e,t,!0)},Tn.sortedLastIndexBy=function(e,t,n){return Jr(e,t,Yi(n,2),!0)},Tn.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=Kr(e,t,!0)-1;if(_a(e[n],t))return n}return-1},Tn.startCase=Ps,Tn.startsWith=function(e,t,n){return e=ss(e),n=null==n?0:Qn(rs(n),0,e.length),t=$r(t),e.slice(n,n+t.length)==t},Tn.subtract=du,Tn.sum=function(e){return e&&e.length?Tt(e,Gs):0},Tn.sumBy=function(e,t){return e&&e.length?Tt(e,Yi(t,2)):0},Tn.template=function(e,t,n){var r=Tn.templateSettings;n&&so(e,t,n)&&(t=void 0),e=ss(e),t=ls({},t,r,Ui);var i,o,a=ls({},t.imports,r.imports,Ui),s=Es(a),u=Ft(a,s),c=0,l=t.interpolate||le,p="__p += '",f=ge((t.escape||le).source+"|"+l.source+"|"+(l===V?ne:le).source+"|"+(t.evaluate||le).source+"|$","g"),d="//# sourceURL="+(we.call(t,"sourceURL")?(t.sourceURL+"").replace(/[\r\n]/g," "):"lodash.templateSources["+ ++Be+"]")+"\n";e.replace(f,(function(t,n,r,a,s,u){return r||(r=a),p+=e.slice(c,u).replace(pe,Rt),n&&(i=!0,p+="' +\n__e("+n+") +\n'"),s&&(o=!0,p+="';\n"+s+";\n__p += '"),r&&(p+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=u+t.length,t})),p+="';\n";var h=we.call(t,"variable")&&t.variable;h||(p="with (obj) {\n"+p+"\n}\n"),p=(o?p.replace(I,""):p).replace(M,"$1").replace(j,"$1;"),p="function("+(h||"obj")+") {\n"+(h?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var m=zs((function(){return de(s,d+"return "+p).apply(void 0,u)}));if(m.source=p,Ba(m))throw m;return m},Tn.times=function(e,t){if((e=rs(e))<1||e>9007199254740991)return[];var n=4294967295,r=sn(e,4294967295);e-=4294967295;for(var i=_t(r,t=Yi(t));++n<e;)t(n);return i},Tn.toFinite=ns,Tn.toInteger=rs,Tn.toLength=is,Tn.toLower=function(e){return ss(e).toLowerCase()},Tn.toNumber=os,Tn.toSafeInteger=function(e){return e?Qn(rs(e),-9007199254740991,9007199254740991):0===e?e:0},Tn.toString=ss,Tn.toUpper=function(e){return ss(e).toUpperCase()},Tn.trim=function(e,t,n){if((e=ss(e))&&(n||void 0===t))return e.replace(J,"");if(!e||!(t=$r(t)))return e;var r=Gt(e),i=Gt(t);return ci(r,It(r,i),Mt(r,i)+1).join("")},Tn.trimEnd=function(e,t,n){if((e=ss(e))&&(n||void 0===t))return e.replace(Y,"");if(!e||!(t=$r(t)))return e;var r=Gt(e);return ci(r,0,Mt(r,Gt(t))+1).join("")},Tn.trimStart=function(e,t,n){if((e=ss(e))&&(n||void 0===t))return e.replace(Q,"");if(!e||!(t=$r(t)))return e;var r=Gt(e);return ci(r,It(r,Gt(t))).join("")},Tn.truncate=function(e,t){var n=30,r="...";if(qa(t)){var i="separator"in t?t.separator:i;n="length"in t?rs(t.length):n,r="omission"in t?$r(t.omission):r}var o=(e=ss(e)).length;if(Bt(e)){var a=Gt(e);o=a.length}if(n>=o)return e;var s=n-Wt(r);if(s<1)return r;var u=a?ci(a,0,s).join(""):e.slice(0,s);if(void 0===i)return u+r;if(a&&(s+=u.length-s),Ja(i)){if(e.slice(s).search(i)){var c,l=u;for(i.global||(i=ge(i.source,ss(re.exec(i))+"g")),i.lastIndex=0;c=i.exec(l);)var p=c.index;u=u.slice(0,void 0===p?s:p)}}else if(e.indexOf($r(i),s)!=s){var f=u.lastIndexOf(i);f>-1&&(u=u.slice(0,f))}return u+r},Tn.unescape=function(e){return(e=ss(e))&&R.test(e)?e.replace(L,Kt):e},Tn.uniqueId=function(e){var t=++Se;return ss(e)+t},Tn.upperCase=Rs,Tn.upperFirst=Bs,Tn.each=sa,Tn.eachRight=ua,Tn.first=jo,Ys(Tn,(lu={},ur(Tn,(function(e,t){we.call(Tn.prototype,t)||(lu[t]=e)})),lu),{chain:!1}),Tn.VERSION="4.17.15",st(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Tn[e].placeholder=Tn})),st(["drop","take"],(function(e,t){Nn.prototype[e]=function(n){n=void 0===n?1:an(rs(n),0);var r=this.__filtered__&&!t?new Nn(this):this.clone();return r.__filtered__?r.__takeCount__=sn(n,r.__takeCount__):r.__views__.push({size:sn(n,4294967295),type:e+(r.__dir__<0?"Right":"")}),r},Nn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),st(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Nn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Yi(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),st(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Nn.prototype[e]=function(){return this[n](1).value()[0]}})),st(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Nn.prototype[e]=function(){return this.__filtered__?new Nn(this):this[n](1)}})),Nn.prototype.compact=function(){return this.filter(Gs)},Nn.prototype.find=function(e){return this.filter(e).head()},Nn.prototype.findLast=function(e){return this.reverse().find(e)},Nn.prototype.invokeMap=Rr((function(e,t){return"function"==typeof e?new Nn(this):this.map((function(n){return vr(n,e,t)}))})),Nn.prototype.reject=function(e){return this.filter(wa(Yi(e)))},Nn.prototype.slice=function(e,t){e=rs(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Nn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),void 0!==t&&(n=(t=rs(t))<0?n.dropRight(-t):n.take(t-e)),n)},Nn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Nn.prototype.toArray=function(){return this.take(4294967295)},ur(Nn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=Tn[r?"take"+("last"==t?"Right":""):t],o=r||/^find/.test(t);i&&(Tn.prototype[t]=function(){var t=this.__wrapped__,a=r?[1]:arguments,s=t instanceof Nn,u=a[0],c=s||Ia(t),l=function(e){var t=i.apply(Tn,ht([e],a));return r&&p?t[0]:t};c&&n&&"function"==typeof u&&1!=u.length&&(s=c=!1);var p=this.__chain__,f=!!this.__actions__.length,d=o&&!p,h=s&&!f;if(!o&&c){t=h?t:new Nn(this);var m=e.apply(t,a);return m.__actions__.push({func:na,args:[l],thisArg:void 0}),new Fn(m,p)}return d&&h?e.apply(this,a):(m=this.thru(l),d?r?m.value()[0]:m.value():m)})})),st(["pop","push","shift","sort","splice","unshift"],(function(e){var t=be[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Tn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(Ia(i)?i:[],e)}return this[n]((function(n){return t.apply(Ia(n)?n:[],e)}))}})),ur(Nn.prototype,(function(e,t){var n=Tn[t];if(n){var r=n.name+"";we.call(bn,r)||(bn[r]=[]),bn[r].push({name:t,func:n})}})),bn[Ti(void 0,2).name]=[{name:"wrapper",func:void 0}],Nn.prototype.clone=function(){var e=new Nn(this.__wrapped__);return e.__actions__=yi(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=yi(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=yi(this.__views__),e},Nn.prototype.reverse=function(){if(this.__filtered__){var e=new Nn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Nn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Ia(e),r=t<0,i=n?e.length:0,o=function(e,t,n){var r=-1,i=n.length;for(;++r<i;){var o=n[r],a=o.size;switch(o.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=sn(t,e+a);break;case"takeRight":e=an(e,t-a)}}return{start:e,end:t}}(0,i,this.__views__),a=o.start,s=o.end,u=s-a,c=r?s:a-1,l=this.__iteratees__,p=l.length,f=0,d=sn(u,this.__takeCount__);if(!n||!r&&i==u&&d==u)return ni(e,this.__actions__);var h=[];e:for(;u--&&f<d;){for(var m=-1,g=e[c+=t];++m<p;){var y=l[m],v=y.iteratee,b=y.type,E=v(g);if(2==b)g=E;else if(!E){if(1==b)continue e;break e}}h[f++]=g}return h},Tn.prototype.at=ra,Tn.prototype.chain=function(){return ta(this)},Tn.prototype.commit=function(){return new Fn(this.value(),this.__chain__)},Tn.prototype.next=function(){void 0===this.__values__&&(this.__values__=ts(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?void 0:this.__values__[this.__index__++]}},Tn.prototype.plant=function(e){for(var t,n=this;n instanceof On;){var r=To(n);r.__index__=0,r.__values__=void 0,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t},Tn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Nn){var t=e;return this.__actions__.length&&(t=new Nn(this)),(t=t.reverse()).__actions__.push({func:na,args:[qo],thisArg:void 0}),new Fn(t,this.__chain__)}return this.thru(qo)},Tn.prototype.toJSON=Tn.prototype.valueOf=Tn.prototype.value=function(){return ni(this.__wrapped__,this.__actions__)},Tn.prototype.first=Tn.prototype.head,Xe&&(Tn.prototype[Xe]=function(){return this}),Tn}();Ke._=Jt,void 0===(i=function(){return Jt}.call(t,n,t,r))||(r.exports=i)}).call(this)}).call(this,n(42),n(160)(e))},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0});var i=n(48);t.setSettingsString=(r=i.createActions({SET_SETTINGS_STRING:function(e){return{settingsString:e}},SET_CONFIG_STRING:function(e){return{configString:e}},OPEN_HISTORY:function(){return{}},CLOSE_HISTORY:function(){return{}}})).setSettingsString,t.setConfigString=r.setConfigString,t.openHistory=r.openHistory,t.closeHistory=r.closeHistory},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},o=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0});var a,s=n(60),u=n(116),c=n(114),l=n(521),p=n(277),f=n(278),d=n(110),h=n(212),m=n(153),g=n(37),y=n(32),v=n(292),b=n(41),E=n(86),x=n(100),D=n(118),C=n(87),w=n(34);t.setSubscriptionEndpoint=function(e){a=e},t.defaultLinkCreator=function(e,t){var n={},r=e.headers,o=e.credentials;r&&(n=i({},r));var a=new l.HttpLink({uri:e.endpoint,headers:r,credentials:o});if(!t)return{link:a};var u=new c.SubscriptionClient(t,{timeout:2e4,lazy:!0,connectionParams:n}),d=new p.WebSocketLink(u);return{link:s.ApolloLink.split((function(e){return f.isSubscription(e)}),d,a),subscriptionClient:u}};var S=t.defaultLinkCreator;t.schemaFetcher=new v.SchemaFetcher(S),window.schemaFetcher=t.schemaFetcher,t.setLinkCreator=function(e){e&&(S=e,t.schemaFetcher=new v.SchemaFetcher(e))};var k={};function A(e,t){void 0===t&&(t=!1);var n=T(e);if("Failed to fetch"===n)return{error:""+n+(t?" schema":"")+". Please check your connection"};try{return JSON.parse(n)}catch(e){}return{error:n}}function T(e){return e instanceof Error?e.result&&"object"===r(e.result)?e.result:e.message:e}t.formatError=A,t.fecthingSagas=[d.takeEvery("RUN_QUERY",C.safely((function(e){var t,n,r,c,l,p,v,C,_,O,F,N,I,M,j,L,P,R,B,U;return o(this,(function(o){switch(o.label){case 0:return t=e.payload.operationName,[4,d.select(b.getSelectedWorkspaceId)];case 1:return n=o.sent(),[4,d.select(y.getSelectedSession)];case 2:return r=o.sent(),c={query:r.query,operationName:t,variables:y.getParsedVariablesFromSession(r)},l=m.makeOperation(c),p=f.isSubscription(l),[4,d.select(b.getSelectedWorkspaceId)];case 3:return v=o.sent(),[4,d.select(b.getSettings)];case 4:return C=o.sent(),[4,d.put(g.setSubscriptionActive(f.isSubscription(l)))];case 5:return o.sent(),[4,d.put(g.startQuery())];case 6:return o.sent(),_=u.parseHeaders(r.headers),r.tracingSupported&&r.responseTracingOpen&&(_=w.set(_,"X-Apollo-Tracing","1")),O={endpoint:r.endpoint,headers:i(i({},C["request.globalHeaders"]),_),credentials:C["request.credentials"]},F=S(O,a),N=F.link,I=F.subscriptionClient,[4,d.put(g.setCurrentQueryStartTime(new Date))];case 7:o.sent(),M=!1,j=h.eventChannel((function(e){var t=!1;I&&p&&I.onDisconnected((function(){t=!0,e({error:new Error("Could not connect to websocket endpoint "+a+". Please check if the endpoint url is correct.")}),e(h.END)}));var n=s.execute(N,l).subscribe({next:function(t){e({value:t})},error:function(t){e({error:t}),e(h.END)},complete:function(){e(h.END)}}),i=function(){if(!t)try{n.unsubscribe()}catch(e){console.error(e)}},o=v+"~"+r.id;return k[o]={unsubscribe:i},i})),o.label=8;case 8:o.trys.push([8,,23,26]),o.label=9;case 9:return[4,d.take(j)];case 10:return L=o.sent(),P=L.value,R=L.error,P&&P.extensions?(B=P.extensions,[4,d.put(g.setResponseExtensions(B))]):[3,12];case 11:o.sent(),P.extensions.tracing&&C["tracing.hideTracingResponse"]&&delete P.extensions.tracing,o.label=12;case 12:return U=new x.ResponseRecord({date:JSON.stringify(P||A(R),null,2),time:new Date,resultID:E()}),"Failed to fetch"!==T(R)?[3,14]:[4,d.put(g.setEndpointUnreachable(r.endpoint))];case 13:o.sent(),o.label=14;case 14:return p?M?[4,d.put(g.clearResponses())]:[3,16]:[3,18];case 15:o.sent(),M=!1,o.label=16;case 16:return[4,d.put(g.addResponse(n,r.id,U))];case 17:return o.sent(),[3,20];case 18:return[4,d.put(g.setResponse(n,r.id,U))];case 19:o.sent(),o.label=20;case 20:return[4,d.put(D.addHistoryItem(r))];case 21:return o.sent(),[3,9];case 22:return[3,26];case 23:return[4,d.put(g.setCurrentQueryEndTime(new Date))];case 24:return o.sent(),[4,d.put(g.stopQuery(r.id,n))];case 25:return o.sent(),[7];case 26:return[2]}}))}))),d.takeLatest("STOP_QUERY",C.safely((function(e){var t,n,r,i,a,s,u,c;return o(this,(function(o){switch(o.label){case 0:return t=e.payload,n=t.sessionId,r=t.workspaceId,[4,d.select(y.getSessionsState)];case 1:return i=o.sent().sessions,a=i.get(n),[4,r||d.select(b.getSelectedWorkspaceId)];case 2:return s=o.sent(),u=s+"~"+a.id,(c=k[u])&&c.unsubscribe&&c.unsubscribe(),delete k[u],[2]}}))})))]},function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var u,c=[],l=!1,p=-1;function f(){l&&u&&(l=!1,u.length?c=u.concat(c):p=-1,c.length&&d())}function d(){if(!l){var e=s(f);l=!0;for(var t=c.length;t;){for(u=c,c=[];++p<t;)u&&u[p].run();p=-1,t=c.length}u=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function m(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new h(e,t)),1!==c.length||l||s(d)},h.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=m,i.addListener=m,i.once=m,i.off=m,i.removeListener=m,i.removeAllListeners=m,i.emit=m,i.prependListener=m,i.prependOnceListener=m,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,n){"use strict";var r,i,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var s=n(34),u=n(48),c=n(37),l=n(32),p=n(67),f=n(86),d=n(98),h=n(156),m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.toJSON=function(){var e=this.toObject(),t={queryRunning:!1,subscriptionActive:!1,responseExtensions:{}};return e.responses&&e.responses.size>0&&(e.responses.size>20||e.responses.get(0).date.length>2e3)&&(t.responses=s.List()),s.merge(e,t)},t}(s.Record(p.getDefaultSession("")));t.Session=m;var g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t}(s.Record({resultID:"",date:"",time:new Date,isSchemaError:!1}));function y(e){return void 0===e&&(e=""),new m({endpoint:e}).set("id",f())}t.ResponseRecord=g,t.sessionFromTab=function(e){return new m(a(a({},e),{headers:e.headers?JSON.stringify(e.headers,null,2):"",responses:e.responses&&e.responses.length>0?s.List(e.responses.map((function(e){return new g({date:e})}))):s.List()})).set("id",f())};var v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t}(s.Record({sessions:s.OrderedMap({}),selectedSessionId:"",sessionCount:0,headers:""}));function b(e){var t,n=new m({endpoint:e||""});return new v({sessions:s.OrderedMap((t={},t[n.id]=n,t)),selectedSessionId:n.id,sessionCount:1})}t.SessionState=v,t.makeSessionState=b;var E=u.handleActions(((i={})[u.combineActions(c.editQuery,c.editVariables,c.editHeaders,c.editEndpoint,c.setEditorFlex,c.openQueryVariables,c.closeQueryVariables,c.setVariableEditorHeight,c.setResponseTracingHeight,c.setTracingSupported,c.setVariableToType,c.setOperations,c.setOperationName,c.setSubscriptionActive,c.startQuery,c.setQueryTypes,c.editName,c.setResponseExtensions,c.setCurrentQueryStartTime,c.setCurrentQueryEndTime)]=function(e,t){var n=t.payload,r=Object.keys(n),i=1===r.length?r[0]:r[1],o=["sessions",l.getSelectedSessionId(e),i];return e.setIn(o,n[i])},i.START_QUERY=function(e){return e.setIn(["sessions",l.getSelectedSessionId(e),"queryRunning"],!0).setIn(["sessions",l.getSelectedSessionId(e),"responseExtensions"],void 0)},i.CLOSE_TRACING=function(e,t){var n=t.payload.responseTracingHeight;return e.mergeDeepIn(["sessions",l.getSelectedSessionId(e)],s.Map({responseTracingHeight:n,responseTracingOpen:!1}))},i.TOGGLE_TRACING=function(e){var t=["sessions",l.getSelectedSessionId(e),"responseTracingOpen"];return e.setIn(t,!e.getIn(t))},i.OPEN_TRACING=function(e,t){var n=t.payload.responseTracingHeight;return e.mergeDeepIn(["sessions",l.getSelectedSessionId(e)],s.Map({responseTracingHeight:n,responseTracingOpen:!0}))},i.CLOSE_VARIABLES=function(e,t){var n=t.payload.variableEditorHeight;return e.mergeDeepIn(["sessions",l.getSelectedSessionId(e)],s.Map({variableEditorHeight:n,variableEditorOpen:!1}))},i.OPEN_VARIABLES=function(e,t){var n=t.payload.variableEditorHeight;return e.mergeDeepIn(["sessions",l.getSelectedSessionId(e)],s.Map({variableEditorHeight:n,variableEditorOpen:!0}))},i.TOGGLE_VARIABLES=function(e){var t=["sessions",l.getSelectedSessionId(e),"variableEditorOpen"];return e.setIn(t,!e.getIn(t))},i.ADD_RESPONSE=function(e,t){var n=t.payload,r=n.response,i=n.sessionId;return e.updateIn(["sessions",i,"responses"],(function(e){return e.push(r)}))},i.SET_RESPONSE=function(e,t){var n=t.payload,r=n.response,i=n.sessionId;return e.setIn(["sessions",i,"responses"],s.List([r]))},i.CLEAR_RESPONSES=function(e){return e.setIn(["sessions",l.getSelectedSessionId(e),"responses"],s.List())},i.FETCH_SCHEMA=function(e){return e.setIn(["sessions",l.getSelectedSessionId(e),"isReloadingSchema"],!0)},i.REFETCH_SCHEMA=function(e){return e.setIn(["sessions",l.getSelectedSessionId(e),"isReloadingSchema"],!0)},i.STOP_QUERY=function(e,t){var n=t.payload.sessionId;return e.mergeIn(["sessions",n],{queryRunning:!1,subscriptionActive:!1})},i.SET_SCROLL_TOP=function(e,t){var n=t.payload,r=n.sessionId,i=n.scrollTop;return e.sessions.get(r)?e.setIn(["sessions",r,"scrollTop"],i):e},i.SCHEMA_FETCHING_SUCCESS=function(e,t){var n=t.payload,r=e.get("sessions").map((function(e){if(e.endpoint===n.endpoint){var t={tracingSupported:n.tracingSupported,isReloadingSchema:!1,endpointUnreachable:!1},r=e.responses?e.responses.first():null;return r&&1===e.responses.size&&r.isSchemaError&&(t.responses=s.List([])),e.merge(s.Map(t))}return e}));return e.set("sessions",r)},i.SET_ENDPOINT_UNREACHABLE=function(e,t){var n=t.payload,r=e.get("sessions").map((function(e,t){return e.get("endpoint")===n.endpoint?e.merge(s.Map({endpointUnreachable:!0})):e}));return e.set("sessions",r)},i.SCHEMA_FETCHING_ERROR=function(e,t){var n=t.payload,r=e.get("sessions").map((function(e,t){if(e.get("endpoint")===n.endpoint){var r=e.responses;if(r.size<=1){var i=e.responses?e.responses.first():null;i&&!i.isSchemaError||(i=new g({resultID:f(),isSchemaError:!0,date:JSON.stringify(d.formatError(n.error,!0),null,2),time:new Date})),r=s.List([i])}return e.merge(s.Map({isReloadingSchema:!1,endpointUnreachable:!0,responses:r}))}return e}));return e.set("sessions",r)},i.SET_SELECTED_SESSION_ID=function(e,t){var n=t.payload.sessionId;return e.set("selectedSessionId",n)},i.OPEN_SETTINGS_TAB=function(e){var t=e,n=e.sessions.find((function(e){return e.get("isSettingsTab",!1)}));return n||(n=y().merge({isSettingsTab:!0,isFile:!0,name:"Settings",changed:!1}),t=t.setIn(["sessions",n.id],n)),t.set("selectedSessionId",n.id)},i.OPEN_CONFIG_TAB=function(e){var t=e,n=e.sessions.find((function(e){return e.get("isConfigTab",!1)}));return n||(n=y().merge({isConfigTab:!0,isFile:!0,name:"GraphQL Config",changed:!1}),t=t.setIn(["sessions",n.id],n)),t.set("selectedSessionId",n.id)},i.NEW_FILE_TAB=function(e,t){var n=t.payload,r=n.fileName,i=n.filePath,o=n.file,a=e,s=e.sessions.find((function(e){return e.get("name","")===r}));return s||(s=y().merge({isFile:!0,name:r,changed:!1,file:o,filePath:i}),a=a.setIn(["sessions",s.id],s)),a.set("selectedSessionId",s.id).set("sessionCount",a.sessions.size)},i.NEW_SESSION=function(e,t){var n=t.payload,r=n.reuseHeaders,i=n.endpoint,o=e.sessions.first(),a={query:"",isReloadingSchema:o.isReloadingSchema,endpointUnreachable:o.endpointUnreachable};o.endpointUnreachable&&(a.responses=o.responses);var s=y(i||o.endpoint).merge(a);if(r){var u=l.getSelectedSessionId(e),c=e.sessions.get(u);s=s.set("headers",c.headers)}else s=s.set("headers",e.headers);return e.setIn(["sessions",s.id],s).set("selectedSessionId",s.id).set("sessionCount",e.sessions.size+1)},i.INJECT_HEADERS=function(e,t){var n=t.payload,r=n.headers,i=n.endpoint;if(!r||""===r||0===Object.keys(r).length)return e;var o="string"==typeof r?r:JSON.stringify(r,null,2),a=l.getSelectedSessionId(e),s=e.set("headers",o),u=e.sessions.get(a);if(u.headers===o)return s;if(u.query===p.defaultQuery)return s.setIn(["sessions",a,"headers"],o);var c=y(i).set("headers",o);return s.setIn(["sessions",c.id],c).set("selectedSessionId",c.id).set("sessionCount",e.sessions.size+1)},i.DUPLICATE_SESSION=function(e,t){var n=t.payload.session.set("id",f());return e.setIn(["sessions",n.id],n).set("selectedSessionId",n.id).set("sessionCount",e.sessions.size+1)},i.NEW_SESSION_FROM_QUERY=function(e,t){var n=t.payload.query,r=y().set("query",n);return e.setIn(["sessions",r.id],r).set("sessionCount",e.sessions.size+1)},i.CLOSE_SELECTED_TAB=function(e){return x(e,l.getSelectedSessionId(e)).set("sessionCount",e.sessions.size-1)},i.SELECT_NEXT_TAB=function(e){var t=l.getSelectedSessionId(e),n=e.sessions.size,r=e.sessions.keySeq(),i=r.indexOf(t);return i+1<n?e.set("selectedSessionId",r.get(i+1)):e.set("selectedSessionId",r.get(0))},i.SELECT_PREV_TAB=function(e){var t=l.getSelectedSessionId(e),n=e.sessions.size,r=e.sessions.keySeq(),i=r.indexOf(t);return i-1>=0?e.set("selectedSessionId",r.get(i-1)):e.set("selectedSessionId",r.get(n-1))},i.SELECT_TAB_INDEX=function(e,t){var n=t.payload.index,r=e.sessions.keySeq();return e.set("selectedSessionId",r.get(n))},i.SELECT_TAB=function(e,t){var n=t.payload.sessionId;return e.set("selectedSessionId",n)},i.CLOSE_TAB=function(e,t){return x(e,t.payload.sessionId).set("sessionCount",e.sessions.size-1)},i.REORDER_TABS=function(e,t){for(var n=t.payload,r=n.src,i=n.dest,o=e.sessions.toIndexedSeq(),a=[],u=0;u<o.size;u++)a.push(u);var c=h.arrayMove(a,r,i),l=s.OrderedMap();for(u=0;u<o.size;u++){var p=c[u],f=o.get(p);l=l.set(f.id,f)}return e.set("sessions",l)},i.EDIT_SETTINGS=function(e){return e.setIn(["sessions",l.getSelectedSessionId(e),"changed"],!0)},i.SAVE_SETTINGS=function(e){return e.setIn(["sessions",l.getSelectedSessionId(e),"changed"],!1)},i.EDIT_CONFIG=function(e){return e.setIn(["sessions",l.getSelectedSessionId(e),"changed"],!0)},i.SAVE_CONFIG=function(e){return e.setIn(["sessions",l.getSelectedSessionId(e),"changed"],!1)},i.EDIT_FILE=function(e){return e.setIn(["sessions",l.getSelectedSessionId(e),"changed"],!0)},i.SAVE_FILE=function(e){return e.setIn(["sessions",l.getSelectedSessionId(e),"changed"],!1)},i),b(""));function x(e,t){var n=e.sessions.size,r=e.sessions.keySeq(),i=e.removeIn(["sessions",t]),o=e.sessions.get(t);if(1===n){var a={query:"",headers:o.headers,isReloadingSchema:o.isReloadingSchema,endpointUnreachable:o.endpointUnreachable};o.endpointUnreachable&&(a.responses=o.responses);var s=y(o.endpoint).merge(a);return(i=i.set("selectedSessionId",s.id)).setIn(["sessions",s.id],s)}var u=l.getSelectedSessionId(e),c=r.indexOf(t);if(u===t){var p=c-1;return p<0?i.set("selectedSessionId",r.get(1)):i.set("selectedSessionId",r.get(p))}return i}t.default=function(e,t){var n=E(e,t);return""===n.selectedSessionId&&e.sessions.size>0?n.set("selectedSessionId",e.sessions.first().id):n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.vendorPrefix=t.events=void 0,t.arrayMove=function(e,t,n){var r=e.slice(0);if(n>=r.length)for(var i=n-r.length;1+i--;)r.push(void 0);return r.splice(n,0,r.splice(t,1)[0]),r},t.omit=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Object.keys(e).reduce((function(t,r){return-1===n.indexOf(r)&&(t[r]=e[r]),t}),{})},t.closest=function(e,t){for(;e;){if(t(e))return e;e=e.parentNode}},t.limit=function(e,t,n){if(n<e)return e;if(n>t)return t;return n},t.getElementMargin=function(e){var t=window.getComputedStyle(e);return{top:a(t.marginTop),right:a(t.marginRight),bottom:a(t.marginBottom),left:a(t.marginLeft)}},t.provideDisplayName=function(e,t){var n=t.displayName||t.name;return n?e+"("+n+")":e},t.getPosition=function(e){return e.touches&&e.touches.length?{x:e.touches[0].pageX,y:e.touches[0].pageY}:e.changedTouches&&e.changedTouches.length?{x:e.changedTouches[0].pageX,y:e.changedTouches[0].pageY}:{x:e.pageX,y:e.pageY}},t.isTouchEvent=function(e){return e.touches&&e.touches.length||e.changedTouches&&e.changedTouches.length},t.getEdgeOffset=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{top:0,left:0};if(t){var i={top:r.top+t.offsetTop,left:r.left+t.offsetLeft};return t.parentNode!==n?e(t.parentNode,n,i):i}},t.getLockPixelOffset=function(e){var t=e.lockOffset,n=e.width,r=e.height,i=t,a=t,s="px";if("string"==typeof t){var u=/^[+-]?\d*(?:\.\d*)?(px|%)$/.exec(t);(0,o.default)(null!==u,'lockOffset value should be a number or a string of a number followed by "px" or "%". Given %s',t),i=a=parseFloat(t),s=u[1]}(0,o.default)(isFinite(i)&&isFinite(a),"lockOffset value should be a finite. Given %s",t),"%"===s&&(i=i*n/100,a=a*r/100);return{x:i,y:a}};var r,i=n(29),o=(r=i)&&r.__esModule?r:{default:r};t.events={start:["touchstart","mousedown"],move:["touchmove","mousemove"],end:["touchend","touchcancel","mouseup"]},t.vendorPrefix=function(){if("undefined"==typeof window||"undefined"==typeof document)return"";var e=window.getComputedStyle(document.documentElement,"")||["-moz-hidden-iframe"],t=(Array.prototype.slice.call(e).join("").match(/-(moz|webkit|ms)-/)||""===e.OLink&&["","o"])[1];switch(t){case"ms":return"ms";default:return t&&t.length?t[0].toUpperCase()+t.substr(1):""}}();function a(e){return"px"===e.substr(-2)?parseFloat(e):0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(314),i=n(167);t.theme=i.theme;var o=r,a=o.default,s=o.css,u=o.injectGlobal,c=o.keyframes,l=o.ThemeProvider,p=o.withTheme,f=o.createGlobalStyle;t.css=s,t.injectGlobal=u,t.keyframes=c,t.ThemeProvider=l,t.withTheme=p,t.createGlobalStyle=f,t.default=a},function(e,t){e.exports=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/},function(e,t,n){"use strict";e.exports.encode=n(323),e.exports.decode=n(324),e.exports.format=n(325),e.exports.parse=n(326)},function(e,t,n){!function(e){"use strict";e.defineOption("foldGutter",!1,(function(t,r,i){var o;i&&i!=e.Init&&(t.clearGutter(t.state.foldGutter.options.gutter),t.state.foldGutter=null,t.off("gutterClick",u),t.off("changes",c),t.off("viewportChange",l),t.off("fold",p),t.off("unfold",p),t.off("swapDoc",c)),r&&(t.state.foldGutter=new n((!0===(o=r)&&(o={}),null==o.gutter&&(o.gutter="CodeMirror-foldgutter"),null==o.indicatorOpen&&(o.indicatorOpen="CodeMirror-foldgutter-open"),null==o.indicatorFolded&&(o.indicatorFolded="CodeMirror-foldgutter-folded"),o)),s(t),t.on("gutterClick",u),t.on("changes",c),t.on("viewportChange",l),t.on("fold",p),t.on("unfold",p),t.on("swapDoc",c))}));var t=e.Pos;function n(e){this.options=e,this.from=this.to=0}function r(e,n){for(var r=e.findMarks(t(n,0),t(n+1,0)),i=0;i<r.length;++i)if(r[i].__isFold){var o=r[i].find(-1);if(o&&o.line===n)return r[i]}}function i(e){if("string"==typeof e){var t=document.createElement("div");return t.className=e+" CodeMirror-guttermarker-subtle",t}return e.cloneNode(!0)}function o(e,n,o){var s=e.state.foldGutter.options,u=n-1,c=e.foldOption(s,"minFoldSize"),l=e.foldOption(s,"rangeFinder"),p="string"==typeof s.indicatorFolded&&a(s.indicatorFolded),f="string"==typeof s.indicatorOpen&&a(s.indicatorOpen);e.eachLine(n,o,(function(n){++u;var o=null,a=n.gutterMarkers;if(a&&(a=a[s.gutter]),r(e,u)){if(p&&a&&p.test(a.className))return;o=i(s.indicatorFolded)}else{var d=t(u,0),h=l&&l(e,d);if(h&&h.to.line-h.from.line>=c){if(f&&a&&f.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 u(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 l(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.from<t.from&&(o(e,n.from,t.from),t.from=n.from),n.to>t.to&&(o(e,t.to,n.to),t.to=n.to)}))}),n.updateViewportTimeSpan||400)}}function p(e,t){var n=e.state.foldGutter;if(n){var r=t.line;r>=n.from&&r<n.to&&o(e,r,r+1)}}}(n(16),n(375))},function(e,t,n){!function(e){"use strict";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:")+' <input type="text" style="width: 10em" class="CodeMirror-search-field"/> <span style="color: #888" class="CodeMirror-search-hint">'+e.phrase("(Use line:column or scroll% syntax)")+"</span>"}(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(16),n(70))},function(e,t,n){!function(e){"use strict";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",u=r.ch,c=u,l=i<0?0:o.length,p=0;c!=l;c+=i,p++){var f=o.charAt(i<0?c-1:c),d="_"!=f&&e.isWordChar(f)?"w":"o";if("w"==d&&f.toUpperCase()==f&&(d="W"),"start"==s)"o"!=d?(s="in",a=d):u=c+i;else if("in"==s&&a!=d){if("w"==a&&"W"==d&&i<0&&c--,"W"==a&&"w"==d&&i>0){if(c==u+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<e;a++){var s=t.listSelections()[a].head;if(!(s.line<=o)){var u=n(s.line+(r?0:1),0);t.replaceRange("\n",u,null,"+insertLine"),t.indentLine(u.line,null,!0),i.push({head:u,anchor:u}),o=s.line+1}}t.setSelections(i)})),t.execCommand("indentAuto")}function o(t,r){for(var i=r.ch,o=i,a=t.getLine(r.line);i&&e.isWordChar(a.charAt(i-1));)--i;for(;o<a.length&&e.isWordChar(a.charAt(o));)++o;return{from:n(r.line,i),to:n(r.line,o),word:a.slice(i,o)}}function a(e,t){for(var n=e.listSelections(),r=[],i=0;i<n.length;i++){var o=n[i],a=e.findPosV(o.anchor,t,"line",o.anchor.goalColumn),s=e.findPosV(o.head,t,"line",o.head.goalColumn);a.goalColumn=null!=o.anchor.goalColumn?o.anchor.goalColumn:e.cursorCoords(o.anchor,"div").left,s.goalColumn=null!=o.head.goalColumn?o.head.goalColumn:e.cursorCoords(o.head,"div").left;var u={anchor:a,head:s};r.push(o),r.push(u)}e.setSelections(r)}function s(t){for(var r=t.listSelections(),i=[],o=0;o<r.length;o++){var a=r[o],s=a.head,u=t.scanForBracket(s,-1);if(!u)return!1;for(;;){var c=t.scanForBracket(s,1);if(!c)return!1;if(c.ch=="(){}[]".charAt("(){}[]".indexOf(u.ch)+1)){var l=n(u.pos.line,u.pos.ch+1);if(0!=e.cmpPos(l,a.from())||0!=e.cmpPos(c.pos,a.to())){i.push({anchor:l,head:c.pos});break}if(!(u=t.scanForBracket(u.pos,-1)))return!1}s=n(c.pos.line,c.pos.ch+1)}}return t.setSelections(i),!0}function u(e){return e?/\bpunctuation\b/.test(e)?e:void 0:null}function c(t,r){if(t.isReadOnly())return e.Pass;for(var i,o=t.listSelections(),a=[],s=0;s<o.length;s++){var u=o[s];if(!u.empty()){for(var c=u.from().line,l=u.to().line;s<o.length-1&&o[s+1].from().line==l;)l=o[++s].to().line;o[s].to().ch||l--,a.push(c,l)}}a.length?i=!0:a.push(t.firstLine(),t.lastLine()),t.operation((function(){for(var e=[],o=0;o<a.length;o+=2){var s=a[o],u=a[o+1],c=n(s,0),l=n(u),p=t.getRange(c,l,!1);r?p.sort():p.sort((function(e,t){var n=e.toUpperCase(),r=t.toUpperCase();return n!=r&&(e=n,t=r),e<t?-1:e==t?0:1})),t.replaceRange(p,c,l),i&&e.push({anchor:c,head:n(u+1,0)})}i&&t.setSelections(e,0)}))}function l(t,n){t.operation((function(){for(var r=t.listSelections(),i=[],a=[],s=0;s<r.length;s++)(c=r[s]).empty()?(i.push(s),a.push("")):a.push(n(t.getRange(c.from(),c.to())));var u;for(t.replaceSelections(a,"around","case"),s=i.length-1;s>=0;s--){var c=r[i[s]];if(!(u&&e.cmpPos(c.head,u)>0)){var l=o(t,c.head);u=l.from,t.replaceRange(n(l.word),l.from,l.to)}}}))}function p(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 f(e,t){var r=p(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;i<t.length;i++)for(var o=t[i].from(),a=t[i].to(),s=o.line;s<=a.line;++s)a.line>o.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;i<t.length;i++){var o=t[i];r.push({anchor:n(o.from().line,0),head:n(o.to().line+1,0)})}e.setSelections(r)},t.insertLineAfter=function(e){return i(e,!1)},t.insertLineBefore=function(e){return i(e,!0)},t.selectNextOccurrence=function(t){var r=t.getCursor("from"),i=t.getCursor("to"),a=t.state.sublimeFindFullWord==t.doc.sel;if(0==e.cmpPos(r,i)){var s=o(t,r);if(!s.word)return;t.setSelection(s.from,s.to),a=!0}else{var u=t.getRange(r,i),c=a?new RegExp("\\b"+u+"\\b"):u,l=t.getSearchCursor(c,i),p=l.findNext();if(p||(p=(l=t.getSearchCursor(c,n(t.firstLine(),0))).findNext()),!p||function(t,n,r){for(var i=0;i<t.length;i++)if(0==e.cmpPos(t[i].from(),n)&&0==e.cmpPos(t[i].to(),r))return!0;return!1}(t.listSelections(),l.from(),l.to()))return;t.addSelection(l.from(),l.to())}a&&(t.state.sublimeFindFullWord=t.doc.sel)},t.skipAndSelectNextOccurrence=function(n){var r=n.getCursor("anchor"),i=n.getCursor("head");t.selectNextOccurrence(n),0!=e.cmpPos(r,i)&&n.doc.setSelections(n.doc.listSelections().filter((function(e){return e.anchor!=r||e.head!=i})))},t.addCursorToPrevLine=function(e){a(e,-1)},t.addCursorToNextLine=function(e){a(e,1)},t.selectScope=function(e){s(e)||e.execCommand("selectAll")},t.selectBetweenBrackets=function(t){if(!s(t))return e.Pass},t.goToBracket=function(t){t.extendSelectionsBy((function(r){var i=t.scanForBracket(r.head,1,u(t.getTokenTypeAt(r.head)));if(i&&0!=e.cmpPos(i.pos,r.head))return i.pos;var o=t.scanForBracket(r.head,-1,u(t.getTokenTypeAt(n(r.head.line,r.head.ch+1))));return o&&n(o.pos.line,o.pos.ch+1)||r.head}))},t.swapLineUp=function(t){if(t.isReadOnly())return e.Pass;for(var r=t.listSelections(),i=[],o=t.firstLine()-1,a=[],s=0;s<r.length;s++){var u=r[s],c=u.from().line-1,l=u.to().line;a.push({anchor:n(u.anchor.line-1,u.anchor.ch),head:n(u.head.line-1,u.head.ch)}),0!=u.to().ch||u.empty()||--l,c>o?i.push(c,l):i.length&&(i[i.length-1]=l),o=l}t.operation((function(){for(var e=0;e<i.length;e+=2){var r=i[e],o=i[e+1],s=t.getLine(r);t.replaceRange("",n(r,0),n(r+1,0),"+swapLine"),o>t.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],u=s.to().line+1,c=s.from().line;0!=s.to().ch||s.empty()||u--,u<o?i.push(u,c):i.length&&(i[i.length-1]=c),o=c}t.operation((function(){for(var e=i.length-2;e>=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<t.length;i++){for(var o=t[i],a=o.from(),s=a.line,u=o.to().line;i<t.length-1&&t[i+1].from().line==u;)u=t[++i].to().line;r.push({start:s,end:u,anchor:!o.empty()&&a})}e.operation((function(){for(var t=0,i=[],o=0;o<r.length;o++){for(var a,s=r[o],u=s.anchor&&n(s.anchor.line-t,s.anchor.ch),c=s.start;c<=s.end;c++){var l=c-t;c==s.end&&(a=n(l,e.getLine(l).length+1)),l<e.lastLine()&&(e.replaceRange(" ",n(l),n(l+1,/^\s*/.exec(e.getLine(l+1))[0].length)),++t)}i.push({anchor:u||a,head:a})}e.setSelections(i,0)}))},t.duplicateLine=function(e){e.operation((function(){for(var t=e.listSelections().length,r=0;r<t;r++){var i=e.listSelections()[r];i.empty()?e.replaceRange(e.getLine(i.head.line)+"\n",n(i.head.line,0)):e.replaceRange(e.getRange(i.from(),i.to()),i.from())}e.scrollIntoView()}))},t.sortLines=function(e){c(e,!0)},t.sortLinesInsensitive=function(e){c(e,!1)},t.nextBookmark=function(e){var t=e.state.sublimeBookmarks;if(t)for(;t.length;){var n=t.shift(),r=n.find();if(r)return t.push(n),e.setSelection(r.from,r.to)}},t.prevBookmark=function(e){var t=e.state.sublimeBookmarks;if(t)for(;t.length;){t.unshift(t.pop());var n=t[t.length-1].find();if(n)return e.setSelection(n.from,n.to);t.pop()}},t.toggleBookmark=function(e){for(var t=e.listSelections(),n=e.state.sublimeBookmarks||(e.state.sublimeBookmarks=[]),r=0;r<t.length;r++){for(var i=t[r].from(),o=t[r].to(),a=t[r].empty()?e.findMarksAt(i):e.findMarks(i,o),s=0;s<a.length;s++)if(a[s].sublimeBookmark){a[s].clear();for(var u=0;u<n.length;u++)n[u]==a[s]&&n.splice(u--,1);break}s==a.length&&n.push(e.markText(i,o,{sublimeBookmark:!0,clearWhenEmpty:!1}))}},t.clearBookmarks=function(e){var t=e.state.sublimeBookmarks;if(t)for(var n=0;n<t.length;n++)t[n].clear();t.length=0},t.selectBookmarks=function(e){var t=e.state.sublimeBookmarks,n=[];if(t)for(var r=0;r<t.length;r++){var i=t[r].find();i?n.push({anchor:i.from,head:i.to}):t.splice(r--,0)}n.length&&e.setSelections(n,0)},t.smartBackspace=function(t){if(t.somethingSelected())return e.Pass;t.operation((function(){for(var r=t.listSelections(),i=t.getOption("indentUnit"),o=r.length-1;o>=0;o--){var a=r[o].head,s=t.getRange({line:a.line,ch:0},a),u=e.countColumn(s,null,t.getOption("tabSize")),c=t.findPosH(a,-1,"char",!1);if(s&&!/\S/.test(s)&&u%i==0){var l=new n(a.line,e.findColumn(s,u-i,i));l.ch!=a.ch&&(c=l)}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){l(e,(function(e){return e.toUpperCase()}))},t.downcaseAtCursor=function(e){l(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){f(e,!0)},t.findUnderPrevious=function(e){f(e,!1)},t.findAllUnder=function(e){var t=p(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 d=e.keyMap;d.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(d.macSublime),d.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(d.pcSublime);var h=d.default==d.macDefault;d.sublime=h?d.macSublime:d.pcSublime}(n(16),n(69),n(90))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){return function(t){return t.general.get(e)}};t.getFixedEndpoint=r("fixedEndpoint"),t.getHistoryOpen=r("historyOpen"),t.getConfigString=r("configString")},function(e,t,n){"use strict";var r=n(78);e.exports=r.DEFAULT=new r({include:[n(93)],explicit:[n(514),n(515),n(516)]})},function(e,t,n){"use strict";n.r(t),n.d(t,"actionChannel",(function(){return i.p})),n.d(t,"all",(function(){return i.B})),n.d(t,"apply",(function(){return i.a})),n.d(t,"call",(function(){return i.o})),n.d(t,"cancel",(function(){return i.n})),n.d(t,"cancelled",(function(){return i.H})),n.d(t,"cps",(function(){return i.D})),n.d(t,"delay",(function(){return i.v})),n.d(t,"effectTypes",(function(){return i.x})),n.d(t,"flush",(function(){return i.I})),n.d(t,"fork",(function(){return i.m})),n.d(t,"getContext",(function(){return i.J})),n.d(t,"join",(function(){return i.F})),n.d(t,"put",(function(){return i.z})),n.d(t,"putResolve",(function(){return i.A})),n.d(t,"race",(function(){return i.w})),n.d(t,"select",(function(){return i.G})),n.d(t,"setContext",(function(){return i.K})),n.d(t,"spawn",(function(){return i.E})),n.d(t,"take",(function(){return i.l})),n.d(t,"takeMaybe",(function(){return i.y})),n.d(t,"debounce",(function(){return E})),n.d(t,"retry",(function(){return b})),n.d(t,"takeEvery",(function(){return m})),n.d(t,"takeLatest",(function(){return g})),n.d(t,"takeLeading",(function(){return y})),n.d(t,"throttle",(function(){return v}));n(18),n(63);var r=n(10),i=n(6),o=(n(111),function(e){return{done:!0,value:e}}),a={};function s(e){return Object(r.b)(e)?"channel":Object(r.l)(e)?String(e):Object(r.d)(e)?e.name:String(e)}function u(e,t,n){var r,s,u,c=t;function l(t,n){if(c===a)return o(t);if(n&&!s)throw c=a,n;r&&r(t);var i=n?e[s](n):e[c]();return c=i.nextState,u=i.effect,r=i.stateUpdater,s=i.errorState,c===a?o(t):u}return Object(i.ab)(l,(function(e){return l(null,e)}),n)}function c(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var a,c={done:!1,value:Object(i.l)(e)},l=function(e){return{done:!1,value:i.m.apply(void 0,[t].concat(r,[e]))}},p=function(e){return a=e};return u({q1:function(){return{nextState:"q2",effect:c,stateUpdater:p}},q2:function(){return{nextState:"q1",effect:l(a)}}},"q1","takeEvery("+s(e)+", "+t.name+")")}function l(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var a,c,l={done:!1,value:Object(i.l)(e)},p=function(e){return{done:!1,value:i.m.apply(void 0,[t].concat(r,[e]))}},f=function(e){return{done:!1,value:Object(i.n)(e)}},d=function(e){return a=e},h=function(e){return c=e};return u({q1:function(){return{nextState:"q2",effect:l,stateUpdater:h}},q2:function(){return a?{nextState:"q3",effect:f(a)}:{nextState:"q1",effect:p(c),stateUpdater:d}},q3:function(){return{nextState:"q1",effect:p(c),stateUpdater:d}}},"q1","takeLatest("+s(e)+", "+t.name+")")}function p(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var a,c={done:!1,value:Object(i.l)(e)},l=function(e){return{done:!1,value:i.o.apply(void 0,[t].concat(r,[e]))}},p=function(e){return a=e};return u({q1:function(){return{nextState:"q2",effect:c,stateUpdater:p}},q2:function(){return{nextState:"q1",effect:l(a)}}},"q1","takeLeading("+s(e)+", "+t.name+")")}function f(e,t,n){for(var r=arguments.length,o=new Array(r>3?r-3:0),a=3;a<r;a++)o[a-3]=arguments[a];var c,l,p={done:!1,value:Object(i.p)(t,Object(i.r)(1))},f=function(){return{done:!1,value:Object(i.l)(l)}},d=function(e){return{done:!1,value:i.m.apply(void 0,[n].concat(o,[e]))}},h={done:!1,value:Object(i.v)(e)},m=function(e){return c=e},g=function(e){return l=e};return u({q1:function(){return{nextState:"q2",effect:p,stateUpdater:g}},q2:function(){return{nextState:"q3",effect:f(),stateUpdater:m}},q3:function(){return{nextState:"q4",effect:d(c)}},q4:function(){return{nextState:"q2",effect:h}}},"q1","throttle("+s(t)+", "+n.name+")")}function d(e,t,n){for(var r=e,o=arguments.length,s=new Array(o>3?o-3:0),c=3;c<o;c++)s[c-3]=arguments[c];var l={done:!1,value:i.o.apply(void 0,[n].concat(s))},p={done:!1,value:Object(i.v)(t)};return u({q1:function(){return{nextState:"q2",effect:l,errorState:"q10"}},q2:function(){return{nextState:a}},q10:function(e){if((r-=1)<=0)throw e;return{nextState:"q1",effect:p}}},"q1","retry("+n.name+")")}function h(e,t,n){for(var r=arguments.length,o=new Array(r>3?r-3:0),a=3;a<r;a++)o[a-3]=arguments[a];var c,l,p={done:!1,value:Object(i.l)(t)},f={done:!1,value:Object(i.w)({action:Object(i.l)(t),debounce:Object(i.v)(e)})},d=function(e){return{done:!1,value:i.m.apply(void 0,[n].concat(o,[e]))}},h=function(e){return{done:!1,value:e}},m=function(e){return c=e},g=function(e){return l=e};return u({q1:function(){return{nextState:"q2",effect:p,stateUpdater:m}},q2:function(){return{nextState:"q3",effect:f,stateUpdater:g}},q3:function(){return l.debounce?{nextState:"q1",effect:d(c)}:{nextState:"q2",effect:h(l.action),stateUpdater:m}}},"q1","debounce("+s(t)+", "+n.name+")")}function m(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return i.m.apply(void 0,[c,e,t].concat(r))}function g(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return i.m.apply(void 0,[l,e,t].concat(r))}function y(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return i.m.apply(void 0,[p,e,t].concat(r))}function v(e,t,n){for(var r=arguments.length,o=new Array(r>3?r-3:0),a=3;a<r;a++)o[a-3]=arguments[a];return i.m.apply(void 0,[f,e,t,n].concat(o))}function b(e,t,n){for(var r=arguments.length,o=new Array(r>3?r-3:0),a=3;a<r;a++)o[a-3]=arguments[a];return i.o.apply(void 0,[d,e,t,n].concat(o))}function E(e,t,n){for(var r=arguments.length,o=new Array(r>3?r-3:0),a=3;a<r;a++)o[a-3]=arguments[a];return i.m.apply(void 0,[h,e,t,n].concat(o))}},function(e,t,n){"use strict";var r=n(18);t.a=function(e,t){var n;void 0===t&&(t=!0);var i=new Promise((function(r){n=setTimeout(r,e,t)}));return i[r.a]=function(){clearTimeout(n)},i}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return r}));n(26),n(27),n(19),n(215),n(152);function r(e){return e.definitions.filter((function(e){return"OperationDefinition"===e.kind&&e.name})).map((function(e){return e.name.value}))[0]||null}"function"==typeof WeakMap&&"object"==typeof navigator&&navigator.product,Object.prototype.toString;Object.prototype.hasOwnProperty;Object.create({})}).call(this,n(99))},function(e,t,n){"use strict";n.r(t),function(e,r){var i,o=n(213);i="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:r;var a=Object(o.a)(i);t.default=a}.call(this,n(42),n(265)(e))},function(e,t,n){"use strict";(function(e){var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},i=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},a=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r};Object.defineProperty(t,"__esModule",{value:!0}),t.SubscriptionClient=void 0;var s=void 0!==e?e:"undefined"!=typeof window?window:{},u=s.WebSocket||s.MozWebSocket,c=n(269),l=n(270),p=n(271),f=n(272),d=n(15),h=n(273),m=n(113),g=n(274),y=n(275),v=n(276),b=function(){function e(e,t,n,r){var i=t||{},o=i.connectionCallback,a=void 0===o?void 0:o,s=i.connectionParams,p=void 0===s?{}:s,f=i.minTimeout,d=void 0===f?y.MIN_WS_TIMEOUT:f,h=i.timeout,m=void 0===h?y.WS_TIMEOUT:h,v=i.reconnect,b=void 0!==v&&v,E=i.reconnectionAttempts,x=void 0===E?1/0:E,D=i.lazy,C=void 0!==D&&D,w=i.inactivityTimeout,S=void 0===w?0:w,k=i.wsOptionArguments,A=void 0===k?[]:k;if(this.wsImpl=n||u,!this.wsImpl)throw new Error("Unable to find native implementation, or alternative implementation for WebSocket!");this.wsProtocols=r||g.GRAPHQL_WS,this.connectionCallback=a,this.url=e,this.operations={},this.nextOperationId=0,this.minWsTimeout=d,this.wsTimeout=m,this.unsentMessagesQueue=[],this.reconnect=b,this.reconnecting=!1,this.reconnectionAttempts=x,this.lazy=!!C,this.inactivityTimeout=S,this.closedByUser=!1,this.backoff=new c({jitter:.5}),this.eventEmitter=new l.EventEmitter,this.middlewares=[],this.client=null,this.maxConnectTimeGenerator=this.createMaxConnectTimeGenerator(),this.connectionParams=this.getConnectionParams(p),this.wsOptionArguments=A,this.lazy||this.connect()}return Object.defineProperty(e.prototype,"status",{get:function(){return null===this.client?this.wsImpl.CLOSED:this.client.readyState},enumerable:!1,configurable:!0}),e.prototype.close=function(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0),this.clearInactivityTimeout(),null!==this.client&&(this.closedByUser=t,e&&(this.clearCheckConnectionInterval(),this.clearMaxConnectTimeout(),this.clearTryReconnectTimeout(),this.unsubscribeAll(),this.sendMessage(void 0,v.default.GQL_CONNECTION_TERMINATE,null)),this.client.close(),this.client.onopen=null,this.client.onclose=null,this.client.onerror=null,this.client.onmessage=null,this.client=null,this.eventEmitter.emit("disconnected"),e||this.tryReconnect())},e.prototype.request=function(e){var t,n,r=this.getObserver.bind(this),i=this.executeOperation.bind(this),o=this.unsubscribe.bind(this);return this.clearInactivityTimeout(),(t={})[m.default]=function(){return this},t.subscribe=function(t,a,s){var u=r(t,a,s);return n=i(e,(function(e,t){null===e&&null===t?u.complete&&u.complete():e?u.error&&u.error(e[0]):u.next&&u.next(t)})),{unsubscribe:function(){n&&(o(n),n=null)}}},t},e.prototype.on=function(e,t,n){var r=this.eventEmitter.on(e,t,n);return function(){r.off(e,t,n)}},e.prototype.onConnected=function(e,t){return this.on("connected",e,t)},e.prototype.onConnecting=function(e,t){return this.on("connecting",e,t)},e.prototype.onDisconnected=function(e,t){return this.on("disconnected",e,t)},e.prototype.onReconnected=function(e,t){return this.on("reconnected",e,t)},e.prototype.onReconnecting=function(e,t){return this.on("reconnecting",e,t)},e.prototype.onError=function(e,t){return this.on("error",e,t)},e.prototype.unsubscribeAll=function(){var e=this;Object.keys(this.operations).forEach((function(t){e.unsubscribe(t)}))},e.prototype.applyMiddlewares=function(e){var t=this;return new Promise((function(n,r){var i,o,s;i=a(t.middlewares),o=t,(s=function(t){if(t)r(t);else if(i.length>0){var a=i.shift();a&&a.applyMiddleware.apply(o,[e,s])}else n(e)})()}))},e.prototype.use=function(e){var t=this;return e.map((function(e){if("function"!=typeof e.applyMiddleware)throw new Error("Middleware must implement the applyMiddleware function.");t.middlewares.push(e)})),this},e.prototype.getConnectionParams=function(e){return function(){return new Promise((function(t,n){if("function"==typeof e)try{return t(e.call(null))}catch(e){return n(e)}t(e)}))}},e.prototype.executeOperation=function(e,t){var n=this;null===this.client&&this.connect();var r=this.generateOperationId();return this.operations[r]={options:e,handler:t},this.applyMiddlewares(e).then((function(e){n.checkOperationOptions(e,t),n.operations[r]&&(n.operations[r]={options:e,handler:t},n.sendMessage(r,v.default.GQL_START,e))})).catch((function(e){n.unsubscribe(r),t(n.formatErrors(e))})),r},e.prototype.getObserver=function(e,t,n){return"function"==typeof e?{next:function(t){return e(t)},error:function(e){return t&&t(e)},complete:function(){return n&&n()}}:e},e.prototype.createMaxConnectTimeGenerator=function(){var e=this.minWsTimeout,t=this.wsTimeout;return new c({min:e,max:t,factor:1.2})},e.prototype.clearCheckConnectionInterval=function(){this.checkConnectionIntervalId&&(clearInterval(this.checkConnectionIntervalId),this.checkConnectionIntervalId=null)},e.prototype.clearMaxConnectTimeout=function(){this.maxConnectTimeoutId&&(clearTimeout(this.maxConnectTimeoutId),this.maxConnectTimeoutId=null)},e.prototype.clearTryReconnectTimeout=function(){this.tryReconnectTimeoutId&&(clearTimeout(this.tryReconnectTimeoutId),this.tryReconnectTimeoutId=null)},e.prototype.clearInactivityTimeout=function(){this.inactivityTimeoutId&&(clearTimeout(this.inactivityTimeoutId),this.inactivityTimeoutId=null)},e.prototype.setInactivityTimeout=function(){var e=this;this.inactivityTimeout>0&&0===Object.keys(this.operations).length&&(this.inactivityTimeoutId=setTimeout((function(){0===Object.keys(e.operations).length&&e.close()}),this.inactivityTimeout))},e.prototype.checkOperationOptions=function(e,t){var n=e.query,r=e.variables,i=e.operationName;if(!n)throw new Error("Must provide a query.");if(!t)throw new Error("Must provide an handler.");if(!p.default(n)&&!h.getOperationAST(n,i)||i&&!p.default(i)||r&&!f.default(r))throw new Error("Incorrect option types. query must be a string or a document,`operationName` must be a string, and `variables` must be an object.")},e.prototype.buildMessage=function(e,t,n){return{id:e,type:t,payload:n&&n.query?r(r({},n),{query:"string"==typeof n.query?n.query:d.print(n.query)}):n}},e.prototype.formatErrors=function(e){return Array.isArray(e)?e:e&&e.errors?this.formatErrors(e.errors):e&&e.message?[e]:[{name:"FormatedError",message:"Unknown error",originalError:e}]},e.prototype.sendMessage=function(e,t,n){this.sendMessageRaw(this.buildMessage(e,t,n))},e.prototype.sendMessageRaw=function(e){switch(this.status){case this.wsImpl.OPEN:var t=JSON.stringify(e);try{JSON.parse(t)}catch(t){this.eventEmitter.emit("error",new Error("Message must be JSON-serializable. Got: "+e))}this.client.send(t);break;case this.wsImpl.CONNECTING:this.unsentMessagesQueue.push(e);break;default:this.reconnecting||this.eventEmitter.emit("error",new Error("A message was not sent because socket is not connected, is closing or is already closed. Message was: "+JSON.stringify(e)))}},e.prototype.generateOperationId=function(){return String(++this.nextOperationId)},e.prototype.tryReconnect=function(){var e=this;if(this.reconnect&&!(this.backoff.attempts>=this.reconnectionAttempts)){this.reconnecting||(Object.keys(this.operations).forEach((function(t){e.unsentMessagesQueue.push(e.buildMessage(t,v.default.GQL_START,e.operations[t].options))})),this.reconnecting=!0),this.clearTryReconnectTimeout();var t=this.backoff.duration();this.tryReconnectTimeoutId=setTimeout((function(){e.connect()}),t)}},e.prototype.flushUnsentMessagesQueue=function(){var e=this;this.unsentMessagesQueue.forEach((function(t){e.sendMessageRaw(t)})),this.unsentMessagesQueue=[]},e.prototype.checkConnection=function(){this.wasKeepAliveReceived?this.wasKeepAliveReceived=!1:this.reconnecting||this.close(!1,!0)},e.prototype.checkMaxConnectTimeout=function(){var e=this;this.clearMaxConnectTimeout(),this.maxConnectTimeoutId=setTimeout((function(){e.status!==e.wsImpl.OPEN&&(e.reconnecting=!0,e.close(!1,!0))}),this.maxConnectTimeGenerator.duration())},e.prototype.connect=function(){var e,t=this;this.client=new((e=this.wsImpl).bind.apply(e,a([void 0,this.url,this.wsProtocols],this.wsOptionArguments))),this.checkMaxConnectTimeout(),this.client.onopen=function(){return i(t,void 0,void 0,(function(){var e,t;return o(this,(function(n){switch(n.label){case 0:if(this.status!==this.wsImpl.OPEN)return[3,4];this.clearMaxConnectTimeout(),this.closedByUser=!1,this.eventEmitter.emit(this.reconnecting?"reconnecting":"connecting"),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.connectionParams()];case 2:return e=n.sent(),this.sendMessage(void 0,v.default.GQL_CONNECTION_INIT,e),this.flushUnsentMessagesQueue(),[3,4];case 3:return t=n.sent(),this.sendMessage(void 0,v.default.GQL_CONNECTION_ERROR,t),this.flushUnsentMessagesQueue(),[3,4];case 4:return[2]}}))}))},this.client.onclose=function(){t.closedByUser||t.close(!1,!1)},this.client.onerror=function(e){t.eventEmitter.emit("error",e)},this.client.onmessage=function(e){var n=e.data;t.processReceivedData(n)}},e.prototype.processReceivedData=function(e){var t,n;try{n=(t=JSON.parse(e)).id}catch(t){throw new Error("Message must be JSON-parseable. Got: "+e)}if(-1===[v.default.GQL_DATA,v.default.GQL_COMPLETE,v.default.GQL_ERROR].indexOf(t.type)||this.operations[n])switch(t.type){case v.default.GQL_CONNECTION_ERROR:this.connectionCallback&&this.connectionCallback(t.payload);break;case v.default.GQL_CONNECTION_ACK:this.eventEmitter.emit(this.reconnecting?"reconnected":"connected",t.payload),this.reconnecting=!1,this.backoff.reset(),this.maxConnectTimeGenerator.reset(),this.connectionCallback&&this.connectionCallback();break;case v.default.GQL_COMPLETE:var i=this.operations[n].handler;delete this.operations[n],i.call(this,null,null);break;case v.default.GQL_ERROR:this.operations[n].handler(this.formatErrors(t.payload),null),delete this.operations[n];break;case v.default.GQL_DATA:var o=t.payload.errors?r(r({},t.payload),{errors:this.formatErrors(t.payload.errors)}):t.payload;this.operations[n].handler(null,o);break;case v.default.GQL_CONNECTION_KEEP_ALIVE:var a=void 0===this.wasKeepAliveReceived;this.wasKeepAliveReceived=!0,a&&this.checkConnection(),this.checkConnectionIntervalId&&(clearInterval(this.checkConnectionIntervalId),this.checkConnection()),this.checkConnectionIntervalId=setInterval(this.checkConnection.bind(this),this.wsTimeout);break;default:throw new Error("Invalid message type!")}else this.unsubscribe(n)},e.prototype.unsubscribe=function(e){this.operations[e]&&(delete this.operations[e],this.setInactivityTimeout(),this.sendMessage(e,v.default.GQL_STOP,void 0))},e}();t.SubscriptionClient=b}).call(this,n(42))},function(e,t,n){"use strict";var r=Array.prototype.flatMap,i=r?function(e,t){return r.call(e,t)}:function(e,t){for(var n=[],r=0;r<e.length;r++){var i=t(e[r]);Array.isArray(i)?n=n.concat(i):n.push(i)}return n};t.a=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseHeaders=function(e){if(!e)return{};try{return JSON.parse(e)}catch(e){return{}}}},function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=n(34),a=n(48),s=n(67),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.toJSON=function(){var e=this.toObject();return o.set(e,"navStack",o.List([]))},t}(o.Record({navStack:o.List([]),docsOpen:!1,docsWidth:s.columnWidth,activeTabIdx:null,keyMove:!1}));t.DocsSession=u;var c=o.Map({"":new u});function l(e,t){if(!t)throw new Error("sessionId cant be null");return e.get(t)||new u}t.default=a.handleActions({SET_STACKS:function(e,t){var n=t.payload,r=n.sessionId,i=n.stacks,o=l(e,r);return o=o.set("navStack",i),e.set(r,o)},ADD_STACK:function(e,t){var n=t.payload,r=n.sessionId,i=n.field,a=n.x,s=n.y;i.path||(i.path=i.name);var u=l(e,r);return u=u.update("navStack",(function(e){var t=e;return a<t.count()&&(t=t.slice(0,a)),t.push(o.Map({x:a,y:s,field:i}))})),e.set(r,u)},TOGGLE_DOCS:function(e,t){var n=t.payload,r=n.sessionId,i=n.activeTabIdx,o=l(e,r);return o=o.set("docsOpen",!o.docsOpen),"number"==typeof i&&(o=o.set("activeTabIdx",o.docsOpen?i:null)),e.set(r,o)},SET_DOCS_VISIBLE:function(e,t){var n=t.payload,r=n.sessionId,i=n.open,o=n.activeTabIdx,a=l(e,r);return(a=a.set("docsOpen",!!i)).docsOpen?"number"==typeof o&&(a=a.set("activeTabIdx",o)):a=a.set("activeTabIdx",null),e.set(r,a)},CHANGE_WIDTH_DOCS:function(e,t){var n=t.payload,r=n.sessionId,i=n.width,o=l(e,r);return o=o.set("docsWidth",i),e.set(r,o)},CHANGE_KEY_MOVE:function(e,t){var n=t.payload,r=n.sessionId,i=n.keyMove,o=l(e,r);return o=o.set("keyMove",i),e.set(r,o)}},c)},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0});var i=n(48);t.toggleHistoryItemStarring=(r=i.createActions({TOGGLE_HISTORY_ITEM_STARRING:function(e){return{sessionId:e}},ADD_HISTORY_ITEM:function(e){return{session:e}}})).toggleHistoryItemStarring,t.addHistoryItem=r.addHistoryItem},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0});var i=n(48);t.share=(r=i.createActions({TOGGLE_SHARE_HISTORY:function(){return{}},TOGGLE_SHARE_HEADERS:function(){return{}},TOGGLE_SHARE_ALL_TABS:function(){return{}},SHARE:function(){return{}},SET_SHARE_URL:function(e){return{shareUrl:e}}})).share,t.toggleShareHistory=r.toggleShareHistory,t.toggleShareHeaders=r.toggleShareHeaders,t.toggleShareAllTabs=r.toggleShareAllTabs,t.setShareUrl=r.setShareUrl},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canUseDOM=void 0;var r,i=n(310);var o=((r=i)&&r.__esModule?r:{default:r}).default,a=o.canUseDOM?window.HTMLElement:{};t.canUseDOM=o.canUseDOM;t.default=a},function(e,t,n){"use strict";(function(e){var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e};Object.defineProperty(t,"__esModule",{value:!0});var a=n(3),s=n(320),u=n(30),c=n(179),l=n(37),p=n(28),f=n(32),d=n(68),h=n(11),m=n(87),g=new s,y=function(t){function r(e){var n=t.call(this,e)||this;return n.setRef=function(e){n.node=e},n.onKeyUp=function(e,t){var r=t.keyCode;86!==r&&(r>=65&&r<=90||!t.shiftKey&&r>=48&&r<=57||t.shiftKey&&189===r||t.shiftKey&&50===r||t.shiftKey&&57===r)&&n.editor.execCommand("autocomplete")},n.onEdit=function(){!n.ignoreChangeEvent&&n.props.onChange&&(n.cachedValue=n.editor.getValue(),n.props.onChange(n.cachedValue))},n.onHasCompletion=function(e,t){c.default(e,t,n.props.onHintInformationRender)},n.closeCompletion=function(){n.editor.state.completionActive&&"function"==typeof n.editor.state.completionActive.close&&n.editor.state.completionActive.close()},n.cachedValue=e.value||"",n.props.getRef&&n.props.getRef(n),n}return i(r,t),r.prototype.componentDidMount=function(){var t=this,r=n(16);n(125),n(184),n(90),n(126),n(105),n(91),n(185),n(69),n(106),n(70),n(127),n(107),n(376),n(377),n(381),n(382),n(384),n(189);var i=[];i.push("CodeMirror-linenumbers"),i.push("CodeMirror-foldgutter"),this.editor=r(this.node,{autofocus:!m.isIframe(),value:this.props.value||"",lineNumbers:!0,tabSize:this.props.tabWidth||2,indentWithTabs:this.props.useTabs||!1,mode:"graphql",theme:"graphiql",keyMap:"sublime",autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:!1,foldGutter:{minFoldSize:4},lint:{schema:this.props.schema},hintOptions:{schema:this.props.schema,closeOnUnfocus:!0,completeSingle:!1},info:{schema:this.props.schema,renderDescription:function(e){return g.render(e)},onClick:this.props.onClickReference},jump:{schema:this.props.schema,onClick:this.props.onClickReference},gutters:i,extraKeys:{"Cmd-Space":function(){return t.editor.showHint({completeSingle:!0})},"Ctrl-Space":function(){return t.editor.showHint({completeSingle:!0})},"Alt-Space":function(){return t.editor.showHint({completeSingle:!0})},"Shift-Space":function(){return t.editor.showHint({completeSingle:!0})},"Cmd-Enter":function(){t.props.onRunQuery&&t.props.onRunQuery()},"Ctrl-Enter":function(){t.props.onRunQuery&&t.props.onRunQuery()},"Ctrl-Left":"goSubwordLeft","Ctrl-Right":"goSubwordRight","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-F":"findPersistent","Ctrl-F":"findPersistent"}}),this.editor.on("change",this.onEdit),this.editor.on("keyup",this.onKeyUp),this.editor.on("hasCompletion",this.onHasCompletion),e.editor=this.editor,this.props.scrollTop&&this.scrollTo(this.props.scrollTop)},r.prototype.componentDidUpdate=function(e){var t=this,r=n(16);this.ignoreChangeEvent=!0,this.props.schema!==e.schema&&(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,r.signal(this.editor,"change",this.editor)),this.props.value!==e.value&&this.props.value!==this.cachedValue&&(this.cachedValue=this.props.value,this.editor.setValue(this.props.value)),this.ignoreChangeEvent=!1,setTimeout((function(){t.props.sessionId!==e.sessionId&&t.props.scrollTop&&t.scrollTo(t.props.scrollTop)}))},r.prototype.UNSAFE_componentWillReceiveProps=function(e){this.props.sessionId!==e.sessionId&&(this.closeCompletion(),this.updateSessionScrollTop(),m.isIframe()||this.editor.focus())},r.prototype.scrollTo=function(e){this.node.querySelector(".CodeMirror-scroll").scrollTop=e},r.prototype.updateSessionScrollTop=function(){this.props.setScrollTop&&this.props.sessionId&&this.props.setScrollTop(this.props.sessionId,this.node.querySelector(".CodeMirror-scroll").scrollTop)},r.prototype.componentWillUnmount=function(){this.updateSessionScrollTop(),this.editor.off("change",this.onEdit),this.editor.off("keyup",this.onKeyUp),this.editor.off("hasCompletion",this.onHasCompletion),this.editor=null},r.prototype.render=function(){return a.createElement(d.default,null,a.createElement(E,{ref:this.setRef}))},r.prototype.getCodeMirror=function(){return this.editor},r.prototype.getClientHeight=function(){return this.node&&this.node.clientHeight},r}(a.PureComponent);t.QueryEditor=y;var v=p.createStructuredSelector({value:f.getQuery,sessionId:f.getSelectedSessionIdFromRoot,scrollTop:f.getScrollTop,tabWidth:f.getTabWidth,useTabs:f.getUseTabs});t.default=u.connect(v,{onChange:l.editQuery,setScrollTop:l.setScrollTop})(y);var b,E=h.styled.div(b||(b=o(["\n flex: 1 1 0%;\n position: relative;\n\n .CodeMirror {\n width: 100%;\n background: ",";\n }\n"],["\n flex: 1 1 0%;\n position: relative;\n\n .CodeMirror {\n width: 100%;\n background: ",";\n }\n"])),(function(e){return e.theme.editorColours.editorBackground}))}).call(this,n(42))},function(e,t,n){"use strict";function r(){this.__rules__=[],this.__cache__=null}r.prototype.__find__=function(e){for(var t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1},r.prototype.__compile__=function(){var e=this,t=[""];e.__rules__.forEach((function(e){e.enabled&&e.alt.forEach((function(e){t.indexOf(e)<0&&t.push(e)}))})),e.__cache__={},t.forEach((function(t){e.__cache__[t]=[],e.__rules__.forEach((function(n){n.enabled&&(t&&n.alt.indexOf(t)<0||e.__cache__[t].push(n.fn))}))}))},r.prototype.at=function(e,t,n){var r=this.__find__(e),i=n||{};if(-1===r)throw new Error("Parser rule not found: "+e);this.__rules__[r].fn=t,this.__rules__[r].alt=i.alt||[],this.__cache__=null},r.prototype.before=function(e,t,n,r){var i=this.__find__(e),o=r||{};if(-1===i)throw new Error("Parser rule not found: "+e);this.__rules__.splice(i,0,{name:t,enabled:!0,fn:n,alt:o.alt||[]}),this.__cache__=null},r.prototype.after=function(e,t,n,r){var i=this.__find__(e),o=r||{};if(-1===i)throw new Error("Parser rule not found: "+e);this.__rules__.splice(i+1,0,{name:t,enabled:!0,fn:n,alt:o.alt||[]}),this.__cache__=null},r.prototype.push=function(e,t,n){var r=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:r.alt||[]}),this.__cache__=null},r.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);var n=[];return e.forEach((function(e){var r=this.__find__(e);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+e)}this.__rules__[r].enabled=!0,n.push(e)}),this),this.__cache__=null,n},r.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach((function(e){e.enabled=!1})),this.enable(e,t)},r.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);var n=[];return e.forEach((function(e){var r=this.__find__(e);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+e)}this.__rules__[r].enabled=!1,n.push(e)}),this),this.__cache__=null,n},r.prototype.getRules=function(e){return null===this.__cache__&&this.__compile__(),this.__cache__[e]||[]},e.exports=r},function(e,t,n){"use strict";function r(e,t,n){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}r.prototype.attrIndex=function(e){var t,n,r;if(!this.attrs)return-1;for(n=0,r=(t=this.attrs).length;n<r;n++)if(t[n][0]===e)return n;return-1},r.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]},r.prototype.attrSet=function(e,t){var n=this.attrIndex(e),r=[e,t];n<0?this.attrPush(r):this.attrs[n]=r},r.prototype.attrGet=function(e){var t=this.attrIndex(e),n=null;return t>=0&&(n=this.attrs[t][1]),n},r.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=r},function(e,t,n){const{defaults:r}=n(89),{cleanUrl:i,escape:o}=n(75);e.exports=class{constructor(e){this.options=e||r}code(e,t,n){const r=(t||"").match(/\S*/)[0];if(this.options.highlight){const t=this.options.highlight(e,r);null!=t&&t!==e&&(n=!0,e=t)}return r?'<pre><code class="'+this.options.langPrefix+o(r,!0)+'">'+(n?e:o(e,!0))+"</code></pre>\n":"<pre><code>"+(n?e:o(e,!0))+"</code></pre>"}blockquote(e){return"<blockquote>\n"+e+"</blockquote>\n"}html(e){return e}heading(e,t,n,r){return this.options.headerIds?"<h"+t+' id="'+this.options.headerPrefix+r.slug(n)+'">'+e+"</h"+t+">\n":"<h"+t+">"+e+"</h"+t+">\n"}hr(){return this.options.xhtml?"<hr/>\n":"<hr>\n"}list(e,t,n){const r=t?"ol":"ul";return"<"+r+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"</"+r+">\n"}listitem(e){return"<li>"+e+"</li>\n"}checkbox(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "}paragraph(e){return"<p>"+e+"</p>\n"}table(e,t){return t&&(t="<tbody>"+t+"</tbody>"),"<table>\n<thead>\n"+e+"</thead>\n"+t+"</table>\n"}tablerow(e){return"<tr>\n"+e+"</tr>\n"}tablecell(e,t){const n=t.header?"th":"td";return(t.align?"<"+n+' align="'+t.align+'">':"<"+n+">")+e+"</"+n+">\n"}strong(e){return"<strong>"+e+"</strong>"}em(e){return"<em>"+e+"</em>"}codespan(e){return"<code>"+e+"</code>"}br(){return this.options.xhtml?"<br/>":"<br>"}del(e){return"<del>"+e+"</del>"}link(e,t,n){if(null===(e=i(this.options.sanitize,this.options.baseUrl,e)))return n;let r='<a href="'+o(e)+'"';return t&&(r+=' title="'+t+'"'),r+=">"+n+"</a>",r}image(e,t,n){if(null===(e=i(this.options.sanitize,this.options.baseUrl,e)))return n;let r='<img src="'+e+'" alt="'+n+'"';return t&&(r+=' title="'+t+'"'),r+=this.options.xhtml?"/>":">",r}text(e){return e}}},function(e,t,n){!function(e){"use strict";function t(e,t){this.cm=e,this.options=t,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length;var n=this;e.on("cursorActivity",this.activityFunc=function(){n.cursorActivity()})}e.showHint=function(e,t,n){if(!t)return e.showHint(n);n&&n.async&&(t.async=!0);var r={hint:t};if(n)for(var i in n)r[i]=n[i];return e.showHint(r)},e.defineExtension("showHint",(function(n){n=function(e,t,n){var r=e.options.hintOptions,i={};for(var o in u)i[o]=u[o];if(r)for(var o in r)void 0!==r[o]&&(i[o]=r[o]);if(n)for(var o in n)void 0!==n[o]&&(i[o]=n[o]);return i.hint.resolve&&(i.hint=i.hint.resolve(e,t)),i}(this,this.getCursor("start"),n);var r=this.listSelections();if(!(r.length>1)){if(this.somethingSelected()){if(!n.hint.supportsSelection)return;for(var i=0;i<r.length;i++)if(r[i].head.line!=r[i].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var o=this.state.completionActive=new t(this,n);o.options.hint&&(e.signal(this,"startCompletion",this),o.update(!0))}})),e.defineExtension("closeHint",(function(){this.state.completionActive&&this.state.completionActive.close()}));var n=window.requestAnimationFrame||function(e){return setTimeout(e,1e3/60)},r=window.cancelAnimationFrame||clearTimeout;function i(e){return"string"==typeof e?e:e.text}function o(e,t){for(;t&&t!=e;){if("LI"===t.nodeName.toUpperCase()&&t.parentNode==e)return t;t=t.parentNode}}function a(t,n){this.completion=t,this.data=n,this.picked=!1;var r=this,a=t.cm,s=a.getInputField().ownerDocument,u=s.defaultView||s.parentWindow,c=this.hints=s.createElement("ul"),l=t.cm.options.theme;c.className="CodeMirror-hints "+l,this.selectedHint=n.selectedHint||0;for(var p=n.list,f=0;f<p.length;++f){var d=c.appendChild(s.createElement("li")),h=p[f],m="CodeMirror-hint"+(f!=this.selectedHint?"":" CodeMirror-hint-active");null!=h.className&&(m=h.className+" "+m),d.className=m,h.render?h.render(d,n,h):d.appendChild(s.createTextNode(h.displayText||i(h))),d.hintId=f}var g=t.options.container||s.body,y=a.cursorCoords(t.options.alignWithWord?n.from:null),v=y.left,b=y.bottom,E=!0,x=0,D=0;if(g!==s.body){var C=-1!==["absolute","relative","fixed"].indexOf(u.getComputedStyle(g).position)?g:g.offsetParent,w=C.getBoundingClientRect(),S=s.body.getBoundingClientRect();x=w.left-S.left-C.scrollLeft,D=w.top-S.top-C.scrollTop}c.style.left=v-x+"px",c.style.top=b-D+"px";var k=u.innerWidth||Math.max(s.body.offsetWidth,s.documentElement.offsetWidth),A=u.innerHeight||Math.max(s.body.offsetHeight,s.documentElement.offsetHeight);g.appendChild(c);var T=c.getBoundingClientRect(),_=T.bottom-A,O=c.scrollHeight>c.clientHeight+1,F=a.getScrollInfo();if(_>0){var N=T.bottom-T.top;if(y.top-(y.bottom-T.top)-N>0)c.style.top=(b=y.top-N-D)+"px",E=!1;else if(N>A){c.style.height=A-5+"px",c.style.top=(b=y.bottom-T.top-D)+"px";var I=a.getCursor();n.from.ch!=I.ch&&(y=a.cursorCoords(I),c.style.left=(v=y.left-x)+"px",T=c.getBoundingClientRect())}}var M,j=T.right-k;if(j>0&&(T.right-T.left>k&&(c.style.width=k-5+"px",j-=T.right-T.left-k),c.style.left=(v=y.left-j-x)+"px"),O)for(var L=c.firstChild;L;L=L.nextSibling)L.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:p.length,close:function(){t.close()},pick:function(){r.pick()},data:n})),t.options.closeOnUnfocus&&(a.on("blur",this.onBlur=function(){M=setTimeout((function(){t.close()}),100)}),a.on("focus",this.onFocus=function(){clearTimeout(M)})),a.on("scroll",this.onScroll=function(){var e=a.getScrollInfo(),n=a.getWrapperElement().getBoundingClientRect(),r=b+F.top-e.top,i=r-(u.pageYOffset||(s.documentElement||s.body).scrollTop);if(E||(i+=c.offsetHeight),i<=n.top||i>=n.bottom)return t.close();c.style.top=r+"px",c.style.left=v+F.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",p[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<e.ch||this.cm.somethingSelected()||!t.ch||this.options.closeCharacters.test(i.charAt(t.ch-1)))this.close();else{var o=this;this.debounce=n((function(){o.update()})),this.widget&&this.widget.disable()}},update:function(e){if(null!=this.tick){var t=this,n=++this.tick;s(this.options.hint,this.cm,this.options,(function(r){t.tick==n&&t.finishUpdate(r,e)}))}},finishUpdate:function(t,n){this.data&&e.signal(this.data,"update");var r=this.widget&&this.widget.picked||n&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=t,t&&t.list.length&&(r&&1==t.list.length?this.pick(t,0):(this.widget=new a(this,t),e.signal(t,"shown")))}},a.prototype={close:function(){if(this.completion.widget==this){this.completion.widget=null,this.hints.parentNode.removeChild(this.hints),this.completion.cm.removeKeyMap(this.keyMap);var e=this.completion.cm;this.completion.options.closeOnUnfocus&&(e.off("blur",this.onBlur),e.off("focus",this.onFocus)),e.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var e=this;this.keyMap={Enter:function(){e.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(t,n){if(t>=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.offsetTop<this.hints.scrollTop?this.hints.scrollTop=t.offsetTop-r.offsetTop:n.offsetTop+n.offsetHeight>this.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;r<t.length;r++)t[r].supportsSelection&&n.push(t[r]);return n}(e,i);!function i(o){if(o==r.length)return t(null);s(r[o],e,n,(function(e){e&&e.list.length>0?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<i.ch&&/\w/.test(o.string.charAt(i.ch-o.start-1))?r=o.string.substr(0,i.ch-o.start):(r="",a=i);for(var u=[],c=0;c<n.words.length;c++){var l=n.words[c];l.slice(0,r.length)==r&&u.push(l)}if(u.length)return{list:u,from:a,to:s}})),e.commands.autocomplete=e.showHint;var u={hint:e.hint.auto,completeSingle:!0,alignWithWord:!0,closeCharacters:/[\s()\[\]{};:>,]/,closeOnUnfocus:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null};e.defineOption("hintOptions",null)}(n(16))},function(e,t,n){!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<a.length;c++){if(!a[c].empty())return e.Pass;var l=u(t,a[c].head);if(!l||o.indexOf(l)%2!=0)return e.Pass}for(c=a.length-1;c>=0;c--){var p=a[c].head;t.replaceRange("",n(p.line,p.ch-1),n(p.line,p.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;a<o.length;a++){if(!o[a].empty())return e.Pass;var c=u(t,o[a].head);if(!c||i.indexOf(c)%2!=0)return e.Pass}t.operation((function(){var e=t.lineSeparator()||"\n";t.replaceSelection(e+e,null),t.execCommand("goCharLeft"),o=t.listSelections();for(var n=0;n<o.length;n++){var r=o[n].head.line;t.indentLine(r,null,!0),t.indentLine(r+1,null,!0)}}))}};function o(e){for(var t=0;t<e.length;t++){var n=e.charAt(t),r="'"+n+"'";i[r]||(i[r]=a(n))}}function a(t){return function(i){return function(t,i){var o=s(t);if(!o||t.getOption("disableInput"))return e.Pass;var a=r(o,"pairs"),u=a.indexOf(i);if(-1==u)return e.Pass;for(var l,p=r(o,"closeBefore"),f=r(o,"triples"),d=a.charAt(u+1)==i,h=t.listSelections(),m=u%2==0,g=0;g<h.length;g++){var y,v=h[g],b=v.head,E=t.getRange(b,n(b.line,b.ch+1));if(m&&!v.empty())y="surround";else if(!d&&m||E!=i)if(d&&b.ch>1&&f.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;y="addFour"}else if(d){var x=0==b.ch?" ":t.getRange(n(b.line,b.ch-1),b);if(e.isWordChar(E)||x==i||e.isWordChar(x))return e.Pass;y="both"}else{if(!m||!(0===E.length||/\s/.test(E)||p.indexOf(E)>-1))return e.Pass;y="both"}else y=d&&c(t,b)?"both":f.indexOf(i)>=0&&t.getRange(b,n(b.line,b.ch+3))==i+i+i?"skipThree":"skip";if(l){if(l!=y)return e.Pass}else l=y}var D=u%2?a.charAt(u-1):i,C=u%2?i:a.charAt(u+1);t.operation((function(){if("skip"==l)t.execCommand("goCharRight");else if("skipThree"==l)for(var r=0;r<3;r++)t.execCommand("goCharRight");else if("surround"==l){var i=t.getSelections();for(r=0;r<i.length;r++)i[r]=D+i[r]+C;for(t.replaceSelections(i,"around"),i=t.listSelections().slice(),r=0;r<i.length;r++)i[r]=(o=i[r],a=void 0,a=e.cmpPos(o.anchor,o.head)>0,{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"==l?(t.replaceSelection(D+C,null),t.triggerElectric(D+C),t.execCommand("goCharLeft")):"addFour"==l&&(t.replaceSelection(D+D+D+D,"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 u(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(16))},function(e,t,n){!function(e){"use strict";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 u=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(u)}),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,u=e.findMarksAt(e.coordsChar({left:o,top:a},"client")),c=[],l=0;l<u.length;++l){var p=u[l].__annotation;p&&c.push(p)}c.length&&function(e,t,n){for(var i=n.target||n.srcElement,o=document.createDocumentFragment(),a=0;a<t.length;a++){var u=t[a];o.appendChild(s(u))}r(e,n,o,i)}(e,c,t)}}(e,t)},this.waitingFor=0}function o(e){var n=e.state.lint;n.hasGutter&&e.clearGutter(t);for(var r=0;r<n.marked.length;++r)n.marked[r].clear();n.marked.length=0}function a(t,n,i,o,a){var s=document.createElement("div"),u=s;return s.className="CodeMirror-lint-marker CodeMirror-lint-marker-"+i,o&&((u=s.appendChild(document.createElement("div"))).className="CodeMirror-lint-marker CodeMirror-lint-marker-multiple"),0!=a&&e.on(u,"mouseover",(function(e){r(t,e,n,u)})),s}function s(e){var t=e.severity;t||(t="error");var n=document.createElement("div");return n.className="CodeMirror-lint-message CodeMirror-lint-message-"+t,void 0!==e.messageHTML?n.innerHTML=e.messageHTML:n.appendChild(document.createTextNode(e.message)),n}function u(t){var n=t.state.lint.options,r=n.options||n,i=n.getAnnotations||t.getHelper(e.Pos(0,0),"lint");if(i)if(n.async||i.async)!function(t,n,r){var i=t.state.lint,o=++i.waitingFor;function a(){o=-1,t.off("change",a)}t.on("change",a),n(t.getValue(),(function(n,r){t.off("change",a),i.waitingFor==o&&(r&&n instanceof e&&(n=r),t.operation((function(){c(t,n)})))}),r,t)}(t,i,r);else{var o=i(t.getValue(),r,t);if(!o)return;o.then?o.then((function(e){t.operation((function(){c(t,e)}))})):t.operation((function(){c(t,o)}))}}function c(e,n){o(e);for(var r,i,u=e.state.lint,c=u.options,l=function(e){for(var t=[],n=0;n<e.length;++n){var r=e[n],i=r.from.line;(t[i]||(t[i]=[])).push(r)}return t}(n),p=0;p<l.length;++p){var f=l[p];if(f){for(var d=null,h=u.hasGutter&&document.createDocumentFragment(),m=0;m<f.length;++m){var g=f[m],y=g.severity;y||(y="error"),i=y,d="error"==(r=d)?r:i,c.formatAnnotation&&(g=c.formatAnnotation(g)),u.hasGutter&&h.appendChild(s(g)),g.to&&u.marked.push(e.markText(g.from,g.to,{className:"CodeMirror-lint-mark CodeMirror-lint-mark-"+y,__annotation:g}))}u.hasGutter&&e.setGutterMarker(p,t,a(e,h,d,f.length>1,u.options.tooltips))}}c.onUpdateLinting&&c.onUpdateLinting(n,l,e)}function l(e){var t=e.state.lint;t&&(clearTimeout(t.timeout),t.timeout=setTimeout((function(){u(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",l),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,p=0;p<s.length;++p)s[p]==t&&(c=!0);var f=n.state.lint=new i(n,(d=r)instanceof Function?{getAnnotations:d}:(d&&!0!==d||(d={}),d),c);!1!==f.options.lintOnChange&&n.on("change",l),0!=f.options.tooltips&&"gutter"!=f.options.tooltips&&e.on(n.getWrapperElement(),"mouseover",f.onMouseOver),u(n)}var d})),e.defineExtension("performLint",(function(){this.state.lint&&u(this)}))}(n(16))},function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var s=n(3),u=n(11),c=n(190),l=n(388),p=n(394),f=n(28),d=n(32),h=n(30),m=n(108),g=n(7),y=n(37),v=n(119),b=n(97),E=n(41),x=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.copyCurlToClipboard=function(){var e=t.getCurl();c(e)},t.onChange=function(e){t.props.editEndpoint(e.target.value)},t.onKeyDown=function(e){13===e.keyCode&&t.props.refetchSchema()},t.openHistory=function(){t.props.openHistory()},t.getCurl=function(){var e,n=t.props.session;try{e=JSON.parse(n.variables)}catch(e){}var r,i=JSON.stringify({query:n.query,variables:e,operationName:n.operationName});try{r=JSON.parse(n.headers)}catch(e){}var o=t.props.settings["request.globalHeaders"],s=a(a({"Accept-Encoding":"gzip, deflate, br","Content-Type":"application/json",Accept:"application/json",Connection:"keep-alive",DNT:"1",Origin:location.origin||n.endpoint},o),r),u=Object.keys(s).map((function(e){return"-H '"+e+": "+s[e]+"'"})).join(" ");return"curl '"+n.endpoint+"' "+u+" --data-binary '"+i+"' --compressed"},t}return i(n,e),n.prototype.render=function(){var e=this.props,n=e.endpointUnreachable,r=e.settings;return s.createElement(O,null,s.createElement(t.Button,{onClick:this.props.prettifyQuery},"Prettify"),s.createElement(t.Button,{onClick:this.openHistory},"History"),s.createElement(N,null,s.createElement(F,{value:this.props.endpoint,onChange:this.onChange,onKeyDown:this.onKeyDown,onBlur:this.props.refetchSchema,disabled:this.props.fixedEndpoint,active:!this.props.fixedEndpoint}),n?s.createElement(I,null,s.createElement("span",null,"Server cannot be reached"),s.createElement(L,null)):s.createElement("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",position:"absolute",left:"6px"}},s.createElement(p.default,{settings:r,isPollingSchema:this.props.isPollingSchema,onReloadSchema:this.props.refetchSchema}))),s.createElement(t.Button,{onClick:this.copyCurlToClipboard},"Copy CURL"),this.props.shareEnabled&&s.createElement(l.default,null,s.createElement(t.Button,null,"Share Playground")))},n.contextTypes={store:g.shape({subscribe:g.func.isRequired,dispatch:g.func.isRequired,getState:g.func.isRequired})},n}(s.Component),D=f.createStructuredSelector({endpoint:d.getEndpoint,fixedEndpoint:m.getFixedEndpoint,isPollingSchema:d.getIsPollingSchema,endpointUnreachable:d.getEndpointUnreachable,settings:E.getSettings,session:d.getSelectedSession});t.default=h.connect(D,{editEndpoint:y.editEndpoint,prettifyQuery:y.prettifyQuery,openHistory:b.openHistory,share:v.share,refetchSchema:y.refetchSchema})(x),t.Button=u.styled.button(C||(C=o(["\n text-transform: uppercase;\n font-weight: 600;\n color: ",";\n background: ",";\n border-radius: 2px;\n flex: 0 0 auto;\n letter-spacing: 0.53px;\n font-size: 14px;\n padding: 6px 9px 7px 10px;\n margin-left: 6px;\n\n cursor: pointer;\n transition: 0.1s linear background-color;\n &:first-child {\n margin-left: 0;\n }\n &:hover {\n background-color: ",";\n }\n"],["\n text-transform: uppercase;\n font-weight: 600;\n color: ",";\n background: ",";\n border-radius: 2px;\n flex: 0 0 auto;\n letter-spacing: 0.53px;\n font-size: 14px;\n padding: 6px 9px 7px 10px;\n margin-left: 6px;\n\n cursor: pointer;\n transition: 0.1s linear background-color;\n &:first-child {\n margin-left: 0;\n }\n &:hover {\n background-color: ",";\n }\n"])),(function(e){return e.theme.editorColours.buttonText}),(function(e){return e.theme.editorColours.button}),(function(e){return e.theme.editorColours.buttonHover}));var C,w,S,k,A,T,_,O=u.styled.div(w||(w=o(["\n display: flex;\n background: ",";\n padding: 10px 10px 4px;\n align-items: center;\n"],["\n display: flex;\n background: ",";\n padding: 10px 10px 4px;\n align-items: center;\n"])),(function(e){return e.theme.editorColours.navigationBar})),F=u.styled("input")(S||(S=o(["\n background: ",";\n border-radius: 4px;\n color: ",";\n border: 1px solid ",";\n padding: 6px 12px;\n padding-left: 30px;\n font-size: 13px;\n flex: 1;\n"],["\n background: ",";\n border-radius: 4px;\n color: ",";\n border: 1px solid ",";\n padding: 6px 12px;\n padding-left: 30px;\n font-size: 13px;\n flex: 1;\n"])),(function(e){return e.theme.editorColours.button}),(function(e){return e.active?e.theme.editorColours.navigationBarText:e.theme.editorColours.textInactive}),(function(e){return e.theme.editorColours.background})),N=u.styled.div(k||(k=o(["\n flex: 1;\n margin-left: 6px;\n position: relative;\n display: flex;\n align-items: center;\n"],["\n flex: 1;\n margin-left: 6px;\n position: relative;\n display: flex;\n align-items: center;\n"]))),I=u.styled.div(A||(A=o(["\n position: absolute;\n right: 5px;\n display: flex;\n align-items: center;\n color: #f25c54;\n"],["\n position: absolute;\n right: 5px;\n display: flex;\n align-items: center;\n color: #f25c54;\n"]))),M=u.styled.div(T||(T=o(["\n width: 16px;\n height: 16px;\n background-color: ",";\n border-radius: 100%;\n"],["\n width: 16px;\n height: 16px;\n background-color: ",";\n border-radius: 100%;\n"])),(function(e){return e.theme.editorColours.icon})),j=u.styled.div(_||(_=o(["\n position: relative;\n margin: 6px;\n"],["\n position: relative;\n margin: 6px;\n"]))),L=function(){return s.createElement(j,null,s.createElement(M,null))}},function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e};Object.defineProperty(t,"__esModule",{value:!0});var i,o,a,s=n(3),u=n(11),c=u.keyframes(i||(i=r(["\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(359deg);\n }\n"],["\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(359deg);\n }\n"]))),l=u.styled.div(o||(o=r(["\n height: 36px;\n left: 50%;\n position: absolute;\n top: 50%;\n transform: translate(-50%, -50%);\n width: 36px;\n z-index: 10;\n"],["\n height: 36px;\n left: 50%;\n position: absolute;\n top: 50%;\n transform: translate(-50%, -50%);\n width: 36px;\n z-index: 10;\n"]))),p=u.styled.div(a||(a=r(["\n position: absolute;\n display: inline-block;\n height: 24px;\n width: 24px;\n vertical-align: middle;\n\n animation: "," 0.6s infinite linear;\n\n border-radius: 100%;\n border-bottom: 6px solid rgba(150, 150, 150, 0.15);\n border-left: 6px solid rgba(150, 150, 150, 0.15);\n border-right: 6px solid rgba(150, 150, 150, 0.15);\n border-top: 6px solid rgba(150, 150, 150, 0.8);\n"],["\n position: absolute;\n display: inline-block;\n height: 24px;\n width: 24px;\n vertical-align: middle;\n\n animation: "," 0.6s infinite linear;\n\n border-radius: 100%;\n border-bottom: 6px solid rgba(150, 150, 150, 0.15);\n border-left: 6px solid rgba(150, 150, 150, 0.15);\n border-right: 6px solid rgba(150, 150, 150, 0.15);\n border-top: 6px solid rgba(150, 150, 150, 0.8);\n"])),c);t.default=function(){return s.createElement(l,null,s.createElement(p,null))}},function(e,t,n){"use strict";function r(){this.__rules__=[],this.__cache__=null}r.prototype.__find__=function(e){for(var t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1},r.prototype.__compile__=function(){var e=this,t=[""];e.__rules__.forEach((function(e){e.enabled&&e.alt.forEach((function(e){t.indexOf(e)<0&&t.push(e)}))})),e.__cache__={},t.forEach((function(t){e.__cache__[t]=[],e.__rules__.forEach((function(n){n.enabled&&(t&&n.alt.indexOf(t)<0||e.__cache__[t].push(n.fn))}))}))},r.prototype.at=function(e,t,n){var r=this.__find__(e),i=n||{};if(-1===r)throw new Error("Parser rule not found: "+e);this.__rules__[r].fn=t,this.__rules__[r].alt=i.alt||[],this.__cache__=null},r.prototype.before=function(e,t,n,r){var i=this.__find__(e),o=r||{};if(-1===i)throw new Error("Parser rule not found: "+e);this.__rules__.splice(i,0,{name:t,enabled:!0,fn:n,alt:o.alt||[]}),this.__cache__=null},r.prototype.after=function(e,t,n,r){var i=this.__find__(e),o=r||{};if(-1===i)throw new Error("Parser rule not found: "+e);this.__rules__.splice(i+1,0,{name:t,enabled:!0,fn:n,alt:o.alt||[]}),this.__cache__=null},r.prototype.push=function(e,t,n){var r=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:r.alt||[]}),this.__cache__=null},r.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);var n=[];return e.forEach((function(e){var r=this.__find__(e);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+e)}this.__rules__[r].enabled=!0,n.push(e)}),this),this.__cache__=null,n},r.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach((function(e){e.enabled=!1})),this.enable(e,t)},r.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);var n=[];return e.forEach((function(e){var r=this.__find__(e);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+e)}this.__rules__[r].enabled=!1,n.push(e)}),this),this.__cache__=null,n},r.prototype.getRules=function(e){return null===this.__cache__&&this.__compile__(),this.__cache__[e]||[]},e.exports=r},function(e,t,n){"use strict";function r(e,t,n){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}r.prototype.attrIndex=function(e){var t,n,r;if(!this.attrs)return-1;for(n=0,r=(t=this.attrs).length;n<r;n++)if(t[n][0]===e)return n;return-1},r.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]},r.prototype.attrSet=function(e,t){var n=this.attrIndex(e),r=[e,t];n<0?this.attrPush(r):this.attrs[n]=r},r.prototype.attrGet=function(e){var t=this.attrIndex(e),n=null;return t>=0&&(n=this.attrs[t][1]),n},r.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=r},function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e};Object.defineProperty(t,"__esModule",{value:!0});var i,o=n(11);t.DocType=o.styled.div(i||(i=r(["\n padding: 20px 16px 0 16px;\n overflow: auto;\n font-size: 14px;\n"],["\n padding: 20px 16px 0 16px;\n overflow: auto;\n font-size: 14px;\n"])))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(20),i=n(162);function o(e){return"string"==typeof e?{endpoint:e,subscriptionEndpoint:void 0}:{endpoint:e.url,subscriptionEndpoint:e.subscription?e.subscription.url:void 0,headers:e.headers}}t.getActiveEndpoints=function(e,t,n){return o(n?e.projects[n].extensions.endpoints[t]:e.extensions.endpoints[t])},t.getEndpointFromEndpointConfig=o;var a=new i({max:10});t.cachedPrintSchema=function(e){var t=a.get(e);if(t)return t;var n=r.printSchema(e);return a.set(e,n),n}},function(e,t,n){"use strict";var r=n(78);e.exports=new r({explicit:[n(497),n(498),n(499)]})},function(e,t,n){"use strict";n.r(t),n.d(t,"CharacterStream",(function(){return r})),n.d(t,"LexRules",(function(){return l})),n.d(t,"ParseRules",(function(){return p})),n.d(t,"isIgnored",(function(){return c})),n.d(t,"butNot",(function(){return a})),n.d(t,"list",(function(){return o})),n.d(t,"opt",(function(){return i})),n.d(t,"p",(function(){return u})),n.d(t,"t",(function(){return s})),n.d(t,"onlineParser",(function(){return m})),n.d(t,"AdditionalRuleKinds",(function(){return w})),n.d(t,"RuleKinds",(function(){return S}));class r{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;if("string"==typeof e){i=new RegExp(e,n?"i":"g").test(this._sourceText.substr(this._pos,e.length)),r=e}else e instanceof RegExp&&(i=this._sourceText.slice(this._pos).match(e),r=i&&i[0]);return!(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}}function i(e){return{ofRule:e}}function o(e,t){return{ofRule:e,isList:!0,separator:t}}function a(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}function s(e,t){return{style:t,match:t=>t.kind===e}}function u(e,t){return{style:t||"punctuation",match:t=>"Punctuation"===t.kind&&t.value===e}}const c=e=>" "===e||"\t"===e||","===e||"\n"===e||"\r"===e||"\ufeff"===e||" "===e,l={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:/^#.*/},p={Document:[o("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:[d("query"),i(h("def")),i("VariableDefinitions"),o("Directive"),"SelectionSet"],Mutation:[d("mutation"),i(h("def")),i("VariableDefinitions"),o("Directive"),"SelectionSet"],Subscription:[d("subscription"),i(h("def")),i("VariableDefinitions"),o("Directive"),"SelectionSet"],VariableDefinitions:[u("("),o("VariableDefinition"),u(")")],VariableDefinition:["Variable",u(":"),"Type",i("DefaultValue")],Variable:[u("$","variable"),h("variable")],DefaultValue:[u("="),"Value"],SelectionSet:[u("{"),o("Selection"),u("}")],Selection:(e,t)=>"..."===e.value?t.match(/[\s\u00a0,]*(on\b|@|{)/,!1)?"InlineFragment":"FragmentSpread":t.match(/[\s\u00a0,]*:/,!1)?"AliasedField":"Field",AliasedField:[h("property"),u(":"),h("qualifier"),i("Arguments"),o("Directive"),i("SelectionSet")],Field:[h("property"),i("Arguments"),o("Directive"),i("SelectionSet")],Arguments:[u("("),o("Argument"),u(")")],Argument:[h("attribute"),u(":"),"Value"],FragmentSpread:[u("..."),h("def"),o("Directive")],InlineFragment:[u("..."),i("TypeCondition"),o("Directive"),"SelectionSet"],FragmentDefinition:[d("fragment"),i(a(h("def"),[d("on")])),"TypeCondition",o("Directive"),"SelectionSet"],TypeCondition:[d("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"}return null;case"Name":switch(e.value){case"true":case"false":return"BooleanValue"}return"null"===e.value?"NullValue":"EnumValue"}},NumberValue:[s("Number","number")],StringValue:[s("String","string")],BooleanValue:[s("Name","builtin")],NullValue:[s("Name","keyword")],EnumValue:[h("string-2")],ListValue:[u("["),o("Value"),u("]")],ObjectValue:[u("{"),o("ObjectField"),u("}")],ObjectField:[h("attribute"),u(":"),"Value"],Type:e=>"["===e.value?"ListType":"NonNullType",ListType:[u("["),"Type",u("]"),i(u("!"))],NonNullType:["NamedType",i(u("!"))],NamedType:[(f="atom",{style:f,match:e=>"Name"===e.kind,update(e,t){e.prevState&&e.prevState.prevState&&(e.name=t.value,e.prevState.prevState.type=t.value)}})],Directive:[u("@","meta"),h("meta"),i("Arguments")],SchemaDef:[d("schema"),o("Directive"),u("{"),o("OperationTypeDef"),u("}")],OperationTypeDef:[h("keyword"),u(":"),h("atom")],ScalarDef:[d("scalar"),h("atom"),o("Directive")],ObjectTypeDef:[d("type"),h("atom"),i("Implements"),o("Directive"),u("{"),o("FieldDef"),u("}")],Implements:[d("implements"),o("NamedType")],FieldDef:[h("property"),i("ArgumentsDef"),u(":"),"Type",o("Directive")],ArgumentsDef:[u("("),o("InputValueDef"),u(")")],InputValueDef:[h("attribute"),u(":"),"Type",i("DefaultValue"),o("Directive")],InterfaceDef:[d("interface"),h("atom"),o("Directive"),u("{"),o("FieldDef"),u("}")],UnionDef:[d("union"),h("atom"),o("Directive"),u("="),o("UnionMember",u("|"))],UnionMember:["NamedType"],EnumDef:[d("enum"),h("atom"),o("Directive"),u("{"),o("EnumValueDef"),u("}")],EnumValueDef:[h("string-2"),o("Directive")],InputDef:[d("input"),h("atom"),o("Directive"),u("{"),o("InputValueDef"),u("}")],ExtendDef:[d("extend"),"ObjectTypeDef"],DirectiveDef:[d("directive"),u("@","meta"),h("meta"),i("ArgumentsDef"),d("on"),o("DirectiveLocation",u("|"))],DirectiveLocation:[h("string-2")]};var f;function d(e){return{style:"keyword",match:t=>"Name"===t.kind&&t.value===e}}function h(e){return{style:e,match:e=>"Name"===e.kind,update(e,t){e.name=t.value}}}function m(e={eatWhitespace:e=>e.eatWhile(c),lexRules:l,parseRules:p,editorConfig:{}}){return{startState(){const t={level:0,step:0,name:null,kind:null,type:null,rule:null,needsSeperator:!1,prevState:null};return v(e.parseRules,t,"Document"),t},token:(t,n)=>function(e,t,n){const{lexRules:r,parseRules:i,eatWhitespace:o,editorConfig:a}=n;t.rule&&0===t.rule.length?b(t):t.needsAdvance&&(t.needsAdvance=!1,E(t,!0));if(e.sol()){const n=a&&a.tabSize||2;t.indentLevel=Math.floor(e.indentation()/n)}if(o(e))return"ws";const s=function(e,t){const n=Object.keys(e);for(let r=0;r<n.length;r++){const i=t.match(e[n[r]]);if(i&&i instanceof Array)return{kind:n[r],value:i[0]}}}(r,e);if(!s){return e.match(/\S+/)||e.match(/\s/),v(y,t,"Invalid"),"invalidchar"}if("Comment"===s.kind)return v(y,t,"Comment"),"comment";const u=g({},t);if("Punctuation"===s.kind)if(/^[{([]/.test(s.value))void 0!==t.indentLevel&&(t.levels=(t.levels||[]).concat(t.indentLevel+1));else if(/^[})\]]/.test(s.value)){const e=t.levels=(t.levels||[]).slice(0,-1);t.indentLevel&&e.length>0&&e[e.length-1]<t.indentLevel&&(t.indentLevel=e[e.length-1])}for(;t.rule;){let n="function"==typeof t.rule?0===t.step?t.rule(s,e):null:t.rule[t.step];if(t.needsSeperator&&(n=n&&n.separator),n){if(n.ofRule&&(n=n.ofRule),"string"==typeof n){v(i,t,n);continue}if(n.match&&n.match(s))return n.update&&n.update(t,s),"Punctuation"===s.kind?E(t,!0):t.needsAdvance=!0,n.style}D(t)}return g(t,u),v(y,t,"Invalid"),"invalidchar"}(t,n,e)}}function g(e,t){const n=Object.keys(t);for(let r=0;r<n.length;r++)e[n[r]]=t[n[r]];return e}const y={Invalid:[],Comment:[]};function v(e,t,n){if(!e[n])throw new TypeError("Unknown rule: "+n);t.prevState=Object.assign({},t),t.kind=n,t.name=null,t.type=null,t.rule=e[n],t.step=0,t.needsSeperator=!1}function b(e){e.prevState&&(e.kind=e.prevState.kind,e.name=e.prevState.name,e.type=e.prevState.type,e.rule=e.prevState.rule,e.step=e.prevState.step,e.needsSeperator=e.prevState.needsSeperator,e.prevState=e.prevState.prevState)}function E(e,t){if(x(e)&&e.rule){const n=e.rule[e.step];if(n.separator){const t=n.separator;if(e.needsSeperator=!e.needsSeperator,!e.needsSeperator&&t.ofRule)return}if(t)return}for(e.needsSeperator=!1,e.step++;e.rule&&!(Array.isArray(e.rule)&&e.step<e.rule.length);)b(e),e.rule&&(x(e)?e.rule&&e.rule[e.step].separator&&(e.needsSeperator=!e.needsSeperator):(e.needsSeperator=!1,e.step++))}function x(e){const t=Array.isArray(e.rule)&&"string"!=typeof e.rule[e.step]&&e.rule[e.step];return t&&t.isList}function D(e){for(;e.rule&&(!Array.isArray(e.rule)||!e.rule[e.step].ofRule);)b(e);e.rule&&E(e,!1)}var C=n(1);const w={ALIASED_FIELD:"AliasedField",ARGUMENTS:"Arguments",SHORT_QUERY:"ShortQuery",QUERY:"Query",MUTATION:"Mutation",SUBSCRIPTION:"Subscription",TYPE_CONDITION:"TypeCondition",INVALID:"Invalid",COMMENT:"Comment",SCHEMA_DEF:"SchemaDef",SCALAR_DEF:"ScalarDef",OBJECT_TYPE_DEF:"ObjectTypeDef",OBJECT_VALUE:"ObjectValue",LIST_VALUE:"ListValue",INTERFACE_DEF:"InterfaceDef",UNION_DEF:"UnionDef",ENUM_DEF:"EnumDef",ENUM_VALUE:"EnumValue",FIELD_DEF:"FieldDef",INPUT_DEF:"InputDef",INPUT_VALUE_DEF:"InputValueDef",ARGUMENTS_DEF:"ArgumentsDef",EXTEND_DEF:"ExtendDef",DIRECTIVE_DEF:"DirectiveDef"},S=Object.assign(Object.assign({},C.a),w)},function(e,t,n){"use strict";var r=n(79),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function u(e){return r.isMemo(e)?a:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var c=Object.defineProperty,l=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var i=d(n);i&&i!==h&&e(t,i,r)}var a=l(n);p&&(a=a.concat(p(n)));for(var s=u(t),m=u(n),g=0;g<a.length;++g){var y=a[g];if(!(o[y]||r&&r[y]||m&&m[y]||s&&s[y])){var v=f(n,y);try{c(t,y,v)}catch(e){}}}}return t}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));var r=n(95);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,u=t.line+o,c=1===t.line?n:0,l=t.column+c,p="".concat(e.name,":").concat(u,":").concat(l,"\n"),f=r.split(/\r\n|[\n\r]/g),d=f[i];if(d.length>120){for(var h=Math.floor(l/80),m=l%80,g=[],y=0;y<d.length;y+=80)g.push(d.slice(y,y+80));return p+a([["".concat(u),g[0]]].concat(g.slice(1,h+1).map((function(e){return["",e]})),[[" ",s(m-1)+"^"],["",g[h+1]]]))}return p+a([["".concat(u-1),f[i-1]],["".concat(u),d],["",s(l-1)+"^"],["".concat(u+1),f[i+1]]])}function a(e){var t=e.filter((function(e){e[0];return void 0!==e[1]})),n=Math.max.apply(Math,t.map((function(e){return e[0].length})));return t.map((function(e){var t,r=e[0],i=e[1];return s(n-(t=r).length)+t+(i?" | "+i:" |")})).join("\n")}function s(e){return Array(e+1).join(" ")}},function(e,t,n){"use strict";n.d(t,"a",(function(){return L})),n.d(t,"b",(function(){return P}));var r=n(218),i=n(219),o=n(220),a=n(221),s=n(139),u=n(222),c=n(223),l=n(224),p=n(225),f=n(226),d=n(227),h=n(228),m=n(229),g=n(230),y=n(231),v=n(232),b=n(233),E=n(140),x=n(141),D=n(142),C=n(143),w=n(234),S=n(144),k=n(235),A=n(236),T=n(145),_=n(237),O=n(238),F=n(239),N=n(240),I=n(241),M=n(242),j=n(243),L=Object.freeze([r.a,i.a,o.a,a.a,s.a,u.a,c.a,l.a,p.a,f.a,d.a,h.a,m.a,g.a,y.a,v.a,b.a,E.a,x.a,D.b,C.a,w.a,S.b,k.a,A.a,T.a]),P=Object.freeze([_.a,O.a,F.a,N.a,I.a,M.a,s.a,E.a,x.a,j.a,D.a,C.a,T.a,S.a])},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(38),i=n(43),o=n(2),a=n(45),s=n(13),u=n(12);function c(e){for(var t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),s=Object.create(null),u=0,c=e.getDocument().definitions;u<c.length;u++){var p=c[u];Object(a.d)(p)&&(s[p.name.value]=!0)}var f=Object.keys(n).concat(Object.keys(s));return{NamedType:function(t,u,c,p,d){var h,m=t.name.value;if(!n[m]&&!s[m]){var g,y=null!==(g=d[2])&&void 0!==g?g:c,v=null!=y&&(h=y,!Array.isArray(h)&&(Object(a.g)(h)||Object(a.h)(h)));if(v&&function(e){return-1!==l.indexOf(e)}(m))return;var b=Object(i.a)(m,v?l.concat(f):f);e.reportError(new o.a('Unknown type "'.concat(m,'".')+Object(r.a)(b),t))}}}}var l=[].concat(s.g,u.introspectionTypes).map((function(e){return e.name}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(4),i=n(17),o=n(2),a=n(1),s=n(9),u=n(21);function c(e){for(var t=Object.create(null),n=e.getSchema(),c=n?n.getDirectives():u.j,l=0;l<c.length;l++){var p=c[l];t[p.name]=p.locations}for(var f=e.getDocument().definitions,d=0;d<f.length;d++){var h=f[d];h.kind===a.a.DIRECTIVE_DEFINITION&&(t[h.name.value]=h.locations.map((function(e){return e.value})))}return{Directive:function(n,u,c,l,p){var f=n.name.value,d=t[f];if(d){var h=function(e){var t=e[e.length-1];switch(!Array.isArray(t)||Object(i.a)(0),t.kind){case a.a.OPERATION_DEFINITION:return function(e){switch(e){case"query":return s.a.QUERY;case"mutation":return s.a.MUTATION;case"subscription":return s.a.SUBSCRIPTION}Object(i.a)(0,"Unexpected operation: "+Object(r.a)(e))}(t.operation);case a.a.FIELD:return s.a.FIELD;case a.a.FRAGMENT_SPREAD:return s.a.FRAGMENT_SPREAD;case a.a.INLINE_FRAGMENT:return s.a.INLINE_FRAGMENT;case a.a.FRAGMENT_DEFINITION:return s.a.FRAGMENT_DEFINITION;case a.a.VARIABLE_DEFINITION:return s.a.VARIABLE_DEFINITION;case a.a.SCHEMA_DEFINITION:case a.a.SCHEMA_EXTENSION:return s.a.SCHEMA;case a.a.SCALAR_TYPE_DEFINITION:case a.a.SCALAR_TYPE_EXTENSION:return s.a.SCALAR;case a.a.OBJECT_TYPE_DEFINITION:case a.a.OBJECT_TYPE_EXTENSION:return s.a.OBJECT;case a.a.FIELD_DEFINITION:return s.a.FIELD_DEFINITION;case a.a.INTERFACE_TYPE_DEFINITION:case a.a.INTERFACE_TYPE_EXTENSION:return s.a.INTERFACE;case a.a.UNION_TYPE_DEFINITION:case a.a.UNION_TYPE_EXTENSION:return s.a.UNION;case a.a.ENUM_TYPE_DEFINITION:case a.a.ENUM_TYPE_EXTENSION:return s.a.ENUM;case a.a.ENUM_VALUE_DEFINITION:return s.a.ENUM_VALUE;case a.a.INPUT_OBJECT_TYPE_DEFINITION:case a.a.INPUT_OBJECT_TYPE_EXTENSION:return s.a.INPUT_OBJECT;case a.a.INPUT_VALUE_DEFINITION:return e[e.length-3].kind===a.a.INPUT_OBJECT_TYPE_DEFINITION?s.a.INPUT_FIELD_DEFINITION:s.a.ARGUMENT_DEFINITION}}(p);h&&-1===d.indexOf(h)&&e.reportError(new o.a('Directive "@'.concat(f,'" may not be used on ').concat(h,"."),n))}else e.reportError(new o.a('Unknown directive "@'.concat(f,'".'),n))}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(2),i=n(1),o=n(45),a=n(21);function s(e){for(var t=Object.create(null),n=e.getSchema(),s=n?n.getDirectives():a.j,u=0;u<s.length;u++){var c=s[u];t[c.name]=!c.isRepeatable}for(var l=e.getDocument().definitions,p=0;p<l.length;p++){var f=l[p];f.kind===i.a.DIRECTIVE_DEFINITION&&(t[f.name.value]=!f.repeatable)}var d=Object.create(null),h=Object.create(null);return{enter:function(n){if(null!=n.directives){var a;if(n.kind===i.a.SCHEMA_DEFINITION||n.kind===i.a.SCHEMA_EXTENSION)a=d;else if(Object(o.d)(n)||Object(o.e)(n)){var s=n.name.value;void 0===(a=h[s])&&(h[s]=a=Object.create(null))}else a=Object.create(null);for(var u=0,c=n.directives;u<c.length;u++){var l=c[u],p=l.name.value;t[p]&&(a[p]?e.reportError(new r.a('The directive "@'.concat(p,'" can only be used once at this location.'),[a[p],l])):a[p]=l)}}}}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return p})),n.d(t,"a",(function(){return f}));var r=n(38),i=n(43),o=n(2),a=n(1),s=n(21);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return 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}function p(e){return c(c({},f(e)),{},{Argument:function(t){var n=e.getArgument(),a=e.getFieldDef(),s=e.getParentType();if(!n&&a&&s){var u=t.name.value,c=a.args.map((function(e){return e.name})),l=Object(i.a)(u,c);e.reportError(new o.a('Unknown argument "'.concat(u,'" on field "').concat(s.name,".").concat(a.name,'".')+Object(r.a)(l),t))}}})}function f(e){for(var t=Object.create(null),n=e.getSchema(),u=n?n.getDirectives():s.j,c=0;c<u.length;c++){var l=u[c];t[l.name]=l.args.map((function(e){return e.name}))}for(var p=e.getDocument().definitions,f=0;f<p.length;f++){var d=p[f];if(d.kind===a.a.DIRECTIVE_DEFINITION){var h,m=null!==(h=d.arguments)&&void 0!==h?h:[];t[d.name.value]=m.map((function(e){return e.name.value}))}}return{Directive:function(n){var a=n.name.value,s=t[a];if(n.arguments&&s)for(var u=0,c=n.arguments;u<c.length;u++){var l=c[u],p=l.name.value;if(-1===s.indexOf(p)){var f=Object(i.a)(p,s);e.reportError(new o.a('Unknown argument "'.concat(p,'" on directive "@').concat(a,'".')+Object(r.a)(f),l))}}return!1}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(2);function i(e){var t=Object.create(null);return{Field:function(){t=Object.create(null)},Directive:function(){t=Object.create(null)},Argument:function(n){var i=n.name.value;return t[i]?e.reportError(new r.a('There can be only one argument named "'.concat(i,'".'),[t[i],n.name])):t[i]=n.name,!1}}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return d})),n.d(t,"a",(function(){return h}));var r=n(4),i=n(36),o=n(2),a=n(1),s=n(15),u=n(21),c=n(0);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e){return p(p({},h(e)),{},{Field:{leave:function(t){var n,a=e.getFieldDef();if(!a)return!1;for(var s=null!==(n=t.arguments)&&void 0!==n?n:[],u=Object(i.a)(s,(function(e){return e.name.value})),l=0,p=a.args;l<p.length;l++){var f=p[l];if(!u[f.name]&&Object(c.P)(f)){var d=Object(r.a)(f.type);e.reportError(new o.a('Field "'.concat(a.name,'" argument "').concat(f.name,'" of type "').concat(d,'" is required, but it was not provided.'),t))}}}}})}function h(e){for(var t=Object.create(null),n=e.getSchema(),l=n?n.getDirectives():u.j,p=0;p<l.length;p++){var f=l[p];t[f.name]=Object(i.a)(f.args.filter(c.P),(function(e){return e.name}))}for(var d=e.getDocument().definitions,h=0;h<d.length;h++){var g=d[h];if(g.kind===a.a.DIRECTIVE_DEFINITION){var y,v=null!==(y=g.arguments)&&void 0!==y?y:[];t[g.name.value]=Object(i.a)(v.filter(m),(function(e){return e.name.value}))}}return{Directive:{leave:function(n){var a=n.name.value,u=t[a];if(u)for(var l,p=null!==(l=n.arguments)&&void 0!==l?l:[],f=Object(i.a)(p,(function(e){return e.name.value})),d=0,h=Object.keys(u);d<h.length;d++){var m=h[d];if(!f[m]){var g=u[m].type,y=Object(c.S)(g)?Object(r.a)(g):Object(s.print)(g);e.reportError(new o.a('Directive "@'.concat(a,'" argument "').concat(m,'" of type "').concat(y,'" is required, but it was not provided.'),n))}}}}}}function m(e){return e.type.kind===a.a.NON_NULL_TYPE&&null==e.defaultValue}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(2);function i(e){var t=[],n=Object.create(null);return{ObjectValue:{enter:function(){t.push(n),n=Object.create(null)},leave:function(){n=t.pop()}},ObjectField:function(t){var i=t.name.value;n[i]?e.reportError(new r.a('There can be only one input field named "'.concat(i,'".'),[n[i],t.name])):n[i]=t.name}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return c}));var r=n(1),i=n(26),o=n(85);function a(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var s=function(){function e(e,t){this._ast=e,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=t}var t=e.prototype;return t.reportError=function(e){this._onError(e)},t.getDocument=function(){return this._ast},t.getFragment=function(e){var t=this._fragments;return t||(this._fragments=t=this.getDocument().definitions.reduce((function(e,t){return t.kind===r.a.FRAGMENT_DEFINITION&&(e[t.name.value]=t),e}),Object.create(null))),t[e]},t.getFragmentSpreads=function(e){var t=this._fragmentSpreads.get(e);if(!t){t=[];for(var n=[e];0!==n.length;)for(var i=0,o=n.pop().selections;i<o.length;i++){var a=o[i];a.kind===r.a.FRAGMENT_SPREAD?t.push(a):a.selectionSet&&n.push(a.selectionSet)}this._fragmentSpreads.set(e,t)}return t},t.getRecursivelyReferencedFragments=function(e){var t=this._recursivelyReferencedFragments.get(e);if(!t){t=[];for(var n=Object.create(null),r=[e.selectionSet];0!==r.length;)for(var i=r.pop(),o=0,a=this.getFragmentSpreads(i);o<a.length;o++){var s=a[o].name.value;if(!0!==n[s]){n[s]=!0;var u=this.getFragment(s);u&&(t.push(u),r.push(u.selectionSet))}}this._recursivelyReferencedFragments.set(e,t)}return t},e}(),u=function(e){function t(t,n,r){var i;return(i=e.call(this,t,r)||this)._schema=n,i}return a(t,e),t.prototype.getSchema=function(){return this._schema},t}(s),c=function(e){function t(t,n,r,i){var o;return(o=e.call(this,n,i)||this)._schema=t,o._typeInfo=r,o._variableUsages=new Map,o._recursiveVariableUsages=new Map,o}a(t,e);var n=t.prototype;return n.getSchema=function(){return this._schema},n.getVariableUsages=function(e){var t=this._variableUsages.get(e);if(!t){var n=[],r=new o.a(this._schema);Object(i.c)(e,Object(o.b)(r,{VariableDefinition:function(){return!1},Variable:function(e){n.push({node:e,type:r.getInputType(),defaultValue:r.getDefaultValue()})}})),t=n,this._variableUsages.set(e,t)}return t},n.getRecursiveVariableUsages=function(e){var t=this._recursiveVariableUsages.get(e);if(!t){t=this.getVariableUsages(e);for(var n=0,r=this.getRecursivelyReferencedFragments(e);n<r.length;n++){var i=r[n];t=t.concat(this.getVariableUsages(i))}this._recursiveVariableUsages.set(e,t)}return t},n.getType=function(){return this._typeInfo.getType()},n.getParentType=function(){return this._typeInfo.getParentType()},n.getInputType=function(){return this._typeInfo.getInputType()},n.getParentInputType=function(){return this._typeInfo.getParentInputType()},n.getFieldDef=function(){return this._typeInfo.getFieldDef()},n.getDirective=function(){return this._typeInfo.getDirective()},n.getArgument=function(){return this._typeInfo.getArgument()},n.getEnumValue=function(){return this._typeInfo.getEnumValue()},t}(s)},function(e,t,n){var r=n(279);e.exports=function(e){return r(e).replace(/\s(\w)/g,(function(e,t){return t.toUpperCase()}))}},function(e,t,n){e.exports=function e(t){"use strict";var n=/^\0+/g,r=/[\0\r\f]/g,i=/: */g,o=/zoo|gra/,a=/([,: ])(transform)/g,s=/,+\s*(?![^(]*[)])/g,u=/ +\s*(?![^(]*[)])/g,c=/ *[\0] */g,l=/,\r+?/g,p=/([\t\r\n ])*\f?&/g,f=/:global\(((?:[^\(\)\[\]]*|\[.*\]|\([^\(\)]*\))*)\)/g,d=/\W+/g,h=/@(k\w+)\s*(\S*)\s*/,m=/::(place)/g,g=/:(read-only)/g,y=/\s+(?=[{\];=:>])/g,v=/([[}=:>])\s+/g,b=/(\{[^{]+?);(?=\})/g,E=/\s{2,}/g,x=/([^\(])(:+) */g,D=/[svh]\w+-[tblr]{2}/,C=/\(\s*(.*)\s*\)/g,w=/([\s\S]*?);/g,S=/-self|flex-/g,k=/[^]*?(:[rp][el]a[\w-]+)[^]*/,A=/stretch|:\s*\w+\-(?:conte|avail)/,T=/([^-])(image-set\()/,_="-webkit-",O="-moz-",F="-ms-",N=59,I=125,M=123,j=40,L=41,P=10,R=13,B=32,U=45,z=42,V=44,q=58,H=47,W=1,G=1,K=0,J=1,Q=1,Y=1,$=0,X=0,Z=0,ee=[],te=[],ne=0,re=null,ie=0,oe=1,ae="",se="",ue="";function ce(e,t,i,o,a){for(var s,u,l=0,p=0,f=0,d=0,y=0,v=0,b=0,E=0,D=0,w=0,S=0,k=0,A=0,T=0,O=0,F=0,$=0,te=0,re=0,pe=i.length,ye=pe-1,ve="",be="",Ee="",xe="",De="",Ce="";O<pe;){if(b=i.charCodeAt(O),O===ye&&p+d+f+l!==0&&(0!==p&&(b=p===H?P:H),d=f=l=0,pe++,ye++),p+d+f+l===0){if(O===ye&&(F>0&&(be=be.replace(r,"")),be.trim().length>0)){switch(b){case B:case 9:case N:case R:case P:break;default:be+=i.charAt(O)}b=N}if(1===$)switch(b){case M:case I:case N:case 34:case 39:case j:case L:case V:$=0;case 9:case R:case P:case B:break;default:for($=0,re=O,y=b,O--,b=N;re<pe;)switch(i.charCodeAt(re++)){case P:case R:case N:++O,b=y,re=pe;break;case q:F>0&&(++O,b=y);case M:re=pe}}switch(b){case M:for(y=(be=be.trim()).charCodeAt(0),S=1,re=++O;O<pe;){switch(b=i.charCodeAt(O)){case M:S++;break;case I:S--;break;case H:switch(v=i.charCodeAt(O+1)){case z:case H:O=ge(v,O,ye,i)}break;case 91:b++;case j:b++;case 34:case 39:for(;O++<ye&&i.charCodeAt(O)!==b;);}if(0===S)break;O++}switch(Ee=i.substring(re,O),0===y&&(y=(be=be.replace(n,"").trim()).charCodeAt(0)),y){case 64:switch(F>0&&(be=be.replace(r,"")),v=be.charCodeAt(1)){case 100:case 109:case 115:case U:s=t;break;default:s=ee}if(re=(Ee=ce(t,s,Ee,v,a+1)).length,Z>0&&0===re&&(re=be.length),ne>0&&(u=me(3,Ee,s=le(ee,be,te),t,G,W,re,v,a,o),be=s.join(""),void 0!==u&&0===(re=(Ee=u.trim()).length)&&(v=0,Ee="")),re>0)switch(v){case 115:be=be.replace(C,he);case 100:case 109:case U:Ee=be+"{"+Ee+"}";break;case 107:Ee=(be=be.replace(h,"$1 $2"+(oe>0?ae:"")))+"{"+Ee+"}",Ee=1===Q||2===Q&&de("@"+Ee,3)?"@"+_+Ee+"@"+Ee:"@"+Ee;break;default:Ee=be+Ee,112===o&&(xe+=Ee,Ee="")}else Ee="";break;default:Ee=ce(t,le(t,be,te),Ee,o,a+1)}De+=Ee,k=0,$=0,T=0,F=0,te=0,A=0,be="",Ee="",b=i.charCodeAt(++O);break;case I:case N:if((re=(be=(F>0?be.replace(r,""):be).trim()).length)>1)switch(0===T&&((y=be.charCodeAt(0))===U||y>96&&y<123)&&(re=(be=be.replace(" ",":")).length),ne>0&&void 0!==(u=me(1,be,t,e,G,W,xe.length,o,a,o))&&0===(re=(be=u.trim()).length)&&(be="\0\0"),y=be.charCodeAt(0),v=be.charCodeAt(1),y){case 0:break;case 64:if(105===v||99===v){Ce+=be+i.charAt(O);break}default:if(be.charCodeAt(re-1)===q)break;xe+=fe(be,y,v,be.charCodeAt(2))}k=0,$=0,T=0,F=0,te=0,be="",b=i.charCodeAt(++O)}}switch(b){case R:case P:if(p+d+f+l+X===0)switch(w){case L:case 39:case 34:case 64:case 126:case 62:case z:case 43:case H:case U:case q:case V:case N:case M:case I:break;default:T>0&&($=1)}p===H?p=0:J+k===0&&107!==o&&be.length>0&&(F=1,be+="\0"),ne*ie>0&&me(0,be,t,e,G,W,xe.length,o,a,o),W=1,G++;break;case N:case I:if(p+d+f+l===0){W++;break}default:switch(W++,ve=i.charAt(O),b){case 9:case B:if(d+l+p===0)switch(E){case V:case q:case 9:case B:ve="";break;default:b!==B&&(ve=" ")}break;case 0:ve="\\0";break;case 12:ve="\\f";break;case 11:ve="\\v";break;case 38:d+p+l===0&&J>0&&(te=1,F=1,ve="\f"+ve);break;case 108:if(d+p+l+K===0&&T>0)switch(O-T){case 2:112===E&&i.charCodeAt(O-3)===q&&(K=E);case 8:111===D&&(K=D)}break;case q:d+p+l===0&&(T=O);break;case V:p+f+d+l===0&&(F=1,ve+="\r");break;case 34:case 39:0===p&&(d=d===b?0:0===d?b:d);break;case 91:d+p+f===0&&l++;break;case 93:d+p+f===0&&l--;break;case L:d+p+l===0&&f--;break;case j:if(d+p+l===0){if(0===k)switch(2*E+3*D){case 533:break;default:S=0,k=1}f++}break;case 64:p+f+d+l+T+A===0&&(A=1);break;case z:case H:if(d+l+f>0)break;switch(p){case 0:switch(2*b+3*i.charCodeAt(O+1)){case 235:p=H;break;case 220:re=O,p=z}break;case z:b===H&&E===z&&re+2!==O&&(33===i.charCodeAt(re+2)&&(xe+=i.substring(re,O+1)),ve="",p=0)}}if(0===p){if(J+d+l+A===0&&107!==o&&b!==N)switch(b){case V:case 126:case 62:case 43:case L:case j:if(0===k){switch(E){case 9:case B:case P:case R:ve+="\0";break;default:ve="\0"+ve+(b===V?"":"\0")}F=1}else switch(b){case j:T+7===O&&108===E&&(T=0),k=++S;break;case L:0==(k=--S)&&(F=1,ve+="\0")}break;case 9:case B:switch(E){case 0:case M:case I:case N:case V:case 12:case 9:case B:case P:case R:break;default:0===k&&(F=1,ve+="\0")}}be+=ve,b!==B&&9!==b&&(w=b)}}D=E,E=b,O++}if(re=xe.length,Z>0&&0===re&&0===De.length&&0===t[0].length==0&&(109!==o||1===t.length&&(J>0?se:ue)===t[0])&&(re=t.join(",").length+2),re>0){if(s=0===J&&107!==o?function(e){for(var t,n,i=0,o=e.length,a=Array(o);i<o;++i){for(var s=e[i].split(c),u="",l=0,p=0,f=0,d=0,h=s.length;l<h;++l)if(!(0===(p=(n=s[l]).length)&&h>1)){if(f=u.charCodeAt(u.length-1),d=n.charCodeAt(0),t="",0!==l)switch(f){case z:case 126:case 62:case 43:case B:case j:break;default:t=" "}switch(d){case 38:n=t+se;case 126:case 62:case 43:case B:case L:case j:break;case 91:n=t+n+se;break;case q:switch(2*n.charCodeAt(1)+3*n.charCodeAt(2)){case 530:if(Y>0){n=t+n.substring(8,p-1);break}default:(l<1||s[l-1].length<1)&&(n=t+se+n)}break;case V:t="";default:n=p>1&&n.indexOf(":")>0?t+n.replace(x,"$1"+se+"$2"):t+n+se}u+=n}a[i]=u.replace(r,"").trim()}return a}(t):t,ne>0&&void 0!==(u=me(2,xe,s,e,G,W,re,o,a,o))&&0===(xe=u).length)return Ce+xe+De;if(xe=s.join(",")+"{"+xe+"}",Q*K!=0){switch(2!==Q||de(xe,2)||(K=0),K){case 111:xe=xe.replace(g,":-moz-$1")+xe;break;case 112:xe=xe.replace(m,"::"+_+"input-$1")+xe.replace(m,"::-moz-$1")+xe.replace(m,":-ms-input-$1")+xe}K=0}}return Ce+xe+De}function le(e,t,n){var r=t.trim().split(l),i=r,o=r.length,a=e.length;switch(a){case 0:case 1:for(var s=0,u=0===a?"":e[0]+" ";s<o;++s)i[s]=pe(u,i[s],n,a).trim();break;default:s=0;var c=0;for(i=[];s<o;++s)for(var p=0;p<a;++p)i[c++]=pe(e[p]+" ",r[s],n,a).trim()}return i}function pe(e,t,n,r){var i=t,o=i.charCodeAt(0);switch(o<33&&(o=(i=i.trim()).charCodeAt(0)),o){case 38:switch(J+r){case 0:case 1:if(0===e.trim().length)break;default:return i.replace(p,"$1"+e.trim())}break;case q:switch(i.charCodeAt(1)){case 103:if(Y>0&&J>0)return i.replace(f,"$1").replace(p,"$1"+ue);break;default:return e.trim()+i.replace(p,"$1"+e.trim())}default:if(n*J>0&&i.indexOf("\f")>0)return i.replace(p,(e.charCodeAt(0)===q?"":"$1")+e.trim())}return e+i}function fe(e,t,n,r){var c,l=0,p=e+";",f=2*t+3*n+4*r;if(944===f)return function(e){var t=e.length,n=e.indexOf(":",9)+1,r=e.substring(0,n).trim(),i=e.substring(n,t-1).trim();switch(e.charCodeAt(9)*oe){case 0:break;case U:if(110!==e.charCodeAt(10))break;default:var o=i.split((i="",s)),a=0;for(n=0,t=o.length;a<t;n=0,++a){for(var c=o[a],l=c.split(u);c=l[n];){var p=c.charCodeAt(0);if(1===oe&&(p>64&&p<90||p>96&&p<123||95===p||p===U&&c.charCodeAt(1)!==U))switch(isNaN(parseFloat(c))+(-1!==c.indexOf("("))){case 1:switch(c){case"infinite":case"alternate":case"backwards":case"running":case"normal":case"forwards":case"both":case"none":case"linear":case"ease":case"ease-in":case"ease-out":case"ease-in-out":case"paused":case"reverse":case"alternate-reverse":case"inherit":case"initial":case"unset":case"step-start":case"step-end":break;default:c+=ae}}l[n++]=c}i+=(0===a?"":",")+l.join(" ")}}return i=r+i+";",1===Q||2===Q&&de(i,1)?_+i+i:i}(p);if(0===Q||2===Q&&!de(p,1))return p;switch(f){case 1015:return 97===p.charCodeAt(10)?_+p+p:p;case 951:return 116===p.charCodeAt(3)?_+p+p:p;case 963:return 110===p.charCodeAt(5)?_+p+p:p;case 1009:if(100!==p.charCodeAt(4))break;case 969:case 942:return _+p+p;case 978:return _+p+O+p+p;case 1019:case 983:return _+p+O+p+F+p+p;case 883:return p.charCodeAt(8)===U?_+p+p:p.indexOf("image-set(",11)>0?p.replace(T,"$1"+_+"$2")+p:p;case 932:if(p.charCodeAt(4)===U)switch(p.charCodeAt(5)){case 103:return _+"box-"+p.replace("-grow","")+_+p+F+p.replace("grow","positive")+p;case 115:return _+p+F+p.replace("shrink","negative")+p;case 98:return _+p+F+p.replace("basis","preferred-size")+p}return _+p+F+p+p;case 964:return _+p+F+"flex-"+p+p;case 1023:if(99!==p.charCodeAt(8))break;return c=p.substring(p.indexOf(":",15)).replace("flex-","").replace("space-between","justify"),_+"box-pack"+c+_+p+F+"flex-pack"+c+p;case 1005:return o.test(p)?p.replace(i,":"+_)+p.replace(i,":"+O)+p:p;case 1e3:switch(l=(c=p.substring(13).trim()).indexOf("-")+1,c.charCodeAt(0)+c.charCodeAt(l)){case 226:c=p.replace(D,"tb");break;case 232:c=p.replace(D,"tb-rl");break;case 220:c=p.replace(D,"lr");break;default:return p}return _+p+F+c+p;case 1017:if(-1===p.indexOf("sticky",9))return p;case 975:switch(l=(p=e).length-10,f=(c=(33===p.charCodeAt(l)?p.substring(0,l):p).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|c.charCodeAt(7))){case 203:if(c.charCodeAt(8)<111)break;case 115:p=p.replace(c,_+c)+";"+p;break;case 207:case 102:p=p.replace(c,_+(f>102?"inline-":"")+"box")+";"+p.replace(c,_+c)+";"+p.replace(c,F+c+"box")+";"+p}return p+";";case 938:if(p.charCodeAt(5)===U)switch(p.charCodeAt(6)){case 105:return c=p.replace("-items",""),_+p+_+"box-"+c+F+"flex-"+c+p;case 115:return _+p+F+"flex-item-"+p.replace(S,"")+p;default:return _+p+F+"flex-line-pack"+p.replace("align-content","").replace(S,"")+p}break;case 973:case 989:if(p.charCodeAt(3)!==U||122===p.charCodeAt(4))break;case 931:case 953:if(!0===A.test(e))return 115===(c=e.substring(e.indexOf(":")+1)).charCodeAt(0)?fe(e.replace("stretch","fill-available"),t,n,r).replace(":fill-available",":stretch"):p.replace(c,_+c)+p.replace(c,O+c.replace("fill-",""))+p;break;case 962:if(p=_+p+(102===p.charCodeAt(5)?F+p:"")+p,n+r===211&&105===p.charCodeAt(13)&&p.indexOf("transform",10)>0)return p.substring(0,p.indexOf(";",27)+1).replace(a,"$1"+_+"$2")+p}return p}function de(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10),i=e.substring(n+1,e.length-1);return re(2!==t?r:r.replace(k,"$1"),i,t)}function he(e,t){var n=fe(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(w," or ($1)").substring(4):"("+t+")"}function me(e,t,n,r,i,o,a,s,u,c){for(var l,p=0,f=t;p<ne;++p)switch(l=te[p].call(ve,e,f,n,r,i,o,a,s,u,c)){case void 0:case!1:case!0:case null:break;default:f=l}if(f!==t)return f}function ge(e,t,n,r){for(var i=t+1;i<n;++i)switch(r.charCodeAt(i)){case H:if(e===z&&r.charCodeAt(i-1)===z&&t+2!==i)return i+1;break;case P:if(e===H)return i+1}return i}function ye(e){for(var t in e){var n=e[t];switch(t){case"keyframe":oe=0|n;break;case"global":Y=0|n;break;case"cascade":J=0|n;break;case"compress":$=0|n;break;case"semicolon":X=0|n;break;case"preserve":Z=0|n;break;case"prefix":re=null,n?"function"!=typeof n?Q=1:(Q=2,re=n):Q=0}}return ye}function ve(t,n){if(void 0!==this&&this.constructor===ve)return e(t);var i=t,o=i.charCodeAt(0);o<33&&(o=(i=i.trim()).charCodeAt(0)),oe>0&&(ae=i.replace(d,91===o?"":"-")),o=1,1===J?ue=i:se=i;var a,s=[ue];ne>0&&void 0!==(a=me(-1,n,s,s,G,W,0,0,0,0))&&"string"==typeof a&&(n=a);var u=ce(ee,s,n,0,0);return ne>0&&void 0!==(a=me(-2,u,s,s,G,W,u.length,0,0,0))&&"string"!=typeof(u=a)&&(o=0),ae="",ue="",se="",K=0,G=1,W=1,$*o==0?u:u.replace(r,"").replace(y,"").replace(v,"$1").replace(b,"$1").replace(E," ")}return ve.use=function e(t){switch(t){case void 0:case null:ne=te.length=0;break;default:if("function"==typeof t)te[ne++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else ie=0|!!t}return e},ve.set=ye,void 0!==t&&ye(t),ve}(null)},function(e,t,n){"use strict";function r(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}t.a=function(e,t){var n;void 0===t&&(t=r);var i,o=[],a=!1;return function(){for(var r=[],s=0;s<arguments.length;s++)r[s]=arguments[s];return a&&n===this&&t(r,o)||(i=e.apply(this,r),a=!0,n=this,o=r),i}}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0});var i=n(48);t.selectWorkspace=(r=i.createActions({SELECT_WORKSPACE:function(e){return{workspace:e}},INIT_STATE:function(e,t){return{workspaceId:e,endpoint:t}},INJECT_STATE:function(e){return{state:e}},INJECT_TABS:function(e){return{tabs:e}}})).selectWorkspace,t.initState=r.initState,t.injectState=r.injectState,t.injectTabs=r.injectTabs},function(e,t,n){"use strict";var r=n(256);function i(){}var o=null,a={};function s(e){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("Promise constructor's argument is not a function");this._75=0,this._83=0,this._18=null,this._38=null,e!==i&&d(e,this)}function u(e,t){for(;3===e._83;)e=e._18;if(s._47&&s._47(e),0===e._83)return 0===e._75?(e._75=1,void(e._38=t)):1===e._75?(e._75=2,void(e._38=[e._38,t])):void e._38.push(t);!function(e,t){r((function(){var n=1===e._83?t.onFulfilled:t.onRejected;if(null!==n){var r=function(e,t){try{return e(t)}catch(e){return o=e,a}}(n,e._18);r===a?l(t.promise,o):c(t.promise,r)}else 1===e._83?c(t.promise,e._18):l(t.promise,e._18)}))}(e,t)}function c(e,t){if(t===e)return l(e,new TypeError("A promise cannot be resolved with itself."));if(t&&("object"==typeof t||"function"==typeof t)){var n=function(e){try{return e.then}catch(e){return o=e,a}}(t);if(n===a)return l(e,o);if(n===e.then&&t instanceof s)return e._83=3,e._18=t,void p(e);if("function"==typeof n)return void d(n.bind(t),e)}e._83=1,e._18=t,p(e)}function l(e,t){e._83=2,e._18=t,s._71&&s._71(e,t),p(e)}function p(e){if(1===e._75&&(u(e,e._38),e._38=null),2===e._75){for(var t=0;t<e._38.length;t++)u(e,e._38[t]);e._38=null}}function f(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}function d(e,t){var n=!1,r=function(e,t,n){try{e(t,n)}catch(e){return o=e,a}}(e,(function(e){n||(n=!0,c(t,e))}),(function(e){n||(n=!0,l(t,e))}));n||r!==a||(n=!0,l(t,o))}e.exports=s,s._47=null,s._71=null,s._44=i,s.prototype.then=function(e,t){if(this.constructor!==s)return function(e,t,n){return new e.constructor((function(r,o){var a=new s(i);a.then(r,o),u(e,new f(t,n,a))}))}(this,e,t);var n=new s(i);return u(this,new f(e,t,n)),n}},function(e,t,n){"use strict";var r=Object.prototype;r.toString,r.hasOwnProperty,new Map},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(34),i=n(20);t.makeOperation=function(e){return r.setIn(e,["query"],i.parse(e.query))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e&&"@@redux/INIT"===e.type?"initialState argument passed to createStore":"previous state received by the reducer"},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getQueryTypes=function(e){var t=!1,n=!1,r=!1,i=null;return e&&e.definitions&&e.definitions.forEach((function(e){i||(i=e.name&&e.name.value),i||(i=e.selectionSet&&e.selectionSet.selections&&e.selectionSet.selections.length>0&&e.selectionSet.selections[0].name.value),"subscription"===e.operation&&(t=!0),"query"===e.operation&&(n=!0),"mutation"===e.operation&&(r=!0)})),{firstOperationName:i,subscription:t,query:n,mutation:r}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrayMove=t.sortableHandle=t.sortableElement=t.sortableContainer=t.SortableHandle=t.SortableElement=t.SortableContainer=void 0;var r=n(101);Object.defineProperty(t,"arrayMove",{enumerable:!0,get:function(){return r.arrayMove}});var i=s(n(286)),o=s(n(288)),a=s(n(289));function s(e){return e&&e.__esModule?e:{default:e}}t.SortableContainer=i.default,t.SortableElement=o.default,t.SortableHandle=a.default,t.sortableContainer=i.default,t.sortableElement=o.default,t.sortableHandle=a.default},function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=n(34),a=n(48),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t}(o.Record({history:!1,headers:!0,allTabs:!0,shareUrl:null}));t.SharingState=s,t.default=a.handleActions({TOGGLE_SHARE_HISTORY:function(e){return e.set("history",!e.history)},TOGGLE_SHARE_HEADERS:function(e){return e.set("headers",!e.headers)},TOGGLE_SHARE_ALL_TABS:function(e){return e.set("allTabs",!e.allTabs)},SET_SHARE_URL:function(e,t){var n=t.payload.shareUrl;return e.set("shareUrl",n)}},new s)},function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=n(34),a=n(48),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t}(o.Record({historyOpen:!1,fixedEndpoint:!1,endpoint:"",configString:"",envVars:{}}));t.GeneralState=s,t.default=a.handleActions({OPEN_HISTORY:function(e){return e.set("historyOpen",!0)},CLOSE_HISTORY:function(e){return e.set("historyOpen",!1)},SET_ENDPOINT_DISABLED:function(e,t){var n=t.payload.value;return e.set("endpointDisabled",n)},SET_CONFIG_STRING:function(e,t){var n=t.payload.configString;return e.set("configString",n)}},new s)},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},i=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var o=n(117),a=n(100),s=n(157),u=n(34),c=n(158),l=n(96),p=n(41),f=n(161);function d(e){return new f.AppHistory({items:u.OrderedMap(l.mapValues(e.items,(function(e){return new f.AppHistoryItem(e)})))})}function h(e){return u.Map(l.mapValues(e,(function(e){return new o.DocsSession({docsOpen:e.docsOpen,keyMove:e.keyMove,docsWidth:e.docsWidth,navStack:(t=e.navStack,u.List(t.map((function(e){return u.Map(e)}))))});var t})))}function m(e){var t=g(e.sessions),n=e.selectedSessionId&&""!==e.selectedSessionId?e.selectedSessionId:t.first().id;return new a.SessionState({selectedSessionId:n,sessions:t,sessionCount:t.size,headers:e.headers})}function g(e){return u.OrderedMap(l.mapValues(e,(function(e){return function(e){return new a.Session(r(r({},e),{responses:(t=e.responses,u.List(t.filter((function(e){return e.isSchemaError})).map((function(e){return function(e){return new a.ResponseRecord({resultID:e.resultID,date:e.date,time:new Date(e.time),isSchemaError:e.isSchemaError||!1})}(e)})))),operations:u.fromJS(e.operations),variableToType:u.Map(e.variableToType),date:e.date?new Date(e.date):void 0,currentQueryStartTime:e.currentQueryStartTime?new Date(e.currentQueryStartTime):void 0,currentQueryEndTime:e.currentQueryEndTime?new Date(e.currentQueryEndTime):void 0,nextQueryStartTime:e.nextQueryStartTime?new Date(e.nextQueryStartTime):void 0}));var t}(e)})))}function y(e){e.shareUrl;var t=i(e,["shareUrl"]);return new s.SharingState(t)}function v(e){return g(e)}function b(e){return new c.GeneralState(e)}t.deserializePersistedState=function(e){return new p.RootState({workspaces:(t=e.workspaces,u.Map(l.mapValues(t,(function(e,t){return new p.Workspace({docs:h(e.docs),sessions:m(e.sessions),sharing:y(e.sharing),history:v(e.history)})})))),selectedWorkspace:e.selectedWorkspace,settingsString:p.normalizeSettingsString(e.settingsString),appHistory:d(e.appHistory),general:b(e.general)});var t}},function(e,t){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}},function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=n(34),a=n(48),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t}(o.Record({items:o.OrderedMap()}));t.AppHistory=s;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t}(o.Record({type:"local",configString:void 0,configPath:void 0,endpoint:void 0,folderName:void 0,env:void 0,platformToken:void 0,lastOpened:new Date,config:void 0}));t.AppHistoryItem=u,t.default=a.handleActions({SELECT_APP_HISTORY_ITEM:function(e,t){var n=t.payload;return e.setIn(["items",n.item.path],n.item)}},new s),t.getAppHistory=function(e){return e.appHistory}},function(e,t,n){"use strict";const r=n(294),i=Symbol("max"),o=Symbol("length"),a=Symbol("lengthCalculator"),s=Symbol("allowStale"),u=Symbol("maxAge"),c=Symbol("dispose"),l=Symbol("noDisposeOnSet"),p=Symbol("lruList"),f=Symbol("cache"),d=Symbol("updateAgeOnGet"),h=()=>1;const m=(e,t,n)=>{const r=e[f].get(t);if(r){const t=r.value;if(g(e,t)){if(v(e,r),!e[s])return}else n&&(e[d]&&(r.value.now=Date.now()),e[p].unshiftNode(r));return t.value}},g=(e,t)=>{if(!t||!t.maxAge&&!e[u])return!1;const n=Date.now()-t.now;return t.maxAge?n>t.maxAge:e[u]&&n>e[u]},y=e=>{if(e[o]>e[i])for(let t=e[p].tail;e[o]>e[i]&&null!==t;){const n=t.prev;v(e,t),t=n}},v=(e,t)=>{if(t){const n=t.value;e[c]&&e[c](n.key,n.value),e[o]-=n.length,e[f].delete(n.key),e[p].removeNode(t)}};class b{constructor(e,t,n,r,i){this.key=e,this.value=t,this.length=n,this.now=r,this.maxAge=i||0}}const E=(e,t,n,r)=>{let i=n.value;g(e,i)&&(v(e,n),e[s]||(i=void 0)),i&&t.call(r,i.value,i.key,e)};e.exports=class{constructor(e){if("number"==typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!=typeof e.max||e.max<0))throw new TypeError("max must be a non-negative number");this[i]=e.max||1/0;const t=e.length||h;if(this[a]="function"!=typeof t?h:t,this[s]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw new TypeError("maxAge must be a number");this[u]=e.maxAge||0,this[c]=e.dispose,this[l]=e.noDisposeOnSet||!1,this[d]=e.updateAgeOnGet||!1,this.reset()}set max(e){if("number"!=typeof e||e<0)throw new TypeError("max must be a non-negative number");this[i]=e||1/0,y(this)}get max(){return this[i]}set allowStale(e){this[s]=!!e}get allowStale(){return this[s]}set maxAge(e){if("number"!=typeof e)throw new TypeError("maxAge must be a non-negative number");this[u]=e,y(this)}get maxAge(){return this[u]}set lengthCalculator(e){"function"!=typeof e&&(e=h),e!==this[a]&&(this[a]=e,this[o]=0,this[p].forEach(e=>{e.length=this[a](e.value,e.key),this[o]+=e.length})),y(this)}get lengthCalculator(){return this[a]}get length(){return this[o]}get itemCount(){return this[p].length}rforEach(e,t){t=t||this;for(let n=this[p].tail;null!==n;){const r=n.prev;E(this,e,n,t),n=r}}forEach(e,t){t=t||this;for(let n=this[p].head;null!==n;){const r=n.next;E(this,e,n,t),n=r}}keys(){return this[p].toArray().map(e=>e.key)}values(){return this[p].toArray().map(e=>e.value)}reset(){this[c]&&this[p]&&this[p].length&&this[p].forEach(e=>this[c](e.key,e.value)),this[f]=new Map,this[p]=new r,this[o]=0}dump(){return this[p].map(e=>!g(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}).toArray().filter(e=>e)}dumpLru(){return this[p]}set(e,t,n){if((n=n||this[u])&&"number"!=typeof n)throw new TypeError("maxAge must be a number");const r=n?Date.now():0,s=this[a](t,e);if(this[f].has(e)){if(s>this[i])return v(this,this[f].get(e)),!1;const a=this[f].get(e).value;return this[c]&&(this[l]||this[c](e,a.value)),a.now=r,a.maxAge=n,a.value=t,this[o]+=s-a.length,a.length=s,this.get(e),y(this),!0}const d=new b(e,t,s,r,n);return d.length>this[i]?(this[c]&&this[c](e,t),!1):(this[o]+=d.length,this[p].unshift(d),this[f].set(e,this[p].head),y(this),!0)}has(e){if(!this[f].has(e))return!1;const t=this[f].get(e).value;return!g(this,t)}get(e){return m(this,e,!0)}peek(e){return m(this,e,!1)}pop(){const e=this[p].tail;return e?(v(this,e),e.value):null}del(e){v(this,this[f].get(e))}load(e){this.reset();const t=Date.now();for(let n=e.length-1;n>=0;n--){const r=e[n],i=r.e||0;if(0===i)this.set(r.k,r.v);else{const e=i-t;e>0&&this.set(r.k,r.v,e)}}}prune(){this[f].forEach((e,t)=>m(this,t,!1))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(28),i=n(41);t.getSharingState=r.createSelector([i.getSelectedWorkspace],(function(e){return e.sharing}));var o=function(e){return r.createSelector([t.getSharingState],(function(t){return t.get(e)}))};t.getSharingHistory=o("history"),t.getSharingHeaders=o("headers"),t.getSharingAllTabs=o("allTabs"),t.getShareUrl=o("shareUrl")},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return[].slice.call(e.querySelectorAll("*"),0).filter(a)};
/*!
* Adapted from jQuery UI core
*
* http://jqueryui.com
*
* Copyright 2014 jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*
* http://api.jqueryui.com/category/ui-core/
*/
var r=/input|select|textarea|button|object/;function i(e){var t=e.offsetWidth<=0&&e.offsetHeight<=0;if(t&&!e.innerHTML)return!0;var n=window.getComputedStyle(e);return t?"visible"!==n.getPropertyValue("overflow")||e.scrollWidth<=0&&e.scrollHeight<=0:"none"==n.getPropertyValue("display")}function o(e,t){var n=e.nodeName.toLowerCase();return(r.test(n)&&!e.disabled||"a"===n&&e.href||t)&&function(e){for(var t=e;t&&t!==document.body;){if(i(t))return!1;t=t.parentNode}return!0}(e)}function a(e){var t=e.getAttribute("tabindex");null===t&&(t=void 0);var n=isNaN(t);return(n||t>=0)&&o(e,!n)}e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertNodeList=u,t.setElement=function(e){var t=e;if("string"==typeof t&&a.canUseDOM){var n=document.querySelectorAll(t);u(n,t),t="length"in n?n[0]:n}return s=t||s},t.validateElement=c,t.hide=function(e){c(e)&&(e||s).setAttribute("aria-hidden","true")},t.show=function(e){c(e)&&(e||s).removeAttribute("aria-hidden")},t.documentNotReadyOrSSRTesting=function(){s=null},t.resetForTesting=function(){s=null};var r,i=n(50),o=(r=i)&&r.__esModule?r:{default:r},a=n(120);var s=null;function u(e,t){if(!e||!e.length)throw new Error("react-modal: No elements were found for selector "+t+".")}function c(e){return!(!e&&!s)||((0,o.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),!1)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=new function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.register=function(e){-1===t.openInstances.indexOf(e)&&(t.openInstances.push(e),t.emit("register"))},this.deregister=function(e){var n=t.openInstances.indexOf(e);-1!==n&&(t.openInstances.splice(n,1),t.emit("deregister"))},this.subscribe=function(e){t.subscribers.push(e)},this.emit=function(e){t.subscribers.forEach((function(n){return n(e,t.openInstances.slice())}))},this.openInstances=[],this.subscribers=[]};t.default=r,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(41);t.darkColours={green:"#27ae60",darkBlue:"rgb(23, 42, 58)",darkBlue50:"rgba(23, 42, 58, 0.5)",darkBlue80:"rgba(23, 42, 58, 0.8)",darkBlue60:"rgba(23, 42, 58, 0.6)",darkBlue30:"rgba(23, 42, 58, 0.3)",darkBlue20:"rgba(23, 42, 58, 0.2)",darkBlue10:"rgba(23, 42, 58, 0.1)",darkerBlue:"#0F202D",darkestBlue:"rgb(11,20,28)",white10:"rgba(255, 255, 255, 0.1)",white20:"rgba(255, 255, 255, 0.2)",white30:"rgba(255, 255, 255, 0.3)",white60:"rgba(255, 255, 255, 0.6)",white70:"rgba(255, 255, 255, 0.7)",white80:"rgba(255, 255, 255, 0.8)",white:"rgba(255, 255, 255, 1)",black02:"rgba(0, 0, 0, 0.02)",black07:"rgba(0, 0, 0, 0.07)",black04:"rgba(0, 0, 0, 0.04)",black10:"rgba(0, 0, 0, 0.1)",black30:"rgba(0, 0, 0, 0.3)",black40:"rgba(0, 0, 0, 0.4)",black50:"rgba(0, 0, 0, 0.5)",red:"#f25c54",orange:"rgba(241, 143, 1, 1)",blue:"rgba(42, 126, 210, 1)",purple:"rgb(164, 3, 111)",paleText:"rgba(0, 0, 0, 0.5)",paleGrey:"#f3f4f4",lightGrey:"#eeeff0",lighterGrey:"#f6f7f7",text:"rgba(255,255,255,0.6)",textInactive:"#555e66"},t.lightColours={green:"#27ae60",darkBlue:"rgb(23, 42, 58)",darkBlue50:"rgba(23, 42, 58, 0.5)",darkBlue80:"rgba(23, 42, 58, 0.8)",darkBlue60:"rgba(23, 42, 58, 0.6)",darkBlue30:"rgba(23, 42, 58, 0.3)",darkBlue20:"rgba(23, 42, 58, 0.2)",darkBlue10:"rgba(23, 42, 58, 0.1)",darkerBlue:"#0F202D",darkestBlue:"rgb(11,20,28)",white10:"rgba(255, 255, 255, 0.1)",white20:"rgba(255, 255, 255, 0.2)",white30:"rgba(255, 255, 255, 0.3)",white60:"rgba(255, 255, 255, 0.6)",white70:"rgba(255, 255, 255, 0.7)",white80:"rgba(255, 255, 255, 0.8)",white:"rgba(255, 255, 255, 1)",black02:"rgba(0, 0, 0, 0.02)",black04:"rgba(0, 0, 0, 0.04)",black10:"rgba(0, 0, 0, 0.1)",black07:"rgba(0, 0, 0, 0.07)",black30:"rgba(0, 0, 0, 0.3)",black40:"rgba(0, 0, 0, 0.4)",black50:"rgba(0, 0, 0, 0.5)",red:"#f25c54",orange:"rgba(241, 143, 1, 1)",blue:"rgba(42, 126, 210, 1)",purple:"rgb(164, 3, 111)",paleText:"rgba(0, 0, 0, 0.5)",paleGrey:"#f3f4f4",lightGrey:"#eeeff0",lighterGrey:"#f6f7f7",text:"rgba(0,0,0,.7)",textInactive:"rgba(0,0,0,.3)"},t.darkEditorColours={property:"rgb(41, 185, 115)",comment:"rgba(255, 255, 255, 0.3)",punctuation:"rgba(255, 255, 255, 0.4)",keyword:"rgb(42, 126, 211)",def:"rgb(56, 189, 193)",qualifier:"#1c92a9",attribute:"rgb(247, 116, 102)",number:"#2882f9",string:"#d64292",builtin:"#d47509",string2:"#0b7fc7",variable:"rgb(181, 34, 130)",meta:"#b33086",atom:"rgb(249, 233, 34)",ws:"rgba(255, 255, 255, 0.4)",selection:"rgba(255, 255, 255, 0.1)",cursorColor:"rgba(255, 255, 255, 0.4)",text:"#fff",textInactive:"rgba(255, 255, 255, 0.6)",background:"#09141c",sidebarTop:"#0f202d",sidebar:"#172b3a",sidebarBottom:"#172b3a",sidebarItemActive:"rgb(23, 42, 58)",sidebarItemSide:"#27ae60",sidebarItemSessions:"rgba(255, 255, 255, 0.05)",tab:"#172b3a",tabInactive:"#0f202d",tabText:"#fff",navigationBar:"#172b3a",navigationBarText:"rgba(255, 255, 255, 0.6)",editorBackground:"#0f202d",resultBackground:"#172b3a",leftDrawerBackground:"#0b1924",rightDrawerBackground:"#0b1924",drawerText:"rgba(255,255,255,0.6)",drawerTextInactive:"#555e66",executeButton:"rgb(185, 191, 196)",executeButtonBorder:"rgb(11, 20, 28)",executeButtonHover:"rgb(195, 201, 206)",executeButtonSubscription:"#f25c54",executeButtonSubscriptionHover:"#f36c65",icon:"rgb(74, 85, 95)",iconHover:"rgba(255, 255, 255, 0.6)",pollingIcon:"rgba(139, 149, 156, 1)",pollingIconShadow:"rgba(139, 149, 156, 0.4)",button:"#0F202D",buttonHover:"#122535",buttonText:"rgba(255,255,255,0.6)",buttonWorkspace:"#b9bfc4",buttonWorkspaceHover:"#a4acb2",buttonWorkspaceText:"rgb(23, 42, 58)",circle:"rgba(255, 255, 255, 0.4)",subscriptionTimeBoaderTop:"rgba(255, 255, 255, 0.2)",subscriptionTimeText:"rgba(255, 255, 255, 0.5)"},t.lightEditorColours={property:"#328c8c",comment:"rgba(0, 0, 0, 0.3)",punctuation:"rgba(23,42,58,.8)",keyword:"#366b6b",def:"rgb(56, 189, 193)",qualifier:"#1c92a9",attribute:"#b56531",number:"#1f6ed6;",string:"#d64292",builtin:"#d47509",string2:"#0b7fc7",variable:"rgb(236, 95, 103)",meta:"#b33086",atom:"rgb(245, 160, 0)",ws:"rgba(23, 42, 58, 0.8)",selection:"#d1e9fd",cursorColor:"rgba(0, 0, 0, 0.4)",text:"rgba(0, 0, 0, 0.7)",textInactive:"rgba(0, 0, 0, 0.3)",background:"#dbdee0",sidebarTop:"#eeeff0",sidebar:"#eeeff0",sidebarBottom:"#f6f7f7",sidebarItemActive:"#f6f7f7",sidebarItemSide:"#27ae60",sidebarItemSessions:"#dbdee0",tab:"#eeeff0",tabInactive:"#e7eaec",tabText:"rgba(23, 42, 58, .8)",navigationBar:"#eeeff0",navigationBarText:"rgba(23, 42, 58, 0.8)",editorBackground:"#f6f7f7",resultBackground:"#eeeff0",leftDrawerBackground:"#e9eaea",rightDrawerBackground:"#e5e7e7",drawerText:"rgba(0, 0, 0, 0.7)",drawerTextInactive:"rgba(0, 0, 0, 0.3)",executeButton:"rgb(115, 127, 136)",executeButtonBorder:"#eeeff0",executeButtonHover:"",executeButtonSubscription:"#f25c54",executeButtonSubscriptionHover:"#f36c65",icon:"rgb(194, 200, 203)",iconHover:"rgba(23, 42, 58, 0.6)",pollingIcon:"rgba(139, 149, 156, 1)",pollingIconShadow:"rgba(139, 149, 156, 0.4)",button:"#d8dbde",buttonHover:"rgba(20, 37, 51, 0.2)",buttonText:"rgba(23, 42, 58, 0.8)",buttonWorkspace:"rgb(185, 191, 196)",buttonWorkspaceHover:"rgb(157, 166, 173)",buttonWorkspaceText:"rgb(238, 239, 240)",circle:"rgba(23,42,58,.4)",subscriptionTimeBoaderTop:"rgba(23, 42, 58, 0.2)",subscriptionTimeText:"rgba(23, 42, 58, 0.5)"},t.sizes={small6:"6px",small10:"10px",small12:"12px",small16:"16px",medium25:"25px",fontLight:"300",fontSemiBold:"600",fontTiny:"12px",fontSmall:"14px",fontMedium:"20px",smallRadius:"2px"},t.shorthands={},t.theme={mode:"dark",colours:t.darkColours,sizes:t.sizes,shorthands:t.shorthands,editorColours:t.darkEditorColours,settings:r.defaultSettings}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3),i=n(34);t.toJS=function(e){return function(t){var n=Object.entries(t).reduce((function(e,t){return e[t[0]]=i.isImmutable(t[1])?t[1].toJS():t[1],e}),{});return r.createElement(e,n)}}},function(e,t,n){"use strict";e.exports=n(322)},function(e,t,n){"use strict";t.Any=n(171),t.Cc=n(172),t.Cf=n(327),t.P=n(103),t.Z=n(173)},function(e,t){e.exports=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/},function(e,t){e.exports=/[\0-\x1F\x7F-\x9F]/},function(e,t){e.exports=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/},function(e,t,n){"use strict";var r="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",i="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",o=new RegExp("^(?:"+r+"|"+i+"|\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e|<[?].*?[?]>|<![A-Z]+\\s+[^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)"),a=new RegExp("^(?:"+r+"|"+i+")");e.exports.HTML_TAG_RE=o,e.exports.HTML_OPEN_CLOSE_TAG_RE=a},function(e,t,n){"use strict";e.exports.tokenize=function(e,t){var n,r,i,o,a=e.pos,s=e.src.charCodeAt(a);if(t)return!1;if(126!==s)return!1;if(i=(r=e.scanDelims(e.pos,!0)).length,o=String.fromCharCode(s),i<2)return!1;for(i%2&&(e.push("text","",0).content=o,i--),n=0;n<i;n+=2)e.push("text","",0).content=o+o,e.delimiters.push({marker:s,jump:n,token:e.tokens.length-1,level:e.level,end:-1,open:r.can_open,close:r.can_close});return e.pos+=r.length,!0},e.exports.postProcess=function(e){var t,n,r,i,o,a=[],s=e.delimiters,u=e.delimiters.length;for(t=0;t<u;t++)126===(r=s[t]).marker&&-1!==r.end&&(i=s[r.end],(o=e.tokens[r.token]).type="s_open",o.tag="s",o.nesting=1,o.markup="~~",o.content="",(o=e.tokens[i.token]).type="s_close",o.tag="s",o.nesting=-1,o.markup="~~",o.content="","text"===e.tokens[i.token-1].type&&"~"===e.tokens[i.token-1].content&&a.push(i.token-1));for(;a.length;){for(n=(t=a.pop())+1;n<e.tokens.length&&"s_close"===e.tokens[n].type;)n++;t!==--n&&(o=e.tokens[n],e.tokens[n]=e.tokens[t],e.tokens[t]=o)}}},function(e,t,n){"use strict";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;n<r.length;n++)e.push("text","",0).content=String.fromCharCode(o),e.delimiters.push({marker:o,length:r.length,jump:n,token:e.tokens.length-1,level:e.level,end:-1,open:r.can_open,close:r.can_close});return e.pos+=r.length,!0},e.exports.postProcess=function(e){var t,n,r,i,o,a,s=e.delimiters;for(t=e.delimiters.length-1;t>=0;t--)95!==(n=s[t]).marker&&42!==n.marker||-1!==n.end&&(r=s[n.end],a=t>0&&s[t-1].end===n.end+1&&s[t-1].token===n.token-1&&s[n.end+1].token===r.token+1&&s[t-1].marker===n.marker,o=String.fromCharCode(n.marker),(i=e.tokens[n.token]).type=a?"strong_open":"em_open",i.tag=a?"strong":"em",i.nesting=1,i.markup=a?o+o:o,i.content="",(i=e.tokens[r.token]).type=a?"strong_close":"em_close",i.tag=a?"strong":"em",i.nesting=-1,i.markup=a?o+o:o,i.content="",a&&(e.tokens[s[t-1].token].content="",e.tokens[s[n.end+1].token].content="",t--))}},function(e,t,n){"use strict";function r(e){var t=Array.prototype.slice.call(arguments,1);return t.forEach((function(t){t&&Object.keys(t).forEach((function(n){e[n]=t[n]}))})),e}function i(e){return Object.prototype.toString.call(e)}function o(e){return"[object Function]"===i(e)}function a(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var s={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};var u={"http:":{validate:function(e,t,n){var r=e.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){var r=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r)?t>=3&&":"===e[t-3]||t>=3&&"/"===e[t-3]?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){var r=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},c="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function l(e){var t=e.re=n(368)(e.__opts__),r=e.__tlds__.slice();function s(e){return e.replace("%TLDS%",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||r.push("a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]"),r.push(t.src_xn),t.src_tlds=r.join("|"),t.email_fuzzy=RegExp(s(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(s(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(s(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(s(t.tpl_host_fuzzy_test),"i");var u=[];function c(e,t){throw new Error('(LinkifyIt) Invalid schema "'+e+'": '+t)}e.__compiled__={},Object.keys(e.__schemas__).forEach((function(t){var n=e.__schemas__[t];if(null!==n){var r={validate:null,link:null};if(e.__compiled__[t]=r,"[object Object]"===i(n))return!function(e){return"[object RegExp]"===i(e)}(n.validate)?o(n.validate)?r.validate=n.validate:c(t,n):r.validate=function(e){return function(t,n){var r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}(n.validate),void(o(n.normalize)?r.normalize=n.normalize:n.normalize?c(t,n):r.normalize=function(e,t){t.normalize(e)});!function(e){return"[object String]"===i(e)}(n)?c(t,n):u.push(t)}})),u.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 l=Object.keys(e.__compiled__).filter((function(t){return t.length>0&&e.__compiled__[t]})).map(a).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+l+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+l+")","ig"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),function(e){e.__index__=-1,e.__text_cache__=""}(e)}function p(e,t){var n=e.__index__,r=e.__last_index__,i=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=i,this.text=i,this.url=i}function f(e,t){var n=new p(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function d(e,t){if(!(this instanceof d))return new d(e,t);var n;t||(n=e,Object.keys(n||{}).reduce((function(e,t){return e||s.hasOwnProperty(t)}),!1)&&(t=e,e={})),this.__opts__=r({},s,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=r({},u,e),this.__compiled__={},this.__tlds__=c,this.__tlds_replaced__=!1,this.re={},l(this)}d.prototype.add=function(e,t){return this.__schemas__[e]=t,l(this),this},d.prototype.set=function(e){return this.__opts__=r(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,u;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:"]&&(u=e.search(this.re.host_fuzzy_test))>=0&&(this.__index__<0||u<this.__index__)&&null!==(n=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))&&(o=n.index+n[1].length,(this.__index__<0||o<this.__index__)&&(this.__schema__="",this.__index__=o,this.__last_index__=n.index+n[0].length)),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&e.indexOf("@")>=0&&null!==(r=e.match(this.re.email_fuzzy))&&(o=r.index+r[1].length,a=r.index+r[0].length,(this.__index__<0||o<this.__index__||o===this.__index__&&a>this.__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(),l(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,l(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},function(e,t,n){(function(e,r){var i;/*! https://mths.be/punycode v1.4.1 by @mathias */!function(o){t&&t.nodeType,e&&e.nodeType;var a="object"==typeof r&&r;a.global!==a&&a.window!==a&&a.self;var s,u=2147483647,c=/^xn--/,l=/[^\x20-\x7E]/,p=/[\x2E\u3002\uFF0E\uFF61]/g,f={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},d=Math.floor,h=String.fromCharCode;function m(e){throw new RangeError(f[e])}function g(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function y(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+g((e=e.replace(p,".")).split("."),t).join(".")}function v(e){for(var t,n,r=[],i=0,o=e.length;i<o;)(t=e.charCodeAt(i++))>=55296&&t<=56319&&i<o?56320==(64512&(n=e.charCodeAt(i++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),i--):r.push(t);return r}function b(e){return g(e,(function(e){var t="";return e>65535&&(t+=h((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=h(e)})).join("")}function E(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function x(e,t,n){var r=0;for(e=n?d(e/700):e>>1,e+=d(e/t);e>455;r+=36)e=d(e/35);return d(r+36*e/(e+38))}function D(e){var t,n,r,i,o,a,s,c,l,p,f,h=[],g=e.length,y=0,v=128,E=72;for((n=e.lastIndexOf("-"))<0&&(n=0),r=0;r<n;++r)e.charCodeAt(r)>=128&&m("not-basic"),h.push(e.charCodeAt(r));for(i=n>0?n+1:0;i<g;){for(o=y,a=1,s=36;i>=g&&m("invalid-input"),((c=(f=e.charCodeAt(i++))-48<10?f-22:f-65<26?f-65:f-97<26?f-97:36)>=36||c>d((u-y)/a))&&m("overflow"),y+=c*a,!(c<(l=s<=E?1:s>=E+26?26:s-E));s+=36)a>d(u/(p=36-l))&&m("overflow"),a*=p;E=x(y-o,t=h.length+1,0==o),d(y/t)>u-v&&m("overflow"),v+=d(y/t),y%=t,h.splice(y++,0,v)}return b(h)}function C(e){var t,n,r,i,o,a,s,c,l,p,f,g,y,b,D,C=[];for(g=(e=v(e)).length,t=128,n=0,o=72,a=0;a<g;++a)(f=e[a])<128&&C.push(h(f));for(r=i=C.length,i&&C.push("-");r<g;){for(s=u,a=0;a<g;++a)(f=e[a])>=t&&f<s&&(s=f);for(s-t>d((u-n)/(y=r+1))&&m("overflow"),n+=(s-t)*y,t=s,a=0;a<g;++a)if((f=e[a])<t&&++n>u&&m("overflow"),f==t){for(c=n,l=36;!(c<(p=l<=o?1:l>=o+26?26:l-o));l+=36)D=c-p,b=36-p,C.push(h(E(p+D%b,0))),c=d(D/b);C.push(h(E(c,0))),o=x(n,y,r==i),n=0,++r}++n,++t}return C.join("")}s={version:"1.4.1",ucs2:{decode:v,encode:b},decode:D,encode:C,toASCII:function(e){return y(e,(function(e){return l.test(e)?"xn--"+C(e):e}))},toUnicode:function(e){return y(e,(function(e){return c.test(e)?D(e.slice(4).toLowerCase()):e}))}},void 0===(i=function(){return s}.call(t,n,t,e))||(e.exports=i)}()}).call(this,n(160)(e),n(42))},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0});var r=n(372);t.default=function(t,i,o){var a,s,u;n(16).on(i,"select",(function(n,i){if(!a){var c=i.parentNode,l=c.parentNode;a=document.createElement("div"),l.appendChild(a);var p=c.style.top,f="",d=t.cursorCoords().top;parseInt(p,10)<d&&(p="",f=window.innerHeight-d+3+"px"),a.className="CodeMirror-hints-wrapper",a.style.left=c.style.left,a.style.top=p,a.style.bottom=f,c.style.left="",c.style.top="",(s=document.createElement("div")).className="CodeMirror-hint-information",(u=document.createElement("div")).className="CodeMirror-hint-deprecation",f?(a.appendChild(u),a.appendChild(s),a.appendChild(c)):(a.appendChild(c),a.appendChild(s),a.appendChild(u));var h,m=a.clientHeight,g=parseFloat(String(p).replace("px","")),y=g;m+g>window.innerHeight&&(y=window.innerHeight-40-m),a.style.top=y+"px",e.wrapper=a,a.addEventListener("DOMNodeRemoved",h=function(e){e.target===c&&(a.removeEventListener("DOMNodeRemoved",h),a.parentNode.removeChild(a),a=null,s=null,h=null)})}var v=n.description?r(n.description,{sanitize:!0}):"",b=n.type&&"undefined"!==n.type?'<span class="infoType">'+function(e){return'<a class="typeName">'+e+"</a>"}(n.type)+"</span>":"";if(s.innerHTML='<div class="content">'+("<p>"===v.slice(0,3)?"<p>"+b+v.slice(3):b+v)+"</div>",n.isDeprecated){var E=n.deprecationReason?r(n.deprecationReason,{sanitize:!0}):"";u.innerHTML='<span class="deprecation-label">Deprecated</span>'+E,u.style.display="block"}else u.style.display="none";o&&o(s)}))}}).call(this,n(42))},function(e,t,n){const{noopTest:r,edit:i,merge:o}=n(75),a={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6}) +([^\n]*?)(?: +#+)? *(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?\\?>\\n*|<![A-Z][\\s\\S]*?>\\n*|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>\\n*|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|</(?!script|pre|style)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *<?([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:r,table:r,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};a.def=i(a.def).replace("label",a._label).replace("title",a._title).getRegex(),a.bullet=/(?:[*+-]|\d{1,9}\.)/,a.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,a.item=i(a.item,"gm").replace(/bull/g,a.bullet).getRegex(),a.list=i(a.list).replace(/bull/g,a.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+a.def.source+")").getRegex(),a._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",a._comment=/<!--(?!-?>)[\s\S]*?-->/,a.html=i(a.html,"i").replace("comment",a._comment).replace("tag",a._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),a.paragraph=i(a._paragraph).replace("hr",a.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",a._tag).getRegex(),a.blockquote=i(a.blockquote).replace("paragraph",a.paragraph).getRegex(),a.normal=o({},a),a.gfm=o({},a.normal,{nptable:"^ *([^|\\n ].*\\|.*)\\n *([-:]+ *\\|[-| :]*)(?:\\n((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)",table:"^ *\\|(.+)\\n *\\|?( *[-:]+[-| :]*)(?:\\n *((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),a.gfm.nptable=i(a.gfm.nptable).replace("hr",a.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",a._tag).getRegex(),a.gfm.table=i(a.gfm.table).replace("hr",a.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",a._tag).getRegex(),a.pedantic=o({},a.normal,{html:i("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",a._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,fences:r,paragraph:i(a.normal._paragraph).replace("hr",a.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",a.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});const s={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:r,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,strong:/^__([^\s_])__(?!_)|^\*\*([^\s*])\*\*(?!\*)|^__([^\s][\s\S]*?[^\s])__(?!_)|^\*\*([^\s][\s\S]*?[^\s])\*\*(?!\*)/,em:/^_([^\s_])_(?!_)|^\*([^\s*<\[])\*(?!\*)|^_([^\s<][\s\S]*?[^\s_])_(?!_|[^\spunctuation])|^_([^\s_<][\s\S]*?[^\s])_(?!_|[^\spunctuation])|^\*([^\s<"][\s\S]*?[^\s\*])\*(?!\*|[^\spunctuation])|^\*([^\s*"<\[][\s\S]*?[^\s])\*(?!\*)/,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:r,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*]|\b_|$)|[^ ](?= {2,}\n))|(?= {2,}\n))/,_punctuation:"!\"#$%&'()*+,\\-./:;<=>?@\\[^_{|}~"};s.em=i(s.em).replace(/punctuation/g,s._punctuation).getRegex(),s._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,s._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,s._email=/[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])?)+(?![-_])/,s.autolink=i(s.autolink).replace("scheme",s._scheme).replace("email",s._email).getRegex(),s._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,s.tag=i(s.tag).replace("comment",a._comment).replace("attribute",s._attribute).getRegex(),s._label=/(?:\[[^\[\]]*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,s._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,s._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,s.link=i(s.link).replace("label",s._label).replace("href",s._href).replace("title",s._title).getRegex(),s.reflink=i(s.reflink).replace("label",s._label).getRegex(),s.normal=o({},s),s.pedantic=o({},s.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/,link:i(/^!?\[(label)\]\((.*?)\)/).replace("label",s._label).getRegex(),reflink:i(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",s._label).getRegex()}),s.gfm=o({},s.normal,{escape:i(s.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^~+(?=\S)([\s\S]*?\S)~+/,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*~]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))|(?= {2,}\n|[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))/}),s.gfm.url=i(s.gfm.url,"i").replace("email",s.gfm._extended_email).getRegex(),s.breaks=o({},s.gfm,{br:i(s.br).replace("{2,}","*").getRegex(),text:i(s.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()}),e.exports={block:a,inline:s}},function(e,t){e.exports=class{constructor(){this.seen={}}slug(e){let t=e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(t)){const e=t;do{this.seen[e]++,t=e+"-"+this.seen[e]}while(this.seen.hasOwnProperty(t))}return this.seen[t]=0,t}}},function(e,t,n){const r=n(124),{defaults:i}=n(89),{inline:o}=n(180),{findClosingBracket:a,escape:s}=n(75);e.exports=class e{constructor(e,t){if(this.options=t||i,this.links=e,this.rules=o.normal,this.options.renderer=this.options.renderer||new r,this.renderer=this.options.renderer,this.renderer.options=this.options,!this.links)throw new Error("Tokens array requires a `links` property.");this.options.pedantic?this.rules=o.pedantic:this.options.gfm&&(this.options.breaks?this.rules=o.breaks:this.rules=o.gfm)}static get rules(){return o}static output(t,n,r){return new e(n,r).output(t)}output(t){let n,r,i,o,u,c,l="";for(;t;)if(u=this.rules.escape.exec(t))t=t.substring(u[0].length),l+=s(u[1]);else if(u=this.rules.tag.exec(t))!this.inLink&&/^<a /i.test(u[0])?this.inLink=!0:this.inLink&&/^<\/a>/i.test(u[0])&&(this.inLink=!1),!this.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(u[0])?this.inRawBlock=!0:this.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(u[0])&&(this.inRawBlock=!1),t=t.substring(u[0].length),l+=this.renderer.html(this.options.sanitize?this.options.sanitizer?this.options.sanitizer(u[0]):s(u[0]):u[0]);else if(u=this.rules.link.exec(t)){const r=a(u[2],"()");if(r>-1){const e=(0===u[0].indexOf("!")?5:4)+u[1].length+r;u[2]=u[2].substring(0,r),u[0]=u[0].substring(0,e).trim(),u[3]=""}t=t.substring(u[0].length),this.inLink=!0,i=u[2],this.options.pedantic?(n=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(i),n?(i=n[1],o=n[3]):o=""):o=u[3]?u[3].slice(1,-1):"",i=i.trim().replace(/^<([\s\S]*)>$/,"$1"),l+=this.outputLink(u,{href:e.escapes(i),title:e.escapes(o)}),this.inLink=!1}else if((u=this.rules.reflink.exec(t))||(u=this.rules.nolink.exec(t))){if(t=t.substring(u[0].length),n=(u[2]||u[1]).replace(/\s+/g," "),n=this.links[n.toLowerCase()],!n||!n.href){l+=u[0].charAt(0),t=u[0].substring(1)+t;continue}this.inLink=!0,l+=this.outputLink(u,n),this.inLink=!1}else if(u=this.rules.strong.exec(t))t=t.substring(u[0].length),l+=this.renderer.strong(this.output(u[4]||u[3]||u[2]||u[1]));else if(u=this.rules.em.exec(t))t=t.substring(u[0].length),l+=this.renderer.em(this.output(u[6]||u[5]||u[4]||u[3]||u[2]||u[1]));else if(u=this.rules.code.exec(t))t=t.substring(u[0].length),l+=this.renderer.codespan(s(u[2].trim(),!0));else if(u=this.rules.br.exec(t))t=t.substring(u[0].length),l+=this.renderer.br();else if(u=this.rules.del.exec(t))t=t.substring(u[0].length),l+=this.renderer.del(this.output(u[1]));else if(u=this.rules.autolink.exec(t))t=t.substring(u[0].length),"@"===u[2]?(r=s(this.mangle(u[1])),i="mailto:"+r):(r=s(u[1]),i=r),l+=this.renderer.link(i,null,r);else if(this.inLink||!(u=this.rules.url.exec(t))){if(u=this.rules.text.exec(t))t=t.substring(u[0].length),this.inRawBlock?l+=this.renderer.text(this.options.sanitize?this.options.sanitizer?this.options.sanitizer(u[0]):s(u[0]):u[0]):l+=this.renderer.text(s(this.smartypants(u[0])));else if(t)throw new Error("Infinite loop on byte: "+t.charCodeAt(0))}else{if("@"===u[2])r=s(u[0]),i="mailto:"+r;else{do{c=u[0],u[0]=this.rules._backpedal.exec(u[0])[0]}while(c!==u[0]);r=s(u[0]),i="www."===u[1]?"http://"+r:r}t=t.substring(u[0].length),l+=this.renderer.link(i,null,r)}return l}static escapes(t){return t?t.replace(e.rules._escapes,"$1"):t}outputLink(e,t){const n=t.href,r=t.title?s(t.title):null;return"!"!==e[0].charAt(0)?this.renderer.link(n,r,this.output(e[1])):this.renderer.image(n,r,s(e[1]))}smartypants(e){return this.options.smartypants?e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…"):e}mangle(e){if(!this.options.mangle)return e;const t=e.length;let n,r="",i=0;for(;i<t;i++)n=e.charCodeAt(i),Math.random()>.5&&(n="x"+n.toString(16)),r+="&#"+n+";";return r}}},function(e,t){e.exports=class{strong(e){return e}em(e){return e}codespan(e){return e}del(e){return e}html(e){return e}text(e){return e}link(e,t,n){return""+n}image(e,t,n){return""+n}br(){return""}}},function(e,t,n){!function(e){"use strict";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(),u=i[a].to();s.line>=n||(u.line>=n&&(u=r(n,0)),n=s.line,null==o?this.uncomment(s,u,e)?o="un":(this.lineComment(s,u,e),o="line"):"un"==o?this.uncomment(s,u,e):this.lineComment(s,u,e))}})),e.defineExtension("lineComment",(function(e,i,s){s||(s=t);var u=this,c=a(u,e),l=u.getLine(e.line);if(null!=l&&(p=e,f=l,!/\bstring\b/.test(u.getTokenTypeAt(r(p.line,0)))||/^[\'\"\`]/.test(f))){var p,f,d=s.lineComment||c.lineComment;if(d){var h=Math.min(0!=i.ch||i.line==e.line?i.line+1:i.line,u.lastLine()+1),m=null==s.padding?" ":s.padding,g=s.commentBlankLines||e.line==i.line;u.operation((function(){if(s.indent){for(var t=null,i=e.line;i<h;++i){var a=(c=u.getLine(i)).slice(0,o(c));(null==t||t.length>a.length)&&(t=a)}for(i=e.line;i<h;++i){var c=u.getLine(i),l=t.length;(g||n.test(c))&&(c.slice(0,l)!=t&&(l=o(c)),u.replaceRange(t+d+m,r(i,0),r(i,l)))}}else for(i=e.line;i<h;++i)(g||n.test(u.getLine(i)))&&u.replaceRange(d+m,r(i,0))}))}else(s.blockCommentStart||c.blockCommentStart)&&(s.fullLines=!0,u.blockComment(e,i,s))}})),e.defineExtension("blockComment",(function(e,o,s){s||(s=t);var u=this,c=a(u,e),l=s.blockCommentStart||c.blockCommentStart,p=s.blockCommentEnd||c.blockCommentEnd;if(l&&p){if(!/\bcomment\b/.test(u.getTokenTypeAt(r(e.line,0)))){var f=Math.min(o.line,u.lastLine());f!=e.line&&0==o.ch&&n.test(u.getLine(f))&&--f;var d=null==s.padding?" ":s.padding;e.line>f||u.operation((function(){if(0!=s.fullLines){var t=n.test(u.getLine(f));u.replaceRange(d+p,r(f)),u.replaceRange(l+d,r(e.line,0));var a=s.blockCommentLead||c.blockCommentLead;if(null!=a)for(var h=e.line+1;h<=f;++h)(h!=f||t)&&u.replaceRange(a+d,r(h,0))}else{var m=0==i(u.getCursor("to"),o),g=!u.somethingSelected();u.replaceRange(p,o),m&&u.setSelection(g?o:u.getCursor("from"),o),u.replaceRange(l,e)}}))}}else(s.lineComment||c.lineComment)&&0!=s.fullLines&&u.lineComment(e,o,s)})),e.defineExtension("uncomment",(function(e,i,o){o||(o=t);var s,u=this,c=a(u,e),l=Math.min(0!=i.ch||i.line==e.line?i.line:i.line-1,u.lastLine()),p=Math.min(e.line,l),f=o.lineComment||c.lineComment,d=[],h=null==o.padding?" ":o.padding;e:if(f){for(var m=p;m<=l;++m){var g=u.getLine(m),y=g.indexOf(f);if(y>-1&&!/comment/.test(u.getTokenTypeAt(r(m,y+1)))&&(y=-1),-1==y&&n.test(g))break e;if(y>-1&&n.test(g.slice(0,y)))break e;d.push(g)}if(u.operation((function(){for(var e=p;e<=l;++e){var t=d[e-p],n=t.indexOf(f),i=n+f.length;n<0||(t.slice(i,i+h.length)==h&&(i+=h.length),s=!0,u.replaceRange("",r(e,n),r(e,i)))}})),s)return!0}var v=o.blockCommentStart||c.blockCommentStart,b=o.blockCommentEnd||c.blockCommentEnd;if(!v||!b)return!1;var E=o.blockCommentLead||c.blockCommentLead,x=u.getLine(p),D=x.indexOf(v);if(-1==D)return!1;var C=l==p?x:u.getLine(l),w=C.indexOf(b,l==p?D+v.length:0),S=r(p,D+1),k=r(l,w+1);if(-1==w||!/comment/.test(u.getTokenTypeAt(S))||!/comment/.test(u.getTokenTypeAt(k))||u.getRange(S,k,"\n").indexOf(b)>-1)return!1;var A=x.lastIndexOf(v,e.ch),T=-1==A?-1:x.slice(0,e.ch).indexOf(b,A+v.length);if(-1!=A&&-1!=T&&T+b.length!=e.ch)return!1;T=C.indexOf(b,i.ch);var _=C.slice(i.ch).lastIndexOf(v,T-i.ch);return A=-1==T||-1==_?-1:i.ch+_,(-1==T||-1==A||A==i.ch)&&(u.operation((function(){u.replaceRange("",r(l,w-(h&&C.slice(w-h.length,w)==h?h.length:0)),r(l,w+b.length));var e=D+v.length;if(h&&x.slice(e,e+h.length)==h&&(e+=h.length),u.replaceRange("",r(p,D),r(p,e)),E)for(var t=p+1;t<=l;++t){var i=u.getLine(t),o=i.indexOf(E);if(-1!=o&&!n.test(i.slice(0,o))){var a=o+E.length;h&&i.slice(a,a+h.length)==h&&(a+=h.length),u.replaceRange("",r(t,o),r(t,a))}}})),!0)}))}(n(16))},function(e,t,n){!function(e){"use strict";function t(){this.posFrom=this.posTo=this.lastQuery=this.query=null,this.overlay=null}function n(e){return e.state.search||(e.state.search=new t)}function r(e){return"string"==typeof e&&e==e.toLowerCase()}function i(e,t,n){return e.getSearchCursor(t,n,{caseFold:r(t),multiline:!0})}function o(e,t,n,r,i){e.openDialog?e.openDialog(t,i,{value:r,selectValueOnOpen:!0}):i(prompt(n,r))}function a(e){return e.replace(/\\([nrt\\])/g,(function(e,t){return"n"==t?"\n":"r"==t?"\r":"t"==t?"\t":"\\"==t?"\\":e}))}function s(e){var t=e.match(/^\/(.*)\/([a-z]*)$/);if(t)try{e=new RegExp(t[1],-1==t[2].indexOf("i")?"":"i")}catch(e){}else e=a(e);return("string"==typeof e?""==e:e.test(""))&&(e=/x^/),e}function u(e,t,n){t.queryText=n,t.query=s(n),e.removeOverlay(t.overlay,r(t.query)),t.overlay=function(e,t){return"string"==typeof e?e=new RegExp(e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),t?"gi":"g"):e.global||(e=new RegExp(e.source,e.ignoreCase?"gi":"g")),{token:function(t){e.lastIndex=t.pos;var n=e.exec(t.string);if(n&&n.index==t.pos)return t.pos+=n[0].length||1,"searching";n?t.pos=n.index:t.skipToEnd()}}}(t.query,r(t.query)),e.addOverlay(t.overlay),e.showMatchesOnScrollbar&&(t.annotate&&(t.annotate.clear(),t.annotate=null),t.annotate=e.showMatchesOnScrollbar(t.query,r(t.query)))}function c(t,r,i,a){var s=n(t);if(s.query)return l(t,r);var c=t.getSelection()||s.lastQuery;if(c instanceof RegExp&&"x^"==c.source&&(c=null),i&&t.openDialog){var d=null,h=function(n,r){e.e_stop(r),n&&(n!=s.queryText&&(u(t,s,n),s.posFrom=s.posTo=t.getCursor()),d&&(d.style.opacity=1),l(t,r.shiftKey,(function(e,n){var r;n.line<3&&document.querySelector&&(r=t.display.wrapper.querySelector(".CodeMirror-dialog"))&&r.getBoundingClientRect().bottom-4>t.cursorCoords(n,"window").top&&((d=r).style.opacity=.4)})))};!function(e,t,n,r,i){e.openDialog(t,r,{value:n,selectValueOnOpen:!0,closeOnEnter:!1,onClose:function(){p(e)},onKeyDown:i})}(t,f(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),u(t,n(t),i),t.execCommand(s)):"find"!=s&&"findPersistent"!=s||(e.e_stop(r),h(i,r))})),a&&c&&(u(t,s,c),l(t,r))}else o(t,f(t),"Search for:",c,(function(e){e&&!s.query&&t.operation((function(){u(t,s,e),s.posFrom=s.posTo=t.getCursor(),l(t,r)}))}))}function l(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 p(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 f(e){return'<span class="CodeMirror-search-label">'+e.phrase("Search:")+'</span> <input type="text" style="width: 10em" class="CodeMirror-search-field"/> <span style="color: #888" class="CodeMirror-search-hint">'+e.phrase("(Use /re/ syntax for regexp search)")+"</span>"}function d(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,u='<span class="CodeMirror-search-label">'+(t?e.phrase("Replace all:"):e.phrase("Replace:"))+"</span>";o(e,u+function(e){return' <input type="text" style="width: 10em" class="CodeMirror-search-field"/> <span style="color: #888" class="CodeMirror-search-hint">'+e.phrase("(Use /re/ syntax for regexp search)")+"</span>"}(e),u,r,(function(n){n&&(n=s(n),o(e,function(e){return'<span class="CodeMirror-search-label">'+e.phrase("With:")+'</span> <input type="text" style="width: 10em" class="CodeMirror-search-field"/>'}(e),e.phrase("Replace with:"),"",(function(r){if(r=a(r),t)d(e,n,r);else{p(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'<span class="CodeMirror-search-label">'+e.phrase("Replace?")+"</span> <button>"+e.phrase("Yes")+"</button> <button>"+e.phrase("No")+"</button> <button>"+e.phrase("All")+"</button> <button>"+e.phrase("Stop")+"</button> "}(e),e.phrase("Replace?"),[function(){u(t)},s,function(){d(e,n,r)}]))},u=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){p(e),c(e)},e.commands.findPersistent=function(e){p(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=p,e.commands.replace=h,e.commands.replaceAll=function(e){h(e,!0)}}(n(16),n(69),n(70))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){const n={schema:e,type:null,parentType:null,inputType:null,directiveDef:null,fieldDef:null,argDef:null,argDefs:null,objectFieldDefs:null};return(0,a.default)(t,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?s(e,n.parentType,t.name):null,n.type=n.fieldDef&&n.fieldDef.type;break;case"SelectionSet":n.parentType=(0,i.getNamedType)(n.type);break;case"Directive":n.directiveDef=t.name&&e.getDirective(t.name);break;case"Arguments":const r="Field"===t.prevState.kind?n.fieldDef:"Directive"===t.prevState.kind?n.directiveDef:"AliasedField"===t.prevState.kind?t.prevState.name&&s(e,n.parentType,t.prevState.name):null;n.argDefs=r&&r.args;break;case"Argument":if(n.argDef=null,n.argDefs)for(let e=0;e<n.argDefs.length;e++)if(n.argDefs[e].name===t.name){n.argDef=n.argDefs[e];break}n.inputType=n.argDef&&n.argDef.type;break;case"EnumValue":const o=(0,i.getNamedType)(n.inputType);n.enumValue=o instanceof i.GraphQLEnumType?function(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return e[n]}(o.getValues(),e=>e.value===t.name):null;break;case"ListValue":const a=(0,i.getNullableType)(n.inputType);n.inputType=a instanceof i.GraphQLList?a.ofType:null;break;case"ObjectValue":const u=(0,i.getNamedType)(n.inputType);n.objectFieldDefs=u instanceof i.GraphQLInputObjectType?u.getFields():null;break;case"ObjectField":const c=t.name&&n.objectFieldDefs?n.objectFieldDefs[t.name]:null;n.inputType=c&&c.type;break;case"NamedType":n.type=e.getType(t.name)}}),n};var r,i=n(20),o=n(12),a=(r=n(187))&&r.__esModule?r:{default:r};function s(e,t,n){return n===o.SchemaMetaFieldDef.name&&e.getQueryType()===t?o.SchemaMetaFieldDef:n===o.TypeMetaFieldDef.name&&e.getQueryType()===t?o.TypeMetaFieldDef:n===o.TypeNameMetaFieldDef.name&&(0,i.isCompositeType)(t)?o.TypeNameMetaFieldDef:t.getFields?t.getFields()[n]:void 0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(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(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFieldReference=function(e){return{kind:"Field",schema:e.schema,field:e.fieldDef,type:i(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:i(e.fieldDef)?null:e.parentType}},t.getEnumValueReference=function(e){return{kind:"EnumValue",value:e.enumValue,type:(0,r.getNamedType)(e.inputType)}},t.getTypeReference=function(e,t){return{kind:"Type",schema:e.schema,type:t||e.type}};var r=n(20);function i(e){return"__"===e.name.slice(0,2)}},function(e,t,n){"use strict";var r,i=(r=n(16))&&r.__esModule?r:{default:r},o=n(135);function a(e,t){const n=e.levels;return(n&&0!==n.length?n[n.length-1]-(this.electricInput.test(t)?1:0):e.indentLevel)*this.config.indentUnit}i.default.defineMode("graphql",e=>{const t=(0,o.onlineParser)({eatWhitespace:e=>e.eatWhile(o.isIgnored),lexRules:o.LexRules,parseRules:o.ParseRules,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:a,electricInput:/^\s*[})\]]/,fold:"brace",lineComment:"#",closeBrackets:{pairs:'()[]{}""',explode:"()[]{}"}}})},function(e,t,n){"use strict";var r=n(387),i={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,o,a,s,u,c,l=!1;t||(t={}),n=t.debug||!1;try{if(a=r(),s=document.createRange(),u=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(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),void 0===r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var o=i[t.format]||i.default;window.clipboardData.setData(o,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))})),document.body.appendChild(c),s.selectNodeContents(c),u.addRange(s),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");l=!0}catch(r){n&&console.error("unable to copy using execCommand: ",r),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),l=!0}catch(r){n&&console.error("unable to copy using clipboardData: ",r),n&&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 t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(o,e)}}finally{u&&("function"==typeof u.removeRange?u.removeRange(s):u.removeAllRanges()),c&&document.body.removeChild(c),a()}return l}},function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e};Object.defineProperty(t,"__esModule",{value:!0});var i,o=n(11);t.default=o.styled.div(i||(i=r(["\n width: 20px;\n height: 20px;\n"],["\n width: 20px;\n height: 20px;\n"])))},function(e,t,n){"use strict";var r=s(n(16)),i=n(20),o=s(n(187)),a=s(n(400));function s(e){return e&&e.__esModule?e:{default:e}}r.default.registerHelper("hint","graphql-variables",(e,t)=>{const n=e.getCursor(),s=e.getTokenAt(n),u=function(e,t,n){const r="Invalid"===t.state.kind?t.state.prevState:t.state,s=r.kind,u=r.step;if("Document"===s&&0===u)return(0,a.default)(e,t,[{text:"{"}]);const c=n.variableToType;if(!c)return;const l=function(e,t){const n={type:null,fields:null};return(0,o.default)(t,t=>{if("Variable"===t.kind)n.type=e[t.name];else if("ListValue"===t.kind){const e=(0,i.getNullableType)(n.type);n.type=e instanceof i.GraphQLList?e.ofType:null}else if("ObjectValue"===t.kind){const e=(0,i.getNamedType)(n.type);n.fields=e instanceof i.GraphQLInputObjectType?e.getFields():null}else if("ObjectField"===t.kind){const e=t.name&&n.fields?n.fields[t.name]:null;n.type=e&&e.type}}),n}(c,t.state);if("Document"===s||"Variable"===s&&0===u){const n=Object.keys(c);return(0,a.default)(e,t,n.map(e=>({text:`"${e}": `,type:c[e]})))}if(("ObjectValue"===s||"ObjectField"===s&&0===u)&&l.fields){const n=Object.keys(l.fields).map(e=>l.fields[e]);return(0,a.default)(e,t,n.map(e=>({text:`"${e.name}": `,type:e.type,description:e.description})))}if("StringValue"===s||"NumberValue"===s||"BooleanValue"===s||"NullValue"===s||"ListValue"===s&&1===u||"ObjectField"===s&&2===u||"Variable"===s&&2===u){const n=(0,i.getNamedType)(l.type);if(n instanceof i.GraphQLInputObjectType)return(0,a.default)(e,t,[{text:"{"}]);if(n instanceof i.GraphQLEnumType){const r=n.getValues(),i=Object.keys(r).map(e=>r[e]);return(0,a.default)(e,t,i.map(e=>({text:`"${e.name}"`,type:n,description:e.description})))}if(n===i.GraphQLBoolean)return(0,a.default)(e,t,[{text:"true",type:i.GraphQLBoolean,description:"Not false."},{text:"false",type:i.GraphQLBoolean,description:"Not true."}])}}(n,s,t);return u&&u.list&&u.list.length>0&&(u.from=r.default.Pos(u.from.line,u.from.column),u.to=r.default.Pos(u.to.line,u.to.column),r.default.signal(e,"hasCompletion",e,u,s)),u})},function(e,t,n){"use strict";var r=a(n(16)),i=n(20),o=a(n(401));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t,n){return{message:n,severity:"error",type:"validation",from:e.posFromIndex(t.start),to:e.posFromIndex(t.end)}}function u(e,t){return Array.prototype.concat.apply([],e.map(t))}r.default.registerHelper("lint","graphql-variables",(e,t,n)=>{if(!e)return[];let r;try{r=(0,o.default)(e)}catch(e){if(e.stack)throw e;return[s(n,e,e.message)]}const a=t.variableToType;return a?function(e,t,n){const r=[];return n.members.forEach(n=>{const o=n.key.value,a=t[o];a?function e(t,n){if(t instanceof i.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 i.GraphQLList){const r=t.ofType;return"Array"===n.kind?u(n.values,t=>e(r,t)):e(r,n)}if(t instanceof i.GraphQLInputObjectType){if("Object"!==n.kind)return[[n,`Type "${t}" must be an Object.`]];const r=Object.create(null),o=u(n.members,n=>{const i=n.key.value;r[i]=!0;const o=t.getFields()[i];if(!o)return[[n.key,`Type "${t}" does not have a field "${i}".`]];const a=o?o.type:void 0;return e(a,n.value)});return Object.keys(t.getFields()).forEach(e=>{if(!r[e]){t.getFields()[e].type instanceof i.GraphQLNonNull&&o.push([n,`Object of type "${t}" is missing required field "${e}".`])}}),o}if("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))return[[n,`Expected value of type "${t}".`]];if((t instanceof i.GraphQLEnumType||t instanceof i.GraphQLScalarType)&&("String"!==n.kind&&"Number"!==n.kind&&"Boolean"!==n.kind&&"Null"!==n.kind||(null==(r=t.parseValue(n.value))||r!=r)))return[[n,`Expected value of type "${t}".`]];var r;return[]}(a,n.value).forEach(([t,n])=>{r.push(s(e,t,n))}):r.push(s(e,n.key,`Variable "$${o}" does not appear in any GraphQL query.`))}),r}(n,a,r):[]})},function(e,t,n){"use strict";var r,i=(r=n(16))&&r.__esModule?r:{default:r},o=n(135);function a(e,t){const n=e.levels;return(n&&0!==n.length?n[n.length-1]-(this.electricInput.test(t)?1:0):e.indentLevel)*this.config.indentUnit}i.default.defineMode("graphql-variables",e=>{const t=(0,o.onlineParser)({eatWhitespace:e=>e.eatSpace(),lexRules:s,parseRules:u,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:a,electricInput:/^\s*[}\]]/,fold:"brace",closeBrackets:{pairs:'[]{}""',explode:"[]{}"}}});const s={Punctuation:/^\[|]|\{|\}|:|,/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?/,Keyword:/^true|false|null/},u={Document:[(0,o.p)("{"),(0,o.list)("Variable",(0,o.opt)((0,o.p)(","))),(0,o.p)("}")],Variable:[c("variable"),(0,o.p)(":"),"Value"],Value(e){switch(e.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(e.value){case"[":return"ListValue";case"{":return"ObjectValue"}return null;case"Keyword":switch(e.value){case"true":case"false":return"BooleanValue";case"null":return"NullValue"}return null}},NumberValue:[(0,o.t)("Number","number")],StringValue:[(0,o.t)("String","string")],BooleanValue:[(0,o.t)("Keyword","builtin")],NullValue:[(0,o.t)("Keyword","keyword")],ListValue:[(0,o.p)("["),(0,o.list)("Value",(0,o.opt)((0,o.p)(","))),(0,o.p)("]")],ObjectValue:[(0,o.p)("{"),(0,o.list)("ObjectField",(0,o.opt)((0,o.p)(","))),(0,o.p)("}")],ObjectField:[c("attribute"),(0,o.p)(":"),"Value"]};function c(e){return{style:e,match:e=>"String"===e.kind,update(e,t){e.name=t.value.slice(1,-1)}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLeft=function(e){let t=0,n=e;for(;n.offsetParent;)t+=n.offsetLeft,n=n.offsetParent;return t},t.getTop=function(e){let t=0,n=e;for(;n.offsetParent;)t+=n.offsetTop,n=n.offsetParent;return t}},function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e};Object.defineProperty(t,"__esModule",{value:!0});var a=n(3),s=n(11),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.render=function(){var e=this.props,t=e.label,n=e.activeColor,r=e.active,i=e.onClick,o=e.tabWidth;return a.createElement(l,{onClick:i,activeColor:n,active:r,tabWidth:o},t)},t}(a.PureComponent);t.default=u;var c,l=s.styled("div")(c||(c=o(["\n z-index: ",";\n padding: 8px 8px 8px 8px;\n border-radius: 2px 2px 0px 0px;\n color: ",";\n background: ",";\n box-shadow: -1px 1px 6px 0 rgba(0, 0, 0, 0.3);\n text-transform: uppercase;\n text-align: center;\n font-weight: 600;\n font-size: 12px;\n line-height: 12px;\n letter-spacing: 0.45px;\n cursor: pointer;\n transform: rotate(-90deg);\n transform-origin: bottom left;\n margin-top: 65px;\n width: ",";\n"],["\n z-index: ",";\n padding: 8px 8px 8px 8px;\n border-radius: 2px 2px 0px 0px;\n color: ",";\n background: ",";\n box-shadow: -1px 1px 6px 0 rgba(0, 0, 0, 0.3);\n text-transform: uppercase;\n text-align: center;\n font-weight: 600;\n font-size: 12px;\n line-height: 12px;\n letter-spacing: 0.45px;\n cursor: pointer;\n transform: rotate(-90deg);\n transform-origin: bottom left;\n margin-top: 65px;\n width: ",";\n"])),(function(e){return e.active?10:2}),(function(e){return"dark"===e.theme.mode?e.theme.colours.white:e.theme.colours[e.active?"white":"darkBlue"]}),(function(e){return e.active&&e.activeColor?e.theme.colours[e.activeColor]:"dark"===e.theme.mode?"#3D5866":"#DBDEE0"}),(function(e){return e.tabWidth||"100%"}))},function(e,t){function n(e){if(e&&"object"==typeof e){var t=e.which||e.keyCode||e.charCode;t&&(e=t)}if("number"==typeof e)return a[e];var n,o=String(e);return(n=r[o.toLowerCase()])?n:(n=i[o.toLowerCase()])||(1===o.length?o.charCodeAt(0):void 0)}n.isEventKey=function(e,t){if(e&&"object"==typeof e){var n=e.which||e.keyCode||e.charCode;if(null==n)return!1;if("string"==typeof t){var o;if(o=r[t.toLowerCase()])return o===n;if(o=i[t.toLowerCase()])return o===n}else if("number"==typeof t)return t===n;return!1}};var r=(t=e.exports=n).code=t.codes={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,"pause/break":19,"caps lock":20,esc:27,space:32,"page up":33,"page down":34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,delete:46,command:91,"left command":91,"right command":93,"numpad *":106,"numpad +":107,"numpad -":109,"numpad .":110,"numpad /":111,"num lock":144,"scroll lock":145,"my computer":182,"my calculator":183,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},i=t.aliases={windows:91,"⇧":16,"⌥":18,"⌃":17,"⌘":91,ctl:17,control:17,option:18,pause:19,break:19,caps:20,return:13,escape:27,spc:32,spacebar:32,pgup:33,pgdn:34,ins:45,del:46,cmd:91};
/*!
* Programatically add the following
*/
for(o=97;o<123;o++)r[String.fromCharCode(o)]=o-32;for(var o=48;o<58;o++)r[o-48]=o;for(o=1;o<13;o++)r["f"+o]=o+111;for(o=0;o<10;o++)r["numpad "+o]=o+96;var a=t.names=t.title={};for(o in r)a[r[o]]=o;for(var s in i)r[s]=i[s]},function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e};Object.defineProperty(t,"__esModule",{value:!0});var i,o=n(11);t.ErrorContainer=o.styled.div(i||(i=r(["\n font-weight: bold;\n left: 0;\n letter-spacing: 1px;\n opacity: 0.5;\n position: absolute;\n right: 0;\n text-align: center;\n text-transform: uppercase;\n top: 50%;\n transform: translate(0, -50%);\n"],["\n font-weight: bold;\n left: 0;\n letter-spacing: 1px;\n opacity: 0.5;\n position: absolute;\n right: 0;\n text-align: center;\n text-transform: uppercase;\n top: 50%;\n transform: translate(0, -50%);\n"])))},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var i=n(20),o=n(88),a=n(87),s=["__Schema","__Directive","__DirectiveLocation","__Type","__Field","__InputValue","__EnumValue","__TypeKind","String","ID","Boolean","Int","Float"];function u(e){return e instanceof i.GraphQLInterfaceType?"interface":e instanceof i.GraphQLUnionType?"union":e instanceof i.GraphQLEnumType?"enum":e instanceof i.GraphQLInputObjectType?"input":"type"}function c(e,t){if(void 0===t&&(t=!0),e instanceof i.GraphQLSchema){var n=i.printSchema(e,{commentDescriptions:!0});return a.prettify(n,{printWidth:80,tabWidth:2,useTabs:!1})}return""}function l(e,t,n){var r=new Blob([e],{type:n||"application/octet-stream"});if(void 0!==window.navigator.msSaveBlob)window.navigator.msSaveBlob(r,t);else{var i=window.URL.createObjectURL(r),o=document.createElement("a");o.style.display="none",o.href=i,o.setAttribute("download",t),void 0===o.download&&o.setAttribute("target","_blank"),document.body.appendChild(o),o.click(),document.body.removeChild(o),window.URL.revokeObjectURL(i)}}t.sdlArray=function(e,t){return(Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))})(e.getTypeMap()).sort((function(e,t){return e.name.localeCompare(t.name)})).filter((function(e){return!s.includes(e.name)})).map((function(t){return r(r(r({},t),o.serialize(e,t)),{instanceOf:u(t)})}))},t.getSDL=c,t.downloadSchema=function(e,t){return"sdl"===t?l(c(e,!1),"schema.graphql"):l(JSON.stringify(e),"introspectionSchema.json")}},function(e,t,n){"use strict";e.exports=n(421)},function(e,t,n){"use strict";var r="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",i="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",o=new RegExp("^(?:"+r+"|"+i+"|\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e|<[?].*?[?]>|<![A-Z]+\\s+[^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)"),a=new RegExp("^(?:"+r+"|"+i+")");e.exports.HTML_TAG_RE=o,e.exports.HTML_OPEN_CLOSE_TAG_RE=a},function(e,t,n){"use strict";function r(e,t){var n,r,i,o,a,s=[],u=t.length;for(n=0;n<u;n++)126===(i=t[n]).marker&&-1!==i.end&&(o=t[i.end],(a=e.tokens[i.token]).type="s_open",a.tag="s",a.nesting=1,a.markup="~~",a.content="",(a=e.tokens[o.token]).type="s_close",a.tag="s",a.nesting=-1,a.markup="~~",a.content="","text"===e.tokens[o.token-1].type&&"~"===e.tokens[o.token-1].content&&s.push(o.token-1));for(;s.length;){for(r=(n=s.pop())+1;r<e.tokens.length&&"s_close"===e.tokens[r].type;)r++;n!==--r&&(a=e.tokens[r],e.tokens[r]=e.tokens[n],e.tokens[n]=a)}}e.exports.tokenize=function(e,t){var n,r,i,o,a=e.pos,s=e.src.charCodeAt(a);if(t)return!1;if(126!==s)return!1;if(i=(r=e.scanDelims(e.pos,!0)).length,o=String.fromCharCode(s),i<2)return!1;for(i%2&&(e.push("text","",0).content=o,i--),n=0;n<i;n+=2)e.push("text","",0).content=o+o,e.delimiters.push({marker:s,length:0,jump:n,token:e.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});return e.pos+=r.length,!0},e.exports.postProcess=function(e){var t,n=e.tokens_meta,i=e.tokens_meta.length;for(r(e,e.delimiters),t=0;t<i;t++)n[t]&&n[t].delimiters&&r(e,n[t].delimiters)}},function(e,t,n){"use strict";function r(e,t){var n,r,i,o,a,s;for(n=t.length-1;n>=0;n--)95!==(r=t[n]).marker&&42!==r.marker||-1!==r.end&&(i=t[r.end],s=n>0&&t[n-1].end===r.end+1&&t[n-1].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;n<r.length;n++)e.push("text","",0).content=String.fromCharCode(o),e.delimiters.push({marker:o,length:r.length,jump:n,token:e.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});return e.pos+=r.length,!0},e.exports.postProcess=function(e){var t,n=e.tokens_meta,i=e.tokens_meta.length;for(r(e,e.delimiters),t=0;t<i;t++)n[t]&&n[t].delimiters&&r(e,n[t].delimiters)}},function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e};Object.defineProperty(t,"__esModule",{value:!0});var i,o=n(3),a=n(11).styled.div(i||(i=r(["\n color: rgba(0, 0, 0, 0.3);\n cursor: default;\n font-size: 14px;\n font-weight: 600;\n text-transform: uppercase !important;\n letter-spacing: 1px;\n padding: 16px;\n user-select: none;\n"],["\n color: rgba(0, 0, 0, 0.3);\n cursor: default;\n font-size: 14px;\n font-weight: 600;\n text-transform: uppercase !important;\n letter-spacing: 1px;\n padding: 16px;\n user-select: none;\n"])));t.CategoryTitle=function(e){var t=e.children;return o.createElement(a,null,t)}},function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e};Object.defineProperty(t,"__esModule",{value:!0});var i=n(3),o=n(67),a=n(11);t.default=function(e){var t=e.children,n=e.overflow,r=void 0===n||n,a=e.width,s=void 0===a?o.columnWidth:a;return i.createElement(u,{style:{width:s},verticalScroll:r},t)};var s,u=a.styled("div")(s||(s=r(["\n display: flex;\n flex: 0 0 auto;\n flex-flow: column;\n padding-bottom: 20px;\n border-right: 1px solid ",";\n overflow-x: ","\n overflow-y: ","\n"],["\n display: flex;\n flex: 0 0 auto;\n flex-flow: column;\n padding-bottom: 20px;\n border-right: 1px solid ",";\n overflow-x: ","\n overflow-y: ","\n"])),(function(e){return e.theme.colours.black10}),(function(e){return e.verticalScroll?"hidden":"auto"}),(function(e){return e.verticalScroll?"scroll":"auto"}))},function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e};Object.defineProperty(t,"__esModule",{value:!0});var a=n(3),s=n(472),u=n(51),c=n(11),l=function(e){function t(t){var n=e.call(this,t)||this;return n.handleChange=function(e){n.setState({value:e.target.value}),n.debouncedOnSearch()},n.state={value:""},n.debouncedOnSearch=s.default(200,(function(){n.props.onSearch(n.state.value)})),n}return i(t,e),t.prototype.shouldComponentUpdate=function(e,t){return t.value!==this.state.value},t.prototype.render=function(){var e=a.createElement(m,null,a.createElement(u.Search,{height:16,width:16,strokeWidth:3,color:"rgba(0, 0, 0, 0.3)"}),a.createElement(g,{onChange:this.handleChange,type:"text",value:this.state.value,placeholder:this.props.placeholder||"Search the docs ..."}));return this.props.clean?e:a.createElement(h,null,e)},t}(a.Component);t.default=l;var p,f,d,h=c.styled.div(p||(p=o(["\n position: relative;\n flex: 0 0 auto;\n z-index: 1;\n display: flex;\n margin-left: 6px;\n padding: 25px;\n background: ",";\n border-bottom: 1px solid ",";\n div {\n width: 100%;\n }\n"],["\n position: relative;\n flex: 0 0 auto;\n z-index: 1;\n display: flex;\n margin-left: 6px;\n padding: 25px;\n background: ",";\n border-bottom: 1px solid ",";\n div {\n width: 100%;\n }\n"])),(function(e){return e.theme.colours.black02}),(function(e){return e.theme.colours.black10})),m=c.styled.div(f||(f=o(["\n box-sizing: border-box;\n display: flex;\n align-items: center;\n padding: 12px 14px 13px 15px;\n box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);\n background: ",";\n"],["\n box-sizing: border-box;\n display: flex;\n align-items: center;\n padding: 12px 14px 13px 15px;\n box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);\n background: ",";\n"])),(function(e){return e.theme.colours.white})),g=c.styled.input(d||(d=o(["\n font-size: 16px;\n margin-left: 10px;\n &::placeholder {\n color: ",";\n }\n"],["\n font-size: 16px;\n margin-left: 10px;\n &::placeholder {\n color: ",";\n }\n"])),(function(e){return e.theme.colours.black30}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getWorkspaceId=function(e){return""+(e.configPath?e.configPath+"~":"")+(e.workspaceName?e.workspaceName+"~":"")+e.endpoint}},function(e,t){t.__esModule=!0;t.ATTRIBUTE_NAMES={BODY:"bodyAttributes",HTML:"htmlAttributes",TITLE:"titleAttributes"};var n=t.TAG_NAMES={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"},r=(t.VALID_TAG_NAMES=Object.keys(n).map((function(e){return n[e]})),t.TAG_PROPERTIES={CHARSET:"charset",CSS_TEXT:"cssText",HREF:"href",HTTPEQUIV:"http-equiv",INNER_HTML:"innerHTML",ITEM_PROP:"itemprop",NAME:"name",PROPERTY:"property",REL:"rel",SRC:"src"},t.REACT_TAG_MAP={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"});t.HELMET_PROPS={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate"},t.HTML_TAG_MAP=Object.keys(r).reduce((function(e,t){return e[r[t]]=t,e}),{}),t.SELF_CLOSING_TAGS=[n.NOSCRIPT,n.SCRIPT,n.STYLE],t.HELMET_ATTRIBUTE="data-react-helmet"},function(e,t,n){"use strict";var r=n(78);e.exports=new r({include:[n(210)]})},function(e,t,n){"use strict";var r=n(78);e.exports=new r({include:[n(134)],implicit:[n(500),n(501),n(502),n(503)]})},function(e,t,n){"use strict";n.r(t),n.d(t,"getDefinitionState",(function(){return S})),n.d(t,"getFieldDef",(function(){return k})),n.d(t,"forEachState",(function(){return A})),n.d(t,"objectValues",(function(){return T})),n.d(t,"hintList",(function(){return _})),n.d(t,"getAutocompleteSuggestions",(function(){return je})),n.d(t,"getFragmentDefinitions",(function(){return Le})),n.d(t,"getTokenAtPosition",(function(){return Pe})),n.d(t,"runOnlineParser",(function(){return Re})),n.d(t,"canUseDirective",(function(){return Be})),n.d(t,"getTypeInfo",(function(){return Ue})),n.d(t,"LANGUAGE",(function(){return Xe})),n.d(t,"getDefinitionQueryResultForNamedType",(function(){return tt})),n.d(t,"getDefinitionQueryResultForFragmentSpread",(function(){return nt})),n.d(t,"getDefinitionQueryResultForDefinitionNode",(function(){return rt})),n.d(t,"SEVERITY",(function(){return at})),n.d(t,"DIAGNOSTIC_SEVERITY",(function(){return st})),n.d(t,"getDiagnostics",(function(){return ut})),n.d(t,"validateQuery",(function(){return ct})),n.d(t,"getRange",(function(){return ft})),n.d(t,"getOutline",(function(){return ht})),n.d(t,"getHoverInformation",(function(){return gt})),n.d(t,"GraphQLLanguageService",(function(){return Ht}));var r,i,o,a,s,u,c,l,p,f,d,h,m,g,y,v,b,E,x,D,C=n(0),w=n(12);function S(e){let t;return A(e,e=>{switch(e.kind){case"Query":case"ShortQuery":case"Mutation":case"Subscription":case"FragmentDefinition":t=e}}),t}function k(e,t,n){return n===w.SchemaMetaFieldDef.name&&e.getQueryType()===t?w.SchemaMetaFieldDef:n===w.TypeMetaFieldDef.name&&e.getQueryType()===t?w.TypeMetaFieldDef:n===w.TypeNameMetaFieldDef.name&&Object(C.D)(t)?w.TypeNameMetaFieldDef:"getFields"in t?t.getFields()[n]:null}function A(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 T(e){const t=Object.keys(e),n=t.length,r=new Array(n);for(let i=0;i<n;++i)r[i]=e[t[i]];return r}function _(e,t){return function(e,t){if(!t)return O(e,e=>!e.isDeprecated);return O(O(e.map(e=>({proximity:N(F(e.label),t),entry:e})),e=>e.proximity<=2),e=>!e.entry.isDeprecated).sort((e,t)=>(e.entry.isDeprecated?1:0)-(t.entry.isDeprecated?1:0)||e.proximity-t.proximity||e.entry.label.length-t.entry.label.length).map(e=>e.entry)}(t,F(e.string))}function O(e,t){const n=e.filter(t);return 0===n.length?e:n}function F(e){return e.toLowerCase().replace(/\W/g,"")}function N(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}!function(e){e.create=function(e,t){return{line:e,character:t}},e.is=function(e){var t=e;return ue.objectLiteral(t)&&ue.number(t.line)&&ue.number(t.character)}}(r||(r={})),function(e){e.create=function(e,t,n,i){if(ue.number(e)&&ue.number(t)&&ue.number(n)&&ue.number(i))return{start:r.create(e,t),end:r.create(n,i)};if(r.is(e)&&r.is(t))return{start:e,end:t};throw new Error("Range#create called with invalid arguments["+e+", "+t+", "+n+", "+i+"]")},e.is=function(e){var t=e;return ue.objectLiteral(t)&&r.is(t.start)&&r.is(t.end)}}(i||(i={})),function(e){e.create=function(e,t){return{uri:e,range:t}},e.is=function(e){var t=e;return ue.defined(t)&&i.is(t.range)&&(ue.string(t.uri)||ue.undefined(t.uri))}}(o||(o={})),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 ue.defined(t)&&i.is(t.targetRange)&&ue.string(t.targetUri)&&(i.is(t.targetSelectionRange)||ue.undefined(t.targetSelectionRange))&&(i.is(t.originSelectionRange)||ue.undefined(t.originSelectionRange))}}(a||(a={})),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 ue.number(t.red)&&ue.number(t.green)&&ue.number(t.blue)&&ue.number(t.alpha)}}(s||(s={})),function(e){e.create=function(e,t){return{range:e,color:t}},e.is=function(e){var t=e;return i.is(t.range)&&s.is(t.color)}}(u||(u={})),function(e){e.create=function(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}},e.is=function(e){var t=e;return ue.string(t.label)&&(ue.undefined(t.textEdit)||y.is(t))&&(ue.undefined(t.additionalTextEdits)||ue.typedArray(t.additionalTextEdits,y.is))}}(c||(c={})),function(e){e.Comment="comment",e.Imports="imports",e.Region="region"}(l||(l={})),function(e){e.create=function(e,t,n,r,i){var o={startLine:e,endLine:t};return ue.defined(n)&&(o.startCharacter=n),ue.defined(r)&&(o.endCharacter=r),ue.defined(i)&&(o.kind=i),o},e.is=function(e){var t=e;return ue.number(t.startLine)&&ue.number(t.startLine)&&(ue.undefined(t.startCharacter)||ue.number(t.startCharacter))&&(ue.undefined(t.endCharacter)||ue.number(t.endCharacter))&&(ue.undefined(t.kind)||ue.string(t.kind))}}(p||(p={})),function(e){e.create=function(e,t){return{location:e,message:t}},e.is=function(e){var t=e;return ue.defined(t)&&o.is(t.location)&&ue.string(t.message)}}(f||(f={})),function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4}(d||(d={})),function(e){e.Unnecessary=1,e.Deprecated=2}(h||(h={})),function(e){e.create=function(e,t,n,r,i,o){var a={range:e,message:t};return ue.defined(n)&&(a.severity=n),ue.defined(r)&&(a.code=r),ue.defined(i)&&(a.source=i),ue.defined(o)&&(a.relatedInformation=o),a},e.is=function(e){var t=e;return ue.defined(t)&&i.is(t.range)&&ue.string(t.message)&&(ue.number(t.severity)||ue.undefined(t.severity))&&(ue.number(t.code)||ue.string(t.code)||ue.undefined(t.code))&&(ue.string(t.source)||ue.undefined(t.source))&&(ue.undefined(t.relatedInformation)||ue.typedArray(t.relatedInformation,f.is))}}(m||(m={})),function(e){e.create=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i={title:e,command:t};return ue.defined(n)&&n.length>0&&(i.arguments=n),i},e.is=function(e){var t=e;return ue.defined(t)&&ue.string(t.title)&&ue.string(t.command)}}(g||(g={})),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 ue.objectLiteral(t)&&ue.string(t.newText)&&i.is(t.range)}}(y||(y={})),function(e){e.create=function(e,t){return{textDocument:e,edits:t}},e.is=function(e){var t=e;return ue.defined(t)&&M.is(t.textDocument)&&Array.isArray(t.edits)}}(v||(v={})),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&&ue.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||ue.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||ue.boolean(t.options.ignoreIfExists)))}}(b||(b={})),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&&ue.string(t.oldUri)&&ue.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||ue.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||ue.boolean(t.options.ignoreIfExists)))}}(E||(E={})),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&&ue.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||ue.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||ue.boolean(t.options.ignoreIfNotExists)))}}(x||(x={})),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 ue.string(e.kind)?b.is(e)||E.is(e)||x.is(e):v.is(e)})))}}(D||(D={}));var I,M,j,L,P,R,B,U,z,V,q,H,W,G,K,J,Q,Y,$,X,Z,ee,te,ne,re,ie,oe,ae=function(){function e(e){this.edits=e}return e.prototype.insert=function(e,t){this.edits.push(y.insert(e,t))},e.prototype.replace=function(e,t){this.edits.push(y.replace(e,t))},e.prototype.delete=function(e){this.edits.push(y.del(e))},e.prototype.add=function(e){this.edits.push(e)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e}();!function(){function e(e){var t=this;this._textEditChanges=Object.create(null),e&&(this._workspaceEdit=e,e.documentChanges?e.documentChanges.forEach((function(e){if(v.is(e)){var n=new ae(e.edits);t._textEditChanges[e.textDocument.uri]=n}})):e.changes&&Object.keys(e.changes).forEach((function(n){var r=new ae(e.changes[n]);t._textEditChanges[n]=r})))}Object.defineProperty(e.prototype,"edit",{get:function(){return this._workspaceEdit},enumerable:!0,configurable:!0}),e.prototype.getTextEditChange=function(e){if(M.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 ae(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 ae(i),this._textEditChanges[e]=r}return r},e.prototype.createFile=function(e,t){this.checkDocumentChanges(),this._workspaceEdit.documentChanges.push(b.create(e,t))},e.prototype.renameFile=function(e,t,n){this.checkDocumentChanges(),this._workspaceEdit.documentChanges.push(E.create(e,t,n))},e.prototype.deleteFile=function(e,t){this.checkDocumentChanges(),this._workspaceEdit.documentChanges.push(x.create(e,t))},e.prototype.checkDocumentChanges=function(){if(!this._workspaceEdit||!this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.")}}();!function(e){e.create=function(e){return{uri:e}},e.is=function(e){var t=e;return ue.defined(t)&&ue.string(t.uri)}}(I||(I={})),function(e){e.create=function(e,t){return{uri:e,version:t}},e.is=function(e){var t=e;return ue.defined(t)&&ue.string(t.uri)&&(null===t.version||ue.number(t.version))}}(M||(M={})),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 ue.defined(t)&&ue.string(t.uri)&&ue.string(t.languageId)&&ue.number(t.version)&&ue.string(t.text)}}(j||(j={})),function(e){e.PlainText="plaintext",e.Markdown="markdown"}(L||(L={})),function(e){e.is=function(t){var n=t;return n===e.PlainText||n===e.Markdown}}(L||(L={})),function(e){e.is=function(e){var t=e;return ue.objectLiteral(e)&&L.is(t.kind)&&ue.string(t.value)}}(P||(P={})),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}(R||(R={})),function(e){e.PlainText=1,e.Snippet=2}(B||(B={})),function(e){e.Deprecated=1}(U||(U={})),function(e){e.create=function(e){return{label:e}}}(z||(z={})),function(e){e.create=function(e,t){return{items:e||[],isIncomplete:!!t}}}(V||(V={})),function(e){e.fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},e.is=function(e){var t=e;return ue.string(t)||ue.objectLiteral(t)&&ue.string(t.language)&&ue.string(t.value)}}(q||(q={})),function(e){e.is=function(e){var t=e;return!!t&&ue.objectLiteral(t)&&(P.is(t.contents)||q.is(t.contents)||ue.typedArray(t.contents,q.is))&&(void 0===e.range||i.is(e.range))}}(H||(H={})),function(e){e.create=function(e,t){return t?{label:e,documentation:t}:{label:e}}}(W||(W={})),function(e){e.create=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i={label:e};return ue.defined(t)&&(i.documentation=t),ue.defined(n)?i.parameters=n:i.parameters=[],i}}(G||(G={})),function(e){e.Text=1,e.Read=2,e.Write=3}(K||(K={})),function(e){e.create=function(e,t){var n={range:e};return ue.number(t)&&(n.kind=t),n}}(J||(J={})),function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26}(Q||(Q={})),function(e){e.Deprecated=1}(Y||(Y={})),function(e){e.create=function(e,t,n,r,i){var o={name:e,kind:t,location:{uri:r,range:n}};return i&&(o.containerName=i),o}}($||($={})),function(e){e.create=function(e,t,n,r,i,o){var a={name:e,detail:t,kind:n,range:r,selectionRange:i};return void 0!==o&&(a.children=o),a},e.is=function(e){var t=e;return t&&ue.string(t.name)&&ue.number(t.kind)&&i.is(t.range)&&i.is(t.selectionRange)&&(void 0===t.detail||ue.string(t.detail))&&(void 0===t.deprecated||ue.boolean(t.deprecated))&&(void 0===t.children||Array.isArray(t.children))}}(X||(X={})),function(e){e.Empty="",e.QuickFix="quickfix",e.Refactor="refactor",e.RefactorExtract="refactor.extract",e.RefactorInline="refactor.inline",e.RefactorRewrite="refactor.rewrite",e.Source="source",e.SourceOrganizeImports="source.organizeImports",e.SourceFixAll="source.fixAll"}(Z||(Z={})),function(e){e.create=function(e,t){var n={diagnostics:e};return null!=t&&(n.only=t),n},e.is=function(e){var t=e;return ue.defined(t)&&ue.typedArray(t.diagnostics,m.is)&&(void 0===t.only||ue.typedArray(t.only,ue.string))}}(ee||(ee={})),function(e){e.create=function(e,t,n){var r={title:e};return g.is(t)?r.command=t:r.edit=t,void 0!==n&&(r.kind=n),r},e.is=function(e){var t=e;return t&&ue.string(t.title)&&(void 0===t.diagnostics||ue.typedArray(t.diagnostics,m.is))&&(void 0===t.kind||ue.string(t.kind))&&(void 0!==t.edit||void 0!==t.command)&&(void 0===t.command||g.is(t.command))&&(void 0===t.isPreferred||ue.boolean(t.isPreferred))&&(void 0===t.edit||D.is(t.edit))}}(te||(te={})),function(e){e.create=function(e,t){var n={range:e};return ue.defined(t)&&(n.data=t),n},e.is=function(e){var t=e;return ue.defined(t)&&i.is(t.range)&&(ue.undefined(t.command)||g.is(t.command))}}(ne||(ne={})),function(e){e.create=function(e,t){return{tabSize:e,insertSpaces:t}},e.is=function(e){var t=e;return ue.defined(t)&&ue.number(t.tabSize)&&ue.boolean(t.insertSpaces)}}(re||(re={})),function(e){e.create=function(e,t,n){return{range:e,target:t,data:n}},e.is=function(e){var t=e;return ue.defined(t)&&i.is(t.range)&&(ue.undefined(t.target)||ue.string(t.target))}}(ie||(ie={})),function(e){e.create=function(e,t){return{range:e,parent:t}},e.is=function(t){var n=t;return void 0!==n&&i.is(n.range)&&(void 0===n.parent||e.is(n.parent))}}(oe||(oe={}));var se;!function(e){e.create=function(e,t,n,r){return new ce(e,t,n,r)},e.is=function(e){var t=e;return!!(ue.defined(t)&&ue.string(t.uri)&&(ue.undefined(t.languageId)||ue.string(t.languageId))&&ue.number(t.lineCount)&&ue.func(t.getText)&&ue.func(t.positionAt)&&ue.func(t.offsetAt))},e.applyEdits=function(e,t){for(var n=e.getText(),r=function e(t,n){if(t.length<=1)return t;var r=t.length/2|0,i=t.slice(0,r),o=t.slice(r);e(i,n),e(o,n);var a=0,s=0,u=0;for(;a<i.length&&s<o.length;){var c=n(i[a],o[s]);t[u++]=c<=0?i[a++]:o[s++]}for(;a<i.length;)t[u++]=i[a++];for(;s<o.length;)t[u++]=o[s++];return t}(t,(function(e,t){var n=e.range.start.line-t.range.start.line;return 0===n?e.range.start.character-t.range.start.character:n})),i=n.length,o=r.length-1;o>=0;o--){var a=r[o],s=e.offsetAt(a.range.start),u=e.offsetAt(a.range.end);if(!(u<=i))throw new Error("Overlapping edit");n=n.substring(0,s)+a.newText+n.substring(u,n.length),i=s}return n}}(se||(se={}));var ue,ce=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;r<t.length;r++){n&&(e.push(r),n=!1);var i=t.charAt(r);n="\r"===i||"\n"===i,"\r"===i&&r+1<t.length&&"\n"===t.charAt(r+1)&&r++}n&&t.length>0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets},e.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var t=this.getLineOffsets(),n=0,i=t.length;if(0===i)return r.create(0,e);for(;n<i;){var o=Math.floor((n+i)/2);t[o]>e?i=o:n=o+1}var a=n-1;return r.create(a,e-t[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<t.length?t[e.line+1]:this._content.length;return Math.max(Math.min(n+e.character,r),n)},Object.defineProperty(e.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!0,configurable:!0}),e}();!function(e){var t=Object.prototype.toString;e.defined=function(e){return void 0!==e},e.undefined=function(e){return void 0===e},e.boolean=function(e){return!0===e||!1===e},e.string=function(e){return"[object String]"===t.call(e)},e.number=function(e){return"[object Number]"===t.call(e)},e.func=function(e){return"[object Function]"===t.call(e)},e.objectLiteral=function(e){return null!==e&&"object"==typeof e},e.typedArray=function(e,t){return Array.isArray(e)&&e.every(t)}}(ue||(ue={}));var le=n(26),pe=n(64),fe=n(13),de=n(61);class he{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;if("string"==typeof e){i=new RegExp(e,n?"i":"g").test(this._sourceText.substr(this._pos,e.length)),r=e}else e instanceof RegExp&&(i=this._sourceText.slice(this._pos).match(e),r=i&&i[0]);return!(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}}function me(e){return{ofRule:e}}function ge(e,t){return{ofRule:e,isList:!0,separator:t}}function ye(e,t){return{style:t,match:t=>t.kind===e}}function ve(e,t){return{style:t||"punctuation",match:t=>"Punctuation"===t.kind&&t.value===e}}const be=e=>" "===e||"\t"===e||","===e||"\n"===e||"\r"===e||"\ufeff"===e||" "===e,Ee={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:/^#.*/},xe={Document:[ge("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:[Ce("query"),me(we("def")),me("VariableDefinitions"),ge("Directive"),"SelectionSet"],Mutation:[Ce("mutation"),me(we("def")),me("VariableDefinitions"),ge("Directive"),"SelectionSet"],Subscription:[Ce("subscription"),me(we("def")),me("VariableDefinitions"),ge("Directive"),"SelectionSet"],VariableDefinitions:[ve("("),ge("VariableDefinition"),ve(")")],VariableDefinition:["Variable",ve(":"),"Type",me("DefaultValue")],Variable:[ve("$","variable"),we("variable")],DefaultValue:[ve("="),"Value"],SelectionSet:[ve("{"),ge("Selection"),ve("}")],Selection:(e,t)=>"..."===e.value?t.match(/[\s\u00a0,]*(on\b|@|{)/,!1)?"InlineFragment":"FragmentSpread":t.match(/[\s\u00a0,]*:/,!1)?"AliasedField":"Field",AliasedField:[we("property"),ve(":"),we("qualifier"),me("Arguments"),ge("Directive"),me("SelectionSet")],Field:[we("property"),me("Arguments"),ge("Directive"),me("SelectionSet")],Arguments:[ve("("),ge("Argument"),ve(")")],Argument:[we("attribute"),ve(":"),"Value"],FragmentSpread:[ve("..."),we("def"),ge("Directive")],InlineFragment:[ve("..."),me("TypeCondition"),ge("Directive"),"SelectionSet"],FragmentDefinition:[Ce("fragment"),me(function(e,t){const n=e.match;return e.match=e=>{let r=!1;return n&&(r=n(e)),r&&t.every(t=>t.match&&!t.match(e))},e}(we("def"),[Ce("on")])),"TypeCondition",ge("Directive"),"SelectionSet"],TypeCondition:[Ce("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"}return null;case"Name":switch(e.value){case"true":case"false":return"BooleanValue"}return"null"===e.value?"NullValue":"EnumValue"}},NumberValue:[ye("Number","number")],StringValue:[ye("String","string")],BooleanValue:[ye("Name","builtin")],NullValue:[ye("Name","keyword")],EnumValue:[we("string-2")],ListValue:[ve("["),ge("Value"),ve("]")],ObjectValue:[ve("{"),ge("ObjectField"),ve("}")],ObjectField:[we("attribute"),ve(":"),"Value"],Type:e=>"["===e.value?"ListType":"NonNullType",ListType:[ve("["),"Type",ve("]"),me(ve("!"))],NonNullType:["NamedType",me(ve("!"))],NamedType:[(De="atom",{style:De,match:e=>"Name"===e.kind,update(e,t){e.prevState&&e.prevState.prevState&&(e.name=t.value,e.prevState.prevState.type=t.value)}})],Directive:[ve("@","meta"),we("meta"),me("Arguments")],SchemaDef:[Ce("schema"),ge("Directive"),ve("{"),ge("OperationTypeDef"),ve("}")],OperationTypeDef:[we("keyword"),ve(":"),we("atom")],ScalarDef:[Ce("scalar"),we("atom"),ge("Directive")],ObjectTypeDef:[Ce("type"),we("atom"),me("Implements"),ge("Directive"),ve("{"),ge("FieldDef"),ve("}")],Implements:[Ce("implements"),ge("NamedType")],FieldDef:[we("property"),me("ArgumentsDef"),ve(":"),"Type",ge("Directive")],ArgumentsDef:[ve("("),ge("InputValueDef"),ve(")")],InputValueDef:[we("attribute"),ve(":"),"Type",me("DefaultValue"),ge("Directive")],InterfaceDef:[Ce("interface"),we("atom"),ge("Directive"),ve("{"),ge("FieldDef"),ve("}")],UnionDef:[Ce("union"),we("atom"),ge("Directive"),ve("="),ge("UnionMember",ve("|"))],UnionMember:["NamedType"],EnumDef:[Ce("enum"),we("atom"),ge("Directive"),ve("{"),ge("EnumValueDef"),ve("}")],EnumValueDef:[we("string-2"),ge("Directive")],InputDef:[Ce("input"),we("atom"),ge("Directive"),ve("{"),ge("InputValueDef"),ve("}")],ExtendDef:[Ce("extend"),"ObjectTypeDef"],DirectiveDef:[Ce("directive"),ve("@","meta"),we("meta"),me("ArgumentsDef"),Ce("on"),ge("DirectiveLocation",ve("|"))],DirectiveLocation:[we("string-2")]};var De;function Ce(e){return{style:"keyword",match:t=>"Name"===t.kind&&t.value===e}}function we(e){return{style:e,match:e=>"Name"===e.kind,update(e,t){e.name=t.value}}}function Se(e={eatWhitespace:e=>e.eatWhile(be),lexRules:Ee,parseRules:xe,editorConfig:{}}){return{startState(){const t={level:0,step:0,name:null,kind:null,type:null,rule:null,needsSeperator:!1,prevState:null};return Te(e.parseRules,t,"Document"),t},token:(t,n)=>function(e,t,n){const{lexRules:r,parseRules:i,eatWhitespace:o,editorConfig:a}=n;t.rule&&0===t.rule.length?_e(t):t.needsAdvance&&(t.needsAdvance=!1,Oe(t,!0));if(e.sol()){const n=a&&a.tabSize||2;t.indentLevel=Math.floor(e.indentation()/n)}if(o(e))return"ws";const s=function(e,t){const n=Object.keys(e);for(let r=0;r<n.length;r++){const i=t.match(e[n[r]]);if(i&&i instanceof Array)return{kind:n[r],value:i[0]}}}(r,e);if(!s){return e.match(/\S+/)||e.match(/\s/),Te(Ae,t,"Invalid"),"invalidchar"}if("Comment"===s.kind)return Te(Ae,t,"Comment"),"comment";const u=ke({},t);if("Punctuation"===s.kind)if(/^[{([]/.test(s.value))void 0!==t.indentLevel&&(t.levels=(t.levels||[]).concat(t.indentLevel+1));else if(/^[})\]]/.test(s.value)){const e=t.levels=(t.levels||[]).slice(0,-1);t.indentLevel&&e.length>0&&e[e.length-1]<t.indentLevel&&(t.indentLevel=e[e.length-1])}for(;t.rule;){let n="function"==typeof t.rule?0===t.step?t.rule(s,e):null:t.rule[t.step];if(t.needsSeperator&&(n=n&&n.separator),n){if(n.ofRule&&(n=n.ofRule),"string"==typeof n){Te(i,t,n);continue}if(n.match&&n.match(s))return n.update&&n.update(t,s),"Punctuation"===s.kind?Oe(t,!0):t.needsAdvance=!0,n.style}Ne(t)}return ke(t,u),Te(Ae,t,"Invalid"),"invalidchar"}(t,n,e)}}function ke(e,t){const n=Object.keys(t);for(let r=0;r<n.length;r++)e[n[r]]=t[n[r]];return e}const Ae={Invalid:[],Comment:[]};function Te(e,t,n){if(!e[n])throw new TypeError("Unknown rule: "+n);t.prevState=Object.assign({},t),t.kind=n,t.name=null,t.type=null,t.rule=e[n],t.step=0,t.needsSeperator=!1}function _e(e){e.prevState&&(e.kind=e.prevState.kind,e.name=e.prevState.name,e.type=e.prevState.type,e.rule=e.prevState.rule,e.step=e.prevState.step,e.needsSeperator=e.prevState.needsSeperator,e.prevState=e.prevState.prevState)}function Oe(e,t){if(Fe(e)&&e.rule){const n=e.rule[e.step];if(n.separator){const t=n.separator;if(e.needsSeperator=!e.needsSeperator,!e.needsSeperator&&t.ofRule)return}if(t)return}for(e.needsSeperator=!1,e.step++;e.rule&&!(Array.isArray(e.rule)&&e.step<e.rule.length);)_e(e),e.rule&&(Fe(e)?e.rule&&e.rule[e.step].separator&&(e.needsSeperator=!e.needsSeperator):(e.needsSeperator=!1,e.step++))}function Fe(e){const t=Array.isArray(e.rule)&&"string"!=typeof e.rule[e.step]&&e.rule[e.step];return t&&t.isList}function Ne(e){for(;e.rule&&(!Array.isArray(e.rule)||!e.rule[e.step].ofRule);)_e(e);e.rule&&Oe(e,!1)}var Ie=n(1);const Me=Object.assign(Object.assign({},Ie.a),{ALIASED_FIELD:"AliasedField",ARGUMENTS:"Arguments",SHORT_QUERY:"ShortQuery",QUERY:"Query",MUTATION:"Mutation",SUBSCRIPTION:"Subscription",TYPE_CONDITION:"TypeCondition",INVALID:"Invalid",COMMENT:"Comment",SCHEMA_DEF:"SchemaDef",SCALAR_DEF:"ScalarDef",OBJECT_TYPE_DEF:"ObjectTypeDef",OBJECT_VALUE:"ObjectValue",LIST_VALUE:"ListValue",INTERFACE_DEF:"InterfaceDef",UNION_DEF:"UnionDef",ENUM_DEF:"EnumDef",ENUM_VALUE:"EnumValue",FIELD_DEF:"FieldDef",INPUT_DEF:"InputDef",INPUT_VALUE_DEF:"InputValueDef",ARGUMENTS_DEF:"ArgumentsDef",EXTEND_DEF:"ExtendDef",DIRECTIVE_DEF:"DirectiveDef"});function je(e,t,n,r,i){const o=r||Pe(t,n),a="Invalid"===o.state.kind?o.state.prevState:o.state;if(!a)return[];const s=a.kind,u=a.step,c=Ue(e,o.state);if(s===Me.DOCUMENT)return _(o,[{label:"query",kind:R.Function},{label:"mutation",kind:R.Function},{label:"subscription",kind:R.Function},{label:"fragment",kind:R.Function},{label:"{",kind:R.Constructor}]);if(s===Me.SELECTION_SET||s===Me.FIELD||s===Me.ALIASED_FIELD)return function(e,t,n,r){if(t.parentType){const r=t.parentType;let i=[];return"getFields"in r&&(i=T(r.getFields())),Object(C.D)(r)&&i.push(w.TypeNameMetaFieldDef),r===n.getQueryType()&&i.push(w.SchemaMetaFieldDef,w.TypeMetaFieldDef),_(e,i.map((e,t)=>{var n;return{sortText:String(t)+e.name,label:e.name,detail:String(e.type),documentation:null!==(n=e.description)&&void 0!==n?n:void 0,deprecated:e.isDeprecated,isDeprecated:e.isDeprecated,deprecationReason:e.deprecationReason,kind:R.Field}}))}return[]}(o,c,e);if(s===Me.ARGUMENTS||s===Me.ARGUMENT&&0===u){const e=c.argDefs;if(e)return _(o,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:R.Variable}}))}if((s===Me.OBJECT_VALUE||s===Me.OBJECT_FIELD&&0===u)&&c.objectFieldDefs){const e=T(c.objectFieldDefs),t=s===Me.OBJECT_VALUE?R.Value:R.Field;return _(o,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}}))}if(s===Me.ENUM_VALUE||s===Me.LIST_VALUE&&1===u||s===Me.OBJECT_FIELD&&2===u||s===Me.ARGUMENT&&2===u)return function(e,t,n){const r=Object(C.A)(t.inputType);if(r instanceof C.a){const t=r.getValues();return _(e,t.map(e=>{var t;return{label:e.name,detail:String(r),documentation:null!==(t=e.description)&&void 0!==t?t:void 0,deprecated:e.isDeprecated,isDeprecated:e.isDeprecated,deprecationReason:e.deprecationReason,kind:R.EnumMember}}))}if(r===fe.a)return _(e,[{label:"true",detail:String(fe.a),documentation:"Not false.",kind:R.Variable},{label:"false",detail:String(fe.a),documentation:"Not true.",kind:R.Variable}]);return[]}(o,c);if(s===Me.VARIABLE&&1===u){const e=[];return Object(le.c)(Object(pe.a)(t,{allowLegacySDLEmptyFields:!0,allowLegacySDLImplementsInterfaces:!0}),{VariableDefinition(t){e.push(t)}}),_(o,e.map(e=>({label:`$${e.variable.name.value}`,kind:R.Variable,detail:"name"in e.type?e.type.name.value:"Variable"})))}return s===Me.TYPE_CONDITION&&1===u||s===Me.NAMED_TYPE&&null!=a.prevState&&a.prevState.kind===Me.TYPE_CONDITION?function(e,t,n,r){let i;if(t.parentType)if(Object(C.C)(t.parentType)){const e=Object(C.j)(t.parentType),r=n.getPossibleTypes(e),o=Object.create(null);r.forEach(e=>{e.getInterfaces().forEach(e=>{o[e.name]=e})}),i=r.concat(T(o))}else i=[t.parentType];else{const e=n.getTypeMap();i=T(e).filter(C.D)}return _(e,i.map(e=>{const t=Object(C.A)(e);return{label:String(e),documentation:t&&t.description||"",kind:R.Field}}))}(o,c,e):s===Me.FRAGMENT_SPREAD&&1===u?function(e,t,n,r,i){const o=n.getTypeMap(),a=S(e.state),s=Le(r);i&&s.push(...i);const u=s.filter(e=>o[e.typeCondition.name.value]&&!(a&&a.kind===Me.FRAGMENT_DEFINITION&&a.name===e.name.value)&&Object(C.D)(t.parentType)&&Object(C.D)(o[e.typeCondition.name.value])&&Object(de.a)(n,t.parentType,o[e.typeCondition.name.value]));return _(e,u.map(e=>({label:e.name.value,detail:String(o[e.typeCondition.name.value]),documentation:`fragment ${e.name.value} on ${e.typeCondition.name.value}`,kind:R.Field})))}(o,c,e,t,i):s===Me.VARIABLE_DEFINITION&&2===u||s===Me.LIST_TYPE&&1===u||s===Me.NAMED_TYPE&&a.prevState&&(a.prevState.kind===Me.VARIABLE_DEFINITION||a.prevState.kind===Me.LIST_TYPE||a.prevState.kind===Me.NON_NULL_TYPE)?function(e,t,n){const r=T(t.getTypeMap()).filter(C.G);return _(e,r.map(e=>({label:e.name,documentation:e.description,kind:R.Variable})))}(o,e):s===Me.DIRECTIVE?function(e,t,n,r){if(t.prevState&&t.prevState.kind){const r=n.getDirectives().filter(e=>Be(t.prevState,e));return _(e,r.map(e=>({label:e.name,documentation:e.description||"",kind:R.Function})))}return[]}(o,a,e):[]}function Le(e){const t=[];return Re(e,(e,n)=>{n.kind===Me.FRAGMENT_DEFINITION&&n.name&&n.type&&t.push({kind:Me.FRAGMENT_DEFINITION,name:{kind:"Name",value:n.name},selectionSet:{kind:Me.SELECTION_SET,selections:[]},typeCondition:{kind:Me.NAMED_TYPE,name:{kind:"Name",value:n.type}}})}),t}function Pe(e,t){let n=null,r=null,i=null;const o=Re(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 Re(e,t){const n=e.split("\n"),r=Se();let i=r.startState(),o="",a=new he("");for(let e=0;e<n.length;e++){for(a=new he(n[e]);!a.eol();){if(o=r.token(a,i),"BREAK"===t(a,i,o,e))break}t(a,i,o,e),i.kind||(i=r.startState())}return{start:a.getStartOfToken(),end:a.getCurrentPosition(),string:a.current(),state:i,style:o}}function Be(e,t){if(!e||!e.kind)return!1;const n=e.kind,r=t.locations;switch(n){case Me.QUERY:return-1!==r.indexOf("QUERY");case Me.MUTATION:return-1!==r.indexOf("MUTATION");case Me.SUBSCRIPTION:return-1!==r.indexOf("SUBSCRIPTION");case Me.FIELD:case Me.ALIASED_FIELD:return-1!==r.indexOf("FIELD");case Me.FRAGMENT_DEFINITION:return-1!==r.indexOf("FRAGMENT_DEFINITION");case Me.FRAGMENT_SPREAD:return-1!==r.indexOf("FRAGMENT_SPREAD");case Me.INLINE_FRAGMENT:return-1!==r.indexOf("INLINE_FRAGMENT");case Me.SCHEMA_DEF:return-1!==r.indexOf("SCHEMA");case Me.SCALAR_DEF:return-1!==r.indexOf("SCALAR");case Me.OBJECT_TYPE_DEF:return-1!==r.indexOf("OBJECT");case Me.FIELD_DEF:return-1!==r.indexOf("FIELD_DEFINITION");case Me.INTERFACE_DEF:return-1!==r.indexOf("INTERFACE");case Me.UNION_DEF:return-1!==r.indexOf("UNION");case Me.ENUM_DEF:return-1!==r.indexOf("ENUM");case Me.ENUM_VALUE:return-1!==r.indexOf("ENUM_VALUE");case Me.INPUT_DEF:return-1!==r.indexOf("INPUT_OBJECT");case Me.INPUT_VALUE_DEF:switch(e.prevState&&e.prevState.kind){case Me.ARGUMENTS_DEF:return-1!==r.indexOf("ARGUMENT_DEFINITION");case Me.INPUT_DEF:return-1!==r.indexOf("INPUT_FIELD_DEFINITION")}}return!1}function Ue(e,t){let n,r,i,o,a,s,u,c,l;return A(t,t=>{switch(t.kind){case Me.QUERY:case"ShortQuery":l=e.getQueryType();break;case Me.MUTATION:l=e.getMutationType();break;case Me.SUBSCRIPTION:l=e.getSubscriptionType();break;case Me.INLINE_FRAGMENT:case Me.FRAGMENT_DEFINITION:t.type&&(l=e.getType(t.type));break;case Me.FIELD:case Me.ALIASED_FIELD:l&&t.name?(a=c?k(e,c,t.name):null,l=a?a.type:null):a=null;break;case Me.SELECTION_SET:c=Object(C.A)(l);break;case Me.DIRECTIVE:i=t.name?e.getDirective(t.name):null;break;case Me.ARGUMENTS:if(t.prevState)switch(t.prevState.kind){case Me.FIELD:r=a&&a.args;break;case Me.DIRECTIVE:r=i&&i.args;break;case Me.ALIASED_FIELD:const n=t.prevState&&t.prevState.name;if(!n){r=null;break}const o=c?k(e,c,n):null;if(!o){r=null;break}r=o.args;break;default:r=null}else r=null;break;case Me.ARGUMENT:if(r)for(let e=0;e<r.length;e++)if(r[e].name===t.name){n=r[e];break}s=n&&n.type;break;case Me.ENUM_VALUE:const p=Object(C.A)(s);o=p instanceof C.a?function(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return e[n];return null}(p.getValues(),e=>e.value===t.name):null;break;case Me.LIST_VALUE:const f=Object(C.B)(s);s=f instanceof C.d?f.ofType:null;break;case Me.OBJECT_VALUE:const d=Object(C.A)(s);u=d instanceof C.b?d.getFields():null;break;case Me.OBJECT_FIELD:const h=t.name&&u?u[t.name]:null;s=h&&h.type;break;case Me.NAMED_TYPE:t.name&&(l=e.getType(t.name))}}),{argDef:n,argDefs:r,directiveDef:i,enumValue:o,fieldDef:a,inputType:s,objectFieldDefs:u,parentType:c,type:l}}class ze{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 Ve(e,t)}setEnd(e,t){this.end=new Ve(e,t)}}class Ve{constructor(e,t){this.lessThanOrEqualTo=e=>this.line<e.line||this.line===e.line&&this.character<=e.character,this.line=e,this.character=t}setLine(e){this.line=e}setCharacter(e){this.character=e}}function qe(e,t){const n=e.slice(0,t),r=n.split("\n").length-1,i=n.lastIndexOf("\n");return new Ve(r,t-i-1)}var He=n(138),We=n(228),Ge=n(227),Ke=n(65),Je=n(218);var Qe=n(62),Ye=n.n(Qe),$e=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))};const Xe="GraphQL";function Ze(e,t){const n=t.loc;return Ye()(n,"Expected ASTNode to have a location."),function(e,t){const n=qe(e,t.start),r=qe(e,t.end);return new ze(n,r)}(e,n)}function et(e,t){const n=t.loc;return Ye()(n,"Expected ASTNode to have a location."),qe(e,n.start)}function tt(e,t,n){return $e(this,void 0,void 0,(function*(){const r=t.name.value,i=n.filter(({definition:e})=>e.name&&e.name.value===r);if(0===i.length)throw Error(`Definition not found for GraphQL type ${r}`);const o=i.map(({filePath:e,content:t,definition:n})=>function(e,t,n){const r=n.name;return Ye()(r,"Expected ASTNode to have a Name."),{path:e,position:et(t,n),range:Ze(t,n),name:r.value||"",language:Xe,projectRoot:e}}(e||"",t,n));return{definitions:o,queryRange:o.map(n=>Ze(e,t))}}))}function nt(e,t,n){return $e(this,void 0,void 0,(function*(){const r=t.name.value,i=n.filter(({definition:e})=>e.name.value===r);if(0===i.length)throw Error(`Definition not found for GraphQL fragment ${r}`);const o=i.map(({filePath:e,content:t,definition:n})=>it(e||"",t,n));return{definitions:o,queryRange:o.map(n=>Ze(e,t))}}))}function rt(e,t,n){return{definitions:[it(e,t,n)],queryRange:n.name?[Ze(t,n.name)]:[]}}function it(e,t,n){const r=n.name;if(!r)throw Error("Expected ASTNode to have a Name.");return{path:e,position:et(t,n),range:Ze(t,n),name:r.value||"",language:Xe,projectRoot:e}}var ot=n(537);const at={Error:"Error",Warning:"Warning",Information:"Information",Hint:"Hint"},st={[at.Error]:1,[at.Warning]:2,[at.Information]:3,[at.Hint]:4};function ut(e,t=null,n,r){let i=null;try{i=Object(pe.a)(e)}catch(t){const n=ft(t.locations[0],e);return[{severity:st.Error,message:t.message,source:"GraphQL: Syntax",range:n}]}return ct(i,t,n,r)}function ct(e,t=null,n,r){if(!t)return[];const i=lt(function(e,t,n,r){const i=He.a.filter(e=>e!==We.a&&e!==Je.a&&(!r||e!==Ge.a));return n&&Array.prototype.push.apply(i,n),Object(Ke.c)(e,t,i).filter(e=>{if(-1!==e.message.indexOf("Unknown directive")&&e.nodes){const t=e.nodes[0];if(t&&t.kind===Ie.a.DIRECTIVE){const e=t.name.value;if("arguments"===e||"argumentDefinitions"===e)return!1}}return!0})}(t,e,n,r),e=>pt(e,st.Error,"Validation")),o=ot.a?lt(Object(ot.a)(t,e),e=>pt(e,st.Warning,"Deprecation")):[];return i.concat(o)}function lt(e,t){return Array.prototype.concat.apply([],e.map(t))}function pt(e,t,n){if(!e.nodes)return[];const r=[];return e.nodes.forEach(i=>{const o="Variable"!==i.kind&&"name"in i&&void 0!==i.name?i.name:"variable"in i&&void 0!==i.variable?i.variable:i;if(o){Ye()(e.locations,"GraphQL validation error requires locations.");const i=e.locations[0],a=function(e){const t=e.loc;return Ye()(t,"Expected ASTNode to have a location."),t}(o),s=i.column+(a.end-a.start);r.push({source:`GraphQL: ${n}`,message:e.message,severity:t,range:new ze(new Ve(i.line-1,i.column-1),new Ve(i.line-1,s))})}}),r}function ft(e,t){const n=Se(),r=n.startState(),i=t.split("\n");Ye()(i.length>=e.line,"Query text must have more lines than where the error happened");let o=null;for(let t=0;t<e.line;t++)for(o=new he(i[t]);!o.eol();){if("invalidchar"===n.token(o,r))break}Ye()(o,"Expected Parser stream to be available.");const a=e.line-1,s=o.getStartOfToken(),u=o.getCurrentPosition();return new ze(new Ve(a,s),new Ve(a,u))}const{INLINE_FRAGMENT:dt}=Ie.a;function ht(e){let t;try{t=Object(pe.a)(e)}catch(e){return null}const n=function(e){const t=t=>({representativeName:t.name,startPosition:qe(e,t.loc.start),endPosition:qe(e,t.loc.end),kind:t.kind,children:t.selectionSet||t.fields||t.values||t.arguments||[]});return{Field:e=>{const n=e.alias?[mt("plain",e.alias),mt("plain",": ")]:[];return n.push(mt("plain",e.name)),Object.assign({tokenizedText:n},t(e))},OperationDefinition:e=>Object.assign({tokenizedText:[mt("keyword",e.operation),mt("whitespace"," "),mt("class-name",e.name)]},t(e)),Document:e=>e.definitions,SelectionSet:e=>function(e,t){const n=[];for(let r=0;r<e.length;r++){const i=t(e[r],r);Array.isArray(i)?n.push(...i):n.push(i)}return n}(e.selections,e=>e.kind===dt?e.selectionSet:e),Name:e=>e.value,FragmentDefinition:e=>Object.assign({tokenizedText:[mt("keyword","fragment"),mt("whitespace"," "),mt("class-name",e.name)]},t(e)),InterfaceTypeDefinition:e=>Object.assign({tokenizedText:[mt("keyword","interface"),mt("whitespace"," "),mt("class-name",e.name)]},t(e)),EnumTypeDefinition:e=>Object.assign({tokenizedText:[mt("keyword","enum"),mt("whitespace"," "),mt("class-name",e.name)]},t(e)),EnumValueDefinition:e=>Object.assign({tokenizedText:[mt("plain",e.name)]},t(e)),ObjectTypeDefinition:e=>Object.assign({tokenizedText:[mt("keyword","type"),mt("whitespace"," "),mt("class-name",e.name)]},t(e)),InputObjectTypeDefinition:e=>Object.assign({tokenizedText:[mt("keyword","input"),mt("whitespace"," "),mt("class-name",e.name)]},t(e)),FragmentSpread:e=>Object.assign({tokenizedText:[mt("plain","..."),mt("class-name",e.name)]},t(e)),InputValueDefinition:e=>Object.assign({tokenizedText:[mt("plain",e.name)]},t(e)),FieldDefinition:e=>Object.assign({tokenizedText:[mt("plain",e.name)]},t(e)),InlineFragment:e=>e.selectionSet}}(e);return{outlineTrees:Object(le.c)(t,{leave:e=>void 0!==n&&e.kind in n?n[e.kind](e):null})}}function mt(e,t){return{kind:e,value:t}}function gt(e,t,n,r){const i=r||Pe(t,n);if(!e||!i||!i.state)return"";const o=i.state,a=o.kind,s=o.step,u=Ue(e,i.state),c={schema:e};if("Field"===a&&0===s&&u.fieldDef||"AliasedField"===a&&2===s&&u.fieldDef){const e=[];return function(e,t,n){yt(e,t,n),bt(e,t,n,t.type)}(e,u,c),xt(e,c,u.fieldDef),e.join("").trim()}if("Directive"===a&&1===s&&u.directiveDef){const e=[];return vt(e,u,c),xt(e,c,u.directiveDef),e.join("").trim()}if("Argument"===a&&0===s&&u.argDef){const e=[];return function(e,t,n){t.directiveDef?vt(e,t,n):t.fieldDef&&yt(e,t,n);if(!t.argDef)return;const r=t.argDef.name;Dt(e,"("),Dt(e,r),bt(e,t,n,t.inputType),Dt(e,")")}(e,u,c),xt(e,c,u.argDef),e.join("").trim()}if("EnumValue"===a&&u.enumValue&&"description"in u.enumValue){const e=[];return function(e,t,n){if(!t.enumValue)return;const r=t.enumValue.name;Et(e,t,n,t.inputType),Dt(e,"."),Dt(e,r)}(e,u,c),xt(e,c,u.enumValue),e.join("").trim()}if("NamedType"===a&&u.type&&"description"in u.type){const e=[];return Et(e,u,c,u.type),xt(e,c,u.type),e.join("").trim()}return""}function yt(e,t,n){if(!t.fieldDef)return;const r=t.fieldDef.name;"__"!==r.slice(0,2)&&(Et(e,t,n,t.parentType),Dt(e,".")),Dt(e,r)}function vt(e,t,n){if(!t.directiveDef)return;Dt(e,"@"+t.directiveDef.name)}function bt(e,t,n,r){Dt(e,": "),Et(e,t,n,r)}function Et(e,t,n,r){r&&(r instanceof C.e?(Et(e,t,n,r.ofType),Dt(e,"!")):r instanceof C.d?(Dt(e,"["),Et(e,t,n,r.ofType),Dt(e,"]")):Dt(e,r.name))}function xt(e,t,n){if(!n)return;const r="string"==typeof n.description?n.description:null;r&&(Dt(e,"\n\n"),Dt(e,r)),function(e,t,n){if(!n)return;const r=n.deprecationReason?n.deprecationReason:null;if(!r)return;Dt(e,"\n\n"),Dt(e,"Deprecated: "),Dt(e,r)}(e,0,n)}function Dt(e,t){e.push(t)}var Ct=n(15),wt=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))};const{FRAGMENT_DEFINITION:St,OBJECT_TYPE_DEFINITION:kt,INTERFACE_TYPE_DEFINITION:At,ENUM_TYPE_DEFINITION:Tt,UNION_TYPE_DEFINITION:_t,SCALAR_TYPE_DEFINITION:Ot,INPUT_OBJECT_TYPE_DEFINITION:Ft,SCALAR_TYPE_EXTENSION:Nt,OBJECT_TYPE_EXTENSION:It,INTERFACE_TYPE_EXTENSION:Mt,UNION_TYPE_EXTENSION:jt,ENUM_TYPE_EXTENSION:Lt,INPUT_OBJECT_TYPE_EXTENSION:Pt,DIRECTIVE_DEFINITION:Rt,FRAGMENT_SPREAD:Bt,OPERATION_DEFINITION:Ut,NAMED_TYPE:zt}=Ie.a,Vt={[Ie.a.FIELD]:Q.Field,[Ie.a.OPERATION_DEFINITION]:Q.Class,[Ie.a.FRAGMENT_DEFINITION]:Q.Class,[Ie.a.FRAGMENT_SPREAD]:Q.Struct,[Ie.a.OBJECT_TYPE_DEFINITION]:Q.Class,[Ie.a.ENUM_TYPE_DEFINITION]:Q.Enum,[Ie.a.ENUM_VALUE_DEFINITION]:Q.EnumMember,[Ie.a.INPUT_OBJECT_TYPE_DEFINITION]:Q.Class,[Ie.a.INPUT_VALUE_DEFINITION]:Q.Field,[Ie.a.FIELD_DEFINITION]:Q.Field,[Ie.a.INTERFACE_TYPE_DEFINITION]:Q.Interface,[Ie.a.DOCUMENT]:Q.File,FieldWithArguments:Q.Method};function qt(e){return"FieldDefinition"===e.kind&&e.children&&e.children.length>0?Vt.FieldWithArguments:Vt[e.kind]}class Ht{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,n){return wt(this,void 0,void 0,(function*(){let r=!1;const i=this.getConfigForURI(t);if(!i)return[];const{schema:o,name:a,extensions:s}=i;try{const n=Object(pe.a)(e);o&&t===o||(r=n.definitions.some(e=>{switch(e.kind){case kt:case At:case Tt:case _t:case Ot:case Ft:case Nt:case It:case Mt:case jt:case Lt:case Pt:case Rt:return!0}return!1}))}catch(t){const n=ft(t.locations[0],e);return[{severity:st.Error,message:t.message,source:"GraphQL: Syntax",range:n}]}let u=e;const c=yield this._graphQLCache.getFragmentDefinitions(i);u=`${u} ${(yield this._graphQLCache.getFragmentDependencies(e,c)).reduce((e,t)=>`${e} ${Object(Ct.print)(t.definition)}`,"")}`;let l=null;try{l=Object(pe.a)(u)}catch(e){return[]}let p=null;(null==s?void 0:s.customValidationRules)&&"function"==typeof s.customValidationRules&&(p=s.customValidationRules(this._graphQLConfig));const f=yield this._graphQLCache.getSchema(a,r);return f?ct(l,f,p,n):[]}))}getAutocompleteSuggestions(e,t,n){return wt(this,void 0,void 0,(function*(){const r=this.getConfigForURI(n),i=yield this._graphQLCache.getSchema(r.name),o=yield this._graphQLCache.getFragmentDefinitions(r),a=Array.from(o).map(([,e])=>e);return i?je(i,e,t,void 0,a.map(({definition:e})=>e)):[]}))}getHoverInformation(e,t,n){return wt(this,void 0,void 0,(function*(){const r=this.getConfigForURI(n),i=yield this._graphQLCache.getSchema(r.name);return i?gt(i,e,t):""}))}getDefinition(e,t,n){return wt(this,void 0,void 0,(function*(){const r=this.getConfigForURI(n);let i;try{i=Object(pe.a)(e)}catch(e){return null}const o=function(e,t,n){const r=function(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)}(e,n);let i;return Object(le.c)(t,{enter(e){if(!("Name"!==e.kind&&e.loc&&e.loc.start<=r&&r<=e.loc.end))return!1;i=e},leave(e){if(e.loc&&e.loc.start<=r&&r<=e.loc.end)return!1}}),i}(e,i,t);if(o)switch(o.kind){case Bt:return this._getDefinitionForFragmentSpread(e,i,o,n,r);case St:case Ut:return rt(n,e,o);case zt:return this._getDefinitionForNamedType(e,i,o,n,r)}return null}))}getDocumentSymbols(e,t){return wt(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:qt(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 wt(this,void 0,void 0,(function*(){const o=yield this._graphQLCache.getObjectTypeDefinitions(i),a=yield this._graphQLCache.getObjectTypeDependenciesForAST(t,o),s=t.definitions.filter(e=>e.kind===kt||e.kind===Ft||e.kind===Tt||e.kind===Ot||e.kind===At).map(t=>({filePath:r,content:e,definition:t}));return yield tt(e,n,a.concat(s))}))}_getDefinitionForFragmentSpread(e,t,n,r,i){return wt(this,void 0,void 0,(function*(){const o=yield this._graphQLCache.getFragmentDefinitions(i),a=yield this._graphQLCache.getFragmentDependenciesForAST(t,o),s=t.definitions.filter(e=>e.kind===St).map(t=>({filePath:r,content:e,definition:t}));return yield nt(e,n,a.concat(s))}))}getOutline(e){return wt(this,void 0,void 0,(function*(){return ht(e)}))}}},function(e,t,n){"use strict";n.r(t),n.d(t,"CANCEL",(function(){return r.a})),n.d(t,"SAGA_LOCATION",(function(){return r.g})),n.d(t,"buffers",(function(){return a.i})),n.d(t,"detach",(function(){return a.j})),n.d(t,"END",(function(){return w})),n.d(t,"channel",(function(){return k})),n.d(t,"eventChannel",(function(){return A})),n.d(t,"isEnd",(function(){return S})),n.d(t,"multicastChannel",(function(){return T})),n.d(t,"runSaga",(function(){return H})),n.d(t,"stdChannel",(function(){return _}));var r=n(18),i=n(63);var o=n(10),a=n(6),s=n(59);function u(){var e={};return e.promise=new Promise((function(t,n){e.resolve=t,e.reject=n})),e}var c=u,l=(n(111),[]),p=0;function f(e){try{m(),e()}finally{g()}}function d(e){l.push(e),p||(m(),y())}function h(e){try{return m(),e()}finally{y()}}function m(){p++}function g(){p--}function y(){var e;for(g();!p&&void 0!==(e=l.shift());)f(e)}var v=function(e){return function(t){return e.some((function(e){return C(e)(t)}))}},b=function(e){return function(t){return e(t)}},E=function(e){return function(t){return t.type===String(e)}},x=function(e){return function(t){return t.type===e}},D=function(){return a.U};function C(e){var t="*"===e?D:Object(o.k)(e)?E:Object(o.a)(e)?v:Object(o.l)(e)?E:Object(o.d)(e)?b:Object(o.m)(e)?x:null;if(null===t)throw new Error("invalid pattern: "+e);return t(e)}var w={type:r.b},S=function(e){return e&&e.type===r.b};function k(e){void 0===e&&(e=Object(a.O)());var t=!1,n=[];return{take:function(r){t&&e.isEmpty()?r(w):e.isEmpty()?(n.push(r),r.cancel=function(){Object(a.bb)(n,r)}):r(e.take())},put:function(r){if(!t){if(0===n.length)return e.put(r);n.shift()(r)}},flush:function(n){t&&e.isEmpty()?n(w):n(e.flush())},close:function(){if(!t){t=!0;var e=n;n=[];for(var r=0,i=e.length;r<i;r++){(0,e[r])(w)}}}}}function A(e,t){void 0===t&&(t=Object(a.X)());var n,r=!1,i=k(t),s=function(){r||(r=!0,Object(o.d)(n)&&n(),i.close())};return n=e((function(e){S(e)?s():i.put(e)})),n=Object(a.Y)(n),r&&n(),{take:i.take,flush:i.flush,close:s}}function T(){var e,t=!1,n=[],i=n;var o=function(){i===n&&(i=n.slice())},s=function(){t=!0;var e=n=i;i=[],e.forEach((function(e){e(w)}))};return(e={})[r.e]=!0,e.put=function(e){if(!t)if(S(e))s();else for(var o=n=i,a=0,u=o.length;a<u;a++){var c=o[a];c[r.d](e)&&(c.cancel(),c(e))}},e.take=function(e,n){void 0===n&&(n=D),t?e(w):(e[r.d]=n,o(),i.push(e),e.cancel=Object(a.Y)((function(){o(),Object(a.bb)(i,e)})))},e.close=s,e}function _(){var e=T(),t=e.put;return e.put=function(e){e[r.f]?t(e):d((function(){t(e)}))},e}function O(e,t){var n=e[r.a];Object(o.d)(n)&&(t.cancel=n),e.then(t,(function(e){t(e,!0)}))}var F,N=0,I=function(){return++N};function M(e){e.isRunning()&&e.cancel()}var j=((F={})[a.u]=function(e,t,n){var i=t.channel,a=void 0===i?e.channel:i,s=t.pattern,u=t.maybe,c=function(e){e instanceof Error?n(e,!0):!S(e)||u?n(e):n(r.k)};try{a.take(c,Object(o.g)(s)?C(s):null)}catch(e){return void n(e,!0)}n.cancel=c.cancel},F[a.q]=function(e,t,n){var r=t.channel,i=t.action,a=t.resolve;d((function(){var t;try{t=(r?r.put:e.dispatch)(i)}catch(e){return void n(e,!0)}a&&Object(o.j)(t)?O(t,n):n(t)}))},F[a.b]=function(e,t,n,r){var i=r.digestEffect,s=N,u=Object.keys(t);if(0!==u.length){var c=Object(a.V)(t,n);u.forEach((function(e){i(t[e],s,c[e],e)}))}else n(Object(o.a)(t)?[]:{})},F[a.s]=function(e,t,n,r){var i=r.digestEffect,s=N,u=Object.keys(t),c=Object(o.a)(t)?Object(a.W)(u.length):{},l={},p=!1;u.forEach((function(e){var t=function(t,r){p||(r||Object(a.cb)(t)?(n.cancel(),n(t,r)):(n.cancel(),p=!0,c[e]=t,n(c)))};t.cancel=a.db,l[e]=t})),n.cancel=function(){p||(p=!0,u.forEach((function(e){return l[e].cancel()})))},u.forEach((function(e){p||i(t[e],s,l[e],e)}))},F[a.d]=function(e,t,n,r){var i=t.context,s=t.fn,u=t.args,c=r.task;try{var l=s.apply(i,u);if(Object(o.j)(l))return void O(l,n);if(Object(o.e)(l))return void q(e,l,c.context,N,Object(a.T)(s),!1,n);n(l)}catch(e){n(e,!0)}},F[a.C]=function(e,t,n){var r=t.context,i=t.fn,a=t.args;try{var s=function(e,t){Object(o.n)(e)?n(t):n(e,!0)};i.apply(r,a.concat(s)),s.cancel&&(n.cancel=s.cancel)}catch(e){n(e,!0)}},F[a.g]=function(e,t,n,r){var i=t.context,s=t.fn,u=t.args,c=t.detached,l=r.task,p=function(e){var t=e.context,n=e.fn,r=e.args;try{var i=n.apply(t,r);if(Object(o.e)(i))return i;var s=!1;return Object(a.ab)((function(e){return s?{value:e,done:!0}:(s=!0,{value:i,done:!Object(o.j)(i)})}))}catch(e){return Object(a.ab)((function(){throw e}))}}({context:i,fn:s,args:u}),f=function(e,t){return e.isSagaIterator?{name:e.meta.name}:Object(a.T)(t)}(p,s);h((function(){var t=q(e,p,l.context,N,f,c,void 0);c?n(t):t.isRunning()?(l.queue.addTask(t),n(t)):t.isAborted()?l.queue.abort(t.error()):n(t)}))},F[a.k]=function(e,t,n,r){var i=r.task,s=function(e,t){if(e.isRunning()){var n={task:i,cb:t};t.cancel=function(){e.isRunning()&&Object(a.bb)(e.joiners,n)},e.joiners.push(n)}else e.isAborted()?t(e.error(),!0):t(e.result())};if(Object(o.a)(t)){if(0===t.length)return void n([]);var u=Object(a.V)(t,n);t.forEach((function(e,t){s(e,u[t])}))}else s(t,n)},F[a.L]=function(e,t,n,i){var a=i.task;t===r.h?M(a):Object(o.a)(t)?t.forEach(M):M(t),n()},F[a.t]=function(e,t,n){var r=t.selector,i=t.args;try{n(r.apply(void 0,[e.getState()].concat(i)))}catch(e){n(e,!0)}},F[a.N]=function(e,t,n){var r=t.pattern,i=k(t.buffer),o=C(r),a=function t(n){S(n)||e.channel.take(t,o),i.put(n)},s=i.close;i.close=function(){a.cancel(),s()},e.channel.take(a,o),n(i)},F[a.P]=function(e,t,n,r){n(r.task.isCancelled())},F[a.Q]=function(e,t,n){t.flush(n)},F[a.h]=function(e,t,n,r){n(r.task.context[t])},F[a.R]=function(e,t,n,r){var i=r.task;Object(a.Z)(i.context,t),n()},F);function L(e,t){return e+"?"+t}function P(e){var t=e.name,n=e.location;return n?t+" "+L(n.fileName,n.lineNumber):t}var R=null,B=[],U=function(){R=null,B.length=0},z=function(){var e,t,n=B[0],r=B.slice(1),i=n.crashedEffect?function(e){var t=Object(a.fb)(e);return t?t.code+" "+L(t.fileName,t.lineNumber):""}(n.crashedEffect):null;return["The above error occurred in task "+P(n.meta)+(i?" \n when executing effect "+i:"")].concat(r.map((function(e){return" created by "+P(e.meta)})),[(e=B,t=Object(a.eb)((function(e){return e.cancelledTasks}),e),t.length?["Tasks cancelled due to error:"].concat(t).join("\n"):"")]).join("\n")};function V(e,t,n,i,o,s,u){var l;void 0===u&&(u=a.db);var p,f,d=0,h=null,m=[],g=Object.create(n),y=function(e,t,n){var r,i=[],o=!1;function s(e){t(),c(),n(e,!0)}function u(t){i.push(t),t.cont=function(u,c){o||(Object(a.bb)(i,t),t.cont=a.db,c?s(u):(t===e&&(r=u),i.length||(o=!0,n(r))))}}function c(){o||(o=!0,i.forEach((function(e){e.cont=a.db,e.cancel()})),i=[])}return u(e),{addTask:u,cancelAll:c,abort:s,getTasks:function(){return i}}}(t,(function(){m.push.apply(m,y.getTasks().map((function(e){return e.meta.name})))}),v);function v(t,n){if(n){if(d=2,(a={meta:o,cancelledTasks:m}).crashedEffect=R,B.push(a),b.isRoot){var i=z();U(),e.onError(t,{sagaStack:i})}f=t,h&&h.reject(t)}else t===r.j?d=1:1!==d&&(d=3),p=t,h&&h.resolve(t);var a;b.cont(t,n),b.joiners.forEach((function(e){e.cb(t,n)})),b.joiners=null}var b=((l={})[r.i]=!0,l.id=i,l.meta=o,l.isRoot=s,l.context=g,l.joiners=[],l.queue=y,l.cancel=function(){0===d&&(d=1,y.cancelAll(),v(r.j,!1))},l.cont=u,l.end=v,l.setContext=function(e){Object(a.Z)(g,e)},l.toPromise=function(){return h||(h=c(),2===d?h.reject(f):0!==d&&h.resolve(p)),h.promise},l.isRunning=function(){return 0===d},l.isCancelled=function(){return 1===d||0===d&&1===t.status},l.isAborted=function(){return 2===d},l.result=function(){return p},l.error=function(){return f},l);return b}function q(e,t,n,i,s,u,c){var l=e.finalizeRunEffect((function(t,n,i){if(Object(o.j)(t))O(t,i);else if(Object(o.e)(t))q(e,t,f.context,n,s,!1,i);else if(t&&t[r.c]){(0,j[t.type])(e,t.payload,i,d)}else i(t)}));h.cancel=a.db;var p={meta:s,cancel:function(){0===p.status&&(p.status=1,h(r.j))},status:0},f=V(e,p,n,i,s,u,c),d={task:f,digestEffect:m};return c&&(c.cancel=f.cancel),h(),f;function h(e,n){try{var s;n?(s=t.throw(e),U()):Object(a.gb)(e)?(p.status=1,h.cancel(),s=Object(o.d)(t.return)?t.return(r.j):{done:!0,value:r.j}):s=Object(a.hb)(e)?Object(o.d)(t.return)?t.return():{done:!0}:t.next(e),s.done?(1!==p.status&&(p.status=3),p.cont(s.value)):m(s.value,i,h)}catch(e){if(1===p.status)throw e;p.status=2,p.cont(e,!0)}}function m(t,n,r,i){void 0===i&&(i="");var o,s=I();function u(n,i){o||(o=!0,r.cancel=a.db,e.sagaMonitor&&(i?e.sagaMonitor.effectRejected(s,n):e.sagaMonitor.effectResolved(s,n)),i&&function(e){R=e}(t),r(n,i))}e.sagaMonitor&&e.sagaMonitor.effectTriggered({effectId:s,parentEffectId:n,label:i,effect:t}),u.cancel=a.db,r.cancel=function(){o||(o=!0,u.cancel(),u.cancel=a.db,e.sagaMonitor&&e.sagaMonitor.effectCancelled(s))},l(t,s,u)}}function H(e,t){var n=e.channel,r=void 0===n?_():n,i=e.dispatch,o=e.getState,u=e.context,c=void 0===u?{}:u,l=e.sagaMonitor,p=e.effectMiddlewares,f=e.onError,d=void 0===f?a.c:f;for(var m=arguments.length,g=new Array(m>2?m-2:0),y=2;y<m;y++)g[y-2]=arguments[y];var v=t.apply(void 0,g);var b,E=I();if(l&&(l.rootSagaStarted=l.rootSagaStarted||a.db,l.effectTriggered=l.effectTriggered||a.db,l.effectResolved=l.effectResolved||a.db,l.effectRejected=l.effectRejected||a.db,l.effectCancelled=l.effectCancelled||a.db,l.actionDispatched=l.actionDispatched||a.db,l.rootSagaStarted({effectId:E,saga:t,args:g})),p){var x=s.compose.apply(void 0,p);b=function(e){return function(t,n,r){return x((function(t){return e(t,n,r)}))(t)}}}else b=a.f;var D={channel:r,dispatch:Object(a.e)(i),getState:o,sagaMonitor:l,onError:d,finalizeRunEffect:b};return h((function(){var e=q(D,v,c,E,Object(a.T)(t),!0,void 0);return l&&l.effectResolved(E,e),e}))}var W=function(e){var t,n=void 0===e?{}:e,r=n.context,o=void 0===r?{}:r,s=n.channel,u=void 0===s?_():s,c=n.sagaMonitor,l=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(n,["context","channel","sagaMonitor"]);function p(e){var n=e.getState,r=e.dispatch;return t=H.bind(null,Object(i.a)({},l,{context:o,channel:u,dispatch:r,getState:n,sagaMonitor:c})),function(e){return function(t){c&&c.actionDispatched&&c.actionDispatched(t);var n=e(t);return u.put(t),n}}}return p.run=function(){return t.apply(void 0,arguments)},p.setContext=function(e){Object(a.Z)(o,e)},p};t.default=W},function(e,t,n){"use strict";function r(e){var t,n=e.Symbol;return"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}n.d(t,"a",(function(){return r}))},function(e,t,n){e.exports=n(268).Observable},function(e,t,n){"use strict";e.exports=function(e,t){t||(t={}),"function"==typeof t&&(t={cmp:t});var n,r="boolean"==typeof t.cycles&&t.cycles,i=t.cmp&&(n=t.cmp,function(e){return function(t,r){var i={key:t,value:e[t]},o={key:r,value:e[r]};return n(i,o)}}),o=[];return function e(t){if(t&&t.toJSON&&"function"==typeof t.toJSON&&(t=t.toJSON()),void 0!==t){if("number"==typeof t)return isFinite(t)?""+t:"null";if("object"!=typeof t)return JSON.stringify(t);var n,a;if(Array.isArray(t)){for(a="[",n=0;n<t.length;n++)n&&(a+=","),a+=e(t[n])||"null";return a+"]"}if(null===t)return"null";if(-1!==o.indexOf(t)){if(r)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var s=o.push(t)-1,u=Object.keys(t).sort(i&&i(t));for(a="",n=0;n<u.length;n++){var c=u[n],l=e(t[c]);l&&(a&&(a+=","),a+=JSON.stringify(c)+":"+l)}return o.splice(s,1),"{"+a+"}"}}(e)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(4),i=n(17),o=n(49),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){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return s}));var r=n(8),i=n(2),o=/^[_a-zA-Z][_a-zA-Z0-9]*$/;function a(e){var t=s(e);if(t)throw t;return e}function s(e){return"string"==typeof e||Object(r.a)(0,"Expected name to be a string."),e.length>1&&"_"===e[0]&&"_"===e[1]?new i.a('Name "'.concat(e,'" must not begin with "__", which is reserved by GraphQL introspection.')):o.test(e)?void 0:new i.a('Names must match /^[_a-zA-Z][_a-zA-Z0-9]*$/ but "'.concat(e,'" does not.'))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(2),i=n(1),o=n(45);function a(e){return{Document:function(t){for(var n=0,a=t.definitions;n<a.length;n++){var s=a[n];if(!Object(o.b)(s)){var u=s.kind===i.a.SCHEMA_DEFINITION||s.kind===i.a.SCHEMA_EXTENSION?"schema":'"'+s.name.value+'"';e.reportError(new r.a("The ".concat(u," definition is not executable."),s))}}return!1}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(2);function i(e){var t=Object.create(null);return{OperationDefinition:function(n){var i=n.name;return i&&(t[i.value]?e.reportError(new r.a('There can be only one operation named "'.concat(i.value,'".'),[t[i.value],i])):t[i.value]=i),!1},FragmentDefinition:function(){return!1}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(2),i=n(1);function o(e){var t=0;return{Document:function(e){t=e.definitions.filter((function(e){return e.kind===i.a.OPERATION_DEFINITION})).length},OperationDefinition:function(n){!n.name&&t>1&&e.reportError(new r.a("This anonymous operation must be the only defined operation.",n))}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(2);function i(e){return{OperationDefinition:function(t){"subscription"===t.operation&&1!==t.selectionSet.selections.length&&e.reportError(new r.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)))}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(2),i=n(15),o=n(0),a=n(33);function s(e){return{InlineFragment:function(t){var n=t.typeCondition;if(n){var s=Object(a.a)(e.getSchema(),n);if(s&&!Object(o.D)(s)){var u=Object(i.print)(n);e.reportError(new r.a('Fragment cannot condition on non composite type "'.concat(u,'".'),n))}}},FragmentDefinition:function(t){var n=Object(a.a)(e.getSchema(),t.typeCondition);if(n&&!Object(o.D)(n)){var s=Object(i.print)(t.typeCondition);e.reportError(new r.a('Fragment "'.concat(t.name.value,'" cannot condition on non composite type "').concat(s,'".'),t.typeCondition))}}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(2),i=n(15),o=n(0),a=n(33);function s(e){return{VariableDefinition:function(t){var n=Object(a.a)(e.getSchema(),t.type);if(n&&!Object(o.G)(n)){var s=t.variable.name.value,u=Object(i.print)(t.type);e.reportError(new r.a('Variable "$'.concat(s,'" cannot be non-input type "').concat(u,'".'),t.type))}}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(4),i=n(2),o=n(0);function a(e){return{Field:function(t){var n=e.getType(),a=t.selectionSet;if(n)if(Object(o.I)(Object(o.A)(n))){if(a){var s=t.name.value,u=Object(r.a)(n);e.reportError(new i.a('Field "'.concat(s,'" must not have a selection since type "').concat(u,'" has no subfields.'),a))}}else if(!a){var c=t.name.value,l=Object(r.a)(n);e.reportError(new i.a('Field "'.concat(c,'" of type "').concat(l,'" must have a selection of subfields. Did you mean "').concat(c,' { ... }"?'),t))}}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(57),i=n(38),o=n(43),a=n(2),s=n(0);function u(e){return{Field:function(t){var n=e.getParentType();if(n&&!e.getFieldDef()){var u=e.getSchema(),c=t.name.value,l=Object(i.a)("to use an inline fragment on",function(e,t,n){if(!Object(s.C)(t))return[];for(var i=new Set,o=Object.create(null),a=0,u=e.getPossibleTypes(t);a<u.length;a++){var c=u[a];if(c.getFields()[n]){i.add(c),o[c.name]=1;for(var l=0,p=c.getInterfaces();l<p.length;l++){var f,d=p[l];d.getFields()[n]&&(i.add(d),o[d.name]=(null!==(f=o[d.name])&&void 0!==f?f:0)+1)}}}return Object(r.a)(i).sort((function(t,n){var r=o[n.name]-o[t.name];return 0!==r?r:Object(s.H)(t)&&e.isSubType(t,n)?-1:Object(s.H)(n)&&e.isSubType(n,t)?1:t.name.localeCompare(n.name)})).map((function(e){return e.name}))}(u,n,c));""===l&&(l=Object(i.a)(function(e,t){if(Object(s.N)(e)||Object(s.H)(e)){var n=Object.keys(e.getFields());return Object(o.a)(t,n)}return[]}(n,c))),e.reportError(new a.a('Cannot query field "'.concat(c,'" on type "').concat(n.name,'".')+l,t))}}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(2);function i(e){var t=Object.create(null);return{OperationDefinition:function(){return!1},FragmentDefinition:function(n){var i=n.name.value;return t[i]?e.reportError(new r.a('There can be only one fragment named "'.concat(i,'".'),[t[i],n.name])):t[i]=n.name,!1}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(2);function i(e){return{FragmentSpread:function(t){var n=t.name.value;e.getFragment(n)||e.reportError(new r.a('Unknown fragment "'.concat(n,'".'),t.name))}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(2);function i(e){var t=[],n=[];return{OperationDefinition:function(e){return t.push(e),!1},FragmentDefinition:function(e){return n.push(e),!1},Document:{leave:function(){for(var i=Object.create(null),o=0;o<t.length;o++)for(var a=t[o],s=0,u=e.getRecursivelyReferencedFragments(a);s<u.length;s++){i[u[s].name.value]=!0}for(var c=0;c<n.length;c++){var l=n[c],p=l.name.value;!0!==i[p]&&e.reportError(new r.a('Fragment "'.concat(p,'" is never used.'),l))}}}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(4),i=n(2),o=n(0),a=n(33),s=n(61);function u(e){return{InlineFragment:function(t){var n=e.getType(),a=e.getParentType();if(Object(o.D)(n)&&Object(o.D)(a)&&!Object(s.a)(e.getSchema(),n,a)){var u=Object(r.a)(a),c=Object(r.a)(n);e.reportError(new i.a('Fragment cannot be spread here as objects of type "'.concat(u,'" can never be of type "').concat(c,'".'),t))}},FragmentSpread:function(t){var n=t.name.value,u=function(e,t){var n=e.getFragment(t);if(n){var r=Object(a.a)(e.getSchema(),n.typeCondition);if(Object(o.D)(r))return r}}(e,n),c=e.getParentType();if(u&&c&&!Object(s.a)(e.getSchema(),u,c)){var l=Object(r.a)(c),p=Object(r.a)(u);e.reportError(new i.a('Fragment "'.concat(n,'" cannot be spread here as objects of type "').concat(l,'" can never be of type "').concat(p,'".'),t))}}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(2);function i(e){var t=Object.create(null),n=[],i=Object.create(null);return{OperationDefinition:function(){return!1},FragmentDefinition:function(o){return function o(a){if(t[a.name.value])return;var s=a.name.value;t[s]=!0;var u=e.getFragmentSpreads(a.selectionSet);if(0===u.length)return;i[s]=n.length;for(var c=0;c<u.length;c++){var l=u[c],p=l.name.value,f=i[p];if(n.push(l),void 0===f){var d=e.getFragment(p);d&&o(d)}else{var h=n.slice(f),m=h.slice(0,-1).map((function(e){return'"'+e.name.value+'"'})).join(", ");e.reportError(new r.a('Cannot spread fragment "'.concat(p,'" within itself')+(""!==m?" via ".concat(m,"."):"."),h))}n.pop()}i[s]=void 0}(o),!1}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(2);function i(e){var t=Object.create(null);return{OperationDefinition:function(){t=Object.create(null)},VariableDefinition:function(n){var i=n.variable.name.value;t[i]?e.reportError(new r.a('There can be only one variable named "$'.concat(i,'".'),[t[i],n.variable.name])):t[i]=n.variable.name}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(2);function i(e){var t=Object.create(null);return{OperationDefinition:{enter:function(){t=Object.create(null)},leave:function(n){for(var i=e.getRecursiveVariableUsages(n),o=0;o<i.length;o++){var a=i[o].node,s=a.name.value;!0!==t[s]&&e.reportError(new r.a(n.name?'Variable "$'.concat(s,'" is not defined by operation "').concat(n.name.value,'".'):'Variable "$'.concat(s,'" is not defined.'),[a,n]))}}},VariableDefinition:function(e){t[e.variable.name.value]=!0}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(2);function i(e){var t=[];return{OperationDefinition:{enter:function(){t=[]},leave:function(n){for(var i=Object.create(null),o=e.getRecursiveVariableUsages(n),a=0;a<o.length;a++){i[o[a].node.name.value]=!0}for(var s=0,u=t;s<u.length;s++){var c=u[s],l=c.variable.name.value;!0!==i[l]&&e.reportError(new r.a(n.name?'Variable "$'.concat(l,'" is never used in operation "').concat(n.name.value,'".'):'Variable "$'.concat(l,'" is never used.'),c))}}},VariableDefinition:function(e){t.push(e)}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n(14),i=n(36),o=n(4),a=n(38),s=n(43),u=n(2),c=n(15),l=n(0);function p(e){return{ListValue:function(t){var n=Object(l.B)(e.getParentInputType());if(!Object(l.J)(n))return f(e,t),!1},ObjectValue:function(t){var n=Object(l.A)(e.getInputType());if(!Object(l.F)(n))return f(e,t),!1;for(var a=Object(i.a)(t.fields,(function(e){return e.name.value})),s=0,c=Object(r.a)(n.getFields());s<c.length;s++){var p=c[s];if(!a[p.name]&&Object(l.Q)(p)){var d=Object(o.a)(p.type);e.reportError(new u.a('Field "'.concat(n.name,".").concat(p.name,'" of required type "').concat(d,'" was not provided.'),t))}}},ObjectField:function(t){var n=Object(l.A)(e.getParentInputType());if(!e.getInputType()&&Object(l.F)(n)){var r=Object(s.a)(t.name.value,Object.keys(n.getFields()));e.reportError(new u.a('Field "'.concat(t.name.value,'" is not defined by type "').concat(n.name,'".')+Object(a.a)(r),t))}},NullValue:function(t){var n=e.getInputType();Object(l.L)(n)&&e.reportError(new u.a('Expected value of type "'.concat(Object(o.a)(n),'", found ').concat(Object(c.print)(t),"."),t))},EnumValue:function(t){return f(e,t)},IntValue:function(t){return f(e,t)},FloatValue:function(t){return f(e,t)},StringValue:function(t){return f(e,t)},BooleanValue:function(t){return f(e,t)}}}function f(e,t){var n=e.getInputType();if(n){var r=Object(l.A)(n);if(Object(l.I)(r))try{if(void 0===r.parseLiteral(t,void 0)){var i=Object(o.a)(n);e.reportError(new u.a('Expected value of type "'.concat(i,'", found ').concat(Object(c.print)(t),"."),t))}}catch(r){var a=Object(o.a)(n);r instanceof u.a?e.reportError(r):e.reportError(new u.a('Expected value of type "'.concat(a,'", found ').concat(Object(c.print)(t),"; ")+r.message,t,void 0,void 0,void 0,r))}else{var s=Object(o.a)(n);e.reportError(new u.a('Expected value of type "'.concat(s,'", found ').concat(Object(c.print)(t),"."),t))}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(4),i=n(2),o=n(1),a=n(0),s=n(33),u=n(61);function c(e){var t=Object.create(null);return{OperationDefinition:{enter:function(){t=Object.create(null)},leave:function(n){for(var o=e.getRecursiveVariableUsages(n),a=0;a<o.length;a++){var u=o[a],c=u.node,p=u.type,f=u.defaultValue,d=c.name.value,h=t[d];if(h&&p){var m=e.getSchema(),g=Object(s.a)(m,h.type);if(g&&!l(m,g,h.defaultValue,p,f)){var y=Object(r.a)(g),v=Object(r.a)(p);e.reportError(new i.a('Variable "$'.concat(d,'" of type "').concat(y,'" used in position expecting type "').concat(v,'".'),[h,c]))}}}}},VariableDefinition:function(e){t[e.variable.name.value]=e}}}function l(e,t,n,r,i){if(Object(a.L)(r)&&!Object(a.L)(t)){if(!(null!=n&&n.kind!==o.a.NULL)&&!(void 0!==i))return!1;var s=r.ofType;return Object(u.c)(e,t,s)}return Object(u.c)(e,t,r)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var r=n(55),i=n(54),o=n(4),a=n(2),s=n(1),u=n(15),c=n(0),l=n(33);function p(e){return Array.isArray(e)?e.map((function(e){var t=e[0],n=e[1];return'subfields "'.concat(t,'" conflict because ')+p(n)})).join(" and "):e}function f(e){var t=new b,n=new Map;return{SelectionSet:function(r){for(var o=function(e,t,n,r,o){var a=[],s=y(e,t,r,o),u=s[0],c=s[1];if(function(e,t,n,r,o){for(var a=0,s=Object(i.a)(o);a<s.length;a++){var u=s[a],c=u[0],l=u[1];if(l.length>1)for(var p=0;p<l.length;p++)for(var f=p+1;f<l.length;f++){var d=g(e,n,r,!1,c,l[p],l[f]);d&&t.push(d)}}}(e,a,t,n,u),0!==c.length)for(var l=0;l<c.length;l++){d(e,a,t,n,!1,u,c[l]);for(var p=l+1;p<c.length;p++)h(e,a,t,n,!1,c[l],c[p])}return a}(e,n,t,e.getParentType(),r),s=0;s<o.length;s++){var u=o[s],c=u[0],l=c[0],f=c[1],m=u[1],v=u[2],b=p(f);e.reportError(new a.a('Fields "'.concat(l,'" conflict because ').concat(b,". Use different aliases on the fields to fetch both if this was intentional."),m.concat(v)))}}}}function d(e,t,n,r,i,o,a){var s=e.getFragment(a);if(s){var u=v(e,n,s),c=u[0],l=u[1];if(o!==c){m(e,t,n,r,i,o,c);for(var p=0;p<l.length;p++)d(e,t,n,r,i,o,l[p])}}}function h(e,t,n,r,i,o,a){if(o!==a&&!r.has(o,a,i)){r.add(o,a,i);var s=e.getFragment(o),u=e.getFragment(a);if(s&&u){var c=v(e,n,s),l=c[0],p=c[1],f=v(e,n,u),d=f[0],g=f[1];m(e,t,n,r,i,l,d);for(var y=0;y<g.length;y++)h(e,t,n,r,i,o,g[y]);for(var b=0;b<p.length;b++)h(e,t,n,r,i,p[b],a)}}}function m(e,t,n,r,i,o,a){for(var s=0,u=Object.keys(o);s<u.length;s++){var c=u[s],l=a[c];if(l)for(var p=o[c],f=0;f<p.length;f++)for(var d=0;d<l.length;d++){var h=g(e,n,r,i,c,p[f],l[d]);h&&t.push(h)}}}function g(e,t,n,i,a,s,l){var p=s[0],f=s[1],g=s[2],v=l[0],b=l[1],E=l[2],x=i||p!==v&&Object(c.N)(p)&&Object(c.N)(v);if(!x){var D,C,w=f.name.value,S=b.name.value;if(w!==S)return[[a,'"'.concat(w,'" and "').concat(S,'" are different fields')],[f],[b]];if(!function(e,t){if(e.length!==t.length)return!1;return e.every((function(e){var n,i,o=Object(r.a)(t,(function(t){return t.name.value===e.name.value}));return!!o&&(n=e.value,i=o.value,Object(u.print)(n)===Object(u.print)(i))}))}(null!==(D=f.arguments)&&void 0!==D?D:[],null!==(C=b.arguments)&&void 0!==C?C:[]))return[[a,"they have differing arguments"],[f],[b]]}var k=null==g?void 0:g.type,A=null==E?void 0:E.type;if(k&&A&&function e(t,n){if(Object(c.J)(t))return!Object(c.J)(n)||e(t.ofType,n.ofType);if(Object(c.J)(n))return!0;if(Object(c.L)(t))return!Object(c.L)(n)||e(t.ofType,n.ofType);if(Object(c.L)(n))return!0;if(Object(c.I)(t)||Object(c.I)(n))return t!==n;return!1}(k,A))return[[a,'they return conflicting types "'.concat(Object(o.a)(k),'" and "').concat(Object(o.a)(A),'"')],[f],[b]];var T=f.selectionSet,_=b.selectionSet;return T&&_?function(e,t,n,r){if(e.length>0)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 u=[],c=y(e,t,i,o),l=c[0],p=c[1],f=y(e,t,a,s),g=f[0],v=f[1];if(m(e,u,t,n,r,l,g),0!==v.length)for(var b=0;b<v.length;b++)d(e,u,t,n,r,l,v[b]);if(0!==p.length)for(var E=0;E<p.length;E++)d(e,u,t,n,r,g,p[E]);for(var x=0;x<p.length;x++)for(var D=0;D<v.length;D++)h(e,u,t,n,r,p[x],v[D]);return u}(e,t,n,x,Object(c.A)(k),T,Object(c.A)(A),_),a,f,b):void 0}function y(e,t,n,r){var i=t.get(r);if(!i){var o=Object.create(null),a=Object.create(null);!function e(t,n,r,i,o){for(var a=0,u=r.selections;a<u.length;a++){var p=u[a];switch(p.kind){case s.a.FIELD:var f=p.name.value,d=void 0;(Object(c.N)(n)||Object(c.H)(n))&&(d=n.getFields()[f]);var h=p.alias?p.alias.value:f;i[h]||(i[h]=[]),i[h].push([n,p,d]);break;case s.a.FRAGMENT_SPREAD:o[p.name.value]=!0;break;case s.a.INLINE_FRAGMENT:var m=p.typeCondition,g=m?Object(l.a)(t.getSchema(),m):n;e(t,g,p.selectionSet,i,o)}}}(e,n,r,o,a),i=[o,Object.keys(a)],t.set(r,i)}return i}function v(e,t,n){var r=t.get(n.selectionSet);if(r)return r;var i=Object(l.a)(e.getSchema(),n.typeCondition);return y(e,t,i,n.selectionSet)}var b=function(){function e(){this._data=Object.create(null)}var t=e.prototype;return t.has=function(e,t,n){var r=this._data[e],i=r&&r[t];return void 0!==i&&(!1!=
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment